@base-framework/ui 1.2.54 → 1.2.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- import { I as U, Span as f, Button as v, OnState as M, Div as o, Legend as gt, Fieldset as mt, H4 as Ke, P as k, Label as Y, Checkbox as me, Input as p, Textarea as Qe, UseParent as q, Img as be, H5 as bt, H2 as Z, Form as xt, Header as ee, Footer as xe, A as Je, H3 as pe, Nav as ye, Ul as te, Li as we, OnStateOpen as ve, On as J, Dialog as pt, Th as Xe, Thead as yt, Tr as wt, Table as ke, Time as vt, H1 as kt } from "@base-framework/atoms";
2
- import { Atom as i, router as X, Jot as B, Component as S, Html as Ze, Data as N, Events as H, DateTime as se, NavLink as Ct, DataTracker as et } from "@base-framework/base";
1
+ import { I as Y, Span as h, Button as v, OnState as P, Div as l, Legend as mt, Fieldset as bt, H4 as Qe, P as k, Label as V, Checkbox as be, Input as y, Textarea as Je, UseParent as K, Img as xe, H5 as xt, H2 as ee, Form as pt, Header as te, Footer as pe, A as Xe, H3 as ye, Nav as we, Ul as se, Li as ve, OnStateOpen as ke, On as Z, Dialog as yt, Th as Ze, Thead as wt, Tr as vt, Table as Ce, Time as kt, H1 as Ct } from "@base-framework/atoms";
2
+ import { Atom as i, router as G, Jot as M, Component as S, Html as et, Data as F, Events as U, DateTime as ne, NavLink as St, DataTracker as tt } from "@base-framework/base";
3
3
  import { Icons as g } from "./icons.es.js";
4
- import { Timer as St, TableBody as $t, DataTableBody as Dt, ScrollableTableBody as It, List as Tt } from "@base-framework/organisms";
5
- import { F as V } from "./format-DE4rFWuD.js";
6
- import { F as Pt } from "./bside-template-C7AQgQ6H.js";
7
- const Mt = {
4
+ import { Timer as $t, TableBody as Dt, DataTableBody as It, ScrollableTableBody as Tt, List as Pt } from "@base-framework/organisms";
5
+ import { F as q } from "./format-DE4rFWuD.js";
6
+ import { F as Mt } from "./bside-template-C7AQgQ6H.js";
7
+ const Bt = {
8
8
  xs: "w-4 h-4",
9
9
  sm: "w-6 h-6",
10
10
  md: "w-8 h-8",
@@ -12,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
- }, fe = i((e, t) => {
16
- const s = Mt[e.size || "sm"];
17
- return U({
15
+ }, ge = i((e, t) => {
16
+ const s = Bt[e.size || "sm"];
17
+ return Y({
18
18
  ...e,
19
19
  // @ts-ignore
20
20
  class: `stroke-current icon-size ${s} ${e.class || ""}`,
21
21
  html: t[0]?.textContent
22
22
  });
23
- }), Te = {
23
+ }), Pe = {
24
24
  xs: "w-4 h-4",
25
25
  // 16px - matches Icon
26
26
  sm: "w-6 h-6",
@@ -35,7 +35,7 @@ const Mt = {
35
35
  // 56px - matches Icon
36
36
  "3xl": "w-16 h-16"
37
37
  // 64px - matches Icon
38
- }, Pe = {
38
+ }, Me = {
39
39
  xs: "16px",
40
40
  sm: "24px",
41
41
  md: "32px",
@@ -43,17 +43,17 @@ const Mt = {
43
43
  xl: "48px",
44
44
  "2xl": "56px",
45
45
  "3xl": "64px"
46
- }, Me = {
46
+ }, Be = {
47
47
  outlined: "material-symbols-outlined",
48
48
  filled: "material-symbols-filled",
49
49
  rounded: "material-symbols-rounded",
50
50
  sharp: "material-symbols-sharp"
51
- }, Be = i((e) => {
52
- const t = e.size || "sm", s = e.variant || "outlined", n = Te[t] || Te.sm, a = Pe[t] || Pe.sm, l = Me[s] || Me.outlined;
53
- return f({
51
+ }, ze = i((e) => {
52
+ const t = e.size || "sm", s = e.variant || "outlined", n = Pe[t] || Pe.sm, a = Me[t] || Me.sm, o = Be[s] || Be.outlined;
53
+ return h({
54
54
  ...e,
55
55
  // @ts-ignore
56
- class: `inline-flex items-center justify-center ${l} ${n} ${e.class || ""}`,
56
+ class: `inline-flex items-center justify-center ${o} ${n} ${e.class || ""}`,
57
57
  // @ts-ignore
58
58
  style: `font-size: ${a}; ${e.style || ""}`,
59
59
  // Remove props that shouldn't be passed to the DOM element
@@ -62,14 +62,14 @@ const Mt = {
62
62
  name: void 0
63
63
  // @ts-ignore
64
64
  }, e.name);
65
- }), x = (e = {}, t) => t ? typeof t == "string" && t.includes("<svg") ? fe(e, t) : typeof t == "object" && t.name ? Be({
65
+ }), p = (e = {}, t) => t ? typeof t == "string" && t.includes("<svg") ? ge(e, t) : typeof t == "object" && t.name ? ze({
66
66
  ...e,
67
67
  name: t.name,
68
68
  variant: t.variant || e.variant || "outlined"
69
- }) : typeof t == "string" ? Be({
69
+ }) : typeof t == "string" ? ze({
70
70
  ...e,
71
71
  name: t
72
- }) : fe(e, t) : null, Ta = (e) => e ? !!(typeof e == "object" && e.name || typeof e == "string" && !e.includes("<svg")) : !1, Pa = (e) => typeof e == "string" && e.includes("<svg"), ze = {
72
+ }) : ge(e, t) : null, Ta = (e) => e ? !!(typeof e == "object" && e.name || typeof e == "string" && !e.includes("<svg")) : !1, Pa = (e) => typeof e == "string" && e.includes("<svg"), Oe = {
73
73
  gray: {
74
74
  backgroundColor: "bg-gray-50",
75
75
  textColor: "text-gray-600",
@@ -150,30 +150,30 @@ const Mt = {
150
150
  textColor: "text-foreground",
151
151
  ringColor: "ring-white/10"
152
152
  }
153
- }, Bt = (e) => ze[e] || ze.gray, zt = (e, t = {}) => {
154
- const s = Bt(e), n = t.backgroundColor ?? s.backgroundColor, a = t.textColor ?? s.textColor, l = t.ringColor ?? s.ringColor;
155
- return `inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors ${n} ${a} ${l}`;
153
+ }, zt = (e) => Oe[e] || Oe.gray, Ot = (e, t = {}) => {
154
+ const s = zt(e), n = t.backgroundColor ?? s.backgroundColor, a = t.textColor ?? s.textColor, o = t.ringColor ?? s.ringColor;
155
+ return `inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors ${n} ${a} ${o}`;
156
156
  }, Ma = i((e, t) => {
157
- const { type: s, icon: n, size: a = "xs", backgroundColor: l, textColor: r, ringColor: c, ...u } = e, h = zt(s, { backgroundColor: l, textColor: r, ringColor: c });
158
- return f({ ...u, class: h }, [
159
- n ? x({ size: a, class: "mr-1" }, n) : null,
157
+ const { type: s, icon: n, size: a = "xs", backgroundColor: o, textColor: r, ringColor: c, ...u } = e, f = Ot(s, { backgroundColor: o, textColor: r, ringColor: c });
158
+ return h({ ...u, class: f }, [
159
+ n ? p({ size: a, class: "mr-1" }, n) : null,
160
160
  ...t || []
161
161
  ]);
162
162
  });
163
- let z = globalThis.history?.state?._pos ?? 0;
164
- const ge = /* @__PURE__ */ new Map(), le = (e) => (e || "").replace(/^\/+/, "").replace(/\/+$/, ""), Ot = (e, t) => {
163
+ let O = globalThis.history?.state?._pos ?? 0;
164
+ const le = /* @__PURE__ */ new Map(), re = (e) => (e || "").replace(/^\/+/, "").replace(/\/+$/, ""), me = (e, t) => {
165
165
  if (!t) return !1;
166
- const s = le(e), n = le(t);
166
+ const s = re(e), n = re(t);
167
167
  return s === n || s.startsWith(n + "/");
168
168
  }, Nt = (e, t) => {
169
- const s = le(e);
169
+ const s = re(e);
170
170
  if (!t) return s;
171
- const n = le(t);
171
+ const n = re(t);
172
172
  if (!s.startsWith(n)) return s;
173
173
  const a = s.substring(n.length);
174
174
  if (!a || a === "/") return s;
175
- const l = a.startsWith("/") ? a.substring(1) : a, r = l.indexOf("/");
176
- return r < 0 ? s : n + "/" + l.substring(0, r);
175
+ const o = a.startsWith("/") ? a.substring(1) : a, r = o.indexOf("/");
176
+ return r < 0 ? s : n + "/" + o.substring(0, r);
177
177
  }, Ft = () => {
178
178
  try {
179
179
  return /** @type {any} */ globalThis.performance?.getEntriesByType?.("navigation")?.[0]?.type === "reload";
@@ -184,21 +184,21 @@ const ge = /* @__PURE__ */ new Map(), le = (e) => (e || "").replace(/^\/+/, "").
184
184
  if (typeof globalThis.history?.pushState == "function") {
185
185
  const e = globalThis.history.pushState, t = globalThis.history.replaceState;
186
186
  globalThis.history.pushState = function(s, n, a) {
187
- z++;
188
- const l = s !== null && typeof s == "object" ? { ...s, _pos: z } : { _pos: z };
189
- return e.call(this, l, n, a);
187
+ O++;
188
+ const o = s !== null && typeof s == "object" ? { ...s, _pos: O } : { _pos: O };
189
+ return e.call(this, o, n, a);
190
190
  }, globalThis.history.replaceState = function(s, n, a) {
191
- const l = globalThis.history.state?._pos ?? z, r = s !== null && typeof s == "object" ? { ...s, _pos: l } : { _pos: l };
191
+ const o = globalThis.history.state?._pos ?? O, r = s !== null && typeof s == "object" ? { ...s, _pos: o } : { _pos: o };
192
192
  return t.call(this, r, n, a);
193
193
  }, globalThis.addEventListener("popstate", (s) => {
194
194
  const n = (
195
195
  /** @type {any} */
196
196
  s.state?._pos
197
197
  );
198
- typeof n == "number" && (z = n);
198
+ typeof n == "number" && (O = n);
199
199
  });
200
200
  }
201
- const Oe = (e) => {
201
+ const Ne = (e) => {
202
202
  const t = globalThis.history?.state || {};
203
203
  if (!(t._entryKey === e.key && t._entryPos === e.pos && t._entrySourcePath === e.sourcePath && t._entryBasePath === e.basePath))
204
204
  try {
@@ -216,31 +216,36 @@ const Oe = (e) => {
216
216
  } catch {
217
217
  }
218
218
  }, Lt = (e) => {
219
- const t = globalThis.history?.state || {}, s = X.path || "", n = Nt(s, e), l = typeof t._entryKey == "string" && t._entryKey ? t._entryKey : `${e || ""}|${n}|${z}`, r = ge.get(l);
220
- if (r && Ot(s, r.basePath))
221
- return Oe(r), r;
222
- const c = t._entryPos, u = t._entrySourcePath, h = t._entryBasePath, y = typeof c == "number" ? c : z, R = typeof u == "string" || u === null ? u : X.lastPath || null, P = {
223
- key: l,
224
- pos: y,
225
- sourcePath: R,
226
- basePath: typeof h == "string" && h ? h : n
219
+ const t = globalThis.history?.state || {}, s = G.path || "", n = Nt(s, e), a = t._entryBasePath, o = typeof a == "string" && a.length > 0 && me(s, a), c = o && typeof t._entryKey == "string" && t._entryKey ? t._entryKey : `${e || ""}|${n}|${O}`, u = le.get(c);
220
+ if (u && me(s, u.basePath))
221
+ return Ne(u), u;
222
+ const f = o ? t._entryPos : void 0, b = o ? t._entrySourcePath : void 0, A = typeof f == "number" ? f : O, B = typeof b == "string" || b === null ? b : G.lastPath || null, z = {
223
+ key: c,
224
+ pos: A,
225
+ sourcePath: B,
226
+ basePath: o && typeof a == "string" && a ? a : n
227
227
  };
228
- return Oe(P), ge.set(l, P), P;
228
+ return Ne(z), le.set(c, z), z;
229
229
  }, Rt = (e) => {
230
- ge.delete(e || "");
230
+ const t = globalThis.history?.state?._entryKey;
231
+ typeof t == "string" && t && le.delete(t), e && le.delete(e);
231
232
  }, At = (e) => {
232
233
  const t = Ft(), s = Lt(e.backUrl);
233
234
  return () => {
234
235
  Rt(e.backUrl);
235
- const n = z - s.pos + 1;
236
+ const n = O - s.pos + 1, a = s.sourcePath, o = typeof a == "string" && a.length > 0 && !me(a, s.basePath);
236
237
  if (!t && s.pos > 0) {
237
238
  globalThis.history.go(-n);
238
239
  return;
239
240
  }
240
- e.backUrl && X.navigate(e.backUrl);
241
+ if (o) {
242
+ G.navigate(a);
243
+ return;
244
+ }
245
+ e.backUrl && G.navigate(e.backUrl);
241
246
  };
242
247
  };
243
- class tt extends S {
248
+ class st extends S {
244
249
  /**
245
250
  * This will set the component context.
246
251
  *
@@ -254,11 +259,11 @@ class tt extends S {
254
259
  return s ? { data: s } : null;
255
260
  }
256
261
  }
257
- const F = (e) => (
262
+ const L = (e) => (
258
263
  /** @type {VeilComponentConstructor} */
259
- B(e, tt)
264
+ M(e, st)
260
265
  );
261
- class Ba extends tt {
266
+ class Ba extends st {
262
267
  /**
263
268
  * Declare public props and their defaults.
264
269
  */
@@ -292,24 +297,24 @@ class Ba extends tt {
292
297
  const t = this.size, s = this.icon, n = this.activeIcon || this.icon, a = (() => {
293
298
  if (this.dataKey) {
294
299
  let r = `[[${this.dataKey}]]`;
295
- return this.formatType === "number" ? r = V.number(r, "0") : this.formatType === "money" ? r = V.roundMoney(r) : this.formatType === "date" ? r = V.date(r) : this.formatType === "percent" && (r = V.percentage(r)), f({ class: "toggle-btn-value text-sm tabular-nums capitalize" }, r);
300
+ return this.formatType === "number" ? r = q.number(r, "0") : this.formatType === "money" ? r = q.roundMoney(r) : this.formatType === "date" ? r = q.date(r) : this.formatType === "percent" && (r = q.percentage(r)), h({ class: "toggle-btn-value text-sm tabular-nums capitalize" }, r);
296
301
  }
297
- return this.value !== null && this.value !== void 0 ? f({ class: "toggle-btn-value text-sm tabular-nums" }, String(this.value)) : null;
298
- })(), l = this.fill;
302
+ return this.value !== null && this.value !== void 0 ? h({ class: "toggle-btn-value text-sm tabular-nums" }, String(this.value)) : null;
303
+ })(), o = this.fill;
299
304
  return v({
300
305
  click: () => this.handleToggle(),
301
306
  // @ts-ignore
302
307
  class: `toggle-btn inline-flex items-center gap-1.5 bg-transparent border-0 p-0 cursor-pointer text-foreground/70 hover:text-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${this.class || ""}`
303
308
  }, [
304
- M(
309
+ P(
305
310
  "active",
306
- (r) => x({ size: t, variant: r && l ? "filled" : "outlined" }, r ? n : s)
311
+ (r) => p({ size: t, variant: r && o ? "filled" : "outlined" }, r ? n : s)
307
312
  ),
308
313
  a
309
314
  ]);
310
315
  }
311
316
  }
312
- const re = {
317
+ const ie = {
313
318
  xs: "w-6 h-6",
314
319
  sm: "w-8 h-8",
315
320
  md: "w-10 h-10",
@@ -348,56 +353,56 @@ class za extends S {
348
353
  * @returns {object}
349
354
  */
350
355
  render() {
351
- const t = this.icon, s = this.activeIcon || this.icon, n = re[this.size] || re.md, a = ["xs", "sm"].includes(this.size) ? "xs" : "sm", l = this.class ?? "bg-background/40 backdrop-blur-sm", r = "text-foreground", c = this.activeClass || r, u = this.circle ?? !1, h = this.fill;
356
+ const t = this.icon, s = this.activeIcon || this.icon, n = ie[this.size] || ie.md, a = ["xs", "sm"].includes(this.size) ? "xs" : "sm", o = this.class ?? "bg-background/40 backdrop-blur-sm", r = "text-foreground", c = this.activeClass || r, u = this.circle ?? !1, f = this.fill;
352
357
  return v({
353
358
  click: () => this.handleToggle(),
354
359
  // @ts-ignore
355
- class: `circle-toggle-btn inline-flex items-center justify-center rounded-full border-0 cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 ${n} ${l}${u ? " rounded-full w-[40px] h-[40px] max-w-[40px]" : ""}`
360
+ class: `circle-toggle-btn inline-flex items-center justify-center rounded-full border-0 cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 ${n} ${o}${u ? " rounded-full w-[40px] h-[40px] max-w-[40px]" : ""}`
356
361
  }, [
357
- M("active", (y) => [
358
- x({
362
+ P("active", (b) => [
363
+ p({
359
364
  size: a,
360
- variant: y && h ? "filled" : "outlined",
361
- class: `transition-colors ${y ? c : r}`
362
- }, y ? s : t)
365
+ variant: b && f ? "filled" : "outlined",
366
+ class: `transition-colors ${b ? c : r}`
367
+ }, b ? s : t)
363
368
  ])
364
369
  ]);
365
370
  }
366
371
  }
367
372
  const Oa = i((e, t) => {
368
- const s = e.size || "md", n = re[s] || re.md, a = ["xs", "sm"].includes(s) ? "xs" : "sm";
373
+ const s = e.size || "md", n = ie[s] || ie.md, a = ["xs", "sm"].includes(s) ? "xs" : "sm";
369
374
  return v({
370
375
  ...e,
371
376
  // @ts-ignore
372
377
  class: `circle-btn inline-flex items-center justify-center rounded-full border-0 bg-background/40 backdrop-blur-sm text-foreground cursor-pointer transition-colors hover:bg-background/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 ${n} ${e.class || ""}`
373
378
  }, [
374
379
  // @ts-ignore
375
- e.icon ? x({ size: a }, e.icon) : null,
380
+ e.icon ? p({ size: a }, e.icon) : null,
376
381
  ...t || []
377
382
  ]);
378
- }), E = (e) => i((t, s) => v({
383
+ }), _ = (e) => i((t, s) => v({
379
384
  ...e,
380
385
  ...t,
381
386
  // @ts-ignore
382
387
  class: `bttn ${e.class} ${t.class || ""}`
383
- }, s)), st = i(
388
+ }, s)), nt = i(
384
389
  (e, t) => v({
385
390
  ...e,
386
391
  // @ts-ignore
387
392
  class: e.class
388
393
  }, [
389
394
  // @ts-ignore
390
- e.icon && e.position !== "right" ? x({ size: e.size || "sm", class: e.animation ?? null }, e.icon) : null,
395
+ e.icon && e.position !== "right" ? p({ size: e.size || "sm", class: e.animation ?? null }, e.icon) : null,
391
396
  ...t || [],
392
397
  // @ts-ignore
393
- e.icon && e.position === "right" ? x({ size: e.size || "sm", class: e.animation ?? null }, e.icon) : null
398
+ e.icon && e.position === "right" ? p({ size: e.size || "sm", class: e.animation ?? null }, e.icon) : null
394
399
  ])
395
- ), Ne = (e) => i((t, s) => st({
400
+ ), Fe = (e) => i((t, s) => nt({
396
401
  ...e,
397
402
  ...t,
398
403
  // @ts-ignore
399
404
  class: `bttn ${e.class} ${t.class || ""}`
400
- }, s)), jt = (e) => i((t, s) => (t.icon = t.icon || g.arrows.left, t.click = t.click || At(t), st({
405
+ }, s)), jt = (e) => i((t, s) => (t.icon = t.icon || g.arrows.left, t.click = t.click || At(t), nt({
401
406
  ...e,
402
407
  ...t
403
408
  }, s))), Et = i((e, t) => {
@@ -414,66 +419,66 @@ const Oa = i((e, t) => {
414
419
  class: `circle-icon-btn inline-flex items-center justify-center rounded-full ${a} text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ring-offset-background transition-colors disabled:pointer-events-none disabled:opacity-50 cursor-pointer ${n[s] || n.md} ${e.class || ""}`
415
420
  }, [
416
421
  // @ts-ignore
417
- e.icon ? x({ size: s === "xs" ? "xs" : "sm" }, e.icon) : null,
422
+ e.icon ? p({ size: s === "xs" ? "xs" : "sm" }, e.icon) : null,
418
423
  ...t || []
419
424
  ]);
420
- }), Fe = {
421
- primary: E({ class: "primary" }),
422
- secondary: E({ class: "secondary" }),
423
- destructive: E({ class: "destructive" }),
424
- warning: E({ class: "warning" }),
425
- outline: E({ class: "outline" }),
426
- ghost: E({ class: "ghost" }),
427
- link: E({ class: "link" }),
428
- icon: Ne({ class: "icon" }),
429
- withIcon: Ne({ class: "with-icon" }),
425
+ }), Le = {
426
+ primary: _({ class: "primary" }),
427
+ secondary: _({ class: "secondary" }),
428
+ destructive: _({ class: "destructive" }),
429
+ warning: _({ class: "warning" }),
430
+ outline: _({ class: "outline" }),
431
+ ghost: _({ class: "ghost" }),
432
+ link: _({ class: "link" }),
433
+ icon: Fe({ class: "icon" }),
434
+ withIcon: Fe({ class: "with-icon" }),
430
435
  back: jt({ class: "with-icon back-button" }),
431
436
  circleIcon: Et
432
- }, b = i((e, t) => (Fe[e.variant] || Fe.primary)(e, t)), Na = i((e, t) => b({ ...e, variant: "withIcon", icon: g.loading, animation: "animate-spin" }, t)), _t = i((e, t) => {
437
+ }, x = i((e, t) => (Le[e.variant] || Le.primary)(e, t)), Na = i((e, t) => x({ ...e, variant: "withIcon", icon: g.loading, animation: "animate-spin" }, t)), _t = i((e, t) => {
433
438
  const s = e.margin ?? "my-5 mx-5", n = e.padding ?? "p-4", a = e.border ?? "border-border";
434
- return e.hover && (e.class += " hover:shadow-lg hover:bg-muted/50"), o({
439
+ return e.hover && (e.class += " hover:shadow-lg hover:bg-muted/50"), l({
435
440
  ...e,
436
441
  // @ts-ignore
437
442
  class: `rounded-lg ${a} bg-card text-card-foreground shadow-md min-w-[120px] min-h-[80px] ${s} ${n} ${e.class || ""}`
438
443
  }, t);
439
- }), Ht = i((e, t) => gt({
444
+ }), Ht = i((e, t) => mt({
440
445
  ...e,
441
446
  // @ts-ignore
442
447
  class: ` font-medium -mt-4 -mx-1 px-2 py-2 ${e.class || ""}`
443
448
  }, t)), Fa = i((e, t) => {
444
449
  const s = e.border === "full" ? "border rounded-md" : "border-t";
445
- return mt({
450
+ return bt({
446
451
  ...e,
447
452
  // @ts-ignore
448
453
  class: `p-6 ${s} ${e.class || ""}`
449
454
  }, [
450
455
  // @ts-ignore
451
456
  e.legend && Ht(e.legend),
452
- o({ class: "flex flex-auto flex-col gap-y-6" }, t)
457
+ l({ class: "flex flex-auto flex-col gap-y-6" }, t)
453
458
  ]);
454
459
  }), Ut = i((e, t) => {
455
460
  const s = e.border === !0 ? "border-t" : "";
456
- return o({
461
+ return l({
457
462
  ...e,
458
463
  // @ts-ignore
459
464
  class: `grid grid-cols-1 gap-y-4 sm:grid-cols-[1fr_2fr] sm:gap-x-6 pt-8 ${s} ${e.class || ""}`
460
465
  }, [
461
466
  // @ts-ignore
462
- e.label && o({
467
+ e.label && l({
463
468
  // @ts-ignore
464
469
  ...e.labelProps,
465
470
  // @ts-ignore
466
471
  class: `flex flex-auto flex-col gap-y-1 ${e.labelProps?.class || ""}`
467
472
  }, [
468
473
  // @ts-ignore
469
- Ke({ class: "text-base" }, e.label),
474
+ Qe({ class: "text-base" }, e.label),
470
475
  // @ts-ignore
471
476
  e.description && k({ class: "text-sm text-muted-foreground" }, e.description)
472
477
  ]),
473
478
  // Controls container: grows to fill remaining space, spacing between items
474
- o({ class: "flex flex-col gap-y-4" }, t)
479
+ l({ class: "flex flex-col gap-y-4" }, t)
475
480
  ]);
476
- }), Yt = "flex h-10 w-full px-3 py-2 text-sm", D = "rounded-md border border-border bg-input", $ = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background", C = "disabled:cursor-not-allowed disabled:opacity-50 [&:user-invalid]:border-destructive", W = "placeholder:text-muted-foreground", Ce = `${Yt} ${D} ${$} ${W} ${C}`, Wt = ({ id: e, checked: t, bind: s, required: n }) => me({
481
+ }), Yt = "flex h-10 w-full px-3 py-2 text-sm", D = "rounded-md border border-border bg-input", $ = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background", C = "disabled:cursor-not-allowed disabled:opacity-50 [&:user-invalid]:border-destructive", W = "placeholder:text-muted-foreground", Se = `${Yt} ${D} ${$} ${W} ${C}`, Vt = ({ id: e, checked: t, bind: s, required: n }) => be({
477
482
  id: e,
478
483
  cache: "checkbox",
479
484
  class: "absolute opacity-0 w-full h-full cursor-pointer pointer-events-none",
@@ -483,15 +488,15 @@ const Oa = i((e, t) => {
483
488
  required: n,
484
489
  checked: t,
485
490
  bind: s
486
- }), Vt = () => f({ class: "absolute text-xs pointer-events-none" }, [
487
- M(
491
+ }), Wt = () => h({ class: "absolute text-xs pointer-events-none" }, [
492
+ P(
488
493
  "checked",
489
- (e) => e ? U({
494
+ (e) => e ? Y({
490
495
  class: "w-2 h-2 pointer-events-none",
491
496
  html: g.check
492
497
  }) : null
493
498
  )
494
- ]), qt = ({ id: e, bind: t, checked: s, required: n, clickHandler: a }) => o({
499
+ ]), qt = ({ id: e, bind: t, checked: s, required: n, clickHandler: a }) => l({
495
500
  class: `relative flex items-center justify-center w-5 h-5 transition-colors duration-200 hover:border-accent-foreground
496
501
  rounded-md border
497
502
  ${$}
@@ -511,13 +516,13 @@ const Oa = i((e, t) => {
511
516
  tabIndex: 0,
512
517
  click: a
513
518
  }, [
514
- Wt({ bind: t, checked: s, id: e, required: n }),
515
- Vt()
516
- ]), Gt = ({ id: e, label: t, clickHandler: s }) => Y({
519
+ Vt({ bind: t, checked: s, id: e, required: n }),
520
+ Wt()
521
+ ]), Gt = ({ id: e, label: t, clickHandler: s }) => V({
517
522
  class: "text-base cursor-pointer",
518
523
  htmlFor: e,
519
524
  click: s
520
- }, t), Kt = B(
525
+ }, t), Kt = M(
521
526
  {
522
527
  /**
523
528
  * This will initialize the state of the checkbox.
@@ -555,7 +560,7 @@ const Oa = i((e, t) => {
555
560
  */
556
561
  render() {
557
562
  const e = this.getId(), t = (s) => this.clickHandler(s);
558
- return o({ class: `flex items-center gap-x-2 cursor-pointer ${this.class || ""}` }, [
563
+ return l({ class: `flex items-center gap-x-2 cursor-pointer ${this.class || ""}` }, [
559
564
  qt({
560
565
  id: e,
561
566
  // @ts-ignore
@@ -626,25 +631,25 @@ const Oa = i((e, t) => {
626
631
  "pointer-events-none select-none"
627
632
  ].join(" ");
628
633
  let as = 0;
629
- const Se = (e) => e.id || e.name || `floating-${++as}`, $e = (e, t, s, n) => e ? Y(
634
+ const $e = (e) => e.id || e.name || `floating-${++as}`, De = (e, t, s, n) => e ? V(
630
635
  { htmlFor: s, class: n },
631
- t ? [f(e), f({ class: "text-destructive ml-0.5" }, "*")] : e
632
- ) : null, os = () => U({
636
+ t ? [h(e), h({ class: "text-destructive ml-0.5" }, "*")] : e
637
+ ) : null, os = () => Y({
633
638
  class: "absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none w-4 h-4 text-foreground-secondary",
634
639
  html: g.chevron.single.down
635
- }), ne = i((e) => {
636
- const t = Se(e);
637
- return o({ class: "relative" }, [
638
- p({
640
+ }), ae = i((e) => {
641
+ const t = $e(e);
642
+ return l({ class: "relative" }, [
643
+ y({
639
644
  ...e,
640
645
  id: t,
641
646
  placeholder: " ",
642
647
  class: `${Xt} ${e.class || ""}`.trim()
643
648
  }),
644
- $e(e.label, e.required, t, ts)
649
+ De(e.label, e.required, t, ts)
645
650
  ]);
646
651
  }), La = i(
647
- (e) => ne({
652
+ (e) => ae({
648
653
  ...e,
649
654
  type: "tel",
650
655
  name: e.name || "Phone",
@@ -653,56 +658,56 @@ const Se = (e) => e.id || e.name || `floating-${++as}`, $e = (e, t, s, n) => e ?
653
658
  keyup: Jt
654
659
  })
655
660
  ), Ra = i(
656
- (e) => ne({
661
+ (e) => ae({
657
662
  ...e,
658
663
  type: "email",
659
664
  name: e.name || "Email",
660
665
  label: e.label || "Email"
661
666
  })
662
667
  ), Aa = i(
663
- (e) => ne({
668
+ (e) => ae({
664
669
  ...e,
665
670
  type: "password",
666
671
  name: e.name || "Password",
667
672
  label: e.label || "Password"
668
673
  })
669
674
  ), ja = i(
670
- (e) => ne({
675
+ (e) => ae({
671
676
  ...e,
672
677
  type: "number"
673
678
  })
674
679
  ), Ea = i(
675
- (e) => ne({
680
+ (e) => ae({
676
681
  ...e,
677
682
  type: "url",
678
683
  name: e.name || "Url",
679
684
  label: e.label || "URL"
680
685
  })
681
686
  ), _a = i((e) => {
682
- const t = Se(e);
683
- return o({ class: "relative" }, [
684
- Qe({
687
+ const t = $e(e);
688
+ return l({ class: "relative" }, [
689
+ Je({
685
690
  ...e,
686
691
  id: t,
687
692
  placeholder: " ",
688
693
  class: `${Zt} ${e.class || ""}`.trim()
689
694
  }),
690
- $e(e.label, e.required, t, ss)
695
+ De(e.label, e.required, t, ss)
691
696
  ]);
692
697
  }), Ha = i((e) => {
693
- const t = Se(e), { options: s, onCreated: n, ...a } = e;
694
- return o({ class: "relative" }, [
698
+ const t = $e(e), { options: s, onCreated: n, ...a } = e;
699
+ return l({ class: "relative" }, [
695
700
  {
696
701
  tag: "select",
697
702
  ...a,
698
703
  id: t,
699
704
  class: `[&>option]:text-foreground [&>option]:bg-background ${es} ${a.class || ""}`.trim(),
700
- onCreated(l) {
701
- s && Ze.setupSelectOptions(l, s), typeof n == "function" && n(l);
705
+ onCreated(o) {
706
+ s && et.setupSelectOptions(o, s), typeof n == "function" && n(o);
702
707
  }
703
708
  },
704
709
  os(),
705
- $e(e.label, e.required, t, ns)
710
+ De(e.label, e.required, t, ns)
706
711
  ]);
707
712
  }), ls = (e) => {
708
713
  if (!e || e.length === 0) return "";
@@ -711,11 +716,11 @@ const Se = (e) => e.id || e.name || `floating-${++as}`, $e = (e, t, s, n) => e ?
711
716
  }, rs = (e) => {
712
717
  const t = e.target, s = ls(t.value);
713
718
  s && (t.value = s);
714
- }, L = i((e) => p({
719
+ }, R = i((e) => y({
715
720
  ...e,
716
721
  // @ts-ignore
717
- class: `${Ce} ${e.class || ""}`.trim()
718
- })), Ua = i((e) => L({
722
+ class: `${Se} ${e.class || ""}`.trim()
723
+ })), Ua = i((e) => R({
719
724
  ...e,
720
725
  type: "tel",
721
726
  // @ts-ignore
@@ -726,7 +731,7 @@ const Se = (e) => e.id || e.name || `floating-${++as}`, $e = (e, t, s, n) => e ?
726
731
  // @ts-ignore
727
732
  pattern: e.pattern || "\\(\\d{3}\\) \\d{3}-\\d{4}",
728
733
  keyup: rs
729
- })), Ya = i((e) => L({
734
+ })), Ya = i((e) => R({
730
735
  ...e,
731
736
  type: "email",
732
737
  // @ts-ignore
@@ -734,77 +739,77 @@ const Se = (e) => e.id || e.name || `floating-${++as}`, $e = (e, t, s, n) => e ?
734
739
  // @ts-ignore
735
740
  label: e.label || "Email",
736
741
  placeholder: "Email address"
737
- })), Wa = i((e) => Qe({
742
+ })), Va = i((e) => Je({
738
743
  ...e,
739
744
  as: "textarea",
740
745
  // @ts-ignore
741
746
  class: `flex w-full h-24 px-3 py-2 text-sm ${D} ${$} ${W} ${C} ${e.class || ""}`.trim()
742
- })), Va = (e = {}) => o({ class: "flex items-center gap-x-2" }, [
743
- p({
747
+ })), Wa = (e = {}) => l({ class: "flex items-center gap-x-2" }, [
748
+ y({
744
749
  ...e,
745
750
  type: "radio",
746
751
  class: "cursor-pointer appearance-none h-4 w-4 border rounded-full checked:border-primary checked:bg-primary focus:ring focus:ring-primary".trim()
747
752
  }),
748
- e.label && Y({ forHTML: e.value, class: "cursor-pointer" }, e.label)
749
- ]), qa = i((e) => p({
753
+ e.label && V({ forHTML: e.value, class: "cursor-pointer" }, e.label)
754
+ ]), qa = i((e) => y({
750
755
  ...e,
751
756
  type: "date",
752
757
  // @ts-ignore
753
758
  class: `${D} ${$} ${W} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
754
- })), Ga = i((e) => p({
759
+ })), Ga = i((e) => y({
755
760
  ...e,
756
761
  type: "time",
757
762
  // @ts-ignore
758
763
  class: `${D} ${$} ${W} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
759
- })), Ka = i((e) => p({
764
+ })), Ka = i((e) => y({
760
765
  ...e,
761
766
  type: "datetime-local",
762
767
  // @ts-ignore
763
768
  class: `${D} ${$} ${W} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
764
- })), Qa = i((e) => p({
769
+ })), Qa = i((e) => y({
765
770
  ...e,
766
771
  type: "month",
767
772
  // @ts-ignore
768
773
  class: `${D} ${$} ${W} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
769
- })), Ja = i((e) => p({
774
+ })), Ja = i((e) => y({
770
775
  ...e,
771
776
  type: "week",
772
777
  // @ts-ignore
773
778
  class: `${D} ${$} ${W} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
774
- })), Xa = i((e) => L({
779
+ })), Xa = i((e) => R({
775
780
  ...e,
776
781
  type: "number"
777
- })), Za = i((e) => L({
782
+ })), Za = i((e) => R({
778
783
  ...e,
779
784
  type: "password"
780
785
  }));
781
- i((e) => L({
786
+ i((e) => R({
782
787
  ...e,
783
788
  type: "search"
784
789
  }));
785
- const eo = i((e) => L({
790
+ const eo = i((e) => R({
786
791
  ...e,
787
792
  type: "url"
788
- })), to = i((e) => L({
793
+ })), to = i((e) => R({
789
794
  ...e,
790
795
  type: "hidden"
791
- })), so = i((e) => p({
796
+ })), so = i((e) => y({
792
797
  ...e,
793
798
  type: "color",
794
799
  // @ts-ignore
795
800
  class: `${D} text-foreground p-0 ${C} ${e.class || ""}`.trim()
796
801
  }));
797
- i((e) => me({
802
+ i((e) => be({
798
803
  ...e,
799
804
  // @ts-ignore
800
805
  class: `flex h-4 w-4 text-foreground ${D} ${$} ${C} ${e.class || ""}`.trim()
801
806
  }));
802
- const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", no = i((e) => p({
807
+ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", no = i((e) => y({
803
808
  ...e,
804
809
  type: "file",
805
810
  // @ts-ignore
806
- class: `${Ce} ${is} ${e.class || ""}`.trim()
807
- })), ao = F(
811
+ class: `${Se} ${is} ${e.class || ""}`.trim()
812
+ })), ao = L(
808
813
  {
809
814
  /**
810
815
  * This will create the initial state of the RangeSlider.
@@ -834,17 +839,17 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
834
839
  * @returns {object}
835
840
  */
836
841
  render() {
837
- return o({ class: "relative w-full h-4 flex items-center" }, [
842
+ return l({ class: "relative w-full h-4 flex items-center" }, [
838
843
  // Track
839
- o({ class: "absolute h-2 w-full rounded-full bg-muted" }),
840
- q(({ state: e }) => [
844
+ l({ class: "absolute h-2 w-full rounded-full bg-muted" }),
845
+ K(({ state: e }) => [
841
846
  // Filled Track
842
- o({
847
+ l({
843
848
  class: "absolute h-2 bg-primary rounded-full",
844
849
  style: ["width: [[filledPercentage]]%", e]
845
850
  }),
846
851
  // Thumb
847
- o({
852
+ l({
848
853
  class: `
849
854
  absolute block h-5 w-5 rounded-full border-2 border-primary bg-background
850
855
  ring-offset-background transition-colors focus-visible:outline-none
@@ -854,7 +859,7 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
854
859
  style: ["left: [[filledPercentage]]%", e]
855
860
  }),
856
861
  // Hidden Range Input
857
- p({
862
+ y({
858
863
  type: "range",
859
864
  min: ["[[min]]", e],
860
865
  max: ["[[max]]", e],
@@ -881,25 +886,25 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
881
886
  return {
882
887
  tag: "select",
883
888
  onCreated(a) {
884
- t && Ze.setupSelectOptions(a, t), s && s(a);
889
+ t && et.setupSelectOptions(a, t), s && s(a);
885
890
  },
886
891
  ...n,
887
- class: `[&>option]:text-foreground [&>option]:bg-background ${Ce} ${n.class || ""}`.trim()
892
+ class: `[&>option]:text-foreground [&>option]:bg-background ${Se} ${n.class || ""}`.trim()
888
893
  };
889
- }), cs = i(({ src: e, alt: t, class: s, checkPath: n = !0, loading: a = "lazy", decoding: l = "async", fetchPriority: r = "auto" }) => !e || (s = s || "", n && e.indexOf(".") === -1 && e.indexOf("[[") === -1) ? null : be({
894
+ }), cs = i(({ src: e, alt: t, class: s, checkPath: n = !0, loading: a = "lazy", decoding: o = "async", fetchPriority: r = "auto" }) => !e || (s = s || "", n && e.indexOf(".") === -1 && e.indexOf("[[") === -1) ? null : xe({
890
895
  class: `absolute w-full h-full object-cover fadeIn ${s}`,
891
896
  src: e,
892
897
  alt: t,
893
898
  loading: a,
894
- decoding: l,
899
+ decoding: o,
895
900
  fetchPriority: r,
896
901
  load: (c) => c.target.style.visibility = "visible",
897
902
  /**
898
903
  * If there's an error loading the image, hide it.
899
904
  */
900
905
  error: (c) => c.target.style.visibility = "hidden"
901
- })), ds = (e) => !e || isNaN(e) ? null : e, Le = (e, t) => {
902
- const s = e, n = 16, a = 2 * Math.PI * n, l = s / 100 * a, r = `
906
+ })), ds = (e) => !e || isNaN(e) ? null : e, Re = (e, t) => {
907
+ const s = e, n = 16, a = 2 * Math.PI * n, o = s / 100 * a, r = `
903
908
  <svg class="w-40 h-40 mx-auto" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg">
904
909
  <!-- Background Circle -->
905
910
  <circle
@@ -922,7 +927,7 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
922
927
  stroke-width="4"
923
928
  class="stroke-primary"
924
929
  stroke-dasharray="${a}"
925
- stroke-dashoffset="${a - l}"
930
+ stroke-dashoffset="${a - o}"
926
931
  stroke-linecap="round"
927
932
  class="${t}"
928
933
  />
@@ -937,24 +942,24 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
937
942
  </text>
938
943
  </svg>
939
944
  `;
940
- return o({
945
+ return l({
941
946
  class: "circle-graph text-inherit",
942
947
  html: r
943
948
  });
944
949
  }, lo = i((e) => {
945
- const t = e.progress || 0, s = e.class || "", n = Le(t, s);
946
- return o({
950
+ const t = e.progress || 0, s = e.class || "", n = Re(t, s);
951
+ return l({
947
952
  class: "circle-graph-wrap",
948
953
  onSet: [
949
954
  // @ts-ignore
950
955
  e.prop,
951
- (a) => (a = ds(a), a ? Le(a, s) : n)
956
+ (a) => (a = ds(a), a ? Re(a, s) : n)
952
957
  ]
953
958
  }, [n]);
954
- }), us = () => q(({ state: e }) => o({
959
+ }), us = () => K(({ state: e }) => l({
955
960
  class: "absolute h-full rounded-full bg-primary transition-all duration-300",
956
961
  style: ["width: [[progress]]%;", e]
957
- })), ro = F(
962
+ })), ro = L(
958
963
  {
959
964
  /**
960
965
  * This will render the progress bar component.
@@ -962,7 +967,7 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
962
967
  * @returns {object}
963
968
  */
964
969
  render() {
965
- return o({ class: "relative w-full h-4 rounded-full bg-muted" }, [
970
+ return l({ class: "relative w-full h-4 rounded-full bg-muted" }, [
966
971
  us()
967
972
  ]);
968
973
  },
@@ -1012,19 +1017,19 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
1012
1017
  background: s = !0,
1013
1018
  blur: n = !0,
1014
1019
  backgroundClass: a = "bg-background/95",
1015
- blurClass: l = "backdrop-blur",
1020
+ blurClass: o = "backdrop-blur",
1016
1021
  zIndexClass: r = "z-9999",
1017
1022
  style: c = ""
1018
1023
  } = e, u = [
1019
1024
  "sticky bottom-0 left-0 right-0 w-full",
1020
1025
  r,
1021
1026
  s ? a : "",
1022
- n ? l : "",
1027
+ n ? o : "",
1023
1028
  t
1024
- ].filter(Boolean).join(" "), h = `height: env(safe-area-inset-bottom, 0px);${c ? ` ${c}` : ""}`;
1025
- return o({
1029
+ ].filter(Boolean).join(" "), f = `height: env(safe-area-inset-bottom, 0px);${c ? ` ${c}` : ""}`;
1030
+ return l({
1026
1031
  class: u,
1027
- style: h,
1032
+ style: f,
1028
1033
  "aria-hidden": "true"
1029
1034
  });
1030
1035
  }), co = i((e = {}) => {
@@ -1033,22 +1038,22 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
1033
1038
  background: s = !0,
1034
1039
  blur: n = !0,
1035
1040
  backgroundClass: a = "bg-background/95",
1036
- blurClass: l = "backdrop-blur",
1041
+ blurClass: o = "backdrop-blur",
1037
1042
  zIndexClass: r = "z-9999",
1038
1043
  style: c = ""
1039
1044
  } = e, u = [
1040
1045
  "fixed top-0 left-0 right-0 w-full",
1041
1046
  r,
1042
1047
  s ? a : "",
1043
- n ? l : "",
1048
+ n ? o : "",
1044
1049
  t
1045
- ].filter(Boolean).join(" "), h = `height: env(safe-area-inset-top, 0px);${c ? ` ${c}` : ""}`;
1046
- return o({
1050
+ ].filter(Boolean).join(" "), f = `height: env(safe-area-inset-top, 0px);${c ? ` ${c}` : ""}`;
1051
+ return l({
1047
1052
  class: u,
1048
- style: h,
1053
+ style: f,
1049
1054
  "aria-hidden": "true"
1050
1055
  });
1051
- }), Re = {
1056
+ }), Ae = {
1052
1057
  top: "bottom-full left-1/2 transform -translate-x-1/2 mb-2",
1053
1058
  "top-right": "bottom-full left-full transform -translate-x-1 mb-2",
1054
1059
  "top-left": "bottom-full right-full transform translate-x-1 mb-2",
@@ -1057,19 +1062,19 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
1057
1062
  "bottom-left": "top-full right-full transform translate-x-1 mt-2",
1058
1063
  left: "top-1/2 right-full transform -translate-y-1/2 mr-2",
1059
1064
  right: "top-1/2 left-full transform -translate-y-1/2 ml-2"
1060
- }, hs = (e) => Re[String(e)] || Re.top, uo = i(({ position: e = "top", content: t }, s) => {
1065
+ }, hs = (e) => Ae[String(e)] || Ae.top, uo = i(({ position: e = "top", content: t }, s) => {
1061
1066
  const n = hs(e);
1062
- return Array.isArray(s) === !1 && (s = [s]), o({ class: "relative group inline-block" }, [
1067
+ return Array.isArray(s) === !1 && (s = [s]), l({ class: "relative group inline-block" }, [
1063
1068
  ...s,
1064
1069
  // Tooltip box
1065
- f({
1070
+ h({
1066
1071
  class: `
1067
1072
  absolute z-20 px-2 py-1 border text-sm bg-background rounded shadow-md opacity-0 whitespace-nowrap
1068
1073
  group-hover:opacity-100 transition-opacity duration-200 ${n} pointer-events-none
1069
1074
  `
1070
1075
  }, t)
1071
1076
  ]);
1072
- }), Ae = {
1077
+ }), je = {
1073
1078
  info: {
1074
1079
  borderColor: "border-blue-500",
1075
1080
  bgColor: "bg-muted/10",
@@ -1095,32 +1100,32 @@ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
1095
1100
  bgColor: "bg-muted/10",
1096
1101
  iconColor: "text-muted-foreground"
1097
1102
  }
1098
- }, fs = (e, t) => o({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
1099
- x({ size: "sm" }, e)
1100
- ]), gs = (e) => bt({ class: "font-semibold" }, e), ms = (e) => k({ class: "text-sm text-muted-foreground" }, e), ho = i(({ title: e, description: t, icon: s, type: n = "default" }) => {
1101
- const { borderColor: a, bgColor: l, iconColor: r } = Ae[n] || Ae.default;
1102
- return o({ class: `flex items-start p-4 border rounded-lg ${l} ${a}` }, [
1103
+ }, fs = (e, t) => l({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
1104
+ p({ size: "sm" }, e)
1105
+ ]), gs = (e) => xt({ class: "font-semibold" }, e), ms = (e) => k({ class: "text-sm text-muted-foreground" }, e), ho = i(({ title: e, description: t, icon: s, type: n = "default" }) => {
1106
+ const { borderColor: a, bgColor: o, iconColor: r } = je[n] || je.default;
1107
+ return l({ class: `flex items-start p-4 border rounded-lg ${o} ${a}` }, [
1103
1108
  // Icon and content
1104
1109
  s && fs(s, r),
1105
- o({ class: "flex flex-col" }, [
1110
+ l({ class: "flex flex-col" }, [
1106
1111
  gs(e),
1107
1112
  ms(t)
1108
1113
  ])
1109
1114
  ]);
1110
1115
  }), bs = (e, t) => {
1111
- const s = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, n = t.getBoundingClientRect(), a = 10, l = globalThis.scrollX, r = globalThis.scrollY;
1112
- let c = s.left + l, u = s.bottom + r;
1113
- const h = globalThis.innerHeight - s.bottom, y = s.top;
1114
- return c + n.width > globalThis.innerWidth && (c = globalThis.innerWidth - n.width - a), h < n.height && y > h ? u = s.top + r - n.height - a : h < n.height && (u = s.bottom + r - (n.height - h) - a), { x: c, y: u };
1116
+ const s = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, n = t.getBoundingClientRect(), a = 10, o = globalThis.scrollX, r = globalThis.scrollY;
1117
+ let c = s.left + o, u = s.bottom + r;
1118
+ const f = globalThis.innerHeight - s.bottom, b = s.top;
1119
+ return c + n.width > globalThis.innerWidth && (c = globalThis.innerWidth - n.width - a), f < n.height && b > f ? u = s.top + r - n.height - a : f < n.height && (u = s.bottom + r - (n.height - f) - a), { x: c, y: u };
1115
1120
  };
1116
- class ae extends S {
1121
+ class oe extends S {
1117
1122
  /**
1118
1123
  * This will set up the data.
1119
1124
  *
1120
1125
  * @returns {object}
1121
1126
  */
1122
1127
  setData() {
1123
- const t = this.parent.data || new N();
1128
+ const t = this.parent.data || new F();
1124
1129
  return t.set({
1125
1130
  position: { x: 0, y: 0 }
1126
1131
  }), t;
@@ -1161,7 +1166,7 @@ class ae extends S {
1161
1166
  */
1162
1167
  render() {
1163
1168
  const t = this.getSize();
1164
- return o({
1169
+ return l({
1165
1170
  class: `absolute inset-auto fadeIn mt-2 rounded-md p-0 shadow-lg bg-popover min-h-12 backdrop:bg-transparent text-inherit r z-30 ${t}`,
1166
1171
  popover: "manual",
1167
1172
  toggle: (s, { state: n }) => s.newState === "closed" ? n.open = !1 : null,
@@ -1242,21 +1247,21 @@ class ae extends S {
1242
1247
  this?.panel?.hidePopover();
1243
1248
  }
1244
1249
  }
1245
- const xs = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t)), ps = i((e, t) => Y({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), ys = i((e, t) => k({ ...e, class: "text-sm text-muted-foreground italic" }, t)), ws = i((e, t) => k({ ...e, class: "text-sm text-destructive" }, t)), fo = i((e, t = []) => _t({ class: "flex flex-auto flex-col gap-y-0", margin: "m-0", padding: "p-0" }, [
1250
+ const xs = i((e, t) => l({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t)), ps = i((e, t) => V({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), ys = i((e, t) => k({ ...e, class: "text-sm text-muted-foreground italic" }, t)), ws = i((e, t) => k({ ...e, class: "text-sm text-destructive" }, t)), fo = i((e, t = []) => _t({ class: "flex flex-auto flex-col gap-y-0", margin: "m-0", padding: "p-0" }, [
1246
1251
  // @ts-ignore
1247
- e.title && Z({ class: "text-lg font-semibold py-4 px-6" }, e.title),
1252
+ e.title && ee({ class: "text-lg font-semibold py-4 px-6" }, e.title),
1248
1253
  // @ts-ignore
1249
1254
  e.description && k({ class: "text-sm text-muted-foreground pb-4 px-6 max-w-[700px]" }, e.description),
1250
1255
  ...t
1251
1256
  ])), go = i((e, t = []) => (
1252
1257
  // @ts-ignore
1253
1258
  Ut({ label: e.label, description: e.description, class: "py-4 px-6", border: e.border }, [
1254
- o({ class: "flex flex-col gap-y-6" }, t)
1259
+ l({ class: "flex flex-col gap-y-6" }, t)
1255
1260
  ])
1256
1261
  )), mo = i((e, t = []) => {
1257
1262
  const s = e.border ? "border-t" : "";
1258
- return o({ ...e, class: `flex flex-col pb-4 px-6 gap-y-4 ${s} ${e.class || ""}` }, t);
1259
- }), vs = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", nt = (e, t, s) => e.map((n) => !n || (n.children && n.children.length > 0 && (n.children = nt(n.children, t, s)), !n.required) ? n : vs(n) ? {
1263
+ return l({ ...e, class: `flex flex-col pb-4 px-6 gap-y-4 ${s} ${e.class || ""}` }, t);
1264
+ }), vs = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", at = (e, t, s) => e.map((n) => !n || (n.children && n.children.length > 0 && (n.children = at(n.children, t, s)), !n.required) ? n : vs(n) ? {
1260
1265
  ...n,
1261
1266
  aria: {
1262
1267
  invalid: ["hasError"]
@@ -1264,16 +1269,16 @@ const xs = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1264
1269
  invalid: s,
1265
1270
  input: t
1266
1271
  } : n), ks = i((e, t) => {
1267
- const a = nt(t, (l) => {
1268
- l.target.checkValidity() && e.setError(null);
1269
- }, (l) => {
1270
- e.setError(l.target.validationMessage);
1272
+ const a = at(t, (o) => {
1273
+ o.target.checkValidity() && e.setError(null);
1274
+ }, (o) => {
1275
+ e.setError(o.target.validationMessage);
1271
1276
  });
1272
- return o({
1277
+ return l({
1273
1278
  ...e,
1274
1279
  class: "w-full"
1275
1280
  }, a);
1276
- }), bo = F(
1281
+ }), bo = L(
1277
1282
  {
1278
1283
  /**
1279
1284
  * The initial state of the FormField.
@@ -1294,10 +1299,10 @@ const xs = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1294
1299
  * @returns {object}
1295
1300
  */
1296
1301
  render() {
1297
- const e = this.name, t = this.getId(`${e}`), { label: s, description: n } = this, a = (l) => {
1298
- this.state.error = l, this.state.hasError = !!l;
1302
+ const e = this.name, t = this.getId(`${e}`), { label: s, description: n } = this, a = (o) => {
1303
+ this.state.error = o, this.state.hasError = !!o;
1299
1304
  };
1300
- return o({ class: "flex flex-auto gap-y-4" }, [
1305
+ return l({ class: "flex flex-auto gap-y-4" }, [
1301
1306
  xs([
1302
1307
  ps({ htmlFor: t }, s),
1303
1308
  ks({
@@ -1307,36 +1312,36 @@ const xs = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1307
1312
  setError: a
1308
1313
  }, this.children),
1309
1314
  n && ys({ id: this.getId("description") }, n),
1310
- o({ onState: ["error", (l) => l && ws(l)] })
1315
+ l({ onState: ["error", (o) => o && ws(o)] })
1311
1316
  ])
1312
1317
  ]);
1313
1318
  }
1314
1319
  }
1315
1320
  ), Cs = (e, t, s = null) => {
1316
1321
  e.target.checkValidity() && (e.preventDefault(), s && s(e, t));
1317
- }, at = i(
1322
+ }, ot = i(
1318
1323
  (e, t) => (
1319
1324
  // @ts-ignore
1320
- xt({ ...e, submit: (s, n) => Cs(s, n, e.submit), class: `w-full ${e.class ?? ""}` }, t)
1325
+ pt({ ...e, submit: (s, n) => Cs(s, n, e.submit), class: `w-full ${e.class ?? ""}` }, t)
1321
1326
  )
1322
1327
  ), xo = i((e, t) => (
1323
1328
  // @ts-ignore
1324
- o({ ...e, class: `flex flex-auto flex-col gap-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)
1325
- )), po = i((e, t = []) => o({ class: "flex flex-col gap-y-3 py-4" }, [
1329
+ l({ ...e, class: `flex flex-auto flex-col gap-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)
1330
+ )), po = i((e, t = []) => l({ class: "flex flex-col gap-y-3 py-4" }, [
1326
1331
  // @ts-ignore
1327
- e.title && Z({ class: "font-semibold" }, e.title),
1332
+ e.title && ee({ class: "font-semibold" }, e.title),
1328
1333
  ...t
1329
- ])), yo = (e, t) => o({ class: "flex justify-between" }, [
1330
- f({ class: "text-muted-foreground" }, e),
1331
- f(t)
1332
- ]), wo = (e, t) => o({ class: "flex" }, [
1333
- f({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
1334
- f(t)
1335
- ]), Ss = i(({ title: e, description: t, back: s, icon: n, options: a = [], titleCenter: l = !1 }) => ee({ class: "modal-header bg-background/80 backdrop-blur-md sticky flex flex-none items-center py-4 px-6 z-10 min-w-0" }, [
1334
+ ])), yo = (e, t) => l({ class: "flex justify-between" }, [
1335
+ h({ class: "text-muted-foreground" }, e),
1336
+ h(t)
1337
+ ]), wo = (e, t) => l({ class: "flex" }, [
1338
+ h({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
1339
+ h(t)
1340
+ ]), Ss = i(({ title: e, description: t, back: s, icon: n, options: a = [], titleCenter: o = !1 }) => te({ class: "modal-header bg-background/80 backdrop-blur-md sticky flex flex-none items-center py-4 px-6 z-10 min-w-0" }, [
1336
1341
  /**
1337
1342
  * Back Button (Mobile Only)
1338
1343
  */
1339
- s && b({
1344
+ s && x({
1340
1345
  variant: "icon",
1341
1346
  icon: g.arrows.left,
1342
1347
  class: "mr-2 p-0 flex sm:hidden",
@@ -1345,39 +1350,39 @@ const xs = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1345
1350
  /**
1346
1351
  * Icon Container
1347
1352
  */
1348
- n && o({ class: "mr-2 w-12 h-12 rounded-full bg-muted flex flex-none items-center justify-center" }, [
1349
- x({ size: "md" }, n)
1353
+ n && l({ class: "mr-2 w-12 h-12 rounded-full bg-muted flex flex-none items-center justify-center" }, [
1354
+ p({ size: "md" }, n)
1350
1355
  ]),
1351
- o({ class: "flex flex-auto flex-row justify-between ml-2 gap-2 min-w-0" }, [
1352
- o({ class: `flex flex-auto flex-col min-w-0 ${l ? "items-center" : ""}` }, [
1353
- Z({ class: "text-lg font-semibold m-0 truncate" }, e),
1354
- t && o({ class: "text-sm text-muted-foreground truncate" }, t)
1356
+ l({ class: "flex flex-auto flex-row justify-between ml-2 gap-2 min-w-0" }, [
1357
+ l({ class: `flex flex-auto flex-col min-w-0 ${o ? "items-center" : ""}` }, [
1358
+ ee({ class: "text-lg font-semibold m-0 truncate" }, e),
1359
+ t && l({ class: "text-sm text-muted-foreground truncate" }, t)
1355
1360
  ]),
1356
- o({ class: "flex flex-none items-center gap-2" }, a)
1361
+ l({ class: "flex flex-none items-center gap-2" }, a)
1357
1362
  ])
1358
1363
  ])), vo = i((e, t) => {
1359
1364
  const s = e.class?.includes("drawer");
1360
- return o({
1365
+ return l({
1361
1366
  popover: "manual",
1362
1367
  // @ts-ignore
1363
1368
  class: `modal ${s ? "" : "m-auto top-0 right-0 bottom-0 left-0"} ${s ? "" : "h-full max-h-screen"} fixed z-20 grid w-full gap-2 lg:border bg-background text-foreground shadow-xl wrap-break-words p-0 overflow-y-auto overscroll-y-contain ${e.class}`,
1364
- click: (l, r) => {
1365
- l.target === r.panel && (l.preventDefault(), l.stopPropagation(), r.state.open = !1);
1369
+ click: (o, r) => {
1370
+ o.target === r.panel && (o.preventDefault(), o.stopPropagation(), r.state.open = !1);
1366
1371
  }
1367
1372
  }, [
1368
- at({
1373
+ ot({
1369
1374
  class: "modal-content relative bg-background z-1 flex flex-auto flex-col gap-y-4 min-w-0",
1370
1375
  // @ts-ignore
1371
- submit: (l, r) => e.onSubmit && e.onSubmit(r),
1376
+ submit: (o, r) => e.onSubmit && e.onSubmit(r),
1372
1377
  cache: "modalContent"
1373
1378
  }, [
1374
1379
  Ss(e),
1375
- o({ class: "modal-body flex grow flex-col py-0 px-6 z-0", cache: "modalBody" }, t),
1380
+ l({ class: "modal-body flex grow flex-col py-0 px-6 z-0", cache: "modalBody" }, t),
1376
1381
  // @ts-ignore
1377
- !e.hideFooter && xe({ class: "modal-footer sticky bottom-0 bg-background/80 backdrop-blur-md flex flex-none justify-between py-4 px-6 z-10" }, e.buttons)
1382
+ !e.hideFooter && pe({ class: "modal-footer sticky bottom-0 bg-background/80 backdrop-blur-md flex flex-none justify-between py-4 px-6 z-10" }, e.buttons)
1378
1383
  ])
1379
1384
  ]);
1380
- }), je = {
1385
+ }), Ee = {
1381
1386
  info: {
1382
1387
  bgColor: "bg-muted/10",
1383
1388
  borderColor: "border-blue-500",
@@ -1403,15 +1408,15 @@ const xs = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1403
1408
  borderColor: "border",
1404
1409
  iconColor: "text-muted-foreground"
1405
1410
  }
1406
- }, $s = (e) => ee({ class: "flex justify-center" }, [
1407
- pe({ class: "text-lg font-bold mb-0" }, e)
1408
- ]), Ds = i(({ href: e, class: t }, s) => Je({
1411
+ }, $s = (e) => te({ class: "flex justify-center" }, [
1412
+ ye({ class: "text-lg font-bold mb-0" }, e)
1413
+ ]), Ds = i(({ href: e, class: t }, s) => Xe({
1409
1414
  class: `bg-popover text-popover-foreground relative flex flex-auto flex-col justify-start shadow-lg pointer-events-auto p-4 border rounded-md min-w-[340px] max-w-[450px] mt-4 ${t}`,
1410
1415
  href: e,
1411
1416
  animateIn: "pullRightIn",
1412
1417
  animateOut: "pullRight",
1413
1418
  role: "alert"
1414
- }, s)), Is = i(({ close: e, class: t }, s) => o({
1419
+ }, s)), Is = i(({ close: e, class: t }, s) => l({
1415
1420
  class: `pullRightIn bg-popover text-popover-foreground relative flex flex-auto flex-col justify-start shadow-lg pointer-events-auto p-4 border rounded-md min-w-[340px] max-w-[450px] mt-4 ${t}`,
1416
1421
  click: () => e(),
1417
1422
  animateIn: "pullRightIn",
@@ -1441,14 +1446,14 @@ class ko extends S {
1441
1446
  * @returns {object}
1442
1447
  */
1443
1448
  render() {
1444
- const { bgColor: t, borderColor: s, iconColor: n } = this.getTypeStyles(), a = this.href || null, l = this.getChildren(n);
1449
+ const { bgColor: t, borderColor: s, iconColor: n } = this.getTypeStyles(), a = this.href || null, o = this.getChildren(n);
1445
1450
  return a ? Ds({
1446
1451
  href: a,
1447
1452
  class: `${t} ${s}`
1448
- }, l) : Is({
1453
+ }, o) : Is({
1449
1454
  close: this.close.bind(this),
1450
1455
  class: `${t} ${s}`
1451
- }, l);
1456
+ }, o);
1452
1457
  }
1453
1458
  /**
1454
1459
  * This will be called after the component is set up.
@@ -1457,7 +1462,7 @@ class ko extends S {
1457
1462
  */
1458
1463
  afterSetup() {
1459
1464
  const t = this.duration;
1460
- t !== "infinite" && (this.timer = new St(t, this.close.bind(this)), this.timer.start());
1465
+ t !== "infinite" && (this.timer = new $t(t, this.close.bind(this)), this.timer.start());
1461
1466
  }
1462
1467
  /**
1463
1468
  * This will get the style properties based on the notification type.
@@ -1466,7 +1471,7 @@ class ko extends S {
1466
1471
  */
1467
1472
  getTypeStyles() {
1468
1473
  const t = this.type || "default";
1469
- return je[t] || je.default;
1474
+ return Ee[t] || Ee.default;
1470
1475
  }
1471
1476
  /**
1472
1477
  * This will get the buttons for the notification.
@@ -1475,9 +1480,9 @@ class ko extends S {
1475
1480
  */
1476
1481
  getButtons() {
1477
1482
  return [
1478
- o({ class: "flex flex-row mt-6 gap-2" }, [
1479
- this.secondary && b({ variant: "outline", click: () => this.secondaryAction && this.secondaryAction() }, this.secondary),
1480
- this.primary && b({ click: () => this.primaryAction && this.primaryAction() }, this.primary)
1483
+ l({ class: "flex flex-row mt-6 gap-2" }, [
1484
+ this.secondary && x({ variant: "outline", click: () => this.secondaryAction && this.secondaryAction() }, this.secondary),
1485
+ this.primary && x({ click: () => this.primaryAction && this.primaryAction() }, this.primary)
1481
1486
  ])
1482
1487
  ];
1483
1488
  }
@@ -1489,19 +1494,19 @@ class ko extends S {
1489
1494
  */
1490
1495
  getChildren(t) {
1491
1496
  return [
1492
- o({ class: "flex items-start" }, [
1493
- this.icon && o({ class: `mr-4 ${t}` }, [
1494
- x({ size: "md" }, this.icon)
1497
+ l({ class: "flex items-start" }, [
1498
+ this.icon && l({ class: `mr-4 ${t}` }, [
1499
+ p({ size: "md" }, this.icon)
1495
1500
  ]),
1496
- o({ class: "flex flex-auto flex-col" }, [
1497
- o({ class: "flex flex-auto flex-row items-center w-full pr-12" }, [
1501
+ l({ class: "flex flex-auto flex-col" }, [
1502
+ l({ class: "flex flex-auto flex-row items-center w-full pr-12" }, [
1498
1503
  this.title && $s(this.title)
1499
1504
  ]),
1500
1505
  k({ class: "text-base text-muted-foreground m-0 pr-12" }, this.description),
1501
- (this.primary || this.secondary) && xe({ class: "margin-top-24 flex align-center" }, this.getButtons())
1506
+ (this.primary || this.secondary) && pe({ class: "margin-top-24 flex align-center" }, this.getButtons())
1502
1507
  ])
1503
1508
  ]),
1504
- b({
1509
+ x({
1505
1510
  class: "absolute top-[12px] right-[12px]",
1506
1511
  variant: "icon",
1507
1512
  icon: g.x,
@@ -1519,7 +1524,7 @@ class ko extends S {
1519
1524
  t && t.stopPropagation(), this.duration !== "infinite" && this.timer.stop(), this.onClick && this.onClick(), this.destroy();
1520
1525
  }
1521
1526
  }
1522
- const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v({
1527
+ const _e = globalThis.matchMedia, ce = i(({ value: e, label: t, icon: s }) => v({
1523
1528
  class: 'text-sm gap-1 font-medium leading-none disabled:cursor-not-allowed disabled:opacity-70 flex flex-col items-center justify-between rounded-md border-2 bg-popover p-4 hover:bg-accent hover:text-accent-foreground data-[state="active"]:border-primary [&:has([data-state="active"])]:border-primary',
1524
1529
  onState: ["method", { active: e }],
1525
1530
  dataSet: ["method", ["state", e, "active"]],
@@ -1527,17 +1532,17 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1527
1532
  a.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), Ts(e);
1528
1533
  }
1529
1534
  }, [
1530
- x({}, s),
1531
- f(t)
1535
+ p({}, s),
1536
+ h(t)
1532
1537
  ])), Ts = (e) => {
1533
1538
  const t = document.documentElement;
1534
- if (e === "system" && (e = globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light"), Ee && !Ee("(prefers-color-scheme: " + e + ")").matches) {
1539
+ if (e === "system" && (e = globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light"), _e && !_e("(prefers-color-scheme: " + e + ")").matches) {
1535
1540
  t.classList.add(e);
1536
1541
  return;
1537
1542
  }
1538
1543
  const s = e === "light" ? "dark" : "light";
1539
1544
  t.classList.remove(s);
1540
- }, Co = B(
1545
+ }, Co = M(
1541
1546
  {
1542
1547
  /**
1543
1548
  * This will render the component.
@@ -1545,11 +1550,11 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1545
1550
  * @returns {object}
1546
1551
  */
1547
1552
  render() {
1548
- return o({ class: "flex flex-auto flex-col" }, [
1549
- o({ class: "grid grid-cols-3 gap-4" }, [
1550
- ie({ label: "System", value: "system", icon: g.adjustments.horizontal }),
1551
- ie({ label: "Light", value: "light", icon: g.sun }),
1552
- ie({ label: "Dark", value: "dark", icon: g.moon })
1553
+ return l({ class: "flex flex-auto flex-col" }, [
1554
+ l({ class: "grid grid-cols-3 gap-4" }, [
1555
+ ce({ label: "System", value: "system", icon: g.adjustments.horizontal }),
1556
+ ce({ label: "Light", value: "light", icon: g.sun }),
1557
+ ce({ label: "Dark", value: "dark", icon: g.moon })
1553
1558
  ])
1554
1559
  ]);
1555
1560
  },
@@ -1564,7 +1569,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1564
1569
  };
1565
1570
  }
1566
1571
  }
1567
- ), So = F(
1572
+ ), So = L(
1568
1573
  {
1569
1574
  /**
1570
1575
  * The initial state of the Toggle.
@@ -1598,7 +1603,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1598
1603
  s.toggle("active"), this.checkbox.checked = s.active, this.change && this.change(s.active, t, this);
1599
1604
  }
1600
1605
  }, [
1601
- me({
1606
+ be({
1602
1607
  cache: "checkbox",
1603
1608
  class: "opacity-0 absolute top-0 left-0 bottom-0 right-0 w-full h-full",
1604
1609
  /**
@@ -1609,7 +1614,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1609
1614
  bind: this.bind,
1610
1615
  required: this.required
1611
1616
  }),
1612
- f({
1617
+ h({
1613
1618
  class: "absolute h-5 w-5 bg-background rounded-full shadow-md transform transition-transform",
1614
1619
  onState: ["active", { "translate-x-[22px]": !0, "translate-x-[2px]": !1 }]
1615
1620
  })
@@ -1620,9 +1625,9 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1620
1625
  src: e,
1621
1626
  alt: t,
1622
1627
  class: "rounded-full"
1623
- })), Ms = (e) => e && (Array.isArray(e) && (e = e.join(" ")), typeof e != "string" && (e = String(e)), e.split(" ").map((t) => t.charAt(0)).join("").toUpperCase()), ot = (e) => !e || e.length < 2 ? e : Ms(e), Bs = (e) => f([e, (t, s) => {
1624
- s.textContent = ot(t);
1625
- }]), _e = {
1628
+ })), Ms = (e) => e && (Array.isArray(e) && (e = e.join(" ")), typeof e != "string" && (e = String(e)), e.split(" ").map((t) => t.charAt(0)).join("").toUpperCase()), lt = (e) => !e || e.length < 2 ? e : Ms(e), Bs = (e) => h([e, (t, s) => {
1629
+ s.textContent = lt(t);
1630
+ }]), He = {
1626
1631
  xs: "h-6 w-6",
1627
1632
  sm: "h-8 w-8",
1628
1633
  md: "h-12 w-12",
@@ -1632,7 +1637,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1632
1637
  "3xl": "h-48 w-48",
1633
1638
  "4xl": "h-64 w-64",
1634
1639
  default: "h-12 w-12"
1635
- }, He = {
1640
+ }, Ue = {
1636
1641
  xs: "text-[7px]",
1637
1642
  sm: "text-xs",
1638
1643
  md: "text-base",
@@ -1642,9 +1647,9 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1642
1647
  "3xl": "text-4xl",
1643
1648
  "4xl": "text-5xl",
1644
1649
  default: "text-base"
1645
- }, zs = (e) => _e[e] || _e.default, Os = (e) => He[e] || He.default, Ns = (e, t = null, s = "md") => {
1646
- const n = ot(String(e)), a = Os(s);
1647
- return o(
1650
+ }, zs = (e) => He[e] || He.default, Os = (e) => Ue[e] || Ue.default, Ns = (e, t = null, s = "md") => {
1651
+ const n = lt(String(e)), a = Os(s);
1652
+ return l(
1648
1653
  {
1649
1654
  class: `
1650
1655
  flex items-center justify-center w-full h-full rounded-full
@@ -1653,21 +1658,21 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1653
1658
  `
1654
1659
  },
1655
1660
  [
1656
- t ? Bs(t) : f({ class: "uppercase" }, n)
1661
+ t ? Bs(t) : h({ class: "uppercase" }, n)
1657
1662
  ]
1658
1663
  );
1659
1664
  }, Fs = i(({ src: e, alt: t, fallbackText: s, watcherFallback: n, size: a }) => {
1660
- const l = zs(a);
1661
- return o(
1665
+ const o = zs(a);
1666
+ return l(
1662
1667
  {
1663
- class: `relative flex items-center justify-center ${l}`
1668
+ class: `relative flex items-center justify-center ${o}`
1664
1669
  },
1665
1670
  [
1666
1671
  Ps({ src: e, alt: t }),
1667
1672
  Ns(s, n, a)
1668
1673
  ]
1669
1674
  );
1670
- }), Ue = (e) => !e || e.includes("[[") || e.indexOf(".") === -1 && e.indexOf("blob:") === -1, $o = B(
1675
+ }), Ye = (e) => !e || e.includes("[[") || e.indexOf(".") === -1 && e.indexOf("blob:") === -1, $o = M(
1671
1676
  {
1672
1677
  /**
1673
1678
  * Get the initial state for the component.
@@ -1677,7 +1682,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1677
1682
  state() {
1678
1683
  return {
1679
1684
  // @ts-ignore
1680
- loaded: !!this.src && !Ue(this.src)
1685
+ loaded: !!this.src && !Ye(this.src)
1681
1686
  };
1682
1687
  },
1683
1688
  /**
@@ -1687,7 +1692,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1687
1692
  */
1688
1693
  openFileBrowse() {
1689
1694
  const e = this.input;
1690
- e && (e.value = "", H.trigger("click", e));
1695
+ e && (e.value = "", U.trigger("click", e));
1691
1696
  },
1692
1697
  /**
1693
1698
  * Get the URL for the uploaded file.
@@ -1705,8 +1710,8 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1705
1710
  */
1706
1711
  render() {
1707
1712
  const e = "image-upload", t = this.onChange || null;
1708
- return o({ class: "flex-none items-center" }, [
1709
- p({
1713
+ return l({ class: "flex-none items-center" }, [
1714
+ y({
1710
1715
  id: e,
1711
1716
  cache: "input",
1712
1717
  type: "file",
@@ -1717,19 +1722,19 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1717
1722
  n && t && (this.state.loaded = !1, t(n, this.parent), this.src = this.getFileUrl(n), this.state.loaded = !0);
1718
1723
  }
1719
1724
  }),
1720
- o({
1725
+ l({
1721
1726
  class: "relative w-32 h-32 rounded-full border flex items-center justify-center cursor-pointer hover:bg-muted transition-colors duration-150 overflow-hidden group",
1722
1727
  click: (s) => {
1723
1728
  s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
1724
1729
  }
1725
1730
  }, [
1726
- M("loaded", (s) => s === !1 || Ue(this.src) ? Y({
1731
+ P("loaded", (s) => s === !1 || Ye(this.src) ? V({
1727
1732
  htmlFor: e,
1728
1733
  class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
1729
1734
  }, [
1730
- fe(g.upload),
1731
- o("Upload Image")
1732
- ]) : be({
1735
+ ge(g.upload),
1736
+ l("Upload Image")
1737
+ ]) : xe({
1733
1738
  // @ts-ignore
1734
1739
  src: this.src,
1735
1740
  class: "absolute inset-0 w-full h-full object-cover rounded-full"
@@ -1738,7 +1743,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1738
1743
  ]);
1739
1744
  }
1740
1745
  }
1741
- ), Do = B(
1746
+ ), Do = M(
1742
1747
  {
1743
1748
  /**
1744
1749
  * Get the initial state for the component.
@@ -1758,7 +1763,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1758
1763
  */
1759
1764
  openFileBrowse() {
1760
1765
  const e = this.input;
1761
- e && (e.value = "", H.trigger("click", e));
1766
+ e && (e.value = "", U.trigger("click", e));
1762
1767
  },
1763
1768
  /**
1764
1769
  * Get the URL for the uploaded file.
@@ -1776,8 +1781,8 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1776
1781
  */
1777
1782
  render() {
1778
1783
  const e = "logo-upload", t = this.onChange || null;
1779
- return o({ class: "flex-none items-center" }, [
1780
- p({
1784
+ return l({ class: "flex-none items-center" }, [
1785
+ y({
1781
1786
  id: e,
1782
1787
  cache: "input",
1783
1788
  type: "file",
@@ -1788,24 +1793,24 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1788
1793
  n && t && (this.state.loaded = !1, t(n, this.parent), this.src = this.getFileUrl(n), this.state.loaded = !0);
1789
1794
  }
1790
1795
  }),
1791
- o({
1796
+ l({
1792
1797
  class: "relative w-32 h-32 rounded-full border flex items-center justify-center cursor-pointer hover:bg-muted transition-colors duration-150 overflow-hidden group",
1793
1798
  click: (s) => {
1794
1799
  s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
1795
1800
  }
1796
1801
  }, [
1797
- M(
1802
+ P(
1798
1803
  "loaded",
1799
- (s) => s ? be({
1804
+ (s) => s ? xe({
1800
1805
  // @ts-ignore
1801
1806
  src: this.src,
1802
1807
  class: "absolute inset-0 w-full h-full object-cover rounded-full"
1803
- }) : Y({
1808
+ }) : V({
1804
1809
  htmlFor: e,
1805
1810
  class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
1806
1811
  }, [
1807
- x({}, g.upload),
1808
- o("Upload logo")
1812
+ p({}, g.upload),
1813
+ l("Upload logo")
1809
1814
  ])
1810
1815
  )
1811
1816
  ])
@@ -1820,22 +1825,22 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1820
1825
  this.input = null;
1821
1826
  }
1822
1827
  }
1823
- ), Ls = (e, t) => Je(
1828
+ ), Ls = (e, t) => Xe(
1824
1829
  {
1825
1830
  href: e,
1826
1831
  "aria-current": t === "Breadcrumb" && "page",
1827
1832
  // Only set aria-current on the last item
1828
1833
  class: "text-muted-foreground font-medium hover:text-foreground"
1829
1834
  },
1830
- [f(t)]
1831
- ), Rs = () => x({
1835
+ [h(t)]
1836
+ ), Rs = () => p({
1832
1837
  class: "mx-3 text-muted-foreground",
1833
1838
  "aria-hidden": !0,
1834
1839
  size: "xs"
1835
- }, g.chevron.single.right), As = (e) => o({ class: "flex items-center" }, [
1836
- e.href ? Ls(e.href, e.label) : f(e.label),
1840
+ }, g.chevron.single.right), As = (e) => l({ class: "flex items-center" }, [
1841
+ e.href ? Ls(e.href, e.label) : h(e.label),
1837
1842
  e.separator && Rs()
1838
- ]), Io = B(
1843
+ ]), Io = M(
1839
1844
  {
1840
1845
  /**
1841
1846
  * Set initial data
@@ -1843,7 +1848,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1843
1848
  * @returns {Data}
1844
1849
  */
1845
1850
  setData() {
1846
- return new N({
1851
+ return new F({
1847
1852
  // @ts-ignore
1848
1853
  items: this.items || []
1849
1854
  });
@@ -1855,13 +1860,13 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1855
1860
  */
1856
1861
  render() {
1857
1862
  const e = this.data.items.length - 1;
1858
- return ye(
1863
+ return we(
1859
1864
  {
1860
1865
  "aria-label": "Breadcrumb",
1861
1866
  class: "flex items-center gap-x-1 text-sm"
1862
1867
  },
1863
1868
  [
1864
- o({
1869
+ l({
1865
1870
  role: "list",
1866
1871
  class: "flex items-center",
1867
1872
  for: ["items", (t, s) => As({
@@ -1874,7 +1879,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1874
1879
  );
1875
1880
  }
1876
1881
  }
1877
- ), Ye = {
1882
+ ), Ve = {
1878
1883
  xs: "h-1 w-1",
1879
1884
  sm: "h-2 w-2",
1880
1885
  md: "h-4 w-4",
@@ -1883,8 +1888,8 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1883
1888
  "2xl": "h-16 w-16",
1884
1889
  "3xl": "h-24 w-24",
1885
1890
  default: "h-4 w-4"
1886
- }, js = (e) => Ye[e] || Ye.default, Es = ({ index: e, size: t }) => o({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
1887
- f({
1891
+ }, js = (e) => Ve[e] || Ve.default, Es = ({ index: e, size: t }) => l({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
1892
+ h({
1888
1893
  class: "block w-full h-full rounded-full transition-colors",
1889
1894
  onSet: ["activeIndex", {
1890
1895
  "bg-primary": e,
@@ -1897,7 +1902,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1897
1902
  ]), _s = (e, t) => Array.from({ length: e }, (s, n) => Es({
1898
1903
  index: n,
1899
1904
  size: t
1900
- })), To = B(
1905
+ })), To = M(
1901
1906
  {
1902
1907
  /**
1903
1908
  * Defines component data (props).
@@ -1905,7 +1910,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1905
1910
  * @returns {Data}
1906
1911
  */
1907
1912
  setData() {
1908
- return new N({
1913
+ return new F({
1909
1914
  // @ts-ignore
1910
1915
  count: this.count || 4,
1911
1916
  // total dots
@@ -1920,10 +1925,10 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1920
1925
  */
1921
1926
  render() {
1922
1927
  const e = this.gap || "gap-2", t = js(this.size || "sm"), s = _s(this.data.count, t);
1923
- return o(
1928
+ return l(
1924
1929
  { class: "flex justify-center items-center py-2" },
1925
1930
  [
1926
- o({ class: `flex ${e}` }, s)
1931
+ l({ class: `flex ${e}` }, s)
1927
1932
  ]
1928
1933
  );
1929
1934
  }
@@ -1935,22 +1940,22 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1935
1940
  click: e
1936
1941
  },
1937
1942
  [
1938
- f({ onState: ["selectedLabel", (t) => t || "Select item..."] }),
1939
- x({ size: "sm" }, g.chevron.upDown)
1943
+ h({ onState: ["selectedLabel", (t) => t || "Select item..."] }),
1944
+ p({ size: "sm" }, g.chevron.upDown)
1940
1945
  ]
1941
- ), Us = (e, t, s) => we({
1946
+ ), Us = (e, t, s) => ve({
1942
1947
  class: "flex flex-auto items-center cursor-pointer p-2 hover:bg-muted/50 rounded-sm",
1943
1948
  click: () => t(e),
1944
1949
  onState: [s, "selectedValue", { "bg-secondary": e.value }]
1945
1950
  }, [
1946
- e.icon && f({ class: "mr-2 flex items-baseline" }, [x({ size: "xs" }, e.icon)]),
1947
- f({ class: "text-base font-normal" }, e.label)
1948
- ]), Ys = (e, t) => o({ class: "w-full border rounded-md" }, [
1949
- te({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => Us(s, e, t)] })
1950
- ]), Ws = ({ onSelect: e, state: t }) => o({ class: "flex flex-auto flex-col" }, [
1951
- M(
1951
+ e.icon && h({ class: "mr-2 flex items-baseline" }, [p({ size: "xs" }, e.icon)]),
1952
+ h({ class: "text-base font-normal" }, e.label)
1953
+ ]), Ys = (e, t) => l({ class: "w-full border rounded-md" }, [
1954
+ se({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => Us(s, e, t)] })
1955
+ ]), Vs = ({ onSelect: e, state: t }) => l({ class: "flex flex-auto flex-col" }, [
1956
+ P(
1952
1957
  "open",
1953
- (s, n, a) => s ? new ae({
1958
+ (s, n, a) => s ? new oe({
1954
1959
  cache: "dropdown",
1955
1960
  parent: a,
1956
1961
  button: a.button
@@ -1958,7 +1963,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1958
1963
  Ys(e, t)
1959
1964
  ]) : null
1960
1965
  )
1961
- ]), Po = B(
1966
+ ]), Po = M(
1962
1967
  {
1963
1968
  /**
1964
1969
  * This will set up the data.
@@ -1966,7 +1971,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1966
1971
  * @returns {Data}
1967
1972
  */
1968
1973
  setData() {
1969
- return new N({
1974
+ return new F({
1970
1975
  // @ts-ignore
1971
1976
  items: this.items || []
1972
1977
  });
@@ -2037,10 +2042,10 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2037
2042
  */
2038
2043
  render() {
2039
2044
  const e = this.class || "", t = this.maxWidth || "max-w-[250px]", s = this.width || "w-full";
2040
- return o({ class: `relative ${s} flex flex-auto flex-col ${t} ${e}` }, [
2045
+ return l({ class: `relative ${s} flex flex-auto flex-col ${t} ${e}` }, [
2041
2046
  // @ts-ignore
2042
2047
  Hs({ toggleDropdown: this.toggleDropdown.bind(this) }),
2043
- Ws({
2048
+ Vs({
2044
2049
  // @ts-ignore
2045
2050
  state: this.state,
2046
2051
  // @ts-ignore
@@ -2048,7 +2053,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2048
2053
  }),
2049
2054
  // Hidden required input for form validation
2050
2055
  // @ts-ignore
2051
- this.required && p({
2056
+ this.required && y({
2052
2057
  class: "opacity-0 absolute top-0 left-0 z-1",
2053
2058
  type: "text",
2054
2059
  // @ts-ignore
@@ -2060,25 +2065,25 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2060
2065
  ]);
2061
2066
  }
2062
2067
  }
2063
- ), lt = ({ icon: e, click: t, ariaLabel: s }) => b({
2068
+ ), rt = ({ icon: e, click: t, ariaLabel: s }) => x({
2064
2069
  variant: "icon",
2065
2070
  class: "flex flex-none",
2066
2071
  click: t,
2067
2072
  icon: e,
2068
2073
  "aria-label": s
2069
- }), Vs = ({ click: e }) => lt({
2074
+ }), Ws = ({ click: e }) => rt({
2070
2075
  icon: g.circleMinus,
2071
2076
  click: e,
2072
2077
  ariaLabel: "Decrement"
2073
- }), qs = ({ click: e }) => lt({
2078
+ }), qs = ({ click: e }) => rt({
2074
2079
  icon: g.circlePlus,
2075
2080
  click: e,
2076
2081
  ariaLabel: "Increment"
2077
- }), Gs = ({ bind: e, min: t, max: s, readonly: n = !1 }) => q(({ state: a }) => p({
2082
+ }), Gs = ({ bind: e, min: t, max: s, readonly: n = !1 }) => K(({ state: a }) => y({
2078
2083
  value: ["[[count]]", a],
2079
2084
  bind: e,
2080
- blur: (l, { state: r }) => {
2081
- let c = parseInt(l.target.value, 10);
2085
+ blur: (o, { state: r }) => {
2086
+ let c = parseInt(o.target.value, 10);
2082
2087
  isNaN(c) && (c = t ?? 0), t !== void 0 && (c = Math.max(c, t)), s !== void 0 && (c = Math.min(c, s)), r.count = c;
2083
2088
  },
2084
2089
  class: "flex flex-auto text-lg font-medium bg-input text-center border min-w-0",
@@ -2087,7 +2092,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2087
2092
  max: s,
2088
2093
  type: "number",
2089
2094
  "aria-label": "Counter"
2090
- })), Mo = F(
2095
+ })), Mo = L(
2091
2096
  {
2092
2097
  /**
2093
2098
  * Initial state for the counter component.
@@ -2109,8 +2114,8 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2109
2114
  */
2110
2115
  render() {
2111
2116
  const e = this.class ?? "";
2112
- return o({ class: `flex flex-auto items-center justify-between gap-x-4 p-4 ${e}` }, [
2113
- Vs({ click: () => this.state.decrement("count") }),
2117
+ return l({ class: `flex flex-auto items-center justify-between gap-x-4 p-4 ${e}` }, [
2118
+ Ws({ click: () => this.state.decrement("count") }),
2114
2119
  Gs({
2115
2120
  bind: this.bind,
2116
2121
  readonly: this.readonly,
@@ -2121,13 +2126,13 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2121
2126
  ]);
2122
2127
  }
2123
2128
  }
2124
- ), Ks = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2129
+ ), Ks = ({ currentMonth: e, currentYear: t, onSelect: s }) => l(
2125
2130
  { class: "grid grid-cols-3 gap-2" },
2126
- se.monthNames.map(
2127
- (n, a) => b(
2131
+ ne.monthNames.map(
2132
+ (n, a) => x(
2128
2133
  {
2129
- click: (l) => {
2130
- l.preventDefault(), l.stopPropagation(), s(a);
2134
+ click: (o) => {
2135
+ o.preventDefault(), o.stopPropagation(), s(a);
2131
2136
  },
2132
2137
  variant: e === a ? "primary" : "ghost",
2133
2138
  "aria-label": `Select ${n} ${t}`
@@ -2135,16 +2140,16 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2135
2140
  n.substring(0, 3)
2136
2141
  )
2137
2142
  )
2138
- ), O = (e) => (e *= 1, e < 10 ? `0${e}` : String(e)), Qs = (e) => (e.indexOf("T") === -1 && e.indexOf(" ") === -1 && (e += "T00:00:01"), e.replace(" ", "T"), e), _ = (e, t, s) => `${e}-${O(t + 1)}-${O(s)}`, Js = (e) => e ? "bg-accent text-primary" : "", Xs = (e) => e ? "text-muted-foreground opacity-50" : "", Zs = (e, t) => e === t, en = (e, t) => Zs(e, t) ? "bg-primary text-primary-foreground" : "", tn = (e, t, s, n) => {
2143
+ ), N = (e) => (e *= 1, e < 10 ? `0${e}` : String(e)), Qs = (e) => (e.indexOf("T") === -1 && e.indexOf(" ") === -1 && (e += "T00:00:01"), e.replace(" ", "T"), e), H = (e, t, s) => `${e}-${N(t + 1)}-${N(s)}`, Js = (e) => e ? "bg-accent text-primary" : "", Xs = (e) => e ? "text-muted-foreground opacity-50" : "", Zs = (e, t) => e === t, en = (e, t) => Zs(e, t) ? "bg-primary text-primary-foreground" : "", tn = (e, t, s, n) => {
2139
2144
  const a = en(t, n);
2140
2145
  return a || (e ? Js(e) : s ? Xs(s) : "text-foreground");
2141
- }, ce = (e) => {
2146
+ }, de = (e) => {
2142
2147
  const {
2143
2148
  day: t,
2144
2149
  currentDate: s,
2145
2150
  date: n,
2146
2151
  isToday: a,
2147
- isOutsideMonth: l,
2152
+ isOutsideMonth: o,
2148
2153
  select: r,
2149
2154
  disabled: c
2150
2155
  } = e;
@@ -2152,7 +2157,7 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2152
2157
  {
2153
2158
  class: `
2154
2159
  flex items-center justify-center h-9 w-auto p-0 font-normal text-sm rounded-md cursor-pointer
2155
- ${tn(a, s, l, n)}
2160
+ ${tn(a, s, o, n)}
2156
2161
  hover:bg-muted/50 hover:text-muted-foreground focus:z-10
2157
2162
  disabled:pointer-events-none disabled:opacity-50
2158
2163
  `,
@@ -2163,29 +2168,29 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2163
2168
  },
2164
2169
  t.toString()
2165
2170
  );
2166
- }, de = (e, t, s, n) => e === n.date && t === n.month && s === n.year, sn = (e, t, s, n = !1) => {
2167
- const { year: a, month: l } = e, r = _(a, l, e.date), c = new Date(a, l, 1).getDay(), u = new Date(a, l + 1, 0).getDate(), h = new Date(a, l, 0).getDate(), y = [], R = l === 0 ? 11 : l - 1, A = l === 0 ? a - 1 : a;
2171
+ }, ue = (e, t, s, n) => e === n.date && t === n.month && s === n.year, sn = (e, t, s, n = !1) => {
2172
+ const { year: a, month: o } = e, r = H(a, o, e.date), c = new Date(a, o, 1).getDay(), u = new Date(a, o + 1, 0).getDate(), f = new Date(a, o, 0).getDate(), b = [], A = o === 0 ? 11 : o - 1, B = o === 0 ? a - 1 : a;
2168
2173
  for (let d = c - 1; d >= 0; d--) {
2169
- const w = h - d, I = de(w, R, A, t), T = new Date(A, R, w) < new Date(t.year, t.month, t.date), j = n && T;
2170
- y.push(
2171
- ce({
2174
+ const w = f - d, I = ue(w, A, B, t), T = new Date(B, A, w) < new Date(t.year, t.month, t.date), E = n && T;
2175
+ b.push(
2176
+ de({
2172
2177
  day: w,
2173
2178
  currentDate: r,
2174
- date: _(A, R, w),
2179
+ date: H(B, A, w),
2175
2180
  isToday: I,
2176
2181
  isOutsideMonth: !0,
2177
2182
  select: s,
2178
- disabled: j
2183
+ disabled: E
2179
2184
  })
2180
2185
  );
2181
2186
  }
2182
2187
  for (let d = 1; d <= u; d++) {
2183
- const w = de(d, l, a, t), I = new Date(a, l, d) < new Date(t.year, t.month, t.date), T = n && I;
2184
- y.push(
2185
- ce({
2188
+ const w = ue(d, o, a, t), I = new Date(a, o, d) < new Date(t.year, t.month, t.date), T = n && I;
2189
+ b.push(
2190
+ de({
2186
2191
  day: d,
2187
2192
  currentDate: r,
2188
- date: _(a, l, d),
2193
+ date: H(a, o, d),
2189
2194
  isToday: w,
2190
2195
  isOutsideMonth: !1,
2191
2196
  select: s,
@@ -2193,14 +2198,14 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2193
2198
  })
2194
2199
  );
2195
2200
  }
2196
- const P = l === 11 ? 0 : l + 1, oe = l === 11 ? a + 1 : a, m = (7 - y.length % 7) % 7;
2201
+ const j = o === 11 ? 0 : o + 1, z = o === 11 ? a + 1 : a, m = (7 - b.length % 7) % 7;
2197
2202
  for (let d = 1; d <= m; d++) {
2198
- const w = de(d, P, oe, t), I = new Date(oe, P, d) < new Date(t.year, t.month, t.date), T = n && I;
2199
- y.push(
2200
- ce({
2203
+ const w = ue(d, j, z, t), I = new Date(z, j, d) < new Date(t.year, t.month, t.date), T = n && I;
2204
+ b.push(
2205
+ de({
2201
2206
  day: d,
2202
2207
  currentDate: r,
2203
- date: _(oe, P, d),
2208
+ date: H(z, j, d),
2204
2209
  isToday: w,
2205
2210
  isOutsideMonth: !0,
2206
2211
  select: s,
@@ -2208,8 +2213,8 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2208
2213
  })
2209
2214
  );
2210
2215
  }
2211
- return y;
2212
- }, We = ({ label: e, click: t }) => b(
2216
+ return b;
2217
+ }, We = ({ label: e, click: t }) => x(
2213
2218
  {
2214
2219
  class: `
2215
2220
  inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
@@ -2222,28 +2227,28 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2222
2227
  variant: "icon",
2223
2228
  icon: e === "Previous" ? g.chevron.single.left : g.chevron.single.right
2224
2229
  }
2225
- ), nn = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => o({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
2226
- b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
2227
- b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
2230
+ ), nn = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => l({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
2231
+ x({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
2232
+ x({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
2228
2233
  We({ label: "Previous", click: n }),
2229
2234
  We({ label: "Next", click: s })
2230
- ]), an = (e) => o(
2235
+ ]), an = (e) => l(
2231
2236
  { class: "flex items-center justify-center h-9 w-auto text-[0.8rem] font-normal text-muted-foreground" },
2232
2237
  e
2233
- ), on = () => ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(an), ln = (e) => o({ class: "rdp flex flex-auto flex-col w-full gap-y-1" }, [
2238
+ ), on = () => ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(an), ln = (e) => l({ class: "rdp flex flex-auto flex-col w-full gap-y-1" }, [
2234
2239
  nn({
2235
2240
  onMonthClick: e.onMonthClick,
2236
2241
  onYearClick: e.onYearClick,
2237
2242
  next: e.next,
2238
2243
  previous: e.previous
2239
2244
  }),
2240
- o({
2245
+ l({
2241
2246
  class: "flex flex-auto flex-col w-full",
2242
2247
  onSet: [
2243
2248
  "currentDate",
2244
2249
  () => [
2245
- o({ class: "grid grid-cols-7" }, on()),
2246
- o(
2250
+ l({ class: "grid grid-cols-7" }, on()),
2251
+ l(
2247
2252
  { class: "grid grid-cols-7" },
2248
2253
  sn(
2249
2254
  e.current,
@@ -2256,19 +2261,19 @@ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2256
2261
  ]
2257
2262
  })
2258
2263
  ]), rn = ({ currentMonth: e, currentYear: t, onSelect: s }) => {
2259
- const n = t - 50, a = Array.from({ length: 101 }, (l, r) => n + r);
2260
- return o(
2264
+ const n = t - 50, a = Array.from({ length: 101 }, (o, r) => n + r);
2265
+ return l(
2261
2266
  { class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
2262
2267
  a.map(
2263
- (l) => b(
2268
+ (o) => x(
2264
2269
  {
2265
2270
  click: (r) => {
2266
- r.preventDefault(), r.stopPropagation(), s(l);
2271
+ r.preventDefault(), r.stopPropagation(), s(o);
2267
2272
  },
2268
- variant: l === t ? "primary" : "ghost",
2269
- "aria-label": `Select ${l}`
2273
+ variant: o === t ? "primary" : "ghost",
2274
+ "aria-label": `Select ${o}`
2270
2275
  },
2271
- l.toString()
2276
+ o.toString()
2272
2277
  )
2273
2278
  )
2274
2279
  );
@@ -2299,7 +2304,7 @@ class cn extends S {
2299
2304
  */
2300
2305
  setData() {
2301
2306
  const t = /* @__PURE__ */ new Date(), s = this.getSelectedDate(t), n = s.getMonth();
2302
- return new N({
2307
+ return new F({
2303
2308
  monthName: this.getMonthName(n),
2304
2309
  currentDate: `${s.getFullYear()}-${n + 1}-${s.getDate()}`,
2305
2310
  current: {
@@ -2332,7 +2337,7 @@ class cn extends S {
2332
2337
  * @returns {string}
2333
2338
  */
2334
2339
  getMonthName(t) {
2335
- return se.monthNames[t];
2340
+ return ne.monthNames[t];
2336
2341
  }
2337
2342
  /**
2338
2343
  * This will go to the previous month.
@@ -2364,7 +2369,7 @@ class cn extends S {
2364
2369
  */
2365
2370
  setCurrentDate(t, s, n = null) {
2366
2371
  const a = this.data;
2367
- a.current.month = t, a.current.year = s, typeof n == "number" && (a.current.date = O(n)), a.currentDate = `${s}-${O(t + 1)}-${a.current.date}`, a.monthName = this.getMonthName(t);
2372
+ a.current.month = t, a.current.year = s, typeof n == "number" && (a.current.date = N(n)), a.currentDate = `${s}-${N(t + 1)}-${a.current.date}`, a.monthName = this.getMonthName(t);
2368
2373
  }
2369
2374
  /**
2370
2375
  * This will select a date.
@@ -2382,8 +2387,8 @@ class cn extends S {
2382
2387
  * @returns {object}
2383
2388
  */
2384
2389
  render() {
2385
- return o({ class: "calendar-container p-3 rounded-md border min-w-80" }, [
2386
- M("view", (t) => {
2390
+ return l({ class: "calendar-container p-3 rounded-md border min-w-80" }, [
2391
+ P("view", (t) => {
2387
2392
  switch (t) {
2388
2393
  case "months":
2389
2394
  return Ks(
@@ -2439,37 +2444,37 @@ const dn = (e) => {
2439
2444
  return null;
2440
2445
  const t = parseInt(e.substring(0, 2), 10), s = parseInt(e.substring(2, 4), 10), n = parseInt(e.substring(4, 8), 10);
2441
2446
  return t >= 1 && t <= 12 && s >= 1 && s <= 31 && n >= 1900 ? `${n}-${t.toString().padStart(2, "0")}-${s.toString().padStart(2, "0")}` : null;
2442
- }, hn = ({ bind: e, required: t }) => p({
2447
+ }, hn = ({ bind: e, required: t }) => y({
2443
2448
  cache: "input",
2444
2449
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
2445
2450
  bind: e,
2446
2451
  required: t
2447
- }), fn = ({ placeholder: e, handleInputChange: t, handleInputFocus: s }) => p({
2452
+ }), fn = ({ placeholder: e, handleInputChange: t, handleInputFocus: s }) => y({
2448
2453
  cache: "dateInput",
2449
2454
  class: "flex-1 bg-transparent outline-none placeholder:text-muted-foreground border-0",
2450
2455
  placeholder: e || "mm/dd/yyyy",
2451
2456
  input: t,
2452
2457
  focus: s,
2453
- onState: ["selectedDate", (n) => n ? se.format("standard", n) : ""]
2454
- }), gn = ({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) => o(
2458
+ onState: ["selectedDate", (n) => n ? ne.format("standard", n) : ""]
2459
+ }), gn = ({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: o }) => l(
2455
2460
  {
2456
2461
  class: "relative flex items-center gap-2 w-full justify-between border bg-input hover:bg-muted rounded-md h-10 pr-4 py-2"
2457
2462
  },
2458
2463
  [
2459
2464
  hn({ bind: e, required: t }),
2460
- fn({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2465
+ fn({ placeholder: o, handleInputChange: n, handleInputFocus: a }),
2461
2466
  v(
2462
2467
  {
2463
2468
  class: "shrink-0 hover:bg-muted/50 rounded p-1 cursor-pointer",
2464
2469
  click: s
2465
2470
  },
2466
2471
  [
2467
- U({ html: g.calendar.days })
2472
+ Y({ html: g.calendar.days })
2468
2473
  ]
2469
2474
  )
2470
2475
  ]
2471
- ), mn = ({ handleDateSelect: e, blockPriorDates: t }) => ve(
2472
- (s, n, a) => new ae({
2476
+ ), mn = ({ handleDateSelect: e, blockPriorDates: t }) => ke(
2477
+ (s, n, a) => new oe({
2473
2478
  cache: "dropdown",
2474
2479
  parent: a,
2475
2480
  button: a.panel,
@@ -2481,7 +2486,7 @@ const dn = (e) => {
2481
2486
  blockPriorDates: t
2482
2487
  })
2483
2488
  ])
2484
- ), Bo = F(
2489
+ ), Bo = L(
2485
2490
  {
2486
2491
  /**
2487
2492
  * The initial state of the DatePicker.
@@ -2512,7 +2517,7 @@ const dn = (e) => {
2512
2517
  const s = e.target.value.replace(/\D/g, "");
2513
2518
  e.target.value = dn(s);
2514
2519
  const n = un(s);
2515
- n && (this.state.selectedDate = n, this.input.value = n, H.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(n));
2520
+ n && (this.state.selectedDate = n, this.input.value = n, U.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(n));
2516
2521
  },
2517
2522
  /**
2518
2523
  * Handles input focus - select all text for easy editing.
@@ -2528,7 +2533,7 @@ const dn = (e) => {
2528
2533
  * @param {string} date
2529
2534
  */
2530
2535
  handleDateSelect(e) {
2531
- this.state.selectedDate = e, this.state.open = !1, this.input.value = e, H.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(e);
2536
+ this.state.selectedDate = e, this.state.open = !1, this.input.value = e, U.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(e);
2532
2537
  },
2533
2538
  /**
2534
2539
  * Toggles the calendar popover.
@@ -2545,7 +2550,7 @@ const dn = (e) => {
2545
2550
  * @returns {object}
2546
2551
  */
2547
2552
  render() {
2548
- return o(
2553
+ return l(
2549
2554
  { class: "relative w-full max-w-[320px]" },
2550
2555
  [
2551
2556
  gn({
@@ -2564,7 +2569,7 @@ const dn = (e) => {
2564
2569
  );
2565
2570
  }
2566
2571
  }
2567
- ), Ve = ({ label: e, click: t }) => b(
2572
+ ), qe = ({ label: e, click: t }) => x(
2568
2573
  {
2569
2574
  class: `
2570
2575
  inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
@@ -2577,72 +2582,72 @@ const dn = (e) => {
2577
2582
  variant: "icon",
2578
2583
  icon: e === "Previous" ? g.chevron.single.left : g.chevron.single.right
2579
2584
  }
2580
- ), bn = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => o({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
2581
- b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
2582
- b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
2583
- Ve({ label: "Previous", click: n }),
2584
- Ve({ label: "Next", click: s })
2585
- ]), xn = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), pn = () => o(
2585
+ ), bn = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => l({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
2586
+ x({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
2587
+ x({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
2588
+ qe({ label: "Previous", click: n }),
2589
+ qe({ label: "Next", click: s })
2590
+ ]), xn = (e) => l({ class: "h-9 flex items-center justify-center font-medium" }, e), pn = () => l(
2586
2591
  { class: "grid grid-cols-7 gap-1 text-center text-xs font-medium text-muted-foreground mb-2" },
2587
2592
  ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(xn)
2588
- ), yn = ({ day: e, iso: t, disabled: s, isStart: n, isEnd: a, isBetween: l, isOtherMonth: r, click: c }) => {
2589
- let u = "ghost", h = "";
2590
- return n || a ? (u = "default", h = "bg-primary text-primary-foreground hover:bg-primary/90") : l && (h = "bg-accent text-accent-foreground hover:bg-accent/80"), s && (h += " opacity-50 cursor-not-allowed"), r && (h += " text-muted-foreground opacity-50"), b(
2593
+ ), yn = ({ day: e, iso: t, disabled: s, isStart: n, isEnd: a, isBetween: o, isOtherMonth: r, click: c }) => {
2594
+ let u = "ghost", f = "";
2595
+ return n || a ? (u = "default", f = "bg-primary text-primary-foreground hover:bg-primary/90") : o && (f = "bg-accent text-accent-foreground hover:bg-accent/80"), s && (f += " opacity-50 cursor-not-allowed"), r && (f += " text-muted-foreground opacity-50"), x(
2591
2596
  {
2592
- class: `flex items-center justify-center p-0 text-sm font-medium rounded-md transition-colors ${h}`,
2597
+ class: `flex items-center justify-center p-0 text-sm font-medium rounded-md transition-colors ${f}`,
2593
2598
  variant: u,
2594
2599
  disabled: s,
2595
- click: (y) => {
2596
- y.preventDefault(), y.stopPropagation(), s || c();
2600
+ click: (b) => {
2601
+ b.preventDefault(), b.stopPropagation(), s || c();
2597
2602
  }
2598
2603
  },
2599
2604
  e.toString()
2600
2605
  );
2601
2606
  }, wn = ({ today: e, current: t, blockPriorDates: s, onDateClick: n }) => {
2602
- const { start: a, end: l } = t, r = new Date(t.year, t.month, 1).getDay(), c = new Date(t.year, t.month + 1, 0).getDate(), u = [], h = t.month === 0 ? 11 : t.month - 1, y = t.month === 0 ? t.year - 1 : t.year, R = new Date(y, h + 1, 0).getDate(), A = t.month === 11 ? 0 : t.month + 1, P = t.month === 11 ? t.year + 1 : t.year;
2607
+ const { start: a, end: o } = t, r = new Date(t.year, t.month, 1).getDay(), c = new Date(t.year, t.month + 1, 0).getDate(), u = [], f = t.month === 0 ? 11 : t.month - 1, b = t.month === 0 ? t.year - 1 : t.year, A = new Date(b, f + 1, 0).getDate(), B = t.month === 11 ? 0 : t.month + 1, j = t.month === 11 ? t.year + 1 : t.year;
2603
2608
  for (let m = r - 1; m >= 0; m--) {
2604
- const d = R - m, w = _(y, h, d), I = new Date(y, h, d), T = new Date(e.year, e.month, e.date), j = I < T, G = s && j, K = a === w, Q = l === w, ft = a && l && w > a && w < l;
2609
+ const d = A - m, w = H(b, f, d), I = new Date(b, f, d), T = new Date(e.year, e.month, e.date), E = I < T, Q = s && E, J = a === w, X = o === w, gt = a && o && w > a && w < o;
2605
2610
  u.push({
2606
2611
  day: d,
2607
2612
  iso: w,
2608
- disabled: G,
2609
- isStart: K,
2610
- isEnd: Q,
2611
- isBetween: ft,
2613
+ disabled: Q,
2614
+ isStart: J,
2615
+ isEnd: X,
2616
+ isBetween: gt,
2612
2617
  isOtherMonth: !0,
2613
2618
  click: () => n(w)
2614
2619
  });
2615
2620
  }
2616
2621
  for (let m = 1; m <= c; m++) {
2617
- const d = _(t.year, t.month, m), w = new Date(t.year, t.month, m), I = new Date(e.year, e.month, e.date), T = w < I, j = s && T, G = a === d, K = l === d, Q = a && l && d > a && d < l;
2622
+ const d = H(t.year, t.month, m), w = new Date(t.year, t.month, m), I = new Date(e.year, e.month, e.date), T = w < I, E = s && T, Q = a === d, J = o === d, X = a && o && d > a && d < o;
2618
2623
  u.push({
2619
2624
  day: m,
2620
2625
  iso: d,
2621
- disabled: j,
2622
- isStart: G,
2623
- isEnd: K,
2624
- isBetween: Q,
2626
+ disabled: E,
2627
+ isStart: Q,
2628
+ isEnd: J,
2629
+ isBetween: X,
2625
2630
  isOtherMonth: !1,
2626
2631
  click: () => {
2627
2632
  n(d);
2628
2633
  }
2629
2634
  });
2630
2635
  }
2631
- const Ie = (7 - u.length % 7) % 7;
2632
- for (let m = 1; m <= Ie; m++) {
2633
- const d = _(P, A, m), w = new Date(P, A, m), I = new Date(e.year, e.month, e.date), T = w < I, j = s && T, G = a === d, K = l === d, Q = a && l && d > a && d < l;
2636
+ const Te = (7 - u.length % 7) % 7;
2637
+ for (let m = 1; m <= Te; m++) {
2638
+ const d = H(j, B, m), w = new Date(j, B, m), I = new Date(e.year, e.month, e.date), T = w < I, E = s && T, Q = a === d, J = o === d, X = a && o && d > a && d < o;
2634
2639
  u.push({
2635
2640
  day: m,
2636
2641
  iso: d,
2637
- disabled: j,
2638
- isStart: G,
2639
- isEnd: K,
2640
- isBetween: Q,
2642
+ disabled: E,
2643
+ isStart: Q,
2644
+ isEnd: J,
2645
+ isBetween: X,
2641
2646
  isOtherMonth: !0,
2642
2647
  click: () => n(d)
2643
2648
  });
2644
2649
  }
2645
- return o(
2650
+ return l(
2646
2651
  { class: "grid grid-cols-7 gap-1" },
2647
2652
  u.map(
2648
2653
  (m, d) => yn({
@@ -2657,7 +2662,7 @@ const dn = (e) => {
2657
2662
  })
2658
2663
  )
2659
2664
  );
2660
- }, vn = i((e, t) => o({ class: "flex flex-auto flex-col" }, [
2665
+ }, vn = i((e, t) => l({ class: "flex flex-auto flex-col" }, [
2661
2666
  bn({
2662
2667
  // @ts-ignore
2663
2668
  onMonthClick: e.onMonthClick,
@@ -2668,7 +2673,7 @@ const dn = (e) => {
2668
2673
  // @ts-ignore
2669
2674
  previous: e.previous
2670
2675
  }),
2671
- o({
2676
+ l({
2672
2677
  class: "flex flex-auto flex-col w-full",
2673
2678
  onSet: [
2674
2679
  "currentDate",
@@ -2687,13 +2692,13 @@ const dn = (e) => {
2687
2692
  ]
2688
2693
  ]
2689
2694
  })
2690
- ])), kn = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2695
+ ])), kn = ({ currentMonth: e, currentYear: t, onSelect: s }) => l(
2691
2696
  { class: "grid grid-cols-3 gap-2" },
2692
- se.monthNames.map(
2693
- (n, a) => b(
2697
+ ne.monthNames.map(
2698
+ (n, a) => x(
2694
2699
  {
2695
- click: (l) => {
2696
- l.preventDefault(), l.stopPropagation(), s(a);
2700
+ click: (o) => {
2701
+ o.preventDefault(), o.stopPropagation(), s(a);
2697
2702
  },
2698
2703
  variant: e === a ? "primary" : "ghost",
2699
2704
  "aria-label": `Select ${n} ${t}`
@@ -2701,33 +2706,33 @@ const dn = (e) => {
2701
2706
  n.substring(0, 3)
2702
2707
  )
2703
2708
  )
2704
- ), Cn = ({ start: e, end: t, selecting: s, onSelectStart: n, onSelectEnd: a }) => o({ class: "flex gap-x-2 mb-4" }, [
2705
- J("selecting", (l) => b({
2709
+ ), Cn = ({ start: e, end: t, selecting: s, onSelectStart: n, onSelectEnd: a }) => l({ class: "flex gap-x-2 mb-4" }, [
2710
+ Z("selecting", (o) => x({
2706
2711
  click: n,
2707
- variant: l === "start" ? "primary" : "outline",
2712
+ variant: o === "start" ? "primary" : "outline",
2708
2713
  class: "flex-1"
2709
2714
  }, [
2710
- o({ class: "font-medium" }, qe("current.start", "Start Date"))
2715
+ l({ class: "font-medium" }, Ge("current.start", "Start Date"))
2711
2716
  ])),
2712
- J("selecting", (l) => b({
2717
+ Z("selecting", (o) => x({
2713
2718
  click: a,
2714
- variant: l === "end" ? "primary" : "outline",
2719
+ variant: o === "end" ? "primary" : "outline",
2715
2720
  class: "flex-1"
2716
2721
  }, [
2717
- o({ class: "font-medium" }, qe("current.end", "End Date"))
2722
+ l({ class: "font-medium" }, Ge("current.end", "End Date"))
2718
2723
  ]))
2719
- ]), qe = (e, t) => [`[[${e}]]`, (s) => s == null ? t : Sn(s)], Sn = (e) => {
2724
+ ]), Ge = (e, t) => [`[[${e}]]`, (s) => s == null ? t : Sn(s)], Sn = (e) => {
2720
2725
  const t = /* @__PURE__ */ new Date(e + "T00:00:00"), s = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], n = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
2721
2726
  return `${s[t.getDay()]}, ${t.getDate()} ${n[t.getMonth()]}`;
2722
2727
  }, $n = ({ currentYear: e, onSelect: t }) => {
2723
- const s = e - 50, n = Array.from({ length: 101 }, (a, l) => s + l);
2724
- return o(
2728
+ const s = e - 50, n = Array.from({ length: 101 }, (a, o) => s + o);
2729
+ return l(
2725
2730
  { class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
2726
2731
  n.map(
2727
- (a) => b(
2732
+ (a) => x(
2728
2733
  {
2729
- click: (l) => {
2730
- l.preventDefault(), l.stopPropagation(), t(a);
2734
+ click: (o) => {
2735
+ o.preventDefault(), o.stopPropagation(), t(a);
2731
2736
  },
2732
2737
  variant: a === e ? "primary" : "ghost",
2733
2738
  "aria-label": `Select ${a}`
@@ -2753,14 +2758,14 @@ class Dn extends S {
2753
2758
  */
2754
2759
  setData() {
2755
2760
  const t = /* @__PURE__ */ new Date(), s = this.startDate ? /* @__PURE__ */ new Date(this.startDate + "T00:00:00") : t, n = s.getMonth(), a = s.getFullYear();
2756
- return new N({
2761
+ return new F({
2757
2762
  today: {
2758
2763
  date: t.getDate(),
2759
2764
  month: t.getMonth(),
2760
2765
  year: t.getFullYear()
2761
2766
  },
2762
2767
  monthName: this.getMonthName(n),
2763
- currentData: `${s.getFullYear()}-${O(s.getMonth() + 1)}-${O(s.getDate())}`,
2768
+ currentData: `${s.getFullYear()}-${N(s.getMonth() + 1)}-${N(s.getDate())}`,
2764
2769
  current: {
2765
2770
  date: t.getDate(),
2766
2771
  month: n,
@@ -2778,7 +2783,7 @@ class Dn extends S {
2778
2783
  * @returns {string}
2779
2784
  */
2780
2785
  getMonthName(t) {
2781
- return se.monthNames[t];
2786
+ return ne.monthNames[t];
2782
2787
  }
2783
2788
  /**
2784
2789
  * Initialize component state.
@@ -2824,7 +2829,7 @@ class Dn extends S {
2824
2829
  */
2825
2830
  setCurrent({ month: t, year: s, date: n = null }) {
2826
2831
  const a = this.data.current;
2827
- a.month = (t + 12) % 12, a.year = s + (t < 0 ? -1 : t > 11 ? 1 : 0), n !== null && (a.date = n), this.data.monthName = this.getMonthName(a.month), this.data.currentDate = `${s}-${O(t + 1)}-${O(a.date)}`;
2832
+ a.month = (t + 12) % 12, a.year = s + (t < 0 ? -1 : t > 11 ? 1 : 0), n !== null && (a.date = n), this.data.monthName = this.getMonthName(a.month), this.data.currentDate = `${s}-${N(t + 1)}-${N(a.date)}`;
2828
2833
  }
2829
2834
  /**
2830
2835
  * Render the range calendar.
@@ -2832,11 +2837,11 @@ class Dn extends S {
2832
2837
  * @returns {object}
2833
2838
  */
2834
2839
  render() {
2835
- const { today: t, current: s, selecting: n } = this.data, { start: a, end: l } = s;
2836
- return o({ class: "range-calendar border border-border rounded-lg shadow-md p-4 w-full max-w-sm min-w-80" }, [
2840
+ const { today: t, current: s, selecting: n } = this.data, { start: a, end: o } = s;
2841
+ return l({ class: "range-calendar border border-border rounded-lg shadow-md p-4 w-full max-w-sm min-w-80" }, [
2837
2842
  Cn({
2838
2843
  start: a,
2839
- end: l,
2844
+ end: o,
2840
2845
  selecting: n,
2841
2846
  onSelectStart: (r) => {
2842
2847
  r.preventDefault(), r.stopPropagation(), this.data.selecting = "start";
@@ -2845,7 +2850,7 @@ class Dn extends S {
2845
2850
  r.preventDefault(), r.stopPropagation(), this.data.selecting = "end";
2846
2851
  }
2847
2852
  }),
2848
- M("view", (r) => {
2853
+ P("view", (r) => {
2849
2854
  switch (r) {
2850
2855
  case "months":
2851
2856
  return kn(
@@ -2895,7 +2900,7 @@ class Dn extends S {
2895
2900
  ]);
2896
2901
  }
2897
2902
  }
2898
- const In = ({ bind: e, required: t }) => p({
2903
+ const In = ({ bind: e, required: t }) => y({
2899
2904
  cache: "input",
2900
2905
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
2901
2906
  bind: e,
@@ -2905,13 +2910,13 @@ const In = ({ bind: e, required: t }) => p({
2905
2910
  click: s
2906
2911
  }, [
2907
2912
  In({ bind: e, required: t }),
2908
- q(({ state: n }) => [
2909
- f(V.date(["[[start]]", n], "Start Date")),
2910
- f(" - "),
2911
- f(V.date(["[[end]]", n], "End Date"))
2913
+ K(({ state: n }) => [
2914
+ h(q.date(["[[start]]", n], "Start Date")),
2915
+ h(" - "),
2916
+ h(q.date(["[[end]]", n], "End Date"))
2912
2917
  ]),
2913
- U({ html: g.calendar.days })
2914
- ]), Pn = ({ handleDateSelect: e, blockPriorDates: t }) => ve((s, n, a) => new ae({
2918
+ Y({ html: g.calendar.days })
2919
+ ]), Pn = ({ handleDateSelect: e, blockPriorDates: t }) => ke((s, n, a) => new oe({
2915
2920
  cache: "dropdown",
2916
2921
  parent: a,
2917
2922
  button: a.panel,
@@ -2923,7 +2928,7 @@ const In = ({ bind: e, required: t }) => p({
2923
2928
  onRangeSelect: e,
2924
2929
  blockPriorDates: t
2925
2930
  })
2926
- ])), zo = F(
2931
+ ])), zo = L(
2927
2932
  {
2928
2933
  /**
2929
2934
  * The initial state of the DateRangePicker.
@@ -2956,9 +2961,9 @@ const In = ({ bind: e, required: t }) => p({
2956
2961
  */
2957
2962
  render() {
2958
2963
  const e = (s, { state: n }) => n.toggle("open"), t = (s, n) => {
2959
- this.state.start = s, this.state.end = n, this.state.open = !1, this.input.value = `${s}-${n}`, H.trigger("change", this.input), typeof this.onChange == "function" && this.onChange({ start: s, end: n }, this.parent);
2964
+ this.state.start = s, this.state.end = n, this.state.open = !1, this.input.value = `${s}-${n}`, U.trigger("change", this.input), typeof this.onChange == "function" && this.onChange({ start: s, end: n }, this.parent);
2960
2965
  };
2961
- return o({ class: "relative w-full max-w-[320px]" }, [
2966
+ return l({ class: "relative w-full max-w-[320px]" }, [
2962
2967
  Tn({
2963
2968
  toggleOpen: e,
2964
2969
  bind: this.bind,
@@ -2991,7 +2996,7 @@ function Bn(e) {
2991
2996
  };
2992
2997
  }
2993
2998
  function zn({ bind: e, required: t }) {
2994
- return p({
2999
+ return y({
2995
3000
  cache: "input",
2996
3001
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
2997
3002
  bind: e,
@@ -2999,7 +3004,7 @@ function zn({ bind: e, required: t }) {
2999
3004
  });
3000
3005
  }
3001
3006
  function On({ placeholder: e, handleInputChange: t, handleInputFocus: s }) {
3002
- return p({
3007
+ return y({
3003
3008
  cache: "timeInput",
3004
3009
  class: "flex-1 bg-transparent outline-none placeholder:text-muted-foreground border-0",
3005
3010
  placeholder: e || "hh:mm AM/PM",
@@ -3008,31 +3013,31 @@ function On({ placeholder: e, handleInputChange: t, handleInputFocus: s }) {
3008
3013
  onState: ["selectedTime", (n) => n || ""]
3009
3014
  });
3010
3015
  }
3011
- function Nn({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) {
3012
- return o(
3016
+ function Nn({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: o }) {
3017
+ return l(
3013
3018
  {
3014
3019
  class: "relative flex items-center gap-2 w-full justify-between border bg-input hover:bg-muted rounded-md h-10 pr-4 py-2"
3015
3020
  },
3016
3021
  [
3017
3022
  zn({ bind: e, required: t }),
3018
- On({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
3023
+ On({ placeholder: o, handleInputChange: n, handleInputFocus: a }),
3019
3024
  v(
3020
3025
  {
3021
3026
  class: "shrink-0 hover:bg-muted/50 rounded p-1 cursor-pointer",
3022
3027
  click: s
3023
3028
  },
3024
3029
  [
3025
- U({ html: g.clock })
3030
+ Y({ html: g.clock })
3026
3031
  ]
3027
3032
  )
3028
3033
  ]
3029
3034
  );
3030
3035
  }
3031
- function ue({ items: e, handleTimeSelect: t, state: s, stateValue: n, pad: a = !1 }) {
3032
- return o(
3036
+ function he({ items: e, handleTimeSelect: t, state: s, stateValue: n, pad: a = !1 }) {
3037
+ return l(
3033
3038
  { class: "flex flex-col max-h-[200px] overflow-y-auto" },
3034
- e.map((l) => {
3035
- let r = a ? l.toString().padStart(2, "0") : l.toString();
3039
+ e.map((o) => {
3040
+ let r = a ? o.toString().padStart(2, "0") : o.toString();
3036
3041
  return v({
3037
3042
  text: r,
3038
3043
  class: "hover:bg-muted/50 rounded-md pr-2 py-1",
@@ -3043,8 +3048,8 @@ function ue({ items: e, handleTimeSelect: t, state: s, stateValue: n, pad: a = !
3043
3048
  );
3044
3049
  }
3045
3050
  function Fn({ handleTimeSelect: e }) {
3046
- return ve(
3047
- (t, s, n) => new ae(
3051
+ return ke(
3052
+ (t, s, n) => new oe(
3048
3053
  {
3049
3054
  cache: "dropdown",
3050
3055
  parent: n,
@@ -3052,30 +3057,30 @@ function Fn({ handleTimeSelect: e }) {
3052
3057
  size: "fit"
3053
3058
  },
3054
3059
  [
3055
- o(
3060
+ l(
3056
3061
  { class: "flex flex-auto flex-col border rounded-md shadow-md" },
3057
3062
  [
3058
- o(
3063
+ l(
3059
3064
  { class: "grid grid-cols-3 gap-2 p-4 text-center max-h-[220px] min-w-[240px]" },
3060
3065
  [
3061
3066
  // Hours column
3062
- ue({
3063
- items: Array.from({ length: 12 }, (a, l) => l + 1),
3067
+ he({
3068
+ items: Array.from({ length: 12 }, (a, o) => o + 1),
3064
3069
  handleTimeSelect: e,
3065
3070
  state: n.state,
3066
3071
  stateValue: "hour",
3067
3072
  pad: !0
3068
3073
  }),
3069
3074
  // Minutes column
3070
- ue({
3071
- items: Array.from({ length: 60 }, (a, l) => l),
3075
+ he({
3076
+ items: Array.from({ length: 60 }, (a, o) => o),
3072
3077
  handleTimeSelect: e,
3073
3078
  state: n.state,
3074
3079
  stateValue: "minute",
3075
3080
  pad: !0
3076
3081
  }),
3077
3082
  // AM/PM column
3078
- ue({
3083
+ he({
3079
3084
  items: ["AM", "PM"],
3080
3085
  handleTimeSelect: e,
3081
3086
  state: n.state,
@@ -3089,20 +3094,20 @@ function Fn({ handleTimeSelect: e }) {
3089
3094
  )
3090
3095
  );
3091
3096
  }
3092
- function Ge(e) {
3097
+ function Ke(e) {
3093
3098
  if (!e)
3094
3099
  return { hour: null, minute: null, meridian: null };
3095
3100
  const t = /^(\d{1,2}):(\d{2})(?::(\d{2}))?\s?(AM|PM)?$/i, s = e.match(t);
3096
3101
  if (!s)
3097
3102
  return { hour: null, minute: null, meridian: null };
3098
- let [, n, a, , l] = s, r = parseInt(n, 10), c = parseInt(a, 10);
3099
- return r < 0 || r > 23 || c < 0 || c > 59 ? { hour: null, minute: null, meridian: null } : (l ? (l = l.toUpperCase(), l === "PM" && r < 12 ? r += 12 : l === "AM" && r === 12 && (r = 12)) : r === 0 ? (l = "AM", r = 12) : r < 12 ? l = "AM" : r === 12 ? l = "PM" : (l = "PM", r -= 12), {
3103
+ let [, n, a, , o] = s, r = parseInt(n, 10), c = parseInt(a, 10);
3104
+ return r < 0 || r > 23 || c < 0 || c > 59 ? { hour: null, minute: null, meridian: null } : (o ? (o = o.toUpperCase(), o === "PM" && r < 12 ? r += 12 : o === "AM" && r === 12 && (r = 12)) : r === 0 ? (o = "AM", r = 12) : r < 12 ? o = "AM" : r === 12 ? o = "PM" : (o = "PM", r -= 12), {
3100
3105
  hour: r.toString().padStart(2, "0"),
3101
3106
  minute: c.toString().padStart(2, "0"),
3102
- meridian: l
3107
+ meridian: o
3103
3108
  });
3104
3109
  }
3105
- const Oo = F(
3110
+ const Oo = L(
3106
3111
  {
3107
3112
  /**
3108
3113
  * The initial shallow state of the TimePicker.
@@ -3110,7 +3115,7 @@ const Oo = F(
3110
3115
  * @member {object} state
3111
3116
  */
3112
3117
  state() {
3113
- const e = this.selectedTime ?? null, { hour: t, minute: s, meridian: n } = Ge(e);
3118
+ const e = this.selectedTime ?? null, { hour: t, minute: s, meridian: n } = Ke(e);
3114
3119
  return {
3115
3120
  selectedTime: e,
3116
3121
  open: !1,
@@ -3126,7 +3131,7 @@ const Oo = F(
3126
3131
  */
3127
3132
  after() {
3128
3133
  if (this.input.value) {
3129
- const { hour: e, minute: t, meridian: s } = Ge(this.input.value);
3134
+ const { hour: e, minute: t, meridian: s } = Ke(this.input.value);
3130
3135
  this.state.set({
3131
3136
  hour: e,
3132
3137
  minute: t,
@@ -3157,7 +3162,7 @@ const Oo = F(
3157
3162
  minute: n.minute,
3158
3163
  meridian: n.meridian,
3159
3164
  selectedTime: n.formattedTime
3160
- }), this.input.value = n.formattedTime, H.trigger("change", this.input), typeof this.change == "function" && this.change(n.formattedTime)), e.target.value = s;
3165
+ }), this.input.value = n.formattedTime, U.trigger("change", this.input), typeof this.change == "function" && this.change(n.formattedTime)), e.target.value = s;
3161
3166
  },
3162
3167
  /**
3163
3168
  * Handles input focus - select all text for easy editing.
@@ -3175,7 +3180,7 @@ const Oo = F(
3175
3180
  handleTimeSelect({ hour: e, minute: t, meridian: s }) {
3176
3181
  if (e && (this.state.hour = e), t && (this.state.minute = t), s && (this.state.meridian = s), this.state.hour && this.state.minute && this.state.meridian) {
3177
3182
  const n = `${this.state.hour}:${this.state.minute} ${this.state.meridian}`;
3178
- this.state.selectedTime = n, this.state.open = !1, this.input.value = n, H.trigger("change", this.input), typeof this.change == "function" && this.change(n);
3183
+ this.state.selectedTime = n, this.state.open = !1, this.input.value = n, U.trigger("change", this.input), typeof this.change == "function" && this.change(n);
3179
3184
  }
3180
3185
  },
3181
3186
  /**
@@ -3184,7 +3189,7 @@ const Oo = F(
3184
3189
  * @returns {object}
3185
3190
  */
3186
3191
  render() {
3187
- return o(
3192
+ return l(
3188
3193
  { class: "relative w-full max-w-[320px]" },
3189
3194
  [
3190
3195
  Nn({
@@ -3202,11 +3207,11 @@ const Oo = F(
3202
3207
  );
3203
3208
  }
3204
3209
  }
3205
- ), Ln = (e, t) => o({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
3206
- x({ size: "lg" }, e)
3207
- ]), Rn = ({ title: e }) => ee({ class: "flex flex-auto items-center" }, [
3208
- Z({ class: "text-lg font-semibold" }, e)
3209
- ]), No = i((e, t) => pt(
3210
+ ), Ln = (e, t) => l({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
3211
+ p({ size: "lg" }, e)
3212
+ ]), Rn = ({ title: e }) => te({ class: "flex flex-auto items-center" }, [
3213
+ ee({ class: "text-lg font-semibold" }, e)
3214
+ ]), No = i((e, t) => yt(
3210
3215
  {
3211
3216
  class: `fixed pullUpIn z-30 w-[98%] border md:w-full max-w-lg bg-popover text-foreground shadow-lg duration-200
3212
3217
  rounded-lg flex flex-auto flex-col
@@ -3216,35 +3221,35 @@ const Oo = F(
3216
3221
  aria: { expanded: ["open"] }
3217
3222
  },
3218
3223
  [
3219
- o({ class: "flex flex-auto p-6 pb-12 md:pb-6" }, [
3224
+ l({ class: "flex flex-auto p-6 pb-12 md:pb-6" }, [
3220
3225
  // Icon and content
3221
3226
  // @ts-ignore
3222
3227
  e.icon && Ln(e.icon, e.iconColor),
3223
- o({ class: "flex flex-auto flex-col gap-4" }, [
3224
- o({ class: "flex flex-auto flex-col gap-y-2" }, [
3228
+ l({ class: "flex flex-auto flex-col gap-4" }, [
3229
+ l({ class: "flex flex-auto flex-col gap-y-2" }, [
3225
3230
  Rn(e),
3226
3231
  // @ts-ignore
3227
3232
  e.description && k({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, e.description),
3228
- o({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, t)
3233
+ l({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, t)
3229
3234
  ]),
3230
3235
  // @ts-ignore
3231
- e.buttons && xe({ class: "flex flex-col-reverse sm:flex-row sm:justify-end mt-6 gap-2 sm:gap-0 sm:gap-x-2" }, e.buttons)
3236
+ e.buttons && pe({ class: "flex flex-col-reverse sm:flex-row sm:justify-end mt-6 gap-2 sm:gap-0 sm:gap-x-2" }, e.buttons)
3232
3237
  ])
3233
3238
  ])
3234
3239
  ]
3235
- )), Fo = i((e, t = []) => o({ class: "w-full max-w-md p-6 m-auto" }, [
3236
- at({ class: "flex flex-auto flex-col" }, [
3237
- o({ class: "flex flex-auto flex-col gap-y-4" }, [
3238
- o({ class: "flex flex-auto items-center justify-center" }, [
3240
+ )), Fo = i((e, t = []) => l({ class: "w-full max-w-md p-6 m-auto" }, [
3241
+ ot({ class: "flex flex-auto flex-col" }, [
3242
+ l({ class: "flex flex-auto flex-col gap-y-4" }, [
3243
+ l({ class: "flex flex-auto items-center justify-center" }, [
3239
3244
  // @ts-ignore
3240
- e.icon && o({ class: "w-16 h-16 mb-2 text-primary" }, [
3245
+ e.icon && l({ class: "w-16 h-16 mb-2 text-primary" }, [
3241
3246
  // @ts-ignore
3242
- x({ size: "lg" }, e.icon)
3247
+ p({ size: "lg" }, e.icon)
3243
3248
  ])
3244
3249
  ]),
3245
- ee({ class: "py-4 text-center" }, [
3250
+ te({ class: "py-4 text-center" }, [
3246
3251
  // @ts-ignore
3247
- Z({ class: "text-xl font-bold" }, e.title),
3252
+ ee({ class: "text-xl font-bold" }, e.title),
3248
3253
  // @ts-ignore
3249
3254
  k({ class: "pb-8 text-muted-foreground" }, e.description || ""),
3250
3255
  ...t
@@ -3266,21 +3271,21 @@ i(({ value: e, label: t }) => v({
3266
3271
  const An = (e, t) => {
3267
3272
  const s = e.toggleAllSelectedRows();
3268
3273
  t.state.checked = !s;
3269
- }, jn = (e) => Xe({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
3270
- q((t) => new Kt({ class: "mr-2", onChange: (s, n) => An(t, n) }))
3271
- ]), En = ({ align: e, sortable: t, key: s, label: n, sort: a, class: l }) => {
3274
+ }, jn = (e) => Ze({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
3275
+ K((t) => new Kt({ class: "mr-2", onChange: (s, n) => An(t, n) }))
3276
+ ]), En = ({ align: e, sortable: t, key: s, label: n, sort: a, class: o }) => {
3272
3277
  const r = e || "justify-start";
3273
- return Xe({
3274
- class: `cursor-pointer py-3 px-4 text-base ${l || ""}`,
3278
+ return Ze({
3279
+ class: `cursor-pointer py-3 px-4 text-base ${o || ""}`,
3275
3280
  click: t && (() => a(s))
3276
3281
  }, [
3277
- o({ class: `flex flex-auto w-full items-center ${r}` }, [
3278
- f(n),
3279
- t && U({ class: "ml-2", html: g.arrows.upDown })
3282
+ l({ class: `flex flex-auto w-full items-center ${r}` }, [
3283
+ h(n),
3284
+ t && Y({ class: "ml-2", html: g.arrows.upDown })
3280
3285
  ])
3281
3286
  ]);
3282
- }, De = (e) => yt([
3283
- wt({
3287
+ }, Ie = (e) => wt([
3288
+ vt({
3284
3289
  class: "text-muted-foreground border-b",
3285
3290
  map: [
3286
3291
  e.headers,
@@ -3293,17 +3298,17 @@ const An = (e, t) => {
3293
3298
  })
3294
3299
  ]
3295
3300
  })
3296
- ]), _n = ({ key: e, rows: t, selectRow: s, rowItem: n, emptyState: a, skeleton: l, columnCount: r }) => new $t({
3301
+ ]), _n = ({ key: e, rows: t, selectRow: s, rowItem: n, emptyState: a, skeleton: o, columnCount: r }) => new Dt({
3297
3302
  cache: "list",
3298
3303
  key: e,
3299
3304
  items: t,
3300
3305
  rowItem: (c) => n(c, s),
3301
3306
  class: "divide-y divide-border",
3302
3307
  emptyState: a,
3303
- skeleton: l,
3308
+ skeleton: o,
3304
3309
  columnCount: r
3305
3310
  });
3306
- class rt extends S {
3311
+ class it extends S {
3307
3312
  /**
3308
3313
  * Initializes component data.
3309
3314
  *
@@ -3311,7 +3316,7 @@ class rt extends S {
3311
3316
  */
3312
3317
  setData() {
3313
3318
  let t = this.rows && this.rows.length > 0;
3314
- return (this.loadMoreItems || this.tableData) && !t && (t = null), new N({
3319
+ return (this.loadMoreItems || this.tableData) && !t && (t = null), new F({
3315
3320
  selectedRows: [],
3316
3321
  // @ts-ignore
3317
3322
  hasItems: t,
@@ -3363,7 +3368,7 @@ class rt extends S {
3363
3368
  selectRow(t) {
3364
3369
  const s = t.selected ?? !1;
3365
3370
  t.selected = !s;
3366
- const n = this.data.get("selectedRows"), a = t.selected ? [...n, t] : n.filter((l) => l !== t);
3371
+ const n = this.data.get("selectedRows"), a = t.selected ? [...n, t] : n.filter((o) => o !== t);
3367
3372
  this.data.selectedRows = a, this.updateSelected();
3368
3373
  }
3369
3374
  /**
@@ -3381,12 +3386,12 @@ class rt extends S {
3381
3386
  */
3382
3387
  render() {
3383
3388
  const t = this.border !== !1 ? "border" : "", s = this.getHeaderColCount();
3384
- return o({ class: "w-full flex flex-auto flex-col" }, [
3385
- J("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3386
- o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3387
- ke({ class: "w-full" }, [
3389
+ return l({ class: "w-full flex flex-auto flex-col" }, [
3390
+ Z("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3391
+ l({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3392
+ Ce({ class: "w-full" }, [
3388
3393
  // @ts-ignore
3389
- this.headers && De({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3394
+ this.headers && Ie({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3390
3395
  // @ts-ignore
3391
3396
  this.customHeader ?? null,
3392
3397
  _n({
@@ -3468,7 +3473,7 @@ class rt extends S {
3468
3473
  this.data.selectedRows = [];
3469
3474
  }
3470
3475
  }
3471
- const Hn = (e) => new Dt({
3476
+ const Hn = (e) => new It({
3472
3477
  cache: "list",
3473
3478
  loadMoreItems: e.loadMoreItems,
3474
3479
  offset: e.offset,
@@ -3482,7 +3487,7 @@ const Hn = (e) => new Dt({
3482
3487
  skeleton: e.skeleton,
3483
3488
  columnCount: e.columnCount
3484
3489
  });
3485
- class Un extends rt {
3490
+ class Un extends it {
3486
3491
  /**
3487
3492
  * Renders the DataTable component.
3488
3493
  *
@@ -3490,12 +3495,12 @@ class Un extends rt {
3490
3495
  */
3491
3496
  render() {
3492
3497
  const t = this.border !== !1 ? "border" : "", s = this.getHeaderColCount();
3493
- return o({ class: "w-full flex flex-auto flex-col" }, [
3494
- J("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3495
- o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3496
- ke({ class: "w-full" }, [
3498
+ return l({ class: "w-full flex flex-auto flex-col" }, [
3499
+ Z("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3500
+ l({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3501
+ Ce({ class: "w-full" }, [
3497
3502
  // @ts-ignore
3498
- this.headers && De({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3503
+ this.headers && Ie({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3499
3504
  // @ts-ignore
3500
3505
  this.customHeader ?? null,
3501
3506
  Hn({
@@ -3569,7 +3574,7 @@ const Lo = i((e) => new Un(
3569
3574
  // @ts-ignore
3570
3575
  skeleton: e.skeleton
3571
3576
  }
3572
- )), Yn = (e) => new It({
3577
+ )), Yn = (e) => new Tt({
3573
3578
  cache: "list",
3574
3579
  scrollContainer: e.scrollContainer,
3575
3580
  loadMoreItems: e.loadMoreItems,
@@ -3584,7 +3589,7 @@ const Lo = i((e) => new Un(
3584
3589
  skeleton: e.skeleton,
3585
3590
  columnCount: e.columnCount
3586
3591
  });
3587
- class Wn extends rt {
3592
+ class Vn extends it {
3588
3593
  /**
3589
3594
  * Renders the DataTable component.
3590
3595
  *
@@ -3592,12 +3597,12 @@ class Wn extends rt {
3592
3597
  */
3593
3598
  render() {
3594
3599
  const t = this.border !== !1 ? "border" : "", s = this.getHeaderColCount();
3595
- return o({ class: "w-full flex flex-auto flex-col" }, [
3596
- J("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3597
- o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3598
- ke({ class: "w-full" }, [
3600
+ return l({ class: "w-full flex flex-auto flex-col" }, [
3601
+ Z("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3602
+ l({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3603
+ Ce({ class: "w-full" }, [
3599
3604
  // @ts-ignore
3600
- this.headers && De({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3605
+ this.headers && Ie({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3601
3606
  // @ts-ignore
3602
3607
  this.customHeader ?? null,
3603
3608
  Yn({
@@ -3640,7 +3645,7 @@ class Wn extends rt {
3640
3645
  this.list.refresh();
3641
3646
  }
3642
3647
  }
3643
- const Ro = i((e) => new Wn(
3648
+ const Ro = i((e) => new Vn(
3644
3649
  {
3645
3650
  // @ts-ignore
3646
3651
  cache: e.cache ?? "list",
@@ -3675,26 +3680,26 @@ const Ro = i((e) => new Wn(
3675
3680
  // @ts-ignore
3676
3681
  skeleton: e.skeleton
3677
3682
  }
3678
- )), Vn = i(({ name: e, email: t }) => o({ class: "min-w-0 flex-auto" }, [
3683
+ )), Wn = i(({ name: e, email: t }) => l({ class: "min-w-0 flex-auto" }, [
3679
3684
  k({ class: "text-base font-semibold leading-6 m-0" }, e),
3680
3685
  k({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, t)
3681
- ])), qn = () => o({ class: "flex items-center gap-x-1.5" }, [
3682
- o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
3683
- o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
3686
+ ])), qn = () => l({ class: "flex items-center gap-x-1.5" }, [
3687
+ l({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
3688
+ l({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
3684
3689
  ]),
3685
3690
  k({ class: "text-xs leading-5 text-gray-500" }, "Online")
3686
3691
  ]), Gn = (e) => k({ class: "text-xs leading-5 text-muted-foreground" }, [
3687
- f("Last seen "),
3688
- vt({ datetime: e }, "3h ago")
3689
- ]), Kn = (e, t) => e === "online" ? qn() : Gn(t), Qn = i(({ role: e, lastSeen: t, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
3692
+ h("Last seen "),
3693
+ kt({ datetime: e }, "3h ago")
3694
+ ]), Kn = (e, t) => e === "online" ? qn() : Gn(t), Qn = i(({ role: e, lastSeen: t, status: s }) => l({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
3690
3695
  k({ class: "text-sm leading-6 m-0" }, e),
3691
3696
  Kn(s, t)
3692
- ])), Jn = (e) => e.split(" ").map((s) => s[0]).join(""), Xn = i((e) => we({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
3693
- o({ class: "flex min-w-0 gap-x-4" }, [
3697
+ ])), Jn = (e) => e.split(" ").map((s) => s[0]).join(""), Xn = i((e) => ve({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
3698
+ l({ class: "flex min-w-0 gap-x-4" }, [
3694
3699
  // @ts-ignore
3695
3700
  Fs({ src: e.image, alt: e.name, fallbackText: Jn(e.name) }),
3696
3701
  // @ts-ignore
3697
- Vn({ name: e.name, email: e.email })
3702
+ Wn({ name: e.name, email: e.email })
3698
3703
  ]),
3699
3704
  Qn({
3700
3705
  // @ts-ignore
@@ -3704,7 +3709,7 @@ const Ro = i((e) => new Wn(
3704
3709
  // @ts-ignore
3705
3710
  status: e.status
3706
3711
  })
3707
- ])), Ao = i((e) => new Tt({
3712
+ ])), Ao = i((e) => new Pt({
3708
3713
  cache: "list",
3709
3714
  key: "name",
3710
3715
  // @ts-ignore
@@ -3782,16 +3787,16 @@ const ea = i(({ options: e, click: t }, s) => ({
3782
3787
  },
3783
3788
  children: s
3784
3789
  })), ta = (e, t = null, s = !1) => [
3785
- t && o({
3790
+ t && l({
3786
3791
  class: "icon w-12 rounded-md flex items-center justify-center min-w-12",
3787
3792
  onState: ["selected", {
3788
3793
  selected: !0
3789
3794
  }]
3790
3795
  }, [
3791
- x({ size: "sm" }, t)
3796
+ p({ size: "sm" }, t)
3792
3797
  ]),
3793
- Y({ class: "label flex flex-auto text-sm items-center cursor-pointer whitespace-nowrap" }, e),
3794
- s && f(
3798
+ V({ class: "label flex flex-auto text-sm items-center cursor-pointer whitespace-nowrap" }, e),
3799
+ s && h(
3795
3800
  {
3796
3801
  class: "flex justify-center items-center px-1 transition-all text-muted-foreground mr-2",
3797
3802
  onState: [
@@ -3804,11 +3809,11 @@ const ea = i(({ options: e, click: t }, s) => ({
3804
3809
  ]
3805
3810
  },
3806
3811
  [
3807
- x({ size: "xs" }, g.chevron.single.down)
3812
+ p({ size: "xs" }, g.chevron.single.down)
3808
3813
  ]
3809
3814
  )
3810
3815
  ];
3811
- class it extends S {
3816
+ class ct extends S {
3812
3817
  /**
3813
3818
  * This will declare the props for the compiler.
3814
3819
  *
@@ -3840,7 +3845,7 @@ class it extends S {
3840
3845
  */
3841
3846
  addLink() {
3842
3847
  const t = this.options && this.options.length > 0, s = this.content || ta(String(this.label), this.icon, t);
3843
- return this.href ? new Ct(
3848
+ return this.href ? new St(
3844
3849
  {
3845
3850
  class: "flex flex-auto flex-row rounded-md transition-all overflow-x-hidden",
3846
3851
  cache: "link",
@@ -3867,8 +3872,8 @@ class it extends S {
3867
3872
  this.link.update(t);
3868
3873
  }
3869
3874
  }
3870
- const sa = i(({ map: e }, t) => te({ class: "navigation-group flex flex-col gap-2 list-none m-0 py-2 px-0", map: e }, [
3871
- Ke({ class: "text-muted-foreground text-sm py-0 px-4 whitespace-nowrap" }, t)
3875
+ const sa = i(({ map: e }, t) => se({ class: "navigation-group flex flex-col gap-2 list-none m-0 py-2 px-0", map: e }, [
3876
+ Qe({ class: "text-muted-foreground text-sm py-0 px-4 whitespace-nowrap" }, t)
3872
3877
  ]));
3873
3878
  class na extends S {
3874
3879
  /**
@@ -3886,8 +3891,8 @@ class na extends S {
3886
3891
  */
3887
3892
  render() {
3888
3893
  const t = this.mapOptions(this.options), s = this.class || "", n = this.mobileBorder ? "border md:border-0 rounded-md" : "";
3889
- return ye({ class: `navigation flex flex-auto flex-col ${s}` }, [
3890
- te({
3894
+ return we({ class: `navigation flex flex-auto flex-col ${s}` }, [
3895
+ se({
3891
3896
  class: `relative group flex flex-col gap-2 py-2 px-2 list-none m-0 ${n}`,
3892
3897
  map: t
3893
3898
  }),
@@ -3928,10 +3933,10 @@ class na extends S {
3928
3933
  * @returns {object}
3929
3934
  */
3930
3935
  addLink(t) {
3931
- return new it(t);
3936
+ return new ct(t);
3932
3937
  }
3933
3938
  }
3934
- class ct extends na {
3939
+ class dt extends na {
3935
3940
  onCreated() {
3936
3941
  this.links = [];
3937
3942
  }
@@ -3966,7 +3971,7 @@ class ct extends na {
3966
3971
  * @returns {object}
3967
3972
  */
3968
3973
  addLink(t) {
3969
- const s = new it(t);
3974
+ const s = new ct(t);
3970
3975
  if (this.links.push(s), !s.options)
3971
3976
  return s;
3972
3977
  const n = this.addSubNav(s);
@@ -3977,11 +3982,11 @@ class ct extends na {
3977
3982
  };
3978
3983
  }
3979
3984
  }
3980
- const he = /* @__PURE__ */ new Map(), aa = (e, t) => (he.has(e) || he.set(e, new RegExp(`${e}($|/|\\.).*`)), he.get(e).test(t)), oa = (e, t) => {
3985
+ const fe = /* @__PURE__ */ new Map(), aa = (e, t) => (fe.has(e) || fe.set(e, new RegExp(`${e}($|/|\\.).*`)), fe.get(e).test(t)), oa = (e, t) => {
3981
3986
  const s = e.link.panel.pathname;
3982
3987
  return !s && e.isSelected() ? !0 : e.exact ? t === s : aa(s, t);
3983
3988
  };
3984
- class la extends ct {
3989
+ class la extends dt {
3985
3990
  /**
3986
3991
  * This will declare the props for the compiler.
3987
3992
  *
@@ -3997,8 +4002,8 @@ class la extends ct {
3997
4002
  */
3998
4003
  render() {
3999
4004
  const t = `navigation flex flex-auto flex-col sub ${this.mainClassName || ""}`, s = this.mapOptions(this.options);
4000
- return ye({ class: t, onState: this.onState() }, [
4001
- te({ class: "relative group flex flex-col gap-2 py-2 px-0 list-none m-0" }, [...s, ...this.addSubs(), this.addWatcher()])
4005
+ return we({ class: t, onState: this.onState() }, [
4006
+ se({ class: "relative group flex flex-col gap-2 py-2 px-0 list-none m-0" }, [...s, ...this.addSubs(), this.addWatcher()])
4002
4007
  ]);
4003
4008
  }
4004
4009
  /**
@@ -4010,7 +4015,7 @@ class la extends ct {
4010
4015
  addWatcher() {
4011
4016
  return {
4012
4017
  watch: {
4013
- value: ["[[path]]", X.data],
4018
+ value: ["[[path]]", G.data],
4014
4019
  callBack: this.updateLinks.bind(this)
4015
4020
  }
4016
4021
  };
@@ -4051,7 +4056,7 @@ class la extends ct {
4051
4056
  * @returns {void}
4052
4057
  */
4053
4058
  afterSetup() {
4054
- const t = X.data.path;
4059
+ const t = G.data.path;
4055
4060
  this.updateLinks(t);
4056
4061
  }
4057
4062
  /**
@@ -4068,15 +4073,15 @@ class la extends ct {
4068
4073
  this.parentLink.update(s);
4069
4074
  }
4070
4075
  }
4071
- const ra = (e) => pe({ class: "text-lg ml-2" }, e), ia = (e) => o({ class: "sticky flex flex-row items-center bg-popover lg:hidden top-0 z-10 border-0 border-b" }, [
4072
- b({
4076
+ const ra = (e) => ye({ class: "text-lg ml-2" }, e), ia = (e) => l({ class: "sticky flex flex-row items-center bg-popover lg:hidden top-0 z-10 border-0 border-b" }, [
4077
+ x({
4073
4078
  variant: "icon",
4074
4079
  class: "m-2",
4075
4080
  click: (t, { state: s }) => s.toggle("open"),
4076
4081
  icon: g.arrows.left
4077
4082
  }),
4078
4083
  e.title && ra(e.title)
4079
- ]), ca = () => o({
4084
+ ]), ca = () => l({
4080
4085
  class: `
4081
4086
  absolute inset-0 bg-black/40 z-[-1] fadeIn
4082
4087
  transition-opacity duration-200
@@ -4098,21 +4103,21 @@ class da extends S {
4098
4103
  * @returns {object}
4099
4104
  */
4100
4105
  render() {
4101
- return o({
4106
+ return l({
4102
4107
  class: "fixed inset-0 z-50",
4103
4108
  style: "[[typeClass]]"
4104
4109
  }, [
4105
4110
  ca(),
4106
4111
  // Popover Content
4107
- o({
4112
+ l({
4108
4113
  class: `
4109
4114
  absolute popIn w-auto p-0 bg-popover m-auto shadow-lg rounded-md top-0 bottom-0 left-2 right-2 max-h-[85vh] text-inherit block
4110
4115
  `,
4111
4116
  dataSet: ["open", ["expanded", !0, "true"]]
4112
4117
  }, [
4113
- o({ class: "flex flex-auto flex-col w-full h-full overflow-y-auto max-h-[85vh] rounded-md bg-popover border" }, [
4118
+ l({ class: "flex flex-auto flex-col w-full h-full overflow-y-auto max-h-[85vh] rounded-md bg-popover border" }, [
4114
4119
  ia({ title: this.title }),
4115
- o({ class: "flex flex-auto flex-col" }, this.children)
4120
+ l({ class: "flex flex-auto flex-col" }, this.children)
4116
4121
  ])
4117
4122
  ])
4118
4123
  ]);
@@ -4149,23 +4154,23 @@ class da extends S {
4149
4154
  this.container = app.root;
4150
4155
  }
4151
4156
  }
4152
- const dt = () => b({ class: "m-2", variant: "ghost", addState() {
4157
+ const ut = () => x({ class: "m-2", variant: "ghost", addState() {
4153
4158
  return {
4154
4159
  open: !1
4155
4160
  };
4156
4161
  }, click: (e, { state: t }) => t.toggle("open") }, [
4157
- x({}, g.bar.three)
4158
- ]), ua = (e) => pe({ class: "text-lg ml-2" }, e), ha = (e) => o({ class: "flex flex-auto flex-row items-center lg:hidden" }, [
4159
- dt(),
4162
+ p({}, g.bar.three)
4163
+ ]), ua = (e) => ye({ class: "text-lg ml-2" }, e), ha = (e) => l({ class: "flex flex-auto flex-row items-center lg:hidden" }, [
4164
+ ut(),
4160
4165
  e.title && ua(e.title)
4161
- ]), ut = (e, t) => e.map((s) => s.options ? { ...s, options: ut(s.options, t) } : { ...s, callBack: t }), ht = (e) => o({ class: "bg-background flex flex-auto flex-col w-full relative" }, [
4162
- M(
4166
+ ]), ht = (e, t) => e.map((s) => s.options ? { ...s, options: ht(s.options, t) } : { ...s, callBack: t }), ft = (e) => l({ class: "bg-background flex flex-auto flex-col w-full relative" }, [
4167
+ P(
4163
4168
  "open",
4164
4169
  (t) => t ? [
4165
4170
  new da({ title: e.title }, [
4166
- q(({ state: s }) => {
4167
- const n = (l) => s.open = !1, a = ut(e.options, n);
4168
- return new ct(
4171
+ K(({ state: s }) => {
4172
+ const n = (o) => s.open = !1, a = ht(e.options, n);
4173
+ return new dt(
4169
4174
  {
4170
4175
  options: a
4171
4176
  }
@@ -4174,20 +4179,20 @@ const dt = () => b({ class: "m-2", variant: "ghost", addState() {
4174
4179
  ])
4175
4180
  ] : null
4176
4181
  )
4177
- ]), jo = i((e) => o({ cache: "mobileNav", class: "inline-flex relative lg:hidden" }, [
4178
- o([
4179
- dt(),
4180
- ht(e)
4182
+ ]), jo = i((e) => l({ cache: "mobileNav", class: "inline-flex relative lg:hidden" }, [
4183
+ l([
4184
+ ut(),
4185
+ ft(e)
4181
4186
  ])
4182
- ])), Eo = i((e) => o({ cache: "mobileNav", class: "flex flex-auto flex-col w-full relative lg:hidden" }, [
4183
- o({ class: "flex flex-auto flex-col w-full" }, [
4187
+ ])), Eo = i((e) => l({ cache: "mobileNav", class: "flex flex-auto flex-col w-full relative lg:hidden" }, [
4188
+ l({ class: "flex flex-auto flex-col w-full" }, [
4184
4189
  ha(e),
4185
- ht(e)
4190
+ ft(e)
4186
4191
  ])
4187
4192
  ])), _o = i((e) => {
4188
4193
  const t = e.margin || "m-4 ml-0";
4189
- return o({ class: `flex-none ${t}` }, [
4190
- b({ variant: "back", class: "ghost", ...e })
4194
+ return l({ class: `flex-none ${t}` }, [
4195
+ x({ variant: "back", class: "ghost", ...e })
4191
4196
  ]);
4192
4197
  });
4193
4198
  class fa extends S {
@@ -4205,7 +4210,7 @@ class fa extends S {
4205
4210
  * @returns {object}
4206
4211
  */
4207
4212
  render() {
4208
- return o(
4213
+ return l(
4209
4214
  {
4210
4215
  class: this.getClassName(),
4211
4216
  // @ts-ignore
@@ -4274,7 +4279,7 @@ class fa extends S {
4274
4279
  * @returns {object}
4275
4280
  */
4276
4281
  addBody() {
4277
- return o({ class: "body fadeIn flex flex-auto flex-col bg-background" }, this.getContents());
4282
+ return l({ class: "body fadeIn flex flex-auto flex-col bg-background" }, this.getContents());
4278
4283
  }
4279
4284
  /**
4280
4285
  * This will get the body contents.
@@ -4285,7 +4290,7 @@ class fa extends S {
4285
4290
  return this.children;
4286
4291
  }
4287
4292
  }
4288
- et.addType("dockableOverlay", (e) => {
4293
+ tt.addType("dockableOverlay", (e) => {
4289
4294
  if (!e)
4290
4295
  return;
4291
4296
  const t = e.component;
@@ -4307,7 +4312,7 @@ class Ho extends fa {
4307
4312
  */
4308
4313
  render() {
4309
4314
  const t = this.container;
4310
- return o(
4315
+ return l(
4311
4316
  {
4312
4317
  // @ts-ignore
4313
4318
  animateIn: this.animateIn ?? null,
@@ -4361,7 +4366,7 @@ class Ho extends fa {
4361
4366
  * @returns {void}
4362
4367
  */
4363
4368
  afterSetup() {
4364
- et.add(
4369
+ tt.add(
4365
4370
  this.container,
4366
4371
  "dockableOverlay",
4367
4372
  {
@@ -4396,7 +4401,7 @@ class Ho extends fa {
4396
4401
  this.state.docked = this.canDock();
4397
4402
  }
4398
4403
  }
4399
- const ga = i(({ index: e, click: t, state: s }, n) => we({
4404
+ const ga = i(({ index: e, click: t, state: s }, n) => ve({
4400
4405
  class: "p-2 cursor-pointer hover:bg-muted/50",
4401
4406
  onState: [
4402
4407
  [s, "selectedIndex", {
@@ -4405,11 +4410,11 @@ const ga = i(({ index: e, click: t, state: s }, n) => we({
4405
4410
  }]
4406
4411
  ],
4407
4412
  click: () => t(e)
4408
- }, n)), ma = i(({ selectOption: e, state: t }) => te({
4413
+ }, n)), ma = i(({ selectOption: e, state: t }) => se({
4409
4414
  class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
4410
4415
  for: ["filteredOptions", (s, n) => ga({ index: n, click: e, state: t }, s.label)]
4411
- })), ba = i((e) => o({ class: "relative flex flex-auto items-center" }, [
4412
- L({
4416
+ })), ba = i((e) => l({ class: "relative flex flex-auto items-center" }, [
4417
+ R({
4413
4418
  cache: "input",
4414
4419
  // @ts-ignore
4415
4420
  class: e.class ?? "",
@@ -4429,15 +4434,15 @@ const ga = i(({ index: e, click: t, state: s }, n) => we({
4429
4434
  ]
4430
4435
  }),
4431
4436
  // @ts-ignore
4432
- e.icon && o({ class: "absolute flex right-0 mr-2" }, [
4437
+ e.icon && l({ class: "absolute flex right-0 mr-2" }, [
4433
4438
  // @ts-ignore
4434
- x({ size: "sm" }, e.icon)
4439
+ p({ size: "sm" }, e.icon)
4435
4440
  ])
4436
- ])), xa = (e) => o({
4441
+ ])), xa = (e) => l({
4437
4442
  class: "relative flex fle-auto flex-col",
4438
4443
  onState: ["open", (t, s, n) => {
4439
4444
  if (t)
4440
- return new ae({
4445
+ return new oe({
4441
4446
  cache: "dropdown",
4442
4447
  parent: n,
4443
4448
  button: n.input,
@@ -4446,7 +4451,7 @@ const ga = i(({ index: e, click: t, state: s }, n) => we({
4446
4451
  ma(e)
4447
4452
  ]);
4448
4453
  }]
4449
- }), Uo = B(
4454
+ }), Uo = M(
4450
4455
  {
4451
4456
  /**
4452
4457
  * This will set up the data object.
@@ -4455,7 +4460,7 @@ const ga = i(({ index: e, click: t, state: s }, n) => we({
4455
4460
  */
4456
4461
  setData() {
4457
4462
  const e = this.options || [];
4458
- return new N({
4463
+ return new F({
4459
4464
  options: e,
4460
4465
  filteredOptions: e
4461
4466
  });
@@ -4542,7 +4547,7 @@ const ga = i(({ index: e, click: t, state: s }, n) => we({
4542
4547
  * @returns {object} - The rendered component.
4543
4548
  */
4544
4549
  render() {
4545
- return o({ class: "relative w-full max-w-md" }, [
4550
+ return l({ class: "relative w-full max-w-md" }, [
4546
4551
  ba({
4547
4552
  // @ts-ignore
4548
4553
  state: this.state,
@@ -4568,14 +4573,14 @@ const ga = i(({ index: e, click: t, state: s }, n) => we({
4568
4573
  }
4569
4574
  ), Yo = i((e) => {
4570
4575
  const t = e.icon ?? g.magnifyingGlass.default;
4571
- return o({
4576
+ return l({
4572
4577
  // @ts-ignore
4573
4578
  class: `relative flex items-center w-full rounded-xl bg-muted/30 focus-within:ring-2 focus-within:ring-ring transition-all ${e.containerClass || ""}`
4574
4579
  }, [
4575
- o({ class: "absolute left-4 flex items-center pointer-events-none text-muted-foreground" }, [
4576
- x({ size: "sm" }, t)
4580
+ l({ class: "absolute left-4 flex items-center pointer-events-none text-muted-foreground" }, [
4581
+ p({ size: "sm" }, t)
4577
4582
  ]),
4578
- p({
4583
+ y({
4579
4584
  type: "text",
4580
4585
  // @ts-ignore
4581
4586
  cache: e.cache ?? "input",
@@ -4617,7 +4622,7 @@ class pa extends S {
4617
4622
  * @returns {object}
4618
4623
  */
4619
4624
  render() {
4620
- return o({ class: `${this.class || ""}` }, this.children);
4625
+ return l({ class: `${this.class || ""}` }, this.children);
4621
4626
  }
4622
4627
  }
4623
4628
  class ya extends pa {
@@ -4634,11 +4639,11 @@ const wa = i((e, t) => (e.class = "basic-page pt-[80px] sm:pt-0 flex flex-auto f
4634
4639
  tag: "section",
4635
4640
  ...e,
4636
4641
  children: t
4637
- })), va = i(({ title: e, description: t }) => ee({ class: "sm:py-8 px-6 md:px-5 flex flex-col" }, [
4638
- kt({ class: "scroll-m-20 text-3xl font-bold tracking-tight" }, e),
4642
+ })), va = i(({ title: e, description: t }) => te({ class: "sm:py-8 px-6 md:px-5 flex flex-col" }, [
4643
+ Ct({ class: "scroll-m-20 text-3xl font-bold tracking-tight" }, e),
4639
4644
  t && k({ class: "text-base text-muted-foreground py-2 max-w-[700px]" }, t)
4640
4645
  ]));
4641
- class Wo extends ya {
4646
+ class Vo extends ya {
4642
4647
  /**
4643
4648
  * This will declare the props for the compiler.
4644
4649
  *
@@ -4658,7 +4663,7 @@ class Wo extends ya {
4658
4663
  title: this.title,
4659
4664
  description: this.description
4660
4665
  }),
4661
- Pt(this.children)
4666
+ Mt(this.children)
4662
4667
  ]);
4663
4668
  }
4664
4669
  }
@@ -4667,7 +4672,7 @@ export {
4667
4672
  ho as A,
4668
4673
  _o as B,
4669
4674
  cn as C,
4670
- rt as D,
4675
+ it as D,
4671
4676
  po as E,
4672
4677
  No as F,
4673
4678
  Ho as G,
@@ -4678,14 +4683,14 @@ export {
4678
4683
  Fa as L,
4679
4684
  no as M,
4680
4685
  Ra as N,
4681
- ne as O,
4686
+ ae as O,
4682
4687
  ja as P,
4683
4688
  Aa as Q,
4684
4689
  Ha as R,
4685
4690
  La as S,
4686
4691
  _a as T,
4687
4692
  Ea as U,
4688
- at as V,
4693
+ ot as V,
4689
4694
  fo as W,
4690
4695
  mo as X,
4691
4696
  go as Y,
@@ -4697,15 +4702,15 @@ export {
4697
4702
  xs as a1,
4698
4703
  ps as a2,
4699
4704
  ws as a3,
4700
- _ as a4,
4701
- Wo as a5,
4705
+ H as a4,
4706
+ Vo as a5,
4702
4707
  En as a6,
4703
4708
  to as a7,
4704
- fe as a8,
4709
+ ge as a8,
4705
4710
  cs as a9,
4706
4711
  ia as aA,
4707
4712
  ro as aB,
4708
- Va as aC,
4713
+ Wa as aC,
4709
4714
  Dn as aD,
4710
4715
  ao as aE,
4711
4716
  io as aF,
@@ -4717,9 +4722,9 @@ export {
4717
4722
  Yo as aL,
4718
4723
  yo as aM,
4719
4724
  la as aN,
4720
- De as aO,
4725
+ Ie as aO,
4721
4726
  Ua as aP,
4722
- Wa as aQ,
4727
+ Va as aQ,
4723
4728
  Co as aR,
4724
4729
  Ga as aS,
4725
4730
  Oo as aT,
@@ -4727,24 +4732,24 @@ export {
4727
4732
  So as aV,
4728
4733
  Ba as aW,
4729
4734
  uo as aX,
4730
- x as aY,
4735
+ p as aY,
4731
4736
  eo as aZ,
4732
4737
  Ao as a_,
4733
4738
  $o as aa,
4734
- ct as ab,
4735
- L as ac,
4739
+ dt as ab,
4740
+ R as ac,
4736
4741
  Ht as ad,
4737
4742
  Na as ae,
4738
4743
  Do as af,
4739
- it as ag,
4744
+ ct as ag,
4740
4745
  wa as ah,
4741
- Be as ai,
4742
- Vs as aj,
4746
+ ze as ai,
4747
+ Ws as aj,
4743
4748
  jo as ak,
4744
4749
  Eo as al,
4745
4750
  ln as am,
4746
4751
  Qa as an,
4747
- dt as ao,
4752
+ ut as ao,
4748
4753
  Zn as ap,
4749
4754
  na as aq,
4750
4755
  sa as ar,
@@ -4755,21 +4760,21 @@ export {
4755
4760
  pa as aw,
4756
4761
  Za as ax,
4757
4762
  qs as ay,
4758
- ae as az,
4763
+ oe as az,
4759
4764
  ca as b,
4760
- tt as b0,
4761
- F as b1,
4765
+ st as b0,
4766
+ L as b1,
4762
4767
  Ja as b2,
4763
4768
  Qs as b3,
4764
4769
  bs as b4,
4765
4770
  Pa as b5,
4766
4771
  Ta as b6,
4767
- O as b7,
4772
+ N as b7,
4768
4773
  vo as b8,
4769
4774
  Ma as c,
4770
4775
  ya as d,
4771
4776
  Io as e,
4772
- b as f,
4777
+ x as f,
4773
4778
  sn as g,
4774
4779
  _t as h,
4775
4780
  Kt as i,
@@ -4787,7 +4792,7 @@ export {
4787
4792
  Bo as u,
4788
4793
  zo as v,
4789
4794
  Ka as w,
4790
- ce as x,
4795
+ de as x,
4791
4796
  an as y,
4792
4797
  xo as z
4793
4798
  };