@aws-amplify/ui-vue 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.js +78 -72
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -489,7 +489,7 @@ function n$6(t2, e2, n2, r2) {
|
|
|
489
489
|
i2((r2 = r2.apply(t2, e2 || [])).next());
|
|
490
490
|
});
|
|
491
491
|
}
|
|
492
|
-
function r$
|
|
492
|
+
function r$4(t2, e2) {
|
|
493
493
|
var n2, r2, o2, a2, l2 = { label: 0, sent: function() {
|
|
494
494
|
if (1 & o2[0])
|
|
495
495
|
throw o2[1];
|
|
@@ -560,7 +560,7 @@ function o$8(t2, e2, n2) {
|
|
|
560
560
|
return t2.concat(r2 || Array.prototype.slice.call(e2));
|
|
561
561
|
}
|
|
562
562
|
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);
|
|
563
|
-
var r$
|
|
563
|
+
var r$3 = function(i2) {
|
|
564
564
|
var n2, r2 = (n2 = i2 == null ? void 0 : i2.context.config) === null || n2 === void 0 ? void 0 : n2.loginMechanisms;
|
|
565
565
|
return (r2 != null ? r2 : ["username"])[0];
|
|
566
566
|
};
|
|
@@ -617,11 +617,11 @@ var n$4 = function(e2) {
|
|
|
617
617
|
}
|
|
618
618
|
}(v2);
|
|
619
619
|
return { error: c2, hasValidationErrors: m2, isPending: f2, route: v2, authStatus: h2, user: a2, validationErrors: d2, codeDeliveryDetails: l2 };
|
|
620
|
-
}, i$
|
|
620
|
+
}, i$3 = function(t2) {
|
|
621
621
|
var r2 = t2.send, i2 = t2.state, a2 = n$4(r2), o2 = s$2(i2);
|
|
622
622
|
return t$4(t$4({}, a2), o2);
|
|
623
623
|
};
|
|
624
|
-
var r$
|
|
624
|
+
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"];
|
|
625
625
|
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" };
|
|
626
626
|
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" };
|
|
627
627
|
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" };
|
|
@@ -632,12 +632,12 @@ var e$4 = { "Back to Sign In": "\uB85C\uADF8\uC778\uC73C\uB85C \uB3CC\uC544\uAC0
|
|
|
632
632
|
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" };
|
|
633
633
|
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" };
|
|
634
634
|
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" };
|
|
635
|
-
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" };
|
|
635
|
+
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" };
|
|
636
636
|
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" };
|
|
637
637
|
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" };
|
|
638
638
|
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" };
|
|
639
639
|
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" };
|
|
640
|
-
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), w$1 = t$4({}, e$2), y$1 = t$4({}, a$1), A$1 = t$4({}, e$1), B = t$4({}, N$1);
|
|
640
|
+
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);
|
|
641
641
|
t$4({}, B);
|
|
642
642
|
function g$1(r2) {
|
|
643
643
|
return I18n.get(r2);
|
|
@@ -646,7 +646,7 @@ function x(r2) {
|
|
|
646
646
|
return I18n.get(r2) !== r2;
|
|
647
647
|
}
|
|
648
648
|
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 };
|
|
649
|
-
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$
|
|
649
|
+
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 } };
|
|
650
650
|
var n$1 = function(r2) {
|
|
651
651
|
var t2 = new FormData(r2.target);
|
|
652
652
|
return Object.fromEntries(t2);
|
|
@@ -656,10 +656,16 @@ var n$1 = function(r2) {
|
|
|
656
656
|
return r2 ? (t2 = r2, Array.isArray(t2) ? r2 : [r2]) : null;
|
|
657
657
|
var t2;
|
|
658
658
|
};
|
|
659
|
-
var
|
|
660
|
-
return Hub.listen("auth", function(
|
|
661
|
-
|
|
662
|
-
|
|
659
|
+
var r = function(e2) {
|
|
660
|
+
return Hub.listen("auth", function(t2) {
|
|
661
|
+
switch (t2.payload.event) {
|
|
662
|
+
case "tokenRefresh":
|
|
663
|
+
e2("TOKEN_REFRESH");
|
|
664
|
+
break;
|
|
665
|
+
case "signOut":
|
|
666
|
+
case "tokenRefresh_failure":
|
|
667
|
+
e2("SIGN_OUT");
|
|
668
|
+
}
|
|
663
669
|
});
|
|
664
670
|
};
|
|
665
671
|
function listCacheClear$1() {
|
|
@@ -1415,14 +1421,14 @@ var i$2 = function(r2, e2) {
|
|
|
1415
1421
|
var t2 = n$7(r2).country_code, a2 = l$1[e2];
|
|
1416
1422
|
return a2.type === "tel" && (a2 = t$4(t$4({}, a2), { dialCode: t2 })), a2;
|
|
1417
1423
|
}, c$1 = function(r2) {
|
|
1418
|
-
var e2 = r$
|
|
1424
|
+
var e2 = r$3(r2);
|
|
1419
1425
|
return t$4(t$4({}, i$2(r2, e2)), { autocomplete: "username" });
|
|
1420
1426
|
}, d$1 = function(r2) {
|
|
1421
1427
|
return { confirmation_code: t$4(t$4({}, i$2(r2, "confirmation_code")), { label: "Code *", placeholder: "Code" }) };
|
|
1422
1428
|
}, m$1 = { signIn: function(r2) {
|
|
1423
1429
|
return { username: t$4({}, c$1(r2)), password: t$4(t$4({}, i$2(r2, "password")), { autocomplete: "current-password" }) };
|
|
1424
1430
|
}, signUp: function(e2) {
|
|
1425
|
-
for (var n2 = e2.context.config, s2 = n2.loginMechanisms, d2 = n2.signUpAttributes, m2 = r$
|
|
1431
|
+
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++) {
|
|
1426
1432
|
var p2 = f2[u2];
|
|
1427
1433
|
if (o$3(p2)) {
|
|
1428
1434
|
var w2 = p2 === m2 ? c$1(e2) : i$2(e2, p2);
|
|
@@ -1440,7 +1446,7 @@ var i$2 = function(r2, e2) {
|
|
|
1440
1446
|
}
|
|
1441
1447
|
return s2;
|
|
1442
1448
|
}, resetPassword: function(r2) {
|
|
1443
|
-
var e2 = r$
|
|
1449
|
+
var e2 = r$3(r2), n2 = l$1[e2].label;
|
|
1444
1450
|
return { username: t$4(t$4({}, c$1(r2)), { label: "Enter your ".concat(n2.toLowerCase()), placeholder: "Enter your ".concat(n2.toLowerCase()) }) };
|
|
1445
1451
|
}, confirmResetPassword: function(r2) {
|
|
1446
1452
|
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" }) });
|
|
@@ -6311,14 +6317,14 @@ actions.toActionObjects = toActionObjects;
|
|
|
6311
6317
|
actions.toActivityDefinition = toActivityDefinition;
|
|
6312
6318
|
var t$2 = function(e2) {
|
|
6313
6319
|
return stop_1(e2);
|
|
6314
|
-
},
|
|
6315
|
-
} }),
|
|
6320
|
+
}, o$2 = assign_1({ attributeToVerify: function(e2) {
|
|
6321
|
+
} }), u = assign_1({ challengeName: function(e2) {
|
|
6316
6322
|
} }), a = assign_1({ requiredAttributes: function(e2) {
|
|
6317
6323
|
} }), i = assign_1({ remoteError: function(e2) {
|
|
6318
6324
|
return "";
|
|
6319
|
-
} }),
|
|
6325
|
+
} }), c = assign_1({ formValues: function(e2) {
|
|
6320
6326
|
return {};
|
|
6321
|
-
} }),
|
|
6327
|
+
} }), s$1 = assign_1({ touched: function(e2) {
|
|
6322
6328
|
return {};
|
|
6323
6329
|
} }), l = assign_1({ unverifiedAttributes: function(e2) {
|
|
6324
6330
|
} }), d = assign_1({ username: function(e2) {
|
|
@@ -6335,36 +6341,37 @@ var t$2 = function(e2) {
|
|
|
6335
6341
|
} }), b$1 = assign_1({ redirectIntent: function(e2) {
|
|
6336
6342
|
return "confirmSignUp";
|
|
6337
6343
|
} }), V = assign_1({ authAttributes: function(e2, r2) {
|
|
6338
|
-
var n2, t2,
|
|
6339
|
-
return { username: (n2 = e2.formValues[
|
|
6344
|
+
var n2, t2, o2 = e2.loginMechanisms[0];
|
|
6345
|
+
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 };
|
|
6340
6346
|
} }), p = assign_1({ validationError: function(e2, r2) {
|
|
6341
6347
|
return r2.data;
|
|
6342
6348
|
} }), g = assign_1({ remoteError: function(e2, r2) {
|
|
6343
6349
|
var n2;
|
|
6344
6350
|
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;
|
|
6345
|
-
} }),
|
|
6351
|
+
} }), _ = assign_1({ unverifiedAttributes: function(e2, r2) {
|
|
6346
6352
|
return r2.data.unverified;
|
|
6347
|
-
} }),
|
|
6353
|
+
} }), A = assign_1({ user: function(e2, r2) {
|
|
6348
6354
|
return r2.data.user || r2.data;
|
|
6349
6355
|
} }), y = assign_1({ username: function(e2, r2) {
|
|
6350
|
-
|
|
6356
|
+
var n2 = e2.formValues, t2 = n2.username, o2 = n2.country_code;
|
|
6357
|
+
return o2 && (t2 = "".concat(o2).concat(t2)), t2;
|
|
6351
6358
|
} }), E$1 = assign_1({ codeDeliveryDetails: function(e2, r2) {
|
|
6352
6359
|
return r2.data.codeDeliveryDetails;
|
|
6353
6360
|
} }), D = assign_1({ authAttributes: function(e2, r2) {
|
|
6354
6361
|
return { username: e2.formValues.username };
|
|
6355
6362
|
} }), N = assign_1({ formValues: function(r2, n2) {
|
|
6356
|
-
var t2,
|
|
6357
|
-
return t$4(t$4({}, r2.formValues), ((t2 = {})[
|
|
6363
|
+
var t2, o2 = n2.data, u2 = o2.name, a2 = o2.value;
|
|
6364
|
+
return t$4(t$4({}, r2.formValues), ((t2 = {})[u2] = a2, t2));
|
|
6358
6365
|
} }), q = assign_1({ formValues: function(r2, n2) {
|
|
6359
6366
|
return t$4(t$4({}, r2.formValues), n2.data);
|
|
6360
6367
|
} }), w = assign_1({ touched: function(r2, n2) {
|
|
6361
|
-
var t2,
|
|
6362
|
-
return t$4(t$4({}, r2.touched), ((t2 = {})["".concat(
|
|
6368
|
+
var t2, o2 = n2.data.name;
|
|
6369
|
+
return t$4(t$4({}, r2.touched), ((t2 = {})["".concat(o2)] = true, t2));
|
|
6363
6370
|
} }), P = assign_1({ formValues: function(r2, n2) {
|
|
6364
|
-
var t2,
|
|
6371
|
+
var t2, o2, u2 = r2.loginMechanisms[0], a2 = u2 === void 0 ? "username" : u2;
|
|
6365
6372
|
if (!r2.formValues.phone_number && a2 !== "phone_number")
|
|
6366
6373
|
return r2.formValues;
|
|
6367
|
-
var i2 = r2.formValues,
|
|
6374
|
+
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));
|
|
6368
6375
|
return delete d2.country_code, d2;
|
|
6369
6376
|
} });
|
|
6370
6377
|
var isArray$7 = isArray_1, isSymbol$2 = isSymbol_1;
|
|
@@ -6755,7 +6762,7 @@ var merge_1 = merge;
|
|
|
6755
6762
|
var s = function(s2, n2, m2, l2) {
|
|
6756
6763
|
return n$6(void 0, void 0, void 0, function() {
|
|
6757
6764
|
var r2, a2;
|
|
6758
|
-
return r$
|
|
6765
|
+
return r$4(this, function(o2) {
|
|
6759
6766
|
switch (o2.label) {
|
|
6760
6767
|
case 0:
|
|
6761
6768
|
return [4, Promise.all(l2.map(function(r3) {
|
|
@@ -6769,40 +6776,40 @@ var s = function(s2, n2, m2, l2) {
|
|
|
6769
6776
|
};
|
|
6770
6777
|
var o = { getAmplifyConfig: function() {
|
|
6771
6778
|
return n$6(this, void 0, void 0, function() {
|
|
6772
|
-
return r$
|
|
6779
|
+
return r$4(this, function(n2) {
|
|
6773
6780
|
return [2, Amplify.configure()];
|
|
6774
6781
|
});
|
|
6775
6782
|
});
|
|
6776
6783
|
}, getCurrentUser: function() {
|
|
6777
6784
|
return n$6(this, void 0, void 0, function() {
|
|
6778
|
-
return r$
|
|
6785
|
+
return r$4(this, function(n2) {
|
|
6779
6786
|
return [2, Auth.currentAuthenticatedUser()];
|
|
6780
6787
|
});
|
|
6781
6788
|
});
|
|
6782
6789
|
}, handleSignUp: function(t2) {
|
|
6783
6790
|
return n$6(this, void 0, void 0, function() {
|
|
6784
|
-
return r$
|
|
6791
|
+
return r$4(this, function(n2) {
|
|
6785
6792
|
return [2, Auth.signUp(t2)];
|
|
6786
6793
|
});
|
|
6787
6794
|
});
|
|
6788
6795
|
}, handleSignIn: function(t2) {
|
|
6789
6796
|
var o2 = t2.username, s2 = t2.password;
|
|
6790
6797
|
return n$6(this, void 0, void 0, function() {
|
|
6791
|
-
return r$
|
|
6798
|
+
return r$4(this, function(n2) {
|
|
6792
6799
|
return [2, Auth.signIn(o2, s2)];
|
|
6793
6800
|
});
|
|
6794
6801
|
});
|
|
6795
6802
|
}, handleConfirmSignIn: function(t2) {
|
|
6796
6803
|
var o2 = t2.user, s2 = t2.code, e2 = t2.mfaType;
|
|
6797
6804
|
return n$6(this, void 0, void 0, function() {
|
|
6798
|
-
return r$
|
|
6805
|
+
return r$4(this, function(n2) {
|
|
6799
6806
|
return [2, Auth.confirmSignIn(o2, s2, e2)];
|
|
6800
6807
|
});
|
|
6801
6808
|
});
|
|
6802
6809
|
}, handleConfirmSignUp: function(t2) {
|
|
6803
6810
|
var o2 = t2.username, s2 = t2.code;
|
|
6804
6811
|
return n$6(this, void 0, void 0, function() {
|
|
6805
|
-
return r$
|
|
6812
|
+
return r$4(this, function(n2) {
|
|
6806
6813
|
switch (n2.label) {
|
|
6807
6814
|
case 0:
|
|
6808
6815
|
return [4, Auth.confirmSignUp(o2, s2)];
|
|
@@ -6814,26 +6821,26 @@ var o = { getAmplifyConfig: function() {
|
|
|
6814
6821
|
}, handleForgotPasswordSubmit: function(t2) {
|
|
6815
6822
|
var o2 = t2.username, s2 = t2.code, e2 = t2.password;
|
|
6816
6823
|
return n$6(this, void 0, void 0, function() {
|
|
6817
|
-
return r$
|
|
6824
|
+
return r$4(this, function(n2) {
|
|
6818
6825
|
return [2, Auth.forgotPasswordSubmit(o2, s2, e2)];
|
|
6819
6826
|
});
|
|
6820
6827
|
});
|
|
6821
6828
|
}, handleForgotPassword: function(t2) {
|
|
6822
6829
|
return n$6(this, void 0, void 0, function() {
|
|
6823
|
-
return r$
|
|
6830
|
+
return r$4(this, function(n2) {
|
|
6824
6831
|
return [2, Auth.forgotPassword(t2)];
|
|
6825
6832
|
});
|
|
6826
6833
|
});
|
|
6827
6834
|
}, validateCustomSignUp: function(t2, i2) {
|
|
6828
6835
|
return n$6(this, void 0, void 0, function() {
|
|
6829
|
-
return r$
|
|
6836
|
+
return r$4(this, function(n2) {
|
|
6830
6837
|
return [2];
|
|
6831
6838
|
});
|
|
6832
6839
|
});
|
|
6833
6840
|
}, validateFormPassword: function(t2, i2, o2) {
|
|
6834
6841
|
return n$6(this, void 0, void 0, function() {
|
|
6835
6842
|
var n2, s2, e2, u2;
|
|
6836
|
-
return r$
|
|
6843
|
+
return r$4(this, function(r2) {
|
|
6837
6844
|
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) {
|
|
6838
6845
|
switch (r3) {
|
|
6839
6846
|
case "REQUIRES_LOWERCASE":
|
|
@@ -6854,13 +6861,13 @@ var o = { getAmplifyConfig: function() {
|
|
|
6854
6861
|
}, validateConfirmPassword: function(t2, i2) {
|
|
6855
6862
|
return n$6(this, void 0, void 0, function() {
|
|
6856
6863
|
var n2, o2, s2, e2;
|
|
6857
|
-
return r$
|
|
6864
|
+
return r$4(this, function(r2) {
|
|
6858
6865
|
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];
|
|
6859
6866
|
});
|
|
6860
6867
|
});
|
|
6861
6868
|
}, validatePreferredUsername: function(t2, i2) {
|
|
6862
6869
|
return n$6(this, void 0, void 0, function() {
|
|
6863
|
-
return r$
|
|
6870
|
+
return r$4(this, function(n2) {
|
|
6864
6871
|
return [2];
|
|
6865
6872
|
});
|
|
6866
6873
|
});
|
|
@@ -6871,7 +6878,7 @@ function k(k2) {
|
|
|
6871
6878
|
return { user: e2.user };
|
|
6872
6879
|
} }, rejected: { type: "final", data: function(e2, t2) {
|
|
6873
6880
|
return { intent: e2.redirectIntent, authAttributes: e2.authAttributes };
|
|
6874
|
-
} } } }, { actions: { clearAttributeToVerify:
|
|
6881
|
+
} } } }, { 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) {
|
|
6875
6882
|
var r2 = t$1(t2, "data.challengeName");
|
|
6876
6883
|
return [E$2.SMS_MFA, E$2.SOFTWARE_TOKEN_MFA].includes(r2);
|
|
6877
6884
|
}, shouldRedirectToConfirmSignUp: function(e2, t2) {
|
|
@@ -6888,7 +6895,7 @@ function k(k2) {
|
|
|
6888
6895
|
} }, services: { signIn: function(r2) {
|
|
6889
6896
|
return n$6(this, void 0, void 0, function() {
|
|
6890
6897
|
var e2, n2, i2;
|
|
6891
|
-
return r$
|
|
6898
|
+
return r$4(this, function(t2) {
|
|
6892
6899
|
switch (t2.label) {
|
|
6893
6900
|
case 0:
|
|
6894
6901
|
return e2 = r2.formValues, n2 = e2.username, i2 = e2.password, [4, D$1.handleSignIn({ username: n2, password: i2 })];
|
|
@@ -6900,7 +6907,7 @@ function k(k2) {
|
|
|
6900
6907
|
}, confirmSignIn: function(r2, n2) {
|
|
6901
6908
|
return n$6(this, void 0, void 0, function() {
|
|
6902
6909
|
var e2, n3, s2, o2;
|
|
6903
|
-
return r$
|
|
6910
|
+
return r$4(this, function(t2) {
|
|
6904
6911
|
switch (t2.label) {
|
|
6905
6912
|
case 0:
|
|
6906
6913
|
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 })];
|
|
@@ -6914,7 +6921,7 @@ function k(k2) {
|
|
|
6914
6921
|
}, forceNewPassword: function(s2, o2) {
|
|
6915
6922
|
return n$6(this, void 0, void 0, function() {
|
|
6916
6923
|
var e2, o3, a2, c2, d2, u2, l2, f2, g2;
|
|
6917
|
-
return r$
|
|
6924
|
+
return r$4(this, function(t2) {
|
|
6918
6925
|
switch (t2.label) {
|
|
6919
6926
|
case 0:
|
|
6920
6927
|
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;
|
|
@@ -6932,14 +6939,14 @@ function k(k2) {
|
|
|
6932
6939
|
}, verifyTotpToken: function(r2, n2) {
|
|
6933
6940
|
return n$6(this, void 0, void 0, function() {
|
|
6934
6941
|
var e2, n3;
|
|
6935
|
-
return r$
|
|
6942
|
+
return r$4(this, function(t2) {
|
|
6936
6943
|
return e2 = r2.user, n3 = r2.formValues.confirmation_code, [2, Auth.verifyTotpToken(e2, n3)];
|
|
6937
6944
|
});
|
|
6938
6945
|
});
|
|
6939
6946
|
}, federatedSignIn: function(r2, n2) {
|
|
6940
6947
|
return n$6(this, void 0, void 0, function() {
|
|
6941
6948
|
var e2;
|
|
6942
|
-
return r$
|
|
6949
|
+
return r$4(this, function(t2) {
|
|
6943
6950
|
switch (t2.label) {
|
|
6944
6951
|
case 0:
|
|
6945
6952
|
return e2 = n2.data.provider, [4, Auth.federatedSignIn({ provider: e2 })];
|
|
@@ -6951,7 +6958,7 @@ function k(k2) {
|
|
|
6951
6958
|
}, checkVerifiedContact: function(r2, n2) {
|
|
6952
6959
|
return n$6(this, void 0, void 0, function() {
|
|
6953
6960
|
var e2;
|
|
6954
|
-
return r$
|
|
6961
|
+
return r$4(this, function(t2) {
|
|
6955
6962
|
switch (t2.label) {
|
|
6956
6963
|
case 0:
|
|
6957
6964
|
return e2 = r2.user, [4, Auth.verifiedContact(e2)];
|
|
@@ -6963,7 +6970,7 @@ function k(k2) {
|
|
|
6963
6970
|
}, verifyUser: function(r2, n2) {
|
|
6964
6971
|
return n$6(this, void 0, void 0, function() {
|
|
6965
6972
|
var e2, n3;
|
|
6966
|
-
return r$
|
|
6973
|
+
return r$4(this, function(t2) {
|
|
6967
6974
|
switch (t2.label) {
|
|
6968
6975
|
case 0:
|
|
6969
6976
|
return e2 = r2.formValues.unverifiedAttr, [4, Auth.verifyCurrentUserAttribute(e2)];
|
|
@@ -6975,7 +6982,7 @@ function k(k2) {
|
|
|
6975
6982
|
}, confirmVerifyUser: function(r2, n2) {
|
|
6976
6983
|
return n$6(this, void 0, void 0, function() {
|
|
6977
6984
|
var e2, n3;
|
|
6978
|
-
return r$
|
|
6985
|
+
return r$4(this, function(t2) {
|
|
6979
6986
|
switch (t2.label) {
|
|
6980
6987
|
case 0:
|
|
6981
6988
|
return e2 = r2.attributeToVerify, n3 = r2.formValues.confirmation_code, [4, Auth.verifyCurrentUserAttributeSubmit(e2, n3)];
|
|
@@ -6986,7 +6993,7 @@ function k(k2) {
|
|
|
6986
6993
|
});
|
|
6987
6994
|
}, validateFields: function(r2, n2) {
|
|
6988
6995
|
return n$6(this, void 0, void 0, function() {
|
|
6989
|
-
return r$
|
|
6996
|
+
return r$4(this, function(e2) {
|
|
6990
6997
|
return [2, s(r2.formValues, r2.touched, r2.passwordSettings, [o.validateConfirmPassword])];
|
|
6991
6998
|
});
|
|
6992
6999
|
});
|
|
@@ -6997,26 +7004,25 @@ var t = createMachine({ initial: "pending", id: "signOutActor", states: { pendin
|
|
|
6997
7004
|
} } });
|
|
6998
7005
|
function E(E2) {
|
|
6999
7006
|
var h2 = E2.services;
|
|
7000
|
-
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:
|
|
7007
|
+
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) {
|
|
7001
7008
|
return !(!e2.intent || e2.intent !== "confirmPasswordReset");
|
|
7002
7009
|
} }, services: { resetPassword: function(t2) {
|
|
7003
|
-
var n2, s2;
|
|
7004
7010
|
return n$6(this, void 0, void 0, function() {
|
|
7005
7011
|
var e2;
|
|
7006
|
-
return r$
|
|
7007
|
-
return e2 =
|
|
7012
|
+
return r$4(this, function(r2) {
|
|
7013
|
+
return e2 = t2.username, [2, h2.handleForgotPassword(e2)];
|
|
7008
7014
|
});
|
|
7009
7015
|
});
|
|
7010
7016
|
}, confirmResetPassword: function(t2) {
|
|
7011
7017
|
return n$6(this, void 0, void 0, function() {
|
|
7012
7018
|
var e2, n2, s2, o2;
|
|
7013
|
-
return r$
|
|
7019
|
+
return r$4(this, function(r2) {
|
|
7014
7020
|
return e2 = t2.username, n2 = t2.formValues, s2 = n2.confirmation_code, o2 = n2.password, [2, h2.handleForgotPasswordSubmit({ username: e2, code: s2, password: o2 })];
|
|
7015
7021
|
});
|
|
7016
7022
|
});
|
|
7017
7023
|
}, validateFields: function(t2, n2) {
|
|
7018
7024
|
return n$6(this, void 0, void 0, function() {
|
|
7019
|
-
return r$
|
|
7025
|
+
return r$4(this, function(e2) {
|
|
7020
7026
|
return [2, s(t2.formValues, t2.touched, t2.passwordSettings, [o.validateConfirmPassword])];
|
|
7021
7027
|
});
|
|
7022
7028
|
});
|
|
@@ -7468,10 +7474,10 @@ function b(b2) {
|
|
|
7468
7474
|
return e2.intent && e2.intent === "confirmSignUp";
|
|
7469
7475
|
}, shouldSkipConfirm: function(e2, r2) {
|
|
7470
7476
|
return r2.data.userConfirmed;
|
|
7471
|
-
} }, actions: { clearError: i, clearFormValues:
|
|
7477
|
+
} }, 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) {
|
|
7472
7478
|
return n$6(this, void 0, void 0, function() {
|
|
7473
7479
|
var e2, s3, a2, o2, d2;
|
|
7474
|
-
return r$
|
|
7480
|
+
return r$4(this, function(r2) {
|
|
7475
7481
|
switch (r2.label) {
|
|
7476
7482
|
case 0:
|
|
7477
7483
|
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)];
|
|
@@ -7483,7 +7489,7 @@ function b(b2) {
|
|
|
7483
7489
|
}, confirmSignUp: function(i2, s2) {
|
|
7484
7490
|
return n$6(this, void 0, void 0, function() {
|
|
7485
7491
|
var e2, s3, a2, o2, d2, c2;
|
|
7486
|
-
return r$
|
|
7492
|
+
return r$4(this, function(r2) {
|
|
7487
7493
|
switch (r2.label) {
|
|
7488
7494
|
case 0:
|
|
7489
7495
|
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 })];
|
|
@@ -7497,14 +7503,14 @@ function b(b2) {
|
|
|
7497
7503
|
}, resendConfirmationCode: function(i2, s2) {
|
|
7498
7504
|
return n$6(this, void 0, void 0, function() {
|
|
7499
7505
|
var e2, s3, a2;
|
|
7500
|
-
return r$
|
|
7506
|
+
return r$4(this, function(r2) {
|
|
7501
7507
|
return e2 = i2.user, s3 = i2.authAttributes, a2 = t$1(e2, "username") || t$1(s3, "username"), [2, Auth.resendSignUp(a2)];
|
|
7502
7508
|
});
|
|
7503
7509
|
});
|
|
7504
7510
|
}, federatedSignIn: function(t2, i2) {
|
|
7505
7511
|
return n$6(this, void 0, void 0, function() {
|
|
7506
7512
|
var e2;
|
|
7507
|
-
return r$
|
|
7513
|
+
return r$4(this, function(r2) {
|
|
7508
7514
|
switch (r2.label) {
|
|
7509
7515
|
case 0:
|
|
7510
7516
|
return e2 = i2.data.provider, [4, Auth.federatedSignIn({ provider: e2 })];
|
|
@@ -7516,7 +7522,7 @@ function b(b2) {
|
|
|
7516
7522
|
}, signUp: function(n2, t2) {
|
|
7517
7523
|
return n$6(this, void 0, void 0, function() {
|
|
7518
7524
|
var e2, t3, s2, a2, o2, d2, c2;
|
|
7519
|
-
return r$
|
|
7525
|
+
return r$4(this, function(r2) {
|
|
7520
7526
|
switch (r2.label) {
|
|
7521
7527
|
case 0:
|
|
7522
7528
|
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) {
|
|
@@ -7550,14 +7556,14 @@ function b(b2) {
|
|
|
7550
7556
|
});
|
|
7551
7557
|
}, validateSignUp: function(n2, t2) {
|
|
7552
7558
|
return n$6(this, void 0, void 0, function() {
|
|
7553
|
-
return r$
|
|
7559
|
+
return r$4(this, function(e2) {
|
|
7554
7560
|
return [2, s(n2.formValues, n2.touched, n2.passwordSettings, [y2.validateFormPassword, y2.validateConfirmPassword, y2.validatePreferredUsername, y2.validateCustomSignUp])];
|
|
7555
7561
|
});
|
|
7556
7562
|
});
|
|
7557
7563
|
} } });
|
|
7558
7564
|
}
|
|
7559
7565
|
function v() {
|
|
7560
|
-
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) {
|
|
7566
|
+
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) {
|
|
7561
7567
|
return t2.actorRef;
|
|
7562
7568
|
}), setUser: assign$2({ user: function(t2, o2) {
|
|
7563
7569
|
return o2.data;
|
|
@@ -7578,8 +7584,8 @@ function v() {
|
|
|
7578
7584
|
return t3.toLowerCase();
|
|
7579
7585
|
})) !== null && d2 !== void 0 ? d2 : [], w2 = n2.data.aws_cognito_password_protection_settings || {};
|
|
7580
7586
|
g2.length === 0 && g2.push("username");
|
|
7581
|
-
var
|
|
7582
|
-
return { loginMechanisms:
|
|
7587
|
+
var S2 = t2.config, m2 = S2.loginMechanisms, h2 = S2.signUpAttributes, D2 = S2.socialProviders, I = S2.initialState;
|
|
7588
|
+
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 };
|
|
7583
7589
|
} }), spawnSignInActor: assign$2({ actorRef: function(t2, o2) {
|
|
7584
7590
|
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 });
|
|
7585
7591
|
return spawn(d2, { name: "signInActor" });
|
|
@@ -7774,7 +7780,7 @@ function createValues() {
|
|
|
7774
7780
|
if (!service.value)
|
|
7775
7781
|
return;
|
|
7776
7782
|
const { state, send: send2 } = useAuth();
|
|
7777
|
-
const facadeValues = i$
|
|
7783
|
+
const facadeValues = i$3({ send: send2, state: state.value });
|
|
7778
7784
|
for (const key of Object.keys(facade)) {
|
|
7779
7785
|
useAuthenticatorValue[key] = facadeValues[key];
|
|
7780
7786
|
}
|
|
@@ -11013,7 +11019,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
11013
11019
|
secretKey.value = await Auth.setupTOTP(user);
|
|
11014
11020
|
const issuer = (_a3 = QROR == null ? void 0 : QROR.totpIssuer) != null ? _a3 : "AWSCognito";
|
|
11015
11021
|
const username = (_b2 = QROR == null ? void 0 : QROR.totpUsername) != null ? _b2 : user.username;
|
|
11016
|
-
const totpCode = `otpauth://totp/${issuer}:${username}?secret=${secretKey.value}&issuer=${issuer}
|
|
11022
|
+
const totpCode = encodeURI(`otpauth://totp/${issuer}:${username}?secret=${secretKey.value}&issuer=${issuer}`);
|
|
11017
11023
|
qrCode.qrCodeImageSource = await browser.toDataURL(totpCode);
|
|
11018
11024
|
} catch (error2) {
|
|
11019
11025
|
logger.error(error2);
|
|
@@ -12019,7 +12025,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
12019
12025
|
}
|
|
12020
12026
|
}).unsubscribe;
|
|
12021
12027
|
onMounted(() => {
|
|
12022
|
-
unsubscribeHub =
|
|
12028
|
+
unsubscribeHub = r(send2);
|
|
12023
12029
|
});
|
|
12024
12030
|
onUnmounted(() => {
|
|
12025
12031
|
if (unsubscribeHub)
|
|
@@ -12114,7 +12120,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
12114
12120
|
const user = ref(null);
|
|
12115
12121
|
const signOut = ref();
|
|
12116
12122
|
watch(() => state.value.context, () => {
|
|
12117
|
-
const { user: u2, signOut: s2 } = i$
|
|
12123
|
+
const { user: u2, signOut: s2 } = i$3({
|
|
12118
12124
|
send: send2,
|
|
12119
12125
|
state: state.value
|
|
12120
12126
|
});
|