@base-framework/ui 1.2.51 → 1.2.54

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,9 +1,9 @@
1
- import { I as E, Span as u, Button as v, OnState as M, Div as o, Legend as ft, Fieldset as gt, H4 as Ge, P as k, Label as H, Checkbox as ge, Input as p, Textarea as Ke, UseParent as V, Img as me, H5 as mt, H2 as Z, Form as bt, Header as ee, Footer as be, A as Qe, H3 as xe, Nav as pe, Ul as te, Li as ye, OnStateOpen as we, On as J, Dialog as xt, Th as Je, Thead as pt, Tr as yt, Table as ve, Time as wt, H1 as vt } from "@base-framework/atoms";
2
- import { Atom as i, router as X, Jot as P, Component as S, Html as Xe, Data as O, Events as j, DateTime as se, NavLink as kt, DataTracker as Ze } from "@base-framework/base";
3
- import { Icons as h } from "./icons.es.js";
4
- import { Timer as Ct, TableBody as St, DataTableBody as $t, ScrollableTableBody as Dt, List as It } from "@base-framework/organisms";
5
- import { F as W } from "./format-DE4rFWuD.js";
6
- import { F as Tt } from "./bside-template-C7AQgQ6H.js";
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";
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
7
  const Mt = {
8
8
  xs: "w-4 h-4",
9
9
  sm: "w-6 h-6",
@@ -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
- }, he = i((e, t) => {
15
+ }, fe = i((e, t) => {
16
16
  const s = Mt[e.size || "sm"];
17
- return E({
17
+ return U({
18
18
  ...e,
19
19
  // @ts-ignore
20
20
  class: `stroke-current icon-size ${s} ${e.class || ""}`,
21
21
  html: t[0]?.textContent
22
22
  });
23
- }), Ie = {
23
+ }), Te = {
24
24
  xs: "w-4 h-4",
25
25
  // 16px - matches Icon
26
26
  sm: "w-6 h-6",
@@ -35,7 +35,7 @@ const Mt = {
35
35
  // 56px - matches Icon
36
36
  "3xl": "w-16 h-16"
37
37
  // 64px - matches Icon
38
- }, Te = {
38
+ }, Pe = {
39
39
  xs: "16px",
40
40
  sm: "24px",
41
41
  md: "32px",
@@ -48,9 +48,9 @@ const Mt = {
48
48
  filled: "material-symbols-filled",
49
49
  rounded: "material-symbols-rounded",
50
50
  sharp: "material-symbols-sharp"
51
- }, Pe = i((e) => {
52
- const t = e.size || "sm", s = e.variant || "outlined", n = Ie[t] || Ie.sm, a = Te[t] || Te.sm, l = Me[s] || Me.outlined;
53
- return u({
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({
54
54
  ...e,
55
55
  // @ts-ignore
56
56
  class: `inline-flex items-center justify-center ${l} ${n} ${e.class || ""}`,
@@ -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") ? he(e, t) : typeof t == "object" && t.name ? Pe({
65
+ }), x = (e = {}, t) => t ? typeof t == "string" && t.includes("<svg") ? fe(e, t) : typeof t == "object" && t.name ? Be({
66
66
  ...e,
67
67
  name: t.name,
68
68
  variant: t.variant || e.variant || "outlined"
69
- }) : typeof t == "string" ? Pe({
69
+ }) : typeof t == "string" ? Be({
70
70
  ...e,
71
71
  name: t
72
- }) : he(e, t) : null, Da = (e) => e ? !!(typeof e == "object" && e.name || typeof e == "string" && !e.includes("<svg")) : !1, Ia = (e) => typeof e == "string" && e.includes("<svg"), Be = {
72
+ }) : 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 = {
73
73
  gray: {
74
74
  backgroundColor: "bg-gray-50",
75
75
  textColor: "text-gray-600",
@@ -150,22 +150,22 @@ const Mt = {
150
150
  textColor: "text-foreground",
151
151
  ringColor: "ring-white/10"
152
152
  }
153
- }, Pt = (e) => Be[e] || Be.gray, Bt = (e, t = {}) => {
154
- const s = Pt(e), n = t.backgroundColor ?? s.backgroundColor, a = t.textColor ?? s.textColor, l = t.ringColor ?? s.ringColor;
153
+ }, 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
155
  return `inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors ${n} ${a} ${l}`;
156
- }, Ta = i((e, t) => {
157
- const { type: s, icon: n, size: a = "xs", backgroundColor: l, textColor: r, ringColor: c, ...f } = e, m = Bt(s, { backgroundColor: l, textColor: r, ringColor: c });
158
- return u({ ...f, class: m }, [
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
159
  n ? x({ size: a, class: "mr-1" }, n) : null,
160
160
  ...t || []
161
161
  ]);
162
162
  });
163
- let B = globalThis.history?.state?._pos ?? 0;
164
- const ze = B, fe = /* @__PURE__ */ new Map(), le = (e) => (e || "").replace(/^\/+/, "").replace(/\/+$/, ""), zt = (e, t) => {
163
+ let z = globalThis.history?.state?._pos ?? 0;
164
+ const ge = /* @__PURE__ */ new Map(), le = (e) => (e || "").replace(/^\/+/, "").replace(/\/+$/, ""), Ot = (e, t) => {
165
165
  if (!t) return !1;
166
166
  const s = le(e), n = le(t);
167
167
  return s === n || s.startsWith(n + "/");
168
- }, Ot = (e, t) => {
168
+ }, Nt = (e, t) => {
169
169
  const s = le(e);
170
170
  if (!t) return s;
171
171
  const n = le(t);
@@ -174,50 +174,73 @@ const ze = B, fe = /* @__PURE__ */ new Map(), le = (e) => (e || "").replace(/^\/
174
174
  if (!a || a === "/") return s;
175
175
  const l = a.startsWith("/") ? a.substring(1) : a, r = l.indexOf("/");
176
176
  return r < 0 ? s : n + "/" + l.substring(0, r);
177
+ }, Ft = () => {
178
+ try {
179
+ return /** @type {any} */ globalThis.performance?.getEntriesByType?.("navigation")?.[0]?.type === "reload";
180
+ } catch {
181
+ return !1;
182
+ }
177
183
  };
178
184
  if (typeof globalThis.history?.pushState == "function") {
179
185
  const e = globalThis.history.pushState, t = globalThis.history.replaceState;
180
186
  globalThis.history.pushState = function(s, n, a) {
181
- B++;
182
- const l = s !== null && typeof s == "object" ? { ...s, _pos: B } : { _pos: B };
187
+ z++;
188
+ const l = s !== null && typeof s == "object" ? { ...s, _pos: z } : { _pos: z };
183
189
  return e.call(this, l, n, a);
184
190
  }, globalThis.history.replaceState = function(s, n, a) {
185
- const l = globalThis.history.state?._pos ?? B, r = s !== null && typeof s == "object" ? { ...s, _pos: l } : { _pos: l };
191
+ const l = globalThis.history.state?._pos ?? z, r = s !== null && typeof s == "object" ? { ...s, _pos: l } : { _pos: l };
186
192
  return t.call(this, r, n, a);
187
193
  }, globalThis.addEventListener("popstate", (s) => {
188
194
  const n = (
189
195
  /** @type {any} */
190
196
  s.state?._pos
191
197
  );
192
- typeof n == "number" && (B = n);
198
+ typeof n == "number" && (z = n);
193
199
  });
194
200
  }
195
- const Nt = (e) => {
196
- const t = e || "", s = X.path || "", n = fe.get(t);
197
- if (n && zt(s, n.basePath))
198
- return n;
199
- const a = {
200
- pos: B,
201
- sourcePath: X.lastPath || null,
202
- basePath: Ot(s, e)
203
- };
204
- return fe.set(t, a), a;
205
- }, Ft = (e) => {
206
- fe.delete(e || "");
201
+ const Oe = (e) => {
202
+ const t = globalThis.history?.state || {};
203
+ if (!(t._entryKey === e.key && t._entryPos === e.pos && t._entrySourcePath === e.sourcePath && t._entryBasePath === e.basePath))
204
+ try {
205
+ globalThis.history.replaceState(
206
+ {
207
+ ...t,
208
+ _entryKey: e.key,
209
+ _entryPos: e.pos,
210
+ _entrySourcePath: e.sourcePath,
211
+ _entryBasePath: e.basePath
212
+ },
213
+ "",
214
+ globalThis.location?.href
215
+ );
216
+ } catch {
217
+ }
207
218
  }, Lt = (e) => {
208
- const t = Nt(e.backUrl);
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
227
+ };
228
+ return Oe(P), ge.set(l, P), P;
229
+ }, Rt = (e) => {
230
+ ge.delete(e || "");
231
+ }, At = (e) => {
232
+ const t = Ft(), s = Lt(e.backUrl);
209
233
  return () => {
210
- Ft(e.backUrl);
211
- const n = B - t.pos + 1, a = t.pos - 1;
212
- if (t.pos > ze && a > ze) {
234
+ Rt(e.backUrl);
235
+ const n = z - s.pos + 1;
236
+ if (!t && s.pos > 0) {
213
237
  globalThis.history.go(-n);
214
238
  return;
215
239
  }
216
- const l = t.sourcePath || e.backUrl;
217
- l && X.navigate(l);
240
+ e.backUrl && X.navigate(e.backUrl);
218
241
  };
219
242
  };
220
- class et extends S {
243
+ class tt extends S {
221
244
  /**
222
245
  * This will set the component context.
223
246
  *
@@ -231,11 +254,11 @@ class et extends S {
231
254
  return s ? { data: s } : null;
232
255
  }
233
256
  }
234
- const N = (e) => (
257
+ const F = (e) => (
235
258
  /** @type {VeilComponentConstructor} */
236
- P(e, et)
259
+ B(e, tt)
237
260
  );
238
- class Ma extends et {
261
+ class Ba extends tt {
239
262
  /**
240
263
  * Declare public props and their defaults.
241
264
  */
@@ -269,9 +292,9 @@ class Ma extends et {
269
292
  const t = this.size, s = this.icon, n = this.activeIcon || this.icon, a = (() => {
270
293
  if (this.dataKey) {
271
294
  let r = `[[${this.dataKey}]]`;
272
- return this.formatType === "number" ? r = W.number(r, "0") : this.formatType === "money" ? r = W.roundMoney(r) : this.formatType === "date" ? r = W.date(r) : this.formatType === "percent" && (r = W.percentage(r)), u({ class: "toggle-btn-value text-sm tabular-nums capitalize" }, r);
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);
273
296
  }
274
- return this.value !== null && this.value !== void 0 ? u({ class: "toggle-btn-value text-sm tabular-nums" }, String(this.value)) : null;
297
+ return this.value !== null && this.value !== void 0 ? f({ class: "toggle-btn-value text-sm tabular-nums" }, String(this.value)) : null;
275
298
  })(), l = this.fill;
276
299
  return v({
277
300
  click: () => this.handleToggle(),
@@ -294,7 +317,7 @@ const re = {
294
317
  xl: "w-14 h-14",
295
318
  "2xl": "w-16 h-16"
296
319
  };
297
- class Pa extends S {
320
+ class za extends S {
298
321
  /**
299
322
  * Declare public props.
300
323
  */
@@ -325,23 +348,23 @@ class Pa extends S {
325
348
  * @returns {object}
326
349
  */
327
350
  render() {
328
- 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, f = this.circle ?? !1, m = this.fill;
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;
329
352
  return v({
330
353
  click: () => this.handleToggle(),
331
354
  // @ts-ignore
332
- class: `circle-toggle-btn inline-flex items-center justify-center rounded-full border-0 cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 ${n} ${l}${f ? " rounded-full w-[40px] h-[40px] max-w-[40px]" : ""}`
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]" : ""}`
333
356
  }, [
334
- M("active", (w) => [
357
+ M("active", (y) => [
335
358
  x({
336
359
  size: a,
337
- variant: w && m ? "filled" : "outlined",
338
- class: `transition-colors ${w ? c : r}`
339
- }, w ? s : t)
360
+ variant: y && h ? "filled" : "outlined",
361
+ class: `transition-colors ${y ? c : r}`
362
+ }, y ? s : t)
340
363
  ])
341
364
  ]);
342
365
  }
343
366
  }
344
- const Ba = i((e, t) => {
367
+ const Oa = i((e, t) => {
345
368
  const s = e.size || "md", n = re[s] || re.md, a = ["xs", "sm"].includes(s) ? "xs" : "sm";
346
369
  return v({
347
370
  ...e,
@@ -352,12 +375,12 @@ const Ba = i((e, t) => {
352
375
  e.icon ? x({ size: a }, e.icon) : null,
353
376
  ...t || []
354
377
  ]);
355
- }), A = (e) => i((t, s) => v({
378
+ }), E = (e) => i((t, s) => v({
356
379
  ...e,
357
380
  ...t,
358
381
  // @ts-ignore
359
382
  class: `bttn ${e.class} ${t.class || ""}`
360
- }, s)), tt = i(
383
+ }, s)), st = i(
361
384
  (e, t) => v({
362
385
  ...e,
363
386
  // @ts-ignore
@@ -369,15 +392,15 @@ const Ba = i((e, t) => {
369
392
  // @ts-ignore
370
393
  e.icon && e.position === "right" ? x({ size: e.size || "sm", class: e.animation ?? null }, e.icon) : null
371
394
  ])
372
- ), Oe = (e) => i((t, s) => tt({
395
+ ), Ne = (e) => i((t, s) => st({
373
396
  ...e,
374
397
  ...t,
375
398
  // @ts-ignore
376
399
  class: `bttn ${e.class} ${t.class || ""}`
377
- }, s)), At = (e) => i((t, s) => (t.icon = t.icon || h.arrows.left, t.click = t.click || Lt(t), tt({
400
+ }, s)), jt = (e) => i((t, s) => (t.icon = t.icon || g.arrows.left, t.click = t.click || At(t), st({
378
401
  ...e,
379
402
  ...t
380
- }, s))), Rt = i((e, t) => {
403
+ }, s))), Et = i((e, t) => {
381
404
  const s = e.size || "md", n = {
382
405
  xs: "w-6 h-6",
383
406
  sm: "w-8 h-8",
@@ -394,41 +417,41 @@ const Ba = i((e, t) => {
394
417
  e.icon ? x({ size: s === "xs" ? "xs" : "sm" }, e.icon) : null,
395
418
  ...t || []
396
419
  ]);
397
- }), Ne = {
398
- primary: A({ class: "primary" }),
399
- secondary: A({ class: "secondary" }),
400
- destructive: A({ class: "destructive" }),
401
- warning: A({ class: "warning" }),
402
- outline: A({ class: "outline" }),
403
- ghost: A({ class: "ghost" }),
404
- link: A({ class: "link" }),
405
- icon: Oe({ class: "icon" }),
406
- withIcon: Oe({ class: "with-icon" }),
407
- back: At({ class: "with-icon back-button" }),
408
- circleIcon: Rt
409
- }, b = i((e, t) => (Ne[e.variant] || Ne.primary)(e, t)), za = i((e, t) => b({ ...e, variant: "withIcon", icon: h.loading, animation: "animate-spin" }, t)), jt = i((e, t) => {
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" }),
430
+ back: jt({ class: "with-icon back-button" }),
431
+ 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) => {
410
433
  const s = e.margin ?? "my-5 mx-5", n = e.padding ?? "p-4", a = e.border ?? "border-border";
411
434
  return e.hover && (e.class += " hover:shadow-lg hover:bg-muted/50"), o({
412
435
  ...e,
413
436
  // @ts-ignore
414
437
  class: `rounded-lg ${a} bg-card text-card-foreground shadow-md min-w-[120px] min-h-[80px] ${s} ${n} ${e.class || ""}`
415
438
  }, t);
416
- }), Et = i((e, t) => ft({
439
+ }), Ht = i((e, t) => gt({
417
440
  ...e,
418
441
  // @ts-ignore
419
442
  class: ` font-medium -mt-4 -mx-1 px-2 py-2 ${e.class || ""}`
420
- }, t)), Oa = i((e, t) => {
443
+ }, t)), Fa = i((e, t) => {
421
444
  const s = e.border === "full" ? "border rounded-md" : "border-t";
422
- return gt({
445
+ return mt({
423
446
  ...e,
424
447
  // @ts-ignore
425
448
  class: `p-6 ${s} ${e.class || ""}`
426
449
  }, [
427
450
  // @ts-ignore
428
- e.legend && Et(e.legend),
451
+ e.legend && Ht(e.legend),
429
452
  o({ class: "flex flex-auto flex-col gap-y-6" }, t)
430
453
  ]);
431
- }), Ht = i((e, t) => {
454
+ }), Ut = i((e, t) => {
432
455
  const s = e.border === !0 ? "border-t" : "";
433
456
  return o({
434
457
  ...e,
@@ -443,14 +466,14 @@ const Ba = i((e, t) => {
443
466
  class: `flex flex-auto flex-col gap-y-1 ${e.labelProps?.class || ""}`
444
467
  }, [
445
468
  // @ts-ignore
446
- Ge({ class: "text-base" }, e.label),
469
+ Ke({ class: "text-base" }, e.label),
447
470
  // @ts-ignore
448
471
  e.description && k({ class: "text-sm text-muted-foreground" }, e.description)
449
472
  ]),
450
473
  // Controls container: grows to fill remaining space, spacing between items
451
474
  o({ class: "flex flex-col gap-y-4" }, t)
452
475
  ]);
453
- }), _t = "flex h-10 w-full px-3 py-2 text-sm", D = "rounded-md border border-border bg-input", $ = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background", C = "disabled:cursor-not-allowed disabled:opacity-50 [&:user-invalid]:border-destructive", _ = "placeholder:text-muted-foreground", ke = `${_t} ${D} ${$} ${_} ${C}`, Ut = ({ id: e, checked: t, bind: s, required: n }) => ge({
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({
454
477
  id: e,
455
478
  cache: "checkbox",
456
479
  class: "absolute opacity-0 w-full h-full cursor-pointer pointer-events-none",
@@ -460,15 +483,15 @@ const Ba = i((e, t) => {
460
483
  required: n,
461
484
  checked: t,
462
485
  bind: s
463
- }), Yt = () => u({ class: "absolute text-xs pointer-events-none" }, [
486
+ }), Vt = () => f({ class: "absolute text-xs pointer-events-none" }, [
464
487
  M(
465
488
  "checked",
466
- (e) => e ? E({
489
+ (e) => e ? U({
467
490
  class: "w-2 h-2 pointer-events-none",
468
- html: h.check
491
+ html: g.check
469
492
  }) : null
470
493
  )
471
- ]), Wt = ({ id: e, bind: t, checked: s, required: n, clickHandler: a }) => o({
494
+ ]), qt = ({ id: e, bind: t, checked: s, required: n, clickHandler: a }) => o({
472
495
  class: `relative flex items-center justify-center w-5 h-5 transition-colors duration-200 hover:border-accent-foreground
473
496
  rounded-md border
474
497
  ${$}
@@ -488,13 +511,13 @@ const Ba = i((e, t) => {
488
511
  tabIndex: 0,
489
512
  click: a
490
513
  }, [
491
- Ut({ bind: t, checked: s, id: e, required: n }),
492
- Yt()
493
- ]), Vt = ({ id: e, label: t, clickHandler: s }) => H({
514
+ Wt({ bind: t, checked: s, id: e, required: n }),
515
+ Vt()
516
+ ]), Gt = ({ id: e, label: t, clickHandler: s }) => Y({
494
517
  class: "text-base cursor-pointer",
495
518
  htmlFor: e,
496
519
  click: s
497
- }, t), qt = P(
520
+ }, t), Kt = B(
498
521
  {
499
522
  /**
500
523
  * This will initialize the state of the checkbox.
@@ -533,7 +556,7 @@ const Ba = i((e, t) => {
533
556
  render() {
534
557
  const e = this.getId(), t = (s) => this.clickHandler(s);
535
558
  return o({ class: `flex items-center gap-x-2 cursor-pointer ${this.class || ""}` }, [
536
- Wt({
559
+ qt({
537
560
  id: e,
538
561
  // @ts-ignore
539
562
  bind: this.bind,
@@ -545,38 +568,38 @@ const Ba = i((e, t) => {
545
568
  clickHandler: t
546
569
  }),
547
570
  // @ts-ignore
548
- this.label && Vt({ id: e, label: this.label, clickHandler: t })
571
+ this.label && Gt({ id: e, label: this.label, clickHandler: t })
549
572
  ]);
550
573
  }
551
574
  }
552
- ), Gt = (e) => {
575
+ ), Qt = (e) => {
553
576
  if (!e || e.length === 0) return "";
554
577
  const s = e.replace(/\D/g, "").match(/^(\d{0,3})(\d{0,3})(\d{0,4})$/);
555
578
  return s ? s[2] ? `(${s[1]}) ${s[2]}${s[3] ? "-" + s[3] : ""}` : s[1] || "" : e;
556
- }, Kt = (e) => {
557
- const t = e.target, s = Gt(t.value);
579
+ }, Jt = (e) => {
580
+ const t = e.target, s = Qt(t.value);
558
581
  s && (t.value = s);
559
- }, Qt = [
582
+ }, Xt = [
560
583
  "peer w-full h-14 px-3 pt-5 pb-1",
561
584
  "text-base text-foreground",
562
585
  D,
563
586
  $,
564
587
  C,
565
588
  "placeholder-transparent"
566
- ].join(" "), Jt = [
589
+ ].join(" "), Zt = [
567
590
  "peer w-full min-h-[120px] px-3 pt-6 pb-2",
568
591
  "text-base text-foreground",
569
592
  D,
570
593
  $,
571
594
  C,
572
595
  "placeholder-transparent resize-y"
573
- ].join(" "), Xt = [
596
+ ].join(" "), es = [
574
597
  "peer w-full h-14 px-3 pt-5 pb-1 pr-10",
575
598
  "text-base text-foreground appearance-none",
576
599
  D,
577
600
  $,
578
601
  C
579
- ].join(" "), Zt = [
602
+ ].join(" "), ts = [
580
603
  "absolute left-3",
581
604
  "text-foreground-secondary",
582
605
  "transition-all duration-200",
@@ -587,7 +610,7 @@ const Ba = i((e, t) => {
587
610
  "peer-[:placeholder-shown:not(:focus)]:top-1/2",
588
611
  "peer-[:placeholder-shown:not(:focus)]:-translate-y-1/2",
589
612
  "peer-[:placeholder-shown:not(:focus)]:text-base"
590
- ].join(" "), es = [
613
+ ].join(" "), ss = [
591
614
  "absolute left-3",
592
615
  "text-foreground-secondary",
593
616
  "transition-all duration-200",
@@ -597,102 +620,102 @@ const Ba = i((e, t) => {
597
620
  // Placeholder state (empty + not focused)
598
621
  "peer-[:placeholder-shown:not(:focus)]:top-3.5",
599
622
  "peer-[:placeholder-shown:not(:focus)]:text-base"
600
- ].join(" "), ts = [
623
+ ].join(" "), ns = [
601
624
  "absolute left-3 top-2",
602
625
  "text-xs text-foreground-secondary",
603
626
  "pointer-events-none select-none"
604
627
  ].join(" ");
605
- let ss = 0;
606
- const Ce = (e) => e.id || e.name || `floating-${++ss}`, Se = (e, t, s, n) => e ? H(
628
+ let as = 0;
629
+ const Se = (e) => e.id || e.name || `floating-${++as}`, $e = (e, t, s, n) => e ? Y(
607
630
  { htmlFor: s, class: n },
608
- t ? [u(e), u({ class: "text-destructive ml-0.5" }, "*")] : e
609
- ) : null, ns = () => E({
631
+ t ? [f(e), f({ class: "text-destructive ml-0.5" }, "*")] : e
632
+ ) : null, os = () => U({
610
633
  class: "absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none w-4 h-4 text-foreground-secondary",
611
- html: h.chevron.single.down
634
+ html: g.chevron.single.down
612
635
  }), ne = i((e) => {
613
- const t = Ce(e);
636
+ const t = Se(e);
614
637
  return o({ class: "relative" }, [
615
638
  p({
616
639
  ...e,
617
640
  id: t,
618
641
  placeholder: " ",
619
- class: `${Qt} ${e.class || ""}`.trim()
642
+ class: `${Xt} ${e.class || ""}`.trim()
620
643
  }),
621
- Se(e.label, e.required, t, Zt)
644
+ $e(e.label, e.required, t, ts)
622
645
  ]);
623
- }), Na = i(
646
+ }), La = i(
624
647
  (e) => ne({
625
648
  ...e,
626
649
  type: "tel",
627
650
  name: e.name || "Phone",
628
651
  label: e.label || "Phone",
629
652
  pattern: e.pattern || "\\(\\d{3}\\) \\d{3}-\\d{4}",
630
- keyup: Kt
653
+ keyup: Jt
631
654
  })
632
- ), Fa = i(
655
+ ), Ra = i(
633
656
  (e) => ne({
634
657
  ...e,
635
658
  type: "email",
636
659
  name: e.name || "Email",
637
660
  label: e.label || "Email"
638
661
  })
639
- ), La = i(
662
+ ), Aa = i(
640
663
  (e) => ne({
641
664
  ...e,
642
665
  type: "password",
643
666
  name: e.name || "Password",
644
667
  label: e.label || "Password"
645
668
  })
646
- ), Aa = i(
669
+ ), ja = i(
647
670
  (e) => ne({
648
671
  ...e,
649
672
  type: "number"
650
673
  })
651
- ), Ra = i(
674
+ ), Ea = i(
652
675
  (e) => ne({
653
676
  ...e,
654
677
  type: "url",
655
678
  name: e.name || "Url",
656
679
  label: e.label || "URL"
657
680
  })
658
- ), ja = i((e) => {
659
- const t = Ce(e);
681
+ ), _a = i((e) => {
682
+ const t = Se(e);
660
683
  return o({ class: "relative" }, [
661
- Ke({
684
+ Qe({
662
685
  ...e,
663
686
  id: t,
664
687
  placeholder: " ",
665
- class: `${Jt} ${e.class || ""}`.trim()
688
+ class: `${Zt} ${e.class || ""}`.trim()
666
689
  }),
667
- Se(e.label, e.required, t, es)
690
+ $e(e.label, e.required, t, ss)
668
691
  ]);
669
- }), Ea = i((e) => {
670
- const t = Ce(e), { options: s, onCreated: n, ...a } = e;
692
+ }), Ha = i((e) => {
693
+ const t = Se(e), { options: s, onCreated: n, ...a } = e;
671
694
  return o({ class: "relative" }, [
672
695
  {
673
696
  tag: "select",
674
697
  ...a,
675
698
  id: t,
676
- class: `[&>option]:text-foreground [&>option]:bg-background ${Xt} ${a.class || ""}`.trim(),
699
+ class: `[&>option]:text-foreground [&>option]:bg-background ${es} ${a.class || ""}`.trim(),
677
700
  onCreated(l) {
678
- s && Xe.setupSelectOptions(l, s), typeof n == "function" && n(l);
701
+ s && Ze.setupSelectOptions(l, s), typeof n == "function" && n(l);
679
702
  }
680
703
  },
681
- ns(),
682
- Se(e.label, e.required, t, ts)
704
+ os(),
705
+ $e(e.label, e.required, t, ns)
683
706
  ]);
684
- }), as = (e) => {
707
+ }), ls = (e) => {
685
708
  if (!e || e.length === 0) return "";
686
709
  const s = e.replace(/\D/g, "").match(/^(\d{0,3})(\d{0,3})(\d{0,4})$/);
687
710
  return s ? s[2] ? `(${s[1]}) ${s[2]}${s[3] ? "-" + s[3] : ""}` : s[1] || "" : e;
688
- }, os = (e) => {
689
- const t = e.target, s = as(t.value);
711
+ }, rs = (e) => {
712
+ const t = e.target, s = ls(t.value);
690
713
  s && (t.value = s);
691
- }, F = i((e) => p({
714
+ }, L = i((e) => p({
692
715
  ...e,
693
716
  // @ts-ignore
694
- class: `${ke} ${e.class || ""}`.trim()
695
- })), Ha = i((e) => F({
717
+ class: `${Ce} ${e.class || ""}`.trim()
718
+ })), Ua = i((e) => L({
696
719
  ...e,
697
720
  type: "tel",
698
721
  // @ts-ignore
@@ -702,8 +725,8 @@ const Ce = (e) => e.id || e.name || `floating-${++ss}`, Se = (e, t, s, n) => e ?
702
725
  placeholder: "(555) 555-5555",
703
726
  // @ts-ignore
704
727
  pattern: e.pattern || "\\(\\d{3}\\) \\d{3}-\\d{4}",
705
- keyup: os
706
- })), _a = i((e) => F({
728
+ keyup: rs
729
+ })), Ya = i((e) => L({
707
730
  ...e,
708
731
  type: "email",
709
732
  // @ts-ignore
@@ -711,77 +734,77 @@ const Ce = (e) => e.id || e.name || `floating-${++ss}`, Se = (e, t, s, n) => e ?
711
734
  // @ts-ignore
712
735
  label: e.label || "Email",
713
736
  placeholder: "Email address"
714
- })), Ua = i((e) => Ke({
737
+ })), Wa = i((e) => Qe({
715
738
  ...e,
716
739
  as: "textarea",
717
740
  // @ts-ignore
718
- class: `flex w-full h-24 px-3 py-2 text-sm ${D} ${$} ${_} ${C} ${e.class || ""}`.trim()
719
- })), Ya = (e = {}) => o({ class: "flex items-center gap-x-2" }, [
741
+ class: `flex w-full h-24 px-3 py-2 text-sm ${D} ${$} ${W} ${C} ${e.class || ""}`.trim()
742
+ })), Va = (e = {}) => o({ class: "flex items-center gap-x-2" }, [
720
743
  p({
721
744
  ...e,
722
745
  type: "radio",
723
746
  class: "cursor-pointer appearance-none h-4 w-4 border rounded-full checked:border-primary checked:bg-primary focus:ring focus:ring-primary".trim()
724
747
  }),
725
- e.label && H({ forHTML: e.value, class: "cursor-pointer" }, e.label)
726
- ]), Wa = i((e) => p({
748
+ e.label && Y({ forHTML: e.value, class: "cursor-pointer" }, e.label)
749
+ ]), qa = i((e) => p({
727
750
  ...e,
728
751
  type: "date",
729
752
  // @ts-ignore
730
- class: `${D} ${$} ${_} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
731
- })), Va = i((e) => p({
753
+ class: `${D} ${$} ${W} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
754
+ })), Ga = i((e) => p({
732
755
  ...e,
733
756
  type: "time",
734
757
  // @ts-ignore
735
- class: `${D} ${$} ${_} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
736
- })), qa = i((e) => p({
758
+ class: `${D} ${$} ${W} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
759
+ })), Ka = i((e) => p({
737
760
  ...e,
738
761
  type: "datetime-local",
739
762
  // @ts-ignore
740
- class: `${D} ${$} ${_} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
741
- })), Ga = i((e) => p({
763
+ class: `${D} ${$} ${W} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
764
+ })), Qa = i((e) => p({
742
765
  ...e,
743
766
  type: "month",
744
767
  // @ts-ignore
745
- class: `${D} ${$} ${_} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
746
- })), Ka = i((e) => p({
768
+ class: `${D} ${$} ${W} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
769
+ })), Ja = i((e) => p({
747
770
  ...e,
748
771
  type: "week",
749
772
  // @ts-ignore
750
- class: `${D} ${$} ${_} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
751
- })), Qa = i((e) => F({
773
+ class: `${D} ${$} ${W} ${C} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
774
+ })), Xa = i((e) => L({
752
775
  ...e,
753
776
  type: "number"
754
- })), Ja = i((e) => F({
777
+ })), Za = i((e) => L({
755
778
  ...e,
756
779
  type: "password"
757
780
  }));
758
- i((e) => F({
781
+ i((e) => L({
759
782
  ...e,
760
783
  type: "search"
761
784
  }));
762
- const Xa = i((e) => F({
785
+ const eo = i((e) => L({
763
786
  ...e,
764
787
  type: "url"
765
- })), Za = i((e) => F({
788
+ })), to = i((e) => L({
766
789
  ...e,
767
790
  type: "hidden"
768
- })), eo = i((e) => p({
791
+ })), so = i((e) => p({
769
792
  ...e,
770
793
  type: "color",
771
794
  // @ts-ignore
772
795
  class: `${D} text-foreground p-0 ${C} ${e.class || ""}`.trim()
773
796
  }));
774
- i((e) => ge({
797
+ i((e) => me({
775
798
  ...e,
776
799
  // @ts-ignore
777
800
  class: `flex h-4 w-4 text-foreground ${D} ${$} ${C} ${e.class || ""}`.trim()
778
801
  }));
779
- const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", to = i((e) => p({
802
+ const is = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", no = i((e) => p({
780
803
  ...e,
781
804
  type: "file",
782
805
  // @ts-ignore
783
- class: `${ke} ${ls} ${e.class || ""}`.trim()
784
- })), so = N(
806
+ class: `${Ce} ${is} ${e.class || ""}`.trim()
807
+ })), ao = F(
785
808
  {
786
809
  /**
787
810
  * This will create the initial state of the RangeSlider.
@@ -814,7 +837,7 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
814
837
  return o({ class: "relative w-full h-4 flex items-center" }, [
815
838
  // Track
816
839
  o({ class: "absolute h-2 w-full rounded-full bg-muted" }),
817
- V(({ state: e }) => [
840
+ q(({ state: e }) => [
818
841
  // Filled Track
819
842
  o({
820
843
  class: "absolute h-2 bg-primary rounded-full",
@@ -853,17 +876,17 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
853
876
  ]);
854
877
  }
855
878
  }
856
- ), no = i((e) => {
879
+ ), oo = i((e) => {
857
880
  const { options: t, onCreated: s, ...n } = e;
858
881
  return {
859
882
  tag: "select",
860
883
  onCreated(a) {
861
- t && Xe.setupSelectOptions(a, t), s && s(a);
884
+ t && Ze.setupSelectOptions(a, t), s && s(a);
862
885
  },
863
886
  ...n,
864
- class: `[&>option]:text-foreground [&>option]:bg-background ${ke} ${n.class || ""}`.trim()
887
+ class: `[&>option]:text-foreground [&>option]:bg-background ${Ce} ${n.class || ""}`.trim()
865
888
  };
866
- }), rs = 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 : me({
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({
867
890
  class: `absolute w-full h-full object-cover fadeIn ${s}`,
868
891
  src: e,
869
892
  alt: t,
@@ -875,7 +898,7 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
875
898
  * If there's an error loading the image, hide it.
876
899
  */
877
900
  error: (c) => c.target.style.visibility = "hidden"
878
- })), is = (e) => !e || isNaN(e) ? null : e, Fe = (e, t) => {
901
+ })), ds = (e) => !e || isNaN(e) ? null : e, Le = (e, t) => {
879
902
  const s = e, n = 16, a = 2 * Math.PI * n, l = s / 100 * a, r = `
880
903
  <svg class="w-40 h-40 mx-auto" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg">
881
904
  <!-- Background Circle -->
@@ -918,20 +941,20 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
918
941
  class: "circle-graph text-inherit",
919
942
  html: r
920
943
  });
921
- }, ao = i((e) => {
922
- const t = e.progress || 0, s = e.class || "", n = Fe(t, s);
944
+ }, lo = i((e) => {
945
+ const t = e.progress || 0, s = e.class || "", n = Le(t, s);
923
946
  return o({
924
947
  class: "circle-graph-wrap",
925
948
  onSet: [
926
949
  // @ts-ignore
927
950
  e.prop,
928
- (a) => (a = is(a), a ? Fe(a, s) : n)
951
+ (a) => (a = ds(a), a ? Le(a, s) : n)
929
952
  ]
930
953
  }, [n]);
931
- }), cs = () => V(({ state: e }) => o({
954
+ }), us = () => q(({ state: e }) => o({
932
955
  class: "absolute h-full rounded-full bg-primary transition-all duration-300",
933
956
  style: ["width: [[progress]]%;", e]
934
- })), oo = N(
957
+ })), ro = F(
935
958
  {
936
959
  /**
937
960
  * This will render the progress bar component.
@@ -940,7 +963,7 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
940
963
  */
941
964
  render() {
942
965
  return o({ class: "relative w-full h-4 rounded-full bg-muted" }, [
943
- cs()
966
+ us()
944
967
  ]);
945
968
  },
946
969
  /**
@@ -983,7 +1006,7 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
983
1006
  e < 0 && (e = 0), e > 100 && (e = 100), this.state.progress = e;
984
1007
  }
985
1008
  }
986
- ), lo = i((e = {}) => {
1009
+ ), io = i((e = {}) => {
987
1010
  const {
988
1011
  class: t = "",
989
1012
  background: s = !0,
@@ -992,19 +1015,19 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
992
1015
  blurClass: l = "backdrop-blur",
993
1016
  zIndexClass: r = "z-9999",
994
1017
  style: c = ""
995
- } = e, f = [
1018
+ } = e, u = [
996
1019
  "sticky bottom-0 left-0 right-0 w-full",
997
1020
  r,
998
1021
  s ? a : "",
999
1022
  n ? l : "",
1000
1023
  t
1001
- ].filter(Boolean).join(" "), m = `height: env(safe-area-inset-bottom, 0px);${c ? ` ${c}` : ""}`;
1024
+ ].filter(Boolean).join(" "), h = `height: env(safe-area-inset-bottom, 0px);${c ? ` ${c}` : ""}`;
1002
1025
  return o({
1003
- class: f,
1004
- style: m,
1026
+ class: u,
1027
+ style: h,
1005
1028
  "aria-hidden": "true"
1006
1029
  });
1007
- }), ro = i((e = {}) => {
1030
+ }), co = i((e = {}) => {
1008
1031
  const {
1009
1032
  class: t = "",
1010
1033
  background: s = !0,
@@ -1013,19 +1036,19 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
1013
1036
  blurClass: l = "backdrop-blur",
1014
1037
  zIndexClass: r = "z-9999",
1015
1038
  style: c = ""
1016
- } = e, f = [
1039
+ } = e, u = [
1017
1040
  "fixed top-0 left-0 right-0 w-full",
1018
1041
  r,
1019
1042
  s ? a : "",
1020
1043
  n ? l : "",
1021
1044
  t
1022
- ].filter(Boolean).join(" "), m = `height: env(safe-area-inset-top, 0px);${c ? ` ${c}` : ""}`;
1045
+ ].filter(Boolean).join(" "), h = `height: env(safe-area-inset-top, 0px);${c ? ` ${c}` : ""}`;
1023
1046
  return o({
1024
- class: f,
1025
- style: m,
1047
+ class: u,
1048
+ style: h,
1026
1049
  "aria-hidden": "true"
1027
1050
  });
1028
- }), Le = {
1051
+ }), Re = {
1029
1052
  top: "bottom-full left-1/2 transform -translate-x-1/2 mb-2",
1030
1053
  "top-right": "bottom-full left-full transform -translate-x-1 mb-2",
1031
1054
  "top-left": "bottom-full right-full transform translate-x-1 mb-2",
@@ -1034,12 +1057,12 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
1034
1057
  "bottom-left": "top-full right-full transform translate-x-1 mt-2",
1035
1058
  left: "top-1/2 right-full transform -translate-y-1/2 mr-2",
1036
1059
  right: "top-1/2 left-full transform -translate-y-1/2 ml-2"
1037
- }, ds = (e) => Le[String(e)] || Le.top, io = i(({ position: e = "top", content: t }, s) => {
1038
- const n = ds(e);
1060
+ }, hs = (e) => Re[String(e)] || Re.top, uo = i(({ position: e = "top", content: t }, s) => {
1061
+ const n = hs(e);
1039
1062
  return Array.isArray(s) === !1 && (s = [s]), o({ class: "relative group inline-block" }, [
1040
1063
  ...s,
1041
1064
  // Tooltip box
1042
- u({
1065
+ f({
1043
1066
  class: `
1044
1067
  absolute z-20 px-2 py-1 border text-sm bg-background rounded shadow-md opacity-0 whitespace-nowrap
1045
1068
  group-hover:opacity-100 transition-opacity duration-200 ${n} pointer-events-none
@@ -1072,23 +1095,23 @@ const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
1072
1095
  bgColor: "bg-muted/10",
1073
1096
  iconColor: "text-muted-foreground"
1074
1097
  }
1075
- }, us = (e, t) => o({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
1098
+ }, fs = (e, t) => o({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
1076
1099
  x({ size: "sm" }, e)
1077
- ]), hs = (e) => mt({ class: "font-semibold" }, e), fs = (e) => k({ class: "text-sm text-muted-foreground" }, e), co = i(({ title: e, description: t, icon: s, type: n = "default" }) => {
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" }) => {
1078
1101
  const { borderColor: a, bgColor: l, iconColor: r } = Ae[n] || Ae.default;
1079
1102
  return o({ class: `flex items-start p-4 border rounded-lg ${l} ${a}` }, [
1080
1103
  // Icon and content
1081
- s && us(s, r),
1104
+ s && fs(s, r),
1082
1105
  o({ class: "flex flex-col" }, [
1083
- hs(e),
1084
- fs(t)
1106
+ gs(e),
1107
+ ms(t)
1085
1108
  ])
1086
1109
  ]);
1087
- }), gs = (e, t) => {
1110
+ }), bs = (e, t) => {
1088
1111
  const s = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, n = t.getBoundingClientRect(), a = 10, l = globalThis.scrollX, r = globalThis.scrollY;
1089
- let c = s.left + l, f = s.bottom + r;
1090
- const m = globalThis.innerHeight - s.bottom, w = s.top;
1091
- return c + n.width > globalThis.innerWidth && (c = globalThis.innerWidth - n.width - a), m < n.height && w > m ? f = s.top + r - n.height - a : m < n.height && (f = s.bottom + r - (n.height - m) - a), { x: c, y: f };
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 };
1092
1115
  };
1093
1116
  class ae extends S {
1094
1117
  /**
@@ -1097,7 +1120,7 @@ class ae extends S {
1097
1120
  * @returns {object}
1098
1121
  */
1099
1122
  setData() {
1100
- const t = this.parent.data || new O();
1123
+ const t = this.parent.data || new N();
1101
1124
  return t.set({
1102
1125
  position: { x: 0, y: 0 }
1103
1126
  }), t;
@@ -1167,7 +1190,7 @@ class ae extends S {
1167
1190
  * @returns {void}
1168
1191
  */
1169
1192
  updatePosition() {
1170
- const t = this.button ?? null, s = this.panel, n = gs(t, s);
1193
+ const t = this.button ?? null, s = this.panel, n = bs(t, s);
1171
1194
  this.data.position = n;
1172
1195
  }
1173
1196
  /**
@@ -1219,29 +1242,29 @@ class ae extends S {
1219
1242
  this?.panel?.hidePopover();
1220
1243
  }
1221
1244
  }
1222
- const ms = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t)), bs = i((e, t) => H({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), xs = i((e, t) => k({ ...e, class: "text-sm text-muted-foreground italic" }, t)), ps = i((e, t) => k({ ...e, class: "text-sm text-destructive" }, t)), uo = i((e, t = []) => jt({ class: "flex flex-auto flex-col gap-y-0", margin: "m-0", padding: "p-0" }, [
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" }, [
1223
1246
  // @ts-ignore
1224
1247
  e.title && Z({ class: "text-lg font-semibold py-4 px-6" }, e.title),
1225
1248
  // @ts-ignore
1226
1249
  e.description && k({ class: "text-sm text-muted-foreground pb-4 px-6 max-w-[700px]" }, e.description),
1227
1250
  ...t
1228
- ])), ho = i((e, t = []) => (
1251
+ ])), go = i((e, t = []) => (
1229
1252
  // @ts-ignore
1230
- Ht({ label: e.label, description: e.description, class: "py-4 px-6", border: e.border }, [
1253
+ Ut({ label: e.label, description: e.description, class: "py-4 px-6", border: e.border }, [
1231
1254
  o({ class: "flex flex-col gap-y-6" }, t)
1232
1255
  ])
1233
- )), fo = i((e, t = []) => {
1256
+ )), mo = i((e, t = []) => {
1234
1257
  const s = e.border ? "border-t" : "";
1235
1258
  return o({ ...e, class: `flex flex-col pb-4 px-6 gap-y-4 ${s} ${e.class || ""}` }, t);
1236
- }), ys = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", st = (e, t, s) => e.map((n) => !n || (n.children && n.children.length > 0 && (n.children = st(n.children, t, s)), !n.required) ? n : ys(n) ? {
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) ? {
1237
1260
  ...n,
1238
1261
  aria: {
1239
1262
  invalid: ["hasError"]
1240
1263
  },
1241
1264
  invalid: s,
1242
1265
  input: t
1243
- } : n), ws = i((e, t) => {
1244
- const a = st(t, (l) => {
1266
+ } : n), ks = i((e, t) => {
1267
+ const a = nt(t, (l) => {
1245
1268
  l.target.checkValidity() && e.setError(null);
1246
1269
  }, (l) => {
1247
1270
  e.setError(l.target.validationMessage);
@@ -1250,7 +1273,7 @@ const ms = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1250
1273
  ...e,
1251
1274
  class: "w-full"
1252
1275
  }, a);
1253
- }), go = N(
1276
+ }), bo = F(
1254
1277
  {
1255
1278
  /**
1256
1279
  * The initial state of the FormField.
@@ -1275,47 +1298,47 @@ const ms = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1275
1298
  this.state.error = l, this.state.hasError = !!l;
1276
1299
  };
1277
1300
  return o({ class: "flex flex-auto gap-y-4" }, [
1278
- ms([
1279
- bs({ htmlFor: t }, s),
1280
- ws({
1301
+ xs([
1302
+ ps({ htmlFor: t }, s),
1303
+ ks({
1281
1304
  id: t,
1282
1305
  name: e,
1283
1306
  value: this.state.value,
1284
1307
  setError: a
1285
1308
  }, this.children),
1286
- n && xs({ id: this.getId("description") }, n),
1287
- o({ onState: ["error", (l) => l && ps(l)] })
1309
+ n && ys({ id: this.getId("description") }, n),
1310
+ o({ onState: ["error", (l) => l && ws(l)] })
1288
1311
  ])
1289
1312
  ]);
1290
1313
  }
1291
1314
  }
1292
- ), vs = (e, t, s = null) => {
1315
+ ), Cs = (e, t, s = null) => {
1293
1316
  e.target.checkValidity() && (e.preventDefault(), s && s(e, t));
1294
- }, nt = i(
1317
+ }, at = i(
1295
1318
  (e, t) => (
1296
1319
  // @ts-ignore
1297
- bt({ ...e, submit: (s, n) => vs(s, n, e.submit), class: `w-full ${e.class ?? ""}` }, t)
1320
+ xt({ ...e, submit: (s, n) => Cs(s, n, e.submit), class: `w-full ${e.class ?? ""}` }, t)
1298
1321
  )
1299
- ), mo = i((e, t) => (
1322
+ ), xo = i((e, t) => (
1300
1323
  // @ts-ignore
1301
1324
  o({ ...e, class: `flex flex-auto flex-col gap-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)
1302
- )), bo = i((e, t = []) => o({ class: "flex flex-col gap-y-3 py-4" }, [
1325
+ )), po = i((e, t = []) => o({ class: "flex flex-col gap-y-3 py-4" }, [
1303
1326
  // @ts-ignore
1304
1327
  e.title && Z({ class: "font-semibold" }, e.title),
1305
1328
  ...t
1306
- ])), xo = (e, t) => o({ class: "flex justify-between" }, [
1307
- u({ class: "text-muted-foreground" }, e),
1308
- u(t)
1309
- ]), po = (e, t) => o({ class: "flex" }, [
1310
- u({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
1311
- u(t)
1312
- ]), ks = 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" }, [
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" }, [
1313
1336
  /**
1314
1337
  * Back Button (Mobile Only)
1315
1338
  */
1316
1339
  s && b({
1317
1340
  variant: "icon",
1318
- icon: h.arrows.left,
1341
+ icon: g.arrows.left,
1319
1342
  class: "mr-2 p-0 flex sm:hidden",
1320
1343
  click: (r, c) => c.close()
1321
1344
  }),
@@ -1332,7 +1355,7 @@ const ms = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1332
1355
  ]),
1333
1356
  o({ class: "flex flex-none items-center gap-2" }, a)
1334
1357
  ])
1335
- ])), yo = i((e, t) => {
1358
+ ])), vo = i((e, t) => {
1336
1359
  const s = e.class?.includes("drawer");
1337
1360
  return o({
1338
1361
  popover: "manual",
@@ -1342,19 +1365,19 @@ const ms = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1342
1365
  l.target === r.panel && (l.preventDefault(), l.stopPropagation(), r.state.open = !1);
1343
1366
  }
1344
1367
  }, [
1345
- nt({
1368
+ at({
1346
1369
  class: "modal-content relative bg-background z-1 flex flex-auto flex-col gap-y-4 min-w-0",
1347
1370
  // @ts-ignore
1348
1371
  submit: (l, r) => e.onSubmit && e.onSubmit(r),
1349
1372
  cache: "modalContent"
1350
1373
  }, [
1351
- ks(e),
1374
+ Ss(e),
1352
1375
  o({ class: "modal-body flex grow flex-col py-0 px-6 z-0", cache: "modalBody" }, t),
1353
1376
  // @ts-ignore
1354
- !e.hideFooter && be({ 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)
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)
1355
1378
  ])
1356
1379
  ]);
1357
- }), Re = {
1380
+ }), je = {
1358
1381
  info: {
1359
1382
  bgColor: "bg-muted/10",
1360
1383
  borderColor: "border-blue-500",
@@ -1380,22 +1403,22 @@ const ms = i((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
1380
1403
  borderColor: "border",
1381
1404
  iconColor: "text-muted-foreground"
1382
1405
  }
1383
- }, Cs = (e) => ee({ class: "flex justify-center" }, [
1384
- xe({ class: "text-lg font-bold mb-0" }, e)
1385
- ]), Ss = i(({ href: e, class: t }, s) => Qe({
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({
1386
1409
  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}`,
1387
1410
  href: e,
1388
1411
  animateIn: "pullRightIn",
1389
1412
  animateOut: "pullRight",
1390
1413
  role: "alert"
1391
- }, s)), $s = i(({ close: e, class: t }, s) => o({
1414
+ }, s)), Is = i(({ close: e, class: t }, s) => o({
1392
1415
  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}`,
1393
1416
  click: () => e(),
1394
1417
  animateIn: "pullRightIn",
1395
1418
  animateOut: "pullRight",
1396
1419
  role: "alert"
1397
1420
  }, s));
1398
- class wo extends S {
1421
+ class ko extends S {
1399
1422
  /**
1400
1423
  * This will declare the props for the compiler.
1401
1424
  *
@@ -1419,10 +1442,10 @@ class wo extends S {
1419
1442
  */
1420
1443
  render() {
1421
1444
  const { bgColor: t, borderColor: s, iconColor: n } = this.getTypeStyles(), a = this.href || null, l = this.getChildren(n);
1422
- return a ? Ss({
1445
+ return a ? Ds({
1423
1446
  href: a,
1424
1447
  class: `${t} ${s}`
1425
- }, l) : $s({
1448
+ }, l) : Is({
1426
1449
  close: this.close.bind(this),
1427
1450
  class: `${t} ${s}`
1428
1451
  }, l);
@@ -1434,7 +1457,7 @@ class wo extends S {
1434
1457
  */
1435
1458
  afterSetup() {
1436
1459
  const t = this.duration;
1437
- t !== "infinite" && (this.timer = new Ct(t, this.close.bind(this)), this.timer.start());
1460
+ t !== "infinite" && (this.timer = new St(t, this.close.bind(this)), this.timer.start());
1438
1461
  }
1439
1462
  /**
1440
1463
  * This will get the style properties based on the notification type.
@@ -1443,7 +1466,7 @@ class wo extends S {
1443
1466
  */
1444
1467
  getTypeStyles() {
1445
1468
  const t = this.type || "default";
1446
- return Re[t] || Re.default;
1469
+ return je[t] || je.default;
1447
1470
  }
1448
1471
  /**
1449
1472
  * This will get the buttons for the notification.
@@ -1472,16 +1495,16 @@ class wo extends S {
1472
1495
  ]),
1473
1496
  o({ class: "flex flex-auto flex-col" }, [
1474
1497
  o({ class: "flex flex-auto flex-row items-center w-full pr-12" }, [
1475
- this.title && Cs(this.title)
1498
+ this.title && $s(this.title)
1476
1499
  ]),
1477
1500
  k({ class: "text-base text-muted-foreground m-0 pr-12" }, this.description),
1478
- (this.primary || this.secondary) && be({ class: "margin-top-24 flex align-center" }, this.getButtons())
1501
+ (this.primary || this.secondary) && xe({ class: "margin-top-24 flex align-center" }, this.getButtons())
1479
1502
  ])
1480
1503
  ]),
1481
1504
  b({
1482
1505
  class: "absolute top-[12px] right-[12px]",
1483
1506
  variant: "icon",
1484
- icon: h.x,
1507
+ icon: g.x,
1485
1508
  click: this.close.bind(this)
1486
1509
  })
1487
1510
  ];
@@ -1496,25 +1519,25 @@ class wo extends S {
1496
1519
  t && t.stopPropagation(), this.duration !== "infinite" && this.timer.stop(), this.onClick && this.onClick(), this.destroy();
1497
1520
  }
1498
1521
  }
1499
- const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v({
1522
+ const Ee = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v({
1500
1523
  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',
1501
1524
  onState: ["method", { active: e }],
1502
1525
  dataSet: ["method", ["state", e, "active"]],
1503
1526
  click: (n, { state: a }) => {
1504
- a.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), Ds(e);
1527
+ a.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), Ts(e);
1505
1528
  }
1506
1529
  }, [
1507
1530
  x({}, s),
1508
- u(t)
1509
- ])), Ds = (e) => {
1531
+ f(t)
1532
+ ])), Ts = (e) => {
1510
1533
  const t = document.documentElement;
1511
- if (e === "system" && (e = globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light"), je && !je("(prefers-color-scheme: " + e + ")").matches) {
1534
+ if (e === "system" && (e = globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light"), Ee && !Ee("(prefers-color-scheme: " + e + ")").matches) {
1512
1535
  t.classList.add(e);
1513
1536
  return;
1514
1537
  }
1515
1538
  const s = e === "light" ? "dark" : "light";
1516
1539
  t.classList.remove(s);
1517
- }, vo = P(
1540
+ }, Co = B(
1518
1541
  {
1519
1542
  /**
1520
1543
  * This will render the component.
@@ -1524,9 +1547,9 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1524
1547
  render() {
1525
1548
  return o({ class: "flex flex-auto flex-col" }, [
1526
1549
  o({ class: "grid grid-cols-3 gap-4" }, [
1527
- ie({ label: "System", value: "system", icon: h.adjustments.horizontal }),
1528
- ie({ label: "Light", value: "light", icon: h.sun }),
1529
- ie({ label: "Dark", value: "dark", icon: h.moon })
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 })
1530
1553
  ])
1531
1554
  ]);
1532
1555
  },
@@ -1541,7 +1564,7 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1541
1564
  };
1542
1565
  }
1543
1566
  }
1544
- ), ko = N(
1567
+ ), So = F(
1545
1568
  {
1546
1569
  /**
1547
1570
  * The initial state of the Toggle.
@@ -1575,7 +1598,7 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1575
1598
  s.toggle("active"), this.checkbox.checked = s.active, this.change && this.change(s.active, t, this);
1576
1599
  }
1577
1600
  }, [
1578
- ge({
1601
+ me({
1579
1602
  cache: "checkbox",
1580
1603
  class: "opacity-0 absolute top-0 left-0 bottom-0 right-0 w-full h-full",
1581
1604
  /**
@@ -1586,20 +1609,20 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1586
1609
  bind: this.bind,
1587
1610
  required: this.required
1588
1611
  }),
1589
- u({
1612
+ f({
1590
1613
  class: "absolute h-5 w-5 bg-background rounded-full shadow-md transform transition-transform",
1591
1614
  onState: ["active", { "translate-x-[22px]": !0, "translate-x-[2px]": !1 }]
1592
1615
  })
1593
1616
  ]);
1594
1617
  }
1595
1618
  }
1596
- ), Is = i(({ src: e, alt: t }) => !e || e.indexOf(".") === -1 && e.indexOf("[[") === -1 ? null : rs({
1619
+ ), Ps = i(({ src: e, alt: t }) => !e || e.indexOf(".") === -1 && e.indexOf("[[") === -1 ? null : cs({
1597
1620
  src: e,
1598
1621
  alt: t,
1599
1622
  class: "rounded-full"
1600
- })), Ts = (e) => e && (Array.isArray(e) && (e = e.join(" ")), typeof e != "string" && (e = String(e)), e.split(" ").map((t) => t.charAt(0)).join("").toUpperCase()), at = (e) => !e || e.length < 2 ? e : Ts(e), Ms = (e) => u([e, (t, s) => {
1601
- s.textContent = at(t);
1602
- }]), Ee = {
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 = {
1603
1626
  xs: "h-6 w-6",
1604
1627
  sm: "h-8 w-8",
1605
1628
  md: "h-12 w-12",
@@ -1619,8 +1642,8 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1619
1642
  "3xl": "text-4xl",
1620
1643
  "4xl": "text-5xl",
1621
1644
  default: "text-base"
1622
- }, Ps = (e) => Ee[e] || Ee.default, Bs = (e) => He[e] || He.default, zs = (e, t = null, s = "md") => {
1623
- const n = at(String(e)), a = Bs(s);
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);
1624
1647
  return o(
1625
1648
  {
1626
1649
  class: `
@@ -1630,21 +1653,21 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1630
1653
  `
1631
1654
  },
1632
1655
  [
1633
- t ? Ms(t) : u({ class: "uppercase" }, n)
1656
+ t ? Bs(t) : f({ class: "uppercase" }, n)
1634
1657
  ]
1635
1658
  );
1636
- }, Os = i(({ src: e, alt: t, fallbackText: s, watcherFallback: n, size: a }) => {
1637
- const l = Ps(a);
1659
+ }, Fs = i(({ src: e, alt: t, fallbackText: s, watcherFallback: n, size: a }) => {
1660
+ const l = zs(a);
1638
1661
  return o(
1639
1662
  {
1640
1663
  class: `relative flex items-center justify-center ${l}`
1641
1664
  },
1642
1665
  [
1643
- Is({ src: e, alt: t }),
1644
- zs(s, n, a)
1666
+ Ps({ src: e, alt: t }),
1667
+ Ns(s, n, a)
1645
1668
  ]
1646
1669
  );
1647
- }), _e = (e) => !e || e.includes("[[") || e.indexOf(".") === -1 && e.indexOf("blob:") === -1, Co = P(
1670
+ }), Ue = (e) => !e || e.includes("[[") || e.indexOf(".") === -1 && e.indexOf("blob:") === -1, $o = B(
1648
1671
  {
1649
1672
  /**
1650
1673
  * Get the initial state for the component.
@@ -1654,7 +1677,7 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1654
1677
  state() {
1655
1678
  return {
1656
1679
  // @ts-ignore
1657
- loaded: !!this.src && !_e(this.src)
1680
+ loaded: !!this.src && !Ue(this.src)
1658
1681
  };
1659
1682
  },
1660
1683
  /**
@@ -1664,7 +1687,7 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1664
1687
  */
1665
1688
  openFileBrowse() {
1666
1689
  const e = this.input;
1667
- e && (e.value = "", j.trigger("click", e));
1690
+ e && (e.value = "", H.trigger("click", e));
1668
1691
  },
1669
1692
  /**
1670
1693
  * Get the URL for the uploaded file.
@@ -1700,13 +1723,13 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1700
1723
  s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
1701
1724
  }
1702
1725
  }, [
1703
- M("loaded", (s) => s === !1 || _e(this.src) ? H({
1726
+ M("loaded", (s) => s === !1 || Ue(this.src) ? Y({
1704
1727
  htmlFor: e,
1705
1728
  class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
1706
1729
  }, [
1707
- he(h.upload),
1730
+ fe(g.upload),
1708
1731
  o("Upload Image")
1709
- ]) : me({
1732
+ ]) : be({
1710
1733
  // @ts-ignore
1711
1734
  src: this.src,
1712
1735
  class: "absolute inset-0 w-full h-full object-cover rounded-full"
@@ -1715,7 +1738,7 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1715
1738
  ]);
1716
1739
  }
1717
1740
  }
1718
- ), So = P(
1741
+ ), Do = B(
1719
1742
  {
1720
1743
  /**
1721
1744
  * Get the initial state for the component.
@@ -1735,7 +1758,7 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1735
1758
  */
1736
1759
  openFileBrowse() {
1737
1760
  const e = this.input;
1738
- e && (e.value = "", j.trigger("click", e));
1761
+ e && (e.value = "", H.trigger("click", e));
1739
1762
  },
1740
1763
  /**
1741
1764
  * Get the URL for the uploaded file.
@@ -1773,15 +1796,15 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1773
1796
  }, [
1774
1797
  M(
1775
1798
  "loaded",
1776
- (s) => s ? me({
1799
+ (s) => s ? be({
1777
1800
  // @ts-ignore
1778
1801
  src: this.src,
1779
1802
  class: "absolute inset-0 w-full h-full object-cover rounded-full"
1780
- }) : H({
1803
+ }) : Y({
1781
1804
  htmlFor: e,
1782
1805
  class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
1783
1806
  }, [
1784
- x({}, h.upload),
1807
+ x({}, g.upload),
1785
1808
  o("Upload logo")
1786
1809
  ])
1787
1810
  )
@@ -1797,22 +1820,22 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1797
1820
  this.input = null;
1798
1821
  }
1799
1822
  }
1800
- ), Ns = (e, t) => Qe(
1823
+ ), Ls = (e, t) => Je(
1801
1824
  {
1802
1825
  href: e,
1803
1826
  "aria-current": t === "Breadcrumb" && "page",
1804
1827
  // Only set aria-current on the last item
1805
1828
  class: "text-muted-foreground font-medium hover:text-foreground"
1806
1829
  },
1807
- [u(t)]
1808
- ), Fs = () => x({
1830
+ [f(t)]
1831
+ ), Rs = () => x({
1809
1832
  class: "mx-3 text-muted-foreground",
1810
1833
  "aria-hidden": !0,
1811
1834
  size: "xs"
1812
- }, h.chevron.single.right), Ls = (e) => o({ class: "flex items-center" }, [
1813
- e.href ? Ns(e.href, e.label) : u(e.label),
1814
- e.separator && Fs()
1815
- ]), $o = P(
1835
+ }, g.chevron.single.right), As = (e) => o({ class: "flex items-center" }, [
1836
+ e.href ? Ls(e.href, e.label) : f(e.label),
1837
+ e.separator && Rs()
1838
+ ]), Io = B(
1816
1839
  {
1817
1840
  /**
1818
1841
  * Set initial data
@@ -1820,7 +1843,7 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1820
1843
  * @returns {Data}
1821
1844
  */
1822
1845
  setData() {
1823
- return new O({
1846
+ return new N({
1824
1847
  // @ts-ignore
1825
1848
  items: this.items || []
1826
1849
  });
@@ -1832,7 +1855,7 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1832
1855
  */
1833
1856
  render() {
1834
1857
  const e = this.data.items.length - 1;
1835
- return pe(
1858
+ return ye(
1836
1859
  {
1837
1860
  "aria-label": "Breadcrumb",
1838
1861
  class: "flex items-center gap-x-1 text-sm"
@@ -1841,7 +1864,7 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1841
1864
  o({
1842
1865
  role: "list",
1843
1866
  class: "flex items-center",
1844
- for: ["items", (t, s) => Ls({
1867
+ for: ["items", (t, s) => As({
1845
1868
  href: t.href,
1846
1869
  label: t.label,
1847
1870
  separator: s < e
@@ -1851,7 +1874,7 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1851
1874
  );
1852
1875
  }
1853
1876
  }
1854
- ), Ue = {
1877
+ ), Ye = {
1855
1878
  xs: "h-1 w-1",
1856
1879
  sm: "h-2 w-2",
1857
1880
  md: "h-4 w-4",
@@ -1860,8 +1883,8 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1860
1883
  "2xl": "h-16 w-16",
1861
1884
  "3xl": "h-24 w-24",
1862
1885
  default: "h-4 w-4"
1863
- }, As = (e) => Ue[e] || Ue.default, Rs = ({ index: e, size: t }) => o({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
1864
- u({
1886
+ }, js = (e) => Ye[e] || Ye.default, Es = ({ index: e, size: t }) => o({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
1887
+ f({
1865
1888
  class: "block w-full h-full rounded-full transition-colors",
1866
1889
  onSet: ["activeIndex", {
1867
1890
  "bg-primary": e,
@@ -1871,10 +1894,10 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1871
1894
  n.activeIndex = e, a && a(e);
1872
1895
  }
1873
1896
  })
1874
- ]), js = (e, t) => Array.from({ length: e }, (s, n) => Rs({
1897
+ ]), _s = (e, t) => Array.from({ length: e }, (s, n) => Es({
1875
1898
  index: n,
1876
1899
  size: t
1877
- })), Do = P(
1900
+ })), To = B(
1878
1901
  {
1879
1902
  /**
1880
1903
  * Defines component data (props).
@@ -1882,7 +1905,7 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1882
1905
  * @returns {Data}
1883
1906
  */
1884
1907
  setData() {
1885
- return new O({
1908
+ return new N({
1886
1909
  // @ts-ignore
1887
1910
  count: this.count || 4,
1888
1911
  // total dots
@@ -1896,7 +1919,7 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1896
1919
  * @returns {object}
1897
1920
  */
1898
1921
  render() {
1899
- const e = this.gap || "gap-2", t = As(this.size || "sm"), s = js(this.data.count, t);
1922
+ const e = this.gap || "gap-2", t = js(this.size || "sm"), s = _s(this.data.count, t);
1900
1923
  return o(
1901
1924
  { class: "flex justify-center items-center py-2" },
1902
1925
  [
@@ -1905,26 +1928,26 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1905
1928
  );
1906
1929
  }
1907
1930
  }
1908
- ), Es = ({ toggleDropdown: e }) => v(
1931
+ ), Hs = ({ toggleDropdown: e }) => v(
1909
1932
  {
1910
1933
  cache: "button",
1911
1934
  class: "relative z-2 inline-flex items-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border bg-input hover:bg-muted h-10 px-4 py-2 justify-between",
1912
1935
  click: e
1913
1936
  },
1914
1937
  [
1915
- u({ onState: ["selectedLabel", (t) => t || "Select item..."] }),
1916
- x({ size: "sm" }, h.chevron.upDown)
1938
+ f({ onState: ["selectedLabel", (t) => t || "Select item..."] }),
1939
+ x({ size: "sm" }, g.chevron.upDown)
1917
1940
  ]
1918
- ), Hs = (e, t, s) => ye({
1941
+ ), Us = (e, t, s) => we({
1919
1942
  class: "flex flex-auto items-center cursor-pointer p-2 hover:bg-muted/50 rounded-sm",
1920
1943
  click: () => t(e),
1921
1944
  onState: [s, "selectedValue", { "bg-secondary": e.value }]
1922
1945
  }, [
1923
- e.icon && u({ class: "mr-2 flex items-baseline" }, [x({ size: "xs" }, e.icon)]),
1924
- u({ class: "text-base font-normal" }, e.label)
1925
- ]), _s = (e, t) => o({ class: "w-full border rounded-md" }, [
1926
- te({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => Hs(s, e, t)] })
1927
- ]), Us = ({ onSelect: e, state: t }) => o({ class: "flex flex-auto flex-col" }, [
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" }, [
1928
1951
  M(
1929
1952
  "open",
1930
1953
  (s, n, a) => s ? new ae({
@@ -1932,10 +1955,10 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1932
1955
  parent: a,
1933
1956
  button: a.button
1934
1957
  }, [
1935
- _s(e, t)
1958
+ Ys(e, t)
1936
1959
  ]) : null
1937
1960
  )
1938
- ]), Io = P(
1961
+ ]), Po = B(
1939
1962
  {
1940
1963
  /**
1941
1964
  * This will set up the data.
@@ -1943,7 +1966,7 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
1943
1966
  * @returns {Data}
1944
1967
  */
1945
1968
  setData() {
1946
- return new O({
1969
+ return new N({
1947
1970
  // @ts-ignore
1948
1971
  items: this.items || []
1949
1972
  });
@@ -2016,8 +2039,8 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2016
2039
  const e = this.class || "", t = this.maxWidth || "max-w-[250px]", s = this.width || "w-full";
2017
2040
  return o({ class: `relative ${s} flex flex-auto flex-col ${t} ${e}` }, [
2018
2041
  // @ts-ignore
2019
- Es({ toggleDropdown: this.toggleDropdown.bind(this) }),
2020
- Us({
2042
+ Hs({ toggleDropdown: this.toggleDropdown.bind(this) }),
2043
+ Ws({
2021
2044
  // @ts-ignore
2022
2045
  state: this.state,
2023
2046
  // @ts-ignore
@@ -2037,21 +2060,21 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2037
2060
  ]);
2038
2061
  }
2039
2062
  }
2040
- ), ot = ({ icon: e, click: t, ariaLabel: s }) => b({
2063
+ ), lt = ({ icon: e, click: t, ariaLabel: s }) => b({
2041
2064
  variant: "icon",
2042
2065
  class: "flex flex-none",
2043
2066
  click: t,
2044
2067
  icon: e,
2045
2068
  "aria-label": s
2046
- }), Ys = ({ click: e }) => ot({
2047
- icon: h.circleMinus,
2069
+ }), Vs = ({ click: e }) => lt({
2070
+ icon: g.circleMinus,
2048
2071
  click: e,
2049
2072
  ariaLabel: "Decrement"
2050
- }), Ws = ({ click: e }) => ot({
2051
- icon: h.circlePlus,
2073
+ }), qs = ({ click: e }) => lt({
2074
+ icon: g.circlePlus,
2052
2075
  click: e,
2053
2076
  ariaLabel: "Increment"
2054
- }), Vs = ({ bind: e, min: t, max: s, readonly: n = !1 }) => V(({ state: a }) => p({
2077
+ }), Gs = ({ bind: e, min: t, max: s, readonly: n = !1 }) => q(({ state: a }) => p({
2055
2078
  value: ["[[count]]", a],
2056
2079
  bind: e,
2057
2080
  blur: (l, { state: r }) => {
@@ -2064,7 +2087,7 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2064
2087
  max: s,
2065
2088
  type: "number",
2066
2089
  "aria-label": "Counter"
2067
- })), To = N(
2090
+ })), Mo = F(
2068
2091
  {
2069
2092
  /**
2070
2093
  * Initial state for the counter component.
@@ -2087,18 +2110,18 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2087
2110
  render() {
2088
2111
  const e = this.class ?? "";
2089
2112
  return o({ class: `flex flex-auto items-center justify-between gap-x-4 p-4 ${e}` }, [
2090
- Ys({ click: () => this.state.decrement("count") }),
2091
- Vs({
2113
+ Vs({ click: () => this.state.decrement("count") }),
2114
+ Gs({
2092
2115
  bind: this.bind,
2093
2116
  readonly: this.readonly,
2094
2117
  min: this.min,
2095
2118
  max: this.max
2096
2119
  }),
2097
- Ws({ click: () => this.state.increment("count") })
2120
+ qs({ click: () => this.state.increment("count") })
2098
2121
  ]);
2099
2122
  }
2100
2123
  }
2101
- ), qs = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2124
+ ), Ks = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2102
2125
  { class: "grid grid-cols-3 gap-2" },
2103
2126
  se.monthNames.map(
2104
2127
  (n, a) => b(
@@ -2112,9 +2135,9 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2112
2135
  n.substring(0, 3)
2113
2136
  )
2114
2137
  )
2115
- ), z = (e) => (e *= 1, e < 10 ? `0${e}` : String(e)), Gs = (e) => (e.indexOf("T") === -1 && e.indexOf(" ") === -1 && (e += "T00:00:01"), e.replace(" ", "T"), e), R = (e, t, s) => `${e}-${z(t + 1)}-${z(s)}`, Ks = (e) => e ? "bg-accent text-primary" : "", Qs = (e) => e ? "text-muted-foreground opacity-50" : "", Js = (e, t) => e === t, Xs = (e, t) => Js(e, t) ? "bg-primary text-primary-foreground" : "", Zs = (e, t, s, n) => {
2116
- const a = Xs(t, n);
2117
- return a || (e ? Ks(e) : s ? Qs(s) : "text-foreground");
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) => {
2139
+ const a = en(t, n);
2140
+ return a || (e ? Js(e) : s ? Xs(s) : "text-foreground");
2118
2141
  }, ce = (e) => {
2119
2142
  const {
2120
2143
  day: t,
@@ -2129,7 +2152,7 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2129
2152
  {
2130
2153
  class: `
2131
2154
  flex items-center justify-center h-9 w-auto p-0 font-normal text-sm rounded-md cursor-pointer
2132
- ${Zs(a, s, l, n)}
2155
+ ${tn(a, s, l, n)}
2133
2156
  hover:bg-muted/50 hover:text-muted-foreground focus:z-10
2134
2157
  disabled:pointer-events-none disabled:opacity-50
2135
2158
  `,
@@ -2140,53 +2163,53 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2140
2163
  },
2141
2164
  t.toString()
2142
2165
  );
2143
- }, de = (e, t, s, n) => e === n.date && t === n.month && s === n.year, en = (e, t, s, n = !1) => {
2144
- const { year: a, month: l } = e, r = R(a, l, e.date), c = new Date(a, l, 1).getDay(), f = new Date(a, l + 1, 0).getDate(), m = new Date(a, l, 0).getDate(), w = [], q = l === 0 ? 11 : l - 1, U = l === 0 ? a - 1 : a;
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;
2145
2168
  for (let d = c - 1; d >= 0; d--) {
2146
- const y = m - d, I = de(y, q, U, t), T = new Date(U, q, y) < new Date(t.year, t.month, t.date), L = n && T;
2147
- w.push(
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(
2148
2171
  ce({
2149
- day: y,
2172
+ day: w,
2150
2173
  currentDate: r,
2151
- date: R(U, q, y),
2174
+ date: _(A, R, w),
2152
2175
  isToday: I,
2153
2176
  isOutsideMonth: !0,
2154
2177
  select: s,
2155
- disabled: L
2178
+ disabled: j
2156
2179
  })
2157
2180
  );
2158
2181
  }
2159
- for (let d = 1; d <= f; d++) {
2160
- const y = de(d, l, a, t), I = new Date(a, l, d) < new Date(t.year, t.month, t.date), T = n && I;
2161
- w.push(
2182
+ 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(
2162
2185
  ce({
2163
2186
  day: d,
2164
2187
  currentDate: r,
2165
- date: R(a, l, d),
2166
- isToday: y,
2188
+ date: _(a, l, d),
2189
+ isToday: w,
2167
2190
  isOutsideMonth: !1,
2168
2191
  select: s,
2169
2192
  disabled: T
2170
2193
  })
2171
2194
  );
2172
2195
  }
2173
- const Y = l === 11 ? 0 : l + 1, oe = l === 11 ? a + 1 : a, g = (7 - w.length % 7) % 7;
2174
- for (let d = 1; d <= g; d++) {
2175
- const y = de(d, Y, oe, t), I = new Date(oe, Y, d) < new Date(t.year, t.month, t.date), T = n && I;
2176
- w.push(
2196
+ const P = l === 11 ? 0 : l + 1, oe = l === 11 ? a + 1 : a, m = (7 - y.length % 7) % 7;
2197
+ 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(
2177
2200
  ce({
2178
2201
  day: d,
2179
2202
  currentDate: r,
2180
- date: R(oe, Y, d),
2181
- isToday: y,
2203
+ date: _(oe, P, d),
2204
+ isToday: w,
2182
2205
  isOutsideMonth: !0,
2183
2206
  select: s,
2184
2207
  disabled: T
2185
2208
  })
2186
2209
  );
2187
2210
  }
2188
- return w;
2189
- }, Ye = ({ label: e, click: t }) => b(
2211
+ return y;
2212
+ }, We = ({ label: e, click: t }) => b(
2190
2213
  {
2191
2214
  class: `
2192
2215
  inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
@@ -2197,18 +2220,18 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2197
2220
  click: t,
2198
2221
  "aria-label": `${e} month`,
2199
2222
  variant: "icon",
2200
- icon: e === "Previous" ? h.chevron.single.left : h.chevron.single.right
2223
+ icon: e === "Previous" ? g.chevron.single.left : g.chevron.single.right
2201
2224
  }
2202
- ), tn = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => o({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
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" }, [
2203
2226
  b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
2204
2227
  b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
2205
- Ye({ label: "Previous", click: n }),
2206
- Ye({ label: "Next", click: s })
2207
- ]), sn = (e) => o(
2228
+ We({ label: "Previous", click: n }),
2229
+ We({ label: "Next", click: s })
2230
+ ]), an = (e) => o(
2208
2231
  { class: "flex items-center justify-center h-9 w-auto text-[0.8rem] font-normal text-muted-foreground" },
2209
2232
  e
2210
- ), nn = () => ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(sn), an = (e) => o({ class: "rdp flex flex-auto flex-col w-full gap-y-1" }, [
2211
- tn({
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" }, [
2234
+ nn({
2212
2235
  onMonthClick: e.onMonthClick,
2213
2236
  onYearClick: e.onYearClick,
2214
2237
  next: e.next,
@@ -2219,10 +2242,10 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2219
2242
  onSet: [
2220
2243
  "currentDate",
2221
2244
  () => [
2222
- o({ class: "grid grid-cols-7" }, nn()),
2245
+ o({ class: "grid grid-cols-7" }, on()),
2223
2246
  o(
2224
2247
  { class: "grid grid-cols-7" },
2225
- en(
2248
+ sn(
2226
2249
  e.current,
2227
2250
  e.today,
2228
2251
  e.select,
@@ -2232,7 +2255,7 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2232
2255
  ]
2233
2256
  ]
2234
2257
  })
2235
- ]), on = ({ currentMonth: e, currentYear: t, onSelect: s }) => {
2258
+ ]), rn = ({ currentMonth: e, currentYear: t, onSelect: s }) => {
2236
2259
  const n = t - 50, a = Array.from({ length: 101 }, (l, r) => n + r);
2237
2260
  return o(
2238
2261
  { class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
@@ -2250,7 +2273,7 @@ const je = globalThis.matchMedia, ie = i(({ value: e, label: t, icon: s }) => v(
2250
2273
  )
2251
2274
  );
2252
2275
  };
2253
- class ln extends S {
2276
+ class cn extends S {
2254
2277
  /**
2255
2278
  * This will declare the props for the compiler.
2256
2279
  *
@@ -2266,7 +2289,7 @@ class ln extends S {
2266
2289
  * @returns {Date}
2267
2290
  */
2268
2291
  getSelectedDate(t) {
2269
- const s = this.selectedDate ? new Date(Gs(this.selectedDate)) : t;
2292
+ const s = this.selectedDate ? new Date(Qs(this.selectedDate)) : t;
2270
2293
  return new Date(s.getFullYear(), s.getMonth(), s.getDate());
2271
2294
  }
2272
2295
  /**
@@ -2276,7 +2299,7 @@ class ln extends S {
2276
2299
  */
2277
2300
  setData() {
2278
2301
  const t = /* @__PURE__ */ new Date(), s = this.getSelectedDate(t), n = s.getMonth();
2279
- return new O({
2302
+ return new N({
2280
2303
  monthName: this.getMonthName(n),
2281
2304
  currentDate: `${s.getFullYear()}-${n + 1}-${s.getDate()}`,
2282
2305
  current: {
@@ -2341,7 +2364,7 @@ class ln extends S {
2341
2364
  */
2342
2365
  setCurrentDate(t, s, n = null) {
2343
2366
  const a = this.data;
2344
- a.current.month = t, a.current.year = s, typeof n == "number" && (a.current.date = z(n)), a.currentDate = `${s}-${z(t + 1)}-${a.current.date}`, a.monthName = this.getMonthName(t);
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);
2345
2368
  }
2346
2369
  /**
2347
2370
  * This will select a date.
@@ -2363,7 +2386,7 @@ class ln extends S {
2363
2386
  M("view", (t) => {
2364
2387
  switch (t) {
2365
2388
  case "months":
2366
- return qs(
2389
+ return Ks(
2367
2390
  {
2368
2391
  // @ts-ignore
2369
2392
  currentMonth: this.data.current.month,
@@ -2375,7 +2398,7 @@ class ln extends S {
2375
2398
  }
2376
2399
  );
2377
2400
  case "years":
2378
- return on(
2401
+ return rn(
2379
2402
  {
2380
2403
  // @ts-ignore
2381
2404
  currentMonth: this.data.current.month,
@@ -2387,7 +2410,7 @@ class ln extends S {
2387
2410
  }
2388
2411
  );
2389
2412
  default:
2390
- return an({
2413
+ return ln({
2391
2414
  // @ts-ignore
2392
2415
  current: this.data.current,
2393
2416
  // @ts-ignore
@@ -2408,57 +2431,57 @@ class ln extends S {
2408
2431
  ]);
2409
2432
  }
2410
2433
  }
2411
- const rn = (e) => {
2434
+ const dn = (e) => {
2412
2435
  let t = "";
2413
2436
  return e.length > 0 && (t = e.substring(0, 2), e.length > 2 && (t += "/" + e.substring(2, 4), e.length > 4 && (t += "/" + e.substring(4, 8)))), t;
2414
- }, cn = (e) => {
2437
+ }, un = (e) => {
2415
2438
  if (e.length !== 8)
2416
2439
  return null;
2417
2440
  const t = parseInt(e.substring(0, 2), 10), s = parseInt(e.substring(2, 4), 10), n = parseInt(e.substring(4, 8), 10);
2418
2441
  return t >= 1 && t <= 12 && s >= 1 && s <= 31 && n >= 1900 ? `${n}-${t.toString().padStart(2, "0")}-${s.toString().padStart(2, "0")}` : null;
2419
- }, dn = ({ bind: e, required: t }) => p({
2442
+ }, hn = ({ bind: e, required: t }) => p({
2420
2443
  cache: "input",
2421
2444
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
2422
2445
  bind: e,
2423
2446
  required: t
2424
- }), un = ({ placeholder: e, handleInputChange: t, handleInputFocus: s }) => p({
2447
+ }), fn = ({ placeholder: e, handleInputChange: t, handleInputFocus: s }) => p({
2425
2448
  cache: "dateInput",
2426
2449
  class: "flex-1 bg-transparent outline-none placeholder:text-muted-foreground border-0",
2427
2450
  placeholder: e || "mm/dd/yyyy",
2428
2451
  input: t,
2429
2452
  focus: s,
2430
2453
  onState: ["selectedDate", (n) => n ? se.format("standard", n) : ""]
2431
- }), hn = ({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) => o(
2454
+ }), gn = ({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) => o(
2432
2455
  {
2433
2456
  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"
2434
2457
  },
2435
2458
  [
2436
- dn({ bind: e, required: t }),
2437
- un({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2459
+ hn({ bind: e, required: t }),
2460
+ fn({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2438
2461
  v(
2439
2462
  {
2440
2463
  class: "shrink-0 hover:bg-muted/50 rounded p-1 cursor-pointer",
2441
2464
  click: s
2442
2465
  },
2443
2466
  [
2444
- E({ html: h.calendar.days })
2467
+ U({ html: g.calendar.days })
2445
2468
  ]
2446
2469
  )
2447
2470
  ]
2448
- ), fn = ({ handleDateSelect: e, blockPriorDates: t }) => we(
2471
+ ), mn = ({ handleDateSelect: e, blockPriorDates: t }) => ve(
2449
2472
  (s, n, a) => new ae({
2450
2473
  cache: "dropdown",
2451
2474
  parent: a,
2452
2475
  button: a.panel,
2453
2476
  size: "fit"
2454
2477
  }, [
2455
- new ln({
2478
+ new cn({
2456
2479
  selectedDate: a.state.selectedDate,
2457
2480
  selectedCallBack: e,
2458
2481
  blockPriorDates: t
2459
2482
  })
2460
2483
  ])
2461
- ), Mo = N(
2484
+ ), Bo = F(
2462
2485
  {
2463
2486
  /**
2464
2487
  * The initial state of the DatePicker.
@@ -2487,9 +2510,9 @@ const rn = (e) => {
2487
2510
  */
2488
2511
  handleInputChange(e) {
2489
2512
  const s = e.target.value.replace(/\D/g, "");
2490
- e.target.value = rn(s);
2491
- const n = cn(s);
2492
- n && (this.state.selectedDate = n, this.input.value = n, j.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(n));
2513
+ e.target.value = dn(s);
2514
+ 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));
2493
2516
  },
2494
2517
  /**
2495
2518
  * Handles input focus - select all text for easy editing.
@@ -2505,7 +2528,7 @@ const rn = (e) => {
2505
2528
  * @param {string} date
2506
2529
  */
2507
2530
  handleDateSelect(e) {
2508
- this.state.selectedDate = e, this.state.open = !1, this.input.value = e, j.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(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);
2509
2532
  },
2510
2533
  /**
2511
2534
  * Toggles the calendar popover.
@@ -2525,7 +2548,7 @@ const rn = (e) => {
2525
2548
  return o(
2526
2549
  { class: "relative w-full max-w-[320px]" },
2527
2550
  [
2528
- hn({
2551
+ gn({
2529
2552
  toggleOpen: this.toggleOpen.bind(this),
2530
2553
  bind: this.bind,
2531
2554
  required: this.required,
@@ -2533,7 +2556,7 @@ const rn = (e) => {
2533
2556
  handleInputFocus: this.handleInputFocus.bind(this),
2534
2557
  placeholder: this.placeholder
2535
2558
  }),
2536
- fn({
2559
+ mn({
2537
2560
  handleDateSelect: this.handleDateSelect.bind(this),
2538
2561
  blockPriorDates: this.blockPriorDates || !1
2539
2562
  })
@@ -2541,7 +2564,7 @@ const rn = (e) => {
2541
2564
  );
2542
2565
  }
2543
2566
  }
2544
- ), We = ({ label: e, click: t }) => b(
2567
+ ), Ve = ({ label: e, click: t }) => b(
2545
2568
  {
2546
2569
  class: `
2547
2570
  inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
@@ -2552,50 +2575,50 @@ const rn = (e) => {
2552
2575
  click: t,
2553
2576
  "aria-label": `${e} month`,
2554
2577
  variant: "icon",
2555
- icon: e === "Previous" ? h.chevron.single.left : h.chevron.single.right
2578
+ icon: e === "Previous" ? g.chevron.single.left : g.chevron.single.right
2556
2579
  }
2557
- ), gn = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => o({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
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" }, [
2558
2581
  b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
2559
2582
  b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
2560
- We({ label: "Previous", click: n }),
2561
- We({ label: "Next", click: s })
2562
- ]), mn = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), bn = () => o(
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(
2563
2586
  { class: "grid grid-cols-7 gap-1 text-center text-xs font-medium text-muted-foreground mb-2" },
2564
- ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(mn)
2565
- ), xn = ({ day: e, iso: t, disabled: s, isStart: n, isEnd: a, isBetween: l, isOtherMonth: r, click: c }) => {
2566
- let f = "ghost", m = "";
2567
- return n || a ? (f = "default", m = "bg-primary text-primary-foreground hover:bg-primary/90") : l && (m = "bg-accent text-accent-foreground hover:bg-accent/80"), s && (m += " opacity-50 cursor-not-allowed"), r && (m += " text-muted-foreground opacity-50"), b(
2587
+ ["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(
2568
2591
  {
2569
- class: `flex items-center justify-center p-0 text-sm font-medium rounded-md transition-colors ${m}`,
2570
- variant: f,
2592
+ class: `flex items-center justify-center p-0 text-sm font-medium rounded-md transition-colors ${h}`,
2593
+ variant: u,
2571
2594
  disabled: s,
2572
- click: (w) => {
2573
- w.preventDefault(), w.stopPropagation(), s || c();
2595
+ click: (y) => {
2596
+ y.preventDefault(), y.stopPropagation(), s || c();
2574
2597
  }
2575
2598
  },
2576
2599
  e.toString()
2577
2600
  );
2578
- }, pn = ({ today: e, current: t, blockPriorDates: s, onDateClick: n }) => {
2579
- 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(), f = [], m = t.month === 0 ? 11 : t.month - 1, w = t.month === 0 ? t.year - 1 : t.year, q = new Date(w, m + 1, 0).getDate(), U = t.month === 11 ? 0 : t.month + 1, Y = t.month === 11 ? t.year + 1 : t.year;
2580
- for (let g = r - 1; g >= 0; g--) {
2581
- const d = q - g, y = R(w, m, d), I = new Date(w, m, d), T = new Date(e.year, e.month, e.date), L = I < T, G = s && L, K = a === y, Q = l === y, ht = a && l && y > a && y < l;
2582
- f.push({
2601
+ }, 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;
2603
+ 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;
2605
+ u.push({
2583
2606
  day: d,
2584
- iso: y,
2607
+ iso: w,
2585
2608
  disabled: G,
2586
2609
  isStart: K,
2587
2610
  isEnd: Q,
2588
- isBetween: ht,
2611
+ isBetween: ft,
2589
2612
  isOtherMonth: !0,
2590
- click: () => n(y)
2613
+ click: () => n(w)
2591
2614
  });
2592
2615
  }
2593
- for (let g = 1; g <= c; g++) {
2594
- const d = R(t.year, t.month, g), y = new Date(t.year, t.month, g), I = new Date(e.year, e.month, e.date), T = y < I, L = s && T, G = a === d, K = l === d, Q = a && l && d > a && d < l;
2595
- f.push({
2596
- day: g,
2616
+ 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;
2618
+ u.push({
2619
+ day: m,
2597
2620
  iso: d,
2598
- disabled: L,
2621
+ disabled: j,
2599
2622
  isStart: G,
2600
2623
  isEnd: K,
2601
2624
  isBetween: Q,
@@ -2605,13 +2628,13 @@ const rn = (e) => {
2605
2628
  }
2606
2629
  });
2607
2630
  }
2608
- const De = (7 - f.length % 7) % 7;
2609
- for (let g = 1; g <= De; g++) {
2610
- const d = R(Y, U, g), y = new Date(Y, U, g), I = new Date(e.year, e.month, e.date), T = y < I, L = s && T, G = a === d, K = l === d, Q = a && l && d > a && d < l;
2611
- f.push({
2612
- day: g,
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;
2634
+ u.push({
2635
+ day: m,
2613
2636
  iso: d,
2614
- disabled: L,
2637
+ disabled: j,
2615
2638
  isStart: G,
2616
2639
  isEnd: K,
2617
2640
  isBetween: Q,
@@ -2621,21 +2644,21 @@ const rn = (e) => {
2621
2644
  }
2622
2645
  return o(
2623
2646
  { class: "grid grid-cols-7 gap-1" },
2624
- f.map(
2625
- (g, d) => xn({
2626
- day: g.day,
2627
- iso: g.iso,
2628
- disabled: g.disabled,
2629
- isStart: g.isStart,
2630
- isEnd: g.isEnd,
2631
- isBetween: g.isBetween,
2632
- isOtherMonth: g.isOtherMonth,
2633
- click: g.click
2647
+ u.map(
2648
+ (m, d) => yn({
2649
+ day: m.day,
2650
+ iso: m.iso,
2651
+ disabled: m.disabled,
2652
+ isStart: m.isStart,
2653
+ isEnd: m.isEnd,
2654
+ isBetween: m.isBetween,
2655
+ isOtherMonth: m.isOtherMonth,
2656
+ click: m.click
2634
2657
  })
2635
2658
  )
2636
2659
  );
2637
- }, yn = i((e, t) => o({ class: "flex flex-auto flex-col" }, [
2638
- gn({
2660
+ }, vn = i((e, t) => o({ class: "flex flex-auto flex-col" }, [
2661
+ bn({
2639
2662
  // @ts-ignore
2640
2663
  onMonthClick: e.onMonthClick,
2641
2664
  // @ts-ignore
@@ -2650,8 +2673,8 @@ const rn = (e) => {
2650
2673
  onSet: [
2651
2674
  "currentDate",
2652
2675
  () => [
2653
- bn(),
2654
- pn({
2676
+ pn(),
2677
+ wn({
2655
2678
  // @ts-ignore
2656
2679
  today: e.today,
2657
2680
  // @ts-ignore
@@ -2664,7 +2687,7 @@ const rn = (e) => {
2664
2687
  ]
2665
2688
  ]
2666
2689
  })
2667
- ])), wn = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2690
+ ])), kn = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
2668
2691
  { class: "grid grid-cols-3 gap-2" },
2669
2692
  se.monthNames.map(
2670
2693
  (n, a) => b(
@@ -2678,25 +2701,25 @@ const rn = (e) => {
2678
2701
  n.substring(0, 3)
2679
2702
  )
2680
2703
  )
2681
- ), vn = ({ start: e, end: t, selecting: s, onSelectStart: n, onSelectEnd: a }) => o({ class: "flex gap-x-2 mb-4" }, [
2704
+ ), Cn = ({ start: e, end: t, selecting: s, onSelectStart: n, onSelectEnd: a }) => o({ class: "flex gap-x-2 mb-4" }, [
2682
2705
  J("selecting", (l) => b({
2683
2706
  click: n,
2684
2707
  variant: l === "start" ? "primary" : "outline",
2685
2708
  class: "flex-1"
2686
2709
  }, [
2687
- o({ class: "font-medium" }, Ve("current.start", "Start Date"))
2710
+ o({ class: "font-medium" }, qe("current.start", "Start Date"))
2688
2711
  ])),
2689
2712
  J("selecting", (l) => b({
2690
2713
  click: a,
2691
2714
  variant: l === "end" ? "primary" : "outline",
2692
2715
  class: "flex-1"
2693
2716
  }, [
2694
- o({ class: "font-medium" }, Ve("current.end", "End Date"))
2717
+ o({ class: "font-medium" }, qe("current.end", "End Date"))
2695
2718
  ]))
2696
- ]), Ve = (e, t) => [`[[${e}]]`, (s) => s == null ? t : kn(s)], kn = (e) => {
2719
+ ]), qe = (e, t) => [`[[${e}]]`, (s) => s == null ? t : Sn(s)], Sn = (e) => {
2697
2720
  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"];
2698
2721
  return `${s[t.getDay()]}, ${t.getDate()} ${n[t.getMonth()]}`;
2699
- }, Cn = ({ currentYear: e, onSelect: t }) => {
2722
+ }, $n = ({ currentYear: e, onSelect: t }) => {
2700
2723
  const s = e - 50, n = Array.from({ length: 101 }, (a, l) => s + l);
2701
2724
  return o(
2702
2725
  { class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
@@ -2714,7 +2737,7 @@ const rn = (e) => {
2714
2737
  )
2715
2738
  );
2716
2739
  };
2717
- class Sn extends S {
2740
+ class Dn extends S {
2718
2741
  /**
2719
2742
  * Declare compiler props.
2720
2743
  *
@@ -2730,14 +2753,14 @@ class Sn extends S {
2730
2753
  */
2731
2754
  setData() {
2732
2755
  const t = /* @__PURE__ */ new Date(), s = this.startDate ? /* @__PURE__ */ new Date(this.startDate + "T00:00:00") : t, n = s.getMonth(), a = s.getFullYear();
2733
- return new O({
2756
+ return new N({
2734
2757
  today: {
2735
2758
  date: t.getDate(),
2736
2759
  month: t.getMonth(),
2737
2760
  year: t.getFullYear()
2738
2761
  },
2739
2762
  monthName: this.getMonthName(n),
2740
- currentData: `${s.getFullYear()}-${z(s.getMonth() + 1)}-${z(s.getDate())}`,
2763
+ currentData: `${s.getFullYear()}-${O(s.getMonth() + 1)}-${O(s.getDate())}`,
2741
2764
  current: {
2742
2765
  date: t.getDate(),
2743
2766
  month: n,
@@ -2801,7 +2824,7 @@ class Sn extends S {
2801
2824
  */
2802
2825
  setCurrent({ month: t, year: s, date: n = null }) {
2803
2826
  const a = this.data.current;
2804
- a.month = (t + 12) % 12, a.year = s + (t < 0 ? -1 : t > 11 ? 1 : 0), n !== null && (a.date = n), this.data.monthName = this.getMonthName(a.month), this.data.currentDate = `${s}-${z(t + 1)}-${z(a.date)}`;
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)}`;
2805
2828
  }
2806
2829
  /**
2807
2830
  * Render the range calendar.
@@ -2811,7 +2834,7 @@ class Sn extends S {
2811
2834
  render() {
2812
2835
  const { today: t, current: s, selecting: n } = this.data, { start: a, end: l } = s;
2813
2836
  return o({ class: "range-calendar border border-border rounded-lg shadow-md p-4 w-full max-w-sm min-w-80" }, [
2814
- vn({
2837
+ Cn({
2815
2838
  start: a,
2816
2839
  end: l,
2817
2840
  selecting: n,
@@ -2825,7 +2848,7 @@ class Sn extends S {
2825
2848
  M("view", (r) => {
2826
2849
  switch (r) {
2827
2850
  case "months":
2828
- return wn(
2851
+ return kn(
2829
2852
  {
2830
2853
  currentMonth: s.month,
2831
2854
  currentYear: s.year,
@@ -2835,7 +2858,7 @@ class Sn extends S {
2835
2858
  }
2836
2859
  );
2837
2860
  case "years":
2838
- return Cn(
2861
+ return $n(
2839
2862
  {
2840
2863
  currentYear: s.year,
2841
2864
  onSelect: (c) => {
@@ -2844,7 +2867,7 @@ class Sn extends S {
2844
2867
  }
2845
2868
  );
2846
2869
  default:
2847
- return yn({
2870
+ return vn({
2848
2871
  // @ts-ignore
2849
2872
  monthName: this.data.monthName,
2850
2873
  year: s.year,
@@ -2859,12 +2882,12 @@ class Sn extends S {
2859
2882
  c.preventDefault(), c.stopPropagation(), this.state.view = "years";
2860
2883
  },
2861
2884
  next: () => {
2862
- const c = this.data.current, f = c.month === 11 ? { month: 0, year: c.year + 1 } : { month: c.month + 1, year: c.year };
2863
- this.setCurrent(f);
2885
+ const c = this.data.current, u = c.month === 11 ? { month: 0, year: c.year + 1 } : { month: c.month + 1, year: c.year };
2886
+ this.setCurrent(u);
2864
2887
  },
2865
2888
  previous: () => {
2866
- const c = this.data.current, f = c.month === 0 ? { month: 11, year: c.year - 1 } : { month: c.month - 1, year: c.year };
2867
- this.setCurrent(f);
2889
+ const c = this.data.current, u = c.month === 0 ? { month: 11, year: c.year - 1 } : { month: c.month - 1, year: c.year };
2890
+ this.setCurrent(u);
2868
2891
  }
2869
2892
  });
2870
2893
  }
@@ -2872,35 +2895,35 @@ class Sn extends S {
2872
2895
  ]);
2873
2896
  }
2874
2897
  }
2875
- const $n = ({ bind: e, required: t }) => p({
2898
+ const In = ({ bind: e, required: t }) => p({
2876
2899
  cache: "input",
2877
2900
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
2878
2901
  bind: e,
2879
2902
  required: t
2880
- }), Dn = ({ bind: e, required: t, toggleOpen: s }) => v({
2903
+ }), Tn = ({ bind: e, required: t, toggleOpen: s }) => v({
2881
2904
  class: "relative flex items-center gap-2 w-full justify-between border bg-input hover:bg-muted rounded-md h-10 px-4 py-2",
2882
2905
  click: s
2883
2906
  }, [
2884
- $n({ bind: e, required: t }),
2885
- V(({ state: n }) => [
2886
- u(W.date(["[[start]]", n], "Start Date")),
2887
- u(" - "),
2888
- u(W.date(["[[end]]", n], "End Date"))
2907
+ 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"))
2889
2912
  ]),
2890
- E({ html: h.calendar.days })
2891
- ]), In = ({ handleDateSelect: e, blockPriorDates: t }) => we((s, n, a) => new ae({
2913
+ U({ html: g.calendar.days })
2914
+ ]), Pn = ({ handleDateSelect: e, blockPriorDates: t }) => ve((s, n, a) => new ae({
2892
2915
  cache: "dropdown",
2893
2916
  parent: a,
2894
2917
  button: a.panel,
2895
2918
  size: "xl"
2896
2919
  }, [
2897
- new Sn({
2920
+ new Dn({
2898
2921
  startDate: a.state.start,
2899
2922
  endDate: a.state.end,
2900
2923
  onRangeSelect: e,
2901
2924
  blockPriorDates: t
2902
2925
  })
2903
- ])), Po = N(
2926
+ ])), zo = F(
2904
2927
  {
2905
2928
  /**
2906
2929
  * The initial state of the DateRangePicker.
@@ -2933,15 +2956,15 @@ const $n = ({ bind: e, required: t }) => p({
2933
2956
  */
2934
2957
  render() {
2935
2958
  const e = (s, { state: n }) => n.toggle("open"), t = (s, n) => {
2936
- this.state.start = s, this.state.end = n, this.state.open = !1, this.input.value = `${s}-${n}`, j.trigger("change", this.input), typeof this.onChange == "function" && this.onChange({ start: s, end: n }, this.parent);
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);
2937
2960
  };
2938
2961
  return o({ class: "relative w-full max-w-[320px]" }, [
2939
- Dn({
2962
+ Tn({
2940
2963
  toggleOpen: e,
2941
2964
  bind: this.bind,
2942
2965
  required: this.required
2943
2966
  }),
2944
- In({
2967
+ Pn({
2945
2968
  handleDateSelect: t,
2946
2969
  blockPriorDates: this.blockPriorDates || !1
2947
2970
  })
@@ -2949,11 +2972,11 @@ const $n = ({ bind: e, required: t }) => p({
2949
2972
  }
2950
2973
  }
2951
2974
  );
2952
- function Tn(e) {
2975
+ function Mn(e) {
2953
2976
  let t = "";
2954
2977
  return e.length > 0 && (t = e.substring(0, 2), e.length > 2 && (t += ":" + e.substring(2, 4))), t;
2955
2978
  }
2956
- function Mn(e) {
2979
+ function Bn(e) {
2957
2980
  if (e.length < 4)
2958
2981
  return { formattedTime: null, hour: null, minute: null, meridian: null };
2959
2982
  const t = parseInt(e.substring(0, 2), 10), s = parseInt(e.substring(2, 4), 10);
@@ -2967,7 +2990,7 @@ function Mn(e) {
2967
2990
  meridian: a
2968
2991
  };
2969
2992
  }
2970
- function Pn({ bind: e, required: t }) {
2993
+ function zn({ bind: e, required: t }) {
2971
2994
  return p({
2972
2995
  cache: "input",
2973
2996
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
@@ -2975,7 +2998,7 @@ function Pn({ bind: e, required: t }) {
2975
2998
  required: t
2976
2999
  });
2977
3000
  }
2978
- function Bn({ placeholder: e, handleInputChange: t, handleInputFocus: s }) {
3001
+ function On({ placeholder: e, handleInputChange: t, handleInputFocus: s }) {
2979
3002
  return p({
2980
3003
  cache: "timeInput",
2981
3004
  class: "flex-1 bg-transparent outline-none placeholder:text-muted-foreground border-0",
@@ -2985,21 +3008,21 @@ function Bn({ placeholder: e, handleInputChange: t, handleInputFocus: s }) {
2985
3008
  onState: ["selectedTime", (n) => n || ""]
2986
3009
  });
2987
3010
  }
2988
- function zn({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) {
3011
+ function Nn({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) {
2989
3012
  return o(
2990
3013
  {
2991
3014
  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"
2992
3015
  },
2993
3016
  [
2994
- Pn({ bind: e, required: t }),
2995
- Bn({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
3017
+ zn({ bind: e, required: t }),
3018
+ On({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
2996
3019
  v(
2997
3020
  {
2998
3021
  class: "shrink-0 hover:bg-muted/50 rounded p-1 cursor-pointer",
2999
3022
  click: s
3000
3023
  },
3001
3024
  [
3002
- E({ html: h.clock })
3025
+ U({ html: g.clock })
3003
3026
  ]
3004
3027
  )
3005
3028
  ]
@@ -3019,8 +3042,8 @@ function ue({ items: e, handleTimeSelect: t, state: s, stateValue: n, pad: a = !
3019
3042
  })
3020
3043
  );
3021
3044
  }
3022
- function On({ handleTimeSelect: e }) {
3023
- return we(
3045
+ function Fn({ handleTimeSelect: e }) {
3046
+ return ve(
3024
3047
  (t, s, n) => new ae(
3025
3048
  {
3026
3049
  cache: "dropdown",
@@ -3066,7 +3089,7 @@ function On({ handleTimeSelect: e }) {
3066
3089
  )
3067
3090
  );
3068
3091
  }
3069
- function qe(e) {
3092
+ function Ge(e) {
3070
3093
  if (!e)
3071
3094
  return { hour: null, minute: null, meridian: null };
3072
3095
  const t = /^(\d{1,2}):(\d{2})(?::(\d{2}))?\s?(AM|PM)?$/i, s = e.match(t);
@@ -3079,7 +3102,7 @@ function qe(e) {
3079
3102
  meridian: l
3080
3103
  });
3081
3104
  }
3082
- const Bo = N(
3105
+ const Oo = F(
3083
3106
  {
3084
3107
  /**
3085
3108
  * The initial shallow state of the TimePicker.
@@ -3087,7 +3110,7 @@ const Bo = N(
3087
3110
  * @member {object} state
3088
3111
  */
3089
3112
  state() {
3090
- const e = this.selectedTime ?? null, { hour: t, minute: s, meridian: n } = qe(e);
3113
+ const e = this.selectedTime ?? null, { hour: t, minute: s, meridian: n } = Ge(e);
3091
3114
  return {
3092
3115
  selectedTime: e,
3093
3116
  open: !1,
@@ -3103,7 +3126,7 @@ const Bo = N(
3103
3126
  */
3104
3127
  after() {
3105
3128
  if (this.input.value) {
3106
- const { hour: e, minute: t, meridian: s } = qe(this.input.value);
3129
+ const { hour: e, minute: t, meridian: s } = Ge(this.input.value);
3107
3130
  this.state.set({
3108
3131
  hour: e,
3109
3132
  minute: t,
@@ -3127,14 +3150,14 @@ const Bo = N(
3127
3150
  * @param {Event} e
3128
3151
  */
3129
3152
  handleInputChange(e) {
3130
- let t = e.target.value.replace(/[^\d]/g, ""), s = Tn(t);
3131
- const n = Mn(t);
3153
+ let t = e.target.value.replace(/[^\d]/g, ""), s = Mn(t);
3154
+ const n = Bn(t);
3132
3155
  n.formattedTime && (s = n.formattedTime, this.state.set({
3133
3156
  hour: n.hour,
3134
3157
  minute: n.minute,
3135
3158
  meridian: n.meridian,
3136
3159
  selectedTime: n.formattedTime
3137
- }), this.input.value = n.formattedTime, j.trigger("change", this.input), typeof this.change == "function" && this.change(n.formattedTime)), e.target.value = s;
3160
+ }), this.input.value = n.formattedTime, H.trigger("change", this.input), typeof this.change == "function" && this.change(n.formattedTime)), e.target.value = s;
3138
3161
  },
3139
3162
  /**
3140
3163
  * Handles input focus - select all text for easy editing.
@@ -3152,7 +3175,7 @@ const Bo = N(
3152
3175
  handleTimeSelect({ hour: e, minute: t, meridian: s }) {
3153
3176
  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) {
3154
3177
  const n = `${this.state.hour}:${this.state.minute} ${this.state.meridian}`;
3155
- this.state.selectedTime = n, this.state.open = !1, this.input.value = n, j.trigger("change", this.input), typeof this.change == "function" && this.change(n);
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);
3156
3179
  }
3157
3180
  },
3158
3181
  /**
@@ -3164,7 +3187,7 @@ const Bo = N(
3164
3187
  return o(
3165
3188
  { class: "relative w-full max-w-[320px]" },
3166
3189
  [
3167
- zn({
3190
+ Nn({
3168
3191
  toggleOpen: this.toggleOpen.bind(this),
3169
3192
  bind: this.bind,
3170
3193
  required: this.required,
@@ -3172,18 +3195,18 @@ const Bo = N(
3172
3195
  handleInputFocus: this.handleInputFocus.bind(this),
3173
3196
  placeholder: this.placeholder
3174
3197
  }),
3175
- On({
3198
+ Fn({
3176
3199
  handleTimeSelect: this.handleTimeSelect.bind(this)
3177
3200
  })
3178
3201
  ]
3179
3202
  );
3180
3203
  }
3181
3204
  }
3182
- ), Nn = (e, t) => o({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
3205
+ ), Ln = (e, t) => o({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
3183
3206
  x({ size: "lg" }, e)
3184
- ]), Fn = ({ title: e }) => ee({ class: "flex flex-auto items-center" }, [
3207
+ ]), Rn = ({ title: e }) => ee({ class: "flex flex-auto items-center" }, [
3185
3208
  Z({ class: "text-lg font-semibold" }, e)
3186
- ]), zo = i((e, t) => xt(
3209
+ ]), No = i((e, t) => pt(
3187
3210
  {
3188
3211
  class: `fixed pullUpIn z-30 w-[98%] border md:w-full max-w-lg bg-popover text-foreground shadow-lg duration-200
3189
3212
  rounded-lg flex flex-auto flex-col
@@ -3196,21 +3219,21 @@ const Bo = N(
3196
3219
  o({ class: "flex flex-auto p-6 pb-12 md:pb-6" }, [
3197
3220
  // Icon and content
3198
3221
  // @ts-ignore
3199
- e.icon && Nn(e.icon, e.iconColor),
3222
+ e.icon && Ln(e.icon, e.iconColor),
3200
3223
  o({ class: "flex flex-auto flex-col gap-4" }, [
3201
3224
  o({ class: "flex flex-auto flex-col gap-y-2" }, [
3202
- Fn(e),
3225
+ Rn(e),
3203
3226
  // @ts-ignore
3204
3227
  e.description && k({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, e.description),
3205
3228
  o({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, t)
3206
3229
  ]),
3207
3230
  // @ts-ignore
3208
- e.buttons && be({ class: "flex flex-col-reverse sm:flex-row sm:justify-end mt-6 gap-2 sm:gap-0 sm:gap-x-2" }, e.buttons)
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)
3209
3232
  ])
3210
3233
  ])
3211
3234
  ]
3212
- )), Oo = i((e, t = []) => o({ class: "w-full max-w-md p-6 m-auto" }, [
3213
- nt({ class: "flex flex-auto flex-col" }, [
3235
+ )), Fo = i((e, t = []) => o({ class: "w-full max-w-md p-6 m-auto" }, [
3236
+ at({ class: "flex flex-auto flex-col" }, [
3214
3237
  o({ class: "flex flex-auto flex-col gap-y-4" }, [
3215
3238
  o({ class: "flex flex-auto items-center justify-center" }, [
3216
3239
  // @ts-ignore
@@ -3240,28 +3263,28 @@ i(({ value: e, label: t }) => v({
3240
3263
  dataSet: ["performance", ["state", e, "active"]],
3241
3264
  click: (s, { state: n }) => n.performance = e
3242
3265
  }, t));
3243
- const Ln = (e, t) => {
3266
+ const An = (e, t) => {
3244
3267
  const s = e.toggleAllSelectedRows();
3245
3268
  t.state.checked = !s;
3246
- }, An = (e) => Je({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
3247
- V((t) => new qt({ class: "mr-2", onChange: (s, n) => Ln(t, n) }))
3248
- ]), Rn = ({ align: e, sortable: t, key: s, label: n, sort: a, class: l }) => {
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 }) => {
3249
3272
  const r = e || "justify-start";
3250
- return Je({
3273
+ return Xe({
3251
3274
  class: `cursor-pointer py-3 px-4 text-base ${l || ""}`,
3252
3275
  click: t && (() => a(s))
3253
3276
  }, [
3254
3277
  o({ class: `flex flex-auto w-full items-center ${r}` }, [
3255
- u(n),
3256
- t && E({ class: "ml-2", html: h.arrows.upDown })
3278
+ f(n),
3279
+ t && U({ class: "ml-2", html: g.arrows.upDown })
3257
3280
  ])
3258
3281
  ]);
3259
- }, $e = (e) => pt([
3260
- yt({
3282
+ }, De = (e) => yt([
3283
+ wt({
3261
3284
  class: "text-muted-foreground border-b",
3262
3285
  map: [
3263
3286
  e.headers,
3264
- (t) => t.label === "checkbox" ? An({ toggle: e.toggle }) : Rn({
3287
+ (t) => t.label === "checkbox" ? jn({ toggle: e.toggle }) : En({
3265
3288
  align: t.align,
3266
3289
  sortable: t.sortable,
3267
3290
  key: t.key,
@@ -3270,7 +3293,7 @@ const Ln = (e, t) => {
3270
3293
  })
3271
3294
  ]
3272
3295
  })
3273
- ]), jn = ({ key: e, rows: t, selectRow: s, rowItem: n, emptyState: a, skeleton: l, columnCount: r }) => new St({
3296
+ ]), _n = ({ key: e, rows: t, selectRow: s, rowItem: n, emptyState: a, skeleton: l, columnCount: r }) => new $t({
3274
3297
  cache: "list",
3275
3298
  key: e,
3276
3299
  items: t,
@@ -3280,7 +3303,7 @@ const Ln = (e, t) => {
3280
3303
  skeleton: l,
3281
3304
  columnCount: r
3282
3305
  });
3283
- class lt extends S {
3306
+ class rt extends S {
3284
3307
  /**
3285
3308
  * Initializes component data.
3286
3309
  *
@@ -3288,7 +3311,7 @@ class lt extends S {
3288
3311
  */
3289
3312
  setData() {
3290
3313
  let t = this.rows && this.rows.length > 0;
3291
- return (this.loadMoreItems || this.tableData) && !t && (t = null), new O({
3314
+ return (this.loadMoreItems || this.tableData) && !t && (t = null), new N({
3292
3315
  selectedRows: [],
3293
3316
  // @ts-ignore
3294
3317
  hasItems: t,
@@ -3361,12 +3384,12 @@ class lt extends S {
3361
3384
  return o({ class: "w-full flex flex-auto flex-col" }, [
3362
3385
  J("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3363
3386
  o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3364
- ve({ class: "w-full" }, [
3387
+ ke({ class: "w-full" }, [
3365
3388
  // @ts-ignore
3366
- this.headers && $e({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3389
+ this.headers && De({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3367
3390
  // @ts-ignore
3368
3391
  this.customHeader ?? null,
3369
- jn({
3392
+ _n({
3370
3393
  // @ts-ignore
3371
3394
  key: this.key,
3372
3395
  // @ts-ignore
@@ -3445,7 +3468,7 @@ class lt extends S {
3445
3468
  this.data.selectedRows = [];
3446
3469
  }
3447
3470
  }
3448
- const En = (e) => new $t({
3471
+ const Hn = (e) => new Dt({
3449
3472
  cache: "list",
3450
3473
  loadMoreItems: e.loadMoreItems,
3451
3474
  offset: e.offset,
@@ -3459,7 +3482,7 @@ const En = (e) => new $t({
3459
3482
  skeleton: e.skeleton,
3460
3483
  columnCount: e.columnCount
3461
3484
  });
3462
- class Hn extends lt {
3485
+ class Un extends rt {
3463
3486
  /**
3464
3487
  * Renders the DataTable component.
3465
3488
  *
@@ -3470,12 +3493,12 @@ class Hn extends lt {
3470
3493
  return o({ class: "w-full flex flex-auto flex-col" }, [
3471
3494
  J("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3472
3495
  o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3473
- ve({ class: "w-full" }, [
3496
+ ke({ class: "w-full" }, [
3474
3497
  // @ts-ignore
3475
- this.headers && $e({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3498
+ this.headers && De({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3476
3499
  // @ts-ignore
3477
3500
  this.customHeader ?? null,
3478
- En({
3501
+ Hn({
3479
3502
  // @ts-ignore
3480
3503
  loadMoreItems: this.loadMoreItems,
3481
3504
  // @ts-ignore
@@ -3513,7 +3536,7 @@ class Hn extends lt {
3513
3536
  this.list.refresh();
3514
3537
  }
3515
3538
  }
3516
- const No = i((e) => new Hn(
3539
+ const Lo = i((e) => new Un(
3517
3540
  {
3518
3541
  // @ts-ignore
3519
3542
  cache: e.cache ?? "list",
@@ -3546,7 +3569,7 @@ const No = i((e) => new Hn(
3546
3569
  // @ts-ignore
3547
3570
  skeleton: e.skeleton
3548
3571
  }
3549
- )), _n = (e) => new Dt({
3572
+ )), Yn = (e) => new It({
3550
3573
  cache: "list",
3551
3574
  scrollContainer: e.scrollContainer,
3552
3575
  loadMoreItems: e.loadMoreItems,
@@ -3561,7 +3584,7 @@ const No = i((e) => new Hn(
3561
3584
  skeleton: e.skeleton,
3562
3585
  columnCount: e.columnCount
3563
3586
  });
3564
- class Un extends lt {
3587
+ class Wn extends rt {
3565
3588
  /**
3566
3589
  * Renders the DataTable component.
3567
3590
  *
@@ -3572,12 +3595,12 @@ class Un extends lt {
3572
3595
  return o({ class: "w-full flex flex-auto flex-col" }, [
3573
3596
  J("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
3574
3597
  o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
3575
- ve({ class: "w-full" }, [
3598
+ ke({ class: "w-full" }, [
3576
3599
  // @ts-ignore
3577
- this.headers && $e({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3600
+ this.headers && De({ headers: this.headers, sort: (n) => this.sortRows(n) }),
3578
3601
  // @ts-ignore
3579
3602
  this.customHeader ?? null,
3580
- _n({
3603
+ Yn({
3581
3604
  // @ts-ignore
3582
3605
  scrollContainer: this.scrollContainer,
3583
3606
  // @ts-ignore
@@ -3617,7 +3640,7 @@ class Un extends lt {
3617
3640
  this.list.refresh();
3618
3641
  }
3619
3642
  }
3620
- const Fo = i((e) => new Un(
3643
+ const Ro = i((e) => new Wn(
3621
3644
  {
3622
3645
  // @ts-ignore
3623
3646
  cache: e.cache ?? "list",
@@ -3652,28 +3675,28 @@ const Fo = i((e) => new Un(
3652
3675
  // @ts-ignore
3653
3676
  skeleton: e.skeleton
3654
3677
  }
3655
- )), Yn = i(({ name: e, email: t }) => o({ class: "min-w-0 flex-auto" }, [
3678
+ )), Vn = i(({ name: e, email: t }) => o({ class: "min-w-0 flex-auto" }, [
3656
3679
  k({ class: "text-base font-semibold leading-6 m-0" }, e),
3657
3680
  k({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, t)
3658
- ])), Wn = () => o({ class: "flex items-center gap-x-1.5" }, [
3681
+ ])), qn = () => o({ class: "flex items-center gap-x-1.5" }, [
3659
3682
  o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
3660
3683
  o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
3661
3684
  ]),
3662
3685
  k({ class: "text-xs leading-5 text-gray-500" }, "Online")
3663
- ]), Vn = (e) => k({ class: "text-xs leading-5 text-muted-foreground" }, [
3664
- u("Last seen "),
3665
- wt({ datetime: e }, "3h ago")
3666
- ]), qn = (e, t) => e === "online" ? Wn() : Vn(t), Gn = i(({ role: e, lastSeen: t, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
3686
+ ]), 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" }, [
3667
3690
  k({ class: "text-sm leading-6 m-0" }, e),
3668
- qn(s, t)
3669
- ])), Kn = (e) => e.split(" ").map((s) => s[0]).join(""), Qn = i((e) => ye({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
3691
+ 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" }, [
3670
3693
  o({ class: "flex min-w-0 gap-x-4" }, [
3671
3694
  // @ts-ignore
3672
- Os({ src: e.image, alt: e.name, fallbackText: Kn(e.name) }),
3695
+ Fs({ src: e.image, alt: e.name, fallbackText: Jn(e.name) }),
3673
3696
  // @ts-ignore
3674
- Yn({ name: e.name, email: e.email })
3697
+ Vn({ name: e.name, email: e.email })
3675
3698
  ]),
3676
- Gn({
3699
+ Qn({
3677
3700
  // @ts-ignore
3678
3701
  role: e.role,
3679
3702
  // @ts-ignore
@@ -3681,16 +3704,16 @@ const Fo = i((e) => new Un(
3681
3704
  // @ts-ignore
3682
3705
  status: e.status
3683
3706
  })
3684
- ])), Lo = i((e) => new It({
3707
+ ])), Ao = i((e) => new Tt({
3685
3708
  cache: "list",
3686
3709
  key: "name",
3687
3710
  // @ts-ignore
3688
3711
  items: e.users,
3689
3712
  role: "list",
3690
3713
  class: "divide-y divide-border",
3691
- rowItem: Qn
3714
+ rowItem: Xn
3692
3715
  }));
3693
- class Jn extends S {
3716
+ class Zn extends S {
3694
3717
  /**
3695
3718
  * This will declare the props for the compiler.
3696
3719
  *
@@ -3751,14 +3774,14 @@ class Jn extends S {
3751
3774
  });
3752
3775
  }
3753
3776
  }
3754
- const Xn = i(({ options: e, click: t }, s) => ({
3777
+ const ea = i(({ options: e, click: t }, s) => ({
3755
3778
  tag: "li",
3756
3779
  ...{
3757
3780
  class: `relative flex flex-row w-auto text-left p-0 transition-all cursor-pointer min-w-[48px] option${e ? " sub" : ""}`,
3758
3781
  click: t
3759
3782
  },
3760
3783
  children: s
3761
- })), Zn = (e, t = null, s = !1) => [
3784
+ })), ta = (e, t = null, s = !1) => [
3762
3785
  t && o({
3763
3786
  class: "icon w-12 rounded-md flex items-center justify-center min-w-12",
3764
3787
  onState: ["selected", {
@@ -3767,8 +3790,8 @@ const Xn = i(({ options: e, click: t }, s) => ({
3767
3790
  }, [
3768
3791
  x({ size: "sm" }, t)
3769
3792
  ]),
3770
- H({ class: "label flex flex-auto text-sm items-center cursor-pointer whitespace-nowrap" }, e),
3771
- s && u(
3793
+ Y({ class: "label flex flex-auto text-sm items-center cursor-pointer whitespace-nowrap" }, e),
3794
+ s && f(
3772
3795
  {
3773
3796
  class: "flex justify-center items-center px-1 transition-all text-muted-foreground mr-2",
3774
3797
  onState: [
@@ -3781,11 +3804,11 @@ const Xn = i(({ options: e, click: t }, s) => ({
3781
3804
  ]
3782
3805
  },
3783
3806
  [
3784
- x({ size: "xs" }, h.chevron.single.down)
3807
+ x({ size: "xs" }, g.chevron.single.down)
3785
3808
  ]
3786
3809
  )
3787
3810
  ];
3788
- class rt extends S {
3811
+ class it extends S {
3789
3812
  /**
3790
3813
  * This will declare the props for the compiler.
3791
3814
  *
@@ -3802,7 +3825,7 @@ class rt extends S {
3802
3825
  */
3803
3826
  render() {
3804
3827
  const t = !this.options && this.callBack;
3805
- return Xn(
3828
+ return ea(
3806
3829
  { options: this.options, click: t },
3807
3830
  [
3808
3831
  this.addLink()
@@ -3816,8 +3839,8 @@ class rt extends S {
3816
3839
  * @protected
3817
3840
  */
3818
3841
  addLink() {
3819
- const t = this.options && this.options.length > 0, s = this.content || Zn(String(this.label), this.icon, t);
3820
- return this.href ? new kt(
3842
+ const t = this.options && this.options.length > 0, s = this.content || ta(String(this.label), this.icon, t);
3843
+ return this.href ? new Ct(
3821
3844
  {
3822
3845
  class: "flex flex-auto flex-row rounded-md transition-all overflow-x-hidden",
3823
3846
  cache: "link",
@@ -3826,7 +3849,7 @@ class rt extends S {
3826
3849
  exact: this.exact || !1
3827
3850
  },
3828
3851
  s
3829
- ) : new Jn({
3852
+ ) : new Zn({
3830
3853
  class: "flex flex-auto flex-row rounded-md transition-all overflow-x-hidden",
3831
3854
  cache: "link",
3832
3855
  checkCallBack: this.checkCallBack
@@ -3844,10 +3867,10 @@ class rt extends S {
3844
3867
  this.link.update(t);
3845
3868
  }
3846
3869
  }
3847
- const ea = i(({ map: e }, t) => te({ class: "navigation-group flex flex-col gap-2 list-none m-0 py-2 px-0", map: e }, [
3848
- Ge({ class: "text-muted-foreground text-sm py-0 px-4 whitespace-nowrap" }, t)
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)
3849
3872
  ]));
3850
- class ta extends S {
3873
+ class na extends S {
3851
3874
  /**
3852
3875
  * This will declare the props for the compiler.
3853
3876
  *
@@ -3863,7 +3886,7 @@ class ta extends S {
3863
3886
  */
3864
3887
  render() {
3865
3888
  const t = this.mapOptions(this.options), s = this.class || "", n = this.mobileBorder ? "border md:border-0 rounded-md" : "";
3866
- return pe({ class: `navigation flex flex-auto flex-col ${s}` }, [
3889
+ return ye({ class: `navigation flex flex-auto flex-col ${s}` }, [
3867
3890
  te({
3868
3891
  class: `relative group flex flex-col gap-2 py-2 px-2 list-none m-0 ${n}`,
3869
3892
  map: t
@@ -3896,7 +3919,7 @@ class ta extends S {
3896
3919
  */
3897
3920
  addGroup(t) {
3898
3921
  const s = this.mapOptions(t.options);
3899
- return ea({ map: s }, t.group);
3922
+ return sa({ map: s }, t.group);
3900
3923
  }
3901
3924
  /**
3902
3925
  * This will add a link.
@@ -3905,10 +3928,10 @@ class ta extends S {
3905
3928
  * @returns {object}
3906
3929
  */
3907
3930
  addLink(t) {
3908
- return new rt(t);
3931
+ return new it(t);
3909
3932
  }
3910
3933
  }
3911
- class it extends ta {
3934
+ class ct extends na {
3912
3935
  onCreated() {
3913
3936
  this.links = [];
3914
3937
  }
@@ -3919,7 +3942,7 @@ class it extends ta {
3919
3942
  * @returns {object}
3920
3943
  */
3921
3944
  setupSubNav(t) {
3922
- return new aa(
3945
+ return new la(
3923
3946
  {
3924
3947
  parentLink: t,
3925
3948
  options: t.options
@@ -3943,7 +3966,7 @@ class it extends ta {
3943
3966
  * @returns {object}
3944
3967
  */
3945
3968
  addLink(t) {
3946
- const s = new rt(t);
3969
+ const s = new it(t);
3947
3970
  if (this.links.push(s), !s.options)
3948
3971
  return s;
3949
3972
  const n = this.addSubNav(s);
@@ -3954,11 +3977,11 @@ class it extends ta {
3954
3977
  };
3955
3978
  }
3956
3979
  }
3957
- const sa = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), na = (e, t) => {
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) => {
3958
3981
  const s = e.link.panel.pathname;
3959
- return !s && e.isSelected() ? !0 : e.exact ? t === s : sa(s, t);
3982
+ return !s && e.isSelected() ? !0 : e.exact ? t === s : aa(s, t);
3960
3983
  };
3961
- class aa extends it {
3984
+ class la extends ct {
3962
3985
  /**
3963
3986
  * This will declare the props for the compiler.
3964
3987
  *
@@ -3974,7 +3997,7 @@ class aa extends it {
3974
3997
  */
3975
3998
  render() {
3976
3999
  const t = `navigation flex flex-auto flex-col sub ${this.mainClassName || ""}`, s = this.mapOptions(this.options);
3977
- return pe({ class: t, onState: this.onState() }, [
4000
+ return ye({ class: t, onState: this.onState() }, [
3978
4001
  te({ class: "relative group flex flex-col gap-2 py-2 px-0 list-none m-0" }, [...s, ...this.addSubs(), this.addWatcher()])
3979
4002
  ]);
3980
4003
  }
@@ -4040,27 +4063,27 @@ class aa extends it {
4040
4063
  updateLinks(t) {
4041
4064
  let s = !1;
4042
4065
  for (const n of this.links)
4043
- if (n.rendered && (s = na(n, t), s === !0))
4066
+ if (n.rendered && (s = oa(n, t), s === !0))
4044
4067
  break;
4045
4068
  this.parentLink.update(s);
4046
4069
  }
4047
4070
  }
4048
- const oa = (e) => xe({ class: "text-lg ml-2" }, e), la = (e) => o({ class: "sticky flex flex-row items-center bg-popover lg:hidden top-0 z-10 border-0 border-b" }, [
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" }, [
4049
4072
  b({
4050
4073
  variant: "icon",
4051
4074
  class: "m-2",
4052
4075
  click: (t, { state: s }) => s.toggle("open"),
4053
- icon: h.arrows.left
4076
+ icon: g.arrows.left
4054
4077
  }),
4055
- e.title && oa(e.title)
4056
- ]), ra = () => o({
4078
+ e.title && ra(e.title)
4079
+ ]), ca = () => o({
4057
4080
  class: `
4058
4081
  absolute inset-0 bg-black/40 z-[-1] fadeIn
4059
4082
  transition-opacity duration-200
4060
4083
  `,
4061
4084
  click: (e, { state: t }) => t.open = !1
4062
4085
  });
4063
- class ia extends S {
4086
+ class da extends S {
4064
4087
  /**
4065
4088
  * This will declare the props for the compiler.
4066
4089
  *
@@ -4079,7 +4102,7 @@ class ia extends S {
4079
4102
  class: "fixed inset-0 z-50",
4080
4103
  style: "[[typeClass]]"
4081
4104
  }, [
4082
- ra(),
4105
+ ca(),
4083
4106
  // Popover Content
4084
4107
  o({
4085
4108
  class: `
@@ -4088,7 +4111,7 @@ class ia extends S {
4088
4111
  dataSet: ["open", ["expanded", !0, "true"]]
4089
4112
  }, [
4090
4113
  o({ class: "flex flex-auto flex-col w-full h-full overflow-y-auto max-h-[85vh] rounded-md bg-popover border" }, [
4091
- la({ title: this.title }),
4114
+ ia({ title: this.title }),
4092
4115
  o({ class: "flex flex-auto flex-col" }, this.children)
4093
4116
  ])
4094
4117
  ])
@@ -4126,56 +4149,48 @@ class ia extends S {
4126
4149
  this.container = app.root;
4127
4150
  }
4128
4151
  }
4129
- const ct = () => b({ class: "m-2", variant: "ghost", addState() {
4152
+ const dt = () => b({ class: "m-2", variant: "ghost", addState() {
4130
4153
  return {
4131
4154
  open: !1
4132
4155
  };
4133
4156
  }, click: (e, { state: t }) => t.toggle("open") }, [
4134
- x({}, h.bar.three)
4135
- ]), ca = (e) => xe({ class: "text-lg ml-2" }, e), da = (e) => o({ class: "flex flex-auto flex-row items-center lg:hidden" }, [
4136
- ct(),
4137
- e.title && ca(e.title)
4138
- ]), dt = (e, t) => {
4139
- e.forEach((s) => {
4140
- if (s.options) {
4141
- dt(s.options, t);
4142
- return;
4143
- }
4144
- s.callBack = t;
4145
- });
4146
- }, ut = (e) => o({ class: "bg-background flex flex-auto flex-col w-full relative" }, [
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(),
4160
+ 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" }, [
4147
4162
  M(
4148
4163
  "open",
4149
4164
  (t) => t ? [
4150
- new ia({ title: e.title }, [
4151
- V(({ state: s }) => {
4152
- const n = (a) => s.open = !1;
4153
- return dt(e.options, n), new it(
4165
+ 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(
4154
4169
  {
4155
- options: e.options
4170
+ options: a
4156
4171
  }
4157
4172
  );
4158
4173
  })
4159
4174
  ])
4160
4175
  ] : null
4161
4176
  )
4162
- ]), Ao = i((e) => o({ cache: "mobileNav", class: "inline-flex relative lg:hidden" }, [
4177
+ ]), jo = i((e) => o({ cache: "mobileNav", class: "inline-flex relative lg:hidden" }, [
4163
4178
  o([
4164
- ct(),
4165
- ut(e)
4179
+ dt(),
4180
+ ht(e)
4166
4181
  ])
4167
- ])), Ro = i((e) => o({ cache: "mobileNav", class: "flex flex-auto flex-col w-full relative lg:hidden" }, [
4182
+ ])), Eo = i((e) => o({ cache: "mobileNav", class: "flex flex-auto flex-col w-full relative lg:hidden" }, [
4168
4183
  o({ class: "flex flex-auto flex-col w-full" }, [
4169
- da(e),
4170
- ut(e)
4184
+ ha(e),
4185
+ ht(e)
4171
4186
  ])
4172
- ])), jo = i((e) => {
4187
+ ])), _o = i((e) => {
4173
4188
  const t = e.margin || "m-4 ml-0";
4174
4189
  return o({ class: `flex-none ${t}` }, [
4175
4190
  b({ variant: "back", class: "ghost", ...e })
4176
4191
  ]);
4177
4192
  });
4178
- class ua extends S {
4193
+ class fa extends S {
4179
4194
  /**
4180
4195
  * This will declare the props for the compiler.
4181
4196
  *
@@ -4270,13 +4285,13 @@ class ua extends S {
4270
4285
  return this.children;
4271
4286
  }
4272
4287
  }
4273
- Ze.addType("dockableOverlay", (e) => {
4288
+ et.addType("dockableOverlay", (e) => {
4274
4289
  if (!e)
4275
4290
  return;
4276
4291
  const t = e.component;
4277
4292
  t && t.rendered === !0 && t.state.docked === !1 && t.destroy();
4278
4293
  });
4279
- class Eo extends ua {
4294
+ class Ho extends fa {
4280
4295
  /**
4281
4296
  * This will stop presistence.
4282
4297
  *
@@ -4346,7 +4361,7 @@ class Eo extends ua {
4346
4361
  * @returns {void}
4347
4362
  */
4348
4363
  afterSetup() {
4349
- Ze.add(
4364
+ et.add(
4350
4365
  this.container,
4351
4366
  "dockableOverlay",
4352
4367
  {
@@ -4381,7 +4396,7 @@ class Eo extends ua {
4381
4396
  this.state.docked = this.canDock();
4382
4397
  }
4383
4398
  }
4384
- const ha = i(({ index: e, click: t, state: s }, n) => ye({
4399
+ const ga = i(({ index: e, click: t, state: s }, n) => we({
4385
4400
  class: "p-2 cursor-pointer hover:bg-muted/50",
4386
4401
  onState: [
4387
4402
  [s, "selectedIndex", {
@@ -4390,11 +4405,11 @@ const ha = i(({ index: e, click: t, state: s }, n) => ye({
4390
4405
  }]
4391
4406
  ],
4392
4407
  click: () => t(e)
4393
- }, n)), fa = i(({ selectOption: e, state: t }) => te({
4408
+ }, n)), ma = i(({ selectOption: e, state: t }) => te({
4394
4409
  class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
4395
- for: ["filteredOptions", (s, n) => ha({ index: n, click: e, state: t }, s.label)]
4396
- })), ga = i((e) => o({ class: "relative flex flex-auto items-center" }, [
4397
- F({
4410
+ 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({
4398
4413
  cache: "input",
4399
4414
  // @ts-ignore
4400
4415
  class: e.class ?? "",
@@ -4418,7 +4433,7 @@ const ha = i(({ index: e, click: t, state: s }, n) => ye({
4418
4433
  // @ts-ignore
4419
4434
  x({ size: "sm" }, e.icon)
4420
4435
  ])
4421
- ])), ma = (e) => o({
4436
+ ])), xa = (e) => o({
4422
4437
  class: "relative flex fle-auto flex-col",
4423
4438
  onState: ["open", (t, s, n) => {
4424
4439
  if (t)
@@ -4428,10 +4443,10 @@ const ha = i(({ index: e, click: t, state: s }, n) => ye({
4428
4443
  button: n.input,
4429
4444
  size: "xl"
4430
4445
  }, [
4431
- fa(e)
4446
+ ma(e)
4432
4447
  ]);
4433
4448
  }]
4434
- }), Ho = P(
4449
+ }), Uo = B(
4435
4450
  {
4436
4451
  /**
4437
4452
  * This will set up the data object.
@@ -4440,7 +4455,7 @@ const ha = i(({ index: e, click: t, state: s }, n) => ye({
4440
4455
  */
4441
4456
  setData() {
4442
4457
  const e = this.options || [];
4443
- return new O({
4458
+ return new N({
4444
4459
  options: e,
4445
4460
  filteredOptions: e
4446
4461
  });
@@ -4528,7 +4543,7 @@ const ha = i(({ index: e, click: t, state: s }, n) => ye({
4528
4543
  */
4529
4544
  render() {
4530
4545
  return o({ class: "relative w-full max-w-md" }, [
4531
- ga({
4546
+ ba({
4532
4547
  // @ts-ignore
4533
4548
  state: this.state,
4534
4549
  // @ts-ignore
@@ -4540,7 +4555,7 @@ const ha = i(({ index: e, click: t, state: s }, n) => ye({
4540
4555
  // @ts-ignore
4541
4556
  handleKeyDown: this.handleKeyDown.bind(this)
4542
4557
  }),
4543
- ma({
4558
+ xa({
4544
4559
  // @ts-ignore
4545
4560
  state: this.state,
4546
4561
  // @ts-ignore
@@ -4551,8 +4566,8 @@ const ha = i(({ index: e, click: t, state: s }, n) => ye({
4551
4566
  ]);
4552
4567
  }
4553
4568
  }
4554
- ), _o = i((e) => {
4555
- const t = e.icon ?? h.magnifyingGlass.default;
4569
+ ), Yo = i((e) => {
4570
+ const t = e.icon ?? g.magnifyingGlass.default;
4556
4571
  return o({
4557
4572
  // @ts-ignore
4558
4573
  class: `relative flex items-center w-full rounded-xl bg-muted/30 focus-within:ring-2 focus-within:ring-ring transition-all ${e.containerClass || ""}`
@@ -4587,7 +4602,7 @@ const ha = i(({ index: e, click: t, state: s }, n) => ye({
4587
4602
  })
4588
4603
  ]);
4589
4604
  });
4590
- class ba extends S {
4605
+ class pa extends S {
4591
4606
  /**
4592
4607
  * This will declare the props for the compiler.
4593
4608
  *
@@ -4605,7 +4620,7 @@ class ba extends S {
4605
4620
  return o({ class: `${this.class || ""}` }, this.children);
4606
4621
  }
4607
4622
  }
4608
- class xa extends ba {
4623
+ class ya extends pa {
4609
4624
  /**
4610
4625
  * This will be called every time the route
4611
4626
  * is activated.
@@ -4615,15 +4630,15 @@ class xa extends ba {
4615
4630
  update(t) {
4616
4631
  }
4617
4632
  }
4618
- const pa = i((e, t) => (e.class = "basic-page pt-[80px] sm:pt-0 flex flex-auto flex-col " + (e.class || ""), {
4633
+ const wa = i((e, t) => (e.class = "basic-page pt-[80px] sm:pt-0 flex flex-auto flex-col " + (e.class || ""), {
4619
4634
  tag: "section",
4620
4635
  ...e,
4621
4636
  children: t
4622
- })), ya = i(({ title: e, description: t }) => ee({ class: "sm:py-8 px-6 md:px-5 flex flex-col" }, [
4623
- vt({ class: "scroll-m-20 text-3xl font-bold tracking-tight" }, e),
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),
4624
4639
  t && k({ class: "text-base text-muted-foreground py-2 max-w-[700px]" }, t)
4625
4640
  ]));
4626
- class Uo extends xa {
4641
+ class Wo extends ya {
4627
4642
  /**
4628
4643
  * This will declare the props for the compiler.
4629
4644
  *
@@ -4638,141 +4653,141 @@ class Uo extends xa {
4638
4653
  * @returns {object}
4639
4654
  */
4640
4655
  render() {
4641
- return pa([
4642
- ya({
4656
+ return wa([
4657
+ va({
4643
4658
  title: this.title,
4644
4659
  description: this.description
4645
4660
  }),
4646
- Tt(this.children)
4661
+ Pt(this.children)
4647
4662
  ]);
4648
4663
  }
4649
4664
  }
4650
4665
  export {
4651
- go as $,
4652
- co as A,
4653
- jo as B,
4654
- ln as C,
4655
- lt as D,
4656
- bo as E,
4657
- zo as F,
4658
- Eo as G,
4659
- Do as H,
4660
- No as I,
4661
- _a as J,
4662
- Oo as K,
4663
- Oa as L,
4664
- to as M,
4665
- Fa as N,
4666
+ bo as $,
4667
+ ho as A,
4668
+ _o as B,
4669
+ cn as C,
4670
+ rt as D,
4671
+ po as E,
4672
+ No as F,
4673
+ Ho as G,
4674
+ To as H,
4675
+ Lo as I,
4676
+ Ya as J,
4677
+ Fo as K,
4678
+ Fa as L,
4679
+ no as M,
4680
+ Ra as N,
4666
4681
  ne as O,
4667
- Aa as P,
4668
- La as Q,
4669
- Ea as R,
4670
- Na as S,
4671
- ja as T,
4672
- Ra as U,
4673
- nt as V,
4674
- uo as W,
4675
- fo as X,
4676
- ho as Y,
4677
- ws as Z,
4678
- xs as _,
4679
- Os as a,
4680
- Qn as a$,
4681
- Ht as a0,
4682
- ms as a1,
4683
- bs as a2,
4684
- ps as a3,
4685
- R as a4,
4686
- Uo as a5,
4687
- Rn as a6,
4688
- Za as a7,
4689
- he as a8,
4690
- rs as a9,
4691
- la as aA,
4692
- oo as aB,
4693
- Ya as aC,
4694
- Sn as aD,
4695
- so as aE,
4696
- lo as aF,
4697
- ro as aG,
4698
- Fo as aH,
4699
- Ho as aI,
4700
- ga as aJ,
4701
- no as aK,
4702
- _o as aL,
4703
- xo as aM,
4704
- aa as aN,
4705
- $e as aO,
4706
- Ha as aP,
4707
- Ua as aQ,
4708
- vo as aR,
4709
- Va as aS,
4710
- Bo as aT,
4711
- da as aU,
4712
- ko as aV,
4713
- Ma as aW,
4714
- io as aX,
4682
+ ja as P,
4683
+ Aa as Q,
4684
+ Ha as R,
4685
+ La as S,
4686
+ _a as T,
4687
+ Ea as U,
4688
+ at as V,
4689
+ fo as W,
4690
+ mo as X,
4691
+ go as Y,
4692
+ ks as Z,
4693
+ ys as _,
4694
+ Fs as a,
4695
+ Xn as a$,
4696
+ Ut as a0,
4697
+ xs as a1,
4698
+ ps as a2,
4699
+ ws as a3,
4700
+ _ as a4,
4701
+ Wo as a5,
4702
+ En as a6,
4703
+ to as a7,
4704
+ fe as a8,
4705
+ cs as a9,
4706
+ ia as aA,
4707
+ ro as aB,
4708
+ Va as aC,
4709
+ Dn as aD,
4710
+ ao as aE,
4711
+ io as aF,
4712
+ co as aG,
4713
+ Ro as aH,
4714
+ Uo as aI,
4715
+ ba as aJ,
4716
+ oo as aK,
4717
+ Yo as aL,
4718
+ yo as aM,
4719
+ la as aN,
4720
+ De as aO,
4721
+ Ua as aP,
4722
+ Wa as aQ,
4723
+ Co as aR,
4724
+ Ga as aS,
4725
+ Oo as aT,
4726
+ ha as aU,
4727
+ So as aV,
4728
+ Ba as aW,
4729
+ uo as aX,
4715
4730
  x as aY,
4716
- Xa as aZ,
4717
- Lo as a_,
4718
- Co as aa,
4719
- it as ab,
4720
- F as ac,
4721
- Et as ad,
4722
- za as ae,
4723
- So as af,
4724
- rt as ag,
4725
- pa as ah,
4726
- Pe as ai,
4727
- Ys as aj,
4728
- Ao as ak,
4729
- Ro as al,
4730
- an as am,
4731
- Ga as an,
4732
- ct as ao,
4733
- Jn as ap,
4734
- ta as aq,
4735
- ea as ar,
4736
- ia as as,
4737
- wo as at,
4738
- Qa as au,
4739
- ua as av,
4740
- ba as aw,
4741
- Ja as ax,
4742
- Ws as ay,
4731
+ eo as aZ,
4732
+ Ao as a_,
4733
+ $o as aa,
4734
+ ct as ab,
4735
+ L as ac,
4736
+ Ht as ad,
4737
+ Na as ae,
4738
+ Do as af,
4739
+ it as ag,
4740
+ wa as ah,
4741
+ Be as ai,
4742
+ Vs as aj,
4743
+ jo as ak,
4744
+ Eo as al,
4745
+ ln as am,
4746
+ Qa as an,
4747
+ dt as ao,
4748
+ Zn as ap,
4749
+ na as aq,
4750
+ sa as ar,
4751
+ da as as,
4752
+ ko as at,
4753
+ Xa as au,
4754
+ fa as av,
4755
+ pa as aw,
4756
+ Za as ax,
4757
+ qs as ay,
4743
4758
  ae as az,
4744
- ra as b,
4745
- et as b0,
4746
- N as b1,
4747
- Ka as b2,
4748
- Gs as b3,
4749
- gs as b4,
4750
- Ia as b5,
4751
- Da as b6,
4752
- z as b7,
4753
- yo as b8,
4754
- Ta as c,
4755
- xa as d,
4756
- $o as e,
4759
+ ca as b,
4760
+ tt as b0,
4761
+ F as b1,
4762
+ Ja as b2,
4763
+ Qs as b3,
4764
+ bs as b4,
4765
+ Pa as b5,
4766
+ Ta as b6,
4767
+ O as b7,
4768
+ vo as b8,
4769
+ Ma as c,
4770
+ ya as d,
4771
+ Io as e,
4757
4772
  b as f,
4758
- en as g,
4759
- jt as h,
4760
- qt as i,
4761
- An as j,
4762
- Ba as k,
4763
- ao as l,
4764
- Pa as m,
4765
- eo as n,
4766
- po as o,
4767
- Io as p,
4768
- Vs as q,
4769
- To as r,
4770
- jn as s,
4771
- Wa as t,
4772
- Mo as u,
4773
- Po as v,
4774
- qa as w,
4773
+ sn as g,
4774
+ _t as h,
4775
+ Kt as i,
4776
+ jn as j,
4777
+ Oa as k,
4778
+ lo as l,
4779
+ za as m,
4780
+ so as n,
4781
+ wo as o,
4782
+ Po as p,
4783
+ Gs as q,
4784
+ Mo as r,
4785
+ _n as s,
4786
+ qa as t,
4787
+ Bo as u,
4788
+ zo as v,
4789
+ Ka as w,
4775
4790
  ce as x,
4776
- sn as y,
4777
- mo as z
4791
+ an as y,
4792
+ xo as z
4778
4793
  };