@tempots/beatui 0.24.0 → 0.26.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-7ojCcWUJ.cjs → 2019-BZdoHGOO.cjs} +1 -1
- package/dist/{2019-JwkYbae8.js → 2019-Bt_x1Mqh.js} +2 -2
- package/dist/{2020-BLYgDBO4.cjs → 2020-Bk0sGwzQ.cjs} +1 -1
- package/dist/{2020-kK0rQWn9.js → 2020-C2Ifu6RV.js} +2 -2
- package/dist/ar-CNSt2O6X.cjs +1 -0
- package/dist/{ar-BgrUqaxG.js → ar-CxLxXsxZ.js} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +547 -529
- package/dist/de-BlQbCGWj.cjs +1 -0
- package/dist/{de-D_sdCcAw.js → de-C7iv8rS5.js} +1 -1
- package/dist/es-Chf24sm_.cjs +1 -0
- package/dist/{es-DczvLqEV.js → es-DyivIdRS.js} +1 -1
- package/dist/fa-DPDyDuq_.cjs +1 -0
- package/dist/{fa-DhPP5Tgo.js → fa-T2168lXR.js} +1 -1
- package/dist/fr-BnxbTKeV.cjs +1 -0
- package/dist/{fr-D3WwoeQg.js → fr-ehNjmGC4.js} +1 -1
- package/dist/he-B9YZGENc.cjs +1 -0
- package/dist/{he-CFhi-6Rs.js → he-TD57Y17Z.js} +1 -1
- package/dist/{hi-Cqy8JcS7.js → hi-B4NbRIf5.js} +1 -1
- package/dist/hi-ZyCUnzwK.cjs +1 -0
- package/dist/{index-BeoVum6H.js → index-C494pbos.js} +1 -1
- package/dist/{index-D1rYqvi5.cjs → index-CZn1Pgwz.cjs} +4 -4
- package/dist/{index-CgH6d8ie.cjs → index-DN_efvsJ.cjs} +1 -1
- package/dist/{index-DYmfX0jE.js → index-DvqD_Y1P.js} +481 -481
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +187 -186
- package/dist/it-C5sp2CZC.cjs +1 -0
- package/dist/{it-CtMArqSp.js → it-D3x9ILJi.js} +1 -1
- package/dist/ja-31clSGC3.cjs +1 -0
- package/dist/{ja-UFqZT78C.js → ja-BSfyBDbo.js} +1 -1
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +1 -1
- package/dist/{ko-B5LB1_X_.js → ko-DNahUn8W.js} +1 -1
- package/dist/ko-j4lOKHLl.cjs +1 -0
- package/dist/{modal-C2Aa-aVN.js → modal-5GSPw0e_.js} +1 -1
- package/dist/modal-CMuvQ7U-.cjs +1 -0
- package/dist/{nl-DCfHVqzQ.js → nl-DxveNtuq.js} +1 -1
- package/dist/nl-gQLaSMRt.cjs +1 -0
- package/dist/{translations-DpZ-btu9.cjs → notice-DTflcSdc.cjs} +2 -2
- package/dist/{translations-GO9sIajX.js → notice-DuvHeGyh.js} +476 -376
- package/dist/pl-BQTsowH4.cjs +1 -0
- package/dist/{pl-UcTv39q1.js → pl-DuKW800E.js} +1 -1
- package/dist/pt-DB-njyTA.cjs +1 -0
- package/dist/{pt-CXsgmVtb.js → pt-DPt1NyaL.js} +1 -1
- package/dist/ru-CIXDYJrr.cjs +1 -0
- package/dist/{ru-C0MvZW2g.js → ru-DwiRelVA.js} +1 -1
- package/dist/{tr-CIIkc1uL.js → tr-DQIURNMa.js} +1 -1
- package/dist/tr-Dx_9vMU9.cjs +1 -0
- package/dist/{translations-CB6iJ1Rn.js → translations-D4pKsgdi.js} +1 -1
- package/dist/translations-YkLfpjMl.cjs +1 -0
- package/dist/types/components/form/control/list-control.d.ts +4 -2
- package/dist/{ur-Cpx9oyTV.js → ur-ChuKCUVI.js} +1 -1
- package/dist/ur-DpGDKEUr.cjs +1 -0
- package/dist/{notice-c9Vbv45l.js → utils-CBZohCZi.js} +937 -1002
- package/dist/utils-Dz1qVHrn.cjs +1 -0
- package/dist/{vi-D24AUQ01.js → vi-CJ3gBepb.js} +1 -1
- package/dist/vi-CjpgcyEa.cjs +1 -0
- package/dist/zh-CLb0vdcx.cjs +1 -0
- package/dist/{zh-25YFRjoV.js → zh-DBCCiN2o.js} +1 -1
- package/package.json +1 -1
- package/dist/ar-BAb4yHZS.cjs +0 -1
- package/dist/de-Dn2CdXgD.cjs +0 -1
- package/dist/es-CEPxKSog.cjs +0 -1
- package/dist/fa-NvkKjIQ6.cjs +0 -1
- package/dist/fr-cR59lx1A.cjs +0 -1
- package/dist/he-CxSHPJMg.cjs +0 -1
- package/dist/hi-DLnz3lCX.cjs +0 -1
- package/dist/it-C7Kv6j-_.cjs +0 -1
- package/dist/ja-BPL80aw5.cjs +0 -1
- package/dist/ko-Cmt_34Xp.cjs +0 -1
- package/dist/modal-UsqvSvHy.cjs +0 -1
- package/dist/nl-B-WL9SX2.cjs +0 -1
- package/dist/notice-C7I6EmRh.cjs +0 -1
- package/dist/pl-TGqkSi2w.cjs +0 -1
- package/dist/pt-Ua_e-1JE.cjs +0 -1
- package/dist/ru-9YWCN6fR.cjs +0 -1
- package/dist/tr-D70Oy8aN.cjs +0 -1
- package/dist/translations-NYxsXjMT.cjs +0 -1
- package/dist/ur-DmxXuJ9O.cjs +0 -1
- package/dist/vi-Cboo_ueb.cjs +0 -1
- package/dist/zh-BXivX7rD.cjs +0 -1
package/dist/auth/index.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { localStorageProp as
|
|
2
|
-
import { t as
|
|
3
|
-
import { s as I, o as
|
|
4
|
-
import { AuthI18n as x } from "../translations-
|
|
5
|
-
import { classes as
|
|
6
|
-
const
|
|
1
|
+
import { localStorageProp as ro, prop as E, Use as P, html as i, OnDispose as U, attr as t, on as T, When as L, coalesce as h, Ensure as N, computedOf as f, bind as io, ForEach as co, Value as Q, OneOfValue as lo, Fragment as A } from "@tempots/dom";
|
|
2
|
+
import { t as mo, b as oo, u as R, S as q, c as so, d as $, P as M, E as W, N as G, a as V, T as uo, I as po } from "../notice-DuvHeGyh.js";
|
|
3
|
+
import { s as I, o as H, b as D, M as ho } from "../modal-5GSPw0e_.js";
|
|
4
|
+
import { AuthI18n as x } from "../translations-D4pKsgdi.js";
|
|
5
|
+
import { classes as go } from "@tempots/ui";
|
|
6
|
+
const j = {
|
|
7
7
|
google: { name: "Google", icon: "logos:google-icon", color: "#4285f4" },
|
|
8
8
|
github: { name: "GitHub", icon: "logos:github-icon", color: "#333" },
|
|
9
9
|
apple: { name: "Apple", icon: "logos:apple", color: "#000" },
|
|
@@ -49,17 +49,17 @@ const N = {
|
|
|
49
49
|
paypal: { name: "PayPal", icon: "logos:paypal", color: "#0070ba" },
|
|
50
50
|
x: { name: "X", icon: "simple-icons:x", color: "#000" }
|
|
51
51
|
};
|
|
52
|
-
function
|
|
53
|
-
return
|
|
52
|
+
function fo(o) {
|
|
53
|
+
return j[o]?.name || o;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
return
|
|
55
|
+
function $o(o) {
|
|
56
|
+
return j[o]?.icon || "mdi:account";
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
return
|
|
58
|
+
function Io(o) {
|
|
59
|
+
return j[o]?.color || "#666";
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
return
|
|
61
|
+
function To(o, e = "Continue with {provider}") {
|
|
62
|
+
return e.replace("{provider}", fo(o));
|
|
63
63
|
}
|
|
64
64
|
const B = {
|
|
65
65
|
minLength: 8,
|
|
@@ -68,18 +68,18 @@ const B = {
|
|
|
68
68
|
requireNumbers: !0,
|
|
69
69
|
requireSymbols: !1
|
|
70
70
|
};
|
|
71
|
-
function
|
|
72
|
-
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(
|
|
71
|
+
function Ao(o) {
|
|
72
|
+
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(o);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
const
|
|
76
|
-
let
|
|
77
|
-
for (let m = 0; m <
|
|
78
|
-
|
|
79
|
-
return
|
|
74
|
+
function bo(o = 32) {
|
|
75
|
+
const e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
76
|
+
let c = "";
|
|
77
|
+
for (let m = 0; m < o; m++)
|
|
78
|
+
c += e.charAt(Math.floor(Math.random() * e.length));
|
|
79
|
+
return c;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
const
|
|
81
|
+
function Co(o, e, c, m = [], l = {}) {
|
|
82
|
+
const a = {
|
|
83
83
|
google: "https://accounts.google.com/oauth/authorize",
|
|
84
84
|
github: "https://github.com/login/oauth/authorize",
|
|
85
85
|
apple: "https://appleid.apple.com/auth/authorize",
|
|
@@ -129,222 +129,226 @@ function Ie(e, o, i, m = [], c = {}) {
|
|
|
129
129
|
yahoo: ["openid", "email", "profile"],
|
|
130
130
|
paypal: ["openid", "email", "profile"],
|
|
131
131
|
x: ["openid", "email", "profile"]
|
|
132
|
-
},
|
|
133
|
-
if (!
|
|
134
|
-
throw new Error(`Unsupported provider: ${
|
|
135
|
-
const u = m.length > 0 ? m : s[
|
|
136
|
-
client_id:
|
|
137
|
-
redirect_uri:
|
|
132
|
+
}, n = a[o];
|
|
133
|
+
if (!n)
|
|
134
|
+
throw new Error(`Unsupported provider: ${o}`);
|
|
135
|
+
const u = m.length > 0 ? m : s[o], r = bo(), w = new URLSearchParams({
|
|
136
|
+
client_id: e,
|
|
137
|
+
redirect_uri: c,
|
|
138
138
|
scope: u.join(" "),
|
|
139
139
|
state: r,
|
|
140
140
|
response_type: "code",
|
|
141
|
-
...
|
|
141
|
+
...l
|
|
142
142
|
});
|
|
143
|
-
return `${
|
|
143
|
+
return `${n}?${w.toString()}`;
|
|
144
144
|
}
|
|
145
|
-
function
|
|
146
|
-
const
|
|
147
|
-
|
|
148
|
-
`${
|
|
145
|
+
function zo(o, e, c, m) {
|
|
146
|
+
const l = window.open(
|
|
147
|
+
o,
|
|
148
|
+
`${e}_login`,
|
|
149
149
|
"width=500,height=600,scrollbars=yes,resizable=yes"
|
|
150
150
|
);
|
|
151
|
-
if (!
|
|
151
|
+
if (!l) {
|
|
152
152
|
m?.(new Error("Failed to open popup window"));
|
|
153
153
|
return;
|
|
154
154
|
}
|
|
155
|
-
const
|
|
156
|
-
|
|
157
|
-
}, 1e3), s = (
|
|
158
|
-
|
|
155
|
+
const a = setInterval(() => {
|
|
156
|
+
l.closed && (clearInterval(a), m?.(new Error("Login cancelled")));
|
|
157
|
+
}, 1e3), s = (n) => {
|
|
158
|
+
n.origin === window.location.origin && (n.data.type === "SOCIAL_LOGIN_SUCCESS" ? (clearInterval(a), l.close(), window.removeEventListener("message", s), c?.(n.data.result)) : n.data.type === "SOCIAL_LOGIN_ERROR" && (clearInterval(a), l.close(), window.removeEventListener("message", s), m?.(new Error(n.data.error))));
|
|
159
159
|
};
|
|
160
160
|
window.addEventListener("message", s);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
163
|
-
return
|
|
162
|
+
function Eo(o) {
|
|
163
|
+
return o instanceof Error ? o.message : typeof o == "string" ? o : o && typeof o == "object" && "message" in o ? String(o.message) : "An unexpected error occurred";
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function Uo() {
|
|
166
166
|
return typeof window < "u" && typeof document < "u";
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
task:
|
|
170
|
-
message:
|
|
171
|
-
onStart:
|
|
168
|
+
function X({
|
|
169
|
+
task: o,
|
|
170
|
+
message: e,
|
|
171
|
+
onStart: c,
|
|
172
172
|
onEnd: m
|
|
173
173
|
}) {
|
|
174
|
-
return async (
|
|
175
|
-
|
|
176
|
-
const
|
|
177
|
-
task:
|
|
178
|
-
errorMessage:
|
|
174
|
+
return console.log(o), async (l) => {
|
|
175
|
+
c?.();
|
|
176
|
+
const a = await mo({
|
|
177
|
+
task: o != null ? () => o(l) : async () => null,
|
|
178
|
+
errorMessage: e,
|
|
179
179
|
errorPath: ["root"],
|
|
180
|
-
validation: (s) => s != null ?
|
|
180
|
+
validation: (s) => (console.log("Validating", s), s != null ? (console.log("Invalid", s), oo.invalid({ message: s })) : (console.log("Valid"), oo.valid))
|
|
181
181
|
});
|
|
182
|
-
return m?.(),
|
|
182
|
+
return m?.(), a;
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
let
|
|
187
|
-
return
|
|
188
|
-
|
|
189
|
-
`Password must be at least ${
|
|
190
|
-
)),
|
|
185
|
+
function Y(o = B) {
|
|
186
|
+
let e = I();
|
|
187
|
+
return o.minLength && (e = e.min(
|
|
188
|
+
o.minLength,
|
|
189
|
+
`Password must be at least ${o.minLength} characters`
|
|
190
|
+
)), o.requireUppercase && (e = e.regex(
|
|
191
191
|
/[A-Z]/,
|
|
192
192
|
"Password must contain at least one uppercase letter"
|
|
193
|
-
)),
|
|
193
|
+
)), o.requireLowercase && (e = e.regex(
|
|
194
194
|
/[a-z]/,
|
|
195
195
|
"Password must contain at least one lowercase letter"
|
|
196
|
-
)),
|
|
196
|
+
)), o.requireNumbers && (e = e.regex(
|
|
197
197
|
/[0-9]/,
|
|
198
198
|
"Password must contain at least one number"
|
|
199
|
-
)),
|
|
199
|
+
)), o.requireSymbols && (e = e.regex(
|
|
200
200
|
/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/,
|
|
201
201
|
"Password must contain at least one special character"
|
|
202
|
-
)),
|
|
202
|
+
)), o.customValidation && (e = e.refine((c) => o.customValidation(c))), e;
|
|
203
203
|
}
|
|
204
|
-
const
|
|
205
|
-
function
|
|
206
|
-
const
|
|
207
|
-
(
|
|
204
|
+
const O = I().min(1, "Email is required").email("Please enter a valid email address");
|
|
205
|
+
function Z(o) {
|
|
206
|
+
const e = o ? Y(o) : I().refine(
|
|
207
|
+
(c) => c.length > 0 ? null : "Password is required"
|
|
208
208
|
);
|
|
209
|
-
return
|
|
210
|
-
email:
|
|
211
|
-
password:
|
|
209
|
+
return H({
|
|
210
|
+
email: O,
|
|
211
|
+
password: e,
|
|
212
212
|
rememberMe: D().default(!1)
|
|
213
213
|
}).schema();
|
|
214
214
|
}
|
|
215
|
-
function
|
|
216
|
-
const
|
|
215
|
+
function J(o = B, e) {
|
|
216
|
+
const c = Y(o), m = e?.showNameField !== !1, l = e?.showConfirmPassword !== !1, a = e?.showAcceptTermsAndConditions !== !1, s = {
|
|
217
217
|
name: m ? I().min(1, "Name is required").optional() : I().optional(),
|
|
218
|
-
email:
|
|
219
|
-
password:
|
|
218
|
+
email: O,
|
|
219
|
+
password: c,
|
|
220
220
|
// Always require confirmPassword as string to match SignUpData interface
|
|
221
221
|
// When not shown, it should accept any value (including empty string)
|
|
222
|
-
confirmPassword:
|
|
222
|
+
confirmPassword: l ? I().min(1, "Please confirm your password") : I(),
|
|
223
223
|
// Accept any string value when not shown
|
|
224
|
-
acceptTerms:
|
|
224
|
+
acceptTerms: a ? D().refine(
|
|
225
225
|
(u) => u === !0,
|
|
226
226
|
"You must accept the terms and conditions"
|
|
227
227
|
) : D().default(!0)
|
|
228
228
|
// Default to true when not shown
|
|
229
|
-
},
|
|
230
|
-
return
|
|
229
|
+
}, n = H(s);
|
|
230
|
+
return l ? n.refine(
|
|
231
231
|
(u) => u.password === u.confirmPassword ? null : "Passwords don't match",
|
|
232
232
|
{ path: ["confirmPassword"] }
|
|
233
|
-
).schema() :
|
|
233
|
+
).schema() : n.schema();
|
|
234
234
|
}
|
|
235
|
-
const
|
|
236
|
-
email:
|
|
237
|
-
}).schema(),
|
|
238
|
-
signIn:
|
|
239
|
-
signUp:
|
|
240
|
-
resetPassword: () =>
|
|
235
|
+
const no = H({
|
|
236
|
+
email: O
|
|
237
|
+
}).schema(), Vo = Z(), Oo = J(), Fo = {
|
|
238
|
+
signIn: Z,
|
|
239
|
+
signUp: J,
|
|
240
|
+
resetPassword: () => no
|
|
241
241
|
};
|
|
242
|
-
function
|
|
243
|
-
const
|
|
244
|
-
return
|
|
242
|
+
function Mo(o) {
|
|
243
|
+
const e = O.validate(o);
|
|
244
|
+
return e.success ? null : e.errors[0]?.message || "Invalid email";
|
|
245
245
|
}
|
|
246
|
-
function
|
|
247
|
-
const m =
|
|
246
|
+
function Do(o, e = B) {
|
|
247
|
+
const m = Y(e).validate(o);
|
|
248
248
|
return m.success ? null : m.errors[0]?.message || "Invalid password";
|
|
249
249
|
}
|
|
250
|
-
function
|
|
251
|
-
const
|
|
252
|
-
length:
|
|
253
|
-
uppercase: /[A-Z]/.test(
|
|
254
|
-
lowercase: /[a-z]/.test(
|
|
255
|
-
numbers: /[0-9]/.test(
|
|
256
|
-
symbols: /[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(
|
|
257
|
-
custom:
|
|
250
|
+
function K(o, e = B) {
|
|
251
|
+
const c = {
|
|
252
|
+
length: o.length >= (e.minLength || 8),
|
|
253
|
+
uppercase: /[A-Z]/.test(o),
|
|
254
|
+
lowercase: /[a-z]/.test(o),
|
|
255
|
+
numbers: /[0-9]/.test(o),
|
|
256
|
+
symbols: /[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(o),
|
|
257
|
+
custom: e.customValidation ? e.customValidation(o) === null : o.length > 0
|
|
258
258
|
// For consistency, fail if password is empty
|
|
259
259
|
}, m = [
|
|
260
260
|
!0,
|
|
261
261
|
// length is always enabled
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
!!
|
|
267
|
-
].filter(Boolean).length,
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
].filter((
|
|
262
|
+
e.requireUppercase,
|
|
263
|
+
e.requireLowercase,
|
|
264
|
+
e.requireNumbers,
|
|
265
|
+
e.requireSymbols,
|
|
266
|
+
!!e.customValidation
|
|
267
|
+
].filter(Boolean).length, l = [
|
|
268
|
+
c.length,
|
|
269
|
+
e.requireUppercase ? c.uppercase : null,
|
|
270
|
+
e.requireLowercase ? c.lowercase : null,
|
|
271
|
+
e.requireNumbers ? c.numbers : null,
|
|
272
|
+
e.requireSymbols ? c.symbols : null,
|
|
273
|
+
e.customValidation ? c.custom : null
|
|
274
|
+
].filter((n) => n === !0).length, a = m > 0 ? Math.round(l / m * 100) : 0;
|
|
275
275
|
let s;
|
|
276
|
-
return
|
|
276
|
+
return a < 40 ? s = "weak" : a < 60 ? s = "fair" : a < 80 ? s = "good" : s = "strong", { strength: s, score: a, checks: c };
|
|
277
277
|
}
|
|
278
|
-
const
|
|
278
|
+
const ao = () => ro({
|
|
279
279
|
key: "bui_auth_email",
|
|
280
280
|
defaultValue: null
|
|
281
281
|
});
|
|
282
|
-
function
|
|
283
|
-
onSignIn:
|
|
284
|
-
passwordRules:
|
|
285
|
-
labels:
|
|
282
|
+
function wo({
|
|
283
|
+
onSignIn: o,
|
|
284
|
+
passwordRules: e,
|
|
285
|
+
labels: c,
|
|
286
286
|
showRememberMe: m
|
|
287
287
|
}) {
|
|
288
|
-
const
|
|
288
|
+
const l = E(!1), a = ao(), s = Z(e), n = R({
|
|
289
289
|
schema: s,
|
|
290
|
-
onSubmit:
|
|
291
|
-
task:
|
|
292
|
-
email: h.email,
|
|
293
|
-
password: h.password
|
|
294
|
-
}) : void 0,
|
|
290
|
+
onSubmit: X({
|
|
291
|
+
task: o,
|
|
295
292
|
message: "Reset password failed",
|
|
296
293
|
onStart: () => {
|
|
297
|
-
|
|
294
|
+
l.set(!0), n.controller.disable();
|
|
298
295
|
},
|
|
299
296
|
onEnd: () => {
|
|
300
|
-
|
|
297
|
+
l.set(!1), n.controller.enable();
|
|
301
298
|
}
|
|
302
299
|
}),
|
|
303
300
|
initialValue: {
|
|
304
301
|
email: "",
|
|
305
302
|
password: ""
|
|
306
303
|
}
|
|
307
|
-
}), { controller: u, submit: r } =
|
|
308
|
-
|
|
309
|
-
const
|
|
310
|
-
return
|
|
311
|
-
|
|
312
|
-
}),
|
|
313
|
-
|
|
304
|
+
}), { controller: u, submit: r } = n;
|
|
305
|
+
l.on(u.setDisabled);
|
|
306
|
+
const w = u.field("email"), _ = u.field("password");
|
|
307
|
+
return a.on((g) => {
|
|
308
|
+
g != null && w.change(g);
|
|
309
|
+
}), w.value.on((g) => {
|
|
310
|
+
a.value != null && (a.value = g);
|
|
314
311
|
}), P(
|
|
315
312
|
x,
|
|
316
|
-
(
|
|
313
|
+
(g) => (
|
|
317
314
|
// Email/Password form
|
|
318
|
-
|
|
319
|
-
U(u.dispose,
|
|
315
|
+
i.form(
|
|
316
|
+
U(u.dispose, a.dispose, l.dispose),
|
|
320
317
|
t.class("bc-auth-form__form"),
|
|
321
318
|
T.submit(r),
|
|
322
319
|
q(
|
|
323
320
|
t.class("bc-auth-form__fields"),
|
|
321
|
+
N(
|
|
322
|
+
u.error,
|
|
323
|
+
(b) => G(
|
|
324
|
+
{ variant: "danger", tone: "prominent", role: "alert" },
|
|
325
|
+
i.div(b)
|
|
326
|
+
)
|
|
327
|
+
),
|
|
324
328
|
// Email field
|
|
325
329
|
$(W, {
|
|
326
|
-
controller:
|
|
327
|
-
label:
|
|
330
|
+
controller: w,
|
|
331
|
+
label: h(c?.emailLabel, g.$.emailLabel)
|
|
328
332
|
}),
|
|
329
333
|
// Password field
|
|
330
334
|
$(M, {
|
|
331
|
-
controller:
|
|
332
|
-
label:
|
|
335
|
+
controller: _,
|
|
336
|
+
label: h(c?.passwordLabel, g.$.passwordLabel)
|
|
333
337
|
}),
|
|
334
338
|
// Remember me checkbox
|
|
335
|
-
|
|
339
|
+
L(
|
|
336
340
|
m ?? !0,
|
|
337
|
-
() =>
|
|
341
|
+
() => i.div(
|
|
338
342
|
t.class("bc-auth-form__remember-me"),
|
|
339
|
-
|
|
343
|
+
i.label(
|
|
340
344
|
t.class("bc-auth-form__checkbox-label"),
|
|
341
|
-
|
|
342
|
-
value:
|
|
343
|
-
after:
|
|
344
|
-
|
|
345
|
+
so({
|
|
346
|
+
value: a.map((b) => b != null),
|
|
347
|
+
after: i.span(
|
|
348
|
+
h(c?.rememberMeLabel, g.$.rememberMeLabel)
|
|
345
349
|
),
|
|
346
|
-
onChange: (
|
|
347
|
-
|
|
350
|
+
onChange: (b) => {
|
|
351
|
+
b ? a.value = w.value.value ?? "" : a.value = null;
|
|
348
352
|
}
|
|
349
353
|
})
|
|
350
354
|
)
|
|
@@ -352,28 +356,28 @@ function ge({
|
|
|
352
356
|
)
|
|
353
357
|
),
|
|
354
358
|
// Submit button
|
|
355
|
-
|
|
359
|
+
V(
|
|
356
360
|
{
|
|
357
361
|
type: "submit",
|
|
358
362
|
variant: "filled",
|
|
359
363
|
color: "primary",
|
|
360
|
-
loading:
|
|
364
|
+
loading: l,
|
|
361
365
|
disabled: u.disabledOrHasErrors
|
|
362
366
|
},
|
|
363
367
|
t.class("bc-auth-form__submit"),
|
|
364
|
-
|
|
368
|
+
h(c?.signInButton, g.$.signInButton)
|
|
365
369
|
)
|
|
366
370
|
)
|
|
367
371
|
)
|
|
368
372
|
);
|
|
369
373
|
}
|
|
370
|
-
function
|
|
371
|
-
password:
|
|
372
|
-
rules:
|
|
373
|
-
showLabel:
|
|
374
|
+
function _o({
|
|
375
|
+
password: o,
|
|
376
|
+
rules: e = B,
|
|
377
|
+
showLabel: c = !0,
|
|
374
378
|
className: m
|
|
375
379
|
}) {
|
|
376
|
-
const
|
|
380
|
+
const l = f(o)((r) => !r || r.length === 0 ? {
|
|
377
381
|
strength: "weak",
|
|
378
382
|
score: 0,
|
|
379
383
|
checks: {
|
|
@@ -384,149 +388,149 @@ function fe({
|
|
|
384
388
|
symbols: !1,
|
|
385
389
|
custom: !1
|
|
386
390
|
}
|
|
387
|
-
} :
|
|
388
|
-
|
|
391
|
+
} : K(r, e)), a = l.map((r) => r.strength), s = l.map((r) => r.score), n = l.map((r) => r.checks), u = f(
|
|
392
|
+
a,
|
|
389
393
|
m
|
|
390
|
-
)((r,
|
|
394
|
+
)((r, w) => [
|
|
391
395
|
"bc-password-strength",
|
|
392
396
|
`bc-password-strength--${r}`,
|
|
393
|
-
|
|
397
|
+
w
|
|
394
398
|
].filter(Boolean).join(" "));
|
|
395
|
-
return
|
|
399
|
+
return i.div(
|
|
396
400
|
t.class(u),
|
|
397
401
|
// Strength bar
|
|
398
|
-
|
|
402
|
+
i.div(
|
|
399
403
|
t.class("bc-password-strength__bar"),
|
|
400
|
-
|
|
404
|
+
i.div(
|
|
401
405
|
t.class("bc-password-strength__fill"),
|
|
402
406
|
t.style(s.map((r) => `width: ${r}%`))
|
|
403
407
|
)
|
|
404
408
|
),
|
|
405
409
|
// Strength label (optional)
|
|
406
|
-
|
|
407
|
-
|
|
410
|
+
L(
|
|
411
|
+
c,
|
|
408
412
|
() => P(
|
|
409
413
|
x,
|
|
410
|
-
(r) =>
|
|
414
|
+
(r) => i.div(
|
|
411
415
|
t.class("bc-password-strength__label"),
|
|
412
416
|
f(
|
|
413
|
-
|
|
417
|
+
a,
|
|
414
418
|
r
|
|
415
|
-
)((
|
|
416
|
-
switch (
|
|
419
|
+
)((w, _) => {
|
|
420
|
+
switch (w) {
|
|
417
421
|
case "weak":
|
|
418
|
-
return
|
|
422
|
+
return _.passwordStrengthWeak;
|
|
419
423
|
case "fair":
|
|
420
|
-
return
|
|
424
|
+
return _.passwordStrengthFair;
|
|
421
425
|
case "good":
|
|
422
|
-
return
|
|
426
|
+
return _.passwordStrengthGood;
|
|
423
427
|
case "strong":
|
|
424
|
-
return
|
|
428
|
+
return _.passwordStrengthStrong;
|
|
425
429
|
default:
|
|
426
|
-
return
|
|
430
|
+
return _.passwordStrengthWeak;
|
|
427
431
|
}
|
|
428
432
|
})
|
|
429
433
|
)
|
|
430
434
|
)
|
|
431
435
|
),
|
|
432
436
|
// Requirements checklist
|
|
433
|
-
|
|
437
|
+
i.div(
|
|
434
438
|
t.class("bc-password-strength__requirements"),
|
|
435
439
|
// Length requirement
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
() =>
|
|
440
|
+
L(
|
|
441
|
+
e.minLength !== void 0,
|
|
442
|
+
() => i.div(
|
|
439
443
|
t.class("bc-password-strength__requirement"),
|
|
440
444
|
t.class(
|
|
441
|
-
f(
|
|
445
|
+
f(n)(
|
|
442
446
|
(r) => r.length ? "bc-password-strength__requirement--met" : ""
|
|
443
447
|
)
|
|
444
448
|
),
|
|
445
|
-
|
|
449
|
+
i.span(
|
|
446
450
|
t.class("bc-password-strength__requirement-icon"),
|
|
447
|
-
f(
|
|
451
|
+
f(n)((r) => r.length ? "✓" : "○")
|
|
448
452
|
),
|
|
449
|
-
|
|
453
|
+
i.span(
|
|
450
454
|
t.class("bc-password-strength__requirement-text"),
|
|
451
|
-
`At least ${
|
|
455
|
+
`At least ${e.minLength} characters`
|
|
452
456
|
)
|
|
453
457
|
)
|
|
454
458
|
),
|
|
455
459
|
// Uppercase requirement
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
() =>
|
|
460
|
+
L(
|
|
461
|
+
e.requireUppercase === !0,
|
|
462
|
+
() => i.div(
|
|
459
463
|
t.class("bc-password-strength__requirement"),
|
|
460
464
|
t.class(
|
|
461
|
-
f(
|
|
465
|
+
f(n)(
|
|
462
466
|
(r) => r.uppercase ? "bc-password-strength__requirement--met" : ""
|
|
463
467
|
)
|
|
464
468
|
),
|
|
465
|
-
|
|
469
|
+
i.span(
|
|
466
470
|
t.class("bc-password-strength__requirement-icon"),
|
|
467
|
-
f(
|
|
471
|
+
f(n)((r) => r.uppercase ? "✓" : "○")
|
|
468
472
|
),
|
|
469
|
-
|
|
473
|
+
i.span(
|
|
470
474
|
t.class("bc-password-strength__requirement-text"),
|
|
471
475
|
"One uppercase letter"
|
|
472
476
|
)
|
|
473
477
|
)
|
|
474
478
|
),
|
|
475
479
|
// Lowercase requirement
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
() =>
|
|
480
|
+
L(
|
|
481
|
+
e.requireLowercase === !0,
|
|
482
|
+
() => i.div(
|
|
479
483
|
t.class("bc-password-strength__requirement"),
|
|
480
484
|
t.class(
|
|
481
|
-
f(
|
|
485
|
+
f(n)(
|
|
482
486
|
(r) => r.lowercase ? "bc-password-strength__requirement--met" : ""
|
|
483
487
|
)
|
|
484
488
|
),
|
|
485
|
-
|
|
489
|
+
i.span(
|
|
486
490
|
t.class("bc-password-strength__requirement-icon"),
|
|
487
|
-
f(
|
|
491
|
+
f(n)((r) => r.lowercase ? "✓" : "○")
|
|
488
492
|
),
|
|
489
|
-
|
|
493
|
+
i.span(
|
|
490
494
|
t.class("bc-password-strength__requirement-text"),
|
|
491
495
|
"One lowercase letter"
|
|
492
496
|
)
|
|
493
497
|
)
|
|
494
498
|
),
|
|
495
499
|
// Numbers requirement
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
() =>
|
|
500
|
+
L(
|
|
501
|
+
e.requireNumbers === !0,
|
|
502
|
+
() => i.div(
|
|
499
503
|
t.class("bc-password-strength__requirement"),
|
|
500
504
|
t.class(
|
|
501
|
-
f(
|
|
505
|
+
f(n)(
|
|
502
506
|
(r) => r.numbers ? "bc-password-strength__requirement--met" : ""
|
|
503
507
|
)
|
|
504
508
|
),
|
|
505
|
-
|
|
509
|
+
i.span(
|
|
506
510
|
t.class("bc-password-strength__requirement-icon"),
|
|
507
|
-
f(
|
|
511
|
+
f(n)((r) => r.numbers ? "✓" : "○")
|
|
508
512
|
),
|
|
509
|
-
|
|
513
|
+
i.span(
|
|
510
514
|
t.class("bc-password-strength__requirement-text"),
|
|
511
515
|
"One number"
|
|
512
516
|
)
|
|
513
517
|
)
|
|
514
518
|
),
|
|
515
519
|
// Symbols requirement
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
() =>
|
|
520
|
+
L(
|
|
521
|
+
e.requireSymbols === !0,
|
|
522
|
+
() => i.div(
|
|
519
523
|
t.class("bc-password-strength__requirement"),
|
|
520
524
|
t.class(
|
|
521
|
-
f(
|
|
525
|
+
f(n)(
|
|
522
526
|
(r) => r.symbols ? "bc-password-strength__requirement--met" : ""
|
|
523
527
|
)
|
|
524
528
|
),
|
|
525
|
-
|
|
529
|
+
i.span(
|
|
526
530
|
t.class("bc-password-strength__requirement-icon"),
|
|
527
|
-
f(
|
|
531
|
+
f(n)((r) => r.symbols ? "✓" : "○")
|
|
528
532
|
),
|
|
529
|
-
|
|
533
|
+
i.span(
|
|
530
534
|
t.class("bc-password-strength__requirement-text"),
|
|
531
535
|
"One special character"
|
|
532
536
|
)
|
|
@@ -535,92 +539,92 @@ function fe({
|
|
|
535
539
|
)
|
|
536
540
|
);
|
|
537
541
|
}
|
|
538
|
-
function
|
|
539
|
-
password:
|
|
540
|
-
rules:
|
|
541
|
-
className:
|
|
542
|
+
function No({
|
|
543
|
+
password: o,
|
|
544
|
+
rules: e = B,
|
|
545
|
+
className: c
|
|
542
546
|
}) {
|
|
543
|
-
const m = f(
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
)((
|
|
547
|
+
const m = f(o)((n) => !n || n.length === 0 ? { strength: "weak", score: 0 } : K(n, e)), l = m.map((n) => n.strength), a = m.map((n) => n.score), s = f(
|
|
548
|
+
l,
|
|
549
|
+
c
|
|
550
|
+
)((n, u) => [
|
|
547
551
|
"bc-password-strength-bar",
|
|
548
|
-
`bc-password-strength-bar--${
|
|
552
|
+
`bc-password-strength-bar--${n}`,
|
|
549
553
|
u
|
|
550
554
|
].filter(Boolean).join(" "));
|
|
551
|
-
return
|
|
555
|
+
return i.div(
|
|
552
556
|
t.class(s),
|
|
553
|
-
|
|
557
|
+
i.div(
|
|
554
558
|
t.class("bc-password-strength-bar__fill"),
|
|
555
|
-
t.style(
|
|
559
|
+
t.style(a.map((n) => `width: ${n}%`))
|
|
556
560
|
)
|
|
557
561
|
);
|
|
558
562
|
}
|
|
559
|
-
function
|
|
560
|
-
password:
|
|
561
|
-
rules:
|
|
562
|
-
className:
|
|
563
|
+
function Ro({
|
|
564
|
+
password: o,
|
|
565
|
+
rules: e = B,
|
|
566
|
+
className: c
|
|
563
567
|
}) {
|
|
564
|
-
const m = f(
|
|
568
|
+
const m = f(o)((a) => !a || a.length === 0 ? "weak" : K(a, e).strength), l = f(
|
|
565
569
|
m,
|
|
566
|
-
|
|
567
|
-
)((
|
|
570
|
+
c
|
|
571
|
+
)((a, s) => [
|
|
568
572
|
"bc-password-strength-text",
|
|
569
|
-
`bc-password-strength-text--${
|
|
573
|
+
`bc-password-strength-text--${a}`,
|
|
570
574
|
s
|
|
571
575
|
].filter(Boolean).join(" "));
|
|
572
576
|
return P(
|
|
573
577
|
x,
|
|
574
|
-
(
|
|
575
|
-
t.class(
|
|
578
|
+
(a) => i.span(
|
|
579
|
+
t.class(l),
|
|
576
580
|
f(
|
|
577
581
|
m,
|
|
578
|
-
|
|
579
|
-
)((s,
|
|
582
|
+
a
|
|
583
|
+
)((s, n) => {
|
|
580
584
|
switch (s) {
|
|
581
585
|
case "weak":
|
|
582
|
-
return
|
|
586
|
+
return n.passwordStrengthWeak;
|
|
583
587
|
case "fair":
|
|
584
|
-
return
|
|
588
|
+
return n.passwordStrengthFair;
|
|
585
589
|
case "good":
|
|
586
|
-
return
|
|
590
|
+
return n.passwordStrengthGood;
|
|
587
591
|
case "strong":
|
|
588
|
-
return
|
|
592
|
+
return n.passwordStrengthStrong;
|
|
589
593
|
default:
|
|
590
|
-
return
|
|
594
|
+
return n.passwordStrengthWeak;
|
|
591
595
|
}
|
|
592
596
|
})
|
|
593
597
|
)
|
|
594
598
|
);
|
|
595
599
|
}
|
|
596
|
-
function
|
|
597
|
-
passwordRules:
|
|
598
|
-
labels:
|
|
599
|
-
showPasswordStrength:
|
|
600
|
+
function Lo({
|
|
601
|
+
passwordRules: o,
|
|
602
|
+
labels: e,
|
|
603
|
+
showPasswordStrength: c,
|
|
600
604
|
onSignUp: m,
|
|
601
|
-
showNameField:
|
|
602
|
-
showConfirmPassword:
|
|
605
|
+
showNameField: l,
|
|
606
|
+
showConfirmPassword: a,
|
|
603
607
|
showAcceptTermsAndConditions: s,
|
|
604
|
-
termsAndConditions:
|
|
608
|
+
termsAndConditions: n
|
|
605
609
|
}) {
|
|
606
|
-
const u = E(!1), r =
|
|
607
|
-
showNameField:
|
|
608
|
-
showConfirmPassword:
|
|
610
|
+
const u = E(!1), r = o || B, w = J(r, {
|
|
611
|
+
showNameField: l !== !1,
|
|
612
|
+
showConfirmPassword: a !== !1,
|
|
609
613
|
showAcceptTermsAndConditions: s !== !1
|
|
610
|
-
}),
|
|
611
|
-
schema:
|
|
612
|
-
onSubmit:
|
|
613
|
-
task: m != null ? (
|
|
614
|
-
email:
|
|
615
|
-
password:
|
|
616
|
-
name:
|
|
614
|
+
}), _ = R({
|
|
615
|
+
schema: w,
|
|
616
|
+
onSubmit: X({
|
|
617
|
+
task: m != null ? (S) => m({
|
|
618
|
+
email: S.email,
|
|
619
|
+
password: S.password,
|
|
620
|
+
name: S.name
|
|
617
621
|
}) : void 0,
|
|
618
622
|
message: "Reset password failed",
|
|
619
623
|
onStart: () => {
|
|
620
|
-
u.set(!0),
|
|
624
|
+
u.set(!0), _.controller.disable();
|
|
621
625
|
},
|
|
622
626
|
onEnd: () => {
|
|
623
|
-
u.set(!1),
|
|
627
|
+
u.set(!1), _.controller.enable();
|
|
624
628
|
}
|
|
625
629
|
}),
|
|
626
630
|
initialValue: {
|
|
@@ -630,185 +634,199 @@ function be({
|
|
|
630
634
|
confirmPassword: "",
|
|
631
635
|
acceptTerms: !1
|
|
632
636
|
}
|
|
633
|
-
}), { controller:
|
|
634
|
-
u.on(
|
|
635
|
-
const k =
|
|
637
|
+
}), { controller: g, submit: b } = _;
|
|
638
|
+
u.on(g.setDisabled);
|
|
639
|
+
const k = g.field("name"), C = g.field("email"), z = g.field("password"), F = g.field("confirmPassword"), y = g.field("acceptTerms");
|
|
636
640
|
return P(
|
|
637
641
|
x,
|
|
638
|
-
(
|
|
642
|
+
(S) => (
|
|
639
643
|
// Registration form
|
|
640
|
-
|
|
641
|
-
U(
|
|
644
|
+
i.form(
|
|
645
|
+
U(g.dispose, u.dispose),
|
|
642
646
|
t.class("bc-auth-form__form"),
|
|
643
|
-
T.submit(
|
|
647
|
+
T.submit(b),
|
|
644
648
|
q(
|
|
645
649
|
t.class("bc-auth-form__fields"),
|
|
650
|
+
N(
|
|
651
|
+
g.error,
|
|
652
|
+
(v) => G(
|
|
653
|
+
{ variant: "danger", tone: "prominent", role: "alert" },
|
|
654
|
+
i.div(v)
|
|
655
|
+
)
|
|
656
|
+
),
|
|
646
657
|
// Name field (optional)
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
() => $(
|
|
658
|
+
L(
|
|
659
|
+
l !== !1,
|
|
660
|
+
() => $(uo, {
|
|
650
661
|
controller: k.transform(
|
|
651
|
-
(
|
|
652
|
-
(
|
|
662
|
+
(v) => v ?? "",
|
|
663
|
+
(v) => v === "" ? void 0 : v
|
|
653
664
|
),
|
|
654
|
-
label:
|
|
665
|
+
label: h(e?.nameLabel, S.$.nameLabel)
|
|
655
666
|
})
|
|
656
667
|
),
|
|
657
668
|
// Email field
|
|
658
669
|
$(W, {
|
|
659
670
|
controller: C,
|
|
660
|
-
label:
|
|
671
|
+
label: h(e?.emailLabel, S.$.emailLabel)
|
|
661
672
|
}),
|
|
662
673
|
// Password field
|
|
663
674
|
$(M, {
|
|
664
675
|
controller: z,
|
|
665
|
-
label:
|
|
676
|
+
label: h(e?.passwordLabel, S.$.passwordLabel)
|
|
666
677
|
}),
|
|
667
678
|
// Password strength indicator
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
() =>
|
|
679
|
+
L(
|
|
680
|
+
c ?? !1,
|
|
681
|
+
() => _o({
|
|
671
682
|
password: z.value,
|
|
672
683
|
rules: r,
|
|
673
684
|
showLabel: !0
|
|
674
685
|
})
|
|
675
686
|
),
|
|
676
687
|
// Confirm password field
|
|
677
|
-
|
|
678
|
-
|
|
688
|
+
L(
|
|
689
|
+
a ?? !1,
|
|
679
690
|
() => $(M, {
|
|
680
691
|
controller: F,
|
|
681
|
-
label:
|
|
682
|
-
|
|
683
|
-
|
|
692
|
+
label: h(
|
|
693
|
+
e?.confirmPasswordLabel,
|
|
694
|
+
S.$.confirmPasswordLabel
|
|
684
695
|
)
|
|
685
696
|
})
|
|
686
697
|
),
|
|
687
698
|
// Terms acceptance checkbox
|
|
688
|
-
|
|
699
|
+
L(
|
|
689
700
|
s ?? !1,
|
|
690
|
-
() =>
|
|
701
|
+
() => i.div(
|
|
691
702
|
t.class("bc-auth-form__terms"),
|
|
692
|
-
|
|
703
|
+
i.label(
|
|
693
704
|
t.class("bc-auth-form__checkbox-label"),
|
|
694
|
-
|
|
695
|
-
value:
|
|
696
|
-
onChange: (
|
|
705
|
+
so({
|
|
706
|
+
value: y.value.map((v) => v ?? !1),
|
|
707
|
+
onChange: (v) => y.change(v)
|
|
697
708
|
}),
|
|
698
|
-
|
|
699
|
-
|
|
709
|
+
i.span(
|
|
710
|
+
n || h(e?.acceptTermsLabel, S.$.acceptTermsLabel)
|
|
700
711
|
)
|
|
701
712
|
),
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
() =>
|
|
713
|
+
L(
|
|
714
|
+
y.errorVisible,
|
|
715
|
+
() => i.div(
|
|
705
716
|
t.class("bc-auth-form__field-error"),
|
|
706
|
-
|
|
717
|
+
y.error.map((v) => v || "")
|
|
707
718
|
)
|
|
708
719
|
)
|
|
709
720
|
)
|
|
710
721
|
)
|
|
711
722
|
),
|
|
712
723
|
// Submit button
|
|
713
|
-
|
|
724
|
+
V(
|
|
714
725
|
{
|
|
715
726
|
type: "submit",
|
|
716
727
|
variant: "filled",
|
|
717
728
|
color: "primary",
|
|
718
729
|
loading: u,
|
|
719
|
-
disabled:
|
|
730
|
+
disabled: g.disabledOrHasErrors
|
|
720
731
|
},
|
|
721
732
|
t.class("bc-auth-form__submit"),
|
|
722
|
-
|
|
733
|
+
h(e?.signUpButton, S.$.signUpButton)
|
|
723
734
|
)
|
|
724
735
|
)
|
|
725
736
|
)
|
|
726
737
|
);
|
|
727
738
|
}
|
|
728
|
-
function
|
|
729
|
-
onResetPassword:
|
|
730
|
-
labels:
|
|
739
|
+
function vo({
|
|
740
|
+
onResetPassword: o,
|
|
741
|
+
labels: e = {}
|
|
731
742
|
}) {
|
|
732
|
-
const
|
|
733
|
-
schema:
|
|
734
|
-
onSubmit:
|
|
735
|
-
task:
|
|
743
|
+
const c = ao(), m = E(!1), l = R({
|
|
744
|
+
schema: no,
|
|
745
|
+
onSubmit: X({
|
|
746
|
+
task: o,
|
|
736
747
|
message: "Reset password failed",
|
|
737
748
|
onStart: () => {
|
|
738
|
-
m.set(!0),
|
|
749
|
+
m.set(!0), l.controller.disable();
|
|
739
750
|
},
|
|
740
751
|
onEnd: () => {
|
|
741
|
-
m.set(!1),
|
|
752
|
+
m.set(!1), l.controller.enable();
|
|
742
753
|
}
|
|
743
754
|
}),
|
|
744
755
|
initialValue: {
|
|
745
756
|
email: ""
|
|
746
757
|
}
|
|
747
|
-
}), { controller:
|
|
748
|
-
m.on(
|
|
749
|
-
const
|
|
750
|
-
return
|
|
751
|
-
u != null &&
|
|
758
|
+
}), { controller: a, submit: s } = l;
|
|
759
|
+
m.on(a.setDisabled);
|
|
760
|
+
const n = a.field("email");
|
|
761
|
+
return c.on((u) => {
|
|
762
|
+
u != null && n.change(u);
|
|
752
763
|
}), P(
|
|
753
764
|
x,
|
|
754
765
|
(u) => (
|
|
755
766
|
// Reset password form
|
|
756
|
-
|
|
757
|
-
U(
|
|
767
|
+
i.form(
|
|
768
|
+
U(a.dispose, c.dispose, m.dispose),
|
|
758
769
|
t.class("bc-auth-form__form"),
|
|
770
|
+
N(
|
|
771
|
+
a.error,
|
|
772
|
+
(r) => G(
|
|
773
|
+
{ variant: "danger", tone: "prominent", role: "alert" },
|
|
774
|
+
i.div(r)
|
|
775
|
+
)
|
|
776
|
+
),
|
|
759
777
|
// Description
|
|
760
|
-
|
|
778
|
+
i.p(
|
|
761
779
|
t.class("bc-auth-form__description"),
|
|
762
|
-
|
|
780
|
+
h(e?.resetPasswordDescription, u.$.resetPasswordDescription)
|
|
763
781
|
),
|
|
764
782
|
T.submit(s),
|
|
765
783
|
q(
|
|
766
784
|
t.class("bc-auth-form__fields"),
|
|
767
785
|
// Email field
|
|
768
786
|
$(W, {
|
|
769
|
-
controller:
|
|
770
|
-
label:
|
|
787
|
+
controller: n,
|
|
788
|
+
label: h(e?.emailLabel, u.$.emailLabel)
|
|
771
789
|
})
|
|
772
790
|
),
|
|
773
791
|
// Submit button
|
|
774
|
-
|
|
792
|
+
V(
|
|
775
793
|
{
|
|
776
794
|
loading: m,
|
|
777
795
|
type: "submit",
|
|
778
796
|
variant: "filled",
|
|
779
797
|
color: "primary",
|
|
780
|
-
disabled:
|
|
798
|
+
disabled: a.disabledOrHasErrors
|
|
781
799
|
},
|
|
782
800
|
t.class("bc-auth-form__submit"),
|
|
783
|
-
|
|
801
|
+
h(e?.resetPasswordButton, u.$.resetPasswordButton)
|
|
784
802
|
)
|
|
785
803
|
)
|
|
786
804
|
)
|
|
787
805
|
);
|
|
788
806
|
}
|
|
789
807
|
function p({
|
|
790
|
-
provider:
|
|
791
|
-
onClick:
|
|
792
|
-
size:
|
|
808
|
+
provider: o,
|
|
809
|
+
onClick: e,
|
|
810
|
+
size: c = "md",
|
|
793
811
|
name: m,
|
|
794
|
-
icon:
|
|
795
|
-
color:
|
|
812
|
+
icon: l,
|
|
813
|
+
color: a,
|
|
796
814
|
flow: s,
|
|
797
|
-
labels:
|
|
815
|
+
labels: n
|
|
798
816
|
}) {
|
|
799
|
-
return
|
|
817
|
+
return V(
|
|
800
818
|
{
|
|
801
819
|
type: "button",
|
|
802
820
|
variant: "filled",
|
|
803
|
-
size:
|
|
804
|
-
color:
|
|
821
|
+
size: c,
|
|
822
|
+
color: a,
|
|
805
823
|
onClick: async () => {
|
|
806
|
-
if (
|
|
824
|
+
if (e)
|
|
807
825
|
try {
|
|
808
|
-
s === "popup" ? await
|
|
826
|
+
s === "popup" ? await e() : await e();
|
|
809
827
|
} catch (r) {
|
|
810
828
|
console.error(
|
|
811
|
-
`Social login error for ${
|
|
829
|
+
`Social login error for ${o} (${s || "redirect"} flow):`,
|
|
812
830
|
r
|
|
813
831
|
);
|
|
814
832
|
}
|
|
@@ -817,49 +835,49 @@ function p({
|
|
|
817
835
|
},
|
|
818
836
|
t.class("bc-social-login-button"),
|
|
819
837
|
t.class(
|
|
820
|
-
f(
|
|
838
|
+
f(o)((r) => `bc-social-login-button--${r}`)
|
|
821
839
|
),
|
|
822
|
-
|
|
840
|
+
i.span(
|
|
823
841
|
t.class("bc-social-login-button__inner"),
|
|
824
|
-
|
|
842
|
+
i.span(
|
|
825
843
|
t.class("bc-social-login-button__icon"),
|
|
826
|
-
|
|
844
|
+
po({ icon: l, size: c }, t.class("bc-social-login-button__icon-inner"))
|
|
827
845
|
),
|
|
828
846
|
P(
|
|
829
847
|
x,
|
|
830
|
-
(r) =>
|
|
848
|
+
(r) => i.span(
|
|
831
849
|
t.class("bc-social-login-button__label"),
|
|
832
|
-
|
|
833
|
-
|
|
850
|
+
io(
|
|
851
|
+
h(n?.continueWithProvider, r.$.continueWithProvider)
|
|
834
852
|
)(m)
|
|
835
853
|
)
|
|
836
854
|
)
|
|
837
855
|
)
|
|
838
856
|
);
|
|
839
857
|
}
|
|
840
|
-
function
|
|
841
|
-
providers:
|
|
842
|
-
onProviderClick:
|
|
843
|
-
size:
|
|
858
|
+
function ko({
|
|
859
|
+
providers: o,
|
|
860
|
+
onProviderClick: e,
|
|
861
|
+
size: c = "md",
|
|
844
862
|
className: m
|
|
845
863
|
}) {
|
|
846
864
|
return q(
|
|
847
865
|
t.class("bc-social-login-buttons"),
|
|
848
866
|
t.class(m),
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
(
|
|
852
|
-
provider:
|
|
853
|
-
flow:
|
|
854
|
-
color:
|
|
855
|
-
({ provider:
|
|
867
|
+
co(
|
|
868
|
+
o,
|
|
869
|
+
(l) => p({
|
|
870
|
+
provider: l.$.provider,
|
|
871
|
+
flow: l.$.flow,
|
|
872
|
+
color: l.map(
|
|
873
|
+
({ provider: a }) => d[a].color
|
|
856
874
|
),
|
|
857
|
-
name:
|
|
858
|
-
icon:
|
|
875
|
+
name: l.map(({ provider: a }) => d[a].name),
|
|
876
|
+
icon: l.map(({ provider: a }) => d[a].icon),
|
|
859
877
|
onClick: async () => {
|
|
860
|
-
|
|
878
|
+
e && await e(l.$.provider.value);
|
|
861
879
|
},
|
|
862
|
-
size:
|
|
880
|
+
size: c
|
|
863
881
|
})
|
|
864
882
|
)
|
|
865
883
|
);
|
|
@@ -995,174 +1013,174 @@ const d = {
|
|
|
995
1013
|
color: "blue"
|
|
996
1014
|
// distinct deep blue tone (not Facebook’s exact blue)
|
|
997
1015
|
}
|
|
998
|
-
},
|
|
999
|
-
...
|
|
1016
|
+
}, Wo = (o) => p({
|
|
1017
|
+
...o,
|
|
1000
1018
|
...d.google,
|
|
1001
1019
|
provider: "google"
|
|
1002
|
-
}),
|
|
1003
|
-
...
|
|
1020
|
+
}), Go = (o) => p({
|
|
1021
|
+
...o,
|
|
1004
1022
|
...d.github,
|
|
1005
1023
|
provider: "github"
|
|
1006
|
-
}),
|
|
1007
|
-
...
|
|
1024
|
+
}), Ho = (o) => p({
|
|
1025
|
+
...o,
|
|
1008
1026
|
...d.apple,
|
|
1009
1027
|
provider: "apple"
|
|
1010
|
-
}),
|
|
1011
|
-
...
|
|
1028
|
+
}), jo = (o) => p({
|
|
1029
|
+
...o,
|
|
1012
1030
|
...d.facebook,
|
|
1013
1031
|
provider: "facebook"
|
|
1014
|
-
}),
|
|
1015
|
-
...
|
|
1032
|
+
}), Xo = (o) => p({
|
|
1033
|
+
...o,
|
|
1016
1034
|
...d.x,
|
|
1017
1035
|
provider: "x"
|
|
1018
|
-
}),
|
|
1019
|
-
...
|
|
1036
|
+
}), Yo = (o) => p({
|
|
1037
|
+
...o,
|
|
1020
1038
|
...d.twitter,
|
|
1021
1039
|
provider: "twitter"
|
|
1022
|
-
}),
|
|
1023
|
-
...
|
|
1040
|
+
}), Zo = (o) => p({
|
|
1041
|
+
...o,
|
|
1024
1042
|
...d.microsoft,
|
|
1025
1043
|
provider: "microsoft"
|
|
1026
|
-
}),
|
|
1027
|
-
...
|
|
1044
|
+
}), Jo = (o) => p({
|
|
1045
|
+
...o,
|
|
1028
1046
|
...d.discord,
|
|
1029
1047
|
provider: "discord"
|
|
1030
|
-
}),
|
|
1031
|
-
...
|
|
1048
|
+
}), Ko = (o) => p({
|
|
1049
|
+
...o,
|
|
1032
1050
|
...d.linkedin,
|
|
1033
1051
|
provider: "linkedin"
|
|
1034
|
-
}),
|
|
1035
|
-
...
|
|
1052
|
+
}), Qo = (o) => p({
|
|
1053
|
+
...o,
|
|
1036
1054
|
...d.instagram,
|
|
1037
1055
|
provider: "instagram"
|
|
1038
|
-
}),
|
|
1039
|
-
...
|
|
1056
|
+
}), oe = (o) => p({
|
|
1057
|
+
...o,
|
|
1040
1058
|
...d.tiktok,
|
|
1041
1059
|
provider: "tiktok"
|
|
1042
|
-
}),
|
|
1043
|
-
...
|
|
1060
|
+
}), ee = (o) => p({
|
|
1061
|
+
...o,
|
|
1044
1062
|
...d.snapchat,
|
|
1045
1063
|
provider: "snapchat"
|
|
1046
|
-
}),
|
|
1047
|
-
...
|
|
1064
|
+
}), te = (o) => p({
|
|
1065
|
+
...o,
|
|
1048
1066
|
...d.reddit,
|
|
1049
1067
|
provider: "reddit"
|
|
1050
|
-
}),
|
|
1051
|
-
...
|
|
1068
|
+
}), se = (o) => p({
|
|
1069
|
+
...o,
|
|
1052
1070
|
...d.pinterest,
|
|
1053
1071
|
provider: "pinterest"
|
|
1054
|
-
}),
|
|
1055
|
-
...
|
|
1072
|
+
}), ne = (o) => p({
|
|
1073
|
+
...o,
|
|
1056
1074
|
...d.twitch,
|
|
1057
1075
|
provider: "twitch"
|
|
1058
|
-
}),
|
|
1059
|
-
...
|
|
1076
|
+
}), ae = (o) => p({
|
|
1077
|
+
...o,
|
|
1060
1078
|
...d.steam,
|
|
1061
1079
|
provider: "steam"
|
|
1062
|
-
}),
|
|
1063
|
-
...
|
|
1080
|
+
}), re = (o) => p({
|
|
1081
|
+
...o,
|
|
1064
1082
|
...d.epic,
|
|
1065
1083
|
provider: "epic"
|
|
1066
|
-
}),
|
|
1067
|
-
...
|
|
1084
|
+
}), ie = (o) => p({
|
|
1085
|
+
...o,
|
|
1068
1086
|
...d.playstation,
|
|
1069
1087
|
provider: "playstation"
|
|
1070
|
-
}),
|
|
1071
|
-
...
|
|
1088
|
+
}), ce = (o) => p({
|
|
1089
|
+
...o,
|
|
1072
1090
|
...d.xbox,
|
|
1073
1091
|
provider: "xbox"
|
|
1074
|
-
}),
|
|
1075
|
-
...
|
|
1092
|
+
}), le = (o) => p({
|
|
1093
|
+
...o,
|
|
1076
1094
|
...d.whatsapp,
|
|
1077
1095
|
provider: "whatsapp"
|
|
1078
|
-
}),
|
|
1079
|
-
...
|
|
1096
|
+
}), me = (o) => p({
|
|
1097
|
+
...o,
|
|
1080
1098
|
...d.wechat,
|
|
1081
1099
|
provider: "wechat"
|
|
1082
|
-
}),
|
|
1083
|
-
...
|
|
1100
|
+
}), ue = (o) => p({
|
|
1101
|
+
...o,
|
|
1084
1102
|
...d.amazon,
|
|
1085
1103
|
provider: "amazon"
|
|
1086
|
-
}),
|
|
1087
|
-
...
|
|
1104
|
+
}), de = (o) => p({
|
|
1105
|
+
...o,
|
|
1088
1106
|
...d.yahoo,
|
|
1089
1107
|
provider: "yahoo"
|
|
1090
|
-
}),
|
|
1091
|
-
...
|
|
1108
|
+
}), pe = (o) => p({
|
|
1109
|
+
...o,
|
|
1092
1110
|
...d.paypal,
|
|
1093
1111
|
provider: "paypal"
|
|
1094
1112
|
});
|
|
1095
|
-
function
|
|
1113
|
+
function eo({ providers: o }) {
|
|
1096
1114
|
return q(
|
|
1097
|
-
|
|
1098
|
-
providers:
|
|
1115
|
+
ko({
|
|
1116
|
+
providers: o
|
|
1099
1117
|
})
|
|
1100
1118
|
);
|
|
1101
1119
|
}
|
|
1102
|
-
function
|
|
1103
|
-
mode:
|
|
1104
|
-
socialProviders:
|
|
1105
|
-
passwordRules:
|
|
1120
|
+
function yo({
|
|
1121
|
+
mode: o,
|
|
1122
|
+
socialProviders: e,
|
|
1123
|
+
passwordRules: c,
|
|
1106
1124
|
showRememberMe: m,
|
|
1107
|
-
showSocialDivider:
|
|
1108
|
-
showPasswordStrength:
|
|
1125
|
+
showSocialDivider: l,
|
|
1126
|
+
showPasswordStrength: a,
|
|
1109
1127
|
labels: s,
|
|
1110
|
-
onSignIn:
|
|
1128
|
+
onSignIn: n,
|
|
1111
1129
|
onSignUp: u,
|
|
1112
1130
|
onResetPassword: r,
|
|
1113
|
-
onModeChange:
|
|
1131
|
+
onModeChange: w,
|
|
1114
1132
|
// onSocialLogin,
|
|
1115
|
-
showContainer:
|
|
1116
|
-
}, ...
|
|
1117
|
-
const
|
|
1118
|
-
return
|
|
1133
|
+
showContainer: _
|
|
1134
|
+
}, ...g) {
|
|
1135
|
+
const b = o != null ? Q.deriveProp(o) : E("signin");
|
|
1136
|
+
return b.on((k) => w?.(k)), P(x, (k) => {
|
|
1119
1137
|
function C() {
|
|
1120
|
-
const
|
|
1121
|
-
return
|
|
1138
|
+
const y = h(s?.hasAccountLink, k.$.hasAccountLink);
|
|
1139
|
+
return i.button(
|
|
1122
1140
|
t.type("button"),
|
|
1123
1141
|
t.class("bc-auth-form__link"),
|
|
1124
|
-
T.click(() =>
|
|
1125
|
-
|
|
1142
|
+
T.click(() => b.set("signin")),
|
|
1143
|
+
y
|
|
1126
1144
|
);
|
|
1127
1145
|
}
|
|
1128
1146
|
function z() {
|
|
1129
|
-
return
|
|
1147
|
+
return i.button(
|
|
1130
1148
|
t.type("button"),
|
|
1131
1149
|
t.class("bc-auth-form__link"),
|
|
1132
|
-
T.click(() =>
|
|
1133
|
-
|
|
1150
|
+
T.click(() => b.set("signup")),
|
|
1151
|
+
h(s?.noAccountLink, k.$.noAccountLink)
|
|
1134
1152
|
);
|
|
1135
1153
|
}
|
|
1136
1154
|
function F() {
|
|
1137
|
-
return
|
|
1155
|
+
return i.button(
|
|
1138
1156
|
t.type("button"),
|
|
1139
1157
|
t.class("bc-auth-form__link"),
|
|
1140
|
-
T.click(() =>
|
|
1141
|
-
|
|
1158
|
+
T.click(() => b.set("reset-password")),
|
|
1159
|
+
h(s?.forgotPasswordLink, k.$.forgotPasswordLink)
|
|
1142
1160
|
);
|
|
1143
1161
|
}
|
|
1144
|
-
return
|
|
1145
|
-
|
|
1162
|
+
return i.div(
|
|
1163
|
+
go({
|
|
1146
1164
|
"bc-auth-container": !0,
|
|
1147
|
-
"bc-auth-container--styled":
|
|
1165
|
+
"bc-auth-container--styled": Q.map(_ ?? !0, (y) => y)
|
|
1148
1166
|
}),
|
|
1149
|
-
t.class(
|
|
1167
|
+
t.class(b.map((y) => `bc-auth-container--${y}`)),
|
|
1150
1168
|
t.class("bc-auth-form"),
|
|
1151
|
-
U(
|
|
1152
|
-
|
|
1169
|
+
U(b.dispose),
|
|
1170
|
+
lo(b, {
|
|
1153
1171
|
signin: () => A(
|
|
1154
|
-
|
|
1172
|
+
i.h2(
|
|
1155
1173
|
t.class("bc-auth-form__title"),
|
|
1156
|
-
|
|
1174
|
+
h(s?.signInTitle, k.$.signInTitle)
|
|
1157
1175
|
),
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1176
|
+
e != null ? A(
|
|
1177
|
+
eo({ providers: e }),
|
|
1178
|
+
L(l ?? !1, to)
|
|
1161
1179
|
) : null,
|
|
1162
|
-
|
|
1163
|
-
onSignIn:
|
|
1180
|
+
wo({
|
|
1181
|
+
onSignIn: n,
|
|
1164
1182
|
showRememberMe: m,
|
|
1165
|
-
passwordRules:
|
|
1183
|
+
passwordRules: c,
|
|
1166
1184
|
labels: {
|
|
1167
1185
|
emailLabel: s?.emailLabel,
|
|
1168
1186
|
passwordLabel: s?.passwordLabel,
|
|
@@ -1179,15 +1197,15 @@ function Le({
|
|
|
1179
1197
|
)
|
|
1180
1198
|
),
|
|
1181
1199
|
signup: () => A(
|
|
1182
|
-
|
|
1200
|
+
i.h2(
|
|
1183
1201
|
t.class("bc-auth-form__title"),
|
|
1184
|
-
|
|
1202
|
+
h(s?.signUpTitle, k.$.signUpTitle)
|
|
1185
1203
|
),
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1204
|
+
e != null ? A(
|
|
1205
|
+
eo({ providers: e }),
|
|
1206
|
+
L(l ?? !1, to)
|
|
1189
1207
|
) : null,
|
|
1190
|
-
|
|
1208
|
+
Lo({
|
|
1191
1209
|
labels: {
|
|
1192
1210
|
nameLabel: s?.nameLabel,
|
|
1193
1211
|
emailLabel: s?.emailLabel,
|
|
@@ -1198,17 +1216,17 @@ function Le({
|
|
|
1198
1216
|
hasAccountLink: s?.hasAccountLink
|
|
1199
1217
|
},
|
|
1200
1218
|
onSignUp: u,
|
|
1201
|
-
passwordRules:
|
|
1202
|
-
showPasswordStrength:
|
|
1219
|
+
passwordRules: c,
|
|
1220
|
+
showPasswordStrength: a
|
|
1203
1221
|
}),
|
|
1204
1222
|
q(t.class("bc-auth-form__footer"), C())
|
|
1205
1223
|
),
|
|
1206
1224
|
"reset-password": () => A(
|
|
1207
|
-
|
|
1225
|
+
i.h2(
|
|
1208
1226
|
t.class("bc-auth-form__title"),
|
|
1209
|
-
|
|
1227
|
+
h(s?.resetPasswordTitle, k.$.resetPasswordTitle)
|
|
1210
1228
|
),
|
|
1211
|
-
|
|
1229
|
+
vo({
|
|
1212
1230
|
labels: {
|
|
1213
1231
|
backToSignInLink: s?.backToSignInLink,
|
|
1214
1232
|
emailLabel: s?.emailLabel,
|
|
@@ -1220,107 +1238,107 @@ function Le({
|
|
|
1220
1238
|
q(t.class("bc-auth-form__footer"), C())
|
|
1221
1239
|
)
|
|
1222
1240
|
}),
|
|
1223
|
-
...
|
|
1241
|
+
...g
|
|
1224
1242
|
);
|
|
1225
1243
|
});
|
|
1226
1244
|
}
|
|
1227
|
-
function
|
|
1228
|
-
return
|
|
1245
|
+
function he(o) {
|
|
1246
|
+
return ho(
|
|
1229
1247
|
{
|
|
1230
1248
|
size: "sm",
|
|
1231
1249
|
dismissable: !0,
|
|
1232
1250
|
showCloseButton: !0
|
|
1233
1251
|
},
|
|
1234
|
-
(
|
|
1235
|
-
(m) =>
|
|
1236
|
-
body:
|
|
1252
|
+
(e, c) => o(
|
|
1253
|
+
(m) => e({
|
|
1254
|
+
body: yo({ showContainer: !1, ...m }),
|
|
1237
1255
|
header: P(
|
|
1238
1256
|
x,
|
|
1239
|
-
(
|
|
1257
|
+
(l) => h(m.modalTitle, l.$.authenticationTitle)
|
|
1240
1258
|
)
|
|
1241
1259
|
})
|
|
1242
1260
|
)
|
|
1243
1261
|
);
|
|
1244
1262
|
}
|
|
1245
|
-
function
|
|
1246
|
-
labels:
|
|
1247
|
-
className:
|
|
1263
|
+
function to({
|
|
1264
|
+
labels: o,
|
|
1265
|
+
className: e
|
|
1248
1266
|
} = {}) {
|
|
1249
|
-
return
|
|
1267
|
+
return i.div(
|
|
1250
1268
|
t.class("bc-auth-divider"),
|
|
1251
|
-
t.class(
|
|
1252
|
-
|
|
1269
|
+
t.class(e),
|
|
1270
|
+
i.div(t.class("bc-auth-divider__line")),
|
|
1253
1271
|
P(
|
|
1254
1272
|
x,
|
|
1255
|
-
(
|
|
1273
|
+
(c) => i.span(
|
|
1256
1274
|
t.class("bc-auth-divider__text"),
|
|
1257
|
-
|
|
1275
|
+
h(o?.text, c.$.orDivider)
|
|
1258
1276
|
)
|
|
1259
1277
|
),
|
|
1260
|
-
|
|
1278
|
+
i.div(t.class("bc-auth-divider__line"))
|
|
1261
1279
|
);
|
|
1262
1280
|
}
|
|
1263
1281
|
export {
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1282
|
+
ue as AmazonLoginButton,
|
|
1283
|
+
Ho as AppleLoginButton,
|
|
1284
|
+
yo as AuthContainer,
|
|
1285
|
+
to as AuthDivider,
|
|
1286
|
+
he as AuthModal,
|
|
1287
|
+
Jo as DiscordLoginButton,
|
|
1288
|
+
re as EpicLoginButton,
|
|
1289
|
+
jo as FacebookLoginButton,
|
|
1290
|
+
Go as GitHubLoginButton,
|
|
1291
|
+
Wo as GoogleLoginButton,
|
|
1292
|
+
Qo as InstagramLoginButton,
|
|
1293
|
+
Ko as LinkedInLoginButton,
|
|
1294
|
+
Zo as MicrosoftLoginButton,
|
|
1295
|
+
No as PasswordStrengthBar,
|
|
1296
|
+
_o as PasswordStrengthIndicator,
|
|
1297
|
+
Ro as PasswordStrengthText,
|
|
1298
|
+
pe as PayPalLoginButton,
|
|
1299
|
+
se as PinterestLoginButton,
|
|
1300
|
+
ie as PlayStationLoginButton,
|
|
1301
|
+
te as RedditLoginButton,
|
|
1302
|
+
vo as ResetPasswordForm,
|
|
1303
|
+
wo as SignInForm,
|
|
1304
|
+
Lo as SignUpForm,
|
|
1305
|
+
ee as SnapchatLoginButton,
|
|
1288
1306
|
p as SocialLoginButton,
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1307
|
+
ko as SocialLoginButtons,
|
|
1308
|
+
eo as SocialProviders,
|
|
1309
|
+
ae as SteamLoginButton,
|
|
1310
|
+
oe as TiktokLoginButton,
|
|
1311
|
+
ne as TwitchLoginButton,
|
|
1312
|
+
Yo as TwitterLoginButton,
|
|
1313
|
+
me as WeChatLoginButton,
|
|
1314
|
+
le as WhatsAppLoginButton,
|
|
1315
|
+
Xo as XLoginButtin,
|
|
1316
|
+
ce as XboxLoginButton,
|
|
1317
|
+
de as YahooLoginButton,
|
|
1318
|
+
Fo as authSchemas,
|
|
1319
|
+
K as calculatePasswordStrength,
|
|
1320
|
+
Y as createPasswordSchema,
|
|
1321
|
+
Z as createSignInSchema,
|
|
1322
|
+
J as createSignUpSchema,
|
|
1323
|
+
Co as createSocialLoginUrl,
|
|
1306
1324
|
B as defaultPasswordRules,
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1325
|
+
Vo as defaultSignInSchema,
|
|
1326
|
+
Oo as defaultSignUpSchema,
|
|
1327
|
+
O as emailSchema,
|
|
1328
|
+
Eo as formatAuthError,
|
|
1329
|
+
fo as formatProviderName,
|
|
1330
|
+
To as formatSocialLoginText,
|
|
1331
|
+
bo as generateRandomString,
|
|
1332
|
+
Io as getProviderColor,
|
|
1333
|
+
$o as getProviderIcon,
|
|
1334
|
+
Uo as isBrowser,
|
|
1335
|
+
Ao as isValidEmail,
|
|
1336
|
+
zo as openSocialLoginPopup,
|
|
1337
|
+
j as providerInfo,
|
|
1338
|
+
X as requestToControllerValidation,
|
|
1339
|
+
no as resetPasswordSchema,
|
|
1322
1340
|
d as socialProviderInfo,
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1341
|
+
ao as useAuthEmailProp,
|
|
1342
|
+
Mo as validateEmail,
|
|
1343
|
+
Do as validatePassword
|
|
1326
1344
|
};
|