@aws-amplify/ui-vue 2.3.15 → 2.4.2
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/components/alias-control.vue.d.ts.map +1 -1
- package/dist/components/confirm-reset-password.vue.d.ts.map +1 -1
- package/dist/components/confirm-sign-in.vue.d.ts.map +1 -1
- package/dist/components/confirm-sign-up.vue.d.ts.map +1 -1
- package/dist/components/confirm-verify-user.vue.d.ts.map +1 -1
- package/dist/components/federated-sign-in-button.vue.d.ts.map +1 -1
- package/dist/components/federated-sign-in.vue.d.ts.map +1 -1
- package/dist/components/force-new-password.vue.d.ts.map +1 -1
- package/dist/components/password-control.vue.d.ts.map +1 -1
- package/dist/components/primitives/base-alert.vue.d.ts.map +1 -1
- package/dist/components/primitives/base-two-tabs.vue.d.ts.map +1 -1
- package/dist/components/reset-password.vue.d.ts.map +1 -1
- package/dist/components/setup-totp.vue.d.ts.map +1 -1
- package/dist/components/sign-in.vue.d.ts.map +1 -1
- package/dist/components/sign-up.vue.d.ts.map +1 -1
- package/dist/components/verify-user.vue.d.ts.map +1 -1
- package/dist/composables/useUtils.d.ts +1 -0
- package/dist/composables/useUtils.d.ts.map +1 -1
- package/dist/index.cjs +14 -14
- package/dist/index.js +253 -354
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -62,15 +62,11 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
62
62
|
});
|
|
63
63
|
const _hoisted_1$a = {
|
|
64
64
|
key: 0,
|
|
65
|
-
class: "amplify-flex amplify-alert",
|
|
65
|
+
class: "amplify-flex amplify-alert amplify-authenticator__base",
|
|
66
66
|
"data-variation": "error",
|
|
67
|
-
style: { "align-items": "center", "justify-content": "space-between" },
|
|
68
67
|
role: "alert"
|
|
69
68
|
};
|
|
70
|
-
const _hoisted_2$7 = {
|
|
71
|
-
class: "amplify-flex",
|
|
72
|
-
style: { "align-items": "center" }
|
|
73
|
-
};
|
|
69
|
+
const _hoisted_2$7 = { class: "amplify-flex amplify-authenticator__icon-wrapper" };
|
|
74
70
|
const _hoisted_3$5 = /* @__PURE__ */ createElementVNode("svg", {
|
|
75
71
|
xmlns: "http://www.w3.org/2000/svg",
|
|
76
72
|
class: "amplify-icon",
|
|
@@ -189,12 +185,12 @@ function createSharedComposable(composable) {
|
|
|
189
185
|
return state;
|
|
190
186
|
};
|
|
191
187
|
}
|
|
192
|
-
var t$
|
|
188
|
+
var t$5 = function(t2) {
|
|
193
189
|
var n2;
|
|
194
190
|
return (n2 = t2.context.actorRef) === null || n2 === void 0 ? void 0 : n2.getSnapshot();
|
|
195
|
-
}, n$
|
|
191
|
+
}, n$7 = function(n2) {
|
|
196
192
|
var o2;
|
|
197
|
-
return (o2 = t$
|
|
193
|
+
return (o2 = t$5(n2)) === null || o2 === void 0 ? void 0 : o2.context;
|
|
198
194
|
};
|
|
199
195
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
200
196
|
var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
@@ -445,13 +441,13 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
445
441
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
446
442
|
PERFORMANCE OF THIS SOFTWARE.
|
|
447
443
|
***************************************************************************** */
|
|
448
|
-
var t$
|
|
449
|
-
return t$
|
|
444
|
+
var t$4 = function() {
|
|
445
|
+
return t$4 = Object.assign || function(t2) {
|
|
450
446
|
for (var e2, n2 = 1, r2 = arguments.length; n2 < r2; n2++)
|
|
451
447
|
for (var o2 in e2 = arguments[n2])
|
|
452
448
|
Object.prototype.hasOwnProperty.call(e2, o2) && (t2[o2] = e2[o2]);
|
|
453
449
|
return t2;
|
|
454
|
-
}, t$
|
|
450
|
+
}, t$4.apply(this, arguments);
|
|
455
451
|
};
|
|
456
452
|
function e$7(t2, e2) {
|
|
457
453
|
var n2 = {};
|
|
@@ -464,7 +460,7 @@ function e$7(t2, e2) {
|
|
|
464
460
|
}
|
|
465
461
|
return n2;
|
|
466
462
|
}
|
|
467
|
-
function n$
|
|
463
|
+
function n$6(t2, e2, n2, r2) {
|
|
468
464
|
return new (n2 || (n2 = Promise))(function(o2, a2) {
|
|
469
465
|
function l2(t3) {
|
|
470
466
|
try {
|
|
@@ -489,7 +485,7 @@ function n$5(t2, e2, n2, r2) {
|
|
|
489
485
|
i2((r2 = r2.apply(t2, e2 || [])).next());
|
|
490
486
|
});
|
|
491
487
|
}
|
|
492
|
-
function r$
|
|
488
|
+
function r$4(t2, e2) {
|
|
493
489
|
var n2, r2, o2, a2, l2 = { label: 0, sent: function() {
|
|
494
490
|
if (1 & o2[0])
|
|
495
491
|
throw o2[1];
|
|
@@ -559,59 +555,69 @@ function o$8(t2, e2, n2) {
|
|
|
559
555
|
!r2 && o2 in e2 || (r2 || (r2 = Array.prototype.slice.call(e2, 0, o2)), r2[o2] = e2[o2]);
|
|
560
556
|
return t2.concat(r2 || Array.prototype.slice.call(e2));
|
|
561
557
|
}
|
|
562
|
-
var n$
|
|
563
|
-
var r$
|
|
558
|
+
var n$5 = ["birthdate", "email", "family_name", "given_name", "middle_name", "name", "nickname", "phone_number", "preferred_username", "profile", "website"], a$2 = ["username", "email", "phone_number"], m$2 = o$8(o$8(o$8([], a$2, true), n$5, true), ["confirmation_code", "password", "confirm_password"], false);
|
|
559
|
+
var r$3 = function(i2) {
|
|
564
560
|
var n2, r2 = (n2 = i2 == null ? void 0 : i2.context.config) === null || n2 === void 0 ? void 0 : n2.loginMechanisms;
|
|
565
561
|
return (r2 != null ? r2 : ["username"])[0];
|
|
566
562
|
};
|
|
567
|
-
var
|
|
568
|
-
var
|
|
569
|
-
return function(
|
|
570
|
-
return e2({ type:
|
|
563
|
+
var n$4 = function(e2) {
|
|
564
|
+
var t2 = function(t3) {
|
|
565
|
+
return function(r2) {
|
|
566
|
+
return e2({ type: t3, data: r2 });
|
|
571
567
|
};
|
|
572
568
|
};
|
|
573
|
-
return { resendCode:
|
|
574
|
-
}, s$2 = function(
|
|
575
|
-
var s2, i2,
|
|
576
|
-
return { error: c2, hasValidationErrors: Object.keys(l2).length > 0, isPending: t2.hasTag("pending") || ((i2 = t$6(t2)) === null || i2 === void 0 ? void 0 : i2.hasTag("pending")), route: function() {
|
|
569
|
+
return { resendCode: t2("RESEND"), signOut: t2("SIGN_OUT"), submitForm: t2("SUBMIT"), updateForm: t2("CHANGE"), updateBlur: t2("BLUR"), toFederatedSignIn: t2("FEDERATED_SIGN_IN"), toResetPassword: t2("RESET_PASSWORD"), toSignIn: t2("SIGN_IN"), toSignUp: t2("SIGN_UP"), skipVerification: t2("SKIP") };
|
|
570
|
+
}, s$2 = function(n2) {
|
|
571
|
+
var s2, i2, a2 = (s2 = n2.context) === null || s2 === void 0 ? void 0 : s2.user, o2 = t$5(n2), u2 = n$7(n2), c2 = u2 == null ? void 0 : u2.remoteError, d2 = t$4({}, u2 == null ? void 0 : u2.validationError), l2 = u2 == null ? void 0 : u2.codeDeliveryDetails, m2 = Object.keys(d2).length > 0, f2 = n2.hasTag("pending") || ((i2 = t$5(n2)) === null || i2 === void 0 ? void 0 : i2.hasTag("pending")), v2 = function() {
|
|
577
572
|
switch (true) {
|
|
578
|
-
case
|
|
573
|
+
case n2.matches("idle"):
|
|
579
574
|
return "idle";
|
|
580
|
-
case
|
|
575
|
+
case n2.matches("setup"):
|
|
581
576
|
return "setup";
|
|
582
|
-
case
|
|
577
|
+
case n2.matches("signOut"):
|
|
583
578
|
return "signOut";
|
|
584
|
-
case
|
|
579
|
+
case n2.matches("authenticated"):
|
|
585
580
|
return "authenticated";
|
|
586
|
-
case (
|
|
581
|
+
case (o2 == null ? void 0 : o2.matches("confirmSignUp")):
|
|
587
582
|
return "confirmSignUp";
|
|
588
|
-
case (
|
|
583
|
+
case (o2 == null ? void 0 : o2.matches("confirmSignIn")):
|
|
589
584
|
return "confirmSignIn";
|
|
590
|
-
case (
|
|
585
|
+
case (o2 == null ? void 0 : o2.matches("setupTOTP")):
|
|
591
586
|
return "setupTOTP";
|
|
592
|
-
case (
|
|
587
|
+
case (o2 == null ? void 0 : o2.matches("signIn")):
|
|
593
588
|
return "signIn";
|
|
594
|
-
case (
|
|
589
|
+
case (o2 == null ? void 0 : o2.matches("signUp")):
|
|
595
590
|
return "signUp";
|
|
596
|
-
case (
|
|
591
|
+
case (o2 == null ? void 0 : o2.matches("forceNewPassword")):
|
|
597
592
|
return "forceNewPassword";
|
|
598
|
-
case (
|
|
593
|
+
case (o2 == null ? void 0 : o2.matches("resetPassword")):
|
|
599
594
|
return "resetPassword";
|
|
600
|
-
case (
|
|
595
|
+
case (o2 == null ? void 0 : o2.matches("confirmResetPassword")):
|
|
601
596
|
return "confirmResetPassword";
|
|
602
|
-
case (
|
|
597
|
+
case (o2 == null ? void 0 : o2.matches("verifyUser")):
|
|
603
598
|
return "verifyUser";
|
|
604
|
-
case (
|
|
599
|
+
case (o2 == null ? void 0 : o2.matches("confirmVerifyUser")):
|
|
605
600
|
return "confirmVerifyUser";
|
|
606
601
|
default:
|
|
607
|
-
return console.debug("Cannot infer `route` from Authenticator state:",
|
|
602
|
+
return console.debug("Cannot infer `route` from Authenticator state:", n2.value), null;
|
|
603
|
+
}
|
|
604
|
+
}(), h2 = function(e2) {
|
|
605
|
+
switch (e2) {
|
|
606
|
+
case "idle":
|
|
607
|
+
case "setup":
|
|
608
|
+
return "configuring";
|
|
609
|
+
case "authenticated":
|
|
610
|
+
return "authenticated";
|
|
611
|
+
default:
|
|
612
|
+
return "unauthenticated";
|
|
608
613
|
}
|
|
609
|
-
}()
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
614
|
+
}(v2);
|
|
615
|
+
return { error: c2, hasValidationErrors: m2, isPending: f2, route: v2, authStatus: h2, user: a2, validationErrors: d2, codeDeliveryDetails: l2 };
|
|
616
|
+
}, i$3 = function(t2) {
|
|
617
|
+
var r2 = t2.send, i2 = t2.state, a2 = n$4(r2), o2 = s$2(i2);
|
|
618
|
+
return t$4(t$4({}, a2), o2);
|
|
613
619
|
};
|
|
614
|
-
var r$
|
|
620
|
+
var r$2 = ["+1", "+7", "+20", "+27", "+30", "+31", "+32", "+33", "+34", "+36", "+39", "+40", "+41", "+43", "+44", "+45", "+46", "+47", "+48", "+49", "+51", "+52", "+53", "+54", "+55", "+56", "+57", "+58", "+60", "+61", "+62", "+63", "+64", "+65", "+66", "+81", "+82", "+84", "+86", "+90", "+91", "+92", "+93", "+94", "+95", "+98", "+212", "+213", "+216", "+218", "+220", "+221", "+222", "+223", "+224", "+225", "+226", "+227", "+228", "+229", "+230", "+231", "+232", "+233", "+234", "+235", "+236", "+237", "+238", "+239", "+240", "+241", "+242", "+243", "+244", "+245", "+246", "+248", "+249", "+250", "+251", "+252", "+253", "+254", "+255", "+256", "+257", "+258", "+260", "+261", "+262", "+263", "+264", "+265", "+266", "+267", "+268", "+269", "+290", "+291", "+297", "+298", "+299", "+345", "+350", "+351", "+352", "+353", "+354", "+355", "+356", "+357", "+358", "+359", "+370", "+371", "+372", "+373", "+374", "+375", "+376", "+377", "+378", "+379", "+380", "+381", "+382", "+385", "+386", "+387", "+389", "+420", "+421", "+423", "+500", "+501", "+502", "+503", "+504", "+505", "+506", "+507", "+508", "+509", "+537", "+590", "+591", "+593", "+594", "+595", "+596", "+597", "+598", "+599", "+670", "+672", "+673", "+674", "+675", "+676", "+677", "+678", "+679", "+680", "+681", "+682", "+683", "+685", "+686", "+687", "+688", "+689", "+690", "+691", "+692", "+850", "+852", "+853", "+855", "+856", "+872", "+880", "+886", "+960", "+961", "+962", "+963", "+964", "+965", "+966", "+967", "+968", "+970", "+971", "+972", "+973", "+974", "+975", "+976", "+977", "+992", "+993", "+994", "+995", "+996", "+998"];
|
|
615
621
|
var e$6 = { "Account recovery requires verified contact information": "Zur\xFCcksetzen des Account ben\xF6tigt einen verifizierten Account", "An account with the given email already exists.": "Ein Account mit dieser Email existiert bereits.", "Back to Sign In": "Zur\xFCck zur Anmeldung", "Change Password": "Passwort \xE4ndern", Code: "Code", Confirm: "Best\xE4tigen", "Confirm Password": "Passwort best\xE4tigen", "Confirm a Code": "Code best\xE4tigen", "Confirm Sign In": "Anmeldung best\xE4tigen", "Confirm Sign Up": "Registrierung best\xE4tigen", "Confirm SMS Code": "SMS-Code best\xE4tigen", "Confirm TOTP Code": "TOTP-Code best\xE4tigen", "Confirmation Code": "Best\xE4tigungs-Code", "Create a new account": "Einen neuen Account erstellen", "Create account": "Hier registrieren", "Create Account": "Account erstellen", "Creating Account": "Account wird erstellt", Email: "Email", "Enter your code": "Geben Sie Ihren Code ein", "Enter your password": "Geben Sie Ihr Passwort ein", "Enter your username": "Geben Sie Ihren Benutzernamen ein", "Enter your phone number": "Geben Sie Ihre Telefonnummer ein", "Enter your email": "Geben Sie ihre Email ein", "Forgot your password?": "Passwort vergessen? ", "Forgot Password": "Passwort vergessen", "Hide password": "Passwort verbergen", "Have an account? ": "Schon registriert? ", "Incorrect username or password": "Falscher Benutzername oder falsches Passwort", "Invalid password format": "Ung\xFCltiges Passwort-Format", "Invalid phone number format": "Ung\xFCltiges Telefonummern-Format. Benutze eine Nummer im Format: +12345678900", "Lost your code? ": "Code verloren? ", "New Password": "Neues Passwort", "No account? ": "Kein Account? ", or: "oder", Password: "Passwort", "Password attempts exceeded": "Die maximale Anzahl der fehlerhaften Anmeldeversuche wurde erreicht", "Phone Number": "Telefonnummer", "Resend Code": "Code erneut senden", "Reset password": "Passwort zur\xFCcksetzen", "Reset your password": "Zur\xFCcksetzen des Passworts", "Send Code": "Code senden", "Sign in": "Anmelden", "Sign In": "Anmelden", "Sign in to your account": "Melden Sie sich mit Ihrem Account an", "Sign Out": "Abmelden", "Sign Up": "Registrieren", Skip: "\xDCberspringen", Submit: "Abschicken", "User already exists": "Dieser Benutzer existiert bereits", "User does not exist": "Dieser Benutzer existiert nicht", Username: "Benutzername", "Username cannot be empty": "Benutzername darf nicht leer sein", Verify: "Verifizieren", "Verify Contact": "Kontakt verifizieren" };
|
|
616
622
|
var n$3 = { "Account recovery requires verified contact information": "Account recovery requires verified contact information", "Back to Sign In": "Back to Sign In", "Change Password": "Change Password", Changing: "Changing", Code: "Code", Confirm: "Confirm", "Confirm Password": "Confirm Password", "Confirm Sign Up": "Confirm Sign Up", "Confirm SMS Code": "Confirm SMS Code", "Confirm TOTP Code": "Confirm TOTP Code", "Confirmation Code": "Confirmation Code", Confirming: "Confirming", "Create Account": "Create Account", "Creating Account": "Creating Account", Email: "Email", "Enter your code": "Enter your code", "Enter your username": "Enter your username", "Enter your phone number": "Enter your phone number", "Enter your email": "Enter your email", "Forgot your password?": "Forgot your password?", "Hide password": "Hide password", Loading: "Loading", Username: "Username", "New password": "New password", Password: "Password", "Phone Number": "Phone Number", "Resend Code": "Resend Code", "Reset your password": "Reset your password", "Reset your Password": "Reset your Password", "Send Code": "Send Code", "Send code": "Send code", Sending: "Sending", "Setup TOTP": "Setup TOTP", "Show password": "Show password", "Sign in": "Sign in", "Sign In": "Sign In", "Sign In with Amazon": "Sign In with Amazon", "Sign In with Apple": "Sign In with Apple", "Sign In with Facebook": "Sign In with Facebook", "Sign In with Google": "Sign In with Google", "Sign in to your account": "Sign in to your account", "Create a new account": "Create a new account", "Signing in": "Signing in", Skip: "Skip", Submit: "Submit", Submitting: "Submitting", "Verify Contact": "Verify Contact", Verify: "Verify" };
|
|
617
623
|
var n$2 = { "Account recovery requires verified contact information": "La recuperaci\xF3n de la cuenta requiere informaci\xF3n de contacto verificada", "Back to Sign In": "Volver a inicio de sesi\xF3n", "Change Password": "Cambiar contrase\xF1a", Changing: "Cambiando", Code: "C\xF3digo", Confirm: "Confirmar", "Confirm a Code": "Confirmar un c\xF3digo", "Confirm Password": "Confirmar contrase\xF1a", "Confirm Sign In": "Confirmar inicio de sesi\xF3n", "Confirm Sign Up": "Confirmar registro", "Confirm TOTP Code": "Confirmar c\xF3digo TOTP", "Confirmation Code": "C\xF3digo de confirmaci\xF3n", Confirming: "Confirmando", "Create a new account": "Crear una cuenta nueva", "Creating Account": "Creando cuenta", Email: "Email", "Forgot Password": "Olvid\xE9 mi contrase\xF1a", "Incorrect username or password": "Nombre de usuario o contrase\xF1a incorrecta", "Invalid password format": "Formato de contrase\xF1a inv\xE1lido", "Invalid phone number format": "Formato de n\xFAmero de tel\xE9fono inv\xE1lido", "Forgot your password?": "\xBFOlvid\xF3 su contrase\xF1a?", "Hide password": "Ocultar contrase\xF1a", "Loading...": "Cargando...", "New Password": "Nueva contrase\xF1a", or: "o", Password: "Contrase\xF1a", "Phone Number": "N\xFAmero de tel\xE9fono", "Resend a Code": "Reenviar un c\xF3digo", "Reset your password": "Restablecer su contrase\xF1a", "Reset your Password": "Restablecer su Contrase\xF1a", "Resend Code": "Reenviar c\xF3digo", "Send Code": "Enviar c\xF3digo", Sending: "Enviando", "Setup TOTP": "Configurar TOTP", "Show password": "Mostrar contrase\xF1a", "Sign in": "Iniciar sesi\xF3n", "Sign In": "Iniciar Sesi\xF3n", "Sign In with Amazon": "Iniciar Sesi\xF3n con Amazon", "Sign In with Apple": "Iniciar Sesi\xF3n con Apple", "Sign In with Facebook": "Iniciar Sesi\xF3n con Facebook", "Sign In with Google": "Iniciar Sesi\xF3n con Google", "Sign in to your account": "Iniciar sesi\xF3n en tu cuenta", "Sign Out": "Cerrar sesi\xF3n", "Sign Up": "Crear cuenta", "Signing in": "Iniciando sesi\xF3n", Skip: "Omitir", Submit: "Enviar", "User already exists": "El usuario ya existe", "User does not exist": "El usuario no existe", Username: "Nombre de usuario", "Username cannot be empty": "El nombre de usuario no puede estar vac\xEDo", Verify: "Verificar", "Verify Contact": "Verificar contacto" };
|
|
@@ -622,13 +628,13 @@ var e$4 = { "Back to Sign In": "\uB85C\uADF8\uC778\uC73C\uB85C \uB3CC\uC544\uAC0
|
|
|
622
628
|
var e$3 = { "Back to Sign In": "Terug naar inloggen", "Change Password": "Wachtwoord wijzigen", Changing: "Wordt aangepast", Code: "Code", "Confirm Password": "Bevestig Wachtwoord", "Reset your Password": "Wachtwoord resetten", "Confirm Sign Up": "Bevestig inschrijving", "Confirm SMS Code": "Bevestig SMS Code", "Confirm TOTP Code": "Bevestig TOTP Code", Confirm: "Bevestig", "Confirmation Code": "Bevestigingscode", Confirming: "Bevestigen", "Create Account": "Account aanmaken", "Creating Account": "Account wordt aangemaakt", Email: "E-mail", "Enter your code": "Vul je code in", "Enter your username": "Vul je gebruikersnaam in", "Enter your phone number": "Vul je telefoonnummer in", "Enter your email": "Vul je e-mail in", "Forgot your password?": "Wachtwoord vergeten? ", "Hide password": "Verberg wachtwoord", Loading: "Laden", Username: "Gebruikersnaam", "New password": "Nieuw wachtwoord", Password: "Wachtwoord", "Phone Number": "Telefoonnummer", "Resend Code": "Verstuur code nogmaals", "Reset your password": "Reset je wachtwoord", "Send Code": "Verstuur Code", "Send code": "Verstuur code", Sending: "Versturen", "Setup TOTP": "TOTP Instellingen", "Show password": "Toon wachtwoord", "Sign in": "Inloggen", "Sign In": "Inloggen", "Sign In with Amazon": "Inloggen met Amazon", "Sign In with Apple": "Inloggen met Apple", "Sign In with Facebook": "Inloggen met Facebook", "Sign In with Google": "Inloggen met Google", "Sign in to your account": "Inloggen op je account", "Create a new account": "Nieuw account aanmaken", "Signing in": "Inloggen", Skip: "Overslaan", Submit: "Versturen", Submitting: "Wordt verstuurd", "Verify Contact": "Verifieer Contact", "Account recovery requires verified contact information": "Accountherstel vereist geverifieerde contactgegevens", Verify: "Verifieer" };
|
|
623
629
|
var o$5 = { "Back to Sign In": "Powr\xF3t do logowania", Birthdate: "Data urodzenia", "Change Password": "Zmie\u0144 has\u0142o", Changing: "Zmienianie", Code: "Kod", "Confirm Password": "Potwierd\u017A Has\u0142o", "Reset your Password": "Zresetuj swoje has\u0142o", "Confirm Sign Up": "Potwierd\u017A rejestracj\u0119", "Confirm SMS Code": "Potwierd\u017A kod SMS", "Confirm TOTP Code": "Potwierd\u017A has\u0142o jednorazowe", Confirm: "Potwierd\u017A", "Confirmation Code": "Kod potwierdzenia", Confirming: "Potwierdzanie", "Create Account": "Utw\xF3rz konto", "Creating Account": "Tworzenie konta", Email: "E-mail", "Enter your code": "Wprowad\u017A sw\xF3j kod", "Enter your username": "Wprowad\u017A swoj\u0105 nazw\u0119 u\u017Cytkownika", "Family Name": "Nazwisko", "Given Name": "Pierwsze imi\u0119", "Forgot your password?": "Zapomnia\u0142e\u015B has\u0142a? ", "Hide password": "Ukryj has\u0142o", Loading: "\u0141adowanie", Username: "Nazwa u\u017Cytkownika", "Middle Name": "Drugie imi\u0119", Name: "Imi\u0119 i nazwisko", Nickname: "Pseudonim", "New password": "Nowe has\u0142o", Password: "Has\u0142o", "Phone Number": "Numer telefonu", "Preferred Username": "Preferowana nazwa u\u017Cytkownika", Profile: "Profil", "Resend Code": "Wy\u015Blij kod ponownie", "Reset your password": "Zresetuj swoje has\u0142o", "Send Code": "Zresetuj has\u0142o", "Send code": "Wy\u015Blij kod", Sending: "Wysy\u0142anie", "Setup TOTP": "Konfiguruj TOTP", "Show password": "Poka\u017C has\u0142o", "Sign in": "Zaloguj", "Sign In": "Logowanie", "Sign In with Amazon": "Zaloguj z Amazon", "Sign In with Apple": "Zaloguj z Apple", "Sign In with Facebook": "Zaloguj z Facebook", "Sign In with Google": "Zaloguj z Google", "Sign in to your account": "Zaloguj si\u0119 na swoje konto", "Create a new account": "Utw\xF3rz nowe konto", "Signing in": "Logowanie", Skip: "Pomi\u0144", Submit: "Wy\u015Blij", Submitting: "Wysy\u0142anie", "Verify Contact": "Weryfikacja danych kontaktowych", "Account recovery requires verified contact information": "Odzyskanie konta wymaga zweryfikowanych danych kontaktowych", Verify: "Zweryfikuj", Website: "Strona internetowa" };
|
|
624
630
|
var o$4 = { "Back to Sign In": "Voltar para Entrar", "Change Password": "Mudar senha", Changing: "Mudando", Code: "C\xF3digo", "Confirm Password": "Confirme a Senha", "Reset your Password": "Redefina sua senha", "Confirm Sign Up": "Confirmar inscri\xE7\xE3o", "Confirm SMS Code": "Confirme o c\xF3digo SMS", "Confirm TOTP Code": "Confirme o c\xF3digo TOTP", Confirm: "confirme", "Confirmation Code": "C\xF3digo de confirma\xE7\xE3o", Confirming: "Confirmando", "Create Account": "Criar Conta", "Creating Account": "Criando conta", Email: "O email", "Enter your code": "Insira seu c\xF3digo", "Enter your username": "entre com seu nome de usu\xE1rio", "Enter your phone number": "Digite seu n\xFAmero de telefone", "Enter your email": "Digite seu e-mail", "Forgot your password?": "Esqueceu sua senha? ", "Hide password": "Esconder a senha", Loading: "Carregando", Username: "Nome do usu\xE1rio", "New password": "Nova Senha", Password: "Senha", "Phone Number": "N\xFAmero de telefone", "Resend Code": "Reenviar c\xF3digo", "Reset your password": "Redefina sua senha", "Send Code": "Enviar c\xF3digo", "Send code": "Enviar c\xF3digo", Sending: "Enviando", "Setup TOTP": "Configurar TOTP", "Show password": "Mostrar senha", "Sign In": "Entrar", "Sign in": "Entrar", "Sign In with Amazon": "Entrar com a Amazon", "Sign In with Apple": "Entrar com a Apple", "Sign In with Facebook": "Entrar com o Facebook", "Sign In with Google": "Fa\xE7a login no Google", "Sign in to your account": "Fa\xE7a login em sua conta", "Create a new account": "Criar uma nova conta", "Signing in": "Entrando", Skip: "Pular", Submit: "Enviar", Submitting: "Enviando", "Verify Contact": "Verificar contato", "Account recovery requires verified contact information": "A recupera\xE7\xE3o da conta requer informa\xE7\xF5es de contato verificadas", Verify: "Verificar" };
|
|
625
|
-
var r = { "Account recovery requires verified contact information": "\u8D26\u6237\u6062\u590D\u9700\u8981\u9A8C\u8BC1\u8FC7\u7684\u8054\u7CFB\u65B9\u5F0F", "Back to Sign In": "\u56DE\u5230\u767B\u5F55", "Change Password": "\u66F4\u6539\u5BC6\u7801", Code: "\u786E\u8BA4\u7801", Confirm: "\u786E\u8BA4", "Confirm a Code": "\u786E\u8BA4\u7801", "Confirm Password": "\u786E\u8BA4\u5BC6\u7801", "Confirm Sign In": "\u786E\u8BA4\u767B\u5F55", "Confirm Sign Up": "\u786E\u8BA4\u6CE8\u518C", Email: "\u90AE\u7BB1", "Forgot Password": "\u5FD8\u8BB0\u5BC6\u7801", "Incorrect username or password": "\u7528\u6237\u540D\u6216\u5BC6\u7801\u9519\u8BEF", "Invalid password format": "\u5BC6\u7801\u683C\u5F0F\u9519\u8BEF", "Invalid phone number format": "\u7535\u8BDD\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u4F7F\u7528\u683C\u5F0F +12345678900", "New Password": "\u65B0\u5BC6\u7801", or: "\u6216\u8005", Password: "\u5BC6\u7801", "Phone Number": "\u7535\u8BDD", "Resend a Code": "\u91CD\u53D1\u786E\u8BA4\u7801", "Send Code": "\u53D1\u9001\u786E\u8BA4\u7801", "Sign In": "\u767B\u5F55", "Sign Out": "\u9000\u51FA", "Sign Up": "\u6CE8\u518C", Skip: "\u8DF3\u8FC7", Submit: "\u63D0\u4EA4", "User already exists": "\u7528\u6237\u5DF2\u7ECF\u5B58\u5728", "User does not exist": "\u7528\u6237\u4E0D\u5B58\u5728", Username: "\u7528\u6237\u540D", Verify: "\u9A8C\u8BC1", "Verify Contact": "\u9A8C\u8BC1\u8054\u7CFB\u65B9\u5F0F" };
|
|
631
|
+
var r$1 = { "Account recovery requires verified contact information": "\u8D26\u6237\u6062\u590D\u9700\u8981\u9A8C\u8BC1\u8FC7\u7684\u8054\u7CFB\u65B9\u5F0F", "Back to Sign In": "\u56DE\u5230\u767B\u5F55", "Change Password": "\u66F4\u6539\u5BC6\u7801", Code: "\u786E\u8BA4\u7801", Confirm: "\u786E\u8BA4", "Confirm a Code": "\u786E\u8BA4\u7801", "Confirm Password": "\u786E\u8BA4\u5BC6\u7801", "Confirm Sign In": "\u786E\u8BA4\u767B\u5F55", "Confirm Sign Up": "\u786E\u8BA4\u6CE8\u518C", Email: "\u90AE\u7BB1", "Forgot Password": "\u5FD8\u8BB0\u5BC6\u7801", "Incorrect username or password": "\u7528\u6237\u540D\u6216\u5BC6\u7801\u9519\u8BEF", "Invalid password format": "\u5BC6\u7801\u683C\u5F0F\u9519\u8BEF", "Invalid phone number format": "\u7535\u8BDD\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u4F7F\u7528\u683C\u5F0F +12345678900", "New Password": "\u65B0\u5BC6\u7801", or: "\u6216\u8005", Password: "\u5BC6\u7801", "Phone Number": "\u7535\u8BDD", "Resend a Code": "\u91CD\u53D1\u786E\u8BA4\u7801", "Send Code": "\u53D1\u9001\u786E\u8BA4\u7801", "Sign In": "\u767B\u5F55", "Sign Out": "\u9000\u51FA", "Sign Up": "\u6CE8\u518C", Skip: "\u8DF3\u8FC7", Submit: "\u63D0\u4EA4", "User already exists": "\u7528\u6237\u5DF2\u7ECF\u5B58\u5728", "User does not exist": "\u7528\u6237\u4E0D\u5B58\u5728", Username: "\u7528\u6237\u540D", Verify: "\u9A8C\u8BC1", "Verify Contact": "\u9A8C\u8BC1\u8054\u7CFB\u65B9\u5F0F" };
|
|
626
632
|
var e$2 = { "Account recovery requires verified contact information": "F\xF6r att \xE5terst\xE4lla kontot beh\xF6ver du ett verifierat konto", "An account with the given email already exists.": "Det finns redan ett konto med denna e-postadress", "Back to Sign In": "Tillbaka till inloggningen", "Change Password": "Byt l\xF6senord", "Confirm Password": "Bekr\xE4fta l\xF6senord", Code: "Kod", Confirm: "Bekr\xE4fta", "Confirm a Code": "Bekr\xE4fta koden", "Confirm Sign In": "Bekr\xE4fta inloggning", "Confirm Sign Up": "Bekr\xE4fta registrering", "Confirmation Code": "Verifikationskod", "Create a new account": "Skapa ett nytt konto", "Create account": "Skapa konto", "Create Account": "Skapa konto", Email: "E-post", "Enter your password": "Ange ditt l\xF6senord", "Enter your username": "Ange ditt anv\xE4ndarnamn", "Forgot Password": "Gl\xF6mt l\xF6senordet", "Forgot your password?": "Gl\xF6mt ditt l\xF6senord? ", "Have an account? ": "Redan registrerad? ", "Incorrect username or password": "Felaktigt anv\xE4ndarnamn eller l\xF6senord", "Invalid password format": "Ogiltigt l\xF6senordsformat", "Invalid phone number format": "Ogiltigt format f\xF6r telefonnummer", "Lost your code? ": "F\xF6rlorat koden? ", "New Password": "Nytt l\xF6senord", "No account? ": "Inget konto? ", or: "eller", Password: "L\xF6senord", "Password attempts exceeded": "Maximalt antal felaktiga inloggningsf\xF6rs\xF6k har uppn\xE5tts", "Phone Number": "Telefonnummer", "Resend Code": "Skicka koden igen", "Reset password": "\xC5terst\xE4ll l\xF6senord", "Reset your password": "\xC5terst\xE4ll ditt l\xF6senord", "Send code": "Skicka kod", "Sign in": "Logga in", "Sign In": "Logga in", "Sign in to your account": "Logga in till ditt konto", "Sign Out": "Logga ut", "Sign Up": "Registrering", "We Emailed You": "Vi har skickat e-post till dig", "Enter your code": "Skriv din kod", Skip: "Hoppa \xF6ver", Submit: "Skicka", "User already exists": "Anv\xE4ndaren finns redan", "User does not exist": "Anv\xE4ndaren finns inte", Username: "Anv\xE4ndarnamn", "Username cannot be empty": "Anv\xE4ndarnamnet kan inte vara tomt", Verify: "Verifiera", "Verify Contact": "Verifiera kontakt" };
|
|
627
633
|
var a$1 = { "Account recovery requires verified contact information": "Pemulihan akun memerlukan informasi kontak terverifikasi", "An account with the given email already exists.": "Akun dengan email tersebut sudah terdaftar.", "Attempt limit exceeded, please try after some time.": "Batas percobaan terlampaui, mohon coba lagi setelah beberapa waktu.", "Back to Sign In": "Kembali ke Masuk", "Cannot reset password for the user as there is no registered/verified email or phone_number": "Tidak dapat mengatur ulang kata sandi karena tidak ada email terdaftar / terverifikasi atau nomor telepon", Change: "Ubah", "Change Password": "Ubah kata sandi", Code: "Kode", Confirm: "Konfirmasi", "Confirm a Code": "Konfirmasi kode", "Confirm Password": "Konfirmasi kata sandi", "Confirmation Code": "Kode Konfirmasi", "Create a new account": "Buat akun baru", "Create account": "Buat akun", "Create Account": "Buat Akun", "Creating Account": "Membuat Akun", Confirming: "Mengkonfirmasi", Email: "Email", "Enter your code": "Masukkan kode anda", "Enter your email": "Masukkan email anda", "Enter your password": "Masukkan kata sandi anda", "Enter your phone number": "Masukkan nomor telepon anda", "Enter your username": "Masukkan nama akun anda", "Forgot Password": "Lupa kata sandi", "Forgot your password?": "Lupa kata sandi? ", "Have an account? ": "Sudah punya akun? ", Hello: "Halo", "Incorrect username or password.": "Nama akun atau kata sandi salah.", "Invalid phone number format": "Nomor telepon tidak sesuai dengan format.", "Invalid verification code provided, please try again.": "Kode verifikasi tidak sesuai, mohon coba lagi.", "It may take a minute to arrive.": "Mungkin perlu beberapa waktu untuk tiba.", "Lost your code? ": "Kode anda hilang?", Name: "Nama", "Network error": "Galat jaringan", "New password": "Kata sandi baru", "No account? ": "Tidak ada akun?", or: "atau", Password: "Kata sandi", "Password did not conform with policy: Password not long enough": "Kata sandi tidak sesuai dengan aturan: Kata sandi kurang panjang", "Phone Number": "Nomor telepon", "Resend a Code": "Renvoyer un code", "Resend Code": "Kirim ulang kodenya", "Reset password": "Ubah kata sandi anda", "Reset your password": "Ubah kata sandi anda", Send: "Kirim", "Send Code": "Kirim Kode", "Send code": "Kirim kode", Sending: "Mengirim", "Sign in": "Masuk", "Sign In": "Masuk", "Sign in to your account": "Masuk akun anda", "Sign In with Amazon": "Masuk dengan Amazon", "Sign In with AWS": "Masuk dengan AWS", "Sign In with Facebook": "Masuk dengan Facebook", "Sign In with Google": "Masuk dengan Google", "Sign Up with Amazon": "Daftar dengan Amazon", "Sign Up with AWS": "Daftar dengan AWS", "Sign Up with Facebook": "Daftar dengan Facebook", "Sign Up with Google": "Daftar dengan Google", "Signing in": "Memasuki", Skip: "Lewati", SMS: "SMS", Submit: "Ajukan", Submitting: "Mengajukan", "User is disabled.": "Akun dinonaktifkan.", "User already exists": "Akun sudah terdaftar", "User does not exist.": "Akun tidak terdaftar.", Username: "Nama akun", "Username cannot be empty": "Nama akun tidak boleh kosong", "Username/client id combination not found.": "Nama akun atau id tidak ditemukan.", Verify: "Verifikasi", "Verify Contact": "Verifikasi Kontak", "We Emailed You": "Kami mengirimkanmu email", "Your code is on the way. To log in, enter the code we emailed to": "Kode anda dalam pengiriman. Untuk masuk, masukkan kode yang kami emailkan ke", "Your code is on the way. To log in, enter the code we texted to": "Kode anda dalam pengiriman. Untuk masuk, masukkan kode yang kami tuliskan ke", "Your passwords must match": "Kata sandi harus sama" };
|
|
628
634
|
var e$1 = { "Account recovery requires verified contact information": "Hesap kurtarma, do\u011Frulanm\u0131\u015F ileti\u015Fim bilgilerini gerektirir", "An account with the given email already exists.": "Bu e-postaya ait zaten bir hesap var.", "Back to Sign In": "Oturum A\xE7maya Geri D\xF6n", "Change Password": "\u015Eifreyi De\u011Fi\u015Ftir", Changing: "De\u011Fi\u015Ftiriliyor", Code: "Kod", Confirm: "Do\u011Frula", "Confirm Password": "\u015Eifreyi Do\u011Frula", "Confirm Sign In": "Oturum A\xE7may\u0131 Do\u011Frula", "Confirm Sign Up": "Kay\u0131t \u0130\u015Flemini Do\u011Frula", "Confirm SMS Code": "SMS Kodunu Do\u011Frula", "Confirm TOTP Code": "Tek Kullan\u0131ml\u0131k \u015Eifreyi Do\u011Frula", "Confirmation Code": "Do\u011Frulama Kodu", Confirming: "Do\u011Frulan\u0131yor", "Create Account": "Hesap Olu\u015Ftur", "Creating Account": "Hesap Olu\u015Fturuluyor", Email: "E-posta", "Enter your code": "Kodu girin", "Enter your username": "Kullan\u0131c\u0131 ad\u0131n\u0131z\u0131 girin", "Enter your phone number": "Telefon numaran\u0131z\u0131 girin", "Enter your email": "E-posta adresinizi girin", "Forgot your password?": "\u015Eifrenizi mi unuttunuz?", "Hide password": "\u015Eifreyi gizle", "Have an account? ": "Hesab\u0131n\u0131z var m\u0131? ", "Incorrect username or password": "Yanl\u0131\u015F kullan\u0131c\u0131 ad\u0131 ya da \u015Fifre", "Invalid password format": "Ge\xE7ersiz parola format\u0131", "Invalid phone number format": "Ge\xE7ersiz telefon numaras\u0131 format\u0131", "Lost your code? ": "Kodu mu kaybettiniz? ", Loading: "Y\xFCkleniyor", "New password": "Yeni \u015Fifre", "No account? ": "Hesab\u0131n\u0131z yok mu? ", or: "veya", Password: "\u015Eifre", "Password attempts exceeded": "Maksimum oturum a\xE7ma giri\u015Fimi a\u015F\u0131ld\u0131", "Phone Number": "Telefon Numaras\u0131", "Resend Code": "Kodu Yeniden G\xF6nder", "Reset your password": "\u015Eifrenizi s\u0131f\u0131rlay\u0131n", "Reset your Password": "\u015Eifrenizi S\u0131f\u0131rlay\u0131n", "Send Code": "Kod G\xF6nder", "Send code": "Kod g\xF6nder", Sending: "G\xF6nderiliyor", "Setup TOTP": "Tek kullan\u0131ml\u0131k \u015Fifre kurulumu yap", "Show password": "\u015Eifreyi g\xF6ster", "Sign in": "Oturum a\xE7", "Sign In": "Oturum A\xE7", "Sign In with Amazon": "Amazon ile Oturum A\xE7", "Sign In with Apple": "Apple ile Oturum A\xE7", "Sign In with Facebook": "Facebook ile Oturum A\xE7", "Sign In with Google": "Google ile Oturum A\xE7", "Sign in to your account": "Hesab\u0131n\u0131zda oturum a\xE7\u0131n", "Create a new account": "Yeni bir hesap olu\u015Ftur", "Signing in": "Oturum a\xE7\u0131l\u0131yor", "Sign Out": "\xC7\u0131k\u0131\u015F yap", "Sign Up": "Kay\u0131t Ol", Skip: "Atla", Submit: "G\xF6nder", Submitting: "G\xF6nderiliyor", "User already exists": "Bu kullan\u0131c\u0131 zaten var", "User does not exist": "B\xF6yle bir kullan\u0131c\u0131 mevcut de\u011Fil", Username: "Kullan\u0131c\u0131 ad\u0131", "Username cannot be empty": "Kullan\u0131c\u0131 ad\u0131 bo\u015F olamaz", "Verify Contact": "Ki\u015Fiyi Do\u011Frula", Verify: "Do\u011Frula" };
|
|
629
635
|
var N$1 = { BACK_SIGN_IN: "Back to Sign In", BIRTHDATE: "Birthdate", CHANGE_PASSWORD: "Change Password", CHANGING_PASSWORD: "Changing", CODE: "Code", CONFIRM_PASSWORD: "Confirm Password", CONFIRM_RESET_PASSWORD_HEADING: "Reset your Password", CONFIRM_SIGNUP_HEADING: "Confirm Sign Up", CONFIRM_SMS: "Confirm SMS Code", CONFIRM_TOTP: "Confirm TOTP Code", CONFIRM: "Confirm", CONFIRMATION_CODE: "Confirmation Code", CONFIRMING: "Confirming", CREATE_ACCOUNT: "Create Account", CREATING_ACCOUNT: "Creating Account", EMAIL_ADDRESS: "Email", ENTER_CODE: "Enter your code", ENTER_USERNAME: "Enter your username", FAMILY_NAME: "Family Name", GIVEN_NAME: "Given Name", FORGOT_YOUR_PASSWORD: "Forgot your password?", FORGOT_YOUR_PASSWORD_LEGACY: "Forgot your password? ", HIDE_PASSWORD: "Hide password", LOADING: "Loading", LOGIN_NAME: "Username", MIDDLE_NAME: "Middle Name", NAME: "Name", NICKNAME: "Nickname", NEW_PASSWORD: "New password", PASSWORD: "Password", PHONE_NUMBER: "Phone Number", PREFERRED_USERNAME: "Preferred Username", PROFILE: "Profile", RESEND_CODE: "Resend Code", RESET_PASSWORD_HEADING: "Reset your password", RESET_PASSWORD: "Reset Password", SEND_CODE: "Send code", SENDING: "Sending", SETUP_TOTP: "Setup TOTP", SHOW_PASSWORD: "Show password", SIGN_IN_BUTTON: "Sign in", SIGN_IN_TAB: "Sign In", SIGN_IN_WITH_AMAZON: "Sign In with Amazon", SIGN_IN_WITH_APPLE: "Sign In with Apple", SIGN_IN_WITH_FACEBOOK: "Sign In with Facebook", SIGN_IN_WITH_GOOGLE: "Sign In with Google", SIGN_IN: "Sign in to your account", SIGN_UP_BUTTON: "Create a new account", SIGNING_IN_BUTTON: "Signing in", SKIP: "Skip", SUBMIT: "Submit", SUBMITTING: "Submitting", VERIFY_CONTACT: "Verify Contact", VERIFY_HEADING: "Account recovery requires verified contact information", VERIFY: "Verify", WEBSITE: "Website" };
|
|
630
|
-
var l$2 = t$
|
|
631
|
-
t$
|
|
636
|
+
var l$2 = t$4({}, e$6), d$2 = t$4({}, n$3), v$2 = t$4({}, n$2), x$1 = t$4({}, e$5), b$2 = t$4({}, o$7), k$1 = t$4({}, o$6), z = t$4({}, e$4), T = t$4({}, e$3), _$1 = t$4({}, o$5), g$2 = t$4({}, o$4), q$1 = t$4({}, r$1), w$1 = t$4({}, e$2), y$1 = t$4({}, a$1), A$1 = t$4({}, e$1), B = t$4({}, N$1);
|
|
637
|
+
t$4({}, B);
|
|
632
638
|
function g$1(r2) {
|
|
633
639
|
return I18n.get(r2);
|
|
634
640
|
}
|
|
@@ -636,7 +642,7 @@ function x(r2) {
|
|
|
636
642
|
return I18n.get(r2) !== r2;
|
|
637
643
|
}
|
|
638
644
|
var h$1 = { de: l$2, en: d$2, es: v$2, fr: x$1, id: y$1, it: b$2, ja: k$1, kr: z, nl: T, pl: _$1, pt: g$2, zh: q$1, sv: w$1, tr: A$1 };
|
|
639
|
-
var l$1 = { birthdate: { label: "Birthdate", labelHidden: true, placeholder: "Birthdate", type: "date", autocomplete: "bday", isRequired: true }, confirmation_code: { label: "Confirmation Code", labelHidden: true, placeholder: "Code", type: "number", autocomplete: "one-time-code", isRequired: true }, confirm_password: { label: "Confirm Password", labelHidden: true, placeholder: "Confirm Password", type: "password", autocomplete: "new-password", isRequired: true }, email: { label: "Email", labelHidden: true, placeholder: "Email", type: "email", autocomplete: "username", isRequired: true }, family_name: { label: "Family Name", labelHidden: true, placeholder: "Family Name", type: "text", autocomplete: "family-name", isRequired: true }, given_name: { label: "Given Name", labelHidden: true, placeholder: "Given Name", type: "text", autocomplete: "given-name", isRequired: true }, middle_name: { label: "Middle Name", labelHidden: true, placeholder: "Middle Name", type: "text", autocomplete: "additional-name", isRequired: true }, name: { label: "Name", labelHidden: true, placeholder: "Name", type: "text", autocomplete: "name", isRequired: true }, nickname: { label: "Nickname", labelHidden: true, placeholder: "Nickname", type: "text", autocomplete: "tel", isRequired: true }, password: { label: "Password", labelHidden: true, placeholder: "Password", type: "password", autocomplete: "new-password", isRequired: true }, phone_number: { label: "Phone Number", labelHidden: true, placeholder: "Phone", type: "tel", autocomplete: "tel", dialCode: "+1", dialCodeList: r$
|
|
645
|
+
var l$1 = { birthdate: { label: "Birthdate", labelHidden: true, placeholder: "Birthdate", type: "date", autocomplete: "bday", isRequired: true }, confirmation_code: { label: "Confirmation Code", labelHidden: true, placeholder: "Code", type: "number", autocomplete: "one-time-code", isRequired: true }, confirm_password: { label: "Confirm Password", labelHidden: true, placeholder: "Confirm Password", type: "password", autocomplete: "new-password", isRequired: true }, email: { label: "Email", labelHidden: true, placeholder: "Email", type: "email", autocomplete: "username", isRequired: true }, family_name: { label: "Family Name", labelHidden: true, placeholder: "Family Name", type: "text", autocomplete: "family-name", isRequired: true }, given_name: { label: "Given Name", labelHidden: true, placeholder: "Given Name", type: "text", autocomplete: "given-name", isRequired: true }, middle_name: { label: "Middle Name", labelHidden: true, placeholder: "Middle Name", type: "text", autocomplete: "additional-name", isRequired: true }, name: { label: "Name", labelHidden: true, placeholder: "Name", type: "text", autocomplete: "name", isRequired: true }, nickname: { label: "Nickname", labelHidden: true, placeholder: "Nickname", type: "text", autocomplete: "tel", isRequired: true }, password: { label: "Password", labelHidden: true, placeholder: "Password", type: "password", autocomplete: "new-password", isRequired: true }, phone_number: { label: "Phone Number", labelHidden: true, placeholder: "Phone", type: "tel", autocomplete: "tel", dialCode: "+1", dialCodeList: r$2, isRequired: true }, preferred_username: { label: "Preferred Username", labelHidden: true, placeholder: "Preferred Username", type: "text", isRequired: true }, profile: { label: "Profile", labelHidden: true, placeholder: "Profile", type: "url", autocomplete: "url", isRequired: true }, website: { label: "Website", labelHidden: true, placeholder: "Website", type: "url", autocomplete: "url", isRequired: true }, username: { label: "Username", labelHidden: true, placeholder: "Username", type: "text", autocomplete: "username", isRequired: true } };
|
|
640
646
|
var n$1 = function(r2) {
|
|
641
647
|
var t2 = new FormData(r2.target);
|
|
642
648
|
return Object.fromEntries(t2);
|
|
@@ -646,10 +652,16 @@ var n$1 = function(r2) {
|
|
|
646
652
|
return r2 ? (t2 = r2, Array.isArray(t2) ? r2 : [r2]) : null;
|
|
647
653
|
var t2;
|
|
648
654
|
};
|
|
649
|
-
var
|
|
650
|
-
return Hub.listen("auth", function(
|
|
651
|
-
|
|
652
|
-
|
|
655
|
+
var r = function(e2) {
|
|
656
|
+
return Hub.listen("auth", function(t2) {
|
|
657
|
+
switch (t2.payload.event) {
|
|
658
|
+
case "tokenRefresh":
|
|
659
|
+
e2("TOKEN_REFRESH");
|
|
660
|
+
break;
|
|
661
|
+
case "signOut":
|
|
662
|
+
case "tokenRefresh_failure":
|
|
663
|
+
e2("SIGN_OUT");
|
|
664
|
+
}
|
|
653
665
|
});
|
|
654
666
|
};
|
|
655
667
|
function listCacheClear$1() {
|
|
@@ -1402,43 +1414,43 @@ function cloneDeep(value) {
|
|
|
1402
1414
|
}
|
|
1403
1415
|
var cloneDeep_1 = cloneDeep;
|
|
1404
1416
|
var i$2 = function(r2, e2) {
|
|
1405
|
-
var t2 = n$
|
|
1406
|
-
return a2.type === "tel" && (a2 = t$
|
|
1417
|
+
var t2 = n$7(r2).country_code, a2 = l$1[e2];
|
|
1418
|
+
return a2.type === "tel" && (a2 = t$4(t$4({}, a2), { dialCode: t2 })), a2;
|
|
1407
1419
|
}, c$1 = function(r2) {
|
|
1408
|
-
var e2 = r$
|
|
1409
|
-
return t$
|
|
1420
|
+
var e2 = r$3(r2);
|
|
1421
|
+
return t$4(t$4({}, i$2(r2, e2)), { autocomplete: "username" });
|
|
1410
1422
|
}, d$1 = function(r2) {
|
|
1411
|
-
return { confirmation_code: t$
|
|
1423
|
+
return { confirmation_code: t$4(t$4({}, i$2(r2, "confirmation_code")), { label: "Code *", placeholder: "Code" }) };
|
|
1412
1424
|
}, m$1 = { signIn: function(r2) {
|
|
1413
|
-
return { username: t$
|
|
1425
|
+
return { username: t$4({}, c$1(r2)), password: t$4(t$4({}, i$2(r2, "password")), { autocomplete: "current-password" }) };
|
|
1414
1426
|
}, signUp: function(e2) {
|
|
1415
|
-
for (var n2 = e2.context.config, s2 = n2.loginMechanisms, d2 = n2.signUpAttributes, m2 = r$
|
|
1427
|
+
for (var n2 = e2.context.config, s2 = n2.loginMechanisms, d2 = n2.signUpAttributes, m2 = r$3(e2), l2 = {}, u2 = 0, f2 = Array.from(new Set(o$8(o$8(o$8([], s2, true), ["password", "confirm_password"], false), d2, true))); u2 < f2.length; u2++) {
|
|
1416
1428
|
var p2 = f2[u2];
|
|
1417
1429
|
if (o$3(p2)) {
|
|
1418
1430
|
var w2 = p2 === m2 ? c$1(e2) : i$2(e2, p2);
|
|
1419
|
-
l2[p2] = t$
|
|
1431
|
+
l2[p2] = t$4({}, w2);
|
|
1420
1432
|
} else
|
|
1421
1433
|
console.debug("Authenticator does not have a default implementation for ".concat(p2, ". Customize SignUp FormFields to add your own."));
|
|
1422
1434
|
}
|
|
1423
1435
|
return l2;
|
|
1424
1436
|
}, confirmSignUp: function(r2) {
|
|
1425
|
-
return { confirmation_code: t$
|
|
1437
|
+
return { confirmation_code: t$4(t$4({}, i$2(r2, "confirmation_code")), { placeholder: "Enter your code" }) };
|
|
1426
1438
|
}, confirmSignIn: d$1, forceNewPassword: function(n2) {
|
|
1427
|
-
for (var t2 = t$
|
|
1439
|
+
for (var t2 = t$5(n2).context.requiredAttributes, s2 = {}, c2 = 0, d2 = Array.from(new Set(o$8(["password", "confirm_password"], t2, true))); c2 < d2.length; c2++) {
|
|
1428
1440
|
var m2 = d2[c2];
|
|
1429
|
-
o$3(m2) ? s2[m2] = t$
|
|
1441
|
+
o$3(m2) ? s2[m2] = t$4({}, i$2(n2, m2)) : console.debug("Authenticator does not have a default implementation for ".concat(m2, ". Customize ForceNewPassword FormFields to add your own."));
|
|
1430
1442
|
}
|
|
1431
1443
|
return s2;
|
|
1432
1444
|
}, resetPassword: function(r2) {
|
|
1433
|
-
var e2 = r$
|
|
1434
|
-
return { username: t$
|
|
1445
|
+
var e2 = r$3(r2), n2 = l$1[e2].label;
|
|
1446
|
+
return { username: t$4(t$4({}, c$1(r2)), { label: "Enter your ".concat(n2.toLowerCase()), placeholder: "Enter your ".concat(n2.toLowerCase()) }) };
|
|
1435
1447
|
}, confirmResetPassword: function(r2) {
|
|
1436
|
-
return t$
|
|
1448
|
+
return t$4(t$4({}, d$1(r2)), { password: t$4(t$4({}, i$2(r2, "password")), { label: "New Password", placeholder: "New Password" }), confirm_password: t$4(t$4({}, i$2(r2, "confirm_password")), { label: "Confirm Password", placeholder: "Confirm Password" }) });
|
|
1437
1449
|
}, confirmVerifyUser: d$1, setupTOTP: d$1 };
|
|
1438
1450
|
var t$3 = function(e2) {
|
|
1439
|
-
for (var t2 = t$
|
|
1451
|
+
for (var t2 = t$4({}, e2), n2 = 0, i2 = Object.entries(e2); n2 < i2.length; n2++) {
|
|
1440
1452
|
var l2 = i2[n2], u2 = l2[0], c2 = l2[1], s2 = c2.label, a2 = c2.placeholder;
|
|
1441
|
-
t2[u2] = t$
|
|
1453
|
+
t2[u2] = t$4(t$4({}, c2), { label: s2 ? g$1(s2) : void 0, placeholder: a2 ? g$1(a2) : void 0 });
|
|
1442
1454
|
}
|
|
1443
1455
|
return t2;
|
|
1444
1456
|
}, n = function(r2) {
|
|
@@ -1451,14 +1463,14 @@ var t$3 = function(e2) {
|
|
|
1451
1463
|
t2 === void 0 && (t2 = {});
|
|
1452
1464
|
var n2 = cloneDeep_1(o2);
|
|
1453
1465
|
return Object.keys(t2).forEach(function(e2) {
|
|
1454
|
-
n2[e2] = t$
|
|
1466
|
+
n2[e2] = t$4(t$4({}, n2[e2]), t2[e2]);
|
|
1455
1467
|
}), n2;
|
|
1456
1468
|
};
|
|
1457
1469
|
var e = function(r2, i2) {
|
|
1458
1470
|
var n2 = (0, m$1[r2])(i2);
|
|
1459
1471
|
return t$3(n2);
|
|
1460
1472
|
}, u$1 = function(o2, t2) {
|
|
1461
|
-
var n2, u2, f2 = e(o2, t2), l2 = ((u2 = (n2 = t$
|
|
1473
|
+
var n2, u2, f2 = e(o2, t2), l2 = ((u2 = (n2 = t$5(t2).context) === null || n2 === void 0 ? void 0 : n2.formFields) === null || u2 === void 0 ? void 0 : u2[o2]) || {}, v2 = i$1(f2, l2);
|
|
1462
1474
|
return delete v2.QR, v2;
|
|
1463
1475
|
}, f$2 = function(r2, o2) {
|
|
1464
1476
|
var t2 = u$1(r2, o2);
|
|
@@ -6301,14 +6313,14 @@ actions.toActionObjects = toActionObjects;
|
|
|
6301
6313
|
actions.toActivityDefinition = toActivityDefinition;
|
|
6302
6314
|
var t$2 = function(e2) {
|
|
6303
6315
|
return stop_1(e2);
|
|
6304
|
-
},
|
|
6305
|
-
} }),
|
|
6316
|
+
}, o$2 = assign_1({ attributeToVerify: function(e2) {
|
|
6317
|
+
} }), u = assign_1({ challengeName: function(e2) {
|
|
6306
6318
|
} }), a = assign_1({ requiredAttributes: function(e2) {
|
|
6307
6319
|
} }), i = assign_1({ remoteError: function(e2) {
|
|
6308
6320
|
return "";
|
|
6309
|
-
} }),
|
|
6321
|
+
} }), c = assign_1({ formValues: function(e2) {
|
|
6310
6322
|
return {};
|
|
6311
|
-
} }),
|
|
6323
|
+
} }), s$1 = assign_1({ touched: function(e2) {
|
|
6312
6324
|
return {};
|
|
6313
6325
|
} }), l = assign_1({ unverifiedAttributes: function(e2) {
|
|
6314
6326
|
} }), d = assign_1({ username: function(e2) {
|
|
@@ -6325,36 +6337,37 @@ var t$2 = function(e2) {
|
|
|
6325
6337
|
} }), b$1 = assign_1({ redirectIntent: function(e2) {
|
|
6326
6338
|
return "confirmSignUp";
|
|
6327
6339
|
} }), V = assign_1({ authAttributes: function(e2, r2) {
|
|
6328
|
-
var n2, t2,
|
|
6329
|
-
return { username: (n2 = e2.formValues[
|
|
6340
|
+
var n2, t2, o2 = e2.loginMechanisms[0];
|
|
6341
|
+
return { username: (n2 = e2.formValues[o2]) !== null && n2 !== void 0 ? n2 : e2.formValues.username, password: (t2 = e2.formValues) === null || t2 === void 0 ? void 0 : t2.password };
|
|
6330
6342
|
} }), p = assign_1({ validationError: function(e2, r2) {
|
|
6331
6343
|
return r2.data;
|
|
6332
6344
|
} }), g = assign_1({ remoteError: function(e2, r2) {
|
|
6333
6345
|
var n2;
|
|
6334
6346
|
return r2.data.name === "NoUserPoolError" ? "Configuration error (see console) \u2013 please contact the administrator" : ((n2 = r2.data) === null || n2 === void 0 ? void 0 : n2.message) || r2.data;
|
|
6335
|
-
} }),
|
|
6347
|
+
} }), _ = assign_1({ unverifiedAttributes: function(e2, r2) {
|
|
6336
6348
|
return r2.data.unverified;
|
|
6337
|
-
} }),
|
|
6349
|
+
} }), A = assign_1({ user: function(e2, r2) {
|
|
6338
6350
|
return r2.data.user || r2.data;
|
|
6339
6351
|
} }), y = assign_1({ username: function(e2, r2) {
|
|
6340
|
-
|
|
6352
|
+
var n2 = e2.formValues, t2 = n2.username, o2 = n2.country_code;
|
|
6353
|
+
return o2 && (t2 = "".concat(o2).concat(t2)), t2;
|
|
6341
6354
|
} }), E$1 = assign_1({ codeDeliveryDetails: function(e2, r2) {
|
|
6342
6355
|
return r2.data.codeDeliveryDetails;
|
|
6343
6356
|
} }), D = assign_1({ authAttributes: function(e2, r2) {
|
|
6344
6357
|
return { username: e2.formValues.username };
|
|
6345
6358
|
} }), N = assign_1({ formValues: function(r2, n2) {
|
|
6346
|
-
var t2,
|
|
6347
|
-
return t$
|
|
6359
|
+
var t2, o2 = n2.data, u2 = o2.name, a2 = o2.value;
|
|
6360
|
+
return t$4(t$4({}, r2.formValues), ((t2 = {})[u2] = a2, t2));
|
|
6348
6361
|
} }), q = assign_1({ formValues: function(r2, n2) {
|
|
6349
|
-
return t$
|
|
6362
|
+
return t$4(t$4({}, r2.formValues), n2.data);
|
|
6350
6363
|
} }), w = assign_1({ touched: function(r2, n2) {
|
|
6351
|
-
var t2,
|
|
6352
|
-
return t$
|
|
6364
|
+
var t2, o2 = n2.data.name;
|
|
6365
|
+
return t$4(t$4({}, r2.touched), ((t2 = {})["".concat(o2)] = true, t2));
|
|
6353
6366
|
} }), P = assign_1({ formValues: function(r2, n2) {
|
|
6354
|
-
var t2,
|
|
6367
|
+
var t2, o2, u2 = r2.loginMechanisms[0], a2 = u2 === void 0 ? "username" : u2;
|
|
6355
6368
|
if (!r2.formValues.phone_number && a2 !== "phone_number")
|
|
6356
6369
|
return r2.formValues;
|
|
6357
|
-
var i2 = r2.formValues,
|
|
6370
|
+
var i2 = r2.formValues, c2 = r2.country_code, s2 = i2.phone_number ? "phone_number" : "username", l2 = "".concat((o2 = i2.country_code) !== null && o2 !== void 0 ? o2 : c2).concat(i2[s2]).replace(/[^A-Z0-9+]/gi, ""), d2 = t$4(t$4({}, i2), ((t2 = {})[s2] = l2, t2));
|
|
6358
6371
|
return delete d2.country_code, d2;
|
|
6359
6372
|
} });
|
|
6360
6373
|
var isArray$7 = isArray_1, isSymbol$2 = isSymbol_1;
|
|
@@ -6743,9 +6756,9 @@ var merge = createAssigner(function(object, source, srcIndex) {
|
|
|
6743
6756
|
});
|
|
6744
6757
|
var merge_1 = merge;
|
|
6745
6758
|
var s = function(s2, n2, m2, l2) {
|
|
6746
|
-
return n$
|
|
6759
|
+
return n$6(void 0, void 0, void 0, function() {
|
|
6747
6760
|
var r2, a2;
|
|
6748
|
-
return r$
|
|
6761
|
+
return r$4(this, function(o2) {
|
|
6749
6762
|
switch (o2.label) {
|
|
6750
6763
|
case 0:
|
|
6751
6764
|
return [4, Promise.all(l2.map(function(r3) {
|
|
@@ -6758,41 +6771,41 @@ var s = function(s2, n2, m2, l2) {
|
|
|
6758
6771
|
});
|
|
6759
6772
|
};
|
|
6760
6773
|
var o = { getAmplifyConfig: function() {
|
|
6761
|
-
return n$
|
|
6762
|
-
return r$
|
|
6774
|
+
return n$6(this, void 0, void 0, function() {
|
|
6775
|
+
return r$4(this, function(n2) {
|
|
6763
6776
|
return [2, Amplify.configure()];
|
|
6764
6777
|
});
|
|
6765
6778
|
});
|
|
6766
6779
|
}, getCurrentUser: function() {
|
|
6767
|
-
return n$
|
|
6768
|
-
return r$
|
|
6780
|
+
return n$6(this, void 0, void 0, function() {
|
|
6781
|
+
return r$4(this, function(n2) {
|
|
6769
6782
|
return [2, Auth.currentAuthenticatedUser()];
|
|
6770
6783
|
});
|
|
6771
6784
|
});
|
|
6772
6785
|
}, handleSignUp: function(t2) {
|
|
6773
|
-
return n$
|
|
6774
|
-
return r$
|
|
6786
|
+
return n$6(this, void 0, void 0, function() {
|
|
6787
|
+
return r$4(this, function(n2) {
|
|
6775
6788
|
return [2, Auth.signUp(t2)];
|
|
6776
6789
|
});
|
|
6777
6790
|
});
|
|
6778
6791
|
}, handleSignIn: function(t2) {
|
|
6779
6792
|
var o2 = t2.username, s2 = t2.password;
|
|
6780
|
-
return n$
|
|
6781
|
-
return r$
|
|
6793
|
+
return n$6(this, void 0, void 0, function() {
|
|
6794
|
+
return r$4(this, function(n2) {
|
|
6782
6795
|
return [2, Auth.signIn(o2, s2)];
|
|
6783
6796
|
});
|
|
6784
6797
|
});
|
|
6785
6798
|
}, handleConfirmSignIn: function(t2) {
|
|
6786
6799
|
var o2 = t2.user, s2 = t2.code, e2 = t2.mfaType;
|
|
6787
|
-
return n$
|
|
6788
|
-
return r$
|
|
6800
|
+
return n$6(this, void 0, void 0, function() {
|
|
6801
|
+
return r$4(this, function(n2) {
|
|
6789
6802
|
return [2, Auth.confirmSignIn(o2, s2, e2)];
|
|
6790
6803
|
});
|
|
6791
6804
|
});
|
|
6792
6805
|
}, handleConfirmSignUp: function(t2) {
|
|
6793
6806
|
var o2 = t2.username, s2 = t2.code;
|
|
6794
|
-
return n$
|
|
6795
|
-
return r$
|
|
6807
|
+
return n$6(this, void 0, void 0, function() {
|
|
6808
|
+
return r$4(this, function(n2) {
|
|
6796
6809
|
switch (n2.label) {
|
|
6797
6810
|
case 0:
|
|
6798
6811
|
return [4, Auth.confirmSignUp(o2, s2)];
|
|
@@ -6803,27 +6816,27 @@ var o = { getAmplifyConfig: function() {
|
|
|
6803
6816
|
});
|
|
6804
6817
|
}, handleForgotPasswordSubmit: function(t2) {
|
|
6805
6818
|
var o2 = t2.username, s2 = t2.code, e2 = t2.password;
|
|
6806
|
-
return n$
|
|
6807
|
-
return r$
|
|
6819
|
+
return n$6(this, void 0, void 0, function() {
|
|
6820
|
+
return r$4(this, function(n2) {
|
|
6808
6821
|
return [2, Auth.forgotPasswordSubmit(o2, s2, e2)];
|
|
6809
6822
|
});
|
|
6810
6823
|
});
|
|
6811
6824
|
}, handleForgotPassword: function(t2) {
|
|
6812
|
-
return n$
|
|
6813
|
-
return r$
|
|
6825
|
+
return n$6(this, void 0, void 0, function() {
|
|
6826
|
+
return r$4(this, function(n2) {
|
|
6814
6827
|
return [2, Auth.forgotPassword(t2)];
|
|
6815
6828
|
});
|
|
6816
6829
|
});
|
|
6817
6830
|
}, validateCustomSignUp: function(t2, i2) {
|
|
6818
|
-
return n$
|
|
6819
|
-
return r$
|
|
6831
|
+
return n$6(this, void 0, void 0, function() {
|
|
6832
|
+
return r$4(this, function(n2) {
|
|
6820
6833
|
return [2];
|
|
6821
6834
|
});
|
|
6822
6835
|
});
|
|
6823
6836
|
}, validateFormPassword: function(t2, i2, o2) {
|
|
6824
|
-
return n$
|
|
6837
|
+
return n$6(this, void 0, void 0, function() {
|
|
6825
6838
|
var n2, s2, e2, u2;
|
|
6826
|
-
return r$
|
|
6839
|
+
return r$4(this, function(r2) {
|
|
6827
6840
|
return n2 = t2.password, i2.password && o2 ? (s2 = [], e2 = +(o2 == null ? void 0 : o2.passwordPolicyMinLength), n2.length < e2 && s2.push("Password must have at least ".concat(e2, " characters")), (u2 = o2 == null ? void 0 : o2.passwordPolicyCharacters) == null || u2.forEach(function(r3) {
|
|
6828
6841
|
switch (r3) {
|
|
6829
6842
|
case "REQUIRES_LOWERCASE":
|
|
@@ -6842,15 +6855,15 @@ var o = { getAmplifyConfig: function() {
|
|
|
6842
6855
|
});
|
|
6843
6856
|
});
|
|
6844
6857
|
}, validateConfirmPassword: function(t2, i2) {
|
|
6845
|
-
return n$
|
|
6858
|
+
return n$6(this, void 0, void 0, function() {
|
|
6846
6859
|
var n2, o2, s2, e2;
|
|
6847
|
-
return r$
|
|
6860
|
+
return r$4(this, function(r2) {
|
|
6848
6861
|
return n2 = t2.password, o2 = t2.confirm_password, s2 = i2.confirm_password, e2 = i2.password, n2 || o2 ? (n2 || o2) && n2 !== o2 && (s2 && e2 || (n2 == null ? void 0 : n2.length) >= 6 && (o2 == null ? void 0 : o2.length) >= 6) ? [2, { confirm_password: "Your passwords must match" }] : [2] : [2, null];
|
|
6849
6862
|
});
|
|
6850
6863
|
});
|
|
6851
6864
|
}, validatePreferredUsername: function(t2, i2) {
|
|
6852
|
-
return n$
|
|
6853
|
-
return r$
|
|
6865
|
+
return n$6(this, void 0, void 0, function() {
|
|
6866
|
+
return r$4(this, function(n2) {
|
|
6854
6867
|
return [2];
|
|
6855
6868
|
});
|
|
6856
6869
|
});
|
|
@@ -6861,7 +6874,7 @@ function k(k2) {
|
|
|
6861
6874
|
return { user: e2.user };
|
|
6862
6875
|
} }, rejected: { type: "final", data: function(e2, t2) {
|
|
6863
6876
|
return { intent: e2.redirectIntent, authAttributes: e2.authAttributes };
|
|
6864
|
-
} } } }, { actions: { clearAttributeToVerify:
|
|
6877
|
+
} } } }, { actions: { clearAttributeToVerify: o$2, clearChallengeName: u, clearRequiredAttributes: a, clearError: i, clearFormValues: c, clearTouched: s$1, clearUnverifiedAttributes: l, clearValidationError: f$1, handleInput: N, handleSubmit: q, handleBlur: w, parsePhoneNumber: P, setChallengeName: m, setConfirmResetPasswordIntent: h, setConfirmSignUpIntent: b$1, setRequiredAttributes: v$1, setCredentials: V, setFieldErrors: p, setRemoteError: g, setUnverifiedAttributes: _, setUser: A, setUsernameAuthAttributes: D, sendUpdate: sendUpdate$1() }, guards: { shouldConfirmSignIn: function(e2, t2) {
|
|
6865
6878
|
var r2 = t$1(t2, "data.challengeName");
|
|
6866
6879
|
return [E$2.SMS_MFA, E$2.SOFTWARE_TOKEN_MFA].includes(r2);
|
|
6867
6880
|
}, shouldRedirectToConfirmSignUp: function(e2, t2) {
|
|
@@ -6876,9 +6889,9 @@ function k(k2) {
|
|
|
6876
6889
|
var r2 = t2.data, n2 = r2.unverified, i2 = r2.verified;
|
|
6877
6890
|
return o$1(i2) && !o$1(n2);
|
|
6878
6891
|
} }, services: { signIn: function(r2) {
|
|
6879
|
-
return n$
|
|
6892
|
+
return n$6(this, void 0, void 0, function() {
|
|
6880
6893
|
var e2, n2, i2;
|
|
6881
|
-
return r$
|
|
6894
|
+
return r$4(this, function(t2) {
|
|
6882
6895
|
switch (t2.label) {
|
|
6883
6896
|
case 0:
|
|
6884
6897
|
return e2 = r2.formValues, n2 = e2.username, i2 = e2.password, [4, D$1.handleSignIn({ username: n2, password: i2 })];
|
|
@@ -6888,9 +6901,9 @@ function k(k2) {
|
|
|
6888
6901
|
});
|
|
6889
6902
|
});
|
|
6890
6903
|
}, confirmSignIn: function(r2, n2) {
|
|
6891
|
-
return n$
|
|
6904
|
+
return n$6(this, void 0, void 0, function() {
|
|
6892
6905
|
var e2, n3, s2, o2;
|
|
6893
|
-
return r$
|
|
6906
|
+
return r$4(this, function(t2) {
|
|
6894
6907
|
switch (t2.label) {
|
|
6895
6908
|
case 0:
|
|
6896
6909
|
return e2 = r2.challengeName, n3 = r2.user, s2 = r2.formValues.confirmation_code, e2 !== E$2.SMS_MFA && e2 !== E$2.SOFTWARE_TOKEN_MFA || (o2 = e2), [4, D$1.handleConfirmSignIn({ user: n3, code: s2, mfaType: o2 })];
|
|
@@ -6902,12 +6915,12 @@ function k(k2) {
|
|
|
6902
6915
|
});
|
|
6903
6916
|
});
|
|
6904
6917
|
}, forceNewPassword: function(s2, o2) {
|
|
6905
|
-
return n$
|
|
6918
|
+
return n$6(this, void 0, void 0, function() {
|
|
6906
6919
|
var e2, o3, a2, c2, d2, u2, l2, f2, g2;
|
|
6907
|
-
return r$
|
|
6920
|
+
return r$4(this, function(t2) {
|
|
6908
6921
|
switch (t2.label) {
|
|
6909
6922
|
case 0:
|
|
6910
|
-
e2 = s2.user, o3 = s2.formValues, a2 = o3.password, c2 = o3.phone_number, d2 = o3.country_code, u2 = e$7(o3, ["password", "confirm_password", "phone_number", "country_code"]), c2 && (l2 = "".concat(d2).concat(c2).replace(/[^A-Z0-9+]/gi, ""), u2 = t$
|
|
6923
|
+
e2 = s2.user, o3 = s2.formValues, a2 = o3.password, c2 = o3.phone_number, d2 = o3.country_code, u2 = e$7(o3, ["password", "confirm_password", "phone_number", "country_code"]), c2 && (l2 = "".concat(d2).concat(c2).replace(/[^A-Z0-9+]/gi, ""), u2 = t$4(t$4({}, u2), { phone_number: l2 })), t2.label = 1;
|
|
6911
6924
|
case 1:
|
|
6912
6925
|
return t2.trys.push([1, 3, , 4]), [4, Auth.completeNewPassword(e2, a2, u2)];
|
|
6913
6926
|
case 2:
|
|
@@ -6920,16 +6933,16 @@ function k(k2) {
|
|
|
6920
6933
|
});
|
|
6921
6934
|
});
|
|
6922
6935
|
}, verifyTotpToken: function(r2, n2) {
|
|
6923
|
-
return n$
|
|
6936
|
+
return n$6(this, void 0, void 0, function() {
|
|
6924
6937
|
var e2, n3;
|
|
6925
|
-
return r$
|
|
6938
|
+
return r$4(this, function(t2) {
|
|
6926
6939
|
return e2 = r2.user, n3 = r2.formValues.confirmation_code, [2, Auth.verifyTotpToken(e2, n3)];
|
|
6927
6940
|
});
|
|
6928
6941
|
});
|
|
6929
6942
|
}, federatedSignIn: function(r2, n2) {
|
|
6930
|
-
return n$
|
|
6943
|
+
return n$6(this, void 0, void 0, function() {
|
|
6931
6944
|
var e2;
|
|
6932
|
-
return r$
|
|
6945
|
+
return r$4(this, function(t2) {
|
|
6933
6946
|
switch (t2.label) {
|
|
6934
6947
|
case 0:
|
|
6935
6948
|
return e2 = n2.data.provider, [4, Auth.federatedSignIn({ provider: e2 })];
|
|
@@ -6939,9 +6952,9 @@ function k(k2) {
|
|
|
6939
6952
|
});
|
|
6940
6953
|
});
|
|
6941
6954
|
}, checkVerifiedContact: function(r2, n2) {
|
|
6942
|
-
return n$
|
|
6955
|
+
return n$6(this, void 0, void 0, function() {
|
|
6943
6956
|
var e2;
|
|
6944
|
-
return r$
|
|
6957
|
+
return r$4(this, function(t2) {
|
|
6945
6958
|
switch (t2.label) {
|
|
6946
6959
|
case 0:
|
|
6947
6960
|
return e2 = r2.user, [4, Auth.verifiedContact(e2)];
|
|
@@ -6951,9 +6964,9 @@ function k(k2) {
|
|
|
6951
6964
|
});
|
|
6952
6965
|
});
|
|
6953
6966
|
}, verifyUser: function(r2, n2) {
|
|
6954
|
-
return n$
|
|
6967
|
+
return n$6(this, void 0, void 0, function() {
|
|
6955
6968
|
var e2, n3;
|
|
6956
|
-
return r$
|
|
6969
|
+
return r$4(this, function(t2) {
|
|
6957
6970
|
switch (t2.label) {
|
|
6958
6971
|
case 0:
|
|
6959
6972
|
return e2 = r2.formValues.unverifiedAttr, [4, Auth.verifyCurrentUserAttribute(e2)];
|
|
@@ -6963,9 +6976,9 @@ function k(k2) {
|
|
|
6963
6976
|
});
|
|
6964
6977
|
});
|
|
6965
6978
|
}, confirmVerifyUser: function(r2, n2) {
|
|
6966
|
-
return n$
|
|
6979
|
+
return n$6(this, void 0, void 0, function() {
|
|
6967
6980
|
var e2, n3;
|
|
6968
|
-
return r$
|
|
6981
|
+
return r$4(this, function(t2) {
|
|
6969
6982
|
switch (t2.label) {
|
|
6970
6983
|
case 0:
|
|
6971
6984
|
return e2 = r2.attributeToVerify, n3 = r2.formValues.confirmation_code, [4, Auth.verifyCurrentUserAttributeSubmit(e2, n3)];
|
|
@@ -6975,8 +6988,8 @@ function k(k2) {
|
|
|
6975
6988
|
});
|
|
6976
6989
|
});
|
|
6977
6990
|
}, validateFields: function(r2, n2) {
|
|
6978
|
-
return n$
|
|
6979
|
-
return r$
|
|
6991
|
+
return n$6(this, void 0, void 0, function() {
|
|
6992
|
+
return r$4(this, function(e2) {
|
|
6980
6993
|
return [2, s(r2.formValues, r2.touched, r2.passwordSettings, [o.validateConfirmPassword])];
|
|
6981
6994
|
});
|
|
6982
6995
|
});
|
|
@@ -6987,26 +7000,25 @@ var t = createMachine({ initial: "pending", id: "signOutActor", states: { pendin
|
|
|
6987
7000
|
} } });
|
|
6988
7001
|
function E(E2) {
|
|
6989
7002
|
var h2 = E2.services;
|
|
6990
|
-
return createMachine({ id: "resetPasswordActor", initial: "init", states: { init: { always: [{ target: "confirmResetPassword", cond: "shouldAutoConfirmReset" }, { target: "resetPassword" }] }, resetPassword: { initial: "edit", exit: ["clearFormValues", "clearError", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, CHANGE: { actions: "handleInput" }, BLUR: { actions: "handleBlur" } } }, submit: { tags: ["pending"], entry: ["sendUpdate", "setUsername", "clearError"], invoke: { src: "resetPassword", onDone: { target: "#resetPasswordActor.confirmResetPassword" }, onError: { actions: ["setRemoteError"], target: "edit" } } } } }, confirmResetPassword: { type: "parallel", exit: ["clearFormValues", "clearError", "clearUsername", "clearTouched"], states: { validation: { initial: "pending", states: { pending: { invoke: { src: "validateFields", onDone: { target: "valid", actions: "clearValidationError" }, onError: { target: "invalid", actions: "setFieldErrors" } } }, valid: { entry: "sendUpdate" }, invalid: { entry: "sendUpdate" } }, on: { CHANGE: { actions: "handleInput", target: ".pending" }, BLUR: { actions: "handleBlur", target: ".pending" } } }, submission: { initial: "idle", states: { idle: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "validate" }, RESEND: "resendCode", CHANGE: { actions: "handleInput" }, BLUR: { actions: "handleBlur" } } }, validate: { entry: "sendUpdate", invoke: { src: "validateFields", onDone: { target: "pending", actions: "clearValidationError" }, onError: { target: "idle", actions: "setFieldErrors" } } }, resendCode: { tags: ["pending"], entry: ["clearError", "sendUpdate"], invoke: { src: "resetPassword", onDone: { target: "idle" }, onError: { actions: "setRemoteError", target: "idle" } } }, pending: { tags: ["pending"], entry: ["clearError", "sendUpdate"], invoke: { src: "confirmResetPassword", onDone: { actions: "clearUsername", target: "#resetPasswordActor.resolved" }, onError: { actions: "setRemoteError", target: "idle" } } } } } } }, resolved: { type: "final" } } }, { actions: { clearError: i, clearFormValues:
|
|
7003
|
+
return createMachine({ id: "resetPasswordActor", initial: "init", states: { init: { always: [{ target: "confirmResetPassword", cond: "shouldAutoConfirmReset" }, { target: "resetPassword" }] }, resetPassword: { initial: "edit", exit: ["clearFormValues", "clearError", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, CHANGE: { actions: "handleInput" }, BLUR: { actions: "handleBlur" } } }, submit: { tags: ["pending"], entry: ["sendUpdate", "setUsername", "clearError"], invoke: { src: "resetPassword", onDone: { target: "#resetPasswordActor.confirmResetPassword" }, onError: { actions: ["setRemoteError"], target: "edit" } } } } }, confirmResetPassword: { type: "parallel", exit: ["clearFormValues", "clearError", "clearUsername", "clearTouched"], states: { validation: { initial: "pending", states: { pending: { invoke: { src: "validateFields", onDone: { target: "valid", actions: "clearValidationError" }, onError: { target: "invalid", actions: "setFieldErrors" } } }, valid: { entry: "sendUpdate" }, invalid: { entry: "sendUpdate" } }, on: { CHANGE: { actions: "handleInput", target: ".pending" }, BLUR: { actions: "handleBlur", target: ".pending" } } }, submission: { initial: "idle", states: { idle: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "validate" }, RESEND: "resendCode", CHANGE: { actions: "handleInput" }, BLUR: { actions: "handleBlur" } } }, validate: { entry: "sendUpdate", invoke: { src: "validateFields", onDone: { target: "pending", actions: "clearValidationError" }, onError: { target: "idle", actions: "setFieldErrors" } } }, resendCode: { tags: ["pending"], entry: ["clearError", "sendUpdate"], invoke: { src: "resetPassword", onDone: { target: "idle" }, onError: { actions: "setRemoteError", target: "idle" } } }, pending: { tags: ["pending"], entry: ["clearError", "sendUpdate"], invoke: { src: "confirmResetPassword", onDone: { actions: "clearUsername", target: "#resetPasswordActor.resolved" }, onError: { actions: "setRemoteError", target: "idle" } } } } } } }, resolved: { type: "final" } } }, { actions: { clearError: i, clearFormValues: c, clearTouched: s$1, clearUsername: d, clearValidationError: f$1, handleInput: N, handleSubmit: q, handleBlur: w, setFieldErrors: p, setRemoteError: g, setUsername: y, sendUpdate: sendUpdate$1() }, guards: { shouldAutoConfirmReset: function(e2, r2) {
|
|
6991
7004
|
return !(!e2.intent || e2.intent !== "confirmPasswordReset");
|
|
6992
7005
|
} }, services: { resetPassword: function(t2) {
|
|
6993
|
-
|
|
6994
|
-
return n$5(this, void 0, void 0, function() {
|
|
7006
|
+
return n$6(this, void 0, void 0, function() {
|
|
6995
7007
|
var e2;
|
|
6996
|
-
return r$
|
|
6997
|
-
return e2 =
|
|
7008
|
+
return r$4(this, function(r2) {
|
|
7009
|
+
return e2 = t2.username, [2, h2.handleForgotPassword(e2)];
|
|
6998
7010
|
});
|
|
6999
7011
|
});
|
|
7000
7012
|
}, confirmResetPassword: function(t2) {
|
|
7001
|
-
return n$
|
|
7013
|
+
return n$6(this, void 0, void 0, function() {
|
|
7002
7014
|
var e2, n2, s2, o2;
|
|
7003
|
-
return r$
|
|
7015
|
+
return r$4(this, function(r2) {
|
|
7004
7016
|
return e2 = t2.username, n2 = t2.formValues, s2 = n2.confirmation_code, o2 = n2.password, [2, h2.handleForgotPasswordSubmit({ username: e2, code: s2, password: o2 })];
|
|
7005
7017
|
});
|
|
7006
7018
|
});
|
|
7007
7019
|
}, validateFields: function(t2, n2) {
|
|
7008
|
-
return n$
|
|
7009
|
-
return r$
|
|
7020
|
+
return n$6(this, void 0, void 0, function() {
|
|
7021
|
+
return r$4(this, function(e2) {
|
|
7010
7022
|
return [2, s(t2.formValues, t2.touched, t2.passwordSettings, [o.validateConfirmPassword])];
|
|
7011
7023
|
});
|
|
7012
7024
|
});
|
|
@@ -7458,10 +7470,10 @@ function b(b2) {
|
|
|
7458
7470
|
return e2.intent && e2.intent === "confirmSignUp";
|
|
7459
7471
|
}, shouldSkipConfirm: function(e2, r2) {
|
|
7460
7472
|
return r2.data.userConfirmed;
|
|
7461
|
-
} }, actions: { clearError: i, clearFormValues:
|
|
7462
|
-
return n$
|
|
7473
|
+
} }, actions: { clearError: i, clearFormValues: c, clearTouched: s$1, clearValidationError: f$1, handleInput: N, handleSubmit: q, handleBlur: w, parsePhoneNumber: P, setCredentials: V, setFieldErrors: p, setRemoteError: g, setCodeDeliveryDetails: E$1, setUser: A, sendUpdate: sendUpdate$1() }, services: { signIn: function(i2, s2) {
|
|
7474
|
+
return n$6(this, void 0, void 0, function() {
|
|
7463
7475
|
var e2, s3, a2, o2, d2;
|
|
7464
|
-
return r$
|
|
7476
|
+
return r$4(this, function(r2) {
|
|
7465
7477
|
switch (r2.label) {
|
|
7466
7478
|
case 0:
|
|
7467
7479
|
return e2 = i2.user, s3 = i2.authAttributes, a2 = i2.formValues, o2 = t$1(e2, "username") || t$1(s3, "username"), d2 = t$1(a2, "password"), [4, Auth.signIn(o2, d2)];
|
|
@@ -7471,9 +7483,9 @@ function b(b2) {
|
|
|
7471
7483
|
});
|
|
7472
7484
|
});
|
|
7473
7485
|
}, confirmSignUp: function(i2, s2) {
|
|
7474
|
-
return n$
|
|
7486
|
+
return n$6(this, void 0, void 0, function() {
|
|
7475
7487
|
var e2, s3, a2, o2, d2, c2;
|
|
7476
|
-
return r$
|
|
7488
|
+
return r$4(this, function(r2) {
|
|
7477
7489
|
switch (r2.label) {
|
|
7478
7490
|
case 0:
|
|
7479
7491
|
return e2 = i2.user, s3 = i2.authAttributes, a2 = i2.formValues, o2 = a2.confirmation_code, d2 = t$1(e2, "username") || t$1(s3, "username"), c2 = s3.password, [4, y2.handleConfirmSignUp({ username: d2, code: o2 })];
|
|
@@ -7485,16 +7497,16 @@ function b(b2) {
|
|
|
7485
7497
|
});
|
|
7486
7498
|
});
|
|
7487
7499
|
}, resendConfirmationCode: function(i2, s2) {
|
|
7488
|
-
return n$
|
|
7500
|
+
return n$6(this, void 0, void 0, function() {
|
|
7489
7501
|
var e2, s3, a2;
|
|
7490
|
-
return r$
|
|
7502
|
+
return r$4(this, function(r2) {
|
|
7491
7503
|
return e2 = i2.user, s3 = i2.authAttributes, a2 = t$1(e2, "username") || t$1(s3, "username"), [2, Auth.resendSignUp(a2)];
|
|
7492
7504
|
});
|
|
7493
7505
|
});
|
|
7494
7506
|
}, federatedSignIn: function(t2, i2) {
|
|
7495
|
-
return n$
|
|
7507
|
+
return n$6(this, void 0, void 0, function() {
|
|
7496
7508
|
var e2;
|
|
7497
|
-
return r$
|
|
7509
|
+
return r$4(this, function(r2) {
|
|
7498
7510
|
switch (r2.label) {
|
|
7499
7511
|
case 0:
|
|
7500
7512
|
return e2 = i2.data.provider, [4, Auth.federatedSignIn({ provider: e2 })];
|
|
@@ -7504,9 +7516,9 @@ function b(b2) {
|
|
|
7504
7516
|
});
|
|
7505
7517
|
});
|
|
7506
7518
|
}, signUp: function(n2, t2) {
|
|
7507
|
-
return n$
|
|
7519
|
+
return n$6(this, void 0, void 0, function() {
|
|
7508
7520
|
var e2, t3, s2, a2, o2, d2, c2;
|
|
7509
|
-
return r$
|
|
7521
|
+
return r$4(this, function(r2) {
|
|
7510
7522
|
switch (r2.label) {
|
|
7511
7523
|
case 0:
|
|
7512
7524
|
return e2 = n2.formValues, t3 = n2.loginMechanisms, s2 = t3[0], o2 = (a2 = e2)[s2 === void 0 ? "username" : s2], d2 = a2.password, c2 = pickBy_1(e2, function(e3, r3) {
|
|
@@ -7539,21 +7551,21 @@ function b(b2) {
|
|
|
7539
7551
|
});
|
|
7540
7552
|
});
|
|
7541
7553
|
}, validateSignUp: function(n2, t2) {
|
|
7542
|
-
return n$
|
|
7543
|
-
return r$
|
|
7554
|
+
return n$6(this, void 0, void 0, function() {
|
|
7555
|
+
return r$4(this, function(e2) {
|
|
7544
7556
|
return [2, s(n2.formValues, n2.touched, n2.passwordSettings, [y2.validateFormPassword, y2.validateConfirmPassword, y2.validatePreferredUsername, y2.validateCustomSignUp])];
|
|
7545
7557
|
});
|
|
7546
7558
|
});
|
|
7547
7559
|
} } });
|
|
7548
7560
|
}
|
|
7549
7561
|
function v() {
|
|
7550
|
-
return createMachine({ id: "authenticator", initial: "idle", context: { user: void 0, config: {}, services: o, actorRef: void 0, hasSetup: false }, states: { idle: { invoke: { src: "getCurrentUser", onDone: { actions: "setUser", target: "authenticated" }, onError: { target: "setup" } } }, setup: { initial: "waitConfig", states: { waitConfig: { on: { INIT: { actions: ["configure", "setHasSetup"], target: "applyConfig" } } }, applyConfig: { invoke: { src: "getAmplifyConfig", onDone: { actions: "applyAmplifyConfig", target: "goToInitialState" } } }, goToInitialState: { always: [{ target: "#authenticator.signUp", cond: "isInitialStateSignUp" }, { target: "#authenticator.resetPassword", cond: "isInitialStateResetPassword" }, { target: "#authenticator.signIn" }] } } }, signIn: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnSignInActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: "stopSignInActor" } }, on: { SIGN_UP: "signUp", RESET_PASSWORD: "resetPassword", "done.invoke.signInActor": [{ target: "signUp", actions: "setActorDoneData", cond: "shouldRedirectToSignUp" }, { target: "resetPassword", actions: "setActorDoneData", cond: "shouldRedirectToResetPassword" }, { target: "authenticated", actions: "setActorDoneData" }] } }, signUp: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnSignUpActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: "stopSignUpActor" }, autoSignIn: { invoke: { src: "getCurrentUser", onDone: "#authenticator.authenticated", onError: "#authenticator.setup.goToInitialState" } } }, on: { SIGN_IN: "signIn", "done.invoke.signUpActor": { target: "signUp.autoSignIn", actions: "setActorDoneData" } } }, resetPassword: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnResetPasswordActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: "stopResetPasswordActor" } }, on: { SIGN_IN: "signIn", "done.invoke.resetPasswordActor": { target: "signIn", actions: "setActorDoneData" } } }, signOut: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnSignOutActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: ["stopSignOutActor", "clearUser"] } }, on: { "done.invoke.signOutActor": [{ target: "setup", cond: "shouldSetup" }, { target: "setup.goToInitialState" }] } }, authenticated: { on: { SIGN_OUT: "signOut" } } }, on: { CHANGE: { actions: "forwardToActor" }, BLUR: { actions: "forwardToActor" }, SUBMIT: { actions: "forwardToActor" }, FEDERATED_SIGN_IN: { actions: "forwardToActor" }, RESEND: { actions: "forwardToActor" }, SIGN_OUT: { actions: "forwardToActor" }, SIGN_IN: { actions: "forwardToActor" }, SKIP: { actions: "forwardToActor" } } }, { actions: { forwardToActor: forwardTo$1(function(t2) {
|
|
7562
|
+
return createMachine({ id: "authenticator", initial: "idle", context: { user: void 0, config: {}, services: o, actorRef: void 0, hasSetup: false }, states: { idle: { invoke: { src: "getCurrentUser", onDone: { actions: "setUser", target: "authenticated" }, onError: { target: "setup" } } }, setup: { initial: "waitConfig", states: { waitConfig: { on: { INIT: { actions: ["configure", "setHasSetup"], target: "applyConfig" } } }, applyConfig: { invoke: { src: "getAmplifyConfig", onDone: { actions: "applyAmplifyConfig", target: "goToInitialState" } } }, goToInitialState: { always: [{ target: "#authenticator.signUp", cond: "isInitialStateSignUp" }, { target: "#authenticator.resetPassword", cond: "isInitialStateResetPassword" }, { target: "#authenticator.signIn" }] } } }, signIn: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnSignInActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: "stopSignInActor" } }, on: { SIGN_UP: "signUp", RESET_PASSWORD: "resetPassword", "done.invoke.signInActor": [{ target: "signUp", actions: "setActorDoneData", cond: "shouldRedirectToSignUp" }, { target: "resetPassword", actions: "setActorDoneData", cond: "shouldRedirectToResetPassword" }, { target: "authenticated", actions: "setActorDoneData" }] } }, signUp: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnSignUpActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: "stopSignUpActor" }, autoSignIn: { invoke: { src: "getCurrentUser", onDone: "#authenticator.authenticated", onError: "#authenticator.setup.goToInitialState" } } }, on: { SIGN_IN: "signIn", "done.invoke.signUpActor": { target: "signUp.autoSignIn", actions: "setActorDoneData" } } }, resetPassword: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnResetPasswordActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: "stopResetPasswordActor" } }, on: { SIGN_IN: "signIn", "done.invoke.resetPasswordActor": { target: "signIn", actions: "setActorDoneData" } } }, signOut: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnSignOutActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: ["stopSignOutActor", "clearUser"] } }, on: { "done.invoke.signOutActor": [{ target: "setup", cond: "shouldSetup" }, { target: "setup.goToInitialState" }] } }, authenticated: { initial: "idle", states: { idle: { on: { TOKEN_REFRESH: "refreshUser" } }, refreshUser: { invoke: { src: "getCurrentUser", onDone: { actions: "setUser", target: "idle" }, onError: { target: "#authenticator.signOut" } } } }, on: { SIGN_OUT: "signOut" } } }, on: { CHANGE: { actions: "forwardToActor" }, BLUR: { actions: "forwardToActor" }, SUBMIT: { actions: "forwardToActor" }, FEDERATED_SIGN_IN: { actions: "forwardToActor" }, RESEND: { actions: "forwardToActor" }, SIGN_OUT: { actions: "forwardToActor" }, SIGN_IN: { actions: "forwardToActor" }, SKIP: { actions: "forwardToActor" } } }, { actions: { forwardToActor: forwardTo$1(function(t2) {
|
|
7551
7563
|
return t2.actorRef;
|
|
7552
7564
|
}), setUser: assign$2({ user: function(t2, o2) {
|
|
7553
7565
|
return o2.data;
|
|
7554
7566
|
} }), setActorDoneData: assign$2({ actorDoneData: function(o2, n2) {
|
|
7555
7567
|
var r2, i2;
|
|
7556
|
-
return { authAttributes: t$
|
|
7568
|
+
return { authAttributes: t$4({}, (r2 = n2.data) === null || r2 === void 0 ? void 0 : r2.authAttributes), intent: (i2 = n2.data) === null || i2 === void 0 ? void 0 : i2.intent };
|
|
7557
7569
|
}, user: function(t2, o2) {
|
|
7558
7570
|
var n2;
|
|
7559
7571
|
return (n2 = o2.data) === null || n2 === void 0 ? void 0 : n2.user;
|
|
@@ -7568,8 +7580,8 @@ function v() {
|
|
|
7568
7580
|
return t3.toLowerCase();
|
|
7569
7581
|
})) !== null && d2 !== void 0 ? d2 : [], w2 = n2.data.aws_cognito_password_protection_settings || {};
|
|
7570
7582
|
g2.length === 0 && g2.push("username");
|
|
7571
|
-
var
|
|
7572
|
-
return { loginMechanisms:
|
|
7583
|
+
var S2 = t2.config, m2 = S2.loginMechanisms, h2 = S2.signUpAttributes, D2 = S2.socialProviders, I = S2.initialState;
|
|
7584
|
+
return { loginMechanisms: m2 != null ? m2 : g2, formFields: (l2 = f(S2.formFields)) !== null && l2 !== void 0 ? l2 : {}, passwordSettings: w2, signUpAttributes: h2 != null ? h2 : Array.from(new Set(o$8(o$8([], v2, true), p2, true))), socialProviders: D2 != null ? D2 : A2.sort(), initialState: I };
|
|
7573
7585
|
} }), spawnSignInActor: assign$2({ actorRef: function(t2, o2) {
|
|
7574
7586
|
var n2, r2, i2, e2, s2, u2 = t2.services, d2 = k({ services: u2 }).withContext({ authAttributes: (n2 = t2.actorDoneData) === null || n2 === void 0 ? void 0 : n2.authAttributes, user: t2.user, intent: (r2 = t2.actorDoneData) === null || r2 === void 0 ? void 0 : r2.intent, country_code: "+1", formValues: {}, touched: {}, validationError: {}, loginMechanisms: (i2 = t2.config) === null || i2 === void 0 ? void 0 : i2.loginMechanisms, socialProviders: (e2 = t2.config) === null || e2 === void 0 ? void 0 : e2.socialProviders, formFields: (s2 = t2.config) === null || s2 === void 0 ? void 0 : s2.formFields });
|
|
7575
7587
|
return spawn(d2, { name: "signInActor" });
|
|
@@ -7584,7 +7596,7 @@ function v() {
|
|
|
7584
7596
|
return spawn(o2, { name: "signOutActor" });
|
|
7585
7597
|
} }), stopSignInActor: t$2("signInActor"), stopSignUpActor: t$2("signUpActor"), stopResetPasswordActor: t$2("resetPasswordActor"), stopSignOutActor: t$2("signOutActor"), configure: assign$2(function(o$12, r2) {
|
|
7586
7598
|
var i2 = r2.data, e2 = i2.services, a2 = e$7(i2, ["services"]);
|
|
7587
|
-
return { services: t$
|
|
7599
|
+
return { services: t$4(t$4({}, o), e2), config: a2 };
|
|
7588
7600
|
}), setHasSetup: assign$2({ hasSetup: true }) }, guards: { isInitialStateSignUp: function(t2) {
|
|
7589
7601
|
return t2.config.initialState === "signUp";
|
|
7590
7602
|
}, isInitialStateResetPassword: function(t2) {
|
|
@@ -7717,6 +7729,7 @@ const facade = {
|
|
|
7717
7729
|
hasValidationErrors: false,
|
|
7718
7730
|
isPending: false,
|
|
7719
7731
|
route: "",
|
|
7732
|
+
authStatus: "",
|
|
7720
7733
|
user: "",
|
|
7721
7734
|
validationErrors: {
|
|
7722
7735
|
val: ""
|
|
@@ -7763,7 +7776,7 @@ function createValues() {
|
|
|
7763
7776
|
if (!service.value)
|
|
7764
7777
|
return;
|
|
7765
7778
|
const { state, send: send2 } = useAuth();
|
|
7766
|
-
const facadeValues = i$
|
|
7779
|
+
const facadeValues = i$3({ send: send2, state: state.value });
|
|
7767
7780
|
for (const key of Object.keys(facade)) {
|
|
7768
7781
|
useAuthenticatorValue[key] = facadeValues[key];
|
|
7769
7782
|
}
|
|
@@ -7789,17 +7802,13 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
7789
7802
|
const _component_base_wrapper = __unplugin_components_2;
|
|
7790
7803
|
const _component_amplify_button = _sfc_main$x;
|
|
7791
7804
|
return openBlock(), createBlock(_component_amplify_button, {
|
|
7792
|
-
class: "amplify-field-group__control federated-sign-in-button",
|
|
7805
|
+
class: "amplify-field-group__control federated-sign-in-button amplify-authenticator__font",
|
|
7793
7806
|
"data-fullwidth": "false",
|
|
7794
|
-
style: { "font-weight": "normal" },
|
|
7795
7807
|
type: "button",
|
|
7796
7808
|
onClick
|
|
7797
7809
|
}, {
|
|
7798
7810
|
default: withCtx(() => [
|
|
7799
|
-
createVNode(_component_base_wrapper, {
|
|
7800
|
-
class: "amplify-flex federated-sign-in-button-row",
|
|
7801
|
-
style: { "flex-direction": "row", "justify-content": "center", "align-items": "center" }
|
|
7802
|
-
}, {
|
|
7811
|
+
createVNode(_component_base_wrapper, { class: "amplify-flex federated-sign-in-button-row amplify-authenticator__sign-in-button-wrapper" }, {
|
|
7803
7812
|
default: withCtx(() => [
|
|
7804
7813
|
renderSlot(_ctx.$slots, "default")
|
|
7805
7814
|
]),
|
|
@@ -7821,10 +7830,7 @@ const _hoisted_1$9 = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
7821
7830
|
fill: "#FF9900"
|
|
7822
7831
|
})
|
|
7823
7832
|
], -1);
|
|
7824
|
-
const _hoisted_2$6 = {
|
|
7825
|
-
class: "amplify-text",
|
|
7826
|
-
style: { "align-self": "center" }
|
|
7827
|
-
};
|
|
7833
|
+
const _hoisted_2$6 = { class: "amplify-text amplify-authenticator__federated-text" };
|
|
7828
7834
|
const _hoisted_3$4 = /* @__PURE__ */ createElementVNode("svg", {
|
|
7829
7835
|
"aria-label": "Apple icon",
|
|
7830
7836
|
class: "amplify-icon federated-sign-in-icon",
|
|
@@ -7837,10 +7843,7 @@ const _hoisted_3$4 = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
7837
7843
|
}, [
|
|
7838
7844
|
/* @__PURE__ */ createElementVNode("path", { d: "M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z" })
|
|
7839
7845
|
], -1);
|
|
7840
|
-
const _hoisted_4$3 = {
|
|
7841
|
-
class: "amplify-text",
|
|
7842
|
-
style: { "align-self": "center" }
|
|
7843
|
-
};
|
|
7846
|
+
const _hoisted_4$3 = { class: "amplify-text amplify-authenticator__federated-text" };
|
|
7844
7847
|
const _hoisted_5$3 = /* @__PURE__ */ createElementVNode("svg", {
|
|
7845
7848
|
"aria-label": "Facebook icon",
|
|
7846
7849
|
class: "amplify-icon federated-sign-in-icon",
|
|
@@ -7851,10 +7854,7 @@ const _hoisted_5$3 = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
7851
7854
|
fill: "#1877F2"
|
|
7852
7855
|
})
|
|
7853
7856
|
], -1);
|
|
7854
|
-
const _hoisted_6$2 = {
|
|
7855
|
-
class: "amplify-text",
|
|
7856
|
-
style: { "align-self": "center" }
|
|
7857
|
-
};
|
|
7857
|
+
const _hoisted_6$2 = { class: "amplify-text amplify-authenticator__federated-text" };
|
|
7858
7858
|
const _hoisted_7$2 = /* @__PURE__ */ createElementVNode("svg", {
|
|
7859
7859
|
"aria-label": "Google icon",
|
|
7860
7860
|
class: "amplify-icon federated-sign-in-icon",
|
|
@@ -7879,10 +7879,7 @@ const _hoisted_7$2 = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
7879
7879
|
fill: "#EB4335"
|
|
7880
7880
|
})
|
|
7881
7881
|
], -1);
|
|
7882
|
-
const _hoisted_8$2 = {
|
|
7883
|
-
class: "amplify-text",
|
|
7884
|
-
style: { "align-self": "center" }
|
|
7885
|
-
};
|
|
7882
|
+
const _hoisted_8$2 = { class: "amplify-text amplify-authenticator__federated-text" };
|
|
7886
7883
|
const _hoisted_9$1 = /* @__PURE__ */ createElementVNode("hr", {
|
|
7887
7884
|
class: "amplify-divider amplify-divider--label",
|
|
7888
7885
|
"aria-orientation": "horizontal",
|
|
@@ -7912,8 +7909,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
7912
7909
|
const _component_base_wrapper = __unplugin_components_2;
|
|
7913
7910
|
return unref(shouldShowFederatedSignIn) ? (openBlock(), createBlock(_component_base_wrapper, {
|
|
7914
7911
|
key: 0,
|
|
7915
|
-
class: "amplify-flex federated-sign-in-container"
|
|
7916
|
-
style: { "flex-direction": "column", "padding": "0 0 1rem 0" }
|
|
7912
|
+
class: "amplify-flex federated-sign-in-container amplify-authenticator__column amplify-authenticator__sign-in-base"
|
|
7917
7913
|
}, {
|
|
7918
7914
|
default: withCtx(() => [
|
|
7919
7915
|
unref(includeAmazon) ? (openBlock(), createBlock(_sfc_main$s, {
|
|
@@ -8046,10 +8042,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
8046
8042
|
const _component_base_label = __unplugin_components_0;
|
|
8047
8043
|
const _component_base_input = _sfc_main$p;
|
|
8048
8044
|
const _component_base_wrapper = __unplugin_components_2;
|
|
8049
|
-
return openBlock(), createBlock(_component_base_wrapper, {
|
|
8050
|
-
class: "amplify-flex amplify-field amplify-textfield amplify-passwordfield",
|
|
8051
|
-
style: { "flex-direction": "column" }
|
|
8052
|
-
}, {
|
|
8045
|
+
return openBlock(), createBlock(_component_base_wrapper, { class: "amplify-flex amplify-field amplify-textfield amplify-passwordfield amplify-authenticator__column" }, {
|
|
8053
8046
|
default: withCtx(() => {
|
|
8054
8047
|
var _a3;
|
|
8055
8048
|
return [
|
|
@@ -8162,10 +8155,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8162
8155
|
const _component_base_select = _sfc_main$n;
|
|
8163
8156
|
const _component_base_wrapper = __unplugin_components_2;
|
|
8164
8157
|
const _component_base_input = _sfc_main$p;
|
|
8165
|
-
return openBlock(), createBlock(_component_base_wrapper, {
|
|
8166
|
-
class: "amplify-flex amplify-field amplify-textfield amplify-phonenumberfield",
|
|
8167
|
-
style: { "flex-direction": "column" }
|
|
8168
|
-
}, {
|
|
8158
|
+
return openBlock(), createBlock(_component_base_wrapper, { class: "amplify-flex amplify-field amplify-textfield amplify-phonenumberfield amplify-authenticator__column" }, {
|
|
8169
8159
|
default: withCtx(() => [
|
|
8170
8160
|
createVNode(_component_base_label, mergeProps({
|
|
8171
8161
|
for: "amplify-field-" + unref(random),
|
|
@@ -8182,8 +8172,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8182
8172
|
default: withCtx(() => [
|
|
8183
8173
|
__props.type === "tel" ? (openBlock(), createBlock(_component_base_wrapper, {
|
|
8184
8174
|
key: 0,
|
|
8185
|
-
class: "amplify-flex amplify-field amplify-selectfield amplify-countrycodeselect"
|
|
8186
|
-
style: { "flex-direction": "column" }
|
|
8175
|
+
class: "amplify-flex amplify-field amplify-selectfield amplify-countrycodeselect amplify-authenticator__column"
|
|
8187
8176
|
}, {
|
|
8188
8177
|
default: withCtx(() => [
|
|
8189
8178
|
createVNode(_component_base_label, mergeProps({
|
|
@@ -8206,10 +8195,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8206
8195
|
options: dialCodeList,
|
|
8207
8196
|
"select-value": dialCode
|
|
8208
8197
|
}, null, 8, ["id"]),
|
|
8209
|
-
createVNode(_component_base_wrapper, {
|
|
8210
|
-
class: "amplify-flex amplify-select__icon-wrapper",
|
|
8211
|
-
style: { "align-items": "center", "justify-content": "center" }
|
|
8212
|
-
}, {
|
|
8198
|
+
createVNode(_component_base_wrapper, { class: "amplify-flex amplify-select__icon-wrapper amplify-authenticator__icon-wrapper" }, {
|
|
8213
8199
|
default: withCtx(() => [
|
|
8214
8200
|
_hoisted_2$4
|
|
8215
8201
|
]),
|
|
@@ -8339,7 +8325,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
8339
8325
|
const signInButtonText = computed(() => g$1("Sign in"));
|
|
8340
8326
|
const signIngButtonText = computed(() => g$1("Signing in"));
|
|
8341
8327
|
const { state, send: send2 } = useAuth();
|
|
8342
|
-
const actorState = computed(() => t$
|
|
8328
|
+
const actorState = computed(() => t$5(state.value));
|
|
8343
8329
|
const onInput = (e2) => {
|
|
8344
8330
|
const { name, value } = e2.target;
|
|
8345
8331
|
send2({
|
|
@@ -8391,15 +8377,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
8391
8377
|
]),
|
|
8392
8378
|
default: withCtx(() => [
|
|
8393
8379
|
createVNode(_sfc_main$r),
|
|
8394
|
-
createVNode(_component_base_wrapper, {
|
|
8395
|
-
class: "amplify-flex",
|
|
8396
|
-
style: { "flex-direction": "column" }
|
|
8397
|
-
}, {
|
|
8380
|
+
createVNode(_component_base_wrapper, { class: "amplify-flex amplify-authenticator__column" }, {
|
|
8398
8381
|
default: withCtx(() => [
|
|
8399
8382
|
createVNode(_component_base_field_set, {
|
|
8400
8383
|
disabled: unref(actorState).matches("signIn.submit"),
|
|
8401
|
-
class: "amplify-flex"
|
|
8402
|
-
style: { "flex-direction": "column" }
|
|
8384
|
+
class: "amplify-flex amplify-authenticator__column"
|
|
8403
8385
|
}, {
|
|
8404
8386
|
fieldSetI: withCtx(({ slotData }) => [
|
|
8405
8387
|
renderSlot(_ctx.$slots, "signin-fields", { info: slotData })
|
|
@@ -8418,11 +8400,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
8418
8400
|
})) : createCommentVNode("", true),
|
|
8419
8401
|
createVNode(_component_amplify_button, {
|
|
8420
8402
|
disabled: unref(actorState).matches("signIn.submit"),
|
|
8421
|
-
class: "amplify-field-group__control",
|
|
8403
|
+
class: "amplify-field-group__control amplify-authenticator__font",
|
|
8422
8404
|
fullwidth: true,
|
|
8423
8405
|
"data-loading": "false",
|
|
8424
|
-
variation: "primary"
|
|
8425
|
-
style: { "border-radius": "0x", "font-weight": "normal" }
|
|
8406
|
+
variation: "primary"
|
|
8426
8407
|
}, {
|
|
8427
8408
|
default: withCtx(() => [
|
|
8428
8409
|
createTextVNode(toDisplayString(unref(actorState).matches("signIn.submit") ? unref(signIngButtonText) : unref(signInButtonText)), 1)
|
|
@@ -8444,11 +8425,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
8444
8425
|
createElementVNode("div", _hoisted_2$3, [
|
|
8445
8426
|
createVNode(_component_amplify_button, {
|
|
8446
8427
|
onClick: onForgotPasswordClicked,
|
|
8447
|
-
class: "amplify-field-group__control",
|
|
8428
|
+
class: "amplify-field-group__control amplify-authenticator__font",
|
|
8448
8429
|
"data-fullwidth": "true",
|
|
8449
8430
|
"data-size": "small",
|
|
8450
8431
|
"data-variation": "link",
|
|
8451
|
-
style: { "font-weight": "normal" },
|
|
8452
8432
|
type: "button"
|
|
8453
8433
|
}, {
|
|
8454
8434
|
default: withCtx(() => [
|
|
@@ -8519,14 +8499,10 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
8519
8499
|
}, {
|
|
8520
8500
|
default: withCtx(() => [
|
|
8521
8501
|
createVNode(_sfc_main$r),
|
|
8522
|
-
createVNode(_component_base_wrapper, {
|
|
8523
|
-
class: "amplify-flex",
|
|
8524
|
-
style: { "flex-direction": "column" }
|
|
8525
|
-
}, {
|
|
8502
|
+
createVNode(_component_base_wrapper, { class: "amplify-flex amplify-authenticator__column" }, {
|
|
8526
8503
|
default: withCtx(() => [
|
|
8527
8504
|
createVNode(_component_base_field_set, {
|
|
8528
|
-
class: "amplify-flex",
|
|
8529
|
-
style: { "flex-direction": "column" },
|
|
8505
|
+
class: "amplify-flex amplify-authenticator__column",
|
|
8530
8506
|
disabled: unref(isPending)
|
|
8531
8507
|
}, {
|
|
8532
8508
|
fieldSetI: withCtx(({ slotData }) => [
|
|
@@ -8544,11 +8520,10 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
8544
8520
|
_: 1
|
|
8545
8521
|
})) : createCommentVNode("", true),
|
|
8546
8522
|
createVNode(_component_amplify_button, {
|
|
8547
|
-
class: "amplify-field-group__control",
|
|
8523
|
+
class: "amplify-field-group__control amplify-authenticator__font",
|
|
8548
8524
|
"data-fullwidth": "true",
|
|
8549
8525
|
"data-loading": "false",
|
|
8550
8526
|
"data-variation": "primary",
|
|
8551
|
-
style: { "border-radius": "0px", "font-weight": "normal" },
|
|
8552
8527
|
disabled: unref(isPending) || unref(hasValidationErrors)
|
|
8553
8528
|
}, {
|
|
8554
8529
|
default: withCtx(() => [
|
|
@@ -8614,14 +8589,13 @@ function _sfc_render$1(_ctx, _cache) {
|
|
|
8614
8589
|
tabindex: "0",
|
|
8615
8590
|
"aria-orientation": "horizontal",
|
|
8616
8591
|
"data-orientation": "horizontal",
|
|
8617
|
-
|
|
8618
|
-
|
|
8592
|
+
class: "amplify-authenticator__tabs",
|
|
8593
|
+
role: "tablist"
|
|
8619
8594
|
}, {
|
|
8620
8595
|
default: withCtx(() => [
|
|
8621
8596
|
createVNode(_component_base_wrapper, {
|
|
8622
|
-
class: "amplify-flex amplify-tabs",
|
|
8623
|
-
"data-indicator-position": "top"
|
|
8624
|
-
style: { "gap": "0px", "justify-content": "center" }
|
|
8597
|
+
class: "amplify-flex amplify-tabs amplify-authenticator__tabs-wrapper",
|
|
8598
|
+
"data-indicator-position": "top"
|
|
8625
8599
|
}, {
|
|
8626
8600
|
default: withCtx(() => [
|
|
8627
8601
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -8726,15 +8700,11 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
8726
8700
|
onSubmit: withModifiers(onConfirmSignUpSubmit, ["prevent"])
|
|
8727
8701
|
}, {
|
|
8728
8702
|
default: withCtx(() => [
|
|
8729
|
-
createVNode(_component_base_wrapper, {
|
|
8730
|
-
class: "amplify-flex",
|
|
8731
|
-
style: { "flex-direction": "column" }
|
|
8732
|
-
}, {
|
|
8703
|
+
createVNode(_component_base_wrapper, { class: "amplify-flex amplify-authenticator__column" }, {
|
|
8733
8704
|
default: withCtx(() => [
|
|
8734
8705
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
8735
8706
|
createVNode(_component_base_heading, {
|
|
8736
|
-
class: "amplify-heading",
|
|
8737
|
-
style: { "font-size": "1.5rem" },
|
|
8707
|
+
class: "amplify-heading amplify-authenticator__heading",
|
|
8738
8708
|
level: 3
|
|
8739
8709
|
}, {
|
|
8740
8710
|
default: withCtx(() => [
|
|
@@ -8743,15 +8713,14 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
8743
8713
|
_: 1
|
|
8744
8714
|
})
|
|
8745
8715
|
]),
|
|
8746
|
-
createVNode(_component_base_text, {
|
|
8716
|
+
createVNode(_component_base_text, { class: "amplify-authenticator__subtitle" }, {
|
|
8747
8717
|
default: withCtx(() => [
|
|
8748
8718
|
createTextVNode(toDisplayString(unref(subtitleText)), 1)
|
|
8749
8719
|
]),
|
|
8750
8720
|
_: 1
|
|
8751
8721
|
}),
|
|
8752
8722
|
createVNode(_component_base_field_set, {
|
|
8753
|
-
class: "amplify-flex",
|
|
8754
|
-
style: { "flex-direction": "column" },
|
|
8723
|
+
class: "amplify-flex amplify-authenticator__column",
|
|
8755
8724
|
disabled: unref(isPending)
|
|
8756
8725
|
}, {
|
|
8757
8726
|
default: withCtx(() => [
|
|
@@ -8759,10 +8728,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
8759
8728
|
]),
|
|
8760
8729
|
_: 1
|
|
8761
8730
|
}, 8, ["disabled"]),
|
|
8762
|
-
createVNode(_component_base_footer, {
|
|
8763
|
-
class: "amplify-flex",
|
|
8764
|
-
style: { "flex-direction": "column", "align-items": "unset" }
|
|
8765
|
-
}, {
|
|
8731
|
+
createVNode(_component_base_footer, { class: "amplify-flex amplify-authenticator__column" }, {
|
|
8766
8732
|
default: withCtx(() => [
|
|
8767
8733
|
unref(error2) ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
|
|
8768
8734
|
default: withCtx(() => [
|
|
@@ -8771,12 +8737,11 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
8771
8737
|
_: 1
|
|
8772
8738
|
})) : createCommentVNode("", true),
|
|
8773
8739
|
createVNode(_component_amplify_button, {
|
|
8774
|
-
class: "amplify-field-group__control",
|
|
8740
|
+
class: "amplify-field-group__control amplify-authenticator__font",
|
|
8775
8741
|
"data-fullwidth": "false",
|
|
8776
8742
|
"data-loading": "false",
|
|
8777
8743
|
"data-variation": "primary",
|
|
8778
8744
|
type: "submit",
|
|
8779
|
-
style: { "font-weight": "normal" },
|
|
8780
8745
|
disabled: unref(isPending)
|
|
8781
8746
|
}, {
|
|
8782
8747
|
default: withCtx(() => [
|
|
@@ -8785,10 +8750,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
8785
8750
|
_: 1
|
|
8786
8751
|
}, 8, ["disabled"]),
|
|
8787
8752
|
createVNode(_component_amplify_button, {
|
|
8788
|
-
class: "amplify-field-group__control",
|
|
8753
|
+
class: "amplify-field-group__control amplify-authenticator__font",
|
|
8789
8754
|
"data-fullwidth": "false",
|
|
8790
8755
|
"data-variation": "default",
|
|
8791
|
-
style: { "font-weight": "normal" },
|
|
8792
8756
|
type: "button",
|
|
8793
8757
|
onClick: withModifiers(onLostCodeClicked, ["prevent"])
|
|
8794
8758
|
}, {
|
|
@@ -8824,7 +8788,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
8824
8788
|
const { state, send: send2 } = useAuth();
|
|
8825
8789
|
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
8826
8790
|
const props = useAuthShared();
|
|
8827
|
-
const actorState = computed(() => t$
|
|
8791
|
+
const actorState = computed(() => t$5(state.value));
|
|
8828
8792
|
const challengeName = actorState.value.context.challengeName;
|
|
8829
8793
|
let mfaType = "SMS";
|
|
8830
8794
|
if (challengeName === E$2.SOFTWARE_TOKEN_MFA) {
|
|
@@ -8877,8 +8841,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
8877
8841
|
}, {
|
|
8878
8842
|
default: withCtx(() => [
|
|
8879
8843
|
createVNode(_component_base_field_set, {
|
|
8880
|
-
class: "amplify-flex",
|
|
8881
|
-
style: { "flex-direction": "column" },
|
|
8844
|
+
class: "amplify-flex amplify-authenticator__column",
|
|
8882
8845
|
disabled: unref(actorState).matches("confirmSignIn.pending")
|
|
8883
8846
|
}, {
|
|
8884
8847
|
default: withCtx(() => [
|
|
@@ -8893,19 +8856,13 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
8893
8856
|
_: 1
|
|
8894
8857
|
})
|
|
8895
8858
|
]),
|
|
8896
|
-
createVNode(_component_base_wrapper, {
|
|
8897
|
-
class: "amplify-flex",
|
|
8898
|
-
style: { "flex-direction": "column" }
|
|
8899
|
-
}, {
|
|
8859
|
+
createVNode(_component_base_wrapper, { class: "amplify-flex amplify-authenticator__column" }, {
|
|
8900
8860
|
default: withCtx(() => [
|
|
8901
8861
|
createVNode(_sfc_main$k, { route: "confirmSignIn" })
|
|
8902
8862
|
]),
|
|
8903
8863
|
_: 1
|
|
8904
8864
|
}),
|
|
8905
|
-
createVNode(_component_base_footer, {
|
|
8906
|
-
class: "amplify-flex",
|
|
8907
|
-
style: { "flex-direction": "column" }
|
|
8908
|
-
}, {
|
|
8865
|
+
createVNode(_component_base_footer, { class: "amplify-flex amplify-authenticator__column" }, {
|
|
8909
8866
|
default: withCtx(() => {
|
|
8910
8867
|
var _a2, _b;
|
|
8911
8868
|
return [
|
|
@@ -8919,11 +8876,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
8919
8876
|
_: 1
|
|
8920
8877
|
})) : createCommentVNode("", true),
|
|
8921
8878
|
createVNode(_component_amplify_button, {
|
|
8922
|
-
class: "amplify-field-group__control",
|
|
8879
|
+
class: "amplify-field-group__control amplify-authenticator__font",
|
|
8923
8880
|
"data-fullwidth": "false",
|
|
8924
8881
|
"data-loading": "false",
|
|
8925
8882
|
"data-variation": "primary",
|
|
8926
|
-
style: { "font-weight": "normal" },
|
|
8927
8883
|
disabled: unref(actorState).matches("confirmSignIn.pending")
|
|
8928
8884
|
}, {
|
|
8929
8885
|
default: withCtx(() => [
|
|
@@ -8932,11 +8888,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
8932
8888
|
_: 1
|
|
8933
8889
|
}, 8, ["disabled"]),
|
|
8934
8890
|
createVNode(_component_amplify_button, {
|
|
8935
|
-
class: "amplify-field-group__control",
|
|
8891
|
+
class: "amplify-field-group__control amplify-authenticator__font",
|
|
8936
8892
|
"data-fullwidth": "false",
|
|
8937
8893
|
"data-size": "small",
|
|
8938
8894
|
"data-variation": "link",
|
|
8939
|
-
style: { "font-weight": "normal" },
|
|
8940
8895
|
type: "button",
|
|
8941
8896
|
onClick: withModifiers(onBackToSignInClicked, ["prevent"])
|
|
8942
8897
|
}, {
|
|
@@ -10980,7 +10935,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
10980
10935
|
const formOverrides = (_b = (_a2 = context == null ? void 0 : context.config) == null ? void 0 : _a2.formFields) == null ? void 0 : _b.setupTOTP;
|
|
10981
10936
|
const QROR = formOverrides == null ? void 0 : formOverrides["QR"];
|
|
10982
10937
|
const confOR = formOverrides == null ? void 0 : formOverrides["confirmation_code"];
|
|
10983
|
-
const actorState = computed(() => t$
|
|
10938
|
+
const actorState = computed(() => t$5(state.value));
|
|
10984
10939
|
let qrCode = reactive({
|
|
10985
10940
|
qrCodeImageSource: "",
|
|
10986
10941
|
isLoading: true
|
|
@@ -11002,7 +10957,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
11002
10957
|
secretKey.value = await Auth.setupTOTP(user);
|
|
11003
10958
|
const issuer = (_a3 = QROR == null ? void 0 : QROR.totpIssuer) != null ? _a3 : "AWSCognito";
|
|
11004
10959
|
const username = (_b2 = QROR == null ? void 0 : QROR.totpUsername) != null ? _b2 : user.username;
|
|
11005
|
-
const totpCode = `otpauth://totp/${issuer}:${username}?secret=${secretKey.value}&issuer=${issuer}
|
|
10960
|
+
const totpCode = encodeURI(`otpauth://totp/${issuer}:${username}?secret=${secretKey.value}&issuer=${issuer}`);
|
|
11006
10961
|
qrCode.qrCodeImageSource = await browser.toDataURL(totpCode);
|
|
11007
10962
|
} catch (error2) {
|
|
11008
10963
|
logger.error(error2);
|
|
@@ -11059,15 +11014,13 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
11059
11014
|
}, {
|
|
11060
11015
|
default: withCtx(() => [
|
|
11061
11016
|
createVNode(_component_base_field_set, {
|
|
11062
|
-
class: "amplify-flex",
|
|
11063
|
-
style: { "flex-direction": "column" },
|
|
11017
|
+
class: "amplify-flex amplify-authenticator__column",
|
|
11064
11018
|
disabled: unref(actorState).matches("confirmSignIn.pending")
|
|
11065
11019
|
}, {
|
|
11066
11020
|
default: withCtx(() => [
|
|
11067
11021
|
unref(qrCode).isLoading ? (openBlock(), createElementBlock("p", _hoisted_1$2, "Loading...")) : (openBlock(), createBlock(_component_base_wrapper, {
|
|
11068
11022
|
key: 1,
|
|
11069
|
-
class: "amplify-flex"
|
|
11070
|
-
style: { "flex-direction": "column" }
|
|
11023
|
+
class: "amplify-flex amplify-authenticator__column"
|
|
11071
11024
|
}, {
|
|
11072
11025
|
default: withCtx(() => [
|
|
11073
11026
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
@@ -11081,10 +11034,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
11081
11034
|
_: 1
|
|
11082
11035
|
})
|
|
11083
11036
|
]),
|
|
11084
|
-
createVNode(_component_base_wrapper, {
|
|
11085
|
-
class: "amplify-flex",
|
|
11086
|
-
style: { "flex-direction": "column" }
|
|
11087
|
-
}, {
|
|
11037
|
+
createVNode(_component_base_wrapper, { class: "amplify-flex amplify-authenticator__column" }, {
|
|
11088
11038
|
default: withCtx(() => [
|
|
11089
11039
|
createElementVNode("img", {
|
|
11090
11040
|
class: "amplify-image",
|
|
@@ -11117,10 +11067,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
11117
11067
|
]),
|
|
11118
11068
|
_: 1
|
|
11119
11069
|
}),
|
|
11120
|
-
createVNode(_component_base_footer, {
|
|
11121
|
-
class: "amplify-flex",
|
|
11122
|
-
style: { "flex-direction": "column" }
|
|
11123
|
-
}, {
|
|
11070
|
+
createVNode(_component_base_footer, { class: "amplify-flex amplify-authenticator__column" }, {
|
|
11124
11071
|
default: withCtx(() => {
|
|
11125
11072
|
var _a3;
|
|
11126
11073
|
return [
|
|
@@ -11131,12 +11078,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
11131
11078
|
_: 1
|
|
11132
11079
|
})) : createCommentVNode("", true),
|
|
11133
11080
|
createVNode(_component_amplify_button, {
|
|
11134
|
-
class: "amplify-field-group__control",
|
|
11081
|
+
class: "amplify-field-group__control amplify-authenticator__font",
|
|
11135
11082
|
"data-fullwidth": "false",
|
|
11136
11083
|
"data-loading": "false",
|
|
11137
11084
|
"data-variation": "primary",
|
|
11138
11085
|
type: "submit",
|
|
11139
|
-
style: { "font-weight": "normal" },
|
|
11140
11086
|
disabled: unref(actorState).matches("confirmSignIn.pending")
|
|
11141
11087
|
}, {
|
|
11142
11088
|
default: withCtx(() => [
|
|
@@ -11145,11 +11091,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
11145
11091
|
_: 1
|
|
11146
11092
|
}, 8, ["disabled"]),
|
|
11147
11093
|
createVNode(_component_amplify_button, {
|
|
11148
|
-
class: "amplify-field-group__control",
|
|
11094
|
+
class: "amplify-field-group__control amplify-authenticator__font",
|
|
11149
11095
|
"data-fullwidth": "false",
|
|
11150
11096
|
"data-size": "small",
|
|
11151
11097
|
"data-variation": "link",
|
|
11152
|
-
style: { "font-weight": "normal" },
|
|
11153
11098
|
type: "button",
|
|
11154
11099
|
onClick: withModifiers(onBackToSignInClicked, ["prevent"])
|
|
11155
11100
|
}, {
|
|
@@ -11196,7 +11141,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
11196
11141
|
const { state, send: send2 } = useAuth();
|
|
11197
11142
|
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
11198
11143
|
const props = useAuthShared();
|
|
11199
|
-
const actorState = computed(() => t$
|
|
11144
|
+
const actorState = computed(() => t$5(state.value));
|
|
11200
11145
|
const changePasswordLabel = computed(() => g$1("Change Password"));
|
|
11201
11146
|
const changingPasswordLabel = computed(() => g$1("Changing"));
|
|
11202
11147
|
const backSignInText = computed(() => g$1("Back to Sign In"));
|
|
@@ -11249,8 +11194,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
11249
11194
|
}, {
|
|
11250
11195
|
default: withCtx(() => [
|
|
11251
11196
|
createVNode(_component_base_field_set, {
|
|
11252
|
-
class: "amplify-flex",
|
|
11253
|
-
style: { "flex-direction": "column" },
|
|
11197
|
+
class: "amplify-flex amplify-authenticator__column",
|
|
11254
11198
|
disabled: unref(actorState).matches("forceNewPassword.pending")
|
|
11255
11199
|
}, {
|
|
11256
11200
|
default: withCtx(() => [
|
|
@@ -11265,10 +11209,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
11265
11209
|
_: 1
|
|
11266
11210
|
})
|
|
11267
11211
|
]),
|
|
11268
|
-
createVNode(_component_base_wrapper, {
|
|
11269
|
-
class: "amplify-flex",
|
|
11270
|
-
style: { "flex-direction": "column" }
|
|
11271
|
-
}, {
|
|
11212
|
+
createVNode(_component_base_wrapper, { class: "amplify-flex amplify-authenticator__column" }, {
|
|
11272
11213
|
default: withCtx(() => [
|
|
11273
11214
|
renderSlot(_ctx.$slots, "force-new-password-form-fields", {}, () => [
|
|
11274
11215
|
createVNode(_sfc_main$9)
|
|
@@ -11276,10 +11217,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
11276
11217
|
]),
|
|
11277
11218
|
_: 3
|
|
11278
11219
|
}),
|
|
11279
|
-
createVNode(_component_base_footer, {
|
|
11280
|
-
class: "amplify-flex",
|
|
11281
|
-
style: { "flex-direction": "column" }
|
|
11282
|
-
}, {
|
|
11220
|
+
createVNode(_component_base_footer, { class: "amplify-flex amplify-authenticator__column" }, {
|
|
11283
11221
|
default: withCtx(() => [
|
|
11284
11222
|
unref(actorState).context.remoteError ? (openBlock(), createBlock(_component_base_alert, {
|
|
11285
11223
|
key: 0,
|
|
@@ -11291,11 +11229,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
11291
11229
|
_: 1
|
|
11292
11230
|
})) : createCommentVNode("", true),
|
|
11293
11231
|
createVNode(_component_amplify_button, {
|
|
11294
|
-
class: "amplify-field-group__control",
|
|
11232
|
+
class: "amplify-field-group__control amplify-authenticator__font",
|
|
11295
11233
|
"data-fullwidth": "false",
|
|
11296
11234
|
"data-loading": "false",
|
|
11297
11235
|
"data-variation": "primary",
|
|
11298
|
-
style: { "font-weight": "normal" },
|
|
11299
11236
|
disabled: unref(actorState).matches("signUp.submit")
|
|
11300
11237
|
}, {
|
|
11301
11238
|
default: withCtx(() => [
|
|
@@ -11304,11 +11241,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
11304
11241
|
_: 1
|
|
11305
11242
|
}, 8, ["disabled"]),
|
|
11306
11243
|
createVNode(_component_amplify_button, {
|
|
11307
|
-
class: "amplify-field-group__control",
|
|
11244
|
+
class: "amplify-field-group__control amplify-authenticator__font",
|
|
11308
11245
|
"data-fullwidth": "false",
|
|
11309
11246
|
"data-size": "small",
|
|
11310
11247
|
"data-variation": "link",
|
|
11311
|
-
style: { "font-weight": "normal" },
|
|
11312
11248
|
type: "button",
|
|
11313
11249
|
onClick: withModifiers(onHaveAccountClicked, ["prevent"])
|
|
11314
11250
|
}, {
|
|
@@ -11388,10 +11324,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
11388
11324
|
onSubmit: withModifiers(onResetPasswordSubmit, ["prevent"])
|
|
11389
11325
|
}), {
|
|
11390
11326
|
default: withCtx(() => [
|
|
11391
|
-
createVNode(_component_base_wrapper, {
|
|
11392
|
-
class: "amplify-flex",
|
|
11393
|
-
style: { "flex-direction": "column" }
|
|
11394
|
-
}, {
|
|
11327
|
+
createVNode(_component_base_wrapper, { class: "amplify-flex amplify-authenticator__column" }, {
|
|
11395
11328
|
default: withCtx(() => [
|
|
11396
11329
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
11397
11330
|
createVNode(_component_base_heading, {
|
|
@@ -11405,8 +11338,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
11405
11338
|
})
|
|
11406
11339
|
]),
|
|
11407
11340
|
createVNode(_component_base_field_set, {
|
|
11408
|
-
class: "amplify-flex",
|
|
11409
|
-
style: { "flex-direction": "column" },
|
|
11341
|
+
class: "amplify-flex amplify-authenticator__column",
|
|
11410
11342
|
disabled: unref(isPending)
|
|
11411
11343
|
}, {
|
|
11412
11344
|
default: withCtx(() => [
|
|
@@ -11414,10 +11346,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
11414
11346
|
]),
|
|
11415
11347
|
_: 1
|
|
11416
11348
|
}, 8, ["disabled"]),
|
|
11417
|
-
createVNode(_component_base_footer, {
|
|
11418
|
-
class: "amplify-flex",
|
|
11419
|
-
style: { "flex-direction": "column", "align-items": "unset" }
|
|
11420
|
-
}, {
|
|
11349
|
+
createVNode(_component_base_footer, { class: "amplify-flex amplify-authenticator__column" }, {
|
|
11421
11350
|
default: withCtx(() => [
|
|
11422
11351
|
unref(error2) ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
|
|
11423
11352
|
default: withCtx(() => [
|
|
@@ -11426,11 +11355,10 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
11426
11355
|
_: 1
|
|
11427
11356
|
})) : createCommentVNode("", true),
|
|
11428
11357
|
createVNode(_component_amplify_button, {
|
|
11429
|
-
class: "amplify-field-group__control",
|
|
11358
|
+
class: "amplify-field-group__control amplify-authenticator__font",
|
|
11430
11359
|
"data-fullwidth": "false",
|
|
11431
11360
|
"data-variation": "primary",
|
|
11432
11361
|
type: "submit",
|
|
11433
|
-
style: { "font-weight": "normal" },
|
|
11434
11362
|
disabled: unref(isPending)
|
|
11435
11363
|
}, {
|
|
11436
11364
|
default: withCtx(() => [
|
|
@@ -11439,11 +11367,10 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
11439
11367
|
_: 1
|
|
11440
11368
|
}, 8, ["disabled"]),
|
|
11441
11369
|
createVNode(_component_amplify_button, {
|
|
11442
|
-
class: "amplify-field-group__control",
|
|
11370
|
+
class: "amplify-field-group__control amplify-authenticator__font",
|
|
11443
11371
|
"data-fullwidth": "false",
|
|
11444
11372
|
"data-size": "small",
|
|
11445
11373
|
"data-variation": "link",
|
|
11446
|
-
style: { "font-weight": "normal" },
|
|
11447
11374
|
type: "button",
|
|
11448
11375
|
onClick: withModifiers(onBackToSignInClicked, ["prevent"])
|
|
11449
11376
|
}, {
|
|
@@ -11476,8 +11403,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
11476
11403
|
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
11477
11404
|
const props = useAuthShared();
|
|
11478
11405
|
const attrs = useAttrs();
|
|
11479
|
-
const actorState = computed(() => t$
|
|
11480
|
-
computed(() => n$
|
|
11406
|
+
const actorState = computed(() => t$5(state.value));
|
|
11407
|
+
computed(() => n$7(state.value));
|
|
11481
11408
|
const resendCodeText = computed(() => g$1("Resend Code"));
|
|
11482
11409
|
const confirmResetPasswordHeading = computed(() => g$1("Reset your Password"));
|
|
11483
11410
|
const confirmResetPasswordText = computed(() => g$1("Submit"));
|
|
@@ -11526,8 +11453,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
11526
11453
|
}, {
|
|
11527
11454
|
default: withCtx(() => [
|
|
11528
11455
|
createVNode(_component_base_field_set, {
|
|
11529
|
-
class: "amplify-flex",
|
|
11530
|
-
style: { "flex-direction": "column" },
|
|
11456
|
+
class: "amplify-flex amplify-authenticator__column",
|
|
11531
11457
|
disabled: unref(actorState).matches("confirmResetPassword.pending")
|
|
11532
11458
|
}, {
|
|
11533
11459
|
default: withCtx(() => [
|
|
@@ -11542,19 +11468,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
11542
11468
|
_: 1
|
|
11543
11469
|
})
|
|
11544
11470
|
]),
|
|
11545
|
-
createVNode(_component_base_wrapper, {
|
|
11546
|
-
class: "amplify-flex",
|
|
11547
|
-
style: { "flex-direction": "column" }
|
|
11548
|
-
}, {
|
|
11471
|
+
createVNode(_component_base_wrapper, { class: "amplify-flex amplify-authenticator__column" }, {
|
|
11549
11472
|
default: withCtx(() => [
|
|
11550
11473
|
createVNode(_sfc_main$k, { route: "confirmResetPassword" })
|
|
11551
11474
|
]),
|
|
11552
11475
|
_: 1
|
|
11553
11476
|
}),
|
|
11554
|
-
createVNode(_component_base_footer, {
|
|
11555
|
-
class: "amplify-flex",
|
|
11556
|
-
style: { "flex-direction": "column" }
|
|
11557
|
-
}, {
|
|
11477
|
+
createVNode(_component_base_footer, { class: "amplify-flex amplify-authenticator__column" }, {
|
|
11558
11478
|
default: withCtx(() => {
|
|
11559
11479
|
var _a2, _b;
|
|
11560
11480
|
return [
|
|
@@ -11568,11 +11488,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
11568
11488
|
_: 1
|
|
11569
11489
|
})) : createCommentVNode("", true),
|
|
11570
11490
|
createVNode(_component_amplify_button, {
|
|
11571
|
-
class: "amplify-field-group__control",
|
|
11491
|
+
class: "amplify-field-group__control amplify-authenticator__font",
|
|
11572
11492
|
"data-fullwidth": "false",
|
|
11573
11493
|
"data-variation": "primary",
|
|
11574
11494
|
type: "submit",
|
|
11575
|
-
style: { "font-weight": "normal" },
|
|
11576
11495
|
disabled: unref(actorState).matches("confirmResetPassword.pending")
|
|
11577
11496
|
}, {
|
|
11578
11497
|
default: withCtx(() => [
|
|
@@ -11581,13 +11500,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
11581
11500
|
_: 1
|
|
11582
11501
|
}, 8, ["disabled"]),
|
|
11583
11502
|
createVNode(_component_amplify_button, {
|
|
11584
|
-
class: "amplify-field-group__control",
|
|
11503
|
+
class: "amplify-field-group__control amplify-authenticator__font",
|
|
11585
11504
|
"data-fullwidth": "false",
|
|
11586
11505
|
"data-size": "small",
|
|
11587
11506
|
"data-variation": "link",
|
|
11588
11507
|
type: "button",
|
|
11589
|
-
onClick: withModifiers(onLostYourCodeClicked, ["prevent"])
|
|
11590
|
-
style: { "font-weight": "normal" }
|
|
11508
|
+
onClick: withModifiers(onLostYourCodeClicked, ["prevent"])
|
|
11591
11509
|
}, {
|
|
11592
11510
|
default: withCtx(() => [
|
|
11593
11511
|
createTextVNode(toDisplayString(unref(resendCodeText)), 1)
|
|
@@ -11622,7 +11540,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
11622
11540
|
const props = useAuthShared();
|
|
11623
11541
|
const attrs = useAttrs();
|
|
11624
11542
|
const { state, send: send2 } = useAuth();
|
|
11625
|
-
const actorState = computed(() => t$
|
|
11543
|
+
const actorState = computed(() => t$5(state.value));
|
|
11626
11544
|
const unverifiedAttributes = actorState.value.context.unverifiedAttributes;
|
|
11627
11545
|
const verifyHeading = computed(() => g$1("Account recovery requires verified contact information"));
|
|
11628
11546
|
const skipText = computed(() => g$1("Skip"));
|
|
@@ -11673,8 +11591,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
11673
11591
|
default: withCtx(() => [
|
|
11674
11592
|
createVNode(_component_base_field_set, {
|
|
11675
11593
|
disabled: unref(actorState).matches("verifyUser.pending"),
|
|
11676
|
-
class: "amplify-flex"
|
|
11677
|
-
style: { "flex-direction": "column" }
|
|
11594
|
+
class: "amplify-flex amplify-authenticator__column"
|
|
11678
11595
|
}, {
|
|
11679
11596
|
default: withCtx(() => [
|
|
11680
11597
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
@@ -11688,10 +11605,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
11688
11605
|
_: 1
|
|
11689
11606
|
})
|
|
11690
11607
|
]),
|
|
11691
|
-
createVNode(_component_base_wrapper, {
|
|
11692
|
-
class: "amplify-flex amplify-field amplify-radiogroupfield",
|
|
11693
|
-
style: { "flex-direction": "column" }
|
|
11694
|
-
}, {
|
|
11608
|
+
createVNode(_component_base_wrapper, { class: "amplify-flex amplify-field amplify-radiogroupfield amplify-authenticator__column" }, {
|
|
11695
11609
|
default: withCtx(() => [
|
|
11696
11610
|
createVNode(_component_base_label, {
|
|
11697
11611
|
class: "amplify-visually-hidden amplify-label",
|
|
@@ -11703,8 +11617,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
11703
11617
|
_: 1
|
|
11704
11618
|
}),
|
|
11705
11619
|
createVNode(_component_base_wrapper, {
|
|
11706
|
-
class: "amplify-flex amplify-field amplify-radiogroupfield",
|
|
11707
|
-
style: { "flex-direction": "column" },
|
|
11620
|
+
class: "amplify-flex amplify-field amplify-radiogroupfield amplify-authenticator__column",
|
|
11708
11621
|
"aria-labelledby": "amplify-field-493c"
|
|
11709
11622
|
}, {
|
|
11710
11623
|
default: withCtx(() => [
|
|
@@ -11745,10 +11658,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
11745
11658
|
]),
|
|
11746
11659
|
_: 1
|
|
11747
11660
|
}),
|
|
11748
|
-
createVNode(_component_base_footer, {
|
|
11749
|
-
class: "amplify-flex",
|
|
11750
|
-
style: { "flex-direction": "column" }
|
|
11751
|
-
}, {
|
|
11661
|
+
createVNode(_component_base_footer, { class: "amplify-flex amplify-authenticator__column" }, {
|
|
11752
11662
|
default: withCtx(() => {
|
|
11753
11663
|
var _a2, _b;
|
|
11754
11664
|
return [
|
|
@@ -11762,11 +11672,10 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
11762
11672
|
_: 1
|
|
11763
11673
|
})) : createCommentVNode("", true),
|
|
11764
11674
|
createVNode(_component_amplify_button, {
|
|
11765
|
-
class: "amplify-field-group__control",
|
|
11675
|
+
class: "amplify-field-group__control amplify-authenticator__font",
|
|
11766
11676
|
"data-fullwidth": "false",
|
|
11767
11677
|
"data-variation": "primary",
|
|
11768
11678
|
type: "submit",
|
|
11769
|
-
style: { "font-weight": "normal" },
|
|
11770
11679
|
disabled: unref(actorState).matches("verifyUser.pending")
|
|
11771
11680
|
}, {
|
|
11772
11681
|
default: withCtx(() => [
|
|
@@ -11775,11 +11684,10 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
11775
11684
|
_: 1
|
|
11776
11685
|
}, 8, ["disabled"]),
|
|
11777
11686
|
createVNode(_component_amplify_button, {
|
|
11778
|
-
class: "amplify-field-group__control",
|
|
11687
|
+
class: "amplify-field-group__control amplify-authenticator__font",
|
|
11779
11688
|
"data-fullwidth": "false",
|
|
11780
11689
|
"data-size": "small",
|
|
11781
11690
|
"data-variation": "link",
|
|
11782
|
-
style: { "font-weight": "normal" },
|
|
11783
11691
|
type: "button",
|
|
11784
11692
|
onClick: withModifiers(onSkipClicked, ["prevent"])
|
|
11785
11693
|
}, {
|
|
@@ -11816,7 +11724,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
11816
11724
|
const props = useAuthShared();
|
|
11817
11725
|
const attrs = useAttrs();
|
|
11818
11726
|
const { state, send: send2 } = useAuth();
|
|
11819
|
-
const actorState = computed(() => t$
|
|
11727
|
+
const actorState = computed(() => t$5(state.value));
|
|
11820
11728
|
const verifyHeading = computed(() => g$1("Account recovery requires verified contact information"));
|
|
11821
11729
|
const skipText = computed(() => g$1("Skip"));
|
|
11822
11730
|
const submitText = computed(() => g$1("Submit"));
|
|
@@ -11863,8 +11771,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
11863
11771
|
}, {
|
|
11864
11772
|
default: withCtx(() => [
|
|
11865
11773
|
createVNode(_component_base_field_set, {
|
|
11866
|
-
class: "amplify-flex",
|
|
11867
|
-
style: { "flex-direction": "column" },
|
|
11774
|
+
class: "amplify-flex amplify-authenticator__column",
|
|
11868
11775
|
disabled: unref(actorState).matches("confirmVerifyUser.pending")
|
|
11869
11776
|
}, {
|
|
11870
11777
|
default: withCtx(() => [
|
|
@@ -11879,19 +11786,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
11879
11786
|
_: 1
|
|
11880
11787
|
})
|
|
11881
11788
|
]),
|
|
11882
|
-
createVNode(_component_base_wrapper, {
|
|
11883
|
-
class: "amplify-flex",
|
|
11884
|
-
style: { "flex-direction": "column" }
|
|
11885
|
-
}, {
|
|
11789
|
+
createVNode(_component_base_wrapper, { class: "amplify-flex amplify-authenticator__column" }, {
|
|
11886
11790
|
default: withCtx(() => [
|
|
11887
11791
|
createVNode(_sfc_main$k, { route: "confirmVerifyUser" })
|
|
11888
11792
|
]),
|
|
11889
11793
|
_: 1
|
|
11890
11794
|
}),
|
|
11891
|
-
createVNode(_component_base_footer, {
|
|
11892
|
-
class: "amplify-flex",
|
|
11893
|
-
style: { "flex-direction": "column" }
|
|
11894
|
-
}, {
|
|
11795
|
+
createVNode(_component_base_footer, { class: "amplify-flex amplify-authenticator__column" }, {
|
|
11895
11796
|
default: withCtx(() => {
|
|
11896
11797
|
var _a2, _b;
|
|
11897
11798
|
return [
|
|
@@ -11905,11 +11806,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
11905
11806
|
_: 1
|
|
11906
11807
|
})) : createCommentVNode("", true),
|
|
11907
11808
|
createVNode(_component_amplify_button, {
|
|
11908
|
-
class: "amplify-field-group__control",
|
|
11809
|
+
class: "amplify-field-group__control amplify-authenticator__font",
|
|
11909
11810
|
"data-fullwidth": "false",
|
|
11910
11811
|
"data-variation": "primary",
|
|
11911
11812
|
type: "submit",
|
|
11912
|
-
style: { "font-weight": "normal" },
|
|
11913
11813
|
disabled: unref(actorState).matches("confirmVerifyUser.pending")
|
|
11914
11814
|
}, {
|
|
11915
11815
|
default: withCtx(() => [
|
|
@@ -11918,11 +11818,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
11918
11818
|
_: 1
|
|
11919
11819
|
}, 8, ["disabled"]),
|
|
11920
11820
|
createVNode(_component_amplify_button, {
|
|
11921
|
-
class: "amplify-field-group__control",
|
|
11821
|
+
class: "amplify-field-group__control amplify-authenticator__font",
|
|
11922
11822
|
"data-fullwidth": "false",
|
|
11923
11823
|
"data-size": "small",
|
|
11924
11824
|
"data-variation": "link",
|
|
11925
|
-
style: { "font-weight": "normal" },
|
|
11926
11825
|
type: "button",
|
|
11927
11826
|
onClick: withModifiers(onSkipClicked, ["prevent"])
|
|
11928
11827
|
}, {
|
|
@@ -12008,7 +11907,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
12008
11907
|
}
|
|
12009
11908
|
}).unsubscribe;
|
|
12010
11909
|
onMounted(() => {
|
|
12011
|
-
unsubscribeHub =
|
|
11910
|
+
unsubscribeHub = r(send2);
|
|
12012
11911
|
});
|
|
12013
11912
|
onUnmounted(() => {
|
|
12014
11913
|
if (unsubscribeHub)
|
|
@@ -12016,7 +11915,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
12016
11915
|
if (unsubscribeMachine)
|
|
12017
11916
|
unsubscribeMachine();
|
|
12018
11917
|
});
|
|
12019
|
-
const actorState = computed(() => t$
|
|
11918
|
+
const actorState = computed(() => t$5(state.value));
|
|
12020
11919
|
const signInComponent = ref();
|
|
12021
11920
|
const signUpComponent = ref();
|
|
12022
11921
|
const confirmSignUpComponent = ref();
|
|
@@ -12103,7 +12002,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
12103
12002
|
const user = ref(null);
|
|
12104
12003
|
const signOut = ref();
|
|
12105
12004
|
watch(() => state.value.context, () => {
|
|
12106
|
-
const { user: u2, signOut: s2 } = i$
|
|
12005
|
+
const { user: u2, signOut: s2 } = i$3({
|
|
12107
12006
|
send: send2,
|
|
12108
12007
|
state: state.value
|
|
12109
12008
|
});
|