@tempots/beatui 0.6.0 → 0.7.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/index.es.js +745 -741
- package/dist/index.umd.js +7 -7
- package/dist/types/components/beatui.d.ts +2 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,23 +1,119 @@
|
|
|
1
1
|
var Dt = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var ze = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
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) ||
|
|
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) ?
|
|
8
|
-
import { computedOf as y,
|
|
9
|
-
import { Use as
|
|
10
|
-
import {
|
|
11
|
-
const
|
|
6
|
+
var B = (e, n, t) => Ot(e, typeof n != "symbol" ? n + "" : n, t), Vt = (e, n, t) => n.has(e) || ze("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) ? ze("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(e) : n.set(e, t);
|
|
8
|
+
import { makeProviderMark as ot, localStorageProp as lt, computedOf as y, Use as xe, Portal as jt, attr as s, prop as N, WithProvider as Ft, Fragment as I, html as p, When as R, aria as A, style as v, on as m, OnDispose as U, Value as w, Empty as $, dataAttr as ue, Ensure as je, WithElement as F, input as oe, emitValue as L, emitValueAsDate as Ht, ForEach as Fe, OneOfType as Pt, emitValueAsNullableDate as Mt, emitValueAsNullableDateTime as Wt, emitValueAsNumber as Ie, Repeat as qt, signal as Ge, emitChecked as Nt, OneOfValue as Rt, WithBrowserCtx as Ut, render as zt, MapSignal as Gt, svg as Ze, svgAttr as Ke } from "@tempots/dom";
|
|
9
|
+
import { Use as il } from "@tempots/dom";
|
|
10
|
+
import { useAppearance as Zt, Location as Se, WhenInViewport as Kt, Resource as st, ElementRect as ve, AutoSelect as Xt, WindowSize as Yt, PopOver as Qt, Anchor as He } from "@tempots/ui";
|
|
11
|
+
const Pe = {
|
|
12
|
+
mark: ot("Theme"),
|
|
13
|
+
// Create function returns the value and cleanup
|
|
14
|
+
create: (e) => {
|
|
15
|
+
const n = Zt(), t = lt({
|
|
16
|
+
key: "beatui-appearance-preference",
|
|
17
|
+
defaultValue: "system"
|
|
18
|
+
}), r = () => {
|
|
19
|
+
n.dispose(), t.dispose();
|
|
20
|
+
};
|
|
21
|
+
return {
|
|
22
|
+
value: {
|
|
23
|
+
appearance: y(
|
|
24
|
+
n,
|
|
25
|
+
t
|
|
26
|
+
)((a, u) => u === "system" ? a : u),
|
|
27
|
+
appearancePreference: t,
|
|
28
|
+
setAppearancePreference: (a) => {
|
|
29
|
+
t.set(a);
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
dispose: r
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
}, Jt = () => xe(
|
|
36
|
+
Pe,
|
|
37
|
+
({ appearance: e }) => jt("body", s.class(e.map((n) => `b-${n}`)))
|
|
38
|
+
);
|
|
39
|
+
function Ur({
|
|
40
|
+
locale: e,
|
|
41
|
+
defaultLocale: n = "en-US",
|
|
42
|
+
defaultMessages: t,
|
|
43
|
+
localeLoader: r
|
|
44
|
+
}) {
|
|
45
|
+
const o = N({
|
|
46
|
+
locale: n,
|
|
47
|
+
messages: t
|
|
48
|
+
}), l = e.on((c) => {
|
|
49
|
+
c !== o.value.locale && (o.set({
|
|
50
|
+
locale: c,
|
|
51
|
+
messages: o.value.messages
|
|
52
|
+
}), r(c).then((i) => {
|
|
53
|
+
c === o.value.locale && o.set({ locale: c, messages: i });
|
|
54
|
+
}).catch((i) => {
|
|
55
|
+
o.set({
|
|
56
|
+
locale: n,
|
|
57
|
+
messages: t
|
|
58
|
+
}), console.error("Failed to load locale", i);
|
|
59
|
+
}));
|
|
60
|
+
}), a = o.$.messages, u = new Proxy({}, {
|
|
61
|
+
get: (c, i) => {
|
|
62
|
+
const d = a.at(i);
|
|
63
|
+
return function(...h) {
|
|
64
|
+
return y(
|
|
65
|
+
d,
|
|
66
|
+
...h
|
|
67
|
+
)(
|
|
68
|
+
(f, ...b) => (
|
|
69
|
+
// Call the message function with provided arguments
|
|
70
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
|
71
|
+
f(...b)
|
|
72
|
+
)
|
|
73
|
+
);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
return {
|
|
78
|
+
/** Clean up all resources and event listeners */
|
|
79
|
+
dispose: () => {
|
|
80
|
+
l(), o.dispose();
|
|
81
|
+
},
|
|
82
|
+
/** Translation functions that return reactive signals */
|
|
83
|
+
t: u
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
const en = {
|
|
87
|
+
mark: ot("Locale"),
|
|
88
|
+
create: (e) => {
|
|
89
|
+
const n = lt({
|
|
90
|
+
defaultValue: navigator.language ?? "en-US",
|
|
91
|
+
key: "beatui-locale"
|
|
92
|
+
});
|
|
93
|
+
return {
|
|
94
|
+
value: {
|
|
95
|
+
locale: n,
|
|
96
|
+
setLocale: (r) => n.set(r)
|
|
97
|
+
},
|
|
98
|
+
dispose: () => {
|
|
99
|
+
n.dispose();
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
function zr(...e) {
|
|
105
|
+
return Ft(({ set: n }) => (n(Pe, {}), n(en, {}), n(Se, {}), I(Jt(), ...e)));
|
|
106
|
+
}
|
|
107
|
+
const tn = "bui-icons", ye = /* @__PURE__ */ new Map(), at = (() => {
|
|
12
108
|
try {
|
|
13
109
|
return typeof indexedDB < "u" && indexedDB !== null;
|
|
14
110
|
} catch {
|
|
15
111
|
return !1;
|
|
16
112
|
}
|
|
17
113
|
})();
|
|
18
|
-
function
|
|
19
|
-
return
|
|
20
|
-
const t = indexedDB.open(
|
|
114
|
+
function nn() {
|
|
115
|
+
return at ? new Promise((e, n) => {
|
|
116
|
+
const t = indexedDB.open(tn, 1);
|
|
21
117
|
t.onupgradeneeded = function(r) {
|
|
22
118
|
const o = r.target.result;
|
|
23
119
|
o.objectStoreNames.contains("icons") || o.createObjectStore("icons");
|
|
@@ -28,8 +124,8 @@ function Jt() {
|
|
|
28
124
|
};
|
|
29
125
|
}) : Promise.reject(new Error("IndexedDB not available"));
|
|
30
126
|
}
|
|
31
|
-
const we =
|
|
32
|
-
function
|
|
127
|
+
const we = at ? nn() : null;
|
|
128
|
+
function rn(e, n) {
|
|
33
129
|
return new Promise(async (t, r) => {
|
|
34
130
|
try {
|
|
35
131
|
if (we) {
|
|
@@ -42,7 +138,7 @@ function en(e, n) {
|
|
|
42
138
|
}
|
|
43
139
|
});
|
|
44
140
|
}
|
|
45
|
-
function
|
|
141
|
+
function on(e) {
|
|
46
142
|
return new Promise(async (n, t) => {
|
|
47
143
|
try {
|
|
48
144
|
if (we) {
|
|
@@ -57,7 +153,7 @@ function tn(e) {
|
|
|
57
153
|
}
|
|
58
154
|
});
|
|
59
155
|
}
|
|
60
|
-
async function
|
|
156
|
+
async function ln(e) {
|
|
61
157
|
const n = `https://api.iconify.design/${e}.svg`;
|
|
62
158
|
return fetch(n).then((t) => {
|
|
63
159
|
if (t.status === 200)
|
|
@@ -65,14 +161,14 @@ async function nn(e) {
|
|
|
65
161
|
throw new Error(`Failed to load icon: ${e}`);
|
|
66
162
|
});
|
|
67
163
|
}
|
|
68
|
-
async function
|
|
69
|
-
const n = e.replace(":", "/"), t = await
|
|
164
|
+
async function sn(e) {
|
|
165
|
+
const n = e.replace(":", "/"), t = await on(n);
|
|
70
166
|
if (t)
|
|
71
167
|
return t;
|
|
72
|
-
const r = await
|
|
73
|
-
return await
|
|
168
|
+
const r = await ln(n);
|
|
169
|
+
return await rn(n, r), r;
|
|
74
170
|
}
|
|
75
|
-
function
|
|
171
|
+
function an(e, n) {
|
|
76
172
|
const t = ["bc-icon", `bc-icon--${e}`];
|
|
77
173
|
return n && t.push(`bu-fg--${n}`), t.join(" ");
|
|
78
174
|
}
|
|
@@ -86,23 +182,23 @@ function K({ icon: e, size: n = "md", color: t, title: r, accessibility: o = "au
|
|
|
86
182
|
y(
|
|
87
183
|
n,
|
|
88
184
|
t
|
|
89
|
-
)((u, c) =>
|
|
185
|
+
)((u, c) => an(u ?? "md", c))
|
|
90
186
|
),
|
|
91
187
|
// Add accessibility attributes based on icon type
|
|
92
|
-
|
|
188
|
+
R(
|
|
93
189
|
a,
|
|
94
|
-
() =>
|
|
190
|
+
() => I(
|
|
95
191
|
s.role("img"),
|
|
96
192
|
// TODO translation
|
|
97
193
|
A.label(r || "Icon")
|
|
98
194
|
),
|
|
99
195
|
() => A.hidden(!0)
|
|
100
196
|
),
|
|
101
|
-
|
|
197
|
+
Kt(
|
|
102
198
|
{ once: !0 },
|
|
103
|
-
() =>
|
|
199
|
+
() => st({
|
|
104
200
|
request: e,
|
|
105
|
-
load: ({ request: u }) =>
|
|
201
|
+
load: ({ request: u }) => sn(u),
|
|
106
202
|
mapError: String
|
|
107
203
|
})({
|
|
108
204
|
success: (u) => p.span(
|
|
@@ -113,9 +209,9 @@ function K({ icon: e, size: n = "md", color: t, title: r, accessibility: o = "au
|
|
|
113
209
|
loading: () => p.span(
|
|
114
210
|
s.class("animate-spin"),
|
|
115
211
|
// Loading state accessibility
|
|
116
|
-
|
|
212
|
+
R(
|
|
117
213
|
a,
|
|
118
|
-
() =>
|
|
214
|
+
() => I(
|
|
119
215
|
s.role("img"),
|
|
120
216
|
// TODO translation
|
|
121
217
|
A.label("Loading icon")
|
|
@@ -128,9 +224,9 @@ function K({ icon: e, size: n = "md", color: t, title: r, accessibility: o = "au
|
|
|
128
224
|
s.title(u),
|
|
129
225
|
s.class("text-red-500"),
|
|
130
226
|
// Error state accessibility
|
|
131
|
-
|
|
227
|
+
R(
|
|
132
228
|
a,
|
|
133
|
-
() =>
|
|
229
|
+
() => I(
|
|
134
230
|
s.role("img"),
|
|
135
231
|
// TODO translation
|
|
136
232
|
A.label("Failed to load icon")
|
|
@@ -144,7 +240,7 @@ function K({ icon: e, size: n = "md", color: t, title: r, accessibility: o = "au
|
|
|
144
240
|
...l
|
|
145
241
|
);
|
|
146
242
|
}
|
|
147
|
-
function
|
|
243
|
+
function Le(e, n, t, r, o, l) {
|
|
148
244
|
const a = [
|
|
149
245
|
"bc-button",
|
|
150
246
|
`bu-text-${n}`,
|
|
@@ -181,7 +277,7 @@ function be({
|
|
|
181
277
|
onClick: u = () => {
|
|
182
278
|
}
|
|
183
279
|
}, ...c) {
|
|
184
|
-
const i =
|
|
280
|
+
const i = N(null);
|
|
185
281
|
return p.button(
|
|
186
282
|
s.type(e),
|
|
187
283
|
s.disabled(
|
|
@@ -190,7 +286,7 @@ function be({
|
|
|
190
286
|
// Add ARIA attributes for accessibility
|
|
191
287
|
A.busy(t ?? !1),
|
|
192
288
|
// TODO translation
|
|
193
|
-
|
|
289
|
+
R(t ?? !1, () => A.label("Loading, please wait")),
|
|
194
290
|
s.class(
|
|
195
291
|
y(
|
|
196
292
|
r,
|
|
@@ -200,7 +296,7 @@ function be({
|
|
|
200
296
|
n,
|
|
201
297
|
t
|
|
202
298
|
)(
|
|
203
|
-
(d, h, f, b, k, C) =>
|
|
299
|
+
(d, h, f, b, k, C) => Le(
|
|
204
300
|
d ?? "filled",
|
|
205
301
|
h ?? "md",
|
|
206
302
|
f ?? "base",
|
|
@@ -210,9 +306,9 @@ function be({
|
|
|
210
306
|
)
|
|
211
307
|
)
|
|
212
308
|
),
|
|
213
|
-
|
|
309
|
+
R(
|
|
214
310
|
t ?? !1,
|
|
215
|
-
() =>
|
|
311
|
+
() => I(
|
|
216
312
|
v.width(
|
|
217
313
|
i.map((d) => d == null ? "" : `${d.width}px`)
|
|
218
314
|
),
|
|
@@ -228,9 +324,9 @@ function be({
|
|
|
228
324
|
"Loading, please wait"
|
|
229
325
|
)
|
|
230
326
|
),
|
|
231
|
-
() =>
|
|
327
|
+
() => I(m.click(u), ...c)
|
|
232
328
|
),
|
|
233
|
-
|
|
329
|
+
R(
|
|
234
330
|
t != null,
|
|
235
331
|
() => ve(
|
|
236
332
|
(d) => U(
|
|
@@ -242,7 +338,7 @@ function be({
|
|
|
242
338
|
)
|
|
243
339
|
);
|
|
244
340
|
}
|
|
245
|
-
const
|
|
341
|
+
const Me = {
|
|
246
342
|
red: {
|
|
247
343
|
50: "oklch(0.971 0.013 17.38)",
|
|
248
344
|
100: "oklch(0.936 0.032 17.717)",
|
|
@@ -529,7 +625,7 @@ const Pe = {
|
|
|
529
625
|
900: "oklch(0.216 0.006 56.043)",
|
|
530
626
|
950: "oklch(0.147 0.004 49.25)"
|
|
531
627
|
}
|
|
532
|
-
}, D = (e) => Object.entries(e),
|
|
628
|
+
}, D = (e) => Object.entries(e), Ae = (e, n) => e === n || e !== e && n !== n, Xe = (e, n) => {
|
|
533
629
|
const t = setTimeout(e, n);
|
|
534
630
|
return () => clearTimeout(t);
|
|
535
631
|
}, le = (e) => {
|
|
@@ -540,7 +636,7 @@ const Pe = {
|
|
|
540
636
|
return n == null && (n = requestAnimationFrame(t)), () => {
|
|
541
637
|
n != null && (cancelAnimationFrame(n), n = null);
|
|
542
638
|
};
|
|
543
|
-
},
|
|
639
|
+
}, ct = {
|
|
544
640
|
sm: "40rem",
|
|
545
641
|
// 640px
|
|
546
642
|
md: "48rem",
|
|
@@ -552,22 +648,22 @@ const Pe = {
|
|
|
552
648
|
"2xl": "96rem"
|
|
553
649
|
// 1536px
|
|
554
650
|
};
|
|
555
|
-
function
|
|
651
|
+
function it(e) {
|
|
556
652
|
return `--breakpoint-${e}`;
|
|
557
653
|
}
|
|
558
|
-
function
|
|
559
|
-
return `var(${
|
|
654
|
+
function Gr(e) {
|
|
655
|
+
return `var(${it(e)})`;
|
|
560
656
|
}
|
|
561
|
-
function
|
|
562
|
-
return `@media (width >= ${
|
|
657
|
+
function Zr(e) {
|
|
658
|
+
return `@media (width >= ${ct[e]})`;
|
|
563
659
|
}
|
|
564
|
-
function
|
|
660
|
+
function cn() {
|
|
565
661
|
const e = {};
|
|
566
|
-
return D(
|
|
567
|
-
e[
|
|
662
|
+
return D(ct).forEach(([n, t]) => {
|
|
663
|
+
e[it(n)] = t;
|
|
568
664
|
}), e;
|
|
569
665
|
}
|
|
570
|
-
const
|
|
666
|
+
const un = [
|
|
571
667
|
50,
|
|
572
668
|
100,
|
|
573
669
|
200,
|
|
@@ -579,7 +675,7 @@ const sn = [
|
|
|
579
675
|
800,
|
|
580
676
|
900,
|
|
581
677
|
950
|
|
582
|
-
],
|
|
678
|
+
], Ee = [
|
|
583
679
|
"primary",
|
|
584
680
|
"secondary",
|
|
585
681
|
"base",
|
|
@@ -587,10 +683,10 @@ const sn = [
|
|
|
587
683
|
"warning",
|
|
588
684
|
"error",
|
|
589
685
|
"info"
|
|
590
|
-
],
|
|
591
|
-
...
|
|
592
|
-
...D(
|
|
593
|
-
],
|
|
686
|
+
], Kr = [
|
|
687
|
+
...Ee,
|
|
688
|
+
...D(Me).map(([e]) => e)
|
|
689
|
+
], ut = {
|
|
594
690
|
primary: "blue",
|
|
595
691
|
secondary: "gray",
|
|
596
692
|
base: "gray",
|
|
@@ -598,7 +694,7 @@ const sn = [
|
|
|
598
694
|
warning: "amber",
|
|
599
695
|
error: "red",
|
|
600
696
|
info: "blue"
|
|
601
|
-
},
|
|
697
|
+
}, dn = {
|
|
602
698
|
light: {
|
|
603
699
|
background: ["base", 50],
|
|
604
700
|
surface: ["base", 100],
|
|
@@ -615,7 +711,7 @@ const sn = [
|
|
|
615
711
|
raised: ["base", 600],
|
|
616
712
|
overlay: ["base", 500]
|
|
617
713
|
}
|
|
618
|
-
},
|
|
714
|
+
}, hn = {
|
|
619
715
|
light: {
|
|
620
716
|
normal: ["base", 900],
|
|
621
717
|
muted: ["base", 600],
|
|
@@ -626,7 +722,7 @@ const sn = [
|
|
|
626
722
|
muted: ["base", 400],
|
|
627
723
|
inverted: ["base", 900]
|
|
628
724
|
}
|
|
629
|
-
},
|
|
725
|
+
}, pn = {
|
|
630
726
|
light: {
|
|
631
727
|
border: ["base", 200],
|
|
632
728
|
divider: ["base", 300],
|
|
@@ -637,7 +733,7 @@ const sn = [
|
|
|
637
733
|
divider: ["base", 600],
|
|
638
734
|
inverted: ["base", 900]
|
|
639
735
|
}
|
|
640
|
-
},
|
|
736
|
+
}, bn = {
|
|
641
737
|
light: {
|
|
642
738
|
focus: ["info", 700],
|
|
643
739
|
hover: ["base", 100],
|
|
@@ -649,14 +745,14 @@ const sn = [
|
|
|
649
745
|
active: ["base", 700]
|
|
650
746
|
}
|
|
651
747
|
};
|
|
652
|
-
function
|
|
653
|
-
return
|
|
748
|
+
function Xr(e) {
|
|
749
|
+
return Ee.includes(e) ? ut[e] : e;
|
|
654
750
|
}
|
|
655
|
-
function
|
|
751
|
+
function De(e, n) {
|
|
656
752
|
return `--color-${e}-${n}`;
|
|
657
753
|
}
|
|
658
754
|
function ke(e, n) {
|
|
659
|
-
return `var(${
|
|
755
|
+
return `var(${De(e, n)})`;
|
|
660
756
|
}
|
|
661
757
|
const W = {
|
|
662
758
|
// Special colors that don't follow the standard pattern
|
|
@@ -727,7 +823,7 @@ const W = {
|
|
|
727
823
|
}
|
|
728
824
|
}
|
|
729
825
|
};
|
|
730
|
-
function
|
|
826
|
+
function Yr() {
|
|
731
827
|
let e = `/*
|
|
732
828
|
* Background Utilities - Auto-generated from design tokens
|
|
733
829
|
*
|
|
@@ -753,8 +849,8 @@ function zr() {
|
|
|
753
849
|
`;
|
|
754
850
|
});
|
|
755
851
|
const n = [
|
|
756
|
-
...
|
|
757
|
-
...D(
|
|
852
|
+
...Ee,
|
|
853
|
+
...D(Me).map(([t]) => t)
|
|
758
854
|
];
|
|
759
855
|
return e += ` /* solid */
|
|
760
856
|
`, n.forEach((t) => {
|
|
@@ -861,36 +957,36 @@ function zr() {
|
|
|
861
957
|
}), e += `}
|
|
862
958
|
`, e;
|
|
863
959
|
}
|
|
864
|
-
function
|
|
960
|
+
function fn() {
|
|
865
961
|
const e = {};
|
|
866
|
-
return e["--color-white"] = "white", e["--color-black"] = "black", e["--color-inherit"] = "inherit", D(
|
|
962
|
+
return e["--color-white"] = "white", e["--color-black"] = "black", e["--color-inherit"] = "inherit", D(Me).forEach(([n, t]) => {
|
|
867
963
|
D(t).forEach(([r, o]) => {
|
|
868
|
-
e[
|
|
964
|
+
e[De(n, r)] = o;
|
|
869
965
|
});
|
|
870
|
-
}),
|
|
871
|
-
const t =
|
|
872
|
-
|
|
873
|
-
e[
|
|
966
|
+
}), Ee.forEach((n) => {
|
|
967
|
+
const t = ut[n];
|
|
968
|
+
un.forEach((r) => {
|
|
969
|
+
e[De(n, r)] = ke(
|
|
874
970
|
t,
|
|
875
971
|
r
|
|
876
972
|
);
|
|
877
973
|
});
|
|
878
|
-
}), D(
|
|
974
|
+
}), D(dn).forEach(([n, t]) => {
|
|
879
975
|
D(t).forEach(([r, [o, l]]) => {
|
|
880
976
|
e[`--bg-${r}-${n}`] = ke(o, l);
|
|
881
977
|
});
|
|
882
|
-
}), D(
|
|
978
|
+
}), D(hn).forEach(([n, t]) => {
|
|
883
979
|
D(t).forEach(([r, [o, l]]) => {
|
|
884
980
|
e[`--text-${r}-${n}`] = ke(o, l);
|
|
885
981
|
});
|
|
886
|
-
}), D(
|
|
982
|
+
}), D(pn).forEach(([n, t]) => {
|
|
887
983
|
D(t).forEach(([r, [o, l]]) => {
|
|
888
984
|
e[`--border-${r}-${n}`] = ke(
|
|
889
985
|
o,
|
|
890
986
|
l
|
|
891
987
|
);
|
|
892
988
|
});
|
|
893
|
-
}), D(
|
|
989
|
+
}), D(bn).forEach(([n, t]) => {
|
|
894
990
|
D(t).forEach(([r, [o, l]]) => {
|
|
895
991
|
e[`--interactive-${r}-${n}`] = ke(
|
|
896
992
|
o,
|
|
@@ -899,7 +995,7 @@ function hn() {
|
|
|
899
995
|
});
|
|
900
996
|
}), e;
|
|
901
997
|
}
|
|
902
|
-
const
|
|
998
|
+
const dt = {
|
|
903
999
|
none: "0",
|
|
904
1000
|
xs: "calc(var(--spacing-base) / 2)",
|
|
905
1001
|
sm: "var(--spacing-base)",
|
|
@@ -908,25 +1004,25 @@ const ut = {
|
|
|
908
1004
|
xl: "calc(var(--spacing-base) * 3)",
|
|
909
1005
|
full: "9999px"
|
|
910
1006
|
};
|
|
911
|
-
function
|
|
1007
|
+
function ht(e) {
|
|
912
1008
|
return `--radius-${e}`;
|
|
913
1009
|
}
|
|
914
|
-
function
|
|
915
|
-
return `var(${
|
|
1010
|
+
function Qr(e) {
|
|
1011
|
+
return `var(${ht(e)})`;
|
|
916
1012
|
}
|
|
917
|
-
function
|
|
918
|
-
return `@media (width >= ${
|
|
1013
|
+
function Jr(e) {
|
|
1014
|
+
return `@media (width >= ${dt[e]})`;
|
|
919
1015
|
}
|
|
920
|
-
function
|
|
1016
|
+
function gn() {
|
|
921
1017
|
const e = {};
|
|
922
|
-
return D(
|
|
923
|
-
e[
|
|
1018
|
+
return D(dt).forEach(([n, t]) => {
|
|
1019
|
+
e[ht(n)] = t;
|
|
924
1020
|
}), e;
|
|
925
1021
|
}
|
|
926
|
-
const
|
|
1022
|
+
const mn = "0.25rem", kn = {
|
|
927
1023
|
none: "0",
|
|
928
1024
|
px: "1px",
|
|
929
|
-
base:
|
|
1025
|
+
base: mn,
|
|
930
1026
|
xs: "calc(var(--spacing-base) / 2)",
|
|
931
1027
|
sm: "var(--spacing-base)",
|
|
932
1028
|
md: "calc(var(--spacing-base) * 1.5)",
|
|
@@ -937,19 +1033,19 @@ const bn = "0.25rem", fn = {
|
|
|
937
1033
|
"4xl": "calc(var(--spacing-base) * 8)",
|
|
938
1034
|
full: "2000px"
|
|
939
1035
|
};
|
|
940
|
-
function
|
|
1036
|
+
function pt(e) {
|
|
941
1037
|
return `--spacing-${e}`;
|
|
942
1038
|
}
|
|
943
|
-
function
|
|
944
|
-
return `var(${
|
|
1039
|
+
function eo(e) {
|
|
1040
|
+
return `var(${pt(e)})`;
|
|
945
1041
|
}
|
|
946
|
-
function
|
|
1042
|
+
function xn() {
|
|
947
1043
|
const e = {};
|
|
948
|
-
return D(
|
|
949
|
-
e[
|
|
1044
|
+
return D(kn).forEach(([n, t]) => {
|
|
1045
|
+
e[pt(n)] = t;
|
|
950
1046
|
}), e;
|
|
951
1047
|
}
|
|
952
|
-
const
|
|
1048
|
+
const bt = {
|
|
953
1049
|
"3xs": ["0.5rem", { lineHeight: "0.75rem" }],
|
|
954
1050
|
// 8px
|
|
955
1051
|
"2xs": ["0.625rem", { lineHeight: "0.75rem" }],
|
|
@@ -981,14 +1077,14 @@ const pt = {
|
|
|
981
1077
|
"9xl": ["8rem", { lineHeight: "1" }]
|
|
982
1078
|
// 128px
|
|
983
1079
|
};
|
|
984
|
-
function
|
|
985
|
-
const t = Object.keys(
|
|
1080
|
+
function vn(e, n) {
|
|
1081
|
+
const t = Object.keys(bt), r = t.indexOf(e);
|
|
986
1082
|
if (r === -1)
|
|
987
1083
|
throw new Error(`Invalid font size: ${e}`);
|
|
988
1084
|
const o = Math.min(Math.max(r + n, 0), t.length - 1);
|
|
989
1085
|
return t[o];
|
|
990
1086
|
}
|
|
991
|
-
const
|
|
1087
|
+
const yn = {
|
|
992
1088
|
thin: "100",
|
|
993
1089
|
extralight: "200",
|
|
994
1090
|
light: "300",
|
|
@@ -998,21 +1094,21 @@ const kn = {
|
|
|
998
1094
|
bold: "700",
|
|
999
1095
|
extrabold: "800",
|
|
1000
1096
|
black: "900"
|
|
1001
|
-
},
|
|
1097
|
+
}, wn = {
|
|
1002
1098
|
none: "1",
|
|
1003
1099
|
tight: "1.25",
|
|
1004
1100
|
snug: "1.375",
|
|
1005
1101
|
normal: "1.5",
|
|
1006
1102
|
relaxed: "1.625",
|
|
1007
1103
|
loose: "2"
|
|
1008
|
-
},
|
|
1104
|
+
}, $n = {
|
|
1009
1105
|
tighter: "-0.05em",
|
|
1010
1106
|
tight: "-0.025em",
|
|
1011
1107
|
normal: "0em",
|
|
1012
1108
|
wide: "0.025em",
|
|
1013
1109
|
wider: "0.05em",
|
|
1014
1110
|
widest: "0.1em"
|
|
1015
|
-
},
|
|
1111
|
+
}, Cn = {
|
|
1016
1112
|
sans: [
|
|
1017
1113
|
"system-ui",
|
|
1018
1114
|
"-apple-system",
|
|
@@ -1046,52 +1142,52 @@ const kn = {
|
|
|
1046
1142
|
"monospace"
|
|
1047
1143
|
]
|
|
1048
1144
|
};
|
|
1049
|
-
function bt(e) {
|
|
1050
|
-
return `--font-size-${e}`;
|
|
1051
|
-
}
|
|
1052
|
-
function Xr(e) {
|
|
1053
|
-
return `var(${bt(e)})`;
|
|
1054
|
-
}
|
|
1055
1145
|
function ft(e) {
|
|
1056
|
-
return `--font-
|
|
1146
|
+
return `--font-size-${e}`;
|
|
1057
1147
|
}
|
|
1058
|
-
function
|
|
1148
|
+
function to(e) {
|
|
1059
1149
|
return `var(${ft(e)})`;
|
|
1060
1150
|
}
|
|
1061
1151
|
function gt(e) {
|
|
1062
|
-
return `--
|
|
1152
|
+
return `--font-weight-${e}`;
|
|
1063
1153
|
}
|
|
1064
|
-
function
|
|
1154
|
+
function no(e) {
|
|
1065
1155
|
return `var(${gt(e)})`;
|
|
1066
1156
|
}
|
|
1067
1157
|
function mt(e) {
|
|
1068
|
-
return `--
|
|
1158
|
+
return `--line-height-${e}`;
|
|
1069
1159
|
}
|
|
1070
|
-
function
|
|
1160
|
+
function ro(e) {
|
|
1071
1161
|
return `var(${mt(e)})`;
|
|
1072
1162
|
}
|
|
1073
1163
|
function kt(e) {
|
|
1074
|
-
return `--
|
|
1164
|
+
return `--letter-spacing-${e}`;
|
|
1075
1165
|
}
|
|
1076
|
-
function
|
|
1166
|
+
function oo(e) {
|
|
1077
1167
|
return `var(${kt(e)})`;
|
|
1078
1168
|
}
|
|
1079
|
-
function
|
|
1169
|
+
function xt(e) {
|
|
1170
|
+
return `--font-family-${e}`;
|
|
1171
|
+
}
|
|
1172
|
+
function lo(e) {
|
|
1173
|
+
return `var(${xt(e)})`;
|
|
1174
|
+
}
|
|
1175
|
+
function Sn() {
|
|
1080
1176
|
const e = {};
|
|
1081
|
-
return Object.entries(
|
|
1177
|
+
return Object.entries(bt).forEach(([n, t]) => {
|
|
1082
1178
|
const [r] = Array.isArray(t) ? t : [t];
|
|
1083
|
-
e[
|
|
1084
|
-
}), Object.entries(
|
|
1085
|
-
e[ft(n)] = t;
|
|
1086
|
-
}), Object.entries(xn).forEach(([n, t]) => {
|
|
1179
|
+
e[ft(n)] = r;
|
|
1180
|
+
}), Object.entries(yn).forEach(([n, t]) => {
|
|
1087
1181
|
e[gt(n)] = t;
|
|
1088
|
-
}), Object.entries(
|
|
1182
|
+
}), Object.entries(wn).forEach(([n, t]) => {
|
|
1089
1183
|
e[mt(n)] = t;
|
|
1090
|
-
}), Object.entries(
|
|
1091
|
-
e[kt(n)] = t
|
|
1184
|
+
}), Object.entries($n).forEach(([n, t]) => {
|
|
1185
|
+
e[kt(n)] = t;
|
|
1186
|
+
}), Object.entries(Cn).forEach(([n, t]) => {
|
|
1187
|
+
e[xt(n)] = t.join(", ");
|
|
1092
1188
|
}), e;
|
|
1093
1189
|
}
|
|
1094
|
-
const
|
|
1190
|
+
const En = {
|
|
1095
1191
|
// Base layers
|
|
1096
1192
|
base: 0,
|
|
1097
1193
|
raised: 10,
|
|
@@ -1109,19 +1205,19 @@ const $n = {
|
|
|
1109
1205
|
// Maximum priority
|
|
1110
1206
|
maximum: 100
|
|
1111
1207
|
};
|
|
1112
|
-
function
|
|
1208
|
+
function vt(e) {
|
|
1113
1209
|
return `--z-index-${e}`;
|
|
1114
1210
|
}
|
|
1115
|
-
function
|
|
1116
|
-
return `var(${
|
|
1211
|
+
function so(e) {
|
|
1212
|
+
return `var(${vt(e)})`;
|
|
1117
1213
|
}
|
|
1118
|
-
function
|
|
1214
|
+
function _n() {
|
|
1119
1215
|
const e = {};
|
|
1120
|
-
return D(
|
|
1121
|
-
e[
|
|
1216
|
+
return D(En).forEach(([n, t]) => {
|
|
1217
|
+
e[vt(n)] = t.toString();
|
|
1122
1218
|
}), e;
|
|
1123
1219
|
}
|
|
1124
|
-
const
|
|
1220
|
+
const An = {
|
|
1125
1221
|
none: "none",
|
|
1126
1222
|
"2xs": "0 1px rgb(0 0 0 / 0.05)",
|
|
1127
1223
|
xs: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
@@ -1138,16 +1234,16 @@ const Sn = {
|
|
|
1138
1234
|
"top-xl": "0 -20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
|
|
1139
1235
|
"top-2xl": "0 -25px 50px -12px rgb(0 0 0 / 0.25)"
|
|
1140
1236
|
};
|
|
1141
|
-
function
|
|
1237
|
+
function Tn(e) {
|
|
1142
1238
|
return `--shadow-${e}`;
|
|
1143
1239
|
}
|
|
1144
|
-
function
|
|
1240
|
+
function Bn() {
|
|
1145
1241
|
const e = {};
|
|
1146
|
-
return D(
|
|
1147
|
-
e[
|
|
1242
|
+
return D(An).forEach(([n, t]) => {
|
|
1243
|
+
e[Tn(n)] = t;
|
|
1148
1244
|
}), e;
|
|
1149
1245
|
}
|
|
1150
|
-
const
|
|
1246
|
+
const In = {
|
|
1151
1247
|
none: "none",
|
|
1152
1248
|
"2xs": "0px 1px 0px rgb(0 0 0 / 0.15)",
|
|
1153
1249
|
xs: "0px 1px 1px rgb(0 0 0 / 0.2)",
|
|
@@ -1155,50 +1251,50 @@ const An = {
|
|
|
1155
1251
|
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
1252
|
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
1253
|
};
|
|
1158
|
-
function
|
|
1254
|
+
function Ln(e) {
|
|
1159
1255
|
return `--text-shadow-${e}`;
|
|
1160
1256
|
}
|
|
1161
|
-
function
|
|
1257
|
+
function Dn() {
|
|
1162
1258
|
const e = {};
|
|
1163
|
-
return D(
|
|
1164
|
-
e[
|
|
1259
|
+
return D(In).forEach(([n, t]) => {
|
|
1260
|
+
e[Ln(n)] = t;
|
|
1165
1261
|
}), e;
|
|
1166
1262
|
}
|
|
1167
|
-
function
|
|
1263
|
+
function ao() {
|
|
1168
1264
|
return {
|
|
1169
|
-
...
|
|
1265
|
+
...fn(),
|
|
1266
|
+
...xn(),
|
|
1267
|
+
...Sn(),
|
|
1268
|
+
...cn(),
|
|
1170
1269
|
...gn(),
|
|
1171
|
-
...wn(),
|
|
1172
|
-
...ln(),
|
|
1173
|
-
...pn(),
|
|
1174
|
-
..._n(),
|
|
1175
1270
|
...Bn(),
|
|
1176
|
-
...
|
|
1271
|
+
...Dn(),
|
|
1272
|
+
..._n()
|
|
1177
1273
|
};
|
|
1178
1274
|
}
|
|
1179
|
-
function
|
|
1275
|
+
function co(e, n) {
|
|
1180
1276
|
return n == null && typeof window > "u" ? "" : getComputedStyle(n ?? document.documentElement).getPropertyValue(e).trim();
|
|
1181
1277
|
}
|
|
1182
|
-
const
|
|
1278
|
+
const On = {
|
|
1183
1279
|
xs: "1.5",
|
|
1184
1280
|
sm: "2",
|
|
1185
1281
|
md: "2.5",
|
|
1186
1282
|
lg: "3",
|
|
1187
1283
|
xl: "4"
|
|
1188
|
-
},
|
|
1284
|
+
}, Vn = {
|
|
1189
1285
|
xs: "0",
|
|
1190
1286
|
sm: "0",
|
|
1191
1287
|
md: "0",
|
|
1192
1288
|
lg: "0.25",
|
|
1193
1289
|
xl: "0.5"
|
|
1194
1290
|
};
|
|
1195
|
-
function
|
|
1291
|
+
function jn(e, n, t) {
|
|
1196
1292
|
const r = ["bc-tag"];
|
|
1197
1293
|
return e ? r.push("bc-tag--disabled") : r.push(`bu-bg--${n}`), r.push(
|
|
1198
|
-
`bu-text-${
|
|
1294
|
+
`bu-text-${vn(t, -1)} bu-px-${On[t]} bu-py-${Vn[t]}`
|
|
1199
1295
|
), r.join(" ");
|
|
1200
1296
|
}
|
|
1201
|
-
const
|
|
1297
|
+
const Fn = ({
|
|
1202
1298
|
disabled: e,
|
|
1203
1299
|
value: n,
|
|
1204
1300
|
color: t = "base",
|
|
@@ -1210,7 +1306,7 @@ const On = ({
|
|
|
1210
1306
|
e ?? !1,
|
|
1211
1307
|
t ?? "base",
|
|
1212
1308
|
o ?? "md"
|
|
1213
|
-
)((l, a, u) =>
|
|
1309
|
+
)((l, a, u) => jn(l, a, u))
|
|
1214
1310
|
),
|
|
1215
1311
|
p.span(n),
|
|
1216
1312
|
r != null ? p.button(
|
|
@@ -1220,26 +1316,26 @@ const On = ({
|
|
|
1220
1316
|
m.click(() => r == null ? void 0 : r(w.get(n)))
|
|
1221
1317
|
) : $
|
|
1222
1318
|
);
|
|
1223
|
-
function
|
|
1319
|
+
function _e(e) {
|
|
1224
1320
|
return `bc-label bc-label--${e}`;
|
|
1225
1321
|
}
|
|
1226
|
-
const
|
|
1322
|
+
const io = (...e) => p.span(s.class(_e("emphasis")), ...e), yt = (...e) => p.span(s.class(_e("default")), ...e), Hn = (...e) => p.span(s.class(_e("muted")), ...e), uo = (...e) => p.span(s.class(_e("error")), ...e), Ye = /* @__PURE__ */ new Map();
|
|
1227
1323
|
function ae(e) {
|
|
1228
|
-
const n =
|
|
1229
|
-
return
|
|
1324
|
+
const n = Ye.get(e) ?? 0;
|
|
1325
|
+
return Ye.set(e, n + 1), `${e}-${n}`;
|
|
1230
1326
|
}
|
|
1231
|
-
const
|
|
1327
|
+
const Pn = p.span(
|
|
1232
1328
|
s.class("bc-input-wrapper__required"),
|
|
1233
1329
|
" *"
|
|
1234
1330
|
);
|
|
1235
|
-
function
|
|
1331
|
+
function Mn() {
|
|
1236
1332
|
return "bc-input-wrapper";
|
|
1237
1333
|
}
|
|
1238
|
-
function
|
|
1334
|
+
function Wn(e, n) {
|
|
1239
1335
|
const t = ["bc-input-wrapper__label-text"];
|
|
1240
1336
|
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
1337
|
}
|
|
1242
|
-
const
|
|
1338
|
+
const qn = ({
|
|
1243
1339
|
required: e,
|
|
1244
1340
|
label: n,
|
|
1245
1341
|
context: t,
|
|
@@ -1252,7 +1348,7 @@ const Pn = ({
|
|
|
1252
1348
|
}, ...i) => {
|
|
1253
1349
|
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
1350
|
return p.div(
|
|
1255
|
-
s.class(
|
|
1351
|
+
s.class(Mn()),
|
|
1256
1352
|
n != null || t != null ? p.div(
|
|
1257
1353
|
s.class("bc-input-wrapper__header"),
|
|
1258
1354
|
p.label(
|
|
@@ -1264,7 +1360,7 @@ const Pn = ({
|
|
|
1264
1360
|
d,
|
|
1265
1361
|
h
|
|
1266
1362
|
)(
|
|
1267
|
-
(C, S) =>
|
|
1363
|
+
(C, S) => Wn(
|
|
1268
1364
|
C ?? !1,
|
|
1269
1365
|
S ?? !1
|
|
1270
1366
|
)
|
|
@@ -1272,9 +1368,9 @@ const Pn = ({
|
|
|
1272
1368
|
),
|
|
1273
1369
|
n
|
|
1274
1370
|
),
|
|
1275
|
-
n != null && e ?
|
|
1371
|
+
n != null && e ? Pn : $
|
|
1276
1372
|
),
|
|
1277
|
-
t != null ?
|
|
1373
|
+
t != null ? yt(t) : $
|
|
1278
1374
|
) : $,
|
|
1279
1375
|
p.div(
|
|
1280
1376
|
s.class("bc-input-wrapper__content"),
|
|
@@ -1283,7 +1379,7 @@ const Pn = ({
|
|
|
1283
1379
|
[b, k].filter(Boolean).join(" ")
|
|
1284
1380
|
) : $,
|
|
1285
1381
|
e ? ue.required("true") : $,
|
|
1286
|
-
|
|
1382
|
+
R(d, () => ue.invalid("true")),
|
|
1287
1383
|
o
|
|
1288
1384
|
),
|
|
1289
1385
|
r != null ? p.div(
|
|
@@ -1291,7 +1387,7 @@ const Pn = ({
|
|
|
1291
1387
|
s.id(b),
|
|
1292
1388
|
r
|
|
1293
1389
|
) : $,
|
|
1294
|
-
l != null ?
|
|
1390
|
+
l != null ? je(
|
|
1295
1391
|
l,
|
|
1296
1392
|
(C) => p.div(
|
|
1297
1393
|
s.class("bc-input-wrapper__error"),
|
|
@@ -1306,7 +1402,7 @@ const Pn = ({
|
|
|
1306
1402
|
...i
|
|
1307
1403
|
);
|
|
1308
1404
|
};
|
|
1309
|
-
function
|
|
1405
|
+
function Nn() {
|
|
1310
1406
|
return "bc-control-input-wrapper";
|
|
1311
1407
|
}
|
|
1312
1408
|
const z = ({
|
|
@@ -1317,8 +1413,8 @@ const z = ({
|
|
|
1317
1413
|
content: o,
|
|
1318
1414
|
controller: l
|
|
1319
1415
|
}, ...a) => p.div(
|
|
1320
|
-
s.class(
|
|
1321
|
-
|
|
1416
|
+
s.class(Nn()),
|
|
1417
|
+
qn(
|
|
1322
1418
|
{
|
|
1323
1419
|
required: e,
|
|
1324
1420
|
label: n,
|
|
@@ -1385,7 +1481,7 @@ const z = ({
|
|
|
1385
1481
|
name: o,
|
|
1386
1482
|
placeholder: l,
|
|
1387
1483
|
id: a
|
|
1388
|
-
}) =>
|
|
1484
|
+
}) => I(
|
|
1389
1485
|
s.autocomplete(e),
|
|
1390
1486
|
s.autofocus(n),
|
|
1391
1487
|
s.class(t),
|
|
@@ -1398,10 +1494,10 @@ const z = ({
|
|
|
1398
1494
|
disabled: e.disabled,
|
|
1399
1495
|
value: e.value,
|
|
1400
1496
|
hasError: e.hasError
|
|
1401
|
-
}),
|
|
1497
|
+
}), We = (e, n) => ({
|
|
1402
1498
|
...Z(e),
|
|
1403
1499
|
value: e.value.map(n)
|
|
1404
|
-
}),
|
|
1500
|
+
}), wt = (e) => {
|
|
1405
1501
|
const { value: n, onBlur: t, onChange: r } = e;
|
|
1406
1502
|
return X({
|
|
1407
1503
|
...e,
|
|
@@ -1409,11 +1505,11 @@ const z = ({
|
|
|
1409
1505
|
Y(e),
|
|
1410
1506
|
s.valueAsDate(n),
|
|
1411
1507
|
s.class("bc-input"),
|
|
1412
|
-
t != null ? m.blur(
|
|
1413
|
-
r != null ? m.change(
|
|
1508
|
+
t != null ? m.blur(L(t)) : $,
|
|
1509
|
+
r != null ? m.change(Ht(r)) : $
|
|
1414
1510
|
)
|
|
1415
1511
|
});
|
|
1416
|
-
},
|
|
1512
|
+
}, Rn = (e) => {
|
|
1417
1513
|
const { value: n, onBlur: t, onChange: r, onInput: o } = e;
|
|
1418
1514
|
return X({
|
|
1419
1515
|
...e,
|
|
@@ -1429,9 +1525,9 @@ const z = ({
|
|
|
1429
1525
|
u && l.setAttribute("aria-describedby", u), c === "true" && l.setAttribute("aria-required", "true"), i === "true" && l.setAttribute("aria-invalid", "true");
|
|
1430
1526
|
}
|
|
1431
1527
|
}),
|
|
1432
|
-
t != null ? m.blur(
|
|
1433
|
-
r != null ? m.change(
|
|
1434
|
-
o != null ? m.input(
|
|
1528
|
+
t != null ? m.blur(L(t)) : $,
|
|
1529
|
+
r != null ? m.change(L(r)) : $,
|
|
1530
|
+
o != null ? m.input(L(o)) : $
|
|
1435
1531
|
)
|
|
1436
1532
|
});
|
|
1437
1533
|
}, G = (
|
|
@@ -1441,17 +1537,17 @@ const z = ({
|
|
|
1441
1537
|
}
|
|
1442
1538
|
), Q = (e, n) => (t) => {
|
|
1443
1539
|
e.change(t), n == null || n(t);
|
|
1444
|
-
},
|
|
1540
|
+
}, qe = (e, n, t) => (r) => {
|
|
1445
1541
|
const o = n(r);
|
|
1446
1542
|
e.change(o), t == null || t(o);
|
|
1447
|
-
},
|
|
1543
|
+
}, ho = (e, n, t) => (r) => {
|
|
1448
1544
|
n(r) ? (e.change(null), t == null || t(null)) : (e.change(r), t == null || t(r));
|
|
1449
|
-
},
|
|
1545
|
+
}, po = (e, ...n) => {
|
|
1450
1546
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1451
1547
|
return z(
|
|
1452
1548
|
{
|
|
1453
1549
|
...o,
|
|
1454
|
-
content:
|
|
1550
|
+
content: Rn({
|
|
1455
1551
|
...o,
|
|
1456
1552
|
...Z(o.controller),
|
|
1457
1553
|
onChange: Q(o.controller, r),
|
|
@@ -1460,12 +1556,12 @@ const z = ({
|
|
|
1460
1556
|
},
|
|
1461
1557
|
...n
|
|
1462
1558
|
);
|
|
1463
|
-
},
|
|
1559
|
+
}, bo = (e, ...n) => {
|
|
1464
1560
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1465
1561
|
return z(
|
|
1466
1562
|
{
|
|
1467
1563
|
...o,
|
|
1468
|
-
content:
|
|
1564
|
+
content: wt({
|
|
1469
1565
|
...o,
|
|
1470
1566
|
...Z(o.controller),
|
|
1471
1567
|
onChange: Q(o.controller, r),
|
|
@@ -1474,27 +1570,27 @@ const z = ({
|
|
|
1474
1570
|
},
|
|
1475
1571
|
...n
|
|
1476
1572
|
);
|
|
1477
|
-
},
|
|
1573
|
+
}, Un = (e) => {
|
|
1478
1574
|
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
1575
|
return `${n}-${t}-${r}T${o}:${l}`;
|
|
1480
|
-
},
|
|
1576
|
+
}, zn = (e) => {
|
|
1481
1577
|
const { value: n, onBlur: t, onChange: r } = e;
|
|
1482
1578
|
return X({
|
|
1483
1579
|
...e,
|
|
1484
1580
|
input: oe["datetime-local"](
|
|
1485
1581
|
Y(e),
|
|
1486
|
-
s.value(w.map(n,
|
|
1582
|
+
s.value(w.map(n, Un)),
|
|
1487
1583
|
s.class("bc-input"),
|
|
1488
|
-
t != null ? m.blur(
|
|
1489
|
-
r != null ? m.change(
|
|
1584
|
+
t != null ? m.blur(L(t)) : $,
|
|
1585
|
+
r != null ? m.change(L((o) => r(new Date(o)))) : $
|
|
1490
1586
|
)
|
|
1491
1587
|
});
|
|
1492
|
-
},
|
|
1588
|
+
}, fo = (e, ...n) => {
|
|
1493
1589
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1494
1590
|
return z(
|
|
1495
1591
|
{
|
|
1496
1592
|
...o,
|
|
1497
|
-
content:
|
|
1593
|
+
content: zn({
|
|
1498
1594
|
...o,
|
|
1499
1595
|
...Z(o.controller),
|
|
1500
1596
|
onChange: Q(o.controller, r),
|
|
@@ -1503,7 +1599,7 @@ const z = ({
|
|
|
1503
1599
|
},
|
|
1504
1600
|
...n
|
|
1505
1601
|
);
|
|
1506
|
-
},
|
|
1602
|
+
}, Gn = (e) => {
|
|
1507
1603
|
const n = {
|
|
1508
1604
|
name: "email",
|
|
1509
1605
|
autocomplete: "email",
|
|
@@ -1516,18 +1612,18 @@ const z = ({
|
|
|
1516
1612
|
Y(n),
|
|
1517
1613
|
s.value(t),
|
|
1518
1614
|
s.class("bc-input"),
|
|
1519
|
-
r != null ? m.blur(
|
|
1520
|
-
o != null ? m.change(
|
|
1521
|
-
l != null ? m.input(
|
|
1615
|
+
r != null ? m.blur(L(r)) : $,
|
|
1616
|
+
o != null ? m.change(L(o)) : $,
|
|
1617
|
+
l != null ? m.input(L(l)) : $
|
|
1522
1618
|
)
|
|
1523
1619
|
});
|
|
1524
|
-
},
|
|
1620
|
+
}, go = (e, ...n) => {
|
|
1525
1621
|
const { onChange: t, onBlur: r, ...o } = e;
|
|
1526
1622
|
return z(
|
|
1527
1623
|
{
|
|
1528
1624
|
label: "Email",
|
|
1529
1625
|
...o,
|
|
1530
|
-
content:
|
|
1626
|
+
content: Gn({
|
|
1531
1627
|
...o,
|
|
1532
1628
|
...Z(o.controller),
|
|
1533
1629
|
onChange: Q(o.controller, t),
|
|
@@ -1536,26 +1632,26 @@ const z = ({
|
|
|
1536
1632
|
},
|
|
1537
1633
|
...n
|
|
1538
1634
|
);
|
|
1539
|
-
},
|
|
1635
|
+
}, mo = {
|
|
1540
1636
|
filling: { type: "filling" },
|
|
1541
1637
|
submitting: { type: "submitting" },
|
|
1542
1638
|
error: (e) => ({ type: "error", error: e }),
|
|
1543
1639
|
success: { type: "success" }
|
|
1544
|
-
},
|
|
1545
|
-
const r = `${
|
|
1640
|
+
}, Ne = "$$tts-exp-", Zn = (e, n) => F((t) => {
|
|
1641
|
+
const r = `${Ne}${e}`;
|
|
1546
1642
|
return U(w.on(n, (o) => Reflect.set(t, r, o)));
|
|
1547
|
-
}),
|
|
1548
|
-
const t = `${
|
|
1643
|
+
}), ko = (e, n) => {
|
|
1644
|
+
const t = `${Ne}${e}`;
|
|
1549
1645
|
return (r) => {
|
|
1550
1646
|
n(Reflect.get(r.target, t));
|
|
1551
1647
|
};
|
|
1552
|
-
},
|
|
1553
|
-
const t = `${
|
|
1648
|
+
}, Kn = (e, n) => {
|
|
1649
|
+
const t = `${Ne}${e}`;
|
|
1554
1650
|
return (r) => {
|
|
1555
1651
|
const o = r.target, l = o.selectedIndex, a = o.options[l];
|
|
1556
1652
|
n(Reflect.get(a, t));
|
|
1557
1653
|
};
|
|
1558
|
-
},
|
|
1654
|
+
}, Oe = {
|
|
1559
1655
|
value: (e, n, t) => ({
|
|
1560
1656
|
type: "value",
|
|
1561
1657
|
value: e,
|
|
@@ -1570,12 +1666,12 @@ const z = ({
|
|
|
1570
1666
|
}),
|
|
1571
1667
|
break: { type: "break" },
|
|
1572
1668
|
getOptionValues: (e) => e.flatMap(
|
|
1573
|
-
(n) => n.type === "group" ?
|
|
1669
|
+
(n) => n.type === "group" ? Oe.getOptionValues(n.options) : n.type === "break" ? [] : [n.value]
|
|
1574
1670
|
),
|
|
1575
|
-
contains: (e, n, t = (r, o) => r === o) =>
|
|
1576
|
-
},
|
|
1671
|
+
contains: (e, n, t = (r, o) => r === o) => Oe.getOptionValues(e).some((r) => t(r, n))
|
|
1672
|
+
}, $t = (e, n, t) => je(
|
|
1577
1673
|
e,
|
|
1578
|
-
(r) =>
|
|
1674
|
+
(r) => Pt(r, {
|
|
1579
1675
|
value: (o) => {
|
|
1580
1676
|
const l = y(
|
|
1581
1677
|
o,
|
|
@@ -1584,15 +1680,15 @@ const z = ({
|
|
|
1584
1680
|
return p.option(
|
|
1585
1681
|
U(l.dispose),
|
|
1586
1682
|
s.selected(l),
|
|
1587
|
-
|
|
1683
|
+
Zn("value", o.$.value),
|
|
1588
1684
|
o.$.label
|
|
1589
1685
|
);
|
|
1590
1686
|
},
|
|
1591
1687
|
group: (o) => p.optgroup(
|
|
1592
1688
|
s.label(o.$.group),
|
|
1593
|
-
|
|
1689
|
+
Fe(
|
|
1594
1690
|
o.$.options,
|
|
1595
|
-
(l) =>
|
|
1691
|
+
(l) => $t(
|
|
1596
1692
|
l,
|
|
1597
1693
|
n,
|
|
1598
1694
|
t
|
|
@@ -1601,7 +1697,7 @@ const z = ({
|
|
|
1601
1697
|
),
|
|
1602
1698
|
break: () => p.hr()
|
|
1603
1699
|
})
|
|
1604
|
-
),
|
|
1700
|
+
), Ct = (e) => {
|
|
1605
1701
|
const {
|
|
1606
1702
|
value: n,
|
|
1607
1703
|
onBlur: t,
|
|
@@ -1630,21 +1726,21 @@ const z = ({
|
|
|
1630
1726
|
s.class("focus:outline-none bg-transparent"),
|
|
1631
1727
|
s.class("w-full"),
|
|
1632
1728
|
p.option(s.hidden("hidden"), l),
|
|
1633
|
-
|
|
1729
|
+
Fe(o, (c) => $t(c, a, n)),
|
|
1634
1730
|
t != null ? m.blur(t) : $,
|
|
1635
|
-
r != null ? m.change(
|
|
1731
|
+
r != null ? m.change(Kn("value", (c) => r(c))) : $
|
|
1636
1732
|
)
|
|
1637
1733
|
});
|
|
1638
|
-
},
|
|
1734
|
+
}, Xn = (e) => st({
|
|
1639
1735
|
request: e.request,
|
|
1640
1736
|
load: e.load,
|
|
1641
1737
|
mapError: String
|
|
1642
1738
|
})({
|
|
1643
1739
|
success: (n) => {
|
|
1644
1740
|
const t = n.map(
|
|
1645
|
-
(r) => r.map((o) => typeof o == "object" && "id" in o && "label" in o ?
|
|
1741
|
+
(r) => r.map((o) => typeof o == "object" && "id" in o && "label" in o ? Oe.value(o.id, o.label) : o)
|
|
1646
1742
|
);
|
|
1647
|
-
return
|
|
1743
|
+
return Ct({
|
|
1648
1744
|
...e,
|
|
1649
1745
|
options: t,
|
|
1650
1746
|
unselectedLabel: e.unselectedLabel,
|
|
@@ -1657,12 +1753,12 @@ const z = ({
|
|
|
1657
1753
|
A.label("Loading..."),
|
|
1658
1754
|
"↻"
|
|
1659
1755
|
)
|
|
1660
|
-
}),
|
|
1756
|
+
}), xo = (e, ...n) => {
|
|
1661
1757
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1662
1758
|
return z(
|
|
1663
1759
|
{
|
|
1664
1760
|
...o,
|
|
1665
|
-
content:
|
|
1761
|
+
content: Xn({
|
|
1666
1762
|
...e,
|
|
1667
1763
|
...Z(o.controller),
|
|
1668
1764
|
onChange: Q(o.controller, r),
|
|
@@ -1671,12 +1767,12 @@ const z = ({
|
|
|
1671
1767
|
},
|
|
1672
1768
|
...n
|
|
1673
1769
|
);
|
|
1674
|
-
},
|
|
1770
|
+
}, vo = (e, ...n) => {
|
|
1675
1771
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1676
1772
|
return z(
|
|
1677
1773
|
{
|
|
1678
1774
|
...o,
|
|
1679
|
-
content:
|
|
1775
|
+
content: Ct({
|
|
1680
1776
|
...o,
|
|
1681
1777
|
...Z(o.controller),
|
|
1682
1778
|
onChange: Q(o.controller, r),
|
|
@@ -1685,7 +1781,7 @@ const z = ({
|
|
|
1685
1781
|
},
|
|
1686
1782
|
...n
|
|
1687
1783
|
);
|
|
1688
|
-
},
|
|
1784
|
+
}, St = (e) => {
|
|
1689
1785
|
const { value: n, onBlur: t, onChange: r } = e;
|
|
1690
1786
|
return X({
|
|
1691
1787
|
...e,
|
|
@@ -1693,16 +1789,16 @@ const z = ({
|
|
|
1693
1789
|
Y(e),
|
|
1694
1790
|
s.valueAsDate(n),
|
|
1695
1791
|
s.class("bc-input"),
|
|
1696
|
-
t != null ? m.blur(
|
|
1697
|
-
r != null ? m.change(
|
|
1792
|
+
t != null ? m.blur(L(t)) : $,
|
|
1793
|
+
r != null ? m.change(Mt(r)) : $
|
|
1698
1794
|
)
|
|
1699
1795
|
});
|
|
1700
|
-
},
|
|
1796
|
+
}, yo = (e, ...n) => {
|
|
1701
1797
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1702
1798
|
return z(
|
|
1703
1799
|
{
|
|
1704
1800
|
...o,
|
|
1705
|
-
content:
|
|
1801
|
+
content: St({
|
|
1706
1802
|
...o,
|
|
1707
1803
|
...Z(o.controller),
|
|
1708
1804
|
onChange: Q(o.controller, r),
|
|
@@ -1711,27 +1807,27 @@ const z = ({
|
|
|
1711
1807
|
},
|
|
1712
1808
|
...n
|
|
1713
1809
|
);
|
|
1714
|
-
},
|
|
1810
|
+
}, Yn = (e) => {
|
|
1715
1811
|
const n = e.getFullYear(), t = e.getMonth() + 1, r = e.getDate(), o = e.getHours(), l = e.getMinutes(), a = e.getSeconds();
|
|
1716
1812
|
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
|
-
},
|
|
1718
|
-
const { value: n, onBlur: t, onChange: r } = e, o = w.map(n, (l) => l != null ?
|
|
1813
|
+
}, Et = (e) => {
|
|
1814
|
+
const { value: n, onBlur: t, onChange: r } = e, o = w.map(n, (l) => l != null ? Yn(l) : null);
|
|
1719
1815
|
return X({
|
|
1720
1816
|
...e,
|
|
1721
1817
|
input: oe["datetime-local"](
|
|
1722
1818
|
Y(e),
|
|
1723
1819
|
s.value(w.map(o, (l) => l ?? null)),
|
|
1724
1820
|
s.class("bc-input"),
|
|
1725
|
-
t != null ? m.blur(
|
|
1726
|
-
r != null ? m.change(
|
|
1821
|
+
t != null ? m.blur(L(t)) : $,
|
|
1822
|
+
r != null ? m.change(Wt(r)) : $
|
|
1727
1823
|
)
|
|
1728
1824
|
});
|
|
1729
|
-
},
|
|
1825
|
+
}, wo = (e, ...n) => {
|
|
1730
1826
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1731
1827
|
return z(
|
|
1732
1828
|
{
|
|
1733
1829
|
...o,
|
|
1734
|
-
content:
|
|
1830
|
+
content: Et({
|
|
1735
1831
|
...o,
|
|
1736
1832
|
...Z(o.controller),
|
|
1737
1833
|
onChange: Q(o.controller, r),
|
|
@@ -1740,18 +1836,18 @@ const z = ({
|
|
|
1740
1836
|
},
|
|
1741
1837
|
...n
|
|
1742
1838
|
);
|
|
1743
|
-
},
|
|
1839
|
+
}, $o = (e, ...n) => {
|
|
1744
1840
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1745
1841
|
return z(
|
|
1746
1842
|
{
|
|
1747
1843
|
...o,
|
|
1748
|
-
content:
|
|
1844
|
+
content: St({
|
|
1749
1845
|
...o,
|
|
1750
|
-
...
|
|
1846
|
+
...We(
|
|
1751
1847
|
o.controller,
|
|
1752
1848
|
(l) => l != null && l !== "" ? new Date(l) : null
|
|
1753
1849
|
),
|
|
1754
|
-
onChange:
|
|
1850
|
+
onChange: qe(
|
|
1755
1851
|
o.controller,
|
|
1756
1852
|
(l) => l != null ? l.toISOString().split("T")[0] : null,
|
|
1757
1853
|
r
|
|
@@ -1761,20 +1857,20 @@ const z = ({
|
|
|
1761
1857
|
},
|
|
1762
1858
|
...n
|
|
1763
1859
|
);
|
|
1764
|
-
},
|
|
1860
|
+
}, Qn = (e) => new Date(e), Jn = (e) => e.toISOString(), Co = (e, ...n) => {
|
|
1765
1861
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1766
1862
|
return z(
|
|
1767
1863
|
{
|
|
1768
1864
|
...o,
|
|
1769
|
-
content:
|
|
1865
|
+
content: Et({
|
|
1770
1866
|
...o,
|
|
1771
|
-
...
|
|
1867
|
+
...We(
|
|
1772
1868
|
o.controller,
|
|
1773
|
-
(l) => l != null && l !== "" ?
|
|
1869
|
+
(l) => l != null && l !== "" ? Qn(l) : null
|
|
1774
1870
|
),
|
|
1775
|
-
onChange:
|
|
1871
|
+
onChange: qe(
|
|
1776
1872
|
o.controller,
|
|
1777
|
-
(l) => l != null ?
|
|
1873
|
+
(l) => l != null ? Jn(l) : null,
|
|
1778
1874
|
r
|
|
1779
1875
|
),
|
|
1780
1876
|
onBlur: G(o.controller, t)
|
|
@@ -1782,39 +1878,39 @@ const z = ({
|
|
|
1782
1878
|
},
|
|
1783
1879
|
...n
|
|
1784
1880
|
);
|
|
1785
|
-
}, $e = (e) => typeof e == "string" && e.trim() === "" ? null : e,
|
|
1881
|
+
}, $e = (e) => typeof e == "string" && e.trim() === "" ? null : e, _t = (e) => e ?? "", er = (e) => {
|
|
1786
1882
|
const { value: n, onBlur: t, onChange: r, onInput: o, ...l } = e;
|
|
1787
1883
|
return X({
|
|
1788
1884
|
...l,
|
|
1789
1885
|
input: oe.text(
|
|
1790
1886
|
Y(l),
|
|
1791
|
-
s.value(w.map(n,
|
|
1887
|
+
s.value(w.map(n, _t)),
|
|
1792
1888
|
s.class("bc-input"),
|
|
1793
1889
|
t != null ? m.blur(t) : $,
|
|
1794
|
-
r != null ? m.change(
|
|
1795
|
-
o != null ? m.input(
|
|
1890
|
+
r != null ? m.change(L((a) => r($e(a)))) : $,
|
|
1891
|
+
o != null ? m.input(L((a) => o($e(a)))) : $
|
|
1796
1892
|
)
|
|
1797
1893
|
});
|
|
1798
|
-
},
|
|
1894
|
+
}, tr = (e) => {
|
|
1799
1895
|
const { value: n, onBlur: t, onChange: r, onInput: o, rows: l } = e;
|
|
1800
1896
|
return X({
|
|
1801
1897
|
...e,
|
|
1802
1898
|
input: p.textarea(
|
|
1803
1899
|
Y(e),
|
|
1804
1900
|
s.rows(l ?? 10),
|
|
1805
|
-
s.value(w.map(n,
|
|
1901
|
+
s.value(w.map(n, _t)),
|
|
1806
1902
|
s.class("bc-input"),
|
|
1807
1903
|
t != null ? m.blur(t) : $,
|
|
1808
|
-
r != null ? m.change(
|
|
1809
|
-
o != null ? m.input(
|
|
1904
|
+
r != null ? m.change(L((a) => r($e(a)))) : $,
|
|
1905
|
+
o != null ? m.input(L((a) => o($e(a)))) : $
|
|
1810
1906
|
)
|
|
1811
1907
|
});
|
|
1812
|
-
},
|
|
1908
|
+
}, So = (e, ...n) => {
|
|
1813
1909
|
const { onBlur: t, onChange: r, rows: o, ...l } = e;
|
|
1814
1910
|
return z(
|
|
1815
1911
|
{
|
|
1816
1912
|
...l,
|
|
1817
|
-
content:
|
|
1913
|
+
content: tr({
|
|
1818
1914
|
...l,
|
|
1819
1915
|
...Z(l.controller),
|
|
1820
1916
|
rows: o,
|
|
@@ -1824,12 +1920,12 @@ const z = ({
|
|
|
1824
1920
|
},
|
|
1825
1921
|
...n
|
|
1826
1922
|
);
|
|
1827
|
-
},
|
|
1923
|
+
}, Eo = (e, ...n) => {
|
|
1828
1924
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1829
1925
|
return z(
|
|
1830
1926
|
{
|
|
1831
1927
|
...o,
|
|
1832
|
-
content:
|
|
1928
|
+
content: er({
|
|
1833
1929
|
...o,
|
|
1834
1930
|
...Z(o.controller),
|
|
1835
1931
|
onChange: Q(o.controller, r),
|
|
@@ -1838,7 +1934,7 @@ const z = ({
|
|
|
1838
1934
|
},
|
|
1839
1935
|
...n
|
|
1840
1936
|
);
|
|
1841
|
-
},
|
|
1937
|
+
}, nr = (e) => {
|
|
1842
1938
|
const { value: n, step: t, min: r, max: o, onBlur: l, onChange: a, onInput: u } = e;
|
|
1843
1939
|
return X({
|
|
1844
1940
|
...e,
|
|
@@ -1849,17 +1945,17 @@ const z = ({
|
|
|
1849
1945
|
s.min(r),
|
|
1850
1946
|
s.max(o),
|
|
1851
1947
|
s.class("bc-input bc-number-input"),
|
|
1852
|
-
l != null ? m.blur(
|
|
1853
|
-
a != null ? m.change(
|
|
1854
|
-
u != null ? m.input(
|
|
1948
|
+
l != null ? m.blur(L(l)) : $,
|
|
1949
|
+
a != null ? m.change(Ie(a)) : $,
|
|
1950
|
+
u != null ? m.input(Ie(u)) : $
|
|
1855
1951
|
)
|
|
1856
1952
|
});
|
|
1857
|
-
},
|
|
1953
|
+
}, _o = (e, ...n) => {
|
|
1858
1954
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1859
1955
|
return z(
|
|
1860
1956
|
{
|
|
1861
1957
|
...o,
|
|
1862
|
-
content:
|
|
1958
|
+
content: nr({
|
|
1863
1959
|
...o,
|
|
1864
1960
|
...Z(o.controller),
|
|
1865
1961
|
onChange: Q(o.controller, r),
|
|
@@ -1868,7 +1964,7 @@ const z = ({
|
|
|
1868
1964
|
},
|
|
1869
1965
|
...n
|
|
1870
1966
|
);
|
|
1871
|
-
},
|
|
1967
|
+
}, rr = (e) => {
|
|
1872
1968
|
const {
|
|
1873
1969
|
value: n,
|
|
1874
1970
|
onBlur: t,
|
|
@@ -1884,7 +1980,7 @@ const z = ({
|
|
|
1884
1980
|
} = e, f = {
|
|
1885
1981
|
name: "password",
|
|
1886
1982
|
...h
|
|
1887
|
-
}, b =
|
|
1983
|
+
}, b = N(!0), k = y(
|
|
1888
1984
|
b,
|
|
1889
1985
|
i
|
|
1890
1986
|
)((S, g) => S ? g ?? "current-password" : "off"), C = y(
|
|
@@ -1902,36 +1998,36 @@ const z = ({
|
|
|
1902
1998
|
autocomplete: k,
|
|
1903
1999
|
placeholder: C
|
|
1904
2000
|
}),
|
|
1905
|
-
|
|
2001
|
+
R(
|
|
1906
2002
|
b,
|
|
1907
|
-
() =>
|
|
1908
|
-
() =>
|
|
2003
|
+
() => I(s.type("password")),
|
|
2004
|
+
() => I(s.type("text"))
|
|
1909
2005
|
),
|
|
1910
2006
|
s.class("bc-input"),
|
|
1911
2007
|
s.value(n),
|
|
1912
|
-
t != null ? m.blur(
|
|
1913
|
-
r != null ? m.change(
|
|
1914
|
-
o != null ? m.input(
|
|
2008
|
+
t != null ? m.blur(L(t)) : $,
|
|
2009
|
+
r != null ? m.change(L(r)) : $,
|
|
2010
|
+
o != null ? m.input(L(o)) : $
|
|
1915
2011
|
),
|
|
1916
2012
|
after: a ?? p.button(
|
|
1917
2013
|
s.class("bc-input-container__password-toggle"),
|
|
1918
2014
|
// TODO translation
|
|
1919
2015
|
A.label("Toggle password visibility"),
|
|
1920
2016
|
m.click(() => b.update((S) => !S)),
|
|
1921
|
-
|
|
2017
|
+
R(
|
|
1922
2018
|
b,
|
|
1923
2019
|
() => K({ icon: "line-md--eye" }),
|
|
1924
2020
|
() => K({ icon: "line-md--eye-off" })
|
|
1925
2021
|
)
|
|
1926
2022
|
)
|
|
1927
2023
|
});
|
|
1928
|
-
},
|
|
2024
|
+
}, Ao = (e, ...n) => {
|
|
1929
2025
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
1930
2026
|
return z(
|
|
1931
2027
|
{
|
|
1932
2028
|
label: "Password",
|
|
1933
2029
|
...o,
|
|
1934
|
-
content:
|
|
2030
|
+
content: rr({
|
|
1935
2031
|
...o,
|
|
1936
2032
|
...Z(o.controller),
|
|
1937
2033
|
onChange: Q(o.controller, r),
|
|
@@ -1941,10 +2037,10 @@ const z = ({
|
|
|
1941
2037
|
...n
|
|
1942
2038
|
);
|
|
1943
2039
|
};
|
|
1944
|
-
function
|
|
2040
|
+
function or(e, n) {
|
|
1945
2041
|
return e.length === n.length && e.every((t, r) => t === n[r]);
|
|
1946
2042
|
}
|
|
1947
|
-
function
|
|
2043
|
+
function lr({
|
|
1948
2044
|
options: e,
|
|
1949
2045
|
value: n,
|
|
1950
2046
|
onChange: t,
|
|
@@ -1956,9 +2052,9 @@ function nr({
|
|
|
1956
2052
|
label: h
|
|
1957
2053
|
})), u = Object.fromEntries(
|
|
1958
2054
|
a.map((d, h) => [d.key, h])
|
|
1959
|
-
), c =
|
|
2055
|
+
), c = N(
|
|
1960
2056
|
a.map(() => ({ left: 0, width: 0 })),
|
|
1961
|
-
|
|
2057
|
+
or
|
|
1962
2058
|
);
|
|
1963
2059
|
function i(d, h) {
|
|
1964
2060
|
const f = [
|
|
@@ -2028,18 +2124,18 @@ function nr({
|
|
|
2028
2124
|
...l
|
|
2029
2125
|
);
|
|
2030
2126
|
}
|
|
2031
|
-
const
|
|
2127
|
+
const To = (e, ...n) => {
|
|
2032
2128
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
2033
2129
|
return z(
|
|
2034
2130
|
{
|
|
2035
2131
|
...o,
|
|
2036
|
-
content:
|
|
2132
|
+
content: wt({
|
|
2037
2133
|
...o,
|
|
2038
|
-
...
|
|
2134
|
+
...We(
|
|
2039
2135
|
o.controller,
|
|
2040
2136
|
(l) => new Date(l)
|
|
2041
2137
|
),
|
|
2042
|
-
onChange:
|
|
2138
|
+
onChange: qe(
|
|
2043
2139
|
o.controller,
|
|
2044
2140
|
(l) => l.toISOString(),
|
|
2045
2141
|
r
|
|
@@ -2049,8 +2145,8 @@ const Co = (e, ...n) => {
|
|
|
2049
2145
|
},
|
|
2050
2146
|
...n
|
|
2051
2147
|
);
|
|
2052
|
-
},
|
|
2053
|
-
const { value: n, onChange: t, onBlur: r } = e, o =
|
|
2148
|
+
}, sr = (e) => {
|
|
2149
|
+
const { value: n, onChange: t, onBlur: r } = e, o = N(""), l = (u) => {
|
|
2054
2150
|
t == null || t(w.get(n).filter((c) => c !== u));
|
|
2055
2151
|
}, a = () => {
|
|
2056
2152
|
const u = o.value.trim(), c = w.get(n);
|
|
@@ -2058,25 +2154,25 @@ const Co = (e, ...n) => {
|
|
|
2058
2154
|
};
|
|
2059
2155
|
return X({
|
|
2060
2156
|
...e,
|
|
2061
|
-
input:
|
|
2157
|
+
input: I(
|
|
2062
2158
|
s.class("bc-input-container__tags"),
|
|
2063
|
-
|
|
2159
|
+
Fe(n, (u) => Fn({ value: u, onClose: () => l(u.value) })),
|
|
2064
2160
|
oe.text(
|
|
2065
2161
|
Y(e),
|
|
2066
2162
|
s.value(o),
|
|
2067
2163
|
s.class("bc-input bc-input-container__tags-input"),
|
|
2068
|
-
m.input(
|
|
2164
|
+
m.input(L(o.set)),
|
|
2069
2165
|
t != null ? m.change(a) : $,
|
|
2070
2166
|
r != null ? m.blur(r) : $
|
|
2071
2167
|
)
|
|
2072
2168
|
)
|
|
2073
2169
|
});
|
|
2074
|
-
},
|
|
2170
|
+
}, Bo = (e, ...n) => {
|
|
2075
2171
|
const { onBlur: t, onChange: r, ...o } = e;
|
|
2076
2172
|
return z(
|
|
2077
2173
|
{
|
|
2078
2174
|
...o,
|
|
2079
|
-
content:
|
|
2175
|
+
content: sr({
|
|
2080
2176
|
...o,
|
|
2081
2177
|
...Z(o.controller),
|
|
2082
2178
|
onChange: Q(o.controller, r),
|
|
@@ -2085,7 +2181,7 @@ const Co = (e, ...n) => {
|
|
|
2085
2181
|
},
|
|
2086
2182
|
...n
|
|
2087
2183
|
);
|
|
2088
|
-
},
|
|
2184
|
+
}, ar = (e) => {
|
|
2089
2185
|
const { value: n, onBlur: t, onChange: r, onInput: o, rows: l } = e;
|
|
2090
2186
|
return X({
|
|
2091
2187
|
...e,
|
|
@@ -2102,17 +2198,17 @@ const Co = (e, ...n) => {
|
|
|
2102
2198
|
c && a.setAttribute("aria-describedby", c), i === "true" && a.setAttribute("aria-required", "true"), d === "true" && a.setAttribute("aria-invalid", "true");
|
|
2103
2199
|
}
|
|
2104
2200
|
}),
|
|
2105
|
-
t != null ? m.blur(
|
|
2106
|
-
r != null ? m.change(
|
|
2107
|
-
o != null ? m.input(
|
|
2201
|
+
t != null ? m.blur(L(t)) : $,
|
|
2202
|
+
r != null ? m.change(L(r)) : $,
|
|
2203
|
+
o != null ? m.input(L(o)) : $
|
|
2108
2204
|
)
|
|
2109
2205
|
});
|
|
2110
|
-
},
|
|
2206
|
+
}, Io = (e, ...n) => {
|
|
2111
2207
|
const { onBlur: t, onChange: r, rows: o, ...l } = e;
|
|
2112
2208
|
return z(
|
|
2113
2209
|
{
|
|
2114
2210
|
...l,
|
|
2115
|
-
content:
|
|
2211
|
+
content: ar({
|
|
2116
2212
|
...l,
|
|
2117
2213
|
...Z(l.controller),
|
|
2118
2214
|
rows: o,
|
|
@@ -2124,15 +2220,15 @@ const Co = (e, ...n) => {
|
|
|
2124
2220
|
...n
|
|
2125
2221
|
);
|
|
2126
2222
|
};
|
|
2127
|
-
function
|
|
2128
|
-
return
|
|
2223
|
+
function Lo(e, n, t) {
|
|
2224
|
+
return je(
|
|
2129
2225
|
e.value,
|
|
2130
2226
|
() => {
|
|
2131
2227
|
const r = e.transform(
|
|
2132
2228
|
(o) => o,
|
|
2133
2229
|
(o) => o
|
|
2134
2230
|
);
|
|
2135
|
-
return
|
|
2231
|
+
return I(
|
|
2136
2232
|
U(() => r.dispose()),
|
|
2137
2233
|
n(r)
|
|
2138
2234
|
);
|
|
@@ -2140,15 +2236,15 @@ function _o(e, n, t) {
|
|
|
2140
2236
|
t
|
|
2141
2237
|
);
|
|
2142
2238
|
}
|
|
2143
|
-
function
|
|
2239
|
+
function Do(e, n, t) {
|
|
2144
2240
|
const r = e.length.map((o) => o);
|
|
2145
|
-
return
|
|
2241
|
+
return I(
|
|
2146
2242
|
U(() => r.dispose()),
|
|
2147
|
-
|
|
2243
|
+
qt(
|
|
2148
2244
|
r,
|
|
2149
2245
|
(o) => {
|
|
2150
2246
|
const l = e.item(o.index), a = [];
|
|
2151
|
-
return
|
|
2247
|
+
return I(
|
|
2152
2248
|
U(() => {
|
|
2153
2249
|
l.dispose(), a.forEach((u) => u());
|
|
2154
2250
|
}),
|
|
@@ -2178,7 +2274,7 @@ function Ao(e, n, t) {
|
|
|
2178
2274
|
const c = (() => {
|
|
2179
2275
|
switch (u) {
|
|
2180
2276
|
case "up":
|
|
2181
|
-
return
|
|
2277
|
+
return Ge(o.index > 0);
|
|
2182
2278
|
case "down":
|
|
2183
2279
|
return e.length.map((i) => o.index < i - 1);
|
|
2184
2280
|
}
|
|
@@ -2189,7 +2285,7 @@ function Ao(e, n, t) {
|
|
|
2189
2285
|
const c = (() => {
|
|
2190
2286
|
switch (u) {
|
|
2191
2287
|
case "up":
|
|
2192
|
-
return
|
|
2288
|
+
return Ge(o.index === 0);
|
|
2193
2289
|
case "down":
|
|
2194
2290
|
return e.length.map((i) => o.index === i - 1);
|
|
2195
2291
|
}
|
|
@@ -2203,24 +2299,24 @@ function Ao(e, n, t) {
|
|
|
2203
2299
|
)
|
|
2204
2300
|
);
|
|
2205
2301
|
}
|
|
2206
|
-
function
|
|
2302
|
+
function Oo(e) {
|
|
2207
2303
|
return e.split(".").map((t) => {
|
|
2208
2304
|
const r = t.match(/^\[(\d+)\]$/);
|
|
2209
2305
|
return r ? Number(r[1]) : t;
|
|
2210
2306
|
});
|
|
2211
2307
|
}
|
|
2212
|
-
function
|
|
2308
|
+
function cr(e) {
|
|
2213
2309
|
return typeof e == "number" ? `[${e}]` : `.${e}`;
|
|
2214
2310
|
}
|
|
2215
|
-
function
|
|
2311
|
+
function ir(e) {
|
|
2216
2312
|
if (e.length === 0) return "";
|
|
2217
2313
|
const [n, ...t] = e;
|
|
2218
2314
|
return [
|
|
2219
2315
|
typeof n == "number" ? `[${n}]` : n,
|
|
2220
|
-
...t.map(
|
|
2316
|
+
...t.map(cr)
|
|
2221
2317
|
].join("");
|
|
2222
2318
|
}
|
|
2223
|
-
function
|
|
2319
|
+
function Re(e) {
|
|
2224
2320
|
return function(t) {
|
|
2225
2321
|
var o;
|
|
2226
2322
|
if (t.type === "Valid") return t;
|
|
@@ -2231,7 +2327,7 @@ function Ne(e) {
|
|
|
2231
2327
|
};
|
|
2232
2328
|
}
|
|
2233
2329
|
var ie, pe;
|
|
2234
|
-
const
|
|
2330
|
+
const Ue = class Ue {
|
|
2235
2331
|
constructor(n, t, r, o, l) {
|
|
2236
2332
|
B(this, "path");
|
|
2237
2333
|
B(this, "change");
|
|
@@ -2241,7 +2337,7 @@ const Re = class Re {
|
|
|
2241
2337
|
B(this, "hasError");
|
|
2242
2338
|
B(this, "dependencyErrors");
|
|
2243
2339
|
me(this, ie, {
|
|
2244
|
-
disabled:
|
|
2340
|
+
disabled: N(!1)
|
|
2245
2341
|
});
|
|
2246
2342
|
B(this, "parent");
|
|
2247
2343
|
B(this, "disabled");
|
|
@@ -2264,7 +2360,7 @@ const Re = class Re {
|
|
|
2264
2360
|
B(this, "enable", () => {
|
|
2265
2361
|
j(this, ie).disabled.set(!1);
|
|
2266
2362
|
});
|
|
2267
|
-
B(this, "array", (n =
|
|
2363
|
+
B(this, "array", (n = Ae) => new dr(
|
|
2268
2364
|
this.path,
|
|
2269
2365
|
this.change,
|
|
2270
2366
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -2273,7 +2369,7 @@ const Re = class Re {
|
|
|
2273
2369
|
this.parent,
|
|
2274
2370
|
n
|
|
2275
2371
|
));
|
|
2276
|
-
B(this, "object", (n =
|
|
2372
|
+
B(this, "object", (n = Ae) => new ur(
|
|
2277
2373
|
this.path,
|
|
2278
2374
|
this.change,
|
|
2279
2375
|
this.value,
|
|
@@ -2281,11 +2377,11 @@ const Re = class Re {
|
|
|
2281
2377
|
this.parent,
|
|
2282
2378
|
n
|
|
2283
2379
|
));
|
|
2284
|
-
B(this, "transform", (n, t, r = [], o =
|
|
2380
|
+
B(this, "transform", (n, t, r = [], o = Ae) => new Ue(
|
|
2285
2381
|
[...this.path, ...r],
|
|
2286
2382
|
(l) => this.change(t(l)),
|
|
2287
2383
|
this.value.map(n, o),
|
|
2288
|
-
this.status.map(
|
|
2384
|
+
this.status.map(Re(r)),
|
|
2289
2385
|
this.parent
|
|
2290
2386
|
));
|
|
2291
2387
|
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(
|
|
@@ -2298,13 +2394,13 @@ const Re = class Re {
|
|
|
2298
2394
|
});
|
|
2299
2395
|
}
|
|
2300
2396
|
get name() {
|
|
2301
|
-
return
|
|
2397
|
+
return ir(this.path);
|
|
2302
2398
|
}
|
|
2303
2399
|
};
|
|
2304
2400
|
ie = new WeakMap(), pe = new WeakMap();
|
|
2305
|
-
let de =
|
|
2401
|
+
let de = Ue;
|
|
2306
2402
|
var se;
|
|
2307
|
-
class
|
|
2403
|
+
class ur extends de {
|
|
2308
2404
|
constructor(t, r, o, l, a, u) {
|
|
2309
2405
|
super(
|
|
2310
2406
|
t,
|
|
@@ -2326,7 +2422,7 @@ class ar extends de {
|
|
|
2326
2422
|
[...this.path, t],
|
|
2327
2423
|
r,
|
|
2328
2424
|
this.value.map((l) => l[t]),
|
|
2329
|
-
this.status.map(
|
|
2425
|
+
this.status.map(Re([t])),
|
|
2330
2426
|
{ disabled: this.disabled }
|
|
2331
2427
|
);
|
|
2332
2428
|
return j(this, se).set(t, o), o;
|
|
@@ -2340,7 +2436,7 @@ class ar extends de {
|
|
|
2340
2436
|
}
|
|
2341
2437
|
se = new WeakMap();
|
|
2342
2438
|
var re;
|
|
2343
|
-
class
|
|
2439
|
+
class dr extends de {
|
|
2344
2440
|
constructor(t, r, o, l, a, u) {
|
|
2345
2441
|
const c = o.map((d) => d ?? [], u);
|
|
2346
2442
|
super(t, r, c, l, a);
|
|
@@ -2356,7 +2452,7 @@ class cr extends de {
|
|
|
2356
2452
|
[...this.path, t],
|
|
2357
2453
|
r,
|
|
2358
2454
|
this.value.map((l) => l[t]),
|
|
2359
|
-
this.status.map(
|
|
2455
|
+
this.status.map(Re([t])),
|
|
2360
2456
|
{ disabled: this.disabled }
|
|
2361
2457
|
);
|
|
2362
2458
|
return j(this, re)[t] = o, o;
|
|
@@ -2397,39 +2493,11 @@ class cr extends de {
|
|
|
2397
2493
|
}
|
|
2398
2494
|
}
|
|
2399
2495
|
re = new WeakMap();
|
|
2400
|
-
|
|
2401
|
-
mark: rt("Theme"),
|
|
2402
|
-
// Create function returns the value and cleanup
|
|
2403
|
-
create: (e) => {
|
|
2404
|
-
const n = Zt(), t = ot({
|
|
2405
|
-
key: "beatui-appearance-preference",
|
|
2406
|
-
defaultValue: "system"
|
|
2407
|
-
}), r = () => {
|
|
2408
|
-
n.dispose(), t.dispose();
|
|
2409
|
-
};
|
|
2410
|
-
return {
|
|
2411
|
-
value: {
|
|
2412
|
-
appearance: y(
|
|
2413
|
-
n,
|
|
2414
|
-
t
|
|
2415
|
-
)((a, u) => u === "system" ? a : u),
|
|
2416
|
-
appearancePreference: t,
|
|
2417
|
-
setAppearancePreference: (a) => {
|
|
2418
|
-
t.set(a);
|
|
2419
|
-
}
|
|
2420
|
-
},
|
|
2421
|
-
dispose: r
|
|
2422
|
-
};
|
|
2423
|
-
}
|
|
2424
|
-
}, Bo = () => xe(
|
|
2425
|
-
_t,
|
|
2426
|
-
({ appearance: e }) => Wt("body", s.class(e.map((n) => `b-${n}`)))
|
|
2427
|
-
);
|
|
2428
|
-
function ir({
|
|
2496
|
+
function hr({
|
|
2429
2497
|
value: e,
|
|
2430
2498
|
onChange: n
|
|
2431
2499
|
}) {
|
|
2432
|
-
return
|
|
2500
|
+
return lr({
|
|
2433
2501
|
size: "sm",
|
|
2434
2502
|
value: e,
|
|
2435
2503
|
options: {
|
|
@@ -2452,16 +2520,16 @@ function ir({
|
|
|
2452
2520
|
onChange: n
|
|
2453
2521
|
});
|
|
2454
2522
|
}
|
|
2455
|
-
function
|
|
2523
|
+
function Vo() {
|
|
2456
2524
|
return xe(
|
|
2457
|
-
|
|
2458
|
-
({ appearancePreference: e, setAppearancePreference: n }) =>
|
|
2525
|
+
Pe,
|
|
2526
|
+
({ appearancePreference: e, setAppearancePreference: n }) => hr({
|
|
2459
2527
|
value: e,
|
|
2460
2528
|
onChange: n
|
|
2461
2529
|
})
|
|
2462
2530
|
);
|
|
2463
2531
|
}
|
|
2464
|
-
const
|
|
2532
|
+
const jo = (e) => {
|
|
2465
2533
|
const { value: n, onBlur: t, onChange: r, placeholder: o, id: l } = e, a = l ?? ae("checkbox"), u = `${a}-label`;
|
|
2466
2534
|
return X({
|
|
2467
2535
|
growInput: !1,
|
|
@@ -2482,38 +2550,38 @@ const Lo = (e) => {
|
|
|
2482
2550
|
d && c.setAttribute("aria-describedby", d), h === "true" && c.setAttribute("aria-required", "true"), f === "true" && c.setAttribute("aria-invalid", "true");
|
|
2483
2551
|
}
|
|
2484
2552
|
}),
|
|
2485
|
-
t != null ? m.blur(
|
|
2486
|
-
r != null ? m.change(
|
|
2553
|
+
t != null ? m.blur(L(t)) : $,
|
|
2554
|
+
r != null ? m.change(Nt(r)) : $
|
|
2487
2555
|
),
|
|
2488
2556
|
o != null ? p.label(
|
|
2489
2557
|
s.class("bc-checkbox-input__label"),
|
|
2490
2558
|
s.id(u),
|
|
2491
2559
|
s.for(a),
|
|
2492
|
-
|
|
2560
|
+
Hn(o)
|
|
2493
2561
|
) : $
|
|
2494
2562
|
)
|
|
2495
2563
|
});
|
|
2496
|
-
},
|
|
2564
|
+
}, Fo = ({
|
|
2497
2565
|
startEditing: e,
|
|
2498
2566
|
value: n,
|
|
2499
2567
|
onChange: t,
|
|
2500
2568
|
placeholder: r
|
|
2501
2569
|
}) => {
|
|
2502
|
-
const o = w.deriveProp(e ?? !1), l =
|
|
2570
|
+
const o = w.deriveProp(e ?? !1), l = N(!1);
|
|
2503
2571
|
return p.div(
|
|
2504
2572
|
s.class("bc-editable-text"),
|
|
2505
|
-
|
|
2573
|
+
R(
|
|
2506
2574
|
o,
|
|
2507
2575
|
() => p.input(
|
|
2508
2576
|
s.placeholder(r),
|
|
2509
2577
|
s.value(n),
|
|
2510
2578
|
s.class("bc-editable-text__input"),
|
|
2511
|
-
|
|
2579
|
+
Xt(),
|
|
2512
2580
|
m.keydown((a) => {
|
|
2513
2581
|
a.key === "Enter" ? o.set(!1) : a.key === "Escape" && (l.set(!0), o.set(!1));
|
|
2514
2582
|
}),
|
|
2515
2583
|
m.blur(
|
|
2516
|
-
|
|
2584
|
+
L((a) => {
|
|
2517
2585
|
if (o.set(!1), l.value) {
|
|
2518
2586
|
l.set(!1);
|
|
2519
2587
|
return;
|
|
@@ -2525,7 +2593,7 @@ const Lo = (e) => {
|
|
|
2525
2593
|
() => p.span(
|
|
2526
2594
|
m.click(() => o.set(!0)),
|
|
2527
2595
|
s.class("bc-editable-text__display"),
|
|
2528
|
-
|
|
2596
|
+
R(
|
|
2529
2597
|
w.map(n, (a) => a != null && a.trim() !== ""),
|
|
2530
2598
|
() => p.span(s.class("bc-editable-text__text"), n),
|
|
2531
2599
|
() => p.span(
|
|
@@ -2543,7 +2611,7 @@ const Lo = (e) => {
|
|
|
2543
2611
|
)
|
|
2544
2612
|
)
|
|
2545
2613
|
);
|
|
2546
|
-
},
|
|
2614
|
+
}, Ho = ({
|
|
2547
2615
|
value: e,
|
|
2548
2616
|
onChange: n,
|
|
2549
2617
|
offLabel: t,
|
|
@@ -2582,7 +2650,7 @@ const Lo = (e) => {
|
|
|
2582
2650
|
A.labelledby(o != null ? i : void 0),
|
|
2583
2651
|
m.click(h),
|
|
2584
2652
|
m.keydown(f),
|
|
2585
|
-
o != null ?
|
|
2653
|
+
o != null ? yt(s.id(i), s.class(`bu-text-${a} bu-nowrap`), o) : null,
|
|
2586
2654
|
p.div(
|
|
2587
2655
|
s.class("bc-switch__track"),
|
|
2588
2656
|
s.class(
|
|
@@ -2649,7 +2717,7 @@ const Lo = (e) => {
|
|
|
2649
2717
|
)
|
|
2650
2718
|
);
|
|
2651
2719
|
};
|
|
2652
|
-
function
|
|
2720
|
+
function pr(e) {
|
|
2653
2721
|
function n(t) {
|
|
2654
2722
|
return typeof t == "number" ? t : t.toString();
|
|
2655
2723
|
}
|
|
@@ -2657,9 +2725,9 @@ function ur(e) {
|
|
|
2657
2725
|
(t) => typeof t == "object" && t.key != null ? n(t.key) : n(t)
|
|
2658
2726
|
);
|
|
2659
2727
|
}
|
|
2660
|
-
function
|
|
2728
|
+
function br(e) {
|
|
2661
2729
|
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 a =
|
|
2730
|
+
const a = pr(l.path), u = a.pop();
|
|
2663
2731
|
let c = o;
|
|
2664
2732
|
for (const i of a)
|
|
2665
2733
|
c.dependencies == null && (c.dependencies = {}), c.dependencies[i] == null && (c.dependencies[i] = {}), c = c.dependencies[i];
|
|
@@ -2671,12 +2739,12 @@ function dr(e) {
|
|
|
2671
2739
|
error: r != "" ? r : void 0
|
|
2672
2740
|
};
|
|
2673
2741
|
}
|
|
2674
|
-
function
|
|
2742
|
+
function fr({
|
|
2675
2743
|
defaultValue: e,
|
|
2676
2744
|
onChange: n,
|
|
2677
2745
|
validate: t
|
|
2678
2746
|
}) {
|
|
2679
|
-
const r =
|
|
2747
|
+
const r = N(e), o = N({ type: "Valid" }), l = N(!1), a = async (c) => {
|
|
2680
2748
|
if (r.set(c), n == null || n(c), t != null) {
|
|
2681
2749
|
const i = await t(c);
|
|
2682
2750
|
o.set(i);
|
|
@@ -2689,54 +2757,54 @@ function hr({
|
|
|
2689
2757
|
}), u;
|
|
2690
2758
|
}
|
|
2691
2759
|
function At(e) {
|
|
2692
|
-
return
|
|
2760
|
+
return I(s.disabled(e.disabled), s.name(e.name));
|
|
2693
2761
|
}
|
|
2694
|
-
function
|
|
2762
|
+
function Po(e, {
|
|
2695
2763
|
triggerOn: n = "change"
|
|
2696
2764
|
} = {}) {
|
|
2697
|
-
return
|
|
2765
|
+
return I(
|
|
2698
2766
|
At(e),
|
|
2699
2767
|
s.value(e.value),
|
|
2700
|
-
(n === "input" ? m.input : m.change)(
|
|
2768
|
+
(n === "input" ? m.input : m.change)(L(e.change))
|
|
2701
2769
|
);
|
|
2702
2770
|
}
|
|
2703
|
-
function
|
|
2771
|
+
function Mo(e, {
|
|
2704
2772
|
triggerOn: n = "change"
|
|
2705
2773
|
} = {}) {
|
|
2706
|
-
return
|
|
2774
|
+
return I(
|
|
2707
2775
|
At(e),
|
|
2708
2776
|
s.valueAsNumber(e.value),
|
|
2709
2777
|
(n === "input" ? m.input : m.change)(
|
|
2710
|
-
|
|
2778
|
+
Ie(e.change)
|
|
2711
2779
|
)
|
|
2712
2780
|
);
|
|
2713
2781
|
}
|
|
2714
|
-
function
|
|
2782
|
+
function gr(e) {
|
|
2715
2783
|
return e.issues != null ? {
|
|
2716
2784
|
type: "Invalid",
|
|
2717
|
-
...
|
|
2785
|
+
...br(e.issues)
|
|
2718
2786
|
} : { type: "Valid" };
|
|
2719
2787
|
}
|
|
2720
|
-
function
|
|
2788
|
+
function Wo({
|
|
2721
2789
|
defaultValue: e = {},
|
|
2722
2790
|
schema: n
|
|
2723
2791
|
}) {
|
|
2724
|
-
return
|
|
2792
|
+
return fr({
|
|
2725
2793
|
defaultValue: e,
|
|
2726
|
-
validate: async (t) =>
|
|
2794
|
+
validate: async (t) => gr(
|
|
2727
2795
|
await n["~standard"].validate(t)
|
|
2728
2796
|
)
|
|
2729
2797
|
}).object();
|
|
2730
2798
|
}
|
|
2731
|
-
const
|
|
2732
|
-
function
|
|
2733
|
-
for (const n of
|
|
2799
|
+
const mr = ["!=", "<=", ">=", "<", ">", "="];
|
|
2800
|
+
function kr(e) {
|
|
2801
|
+
for (const n of mr)
|
|
2734
2802
|
if (typeof e == "string" && e.startsWith(n))
|
|
2735
2803
|
return [n, e.slice(n.length)];
|
|
2736
2804
|
return ["=", e];
|
|
2737
2805
|
}
|
|
2738
|
-
function
|
|
2739
|
-
const [r, o] =
|
|
2806
|
+
function xr(e, n, t) {
|
|
2807
|
+
const [r, o] = kr(n), l = e.findIndex((c) => c[1] === o);
|
|
2740
2808
|
if (l === -1)
|
|
2741
2809
|
throw new Error(`Breakpoint ${String(o)} not found`);
|
|
2742
2810
|
const a = e[l][0], u = l < e.length - 1 ? e[l + 1][0] : 1 / 0;
|
|
@@ -2757,7 +2825,7 @@ function gr(e, n, t) {
|
|
|
2757
2825
|
return !1;
|
|
2758
2826
|
}
|
|
2759
2827
|
}
|
|
2760
|
-
function
|
|
2828
|
+
function qo(e, n) {
|
|
2761
2829
|
const t = e.findIndex((r) => r[0] > n) - 1;
|
|
2762
2830
|
return t >= 0 ? e[t][1] : (e.length > 0 && n >= e[0][0], e[0][1]);
|
|
2763
2831
|
}
|
|
@@ -2773,19 +2841,19 @@ function Tt(e, { breakpoints: n, mode: t = "viewport" }) {
|
|
|
2773
2841
|
value: u,
|
|
2774
2842
|
breakpoints: n,
|
|
2775
2843
|
asList: o,
|
|
2776
|
-
is: (i, d) =>
|
|
2844
|
+
is: (i, d) => xr(o, i, d)
|
|
2777
2845
|
});
|
|
2778
2846
|
};
|
|
2779
|
-
return t === "element" ? ve(l) :
|
|
2847
|
+
return t === "element" ? ve(l) : Yt(l);
|
|
2780
2848
|
}
|
|
2781
|
-
let
|
|
2782
|
-
function
|
|
2783
|
-
return e ? (isNaN(
|
|
2849
|
+
let Te = NaN;
|
|
2850
|
+
function vr(e, n) {
|
|
2851
|
+
return e ? (isNaN(Te) && (Te = parseFloat(getComputedStyle(document.documentElement).fontSize)), parseFloat(e) * Te) : n;
|
|
2784
2852
|
}
|
|
2785
2853
|
function q(e, n, t) {
|
|
2786
|
-
return
|
|
2854
|
+
return vr(e.getPropertyValue(n), t);
|
|
2787
2855
|
}
|
|
2788
|
-
function
|
|
2856
|
+
function yr(e) {
|
|
2789
2857
|
return F((n) => {
|
|
2790
2858
|
const t = getComputedStyle(n), r = {
|
|
2791
2859
|
zero: 0,
|
|
@@ -2798,7 +2866,7 @@ function kr(e) {
|
|
|
2798
2866
|
return Tt(e, { breakpoints: r });
|
|
2799
2867
|
});
|
|
2800
2868
|
}
|
|
2801
|
-
function
|
|
2869
|
+
function No(e) {
|
|
2802
2870
|
return F((n) => {
|
|
2803
2871
|
const t = getComputedStyle(n), r = {
|
|
2804
2872
|
zero: 0,
|
|
@@ -2826,7 +2894,7 @@ function Bt({
|
|
|
2826
2894
|
openedAfter: n,
|
|
2827
2895
|
closedAfter: t
|
|
2828
2896
|
}) {
|
|
2829
|
-
const r =
|
|
2897
|
+
const r = N(e), o = () => {
|
|
2830
2898
|
r.set("start-opening");
|
|
2831
2899
|
}, l = () => {
|
|
2832
2900
|
r.set("start-closing");
|
|
@@ -2875,7 +2943,7 @@ function Bt({
|
|
|
2875
2943
|
onClosed: i
|
|
2876
2944
|
};
|
|
2877
2945
|
}
|
|
2878
|
-
function
|
|
2946
|
+
function Ro({
|
|
2879
2947
|
initialStatus: e = "closed",
|
|
2880
2948
|
duration: n,
|
|
2881
2949
|
openDuration: t = n ?? 500,
|
|
@@ -2883,11 +2951,11 @@ function Mo({
|
|
|
2883
2951
|
} = {}) {
|
|
2884
2952
|
return Bt({
|
|
2885
2953
|
initialStatus: e,
|
|
2886
|
-
openedAfter: (o) =>
|
|
2887
|
-
closedAfter: (o) =>
|
|
2954
|
+
openedAfter: (o) => Xe(o, t),
|
|
2955
|
+
closedAfter: (o) => Xe(o, r)
|
|
2888
2956
|
});
|
|
2889
2957
|
}
|
|
2890
|
-
function
|
|
2958
|
+
function Qe(e, n) {
|
|
2891
2959
|
let t = !1, r = null;
|
|
2892
2960
|
function o() {
|
|
2893
2961
|
t || (t = !0, r && (clearTimeout(r), r = null), n());
|
|
@@ -2922,13 +2990,13 @@ function fe({
|
|
|
2922
2990
|
...Bt({
|
|
2923
2991
|
initialStatus: e,
|
|
2924
2992
|
openedAfter: (r) => t == null ? (r(), () => {
|
|
2925
|
-
}) :
|
|
2993
|
+
}) : Qe(t, r),
|
|
2926
2994
|
closedAfter: (r) => t == null ? (r(), () => {
|
|
2927
|
-
}) :
|
|
2995
|
+
}) : Qe(t, r)
|
|
2928
2996
|
})
|
|
2929
2997
|
};
|
|
2930
2998
|
}
|
|
2931
|
-
function
|
|
2999
|
+
function Ve(e, n) {
|
|
2932
3000
|
return s.class(
|
|
2933
3001
|
y(
|
|
2934
3002
|
e,
|
|
@@ -2997,7 +3065,7 @@ const ne = {
|
|
|
2997
3065
|
xl: 280
|
|
2998
3066
|
}
|
|
2999
3067
|
};
|
|
3000
|
-
function
|
|
3068
|
+
function Je(e, n) {
|
|
3001
3069
|
if (typeof e == "number")
|
|
3002
3070
|
return {
|
|
3003
3071
|
zero: e,
|
|
@@ -3017,13 +3085,13 @@ function Qe(e, n) {
|
|
|
3017
3085
|
};
|
|
3018
3086
|
return t.xs < t.zero && (t.xs = t.zero), t.sm < t.xs && (t.sm = t.xs), t.md < t.sm && (t.md = t.sm), t.lg < t.md && (t.lg = t.md), t.xl < t.lg && (t.xl = t.lg), t;
|
|
3019
3087
|
}
|
|
3020
|
-
function
|
|
3088
|
+
function Be(e) {
|
|
3021
3089
|
e = e.filter((n) => n.some((t) => t != null && !t.startsWith("?")));
|
|
3022
3090
|
for (let n = 0; n < e[0].length; n++)
|
|
3023
3091
|
e.every((t) => t[n] == null || t[n].startsWith("?")) && (e = e.map((t) => t.filter((r, o) => o !== n)), n--);
|
|
3024
3092
|
return e = e.map((n) => n.map((t) => t != null && t.startsWith("?") ? t.slice(1) : t)), e;
|
|
3025
3093
|
}
|
|
3026
|
-
function
|
|
3094
|
+
function wr({
|
|
3027
3095
|
smallBreakpoint: e,
|
|
3028
3096
|
mediumBreakpoint: n,
|
|
3029
3097
|
vertical: t,
|
|
@@ -3045,7 +3113,7 @@ function xr({
|
|
|
3045
3113
|
const h = [];
|
|
3046
3114
|
return r.banner && (h.push(r.banner[c] + "px"), i[0][1] = "banner"), (r.header || t.menu || t.aside) && (h.push(
|
|
3047
3115
|
(((b = r.header) == null ? void 0 : b[c]) ?? ne.header[c]) + "px"
|
|
3048
|
-
), i[1][1] = "header"), r.mainHeader && (h.push(r.mainHeader[c] + "px"), i[2][1] = "mainHeader"), h.push("1fr"), i[3][1] = "main", r.mainFooter && (h.push(r.mainFooter[c] + "px"), i[4][1] = "mainFooter"), r.footer && (h.push(r.footer[c] + "px"), i[5][1] = "footer"), i =
|
|
3116
|
+
), 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 = Be(i), {
|
|
3049
3117
|
columns: d.join(" "),
|
|
3050
3118
|
rows: h.join(" "),
|
|
3051
3119
|
areas: i.map((k) => `"${k.join(" ")}"`).join(`
|
|
@@ -3071,7 +3139,7 @@ function xr({
|
|
|
3071
3139
|
const h = [];
|
|
3072
3140
|
return r.banner && (h.push(r.banner[c] + "px"), i[0][0] = "?banner", i[0][1] = "banner"), (r.header || t.aside) && (h.push(
|
|
3073
3141
|
(((b = r.header) == null ? void 0 : b[c]) ?? ne.header[c]) + "px"
|
|
3074
|
-
), i[1][0] = "?header", i[1][1] = "header"), r.mainHeader && (h.push(r.mainHeader[c] + "px"), i[2][1] = "mainHeader"), h.push("1fr"), i[3][1] = "main", r.mainFooter && (h.push(r.mainFooter[c] + "px"), i[4][1] = "mainFooter"), r.footer && (h.push(r.footer[c] + "px"), i[5][0] = "?footer", i[5][1] = "footer"), i =
|
|
3142
|
+
), 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 = Be(i), {
|
|
3075
3143
|
columns: d.join(" "),
|
|
3076
3144
|
rows: h.join(" "),
|
|
3077
3145
|
areas: i.map((k) => `"${k.join(" ")}"`).join(`
|
|
@@ -3094,7 +3162,7 @@ function xr({
|
|
|
3094
3162
|
const d = [];
|
|
3095
3163
|
t.menu && (d.push(t.menu[c] + "px"), i[2][0] = "?menu", i[3][0] = "menu", i[4][0] = "?menu"), d.push("1fr"), t.aside && (d.push(t.aside[c] + "px"), i[2][2] = "?aside", i[3][2] = "aside", i[4][2] = "?aside");
|
|
3096
3164
|
const h = [];
|
|
3097
|
-
return r.banner && (h.push(r.banner[c] + "px"), i[0][0] = "?banner", i[0][1] = "banner", i[0][2] = "?banner"), r.header && (h.push(r.header[c] + "px"), i[1][0] = "?header", i[1][1] = "header", i[1][2] = "?header"), r.mainHeader && (h.push(r.mainHeader[c] + "px"), i[2][1] = "mainHeader"), h.push("1fr"), i[3][1] = "main", r.mainFooter && (h.push(r.mainFooter[c] + "px"), i[4][1] = "mainFooter"), r.footer && (h.push(r.footer[c] + "px"), i[5][0] = "?footer", i[5][1] = "footer", i[5][2] = "?footer"), i =
|
|
3165
|
+
return r.banner && (h.push(r.banner[c] + "px"), i[0][0] = "?banner", i[0][1] = "banner", i[0][2] = "?banner"), r.header && (h.push(r.header[c] + "px"), i[1][0] = "?header", i[1][1] = "header", i[1][2] = "?header"), r.mainHeader && (h.push(r.mainHeader[c] + "px"), i[2][1] = "mainHeader"), h.push("1fr"), i[3][1] = "main", r.mainFooter && (h.push(r.mainFooter[c] + "px"), i[4][1] = "mainFooter"), r.footer && (h.push(r.footer[c] + "px"), i[5][0] = "?footer", i[5][1] = "footer", i[5][2] = "?footer"), i = Be(i), {
|
|
3098
3166
|
columns: d.join(" "),
|
|
3099
3167
|
rows: h.join(" "),
|
|
3100
3168
|
areas: i.map((b) => `"${b.join(" ")}"`).join(`
|
|
@@ -3110,42 +3178,42 @@ function xr({
|
|
|
3110
3178
|
breakpoint: i
|
|
3111
3179
|
}) => o(`<=${e}`, c) ? l(i) : o(`<=${n}`, c) ? a(i) : u(i);
|
|
3112
3180
|
}
|
|
3113
|
-
const
|
|
3181
|
+
const $r = ["menu", "aside"], Cr = [
|
|
3114
3182
|
"banner",
|
|
3115
3183
|
"header",
|
|
3116
3184
|
"mainHeader",
|
|
3117
3185
|
"mainFooter",
|
|
3118
3186
|
"footer"
|
|
3119
3187
|
];
|
|
3120
|
-
function
|
|
3188
|
+
function Sr(e, { displayMenu: n }, t) {
|
|
3121
3189
|
return e ? n ? "block" : t ? "float" : "none" : "none";
|
|
3122
3190
|
}
|
|
3123
|
-
function
|
|
3191
|
+
function Er(e, { displayAside: n }, t) {
|
|
3124
3192
|
return e ? n ? "block" : t ? "float" : "none" : "none";
|
|
3125
3193
|
}
|
|
3126
|
-
function
|
|
3194
|
+
function Uo({
|
|
3127
3195
|
smallBreakpoint: e = "sm",
|
|
3128
3196
|
mediumBreakpoint: n = "md",
|
|
3129
3197
|
...t
|
|
3130
3198
|
}) {
|
|
3131
3199
|
const r = Object.fromEntries(
|
|
3132
|
-
|
|
3200
|
+
$r.filter((l) => t[l]).map(
|
|
3133
3201
|
(l) => [
|
|
3134
3202
|
l,
|
|
3135
|
-
|
|
3203
|
+
Je(t[l].width ?? {}, ne[l])
|
|
3136
3204
|
]
|
|
3137
3205
|
)
|
|
3138
3206
|
), o = Object.fromEntries(
|
|
3139
|
-
|
|
3207
|
+
Cr.filter((l) => t[l]).map(
|
|
3140
3208
|
(l) => [
|
|
3141
3209
|
l,
|
|
3142
|
-
|
|
3210
|
+
Je(t[l].height ?? {}, ne[l])
|
|
3143
3211
|
]
|
|
3144
3212
|
)
|
|
3145
3213
|
);
|
|
3146
|
-
return
|
|
3214
|
+
return yr(({ value: l, is: a }) => {
|
|
3147
3215
|
var g, O, M, H, E, V, T, J, P, ee;
|
|
3148
|
-
const u =
|
|
3216
|
+
const u = wr({
|
|
3149
3217
|
smallBreakpoint: e,
|
|
3150
3218
|
mediumBreakpoint: n,
|
|
3151
3219
|
vertical: r,
|
|
@@ -3157,15 +3225,15 @@ function Wo({
|
|
|
3157
3225
|
)((x, { displayAside: _ }) => x && !_), h = y(
|
|
3158
3226
|
r.menu != null,
|
|
3159
3227
|
c
|
|
3160
|
-
)((x, { displayMenu: _ }) => x && !_), f = fe(), b = fe(), k =
|
|
3228
|
+
)((x, { displayMenu: _ }) => x && !_), f = fe(), b = fe(), k = N(0), C = y(
|
|
3161
3229
|
r.menu != null,
|
|
3162
3230
|
c,
|
|
3163
3231
|
f.display
|
|
3164
|
-
)(
|
|
3232
|
+
)(Sr), S = y(
|
|
3165
3233
|
r.aside != null,
|
|
3166
3234
|
c,
|
|
3167
3235
|
b.display
|
|
3168
|
-
)(
|
|
3236
|
+
)(Er);
|
|
3169
3237
|
return p.div(
|
|
3170
3238
|
U(() => {
|
|
3171
3239
|
k.dispose(), f.dispose(), b.dispose();
|
|
@@ -3300,7 +3368,7 @@ function Wo({
|
|
|
3300
3368
|
)((x, _) => x === "float" || x === "none" && _ !== "closed" ? "fixed" : "initial")
|
|
3301
3369
|
),
|
|
3302
3370
|
v.top(k.map((x) => `${x}px`)),
|
|
3303
|
-
|
|
3371
|
+
Ve(
|
|
3304
3372
|
"slide-right",
|
|
3305
3373
|
y(
|
|
3306
3374
|
C,
|
|
@@ -3377,7 +3445,7 @@ function Wo({
|
|
|
3377
3445
|
)((x, _) => x === "float" || x === "none" && _ !== "closed" ? "fixed" : "initial")
|
|
3378
3446
|
),
|
|
3379
3447
|
v.top(k.map((x) => `${x}px`)),
|
|
3380
|
-
|
|
3448
|
+
Ve(
|
|
3381
3449
|
"slide-left",
|
|
3382
3450
|
y(
|
|
3383
3451
|
S,
|
|
@@ -3397,11 +3465,11 @@ function Wo({
|
|
|
3397
3465
|
);
|
|
3398
3466
|
});
|
|
3399
3467
|
}
|
|
3400
|
-
function
|
|
3468
|
+
function _r(e, n, t) {
|
|
3401
3469
|
const r = ["bc-card"];
|
|
3402
3470
|
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
3471
|
}
|
|
3404
|
-
function
|
|
3472
|
+
function zo({ variant: e = "default", size: n = "md", roundedness: t = "lg" } = {}, ...r) {
|
|
3405
3473
|
return p.div(
|
|
3406
3474
|
s.class(
|
|
3407
3475
|
y(
|
|
@@ -3409,7 +3477,7 @@ function qo({ variant: e = "default", size: n = "md", roundedness: t = "lg" } =
|
|
|
3409
3477
|
n,
|
|
3410
3478
|
t
|
|
3411
3479
|
)(
|
|
3412
|
-
(o, l, a) =>
|
|
3480
|
+
(o, l, a) => _r(
|
|
3413
3481
|
o ?? "default",
|
|
3414
3482
|
l ?? "md",
|
|
3415
3483
|
a ?? "lg"
|
|
@@ -3419,25 +3487,25 @@ function qo({ variant: e = "default", size: n = "md", roundedness: t = "lg" } =
|
|
|
3419
3487
|
...r
|
|
3420
3488
|
);
|
|
3421
3489
|
}
|
|
3422
|
-
function
|
|
3490
|
+
function Go(...e) {
|
|
3423
3491
|
return p.div(
|
|
3424
3492
|
s.class("bc-center-h"),
|
|
3425
3493
|
p.div(s.class("bc-center__content"), ...e)
|
|
3426
3494
|
);
|
|
3427
3495
|
}
|
|
3428
|
-
function
|
|
3496
|
+
function Ar(e) {
|
|
3429
3497
|
const n = ["bc-center"];
|
|
3430
3498
|
return e !== "lg" && n.push(`bc-center--gap-${e}`), n.join(" ");
|
|
3431
3499
|
}
|
|
3432
|
-
function
|
|
3500
|
+
function Zo({ gap: e = "lg" } = {}, ...n) {
|
|
3433
3501
|
return p.div(
|
|
3434
|
-
s.class(y(e)((t) =>
|
|
3502
|
+
s.class(y(e)((t) => Ar(t ?? "lg"))),
|
|
3435
3503
|
...n
|
|
3436
3504
|
);
|
|
3437
3505
|
}
|
|
3438
|
-
function
|
|
3506
|
+
function Ko(e, n = 0, t = () => !0) {
|
|
3439
3507
|
let r = null, o;
|
|
3440
|
-
const l =
|
|
3508
|
+
const l = N(e.value);
|
|
3441
3509
|
return e.on((a) => {
|
|
3442
3510
|
o = a, t(a) ? r == null && (r = setTimeout(() => {
|
|
3443
3511
|
r = null, l.set(o);
|
|
@@ -3446,7 +3514,7 @@ function Uo(e, n = 0, t = () => !0) {
|
|
|
3446
3514
|
r != null && clearTimeout(r);
|
|
3447
3515
|
}), l;
|
|
3448
3516
|
}
|
|
3449
|
-
const
|
|
3517
|
+
const Tr = [
|
|
3450
3518
|
"a[href]",
|
|
3451
3519
|
"button:not([disabled])",
|
|
3452
3520
|
"input:not([disabled])",
|
|
@@ -3459,8 +3527,8 @@ const Er = [
|
|
|
3459
3527
|
"details > summary:first-of-type",
|
|
3460
3528
|
"details[open]"
|
|
3461
3529
|
].join(", ");
|
|
3462
|
-
function
|
|
3463
|
-
return Array.from(e.querySelectorAll(
|
|
3530
|
+
function Br(e) {
|
|
3531
|
+
return Array.from(e.querySelectorAll(Tr)).filter(
|
|
3464
3532
|
(n) => {
|
|
3465
3533
|
const t = n;
|
|
3466
3534
|
return t.offsetWidth > 0 && t.offsetHeight > 0 && !t.hasAttribute("inert") && window.getComputedStyle(t).visibility !== "hidden";
|
|
@@ -3481,7 +3549,7 @@ function Ce(e = {}) {
|
|
|
3481
3549
|
let i = n, d = null, h = [];
|
|
3482
3550
|
typeof document < "u" && (d = document.activeElement);
|
|
3483
3551
|
const f = () => {
|
|
3484
|
-
h =
|
|
3552
|
+
h = Br(c);
|
|
3485
3553
|
}, b = (g) => {
|
|
3486
3554
|
var O, M;
|
|
3487
3555
|
if (i) {
|
|
@@ -3523,20 +3591,20 @@ function Ce(e = {}) {
|
|
|
3523
3591
|
});
|
|
3524
3592
|
});
|
|
3525
3593
|
}
|
|
3526
|
-
function
|
|
3594
|
+
function Xo(e = {}) {
|
|
3527
3595
|
return {
|
|
3528
3596
|
activate: () => Ce({ ...e, active: !0 }),
|
|
3529
3597
|
deactivate: () => Ce({ ...e, active: !1 })
|
|
3530
3598
|
};
|
|
3531
3599
|
}
|
|
3532
|
-
function
|
|
3600
|
+
function Ir({ open: e }, ...n) {
|
|
3533
3601
|
return F((t) => {
|
|
3534
3602
|
const { status: r, setOpen: o, dispose: l } = fe({
|
|
3535
3603
|
initialStatus: w.get(e) ? "opened" : "closed",
|
|
3536
3604
|
element: t
|
|
3537
3605
|
});
|
|
3538
3606
|
return w.on(e, o), ve((a) => {
|
|
3539
|
-
const u =
|
|
3607
|
+
const u = N(null);
|
|
3540
3608
|
return y(
|
|
3541
3609
|
r,
|
|
3542
3610
|
a.$.height
|
|
@@ -3549,7 +3617,7 @@ function Ar({ open: e }, ...n) {
|
|
|
3549
3617
|
const f = t.scrollHeight;
|
|
3550
3618
|
f > 0 && u.set(f), t.style.height = d, t.style.transition = h, t.offsetHeight;
|
|
3551
3619
|
}
|
|
3552
|
-
}),
|
|
3620
|
+
}), I(
|
|
3553
3621
|
U(l),
|
|
3554
3622
|
U(u.dispose),
|
|
3555
3623
|
s.style(
|
|
@@ -3561,16 +3629,16 @@ function Ar({ open: e }, ...n) {
|
|
|
3561
3629
|
});
|
|
3562
3630
|
});
|
|
3563
3631
|
}
|
|
3564
|
-
function
|
|
3632
|
+
function Yo(...e) {
|
|
3565
3633
|
return p.div(s.class("bc-group"), ...e);
|
|
3566
3634
|
}
|
|
3567
|
-
function
|
|
3635
|
+
function et({
|
|
3568
3636
|
header: e,
|
|
3569
3637
|
footer: n,
|
|
3570
3638
|
body: t,
|
|
3571
3639
|
shadowOnScroll: r = !0
|
|
3572
3640
|
}) {
|
|
3573
|
-
const o =
|
|
3641
|
+
const o = N("none");
|
|
3574
3642
|
function l(u) {
|
|
3575
3643
|
const c = u.scrollTop === 0, i = u.scrollTop + u.clientHeight >= u.scrollHeight - 1;
|
|
3576
3644
|
c && i ? o.set("none") : c ? o.set("bottom") : i ? o.set("top") : o.set("both");
|
|
@@ -3612,11 +3680,11 @@ function Je({
|
|
|
3612
3680
|
n && p.div(s.class("bc-scrollable-panel__footer"), n)
|
|
3613
3681
|
);
|
|
3614
3682
|
}
|
|
3615
|
-
function
|
|
3683
|
+
function Lr(e, n, t) {
|
|
3616
3684
|
const r = ["bc-sink"];
|
|
3617
3685
|
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
3686
|
}
|
|
3619
|
-
function
|
|
3687
|
+
function Qo({ variant: e = "default", size: n = "md", roundedness: t = "lg" } = {}, ...r) {
|
|
3620
3688
|
return p.div(
|
|
3621
3689
|
s.class(
|
|
3622
3690
|
y(
|
|
@@ -3624,7 +3692,7 @@ function Zo({ variant: e = "default", size: n = "md", roundedness: t = "lg" } =
|
|
|
3624
3692
|
n,
|
|
3625
3693
|
t
|
|
3626
3694
|
)(
|
|
3627
|
-
(o, l, a) =>
|
|
3695
|
+
(o, l, a) => Lr(
|
|
3628
3696
|
o ?? "default",
|
|
3629
3697
|
l ?? "md",
|
|
3630
3698
|
a ?? "lg"
|
|
@@ -3634,13 +3702,13 @@ function Zo({ variant: e = "default", size: n = "md", roundedness: t = "lg" } =
|
|
|
3634
3702
|
...r
|
|
3635
3703
|
);
|
|
3636
3704
|
}
|
|
3637
|
-
function
|
|
3705
|
+
function Jo(...e) {
|
|
3638
3706
|
return p.div(s.class("bc-stack"), ...e);
|
|
3639
3707
|
}
|
|
3640
|
-
function
|
|
3708
|
+
function Dr(e) {
|
|
3641
3709
|
return e.startsWith("top") ? "flyout-top" : e.startsWith("bottom") ? "flyout-bottom" : e.startsWith("left") ? "flyout-left" : e.startsWith("right") ? "flyout-right" : "scale-fade";
|
|
3642
3710
|
}
|
|
3643
|
-
function
|
|
3711
|
+
function Or(e) {
|
|
3644
3712
|
const {
|
|
3645
3713
|
content: n,
|
|
3646
3714
|
placement: t = "top",
|
|
@@ -3653,7 +3721,7 @@ function Ir(e) {
|
|
|
3653
3721
|
arrow: i,
|
|
3654
3722
|
role: d
|
|
3655
3723
|
} = e;
|
|
3656
|
-
return
|
|
3724
|
+
return Qt((h, f) => {
|
|
3657
3725
|
const b = fe({
|
|
3658
3726
|
initialStatus: "closed"
|
|
3659
3727
|
}), k = ae("flyout");
|
|
@@ -3682,7 +3750,7 @@ function Ir(e) {
|
|
|
3682
3750
|
_ && _.setAttribute("aria-expanded", "false");
|
|
3683
3751
|
}
|
|
3684
3752
|
};
|
|
3685
|
-
return document.addEventListener("keydown", ee, !0),
|
|
3753
|
+
return document.addEventListener("keydown", ee, !0), I(
|
|
3686
3754
|
U(() => {
|
|
3687
3755
|
M(), document.removeEventListener("keydown", ee, !0);
|
|
3688
3756
|
}),
|
|
@@ -3690,8 +3758,8 @@ function Ir(e) {
|
|
|
3690
3758
|
s.id(k),
|
|
3691
3759
|
s.tabindex(-1),
|
|
3692
3760
|
// Make focusable for screen readers
|
|
3693
|
-
|
|
3694
|
-
w.map(t,
|
|
3761
|
+
Ve(
|
|
3762
|
+
w.map(t, Dr),
|
|
3695
3763
|
b.status
|
|
3696
3764
|
),
|
|
3697
3765
|
d ? s.role(d) : s.role("dialog"),
|
|
@@ -3740,22 +3808,22 @@ function Ir(e) {
|
|
|
3740
3808
|
if (typeof u == "function")
|
|
3741
3809
|
return u(x, _);
|
|
3742
3810
|
const he = u;
|
|
3743
|
-
return
|
|
3811
|
+
return I(
|
|
3744
3812
|
U(() => {
|
|
3745
3813
|
b.dispose();
|
|
3746
3814
|
}),
|
|
3747
|
-
|
|
3748
|
-
"hover-focus": () =>
|
|
3815
|
+
Rt(he, {
|
|
3816
|
+
"hover-focus": () => I(
|
|
3749
3817
|
m.mouseenter(() => x()),
|
|
3750
3818
|
m.mouseleave(() => _()),
|
|
3751
3819
|
m.focus(() => x()),
|
|
3752
3820
|
m.blur(() => _())
|
|
3753
3821
|
),
|
|
3754
|
-
hover: () =>
|
|
3822
|
+
hover: () => I(
|
|
3755
3823
|
m.mouseenter(() => x()),
|
|
3756
3824
|
m.mouseleave(() => _())
|
|
3757
3825
|
),
|
|
3758
|
-
focus: () =>
|
|
3826
|
+
focus: () => I(
|
|
3759
3827
|
m.focus(() => x()),
|
|
3760
3828
|
m.blur(() => _())
|
|
3761
3829
|
),
|
|
@@ -3766,7 +3834,7 @@ function Ir(e) {
|
|
|
3766
3834
|
function ge() {
|
|
3767
3835
|
ce(), _();
|
|
3768
3836
|
}
|
|
3769
|
-
return
|
|
3837
|
+
return I(
|
|
3770
3838
|
U(ce),
|
|
3771
3839
|
m.click(() => {
|
|
3772
3840
|
x(), le(() => {
|
|
@@ -3783,7 +3851,7 @@ function Ir(e) {
|
|
|
3783
3851
|
});
|
|
3784
3852
|
});
|
|
3785
3853
|
}
|
|
3786
|
-
function
|
|
3854
|
+
function tt(e, n, t) {
|
|
3787
3855
|
const r = ["bc-link"];
|
|
3788
3856
|
if (r.push(`bu-text--${n}`), t)
|
|
3789
3857
|
r.push("bc-link--disabled");
|
|
@@ -3802,7 +3870,7 @@ function et(e, n, t) {
|
|
|
3802
3870
|
}
|
|
3803
3871
|
return r.join(" ");
|
|
3804
3872
|
}
|
|
3805
|
-
function
|
|
3873
|
+
function Vr({
|
|
3806
3874
|
href: e,
|
|
3807
3875
|
variant: n = "default",
|
|
3808
3876
|
color: t = "primary",
|
|
@@ -3812,7 +3880,7 @@ function Lr({
|
|
|
3812
3880
|
target: a,
|
|
3813
3881
|
rel: u
|
|
3814
3882
|
}, ...c) {
|
|
3815
|
-
return
|
|
3883
|
+
return R(
|
|
3816
3884
|
o,
|
|
3817
3885
|
() => p.span(
|
|
3818
3886
|
s.class(
|
|
@@ -3821,12 +3889,12 @@ function Lr({
|
|
|
3821
3889
|
r,
|
|
3822
3890
|
o
|
|
3823
3891
|
)(
|
|
3824
|
-
(i, d, h) =>
|
|
3892
|
+
(i, d, h) => tt(i, d, h)
|
|
3825
3893
|
)
|
|
3826
3894
|
),
|
|
3827
3895
|
...c
|
|
3828
3896
|
),
|
|
3829
|
-
() =>
|
|
3897
|
+
() => He(
|
|
3830
3898
|
{
|
|
3831
3899
|
href: e,
|
|
3832
3900
|
withViewTransition: l
|
|
@@ -3837,7 +3905,7 @@ function Lr({
|
|
|
3837
3905
|
t,
|
|
3838
3906
|
o
|
|
3839
3907
|
)(
|
|
3840
|
-
(i, d, h) =>
|
|
3908
|
+
(i, d, h) => tt(i, d, h)
|
|
3841
3909
|
)
|
|
3842
3910
|
),
|
|
3843
3911
|
a ? s.target(a) : null,
|
|
@@ -3870,19 +3938,19 @@ function It(e, n, t) {
|
|
|
3870
3938
|
return !1;
|
|
3871
3939
|
}
|
|
3872
3940
|
}
|
|
3873
|
-
function
|
|
3941
|
+
function el({
|
|
3874
3942
|
href: e,
|
|
3875
3943
|
matchMode: n = "exact",
|
|
3876
3944
|
disableWhenActive: t = !0,
|
|
3877
3945
|
...r
|
|
3878
3946
|
}, ...o) {
|
|
3879
|
-
return xe(
|
|
3947
|
+
return xe(Se, (l) => {
|
|
3880
3948
|
const a = y(
|
|
3881
3949
|
l,
|
|
3882
3950
|
e,
|
|
3883
3951
|
t
|
|
3884
3952
|
)((u, c, i) => i ?? !0 ? It(u, w.get(c), n) : !1);
|
|
3885
|
-
return
|
|
3953
|
+
return Vr(
|
|
3886
3954
|
{
|
|
3887
3955
|
...r,
|
|
3888
3956
|
href: e,
|
|
@@ -3892,7 +3960,7 @@ function Xo({
|
|
|
3892
3960
|
);
|
|
3893
3961
|
});
|
|
3894
3962
|
}
|
|
3895
|
-
function
|
|
3963
|
+
function tl({
|
|
3896
3964
|
href: e,
|
|
3897
3965
|
withViewTransition: n = !0,
|
|
3898
3966
|
target: t,
|
|
@@ -3905,7 +3973,7 @@ function Yo({
|
|
|
3905
3973
|
roundedness: i = "sm",
|
|
3906
3974
|
disabled: d = !1
|
|
3907
3975
|
}, ...h) {
|
|
3908
|
-
return o !== void 0 || l !== void 0 ? xe(
|
|
3976
|
+
return o !== void 0 || l !== void 0 ? xe(Se, (f) => {
|
|
3909
3977
|
const b = y(
|
|
3910
3978
|
f,
|
|
3911
3979
|
e,
|
|
@@ -3918,7 +3986,7 @@ function Yo({
|
|
|
3918
3986
|
d,
|
|
3919
3987
|
b
|
|
3920
3988
|
)((C, S) => C || S);
|
|
3921
|
-
return
|
|
3989
|
+
return nt(
|
|
3922
3990
|
{
|
|
3923
3991
|
href: e,
|
|
3924
3992
|
withViewTransition: n,
|
|
@@ -3932,7 +4000,7 @@ function Yo({
|
|
|
3932
4000
|
},
|
|
3933
4001
|
...h
|
|
3934
4002
|
);
|
|
3935
|
-
}) :
|
|
4003
|
+
}) : nt(
|
|
3936
4004
|
{
|
|
3937
4005
|
href: e,
|
|
3938
4006
|
withViewTransition: n,
|
|
@@ -3947,7 +4015,7 @@ function Yo({
|
|
|
3947
4015
|
...h
|
|
3948
4016
|
);
|
|
3949
4017
|
}
|
|
3950
|
-
function
|
|
4018
|
+
function nt({
|
|
3951
4019
|
href: e,
|
|
3952
4020
|
withViewTransition: n,
|
|
3953
4021
|
target: t,
|
|
@@ -3958,7 +4026,7 @@ function tt({
|
|
|
3958
4026
|
roundedness: u,
|
|
3959
4027
|
disabled: c
|
|
3960
4028
|
}, ...i) {
|
|
3961
|
-
return
|
|
4029
|
+
return R(
|
|
3962
4030
|
c ?? !1,
|
|
3963
4031
|
() => p.span(
|
|
3964
4032
|
s.class(
|
|
@@ -3969,7 +4037,7 @@ function tt({
|
|
|
3969
4037
|
u,
|
|
3970
4038
|
c
|
|
3971
4039
|
)(
|
|
3972
|
-
(d, h, f, b, k) =>
|
|
4040
|
+
(d, h, f, b, k) => Le(
|
|
3973
4041
|
d ?? "filled",
|
|
3974
4042
|
h ?? "md",
|
|
3975
4043
|
f ?? "base",
|
|
@@ -3982,7 +4050,7 @@ function tt({
|
|
|
3982
4050
|
),
|
|
3983
4051
|
...i
|
|
3984
4052
|
),
|
|
3985
|
-
() =>
|
|
4053
|
+
() => He(
|
|
3986
4054
|
{
|
|
3987
4055
|
href: e,
|
|
3988
4056
|
withViewTransition: n
|
|
@@ -3995,7 +4063,7 @@ function tt({
|
|
|
3995
4063
|
u,
|
|
3996
4064
|
c
|
|
3997
4065
|
)(
|
|
3998
|
-
(d, h, f, b, k) =>
|
|
4066
|
+
(d, h, f, b, k) => Le(
|
|
3999
4067
|
d ?? "filled",
|
|
4000
4068
|
h ?? "md",
|
|
4001
4069
|
f ?? "base",
|
|
@@ -4012,7 +4080,7 @@ function tt({
|
|
|
4012
4080
|
)
|
|
4013
4081
|
);
|
|
4014
4082
|
}
|
|
4015
|
-
function
|
|
4083
|
+
function rt({ rail: e }, ...n) {
|
|
4016
4084
|
return p.div(
|
|
4017
4085
|
s.class(
|
|
4018
4086
|
w.map(
|
|
@@ -4024,13 +4092,13 @@ function nt({ rail: e }, ...n) {
|
|
|
4024
4092
|
...n
|
|
4025
4093
|
);
|
|
4026
4094
|
}
|
|
4027
|
-
function
|
|
4028
|
-
return
|
|
4095
|
+
function jr(e, ...n) {
|
|
4096
|
+
return He({ href: e.href, withViewTransition: !0 }, ...n);
|
|
4029
4097
|
}
|
|
4030
|
-
function
|
|
4098
|
+
function Fr(...e) {
|
|
4031
4099
|
return p.span(...e);
|
|
4032
4100
|
}
|
|
4033
|
-
function
|
|
4101
|
+
function Hr(e, ...n) {
|
|
4034
4102
|
return p.button(
|
|
4035
4103
|
m.click(e.onClick),
|
|
4036
4104
|
// Add ARIA attributes if provided using WithElement for dynamic updates
|
|
@@ -4057,7 +4125,7 @@ function Vr(e, ...n) {
|
|
|
4057
4125
|
...n
|
|
4058
4126
|
);
|
|
4059
4127
|
}
|
|
4060
|
-
function
|
|
4128
|
+
function Pr(e) {
|
|
4061
4129
|
var t;
|
|
4062
4130
|
const n = [s.class("bc-sidebar-link")];
|
|
4063
4131
|
return e.icon != null && n.push(
|
|
@@ -4078,26 +4146,26 @@ function jr(e) {
|
|
|
4078
4146
|
}),
|
|
4079
4147
|
K({ icon: (t = e.action) == null ? void 0 : t.icon })
|
|
4080
4148
|
)
|
|
4081
|
-
), "onClick" in e ?
|
|
4149
|
+
), "onClick" in e ? Hr(e, ...n) : xe(Se, (r) => {
|
|
4082
4150
|
const o = y(
|
|
4083
4151
|
r,
|
|
4084
4152
|
e.href
|
|
4085
4153
|
)(({ pathname: l }, a) => l === a);
|
|
4086
|
-
return
|
|
4154
|
+
return R(
|
|
4087
4155
|
o,
|
|
4088
|
-
() =>
|
|
4089
|
-
() =>
|
|
4156
|
+
() => Fr(...n),
|
|
4157
|
+
() => jr(e, ...n)
|
|
4090
4158
|
);
|
|
4091
4159
|
});
|
|
4092
4160
|
}
|
|
4093
|
-
function
|
|
4161
|
+
function nl({
|
|
4094
4162
|
rail: e = !0,
|
|
4095
4163
|
icon: n,
|
|
4096
4164
|
header: t,
|
|
4097
4165
|
startOpen: r = !0
|
|
4098
4166
|
}, ...o) {
|
|
4099
4167
|
const l = w.deriveProp(r), a = ae("sidebar-group"), u = `${a}-content`;
|
|
4100
|
-
return
|
|
4168
|
+
return rt(
|
|
4101
4169
|
{},
|
|
4102
4170
|
s.class("bc-sidebar-group-collapsible"),
|
|
4103
4171
|
s.class(
|
|
@@ -4108,7 +4176,7 @@ function Qo({
|
|
|
4108
4176
|
// Add ARIA attributes for group
|
|
4109
4177
|
s.role("group"),
|
|
4110
4178
|
s.id(a),
|
|
4111
|
-
|
|
4179
|
+
Pr({
|
|
4112
4180
|
icon: n,
|
|
4113
4181
|
onClick: () => l.update((c) => !c),
|
|
4114
4182
|
// Add ARIA attributes for the toggle button
|
|
@@ -4120,15 +4188,15 @@ function Qo({
|
|
|
4120
4188
|
),
|
|
4121
4189
|
content: t
|
|
4122
4190
|
}),
|
|
4123
|
-
|
|
4191
|
+
rt({ rail: e }, s.id(u), Ir({ open: l }, ...o))
|
|
4124
4192
|
);
|
|
4125
4193
|
}
|
|
4126
|
-
function
|
|
4194
|
+
function rl(e, n) {
|
|
4127
4195
|
return e(() => {
|
|
4128
4196
|
});
|
|
4129
4197
|
}
|
|
4130
4198
|
function Lt(e) {
|
|
4131
|
-
return
|
|
4199
|
+
return Ut((n) => {
|
|
4132
4200
|
const t = [], r = () => t.forEach((l) => l());
|
|
4133
4201
|
return e(({
|
|
4134
4202
|
effect: l = "opaque",
|
|
@@ -4156,7 +4224,7 @@ function Lt(e) {
|
|
|
4156
4224
|
t.push(g), t.push(() => {
|
|
4157
4225
|
f(), b();
|
|
4158
4226
|
});
|
|
4159
|
-
const M =
|
|
4227
|
+
const M = zt((() => {
|
|
4160
4228
|
var E, V;
|
|
4161
4229
|
const H = /* @__PURE__ */ new Set();
|
|
4162
4230
|
for (const T of n.element.querySelectorAll(
|
|
@@ -4192,7 +4260,7 @@ function Lt(e) {
|
|
|
4192
4260
|
}, r);
|
|
4193
4261
|
});
|
|
4194
4262
|
}
|
|
4195
|
-
function
|
|
4263
|
+
function Mr(e, n) {
|
|
4196
4264
|
const {
|
|
4197
4265
|
size: t = "md",
|
|
4198
4266
|
dismissable: r = !0,
|
|
@@ -4207,7 +4275,7 @@ function Fr(e, n) {
|
|
|
4207
4275
|
};
|
|
4208
4276
|
return n((k) => {
|
|
4209
4277
|
h = d;
|
|
4210
|
-
const C =
|
|
4278
|
+
const C = N("capturing");
|
|
4211
4279
|
w.on(r, (E) => {
|
|
4212
4280
|
C.set(E ? "capturing" : "non-capturing");
|
|
4213
4281
|
});
|
|
@@ -4258,7 +4326,7 @@ function Fr(e, n) {
|
|
|
4258
4326
|
p.div(
|
|
4259
4327
|
s.class("bc-modal__content"),
|
|
4260
4328
|
// Header section
|
|
4261
|
-
|
|
4329
|
+
R(
|
|
4262
4330
|
S,
|
|
4263
4331
|
() => p.div(
|
|
4264
4332
|
s.class("bc-modal__header"),
|
|
@@ -4266,7 +4334,7 @@ function Fr(e, n) {
|
|
|
4266
4334
|
...k.header ? [s.id(O)] : [],
|
|
4267
4335
|
k.header
|
|
4268
4336
|
),
|
|
4269
|
-
|
|
4337
|
+
R(
|
|
4270
4338
|
o,
|
|
4271
4339
|
() => be(
|
|
4272
4340
|
{
|
|
@@ -4306,7 +4374,7 @@ function Fr(e, n) {
|
|
|
4306
4374
|
});
|
|
4307
4375
|
});
|
|
4308
4376
|
}
|
|
4309
|
-
function
|
|
4377
|
+
function ol(e, n) {
|
|
4310
4378
|
const {
|
|
4311
4379
|
// TODO translation
|
|
4312
4380
|
confirmText: t = "Confirm",
|
|
@@ -4316,7 +4384,7 @@ function el(e, n) {
|
|
|
4316
4384
|
onCancel: l,
|
|
4317
4385
|
...a
|
|
4318
4386
|
} = e;
|
|
4319
|
-
return
|
|
4387
|
+
return Mr(
|
|
4320
4388
|
{ showCloseButton: !1, ...a },
|
|
4321
4389
|
(u, c) => {
|
|
4322
4390
|
const i = () => {
|
|
@@ -4327,7 +4395,7 @@ function el(e, n) {
|
|
|
4327
4395
|
return n((f) => {
|
|
4328
4396
|
u({
|
|
4329
4397
|
body: f,
|
|
4330
|
-
footer:
|
|
4398
|
+
footer: I(
|
|
4331
4399
|
s.class("bu-justify-end"),
|
|
4332
4400
|
be(
|
|
4333
4401
|
{
|
|
@@ -4350,7 +4418,7 @@ function el(e, n) {
|
|
|
4350
4418
|
}
|
|
4351
4419
|
);
|
|
4352
4420
|
}
|
|
4353
|
-
function
|
|
4421
|
+
function ll(e) {
|
|
4354
4422
|
return Lt((n, t) => {
|
|
4355
4423
|
let r = t;
|
|
4356
4424
|
const o = () => r();
|
|
@@ -4368,7 +4436,7 @@ function tl(e) {
|
|
|
4368
4436
|
footer: g
|
|
4369
4437
|
} = u;
|
|
4370
4438
|
r = t;
|
|
4371
|
-
const O =
|
|
4439
|
+
const O = N("capturing");
|
|
4372
4440
|
w.on(d, (E) => {
|
|
4373
4441
|
O.set(E ? "capturing" : "non-capturing");
|
|
4374
4442
|
});
|
|
@@ -4418,11 +4486,11 @@ function tl(e) {
|
|
|
4418
4486
|
m.mousedown((x) => x.stopPropagation()),
|
|
4419
4487
|
// Prevent overlay click-outside when clicking drawer content
|
|
4420
4488
|
// Drawer content container
|
|
4421
|
-
|
|
4489
|
+
Gt(M, (x) => et(x ? {
|
|
4422
4490
|
header: p.div(
|
|
4423
4491
|
s.class("bc-drawer__header"),
|
|
4424
4492
|
p.div(s.id(P), C),
|
|
4425
|
-
|
|
4493
|
+
R(
|
|
4426
4494
|
h,
|
|
4427
4495
|
() => be(
|
|
4428
4496
|
{
|
|
@@ -4469,19 +4537,19 @@ function tl(e) {
|
|
|
4469
4537
|
});
|
|
4470
4538
|
});
|
|
4471
4539
|
}
|
|
4472
|
-
function
|
|
4540
|
+
function Wr(e) {
|
|
4473
4541
|
const n = {
|
|
4474
4542
|
up: "M0 16 L8 10 L16 16 Z",
|
|
4475
4543
|
down: "M0 0 L8 6 L16 0 Z",
|
|
4476
4544
|
left: "M16 0 L10 8 L16 16 Z",
|
|
4477
4545
|
right: "M0 0 L6 8 L0 16 Z"
|
|
4478
4546
|
};
|
|
4479
|
-
return
|
|
4480
|
-
|
|
4481
|
-
|
|
4547
|
+
return Ze.svg(
|
|
4548
|
+
Ke.viewBox("0 0 16 16"),
|
|
4549
|
+
Ze.path(Ke.d(e.map((t) => n[t])))
|
|
4482
4550
|
);
|
|
4483
4551
|
}
|
|
4484
|
-
function
|
|
4552
|
+
function sl(e) {
|
|
4485
4553
|
const {
|
|
4486
4554
|
content: n,
|
|
4487
4555
|
placement: t = "top",
|
|
@@ -4491,8 +4559,8 @@ function nl(e) {
|
|
|
4491
4559
|
crossAxisOffset: a = 0,
|
|
4492
4560
|
showOn: u = "hover-focus"
|
|
4493
4561
|
} = e, c = ae("tooltip");
|
|
4494
|
-
return F((i) => (i.setAttribute("aria-describedby", c),
|
|
4495
|
-
content: () =>
|
|
4562
|
+
return F((i) => (i.setAttribute("aria-describedby", c), Or({
|
|
4563
|
+
content: () => I(
|
|
4496
4564
|
s.class("bc-tooltip"),
|
|
4497
4565
|
s.role("tooltip"),
|
|
4498
4566
|
s.id(c),
|
|
@@ -4514,259 +4582,195 @@ function nl(e) {
|
|
|
4514
4582
|
placement: f
|
|
4515
4583
|
}) => f.includes("top") ? "down" : f.includes("bottom") ? "up" : f.includes("left") ? "right" : f.includes("right") ? "left" : "up"
|
|
4516
4584
|
);
|
|
4517
|
-
return
|
|
4585
|
+
return I(
|
|
4518
4586
|
s.class("bc-tooltip__arrow"),
|
|
4519
4587
|
s.class(h.map((f) => `bc-tooltip__arrow-${f}`)),
|
|
4520
4588
|
v.transform(
|
|
4521
4589
|
d.map(({ x: f, y: b }) => f == null && b == null ? "" : f != null ? `translate(${f}px, 0)` : `translate(0, ${b}px)`)
|
|
4522
4590
|
),
|
|
4523
|
-
|
|
4591
|
+
Wr(h)
|
|
4524
4592
|
);
|
|
4525
4593
|
}
|
|
4526
4594
|
})));
|
|
4527
4595
|
}
|
|
4528
|
-
function rl({
|
|
4529
|
-
locale: e,
|
|
4530
|
-
defaultLocale: n = "en-US",
|
|
4531
|
-
defaultMessages: t,
|
|
4532
|
-
localeLoader: r
|
|
4533
|
-
}) {
|
|
4534
|
-
const o = R({
|
|
4535
|
-
locale: n,
|
|
4536
|
-
messages: t
|
|
4537
|
-
}), l = e.on((c) => {
|
|
4538
|
-
c !== o.value.locale && (o.set({
|
|
4539
|
-
locale: c,
|
|
4540
|
-
messages: o.value.messages
|
|
4541
|
-
}), r(c).then((i) => {
|
|
4542
|
-
c === o.value.locale && o.set({ locale: c, messages: i });
|
|
4543
|
-
}).catch((i) => {
|
|
4544
|
-
o.set({
|
|
4545
|
-
locale: n,
|
|
4546
|
-
messages: t
|
|
4547
|
-
}), console.error("Failed to load locale", i);
|
|
4548
|
-
}));
|
|
4549
|
-
}), a = o.$.messages, u = new Proxy({}, {
|
|
4550
|
-
get: (c, i) => {
|
|
4551
|
-
const d = a.at(i);
|
|
4552
|
-
return function(...h) {
|
|
4553
|
-
return y(
|
|
4554
|
-
d,
|
|
4555
|
-
...h
|
|
4556
|
-
)(
|
|
4557
|
-
(f, ...b) => (
|
|
4558
|
-
// Call the message function with provided arguments
|
|
4559
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
|
4560
|
-
f(...b)
|
|
4561
|
-
)
|
|
4562
|
-
);
|
|
4563
|
-
};
|
|
4564
|
-
}
|
|
4565
|
-
});
|
|
4566
|
-
return {
|
|
4567
|
-
/** Clean up all resources and event listeners */
|
|
4568
|
-
dispose: () => {
|
|
4569
|
-
l(), o.dispose();
|
|
4570
|
-
},
|
|
4571
|
-
/** Translation functions that return reactive signals */
|
|
4572
|
-
t: u
|
|
4573
|
-
};
|
|
4574
|
-
}
|
|
4575
|
-
const ol = {
|
|
4576
|
-
mark: rt("Locale"),
|
|
4577
|
-
create: (e) => {
|
|
4578
|
-
const n = ot({
|
|
4579
|
-
defaultValue: navigator.language ?? "en-US",
|
|
4580
|
-
key: "beatui-locale"
|
|
4581
|
-
});
|
|
4582
|
-
return {
|
|
4583
|
-
value: {
|
|
4584
|
-
locale: n,
|
|
4585
|
-
setLocale: (r) => n.set(r)
|
|
4586
|
-
},
|
|
4587
|
-
dispose: () => {
|
|
4588
|
-
n.dispose();
|
|
4589
|
-
}
|
|
4590
|
-
};
|
|
4591
|
-
}
|
|
4592
|
-
};
|
|
4593
4596
|
export {
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4597
|
+
Ve as AnimatedToggleClass,
|
|
4598
|
+
Uo as AppShell,
|
|
4599
|
+
hr as AppearanceSelector,
|
|
4600
|
+
dr as ArrayController,
|
|
4601
|
+
zr as BeatUI,
|
|
4598
4602
|
be as Button,
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4603
|
+
tl as ButtonLink,
|
|
4604
|
+
zo as Card,
|
|
4605
|
+
Zo as Center,
|
|
4606
|
+
Go as CenterH,
|
|
4607
|
+
jo as CheckboxInput,
|
|
4608
|
+
Ir as Collapse,
|
|
4609
|
+
nl as CollapsibleSidebarGroup,
|
|
4606
4610
|
Y as CommonInputAttributes,
|
|
4607
|
-
|
|
4611
|
+
ol as ConfirmModal,
|
|
4608
4612
|
z as ControlInputWrapper,
|
|
4609
4613
|
de as Controller,
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4614
|
+
bo as DateControl,
|
|
4615
|
+
wt as DateInput,
|
|
4616
|
+
fo as DateTimeControl,
|
|
4617
|
+
zn as DateTimeInput,
|
|
4618
|
+
ll as Drawer,
|
|
4619
|
+
Fo as EditableText,
|
|
4620
|
+
go as EmailControl,
|
|
4621
|
+
Gn as EmailInput,
|
|
4622
|
+
io as EmphasisLabel,
|
|
4623
|
+
Lo as EnsureControl,
|
|
4624
|
+
uo as ErrorLabel,
|
|
4625
|
+
Zn as Expando,
|
|
4626
|
+
Or as Flyout,
|
|
4623
4627
|
Ce as FocusTrap,
|
|
4624
|
-
|
|
4625
|
-
|
|
4628
|
+
mo as FormStatus,
|
|
4629
|
+
Yo as Group,
|
|
4626
4630
|
K as Icon,
|
|
4627
4631
|
X as InputContainer,
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4632
|
+
qn as InputWrapper,
|
|
4633
|
+
yt as Label,
|
|
4634
|
+
Xn as LazyNativeSelect,
|
|
4635
|
+
xo as LazyNativeSelectControl,
|
|
4636
|
+
Vr as Link,
|
|
4637
|
+
Do as ListControl,
|
|
4638
|
+
en as Locale,
|
|
4639
|
+
rl as Menu,
|
|
4640
|
+
Mr as Modal,
|
|
4641
|
+
Hn as MutedLabel,
|
|
4642
|
+
Ct as NativeSelect,
|
|
4643
|
+
vo as NativeSelectControl,
|
|
4644
|
+
el as NavigationLink,
|
|
4645
|
+
yo as NullableDateControl,
|
|
4646
|
+
St as NullableDateInput,
|
|
4647
|
+
wo as NullableDateTimeControl,
|
|
4648
|
+
Et as NullableDateTimeInput,
|
|
4649
|
+
$o as NullableStringDateControl,
|
|
4650
|
+
Co as NullableStringDateTimeControl,
|
|
4651
|
+
tr as NullableTextArea,
|
|
4652
|
+
So as NullableTextAreaControl,
|
|
4653
|
+
Eo as NullableTextControl,
|
|
4654
|
+
er as NullableTextInput,
|
|
4655
|
+
_o as NumberControl,
|
|
4656
|
+
nr as NumberInput,
|
|
4657
|
+
ur as ObjectController,
|
|
4654
4658
|
Lt as Overlay,
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4659
|
+
Ao as PasswordControl,
|
|
4660
|
+
rr as PasswordInput,
|
|
4661
|
+
Pn as RequiredSymbol,
|
|
4662
|
+
et as ScrollablePanel,
|
|
4663
|
+
lr as SegmentedControl,
|
|
4664
|
+
Oe as SelectOption,
|
|
4665
|
+
rt as SidebarGroup,
|
|
4666
|
+
Pr as SidebarLink,
|
|
4667
|
+
Qo as Sink,
|
|
4668
|
+
Jo as Stack,
|
|
4669
|
+
Vo as StandaloneAppearanceSelector,
|
|
4670
|
+
To as StringDateControl,
|
|
4671
|
+
Ho as Switch,
|
|
4672
|
+
Fn as Tag,
|
|
4673
|
+
Bo as TagsControl,
|
|
4674
|
+
sr as TagsInput,
|
|
4675
|
+
ar as TextArea,
|
|
4676
|
+
Io as TextAreaControl,
|
|
4677
|
+
po as TextControl,
|
|
4678
|
+
Rn as TextInput,
|
|
4679
|
+
Pe as Theme,
|
|
4680
|
+
Jt as ThemeAppearance,
|
|
4681
|
+
sl as Tooltip,
|
|
4682
|
+
il as Use,
|
|
4683
|
+
yr as WithBeatUIBreakpoint,
|
|
4684
|
+
No as WithBeatUIElementBreakpoint,
|
|
4681
4685
|
Tt as WithBreakpoint,
|
|
4682
4686
|
W as backgroundConfig,
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4687
|
+
mn as baseSpacing,
|
|
4688
|
+
dn as bgColors,
|
|
4689
|
+
pn as borderColors,
|
|
4690
|
+
ct as breakpoints,
|
|
4691
|
+
vn as changeFontSize,
|
|
4692
|
+
un as colorShades,
|
|
4693
|
+
Me as colors,
|
|
4694
|
+
xr as compareBreakpoint,
|
|
4691
4695
|
At as connectCommonAttributes,
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4696
|
+
Mo as connectNumberInput,
|
|
4697
|
+
Po as connectStringInput,
|
|
4698
|
+
br as convertStandardSchemaIssues,
|
|
4699
|
+
pr as convertStandardSchemaPathToPath,
|
|
4700
|
+
Ko as delaySignal,
|
|
4701
|
+
ko as emitExpando,
|
|
4702
|
+
Kn as emitOptionExpando,
|
|
4699
4703
|
$e as emptyToNull,
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4704
|
+
qo as findBreakpoint,
|
|
4705
|
+
Cn as fontFamily,
|
|
4706
|
+
bt as fontSize,
|
|
4707
|
+
yn as fontWeight,
|
|
4708
|
+
ao as generateAllTokenVariables,
|
|
4709
|
+
Yr as generateBackgroundUtilities,
|
|
4710
|
+
cn as generateBreakpointVariables,
|
|
4711
|
+
Le as generateButtonClasses,
|
|
4712
|
+
fn as generateColorVariables,
|
|
4713
|
+
tt as generateLinkClasses,
|
|
4714
|
+
gn as generateRadiusVariables,
|
|
4715
|
+
xn as generateSpacingVariables,
|
|
4716
|
+
Sn as generateTypographyVariables,
|
|
4717
|
+
_n as generateZIndexVariables,
|
|
4718
|
+
Zr as getBreakpointMediaQuery,
|
|
4719
|
+
Gr as getBreakpointVar,
|
|
4720
|
+
it as getBreakpointVarName,
|
|
4717
4721
|
ke as getColorVar,
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4722
|
+
De as getColorVarName,
|
|
4723
|
+
lo as getFontFamilyVar,
|
|
4724
|
+
xt as getFontFamilyVarName,
|
|
4725
|
+
to as getFontSizeVar,
|
|
4726
|
+
ft as getFontSizeVarName,
|
|
4727
|
+
no as getFontWeightVar,
|
|
4728
|
+
gt as getFontWeightVarName,
|
|
4729
|
+
on as getIconLocally,
|
|
4730
|
+
oo as getLetterSpacingVar,
|
|
4731
|
+
kt as getLetterSpacingVarName,
|
|
4732
|
+
ro as getLineHeightVar,
|
|
4733
|
+
mt as getLineHeightVarName,
|
|
4734
|
+
Jr as getRadiusMediaQuery,
|
|
4735
|
+
Qr as getRadiusVar,
|
|
4736
|
+
ht as getRadiusVarName,
|
|
4737
|
+
eo as getSpacingVar,
|
|
4738
|
+
pt as getSpacingVarName,
|
|
4739
|
+
co as getTokenValue,
|
|
4740
|
+
so as getZIndexVar,
|
|
4741
|
+
vt as getZIndexVarName,
|
|
4738
4742
|
Z as inputOptionsFromController,
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4743
|
+
We as inputOptionsFromMappedController,
|
|
4744
|
+
bn as interactiveColors,
|
|
4745
|
+
at as isIndexedDBAvailable,
|
|
4742
4746
|
It as isUrlMatch,
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4747
|
+
$n as letterSpacing,
|
|
4748
|
+
wn as lineHeight,
|
|
4749
|
+
Re as makeMapValidationResult,
|
|
4750
|
+
qe as makeMappedOnChangeHandler,
|
|
4751
|
+
Ur as makeMessages,
|
|
4752
|
+
ho as makeNullableOnChangeHandler,
|
|
4749
4753
|
G as makeOnBlurHandler,
|
|
4750
4754
|
Q as makeOnChangeHandler,
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4755
|
+
Xr as normalizeColorName,
|
|
4756
|
+
_t as nullToEmpty,
|
|
4757
|
+
Oo as parsePath,
|
|
4758
|
+
ir as pathToString,
|
|
4759
|
+
dt as radius,
|
|
4760
|
+
Ee as semanticColorNames,
|
|
4761
|
+
ut as semanticColors,
|
|
4758
4762
|
ae as sessionId,
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4763
|
+
kn as spacing,
|
|
4764
|
+
gr as standardSchemaResultToValidationResult,
|
|
4765
|
+
rn as storeIconLocally,
|
|
4766
|
+
hn as textColors,
|
|
4767
|
+
Kr as themeColorNames,
|
|
4764
4768
|
fe as useAnimatedElementToggle,
|
|
4765
4769
|
Bt as useAnimatedToggle,
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4770
|
+
fr as useController,
|
|
4771
|
+
Xo as useFocusTrap,
|
|
4772
|
+
Wo as useForm,
|
|
4773
|
+
Ro as useTimedToggle,
|
|
4774
|
+
cr as wrapSegment,
|
|
4775
|
+
En as zIndex
|
|
4772
4776
|
};
|