@tempots/beatui 0.39.0 → 0.40.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/{2019-1S9vgvv2.cjs → 2019-nWH_nAwT.cjs} +1 -1
- package/dist/{2019-DPD_eCKE.js → 2019-sCKLAY8c.js} +2 -2
- package/dist/{2020-aLm9VmDL.js → 2020-B4xCW_nu.js} +2 -2
- package/dist/{2020-CGrbEEmD.cjs → 2020-D7RWX09D.cjs} +1 -1
- package/dist/{ar-B0vT_MPe.cjs → ar-D_4BfIJO.cjs} +1 -1
- package/dist/{ar-CbM09z5P.js → ar-i2uHmy8P.js} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +54 -49
- package/dist/beatui.css +181 -107
- package/dist/beatui.tailwind.css +181 -107
- package/dist/{de-tK36cL_u.cjs → de-C0PZz9sE.cjs} +1 -1
- package/dist/{de-Dd907tZQ.js → de-CeLwmVZz.js} +1 -1
- package/dist/{es-K35LRZa-.cjs → es-C8qT1ins.cjs} +1 -1
- package/dist/{es-BkJxjMdG.js → es-DxOgARww.js} +1 -1
- package/dist/{fa-DBTUBsw_.js → fa-B9pEff8A.js} +1 -1
- package/dist/{fa-BBikwwku.cjs → fa-BFV9MxMX.cjs} +1 -1
- package/dist/{fr-DMtXrrnJ.cjs → fr-BBx5IJ7G.cjs} +1 -1
- package/dist/{fr-Fmupo556.js → fr-Caeevx56.js} +1 -1
- package/dist/{he-on3Ivp8g.cjs → he-CMOvd4Dr.cjs} +1 -1
- package/dist/{he-DkI64oaY.js → he-DeN-WW3u.js} +1 -1
- package/dist/{hi-GdD5MihT.js → hi-Dey2HxiD.js} +1 -1
- package/dist/{hi-CNFV8ITE.cjs → hi-IOU_PzvH.cjs} +1 -1
- package/dist/{index-e8oQ-k0x.cjs → index-B0ff5lT-.cjs} +4 -4
- package/dist/{index-BkQ7xHgi.js → index-BTZqW3-b.js} +1245 -1232
- package/dist/{index-wdi93sK4.cjs → index-C2VAPX2b.cjs} +1 -1
- package/dist/{index-DjShJtXp.js → index-CAeOFdez.js} +1 -1
- package/dist/{index-BI5w0jSz.js → index-CBT2SLat.js} +224 -223
- package/dist/{index-Bv2gn_kV.cjs → index-ClFVnBUS.cjs} +3 -3
- package/dist/{index-BA93M8Ux.cjs → index-D8fg48Fv.cjs} +1 -1
- package/dist/{index-BfFlhmAq.js → index-DJqo6Guq.js} +1 -1
- package/dist/{index-CPBlySmE.cjs → index-Dtka01mK.cjs} +12 -12
- package/dist/{index-BK8t6gqu.js → index-HqWBd-jW.js} +680 -677
- package/dist/{index-LUItEwlw.js → index-IQ3lRaL0.js} +1 -1
- package/dist/{index-CKyH3jwP.cjs → index-KPHFBjQB.cjs} +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +1489 -1467
- package/dist/{it-Bpnfd60V.js → it-DghnQdZa.js} +1 -1
- package/dist/{it-BDOzBRkQ.cjs → it-uQF0jkDT.cjs} +1 -1
- package/dist/{ja-N-7c7zD7.cjs → ja-BJD6uPbl.cjs} +1 -1
- package/dist/{ja-SjlGNgs9.js → ja-Kb7rxmFg.js} +1 -1
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +1 -1
- package/dist/{ko-CH69ZNts.js → ko-53o5WJ-v.js} +1 -1
- package/dist/{ko-BBeTXIlY.cjs → ko-B7bLdRnp.cjs} +1 -1
- package/dist/markdown/index.cjs.js +1 -1
- package/dist/markdown/index.es.js +1 -1
- package/dist/modal-BRUgTJG9.cjs +1 -0
- package/dist/{modal-BD76Rve3.js → modal-_2B8vIo0.js} +234 -209
- package/dist/{nl-C2C9QDH2.cjs → nl-CJE0fC8g.cjs} +1 -1
- package/dist/{nl-DnvMlW8v.js → nl-DvUVT7xd.js} +1 -1
- package/dist/{notice-CQZseCQs.js → notice-C4n5jXi6.js} +196 -186
- package/dist/notice-CncwkUTy.cjs +2 -0
- package/dist/{pl-CBEX2qN1.js → pl-C3oYeTwf.js} +1 -1
- package/dist/{pl-sNBCzEUd.cjs → pl-DUaY5slY.cjs} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-Bvxg9VEA.cjs → pt-BAqNKCuy.cjs} +1 -1
- package/dist/{pt-ByFqFAdQ.js → pt-BJGeScun.js} +1 -1
- package/dist/{ru-6d5JfoDw.js → ru-2irv1YXp.js} +1 -1
- package/dist/{ru-CPAdsn4m.cjs → ru-CAlgJm3K.cjs} +1 -1
- package/dist/{toolbar-Dw2VQD9y.cjs → toolbar-B7HrL0vD.cjs} +1 -1
- package/dist/{toolbar-Cl_TAa3r.js → toolbar-CVDXVnje.js} +1 -1
- package/dist/{tr-gv4vJfm8.js → tr-CkHLE5u7.js} +1 -1
- package/dist/{tr-IKZtCQQR.cjs → tr-DMiXAhok.cjs} +1 -1
- package/dist/{translations-djDSPqdb.js → translations-DEEflRUY.js} +61 -60
- package/dist/{translations-CK426qyd.cjs → translations-DRNj0YIi.cjs} +1 -1
- package/dist/{translations-DJR65Jii.cjs → translations-Dw1oO6Dh.cjs} +1 -1
- package/dist/{translations-DXLmnUiB.js → translations-Q5C5LyIi.js} +1 -1
- package/dist/types/components/misc/notification-provider.d.ts +3 -3
- package/dist/types/utils/use-animated-toggle.d.ts +17 -4
- package/dist/{ur-Bgq_2yjr.cjs → ur-BjiNs3SL.cjs} +1 -1
- package/dist/{ur-Bo6bjEBS.js → ur-bxBR_9Z-.js} +1 -1
- package/dist/{utils-Bw911Eo4.js → utils-BCbc19N0.js} +202 -193
- package/dist/utils-BJZipnfW.cjs +1 -0
- package/dist/{vi-BrUQnj-8.cjs → vi-CByOZvV2.cjs} +1 -1
- package/dist/{vi-xDLJ3TIx.js → vi-CKknZqol.js} +1 -1
- package/dist/{zh-BqH1Cioq.cjs → zh-C0QOebEA.cjs} +1 -1
- package/dist/{zh-BivWxJJh.js → zh-CmUgcP9o.js} +1 -1
- package/package.json +4 -3
- package/dist/modal-DQycMZ8_.cjs +0 -1
- package/dist/notice-CFoc4PJe.cjs +0 -2
- package/dist/utils-Bsrfm-0d.cjs +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Use as q, coalesce as J, aria as
|
|
2
|
-
import { a as z, B as
|
|
1
|
+
import { Use as q, coalesce as J, aria as B, attr as o, html as b, on as E, Value as y, Empty as _, computedOf as C, OnDispose as Q, When as O, dataAttr as U, input as ne, emitValue as x, prop as I, Fragment as F, emitValueAsNumber as ie, Unless as ae, Ensure as re } from "@tempots/dom";
|
|
2
|
+
import { a as z, B as le, I as N, b as R, C as X } from "./translations-DEEflRUY.js";
|
|
3
3
|
const W = /* @__PURE__ */ new Map();
|
|
4
|
-
function
|
|
4
|
+
function Y(e) {
|
|
5
5
|
const s = W.get(e) ?? 0;
|
|
6
6
|
return W.set(e, s + 1), `${e}-${s}`;
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const S = {
|
|
9
9
|
/**
|
|
10
10
|
* Creates a loading state.
|
|
11
11
|
* @param previousValue - The previous value.
|
|
@@ -84,7 +84,7 @@ const w = {
|
|
|
84
84
|
* @public
|
|
85
85
|
*/
|
|
86
86
|
getOrElse(e, s) {
|
|
87
|
-
return
|
|
87
|
+
return S.isSuccess(e) ? e.value : s;
|
|
88
88
|
},
|
|
89
89
|
/**
|
|
90
90
|
* Gets the value if the result is a success; otherwise, returns the value from the alternative function.
|
|
@@ -95,7 +95,7 @@ const w = {
|
|
|
95
95
|
* function.
|
|
96
96
|
*/
|
|
97
97
|
getOrElseLazy(e, s) {
|
|
98
|
-
return
|
|
98
|
+
return S.isSuccess(e) ? e.value : s();
|
|
99
99
|
},
|
|
100
100
|
/**
|
|
101
101
|
* Gets the value if the result is a success; otherwise, returns `null`.
|
|
@@ -104,7 +104,7 @@ const w = {
|
|
|
104
104
|
* @public
|
|
105
105
|
*/
|
|
106
106
|
getOrNull(e) {
|
|
107
|
-
return
|
|
107
|
+
return S.isSuccess(e) ? e.value : null;
|
|
108
108
|
},
|
|
109
109
|
/**
|
|
110
110
|
* Gets the value if the result is a success; otherwise, returns `undefined`.
|
|
@@ -113,7 +113,7 @@ const w = {
|
|
|
113
113
|
* @public
|
|
114
114
|
*/
|
|
115
115
|
getOrUndefined(e) {
|
|
116
|
-
return
|
|
116
|
+
return S.isSuccess(e) ? e.value : void 0;
|
|
117
117
|
},
|
|
118
118
|
/**
|
|
119
119
|
* Gets the value of a `AsyncResult` if it is a `Success`, otherwise it throws the error contained in the `Failure`.
|
|
@@ -121,9 +121,9 @@ const w = {
|
|
|
121
121
|
* @returns The value of the `AsyncResult` if it is a `Success`.
|
|
122
122
|
*/
|
|
123
123
|
getUnsafe: (e) => {
|
|
124
|
-
if (
|
|
124
|
+
if (S.isSuccess(e))
|
|
125
125
|
return e.value;
|
|
126
|
-
throw
|
|
126
|
+
throw S.isFailure(e) ? e.error : new Error("Cannot get value from a not-asked or loading result");
|
|
127
127
|
},
|
|
128
128
|
/**
|
|
129
129
|
* Based on the state of the result, it picks the appropriate function to call and returns the result.
|
|
@@ -139,7 +139,7 @@ const w = {
|
|
|
139
139
|
failure: t,
|
|
140
140
|
loading: i,
|
|
141
141
|
notAsked: n = i
|
|
142
|
-
}) =>
|
|
142
|
+
}) => S.isSuccess(e) ? s(e.value) : S.isFailure(e) ? t(e.error) : S.isNotAsked(e) ? n() : i(e.previousValue),
|
|
143
143
|
/**
|
|
144
144
|
* When the result is a success, it applies the function to the value.
|
|
145
145
|
*
|
|
@@ -148,7 +148,7 @@ const w = {
|
|
|
148
148
|
* @returns The result that was passed in.
|
|
149
149
|
* @public
|
|
150
150
|
*/
|
|
151
|
-
whenSuccess: (e, s) => (
|
|
151
|
+
whenSuccess: (e, s) => (S.isSuccess(e) && s(e.value), e),
|
|
152
152
|
/**
|
|
153
153
|
* When the result is a failure, it applies the function to the error.
|
|
154
154
|
*
|
|
@@ -157,7 +157,7 @@ const w = {
|
|
|
157
157
|
* @returns The result that was passed in.
|
|
158
158
|
* @public
|
|
159
159
|
*/
|
|
160
|
-
whenFailure: (e, s) => (
|
|
160
|
+
whenFailure: (e, s) => (S.isFailure(e) && s(e.error), e),
|
|
161
161
|
/**
|
|
162
162
|
* Compares two results for equality.
|
|
163
163
|
* @param r1 - The first result.
|
|
@@ -177,11 +177,11 @@ const w = {
|
|
|
177
177
|
all: (e) => {
|
|
178
178
|
const s = [];
|
|
179
179
|
for (const t of e)
|
|
180
|
-
if (
|
|
180
|
+
if (S.isSuccess(t))
|
|
181
181
|
s.push(t.value);
|
|
182
182
|
else
|
|
183
183
|
return t;
|
|
184
|
-
return
|
|
184
|
+
return S.success(s);
|
|
185
185
|
},
|
|
186
186
|
/**
|
|
187
187
|
* Converts a Promise to an AsyncResult.
|
|
@@ -191,12 +191,12 @@ const w = {
|
|
|
191
191
|
ofPromise: async (e) => {
|
|
192
192
|
try {
|
|
193
193
|
const s = await e;
|
|
194
|
-
return
|
|
194
|
+
return S.success(s);
|
|
195
195
|
} catch (s) {
|
|
196
|
-
return
|
|
196
|
+
return S.failure(s instanceof Error ? s : new Error(String(s)));
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
},
|
|
199
|
+
}, P = (e, s) => e === s || e !== e && s !== s, D = {
|
|
200
200
|
/**
|
|
201
201
|
* Creates a valid `Validation`.
|
|
202
202
|
* @returns A `Validation` that is `Valid`.
|
|
@@ -308,8 +308,8 @@ const w = {
|
|
|
308
308
|
toAsync(e) {
|
|
309
309
|
return m.match(
|
|
310
310
|
e,
|
|
311
|
-
(s) =>
|
|
312
|
-
(s) =>
|
|
311
|
+
(s) => S.success(s),
|
|
312
|
+
(s) => S.failure(s)
|
|
313
313
|
);
|
|
314
314
|
},
|
|
315
315
|
/**
|
|
@@ -456,7 +456,7 @@ const w = {
|
|
|
456
456
|
return m.success(s);
|
|
457
457
|
}
|
|
458
458
|
};
|
|
459
|
-
function
|
|
459
|
+
function ce({
|
|
460
460
|
size: e = "sm",
|
|
461
461
|
icon: s = "line-md:close",
|
|
462
462
|
disabled: t,
|
|
@@ -467,7 +467,7 @@ function le({
|
|
|
467
467
|
}, ...r) {
|
|
468
468
|
return q(z, (c) => {
|
|
469
469
|
const f = J(l, c.$.closeModal);
|
|
470
|
-
return
|
|
470
|
+
return le(
|
|
471
471
|
{
|
|
472
472
|
variant: "text",
|
|
473
473
|
size: e,
|
|
@@ -477,7 +477,7 @@ function le({
|
|
|
477
477
|
onClick: a
|
|
478
478
|
},
|
|
479
479
|
o.title(f),
|
|
480
|
-
|
|
480
|
+
B.label(f),
|
|
481
481
|
...r,
|
|
482
482
|
N({ icon: s, size: e ?? "sm" })
|
|
483
483
|
);
|
|
@@ -486,7 +486,7 @@ function le({
|
|
|
486
486
|
function H(e) {
|
|
487
487
|
return `bc-label bc-label--${e}`;
|
|
488
488
|
}
|
|
489
|
-
const
|
|
489
|
+
const Ae = (...e) => b.span(o.class(H("emphasis")), ...e), oe = (...e) => b.span(o.class(H("default")), ...e), ue = (...e) => b.span(o.class(H("muted")), ...e), Ve = (...e) => b.span(o.class(H("danger")), ...e), Oe = (e) => {
|
|
490
490
|
const {
|
|
491
491
|
value: s,
|
|
492
492
|
onBlur: t,
|
|
@@ -497,12 +497,12 @@ const Te = (...e) => b.span(o.class(H("emphasis")), ...e), ce = (...e) => b.span
|
|
|
497
497
|
checkedIcon: r,
|
|
498
498
|
uncheckedIcon: c,
|
|
499
499
|
iconSize: f = "lg"
|
|
500
|
-
} = e, u = l ??
|
|
501
|
-
if (
|
|
502
|
-
const h =
|
|
500
|
+
} = e, u = l ?? Y("checkbox"), g = `${u}-label`, w = () => {
|
|
501
|
+
if (y.get(a ?? !1)) return;
|
|
502
|
+
const h = y.get(s);
|
|
503
503
|
i?.(!h);
|
|
504
504
|
}, v = (h) => {
|
|
505
|
-
|
|
505
|
+
y.get(a ?? !1) || (h.key === " " || h.key === "Enter") && (h.preventDefault(), w());
|
|
506
506
|
};
|
|
507
507
|
return R(
|
|
508
508
|
{
|
|
@@ -514,13 +514,13 @@ const Te = (...e) => b.span(o.class(H("emphasis")), ...e), ce = (...e) => b.span
|
|
|
514
514
|
b.span(
|
|
515
515
|
o.class("bc-checkbox-input__checkbox"),
|
|
516
516
|
o.class(
|
|
517
|
-
|
|
517
|
+
y.map(
|
|
518
518
|
s,
|
|
519
519
|
(h) => h ? "bc-checkbox-input__checkbox--checked" : "bc-checkbox-input__checkbox--unchecked"
|
|
520
520
|
)
|
|
521
521
|
),
|
|
522
522
|
o.class(
|
|
523
|
-
|
|
523
|
+
y.map(
|
|
524
524
|
a ?? !1,
|
|
525
525
|
(h) => h ? "bc-checkbox-input__checkbox--disabled" : ""
|
|
526
526
|
)
|
|
@@ -528,18 +528,18 @@ const Te = (...e) => b.span(o.class(H("emphasis")), ...e), ce = (...e) => b.span
|
|
|
528
528
|
o.id(u),
|
|
529
529
|
o.role("checkbox"),
|
|
530
530
|
o.tabindex(
|
|
531
|
-
|
|
531
|
+
y.map(
|
|
532
532
|
a ?? !1,
|
|
533
533
|
(h) => h ? -1 : 0
|
|
534
534
|
)
|
|
535
535
|
),
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
n != null ?
|
|
536
|
+
B.checked(s),
|
|
537
|
+
B.disabled(a),
|
|
538
|
+
n != null ? B.labelledby(g) : _,
|
|
539
539
|
E.keydown(v),
|
|
540
540
|
t != null ? E.blur(t) : _,
|
|
541
541
|
N({
|
|
542
|
-
icon:
|
|
542
|
+
icon: C(
|
|
543
543
|
s,
|
|
544
544
|
r,
|
|
545
545
|
c
|
|
@@ -554,21 +554,21 @@ const Te = (...e) => b.span(o.class(H("emphasis")), ...e), ce = (...e) => b.span
|
|
|
554
554
|
o.class("bc-checkbox-input__label"),
|
|
555
555
|
o.id(g),
|
|
556
556
|
o.for(u),
|
|
557
|
-
|
|
557
|
+
ue(n)
|
|
558
558
|
) : _
|
|
559
559
|
)
|
|
560
560
|
},
|
|
561
|
-
E.click(
|
|
561
|
+
E.click(w)
|
|
562
562
|
);
|
|
563
|
-
},
|
|
563
|
+
}, he = b.span(
|
|
564
564
|
o.class("bc-input-wrapper__required"),
|
|
565
565
|
" *"
|
|
566
566
|
);
|
|
567
|
-
function
|
|
567
|
+
function de(e) {
|
|
568
568
|
const s = ["bc-input-wrapper"];
|
|
569
569
|
return e !== "vertical" && s.push(`bc-input-wrapper--${e}`), s.join(" ");
|
|
570
570
|
}
|
|
571
|
-
function
|
|
571
|
+
function pe(e, s) {
|
|
572
572
|
const t = ["bc-input-wrapper__label-text"];
|
|
573
573
|
return e ? t.push("bc-input-wrapper__label-text--error") : s ? t.push("bc-input-wrapper__label-text--disabled") : t.push("bc-input-wrapper__label-text--default"), t.join(" ");
|
|
574
574
|
}
|
|
@@ -576,7 +576,7 @@ function K(e, s) {
|
|
|
576
576
|
if (e === "horizontal-fixed" && s != null)
|
|
577
577
|
return `--input-wrapper-label-width: ${s}`;
|
|
578
578
|
}
|
|
579
|
-
const
|
|
579
|
+
const Z = ({
|
|
580
580
|
fullWidth: e = !1,
|
|
581
581
|
required: s,
|
|
582
582
|
label: t,
|
|
@@ -589,29 +589,30 @@ const Y = ({
|
|
|
589
589
|
hasError: f,
|
|
590
590
|
disabled: u,
|
|
591
591
|
layout: g,
|
|
592
|
-
labelWidth:
|
|
592
|
+
labelWidth: w
|
|
593
593
|
}, ...v) => {
|
|
594
|
-
const h = f ?? r != null, d = u ?? !1, p = g ?? "vertical", T =
|
|
594
|
+
const h = f ?? r != null, d = u ?? !1, p = g ?? "vertical", T = Y("input-wrapper"), A = a ? `${T}-description` : void 0, $ = r != null ? `${T}-error` : void 0, L = C(p)((k) => k !== "vertical");
|
|
595
595
|
return b.div(
|
|
596
|
-
|
|
596
|
+
Q(L),
|
|
597
|
+
o.class(y.map(p, (k) => de(k))),
|
|
597
598
|
o.class(
|
|
598
|
-
|
|
599
|
+
y.map(
|
|
599
600
|
e,
|
|
600
|
-
(
|
|
601
|
+
(k) => k ? "bc-input-wrapper--full-width" : ""
|
|
601
602
|
)
|
|
602
603
|
),
|
|
603
604
|
O(
|
|
604
|
-
|
|
605
|
+
C(
|
|
605
606
|
p,
|
|
606
|
-
|
|
607
|
-
)((
|
|
607
|
+
w ?? void 0
|
|
608
|
+
)((k, V) => K(k, V) != null),
|
|
608
609
|
() => o.style(
|
|
609
|
-
|
|
610
|
-
|
|
610
|
+
y.map(
|
|
611
|
+
C(
|
|
611
612
|
p,
|
|
612
|
-
|
|
613
|
-
)((
|
|
614
|
-
(
|
|
613
|
+
w ?? void 0
|
|
614
|
+
)((k, V) => K(k, V)),
|
|
615
|
+
(k) => k
|
|
615
616
|
)
|
|
616
617
|
)
|
|
617
618
|
),
|
|
@@ -624,26 +625,26 @@ const Y = ({
|
|
|
624
625
|
c != null ? o.for(c) : _,
|
|
625
626
|
b.span(
|
|
626
627
|
o.class(
|
|
627
|
-
|
|
628
|
+
C(
|
|
628
629
|
h,
|
|
629
630
|
d
|
|
630
631
|
)(
|
|
631
|
-
(
|
|
632
|
-
|
|
632
|
+
(k, V) => pe(
|
|
633
|
+
k ?? !1,
|
|
633
634
|
V ?? !1
|
|
634
635
|
)
|
|
635
636
|
)
|
|
636
637
|
),
|
|
637
638
|
t
|
|
638
639
|
),
|
|
639
|
-
t != null && s ?
|
|
640
|
+
t != null && s ? he : _
|
|
640
641
|
),
|
|
641
642
|
// Show description under label when horizontal
|
|
642
643
|
O(
|
|
643
|
-
|
|
644
|
+
C(
|
|
644
645
|
L,
|
|
645
646
|
a
|
|
646
|
-
)((
|
|
647
|
+
)((k, V) => k && V != null),
|
|
647
648
|
() => b.div(
|
|
648
649
|
o.class(
|
|
649
650
|
"bc-input-wrapper__description bc-input-wrapper__description--under-label"
|
|
@@ -653,7 +654,7 @@ const Y = ({
|
|
|
653
654
|
)
|
|
654
655
|
)
|
|
655
656
|
),
|
|
656
|
-
n != null ?
|
|
657
|
+
n != null ? oe(n) : _,
|
|
657
658
|
i
|
|
658
659
|
) : _,
|
|
659
660
|
b.div(
|
|
@@ -668,7 +669,7 @@ const Y = ({
|
|
|
668
669
|
),
|
|
669
670
|
// Show description at bottom only when not horizontal
|
|
670
671
|
O(
|
|
671
|
-
|
|
672
|
+
C(L, a)((k, V) => !k && V != null),
|
|
672
673
|
() => b.div(
|
|
673
674
|
o.class("bc-input-wrapper__description"),
|
|
674
675
|
o.id(A),
|
|
@@ -680,7 +681,7 @@ const Y = ({
|
|
|
680
681
|
() => b.div(
|
|
681
682
|
o.class("bc-input-wrapper__error"),
|
|
682
683
|
o.id($),
|
|
683
|
-
|
|
684
|
+
B.live("polite"),
|
|
684
685
|
// Announce errors to screen readers
|
|
685
686
|
o.role("alert"),
|
|
686
687
|
// Mark as alert for immediate attention
|
|
@@ -690,10 +691,10 @@ const Y = ({
|
|
|
690
691
|
...v
|
|
691
692
|
);
|
|
692
693
|
};
|
|
693
|
-
function
|
|
694
|
+
function Me(...e) {
|
|
694
695
|
return b.div(o.class("bc-stack"), ...e);
|
|
695
696
|
}
|
|
696
|
-
const
|
|
697
|
+
const $e = (e) => {
|
|
697
698
|
const s = {
|
|
698
699
|
name: "email",
|
|
699
700
|
autocomplete: "email",
|
|
@@ -715,8 +716,8 @@ const Me = (e) => {
|
|
|
715
716
|
(f) => R({
|
|
716
717
|
...e,
|
|
717
718
|
before: c,
|
|
718
|
-
input:
|
|
719
|
-
|
|
719
|
+
input: ne.email(
|
|
720
|
+
X(s),
|
|
720
721
|
o.placeholder(J(r, f.$.emailPlaceholderText)),
|
|
721
722
|
o.value(t),
|
|
722
723
|
o.class("bc-input"),
|
|
@@ -726,7 +727,7 @@ const Me = (e) => {
|
|
|
726
727
|
)
|
|
727
728
|
})
|
|
728
729
|
);
|
|
729
|
-
},
|
|
730
|
+
}, xe = (e) => {
|
|
730
731
|
const {
|
|
731
732
|
value: s,
|
|
732
733
|
onBlur: t,
|
|
@@ -739,23 +740,23 @@ const Me = (e) => {
|
|
|
739
740
|
autocomplete: f,
|
|
740
741
|
placeholder: u,
|
|
741
742
|
...g
|
|
742
|
-
} = e,
|
|
743
|
+
} = e, w = {
|
|
743
744
|
name: "password",
|
|
744
745
|
disabled: c,
|
|
745
746
|
...g
|
|
746
|
-
}, v = I(!0), h =
|
|
747
|
+
}, v = I(!0), h = C(
|
|
747
748
|
v,
|
|
748
749
|
f
|
|
749
750
|
)((d, p) => d ? p ?? "current-password" : "off");
|
|
750
751
|
return q(z, (d) => {
|
|
751
|
-
const p =
|
|
752
|
+
const p = C(
|
|
752
753
|
d.$.passwordPlaceholderText,
|
|
753
754
|
v,
|
|
754
755
|
u
|
|
755
756
|
)((A, $, L) => $ ? "•••••••••••••••" : L ?? A), T = b.button(
|
|
756
757
|
o.type("button"),
|
|
757
758
|
o.class("bc-input-container__password-toggle"),
|
|
758
|
-
|
|
759
|
+
B.label(d.$.togglePasswordVisibility),
|
|
759
760
|
E.click(() => v.update((A) => !A)),
|
|
760
761
|
O(
|
|
761
762
|
v,
|
|
@@ -768,15 +769,15 @@ const Me = (e) => {
|
|
|
768
769
|
disabled: c,
|
|
769
770
|
hasError: r,
|
|
770
771
|
input: b.input(
|
|
771
|
-
|
|
772
|
-
...
|
|
772
|
+
X({
|
|
773
|
+
...w,
|
|
773
774
|
autocomplete: h,
|
|
774
775
|
placeholder: p
|
|
775
776
|
}),
|
|
776
777
|
O(
|
|
777
778
|
v,
|
|
778
|
-
() =>
|
|
779
|
-
() =>
|
|
779
|
+
() => F(o.type("password")),
|
|
780
|
+
() => F(o.type("text"))
|
|
780
781
|
),
|
|
781
782
|
o.class("bc-input"),
|
|
782
783
|
o.value(s),
|
|
@@ -784,18 +785,18 @@ const Me = (e) => {
|
|
|
784
785
|
i != null ? E.change(x(i)) : _,
|
|
785
786
|
n != null ? E.input(x(n)) : _
|
|
786
787
|
),
|
|
787
|
-
after: l != null ?
|
|
788
|
+
after: l != null ? F(T, l) : T
|
|
788
789
|
});
|
|
789
790
|
});
|
|
790
|
-
},
|
|
791
|
+
}, fe = (
|
|
791
792
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
792
793
|
(e, s) => () => {
|
|
793
794
|
e.markTouched(), s?.();
|
|
794
795
|
}
|
|
795
|
-
),
|
|
796
|
+
), be = (e, s) => (t) => {
|
|
796
797
|
e.change(t), s?.(t);
|
|
797
798
|
};
|
|
798
|
-
function
|
|
799
|
+
function ee(e, s) {
|
|
799
800
|
const { controller: t, onBlur: i, onChange: n, ...a } = s;
|
|
800
801
|
return e({
|
|
801
802
|
id: t.name,
|
|
@@ -803,15 +804,15 @@ function Z(e, s) {
|
|
|
803
804
|
value: t.signal,
|
|
804
805
|
hasError: t.errorVisible,
|
|
805
806
|
...a,
|
|
806
|
-
onChange:
|
|
807
|
-
onBlur:
|
|
807
|
+
onChange: be(t, n),
|
|
808
|
+
onBlur: fe(t, i)
|
|
808
809
|
});
|
|
809
810
|
}
|
|
810
|
-
function
|
|
811
|
-
return
|
|
811
|
+
function Fe(e, s, ...t) {
|
|
812
|
+
return Z(
|
|
812
813
|
{
|
|
813
814
|
...s,
|
|
814
|
-
content:
|
|
815
|
+
content: ee(
|
|
815
816
|
e,
|
|
816
817
|
s
|
|
817
818
|
)
|
|
@@ -819,37 +820,37 @@ function xe(e, s, ...t) {
|
|
|
819
820
|
...t
|
|
820
821
|
);
|
|
821
822
|
}
|
|
822
|
-
function
|
|
823
|
+
function me(e, s) {
|
|
823
824
|
const { toInput: t, fromInput: i, controller: n, ...a } = s, l = n.transform(t, i);
|
|
824
|
-
return
|
|
825
|
+
return ee(e, {
|
|
825
826
|
...a,
|
|
826
827
|
controller: l
|
|
827
828
|
});
|
|
828
829
|
}
|
|
829
|
-
function
|
|
830
|
-
return
|
|
830
|
+
function Pe(e, s, ...t) {
|
|
831
|
+
return Z(
|
|
831
832
|
{
|
|
832
833
|
...s,
|
|
833
|
-
content:
|
|
834
|
+
content: me(e, s)
|
|
834
835
|
},
|
|
835
836
|
...t
|
|
836
837
|
);
|
|
837
838
|
}
|
|
838
|
-
function
|
|
839
|
+
function Be(e) {
|
|
839
840
|
return e.split(".").map((t) => {
|
|
840
841
|
const i = t.match(/^\[(\d+)\]$/);
|
|
841
842
|
return i ? Number(i[1]) : t;
|
|
842
843
|
});
|
|
843
844
|
}
|
|
844
|
-
function
|
|
845
|
+
function ge(e) {
|
|
845
846
|
return typeof e == "number" ? `[${e}]` : `.${e}`;
|
|
846
847
|
}
|
|
847
|
-
function
|
|
848
|
+
function ve(e) {
|
|
848
849
|
if (e.length === 0) return "";
|
|
849
850
|
const [s, ...t] = e;
|
|
850
851
|
return [
|
|
851
852
|
typeof s == "number" ? `[${s}]` : s,
|
|
852
|
-
...t.map(
|
|
853
|
+
...t.map(ge)
|
|
853
854
|
].join("");
|
|
854
855
|
}
|
|
855
856
|
function j(e) {
|
|
@@ -882,25 +883,25 @@ class M {
|
|
|
882
883
|
disabled;
|
|
883
884
|
#n = [];
|
|
884
885
|
disabledOrHasErrors;
|
|
885
|
-
constructor(s, t, i, n, a, l =
|
|
886
|
+
constructor(s, t, i, n, a, l = P) {
|
|
886
887
|
this.path = s, this.change = t, this.signal = i, this.status = n, this.#t = l, this.#s.set(i.value), this.error = n.map(
|
|
887
888
|
(r) => r?.type === "invalid" ? r.error?.message : void 0
|
|
888
|
-
), this.hasError = this.error.map((r) => r != null), this.touched = this.#e.touched, a.validationMode ? this.errorVisible =
|
|
889
|
+
), this.hasError = this.error.map((r) => r != null), this.touched = this.#e.touched, a.validationMode ? this.errorVisible = C(
|
|
889
890
|
this.hasError,
|
|
890
891
|
this.touched,
|
|
891
892
|
a.validationMode
|
|
892
|
-
)((r, c, f) => f === "continuous" ? !!r : !!r && !!c) : this.errorVisible =
|
|
893
|
+
)((r, c, f) => f === "continuous" ? !!r : !!r && !!c) : this.errorVisible = C(
|
|
893
894
|
this.hasError,
|
|
894
895
|
this.touched
|
|
895
|
-
)((r, c) => !!r && !!c), this.dirty =
|
|
896
|
+
)((r, c) => !!r && !!c), this.dirty = C(
|
|
896
897
|
this.signal,
|
|
897
898
|
this.#s
|
|
898
899
|
)((r, c) => !this.#t(r, c)), this.dependencyErrors = n.map(
|
|
899
900
|
(r) => r?.type === "invalid" ? r.error?.dependencies : void 0
|
|
900
|
-
), this.parent = a, this.disabled =
|
|
901
|
+
), this.parent = a, this.disabled = C(
|
|
901
902
|
this.#e.disabled,
|
|
902
903
|
a.disabled
|
|
903
|
-
)((r, c) => r || c), this.disabledOrHasErrors =
|
|
904
|
+
)((r, c) => r || c), this.disabledOrHasErrors = C(
|
|
904
905
|
this.disabled,
|
|
905
906
|
this.hasError
|
|
906
907
|
)((r, c) => r || c), this.onDispose(() => {
|
|
@@ -908,7 +909,7 @@ class M {
|
|
|
908
909
|
});
|
|
909
910
|
}
|
|
910
911
|
get name() {
|
|
911
|
-
return
|
|
912
|
+
return ve(this.path);
|
|
912
913
|
}
|
|
913
914
|
onDispose = (s) => {
|
|
914
915
|
this.#n.push(s);
|
|
@@ -939,7 +940,7 @@ class M {
|
|
|
939
940
|
reset = () => {
|
|
940
941
|
this.change(this.#s.value);
|
|
941
942
|
};
|
|
942
|
-
array = (s =
|
|
943
|
+
array = (s = P) => new we(
|
|
943
944
|
this.path,
|
|
944
945
|
this.change,
|
|
945
946
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -948,7 +949,7 @@ class M {
|
|
|
948
949
|
this.parent,
|
|
949
950
|
s
|
|
950
951
|
);
|
|
951
|
-
object = (s =
|
|
952
|
+
object = (s = P) => new ye(
|
|
952
953
|
this.path,
|
|
953
954
|
this.change,
|
|
954
955
|
this.signal,
|
|
@@ -956,7 +957,7 @@ class M {
|
|
|
956
957
|
this.parent,
|
|
957
958
|
s
|
|
958
959
|
);
|
|
959
|
-
transform = (s, t, i = [], n =
|
|
960
|
+
transform = (s, t, i = [], n = P) => new M(
|
|
960
961
|
[...this.path, ...i],
|
|
961
962
|
(a) => this.change(t(a)),
|
|
962
963
|
this.signal.map(s, n),
|
|
@@ -964,7 +965,7 @@ class M {
|
|
|
964
965
|
this.parent,
|
|
965
966
|
n
|
|
966
967
|
);
|
|
967
|
-
asyncTransform = (s, t, i, n = [], a =
|
|
968
|
+
asyncTransform = (s, t, i, n = [], a = P) => new M(
|
|
968
969
|
[...this.path, ...n],
|
|
969
970
|
(l) => {
|
|
970
971
|
t(l).then((r) => this.change(r));
|
|
@@ -975,7 +976,7 @@ class M {
|
|
|
975
976
|
a
|
|
976
977
|
);
|
|
977
978
|
}
|
|
978
|
-
class
|
|
979
|
+
class ye extends M {
|
|
979
980
|
#e = /* @__PURE__ */ new Map();
|
|
980
981
|
#t = /* @__PURE__ */ new Map();
|
|
981
982
|
#s = /* @__PURE__ */ new Map();
|
|
@@ -1075,7 +1076,7 @@ class ve extends M {
|
|
|
1075
1076
|
this.#l.set(this.dirty.value || s);
|
|
1076
1077
|
};
|
|
1077
1078
|
}
|
|
1078
|
-
class
|
|
1079
|
+
class we extends M {
|
|
1079
1080
|
#e = new Array();
|
|
1080
1081
|
length;
|
|
1081
1082
|
#t = /* @__PURE__ */ new Map();
|
|
@@ -1102,9 +1103,9 @@ class ye extends M {
|
|
|
1102
1103
|
super(s, t, r, n, a, l);
|
|
1103
1104
|
const c = r.on((u) => {
|
|
1104
1105
|
const g = this.#e.length - u.length;
|
|
1105
|
-
g > 0 && (this.#e.splice(u.length, g).forEach((
|
|
1106
|
+
g > 0 && (this.#e.splice(u.length, g).forEach((w, v) => {
|
|
1106
1107
|
const h = u.length + v;
|
|
1107
|
-
|
|
1108
|
+
w.dispose(), this.#s.get(h)?.(), this.#s.delete(h), this.#t.delete(h), this.#i.get(h)?.(), this.#i.delete(h), this.#a.delete(h);
|
|
1108
1109
|
}), this.#c(), this.#r());
|
|
1109
1110
|
});
|
|
1110
1111
|
this.length = r.map((u) => u.length), this.#o = this.touched.on(() => {
|
|
@@ -1195,7 +1196,7 @@ class ye extends M {
|
|
|
1195
1196
|
this.#l.set(this.dirty.value || s);
|
|
1196
1197
|
};
|
|
1197
1198
|
}
|
|
1198
|
-
function
|
|
1199
|
+
function ke(e) {
|
|
1199
1200
|
function s(t) {
|
|
1200
1201
|
return typeof t == "number" ? t : t.toString();
|
|
1201
1202
|
}
|
|
@@ -1203,9 +1204,9 @@ function we(e) {
|
|
|
1203
1204
|
(t) => typeof t == "object" && t.key != null ? s(t.key) : s(t)
|
|
1204
1205
|
);
|
|
1205
1206
|
}
|
|
1206
|
-
function
|
|
1207
|
+
function Se(e) {
|
|
1207
1208
|
const s = e.filter((n) => n.path == null || n.path.length === 0).map((n) => n.message), t = e.filter((n) => n.path != null && n.path.length > 0).reduce((n, a) => {
|
|
1208
|
-
const l =
|
|
1209
|
+
const l = ke(a.path), r = l.pop();
|
|
1209
1210
|
let c = n;
|
|
1210
1211
|
for (const f of l)
|
|
1211
1212
|
c.dependencies == null && (c.dependencies = {}), c.dependencies[f] == null && (c.dependencies[f] = {}), c = c.dependencies[f];
|
|
@@ -1217,7 +1218,7 @@ function ke(e) {
|
|
|
1217
1218
|
message: i != "" ? i : void 0
|
|
1218
1219
|
};
|
|
1219
1220
|
}
|
|
1220
|
-
function
|
|
1221
|
+
function Ce({
|
|
1221
1222
|
initialValue: e,
|
|
1222
1223
|
onChange: s,
|
|
1223
1224
|
validate: t,
|
|
@@ -1225,11 +1226,11 @@ function Se({
|
|
|
1225
1226
|
validationMode: n,
|
|
1226
1227
|
validateDebounceMs: a
|
|
1227
1228
|
}) {
|
|
1228
|
-
const l =
|
|
1229
|
+
const l = y.deriveProp(e), r = I(D.valid), c = I(!1), f = I(n ?? "touchedOrSubmit"), u = (d) => {
|
|
1229
1230
|
r.set(d);
|
|
1230
1231
|
};
|
|
1231
1232
|
let g;
|
|
1232
|
-
const
|
|
1233
|
+
const w = async (d) => {
|
|
1233
1234
|
if (t != null) {
|
|
1234
1235
|
const p = await t(d);
|
|
1235
1236
|
u(p);
|
|
@@ -1242,8 +1243,8 @@ function Se({
|
|
|
1242
1243
|
return;
|
|
1243
1244
|
const T = a ?? 0;
|
|
1244
1245
|
T > 0 ? (g && clearTimeout(g), g = setTimeout(() => {
|
|
1245
|
-
|
|
1246
|
-
}, T)) : await
|
|
1246
|
+
w(d);
|
|
1247
|
+
}, T)) : await w(d);
|
|
1247
1248
|
}
|
|
1248
1249
|
}, h = new M(
|
|
1249
1250
|
[],
|
|
@@ -1254,39 +1255,39 @@ function Se({
|
|
|
1254
1255
|
disabled: c,
|
|
1255
1256
|
validationMode: f
|
|
1256
1257
|
},
|
|
1257
|
-
i ??
|
|
1258
|
+
i ?? P
|
|
1258
1259
|
);
|
|
1259
1260
|
return h.onDispose(() => {
|
|
1260
1261
|
c.dispose(), l.dispose(), r.dispose(), f.dispose(), g && clearTimeout(g);
|
|
1261
1262
|
}), { controller: h, setStatus: u };
|
|
1262
1263
|
}
|
|
1263
|
-
function
|
|
1264
|
-
return
|
|
1264
|
+
function se(e) {
|
|
1265
|
+
return F(o.disabled(e.disabled), o.name(e.name));
|
|
1265
1266
|
}
|
|
1266
|
-
function
|
|
1267
|
+
function Ne(e, {
|
|
1267
1268
|
triggerOn: s = "change"
|
|
1268
1269
|
} = {}) {
|
|
1269
|
-
return
|
|
1270
|
-
|
|
1270
|
+
return F(
|
|
1271
|
+
se(e),
|
|
1271
1272
|
o.value(e.signal),
|
|
1272
1273
|
(s === "input" ? E.input : E.change)(x(e.change))
|
|
1273
1274
|
);
|
|
1274
1275
|
}
|
|
1275
|
-
function
|
|
1276
|
+
function Le(e, {
|
|
1276
1277
|
triggerOn: s = "change"
|
|
1277
1278
|
} = {}) {
|
|
1278
|
-
return
|
|
1279
|
-
|
|
1279
|
+
return F(
|
|
1280
|
+
se(e),
|
|
1280
1281
|
o.valueAsNumber(e.signal),
|
|
1281
1282
|
(s === "input" ? E.input : E.change)(
|
|
1282
|
-
|
|
1283
|
+
ie(e.change)
|
|
1283
1284
|
)
|
|
1284
1285
|
);
|
|
1285
1286
|
}
|
|
1286
1287
|
function G(e) {
|
|
1287
|
-
return e.issues != null ? D.invalid(
|
|
1288
|
+
return e.issues != null ? D.invalid(Se(e.issues)) : D.valid;
|
|
1288
1289
|
}
|
|
1289
|
-
async function
|
|
1290
|
+
async function je({
|
|
1290
1291
|
task: e,
|
|
1291
1292
|
errorMessage: s,
|
|
1292
1293
|
errorPath: t = ["root"],
|
|
@@ -1300,11 +1301,11 @@ async function Le({
|
|
|
1300
1301
|
return t.length === 1 && t[0] === "root" ? D.invalid({
|
|
1301
1302
|
message: a
|
|
1302
1303
|
}) : D.invalid({
|
|
1303
|
-
dependencies:
|
|
1304
|
+
dependencies: te(t, a)
|
|
1304
1305
|
});
|
|
1305
1306
|
}
|
|
1306
1307
|
}
|
|
1307
|
-
function
|
|
1308
|
+
function te(e, s) {
|
|
1308
1309
|
if (e.length === 1)
|
|
1309
1310
|
return {
|
|
1310
1311
|
[e[0]]: { message: s }
|
|
@@ -1312,18 +1313,18 @@ function se(e, s) {
|
|
|
1312
1313
|
const [t, ...i] = e;
|
|
1313
1314
|
return {
|
|
1314
1315
|
[t]: {
|
|
1315
|
-
dependencies:
|
|
1316
|
+
dependencies: te(i, s)
|
|
1316
1317
|
}
|
|
1317
1318
|
};
|
|
1318
1319
|
}
|
|
1319
|
-
function
|
|
1320
|
+
function qe({
|
|
1320
1321
|
initialValue: e = {},
|
|
1321
1322
|
schema: s,
|
|
1322
1323
|
onSubmit: t = async () => D.valid,
|
|
1323
1324
|
validationMode: i,
|
|
1324
1325
|
validateDebounceMs: n
|
|
1325
1326
|
}) {
|
|
1326
|
-
const { controller: a, setStatus: l } =
|
|
1327
|
+
const { controller: a, setStatus: l } = Ce({
|
|
1327
1328
|
initialValue: e,
|
|
1328
1329
|
validationMode: i ?? "touchedOrSubmit",
|
|
1329
1330
|
validateDebounceMs: n,
|
|
@@ -1336,12 +1337,12 @@ function je({
|
|
|
1336
1337
|
setStatus: l,
|
|
1337
1338
|
submit: async (u) => {
|
|
1338
1339
|
if (r.set(!0), u?.preventDefault(), c.markAllTouched(), (i ?? "touchedOrSubmit") === "onSubmit") {
|
|
1339
|
-
const
|
|
1340
|
+
const w = c.signal.value, v = s?.["~standard"].validate;
|
|
1340
1341
|
if (v == null) {
|
|
1341
1342
|
r.set(!1);
|
|
1342
1343
|
return;
|
|
1343
1344
|
}
|
|
1344
|
-
const h = G(await v(
|
|
1345
|
+
const h = G(await v(w));
|
|
1345
1346
|
if (l(h), h.type === "invalid") {
|
|
1346
1347
|
r.set(!1);
|
|
1347
1348
|
return;
|
|
@@ -1353,7 +1354,7 @@ function je({
|
|
|
1353
1354
|
submitting: r
|
|
1354
1355
|
};
|
|
1355
1356
|
}
|
|
1356
|
-
function
|
|
1357
|
+
function _e(e) {
|
|
1357
1358
|
switch (e) {
|
|
1358
1359
|
case "success":
|
|
1359
1360
|
return "material-symbols:check-circle-outline";
|
|
@@ -1366,7 +1367,7 @@ function Ce(e) {
|
|
|
1366
1367
|
return "material-symbols:info-outline";
|
|
1367
1368
|
}
|
|
1368
1369
|
}
|
|
1369
|
-
function
|
|
1370
|
+
function De(e) {
|
|
1370
1371
|
switch (e) {
|
|
1371
1372
|
case "success":
|
|
1372
1373
|
return "success";
|
|
@@ -1379,7 +1380,7 @@ function _e(e) {
|
|
|
1379
1380
|
return "info";
|
|
1380
1381
|
}
|
|
1381
1382
|
}
|
|
1382
|
-
function
|
|
1383
|
+
function Ee(e, s, t, i) {
|
|
1383
1384
|
const n = [
|
|
1384
1385
|
"bc-notice",
|
|
1385
1386
|
`bc-notice--${e}`,
|
|
@@ -1387,7 +1388,7 @@ function De(e, s, t, i) {
|
|
|
1387
1388
|
];
|
|
1388
1389
|
return t && n.push("bc-notice--dismissible"), i && i.length > 0 && n.push(i), n.join(" ");
|
|
1389
1390
|
}
|
|
1390
|
-
function
|
|
1391
|
+
function ze({
|
|
1391
1392
|
variant: e = "info",
|
|
1392
1393
|
tone: s = "subtle",
|
|
1393
1394
|
role: t,
|
|
@@ -1397,10 +1398,10 @@ function qe({
|
|
|
1397
1398
|
onDismiss: l,
|
|
1398
1399
|
class: r
|
|
1399
1400
|
}, ...c) {
|
|
1400
|
-
const f =
|
|
1401
|
+
const f = y.map(
|
|
1401
1402
|
a,
|
|
1402
1403
|
(d) => !!d || l != null
|
|
1403
|
-
), u =
|
|
1404
|
+
), u = y.map(e, (d) => d ?? "info"), g = y.map(s, (d) => d ?? "subtle"), w = C(
|
|
1404
1405
|
t,
|
|
1405
1406
|
u
|
|
1406
1407
|
)(
|
|
@@ -1409,37 +1410,37 @@ function qe({
|
|
|
1409
1410
|
z,
|
|
1410
1411
|
(d) => b.div(
|
|
1411
1412
|
o.class(
|
|
1412
|
-
|
|
1413
|
+
C(
|
|
1413
1414
|
u,
|
|
1414
1415
|
g,
|
|
1415
1416
|
f,
|
|
1416
1417
|
r
|
|
1417
|
-
)((p, T, A, $) =>
|
|
1418
|
+
)((p, T, A, $) => Ee(p, T, A, $))
|
|
1418
1419
|
),
|
|
1419
1420
|
// Accessibility role mapping (always defined)
|
|
1420
|
-
o.role(
|
|
1421
|
-
|
|
1422
|
-
|
|
1421
|
+
o.role(y.map(w, (p) => p)),
|
|
1422
|
+
ae(
|
|
1423
|
+
y.map(n, (p) => p === !1),
|
|
1423
1424
|
() => b.div(
|
|
1424
1425
|
o.class("bc-notice__icon"),
|
|
1425
1426
|
N({
|
|
1426
|
-
icon:
|
|
1427
|
+
icon: C(
|
|
1427
1428
|
n,
|
|
1428
1429
|
u
|
|
1429
|
-
)((p, T) => p === void 0 ?
|
|
1430
|
+
)((p, T) => p === void 0 ? _e(T) : String(p)),
|
|
1430
1431
|
size: "md",
|
|
1431
|
-
color:
|
|
1432
|
+
color: y.map(u, De)
|
|
1432
1433
|
})
|
|
1433
1434
|
)
|
|
1434
1435
|
),
|
|
1435
1436
|
b.div(
|
|
1436
1437
|
o.class("bc-notice__body"),
|
|
1437
|
-
|
|
1438
|
+
re(i, (p) => b.div(o.class("bc-notice__title"), p)),
|
|
1438
1439
|
b.div(o.class("bc-notice__content"), ...c)
|
|
1439
1440
|
),
|
|
1440
1441
|
O(
|
|
1441
1442
|
f,
|
|
1442
|
-
() =>
|
|
1443
|
+
() => ce({
|
|
1443
1444
|
size: "xs",
|
|
1444
1445
|
label: d.$.closeModal,
|
|
1445
1446
|
onClick: () => {
|
|
@@ -1449,44 +1450,53 @@ function qe({
|
|
|
1449
1450
|
)
|
|
1450
1451
|
)
|
|
1451
1452
|
);
|
|
1452
|
-
return
|
|
1453
|
+
return F(
|
|
1454
|
+
Q(
|
|
1455
|
+
() => {
|
|
1456
|
+
y.dispose(f), y.dispose(u), y.dispose(g);
|
|
1457
|
+
},
|
|
1458
|
+
w,
|
|
1459
|
+
v
|
|
1460
|
+
),
|
|
1461
|
+
O(v, () => h)
|
|
1462
|
+
);
|
|
1453
1463
|
}
|
|
1454
1464
|
export {
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1465
|
+
we as A,
|
|
1466
|
+
ee as B,
|
|
1467
|
+
ce as C,
|
|
1468
|
+
Ve as D,
|
|
1469
|
+
$e as E,
|
|
1470
|
+
Z as I,
|
|
1471
|
+
oe as L,
|
|
1472
|
+
Pe as M,
|
|
1473
|
+
ze as N,
|
|
1474
|
+
P as O,
|
|
1475
|
+
xe as P,
|
|
1476
|
+
he as R,
|
|
1477
|
+
Me as S,
|
|
1468
1478
|
D as a,
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1479
|
+
Oe as b,
|
|
1480
|
+
Fe as c,
|
|
1481
|
+
be as d,
|
|
1472
1482
|
M as e,
|
|
1473
1483
|
j as f,
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1484
|
+
me as g,
|
|
1485
|
+
ve as h,
|
|
1486
|
+
ye as i,
|
|
1487
|
+
ke as j,
|
|
1488
|
+
Se as k,
|
|
1489
|
+
Ce as l,
|
|
1490
|
+
fe as m,
|
|
1491
|
+
se as n,
|
|
1492
|
+
Ne as o,
|
|
1493
|
+
Be as p,
|
|
1494
|
+
Le as q,
|
|
1485
1495
|
G as r,
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1496
|
+
Y as s,
|
|
1497
|
+
je as t,
|
|
1498
|
+
qe as u,
|
|
1499
|
+
Ae as v,
|
|
1500
|
+
ge as w,
|
|
1501
|
+
ue as x
|
|
1492
1502
|
};
|