@base-framework/ui 1.2.24 → 1.2.25
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.
- package/dist/atoms.es.js +1 -1
- package/dist/{confirmation-D_x8yrDO.js → confirmation-C1IsBqtI.js} +1 -1
- package/dist/{full-page-Bpc7f0Jt.js → full-page-C2UTDwxp.js} +532 -540
- package/dist/index.es.js +5 -5
- package/dist/molecules.es.js +2 -2
- package/dist/organisms.es.js +3 -3
- package/dist/pages.es.js +2 -2
- package/dist/{sidebar-menu-Cz6lSUfb.js → sidebar-menu-CnM3ypX1.js} +1 -1
- package/dist/{sidebar-menu-page-CLM-ilyW.js → sidebar-menu-page-DIHRDp0N.js} +2 -2
- package/dist/{signature-panel-1e4qD4XV.js → signature-panel-D8_WuYSM.js} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as
|
|
2
|
-
import { Atom as r, Jot as M, Component as C, Html as xt, Data as z, Events as
|
|
1
|
+
import { I as Y, Span as g, Button as w, OnState as T, Div as o, Legend as rt, Fieldset as it, H4 as Ye, P as k, Label as V, Checkbox as ue, Input as p, Textarea as ct, UseParent as W, Img as he, H5 as dt, H2 as J, Form as ut, Header as Z, Footer as fe, A as Ve, H3 as ge, Nav as me, Ul as X, Li as be, OnStateOpen as xe, On as Q, Dialog as ht, Th as We, Thead as ft, Tr as gt, Table as pe, Time as mt, H1 as bt } from "@base-framework/atoms";
|
|
2
|
+
import { Atom as r, Jot as M, Component as C, Html as xt, Data as z, Events as L, DateTime as ee, NavLink as pt, router as Ce, DataTracker as _e } from "@base-framework/base";
|
|
3
3
|
import { Icons as u } from "./icons.es.js";
|
|
4
4
|
import { Timer as yt, TableBody as wt, DataTableBody as vt, ScrollableTableBody as kt, List as Ct } from "@base-framework/organisms";
|
|
5
5
|
import { F as U } from "./format-DE4rFWuD.js";
|
|
@@ -14,13 +14,13 @@ const $t = {
|
|
|
14
14
|
"3xl": "w-16 h-16"
|
|
15
15
|
}, ce = r((e, t) => {
|
|
16
16
|
const s = $t[e.size || "sm"];
|
|
17
|
-
return
|
|
17
|
+
return Y({
|
|
18
18
|
...e,
|
|
19
19
|
// @ts-ignore
|
|
20
20
|
class: `stroke-current icon-size ${s} ${e.class || ""}`,
|
|
21
21
|
html: t[0]?.textContent
|
|
22
22
|
});
|
|
23
|
-
}),
|
|
23
|
+
}), Se = {
|
|
24
24
|
xs: "w-4 h-4",
|
|
25
25
|
// 16px - matches Icon
|
|
26
26
|
sm: "w-6 h-6",
|
|
@@ -35,7 +35,7 @@ const $t = {
|
|
|
35
35
|
// 56px - matches Icon
|
|
36
36
|
"3xl": "w-16 h-16"
|
|
37
37
|
// 64px - matches Icon
|
|
38
|
-
},
|
|
38
|
+
}, $e = {
|
|
39
39
|
xs: "16px",
|
|
40
40
|
sm: "24px",
|
|
41
41
|
md: "32px",
|
|
@@ -43,13 +43,13 @@ const $t = {
|
|
|
43
43
|
xl: "48px",
|
|
44
44
|
"2xl": "56px",
|
|
45
45
|
"3xl": "64px"
|
|
46
|
-
},
|
|
46
|
+
}, De = {
|
|
47
47
|
outlined: "material-symbols-outlined",
|
|
48
48
|
filled: "material-symbols-filled",
|
|
49
49
|
rounded: "material-symbols-rounded",
|
|
50
50
|
sharp: "material-symbols-sharp"
|
|
51
|
-
},
|
|
52
|
-
const t = e.size || "sm", s = e.variant || "outlined", n =
|
|
51
|
+
}, Ie = r((e) => {
|
|
52
|
+
const t = e.size || "sm", s = e.variant || "outlined", n = Se[t] || Se.sm, a = $e[t] || $e.sm, l = De[s] || De.outlined;
|
|
53
53
|
return g({
|
|
54
54
|
...e,
|
|
55
55
|
// @ts-ignore
|
|
@@ -62,14 +62,14 @@ const $t = {
|
|
|
62
62
|
name: void 0
|
|
63
63
|
// @ts-ignore
|
|
64
64
|
}, e.name);
|
|
65
|
-
}), x = (e = {}, t) => t ? typeof t == "string" && t.includes("<svg") ? ce(e, t) : typeof t == "object" && t.name ?
|
|
65
|
+
}), x = (e = {}, t) => t ? typeof t == "string" && t.includes("<svg") ? ce(e, t) : typeof t == "object" && t.name ? Ie({
|
|
66
66
|
...e,
|
|
67
67
|
name: t.name,
|
|
68
68
|
variant: t.variant || e.variant || "outlined"
|
|
69
|
-
}) : typeof t == "string" ?
|
|
69
|
+
}) : typeof t == "string" ? Ie({
|
|
70
70
|
...e,
|
|
71
71
|
name: t
|
|
72
|
-
}) : ce(e, t) : null,
|
|
72
|
+
}) : ce(e, t) : null, fa = (e) => e ? !!(typeof e == "object" && e.name || typeof e == "string" && !e.includes("<svg")) : !1, ga = (e) => typeof e == "string" && e.includes("<svg"), Te = {
|
|
73
73
|
gray: {
|
|
74
74
|
backgroundColor: "bg-gray-50",
|
|
75
75
|
textColor: "text-gray-600",
|
|
@@ -150,17 +150,17 @@ const $t = {
|
|
|
150
150
|
textColor: "text-foreground",
|
|
151
151
|
ringColor: "ring-white/10"
|
|
152
152
|
}
|
|
153
|
-
}, Dt = (e) =>
|
|
153
|
+
}, Dt = (e) => Te[e] || Te.gray, It = (e, t = {}) => {
|
|
154
154
|
const s = Dt(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
|
-
},
|
|
156
|
+
}, ma = r((e, t) => {
|
|
157
157
|
const { type: s, icon: n, size: a = "xs", backgroundColor: l, textColor: i, ringColor: c, ...h } = e, m = It(s, { backgroundColor: l, textColor: i, ringColor: c });
|
|
158
158
|
return g({ ...h, class: m }, [
|
|
159
159
|
n ? x({ size: a, class: "mr-1" }, n) : null,
|
|
160
160
|
...t || []
|
|
161
161
|
]);
|
|
162
162
|
});
|
|
163
|
-
class
|
|
163
|
+
class qe extends C {
|
|
164
164
|
/**
|
|
165
165
|
* This will set the component context.
|
|
166
166
|
*
|
|
@@ -176,9 +176,9 @@ class _e extends C {
|
|
|
176
176
|
}
|
|
177
177
|
const O = (e) => (
|
|
178
178
|
/** @type {VeilComponentConstructor} */
|
|
179
|
-
M(e,
|
|
179
|
+
M(e, qe)
|
|
180
180
|
);
|
|
181
|
-
class
|
|
181
|
+
class ba extends qe {
|
|
182
182
|
/**
|
|
183
183
|
* Declare public props and their defaults.
|
|
184
184
|
*/
|
|
@@ -229,7 +229,7 @@ class ma extends _e {
|
|
|
229
229
|
]);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
const
|
|
232
|
+
const ne = {
|
|
233
233
|
xs: "w-6 h-6",
|
|
234
234
|
sm: "w-8 h-8",
|
|
235
235
|
md: "w-10 h-10",
|
|
@@ -237,7 +237,7 @@ const ae = {
|
|
|
237
237
|
xl: "w-14 h-14",
|
|
238
238
|
"2xl": "w-16 h-16"
|
|
239
239
|
};
|
|
240
|
-
class
|
|
240
|
+
class xa extends C {
|
|
241
241
|
/**
|
|
242
242
|
* Declare public props.
|
|
243
243
|
*/
|
|
@@ -268,7 +268,7 @@ class ba extends C {
|
|
|
268
268
|
* @returns {object}
|
|
269
269
|
*/
|
|
270
270
|
render() {
|
|
271
|
-
const t = this.icon, s = this.activeIcon || this.icon, n =
|
|
271
|
+
const t = this.icon, s = this.activeIcon || this.icon, n = ne[this.size] || ne.md, a = ["xs", "sm"].includes(this.size) ? "xs" : "sm", l = this.class ?? "bg-background/40 backdrop-blur-sm", i = "text-foreground", c = this.activeClass || i, h = this.circle ?? !1;
|
|
272
272
|
return w({
|
|
273
273
|
click: () => this.handleToggle(),
|
|
274
274
|
// @ts-ignore
|
|
@@ -283,8 +283,8 @@ class ba extends C {
|
|
|
283
283
|
]);
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
|
-
const
|
|
287
|
-
const s = e.size || "md", n =
|
|
286
|
+
const pa = r((e, t) => {
|
|
287
|
+
const s = e.size || "md", n = ne[s] || ne.md, a = ["xs", "sm"].includes(s) ? "xs" : "sm";
|
|
288
288
|
return w({
|
|
289
289
|
...e,
|
|
290
290
|
// @ts-ignore
|
|
@@ -295,42 +295,34 @@ const xa = r((e, t) => {
|
|
|
295
295
|
...t || []
|
|
296
296
|
]);
|
|
297
297
|
});
|
|
298
|
-
let
|
|
299
|
-
const
|
|
298
|
+
let ae = 0;
|
|
299
|
+
const de = /* @__PURE__ */ new Map(), Tt = () => {
|
|
300
300
|
const e = globalThis.location?.hash || "";
|
|
301
|
-
return (e ? e.replace(/^#\/?/, "") : globalThis.location?.pathname || "/").replace(/^\/+/, "");
|
|
302
|
-
};
|
|
301
|
+
return (e ? e.replace(/^#\/?/, "") : globalThis.location?.pathname || "/").replace(/^\/+/, "").replace(/\/+$/, "");
|
|
302
|
+
}, Mt = (e, t) => t ? e === t || e.startsWith(t + "/") : !1;
|
|
303
303
|
if (typeof globalThis.history?.pushState == "function") {
|
|
304
304
|
const e = globalThis.history.pushState;
|
|
305
305
|
globalThis.history.pushState = function(...t) {
|
|
306
|
-
|
|
307
|
-
const s = String(t[2] || "").replace(/^[#/]+/, "");
|
|
308
|
-
for (const [n, a] of Y)
|
|
309
|
-
a.basePath && s !== a.basePath && !s.startsWith(a.basePath + "/") && Y.delete(n);
|
|
310
|
-
return e.apply(this, t);
|
|
306
|
+
return ae++, e.apply(this, t);
|
|
311
307
|
};
|
|
312
308
|
}
|
|
313
309
|
const Ge = (e) => {
|
|
314
|
-
const t = e || "";
|
|
315
|
-
if (
|
|
316
|
-
return
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
const s = {
|
|
321
|
-
historyLength: globalThis.history.length,
|
|
322
|
-
pushCount: qe,
|
|
323
|
-
basePath: Tt()
|
|
310
|
+
const t = e || "", s = Tt(), n = de.get(t);
|
|
311
|
+
if (n && Mt(s, n.basePath))
|
|
312
|
+
return n;
|
|
313
|
+
const a = {
|
|
314
|
+
pushCount: ae,
|
|
315
|
+
basePath: s
|
|
324
316
|
};
|
|
325
|
-
return
|
|
317
|
+
return de.set(t, a), a;
|
|
326
318
|
}, Ke = (e) => {
|
|
327
|
-
|
|
319
|
+
de.delete(e || "");
|
|
328
320
|
}, F = (e) => r((t, s) => w({
|
|
329
321
|
...e,
|
|
330
322
|
...t,
|
|
331
323
|
// @ts-ignore
|
|
332
324
|
class: `bttn ${e.class} ${t.class || ""}`
|
|
333
|
-
}, s)),
|
|
325
|
+
}, s)), ye = r(
|
|
334
326
|
(e, t) => w({
|
|
335
327
|
...e,
|
|
336
328
|
// @ts-ignore
|
|
@@ -342,40 +334,40 @@ const Ge = (e) => {
|
|
|
342
334
|
// @ts-ignore
|
|
343
335
|
e.icon && e.position === "right" ? x({ size: e.size || "sm", class: e.animation ?? null }, e.icon) : null
|
|
344
336
|
])
|
|
345
|
-
),
|
|
337
|
+
), Me = (e) => r((t, s) => ye({
|
|
346
338
|
...e,
|
|
347
339
|
...t,
|
|
348
340
|
// @ts-ignore
|
|
349
341
|
class: `bttn ${e.class} ${t.class || ""}`
|
|
350
|
-
}, s)),
|
|
342
|
+
}, s)), Bt = (e) => {
|
|
351
343
|
const t = Ge(e.backUrl);
|
|
352
344
|
return () => {
|
|
353
345
|
Ke(e.backUrl);
|
|
354
|
-
const n =
|
|
346
|
+
const n = ae - t.pushCount + 1;
|
|
355
347
|
if (e.allowHistory === !0 && t.pushCount > 0) {
|
|
356
348
|
globalThis.history.go(-n);
|
|
357
349
|
return;
|
|
358
350
|
}
|
|
359
351
|
e.backUrl && app.navigate(e.backUrl);
|
|
360
352
|
};
|
|
361
|
-
}, Pt = (e) => r((t, s) => (t.icon = t.icon || u.arrows.left, t.click = t.click ||
|
|
353
|
+
}, Pt = (e) => r((t, s) => (t.icon = t.icon || u.arrows.left, t.click = t.click || Bt(t), ye({
|
|
362
354
|
...e,
|
|
363
355
|
...t
|
|
364
|
-
}, s))),
|
|
356
|
+
}, s))), zt = (e) => {
|
|
365
357
|
const t = Ge(e.backUrl);
|
|
366
358
|
return () => {
|
|
367
359
|
Ke(e.backUrl);
|
|
368
|
-
const n =
|
|
360
|
+
const n = ae - t.pushCount + 1;
|
|
369
361
|
if (t.pushCount > 0) {
|
|
370
362
|
globalThis.history.go(-n);
|
|
371
363
|
return;
|
|
372
364
|
}
|
|
373
365
|
e.backUrl && app.navigate(e.backUrl);
|
|
374
366
|
};
|
|
375
|
-
},
|
|
367
|
+
}, Ot = (e) => r((t, s) => (t.icon = t.icon || u.arrows.left, t.click = t.click || zt(t), ye({
|
|
376
368
|
...e,
|
|
377
369
|
...t
|
|
378
|
-
}, s))),
|
|
370
|
+
}, s))), Nt = r((e, t) => {
|
|
379
371
|
const s = e.size || "md", n = {
|
|
380
372
|
xs: "w-6 h-6",
|
|
381
373
|
sm: "w-8 h-8",
|
|
@@ -392,7 +384,7 @@ const Ge = (e) => {
|
|
|
392
384
|
e.icon ? x({ size: s === "xs" ? "xs" : "sm" }, e.icon) : null,
|
|
393
385
|
...t || []
|
|
394
386
|
]);
|
|
395
|
-
}),
|
|
387
|
+
}), Be = {
|
|
396
388
|
primary: F({ class: "primary" }),
|
|
397
389
|
secondary: F({ class: "secondary" }),
|
|
398
390
|
destructive: F({ class: "destructive" }),
|
|
@@ -400,23 +392,23 @@ const Ge = (e) => {
|
|
|
400
392
|
outline: F({ class: "outline" }),
|
|
401
393
|
ghost: F({ class: "ghost" }),
|
|
402
394
|
link: F({ class: "link" }),
|
|
403
|
-
icon:
|
|
404
|
-
withIcon:
|
|
395
|
+
icon: Me({ class: "icon" }),
|
|
396
|
+
withIcon: Me({ class: "with-icon" }),
|
|
405
397
|
back: Pt({ class: "with-icon back-button" }),
|
|
406
|
-
smartBack:
|
|
407
|
-
circleIcon:
|
|
408
|
-
}, b = r((e, t) => (
|
|
398
|
+
smartBack: Ot({ class: "with-icon back-button" }),
|
|
399
|
+
circleIcon: Nt
|
|
400
|
+
}, b = r((e, t) => (Be[e.variant] || Be.primary)(e, t)), ya = r((e, t) => b({ ...e, variant: "withIcon", icon: u.loading, animation: "animate-spin" }, t)), Rt = r((e, t) => {
|
|
409
401
|
const s = e.margin ?? "my-5 mx-5", n = e.padding ?? "p-4", a = e.border ?? "border-border";
|
|
410
402
|
return e.hover && (e.class += " hover:shadow-lg hover:bg-muted/50"), o({
|
|
411
403
|
...e,
|
|
412
404
|
// @ts-ignore
|
|
413
405
|
class: `rounded-lg ${a} bg-card text-card-foreground shadow-md min-w-[120px] min-h-[80px] ${s} ${n} ${e.class || ""}`
|
|
414
406
|
}, t);
|
|
415
|
-
}),
|
|
407
|
+
}), Ft = r((e, t) => rt({
|
|
416
408
|
...e,
|
|
417
409
|
// @ts-ignore
|
|
418
410
|
class: ` font-medium -mt-4 -mx-1 px-2 py-2 ${e.class || ""}`
|
|
419
|
-
}, t)),
|
|
411
|
+
}, t)), wa = r((e, t) => {
|
|
420
412
|
const s = e.border === "full" ? "border rounded-md" : "border-t";
|
|
421
413
|
return it({
|
|
422
414
|
...e,
|
|
@@ -424,10 +416,10 @@ const Ge = (e) => {
|
|
|
424
416
|
class: `p-6 ${s} ${e.class || ""}`
|
|
425
417
|
}, [
|
|
426
418
|
// @ts-ignore
|
|
427
|
-
e.legend &&
|
|
419
|
+
e.legend && Ft(e.legend),
|
|
428
420
|
o({ class: "flex flex-auto flex-col gap-y-6" }, t)
|
|
429
421
|
]);
|
|
430
|
-
}),
|
|
422
|
+
}), jt = r((e, t) => {
|
|
431
423
|
const s = e.border === !0 ? "border-t" : "";
|
|
432
424
|
return o({
|
|
433
425
|
...e,
|
|
@@ -442,14 +434,14 @@ const Ge = (e) => {
|
|
|
442
434
|
class: `flex flex-auto flex-col gap-y-1 ${e.labelProps?.class || ""}`
|
|
443
435
|
}, [
|
|
444
436
|
// @ts-ignore
|
|
445
|
-
|
|
437
|
+
Ye({ class: "text-base" }, e.label),
|
|
446
438
|
// @ts-ignore
|
|
447
439
|
e.description && k({ class: "text-sm text-muted-foreground" }, e.description)
|
|
448
440
|
]),
|
|
449
441
|
// Controls container: grows to fill remaining space, spacing between items
|
|
450
442
|
o({ class: "flex flex-col gap-y-4" }, t)
|
|
451
443
|
]);
|
|
452
|
-
}), Lt = "flex h-10 w-full px-3 py-2 text-sm",
|
|
444
|
+
}), Lt = "flex h-10 w-full px-3 py-2 text-sm", B = "rounded-md border border-border bg-input", I = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background", D = "disabled:cursor-not-allowed disabled:opacity-50 [&:user-invalid]:border-destructive", H = "placeholder:text-muted-foreground", we = `${Lt} ${B} ${I} ${H} ${D}`, Ht = ({ id: e, checked: t, bind: s, required: n }) => ue({
|
|
453
445
|
id: e,
|
|
454
446
|
cache: "checkbox",
|
|
455
447
|
class: "absolute opacity-0 w-full h-full cursor-pointer pointer-events-none",
|
|
@@ -462,12 +454,12 @@ const Ge = (e) => {
|
|
|
462
454
|
}), At = () => g({ class: "absolute text-xs pointer-events-none" }, [
|
|
463
455
|
T(
|
|
464
456
|
"checked",
|
|
465
|
-
(e) => e ?
|
|
457
|
+
(e) => e ? Y({
|
|
466
458
|
class: "w-2 h-2 pointer-events-none",
|
|
467
459
|
html: u.check
|
|
468
460
|
}) : null
|
|
469
461
|
)
|
|
470
|
-
]),
|
|
462
|
+
]), Et = ({ id: e, bind: t, checked: s, required: n, clickHandler: a }) => o({
|
|
471
463
|
class: `relative flex items-center justify-center w-5 h-5 transition-colors duration-200 hover:border-accent-foreground
|
|
472
464
|
rounded-md border
|
|
473
465
|
${I}
|
|
@@ -487,13 +479,13 @@ const Ge = (e) => {
|
|
|
487
479
|
tabIndex: 0,
|
|
488
480
|
click: a
|
|
489
481
|
}, [
|
|
490
|
-
|
|
482
|
+
Ht({ bind: t, checked: s, id: e, required: n }),
|
|
491
483
|
At()
|
|
492
|
-
]),
|
|
484
|
+
]), Ut = ({ id: e, label: t, clickHandler: s }) => V({
|
|
493
485
|
class: "text-base cursor-pointer",
|
|
494
486
|
htmlFor: e,
|
|
495
487
|
click: s
|
|
496
|
-
}, t),
|
|
488
|
+
}, t), Yt = M(
|
|
497
489
|
{
|
|
498
490
|
/**
|
|
499
491
|
* This will initialize the state of the checkbox.
|
|
@@ -532,7 +524,7 @@ const Ge = (e) => {
|
|
|
532
524
|
render() {
|
|
533
525
|
const e = this.getId(), t = (s) => this.clickHandler(s);
|
|
534
526
|
return o({ class: `flex items-center gap-x-2 cursor-pointer ${this.class || ""}` }, [
|
|
535
|
-
|
|
527
|
+
Et({
|
|
536
528
|
id: e,
|
|
537
529
|
// @ts-ignore
|
|
538
530
|
bind: this.bind,
|
|
@@ -544,22 +536,22 @@ const Ge = (e) => {
|
|
|
544
536
|
clickHandler: t
|
|
545
537
|
}),
|
|
546
538
|
// @ts-ignore
|
|
547
|
-
this.label &&
|
|
539
|
+
this.label && Ut({ id: e, label: this.label, clickHandler: t })
|
|
548
540
|
]);
|
|
549
541
|
}
|
|
550
542
|
}
|
|
551
|
-
),
|
|
543
|
+
), Vt = (e) => {
|
|
552
544
|
if (!e || e.length === 0) return "";
|
|
553
545
|
const s = e.replace(/\D/g, "").match(/^(\d{0,3})(\d{0,3})(\d{0,4})$/);
|
|
554
546
|
return s ? s[2] ? `(${s[1]}) ${s[2]}${s[3] ? "-" + s[3] : ""}` : s[1] || "" : e;
|
|
555
|
-
},
|
|
556
|
-
const t = e.target, s =
|
|
547
|
+
}, Wt = (e) => {
|
|
548
|
+
const t = e.target, s = Vt(t.value);
|
|
557
549
|
s && (t.value = s);
|
|
558
550
|
}, N = r((e) => p({
|
|
559
551
|
...e,
|
|
560
552
|
// @ts-ignore
|
|
561
|
-
class: `${
|
|
562
|
-
})),
|
|
553
|
+
class: `${we} ${e.class || ""}`.trim()
|
|
554
|
+
})), va = r((e) => N({
|
|
563
555
|
...e,
|
|
564
556
|
type: "tel",
|
|
565
557
|
// @ts-ignore
|
|
@@ -569,8 +561,8 @@ const Ge = (e) => {
|
|
|
569
561
|
placeholder: "(555) 555-5555",
|
|
570
562
|
// @ts-ignore
|
|
571
563
|
pattern: e.pattern || "\\(\\d{3}\\) \\d{3}-\\d{4}",
|
|
572
|
-
keyup:
|
|
573
|
-
})),
|
|
564
|
+
keyup: Wt
|
|
565
|
+
})), ka = r((e) => N({
|
|
574
566
|
...e,
|
|
575
567
|
type: "email",
|
|
576
568
|
// @ts-ignore
|
|
@@ -578,44 +570,44 @@ const Ge = (e) => {
|
|
|
578
570
|
// @ts-ignore
|
|
579
571
|
label: e.label || "Email",
|
|
580
572
|
placeholder: "Email address"
|
|
581
|
-
})),
|
|
573
|
+
})), Ca = r((e) => ct({
|
|
582
574
|
...e,
|
|
583
575
|
as: "textarea",
|
|
584
576
|
// @ts-ignore
|
|
585
|
-
class: `flex w-full h-24 px-3 py-2 text-sm ${
|
|
586
|
-
})),
|
|
577
|
+
class: `flex w-full h-24 px-3 py-2 text-sm ${B} ${I} ${H} ${D} ${e.class || ""}`.trim()
|
|
578
|
+
})), Sa = (e = {}) => o({ class: "flex items-center gap-x-2" }, [
|
|
587
579
|
p({
|
|
588
580
|
...e,
|
|
589
581
|
type: "radio",
|
|
590
582
|
class: "cursor-pointer appearance-none h-4 w-4 border rounded-full checked:border-primary checked:bg-primary focus:ring focus:ring-primary".trim()
|
|
591
583
|
}),
|
|
592
|
-
e.label &&
|
|
593
|
-
]),
|
|
584
|
+
e.label && V({ forHTML: e.value, class: "cursor-pointer" }, e.label)
|
|
585
|
+
]), $a = r((e) => p({
|
|
594
586
|
...e,
|
|
595
587
|
type: "date",
|
|
596
588
|
// @ts-ignore
|
|
597
|
-
class: `${
|
|
598
|
-
})),
|
|
589
|
+
class: `${B} ${I} ${H} ${D} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
|
|
590
|
+
})), Da = r((e) => p({
|
|
599
591
|
...e,
|
|
600
592
|
type: "time",
|
|
601
593
|
// @ts-ignore
|
|
602
|
-
class: `${
|
|
603
|
-
})),
|
|
594
|
+
class: `${B} ${I} ${H} ${D} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
|
|
595
|
+
})), Ia = r((e) => p({
|
|
604
596
|
...e,
|
|
605
597
|
type: "datetime-local",
|
|
606
598
|
// @ts-ignore
|
|
607
|
-
class: `${
|
|
608
|
-
})),
|
|
599
|
+
class: `${B} ${I} ${H} ${D} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
|
|
600
|
+
})), Ta = r((e) => p({
|
|
609
601
|
...e,
|
|
610
602
|
type: "month",
|
|
611
603
|
// @ts-ignore
|
|
612
|
-
class: `${
|
|
613
|
-
})),
|
|
604
|
+
class: `${B} ${I} ${H} ${D} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
|
|
605
|
+
})), Ma = r((e) => p({
|
|
614
606
|
...e,
|
|
615
607
|
type: "week",
|
|
616
608
|
// @ts-ignore
|
|
617
|
-
class: `${
|
|
618
|
-
})),
|
|
609
|
+
class: `${B} ${I} ${H} ${D} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
|
|
610
|
+
})), Ba = r((e) => N({
|
|
619
611
|
...e,
|
|
620
612
|
type: "number"
|
|
621
613
|
})), Pa = r((e) => N({
|
|
@@ -626,29 +618,29 @@ r((e) => N({
|
|
|
626
618
|
...e,
|
|
627
619
|
type: "search"
|
|
628
620
|
}));
|
|
629
|
-
const
|
|
621
|
+
const za = r((e) => N({
|
|
630
622
|
...e,
|
|
631
623
|
type: "url"
|
|
632
|
-
})),
|
|
624
|
+
})), Oa = r((e) => N({
|
|
633
625
|
...e,
|
|
634
626
|
type: "hidden"
|
|
635
|
-
})),
|
|
627
|
+
})), Na = r((e) => p({
|
|
636
628
|
...e,
|
|
637
629
|
type: "color",
|
|
638
630
|
// @ts-ignore
|
|
639
|
-
class: `${
|
|
631
|
+
class: `${B} text-foreground p-0 ${D} ${e.class || ""}`.trim()
|
|
640
632
|
}));
|
|
641
|
-
r((e) =>
|
|
633
|
+
r((e) => ue({
|
|
642
634
|
...e,
|
|
643
635
|
// @ts-ignore
|
|
644
|
-
class: `flex h-4 w-4 text-foreground ${
|
|
636
|
+
class: `flex h-4 w-4 text-foreground ${B} ${I} ${D} ${e.class || ""}`.trim()
|
|
645
637
|
}));
|
|
646
|
-
const
|
|
638
|
+
const _t = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", Ra = r((e) => p({
|
|
647
639
|
...e,
|
|
648
640
|
type: "file",
|
|
649
641
|
// @ts-ignore
|
|
650
|
-
class: `${
|
|
651
|
-
})),
|
|
642
|
+
class: `${we} ${_t} ${e.class || ""}`.trim()
|
|
643
|
+
})), Fa = O(
|
|
652
644
|
{
|
|
653
645
|
/**
|
|
654
646
|
* This will create the initial state of the RangeSlider.
|
|
@@ -681,7 +673,7 @@ const Wt = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
681
673
|
return o({ class: "relative w-full h-4 flex items-center" }, [
|
|
682
674
|
// Track
|
|
683
675
|
o({ class: "absolute h-2 w-full rounded-full bg-muted" }),
|
|
684
|
-
|
|
676
|
+
W(({ state: e }) => [
|
|
685
677
|
// Filled Track
|
|
686
678
|
o({
|
|
687
679
|
class: "absolute h-2 bg-primary rounded-full",
|
|
@@ -720,15 +712,15 @@ const Wt = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
720
712
|
]);
|
|
721
713
|
}
|
|
722
714
|
}
|
|
723
|
-
),
|
|
715
|
+
), ja = r((e) => ({
|
|
724
716
|
tag: "select",
|
|
725
717
|
onCreated(t) {
|
|
726
718
|
e.options && xt.setupSelectOptions(t, e.options);
|
|
727
719
|
},
|
|
728
720
|
...e,
|
|
729
721
|
// @ts-ignore
|
|
730
|
-
class: `${
|
|
731
|
-
})),
|
|
722
|
+
class: `${we} ${e.class || ""}`.trim()
|
|
723
|
+
})), qt = r(({ src: e, alt: t, class: s, checkPath: n = !0 }) => !e || (s = s || "", n && e.indexOf(".") === -1 && e.indexOf("[[") === -1) ? null : he({
|
|
732
724
|
class: `absolute w-full h-full object-cover fadeIn ${s}`,
|
|
733
725
|
src: e,
|
|
734
726
|
alt: t,
|
|
@@ -737,7 +729,7 @@ const Wt = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
737
729
|
* If there's an error loading the image, hide it.
|
|
738
730
|
*/
|
|
739
731
|
error: (a) => a.target.style.visibility = "hidden"
|
|
740
|
-
})),
|
|
732
|
+
})), Gt = (e) => !e || isNaN(e) ? null : e, Pe = (e, t) => {
|
|
741
733
|
const s = e, n = 16, a = 2 * Math.PI * n, l = s / 100 * a, i = `
|
|
742
734
|
<svg class="w-40 h-40 mx-auto" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg">
|
|
743
735
|
<!-- Background Circle -->
|
|
@@ -787,13 +779,13 @@ const Wt = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
787
779
|
onSet: [
|
|
788
780
|
// @ts-ignore
|
|
789
781
|
e.prop,
|
|
790
|
-
(a) => (a =
|
|
782
|
+
(a) => (a = Gt(a), a ? Pe(a, s) : n)
|
|
791
783
|
]
|
|
792
784
|
}, [n]);
|
|
793
|
-
}),
|
|
785
|
+
}), Kt = () => W(({ state: e }) => o({
|
|
794
786
|
class: "absolute h-full rounded-full bg-primary transition-all duration-300",
|
|
795
787
|
style: ["width: [[progress]]%;", e]
|
|
796
|
-
})),
|
|
788
|
+
})), Ha = O(
|
|
797
789
|
{
|
|
798
790
|
/**
|
|
799
791
|
* This will render the progress bar component.
|
|
@@ -802,7 +794,7 @@ const Wt = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
802
794
|
*/
|
|
803
795
|
render() {
|
|
804
796
|
return o({ class: "relative w-full h-4 rounded-full bg-muted" }, [
|
|
805
|
-
|
|
797
|
+
Kt()
|
|
806
798
|
]);
|
|
807
799
|
},
|
|
808
800
|
/**
|
|
@@ -866,7 +858,7 @@ const Wt = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
866
858
|
style: m,
|
|
867
859
|
"aria-hidden": "true"
|
|
868
860
|
});
|
|
869
|
-
}),
|
|
861
|
+
}), Ea = r((e = {}) => {
|
|
870
862
|
const {
|
|
871
863
|
class: t = "",
|
|
872
864
|
background: s = !0,
|
|
@@ -887,7 +879,7 @@ const Wt = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
887
879
|
style: m,
|
|
888
880
|
"aria-hidden": "true"
|
|
889
881
|
});
|
|
890
|
-
}),
|
|
882
|
+
}), ze = {
|
|
891
883
|
top: "bottom-full left-1/2 transform -translate-x-1/2 mb-2",
|
|
892
884
|
"top-right": "bottom-full left-full transform -translate-x-1 mb-2",
|
|
893
885
|
"top-left": "bottom-full right-full transform translate-x-1 mb-2",
|
|
@@ -896,8 +888,8 @@ const Wt = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
896
888
|
"bottom-left": "top-full right-full transform translate-x-1 mt-2",
|
|
897
889
|
left: "top-1/2 right-full transform -translate-y-1/2 mr-2",
|
|
898
890
|
right: "top-1/2 left-full transform -translate-y-1/2 ml-2"
|
|
899
|
-
},
|
|
900
|
-
const n =
|
|
891
|
+
}, Qt = (e) => ze[String(e)] || ze.top, Ua = r(({ position: e = "top", content: t }, s) => {
|
|
892
|
+
const n = Qt(e);
|
|
901
893
|
return Array.isArray(s) === !1 && (s = [s]), o({ class: "relative group inline-block" }, [
|
|
902
894
|
...s,
|
|
903
895
|
// Tooltip box
|
|
@@ -908,7 +900,7 @@ const Wt = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
908
900
|
`
|
|
909
901
|
}, t)
|
|
910
902
|
]);
|
|
911
|
-
}),
|
|
903
|
+
}), Oe = {
|
|
912
904
|
info: {
|
|
913
905
|
borderColor: "border-blue-500",
|
|
914
906
|
bgColor: "bg-muted/10",
|
|
@@ -934,25 +926,25 @@ const Wt = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
934
926
|
bgColor: "bg-muted/10",
|
|
935
927
|
iconColor: "text-muted-foreground"
|
|
936
928
|
}
|
|
937
|
-
},
|
|
929
|
+
}, Jt = (e, t) => o({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
|
|
938
930
|
x({ size: "sm" }, e)
|
|
939
|
-
]),
|
|
940
|
-
const { borderColor: a, bgColor: l, iconColor: i } =
|
|
931
|
+
]), Zt = (e) => dt({ class: "font-semibold" }, e), Xt = (e) => k({ class: "text-sm text-muted-foreground" }, e), Ya = r(({ title: e, description: t, icon: s, type: n = "default" }) => {
|
|
932
|
+
const { borderColor: a, bgColor: l, iconColor: i } = Oe[n] || Oe.default;
|
|
941
933
|
return o({ class: `flex items-start p-4 border rounded-lg ${l} ${a}` }, [
|
|
942
934
|
// Icon and content
|
|
943
|
-
s &&
|
|
935
|
+
s && Jt(s, i),
|
|
944
936
|
o({ class: "flex flex-col" }, [
|
|
945
|
-
|
|
946
|
-
|
|
937
|
+
Zt(e),
|
|
938
|
+
Xt(t)
|
|
947
939
|
])
|
|
948
940
|
]);
|
|
949
|
-
}),
|
|
941
|
+
}), es = (e, t) => {
|
|
950
942
|
const s = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, n = t.getBoundingClientRect(), a = 10, l = globalThis.scrollX, i = globalThis.scrollY;
|
|
951
943
|
let c = s.left + l, h = s.bottom + i;
|
|
952
944
|
const m = globalThis.innerHeight - s.bottom, v = s.top;
|
|
953
945
|
return c + n.width > globalThis.innerWidth && (c = globalThis.innerWidth - n.width - a), m < n.height && v > m ? h = s.top + i - n.height - a : m < n.height && (h = s.bottom + i - (n.height - m) - a), { x: c, y: h };
|
|
954
946
|
};
|
|
955
|
-
class
|
|
947
|
+
class te extends C {
|
|
956
948
|
/**
|
|
957
949
|
* This will set up the data.
|
|
958
950
|
*
|
|
@@ -1029,7 +1021,7 @@ class se extends C {
|
|
|
1029
1021
|
* @returns {void}
|
|
1030
1022
|
*/
|
|
1031
1023
|
updatePosition() {
|
|
1032
|
-
const t = this.button ?? null, s = this.panel, n =
|
|
1024
|
+
const t = this.button ?? null, s = this.panel, n = es(t, s);
|
|
1033
1025
|
this.data.position = n;
|
|
1034
1026
|
}
|
|
1035
1027
|
/**
|
|
@@ -1081,28 +1073,28 @@ class se extends C {
|
|
|
1081
1073
|
this?.panel?.hidePopover();
|
|
1082
1074
|
}
|
|
1083
1075
|
}
|
|
1084
|
-
const
|
|
1076
|
+
const ts = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t)), ss = r((e, t) => V({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), ns = r((e, t) => k({ ...e, class: "text-sm text-muted-foreground italic" }, t)), as = r((e, t) => k({ ...e, class: "text-sm text-destructive" }, t)), Va = r((e, t = []) => Rt({ class: "flex flex-auto flex-col gap-y-0", margin: "m-0", padding: "p-0" }, [
|
|
1085
1077
|
// @ts-ignore
|
|
1086
|
-
e.title &&
|
|
1078
|
+
e.title && J({ class: "text-lg font-semibold py-4 px-6" }, e.title),
|
|
1087
1079
|
// @ts-ignore
|
|
1088
1080
|
e.description && k({ class: "text-sm text-muted-foreground pb-4 px-6 max-w-[700px]" }, e.description),
|
|
1089
1081
|
...t
|
|
1090
|
-
])),
|
|
1082
|
+
])), Wa = r((e, t = []) => (
|
|
1091
1083
|
// @ts-ignore
|
|
1092
|
-
|
|
1084
|
+
jt({ label: e.label, description: e.description, class: "py-4 px-6", border: e.border }, [
|
|
1093
1085
|
o({ class: "flex flex-col gap-y-6" }, t)
|
|
1094
1086
|
])
|
|
1095
|
-
)),
|
|
1087
|
+
)), _a = r((e, t = []) => {
|
|
1096
1088
|
const s = e.border ? "border-t" : "";
|
|
1097
1089
|
return o({ ...e, class: `flex flex-col pb-4 px-6 gap-y-4 ${s} ${e.class || ""}` }, t);
|
|
1098
|
-
}),
|
|
1090
|
+
}), os = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", Qe = (e, t, s) => e.map((n) => !n || (n.children && n.children.length > 0 && (n.children = Qe(n.children, t, s)), !n.required) ? n : os(n) ? {
|
|
1099
1091
|
...n,
|
|
1100
1092
|
aria: {
|
|
1101
1093
|
invalid: ["hasError"]
|
|
1102
1094
|
},
|
|
1103
1095
|
invalid: s,
|
|
1104
1096
|
input: t
|
|
1105
|
-
} : n),
|
|
1097
|
+
} : n), ls = r((e, t) => {
|
|
1106
1098
|
const a = Qe(t, (l) => {
|
|
1107
1099
|
l.target.checkValidity() && e.setError(null);
|
|
1108
1100
|
}, (l) => {
|
|
@@ -1112,7 +1104,7 @@ const es = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
|
|
|
1112
1104
|
...e,
|
|
1113
1105
|
class: "w-full"
|
|
1114
1106
|
}, a);
|
|
1115
|
-
}),
|
|
1107
|
+
}), qa = O(
|
|
1116
1108
|
{
|
|
1117
1109
|
/**
|
|
1118
1110
|
* The initial state of the FormField.
|
|
@@ -1137,41 +1129,41 @@ const es = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
|
|
|
1137
1129
|
this.state.error = l, this.state.hasError = !!l;
|
|
1138
1130
|
};
|
|
1139
1131
|
return o({ class: "flex flex-auto gap-y-4" }, [
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1132
|
+
ts([
|
|
1133
|
+
ss({ htmlFor: t }, s),
|
|
1134
|
+
ls({
|
|
1143
1135
|
id: t,
|
|
1144
1136
|
name: e,
|
|
1145
1137
|
value: this.state.value,
|
|
1146
1138
|
setError: a
|
|
1147
1139
|
}, this.children),
|
|
1148
|
-
n &&
|
|
1149
|
-
o({ onState: ["error", (l) => l &&
|
|
1140
|
+
n && ns({ id: this.getId("description") }, n),
|
|
1141
|
+
o({ onState: ["error", (l) => l && as(l)] })
|
|
1150
1142
|
])
|
|
1151
1143
|
]);
|
|
1152
1144
|
}
|
|
1153
1145
|
}
|
|
1154
|
-
),
|
|
1146
|
+
), rs = (e, t, s = null) => {
|
|
1155
1147
|
e.target.checkValidity() && (e.preventDefault(), s && s(e, t));
|
|
1156
1148
|
}, Je = r(
|
|
1157
1149
|
(e, t) => (
|
|
1158
1150
|
// @ts-ignore
|
|
1159
|
-
ut({ ...e, submit: (s, n) =>
|
|
1151
|
+
ut({ ...e, submit: (s, n) => rs(s, n, e.submit), class: `w-full ${e.class ?? ""}` }, t)
|
|
1160
1152
|
)
|
|
1161
|
-
),
|
|
1153
|
+
), Ga = r((e, t) => (
|
|
1162
1154
|
// @ts-ignore
|
|
1163
1155
|
o({ ...e, class: `flex flex-auto flex-col gap-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)
|
|
1164
|
-
)),
|
|
1156
|
+
)), Ka = r((e, t = []) => o({ class: "flex flex-col gap-y-3 py-4" }, [
|
|
1165
1157
|
// @ts-ignore
|
|
1166
|
-
e.title &&
|
|
1158
|
+
e.title && J({ class: "font-semibold" }, e.title),
|
|
1167
1159
|
...t
|
|
1168
|
-
])),
|
|
1160
|
+
])), Qa = (e, t) => o({ class: "flex justify-between" }, [
|
|
1169
1161
|
g({ class: "text-muted-foreground" }, e),
|
|
1170
1162
|
g(t)
|
|
1171
|
-
]),
|
|
1163
|
+
]), Ja = (e, t) => o({ class: "flex" }, [
|
|
1172
1164
|
g({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
|
|
1173
1165
|
g(t)
|
|
1174
|
-
]),
|
|
1166
|
+
]), is = r(({ title: e, description: t, back: s, icon: n, options: a = [] }) => Z({ class: "modal-header bg-background/80 backdrop-blur-md sticky flex flex-none items-center py-4 px-6 z-10 min-w-0" }, [
|
|
1175
1167
|
/**
|
|
1176
1168
|
* Back Button (Mobile Only)
|
|
1177
1169
|
*/
|
|
@@ -1189,12 +1181,12 @@ const es = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
|
|
|
1189
1181
|
]),
|
|
1190
1182
|
o({ class: "flex flex-auto flex-row justify-between ml-2 gap-2 min-w-0" }, [
|
|
1191
1183
|
o({ class: "flex flex-auto flex-col min-w-0" }, [
|
|
1192
|
-
|
|
1184
|
+
J({ class: "text-lg font-semibold m-0 truncate" }, e),
|
|
1193
1185
|
t && o({ class: "text-sm text-muted-foreground truncate" }, t)
|
|
1194
1186
|
]),
|
|
1195
1187
|
o({ class: "flex flex-none items-center gap-2" }, a)
|
|
1196
1188
|
])
|
|
1197
|
-
])),
|
|
1189
|
+
])), Za = r((e, t) => {
|
|
1198
1190
|
const s = e.class?.includes("drawer");
|
|
1199
1191
|
return o({
|
|
1200
1192
|
popover: "manual",
|
|
@@ -1212,13 +1204,13 @@ const es = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
|
|
|
1212
1204
|
// @ts-ignore
|
|
1213
1205
|
...e.gestureHandlers
|
|
1214
1206
|
}, [
|
|
1215
|
-
|
|
1207
|
+
is(e),
|
|
1216
1208
|
o({ class: "modal-body flex grow flex-col py-0 px-6 z-0", cache: "modalBody" }, t),
|
|
1217
1209
|
// @ts-ignore
|
|
1218
|
-
!e.hideFooter &&
|
|
1210
|
+
!e.hideFooter && fe({ 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)
|
|
1219
1211
|
])
|
|
1220
1212
|
]);
|
|
1221
|
-
}),
|
|
1213
|
+
}), Ne = {
|
|
1222
1214
|
info: {
|
|
1223
1215
|
bgColor: "bg-muted/10",
|
|
1224
1216
|
borderColor: "border-blue-500",
|
|
@@ -1244,22 +1236,22 @@ const es = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
|
|
|
1244
1236
|
borderColor: "border",
|
|
1245
1237
|
iconColor: "text-muted-foreground"
|
|
1246
1238
|
}
|
|
1247
|
-
},
|
|
1248
|
-
|
|
1249
|
-
]),
|
|
1239
|
+
}, cs = (e) => Z({ class: "flex justify-center" }, [
|
|
1240
|
+
ge({ class: "text-lg font-bold mb-0" }, e)
|
|
1241
|
+
]), ds = r(({ href: e, class: t }, s) => Ve({
|
|
1250
1242
|
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}`,
|
|
1251
1243
|
href: e,
|
|
1252
1244
|
animateIn: "pullRightIn",
|
|
1253
1245
|
animateOut: "pullRight",
|
|
1254
1246
|
role: "alert"
|
|
1255
|
-
}, s)),
|
|
1247
|
+
}, s)), us = r(({ close: e, class: t }, s) => o({
|
|
1256
1248
|
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}`,
|
|
1257
1249
|
click: () => e(),
|
|
1258
1250
|
animateIn: "pullRightIn",
|
|
1259
1251
|
animateOut: "pullRight",
|
|
1260
1252
|
role: "alert"
|
|
1261
1253
|
}, s));
|
|
1262
|
-
class
|
|
1254
|
+
class Xa extends C {
|
|
1263
1255
|
/**
|
|
1264
1256
|
* This will declare the props for the compiler.
|
|
1265
1257
|
*
|
|
@@ -1283,10 +1275,10 @@ class Za extends C {
|
|
|
1283
1275
|
*/
|
|
1284
1276
|
render() {
|
|
1285
1277
|
const { bgColor: t, borderColor: s, iconColor: n } = this.getTypeStyles(), a = this.href || null, l = this.getChildren(n);
|
|
1286
|
-
return a ?
|
|
1278
|
+
return a ? ds({
|
|
1287
1279
|
href: a,
|
|
1288
1280
|
class: `${t} ${s}`
|
|
1289
|
-
}, l) :
|
|
1281
|
+
}, l) : us({
|
|
1290
1282
|
close: this.close.bind(this),
|
|
1291
1283
|
class: `${t} ${s}`
|
|
1292
1284
|
}, l);
|
|
@@ -1307,7 +1299,7 @@ class Za extends C {
|
|
|
1307
1299
|
*/
|
|
1308
1300
|
getTypeStyles() {
|
|
1309
1301
|
const t = this.type || "default";
|
|
1310
|
-
return
|
|
1302
|
+
return Ne[t] || Ne.default;
|
|
1311
1303
|
}
|
|
1312
1304
|
/**
|
|
1313
1305
|
* This will get the buttons for the notification.
|
|
@@ -1336,10 +1328,10 @@ class Za extends C {
|
|
|
1336
1328
|
]),
|
|
1337
1329
|
o({ class: "flex flex-auto flex-col" }, [
|
|
1338
1330
|
o({ class: "flex flex-auto flex-row items-center w-full pr-12" }, [
|
|
1339
|
-
this.title &&
|
|
1331
|
+
this.title && cs(this.title)
|
|
1340
1332
|
]),
|
|
1341
1333
|
k({ class: "text-base text-muted-foreground m-0 pr-12" }, this.description),
|
|
1342
|
-
(this.primary || this.secondary) &&
|
|
1334
|
+
(this.primary || this.secondary) && fe({ class: "margin-top-24 flex align-center" }, this.getButtons())
|
|
1343
1335
|
])
|
|
1344
1336
|
]),
|
|
1345
1337
|
b({
|
|
@@ -1360,25 +1352,25 @@ class Za extends C {
|
|
|
1360
1352
|
t && t.stopPropagation(), this.duration !== "infinite" && this.timer.stop(), this.onClick && this.onClick(), this.destroy();
|
|
1361
1353
|
}
|
|
1362
1354
|
}
|
|
1363
|
-
const
|
|
1355
|
+
const Re = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w({
|
|
1364
1356
|
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',
|
|
1365
1357
|
onState: ["method", { active: e }],
|
|
1366
1358
|
dataSet: ["method", ["state", e, "active"]],
|
|
1367
1359
|
click: (n, { state: a }) => {
|
|
1368
|
-
a.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"),
|
|
1360
|
+
a.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), hs(e);
|
|
1369
1361
|
}
|
|
1370
1362
|
}, [
|
|
1371
1363
|
x({}, s),
|
|
1372
1364
|
g(t)
|
|
1373
|
-
])),
|
|
1365
|
+
])), hs = (e) => {
|
|
1374
1366
|
const t = document.documentElement;
|
|
1375
|
-
if (e === "system" && (e = globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light"),
|
|
1367
|
+
if (e === "system" && (e = globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light"), Re && !Re("(prefers-color-scheme: " + e + ")").matches) {
|
|
1376
1368
|
t.classList.add(e);
|
|
1377
1369
|
return;
|
|
1378
1370
|
}
|
|
1379
1371
|
const s = e === "light" ? "dark" : "light";
|
|
1380
1372
|
t.classList.remove(s);
|
|
1381
|
-
},
|
|
1373
|
+
}, eo = M(
|
|
1382
1374
|
{
|
|
1383
1375
|
/**
|
|
1384
1376
|
* This will render the component.
|
|
@@ -1405,7 +1397,7 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1405
1397
|
};
|
|
1406
1398
|
}
|
|
1407
1399
|
}
|
|
1408
|
-
),
|
|
1400
|
+
), to = O(
|
|
1409
1401
|
{
|
|
1410
1402
|
/**
|
|
1411
1403
|
* The initial state of the Toggle.
|
|
@@ -1439,7 +1431,7 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1439
1431
|
s.toggle("active"), this.checkbox.checked = s.active, this.change && this.change(s.active, t, this);
|
|
1440
1432
|
}
|
|
1441
1433
|
}, [
|
|
1442
|
-
|
|
1434
|
+
ue({
|
|
1443
1435
|
cache: "checkbox",
|
|
1444
1436
|
class: "opacity-0 absolute top-0 left-0 bottom-0 right-0 w-full h-full",
|
|
1445
1437
|
/**
|
|
@@ -1457,13 +1449,13 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1457
1449
|
]);
|
|
1458
1450
|
}
|
|
1459
1451
|
}
|
|
1460
|
-
),
|
|
1452
|
+
), fs = r(({ src: e, alt: t }) => !e || e.indexOf(".") === -1 && e.indexOf("[[") === -1 ? null : qt({
|
|
1461
1453
|
src: e,
|
|
1462
1454
|
alt: t,
|
|
1463
1455
|
class: "rounded-full"
|
|
1464
|
-
})),
|
|
1456
|
+
})), gs = (e) => e && (Array.isArray(e) && (e = e.join(" ")), typeof e != "string" && (e = String(e)), e.split(" ").map((t) => t.charAt(0)).join("").toUpperCase()), Ze = (e) => !e || e.length < 2 ? e : gs(e), ms = (e) => g([e, (t, s) => {
|
|
1465
1457
|
s.textContent = Ze(t);
|
|
1466
|
-
}]),
|
|
1458
|
+
}]), Fe = {
|
|
1467
1459
|
xs: "h-6 w-6",
|
|
1468
1460
|
sm: "h-8 w-8",
|
|
1469
1461
|
md: "h-12 w-12",
|
|
@@ -1473,7 +1465,7 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1473
1465
|
"3xl": "h-48 w-48",
|
|
1474
1466
|
"4xl": "h-64 w-64",
|
|
1475
1467
|
default: "h-12 w-12"
|
|
1476
|
-
},
|
|
1468
|
+
}, je = {
|
|
1477
1469
|
xs: "text-[7px]",
|
|
1478
1470
|
sm: "text-xs",
|
|
1479
1471
|
md: "text-base",
|
|
@@ -1483,8 +1475,8 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1483
1475
|
"3xl": "text-4xl",
|
|
1484
1476
|
"4xl": "text-5xl",
|
|
1485
1477
|
default: "text-base"
|
|
1486
|
-
},
|
|
1487
|
-
const n = Ze(String(e)), a =
|
|
1478
|
+
}, bs = (e) => Fe[e] || Fe.default, xs = (e) => je[e] || je.default, ps = (e, t = null, s = "md") => {
|
|
1479
|
+
const n = Ze(String(e)), a = xs(s);
|
|
1488
1480
|
return o(
|
|
1489
1481
|
{
|
|
1490
1482
|
class: `
|
|
@@ -1494,21 +1486,21 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1494
1486
|
`
|
|
1495
1487
|
},
|
|
1496
1488
|
[
|
|
1497
|
-
t ?
|
|
1489
|
+
t ? ms(t) : g({ class: "uppercase" }, n)
|
|
1498
1490
|
]
|
|
1499
1491
|
);
|
|
1500
|
-
},
|
|
1501
|
-
const l =
|
|
1492
|
+
}, ys = r(({ src: e, alt: t, fallbackText: s, watcherFallback: n, size: a }) => {
|
|
1493
|
+
const l = bs(a);
|
|
1502
1494
|
return o(
|
|
1503
1495
|
{
|
|
1504
1496
|
class: `relative flex items-center justify-center ${l}`
|
|
1505
1497
|
},
|
|
1506
1498
|
[
|
|
1507
|
-
|
|
1508
|
-
|
|
1499
|
+
fs({ src: e, alt: t }),
|
|
1500
|
+
ps(s, n, a)
|
|
1509
1501
|
]
|
|
1510
1502
|
);
|
|
1511
|
-
}),
|
|
1503
|
+
}), ws = (e) => e.indexOf(".") === -1 && e.indexOf("[[") === -1 && e.indexOf("blob:") === -1, so = M(
|
|
1512
1504
|
{
|
|
1513
1505
|
/**
|
|
1514
1506
|
* Get the initial state for the component.
|
|
@@ -1528,7 +1520,7 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1528
1520
|
*/
|
|
1529
1521
|
openFileBrowse() {
|
|
1530
1522
|
const e = this.input;
|
|
1531
|
-
e && (e.value = "",
|
|
1523
|
+
e && (e.value = "", L.trigger("click", e));
|
|
1532
1524
|
},
|
|
1533
1525
|
/**
|
|
1534
1526
|
* Get the URL for the uploaded file.
|
|
@@ -1564,13 +1556,13 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1564
1556
|
s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
|
|
1565
1557
|
}
|
|
1566
1558
|
}, [
|
|
1567
|
-
T("loaded", (s) => s === !1 ||
|
|
1559
|
+
T("loaded", (s) => s === !1 || ws(this.src) ? V({
|
|
1568
1560
|
htmlFor: e,
|
|
1569
1561
|
class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
|
|
1570
1562
|
}, [
|
|
1571
1563
|
ce(u.upload),
|
|
1572
1564
|
o("Upload Image")
|
|
1573
|
-
]) :
|
|
1565
|
+
]) : he({
|
|
1574
1566
|
// @ts-ignore
|
|
1575
1567
|
src: this.src,
|
|
1576
1568
|
class: "absolute inset-0 w-full h-full object-cover rounded-full"
|
|
@@ -1579,7 +1571,7 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1579
1571
|
]);
|
|
1580
1572
|
}
|
|
1581
1573
|
}
|
|
1582
|
-
),
|
|
1574
|
+
), no = M(
|
|
1583
1575
|
{
|
|
1584
1576
|
/**
|
|
1585
1577
|
* Get the initial state for the component.
|
|
@@ -1599,7 +1591,7 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1599
1591
|
*/
|
|
1600
1592
|
openFileBrowse() {
|
|
1601
1593
|
const e = this.input;
|
|
1602
|
-
e && (e.value = "",
|
|
1594
|
+
e && (e.value = "", L.trigger("click", e));
|
|
1603
1595
|
},
|
|
1604
1596
|
/**
|
|
1605
1597
|
* Get the URL for the uploaded file.
|
|
@@ -1637,11 +1629,11 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1637
1629
|
}, [
|
|
1638
1630
|
T(
|
|
1639
1631
|
"loaded",
|
|
1640
|
-
(s) => s ?
|
|
1632
|
+
(s) => s ? he({
|
|
1641
1633
|
// @ts-ignore
|
|
1642
1634
|
src: this.src,
|
|
1643
1635
|
class: "absolute inset-0 w-full h-full object-cover rounded-full"
|
|
1644
|
-
}) :
|
|
1636
|
+
}) : V({
|
|
1645
1637
|
htmlFor: e,
|
|
1646
1638
|
class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
|
|
1647
1639
|
}, [
|
|
@@ -1661,7 +1653,7 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1661
1653
|
this.input = null;
|
|
1662
1654
|
}
|
|
1663
1655
|
}
|
|
1664
|
-
),
|
|
1656
|
+
), vs = (e, t) => Ve(
|
|
1665
1657
|
{
|
|
1666
1658
|
href: e,
|
|
1667
1659
|
"aria-current": t === "Breadcrumb" && "page",
|
|
@@ -1669,14 +1661,14 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1669
1661
|
class: "text-muted-foreground font-medium hover:text-foreground"
|
|
1670
1662
|
},
|
|
1671
1663
|
[g(t)]
|
|
1672
|
-
),
|
|
1664
|
+
), ks = () => x({
|
|
1673
1665
|
class: "mx-3 text-muted-foreground",
|
|
1674
1666
|
"aria-hidden": !0,
|
|
1675
1667
|
size: "xs"
|
|
1676
|
-
}, u.chevron.single.right),
|
|
1677
|
-
e.href ?
|
|
1678
|
-
e.separator &&
|
|
1679
|
-
]),
|
|
1668
|
+
}, u.chevron.single.right), Cs = (e) => o({ class: "flex items-center" }, [
|
|
1669
|
+
e.href ? vs(e.href, e.label) : g(e.label),
|
|
1670
|
+
e.separator && ks()
|
|
1671
|
+
]), ao = M(
|
|
1680
1672
|
{
|
|
1681
1673
|
/**
|
|
1682
1674
|
* Set initial data
|
|
@@ -1696,7 +1688,7 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1696
1688
|
*/
|
|
1697
1689
|
render() {
|
|
1698
1690
|
const e = this.data.items.length - 1;
|
|
1699
|
-
return
|
|
1691
|
+
return me(
|
|
1700
1692
|
{
|
|
1701
1693
|
"aria-label": "Breadcrumb",
|
|
1702
1694
|
class: "flex items-center gap-x-1 text-sm"
|
|
@@ -1705,7 +1697,7 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1705
1697
|
o({
|
|
1706
1698
|
role: "list",
|
|
1707
1699
|
class: "flex items-center",
|
|
1708
|
-
for: ["items", (t, s) =>
|
|
1700
|
+
for: ["items", (t, s) => Cs({
|
|
1709
1701
|
href: t.href,
|
|
1710
1702
|
label: t.label,
|
|
1711
1703
|
separator: s < e
|
|
@@ -1724,7 +1716,7 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1724
1716
|
"2xl": "h-16 w-16",
|
|
1725
1717
|
"3xl": "h-24 w-24",
|
|
1726
1718
|
default: "h-4 w-4"
|
|
1727
|
-
},
|
|
1719
|
+
}, Ss = (e) => Le[e] || Le.default, $s = ({ index: e, size: t }) => o({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
|
|
1728
1720
|
g({
|
|
1729
1721
|
class: "block w-full h-full rounded-full transition-colors",
|
|
1730
1722
|
onSet: ["activeIndex", {
|
|
@@ -1735,10 +1727,10 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1735
1727
|
n.activeIndex = e, a && a(e);
|
|
1736
1728
|
}
|
|
1737
1729
|
})
|
|
1738
|
-
]),
|
|
1730
|
+
]), Ds = (e, t) => Array.from({ length: e }, (s, n) => $s({
|
|
1739
1731
|
index: n,
|
|
1740
1732
|
size: t
|
|
1741
|
-
})),
|
|
1733
|
+
})), oo = M(
|
|
1742
1734
|
{
|
|
1743
1735
|
/**
|
|
1744
1736
|
* Defines component data (props).
|
|
@@ -1760,7 +1752,7 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1760
1752
|
* @returns {object}
|
|
1761
1753
|
*/
|
|
1762
1754
|
render() {
|
|
1763
|
-
const e = this.gap || "gap-2", t =
|
|
1755
|
+
const e = this.gap || "gap-2", t = Ss(this.size || "sm"), s = Ds(this.data.count, t);
|
|
1764
1756
|
return o(
|
|
1765
1757
|
{ class: "flex justify-center items-center py-2" },
|
|
1766
1758
|
[
|
|
@@ -1769,7 +1761,7 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1769
1761
|
);
|
|
1770
1762
|
}
|
|
1771
1763
|
}
|
|
1772
|
-
),
|
|
1764
|
+
), Is = ({ toggleDropdown: e }) => w(
|
|
1773
1765
|
{
|
|
1774
1766
|
cache: "button",
|
|
1775
1767
|
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",
|
|
@@ -1779,27 +1771,27 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1779
1771
|
g({ onState: ["selectedLabel", (t) => t || "Select item..."] }),
|
|
1780
1772
|
x({ size: "sm" }, u.chevron.upDown)
|
|
1781
1773
|
]
|
|
1782
|
-
),
|
|
1774
|
+
), Ts = (e, t, s) => be({
|
|
1783
1775
|
class: "flex flex-auto items-center cursor-pointer p-2 hover:bg-muted/50 rounded-sm",
|
|
1784
1776
|
click: () => t(e),
|
|
1785
1777
|
onState: [s, "selectedValue", { "bg-secondary": e.value }]
|
|
1786
1778
|
}, [
|
|
1787
1779
|
e.icon && g({ class: "mr-2 flex items-baseline" }, [x({ size: "xs" }, e.icon)]),
|
|
1788
1780
|
g({ class: "text-base font-normal" }, e.label)
|
|
1789
|
-
]),
|
|
1790
|
-
|
|
1791
|
-
]),
|
|
1781
|
+
]), Ms = (e, t) => o({ class: "w-full border rounded-md" }, [
|
|
1782
|
+
X({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => Ts(s, e, t)] })
|
|
1783
|
+
]), Bs = ({ onSelect: e, state: t }) => o({ class: "flex flex-auto flex-col" }, [
|
|
1792
1784
|
T(
|
|
1793
1785
|
"open",
|
|
1794
|
-
(s, n, a) => s ? new
|
|
1786
|
+
(s, n, a) => s ? new te({
|
|
1795
1787
|
cache: "dropdown",
|
|
1796
1788
|
parent: a,
|
|
1797
1789
|
button: a.button
|
|
1798
1790
|
}, [
|
|
1799
|
-
|
|
1791
|
+
Ms(e, t)
|
|
1800
1792
|
]) : null
|
|
1801
1793
|
)
|
|
1802
|
-
]),
|
|
1794
|
+
]), lo = M(
|
|
1803
1795
|
{
|
|
1804
1796
|
/**
|
|
1805
1797
|
* This will set up the data.
|
|
@@ -1880,8 +1872,8 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1880
1872
|
const e = this.class || "", t = this.maxWidth || "max-w-[250px]", s = this.width || "w-full";
|
|
1881
1873
|
return o({ class: `relative ${s} flex flex-auto flex-col ${t} ${e}` }, [
|
|
1882
1874
|
// @ts-ignore
|
|
1883
|
-
|
|
1884
|
-
|
|
1875
|
+
Is({ toggleDropdown: this.toggleDropdown.bind(this) }),
|
|
1876
|
+
Bs({
|
|
1885
1877
|
// @ts-ignore
|
|
1886
1878
|
state: this.state,
|
|
1887
1879
|
// @ts-ignore
|
|
@@ -1911,11 +1903,11 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1911
1903
|
icon: u.circleMinus,
|
|
1912
1904
|
click: e,
|
|
1913
1905
|
ariaLabel: "Decrement"
|
|
1914
|
-
}),
|
|
1906
|
+
}), zs = ({ click: e }) => Xe({
|
|
1915
1907
|
icon: u.circlePlus,
|
|
1916
1908
|
click: e,
|
|
1917
1909
|
ariaLabel: "Increment"
|
|
1918
|
-
}),
|
|
1910
|
+
}), Os = ({ bind: e, min: t, max: s, readonly: n = !1 }) => W(({ state: a }) => p({
|
|
1919
1911
|
value: ["[[count]]", a],
|
|
1920
1912
|
bind: e,
|
|
1921
1913
|
blur: (l, { state: i }) => {
|
|
@@ -1928,7 +1920,7 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1928
1920
|
max: s,
|
|
1929
1921
|
type: "number",
|
|
1930
1922
|
"aria-label": "Counter"
|
|
1931
|
-
})),
|
|
1923
|
+
})), ro = O(
|
|
1932
1924
|
{
|
|
1933
1925
|
/**
|
|
1934
1926
|
* Initial state for the counter component.
|
|
@@ -1952,19 +1944,19 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1952
1944
|
const e = this.class ?? "";
|
|
1953
1945
|
return o({ class: `flex flex-auto items-center justify-between gap-x-4 p-4 ${e}` }, [
|
|
1954
1946
|
Ps({ click: () => this.state.decrement("count") }),
|
|
1955
|
-
|
|
1947
|
+
Os({
|
|
1956
1948
|
bind: this.bind,
|
|
1957
1949
|
readonly: this.readonly,
|
|
1958
1950
|
min: this.min,
|
|
1959
1951
|
max: this.max
|
|
1960
1952
|
}),
|
|
1961
|
-
|
|
1953
|
+
zs({ click: () => this.state.increment("count") })
|
|
1962
1954
|
]);
|
|
1963
1955
|
}
|
|
1964
1956
|
}
|
|
1965
|
-
),
|
|
1957
|
+
), Ns = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
|
|
1966
1958
|
{ class: "grid grid-cols-3 gap-2" },
|
|
1967
|
-
|
|
1959
|
+
ee.monthNames.map(
|
|
1968
1960
|
(n, a) => b(
|
|
1969
1961
|
{
|
|
1970
1962
|
click: (l) => {
|
|
@@ -1976,9 +1968,9 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1976
1968
|
n.substring(0, 3)
|
|
1977
1969
|
)
|
|
1978
1970
|
)
|
|
1979
|
-
),
|
|
1980
|
-
const a =
|
|
1981
|
-
return a || (e ?
|
|
1971
|
+
), P = (e) => (e *= 1, e < 10 ? `0${e}` : String(e)), Rs = (e) => (e.indexOf("T") === -1 && e.indexOf(" ") === -1 && (e += "T00:00:01"), e.replace(" ", "T"), e), j = (e, t, s) => `${e}-${P(t + 1)}-${P(s)}`, Fs = (e) => e ? "bg-accent text-primary" : "", js = (e) => e ? "text-muted-foreground opacity-50" : "", Ls = (e, t) => e === t, Hs = (e, t) => Ls(e, t) ? "bg-primary text-primary-foreground" : "", As = (e, t, s, n) => {
|
|
1972
|
+
const a = Hs(t, n);
|
|
1973
|
+
return a || (e ? Fs(e) : s ? js(s) : "text-foreground");
|
|
1982
1974
|
}, le = (e) => {
|
|
1983
1975
|
const {
|
|
1984
1976
|
day: t,
|
|
@@ -2004,15 +1996,15 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
2004
1996
|
},
|
|
2005
1997
|
t.toString()
|
|
2006
1998
|
);
|
|
2007
|
-
}, re = (e, t, s, n) => e === n.date && t === n.month && s === n.year,
|
|
2008
|
-
const { year: a, month: l } = e, i =
|
|
1999
|
+
}, re = (e, t, s, n) => e === n.date && t === n.month && s === n.year, Es = (e, t, s, n = !1) => {
|
|
2000
|
+
const { year: a, month: l } = e, i = j(a, l, e.date), c = new Date(a, l, 1).getDay(), h = new Date(a, l + 1, 0).getDate(), m = new Date(a, l, 0).getDate(), v = [], _ = l === 0 ? 11 : l - 1, A = l === 0 ? a - 1 : a;
|
|
2009
2001
|
for (let d = c - 1; d >= 0; d--) {
|
|
2010
|
-
const y = m - d, S = re(y,
|
|
2002
|
+
const y = m - d, S = re(y, _, A, t), $ = new Date(A, _, y) < new Date(t.year, t.month, t.date), R = n && $;
|
|
2011
2003
|
v.push(
|
|
2012
2004
|
le({
|
|
2013
2005
|
day: y,
|
|
2014
2006
|
currentDate: i,
|
|
2015
|
-
date:
|
|
2007
|
+
date: j(A, _, y),
|
|
2016
2008
|
isToday: S,
|
|
2017
2009
|
isOutsideMonth: !0,
|
|
2018
2010
|
select: s,
|
|
@@ -2026,7 +2018,7 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
2026
2018
|
le({
|
|
2027
2019
|
day: d,
|
|
2028
2020
|
currentDate: i,
|
|
2029
|
-
date:
|
|
2021
|
+
date: j(a, l, d),
|
|
2030
2022
|
isToday: y,
|
|
2031
2023
|
isOutsideMonth: !1,
|
|
2032
2024
|
select: s,
|
|
@@ -2034,14 +2026,14 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
2034
2026
|
})
|
|
2035
2027
|
);
|
|
2036
2028
|
}
|
|
2037
|
-
const E = l === 11 ? 0 : l + 1,
|
|
2029
|
+
const E = l === 11 ? 0 : l + 1, se = l === 11 ? a + 1 : a, f = (7 - v.length % 7) % 7;
|
|
2038
2030
|
for (let d = 1; d <= f; d++) {
|
|
2039
|
-
const y = re(d, E,
|
|
2031
|
+
const y = re(d, E, se, t), S = new Date(se, E, d) < new Date(t.year, t.month, t.date), $ = n && S;
|
|
2040
2032
|
v.push(
|
|
2041
2033
|
le({
|
|
2042
2034
|
day: d,
|
|
2043
2035
|
currentDate: i,
|
|
2044
|
-
date:
|
|
2036
|
+
date: j(se, E, d),
|
|
2045
2037
|
isToday: y,
|
|
2046
2038
|
isOutsideMonth: !0,
|
|
2047
2039
|
select: s,
|
|
@@ -2050,7 +2042,7 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
2050
2042
|
);
|
|
2051
2043
|
}
|
|
2052
2044
|
return v;
|
|
2053
|
-
},
|
|
2045
|
+
}, He = ({ label: e, click: t }) => b(
|
|
2054
2046
|
{
|
|
2055
2047
|
class: `
|
|
2056
2048
|
inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
|
|
@@ -2063,16 +2055,16 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
2063
2055
|
variant: "icon",
|
|
2064
2056
|
icon: e === "Previous" ? u.chevron.single.left : u.chevron.single.right
|
|
2065
2057
|
}
|
|
2066
|
-
),
|
|
2058
|
+
), Us = ({ 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" }, [
|
|
2067
2059
|
b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
|
|
2068
2060
|
b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
]),
|
|
2061
|
+
He({ label: "Previous", click: n }),
|
|
2062
|
+
He({ label: "Next", click: s })
|
|
2063
|
+
]), Ys = (e) => o(
|
|
2072
2064
|
{ class: "flex items-center justify-center h-9 w-auto text-[0.8rem] font-normal text-muted-foreground" },
|
|
2073
2065
|
e
|
|
2074
|
-
),
|
|
2075
|
-
|
|
2066
|
+
), Vs = () => ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(Ys), Ws = (e) => o({ class: "rdp flex flex-auto flex-col w-full gap-y-1" }, [
|
|
2067
|
+
Us({
|
|
2076
2068
|
onMonthClick: e.onMonthClick,
|
|
2077
2069
|
onYearClick: e.onYearClick,
|
|
2078
2070
|
next: e.next,
|
|
@@ -2083,10 +2075,10 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
2083
2075
|
onSet: [
|
|
2084
2076
|
"currentDate",
|
|
2085
2077
|
() => [
|
|
2086
|
-
o({ class: "grid grid-cols-7" },
|
|
2078
|
+
o({ class: "grid grid-cols-7" }, Vs()),
|
|
2087
2079
|
o(
|
|
2088
2080
|
{ class: "grid grid-cols-7" },
|
|
2089
|
-
|
|
2081
|
+
Es(
|
|
2090
2082
|
e.current,
|
|
2091
2083
|
e.today,
|
|
2092
2084
|
e.select,
|
|
@@ -2096,7 +2088,7 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
2096
2088
|
]
|
|
2097
2089
|
]
|
|
2098
2090
|
})
|
|
2099
|
-
]),
|
|
2091
|
+
]), _s = ({ currentMonth: e, currentYear: t, onSelect: s }) => {
|
|
2100
2092
|
const n = t - 50, a = Array.from({ length: 101 }, (l, i) => n + i);
|
|
2101
2093
|
return o(
|
|
2102
2094
|
{ class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
|
|
@@ -2114,7 +2106,7 @@ const Ne = globalThis.matchMedia, oe = r(({ value: e, label: t, icon: s }) => w(
|
|
|
2114
2106
|
)
|
|
2115
2107
|
);
|
|
2116
2108
|
};
|
|
2117
|
-
class
|
|
2109
|
+
class qs extends C {
|
|
2118
2110
|
/**
|
|
2119
2111
|
* This will declare the props for the compiler.
|
|
2120
2112
|
*
|
|
@@ -2130,7 +2122,7 @@ class _s extends C {
|
|
|
2130
2122
|
* @returns {Date}
|
|
2131
2123
|
*/
|
|
2132
2124
|
getSelectedDate(t) {
|
|
2133
|
-
const s = this.selectedDate ? new Date(
|
|
2125
|
+
const s = this.selectedDate ? new Date(Rs(this.selectedDate)) : t;
|
|
2134
2126
|
return new Date(s.getFullYear(), s.getMonth(), s.getDate());
|
|
2135
2127
|
}
|
|
2136
2128
|
/**
|
|
@@ -2173,7 +2165,7 @@ class _s extends C {
|
|
|
2173
2165
|
* @returns {string}
|
|
2174
2166
|
*/
|
|
2175
2167
|
getMonthName(t) {
|
|
2176
|
-
return
|
|
2168
|
+
return ee.monthNames[t];
|
|
2177
2169
|
}
|
|
2178
2170
|
/**
|
|
2179
2171
|
* This will go to the previous month.
|
|
@@ -2205,7 +2197,7 @@ class _s extends C {
|
|
|
2205
2197
|
*/
|
|
2206
2198
|
setCurrentDate(t, s, n = null) {
|
|
2207
2199
|
const a = this.data;
|
|
2208
|
-
a.current.month = t, a.current.year = s, typeof n == "number" && (a.current.date =
|
|
2200
|
+
a.current.month = t, a.current.year = s, typeof n == "number" && (a.current.date = P(n)), a.currentDate = `${s}-${P(t + 1)}-${a.current.date}`, a.monthName = this.getMonthName(t);
|
|
2209
2201
|
}
|
|
2210
2202
|
/**
|
|
2211
2203
|
* This will select a date.
|
|
@@ -2227,7 +2219,7 @@ class _s extends C {
|
|
|
2227
2219
|
T("view", (t) => {
|
|
2228
2220
|
switch (t) {
|
|
2229
2221
|
case "months":
|
|
2230
|
-
return
|
|
2222
|
+
return Ns(
|
|
2231
2223
|
{
|
|
2232
2224
|
// @ts-ignore
|
|
2233
2225
|
currentMonth: this.data.current.month,
|
|
@@ -2239,7 +2231,7 @@ class _s extends C {
|
|
|
2239
2231
|
}
|
|
2240
2232
|
);
|
|
2241
2233
|
case "years":
|
|
2242
|
-
return
|
|
2234
|
+
return _s(
|
|
2243
2235
|
{
|
|
2244
2236
|
// @ts-ignore
|
|
2245
2237
|
currentMonth: this.data.current.month,
|
|
@@ -2251,7 +2243,7 @@ class _s extends C {
|
|
|
2251
2243
|
}
|
|
2252
2244
|
);
|
|
2253
2245
|
default:
|
|
2254
|
-
return
|
|
2246
|
+
return Ws({
|
|
2255
2247
|
// @ts-ignore
|
|
2256
2248
|
current: this.data.current,
|
|
2257
2249
|
// @ts-ignore
|
|
@@ -2272,57 +2264,57 @@ class _s extends C {
|
|
|
2272
2264
|
]);
|
|
2273
2265
|
}
|
|
2274
2266
|
}
|
|
2275
|
-
const
|
|
2267
|
+
const Gs = (e) => {
|
|
2276
2268
|
let t = "";
|
|
2277
2269
|
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;
|
|
2278
|
-
},
|
|
2270
|
+
}, Ks = (e) => {
|
|
2279
2271
|
if (e.length !== 8)
|
|
2280
2272
|
return null;
|
|
2281
2273
|
const t = parseInt(e.substring(0, 2), 10), s = parseInt(e.substring(2, 4), 10), n = parseInt(e.substring(4, 8), 10);
|
|
2282
2274
|
return t >= 1 && t <= 12 && s >= 1 && s <= 31 && n >= 1900 ? `${n}-${t.toString().padStart(2, "0")}-${s.toString().padStart(2, "0")}` : null;
|
|
2283
|
-
},
|
|
2275
|
+
}, Qs = ({ bind: e, required: t }) => p({
|
|
2284
2276
|
cache: "input",
|
|
2285
2277
|
class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
|
|
2286
2278
|
bind: e,
|
|
2287
2279
|
required: t
|
|
2288
|
-
}),
|
|
2280
|
+
}), Js = ({ placeholder: e, handleInputChange: t, handleInputFocus: s }) => p({
|
|
2289
2281
|
cache: "dateInput",
|
|
2290
2282
|
class: "flex-1 bg-transparent outline-none placeholder:text-muted-foreground border-0",
|
|
2291
2283
|
placeholder: e || "mm/dd/yyyy",
|
|
2292
2284
|
input: t,
|
|
2293
2285
|
focus: s,
|
|
2294
|
-
onState: ["selectedDate", (n) => n ?
|
|
2295
|
-
}),
|
|
2286
|
+
onState: ["selectedDate", (n) => n ? ee.format("standard", n) : ""]
|
|
2287
|
+
}), Zs = ({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) => o(
|
|
2296
2288
|
{
|
|
2297
2289
|
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"
|
|
2298
2290
|
},
|
|
2299
2291
|
[
|
|
2300
|
-
|
|
2301
|
-
|
|
2292
|
+
Qs({ bind: e, required: t }),
|
|
2293
|
+
Js({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
|
|
2302
2294
|
w(
|
|
2303
2295
|
{
|
|
2304
2296
|
class: "shrink-0 hover:bg-muted/50 rounded p-1 cursor-pointer",
|
|
2305
2297
|
click: s
|
|
2306
2298
|
},
|
|
2307
2299
|
[
|
|
2308
|
-
|
|
2300
|
+
Y({ html: u.calendar.days })
|
|
2309
2301
|
]
|
|
2310
2302
|
)
|
|
2311
2303
|
]
|
|
2312
|
-
),
|
|
2313
|
-
(s, n, a) => new
|
|
2304
|
+
), Xs = ({ handleDateSelect: e, blockPriorDates: t }) => xe(
|
|
2305
|
+
(s, n, a) => new te({
|
|
2314
2306
|
cache: "dropdown",
|
|
2315
2307
|
parent: a,
|
|
2316
2308
|
button: a.panel,
|
|
2317
2309
|
size: "fit"
|
|
2318
2310
|
}, [
|
|
2319
|
-
new
|
|
2311
|
+
new qs({
|
|
2320
2312
|
selectedDate: a.state.selectedDate,
|
|
2321
2313
|
selectedCallBack: e,
|
|
2322
2314
|
blockPriorDates: t
|
|
2323
2315
|
})
|
|
2324
2316
|
])
|
|
2325
|
-
),
|
|
2317
|
+
), io = O(
|
|
2326
2318
|
{
|
|
2327
2319
|
/**
|
|
2328
2320
|
* The initial state of the DatePicker.
|
|
@@ -2351,9 +2343,9 @@ const qs = (e) => {
|
|
|
2351
2343
|
*/
|
|
2352
2344
|
handleInputChange(e) {
|
|
2353
2345
|
const s = e.target.value.replace(/\D/g, "");
|
|
2354
|
-
e.target.value =
|
|
2355
|
-
const n =
|
|
2356
|
-
n && (this.state.selectedDate = n, this.input.value = n,
|
|
2346
|
+
e.target.value = Gs(s);
|
|
2347
|
+
const n = Ks(s);
|
|
2348
|
+
n && (this.state.selectedDate = n, this.input.value = n, L.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(n));
|
|
2357
2349
|
},
|
|
2358
2350
|
/**
|
|
2359
2351
|
* Handles input focus - select all text for easy editing.
|
|
@@ -2369,7 +2361,7 @@ const qs = (e) => {
|
|
|
2369
2361
|
* @param {string} date
|
|
2370
2362
|
*/
|
|
2371
2363
|
handleDateSelect(e) {
|
|
2372
|
-
this.state.selectedDate = e, this.state.open = !1, this.input.value = e,
|
|
2364
|
+
this.state.selectedDate = e, this.state.open = !1, this.input.value = e, L.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(e);
|
|
2373
2365
|
},
|
|
2374
2366
|
/**
|
|
2375
2367
|
* Toggles the calendar popover.
|
|
@@ -2389,7 +2381,7 @@ const qs = (e) => {
|
|
|
2389
2381
|
return o(
|
|
2390
2382
|
{ class: "relative w-full max-w-[320px]" },
|
|
2391
2383
|
[
|
|
2392
|
-
|
|
2384
|
+
Zs({
|
|
2393
2385
|
toggleOpen: this.toggleOpen.bind(this),
|
|
2394
2386
|
bind: this.bind,
|
|
2395
2387
|
required: this.required,
|
|
@@ -2397,7 +2389,7 @@ const qs = (e) => {
|
|
|
2397
2389
|
handleInputFocus: this.handleInputFocus.bind(this),
|
|
2398
2390
|
placeholder: this.placeholder
|
|
2399
2391
|
}),
|
|
2400
|
-
|
|
2392
|
+
Xs({
|
|
2401
2393
|
handleDateSelect: this.handleDateSelect.bind(this),
|
|
2402
2394
|
blockPriorDates: this.blockPriorDates || !1
|
|
2403
2395
|
})
|
|
@@ -2418,15 +2410,15 @@ const qs = (e) => {
|
|
|
2418
2410
|
variant: "icon",
|
|
2419
2411
|
icon: e === "Previous" ? u.chevron.single.left : u.chevron.single.right
|
|
2420
2412
|
}
|
|
2421
|
-
),
|
|
2413
|
+
), en = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => o({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
|
|
2422
2414
|
b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
|
|
2423
2415
|
b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
|
|
2424
2416
|
Ae({ label: "Previous", click: n }),
|
|
2425
2417
|
Ae({ label: "Next", click: s })
|
|
2426
|
-
]),
|
|
2418
|
+
]), tn = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), sn = () => o(
|
|
2427
2419
|
{ class: "grid grid-cols-7 gap-1 text-center text-xs font-medium text-muted-foreground mb-2" },
|
|
2428
|
-
["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(
|
|
2429
|
-
),
|
|
2420
|
+
["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(tn)
|
|
2421
|
+
), nn = ({ day: e, iso: t, disabled: s, isStart: n, isEnd: a, isBetween: l, isOtherMonth: i, click: c }) => {
|
|
2430
2422
|
let h = "ghost", m = "";
|
|
2431
2423
|
return n || a ? (h = "default", m = "bg-primary text-primary-foreground hover:bg-primary/90") : l && (m = "bg-accent text-accent-foreground hover:bg-accent/80"), s && (m += " opacity-50 cursor-not-allowed"), i && (m += " text-muted-foreground opacity-50"), b(
|
|
2432
2424
|
{
|
|
@@ -2439,46 +2431,46 @@ const qs = (e) => {
|
|
|
2439
2431
|
},
|
|
2440
2432
|
e.toString()
|
|
2441
2433
|
);
|
|
2442
|
-
},
|
|
2443
|
-
const { start: a, end: l } = t, i = new Date(t.year, t.month, 1).getDay(), c = new Date(t.year, t.month + 1, 0).getDate(), h = [], m = t.month === 0 ? 11 : t.month - 1, v = t.month === 0 ? t.year - 1 : t.year,
|
|
2434
|
+
}, an = ({ today: e, current: t, blockPriorDates: s, onDateClick: n }) => {
|
|
2435
|
+
const { start: a, end: l } = t, i = new Date(t.year, t.month, 1).getDay(), c = new Date(t.year, t.month + 1, 0).getDate(), h = [], m = t.month === 0 ? 11 : t.month - 1, v = t.month === 0 ? t.year - 1 : t.year, _ = new Date(v, m + 1, 0).getDate(), A = t.month === 11 ? 0 : t.month + 1, E = t.month === 11 ? t.year + 1 : t.year;
|
|
2444
2436
|
for (let f = i - 1; f >= 0; f--) {
|
|
2445
|
-
const d =
|
|
2437
|
+
const d = _ - f, y = j(v, m, d), S = new Date(v, m, d), $ = new Date(e.year, e.month, e.date), R = S < $, q = s && R, G = a === y, K = l === y, lt = a && l && y > a && y < l;
|
|
2446
2438
|
h.push({
|
|
2447
2439
|
day: d,
|
|
2448
2440
|
iso: y,
|
|
2449
|
-
disabled:
|
|
2450
|
-
isStart:
|
|
2451
|
-
isEnd:
|
|
2441
|
+
disabled: q,
|
|
2442
|
+
isStart: G,
|
|
2443
|
+
isEnd: K,
|
|
2452
2444
|
isBetween: lt,
|
|
2453
2445
|
isOtherMonth: !0,
|
|
2454
2446
|
click: () => n(y)
|
|
2455
2447
|
});
|
|
2456
2448
|
}
|
|
2457
2449
|
for (let f = 1; f <= c; f++) {
|
|
2458
|
-
const d =
|
|
2450
|
+
const d = j(t.year, t.month, f), y = new Date(t.year, t.month, f), S = new Date(e.year, e.month, e.date), $ = y < S, R = s && $, q = a === d, G = l === d, K = a && l && d > a && d < l;
|
|
2459
2451
|
h.push({
|
|
2460
2452
|
day: f,
|
|
2461
2453
|
iso: d,
|
|
2462
2454
|
disabled: R,
|
|
2463
|
-
isStart:
|
|
2464
|
-
isEnd:
|
|
2465
|
-
isBetween:
|
|
2455
|
+
isStart: q,
|
|
2456
|
+
isEnd: G,
|
|
2457
|
+
isBetween: K,
|
|
2466
2458
|
isOtherMonth: !1,
|
|
2467
2459
|
click: () => {
|
|
2468
2460
|
n(d);
|
|
2469
2461
|
}
|
|
2470
2462
|
});
|
|
2471
2463
|
}
|
|
2472
|
-
const
|
|
2473
|
-
for (let f = 1; f <=
|
|
2474
|
-
const d =
|
|
2464
|
+
const ke = (7 - h.length % 7) % 7;
|
|
2465
|
+
for (let f = 1; f <= ke; f++) {
|
|
2466
|
+
const d = j(E, A, f), y = new Date(E, A, f), S = new Date(e.year, e.month, e.date), $ = y < S, R = s && $, q = a === d, G = l === d, K = a && l && d > a && d < l;
|
|
2475
2467
|
h.push({
|
|
2476
2468
|
day: f,
|
|
2477
2469
|
iso: d,
|
|
2478
2470
|
disabled: R,
|
|
2479
|
-
isStart:
|
|
2480
|
-
isEnd:
|
|
2481
|
-
isBetween:
|
|
2471
|
+
isStart: q,
|
|
2472
|
+
isEnd: G,
|
|
2473
|
+
isBetween: K,
|
|
2482
2474
|
isOtherMonth: !0,
|
|
2483
2475
|
click: () => n(d)
|
|
2484
2476
|
});
|
|
@@ -2486,7 +2478,7 @@ const qs = (e) => {
|
|
|
2486
2478
|
return o(
|
|
2487
2479
|
{ class: "grid grid-cols-7 gap-1" },
|
|
2488
2480
|
h.map(
|
|
2489
|
-
(f, d) =>
|
|
2481
|
+
(f, d) => nn({
|
|
2490
2482
|
day: f.day,
|
|
2491
2483
|
iso: f.iso,
|
|
2492
2484
|
disabled: f.disabled,
|
|
@@ -2498,8 +2490,8 @@ const qs = (e) => {
|
|
|
2498
2490
|
})
|
|
2499
2491
|
)
|
|
2500
2492
|
);
|
|
2501
|
-
},
|
|
2502
|
-
|
|
2493
|
+
}, on = r((e, t) => o({ class: "flex flex-auto flex-col" }, [
|
|
2494
|
+
en({
|
|
2503
2495
|
// @ts-ignore
|
|
2504
2496
|
onMonthClick: e.onMonthClick,
|
|
2505
2497
|
// @ts-ignore
|
|
@@ -2514,8 +2506,8 @@ const qs = (e) => {
|
|
|
2514
2506
|
onSet: [
|
|
2515
2507
|
"currentDate",
|
|
2516
2508
|
() => [
|
|
2517
|
-
|
|
2518
|
-
|
|
2509
|
+
sn(),
|
|
2510
|
+
an({
|
|
2519
2511
|
// @ts-ignore
|
|
2520
2512
|
today: e.today,
|
|
2521
2513
|
// @ts-ignore
|
|
@@ -2528,9 +2520,9 @@ const qs = (e) => {
|
|
|
2528
2520
|
]
|
|
2529
2521
|
]
|
|
2530
2522
|
})
|
|
2531
|
-
])),
|
|
2523
|
+
])), ln = ({ currentMonth: e, currentYear: t, onSelect: s }) => o(
|
|
2532
2524
|
{ class: "grid grid-cols-3 gap-2" },
|
|
2533
|
-
|
|
2525
|
+
ee.monthNames.map(
|
|
2534
2526
|
(n, a) => b(
|
|
2535
2527
|
{
|
|
2536
2528
|
click: (l) => {
|
|
@@ -2542,25 +2534,25 @@ const qs = (e) => {
|
|
|
2542
2534
|
n.substring(0, 3)
|
|
2543
2535
|
)
|
|
2544
2536
|
)
|
|
2545
|
-
),
|
|
2546
|
-
|
|
2537
|
+
), rn = ({ start: e, end: t, selecting: s, onSelectStart: n, onSelectEnd: a }) => o({ class: "flex gap-x-2 mb-4" }, [
|
|
2538
|
+
Q("selecting", (l) => b({
|
|
2547
2539
|
click: n,
|
|
2548
2540
|
variant: l === "start" ? "primary" : "outline",
|
|
2549
2541
|
class: "flex-1"
|
|
2550
2542
|
}, [
|
|
2551
|
-
o({ class: "font-medium" },
|
|
2543
|
+
o({ class: "font-medium" }, Ee("current.start", "Start Date"))
|
|
2552
2544
|
])),
|
|
2553
|
-
|
|
2545
|
+
Q("selecting", (l) => b({
|
|
2554
2546
|
click: a,
|
|
2555
2547
|
variant: l === "end" ? "primary" : "outline",
|
|
2556
2548
|
class: "flex-1"
|
|
2557
2549
|
}, [
|
|
2558
|
-
o({ class: "font-medium" },
|
|
2550
|
+
o({ class: "font-medium" }, Ee("current.end", "End Date"))
|
|
2559
2551
|
]))
|
|
2560
|
-
]),
|
|
2552
|
+
]), Ee = (e, t) => [`[[${e}]]`, (s) => s == null ? t : cn(s)], cn = (e) => {
|
|
2561
2553
|
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"];
|
|
2562
2554
|
return `${s[t.getDay()]}, ${t.getDate()} ${n[t.getMonth()]}`;
|
|
2563
|
-
},
|
|
2555
|
+
}, dn = ({ currentYear: e, onSelect: t }) => {
|
|
2564
2556
|
const s = e - 50, n = Array.from({ length: 101 }, (a, l) => s + l);
|
|
2565
2557
|
return o(
|
|
2566
2558
|
{ class: "grid grid-cols-4 gap-2 overflow-y-auto max-h-72" },
|
|
@@ -2578,7 +2570,7 @@ const qs = (e) => {
|
|
|
2578
2570
|
)
|
|
2579
2571
|
);
|
|
2580
2572
|
};
|
|
2581
|
-
class
|
|
2573
|
+
class un extends C {
|
|
2582
2574
|
/**
|
|
2583
2575
|
* Declare compiler props.
|
|
2584
2576
|
*
|
|
@@ -2601,7 +2593,7 @@ class dn extends C {
|
|
|
2601
2593
|
year: t.getFullYear()
|
|
2602
2594
|
},
|
|
2603
2595
|
monthName: this.getMonthName(n),
|
|
2604
|
-
currentData: `${s.getFullYear()}-${
|
|
2596
|
+
currentData: `${s.getFullYear()}-${P(s.getMonth() + 1)}-${P(s.getDate())}`,
|
|
2605
2597
|
current: {
|
|
2606
2598
|
date: t.getDate(),
|
|
2607
2599
|
month: n,
|
|
@@ -2619,7 +2611,7 @@ class dn extends C {
|
|
|
2619
2611
|
* @returns {string}
|
|
2620
2612
|
*/
|
|
2621
2613
|
getMonthName(t) {
|
|
2622
|
-
return
|
|
2614
|
+
return ee.monthNames[t];
|
|
2623
2615
|
}
|
|
2624
2616
|
/**
|
|
2625
2617
|
* Initialize component state.
|
|
@@ -2665,7 +2657,7 @@ class dn extends C {
|
|
|
2665
2657
|
*/
|
|
2666
2658
|
setCurrent({ month: t, year: s, date: n = null }) {
|
|
2667
2659
|
const a = this.data.current;
|
|
2668
|
-
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}-${
|
|
2660
|
+
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}-${P(t + 1)}-${P(a.date)}`;
|
|
2669
2661
|
}
|
|
2670
2662
|
/**
|
|
2671
2663
|
* Render the range calendar.
|
|
@@ -2675,7 +2667,7 @@ class dn extends C {
|
|
|
2675
2667
|
render() {
|
|
2676
2668
|
const { today: t, current: s, selecting: n } = this.data, { start: a, end: l } = s;
|
|
2677
2669
|
return o({ class: "range-calendar border border-border rounded-lg shadow-md p-4 w-full max-w-sm min-w-80" }, [
|
|
2678
|
-
|
|
2670
|
+
rn({
|
|
2679
2671
|
start: a,
|
|
2680
2672
|
end: l,
|
|
2681
2673
|
selecting: n,
|
|
@@ -2689,7 +2681,7 @@ class dn extends C {
|
|
|
2689
2681
|
T("view", (i) => {
|
|
2690
2682
|
switch (i) {
|
|
2691
2683
|
case "months":
|
|
2692
|
-
return
|
|
2684
|
+
return ln(
|
|
2693
2685
|
{
|
|
2694
2686
|
currentMonth: s.month,
|
|
2695
2687
|
currentYear: s.year,
|
|
@@ -2699,7 +2691,7 @@ class dn extends C {
|
|
|
2699
2691
|
}
|
|
2700
2692
|
);
|
|
2701
2693
|
case "years":
|
|
2702
|
-
return
|
|
2694
|
+
return dn(
|
|
2703
2695
|
{
|
|
2704
2696
|
currentYear: s.year,
|
|
2705
2697
|
onSelect: (c) => {
|
|
@@ -2708,7 +2700,7 @@ class dn extends C {
|
|
|
2708
2700
|
}
|
|
2709
2701
|
);
|
|
2710
2702
|
default:
|
|
2711
|
-
return
|
|
2703
|
+
return on({
|
|
2712
2704
|
// @ts-ignore
|
|
2713
2705
|
monthName: this.data.monthName,
|
|
2714
2706
|
year: s.year,
|
|
@@ -2736,35 +2728,35 @@ class dn extends C {
|
|
|
2736
2728
|
]);
|
|
2737
2729
|
}
|
|
2738
2730
|
}
|
|
2739
|
-
const
|
|
2731
|
+
const hn = ({ bind: e, required: t }) => p({
|
|
2740
2732
|
cache: "input",
|
|
2741
2733
|
class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
|
|
2742
2734
|
bind: e,
|
|
2743
2735
|
required: t
|
|
2744
|
-
}),
|
|
2736
|
+
}), fn = ({ bind: e, required: t, toggleOpen: s }) => w({
|
|
2745
2737
|
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",
|
|
2746
2738
|
click: s
|
|
2747
2739
|
}, [
|
|
2748
|
-
|
|
2749
|
-
|
|
2740
|
+
hn({ bind: e, required: t }),
|
|
2741
|
+
W(({ state: n }) => [
|
|
2750
2742
|
g(U.date(["[[start]]", n], "Start Date")),
|
|
2751
2743
|
g(" - "),
|
|
2752
2744
|
g(U.date(["[[end]]", n], "End Date"))
|
|
2753
2745
|
]),
|
|
2754
|
-
|
|
2755
|
-
]),
|
|
2746
|
+
Y({ html: u.calendar.days })
|
|
2747
|
+
]), gn = ({ handleDateSelect: e, blockPriorDates: t }) => xe((s, n, a) => new te({
|
|
2756
2748
|
cache: "dropdown",
|
|
2757
2749
|
parent: a,
|
|
2758
2750
|
button: a.panel,
|
|
2759
2751
|
size: "xl"
|
|
2760
2752
|
}, [
|
|
2761
|
-
new
|
|
2753
|
+
new un({
|
|
2762
2754
|
startDate: a.state.start,
|
|
2763
2755
|
endDate: a.state.end,
|
|
2764
2756
|
onRangeSelect: e,
|
|
2765
2757
|
blockPriorDates: t
|
|
2766
2758
|
})
|
|
2767
|
-
])),
|
|
2759
|
+
])), co = O(
|
|
2768
2760
|
{
|
|
2769
2761
|
/**
|
|
2770
2762
|
* The initial state of the DateRangePicker.
|
|
@@ -2797,15 +2789,15 @@ const un = ({ bind: e, required: t }) => p({
|
|
|
2797
2789
|
*/
|
|
2798
2790
|
render() {
|
|
2799
2791
|
const e = (s, { state: n }) => n.toggle("open"), t = (s, n) => {
|
|
2800
|
-
this.state.start = s, this.state.end = n, this.state.open = !1, this.input.value = `${s}-${n}`,
|
|
2792
|
+
this.state.start = s, this.state.end = n, this.state.open = !1, this.input.value = `${s}-${n}`, L.trigger("change", this.input), typeof this.onChange == "function" && this.onChange({ start: s, end: n }, this.parent);
|
|
2801
2793
|
};
|
|
2802
2794
|
return o({ class: "relative w-full max-w-[320px]" }, [
|
|
2803
|
-
|
|
2795
|
+
fn({
|
|
2804
2796
|
toggleOpen: e,
|
|
2805
2797
|
bind: this.bind,
|
|
2806
2798
|
required: this.required
|
|
2807
2799
|
}),
|
|
2808
|
-
|
|
2800
|
+
gn({
|
|
2809
2801
|
handleDateSelect: t,
|
|
2810
2802
|
blockPriorDates: this.blockPriorDates || !1
|
|
2811
2803
|
})
|
|
@@ -2813,11 +2805,11 @@ const un = ({ bind: e, required: t }) => p({
|
|
|
2813
2805
|
}
|
|
2814
2806
|
}
|
|
2815
2807
|
);
|
|
2816
|
-
function
|
|
2808
|
+
function mn(e) {
|
|
2817
2809
|
let t = "";
|
|
2818
2810
|
return e.length > 0 && (t = e.substring(0, 2), e.length > 2 && (t += ":" + e.substring(2, 4))), t;
|
|
2819
2811
|
}
|
|
2820
|
-
function
|
|
2812
|
+
function bn(e) {
|
|
2821
2813
|
if (e.length < 4)
|
|
2822
2814
|
return { formattedTime: null, hour: null, minute: null, meridian: null };
|
|
2823
2815
|
const t = parseInt(e.substring(0, 2), 10), s = parseInt(e.substring(2, 4), 10);
|
|
@@ -2831,7 +2823,7 @@ function mn(e) {
|
|
|
2831
2823
|
meridian: a
|
|
2832
2824
|
};
|
|
2833
2825
|
}
|
|
2834
|
-
function
|
|
2826
|
+
function xn({ bind: e, required: t }) {
|
|
2835
2827
|
return p({
|
|
2836
2828
|
cache: "input",
|
|
2837
2829
|
class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
|
|
@@ -2839,7 +2831,7 @@ function bn({ bind: e, required: t }) {
|
|
|
2839
2831
|
required: t
|
|
2840
2832
|
});
|
|
2841
2833
|
}
|
|
2842
|
-
function
|
|
2834
|
+
function pn({ placeholder: e, handleInputChange: t, handleInputFocus: s }) {
|
|
2843
2835
|
return p({
|
|
2844
2836
|
cache: "timeInput",
|
|
2845
2837
|
class: "flex-1 bg-transparent outline-none placeholder:text-muted-foreground border-0",
|
|
@@ -2849,21 +2841,21 @@ function xn({ placeholder: e, handleInputChange: t, handleInputFocus: s }) {
|
|
|
2849
2841
|
onState: ["selectedTime", (n) => n || ""]
|
|
2850
2842
|
});
|
|
2851
2843
|
}
|
|
2852
|
-
function
|
|
2844
|
+
function yn({ bind: e, required: t, toggleOpen: s, handleInputChange: n, handleInputFocus: a, placeholder: l }) {
|
|
2853
2845
|
return o(
|
|
2854
2846
|
{
|
|
2855
2847
|
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"
|
|
2856
2848
|
},
|
|
2857
2849
|
[
|
|
2858
|
-
|
|
2859
|
-
|
|
2850
|
+
xn({ bind: e, required: t }),
|
|
2851
|
+
pn({ placeholder: l, handleInputChange: n, handleInputFocus: a }),
|
|
2860
2852
|
w(
|
|
2861
2853
|
{
|
|
2862
2854
|
class: "shrink-0 hover:bg-muted/50 rounded p-1 cursor-pointer",
|
|
2863
2855
|
click: s
|
|
2864
2856
|
},
|
|
2865
2857
|
[
|
|
2866
|
-
|
|
2858
|
+
Y({ html: u.clock })
|
|
2867
2859
|
]
|
|
2868
2860
|
)
|
|
2869
2861
|
]
|
|
@@ -2883,9 +2875,9 @@ function ie({ items: e, handleTimeSelect: t, state: s, stateValue: n, pad: a = !
|
|
|
2883
2875
|
})
|
|
2884
2876
|
);
|
|
2885
2877
|
}
|
|
2886
|
-
function
|
|
2887
|
-
return
|
|
2888
|
-
(t, s, n) => new
|
|
2878
|
+
function wn({ handleTimeSelect: e }) {
|
|
2879
|
+
return xe(
|
|
2880
|
+
(t, s, n) => new te(
|
|
2889
2881
|
{
|
|
2890
2882
|
cache: "dropdown",
|
|
2891
2883
|
parent: n,
|
|
@@ -2930,7 +2922,7 @@ function yn({ handleTimeSelect: e }) {
|
|
|
2930
2922
|
)
|
|
2931
2923
|
);
|
|
2932
2924
|
}
|
|
2933
|
-
function
|
|
2925
|
+
function Ue(e) {
|
|
2934
2926
|
if (!e)
|
|
2935
2927
|
return { hour: null, minute: null, meridian: null };
|
|
2936
2928
|
const t = /^(\d{1,2}):(\d{2})(?::(\d{2}))?\s?(AM|PM)?$/i, s = e.match(t);
|
|
@@ -2943,7 +2935,7 @@ function Ee(e) {
|
|
|
2943
2935
|
meridian: l
|
|
2944
2936
|
});
|
|
2945
2937
|
}
|
|
2946
|
-
const
|
|
2938
|
+
const uo = O(
|
|
2947
2939
|
{
|
|
2948
2940
|
/**
|
|
2949
2941
|
* The initial shallow state of the TimePicker.
|
|
@@ -2951,7 +2943,7 @@ const co = O(
|
|
|
2951
2943
|
* @member {object} state
|
|
2952
2944
|
*/
|
|
2953
2945
|
state() {
|
|
2954
|
-
const e = this.selectedTime ?? null, { hour: t, minute: s, meridian: n } =
|
|
2946
|
+
const e = this.selectedTime ?? null, { hour: t, minute: s, meridian: n } = Ue(e);
|
|
2955
2947
|
return {
|
|
2956
2948
|
selectedTime: e,
|
|
2957
2949
|
open: !1,
|
|
@@ -2967,7 +2959,7 @@ const co = O(
|
|
|
2967
2959
|
*/
|
|
2968
2960
|
after() {
|
|
2969
2961
|
if (this.input.value) {
|
|
2970
|
-
const { hour: e, minute: t, meridian: s } =
|
|
2962
|
+
const { hour: e, minute: t, meridian: s } = Ue(this.input.value);
|
|
2971
2963
|
this.state.set({
|
|
2972
2964
|
hour: e,
|
|
2973
2965
|
minute: t,
|
|
@@ -2991,14 +2983,14 @@ const co = O(
|
|
|
2991
2983
|
* @param {Event} e
|
|
2992
2984
|
*/
|
|
2993
2985
|
handleInputChange(e) {
|
|
2994
|
-
let t = e.target.value.replace(/[^\d]/g, ""), s =
|
|
2995
|
-
const n =
|
|
2986
|
+
let t = e.target.value.replace(/[^\d]/g, ""), s = mn(t);
|
|
2987
|
+
const n = bn(t);
|
|
2996
2988
|
n.formattedTime && (s = n.formattedTime, this.state.set({
|
|
2997
2989
|
hour: n.hour,
|
|
2998
2990
|
minute: n.minute,
|
|
2999
2991
|
meridian: n.meridian,
|
|
3000
2992
|
selectedTime: n.formattedTime
|
|
3001
|
-
}), this.input.value = n.formattedTime,
|
|
2993
|
+
}), this.input.value = n.formattedTime, L.trigger("change", this.input), typeof this.change == "function" && this.change(n.formattedTime)), e.target.value = s;
|
|
3002
2994
|
},
|
|
3003
2995
|
/**
|
|
3004
2996
|
* Handles input focus - select all text for easy editing.
|
|
@@ -3016,7 +3008,7 @@ const co = O(
|
|
|
3016
3008
|
handleTimeSelect({ hour: e, minute: t, meridian: s }) {
|
|
3017
3009
|
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) {
|
|
3018
3010
|
const n = `${this.state.hour}:${this.state.minute} ${this.state.meridian}`;
|
|
3019
|
-
this.state.selectedTime = n, this.state.open = !1, this.input.value = n,
|
|
3011
|
+
this.state.selectedTime = n, this.state.open = !1, this.input.value = n, L.trigger("change", this.input), typeof this.change == "function" && this.change(n);
|
|
3020
3012
|
}
|
|
3021
3013
|
},
|
|
3022
3014
|
/**
|
|
@@ -3028,7 +3020,7 @@ const co = O(
|
|
|
3028
3020
|
return o(
|
|
3029
3021
|
{ class: "relative w-full max-w-[320px]" },
|
|
3030
3022
|
[
|
|
3031
|
-
|
|
3023
|
+
yn({
|
|
3032
3024
|
toggleOpen: this.toggleOpen.bind(this),
|
|
3033
3025
|
bind: this.bind,
|
|
3034
3026
|
required: this.required,
|
|
@@ -3036,18 +3028,18 @@ const co = O(
|
|
|
3036
3028
|
handleInputFocus: this.handleInputFocus.bind(this),
|
|
3037
3029
|
placeholder: this.placeholder
|
|
3038
3030
|
}),
|
|
3039
|
-
|
|
3031
|
+
wn({
|
|
3040
3032
|
handleTimeSelect: this.handleTimeSelect.bind(this)
|
|
3041
3033
|
})
|
|
3042
3034
|
]
|
|
3043
3035
|
);
|
|
3044
3036
|
}
|
|
3045
3037
|
}
|
|
3046
|
-
),
|
|
3038
|
+
), vn = (e, t) => o({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
|
|
3047
3039
|
x({ size: "lg" }, e)
|
|
3048
|
-
]),
|
|
3049
|
-
|
|
3050
|
-
]),
|
|
3040
|
+
]), kn = ({ title: e }) => Z({ class: "flex flex-auto items-center" }, [
|
|
3041
|
+
J({ class: "text-lg font-semibold" }, e)
|
|
3042
|
+
]), ho = r((e, t) => ht(
|
|
3051
3043
|
{
|
|
3052
3044
|
class: `fixed pullUpIn z-30 w-[98%] border md:w-full max-w-lg bg-popover text-foreground shadow-lg duration-200
|
|
3053
3045
|
rounded-lg flex flex-auto flex-col
|
|
@@ -3060,20 +3052,20 @@ const co = O(
|
|
|
3060
3052
|
o({ class: "flex flex-auto p-6 pb-12 md:pb-6" }, [
|
|
3061
3053
|
// Icon and content
|
|
3062
3054
|
// @ts-ignore
|
|
3063
|
-
e.icon &&
|
|
3055
|
+
e.icon && vn(e.icon, e.iconColor),
|
|
3064
3056
|
o({ class: "flex flex-auto flex-col gap-4" }, [
|
|
3065
3057
|
o({ class: "flex flex-auto flex-col gap-y-2" }, [
|
|
3066
|
-
|
|
3058
|
+
kn(e),
|
|
3067
3059
|
// @ts-ignore
|
|
3068
3060
|
e.description && k({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, e.description),
|
|
3069
3061
|
o({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, t)
|
|
3070
3062
|
]),
|
|
3071
3063
|
// @ts-ignore
|
|
3072
|
-
e.buttons &&
|
|
3064
|
+
e.buttons && fe({ class: "flex flex-col-reverse sm:flex-row sm:justify-end mt-6 gap-2 sm:gap-0 sm:gap-x-2" }, e.buttons)
|
|
3073
3065
|
])
|
|
3074
3066
|
])
|
|
3075
3067
|
]
|
|
3076
|
-
)),
|
|
3068
|
+
)), fo = r((e, t = []) => o({ class: "w-full max-w-md p-6 m-auto" }, [
|
|
3077
3069
|
Je({ class: "flex flex-auto flex-col" }, [
|
|
3078
3070
|
o({ class: "flex flex-auto flex-col gap-y-4" }, [
|
|
3079
3071
|
o({ class: "flex flex-auto items-center justify-center" }, [
|
|
@@ -3083,9 +3075,9 @@ const co = O(
|
|
|
3083
3075
|
x({ size: "lg" }, e.icon)
|
|
3084
3076
|
])
|
|
3085
3077
|
]),
|
|
3086
|
-
|
|
3078
|
+
Z({ class: "py-4 text-center" }, [
|
|
3087
3079
|
// @ts-ignore
|
|
3088
|
-
|
|
3080
|
+
J({ class: "text-xl font-bold" }, e.title),
|
|
3089
3081
|
// @ts-ignore
|
|
3090
3082
|
k({ class: "pb-8 text-muted-foreground" }, e.description || ""),
|
|
3091
3083
|
...t
|
|
@@ -3104,28 +3096,28 @@ r(({ value: e, label: t }) => w({
|
|
|
3104
3096
|
dataSet: ["performance", ["state", e, "active"]],
|
|
3105
3097
|
click: (s, { state: n }) => n.performance = e
|
|
3106
3098
|
}, t));
|
|
3107
|
-
const
|
|
3099
|
+
const Cn = (e, t) => {
|
|
3108
3100
|
const s = e.toggleAllSelectedRows();
|
|
3109
3101
|
t.state.checked = !s;
|
|
3110
|
-
},
|
|
3111
|
-
|
|
3112
|
-
]),
|
|
3102
|
+
}, Sn = (e) => We({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
|
|
3103
|
+
W((t) => new Yt({ class: "mr-2", onChange: (s, n) => Cn(t, n) }))
|
|
3104
|
+
]), $n = ({ align: e, sortable: t, key: s, label: n, sort: a, class: l }) => {
|
|
3113
3105
|
const i = e || "justify-start";
|
|
3114
|
-
return
|
|
3106
|
+
return We({
|
|
3115
3107
|
class: `cursor-pointer py-3 px-4 text-base ${l || ""}`,
|
|
3116
3108
|
click: t && (() => a(s))
|
|
3117
3109
|
}, [
|
|
3118
3110
|
o({ class: `flex flex-auto w-full items-center ${i}` }, [
|
|
3119
3111
|
g(n),
|
|
3120
|
-
t &&
|
|
3112
|
+
t && Y({ class: "ml-2", html: u.arrows.upDown })
|
|
3121
3113
|
])
|
|
3122
3114
|
]);
|
|
3123
|
-
},
|
|
3115
|
+
}, ve = (e) => ft([
|
|
3124
3116
|
gt({
|
|
3125
3117
|
class: "text-muted-foreground border-b",
|
|
3126
3118
|
map: [
|
|
3127
3119
|
e.headers,
|
|
3128
|
-
(t) => t.label === "checkbox" ?
|
|
3120
|
+
(t) => t.label === "checkbox" ? Sn({ toggle: e.toggle }) : $n({
|
|
3129
3121
|
align: t.align,
|
|
3130
3122
|
sortable: t.sortable,
|
|
3131
3123
|
key: t.key,
|
|
@@ -3134,7 +3126,7 @@ const kn = (e, t) => {
|
|
|
3134
3126
|
})
|
|
3135
3127
|
]
|
|
3136
3128
|
})
|
|
3137
|
-
]),
|
|
3129
|
+
]), Dn = ({ key: e, rows: t, selectRow: s, rowItem: n, emptyState: a, skeleton: l, columnCount: i }) => new wt({
|
|
3138
3130
|
cache: "list",
|
|
3139
3131
|
key: e,
|
|
3140
3132
|
items: t,
|
|
@@ -3223,14 +3215,14 @@ class et extends C {
|
|
|
3223
3215
|
render() {
|
|
3224
3216
|
const t = this.border !== !1 ? "border" : "", s = this.getHeaderColCount();
|
|
3225
3217
|
return o({ class: "w-full flex flex-auto flex-col" }, [
|
|
3226
|
-
|
|
3218
|
+
Q("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
|
|
3227
3219
|
o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
|
|
3228
|
-
|
|
3220
|
+
pe({ class: "w-full" }, [
|
|
3229
3221
|
// @ts-ignore
|
|
3230
|
-
this.headers &&
|
|
3222
|
+
this.headers && ve({ headers: this.headers, sort: (n) => this.sortRows(n) }),
|
|
3231
3223
|
// @ts-ignore
|
|
3232
3224
|
this.customHeader ?? null,
|
|
3233
|
-
|
|
3225
|
+
Dn({
|
|
3234
3226
|
// @ts-ignore
|
|
3235
3227
|
key: this.key,
|
|
3236
3228
|
// @ts-ignore
|
|
@@ -3309,7 +3301,7 @@ class et extends C {
|
|
|
3309
3301
|
this.data.selectedRows = [];
|
|
3310
3302
|
}
|
|
3311
3303
|
}
|
|
3312
|
-
const
|
|
3304
|
+
const In = (e) => new vt({
|
|
3313
3305
|
cache: "list",
|
|
3314
3306
|
loadMoreItems: e.loadMoreItems,
|
|
3315
3307
|
offset: e.offset,
|
|
@@ -3322,7 +3314,7 @@ const Dn = (e) => new vt({
|
|
|
3322
3314
|
skeleton: e.skeleton,
|
|
3323
3315
|
columnCount: e.columnCount
|
|
3324
3316
|
});
|
|
3325
|
-
class
|
|
3317
|
+
class Tn extends et {
|
|
3326
3318
|
/**
|
|
3327
3319
|
* Renders the DataTable component.
|
|
3328
3320
|
*
|
|
@@ -3331,14 +3323,14 @@ class In extends et {
|
|
|
3331
3323
|
render() {
|
|
3332
3324
|
const t = this.border !== !1 ? "border" : "", s = this.getHeaderColCount();
|
|
3333
3325
|
return o({ class: "w-full flex flex-auto flex-col" }, [
|
|
3334
|
-
|
|
3326
|
+
Q("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
|
|
3335
3327
|
o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
|
|
3336
|
-
|
|
3328
|
+
pe({ class: "w-full" }, [
|
|
3337
3329
|
// @ts-ignore
|
|
3338
|
-
this.headers &&
|
|
3330
|
+
this.headers && ve({ headers: this.headers, sort: (n) => this.sortRows(n) }),
|
|
3339
3331
|
// @ts-ignore
|
|
3340
3332
|
this.customHeader ?? null,
|
|
3341
|
-
|
|
3333
|
+
In({
|
|
3342
3334
|
// @ts-ignore
|
|
3343
3335
|
loadMoreItems: this.loadMoreItems,
|
|
3344
3336
|
// @ts-ignore
|
|
@@ -3374,7 +3366,7 @@ class In extends et {
|
|
|
3374
3366
|
this.list.refresh();
|
|
3375
3367
|
}
|
|
3376
3368
|
}
|
|
3377
|
-
const
|
|
3369
|
+
const go = r((e) => new Tn(
|
|
3378
3370
|
{
|
|
3379
3371
|
// @ts-ignore
|
|
3380
3372
|
cache: e.cache ?? "list",
|
|
@@ -3405,7 +3397,7 @@ const fo = r((e) => new In(
|
|
|
3405
3397
|
// @ts-ignore
|
|
3406
3398
|
skeleton: e.skeleton
|
|
3407
3399
|
}
|
|
3408
|
-
)),
|
|
3400
|
+
)), Mn = (e) => new kt({
|
|
3409
3401
|
cache: "list",
|
|
3410
3402
|
scrollContainer: e.scrollContainer,
|
|
3411
3403
|
loadMoreItems: e.loadMoreItems,
|
|
@@ -3419,7 +3411,7 @@ const fo = r((e) => new In(
|
|
|
3419
3411
|
skeleton: e.skeleton,
|
|
3420
3412
|
columnCount: e.columnCount
|
|
3421
3413
|
});
|
|
3422
|
-
class
|
|
3414
|
+
class Bn extends et {
|
|
3423
3415
|
/**
|
|
3424
3416
|
* Renders the DataTable component.
|
|
3425
3417
|
*
|
|
@@ -3428,14 +3420,14 @@ class Mn extends et {
|
|
|
3428
3420
|
render() {
|
|
3429
3421
|
const t = this.border !== !1 ? "border" : "", s = this.getHeaderColCount();
|
|
3430
3422
|
return o({ class: "w-full flex flex-auto flex-col" }, [
|
|
3431
|
-
|
|
3423
|
+
Q("hasItems", (n) => n === !1 && this.emptyState ? this.emptyState() : null),
|
|
3432
3424
|
o({ class: `w-full rounded-md ${t} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
|
|
3433
|
-
|
|
3425
|
+
pe({ class: "w-full" }, [
|
|
3434
3426
|
// @ts-ignore
|
|
3435
|
-
this.headers &&
|
|
3427
|
+
this.headers && ve({ headers: this.headers, sort: (n) => this.sortRows(n) }),
|
|
3436
3428
|
// @ts-ignore
|
|
3437
3429
|
this.customHeader ?? null,
|
|
3438
|
-
|
|
3430
|
+
Mn({
|
|
3439
3431
|
// @ts-ignore
|
|
3440
3432
|
scrollContainer: this.scrollContainer,
|
|
3441
3433
|
// @ts-ignore
|
|
@@ -3473,7 +3465,7 @@ class Mn extends et {
|
|
|
3473
3465
|
this.list.refresh();
|
|
3474
3466
|
}
|
|
3475
3467
|
}
|
|
3476
|
-
const
|
|
3468
|
+
const mo = r((e) => new Bn(
|
|
3477
3469
|
{
|
|
3478
3470
|
// @ts-ignore
|
|
3479
3471
|
cache: e.cache ?? "list",
|
|
@@ -3509,25 +3501,25 @@ const go = r((e) => new Mn(
|
|
|
3509
3501
|
)), Pn = r(({ name: e, email: t }) => o({ class: "min-w-0 flex-auto" }, [
|
|
3510
3502
|
k({ class: "text-base font-semibold leading-6 m-0" }, e),
|
|
3511
3503
|
k({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, t)
|
|
3512
|
-
])),
|
|
3504
|
+
])), zn = () => o({ class: "flex items-center gap-x-1.5" }, [
|
|
3513
3505
|
o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
|
|
3514
3506
|
o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
|
|
3515
3507
|
]),
|
|
3516
3508
|
k({ class: "text-xs leading-5 text-gray-500" }, "Online")
|
|
3517
|
-
]),
|
|
3509
|
+
]), On = (e) => k({ class: "text-xs leading-5 text-muted-foreground" }, [
|
|
3518
3510
|
g("Last seen "),
|
|
3519
3511
|
mt({ datetime: e }, "3h ago")
|
|
3520
|
-
]),
|
|
3512
|
+
]), Nn = (e, t) => e === "online" ? zn() : On(t), Rn = r(({ role: e, lastSeen: t, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
|
|
3521
3513
|
k({ class: "text-sm leading-6 m-0" }, e),
|
|
3522
|
-
|
|
3523
|
-
])),
|
|
3514
|
+
Nn(s, t)
|
|
3515
|
+
])), Fn = (e) => e.split(" ").map((s) => s[0]).join(""), jn = r((e) => be({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
|
|
3524
3516
|
o({ class: "flex min-w-0 gap-x-4" }, [
|
|
3525
3517
|
// @ts-ignore
|
|
3526
|
-
|
|
3518
|
+
ys({ src: e.image, alt: e.name, fallbackText: Fn(e.name) }),
|
|
3527
3519
|
// @ts-ignore
|
|
3528
3520
|
Pn({ name: e.name, email: e.email })
|
|
3529
3521
|
]),
|
|
3530
|
-
|
|
3522
|
+
Rn({
|
|
3531
3523
|
// @ts-ignore
|
|
3532
3524
|
role: e.role,
|
|
3533
3525
|
// @ts-ignore
|
|
@@ -3535,14 +3527,14 @@ const go = r((e) => new Mn(
|
|
|
3535
3527
|
// @ts-ignore
|
|
3536
3528
|
status: e.status
|
|
3537
3529
|
})
|
|
3538
|
-
])),
|
|
3530
|
+
])), bo = r((e) => new Ct({
|
|
3539
3531
|
cache: "list",
|
|
3540
3532
|
key: "name",
|
|
3541
3533
|
// @ts-ignore
|
|
3542
3534
|
items: e.users,
|
|
3543
3535
|
role: "list",
|
|
3544
3536
|
class: "divide-y divide-border",
|
|
3545
|
-
rowItem:
|
|
3537
|
+
rowItem: jn
|
|
3546
3538
|
}));
|
|
3547
3539
|
class Ln extends C {
|
|
3548
3540
|
/**
|
|
@@ -3605,7 +3597,7 @@ class Ln extends C {
|
|
|
3605
3597
|
});
|
|
3606
3598
|
}
|
|
3607
3599
|
}
|
|
3608
|
-
const
|
|
3600
|
+
const Hn = r(({ options: e, click: t }, s) => ({
|
|
3609
3601
|
tag: "li",
|
|
3610
3602
|
...{
|
|
3611
3603
|
class: `relative flex flex-row w-auto text-left p-0 transition-all cursor-pointer min-w-[48px] option${e ? " sub" : ""}`,
|
|
@@ -3621,7 +3613,7 @@ const jn = r(({ options: e, click: t }, s) => ({
|
|
|
3621
3613
|
}, [
|
|
3622
3614
|
x({ size: "sm" }, t)
|
|
3623
3615
|
]),
|
|
3624
|
-
|
|
3616
|
+
V({ class: "label flex flex-auto text-sm items-center cursor-pointer whitespace-nowrap" }, e),
|
|
3625
3617
|
s && g(
|
|
3626
3618
|
{
|
|
3627
3619
|
class: "flex justify-center items-center px-1 transition-all text-muted-foreground mr-2",
|
|
@@ -3656,7 +3648,7 @@ class tt extends C {
|
|
|
3656
3648
|
*/
|
|
3657
3649
|
render() {
|
|
3658
3650
|
const t = !this.options && this.callBack;
|
|
3659
|
-
return
|
|
3651
|
+
return Hn(
|
|
3660
3652
|
{ options: this.options, click: t },
|
|
3661
3653
|
[
|
|
3662
3654
|
this.addLink()
|
|
@@ -3698,10 +3690,10 @@ class tt extends C {
|
|
|
3698
3690
|
this.link.update(t);
|
|
3699
3691
|
}
|
|
3700
3692
|
}
|
|
3701
|
-
const
|
|
3702
|
-
|
|
3693
|
+
const En = r(({ map: e }, t) => X({ class: "navigation-group flex flex-col gap-2 list-none m-0 py-2 px-0", map: e }, [
|
|
3694
|
+
Ye({ class: "text-muted-foreground text-sm py-0 px-4 whitespace-nowrap" }, t)
|
|
3703
3695
|
]));
|
|
3704
|
-
class
|
|
3696
|
+
class Un extends C {
|
|
3705
3697
|
/**
|
|
3706
3698
|
* This will declare the props for the compiler.
|
|
3707
3699
|
*
|
|
@@ -3717,8 +3709,8 @@ class En extends C {
|
|
|
3717
3709
|
*/
|
|
3718
3710
|
render() {
|
|
3719
3711
|
const t = this.mapOptions(this.options), s = this.class || "", n = this.mobileBorder ? "border md:border-0 rounded-md" : "";
|
|
3720
|
-
return
|
|
3721
|
-
|
|
3712
|
+
return me({ class: `navigation flex flex-auto flex-col ${s}` }, [
|
|
3713
|
+
X({
|
|
3722
3714
|
class: `relative group flex flex-col gap-2 py-2 px-2 list-none m-0 ${n}`,
|
|
3723
3715
|
map: t
|
|
3724
3716
|
}),
|
|
@@ -3750,7 +3742,7 @@ class En extends C {
|
|
|
3750
3742
|
*/
|
|
3751
3743
|
addGroup(t) {
|
|
3752
3744
|
const s = this.mapOptions(t.options);
|
|
3753
|
-
return
|
|
3745
|
+
return En({ map: s }, t.group);
|
|
3754
3746
|
}
|
|
3755
3747
|
/**
|
|
3756
3748
|
* This will add a link.
|
|
@@ -3762,7 +3754,7 @@ class En extends C {
|
|
|
3762
3754
|
return new tt(t);
|
|
3763
3755
|
}
|
|
3764
3756
|
}
|
|
3765
|
-
class st extends
|
|
3757
|
+
class st extends Un {
|
|
3766
3758
|
onCreated() {
|
|
3767
3759
|
this.links = [];
|
|
3768
3760
|
}
|
|
@@ -3773,7 +3765,7 @@ class st extends En {
|
|
|
3773
3765
|
* @returns {object}
|
|
3774
3766
|
*/
|
|
3775
3767
|
setupSubNav(t) {
|
|
3776
|
-
return new
|
|
3768
|
+
return new Wn(
|
|
3777
3769
|
{
|
|
3778
3770
|
parentLink: t,
|
|
3779
3771
|
options: t.options
|
|
@@ -3808,11 +3800,11 @@ class st extends En {
|
|
|
3808
3800
|
};
|
|
3809
3801
|
}
|
|
3810
3802
|
}
|
|
3811
|
-
const
|
|
3803
|
+
const Yn = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), Vn = (e, t) => {
|
|
3812
3804
|
const s = e.link.panel.pathname;
|
|
3813
|
-
return !s && e.isSelected() ? !0 : e.exact ? t === s :
|
|
3805
|
+
return !s && e.isSelected() ? !0 : e.exact ? t === s : Yn(s, t);
|
|
3814
3806
|
};
|
|
3815
|
-
class
|
|
3807
|
+
class Wn extends st {
|
|
3816
3808
|
/**
|
|
3817
3809
|
* This will declare the props for the compiler.
|
|
3818
3810
|
*
|
|
@@ -3828,8 +3820,8 @@ class Vn extends st {
|
|
|
3828
3820
|
*/
|
|
3829
3821
|
render() {
|
|
3830
3822
|
const t = `navigation flex flex-auto flex-col sub ${this.mainClassName || ""}`, s = this.mapOptions(this.options);
|
|
3831
|
-
return
|
|
3832
|
-
|
|
3823
|
+
return me({ class: t, onState: this.onState() }, [
|
|
3824
|
+
X({ class: "relative group flex flex-col gap-2 py-2 px-0 list-none m-0" }, [...s, ...this.addSubs(), this.addWatcher()])
|
|
3833
3825
|
]);
|
|
3834
3826
|
}
|
|
3835
3827
|
/**
|
|
@@ -3841,7 +3833,7 @@ class Vn extends st {
|
|
|
3841
3833
|
addWatcher() {
|
|
3842
3834
|
return {
|
|
3843
3835
|
watch: {
|
|
3844
|
-
value: ["[[path]]",
|
|
3836
|
+
value: ["[[path]]", Ce.data],
|
|
3845
3837
|
callBack: this.updateLinks.bind(this)
|
|
3846
3838
|
}
|
|
3847
3839
|
};
|
|
@@ -3882,7 +3874,7 @@ class Vn extends st {
|
|
|
3882
3874
|
* @returns {void}
|
|
3883
3875
|
*/
|
|
3884
3876
|
afterSetup() {
|
|
3885
|
-
const t =
|
|
3877
|
+
const t = Ce.data.path;
|
|
3886
3878
|
this.updateLinks(t);
|
|
3887
3879
|
}
|
|
3888
3880
|
/**
|
|
@@ -3894,27 +3886,27 @@ class Vn extends st {
|
|
|
3894
3886
|
updateLinks(t) {
|
|
3895
3887
|
let s = !1;
|
|
3896
3888
|
for (const n of this.links)
|
|
3897
|
-
if (n.rendered && (s =
|
|
3889
|
+
if (n.rendered && (s = Vn(n, t), s === !0))
|
|
3898
3890
|
break;
|
|
3899
3891
|
this.parentLink.update(s);
|
|
3900
3892
|
}
|
|
3901
3893
|
}
|
|
3902
|
-
const
|
|
3894
|
+
const _n = (e) => ge({ class: "text-lg ml-2" }, e), qn = (e) => o({ class: "sticky flex flex-row items-center bg-popover lg:hidden top-0 z-10 border-0 border-b" }, [
|
|
3903
3895
|
b({
|
|
3904
3896
|
variant: "icon",
|
|
3905
3897
|
class: "m-2",
|
|
3906
3898
|
click: (t, { state: s }) => s.toggle("open"),
|
|
3907
3899
|
icon: u.arrows.left
|
|
3908
3900
|
}),
|
|
3909
|
-
e.title &&
|
|
3910
|
-
]),
|
|
3901
|
+
e.title && _n(e.title)
|
|
3902
|
+
]), Gn = () => o({
|
|
3911
3903
|
class: `
|
|
3912
3904
|
absolute inset-0 bg-black/40 z-[-1] fadeIn
|
|
3913
3905
|
transition-opacity duration-200
|
|
3914
3906
|
`,
|
|
3915
3907
|
click: (e, { state: t }) => t.open = !1
|
|
3916
3908
|
});
|
|
3917
|
-
class
|
|
3909
|
+
class Kn extends C {
|
|
3918
3910
|
/**
|
|
3919
3911
|
* This will declare the props for the compiler.
|
|
3920
3912
|
*
|
|
@@ -3933,7 +3925,7 @@ class Gn extends C {
|
|
|
3933
3925
|
class: "fixed inset-0 z-50",
|
|
3934
3926
|
style: "[[typeClass]]"
|
|
3935
3927
|
}, [
|
|
3936
|
-
|
|
3928
|
+
Gn(),
|
|
3937
3929
|
// Popover Content
|
|
3938
3930
|
o({
|
|
3939
3931
|
class: `
|
|
@@ -3942,7 +3934,7 @@ class Gn extends C {
|
|
|
3942
3934
|
dataSet: ["open", ["expanded", !0, "true"]]
|
|
3943
3935
|
}, [
|
|
3944
3936
|
o({ class: "flex flex-auto flex-col w-full h-full overflow-y-auto max-h-[85vh] rounded-md bg-popover border" }, [
|
|
3945
|
-
|
|
3937
|
+
qn({ title: this.title }),
|
|
3946
3938
|
o({ class: "flex flex-auto flex-col" }, this.children)
|
|
3947
3939
|
])
|
|
3948
3940
|
])
|
|
@@ -3986,9 +3978,9 @@ const nt = () => b({ class: "m-2", variant: "ghost", addState() {
|
|
|
3986
3978
|
};
|
|
3987
3979
|
}, click: (e, { state: t }) => t.toggle("open") }, [
|
|
3988
3980
|
x({}, u.bar.three)
|
|
3989
|
-
]),
|
|
3981
|
+
]), Qn = (e) => ge({ class: "text-lg ml-2" }, e), Jn = (e) => o({ class: "flex flex-auto flex-row items-center lg:hidden" }, [
|
|
3990
3982
|
nt(),
|
|
3991
|
-
e.title &&
|
|
3983
|
+
e.title && Qn(e.title)
|
|
3992
3984
|
]), at = (e, t) => {
|
|
3993
3985
|
e.forEach((s) => {
|
|
3994
3986
|
if (s.options) {
|
|
@@ -4001,8 +3993,8 @@ const nt = () => b({ class: "m-2", variant: "ghost", addState() {
|
|
|
4001
3993
|
T(
|
|
4002
3994
|
"open",
|
|
4003
3995
|
(t) => t ? [
|
|
4004
|
-
new
|
|
4005
|
-
|
|
3996
|
+
new Kn({ title: e.title }, [
|
|
3997
|
+
W(({ state: s }) => {
|
|
4006
3998
|
const n = (a) => s.open = !1;
|
|
4007
3999
|
return at(e.options, n), new st(
|
|
4008
4000
|
{
|
|
@@ -4013,23 +4005,23 @@ const nt = () => b({ class: "m-2", variant: "ghost", addState() {
|
|
|
4013
4005
|
])
|
|
4014
4006
|
] : null
|
|
4015
4007
|
)
|
|
4016
|
-
]),
|
|
4008
|
+
]), xo = r((e) => o({ cache: "mobileNav", class: "inline-flex relative lg:hidden" }, [
|
|
4017
4009
|
o([
|
|
4018
4010
|
nt(),
|
|
4019
4011
|
ot(e)
|
|
4020
4012
|
])
|
|
4021
|
-
])),
|
|
4013
|
+
])), po = r((e) => o({ cache: "mobileNav", class: "flex flex-auto flex-col w-full relative lg:hidden" }, [
|
|
4022
4014
|
o({ class: "flex flex-auto flex-col w-full" }, [
|
|
4023
|
-
|
|
4015
|
+
Jn(e),
|
|
4024
4016
|
ot(e)
|
|
4025
4017
|
])
|
|
4026
|
-
])),
|
|
4018
|
+
])), yo = r((e) => {
|
|
4027
4019
|
const t = e.margin || "m-4 ml-0";
|
|
4028
4020
|
return e.allowHistory = e.allowHistory === !0, o({ class: `flex-none ${t}` }, [
|
|
4029
4021
|
b({ variant: "back", class: "ghost", ...e })
|
|
4030
4022
|
]);
|
|
4031
4023
|
});
|
|
4032
|
-
class
|
|
4024
|
+
class Zn extends C {
|
|
4033
4025
|
/**
|
|
4034
4026
|
* This will declare the props for the compiler.
|
|
4035
4027
|
*
|
|
@@ -4124,13 +4116,13 @@ class Jn extends C {
|
|
|
4124
4116
|
return this.children;
|
|
4125
4117
|
}
|
|
4126
4118
|
}
|
|
4127
|
-
|
|
4119
|
+
_e.addType("dockableOverlay", (e) => {
|
|
4128
4120
|
if (!e)
|
|
4129
4121
|
return;
|
|
4130
4122
|
const t = e.component;
|
|
4131
4123
|
t && t.rendered === !0 && t.state.docked === !1 && t.destroy();
|
|
4132
4124
|
});
|
|
4133
|
-
class
|
|
4125
|
+
class wo extends Zn {
|
|
4134
4126
|
/**
|
|
4135
4127
|
* This will stop presistence.
|
|
4136
4128
|
*
|
|
@@ -4200,7 +4192,7 @@ class yo extends Jn {
|
|
|
4200
4192
|
* @returns {void}
|
|
4201
4193
|
*/
|
|
4202
4194
|
afterSetup() {
|
|
4203
|
-
|
|
4195
|
+
_e.add(
|
|
4204
4196
|
this.container,
|
|
4205
4197
|
"dockableOverlay",
|
|
4206
4198
|
{
|
|
@@ -4235,7 +4227,7 @@ class yo extends Jn {
|
|
|
4235
4227
|
this.state.docked = this.canDock();
|
|
4236
4228
|
}
|
|
4237
4229
|
}
|
|
4238
|
-
const
|
|
4230
|
+
const Xn = r(({ index: e, click: t, state: s }, n) => be({
|
|
4239
4231
|
class: "p-2 cursor-pointer hover:bg-muted/50",
|
|
4240
4232
|
onState: [
|
|
4241
4233
|
[s, "selectedIndex", {
|
|
@@ -4244,10 +4236,10 @@ const Zn = r(({ index: e, click: t, state: s }, n) => me({
|
|
|
4244
4236
|
}]
|
|
4245
4237
|
],
|
|
4246
4238
|
click: () => t(e)
|
|
4247
|
-
}, n)),
|
|
4239
|
+
}, n)), ea = r(({ selectOption: e, state: t }) => X({
|
|
4248
4240
|
class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
|
|
4249
|
-
for: ["filteredOptions", (s, n) =>
|
|
4250
|
-
})),
|
|
4241
|
+
for: ["filteredOptions", (s, n) => Xn({ index: n, click: e, state: t }, s.label)]
|
|
4242
|
+
})), ta = r((e) => o({ class: "relative flex flex-auto items-center" }, [
|
|
4251
4243
|
N({
|
|
4252
4244
|
cache: "input",
|
|
4253
4245
|
// @ts-ignore
|
|
@@ -4272,20 +4264,20 @@ const Zn = r(({ index: e, click: t, state: s }, n) => me({
|
|
|
4272
4264
|
// @ts-ignore
|
|
4273
4265
|
x({ size: "sm" }, e.icon)
|
|
4274
4266
|
])
|
|
4275
|
-
])),
|
|
4267
|
+
])), sa = (e) => o({
|
|
4276
4268
|
class: "relative flex fle-auto flex-col",
|
|
4277
4269
|
onState: ["open", (t, s, n) => {
|
|
4278
4270
|
if (t)
|
|
4279
|
-
return new
|
|
4271
|
+
return new te({
|
|
4280
4272
|
cache: "dropdown",
|
|
4281
4273
|
parent: n,
|
|
4282
4274
|
button: n.input,
|
|
4283
4275
|
size: "xl"
|
|
4284
4276
|
}, [
|
|
4285
|
-
|
|
4277
|
+
ea(e)
|
|
4286
4278
|
]);
|
|
4287
4279
|
}]
|
|
4288
|
-
}),
|
|
4280
|
+
}), vo = M(
|
|
4289
4281
|
{
|
|
4290
4282
|
/**
|
|
4291
4283
|
* This will set up the data object.
|
|
@@ -4382,7 +4374,7 @@ const Zn = r(({ index: e, click: t, state: s }, n) => me({
|
|
|
4382
4374
|
*/
|
|
4383
4375
|
render() {
|
|
4384
4376
|
return o({ class: "relative w-full max-w-md" }, [
|
|
4385
|
-
|
|
4377
|
+
ta({
|
|
4386
4378
|
// @ts-ignore
|
|
4387
4379
|
state: this.state,
|
|
4388
4380
|
// @ts-ignore
|
|
@@ -4394,7 +4386,7 @@ const Zn = r(({ index: e, click: t, state: s }, n) => me({
|
|
|
4394
4386
|
// @ts-ignore
|
|
4395
4387
|
handleKeyDown: this.handleKeyDown.bind(this)
|
|
4396
4388
|
}),
|
|
4397
|
-
|
|
4389
|
+
sa({
|
|
4398
4390
|
// @ts-ignore
|
|
4399
4391
|
state: this.state,
|
|
4400
4392
|
// @ts-ignore
|
|
@@ -4405,7 +4397,7 @@ const Zn = r(({ index: e, click: t, state: s }, n) => me({
|
|
|
4405
4397
|
]);
|
|
4406
4398
|
}
|
|
4407
4399
|
}
|
|
4408
|
-
),
|
|
4400
|
+
), ko = r((e) => {
|
|
4409
4401
|
const t = e.icon ?? u.magnifyingGlass.default;
|
|
4410
4402
|
return o({
|
|
4411
4403
|
// @ts-ignore
|
|
@@ -4441,7 +4433,7 @@ const Zn = r(({ index: e, click: t, state: s }, n) => me({
|
|
|
4441
4433
|
})
|
|
4442
4434
|
]);
|
|
4443
4435
|
});
|
|
4444
|
-
class
|
|
4436
|
+
class na extends C {
|
|
4445
4437
|
/**
|
|
4446
4438
|
* This will declare the props for the compiler.
|
|
4447
4439
|
*
|
|
@@ -4459,7 +4451,7 @@ class sa extends C {
|
|
|
4459
4451
|
return o({ class: `${this.class || ""}` }, this.children);
|
|
4460
4452
|
}
|
|
4461
4453
|
}
|
|
4462
|
-
class
|
|
4454
|
+
class aa extends na {
|
|
4463
4455
|
/**
|
|
4464
4456
|
* This will be called every time the route
|
|
4465
4457
|
* is activated.
|
|
@@ -4469,15 +4461,15 @@ class na extends sa {
|
|
|
4469
4461
|
update(t) {
|
|
4470
4462
|
}
|
|
4471
4463
|
}
|
|
4472
|
-
const
|
|
4464
|
+
const oa = r((e, t) => (e.class = "basic-page pt-[80px] sm:pt-0 flex flex-auto flex-col " + (e.class || ""), {
|
|
4473
4465
|
tag: "section",
|
|
4474
4466
|
...e,
|
|
4475
4467
|
children: t
|
|
4476
|
-
})),
|
|
4468
|
+
})), la = r(({ title: e, description: t }) => Z({ class: "sm:py-8 px-6 md:px-5 flex flex-col" }, [
|
|
4477
4469
|
bt({ class: "scroll-m-20 text-3xl font-bold tracking-tight" }, e),
|
|
4478
4470
|
t && k({ class: "text-base text-muted-foreground py-2 max-w-[700px]" }, t)
|
|
4479
4471
|
]));
|
|
4480
|
-
class
|
|
4472
|
+
class Co extends aa {
|
|
4481
4473
|
/**
|
|
4482
4474
|
* This will declare the props for the compiler.
|
|
4483
4475
|
*
|
|
@@ -4492,8 +4484,8 @@ class ko extends na {
|
|
|
4492
4484
|
* @returns {object}
|
|
4493
4485
|
*/
|
|
4494
4486
|
render() {
|
|
4495
|
-
return
|
|
4496
|
-
|
|
4487
|
+
return oa([
|
|
4488
|
+
la({
|
|
4497
4489
|
title: this.title,
|
|
4498
4490
|
description: this.description
|
|
4499
4491
|
}),
|
|
@@ -4502,123 +4494,123 @@ class ko extends na {
|
|
|
4502
4494
|
}
|
|
4503
4495
|
}
|
|
4504
4496
|
export {
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4497
|
+
Oa as $,
|
|
4498
|
+
Ya as A,
|
|
4499
|
+
yo as B,
|
|
4500
|
+
qs as C,
|
|
4509
4501
|
et as D,
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4502
|
+
Ka as E,
|
|
4503
|
+
ho as F,
|
|
4504
|
+
wo as G,
|
|
4505
|
+
oo as H,
|
|
4506
|
+
go as I,
|
|
4507
|
+
ka as J,
|
|
4508
|
+
fo as K,
|
|
4509
|
+
wa as L,
|
|
4510
|
+
Ra as M,
|
|
4519
4511
|
Je as N,
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4512
|
+
Va as O,
|
|
4513
|
+
_a as P,
|
|
4514
|
+
Wa as Q,
|
|
4515
|
+
ls as R,
|
|
4516
|
+
ns as S,
|
|
4517
|
+
qa as T,
|
|
4518
|
+
jt as U,
|
|
4519
|
+
ts as V,
|
|
4520
|
+
ss as W,
|
|
4521
|
+
as as X,
|
|
4522
|
+
j as Y,
|
|
4523
|
+
Co as Z,
|
|
4524
|
+
$n as _,
|
|
4525
|
+
ys as a,
|
|
4526
|
+
P as a$,
|
|
4535
4527
|
ce as a0,
|
|
4536
|
-
|
|
4537
|
-
|
|
4528
|
+
qt as a1,
|
|
4529
|
+
so as a2,
|
|
4538
4530
|
st as a3,
|
|
4539
4531
|
N as a4,
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4532
|
+
Ft as a5,
|
|
4533
|
+
ya as a6,
|
|
4534
|
+
no as a7,
|
|
4543
4535
|
tt as a8,
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4536
|
+
oa as a9,
|
|
4537
|
+
vo as aA,
|
|
4538
|
+
ta as aB,
|
|
4539
|
+
ja as aC,
|
|
4540
|
+
ko as aD,
|
|
4541
|
+
Qa as aE,
|
|
4542
|
+
Wn as aF,
|
|
4543
|
+
ve as aG,
|
|
4544
|
+
va as aH,
|
|
4545
|
+
Ca as aI,
|
|
4546
|
+
eo as aJ,
|
|
4547
|
+
Da as aK,
|
|
4548
|
+
uo as aL,
|
|
4549
|
+
Jn as aM,
|
|
4550
|
+
to as aN,
|
|
4551
|
+
ba as aO,
|
|
4552
|
+
Ua as aP,
|
|
4561
4553
|
x as aQ,
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4554
|
+
za as aR,
|
|
4555
|
+
bo as aS,
|
|
4556
|
+
jn as aT,
|
|
4557
|
+
qe as aU,
|
|
4566
4558
|
O as aV,
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4559
|
+
Ma as aW,
|
|
4560
|
+
Rs as aX,
|
|
4561
|
+
es as aY,
|
|
4562
|
+
ga as aZ,
|
|
4563
|
+
fa as a_,
|
|
4564
|
+
Ie as aa,
|
|
4573
4565
|
Ps as ab,
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4566
|
+
xo as ac,
|
|
4567
|
+
po as ad,
|
|
4568
|
+
Ws as ae,
|
|
4569
|
+
Ta as af,
|
|
4578
4570
|
nt as ag,
|
|
4579
4571
|
Ln as ah,
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4572
|
+
Un as ai,
|
|
4573
|
+
En as aj,
|
|
4574
|
+
Kn as ak,
|
|
4575
|
+
Xa as al,
|
|
4576
|
+
Ba as am,
|
|
4577
|
+
Zn as an,
|
|
4578
|
+
na as ao,
|
|
4587
4579
|
Pa as ap,
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4580
|
+
zs as aq,
|
|
4581
|
+
te as ar,
|
|
4582
|
+
qn as as,
|
|
4583
|
+
Ha as at,
|
|
4584
|
+
Sa as au,
|
|
4585
|
+
un as av,
|
|
4586
|
+
Fa as aw,
|
|
4595
4587
|
Aa as ax,
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4588
|
+
Ea as ay,
|
|
4589
|
+
mo as az,
|
|
4590
|
+
Gn as b,
|
|
4591
|
+
Za as b0,
|
|
4592
|
+
ma as c,
|
|
4593
|
+
aa as d,
|
|
4594
|
+
ao as e,
|
|
4603
4595
|
b as f,
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4596
|
+
Es as g,
|
|
4597
|
+
Rt as h,
|
|
4598
|
+
Yt as i,
|
|
4599
|
+
Sn as j,
|
|
4600
|
+
pa as k,
|
|
4609
4601
|
La as l,
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4602
|
+
xa as m,
|
|
4603
|
+
Na as n,
|
|
4604
|
+
Ja as o,
|
|
4605
|
+
lo as p,
|
|
4606
|
+
Os as q,
|
|
4607
|
+
ro as r,
|
|
4608
|
+
Dn as s,
|
|
4609
|
+
$a as t,
|
|
4610
|
+
io as u,
|
|
4611
|
+
co as v,
|
|
4612
|
+
Ia as w,
|
|
4621
4613
|
le as x,
|
|
4622
|
-
|
|
4623
|
-
|
|
4614
|
+
Ys as y,
|
|
4615
|
+
Ga as z
|
|
4624
4616
|
};
|