@tempots/beatui 0.4.1 → 0.5.0
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/beatui.css +1 -1
- package/dist/index.es.js +893 -780
- package/dist/index.umd.js +52 -52
- package/dist/types/components/navigation/index.d.ts +1 -0
- package/dist/types/components/navigation/link/index.d.ts +2 -0
- package/dist/types/components/navigation/link/link.d.ts +15 -0
- package/dist/types/components/navigation/link/navigation-link.d.ts +23 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Bt = Object.defineProperty;
|
|
2
2
|
var qe = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var B = (e, n, t) =>
|
|
7
|
-
var j = (e, n, t) => (
|
|
8
|
-
import { computedOf as
|
|
9
|
-
import { Use as
|
|
10
|
-
import { WhenInViewport as
|
|
11
|
-
const
|
|
5
|
+
var It = (e, n, t) => n in e ? Bt(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
6
|
+
var B = (e, n, t) => It(e, typeof n != "symbol" ? n + "" : n, t), Lt = (e, n, t) => n.has(e) || qe("Cannot " + t);
|
|
7
|
+
var j = (e, n, t) => (Lt(e, n, "read from private field"), t ? t.call(e) : n.get(e)), me = (e, n, t) => n.has(e) ? qe("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(e) : n.set(e, t);
|
|
8
|
+
import { computedOf as $, html as p, attr as a, When as G, Fragment as L, aria as A, style as x, prop as q, on as m, OnDispose as N, Value as w, Empty as y, dataAttr as ue, Ensure as Oe, WithElement as F, input as oe, emitValue as I, emitValueAsDate as Dt, ForEach as Ve, OneOfType as Ot, emitValueAsNullableDate as Vt, emitValueAsNullableDateTime as jt, emitValueAsNumber as Be, Repeat as Ft, signal as Ne, makeProviderMark as Je, localStorageProp as et, Use as Ce, Portal as Ht, emitChecked as Pt, OneOfValue as Mt, WithBrowserCtx as Wt, render as qt, MapSignal as Nt, svg as Re, svgAttr as Ue } from "@tempots/dom";
|
|
9
|
+
import { Use as ll } from "@tempots/dom";
|
|
10
|
+
import { WhenInViewport as Rt, Resource as tt, ElementRect as xe, useAppearance as Ut, AutoSelect as zt, WindowSize as Gt, PopOver as Zt, Anchor as nt, Location as rt } from "@tempots/ui";
|
|
11
|
+
const Kt = "bui-icons", ve = /* @__PURE__ */ new Map(), ot = (() => {
|
|
12
12
|
try {
|
|
13
13
|
return typeof indexedDB < "u" && indexedDB !== null;
|
|
14
14
|
} catch {
|
|
15
15
|
return !1;
|
|
16
16
|
}
|
|
17
17
|
})();
|
|
18
|
-
function
|
|
19
|
-
return
|
|
20
|
-
const t = indexedDB.open(
|
|
18
|
+
function Xt() {
|
|
19
|
+
return ot ? new Promise((e, n) => {
|
|
20
|
+
const t = indexedDB.open(Kt, 1);
|
|
21
21
|
t.onupgradeneeded = function(r) {
|
|
22
22
|
const o = r.target.result;
|
|
23
23
|
o.objectStoreNames.contains("icons") || o.createObjectStore("icons");
|
|
@@ -28,8 +28,8 @@ function Kt() {
|
|
|
28
28
|
};
|
|
29
29
|
}) : Promise.reject(new Error("IndexedDB not available"));
|
|
30
30
|
}
|
|
31
|
-
const ye =
|
|
32
|
-
function
|
|
31
|
+
const ye = ot ? Xt() : null;
|
|
32
|
+
function Yt(e, n) {
|
|
33
33
|
return new Promise(async (t, r) => {
|
|
34
34
|
try {
|
|
35
35
|
if (ye) {
|
|
@@ -42,7 +42,7 @@ function Xt(e, n) {
|
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Qt(e) {
|
|
46
46
|
return new Promise(async (n, t) => {
|
|
47
47
|
try {
|
|
48
48
|
if (ye) {
|
|
@@ -57,7 +57,7 @@ function Yt(e) {
|
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
-
async function
|
|
60
|
+
async function Jt(e) {
|
|
61
61
|
const n = `https://api.iconify.design/${e}.svg`;
|
|
62
62
|
return fetch(n).then((t) => {
|
|
63
63
|
if (t.status === 200)
|
|
@@ -65,44 +65,44 @@ async function Qt(e) {
|
|
|
65
65
|
throw new Error(`Failed to load icon: ${e}`);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
async function
|
|
69
|
-
const n = e.replace(":", "/"), t = await
|
|
68
|
+
async function en(e) {
|
|
69
|
+
const n = e.replace(":", "/"), t = await Qt(n);
|
|
70
70
|
if (t)
|
|
71
71
|
return t;
|
|
72
|
-
const r = await
|
|
73
|
-
return await
|
|
72
|
+
const r = await Jt(n);
|
|
73
|
+
return await Yt(n, r), r;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function tn(e, n) {
|
|
76
76
|
const t = ["bc-icon", `bc-icon--${e}`];
|
|
77
77
|
return n && t.push(`bu-fg--${n}`), t.join(" ");
|
|
78
78
|
}
|
|
79
79
|
function K({ icon: e, size: n = "md", color: t, title: r, accessibility: o = "auto" }, ...l) {
|
|
80
|
-
const s =
|
|
80
|
+
const s = $(
|
|
81
81
|
o,
|
|
82
82
|
r
|
|
83
83
|
)((u, c) => u === "decorative" ? !1 : u === "informative" ? !0 : c != null && c !== "");
|
|
84
84
|
return p.span(
|
|
85
85
|
a.class(
|
|
86
|
-
|
|
86
|
+
$(
|
|
87
87
|
n,
|
|
88
88
|
t
|
|
89
|
-
)((u, c) =>
|
|
89
|
+
)((u, c) => tn(u ?? "md", c))
|
|
90
90
|
),
|
|
91
91
|
// Add accessibility attributes based on icon type
|
|
92
92
|
G(
|
|
93
93
|
s,
|
|
94
|
-
() =>
|
|
94
|
+
() => L(
|
|
95
95
|
a.role("img"),
|
|
96
96
|
// TODO translation
|
|
97
97
|
A.label(r || "Icon")
|
|
98
98
|
),
|
|
99
99
|
() => A.hidden(!0)
|
|
100
100
|
),
|
|
101
|
-
|
|
101
|
+
Rt(
|
|
102
102
|
{ once: !0 },
|
|
103
|
-
() =>
|
|
103
|
+
() => tt({
|
|
104
104
|
request: e,
|
|
105
|
-
load: ({ request: u }) =>
|
|
105
|
+
load: ({ request: u }) => en(u),
|
|
106
106
|
mapError: String
|
|
107
107
|
})({
|
|
108
108
|
success: (u) => p.span(
|
|
@@ -115,7 +115,7 @@ function K({ icon: e, size: n = "md", color: t, title: r, accessibility: o = "au
|
|
|
115
115
|
// Loading state accessibility
|
|
116
116
|
G(
|
|
117
117
|
s,
|
|
118
|
-
() =>
|
|
118
|
+
() => L(
|
|
119
119
|
a.role("img"),
|
|
120
120
|
// TODO translation
|
|
121
121
|
A.label("Loading icon")
|
|
@@ -130,7 +130,7 @@ function K({ icon: e, size: n = "md", color: t, title: r, accessibility: o = "au
|
|
|
130
130
|
// Error state accessibility
|
|
131
131
|
G(
|
|
132
132
|
s,
|
|
133
|
-
() =>
|
|
133
|
+
() => L(
|
|
134
134
|
a.role("img"),
|
|
135
135
|
// TODO translation
|
|
136
136
|
A.label("Failed to load icon")
|
|
@@ -144,7 +144,7 @@ function K({ icon: e, size: n = "md", color: t, title: r, accessibility: o = "au
|
|
|
144
144
|
...l
|
|
145
145
|
);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function nn(e, n, t, r, o, l) {
|
|
148
148
|
const s = [
|
|
149
149
|
"bc-button",
|
|
150
150
|
`bu-text-${n}`,
|
|
@@ -185,14 +185,14 @@ function be({
|
|
|
185
185
|
return p.button(
|
|
186
186
|
a.type(e),
|
|
187
187
|
a.disabled(
|
|
188
|
-
|
|
188
|
+
$(n, t)((d, h) => d || h)
|
|
189
189
|
),
|
|
190
190
|
// Add ARIA attributes for accessibility
|
|
191
191
|
A.busy(t ?? !1),
|
|
192
192
|
// TODO translation
|
|
193
193
|
G(t ?? !1, () => A.label("Loading, please wait")),
|
|
194
194
|
a.class(
|
|
195
|
-
|
|
195
|
+
$(
|
|
196
196
|
r,
|
|
197
197
|
o,
|
|
198
198
|
l,
|
|
@@ -200,19 +200,19 @@ function be({
|
|
|
200
200
|
n,
|
|
201
201
|
t
|
|
202
202
|
)(
|
|
203
|
-
(d, h,
|
|
203
|
+
(d, h, f, b, v, C) => nn(
|
|
204
204
|
d ?? "filled",
|
|
205
205
|
h ?? "md",
|
|
206
|
-
|
|
206
|
+
f ?? "base",
|
|
207
207
|
b ?? "sm",
|
|
208
208
|
v,
|
|
209
|
-
|
|
209
|
+
C
|
|
210
210
|
)
|
|
211
211
|
)
|
|
212
212
|
),
|
|
213
213
|
G(
|
|
214
214
|
t ?? !1,
|
|
215
|
-
() =>
|
|
215
|
+
() => L(
|
|
216
216
|
x.width(
|
|
217
217
|
i.map((d) => d == null ? "" : `${d.width}px`)
|
|
218
218
|
),
|
|
@@ -228,7 +228,7 @@ function be({
|
|
|
228
228
|
"Loading, please wait"
|
|
229
229
|
)
|
|
230
230
|
),
|
|
231
|
-
() =>
|
|
231
|
+
() => L(m.click(u), ...c)
|
|
232
232
|
),
|
|
233
233
|
G(
|
|
234
234
|
t != null,
|
|
@@ -529,7 +529,7 @@ const je = {
|
|
|
529
529
|
900: "oklch(0.216 0.006 56.043)",
|
|
530
530
|
950: "oklch(0.147 0.004 49.25)"
|
|
531
531
|
}
|
|
532
|
-
},
|
|
532
|
+
}, D = (e) => Object.entries(e), _e = (e, n) => e === n || e !== e && n !== n, ze = (e, n) => {
|
|
533
533
|
const t = setTimeout(e, n);
|
|
534
534
|
return () => clearTimeout(t);
|
|
535
535
|
}, le = (e) => {
|
|
@@ -540,7 +540,7 @@ const je = {
|
|
|
540
540
|
return n == null && (n = requestAnimationFrame(t)), () => {
|
|
541
541
|
n != null && (cancelAnimationFrame(n), n = null);
|
|
542
542
|
};
|
|
543
|
-
},
|
|
543
|
+
}, lt = {
|
|
544
544
|
sm: "40rem",
|
|
545
545
|
// 640px
|
|
546
546
|
md: "48rem",
|
|
@@ -552,22 +552,22 @@ const je = {
|
|
|
552
552
|
"2xl": "96rem"
|
|
553
553
|
// 1536px
|
|
554
554
|
};
|
|
555
|
-
function
|
|
555
|
+
function at(e) {
|
|
556
556
|
return `--breakpoint-${e}`;
|
|
557
557
|
}
|
|
558
|
-
function
|
|
559
|
-
return `var(${
|
|
558
|
+
function Wr(e) {
|
|
559
|
+
return `var(${at(e)})`;
|
|
560
560
|
}
|
|
561
|
-
function
|
|
562
|
-
return `@media (width >= ${
|
|
561
|
+
function qr(e) {
|
|
562
|
+
return `@media (width >= ${lt[e]})`;
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function rn() {
|
|
565
565
|
const e = {};
|
|
566
|
-
return
|
|
567
|
-
e[
|
|
566
|
+
return D(lt).forEach(([n, t]) => {
|
|
567
|
+
e[at(n)] = t;
|
|
568
568
|
}), e;
|
|
569
569
|
}
|
|
570
|
-
const
|
|
570
|
+
const on = [
|
|
571
571
|
50,
|
|
572
572
|
100,
|
|
573
573
|
200,
|
|
@@ -579,7 +579,7 @@ const rn = [
|
|
|
579
579
|
800,
|
|
580
580
|
900,
|
|
581
581
|
950
|
|
582
|
-
],
|
|
582
|
+
], Se = [
|
|
583
583
|
"primary",
|
|
584
584
|
"secondary",
|
|
585
585
|
"base",
|
|
@@ -587,10 +587,10 @@ const rn = [
|
|
|
587
587
|
"warning",
|
|
588
588
|
"error",
|
|
589
589
|
"info"
|
|
590
|
-
],
|
|
591
|
-
...
|
|
592
|
-
...
|
|
593
|
-
],
|
|
590
|
+
], Nr = [
|
|
591
|
+
...Se,
|
|
592
|
+
...D(je).map(([e]) => e)
|
|
593
|
+
], st = {
|
|
594
594
|
primary: "blue",
|
|
595
595
|
secondary: "gray",
|
|
596
596
|
base: "gray",
|
|
@@ -598,7 +598,7 @@ const rn = [
|
|
|
598
598
|
warning: "amber",
|
|
599
599
|
error: "red",
|
|
600
600
|
info: "blue"
|
|
601
|
-
},
|
|
601
|
+
}, ln = {
|
|
602
602
|
light: {
|
|
603
603
|
background: ["base", 50],
|
|
604
604
|
surface: ["base", 100],
|
|
@@ -615,7 +615,7 @@ const rn = [
|
|
|
615
615
|
raised: ["base", 600],
|
|
616
616
|
overlay: ["base", 500]
|
|
617
617
|
}
|
|
618
|
-
},
|
|
618
|
+
}, an = {
|
|
619
619
|
light: {
|
|
620
620
|
normal: ["base", 900],
|
|
621
621
|
muted: ["base", 600],
|
|
@@ -626,7 +626,7 @@ const rn = [
|
|
|
626
626
|
muted: ["base", 400],
|
|
627
627
|
inverted: ["base", 900]
|
|
628
628
|
}
|
|
629
|
-
},
|
|
629
|
+
}, sn = {
|
|
630
630
|
light: {
|
|
631
631
|
border: ["base", 200],
|
|
632
632
|
divider: ["base", 300],
|
|
@@ -637,7 +637,7 @@ const rn = [
|
|
|
637
637
|
divider: ["base", 600],
|
|
638
638
|
inverted: ["base", 900]
|
|
639
639
|
}
|
|
640
|
-
},
|
|
640
|
+
}, cn = {
|
|
641
641
|
light: {
|
|
642
642
|
focus: ["info", 700],
|
|
643
643
|
hover: ["base", 100],
|
|
@@ -649,16 +649,16 @@ const rn = [
|
|
|
649
649
|
active: ["base", 700]
|
|
650
650
|
}
|
|
651
651
|
};
|
|
652
|
-
function
|
|
653
|
-
return
|
|
652
|
+
function Rr(e) {
|
|
653
|
+
return Se.includes(e) ? st[e] : e;
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function Ie(e, n) {
|
|
656
656
|
return `--color-${e}-${n}`;
|
|
657
657
|
}
|
|
658
658
|
function ke(e, n) {
|
|
659
|
-
return `var(${
|
|
659
|
+
return `var(${Ie(e, n)})`;
|
|
660
660
|
}
|
|
661
|
-
const
|
|
661
|
+
const M = {
|
|
662
662
|
// Special colors that don't follow the standard pattern
|
|
663
663
|
special: {
|
|
664
664
|
inherit: {
|
|
@@ -727,7 +727,7 @@ const P = {
|
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
729
|
};
|
|
730
|
-
function
|
|
730
|
+
function Ur() {
|
|
731
731
|
let e = `/*
|
|
732
732
|
* Background Utilities - Auto-generated from design tokens
|
|
733
733
|
*
|
|
@@ -744,7 +744,7 @@ function qr() {
|
|
|
744
744
|
|
|
745
745
|
@layer components {
|
|
746
746
|
`;
|
|
747
|
-
|
|
747
|
+
D(M.special).forEach(([t, r]) => {
|
|
748
748
|
e += ` .bu-bg--${t} {
|
|
749
749
|
`, e += ` background-color: ${r.backgroundColor};
|
|
750
750
|
`, e += ` color: ${r.color};
|
|
@@ -753,12 +753,12 @@ function qr() {
|
|
|
753
753
|
`;
|
|
754
754
|
});
|
|
755
755
|
const n = [
|
|
756
|
-
...
|
|
757
|
-
...
|
|
756
|
+
...Se,
|
|
757
|
+
...D(je).map(([t]) => t)
|
|
758
758
|
];
|
|
759
759
|
return e += ` /* solid */
|
|
760
760
|
`, n.forEach((t) => {
|
|
761
|
-
const r =
|
|
761
|
+
const r = M.variants.solid.light;
|
|
762
762
|
e += ` .bu-bg--${t} {
|
|
763
763
|
`, e += ` background-color: var(--color-${t}-${r.bgShade});
|
|
764
764
|
`, e += ` color: ${r.textColor};
|
|
@@ -766,7 +766,7 @@ function qr() {
|
|
|
766
766
|
`;
|
|
767
767
|
}), e += `
|
|
768
768
|
`, n.forEach((t) => {
|
|
769
|
-
const r =
|
|
769
|
+
const r = M.variants.solid.dark;
|
|
770
770
|
e += ` .b-dark .bu-bg--${t} {
|
|
771
771
|
`, e += ` background-color: var(--color-${t}-${r.bgShade});
|
|
772
772
|
`, e += ` color: ${r.textColor};
|
|
@@ -774,14 +774,14 @@ function qr() {
|
|
|
774
774
|
`;
|
|
775
775
|
}), e += `
|
|
776
776
|
`, e += ` /* light */
|
|
777
|
-
`,
|
|
777
|
+
`, D(M.special).forEach(([t, r]) => {
|
|
778
778
|
e += ` .bu-bg--light-${t} {
|
|
779
779
|
`, e += ` background-color: ${r.backgroundColor};
|
|
780
780
|
`, e += ` color: ${r.color};
|
|
781
781
|
`, e += ` }
|
|
782
782
|
`;
|
|
783
783
|
}), n.forEach((t) => {
|
|
784
|
-
const r =
|
|
784
|
+
const r = M.variants.light.light, o = M.overrides[t];
|
|
785
785
|
o ? (e += ` .bu-bg--light-${t} {
|
|
786
786
|
`, e += ` background-color: ${o.light.backgroundColor};
|
|
787
787
|
`, e += ` color: ${o.light.color};
|
|
@@ -793,8 +793,8 @@ function qr() {
|
|
|
793
793
|
`);
|
|
794
794
|
}), e += `
|
|
795
795
|
`, e += ` /* light dark */
|
|
796
|
-
`,
|
|
797
|
-
const o =
|
|
796
|
+
`, D(M.special).forEach(([t, r]) => {
|
|
797
|
+
const o = M.overrides[t];
|
|
798
798
|
o ? (e += ` .b-dark .bu-bg--light-${t} {
|
|
799
799
|
`, e += ` background-color: ${o.dark.backgroundColor};
|
|
800
800
|
`, e += ` color: ${o.dark.color};
|
|
@@ -805,7 +805,7 @@ function qr() {
|
|
|
805
805
|
`, e += ` }
|
|
806
806
|
`);
|
|
807
807
|
}), n.forEach((t) => {
|
|
808
|
-
const r =
|
|
808
|
+
const r = M.variants.light.dark, o = M.overrides[t];
|
|
809
809
|
o ? (e += ` .b-dark .bu-bg--light-${t} {
|
|
810
810
|
`, e += ` background-color: ${o.dark.backgroundColor};
|
|
811
811
|
`, e += ` color: ${o.dark.color};
|
|
@@ -817,14 +817,14 @@ function qr() {
|
|
|
817
817
|
`);
|
|
818
818
|
}), e += `
|
|
819
819
|
`, e += ` /* lighter */
|
|
820
|
-
`,
|
|
820
|
+
`, D(M.special).forEach(([t, r]) => {
|
|
821
821
|
e += ` .bu-bg--lighter-${t} {
|
|
822
822
|
`, e += ` background-color: ${r.backgroundColor};
|
|
823
823
|
`, e += ` color: ${r.color};
|
|
824
824
|
`, e += ` }
|
|
825
825
|
`;
|
|
826
826
|
}), n.forEach((t) => {
|
|
827
|
-
const r =
|
|
827
|
+
const r = M.variants.lighter.light, o = M.overrides[t];
|
|
828
828
|
o ? (e += ` .bu-bg--lighter-${t} {
|
|
829
829
|
`, e += ` background-color: ${o.light.backgroundColor};
|
|
830
830
|
`, e += ` color: ${o.light.color};
|
|
@@ -836,8 +836,8 @@ function qr() {
|
|
|
836
836
|
`);
|
|
837
837
|
}), e += `
|
|
838
838
|
`, e += ` /* light dark */
|
|
839
|
-
`,
|
|
840
|
-
const o =
|
|
839
|
+
`, D(M.special).forEach(([t, r]) => {
|
|
840
|
+
const o = M.overrides[t];
|
|
841
841
|
o ? (e += ` .b-dark .bu-bg--lighter-${t} {
|
|
842
842
|
`, e += ` background-color: ${o.dark.backgroundColor};
|
|
843
843
|
`, e += ` color: ${o.dark.color};
|
|
@@ -848,7 +848,7 @@ function qr() {
|
|
|
848
848
|
`, e += ` }
|
|
849
849
|
`);
|
|
850
850
|
}), n.forEach((t) => {
|
|
851
|
-
const r =
|
|
851
|
+
const r = M.variants.lighter.dark, o = M.overrides[t];
|
|
852
852
|
o ? (e += ` .b-dark .bu-bg--lighter-${t} {
|
|
853
853
|
`, e += ` background-color: ${o.dark.backgroundColor};
|
|
854
854
|
`, e += ` color: ${o.dark.color};
|
|
@@ -861,37 +861,37 @@ function qr() {
|
|
|
861
861
|
}), e += `}
|
|
862
862
|
`, e;
|
|
863
863
|
}
|
|
864
|
-
function
|
|
864
|
+
function un() {
|
|
865
865
|
const e = {};
|
|
866
|
-
return e["--color-white"] = "white", e["--color-black"] = "black", e["--color-inherit"] = "inherit",
|
|
867
|
-
|
|
868
|
-
e[
|
|
866
|
+
return e["--color-white"] = "white", e["--color-black"] = "black", e["--color-inherit"] = "inherit", D(je).forEach(([n, t]) => {
|
|
867
|
+
D(t).forEach(([r, o]) => {
|
|
868
|
+
e[Ie(n, r)] = o;
|
|
869
869
|
});
|
|
870
|
-
}),
|
|
871
|
-
const t =
|
|
872
|
-
|
|
873
|
-
e[
|
|
870
|
+
}), Se.forEach((n) => {
|
|
871
|
+
const t = st[n];
|
|
872
|
+
on.forEach((r) => {
|
|
873
|
+
e[Ie(n, r)] = ke(
|
|
874
874
|
t,
|
|
875
875
|
r
|
|
876
876
|
);
|
|
877
877
|
});
|
|
878
|
-
}),
|
|
879
|
-
|
|
878
|
+
}), D(ln).forEach(([n, t]) => {
|
|
879
|
+
D(t).forEach(([r, [o, l]]) => {
|
|
880
880
|
e[`--bg-${r}-${n}`] = ke(o, l);
|
|
881
881
|
});
|
|
882
|
-
}),
|
|
883
|
-
|
|
882
|
+
}), D(an).forEach(([n, t]) => {
|
|
883
|
+
D(t).forEach(([r, [o, l]]) => {
|
|
884
884
|
e[`--text-${r}-${n}`] = ke(o, l);
|
|
885
885
|
});
|
|
886
|
-
}),
|
|
887
|
-
|
|
886
|
+
}), D(sn).forEach(([n, t]) => {
|
|
887
|
+
D(t).forEach(([r, [o, l]]) => {
|
|
888
888
|
e[`--border-${r}-${n}`] = ke(
|
|
889
889
|
o,
|
|
890
890
|
l
|
|
891
891
|
);
|
|
892
892
|
});
|
|
893
|
-
}),
|
|
894
|
-
|
|
893
|
+
}), D(cn).forEach(([n, t]) => {
|
|
894
|
+
D(t).forEach(([r, [o, l]]) => {
|
|
895
895
|
e[`--interactive-${r}-${n}`] = ke(
|
|
896
896
|
o,
|
|
897
897
|
l
|
|
@@ -899,7 +899,7 @@ function cn() {
|
|
|
899
899
|
});
|
|
900
900
|
}), e;
|
|
901
901
|
}
|
|
902
|
-
const
|
|
902
|
+
const ct = {
|
|
903
903
|
none: "0",
|
|
904
904
|
xs: "calc(var(--spacing-base) / 2)",
|
|
905
905
|
sm: "var(--spacing-base)",
|
|
@@ -908,25 +908,25 @@ const lt = {
|
|
|
908
908
|
xl: "calc(var(--spacing-base) * 3)",
|
|
909
909
|
full: "9999px"
|
|
910
910
|
};
|
|
911
|
-
function
|
|
911
|
+
function it(e) {
|
|
912
912
|
return `--radius-${e}`;
|
|
913
913
|
}
|
|
914
|
-
function
|
|
915
|
-
return `var(${
|
|
914
|
+
function zr(e) {
|
|
915
|
+
return `var(${it(e)})`;
|
|
916
916
|
}
|
|
917
|
-
function
|
|
918
|
-
return `@media (width >= ${
|
|
917
|
+
function Gr(e) {
|
|
918
|
+
return `@media (width >= ${ct[e]})`;
|
|
919
919
|
}
|
|
920
|
-
function
|
|
920
|
+
function dn() {
|
|
921
921
|
const e = {};
|
|
922
|
-
return
|
|
923
|
-
e[
|
|
922
|
+
return D(ct).forEach(([n, t]) => {
|
|
923
|
+
e[it(n)] = t;
|
|
924
924
|
}), e;
|
|
925
925
|
}
|
|
926
|
-
const
|
|
926
|
+
const hn = "0.25rem", pn = {
|
|
927
927
|
none: "0",
|
|
928
928
|
px: "1px",
|
|
929
|
-
base:
|
|
929
|
+
base: hn,
|
|
930
930
|
xs: "calc(var(--spacing-base) / 2)",
|
|
931
931
|
sm: "var(--spacing-base)",
|
|
932
932
|
md: "calc(var(--spacing-base) * 1.5)",
|
|
@@ -937,19 +937,19 @@ const dn = "0.25rem", hn = {
|
|
|
937
937
|
"4xl": "calc(var(--spacing-base) * 8)",
|
|
938
938
|
full: "2000px"
|
|
939
939
|
};
|
|
940
|
-
function
|
|
940
|
+
function ut(e) {
|
|
941
941
|
return `--spacing-${e}`;
|
|
942
942
|
}
|
|
943
|
-
function
|
|
944
|
-
return `var(${
|
|
943
|
+
function Zr(e) {
|
|
944
|
+
return `var(${ut(e)})`;
|
|
945
945
|
}
|
|
946
|
-
function
|
|
946
|
+
function bn() {
|
|
947
947
|
const e = {};
|
|
948
|
-
return
|
|
949
|
-
e[
|
|
948
|
+
return D(pn).forEach(([n, t]) => {
|
|
949
|
+
e[ut(n)] = t;
|
|
950
950
|
}), e;
|
|
951
951
|
}
|
|
952
|
-
const
|
|
952
|
+
const dt = {
|
|
953
953
|
"3xs": ["0.5rem", { lineHeight: "0.75rem" }],
|
|
954
954
|
// 8px
|
|
955
955
|
"2xs": ["0.625rem", { lineHeight: "0.75rem" }],
|
|
@@ -981,8 +981,8 @@ const ct = {
|
|
|
981
981
|
"9xl": ["8rem", { lineHeight: "1" }]
|
|
982
982
|
// 128px
|
|
983
983
|
};
|
|
984
|
-
function
|
|
985
|
-
const t = Object.keys(
|
|
984
|
+
function fn(e, n) {
|
|
985
|
+
const t = Object.keys(dt), r = t.indexOf(e);
|
|
986
986
|
if (r === -1)
|
|
987
987
|
throw new Error(`Invalid font size: ${e}`);
|
|
988
988
|
const o = Math.min(Math.max(r + n, 0), t.length - 1);
|
|
@@ -998,21 +998,21 @@ const gn = {
|
|
|
998
998
|
bold: "700",
|
|
999
999
|
extrabold: "800",
|
|
1000
1000
|
black: "900"
|
|
1001
|
-
},
|
|
1001
|
+
}, mn = {
|
|
1002
1002
|
none: "1",
|
|
1003
1003
|
tight: "1.25",
|
|
1004
1004
|
snug: "1.375",
|
|
1005
1005
|
normal: "1.5",
|
|
1006
1006
|
relaxed: "1.625",
|
|
1007
1007
|
loose: "2"
|
|
1008
|
-
},
|
|
1008
|
+
}, kn = {
|
|
1009
1009
|
tighter: "-0.05em",
|
|
1010
1010
|
tight: "-0.025em",
|
|
1011
1011
|
normal: "0em",
|
|
1012
1012
|
wide: "0.025em",
|
|
1013
1013
|
wider: "0.05em",
|
|
1014
1014
|
widest: "0.1em"
|
|
1015
|
-
},
|
|
1015
|
+
}, xn = {
|
|
1016
1016
|
sans: [
|
|
1017
1017
|
"system-ui",
|
|
1018
1018
|
"-apple-system",
|
|
@@ -1046,52 +1046,52 @@ const gn = {
|
|
|
1046
1046
|
"monospace"
|
|
1047
1047
|
]
|
|
1048
1048
|
};
|
|
1049
|
-
function
|
|
1049
|
+
function ht(e) {
|
|
1050
1050
|
return `--font-size-${e}`;
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1053
|
-
return `var(${
|
|
1052
|
+
function Kr(e) {
|
|
1053
|
+
return `var(${ht(e)})`;
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1055
|
+
function pt(e) {
|
|
1056
1056
|
return `--font-weight-${e}`;
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1059
|
-
return `var(${
|
|
1058
|
+
function Xr(e) {
|
|
1059
|
+
return `var(${pt(e)})`;
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1061
|
+
function bt(e) {
|
|
1062
1062
|
return `--line-height-${e}`;
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
1065
|
-
return `var(${
|
|
1064
|
+
function Yr(e) {
|
|
1065
|
+
return `var(${bt(e)})`;
|
|
1066
1066
|
}
|
|
1067
|
-
function
|
|
1067
|
+
function ft(e) {
|
|
1068
1068
|
return `--letter-spacing-${e}`;
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1071
|
-
return `var(${
|
|
1070
|
+
function Qr(e) {
|
|
1071
|
+
return `var(${ft(e)})`;
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1073
|
+
function gt(e) {
|
|
1074
1074
|
return `--font-family-${e}`;
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1077
|
-
return `var(${
|
|
1076
|
+
function Jr(e) {
|
|
1077
|
+
return `var(${gt(e)})`;
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1079
|
+
function vn() {
|
|
1080
1080
|
const e = {};
|
|
1081
|
-
return Object.entries(
|
|
1081
|
+
return Object.entries(dt).forEach(([n, t]) => {
|
|
1082
1082
|
const [r] = Array.isArray(t) ? t : [t];
|
|
1083
|
-
e[
|
|
1083
|
+
e[ht(n)] = r;
|
|
1084
1084
|
}), Object.entries(gn).forEach(([n, t]) => {
|
|
1085
|
-
e[
|
|
1086
|
-
}), Object.entries(fn).forEach(([n, t]) => {
|
|
1087
|
-
e[dt(n)] = t;
|
|
1085
|
+
e[pt(n)] = t;
|
|
1088
1086
|
}), Object.entries(mn).forEach(([n, t]) => {
|
|
1089
|
-
e[
|
|
1087
|
+
e[bt(n)] = t;
|
|
1090
1088
|
}), Object.entries(kn).forEach(([n, t]) => {
|
|
1091
|
-
e[
|
|
1089
|
+
e[ft(n)] = t;
|
|
1090
|
+
}), Object.entries(xn).forEach(([n, t]) => {
|
|
1091
|
+
e[gt(n)] = t.join(", ");
|
|
1092
1092
|
}), e;
|
|
1093
1093
|
}
|
|
1094
|
-
const
|
|
1094
|
+
const yn = {
|
|
1095
1095
|
// Base layers
|
|
1096
1096
|
base: 0,
|
|
1097
1097
|
raised: 10,
|
|
@@ -1109,19 +1109,19 @@ const vn = {
|
|
|
1109
1109
|
// Maximum priority
|
|
1110
1110
|
maximum: 100
|
|
1111
1111
|
};
|
|
1112
|
-
function
|
|
1112
|
+
function mt(e) {
|
|
1113
1113
|
return `--z-index-${e}`;
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1116
|
-
return `var(${
|
|
1115
|
+
function eo(e) {
|
|
1116
|
+
return `var(${mt(e)})`;
|
|
1117
1117
|
}
|
|
1118
|
-
function
|
|
1118
|
+
function wn() {
|
|
1119
1119
|
const e = {};
|
|
1120
|
-
return
|
|
1121
|
-
e[
|
|
1120
|
+
return D(yn).forEach(([n, t]) => {
|
|
1121
|
+
e[mt(n)] = t.toString();
|
|
1122
1122
|
}), e;
|
|
1123
1123
|
}
|
|
1124
|
-
const
|
|
1124
|
+
const $n = {
|
|
1125
1125
|
none: "none",
|
|
1126
1126
|
"2xs": "0 1px rgb(0 0 0 / 0.05)",
|
|
1127
1127
|
xs: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
@@ -1138,16 +1138,16 @@ const wn = {
|
|
|
1138
1138
|
"top-xl": "0 -20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
|
|
1139
1139
|
"top-2xl": "0 -25px 50px -12px rgb(0 0 0 / 0.25)"
|
|
1140
1140
|
};
|
|
1141
|
-
function
|
|
1141
|
+
function Cn(e) {
|
|
1142
1142
|
return `--shadow-${e}`;
|
|
1143
1143
|
}
|
|
1144
|
-
function
|
|
1144
|
+
function Sn() {
|
|
1145
1145
|
const e = {};
|
|
1146
|
-
return
|
|
1147
|
-
e[
|
|
1146
|
+
return D($n).forEach(([n, t]) => {
|
|
1147
|
+
e[Cn(n)] = t;
|
|
1148
1148
|
}), e;
|
|
1149
1149
|
}
|
|
1150
|
-
const
|
|
1150
|
+
const En = {
|
|
1151
1151
|
none: "none",
|
|
1152
1152
|
"2xs": "0px 1px 0px rgb(0 0 0 / 0.15)",
|
|
1153
1153
|
xs: "0px 1px 1px rgb(0 0 0 / 0.2)",
|
|
@@ -1155,50 +1155,50 @@ const Sn = {
|
|
|
1155
1155
|
md: "0px 1px 1px rgb(0 0 0 / 0.1), 0px 1px 2px rgb(0 0 0 / 0.1), 0px 2px 4px rgb(0 0 0 / 0.1)",
|
|
1156
1156
|
lg: "0px 1px 2px rgb(0 0 0 / 0.1), 0px 3px 2px rgb(0 0 0 / 0.1), 0px 4px 8px rgb(0 0 0 / 0.1)"
|
|
1157
1157
|
};
|
|
1158
|
-
function
|
|
1158
|
+
function _n(e) {
|
|
1159
1159
|
return `--text-shadow-${e}`;
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function An() {
|
|
1162
1162
|
const e = {};
|
|
1163
|
-
return
|
|
1164
|
-
e[
|
|
1163
|
+
return D(En).forEach(([n, t]) => {
|
|
1164
|
+
e[_n(n)] = t;
|
|
1165
1165
|
}), e;
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1167
|
+
function to() {
|
|
1168
1168
|
return {
|
|
1169
|
-
...cn(),
|
|
1170
|
-
...pn(),
|
|
1171
|
-
...xn(),
|
|
1172
|
-
...nn(),
|
|
1173
1169
|
...un(),
|
|
1174
|
-
...
|
|
1175
|
-
...
|
|
1176
|
-
...
|
|
1170
|
+
...bn(),
|
|
1171
|
+
...vn(),
|
|
1172
|
+
...rn(),
|
|
1173
|
+
...dn(),
|
|
1174
|
+
...Sn(),
|
|
1175
|
+
...An(),
|
|
1176
|
+
...wn()
|
|
1177
1177
|
};
|
|
1178
1178
|
}
|
|
1179
|
-
function
|
|
1179
|
+
function no(e, n) {
|
|
1180
1180
|
return n == null && typeof window > "u" ? "" : getComputedStyle(n ?? document.documentElement).getPropertyValue(e).trim();
|
|
1181
1181
|
}
|
|
1182
|
-
const
|
|
1182
|
+
const Tn = {
|
|
1183
1183
|
xs: "1.5",
|
|
1184
1184
|
sm: "2",
|
|
1185
1185
|
md: "2.5",
|
|
1186
1186
|
lg: "3",
|
|
1187
1187
|
xl: "4"
|
|
1188
|
-
},
|
|
1188
|
+
}, Bn = {
|
|
1189
1189
|
xs: "0",
|
|
1190
1190
|
sm: "0",
|
|
1191
1191
|
md: "0",
|
|
1192
1192
|
lg: "0.25",
|
|
1193
1193
|
xl: "0.5"
|
|
1194
1194
|
};
|
|
1195
|
-
function
|
|
1195
|
+
function In(e, n, t) {
|
|
1196
1196
|
const r = ["bc-tag"];
|
|
1197
1197
|
return e ? r.push("bc-tag--disabled") : r.push(`bu-bg--${n}`), r.push(
|
|
1198
|
-
`bu-text-${
|
|
1198
|
+
`bu-text-${fn(t, -1)} bu-px-${Tn[t]} bu-py-${Bn[t]}`
|
|
1199
1199
|
), r.join(" ");
|
|
1200
1200
|
}
|
|
1201
|
-
const
|
|
1201
|
+
const Ln = ({
|
|
1202
1202
|
disabled: e,
|
|
1203
1203
|
value: n,
|
|
1204
1204
|
color: t = "base",
|
|
@@ -1206,11 +1206,11 @@ const In = ({
|
|
|
1206
1206
|
size: o = "md"
|
|
1207
1207
|
}) => p.span(
|
|
1208
1208
|
a.class(
|
|
1209
|
-
|
|
1209
|
+
$(
|
|
1210
1210
|
e ?? !1,
|
|
1211
1211
|
t ?? "base",
|
|
1212
1212
|
o ?? "md"
|
|
1213
|
-
)((l, s, u) =>
|
|
1213
|
+
)((l, s, u) => In(l, s, u))
|
|
1214
1214
|
),
|
|
1215
1215
|
p.span(n),
|
|
1216
1216
|
r != null ? p.button(
|
|
@@ -1220,26 +1220,26 @@ const In = ({
|
|
|
1220
1220
|
m.click(() => r == null ? void 0 : r(w.get(n)))
|
|
1221
1221
|
) : y
|
|
1222
1222
|
);
|
|
1223
|
-
function
|
|
1223
|
+
function Ee(e) {
|
|
1224
1224
|
return `bc-label bc-label--${e}`;
|
|
1225
1225
|
}
|
|
1226
|
-
const
|
|
1226
|
+
const ro = (...e) => p.span(a.class(Ee("emphasis")), ...e), kt = (...e) => p.span(a.class(Ee("default")), ...e), Dn = (...e) => p.span(a.class(Ee("muted")), ...e), oo = (...e) => p.span(a.class(Ee("error")), ...e), Ge = /* @__PURE__ */ new Map();
|
|
1227
1227
|
function se(e) {
|
|
1228
1228
|
const n = Ge.get(e) ?? 0;
|
|
1229
1229
|
return Ge.set(e, n + 1), `${e}-${n}`;
|
|
1230
1230
|
}
|
|
1231
|
-
const
|
|
1231
|
+
const On = p.span(
|
|
1232
1232
|
a.class("bc-input-wrapper__required"),
|
|
1233
1233
|
" *"
|
|
1234
1234
|
);
|
|
1235
|
-
function
|
|
1235
|
+
function Vn() {
|
|
1236
1236
|
return "bc-input-wrapper";
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1238
|
+
function jn(e, n) {
|
|
1239
1239
|
const t = ["bc-input-wrapper__label-text"];
|
|
1240
1240
|
return e ? t.push("bc-input-wrapper__label-text--error") : n ? t.push("bc-input-wrapper__label-text--disabled") : t.push("bc-input-wrapper__label-text--default"), t.join(" ");
|
|
1241
1241
|
}
|
|
1242
|
-
const
|
|
1242
|
+
const Fn = ({
|
|
1243
1243
|
required: e,
|
|
1244
1244
|
label: n,
|
|
1245
1245
|
context: t,
|
|
@@ -1250,9 +1250,9 @@ const jn = ({
|
|
|
1250
1250
|
hasError: u,
|
|
1251
1251
|
disabled: c
|
|
1252
1252
|
}, ...i) => {
|
|
1253
|
-
const d = u ?? w.map(l ?? null, (
|
|
1253
|
+
const d = u ?? w.map(l ?? null, (C) => C != null), h = c ?? !1, f = se("input-wrapper"), b = r ? `${f}-description` : void 0, v = l ? `${f}-error` : void 0;
|
|
1254
1254
|
return p.div(
|
|
1255
|
-
a.class(
|
|
1255
|
+
a.class(Vn()),
|
|
1256
1256
|
n != null || t != null ? p.div(
|
|
1257
1257
|
a.class("bc-input-wrapper__header"),
|
|
1258
1258
|
p.label(
|
|
@@ -1260,21 +1260,21 @@ const jn = ({
|
|
|
1260
1260
|
s != null ? a.for(s) : y,
|
|
1261
1261
|
p.span(
|
|
1262
1262
|
a.class(
|
|
1263
|
-
|
|
1263
|
+
$(
|
|
1264
1264
|
d,
|
|
1265
1265
|
h
|
|
1266
1266
|
)(
|
|
1267
|
-
(
|
|
1268
|
-
|
|
1267
|
+
(C, S) => jn(
|
|
1268
|
+
C ?? !1,
|
|
1269
1269
|
S ?? !1
|
|
1270
1270
|
)
|
|
1271
1271
|
)
|
|
1272
1272
|
),
|
|
1273
1273
|
n
|
|
1274
1274
|
),
|
|
1275
|
-
n != null && e ?
|
|
1275
|
+
n != null && e ? On : y
|
|
1276
1276
|
),
|
|
1277
|
-
t != null ?
|
|
1277
|
+
t != null ? kt(t) : y
|
|
1278
1278
|
) : y,
|
|
1279
1279
|
p.div(
|
|
1280
1280
|
a.class("bc-input-wrapper__content"),
|
|
@@ -1291,22 +1291,22 @@ const jn = ({
|
|
|
1291
1291
|
a.id(b),
|
|
1292
1292
|
r
|
|
1293
1293
|
) : y,
|
|
1294
|
-
l != null ?
|
|
1294
|
+
l != null ? Oe(
|
|
1295
1295
|
l,
|
|
1296
|
-
(
|
|
1296
|
+
(C) => p.div(
|
|
1297
1297
|
a.class("bc-input-wrapper__error"),
|
|
1298
1298
|
a.id(v),
|
|
1299
1299
|
A.live("polite"),
|
|
1300
1300
|
// Announce errors to screen readers
|
|
1301
1301
|
a.role("alert"),
|
|
1302
1302
|
// Mark as alert for immediate attention
|
|
1303
|
-
|
|
1303
|
+
C
|
|
1304
1304
|
)
|
|
1305
1305
|
) : y,
|
|
1306
1306
|
...i
|
|
1307
1307
|
);
|
|
1308
1308
|
};
|
|
1309
|
-
function
|
|
1309
|
+
function Hn() {
|
|
1310
1310
|
return "bc-control-input-wrapper";
|
|
1311
1311
|
}
|
|
1312
1312
|
const R = ({
|
|
@@ -1317,8 +1317,8 @@ const R = ({
|
|
|
1317
1317
|
content: o,
|
|
1318
1318
|
controller: l
|
|
1319
1319
|
}, ...s) => p.div(
|
|
1320
|
-
a.class(
|
|
1321
|
-
|
|
1320
|
+
a.class(Hn()),
|
|
1321
|
+
Fn(
|
|
1322
1322
|
{
|
|
1323
1323
|
required: e,
|
|
1324
1324
|
label: n,
|
|
@@ -1344,20 +1344,20 @@ const R = ({
|
|
|
1344
1344
|
}) => {
|
|
1345
1345
|
const c = w.map(n ?? !1, (d) => d);
|
|
1346
1346
|
function i(d, h) {
|
|
1347
|
-
const
|
|
1348
|
-
return d ?
|
|
1347
|
+
const f = ["bc-input-container"];
|
|
1348
|
+
return d ? f.push("bc-input-container--disabled") : f.push("bc-input-container--default"), h && f.push("bc-input-container--error"), f.join(" ");
|
|
1349
1349
|
}
|
|
1350
1350
|
return p.div(
|
|
1351
1351
|
e,
|
|
1352
1352
|
F((d) => {
|
|
1353
1353
|
const h = () => {
|
|
1354
|
-
const
|
|
1355
|
-
|
|
1354
|
+
const f = d.querySelector(s);
|
|
1355
|
+
f == null || f.focus();
|
|
1356
1356
|
};
|
|
1357
1357
|
return d.addEventListener("click", h), N(() => d.removeEventListener("click", h));
|
|
1358
1358
|
}),
|
|
1359
1359
|
a.class(
|
|
1360
|
-
|
|
1360
|
+
$(
|
|
1361
1361
|
c,
|
|
1362
1362
|
l ?? !1
|
|
1363
1363
|
)(
|
|
@@ -1385,7 +1385,7 @@ const R = ({
|
|
|
1385
1385
|
name: o,
|
|
1386
1386
|
placeholder: l,
|
|
1387
1387
|
id: s
|
|
1388
|
-
}) =>
|
|
1388
|
+
}) => L(
|
|
1389
1389
|
a.autocomplete(e),
|
|
1390
1390
|
a.autofocus(n),
|
|
1391
1391
|
a.class(t),
|
|
@@ -1401,7 +1401,7 @@ const R = ({
|
|
|
1401
1401
|
}), Fe = (e, n) => ({
|
|
1402
1402
|
...Z(e),
|
|
1403
1403
|
value: e.value.map(n)
|
|
1404
|
-
}),
|
|
1404
|
+
}), xt = (e) => {
|
|
1405
1405
|
const { value: n, onBlur: t, onChange: r } = e;
|
|
1406
1406
|
return X({
|
|
1407
1407
|
...e,
|
|
@@ -1410,10 +1410,10 @@ const R = ({
|
|
|
1410
1410
|
a.valueAsDate(n),
|
|
1411
1411
|
a.class("bc-input"),
|
|
1412
1412
|
t != null ? m.blur(I(t)) : y,
|
|
1413
|
-
r != null ? m.change(
|
|
1413
|
+
r != null ? m.change(Dt(r)) : y
|
|
1414
1414
|
)
|
|
1415
1415
|
});
|
|
1416
|
-
},
|
|
1416
|
+
}, Pn = (e) => {
|
|
1417
1417
|
const { value: n, onBlur: t, onChange: r, onInput: o } = e;
|
|
1418
1418
|
return X({
|
|
1419
1419
|
...e,
|
|
@@ -1434,7 +1434,7 @@ const R = ({
|
|
|
1434
1434
|
o != null ? m.input(I(o)) : y
|
|
1435
1435
|
)
|
|
1436
1436
|
});
|
|
1437
|
-
},
|
|
1437
|
+
}, U = (
|
|
1438
1438
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1439
1439
|
(e, n) => () => {
|
|
1440
1440
|
n == null || n();
|
|
@@ -1444,32 +1444,32 @@ const R = ({
|
|
|
1444
1444
|
}, He = (e, n, t) => (r) => {
|
|
1445
1445
|
const o = n(r);
|
|
1446
1446
|
e.change(o), t == null || t(o);
|
|
1447
|
-
},
|
|
1447
|
+
}, lo = (e, n, t) => (r) => {
|
|
1448
1448
|
n(r) ? (e.change(null), t == null || t(null)) : (e.change(r), t == null || t(r));
|
|
1449
|
-
},
|
|
1449
|
+
}, ao = (e, ...n) => {
|
|
1450
1450
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1451
1451
|
return R(
|
|
1452
1452
|
{
|
|
1453
1453
|
...o,
|
|
1454
|
-
content:
|
|
1454
|
+
content: Pn({
|
|
1455
1455
|
...o,
|
|
1456
1456
|
...Z(o.controller),
|
|
1457
1457
|
onChange: Q(o.controller, r),
|
|
1458
|
-
onBlur:
|
|
1458
|
+
onBlur: U(o.controller, t)
|
|
1459
1459
|
})
|
|
1460
1460
|
},
|
|
1461
1461
|
...n
|
|
1462
1462
|
);
|
|
1463
|
-
},
|
|
1463
|
+
}, so = (e, ...n) => {
|
|
1464
1464
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1465
1465
|
return R(
|
|
1466
1466
|
{
|
|
1467
1467
|
...o,
|
|
1468
|
-
content:
|
|
1468
|
+
content: xt({
|
|
1469
1469
|
...o,
|
|
1470
1470
|
...Z(o.controller),
|
|
1471
1471
|
onChange: Q(o.controller, r),
|
|
1472
|
-
onBlur:
|
|
1472
|
+
onBlur: U(o.controller, t)
|
|
1473
1473
|
})
|
|
1474
1474
|
},
|
|
1475
1475
|
...n
|
|
@@ -1477,7 +1477,7 @@ const R = ({
|
|
|
1477
1477
|
}, Mn = (e) => {
|
|
1478
1478
|
const n = e.getFullYear(), t = (e.getMonth() + 1).toString().padStart(2, "0"), r = e.getDate().toString().padStart(2, "0"), o = e.getHours().toString().padStart(2, "0"), l = e.getMinutes().toString().padStart(2, "0");
|
|
1479
1479
|
return `${n}-${t}-${r}T${o}:${l}`;
|
|
1480
|
-
},
|
|
1480
|
+
}, Wn = (e) => {
|
|
1481
1481
|
const { value: n, onBlur: t, onChange: r } = e;
|
|
1482
1482
|
return X({
|
|
1483
1483
|
...e,
|
|
@@ -1489,21 +1489,21 @@ const R = ({
|
|
|
1489
1489
|
r != null ? m.change(I((o) => r(new Date(o)))) : y
|
|
1490
1490
|
)
|
|
1491
1491
|
});
|
|
1492
|
-
},
|
|
1492
|
+
}, co = (e, ...n) => {
|
|
1493
1493
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1494
1494
|
return R(
|
|
1495
1495
|
{
|
|
1496
1496
|
...o,
|
|
1497
|
-
content:
|
|
1497
|
+
content: Wn({
|
|
1498
1498
|
...o,
|
|
1499
1499
|
...Z(o.controller),
|
|
1500
1500
|
onChange: Q(o.controller, r),
|
|
1501
|
-
onBlur:
|
|
1501
|
+
onBlur: U(o.controller, t)
|
|
1502
1502
|
})
|
|
1503
1503
|
},
|
|
1504
1504
|
...n
|
|
1505
1505
|
);
|
|
1506
|
-
},
|
|
1506
|
+
}, qn = (e) => {
|
|
1507
1507
|
const n = {
|
|
1508
1508
|
name: "email",
|
|
1509
1509
|
autocomplete: "email",
|
|
@@ -1521,41 +1521,41 @@ const R = ({
|
|
|
1521
1521
|
l != null ? m.input(I(l)) : y
|
|
1522
1522
|
)
|
|
1523
1523
|
});
|
|
1524
|
-
},
|
|
1524
|
+
}, io = (e, ...n) => {
|
|
1525
1525
|
const { onChange: t, onBlur: r, ...o } = e;
|
|
1526
1526
|
return R(
|
|
1527
1527
|
{
|
|
1528
1528
|
label: "Email",
|
|
1529
1529
|
...o,
|
|
1530
|
-
content:
|
|
1530
|
+
content: qn({
|
|
1531
1531
|
...o,
|
|
1532
1532
|
...Z(o.controller),
|
|
1533
1533
|
onChange: Q(o.controller, t),
|
|
1534
|
-
onBlur:
|
|
1534
|
+
onBlur: U(o.controller, r)
|
|
1535
1535
|
})
|
|
1536
1536
|
},
|
|
1537
1537
|
...n
|
|
1538
1538
|
);
|
|
1539
|
-
},
|
|
1539
|
+
}, uo = {
|
|
1540
1540
|
filling: { type: "filling" },
|
|
1541
1541
|
submitting: { type: "submitting" },
|
|
1542
1542
|
error: (e) => ({ type: "error", error: e }),
|
|
1543
1543
|
success: { type: "success" }
|
|
1544
|
-
},
|
|
1545
|
-
const r = `${
|
|
1544
|
+
}, Pe = "$$tts-exp-", Nn = (e, n) => F((t) => {
|
|
1545
|
+
const r = `${Pe}${e}`;
|
|
1546
1546
|
return N(w.on(n, (o) => Reflect.set(t, r, o)));
|
|
1547
|
-
}),
|
|
1548
|
-
const t = `${
|
|
1547
|
+
}), ho = (e, n) => {
|
|
1548
|
+
const t = `${Pe}${e}`;
|
|
1549
1549
|
return (r) => {
|
|
1550
1550
|
n(Reflect.get(r.target, t));
|
|
1551
1551
|
};
|
|
1552
|
-
},
|
|
1553
|
-
const t = `${
|
|
1552
|
+
}, Rn = (e, n) => {
|
|
1553
|
+
const t = `${Pe}${e}`;
|
|
1554
1554
|
return (r) => {
|
|
1555
1555
|
const o = r.target, l = o.selectedIndex, s = o.options[l];
|
|
1556
1556
|
n(Reflect.get(s, t));
|
|
1557
1557
|
};
|
|
1558
|
-
},
|
|
1558
|
+
}, Le = {
|
|
1559
1559
|
value: (e, n, t) => ({
|
|
1560
1560
|
type: "value",
|
|
1561
1561
|
value: e,
|
|
@@ -1570,29 +1570,29 @@ const R = ({
|
|
|
1570
1570
|
}),
|
|
1571
1571
|
break: { type: "break" },
|
|
1572
1572
|
getOptionValues: (e) => e.flatMap(
|
|
1573
|
-
(n) => n.type === "group" ?
|
|
1573
|
+
(n) => n.type === "group" ? Le.getOptionValues(n.options) : n.type === "break" ? [] : [n.value]
|
|
1574
1574
|
),
|
|
1575
|
-
contains: (e, n, t = (r, o) => r === o) =>
|
|
1576
|
-
},
|
|
1575
|
+
contains: (e, n, t = (r, o) => r === o) => Le.getOptionValues(e).some((r) => t(r, n))
|
|
1576
|
+
}, vt = (e, n, t) => Oe(
|
|
1577
1577
|
e,
|
|
1578
|
-
(r) =>
|
|
1578
|
+
(r) => Ot(r, {
|
|
1579
1579
|
value: (o) => {
|
|
1580
|
-
const l =
|
|
1580
|
+
const l = $(
|
|
1581
1581
|
o,
|
|
1582
1582
|
t
|
|
1583
1583
|
)((s, u) => n(s.value, u));
|
|
1584
1584
|
return p.option(
|
|
1585
1585
|
N(l.dispose),
|
|
1586
1586
|
a.selected(l),
|
|
1587
|
-
|
|
1587
|
+
Nn("value", o.$.value),
|
|
1588
1588
|
o.$.label
|
|
1589
1589
|
);
|
|
1590
1590
|
},
|
|
1591
1591
|
group: (o) => p.optgroup(
|
|
1592
1592
|
a.label(o.$.group),
|
|
1593
|
-
|
|
1593
|
+
Ve(
|
|
1594
1594
|
o.$.options,
|
|
1595
|
-
(l) =>
|
|
1595
|
+
(l) => vt(
|
|
1596
1596
|
l,
|
|
1597
1597
|
n,
|
|
1598
1598
|
t
|
|
@@ -1601,7 +1601,7 @@ const R = ({
|
|
|
1601
1601
|
),
|
|
1602
1602
|
break: () => p.hr()
|
|
1603
1603
|
})
|
|
1604
|
-
),
|
|
1604
|
+
), yt = (e) => {
|
|
1605
1605
|
const {
|
|
1606
1606
|
value: n,
|
|
1607
1607
|
onBlur: t,
|
|
@@ -1630,21 +1630,21 @@ const R = ({
|
|
|
1630
1630
|
a.class("focus:outline-none bg-transparent"),
|
|
1631
1631
|
a.class("w-full"),
|
|
1632
1632
|
p.option(a.hidden("hidden"), l),
|
|
1633
|
-
|
|
1633
|
+
Ve(o, (c) => vt(c, s, n)),
|
|
1634
1634
|
t != null ? m.blur(t) : y,
|
|
1635
|
-
r != null ? m.change(
|
|
1635
|
+
r != null ? m.change(Rn("value", (c) => r(c))) : y
|
|
1636
1636
|
)
|
|
1637
1637
|
});
|
|
1638
|
-
},
|
|
1638
|
+
}, Un = (e) => tt({
|
|
1639
1639
|
request: e.request,
|
|
1640
1640
|
load: e.load,
|
|
1641
1641
|
mapError: String
|
|
1642
1642
|
})({
|
|
1643
1643
|
success: (n) => {
|
|
1644
1644
|
const t = n.map(
|
|
1645
|
-
(r) => r.map((o) => typeof o == "object" && "id" in o && "label" in o ?
|
|
1645
|
+
(r) => r.map((o) => typeof o == "object" && "id" in o && "label" in o ? Le.value(o.id, o.label) : o)
|
|
1646
1646
|
);
|
|
1647
|
-
return
|
|
1647
|
+
return yt({
|
|
1648
1648
|
...e,
|
|
1649
1649
|
options: t,
|
|
1650
1650
|
unselectedLabel: e.unselectedLabel,
|
|
@@ -1657,35 +1657,35 @@ const R = ({
|
|
|
1657
1657
|
A.label("Loading..."),
|
|
1658
1658
|
"↻"
|
|
1659
1659
|
)
|
|
1660
|
-
}),
|
|
1660
|
+
}), po = (e, ...n) => {
|
|
1661
1661
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1662
1662
|
return R(
|
|
1663
1663
|
{
|
|
1664
1664
|
...o,
|
|
1665
|
-
content:
|
|
1665
|
+
content: Un({
|
|
1666
1666
|
...e,
|
|
1667
1667
|
...Z(o.controller),
|
|
1668
1668
|
onChange: Q(o.controller, r),
|
|
1669
|
-
onBlur:
|
|
1669
|
+
onBlur: U(o.controller, t)
|
|
1670
1670
|
})
|
|
1671
1671
|
},
|
|
1672
1672
|
...n
|
|
1673
1673
|
);
|
|
1674
|
-
},
|
|
1674
|
+
}, bo = (e, ...n) => {
|
|
1675
1675
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1676
1676
|
return R(
|
|
1677
1677
|
{
|
|
1678
1678
|
...o,
|
|
1679
|
-
content:
|
|
1679
|
+
content: yt({
|
|
1680
1680
|
...o,
|
|
1681
1681
|
...Z(o.controller),
|
|
1682
1682
|
onChange: Q(o.controller, r),
|
|
1683
|
-
onBlur:
|
|
1683
|
+
onBlur: U(o.controller, t)
|
|
1684
1684
|
})
|
|
1685
1685
|
},
|
|
1686
1686
|
...n
|
|
1687
1687
|
);
|
|
1688
|
-
},
|
|
1688
|
+
}, wt = (e) => {
|
|
1689
1689
|
const { value: n, onBlur: t, onChange: r } = e;
|
|
1690
1690
|
return X({
|
|
1691
1691
|
...e,
|
|
@@ -1694,19 +1694,19 @@ const R = ({
|
|
|
1694
1694
|
a.valueAsDate(n),
|
|
1695
1695
|
a.class("bc-input"),
|
|
1696
1696
|
t != null ? m.blur(I(t)) : y,
|
|
1697
|
-
r != null ? m.change(
|
|
1697
|
+
r != null ? m.change(Vt(r)) : y
|
|
1698
1698
|
)
|
|
1699
1699
|
});
|
|
1700
|
-
},
|
|
1700
|
+
}, fo = (e, ...n) => {
|
|
1701
1701
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1702
1702
|
return R(
|
|
1703
1703
|
{
|
|
1704
1704
|
...o,
|
|
1705
|
-
content:
|
|
1705
|
+
content: wt({
|
|
1706
1706
|
...o,
|
|
1707
1707
|
...Z(o.controller),
|
|
1708
1708
|
onChange: Q(o.controller, r),
|
|
1709
|
-
onBlur:
|
|
1709
|
+
onBlur: U(o.controller, t)
|
|
1710
1710
|
})
|
|
1711
1711
|
},
|
|
1712
1712
|
...n
|
|
@@ -1714,7 +1714,7 @@ const R = ({
|
|
|
1714
1714
|
}, zn = (e) => {
|
|
1715
1715
|
const n = e.getFullYear(), t = e.getMonth() + 1, r = e.getDate(), o = e.getHours(), l = e.getMinutes(), s = e.getSeconds();
|
|
1716
1716
|
return `${n}-${t.toString().padStart(2, "0")}-${r.toString().padStart(2, "0")}T${o.toString().padStart(2, "0")}:${l.toString().padStart(2, "0")}:${s.toString().padStart(2, "0")}`;
|
|
1717
|
-
},
|
|
1717
|
+
}, $t = (e) => {
|
|
1718
1718
|
const { value: n, onBlur: t, onChange: r } = e, o = w.map(n, (l) => l != null ? zn(l) : null);
|
|
1719
1719
|
return X({
|
|
1720
1720
|
...e,
|
|
@@ -1723,29 +1723,29 @@ const R = ({
|
|
|
1723
1723
|
a.value(w.map(o, (l) => l ?? null)),
|
|
1724
1724
|
a.class("bc-input"),
|
|
1725
1725
|
t != null ? m.blur(I(t)) : y,
|
|
1726
|
-
r != null ? m.change(
|
|
1726
|
+
r != null ? m.change(jt(r)) : y
|
|
1727
1727
|
)
|
|
1728
1728
|
});
|
|
1729
|
-
},
|
|
1729
|
+
}, go = (e, ...n) => {
|
|
1730
1730
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1731
1731
|
return R(
|
|
1732
1732
|
{
|
|
1733
1733
|
...o,
|
|
1734
|
-
content:
|
|
1734
|
+
content: $t({
|
|
1735
1735
|
...o,
|
|
1736
1736
|
...Z(o.controller),
|
|
1737
1737
|
onChange: Q(o.controller, r),
|
|
1738
|
-
onBlur:
|
|
1738
|
+
onBlur: U(o.controller, t)
|
|
1739
1739
|
})
|
|
1740
1740
|
},
|
|
1741
1741
|
...n
|
|
1742
1742
|
);
|
|
1743
|
-
},
|
|
1743
|
+
}, mo = (e, ...n) => {
|
|
1744
1744
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1745
1745
|
return R(
|
|
1746
1746
|
{
|
|
1747
1747
|
...o,
|
|
1748
|
-
content:
|
|
1748
|
+
content: wt({
|
|
1749
1749
|
...o,
|
|
1750
1750
|
...Fe(
|
|
1751
1751
|
o.controller,
|
|
@@ -1756,89 +1756,89 @@ const R = ({
|
|
|
1756
1756
|
(l) => l != null ? l.toISOString().split("T")[0] : null,
|
|
1757
1757
|
r
|
|
1758
1758
|
),
|
|
1759
|
-
onBlur:
|
|
1759
|
+
onBlur: U(o.controller, t)
|
|
1760
1760
|
})
|
|
1761
1761
|
},
|
|
1762
1762
|
...n
|
|
1763
1763
|
);
|
|
1764
|
-
},
|
|
1764
|
+
}, Gn = (e) => new Date(e), Zn = (e) => e.toISOString(), ko = (e, ...n) => {
|
|
1765
1765
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1766
1766
|
return R(
|
|
1767
1767
|
{
|
|
1768
1768
|
...o,
|
|
1769
|
-
content:
|
|
1769
|
+
content: $t({
|
|
1770
1770
|
...o,
|
|
1771
1771
|
...Fe(
|
|
1772
1772
|
o.controller,
|
|
1773
|
-
(l) => l != null && l !== "" ?
|
|
1773
|
+
(l) => l != null && l !== "" ? Gn(l) : null
|
|
1774
1774
|
),
|
|
1775
1775
|
onChange: He(
|
|
1776
1776
|
o.controller,
|
|
1777
|
-
(l) => l != null ?
|
|
1777
|
+
(l) => l != null ? Zn(l) : null,
|
|
1778
1778
|
r
|
|
1779
1779
|
),
|
|
1780
|
-
onBlur:
|
|
1780
|
+
onBlur: U(o.controller, t)
|
|
1781
1781
|
})
|
|
1782
1782
|
},
|
|
1783
1783
|
...n
|
|
1784
1784
|
);
|
|
1785
|
-
}, we = (e) => typeof e == "string" && e.trim() === "" ? null : e,
|
|
1785
|
+
}, we = (e) => typeof e == "string" && e.trim() === "" ? null : e, Ct = (e) => e ?? "", Kn = (e) => {
|
|
1786
1786
|
const { value: n, onBlur: t, onChange: r, onInput: o, ...l } = e;
|
|
1787
1787
|
return X({
|
|
1788
1788
|
...l,
|
|
1789
1789
|
input: oe.text(
|
|
1790
1790
|
Y(l),
|
|
1791
|
-
a.value(w.map(n,
|
|
1791
|
+
a.value(w.map(n, Ct)),
|
|
1792
1792
|
a.class("bc-input"),
|
|
1793
1793
|
t != null ? m.blur(t) : y,
|
|
1794
1794
|
r != null ? m.change(I((s) => r(we(s)))) : y,
|
|
1795
1795
|
o != null ? m.input(I((s) => o(we(s)))) : y
|
|
1796
1796
|
)
|
|
1797
1797
|
});
|
|
1798
|
-
},
|
|
1798
|
+
}, Xn = (e) => {
|
|
1799
1799
|
const { value: n, onBlur: t, onChange: r, onInput: o, rows: l } = e;
|
|
1800
1800
|
return X({
|
|
1801
1801
|
...e,
|
|
1802
1802
|
input: p.textarea(
|
|
1803
1803
|
Y(e),
|
|
1804
1804
|
a.rows(l ?? 10),
|
|
1805
|
-
a.value(w.map(n,
|
|
1805
|
+
a.value(w.map(n, Ct)),
|
|
1806
1806
|
a.class("bc-input"),
|
|
1807
1807
|
t != null ? m.blur(t) : y,
|
|
1808
1808
|
r != null ? m.change(I((s) => r(we(s)))) : y,
|
|
1809
1809
|
o != null ? m.input(I((s) => o(we(s)))) : y
|
|
1810
1810
|
)
|
|
1811
1811
|
});
|
|
1812
|
-
},
|
|
1812
|
+
}, xo = (e, ...n) => {
|
|
1813
1813
|
const { onBlur: t, onChange: r, rows: o, ...l } = e;
|
|
1814
1814
|
return R(
|
|
1815
1815
|
{
|
|
1816
1816
|
...l,
|
|
1817
|
-
content:
|
|
1817
|
+
content: Xn({
|
|
1818
1818
|
...l,
|
|
1819
1819
|
...Z(l.controller),
|
|
1820
1820
|
rows: o,
|
|
1821
1821
|
onChange: Q(l.controller, r),
|
|
1822
|
-
onBlur:
|
|
1822
|
+
onBlur: U(l.controller, t)
|
|
1823
1823
|
})
|
|
1824
1824
|
},
|
|
1825
1825
|
...n
|
|
1826
1826
|
);
|
|
1827
|
-
},
|
|
1827
|
+
}, vo = (e, ...n) => {
|
|
1828
1828
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1829
1829
|
return R(
|
|
1830
1830
|
{
|
|
1831
1831
|
...o,
|
|
1832
|
-
content:
|
|
1832
|
+
content: Kn({
|
|
1833
1833
|
...o,
|
|
1834
1834
|
...Z(o.controller),
|
|
1835
1835
|
onChange: Q(o.controller, r),
|
|
1836
|
-
onBlur:
|
|
1836
|
+
onBlur: U(o.controller, t)
|
|
1837
1837
|
})
|
|
1838
1838
|
},
|
|
1839
1839
|
...n
|
|
1840
1840
|
);
|
|
1841
|
-
},
|
|
1841
|
+
}, Yn = (e) => {
|
|
1842
1842
|
const { value: n, step: t, min: r, max: o, onBlur: l, onChange: s, onInput: u } = e;
|
|
1843
1843
|
return X({
|
|
1844
1844
|
...e,
|
|
@@ -1850,25 +1850,25 @@ const R = ({
|
|
|
1850
1850
|
a.max(o),
|
|
1851
1851
|
a.class("bc-input bc-number-input"),
|
|
1852
1852
|
l != null ? m.blur(I(l)) : y,
|
|
1853
|
-
s != null ? m.change(
|
|
1854
|
-
u != null ? m.input(
|
|
1853
|
+
s != null ? m.change(Be(s)) : y,
|
|
1854
|
+
u != null ? m.input(Be(u)) : y
|
|
1855
1855
|
)
|
|
1856
1856
|
});
|
|
1857
|
-
},
|
|
1857
|
+
}, yo = (e, ...n) => {
|
|
1858
1858
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1859
1859
|
return R(
|
|
1860
1860
|
{
|
|
1861
1861
|
...o,
|
|
1862
|
-
content:
|
|
1862
|
+
content: Yn({
|
|
1863
1863
|
...o,
|
|
1864
1864
|
...Z(o.controller),
|
|
1865
1865
|
onChange: Q(o.controller, r),
|
|
1866
|
-
onBlur:
|
|
1866
|
+
onBlur: U(o.controller, t)
|
|
1867
1867
|
})
|
|
1868
1868
|
},
|
|
1869
1869
|
...n
|
|
1870
1870
|
);
|
|
1871
|
-
},
|
|
1871
|
+
}, Qn = (e) => {
|
|
1872
1872
|
const {
|
|
1873
1873
|
value: n,
|
|
1874
1874
|
onBlur: t,
|
|
@@ -1881,31 +1881,31 @@ const R = ({
|
|
|
1881
1881
|
autocomplete: i,
|
|
1882
1882
|
placeholder: d,
|
|
1883
1883
|
...h
|
|
1884
|
-
} = e,
|
|
1884
|
+
} = e, f = {
|
|
1885
1885
|
name: "password",
|
|
1886
1886
|
...h
|
|
1887
|
-
}, b = q(!0), v =
|
|
1887
|
+
}, b = q(!0), v = $(
|
|
1888
1888
|
b,
|
|
1889
1889
|
i
|
|
1890
|
-
)((S,
|
|
1890
|
+
)((S, g) => S ? g ?? "current-password" : "off"), C = $(
|
|
1891
1891
|
b,
|
|
1892
1892
|
d
|
|
1893
1893
|
// TODO translation
|
|
1894
|
-
)((S,
|
|
1894
|
+
)((S, g) => S ? "•••••••••••••••" : g ?? "secret password");
|
|
1895
1895
|
return X({
|
|
1896
1896
|
before: l,
|
|
1897
1897
|
disabled: c,
|
|
1898
1898
|
hasError: u,
|
|
1899
1899
|
input: p.input(
|
|
1900
1900
|
Y({
|
|
1901
|
-
...
|
|
1901
|
+
...f,
|
|
1902
1902
|
autocomplete: v,
|
|
1903
|
-
placeholder:
|
|
1903
|
+
placeholder: C
|
|
1904
1904
|
}),
|
|
1905
1905
|
G(
|
|
1906
1906
|
b,
|
|
1907
|
-
() =>
|
|
1908
|
-
() =>
|
|
1907
|
+
() => L(a.type("password")),
|
|
1908
|
+
() => L(a.type("text"))
|
|
1909
1909
|
),
|
|
1910
1910
|
a.class("bc-input"),
|
|
1911
1911
|
a.value(n),
|
|
@@ -1925,52 +1925,52 @@ const R = ({
|
|
|
1925
1925
|
)
|
|
1926
1926
|
)
|
|
1927
1927
|
});
|
|
1928
|
-
},
|
|
1928
|
+
}, wo = (e, ...n) => {
|
|
1929
1929
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1930
1930
|
return R(
|
|
1931
1931
|
{
|
|
1932
1932
|
label: "Password",
|
|
1933
1933
|
...o,
|
|
1934
|
-
content:
|
|
1934
|
+
content: Qn({
|
|
1935
1935
|
...o,
|
|
1936
1936
|
...Z(o.controller),
|
|
1937
1937
|
onChange: Q(o.controller, r),
|
|
1938
|
-
onBlur:
|
|
1938
|
+
onBlur: U(o.controller, t)
|
|
1939
1939
|
})
|
|
1940
1940
|
},
|
|
1941
1941
|
...n
|
|
1942
1942
|
);
|
|
1943
1943
|
};
|
|
1944
|
-
function
|
|
1944
|
+
function Jn(e, n) {
|
|
1945
1945
|
return e.length === n.length && e.every((t, r) => t === n[r]);
|
|
1946
1946
|
}
|
|
1947
|
-
function
|
|
1947
|
+
function er({
|
|
1948
1948
|
options: e,
|
|
1949
1949
|
value: n,
|
|
1950
1950
|
onChange: t,
|
|
1951
1951
|
size: r = "md",
|
|
1952
1952
|
disabled: o = !1
|
|
1953
1953
|
}, ...l) {
|
|
1954
|
-
const s =
|
|
1954
|
+
const s = D(e).map(([d, h]) => ({
|
|
1955
1955
|
key: d,
|
|
1956
1956
|
label: h
|
|
1957
1957
|
})), u = Object.fromEntries(
|
|
1958
1958
|
s.map((d, h) => [d.key, h])
|
|
1959
1959
|
), c = q(
|
|
1960
1960
|
s.map(() => ({ left: 0, width: 0 })),
|
|
1961
|
-
|
|
1961
|
+
Jn
|
|
1962
1962
|
);
|
|
1963
1963
|
function i(d, h) {
|
|
1964
|
-
const
|
|
1964
|
+
const f = [
|
|
1965
1965
|
"bc-segmented-control",
|
|
1966
1966
|
`bu-text-${d}`,
|
|
1967
1967
|
`bc-segmented-control--${d}`
|
|
1968
1968
|
];
|
|
1969
|
-
return h &&
|
|
1969
|
+
return h && f.push("bc-segmented-control--disabled"), f.join(" ");
|
|
1970
1970
|
}
|
|
1971
1971
|
return p.div(
|
|
1972
1972
|
a.class(
|
|
1973
|
-
|
|
1973
|
+
$(
|
|
1974
1974
|
r,
|
|
1975
1975
|
o
|
|
1976
1976
|
)(
|
|
@@ -1982,26 +1982,26 @@ function Jn({
|
|
|
1982
1982
|
p.div(
|
|
1983
1983
|
a.class("bc-segmented-control__indicator"),
|
|
1984
1984
|
x.width(
|
|
1985
|
-
|
|
1985
|
+
$(
|
|
1986
1986
|
n,
|
|
1987
1987
|
c
|
|
1988
1988
|
)((d, h) => {
|
|
1989
|
-
const { width:
|
|
1990
|
-
return `${
|
|
1989
|
+
const { width: f } = h[u[d] ?? 0];
|
|
1990
|
+
return `${f}px`;
|
|
1991
1991
|
})
|
|
1992
1992
|
),
|
|
1993
1993
|
x.left(
|
|
1994
|
-
|
|
1994
|
+
$(
|
|
1995
1995
|
n,
|
|
1996
1996
|
c
|
|
1997
1997
|
)((d, h) => {
|
|
1998
|
-
const { left:
|
|
1999
|
-
return `${
|
|
1998
|
+
const { left: f } = h[u[d] ?? 0];
|
|
1999
|
+
return `${f}px`;
|
|
2000
2000
|
})
|
|
2001
2001
|
)
|
|
2002
2002
|
),
|
|
2003
2003
|
// clickable buttons
|
|
2004
|
-
s.map(({ label: d, key: h },
|
|
2004
|
+
s.map(({ label: d, key: h }, f) => p.button(
|
|
2005
2005
|
m.click((b) => {
|
|
2006
2006
|
b.preventDefault(), w.get(o) || t == null || t(h);
|
|
2007
2007
|
}),
|
|
@@ -2012,9 +2012,9 @@ function Jn({
|
|
|
2012
2012
|
),
|
|
2013
2013
|
F((b) => {
|
|
2014
2014
|
const v = le(() => {
|
|
2015
|
-
c.update((
|
|
2016
|
-
const S = [
|
|
2017
|
-
return S[
|
|
2015
|
+
c.update((C) => {
|
|
2016
|
+
const S = [...C];
|
|
2017
|
+
return S[f] = {
|
|
2018
2018
|
width: b.offsetWidth,
|
|
2019
2019
|
left: b.offsetLeft
|
|
2020
2020
|
}, S;
|
|
@@ -2028,12 +2028,12 @@ function Jn({
|
|
|
2028
2028
|
...l
|
|
2029
2029
|
);
|
|
2030
2030
|
}
|
|
2031
|
-
const
|
|
2031
|
+
const $o = (e, ...n) => {
|
|
2032
2032
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
2033
2033
|
return R(
|
|
2034
2034
|
{
|
|
2035
2035
|
...o,
|
|
2036
|
-
content:
|
|
2036
|
+
content: xt({
|
|
2037
2037
|
...o,
|
|
2038
2038
|
...Fe(
|
|
2039
2039
|
o.controller,
|
|
@@ -2044,12 +2044,12 @@ const vo = (e, ...n) => {
|
|
|
2044
2044
|
(l) => l.toISOString(),
|
|
2045
2045
|
r
|
|
2046
2046
|
),
|
|
2047
|
-
onBlur:
|
|
2047
|
+
onBlur: U(o.controller, t)
|
|
2048
2048
|
})
|
|
2049
2049
|
},
|
|
2050
2050
|
...n
|
|
2051
2051
|
);
|
|
2052
|
-
},
|
|
2052
|
+
}, tr = (e) => {
|
|
2053
2053
|
const { value: n, onChange: t, onBlur: r } = e, o = q(""), l = (u) => {
|
|
2054
2054
|
t == null || t(w.get(n).filter((c) => c !== u));
|
|
2055
2055
|
}, s = () => {
|
|
@@ -2058,9 +2058,9 @@ const vo = (e, ...n) => {
|
|
|
2058
2058
|
};
|
|
2059
2059
|
return X({
|
|
2060
2060
|
...e,
|
|
2061
|
-
input:
|
|
2061
|
+
input: L(
|
|
2062
2062
|
a.class("bc-input-container__tags"),
|
|
2063
|
-
|
|
2063
|
+
Ve(n, (u) => Ln({ value: u, onClose: () => l(u.value) })),
|
|
2064
2064
|
oe.text(
|
|
2065
2065
|
Y(e),
|
|
2066
2066
|
a.value(o),
|
|
@@ -2071,21 +2071,21 @@ const vo = (e, ...n) => {
|
|
|
2071
2071
|
)
|
|
2072
2072
|
)
|
|
2073
2073
|
});
|
|
2074
|
-
},
|
|
2074
|
+
}, Co = (e, ...n) => {
|
|
2075
2075
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
2076
2076
|
return R(
|
|
2077
2077
|
{
|
|
2078
2078
|
...o,
|
|
2079
|
-
content:
|
|
2079
|
+
content: tr({
|
|
2080
2080
|
...o,
|
|
2081
2081
|
...Z(o.controller),
|
|
2082
2082
|
onChange: Q(o.controller, r),
|
|
2083
|
-
onBlur:
|
|
2083
|
+
onBlur: U(o.controller, t)
|
|
2084
2084
|
})
|
|
2085
2085
|
},
|
|
2086
2086
|
...n
|
|
2087
2087
|
);
|
|
2088
|
-
},
|
|
2088
|
+
}, nr = (e) => {
|
|
2089
2089
|
const { value: n, onBlur: t, onChange: r, onInput: o, rows: l } = e;
|
|
2090
2090
|
return X({
|
|
2091
2091
|
...e,
|
|
@@ -2107,32 +2107,32 @@ const vo = (e, ...n) => {
|
|
|
2107
2107
|
o != null ? m.input(I(o)) : y
|
|
2108
2108
|
)
|
|
2109
2109
|
});
|
|
2110
|
-
},
|
|
2110
|
+
}, So = (e, ...n) => {
|
|
2111
2111
|
const { onBlur: t, onChange: r, rows: o, ...l } = e;
|
|
2112
2112
|
return R(
|
|
2113
2113
|
{
|
|
2114
2114
|
...l,
|
|
2115
|
-
content:
|
|
2115
|
+
content: nr({
|
|
2116
2116
|
...l,
|
|
2117
2117
|
...Z(l.controller),
|
|
2118
2118
|
rows: o,
|
|
2119
2119
|
value: l.controller.value,
|
|
2120
2120
|
onChange: Q(l.controller, r),
|
|
2121
|
-
onBlur:
|
|
2121
|
+
onBlur: U(l.controller, t)
|
|
2122
2122
|
})
|
|
2123
2123
|
},
|
|
2124
2124
|
...n
|
|
2125
2125
|
);
|
|
2126
2126
|
};
|
|
2127
|
-
function
|
|
2128
|
-
return
|
|
2127
|
+
function Eo(e, n, t) {
|
|
2128
|
+
return Oe(
|
|
2129
2129
|
e.value,
|
|
2130
2130
|
() => {
|
|
2131
2131
|
const r = e.transform(
|
|
2132
2132
|
(o) => o,
|
|
2133
2133
|
(o) => o
|
|
2134
2134
|
);
|
|
2135
|
-
return
|
|
2135
|
+
return L(
|
|
2136
2136
|
N(() => r.dispose()),
|
|
2137
2137
|
n(r)
|
|
2138
2138
|
);
|
|
@@ -2140,15 +2140,15 @@ function $o(e, n, t) {
|
|
|
2140
2140
|
t
|
|
2141
2141
|
);
|
|
2142
2142
|
}
|
|
2143
|
-
function
|
|
2143
|
+
function _o(e, n, t) {
|
|
2144
2144
|
const r = e.length.map((o) => o);
|
|
2145
|
-
return
|
|
2145
|
+
return L(
|
|
2146
2146
|
N(() => r.dispose()),
|
|
2147
|
-
|
|
2147
|
+
Ft(
|
|
2148
2148
|
r,
|
|
2149
2149
|
(o) => {
|
|
2150
2150
|
const l = e.item(o.index), s = [];
|
|
2151
|
-
return
|
|
2151
|
+
return L(
|
|
2152
2152
|
N(() => {
|
|
2153
2153
|
l.dispose(), s.forEach((u) => u());
|
|
2154
2154
|
}),
|
|
@@ -2203,24 +2203,24 @@ function Co(e, n, t) {
|
|
|
2203
2203
|
)
|
|
2204
2204
|
);
|
|
2205
2205
|
}
|
|
2206
|
-
function
|
|
2206
|
+
function Ao(e) {
|
|
2207
2207
|
return e.split(".").map((t) => {
|
|
2208
2208
|
const r = t.match(/^\[(\d+)\]$/);
|
|
2209
2209
|
return r ? Number(r[1]) : t;
|
|
2210
2210
|
});
|
|
2211
2211
|
}
|
|
2212
|
-
function
|
|
2212
|
+
function rr(e) {
|
|
2213
2213
|
return typeof e == "number" ? `[${e}]` : `.${e}`;
|
|
2214
2214
|
}
|
|
2215
|
-
function
|
|
2215
|
+
function or(e) {
|
|
2216
2216
|
if (e.length === 0) return "";
|
|
2217
2217
|
const [n, ...t] = e;
|
|
2218
2218
|
return [
|
|
2219
2219
|
typeof n == "number" ? `[${n}]` : n,
|
|
2220
|
-
...t.map(
|
|
2220
|
+
...t.map(rr)
|
|
2221
2221
|
].join("");
|
|
2222
2222
|
}
|
|
2223
|
-
function
|
|
2223
|
+
function Me(e) {
|
|
2224
2224
|
return function(t) {
|
|
2225
2225
|
var o;
|
|
2226
2226
|
if (t.type === "Valid") return t;
|
|
@@ -2264,7 +2264,7 @@ const We = class We {
|
|
|
2264
2264
|
B(this, "enable", () => {
|
|
2265
2265
|
j(this, ie).disabled.set(!1);
|
|
2266
2266
|
});
|
|
2267
|
-
B(this, "array", (n =
|
|
2267
|
+
B(this, "array", (n = _e) => new ar(
|
|
2268
2268
|
this.path,
|
|
2269
2269
|
this.change,
|
|
2270
2270
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -2273,7 +2273,7 @@ const We = class We {
|
|
|
2273
2273
|
this.parent,
|
|
2274
2274
|
n
|
|
2275
2275
|
));
|
|
2276
|
-
B(this, "object", (n =
|
|
2276
|
+
B(this, "object", (n = _e) => new lr(
|
|
2277
2277
|
this.path,
|
|
2278
2278
|
this.change,
|
|
2279
2279
|
this.value,
|
|
@@ -2281,16 +2281,16 @@ const We = class We {
|
|
|
2281
2281
|
this.parent,
|
|
2282
2282
|
n
|
|
2283
2283
|
));
|
|
2284
|
-
B(this, "transform", (n, t, r = [], o =
|
|
2284
|
+
B(this, "transform", (n, t, r = [], o = _e) => new We(
|
|
2285
2285
|
[...this.path, ...r],
|
|
2286
2286
|
(l) => this.change(t(l)),
|
|
2287
2287
|
this.value.map(n, o),
|
|
2288
|
-
this.status.map(
|
|
2288
|
+
this.status.map(Me(r)),
|
|
2289
2289
|
this.parent
|
|
2290
2290
|
));
|
|
2291
2291
|
this.path = n, this.change = t, this.value = r, this.status = o, this.error = o.map((s) => s.type === "Invalid" ? s.error : void 0), this.hasError = this.error.map((s) => s != null), this.dependencyErrors = o.map(
|
|
2292
2292
|
(s) => s.type === "Invalid" ? s.dependencies : void 0
|
|
2293
|
-
), this.parent = l, this.disabled =
|
|
2293
|
+
), this.parent = l, this.disabled = $(
|
|
2294
2294
|
j(this, ie).disabled,
|
|
2295
2295
|
l.disabled
|
|
2296
2296
|
)((s, u) => s || u), this.onDispose(() => {
|
|
@@ -2298,13 +2298,13 @@ const We = class We {
|
|
|
2298
2298
|
});
|
|
2299
2299
|
}
|
|
2300
2300
|
get name() {
|
|
2301
|
-
return
|
|
2301
|
+
return or(this.path);
|
|
2302
2302
|
}
|
|
2303
2303
|
};
|
|
2304
2304
|
ie = new WeakMap(), pe = new WeakMap();
|
|
2305
2305
|
let de = We;
|
|
2306
2306
|
var ae;
|
|
2307
|
-
class
|
|
2307
|
+
class lr extends de {
|
|
2308
2308
|
constructor(t, r, o, l, s, u) {
|
|
2309
2309
|
super(
|
|
2310
2310
|
t,
|
|
@@ -2326,7 +2326,7 @@ class or extends de {
|
|
|
2326
2326
|
[...this.path, t],
|
|
2327
2327
|
r,
|
|
2328
2328
|
this.value.map((l) => l[t]),
|
|
2329
|
-
this.status.map(
|
|
2329
|
+
this.status.map(Me([t])),
|
|
2330
2330
|
{ disabled: this.disabled }
|
|
2331
2331
|
);
|
|
2332
2332
|
return j(this, ae).set(t, o), o;
|
|
@@ -2340,7 +2340,7 @@ class or extends de {
|
|
|
2340
2340
|
}
|
|
2341
2341
|
ae = new WeakMap();
|
|
2342
2342
|
var re;
|
|
2343
|
-
class
|
|
2343
|
+
class ar extends de {
|
|
2344
2344
|
constructor(t, r, o, l, s, u) {
|
|
2345
2345
|
const c = o.map((d) => d ?? [], u);
|
|
2346
2346
|
super(t, r, c, l, s);
|
|
@@ -2356,7 +2356,7 @@ class lr extends de {
|
|
|
2356
2356
|
[...this.path, t],
|
|
2357
2357
|
r,
|
|
2358
2358
|
this.value.map((l) => l[t]),
|
|
2359
|
-
this.status.map(
|
|
2359
|
+
this.status.map(Me([t])),
|
|
2360
2360
|
{ disabled: this.disabled }
|
|
2361
2361
|
);
|
|
2362
2362
|
return j(this, re)[t] = o, o;
|
|
@@ -2387,7 +2387,7 @@ class lr extends de {
|
|
|
2387
2387
|
});
|
|
2388
2388
|
const i = c.on((d) => {
|
|
2389
2389
|
const h = j(this, re).length - d.length;
|
|
2390
|
-
h > 0 && j(this, re).splice(d.length, h).forEach((
|
|
2390
|
+
h > 0 && j(this, re).splice(d.length, h).forEach((f) => f.dispose());
|
|
2391
2391
|
});
|
|
2392
2392
|
this.length = c.map((d) => d.length), this.onDispose(() => {
|
|
2393
2393
|
for (const d of j(this, re))
|
|
@@ -2397,11 +2397,11 @@ class lr extends de {
|
|
|
2397
2397
|
}
|
|
2398
2398
|
}
|
|
2399
2399
|
re = new WeakMap();
|
|
2400
|
-
const
|
|
2401
|
-
mark:
|
|
2400
|
+
const St = {
|
|
2401
|
+
mark: Je("Theme"),
|
|
2402
2402
|
// Create function returns the value and cleanup
|
|
2403
2403
|
create: (e) => {
|
|
2404
|
-
const n =
|
|
2404
|
+
const n = Ut(), t = et({
|
|
2405
2405
|
key: "beatui-appearance-preference",
|
|
2406
2406
|
defaultValue: "system"
|
|
2407
2407
|
}), r = () => {
|
|
@@ -2409,7 +2409,7 @@ const wt = {
|
|
|
2409
2409
|
};
|
|
2410
2410
|
return {
|
|
2411
2411
|
value: {
|
|
2412
|
-
appearance:
|
|
2412
|
+
appearance: $(
|
|
2413
2413
|
n,
|
|
2414
2414
|
t
|
|
2415
2415
|
)((s, u) => u === "system" ? s : u),
|
|
@@ -2421,15 +2421,15 @@ const wt = {
|
|
|
2421
2421
|
dispose: r
|
|
2422
2422
|
};
|
|
2423
2423
|
}
|
|
2424
|
-
},
|
|
2425
|
-
|
|
2426
|
-
({ appearance: e }) =>
|
|
2424
|
+
}, To = () => Ce(
|
|
2425
|
+
St,
|
|
2426
|
+
({ appearance: e }) => Ht("body", a.class(e.map((n) => `b-${n}`)))
|
|
2427
2427
|
);
|
|
2428
|
-
function
|
|
2428
|
+
function sr({
|
|
2429
2429
|
value: e,
|
|
2430
2430
|
onChange: n
|
|
2431
2431
|
}) {
|
|
2432
|
-
return
|
|
2432
|
+
return er({
|
|
2433
2433
|
size: "sm",
|
|
2434
2434
|
value: e,
|
|
2435
2435
|
options: {
|
|
@@ -2452,16 +2452,16 @@ function ar({
|
|
|
2452
2452
|
onChange: n
|
|
2453
2453
|
});
|
|
2454
2454
|
}
|
|
2455
|
-
function
|
|
2456
|
-
return
|
|
2457
|
-
|
|
2458
|
-
({ appearancePreference: e, setAppearancePreference: n }) =>
|
|
2455
|
+
function Bo() {
|
|
2456
|
+
return Ce(
|
|
2457
|
+
St,
|
|
2458
|
+
({ appearancePreference: e, setAppearancePreference: n }) => sr({
|
|
2459
2459
|
value: e,
|
|
2460
2460
|
onChange: n
|
|
2461
2461
|
})
|
|
2462
2462
|
);
|
|
2463
2463
|
}
|
|
2464
|
-
const
|
|
2464
|
+
const Io = (e) => {
|
|
2465
2465
|
const { value: n, onBlur: t, onChange: r, placeholder: o, id: l } = e, s = l ?? se("checkbox"), u = `${s}-label`;
|
|
2466
2466
|
return X({
|
|
2467
2467
|
growInput: !1,
|
|
@@ -2478,12 +2478,12 @@ const Ao = (e) => {
|
|
|
2478
2478
|
F((c) => {
|
|
2479
2479
|
const i = c.closest("[data-describedby]");
|
|
2480
2480
|
if (i) {
|
|
2481
|
-
const d = i.getAttribute("data-describedby"), h = i.getAttribute("data-required"),
|
|
2482
|
-
d && c.setAttribute("aria-describedby", d), h === "true" && c.setAttribute("aria-required", "true"),
|
|
2481
|
+
const d = i.getAttribute("data-describedby"), h = i.getAttribute("data-required"), f = i.getAttribute("data-invalid");
|
|
2482
|
+
d && c.setAttribute("aria-describedby", d), h === "true" && c.setAttribute("aria-required", "true"), f === "true" && c.setAttribute("aria-invalid", "true");
|
|
2483
2483
|
}
|
|
2484
2484
|
}),
|
|
2485
2485
|
t != null ? m.blur(I(t)) : y,
|
|
2486
|
-
r != null ? m.change(
|
|
2486
|
+
r != null ? m.change(Pt(r)) : y
|
|
2487
2487
|
),
|
|
2488
2488
|
o != null ? p.label(
|
|
2489
2489
|
a.class("bc-checkbox-input__label"),
|
|
@@ -2493,7 +2493,7 @@ const Ao = (e) => {
|
|
|
2493
2493
|
) : y
|
|
2494
2494
|
)
|
|
2495
2495
|
});
|
|
2496
|
-
},
|
|
2496
|
+
}, Lo = ({
|
|
2497
2497
|
startEditing: e,
|
|
2498
2498
|
value: n,
|
|
2499
2499
|
onChange: t,
|
|
@@ -2508,7 +2508,7 @@ const Ao = (e) => {
|
|
|
2508
2508
|
a.placeholder(r),
|
|
2509
2509
|
a.value(n),
|
|
2510
2510
|
a.class("bc-editable-text__input"),
|
|
2511
|
-
|
|
2511
|
+
zt(),
|
|
2512
2512
|
m.keydown((s) => {
|
|
2513
2513
|
s.key === "Enter" ? o.set(!1) : s.key === "Escape" && (l.set(!0), o.set(!1));
|
|
2514
2514
|
}),
|
|
@@ -2543,7 +2543,7 @@ const Ao = (e) => {
|
|
|
2543
2543
|
)
|
|
2544
2544
|
)
|
|
2545
2545
|
);
|
|
2546
|
-
},
|
|
2546
|
+
}, Do = ({
|
|
2547
2547
|
value: e,
|
|
2548
2548
|
onChange: n,
|
|
2549
2549
|
offLabel: t,
|
|
@@ -2555,17 +2555,17 @@ const Ao = (e) => {
|
|
|
2555
2555
|
}) => {
|
|
2556
2556
|
const c = u ?? se("switch"), i = `${c}-label`;
|
|
2557
2557
|
function d(b, v) {
|
|
2558
|
-
const
|
|
2559
|
-
return b &&
|
|
2558
|
+
const C = ["bc-switch", `bu-text-${v}`, `bc-switch--${v}`];
|
|
2559
|
+
return b && C.push("bc-switch--disabled"), C.join(" ");
|
|
2560
2560
|
}
|
|
2561
2561
|
const h = () => {
|
|
2562
2562
|
w.get(l) || n(!w.get(e));
|
|
2563
|
-
},
|
|
2563
|
+
}, f = (b) => {
|
|
2564
2564
|
w.get(l) || (b.key === " " || b.key === "Enter") && (b.preventDefault(), h());
|
|
2565
2565
|
};
|
|
2566
2566
|
return p.div(
|
|
2567
2567
|
a.class(
|
|
2568
|
-
|
|
2568
|
+
$(
|
|
2569
2569
|
l ?? !1,
|
|
2570
2570
|
s
|
|
2571
2571
|
)(
|
|
@@ -2581,8 +2581,8 @@ const Ao = (e) => {
|
|
|
2581
2581
|
A.disabled(l),
|
|
2582
2582
|
A.labelledby(o != null ? i : void 0),
|
|
2583
2583
|
m.click(h),
|
|
2584
|
-
m.keydown(
|
|
2585
|
-
o != null ?
|
|
2584
|
+
m.keydown(f),
|
|
2585
|
+
o != null ? kt(a.id(i), a.class(`bu-text-${s} bu-nowrap`), o) : null,
|
|
2586
2586
|
p.div(
|
|
2587
2587
|
a.class("bc-switch__track"),
|
|
2588
2588
|
a.class(
|
|
@@ -2622,12 +2622,12 @@ const Ao = (e) => {
|
|
|
2622
2622
|
)
|
|
2623
2623
|
),
|
|
2624
2624
|
x.transform(
|
|
2625
|
-
|
|
2625
|
+
$(
|
|
2626
2626
|
e,
|
|
2627
2627
|
b,
|
|
2628
2628
|
s
|
|
2629
|
-
)((v, { width:
|
|
2630
|
-
const
|
|
2629
|
+
)((v, { width: C }, S) => {
|
|
2630
|
+
const g = (() => {
|
|
2631
2631
|
switch (S) {
|
|
2632
2632
|
case "xs":
|
|
2633
2633
|
return 5;
|
|
@@ -2641,7 +2641,7 @@ const Ao = (e) => {
|
|
|
2641
2641
|
return 8;
|
|
2642
2642
|
}
|
|
2643
2643
|
})();
|
|
2644
|
-
return v ? `translateX(calc(${
|
|
2644
|
+
return v ? `translateX(calc(${C}px - (var(--spacing-base) * ${g})))` : "translateX(0)";
|
|
2645
2645
|
})
|
|
2646
2646
|
)
|
|
2647
2647
|
)
|
|
@@ -2649,7 +2649,7 @@ const Ao = (e) => {
|
|
|
2649
2649
|
)
|
|
2650
2650
|
);
|
|
2651
2651
|
};
|
|
2652
|
-
function
|
|
2652
|
+
function cr(e) {
|
|
2653
2653
|
function n(t) {
|
|
2654
2654
|
return typeof t == "number" ? t : t.toString();
|
|
2655
2655
|
}
|
|
@@ -2657,9 +2657,9 @@ function sr(e) {
|
|
|
2657
2657
|
(t) => typeof t == "object" && t.key != null ? n(t.key) : n(t)
|
|
2658
2658
|
);
|
|
2659
2659
|
}
|
|
2660
|
-
function
|
|
2660
|
+
function ir(e) {
|
|
2661
2661
|
const n = e.filter((o) => o.path == null || o.path.length === 0).map((o) => o.message), t = e.filter((o) => o.path != null && o.path.length > 0).reduce((o, l) => {
|
|
2662
|
-
const s =
|
|
2662
|
+
const s = cr(l.path), u = s.pop();
|
|
2663
2663
|
let c = o;
|
|
2664
2664
|
for (const i of s)
|
|
2665
2665
|
c.dependencies == null && (c.dependencies = {}), c.dependencies[i] == null && (c.dependencies[i] = {}), c = c.dependencies[i];
|
|
@@ -2671,7 +2671,7 @@ function cr(e) {
|
|
|
2671
2671
|
error: r != "" ? r : void 0
|
|
2672
2672
|
};
|
|
2673
2673
|
}
|
|
2674
|
-
function
|
|
2674
|
+
function ur({
|
|
2675
2675
|
defaultValue: e,
|
|
2676
2676
|
onChange: n,
|
|
2677
2677
|
validate: t
|
|
@@ -2688,55 +2688,55 @@ function ir({
|
|
|
2688
2688
|
l.dispose(), r.dispose(), o.dispose();
|
|
2689
2689
|
}), u;
|
|
2690
2690
|
}
|
|
2691
|
-
function
|
|
2692
|
-
return
|
|
2691
|
+
function Et(e) {
|
|
2692
|
+
return L(a.disabled(e.disabled), a.name(e.name));
|
|
2693
2693
|
}
|
|
2694
|
-
function
|
|
2694
|
+
function Oo(e, {
|
|
2695
2695
|
triggerOn: n = "change"
|
|
2696
2696
|
} = {}) {
|
|
2697
|
-
return
|
|
2698
|
-
|
|
2697
|
+
return L(
|
|
2698
|
+
Et(e),
|
|
2699
2699
|
a.value(e.value),
|
|
2700
2700
|
(n === "input" ? m.input : m.change)(I(e.change))
|
|
2701
2701
|
);
|
|
2702
2702
|
}
|
|
2703
|
-
function
|
|
2703
|
+
function Vo(e, {
|
|
2704
2704
|
triggerOn: n = "change"
|
|
2705
2705
|
} = {}) {
|
|
2706
|
-
return
|
|
2707
|
-
|
|
2706
|
+
return L(
|
|
2707
|
+
Et(e),
|
|
2708
2708
|
a.valueAsNumber(e.value),
|
|
2709
2709
|
(n === "input" ? m.input : m.change)(
|
|
2710
|
-
|
|
2710
|
+
Be(e.change)
|
|
2711
2711
|
)
|
|
2712
2712
|
);
|
|
2713
2713
|
}
|
|
2714
|
-
function
|
|
2714
|
+
function dr(e) {
|
|
2715
2715
|
return e.issues != null ? {
|
|
2716
2716
|
type: "Invalid",
|
|
2717
|
-
...
|
|
2717
|
+
...ir(e.issues)
|
|
2718
2718
|
} : { type: "Valid" };
|
|
2719
2719
|
}
|
|
2720
|
-
function
|
|
2720
|
+
function jo({
|
|
2721
2721
|
defaultValue: e = {},
|
|
2722
2722
|
schema: n
|
|
2723
2723
|
}) {
|
|
2724
|
-
return
|
|
2724
|
+
return ur({
|
|
2725
2725
|
defaultValue: e,
|
|
2726
|
-
validate: async (t) =>
|
|
2726
|
+
validate: async (t) => dr(
|
|
2727
2727
|
await n["~standard"].validate(t)
|
|
2728
2728
|
)
|
|
2729
2729
|
}).object();
|
|
2730
2730
|
}
|
|
2731
|
-
const
|
|
2732
|
-
function
|
|
2733
|
-
for (const n of
|
|
2731
|
+
const hr = ["!=", "<=", ">=", "<", ">", "="];
|
|
2732
|
+
function pr(e) {
|
|
2733
|
+
for (const n of hr)
|
|
2734
2734
|
if (typeof e == "string" && e.startsWith(n))
|
|
2735
2735
|
return [n, e.slice(n.length)];
|
|
2736
2736
|
return ["=", e];
|
|
2737
2737
|
}
|
|
2738
|
-
function
|
|
2739
|
-
const [r, o] =
|
|
2738
|
+
function br(e, n, t) {
|
|
2739
|
+
const [r, o] = pr(n), l = e.findIndex((c) => c[1] === o);
|
|
2740
2740
|
if (l === -1)
|
|
2741
2741
|
throw new Error(`Breakpoint ${String(o)} not found`);
|
|
2742
2742
|
const s = e[l][0], u = l < e.length - 1 ? e[l + 1][0] : 1 / 0;
|
|
@@ -2757,11 +2757,11 @@ function pr(e, n, t) {
|
|
|
2757
2757
|
return !1;
|
|
2758
2758
|
}
|
|
2759
2759
|
}
|
|
2760
|
-
function
|
|
2760
|
+
function Fo(e, n) {
|
|
2761
2761
|
const t = e.findIndex((r) => r[0] > n) - 1;
|
|
2762
2762
|
return t >= 0 ? e[t][1] : (e.length > 0 && n >= e[0][0], e[0][1]);
|
|
2763
2763
|
}
|
|
2764
|
-
function
|
|
2764
|
+
function _t(e, { breakpoints: n, mode: t = "viewport" }) {
|
|
2765
2765
|
const o = [...Object.entries(n).map(
|
|
2766
2766
|
([s, u]) => [u, s]
|
|
2767
2767
|
)].sort((s, u) => s[0] - u[0]), l = (s) => {
|
|
@@ -2773,17 +2773,17 @@ function Ct(e, { breakpoints: n, mode: t = "viewport" }) {
|
|
|
2773
2773
|
value: u,
|
|
2774
2774
|
breakpoints: n,
|
|
2775
2775
|
asList: o,
|
|
2776
|
-
is: (i, d) =>
|
|
2776
|
+
is: (i, d) => br(o, i, d)
|
|
2777
2777
|
});
|
|
2778
2778
|
};
|
|
2779
|
-
return t === "element" ? xe(l) :
|
|
2779
|
+
return t === "element" ? xe(l) : Gt(l);
|
|
2780
2780
|
}
|
|
2781
|
-
let
|
|
2782
|
-
function
|
|
2783
|
-
return e ? (isNaN(
|
|
2781
|
+
let Ae = NaN;
|
|
2782
|
+
function fr(e, n) {
|
|
2783
|
+
return e ? (isNaN(Ae) && (Ae = parseFloat(getComputedStyle(document.documentElement).fontSize)), parseFloat(e) * Ae) : n;
|
|
2784
2784
|
}
|
|
2785
2785
|
function W(e, n, t) {
|
|
2786
|
-
return
|
|
2786
|
+
return fr(e.getPropertyValue(n), t);
|
|
2787
2787
|
}
|
|
2788
2788
|
function gr(e) {
|
|
2789
2789
|
return F((n) => {
|
|
@@ -2795,10 +2795,10 @@ function gr(e) {
|
|
|
2795
2795
|
lg: W(t, "--breakpoint-lg", 1280),
|
|
2796
2796
|
xl: W(t, "--breakpoint-xl", 1536)
|
|
2797
2797
|
};
|
|
2798
|
-
return
|
|
2798
|
+
return _t(e, { breakpoints: r });
|
|
2799
2799
|
});
|
|
2800
2800
|
}
|
|
2801
|
-
function
|
|
2801
|
+
function Ho(e) {
|
|
2802
2802
|
return F((n) => {
|
|
2803
2803
|
const t = getComputedStyle(n), r = {
|
|
2804
2804
|
zero: 0,
|
|
@@ -2815,13 +2815,13 @@ function Vo(e) {
|
|
|
2815
2815
|
"5xl": W(t, "--container-5xl", 1536),
|
|
2816
2816
|
"6xl": W(t, "--container-6xl", 2048)
|
|
2817
2817
|
};
|
|
2818
|
-
return
|
|
2818
|
+
return _t(e, {
|
|
2819
2819
|
breakpoints: r,
|
|
2820
2820
|
mode: "element"
|
|
2821
2821
|
});
|
|
2822
2822
|
});
|
|
2823
2823
|
}
|
|
2824
|
-
function
|
|
2824
|
+
function At({
|
|
2825
2825
|
initialStatus: e = "closed",
|
|
2826
2826
|
openedAfter: n,
|
|
2827
2827
|
closedAfter: t
|
|
@@ -2831,18 +2831,18 @@ function St({
|
|
|
2831
2831
|
}, l = () => {
|
|
2832
2832
|
r.set("start-closing");
|
|
2833
2833
|
}, s = r.map(
|
|
2834
|
-
(
|
|
2835
|
-
), u = (
|
|
2836
|
-
|
|
2834
|
+
(g) => g !== "closed" && g !== "start-closing" && g !== "closing"
|
|
2835
|
+
), u = (g) => {
|
|
2836
|
+
g ? o() : l();
|
|
2837
2837
|
}, c = () => {
|
|
2838
2838
|
u(!s.value);
|
|
2839
|
-
}, i = (
|
|
2840
|
-
V === "closed" &&
|
|
2839
|
+
}, i = (g) => r.on((V) => {
|
|
2840
|
+
V === "closed" && g();
|
|
2841
2841
|
});
|
|
2842
2842
|
let d = () => {
|
|
2843
2843
|
};
|
|
2844
|
-
r.on((
|
|
2845
|
-
switch (d(),
|
|
2844
|
+
r.on((g) => {
|
|
2845
|
+
switch (d(), g) {
|
|
2846
2846
|
case "start-opening":
|
|
2847
2847
|
d = le(() => r.set("opening"));
|
|
2848
2848
|
break;
|
|
@@ -2857,7 +2857,7 @@ function St({
|
|
|
2857
2857
|
break;
|
|
2858
2858
|
}
|
|
2859
2859
|
}), r.onDispose(() => d());
|
|
2860
|
-
const h = r.map((
|
|
2860
|
+
const h = r.map((g) => g === "closed"), f = r.map((g) => g === "start-opening"), b = r.map((g) => g === "opening"), v = r.map((g) => g === "opened"), C = r.map((g) => g === "closing"), S = r.map((g) => g === "start-closing");
|
|
2861
2861
|
return {
|
|
2862
2862
|
status: r,
|
|
2863
2863
|
open: o,
|
|
@@ -2866,25 +2866,25 @@ function St({
|
|
|
2866
2866
|
setOpen: u,
|
|
2867
2867
|
display: s,
|
|
2868
2868
|
isClosed: h,
|
|
2869
|
-
isStartOpening:
|
|
2869
|
+
isStartOpening: f,
|
|
2870
2870
|
isOpening: b,
|
|
2871
2871
|
isOpened: v,
|
|
2872
|
-
isClosing:
|
|
2872
|
+
isClosing: C,
|
|
2873
2873
|
isStartClosing: S,
|
|
2874
2874
|
dispose: () => r.dispose(),
|
|
2875
2875
|
onClosed: i
|
|
2876
2876
|
};
|
|
2877
2877
|
}
|
|
2878
|
-
function
|
|
2878
|
+
function Po({
|
|
2879
2879
|
initialStatus: e = "closed",
|
|
2880
2880
|
duration: n,
|
|
2881
2881
|
openDuration: t = n ?? 500,
|
|
2882
2882
|
closeDuration: r = n ?? 500
|
|
2883
2883
|
} = {}) {
|
|
2884
|
-
return
|
|
2884
|
+
return At({
|
|
2885
2885
|
initialStatus: e,
|
|
2886
|
-
openedAfter: (o) =>
|
|
2887
|
-
closedAfter: (o) =>
|
|
2886
|
+
openedAfter: (o) => ze(o, t),
|
|
2887
|
+
closedAfter: (o) => ze(o, r)
|
|
2888
2888
|
});
|
|
2889
2889
|
}
|
|
2890
2890
|
function Ze(e, n) {
|
|
@@ -2910,7 +2910,7 @@ function Ze(e, n) {
|
|
|
2910
2910
|
t = !0, c(), r && (clearTimeout(r), r = null), e.removeEventListener("transitionend", l), e.removeEventListener("animationend", s);
|
|
2911
2911
|
};
|
|
2912
2912
|
}
|
|
2913
|
-
function
|
|
2913
|
+
function fe({
|
|
2914
2914
|
initialStatus: e = "closed",
|
|
2915
2915
|
element: n
|
|
2916
2916
|
} = {}) {
|
|
@@ -2919,7 +2919,7 @@ function ge({
|
|
|
2919
2919
|
setElement: (r) => {
|
|
2920
2920
|
t = r;
|
|
2921
2921
|
},
|
|
2922
|
-
...
|
|
2922
|
+
...At({
|
|
2923
2923
|
initialStatus: e,
|
|
2924
2924
|
openedAfter: (r) => t == null ? (r(), () => {
|
|
2925
2925
|
}) : Ze(t, r),
|
|
@@ -2930,7 +2930,7 @@ function ge({
|
|
|
2930
2930
|
}
|
|
2931
2931
|
function De(e, n) {
|
|
2932
2932
|
return a.class(
|
|
2933
|
-
|
|
2933
|
+
$(
|
|
2934
2934
|
e,
|
|
2935
2935
|
n
|
|
2936
2936
|
)((t, r) => `bu-toggle--animated bu-toggle--${t} bu-toggle--${r}`)
|
|
@@ -3017,13 +3017,13 @@ function Ke(e, n) {
|
|
|
3017
3017
|
};
|
|
3018
3018
|
return t.xs < t.zero && (t.xs = t.zero), t.sm < t.xs && (t.sm = t.xs), t.md < t.sm && (t.md = t.sm), t.lg < t.md && (t.lg = t.md), t.xl < t.lg && (t.xl = t.lg), t;
|
|
3019
3019
|
}
|
|
3020
|
-
function
|
|
3020
|
+
function Te(e) {
|
|
3021
3021
|
e = e.filter((n) => n.some((t) => t != null && !t.startsWith("?")));
|
|
3022
3022
|
for (let n = 0; n < e[0].length; n++)
|
|
3023
3023
|
e.every((t) => t[n] == null || t[n].startsWith("?")) && (e = e.map((t) => t.filter((r, o) => o !== n)), n--);
|
|
3024
3024
|
return e = e.map((n) => n.map((t) => t != null && t.startsWith("?") ? t.slice(1) : t)), e;
|
|
3025
3025
|
}
|
|
3026
|
-
function
|
|
3026
|
+
function mr({
|
|
3027
3027
|
smallBreakpoint: e,
|
|
3028
3028
|
mediumBreakpoint: n,
|
|
3029
3029
|
vertical: t,
|
|
@@ -3045,7 +3045,7 @@ function fr({
|
|
|
3045
3045
|
const h = [];
|
|
3046
3046
|
return r.banner && (h.push(r.banner[c] + "px"), i[0][1] = "banner"), (r.header || t.menu || t.aside) && (h.push(
|
|
3047
3047
|
(((b = r.header) == null ? void 0 : b[c]) ?? ne.header[c]) + "px"
|
|
3048
|
-
), i[1][1] = "header"), r.mainHeader && (h.push(r.mainHeader[c] + "px"), i[2][1] = "mainHeader"), h.push("1fr"), i[3][1] = "main", r.mainFooter && (h.push(r.mainFooter[c] + "px"), i[4][1] = "mainFooter"), r.footer && (h.push(r.footer[c] + "px"), i[5][1] = "footer"), i =
|
|
3048
|
+
), i[1][1] = "header"), r.mainHeader && (h.push(r.mainHeader[c] + "px"), i[2][1] = "mainHeader"), h.push("1fr"), i[3][1] = "main", r.mainFooter && (h.push(r.mainFooter[c] + "px"), i[4][1] = "mainFooter"), r.footer && (h.push(r.footer[c] + "px"), i[5][1] = "footer"), i = Te(i), {
|
|
3049
3049
|
columns: d.join(" "),
|
|
3050
3050
|
rows: h.join(" "),
|
|
3051
3051
|
areas: i.map((v) => `"${v.join(" ")}"`).join(`
|
|
@@ -3071,7 +3071,7 @@ function fr({
|
|
|
3071
3071
|
const h = [];
|
|
3072
3072
|
return r.banner && (h.push(r.banner[c] + "px"), i[0][0] = "?banner", i[0][1] = "banner"), (r.header || t.aside) && (h.push(
|
|
3073
3073
|
(((b = r.header) == null ? void 0 : b[c]) ?? ne.header[c]) + "px"
|
|
3074
|
-
), i[1][0] = "?header", i[1][1] = "header"), r.mainHeader && (h.push(r.mainHeader[c] + "px"), i[2][1] = "mainHeader"), h.push("1fr"), i[3][1] = "main", r.mainFooter && (h.push(r.mainFooter[c] + "px"), i[4][1] = "mainFooter"), r.footer && (h.push(r.footer[c] + "px"), i[5][0] = "?footer", i[5][1] = "footer"), i =
|
|
3074
|
+
), i[1][0] = "?header", i[1][1] = "header"), r.mainHeader && (h.push(r.mainHeader[c] + "px"), i[2][1] = "mainHeader"), h.push("1fr"), i[3][1] = "main", r.mainFooter && (h.push(r.mainFooter[c] + "px"), i[4][1] = "mainFooter"), r.footer && (h.push(r.footer[c] + "px"), i[5][0] = "?footer", i[5][1] = "footer"), i = Te(i), {
|
|
3075
3075
|
columns: d.join(" "),
|
|
3076
3076
|
rows: h.join(" "),
|
|
3077
3077
|
areas: i.map((v) => `"${v.join(" ")}"`).join(`
|
|
@@ -3094,7 +3094,7 @@ function fr({
|
|
|
3094
3094
|
const d = [];
|
|
3095
3095
|
t.menu && (d.push(t.menu[c] + "px"), i[2][0] = "?menu", i[3][0] = "menu", i[4][0] = "?menu"), d.push("1fr"), t.aside && (d.push(t.aside[c] + "px"), i[2][2] = "?aside", i[3][2] = "aside", i[4][2] = "?aside");
|
|
3096
3096
|
const h = [];
|
|
3097
|
-
return r.banner && (h.push(r.banner[c] + "px"), i[0][0] = "?banner", i[0][1] = "banner", i[0][2] = "?banner"), r.header && (h.push(r.header[c] + "px"), i[1][0] = "?header", i[1][1] = "header", i[1][2] = "?header"), r.mainHeader && (h.push(r.mainHeader[c] + "px"), i[2][1] = "mainHeader"), h.push("1fr"), i[3][1] = "main", r.mainFooter && (h.push(r.mainFooter[c] + "px"), i[4][1] = "mainFooter"), r.footer && (h.push(r.footer[c] + "px"), i[5][0] = "?footer", i[5][1] = "footer", i[5][2] = "?footer"), i =
|
|
3097
|
+
return r.banner && (h.push(r.banner[c] + "px"), i[0][0] = "?banner", i[0][1] = "banner", i[0][2] = "?banner"), r.header && (h.push(r.header[c] + "px"), i[1][0] = "?header", i[1][1] = "header", i[1][2] = "?header"), r.mainHeader && (h.push(r.mainHeader[c] + "px"), i[2][1] = "mainHeader"), h.push("1fr"), i[3][1] = "main", r.mainFooter && (h.push(r.mainFooter[c] + "px"), i[4][1] = "mainFooter"), r.footer && (h.push(r.footer[c] + "px"), i[5][0] = "?footer", i[5][1] = "footer", i[5][2] = "?footer"), i = Te(i), {
|
|
3098
3098
|
columns: d.join(" "),
|
|
3099
3099
|
rows: h.join(" "),
|
|
3100
3100
|
areas: i.map((b) => `"${b.join(" ")}"`).join(`
|
|
@@ -3110,33 +3110,33 @@ function fr({
|
|
|
3110
3110
|
breakpoint: i
|
|
3111
3111
|
}) => o(`<=${e}`, c) ? l(i) : o(`<=${n}`, c) ? s(i) : u(i);
|
|
3112
3112
|
}
|
|
3113
|
-
const
|
|
3113
|
+
const kr = ["menu", "aside"], xr = [
|
|
3114
3114
|
"banner",
|
|
3115
3115
|
"header",
|
|
3116
3116
|
"mainHeader",
|
|
3117
3117
|
"mainFooter",
|
|
3118
3118
|
"footer"
|
|
3119
3119
|
];
|
|
3120
|
-
function
|
|
3120
|
+
function vr(e, { displayMenu: n }, t) {
|
|
3121
3121
|
return e ? n ? "block" : t ? "float" : "none" : "none";
|
|
3122
3122
|
}
|
|
3123
|
-
function
|
|
3123
|
+
function yr(e, { displayAside: n }, t) {
|
|
3124
3124
|
return e ? n ? "block" : t ? "float" : "none" : "none";
|
|
3125
3125
|
}
|
|
3126
|
-
function
|
|
3126
|
+
function Mo({
|
|
3127
3127
|
smallBreakpoint: e = "sm",
|
|
3128
3128
|
mediumBreakpoint: n = "md",
|
|
3129
3129
|
...t
|
|
3130
3130
|
}) {
|
|
3131
3131
|
const r = Object.fromEntries(
|
|
3132
|
-
|
|
3132
|
+
kr.filter((l) => t[l]).map(
|
|
3133
3133
|
(l) => [
|
|
3134
3134
|
l,
|
|
3135
3135
|
Ke(t[l].width ?? {}, ne[l])
|
|
3136
3136
|
]
|
|
3137
3137
|
)
|
|
3138
3138
|
), o = Object.fromEntries(
|
|
3139
|
-
|
|
3139
|
+
xr.filter((l) => t[l]).map(
|
|
3140
3140
|
(l) => [
|
|
3141
3141
|
l,
|
|
3142
3142
|
Ke(t[l].height ?? {}, ne[l])
|
|
@@ -3144,31 +3144,31 @@ function Fo({
|
|
|
3144
3144
|
)
|
|
3145
3145
|
);
|
|
3146
3146
|
return gr(({ value: l, is: s }) => {
|
|
3147
|
-
var
|
|
3148
|
-
const u =
|
|
3147
|
+
var g, V, z, H, E, O, T, J, P, ee;
|
|
3148
|
+
const u = mr({
|
|
3149
3149
|
smallBreakpoint: e,
|
|
3150
3150
|
mediumBreakpoint: n,
|
|
3151
3151
|
vertical: r,
|
|
3152
3152
|
horizontal: o,
|
|
3153
3153
|
is: s
|
|
3154
|
-
}), c = l.map(u), i = o.header != null || r.menu != null || r.aside != null, d =
|
|
3154
|
+
}), c = l.map(u), i = o.header != null || r.menu != null || r.aside != null, d = $(
|
|
3155
3155
|
r.aside != null,
|
|
3156
3156
|
c
|
|
3157
|
-
)((k, { displayAside: _ }) => k && !_), h =
|
|
3157
|
+
)((k, { displayAside: _ }) => k && !_), h = $(
|
|
3158
3158
|
r.menu != null,
|
|
3159
3159
|
c
|
|
3160
|
-
)((k, { displayMenu: _ }) => k && !_),
|
|
3160
|
+
)((k, { displayMenu: _ }) => k && !_), f = fe(), b = fe(), v = q(0), C = $(
|
|
3161
3161
|
r.menu != null,
|
|
3162
3162
|
c,
|
|
3163
|
-
|
|
3164
|
-
)(
|
|
3163
|
+
f.display
|
|
3164
|
+
)(vr), S = $(
|
|
3165
3165
|
r.aside != null,
|
|
3166
3166
|
c,
|
|
3167
3167
|
b.display
|
|
3168
|
-
)(
|
|
3168
|
+
)(yr);
|
|
3169
3169
|
return p.div(
|
|
3170
3170
|
N(() => {
|
|
3171
|
-
v.dispose(),
|
|
3171
|
+
v.dispose(), f.dispose(), b.dispose();
|
|
3172
3172
|
}),
|
|
3173
3173
|
x.height("100%"),
|
|
3174
3174
|
x.display("grid"),
|
|
@@ -3193,7 +3193,7 @@ function Fo({
|
|
|
3193
3193
|
a.class(
|
|
3194
3194
|
te(
|
|
3195
3195
|
"bottom",
|
|
3196
|
-
((
|
|
3196
|
+
((g = t.header) == null ? void 0 : g.color) ?? "white",
|
|
3197
3197
|
((V = t.header) == null ? void 0 : V.shadow) ?? "none"
|
|
3198
3198
|
)
|
|
3199
3199
|
),
|
|
@@ -3214,14 +3214,14 @@ function Fo({
|
|
|
3214
3214
|
x.width("60px"),
|
|
3215
3215
|
be(
|
|
3216
3216
|
{
|
|
3217
|
-
onClick: () =>
|
|
3217
|
+
onClick: () => f.toggle(),
|
|
3218
3218
|
variant: "light",
|
|
3219
3219
|
color: "base"
|
|
3220
3220
|
},
|
|
3221
3221
|
// TODO translation
|
|
3222
3222
|
A.label("Open menu"),
|
|
3223
3223
|
K({
|
|
3224
|
-
icon:
|
|
3224
|
+
icon: f.display.map(
|
|
3225
3225
|
(k) => k ? "line-md/menu-to-close-alt-transition" : "line-md/close-to-menu-alt-transition"
|
|
3226
3226
|
)
|
|
3227
3227
|
})
|
|
@@ -3230,7 +3230,7 @@ function Fo({
|
|
|
3230
3230
|
p.div(
|
|
3231
3231
|
x.height("100%"),
|
|
3232
3232
|
x.flexGrow("1"),
|
|
3233
|
-
(
|
|
3233
|
+
(z = t.header) == null ? void 0 : z.content
|
|
3234
3234
|
),
|
|
3235
3235
|
p.div(
|
|
3236
3236
|
x.alignItems("center"),
|
|
@@ -3263,16 +3263,16 @@ function Fo({
|
|
|
3263
3263
|
)
|
|
3264
3264
|
),
|
|
3265
3265
|
t.menu ? p.nav(
|
|
3266
|
-
F((k) =>
|
|
3266
|
+
F((k) => f.setElement(k)),
|
|
3267
3267
|
a.class("bu-z-10"),
|
|
3268
3268
|
// Add ARIA attributes for navigation landmark
|
|
3269
3269
|
// TODO translation
|
|
3270
3270
|
A.label("Main navigation"),
|
|
3271
3271
|
a.role("navigation"),
|
|
3272
3272
|
a.class(
|
|
3273
|
-
|
|
3273
|
+
C.map(
|
|
3274
3274
|
(k) => {
|
|
3275
|
-
var _, he, ce,
|
|
3275
|
+
var _, he, ce, ge;
|
|
3276
3276
|
return k === "float" ? te(
|
|
3277
3277
|
"right",
|
|
3278
3278
|
((_ = t.menu) == null ? void 0 : _.color) ?? "white",
|
|
@@ -3280,7 +3280,7 @@ function Fo({
|
|
|
3280
3280
|
) : te(
|
|
3281
3281
|
"right",
|
|
3282
3282
|
((ce = t.menu) == null ? void 0 : ce.color) ?? "white",
|
|
3283
|
-
((
|
|
3283
|
+
((ge = t.menu) == null ? void 0 : ge.shadow) ?? "none"
|
|
3284
3284
|
);
|
|
3285
3285
|
}
|
|
3286
3286
|
)
|
|
@@ -3288,23 +3288,23 @@ function Fo({
|
|
|
3288
3288
|
x.height("100%"),
|
|
3289
3289
|
x.gridArea("menu"),
|
|
3290
3290
|
x.display(
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3291
|
+
$(
|
|
3292
|
+
C,
|
|
3293
|
+
f.status
|
|
3294
3294
|
)((k, _) => k === "none" && _ === "closed" ? "none" : "block")
|
|
3295
3295
|
),
|
|
3296
3296
|
x.position(
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3297
|
+
$(
|
|
3298
|
+
C,
|
|
3299
|
+
f.status
|
|
3300
3300
|
)((k, _) => k === "float" || k === "none" && _ !== "closed" ? "fixed" : "initial")
|
|
3301
3301
|
),
|
|
3302
3302
|
x.top(v.map((k) => `${k}px`)),
|
|
3303
3303
|
De(
|
|
3304
3304
|
"slide-right",
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3305
|
+
$(
|
|
3306
|
+
C,
|
|
3307
|
+
f.status
|
|
3308
3308
|
)((k, _) => k === "block" ? "opened" : _)
|
|
3309
3309
|
),
|
|
3310
3310
|
x.width(c.$.menuWidth),
|
|
@@ -3342,7 +3342,7 @@ function Fo({
|
|
|
3342
3342
|
a.class(
|
|
3343
3343
|
te(
|
|
3344
3344
|
"none",
|
|
3345
|
-
((
|
|
3345
|
+
((P = t.mainFooter) == null ? void 0 : P.color) ?? "white",
|
|
3346
3346
|
((ee = t.mainFooter) == null ? void 0 : ee.shadow) ?? "none"
|
|
3347
3347
|
)
|
|
3348
3348
|
),
|
|
@@ -3365,13 +3365,13 @@ function Fo({
|
|
|
3365
3365
|
x.height("100%"),
|
|
3366
3366
|
x.gridArea("aside"),
|
|
3367
3367
|
x.display(
|
|
3368
|
-
|
|
3368
|
+
$(
|
|
3369
3369
|
S,
|
|
3370
3370
|
b.status
|
|
3371
3371
|
)((k, _) => k === "none" && _ === "closed" ? "none" : "block")
|
|
3372
3372
|
),
|
|
3373
3373
|
x.position(
|
|
3374
|
-
|
|
3374
|
+
$(
|
|
3375
3375
|
S,
|
|
3376
3376
|
b.status
|
|
3377
3377
|
)((k, _) => k === "float" || k === "none" && _ !== "closed" ? "fixed" : "initial")
|
|
@@ -3379,7 +3379,7 @@ function Fo({
|
|
|
3379
3379
|
x.top(v.map((k) => `${k}px`)),
|
|
3380
3380
|
De(
|
|
3381
3381
|
"slide-left",
|
|
3382
|
-
|
|
3382
|
+
$(
|
|
3383
3383
|
S,
|
|
3384
3384
|
b.status
|
|
3385
3385
|
)((k, _) => k === "block" ? "opened" : _)
|
|
@@ -3397,19 +3397,19 @@ function Fo({
|
|
|
3397
3397
|
);
|
|
3398
3398
|
});
|
|
3399
3399
|
}
|
|
3400
|
-
function
|
|
3400
|
+
function wr(e, n, t) {
|
|
3401
3401
|
const r = ["bc-card"];
|
|
3402
3402
|
return e !== "default" && r.push(`bc-card--${e}`), n !== "md" && r.push(`bc-card--padding-${n}`), t !== "lg" && r.push(`bc-card--rounded-${t}`), r.join(" ");
|
|
3403
3403
|
}
|
|
3404
|
-
function
|
|
3404
|
+
function Wo({ variant: e = "default", size: n = "md", roundedness: t = "lg" } = {}, ...r) {
|
|
3405
3405
|
return p.div(
|
|
3406
3406
|
a.class(
|
|
3407
|
-
|
|
3407
|
+
$(
|
|
3408
3408
|
e,
|
|
3409
3409
|
n,
|
|
3410
3410
|
t
|
|
3411
3411
|
)(
|
|
3412
|
-
(o, l, s) =>
|
|
3412
|
+
(o, l, s) => wr(
|
|
3413
3413
|
o ?? "default",
|
|
3414
3414
|
l ?? "md",
|
|
3415
3415
|
s ?? "lg"
|
|
@@ -3419,23 +3419,23 @@ function Ho({ variant: e = "default", size: n = "md", roundedness: t = "lg" } =
|
|
|
3419
3419
|
...r
|
|
3420
3420
|
);
|
|
3421
3421
|
}
|
|
3422
|
-
function
|
|
3422
|
+
function qo(...e) {
|
|
3423
3423
|
return p.div(
|
|
3424
3424
|
a.class("bc-center-h"),
|
|
3425
3425
|
p.div(a.class("bc-center__content"), ...e)
|
|
3426
3426
|
);
|
|
3427
3427
|
}
|
|
3428
|
-
function
|
|
3428
|
+
function $r(e) {
|
|
3429
3429
|
const n = ["bc-center"];
|
|
3430
3430
|
return e !== "lg" && n.push(`bc-center--gap-${e}`), n.join(" ");
|
|
3431
3431
|
}
|
|
3432
|
-
function
|
|
3432
|
+
function No({ gap: e = "lg" } = {}, ...n) {
|
|
3433
3433
|
return p.div(
|
|
3434
|
-
a.class(
|
|
3434
|
+
a.class($(e)((t) => $r(t ?? "lg"))),
|
|
3435
3435
|
...n
|
|
3436
3436
|
);
|
|
3437
3437
|
}
|
|
3438
|
-
function
|
|
3438
|
+
function Ro(e, n = 0, t = () => !0) {
|
|
3439
3439
|
let r = null, o;
|
|
3440
3440
|
const l = q(e.value);
|
|
3441
3441
|
return e.on((s) => {
|
|
@@ -3446,7 +3446,7 @@ function Wo(e, n = 0, t = () => !0) {
|
|
|
3446
3446
|
r != null && clearTimeout(r);
|
|
3447
3447
|
}), l;
|
|
3448
3448
|
}
|
|
3449
|
-
const
|
|
3449
|
+
const Cr = [
|
|
3450
3450
|
"a[href]",
|
|
3451
3451
|
"button:not([disabled])",
|
|
3452
3452
|
"input:not([disabled])",
|
|
@@ -3459,8 +3459,8 @@ const $r = [
|
|
|
3459
3459
|
"details > summary:first-of-type",
|
|
3460
3460
|
"details[open]"
|
|
3461
3461
|
].join(", ");
|
|
3462
|
-
function
|
|
3463
|
-
return Array.from(e.querySelectorAll(
|
|
3462
|
+
function Sr(e) {
|
|
3463
|
+
return Array.from(e.querySelectorAll(Cr)).filter(
|
|
3464
3464
|
(n) => {
|
|
3465
3465
|
const t = n;
|
|
3466
3466
|
return t.offsetWidth > 0 && t.offsetHeight > 0 && !t.hasAttribute("inert") && window.getComputedStyle(t).visibility !== "hidden";
|
|
@@ -3480,64 +3480,64 @@ function $e(e = {}) {
|
|
|
3480
3480
|
return F((c) => {
|
|
3481
3481
|
let i = n, d = null, h = [];
|
|
3482
3482
|
typeof document < "u" && (d = document.activeElement);
|
|
3483
|
-
const
|
|
3484
|
-
h =
|
|
3485
|
-
}, b = (
|
|
3486
|
-
var V,
|
|
3483
|
+
const f = () => {
|
|
3484
|
+
h = Sr(c);
|
|
3485
|
+
}, b = (g) => {
|
|
3486
|
+
var V, z;
|
|
3487
3487
|
if (i) {
|
|
3488
|
-
if (t &&
|
|
3489
|
-
|
|
3488
|
+
if (t && g.key === "Escape") {
|
|
3489
|
+
g.preventDefault(), r == null || r();
|
|
3490
3490
|
return;
|
|
3491
3491
|
}
|
|
3492
|
-
if (
|
|
3493
|
-
if (
|
|
3494
|
-
|
|
3492
|
+
if (g.key === "Tab") {
|
|
3493
|
+
if (f(), h.length === 0) {
|
|
3494
|
+
g.preventDefault();
|
|
3495
3495
|
return;
|
|
3496
3496
|
}
|
|
3497
3497
|
const H = h.indexOf(
|
|
3498
3498
|
document.activeElement
|
|
3499
3499
|
);
|
|
3500
|
-
|
|
3500
|
+
g.shiftKey ? H <= 0 && (g.preventDefault(), (V = h[h.length - 1]) == null || V.focus()) : H >= h.length - 1 && (g.preventDefault(), (z = h[0]) == null || z.focus());
|
|
3501
3501
|
}
|
|
3502
3502
|
}
|
|
3503
|
-
}, v = (
|
|
3503
|
+
}, v = (g) => {
|
|
3504
3504
|
if (!i || !s) return;
|
|
3505
|
-
const V =
|
|
3505
|
+
const V = g.target;
|
|
3506
3506
|
c.contains(V) || u == null || u();
|
|
3507
|
-
},
|
|
3507
|
+
}, C = () => {
|
|
3508
3508
|
if (!i) return;
|
|
3509
|
-
|
|
3510
|
-
let
|
|
3511
|
-
typeof o == "function" ?
|
|
3512
|
-
|
|
3509
|
+
f();
|
|
3510
|
+
let g = null;
|
|
3511
|
+
typeof o == "function" ? g = o() : o ? g = o : h.length > 0 && (g = h[0]), g && setTimeout(() => {
|
|
3512
|
+
g == null || g.focus();
|
|
3513
3513
|
}, 50), document.addEventListener("keydown", b, !0), s && document.addEventListener("click", v, !0);
|
|
3514
3514
|
}, S = () => {
|
|
3515
3515
|
i = !1, document.removeEventListener("keydown", b, !0), document.removeEventListener("click", v, !0);
|
|
3516
|
-
let
|
|
3517
|
-
typeof l == "function" ?
|
|
3518
|
-
|
|
3516
|
+
let g = null;
|
|
3517
|
+
typeof l == "function" ? g = l() : l ? g = l : d && (g = d), g && document.body.contains(g) && setTimeout(() => {
|
|
3518
|
+
g == null || g.focus();
|
|
3519
3519
|
}, 0);
|
|
3520
3520
|
};
|
|
3521
|
-
return setTimeout(() =>
|
|
3521
|
+
return setTimeout(() => C(), 0), N(() => {
|
|
3522
3522
|
S();
|
|
3523
3523
|
});
|
|
3524
3524
|
});
|
|
3525
3525
|
}
|
|
3526
|
-
function
|
|
3526
|
+
function Uo(e = {}) {
|
|
3527
3527
|
return {
|
|
3528
3528
|
activate: () => $e({ ...e, active: !0 }),
|
|
3529
3529
|
deactivate: () => $e({ ...e, active: !1 })
|
|
3530
3530
|
};
|
|
3531
3531
|
}
|
|
3532
|
-
function
|
|
3532
|
+
function Er({ open: e }, ...n) {
|
|
3533
3533
|
return F((t) => {
|
|
3534
|
-
const { status: r, setOpen: o, dispose: l } =
|
|
3534
|
+
const { status: r, setOpen: o, dispose: l } = fe({
|
|
3535
3535
|
initialStatus: w.get(e) ? "opened" : "closed",
|
|
3536
3536
|
element: t
|
|
3537
3537
|
});
|
|
3538
3538
|
return w.on(e, o), xe((s) => {
|
|
3539
3539
|
const u = q(null);
|
|
3540
|
-
return
|
|
3540
|
+
return $(
|
|
3541
3541
|
r,
|
|
3542
3542
|
s.$.height
|
|
3543
3543
|
)((i, d) => i === "opened" && d > 0 ? d : null).on((i) => {
|
|
@@ -3546,10 +3546,10 @@ function Sr({ open: e }, ...n) {
|
|
|
3546
3546
|
if (t && i === "start-opening") {
|
|
3547
3547
|
const d = t.style.height, h = t.style.transition;
|
|
3548
3548
|
t.style.transition = "none", t.style.height = "auto", t.offsetHeight;
|
|
3549
|
-
const
|
|
3550
|
-
|
|
3549
|
+
const f = t.scrollHeight;
|
|
3550
|
+
f > 0 && u.set(f), t.style.height = d, t.style.transition = h, t.offsetHeight;
|
|
3551
3551
|
}
|
|
3552
|
-
}),
|
|
3552
|
+
}), L(
|
|
3553
3553
|
N(l),
|
|
3554
3554
|
N(u.dispose),
|
|
3555
3555
|
a.style(
|
|
@@ -3561,7 +3561,7 @@ function Sr({ open: e }, ...n) {
|
|
|
3561
3561
|
});
|
|
3562
3562
|
});
|
|
3563
3563
|
}
|
|
3564
|
-
function
|
|
3564
|
+
function zo(...e) {
|
|
3565
3565
|
return p.div(a.class("bc-group"), ...e);
|
|
3566
3566
|
}
|
|
3567
3567
|
function Xe({
|
|
@@ -3578,7 +3578,7 @@ function Xe({
|
|
|
3578
3578
|
return p.div(
|
|
3579
3579
|
a.class("bc-scrollable-panel"),
|
|
3580
3580
|
a.class(
|
|
3581
|
-
|
|
3581
|
+
$(
|
|
3582
3582
|
o,
|
|
3583
3583
|
r
|
|
3584
3584
|
)((u, c) => {
|
|
@@ -3612,19 +3612,19 @@ function Xe({
|
|
|
3612
3612
|
n && p.div(a.class("bc-scrollable-panel__footer"), n)
|
|
3613
3613
|
);
|
|
3614
3614
|
}
|
|
3615
|
-
function
|
|
3615
|
+
function _r(e, n, t) {
|
|
3616
3616
|
const r = ["bc-sink"];
|
|
3617
3617
|
return e !== "default" && r.push(`bc-sink--${e}`), n !== "md" && r.push(`bc-sink--padding-${n}`), t !== "lg" && r.push(`bc-sink--rounded-${t}`), r.join(" ");
|
|
3618
3618
|
}
|
|
3619
|
-
function
|
|
3619
|
+
function Go({ variant: e = "default", size: n = "md", roundedness: t = "lg" } = {}, ...r) {
|
|
3620
3620
|
return p.div(
|
|
3621
3621
|
a.class(
|
|
3622
|
-
|
|
3622
|
+
$(
|
|
3623
3623
|
e,
|
|
3624
3624
|
n,
|
|
3625
3625
|
t
|
|
3626
3626
|
)(
|
|
3627
|
-
(o, l, s) =>
|
|
3627
|
+
(o, l, s) => _r(
|
|
3628
3628
|
o ?? "default",
|
|
3629
3629
|
l ?? "md",
|
|
3630
3630
|
s ?? "lg"
|
|
@@ -3634,13 +3634,13 @@ function Ro({ variant: e = "default", size: n = "md", roundedness: t = "lg" } =
|
|
|
3634
3634
|
...r
|
|
3635
3635
|
);
|
|
3636
3636
|
}
|
|
3637
|
-
function
|
|
3637
|
+
function Zo(...e) {
|
|
3638
3638
|
return p.div(a.class("bc-stack"), ...e);
|
|
3639
3639
|
}
|
|
3640
|
-
function
|
|
3640
|
+
function Ar(e) {
|
|
3641
3641
|
return e.startsWith("top") ? "flyout-top" : e.startsWith("bottom") ? "flyout-bottom" : e.startsWith("left") ? "flyout-left" : e.startsWith("right") ? "flyout-right" : "scale-fade";
|
|
3642
3642
|
}
|
|
3643
|
-
function
|
|
3643
|
+
function Tr(e) {
|
|
3644
3644
|
const {
|
|
3645
3645
|
content: n,
|
|
3646
3646
|
placement: t = "top",
|
|
@@ -3653,25 +3653,25 @@ function Ar(e) {
|
|
|
3653
3653
|
arrow: i,
|
|
3654
3654
|
role: d
|
|
3655
3655
|
} = e;
|
|
3656
|
-
return
|
|
3657
|
-
const b =
|
|
3656
|
+
return Zt((h, f) => {
|
|
3657
|
+
const b = fe({
|
|
3658
3658
|
initialStatus: "closed"
|
|
3659
3659
|
}), v = se("flyout");
|
|
3660
|
-
let
|
|
3661
|
-
function
|
|
3662
|
-
E != null && (clearTimeout(E), E = null), T != null && (clearTimeout(T), T = null),
|
|
3660
|
+
let C = null, S = null, g = null, V = !1;
|
|
3661
|
+
function z() {
|
|
3662
|
+
E != null && (clearTimeout(E), E = null), T != null && (clearTimeout(T), T = null), g && (g(), g = null), S && (S(), S = null), C && (document.removeEventListener("keydown", C), C = null), V = !1;
|
|
3663
3663
|
}
|
|
3664
3664
|
function H() {
|
|
3665
|
-
w.get(c) && (
|
|
3666
|
-
|
|
3667
|
-
}, document.addEventListener("keydown",
|
|
3665
|
+
w.get(c) && (C = (P) => {
|
|
3666
|
+
P.key === "Escape" && J();
|
|
3667
|
+
}, document.addEventListener("keydown", C)), V = !0, h({
|
|
3668
3668
|
placement: t ?? "top",
|
|
3669
3669
|
mainAxisOffset: l,
|
|
3670
3670
|
crossAxisOffset: s,
|
|
3671
3671
|
arrow: i,
|
|
3672
|
-
content: F((
|
|
3673
|
-
b.setElement(
|
|
3674
|
-
b.open(),
|
|
3672
|
+
content: F((P) => {
|
|
3673
|
+
b.setElement(P), g = le(() => {
|
|
3674
|
+
b.open(), g = null;
|
|
3675
3675
|
});
|
|
3676
3676
|
const ee = (k) => {
|
|
3677
3677
|
if (w.get(c) && k.key === "Escape") {
|
|
@@ -3682,16 +3682,16 @@ function Ar(e) {
|
|
|
3682
3682
|
_ && _.setAttribute("aria-expanded", "false");
|
|
3683
3683
|
}
|
|
3684
3684
|
};
|
|
3685
|
-
return document.addEventListener("keydown", ee, !0),
|
|
3685
|
+
return document.addEventListener("keydown", ee, !0), L(
|
|
3686
3686
|
N(() => {
|
|
3687
|
-
|
|
3687
|
+
z(), document.removeEventListener("keydown", ee, !0);
|
|
3688
3688
|
}),
|
|
3689
3689
|
a.class("bc-flyout"),
|
|
3690
3690
|
a.id(v),
|
|
3691
3691
|
a.tabindex(-1),
|
|
3692
3692
|
// Make focusable for screen readers
|
|
3693
3693
|
De(
|
|
3694
|
-
w.map(t,
|
|
3694
|
+
w.map(t, Ar),
|
|
3695
3695
|
b.status
|
|
3696
3696
|
),
|
|
3697
3697
|
d ? a.role(d) : a.role("dialog"),
|
|
@@ -3709,27 +3709,27 @@ function Ar(e) {
|
|
|
3709
3709
|
b.open();
|
|
3710
3710
|
return;
|
|
3711
3711
|
}
|
|
3712
|
-
const
|
|
3712
|
+
const P = w.get(r);
|
|
3713
3713
|
E = setTimeout(() => {
|
|
3714
3714
|
E = null, H();
|
|
3715
|
-
},
|
|
3715
|
+
}, P);
|
|
3716
3716
|
}
|
|
3717
3717
|
let T = null;
|
|
3718
3718
|
function J() {
|
|
3719
|
-
if (E != null && (clearTimeout(E), E = null), T != null && (clearTimeout(T), T = null),
|
|
3720
|
-
|
|
3719
|
+
if (E != null && (clearTimeout(E), E = null), T != null && (clearTimeout(T), T = null), g && (g(), g = null, V)) {
|
|
3720
|
+
f(), z();
|
|
3721
3721
|
return;
|
|
3722
3722
|
}
|
|
3723
|
-
const
|
|
3723
|
+
const P = w.get(o);
|
|
3724
3724
|
T = setTimeout(() => {
|
|
3725
3725
|
T = null, S && (S(), S = null), b.close(), S = b.onClosed(() => {
|
|
3726
|
-
|
|
3726
|
+
f(), z();
|
|
3727
3727
|
});
|
|
3728
|
-
},
|
|
3728
|
+
}, P);
|
|
3729
3729
|
}
|
|
3730
|
-
return F((
|
|
3730
|
+
return F((P) => {
|
|
3731
3731
|
const ee = (ce) => {
|
|
3732
|
-
|
|
3732
|
+
P.setAttribute("aria-expanded", ce.toString()), P.setAttribute("aria-controls", v), P.hasAttribute("aria-haspopup") || P.setAttribute("aria-haspopup", "dialog");
|
|
3733
3733
|
};
|
|
3734
3734
|
ee(!1);
|
|
3735
3735
|
const k = () => {
|
|
@@ -3740,37 +3740,37 @@ function Ar(e) {
|
|
|
3740
3740
|
if (typeof u == "function")
|
|
3741
3741
|
return u(k, _);
|
|
3742
3742
|
const he = u;
|
|
3743
|
-
return
|
|
3743
|
+
return L(
|
|
3744
3744
|
N(() => {
|
|
3745
3745
|
b.dispose();
|
|
3746
3746
|
}),
|
|
3747
|
-
|
|
3748
|
-
"hover-focus": () =>
|
|
3747
|
+
Mt(he, {
|
|
3748
|
+
"hover-focus": () => L(
|
|
3749
3749
|
m.mouseenter(() => k()),
|
|
3750
3750
|
m.mouseleave(() => _()),
|
|
3751
3751
|
m.focus(() => k()),
|
|
3752
3752
|
m.blur(() => _())
|
|
3753
3753
|
),
|
|
3754
|
-
hover: () =>
|
|
3754
|
+
hover: () => L(
|
|
3755
3755
|
m.mouseenter(() => k()),
|
|
3756
3756
|
m.mouseleave(() => _())
|
|
3757
3757
|
),
|
|
3758
|
-
focus: () =>
|
|
3758
|
+
focus: () => L(
|
|
3759
3759
|
m.focus(() => k()),
|
|
3760
3760
|
m.blur(() => _())
|
|
3761
3761
|
),
|
|
3762
3762
|
click: () => {
|
|
3763
3763
|
function ce() {
|
|
3764
|
-
document.removeEventListener("click",
|
|
3764
|
+
document.removeEventListener("click", ge);
|
|
3765
3765
|
}
|
|
3766
|
-
function
|
|
3766
|
+
function ge() {
|
|
3767
3767
|
ce(), _();
|
|
3768
3768
|
}
|
|
3769
|
-
return
|
|
3769
|
+
return L(
|
|
3770
3770
|
N(ce),
|
|
3771
3771
|
m.click(() => {
|
|
3772
3772
|
k(), le(() => {
|
|
3773
|
-
document.addEventListener("click",
|
|
3773
|
+
document.addEventListener("click", ge, {
|
|
3774
3774
|
once: !0
|
|
3775
3775
|
});
|
|
3776
3776
|
});
|
|
@@ -3783,7 +3783,116 @@ function Ar(e) {
|
|
|
3783
3783
|
});
|
|
3784
3784
|
});
|
|
3785
3785
|
}
|
|
3786
|
-
function Ye(
|
|
3786
|
+
function Ye(e, n, t) {
|
|
3787
|
+
const r = ["bc-link"];
|
|
3788
|
+
if (r.push(`bu-text--${n}`), t)
|
|
3789
|
+
r.push("bc-link--disabled");
|
|
3790
|
+
else
|
|
3791
|
+
switch (e) {
|
|
3792
|
+
case "plain":
|
|
3793
|
+
r.push("bc-link--plain");
|
|
3794
|
+
break;
|
|
3795
|
+
case "hover":
|
|
3796
|
+
r.push("bc-link--hover");
|
|
3797
|
+
break;
|
|
3798
|
+
case "default":
|
|
3799
|
+
default:
|
|
3800
|
+
r.push("bc-link--default");
|
|
3801
|
+
break;
|
|
3802
|
+
}
|
|
3803
|
+
return r.join(" ");
|
|
3804
|
+
}
|
|
3805
|
+
function Br({
|
|
3806
|
+
href: e,
|
|
3807
|
+
variant: n = "default",
|
|
3808
|
+
color: t = "primary",
|
|
3809
|
+
colorDisabled: r = "base",
|
|
3810
|
+
disabled: o = !1,
|
|
3811
|
+
withViewTransition: l = !0,
|
|
3812
|
+
target: s,
|
|
3813
|
+
rel: u
|
|
3814
|
+
}, ...c) {
|
|
3815
|
+
return G(
|
|
3816
|
+
o,
|
|
3817
|
+
() => p.span(
|
|
3818
|
+
a.class(
|
|
3819
|
+
$(
|
|
3820
|
+
n,
|
|
3821
|
+
r,
|
|
3822
|
+
o
|
|
3823
|
+
)(
|
|
3824
|
+
(i, d, h) => Ye(i, d, h)
|
|
3825
|
+
)
|
|
3826
|
+
),
|
|
3827
|
+
...c
|
|
3828
|
+
),
|
|
3829
|
+
() => nt(
|
|
3830
|
+
{
|
|
3831
|
+
href: e,
|
|
3832
|
+
withViewTransition: l
|
|
3833
|
+
},
|
|
3834
|
+
a.class(
|
|
3835
|
+
$(
|
|
3836
|
+
n,
|
|
3837
|
+
t,
|
|
3838
|
+
o
|
|
3839
|
+
)(
|
|
3840
|
+
(i, d, h) => Ye(i, d, h)
|
|
3841
|
+
)
|
|
3842
|
+
),
|
|
3843
|
+
s ? a.target(s) : null,
|
|
3844
|
+
u ? a.rel(u) : null,
|
|
3845
|
+
...c
|
|
3846
|
+
)
|
|
3847
|
+
);
|
|
3848
|
+
}
|
|
3849
|
+
function Ir(e, n, t) {
|
|
3850
|
+
const r = Object.keys(e.search).length > 0 ? "?" + new URLSearchParams(e.search).toString() : "", o = e.hash || "";
|
|
3851
|
+
switch (t) {
|
|
3852
|
+
case "exact":
|
|
3853
|
+
return e.pathname + r + o === n;
|
|
3854
|
+
case "prefix":
|
|
3855
|
+
return e.pathname.startsWith(n) || (e.pathname + r).startsWith(n);
|
|
3856
|
+
case "params":
|
|
3857
|
+
try {
|
|
3858
|
+
const l = new URL(n, window.location.origin), s = new URLSearchParams(l.search), u = new URLSearchParams(e.search);
|
|
3859
|
+
if (e.pathname !== l.pathname)
|
|
3860
|
+
return !1;
|
|
3861
|
+
const c = Array.from(s.entries()).sort(), i = Array.from(u.entries()).sort();
|
|
3862
|
+
return c.length !== i.length ? !1 : c.every(([d, h], f) => {
|
|
3863
|
+
const [b, v] = i[f];
|
|
3864
|
+
return d === b && h === v;
|
|
3865
|
+
});
|
|
3866
|
+
} catch {
|
|
3867
|
+
return e.pathname === n;
|
|
3868
|
+
}
|
|
3869
|
+
default:
|
|
3870
|
+
return !1;
|
|
3871
|
+
}
|
|
3872
|
+
}
|
|
3873
|
+
function Ko({
|
|
3874
|
+
href: e,
|
|
3875
|
+
matchMode: n = "exact",
|
|
3876
|
+
disableWhenActive: t = !0,
|
|
3877
|
+
...r
|
|
3878
|
+
}, ...o) {
|
|
3879
|
+
return Ce(rt, (l) => {
|
|
3880
|
+
const s = $(
|
|
3881
|
+
l,
|
|
3882
|
+
e,
|
|
3883
|
+
t
|
|
3884
|
+
)((u, c, i) => i ?? !0 ? Ir(u, w.get(c), n) : !1);
|
|
3885
|
+
return Br(
|
|
3886
|
+
{
|
|
3887
|
+
...r,
|
|
3888
|
+
href: e,
|
|
3889
|
+
disabled: s
|
|
3890
|
+
},
|
|
3891
|
+
...o
|
|
3892
|
+
);
|
|
3893
|
+
});
|
|
3894
|
+
}
|
|
3895
|
+
function Qe({ rail: e }, ...n) {
|
|
3787
3896
|
return p.div(
|
|
3788
3897
|
a.class(
|
|
3789
3898
|
w.map(
|
|
@@ -3795,13 +3904,13 @@ function Ye({ rail: e }, ...n) {
|
|
|
3795
3904
|
...n
|
|
3796
3905
|
);
|
|
3797
3906
|
}
|
|
3798
|
-
function
|
|
3799
|
-
return
|
|
3907
|
+
function Lr(e, ...n) {
|
|
3908
|
+
return nt({ href: e.href, withViewTransition: !0 }, ...n);
|
|
3800
3909
|
}
|
|
3801
|
-
function
|
|
3910
|
+
function Dr(...e) {
|
|
3802
3911
|
return p.span(...e);
|
|
3803
3912
|
}
|
|
3804
|
-
function
|
|
3913
|
+
function Or(e, ...n) {
|
|
3805
3914
|
return p.button(
|
|
3806
3915
|
m.click(e.onClick),
|
|
3807
3916
|
// Add ARIA attributes if provided using WithElement for dynamic updates
|
|
@@ -3828,7 +3937,7 @@ function Ir(e, ...n) {
|
|
|
3828
3937
|
...n
|
|
3829
3938
|
);
|
|
3830
3939
|
}
|
|
3831
|
-
function
|
|
3940
|
+
function Vr(e) {
|
|
3832
3941
|
var t;
|
|
3833
3942
|
const n = [a.class("bc-sidebar-link")];
|
|
3834
3943
|
return e.icon != null && n.push(
|
|
@@ -3849,26 +3958,26 @@ function Dr(e) {
|
|
|
3849
3958
|
}),
|
|
3850
3959
|
K({ icon: (t = e.action) == null ? void 0 : t.icon })
|
|
3851
3960
|
)
|
|
3852
|
-
), "onClick" in e ?
|
|
3853
|
-
const o =
|
|
3961
|
+
), "onClick" in e ? Or(e, ...n) : Ce(rt, (r) => {
|
|
3962
|
+
const o = $(
|
|
3854
3963
|
r,
|
|
3855
3964
|
e.href
|
|
3856
3965
|
)(({ pathname: l }, s) => l === s);
|
|
3857
3966
|
return G(
|
|
3858
3967
|
o,
|
|
3859
|
-
() =>
|
|
3860
|
-
() =>
|
|
3968
|
+
() => Dr(...n),
|
|
3969
|
+
() => Lr(e, ...n)
|
|
3861
3970
|
);
|
|
3862
3971
|
});
|
|
3863
3972
|
}
|
|
3864
|
-
function
|
|
3973
|
+
function Xo({
|
|
3865
3974
|
rail: e = !0,
|
|
3866
3975
|
icon: n,
|
|
3867
3976
|
header: t,
|
|
3868
3977
|
startOpen: r = !0
|
|
3869
3978
|
}, ...o) {
|
|
3870
3979
|
const l = w.deriveProp(r), s = se("sidebar-group"), u = `${s}-content`;
|
|
3871
|
-
return
|
|
3980
|
+
return Qe(
|
|
3872
3981
|
{},
|
|
3873
3982
|
a.class("bc-sidebar-group-collapsible"),
|
|
3874
3983
|
a.class(
|
|
@@ -3879,7 +3988,7 @@ function Uo({
|
|
|
3879
3988
|
// Add ARIA attributes for group
|
|
3880
3989
|
a.role("group"),
|
|
3881
3990
|
a.id(s),
|
|
3882
|
-
|
|
3991
|
+
Vr({
|
|
3883
3992
|
icon: n,
|
|
3884
3993
|
onClick: () => l.update((c) => !c),
|
|
3885
3994
|
// Add ARIA attributes for the toggle button
|
|
@@ -3891,15 +4000,15 @@ function Uo({
|
|
|
3891
4000
|
),
|
|
3892
4001
|
content: t
|
|
3893
4002
|
}),
|
|
3894
|
-
|
|
4003
|
+
Qe({ rail: e }, a.id(u), Er({ open: l }, ...o))
|
|
3895
4004
|
);
|
|
3896
4005
|
}
|
|
3897
|
-
function
|
|
4006
|
+
function Yo(e, n) {
|
|
3898
4007
|
return e(() => {
|
|
3899
4008
|
});
|
|
3900
4009
|
}
|
|
3901
|
-
function
|
|
3902
|
-
return
|
|
4010
|
+
function Tt(e) {
|
|
4011
|
+
return Wt((n) => {
|
|
3903
4012
|
const t = [], r = () => t.forEach((l) => l());
|
|
3904
4013
|
return e(({
|
|
3905
4014
|
effect: l = "opaque",
|
|
@@ -3910,24 +4019,24 @@ function Et(e) {
|
|
|
3910
4019
|
container: d = "body"
|
|
3911
4020
|
}) => {
|
|
3912
4021
|
d === "body" && (n = n.makePortal("body"));
|
|
3913
|
-
const h =
|
|
4022
|
+
const h = fe();
|
|
3914
4023
|
h.onClosed(r);
|
|
3915
|
-
let
|
|
4024
|
+
let f = () => {
|
|
3916
4025
|
}, b = () => {
|
|
3917
4026
|
};
|
|
3918
4027
|
const v = (H) => {
|
|
3919
4028
|
H.key === "Escape" && (c == null || c(), h.close());
|
|
3920
|
-
},
|
|
4029
|
+
}, C = () => {
|
|
3921
4030
|
u == null || u(), h.close();
|
|
3922
4031
|
}, S = (H) => {
|
|
3923
|
-
|
|
4032
|
+
f(), b(), H === "capturing" ? (document.addEventListener("keydown", v), f = () => document.removeEventListener("keydown", v), n.element.addEventListener("mousedown", C), b = () => n.element.removeEventListener("mousedown", C)) : (f = () => {
|
|
3924
4033
|
}, b = () => {
|
|
3925
4034
|
});
|
|
3926
|
-
},
|
|
3927
|
-
t.push(
|
|
3928
|
-
|
|
4035
|
+
}, g = w.on(s, S);
|
|
4036
|
+
t.push(g), t.push(() => {
|
|
4037
|
+
f(), b();
|
|
3929
4038
|
});
|
|
3930
|
-
const
|
|
4039
|
+
const z = qt((() => {
|
|
3931
4040
|
var E, O;
|
|
3932
4041
|
const H = /* @__PURE__ */ new Set();
|
|
3933
4042
|
for (const T of n.element.querySelectorAll(
|
|
@@ -3945,7 +4054,7 @@ function Et(e) {
|
|
|
3945
4054
|
ue.status(h.status.map(String)),
|
|
3946
4055
|
ue.overlay("true"),
|
|
3947
4056
|
a.class(
|
|
3948
|
-
|
|
4057
|
+
$(
|
|
3949
4058
|
l ?? "opaque",
|
|
3950
4059
|
s
|
|
3951
4060
|
)(
|
|
@@ -3959,11 +4068,11 @@ function Et(e) {
|
|
|
3959
4068
|
clear: !1,
|
|
3960
4069
|
providers: n.providers
|
|
3961
4070
|
});
|
|
3962
|
-
t.push(
|
|
4071
|
+
t.push(z), le(() => h.open());
|
|
3963
4072
|
}, r);
|
|
3964
4073
|
});
|
|
3965
4074
|
}
|
|
3966
|
-
function
|
|
4075
|
+
function jr(e, n) {
|
|
3967
4076
|
const {
|
|
3968
4077
|
size: t = "md",
|
|
3969
4078
|
dismissable: r = !0,
|
|
@@ -3973,21 +4082,21 @@ function Lr(e, n) {
|
|
|
3973
4082
|
container: u = "body",
|
|
3974
4083
|
position: c = "center"
|
|
3975
4084
|
} = e;
|
|
3976
|
-
return
|
|
4085
|
+
return Tt((i, d) => {
|
|
3977
4086
|
let h = () => {
|
|
3978
4087
|
};
|
|
3979
4088
|
return n((v) => {
|
|
3980
4089
|
h = d;
|
|
3981
|
-
const
|
|
4090
|
+
const C = q("capturing");
|
|
3982
4091
|
w.on(r, (E) => {
|
|
3983
|
-
|
|
4092
|
+
C.set(E ? "capturing" : "non-capturing");
|
|
3984
4093
|
});
|
|
3985
|
-
const S =
|
|
4094
|
+
const S = $(
|
|
3986
4095
|
v.header != null,
|
|
3987
4096
|
o
|
|
3988
|
-
)((E, O) => E || O),
|
|
4097
|
+
)((E, O) => E || O), g = se("modal"), V = `${g}-header`, z = `${g}-body`, H = p.div(
|
|
3989
4098
|
a.class(
|
|
3990
|
-
|
|
4099
|
+
$(
|
|
3991
4100
|
t,
|
|
3992
4101
|
c
|
|
3993
4102
|
)(
|
|
@@ -3998,10 +4107,10 @@ function Lr(e, n) {
|
|
|
3998
4107
|
a.role("dialog"),
|
|
3999
4108
|
A.modal(!0),
|
|
4000
4109
|
...v.header ? [A.labelledby(V)] : [],
|
|
4001
|
-
A.describedby(
|
|
4110
|
+
A.describedby(z),
|
|
4002
4111
|
a.tabindex(-1),
|
|
4003
4112
|
// Make modal focusable for initial focus
|
|
4004
|
-
a.id(
|
|
4113
|
+
a.id(g),
|
|
4005
4114
|
ue.focusTrap("true"),
|
|
4006
4115
|
// Mark as focus trap container
|
|
4007
4116
|
m.mousedown((E) => E.stopPropagation()),
|
|
@@ -4013,7 +4122,7 @@ function Lr(e, n) {
|
|
|
4013
4122
|
w.get(r) && (l == null || l(), d());
|
|
4014
4123
|
},
|
|
4015
4124
|
initialFocus: () => {
|
|
4016
|
-
const E = document.getElementById(
|
|
4125
|
+
const E = document.getElementById(g);
|
|
4017
4126
|
if (!E) return null;
|
|
4018
4127
|
const O = E.querySelector(
|
|
4019
4128
|
'[aria-label="Close modal"]'
|
|
@@ -4055,13 +4164,13 @@ function Lr(e, n) {
|
|
|
4055
4164
|
)
|
|
4056
4165
|
),
|
|
4057
4166
|
// Body section
|
|
4058
|
-
p.div(a.class("bc-modal__body"), a.id(
|
|
4167
|
+
p.div(a.class("bc-modal__body"), a.id(z), v.body),
|
|
4059
4168
|
// Footer section
|
|
4060
4169
|
v.footer && p.div(a.class("bc-modal__footer"), v.footer)
|
|
4061
4170
|
)
|
|
4062
4171
|
);
|
|
4063
4172
|
i({
|
|
4064
|
-
mode:
|
|
4173
|
+
mode: C,
|
|
4065
4174
|
effect: s ?? "opaque",
|
|
4066
4175
|
container: u,
|
|
4067
4176
|
content: H,
|
|
@@ -4077,7 +4186,7 @@ function Lr(e, n) {
|
|
|
4077
4186
|
});
|
|
4078
4187
|
});
|
|
4079
4188
|
}
|
|
4080
|
-
function
|
|
4189
|
+
function Qo(e, n) {
|
|
4081
4190
|
const {
|
|
4082
4191
|
// TODO translation
|
|
4083
4192
|
confirmText: t = "Confirm",
|
|
@@ -4087,7 +4196,7 @@ function Zo(e, n) {
|
|
|
4087
4196
|
onCancel: l,
|
|
4088
4197
|
...s
|
|
4089
4198
|
} = e;
|
|
4090
|
-
return
|
|
4199
|
+
return jr(
|
|
4091
4200
|
{ showCloseButton: !1, ...s },
|
|
4092
4201
|
(u, c) => {
|
|
4093
4202
|
const i = () => {
|
|
@@ -4095,10 +4204,10 @@ function Zo(e, n) {
|
|
|
4095
4204
|
}, d = () => {
|
|
4096
4205
|
l == null || l(), c();
|
|
4097
4206
|
};
|
|
4098
|
-
return n((
|
|
4207
|
+
return n((f) => {
|
|
4099
4208
|
u({
|
|
4100
|
-
body:
|
|
4101
|
-
footer:
|
|
4209
|
+
body: f,
|
|
4210
|
+
footer: L(
|
|
4102
4211
|
a.class("bu-justify-end"),
|
|
4103
4212
|
be(
|
|
4104
4213
|
{
|
|
@@ -4121,8 +4230,8 @@ function Zo(e, n) {
|
|
|
4121
4230
|
}
|
|
4122
4231
|
);
|
|
4123
4232
|
}
|
|
4124
|
-
function
|
|
4125
|
-
return
|
|
4233
|
+
function Jo(e) {
|
|
4234
|
+
return Tt((n, t) => {
|
|
4126
4235
|
let r = t;
|
|
4127
4236
|
const o = () => r();
|
|
4128
4237
|
return e((u) => {
|
|
@@ -4131,23 +4240,23 @@ function Ko(e) {
|
|
|
4131
4240
|
side: i = "right",
|
|
4132
4241
|
dismissable: d = !0,
|
|
4133
4242
|
showCloseButton: h = !0,
|
|
4134
|
-
onClose:
|
|
4243
|
+
onClose: f,
|
|
4135
4244
|
overlayEffect: b = "opaque",
|
|
4136
4245
|
container: v = "body",
|
|
4137
|
-
header:
|
|
4246
|
+
header: C,
|
|
4138
4247
|
body: S,
|
|
4139
|
-
footer:
|
|
4248
|
+
footer: g
|
|
4140
4249
|
} = u;
|
|
4141
4250
|
r = t;
|
|
4142
4251
|
const V = q("capturing");
|
|
4143
4252
|
w.on(d, (E) => {
|
|
4144
4253
|
V.set(E ? "capturing" : "non-capturing");
|
|
4145
4254
|
});
|
|
4146
|
-
const
|
|
4147
|
-
|
|
4255
|
+
const z = $(
|
|
4256
|
+
C != null,
|
|
4148
4257
|
h
|
|
4149
4258
|
)((E, O) => E || O), H = F((E) => {
|
|
4150
|
-
const O =
|
|
4259
|
+
const O = fe({
|
|
4151
4260
|
initialStatus: "closed",
|
|
4152
4261
|
element: E
|
|
4153
4262
|
});
|
|
@@ -4156,10 +4265,10 @@ function Ko(e) {
|
|
|
4156
4265
|
t();
|
|
4157
4266
|
});
|
|
4158
4267
|
}, le(() => O.open());
|
|
4159
|
-
const J = se("drawer"),
|
|
4268
|
+
const J = se("drawer"), P = C != null ? `${J}-header` : void 0, ee = `${J}-body`;
|
|
4160
4269
|
return p.div(
|
|
4161
4270
|
a.class(
|
|
4162
|
-
|
|
4271
|
+
$(
|
|
4163
4272
|
c,
|
|
4164
4273
|
i,
|
|
4165
4274
|
O.status
|
|
@@ -4170,7 +4279,7 @@ function Ko(e) {
|
|
|
4170
4279
|
// Essential ARIA attributes for drawer dialog
|
|
4171
4280
|
a.role("dialog"),
|
|
4172
4281
|
A.modal(!0),
|
|
4173
|
-
...
|
|
4282
|
+
...P ? [A.labelledby(P)] : [],
|
|
4174
4283
|
A.describedby(ee),
|
|
4175
4284
|
a.tabindex(-1),
|
|
4176
4285
|
// Make drawer focusable for initial focus
|
|
@@ -4189,10 +4298,10 @@ function Ko(e) {
|
|
|
4189
4298
|
m.mousedown((k) => k.stopPropagation()),
|
|
4190
4299
|
// Prevent overlay click-outside when clicking drawer content
|
|
4191
4300
|
// Drawer content container
|
|
4192
|
-
|
|
4301
|
+
Nt(z, (k) => Xe(k ? {
|
|
4193
4302
|
header: p.div(
|
|
4194
4303
|
a.class("bc-drawer__header"),
|
|
4195
|
-
p.div(a.id(
|
|
4304
|
+
p.div(a.id(P), C),
|
|
4196
4305
|
G(
|
|
4197
4306
|
h,
|
|
4198
4307
|
() => be(
|
|
@@ -4212,14 +4321,14 @@ function Ko(e) {
|
|
|
4212
4321
|
a.id(ee),
|
|
4213
4322
|
S
|
|
4214
4323
|
),
|
|
4215
|
-
footer:
|
|
4324
|
+
footer: g && p.div(a.class("bc-drawer__footer"), g)
|
|
4216
4325
|
} : {
|
|
4217
4326
|
body: p.div(
|
|
4218
4327
|
a.class("bc-drawer__body"),
|
|
4219
4328
|
a.id(ee),
|
|
4220
4329
|
S
|
|
4221
4330
|
),
|
|
4222
|
-
footer:
|
|
4331
|
+
footer: g && p.div(a.class("bc-drawer__footer"), g)
|
|
4223
4332
|
}))
|
|
4224
4333
|
);
|
|
4225
4334
|
});
|
|
@@ -4229,10 +4338,10 @@ function Ko(e) {
|
|
|
4229
4338
|
container: v,
|
|
4230
4339
|
content: H,
|
|
4231
4340
|
onClickOutside: () => {
|
|
4232
|
-
|
|
4341
|
+
f == null || f(), o();
|
|
4233
4342
|
},
|
|
4234
4343
|
onEscape: () => {
|
|
4235
|
-
|
|
4344
|
+
f == null || f(), o();
|
|
4236
4345
|
}
|
|
4237
4346
|
});
|
|
4238
4347
|
}, () => {
|
|
@@ -4240,7 +4349,7 @@ function Ko(e) {
|
|
|
4240
4349
|
});
|
|
4241
4350
|
});
|
|
4242
4351
|
}
|
|
4243
|
-
function
|
|
4352
|
+
function Fr(e) {
|
|
4244
4353
|
const n = {
|
|
4245
4354
|
up: "M0 16 L8 10 L16 16 Z",
|
|
4246
4355
|
down: "M0 0 L8 6 L16 0 Z",
|
|
@@ -4248,11 +4357,11 @@ function Or(e) {
|
|
|
4248
4357
|
right: "M0 0 L6 8 L0 16 Z"
|
|
4249
4358
|
};
|
|
4250
4359
|
return Re.svg(
|
|
4251
|
-
|
|
4252
|
-
Re.path(
|
|
4360
|
+
Ue.viewBox("0 0 16 16"),
|
|
4361
|
+
Re.path(Ue.d(e.map((t) => n[t])))
|
|
4253
4362
|
);
|
|
4254
4363
|
}
|
|
4255
|
-
function
|
|
4364
|
+
function el(e) {
|
|
4256
4365
|
const {
|
|
4257
4366
|
content: n,
|
|
4258
4367
|
placement: t = "top",
|
|
@@ -4262,8 +4371,8 @@ function Xo(e) {
|
|
|
4262
4371
|
crossAxisOffset: s = 0,
|
|
4263
4372
|
showOn: u = "hover-focus"
|
|
4264
4373
|
} = e, c = se("tooltip");
|
|
4265
|
-
return F((i) => (i.setAttribute("aria-describedby", c),
|
|
4266
|
-
content: () =>
|
|
4374
|
+
return F((i) => (i.setAttribute("aria-describedby", c), Tr({
|
|
4375
|
+
content: () => L(
|
|
4267
4376
|
a.class("bc-tooltip"),
|
|
4268
4377
|
a.role("tooltip"),
|
|
4269
4378
|
a.id(c),
|
|
@@ -4282,21 +4391,21 @@ function Xo(e) {
|
|
|
4282
4391
|
arrow: (d) => {
|
|
4283
4392
|
const h = d.map(
|
|
4284
4393
|
({
|
|
4285
|
-
placement:
|
|
4286
|
-
}) =>
|
|
4394
|
+
placement: f
|
|
4395
|
+
}) => f.includes("top") ? "down" : f.includes("bottom") ? "up" : f.includes("left") ? "right" : f.includes("right") ? "left" : "up"
|
|
4287
4396
|
);
|
|
4288
|
-
return
|
|
4397
|
+
return L(
|
|
4289
4398
|
a.class("bc-tooltip__arrow"),
|
|
4290
|
-
a.class(h.map((
|
|
4399
|
+
a.class(h.map((f) => `bc-tooltip__arrow-${f}`)),
|
|
4291
4400
|
x.transform(
|
|
4292
|
-
d.map(({ x:
|
|
4401
|
+
d.map(({ x: f, y: b }) => f == null && b == null ? "" : f != null ? `translate(${f}px, 0)` : `translate(0, ${b}px)`)
|
|
4293
4402
|
),
|
|
4294
|
-
|
|
4403
|
+
Fr(h)
|
|
4295
4404
|
);
|
|
4296
4405
|
}
|
|
4297
4406
|
})));
|
|
4298
4407
|
}
|
|
4299
|
-
function
|
|
4408
|
+
function tl({
|
|
4300
4409
|
locale: e,
|
|
4301
4410
|
defaultLocale: n = "en-US",
|
|
4302
4411
|
defaultMessages: t,
|
|
@@ -4321,14 +4430,14 @@ function Yo({
|
|
|
4321
4430
|
get: (c, i) => {
|
|
4322
4431
|
const d = s.at(i);
|
|
4323
4432
|
return function(...h) {
|
|
4324
|
-
return
|
|
4433
|
+
return $(
|
|
4325
4434
|
d,
|
|
4326
4435
|
...h
|
|
4327
4436
|
)(
|
|
4328
|
-
(
|
|
4437
|
+
(f, ...b) => (
|
|
4329
4438
|
// Call the message function with provided arguments
|
|
4330
4439
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
|
4331
|
-
|
|
4440
|
+
f(...b)
|
|
4332
4441
|
)
|
|
4333
4442
|
);
|
|
4334
4443
|
};
|
|
@@ -4343,10 +4452,10 @@ function Yo({
|
|
|
4343
4452
|
t: u
|
|
4344
4453
|
};
|
|
4345
4454
|
}
|
|
4346
|
-
const
|
|
4347
|
-
mark:
|
|
4455
|
+
const nl = {
|
|
4456
|
+
mark: Je("Locale"),
|
|
4348
4457
|
create: (e) => {
|
|
4349
|
-
const n =
|
|
4458
|
+
const n = et({
|
|
4350
4459
|
defaultValue: navigator.language ?? "en-US",
|
|
4351
4460
|
key: "beatui-locale"
|
|
4352
4461
|
});
|
|
@@ -4363,175 +4472,179 @@ const Qo = {
|
|
|
4363
4472
|
};
|
|
4364
4473
|
export {
|
|
4365
4474
|
De as AnimatedToggleClass,
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4475
|
+
Mo as AppShell,
|
|
4476
|
+
sr as AppearanceSelector,
|
|
4477
|
+
ar as ArrayController,
|
|
4369
4478
|
be as Button,
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4479
|
+
Wo as Card,
|
|
4480
|
+
No as Center,
|
|
4481
|
+
qo as CenterH,
|
|
4482
|
+
Io as CheckboxInput,
|
|
4483
|
+
Er as Collapse,
|
|
4484
|
+
Xo as CollapsibleSidebarGroup,
|
|
4376
4485
|
Y as CommonInputAttributes,
|
|
4377
|
-
|
|
4486
|
+
Qo as ConfirmModal,
|
|
4378
4487
|
R as ControlInputWrapper,
|
|
4379
4488
|
de as Controller,
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4489
|
+
so as DateControl,
|
|
4490
|
+
xt as DateInput,
|
|
4491
|
+
co as DateTimeControl,
|
|
4492
|
+
Wn as DateTimeInput,
|
|
4493
|
+
Jo as Drawer,
|
|
4494
|
+
Lo as EditableText,
|
|
4495
|
+
io as EmailControl,
|
|
4496
|
+
qn as EmailInput,
|
|
4497
|
+
ro as EmphasisLabel,
|
|
4498
|
+
Eo as EnsureControl,
|
|
4499
|
+
oo as ErrorLabel,
|
|
4500
|
+
Nn as Expando,
|
|
4501
|
+
Tr as Flyout,
|
|
4393
4502
|
$e as FocusTrap,
|
|
4394
|
-
|
|
4395
|
-
|
|
4503
|
+
uo as FormStatus,
|
|
4504
|
+
zo as Group,
|
|
4396
4505
|
K as Icon,
|
|
4397
4506
|
X as InputContainer,
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4507
|
+
Fn as InputWrapper,
|
|
4508
|
+
kt as Label,
|
|
4509
|
+
Un as LazyNativeSelect,
|
|
4510
|
+
po as LazyNativeSelectControl,
|
|
4511
|
+
Br as Link,
|
|
4512
|
+
_o as ListControl,
|
|
4513
|
+
nl as Locale,
|
|
4514
|
+
Yo as Menu,
|
|
4515
|
+
jr as Modal,
|
|
4406
4516
|
Dn as MutedLabel,
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4517
|
+
yt as NativeSelect,
|
|
4518
|
+
bo as NativeSelectControl,
|
|
4519
|
+
Ko as NavigationLink,
|
|
4520
|
+
fo as NullableDateControl,
|
|
4521
|
+
wt as NullableDateInput,
|
|
4522
|
+
go as NullableDateTimeControl,
|
|
4523
|
+
$t as NullableDateTimeInput,
|
|
4524
|
+
mo as NullableStringDateControl,
|
|
4525
|
+
ko as NullableStringDateTimeControl,
|
|
4526
|
+
Xn as NullableTextArea,
|
|
4527
|
+
xo as NullableTextAreaControl,
|
|
4528
|
+
vo as NullableTextControl,
|
|
4529
|
+
Kn as NullableTextInput,
|
|
4530
|
+
yo as NumberControl,
|
|
4531
|
+
Yn as NumberInput,
|
|
4532
|
+
lr as ObjectController,
|
|
4533
|
+
Tt as Overlay,
|
|
4534
|
+
wo as PasswordControl,
|
|
4535
|
+
Qn as PasswordInput,
|
|
4536
|
+
On as RequiredSymbol,
|
|
4426
4537
|
Xe as ScrollablePanel,
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4538
|
+
er as SegmentedControl,
|
|
4539
|
+
Le as SelectOption,
|
|
4540
|
+
Qe as SidebarGroup,
|
|
4541
|
+
Vr as SidebarLink,
|
|
4542
|
+
Go as Sink,
|
|
4543
|
+
Zo as Stack,
|
|
4544
|
+
Bo as StandaloneAppearanceSelector,
|
|
4545
|
+
$o as StringDateControl,
|
|
4546
|
+
Do as Switch,
|
|
4547
|
+
Ln as Tag,
|
|
4548
|
+
Co as TagsControl,
|
|
4549
|
+
tr as TagsInput,
|
|
4550
|
+
nr as TextArea,
|
|
4551
|
+
So as TextAreaControl,
|
|
4552
|
+
ao as TextControl,
|
|
4553
|
+
Pn as TextInput,
|
|
4554
|
+
St as Theme,
|
|
4555
|
+
To as ThemeAppearance,
|
|
4556
|
+
el as Tooltip,
|
|
4557
|
+
ll as Use,
|
|
4447
4558
|
gr as WithBeatUIBreakpoint,
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4559
|
+
Ho as WithBeatUIElementBreakpoint,
|
|
4560
|
+
_t as WithBreakpoint,
|
|
4561
|
+
M as backgroundConfig,
|
|
4562
|
+
hn as baseSpacing,
|
|
4563
|
+
ln as bgColors,
|
|
4564
|
+
sn as borderColors,
|
|
4565
|
+
lt as breakpoints,
|
|
4566
|
+
fn as changeFontSize,
|
|
4567
|
+
on as colorShades,
|
|
4457
4568
|
je as colors,
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4569
|
+
br as compareBreakpoint,
|
|
4570
|
+
Et as connectCommonAttributes,
|
|
4571
|
+
Vo as connectNumberInput,
|
|
4572
|
+
Oo as connectStringInput,
|
|
4573
|
+
ir as convertStandardSchemaIssues,
|
|
4574
|
+
cr as convertStandardSchemaPathToPath,
|
|
4575
|
+
Ro as delaySignal,
|
|
4576
|
+
ho as emitExpando,
|
|
4577
|
+
Rn as emitOptionExpando,
|
|
4467
4578
|
we as emptyToNull,
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4579
|
+
Fo as findBreakpoint,
|
|
4580
|
+
xn as fontFamily,
|
|
4581
|
+
dt as fontSize,
|
|
4471
4582
|
gn as fontWeight,
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4583
|
+
to as generateAllTokenVariables,
|
|
4584
|
+
Ur as generateBackgroundUtilities,
|
|
4585
|
+
rn as generateBreakpointVariables,
|
|
4586
|
+
un as generateColorVariables,
|
|
4587
|
+
Ye as generateLinkClasses,
|
|
4588
|
+
dn as generateRadiusVariables,
|
|
4589
|
+
bn as generateSpacingVariables,
|
|
4590
|
+
vn as generateTypographyVariables,
|
|
4591
|
+
wn as generateZIndexVariables,
|
|
4592
|
+
qr as getBreakpointMediaQuery,
|
|
4593
|
+
Wr as getBreakpointVar,
|
|
4594
|
+
at as getBreakpointVarName,
|
|
4483
4595
|
ke as getColorVar,
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4596
|
+
Ie as getColorVarName,
|
|
4597
|
+
Jr as getFontFamilyVar,
|
|
4598
|
+
gt as getFontFamilyVarName,
|
|
4599
|
+
Kr as getFontSizeVar,
|
|
4600
|
+
ht as getFontSizeVarName,
|
|
4601
|
+
Xr as getFontWeightVar,
|
|
4602
|
+
pt as getFontWeightVarName,
|
|
4603
|
+
Qt as getIconLocally,
|
|
4604
|
+
Qr as getLetterSpacingVar,
|
|
4605
|
+
ft as getLetterSpacingVarName,
|
|
4606
|
+
Yr as getLineHeightVar,
|
|
4607
|
+
bt as getLineHeightVarName,
|
|
4608
|
+
Gr as getRadiusMediaQuery,
|
|
4609
|
+
zr as getRadiusVar,
|
|
4610
|
+
it as getRadiusVarName,
|
|
4611
|
+
Zr as getSpacingVar,
|
|
4612
|
+
ut as getSpacingVarName,
|
|
4613
|
+
no as getTokenValue,
|
|
4614
|
+
eo as getZIndexVar,
|
|
4615
|
+
mt as getZIndexVarName,
|
|
4504
4616
|
Z as inputOptionsFromController,
|
|
4505
4617
|
Fe as inputOptionsFromMappedController,
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4618
|
+
cn as interactiveColors,
|
|
4619
|
+
ot as isIndexedDBAvailable,
|
|
4620
|
+
Ir as isUrlMatch,
|
|
4621
|
+
kn as letterSpacing,
|
|
4622
|
+
mn as lineHeight,
|
|
4623
|
+
Me as makeMapValidationResult,
|
|
4511
4624
|
He as makeMappedOnChangeHandler,
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4625
|
+
tl as makeMessages,
|
|
4626
|
+
lo as makeNullableOnChangeHandler,
|
|
4627
|
+
U as makeOnBlurHandler,
|
|
4515
4628
|
Q as makeOnChangeHandler,
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4629
|
+
Rr as normalizeColorName,
|
|
4630
|
+
Ct as nullToEmpty,
|
|
4631
|
+
Ao as parsePath,
|
|
4632
|
+
or as pathToString,
|
|
4633
|
+
ct as radius,
|
|
4634
|
+
Se as semanticColorNames,
|
|
4635
|
+
st as semanticColors,
|
|
4523
4636
|
se as sessionId,
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4637
|
+
pn as spacing,
|
|
4638
|
+
dr as standardSchemaResultToValidationResult,
|
|
4639
|
+
Yt as storeIconLocally,
|
|
4640
|
+
an as textColors,
|
|
4641
|
+
Nr as themeColorNames,
|
|
4642
|
+
fe as useAnimatedElementToggle,
|
|
4643
|
+
At as useAnimatedToggle,
|
|
4644
|
+
ur as useController,
|
|
4645
|
+
Uo as useFocusTrap,
|
|
4646
|
+
jo as useForm,
|
|
4647
|
+
Po as useTimedToggle,
|
|
4648
|
+
rr as wrapSegment,
|
|
4649
|
+
yn as zIndex
|
|
4537
4650
|
};
|