@base-framework/ui 1.2.38 → 1.2.40
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-B4Llan_O.js → confirmation-BUhSx9ka.js} +1 -1
- package/dist/{full-page-D8_qNN2n.js → full-page-B11uKO2o.js} +203 -203
- 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-C6uOlQhZ.js → sidebar-menu-BpoWIL6Q.js} +1 -1
- package/dist/{sidebar-menu-page-ICJWts_A.js → sidebar-menu-page-nek9r4Tl.js} +2 -2
- package/dist/{signature-panel-CW3euDFt.js → signature-panel-ClNWUUVh.js} +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { I as j, Span as u, Button as w, OnState as M, Div as o, Legend as
|
|
2
|
-
import { Atom as r, Jot as P, Component as S, Html as
|
|
1
|
+
import { I as j, Span as u, Button as w, OnState as M, Div as o, Legend as ft, Fieldset as gt, H4 as qe, P as k, Label as E, Checkbox as he, Input as p, Textarea as Ge, UseParent as V, Img as fe, H5 as mt, H2 as J, Form as bt, Header as X, Footer as ge, A as Ke, H3 as me, Nav as be, Ul as Z, Li as xe, OnStateOpen as pe, On as Q, Dialog as xt, Th as Qe, Thead as pt, Tr as yt, Table as ye, Time as wt, H1 as vt } from "@base-framework/atoms";
|
|
2
|
+
import { Atom as r, Jot as P, Component as S, Html as Je, Data as z, Events as R, DateTime as ee, NavLink as kt, router as De, DataTracker as Xe } from "@base-framework/base";
|
|
3
3
|
import { Icons as h } from "./icons.es.js";
|
|
4
|
-
import { Timer as
|
|
4
|
+
import { Timer as Ct, TableBody as St, DataTableBody as $t, ScrollableTableBody as Dt, List as It } from "@base-framework/organisms";
|
|
5
5
|
import { F as _ } from "./format-DE4rFWuD.js";
|
|
6
|
-
import { F as
|
|
7
|
-
const
|
|
6
|
+
import { F as Tt } from "./bside-template-C7AQgQ6H.js";
|
|
7
|
+
const Mt = {
|
|
8
8
|
xs: "w-4 h-4",
|
|
9
9
|
sm: "w-6 h-6",
|
|
10
10
|
md: "w-8 h-8",
|
|
@@ -13,7 +13,7 @@ const Tt = {
|
|
|
13
13
|
"2xl": "w-14 h-14",
|
|
14
14
|
"3xl": "w-16 h-16"
|
|
15
15
|
}, de = r((e, t) => {
|
|
16
|
-
const s =
|
|
16
|
+
const s = Mt[e.size || "sm"];
|
|
17
17
|
return j({
|
|
18
18
|
...e,
|
|
19
19
|
// @ts-ignore
|
|
@@ -150,17 +150,17 @@ const Tt = {
|
|
|
150
150
|
textColor: "text-foreground",
|
|
151
151
|
ringColor: "ring-white/10"
|
|
152
152
|
}
|
|
153
|
-
},
|
|
154
|
-
const s =
|
|
153
|
+
}, Pt = (e) => Be[e] || Be.gray, Bt = (e, t = {}) => {
|
|
154
|
+
const s = Pt(e), n = t.backgroundColor ?? s.backgroundColor, a = t.textColor ?? s.textColor, l = t.ringColor ?? s.ringColor;
|
|
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
|
}, Ta = r((e, t) => {
|
|
157
|
-
const { type: s, icon: n, size: a = "xs", backgroundColor: l, textColor: i, ringColor: c, ...f } = e, m =
|
|
157
|
+
const { type: s, icon: n, size: a = "xs", backgroundColor: l, textColor: i, ringColor: c, ...f } = e, m = Bt(s, { backgroundColor: l, textColor: i, ringColor: c });
|
|
158
158
|
return u({ ...f, class: m }, [
|
|
159
159
|
n ? x({ size: a, class: "mr-1" }, n) : null,
|
|
160
160
|
...t || []
|
|
161
161
|
]);
|
|
162
162
|
});
|
|
163
|
-
class
|
|
163
|
+
class Ze extends S {
|
|
164
164
|
/**
|
|
165
165
|
* This will set the component context.
|
|
166
166
|
*
|
|
@@ -176,9 +176,9 @@ class Xe extends S {
|
|
|
176
176
|
}
|
|
177
177
|
const O = (e) => (
|
|
178
178
|
/** @type {VeilComponentConstructor} */
|
|
179
|
-
P(e,
|
|
179
|
+
P(e, Ze)
|
|
180
180
|
);
|
|
181
|
-
class Ma extends
|
|
181
|
+
class Ma extends Ze {
|
|
182
182
|
/**
|
|
183
183
|
* Declare public props and their defaults.
|
|
184
184
|
*/
|
|
@@ -296,26 +296,26 @@ const Ba = r((e, t) => {
|
|
|
296
296
|
]);
|
|
297
297
|
});
|
|
298
298
|
let oe = 0;
|
|
299
|
-
const ue = /* @__PURE__ */ new Map(),
|
|
299
|
+
const ue = /* @__PURE__ */ new Map(), zt = () => {
|
|
300
300
|
const e = globalThis.location?.hash || "";
|
|
301
301
|
return (e ? e.replace(/^#\/?/, "") : globalThis.location?.pathname || "/").replace(/^\/+/, "").replace(/\/+$/, "");
|
|
302
|
-
},
|
|
302
|
+
}, Ot = (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
306
|
return oe++, e.apply(this, t);
|
|
307
307
|
};
|
|
308
308
|
}
|
|
309
|
-
const
|
|
310
|
-
const t = e || "", s =
|
|
311
|
-
if (n &&
|
|
309
|
+
const et = (e) => {
|
|
310
|
+
const t = e || "", s = zt(), n = ue.get(t);
|
|
311
|
+
if (n && Ot(s, n.basePath))
|
|
312
312
|
return n;
|
|
313
313
|
const a = {
|
|
314
314
|
pushCount: oe,
|
|
315
315
|
basePath: s
|
|
316
316
|
};
|
|
317
317
|
return ue.set(t, a), a;
|
|
318
|
-
},
|
|
318
|
+
}, tt = (e) => {
|
|
319
319
|
ue.delete(e || "");
|
|
320
320
|
}, L = (e) => r((t, s) => w({
|
|
321
321
|
...e,
|
|
@@ -339,10 +339,10 @@ const Ze = (e) => {
|
|
|
339
339
|
...t,
|
|
340
340
|
// @ts-ignore
|
|
341
341
|
class: `bttn ${e.class} ${t.class || ""}`
|
|
342
|
-
}, s)),
|
|
343
|
-
const t =
|
|
342
|
+
}, s)), Nt = (e) => {
|
|
343
|
+
const t = et(e.backUrl);
|
|
344
344
|
return () => {
|
|
345
|
-
|
|
345
|
+
tt(e.backUrl);
|
|
346
346
|
const n = oe - t.pushCount + 1;
|
|
347
347
|
if (e.allowHistory === !0 && t.pushCount > 0) {
|
|
348
348
|
globalThis.history.go(-n);
|
|
@@ -350,13 +350,13 @@ const Ze = (e) => {
|
|
|
350
350
|
}
|
|
351
351
|
e.backUrl && app.navigate(e.backUrl);
|
|
352
352
|
};
|
|
353
|
-
},
|
|
353
|
+
}, Ft = (e) => r((t, s) => (t.icon = t.icon || h.arrows.left, t.click = t.click || Nt(t), we({
|
|
354
354
|
...e,
|
|
355
355
|
...t
|
|
356
|
-
}, s))),
|
|
357
|
-
const t =
|
|
356
|
+
}, s))), Lt = (e) => {
|
|
357
|
+
const t = et(e.backUrl);
|
|
358
358
|
return () => {
|
|
359
|
-
|
|
359
|
+
tt(e.backUrl);
|
|
360
360
|
const n = oe - t.pushCount + 1;
|
|
361
361
|
if (t.pushCount > 0) {
|
|
362
362
|
globalThis.history.go(-n);
|
|
@@ -364,10 +364,10 @@ const Ze = (e) => {
|
|
|
364
364
|
}
|
|
365
365
|
e.backUrl && app.navigate(e.backUrl);
|
|
366
366
|
};
|
|
367
|
-
},
|
|
367
|
+
}, At = (e) => r((t, s) => (t.icon = t.icon || h.arrows.left, t.click = t.click || Lt(t), we({
|
|
368
368
|
...e,
|
|
369
369
|
...t
|
|
370
|
-
}, s))),
|
|
370
|
+
}, s))), Rt = r((e, t) => {
|
|
371
371
|
const s = e.size || "md", n = {
|
|
372
372
|
xs: "w-6 h-6",
|
|
373
373
|
sm: "w-8 h-8",
|
|
@@ -394,32 +394,32 @@ const Ze = (e) => {
|
|
|
394
394
|
link: L({ class: "link" }),
|
|
395
395
|
icon: ze({ class: "icon" }),
|
|
396
396
|
withIcon: ze({ class: "with-icon" }),
|
|
397
|
-
back:
|
|
398
|
-
smartBack:
|
|
399
|
-
circleIcon:
|
|
400
|
-
}, b = r((e, t) => (Oe[e.variant] || Oe.primary)(e, t)), za = r((e, t) => b({ ...e, variant: "withIcon", icon: h.loading, animation: "animate-spin" }, t)),
|
|
397
|
+
back: Ft({ class: "with-icon back-button" }),
|
|
398
|
+
smartBack: At({ class: "with-icon back-button" }),
|
|
399
|
+
circleIcon: Rt
|
|
400
|
+
}, b = r((e, t) => (Oe[e.variant] || Oe.primary)(e, t)), za = r((e, t) => b({ ...e, variant: "withIcon", icon: h.loading, animation: "animate-spin" }, t)), jt = r((e, t) => {
|
|
401
401
|
const s = e.margin ?? "my-5 mx-5", n = e.padding ?? "p-4", a = e.border ?? "border-border";
|
|
402
402
|
return e.hover && (e.class += " hover:shadow-lg hover:bg-muted/50"), o({
|
|
403
403
|
...e,
|
|
404
404
|
// @ts-ignore
|
|
405
405
|
class: `rounded-lg ${a} bg-card text-card-foreground shadow-md min-w-[120px] min-h-[80px] ${s} ${n} ${e.class || ""}`
|
|
406
406
|
}, t);
|
|
407
|
-
}),
|
|
407
|
+
}), Et = r((e, t) => ft({
|
|
408
408
|
...e,
|
|
409
409
|
// @ts-ignore
|
|
410
410
|
class: ` font-medium -mt-4 -mx-1 px-2 py-2 ${e.class || ""}`
|
|
411
411
|
}, t)), Oa = r((e, t) => {
|
|
412
412
|
const s = e.border === "full" ? "border rounded-md" : "border-t";
|
|
413
|
-
return
|
|
413
|
+
return gt({
|
|
414
414
|
...e,
|
|
415
415
|
// @ts-ignore
|
|
416
416
|
class: `p-6 ${s} ${e.class || ""}`
|
|
417
417
|
}, [
|
|
418
418
|
// @ts-ignore
|
|
419
|
-
e.legend &&
|
|
419
|
+
e.legend && Et(e.legend),
|
|
420
420
|
o({ class: "flex flex-auto flex-col gap-y-6" }, t)
|
|
421
421
|
]);
|
|
422
|
-
}),
|
|
422
|
+
}), Ht = r((e, t) => {
|
|
423
423
|
const s = e.border === !0 ? "border-t" : "";
|
|
424
424
|
return o({
|
|
425
425
|
...e,
|
|
@@ -434,14 +434,14 @@ const Ze = (e) => {
|
|
|
434
434
|
class: `flex flex-auto flex-col gap-y-1 ${e.labelProps?.class || ""}`
|
|
435
435
|
}, [
|
|
436
436
|
// @ts-ignore
|
|
437
|
-
|
|
437
|
+
qe({ class: "text-base" }, e.label),
|
|
438
438
|
// @ts-ignore
|
|
439
439
|
e.description && k({ class: "text-sm text-muted-foreground" }, e.description)
|
|
440
440
|
]),
|
|
441
441
|
// Controls container: grows to fill remaining space, spacing between items
|
|
442
442
|
o({ class: "flex flex-col gap-y-4" }, t)
|
|
443
443
|
]);
|
|
444
|
-
}),
|
|
444
|
+
}), Ut = "flex h-10 w-full px-3 py-2 text-sm", D = "rounded-md border border-border bg-input", $ = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background", C = "disabled:cursor-not-allowed disabled:opacity-50 [&:user-invalid]:border-destructive", H = "placeholder:text-muted-foreground", ve = `${Ut} ${D} ${$} ${H} ${C}`, Yt = ({ id: e, checked: t, bind: s, required: n }) => he({
|
|
445
445
|
id: e,
|
|
446
446
|
cache: "checkbox",
|
|
447
447
|
class: "absolute opacity-0 w-full h-full cursor-pointer pointer-events-none",
|
|
@@ -451,7 +451,7 @@ const Ze = (e) => {
|
|
|
451
451
|
required: n,
|
|
452
452
|
checked: t,
|
|
453
453
|
bind: s
|
|
454
|
-
}),
|
|
454
|
+
}), _t = () => u({ class: "absolute text-xs pointer-events-none" }, [
|
|
455
455
|
M(
|
|
456
456
|
"checked",
|
|
457
457
|
(e) => e ? j({
|
|
@@ -459,7 +459,7 @@ const Ze = (e) => {
|
|
|
459
459
|
html: h.check
|
|
460
460
|
}) : null
|
|
461
461
|
)
|
|
462
|
-
]),
|
|
462
|
+
]), Vt = ({ id: e, bind: t, checked: s, required: n, clickHandler: a }) => o({
|
|
463
463
|
class: `relative flex items-center justify-center w-5 h-5 transition-colors duration-200 hover:border-accent-foreground
|
|
464
464
|
rounded-md border
|
|
465
465
|
${$}
|
|
@@ -479,13 +479,13 @@ const Ze = (e) => {
|
|
|
479
479
|
tabIndex: 0,
|
|
480
480
|
click: a
|
|
481
481
|
}, [
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
]),
|
|
482
|
+
Yt({ bind: t, checked: s, id: e, required: n }),
|
|
483
|
+
_t()
|
|
484
|
+
]), Wt = ({ id: e, label: t, clickHandler: s }) => E({
|
|
485
485
|
class: "text-base cursor-pointer",
|
|
486
486
|
htmlFor: e,
|
|
487
487
|
click: s
|
|
488
|
-
}, t),
|
|
488
|
+
}, t), qt = P(
|
|
489
489
|
{
|
|
490
490
|
/**
|
|
491
491
|
* This will initialize the state of the checkbox.
|
|
@@ -524,7 +524,7 @@ const Ze = (e) => {
|
|
|
524
524
|
render() {
|
|
525
525
|
const e = this.getId(), t = (s) => this.clickHandler(s);
|
|
526
526
|
return o({ class: `flex items-center gap-x-2 cursor-pointer ${this.class || ""}` }, [
|
|
527
|
-
|
|
527
|
+
Vt({
|
|
528
528
|
id: e,
|
|
529
529
|
// @ts-ignore
|
|
530
530
|
bind: this.bind,
|
|
@@ -536,38 +536,38 @@ const Ze = (e) => {
|
|
|
536
536
|
clickHandler: t
|
|
537
537
|
}),
|
|
538
538
|
// @ts-ignore
|
|
539
|
-
this.label &&
|
|
539
|
+
this.label && Wt({ id: e, label: this.label, clickHandler: t })
|
|
540
540
|
]);
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
|
-
),
|
|
543
|
+
), Gt = (e) => {
|
|
544
544
|
if (!e || e.length === 0) return "";
|
|
545
545
|
const s = e.replace(/\D/g, "").match(/^(\d{0,3})(\d{0,3})(\d{0,4})$/);
|
|
546
546
|
return s ? s[2] ? `(${s[1]}) ${s[2]}${s[3] ? "-" + s[3] : ""}` : s[1] || "" : e;
|
|
547
|
-
},
|
|
548
|
-
const t = e.target, s =
|
|
547
|
+
}, Kt = (e) => {
|
|
548
|
+
const t = e.target, s = Gt(t.value);
|
|
549
549
|
s && (t.value = s);
|
|
550
|
-
},
|
|
550
|
+
}, Qt = [
|
|
551
551
|
"peer w-full h-14 px-3 pt-5 pb-1",
|
|
552
552
|
"text-base text-foreground",
|
|
553
553
|
D,
|
|
554
554
|
$,
|
|
555
555
|
C,
|
|
556
556
|
"placeholder-transparent"
|
|
557
|
-
].join(" "),
|
|
557
|
+
].join(" "), Jt = [
|
|
558
558
|
"peer w-full min-h-[120px] px-3 pt-6 pb-2",
|
|
559
559
|
"text-base text-foreground",
|
|
560
560
|
D,
|
|
561
561
|
$,
|
|
562
562
|
C,
|
|
563
563
|
"placeholder-transparent resize-y"
|
|
564
|
-
].join(" "),
|
|
564
|
+
].join(" "), Xt = [
|
|
565
565
|
"peer w-full h-14 px-3 pt-5 pb-1 pr-10",
|
|
566
566
|
"text-base text-foreground appearance-none",
|
|
567
567
|
D,
|
|
568
568
|
$,
|
|
569
569
|
C
|
|
570
|
-
].join(" "),
|
|
570
|
+
].join(" "), Zt = [
|
|
571
571
|
"absolute left-3",
|
|
572
572
|
"text-foreground-secondary",
|
|
573
573
|
"transition-all duration-200",
|
|
@@ -578,7 +578,7 @@ const Ze = (e) => {
|
|
|
578
578
|
"peer-[:placeholder-shown:not(:focus)]:top-1/2",
|
|
579
579
|
"peer-[:placeholder-shown:not(:focus)]:-translate-y-1/2",
|
|
580
580
|
"peer-[:placeholder-shown:not(:focus)]:text-base"
|
|
581
|
-
].join(" "),
|
|
581
|
+
].join(" "), es = [
|
|
582
582
|
"absolute left-3",
|
|
583
583
|
"text-foreground-secondary",
|
|
584
584
|
"transition-all duration-200",
|
|
@@ -588,16 +588,16 @@ const Ze = (e) => {
|
|
|
588
588
|
// Placeholder state (empty + not focused)
|
|
589
589
|
"peer-[:placeholder-shown:not(:focus)]:top-3.5",
|
|
590
590
|
"peer-[:placeholder-shown:not(:focus)]:text-base"
|
|
591
|
-
].join(" "),
|
|
591
|
+
].join(" "), ts = [
|
|
592
592
|
"absolute left-3 top-2",
|
|
593
593
|
"text-xs text-foreground-secondary",
|
|
594
594
|
"pointer-events-none select-none"
|
|
595
595
|
].join(" ");
|
|
596
|
-
let
|
|
597
|
-
const ke = (e) => e.id || e.name || `floating-${++
|
|
596
|
+
let ss = 0;
|
|
597
|
+
const ke = (e) => e.id || e.name || `floating-${++ss}`, Ce = (e, t, s, n) => e ? E(
|
|
598
598
|
{ htmlFor: s, class: n },
|
|
599
599
|
t ? [u(e), u({ class: "text-destructive ml-0.5" }, "*")] : e
|
|
600
|
-
) : null,
|
|
600
|
+
) : null, ns = () => j({
|
|
601
601
|
class: "absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none w-4 h-4 text-foreground-secondary",
|
|
602
602
|
html: h.chevron.single.down
|
|
603
603
|
}), te = r((e) => {
|
|
@@ -607,9 +607,9 @@ const ke = (e) => e.id || e.name || `floating-${++ts}`, Ce = (e, t, s, n) => e ?
|
|
|
607
607
|
...e,
|
|
608
608
|
id: t,
|
|
609
609
|
placeholder: " ",
|
|
610
|
-
class: `${
|
|
610
|
+
class: `${Qt} ${e.class || ""}`.trim()
|
|
611
611
|
}),
|
|
612
|
-
Ce(e.label, e.required, t,
|
|
612
|
+
Ce(e.label, e.required, t, Zt)
|
|
613
613
|
]);
|
|
614
614
|
}), Na = r(
|
|
615
615
|
(e) => te({
|
|
@@ -618,7 +618,7 @@ const ke = (e) => e.id || e.name || `floating-${++ts}`, Ce = (e, t, s, n) => e ?
|
|
|
618
618
|
name: e.name || "Phone",
|
|
619
619
|
label: e.label || "Phone",
|
|
620
620
|
pattern: e.pattern || "\\(\\d{3}\\) \\d{3}-\\d{4}",
|
|
621
|
-
keyup:
|
|
621
|
+
keyup: Kt
|
|
622
622
|
})
|
|
623
623
|
), Fa = r(
|
|
624
624
|
(e) => te({
|
|
@@ -649,13 +649,13 @@ const ke = (e) => e.id || e.name || `floating-${++ts}`, Ce = (e, t, s, n) => e ?
|
|
|
649
649
|
), ja = r((e) => {
|
|
650
650
|
const t = ke(e);
|
|
651
651
|
return o({ class: "relative" }, [
|
|
652
|
-
|
|
652
|
+
Ge({
|
|
653
653
|
...e,
|
|
654
654
|
id: t,
|
|
655
655
|
placeholder: " ",
|
|
656
|
-
class: `${
|
|
656
|
+
class: `${Jt} ${e.class || ""}`.trim()
|
|
657
657
|
}),
|
|
658
|
-
Ce(e.label, e.required, t,
|
|
658
|
+
Ce(e.label, e.required, t, es)
|
|
659
659
|
]);
|
|
660
660
|
}), Ea = r((e) => {
|
|
661
661
|
const t = ke(e), { options: s, onCreated: n, ...a } = e;
|
|
@@ -664,20 +664,20 @@ const ke = (e) => e.id || e.name || `floating-${++ts}`, Ce = (e, t, s, n) => e ?
|
|
|
664
664
|
tag: "select",
|
|
665
665
|
...a,
|
|
666
666
|
id: t,
|
|
667
|
-
class: `[&>option]:text-foreground [&>option]:bg-background ${
|
|
667
|
+
class: `[&>option]:text-foreground [&>option]:bg-background ${Xt} ${a.class || ""}`.trim(),
|
|
668
668
|
onCreated(l) {
|
|
669
|
-
s &&
|
|
669
|
+
s && Je.setupSelectOptions(l, s), typeof n == "function" && n(l);
|
|
670
670
|
}
|
|
671
671
|
},
|
|
672
|
-
|
|
673
|
-
Ce(e.label, e.required, t,
|
|
672
|
+
ns(),
|
|
673
|
+
Ce(e.label, e.required, t, ts)
|
|
674
674
|
]);
|
|
675
|
-
}),
|
|
675
|
+
}), as = (e) => {
|
|
676
676
|
if (!e || e.length === 0) return "";
|
|
677
677
|
const s = e.replace(/\D/g, "").match(/^(\d{0,3})(\d{0,3})(\d{0,4})$/);
|
|
678
678
|
return s ? s[2] ? `(${s[1]}) ${s[2]}${s[3] ? "-" + s[3] : ""}` : s[1] || "" : e;
|
|
679
|
-
},
|
|
680
|
-
const t = e.target, s =
|
|
679
|
+
}, os = (e) => {
|
|
680
|
+
const t = e.target, s = as(t.value);
|
|
681
681
|
s && (t.value = s);
|
|
682
682
|
}, N = r((e) => p({
|
|
683
683
|
...e,
|
|
@@ -693,7 +693,7 @@ const ke = (e) => e.id || e.name || `floating-${++ts}`, Ce = (e, t, s, n) => e ?
|
|
|
693
693
|
placeholder: "(555) 555-5555",
|
|
694
694
|
// @ts-ignore
|
|
695
695
|
pattern: e.pattern || "\\(\\d{3}\\) \\d{3}-\\d{4}",
|
|
696
|
-
keyup:
|
|
696
|
+
keyup: os
|
|
697
697
|
})), Ua = r((e) => N({
|
|
698
698
|
...e,
|
|
699
699
|
type: "email",
|
|
@@ -702,7 +702,7 @@ const ke = (e) => e.id || e.name || `floating-${++ts}`, Ce = (e, t, s, n) => e ?
|
|
|
702
702
|
// @ts-ignore
|
|
703
703
|
label: e.label || "Email",
|
|
704
704
|
placeholder: "Email address"
|
|
705
|
-
})), Ya = r((e) =>
|
|
705
|
+
})), Ya = r((e) => Ge({
|
|
706
706
|
...e,
|
|
707
707
|
as: "textarea",
|
|
708
708
|
// @ts-ignore
|
|
@@ -767,11 +767,11 @@ r((e) => he({
|
|
|
767
767
|
// @ts-ignore
|
|
768
768
|
class: `flex h-4 w-4 text-foreground ${D} ${$} ${C} ${e.class || ""}`.trim()
|
|
769
769
|
}));
|
|
770
|
-
const
|
|
770
|
+
const ls = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", to = r((e) => p({
|
|
771
771
|
...e,
|
|
772
772
|
type: "file",
|
|
773
773
|
// @ts-ignore
|
|
774
|
-
class: `${ve} ${
|
|
774
|
+
class: `${ve} ${ls} ${e.class || ""}`.trim()
|
|
775
775
|
})), so = O(
|
|
776
776
|
{
|
|
777
777
|
/**
|
|
@@ -849,12 +849,12 @@ const os = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
849
849
|
return {
|
|
850
850
|
tag: "select",
|
|
851
851
|
onCreated(a) {
|
|
852
|
-
t &&
|
|
852
|
+
t && Je.setupSelectOptions(a, t), s && s(a);
|
|
853
853
|
},
|
|
854
854
|
...n,
|
|
855
855
|
class: `[&>option]:text-foreground [&>option]:bg-background ${ve} ${n.class || ""}`.trim()
|
|
856
856
|
};
|
|
857
|
-
}),
|
|
857
|
+
}), rs = r(({ src: e, alt: t, class: s, checkPath: n = !0 }) => !e || (s = s || "", n && e.indexOf(".") === -1 && e.indexOf("[[") === -1) ? null : fe({
|
|
858
858
|
class: `absolute w-full h-full object-cover fadeIn ${s}`,
|
|
859
859
|
src: e,
|
|
860
860
|
alt: t,
|
|
@@ -863,7 +863,7 @@ const os = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
863
863
|
* If there's an error loading the image, hide it.
|
|
864
864
|
*/
|
|
865
865
|
error: (a) => a.target.style.visibility = "hidden"
|
|
866
|
-
})),
|
|
866
|
+
})), is = (e) => !e || isNaN(e) ? null : e, Ne = (e, t) => {
|
|
867
867
|
const s = e, n = 16, a = 2 * Math.PI * n, l = s / 100 * a, i = `
|
|
868
868
|
<svg class="w-40 h-40 mx-auto" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg">
|
|
869
869
|
<!-- Background Circle -->
|
|
@@ -913,10 +913,10 @@ const os = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
913
913
|
onSet: [
|
|
914
914
|
// @ts-ignore
|
|
915
915
|
e.prop,
|
|
916
|
-
(a) => (a =
|
|
916
|
+
(a) => (a = is(a), a ? Ne(a, s) : n)
|
|
917
917
|
]
|
|
918
918
|
}, [n]);
|
|
919
|
-
}),
|
|
919
|
+
}), cs = () => V(({ state: e }) => o({
|
|
920
920
|
class: "absolute h-full rounded-full bg-primary transition-all duration-300",
|
|
921
921
|
style: ["width: [[progress]]%;", e]
|
|
922
922
|
})), oo = O(
|
|
@@ -928,7 +928,7 @@ const os = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
928
928
|
*/
|
|
929
929
|
render() {
|
|
930
930
|
return o({ class: "relative w-full h-4 rounded-full bg-muted" }, [
|
|
931
|
-
|
|
931
|
+
cs()
|
|
932
932
|
]);
|
|
933
933
|
},
|
|
934
934
|
/**
|
|
@@ -1022,8 +1022,8 @@ const os = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
1022
1022
|
"bottom-left": "top-full right-full transform translate-x-1 mt-2",
|
|
1023
1023
|
left: "top-1/2 right-full transform -translate-y-1/2 mr-2",
|
|
1024
1024
|
right: "top-1/2 left-full transform -translate-y-1/2 ml-2"
|
|
1025
|
-
},
|
|
1026
|
-
const n =
|
|
1025
|
+
}, ds = (e) => Fe[String(e)] || Fe.top, io = r(({ position: e = "top", content: t }, s) => {
|
|
1026
|
+
const n = ds(e);
|
|
1027
1027
|
return Array.isArray(s) === !1 && (s = [s]), o({ class: "relative group inline-block" }, [
|
|
1028
1028
|
...s,
|
|
1029
1029
|
// Tooltip box
|
|
@@ -1060,19 +1060,19 @@ const os = "file:border-0 file:bg-transparent file:text-sm file:font-medium file
|
|
|
1060
1060
|
bgColor: "bg-muted/10",
|
|
1061
1061
|
iconColor: "text-muted-foreground"
|
|
1062
1062
|
}
|
|
1063
|
-
},
|
|
1063
|
+
}, us = (e, t) => o({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
|
|
1064
1064
|
x({ size: "sm" }, e)
|
|
1065
|
-
]),
|
|
1065
|
+
]), hs = (e) => mt({ class: "font-semibold" }, e), fs = (e) => k({ class: "text-sm text-muted-foreground" }, e), co = r(({ title: e, description: t, icon: s, type: n = "default" }) => {
|
|
1066
1066
|
const { borderColor: a, bgColor: l, iconColor: i } = Le[n] || Le.default;
|
|
1067
1067
|
return o({ class: `flex items-start p-4 border rounded-lg ${l} ${a}` }, [
|
|
1068
1068
|
// Icon and content
|
|
1069
|
-
s &&
|
|
1069
|
+
s && us(s, i),
|
|
1070
1070
|
o({ class: "flex flex-col" }, [
|
|
1071
|
-
|
|
1072
|
-
|
|
1071
|
+
hs(e),
|
|
1072
|
+
fs(t)
|
|
1073
1073
|
])
|
|
1074
1074
|
]);
|
|
1075
|
-
}),
|
|
1075
|
+
}), gs = (e, t) => {
|
|
1076
1076
|
const s = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, n = t.getBoundingClientRect(), a = 10, l = globalThis.scrollX, i = globalThis.scrollY;
|
|
1077
1077
|
let c = s.left + l, f = s.bottom + i;
|
|
1078
1078
|
const m = globalThis.innerHeight - s.bottom, v = s.top;
|
|
@@ -1155,7 +1155,7 @@ class se extends S {
|
|
|
1155
1155
|
* @returns {void}
|
|
1156
1156
|
*/
|
|
1157
1157
|
updatePosition() {
|
|
1158
|
-
const t = this.button ?? null, s = this.panel, n =
|
|
1158
|
+
const t = this.button ?? null, s = this.panel, n = gs(t, s);
|
|
1159
1159
|
this.data.position = n;
|
|
1160
1160
|
}
|
|
1161
1161
|
/**
|
|
@@ -1207,7 +1207,7 @@ class se extends S {
|
|
|
1207
1207
|
this?.panel?.hidePopover();
|
|
1208
1208
|
}
|
|
1209
1209
|
}
|
|
1210
|
-
const
|
|
1210
|
+
const ms = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t)), bs = r((e, t) => E({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), xs = r((e, t) => k({ ...e, class: "text-sm text-muted-foreground italic" }, t)), ps = r((e, t) => k({ ...e, class: "text-sm text-destructive" }, t)), uo = r((e, t = []) => jt({ class: "flex flex-auto flex-col gap-y-0", margin: "m-0", padding: "p-0" }, [
|
|
1211
1211
|
// @ts-ignore
|
|
1212
1212
|
e.title && J({ class: "text-lg font-semibold py-4 px-6" }, e.title),
|
|
1213
1213
|
// @ts-ignore
|
|
@@ -1215,21 +1215,21 @@ const gs = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
|
|
|
1215
1215
|
...t
|
|
1216
1216
|
])), ho = r((e, t = []) => (
|
|
1217
1217
|
// @ts-ignore
|
|
1218
|
-
|
|
1218
|
+
Ht({ label: e.label, description: e.description, class: "py-4 px-6", border: e.border }, [
|
|
1219
1219
|
o({ class: "flex flex-col gap-y-6" }, t)
|
|
1220
1220
|
])
|
|
1221
1221
|
)), fo = r((e, t = []) => {
|
|
1222
1222
|
const s = e.border ? "border-t" : "";
|
|
1223
1223
|
return o({ ...e, class: `flex flex-col pb-4 px-6 gap-y-4 ${s} ${e.class || ""}` }, t);
|
|
1224
|
-
}),
|
|
1224
|
+
}), ys = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", st = (e, t, s) => e.map((n) => !n || (n.children && n.children.length > 0 && (n.children = st(n.children, t, s)), !n.required) ? n : ys(n) ? {
|
|
1225
1225
|
...n,
|
|
1226
1226
|
aria: {
|
|
1227
1227
|
invalid: ["hasError"]
|
|
1228
1228
|
},
|
|
1229
1229
|
invalid: s,
|
|
1230
1230
|
input: t
|
|
1231
|
-
} : n),
|
|
1232
|
-
const a =
|
|
1231
|
+
} : n), ws = r((e, t) => {
|
|
1232
|
+
const a = st(t, (l) => {
|
|
1233
1233
|
l.target.checkValidity() && e.setError(null);
|
|
1234
1234
|
}, (l) => {
|
|
1235
1235
|
e.setError(l.target.validationMessage);
|
|
@@ -1263,26 +1263,26 @@ const gs = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
|
|
|
1263
1263
|
this.state.error = l, this.state.hasError = !!l;
|
|
1264
1264
|
};
|
|
1265
1265
|
return o({ class: "flex flex-auto gap-y-4" }, [
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1266
|
+
ms([
|
|
1267
|
+
bs({ htmlFor: t }, s),
|
|
1268
|
+
ws({
|
|
1269
1269
|
id: t,
|
|
1270
1270
|
name: e,
|
|
1271
1271
|
value: this.state.value,
|
|
1272
1272
|
setError: a
|
|
1273
1273
|
}, this.children),
|
|
1274
|
-
n &&
|
|
1275
|
-
o({ onState: ["error", (l) => l &&
|
|
1274
|
+
n && xs({ id: this.getId("description") }, n),
|
|
1275
|
+
o({ onState: ["error", (l) => l && ps(l)] })
|
|
1276
1276
|
])
|
|
1277
1277
|
]);
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
1280
|
-
),
|
|
1280
|
+
), vs = (e, t, s = null) => {
|
|
1281
1281
|
e.target.checkValidity() && (e.preventDefault(), s && s(e, t));
|
|
1282
|
-
},
|
|
1282
|
+
}, nt = r(
|
|
1283
1283
|
(e, t) => (
|
|
1284
1284
|
// @ts-ignore
|
|
1285
|
-
|
|
1285
|
+
bt({ ...e, submit: (s, n) => vs(s, n, e.submit), class: `w-full ${e.class ?? ""}` }, t)
|
|
1286
1286
|
)
|
|
1287
1287
|
), mo = r((e, t) => (
|
|
1288
1288
|
// @ts-ignore
|
|
@@ -1297,7 +1297,7 @@ const gs = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
|
|
|
1297
1297
|
]), po = (e, t) => o({ class: "flex" }, [
|
|
1298
1298
|
u({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
|
|
1299
1299
|
u(t)
|
|
1300
|
-
]),
|
|
1300
|
+
]), ks = r(({ title: e, description: t, back: s, icon: n, options: a = [], titleCenter: l = !1 }) => X({ class: "modal-header bg-background/80 backdrop-blur-md sticky flex flex-none items-center py-4 px-6 z-10 min-w-0" }, [
|
|
1301
1301
|
/**
|
|
1302
1302
|
* Back Button (Mobile Only)
|
|
1303
1303
|
*/
|
|
@@ -1325,18 +1325,18 @@ const gs = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
|
|
|
1325
1325
|
return o({
|
|
1326
1326
|
popover: "manual",
|
|
1327
1327
|
// @ts-ignore
|
|
1328
|
-
class: `modal ${s ? "
|
|
1328
|
+
class: `modal ${s ? "" : "m-auto top-0 right-0 bottom-0 left-0"} ${s ? "" : "h-full max-h-screen"} fixed z-20 grid w-full gap-2 lg:border bg-background text-foreground shadow-xl wrap-break-words p-0 overflow-y-auto overscroll-y-contain ${e.class}`,
|
|
1329
1329
|
click: (l, i) => {
|
|
1330
1330
|
l.target === i.panel && (l.preventDefault(), l.stopPropagation(), i.state.open = !1);
|
|
1331
1331
|
}
|
|
1332
1332
|
}, [
|
|
1333
|
-
|
|
1333
|
+
nt({
|
|
1334
1334
|
class: "modal-content relative bg-background z-1 flex flex-auto flex-col gap-y-4 min-w-0",
|
|
1335
1335
|
// @ts-ignore
|
|
1336
1336
|
submit: (l, i) => e.onSubmit && e.onSubmit(i),
|
|
1337
1337
|
cache: "modalContent"
|
|
1338
1338
|
}, [
|
|
1339
|
-
|
|
1339
|
+
ks(e),
|
|
1340
1340
|
o({ class: "modal-body flex grow flex-col py-0 px-6 z-0", cache: "modalBody" }, t),
|
|
1341
1341
|
// @ts-ignore
|
|
1342
1342
|
!e.hideFooter && ge({ class: "modal-footer sticky bottom-0 bg-background/80 backdrop-blur-md flex flex-none justify-between py-4 px-6 z-10" }, e.buttons)
|
|
@@ -1368,15 +1368,15 @@ const gs = r((e, t) => o({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
|
|
|
1368
1368
|
borderColor: "border",
|
|
1369
1369
|
iconColor: "text-muted-foreground"
|
|
1370
1370
|
}
|
|
1371
|
-
},
|
|
1371
|
+
}, Cs = (e) => X({ class: "flex justify-center" }, [
|
|
1372
1372
|
me({ class: "text-lg font-bold mb-0" }, e)
|
|
1373
|
-
]),
|
|
1373
|
+
]), Ss = r(({ href: e, class: t }, s) => Ke({
|
|
1374
1374
|
class: `bg-popover text-popover-foreground relative flex flex-auto flex-col justify-start shadow-lg pointer-events-auto p-4 border rounded-md min-w-[340px] max-w-[450px] mt-4 ${t}`,
|
|
1375
1375
|
href: e,
|
|
1376
1376
|
animateIn: "pullRightIn",
|
|
1377
1377
|
animateOut: "pullRight",
|
|
1378
1378
|
role: "alert"
|
|
1379
|
-
}, s)),
|
|
1379
|
+
}, s)), $s = r(({ close: e, class: t }, s) => o({
|
|
1380
1380
|
class: `pullRightIn bg-popover text-popover-foreground relative flex flex-auto flex-col justify-start shadow-lg pointer-events-auto p-4 border rounded-md min-w-[340px] max-w-[450px] mt-4 ${t}`,
|
|
1381
1381
|
click: () => e(),
|
|
1382
1382
|
animateIn: "pullRightIn",
|
|
@@ -1407,10 +1407,10 @@ class wo extends S {
|
|
|
1407
1407
|
*/
|
|
1408
1408
|
render() {
|
|
1409
1409
|
const { bgColor: t, borderColor: s, iconColor: n } = this.getTypeStyles(), a = this.href || null, l = this.getChildren(n);
|
|
1410
|
-
return a ?
|
|
1410
|
+
return a ? Ss({
|
|
1411
1411
|
href: a,
|
|
1412
1412
|
class: `${t} ${s}`
|
|
1413
|
-
}, l) :
|
|
1413
|
+
}, l) : $s({
|
|
1414
1414
|
close: this.close.bind(this),
|
|
1415
1415
|
class: `${t} ${s}`
|
|
1416
1416
|
}, l);
|
|
@@ -1422,7 +1422,7 @@ class wo extends S {
|
|
|
1422
1422
|
*/
|
|
1423
1423
|
afterSetup() {
|
|
1424
1424
|
const t = this.duration;
|
|
1425
|
-
t !== "infinite" && (this.timer = new
|
|
1425
|
+
t !== "infinite" && (this.timer = new Ct(t, this.close.bind(this)), this.timer.start());
|
|
1426
1426
|
}
|
|
1427
1427
|
/**
|
|
1428
1428
|
* This will get the style properties based on the notification type.
|
|
@@ -1460,7 +1460,7 @@ class wo extends S {
|
|
|
1460
1460
|
]),
|
|
1461
1461
|
o({ class: "flex flex-auto flex-col" }, [
|
|
1462
1462
|
o({ class: "flex flex-auto flex-row items-center w-full pr-12" }, [
|
|
1463
|
-
this.title &&
|
|
1463
|
+
this.title && Cs(this.title)
|
|
1464
1464
|
]),
|
|
1465
1465
|
k({ class: "text-base text-muted-foreground m-0 pr-12" }, this.description),
|
|
1466
1466
|
(this.primary || this.secondary) && ge({ class: "margin-top-24 flex align-center" }, this.getButtons())
|
|
@@ -1489,12 +1489,12 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1489
1489
|
onState: ["method", { active: e }],
|
|
1490
1490
|
dataSet: ["method", ["state", e, "active"]],
|
|
1491
1491
|
click: (n, { state: a }) => {
|
|
1492
|
-
a.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"),
|
|
1492
|
+
a.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), Ds(e);
|
|
1493
1493
|
}
|
|
1494
1494
|
}, [
|
|
1495
1495
|
x({}, s),
|
|
1496
1496
|
u(t)
|
|
1497
|
-
])),
|
|
1497
|
+
])), Ds = (e) => {
|
|
1498
1498
|
const t = document.documentElement;
|
|
1499
1499
|
if (e === "system" && (e = globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light"), Re && !Re("(prefers-color-scheme: " + e + ")").matches) {
|
|
1500
1500
|
t.classList.add(e);
|
|
@@ -1581,12 +1581,12 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1581
1581
|
]);
|
|
1582
1582
|
}
|
|
1583
1583
|
}
|
|
1584
|
-
),
|
|
1584
|
+
), Is = r(({ src: e, alt: t }) => !e || e.indexOf(".") === -1 && e.indexOf("[[") === -1 ? null : rs({
|
|
1585
1585
|
src: e,
|
|
1586
1586
|
alt: t,
|
|
1587
1587
|
class: "rounded-full"
|
|
1588
|
-
})),
|
|
1589
|
-
s.textContent =
|
|
1588
|
+
})), Ts = (e) => e && (Array.isArray(e) && (e = e.join(" ")), typeof e != "string" && (e = String(e)), e.split(" ").map((t) => t.charAt(0)).join("").toUpperCase()), at = (e) => !e || e.length < 2 ? e : Ts(e), Ms = (e) => u([e, (t, s) => {
|
|
1589
|
+
s.textContent = at(t);
|
|
1590
1590
|
}]), je = {
|
|
1591
1591
|
xs: "h-6 w-6",
|
|
1592
1592
|
sm: "h-8 w-8",
|
|
@@ -1607,8 +1607,8 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1607
1607
|
"3xl": "text-4xl",
|
|
1608
1608
|
"4xl": "text-5xl",
|
|
1609
1609
|
default: "text-base"
|
|
1610
|
-
},
|
|
1611
|
-
const n =
|
|
1610
|
+
}, Ps = (e) => je[e] || je.default, Bs = (e) => Ee[e] || Ee.default, zs = (e, t = null, s = "md") => {
|
|
1611
|
+
const n = at(String(e)), a = Bs(s);
|
|
1612
1612
|
return o(
|
|
1613
1613
|
{
|
|
1614
1614
|
class: `
|
|
@@ -1618,21 +1618,21 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1618
1618
|
`
|
|
1619
1619
|
},
|
|
1620
1620
|
[
|
|
1621
|
-
t ?
|
|
1621
|
+
t ? Ms(t) : u({ class: "uppercase" }, n)
|
|
1622
1622
|
]
|
|
1623
1623
|
);
|
|
1624
|
-
},
|
|
1625
|
-
const l =
|
|
1624
|
+
}, Os = r(({ src: e, alt: t, fallbackText: s, watcherFallback: n, size: a }) => {
|
|
1625
|
+
const l = Ps(a);
|
|
1626
1626
|
return o(
|
|
1627
1627
|
{
|
|
1628
1628
|
class: `relative flex items-center justify-center ${l}`
|
|
1629
1629
|
},
|
|
1630
1630
|
[
|
|
1631
|
-
|
|
1632
|
-
|
|
1631
|
+
Is({ src: e, alt: t }),
|
|
1632
|
+
zs(s, n, a)
|
|
1633
1633
|
]
|
|
1634
1634
|
);
|
|
1635
|
-
}),
|
|
1635
|
+
}), He = (e) => !e || e.includes("[[") || e.indexOf(".") === -1 && e.indexOf("blob:") === -1, Co = P(
|
|
1636
1636
|
{
|
|
1637
1637
|
/**
|
|
1638
1638
|
* Get the initial state for the component.
|
|
@@ -1642,7 +1642,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1642
1642
|
state() {
|
|
1643
1643
|
return {
|
|
1644
1644
|
// @ts-ignore
|
|
1645
|
-
loaded: !!this.src
|
|
1645
|
+
loaded: !!this.src && !He(this.src)
|
|
1646
1646
|
};
|
|
1647
1647
|
},
|
|
1648
1648
|
/**
|
|
@@ -1688,7 +1688,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1688
1688
|
s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
|
|
1689
1689
|
}
|
|
1690
1690
|
}, [
|
|
1691
|
-
M("loaded", (s) => s === !1 ||
|
|
1691
|
+
M("loaded", (s) => s === !1 || He(this.src) ? E({
|
|
1692
1692
|
htmlFor: e,
|
|
1693
1693
|
class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
|
|
1694
1694
|
}, [
|
|
@@ -1713,7 +1713,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1713
1713
|
state() {
|
|
1714
1714
|
return {
|
|
1715
1715
|
// @ts-ignore
|
|
1716
|
-
loaded: !!this.src
|
|
1716
|
+
loaded: !!this.src && !this.src.includes("[[")
|
|
1717
1717
|
};
|
|
1718
1718
|
},
|
|
1719
1719
|
/**
|
|
@@ -1785,7 +1785,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1785
1785
|
this.input = null;
|
|
1786
1786
|
}
|
|
1787
1787
|
}
|
|
1788
|
-
), Ns = (e, t) =>
|
|
1788
|
+
), Ns = (e, t) => Ke(
|
|
1789
1789
|
{
|
|
1790
1790
|
href: e,
|
|
1791
1791
|
"aria-current": t === "Breadcrumb" && "page",
|
|
@@ -1839,7 +1839,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1839
1839
|
);
|
|
1840
1840
|
}
|
|
1841
1841
|
}
|
|
1842
|
-
),
|
|
1842
|
+
), Ue = {
|
|
1843
1843
|
xs: "h-1 w-1",
|
|
1844
1844
|
sm: "h-2 w-2",
|
|
1845
1845
|
md: "h-4 w-4",
|
|
@@ -1848,7 +1848,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => w(
|
|
|
1848
1848
|
"2xl": "h-16 w-16",
|
|
1849
1849
|
"3xl": "h-24 w-24",
|
|
1850
1850
|
default: "h-4 w-4"
|
|
1851
|
-
}, As = (e) =>
|
|
1851
|
+
}, As = (e) => Ue[e] || Ue.default, Rs = ({ index: e, size: t }) => o({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
|
|
1852
1852
|
u({
|
|
1853
1853
|
class: "block w-full h-full rounded-full transition-colors",
|
|
1854
1854
|
onSet: ["activeIndex", {
|
|
@@ -2025,17 +2025,17 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => w(
|
|
|
2025
2025
|
]);
|
|
2026
2026
|
}
|
|
2027
2027
|
}
|
|
2028
|
-
),
|
|
2028
|
+
), ot = ({ icon: e, click: t, ariaLabel: s }) => b({
|
|
2029
2029
|
variant: "icon",
|
|
2030
2030
|
class: "flex flex-none",
|
|
2031
2031
|
click: t,
|
|
2032
2032
|
icon: e,
|
|
2033
2033
|
"aria-label": s
|
|
2034
|
-
}), _s = ({ click: e }) =>
|
|
2034
|
+
}), _s = ({ click: e }) => ot({
|
|
2035
2035
|
icon: h.circleMinus,
|
|
2036
2036
|
click: e,
|
|
2037
2037
|
ariaLabel: "Decrement"
|
|
2038
|
-
}), Vs = ({ click: e }) =>
|
|
2038
|
+
}), Vs = ({ click: e }) => ot({
|
|
2039
2039
|
icon: h.circlePlus,
|
|
2040
2040
|
click: e,
|
|
2041
2041
|
ariaLabel: "Increment"
|
|
@@ -2174,7 +2174,7 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => w(
|
|
|
2174
2174
|
);
|
|
2175
2175
|
}
|
|
2176
2176
|
return v;
|
|
2177
|
-
},
|
|
2177
|
+
}, Ye = ({ label: e, click: t }) => b(
|
|
2178
2178
|
{
|
|
2179
2179
|
class: `
|
|
2180
2180
|
inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
|
|
@@ -2190,8 +2190,8 @@ const Re = globalThis.matchMedia, le = r(({ value: e, label: t, icon: s }) => w(
|
|
|
2190
2190
|
), tn = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => o({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
|
|
2191
2191
|
b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
|
|
2192
2192
|
b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
|
|
2193
|
-
|
|
2194
|
-
|
|
2193
|
+
Ye({ label: "Previous", click: n }),
|
|
2194
|
+
Ye({ label: "Next", click: s })
|
|
2195
2195
|
]), sn = (e) => o(
|
|
2196
2196
|
{ class: "flex items-center justify-center h-9 w-auto text-[0.8rem] font-normal text-muted-foreground" },
|
|
2197
2197
|
e
|
|
@@ -2529,7 +2529,7 @@ const rn = (e) => {
|
|
|
2529
2529
|
);
|
|
2530
2530
|
}
|
|
2531
2531
|
}
|
|
2532
|
-
),
|
|
2532
|
+
), _e = ({ label: e, click: t }) => b(
|
|
2533
2533
|
{
|
|
2534
2534
|
class: `
|
|
2535
2535
|
inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
|
|
@@ -2545,8 +2545,8 @@ const rn = (e) => {
|
|
|
2545
2545
|
), gn = ({ onMonthClick: e, onYearClick: t, next: s, previous: n }) => o({ class: "flex items-center justify-center gap-x-2 relative min-h-12 text-sm font-medium" }, [
|
|
2546
2546
|
b({ click: e, variant: "ghost", "aria-label": "Select month" }, "[[monthName]]"),
|
|
2547
2547
|
b({ click: t, variant: "ghost", "aria-label": "Select year" }, "[[current.year]]"),
|
|
2548
|
-
|
|
2549
|
-
|
|
2548
|
+
_e({ label: "Previous", click: n }),
|
|
2549
|
+
_e({ label: "Next", click: s })
|
|
2550
2550
|
]), mn = (e) => o({ class: "h-9 flex items-center justify-center font-medium" }, e), bn = () => o(
|
|
2551
2551
|
{ class: "grid grid-cols-7 gap-1 text-center text-xs font-medium text-muted-foreground mb-2" },
|
|
2552
2552
|
["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(mn)
|
|
@@ -2566,14 +2566,14 @@ const rn = (e) => {
|
|
|
2566
2566
|
}, pn = ({ today: e, current: t, blockPriorDates: s, onDateClick: n }) => {
|
|
2567
2567
|
const { start: a, end: l } = t, i = new Date(t.year, t.month, 1).getDay(), c = new Date(t.year, t.month + 1, 0).getDate(), f = [], m = t.month === 0 ? 11 : t.month - 1, v = t.month === 0 ? t.year - 1 : t.year, W = new Date(v, m + 1, 0).getDate(), U = t.month === 11 ? 0 : t.month + 1, Y = t.month === 11 ? t.year + 1 : t.year;
|
|
2568
2568
|
for (let g = i - 1; g >= 0; g--) {
|
|
2569
|
-
const d = W - g, y = A(v, m, d), I = new Date(v, m, d), T = new Date(e.year, e.month, e.date), F = I < T, q = s && F, G = a === y, K = l === y,
|
|
2569
|
+
const d = W - g, y = A(v, m, d), I = new Date(v, m, d), T = new Date(e.year, e.month, e.date), F = I < T, q = s && F, G = a === y, K = l === y, ht = a && l && y > a && y < l;
|
|
2570
2570
|
f.push({
|
|
2571
2571
|
day: d,
|
|
2572
2572
|
iso: y,
|
|
2573
2573
|
disabled: q,
|
|
2574
2574
|
isStart: G,
|
|
2575
2575
|
isEnd: K,
|
|
2576
|
-
isBetween:
|
|
2576
|
+
isBetween: ht,
|
|
2577
2577
|
isOtherMonth: !0,
|
|
2578
2578
|
click: () => n(y)
|
|
2579
2579
|
});
|
|
@@ -2672,16 +2672,16 @@ const rn = (e) => {
|
|
|
2672
2672
|
variant: l === "start" ? "primary" : "outline",
|
|
2673
2673
|
class: "flex-1"
|
|
2674
2674
|
}, [
|
|
2675
|
-
o({ class: "font-medium" },
|
|
2675
|
+
o({ class: "font-medium" }, Ve("current.start", "Start Date"))
|
|
2676
2676
|
])),
|
|
2677
2677
|
Q("selecting", (l) => b({
|
|
2678
2678
|
click: a,
|
|
2679
2679
|
variant: l === "end" ? "primary" : "outline",
|
|
2680
2680
|
class: "flex-1"
|
|
2681
2681
|
}, [
|
|
2682
|
-
o({ class: "font-medium" },
|
|
2682
|
+
o({ class: "font-medium" }, Ve("current.end", "End Date"))
|
|
2683
2683
|
]))
|
|
2684
|
-
]),
|
|
2684
|
+
]), Ve = (e, t) => [`[[${e}]]`, (s) => s == null ? t : kn(s)], kn = (e) => {
|
|
2685
2685
|
const t = /* @__PURE__ */ new Date(e + "T00:00:00"), s = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], n = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
2686
2686
|
return `${s[t.getDay()]}, ${t.getDate()} ${n[t.getMonth()]}`;
|
|
2687
2687
|
}, Cn = ({ currentYear: e, onSelect: t }) => {
|
|
@@ -3054,7 +3054,7 @@ function On({ handleTimeSelect: e }) {
|
|
|
3054
3054
|
)
|
|
3055
3055
|
);
|
|
3056
3056
|
}
|
|
3057
|
-
function
|
|
3057
|
+
function We(e) {
|
|
3058
3058
|
if (!e)
|
|
3059
3059
|
return { hour: null, minute: null, meridian: null };
|
|
3060
3060
|
const t = /^(\d{1,2}):(\d{2})(?::(\d{2}))?\s?(AM|PM)?$/i, s = e.match(t);
|
|
@@ -3075,7 +3075,7 @@ const Bo = O(
|
|
|
3075
3075
|
* @member {object} state
|
|
3076
3076
|
*/
|
|
3077
3077
|
state() {
|
|
3078
|
-
const e = this.selectedTime ?? null, { hour: t, minute: s, meridian: n } =
|
|
3078
|
+
const e = this.selectedTime ?? null, { hour: t, minute: s, meridian: n } = We(e);
|
|
3079
3079
|
return {
|
|
3080
3080
|
selectedTime: e,
|
|
3081
3081
|
open: !1,
|
|
@@ -3091,7 +3091,7 @@ const Bo = O(
|
|
|
3091
3091
|
*/
|
|
3092
3092
|
after() {
|
|
3093
3093
|
if (this.input.value) {
|
|
3094
|
-
const { hour: e, minute: t, meridian: s } =
|
|
3094
|
+
const { hour: e, minute: t, meridian: s } = We(this.input.value);
|
|
3095
3095
|
this.state.set({
|
|
3096
3096
|
hour: e,
|
|
3097
3097
|
minute: t,
|
|
@@ -3171,7 +3171,7 @@ const Bo = O(
|
|
|
3171
3171
|
x({ size: "lg" }, e)
|
|
3172
3172
|
]), Fn = ({ title: e }) => X({ class: "flex flex-auto items-center" }, [
|
|
3173
3173
|
J({ class: "text-lg font-semibold" }, e)
|
|
3174
|
-
]), zo = r((e, t) =>
|
|
3174
|
+
]), zo = r((e, t) => xt(
|
|
3175
3175
|
{
|
|
3176
3176
|
class: `fixed pullUpIn z-30 w-[98%] border md:w-full max-w-lg bg-popover text-foreground shadow-lg duration-200
|
|
3177
3177
|
rounded-lg flex flex-auto flex-col
|
|
@@ -3198,7 +3198,7 @@ const Bo = O(
|
|
|
3198
3198
|
])
|
|
3199
3199
|
]
|
|
3200
3200
|
)), Oo = r((e, t = []) => o({ class: "w-full max-w-md p-6 m-auto" }, [
|
|
3201
|
-
|
|
3201
|
+
nt({ class: "flex flex-auto flex-col" }, [
|
|
3202
3202
|
o({ class: "flex flex-auto flex-col gap-y-4" }, [
|
|
3203
3203
|
o({ class: "flex flex-auto items-center justify-center" }, [
|
|
3204
3204
|
// @ts-ignore
|
|
@@ -3231,11 +3231,11 @@ r(({ value: e, label: t }) => w({
|
|
|
3231
3231
|
const Ln = (e, t) => {
|
|
3232
3232
|
const s = e.toggleAllSelectedRows();
|
|
3233
3233
|
t.state.checked = !s;
|
|
3234
|
-
}, An = (e) =>
|
|
3235
|
-
V((t) => new
|
|
3234
|
+
}, An = (e) => Qe({ class: `cursor-pointer py-3 px-4 text-base w-10 ${e.class || ""}` }, [
|
|
3235
|
+
V((t) => new qt({ class: "mr-2", onChange: (s, n) => Ln(t, n) }))
|
|
3236
3236
|
]), Rn = ({ align: e, sortable: t, key: s, label: n, sort: a, class: l }) => {
|
|
3237
3237
|
const i = e || "justify-start";
|
|
3238
|
-
return
|
|
3238
|
+
return Qe({
|
|
3239
3239
|
class: `cursor-pointer py-3 px-4 text-base ${l || ""}`,
|
|
3240
3240
|
click: t && (() => a(s))
|
|
3241
3241
|
}, [
|
|
@@ -3244,8 +3244,8 @@ const Ln = (e, t) => {
|
|
|
3244
3244
|
t && j({ class: "ml-2", html: h.arrows.upDown })
|
|
3245
3245
|
])
|
|
3246
3246
|
]);
|
|
3247
|
-
}, Se = (e) =>
|
|
3248
|
-
|
|
3247
|
+
}, Se = (e) => pt([
|
|
3248
|
+
yt({
|
|
3249
3249
|
class: "text-muted-foreground border-b",
|
|
3250
3250
|
map: [
|
|
3251
3251
|
e.headers,
|
|
@@ -3258,7 +3258,7 @@ const Ln = (e, t) => {
|
|
|
3258
3258
|
})
|
|
3259
3259
|
]
|
|
3260
3260
|
})
|
|
3261
|
-
]), jn = ({ key: e, rows: t, selectRow: s, rowItem: n, emptyState: a, skeleton: l, columnCount: i }) => new
|
|
3261
|
+
]), jn = ({ key: e, rows: t, selectRow: s, rowItem: n, emptyState: a, skeleton: l, columnCount: i }) => new St({
|
|
3262
3262
|
cache: "list",
|
|
3263
3263
|
key: e,
|
|
3264
3264
|
items: t,
|
|
@@ -3268,7 +3268,7 @@ const Ln = (e, t) => {
|
|
|
3268
3268
|
skeleton: l,
|
|
3269
3269
|
columnCount: i
|
|
3270
3270
|
});
|
|
3271
|
-
class
|
|
3271
|
+
class lt extends S {
|
|
3272
3272
|
/**
|
|
3273
3273
|
* Initializes component data.
|
|
3274
3274
|
*
|
|
@@ -3433,7 +3433,7 @@ class ot extends S {
|
|
|
3433
3433
|
this.data.selectedRows = [];
|
|
3434
3434
|
}
|
|
3435
3435
|
}
|
|
3436
|
-
const En = (e) => new
|
|
3436
|
+
const En = (e) => new $t({
|
|
3437
3437
|
cache: "list",
|
|
3438
3438
|
loadMoreItems: e.loadMoreItems,
|
|
3439
3439
|
offset: e.offset,
|
|
@@ -3446,7 +3446,7 @@ const En = (e) => new St({
|
|
|
3446
3446
|
skeleton: e.skeleton,
|
|
3447
3447
|
columnCount: e.columnCount
|
|
3448
3448
|
});
|
|
3449
|
-
class Hn extends
|
|
3449
|
+
class Hn extends lt {
|
|
3450
3450
|
/**
|
|
3451
3451
|
* Renders the DataTable component.
|
|
3452
3452
|
*
|
|
@@ -3529,7 +3529,7 @@ const No = r((e) => new Hn(
|
|
|
3529
3529
|
// @ts-ignore
|
|
3530
3530
|
skeleton: e.skeleton
|
|
3531
3531
|
}
|
|
3532
|
-
)), Un = (e) => new
|
|
3532
|
+
)), Un = (e) => new Dt({
|
|
3533
3533
|
cache: "list",
|
|
3534
3534
|
scrollContainer: e.scrollContainer,
|
|
3535
3535
|
loadMoreItems: e.loadMoreItems,
|
|
@@ -3543,7 +3543,7 @@ const No = r((e) => new Hn(
|
|
|
3543
3543
|
skeleton: e.skeleton,
|
|
3544
3544
|
columnCount: e.columnCount
|
|
3545
3545
|
});
|
|
3546
|
-
class Yn extends
|
|
3546
|
+
class Yn extends lt {
|
|
3547
3547
|
/**
|
|
3548
3548
|
* Renders the DataTable component.
|
|
3549
3549
|
*
|
|
@@ -3640,14 +3640,14 @@ const Fo = r((e) => new Yn(
|
|
|
3640
3640
|
k({ class: "text-xs leading-5 text-gray-500" }, "Online")
|
|
3641
3641
|
]), Wn = (e) => k({ class: "text-xs leading-5 text-muted-foreground" }, [
|
|
3642
3642
|
u("Last seen "),
|
|
3643
|
-
|
|
3643
|
+
wt({ datetime: e }, "3h ago")
|
|
3644
3644
|
]), qn = (e, t) => e === "online" ? Vn() : Wn(t), Gn = r(({ role: e, lastSeen: t, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
|
|
3645
3645
|
k({ class: "text-sm leading-6 m-0" }, e),
|
|
3646
3646
|
qn(s, t)
|
|
3647
3647
|
])), Kn = (e) => e.split(" ").map((s) => s[0]).join(""), Qn = r((e) => xe({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
|
|
3648
3648
|
o({ class: "flex min-w-0 gap-x-4" }, [
|
|
3649
3649
|
// @ts-ignore
|
|
3650
|
-
|
|
3650
|
+
Os({ src: e.image, alt: e.name, fallbackText: Kn(e.name) }),
|
|
3651
3651
|
// @ts-ignore
|
|
3652
3652
|
_n({ name: e.name, email: e.email })
|
|
3653
3653
|
]),
|
|
@@ -3659,7 +3659,7 @@ const Fo = r((e) => new Yn(
|
|
|
3659
3659
|
// @ts-ignore
|
|
3660
3660
|
status: e.status
|
|
3661
3661
|
})
|
|
3662
|
-
])), Lo = r((e) => new
|
|
3662
|
+
])), Lo = r((e) => new It({
|
|
3663
3663
|
cache: "list",
|
|
3664
3664
|
key: "name",
|
|
3665
3665
|
// @ts-ignore
|
|
@@ -3763,7 +3763,7 @@ const Xn = r(({ options: e, click: t }, s) => ({
|
|
|
3763
3763
|
]
|
|
3764
3764
|
)
|
|
3765
3765
|
];
|
|
3766
|
-
class
|
|
3766
|
+
class rt extends S {
|
|
3767
3767
|
/**
|
|
3768
3768
|
* This will declare the props for the compiler.
|
|
3769
3769
|
*
|
|
@@ -3795,7 +3795,7 @@ class lt extends S {
|
|
|
3795
3795
|
*/
|
|
3796
3796
|
addLink() {
|
|
3797
3797
|
const t = this.options && this.options.length > 0, s = this.content || Zn(String(this.label), this.icon, t);
|
|
3798
|
-
return this.href ? new
|
|
3798
|
+
return this.href ? new kt(
|
|
3799
3799
|
{
|
|
3800
3800
|
class: "flex flex-auto flex-row rounded-md transition-all overflow-x-hidden",
|
|
3801
3801
|
cache: "link",
|
|
@@ -3823,7 +3823,7 @@ class lt extends S {
|
|
|
3823
3823
|
}
|
|
3824
3824
|
}
|
|
3825
3825
|
const ea = r(({ map: e }, t) => Z({ class: "navigation-group flex flex-col gap-2 list-none m-0 py-2 px-0", map: e }, [
|
|
3826
|
-
|
|
3826
|
+
qe({ class: "text-muted-foreground text-sm py-0 px-4 whitespace-nowrap" }, t)
|
|
3827
3827
|
]));
|
|
3828
3828
|
class ta extends S {
|
|
3829
3829
|
/**
|
|
@@ -3883,10 +3883,10 @@ class ta extends S {
|
|
|
3883
3883
|
* @returns {object}
|
|
3884
3884
|
*/
|
|
3885
3885
|
addLink(t) {
|
|
3886
|
-
return new
|
|
3886
|
+
return new rt(t);
|
|
3887
3887
|
}
|
|
3888
3888
|
}
|
|
3889
|
-
class
|
|
3889
|
+
class it extends ta {
|
|
3890
3890
|
onCreated() {
|
|
3891
3891
|
this.links = [];
|
|
3892
3892
|
}
|
|
@@ -3921,7 +3921,7 @@ class rt extends ta {
|
|
|
3921
3921
|
* @returns {object}
|
|
3922
3922
|
*/
|
|
3923
3923
|
addLink(t) {
|
|
3924
|
-
const s = new
|
|
3924
|
+
const s = new rt(t);
|
|
3925
3925
|
if (this.links.push(s), !s.options)
|
|
3926
3926
|
return s;
|
|
3927
3927
|
const n = this.addSubNav(s);
|
|
@@ -3936,7 +3936,7 @@ const sa = (e, t) => new RegExp(`${e}($|/|\\.).*`).test(t), na = (e, t) => {
|
|
|
3936
3936
|
const s = e.link.panel.pathname;
|
|
3937
3937
|
return !s && e.isSelected() ? !0 : e.exact ? t === s : sa(s, t);
|
|
3938
3938
|
};
|
|
3939
|
-
class aa extends
|
|
3939
|
+
class aa extends it {
|
|
3940
3940
|
/**
|
|
3941
3941
|
* This will declare the props for the compiler.
|
|
3942
3942
|
*
|
|
@@ -4104,31 +4104,31 @@ class ia extends S {
|
|
|
4104
4104
|
this.container = app.root;
|
|
4105
4105
|
}
|
|
4106
4106
|
}
|
|
4107
|
-
const
|
|
4107
|
+
const ct = () => b({ class: "m-2", variant: "ghost", addState() {
|
|
4108
4108
|
return {
|
|
4109
4109
|
open: !1
|
|
4110
4110
|
};
|
|
4111
4111
|
}, click: (e, { state: t }) => t.toggle("open") }, [
|
|
4112
4112
|
x({}, h.bar.three)
|
|
4113
4113
|
]), ca = (e) => me({ class: "text-lg ml-2" }, e), da = (e) => o({ class: "flex flex-auto flex-row items-center lg:hidden" }, [
|
|
4114
|
-
|
|
4114
|
+
ct(),
|
|
4115
4115
|
e.title && ca(e.title)
|
|
4116
|
-
]),
|
|
4116
|
+
]), dt = (e, t) => {
|
|
4117
4117
|
e.forEach((s) => {
|
|
4118
4118
|
if (s.options) {
|
|
4119
|
-
|
|
4119
|
+
dt(s.options, t);
|
|
4120
4120
|
return;
|
|
4121
4121
|
}
|
|
4122
4122
|
s.callBack = t;
|
|
4123
4123
|
});
|
|
4124
|
-
},
|
|
4124
|
+
}, ut = (e) => o({ class: "bg-background flex flex-auto flex-col w-full relative" }, [
|
|
4125
4125
|
M(
|
|
4126
4126
|
"open",
|
|
4127
4127
|
(t) => t ? [
|
|
4128
4128
|
new ia({ title: e.title }, [
|
|
4129
4129
|
V(({ state: s }) => {
|
|
4130
4130
|
const n = (a) => s.open = !1;
|
|
4131
|
-
return
|
|
4131
|
+
return dt(e.options, n), new it(
|
|
4132
4132
|
{
|
|
4133
4133
|
options: e.options
|
|
4134
4134
|
}
|
|
@@ -4139,13 +4139,13 @@ const it = () => b({ class: "m-2", variant: "ghost", addState() {
|
|
|
4139
4139
|
)
|
|
4140
4140
|
]), Ao = r((e) => o({ cache: "mobileNav", class: "inline-flex relative lg:hidden" }, [
|
|
4141
4141
|
o([
|
|
4142
|
-
|
|
4143
|
-
|
|
4142
|
+
ct(),
|
|
4143
|
+
ut(e)
|
|
4144
4144
|
])
|
|
4145
4145
|
])), Ro = r((e) => o({ cache: "mobileNav", class: "flex flex-auto flex-col w-full relative lg:hidden" }, [
|
|
4146
4146
|
o({ class: "flex flex-auto flex-col w-full" }, [
|
|
4147
4147
|
da(e),
|
|
4148
|
-
|
|
4148
|
+
ut(e)
|
|
4149
4149
|
])
|
|
4150
4150
|
])), jo = r((e) => {
|
|
4151
4151
|
const t = e.margin || "m-4 ml-0";
|
|
@@ -4248,7 +4248,7 @@ class ua extends S {
|
|
|
4248
4248
|
return this.children;
|
|
4249
4249
|
}
|
|
4250
4250
|
}
|
|
4251
|
-
|
|
4251
|
+
Xe.addType("dockableOverlay", (e) => {
|
|
4252
4252
|
if (!e)
|
|
4253
4253
|
return;
|
|
4254
4254
|
const t = e.component;
|
|
@@ -4324,7 +4324,7 @@ class Eo extends ua {
|
|
|
4324
4324
|
* @returns {void}
|
|
4325
4325
|
*/
|
|
4326
4326
|
afterSetup() {
|
|
4327
|
-
|
|
4327
|
+
Xe.add(
|
|
4328
4328
|
this.container,
|
|
4329
4329
|
"dockableOverlay",
|
|
4330
4330
|
{
|
|
@@ -4598,7 +4598,7 @@ const pa = r((e, t) => (e.class = "basic-page pt-[80px] sm:pt-0 flex flex-auto f
|
|
|
4598
4598
|
...e,
|
|
4599
4599
|
children: t
|
|
4600
4600
|
})), ya = r(({ title: e, description: t }) => X({ class: "sm:py-8 px-6 md:px-5 flex flex-col" }, [
|
|
4601
|
-
|
|
4601
|
+
vt({ class: "scroll-m-20 text-3xl font-bold tracking-tight" }, e),
|
|
4602
4602
|
t && k({ class: "text-base text-muted-foreground py-2 max-w-[700px]" }, t)
|
|
4603
4603
|
]));
|
|
4604
4604
|
class Yo extends xa {
|
|
@@ -4621,7 +4621,7 @@ class Yo extends xa {
|
|
|
4621
4621
|
title: this.title,
|
|
4622
4622
|
description: this.description
|
|
4623
4623
|
}),
|
|
4624
|
-
|
|
4624
|
+
Tt(this.children)
|
|
4625
4625
|
]);
|
|
4626
4626
|
}
|
|
4627
4627
|
}
|
|
@@ -4630,7 +4630,7 @@ export {
|
|
|
4630
4630
|
co as A,
|
|
4631
4631
|
jo as B,
|
|
4632
4632
|
ln as C,
|
|
4633
|
-
|
|
4633
|
+
lt as D,
|
|
4634
4634
|
bo as E,
|
|
4635
4635
|
zo as F,
|
|
4636
4636
|
Eo as G,
|
|
@@ -4648,24 +4648,24 @@ export {
|
|
|
4648
4648
|
Na as S,
|
|
4649
4649
|
ja as T,
|
|
4650
4650
|
Ra as U,
|
|
4651
|
-
|
|
4651
|
+
nt as V,
|
|
4652
4652
|
uo as W,
|
|
4653
4653
|
fo as X,
|
|
4654
4654
|
ho as Y,
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4655
|
+
ws as Z,
|
|
4656
|
+
xs as _,
|
|
4657
|
+
Os as a,
|
|
4658
4658
|
Qn as a$,
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4659
|
+
Ht as a0,
|
|
4660
|
+
ms as a1,
|
|
4661
|
+
bs as a2,
|
|
4662
|
+
ps as a3,
|
|
4663
4663
|
A as a4,
|
|
4664
4664
|
Yo as a5,
|
|
4665
4665
|
Rn as a6,
|
|
4666
4666
|
Za as a7,
|
|
4667
4667
|
de as a8,
|
|
4668
|
-
|
|
4668
|
+
rs as a9,
|
|
4669
4669
|
la as aA,
|
|
4670
4670
|
oo as aB,
|
|
4671
4671
|
_a as aC,
|
|
@@ -4694,12 +4694,12 @@ export {
|
|
|
4694
4694
|
Xa as aZ,
|
|
4695
4695
|
Lo as a_,
|
|
4696
4696
|
Co as aa,
|
|
4697
|
-
|
|
4697
|
+
it as ab,
|
|
4698
4698
|
N as ac,
|
|
4699
|
-
|
|
4699
|
+
Et as ad,
|
|
4700
4700
|
za as ae,
|
|
4701
4701
|
So as af,
|
|
4702
|
-
|
|
4702
|
+
rt as ag,
|
|
4703
4703
|
pa as ah,
|
|
4704
4704
|
Pe as ai,
|
|
4705
4705
|
_s as aj,
|
|
@@ -4707,7 +4707,7 @@ export {
|
|
|
4707
4707
|
Ro as al,
|
|
4708
4708
|
an as am,
|
|
4709
4709
|
Ga as an,
|
|
4710
|
-
|
|
4710
|
+
ct as ao,
|
|
4711
4711
|
Jn as ap,
|
|
4712
4712
|
ta as aq,
|
|
4713
4713
|
ea as ar,
|
|
@@ -4720,11 +4720,11 @@ export {
|
|
|
4720
4720
|
Vs as ay,
|
|
4721
4721
|
se as az,
|
|
4722
4722
|
ra as b,
|
|
4723
|
-
|
|
4723
|
+
Ze as b0,
|
|
4724
4724
|
O as b1,
|
|
4725
4725
|
Ka as b2,
|
|
4726
4726
|
Gs as b3,
|
|
4727
|
-
|
|
4727
|
+
gs as b4,
|
|
4728
4728
|
Ia as b5,
|
|
4729
4729
|
Da as b6,
|
|
4730
4730
|
B as b7,
|
|
@@ -4734,8 +4734,8 @@ export {
|
|
|
4734
4734
|
$o as e,
|
|
4735
4735
|
b as f,
|
|
4736
4736
|
en as g,
|
|
4737
|
-
|
|
4738
|
-
|
|
4737
|
+
jt as h,
|
|
4738
|
+
qt as i,
|
|
4739
4739
|
An as j,
|
|
4740
4740
|
Ba as k,
|
|
4741
4741
|
ao as l,
|