@aws-amplify/ui-vue 2.4.20 → 2.4.21
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 +13 -13
- package/dist/index.js +304 -142
- package/dist/src/components/alias-control.vue.d.ts +1 -1
- package/dist/src/components/authenticator-force-new-password-form-fields.vue.d.ts +1 -1
- package/dist/src/components/authenticator-force-new-password-form-fields.vue.d.ts.map +1 -1
- package/dist/src/components/authenticator-sign-up-form-fields.vue.d.ts +1 -1
- package/dist/src/components/authenticator-sign-up-form-fields.vue.d.ts.map +1 -1
- package/dist/src/components/federated-sign-in-button.vue.d.ts +1 -1
- package/dist/src/components/federated-sign-in.vue.d.ts +1 -1
- package/dist/src/components/federated-sign-in.vue.d.ts.map +1 -1
- package/dist/src/components/password-control.vue.d.ts +1 -1
- package/dist/src/components/primitives/amplify-button.vue.d.ts +1 -1
- package/dist/src/components/primitives/amplify-check-box.vue.d.ts +1 -1
- package/dist/src/components/primitives/amplify-text-field.vue.d.ts +1 -1
- package/dist/src/components/primitives/base-field-set.vue.d.ts +1 -1
- package/dist/src/components/primitives/base-field-set.vue.d.ts.map +1 -1
- package/dist/src/components/primitives/base-footer.vue.d.ts +1 -1
- package/dist/src/components/primitives/base-footer.vue.d.ts.map +1 -1
- package/dist/src/components/primitives/base-form-field.vue.d.ts +1 -1
- package/dist/src/components/primitives/base-form-fields.vue.d.ts +1 -1
- package/dist/src/components/primitives/base-form.vue.d.ts +1 -1
- package/dist/src/components/primitives/base-form.vue.d.ts.map +1 -1
- package/dist/src/components/primitives/base-heading.vue.d.ts +1 -1
- package/dist/src/components/primitives/base-two-tab-item.vue.d.ts +1 -1
- package/dist/src/components/primitives/render-info.vue.d.ts +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -56,12 +56,12 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
|
-
var t$
|
|
59
|
+
var t$2 = function(t2) {
|
|
60
60
|
var n2;
|
|
61
61
|
return null === (n2 = t2.context.actorRef) || void 0 === n2 ? void 0 : n2.getSnapshot();
|
|
62
|
-
}, n$
|
|
62
|
+
}, n$8 = function(n2) {
|
|
63
63
|
var o2;
|
|
64
|
-
return null === (o2 = t$
|
|
64
|
+
return null === (o2 = t$2(n2)) || void 0 === o2 ? void 0 : o2.context;
|
|
65
65
|
};
|
|
66
66
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
67
67
|
var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
@@ -434,12 +434,12 @@ function __spreadArray$1(to, from, pack) {
|
|
|
434
434
|
}
|
|
435
435
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
436
436
|
}
|
|
437
|
-
var r$2 = ["birthdate", "email", "family_name", "given_name", "middle_name", "name", "nickname", "phone_number", "preferred_username", "profile", "website"], n$
|
|
437
|
+
var r$2 = ["birthdate", "email", "family_name", "given_name", "middle_name", "name", "nickname", "phone_number", "preferred_username", "profile", "website"], n$7 = ["username", "email", "phone_number"], m$1 = __spreadArray$1(__spreadArray$1(__spreadArray$1([], n$7, true), r$2, true), ["confirmation_code", "password", "confirm_password"], false);
|
|
438
438
|
var r$1 = function(i2) {
|
|
439
439
|
var n2, r2 = null === (n2 = null == i2 ? void 0 : i2.context.config) || void 0 === n2 ? void 0 : n2.loginMechanisms;
|
|
440
440
|
return (null != r2 ? r2 : ["username"])[0];
|
|
441
441
|
};
|
|
442
|
-
var n$
|
|
442
|
+
var n$6 = function(e2) {
|
|
443
443
|
var t2 = function(t3) {
|
|
444
444
|
return function(r2) {
|
|
445
445
|
return e2({ type: t3, data: r2 });
|
|
@@ -447,7 +447,7 @@ var n$5 = function(e2) {
|
|
|
447
447
|
};
|
|
448
448
|
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") };
|
|
449
449
|
}, s$2 = function(e2) {
|
|
450
|
-
var n2, s2, i2, a2 = t$
|
|
450
|
+
var n2, s2, i2, a2 = t$2(e2), u2 = null !== (n2 = n$8(e2)) && void 0 !== n2 ? n2 : {}, o2 = u2.codeDeliveryDetails, c2 = u2.remoteError, d2 = u2.validationError, l2 = null !== (s2 = null == u2 ? void 0 : u2.user) && void 0 !== s2 ? s2 : null === (i2 = e2.context) || void 0 === i2 ? void 0 : i2.user, m2 = d2 && Object.keys(d2).length > 0, f2 = e2.hasTag("pending") || (null == a2 ? void 0 : a2.hasTag("pending")), h2 = function() {
|
|
451
451
|
switch (true) {
|
|
452
452
|
case e2.matches("idle"):
|
|
453
453
|
return "idle";
|
|
@@ -495,12 +495,12 @@ var n$5 = function(e2) {
|
|
|
495
495
|
}(h2);
|
|
496
496
|
return { authStatus: v2, codeDeliveryDetails: o2, error: c2, hasValidationErrors: m2, isPending: f2, route: h2, user: l2, validationErrors: d2 };
|
|
497
497
|
}, i$3 = function(t2) {
|
|
498
|
-
var r2 = t2.send, i2 = t2.state, a2 = n$
|
|
498
|
+
var r2 = t2.send, i2 = t2.state, a2 = n$6(r2), u2 = s$2(i2);
|
|
499
499
|
return __assign$2(__assign$2({}, a2), u2);
|
|
500
500
|
};
|
|
501
501
|
var r = ["+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"];
|
|
502
502
|
var e$7 = { "Account recovery requires verified contact information": "Zur\xFCcksetzen des Account ben\xF6tigt einen verifizierten Account", "Back to Sign In": "Zur\xFCck zur Anmeldung", "Change Password": "Passwort \xE4ndern", Changing: "\xC4ndern von", Code: "Code", "Confirm Password": "Passwort best\xE4tigen", "Confirm Sign Up": "Registrierung best\xE4tigen", "Confirm SMS Code": "SMS-Code best\xE4tigen", "Confirm TOTP Code": "TOTP-Code best\xE4tigen", Confirm: "Best\xE4tigen", "Confirmation Code": "Best\xE4tigungs-Code", Confirming: "Wird best\xE4tigt", "Create a new account": "Einen neuen Account erstellen", "Create Account": "Account erstellen", "Creating Account": "Account wird erstellt", "Dismiss alert": "Warnung verwerfen", Email: "Email", "Enter your code": "Geben Sie Ihren Code ein", "Enter your email": "Geben Sie Ihre Email ein", "Enter your phone number": "Geben Sie Ihre Telefonnummer ein", "Enter your username": "Geben Sie Ihren Benutzernamen ein", "Forgot your password?": "Passwort vergessen? ", "Hide password": "Passwort verbergen", Loading: "Wird geladen", "New password": "Neues Passwort", Password: "Passwort", "Phone Number": "Telefonnummer", "Resend Code": "Code erneut senden", "Reset your Password": "Zur\xFCcksetzen des Passwort", "Reset your password": "Zur\xFCcksetzen des passwort", "Send code": "Code senden", "Send Code": "Code senden", Sending: "Wird gesendet", "Setup TOTP": "TOTP einrichten", "Show password": "Passwort anzeigen", "Sign in to your account": "Melden Sie sich mit Ihrem Account an", "Sign In with Amazon": "Mit Amazon anmelden", "Sign In with Apple": "Mit Apple anmelden", "Sign In with Facebook": "Mit Facebook anmelden", "Sign In with Google": "Mit Google anmelden", "Sign in": "Anmelden", "Sign In": "Anmelden", "Signing in": "Wird angemeldet", Skip: "\xDCberspringen", Submit: "Abschicken", Submitting: "Wird gesendet", Username: "Benutzername", "Verify Contact": "Kontakt verifizieren", Verify: "Verifizieren", "An account with the given email already exists.": "Ein Account mit dieser Email existiert bereits.", "Confirm a Code": "Code best\xE4tigen", "Confirm Sign In": "Anmeldung best\xE4tigen", "Create account": "Hier registrieren", "Enter your password": "Geben Sie Ihr Passwort ein", "Forgot Password": "Passwort vergessen", "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", "It may take a minute to arrive.": "Es k\xF6nnte eine Minute dauern, bis der Code eintrifft.", "Lost your code? ": "Code verloren? ", "New Password": "Neues Passwort", "No account? ": "Kein Account? ", or: "oder", "Password attempts exceeded": "Die maximale Anzahl der fehlerhaften Anmeldeversuche wurde erreicht", "Reset password": "Passwort zur\xFCcksetzen", "Sign Out": "Abmelden", "Sign Up": "Registrieren", "User already exists": "Dieser Benutzer existiert bereits", "User does not exist": "Dieser Benutzer existiert nicht", "Username cannot be empty": "Benutzername darf nicht leer sein", "We Emailed You": "Email wurde versendet", "Your code is on the way. To log in, enter the code we emailed to": "Ihr Best\xE4tigungscode ist unterwegs. Um sich einzuloggen geben Sie den Code ein, den wir verschickt haben an", "Your code is on the way. To log in, enter the code we texted to": "Ihr Best\xE4tigungscode ist unterwegs. Um sich einzuloggen geben Sie den Code ein, den wir verschickt haben an" };
|
|
503
|
-
var n$
|
|
503
|
+
var n$5 = { "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 Password": "Confirm Password", "Confirm Sign Up": "Confirm Sign Up", "Confirm SMS Code": "Confirm SMS Code", "Confirm TOTP Code": "Confirm TOTP Code", Confirm: "Confirm", "Confirmation Code": "Confirmation Code", Confirming: "Confirming", "Create a new account": "Create a new account", "Create Account": "Create Account", "Creating Account": "Creating Account", "Dismiss alert": "Dismiss alert", Email: "Email", "Enter your code": "Enter your code", "Enter your email": "Enter your email", "Enter your phone number": "Enter your phone number", "Enter your username": "Enter your username", "Forgot your password?": "Forgot your password?", "Hide password": "Hide password", Loading: "Loading", "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 to your account": "Sign in to your account", "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", "Sign In": "Sign In", "Signing in": "Signing in", Skip: "Skip", Submit: "Submit", Submitting: "Submitting", Username: "Username", "Verify Contact": "Verify Contact", Verify: "Verify" };
|
|
504
504
|
var e$6 = { "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 Password": "Confirmar contrase\xF1a", "Confirm Sign Up": "Confirmar registro", "Confirm SMS Code": "Confirmar el c\xF3digo de SMS", "Confirm TOTP Code": "Confirmar c\xF3digo TOTP", Confirm: "Confirmar", "Confirmation Code": "C\xF3digo de confirmaci\xF3n", Confirming: "Confirmando", "Create a new account": "Crear una cuenta nueva", "Create Account": "Crear cuenta", "Creating Account": "Creando cuenta", "Dismiss alert": "Descartar alerta", Email: "Email", "Enter your code": "Ingrese el c\xF3digo", "Enter your email": "Escriba su Email", "Enter your phone number": "Ingrese el n\xFAmero de tel\xE9fono", "Enter your username": "Ingrese el nombre de usuario", "Forgot your password?": "\xBFOlvid\xF3 su contrase\xF1a?", "Hide password": "Ocultar contrase\xF1a", Loading: "Cargando", "New password": "Nueva contrase\xF1a", Password: "Contrase\xF1a", "Phone Number": "N\xFAmero de tel\xE9fono", "Resend Code": "Reenviar c\xF3digo", "Reset your password": "Restablecer su contrase\xF1a", "Reset your Password": "Restablecer su Contrase\xF1a", "Send code": "Enviar c\xF3digo", "Send Code": "Enviar c\xF3digo", Sending: "Enviando", "Setup TOTP": "Configurar TOTP", "Show password": "Mostrar contrase\xF1a", "Sign in to your account": "Iniciar sesi\xF3n en tu cuenta", "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": "Iniciar sesi\xF3n", "Sign In": "Iniciar Sesi\xF3n", "Signing in": "Iniciando sesi\xF3n", Skip: "Omitir", Submit: "Enviar", Submitting: "Enviando", Username: "Nombre de usuario", "Verify Contact": "Verificar contacto", Verify: "Verificar", "An account with the given email already exists.": "Ya existe una cuenta con el correo ingresado.", "Confirm a Code": "Confirmar un c\xF3digo", "Confirm Sign In": "Confirmar inicio de sesi\xF3n", "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", "Loading...": "Cargando...", "New Password": "Nueva contrase\xF1a", or: "o", "Resend a Code": "Reenviar un c\xF3digo", "Sign Out": "Cerrar sesi\xF3n", "Sign Up with Amazon": "Crear cuenta con Amazon", "Sign Up with Apple": "Crear cuenta con Apple", "Sign Up with Facebook": "Crear cuenta con Facebook", "Sign Up with Google": "Crear cuenta con Google", "Sign Up": "Crear cuenta", "User already exists": "El usuario ya existe", "User does not exist": "El usuario no existe", "Username cannot be empty": "El nombre de usuario no puede estar vac\xEDo", "Your passwords must match": "Las contrase\xF1as deben coincidir" };
|
|
505
505
|
var e$5 = { "Account recovery requires verified contact information": "La r\xE9cup\xE9ration du compte n\xE9cessite des informations de contact v\xE9rifi\xE9es", "Back to Sign In": "Retour \xE0 la connexion", "Change Password": "Modifier le mot de passe", Changing: "Modification en cours", Code: "Code", "Confirm Password": "Confirmez le mot de passe", "Confirm Sign Up": "Confirmer l'inscription", "Confirm SMS Code": "Confirmer le code SMS", "Confirm TOTP Code": "Confirmer le code TOTP", Confirm: "Confirmer", "Confirmation Code": "Code de confirmation", Confirming: "Confirmation", "Create a new account": "Cr\xE9er un nouveau compte", "Create Account": "Cr\xE9er un compte", "Creating Account": "Cr\xE9ation d'un compte", "Dismiss alert": "Supprimer l'alerte", Email: "Email", "Enter your code": "Saisissez cotre code de confirmation", "Enter your email": "Saisissez votre adresse email", "Enter your phone number": "Saisissez votre num\xE9ro de t\xE9l\xE9phone", "Enter your username": "Saisissez votre nom d'utilisateur", "Forgot your password?": "Mot de passe oubli\xE9 ? ", "Hide password": "Masquer le mot de passe", Loading: "Chargement en cours", "New password": "Nouveau mot de passe", Password: "Mot de passe", "Phone Number": "Num\xE9ro de t\xE9l\xE9phone", "Resend Code": "Renvoyer le code", "Reset your Password": "R\xE9initialiser votre mot de passe", "Reset your password": "R\xE9initialisez votre mot de passe", "Send code": "Envoyer le code", "Send Code": "M'envoyer un code", Sending: "Envoi en cours", "Setup TOTP": "Configuration de TOTP", "Show password": "Afficher le mot de passe", "Sign in to your account": "Connexion \xE0 votre compte", "Sign In with Amazon": "Se connecter avec Amazon", "Sign In with Apple": "Se connecter avec Apple", "Sign In with Facebook": "Se connecter avec Facebook", "Sign In with Google": "Se connecter avec Google", "Sign in": "Se connecter", "Sign In": "Se connecter", "Signing in": "Connexion en cours", Skip: "Passer", Submit: "Soumettre", Submitting: "Envoi en cours", Username: "Nom d'utilisateur", "Verify Contact": "V\xE9rifier le contact", Verify: "V\xE9rifier", "An account with the given email already exists.": "Un utilisateur avec cette adresse email existe d\xE9j\xE0.", Change: "Modifier", "Confirm a Code": "Confirmer un code", "Confirm Sign In": "Confirmer la connexion", "Create account": "Cr\xE9er un compte", "Enter your password": "Saisissez votre mot de passe", "Forgot Password": "Mot de passe oubli\xE9", "Have an account? ": "D\xE9j\xE0 un compte ? ", Hello: "Bonjour", "Incorrect username or password": "Identifiant ou mot de passe incorrect", "Invalid password format": "Format de mot de passe invalide", "Invalid phone number format": "Format de num\xE9ro de t\xE9l\xE9phone invalide. Veuillez utiliser un format +12345678900", "Loading...": "Chargement...", "Lost your code? ": "Vous avez perdu votre code ? ", "Network error": "Erreur r\xE9seau", "New Password": "Nouveau mot de passe", "No account? ": "Pas de compte ? ", or: "ou", "Resend a Code": "Renvoyer un code", "Reset password": "R\xE9initialisez votre mot de passe", Send: "Envoyer", "Sign In with AWS": "Se connecter avec AWS", "Sign Out": "D\xE9connexion", "Sign Up": "S'inscrire", SMS: "SMS", "User already exists": "L'utilisateur existe d\xE9j\xE0", "User does not exist": "L'utilisateur n'existe pas", "Username cannot be empty": "Le nom d'utilisateur doit \xEAtre renseign\xE9", "Username/client id combination not found.": "L'utilisateur n'existe pas" };
|
|
506
506
|
var o$7 = { "Account recovery requires verified contact information": "Il ripristino dell'account richiede informazioni di contatto verificate", "Back to Sign In": "Torna alla schermata di accesso", "Change Password": "Cambia la password", Changing: "Modifica in corso", Code: "Codice", "Confirm Password": "Conferma la password", "Confirm Sign Up": "Conferma registrazione", "Confirm SMS Code": "Conferma codice SMS", "Confirm TOTP Code": "Conferma codice TOTP", Confirm: "Conferma", "Confirmation Code": "Codice di verifica", Confirming: "Conferma in corso", "Create a new account": "Crea un nuovo account", "Create Account": "Crea Account", "Creating Account": "Creazione account in corso", "Dismiss alert": "Licenziare l'allerta", Email: "Email", "Enter your code": "Inserisci il tuo codice", "Enter your email": "Inserisci la tua e-mail", "Enter your phone number": 'Inserisci il tuo numero di telefono"', "Enter your username": "Inserisci il tuo nome utente", "Forgot your password?": "Password dimenticata?", "Hide password": "Nascondi password", Loading: "Caricamento in corso", "New password": "Nuova password", Password: "Password", "Phone Number": "Numero di telefono", "Resend Code": "Rispedisci codice", "Reset your Password": "Reimposta la tua Password", "Reset your password": "Reimposta la tua password", "Send code": "Invia codice", "Send Code": "Invia codice", Sending: "Invio in corso", "Setup TOTP": "Configura TOTP", "Show password": "Mostra password", "Sign in to your account": "Accedi al tuo account", "Sign In with Amazon": "Accedi con Amazon", "Sign In with Apple": "Accedi con Apple", "Sign In with Facebook": "Accedi con Facebook", "Sign In with Google": "Accedi con Google", "Sign in": "Accesso", "Sign In": "Accesso", "Signing in": "Accesso in corso", Skip: "Salta", Submit: "Invia", Submitting: "Invio in corso", Username: "Nome utente", "Verify Contact": "Verifica contatto", Verify: "Verifica", "An account with the given email already exists.": "Questa email \xE8 gi\xE0 utilizzata da un'altro account.", "Confirm a Code": "Conferma un codice", "Confirm Sign In": "Conferma l'accesso", "Create account": "Crea account", "Enter your password": "Inserisci la tua password", "Forgot Password": "Password dimenticata", "Have an account? ": "Gi\xE0 registrato?", "Incorrect username or password": "Nome utente o password errati", "Invalid password format": "Formato della password non valido", "Invalid phone number format": "Formato del numero di telefono non valido", "Lost your code?": "Codice smarrito?", "New Password": "Nuova password", "No account? ": "Non hai un account?", or: "o", "Password attempts exceeded": "Il numero massimo di tentativi di accesso falliti \xE8 stato raggiunto", "Reset password": "Reimposta password", "Sign Out": "Esci", "Sign Up": "Registrati", "User already exists": "Utente gi\xE0 esistente", "User does not exist": "Utente inesistente", "Username cannot be empty": "Il nome utente non pu\xF2 essere vuoto" };
|
|
@@ -510,12 +510,12 @@ var e$2 = { "Account recovery requires verified contact information": "Accounthe
|
|
|
510
510
|
var o$6 = { "Account recovery requires verified contact information": "Odzyskanie konta wymaga zweryfikowanych danych kontaktowych", "Back to Sign In": "Powr\xF3t do logowania", "Change Password": "Zmie\u0144 has\u0142o", Changing: "Zmienianie", Code: "Kod", "Confirm Password": "Potwierd\u017A 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 a new account": "Utw\xF3rz nowe konto", "Create Account": "Utw\xF3rz konto", "Creating Account": "Tworzenie konta", "Dismiss alert": "Odrzu\u0107 alert", Email: "E-mail", "Enter your code": "Wprowad\u017A sw\xF3j kod", "Enter your email": "Wpisz sw\xF3j adres e-mail", "Enter your phone number": "Wpisz sw\xF3j numer telefonu", "Enter your username": "Wprowad\u017A swoj\u0105 nazw\u0119 u\u017Cytkownika", "Forgot your password?": "Zapomnia\u0142e\u015B has\u0142a? ", "Hide password": "Ukryj has\u0142o", Loading: "\u0141adowanie", "New password": "Nowe has\u0142o", Password: "Has\u0142o", "Phone Number": "Numer telefonu", "Resend Code": "Wy\u015Blij kod ponownie", "Reset your password": "Zresetuj swoje has\u0142o", "Reset your Password": "Zresetuj swoje has\u0142o", "Send code": "Wy\u015Blij kod", "Send Code": "Zresetuj has\u0142o", Sending: "Wysy\u0142anie", "Setup TOTP": "Konfiguruj TOTP", "Show password": "Poka\u017C has\u0142o", "Sign in to your account": "Zaloguj si\u0119 na swoje konto", "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": "Logowanie", "Sign in": "Zaloguj", "Signing in": "Logowanie", Skip: "Pomi\u0144", Submit: "Wy\u015Blij", Submitting: "Wysy\u0142anie", Username: "Nazwa u\u017Cytkownika", "Verify Contact": "Weryfikacja danych kontaktowych", Verify: "Zweryfikuj", Birthdate: "Data urodzenia", "Family Name": "Nazwisko", "Given Name": "Pierwsze imi\u0119", "Middle Name": "Drugie imi\u0119", Name: "Imi\u0119 i nazwisko", Nickname: "Pseudonim", "Preferred Username": "Preferowana nazwa u\u017Cytkownika", Profile: "Profil", Website: "Strona internetowa" };
|
|
511
511
|
var o$5 = { "Account recovery requires verified contact information": "A recupera\xE7\xE3o da conta requer informa\xE7\xF5es de contato verificadas", "Back to Sign In": "Voltar para Entrar", "Change Password": "Mudar senha", Changing: "Mudando", Code: "C\xF3digo", "Confirm Password": "Confirme a 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 a new account": "Criar uma nova conta", "Create Account": "Criar Conta", "Creating Account": "Criando conta", "Dismiss alert": "Descartar alerta", Email: "O email", "Enter your code": "Insira seu c\xF3digo", "Enter your email": "Digite seu e-mail", "Enter your phone number": "Digite seu n\xFAmero de telefone", "Enter your username": "entre com seu nome de usu\xE1rio", "Forgot your password?": "Esqueceu sua senha? ", "Hide password": "Esconder a senha", Loading: "Carregando", "New password": "Nova Senha", Password: "Senha", "Phone Number": "N\xFAmero de telefone", "Resend Code": "Reenviar c\xF3digo", "Reset your password": "Redefina sua senha", "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 to your account": "Fa\xE7a login em sua conta", "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": "Entrar", "Sign In": "Entrar", "Signing in": "Entrando", Skip: "Pular", Submit: "Enviar", Submitting: "Enviando", Username: "Nome do usu\xE1rio", "Verify Contact": "Verificar contato", Verify: "Verificar" };
|
|
512
512
|
var o$4 = { "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", Changing: "\u6B63\u5728\u4FEE\u6539", Code: "\u786E\u8BA4\u7801", "Confirm Password": "\u786E\u8BA4\u5BC6\u7801", "Confirm Sign Up": "\u786E\u8BA4\u6CE8\u518C", "Confirm SMS Code": "\u786E\u8BA4\u77ED\u4FE1\u9A8C\u8BC1\u7801", "Confirm TOTP Code": "\u786E\u8BA4 TOTP \u4EE3\u7801", Confirm: "\u786E\u8BA4", "Confirmation Code": "\u786E\u8BA4\u7801", Confirming: "\u6B63\u5728\u786E\u8BA4", "Create a new account": "\u521B\u5EFA\u65B0\u8D26\u6237", "Create Account": "\u521B\u5EFA\u8D26\u6237", "Creating Account": "\u6B63\u5728\u521B\u5EFA\u8D26\u6237", "Dismiss alert": "\u5173\u95ED\u8B66\u62A5", Email: "\u90AE\u7BB1", "Enter your code": "\u8F93\u5165\u9A8C\u8BC1\u7801", "Enter your email": "\u8F93\u5165\u7535\u5B50\u90AE\u4EF6", "Enter your phone number": "\u8F93\u5165\u7535\u8BDD\u53F7\u7801", "Enter your username": "\u8F93\u5165\u7528\u6237\u540D", "Forgot your password?": "\u5FD8\u8BB0\u5BC6\u7801\u4E86\uFF1F", "Hide password": "\u9690\u85CF\u5BC6\u7801", Loading: "\u6B63\u5728\u52A0\u8F7D", "New password": "\u65B0\u5BC6\u7801", Password: "\u5BC6\u7801", "Phone Number": "\u7535\u8BDD", "Resend Code": "\u91CD\u53D1\u9A8C\u8BC1\u7801", "Reset your password": "\u91CD\u7F6E\u5BC6\u7801", "Reset your Password": "\u91CD\u7F6E\u5BC6\u7801", "Send Code": "\u53D1\u9001\u786E\u8BA4\u7801", "Send code": "\u53D1\u9001\u9A8C\u8BC1\u7801", Sending: "\u6B63\u5728\u53D1\u9001", "Setup TOTP": "\u8BBE\u7F6E TOTP", "Show password": "\u663E\u793A\u5BC6\u7801", "Sign in to your account": "\u767B\u5F55\u8D26\u6237", "Sign In with Amazon": "\u901A\u8FC7 Amazon \u767B\u5F55", "Sign In with Apple": "\u901A\u8FC7 Apple \u767B\u5F55", "Sign In with Facebook": "\u901A\u8FC7 Facebook \u767B\u5F55", "Sign In with Google": "\u901A\u8FC7 Google \u767B\u5F55", "Sign in": "\u767B\u5F55", "Sign In": "\u767B\u5F55", "Signing in": "\u6B63\u5728\u767B\u5F55", Skip: "\u8DF3\u8FC7", Submit: "\u63D0\u4EA4", Submitting: "\u6B63\u5728\u63D0\u4EA4", Username: "\u7528\u6237\u540D", "Verify Contact": "\u9A8C\u8BC1\u8054\u7CFB\u65B9\u5F0F", Verify: "\u9A8C\u8BC1", "Confirm a Code": "\u786E\u8BA4\u7801", "Confirm Sign In": "\u786E\u8BA4\u767B\u5F55", "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", "Resend a Code": "\u91CD\u53D1\u786E\u8BA4\u7801", "Sign Out": "\u9000\u51FA", "Sign Up": "\u6CE8\u518C", "User already exists": "\u7528\u6237\u5DF2\u7ECF\u5B58\u5728", "User does not exist": "\u7528\u6237\u4E0D\u5B58\u5728" };
|
|
513
|
-
var n$
|
|
513
|
+
var n$4 = { "Account recovery requires verified contact information": "F\xF6r att \xE5terst\xE4lla kontot beh\xF6ver du ett verifierat konto", "Back to Sign In": "Tillbaka till inloggningen", "Change Password": "Byt l\xF6senord", Changing: "\xC4ndra", Code: "Kod", "Confirm Password": "Bekr\xE4fta l\xF6senord", "Confirm Sign Up": "Bekr\xE4fta registrering", "Confirm SMS Code": "Bekr\xE4fta SMS-kod", "Confirm TOTP Code": "Bekr\xE4fta TOTP-kod", Confirm: "Bekr\xE4fta", "Confirmation Code": "Verifikationskod", Confirming: "Bekr\xE4ftar", "Create a new account": "Skapa ett nytt konto", "Create Account": "Skapa konto", "Creating Account": "Skapar konto", "Dismiss alert": "Avvisa varning", Email: "E-post", "Enter your code": "Skriv din kod", "Enter your email": "Fyll i din e-post", "Enter your phone number": "Ange ditt telefonnummer", "Enter your username": "Ange ditt anv\xE4ndarnamn", "Forgot your password?": "Gl\xF6mt ditt l\xF6senord? ", "Hide password": "D\xF6lj l\xF6senord", Loading: "Laddar", "New password": "Nytt l\xF6senord", Password: "L\xF6senord", "Phone Number": "Telefonnummer", "Resend Code": "Skicka koden igen", "Reset your password": "\xC5terst\xE4ll ditt l\xF6senord", "Reset your Password": "\xC5terst\xE4ll ditt l\xF6senord", "Send code": "Skicka kod", "Send Code": "Skicka kod", Sending: "Skickar", "Setup TOTP": "Konfigurera TOTP", "Show password": "Visa l\xF6senord", "Sign in to your account": "Logga in till ditt konto", "Sign In with Amazon": "Logga in med Amazon", "Sign In with Apple": "Logga in med Apple", "Sign In with Facebook": "Logga in med Facebook", "Sign In with Google": "Logga in med Google", "Sign in": "Logga in", "Sign In": "Logga in", "Signing in": "Loggar in", Skip: "Hoppa \xF6ver", Submit: "Skicka", Submitting: "Skickar in", Username: "Anv\xE4ndarnamn", "Verify Contact": "Verifiera kontakt", Verify: "Verifiera", "An account with the given email already exists.": "Det finns redan ett konto med denna e-postadress", "Confirm a Code": "Bekr\xE4fta koden", "Confirm Sign In": "Bekr\xE4fta inloggning", "Create account": "Skapa konto", "Enter your password": "Ange ditt l\xF6senord", "Forgot Password": "Gl\xF6mt l\xF6senordet", "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 attempts exceeded": "Maximalt antal felaktiga inloggningsf\xF6rs\xF6k har uppn\xE5tts", "Reset password": "\xC5terst\xE4ll l\xF6senord", "Sign Out": "Logga ut", "Sign Up": "Registrering", "User already exists": "Anv\xE4ndaren finns redan", "User does not exist": "Anv\xE4ndaren finns inte", "Username cannot be empty": "Anv\xE4ndarnamnet kan inte vara tomt", "We Emailed You": "Vi har skickat e-post till dig" };
|
|
514
514
|
var a$3 = { "Account recovery requires verified contact information": "Pemulihan akun memerlukan informasi kontak terverifikasi", "Back to Sign In": "Kembali ke Masuk", "Change Password": "Ubah kata sandi", Changing: "Mengubah", Code: "Kode", "Confirm Password": "Konfirmasi kata sandi", "Confirm Sign Up": "Konfirmasi Pendaftaran", "Confirm SMS Code": "Konfirmasi Kode SMS", "Confirm TOTP Code": "Konfirmasi Kode TOTP", Confirm: "Konfirmasi", "Confirmation Code": "Kode Konfirmasi", Confirming: "Mengkonfirmasi", "Create a new account": "Buat akun baru", "Create Account": "Buat Akun", "Creating Account": "Membuat Akun", "Dismiss alert": "Hentikan pemberitahuan", Email: "Email", "Enter your code": "Masukkan kode anda", "Enter your email": "Masukkan email anda", "Enter your phone number": "Masukkan nomor telepon anda", "Enter your username": "Masukkan nama akun anda", "Forgot your password?": "Lupa kata sandi? ", "Hide password": "Sembunyikan kata sandi", Loading: "Memuat", "New password": "Kata sandi baru", Password: "Kata sandi", "Phone Number": "Nomor telepon", "Resend Code": "Kirim ulang kodenya", "Reset your Password": "Reset Kata Sandi", "Reset your password": "Ubah kata sandi anda", "Send code": "Kirim kode", "Send Code": "Kirim Kode", Sending: "Mengirim", "Setup TOTP": "Siapkan TOTP", "Show password": "Tampilkan kata sandi", "Sign in to your account": "Masuk akun anda", "Sign In with Amazon": "Masuk dengan Amazon", "Sign In with Apple": "Masuk dengan Apple", "Sign In with Facebook": "Masuk dengan Facebook", "Sign In with Google": "Masuk dengan Google", "Sign in": "Masuk", "Sign In": "Masuk", "Signing in": "Memasuki", Skip: "Lewati", Submit: "Ajukan", Submitting: "Mengajukan", Username: "Nama akun", "Verify Contact": "Verifikasi Kontak", Verify: "Verifikasi", "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.", "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", "Confirm a Code": "Konfirmasi kode", "Create account": "Buat akun", "Enter your password": "Masukkan kata sandi anda", "Forgot 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", "No account? ": "Tidak ada akun?", or: "atau", "Password did not conform with policy: Password not long enough": "Kata sandi tidak sesuai dengan aturan: Kata sandi kurang panjang", "Resend a Code": "Renvoyer un code", "Reset password": "Ubah kata sandi anda", Send: "Kirim", "Sign In with AWS": "Masuk dengan AWS", "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", SMS: "SMS", "User already exists": "Akun sudah terdaftar", "User does not exist.": "Akun tidak terdaftar.", "User is disabled.": "Akun dinonaktifkan.", "Username cannot be empty": "Nama akun tidak boleh kosong", "Username/client id combination not found.": "Nama akun atau id tidak ditemukan.", "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" };
|
|
515
515
|
var e$1 = { "Account recovery requires verified contact information": "Hesap kurtarma, do\u011Frulanm\u0131\u015F ileti\u015Fim bilgilerini gerektirir", "Back to Sign In": "Oturum A\xE7maya Geri D\xF6n", "Change Password": "\u015Eifreyi De\u011Fi\u015Ftir", Changing: "De\u011Fi\u015Ftiriliyor", Code: "Kod", "Confirm Password": "\u015Eifreyi 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", Confirm: "Do\u011Frula", "Confirmation Code": "Do\u011Frulama Kodu", Confirming: "Do\u011Frulan\u0131yor", "Create a new account": "Yeni bir hesap olu\u015Ftur", "Create Account": "Hesap Olu\u015Ftur", "Creating Account": "Hesap Olu\u015Fturuluyor", "Dismiss alert": "Uyar\u0131y\u0131 reddet", Email: "E-posta", "Enter your code": "Kodu girin", "Enter your email": "E-posta adresinizi girin", "Enter your phone number": "Telefon numaran\u0131z\u0131 girin", "Enter your username": "Kullan\u0131c\u0131 ad\u0131n\u0131z\u0131 girin", "Forgot your password?": "\u015Eifrenizi mi unuttunuz?", "Hide password": "\u015Eifreyi gizle", Loading: "Y\xFCkleniyor", "New password": "Yeni \u015Fifre", Password: "\u015Eifre", "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 to your account": "Hesab\u0131n\u0131zda oturum a\xE7\u0131n", "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": "Oturum a\xE7", "Sign In": "Oturum A\xE7", "Signing in": "Oturum a\xE7\u0131l\u0131yor", Skip: "Atla", Submit: "G\xF6nder", Submitting: "G\xF6nderiliyor", Username: "Kullan\u0131c\u0131 ad\u0131", "Verify Contact": "Ki\u015Fiyi Do\u011Frula", Verify: "Do\u011Frula", "An account with the given email already exists.": "Bu e-postaya ait zaten bir hesap var.", "Confirm Sign In": "Oturum A\xE7may\u0131 Do\u011Frula", "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? ", "No account? ": "Hesab\u0131n\u0131z yok mu? ", or: "veya", "Password attempts exceeded": "Maksimum oturum a\xE7ma giri\u015Fimi a\u015F\u0131ld\u0131", "Sign Out": "\xC7\u0131k\u0131\u015F yap", "Sign Up": "Kay\u0131t Ol", "User already exists": "Bu kullan\u0131c\u0131 zaten var", "User does not exist": "B\xF6yle bir kullan\u0131c\u0131 mevcut de\u011Fil", "Username cannot be empty": "Kullan\u0131c\u0131 ad\u0131 bo\u015F olamaz" };
|
|
516
516
|
var o$3 = { "Account recovery requires verified contact information": "\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u0443\u0447\u0435\u0442\u043D\u043E\u0439 \u0437\u0430\u043F\u0438\u0441\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u043A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438", "Back to Sign In": "\u041D\u0430\u0437\u0430\u0434, \u0447\u0442\u043E\u0431\u044B \u0432\u043E\u0439\u0442\u0438", "Change Password": "\u0438\u0437\u043C\u0435\u043D\u044F\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C", Changing: "\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435", Code: "\u041A\u043E\u0434", "Confirm Password": "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435 \u043F\u0430\u0440\u043E\u043B\u044F", "Confirm Sign Up": "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F", "Confirm SMS Code": "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435 CMC-\u041A\u043E\u0434", "Confirm TOTP Code": "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435 TOTP-\u041A\u043E\u0434", Confirm: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0442\u044C", "Confirmation Code": "\u043A\u043E\u0434 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F", Confirming: "\u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435", "Create a new account": "\u0421\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C \u043D\u043E\u0432\u0443\u044E \u0443\u0447\u0435\u0442\u043D\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C", "Create Account": "\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u0443\u0447\u0435\u0442\u043D\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C", "Creating Account": "\u0441\u043E\u0437\u0434\u0430\u043D\u0438\u0435 \u0443\u0447\u0435\u0442\u043D\u0430\u044F \u0437\u0430\u043F\u0438\u0441\u044C", "Dismiss alert": "\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435", Email: "\u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", "Enter your code": "\u0432\u0432\u0435\u0441\u0442\u0438 \u0432\u0430\u0448 \u041A\u043E\u0434", "Enter your email": "\u0432\u0432\u0435\u0441\u0442\u0438 \u0432\u0430\u0448 \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", "Enter your phone number": "\u0432\u0432\u0435\u0441\u0442\u0438 \u0432\u0430\u0448 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430", "Enter your username": "\u0432\u0432\u0435\u0441\u0442\u0438 \u0432\u0430\u0448 \u0438\u043C\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F", "Forgot your password?": "\u0417\u0430\u0431\u044B\u043B\u0438 \u0432\u0430\u0448 \u043F\u0430\u0440\u043E\u043B\u044C?", "Hide password": "\u0421\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C", Loading: "\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430", "New password": "\u041D\u043E\u0432\u044B\u0439 \u043F\u0430\u0440\u043E\u043B\u044C", Password: "\u041F\u0430\u0440\u043E\u043B\u044C", "Phone Number": "\u041D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430", "Resend Code": "\u041E\u0442\u043F\u0440\u0430\u0432\u044C \u0435\u0449\u0435 \u0440\u0430\u0437 \u041A\u043E\u0434", "Reset your password": "\u0441\u0431\u0440\u043E\u0441 \u0432\u0430\u0448 \u043F\u0430\u0440\u043E\u043B\u044C", "Reset your Password": "\u0441\u0431\u0440\u043E\u0441 \u0432\u0430\u0448 \u041F\u0430\u0440\u043E\u043B\u044C", "Send code": "\u041E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C \u041A\u043E\u0434", "Send Code": "\u041E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C \u041A\u043E\u0434", Sending: "\u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0430", "Setup TOTP": "\u041D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044C TOTP", "Show password": "\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C", "Sign in to your account": "\u0437\u043D\u0430\u043A \u0432 \u0441\u0432\u043E\u0439 \u0430\u043A\u043A\u0430\u0443\u043D\u0442", "Sign In with Amazon": "\u0437\u043D\u0430\u043A \u0432 \u0441 Amazon", "Sign In with Apple": "\u0437\u043D\u0430\u043A \u0432 \u0441 Apple", "Sign In with Facebook": "\u0437\u043D\u0430\u043A \u0432 \u0441 Facebook", "Sign In with Google": "\u0437\u043D\u0430\u043A \u0432 \u0441 Google", "Sign in": "\u0437\u043D\u0430\u043A \u0432", "Sign In": "\u0437\u043D\u0430\u043A \u0432", "Signing in": "\u043F\u043E\u0434\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u0432", Skip: "\u041F\u0440\u043E\u043F\u0443\u0441\u043A\u0430\u0442\u044C", Submit: "\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043B\u044F\u0442\u044C \u043D\u0430 \u0440\u0430\u0441\u0441\u043C\u043E\u0442\u0440\u0435\u043D\u0438\u0435", Submitting: "\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0432", Username: "\u0418\u043C\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F", "Verify Contact": "\u041F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u043A\u043E\u043D\u0442\u0430\u043A\u0442", Verify: "\u041F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C" };
|
|
517
517
|
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" };
|
|
518
|
-
var d$2 = __assign$2({}, e$7), v$1 = __assign$2({}, n$
|
|
518
|
+
var d$2 = __assign$2({}, e$7), v$1 = __assign$2({}, n$5), x$1 = __assign$2({}, e$6), k$2 = __assign$2({}, e$5), z = __assign$2({}, o$7), T = __assign$2({}, e$4), b$2 = __assign$2({}, e$3), g$1 = __assign$2({}, e$2), q$1 = __assign$2({}, o$6), w$1 = __assign$2({}, o$5), y$1 = __assign$2({}, o$4), A$1 = __assign$2({}, n$4), B = __assign$2({}, a$3), C$1 = __assign$2({}, e$1), E$2 = __assign$2({}, o$3), F = __assign$2({}, N$1);
|
|
519
519
|
__assign$2({}, F);
|
|
520
520
|
function b$1(r2) {
|
|
521
521
|
return I18n.get(r2);
|
|
@@ -525,7 +525,7 @@ function h$1(r2) {
|
|
|
525
525
|
}
|
|
526
526
|
var k$1 = { de: d$2, en: v$1, es: x$1, fr: k$2, id: B, it: z, ja: T, kr: b$2, nl: g$1, pl: q$1, pt: w$1, zh: y$1, sv: A$1, tr: C$1, ru: E$2 };
|
|
527
527
|
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, 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 } }, a$2 = ["^", "$", "*", ".", "[", "]", "{", "}", "(", ")", "?", '"', "!", "@", "#", "%", "&", "/", "\\", ",", ">", "<", "'", ":", ";", "|", "_", "~", "`", "=", "+", "-", " "];
|
|
528
|
-
var n$
|
|
528
|
+
var n$3 = function(r2) {
|
|
529
529
|
var t2 = new FormData(r2.target);
|
|
530
530
|
return Object.fromEntries(t2);
|
|
531
531
|
}, u$3 = function(r2) {
|
|
@@ -554,7 +554,7 @@ var o$1 = function(t2, n2) {
|
|
|
554
554
|
});
|
|
555
555
|
};
|
|
556
556
|
var i$2 = function(r2, e2) {
|
|
557
|
-
var a2 = n$
|
|
557
|
+
var a2 = n$8(r2).country_code, s2 = l$1[e2];
|
|
558
558
|
return "tel" === s2.type && (s2 = __assign$2(__assign$2({}, s2), { dialCode: a2 })), s2;
|
|
559
559
|
}, c$1 = function(r2) {
|
|
560
560
|
var e2 = r$1(r2);
|
|
@@ -576,7 +576,7 @@ var i$2 = function(r2, e2) {
|
|
|
576
576
|
}, confirmSignUp: function(r2) {
|
|
577
577
|
return { confirmation_code: __assign$2(__assign$2({}, i$2(r2, "confirmation_code")), { placeholder: "Enter your code" }) };
|
|
578
578
|
}, confirmSignIn: d$1, forceNewPassword: function(n2) {
|
|
579
|
-
for (var t2 = t$
|
|
579
|
+
for (var t2 = t$2(n2).context.requiredAttributes, a2 = {}, c2 = 0, d2 = Array.from(new Set(__spreadArray$1(["password", "confirm_password"], t2, true))); c2 < d2.length; c2++) {
|
|
580
580
|
var u2 = d2[c2];
|
|
581
581
|
u$3(u2) ? a2[u2] = __assign$2({}, i$2(n2, u2)) : console.debug("Authenticator does not have a default implementation for ".concat(u2, ". Customize ForceNewPassword FormFields to add your own."));
|
|
582
582
|
}
|
|
@@ -1338,13 +1338,13 @@ function cloneDeep(value) {
|
|
|
1338
1338
|
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
1339
1339
|
}
|
|
1340
1340
|
var cloneDeep_1 = cloneDeep;
|
|
1341
|
-
var t$
|
|
1341
|
+
var t$1 = function(e2) {
|
|
1342
1342
|
for (var t2 = __assign$2({}, e2), n2 = 0, i2 = Object.entries(e2); n2 < i2.length; n2++) {
|
|
1343
1343
|
var l2 = i2[n2], c2 = l2[0], u2 = l2[1], a2 = u2.label, f2 = u2.placeholder;
|
|
1344
1344
|
t2[c2] = __assign$2(__assign$2({}, u2), { label: a2 ? b$1(a2) : void 0, placeholder: f2 ? b$1(f2) : void 0 });
|
|
1345
1345
|
}
|
|
1346
1346
|
return t2;
|
|
1347
|
-
}, n$
|
|
1347
|
+
}, n$2 = function(r2) {
|
|
1348
1348
|
return Object.entries(r2).sort(function(r3, e2) {
|
|
1349
1349
|
return (r3[1].order || Number.MAX_VALUE) - (e2[1].order || Number.MAX_VALUE);
|
|
1350
1350
|
}).filter(function(r3) {
|
|
@@ -1359,13 +1359,13 @@ var t$2 = function(e2) {
|
|
|
1359
1359
|
};
|
|
1360
1360
|
var e = function(r2, i2) {
|
|
1361
1361
|
var n2 = (0, u$2[r2])(i2);
|
|
1362
|
-
return t$
|
|
1362
|
+
return t$1(n2);
|
|
1363
1363
|
}, u$1 = function(o2, t2) {
|
|
1364
|
-
var n2, u2, f2 = e(o2, t2), l2 = (null === (u2 = null === (n2 = t$
|
|
1364
|
+
var n2, u2, f2 = e(o2, t2), l2 = (null === (u2 = null === (n2 = t$2(t2).context) || void 0 === n2 ? void 0 : n2.formFields) || void 0 === u2 ? void 0 : u2[o2]) || {}, v2 = i$1(f2, l2);
|
|
1365
1365
|
return delete v2.QR, v2;
|
|
1366
1366
|
}, f$2 = function(r2, o2) {
|
|
1367
1367
|
var t2 = u$1(r2, o2);
|
|
1368
|
-
return n$
|
|
1368
|
+
return n$2(t2);
|
|
1369
1369
|
};
|
|
1370
1370
|
/*! *****************************************************************************
|
|
1371
1371
|
Copyright (c) Microsoft Corporation.
|
|
@@ -2168,25 +2168,55 @@ function forwardTo$2(target, options) {
|
|
|
2168
2168
|
to: target
|
|
2169
2169
|
}));
|
|
2170
2170
|
}
|
|
2171
|
-
|
|
2171
|
+
var pluckAssigns$1 = function(actionBlocks) {
|
|
2172
|
+
var e_1, _a2;
|
|
2173
|
+
var assignActions = [];
|
|
2174
|
+
try {
|
|
2175
|
+
for (var actionBlocks_1 = __values(actionBlocks), actionBlocks_1_1 = actionBlocks_1.next(); !actionBlocks_1_1.done; actionBlocks_1_1 = actionBlocks_1.next()) {
|
|
2176
|
+
var block = actionBlocks_1_1.value;
|
|
2177
|
+
var i2 = 0;
|
|
2178
|
+
while (i2 < block.length) {
|
|
2179
|
+
if (block[i2].type === assign$4) {
|
|
2180
|
+
assignActions.push(block[i2]);
|
|
2181
|
+
block.splice(i2, 1);
|
|
2182
|
+
continue;
|
|
2183
|
+
}
|
|
2184
|
+
i2++;
|
|
2185
|
+
}
|
|
2186
|
+
}
|
|
2187
|
+
} catch (e_1_1) {
|
|
2188
|
+
e_1 = {
|
|
2189
|
+
error: e_1_1
|
|
2190
|
+
};
|
|
2191
|
+
} finally {
|
|
2192
|
+
try {
|
|
2193
|
+
if (actionBlocks_1_1 && !actionBlocks_1_1.done && (_a2 = actionBlocks_1.return))
|
|
2194
|
+
_a2.call(actionBlocks_1);
|
|
2195
|
+
} finally {
|
|
2196
|
+
if (e_1)
|
|
2197
|
+
throw e_1.error;
|
|
2198
|
+
}
|
|
2199
|
+
}
|
|
2200
|
+
return assignActions;
|
|
2201
|
+
};
|
|
2202
|
+
function resolveActions$1(machine, currentState, currentContext, _event, actionBlocks, predictableExec, preserveActionOrder) {
|
|
2172
2203
|
if (preserveActionOrder === void 0) {
|
|
2173
2204
|
preserveActionOrder = false;
|
|
2174
2205
|
}
|
|
2175
|
-
var
|
|
2176
|
-
return action.type === assign$4;
|
|
2177
|
-
}), 2), assignActions = _a2[0], otherActions = _a2[1];
|
|
2206
|
+
var assignActions = preserveActionOrder ? [] : pluckAssigns$1(actionBlocks);
|
|
2178
2207
|
var updatedContext = assignActions.length ? updateContext(currentContext, _event, assignActions, currentState) : currentContext;
|
|
2179
2208
|
var preservedContexts = preserveActionOrder ? [currentContext] : void 0;
|
|
2180
|
-
var
|
|
2181
|
-
|
|
2209
|
+
var deferredToBlockEnd = [];
|
|
2210
|
+
function handleAction(actionObject) {
|
|
2211
|
+
var _a2;
|
|
2182
2212
|
switch (actionObject.type) {
|
|
2183
2213
|
case raise$3: {
|
|
2184
2214
|
return resolveRaise$1(actionObject);
|
|
2185
2215
|
}
|
|
2186
2216
|
case send$3:
|
|
2187
2217
|
var sendAction = resolveSend$1(actionObject, updatedContext, _event, machine.options.delays);
|
|
2188
|
-
if (sendAction.to !== SpecialTargets.Internal) {
|
|
2189
|
-
|
|
2218
|
+
if (predictableExec && sendAction.to !== SpecialTargets.Internal) {
|
|
2219
|
+
deferredToBlockEnd.push(sendAction);
|
|
2190
2220
|
}
|
|
2191
2221
|
return sendAction;
|
|
2192
2222
|
case log$2: {
|
|
@@ -2196,14 +2226,14 @@ function resolveActions$1(machine, currentState, currentContext, _event, actions
|
|
|
2196
2226
|
}
|
|
2197
2227
|
case choose$2: {
|
|
2198
2228
|
var chooseAction = actionObject;
|
|
2199
|
-
var matchedActions = (
|
|
2229
|
+
var matchedActions = (_a2 = chooseAction.conds.find(function(condition) {
|
|
2200
2230
|
var guard = toGuard(condition.cond, machine.options.guards);
|
|
2201
2231
|
return !guard || evaluateGuard(machine, guard, updatedContext, _event, !predictableExec ? currentState : void 0);
|
|
2202
|
-
})) === null ||
|
|
2232
|
+
})) === null || _a2 === void 0 ? void 0 : _a2.actions;
|
|
2203
2233
|
if (!matchedActions) {
|
|
2204
2234
|
return [];
|
|
2205
2235
|
}
|
|
2206
|
-
var _b = __read(resolveActions$1(machine, currentState, updatedContext, _event, toActionObjects$1(toArray(matchedActions), machine.options.actions), predictableExec, preserveActionOrder), 2), resolvedActionsFromChoose = _b[0], resolvedContextFromChoose = _b[1];
|
|
2236
|
+
var _b = __read(resolveActions$1(machine, currentState, updatedContext, _event, [toActionObjects$1(toArray(matchedActions), machine.options.actions)], predictableExec, preserveActionOrder), 2), resolvedActionsFromChoose = _b[0], resolvedContextFromChoose = _b[1];
|
|
2207
2237
|
updatedContext = resolvedContextFromChoose;
|
|
2208
2238
|
preservedContexts === null || preservedContexts === void 0 ? void 0 : preservedContexts.push(updatedContext);
|
|
2209
2239
|
return resolvedActionsFromChoose;
|
|
@@ -2213,14 +2243,14 @@ function resolveActions$1(machine, currentState, currentContext, _event, actions
|
|
|
2213
2243
|
if (!matchedActions) {
|
|
2214
2244
|
return [];
|
|
2215
2245
|
}
|
|
2216
|
-
var _c = __read(resolveActions$1(machine, currentState, updatedContext, _event, toActionObjects$1(toArray(matchedActions), machine.options.actions), predictableExec, preserveActionOrder), 2), resolvedActionsFromPure = _c[0], resolvedContext = _c[1];
|
|
2246
|
+
var _c = __read(resolveActions$1(machine, currentState, updatedContext, _event, [toActionObjects$1(toArray(matchedActions), machine.options.actions)], predictableExec, preserveActionOrder), 2), resolvedActionsFromPure = _c[0], resolvedContext = _c[1];
|
|
2217
2247
|
updatedContext = resolvedContext;
|
|
2218
2248
|
preservedContexts === null || preservedContexts === void 0 ? void 0 : preservedContexts.push(updatedContext);
|
|
2219
2249
|
return resolvedActionsFromPure;
|
|
2220
2250
|
}
|
|
2221
2251
|
case stop$3: {
|
|
2222
2252
|
var resolved = resolveStop$1(actionObject, updatedContext, _event);
|
|
2223
|
-
predictableExec === null || predictableExec === void 0 ? void 0 : predictableExec(resolved,
|
|
2253
|
+
predictableExec === null || predictableExec === void 0 ? void 0 : predictableExec(resolved, currentContext, _event);
|
|
2224
2254
|
return resolved;
|
|
2225
2255
|
}
|
|
2226
2256
|
case assign$4: {
|
|
@@ -2247,9 +2277,38 @@ function resolveActions$1(machine, currentState, currentContext, _event, actions
|
|
|
2247
2277
|
}
|
|
2248
2278
|
return resolvedActionObject;
|
|
2249
2279
|
}
|
|
2250
|
-
}
|
|
2251
|
-
|
|
2252
|
-
|
|
2280
|
+
}
|
|
2281
|
+
function processBlock(block) {
|
|
2282
|
+
var e_2, _a2;
|
|
2283
|
+
var resolvedActions2 = [];
|
|
2284
|
+
try {
|
|
2285
|
+
for (var block_1 = __values(block), block_1_1 = block_1.next(); !block_1_1.done; block_1_1 = block_1.next()) {
|
|
2286
|
+
var action = block_1_1.value;
|
|
2287
|
+
var resolved = handleAction(action);
|
|
2288
|
+
if (resolved) {
|
|
2289
|
+
resolvedActions2 = resolvedActions2.concat(resolved);
|
|
2290
|
+
}
|
|
2291
|
+
}
|
|
2292
|
+
} catch (e_2_1) {
|
|
2293
|
+
e_2 = {
|
|
2294
|
+
error: e_2_1
|
|
2295
|
+
};
|
|
2296
|
+
} finally {
|
|
2297
|
+
try {
|
|
2298
|
+
if (block_1_1 && !block_1_1.done && (_a2 = block_1.return))
|
|
2299
|
+
_a2.call(block_1);
|
|
2300
|
+
} finally {
|
|
2301
|
+
if (e_2)
|
|
2302
|
+
throw e_2.error;
|
|
2303
|
+
}
|
|
2304
|
+
}
|
|
2305
|
+
deferredToBlockEnd.forEach(function(action2) {
|
|
2306
|
+
predictableExec(action2, updatedContext, _event);
|
|
2307
|
+
});
|
|
2308
|
+
deferredToBlockEnd.length = 0;
|
|
2309
|
+
return resolvedActions2;
|
|
2310
|
+
}
|
|
2311
|
+
var resolvedActions = flatten(actionBlocks.map(processBlock));
|
|
2253
2312
|
return [resolvedActions, updatedContext];
|
|
2254
2313
|
}
|
|
2255
2314
|
var serviceStack = [];
|
|
@@ -2913,10 +2972,10 @@ var InterpreterStatus;
|
|
|
2913
2972
|
})(InterpreterStatus || (InterpreterStatus = {}));
|
|
2914
2973
|
var Interpreter = /* @__PURE__ */ function() {
|
|
2915
2974
|
function Interpreter2(machine, options) {
|
|
2916
|
-
var _this = this;
|
|
2917
2975
|
if (options === void 0) {
|
|
2918
2976
|
options = Interpreter2.defaultOptions;
|
|
2919
2977
|
}
|
|
2978
|
+
var _this = this;
|
|
2920
2979
|
this.machine = machine;
|
|
2921
2980
|
this.delayedEventsMap = {};
|
|
2922
2981
|
this.listeners = /* @__PURE__ */ new Set();
|
|
@@ -2929,6 +2988,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
2929
2988
|
this.status = InterpreterStatus.NotStarted;
|
|
2930
2989
|
this.children = /* @__PURE__ */ new Map();
|
|
2931
2990
|
this.forwardTo = /* @__PURE__ */ new Set();
|
|
2991
|
+
this._outgoingQueue = [];
|
|
2932
2992
|
this.init = this.start;
|
|
2933
2993
|
this.send = function(event, payload) {
|
|
2934
2994
|
if (isArray$8(event)) {
|
|
@@ -2952,7 +3012,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
2952
3012
|
});
|
|
2953
3013
|
return _this._state;
|
|
2954
3014
|
};
|
|
2955
|
-
this.sendTo = function(event, to) {
|
|
3015
|
+
this.sendTo = function(event, to, immediate) {
|
|
2956
3016
|
var isParent = _this.parent && (to === SpecialTargets.Parent || _this.parent.id === to);
|
|
2957
3017
|
var target = isParent ? _this.parent : isString(to) ? _this.children.get(to) || registry.get(to) : isActor$1(to) ? to : void 0;
|
|
2958
3018
|
if (!target) {
|
|
@@ -2963,13 +3023,22 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
2963
3023
|
}
|
|
2964
3024
|
if ("machine" in target) {
|
|
2965
3025
|
if (_this.status !== InterpreterStatus.Stopped || _this.parent !== target || _this.state.done) {
|
|
2966
|
-
|
|
3026
|
+
var scxmlEvent = __assign$1(__assign$1({}, event), {
|
|
2967
3027
|
name: event.name === error$3 ? "".concat(error$2(_this.id)) : event.name,
|
|
2968
3028
|
origin: _this.sessionId
|
|
2969
|
-
})
|
|
3029
|
+
});
|
|
3030
|
+
if (!immediate && _this.machine.config.predictableActionArguments) {
|
|
3031
|
+
_this._outgoingQueue.push([target, scxmlEvent]);
|
|
3032
|
+
} else {
|
|
3033
|
+
target.send(scxmlEvent);
|
|
3034
|
+
}
|
|
2970
3035
|
}
|
|
2971
3036
|
} else {
|
|
2972
|
-
|
|
3037
|
+
if (!immediate && _this.machine.config.predictableActionArguments) {
|
|
3038
|
+
_this._outgoingQueue.push([target, event.data]);
|
|
3039
|
+
} else {
|
|
3040
|
+
target.send(event.data);
|
|
3041
|
+
}
|
|
2973
3042
|
}
|
|
2974
3043
|
};
|
|
2975
3044
|
this._exec = function(action, context, _event, actionFunctionMap) {
|
|
@@ -3006,7 +3075,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3006
3075
|
return;
|
|
3007
3076
|
} else {
|
|
3008
3077
|
if (sendAction.to) {
|
|
3009
|
-
_this.sendTo(sendAction._event, sendAction.to);
|
|
3078
|
+
_this.sendTo(sendAction._event, sendAction.to, _event === initEvent$1);
|
|
3010
3079
|
} else {
|
|
3011
3080
|
_this.send(sendAction._event);
|
|
3012
3081
|
}
|
|
@@ -3132,6 +3201,11 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3132
3201
|
this._state = state;
|
|
3133
3202
|
if ((!this.machine.config.predictableActionArguments || _event === initEvent$1) && this.options.execute) {
|
|
3134
3203
|
this.execute(this.state);
|
|
3204
|
+
} else {
|
|
3205
|
+
var item = void 0;
|
|
3206
|
+
while (item = this._outgoingQueue.shift()) {
|
|
3207
|
+
item[0].send(item[1]);
|
|
3208
|
+
}
|
|
3135
3209
|
}
|
|
3136
3210
|
this.children.forEach(function(child) {
|
|
3137
3211
|
_this.state.children[child.id] = child;
|
|
@@ -3219,6 +3293,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3219
3293
|
}
|
|
3220
3294
|
}
|
|
3221
3295
|
this._stop();
|
|
3296
|
+
this._stopChildren();
|
|
3222
3297
|
}
|
|
3223
3298
|
};
|
|
3224
3299
|
Interpreter2.prototype.onTransition = function(listener) {
|
|
@@ -3303,6 +3378,14 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3303
3378
|
});
|
|
3304
3379
|
return this;
|
|
3305
3380
|
};
|
|
3381
|
+
Interpreter2.prototype._stopChildren = function() {
|
|
3382
|
+
this.children.forEach(function(child) {
|
|
3383
|
+
if (isFunction$1(child.stop)) {
|
|
3384
|
+
child.stop();
|
|
3385
|
+
}
|
|
3386
|
+
});
|
|
3387
|
+
this.children.clear();
|
|
3388
|
+
};
|
|
3306
3389
|
Interpreter2.prototype._stop = function() {
|
|
3307
3390
|
var e_6, _a2, e_7, _b, e_8, _c, e_9, _d, e_10, _e;
|
|
3308
3391
|
try {
|
|
@@ -3421,7 +3504,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3421
3504
|
}).map(function(stateNode) {
|
|
3422
3505
|
return toActionObjects$1(stateNode.onExit, _this.machine.options.actions);
|
|
3423
3506
|
}));
|
|
3424
|
-
var _a2 = __read(resolveActions$1(_this.machine, _this.state, _this.state.context, _event, exitActions, _this.machine.config.predictableActionArguments ? _this._exec : void 0, _this.machine.config.predictableActionArguments || _this.machine.config.preserveActionOrder), 2), resolvedActions = _a2[0], updatedContext = _a2[1];
|
|
3507
|
+
var _a2 = __read(resolveActions$1(_this.machine, _this.state, _this.state.context, _event, [exitActions], _this.machine.config.predictableActionArguments ? _this._exec : void 0, _this.machine.config.predictableActionArguments || _this.machine.config.preserveActionOrder), 2), resolvedActions = _a2[0], updatedContext = _a2[1];
|
|
3425
3508
|
var newState = new State({
|
|
3426
3509
|
value: _this.state.value,
|
|
3427
3510
|
context: updatedContext,
|
|
@@ -3445,12 +3528,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3445
3528
|
return newState;
|
|
3446
3529
|
});
|
|
3447
3530
|
_this.update(nextState, _event);
|
|
3448
|
-
_this.
|
|
3449
|
-
if (isFunction$1(child.stop)) {
|
|
3450
|
-
child.stop();
|
|
3451
|
-
}
|
|
3452
|
-
});
|
|
3453
|
-
_this.children.clear();
|
|
3531
|
+
_this._stopChildren();
|
|
3454
3532
|
registry.free(_this.sessionId);
|
|
3455
3533
|
});
|
|
3456
3534
|
return this;
|
|
@@ -3464,6 +3542,10 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3464
3542
|
"".concat(events.length, ' event(s) were sent to uninitialized service "').concat(this.machine.id, '". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.')
|
|
3465
3543
|
);
|
|
3466
3544
|
}
|
|
3545
|
+
if (!events.length) {
|
|
3546
|
+
return;
|
|
3547
|
+
}
|
|
3548
|
+
var exec = !!this.machine.config.predictableActionArguments && this._exec;
|
|
3467
3549
|
this.scheduler.schedule(function() {
|
|
3468
3550
|
var e_11, _a2;
|
|
3469
3551
|
var nextState = _this.state;
|
|
@@ -3473,9 +3555,9 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3473
3555
|
var _event = toSCXMLEvent(event_12);
|
|
3474
3556
|
_this.forward(_event);
|
|
3475
3557
|
nextState = provide(_this, function() {
|
|
3476
|
-
return _this.machine.transition(nextState, _event);
|
|
3558
|
+
return _this.machine.transition(nextState, _event, void 0, exec || void 0);
|
|
3477
3559
|
});
|
|
3478
|
-
batchedActions.push.apply(batchedActions, __spreadArray([], __read(nextState.actions.map(function(a2) {
|
|
3560
|
+
batchedActions.push.apply(batchedActions, __spreadArray([], __read(_this.machine.config.predictableActionArguments ? nextState.actions : nextState.actions.map(function(a2) {
|
|
3479
3561
|
return bindActionToState(a2, nextState);
|
|
3480
3562
|
})), false));
|
|
3481
3563
|
batchChanged = batchChanged || !!nextState.changed;
|
|
@@ -3554,7 +3636,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3554
3636
|
var _this = this;
|
|
3555
3637
|
this.delayedEventsMap[sendAction.id] = this.clock.setTimeout(function() {
|
|
3556
3638
|
if (sendAction.to) {
|
|
3557
|
-
_this.sendTo(sendAction._event, sendAction.to);
|
|
3639
|
+
_this.sendTo(sendAction._event, sendAction.to, true);
|
|
3558
3640
|
} else {
|
|
3559
3641
|
_this.send(sendAction._event);
|
|
3560
3642
|
}
|
|
@@ -4000,10 +4082,10 @@ var createDefaultOptions = function() {
|
|
|
4000
4082
|
};
|
|
4001
4083
|
var StateNode = /* @__PURE__ */ function() {
|
|
4002
4084
|
function StateNode2(config, options, _context, _stateInfo) {
|
|
4003
|
-
var _this = this;
|
|
4004
4085
|
if (_context === void 0) {
|
|
4005
4086
|
_context = "context" in config ? config.context : void 0;
|
|
4006
4087
|
}
|
|
4088
|
+
var _this = this;
|
|
4007
4089
|
var _a2;
|
|
4008
4090
|
this.config = config;
|
|
4009
4091
|
this._context = _context;
|
|
@@ -4468,8 +4550,9 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
4468
4550
|
nodes.push(possibleAncestor);
|
|
4469
4551
|
return nodes;
|
|
4470
4552
|
};
|
|
4471
|
-
StateNode2.prototype.getActions = function(resolvedConfig, isDone, transition, currentContext, _event, prevState) {
|
|
4553
|
+
StateNode2.prototype.getActions = function(resolvedConfig, isDone, transition, currentContext, _event, prevState, predictableExec) {
|
|
4472
4554
|
var e_4, _a2, e_5, _b;
|
|
4555
|
+
var _this = this;
|
|
4473
4556
|
var prevConfig = getConfiguration([], prevState ? this.getStateNodes(prevState.value) : [this]);
|
|
4474
4557
|
try {
|
|
4475
4558
|
for (var resolvedConfig_1 = __values(resolvedConfig), resolvedConfig_1_1 = resolvedConfig_1.next(); !resolvedConfig_1_1.done; resolvedConfig_1_1 = resolvedConfig_1.next()) {
|
|
@@ -4542,16 +4625,19 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
4542
4625
|
});
|
|
4543
4626
|
var entryStates = new Set(transition.entrySet);
|
|
4544
4627
|
var exitStates = new Set(transition.exitSet);
|
|
4545
|
-
var
|
|
4546
|
-
|
|
4628
|
+
var entryActions = Array.from(entryStates).map(function(stateNode) {
|
|
4629
|
+
var entryActions2 = stateNode.onEntry;
|
|
4630
|
+
var invokeActions = stateNode.activities.map(function(activity) {
|
|
4547
4631
|
return start$2(activity);
|
|
4548
|
-
})
|
|
4549
|
-
|
|
4550
|
-
|
|
4632
|
+
});
|
|
4633
|
+
return toActionObjects$1(predictableExec ? __spreadArray(__spreadArray([], __read(entryActions2), false), __read(invokeActions), false) : __spreadArray(__spreadArray([], __read(invokeActions), false), __read(entryActions2), false), _this.machine.options.actions);
|
|
4634
|
+
}).concat([doneEvents.map(raise$2)]);
|
|
4635
|
+
var exitActions = Array.from(exitStates).map(function(stateNode) {
|
|
4636
|
+
return toActionObjects$1(__spreadArray(__spreadArray([], __read(stateNode.onExit), false), __read(stateNode.activities.map(function(activity) {
|
|
4551
4637
|
return stop$2(activity);
|
|
4552
|
-
})), false);
|
|
4553
|
-
})
|
|
4554
|
-
var actions2 = toActionObjects$1(
|
|
4638
|
+
})), false), _this.machine.options.actions);
|
|
4639
|
+
});
|
|
4640
|
+
var actions2 = exitActions.concat([toActionObjects$1(transition.actions, this.machine.options.actions)]).concat(entryActions);
|
|
4555
4641
|
if (isDone) {
|
|
4556
4642
|
var stopActions = toActionObjects$1(flatten(__spreadArray([], __read(resolvedConfig), false).sort(function(a2, b2) {
|
|
4557
4643
|
return b2.order - a2.order;
|
|
@@ -4560,7 +4646,7 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
4560
4646
|
})), this.machine.options.actions).filter(function(action) {
|
|
4561
4647
|
return action.type !== raise$3 && (action.type !== send$3 || !!action.to && action.to !== SpecialTargets.Internal);
|
|
4562
4648
|
});
|
|
4563
|
-
return actions2.concat(stopActions);
|
|
4649
|
+
return actions2.concat([stopActions]);
|
|
4564
4650
|
}
|
|
4565
4651
|
return actions2;
|
|
4566
4652
|
};
|
|
@@ -4605,7 +4691,7 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
4605
4691
|
return state;
|
|
4606
4692
|
};
|
|
4607
4693
|
StateNode2.prototype.resolveTransition = function(stateTransition, currentState, context, predictableExec, _event) {
|
|
4608
|
-
var e_6, _a2;
|
|
4694
|
+
var e_6, _a2, e_7, _b;
|
|
4609
4695
|
var _this = this;
|
|
4610
4696
|
if (_event === void 0) {
|
|
4611
4697
|
_event = initEvent$1;
|
|
@@ -4616,15 +4702,32 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
4616
4702
|
var isDone = isInFinalState(resolvedConfiguration, this);
|
|
4617
4703
|
var resolvedStateValue = willTransition ? getValue(this.machine, configuration) : void 0;
|
|
4618
4704
|
var historyValue = currentState ? currentState.historyValue ? currentState.historyValue : stateTransition.source ? this.machine.historyValue(currentState.value) : void 0 : void 0;
|
|
4619
|
-
var
|
|
4705
|
+
var actionBlocks = this.getActions(new Set(resolvedConfiguration), isDone, stateTransition, context, _event, currentState, predictableExec);
|
|
4620
4706
|
var activities = currentState ? __assign$1({}, currentState.activities) : {};
|
|
4621
4707
|
try {
|
|
4622
|
-
for (var
|
|
4623
|
-
var
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4708
|
+
for (var actionBlocks_1 = __values(actionBlocks), actionBlocks_1_1 = actionBlocks_1.next(); !actionBlocks_1_1.done; actionBlocks_1_1 = actionBlocks_1.next()) {
|
|
4709
|
+
var block = actionBlocks_1_1.value;
|
|
4710
|
+
try {
|
|
4711
|
+
for (var block_1 = (e_7 = void 0, __values(block)), block_1_1 = block_1.next(); !block_1_1.done; block_1_1 = block_1.next()) {
|
|
4712
|
+
var action = block_1_1.value;
|
|
4713
|
+
if (action.type === start$3) {
|
|
4714
|
+
activities[action.activity.id || action.activity.type] = action;
|
|
4715
|
+
} else if (action.type === stop$3) {
|
|
4716
|
+
activities[action.activity.id || action.activity.type] = false;
|
|
4717
|
+
}
|
|
4718
|
+
}
|
|
4719
|
+
} catch (e_7_1) {
|
|
4720
|
+
e_7 = {
|
|
4721
|
+
error: e_7_1
|
|
4722
|
+
};
|
|
4723
|
+
} finally {
|
|
4724
|
+
try {
|
|
4725
|
+
if (block_1_1 && !block_1_1.done && (_b = block_1.return))
|
|
4726
|
+
_b.call(block_1);
|
|
4727
|
+
} finally {
|
|
4728
|
+
if (e_7)
|
|
4729
|
+
throw e_7.error;
|
|
4730
|
+
}
|
|
4628
4731
|
}
|
|
4629
4732
|
}
|
|
4630
4733
|
} catch (e_6_1) {
|
|
@@ -4633,17 +4736,17 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
4633
4736
|
};
|
|
4634
4737
|
} finally {
|
|
4635
4738
|
try {
|
|
4636
|
-
if (
|
|
4637
|
-
_a2.call(
|
|
4739
|
+
if (actionBlocks_1_1 && !actionBlocks_1_1.done && (_a2 = actionBlocks_1.return))
|
|
4740
|
+
_a2.call(actionBlocks_1);
|
|
4638
4741
|
} finally {
|
|
4639
4742
|
if (e_6)
|
|
4640
4743
|
throw e_6.error;
|
|
4641
4744
|
}
|
|
4642
4745
|
}
|
|
4643
|
-
var
|
|
4644
|
-
var
|
|
4746
|
+
var _c = __read(resolveActions$1(this, currentState, context, _event, actionBlocks, predictableExec, this.machine.config.predictableActionArguments || this.machine.config.preserveActionOrder), 2), resolvedActions = _c[0], updatedContext = _c[1];
|
|
4747
|
+
var _d = __read(partition(resolvedActions, function(action2) {
|
|
4645
4748
|
return action2.type === raise$3 || action2.type === send$3 && action2.to === SpecialTargets.Internal;
|
|
4646
|
-
}), 2), raisedEvents =
|
|
4749
|
+
}), 2), raisedEvents = _d[0], nonRaisedActions = _d[1];
|
|
4647
4750
|
var invokeActions = resolvedActions.filter(function(action2) {
|
|
4648
4751
|
var _a3;
|
|
4649
4752
|
return action2.type === start$3 && ((_a3 = action2.activity) === null || _a3 === void 0 ? void 0 : _a3.type) === invoke$1;
|
|
@@ -4935,7 +5038,7 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
4935
5038
|
});
|
|
4936
5039
|
Object.defineProperty(StateNode2.prototype, "events", {
|
|
4937
5040
|
get: function() {
|
|
4938
|
-
var
|
|
5041
|
+
var e_8, _a2, e_9, _b;
|
|
4939
5042
|
if (this.__cache.events) {
|
|
4940
5043
|
return this.__cache.events;
|
|
4941
5044
|
}
|
|
@@ -4948,36 +5051,36 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
4948
5051
|
var state = states[stateId];
|
|
4949
5052
|
if (state.states) {
|
|
4950
5053
|
try {
|
|
4951
|
-
for (var _e = (
|
|
5054
|
+
for (var _e = (e_9 = void 0, __values(state.events)), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
4952
5055
|
var event_1 = _f.value;
|
|
4953
5056
|
events.add("".concat(event_1));
|
|
4954
5057
|
}
|
|
4955
|
-
} catch (
|
|
4956
|
-
|
|
4957
|
-
error:
|
|
5058
|
+
} catch (e_9_1) {
|
|
5059
|
+
e_9 = {
|
|
5060
|
+
error: e_9_1
|
|
4958
5061
|
};
|
|
4959
5062
|
} finally {
|
|
4960
5063
|
try {
|
|
4961
5064
|
if (_f && !_f.done && (_b = _e.return))
|
|
4962
5065
|
_b.call(_e);
|
|
4963
5066
|
} finally {
|
|
4964
|
-
if (
|
|
4965
|
-
throw
|
|
5067
|
+
if (e_9)
|
|
5068
|
+
throw e_9.error;
|
|
4966
5069
|
}
|
|
4967
5070
|
}
|
|
4968
5071
|
}
|
|
4969
5072
|
}
|
|
4970
|
-
} catch (
|
|
4971
|
-
|
|
4972
|
-
error:
|
|
5073
|
+
} catch (e_8_1) {
|
|
5074
|
+
e_8 = {
|
|
5075
|
+
error: e_8_1
|
|
4973
5076
|
};
|
|
4974
5077
|
} finally {
|
|
4975
5078
|
try {
|
|
4976
5079
|
if (_d && !_d.done && (_a2 = _c.return))
|
|
4977
5080
|
_a2.call(_c);
|
|
4978
5081
|
} finally {
|
|
4979
|
-
if (
|
|
4980
|
-
throw
|
|
5082
|
+
if (e_8)
|
|
5083
|
+
throw e_8.error;
|
|
4981
5084
|
}
|
|
4982
5085
|
}
|
|
4983
5086
|
}
|
|
@@ -5051,7 +5154,7 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
5051
5154
|
return transition;
|
|
5052
5155
|
};
|
|
5053
5156
|
StateNode2.prototype.formatTransitions = function() {
|
|
5054
|
-
var
|
|
5157
|
+
var e_10, _a2;
|
|
5055
5158
|
var _this = this;
|
|
5056
5159
|
var onConfig;
|
|
5057
5160
|
if (!this.config.on) {
|
|
@@ -5088,17 +5191,17 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
5088
5191
|
var delayedTransition = delayedTransitions_1_1.value;
|
|
5089
5192
|
formattedTransitions.push(delayedTransition);
|
|
5090
5193
|
}
|
|
5091
|
-
} catch (
|
|
5092
|
-
|
|
5093
|
-
error:
|
|
5194
|
+
} catch (e_10_1) {
|
|
5195
|
+
e_10 = {
|
|
5196
|
+
error: e_10_1
|
|
5094
5197
|
};
|
|
5095
5198
|
} finally {
|
|
5096
5199
|
try {
|
|
5097
5200
|
if (delayedTransitions_1_1 && !delayedTransitions_1_1.done && (_a2 = delayedTransitions_1.return))
|
|
5098
5201
|
_a2.call(delayedTransitions_1);
|
|
5099
5202
|
} finally {
|
|
5100
|
-
if (
|
|
5101
|
-
throw
|
|
5203
|
+
if (e_10)
|
|
5204
|
+
throw e_10.error;
|
|
5102
5205
|
}
|
|
5103
5206
|
}
|
|
5104
5207
|
return formattedTransitions;
|
|
@@ -6157,17 +6260,47 @@ function choose(conds) {
|
|
|
6157
6260
|
conds
|
|
6158
6261
|
};
|
|
6159
6262
|
}
|
|
6160
|
-
|
|
6263
|
+
var pluckAssigns = function(actionBlocks) {
|
|
6264
|
+
var e_1, _a2;
|
|
6265
|
+
var assignActions = [];
|
|
6266
|
+
try {
|
|
6267
|
+
for (var actionBlocks_1 = _tslib.__values(actionBlocks), actionBlocks_1_1 = actionBlocks_1.next(); !actionBlocks_1_1.done; actionBlocks_1_1 = actionBlocks_1.next()) {
|
|
6268
|
+
var block = actionBlocks_1_1.value;
|
|
6269
|
+
var i2 = 0;
|
|
6270
|
+
while (i2 < block.length) {
|
|
6271
|
+
if (block[i2].type === actionTypes.assign) {
|
|
6272
|
+
assignActions.push(block[i2]);
|
|
6273
|
+
block.splice(i2, 1);
|
|
6274
|
+
continue;
|
|
6275
|
+
}
|
|
6276
|
+
i2++;
|
|
6277
|
+
}
|
|
6278
|
+
}
|
|
6279
|
+
} catch (e_1_1) {
|
|
6280
|
+
e_1 = {
|
|
6281
|
+
error: e_1_1
|
|
6282
|
+
};
|
|
6283
|
+
} finally {
|
|
6284
|
+
try {
|
|
6285
|
+
if (actionBlocks_1_1 && !actionBlocks_1_1.done && (_a2 = actionBlocks_1.return))
|
|
6286
|
+
_a2.call(actionBlocks_1);
|
|
6287
|
+
} finally {
|
|
6288
|
+
if (e_1)
|
|
6289
|
+
throw e_1.error;
|
|
6290
|
+
}
|
|
6291
|
+
}
|
|
6292
|
+
return assignActions;
|
|
6293
|
+
};
|
|
6294
|
+
function resolveActions(machine, currentState, currentContext, _event, actionBlocks, predictableExec, preserveActionOrder) {
|
|
6161
6295
|
if (preserveActionOrder === void 0) {
|
|
6162
6296
|
preserveActionOrder = false;
|
|
6163
6297
|
}
|
|
6164
|
-
var
|
|
6165
|
-
return action.type === actionTypes.assign;
|
|
6166
|
-
}), 2), assignActions = _a2[0], otherActions = _a2[1];
|
|
6298
|
+
var assignActions = preserveActionOrder ? [] : pluckAssigns(actionBlocks);
|
|
6167
6299
|
var updatedContext = assignActions.length ? utils$2.updateContext(currentContext, _event, assignActions, currentState) : currentContext;
|
|
6168
6300
|
var preservedContexts = preserveActionOrder ? [currentContext] : void 0;
|
|
6169
|
-
var
|
|
6170
|
-
|
|
6301
|
+
var deferredToBlockEnd = [];
|
|
6302
|
+
function handleAction(actionObject) {
|
|
6303
|
+
var _a2;
|
|
6171
6304
|
switch (actionObject.type) {
|
|
6172
6305
|
case actionTypes.raise: {
|
|
6173
6306
|
return resolveRaise(actionObject);
|
|
@@ -6180,8 +6313,8 @@ function resolveActions(machine, currentState, currentContext, _event, actions2,
|
|
|
6180
6313
|
"No delay reference for delay expression '".concat(actionObject.delay, "' was found on machine '").concat(machine.id, "'")
|
|
6181
6314
|
);
|
|
6182
6315
|
}
|
|
6183
|
-
if (sendAction.to !== types.SpecialTargets.Internal) {
|
|
6184
|
-
|
|
6316
|
+
if (predictableExec && sendAction.to !== types.SpecialTargets.Internal) {
|
|
6317
|
+
deferredToBlockEnd.push(sendAction);
|
|
6185
6318
|
}
|
|
6186
6319
|
return sendAction;
|
|
6187
6320
|
case actionTypes.log: {
|
|
@@ -6191,14 +6324,14 @@ function resolveActions(machine, currentState, currentContext, _event, actions2,
|
|
|
6191
6324
|
}
|
|
6192
6325
|
case actionTypes.choose: {
|
|
6193
6326
|
var chooseAction = actionObject;
|
|
6194
|
-
var matchedActions = (
|
|
6327
|
+
var matchedActions = (_a2 = chooseAction.conds.find(function(condition) {
|
|
6195
6328
|
var guard = utils$2.toGuard(condition.cond, machine.options.guards);
|
|
6196
6329
|
return !guard || utils$2.evaluateGuard(machine, guard, updatedContext, _event, !predictableExec ? currentState : void 0);
|
|
6197
|
-
})) === null ||
|
|
6330
|
+
})) === null || _a2 === void 0 ? void 0 : _a2.actions;
|
|
6198
6331
|
if (!matchedActions) {
|
|
6199
6332
|
return [];
|
|
6200
6333
|
}
|
|
6201
|
-
var _b = _tslib.__read(resolveActions(machine, currentState, updatedContext, _event, toActionObjects(utils$2.toArray(matchedActions), machine.options.actions), predictableExec, preserveActionOrder), 2), resolvedActionsFromChoose = _b[0], resolvedContextFromChoose = _b[1];
|
|
6334
|
+
var _b = _tslib.__read(resolveActions(machine, currentState, updatedContext, _event, [toActionObjects(utils$2.toArray(matchedActions), machine.options.actions)], predictableExec, preserveActionOrder), 2), resolvedActionsFromChoose = _b[0], resolvedContextFromChoose = _b[1];
|
|
6202
6335
|
updatedContext = resolvedContextFromChoose;
|
|
6203
6336
|
preservedContexts === null || preservedContexts === void 0 ? void 0 : preservedContexts.push(updatedContext);
|
|
6204
6337
|
return resolvedActionsFromChoose;
|
|
@@ -6208,14 +6341,14 @@ function resolveActions(machine, currentState, currentContext, _event, actions2,
|
|
|
6208
6341
|
if (!matchedActions) {
|
|
6209
6342
|
return [];
|
|
6210
6343
|
}
|
|
6211
|
-
var _c = _tslib.__read(resolveActions(machine, currentState, updatedContext, _event, toActionObjects(utils$2.toArray(matchedActions), machine.options.actions), predictableExec, preserveActionOrder), 2), resolvedActionsFromPure = _c[0], resolvedContext = _c[1];
|
|
6344
|
+
var _c = _tslib.__read(resolveActions(machine, currentState, updatedContext, _event, [toActionObjects(utils$2.toArray(matchedActions), machine.options.actions)], predictableExec, preserveActionOrder), 2), resolvedActionsFromPure = _c[0], resolvedContext = _c[1];
|
|
6212
6345
|
updatedContext = resolvedContext;
|
|
6213
6346
|
preservedContexts === null || preservedContexts === void 0 ? void 0 : preservedContexts.push(updatedContext);
|
|
6214
6347
|
return resolvedActionsFromPure;
|
|
6215
6348
|
}
|
|
6216
6349
|
case actionTypes.stop: {
|
|
6217
6350
|
var resolved = resolveStop(actionObject, updatedContext, _event);
|
|
6218
|
-
predictableExec === null || predictableExec === void 0 ? void 0 : predictableExec(resolved,
|
|
6351
|
+
predictableExec === null || predictableExec === void 0 ? void 0 : predictableExec(resolved, currentContext, _event);
|
|
6219
6352
|
return resolved;
|
|
6220
6353
|
}
|
|
6221
6354
|
case actionTypes.assign: {
|
|
@@ -6242,9 +6375,38 @@ function resolveActions(machine, currentState, currentContext, _event, actions2,
|
|
|
6242
6375
|
}
|
|
6243
6376
|
return resolvedActionObject;
|
|
6244
6377
|
}
|
|
6245
|
-
}
|
|
6246
|
-
|
|
6247
|
-
|
|
6378
|
+
}
|
|
6379
|
+
function processBlock(block) {
|
|
6380
|
+
var e_2, _a2;
|
|
6381
|
+
var resolvedActions2 = [];
|
|
6382
|
+
try {
|
|
6383
|
+
for (var block_1 = _tslib.__values(block), block_1_1 = block_1.next(); !block_1_1.done; block_1_1 = block_1.next()) {
|
|
6384
|
+
var action = block_1_1.value;
|
|
6385
|
+
var resolved = handleAction(action);
|
|
6386
|
+
if (resolved) {
|
|
6387
|
+
resolvedActions2 = resolvedActions2.concat(resolved);
|
|
6388
|
+
}
|
|
6389
|
+
}
|
|
6390
|
+
} catch (e_2_1) {
|
|
6391
|
+
e_2 = {
|
|
6392
|
+
error: e_2_1
|
|
6393
|
+
};
|
|
6394
|
+
} finally {
|
|
6395
|
+
try {
|
|
6396
|
+
if (block_1_1 && !block_1_1.done && (_a2 = block_1.return))
|
|
6397
|
+
_a2.call(block_1);
|
|
6398
|
+
} finally {
|
|
6399
|
+
if (e_2)
|
|
6400
|
+
throw e_2.error;
|
|
6401
|
+
}
|
|
6402
|
+
}
|
|
6403
|
+
deferredToBlockEnd.forEach(function(action2) {
|
|
6404
|
+
predictableExec(action2, updatedContext, _event);
|
|
6405
|
+
});
|
|
6406
|
+
deferredToBlockEnd.length = 0;
|
|
6407
|
+
return resolvedActions2;
|
|
6408
|
+
}
|
|
6409
|
+
var resolvedActions = utils$2.flatten(actionBlocks.map(processBlock));
|
|
6248
6410
|
return [resolvedActions, updatedContext];
|
|
6249
6411
|
}
|
|
6250
6412
|
actions.actionTypes = actionTypes;
|
|
@@ -6278,7 +6440,7 @@ var stop_1 = actions.stop = stop;
|
|
|
6278
6440
|
actions.toActionObject = toActionObject;
|
|
6279
6441
|
actions.toActionObjects = toActionObjects;
|
|
6280
6442
|
actions.toActivityDefinition = toActivityDefinition;
|
|
6281
|
-
var t
|
|
6443
|
+
var t = function(r2) {
|
|
6282
6444
|
return stop_1(r2);
|
|
6283
6445
|
}, u = assign_1({ attributeToVerify: function(r2) {
|
|
6284
6446
|
} }), o = assign_1({ challengeName: function(r2) {
|
|
@@ -6720,7 +6882,7 @@ var merge = createAssigner(function(object, source, srcIndex) {
|
|
|
6720
6882
|
baseMerge(object, source, srcIndex);
|
|
6721
6883
|
});
|
|
6722
6884
|
var merge_1 = merge;
|
|
6723
|
-
var n = function(n2, s2, m2, a2) {
|
|
6885
|
+
var n$1 = function(n2, s2, m2, a2) {
|
|
6724
6886
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
6725
6887
|
var r2, l2;
|
|
6726
6888
|
return __generator(this, function(o2) {
|
|
@@ -6842,7 +7004,7 @@ var _ = ["SMS_MFA", "SOFTWARE_TOKEN_MFA"], k = function(e2) {
|
|
|
6842
7004
|
};
|
|
6843
7005
|
function x(s$22) {
|
|
6844
7006
|
var _2 = s$22.services;
|
|
6845
|
-
return createMachine({ initial: "init", id: "signInActor", states: { init: { always: [{ target: "autoSignIn", cond: "shouldAutoSignIn" }, { target: "signIn" }] }, signIn: { initial: "edit", exit: ["clearFormValues", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, CHANGE: { actions: "handleInput" }, FEDERATED_SIGN_IN: "federatedSignIn" } }, federatedSignIn: { tags: ["pending"], entry: ["sendUpdate", "clearError"], invoke: { src: "federatedSignIn", onError: { actions: "setRemoteError" } } }, submit: { tags: ["pending"], entry: ["parsePhoneNumber", "clearError", "sendUpdate"], invoke: { src: "signIn", onDone: [{ cond: "shouldSetupTOTP", actions: ["setUser", "setChallengeName"], target: "#signInActor.setupTOTP" }, { cond: "shouldConfirmSignIn", actions: ["setUser", "setChallengeName"], target: "#signInActor.confirmSignIn" }, { cond: "shouldForceChangePassword", actions: ["setUser", "setChallengeName", "setRequiredAttributes"], target: "#signInActor.forceNewPassword" }, { actions: "setUser", target: "verifying" }], onError: [{ cond: "shouldRedirectToConfirmSignUp", actions: ["setCredentials", "setConfirmSignUpIntent"], target: "rejected" }, { cond: "shouldRedirectToConfirmResetPassword", actions: ["setUsernameAuthAttributes", "setConfirmResetPasswordIntent"], target: "rejected" }, { actions: "setRemoteError", target: "edit" }] } }, verifying: { tags: ["pending"], entry: ["clearError", "sendUpdate"], invoke: { src: "checkVerifiedContact", onDone: [{ cond: "shouldRequestVerification", target: "#signInActor.verifyUser", actions: "setUnverifiedAttributes" }, { target: "resolved" }], onError: { actions: "setRemoteError", target: "edit" } } }, resolved: { always: "#signInActor.resolved" }, rejected: { always: "#signInActor.rejected" } } }, autoSignIn: { initial: "submit", states: { submit: { tags: ["pending"], entry: ["clearError", "sendUpdate"], invoke: { src: "signIn", onDone: [{ cond: "shouldSetupTOTP", actions: ["setUser", "setChallengeName"], target: "#signInActor.setupTOTP" }, { cond: "shouldConfirmSignIn", actions: ["setUser", "setChallengeName"], target: "#signInActor.confirmSignIn" }, { cond: "shouldForceChangePassword", actions: ["setUser", "setChallengeName", "setRequiredAttributes"], target: "#signInActor.forceNewPassword" }, { actions: "setUser", target: "#signInActor.resolved" }], onError: [{ cond: "shouldRedirectToConfirmSignUp", actions: ["setCredentials", "setConfirmSignUpIntent"], target: "#signInActor.rejected" }, { cond: "shouldRedirectToConfirmResetPassword", actions: ["setUsernameAuthAttributes", "setConfirmResetPasswordIntent"], target: "#signInActor.rejected" }, { actions: "setRemoteError", target: "#signInActor.signIn" }] } } } }, confirmSignIn: { initial: "edit", exit: ["clearFormValues", "clearError", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SIGN_IN: "#signInActor.signIn", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: ["clearError", "sendUpdate"], invoke: { src: "confirmSignIn", onDone: { target: "#signInActor.resolved", actions: ["setUser", "clearChallengeName", "clearRequiredAttributes"] }, onError: { target: "edit", actions: "setRemoteError" } } } } }, forceNewPassword: { type: "parallel", exit: ["clearFormValues", "clearError", "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: { SIGN_IN: "#signInActor.signIn", CHANGE: { actions: "handleInput", target: ".pending" }, BLUR: { actions: "handleBlur", target: ".pending" } } }, submit: { initial: "idle", entry: "clearError", states: { idle: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "validate" } } }, validate: { entry: "sendUpdate", invoke: { src: "validateFields", onDone: { target: "pending", actions: "clearValidationError" }, onError: { target: "idle", actions: "setFieldErrors" } } }, pending: { tags: ["pending"], entry: ["sendUpdate", "clearError"], invoke: { src: "forceNewPassword", onDone: [{ cond: "shouldConfirmSignIn", actions: ["setUser", "setChallengeName"], target: "#signInActor.confirmSignIn" }, { cond: "shouldSetupTOTP", actions: ["setUser", "setChallengeName"], target: "#signInActor.setupTOTP" }, { target: "resolved", actions: ["setUser", "setCredentials"] }], onError: { target: "idle", actions: "setRemoteError" } } }, resolved: { type: "final", always: "#signInActor.resolved" } } } } }, setupTOTP: { initial: "edit", exit: ["clearFormValues", "clearError", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SIGN_IN: "#signInActor.signIn", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: ["sendUpdate", "clearError"], invoke: { src: "verifyTotpToken", onDone: { actions: ["clearChallengeName", "clearRequiredAttributes"], target: "#signInActor.resolved" }, onError: { actions: "setRemoteError", target: "edit" } } } } }, verifyUser: { initial: "edit", exit: ["clearFormValues", "clearError", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SKIP: "#signInActor.resolved", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: "clearError", invoke: { src: "verifyUser", onDone: { target: "#signInActor.confirmVerifyUser" }, onError: { actions: "setRemoteError", target: "edit" } } } } }, confirmVerifyUser: { initial: "edit", exit: ["clearFormValues", "clearError", "clearUnverifiedAttributes", "clearAttributeToVerify", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SKIP: "#signInActor.resolved", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: "clearError", invoke: { src: "confirmVerifyUser", onDone: { target: "#signInActor.resolved" }, onError: { actions: "setRemoteError", target: "edit" } } } } }, resolved: { type: "final", data: function(e2) {
|
|
7007
|
+
return createMachine({ initial: "init", id: "signInActor", predictableActionArguments: true, states: { init: { always: [{ target: "autoSignIn", cond: "shouldAutoSignIn" }, { target: "signIn" }] }, signIn: { initial: "edit", exit: ["clearFormValues", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, CHANGE: { actions: "handleInput" }, FEDERATED_SIGN_IN: "federatedSignIn" } }, federatedSignIn: { tags: ["pending"], entry: ["sendUpdate", "clearError"], invoke: { src: "federatedSignIn", onError: { actions: "setRemoteError" } } }, submit: { tags: ["pending"], entry: ["parsePhoneNumber", "clearError", "sendUpdate"], invoke: { src: "signIn", onDone: [{ cond: "shouldSetupTOTP", actions: ["setUser", "setChallengeName"], target: "#signInActor.setupTOTP" }, { cond: "shouldConfirmSignIn", actions: ["setUser", "setChallengeName"], target: "#signInActor.confirmSignIn" }, { cond: "shouldForceChangePassword", actions: ["setUser", "setChallengeName", "setRequiredAttributes"], target: "#signInActor.forceNewPassword" }, { actions: "setUser", target: "verifying" }], onError: [{ cond: "shouldRedirectToConfirmSignUp", actions: ["setCredentials", "setConfirmSignUpIntent"], target: "rejected" }, { cond: "shouldRedirectToConfirmResetPassword", actions: ["setUsernameAuthAttributes", "setConfirmResetPasswordIntent"], target: "rejected" }, { actions: "setRemoteError", target: "edit" }] } }, verifying: { tags: ["pending"], entry: ["clearError", "sendUpdate"], invoke: { src: "checkVerifiedContact", onDone: [{ cond: "shouldRequestVerification", target: "#signInActor.verifyUser", actions: "setUnverifiedAttributes" }, { target: "resolved" }], onError: { actions: "setRemoteError", target: "edit" } } }, resolved: { always: "#signInActor.resolved" }, rejected: { always: "#signInActor.rejected" } } }, autoSignIn: { initial: "submit", states: { submit: { tags: ["pending"], entry: ["clearError", "sendUpdate"], invoke: { src: "signIn", onDone: [{ cond: "shouldSetupTOTP", actions: ["setUser", "setChallengeName"], target: "#signInActor.setupTOTP" }, { cond: "shouldConfirmSignIn", actions: ["setUser", "setChallengeName"], target: "#signInActor.confirmSignIn" }, { cond: "shouldForceChangePassword", actions: ["setUser", "setChallengeName", "setRequiredAttributes"], target: "#signInActor.forceNewPassword" }, { actions: "setUser", target: "#signInActor.resolved" }], onError: [{ cond: "shouldRedirectToConfirmSignUp", actions: ["setCredentials", "setConfirmSignUpIntent"], target: "#signInActor.rejected" }, { cond: "shouldRedirectToConfirmResetPassword", actions: ["setUsernameAuthAttributes", "setConfirmResetPasswordIntent"], target: "#signInActor.rejected" }, { actions: "setRemoteError", target: "#signInActor.signIn" }] } } } }, confirmSignIn: { initial: "edit", exit: ["clearFormValues", "clearError", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SIGN_IN: "#signInActor.signIn", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: ["clearError", "sendUpdate"], invoke: { src: "confirmSignIn", onDone: { target: "#signInActor.resolved", actions: ["setUser", "clearChallengeName", "clearRequiredAttributes"] }, onError: { target: "edit", actions: "setRemoteError" } } } } }, forceNewPassword: { type: "parallel", exit: ["clearFormValues", "clearError", "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: { SIGN_IN: "#signInActor.signIn", CHANGE: { actions: "handleInput", target: ".pending" }, BLUR: { actions: "handleBlur", target: ".pending" } } }, submit: { initial: "idle", entry: "clearError", states: { idle: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "validate" } } }, validate: { entry: "sendUpdate", invoke: { src: "validateFields", onDone: { target: "pending", actions: "clearValidationError" }, onError: { target: "idle", actions: "setFieldErrors" } } }, pending: { tags: ["pending"], entry: ["sendUpdate", "clearError"], invoke: { src: "forceNewPassword", onDone: [{ cond: "shouldConfirmSignIn", actions: ["setUser", "setChallengeName"], target: "#signInActor.confirmSignIn" }, { cond: "shouldSetupTOTP", actions: ["setUser", "setChallengeName"], target: "#signInActor.setupTOTP" }, { target: "resolved", actions: ["setUser", "setCredentials"] }], onError: { target: "idle", actions: "setRemoteError" } } }, resolved: { type: "final", always: "#signInActor.resolved" } } } } }, setupTOTP: { initial: "edit", exit: ["clearFormValues", "clearError", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SIGN_IN: "#signInActor.signIn", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: ["sendUpdate", "clearError"], invoke: { src: "verifyTotpToken", onDone: { actions: ["clearChallengeName", "clearRequiredAttributes"], target: "#signInActor.resolved" }, onError: { actions: "setRemoteError", target: "edit" } } } } }, verifyUser: { initial: "edit", exit: ["clearFormValues", "clearError", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SKIP: "#signInActor.resolved", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: "clearError", invoke: { src: "verifyUser", onDone: { target: "#signInActor.confirmVerifyUser" }, onError: { actions: "setRemoteError", target: "edit" } } } } }, confirmVerifyUser: { initial: "edit", exit: ["clearFormValues", "clearError", "clearUnverifiedAttributes", "clearAttributeToVerify", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SKIP: "#signInActor.resolved", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: "clearError", invoke: { src: "confirmVerifyUser", onDone: { target: "#signInActor.resolved" }, onError: { actions: "setRemoteError", target: "edit" } } } } }, resolved: { type: "final", data: function(e2) {
|
|
6846
7008
|
return { user: e2.user };
|
|
6847
7009
|
} }, rejected: { type: "final", data: function(e2, t2) {
|
|
6848
7010
|
return { intent: e2.redirectIntent, authAttributes: e2.authAttributes };
|
|
@@ -6963,17 +7125,17 @@ function x(s$22) {
|
|
|
6963
7125
|
}, validateFields: function(r2) {
|
|
6964
7126
|
return __awaiter(this, void 0, void 0, function() {
|
|
6965
7127
|
return __generator(this, function(e2) {
|
|
6966
|
-
return [2, n(r2.formValues, r2.touched, r2.passwordSettings, [s.validateConfirmPassword])];
|
|
7128
|
+
return [2, n$1(r2.formValues, r2.touched, r2.passwordSettings, [s.validateConfirmPassword])];
|
|
6967
7129
|
});
|
|
6968
7130
|
});
|
|
6969
7131
|
} } });
|
|
6970
7132
|
}
|
|
6971
|
-
var
|
|
7133
|
+
var n = createMachine({ initial: "pending", id: "signOutActor", predictableActionArguments: true, states: { pending: { tags: ["pending"], invoke: { src: "signOut", onDone: "resolved", onError: "rejected" } }, resolved: { type: "final" }, rejected: { type: "final" } } }, { services: { signOut: function() {
|
|
6972
7134
|
return Auth.signOut();
|
|
6973
7135
|
} } });
|
|
6974
7136
|
function E(E2) {
|
|
6975
7137
|
var h2 = E2.services;
|
|
6976
|
-
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$1, setRemoteError: g, setUsername: y, sendUpdate: sendUpdate$1() }, guards: { shouldAutoConfirmReset: function(e2, r2) {
|
|
7138
|
+
return createMachine({ id: "resetPasswordActor", initial: "init", predictableActionArguments: true, 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$1, setRemoteError: g, setUsername: y, sendUpdate: sendUpdate$1() }, guards: { shouldAutoConfirmReset: function(e2, r2) {
|
|
6977
7139
|
return !(!e2.intent || "confirmPasswordReset" !== e2.intent);
|
|
6978
7140
|
} }, services: { resetPassword: function(t2) {
|
|
6979
7141
|
return __awaiter(this, void 0, void 0, function() {
|
|
@@ -6989,10 +7151,10 @@ function E(E2) {
|
|
|
6989
7151
|
return e2 = t2.username, n2 = t2.formValues, s2 = n2.confirmation_code, o2 = n2.password, [2, h2.handleForgotPasswordSubmit({ username: e2, code: s2, password: o2 })];
|
|
6990
7152
|
});
|
|
6991
7153
|
});
|
|
6992
|
-
}, validateFields: function(t2,
|
|
7154
|
+
}, validateFields: function(t2, n2) {
|
|
6993
7155
|
return __awaiter(this, void 0, void 0, function() {
|
|
6994
7156
|
return __generator(this, function(e2) {
|
|
6995
|
-
return [2, n(t2.formValues, t2.touched, t2.passwordSettings, [s.validateConfirmPassword])];
|
|
7157
|
+
return [2, n$1(t2.formValues, t2.touched, t2.passwordSettings, [s.validateConfirmPassword])];
|
|
6996
7158
|
});
|
|
6997
7159
|
});
|
|
6998
7160
|
} } });
|
|
@@ -7434,7 +7596,7 @@ function pickBy(object, predicate) {
|
|
|
7434
7596
|
var pickBy_1 = pickBy;
|
|
7435
7597
|
function C(C2) {
|
|
7436
7598
|
var I = C2.services;
|
|
7437
|
-
return createMachine({ id: "signUpActor", initial: "init", states: { init: { always: [{ target: "confirmSignUp", cond: "shouldInitConfirmSignUp" }, { target: "signUp" }] }, signUp: { type: "parallel", exit: ["clearError", "clearFormValues", "clearTouched"], states: { validation: { initial: "pending", states: { pending: { invoke: { src: "validateSignUp", 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" }, FEDERATED_SIGN_IN: "federatedSignIn" } }, federatedSignIn: { tags: ["pending"], entry: ["sendUpdate", "clearError"], invoke: { src: "federatedSignIn", onDone: "#signUpActor.resolved", onError: { actions: "setRemoteError" } } }, validate: { entry: "sendUpdate", invoke: { src: "validateSignUp", onDone: { target: "pending", actions: "clearValidationError" }, onError: { target: "idle", actions: "setFieldErrors" } } }, pending: { tags: ["pending"], entry: ["parsePhoneNumber", "sendUpdate", "clearError"], invoke: { src: "signUp", onDone: [{ cond: "shouldSkipConfirm", target: "skipConfirm", actions: ["setUser", "setCredentials"] }, { target: "resolved", actions: ["setUser", "setCredentials", "setCodeDeliveryDetails"] }], onError: { target: "idle", actions: "setRemoteError" } } }, skipConfirm: { always: { target: "#signUpActor.resolved", actions: "setAutoSignInIntent" } }, resolved: { type: "final", always: "#signUpActor.confirmSignUp" } } } } }, confirmSignUp: { initial: "edit", states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, CHANGE: { actions: "handleInput" }, BLUR: { actions: "handleBlur" }, RESEND: "resend" } }, resend: { tags: ["pending"], entry: "sendUpdate", invoke: { src: "resendConfirmationCode", onDone: { target: "edit" }, onError: [{ target: "#signUpActor.resolved", actions: "setAutoSignInIntent", cond: "isUserAlreadyConfirmed" }, { target: "edit", actions: "setRemoteError" }] } }, submit: { tags: ["pending"], entry: ["sendUpdate", "clearError"], invoke: { src: "confirmSignUp", onDone: { target: "#signUpActor.resolved", actions: "setAutoSignInIntent" }, onError: { target: "edit", actions: "setRemoteError" } } } } }, resolved: { type: "final", data: function(e2, n2) {
|
|
7599
|
+
return createMachine({ id: "signUpActor", initial: "init", predictableActionArguments: true, states: { init: { always: [{ target: "confirmSignUp", cond: "shouldInitConfirmSignUp" }, { target: "signUp" }] }, signUp: { type: "parallel", exit: ["clearError", "clearFormValues", "clearTouched"], states: { validation: { initial: "pending", states: { pending: { invoke: { src: "validateSignUp", 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" }, FEDERATED_SIGN_IN: "federatedSignIn" } }, federatedSignIn: { tags: ["pending"], entry: ["sendUpdate", "clearError"], invoke: { src: "federatedSignIn", onDone: "#signUpActor.resolved", onError: { actions: "setRemoteError" } } }, validate: { entry: "sendUpdate", invoke: { src: "validateSignUp", onDone: { target: "pending", actions: "clearValidationError" }, onError: { target: "idle", actions: "setFieldErrors" } } }, pending: { tags: ["pending"], entry: ["parsePhoneNumber", "sendUpdate", "clearError"], invoke: { src: "signUp", onDone: [{ cond: "shouldSkipConfirm", target: "skipConfirm", actions: ["setUser", "setCredentials"] }, { target: "resolved", actions: ["setUser", "setCredentials", "setCodeDeliveryDetails"] }], onError: { target: "idle", actions: "setRemoteError" } } }, skipConfirm: { always: { target: "#signUpActor.resolved", actions: "setAutoSignInIntent" } }, resolved: { type: "final", always: "#signUpActor.confirmSignUp" } } } } }, confirmSignUp: { initial: "edit", states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, CHANGE: { actions: "handleInput" }, BLUR: { actions: "handleBlur" }, RESEND: "resend" } }, resend: { tags: ["pending"], entry: "sendUpdate", invoke: { src: "resendConfirmationCode", onDone: { target: "edit" }, onError: [{ target: "#signUpActor.resolved", actions: "setAutoSignInIntent", cond: "isUserAlreadyConfirmed" }, { target: "edit", actions: "setRemoteError" }] } }, submit: { tags: ["pending"], entry: ["sendUpdate", "clearError"], invoke: { src: "confirmSignUp", onDone: { target: "#signUpActor.resolved", actions: "setAutoSignInIntent" }, onError: { target: "edit", actions: "setRemoteError" } } } } }, resolved: { type: "final", data: function(e2, n2) {
|
|
7438
7600
|
var t2 = e2.authAttributes, i2 = t2.username, a2 = t2.password;
|
|
7439
7601
|
return { user: get_1(n2, "data.user") || e2.user, authAttributes: { username: i2, password: a2 }, intent: e2.intent };
|
|
7440
7602
|
} } } }, { guards: { isUserAlreadyConfirmed: function(e2, n2) {
|
|
@@ -7514,13 +7676,13 @@ function C(C2) {
|
|
|
7514
7676
|
}, validateSignUp: function(t2, r2) {
|
|
7515
7677
|
return __awaiter(this, void 0, void 0, function() {
|
|
7516
7678
|
return __generator(this, function(e2) {
|
|
7517
|
-
return [2, n(t2.formValues, t2.touched, t2.passwordSettings, [I.validateFormPassword, I.validateConfirmPassword, I.validatePreferredUsername, I.validateCustomSignUp])];
|
|
7679
|
+
return [2, n$1(t2.formValues, t2.touched, t2.passwordSettings, [I.validateFormPassword, I.validateConfirmPassword, I.validatePreferredUsername, I.validateCustomSignUp])];
|
|
7518
7680
|
});
|
|
7519
7681
|
});
|
|
7520
7682
|
} } });
|
|
7521
7683
|
}
|
|
7522
7684
|
function f() {
|
|
7523
|
-
return createMachine({ id: "authenticator", initial: "idle", context: { user: void 0, config: {}, services: s, 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: "#authenticator.signIn", actions: "setActorDoneData", cond: "shouldAutoSignIn" } } }, 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_IN: { actions: "forwardToActor" }, SKIP: { actions: "forwardToActor" } } }, { actions: { forwardToActor: choose_1([{ cond: "hasActor", actions: forwardTo$1(function(t2) {
|
|
7685
|
+
return createMachine({ id: "authenticator", initial: "idle", context: { user: void 0, config: {}, services: s, actorRef: void 0, hasSetup: false }, predictableActionArguments: true, 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: "#authenticator.signIn", actions: "setActorDoneData", cond: "shouldAutoSignIn" } } }, 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_IN: { actions: "forwardToActor" }, SKIP: { actions: "forwardToActor" } } }, { actions: { forwardToActor: choose_1([{ cond: "hasActor", actions: forwardTo$1(function(t2) {
|
|
7524
7686
|
return t2.actorRef;
|
|
7525
7687
|
}) }]), setUser: assign$2({ user: function(t2, o2) {
|
|
7526
7688
|
return o2.data;
|
|
@@ -7541,8 +7703,8 @@ function f() {
|
|
|
7541
7703
|
return t3.toLowerCase();
|
|
7542
7704
|
})) && void 0 !== d2 ? d2 : [], w2 = n2.data.aws_cognito_password_protection_settings || {};
|
|
7543
7705
|
0 === g2.length && g2.push("username");
|
|
7544
|
-
var
|
|
7545
|
-
return { loginMechanisms: null !=
|
|
7706
|
+
var m2 = t2.config, S = m2.loginMechanisms, h2 = m2.signUpAttributes, D2 = m2.socialProviders, I = m2.initialState;
|
|
7707
|
+
return { loginMechanisms: null != S ? S : g2, formFields: null !== (l2 = p(m2.formFields)) && void 0 !== l2 ? l2 : {}, passwordSettings: w2, signUpAttributes: null != h2 ? h2 : Array.from(new Set(__spreadArray$1(__spreadArray$1([], v2, true), f2, true))), socialProviders: null != D2 ? D2 : A2.sort(), initialState: I };
|
|
7546
7708
|
} }), spawnSignInActor: assign$2({ actorRef: function(t2, o2) {
|
|
7547
7709
|
var n2, r2, i2, e2, s2, c2, d2 = t2.services, l2 = x({ services: d2 }).withContext({ authAttributes: null !== (r2 = null === (n2 = t2.actorDoneData) || void 0 === n2 ? void 0 : n2.authAttributes) && void 0 !== r2 ? r2 : {}, user: t2.user, intent: null === (i2 = t2.actorDoneData) || void 0 === i2 ? void 0 : i2.intent, country_code: "+1", formValues: {}, touched: {}, validationError: {}, loginMechanisms: null === (e2 = t2.config) || void 0 === e2 ? void 0 : e2.loginMechanisms, socialProviders: null === (s2 = t2.config) || void 0 === s2 ? void 0 : s2.socialProviders, formFields: null === (c2 = t2.config) || void 0 === c2 ? void 0 : c2.formFields });
|
|
7548
7710
|
return spawn(l2, { name: "signInActor" });
|
|
@@ -7552,10 +7714,10 @@ function f() {
|
|
|
7552
7714
|
} }), spawnResetPasswordActor: assign$2({ actorRef: function(t2, o2) {
|
|
7553
7715
|
var n2, r2, i2, e2, s2 = t2.services, c2 = E({ services: s2 }).withContext({ formValues: {}, touched: {}, intent: null === (n2 = t2.actorDoneData) || void 0 === n2 ? void 0 : n2.intent, username: null === (i2 = null === (r2 = t2.actorDoneData) || void 0 === r2 ? void 0 : r2.authAttributes) || void 0 === i2 ? void 0 : i2.username, formFields: null === (e2 = t2.config) || void 0 === e2 ? void 0 : e2.formFields, validationError: {} });
|
|
7554
7716
|
return spawn(c2, { name: "resetPasswordActor" });
|
|
7555
|
-
} }), spawnSignOutActor: assign$2({ actorRef: function(
|
|
7556
|
-
var o2 =
|
|
7717
|
+
} }), spawnSignOutActor: assign$2({ actorRef: function(t2) {
|
|
7718
|
+
var o2 = n.withContext({ user: t2.user });
|
|
7557
7719
|
return spawn(o2, { name: "signOutActor" });
|
|
7558
|
-
} }), stopSignInActor: t
|
|
7720
|
+
} }), stopSignInActor: t("signInActor"), stopSignUpActor: t("signUpActor"), stopResetPasswordActor: t("resetPasswordActor"), stopSignOutActor: t("signOutActor"), configure: assign$2(function(o2, r2) {
|
|
7559
7721
|
var i2 = r2.data, e2 = i2.services, a2 = __rest$2(i2, ["services"]);
|
|
7560
7722
|
return { services: __assign$2(__assign$2({}, s), e2), config: a2 };
|
|
7561
7723
|
}), setHasSetup: assign$2({ hasSetup: true }) }, guards: { isInitialStateSignUp: function(t2) {
|
|
@@ -8476,7 +8638,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
8476
8638
|
const signInButtonText = computed(() => b$1("Sign in"));
|
|
8477
8639
|
const signIngButtonText = computed(() => b$1("Signing in"));
|
|
8478
8640
|
const { state, send: send2 } = useAuth();
|
|
8479
|
-
const actorState = computed(() => t$
|
|
8641
|
+
const actorState = computed(() => t$2(state.value));
|
|
8480
8642
|
const onInput = (e2) => {
|
|
8481
8643
|
const { name, value } = e2.target;
|
|
8482
8644
|
send2({
|
|
@@ -8492,7 +8654,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
8492
8654
|
}
|
|
8493
8655
|
};
|
|
8494
8656
|
const submit = (e2) => {
|
|
8495
|
-
props.submitForm(n$
|
|
8657
|
+
props.submitForm(n$3(e2));
|
|
8496
8658
|
};
|
|
8497
8659
|
const onForgotPasswordClicked = () => {
|
|
8498
8660
|
if (attrs == null ? void 0 : attrs.onForgotPasswordClicked) {
|
|
@@ -8633,7 +8795,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
8633
8795
|
}
|
|
8634
8796
|
};
|
|
8635
8797
|
const submit = (e2) => {
|
|
8636
|
-
props.submitForm(n$
|
|
8798
|
+
props.submitForm(n$3(e2));
|
|
8637
8799
|
};
|
|
8638
8800
|
return (_ctx, _cache) => {
|
|
8639
8801
|
const _component_base_field_set = _sfc_main$y;
|
|
@@ -8830,7 +8992,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
8830
8992
|
}
|
|
8831
8993
|
};
|
|
8832
8994
|
const submit = (e2) => {
|
|
8833
|
-
submitForm(n$
|
|
8995
|
+
submitForm(n$3(e2));
|
|
8834
8996
|
};
|
|
8835
8997
|
const onLostCodeClicked = () => {
|
|
8836
8998
|
if (attrs == null ? void 0 : attrs.onLostCodeClicked) {
|
|
@@ -8946,7 +9108,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
8946
9108
|
const { state, send: send2 } = useAuth();
|
|
8947
9109
|
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
8948
9110
|
const props = useAuthShared();
|
|
8949
|
-
const actorState = computed(() => t$
|
|
9111
|
+
const actorState = computed(() => t$2(state.value));
|
|
8950
9112
|
const challengeName = actorState.value.context.challengeName;
|
|
8951
9113
|
let mfaType = "SMS";
|
|
8952
9114
|
if (challengeName === "SOFTWARE_TOKEN_MFA") {
|
|
@@ -8970,7 +9132,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
8970
9132
|
}
|
|
8971
9133
|
};
|
|
8972
9134
|
const submit = (e2) => {
|
|
8973
|
-
props.submitForm(n$
|
|
9135
|
+
props.submitForm(n$3(e2));
|
|
8974
9136
|
};
|
|
8975
9137
|
const onBackToSignInClicked = () => {
|
|
8976
9138
|
if (attrs == null ? void 0 : attrs.onBackToSignInClicked) {
|
|
@@ -11108,7 +11270,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
11108
11270
|
const { value: { context } } = state;
|
|
11109
11271
|
const formOverrides = (_b = (_a2 = context == null ? void 0 : context.config) == null ? void 0 : _a2.formFields) == null ? void 0 : _b.setupTOTP;
|
|
11110
11272
|
const QROR = formOverrides == null ? void 0 : formOverrides["QR"];
|
|
11111
|
-
const actorState = computed(() => t$
|
|
11273
|
+
const actorState = computed(() => t$2(state.value));
|
|
11112
11274
|
let qrCode = reactive({
|
|
11113
11275
|
qrCodeImageSource: "",
|
|
11114
11276
|
isLoading: true
|
|
@@ -11155,7 +11317,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
11155
11317
|
}
|
|
11156
11318
|
};
|
|
11157
11319
|
const submit = (e2) => {
|
|
11158
|
-
props.submitForm(n$
|
|
11320
|
+
props.submitForm(n$3(e2));
|
|
11159
11321
|
};
|
|
11160
11322
|
const onBackToSignInClicked = () => {
|
|
11161
11323
|
if (attrs == null ? void 0 : attrs.onBackToSignInClicked) {
|
|
@@ -11314,7 +11476,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
11314
11476
|
const { state, send: send2 } = useAuth();
|
|
11315
11477
|
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
11316
11478
|
const props = useAuthShared();
|
|
11317
|
-
const actorState = computed(() => t$
|
|
11479
|
+
const actorState = computed(() => t$2(state.value));
|
|
11318
11480
|
const changePasswordLabel = computed(() => b$1("Change Password"));
|
|
11319
11481
|
const changingPasswordLabel = computed(() => b$1("Changing"));
|
|
11320
11482
|
const backSignInText = computed(() => b$1("Back to Sign In"));
|
|
@@ -11335,7 +11497,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
11335
11497
|
}
|
|
11336
11498
|
};
|
|
11337
11499
|
const submit = (e2) => {
|
|
11338
|
-
props.submitForm(n$
|
|
11500
|
+
props.submitForm(n$3(e2));
|
|
11339
11501
|
};
|
|
11340
11502
|
const onInput = (e2) => {
|
|
11341
11503
|
const { name, value } = e2.target;
|
|
@@ -11467,7 +11629,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
11467
11629
|
}
|
|
11468
11630
|
};
|
|
11469
11631
|
const submit = (e2) => {
|
|
11470
|
-
submitForm(n$
|
|
11632
|
+
submitForm(n$3(e2));
|
|
11471
11633
|
};
|
|
11472
11634
|
const onInput = (e2) => {
|
|
11473
11635
|
const { name, value } = e2.target;
|
|
@@ -11581,7 +11743,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
11581
11743
|
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
11582
11744
|
const props = useAuthShared();
|
|
11583
11745
|
const attrs = useAttrs();
|
|
11584
|
-
const actorState = computed(() => t$
|
|
11746
|
+
const actorState = computed(() => t$2(state.value));
|
|
11585
11747
|
const resendCodeText = computed(() => b$1("Resend Code"));
|
|
11586
11748
|
const confirmResetPasswordHeading = computed(() => b$1("Reset your Password"));
|
|
11587
11749
|
const confirmResetPasswordText = computed(() => b$1("Submit"));
|
|
@@ -11593,7 +11755,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
11593
11755
|
}
|
|
11594
11756
|
};
|
|
11595
11757
|
const submit = (e2) => {
|
|
11596
|
-
props.submitForm(n$
|
|
11758
|
+
props.submitForm(n$3(e2));
|
|
11597
11759
|
};
|
|
11598
11760
|
const onLostYourCodeClicked = () => {
|
|
11599
11761
|
send2({
|
|
@@ -11718,7 +11880,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
11718
11880
|
const props = useAuthShared();
|
|
11719
11881
|
const attrs = useAttrs();
|
|
11720
11882
|
const { state, send: send2 } = useAuth();
|
|
11721
|
-
const actorState = computed(() => t$
|
|
11883
|
+
const actorState = computed(() => t$2(state.value));
|
|
11722
11884
|
const unverifiedAttributes = actorState.value.context.unverifiedAttributes;
|
|
11723
11885
|
const verifyHeading = computed(() => b$1("Account recovery requires verified contact information"));
|
|
11724
11886
|
const skipText = computed(() => b$1("Skip"));
|
|
@@ -11739,7 +11901,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
11739
11901
|
}
|
|
11740
11902
|
};
|
|
11741
11903
|
const submit = (e2) => {
|
|
11742
|
-
props.submitForm(n$
|
|
11904
|
+
props.submitForm(n$3(e2));
|
|
11743
11905
|
};
|
|
11744
11906
|
const onSkipClicked = () => {
|
|
11745
11907
|
if (attrs == null ? void 0 : attrs.onSkipClicked) {
|
|
@@ -11904,7 +12066,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
11904
12066
|
const props = useAuthShared();
|
|
11905
12067
|
const attrs = useAttrs();
|
|
11906
12068
|
const { state, send: send2 } = useAuth();
|
|
11907
|
-
const actorState = computed(() => t$
|
|
12069
|
+
const actorState = computed(() => t$2(state.value));
|
|
11908
12070
|
const verifyHeading = computed(() => b$1("Account recovery requires verified contact information"));
|
|
11909
12071
|
const skipText = computed(() => b$1("Skip"));
|
|
11910
12072
|
const submitText = computed(() => b$1("Submit"));
|
|
@@ -11923,7 +12085,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
11923
12085
|
}
|
|
11924
12086
|
};
|
|
11925
12087
|
const submit = (e2) => {
|
|
11926
|
-
props.submitForm(n$
|
|
12088
|
+
props.submitForm(n$3(e2));
|
|
11927
12089
|
};
|
|
11928
12090
|
const onSkipClicked = () => {
|
|
11929
12091
|
if (attrs == null ? void 0 : attrs.onSkipClicked) {
|
|
@@ -12099,7 +12261,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
12099
12261
|
if (unsubscribeMachine)
|
|
12100
12262
|
unsubscribeMachine();
|
|
12101
12263
|
});
|
|
12102
|
-
const actorState = computed(() => t$
|
|
12264
|
+
const actorState = computed(() => t$2(state.value));
|
|
12103
12265
|
const signInComponent = ref();
|
|
12104
12266
|
const signUpComponent = ref();
|
|
12105
12267
|
const confirmSignUpComponent = ref();
|