@aws-amplify/ui-vue 2.4.2 → 2.4.3

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.js CHANGED
@@ -33,36 +33,48 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
33
33
  };
34
34
  }
35
35
  });
36
+ const _hoisted_1$b = ["data-loading", "data-disabled", "disabled"];
36
37
  const _sfc_main$x = /* @__PURE__ */ defineComponent({
37
38
  props: {
38
39
  type: null,
39
40
  fullWidth: { type: [Boolean, String] },
40
41
  size: null,
41
42
  variation: null,
42
- fontWeight: null
43
+ fontWeight: null,
44
+ loading: { type: [Boolean, String] },
45
+ disabled: { type: [Boolean, String] }
43
46
  },
44
47
  setup(__props) {
45
48
  const { type, fullWidth, size, variation, fontWeight } = __props;
46
49
  return (_ctx, _cache) => {
47
50
  return renderSlot(_ctx.$slots, "buttont", normalizeProps(guardReactiveProps(_ctx.$attrs)), () => [
48
51
  createElementVNode("button", mergeProps({
49
- class: "amplify-button",
52
+ class: ["amplify-button", {
53
+ [`amplify-button--${variation}`]: variation,
54
+ [`amplify-button--${size}`]: size,
55
+ "amplify-button--fullwidth": fullWidth,
56
+ "amplify-button--loading": __props.loading,
57
+ "amplify-button--disabled": __props.disabled
58
+ }],
50
59
  type,
51
60
  style: { fontWeight },
52
61
  "data-fullwidth": fullWidth,
53
62
  "data-size": size,
54
63
  "data-fontWeight": fontWeight,
55
- "data-variation": variation
64
+ "data-variation": variation,
65
+ "data-loading": __props.loading,
66
+ "data-disabled": __props.disabled,
67
+ disabled: __props.disabled
56
68
  }, _ctx.$attrs, { "data-amplify-button": "" }), [
57
69
  renderSlot(_ctx.$slots, "default")
58
- ], 16)
70
+ ], 16, _hoisted_1$b)
59
71
  ]);
60
72
  };
61
73
  }
62
74
  });
63
75
  const _hoisted_1$a = {
64
76
  key: 0,
65
- class: "amplify-flex amplify-alert amplify-authenticator__base",
77
+ class: "amplify-flex amplify-alert amplify-alert--error amplify-authenticator__base",
66
78
  "data-variation": "error",
67
79
  role: "alert"
68
80
  };
@@ -100,8 +112,8 @@ const _sfc_main$w = {
100
112
  ]),
101
113
  createVNode(_component_amplify_button, {
102
114
  class: "amplify-field-group__control",
103
- "data-fullwidth": "false",
104
- "data-variation": "link",
115
+ fullwidth: false,
116
+ variation: "link",
105
117
  type: "button",
106
118
  onClick: close
107
119
  }, {
@@ -633,7 +645,7 @@ var e$2 = { "Account recovery requires verified contact information": "F\xF6r at
633
645
  var a$1 = { "Account recovery requires verified contact information": "Pemulihan akun memerlukan informasi kontak terverifikasi", "An account with the given email already exists.": "Akun dengan email tersebut sudah terdaftar.", "Attempt limit exceeded, please try after some time.": "Batas percobaan terlampaui, mohon coba lagi setelah beberapa waktu.", "Back to Sign In": "Kembali ke Masuk", "Cannot reset password for the user as there is no registered/verified email or phone_number": "Tidak dapat mengatur ulang kata sandi karena tidak ada email terdaftar / terverifikasi atau nomor telepon", Change: "Ubah", "Change Password": "Ubah kata sandi", Code: "Kode", Confirm: "Konfirmasi", "Confirm a Code": "Konfirmasi kode", "Confirm Password": "Konfirmasi kata sandi", "Confirmation Code": "Kode Konfirmasi", "Create a new account": "Buat akun baru", "Create account": "Buat akun", "Create Account": "Buat Akun", "Creating Account": "Membuat Akun", Confirming: "Mengkonfirmasi", Email: "Email", "Enter your code": "Masukkan kode anda", "Enter your email": "Masukkan email anda", "Enter your password": "Masukkan kata sandi anda", "Enter your phone number": "Masukkan nomor telepon anda", "Enter your username": "Masukkan nama akun anda", "Forgot Password": "Lupa kata sandi", "Forgot your password?": "Lupa kata sandi? ", "Have an account? ": "Sudah punya akun? ", Hello: "Halo", "Incorrect username or password.": "Nama akun atau kata sandi salah.", "Invalid phone number format": "Nomor telepon tidak sesuai dengan format.", "Invalid verification code provided, please try again.": "Kode verifikasi tidak sesuai, mohon coba lagi.", "It may take a minute to arrive.": "Mungkin perlu beberapa waktu untuk tiba.", "Lost your code? ": "Kode anda hilang?", Name: "Nama", "Network error": "Galat jaringan", "New password": "Kata sandi baru", "No account? ": "Tidak ada akun?", or: "atau", Password: "Kata sandi", "Password did not conform with policy: Password not long enough": "Kata sandi tidak sesuai dengan aturan: Kata sandi kurang panjang", "Phone Number": "Nomor telepon", "Resend a Code": "Renvoyer un code", "Resend Code": "Kirim ulang kodenya", "Reset password": "Ubah kata sandi anda", "Reset your password": "Ubah kata sandi anda", Send: "Kirim", "Send Code": "Kirim Kode", "Send code": "Kirim kode", Sending: "Mengirim", "Sign in": "Masuk", "Sign In": "Masuk", "Sign in to your account": "Masuk akun anda", "Sign In with Amazon": "Masuk dengan Amazon", "Sign In with AWS": "Masuk dengan AWS", "Sign In with Facebook": "Masuk dengan Facebook", "Sign In with Google": "Masuk dengan Google", "Sign Up with Amazon": "Daftar dengan Amazon", "Sign Up with AWS": "Daftar dengan AWS", "Sign Up with Facebook": "Daftar dengan Facebook", "Sign Up with Google": "Daftar dengan Google", "Signing in": "Memasuki", Skip: "Lewati", SMS: "SMS", Submit: "Ajukan", Submitting: "Mengajukan", "User is disabled.": "Akun dinonaktifkan.", "User already exists": "Akun sudah terdaftar", "User does not exist.": "Akun tidak terdaftar.", Username: "Nama akun", "Username cannot be empty": "Nama akun tidak boleh kosong", "Username/client id combination not found.": "Nama akun atau id tidak ditemukan.", Verify: "Verifikasi", "Verify Contact": "Verifikasi Kontak", "We Emailed You": "Kami mengirimkanmu email", "Your code is on the way. To log in, enter the code we emailed to": "Kode anda dalam pengiriman. Untuk masuk, masukkan kode yang kami emailkan ke", "Your code is on the way. To log in, enter the code we texted to": "Kode anda dalam pengiriman. Untuk masuk, masukkan kode yang kami tuliskan ke", "Your passwords must match": "Kata sandi harus sama" };
634
646
  var e$1 = { "Account recovery requires verified contact information": "Hesap kurtarma, do\u011Frulanm\u0131\u015F ileti\u015Fim bilgilerini gerektirir", "An account with the given email already exists.": "Bu e-postaya ait zaten bir hesap var.", "Back to Sign In": "Oturum A\xE7maya Geri D\xF6n", "Change Password": "\u015Eifreyi De\u011Fi\u015Ftir", Changing: "De\u011Fi\u015Ftiriliyor", Code: "Kod", Confirm: "Do\u011Frula", "Confirm Password": "\u015Eifreyi Do\u011Frula", "Confirm Sign In": "Oturum A\xE7may\u0131 Do\u011Frula", "Confirm Sign Up": "Kay\u0131t \u0130\u015Flemini Do\u011Frula", "Confirm SMS Code": "SMS Kodunu Do\u011Frula", "Confirm TOTP Code": "Tek Kullan\u0131ml\u0131k \u015Eifreyi Do\u011Frula", "Confirmation Code": "Do\u011Frulama Kodu", Confirming: "Do\u011Frulan\u0131yor", "Create Account": "Hesap Olu\u015Ftur", "Creating Account": "Hesap Olu\u015Fturuluyor", Email: "E-posta", "Enter your code": "Kodu girin", "Enter your username": "Kullan\u0131c\u0131 ad\u0131n\u0131z\u0131 girin", "Enter your phone number": "Telefon numaran\u0131z\u0131 girin", "Enter your email": "E-posta adresinizi girin", "Forgot your password?": "\u015Eifrenizi mi unuttunuz?", "Hide password": "\u015Eifreyi gizle", "Have an account? ": "Hesab\u0131n\u0131z var m\u0131? ", "Incorrect username or password": "Yanl\u0131\u015F kullan\u0131c\u0131 ad\u0131 ya da \u015Fifre", "Invalid password format": "Ge\xE7ersiz parola format\u0131", "Invalid phone number format": "Ge\xE7ersiz telefon numaras\u0131 format\u0131", "Lost your code? ": "Kodu mu kaybettiniz? ", Loading: "Y\xFCkleniyor", "New password": "Yeni \u015Fifre", "No account? ": "Hesab\u0131n\u0131z yok mu? ", or: "veya", Password: "\u015Eifre", "Password attempts exceeded": "Maksimum oturum a\xE7ma giri\u015Fimi a\u015F\u0131ld\u0131", "Phone Number": "Telefon Numaras\u0131", "Resend Code": "Kodu Yeniden G\xF6nder", "Reset your password": "\u015Eifrenizi s\u0131f\u0131rlay\u0131n", "Reset your Password": "\u015Eifrenizi S\u0131f\u0131rlay\u0131n", "Send Code": "Kod G\xF6nder", "Send code": "Kod g\xF6nder", Sending: "G\xF6nderiliyor", "Setup TOTP": "Tek kullan\u0131ml\u0131k \u015Fifre kurulumu yap", "Show password": "\u015Eifreyi g\xF6ster", "Sign in": "Oturum a\xE7", "Sign In": "Oturum A\xE7", "Sign In with Amazon": "Amazon ile Oturum A\xE7", "Sign In with Apple": "Apple ile Oturum A\xE7", "Sign In with Facebook": "Facebook ile Oturum A\xE7", "Sign In with Google": "Google ile Oturum A\xE7", "Sign in to your account": "Hesab\u0131n\u0131zda oturum a\xE7\u0131n", "Create a new account": "Yeni bir hesap olu\u015Ftur", "Signing in": "Oturum a\xE7\u0131l\u0131yor", "Sign Out": "\xC7\u0131k\u0131\u015F yap", "Sign Up": "Kay\u0131t Ol", Skip: "Atla", Submit: "G\xF6nder", Submitting: "G\xF6nderiliyor", "User already exists": "Bu kullan\u0131c\u0131 zaten var", "User does not exist": "B\xF6yle bir kullan\u0131c\u0131 mevcut de\u011Fil", Username: "Kullan\u0131c\u0131 ad\u0131", "Username cannot be empty": "Kullan\u0131c\u0131 ad\u0131 bo\u015F olamaz", "Verify Contact": "Ki\u015Fiyi Do\u011Frula", Verify: "Do\u011Frula" };
635
647
  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" };
636
- var l$2 = t$4({}, e$6), d$2 = t$4({}, n$3), v$2 = t$4({}, n$2), x$1 = t$4({}, e$5), b$2 = t$4({}, o$7), k$1 = t$4({}, o$6), z = t$4({}, e$4), T = t$4({}, e$3), _$1 = t$4({}, o$5), g$2 = t$4({}, o$4), q$1 = t$4({}, r$1), w$1 = t$4({}, e$2), y$1 = t$4({}, a$1), A$1 = t$4({}, e$1), B = t$4({}, N$1);
648
+ var l$2 = t$4({}, e$6), d$2 = t$4({}, n$3), v$1 = t$4({}, n$2), x$1 = t$4({}, e$5), b$2 = t$4({}, o$7), k$1 = t$4({}, o$6), z = t$4({}, e$4), T = t$4({}, e$3), _$1 = t$4({}, o$5), g$2 = t$4({}, o$4), q$1 = t$4({}, r$1), w$1 = t$4({}, e$2), y$1 = t$4({}, a$1), A$1 = t$4({}, e$1), B = t$4({}, N$1);
637
649
  t$4({}, B);
638
650
  function g$1(r2) {
639
651
  return I18n.get(r2);
@@ -641,7 +653,7 @@ function g$1(r2) {
641
653
  function x(r2) {
642
654
  return I18n.get(r2) !== r2;
643
655
  }
644
- var h$1 = { de: l$2, en: d$2, es: v$2, fr: x$1, id: y$1, it: b$2, ja: k$1, kr: z, nl: T, pl: _$1, pt: g$2, zh: q$1, sv: w$1, tr: A$1 };
656
+ var h$1 = { de: l$2, en: d$2, es: v$1, fr: x$1, id: y$1, it: b$2, ja: k$1, kr: z, nl: T, pl: _$1, pt: g$2, zh: q$1, sv: w$1, tr: A$1 };
645
657
  var l$1 = { birthdate: { label: "Birthdate", labelHidden: true, placeholder: "Birthdate", type: "date", autocomplete: "bday", isRequired: true }, confirmation_code: { label: "Confirmation Code", labelHidden: true, placeholder: "Code", type: "number", autocomplete: "one-time-code", isRequired: true }, confirm_password: { label: "Confirm Password", labelHidden: true, placeholder: "Confirm Password", type: "password", autocomplete: "new-password", isRequired: true }, email: { label: "Email", labelHidden: true, placeholder: "Email", type: "email", autocomplete: "username", isRequired: true }, family_name: { label: "Family Name", labelHidden: true, placeholder: "Family Name", type: "text", autocomplete: "family-name", isRequired: true }, given_name: { label: "Given Name", labelHidden: true, placeholder: "Given Name", type: "text", autocomplete: "given-name", isRequired: true }, middle_name: { label: "Middle Name", labelHidden: true, placeholder: "Middle Name", type: "text", autocomplete: "additional-name", isRequired: true }, name: { label: "Name", labelHidden: true, placeholder: "Name", type: "text", autocomplete: "name", isRequired: true }, nickname: { label: "Nickname", labelHidden: true, placeholder: "Nickname", type: "text", autocomplete: "tel", isRequired: true }, password: { label: "Password", labelHidden: true, placeholder: "Password", type: "password", autocomplete: "new-password", isRequired: true }, phone_number: { label: "Phone Number", labelHidden: true, placeholder: "Phone", type: "tel", autocomplete: "tel", dialCode: "+1", dialCodeList: r$2, isRequired: true }, preferred_username: { label: "Preferred Username", labelHidden: true, placeholder: "Preferred Username", type: "text", isRequired: true }, profile: { label: "Profile", labelHidden: true, placeholder: "Profile", type: "url", autocomplete: "url", isRequired: true }, website: { label: "Website", labelHidden: true, placeholder: "Website", type: "url", autocomplete: "url", isRequired: true }, username: { label: "Username", labelHidden: true, placeholder: "Username", type: "text", autocomplete: "username", isRequired: true } };
646
658
  var n$1 = function(r2) {
647
659
  var t2 = new FormData(r2.target);
@@ -6284,7 +6296,7 @@ actions.actionTypes = actionTypes;
6284
6296
  actions.after = after;
6285
6297
  var assign_1 = actions.assign = assign;
6286
6298
  actions.cancel = cancel;
6287
- actions.choose = choose;
6299
+ var choose_1 = actions.choose = choose;
6288
6300
  actions.done = done;
6289
6301
  actions.doneInvoke = doneInvoke;
6290
6302
  actions.error = error;
@@ -6329,7 +6341,7 @@ var t$2 = function(e2) {
6329
6341
  } }), m = assign_1({ challengeName: function(e2, r2) {
6330
6342
  var n2;
6331
6343
  return (n2 = r2.data) === null || n2 === void 0 ? void 0 : n2.challengeName;
6332
- } }), v$1 = assign_1({ requiredAttributes: function(e2, r2) {
6344
+ } }), v = assign_1({ requiredAttributes: function(e2, r2) {
6333
6345
  var n2, t2;
6334
6346
  return (t2 = (n2 = r2.data) === null || n2 === void 0 ? void 0 : n2.challengeParam) === null || t2 === void 0 ? void 0 : t2.requiredAttributes;
6335
6347
  } }), h = assign_1({ redirectIntent: function(e2) {
@@ -6339,7 +6351,7 @@ var t$2 = function(e2) {
6339
6351
  } }), V = assign_1({ authAttributes: function(e2, r2) {
6340
6352
  var n2, t2, o2 = e2.loginMechanisms[0];
6341
6353
  return { username: (n2 = e2.formValues[o2]) !== null && n2 !== void 0 ? n2 : e2.formValues.username, password: (t2 = e2.formValues) === null || t2 === void 0 ? void 0 : t2.password };
6342
- } }), p = assign_1({ validationError: function(e2, r2) {
6354
+ } }), p$1 = assign_1({ validationError: function(e2, r2) {
6343
6355
  return r2.data;
6344
6356
  } }), g = assign_1({ remoteError: function(e2, r2) {
6345
6357
  var n2;
@@ -6874,7 +6886,7 @@ function k(k2) {
6874
6886
  return { user: e2.user };
6875
6887
  } }, rejected: { type: "final", data: function(e2, t2) {
6876
6888
  return { intent: e2.redirectIntent, authAttributes: e2.authAttributes };
6877
- } } } }, { actions: { clearAttributeToVerify: o$2, clearChallengeName: u, clearRequiredAttributes: a, clearError: i, clearFormValues: c, clearTouched: s$1, clearUnverifiedAttributes: l, clearValidationError: f$1, handleInput: N, handleSubmit: q, handleBlur: w, parsePhoneNumber: P, setChallengeName: m, setConfirmResetPasswordIntent: h, setConfirmSignUpIntent: b$1, setRequiredAttributes: v$1, setCredentials: V, setFieldErrors: p, setRemoteError: g, setUnverifiedAttributes: _, setUser: A, setUsernameAuthAttributes: D, sendUpdate: sendUpdate$1() }, guards: { shouldConfirmSignIn: function(e2, t2) {
6889
+ } } } }, { actions: { clearAttributeToVerify: o$2, clearChallengeName: u, clearRequiredAttributes: a, clearError: i, clearFormValues: c, clearTouched: s$1, clearUnverifiedAttributes: l, clearValidationError: f$1, handleInput: N, handleSubmit: q, handleBlur: w, parsePhoneNumber: P, setChallengeName: m, setConfirmResetPasswordIntent: h, setConfirmSignUpIntent: b$1, setRequiredAttributes: v, setCredentials: V, setFieldErrors: p$1, setRemoteError: g, setUnverifiedAttributes: _, setUser: A, setUsernameAuthAttributes: D, sendUpdate: sendUpdate$1() }, guards: { shouldConfirmSignIn: function(e2, t2) {
6878
6890
  var r2 = t$1(t2, "data.challengeName");
6879
6891
  return [E$2.SMS_MFA, E$2.SOFTWARE_TOKEN_MFA].includes(r2);
6880
6892
  }, shouldRedirectToConfirmSignUp: function(e2, t2) {
@@ -7000,7 +7012,7 @@ var t = createMachine({ initial: "pending", id: "signOutActor", states: { pendin
7000
7012
  } } });
7001
7013
  function E(E2) {
7002
7014
  var h2 = E2.services;
7003
- return createMachine({ id: "resetPasswordActor", initial: "init", states: { init: { always: [{ target: "confirmResetPassword", cond: "shouldAutoConfirmReset" }, { target: "resetPassword" }] }, resetPassword: { initial: "edit", exit: ["clearFormValues", "clearError", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, CHANGE: { actions: "handleInput" }, BLUR: { actions: "handleBlur" } } }, submit: { tags: ["pending"], entry: ["sendUpdate", "setUsername", "clearError"], invoke: { src: "resetPassword", onDone: { target: "#resetPasswordActor.confirmResetPassword" }, onError: { actions: ["setRemoteError"], target: "edit" } } } } }, confirmResetPassword: { type: "parallel", exit: ["clearFormValues", "clearError", "clearUsername", "clearTouched"], states: { validation: { initial: "pending", states: { pending: { invoke: { src: "validateFields", onDone: { target: "valid", actions: "clearValidationError" }, onError: { target: "invalid", actions: "setFieldErrors" } } }, valid: { entry: "sendUpdate" }, invalid: { entry: "sendUpdate" } }, on: { CHANGE: { actions: "handleInput", target: ".pending" }, BLUR: { actions: "handleBlur", target: ".pending" } } }, submission: { initial: "idle", states: { idle: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "validate" }, RESEND: "resendCode", CHANGE: { actions: "handleInput" }, BLUR: { actions: "handleBlur" } } }, validate: { entry: "sendUpdate", invoke: { src: "validateFields", onDone: { target: "pending", actions: "clearValidationError" }, onError: { target: "idle", actions: "setFieldErrors" } } }, resendCode: { tags: ["pending"], entry: ["clearError", "sendUpdate"], invoke: { src: "resetPassword", onDone: { target: "idle" }, onError: { actions: "setRemoteError", target: "idle" } } }, pending: { tags: ["pending"], entry: ["clearError", "sendUpdate"], invoke: { src: "confirmResetPassword", onDone: { actions: "clearUsername", target: "#resetPasswordActor.resolved" }, onError: { actions: "setRemoteError", target: "idle" } } } } } } }, resolved: { type: "final" } } }, { actions: { clearError: i, clearFormValues: c, clearTouched: s$1, clearUsername: d, clearValidationError: f$1, handleInput: N, handleSubmit: q, handleBlur: w, setFieldErrors: p, setRemoteError: g, setUsername: y, sendUpdate: sendUpdate$1() }, guards: { shouldAutoConfirmReset: function(e2, r2) {
7015
+ 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) {
7004
7016
  return !(!e2.intent || e2.intent !== "confirmPasswordReset");
7005
7017
  } }, services: { resetPassword: function(t2) {
7006
7018
  return n$6(this, void 0, void 0, function() {
@@ -7470,7 +7482,7 @@ function b(b2) {
7470
7482
  return e2.intent && e2.intent === "confirmSignUp";
7471
7483
  }, shouldSkipConfirm: function(e2, r2) {
7472
7484
  return r2.data.userConfirmed;
7473
- } }, actions: { clearError: i, clearFormValues: c, clearTouched: s$1, clearValidationError: f$1, handleInput: N, handleSubmit: q, handleBlur: w, parsePhoneNumber: P, setCredentials: V, setFieldErrors: p, setRemoteError: g, setCodeDeliveryDetails: E$1, setUser: A, sendUpdate: sendUpdate$1() }, services: { signIn: function(i2, s2) {
7485
+ } }, actions: { clearError: i, clearFormValues: c, clearTouched: s$1, clearValidationError: f$1, handleInput: N, handleSubmit: q, handleBlur: w, parsePhoneNumber: P, setCredentials: V, setFieldErrors: p$1, setRemoteError: g, setCodeDeliveryDetails: E$1, setUser: A, sendUpdate: sendUpdate$1() }, services: { signIn: function(i2, s2) {
7474
7486
  return n$6(this, void 0, void 0, function() {
7475
7487
  var e2, s3, a2, o2, d2;
7476
7488
  return r$4(this, function(r2) {
@@ -7558,10 +7570,10 @@ function b(b2) {
7558
7570
  });
7559
7571
  } } });
7560
7572
  }
7561
- function v() {
7562
- return createMachine({ id: "authenticator", initial: "idle", context: { user: void 0, config: {}, services: o, actorRef: void 0, hasSetup: false }, states: { idle: { invoke: { src: "getCurrentUser", onDone: { actions: "setUser", target: "authenticated" }, onError: { target: "setup" } } }, setup: { initial: "waitConfig", states: { waitConfig: { on: { INIT: { actions: ["configure", "setHasSetup"], target: "applyConfig" } } }, applyConfig: { invoke: { src: "getAmplifyConfig", onDone: { actions: "applyAmplifyConfig", target: "goToInitialState" } } }, goToInitialState: { always: [{ target: "#authenticator.signUp", cond: "isInitialStateSignUp" }, { target: "#authenticator.resetPassword", cond: "isInitialStateResetPassword" }, { target: "#authenticator.signIn" }] } } }, signIn: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnSignInActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: "stopSignInActor" } }, on: { SIGN_UP: "signUp", RESET_PASSWORD: "resetPassword", "done.invoke.signInActor": [{ target: "signUp", actions: "setActorDoneData", cond: "shouldRedirectToSignUp" }, { target: "resetPassword", actions: "setActorDoneData", cond: "shouldRedirectToResetPassword" }, { target: "authenticated", actions: "setActorDoneData" }] } }, signUp: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnSignUpActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: "stopSignUpActor" }, autoSignIn: { invoke: { src: "getCurrentUser", onDone: "#authenticator.authenticated", onError: "#authenticator.setup.goToInitialState" } } }, on: { SIGN_IN: "signIn", "done.invoke.signUpActor": { target: "signUp.autoSignIn", actions: "setActorDoneData" } } }, resetPassword: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnResetPasswordActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: "stopResetPasswordActor" } }, on: { SIGN_IN: "signIn", "done.invoke.resetPasswordActor": { target: "signIn", actions: "setActorDoneData" } } }, signOut: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnSignOutActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: ["stopSignOutActor", "clearUser"] } }, on: { "done.invoke.signOutActor": [{ target: "setup", cond: "shouldSetup" }, { target: "setup.goToInitialState" }] } }, authenticated: { initial: "idle", states: { idle: { on: { TOKEN_REFRESH: "refreshUser" } }, refreshUser: { invoke: { src: "getCurrentUser", onDone: { actions: "setUser", target: "idle" }, onError: { target: "#authenticator.signOut" } } } }, on: { SIGN_OUT: "signOut" } } }, on: { CHANGE: { actions: "forwardToActor" }, BLUR: { actions: "forwardToActor" }, SUBMIT: { actions: "forwardToActor" }, FEDERATED_SIGN_IN: { actions: "forwardToActor" }, RESEND: { actions: "forwardToActor" }, SIGN_OUT: { actions: "forwardToActor" }, SIGN_IN: { actions: "forwardToActor" }, SKIP: { actions: "forwardToActor" } } }, { actions: { forwardToActor: forwardTo$1(function(t2) {
7573
+ function f() {
7574
+ return createMachine({ id: "authenticator", initial: "idle", context: { user: void 0, config: {}, services: o, actorRef: void 0, hasSetup: false }, states: { idle: { invoke: { src: "getCurrentUser", onDone: { actions: "setUser", target: "authenticated" }, onError: { target: "setup" } } }, setup: { initial: "waitConfig", states: { waitConfig: { on: { INIT: { actions: ["configure", "setHasSetup"], target: "applyConfig" } } }, applyConfig: { invoke: { src: "getAmplifyConfig", onDone: { actions: "applyAmplifyConfig", target: "goToInitialState" } } }, goToInitialState: { always: [{ target: "#authenticator.signUp", cond: "isInitialStateSignUp" }, { target: "#authenticator.resetPassword", cond: "isInitialStateResetPassword" }, { target: "#authenticator.signIn" }] } } }, signIn: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnSignInActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: "stopSignInActor" } }, on: { SIGN_UP: "signUp", RESET_PASSWORD: "resetPassword", "done.invoke.signInActor": [{ target: "signUp", actions: "setActorDoneData", cond: "shouldRedirectToSignUp" }, { target: "resetPassword", actions: "setActorDoneData", cond: "shouldRedirectToResetPassword" }, { target: "authenticated", actions: "setActorDoneData" }] } }, signUp: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnSignUpActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: "stopSignUpActor" }, autoSignIn: { invoke: { src: "getCurrentUser", onDone: "#authenticator.authenticated", onError: "#authenticator.setup.goToInitialState" } } }, on: { SIGN_IN: "signIn", "done.invoke.signUpActor": { target: "signUp.autoSignIn", actions: "setActorDoneData" } } }, resetPassword: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnResetPasswordActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: "stopResetPasswordActor" } }, on: { SIGN_IN: "signIn", "done.invoke.resetPasswordActor": { target: "signIn", actions: "setActorDoneData" } } }, signOut: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnSignOutActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: ["stopSignOutActor", "clearUser"] } }, on: { "done.invoke.signOutActor": [{ target: "setup", cond: "shouldSetup" }, { target: "setup.goToInitialState" }] } }, authenticated: { initial: "idle", states: { idle: { on: { TOKEN_REFRESH: "refreshUser" } }, refreshUser: { invoke: { src: "getCurrentUser", onDone: { actions: "setUser", target: "idle" }, onError: { target: "#authenticator.signOut" } } } }, on: { SIGN_OUT: "signOut" } } }, on: { CHANGE: { actions: "forwardToActor" }, BLUR: { actions: "forwardToActor" }, SUBMIT: { actions: "forwardToActor" }, FEDERATED_SIGN_IN: { actions: "forwardToActor" }, RESEND: { actions: "forwardToActor" }, SIGN_IN: { actions: "forwardToActor" }, SKIP: { actions: "forwardToActor" } } }, { actions: { forwardToActor: choose_1([{ cond: "hasActor", actions: forwardTo$1(function(t2) {
7563
7575
  return t2.actorRef;
7564
- }), setUser: assign$2({ user: function(t2, o2) {
7576
+ }) }]), setUser: assign$2({ user: function(t2, o2) {
7565
7577
  return o2.data;
7566
7578
  } }), setActorDoneData: assign$2({ actorDoneData: function(o2, n2) {
7567
7579
  var r2, i2;
@@ -7574,16 +7586,16 @@ function v() {
7574
7586
  return t3.toLowerCase();
7575
7587
  })) !== null && i2 !== void 0 ? i2 : [], v2 = (a2 = (e2 = n2.data.aws_cognito_verification_mechanisms) === null || e2 === void 0 ? void 0 : e2.map(function(t3) {
7576
7588
  return t3.toLowerCase();
7577
- })) !== null && a2 !== void 0 ? a2 : [], p2 = (c2 = (s2 = n2.data.aws_cognito_signup_attributes) === null || s2 === void 0 ? void 0 : s2.map(function(t3) {
7589
+ })) !== null && a2 !== void 0 ? a2 : [], f2 = (c2 = (s2 = n2.data.aws_cognito_signup_attributes) === null || s2 === void 0 ? void 0 : s2.map(function(t3) {
7578
7590
  return t3.toLowerCase();
7579
7591
  })) !== null && c2 !== void 0 ? c2 : [], A2 = (d2 = (u2 = n2.data.aws_cognito_social_providers) === null || u2 === void 0 ? void 0 : u2.map(function(t3) {
7580
7592
  return t3.toLowerCase();
7581
7593
  })) !== null && d2 !== void 0 ? d2 : [], w2 = n2.data.aws_cognito_password_protection_settings || {};
7582
7594
  g2.length === 0 && g2.push("username");
7583
- var S2 = t2.config, m2 = S2.loginMechanisms, h2 = S2.signUpAttributes, D2 = S2.socialProviders, I = S2.initialState;
7584
- return { loginMechanisms: m2 != null ? m2 : g2, formFields: (l2 = f(S2.formFields)) !== null && l2 !== void 0 ? l2 : {}, passwordSettings: w2, signUpAttributes: h2 != null ? h2 : Array.from(new Set(o$8(o$8([], v2, true), p2, true))), socialProviders: D2 != null ? D2 : A2.sort(), initialState: I };
7595
+ var m2 = t2.config, S2 = m2.loginMechanisms, h2 = m2.signUpAttributes, D2 = m2.socialProviders, I = m2.initialState;
7596
+ return { loginMechanisms: S2 != null ? S2 : g2, formFields: (l2 = p(m2.formFields)) !== null && l2 !== void 0 ? l2 : {}, passwordSettings: w2, signUpAttributes: h2 != null ? h2 : Array.from(new Set(o$8(o$8([], v2, true), f2, true))), socialProviders: D2 != null ? D2 : A2.sort(), initialState: I };
7585
7597
  } }), spawnSignInActor: assign$2({ actorRef: function(t2, o2) {
7586
- var n2, r2, i2, e2, s2, u2 = t2.services, d2 = k({ services: u2 }).withContext({ authAttributes: (n2 = t2.actorDoneData) === null || n2 === void 0 ? void 0 : n2.authAttributes, user: t2.user, intent: (r2 = t2.actorDoneData) === null || r2 === void 0 ? void 0 : r2.intent, country_code: "+1", formValues: {}, touched: {}, validationError: {}, loginMechanisms: (i2 = t2.config) === null || i2 === void 0 ? void 0 : i2.loginMechanisms, socialProviders: (e2 = t2.config) === null || e2 === void 0 ? void 0 : e2.socialProviders, formFields: (s2 = t2.config) === null || s2 === void 0 ? void 0 : s2.formFields });
7598
+ var n2, r2, i2, e2, s2, c2 = t2.services, d2 = k({ services: c2 }).withContext({ authAttributes: (n2 = t2.actorDoneData) === null || n2 === void 0 ? void 0 : n2.authAttributes, user: t2.user, intent: (r2 = t2.actorDoneData) === null || r2 === void 0 ? void 0 : r2.intent, country_code: "+1", formValues: {}, touched: {}, validationError: {}, loginMechanisms: (i2 = t2.config) === null || i2 === void 0 ? void 0 : i2.loginMechanisms, socialProviders: (e2 = t2.config) === null || e2 === void 0 ? void 0 : e2.socialProviders, formFields: (s2 = t2.config) === null || s2 === void 0 ? void 0 : s2.formFields });
7587
7599
  return spawn(d2, { name: "signInActor" });
7588
7600
  } }), spawnSignUpActor: assign$2({ actorRef: function(t2, o2) {
7589
7601
  var n2, r2, i2, e2, s2, c2, u2, d2 = t2.services, l2 = b({ services: d2 }).withContext({ authAttributes: (r2 = (n2 = t2.actorDoneData) === null || n2 === void 0 ? void 0 : n2.authAttributes) !== null && r2 !== void 0 ? r2 : {}, country_code: "+1", intent: (i2 = t2.actorDoneData) === null || i2 === void 0 ? void 0 : i2.intent, formValues: {}, touched: {}, validationError: {}, loginMechanisms: (e2 = t2.config) === null || e2 === void 0 ? void 0 : e2.loginMechanisms, socialProviders: (s2 = t2.config) === null || s2 === void 0 ? void 0 : s2.socialProviders, formFields: (c2 = t2.config) === null || c2 === void 0 ? void 0 : c2.formFields, passwordSettings: (u2 = t2.config) === null || u2 === void 0 ? void 0 : u2.passwordSettings });
@@ -7609,13 +7621,15 @@ function v() {
7609
7621
  return ((n2 = o2.data) === null || n2 === void 0 ? void 0 : n2.intent) === "confirmPasswordReset";
7610
7622
  }, shouldSetup: function(t2) {
7611
7623
  return t2.hasSetup === false;
7624
+ }, hasActor: function(t2) {
7625
+ return !!t2.actorRef;
7612
7626
  } }, services: { getCurrentUser: function(t2, o2) {
7613
7627
  return t2.services.getCurrentUser();
7614
7628
  }, getAmplifyConfig: function(t2, o2) {
7615
7629
  return t2.services.getAmplifyConfig();
7616
7630
  } } });
7617
7631
  }
7618
- function f(t2) {
7632
+ function p(t2) {
7619
7633
  return t2 && Object.keys(t2).forEach(function(o2) {
7620
7634
  Object.keys(t2[o2]).forEach(function(n2) {
7621
7635
  var r2 = t2[o2][n2];
@@ -7803,7 +7817,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
7803
7817
  const _component_amplify_button = _sfc_main$x;
7804
7818
  return openBlock(), createBlock(_component_amplify_button, {
7805
7819
  class: "amplify-field-group__control federated-sign-in-button amplify-authenticator__font",
7806
- "data-fullwidth": "false",
7820
+ fullwidth: false,
7821
+ style: { "font-weight": "normal" },
7807
7822
  type: "button",
7808
7823
  onClick
7809
7824
  }, {
@@ -7881,7 +7896,7 @@ const _hoisted_7$2 = /* @__PURE__ */ createElementVNode("svg", {
7881
7896
  ], -1);
7882
7897
  const _hoisted_8$2 = { class: "amplify-text amplify-authenticator__federated-text" };
7883
7898
  const _hoisted_9$1 = /* @__PURE__ */ createElementVNode("hr", {
7884
- class: "amplify-divider amplify-divider--label",
7899
+ class: "amplify-divider amplify-divider--label amplify-divider--small",
7885
7900
  "aria-orientation": "horizontal",
7886
7901
  "data-size": "small",
7887
7902
  "data-label": "or"
@@ -8076,7 +8091,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
8076
8091
  default: withCtx(() => [
8077
8092
  createElementVNode("button", {
8078
8093
  "aria-label": showHideLabel.value,
8079
- class: "amplify-button amplify-field-group__control amplify-field__show-password",
8094
+ class: "amplify-button amplify-field-group__control amplify-field__show-password amplify-button--fullwidth",
8080
8095
  "data-fullwidth": "false",
8081
8096
  type: "button",
8082
8097
  onClick: togglePasswordText
@@ -8130,7 +8145,7 @@ const _hoisted_2$4 = /* @__PURE__ */ createElementVNode("svg", {
8130
8145
  "data-size": "large",
8131
8146
  fill: "currentColor",
8132
8147
  viewBox: "0 0 24 24",
8133
- class: "amplify-icon"
8148
+ class: "amplify-icon amplify-icon--large"
8134
8149
  }, [
8135
8150
  /* @__PURE__ */ createElementVNode("path", { d: "M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z" })
8136
8151
  ], -1);
@@ -8278,7 +8293,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
8278
8293
  key: idx,
8279
8294
  role: "alert",
8280
8295
  "data-variation": "error",
8281
- class: "amplify-text"
8296
+ class: "amplify-text amplify-text--error"
8282
8297
  }, toDisplayString(unref(g$1)(error2)), 1);
8283
8298
  }), 128))
8284
8299
  ])) : createCommentVNode("", true)
@@ -8402,7 +8417,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
8402
8417
  disabled: unref(actorState).matches("signIn.submit"),
8403
8418
  class: "amplify-field-group__control amplify-authenticator__font",
8404
8419
  fullwidth: true,
8405
- "data-loading": "false",
8420
+ loading: false,
8406
8421
  variation: "primary"
8407
8422
  }, {
8408
8423
  default: withCtx(() => [
@@ -8426,9 +8441,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
8426
8441
  createVNode(_component_amplify_button, {
8427
8442
  onClick: onForgotPasswordClicked,
8428
8443
  class: "amplify-field-group__control amplify-authenticator__font",
8429
- "data-fullwidth": "true",
8430
- "data-size": "small",
8431
- "data-variation": "link",
8444
+ variation: "link",
8445
+ fullwidth: true,
8446
+ size: "small",
8447
+ style: { "font-weight": "normal" },
8432
8448
  type: "button"
8433
8449
  }, {
8434
8450
  default: withCtx(() => [
@@ -8521,9 +8537,10 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
8521
8537
  })) : createCommentVNode("", true),
8522
8538
  createVNode(_component_amplify_button, {
8523
8539
  class: "amplify-field-group__control amplify-authenticator__font",
8524
- "data-fullwidth": "true",
8525
- "data-loading": "false",
8526
- "data-variation": "primary",
8540
+ fullwidth: true,
8541
+ loading: false,
8542
+ variation: "primary",
8543
+ style: { "border-radius": "0px", "font-weight": "normal" },
8527
8544
  disabled: unref(isPending) || unref(hasValidationErrors)
8528
8545
  }, {
8529
8546
  default: withCtx(() => [
@@ -8619,12 +8636,13 @@ const _sfc_main$e = defineComponent({
8619
8636
  var _a2, _b;
8620
8637
  const defaultSlot = slots.default ? slots.default() : [];
8621
8638
  const headingI = slots.headingI ? slots.headingI() : [];
8639
+ const headerClass = `${attrs.class || ""} amplify-heading--${props.level}`;
8622
8640
  if (((_b = (_a2 = headingI[0]) == null ? void 0 : _a2.children) == null ? void 0 : _b.length) === 0) {
8623
8641
  headingI[0].children = [
8624
- h$2(`h${props.level}`, __spreadValues({}, attrs), [defaultSlot])
8642
+ h$2(`h${props.level}`, __spreadProps(__spreadValues({}, attrs), { class: headerClass }), [defaultSlot])
8625
8643
  ];
8626
8644
  } else {
8627
- return () => h$2(`h${props.level}`, __spreadValues({ "data-amplify-heading": "" }, attrs), [
8645
+ return () => h$2(`h${props.level}`, __spreadProps(__spreadValues({ "data-amplify-heading": "" }, attrs), { class: headerClass }), [
8628
8646
  headingI[0] ? h$2(headingI[0].children[0]) : h$2(defaultSlot[0])
8629
8647
  ]);
8630
8648
  }
@@ -8738,9 +8756,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
8738
8756
  })) : createCommentVNode("", true),
8739
8757
  createVNode(_component_amplify_button, {
8740
8758
  class: "amplify-field-group__control amplify-authenticator__font",
8741
- "data-fullwidth": "false",
8742
- "data-loading": "false",
8743
- "data-variation": "primary",
8759
+ fullwidth: false,
8760
+ loading: false,
8761
+ variation: "primary",
8744
8762
  type: "submit",
8745
8763
  disabled: unref(isPending)
8746
8764
  }, {
@@ -8751,8 +8769,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
8751
8769
  }, 8, ["disabled"]),
8752
8770
  createVNode(_component_amplify_button, {
8753
8771
  class: "amplify-field-group__control amplify-authenticator__font",
8754
- "data-fullwidth": "false",
8755
- "data-variation": "default",
8772
+ fullwidth: false,
8773
+ variation: "default",
8774
+ style: { "font-weight": "normal" },
8756
8775
  type: "button",
8757
8776
  onClick: withModifiers(onLostCodeClicked, ["prevent"])
8758
8777
  }, {
@@ -8877,9 +8896,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
8877
8896
  })) : createCommentVNode("", true),
8878
8897
  createVNode(_component_amplify_button, {
8879
8898
  class: "amplify-field-group__control amplify-authenticator__font",
8880
- "data-fullwidth": "false",
8881
- "data-loading": "false",
8882
- "data-variation": "primary",
8899
+ fullwidth: false,
8900
+ loading: false,
8901
+ variation: "primary",
8902
+ style: { "font-weight": "normal" },
8883
8903
  disabled: unref(actorState).matches("confirmSignIn.pending")
8884
8904
  }, {
8885
8905
  default: withCtx(() => [
@@ -8889,9 +8909,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
8889
8909
  }, 8, ["disabled"]),
8890
8910
  createVNode(_component_amplify_button, {
8891
8911
  class: "amplify-field-group__control amplify-authenticator__font",
8892
- "data-fullwidth": "false",
8893
- "data-size": "small",
8894
- "data-variation": "link",
8912
+ fullwidth: false,
8913
+ size: "small",
8914
+ variation: "link",
8915
+ style: { "font-weight": "normal" },
8895
8916
  type: "button",
8896
8917
  onClick: withModifiers(onBackToSignInClicked, ["prevent"])
8897
8918
  }, {
@@ -11079,9 +11100,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
11079
11100
  })) : createCommentVNode("", true),
11080
11101
  createVNode(_component_amplify_button, {
11081
11102
  class: "amplify-field-group__control amplify-authenticator__font",
11082
- "data-fullwidth": "false",
11083
- "data-loading": "false",
11084
- "data-variation": "primary",
11103
+ fullwidth: false,
11104
+ loading: false,
11105
+ variation: "primary",
11085
11106
  type: "submit",
11086
11107
  disabled: unref(actorState).matches("confirmSignIn.pending")
11087
11108
  }, {
@@ -11092,9 +11113,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
11092
11113
  }, 8, ["disabled"]),
11093
11114
  createVNode(_component_amplify_button, {
11094
11115
  class: "amplify-field-group__control amplify-authenticator__font",
11095
- "data-fullwidth": "false",
11096
- "data-size": "small",
11097
- "data-variation": "link",
11116
+ fullwidth: false,
11117
+ size: "small",
11118
+ variation: "link",
11119
+ style: { "font-weight": "normal" },
11098
11120
  type: "button",
11099
11121
  onClick: withModifiers(onBackToSignInClicked, ["prevent"])
11100
11122
  }, {
@@ -11230,9 +11252,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
11230
11252
  })) : createCommentVNode("", true),
11231
11253
  createVNode(_component_amplify_button, {
11232
11254
  class: "amplify-field-group__control amplify-authenticator__font",
11233
- "data-fullwidth": "false",
11234
- "data-loading": "false",
11235
- "data-variation": "primary",
11255
+ fullwidth: false,
11256
+ loading: false,
11257
+ variation: "primary",
11258
+ style: { "font-weight": "normal" },
11236
11259
  disabled: unref(actorState).matches("signUp.submit")
11237
11260
  }, {
11238
11261
  default: withCtx(() => [
@@ -11242,9 +11265,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
11242
11265
  }, 8, ["disabled"]),
11243
11266
  createVNode(_component_amplify_button, {
11244
11267
  class: "amplify-field-group__control amplify-authenticator__font",
11245
- "data-fullwidth": "false",
11246
- "data-size": "small",
11247
- "data-variation": "link",
11268
+ fullwidth: false,
11269
+ size: "small",
11270
+ variation: "link",
11271
+ style: { "font-weight": "normal" },
11248
11272
  type: "button",
11249
11273
  onClick: withModifiers(onHaveAccountClicked, ["prevent"])
11250
11274
  }, {
@@ -11356,8 +11380,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
11356
11380
  })) : createCommentVNode("", true),
11357
11381
  createVNode(_component_amplify_button, {
11358
11382
  class: "amplify-field-group__control amplify-authenticator__font",
11359
- "data-fullwidth": "false",
11360
- "data-variation": "primary",
11383
+ fullwidth: false,
11384
+ variation: "primary",
11361
11385
  type: "submit",
11362
11386
  disabled: unref(isPending)
11363
11387
  }, {
@@ -11368,9 +11392,10 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
11368
11392
  }, 8, ["disabled"]),
11369
11393
  createVNode(_component_amplify_button, {
11370
11394
  class: "amplify-field-group__control amplify-authenticator__font",
11371
- "data-fullwidth": "false",
11372
- "data-size": "small",
11373
- "data-variation": "link",
11395
+ fullwidth: false,
11396
+ size: "small",
11397
+ variation: "link",
11398
+ style: { "font-weight": "normal" },
11374
11399
  type: "button",
11375
11400
  onClick: withModifiers(onBackToSignInClicked, ["prevent"])
11376
11401
  }, {
@@ -11489,8 +11514,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
11489
11514
  })) : createCommentVNode("", true),
11490
11515
  createVNode(_component_amplify_button, {
11491
11516
  class: "amplify-field-group__control amplify-authenticator__font",
11492
- "data-fullwidth": "false",
11493
- "data-variation": "primary",
11517
+ variation: "primary",
11518
+ fullwidth: false,
11494
11519
  type: "submit",
11495
11520
  disabled: unref(actorState).matches("confirmResetPassword.pending")
11496
11521
  }, {
@@ -11501,9 +11526,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
11501
11526
  }, 8, ["disabled"]),
11502
11527
  createVNode(_component_amplify_button, {
11503
11528
  class: "amplify-field-group__control amplify-authenticator__font",
11504
- "data-fullwidth": "false",
11505
- "data-size": "small",
11506
- "data-variation": "link",
11529
+ variation: "link",
11530
+ fullwidth: false,
11531
+ size: "small",
11507
11532
  type: "button",
11508
11533
  onClick: withModifiers(onLostYourCodeClicked, ["prevent"])
11509
11534
  }, {
@@ -11673,8 +11698,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
11673
11698
  })) : createCommentVNode("", true),
11674
11699
  createVNode(_component_amplify_button, {
11675
11700
  class: "amplify-field-group__control amplify-authenticator__font",
11676
- "data-fullwidth": "false",
11677
- "data-variation": "primary",
11701
+ fullwidth: false,
11702
+ variation: "primary",
11678
11703
  type: "submit",
11679
11704
  disabled: unref(actorState).matches("verifyUser.pending")
11680
11705
  }, {
@@ -11685,9 +11710,10 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
11685
11710
  }, 8, ["disabled"]),
11686
11711
  createVNode(_component_amplify_button, {
11687
11712
  class: "amplify-field-group__control amplify-authenticator__font",
11688
- "data-fullwidth": "false",
11689
- "data-size": "small",
11690
- "data-variation": "link",
11713
+ fullwidth: false,
11714
+ size: "small",
11715
+ variation: "link",
11716
+ style: { "font-weight": "normal" },
11691
11717
  type: "button",
11692
11718
  onClick: withModifiers(onSkipClicked, ["prevent"])
11693
11719
  }, {
@@ -11807,8 +11833,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
11807
11833
  })) : createCommentVNode("", true),
11808
11834
  createVNode(_component_amplify_button, {
11809
11835
  class: "amplify-field-group__control amplify-authenticator__font",
11810
- "data-fullwidth": "false",
11811
- "data-variation": "primary",
11836
+ fullwidth: false,
11837
+ variation: "primary",
11812
11838
  type: "submit",
11813
11839
  disabled: unref(actorState).matches("confirmVerifyUser.pending")
11814
11840
  }, {
@@ -11819,9 +11845,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
11819
11845
  }, 8, ["disabled"]),
11820
11846
  createVNode(_component_amplify_button, {
11821
11847
  class: "amplify-field-group__control amplify-authenticator__font",
11822
- "data-fullwidth": "false",
11823
- "data-size": "small",
11824
- "data-variation": "link",
11848
+ fullwidth: false,
11849
+ size: "small",
11850
+ variation: "link",
11851
+ style: { "font-weight": "normal" },
11825
11852
  type: "button",
11826
11853
  onClick: withModifiers(onSkipClicked, ["prevent"])
11827
11854
  }, {
@@ -11883,7 +11910,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
11883
11910
  setup(__props, { emit }) {
11884
11911
  const { initialState, loginMechanisms, variation, services, signUpAttributes, socialProviders, hideSignUp, formFields } = __props;
11885
11912
  const attrs = useAttrs();
11886
- const machine = v();
11913
+ const machine = f();
11887
11914
  const service2 = useInterpret(machine);
11888
11915
  let unsubscribeHub;
11889
11916
  let unsubscribeMachine;
@@ -12368,7 +12395,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12368
12395
  })
12369
12396
  ]),
12370
12397
  createElementVNode("span", {
12371
- class: "amplify-flex amplify-checkbox__button",
12398
+ class: normalizeClass(["amplify-flex amplify-checkbox__button", {
12399
+ "amplify-checkbox__button--error": !checked.value
12400
+ }]),
12372
12401
  "aria-hidden": "true",
12373
12402
  "data-focus": "false",
12374
12403
  "data-error": !checked.value,
@@ -12376,12 +12405,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12376
12405
  }, [
12377
12406
  (openBlock(), createElementBlock("svg", {
12378
12407
  xmlns: "http://www.w3.org/2000/svg",
12379
- class: "amplify-icon amplify-checkbox__icon",
12408
+ class: normalizeClass(["amplify-icon amplify-checkbox__icon", {
12409
+ "amplify-checkbox__icon--checked": checked.value
12410
+ }]),
12380
12411
  viewBox: "0 0 24 24",
12381
12412
  fill: "currentColor",
12382
12413
  "data-checked": checked.value
12383
- }, _hoisted_7, 8, _hoisted_5))
12384
- ], 8, _hoisted_4),
12414
+ }, _hoisted_7, 10, _hoisted_5))
12415
+ ], 10, _hoisted_4),
12385
12416
  _hoisted_8
12386
12417
  ]),
12387
12418
  !checked.value ? (openBlock(), createElementBlock("p", _hoisted_9, toDisplayString(unref(errorMessage)), 1)) : createCommentVNode("", true)