@tempots/beatui 0.5.0 → 0.6.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 +1386 -1264
- package/dist/index.umd.js +7 -7
- package/dist/types/components/button/button.d.ts +1 -0
- package/dist/types/components/navigation/link/button-link.d.ts +19 -0
- package/dist/types/components/navigation/link/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Dt = Object.defineProperty;
|
|
2
|
+
var Ue = (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 Ot = (e, n, t) => n in e ? Dt(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
6
|
+
var B = (e, n, t) => Ot(e, typeof n != "symbol" ? n + "" : n, t), Vt = (e, n, t) => n.has(e) || Ue("Cannot " + t);
|
|
7
|
+
var j = (e, n, t) => (Vt(e, n, "read from private field"), t ? t.call(e) : n.get(e)), me = (e, n, t) => n.has(e) ? Ue("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(e) : n.set(e, t);
|
|
8
|
+
import { computedOf as y, html as p, attr as s, When as N, Fragment as L, aria as A, style as v, prop as R, on as m, OnDispose as U, Value as w, Empty as $, dataAttr as ue, Ensure as Ve, WithElement as F, input as oe, emitValue as I, emitValueAsDate as jt, ForEach as je, OneOfType as Ft, emitValueAsNullableDate as Ht, emitValueAsNullableDateTime as Pt, emitValueAsNumber as Be, Repeat as Mt, signal as ze, makeProviderMark as rt, localStorageProp as ot, Use as xe, Portal as Wt, emitChecked as qt, OneOfValue as Nt, WithBrowserCtx as Rt, render as Ut, MapSignal as zt, svg as Ge, svgAttr as Ze } from "@tempots/dom";
|
|
9
|
+
import { Use as al } from "@tempots/dom";
|
|
10
|
+
import { WhenInViewport as Gt, Resource as lt, ElementRect as ve, useAppearance as Zt, AutoSelect as Kt, WindowSize as Xt, PopOver as Yt, Anchor as Fe, Location as He } from "@tempots/ui";
|
|
11
|
+
const Qt = "bui-icons", ye = /* @__PURE__ */ new Map(), st = (() => {
|
|
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 Jt() {
|
|
19
|
+
return st ? new Promise((e, n) => {
|
|
20
|
+
const t = indexedDB.open(Qt, 1);
|
|
21
21
|
t.onupgradeneeded = function(r) {
|
|
22
22
|
const o = r.target.result;
|
|
23
23
|
o.objectStoreNames.contains("icons") || o.createObjectStore("icons");
|
|
@@ -28,36 +28,36 @@ function Xt() {
|
|
|
28
28
|
};
|
|
29
29
|
}) : Promise.reject(new Error("IndexedDB not available"));
|
|
30
30
|
}
|
|
31
|
-
const
|
|
32
|
-
function
|
|
31
|
+
const we = st ? Jt() : null;
|
|
32
|
+
function en(e, n) {
|
|
33
33
|
return new Promise(async (t, r) => {
|
|
34
34
|
try {
|
|
35
|
-
if (
|
|
36
|
-
const l = (await
|
|
35
|
+
if (we) {
|
|
36
|
+
const l = (await we).transaction("icons", "readwrite");
|
|
37
37
|
l.objectStore("icons").put(n, e), l.oncomplete = t, l.onerror = r;
|
|
38
38
|
} else
|
|
39
|
-
|
|
39
|
+
ye.set(e, n), t(void 0);
|
|
40
40
|
} catch {
|
|
41
|
-
|
|
41
|
+
ye.set(e, n), t(void 0);
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function tn(e) {
|
|
46
46
|
return new Promise(async (n, t) => {
|
|
47
47
|
try {
|
|
48
|
-
if (
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
n(
|
|
52
|
-
},
|
|
48
|
+
if (we) {
|
|
49
|
+
const a = (await we).transaction("icons", "readonly").objectStore("icons").get(e);
|
|
50
|
+
a.onsuccess = function() {
|
|
51
|
+
n(a.result);
|
|
52
|
+
}, a.onerror = t;
|
|
53
53
|
} else
|
|
54
|
-
n(
|
|
54
|
+
n(ye.get(e) || null);
|
|
55
55
|
} catch {
|
|
56
|
-
n(
|
|
56
|
+
n(ye.get(e) || null);
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
-
async function
|
|
60
|
+
async function nn(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,58 +65,58 @@ async function Jt(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 rn(e) {
|
|
69
|
+
const n = e.replace(":", "/"), t = await tn(n);
|
|
70
70
|
if (t)
|
|
71
71
|
return t;
|
|
72
|
-
const r = await
|
|
73
|
-
return await
|
|
72
|
+
const r = await nn(n);
|
|
73
|
+
return await en(n, r), r;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function on(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
|
|
80
|
+
const a = y(
|
|
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
|
-
|
|
86
|
-
|
|
85
|
+
s.class(
|
|
86
|
+
y(
|
|
87
87
|
n,
|
|
88
88
|
t
|
|
89
|
-
)((u, c) =>
|
|
89
|
+
)((u, c) => on(u ?? "md", c))
|
|
90
90
|
),
|
|
91
91
|
// Add accessibility attributes based on icon type
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
N(
|
|
93
|
+
a,
|
|
94
94
|
() => L(
|
|
95
|
-
|
|
95
|
+
s.role("img"),
|
|
96
96
|
// TODO translation
|
|
97
97
|
A.label(r || "Icon")
|
|
98
98
|
),
|
|
99
99
|
() => A.hidden(!0)
|
|
100
100
|
),
|
|
101
|
-
|
|
101
|
+
Gt(
|
|
102
102
|
{ once: !0 },
|
|
103
|
-
() =>
|
|
103
|
+
() => lt({
|
|
104
104
|
request: e,
|
|
105
|
-
load: ({ request: u }) =>
|
|
105
|
+
load: ({ request: u }) => rn(u),
|
|
106
106
|
mapError: String
|
|
107
107
|
})({
|
|
108
108
|
success: (u) => p.span(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
v.width("100%"),
|
|
110
|
+
v.height("100%"),
|
|
111
|
+
s.innerHTML(u)
|
|
112
112
|
),
|
|
113
113
|
loading: () => p.span(
|
|
114
|
-
|
|
114
|
+
s.class("animate-spin"),
|
|
115
115
|
// Loading state accessibility
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
N(
|
|
117
|
+
a,
|
|
118
118
|
() => L(
|
|
119
|
-
|
|
119
|
+
s.role("img"),
|
|
120
120
|
// TODO translation
|
|
121
121
|
A.label("Loading icon")
|
|
122
122
|
),
|
|
@@ -125,13 +125,13 @@ function K({ icon: e, size: n = "md", color: t, title: r, accessibility: o = "au
|
|
|
125
125
|
"↻"
|
|
126
126
|
),
|
|
127
127
|
failure: (u) => p.span(
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
s.title(u),
|
|
129
|
+
s.class("text-red-500"),
|
|
130
130
|
// Error state accessibility
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
N(
|
|
132
|
+
a,
|
|
133
133
|
() => L(
|
|
134
|
-
|
|
134
|
+
s.role("img"),
|
|
135
135
|
// TODO translation
|
|
136
136
|
A.label("Failed to load icon")
|
|
137
137
|
),
|
|
@@ -144,31 +144,31 @@ function K({ icon: e, size: n = "md", color: t, title: r, accessibility: o = "au
|
|
|
144
144
|
...l
|
|
145
145
|
);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
const
|
|
147
|
+
function Ie(e, n, t, r, o, l) {
|
|
148
|
+
const a = [
|
|
149
149
|
"bc-button",
|
|
150
150
|
`bu-text-${n}`,
|
|
151
151
|
`bc-control--padding-${n}`,
|
|
152
152
|
`bc-control--rounded-${r}`
|
|
153
153
|
];
|
|
154
|
-
switch (l &&
|
|
154
|
+
switch (l && a.push("bc-button--loading"), e) {
|
|
155
155
|
case "filled":
|
|
156
|
-
|
|
156
|
+
a.push(`bu-bg--${t}`), o || a.push(`hover:bu-bg--${t}`);
|
|
157
157
|
break;
|
|
158
158
|
case "light":
|
|
159
|
-
|
|
159
|
+
a.push(`bu-bg--light-${t}`), o || a.push(`hover:bu-bg--light-${t}`);
|
|
160
160
|
break;
|
|
161
161
|
case "outline":
|
|
162
|
-
|
|
162
|
+
a.push(`bu-border--${t}`), o || a.push(`hover:bu-bg--light-${t}`);
|
|
163
163
|
break;
|
|
164
164
|
case "default":
|
|
165
|
-
|
|
165
|
+
a.push("bu-bg--light-neutral"), a.push(`bu-text--${t}`), o || a.push("hover:bu-bg--light-base");
|
|
166
166
|
break;
|
|
167
167
|
case "text":
|
|
168
|
-
|
|
168
|
+
a.push("bu-bg--inherit"), a.push(`bu-text--${t}`), o || a.push("hover:bu-underline");
|
|
169
169
|
break;
|
|
170
170
|
}
|
|
171
|
-
return
|
|
171
|
+
return a.join(" ");
|
|
172
172
|
}
|
|
173
173
|
function be({
|
|
174
174
|
type: e = "button",
|
|
@@ -177,52 +177,52 @@ function be({
|
|
|
177
177
|
variant: r = "filled",
|
|
178
178
|
size: o = "md",
|
|
179
179
|
color: l = "base",
|
|
180
|
-
roundedness:
|
|
180
|
+
roundedness: a = "sm",
|
|
181
181
|
onClick: u = () => {
|
|
182
182
|
}
|
|
183
183
|
}, ...c) {
|
|
184
|
-
const i =
|
|
184
|
+
const i = R(null);
|
|
185
185
|
return p.button(
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
186
|
+
s.type(e),
|
|
187
|
+
s.disabled(
|
|
188
|
+
y(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
|
-
|
|
194
|
-
|
|
195
|
-
|
|
193
|
+
N(t ?? !1, () => A.label("Loading, please wait")),
|
|
194
|
+
s.class(
|
|
195
|
+
y(
|
|
196
196
|
r,
|
|
197
197
|
o,
|
|
198
198
|
l,
|
|
199
|
-
|
|
199
|
+
a,
|
|
200
200
|
n,
|
|
201
201
|
t
|
|
202
202
|
)(
|
|
203
|
-
(d, h, f, b,
|
|
203
|
+
(d, h, f, b, k, C) => Ie(
|
|
204
204
|
d ?? "filled",
|
|
205
205
|
h ?? "md",
|
|
206
206
|
f ?? "base",
|
|
207
207
|
b ?? "sm",
|
|
208
|
-
|
|
208
|
+
k,
|
|
209
209
|
C
|
|
210
210
|
)
|
|
211
211
|
)
|
|
212
212
|
),
|
|
213
|
-
|
|
213
|
+
N(
|
|
214
214
|
t ?? !1,
|
|
215
215
|
() => L(
|
|
216
|
-
|
|
216
|
+
v.width(
|
|
217
217
|
i.map((d) => d == null ? "" : `${d.width}px`)
|
|
218
218
|
),
|
|
219
|
-
|
|
219
|
+
v.height(
|
|
220
220
|
i.map((d) => d == null ? "" : `${d.height}px`)
|
|
221
221
|
),
|
|
222
222
|
K({ icon: "line-md:loading-twotone-loop", size: o ?? "md" }),
|
|
223
223
|
// Hidden live region for screen reader announcements
|
|
224
224
|
p.span(
|
|
225
|
-
|
|
225
|
+
s.class("sr-only"),
|
|
226
226
|
A.live("polite"),
|
|
227
227
|
// TODO translation
|
|
228
228
|
"Loading, please wait"
|
|
@@ -230,10 +230,10 @@ function be({
|
|
|
230
230
|
),
|
|
231
231
|
() => L(m.click(u), ...c)
|
|
232
232
|
),
|
|
233
|
-
|
|
233
|
+
N(
|
|
234
234
|
t != null,
|
|
235
|
-
() =>
|
|
236
|
-
(d) =>
|
|
235
|
+
() => ve(
|
|
236
|
+
(d) => U(
|
|
237
237
|
d.on((h) => {
|
|
238
238
|
w.get(t ?? !1) || i.set(h);
|
|
239
239
|
})
|
|
@@ -242,7 +242,7 @@ function be({
|
|
|
242
242
|
)
|
|
243
243
|
);
|
|
244
244
|
}
|
|
245
|
-
const
|
|
245
|
+
const Pe = {
|
|
246
246
|
red: {
|
|
247
247
|
50: "oklch(0.971 0.013 17.38)",
|
|
248
248
|
100: "oklch(0.936 0.032 17.717)",
|
|
@@ -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
|
-
}, D = (e) => Object.entries(e), _e = (e, n) => e === n || e !== e && n !== n,
|
|
532
|
+
}, D = (e) => Object.entries(e), _e = (e, n) => e === n || e !== e && n !== n, Ke = (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
|
+
}, at = {
|
|
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 ct(e) {
|
|
556
556
|
return `--breakpoint-${e}`;
|
|
557
557
|
}
|
|
558
|
-
function Wr(e) {
|
|
559
|
-
return `var(${at(e)})`;
|
|
560
|
-
}
|
|
561
558
|
function qr(e) {
|
|
562
|
-
return
|
|
559
|
+
return `var(${ct(e)})`;
|
|
560
|
+
}
|
|
561
|
+
function Nr(e) {
|
|
562
|
+
return `@media (width >= ${at[e]})`;
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function ln() {
|
|
565
565
|
const e = {};
|
|
566
|
-
return D(
|
|
567
|
-
e[
|
|
566
|
+
return D(at).forEach(([n, t]) => {
|
|
567
|
+
e[ct(n)] = t;
|
|
568
568
|
}), e;
|
|
569
569
|
}
|
|
570
|
-
const
|
|
570
|
+
const sn = [
|
|
571
571
|
50,
|
|
572
572
|
100,
|
|
573
573
|
200,
|
|
@@ -587,10 +587,10 @@ const on = [
|
|
|
587
587
|
"warning",
|
|
588
588
|
"error",
|
|
589
589
|
"info"
|
|
590
|
-
],
|
|
590
|
+
], Rr = [
|
|
591
591
|
...Se,
|
|
592
|
-
...D(
|
|
593
|
-
],
|
|
592
|
+
...D(Pe).map(([e]) => e)
|
|
593
|
+
], it = {
|
|
594
594
|
primary: "blue",
|
|
595
595
|
secondary: "gray",
|
|
596
596
|
base: "gray",
|
|
@@ -598,7 +598,7 @@ const on = [
|
|
|
598
598
|
warning: "amber",
|
|
599
599
|
error: "red",
|
|
600
600
|
info: "blue"
|
|
601
|
-
},
|
|
601
|
+
}, an = {
|
|
602
602
|
light: {
|
|
603
603
|
background: ["base", 50],
|
|
604
604
|
surface: ["base", 100],
|
|
@@ -615,7 +615,7 @@ const on = [
|
|
|
615
615
|
raised: ["base", 600],
|
|
616
616
|
overlay: ["base", 500]
|
|
617
617
|
}
|
|
618
|
-
},
|
|
618
|
+
}, cn = {
|
|
619
619
|
light: {
|
|
620
620
|
normal: ["base", 900],
|
|
621
621
|
muted: ["base", 600],
|
|
@@ -626,7 +626,7 @@ const on = [
|
|
|
626
626
|
muted: ["base", 400],
|
|
627
627
|
inverted: ["base", 900]
|
|
628
628
|
}
|
|
629
|
-
},
|
|
629
|
+
}, un = {
|
|
630
630
|
light: {
|
|
631
631
|
border: ["base", 200],
|
|
632
632
|
divider: ["base", 300],
|
|
@@ -637,7 +637,7 @@ const on = [
|
|
|
637
637
|
divider: ["base", 600],
|
|
638
638
|
inverted: ["base", 900]
|
|
639
639
|
}
|
|
640
|
-
},
|
|
640
|
+
}, dn = {
|
|
641
641
|
light: {
|
|
642
642
|
focus: ["info", 700],
|
|
643
643
|
hover: ["base", 100],
|
|
@@ -649,16 +649,16 @@ const on = [
|
|
|
649
649
|
active: ["base", 700]
|
|
650
650
|
}
|
|
651
651
|
};
|
|
652
|
-
function
|
|
653
|
-
return Se.includes(e) ?
|
|
652
|
+
function Ur(e) {
|
|
653
|
+
return Se.includes(e) ? it[e] : e;
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function Le(e, n) {
|
|
656
656
|
return `--color-${e}-${n}`;
|
|
657
657
|
}
|
|
658
658
|
function ke(e, n) {
|
|
659
|
-
return `var(${
|
|
659
|
+
return `var(${Le(e, n)})`;
|
|
660
660
|
}
|
|
661
|
-
const
|
|
661
|
+
const W = {
|
|
662
662
|
// Special colors that don't follow the standard pattern
|
|
663
663
|
special: {
|
|
664
664
|
inherit: {
|
|
@@ -727,7 +727,7 @@ const M = {
|
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
729
|
};
|
|
730
|
-
function
|
|
730
|
+
function zr() {
|
|
731
731
|
let e = `/*
|
|
732
732
|
* Background Utilities - Auto-generated from design tokens
|
|
733
733
|
*
|
|
@@ -744,7 +744,7 @@ function Ur() {
|
|
|
744
744
|
|
|
745
745
|
@layer components {
|
|
746
746
|
`;
|
|
747
|
-
D(
|
|
747
|
+
D(W.special).forEach(([t, r]) => {
|
|
748
748
|
e += ` .bu-bg--${t} {
|
|
749
749
|
`, e += ` background-color: ${r.backgroundColor};
|
|
750
750
|
`, e += ` color: ${r.color};
|
|
@@ -754,11 +754,11 @@ function Ur() {
|
|
|
754
754
|
});
|
|
755
755
|
const n = [
|
|
756
756
|
...Se,
|
|
757
|
-
...D(
|
|
757
|
+
...D(Pe).map(([t]) => t)
|
|
758
758
|
];
|
|
759
759
|
return e += ` /* solid */
|
|
760
760
|
`, n.forEach((t) => {
|
|
761
|
-
const r =
|
|
761
|
+
const r = W.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 Ur() {
|
|
|
766
766
|
`;
|
|
767
767
|
}), e += `
|
|
768
768
|
`, n.forEach((t) => {
|
|
769
|
-
const r =
|
|
769
|
+
const r = W.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 Ur() {
|
|
|
774
774
|
`;
|
|
775
775
|
}), e += `
|
|
776
776
|
`, e += ` /* light */
|
|
777
|
-
`, D(
|
|
777
|
+
`, D(W.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 = W.variants.light.light, o = W.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 Ur() {
|
|
|
793
793
|
`);
|
|
794
794
|
}), e += `
|
|
795
795
|
`, e += ` /* light dark */
|
|
796
|
-
`, D(
|
|
797
|
-
const o =
|
|
796
|
+
`, D(W.special).forEach(([t, r]) => {
|
|
797
|
+
const o = W.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 Ur() {
|
|
|
805
805
|
`, e += ` }
|
|
806
806
|
`);
|
|
807
807
|
}), n.forEach((t) => {
|
|
808
|
-
const r =
|
|
808
|
+
const r = W.variants.light.dark, o = W.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 Ur() {
|
|
|
817
817
|
`);
|
|
818
818
|
}), e += `
|
|
819
819
|
`, e += ` /* lighter */
|
|
820
|
-
`, D(
|
|
820
|
+
`, D(W.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 = W.variants.lighter.light, o = W.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 Ur() {
|
|
|
836
836
|
`);
|
|
837
837
|
}), e += `
|
|
838
838
|
`, e += ` /* light dark */
|
|
839
|
-
`, D(
|
|
840
|
-
const o =
|
|
839
|
+
`, D(W.special).forEach(([t, r]) => {
|
|
840
|
+
const o = W.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 Ur() {
|
|
|
848
848
|
`, e += ` }
|
|
849
849
|
`);
|
|
850
850
|
}), n.forEach((t) => {
|
|
851
|
-
const r =
|
|
851
|
+
const r = W.variants.lighter.dark, o = W.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,36 +861,36 @@ function Ur() {
|
|
|
861
861
|
}), e += `}
|
|
862
862
|
`, e;
|
|
863
863
|
}
|
|
864
|
-
function
|
|
864
|
+
function hn() {
|
|
865
865
|
const e = {};
|
|
866
|
-
return e["--color-white"] = "white", e["--color-black"] = "black", e["--color-inherit"] = "inherit", D(
|
|
866
|
+
return e["--color-white"] = "white", e["--color-black"] = "black", e["--color-inherit"] = "inherit", D(Pe).forEach(([n, t]) => {
|
|
867
867
|
D(t).forEach(([r, o]) => {
|
|
868
|
-
e[
|
|
868
|
+
e[Le(n, r)] = o;
|
|
869
869
|
});
|
|
870
870
|
}), Se.forEach((n) => {
|
|
871
|
-
const t =
|
|
872
|
-
|
|
873
|
-
e[
|
|
871
|
+
const t = it[n];
|
|
872
|
+
sn.forEach((r) => {
|
|
873
|
+
e[Le(n, r)] = ke(
|
|
874
874
|
t,
|
|
875
875
|
r
|
|
876
876
|
);
|
|
877
877
|
});
|
|
878
|
-
}), D(
|
|
878
|
+
}), D(an).forEach(([n, t]) => {
|
|
879
879
|
D(t).forEach(([r, [o, l]]) => {
|
|
880
880
|
e[`--bg-${r}-${n}`] = ke(o, l);
|
|
881
881
|
});
|
|
882
|
-
}), D(
|
|
882
|
+
}), D(cn).forEach(([n, t]) => {
|
|
883
883
|
D(t).forEach(([r, [o, l]]) => {
|
|
884
884
|
e[`--text-${r}-${n}`] = ke(o, l);
|
|
885
885
|
});
|
|
886
|
-
}), D(
|
|
886
|
+
}), D(un).forEach(([n, t]) => {
|
|
887
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
|
-
}), D(
|
|
893
|
+
}), D(dn).forEach(([n, t]) => {
|
|
894
894
|
D(t).forEach(([r, [o, l]]) => {
|
|
895
895
|
e[`--interactive-${r}-${n}`] = ke(
|
|
896
896
|
o,
|
|
@@ -899,7 +899,7 @@ function un() {
|
|
|
899
899
|
});
|
|
900
900
|
}), e;
|
|
901
901
|
}
|
|
902
|
-
const
|
|
902
|
+
const ut = {
|
|
903
903
|
none: "0",
|
|
904
904
|
xs: "calc(var(--spacing-base) / 2)",
|
|
905
905
|
sm: "var(--spacing-base)",
|
|
@@ -908,25 +908,25 @@ const ct = {
|
|
|
908
908
|
xl: "calc(var(--spacing-base) * 3)",
|
|
909
909
|
full: "9999px"
|
|
910
910
|
};
|
|
911
|
-
function
|
|
911
|
+
function dt(e) {
|
|
912
912
|
return `--radius-${e}`;
|
|
913
913
|
}
|
|
914
|
-
function zr(e) {
|
|
915
|
-
return `var(${it(e)})`;
|
|
916
|
-
}
|
|
917
914
|
function Gr(e) {
|
|
918
|
-
return
|
|
915
|
+
return `var(${dt(e)})`;
|
|
919
916
|
}
|
|
920
|
-
function
|
|
917
|
+
function Zr(e) {
|
|
918
|
+
return `@media (width >= ${ut[e]})`;
|
|
919
|
+
}
|
|
920
|
+
function pn() {
|
|
921
921
|
const e = {};
|
|
922
|
-
return D(
|
|
923
|
-
e[
|
|
922
|
+
return D(ut).forEach(([n, t]) => {
|
|
923
|
+
e[dt(n)] = t;
|
|
924
924
|
}), e;
|
|
925
925
|
}
|
|
926
|
-
const
|
|
926
|
+
const bn = "0.25rem", fn = {
|
|
927
927
|
none: "0",
|
|
928
928
|
px: "1px",
|
|
929
|
-
base:
|
|
929
|
+
base: bn,
|
|
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 hn = "0.25rem", pn = {
|
|
|
937
937
|
"4xl": "calc(var(--spacing-base) * 8)",
|
|
938
938
|
full: "2000px"
|
|
939
939
|
};
|
|
940
|
-
function
|
|
940
|
+
function ht(e) {
|
|
941
941
|
return `--spacing-${e}`;
|
|
942
942
|
}
|
|
943
|
-
function
|
|
944
|
-
return `var(${
|
|
943
|
+
function Kr(e) {
|
|
944
|
+
return `var(${ht(e)})`;
|
|
945
945
|
}
|
|
946
|
-
function
|
|
946
|
+
function gn() {
|
|
947
947
|
const e = {};
|
|
948
|
-
return D(
|
|
949
|
-
e[
|
|
948
|
+
return D(fn).forEach(([n, t]) => {
|
|
949
|
+
e[ht(n)] = t;
|
|
950
950
|
}), e;
|
|
951
951
|
}
|
|
952
|
-
const
|
|
952
|
+
const pt = {
|
|
953
953
|
"3xs": ["0.5rem", { lineHeight: "0.75rem" }],
|
|
954
954
|
// 8px
|
|
955
955
|
"2xs": ["0.625rem", { lineHeight: "0.75rem" }],
|
|
@@ -981,14 +981,14 @@ const dt = {
|
|
|
981
981
|
"9xl": ["8rem", { lineHeight: "1" }]
|
|
982
982
|
// 128px
|
|
983
983
|
};
|
|
984
|
-
function
|
|
985
|
-
const t = Object.keys(
|
|
984
|
+
function mn(e, n) {
|
|
985
|
+
const t = Object.keys(pt), 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);
|
|
989
989
|
return t[o];
|
|
990
990
|
}
|
|
991
|
-
const
|
|
991
|
+
const kn = {
|
|
992
992
|
thin: "100",
|
|
993
993
|
extralight: "200",
|
|
994
994
|
light: "300",
|
|
@@ -998,21 +998,21 @@ const gn = {
|
|
|
998
998
|
bold: "700",
|
|
999
999
|
extrabold: "800",
|
|
1000
1000
|
black: "900"
|
|
1001
|
-
},
|
|
1001
|
+
}, xn = {
|
|
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
|
+
}, vn = {
|
|
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
|
+
}, yn = {
|
|
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 bt(e) {
|
|
1050
1050
|
return `--font-size-${e}`;
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1053
|
-
return `var(${
|
|
1052
|
+
function Xr(e) {
|
|
1053
|
+
return `var(${bt(e)})`;
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1055
|
+
function ft(e) {
|
|
1056
1056
|
return `--font-weight-${e}`;
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1059
|
-
return `var(${
|
|
1058
|
+
function Yr(e) {
|
|
1059
|
+
return `var(${ft(e)})`;
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1061
|
+
function gt(e) {
|
|
1062
1062
|
return `--line-height-${e}`;
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
1065
|
-
return `var(${
|
|
1064
|
+
function Qr(e) {
|
|
1065
|
+
return `var(${gt(e)})`;
|
|
1066
1066
|
}
|
|
1067
|
-
function
|
|
1067
|
+
function mt(e) {
|
|
1068
1068
|
return `--letter-spacing-${e}`;
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1071
|
-
return `var(${
|
|
1070
|
+
function Jr(e) {
|
|
1071
|
+
return `var(${mt(e)})`;
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1073
|
+
function kt(e) {
|
|
1074
1074
|
return `--font-family-${e}`;
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1077
|
-
return `var(${
|
|
1076
|
+
function eo(e) {
|
|
1077
|
+
return `var(${kt(e)})`;
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1079
|
+
function wn() {
|
|
1080
1080
|
const e = {};
|
|
1081
|
-
return Object.entries(
|
|
1081
|
+
return Object.entries(pt).forEach(([n, t]) => {
|
|
1082
1082
|
const [r] = Array.isArray(t) ? t : [t];
|
|
1083
|
-
e[
|
|
1084
|
-
}), Object.entries(gn).forEach(([n, t]) => {
|
|
1085
|
-
e[pt(n)] = t;
|
|
1086
|
-
}), Object.entries(mn).forEach(([n, t]) => {
|
|
1087
|
-
e[bt(n)] = t;
|
|
1083
|
+
e[bt(n)] = r;
|
|
1088
1084
|
}), Object.entries(kn).forEach(([n, t]) => {
|
|
1089
1085
|
e[ft(n)] = t;
|
|
1090
1086
|
}), Object.entries(xn).forEach(([n, t]) => {
|
|
1091
|
-
e[gt(n)] = t
|
|
1087
|
+
e[gt(n)] = t;
|
|
1088
|
+
}), Object.entries(vn).forEach(([n, t]) => {
|
|
1089
|
+
e[mt(n)] = t;
|
|
1090
|
+
}), Object.entries(yn).forEach(([n, t]) => {
|
|
1091
|
+
e[kt(n)] = t.join(", ");
|
|
1092
1092
|
}), e;
|
|
1093
1093
|
}
|
|
1094
|
-
const
|
|
1094
|
+
const $n = {
|
|
1095
1095
|
// Base layers
|
|
1096
1096
|
base: 0,
|
|
1097
1097
|
raised: 10,
|
|
@@ -1109,19 +1109,19 @@ const yn = {
|
|
|
1109
1109
|
// Maximum priority
|
|
1110
1110
|
maximum: 100
|
|
1111
1111
|
};
|
|
1112
|
-
function
|
|
1112
|
+
function xt(e) {
|
|
1113
1113
|
return `--z-index-${e}`;
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1116
|
-
return `var(${
|
|
1115
|
+
function to(e) {
|
|
1116
|
+
return `var(${xt(e)})`;
|
|
1117
1117
|
}
|
|
1118
|
-
function
|
|
1118
|
+
function Cn() {
|
|
1119
1119
|
const e = {};
|
|
1120
|
-
return D(
|
|
1121
|
-
e[
|
|
1120
|
+
return D($n).forEach(([n, t]) => {
|
|
1121
|
+
e[xt(n)] = t.toString();
|
|
1122
1122
|
}), e;
|
|
1123
1123
|
}
|
|
1124
|
-
const
|
|
1124
|
+
const Sn = {
|
|
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 $n = {
|
|
|
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 En(e) {
|
|
1142
1142
|
return `--shadow-${e}`;
|
|
1143
1143
|
}
|
|
1144
|
-
function
|
|
1144
|
+
function _n() {
|
|
1145
1145
|
const e = {};
|
|
1146
|
-
return D(
|
|
1147
|
-
e[
|
|
1146
|
+
return D(Sn).forEach(([n, t]) => {
|
|
1147
|
+
e[En(n)] = t;
|
|
1148
1148
|
}), e;
|
|
1149
1149
|
}
|
|
1150
|
-
const
|
|
1150
|
+
const An = {
|
|
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,116 +1155,116 @@ const En = {
|
|
|
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 Tn(e) {
|
|
1159
1159
|
return `--text-shadow-${e}`;
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function Bn() {
|
|
1162
1162
|
const e = {};
|
|
1163
|
-
return D(
|
|
1164
|
-
e[
|
|
1163
|
+
return D(An).forEach(([n, t]) => {
|
|
1164
|
+
e[Tn(n)] = t;
|
|
1165
1165
|
}), e;
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1167
|
+
function no() {
|
|
1168
1168
|
return {
|
|
1169
|
-
...
|
|
1170
|
-
...
|
|
1171
|
-
...
|
|
1172
|
-
...
|
|
1173
|
-
...
|
|
1174
|
-
...
|
|
1175
|
-
...
|
|
1176
|
-
...
|
|
1169
|
+
...hn(),
|
|
1170
|
+
...gn(),
|
|
1171
|
+
...wn(),
|
|
1172
|
+
...ln(),
|
|
1173
|
+
...pn(),
|
|
1174
|
+
..._n(),
|
|
1175
|
+
...Bn(),
|
|
1176
|
+
...Cn()
|
|
1177
1177
|
};
|
|
1178
1178
|
}
|
|
1179
|
-
function
|
|
1179
|
+
function ro(e, n) {
|
|
1180
1180
|
return n == null && typeof window > "u" ? "" : getComputedStyle(n ?? document.documentElement).getPropertyValue(e).trim();
|
|
1181
1181
|
}
|
|
1182
|
-
const
|
|
1182
|
+
const In = {
|
|
1183
1183
|
xs: "1.5",
|
|
1184
1184
|
sm: "2",
|
|
1185
1185
|
md: "2.5",
|
|
1186
1186
|
lg: "3",
|
|
1187
1187
|
xl: "4"
|
|
1188
|
-
},
|
|
1188
|
+
}, Ln = {
|
|
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 Dn(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-${mn(t, -1)} bu-px-${In[t]} bu-py-${Ln[t]}`
|
|
1199
1199
|
), r.join(" ");
|
|
1200
1200
|
}
|
|
1201
|
-
const
|
|
1201
|
+
const On = ({
|
|
1202
1202
|
disabled: e,
|
|
1203
1203
|
value: n,
|
|
1204
1204
|
color: t = "base",
|
|
1205
1205
|
onClose: r,
|
|
1206
1206
|
size: o = "md"
|
|
1207
1207
|
}) => p.span(
|
|
1208
|
-
|
|
1209
|
-
|
|
1208
|
+
s.class(
|
|
1209
|
+
y(
|
|
1210
1210
|
e ?? !1,
|
|
1211
1211
|
t ?? "base",
|
|
1212
1212
|
o ?? "md"
|
|
1213
|
-
)((l,
|
|
1213
|
+
)((l, a, u) => Dn(l, a, u))
|
|
1214
1214
|
),
|
|
1215
1215
|
p.span(n),
|
|
1216
1216
|
r != null ? p.button(
|
|
1217
|
-
|
|
1218
|
-
|
|
1217
|
+
s.disabled(e),
|
|
1218
|
+
s.class("bc-tag__close"),
|
|
1219
1219
|
p.span("×"),
|
|
1220
1220
|
m.click(() => r == null ? void 0 : r(w.get(n)))
|
|
1221
|
-
) :
|
|
1221
|
+
) : $
|
|
1222
1222
|
);
|
|
1223
1223
|
function Ee(e) {
|
|
1224
1224
|
return `bc-label bc-label--${e}`;
|
|
1225
1225
|
}
|
|
1226
|
-
const
|
|
1227
|
-
function
|
|
1228
|
-
const n =
|
|
1229
|
-
return
|
|
1226
|
+
const oo = (...e) => p.span(s.class(Ee("emphasis")), ...e), vt = (...e) => p.span(s.class(Ee("default")), ...e), Vn = (...e) => p.span(s.class(Ee("muted")), ...e), lo = (...e) => p.span(s.class(Ee("error")), ...e), Xe = /* @__PURE__ */ new Map();
|
|
1227
|
+
function ae(e) {
|
|
1228
|
+
const n = Xe.get(e) ?? 0;
|
|
1229
|
+
return Xe.set(e, n + 1), `${e}-${n}`;
|
|
1230
1230
|
}
|
|
1231
|
-
const
|
|
1232
|
-
|
|
1231
|
+
const jn = p.span(
|
|
1232
|
+
s.class("bc-input-wrapper__required"),
|
|
1233
1233
|
" *"
|
|
1234
1234
|
);
|
|
1235
|
-
function
|
|
1235
|
+
function Fn() {
|
|
1236
1236
|
return "bc-input-wrapper";
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1238
|
+
function Hn(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 Pn = ({
|
|
1243
1243
|
required: e,
|
|
1244
1244
|
label: n,
|
|
1245
1245
|
context: t,
|
|
1246
1246
|
description: r,
|
|
1247
1247
|
content: o,
|
|
1248
1248
|
error: l,
|
|
1249
|
-
labelFor:
|
|
1249
|
+
labelFor: a,
|
|
1250
1250
|
hasError: u,
|
|
1251
1251
|
disabled: c
|
|
1252
1252
|
}, ...i) => {
|
|
1253
|
-
const d = u ?? w.map(l ?? null, (C) => C != null), h = c ?? !1, f =
|
|
1253
|
+
const d = u ?? w.map(l ?? null, (C) => C != null), h = c ?? !1, f = ae("input-wrapper"), b = r ? `${f}-description` : void 0, k = l ? `${f}-error` : void 0;
|
|
1254
1254
|
return p.div(
|
|
1255
|
-
|
|
1255
|
+
s.class(Fn()),
|
|
1256
1256
|
n != null || t != null ? p.div(
|
|
1257
|
-
|
|
1257
|
+
s.class("bc-input-wrapper__header"),
|
|
1258
1258
|
p.label(
|
|
1259
|
-
|
|
1260
|
-
|
|
1259
|
+
s.class("bc-input-wrapper__label"),
|
|
1260
|
+
a != null ? s.for(a) : $,
|
|
1261
1261
|
p.span(
|
|
1262
|
-
|
|
1263
|
-
|
|
1262
|
+
s.class(
|
|
1263
|
+
y(
|
|
1264
1264
|
d,
|
|
1265
1265
|
h
|
|
1266
1266
|
)(
|
|
1267
|
-
(C, S) =>
|
|
1267
|
+
(C, S) => Hn(
|
|
1268
1268
|
C ?? !1,
|
|
1269
1269
|
S ?? !1
|
|
1270
1270
|
)
|
|
@@ -1272,53 +1272,53 @@ const Fn = ({
|
|
|
1272
1272
|
),
|
|
1273
1273
|
n
|
|
1274
1274
|
),
|
|
1275
|
-
n != null && e ?
|
|
1275
|
+
n != null && e ? jn : $
|
|
1276
1276
|
),
|
|
1277
|
-
t != null ?
|
|
1278
|
-
) :
|
|
1277
|
+
t != null ? vt(t) : $
|
|
1278
|
+
) : $,
|
|
1279
1279
|
p.div(
|
|
1280
|
-
|
|
1280
|
+
s.class("bc-input-wrapper__content"),
|
|
1281
1281
|
// Add data attributes to help inputs inherit accessibility information
|
|
1282
|
-
[b,
|
|
1283
|
-
[b,
|
|
1284
|
-
) :
|
|
1285
|
-
e ? ue.required("true") :
|
|
1286
|
-
|
|
1282
|
+
[b, k].filter(Boolean).length > 0 ? ue.describedby(
|
|
1283
|
+
[b, k].filter(Boolean).join(" ")
|
|
1284
|
+
) : $,
|
|
1285
|
+
e ? ue.required("true") : $,
|
|
1286
|
+
N(d, () => ue.invalid("true")),
|
|
1287
1287
|
o
|
|
1288
1288
|
),
|
|
1289
1289
|
r != null ? p.div(
|
|
1290
|
-
|
|
1291
|
-
|
|
1290
|
+
s.class("bc-input-wrapper__description"),
|
|
1291
|
+
s.id(b),
|
|
1292
1292
|
r
|
|
1293
|
-
) :
|
|
1294
|
-
l != null ?
|
|
1293
|
+
) : $,
|
|
1294
|
+
l != null ? Ve(
|
|
1295
1295
|
l,
|
|
1296
1296
|
(C) => p.div(
|
|
1297
|
-
|
|
1298
|
-
|
|
1297
|
+
s.class("bc-input-wrapper__error"),
|
|
1298
|
+
s.id(k),
|
|
1299
1299
|
A.live("polite"),
|
|
1300
1300
|
// Announce errors to screen readers
|
|
1301
|
-
|
|
1301
|
+
s.role("alert"),
|
|
1302
1302
|
// Mark as alert for immediate attention
|
|
1303
1303
|
C
|
|
1304
1304
|
)
|
|
1305
|
-
) :
|
|
1305
|
+
) : $,
|
|
1306
1306
|
...i
|
|
1307
1307
|
);
|
|
1308
1308
|
};
|
|
1309
|
-
function
|
|
1309
|
+
function Mn() {
|
|
1310
1310
|
return "bc-control-input-wrapper";
|
|
1311
1311
|
}
|
|
1312
|
-
const
|
|
1312
|
+
const z = ({
|
|
1313
1313
|
required: e,
|
|
1314
1314
|
label: n,
|
|
1315
1315
|
context: t,
|
|
1316
1316
|
description: r,
|
|
1317
1317
|
content: o,
|
|
1318
1318
|
controller: l
|
|
1319
|
-
}, ...
|
|
1320
|
-
|
|
1321
|
-
|
|
1319
|
+
}, ...a) => p.div(
|
|
1320
|
+
s.class(Mn()),
|
|
1321
|
+
Pn(
|
|
1322
1322
|
{
|
|
1323
1323
|
required: e,
|
|
1324
1324
|
label: n,
|
|
@@ -1330,7 +1330,7 @@ const R = ({
|
|
|
1330
1330
|
hasError: l.hasError,
|
|
1331
1331
|
disabled: l.disabled
|
|
1332
1332
|
},
|
|
1333
|
-
...
|
|
1333
|
+
...a
|
|
1334
1334
|
)
|
|
1335
1335
|
), X = ({
|
|
1336
1336
|
child: e,
|
|
@@ -1339,7 +1339,7 @@ const R = ({
|
|
|
1339
1339
|
before: r,
|
|
1340
1340
|
after: o,
|
|
1341
1341
|
hasError: l,
|
|
1342
|
-
focusableSelector:
|
|
1342
|
+
focusableSelector: a = "input, select, textarea",
|
|
1343
1343
|
growInput: u = !0
|
|
1344
1344
|
}) => {
|
|
1345
1345
|
const c = w.map(n ?? !1, (d) => d);
|
|
@@ -1351,23 +1351,23 @@ const R = ({
|
|
|
1351
1351
|
e,
|
|
1352
1352
|
F((d) => {
|
|
1353
1353
|
const h = () => {
|
|
1354
|
-
const f = d.querySelector(
|
|
1354
|
+
const f = d.querySelector(a);
|
|
1355
1355
|
f == null || f.focus();
|
|
1356
1356
|
};
|
|
1357
|
-
return d.addEventListener("click", h),
|
|
1357
|
+
return d.addEventListener("click", h), U(() => d.removeEventListener("click", h));
|
|
1358
1358
|
}),
|
|
1359
|
-
|
|
1360
|
-
|
|
1359
|
+
s.class(
|
|
1360
|
+
y(
|
|
1361
1361
|
c,
|
|
1362
1362
|
l ?? !1
|
|
1363
1363
|
)(
|
|
1364
1364
|
(d, h) => i(d ?? !1, h ?? !1)
|
|
1365
1365
|
)
|
|
1366
1366
|
),
|
|
1367
|
-
r != null ? p.span(
|
|
1367
|
+
r != null ? p.span(s.class("bc-input-container__before"), r) : null,
|
|
1368
1368
|
p.div(
|
|
1369
|
-
|
|
1370
|
-
|
|
1369
|
+
s.class("bc-input-container__input"),
|
|
1370
|
+
s.class(
|
|
1371
1371
|
w.map(
|
|
1372
1372
|
u,
|
|
1373
1373
|
(d) => d ? "bc-input-container__input--grow" : ""
|
|
@@ -1375,7 +1375,7 @@ const R = ({
|
|
|
1375
1375
|
),
|
|
1376
1376
|
t
|
|
1377
1377
|
),
|
|
1378
|
-
o != null ? p.span(
|
|
1378
|
+
o != null ? p.span(s.class("bc-input-container__after"), o) : null
|
|
1379
1379
|
);
|
|
1380
1380
|
}, Y = ({
|
|
1381
1381
|
autocomplete: e,
|
|
@@ -1384,126 +1384,126 @@ const R = ({
|
|
|
1384
1384
|
disabled: r,
|
|
1385
1385
|
name: o,
|
|
1386
1386
|
placeholder: l,
|
|
1387
|
-
id:
|
|
1387
|
+
id: a
|
|
1388
1388
|
}) => L(
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1389
|
+
s.autocomplete(e),
|
|
1390
|
+
s.autofocus(n),
|
|
1391
|
+
s.class(t),
|
|
1392
|
+
s.disabled(r),
|
|
1393
|
+
s.name(o ?? a),
|
|
1394
|
+
s.placeholder(l),
|
|
1395
|
+
s.id(a)
|
|
1396
1396
|
), Z = (e) => ({
|
|
1397
1397
|
id: e.name,
|
|
1398
1398
|
disabled: e.disabled,
|
|
1399
1399
|
value: e.value,
|
|
1400
1400
|
hasError: e.hasError
|
|
1401
|
-
}),
|
|
1401
|
+
}), Me = (e, n) => ({
|
|
1402
1402
|
...Z(e),
|
|
1403
1403
|
value: e.value.map(n)
|
|
1404
|
-
}),
|
|
1404
|
+
}), yt = (e) => {
|
|
1405
1405
|
const { value: n, onBlur: t, onChange: r } = e;
|
|
1406
1406
|
return X({
|
|
1407
1407
|
...e,
|
|
1408
1408
|
input: oe.date(
|
|
1409
1409
|
Y(e),
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
t != null ? m.blur(I(t)) :
|
|
1413
|
-
r != null ? m.change(
|
|
1410
|
+
s.valueAsDate(n),
|
|
1411
|
+
s.class("bc-input"),
|
|
1412
|
+
t != null ? m.blur(I(t)) : $,
|
|
1413
|
+
r != null ? m.change(jt(r)) : $
|
|
1414
1414
|
)
|
|
1415
1415
|
});
|
|
1416
|
-
},
|
|
1416
|
+
}, Wn = (e) => {
|
|
1417
1417
|
const { value: n, onBlur: t, onChange: r, onInput: o } = e;
|
|
1418
1418
|
return X({
|
|
1419
1419
|
...e,
|
|
1420
1420
|
input: oe.text(
|
|
1421
1421
|
Y(e),
|
|
1422
|
-
|
|
1423
|
-
|
|
1422
|
+
s.value(n),
|
|
1423
|
+
s.class("bc-input"),
|
|
1424
1424
|
// Add accessibility attributes from parent wrapper
|
|
1425
1425
|
F((l) => {
|
|
1426
|
-
const
|
|
1427
|
-
if (
|
|
1428
|
-
const u =
|
|
1426
|
+
const a = l.closest("[data-describedby]");
|
|
1427
|
+
if (a) {
|
|
1428
|
+
const u = a.getAttribute("data-describedby"), c = a.getAttribute("data-required"), i = a.getAttribute("data-invalid");
|
|
1429
1429
|
u && l.setAttribute("aria-describedby", u), c === "true" && l.setAttribute("aria-required", "true"), i === "true" && l.setAttribute("aria-invalid", "true");
|
|
1430
1430
|
}
|
|
1431
1431
|
}),
|
|
1432
|
-
t != null ? m.blur(I(t)) :
|
|
1433
|
-
r != null ? m.change(I(r)) :
|
|
1434
|
-
o != null ? m.input(I(o)) :
|
|
1432
|
+
t != null ? m.blur(I(t)) : $,
|
|
1433
|
+
r != null ? m.change(I(r)) : $,
|
|
1434
|
+
o != null ? m.input(I(o)) : $
|
|
1435
1435
|
)
|
|
1436
1436
|
});
|
|
1437
|
-
},
|
|
1437
|
+
}, G = (
|
|
1438
1438
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1439
1439
|
(e, n) => () => {
|
|
1440
1440
|
n == null || n();
|
|
1441
1441
|
}
|
|
1442
1442
|
), Q = (e, n) => (t) => {
|
|
1443
1443
|
e.change(t), n == null || n(t);
|
|
1444
|
-
},
|
|
1444
|
+
}, We = (e, n, t) => (r) => {
|
|
1445
1445
|
const o = n(r);
|
|
1446
1446
|
e.change(o), t == null || t(o);
|
|
1447
|
-
},
|
|
1447
|
+
}, so = (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
|
-
return
|
|
1451
|
+
return z(
|
|
1452
1452
|
{
|
|
1453
1453
|
...o,
|
|
1454
|
-
content:
|
|
1454
|
+
content: Wn({
|
|
1455
1455
|
...o,
|
|
1456
1456
|
...Z(o.controller),
|
|
1457
1457
|
onChange: Q(o.controller, r),
|
|
1458
|
-
onBlur:
|
|
1458
|
+
onBlur: G(o.controller, t)
|
|
1459
1459
|
})
|
|
1460
1460
|
},
|
|
1461
1461
|
...n
|
|
1462
1462
|
);
|
|
1463
|
-
},
|
|
1463
|
+
}, co = (e, ...n) => {
|
|
1464
1464
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1465
|
-
return
|
|
1465
|
+
return z(
|
|
1466
1466
|
{
|
|
1467
1467
|
...o,
|
|
1468
|
-
content:
|
|
1468
|
+
content: yt({
|
|
1469
1469
|
...o,
|
|
1470
1470
|
...Z(o.controller),
|
|
1471
1471
|
onChange: Q(o.controller, r),
|
|
1472
|
-
onBlur:
|
|
1472
|
+
onBlur: G(o.controller, t)
|
|
1473
1473
|
})
|
|
1474
1474
|
},
|
|
1475
1475
|
...n
|
|
1476
1476
|
);
|
|
1477
|
-
},
|
|
1477
|
+
}, qn = (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
|
+
}, Nn = (e) => {
|
|
1481
1481
|
const { value: n, onBlur: t, onChange: r } = e;
|
|
1482
1482
|
return X({
|
|
1483
1483
|
...e,
|
|
1484
1484
|
input: oe["datetime-local"](
|
|
1485
1485
|
Y(e),
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
t != null ? m.blur(I(t)) :
|
|
1489
|
-
r != null ? m.change(I((o) => r(new Date(o)))) :
|
|
1486
|
+
s.value(w.map(n, qn)),
|
|
1487
|
+
s.class("bc-input"),
|
|
1488
|
+
t != null ? m.blur(I(t)) : $,
|
|
1489
|
+
r != null ? m.change(I((o) => r(new Date(o)))) : $
|
|
1490
1490
|
)
|
|
1491
1491
|
});
|
|
1492
|
-
},
|
|
1492
|
+
}, io = (e, ...n) => {
|
|
1493
1493
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1494
|
-
return
|
|
1494
|
+
return z(
|
|
1495
1495
|
{
|
|
1496
1496
|
...o,
|
|
1497
|
-
content:
|
|
1497
|
+
content: Nn({
|
|
1498
1498
|
...o,
|
|
1499
1499
|
...Z(o.controller),
|
|
1500
1500
|
onChange: Q(o.controller, r),
|
|
1501
|
-
onBlur:
|
|
1501
|
+
onBlur: G(o.controller, t)
|
|
1502
1502
|
})
|
|
1503
1503
|
},
|
|
1504
1504
|
...n
|
|
1505
1505
|
);
|
|
1506
|
-
},
|
|
1506
|
+
}, Rn = (e) => {
|
|
1507
1507
|
const n = {
|
|
1508
1508
|
name: "email",
|
|
1509
1509
|
autocomplete: "email",
|
|
@@ -1514,48 +1514,48 @@ const R = ({
|
|
|
1514
1514
|
...e,
|
|
1515
1515
|
input: oe.email(
|
|
1516
1516
|
Y(n),
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
r != null ? m.blur(I(r)) :
|
|
1520
|
-
o != null ? m.change(I(o)) :
|
|
1521
|
-
l != null ? m.input(I(l)) :
|
|
1517
|
+
s.value(t),
|
|
1518
|
+
s.class("bc-input"),
|
|
1519
|
+
r != null ? m.blur(I(r)) : $,
|
|
1520
|
+
o != null ? m.change(I(o)) : $,
|
|
1521
|
+
l != null ? m.input(I(l)) : $
|
|
1522
1522
|
)
|
|
1523
1523
|
});
|
|
1524
|
-
},
|
|
1524
|
+
}, uo = (e, ...n) => {
|
|
1525
1525
|
const { onChange: t, onBlur: r, ...o } = e;
|
|
1526
|
-
return
|
|
1526
|
+
return z(
|
|
1527
1527
|
{
|
|
1528
1528
|
label: "Email",
|
|
1529
1529
|
...o,
|
|
1530
|
-
content:
|
|
1530
|
+
content: Rn({
|
|
1531
1531
|
...o,
|
|
1532
1532
|
...Z(o.controller),
|
|
1533
1533
|
onChange: Q(o.controller, t),
|
|
1534
|
-
onBlur:
|
|
1534
|
+
onBlur: G(o.controller, r)
|
|
1535
1535
|
})
|
|
1536
1536
|
},
|
|
1537
1537
|
...n
|
|
1538
1538
|
);
|
|
1539
|
-
},
|
|
1539
|
+
}, ho = {
|
|
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 = `${
|
|
1546
|
-
return
|
|
1547
|
-
}),
|
|
1548
|
-
const t = `${
|
|
1544
|
+
}, qe = "$$tts-exp-", Un = (e, n) => F((t) => {
|
|
1545
|
+
const r = `${qe}${e}`;
|
|
1546
|
+
return U(w.on(n, (o) => Reflect.set(t, r, o)));
|
|
1547
|
+
}), po = (e, n) => {
|
|
1548
|
+
const t = `${qe}${e}`;
|
|
1549
1549
|
return (r) => {
|
|
1550
1550
|
n(Reflect.get(r.target, t));
|
|
1551
1551
|
};
|
|
1552
|
-
},
|
|
1553
|
-
const t = `${
|
|
1552
|
+
}, zn = (e, n) => {
|
|
1553
|
+
const t = `${qe}${e}`;
|
|
1554
1554
|
return (r) => {
|
|
1555
|
-
const o = r.target, l = o.selectedIndex,
|
|
1556
|
-
n(Reflect.get(
|
|
1555
|
+
const o = r.target, l = o.selectedIndex, a = o.options[l];
|
|
1556
|
+
n(Reflect.get(a, t));
|
|
1557
1557
|
};
|
|
1558
|
-
},
|
|
1558
|
+
}, De = {
|
|
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" ? De.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) => De.getOptionValues(e).some((r) => t(r, n))
|
|
1576
|
+
}, wt = (e, n, t) => Ve(
|
|
1577
1577
|
e,
|
|
1578
|
-
(r) =>
|
|
1578
|
+
(r) => Ft(r, {
|
|
1579
1579
|
value: (o) => {
|
|
1580
|
-
const l =
|
|
1580
|
+
const l = y(
|
|
1581
1581
|
o,
|
|
1582
1582
|
t
|
|
1583
|
-
)((
|
|
1583
|
+
)((a, u) => n(a.value, u));
|
|
1584
1584
|
return p.option(
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1585
|
+
U(l.dispose),
|
|
1586
|
+
s.selected(l),
|
|
1587
|
+
Un("value", o.$.value),
|
|
1588
1588
|
o.$.label
|
|
1589
1589
|
);
|
|
1590
1590
|
},
|
|
1591
1591
|
group: (o) => p.optgroup(
|
|
1592
|
-
|
|
1593
|
-
|
|
1592
|
+
s.label(o.$.group),
|
|
1593
|
+
je(
|
|
1594
1594
|
o.$.options,
|
|
1595
|
-
(l) =>
|
|
1595
|
+
(l) => wt(
|
|
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
|
+
), $t = (e) => {
|
|
1605
1605
|
const {
|
|
1606
1606
|
value: n,
|
|
1607
1607
|
onBlur: t,
|
|
@@ -1609,7 +1609,7 @@ const R = ({
|
|
|
1609
1609
|
options: o,
|
|
1610
1610
|
// TODO translation
|
|
1611
1611
|
unselectedLabel: l = "Select one ...",
|
|
1612
|
-
equality:
|
|
1612
|
+
equality: a = (c, i) => c === i
|
|
1613
1613
|
} = e;
|
|
1614
1614
|
let u;
|
|
1615
1615
|
return X({
|
|
@@ -1624,27 +1624,27 @@ const R = ({
|
|
|
1624
1624
|
const { removedNodes: h } = d[0];
|
|
1625
1625
|
h.length > 0 && (u.selectedIndex = 0);
|
|
1626
1626
|
});
|
|
1627
|
-
return i.observe(c, { childList: !0 }),
|
|
1627
|
+
return i.observe(c, { childList: !0 }), U(() => i.disconnect());
|
|
1628
1628
|
}),
|
|
1629
1629
|
Y(e),
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
p.option(
|
|
1633
|
-
|
|
1634
|
-
t != null ? m.blur(t) :
|
|
1635
|
-
r != null ? m.change(
|
|
1630
|
+
s.class("focus:outline-none bg-transparent"),
|
|
1631
|
+
s.class("w-full"),
|
|
1632
|
+
p.option(s.hidden("hidden"), l),
|
|
1633
|
+
je(o, (c) => wt(c, a, n)),
|
|
1634
|
+
t != null ? m.blur(t) : $,
|
|
1635
|
+
r != null ? m.change(zn("value", (c) => r(c))) : $
|
|
1636
1636
|
)
|
|
1637
1637
|
});
|
|
1638
|
-
},
|
|
1638
|
+
}, Gn = (e) => lt({
|
|
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 ? De.value(o.id, o.label) : o)
|
|
1646
1646
|
);
|
|
1647
|
-
return
|
|
1647
|
+
return $t({
|
|
1648
1648
|
...e,
|
|
1649
1649
|
options: t,
|
|
1650
1650
|
unselectedLabel: e.unselectedLabel,
|
|
@@ -1652,230 +1652,230 @@ const R = ({
|
|
|
1652
1652
|
});
|
|
1653
1653
|
},
|
|
1654
1654
|
loading: () => p.span(
|
|
1655
|
-
|
|
1655
|
+
s.class("animate-spin"),
|
|
1656
1656
|
// TODO translation
|
|
1657
1657
|
A.label("Loading..."),
|
|
1658
1658
|
"↻"
|
|
1659
1659
|
)
|
|
1660
|
-
}),
|
|
1660
|
+
}), bo = (e, ...n) => {
|
|
1661
1661
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1662
|
-
return
|
|
1662
|
+
return z(
|
|
1663
1663
|
{
|
|
1664
1664
|
...o,
|
|
1665
|
-
content:
|
|
1665
|
+
content: Gn({
|
|
1666
1666
|
...e,
|
|
1667
1667
|
...Z(o.controller),
|
|
1668
1668
|
onChange: Q(o.controller, r),
|
|
1669
|
-
onBlur:
|
|
1669
|
+
onBlur: G(o.controller, t)
|
|
1670
1670
|
})
|
|
1671
1671
|
},
|
|
1672
1672
|
...n
|
|
1673
1673
|
);
|
|
1674
|
-
},
|
|
1674
|
+
}, fo = (e, ...n) => {
|
|
1675
1675
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1676
|
-
return
|
|
1676
|
+
return z(
|
|
1677
1677
|
{
|
|
1678
1678
|
...o,
|
|
1679
|
-
content:
|
|
1679
|
+
content: $t({
|
|
1680
1680
|
...o,
|
|
1681
1681
|
...Z(o.controller),
|
|
1682
1682
|
onChange: Q(o.controller, r),
|
|
1683
|
-
onBlur:
|
|
1683
|
+
onBlur: G(o.controller, t)
|
|
1684
1684
|
})
|
|
1685
1685
|
},
|
|
1686
1686
|
...n
|
|
1687
1687
|
);
|
|
1688
|
-
},
|
|
1688
|
+
}, Ct = (e) => {
|
|
1689
1689
|
const { value: n, onBlur: t, onChange: r } = e;
|
|
1690
1690
|
return X({
|
|
1691
1691
|
...e,
|
|
1692
1692
|
input: oe.date(
|
|
1693
1693
|
Y(e),
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
t != null ? m.blur(I(t)) :
|
|
1697
|
-
r != null ? m.change(
|
|
1694
|
+
s.valueAsDate(n),
|
|
1695
|
+
s.class("bc-input"),
|
|
1696
|
+
t != null ? m.blur(I(t)) : $,
|
|
1697
|
+
r != null ? m.change(Ht(r)) : $
|
|
1698
1698
|
)
|
|
1699
1699
|
});
|
|
1700
|
-
},
|
|
1700
|
+
}, go = (e, ...n) => {
|
|
1701
1701
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1702
|
-
return
|
|
1702
|
+
return z(
|
|
1703
1703
|
{
|
|
1704
1704
|
...o,
|
|
1705
|
-
content:
|
|
1705
|
+
content: Ct({
|
|
1706
1706
|
...o,
|
|
1707
1707
|
...Z(o.controller),
|
|
1708
1708
|
onChange: Q(o.controller, r),
|
|
1709
|
-
onBlur:
|
|
1709
|
+
onBlur: G(o.controller, t)
|
|
1710
1710
|
})
|
|
1711
1711
|
},
|
|
1712
1712
|
...n
|
|
1713
1713
|
);
|
|
1714
|
-
},
|
|
1715
|
-
const n = e.getFullYear(), t = e.getMonth() + 1, r = e.getDate(), o = e.getHours(), l = e.getMinutes(),
|
|
1716
|
-
return `${n}-${t.toString().padStart(2, "0")}-${r.toString().padStart(2, "0")}T${o.toString().padStart(2, "0")}:${l.toString().padStart(2, "0")}:${
|
|
1717
|
-
},
|
|
1718
|
-
const { value: n, onBlur: t, onChange: r } = e, o = w.map(n, (l) => l != null ?
|
|
1714
|
+
}, Zn = (e) => {
|
|
1715
|
+
const n = e.getFullYear(), t = e.getMonth() + 1, r = e.getDate(), o = e.getHours(), l = e.getMinutes(), a = e.getSeconds();
|
|
1716
|
+
return `${n}-${t.toString().padStart(2, "0")}-${r.toString().padStart(2, "0")}T${o.toString().padStart(2, "0")}:${l.toString().padStart(2, "0")}:${a.toString().padStart(2, "0")}`;
|
|
1717
|
+
}, St = (e) => {
|
|
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,
|
|
1721
1721
|
input: oe["datetime-local"](
|
|
1722
1722
|
Y(e),
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
t != null ? m.blur(I(t)) :
|
|
1726
|
-
r != null ? m.change(
|
|
1723
|
+
s.value(w.map(o, (l) => l ?? null)),
|
|
1724
|
+
s.class("bc-input"),
|
|
1725
|
+
t != null ? m.blur(I(t)) : $,
|
|
1726
|
+
r != null ? m.change(Pt(r)) : $
|
|
1727
1727
|
)
|
|
1728
1728
|
});
|
|
1729
|
-
},
|
|
1729
|
+
}, mo = (e, ...n) => {
|
|
1730
1730
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1731
|
-
return
|
|
1731
|
+
return z(
|
|
1732
1732
|
{
|
|
1733
1733
|
...o,
|
|
1734
|
-
content:
|
|
1734
|
+
content: St({
|
|
1735
1735
|
...o,
|
|
1736
1736
|
...Z(o.controller),
|
|
1737
1737
|
onChange: Q(o.controller, r),
|
|
1738
|
-
onBlur:
|
|
1738
|
+
onBlur: G(o.controller, t)
|
|
1739
1739
|
})
|
|
1740
1740
|
},
|
|
1741
1741
|
...n
|
|
1742
1742
|
);
|
|
1743
|
-
},
|
|
1743
|
+
}, ko = (e, ...n) => {
|
|
1744
1744
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1745
|
-
return
|
|
1745
|
+
return z(
|
|
1746
1746
|
{
|
|
1747
1747
|
...o,
|
|
1748
|
-
content:
|
|
1748
|
+
content: Ct({
|
|
1749
1749
|
...o,
|
|
1750
|
-
...
|
|
1750
|
+
...Me(
|
|
1751
1751
|
o.controller,
|
|
1752
1752
|
(l) => l != null && l !== "" ? new Date(l) : null
|
|
1753
1753
|
),
|
|
1754
|
-
onChange:
|
|
1754
|
+
onChange: We(
|
|
1755
1755
|
o.controller,
|
|
1756
1756
|
(l) => l != null ? l.toISOString().split("T")[0] : null,
|
|
1757
1757
|
r
|
|
1758
1758
|
),
|
|
1759
|
-
onBlur:
|
|
1759
|
+
onBlur: G(o.controller, t)
|
|
1760
1760
|
})
|
|
1761
1761
|
},
|
|
1762
1762
|
...n
|
|
1763
1763
|
);
|
|
1764
|
-
},
|
|
1764
|
+
}, Kn = (e) => new Date(e), Xn = (e) => e.toISOString(), xo = (e, ...n) => {
|
|
1765
1765
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1766
|
-
return
|
|
1766
|
+
return z(
|
|
1767
1767
|
{
|
|
1768
1768
|
...o,
|
|
1769
|
-
content:
|
|
1769
|
+
content: St({
|
|
1770
1770
|
...o,
|
|
1771
|
-
...
|
|
1771
|
+
...Me(
|
|
1772
1772
|
o.controller,
|
|
1773
|
-
(l) => l != null && l !== "" ?
|
|
1773
|
+
(l) => l != null && l !== "" ? Kn(l) : null
|
|
1774
1774
|
),
|
|
1775
|
-
onChange:
|
|
1775
|
+
onChange: We(
|
|
1776
1776
|
o.controller,
|
|
1777
|
-
(l) => l != null ?
|
|
1777
|
+
(l) => l != null ? Xn(l) : null,
|
|
1778
1778
|
r
|
|
1779
1779
|
),
|
|
1780
|
-
onBlur:
|
|
1780
|
+
onBlur: G(o.controller, t)
|
|
1781
1781
|
})
|
|
1782
1782
|
},
|
|
1783
1783
|
...n
|
|
1784
1784
|
);
|
|
1785
|
-
},
|
|
1785
|
+
}, $e = (e) => typeof e == "string" && e.trim() === "" ? null : e, Et = (e) => e ?? "", Yn = (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
|
-
|
|
1792
|
-
|
|
1793
|
-
t != null ? m.blur(t) :
|
|
1794
|
-
r != null ? m.change(I((
|
|
1795
|
-
o != null ? m.input(I((
|
|
1791
|
+
s.value(w.map(n, Et)),
|
|
1792
|
+
s.class("bc-input"),
|
|
1793
|
+
t != null ? m.blur(t) : $,
|
|
1794
|
+
r != null ? m.change(I((a) => r($e(a)))) : $,
|
|
1795
|
+
o != null ? m.input(I((a) => o($e(a)))) : $
|
|
1796
1796
|
)
|
|
1797
1797
|
});
|
|
1798
|
-
},
|
|
1798
|
+
}, Qn = (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
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
t != null ? m.blur(t) :
|
|
1808
|
-
r != null ? m.change(I((
|
|
1809
|
-
o != null ? m.input(I((
|
|
1804
|
+
s.rows(l ?? 10),
|
|
1805
|
+
s.value(w.map(n, Et)),
|
|
1806
|
+
s.class("bc-input"),
|
|
1807
|
+
t != null ? m.blur(t) : $,
|
|
1808
|
+
r != null ? m.change(I((a) => r($e(a)))) : $,
|
|
1809
|
+
o != null ? m.input(I((a) => o($e(a)))) : $
|
|
1810
1810
|
)
|
|
1811
1811
|
});
|
|
1812
|
-
},
|
|
1812
|
+
}, vo = (e, ...n) => {
|
|
1813
1813
|
const { onBlur: t, onChange: r, rows: o, ...l } = e;
|
|
1814
|
-
return
|
|
1814
|
+
return z(
|
|
1815
1815
|
{
|
|
1816
1816
|
...l,
|
|
1817
|
-
content:
|
|
1817
|
+
content: Qn({
|
|
1818
1818
|
...l,
|
|
1819
1819
|
...Z(l.controller),
|
|
1820
1820
|
rows: o,
|
|
1821
1821
|
onChange: Q(l.controller, r),
|
|
1822
|
-
onBlur:
|
|
1822
|
+
onBlur: G(l.controller, t)
|
|
1823
1823
|
})
|
|
1824
1824
|
},
|
|
1825
1825
|
...n
|
|
1826
1826
|
);
|
|
1827
|
-
},
|
|
1827
|
+
}, yo = (e, ...n) => {
|
|
1828
1828
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1829
|
-
return
|
|
1829
|
+
return z(
|
|
1830
1830
|
{
|
|
1831
1831
|
...o,
|
|
1832
|
-
content:
|
|
1832
|
+
content: Yn({
|
|
1833
1833
|
...o,
|
|
1834
1834
|
...Z(o.controller),
|
|
1835
1835
|
onChange: Q(o.controller, r),
|
|
1836
|
-
onBlur:
|
|
1836
|
+
onBlur: G(o.controller, t)
|
|
1837
1837
|
})
|
|
1838
1838
|
},
|
|
1839
1839
|
...n
|
|
1840
1840
|
);
|
|
1841
|
-
},
|
|
1842
|
-
const { value: n, step: t, min: r, max: o, onBlur: l, onChange:
|
|
1841
|
+
}, Jn = (e) => {
|
|
1842
|
+
const { value: n, step: t, min: r, max: o, onBlur: l, onChange: a, onInput: u } = e;
|
|
1843
1843
|
return X({
|
|
1844
1844
|
...e,
|
|
1845
1845
|
input: oe.number(
|
|
1846
1846
|
Y(e),
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
l != null ? m.blur(I(l)) :
|
|
1853
|
-
|
|
1854
|
-
u != null ? m.input(Be(u)) :
|
|
1847
|
+
s.valueAsNumber(n),
|
|
1848
|
+
s.step(t),
|
|
1849
|
+
s.min(r),
|
|
1850
|
+
s.max(o),
|
|
1851
|
+
s.class("bc-input bc-number-input"),
|
|
1852
|
+
l != null ? m.blur(I(l)) : $,
|
|
1853
|
+
a != null ? m.change(Be(a)) : $,
|
|
1854
|
+
u != null ? m.input(Be(u)) : $
|
|
1855
1855
|
)
|
|
1856
1856
|
});
|
|
1857
|
-
},
|
|
1857
|
+
}, wo = (e, ...n) => {
|
|
1858
1858
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1859
|
-
return
|
|
1859
|
+
return z(
|
|
1860
1860
|
{
|
|
1861
1861
|
...o,
|
|
1862
|
-
content:
|
|
1862
|
+
content: Jn({
|
|
1863
1863
|
...o,
|
|
1864
1864
|
...Z(o.controller),
|
|
1865
1865
|
onChange: Q(o.controller, r),
|
|
1866
|
-
onBlur:
|
|
1866
|
+
onBlur: G(o.controller, t)
|
|
1867
1867
|
})
|
|
1868
1868
|
},
|
|
1869
1869
|
...n
|
|
1870
1870
|
);
|
|
1871
|
-
},
|
|
1871
|
+
}, er = (e) => {
|
|
1872
1872
|
const {
|
|
1873
1873
|
value: n,
|
|
1874
1874
|
onBlur: t,
|
|
1875
1875
|
onChange: r,
|
|
1876
1876
|
onInput: o,
|
|
1877
1877
|
before: l,
|
|
1878
|
-
after:
|
|
1878
|
+
after: a,
|
|
1879
1879
|
hasError: u,
|
|
1880
1880
|
disabled: c,
|
|
1881
1881
|
autocomplete: i,
|
|
@@ -1884,10 +1884,10 @@ const R = ({
|
|
|
1884
1884
|
} = e, f = {
|
|
1885
1885
|
name: "password",
|
|
1886
1886
|
...h
|
|
1887
|
-
}, b =
|
|
1887
|
+
}, b = R(!0), k = y(
|
|
1888
1888
|
b,
|
|
1889
1889
|
i
|
|
1890
|
-
)((S, g) => S ? g ?? "current-password" : "off"), C =
|
|
1890
|
+
)((S, g) => S ? g ?? "current-password" : "off"), C = y(
|
|
1891
1891
|
b,
|
|
1892
1892
|
d
|
|
1893
1893
|
// TODO translation
|
|
@@ -1899,66 +1899,66 @@ const R = ({
|
|
|
1899
1899
|
input: p.input(
|
|
1900
1900
|
Y({
|
|
1901
1901
|
...f,
|
|
1902
|
-
autocomplete:
|
|
1902
|
+
autocomplete: k,
|
|
1903
1903
|
placeholder: C
|
|
1904
1904
|
}),
|
|
1905
|
-
|
|
1905
|
+
N(
|
|
1906
1906
|
b,
|
|
1907
|
-
() => L(
|
|
1908
|
-
() => L(
|
|
1907
|
+
() => L(s.type("password")),
|
|
1908
|
+
() => L(s.type("text"))
|
|
1909
1909
|
),
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
t != null ? m.blur(I(t)) :
|
|
1913
|
-
r != null ? m.change(I(r)) :
|
|
1914
|
-
o != null ? m.input(I(o)) :
|
|
1910
|
+
s.class("bc-input"),
|
|
1911
|
+
s.value(n),
|
|
1912
|
+
t != null ? m.blur(I(t)) : $,
|
|
1913
|
+
r != null ? m.change(I(r)) : $,
|
|
1914
|
+
o != null ? m.input(I(o)) : $
|
|
1915
1915
|
),
|
|
1916
|
-
after:
|
|
1917
|
-
|
|
1916
|
+
after: a ?? p.button(
|
|
1917
|
+
s.class("bc-input-container__password-toggle"),
|
|
1918
1918
|
// TODO translation
|
|
1919
1919
|
A.label("Toggle password visibility"),
|
|
1920
1920
|
m.click(() => b.update((S) => !S)),
|
|
1921
|
-
|
|
1921
|
+
N(
|
|
1922
1922
|
b,
|
|
1923
1923
|
() => K({ icon: "line-md--eye" }),
|
|
1924
1924
|
() => K({ icon: "line-md--eye-off" })
|
|
1925
1925
|
)
|
|
1926
1926
|
)
|
|
1927
1927
|
});
|
|
1928
|
-
},
|
|
1928
|
+
}, $o = (e, ...n) => {
|
|
1929
1929
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1930
|
-
return
|
|
1930
|
+
return z(
|
|
1931
1931
|
{
|
|
1932
1932
|
label: "Password",
|
|
1933
1933
|
...o,
|
|
1934
|
-
content:
|
|
1934
|
+
content: er({
|
|
1935
1935
|
...o,
|
|
1936
1936
|
...Z(o.controller),
|
|
1937
1937
|
onChange: Q(o.controller, r),
|
|
1938
|
-
onBlur:
|
|
1938
|
+
onBlur: G(o.controller, t)
|
|
1939
1939
|
})
|
|
1940
1940
|
},
|
|
1941
1941
|
...n
|
|
1942
1942
|
);
|
|
1943
1943
|
};
|
|
1944
|
-
function
|
|
1944
|
+
function tr(e, n) {
|
|
1945
1945
|
return e.length === n.length && e.every((t, r) => t === n[r]);
|
|
1946
1946
|
}
|
|
1947
|
-
function
|
|
1947
|
+
function nr({
|
|
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
|
|
1954
|
+
const a = D(e).map(([d, h]) => ({
|
|
1955
1955
|
key: d,
|
|
1956
1956
|
label: h
|
|
1957
1957
|
})), u = Object.fromEntries(
|
|
1958
|
-
|
|
1959
|
-
), c =
|
|
1960
|
-
|
|
1961
|
-
|
|
1958
|
+
a.map((d, h) => [d.key, h])
|
|
1959
|
+
), c = R(
|
|
1960
|
+
a.map(() => ({ left: 0, width: 0 })),
|
|
1961
|
+
tr
|
|
1962
1962
|
);
|
|
1963
1963
|
function i(d, h) {
|
|
1964
1964
|
const f = [
|
|
@@ -1969,8 +1969,8 @@ function er({
|
|
|
1969
1969
|
return h && f.push("bc-segmented-control--disabled"), f.join(" ");
|
|
1970
1970
|
}
|
|
1971
1971
|
return p.div(
|
|
1972
|
-
|
|
1973
|
-
|
|
1972
|
+
s.class(
|
|
1973
|
+
y(
|
|
1974
1974
|
r,
|
|
1975
1975
|
o
|
|
1976
1976
|
)(
|
|
@@ -1978,11 +1978,11 @@ function er({
|
|
|
1978
1978
|
)
|
|
1979
1979
|
),
|
|
1980
1980
|
p.div(
|
|
1981
|
-
|
|
1981
|
+
s.class("bc-segmented-control__container"),
|
|
1982
1982
|
p.div(
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1983
|
+
s.class("bc-segmented-control__indicator"),
|
|
1984
|
+
v.width(
|
|
1985
|
+
y(
|
|
1986
1986
|
n,
|
|
1987
1987
|
c
|
|
1988
1988
|
)((d, h) => {
|
|
@@ -1990,8 +1990,8 @@ function er({
|
|
|
1990
1990
|
return `${f}px`;
|
|
1991
1991
|
})
|
|
1992
1992
|
),
|
|
1993
|
-
|
|
1994
|
-
|
|
1993
|
+
v.left(
|
|
1994
|
+
y(
|
|
1995
1995
|
n,
|
|
1996
1996
|
c
|
|
1997
1997
|
)((d, h) => {
|
|
@@ -2001,17 +2001,17 @@ function er({
|
|
|
2001
2001
|
)
|
|
2002
2002
|
),
|
|
2003
2003
|
// clickable buttons
|
|
2004
|
-
|
|
2004
|
+
a.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
|
}),
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2008
|
+
s.disabled(o),
|
|
2009
|
+
s.class("bc-segmented-control__segment"),
|
|
2010
|
+
s.class(
|
|
2011
2011
|
w.map(n, (b) => b === h ? "bc-segmented-control__segment--active" : "bc-segmented-control__segment--inactive")
|
|
2012
2012
|
),
|
|
2013
2013
|
F((b) => {
|
|
2014
|
-
const
|
|
2014
|
+
const k = le(() => {
|
|
2015
2015
|
c.update((C) => {
|
|
2016
2016
|
const S = [...C];
|
|
2017
2017
|
return S[f] = {
|
|
@@ -2020,7 +2020,7 @@ function er({
|
|
|
2020
2020
|
}, S;
|
|
2021
2021
|
});
|
|
2022
2022
|
});
|
|
2023
|
-
return
|
|
2023
|
+
return U(k);
|
|
2024
2024
|
}),
|
|
2025
2025
|
d
|
|
2026
2026
|
))
|
|
@@ -2028,104 +2028,104 @@ function er({
|
|
|
2028
2028
|
...l
|
|
2029
2029
|
);
|
|
2030
2030
|
}
|
|
2031
|
-
const
|
|
2031
|
+
const Co = (e, ...n) => {
|
|
2032
2032
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
2033
|
-
return
|
|
2033
|
+
return z(
|
|
2034
2034
|
{
|
|
2035
2035
|
...o,
|
|
2036
|
-
content:
|
|
2036
|
+
content: yt({
|
|
2037
2037
|
...o,
|
|
2038
|
-
...
|
|
2038
|
+
...Me(
|
|
2039
2039
|
o.controller,
|
|
2040
2040
|
(l) => new Date(l)
|
|
2041
2041
|
),
|
|
2042
|
-
onChange:
|
|
2042
|
+
onChange: We(
|
|
2043
2043
|
o.controller,
|
|
2044
2044
|
(l) => l.toISOString(),
|
|
2045
2045
|
r
|
|
2046
2046
|
),
|
|
2047
|
-
onBlur:
|
|
2047
|
+
onBlur: G(o.controller, t)
|
|
2048
2048
|
})
|
|
2049
2049
|
},
|
|
2050
2050
|
...n
|
|
2051
2051
|
);
|
|
2052
|
-
},
|
|
2053
|
-
const { value: n, onChange: t, onBlur: r } = e, o =
|
|
2052
|
+
}, rr = (e) => {
|
|
2053
|
+
const { value: n, onChange: t, onBlur: r } = e, o = R(""), l = (u) => {
|
|
2054
2054
|
t == null || t(w.get(n).filter((c) => c !== u));
|
|
2055
|
-
},
|
|
2055
|
+
}, a = () => {
|
|
2056
2056
|
const u = o.value.trim(), c = w.get(n);
|
|
2057
2057
|
u === "" || c.includes(u) || (o.set(""), t == null || t([...c, u]));
|
|
2058
2058
|
};
|
|
2059
2059
|
return X({
|
|
2060
2060
|
...e,
|
|
2061
2061
|
input: L(
|
|
2062
|
-
|
|
2063
|
-
|
|
2062
|
+
s.class("bc-input-container__tags"),
|
|
2063
|
+
je(n, (u) => On({ value: u, onClose: () => l(u.value) })),
|
|
2064
2064
|
oe.text(
|
|
2065
2065
|
Y(e),
|
|
2066
|
-
|
|
2067
|
-
|
|
2066
|
+
s.value(o),
|
|
2067
|
+
s.class("bc-input bc-input-container__tags-input"),
|
|
2068
2068
|
m.input(I(o.set)),
|
|
2069
|
-
t != null ? m.change(
|
|
2070
|
-
r != null ? m.blur(r) :
|
|
2069
|
+
t != null ? m.change(a) : $,
|
|
2070
|
+
r != null ? m.blur(r) : $
|
|
2071
2071
|
)
|
|
2072
2072
|
)
|
|
2073
2073
|
});
|
|
2074
|
-
},
|
|
2074
|
+
}, So = (e, ...n) => {
|
|
2075
2075
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
2076
|
-
return
|
|
2076
|
+
return z(
|
|
2077
2077
|
{
|
|
2078
2078
|
...o,
|
|
2079
|
-
content:
|
|
2079
|
+
content: rr({
|
|
2080
2080
|
...o,
|
|
2081
2081
|
...Z(o.controller),
|
|
2082
2082
|
onChange: Q(o.controller, r),
|
|
2083
|
-
onBlur:
|
|
2083
|
+
onBlur: G(o.controller, t)
|
|
2084
2084
|
})
|
|
2085
2085
|
},
|
|
2086
2086
|
...n
|
|
2087
2087
|
);
|
|
2088
|
-
},
|
|
2088
|
+
}, or = (e) => {
|
|
2089
2089
|
const { value: n, onBlur: t, onChange: r, onInput: o, rows: l } = e;
|
|
2090
2090
|
return X({
|
|
2091
2091
|
...e,
|
|
2092
2092
|
input: p.textarea(
|
|
2093
2093
|
Y(e),
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2094
|
+
s.rows(l ?? 10),
|
|
2095
|
+
s.value(n),
|
|
2096
|
+
s.class("bc-input"),
|
|
2097
2097
|
// Add accessibility attributes from parent wrapper
|
|
2098
|
-
F((
|
|
2099
|
-
const u =
|
|
2098
|
+
F((a) => {
|
|
2099
|
+
const u = a.closest("[data-describedby]");
|
|
2100
2100
|
if (u) {
|
|
2101
2101
|
const c = u.getAttribute("data-describedby"), i = u.getAttribute("data-required"), d = u.getAttribute("data-invalid");
|
|
2102
|
-
c &&
|
|
2102
|
+
c && a.setAttribute("aria-describedby", c), i === "true" && a.setAttribute("aria-required", "true"), d === "true" && a.setAttribute("aria-invalid", "true");
|
|
2103
2103
|
}
|
|
2104
2104
|
}),
|
|
2105
|
-
t != null ? m.blur(I(t)) :
|
|
2106
|
-
r != null ? m.change(I(r)) :
|
|
2107
|
-
o != null ? m.input(I(o)) :
|
|
2105
|
+
t != null ? m.blur(I(t)) : $,
|
|
2106
|
+
r != null ? m.change(I(r)) : $,
|
|
2107
|
+
o != null ? m.input(I(o)) : $
|
|
2108
2108
|
)
|
|
2109
2109
|
});
|
|
2110
|
-
},
|
|
2110
|
+
}, Eo = (e, ...n) => {
|
|
2111
2111
|
const { onBlur: t, onChange: r, rows: o, ...l } = e;
|
|
2112
|
-
return
|
|
2112
|
+
return z(
|
|
2113
2113
|
{
|
|
2114
2114
|
...l,
|
|
2115
|
-
content:
|
|
2115
|
+
content: or({
|
|
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: G(l.controller, t)
|
|
2122
2122
|
})
|
|
2123
2123
|
},
|
|
2124
2124
|
...n
|
|
2125
2125
|
);
|
|
2126
2126
|
};
|
|
2127
|
-
function
|
|
2128
|
-
return
|
|
2127
|
+
function _o(e, n, t) {
|
|
2128
|
+
return Ve(
|
|
2129
2129
|
e.value,
|
|
2130
2130
|
() => {
|
|
2131
2131
|
const r = e.transform(
|
|
@@ -2133,24 +2133,24 @@ function Eo(e, n, t) {
|
|
|
2133
2133
|
(o) => o
|
|
2134
2134
|
);
|
|
2135
2135
|
return L(
|
|
2136
|
-
|
|
2136
|
+
U(() => r.dispose()),
|
|
2137
2137
|
n(r)
|
|
2138
2138
|
);
|
|
2139
2139
|
},
|
|
2140
2140
|
t
|
|
2141
2141
|
);
|
|
2142
2142
|
}
|
|
2143
|
-
function
|
|
2143
|
+
function Ao(e, n, t) {
|
|
2144
2144
|
const r = e.length.map((o) => o);
|
|
2145
2145
|
return L(
|
|
2146
|
-
|
|
2147
|
-
|
|
2146
|
+
U(() => r.dispose()),
|
|
2147
|
+
Mt(
|
|
2148
2148
|
r,
|
|
2149
2149
|
(o) => {
|
|
2150
|
-
const l = e.item(o.index),
|
|
2150
|
+
const l = e.item(o.index), a = [];
|
|
2151
2151
|
return L(
|
|
2152
|
-
|
|
2153
|
-
l.dispose(),
|
|
2152
|
+
U(() => {
|
|
2153
|
+
l.dispose(), a.forEach((u) => u());
|
|
2154
2154
|
}),
|
|
2155
2155
|
n({
|
|
2156
2156
|
list: e,
|
|
@@ -2178,23 +2178,23 @@ function _o(e, n, t) {
|
|
|
2178
2178
|
const c = (() => {
|
|
2179
2179
|
switch (u) {
|
|
2180
2180
|
case "up":
|
|
2181
|
-
return
|
|
2181
|
+
return ze(o.index > 0);
|
|
2182
2182
|
case "down":
|
|
2183
2183
|
return e.length.map((i) => o.index < i - 1);
|
|
2184
2184
|
}
|
|
2185
2185
|
})();
|
|
2186
|
-
return
|
|
2186
|
+
return a.push(() => c.dispose()), c;
|
|
2187
2187
|
},
|
|
2188
2188
|
cannotMove: (u) => {
|
|
2189
2189
|
const c = (() => {
|
|
2190
2190
|
switch (u) {
|
|
2191
2191
|
case "up":
|
|
2192
|
-
return
|
|
2192
|
+
return ze(o.index === 0);
|
|
2193
2193
|
case "down":
|
|
2194
2194
|
return e.length.map((i) => o.index === i - 1);
|
|
2195
2195
|
}
|
|
2196
2196
|
})();
|
|
2197
|
-
return
|
|
2197
|
+
return a.push(() => c.dispose()), c;
|
|
2198
2198
|
}
|
|
2199
2199
|
})
|
|
2200
2200
|
);
|
|
@@ -2203,24 +2203,24 @@ function _o(e, n, t) {
|
|
|
2203
2203
|
)
|
|
2204
2204
|
);
|
|
2205
2205
|
}
|
|
2206
|
-
function
|
|
2206
|
+
function To(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 lr(e) {
|
|
2213
2213
|
return typeof e == "number" ? `[${e}]` : `.${e}`;
|
|
2214
2214
|
}
|
|
2215
|
-
function
|
|
2215
|
+
function sr(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(lr)
|
|
2221
2221
|
].join("");
|
|
2222
2222
|
}
|
|
2223
|
-
function
|
|
2223
|
+
function Ne(e) {
|
|
2224
2224
|
return function(t) {
|
|
2225
2225
|
var o;
|
|
2226
2226
|
if (t.type === "Valid") return t;
|
|
@@ -2231,7 +2231,7 @@ function Me(e) {
|
|
|
2231
2231
|
};
|
|
2232
2232
|
}
|
|
2233
2233
|
var ie, pe;
|
|
2234
|
-
const
|
|
2234
|
+
const Re = class Re {
|
|
2235
2235
|
constructor(n, t, r, o, l) {
|
|
2236
2236
|
B(this, "path");
|
|
2237
2237
|
B(this, "change");
|
|
@@ -2241,7 +2241,7 @@ const We = class We {
|
|
|
2241
2241
|
B(this, "hasError");
|
|
2242
2242
|
B(this, "dependencyErrors");
|
|
2243
2243
|
me(this, ie, {
|
|
2244
|
-
disabled:
|
|
2244
|
+
disabled: R(!1)
|
|
2245
2245
|
});
|
|
2246
2246
|
B(this, "parent");
|
|
2247
2247
|
B(this, "disabled");
|
|
@@ -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 = _e) => new
|
|
2267
|
+
B(this, "array", (n = _e) => new cr(
|
|
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 = _e) => new
|
|
2276
|
+
B(this, "object", (n = _e) => new ar(
|
|
2277
2277
|
this.path,
|
|
2278
2278
|
this.change,
|
|
2279
2279
|
this.value,
|
|
@@ -2281,42 +2281,42 @@ const We = class We {
|
|
|
2281
2281
|
this.parent,
|
|
2282
2282
|
n
|
|
2283
2283
|
));
|
|
2284
|
-
B(this, "transform", (n, t, r = [], o = _e) => new
|
|
2284
|
+
B(this, "transform", (n, t, r = [], o = _e) => new Re(
|
|
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(Ne(r)),
|
|
2289
2289
|
this.parent
|
|
2290
2290
|
));
|
|
2291
|
-
this.path = n, this.change = t, this.value = r, this.status = o, this.error = o.map((
|
|
2292
|
-
(
|
|
2293
|
-
), this.parent = l, this.disabled =
|
|
2291
|
+
this.path = n, this.change = t, this.value = r, this.status = o, this.error = o.map((a) => a.type === "Invalid" ? a.error : void 0), this.hasError = this.error.map((a) => a != null), this.dependencyErrors = o.map(
|
|
2292
|
+
(a) => a.type === "Invalid" ? a.dependencies : void 0
|
|
2293
|
+
), this.parent = l, this.disabled = y(
|
|
2294
2294
|
j(this, ie).disabled,
|
|
2295
2295
|
l.disabled
|
|
2296
|
-
)((
|
|
2296
|
+
)((a, u) => a || u), this.onDispose(() => {
|
|
2297
2297
|
j(this, ie).disabled.dispose(), this.disabled.dispose(), this.error.dispose(), this.dependencyErrors.dispose();
|
|
2298
2298
|
});
|
|
2299
2299
|
}
|
|
2300
2300
|
get name() {
|
|
2301
|
-
return
|
|
2301
|
+
return sr(this.path);
|
|
2302
2302
|
}
|
|
2303
2303
|
};
|
|
2304
2304
|
ie = new WeakMap(), pe = new WeakMap();
|
|
2305
|
-
let de =
|
|
2306
|
-
var
|
|
2307
|
-
class
|
|
2308
|
-
constructor(t, r, o, l,
|
|
2305
|
+
let de = Re;
|
|
2306
|
+
var se;
|
|
2307
|
+
class ar extends de {
|
|
2308
|
+
constructor(t, r, o, l, a, u) {
|
|
2309
2309
|
super(
|
|
2310
2310
|
t,
|
|
2311
2311
|
r,
|
|
2312
2312
|
o.map((c) => c ?? {}, u),
|
|
2313
2313
|
l,
|
|
2314
|
-
|
|
2314
|
+
a
|
|
2315
2315
|
);
|
|
2316
|
-
me(this,
|
|
2316
|
+
me(this, se, /* @__PURE__ */ new Map());
|
|
2317
2317
|
B(this, "field", (t) => {
|
|
2318
|
-
if (j(this,
|
|
2319
|
-
return j(this,
|
|
2318
|
+
if (j(this, se).has(t))
|
|
2319
|
+
return j(this, se).get(t);
|
|
2320
2320
|
const r = async (l) => {
|
|
2321
2321
|
this.change({
|
|
2322
2322
|
...this.value.value,
|
|
@@ -2326,37 +2326,37 @@ class lr 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(Ne([t])),
|
|
2330
2330
|
{ disabled: this.disabled }
|
|
2331
2331
|
);
|
|
2332
|
-
return j(this,
|
|
2332
|
+
return j(this, se).set(t, o), o;
|
|
2333
2333
|
});
|
|
2334
2334
|
this.onDispose(() => {
|
|
2335
|
-
for (const c of j(this,
|
|
2335
|
+
for (const c of j(this, se).values())
|
|
2336
2336
|
c.dispose();
|
|
2337
|
-
j(this,
|
|
2337
|
+
j(this, se).clear();
|
|
2338
2338
|
});
|
|
2339
2339
|
}
|
|
2340
2340
|
}
|
|
2341
|
-
|
|
2341
|
+
se = new WeakMap();
|
|
2342
2342
|
var re;
|
|
2343
|
-
class
|
|
2344
|
-
constructor(t, r, o, l,
|
|
2343
|
+
class cr extends de {
|
|
2344
|
+
constructor(t, r, o, l, a, u) {
|
|
2345
2345
|
const c = o.map((d) => d ?? [], u);
|
|
2346
|
-
super(t, r, c, l,
|
|
2346
|
+
super(t, r, c, l, a);
|
|
2347
2347
|
me(this, re, new Array());
|
|
2348
2348
|
B(this, "length");
|
|
2349
2349
|
B(this, "item", (t) => {
|
|
2350
2350
|
if (j(this, re)[t])
|
|
2351
2351
|
return j(this, re)[t];
|
|
2352
2352
|
const r = async (l) => {
|
|
2353
|
-
const
|
|
2354
|
-
|
|
2353
|
+
const a = this.value.value.slice();
|
|
2354
|
+
a[t] = l, this.change(a);
|
|
2355
2355
|
}, o = new 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(Ne([t])),
|
|
2360
2360
|
{ disabled: this.disabled }
|
|
2361
2361
|
);
|
|
2362
2362
|
return j(this, re)[t] = o, o;
|
|
@@ -2382,8 +2382,8 @@ class ar extends de {
|
|
|
2382
2382
|
});
|
|
2383
2383
|
B(this, "move", (t, r, o = 1) => {
|
|
2384
2384
|
if (o < 1 || t === r) return;
|
|
2385
|
-
const l = this.value.value.slice(),
|
|
2386
|
-
l.splice(r, 0, ...
|
|
2385
|
+
const l = this.value.value.slice(), a = l.splice(t, o);
|
|
2386
|
+
l.splice(r, 0, ...a), this.change(l);
|
|
2387
2387
|
});
|
|
2388
2388
|
const i = c.on((d) => {
|
|
2389
2389
|
const h = j(this, re).length - d.length;
|
|
@@ -2397,11 +2397,11 @@ class ar extends de {
|
|
|
2397
2397
|
}
|
|
2398
2398
|
}
|
|
2399
2399
|
re = new WeakMap();
|
|
2400
|
-
const
|
|
2401
|
-
mark:
|
|
2400
|
+
const _t = {
|
|
2401
|
+
mark: rt("Theme"),
|
|
2402
2402
|
// Create function returns the value and cleanup
|
|
2403
2403
|
create: (e) => {
|
|
2404
|
-
const n =
|
|
2404
|
+
const n = Zt(), t = ot({
|
|
2405
2405
|
key: "beatui-appearance-preference",
|
|
2406
2406
|
defaultValue: "system"
|
|
2407
2407
|
}), r = () => {
|
|
@@ -2409,40 +2409,40 @@ const St = {
|
|
|
2409
2409
|
};
|
|
2410
2410
|
return {
|
|
2411
2411
|
value: {
|
|
2412
|
-
appearance:
|
|
2412
|
+
appearance: y(
|
|
2413
2413
|
n,
|
|
2414
2414
|
t
|
|
2415
|
-
)((
|
|
2415
|
+
)((a, u) => u === "system" ? a : u),
|
|
2416
2416
|
appearancePreference: t,
|
|
2417
|
-
setAppearancePreference: (
|
|
2418
|
-
t.set(
|
|
2417
|
+
setAppearancePreference: (a) => {
|
|
2418
|
+
t.set(a);
|
|
2419
2419
|
}
|
|
2420
2420
|
},
|
|
2421
2421
|
dispose: r
|
|
2422
2422
|
};
|
|
2423
2423
|
}
|
|
2424
|
-
},
|
|
2425
|
-
|
|
2426
|
-
({ appearance: e }) =>
|
|
2424
|
+
}, Bo = () => xe(
|
|
2425
|
+
_t,
|
|
2426
|
+
({ appearance: e }) => Wt("body", s.class(e.map((n) => `b-${n}`)))
|
|
2427
2427
|
);
|
|
2428
|
-
function
|
|
2428
|
+
function ir({
|
|
2429
2429
|
value: e,
|
|
2430
2430
|
onChange: n
|
|
2431
2431
|
}) {
|
|
2432
|
-
return
|
|
2432
|
+
return nr({
|
|
2433
2433
|
size: "sm",
|
|
2434
2434
|
value: e,
|
|
2435
2435
|
options: {
|
|
2436
2436
|
system: p.span(
|
|
2437
|
-
|
|
2437
|
+
s.title("System"),
|
|
2438
2438
|
K({ icon: "line-md:laptop", color: "gray" })
|
|
2439
2439
|
),
|
|
2440
2440
|
light: p.span(
|
|
2441
|
-
|
|
2441
|
+
s.title("Light"),
|
|
2442
2442
|
K({ icon: "line-md:sunny-twotone-loop", color: "yellow" })
|
|
2443
2443
|
),
|
|
2444
2444
|
dark: p.span(
|
|
2445
|
-
|
|
2445
|
+
s.title("Dark"),
|
|
2446
2446
|
K({
|
|
2447
2447
|
icon: "line-md:sunny-outline-to-moon-alt-loop-transition",
|
|
2448
2448
|
color: "blue"
|
|
@@ -2452,28 +2452,28 @@ function sr({
|
|
|
2452
2452
|
onChange: n
|
|
2453
2453
|
});
|
|
2454
2454
|
}
|
|
2455
|
-
function
|
|
2456
|
-
return
|
|
2457
|
-
|
|
2458
|
-
({ appearancePreference: e, setAppearancePreference: n }) =>
|
|
2455
|
+
function Io() {
|
|
2456
|
+
return xe(
|
|
2457
|
+
_t,
|
|
2458
|
+
({ appearancePreference: e, setAppearancePreference: n }) => ir({
|
|
2459
2459
|
value: e,
|
|
2460
2460
|
onChange: n
|
|
2461
2461
|
})
|
|
2462
2462
|
);
|
|
2463
2463
|
}
|
|
2464
|
-
const
|
|
2465
|
-
const { value: n, onBlur: t, onChange: r, placeholder: o, id: l } = e,
|
|
2464
|
+
const Lo = (e) => {
|
|
2465
|
+
const { value: n, onBlur: t, onChange: r, placeholder: o, id: l } = e, a = l ?? ae("checkbox"), u = `${a}-label`;
|
|
2466
2466
|
return X({
|
|
2467
2467
|
growInput: !1,
|
|
2468
2468
|
...e,
|
|
2469
2469
|
input: p.span(
|
|
2470
|
-
|
|
2470
|
+
s.class("bc-checkbox-input"),
|
|
2471
2471
|
oe.checkbox(
|
|
2472
2472
|
Y(e),
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
o != null ? A.labelledby(u) :
|
|
2473
|
+
s.checked(n),
|
|
2474
|
+
s.class("bc-checkbox-input__checkbox"),
|
|
2475
|
+
s.id(a),
|
|
2476
|
+
o != null ? A.labelledby(u) : $,
|
|
2477
2477
|
// Add accessibility attributes from parent wrapper
|
|
2478
2478
|
F((c) => {
|
|
2479
2479
|
const i = c.closest("[data-describedby]");
|
|
@@ -2482,59 +2482,59 @@ const Io = (e) => {
|
|
|
2482
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
|
-
t != null ? m.blur(I(t)) :
|
|
2486
|
-
r != null ? m.change(
|
|
2485
|
+
t != null ? m.blur(I(t)) : $,
|
|
2486
|
+
r != null ? m.change(qt(r)) : $
|
|
2487
2487
|
),
|
|
2488
2488
|
o != null ? p.label(
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
) :
|
|
2489
|
+
s.class("bc-checkbox-input__label"),
|
|
2490
|
+
s.id(u),
|
|
2491
|
+
s.for(a),
|
|
2492
|
+
Vn(o)
|
|
2493
|
+
) : $
|
|
2494
2494
|
)
|
|
2495
2495
|
});
|
|
2496
|
-
},
|
|
2496
|
+
}, Do = ({
|
|
2497
2497
|
startEditing: e,
|
|
2498
2498
|
value: n,
|
|
2499
2499
|
onChange: t,
|
|
2500
2500
|
placeholder: r
|
|
2501
2501
|
}) => {
|
|
2502
|
-
const o = w.deriveProp(e ?? !1), l =
|
|
2502
|
+
const o = w.deriveProp(e ?? !1), l = R(!1);
|
|
2503
2503
|
return p.div(
|
|
2504
|
-
|
|
2505
|
-
|
|
2504
|
+
s.class("bc-editable-text"),
|
|
2505
|
+
N(
|
|
2506
2506
|
o,
|
|
2507
2507
|
() => p.input(
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
m.keydown((
|
|
2513
|
-
|
|
2508
|
+
s.placeholder(r),
|
|
2509
|
+
s.value(n),
|
|
2510
|
+
s.class("bc-editable-text__input"),
|
|
2511
|
+
Kt(),
|
|
2512
|
+
m.keydown((a) => {
|
|
2513
|
+
a.key === "Enter" ? o.set(!1) : a.key === "Escape" && (l.set(!0), o.set(!1));
|
|
2514
2514
|
}),
|
|
2515
2515
|
m.blur(
|
|
2516
|
-
I((
|
|
2516
|
+
I((a) => {
|
|
2517
2517
|
if (o.set(!1), l.value) {
|
|
2518
2518
|
l.set(!1);
|
|
2519
2519
|
return;
|
|
2520
2520
|
}
|
|
2521
|
-
t(
|
|
2521
|
+
t(a);
|
|
2522
2522
|
})
|
|
2523
2523
|
)
|
|
2524
2524
|
),
|
|
2525
2525
|
() => p.span(
|
|
2526
2526
|
m.click(() => o.set(!0)),
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
w.map(n, (
|
|
2530
|
-
() => p.span(
|
|
2527
|
+
s.class("bc-editable-text__display"),
|
|
2528
|
+
N(
|
|
2529
|
+
w.map(n, (a) => a != null && a.trim() !== ""),
|
|
2530
|
+
() => p.span(s.class("bc-editable-text__text"), n),
|
|
2531
2531
|
() => p.span(
|
|
2532
|
-
|
|
2532
|
+
s.class("bc-editable-text__placeholder"),
|
|
2533
2533
|
r
|
|
2534
2534
|
)
|
|
2535
2535
|
),
|
|
2536
2536
|
p.button(
|
|
2537
|
-
|
|
2537
|
+
s.class("bc-editable-text__edit-button"),
|
|
2538
2538
|
// TODO translation
|
|
2539
2539
|
A.label("Edit"),
|
|
2540
2540
|
m.click(() => o.set(!0)),
|
|
@@ -2543,19 +2543,19 @@ const Io = (e) => {
|
|
|
2543
2543
|
)
|
|
2544
2544
|
)
|
|
2545
2545
|
);
|
|
2546
|
-
},
|
|
2546
|
+
}, Oo = ({
|
|
2547
2547
|
value: e,
|
|
2548
2548
|
onChange: n,
|
|
2549
2549
|
offLabel: t,
|
|
2550
2550
|
onLabel: r,
|
|
2551
2551
|
label: o,
|
|
2552
2552
|
disabled: l = !1,
|
|
2553
|
-
size:
|
|
2553
|
+
size: a = "md",
|
|
2554
2554
|
id: u
|
|
2555
2555
|
}) => {
|
|
2556
|
-
const c = u ??
|
|
2557
|
-
function d(b,
|
|
2558
|
-
const C = ["bc-switch", `bu-text-${
|
|
2556
|
+
const c = u ?? ae("switch"), i = `${c}-label`;
|
|
2557
|
+
function d(b, k) {
|
|
2558
|
+
const C = ["bc-switch", `bu-text-${k}`, `bc-switch--${k}`];
|
|
2559
2559
|
return b && C.push("bc-switch--disabled"), C.join(" ");
|
|
2560
2560
|
}
|
|
2561
2561
|
const h = () => {
|
|
@@ -2564,17 +2564,17 @@ const Io = (e) => {
|
|
|
2564
2564
|
w.get(l) || (b.key === " " || b.key === "Enter") && (b.preventDefault(), h());
|
|
2565
2565
|
};
|
|
2566
2566
|
return p.div(
|
|
2567
|
-
|
|
2568
|
-
|
|
2567
|
+
s.class(
|
|
2568
|
+
y(
|
|
2569
2569
|
l ?? !1,
|
|
2570
|
-
|
|
2570
|
+
a
|
|
2571
2571
|
)(
|
|
2572
|
-
(b,
|
|
2572
|
+
(b, k) => d(b ?? !1, k ?? "md")
|
|
2573
2573
|
)
|
|
2574
2574
|
),
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2575
|
+
s.id(c),
|
|
2576
|
+
s.role("switch"),
|
|
2577
|
+
s.tabindex(
|
|
2578
2578
|
w.map(l, (b) => b ? -1 : 0)
|
|
2579
2579
|
),
|
|
2580
2580
|
A.checked(e),
|
|
@@ -2582,10 +2582,10 @@ const Io = (e) => {
|
|
|
2582
2582
|
A.labelledby(o != null ? i : void 0),
|
|
2583
2583
|
m.click(h),
|
|
2584
2584
|
m.keydown(f),
|
|
2585
|
-
o != null ?
|
|
2585
|
+
o != null ? vt(s.id(i), s.class(`bu-text-${a} bu-nowrap`), o) : null,
|
|
2586
2586
|
p.div(
|
|
2587
|
-
|
|
2588
|
-
|
|
2587
|
+
s.class("bc-switch__track"),
|
|
2588
|
+
s.class(
|
|
2589
2589
|
w.map(
|
|
2590
2590
|
e,
|
|
2591
2591
|
(b) => b ? "bc-switch__track--on" : "bc-switch__track--off"
|
|
@@ -2593,8 +2593,8 @@ const Io = (e) => {
|
|
|
2593
2593
|
),
|
|
2594
2594
|
t != null ? p.div(
|
|
2595
2595
|
A.hidden(!0),
|
|
2596
|
-
|
|
2597
|
-
|
|
2596
|
+
s.class("bc-switch__track-label bc-switch__track-label--off"),
|
|
2597
|
+
s.class(
|
|
2598
2598
|
w.map(
|
|
2599
2599
|
e,
|
|
2600
2600
|
(b) => b ? "bc-switch__track-label--hidden" : "bc-switch__track-label--visible"
|
|
@@ -2603,8 +2603,8 @@ const Io = (e) => {
|
|
|
2603
2603
|
t
|
|
2604
2604
|
) : null,
|
|
2605
2605
|
r != null ? p.div(
|
|
2606
|
-
|
|
2607
|
-
|
|
2606
|
+
s.class("bc-switch__track-label bc-switch__track-label--on"),
|
|
2607
|
+
s.class(
|
|
2608
2608
|
w.map(
|
|
2609
2609
|
e,
|
|
2610
2610
|
(b) => b ? "bc-switch__track-label--visible" : "bc-switch__track-label--hidden"
|
|
@@ -2612,21 +2612,21 @@ const Io = (e) => {
|
|
|
2612
2612
|
),
|
|
2613
2613
|
r
|
|
2614
2614
|
) : null,
|
|
2615
|
-
|
|
2615
|
+
ve(
|
|
2616
2616
|
(b) => p.div(
|
|
2617
|
-
|
|
2618
|
-
|
|
2617
|
+
s.class("bc-switch__thumb"),
|
|
2618
|
+
s.class(
|
|
2619
2619
|
w.map(
|
|
2620
2620
|
e,
|
|
2621
|
-
(
|
|
2621
|
+
(k) => k ? "bc-switch__thumb--on" : "bc-switch__thumb--off"
|
|
2622
2622
|
)
|
|
2623
2623
|
),
|
|
2624
|
-
|
|
2625
|
-
|
|
2624
|
+
v.transform(
|
|
2625
|
+
y(
|
|
2626
2626
|
e,
|
|
2627
2627
|
b,
|
|
2628
|
-
|
|
2629
|
-
)((
|
|
2628
|
+
a
|
|
2629
|
+
)((k, { width: C }, S) => {
|
|
2630
2630
|
const g = (() => {
|
|
2631
2631
|
switch (S) {
|
|
2632
2632
|
case "xs":
|
|
@@ -2641,7 +2641,7 @@ const Io = (e) => {
|
|
|
2641
2641
|
return 8;
|
|
2642
2642
|
}
|
|
2643
2643
|
})();
|
|
2644
|
-
return
|
|
2644
|
+
return k ? `translateX(calc(${C}px - (var(--spacing-base) * ${g})))` : "translateX(0)";
|
|
2645
2645
|
})
|
|
2646
2646
|
)
|
|
2647
2647
|
)
|
|
@@ -2649,7 +2649,7 @@ const Io = (e) => {
|
|
|
2649
2649
|
)
|
|
2650
2650
|
);
|
|
2651
2651
|
};
|
|
2652
|
-
function
|
|
2652
|
+
function ur(e) {
|
|
2653
2653
|
function n(t) {
|
|
2654
2654
|
return typeof t == "number" ? t : t.toString();
|
|
2655
2655
|
}
|
|
@@ -2657,11 +2657,11 @@ function cr(e) {
|
|
|
2657
2657
|
(t) => typeof t == "object" && t.key != null ? n(t.key) : n(t)
|
|
2658
2658
|
);
|
|
2659
2659
|
}
|
|
2660
|
-
function
|
|
2660
|
+
function dr(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
|
|
2662
|
+
const a = ur(l.path), u = a.pop();
|
|
2663
2663
|
let c = o;
|
|
2664
|
-
for (const i of
|
|
2664
|
+
for (const i of a)
|
|
2665
2665
|
c.dependencies == null && (c.dependencies = {}), c.dependencies[i] == null && (c.dependencies[i] = {}), c = c.dependencies[i];
|
|
2666
2666
|
return c.dependencies == null && (c.dependencies = {}), c.dependencies[u] = { error: l.message }, o;
|
|
2667
2667
|
}, {}), r = n.join(`
|
|
@@ -2671,101 +2671,101 @@ function ir(e) {
|
|
|
2671
2671
|
error: r != "" ? r : void 0
|
|
2672
2672
|
};
|
|
2673
2673
|
}
|
|
2674
|
-
function
|
|
2674
|
+
function hr({
|
|
2675
2675
|
defaultValue: e,
|
|
2676
2676
|
onChange: n,
|
|
2677
2677
|
validate: t
|
|
2678
2678
|
}) {
|
|
2679
|
-
const r =
|
|
2679
|
+
const r = R(e), o = R({ type: "Valid" }), l = R(!1), a = async (c) => {
|
|
2680
2680
|
if (r.set(c), n == null || n(c), t != null) {
|
|
2681
2681
|
const i = await t(c);
|
|
2682
2682
|
o.set(i);
|
|
2683
2683
|
}
|
|
2684
|
-
}, u = new de([],
|
|
2684
|
+
}, u = new de([], a, r, o, {
|
|
2685
2685
|
disabled: l
|
|
2686
2686
|
});
|
|
2687
2687
|
return u.onDispose(() => {
|
|
2688
2688
|
l.dispose(), r.dispose(), o.dispose();
|
|
2689
2689
|
}), u;
|
|
2690
2690
|
}
|
|
2691
|
-
function
|
|
2692
|
-
return L(
|
|
2691
|
+
function At(e) {
|
|
2692
|
+
return L(s.disabled(e.disabled), s.name(e.name));
|
|
2693
2693
|
}
|
|
2694
|
-
function
|
|
2694
|
+
function Vo(e, {
|
|
2695
2695
|
triggerOn: n = "change"
|
|
2696
2696
|
} = {}) {
|
|
2697
2697
|
return L(
|
|
2698
|
-
|
|
2699
|
-
|
|
2698
|
+
At(e),
|
|
2699
|
+
s.value(e.value),
|
|
2700
2700
|
(n === "input" ? m.input : m.change)(I(e.change))
|
|
2701
2701
|
);
|
|
2702
2702
|
}
|
|
2703
|
-
function
|
|
2703
|
+
function jo(e, {
|
|
2704
2704
|
triggerOn: n = "change"
|
|
2705
2705
|
} = {}) {
|
|
2706
2706
|
return L(
|
|
2707
|
-
|
|
2708
|
-
|
|
2707
|
+
At(e),
|
|
2708
|
+
s.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 pr(e) {
|
|
2715
2715
|
return e.issues != null ? {
|
|
2716
2716
|
type: "Invalid",
|
|
2717
|
-
...
|
|
2717
|
+
...dr(e.issues)
|
|
2718
2718
|
} : { type: "Valid" };
|
|
2719
2719
|
}
|
|
2720
|
-
function
|
|
2720
|
+
function Fo({
|
|
2721
2721
|
defaultValue: e = {},
|
|
2722
2722
|
schema: n
|
|
2723
2723
|
}) {
|
|
2724
|
-
return
|
|
2724
|
+
return hr({
|
|
2725
2725
|
defaultValue: e,
|
|
2726
|
-
validate: async (t) =>
|
|
2726
|
+
validate: async (t) => pr(
|
|
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 br = ["!=", "<=", ">=", "<", ">", "="];
|
|
2732
|
+
function fr(e) {
|
|
2733
|
+
for (const n of br)
|
|
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 gr(e, n, t) {
|
|
2739
|
+
const [r, o] = fr(n), l = e.findIndex((c) => c[1] === o);
|
|
2740
2740
|
if (l === -1)
|
|
2741
2741
|
throw new Error(`Breakpoint ${String(o)} not found`);
|
|
2742
|
-
const
|
|
2742
|
+
const a = e[l][0], u = l < e.length - 1 ? e[l + 1][0] : 1 / 0;
|
|
2743
2743
|
switch (r) {
|
|
2744
2744
|
case "=":
|
|
2745
|
-
return t >=
|
|
2745
|
+
return t >= a && t < u;
|
|
2746
2746
|
case "!=":
|
|
2747
|
-
return !(t >=
|
|
2747
|
+
return !(t >= a && t < u);
|
|
2748
2748
|
case "<=":
|
|
2749
|
-
return t <=
|
|
2749
|
+
return t <= a;
|
|
2750
2750
|
case ">=":
|
|
2751
|
-
return t >=
|
|
2751
|
+
return t >= a;
|
|
2752
2752
|
case "<":
|
|
2753
|
-
return t <
|
|
2753
|
+
return t < a;
|
|
2754
2754
|
case ">":
|
|
2755
|
-
return t >
|
|
2755
|
+
return t > a;
|
|
2756
2756
|
default:
|
|
2757
2757
|
return !1;
|
|
2758
2758
|
}
|
|
2759
2759
|
}
|
|
2760
|
-
function
|
|
2760
|
+
function Ho(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 Tt(e, { breakpoints: n, mode: t = "viewport" }) {
|
|
2765
2765
|
const o = [...Object.entries(n).map(
|
|
2766
|
-
([
|
|
2767
|
-
)].sort((
|
|
2768
|
-
const u =
|
|
2766
|
+
([a, u]) => [u, a]
|
|
2767
|
+
)].sort((a, u) => a[0] - u[0]), l = (a) => {
|
|
2768
|
+
const u = a.map(({ width: i }) => {
|
|
2769
2769
|
const d = o.findIndex((h) => h[0] > i) - 1;
|
|
2770
2770
|
return d >= 0 ? { width: i, breakpoint: o[d][1] } : o.length > 0 && i >= o[0][0] ? { width: i, breakpoint: o[0][1] } : { width: i, breakpoint: o[0][1] };
|
|
2771
2771
|
});
|
|
@@ -2773,71 +2773,71 @@ function _t(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) => gr(o, i, d)
|
|
2777
2777
|
});
|
|
2778
2778
|
};
|
|
2779
|
-
return t === "element" ?
|
|
2779
|
+
return t === "element" ? ve(l) : Xt(l);
|
|
2780
2780
|
}
|
|
2781
2781
|
let Ae = NaN;
|
|
2782
|
-
function
|
|
2782
|
+
function mr(e, n) {
|
|
2783
2783
|
return e ? (isNaN(Ae) && (Ae = parseFloat(getComputedStyle(document.documentElement).fontSize)), parseFloat(e) * Ae) : n;
|
|
2784
2784
|
}
|
|
2785
|
-
function
|
|
2786
|
-
return
|
|
2785
|
+
function q(e, n, t) {
|
|
2786
|
+
return mr(e.getPropertyValue(n), t);
|
|
2787
2787
|
}
|
|
2788
|
-
function
|
|
2788
|
+
function kr(e) {
|
|
2789
2789
|
return F((n) => {
|
|
2790
2790
|
const t = getComputedStyle(n), r = {
|
|
2791
2791
|
zero: 0,
|
|
2792
|
-
xs:
|
|
2793
|
-
sm:
|
|
2794
|
-
md:
|
|
2795
|
-
lg:
|
|
2796
|
-
xl:
|
|
2792
|
+
xs: q(t, "--breakpoint-xs", 640),
|
|
2793
|
+
sm: q(t, "--breakpoint-sm", 768),
|
|
2794
|
+
md: q(t, "--breakpoint-md", 1024),
|
|
2795
|
+
lg: q(t, "--breakpoint-lg", 1280),
|
|
2796
|
+
xl: q(t, "--breakpoint-xl", 1536)
|
|
2797
2797
|
};
|
|
2798
|
-
return
|
|
2798
|
+
return Tt(e, { breakpoints: r });
|
|
2799
2799
|
});
|
|
2800
2800
|
}
|
|
2801
|
-
function
|
|
2801
|
+
function Po(e) {
|
|
2802
2802
|
return F((n) => {
|
|
2803
2803
|
const t = getComputedStyle(n), r = {
|
|
2804
2804
|
zero: 0,
|
|
2805
|
-
"3xs":
|
|
2806
|
-
"2xs":
|
|
2807
|
-
xs:
|
|
2808
|
-
sm:
|
|
2809
|
-
md:
|
|
2810
|
-
lg:
|
|
2811
|
-
xl:
|
|
2812
|
-
"2xl":
|
|
2813
|
-
"3xl":
|
|
2814
|
-
"4xl":
|
|
2815
|
-
"5xl":
|
|
2816
|
-
"6xl":
|
|
2805
|
+
"3xs": q(t, "--container-3xs", 256),
|
|
2806
|
+
"2xs": q(t, "--container-2xs", 288),
|
|
2807
|
+
xs: q(t, "--container-xs", 320),
|
|
2808
|
+
sm: q(t, "--container-sm", 384),
|
|
2809
|
+
md: q(t, "--container-md", 448),
|
|
2810
|
+
lg: q(t, "--container-lg", 512),
|
|
2811
|
+
xl: q(t, "--container-xl", 640),
|
|
2812
|
+
"2xl": q(t, "--container-2xl", 768),
|
|
2813
|
+
"3xl": q(t, "--container-3xl", 1024),
|
|
2814
|
+
"4xl": q(t, "--container-4xl", 1280),
|
|
2815
|
+
"5xl": q(t, "--container-5xl", 1536),
|
|
2816
|
+
"6xl": q(t, "--container-6xl", 2048)
|
|
2817
2817
|
};
|
|
2818
|
-
return
|
|
2818
|
+
return Tt(e, {
|
|
2819
2819
|
breakpoints: r,
|
|
2820
2820
|
mode: "element"
|
|
2821
2821
|
});
|
|
2822
2822
|
});
|
|
2823
2823
|
}
|
|
2824
|
-
function
|
|
2824
|
+
function Bt({
|
|
2825
2825
|
initialStatus: e = "closed",
|
|
2826
2826
|
openedAfter: n,
|
|
2827
2827
|
closedAfter: t
|
|
2828
2828
|
}) {
|
|
2829
|
-
const r =
|
|
2829
|
+
const r = R(e), o = () => {
|
|
2830
2830
|
r.set("start-opening");
|
|
2831
2831
|
}, l = () => {
|
|
2832
2832
|
r.set("start-closing");
|
|
2833
|
-
},
|
|
2833
|
+
}, a = r.map(
|
|
2834
2834
|
(g) => g !== "closed" && g !== "start-closing" && g !== "closing"
|
|
2835
2835
|
), u = (g) => {
|
|
2836
2836
|
g ? o() : l();
|
|
2837
2837
|
}, c = () => {
|
|
2838
|
-
u(!
|
|
2839
|
-
}, i = (g) => r.on((
|
|
2840
|
-
|
|
2838
|
+
u(!a.value);
|
|
2839
|
+
}, i = (g) => r.on((O) => {
|
|
2840
|
+
O === "closed" && g();
|
|
2841
2841
|
});
|
|
2842
2842
|
let d = () => {
|
|
2843
2843
|
};
|
|
@@ -2857,37 +2857,37 @@ function At({
|
|
|
2857
2857
|
break;
|
|
2858
2858
|
}
|
|
2859
2859
|
}), r.onDispose(() => d());
|
|
2860
|
-
const h = r.map((g) => g === "closed"), f = r.map((g) => g === "start-opening"), b = r.map((g) => g === "opening"),
|
|
2860
|
+
const h = r.map((g) => g === "closed"), f = r.map((g) => g === "start-opening"), b = r.map((g) => g === "opening"), k = 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,
|
|
2864
2864
|
close: l,
|
|
2865
2865
|
toggle: c,
|
|
2866
2866
|
setOpen: u,
|
|
2867
|
-
display:
|
|
2867
|
+
display: a,
|
|
2868
2868
|
isClosed: h,
|
|
2869
2869
|
isStartOpening: f,
|
|
2870
2870
|
isOpening: b,
|
|
2871
|
-
isOpened:
|
|
2871
|
+
isOpened: k,
|
|
2872
2872
|
isClosing: C,
|
|
2873
2873
|
isStartClosing: S,
|
|
2874
2874
|
dispose: () => r.dispose(),
|
|
2875
2875
|
onClosed: i
|
|
2876
2876
|
};
|
|
2877
2877
|
}
|
|
2878
|
-
function
|
|
2878
|
+
function Mo({
|
|
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 Bt({
|
|
2885
2885
|
initialStatus: e,
|
|
2886
|
-
openedAfter: (o) =>
|
|
2887
|
-
closedAfter: (o) =>
|
|
2886
|
+
openedAfter: (o) => Ke(o, t),
|
|
2887
|
+
closedAfter: (o) => Ke(o, r)
|
|
2888
2888
|
});
|
|
2889
2889
|
}
|
|
2890
|
-
function
|
|
2890
|
+
function Ye(e, n) {
|
|
2891
2891
|
let t = !1, r = null;
|
|
2892
2892
|
function o() {
|
|
2893
2893
|
t || (t = !0, r && (clearTimeout(r), r = null), n());
|
|
@@ -2895,7 +2895,7 @@ function Ze(e, n) {
|
|
|
2895
2895
|
function l(i) {
|
|
2896
2896
|
i.target === e && o();
|
|
2897
2897
|
}
|
|
2898
|
-
function
|
|
2898
|
+
function a(i) {
|
|
2899
2899
|
i.target === e && o();
|
|
2900
2900
|
}
|
|
2901
2901
|
const c = le(() => {
|
|
@@ -2904,10 +2904,10 @@ function Ze(e, n) {
|
|
|
2904
2904
|
r = setTimeout(o, 16);
|
|
2905
2905
|
return;
|
|
2906
2906
|
}
|
|
2907
|
-
e.getAnimations().length === 0 ? (e.addEventListener("transitionend", l, { once: !0 }), e.addEventListener("animationend",
|
|
2907
|
+
e.getAnimations().length === 0 ? (e.addEventListener("transitionend", l, { once: !0 }), e.addEventListener("animationend", a, { once: !0 }), r = setTimeout(o, 550)) : (e.addEventListener("transitionend", l, { once: !0 }), e.addEventListener("animationend", a, { once: !0 }));
|
|
2908
2908
|
});
|
|
2909
2909
|
return () => {
|
|
2910
|
-
t = !0, c(), r && (clearTimeout(r), r = null), e.removeEventListener("transitionend", l), e.removeEventListener("animationend",
|
|
2910
|
+
t = !0, c(), r && (clearTimeout(r), r = null), e.removeEventListener("transitionend", l), e.removeEventListener("animationend", a);
|
|
2911
2911
|
};
|
|
2912
2912
|
}
|
|
2913
2913
|
function fe({
|
|
@@ -2919,18 +2919,18 @@ function fe({
|
|
|
2919
2919
|
setElement: (r) => {
|
|
2920
2920
|
t = r;
|
|
2921
2921
|
},
|
|
2922
|
-
...
|
|
2922
|
+
...Bt({
|
|
2923
2923
|
initialStatus: e,
|
|
2924
2924
|
openedAfter: (r) => t == null ? (r(), () => {
|
|
2925
|
-
}) :
|
|
2925
|
+
}) : Ye(t, r),
|
|
2926
2926
|
closedAfter: (r) => t == null ? (r(), () => {
|
|
2927
|
-
}) :
|
|
2927
|
+
}) : Ye(t, r)
|
|
2928
2928
|
})
|
|
2929
2929
|
};
|
|
2930
2930
|
}
|
|
2931
|
-
function
|
|
2932
|
-
return
|
|
2933
|
-
|
|
2931
|
+
function Oe(e, n) {
|
|
2932
|
+
return s.class(
|
|
2933
|
+
y(
|
|
2934
2934
|
e,
|
|
2935
2935
|
n
|
|
2936
2936
|
)((t, r) => `bu-toggle--animated bu-toggle--${t} bu-toggle--${r}`)
|
|
@@ -2997,7 +2997,7 @@ const ne = {
|
|
|
2997
2997
|
xl: 280
|
|
2998
2998
|
}
|
|
2999
2999
|
};
|
|
3000
|
-
function
|
|
3000
|
+
function Qe(e, n) {
|
|
3001
3001
|
if (typeof e == "number")
|
|
3002
3002
|
return {
|
|
3003
3003
|
zero: e,
|
|
@@ -3023,7 +3023,7 @@ function Te(e) {
|
|
|
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 xr({
|
|
3027
3027
|
smallBreakpoint: e,
|
|
3028
3028
|
mediumBreakpoint: n,
|
|
3029
3029
|
vertical: t,
|
|
@@ -3048,7 +3048,7 @@ function mr({
|
|
|
3048
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
|
-
areas: i.map((
|
|
3051
|
+
areas: i.map((k) => `"${k.join(" ")}"`).join(`
|
|
3052
3052
|
`),
|
|
3053
3053
|
displayMenu: !1,
|
|
3054
3054
|
displayAside: !1,
|
|
@@ -3056,7 +3056,7 @@ function mr({
|
|
|
3056
3056
|
asideWidth: ne.aside[c] + "px"
|
|
3057
3057
|
};
|
|
3058
3058
|
}
|
|
3059
|
-
function
|
|
3059
|
+
function a(c) {
|
|
3060
3060
|
var b;
|
|
3061
3061
|
let i = [
|
|
3062
3062
|
[null, null],
|
|
@@ -3074,7 +3074,7 @@ function mr({
|
|
|
3074
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
|
-
areas: i.map((
|
|
3077
|
+
areas: i.map((k) => `"${k.join(" ")}"`).join(`
|
|
3078
3078
|
`),
|
|
3079
3079
|
displayMenu: !0,
|
|
3080
3080
|
displayAside: !1,
|
|
@@ -3108,110 +3108,110 @@ function mr({
|
|
|
3108
3108
|
return ({
|
|
3109
3109
|
width: c,
|
|
3110
3110
|
breakpoint: i
|
|
3111
|
-
}) => o(`<=${e}`, c) ? l(i) : o(`<=${n}`, c) ?
|
|
3111
|
+
}) => o(`<=${e}`, c) ? l(i) : o(`<=${n}`, c) ? a(i) : u(i);
|
|
3112
3112
|
}
|
|
3113
|
-
const
|
|
3113
|
+
const vr = ["menu", "aside"], yr = [
|
|
3114
3114
|
"banner",
|
|
3115
3115
|
"header",
|
|
3116
3116
|
"mainHeader",
|
|
3117
3117
|
"mainFooter",
|
|
3118
3118
|
"footer"
|
|
3119
3119
|
];
|
|
3120
|
-
function
|
|
3120
|
+
function wr(e, { displayMenu: n }, t) {
|
|
3121
3121
|
return e ? n ? "block" : t ? "float" : "none" : "none";
|
|
3122
3122
|
}
|
|
3123
|
-
function
|
|
3123
|
+
function $r(e, { displayAside: n }, t) {
|
|
3124
3124
|
return e ? n ? "block" : t ? "float" : "none" : "none";
|
|
3125
3125
|
}
|
|
3126
|
-
function
|
|
3126
|
+
function Wo({
|
|
3127
3127
|
smallBreakpoint: e = "sm",
|
|
3128
3128
|
mediumBreakpoint: n = "md",
|
|
3129
3129
|
...t
|
|
3130
3130
|
}) {
|
|
3131
3131
|
const r = Object.fromEntries(
|
|
3132
|
-
|
|
3132
|
+
vr.filter((l) => t[l]).map(
|
|
3133
3133
|
(l) => [
|
|
3134
3134
|
l,
|
|
3135
|
-
|
|
3135
|
+
Qe(t[l].width ?? {}, ne[l])
|
|
3136
3136
|
]
|
|
3137
3137
|
)
|
|
3138
3138
|
), o = Object.fromEntries(
|
|
3139
|
-
|
|
3139
|
+
yr.filter((l) => t[l]).map(
|
|
3140
3140
|
(l) => [
|
|
3141
3141
|
l,
|
|
3142
|
-
|
|
3142
|
+
Qe(t[l].height ?? {}, ne[l])
|
|
3143
3143
|
]
|
|
3144
3144
|
)
|
|
3145
3145
|
);
|
|
3146
|
-
return
|
|
3147
|
-
var g,
|
|
3148
|
-
const u =
|
|
3146
|
+
return kr(({ value: l, is: a }) => {
|
|
3147
|
+
var g, O, M, H, E, V, T, J, P, ee;
|
|
3148
|
+
const u = xr({
|
|
3149
3149
|
smallBreakpoint: e,
|
|
3150
3150
|
mediumBreakpoint: n,
|
|
3151
3151
|
vertical: r,
|
|
3152
3152
|
horizontal: o,
|
|
3153
|
-
is:
|
|
3154
|
-
}), c = l.map(u), i = o.header != null || r.menu != null || r.aside != null, d =
|
|
3153
|
+
is: a
|
|
3154
|
+
}), c = l.map(u), i = o.header != null || r.menu != null || r.aside != null, d = y(
|
|
3155
3155
|
r.aside != null,
|
|
3156
3156
|
c
|
|
3157
|
-
)((
|
|
3157
|
+
)((x, { displayAside: _ }) => x && !_), h = y(
|
|
3158
3158
|
r.menu != null,
|
|
3159
3159
|
c
|
|
3160
|
-
)((
|
|
3160
|
+
)((x, { displayMenu: _ }) => x && !_), f = fe(), b = fe(), k = R(0), C = y(
|
|
3161
3161
|
r.menu != null,
|
|
3162
3162
|
c,
|
|
3163
3163
|
f.display
|
|
3164
|
-
)(
|
|
3164
|
+
)(wr), S = y(
|
|
3165
3165
|
r.aside != null,
|
|
3166
3166
|
c,
|
|
3167
3167
|
b.display
|
|
3168
|
-
)(
|
|
3168
|
+
)($r);
|
|
3169
3169
|
return p.div(
|
|
3170
|
-
|
|
3171
|
-
|
|
3170
|
+
U(() => {
|
|
3171
|
+
k.dispose(), f.dispose(), b.dispose();
|
|
3172
3172
|
}),
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3173
|
+
v.height("100%"),
|
|
3174
|
+
v.display("grid"),
|
|
3175
|
+
v.gridTemplateColumns(c.$.columns),
|
|
3176
|
+
v.gridTemplateRows(c.$.rows),
|
|
3177
|
+
v.gridTemplateAreas(c.$.areas),
|
|
3178
|
+
v.gridColumnGap("0"),
|
|
3179
|
+
v.gridRowGap("0"),
|
|
3180
3180
|
t.banner ? p.header(
|
|
3181
|
-
|
|
3181
|
+
s.class(
|
|
3182
3182
|
te(
|
|
3183
3183
|
"none",
|
|
3184
3184
|
t.banner.color ?? "white",
|
|
3185
3185
|
t.banner.shadow ?? "none"
|
|
3186
3186
|
)
|
|
3187
3187
|
),
|
|
3188
|
-
|
|
3189
|
-
|
|
3188
|
+
v.height("100%"),
|
|
3189
|
+
v.gridArea("banner"),
|
|
3190
3190
|
t.banner.content
|
|
3191
3191
|
) : null,
|
|
3192
3192
|
p.header(
|
|
3193
|
-
|
|
3193
|
+
s.class(
|
|
3194
3194
|
te(
|
|
3195
3195
|
"bottom",
|
|
3196
3196
|
((g = t.header) == null ? void 0 : g.color) ?? "white",
|
|
3197
|
-
((
|
|
3197
|
+
((O = t.header) == null ? void 0 : O.shadow) ?? "none"
|
|
3198
3198
|
)
|
|
3199
3199
|
),
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3200
|
+
s.class("bu-z-20"),
|
|
3201
|
+
v.display(i ? "block" : "none"),
|
|
3202
|
+
v.gridArea("header"),
|
|
3203
|
+
ve((x) => (x.$.bottom.feedProp(k), null)),
|
|
3204
3204
|
p.div(
|
|
3205
|
-
|
|
3206
|
-
|
|
3205
|
+
v.display("flex"),
|
|
3206
|
+
v.height("100%"),
|
|
3207
3207
|
p.div(
|
|
3208
|
-
|
|
3209
|
-
h.map((
|
|
3208
|
+
v.display(
|
|
3209
|
+
h.map((x) => x ? "flex" : "none")
|
|
3210
3210
|
),
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3211
|
+
v.alignItems("center"),
|
|
3212
|
+
v.justifyContent("center"),
|
|
3213
|
+
v.height("100%"),
|
|
3214
|
+
v.width("60px"),
|
|
3215
3215
|
be(
|
|
3216
3216
|
{
|
|
3217
3217
|
onClick: () => f.toggle(),
|
|
@@ -3222,23 +3222,23 @@ function Mo({
|
|
|
3222
3222
|
A.label("Open menu"),
|
|
3223
3223
|
K({
|
|
3224
3224
|
icon: f.display.map(
|
|
3225
|
-
(
|
|
3225
|
+
(x) => x ? "line-md/menu-to-close-alt-transition" : "line-md/close-to-menu-alt-transition"
|
|
3226
3226
|
)
|
|
3227
3227
|
})
|
|
3228
3228
|
)
|
|
3229
3229
|
),
|
|
3230
3230
|
p.div(
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
(
|
|
3231
|
+
v.height("100%"),
|
|
3232
|
+
v.flexGrow("1"),
|
|
3233
|
+
(M = t.header) == null ? void 0 : M.content
|
|
3234
3234
|
),
|
|
3235
3235
|
p.div(
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
d.map((
|
|
3236
|
+
v.alignItems("center"),
|
|
3237
|
+
v.justifyContent("center"),
|
|
3238
|
+
v.height("100%"),
|
|
3239
|
+
v.width("60px"),
|
|
3240
|
+
v.display(
|
|
3241
|
+
d.map((x) => x ? "flex" : "none")
|
|
3242
3242
|
),
|
|
3243
3243
|
be(
|
|
3244
3244
|
{
|
|
@@ -3251,10 +3251,10 @@ function Mo({
|
|
|
3251
3251
|
A.label("Open aside"),
|
|
3252
3252
|
K(
|
|
3253
3253
|
{ icon: "line-md/chevron-left" },
|
|
3254
|
-
|
|
3255
|
-
|
|
3254
|
+
s.class("bu-transition-transform"),
|
|
3255
|
+
s.class(
|
|
3256
3256
|
b.display.map(
|
|
3257
|
-
(
|
|
3257
|
+
(x) => x ? "bu-rotate-180" : ""
|
|
3258
3258
|
)
|
|
3259
3259
|
)
|
|
3260
3260
|
)
|
|
@@ -3263,17 +3263,17 @@ function Mo({
|
|
|
3263
3263
|
)
|
|
3264
3264
|
),
|
|
3265
3265
|
t.menu ? p.nav(
|
|
3266
|
-
F((
|
|
3267
|
-
|
|
3266
|
+
F((x) => f.setElement(x)),
|
|
3267
|
+
s.class("bu-z-10"),
|
|
3268
3268
|
// Add ARIA attributes for navigation landmark
|
|
3269
3269
|
// TODO translation
|
|
3270
3270
|
A.label("Main navigation"),
|
|
3271
|
-
|
|
3272
|
-
|
|
3271
|
+
s.role("navigation"),
|
|
3272
|
+
s.class(
|
|
3273
3273
|
C.map(
|
|
3274
|
-
(
|
|
3274
|
+
(x) => {
|
|
3275
3275
|
var _, he, ce, ge;
|
|
3276
|
-
return
|
|
3276
|
+
return x === "float" ? te(
|
|
3277
3277
|
"right",
|
|
3278
3278
|
((_ = t.menu) == null ? void 0 : _.color) ?? "white",
|
|
3279
3279
|
((he = t.menu) == null ? void 0 : he.shadow) ?? "md"
|
|
@@ -3285,49 +3285,49 @@ function Mo({
|
|
|
3285
3285
|
}
|
|
3286
3286
|
)
|
|
3287
3287
|
),
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3288
|
+
v.height("100%"),
|
|
3289
|
+
v.gridArea("menu"),
|
|
3290
|
+
v.display(
|
|
3291
|
+
y(
|
|
3292
3292
|
C,
|
|
3293
3293
|
f.status
|
|
3294
|
-
)((
|
|
3294
|
+
)((x, _) => x === "none" && _ === "closed" ? "none" : "block")
|
|
3295
3295
|
),
|
|
3296
|
-
|
|
3297
|
-
|
|
3296
|
+
v.position(
|
|
3297
|
+
y(
|
|
3298
3298
|
C,
|
|
3299
3299
|
f.status
|
|
3300
|
-
)((
|
|
3300
|
+
)((x, _) => x === "float" || x === "none" && _ !== "closed" ? "fixed" : "initial")
|
|
3301
3301
|
),
|
|
3302
|
-
|
|
3303
|
-
|
|
3302
|
+
v.top(k.map((x) => `${x}px`)),
|
|
3303
|
+
Oe(
|
|
3304
3304
|
"slide-right",
|
|
3305
|
-
|
|
3305
|
+
y(
|
|
3306
3306
|
C,
|
|
3307
3307
|
f.status
|
|
3308
|
-
)((
|
|
3308
|
+
)((x, _) => x === "block" ? "opened" : _)
|
|
3309
3309
|
),
|
|
3310
|
-
|
|
3311
|
-
|
|
3310
|
+
v.width(c.$.menuWidth),
|
|
3311
|
+
v.bottom(k.map((x) => `${x}px`)),
|
|
3312
3312
|
(H = t.menu) == null ? void 0 : H.content
|
|
3313
3313
|
) : null,
|
|
3314
3314
|
t.mainHeader ? p.header(
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3315
|
+
v.height("100%"),
|
|
3316
|
+
v.gridArea("mainHeader"),
|
|
3317
|
+
s.class(
|
|
3318
3318
|
te(
|
|
3319
3319
|
"none",
|
|
3320
3320
|
((E = t.mainHeader) == null ? void 0 : E.color) ?? "white",
|
|
3321
|
-
((
|
|
3321
|
+
((V = t.mainHeader) == null ? void 0 : V.shadow) ?? "none"
|
|
3322
3322
|
)
|
|
3323
3323
|
),
|
|
3324
3324
|
t.mainHeader.content
|
|
3325
3325
|
) : null,
|
|
3326
3326
|
p.main(
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3327
|
+
v.height("100%"),
|
|
3328
|
+
v.overflow("hidden"),
|
|
3329
|
+
v.gridArea("main"),
|
|
3330
|
+
s.class(
|
|
3331
3331
|
te(
|
|
3332
3332
|
"none",
|
|
3333
3333
|
((T = t.main) == null ? void 0 : T.color) ?? "white",
|
|
@@ -3337,9 +3337,9 @@ function Mo({
|
|
|
3337
3337
|
t.main.content
|
|
3338
3338
|
),
|
|
3339
3339
|
t.mainFooter ? p.footer(
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3340
|
+
v.height("100%"),
|
|
3341
|
+
v.gridArea("mainFooter"),
|
|
3342
|
+
s.class(
|
|
3343
3343
|
te(
|
|
3344
3344
|
"none",
|
|
3345
3345
|
((P = t.mainFooter) == null ? void 0 : P.color) ?? "white",
|
|
@@ -3349,104 +3349,104 @@ function Mo({
|
|
|
3349
3349
|
t.mainFooter.content
|
|
3350
3350
|
) : null,
|
|
3351
3351
|
t.aside ? p.aside(
|
|
3352
|
-
F((
|
|
3353
|
-
b.setElement(
|
|
3352
|
+
F((x) => {
|
|
3353
|
+
b.setElement(x);
|
|
3354
3354
|
}),
|
|
3355
|
-
|
|
3355
|
+
s.class("bu-z-10"),
|
|
3356
3356
|
// Add ARIA attributes for aside landmark
|
|
3357
3357
|
// TODO translation
|
|
3358
3358
|
A.label("Sidebar"),
|
|
3359
|
-
|
|
3360
|
-
|
|
3359
|
+
s.role("complementary"),
|
|
3360
|
+
s.class(
|
|
3361
3361
|
S.map(
|
|
3362
|
-
(
|
|
3362
|
+
(x) => x === "float" ? te("left", "white", "md") : te("left", "white", "none")
|
|
3363
3363
|
)
|
|
3364
3364
|
),
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3365
|
+
v.height("100%"),
|
|
3366
|
+
v.gridArea("aside"),
|
|
3367
|
+
v.display(
|
|
3368
|
+
y(
|
|
3369
3369
|
S,
|
|
3370
3370
|
b.status
|
|
3371
|
-
)((
|
|
3371
|
+
)((x, _) => x === "none" && _ === "closed" ? "none" : "block")
|
|
3372
3372
|
),
|
|
3373
|
-
|
|
3374
|
-
|
|
3373
|
+
v.position(
|
|
3374
|
+
y(
|
|
3375
3375
|
S,
|
|
3376
3376
|
b.status
|
|
3377
|
-
)((
|
|
3377
|
+
)((x, _) => x === "float" || x === "none" && _ !== "closed" ? "fixed" : "initial")
|
|
3378
3378
|
),
|
|
3379
|
-
|
|
3380
|
-
|
|
3379
|
+
v.top(k.map((x) => `${x}px`)),
|
|
3380
|
+
Oe(
|
|
3381
3381
|
"slide-left",
|
|
3382
|
-
|
|
3382
|
+
y(
|
|
3383
3383
|
S,
|
|
3384
3384
|
b.status
|
|
3385
|
-
)((
|
|
3385
|
+
)((x, _) => x === "block" ? "opened" : _)
|
|
3386
3386
|
),
|
|
3387
|
-
|
|
3388
|
-
|
|
3387
|
+
v.width(c.$.asideWidth),
|
|
3388
|
+
v.bottom(k.map((x) => `${x}px`)),
|
|
3389
3389
|
t.aside.content
|
|
3390
3390
|
) : null,
|
|
3391
3391
|
t.footer ? p.footer(
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3392
|
+
s.class(te("top", "white", "none")),
|
|
3393
|
+
v.height("100%"),
|
|
3394
|
+
v.gridArea("footer"),
|
|
3395
3395
|
t.footer.content
|
|
3396
3396
|
) : null
|
|
3397
3397
|
);
|
|
3398
3398
|
});
|
|
3399
3399
|
}
|
|
3400
|
-
function
|
|
3400
|
+
function Cr(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 qo({ variant: e = "default", size: n = "md", roundedness: t = "lg" } = {}, ...r) {
|
|
3405
3405
|
return p.div(
|
|
3406
|
-
|
|
3407
|
-
|
|
3406
|
+
s.class(
|
|
3407
|
+
y(
|
|
3408
3408
|
e,
|
|
3409
3409
|
n,
|
|
3410
3410
|
t
|
|
3411
3411
|
)(
|
|
3412
|
-
(o, l,
|
|
3412
|
+
(o, l, a) => Cr(
|
|
3413
3413
|
o ?? "default",
|
|
3414
3414
|
l ?? "md",
|
|
3415
|
-
|
|
3415
|
+
a ?? "lg"
|
|
3416
3416
|
)
|
|
3417
3417
|
)
|
|
3418
3418
|
),
|
|
3419
3419
|
...r
|
|
3420
3420
|
);
|
|
3421
3421
|
}
|
|
3422
|
-
function
|
|
3422
|
+
function No(...e) {
|
|
3423
3423
|
return p.div(
|
|
3424
|
-
|
|
3425
|
-
p.div(
|
|
3424
|
+
s.class("bc-center-h"),
|
|
3425
|
+
p.div(s.class("bc-center__content"), ...e)
|
|
3426
3426
|
);
|
|
3427
3427
|
}
|
|
3428
|
-
function
|
|
3428
|
+
function Sr(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 Ro({ gap: e = "lg" } = {}, ...n) {
|
|
3433
3433
|
return p.div(
|
|
3434
|
-
|
|
3434
|
+
s.class(y(e)((t) => Sr(t ?? "lg"))),
|
|
3435
3435
|
...n
|
|
3436
3436
|
);
|
|
3437
3437
|
}
|
|
3438
|
-
function
|
|
3438
|
+
function Uo(e, n = 0, t = () => !0) {
|
|
3439
3439
|
let r = null, o;
|
|
3440
|
-
const l =
|
|
3441
|
-
return e.on((
|
|
3442
|
-
o =
|
|
3440
|
+
const l = R(e.value);
|
|
3441
|
+
return e.on((a) => {
|
|
3442
|
+
o = a, t(a) ? r == null && (r = setTimeout(() => {
|
|
3443
3443
|
r = null, l.set(o);
|
|
3444
|
-
}, n)) : l.set(
|
|
3444
|
+
}, n)) : l.set(a);
|
|
3445
3445
|
}), e.onDispose(() => {
|
|
3446
3446
|
r != null && clearTimeout(r);
|
|
3447
3447
|
}), l;
|
|
3448
3448
|
}
|
|
3449
|
-
const
|
|
3449
|
+
const Er = [
|
|
3450
3450
|
"a[href]",
|
|
3451
3451
|
"button:not([disabled])",
|
|
3452
3452
|
"input:not([disabled])",
|
|
@@ -3459,31 +3459,31 @@ const Cr = [
|
|
|
3459
3459
|
"details > summary:first-of-type",
|
|
3460
3460
|
"details[open]"
|
|
3461
3461
|
].join(", ");
|
|
3462
|
-
function
|
|
3463
|
-
return Array.from(e.querySelectorAll(
|
|
3462
|
+
function _r(e) {
|
|
3463
|
+
return Array.from(e.querySelectorAll(Er)).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";
|
|
3467
3467
|
}
|
|
3468
3468
|
);
|
|
3469
3469
|
}
|
|
3470
|
-
function
|
|
3470
|
+
function Ce(e = {}) {
|
|
3471
3471
|
const {
|
|
3472
3472
|
active: n = !0,
|
|
3473
3473
|
escapeDeactivates: t = !0,
|
|
3474
3474
|
onEscape: r,
|
|
3475
3475
|
initialFocus: o,
|
|
3476
3476
|
returnFocus: l,
|
|
3477
|
-
clickOutsideDeactivates:
|
|
3477
|
+
clickOutsideDeactivates: a = !1,
|
|
3478
3478
|
onClickOutside: u
|
|
3479
3479
|
} = e;
|
|
3480
3480
|
return F((c) => {
|
|
3481
3481
|
let i = n, d = null, h = [];
|
|
3482
3482
|
typeof document < "u" && (d = document.activeElement);
|
|
3483
3483
|
const f = () => {
|
|
3484
|
-
h =
|
|
3484
|
+
h = _r(c);
|
|
3485
3485
|
}, b = (g) => {
|
|
3486
|
-
var
|
|
3486
|
+
var O, M;
|
|
3487
3487
|
if (i) {
|
|
3488
3488
|
if (t && g.key === "Escape") {
|
|
3489
3489
|
g.preventDefault(), r == null || r();
|
|
@@ -3497,49 +3497,49 @@ function $e(e = {}) {
|
|
|
3497
3497
|
const H = h.indexOf(
|
|
3498
3498
|
document.activeElement
|
|
3499
3499
|
);
|
|
3500
|
-
g.shiftKey ? H <= 0 && (g.preventDefault(), (
|
|
3500
|
+
g.shiftKey ? H <= 0 && (g.preventDefault(), (O = h[h.length - 1]) == null || O.focus()) : H >= h.length - 1 && (g.preventDefault(), (M = h[0]) == null || M.focus());
|
|
3501
3501
|
}
|
|
3502
3502
|
}
|
|
3503
|
-
},
|
|
3504
|
-
if (!i || !
|
|
3505
|
-
const
|
|
3506
|
-
c.contains(
|
|
3503
|
+
}, k = (g) => {
|
|
3504
|
+
if (!i || !a) return;
|
|
3505
|
+
const O = g.target;
|
|
3506
|
+
c.contains(O) || u == null || u();
|
|
3507
3507
|
}, C = () => {
|
|
3508
3508
|
if (!i) return;
|
|
3509
3509
|
f();
|
|
3510
3510
|
let g = null;
|
|
3511
3511
|
typeof o == "function" ? g = o() : o ? g = o : h.length > 0 && (g = h[0]), g && setTimeout(() => {
|
|
3512
3512
|
g == null || g.focus();
|
|
3513
|
-
}, 50), document.addEventListener("keydown", b, !0),
|
|
3513
|
+
}, 50), document.addEventListener("keydown", b, !0), a && document.addEventListener("click", k, !0);
|
|
3514
3514
|
}, S = () => {
|
|
3515
|
-
i = !1, document.removeEventListener("keydown", b, !0), document.removeEventListener("click",
|
|
3515
|
+
i = !1, document.removeEventListener("keydown", b, !0), document.removeEventListener("click", k, !0);
|
|
3516
3516
|
let g = null;
|
|
3517
3517
|
typeof l == "function" ? g = l() : l ? g = l : d && (g = d), g && document.body.contains(g) && setTimeout(() => {
|
|
3518
3518
|
g == null || g.focus();
|
|
3519
3519
|
}, 0);
|
|
3520
3520
|
};
|
|
3521
|
-
return setTimeout(() => C(), 0),
|
|
3521
|
+
return setTimeout(() => C(), 0), U(() => {
|
|
3522
3522
|
S();
|
|
3523
3523
|
});
|
|
3524
3524
|
});
|
|
3525
3525
|
}
|
|
3526
|
-
function
|
|
3526
|
+
function zo(e = {}) {
|
|
3527
3527
|
return {
|
|
3528
|
-
activate: () =>
|
|
3529
|
-
deactivate: () =>
|
|
3528
|
+
activate: () => Ce({ ...e, active: !0 }),
|
|
3529
|
+
deactivate: () => Ce({ ...e, active: !1 })
|
|
3530
3530
|
};
|
|
3531
3531
|
}
|
|
3532
|
-
function
|
|
3532
|
+
function Ar({ open: e }, ...n) {
|
|
3533
3533
|
return F((t) => {
|
|
3534
3534
|
const { status: r, setOpen: o, dispose: l } = fe({
|
|
3535
3535
|
initialStatus: w.get(e) ? "opened" : "closed",
|
|
3536
3536
|
element: t
|
|
3537
3537
|
});
|
|
3538
|
-
return w.on(e, o),
|
|
3539
|
-
const u =
|
|
3540
|
-
return
|
|
3538
|
+
return w.on(e, o), ve((a) => {
|
|
3539
|
+
const u = R(null);
|
|
3540
|
+
return y(
|
|
3541
3541
|
r,
|
|
3542
|
-
|
|
3542
|
+
a.$.height
|
|
3543
3543
|
)((i, d) => i === "opened" && d > 0 ? d : null).on((i) => {
|
|
3544
3544
|
i != null && u.set(i);
|
|
3545
3545
|
}), r.on((i) => {
|
|
@@ -3550,35 +3550,35 @@ function Er({ open: e }, ...n) {
|
|
|
3550
3550
|
f > 0 && u.set(f), t.style.height = d, t.style.transition = h, t.offsetHeight;
|
|
3551
3551
|
}
|
|
3552
3552
|
}), L(
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3553
|
+
U(l),
|
|
3554
|
+
U(u.dispose),
|
|
3555
|
+
s.style(
|
|
3556
3556
|
u.map((i) => `--collapse-height: ${i != null ? `${i}px` : "auto"}`)
|
|
3557
3557
|
),
|
|
3558
|
-
|
|
3558
|
+
s.class(r.map((i) => `bc-collapse bc-collapse--${i}`)),
|
|
3559
3559
|
...n
|
|
3560
3560
|
);
|
|
3561
3561
|
});
|
|
3562
3562
|
});
|
|
3563
3563
|
}
|
|
3564
|
-
function
|
|
3565
|
-
return p.div(
|
|
3564
|
+
function Go(...e) {
|
|
3565
|
+
return p.div(s.class("bc-group"), ...e);
|
|
3566
3566
|
}
|
|
3567
|
-
function
|
|
3567
|
+
function Je({
|
|
3568
3568
|
header: e,
|
|
3569
3569
|
footer: n,
|
|
3570
3570
|
body: t,
|
|
3571
3571
|
shadowOnScroll: r = !0
|
|
3572
3572
|
}) {
|
|
3573
|
-
const o =
|
|
3573
|
+
const o = R("none");
|
|
3574
3574
|
function l(u) {
|
|
3575
3575
|
const c = u.scrollTop === 0, i = u.scrollTop + u.clientHeight >= u.scrollHeight - 1;
|
|
3576
3576
|
c && i ? o.set("none") : c ? o.set("bottom") : i ? o.set("top") : o.set("both");
|
|
3577
3577
|
}
|
|
3578
3578
|
return p.div(
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3579
|
+
s.class("bc-scrollable-panel"),
|
|
3580
|
+
s.class(
|
|
3581
|
+
y(
|
|
3582
3582
|
o,
|
|
3583
3583
|
r
|
|
3584
3584
|
)((u, c) => {
|
|
@@ -3595,12 +3595,12 @@ function Xe({
|
|
|
3595
3595
|
}
|
|
3596
3596
|
})
|
|
3597
3597
|
),
|
|
3598
|
-
e && p.div(
|
|
3599
|
-
p.div(
|
|
3598
|
+
e && p.div(s.class("bc-scrollable-panel__header"), e),
|
|
3599
|
+
p.div(s.class("bc-scrollable-panel--header-shadow"), p.div()),
|
|
3600
3600
|
p.div(
|
|
3601
|
-
|
|
3601
|
+
s.class("bc-scrollable-panel__body"),
|
|
3602
3602
|
F(
|
|
3603
|
-
(u) =>
|
|
3603
|
+
(u) => U(le(() => l(u)))
|
|
3604
3604
|
),
|
|
3605
3605
|
m.scroll((u) => {
|
|
3606
3606
|
const c = u.target;
|
|
@@ -3608,93 +3608,93 @@ function Xe({
|
|
|
3608
3608
|
}),
|
|
3609
3609
|
t
|
|
3610
3610
|
),
|
|
3611
|
-
p.div(
|
|
3612
|
-
n && p.div(
|
|
3611
|
+
p.div(s.class("bc-scrollable-panel--footer-shadow"), p.div()),
|
|
3612
|
+
n && p.div(s.class("bc-scrollable-panel__footer"), n)
|
|
3613
3613
|
);
|
|
3614
3614
|
}
|
|
3615
|
-
function
|
|
3615
|
+
function Tr(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 Zo({ variant: e = "default", size: n = "md", roundedness: t = "lg" } = {}, ...r) {
|
|
3620
3620
|
return p.div(
|
|
3621
|
-
|
|
3622
|
-
|
|
3621
|
+
s.class(
|
|
3622
|
+
y(
|
|
3623
3623
|
e,
|
|
3624
3624
|
n,
|
|
3625
3625
|
t
|
|
3626
3626
|
)(
|
|
3627
|
-
(o, l,
|
|
3627
|
+
(o, l, a) => Tr(
|
|
3628
3628
|
o ?? "default",
|
|
3629
3629
|
l ?? "md",
|
|
3630
|
-
|
|
3630
|
+
a ?? "lg"
|
|
3631
3631
|
)
|
|
3632
3632
|
)
|
|
3633
3633
|
),
|
|
3634
3634
|
...r
|
|
3635
3635
|
);
|
|
3636
3636
|
}
|
|
3637
|
-
function
|
|
3638
|
-
return p.div(
|
|
3637
|
+
function Ko(...e) {
|
|
3638
|
+
return p.div(s.class("bc-stack"), ...e);
|
|
3639
3639
|
}
|
|
3640
|
-
function
|
|
3640
|
+
function Br(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 Ir(e) {
|
|
3644
3644
|
const {
|
|
3645
3645
|
content: n,
|
|
3646
3646
|
placement: t = "top",
|
|
3647
3647
|
showDelay: r = 250,
|
|
3648
3648
|
hideDelay: o = 500,
|
|
3649
3649
|
mainAxisOffset: l = 8,
|
|
3650
|
-
crossAxisOffset:
|
|
3650
|
+
crossAxisOffset: a = 0,
|
|
3651
3651
|
showOn: u = "hover-focus",
|
|
3652
3652
|
closable: c = !0,
|
|
3653
3653
|
arrow: i,
|
|
3654
3654
|
role: d
|
|
3655
3655
|
} = e;
|
|
3656
|
-
return
|
|
3656
|
+
return Yt((h, f) => {
|
|
3657
3657
|
const b = fe({
|
|
3658
3658
|
initialStatus: "closed"
|
|
3659
|
-
}),
|
|
3660
|
-
let C = null, S = null, g = null,
|
|
3661
|
-
function
|
|
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),
|
|
3659
|
+
}), k = ae("flyout");
|
|
3660
|
+
let C = null, S = null, g = null, O = !1;
|
|
3661
|
+
function M() {
|
|
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), O = !1;
|
|
3663
3663
|
}
|
|
3664
3664
|
function H() {
|
|
3665
3665
|
w.get(c) && (C = (P) => {
|
|
3666
3666
|
P.key === "Escape" && J();
|
|
3667
|
-
}, document.addEventListener("keydown", C)),
|
|
3667
|
+
}, document.addEventListener("keydown", C)), O = !0, h({
|
|
3668
3668
|
placement: t ?? "top",
|
|
3669
3669
|
mainAxisOffset: l,
|
|
3670
|
-
crossAxisOffset:
|
|
3670
|
+
crossAxisOffset: a,
|
|
3671
3671
|
arrow: i,
|
|
3672
3672
|
content: F((P) => {
|
|
3673
3673
|
b.setElement(P), g = le(() => {
|
|
3674
3674
|
b.open(), g = null;
|
|
3675
3675
|
});
|
|
3676
|
-
const ee = (
|
|
3677
|
-
if (w.get(c) &&
|
|
3678
|
-
|
|
3676
|
+
const ee = (x) => {
|
|
3677
|
+
if (w.get(c) && x.key === "Escape") {
|
|
3678
|
+
x.preventDefault(), x.stopPropagation(), J();
|
|
3679
3679
|
const _ = document.querySelector(
|
|
3680
|
-
`[aria-controls="${
|
|
3680
|
+
`[aria-controls="${k}"]`
|
|
3681
3681
|
);
|
|
3682
3682
|
_ && _.setAttribute("aria-expanded", "false");
|
|
3683
3683
|
}
|
|
3684
3684
|
};
|
|
3685
3685
|
return document.addEventListener("keydown", ee, !0), L(
|
|
3686
|
-
|
|
3687
|
-
|
|
3686
|
+
U(() => {
|
|
3687
|
+
M(), document.removeEventListener("keydown", ee, !0);
|
|
3688
3688
|
}),
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3689
|
+
s.class("bc-flyout"),
|
|
3690
|
+
s.id(k),
|
|
3691
|
+
s.tabindex(-1),
|
|
3692
3692
|
// Make focusable for screen readers
|
|
3693
|
-
|
|
3694
|
-
w.map(t,
|
|
3693
|
+
Oe(
|
|
3694
|
+
w.map(t, Br),
|
|
3695
3695
|
b.status
|
|
3696
3696
|
),
|
|
3697
|
-
d ?
|
|
3697
|
+
d ? s.role(d) : s.role("dialog"),
|
|
3698
3698
|
// Default to dialog role
|
|
3699
3699
|
n()
|
|
3700
3700
|
);
|
|
@@ -3702,7 +3702,7 @@ function Tr(e) {
|
|
|
3702
3702
|
});
|
|
3703
3703
|
}
|
|
3704
3704
|
let E = null;
|
|
3705
|
-
function
|
|
3705
|
+
function V() {
|
|
3706
3706
|
if (E != null && (clearTimeout(E), E = null), T != null && (clearTimeout(T), T = null), S && (S(), S = null), b.isOpened.value || b.isOpening.value || b.isStartOpening.value)
|
|
3707
3707
|
return;
|
|
3708
3708
|
if (b.isClosing.value || b.isStartClosing.value) {
|
|
@@ -3716,47 +3716,47 @@ function Tr(e) {
|
|
|
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), g && (g(), g = null,
|
|
3720
|
-
f(),
|
|
3719
|
+
if (E != null && (clearTimeout(E), E = null), T != null && (clearTimeout(T), T = null), g && (g(), g = null, O)) {
|
|
3720
|
+
f(), M();
|
|
3721
3721
|
return;
|
|
3722
3722
|
}
|
|
3723
3723
|
const P = w.get(o);
|
|
3724
3724
|
T = setTimeout(() => {
|
|
3725
3725
|
T = null, S && (S(), S = null), b.close(), S = b.onClosed(() => {
|
|
3726
|
-
f(),
|
|
3726
|
+
f(), M();
|
|
3727
3727
|
});
|
|
3728
3728
|
}, P);
|
|
3729
3729
|
}
|
|
3730
3730
|
return F((P) => {
|
|
3731
3731
|
const ee = (ce) => {
|
|
3732
|
-
P.setAttribute("aria-expanded", ce.toString()), P.setAttribute("aria-controls",
|
|
3732
|
+
P.setAttribute("aria-expanded", ce.toString()), P.setAttribute("aria-controls", k), P.hasAttribute("aria-haspopup") || P.setAttribute("aria-haspopup", "dialog");
|
|
3733
3733
|
};
|
|
3734
3734
|
ee(!1);
|
|
3735
|
-
const
|
|
3736
|
-
|
|
3735
|
+
const x = () => {
|
|
3736
|
+
V(), ee(!0);
|
|
3737
3737
|
}, _ = () => {
|
|
3738
3738
|
J(), ee(!1);
|
|
3739
3739
|
};
|
|
3740
3740
|
if (typeof u == "function")
|
|
3741
|
-
return u(
|
|
3741
|
+
return u(x, _);
|
|
3742
3742
|
const he = u;
|
|
3743
3743
|
return L(
|
|
3744
|
-
|
|
3744
|
+
U(() => {
|
|
3745
3745
|
b.dispose();
|
|
3746
3746
|
}),
|
|
3747
|
-
|
|
3747
|
+
Nt(he, {
|
|
3748
3748
|
"hover-focus": () => L(
|
|
3749
|
-
m.mouseenter(() =>
|
|
3749
|
+
m.mouseenter(() => x()),
|
|
3750
3750
|
m.mouseleave(() => _()),
|
|
3751
|
-
m.focus(() =>
|
|
3751
|
+
m.focus(() => x()),
|
|
3752
3752
|
m.blur(() => _())
|
|
3753
3753
|
),
|
|
3754
3754
|
hover: () => L(
|
|
3755
|
-
m.mouseenter(() =>
|
|
3755
|
+
m.mouseenter(() => x()),
|
|
3756
3756
|
m.mouseleave(() => _())
|
|
3757
3757
|
),
|
|
3758
3758
|
focus: () => L(
|
|
3759
|
-
m.focus(() =>
|
|
3759
|
+
m.focus(() => x()),
|
|
3760
3760
|
m.blur(() => _())
|
|
3761
3761
|
),
|
|
3762
3762
|
click: () => {
|
|
@@ -3767,9 +3767,9 @@ function Tr(e) {
|
|
|
3767
3767
|
ce(), _();
|
|
3768
3768
|
}
|
|
3769
3769
|
return L(
|
|
3770
|
-
|
|
3770
|
+
U(ce),
|
|
3771
3771
|
m.click(() => {
|
|
3772
|
-
|
|
3772
|
+
x(), le(() => {
|
|
3773
3773
|
document.addEventListener("click", ge, {
|
|
3774
3774
|
once: !0
|
|
3775
3775
|
});
|
|
@@ -3783,7 +3783,7 @@ function Tr(e) {
|
|
|
3783
3783
|
});
|
|
3784
3784
|
});
|
|
3785
3785
|
}
|
|
3786
|
-
function
|
|
3786
|
+
function et(e, n, t) {
|
|
3787
3787
|
const r = ["bc-link"];
|
|
3788
3788
|
if (r.push(`bu-text--${n}`), t)
|
|
3789
3789
|
r.push("bc-link--disabled");
|
|
@@ -3802,51 +3802,51 @@ function Ye(e, n, t) {
|
|
|
3802
3802
|
}
|
|
3803
3803
|
return r.join(" ");
|
|
3804
3804
|
}
|
|
3805
|
-
function
|
|
3805
|
+
function Lr({
|
|
3806
3806
|
href: e,
|
|
3807
3807
|
variant: n = "default",
|
|
3808
3808
|
color: t = "primary",
|
|
3809
3809
|
colorDisabled: r = "base",
|
|
3810
3810
|
disabled: o = !1,
|
|
3811
3811
|
withViewTransition: l = !0,
|
|
3812
|
-
target:
|
|
3812
|
+
target: a,
|
|
3813
3813
|
rel: u
|
|
3814
3814
|
}, ...c) {
|
|
3815
|
-
return
|
|
3815
|
+
return N(
|
|
3816
3816
|
o,
|
|
3817
3817
|
() => p.span(
|
|
3818
|
-
|
|
3819
|
-
|
|
3818
|
+
s.class(
|
|
3819
|
+
y(
|
|
3820
3820
|
n,
|
|
3821
3821
|
r,
|
|
3822
3822
|
o
|
|
3823
3823
|
)(
|
|
3824
|
-
(i, d, h) =>
|
|
3824
|
+
(i, d, h) => et(i, d, h)
|
|
3825
3825
|
)
|
|
3826
3826
|
),
|
|
3827
3827
|
...c
|
|
3828
3828
|
),
|
|
3829
|
-
() =>
|
|
3829
|
+
() => Fe(
|
|
3830
3830
|
{
|
|
3831
3831
|
href: e,
|
|
3832
3832
|
withViewTransition: l
|
|
3833
3833
|
},
|
|
3834
|
-
|
|
3835
|
-
|
|
3834
|
+
s.class(
|
|
3835
|
+
y(
|
|
3836
3836
|
n,
|
|
3837
3837
|
t,
|
|
3838
3838
|
o
|
|
3839
3839
|
)(
|
|
3840
|
-
(i, d, h) =>
|
|
3840
|
+
(i, d, h) => et(i, d, h)
|
|
3841
3841
|
)
|
|
3842
3842
|
),
|
|
3843
|
-
|
|
3844
|
-
u ?
|
|
3843
|
+
a ? s.target(a) : null,
|
|
3844
|
+
u ? s.rel(u) : null,
|
|
3845
3845
|
...c
|
|
3846
3846
|
)
|
|
3847
3847
|
);
|
|
3848
3848
|
}
|
|
3849
|
-
function
|
|
3849
|
+
function It(e, n, t) {
|
|
3850
3850
|
const r = Object.keys(e.search).length > 0 ? "?" + new URLSearchParams(e.search).toString() : "", o = e.hash || "";
|
|
3851
3851
|
switch (t) {
|
|
3852
3852
|
case "exact":
|
|
@@ -3855,13 +3855,13 @@ function Ir(e, n, t) {
|
|
|
3855
3855
|
return e.pathname.startsWith(n) || (e.pathname + r).startsWith(n);
|
|
3856
3856
|
case "params":
|
|
3857
3857
|
try {
|
|
3858
|
-
const l = new URL(n, window.location.origin),
|
|
3858
|
+
const l = new URL(n, window.location.origin), a = new URLSearchParams(l.search), u = new URLSearchParams(e.search);
|
|
3859
3859
|
if (e.pathname !== l.pathname)
|
|
3860
3860
|
return !1;
|
|
3861
|
-
const c = Array.from(
|
|
3861
|
+
const c = Array.from(a.entries()).sort(), i = Array.from(u.entries()).sort();
|
|
3862
3862
|
return c.length !== i.length ? !1 : c.every(([d, h], f) => {
|
|
3863
|
-
const [b,
|
|
3864
|
-
return d === b && h ===
|
|
3863
|
+
const [b, k] = i[f];
|
|
3864
|
+
return d === b && h === k;
|
|
3865
3865
|
});
|
|
3866
3866
|
} catch {
|
|
3867
3867
|
return e.pathname === n;
|
|
@@ -3870,47 +3870,167 @@ function Ir(e, n, t) {
|
|
|
3870
3870
|
return !1;
|
|
3871
3871
|
}
|
|
3872
3872
|
}
|
|
3873
|
-
function
|
|
3873
|
+
function Xo({
|
|
3874
3874
|
href: e,
|
|
3875
3875
|
matchMode: n = "exact",
|
|
3876
3876
|
disableWhenActive: t = !0,
|
|
3877
3877
|
...r
|
|
3878
3878
|
}, ...o) {
|
|
3879
|
-
return
|
|
3880
|
-
const
|
|
3879
|
+
return xe(He, (l) => {
|
|
3880
|
+
const a = y(
|
|
3881
3881
|
l,
|
|
3882
3882
|
e,
|
|
3883
3883
|
t
|
|
3884
|
-
)((u, c, i) => i ?? !0 ?
|
|
3885
|
-
return
|
|
3884
|
+
)((u, c, i) => i ?? !0 ? It(u, w.get(c), n) : !1);
|
|
3885
|
+
return Lr(
|
|
3886
3886
|
{
|
|
3887
3887
|
...r,
|
|
3888
3888
|
href: e,
|
|
3889
|
-
disabled:
|
|
3889
|
+
disabled: a
|
|
3890
3890
|
},
|
|
3891
3891
|
...o
|
|
3892
3892
|
);
|
|
3893
3893
|
});
|
|
3894
3894
|
}
|
|
3895
|
-
function
|
|
3895
|
+
function Yo({
|
|
3896
|
+
href: e,
|
|
3897
|
+
withViewTransition: n = !0,
|
|
3898
|
+
target: t,
|
|
3899
|
+
rel: r,
|
|
3900
|
+
matchMode: o,
|
|
3901
|
+
disableWhenActive: l,
|
|
3902
|
+
variant: a = "filled",
|
|
3903
|
+
size: u = "md",
|
|
3904
|
+
color: c = "base",
|
|
3905
|
+
roundedness: i = "sm",
|
|
3906
|
+
disabled: d = !1
|
|
3907
|
+
}, ...h) {
|
|
3908
|
+
return o !== void 0 || l !== void 0 ? xe(He, (f) => {
|
|
3909
|
+
const b = y(
|
|
3910
|
+
f,
|
|
3911
|
+
e,
|
|
3912
|
+
l
|
|
3913
|
+
)((C, S, g) => {
|
|
3914
|
+
if (!(g ?? !0) || !o) return !1;
|
|
3915
|
+
const M = w.get(S);
|
|
3916
|
+
return It(C, M, o);
|
|
3917
|
+
}), k = y(
|
|
3918
|
+
d,
|
|
3919
|
+
b
|
|
3920
|
+
)((C, S) => C || S);
|
|
3921
|
+
return tt(
|
|
3922
|
+
{
|
|
3923
|
+
href: e,
|
|
3924
|
+
withViewTransition: n,
|
|
3925
|
+
target: t,
|
|
3926
|
+
rel: r,
|
|
3927
|
+
variant: a,
|
|
3928
|
+
size: u,
|
|
3929
|
+
color: c,
|
|
3930
|
+
roundedness: i,
|
|
3931
|
+
disabled: k
|
|
3932
|
+
},
|
|
3933
|
+
...h
|
|
3934
|
+
);
|
|
3935
|
+
}) : tt(
|
|
3936
|
+
{
|
|
3937
|
+
href: e,
|
|
3938
|
+
withViewTransition: n,
|
|
3939
|
+
target: t,
|
|
3940
|
+
rel: r,
|
|
3941
|
+
variant: a,
|
|
3942
|
+
size: u,
|
|
3943
|
+
color: c,
|
|
3944
|
+
roundedness: i,
|
|
3945
|
+
disabled: d
|
|
3946
|
+
},
|
|
3947
|
+
...h
|
|
3948
|
+
);
|
|
3949
|
+
}
|
|
3950
|
+
function tt({
|
|
3951
|
+
href: e,
|
|
3952
|
+
withViewTransition: n,
|
|
3953
|
+
target: t,
|
|
3954
|
+
rel: r,
|
|
3955
|
+
variant: o,
|
|
3956
|
+
size: l,
|
|
3957
|
+
color: a,
|
|
3958
|
+
roundedness: u,
|
|
3959
|
+
disabled: c
|
|
3960
|
+
}, ...i) {
|
|
3961
|
+
return N(
|
|
3962
|
+
c ?? !1,
|
|
3963
|
+
() => p.span(
|
|
3964
|
+
s.class(
|
|
3965
|
+
y(
|
|
3966
|
+
o,
|
|
3967
|
+
l,
|
|
3968
|
+
a,
|
|
3969
|
+
u,
|
|
3970
|
+
c
|
|
3971
|
+
)(
|
|
3972
|
+
(d, h, f, b, k) => Ie(
|
|
3973
|
+
d ?? "filled",
|
|
3974
|
+
h ?? "md",
|
|
3975
|
+
f ?? "base",
|
|
3976
|
+
b ?? "sm",
|
|
3977
|
+
k,
|
|
3978
|
+
!1
|
|
3979
|
+
// loading is always false for ButtonLink
|
|
3980
|
+
)
|
|
3981
|
+
)
|
|
3982
|
+
),
|
|
3983
|
+
...i
|
|
3984
|
+
),
|
|
3985
|
+
() => Fe(
|
|
3986
|
+
{
|
|
3987
|
+
href: e,
|
|
3988
|
+
withViewTransition: n
|
|
3989
|
+
},
|
|
3990
|
+
s.class(
|
|
3991
|
+
y(
|
|
3992
|
+
o,
|
|
3993
|
+
l,
|
|
3994
|
+
a,
|
|
3995
|
+
u,
|
|
3996
|
+
c
|
|
3997
|
+
)(
|
|
3998
|
+
(d, h, f, b, k) => Ie(
|
|
3999
|
+
d ?? "filled",
|
|
4000
|
+
h ?? "md",
|
|
4001
|
+
f ?? "base",
|
|
4002
|
+
b ?? "sm",
|
|
4003
|
+
k,
|
|
4004
|
+
!1
|
|
4005
|
+
// loading is always false for ButtonLink
|
|
4006
|
+
)
|
|
4007
|
+
)
|
|
4008
|
+
),
|
|
4009
|
+
t ? s.target(t) : null,
|
|
4010
|
+
r ? s.rel(r) : null,
|
|
4011
|
+
...i
|
|
4012
|
+
)
|
|
4013
|
+
);
|
|
4014
|
+
}
|
|
4015
|
+
function nt({ rail: e }, ...n) {
|
|
3896
4016
|
return p.div(
|
|
3897
|
-
|
|
4017
|
+
s.class(
|
|
3898
4018
|
w.map(
|
|
3899
4019
|
e ?? !1,
|
|
3900
4020
|
(t) => t ? "bc-sidebar-group--rail" : ""
|
|
3901
4021
|
)
|
|
3902
4022
|
),
|
|
3903
|
-
|
|
4023
|
+
s.class("bc-sidebar-group"),
|
|
3904
4024
|
...n
|
|
3905
4025
|
);
|
|
3906
4026
|
}
|
|
3907
|
-
function
|
|
3908
|
-
return
|
|
4027
|
+
function Dr(e, ...n) {
|
|
4028
|
+
return Fe({ href: e.href, withViewTransition: !0 }, ...n);
|
|
3909
4029
|
}
|
|
3910
|
-
function
|
|
4030
|
+
function Or(...e) {
|
|
3911
4031
|
return p.span(...e);
|
|
3912
4032
|
}
|
|
3913
|
-
function
|
|
4033
|
+
function Vr(e, ...n) {
|
|
3914
4034
|
return p.button(
|
|
3915
4035
|
m.click(e.onClick),
|
|
3916
4036
|
// Add ARIA attributes if provided using WithElement for dynamic updates
|
|
@@ -3937,82 +4057,82 @@ function Or(e, ...n) {
|
|
|
3937
4057
|
...n
|
|
3938
4058
|
);
|
|
3939
4059
|
}
|
|
3940
|
-
function
|
|
4060
|
+
function jr(e) {
|
|
3941
4061
|
var t;
|
|
3942
|
-
const n = [
|
|
4062
|
+
const n = [s.class("bc-sidebar-link")];
|
|
3943
4063
|
return e.icon != null && n.push(
|
|
3944
4064
|
p.span(
|
|
3945
|
-
|
|
4065
|
+
s.class("bc-sidebar-link--icon"),
|
|
3946
4066
|
K({ icon: e.icon })
|
|
3947
4067
|
)
|
|
3948
4068
|
), n.push(
|
|
3949
|
-
p.span(
|
|
4069
|
+
p.span(s.class("bc-sidebar-link__content"), e.content)
|
|
3950
4070
|
), e.right != null && n.push(
|
|
3951
|
-
p.span(
|
|
4071
|
+
p.span(s.class("bc-sidebar-link__right"), e.right)
|
|
3952
4072
|
), e.action != null && n.push(
|
|
3953
4073
|
p.button(
|
|
3954
|
-
|
|
4074
|
+
s.class("bc-sidebar-link--action"),
|
|
3955
4075
|
m.click((r, o) => {
|
|
3956
|
-
var l,
|
|
3957
|
-
(
|
|
4076
|
+
var l, a;
|
|
4077
|
+
(a = (l = e.action) == null ? void 0 : l.onClick) == null || a.call(l, o);
|
|
3958
4078
|
}),
|
|
3959
4079
|
K({ icon: (t = e.action) == null ? void 0 : t.icon })
|
|
3960
4080
|
)
|
|
3961
|
-
), "onClick" in e ?
|
|
3962
|
-
const o =
|
|
4081
|
+
), "onClick" in e ? Vr(e, ...n) : xe(He, (r) => {
|
|
4082
|
+
const o = y(
|
|
3963
4083
|
r,
|
|
3964
4084
|
e.href
|
|
3965
|
-
)(({ pathname: l },
|
|
3966
|
-
return
|
|
4085
|
+
)(({ pathname: l }, a) => l === a);
|
|
4086
|
+
return N(
|
|
3967
4087
|
o,
|
|
3968
|
-
() =>
|
|
3969
|
-
() =>
|
|
4088
|
+
() => Or(...n),
|
|
4089
|
+
() => Dr(e, ...n)
|
|
3970
4090
|
);
|
|
3971
4091
|
});
|
|
3972
4092
|
}
|
|
3973
|
-
function
|
|
4093
|
+
function Qo({
|
|
3974
4094
|
rail: e = !0,
|
|
3975
4095
|
icon: n,
|
|
3976
4096
|
header: t,
|
|
3977
4097
|
startOpen: r = !0
|
|
3978
4098
|
}, ...o) {
|
|
3979
|
-
const l = w.deriveProp(r),
|
|
3980
|
-
return
|
|
4099
|
+
const l = w.deriveProp(r), a = ae("sidebar-group"), u = `${a}-content`;
|
|
4100
|
+
return nt(
|
|
3981
4101
|
{},
|
|
3982
|
-
|
|
3983
|
-
|
|
4102
|
+
s.class("bc-sidebar-group-collapsible"),
|
|
4103
|
+
s.class(
|
|
3984
4104
|
l.map(
|
|
3985
4105
|
(c) => c ? "bc-sidebar-group-collapsible--open" : "bc-sidebar-group-collapsible--closed"
|
|
3986
4106
|
)
|
|
3987
4107
|
),
|
|
3988
4108
|
// Add ARIA attributes for group
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
4109
|
+
s.role("group"),
|
|
4110
|
+
s.id(a),
|
|
4111
|
+
jr({
|
|
3992
4112
|
icon: n,
|
|
3993
4113
|
onClick: () => l.update((c) => !c),
|
|
3994
4114
|
// Add ARIA attributes for the toggle button
|
|
3995
4115
|
ariaExpanded: l,
|
|
3996
4116
|
ariaControls: u,
|
|
3997
4117
|
right: p.span(
|
|
3998
|
-
|
|
4118
|
+
s.class("bc-sidebar-group-collapsible-indicator"),
|
|
3999
4119
|
K({ icon: "lucide:chevron-down", color: "base" })
|
|
4000
4120
|
),
|
|
4001
4121
|
content: t
|
|
4002
4122
|
}),
|
|
4003
|
-
|
|
4123
|
+
nt({ rail: e }, s.id(u), Ar({ open: l }, ...o))
|
|
4004
4124
|
);
|
|
4005
4125
|
}
|
|
4006
|
-
function
|
|
4126
|
+
function Jo(e, n) {
|
|
4007
4127
|
return e(() => {
|
|
4008
4128
|
});
|
|
4009
4129
|
}
|
|
4010
|
-
function
|
|
4011
|
-
return
|
|
4130
|
+
function Lt(e) {
|
|
4131
|
+
return Rt((n) => {
|
|
4012
4132
|
const t = [], r = () => t.forEach((l) => l());
|
|
4013
4133
|
return e(({
|
|
4014
4134
|
effect: l = "opaque",
|
|
4015
|
-
mode:
|
|
4135
|
+
mode: a = "capturing",
|
|
4016
4136
|
onClickOutside: u,
|
|
4017
4137
|
onEscape: c,
|
|
4018
4138
|
content: i,
|
|
@@ -4024,20 +4144,20 @@ function Tt(e) {
|
|
|
4024
4144
|
let f = () => {
|
|
4025
4145
|
}, b = () => {
|
|
4026
4146
|
};
|
|
4027
|
-
const
|
|
4147
|
+
const k = (H) => {
|
|
4028
4148
|
H.key === "Escape" && (c == null || c(), h.close());
|
|
4029
4149
|
}, C = () => {
|
|
4030
4150
|
u == null || u(), h.close();
|
|
4031
4151
|
}, S = (H) => {
|
|
4032
|
-
f(), b(), H === "capturing" ? (document.addEventListener("keydown",
|
|
4152
|
+
f(), b(), H === "capturing" ? (document.addEventListener("keydown", k), f = () => document.removeEventListener("keydown", k), n.element.addEventListener("mousedown", C), b = () => n.element.removeEventListener("mousedown", C)) : (f = () => {
|
|
4033
4153
|
}, b = () => {
|
|
4034
4154
|
});
|
|
4035
|
-
}, g = w.on(
|
|
4155
|
+
}, g = w.on(a, S);
|
|
4036
4156
|
t.push(g), t.push(() => {
|
|
4037
4157
|
f(), b();
|
|
4038
4158
|
});
|
|
4039
|
-
const
|
|
4040
|
-
var E,
|
|
4159
|
+
const M = Ut((() => {
|
|
4160
|
+
var E, V;
|
|
4041
4161
|
const H = /* @__PURE__ */ new Set();
|
|
4042
4162
|
for (const T of n.element.querySelectorAll(
|
|
4043
4163
|
":scope > :not([data-overlay])"
|
|
@@ -4049,14 +4169,14 @@ function Tt(e) {
|
|
|
4049
4169
|
))
|
|
4050
4170
|
H.has(T) || T.removeAttribute("inert");
|
|
4051
4171
|
H.clear();
|
|
4052
|
-
}), (
|
|
4172
|
+
}), (V = (E = document.activeElement) == null ? void 0 : E.blur) == null || V.call(E), p.div(
|
|
4053
4173
|
F((T) => h.setElement(T)),
|
|
4054
4174
|
ue.status(h.status.map(String)),
|
|
4055
4175
|
ue.overlay("true"),
|
|
4056
|
-
|
|
4057
|
-
|
|
4176
|
+
s.class(
|
|
4177
|
+
y(
|
|
4058
4178
|
l ?? "opaque",
|
|
4059
|
-
|
|
4179
|
+
a
|
|
4060
4180
|
)(
|
|
4061
4181
|
(T, J) => `bc-overlay bc-overlay--effect-${T} bc-overlay--mode-${J}`
|
|
4062
4182
|
)
|
|
@@ -4068,55 +4188,55 @@ function Tt(e) {
|
|
|
4068
4188
|
clear: !1,
|
|
4069
4189
|
providers: n.providers
|
|
4070
4190
|
});
|
|
4071
|
-
t.push(
|
|
4191
|
+
t.push(M), le(() => h.open());
|
|
4072
4192
|
}, r);
|
|
4073
4193
|
});
|
|
4074
4194
|
}
|
|
4075
|
-
function
|
|
4195
|
+
function Fr(e, n) {
|
|
4076
4196
|
const {
|
|
4077
4197
|
size: t = "md",
|
|
4078
4198
|
dismissable: r = !0,
|
|
4079
4199
|
showCloseButton: o = !0,
|
|
4080
4200
|
onClose: l,
|
|
4081
|
-
overlayEffect:
|
|
4201
|
+
overlayEffect: a = "opaque",
|
|
4082
4202
|
container: u = "body",
|
|
4083
4203
|
position: c = "center"
|
|
4084
4204
|
} = e;
|
|
4085
|
-
return
|
|
4205
|
+
return Lt((i, d) => {
|
|
4086
4206
|
let h = () => {
|
|
4087
4207
|
};
|
|
4088
|
-
return n((
|
|
4208
|
+
return n((k) => {
|
|
4089
4209
|
h = d;
|
|
4090
|
-
const C =
|
|
4210
|
+
const C = R("capturing");
|
|
4091
4211
|
w.on(r, (E) => {
|
|
4092
4212
|
C.set(E ? "capturing" : "non-capturing");
|
|
4093
4213
|
});
|
|
4094
|
-
const S =
|
|
4095
|
-
|
|
4214
|
+
const S = y(
|
|
4215
|
+
k.header != null,
|
|
4096
4216
|
o
|
|
4097
|
-
)((E,
|
|
4098
|
-
|
|
4099
|
-
|
|
4217
|
+
)((E, V) => E || V), g = ae("modal"), O = `${g}-header`, M = `${g}-body`, H = p.div(
|
|
4218
|
+
s.class(
|
|
4219
|
+
y(
|
|
4100
4220
|
t,
|
|
4101
4221
|
c
|
|
4102
4222
|
)(
|
|
4103
|
-
(E,
|
|
4223
|
+
(E, V) => `bc-modal bc-modal--size-${E} bc-modal--container-${u} bc-modal--position-${V}`
|
|
4104
4224
|
)
|
|
4105
4225
|
),
|
|
4106
4226
|
// Essential ARIA attributes for modal dialog
|
|
4107
|
-
|
|
4227
|
+
s.role("dialog"),
|
|
4108
4228
|
A.modal(!0),
|
|
4109
|
-
...
|
|
4110
|
-
A.describedby(
|
|
4111
|
-
|
|
4229
|
+
...k.header ? [A.labelledby(O)] : [],
|
|
4230
|
+
A.describedby(M),
|
|
4231
|
+
s.tabindex(-1),
|
|
4112
4232
|
// Make modal focusable for initial focus
|
|
4113
|
-
|
|
4233
|
+
s.id(g),
|
|
4114
4234
|
ue.focusTrap("true"),
|
|
4115
4235
|
// Mark as focus trap container
|
|
4116
4236
|
m.mousedown((E) => E.stopPropagation()),
|
|
4117
4237
|
// Prevent overlay click-outside when clicking modal content
|
|
4118
4238
|
// Focus trap implementation
|
|
4119
|
-
|
|
4239
|
+
Ce({
|
|
4120
4240
|
escapeDeactivates: w.get(r),
|
|
4121
4241
|
onEscape: () => {
|
|
4122
4242
|
w.get(r) && (l == null || l(), d());
|
|
@@ -4124,10 +4244,10 @@ function jr(e, n) {
|
|
|
4124
4244
|
initialFocus: () => {
|
|
4125
4245
|
const E = document.getElementById(g);
|
|
4126
4246
|
if (!E) return null;
|
|
4127
|
-
const
|
|
4247
|
+
const V = E.querySelector(
|
|
4128
4248
|
'[aria-label="Close modal"]'
|
|
4129
4249
|
);
|
|
4130
|
-
if (
|
|
4250
|
+
if (V) return V;
|
|
4131
4251
|
const T = E.querySelector(
|
|
4132
4252
|
'button, input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
4133
4253
|
);
|
|
@@ -4136,17 +4256,17 @@ function jr(e, n) {
|
|
|
4136
4256
|
}),
|
|
4137
4257
|
// Modal content container
|
|
4138
4258
|
p.div(
|
|
4139
|
-
|
|
4259
|
+
s.class("bc-modal__content"),
|
|
4140
4260
|
// Header section
|
|
4141
|
-
|
|
4261
|
+
N(
|
|
4142
4262
|
S,
|
|
4143
4263
|
() => p.div(
|
|
4144
|
-
|
|
4264
|
+
s.class("bc-modal__header"),
|
|
4145
4265
|
p.div(
|
|
4146
|
-
...
|
|
4147
|
-
|
|
4266
|
+
...k.header ? [s.id(O)] : [],
|
|
4267
|
+
k.header
|
|
4148
4268
|
),
|
|
4149
|
-
|
|
4269
|
+
N(
|
|
4150
4270
|
o,
|
|
4151
4271
|
() => be(
|
|
4152
4272
|
{
|
|
@@ -4164,14 +4284,14 @@ function jr(e, n) {
|
|
|
4164
4284
|
)
|
|
4165
4285
|
),
|
|
4166
4286
|
// Body section
|
|
4167
|
-
p.div(
|
|
4287
|
+
p.div(s.class("bc-modal__body"), s.id(M), k.body),
|
|
4168
4288
|
// Footer section
|
|
4169
|
-
|
|
4289
|
+
k.footer && p.div(s.class("bc-modal__footer"), k.footer)
|
|
4170
4290
|
)
|
|
4171
4291
|
);
|
|
4172
4292
|
i({
|
|
4173
4293
|
mode: C,
|
|
4174
|
-
effect:
|
|
4294
|
+
effect: a ?? "opaque",
|
|
4175
4295
|
container: u,
|
|
4176
4296
|
content: H,
|
|
4177
4297
|
onClickOutside: () => {
|
|
@@ -4186,7 +4306,7 @@ function jr(e, n) {
|
|
|
4186
4306
|
});
|
|
4187
4307
|
});
|
|
4188
4308
|
}
|
|
4189
|
-
function
|
|
4309
|
+
function el(e, n) {
|
|
4190
4310
|
const {
|
|
4191
4311
|
// TODO translation
|
|
4192
4312
|
confirmText: t = "Confirm",
|
|
@@ -4194,10 +4314,10 @@ function Qo(e, n) {
|
|
|
4194
4314
|
cancelText: r = "Cancel",
|
|
4195
4315
|
onConfirm: o,
|
|
4196
4316
|
onCancel: l,
|
|
4197
|
-
...
|
|
4317
|
+
...a
|
|
4198
4318
|
} = e;
|
|
4199
|
-
return
|
|
4200
|
-
{ showCloseButton: !1, ...
|
|
4319
|
+
return Fr(
|
|
4320
|
+
{ showCloseButton: !1, ...a },
|
|
4201
4321
|
(u, c) => {
|
|
4202
4322
|
const i = () => {
|
|
4203
4323
|
o == null || o(), c();
|
|
@@ -4208,7 +4328,7 @@ function Qo(e, n) {
|
|
|
4208
4328
|
u({
|
|
4209
4329
|
body: f,
|
|
4210
4330
|
footer: L(
|
|
4211
|
-
|
|
4331
|
+
s.class("bu-justify-end"),
|
|
4212
4332
|
be(
|
|
4213
4333
|
{
|
|
4214
4334
|
variant: "outline",
|
|
@@ -4230,8 +4350,8 @@ function Qo(e, n) {
|
|
|
4230
4350
|
}
|
|
4231
4351
|
);
|
|
4232
4352
|
}
|
|
4233
|
-
function
|
|
4234
|
-
return
|
|
4353
|
+
function tl(e) {
|
|
4354
|
+
return Lt((n, t) => {
|
|
4235
4355
|
let r = t;
|
|
4236
4356
|
const o = () => r();
|
|
4237
4357
|
return e((u) => {
|
|
@@ -4242,52 +4362,52 @@ function Jo(e) {
|
|
|
4242
4362
|
showCloseButton: h = !0,
|
|
4243
4363
|
onClose: f,
|
|
4244
4364
|
overlayEffect: b = "opaque",
|
|
4245
|
-
container:
|
|
4365
|
+
container: k = "body",
|
|
4246
4366
|
header: C,
|
|
4247
4367
|
body: S,
|
|
4248
4368
|
footer: g
|
|
4249
4369
|
} = u;
|
|
4250
4370
|
r = t;
|
|
4251
|
-
const
|
|
4371
|
+
const O = R("capturing");
|
|
4252
4372
|
w.on(d, (E) => {
|
|
4253
|
-
|
|
4373
|
+
O.set(E ? "capturing" : "non-capturing");
|
|
4254
4374
|
});
|
|
4255
|
-
const
|
|
4375
|
+
const M = y(
|
|
4256
4376
|
C != null,
|
|
4257
4377
|
h
|
|
4258
|
-
)((E,
|
|
4259
|
-
const
|
|
4378
|
+
)((E, V) => E || V), H = F((E) => {
|
|
4379
|
+
const V = fe({
|
|
4260
4380
|
initialStatus: "closed",
|
|
4261
4381
|
element: E
|
|
4262
4382
|
});
|
|
4263
4383
|
r = () => {
|
|
4264
|
-
|
|
4384
|
+
V.close(), V.onClosed(() => {
|
|
4265
4385
|
t();
|
|
4266
4386
|
});
|
|
4267
|
-
}, le(() =>
|
|
4268
|
-
const J =
|
|
4387
|
+
}, le(() => V.open());
|
|
4388
|
+
const J = ae("drawer"), P = C != null ? `${J}-header` : void 0, ee = `${J}-body`;
|
|
4269
4389
|
return p.div(
|
|
4270
|
-
|
|
4271
|
-
|
|
4390
|
+
s.class(
|
|
4391
|
+
y(
|
|
4272
4392
|
c,
|
|
4273
4393
|
i,
|
|
4274
|
-
|
|
4394
|
+
V.status
|
|
4275
4395
|
)(
|
|
4276
|
-
(
|
|
4396
|
+
(x, _, he) => `bc-drawer bc-drawer--size-${x} bc-drawer--container-${k} bc-drawer--side-${_} bc-drawer--status-${he}`
|
|
4277
4397
|
)
|
|
4278
4398
|
),
|
|
4279
4399
|
// Essential ARIA attributes for drawer dialog
|
|
4280
|
-
|
|
4400
|
+
s.role("dialog"),
|
|
4281
4401
|
A.modal(!0),
|
|
4282
4402
|
...P ? [A.labelledby(P)] : [],
|
|
4283
4403
|
A.describedby(ee),
|
|
4284
|
-
|
|
4404
|
+
s.tabindex(-1),
|
|
4285
4405
|
// Make drawer focusable for initial focus
|
|
4286
|
-
|
|
4406
|
+
s.id(J),
|
|
4287
4407
|
ue.focusTrap("true"),
|
|
4288
4408
|
// Mark as focus trap container
|
|
4289
4409
|
// Focus trap for keyboard navigation
|
|
4290
|
-
|
|
4410
|
+
Ce({
|
|
4291
4411
|
active: !0,
|
|
4292
4412
|
escapeDeactivates: w.get(d),
|
|
4293
4413
|
onEscape: w.get(d) ? o : void 0,
|
|
@@ -4295,14 +4415,14 @@ function Jo(e) {
|
|
|
4295
4415
|
`#${J} [aria-label="Close drawer"]`
|
|
4296
4416
|
) || null
|
|
4297
4417
|
}),
|
|
4298
|
-
m.mousedown((
|
|
4418
|
+
m.mousedown((x) => x.stopPropagation()),
|
|
4299
4419
|
// Prevent overlay click-outside when clicking drawer content
|
|
4300
4420
|
// Drawer content container
|
|
4301
|
-
|
|
4421
|
+
zt(M, (x) => Je(x ? {
|
|
4302
4422
|
header: p.div(
|
|
4303
|
-
|
|
4304
|
-
p.div(
|
|
4305
|
-
|
|
4423
|
+
s.class("bc-drawer__header"),
|
|
4424
|
+
p.div(s.id(P), C),
|
|
4425
|
+
N(
|
|
4306
4426
|
h,
|
|
4307
4427
|
() => be(
|
|
4308
4428
|
{
|
|
@@ -4317,25 +4437,25 @@ function Jo(e) {
|
|
|
4317
4437
|
)
|
|
4318
4438
|
),
|
|
4319
4439
|
body: p.div(
|
|
4320
|
-
|
|
4321
|
-
|
|
4440
|
+
s.class("bc-drawer__body"),
|
|
4441
|
+
s.id(ee),
|
|
4322
4442
|
S
|
|
4323
4443
|
),
|
|
4324
|
-
footer: g && p.div(
|
|
4444
|
+
footer: g && p.div(s.class("bc-drawer__footer"), g)
|
|
4325
4445
|
} : {
|
|
4326
4446
|
body: p.div(
|
|
4327
|
-
|
|
4328
|
-
|
|
4447
|
+
s.class("bc-drawer__body"),
|
|
4448
|
+
s.id(ee),
|
|
4329
4449
|
S
|
|
4330
4450
|
),
|
|
4331
|
-
footer: g && p.div(
|
|
4451
|
+
footer: g && p.div(s.class("bc-drawer__footer"), g)
|
|
4332
4452
|
}))
|
|
4333
4453
|
);
|
|
4334
4454
|
});
|
|
4335
4455
|
n({
|
|
4336
|
-
mode:
|
|
4456
|
+
mode: O,
|
|
4337
4457
|
effect: b ?? "opaque",
|
|
4338
|
-
container:
|
|
4458
|
+
container: k,
|
|
4339
4459
|
content: H,
|
|
4340
4460
|
onClickOutside: () => {
|
|
4341
4461
|
f == null || f(), o();
|
|
@@ -4349,40 +4469,40 @@ function Jo(e) {
|
|
|
4349
4469
|
});
|
|
4350
4470
|
});
|
|
4351
4471
|
}
|
|
4352
|
-
function
|
|
4472
|
+
function Hr(e) {
|
|
4353
4473
|
const n = {
|
|
4354
4474
|
up: "M0 16 L8 10 L16 16 Z",
|
|
4355
4475
|
down: "M0 0 L8 6 L16 0 Z",
|
|
4356
4476
|
left: "M16 0 L10 8 L16 16 Z",
|
|
4357
4477
|
right: "M0 0 L6 8 L0 16 Z"
|
|
4358
4478
|
};
|
|
4359
|
-
return
|
|
4360
|
-
|
|
4361
|
-
|
|
4479
|
+
return Ge.svg(
|
|
4480
|
+
Ze.viewBox("0 0 16 16"),
|
|
4481
|
+
Ge.path(Ze.d(e.map((t) => n[t])))
|
|
4362
4482
|
);
|
|
4363
4483
|
}
|
|
4364
|
-
function
|
|
4484
|
+
function nl(e) {
|
|
4365
4485
|
const {
|
|
4366
4486
|
content: n,
|
|
4367
4487
|
placement: t = "top",
|
|
4368
4488
|
showDelay: r = 250,
|
|
4369
4489
|
hideDelay: o = 500,
|
|
4370
4490
|
mainAxisOffset: l = 8,
|
|
4371
|
-
crossAxisOffset:
|
|
4491
|
+
crossAxisOffset: a = 0,
|
|
4372
4492
|
showOn: u = "hover-focus"
|
|
4373
|
-
} = e, c =
|
|
4374
|
-
return F((i) => (i.setAttribute("aria-describedby", c),
|
|
4493
|
+
} = e, c = ae("tooltip");
|
|
4494
|
+
return F((i) => (i.setAttribute("aria-describedby", c), Ir({
|
|
4375
4495
|
content: () => L(
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4496
|
+
s.class("bc-tooltip"),
|
|
4497
|
+
s.role("tooltip"),
|
|
4498
|
+
s.id(c),
|
|
4379
4499
|
n
|
|
4380
4500
|
),
|
|
4381
4501
|
placement: t,
|
|
4382
4502
|
showDelay: r,
|
|
4383
4503
|
hideDelay: o,
|
|
4384
4504
|
mainAxisOffset: l,
|
|
4385
|
-
crossAxisOffset:
|
|
4505
|
+
crossAxisOffset: a,
|
|
4386
4506
|
showOn: u,
|
|
4387
4507
|
closable: !0,
|
|
4388
4508
|
role: "tooltip",
|
|
@@ -4395,23 +4515,23 @@ function el(e) {
|
|
|
4395
4515
|
}) => f.includes("top") ? "down" : f.includes("bottom") ? "up" : f.includes("left") ? "right" : f.includes("right") ? "left" : "up"
|
|
4396
4516
|
);
|
|
4397
4517
|
return L(
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4518
|
+
s.class("bc-tooltip__arrow"),
|
|
4519
|
+
s.class(h.map((f) => `bc-tooltip__arrow-${f}`)),
|
|
4520
|
+
v.transform(
|
|
4401
4521
|
d.map(({ x: f, y: b }) => f == null && b == null ? "" : f != null ? `translate(${f}px, 0)` : `translate(0, ${b}px)`)
|
|
4402
4522
|
),
|
|
4403
|
-
|
|
4523
|
+
Hr(h)
|
|
4404
4524
|
);
|
|
4405
4525
|
}
|
|
4406
4526
|
})));
|
|
4407
4527
|
}
|
|
4408
|
-
function
|
|
4528
|
+
function rl({
|
|
4409
4529
|
locale: e,
|
|
4410
4530
|
defaultLocale: n = "en-US",
|
|
4411
4531
|
defaultMessages: t,
|
|
4412
4532
|
localeLoader: r
|
|
4413
4533
|
}) {
|
|
4414
|
-
const o =
|
|
4534
|
+
const o = R({
|
|
4415
4535
|
locale: n,
|
|
4416
4536
|
messages: t
|
|
4417
4537
|
}), l = e.on((c) => {
|
|
@@ -4426,11 +4546,11 @@ function tl({
|
|
|
4426
4546
|
messages: t
|
|
4427
4547
|
}), console.error("Failed to load locale", i);
|
|
4428
4548
|
}));
|
|
4429
|
-
}),
|
|
4549
|
+
}), a = o.$.messages, u = new Proxy({}, {
|
|
4430
4550
|
get: (c, i) => {
|
|
4431
|
-
const d =
|
|
4551
|
+
const d = a.at(i);
|
|
4432
4552
|
return function(...h) {
|
|
4433
|
-
return
|
|
4553
|
+
return y(
|
|
4434
4554
|
d,
|
|
4435
4555
|
...h
|
|
4436
4556
|
)(
|
|
@@ -4452,10 +4572,10 @@ function tl({
|
|
|
4452
4572
|
t: u
|
|
4453
4573
|
};
|
|
4454
4574
|
}
|
|
4455
|
-
const
|
|
4456
|
-
mark:
|
|
4575
|
+
const ol = {
|
|
4576
|
+
mark: rt("Locale"),
|
|
4457
4577
|
create: (e) => {
|
|
4458
|
-
const n =
|
|
4578
|
+
const n = ot({
|
|
4459
4579
|
defaultValue: navigator.language ?? "en-US",
|
|
4460
4580
|
key: "beatui-locale"
|
|
4461
4581
|
});
|
|
@@ -4471,180 +4591,182 @@ const nl = {
|
|
|
4471
4591
|
}
|
|
4472
4592
|
};
|
|
4473
4593
|
export {
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4594
|
+
Oe as AnimatedToggleClass,
|
|
4595
|
+
Wo as AppShell,
|
|
4596
|
+
ir as AppearanceSelector,
|
|
4597
|
+
cr as ArrayController,
|
|
4478
4598
|
be as Button,
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4599
|
+
Yo as ButtonLink,
|
|
4600
|
+
qo as Card,
|
|
4601
|
+
Ro as Center,
|
|
4602
|
+
No as CenterH,
|
|
4603
|
+
Lo as CheckboxInput,
|
|
4604
|
+
Ar as Collapse,
|
|
4605
|
+
Qo as CollapsibleSidebarGroup,
|
|
4485
4606
|
Y as CommonInputAttributes,
|
|
4486
|
-
|
|
4487
|
-
|
|
4607
|
+
el as ConfirmModal,
|
|
4608
|
+
z as ControlInputWrapper,
|
|
4488
4609
|
de as Controller,
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4610
|
+
co as DateControl,
|
|
4611
|
+
yt as DateInput,
|
|
4612
|
+
io as DateTimeControl,
|
|
4613
|
+
Nn as DateTimeInput,
|
|
4614
|
+
tl as Drawer,
|
|
4615
|
+
Do as EditableText,
|
|
4616
|
+
uo as EmailControl,
|
|
4617
|
+
Rn as EmailInput,
|
|
4618
|
+
oo as EmphasisLabel,
|
|
4619
|
+
_o as EnsureControl,
|
|
4620
|
+
lo as ErrorLabel,
|
|
4621
|
+
Un as Expando,
|
|
4622
|
+
Ir as Flyout,
|
|
4623
|
+
Ce as FocusTrap,
|
|
4624
|
+
ho as FormStatus,
|
|
4625
|
+
Go as Group,
|
|
4505
4626
|
K as Icon,
|
|
4506
4627
|
X as InputContainer,
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4628
|
+
Pn as InputWrapper,
|
|
4629
|
+
vt as Label,
|
|
4630
|
+
Gn as LazyNativeSelect,
|
|
4631
|
+
bo as LazyNativeSelectControl,
|
|
4632
|
+
Lr as Link,
|
|
4633
|
+
Ao as ListControl,
|
|
4634
|
+
ol as Locale,
|
|
4635
|
+
Jo as Menu,
|
|
4636
|
+
Fr as Modal,
|
|
4637
|
+
Vn as MutedLabel,
|
|
4638
|
+
$t as NativeSelect,
|
|
4639
|
+
fo as NativeSelectControl,
|
|
4640
|
+
Xo as NavigationLink,
|
|
4641
|
+
go as NullableDateControl,
|
|
4642
|
+
Ct as NullableDateInput,
|
|
4643
|
+
mo as NullableDateTimeControl,
|
|
4644
|
+
St as NullableDateTimeInput,
|
|
4645
|
+
ko as NullableStringDateControl,
|
|
4646
|
+
xo as NullableStringDateTimeControl,
|
|
4647
|
+
Qn as NullableTextArea,
|
|
4648
|
+
vo as NullableTextAreaControl,
|
|
4649
|
+
yo as NullableTextControl,
|
|
4650
|
+
Yn as NullableTextInput,
|
|
4651
|
+
wo as NumberControl,
|
|
4652
|
+
Jn as NumberInput,
|
|
4653
|
+
ar as ObjectController,
|
|
4654
|
+
Lt as Overlay,
|
|
4655
|
+
$o as PasswordControl,
|
|
4656
|
+
er as PasswordInput,
|
|
4657
|
+
jn as RequiredSymbol,
|
|
4658
|
+
Je as ScrollablePanel,
|
|
4659
|
+
nr as SegmentedControl,
|
|
4660
|
+
De as SelectOption,
|
|
4661
|
+
nt as SidebarGroup,
|
|
4662
|
+
jr as SidebarLink,
|
|
4663
|
+
Zo as Sink,
|
|
4664
|
+
Ko as Stack,
|
|
4665
|
+
Io as StandaloneAppearanceSelector,
|
|
4666
|
+
Co as StringDateControl,
|
|
4667
|
+
Oo as Switch,
|
|
4668
|
+
On as Tag,
|
|
4669
|
+
So as TagsControl,
|
|
4670
|
+
rr as TagsInput,
|
|
4671
|
+
or as TextArea,
|
|
4672
|
+
Eo as TextAreaControl,
|
|
4552
4673
|
ao as TextControl,
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
wn as
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4674
|
+
Wn as TextInput,
|
|
4675
|
+
_t as Theme,
|
|
4676
|
+
Bo as ThemeAppearance,
|
|
4677
|
+
nl as Tooltip,
|
|
4678
|
+
al as Use,
|
|
4679
|
+
kr as WithBeatUIBreakpoint,
|
|
4680
|
+
Po as WithBeatUIElementBreakpoint,
|
|
4681
|
+
Tt as WithBreakpoint,
|
|
4682
|
+
W as backgroundConfig,
|
|
4683
|
+
bn as baseSpacing,
|
|
4684
|
+
an as bgColors,
|
|
4685
|
+
un as borderColors,
|
|
4686
|
+
at as breakpoints,
|
|
4687
|
+
mn as changeFontSize,
|
|
4688
|
+
sn as colorShades,
|
|
4689
|
+
Pe as colors,
|
|
4690
|
+
gr as compareBreakpoint,
|
|
4691
|
+
At as connectCommonAttributes,
|
|
4692
|
+
jo as connectNumberInput,
|
|
4693
|
+
Vo as connectStringInput,
|
|
4694
|
+
dr as convertStandardSchemaIssues,
|
|
4695
|
+
ur as convertStandardSchemaPathToPath,
|
|
4696
|
+
Uo as delaySignal,
|
|
4697
|
+
po as emitExpando,
|
|
4698
|
+
zn as emitOptionExpando,
|
|
4699
|
+
$e as emptyToNull,
|
|
4700
|
+
Ho as findBreakpoint,
|
|
4701
|
+
yn as fontFamily,
|
|
4702
|
+
pt as fontSize,
|
|
4703
|
+
kn as fontWeight,
|
|
4704
|
+
no as generateAllTokenVariables,
|
|
4705
|
+
zr as generateBackgroundUtilities,
|
|
4706
|
+
ln as generateBreakpointVariables,
|
|
4707
|
+
Ie as generateButtonClasses,
|
|
4708
|
+
hn as generateColorVariables,
|
|
4709
|
+
et as generateLinkClasses,
|
|
4710
|
+
pn as generateRadiusVariables,
|
|
4711
|
+
gn as generateSpacingVariables,
|
|
4712
|
+
wn as generateTypographyVariables,
|
|
4713
|
+
Cn as generateZIndexVariables,
|
|
4714
|
+
Nr as getBreakpointMediaQuery,
|
|
4715
|
+
qr as getBreakpointVar,
|
|
4716
|
+
ct as getBreakpointVarName,
|
|
4595
4717
|
ke as getColorVar,
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4718
|
+
Le as getColorVarName,
|
|
4719
|
+
eo as getFontFamilyVar,
|
|
4720
|
+
kt as getFontFamilyVarName,
|
|
4721
|
+
Xr as getFontSizeVar,
|
|
4722
|
+
bt as getFontSizeVarName,
|
|
4723
|
+
Yr as getFontWeightVar,
|
|
4724
|
+
ft as getFontWeightVarName,
|
|
4725
|
+
tn as getIconLocally,
|
|
4726
|
+
Jr as getLetterSpacingVar,
|
|
4727
|
+
mt as getLetterSpacingVarName,
|
|
4728
|
+
Qr as getLineHeightVar,
|
|
4729
|
+
gt as getLineHeightVarName,
|
|
4730
|
+
Zr as getRadiusMediaQuery,
|
|
4731
|
+
Gr as getRadiusVar,
|
|
4732
|
+
dt as getRadiusVarName,
|
|
4733
|
+
Kr as getSpacingVar,
|
|
4734
|
+
ht as getSpacingVarName,
|
|
4735
|
+
ro as getTokenValue,
|
|
4736
|
+
to as getZIndexVar,
|
|
4737
|
+
xt as getZIndexVarName,
|
|
4616
4738
|
Z as inputOptionsFromController,
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4739
|
+
Me as inputOptionsFromMappedController,
|
|
4740
|
+
dn as interactiveColors,
|
|
4741
|
+
st as isIndexedDBAvailable,
|
|
4742
|
+
It as isUrlMatch,
|
|
4743
|
+
vn as letterSpacing,
|
|
4744
|
+
xn as lineHeight,
|
|
4745
|
+
Ne as makeMapValidationResult,
|
|
4746
|
+
We as makeMappedOnChangeHandler,
|
|
4747
|
+
rl as makeMessages,
|
|
4748
|
+
so as makeNullableOnChangeHandler,
|
|
4749
|
+
G as makeOnBlurHandler,
|
|
4628
4750
|
Q as makeOnChangeHandler,
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4751
|
+
Ur as normalizeColorName,
|
|
4752
|
+
Et as nullToEmpty,
|
|
4753
|
+
To as parsePath,
|
|
4754
|
+
sr as pathToString,
|
|
4755
|
+
ut as radius,
|
|
4634
4756
|
Se as semanticColorNames,
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4757
|
+
it as semanticColors,
|
|
4758
|
+
ae as sessionId,
|
|
4759
|
+
fn as spacing,
|
|
4760
|
+
pr as standardSchemaResultToValidationResult,
|
|
4761
|
+
en as storeIconLocally,
|
|
4762
|
+
cn as textColors,
|
|
4763
|
+
Rr as themeColorNames,
|
|
4642
4764
|
fe as useAnimatedElementToggle,
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4765
|
+
Bt as useAnimatedToggle,
|
|
4766
|
+
hr as useController,
|
|
4767
|
+
zo as useFocusTrap,
|
|
4768
|
+
Fo as useForm,
|
|
4769
|
+
Mo as useTimedToggle,
|
|
4770
|
+
lr as wrapSegment,
|
|
4771
|
+
$n as zIndex
|
|
4650
4772
|
};
|