@tempots/beatui 0.38.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-DxwU2aOm.cjs → 2019-nWH_nAwT.cjs} +1 -1
- package/dist/{2019-CGWicU9n.js → 2019-sCKLAY8c.js} +2 -2
- package/dist/{2020-BRNvbMGL.js → 2020-B4xCW_nu.js} +2 -2
- package/dist/{2020-DHep9dU6.cjs → 2020-D7RWX09D.cjs} +1 -1
- package/dist/{ar-CqAHPRKu.cjs → ar-D_4BfIJO.cjs} +1 -1
- package/dist/{ar-avevuYiW.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 +463 -59
- package/dist/beatui.tailwind.css +463 -59
- package/dist/{de--4OtRESW.cjs → de-C0PZz9sE.cjs} +1 -1
- package/dist/{de-Cz7ah611.js → de-CeLwmVZz.js} +1 -1
- package/dist/{es-CE1wRgxl.cjs → es-C8qT1ins.cjs} +1 -1
- package/dist/{es-CiNQQzF1.js → es-DxOgARww.js} +1 -1
- package/dist/{fa-Gkt0b9XN.js → fa-B9pEff8A.js} +1 -1
- package/dist/{fa-DjuJZNLK.cjs → fa-BFV9MxMX.cjs} +1 -1
- package/dist/{fr-DotyzMGL.cjs → fr-BBx5IJ7G.cjs} +1 -1
- package/dist/{fr-xM9p9Q6G.js → fr-Caeevx56.js} +1 -1
- package/dist/{he-BQ6ygVEQ.cjs → he-CMOvd4Dr.cjs} +1 -1
- package/dist/{he-CoO6PsiS.js → he-DeN-WW3u.js} +1 -1
- package/dist/{hi-DA3-4Cdo.js → hi-Dey2HxiD.js} +1 -1
- package/dist/{hi-BCfJ0mRh.cjs → hi-IOU_PzvH.cjs} +1 -1
- package/dist/{index-CesoPnvj.cjs → index-B-SyWyCc.cjs} +1 -1
- package/dist/{index-DJJ67-RV.js → index-B-pudlMv.js} +58 -58
- package/dist/{index-Dtqe3URb.cjs → index-B0ff5lT-.cjs} +4 -4
- package/dist/{index-i9pAnFtS.js → index-BTZqW3-b.js} +1245 -1232
- package/dist/{index-C5-BM51Y.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-CCu0qfNP.cjs → index-D8fg48Fv.cjs} +1 -1
- package/dist/{index-C_nSdynJ.js → index-DJqo6Guq.js} +1 -1
- package/dist/{index-CZQHL_pf.cjs → index-Dtka01mK.cjs} +12 -12
- package/dist/{index-C2rz3G1d.js → index-HqWBd-jW.js} +680 -677
- package/dist/{index-D41aREgo.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 +3349 -3064
- package/dist/{it-EdPuWBJR.js → it-DghnQdZa.js} +1 -1
- package/dist/{it-pv2Gm3jb.cjs → it-uQF0jkDT.cjs} +1 -1
- package/dist/{ja-CuRaPMgh.cjs → ja-BJD6uPbl.cjs} +1 -1
- package/dist/{ja-BSRCR430.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-Dm4oD1fh.js → ko-53o5WJ-v.js} +1 -1
- package/dist/{ko-C7YP1PL4.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-_2B8vIo0.js +658 -0
- package/dist/{nl-ClCD6lP-.cjs → nl-CJE0fC8g.cjs} +1 -1
- package/dist/{nl-B0l1kdfd.js → nl-DvUVT7xd.js} +1 -1
- package/dist/{notice-BuYqG6zM.js → notice-C4n5jXi6.js} +408 -391
- package/dist/notice-CncwkUTy.cjs +2 -0
- package/dist/{pl-DVKneBSY.js → pl-C3oYeTwf.js} +1 -1
- package/dist/{pl-fyCkqVrr.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-BHExG3lf.cjs → pt-BAqNKCuy.cjs} +1 -1
- package/dist/{pt-Bw0sTDOX.js → pt-BJGeScun.js} +1 -1
- package/dist/{ru-B26VQ4f9.js → ru-2irv1YXp.js} +1 -1
- package/dist/{ru-PuEOLDw1.cjs → ru-CAlgJm3K.cjs} +1 -1
- package/dist/tailwind/index.cjs.js +1 -1
- package/dist/tailwind/index.es.js +1 -1
- package/dist/tailwind/preset.cjs.js +1 -1
- package/dist/tailwind/preset.es.js +1 -1
- package/dist/tailwind/vite-plugin.cjs.js +1 -1
- package/dist/tailwind/vite-plugin.es.js +1 -1
- package/dist/{toolbar-kwkvH3nX.cjs → toolbar-B7HrL0vD.cjs} +1 -1
- package/dist/{toolbar-ClJbaKID.js → toolbar-CVDXVnje.js} +1 -1
- package/dist/{tr-DQMivdvy.js → tr-CkHLE5u7.js} +1 -1
- package/dist/{tr-CI97fTpD.cjs → tr-DMiXAhok.cjs} +1 -1
- package/dist/{translations-iam7PITs.js → translations-DEEflRUY.js} +96 -112
- package/dist/{translations-ZB5oDFId.cjs → translations-DRNj0YIi.cjs} +1 -1
- package/dist/translations-Dw1oO6Dh.cjs +1 -0
- package/dist/{translations-1yD6Rm5l.js → translations-Q5C5LyIi.js} +1 -1
- package/dist/types/components/beatui.d.ts +4 -1
- package/dist/types/components/button/button.d.ts +4 -3
- package/dist/types/components/form/input/input-wrapper.d.ts +2 -1
- package/dist/types/components/misc/index.d.ts +4 -0
- package/dist/types/components/misc/notification-provider.d.ts +47 -0
- package/dist/types/components/misc/notification.d.ts +17 -0
- package/dist/types/components/misc/opengraph.d.ts +111 -0
- package/dist/types/components/navigation/link/button-link.d.ts +2 -0
- package/dist/types/components/overlay/lightbox.d.ts +1 -1
- package/dist/types/components/overlay/modal.d.ts +2 -2
- package/dist/types/components/overlay/ribbon.d.ts +2 -2
- package/dist/types/utils/use-animated-toggle.d.ts +43 -9
- package/dist/{ur-B3CiO8KH.cjs → ur-BjiNs3SL.cjs} +1 -1
- package/dist/{ur-o3rog5MJ.js → ur-bxBR_9Z-.js} +1 -1
- package/dist/{utils-B_QSuN66.js → utils-BCbc19N0.js} +202 -193
- package/dist/utils-BJZipnfW.cjs +1 -0
- package/dist/{vi-FibsLfdk.cjs → vi-CByOZvV2.cjs} +1 -1
- package/dist/{vi-C7cb2K_B.js → vi-CKknZqol.js} +1 -1
- package/dist/{zh-BtSj_Euh.cjs → zh-C0QOebEA.cjs} +1 -1
- package/dist/{zh-NGrfqAHM.js → zh-CmUgcP9o.js} +1 -1
- package/package.json +4 -3
- package/dist/modal--1g8Y5LH.js +0 -601
- package/dist/modal-mA_AFUCI.cjs +0 -1
- package/dist/notice-DCuZEAQO.cjs +0 -2
- package/dist/translations-DQxg-W9w.cjs +0 -1
- package/dist/utils-BD6NGV1v.cjs +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Use as
|
|
2
|
-
import { a as
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
const s =
|
|
6
|
-
return
|
|
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
|
+
const W = /* @__PURE__ */ new Map();
|
|
4
|
+
function Y(e) {
|
|
5
|
+
const s = W.get(e) ?? 0;
|
|
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 k = {
|
|
|
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 k = {
|
|
|
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 k = {
|
|
|
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 k = {
|
|
|
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 k = {
|
|
|
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 k = {
|
|
|
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 k = {
|
|
|
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 k = {
|
|
|
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 k = {
|
|
|
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 k = {
|
|
|
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 k = {
|
|
|
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
|
/**
|
|
@@ -420,14 +420,14 @@ const k = {
|
|
|
420
420
|
e,
|
|
421
421
|
(n) => m.match(
|
|
422
422
|
s,
|
|
423
|
-
(
|
|
424
|
-
(
|
|
423
|
+
(a) => m.success(t(n, a)),
|
|
424
|
+
(a) => m.failure(a)
|
|
425
425
|
),
|
|
426
426
|
(n) => m.match(
|
|
427
427
|
s,
|
|
428
428
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
429
|
-
(
|
|
430
|
-
(
|
|
429
|
+
(a) => m.failure(n),
|
|
430
|
+
(a) => m.failure(i(n, a))
|
|
431
431
|
)
|
|
432
432
|
),
|
|
433
433
|
/**
|
|
@@ -456,55 +456,55 @@ const k = {
|
|
|
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,
|
|
463
463
|
roundedness: i = "full",
|
|
464
464
|
color: n = "base",
|
|
465
|
-
onClick:
|
|
466
|
-
label:
|
|
467
|
-
}, ...
|
|
468
|
-
return
|
|
469
|
-
const
|
|
470
|
-
return
|
|
465
|
+
onClick: a,
|
|
466
|
+
label: l
|
|
467
|
+
}, ...r) {
|
|
468
|
+
return q(z, (c) => {
|
|
469
|
+
const f = J(l, c.$.closeModal);
|
|
470
|
+
return le(
|
|
471
471
|
{
|
|
472
472
|
variant: "text",
|
|
473
473
|
size: e,
|
|
474
474
|
roundedness: i,
|
|
475
475
|
disabled: t,
|
|
476
476
|
color: n,
|
|
477
|
-
onClick:
|
|
477
|
+
onClick: a
|
|
478
478
|
},
|
|
479
|
-
o.title(
|
|
480
|
-
|
|
481
|
-
...
|
|
479
|
+
o.title(f),
|
|
480
|
+
B.label(f),
|
|
481
|
+
...r,
|
|
482
482
|
N({ icon: s, size: e ?? "sm" })
|
|
483
483
|
);
|
|
484
484
|
});
|
|
485
485
|
}
|
|
486
|
-
function
|
|
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,
|
|
493
493
|
onChange: i,
|
|
494
494
|
placeholder: n,
|
|
495
|
-
disabled:
|
|
496
|
-
id:
|
|
497
|
-
checkedIcon:
|
|
495
|
+
disabled: a,
|
|
496
|
+
id: l,
|
|
497
|
+
checkedIcon: r,
|
|
498
498
|
uncheckedIcon: c,
|
|
499
|
-
iconSize:
|
|
500
|
-
} = e, u =
|
|
501
|
-
if (
|
|
502
|
-
const h =
|
|
499
|
+
iconSize: f = "lg"
|
|
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
|
-
return
|
|
507
|
+
return R(
|
|
508
508
|
{
|
|
509
509
|
baseContainer: !0,
|
|
510
510
|
growInput: !1,
|
|
@@ -514,179 +514,187 @@ const Ie = (...e) => b.span(o.class(z("emphasis")), ...e), le = (...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
|
-
|
|
524
|
-
|
|
523
|
+
y.map(
|
|
524
|
+
a ?? !1,
|
|
525
525
|
(h) => h ? "bc-checkbox-input__checkbox--disabled" : ""
|
|
526
526
|
)
|
|
527
527
|
),
|
|
528
528
|
o.id(u),
|
|
529
529
|
o.role("checkbox"),
|
|
530
530
|
o.tabindex(
|
|
531
|
-
|
|
532
|
-
|
|
531
|
+
y.map(
|
|
532
|
+
a ?? !1,
|
|
533
533
|
(h) => h ? -1 : 0
|
|
534
534
|
)
|
|
535
535
|
),
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
n != null ?
|
|
539
|
-
|
|
540
|
-
t != null ?
|
|
536
|
+
B.checked(s),
|
|
537
|
+
B.disabled(a),
|
|
538
|
+
n != null ? B.labelledby(g) : _,
|
|
539
|
+
E.keydown(v),
|
|
540
|
+
t != null ? E.blur(t) : _,
|
|
541
541
|
N({
|
|
542
|
-
icon:
|
|
542
|
+
icon: C(
|
|
543
543
|
s,
|
|
544
|
-
|
|
544
|
+
r,
|
|
545
545
|
c
|
|
546
546
|
)(
|
|
547
|
-
(h, d,
|
|
547
|
+
(h, d, p) => h ? d ?? "akar-icons/check-box-fill" : p ?? "akar-icons/box"
|
|
548
548
|
),
|
|
549
549
|
accessibility: "decorative",
|
|
550
|
-
size:
|
|
550
|
+
size: f
|
|
551
551
|
})
|
|
552
552
|
),
|
|
553
553
|
n != null ? b.label(
|
|
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
|
-
|
|
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
|
}
|
|
575
|
-
function
|
|
575
|
+
function K(e, s) {
|
|
576
576
|
if (e === "horizontal-fixed" && s != null)
|
|
577
577
|
return `--input-wrapper-label-width: ${s}`;
|
|
578
578
|
}
|
|
579
|
-
const
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
579
|
+
const Z = ({
|
|
580
|
+
fullWidth: e = !1,
|
|
581
|
+
required: s,
|
|
582
|
+
label: t,
|
|
583
|
+
labelChildren: i,
|
|
584
|
+
context: n,
|
|
585
|
+
description: a,
|
|
586
|
+
content: l,
|
|
587
|
+
error: r,
|
|
588
|
+
labelFor: c,
|
|
589
|
+
hasError: f,
|
|
590
|
+
disabled: u,
|
|
591
|
+
layout: g,
|
|
592
|
+
labelWidth: w
|
|
593
|
+
}, ...v) => {
|
|
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");
|
|
594
595
|
return b.div(
|
|
595
|
-
|
|
596
|
+
Q(L),
|
|
597
|
+
o.class(y.map(p, (k) => de(k))),
|
|
598
|
+
o.class(
|
|
599
|
+
y.map(
|
|
600
|
+
e,
|
|
601
|
+
(k) => k ? "bc-input-wrapper--full-width" : ""
|
|
602
|
+
)
|
|
603
|
+
),
|
|
596
604
|
O(
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
)((
|
|
605
|
+
C(
|
|
606
|
+
p,
|
|
607
|
+
w ?? void 0
|
|
608
|
+
)((k, V) => K(k, V) != null),
|
|
601
609
|
() => o.style(
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
)((
|
|
607
|
-
(
|
|
610
|
+
y.map(
|
|
611
|
+
C(
|
|
612
|
+
p,
|
|
613
|
+
w ?? void 0
|
|
614
|
+
)((k, V) => K(k, V)),
|
|
615
|
+
(k) => k
|
|
608
616
|
)
|
|
609
617
|
)
|
|
610
618
|
),
|
|
611
|
-
|
|
619
|
+
t != null || n != null ? b.div(
|
|
612
620
|
o.class("bc-input-wrapper__header"),
|
|
613
621
|
b.div(
|
|
614
622
|
o.class("bc-input-wrapper__label-section"),
|
|
615
623
|
b.label(
|
|
616
624
|
o.class("bc-input-wrapper__label"),
|
|
617
|
-
|
|
625
|
+
c != null ? o.for(c) : _,
|
|
618
626
|
b.span(
|
|
619
627
|
o.class(
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
628
|
+
C(
|
|
629
|
+
h,
|
|
630
|
+
d
|
|
623
631
|
)(
|
|
624
|
-
(
|
|
625
|
-
|
|
632
|
+
(k, V) => pe(
|
|
633
|
+
k ?? !1,
|
|
626
634
|
V ?? !1
|
|
627
635
|
)
|
|
628
636
|
)
|
|
629
637
|
),
|
|
630
|
-
|
|
638
|
+
t
|
|
631
639
|
),
|
|
632
|
-
|
|
640
|
+
t != null && s ? he : _
|
|
633
641
|
),
|
|
634
642
|
// Show description under label when horizontal
|
|
635
643
|
O(
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
)((
|
|
644
|
+
C(
|
|
645
|
+
L,
|
|
646
|
+
a
|
|
647
|
+
)((k, V) => k && V != null),
|
|
640
648
|
() => b.div(
|
|
641
649
|
o.class(
|
|
642
650
|
"bc-input-wrapper__description bc-input-wrapper__description--under-label"
|
|
643
651
|
),
|
|
644
|
-
o.id(
|
|
645
|
-
|
|
652
|
+
o.id(A),
|
|
653
|
+
a
|
|
646
654
|
)
|
|
647
655
|
)
|
|
648
656
|
),
|
|
649
|
-
|
|
650
|
-
|
|
657
|
+
n != null ? oe(n) : _,
|
|
658
|
+
i
|
|
651
659
|
) : _,
|
|
652
660
|
b.div(
|
|
653
661
|
o.class("bc-input-wrapper__content"),
|
|
654
662
|
// Add data attributes to help inputs inherit accessibility information
|
|
655
|
-
[
|
|
656
|
-
[
|
|
663
|
+
[A, $].filter(Boolean).length > 0 ? U.describedby(
|
|
664
|
+
[A, $].filter(Boolean).join(" ")
|
|
657
665
|
) : _,
|
|
658
|
-
|
|
659
|
-
O(
|
|
660
|
-
|
|
666
|
+
s ? U.required("true") : _,
|
|
667
|
+
O(h, () => U.invalid("true")),
|
|
668
|
+
l
|
|
661
669
|
),
|
|
662
670
|
// Show description at bottom only when not horizontal
|
|
663
671
|
O(
|
|
664
|
-
|
|
672
|
+
C(L, a)((k, V) => !k && V != null),
|
|
665
673
|
() => b.div(
|
|
666
674
|
o.class("bc-input-wrapper__description"),
|
|
667
|
-
o.id(
|
|
668
|
-
|
|
675
|
+
o.id(A),
|
|
676
|
+
a
|
|
669
677
|
)
|
|
670
678
|
),
|
|
671
|
-
|
|
672
|
-
|
|
679
|
+
r != null ? O(
|
|
680
|
+
h,
|
|
673
681
|
() => b.div(
|
|
674
682
|
o.class("bc-input-wrapper__error"),
|
|
675
|
-
o.id(
|
|
676
|
-
|
|
683
|
+
o.id($),
|
|
684
|
+
B.live("polite"),
|
|
677
685
|
// Announce errors to screen readers
|
|
678
686
|
o.role("alert"),
|
|
679
687
|
// Mark as alert for immediate attention
|
|
680
|
-
|
|
688
|
+
r
|
|
681
689
|
)
|
|
682
690
|
) : null,
|
|
683
|
-
...
|
|
691
|
+
...v
|
|
684
692
|
);
|
|
685
693
|
};
|
|
686
|
-
function
|
|
694
|
+
function Me(...e) {
|
|
687
695
|
return b.div(o.class("bc-stack"), ...e);
|
|
688
696
|
}
|
|
689
|
-
const
|
|
697
|
+
const $e = (e) => {
|
|
690
698
|
const s = {
|
|
691
699
|
name: "email",
|
|
692
700
|
autocomplete: "email",
|
|
@@ -695,116 +703,116 @@ const Oe = (e) => {
|
|
|
695
703
|
value: t,
|
|
696
704
|
before: i,
|
|
697
705
|
onBlur: n,
|
|
698
|
-
onChange:
|
|
699
|
-
onInput:
|
|
700
|
-
placeholder:
|
|
706
|
+
onChange: a,
|
|
707
|
+
onInput: l,
|
|
708
|
+
placeholder: r
|
|
701
709
|
} = s, c = i ?? N({
|
|
702
710
|
icon: "line-md:email",
|
|
703
711
|
size: "sm",
|
|
704
712
|
color: "neutral"
|
|
705
713
|
});
|
|
706
|
-
return
|
|
707
|
-
|
|
708
|
-
(
|
|
714
|
+
return q(
|
|
715
|
+
z,
|
|
716
|
+
(f) => R({
|
|
709
717
|
...e,
|
|
710
718
|
before: c,
|
|
711
|
-
input:
|
|
712
|
-
|
|
713
|
-
o.placeholder(
|
|
719
|
+
input: ne.email(
|
|
720
|
+
X(s),
|
|
721
|
+
o.placeholder(J(r, f.$.emailPlaceholderText)),
|
|
714
722
|
o.value(t),
|
|
715
723
|
o.class("bc-input"),
|
|
716
|
-
n != null ?
|
|
717
|
-
|
|
718
|
-
|
|
724
|
+
n != null ? E.blur(x(n)) : _,
|
|
725
|
+
a != null ? E.change(x(a)) : _,
|
|
726
|
+
l != null ? E.input(x(l)) : _
|
|
719
727
|
)
|
|
720
728
|
})
|
|
721
729
|
);
|
|
722
|
-
},
|
|
730
|
+
}, xe = (e) => {
|
|
723
731
|
const {
|
|
724
732
|
value: s,
|
|
725
733
|
onBlur: t,
|
|
726
734
|
onChange: i,
|
|
727
735
|
onInput: n,
|
|
728
|
-
before:
|
|
729
|
-
after:
|
|
730
|
-
hasError:
|
|
736
|
+
before: a,
|
|
737
|
+
after: l,
|
|
738
|
+
hasError: r,
|
|
731
739
|
disabled: c,
|
|
732
|
-
autocomplete:
|
|
740
|
+
autocomplete: f,
|
|
733
741
|
placeholder: u,
|
|
734
742
|
...g
|
|
735
|
-
} = e,
|
|
743
|
+
} = e, w = {
|
|
736
744
|
name: "password",
|
|
737
745
|
disabled: c,
|
|
738
746
|
...g
|
|
739
|
-
}, v =
|
|
747
|
+
}, v = I(!0), h = C(
|
|
740
748
|
v,
|
|
741
|
-
|
|
742
|
-
)((d,
|
|
743
|
-
return
|
|
744
|
-
const
|
|
749
|
+
f
|
|
750
|
+
)((d, p) => d ? p ?? "current-password" : "off");
|
|
751
|
+
return q(z, (d) => {
|
|
752
|
+
const p = C(
|
|
745
753
|
d.$.passwordPlaceholderText,
|
|
746
754
|
v,
|
|
747
755
|
u
|
|
748
|
-
)((A,
|
|
756
|
+
)((A, $, L) => $ ? "•••••••••••••••" : L ?? A), T = b.button(
|
|
749
757
|
o.type("button"),
|
|
750
758
|
o.class("bc-input-container__password-toggle"),
|
|
751
|
-
|
|
752
|
-
|
|
759
|
+
B.label(d.$.togglePasswordVisibility),
|
|
760
|
+
E.click(() => v.update((A) => !A)),
|
|
753
761
|
O(
|
|
754
762
|
v,
|
|
755
763
|
() => N({ icon: "line-md:watch" }),
|
|
756
764
|
() => N({ icon: "line-md:watch-off" })
|
|
757
765
|
)
|
|
758
766
|
);
|
|
759
|
-
return
|
|
760
|
-
before:
|
|
767
|
+
return R({
|
|
768
|
+
before: a,
|
|
761
769
|
disabled: c,
|
|
762
|
-
hasError:
|
|
770
|
+
hasError: r,
|
|
763
771
|
input: b.input(
|
|
764
|
-
|
|
765
|
-
...
|
|
772
|
+
X({
|
|
773
|
+
...w,
|
|
766
774
|
autocomplete: h,
|
|
767
|
-
placeholder:
|
|
775
|
+
placeholder: p
|
|
768
776
|
}),
|
|
769
777
|
O(
|
|
770
778
|
v,
|
|
771
|
-
() =>
|
|
772
|
-
() =>
|
|
779
|
+
() => F(o.type("password")),
|
|
780
|
+
() => F(o.type("text"))
|
|
773
781
|
),
|
|
774
782
|
o.class("bc-input"),
|
|
775
783
|
o.value(s),
|
|
776
|
-
t != null ?
|
|
777
|
-
i != null ?
|
|
778
|
-
n != null ?
|
|
784
|
+
t != null ? E.blur(x(t)) : _,
|
|
785
|
+
i != null ? E.change(x(i)) : _,
|
|
786
|
+
n != null ? E.input(x(n)) : _
|
|
779
787
|
),
|
|
780
|
-
after:
|
|
788
|
+
after: l != null ? F(T, l) : T
|
|
781
789
|
});
|
|
782
790
|
});
|
|
783
|
-
},
|
|
791
|
+
}, fe = (
|
|
784
792
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
785
793
|
(e, s) => () => {
|
|
786
794
|
e.markTouched(), s?.();
|
|
787
795
|
}
|
|
788
|
-
),
|
|
796
|
+
), be = (e, s) => (t) => {
|
|
789
797
|
e.change(t), s?.(t);
|
|
790
798
|
};
|
|
791
|
-
function
|
|
792
|
-
const { controller: t, onBlur: i, onChange: n, ...
|
|
799
|
+
function ee(e, s) {
|
|
800
|
+
const { controller: t, onBlur: i, onChange: n, ...a } = s;
|
|
793
801
|
return e({
|
|
794
802
|
id: t.name,
|
|
795
803
|
disabled: t.disabled,
|
|
796
804
|
value: t.signal,
|
|
797
805
|
hasError: t.errorVisible,
|
|
798
|
-
...
|
|
799
|
-
onChange:
|
|
800
|
-
onBlur:
|
|
806
|
+
...a,
|
|
807
|
+
onChange: be(t, n),
|
|
808
|
+
onBlur: fe(t, i)
|
|
801
809
|
});
|
|
802
810
|
}
|
|
803
|
-
function
|
|
804
|
-
return
|
|
811
|
+
function Fe(e, s, ...t) {
|
|
812
|
+
return Z(
|
|
805
813
|
{
|
|
806
814
|
...s,
|
|
807
|
-
content:
|
|
815
|
+
content: ee(
|
|
808
816
|
e,
|
|
809
817
|
s
|
|
810
818
|
)
|
|
@@ -812,40 +820,40 @@ function $e(e, s, ...t) {
|
|
|
812
820
|
...t
|
|
813
821
|
);
|
|
814
822
|
}
|
|
815
|
-
function
|
|
816
|
-
const { toInput: t, fromInput: i, controller: n, ...
|
|
817
|
-
return
|
|
818
|
-
...
|
|
819
|
-
controller:
|
|
823
|
+
function me(e, s) {
|
|
824
|
+
const { toInput: t, fromInput: i, controller: n, ...a } = s, l = n.transform(t, i);
|
|
825
|
+
return ee(e, {
|
|
826
|
+
...a,
|
|
827
|
+
controller: l
|
|
820
828
|
});
|
|
821
829
|
}
|
|
822
|
-
function
|
|
823
|
-
return
|
|
830
|
+
function Pe(e, s, ...t) {
|
|
831
|
+
return Z(
|
|
824
832
|
{
|
|
825
833
|
...s,
|
|
826
|
-
content:
|
|
834
|
+
content: me(e, s)
|
|
827
835
|
},
|
|
828
836
|
...t
|
|
829
837
|
);
|
|
830
838
|
}
|
|
831
|
-
function
|
|
839
|
+
function Be(e) {
|
|
832
840
|
return e.split(".").map((t) => {
|
|
833
841
|
const i = t.match(/^\[(\d+)\]$/);
|
|
834
842
|
return i ? Number(i[1]) : t;
|
|
835
843
|
});
|
|
836
844
|
}
|
|
837
|
-
function
|
|
845
|
+
function ge(e) {
|
|
838
846
|
return typeof e == "number" ? `[${e}]` : `.${e}`;
|
|
839
847
|
}
|
|
840
|
-
function
|
|
848
|
+
function ve(e) {
|
|
841
849
|
if (e.length === 0) return "";
|
|
842
850
|
const [s, ...t] = e;
|
|
843
851
|
return [
|
|
844
852
|
typeof s == "number" ? `[${s}]` : s,
|
|
845
|
-
...t.map(
|
|
853
|
+
...t.map(ge)
|
|
846
854
|
].join("");
|
|
847
855
|
}
|
|
848
|
-
function
|
|
856
|
+
function j(e) {
|
|
849
857
|
return function(t) {
|
|
850
858
|
if (t.type === "valid") return t;
|
|
851
859
|
let i = t.error;
|
|
@@ -866,42 +874,42 @@ class M {
|
|
|
866
874
|
dirty;
|
|
867
875
|
dependencyErrors;
|
|
868
876
|
#e = {
|
|
869
|
-
disabled:
|
|
870
|
-
touched:
|
|
877
|
+
disabled: I(!1),
|
|
878
|
+
touched: I(!1)
|
|
871
879
|
};
|
|
872
880
|
#t;
|
|
873
|
-
#s =
|
|
881
|
+
#s = I(void 0);
|
|
874
882
|
parent;
|
|
875
883
|
disabled;
|
|
876
884
|
#n = [];
|
|
877
885
|
disabledOrHasErrors;
|
|
878
|
-
constructor(s, t, i, n,
|
|
879
|
-
this.path = s, this.change = t, this.signal = i, this.status = n, this.#t =
|
|
880
|
-
(
|
|
881
|
-
), this.hasError = this.error.map((
|
|
886
|
+
constructor(s, t, i, n, a, l = P) {
|
|
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(
|
|
888
|
+
(r) => r?.type === "invalid" ? r.error?.message : void 0
|
|
889
|
+
), this.hasError = this.error.map((r) => r != null), this.touched = this.#e.touched, a.validationMode ? this.errorVisible = C(
|
|
882
890
|
this.hasError,
|
|
883
891
|
this.touched,
|
|
884
|
-
|
|
885
|
-
)((
|
|
892
|
+
a.validationMode
|
|
893
|
+
)((r, c, f) => f === "continuous" ? !!r : !!r && !!c) : this.errorVisible = C(
|
|
886
894
|
this.hasError,
|
|
887
895
|
this.touched
|
|
888
|
-
)((
|
|
896
|
+
)((r, c) => !!r && !!c), this.dirty = C(
|
|
889
897
|
this.signal,
|
|
890
898
|
this.#s
|
|
891
|
-
)((
|
|
892
|
-
(
|
|
893
|
-
), this.parent =
|
|
899
|
+
)((r, c) => !this.#t(r, c)), this.dependencyErrors = n.map(
|
|
900
|
+
(r) => r?.type === "invalid" ? r.error?.dependencies : void 0
|
|
901
|
+
), this.parent = a, this.disabled = C(
|
|
894
902
|
this.#e.disabled,
|
|
895
|
-
|
|
896
|
-
)((
|
|
903
|
+
a.disabled
|
|
904
|
+
)((r, c) => r || c), this.disabledOrHasErrors = C(
|
|
897
905
|
this.disabled,
|
|
898
906
|
this.hasError
|
|
899
|
-
)((
|
|
907
|
+
)((r, c) => r || c), this.onDispose(() => {
|
|
900
908
|
this.#e.disabled.dispose(), this.#e.touched.dispose(), this.disabled.dispose(), this.error.dispose(), this.errorVisible.dispose(), this.dirty.dispose(), this.#s.dispose(), this.dependencyErrors.dispose(), this.disabledOrHasErrors.dispose();
|
|
901
909
|
});
|
|
902
910
|
}
|
|
903
911
|
get name() {
|
|
904
|
-
return
|
|
912
|
+
return ve(this.path);
|
|
905
913
|
}
|
|
906
914
|
onDispose = (s) => {
|
|
907
915
|
this.#n.push(s);
|
|
@@ -932,7 +940,7 @@ class M {
|
|
|
932
940
|
reset = () => {
|
|
933
941
|
this.change(this.#s.value);
|
|
934
942
|
};
|
|
935
|
-
array = (s =
|
|
943
|
+
array = (s = P) => new we(
|
|
936
944
|
this.path,
|
|
937
945
|
this.change,
|
|
938
946
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -941,7 +949,7 @@ class M {
|
|
|
941
949
|
this.parent,
|
|
942
950
|
s
|
|
943
951
|
);
|
|
944
|
-
object = (s =
|
|
952
|
+
object = (s = P) => new ye(
|
|
945
953
|
this.path,
|
|
946
954
|
this.change,
|
|
947
955
|
this.signal,
|
|
@@ -949,34 +957,34 @@ class M {
|
|
|
949
957
|
this.parent,
|
|
950
958
|
s
|
|
951
959
|
);
|
|
952
|
-
transform = (s, t, i = [], n =
|
|
960
|
+
transform = (s, t, i = [], n = P) => new M(
|
|
953
961
|
[...this.path, ...i],
|
|
954
|
-
(
|
|
962
|
+
(a) => this.change(t(a)),
|
|
955
963
|
this.signal.map(s, n),
|
|
956
|
-
this.status.map(
|
|
964
|
+
this.status.map(j(i)),
|
|
957
965
|
this.parent,
|
|
958
966
|
n
|
|
959
967
|
);
|
|
960
|
-
asyncTransform = (s, t, i, n = [],
|
|
968
|
+
asyncTransform = (s, t, i, n = [], a = P) => new M(
|
|
961
969
|
[...this.path, ...n],
|
|
962
|
-
(
|
|
963
|
-
t(
|
|
970
|
+
(l) => {
|
|
971
|
+
t(l).then((r) => this.change(r));
|
|
964
972
|
},
|
|
965
|
-
this.signal.mapAsync(s, i, void 0,
|
|
966
|
-
this.status.map(
|
|
973
|
+
this.signal.mapAsync(s, i, void 0, a),
|
|
974
|
+
this.status.map(j(n)),
|
|
967
975
|
this.parent,
|
|
968
|
-
|
|
976
|
+
a
|
|
969
977
|
);
|
|
970
978
|
}
|
|
971
|
-
class
|
|
979
|
+
class ye extends M {
|
|
972
980
|
#e = /* @__PURE__ */ new Map();
|
|
973
981
|
#t = /* @__PURE__ */ new Map();
|
|
974
982
|
#s = /* @__PURE__ */ new Map();
|
|
975
|
-
#n =
|
|
983
|
+
#n = I(!1);
|
|
976
984
|
touchedDeep = this.#n;
|
|
977
|
-
#
|
|
985
|
+
#a = /* @__PURE__ */ new Map();
|
|
978
986
|
#i = /* @__PURE__ */ new Map();
|
|
979
|
-
#l =
|
|
987
|
+
#l = I(!1);
|
|
980
988
|
dirtyDeep = this.#l;
|
|
981
989
|
#o;
|
|
982
990
|
#u;
|
|
@@ -989,20 +997,20 @@ class ge extends M {
|
|
|
989
997
|
}
|
|
990
998
|
this.#n.set(this.touched.value || s);
|
|
991
999
|
};
|
|
992
|
-
constructor(s, t, i, n,
|
|
1000
|
+
constructor(s, t, i, n, a, l) {
|
|
993
1001
|
super(
|
|
994
1002
|
s,
|
|
995
1003
|
t,
|
|
996
|
-
i.map((c) => c ?? {},
|
|
1004
|
+
i.map((c) => c ?? {}, l),
|
|
997
1005
|
n,
|
|
998
|
-
|
|
999
|
-
|
|
1006
|
+
a,
|
|
1007
|
+
l
|
|
1000
1008
|
), this.#o = this.touched.on(() => {
|
|
1001
1009
|
this.#c();
|
|
1002
1010
|
}), this.#u = this.dirty.on(() => {
|
|
1003
|
-
this.#
|
|
1011
|
+
this.#r();
|
|
1004
1012
|
});
|
|
1005
|
-
const
|
|
1013
|
+
const r = this.signal.on(() => this.#r());
|
|
1006
1014
|
this.onDispose(() => {
|
|
1007
1015
|
for (const c of this.#e.values())
|
|
1008
1016
|
c.dispose();
|
|
@@ -1010,22 +1018,22 @@ class ge extends M {
|
|
|
1010
1018
|
for (const c of this.#s.values()) c();
|
|
1011
1019
|
this.#s.clear(), this.#t.clear(), this.#n.dispose();
|
|
1012
1020
|
for (const c of this.#i.values()) c();
|
|
1013
|
-
this.#i.clear(), this.#
|
|
1021
|
+
this.#i.clear(), this.#a.clear(), this.#l.dispose(), this.#o(), this.#u(), r();
|
|
1014
1022
|
});
|
|
1015
1023
|
}
|
|
1016
1024
|
field = (s) => {
|
|
1017
1025
|
if (this.#e.has(s))
|
|
1018
1026
|
return this.#e.get(s);
|
|
1019
|
-
const t = async (
|
|
1027
|
+
const t = async (l) => {
|
|
1020
1028
|
this.change({
|
|
1021
1029
|
...this.signal.value,
|
|
1022
|
-
[s]:
|
|
1030
|
+
[s]: l
|
|
1023
1031
|
});
|
|
1024
1032
|
}, i = new M(
|
|
1025
1033
|
[...this.path, s],
|
|
1026
1034
|
t,
|
|
1027
|
-
this.signal.map((
|
|
1028
|
-
this.status.map(
|
|
1035
|
+
this.signal.map((l) => l[s]),
|
|
1036
|
+
this.status.map(j([s])),
|
|
1029
1037
|
{
|
|
1030
1038
|
disabled: this.disabled,
|
|
1031
1039
|
// propagate validationMode to children if present
|
|
@@ -1033,14 +1041,14 @@ class ge extends M {
|
|
|
1033
1041
|
}
|
|
1034
1042
|
);
|
|
1035
1043
|
this.#e.set(s, i);
|
|
1036
|
-
const n = i.touched.on((
|
|
1037
|
-
this.#t.set(s,
|
|
1044
|
+
const n = i.touched.on((l) => {
|
|
1045
|
+
this.#t.set(s, l), this.#c();
|
|
1038
1046
|
});
|
|
1039
1047
|
this.#s.set(s, n);
|
|
1040
|
-
const
|
|
1041
|
-
this.#
|
|
1048
|
+
const a = i.dirty.on((l) => {
|
|
1049
|
+
this.#a.set(s, l), this.#r();
|
|
1042
1050
|
});
|
|
1043
|
-
return this.#i.set(s,
|
|
1051
|
+
return this.#i.set(s, a), i;
|
|
1044
1052
|
};
|
|
1045
1053
|
markAllTouched = () => {
|
|
1046
1054
|
this.markTouched();
|
|
@@ -1058,9 +1066,9 @@ class ge extends M {
|
|
|
1058
1066
|
for (const t of this.#e.values())
|
|
1059
1067
|
t.markPristine?.();
|
|
1060
1068
|
};
|
|
1061
|
-
#
|
|
1069
|
+
#r = () => {
|
|
1062
1070
|
let s = !1;
|
|
1063
|
-
for (const t of this.#
|
|
1071
|
+
for (const t of this.#a.values())
|
|
1064
1072
|
if (t) {
|
|
1065
1073
|
s = !0;
|
|
1066
1074
|
break;
|
|
@@ -1068,16 +1076,16 @@ class ge extends M {
|
|
|
1068
1076
|
this.#l.set(this.dirty.value || s);
|
|
1069
1077
|
};
|
|
1070
1078
|
}
|
|
1071
|
-
class
|
|
1079
|
+
class we extends M {
|
|
1072
1080
|
#e = new Array();
|
|
1073
1081
|
length;
|
|
1074
1082
|
#t = /* @__PURE__ */ new Map();
|
|
1075
1083
|
#s = /* @__PURE__ */ new Map();
|
|
1076
|
-
#n =
|
|
1084
|
+
#n = I(!1);
|
|
1077
1085
|
touchedDeep = this.#n;
|
|
1078
|
-
#
|
|
1086
|
+
#a = /* @__PURE__ */ new Map();
|
|
1079
1087
|
#i = /* @__PURE__ */ new Map();
|
|
1080
|
-
#l =
|
|
1088
|
+
#l = I(!1);
|
|
1081
1089
|
dirtyDeep = this.#l;
|
|
1082
1090
|
#o;
|
|
1083
1091
|
#u;
|
|
@@ -1090,57 +1098,57 @@ class ve extends M {
|
|
|
1090
1098
|
}
|
|
1091
1099
|
this.#n.set(this.touched.value || s);
|
|
1092
1100
|
};
|
|
1093
|
-
constructor(s, t, i, n,
|
|
1094
|
-
const
|
|
1095
|
-
super(s, t,
|
|
1096
|
-
const c =
|
|
1101
|
+
constructor(s, t, i, n, a, l) {
|
|
1102
|
+
const r = i.map((u) => u ?? [], l);
|
|
1103
|
+
super(s, t, r, n, a, l);
|
|
1104
|
+
const c = r.on((u) => {
|
|
1097
1105
|
const g = this.#e.length - u.length;
|
|
1098
|
-
g > 0 && (this.#e.splice(u.length, g).forEach((
|
|
1106
|
+
g > 0 && (this.#e.splice(u.length, g).forEach((w, v) => {
|
|
1099
1107
|
const h = u.length + v;
|
|
1100
|
-
|
|
1101
|
-
}), this.#c(), this.#
|
|
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);
|
|
1109
|
+
}), this.#c(), this.#r());
|
|
1102
1110
|
});
|
|
1103
|
-
this.length =
|
|
1111
|
+
this.length = r.map((u) => u.length), this.#o = this.touched.on(() => {
|
|
1104
1112
|
this.#c();
|
|
1105
1113
|
}), this.#u = this.dirty.on(() => {
|
|
1106
|
-
this.#
|
|
1114
|
+
this.#r();
|
|
1107
1115
|
});
|
|
1108
|
-
const
|
|
1116
|
+
const f = this.signal.on(() => this.#r());
|
|
1109
1117
|
this.onDispose(() => {
|
|
1110
1118
|
for (const u of this.#e)
|
|
1111
1119
|
u.dispose();
|
|
1112
|
-
this.length.dispose(), this.#e.length = 0, c(),
|
|
1120
|
+
this.length.dispose(), this.#e.length = 0, c(), r.dispose();
|
|
1113
1121
|
for (const u of this.#s.values()) u();
|
|
1114
1122
|
this.#s.clear(), this.#t.clear(), this.#n.dispose();
|
|
1115
1123
|
for (const u of this.#i.values()) u();
|
|
1116
|
-
this.#i.clear(), this.#
|
|
1124
|
+
this.#i.clear(), this.#a.clear(), this.#l.dispose(), this.#o(), this.#u(), f();
|
|
1117
1125
|
});
|
|
1118
1126
|
}
|
|
1119
1127
|
item = (s) => {
|
|
1120
1128
|
if (this.#e[s])
|
|
1121
1129
|
return this.#e[s];
|
|
1122
|
-
const t = async (
|
|
1123
|
-
const
|
|
1124
|
-
|
|
1130
|
+
const t = async (l) => {
|
|
1131
|
+
const r = this.signal.value.slice();
|
|
1132
|
+
r[s] = l, this.change(r);
|
|
1125
1133
|
}, i = new M(
|
|
1126
1134
|
[...this.path, s],
|
|
1127
1135
|
t,
|
|
1128
|
-
this.signal.map((
|
|
1129
|
-
this.status.map(
|
|
1136
|
+
this.signal.map((l) => l[s]),
|
|
1137
|
+
this.status.map(j([s])),
|
|
1130
1138
|
{
|
|
1131
1139
|
disabled: this.disabled,
|
|
1132
1140
|
validationMode: this.parent.validationMode
|
|
1133
1141
|
}
|
|
1134
1142
|
);
|
|
1135
1143
|
this.#e[s] = i;
|
|
1136
|
-
const n = i.touched.on((
|
|
1137
|
-
this.#t.set(s,
|
|
1144
|
+
const n = i.touched.on((l) => {
|
|
1145
|
+
this.#t.set(s, l), this.#c();
|
|
1138
1146
|
});
|
|
1139
1147
|
this.#s.set(s, n);
|
|
1140
|
-
const
|
|
1141
|
-
this.#
|
|
1148
|
+
const a = i.dirty.on((l) => {
|
|
1149
|
+
this.#a.set(s, l), this.#r();
|
|
1142
1150
|
});
|
|
1143
|
-
return this.#i.set(s,
|
|
1151
|
+
return this.#i.set(s, a), i;
|
|
1144
1152
|
};
|
|
1145
1153
|
push = (...s) => {
|
|
1146
1154
|
this.change([...this.signal.value, ...s]);
|
|
@@ -1163,8 +1171,8 @@ class ve extends M {
|
|
|
1163
1171
|
};
|
|
1164
1172
|
move = (s, t, i = 1) => {
|
|
1165
1173
|
if (i < 1 || s === t) return;
|
|
1166
|
-
const n = this.signal.value.slice(),
|
|
1167
|
-
n.splice(t, 0, ...
|
|
1174
|
+
const n = this.signal.value.slice(), a = n.splice(s, i);
|
|
1175
|
+
n.splice(t, 0, ...a), this.change(n);
|
|
1168
1176
|
};
|
|
1169
1177
|
markAllTouched = () => {
|
|
1170
1178
|
this.markTouched();
|
|
@@ -1178,9 +1186,9 @@ class ve extends M {
|
|
|
1178
1186
|
for (let t = 0; t < s; t++)
|
|
1179
1187
|
this.item(t).markPristine?.();
|
|
1180
1188
|
};
|
|
1181
|
-
#
|
|
1189
|
+
#r = () => {
|
|
1182
1190
|
let s = !1;
|
|
1183
|
-
for (const t of this.#
|
|
1191
|
+
for (const t of this.#a.values())
|
|
1184
1192
|
if (t) {
|
|
1185
1193
|
s = !0;
|
|
1186
1194
|
break;
|
|
@@ -1188,7 +1196,7 @@ class ve extends M {
|
|
|
1188
1196
|
this.#l.set(this.dirty.value || s);
|
|
1189
1197
|
};
|
|
1190
1198
|
}
|
|
1191
|
-
function
|
|
1199
|
+
function ke(e) {
|
|
1192
1200
|
function s(t) {
|
|
1193
1201
|
return typeof t == "number" ? t : t.toString();
|
|
1194
1202
|
}
|
|
@@ -1196,13 +1204,13 @@ function ye(e) {
|
|
|
1196
1204
|
(t) => typeof t == "object" && t.key != null ? s(t.key) : s(t)
|
|
1197
1205
|
);
|
|
1198
1206
|
}
|
|
1199
|
-
function
|
|
1200
|
-
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,
|
|
1201
|
-
const
|
|
1207
|
+
function Se(e) {
|
|
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) => {
|
|
1209
|
+
const l = ke(a.path), r = l.pop();
|
|
1202
1210
|
let c = n;
|
|
1203
|
-
for (const
|
|
1204
|
-
c.dependencies == null && (c.dependencies = {}), c.dependencies[
|
|
1205
|
-
return c.dependencies == null && (c.dependencies = {}), c.dependencies[
|
|
1211
|
+
for (const f of l)
|
|
1212
|
+
c.dependencies == null && (c.dependencies = {}), c.dependencies[f] == null && (c.dependencies[f] = {}), c = c.dependencies[f];
|
|
1213
|
+
return c.dependencies == null && (c.dependencies = {}), c.dependencies[r] = { message: a.message }, n;
|
|
1206
1214
|
}, {}), i = s.join(`
|
|
1207
1215
|
`);
|
|
1208
1216
|
return {
|
|
@@ -1210,76 +1218,76 @@ function ke(e) {
|
|
|
1210
1218
|
message: i != "" ? i : void 0
|
|
1211
1219
|
};
|
|
1212
1220
|
}
|
|
1213
|
-
function
|
|
1221
|
+
function Ce({
|
|
1214
1222
|
initialValue: e,
|
|
1215
1223
|
onChange: s,
|
|
1216
1224
|
validate: t,
|
|
1217
1225
|
equals: i,
|
|
1218
1226
|
validationMode: n,
|
|
1219
|
-
validateDebounceMs:
|
|
1227
|
+
validateDebounceMs: a
|
|
1220
1228
|
}) {
|
|
1221
|
-
const
|
|
1222
|
-
|
|
1229
|
+
const l = y.deriveProp(e), r = I(D.valid), c = I(!1), f = I(n ?? "touchedOrSubmit"), u = (d) => {
|
|
1230
|
+
r.set(d);
|
|
1223
1231
|
};
|
|
1224
1232
|
let g;
|
|
1225
|
-
const
|
|
1233
|
+
const w = async (d) => {
|
|
1226
1234
|
if (t != null) {
|
|
1227
|
-
const
|
|
1228
|
-
u(
|
|
1235
|
+
const p = await t(d);
|
|
1236
|
+
u(p);
|
|
1229
1237
|
}
|
|
1230
1238
|
}, v = async (d) => {
|
|
1231
|
-
|
|
1232
|
-
const
|
|
1239
|
+
l.set(d), s?.(d);
|
|
1240
|
+
const p = f.value;
|
|
1233
1241
|
if (t != null) {
|
|
1234
|
-
if (
|
|
1242
|
+
if (p === "onSubmit")
|
|
1235
1243
|
return;
|
|
1236
|
-
const
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
},
|
|
1244
|
+
const T = a ?? 0;
|
|
1245
|
+
T > 0 ? (g && clearTimeout(g), g = setTimeout(() => {
|
|
1246
|
+
w(d);
|
|
1247
|
+
}, T)) : await w(d);
|
|
1240
1248
|
}
|
|
1241
1249
|
}, h = new M(
|
|
1242
1250
|
[],
|
|
1243
1251
|
v,
|
|
1244
|
-
a,
|
|
1245
1252
|
l,
|
|
1253
|
+
r,
|
|
1246
1254
|
{
|
|
1247
1255
|
disabled: c,
|
|
1248
|
-
validationMode:
|
|
1256
|
+
validationMode: f
|
|
1249
1257
|
},
|
|
1250
|
-
i ??
|
|
1258
|
+
i ?? P
|
|
1251
1259
|
);
|
|
1252
1260
|
return h.onDispose(() => {
|
|
1253
|
-
c.dispose(),
|
|
1261
|
+
c.dispose(), l.dispose(), r.dispose(), f.dispose(), g && clearTimeout(g);
|
|
1254
1262
|
}), { controller: h, setStatus: u };
|
|
1255
1263
|
}
|
|
1256
|
-
function
|
|
1257
|
-
return
|
|
1264
|
+
function se(e) {
|
|
1265
|
+
return F(o.disabled(e.disabled), o.name(e.name));
|
|
1258
1266
|
}
|
|
1259
|
-
function
|
|
1267
|
+
function Ne(e, {
|
|
1260
1268
|
triggerOn: s = "change"
|
|
1261
1269
|
} = {}) {
|
|
1262
|
-
return
|
|
1263
|
-
|
|
1270
|
+
return F(
|
|
1271
|
+
se(e),
|
|
1264
1272
|
o.value(e.signal),
|
|
1265
|
-
(s === "input" ?
|
|
1273
|
+
(s === "input" ? E.input : E.change)(x(e.change))
|
|
1266
1274
|
);
|
|
1267
1275
|
}
|
|
1268
|
-
function
|
|
1276
|
+
function Le(e, {
|
|
1269
1277
|
triggerOn: s = "change"
|
|
1270
1278
|
} = {}) {
|
|
1271
|
-
return
|
|
1272
|
-
|
|
1279
|
+
return F(
|
|
1280
|
+
se(e),
|
|
1273
1281
|
o.valueAsNumber(e.signal),
|
|
1274
|
-
(s === "input" ?
|
|
1275
|
-
|
|
1282
|
+
(s === "input" ? E.input : E.change)(
|
|
1283
|
+
ie(e.change)
|
|
1276
1284
|
)
|
|
1277
1285
|
);
|
|
1278
1286
|
}
|
|
1279
|
-
function
|
|
1280
|
-
return e.issues != null ? D.invalid(
|
|
1287
|
+
function G(e) {
|
|
1288
|
+
return e.issues != null ? D.invalid(Se(e.issues)) : D.valid;
|
|
1281
1289
|
}
|
|
1282
|
-
async function
|
|
1290
|
+
async function je({
|
|
1283
1291
|
task: e,
|
|
1284
1292
|
errorMessage: s,
|
|
1285
1293
|
errorPath: t = ["root"],
|
|
@@ -1289,15 +1297,15 @@ async function Ne({
|
|
|
1289
1297
|
const n = await e();
|
|
1290
1298
|
return i != null ? i(n) : D.valid;
|
|
1291
1299
|
} catch (n) {
|
|
1292
|
-
const
|
|
1300
|
+
const a = s ?? (n instanceof Error ? n.message : "Operation failed");
|
|
1293
1301
|
return t.length === 1 && t[0] === "root" ? D.invalid({
|
|
1294
|
-
message:
|
|
1302
|
+
message: a
|
|
1295
1303
|
}) : D.invalid({
|
|
1296
|
-
dependencies:
|
|
1304
|
+
dependencies: te(t, a)
|
|
1297
1305
|
});
|
|
1298
1306
|
}
|
|
1299
1307
|
}
|
|
1300
|
-
function
|
|
1308
|
+
function te(e, s) {
|
|
1301
1309
|
if (e.length === 1)
|
|
1302
1310
|
return {
|
|
1303
1311
|
[e[0]]: { message: s }
|
|
@@ -1305,48 +1313,48 @@ function ee(e, s) {
|
|
|
1305
1313
|
const [t, ...i] = e;
|
|
1306
1314
|
return {
|
|
1307
1315
|
[t]: {
|
|
1308
|
-
dependencies:
|
|
1316
|
+
dependencies: te(i, s)
|
|
1309
1317
|
}
|
|
1310
1318
|
};
|
|
1311
1319
|
}
|
|
1312
|
-
function
|
|
1320
|
+
function qe({
|
|
1313
1321
|
initialValue: e = {},
|
|
1314
1322
|
schema: s,
|
|
1315
1323
|
onSubmit: t = async () => D.valid,
|
|
1316
1324
|
validationMode: i,
|
|
1317
1325
|
validateDebounceMs: n
|
|
1318
1326
|
}) {
|
|
1319
|
-
const { controller:
|
|
1327
|
+
const { controller: a, setStatus: l } = Ce({
|
|
1320
1328
|
initialValue: e,
|
|
1321
1329
|
validationMode: i ?? "touchedOrSubmit",
|
|
1322
1330
|
validateDebounceMs: n,
|
|
1323
|
-
validate: (i ?? "touchedOrSubmit") === "onSubmit" || s == null ? void 0 : async (u) =>
|
|
1331
|
+
validate: (i ?? "touchedOrSubmit") === "onSubmit" || s == null ? void 0 : async (u) => G(
|
|
1324
1332
|
await s["~standard"].validate(u)
|
|
1325
1333
|
)
|
|
1326
|
-
}),
|
|
1327
|
-
return c.onDispose(
|
|
1334
|
+
}), r = I(!1), c = a.object();
|
|
1335
|
+
return c.onDispose(r.dispose), {
|
|
1328
1336
|
controller: c,
|
|
1329
|
-
setStatus:
|
|
1337
|
+
setStatus: l,
|
|
1330
1338
|
submit: async (u) => {
|
|
1331
|
-
if (
|
|
1332
|
-
const
|
|
1339
|
+
if (r.set(!0), u?.preventDefault(), c.markAllTouched(), (i ?? "touchedOrSubmit") === "onSubmit") {
|
|
1340
|
+
const w = c.signal.value, v = s?.["~standard"].validate;
|
|
1333
1341
|
if (v == null) {
|
|
1334
|
-
|
|
1342
|
+
r.set(!1);
|
|
1335
1343
|
return;
|
|
1336
1344
|
}
|
|
1337
|
-
const h =
|
|
1338
|
-
if (
|
|
1339
|
-
|
|
1345
|
+
const h = G(await v(w));
|
|
1346
|
+
if (l(h), h.type === "invalid") {
|
|
1347
|
+
r.set(!1);
|
|
1340
1348
|
return;
|
|
1341
1349
|
}
|
|
1342
1350
|
}
|
|
1343
1351
|
const g = await t(c.signal.value);
|
|
1344
|
-
|
|
1352
|
+
r.set(!1), g.type === "invalid" && l(g);
|
|
1345
1353
|
},
|
|
1346
|
-
submitting:
|
|
1354
|
+
submitting: r
|
|
1347
1355
|
};
|
|
1348
1356
|
}
|
|
1349
|
-
function
|
|
1357
|
+
function _e(e) {
|
|
1350
1358
|
switch (e) {
|
|
1351
1359
|
case "success":
|
|
1352
1360
|
return "material-symbols:check-circle-outline";
|
|
@@ -1359,7 +1367,7 @@ function Se(e) {
|
|
|
1359
1367
|
return "material-symbols:info-outline";
|
|
1360
1368
|
}
|
|
1361
1369
|
}
|
|
1362
|
-
function
|
|
1370
|
+
function De(e) {
|
|
1363
1371
|
switch (e) {
|
|
1364
1372
|
case "success":
|
|
1365
1373
|
return "success";
|
|
@@ -1372,7 +1380,7 @@ function Ce(e) {
|
|
|
1372
1380
|
return "info";
|
|
1373
1381
|
}
|
|
1374
1382
|
}
|
|
1375
|
-
function
|
|
1383
|
+
function Ee(e, s, t, i) {
|
|
1376
1384
|
const n = [
|
|
1377
1385
|
"bc-notice",
|
|
1378
1386
|
`bc-notice--${e}`,
|
|
@@ -1380,106 +1388,115 @@ function _e(e, s, t, i) {
|
|
|
1380
1388
|
];
|
|
1381
1389
|
return t && n.push("bc-notice--dismissible"), i && i.length > 0 && n.push(i), n.join(" ");
|
|
1382
1390
|
}
|
|
1383
|
-
function
|
|
1391
|
+
function ze({
|
|
1384
1392
|
variant: e = "info",
|
|
1385
1393
|
tone: s = "subtle",
|
|
1386
1394
|
role: t,
|
|
1387
1395
|
title: i,
|
|
1388
1396
|
icon: n,
|
|
1389
|
-
closable:
|
|
1390
|
-
onDismiss:
|
|
1391
|
-
class:
|
|
1397
|
+
closable: a = !1,
|
|
1398
|
+
onDismiss: l,
|
|
1399
|
+
class: r
|
|
1392
1400
|
}, ...c) {
|
|
1393
|
-
const
|
|
1394
|
-
|
|
1395
|
-
(d) => !!d ||
|
|
1396
|
-
), u =
|
|
1401
|
+
const f = y.map(
|
|
1402
|
+
a,
|
|
1403
|
+
(d) => !!d || l != null
|
|
1404
|
+
), u = y.map(e, (d) => d ?? "info"), g = y.map(s, (d) => d ?? "subtle"), w = C(
|
|
1397
1405
|
t,
|
|
1398
1406
|
u
|
|
1399
1407
|
)(
|
|
1400
|
-
(d,
|
|
1401
|
-
), v =
|
|
1402
|
-
|
|
1408
|
+
(d, p) => d ?? (p === "danger" ? "alert" : "status")
|
|
1409
|
+
), v = I(!0), h = q(
|
|
1410
|
+
z,
|
|
1403
1411
|
(d) => b.div(
|
|
1404
1412
|
o.class(
|
|
1405
|
-
|
|
1413
|
+
C(
|
|
1406
1414
|
u,
|
|
1407
1415
|
g,
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
)((
|
|
1416
|
+
f,
|
|
1417
|
+
r
|
|
1418
|
+
)((p, T, A, $) => Ee(p, T, A, $))
|
|
1411
1419
|
),
|
|
1412
1420
|
// Accessibility role mapping (always defined)
|
|
1413
|
-
o.role(
|
|
1414
|
-
|
|
1415
|
-
|
|
1421
|
+
o.role(y.map(w, (p) => p)),
|
|
1422
|
+
ae(
|
|
1423
|
+
y.map(n, (p) => p === !1),
|
|
1416
1424
|
() => b.div(
|
|
1417
1425
|
o.class("bc-notice__icon"),
|
|
1418
1426
|
N({
|
|
1419
|
-
icon:
|
|
1427
|
+
icon: C(
|
|
1420
1428
|
n,
|
|
1421
1429
|
u
|
|
1422
|
-
)((
|
|
1430
|
+
)((p, T) => p === void 0 ? _e(T) : String(p)),
|
|
1423
1431
|
size: "md",
|
|
1424
|
-
color:
|
|
1432
|
+
color: y.map(u, De)
|
|
1425
1433
|
})
|
|
1426
1434
|
)
|
|
1427
1435
|
),
|
|
1428
1436
|
b.div(
|
|
1429
1437
|
o.class("bc-notice__body"),
|
|
1430
|
-
|
|
1438
|
+
re(i, (p) => b.div(o.class("bc-notice__title"), p)),
|
|
1431
1439
|
b.div(o.class("bc-notice__content"), ...c)
|
|
1432
1440
|
),
|
|
1433
1441
|
O(
|
|
1434
|
-
|
|
1435
|
-
() =>
|
|
1442
|
+
f,
|
|
1443
|
+
() => ce({
|
|
1436
1444
|
size: "xs",
|
|
1437
1445
|
label: d.$.closeModal,
|
|
1438
1446
|
onClick: () => {
|
|
1439
|
-
v.set(!1),
|
|
1447
|
+
v.set(!1), l?.();
|
|
1440
1448
|
}
|
|
1441
1449
|
})
|
|
1442
1450
|
)
|
|
1443
1451
|
)
|
|
1444
1452
|
);
|
|
1445
|
-
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
|
+
);
|
|
1446
1463
|
}
|
|
1447
1464
|
export {
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
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,
|
|
1461
1478
|
D as a,
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1479
|
+
Oe as b,
|
|
1480
|
+
Fe as c,
|
|
1481
|
+
be as d,
|
|
1465
1482
|
M as e,
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1483
|
+
j as f,
|
|
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,
|
|
1495
|
+
G as r,
|
|
1496
|
+
Y as s,
|
|
1497
|
+
je as t,
|
|
1498
|
+
qe as u,
|
|
1499
|
+
Ae as v,
|
|
1500
|
+
ge as w,
|
|
1501
|
+
ue as x
|
|
1485
1502
|
};
|