@aws-amplify/ui-vue 2.4.2 → 2.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/confirm-sign-in.vue.d.ts.map +1 -1
- package/dist/components/confirm-sign-up.vue.d.ts.map +1 -1
- package/dist/components/confirm-verify-user.vue.d.ts.map +1 -1
- package/dist/components/federated-sign-in-button.vue.d.ts.map +1 -1
- package/dist/components/force-new-password.vue.d.ts.map +1 -1
- package/dist/components/primitives/amplify-button.vue.d.ts +12 -0
- package/dist/components/primitives/amplify-button.vue.d.ts.map +1 -1
- package/dist/components/primitives/amplify-check-box.vue.d.ts.map +1 -1
- package/dist/components/primitives/base-heading.vue.d.ts.map +1 -1
- package/dist/components/reset-password.vue.d.ts.map +1 -1
- package/dist/components/setup-totp.vue.d.ts.map +1 -1
- package/dist/components/sign-in.vue.d.ts.map +1 -1
- package/dist/components/sign-up.vue.d.ts.map +1 -1
- package/dist/components/verify-user.vue.d.ts.map +1 -1
- package/dist/index.cjs +13 -13
- package/dist/index.js +133 -99
- package/dist/style.css +1 -1
- package/package.json +2 -2
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
|
-
|
|
104
|
-
|
|
115
|
+
fullwidth: false,
|
|
116
|
+
variation: "link",
|
|
105
117
|
type: "button",
|
|
106
118
|
onClick: close
|
|
107
119
|
}, {
|
|
@@ -613,7 +625,7 @@ var n$4 = function(e2) {
|
|
|
613
625
|
}
|
|
614
626
|
}(v2);
|
|
615
627
|
return { error: c2, hasValidationErrors: m2, isPending: f2, route: v2, authStatus: h2, user: a2, validationErrors: d2, codeDeliveryDetails: l2 };
|
|
616
|
-
}, i$
|
|
628
|
+
}, i$4 = function(t2) {
|
|
617
629
|
var r2 = t2.send, i2 = t2.state, a2 = n$4(r2), o2 = s$2(i2);
|
|
618
630
|
return t$4(t$4({}, a2), o2);
|
|
619
631
|
};
|
|
@@ -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$
|
|
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$
|
|
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);
|
|
@@ -652,16 +664,19 @@ var n$1 = function(r2) {
|
|
|
652
664
|
return r2 ? (t2 = r2, Array.isArray(t2) ? r2 : [r2]) : null;
|
|
653
665
|
var t2;
|
|
654
666
|
};
|
|
655
|
-
var
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
667
|
+
var i$3 = function(t2, e2) {
|
|
668
|
+
var n2 = e2.send, i2 = e2.getSnapshot();
|
|
669
|
+
switch (t2.payload.event) {
|
|
670
|
+
case "tokenRefresh":
|
|
671
|
+
i2.matches("authenticated.idle") && n2("TOKEN_REFRESH");
|
|
672
|
+
break;
|
|
673
|
+
case "signOut":
|
|
674
|
+
case "tokenRefresh_failure":
|
|
675
|
+
i2.matches("authenticated.idle") && n2("SIGN_OUT");
|
|
676
|
+
}
|
|
677
|
+
}, r = function(e2, n2) {
|
|
678
|
+
return n2 === void 0 && (n2 = i$3), Hub.listen("auth", function(t2) {
|
|
679
|
+
n2(t2, e2);
|
|
665
680
|
});
|
|
666
681
|
};
|
|
667
682
|
function listCacheClear$1() {
|
|
@@ -6284,7 +6299,7 @@ actions.actionTypes = actionTypes;
|
|
|
6284
6299
|
actions.after = after;
|
|
6285
6300
|
var assign_1 = actions.assign = assign;
|
|
6286
6301
|
actions.cancel = cancel;
|
|
6287
|
-
actions.choose = choose;
|
|
6302
|
+
var choose_1 = actions.choose = choose;
|
|
6288
6303
|
actions.done = done;
|
|
6289
6304
|
actions.doneInvoke = doneInvoke;
|
|
6290
6305
|
actions.error = error;
|
|
@@ -6329,7 +6344,7 @@ var t$2 = function(e2) {
|
|
|
6329
6344
|
} }), m = assign_1({ challengeName: function(e2, r2) {
|
|
6330
6345
|
var n2;
|
|
6331
6346
|
return (n2 = r2.data) === null || n2 === void 0 ? void 0 : n2.challengeName;
|
|
6332
|
-
} }), v
|
|
6347
|
+
} }), v = assign_1({ requiredAttributes: function(e2, r2) {
|
|
6333
6348
|
var n2, t2;
|
|
6334
6349
|
return (t2 = (n2 = r2.data) === null || n2 === void 0 ? void 0 : n2.challengeParam) === null || t2 === void 0 ? void 0 : t2.requiredAttributes;
|
|
6335
6350
|
} }), h = assign_1({ redirectIntent: function(e2) {
|
|
@@ -6339,7 +6354,7 @@ var t$2 = function(e2) {
|
|
|
6339
6354
|
} }), V = assign_1({ authAttributes: function(e2, r2) {
|
|
6340
6355
|
var n2, t2, o2 = e2.loginMechanisms[0];
|
|
6341
6356
|
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) {
|
|
6357
|
+
} }), p$1 = assign_1({ validationError: function(e2, r2) {
|
|
6343
6358
|
return r2.data;
|
|
6344
6359
|
} }), g = assign_1({ remoteError: function(e2, r2) {
|
|
6345
6360
|
var n2;
|
|
@@ -6874,7 +6889,7 @@ function k(k2) {
|
|
|
6874
6889
|
return { user: e2.user };
|
|
6875
6890
|
} }, rejected: { type: "final", data: function(e2, t2) {
|
|
6876
6891
|
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
|
|
6892
|
+
} } } }, { 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
6893
|
var r2 = t$1(t2, "data.challengeName");
|
|
6879
6894
|
return [E$2.SMS_MFA, E$2.SOFTWARE_TOKEN_MFA].includes(r2);
|
|
6880
6895
|
}, shouldRedirectToConfirmSignUp: function(e2, t2) {
|
|
@@ -7000,7 +7015,7 @@ var t = createMachine({ initial: "pending", id: "signOutActor", states: { pendin
|
|
|
7000
7015
|
} } });
|
|
7001
7016
|
function E(E2) {
|
|
7002
7017
|
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) {
|
|
7018
|
+
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
7019
|
return !(!e2.intent || e2.intent !== "confirmPasswordReset");
|
|
7005
7020
|
} }, services: { resetPassword: function(t2) {
|
|
7006
7021
|
return n$6(this, void 0, void 0, function() {
|
|
@@ -7470,7 +7485,7 @@ function b(b2) {
|
|
|
7470
7485
|
return e2.intent && e2.intent === "confirmSignUp";
|
|
7471
7486
|
}, shouldSkipConfirm: function(e2, r2) {
|
|
7472
7487
|
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) {
|
|
7488
|
+
} }, 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
7489
|
return n$6(this, void 0, void 0, function() {
|
|
7475
7490
|
var e2, s3, a2, o2, d2;
|
|
7476
7491
|
return r$4(this, function(r2) {
|
|
@@ -7558,10 +7573,10 @@ function b(b2) {
|
|
|
7558
7573
|
});
|
|
7559
7574
|
} } });
|
|
7560
7575
|
}
|
|
7561
|
-
function
|
|
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" },
|
|
7576
|
+
function f() {
|
|
7577
|
+
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
7578
|
return t2.actorRef;
|
|
7564
|
-
}), setUser: assign$2({ user: function(t2, o2) {
|
|
7579
|
+
}) }]), setUser: assign$2({ user: function(t2, o2) {
|
|
7565
7580
|
return o2.data;
|
|
7566
7581
|
} }), setActorDoneData: assign$2({ actorDoneData: function(o2, n2) {
|
|
7567
7582
|
var r2, i2;
|
|
@@ -7574,16 +7589,16 @@ function v() {
|
|
|
7574
7589
|
return t3.toLowerCase();
|
|
7575
7590
|
})) !== 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
7591
|
return t3.toLowerCase();
|
|
7577
|
-
})) !== null && a2 !== void 0 ? a2 : [],
|
|
7592
|
+
})) !== 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
7593
|
return t3.toLowerCase();
|
|
7579
7594
|
})) !== 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
7595
|
return t3.toLowerCase();
|
|
7581
7596
|
})) !== null && d2 !== void 0 ? d2 : [], w2 = n2.data.aws_cognito_password_protection_settings || {};
|
|
7582
7597
|
g2.length === 0 && g2.push("username");
|
|
7583
|
-
var
|
|
7584
|
-
return { loginMechanisms:
|
|
7598
|
+
var m2 = t2.config, S2 = m2.loginMechanisms, h2 = m2.signUpAttributes, D2 = m2.socialProviders, I = m2.initialState;
|
|
7599
|
+
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
7600
|
} }), spawnSignInActor: assign$2({ actorRef: function(t2, o2) {
|
|
7586
|
-
var n2, r2, i2, e2, s2,
|
|
7601
|
+
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
7602
|
return spawn(d2, { name: "signInActor" });
|
|
7588
7603
|
} }), spawnSignUpActor: assign$2({ actorRef: function(t2, o2) {
|
|
7589
7604
|
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 +7624,15 @@ function v() {
|
|
|
7609
7624
|
return ((n2 = o2.data) === null || n2 === void 0 ? void 0 : n2.intent) === "confirmPasswordReset";
|
|
7610
7625
|
}, shouldSetup: function(t2) {
|
|
7611
7626
|
return t2.hasSetup === false;
|
|
7627
|
+
}, hasActor: function(t2) {
|
|
7628
|
+
return !!t2.actorRef;
|
|
7612
7629
|
} }, services: { getCurrentUser: function(t2, o2) {
|
|
7613
7630
|
return t2.services.getCurrentUser();
|
|
7614
7631
|
}, getAmplifyConfig: function(t2, o2) {
|
|
7615
7632
|
return t2.services.getAmplifyConfig();
|
|
7616
7633
|
} } });
|
|
7617
7634
|
}
|
|
7618
|
-
function
|
|
7635
|
+
function p(t2) {
|
|
7619
7636
|
return t2 && Object.keys(t2).forEach(function(o2) {
|
|
7620
7637
|
Object.keys(t2[o2]).forEach(function(n2) {
|
|
7621
7638
|
var r2 = t2[o2][n2];
|
|
@@ -7776,7 +7793,7 @@ function createValues() {
|
|
|
7776
7793
|
if (!service.value)
|
|
7777
7794
|
return;
|
|
7778
7795
|
const { state, send: send2 } = useAuth();
|
|
7779
|
-
const facadeValues = i$
|
|
7796
|
+
const facadeValues = i$4({ send: send2, state: state.value });
|
|
7780
7797
|
for (const key of Object.keys(facade)) {
|
|
7781
7798
|
useAuthenticatorValue[key] = facadeValues[key];
|
|
7782
7799
|
}
|
|
@@ -7803,7 +7820,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
7803
7820
|
const _component_amplify_button = _sfc_main$x;
|
|
7804
7821
|
return openBlock(), createBlock(_component_amplify_button, {
|
|
7805
7822
|
class: "amplify-field-group__control federated-sign-in-button amplify-authenticator__font",
|
|
7806
|
-
|
|
7823
|
+
fullwidth: false,
|
|
7824
|
+
style: { "font-weight": "normal" },
|
|
7807
7825
|
type: "button",
|
|
7808
7826
|
onClick
|
|
7809
7827
|
}, {
|
|
@@ -7881,7 +7899,7 @@ const _hoisted_7$2 = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
7881
7899
|
], -1);
|
|
7882
7900
|
const _hoisted_8$2 = { class: "amplify-text amplify-authenticator__federated-text" };
|
|
7883
7901
|
const _hoisted_9$1 = /* @__PURE__ */ createElementVNode("hr", {
|
|
7884
|
-
class: "amplify-divider amplify-divider--label",
|
|
7902
|
+
class: "amplify-divider amplify-divider--label amplify-divider--small",
|
|
7885
7903
|
"aria-orientation": "horizontal",
|
|
7886
7904
|
"data-size": "small",
|
|
7887
7905
|
"data-label": "or"
|
|
@@ -8076,7 +8094,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
8076
8094
|
default: withCtx(() => [
|
|
8077
8095
|
createElementVNode("button", {
|
|
8078
8096
|
"aria-label": showHideLabel.value,
|
|
8079
|
-
class: "amplify-button amplify-field-group__control amplify-field__show-password",
|
|
8097
|
+
class: "amplify-button amplify-field-group__control amplify-field__show-password amplify-button--fullwidth",
|
|
8080
8098
|
"data-fullwidth": "false",
|
|
8081
8099
|
type: "button",
|
|
8082
8100
|
onClick: togglePasswordText
|
|
@@ -8130,7 +8148,7 @@ const _hoisted_2$4 = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
8130
8148
|
"data-size": "large",
|
|
8131
8149
|
fill: "currentColor",
|
|
8132
8150
|
viewBox: "0 0 24 24",
|
|
8133
|
-
class: "amplify-icon"
|
|
8151
|
+
class: "amplify-icon amplify-icon--large"
|
|
8134
8152
|
}, [
|
|
8135
8153
|
/* @__PURE__ */ createElementVNode("path", { d: "M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z" })
|
|
8136
8154
|
], -1);
|
|
@@ -8278,7 +8296,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
8278
8296
|
key: idx,
|
|
8279
8297
|
role: "alert",
|
|
8280
8298
|
"data-variation": "error",
|
|
8281
|
-
class: "amplify-text"
|
|
8299
|
+
class: "amplify-text amplify-text--error"
|
|
8282
8300
|
}, toDisplayString(unref(g$1)(error2)), 1);
|
|
8283
8301
|
}), 128))
|
|
8284
8302
|
])) : createCommentVNode("", true)
|
|
@@ -8402,7 +8420,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
8402
8420
|
disabled: unref(actorState).matches("signIn.submit"),
|
|
8403
8421
|
class: "amplify-field-group__control amplify-authenticator__font",
|
|
8404
8422
|
fullwidth: true,
|
|
8405
|
-
|
|
8423
|
+
loading: false,
|
|
8406
8424
|
variation: "primary"
|
|
8407
8425
|
}, {
|
|
8408
8426
|
default: withCtx(() => [
|
|
@@ -8426,9 +8444,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
8426
8444
|
createVNode(_component_amplify_button, {
|
|
8427
8445
|
onClick: onForgotPasswordClicked,
|
|
8428
8446
|
class: "amplify-field-group__control amplify-authenticator__font",
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
|
|
8447
|
+
variation: "link",
|
|
8448
|
+
fullwidth: true,
|
|
8449
|
+
size: "small",
|
|
8450
|
+
style: { "font-weight": "normal" },
|
|
8432
8451
|
type: "button"
|
|
8433
8452
|
}, {
|
|
8434
8453
|
default: withCtx(() => [
|
|
@@ -8521,9 +8540,10 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
8521
8540
|
})) : createCommentVNode("", true),
|
|
8522
8541
|
createVNode(_component_amplify_button, {
|
|
8523
8542
|
class: "amplify-field-group__control amplify-authenticator__font",
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
|
|
8543
|
+
fullwidth: true,
|
|
8544
|
+
loading: false,
|
|
8545
|
+
variation: "primary",
|
|
8546
|
+
style: { "border-radius": "0px", "font-weight": "normal" },
|
|
8527
8547
|
disabled: unref(isPending) || unref(hasValidationErrors)
|
|
8528
8548
|
}, {
|
|
8529
8549
|
default: withCtx(() => [
|
|
@@ -8619,12 +8639,13 @@ const _sfc_main$e = defineComponent({
|
|
|
8619
8639
|
var _a2, _b;
|
|
8620
8640
|
const defaultSlot = slots.default ? slots.default() : [];
|
|
8621
8641
|
const headingI = slots.headingI ? slots.headingI() : [];
|
|
8642
|
+
const headerClass = `${attrs.class || ""} amplify-heading--${props.level}`;
|
|
8622
8643
|
if (((_b = (_a2 = headingI[0]) == null ? void 0 : _a2.children) == null ? void 0 : _b.length) === 0) {
|
|
8623
8644
|
headingI[0].children = [
|
|
8624
|
-
h$2(`h${props.level}`, __spreadValues({}, attrs), [defaultSlot])
|
|
8645
|
+
h$2(`h${props.level}`, __spreadProps(__spreadValues({}, attrs), { class: headerClass }), [defaultSlot])
|
|
8625
8646
|
];
|
|
8626
8647
|
} else {
|
|
8627
|
-
return () => h$2(`h${props.level}`, __spreadValues({ "data-amplify-heading": "" }, attrs), [
|
|
8648
|
+
return () => h$2(`h${props.level}`, __spreadProps(__spreadValues({ "data-amplify-heading": "" }, attrs), { class: headerClass }), [
|
|
8628
8649
|
headingI[0] ? h$2(headingI[0].children[0]) : h$2(defaultSlot[0])
|
|
8629
8650
|
]);
|
|
8630
8651
|
}
|
|
@@ -8738,9 +8759,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
8738
8759
|
})) : createCommentVNode("", true),
|
|
8739
8760
|
createVNode(_component_amplify_button, {
|
|
8740
8761
|
class: "amplify-field-group__control amplify-authenticator__font",
|
|
8741
|
-
|
|
8742
|
-
|
|
8743
|
-
|
|
8762
|
+
fullwidth: false,
|
|
8763
|
+
loading: false,
|
|
8764
|
+
variation: "primary",
|
|
8744
8765
|
type: "submit",
|
|
8745
8766
|
disabled: unref(isPending)
|
|
8746
8767
|
}, {
|
|
@@ -8751,8 +8772,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
8751
8772
|
}, 8, ["disabled"]),
|
|
8752
8773
|
createVNode(_component_amplify_button, {
|
|
8753
8774
|
class: "amplify-field-group__control amplify-authenticator__font",
|
|
8754
|
-
|
|
8755
|
-
|
|
8775
|
+
fullwidth: false,
|
|
8776
|
+
variation: "default",
|
|
8777
|
+
style: { "font-weight": "normal" },
|
|
8756
8778
|
type: "button",
|
|
8757
8779
|
onClick: withModifiers(onLostCodeClicked, ["prevent"])
|
|
8758
8780
|
}, {
|
|
@@ -8877,9 +8899,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
8877
8899
|
})) : createCommentVNode("", true),
|
|
8878
8900
|
createVNode(_component_amplify_button, {
|
|
8879
8901
|
class: "amplify-field-group__control amplify-authenticator__font",
|
|
8880
|
-
|
|
8881
|
-
|
|
8882
|
-
|
|
8902
|
+
fullwidth: false,
|
|
8903
|
+
loading: false,
|
|
8904
|
+
variation: "primary",
|
|
8905
|
+
style: { "font-weight": "normal" },
|
|
8883
8906
|
disabled: unref(actorState).matches("confirmSignIn.pending")
|
|
8884
8907
|
}, {
|
|
8885
8908
|
default: withCtx(() => [
|
|
@@ -8889,9 +8912,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
8889
8912
|
}, 8, ["disabled"]),
|
|
8890
8913
|
createVNode(_component_amplify_button, {
|
|
8891
8914
|
class: "amplify-field-group__control amplify-authenticator__font",
|
|
8892
|
-
|
|
8893
|
-
|
|
8894
|
-
|
|
8915
|
+
fullwidth: false,
|
|
8916
|
+
size: "small",
|
|
8917
|
+
variation: "link",
|
|
8918
|
+
style: { "font-weight": "normal" },
|
|
8895
8919
|
type: "button",
|
|
8896
8920
|
onClick: withModifiers(onBackToSignInClicked, ["prevent"])
|
|
8897
8921
|
}, {
|
|
@@ -11079,9 +11103,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
11079
11103
|
})) : createCommentVNode("", true),
|
|
11080
11104
|
createVNode(_component_amplify_button, {
|
|
11081
11105
|
class: "amplify-field-group__control amplify-authenticator__font",
|
|
11082
|
-
|
|
11083
|
-
|
|
11084
|
-
|
|
11106
|
+
fullwidth: false,
|
|
11107
|
+
loading: false,
|
|
11108
|
+
variation: "primary",
|
|
11085
11109
|
type: "submit",
|
|
11086
11110
|
disabled: unref(actorState).matches("confirmSignIn.pending")
|
|
11087
11111
|
}, {
|
|
@@ -11092,9 +11116,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
11092
11116
|
}, 8, ["disabled"]),
|
|
11093
11117
|
createVNode(_component_amplify_button, {
|
|
11094
11118
|
class: "amplify-field-group__control amplify-authenticator__font",
|
|
11095
|
-
|
|
11096
|
-
|
|
11097
|
-
|
|
11119
|
+
fullwidth: false,
|
|
11120
|
+
size: "small",
|
|
11121
|
+
variation: "link",
|
|
11122
|
+
style: { "font-weight": "normal" },
|
|
11098
11123
|
type: "button",
|
|
11099
11124
|
onClick: withModifiers(onBackToSignInClicked, ["prevent"])
|
|
11100
11125
|
}, {
|
|
@@ -11230,9 +11255,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
11230
11255
|
})) : createCommentVNode("", true),
|
|
11231
11256
|
createVNode(_component_amplify_button, {
|
|
11232
11257
|
class: "amplify-field-group__control amplify-authenticator__font",
|
|
11233
|
-
|
|
11234
|
-
|
|
11235
|
-
|
|
11258
|
+
fullwidth: false,
|
|
11259
|
+
loading: false,
|
|
11260
|
+
variation: "primary",
|
|
11261
|
+
style: { "font-weight": "normal" },
|
|
11236
11262
|
disabled: unref(actorState).matches("signUp.submit")
|
|
11237
11263
|
}, {
|
|
11238
11264
|
default: withCtx(() => [
|
|
@@ -11242,9 +11268,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
11242
11268
|
}, 8, ["disabled"]),
|
|
11243
11269
|
createVNode(_component_amplify_button, {
|
|
11244
11270
|
class: "amplify-field-group__control amplify-authenticator__font",
|
|
11245
|
-
|
|
11246
|
-
|
|
11247
|
-
|
|
11271
|
+
fullwidth: false,
|
|
11272
|
+
size: "small",
|
|
11273
|
+
variation: "link",
|
|
11274
|
+
style: { "font-weight": "normal" },
|
|
11248
11275
|
type: "button",
|
|
11249
11276
|
onClick: withModifiers(onHaveAccountClicked, ["prevent"])
|
|
11250
11277
|
}, {
|
|
@@ -11356,8 +11383,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
11356
11383
|
})) : createCommentVNode("", true),
|
|
11357
11384
|
createVNode(_component_amplify_button, {
|
|
11358
11385
|
class: "amplify-field-group__control amplify-authenticator__font",
|
|
11359
|
-
|
|
11360
|
-
|
|
11386
|
+
fullwidth: false,
|
|
11387
|
+
variation: "primary",
|
|
11361
11388
|
type: "submit",
|
|
11362
11389
|
disabled: unref(isPending)
|
|
11363
11390
|
}, {
|
|
@@ -11368,9 +11395,10 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
11368
11395
|
}, 8, ["disabled"]),
|
|
11369
11396
|
createVNode(_component_amplify_button, {
|
|
11370
11397
|
class: "amplify-field-group__control amplify-authenticator__font",
|
|
11371
|
-
|
|
11372
|
-
|
|
11373
|
-
|
|
11398
|
+
fullwidth: false,
|
|
11399
|
+
size: "small",
|
|
11400
|
+
variation: "link",
|
|
11401
|
+
style: { "font-weight": "normal" },
|
|
11374
11402
|
type: "button",
|
|
11375
11403
|
onClick: withModifiers(onBackToSignInClicked, ["prevent"])
|
|
11376
11404
|
}, {
|
|
@@ -11489,8 +11517,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
11489
11517
|
})) : createCommentVNode("", true),
|
|
11490
11518
|
createVNode(_component_amplify_button, {
|
|
11491
11519
|
class: "amplify-field-group__control amplify-authenticator__font",
|
|
11492
|
-
|
|
11493
|
-
|
|
11520
|
+
variation: "primary",
|
|
11521
|
+
fullwidth: false,
|
|
11494
11522
|
type: "submit",
|
|
11495
11523
|
disabled: unref(actorState).matches("confirmResetPassword.pending")
|
|
11496
11524
|
}, {
|
|
@@ -11501,9 +11529,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
11501
11529
|
}, 8, ["disabled"]),
|
|
11502
11530
|
createVNode(_component_amplify_button, {
|
|
11503
11531
|
class: "amplify-field-group__control amplify-authenticator__font",
|
|
11504
|
-
|
|
11505
|
-
|
|
11506
|
-
|
|
11532
|
+
variation: "link",
|
|
11533
|
+
fullwidth: false,
|
|
11534
|
+
size: "small",
|
|
11507
11535
|
type: "button",
|
|
11508
11536
|
onClick: withModifiers(onLostYourCodeClicked, ["prevent"])
|
|
11509
11537
|
}, {
|
|
@@ -11673,8 +11701,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
11673
11701
|
})) : createCommentVNode("", true),
|
|
11674
11702
|
createVNode(_component_amplify_button, {
|
|
11675
11703
|
class: "amplify-field-group__control amplify-authenticator__font",
|
|
11676
|
-
|
|
11677
|
-
|
|
11704
|
+
fullwidth: false,
|
|
11705
|
+
variation: "primary",
|
|
11678
11706
|
type: "submit",
|
|
11679
11707
|
disabled: unref(actorState).matches("verifyUser.pending")
|
|
11680
11708
|
}, {
|
|
@@ -11685,9 +11713,10 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
11685
11713
|
}, 8, ["disabled"]),
|
|
11686
11714
|
createVNode(_component_amplify_button, {
|
|
11687
11715
|
class: "amplify-field-group__control amplify-authenticator__font",
|
|
11688
|
-
|
|
11689
|
-
|
|
11690
|
-
|
|
11716
|
+
fullwidth: false,
|
|
11717
|
+
size: "small",
|
|
11718
|
+
variation: "link",
|
|
11719
|
+
style: { "font-weight": "normal" },
|
|
11691
11720
|
type: "button",
|
|
11692
11721
|
onClick: withModifiers(onSkipClicked, ["prevent"])
|
|
11693
11722
|
}, {
|
|
@@ -11807,8 +11836,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
11807
11836
|
})) : createCommentVNode("", true),
|
|
11808
11837
|
createVNode(_component_amplify_button, {
|
|
11809
11838
|
class: "amplify-field-group__control amplify-authenticator__font",
|
|
11810
|
-
|
|
11811
|
-
|
|
11839
|
+
fullwidth: false,
|
|
11840
|
+
variation: "primary",
|
|
11812
11841
|
type: "submit",
|
|
11813
11842
|
disabled: unref(actorState).matches("confirmVerifyUser.pending")
|
|
11814
11843
|
}, {
|
|
@@ -11819,9 +11848,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
11819
11848
|
}, 8, ["disabled"]),
|
|
11820
11849
|
createVNode(_component_amplify_button, {
|
|
11821
11850
|
class: "amplify-field-group__control amplify-authenticator__font",
|
|
11822
|
-
|
|
11823
|
-
|
|
11824
|
-
|
|
11851
|
+
fullwidth: false,
|
|
11852
|
+
size: "small",
|
|
11853
|
+
variation: "link",
|
|
11854
|
+
style: { "font-weight": "normal" },
|
|
11825
11855
|
type: "button",
|
|
11826
11856
|
onClick: withModifiers(onSkipClicked, ["prevent"])
|
|
11827
11857
|
}, {
|
|
@@ -11883,7 +11913,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
11883
11913
|
setup(__props, { emit }) {
|
|
11884
11914
|
const { initialState, loginMechanisms, variation, services, signUpAttributes, socialProviders, hideSignUp, formFields } = __props;
|
|
11885
11915
|
const attrs = useAttrs();
|
|
11886
|
-
const machine =
|
|
11916
|
+
const machine = f();
|
|
11887
11917
|
const service2 = useInterpret(machine);
|
|
11888
11918
|
let unsubscribeHub;
|
|
11889
11919
|
let unsubscribeMachine;
|
|
@@ -11907,7 +11937,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
11907
11937
|
}
|
|
11908
11938
|
}).unsubscribe;
|
|
11909
11939
|
onMounted(() => {
|
|
11910
|
-
unsubscribeHub = r(
|
|
11940
|
+
unsubscribeHub = r(service2);
|
|
11911
11941
|
});
|
|
11912
11942
|
onUnmounted(() => {
|
|
11913
11943
|
if (unsubscribeHub)
|
|
@@ -12002,7 +12032,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
12002
12032
|
const user = ref(null);
|
|
12003
12033
|
const signOut = ref();
|
|
12004
12034
|
watch(() => state.value.context, () => {
|
|
12005
|
-
const { user: u2, signOut: s2 } = i$
|
|
12035
|
+
const { user: u2, signOut: s2 } = i$4({
|
|
12006
12036
|
send: send2,
|
|
12007
12037
|
state: state.value
|
|
12008
12038
|
});
|
|
@@ -12368,7 +12398,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12368
12398
|
})
|
|
12369
12399
|
]),
|
|
12370
12400
|
createElementVNode("span", {
|
|
12371
|
-
class: "amplify-flex amplify-checkbox__button",
|
|
12401
|
+
class: normalizeClass(["amplify-flex amplify-checkbox__button", {
|
|
12402
|
+
"amplify-checkbox__button--error": !checked.value
|
|
12403
|
+
}]),
|
|
12372
12404
|
"aria-hidden": "true",
|
|
12373
12405
|
"data-focus": "false",
|
|
12374
12406
|
"data-error": !checked.value,
|
|
@@ -12376,12 +12408,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12376
12408
|
}, [
|
|
12377
12409
|
(openBlock(), createElementBlock("svg", {
|
|
12378
12410
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12379
|
-
class: "amplify-icon amplify-checkbox__icon",
|
|
12411
|
+
class: normalizeClass(["amplify-icon amplify-checkbox__icon", {
|
|
12412
|
+
"amplify-checkbox__icon--checked": checked.value
|
|
12413
|
+
}]),
|
|
12380
12414
|
viewBox: "0 0 24 24",
|
|
12381
12415
|
fill: "currentColor",
|
|
12382
12416
|
"data-checked": checked.value
|
|
12383
|
-
}, _hoisted_7,
|
|
12384
|
-
],
|
|
12417
|
+
}, _hoisted_7, 10, _hoisted_5))
|
|
12418
|
+
], 10, _hoisted_4),
|
|
12385
12419
|
_hoisted_8
|
|
12386
12420
|
]),
|
|
12387
12421
|
!checked.value ? (openBlock(), createElementBlock("p", _hoisted_9, toDisplayString(unref(errorMessage)), 1)) : createCommentVNode("", true)
|