@tempots/beatui 1.1.4 → 1.2.1
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/{ar-CZ07-PLK.js → ar-C-kUt6f9.js} +1 -1
- package/dist/{ar-CFd5Xkva.cjs → ar-Dc56zcjW.cjs} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +1 -1
- package/dist/{auth-divider-CvQ0TQwi.js → auth-divider-D_3gKZ6g.js} +469 -461
- package/dist/auth-divider-itm5-j5G.cjs +1 -0
- package/dist/beatui.css +20 -7
- package/dist/beatui.tailwind.css +20 -7
- package/dist/better-auth/index.cjs.js +1 -1
- package/dist/better-auth/index.es.js +55 -51
- package/dist/{colors-DwufPN8S.js → colors-C2sgnzFH.js} +7 -7
- package/dist/{colors-B-p6IzX9.cjs → colors-DPCHjRMj.cjs} +1 -1
- package/dist/{de-Dpx6i3Pv.js → de-CP0kbElb.js} +1 -1
- package/dist/{de-BJG9UqDS.cjs → de-DboQlEC4.cjs} +1 -1
- package/dist/{deep-merge-DEEd-Tte.cjs → deep-merge-Bjv1NvKj.cjs} +1 -1
- package/dist/{deep-merge-D1cBNWZX.js → deep-merge-DwXDd3iF.js} +234 -233
- package/dist/{duration-input-CdgMuk2b.cjs → duration-input-CjNZyVkf.cjs} +1 -1
- package/dist/{duration-input-Dpqj2Am9.js → duration-input-CnMMvPgT.js} +4 -4
- package/dist/{editor-toolbar-group-7eMZbEvH.js → editor-toolbar-group-DWUWUO-B.js} +2 -2
- package/dist/{editor-toolbar-group-BJWRgYtv.cjs → editor-toolbar-group-QVdBUbB8.cjs} +1 -1
- package/dist/{es-apq3F_om.js → es-BtIkcnsw.js} +1 -1
- package/dist/{es-BBqPUxJF.cjs → es-CAmE_0Ph.cjs} +1 -1
- package/dist/{fa-BYpfIkLu.js → fa-11-rZmQ-.js} +1 -1
- package/dist/{fa-d0o3KlIu.cjs → fa-D9LrFZdW.cjs} +1 -1
- package/dist/{fr-Ba5_hcn7.js → fr-C-L2F8w2.js} +1 -1
- package/dist/{fr-DzXA-sjH.cjs → fr-DKogQyss.cjs} +1 -1
- package/dist/{he-Dff_I80g.js → he-Bu1xGoQ9.js} +1 -1
- package/dist/{he-Cnx-qg1P.cjs → he-CVx91Jdr.cjs} +1 -1
- package/dist/{hi-BeJ8Q4O6.cjs → hi-BgrHV72l.cjs} +1 -1
- package/dist/{hi-7G-frHVR.js → hi-CewH-MAH.js} +1 -1
- package/dist/{index-C3o9GSH6.js → index-BGKz2Nol.js} +1 -1
- package/dist/{index-B5MAsOC-.cjs → index-DFF7Uahh.cjs} +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +26 -26
- package/dist/{input-container-BZwpJgx6.cjs → input-container-BkPcNDaZ.cjs} +1 -1
- package/dist/{input-container-Q9wL2BUl.js → input-container-CO3DNqpp.js} +2 -2
- package/dist/{it-dSE5UgTZ.js → it-5hiKQO_p.js} +1 -1
- package/dist/{it-DE3pe-gS.cjs → it-B1rA1F9l.cjs} +1 -1
- package/dist/{ja-DRzjr2YR.js → ja-CGfEmZrm.js} +1 -1
- package/dist/{ja-yzk8mwox.cjs → ja-DZnjjqoi.cjs} +1 -1
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +10 -10
- package/dist/json-schema-display/index.cjs.js +1 -1
- package/dist/json-schema-display/index.es.js +1 -1
- package/dist/json-structure/index.cjs.js +1 -1
- package/dist/json-structure/index.es.js +5 -5
- package/dist/{ko-rKqndOMO.cjs → ko-CDnYKYWU.cjs} +1 -1
- package/dist/{ko-7gpweMh7.js → ko-DZthvREd.js} +1 -1
- package/dist/lexical/index.cjs.js +1 -1
- package/dist/lexical/index.es.js +4 -4
- package/dist/{modal-ClnvWxzi.cjs → modal-DCxNGrzk.cjs} +1 -1
- package/dist/{modal-DXWQ-HUs.js → modal-YKqlh4Dk.js} +3 -3
- package/dist/{nl-DKHslb-6.cjs → nl-Bj8QnDEY.cjs} +1 -1
- package/dist/{nl-DAe4B7fb.js → nl-CcKyHlQ7.js} +1 -1
- package/dist/{notice-Dx4D1UOf.js → notice-Du3tWJTW.js} +4 -4
- package/dist/{notice-dOOD80F7.cjs → notice-Q0A1gIho.cjs} +1 -1
- package/dist/{oneof-branch-detection-bQKKfV32.cjs → oneof-branch-detection-BEkAezNi.cjs} +1 -1
- package/dist/{oneof-branch-detection-B57ZDbzM.js → oneof-branch-detection-DSzC0PkO.js} +1 -1
- package/dist/{pl-9yeqi1Kn.cjs → pl-BmuuxxVd.cjs} +1 -1
- package/dist/{pl-4xrzOC4A.js → pl-Mwtjp4MV.js} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +4 -4
- package/dist/{pt-DYQOe1Td.js → pt-BaTsY-8f.js} +1 -1
- package/dist/{pt-CCfVWHz4.cjs → pt-RiC0yeVA.cjs} +1 -1
- package/dist/{ru-FofxuqAJ.js → ru-CvbGmz5s.js} +1 -1
- package/dist/{ru-Cct0jttM.cjs → ru-pRqtOQHF.cjs} +1 -1
- package/dist/tailwind/preset.cjs.js +1 -1
- package/dist/tailwind/preset.es.js +2 -2
- package/dist/tailwind/vite-plugin.cjs.js +1 -1
- package/dist/tailwind/vite-plugin.es.js +1 -1
- package/dist/{text-input-DEAddaOi.js → text-input-BAn02BzO.js} +1 -1
- package/dist/{text-input-CynkbBpH.cjs → text-input-D_IxFd0M.cjs} +1 -1
- package/dist/{toolbar-e9POle8o.js → toolbar-BKan3NHw.js} +1 -1
- package/dist/{toolbar-Dz7R1kV3.cjs → toolbar-CnecqhaU.cjs} +1 -1
- package/dist/{tr-DhKxAXK0.cjs → tr-B9JhBJeL.cjs} +1 -1
- package/dist/{tr-BfKjkfhE.js → tr-YFqQdZjM.js} +1 -1
- package/dist/{translations-D8Jwi_d0.cjs → translations-C_-cObaF.cjs} +1 -1
- package/dist/{translations-BplmL3nb.js → translations-CxDUnbXn.js} +1 -1
- package/dist/{translations-B96REXIk.js → translations-DT5QQ4WO.js} +19 -19
- package/dist/{translations-BDGa_4jx.cjs → translations-qefRsdGi.cjs} +1 -1
- package/dist/types/better-auth/types.d.ts +5 -1
- package/dist/types/components/auth/auth-container.d.ts +1 -1
- package/dist/types/components/form/input/date-input.d.ts +4 -4
- package/dist/types/components/form/input/date-time-input.d.ts +4 -4
- package/dist/types/components/form/input/input-container.d.ts +1 -1
- package/dist/types/components/form/input/nullable-date-input.d.ts +2 -2
- package/dist/types/components/form/input/nullable-date-time-input.d.ts +2 -2
- package/dist/{ur-DmfFC6MV.cjs → ur-BZakU0iv.cjs} +1 -1
- package/dist/{ur-COVuSAxC.js → ur-CdnwwnG_.js} +1 -1
- package/dist/{use-form-Ca0kF4af.cjs → use-form-BvBkVEKi.cjs} +1 -1
- package/dist/{use-form-CEY-gUUT.js → use-form-D_TJyZhP.js} +2 -2
- package/dist/{vi-DI3te8d5.js → vi-Bwvz1d_n.js} +1 -1
- package/dist/{vi-DvY-zvIr.cjs → vi-D1nly0nb.cjs} +1 -1
- package/dist/{widget-customization-CHxaaaEV.cjs → widget-customization-CD_NyRQ8.cjs} +1 -1
- package/dist/{widget-customization-BZ8aKWRK.js → widget-customization-D2a6SVP3.js} +5 -5
- package/dist/{zh-DJhzbpi2.cjs → zh-DBk7sSD9.cjs} +1 -1
- package/dist/{zh-DKIbNXv8.js → zh-hy7Uw6c5.js} +1 -1
- package/package.json +1 -1
- package/dist/auth-divider-BHAbd_PS.cjs +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { localStorageProp as
|
|
2
|
-
import { S as
|
|
3
|
-
import { t as
|
|
4
|
-
import { o as
|
|
5
|
-
import { Validation as
|
|
6
|
-
import { d as f, A as
|
|
7
|
-
import { P as
|
|
8
|
-
import { B as
|
|
9
|
-
import { T as
|
|
10
|
-
import { I as
|
|
11
|
-
import { classes as
|
|
12
|
-
const
|
|
1
|
+
import { localStorageProp as pe, prop as M, Use as x, html as m, attr as t, on as C, When as _, coalesce as g, Ensure as j, computedOf as b, bind as de, ForEach as he, Value as se, OneOfValue as ge, Fragment as U } from "@tempots/dom";
|
|
2
|
+
import { S as $ } from "./stack-BLMteGTn.js";
|
|
3
|
+
import { t as fe, u as X, a as ce, b as z } from "./use-form-D_TJyZhP.js";
|
|
4
|
+
import { o as Y, b as G, s as A, M as be } from "./modal-YKqlh4Dk.js";
|
|
5
|
+
import { Validation as ne } from "@tempots/std";
|
|
6
|
+
import { d as f, A as B } from "./translations-CxDUnbXn.js";
|
|
7
|
+
import { P as H, E as Z, N as J } from "./notice-Du3tWJTW.js";
|
|
8
|
+
import { B as N } from "./input-container-CO3DNqpp.js";
|
|
9
|
+
import { T as we } from "./text-input-BAn02BzO.js";
|
|
10
|
+
import { I as _e } from "./translations-DT5QQ4WO.js";
|
|
11
|
+
import { classes as Le } from "@tempots/ui";
|
|
12
|
+
const K = {
|
|
13
13
|
google: { name: "Google", icon: "logos:google-icon", color: "#4285f4" },
|
|
14
14
|
github: { name: "GitHub", icon: "logos:github-icon", color: "#333" },
|
|
15
15
|
apple: { name: "Apple", icon: "logos:apple", color: "#000" },
|
|
@@ -55,36 +55,36 @@ const Y = {
|
|
|
55
55
|
paypal: { name: "PayPal", icon: "logos:paypal", color: "#0070ba" },
|
|
56
56
|
x: { name: "X", icon: "simple-icons:x", color: "#000" }
|
|
57
57
|
};
|
|
58
|
-
function
|
|
59
|
-
return
|
|
58
|
+
function ve(e) {
|
|
59
|
+
return K[e]?.name || e;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
return
|
|
61
|
+
function Ve(e) {
|
|
62
|
+
return K[e]?.icon || "mdi:account";
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
return
|
|
64
|
+
function De(e) {
|
|
65
|
+
return K[e]?.color || "#666";
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
return o.replace("{provider}",
|
|
67
|
+
function Fe(e, o = "Continue with {provider}") {
|
|
68
|
+
return o.replace("{provider}", ve(e));
|
|
69
69
|
}
|
|
70
|
-
const
|
|
70
|
+
const T = {
|
|
71
71
|
minLength: 8,
|
|
72
72
|
requireUppercase: !0,
|
|
73
73
|
requireLowercase: !0,
|
|
74
74
|
requireNumbers: !0,
|
|
75
75
|
requireSymbols: !1
|
|
76
76
|
};
|
|
77
|
-
function
|
|
77
|
+
function Oe(e) {
|
|
78
78
|
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function ke(e = 32) {
|
|
81
81
|
const o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
82
|
-
let
|
|
82
|
+
let n = "";
|
|
83
83
|
for (let a = 0; a < e; a++)
|
|
84
|
-
|
|
85
|
-
return
|
|
84
|
+
n += o.charAt(Math.floor(Math.random() * o.length));
|
|
85
|
+
return n;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function We(e, o, n, a = [], c = {}) {
|
|
88
88
|
const r = {
|
|
89
89
|
google: "https://accounts.google.com/oauth/authorize",
|
|
90
90
|
github: "https://github.com/login/oauth/authorize",
|
|
@@ -135,20 +135,20 @@ function De(e, o, s, a = [], c = {}) {
|
|
|
135
135
|
yahoo: ["openid", "email", "profile"],
|
|
136
136
|
paypal: ["openid", "email", "profile"],
|
|
137
137
|
x: ["openid", "email", "profile"]
|
|
138
|
-
},
|
|
139
|
-
if (!
|
|
138
|
+
}, s = r[e];
|
|
139
|
+
if (!s)
|
|
140
140
|
throw new Error(`Unsupported provider: ${e}`);
|
|
141
|
-
const
|
|
141
|
+
const l = a.length > 0 ? a : u[e], i = ke(), h = new URLSearchParams({
|
|
142
142
|
client_id: o,
|
|
143
|
-
redirect_uri:
|
|
144
|
-
scope:
|
|
143
|
+
redirect_uri: n,
|
|
144
|
+
scope: l.join(" "),
|
|
145
145
|
state: i,
|
|
146
146
|
response_type: "code",
|
|
147
147
|
...c
|
|
148
148
|
});
|
|
149
|
-
return `${
|
|
149
|
+
return `${s}?${h.toString()}`;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function Ge(e, o, n, a) {
|
|
152
152
|
const c = window.open(
|
|
153
153
|
e,
|
|
154
154
|
`${o}_login`,
|
|
@@ -160,111 +160,111 @@ function Fe(e, o, s, a) {
|
|
|
160
160
|
}
|
|
161
161
|
const r = setInterval(() => {
|
|
162
162
|
c.closed && (clearInterval(r), a?.(new Error("Login cancelled")));
|
|
163
|
-
}, 1e3), u = (
|
|
164
|
-
|
|
163
|
+
}, 1e3), u = (s) => {
|
|
164
|
+
s.origin === window.location.origin && (s.data.type === "SOCIAL_LOGIN_SUCCESS" ? (clearInterval(r), c.close(), window.removeEventListener("message", u), n?.(s.data.result)) : s.data.type === "SOCIAL_LOGIN_ERROR" && (clearInterval(r), c.close(), window.removeEventListener("message", u), a?.(new Error(s.data.error))));
|
|
165
165
|
};
|
|
166
166
|
window.addEventListener("message", u);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function He(e) {
|
|
169
169
|
return e instanceof Error ? e.message : typeof e == "string" ? e : e && typeof e == "object" && "message" in e ? String(e.message) : "An unexpected error occurred";
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function je() {
|
|
172
172
|
return typeof window < "u" && typeof document < "u";
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Q({
|
|
175
175
|
task: e,
|
|
176
176
|
message: o,
|
|
177
|
-
onStart:
|
|
177
|
+
onStart: n,
|
|
178
178
|
onEnd: a
|
|
179
179
|
}) {
|
|
180
180
|
return async (c) => {
|
|
181
|
-
|
|
182
|
-
const r = await
|
|
181
|
+
n?.();
|
|
182
|
+
const r = await fe({
|
|
183
183
|
task: e != null ? () => e(c) : async () => null,
|
|
184
184
|
errorMessage: o,
|
|
185
185
|
errorPath: ["root"],
|
|
186
|
-
validation: (u) => u != null ?
|
|
186
|
+
validation: (u) => u != null ? ne.invalid({ message: u }) : ne.valid
|
|
187
187
|
});
|
|
188
188
|
return a?.(), r;
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
const
|
|
193
|
-
let a =
|
|
191
|
+
function ee(e = T, o) {
|
|
192
|
+
const n = o ?? f;
|
|
193
|
+
let a = A();
|
|
194
194
|
return e.minLength && (a = a.min(
|
|
195
195
|
e.minLength,
|
|
196
|
-
(
|
|
196
|
+
(n.passwordMinLength ?? f.passwordMinLength)(
|
|
197
197
|
e.minLength
|
|
198
198
|
)
|
|
199
199
|
)), e.requireUppercase && (a = a.regex(
|
|
200
200
|
/[A-Z]/,
|
|
201
|
-
|
|
201
|
+
n.passwordRequireUppercase ?? f.passwordRequireUppercase
|
|
202
202
|
)), e.requireLowercase && (a = a.regex(
|
|
203
203
|
/[a-z]/,
|
|
204
|
-
|
|
204
|
+
n.passwordRequireLowercase ?? f.passwordRequireLowercase
|
|
205
205
|
)), e.requireNumbers && (a = a.regex(
|
|
206
206
|
/[0-9]/,
|
|
207
|
-
|
|
207
|
+
n.passwordRequireNumber ?? f.passwordRequireNumber
|
|
208
208
|
)), e.requireSymbols && (a = a.regex(
|
|
209
209
|
/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/,
|
|
210
|
-
|
|
210
|
+
n.passwordRequireSpecialChar ?? f.passwordRequireSpecialChar
|
|
211
211
|
)), e.customValidation && (a = a.refine((c) => e.customValidation(c))), a;
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function V(e) {
|
|
214
214
|
const o = e ?? f;
|
|
215
|
-
return
|
|
215
|
+
return A().min(1, o.emailRequired ?? f.emailRequired).email(o.invalidEmail ?? f.invalidEmail);
|
|
216
216
|
}
|
|
217
|
-
const
|
|
218
|
-
function
|
|
219
|
-
const
|
|
220
|
-
(c) => c.length > 0 ? null :
|
|
217
|
+
const le = V();
|
|
218
|
+
function oe(e, o) {
|
|
219
|
+
const n = o ?? f, a = e ? ee(e, o) : A().refine(
|
|
220
|
+
(c) => c.length > 0 ? null : n.passwordRequired ?? f.passwordRequired
|
|
221
221
|
);
|
|
222
|
-
return
|
|
223
|
-
email:
|
|
222
|
+
return Y({
|
|
223
|
+
email: V(o),
|
|
224
224
|
password: a,
|
|
225
|
-
rememberMe:
|
|
225
|
+
rememberMe: G().default(!1)
|
|
226
226
|
}).schema();
|
|
227
227
|
}
|
|
228
|
-
function
|
|
229
|
-
const a =
|
|
230
|
-
name: r ?
|
|
231
|
-
email:
|
|
228
|
+
function te(e = T, o, n) {
|
|
229
|
+
const a = n ?? f, c = ee(e, n), r = o?.showNameField !== !1, u = o?.showConfirmPassword !== !1, s = o?.showAcceptTermsAndConditions !== !1, l = {
|
|
230
|
+
name: r ? A().min(1, a.nameRequired ?? f.nameRequired).optional() : A().optional(),
|
|
231
|
+
email: V(n),
|
|
232
232
|
password: c,
|
|
233
233
|
// Always require confirmPassword as string to match SignUpData interface
|
|
234
234
|
// When not shown, it should accept any value (including empty string)
|
|
235
|
-
confirmPassword: u ?
|
|
235
|
+
confirmPassword: u ? A().min(
|
|
236
236
|
1,
|
|
237
237
|
a.confirmPasswordRequired ?? f.confirmPasswordRequired
|
|
238
|
-
) :
|
|
238
|
+
) : A(),
|
|
239
239
|
// Accept any string value when not shown
|
|
240
|
-
acceptTerms:
|
|
240
|
+
acceptTerms: s ? G().refine(
|
|
241
241
|
(h) => h === !0,
|
|
242
242
|
a.acceptTermsRequired ?? f.acceptTermsRequired
|
|
243
|
-
) :
|
|
243
|
+
) : G().default(!0)
|
|
244
244
|
// Default to true when not shown
|
|
245
|
-
}, i =
|
|
245
|
+
}, i = Y(l);
|
|
246
246
|
return u ? i.refine(
|
|
247
247
|
(h) => h.password === h.confirmPassword ? null : a.passwordsDoNotMatch ?? f.passwordsDoNotMatch,
|
|
248
248
|
{ path: ["confirmPassword"] }
|
|
249
249
|
).schema() : i.schema();
|
|
250
250
|
}
|
|
251
|
-
const
|
|
252
|
-
email:
|
|
253
|
-
}).schema(),
|
|
254
|
-
signIn:
|
|
255
|
-
signUp:
|
|
256
|
-
resetPassword: () =>
|
|
251
|
+
const me = Y({
|
|
252
|
+
email: le
|
|
253
|
+
}).schema(), Xe = oe(), Ye = te(), Ze = {
|
|
254
|
+
signIn: oe,
|
|
255
|
+
signUp: te,
|
|
256
|
+
resetPassword: () => me
|
|
257
257
|
};
|
|
258
|
-
function
|
|
259
|
-
const
|
|
260
|
-
return c.success ? null : c.errors[0]?.message || (
|
|
258
|
+
function Je(e, o) {
|
|
259
|
+
const n = o ?? f, c = (o ? V(o) : le).validate(e);
|
|
260
|
+
return c.success ? null : c.errors[0]?.message || (n.invalidEmailAddress ?? f.invalidEmailAddress);
|
|
261
261
|
}
|
|
262
|
-
function
|
|
263
|
-
const a =
|
|
262
|
+
function Ke(e, o = T, n) {
|
|
263
|
+
const a = n ?? f, r = ee(o, n).validate(e);
|
|
264
264
|
return r.success ? null : r.errors[0]?.message || (a.invalidPassword ?? f.invalidPassword);
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
const
|
|
266
|
+
function ae(e, o = T) {
|
|
267
|
+
const n = {
|
|
268
268
|
length: e.length >= (o.minLength || 8),
|
|
269
269
|
uppercase: /[A-Z]/.test(e),
|
|
270
270
|
lowercase: /[a-z]/.test(e),
|
|
@@ -281,89 +281,89 @@ function ee(e, o = $) {
|
|
|
281
281
|
o.requireSymbols,
|
|
282
282
|
!!o.customValidation
|
|
283
283
|
].filter(Boolean).length, c = [
|
|
284
|
-
|
|
285
|
-
o.requireUppercase ?
|
|
286
|
-
o.requireLowercase ?
|
|
287
|
-
o.requireNumbers ?
|
|
288
|
-
o.requireSymbols ?
|
|
289
|
-
o.customValidation ?
|
|
290
|
-
].filter((
|
|
284
|
+
n.length,
|
|
285
|
+
o.requireUppercase ? n.uppercase : null,
|
|
286
|
+
o.requireLowercase ? n.lowercase : null,
|
|
287
|
+
o.requireNumbers ? n.numbers : null,
|
|
288
|
+
o.requireSymbols ? n.symbols : null,
|
|
289
|
+
o.customValidation ? n.custom : null
|
|
290
|
+
].filter((s) => s === !0).length, r = a > 0 ? Math.round(c / a * 100) : 0;
|
|
291
291
|
let u;
|
|
292
|
-
return r < 40 ? u = "weak" : r < 60 ? u = "fair" : r < 80 ? u = "good" : u = "strong", { strength: u, score: r, checks:
|
|
292
|
+
return r < 40 ? u = "weak" : r < 60 ? u = "fair" : r < 80 ? u = "good" : u = "strong", { strength: u, score: r, checks: n };
|
|
293
293
|
}
|
|
294
|
-
const
|
|
294
|
+
const ue = () => pe({
|
|
295
295
|
key: "bui_auth_email",
|
|
296
296
|
defaultValue: null
|
|
297
297
|
});
|
|
298
|
-
function
|
|
298
|
+
function ye({
|
|
299
299
|
onSignIn: e,
|
|
300
300
|
passwordRules: o,
|
|
301
|
-
labels:
|
|
301
|
+
labels: n,
|
|
302
302
|
showRememberMe: a
|
|
303
303
|
}) {
|
|
304
|
-
const c =
|
|
304
|
+
const c = M(!1), r = ue(), u = oe(o), s = X({
|
|
305
305
|
schema: u,
|
|
306
|
-
onSubmit:
|
|
306
|
+
onSubmit: Q({
|
|
307
307
|
task: e,
|
|
308
|
-
message: "
|
|
308
|
+
message: "Sign in failed",
|
|
309
309
|
onStart: () => {
|
|
310
|
-
c.set(!0),
|
|
310
|
+
c.set(!0), s.controller.disable();
|
|
311
311
|
},
|
|
312
312
|
onEnd: () => {
|
|
313
|
-
c.set(!1),
|
|
313
|
+
c.set(!1), s.controller.enable();
|
|
314
314
|
}
|
|
315
315
|
}),
|
|
316
316
|
initialValue: {
|
|
317
317
|
email: "",
|
|
318
318
|
password: ""
|
|
319
319
|
}
|
|
320
|
-
}), { controller:
|
|
321
|
-
c.on(
|
|
322
|
-
const h =
|
|
320
|
+
}), { controller: l, submit: i } = s;
|
|
321
|
+
c.on(l.setDisabled);
|
|
322
|
+
const h = l.field("email"), L = l.field("password");
|
|
323
323
|
return r.on((v) => {
|
|
324
324
|
v != null && h.change(v);
|
|
325
325
|
}), h.signal.on((v) => {
|
|
326
326
|
r.value != null && (r.value = v);
|
|
327
|
-
}),
|
|
328
|
-
|
|
327
|
+
}), x(
|
|
328
|
+
B,
|
|
329
329
|
(v) => (
|
|
330
330
|
// Email/Password form
|
|
331
|
-
|
|
331
|
+
m.form(
|
|
332
332
|
t.class("bc-auth-form__form"),
|
|
333
|
-
|
|
334
|
-
|
|
333
|
+
C.submit(i),
|
|
334
|
+
$(
|
|
335
335
|
t.class("bc-auth-form__fields"),
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
(
|
|
336
|
+
j(
|
|
337
|
+
l.error,
|
|
338
|
+
(y) => J(
|
|
339
339
|
{ variant: "danger", tone: "prominent", role: "alert" },
|
|
340
|
-
|
|
340
|
+
m.div(y)
|
|
341
341
|
)
|
|
342
342
|
),
|
|
343
343
|
// Email field
|
|
344
|
-
|
|
344
|
+
z(Z, {
|
|
345
345
|
controller: h,
|
|
346
|
-
label: g(
|
|
346
|
+
label: g(n?.emailLabel, v.$.emailLabel)
|
|
347
347
|
}),
|
|
348
348
|
// Password field
|
|
349
|
-
|
|
349
|
+
z(H, {
|
|
350
350
|
controller: L,
|
|
351
|
-
label: g(
|
|
351
|
+
label: g(n?.passwordLabel, v.$.passwordLabel)
|
|
352
352
|
}),
|
|
353
353
|
// Remember me checkbox
|
|
354
354
|
_(
|
|
355
355
|
a ?? !0,
|
|
356
|
-
() =>
|
|
356
|
+
() => m.div(
|
|
357
357
|
t.class("bc-auth-form__remember-me"),
|
|
358
|
-
|
|
358
|
+
m.label(
|
|
359
359
|
t.class("bc-auth-form__checkbox-label"),
|
|
360
|
-
|
|
361
|
-
value: r.map((
|
|
362
|
-
after:
|
|
363
|
-
g(
|
|
360
|
+
ce({
|
|
361
|
+
value: r.map((y) => y != null),
|
|
362
|
+
after: m.span(
|
|
363
|
+
g(n?.rememberMeLabel, v.$.rememberMeLabel)
|
|
364
364
|
),
|
|
365
|
-
onChange: (
|
|
366
|
-
|
|
365
|
+
onChange: (y) => {
|
|
366
|
+
y ? r.value = h.signal.value ?? "" : r.value = null;
|
|
367
367
|
}
|
|
368
368
|
})
|
|
369
369
|
)
|
|
@@ -371,25 +371,25 @@ function Le({
|
|
|
371
371
|
)
|
|
372
372
|
),
|
|
373
373
|
// Submit button
|
|
374
|
-
|
|
374
|
+
N(
|
|
375
375
|
{
|
|
376
376
|
type: "submit",
|
|
377
377
|
variant: "filled",
|
|
378
378
|
color: "primary",
|
|
379
379
|
loading: c,
|
|
380
|
-
disabled:
|
|
380
|
+
disabled: l.disabledOrHasErrors
|
|
381
381
|
},
|
|
382
382
|
t.class("bc-auth-form__submit"),
|
|
383
|
-
g(
|
|
383
|
+
g(n?.signInButton, v.$.signInButton)
|
|
384
384
|
)
|
|
385
385
|
)
|
|
386
386
|
)
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function Se({
|
|
390
390
|
password: e,
|
|
391
|
-
rules: o =
|
|
392
|
-
showLabel:
|
|
391
|
+
rules: o = T,
|
|
392
|
+
showLabel: n = !0,
|
|
393
393
|
className: a
|
|
394
394
|
}) {
|
|
395
395
|
const c = b(e)((i) => !i || i.length === 0 ? {
|
|
@@ -403,7 +403,7 @@ function ve({
|
|
|
403
403
|
symbols: !1,
|
|
404
404
|
custom: !1
|
|
405
405
|
}
|
|
406
|
-
} :
|
|
406
|
+
} : ae(i, o)), r = c.map((i) => i.strength), u = c.map((i) => i.score), s = c.map((i) => i.checks), l = b(
|
|
407
407
|
r,
|
|
408
408
|
a
|
|
409
409
|
)((i, h) => [
|
|
@@ -411,22 +411,22 @@ function ve({
|
|
|
411
411
|
`bc-password-strength--${i}`,
|
|
412
412
|
h
|
|
413
413
|
].filter(Boolean).join(" "));
|
|
414
|
-
return
|
|
415
|
-
t.class(
|
|
414
|
+
return m.div(
|
|
415
|
+
t.class(l),
|
|
416
416
|
// Strength bar
|
|
417
|
-
|
|
417
|
+
m.div(
|
|
418
418
|
t.class("bc-password-strength__bar"),
|
|
419
|
-
|
|
419
|
+
m.div(
|
|
420
420
|
t.class("bc-password-strength__fill"),
|
|
421
421
|
t.style(u.map((i) => `width: ${i}%`))
|
|
422
422
|
)
|
|
423
423
|
),
|
|
424
424
|
// Strength label (optional)
|
|
425
425
|
_(
|
|
426
|
-
|
|
427
|
-
() =>
|
|
428
|
-
|
|
429
|
-
(i) =>
|
|
426
|
+
n,
|
|
427
|
+
() => x(
|
|
428
|
+
B,
|
|
429
|
+
(i) => m.div(
|
|
430
430
|
t.class("bc-password-strength__label"),
|
|
431
431
|
b(
|
|
432
432
|
r,
|
|
@@ -449,23 +449,23 @@ function ve({
|
|
|
449
449
|
)
|
|
450
450
|
),
|
|
451
451
|
// Requirements checklist
|
|
452
|
-
|
|
452
|
+
m.div(
|
|
453
453
|
t.class("bc-password-strength__requirements"),
|
|
454
454
|
// Length requirement
|
|
455
455
|
_(
|
|
456
456
|
o.minLength !== void 0,
|
|
457
|
-
() =>
|
|
457
|
+
() => m.div(
|
|
458
458
|
t.class("bc-password-strength__requirement"),
|
|
459
459
|
t.class(
|
|
460
|
-
b(
|
|
460
|
+
b(s)(
|
|
461
461
|
(i) => i.length ? "bc-password-strength__requirement--met" : ""
|
|
462
462
|
)
|
|
463
463
|
),
|
|
464
|
-
|
|
464
|
+
m.span(
|
|
465
465
|
t.class("bc-password-strength__requirement-icon"),
|
|
466
|
-
b(
|
|
466
|
+
b(s)((i) => i.length ? "✓" : "○")
|
|
467
467
|
),
|
|
468
|
-
|
|
468
|
+
m.span(
|
|
469
469
|
t.class("bc-password-strength__requirement-text"),
|
|
470
470
|
`At least ${o.minLength} characters`
|
|
471
471
|
)
|
|
@@ -474,18 +474,18 @@ function ve({
|
|
|
474
474
|
// Uppercase requirement
|
|
475
475
|
_(
|
|
476
476
|
o.requireUppercase === !0,
|
|
477
|
-
() =>
|
|
477
|
+
() => m.div(
|
|
478
478
|
t.class("bc-password-strength__requirement"),
|
|
479
479
|
t.class(
|
|
480
|
-
b(
|
|
480
|
+
b(s)(
|
|
481
481
|
(i) => i.uppercase ? "bc-password-strength__requirement--met" : ""
|
|
482
482
|
)
|
|
483
483
|
),
|
|
484
|
-
|
|
484
|
+
m.span(
|
|
485
485
|
t.class("bc-password-strength__requirement-icon"),
|
|
486
|
-
b(
|
|
486
|
+
b(s)((i) => i.uppercase ? "✓" : "○")
|
|
487
487
|
),
|
|
488
|
-
|
|
488
|
+
m.span(
|
|
489
489
|
t.class("bc-password-strength__requirement-text"),
|
|
490
490
|
"One uppercase letter"
|
|
491
491
|
)
|
|
@@ -494,18 +494,18 @@ function ve({
|
|
|
494
494
|
// Lowercase requirement
|
|
495
495
|
_(
|
|
496
496
|
o.requireLowercase === !0,
|
|
497
|
-
() =>
|
|
497
|
+
() => m.div(
|
|
498
498
|
t.class("bc-password-strength__requirement"),
|
|
499
499
|
t.class(
|
|
500
|
-
b(
|
|
500
|
+
b(s)(
|
|
501
501
|
(i) => i.lowercase ? "bc-password-strength__requirement--met" : ""
|
|
502
502
|
)
|
|
503
503
|
),
|
|
504
|
-
|
|
504
|
+
m.span(
|
|
505
505
|
t.class("bc-password-strength__requirement-icon"),
|
|
506
|
-
b(
|
|
506
|
+
b(s)((i) => i.lowercase ? "✓" : "○")
|
|
507
507
|
),
|
|
508
|
-
|
|
508
|
+
m.span(
|
|
509
509
|
t.class("bc-password-strength__requirement-text"),
|
|
510
510
|
"One lowercase letter"
|
|
511
511
|
)
|
|
@@ -514,18 +514,18 @@ function ve({
|
|
|
514
514
|
// Numbers requirement
|
|
515
515
|
_(
|
|
516
516
|
o.requireNumbers === !0,
|
|
517
|
-
() =>
|
|
517
|
+
() => m.div(
|
|
518
518
|
t.class("bc-password-strength__requirement"),
|
|
519
519
|
t.class(
|
|
520
|
-
b(
|
|
520
|
+
b(s)(
|
|
521
521
|
(i) => i.numbers ? "bc-password-strength__requirement--met" : ""
|
|
522
522
|
)
|
|
523
523
|
),
|
|
524
|
-
|
|
524
|
+
m.span(
|
|
525
525
|
t.class("bc-password-strength__requirement-icon"),
|
|
526
|
-
b(
|
|
526
|
+
b(s)((i) => i.numbers ? "✓" : "○")
|
|
527
527
|
),
|
|
528
|
-
|
|
528
|
+
m.span(
|
|
529
529
|
t.class("bc-password-strength__requirement-text"),
|
|
530
530
|
"One number"
|
|
531
531
|
)
|
|
@@ -534,18 +534,18 @@ function ve({
|
|
|
534
534
|
// Symbols requirement
|
|
535
535
|
_(
|
|
536
536
|
o.requireSymbols === !0,
|
|
537
|
-
() =>
|
|
537
|
+
() => m.div(
|
|
538
538
|
t.class("bc-password-strength__requirement"),
|
|
539
539
|
t.class(
|
|
540
|
-
b(
|
|
540
|
+
b(s)(
|
|
541
541
|
(i) => i.symbols ? "bc-password-strength__requirement--met" : ""
|
|
542
542
|
)
|
|
543
543
|
),
|
|
544
|
-
|
|
544
|
+
m.span(
|
|
545
545
|
t.class("bc-password-strength__requirement-icon"),
|
|
546
|
-
b(
|
|
546
|
+
b(s)((i) => i.symbols ? "✓" : "○")
|
|
547
547
|
),
|
|
548
|
-
|
|
548
|
+
m.span(
|
|
549
549
|
t.class("bc-password-strength__requirement-text"),
|
|
550
550
|
"One special character"
|
|
551
551
|
)
|
|
@@ -554,191 +554,191 @@ function ve({
|
|
|
554
554
|
)
|
|
555
555
|
);
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function Qe({
|
|
558
558
|
password: e,
|
|
559
|
-
rules: o =
|
|
560
|
-
className:
|
|
559
|
+
rules: o = T,
|
|
560
|
+
className: n
|
|
561
561
|
}) {
|
|
562
|
-
const a = b(e)((
|
|
562
|
+
const a = b(e)((s) => !s || s.length === 0 ? { strength: "weak", score: 0 } : ae(s, o)), c = a.map((s) => s.strength), r = a.map((s) => s.score), u = b(
|
|
563
563
|
c,
|
|
564
|
-
|
|
565
|
-
)((
|
|
564
|
+
n
|
|
565
|
+
)((s, l) => [
|
|
566
566
|
"bc-password-strength-bar",
|
|
567
|
-
`bc-password-strength-bar--${
|
|
568
|
-
|
|
567
|
+
`bc-password-strength-bar--${s}`,
|
|
568
|
+
l
|
|
569
569
|
].filter(Boolean).join(" "));
|
|
570
|
-
return
|
|
570
|
+
return m.div(
|
|
571
571
|
t.class(u),
|
|
572
|
-
|
|
572
|
+
m.div(
|
|
573
573
|
t.class("bc-password-strength-bar__fill"),
|
|
574
|
-
t.style(r.map((
|
|
574
|
+
t.style(r.map((s) => `width: ${s}%`))
|
|
575
575
|
)
|
|
576
576
|
);
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function eo({
|
|
579
579
|
password: e,
|
|
580
|
-
rules: o =
|
|
581
|
-
className:
|
|
580
|
+
rules: o = T,
|
|
581
|
+
className: n
|
|
582
582
|
}) {
|
|
583
|
-
const a = b(e)((r) => !r || r.length === 0 ? "weak" :
|
|
583
|
+
const a = b(e)((r) => !r || r.length === 0 ? "weak" : ae(r, o).strength), c = b(
|
|
584
584
|
a,
|
|
585
|
-
|
|
585
|
+
n
|
|
586
586
|
)((r, u) => [
|
|
587
587
|
"bc-password-strength-text",
|
|
588
588
|
`bc-password-strength-text--${r}`,
|
|
589
589
|
u
|
|
590
590
|
].filter(Boolean).join(" "));
|
|
591
|
-
return
|
|
592
|
-
|
|
593
|
-
(r) =>
|
|
591
|
+
return x(
|
|
592
|
+
B,
|
|
593
|
+
(r) => m.span(
|
|
594
594
|
t.class(c),
|
|
595
595
|
b(
|
|
596
596
|
a,
|
|
597
597
|
r
|
|
598
|
-
)((u,
|
|
598
|
+
)((u, s) => {
|
|
599
599
|
switch (u) {
|
|
600
600
|
case "weak":
|
|
601
|
-
return
|
|
601
|
+
return s.passwordStrengthWeak;
|
|
602
602
|
case "fair":
|
|
603
|
-
return
|
|
603
|
+
return s.passwordStrengthFair;
|
|
604
604
|
case "good":
|
|
605
|
-
return
|
|
605
|
+
return s.passwordStrengthGood;
|
|
606
606
|
case "strong":
|
|
607
|
-
return
|
|
607
|
+
return s.passwordStrengthStrong;
|
|
608
608
|
default:
|
|
609
|
-
return
|
|
609
|
+
return s.passwordStrengthWeak;
|
|
610
610
|
}
|
|
611
611
|
})
|
|
612
612
|
)
|
|
613
613
|
);
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function qe({
|
|
616
616
|
passwordRules: e,
|
|
617
617
|
labels: o,
|
|
618
|
-
initialEmail:
|
|
618
|
+
initialEmail: n,
|
|
619
619
|
initialName: a,
|
|
620
620
|
showPasswordStrength: c,
|
|
621
621
|
onSignUp: r,
|
|
622
622
|
showNameField: u,
|
|
623
|
-
showConfirmPassword:
|
|
624
|
-
showAcceptTermsAndConditions:
|
|
623
|
+
showConfirmPassword: s,
|
|
624
|
+
showAcceptTermsAndConditions: l,
|
|
625
625
|
termsAndConditions: i
|
|
626
626
|
}) {
|
|
627
|
-
const h =
|
|
627
|
+
const h = M(!1), L = e || T, v = typeof s == "boolean" ? s : s != null ? s.value : !1, y = typeof l == "boolean" ? l : l != null ? l.value : !1, D = te(L, {
|
|
628
628
|
showNameField: u !== !1,
|
|
629
|
-
showConfirmPassword:
|
|
630
|
-
showAcceptTermsAndConditions:
|
|
631
|
-
}),
|
|
632
|
-
schema:
|
|
633
|
-
onSubmit:
|
|
634
|
-
task: r != null ? (
|
|
635
|
-
email:
|
|
636
|
-
password:
|
|
637
|
-
name:
|
|
638
|
-
acceptTerms:
|
|
629
|
+
showConfirmPassword: v,
|
|
630
|
+
showAcceptTermsAndConditions: y
|
|
631
|
+
}), E = X({
|
|
632
|
+
schema: D,
|
|
633
|
+
onSubmit: Q({
|
|
634
|
+
task: r != null ? (k) => r({
|
|
635
|
+
email: k.email,
|
|
636
|
+
password: k.password,
|
|
637
|
+
name: k.name,
|
|
638
|
+
acceptTerms: k.acceptTerms
|
|
639
639
|
}) : void 0,
|
|
640
|
-
message: "
|
|
640
|
+
message: "Sign up failed",
|
|
641
641
|
onStart: () => {
|
|
642
|
-
h.set(!0),
|
|
642
|
+
h.set(!0), E.controller.disable();
|
|
643
643
|
},
|
|
644
644
|
onEnd: () => {
|
|
645
|
-
h.set(!1),
|
|
645
|
+
h.set(!1), E.controller.enable();
|
|
646
646
|
}
|
|
647
647
|
}),
|
|
648
648
|
initialValue: {
|
|
649
649
|
name: a ?? "",
|
|
650
|
-
email:
|
|
650
|
+
email: n ?? "",
|
|
651
651
|
password: "",
|
|
652
652
|
confirmPassword: "",
|
|
653
653
|
acceptTerms: !1
|
|
654
654
|
}
|
|
655
|
-
}), { controller: S, submit:
|
|
655
|
+
}), { controller: S, submit: F } = E;
|
|
656
656
|
h.on(S.setDisabled);
|
|
657
|
-
const
|
|
658
|
-
return
|
|
659
|
-
|
|
660
|
-
(
|
|
657
|
+
const O = S.field("name"), W = S.field("email"), P = S.field("password"), q = S.field("confirmPassword"), I = S.field("acceptTerms");
|
|
658
|
+
return x(
|
|
659
|
+
B,
|
|
660
|
+
(k) => (
|
|
661
661
|
// Registration form
|
|
662
|
-
|
|
662
|
+
m.form(
|
|
663
663
|
t.class("bc-auth-form__form"),
|
|
664
|
-
|
|
665
|
-
|
|
664
|
+
C.submit(F),
|
|
665
|
+
$(
|
|
666
666
|
t.class("bc-auth-form__fields"),
|
|
667
|
-
|
|
667
|
+
j(
|
|
668
668
|
S.error,
|
|
669
|
-
(
|
|
669
|
+
(w) => J(
|
|
670
670
|
{ variant: "danger", tone: "prominent", role: "alert" },
|
|
671
|
-
|
|
671
|
+
m.div(w)
|
|
672
672
|
)
|
|
673
673
|
),
|
|
674
674
|
// Name field (optional)
|
|
675
675
|
_(
|
|
676
676
|
u !== !1,
|
|
677
|
-
() =>
|
|
678
|
-
controller:
|
|
679
|
-
(
|
|
680
|
-
(
|
|
677
|
+
() => z(we, {
|
|
678
|
+
controller: O.transform(
|
|
679
|
+
(w) => w ?? "",
|
|
680
|
+
(w) => w === "" ? void 0 : w
|
|
681
681
|
),
|
|
682
|
-
label: g(o?.nameLabel,
|
|
682
|
+
label: g(o?.nameLabel, k.$.nameLabel)
|
|
683
683
|
})
|
|
684
684
|
),
|
|
685
685
|
// Email field
|
|
686
|
-
|
|
687
|
-
controller:
|
|
688
|
-
label: g(o?.emailLabel,
|
|
686
|
+
z(Z, {
|
|
687
|
+
controller: W,
|
|
688
|
+
label: g(o?.emailLabel, k.$.emailLabel)
|
|
689
689
|
}),
|
|
690
690
|
// Password field
|
|
691
|
-
|
|
692
|
-
controller:
|
|
693
|
-
label: g(o?.passwordLabel,
|
|
691
|
+
z(H, {
|
|
692
|
+
controller: P,
|
|
693
|
+
label: g(o?.passwordLabel, k.$.passwordLabel)
|
|
694
694
|
}),
|
|
695
695
|
// Password strength indicator
|
|
696
696
|
_(
|
|
697
697
|
c ?? !1,
|
|
698
|
-
() =>
|
|
699
|
-
password:
|
|
698
|
+
() => Se({
|
|
699
|
+
password: P.signal,
|
|
700
700
|
rules: L,
|
|
701
701
|
showLabel: !0
|
|
702
702
|
})
|
|
703
703
|
),
|
|
704
704
|
// Confirm password field
|
|
705
705
|
_(
|
|
706
|
-
|
|
707
|
-
() =>
|
|
708
|
-
controller:
|
|
706
|
+
s ?? !1,
|
|
707
|
+
() => z(H, {
|
|
708
|
+
controller: q,
|
|
709
709
|
label: g(
|
|
710
710
|
o?.confirmPasswordLabel,
|
|
711
|
-
|
|
711
|
+
k.$.confirmPasswordLabel
|
|
712
712
|
)
|
|
713
713
|
})
|
|
714
714
|
),
|
|
715
715
|
// Terms acceptance checkbox
|
|
716
716
|
_(
|
|
717
|
-
|
|
718
|
-
() =>
|
|
717
|
+
l ?? !1,
|
|
718
|
+
() => m.div(
|
|
719
719
|
t.class("bc-auth-form__terms"),
|
|
720
|
-
|
|
720
|
+
m.label(
|
|
721
721
|
t.class("bc-auth-form__checkbox-label"),
|
|
722
|
-
|
|
723
|
-
value: I.signal.map((
|
|
724
|
-
onChange: (
|
|
722
|
+
ce({
|
|
723
|
+
value: I.signal.map((w) => w ?? !1),
|
|
724
|
+
onChange: (w) => I.change(w)
|
|
725
725
|
}),
|
|
726
|
-
|
|
727
|
-
i || g(o?.acceptTermsLabel,
|
|
726
|
+
m.span(
|
|
727
|
+
i || g(o?.acceptTermsLabel, k.$.acceptTermsLabel)
|
|
728
728
|
)
|
|
729
729
|
),
|
|
730
730
|
_(
|
|
731
731
|
I.errorVisible,
|
|
732
|
-
() =>
|
|
732
|
+
() => m.div(
|
|
733
733
|
t.class("bc-auth-form__field-error"),
|
|
734
|
-
I.error.map((
|
|
734
|
+
I.error.map((w) => w || "")
|
|
735
735
|
)
|
|
736
736
|
)
|
|
737
737
|
)
|
|
738
738
|
)
|
|
739
739
|
),
|
|
740
740
|
// Submit button
|
|
741
|
-
|
|
741
|
+
N(
|
|
742
742
|
{
|
|
743
743
|
type: "submit",
|
|
744
744
|
variant: "filled",
|
|
@@ -747,19 +747,19 @@ function ke({
|
|
|
747
747
|
disabled: S.disabledOrHasErrors
|
|
748
748
|
},
|
|
749
749
|
t.class("bc-auth-form__submit"),
|
|
750
|
-
g(o?.signUpButton,
|
|
750
|
+
g(o?.signUpButton, k.$.signUpButton)
|
|
751
751
|
)
|
|
752
752
|
)
|
|
753
753
|
)
|
|
754
754
|
);
|
|
755
755
|
}
|
|
756
|
-
function
|
|
756
|
+
function Pe({
|
|
757
757
|
onResetPassword: e,
|
|
758
758
|
labels: o = {}
|
|
759
759
|
}) {
|
|
760
|
-
const
|
|
761
|
-
schema:
|
|
762
|
-
onSubmit:
|
|
760
|
+
const n = ue(), a = M(!1), c = X({
|
|
761
|
+
schema: me,
|
|
762
|
+
onSubmit: Q({
|
|
763
763
|
task: e,
|
|
764
764
|
message: "Reset password failed",
|
|
765
765
|
onStart: () => {
|
|
@@ -774,38 +774,38 @@ function ye({
|
|
|
774
774
|
}
|
|
775
775
|
}), { controller: r, submit: u } = c;
|
|
776
776
|
a.on(r.setDisabled);
|
|
777
|
-
const
|
|
778
|
-
return
|
|
779
|
-
|
|
780
|
-
}),
|
|
781
|
-
|
|
782
|
-
(
|
|
777
|
+
const s = r.field("email");
|
|
778
|
+
return n.on((l) => {
|
|
779
|
+
l != null && s.change(l);
|
|
780
|
+
}), x(
|
|
781
|
+
B,
|
|
782
|
+
(l) => (
|
|
783
783
|
// Reset password form
|
|
784
|
-
|
|
784
|
+
m.form(
|
|
785
785
|
t.class("bc-auth-form__form"),
|
|
786
|
-
|
|
786
|
+
j(
|
|
787
787
|
r.error,
|
|
788
|
-
(i) =>
|
|
788
|
+
(i) => J(
|
|
789
789
|
{ variant: "danger", tone: "prominent", role: "alert" },
|
|
790
|
-
|
|
790
|
+
m.div(i)
|
|
791
791
|
)
|
|
792
792
|
),
|
|
793
793
|
// Description
|
|
794
|
-
|
|
794
|
+
m.p(
|
|
795
795
|
t.class("bc-auth-form__description"),
|
|
796
|
-
g(o?.resetPasswordDescription,
|
|
796
|
+
g(o?.resetPasswordDescription, l.$.resetPasswordDescription)
|
|
797
797
|
),
|
|
798
|
-
|
|
799
|
-
|
|
798
|
+
C.submit(u),
|
|
799
|
+
$(
|
|
800
800
|
t.class("bc-auth-form__fields"),
|
|
801
801
|
// Email field
|
|
802
|
-
|
|
803
|
-
controller:
|
|
804
|
-
label: g(o?.emailLabel,
|
|
802
|
+
z(Z, {
|
|
803
|
+
controller: s,
|
|
804
|
+
label: g(o?.emailLabel, l.$.emailLabel)
|
|
805
805
|
})
|
|
806
806
|
),
|
|
807
807
|
// Submit button
|
|
808
|
-
|
|
808
|
+
N(
|
|
809
809
|
{
|
|
810
810
|
loading: a,
|
|
811
811
|
type: "submit",
|
|
@@ -814,7 +814,7 @@ function ye({
|
|
|
814
814
|
disabled: r.disabledOrHasErrors
|
|
815
815
|
},
|
|
816
816
|
t.class("bc-auth-form__submit"),
|
|
817
|
-
g(o?.resetPasswordButton,
|
|
817
|
+
g(o?.resetPasswordButton, l.$.resetPasswordButton)
|
|
818
818
|
)
|
|
819
819
|
)
|
|
820
820
|
)
|
|
@@ -823,18 +823,18 @@ function ye({
|
|
|
823
823
|
function d({
|
|
824
824
|
provider: e,
|
|
825
825
|
onClick: o,
|
|
826
|
-
size:
|
|
826
|
+
size: n = "md",
|
|
827
827
|
name: a,
|
|
828
828
|
icon: c,
|
|
829
829
|
color: r,
|
|
830
830
|
flow: u,
|
|
831
|
-
labels:
|
|
831
|
+
labels: s
|
|
832
832
|
}) {
|
|
833
|
-
return
|
|
833
|
+
return N(
|
|
834
834
|
{
|
|
835
835
|
type: "button",
|
|
836
836
|
variant: "filled",
|
|
837
|
-
size:
|
|
837
|
+
size: n,
|
|
838
838
|
color: r,
|
|
839
839
|
onClick: async () => {
|
|
840
840
|
if (o)
|
|
@@ -853,34 +853,34 @@ function d({
|
|
|
853
853
|
t.class(
|
|
854
854
|
b(e)((i) => `bc-social-login-button--${i}`)
|
|
855
855
|
),
|
|
856
|
-
|
|
856
|
+
m.span(
|
|
857
857
|
t.class("bc-social-login-button__inner"),
|
|
858
|
-
|
|
858
|
+
m.span(
|
|
859
859
|
t.class("bc-social-login-button__icon"),
|
|
860
|
-
|
|
860
|
+
_e({ icon: c, size: n }, t.class("bc-social-login-button__icon-inner"))
|
|
861
861
|
),
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
(i) =>
|
|
862
|
+
x(
|
|
863
|
+
B,
|
|
864
|
+
(i) => m.span(
|
|
865
865
|
t.class("bc-social-login-button__label"),
|
|
866
|
-
|
|
867
|
-
g(
|
|
866
|
+
de(
|
|
867
|
+
g(s?.continueWithProvider, i.$.continueWithProvider)
|
|
868
868
|
)(a)
|
|
869
869
|
)
|
|
870
870
|
)
|
|
871
871
|
)
|
|
872
872
|
);
|
|
873
873
|
}
|
|
874
|
-
function
|
|
874
|
+
function xe({
|
|
875
875
|
providers: e,
|
|
876
876
|
onProviderClick: o,
|
|
877
|
-
size:
|
|
877
|
+
size: n = "md",
|
|
878
878
|
className: a
|
|
879
879
|
}) {
|
|
880
|
-
return
|
|
880
|
+
return $(
|
|
881
881
|
t.class("bc-social-login-buttons"),
|
|
882
882
|
t.class(a),
|
|
883
|
-
|
|
883
|
+
he(
|
|
884
884
|
e,
|
|
885
885
|
(c) => d({
|
|
886
886
|
provider: c.$.provider,
|
|
@@ -893,7 +893,7 @@ function Se({
|
|
|
893
893
|
onClick: async () => {
|
|
894
894
|
o && await o(c.$.provider.value);
|
|
895
895
|
},
|
|
896
|
-
size:
|
|
896
|
+
size: n
|
|
897
897
|
})
|
|
898
898
|
)
|
|
899
899
|
);
|
|
@@ -1029,346 +1029,354 @@ const p = {
|
|
|
1029
1029
|
color: "blue"
|
|
1030
1030
|
// distinct deep blue tone (not Facebook’s exact blue)
|
|
1031
1031
|
}
|
|
1032
|
-
},
|
|
1032
|
+
}, oo = (e) => d({
|
|
1033
1033
|
...e,
|
|
1034
1034
|
...p.google,
|
|
1035
1035
|
provider: "google"
|
|
1036
|
-
}),
|
|
1036
|
+
}), to = (e) => d({
|
|
1037
1037
|
...e,
|
|
1038
1038
|
...p.github,
|
|
1039
1039
|
provider: "github"
|
|
1040
|
-
}),
|
|
1040
|
+
}), ao = (e) => d({
|
|
1041
1041
|
...e,
|
|
1042
1042
|
...p.apple,
|
|
1043
1043
|
provider: "apple"
|
|
1044
|
-
}),
|
|
1044
|
+
}), so = (e) => d({
|
|
1045
1045
|
...e,
|
|
1046
1046
|
...p.facebook,
|
|
1047
1047
|
provider: "facebook"
|
|
1048
|
-
}),
|
|
1048
|
+
}), no = (e) => d({
|
|
1049
1049
|
...e,
|
|
1050
1050
|
...p.x,
|
|
1051
1051
|
provider: "x"
|
|
1052
|
-
}),
|
|
1052
|
+
}), ro = (e) => d({
|
|
1053
1053
|
...e,
|
|
1054
1054
|
...p.twitter,
|
|
1055
1055
|
provider: "twitter"
|
|
1056
|
-
}),
|
|
1056
|
+
}), io = (e) => d({
|
|
1057
1057
|
...e,
|
|
1058
1058
|
...p.microsoft,
|
|
1059
1059
|
provider: "microsoft"
|
|
1060
|
-
}),
|
|
1060
|
+
}), co = (e) => d({
|
|
1061
1061
|
...e,
|
|
1062
1062
|
...p.discord,
|
|
1063
1063
|
provider: "discord"
|
|
1064
|
-
}),
|
|
1064
|
+
}), lo = (e) => d({
|
|
1065
1065
|
...e,
|
|
1066
1066
|
...p.linkedin,
|
|
1067
1067
|
provider: "linkedin"
|
|
1068
|
-
}),
|
|
1068
|
+
}), mo = (e) => d({
|
|
1069
1069
|
...e,
|
|
1070
1070
|
...p.instagram,
|
|
1071
1071
|
provider: "instagram"
|
|
1072
|
-
}),
|
|
1072
|
+
}), uo = (e) => d({
|
|
1073
1073
|
...e,
|
|
1074
1074
|
...p.tiktok,
|
|
1075
1075
|
provider: "tiktok"
|
|
1076
|
-
}),
|
|
1076
|
+
}), po = (e) => d({
|
|
1077
1077
|
...e,
|
|
1078
1078
|
...p.snapchat,
|
|
1079
1079
|
provider: "snapchat"
|
|
1080
|
-
}),
|
|
1080
|
+
}), ho = (e) => d({
|
|
1081
1081
|
...e,
|
|
1082
1082
|
...p.reddit,
|
|
1083
1083
|
provider: "reddit"
|
|
1084
|
-
}),
|
|
1084
|
+
}), go = (e) => d({
|
|
1085
1085
|
...e,
|
|
1086
1086
|
...p.pinterest,
|
|
1087
1087
|
provider: "pinterest"
|
|
1088
|
-
}),
|
|
1088
|
+
}), fo = (e) => d({
|
|
1089
1089
|
...e,
|
|
1090
1090
|
...p.twitch,
|
|
1091
1091
|
provider: "twitch"
|
|
1092
|
-
}),
|
|
1092
|
+
}), bo = (e) => d({
|
|
1093
1093
|
...e,
|
|
1094
1094
|
...p.steam,
|
|
1095
1095
|
provider: "steam"
|
|
1096
|
-
}),
|
|
1096
|
+
}), wo = (e) => d({
|
|
1097
1097
|
...e,
|
|
1098
1098
|
...p.epic,
|
|
1099
1099
|
provider: "epic"
|
|
1100
|
-
}),
|
|
1100
|
+
}), _o = (e) => d({
|
|
1101
1101
|
...e,
|
|
1102
1102
|
...p.playstation,
|
|
1103
1103
|
provider: "playstation"
|
|
1104
|
-
}),
|
|
1104
|
+
}), Lo = (e) => d({
|
|
1105
1105
|
...e,
|
|
1106
1106
|
...p.xbox,
|
|
1107
1107
|
provider: "xbox"
|
|
1108
|
-
}),
|
|
1108
|
+
}), vo = (e) => d({
|
|
1109
1109
|
...e,
|
|
1110
1110
|
...p.whatsapp,
|
|
1111
1111
|
provider: "whatsapp"
|
|
1112
|
-
}),
|
|
1112
|
+
}), ko = (e) => d({
|
|
1113
1113
|
...e,
|
|
1114
1114
|
...p.wechat,
|
|
1115
1115
|
provider: "wechat"
|
|
1116
|
-
}),
|
|
1116
|
+
}), yo = (e) => d({
|
|
1117
1117
|
...e,
|
|
1118
1118
|
...p.amazon,
|
|
1119
1119
|
provider: "amazon"
|
|
1120
|
-
}),
|
|
1120
|
+
}), So = (e) => d({
|
|
1121
1121
|
...e,
|
|
1122
1122
|
...p.yahoo,
|
|
1123
1123
|
provider: "yahoo"
|
|
1124
|
-
}),
|
|
1124
|
+
}), qo = (e) => d({
|
|
1125
1125
|
...e,
|
|
1126
1126
|
...p.paypal,
|
|
1127
1127
|
provider: "paypal"
|
|
1128
1128
|
});
|
|
1129
|
-
function
|
|
1129
|
+
function re({
|
|
1130
1130
|
providers: e,
|
|
1131
1131
|
onSocialLogin: o
|
|
1132
1132
|
}) {
|
|
1133
|
-
return
|
|
1134
|
-
|
|
1133
|
+
return $(
|
|
1134
|
+
xe({
|
|
1135
1135
|
providers: e,
|
|
1136
1136
|
onProviderClick: o
|
|
1137
1137
|
})
|
|
1138
1138
|
);
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function Be({
|
|
1141
1141
|
mode: e,
|
|
1142
1142
|
socialProviders: o,
|
|
1143
|
-
initialName:
|
|
1143
|
+
initialName: n,
|
|
1144
1144
|
initialEmail: a,
|
|
1145
1145
|
passwordRules: c,
|
|
1146
1146
|
showRememberMe: r,
|
|
1147
1147
|
showSocialDivider: u,
|
|
1148
|
-
showPasswordStrength:
|
|
1149
|
-
labels:
|
|
1148
|
+
showPasswordStrength: s,
|
|
1149
|
+
labels: l,
|
|
1150
1150
|
onSignIn: i,
|
|
1151
1151
|
onSignUp: h,
|
|
1152
1152
|
onResetPassword: L,
|
|
1153
1153
|
onModeChange: v,
|
|
1154
|
-
onSocialLogin:
|
|
1155
|
-
showContainer:
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1154
|
+
onSocialLogin: y,
|
|
1155
|
+
showContainer: D,
|
|
1156
|
+
showNameField: E,
|
|
1157
|
+
showConfirmPassword: S,
|
|
1158
|
+
showAcceptTermsAndConditions: F,
|
|
1159
|
+
termsAndConditions: O
|
|
1160
|
+
}, ...W) {
|
|
1161
|
+
const P = e != null ? se.deriveProp(e) : M("signin");
|
|
1162
|
+
return P.on((q) => v?.(q)), x(B, (q) => {
|
|
1163
|
+
function I() {
|
|
1164
|
+
const R = g(l?.hasAccountLink, q.$.hasAccountLink);
|
|
1165
|
+
return m.button(
|
|
1162
1166
|
t.type("button"),
|
|
1163
1167
|
t.class("bc-auth-form__link"),
|
|
1164
|
-
|
|
1165
|
-
|
|
1168
|
+
C.click(() => P.set("signin")),
|
|
1169
|
+
R
|
|
1166
1170
|
);
|
|
1167
1171
|
}
|
|
1168
|
-
function
|
|
1169
|
-
return
|
|
1172
|
+
function k() {
|
|
1173
|
+
return m.button(
|
|
1170
1174
|
t.type("button"),
|
|
1171
1175
|
t.class("bc-auth-form__link"),
|
|
1172
|
-
|
|
1173
|
-
g(
|
|
1176
|
+
C.click(() => P.set("signup")),
|
|
1177
|
+
g(l?.noAccountLink, q.$.noAccountLink)
|
|
1174
1178
|
);
|
|
1175
1179
|
}
|
|
1176
|
-
function
|
|
1177
|
-
return
|
|
1180
|
+
function w() {
|
|
1181
|
+
return m.button(
|
|
1178
1182
|
t.type("button"),
|
|
1179
1183
|
t.class("bc-auth-form__link"),
|
|
1180
|
-
|
|
1181
|
-
g(
|
|
1184
|
+
C.click(() => P.set("reset-password")),
|
|
1185
|
+
g(l?.forgotPasswordLink, q.$.forgotPasswordLink)
|
|
1182
1186
|
);
|
|
1183
1187
|
}
|
|
1184
|
-
return
|
|
1185
|
-
|
|
1188
|
+
return m.div(
|
|
1189
|
+
Le({
|
|
1186
1190
|
"bc-auth-container": !0,
|
|
1187
|
-
"bc-auth-container--styled":
|
|
1191
|
+
"bc-auth-container--styled": se.map(D ?? !0, (R) => R)
|
|
1188
1192
|
}),
|
|
1189
|
-
t.class(
|
|
1193
|
+
t.class(P.map((R) => `bc-auth-container--${R}`)),
|
|
1190
1194
|
t.class("bc-auth-form"),
|
|
1191
|
-
|
|
1192
|
-
signin: () =>
|
|
1193
|
-
|
|
1195
|
+
ge(P, {
|
|
1196
|
+
signin: () => U(
|
|
1197
|
+
m.h2(
|
|
1194
1198
|
t.class("bc-auth-form__title"),
|
|
1195
|
-
g(
|
|
1199
|
+
g(l?.signInTitle, q.$.signInTitle)
|
|
1196
1200
|
),
|
|
1197
|
-
o != null ?
|
|
1198
|
-
|
|
1201
|
+
o != null ? U(
|
|
1202
|
+
re({
|
|
1199
1203
|
providers: o,
|
|
1200
|
-
onSocialLogin:
|
|
1204
|
+
onSocialLogin: y
|
|
1201
1205
|
}),
|
|
1202
|
-
_(u ?? !1,
|
|
1206
|
+
_(u ?? !1, ie)
|
|
1203
1207
|
) : null,
|
|
1204
|
-
|
|
1208
|
+
ye({
|
|
1205
1209
|
onSignIn: i,
|
|
1206
1210
|
showRememberMe: r,
|
|
1207
1211
|
passwordRules: c,
|
|
1208
1212
|
labels: {
|
|
1209
|
-
emailLabel:
|
|
1210
|
-
passwordLabel:
|
|
1211
|
-
rememberMeLabel:
|
|
1212
|
-
signInButton:
|
|
1213
|
-
forgotPasswordLink:
|
|
1214
|
-
noAccountLink:
|
|
1213
|
+
emailLabel: l?.emailLabel,
|
|
1214
|
+
passwordLabel: l?.passwordLabel,
|
|
1215
|
+
rememberMeLabel: l?.rememberMeLabel,
|
|
1216
|
+
signInButton: l?.signInButton,
|
|
1217
|
+
forgotPasswordLink: l?.forgotPasswordLink,
|
|
1218
|
+
noAccountLink: l?.noAccountLink
|
|
1215
1219
|
}
|
|
1216
1220
|
}),
|
|
1217
|
-
|
|
1221
|
+
$(
|
|
1218
1222
|
t.class("bc-auth-form__footer"),
|
|
1219
|
-
|
|
1220
|
-
|
|
1223
|
+
k(),
|
|
1224
|
+
w()
|
|
1221
1225
|
)
|
|
1222
1226
|
),
|
|
1223
|
-
signup: () =>
|
|
1224
|
-
|
|
1227
|
+
signup: () => U(
|
|
1228
|
+
m.h2(
|
|
1225
1229
|
t.class("bc-auth-form__title"),
|
|
1226
|
-
g(
|
|
1230
|
+
g(l?.signUpTitle, q.$.signUpTitle)
|
|
1227
1231
|
),
|
|
1228
|
-
o != null ?
|
|
1229
|
-
|
|
1232
|
+
o != null ? U(
|
|
1233
|
+
re({
|
|
1230
1234
|
providers: o,
|
|
1231
|
-
onSocialLogin:
|
|
1235
|
+
onSocialLogin: y
|
|
1232
1236
|
}),
|
|
1233
|
-
_(u ?? !1,
|
|
1237
|
+
_(u ?? !1, ie)
|
|
1234
1238
|
) : null,
|
|
1235
|
-
|
|
1239
|
+
qe({
|
|
1236
1240
|
labels: {
|
|
1237
|
-
nameLabel:
|
|
1238
|
-
emailLabel:
|
|
1239
|
-
passwordLabel:
|
|
1240
|
-
confirmPasswordLabel:
|
|
1241
|
-
acceptTermsLabel:
|
|
1242
|
-
signUpButton:
|
|
1243
|
-
hasAccountLink:
|
|
1241
|
+
nameLabel: l?.nameLabel,
|
|
1242
|
+
emailLabel: l?.emailLabel,
|
|
1243
|
+
passwordLabel: l?.passwordLabel,
|
|
1244
|
+
confirmPasswordLabel: l?.confirmPasswordLabel,
|
|
1245
|
+
acceptTermsLabel: l?.acceptTermsLabel,
|
|
1246
|
+
signUpButton: l?.signUpButton,
|
|
1247
|
+
hasAccountLink: l?.hasAccountLink
|
|
1244
1248
|
},
|
|
1245
1249
|
initialEmail: a,
|
|
1246
|
-
initialName:
|
|
1250
|
+
initialName: n,
|
|
1247
1251
|
onSignUp: h,
|
|
1248
1252
|
passwordRules: c,
|
|
1249
|
-
showPasswordStrength:
|
|
1253
|
+
showPasswordStrength: s,
|
|
1254
|
+
showNameField: E,
|
|
1255
|
+
showConfirmPassword: S,
|
|
1256
|
+
showAcceptTermsAndConditions: F,
|
|
1257
|
+
termsAndConditions: O
|
|
1250
1258
|
}),
|
|
1251
|
-
|
|
1259
|
+
$(t.class("bc-auth-form__footer"), I())
|
|
1252
1260
|
),
|
|
1253
|
-
"reset-password": () =>
|
|
1254
|
-
|
|
1261
|
+
"reset-password": () => U(
|
|
1262
|
+
m.h2(
|
|
1255
1263
|
t.class("bc-auth-form__title"),
|
|
1256
|
-
g(
|
|
1264
|
+
g(l?.resetPasswordTitle, q.$.resetPasswordTitle)
|
|
1257
1265
|
),
|
|
1258
|
-
|
|
1266
|
+
Pe({
|
|
1259
1267
|
labels: {
|
|
1260
|
-
backToSignInLink:
|
|
1261
|
-
emailLabel:
|
|
1262
|
-
resetPasswordButton:
|
|
1263
|
-
resetPasswordDescription:
|
|
1268
|
+
backToSignInLink: l?.backToSignInLink,
|
|
1269
|
+
emailLabel: l?.emailLabel,
|
|
1270
|
+
resetPasswordButton: l?.resetPasswordButton,
|
|
1271
|
+
resetPasswordDescription: l?.resetPasswordDescription
|
|
1264
1272
|
},
|
|
1265
1273
|
onResetPassword: L
|
|
1266
1274
|
}),
|
|
1267
|
-
|
|
1275
|
+
$(t.class("bc-auth-form__footer"), I())
|
|
1268
1276
|
)
|
|
1269
1277
|
}),
|
|
1270
|
-
...
|
|
1278
|
+
...W
|
|
1271
1279
|
);
|
|
1272
1280
|
});
|
|
1273
1281
|
}
|
|
1274
|
-
function
|
|
1275
|
-
return
|
|
1282
|
+
function Po(e) {
|
|
1283
|
+
return be(
|
|
1276
1284
|
{
|
|
1277
1285
|
size: "sm",
|
|
1278
1286
|
dismissable: !0,
|
|
1279
1287
|
showCloseButton: !0
|
|
1280
1288
|
},
|
|
1281
|
-
(o,
|
|
1289
|
+
(o, n) => e(
|
|
1282
1290
|
(a) => o({
|
|
1283
|
-
body:
|
|
1284
|
-
header:
|
|
1285
|
-
|
|
1291
|
+
body: Be({ showContainer: !1, ...a }),
|
|
1292
|
+
header: x(
|
|
1293
|
+
B,
|
|
1286
1294
|
(c) => g(a.modalTitle, c.$.authenticationTitle)
|
|
1287
1295
|
)
|
|
1288
1296
|
})
|
|
1289
1297
|
)
|
|
1290
1298
|
);
|
|
1291
1299
|
}
|
|
1292
|
-
function
|
|
1300
|
+
function ie({
|
|
1293
1301
|
labels: e,
|
|
1294
1302
|
className: o
|
|
1295
1303
|
} = {}) {
|
|
1296
|
-
return
|
|
1304
|
+
return m.div(
|
|
1297
1305
|
t.class("bc-auth-divider"),
|
|
1298
1306
|
t.class(o),
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
(
|
|
1307
|
+
m.div(t.class("bc-auth-divider__line")),
|
|
1308
|
+
x(
|
|
1309
|
+
B,
|
|
1310
|
+
(n) => m.span(
|
|
1303
1311
|
t.class("bc-auth-divider__text"),
|
|
1304
|
-
g(e?.text,
|
|
1312
|
+
g(e?.text, n.$.orDivider)
|
|
1305
1313
|
)
|
|
1306
1314
|
),
|
|
1307
|
-
|
|
1315
|
+
m.div(t.class("bc-auth-divider__line"))
|
|
1308
1316
|
);
|
|
1309
1317
|
}
|
|
1310
1318
|
export {
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1319
|
+
je as $,
|
|
1320
|
+
yo as A,
|
|
1321
|
+
te as B,
|
|
1322
|
+
We as C,
|
|
1323
|
+
co as D,
|
|
1324
|
+
wo as E,
|
|
1325
|
+
so as F,
|
|
1326
|
+
to as G,
|
|
1327
|
+
T as H,
|
|
1328
|
+
mo as I,
|
|
1329
|
+
Xe as J,
|
|
1330
|
+
Ye as K,
|
|
1331
|
+
lo as L,
|
|
1332
|
+
io as M,
|
|
1333
|
+
le as N,
|
|
1334
|
+
He as O,
|
|
1335
|
+
Qe as P,
|
|
1336
|
+
ve as Q,
|
|
1337
|
+
ho as R,
|
|
1338
|
+
ye as S,
|
|
1339
|
+
uo as T,
|
|
1340
|
+
Fe as U,
|
|
1341
|
+
ke as V,
|
|
1342
|
+
ko as W,
|
|
1343
|
+
no as X,
|
|
1344
|
+
So as Y,
|
|
1345
|
+
De as Z,
|
|
1346
|
+
Ve as _,
|
|
1347
|
+
ao as a,
|
|
1348
|
+
Oe as a0,
|
|
1349
|
+
Ge as a1,
|
|
1350
|
+
K as a2,
|
|
1351
|
+
Q as a3,
|
|
1352
|
+
me as a4,
|
|
1345
1353
|
p as a5,
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1354
|
+
ue as a6,
|
|
1355
|
+
Je as a7,
|
|
1356
|
+
Ke as a8,
|
|
1357
|
+
Be as b,
|
|
1358
|
+
ie as c,
|
|
1359
|
+
Po as d,
|
|
1360
|
+
oo as e,
|
|
1361
|
+
Se as f,
|
|
1362
|
+
eo as g,
|
|
1363
|
+
qo as h,
|
|
1364
|
+
go as i,
|
|
1365
|
+
_o as j,
|
|
1366
|
+
Pe as k,
|
|
1367
|
+
qe as l,
|
|
1368
|
+
po as m,
|
|
1361
1369
|
d as n,
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1370
|
+
xe as o,
|
|
1371
|
+
re as p,
|
|
1372
|
+
bo as q,
|
|
1373
|
+
fo as r,
|
|
1374
|
+
ro as s,
|
|
1375
|
+
vo as t,
|
|
1376
|
+
Lo as u,
|
|
1377
|
+
Ze as v,
|
|
1378
|
+
ae as w,
|
|
1379
|
+
V as x,
|
|
1380
|
+
ee as y,
|
|
1381
|
+
oe as z
|
|
1374
1382
|
};
|