@aws-amplify/ui-vue 3.1.15 → 3.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +12 -12
- package/dist/index.js +143 -137
- package/dist/src/version.d.ts +1 -1
- package/package.json +7 -3
package/dist/index.js
CHANGED
|
@@ -70,7 +70,7 @@ var o$9, e$g;
|
|
|
70
70
|
}(o$9 || (o$9 = {})), function(o2) {
|
|
71
71
|
o2.Email = "email", o2.PhoneNumber = "phone_number";
|
|
72
72
|
}(e$g || (e$g = {}));
|
|
73
|
-
const e$f = ["birthdate", "email", "family_name", "given_name", "middle_name", "name", "nickname", "phone_number", "preferred_username", "profile", "website"], a$4 = ["username", "email", "phone_number"], r$
|
|
73
|
+
const e$f = ["birthdate", "email", "family_name", "given_name", "middle_name", "name", "nickname", "phone_number", "preferred_username", "profile", "website"], a$4 = ["username", "email", "phone_number"], r$6 = [...a$4, ...e$f, "confirmation_code", "password", "confirm_password"], i$5 = (e2) => r$6.includes(e2);
|
|
74
74
|
var e$e;
|
|
75
75
|
!function(e2) {
|
|
76
76
|
e2.Alert = "amplify-alert", e2.AlertIcon = "amplify-alert__icon", e2.AlertHeading = "amplify-alert__heading", e2.AlertBody = "amplify-alert__body", e2.AlertDismiss = "amplify-alert__dismiss", e2.Autocomplete = "amplify-autocomplete", e2.AutocompleteMenu = "amplify-autocomplete__menu", e2.AutocompleteMenuEmpty = "amplify-autocomplete__menu--empty", e2.AutocompleteMenuFooter = "amplify-autocomplete__menu__footer", e2.AutocompleteMenuHeader = "amplify-autocomplete__menu__header", e2.AutocompleteMenuLoading = "amplify-autocomplete__menu--loading", e2.AutocompleteMenuOption = "amplify-autocomplete__menu__option", e2.AutocompleteMenuOptions = "amplify-autocomplete__menu__options", e2.Badge = "amplify-badge", e2.Button = "amplify-button", e2.ButtonGroup = "amplify-buttongroup", e2.ButtonLoaderWrapper = "amplify-button__loader-wrapper", e2.Card = "amplify-card", e2.Checkbox = "amplify-checkbox", e2.CheckboxButton = "amplify-checkbox__button", e2.CheckboxIcon = "amplify-checkbox__icon", e2.CheckboxInput = "amplify-checkbox__input", e2.CheckboxLabel = "amplify-checkbox__label", e2.CheckboxField = "amplify-checkboxfield", e2.Collection = "amplify-collection", e2.CollectionItems = "amplify-collection-items", e2.CollectionSearch = "amplify-collection-search", e2.CollectionPagination = "amplify-collection-pagination", e2.CountryCodeSelect = "amplify-countrycodeselect", e2.DialCodeSelect = "amplify-dialcodeselect", e2.Divider = "amplify-divider", e2.DividerLabel = "amplify-divider--label", e2.Expander = "amplify-expander", e2.ExpanderContent = "amplify-expander__content", e2.ExpanderContentText = "amplify-expander__content__text", e2.ExpanderHeader = "amplify-expander__header", e2.ExpanderIcon = "amplify-expander__icon", e2.ExpanderItem = "amplify-expander__item", e2.ExpanderTrigger = "amplify-expander__trigger", e2.Field = "amplify-field", e2.FieldDescription = "amplify-field__description", e2.FieldErrorMessage = "amplify-field__error-message", e2.FieldGroup = "amplify-field-group", e2.FieldGroupControl = "amplify-field-group__control", e2.FieldGroupOuterEnd = "amplify-field-group__outer-end", e2.FieldGroupOuterStart = "amplify-field-group__outer-start", e2.FieldGroupInnerEnd = "amplify-field-group__inner-end", e2.FieldGroupInnerStart = "amplify-field-group__inner-start", e2.FieldGroupIcon = "amplify-field-group__icon", e2.FieldGroupIconButton = "amplify-field-group__icon-button", e2.FieldGroupHasInnerEnd = "amplify-field-group--has-inner-end", e2.FieldGroupHasInnerStart = "amplify-field-group--has-inner-start", e2.FieldShowPassword = "amplify-field__show-password", e2.FieldGroupFieldWrapper = "amplify-field-group__field-wrapper", e2.FileUploaderDropZone = "amplify-fileuploader__dropzone", e2.FileUploaderDropZoneIcon = "amplify-fileuploader__dropzone__icon", e2.FileUploaderDropZoneText = "amplify-fileuploader__dropzone__text", e2.FileUploaderDropZoneButton = "amplify-fileuploader__dropzone__button", e2.FileUploaderFile = "amplify-fileuploader__file", e2.FileUploaderFileWrapper = "amplify-fileuploader__file__wrapper", e2.FileUploaderFileName = "amplify-fileuploader__file__name", e2.FileUploaderFileSize = "amplify-fileuploader__file__size", e2.FileUploaderFileInfo = "amplify-fileuploader__file__info", e2.FileUploaderFileImage = "amplify-fileuploader__file__image", e2.FileUploaderFileMain = "amplify-fileuploader__file__main", e2.FileUploaderFileStatus = "amplify-fileuploader__file__status", e2.FileUploaderLoader = "amplify-fileuploader__loader", e2.FileUploaderPreviewer = "amplify-fileuploader__previewer", e2.FileUploaderPreviewerText = "amplify-fileuploader__previewer__text", e2.FileUploaderPreviewerBody = "amplify-fileuploader__previewer__body", e2.FileUploaderPreviewerFooter = "amplify-fileuploader__previewer__footer", e2.FileUploaderPreviewerFooterActions = "amplify-fileuploader__previewer__footer__actions", e2.Flex = "amplify-flex", e2.Grid = "amplify-grid", e2.Heading = "amplify-heading", e2.HighlightMatch = "amplify-highlightmatch", e2.HighlightMatchHighlighted = "amplify-highlightmatch__highlighted", e2.Icon = "amplify-icon", e2.Image = "amplify-image", e2.Input = "amplify-input", e2.Label = "amplify-label", e2.Link = "amplify-link", e2.Loader = "amplify-loader", e2.LoaderDeterminate = "amplify-loader--determinate", e2.LoaderPercentageText = "amplify-loader__percentage-text", e2.MenuContent = "amplify-menu-content", e2.MenuContentWrapper = "amplify-menu-content-wrapper", e2.MenuItem = "amplify-menu-content__item", e2.MenuTrigger = "amplify-menu-trigger", e2.Pagination = "amplify-pagination", e2.PaginationItemButton = "amplify-pagination__item-button", e2.PaginationItemCurrent = "amplify-pagination__item-current", e2.PaginationItemEllipsis = "amplify-pagination__item-ellipsis", e2.PasswordField = "amplify-passwordfield", e2.PhoneNumberField = "amplify-phonenumberfield", e2.Placeholder = "amplify-placeholder", e2.Radio = "amplify-radio", e2.RadioButton = "amplify-radio__button", e2.RadioInput = "amplify-radio__input", e2.RadioLabel = "amplify-radio__label", e2.RadioGroupField = "amplify-radiogroupfield", e2.RadioGroup = "amplify-radiogroup", e2.Rating = "amplify-rating", e2.ScrollView = "amplify-scrollview", e2.SearchField = "amplify-searchfield", e2.SearchFieldClear = "amplify-searchfield__clear", e2.SearchFieldSearch = "amplify-searchfield__search", e2.Select = "amplify-select", e2.SelectField = "amplify-selectfield", e2.SelectWrapper = "amplify-select__wrapper", e2.SelectIconWrapper = "amplify-select__icon-wrapper", e2.SliderField = "amplify-sliderfield", e2.SliderFieldGroup = "amplify-sliderfield__group", e2.SliderFieldLabel = "amplify-sliderfield__label", e2.SliderFieldRange = "amplify-sliderfield__range", e2.SliderFieldRoot = "amplify-sliderfield__root", e2.SliderFieldThumb = "amplify-sliderfield__thumb", e2.SliderFieldTrack = "amplify-sliderfield__track", e2.StepperField = "amplify-stepperfield", e2.StepperFieldButtonDecrease = "amplify-stepperfield__button--decrease", e2.StepperFieldButtonIncrease = "amplify-stepperfield__button--increase", e2.StepperFieldInput = "amplify-stepperfield__input", e2.StorageManager = "amplify-storagemanager", e2.StorageManagerDropZone = "amplify-storagemanager__dropzone", e2.StorageManagerDropZoneIcon = "amplify-storagemanager__dropzone__icon", e2.StorageManagerDropZoneText = "amplify-storagemanager__dropzone__text", e2.StorageManagerFilePicker = "amplify-storagemanager__file__picker", e2.StorageManagerFile = "amplify-storagemanager__file", e2.StorageManagerFileWrapper = "amplify-storagemanager__file__wrapper", e2.StorageManagerFileList = "amplify-storagemanager__file__list", e2.StorageManagerFileName = "amplify-storagemanager__file__name", e2.StorageManagerFileSize = "amplify-storagemanager__file__size", e2.StorageManagerFileInfo = "amplify-storagemanager__file__info", e2.StorageManagerFileImage = "amplify-storagemanager__file__image", e2.StorageManagerFileMain = "amplify-storagemanager__file__main", e2.StorageManagerFileStatus = "amplify-storagemanager__file__status", e2.StorageManagerLoader = "amplify-storagemanager__loader", e2.StorageManagerPreviewer = "amplify-storagemanager__previewer", e2.StorageManagerPreviewerText = "amplify-storagemanager__previewer__text", e2.SwitchField = "amplify-switchfield", e2.SwitchLabel = "amplify-switch-label", e2.SwitchThumb = "amplify-switch-thumb", e2.SwitchTrack = "amplify-switch-track", e2.SwitchWrapper = "amplify-switch__wrapper", e2.Table = "amplify-table", e2.TableCaption = "amplify-table__caption", e2.TableBody = "amplify-table__body", e2.TableTd = "amplify-table__td", e2.TableTh = "amplify-table__th", e2.TableFoot = "amplify-table__foot", e2.TableHead = "amplify-table__head", e2.TableRow = "amplify-table__row", e2.Tabs = "amplify-tabs", e2.TabItems = "amplify-tabs-item", e2.Text = "amplify-text", e2.Textarea = "amplify-textarea", e2.TextAreaField = "amplify-textareafield", e2.TextField = "amplify-textfield", e2.ToggleButton = "amplify-togglebutton", e2.ToggleButtonGroup = "amplify-togglebuttongroup", e2.VisuallyHidden = "amplify-visually-hidden";
|
|
@@ -80,7 +80,7 @@ const i$4 = (t2) => {
|
|
|
80
80
|
const s2 = null === (i2 = null == t2 ? void 0 : t2.context.config) || void 0 === i2 ? void 0 : i2.loginMechanisms, [n2] = null != s2 ? s2 : ["username"];
|
|
81
81
|
return n2;
|
|
82
82
|
};
|
|
83
|
-
const r$
|
|
83
|
+
const r$5 = (e2) => {
|
|
84
84
|
const t2 = (t3) => (r2) => e2({ type: t3, data: r2 });
|
|
85
85
|
return { initializeMachine: t2("INIT"), resendCode: t2("RESEND"), signOut: t2("SIGN_OUT"), submitForm: t2("SUBMIT"), updateForm: t2("CHANGE"), updateBlur: t2("BLUR"), toFederatedSignIn: t2("FEDERATED_SIGN_IN"), toResetPassword: t2("RESET_PASSWORD"), toSignIn: t2("SIGN_IN"), toSignUp: t2("SIGN_UP"), skipVerification: t2("SKIP") };
|
|
86
86
|
}, n$5 = (r2) => {
|
|
@@ -134,8 +134,8 @@ const r$4 = (e2) => {
|
|
|
134
134
|
}
|
|
135
135
|
})(I);
|
|
136
136
|
return { authStatus: P2, codeDeliveryDetails: u2, error: d2, hasValidationErrors: f2, isPending: S, route: I, socialProviders: v2, totpSecretCode: h2, unverifiedContactMethods: l2, user: g2, validationErrors: m2 };
|
|
137
|
-
}, s$
|
|
138
|
-
const s2 = r$
|
|
137
|
+
}, s$3 = ({ send: e2, state: t2 }) => {
|
|
138
|
+
const s2 = r$5(e2), i2 = n$5(t2);
|
|
139
139
|
return Object.assign(Object.assign({}, s2), i2);
|
|
140
140
|
};
|
|
141
141
|
const o$8 = ["+1", "+7", "+20", "+27", "+30", "+31", "+32", "+33", "+34", "+36", "+39", "+40", "+41", "+43", "+44", "+45", "+46", "+47", "+48", "+49", "+51", "+52", "+53", "+54", "+55", "+56", "+57", "+58", "+60", "+61", "+62", "+63", "+64", "+65", "+66", "+81", "+82", "+84", "+86", "+90", "+91", "+92", "+93", "+94", "+95", "+98", "+212", "+213", "+216", "+218", "+220", "+221", "+222", "+223", "+224", "+225", "+226", "+227", "+228", "+229", "+230", "+231", "+232", "+233", "+234", "+235", "+236", "+237", "+238", "+239", "+240", "+241", "+242", "+243", "+244", "+245", "+246", "+248", "+249", "+250", "+251", "+252", "+253", "+254", "+255", "+256", "+257", "+258", "+260", "+261", "+262", "+263", "+264", "+265", "+266", "+267", "+268", "+269", "+290", "+291", "+297", "+298", "+299", "+345", "+350", "+351", "+352", "+353", "+354", "+355", "+356", "+357", "+358", "+359", "+370", "+371", "+372", "+373", "+374", "+375", "+376", "+377", "+378", "+379", "+380", "+381", "+382", "+385", "+386", "+387", "+389", "+420", "+421", "+423", "+500", "+501", "+502", "+503", "+504", "+505", "+506", "+507", "+508", "+509", "+537", "+590", "+591", "+593", "+594", "+595", "+596", "+597", "+598", "+599", "+670", "+672", "+673", "+674", "+675", "+676", "+677", "+678", "+679", "+680", "+681", "+682", "+683", "+685", "+686", "+687", "+688", "+689", "+690", "+691", "+692", "+850", "+852", "+853", "+855", "+856", "+872", "+880", "+886", "+960", "+961", "+962", "+963", "+964", "+965", "+966", "+967", "+968", "+970", "+971", "+972", "+973", "+974", "+975", "+976", "+977", "+992", "+993", "+994", "+995", "+996", "+998"];
|
|
@@ -157,17 +157,17 @@ const e$3 = { "Account recovery requires verified contact information": "\u0412\
|
|
|
157
157
|
const n$4 = { "Account recovery requires verified contact information": "\u05E9\u05D7\u05D6\u05D5\u05E8 \u05DC\u05E7\u05D5\u05D7 \u05D3\u05D5\u05E8\u05E9 \u05E2\u05D5\u05D3 \u05DE\u05D9\u05D3\u05E2", "Back to Sign In": "\u05D7\u05D6\u05D5\u05E8 \u05DC\u05D4\u05E8\u05E9\u05DE\u05D4", "Change Password": "\u05E2\u05D3\u05DB\u05D5\u05DF \u05E1\u05D9\u05E1\u05DE\u05D0", Changing: "\u05DE\u05E2\u05D3\u05DB\u05DF", Code: "\u05E7\u05D5\u05D3", "Confirm Password": "\u05D0\u05E9\u05E8 \u05E1\u05D9\u05E1\u05DE\u05D0", "Confirm Sign Up": "\u05D0\u05E9\u05E8 \u05D4\u05E8\u05E9\u05DE\u05D4", "Confirm SMS Code": "\u05D0\u05E9\u05E8 sms \u05E7\u05D5\u05D3", "Confirm TOTP Code": "\u05D0\u05E9\u05E8 totp \u05E7\u05D5\u05D3", Confirm: "\u05D0\u05D9\u05E9\u05D5\u05E8", "Confirmation Code": "\u05D0\u05D9\u05E9\u05D5\u05E8 \u05E7\u05D5\u05D3", Confirming: "\u05DE\u05D0\u05E9\u05E8", "Create a new account": "\u05E6\u05D5\u05E8 \u05DE\u05E9\u05EA\u05DE\u05E9 \u05D7\u05D3\u05E9", "Create Account": "\u05E6\u05D5\u05E8 \u05DE\u05E9\u05EA\u05DE\u05E9", "Creating Account": "\u05D9\u05E6\u05D9\u05E8\u05EA \u05DE\u05E9\u05EA\u05DE\u05E9", "Dismiss alert": "\u05D4\u05E1\u05E8 \u05D4\u05EA\u05E8\u05D0\u05D4", Email: "\u05D0\u05D9\u05DE\u05D9\u05D9\u05DC", "Enter your code": "\u05D4\u05DB\u05E0\u05E1 \u05D0\u05EA \u05D4\u05E7\u05D5\u05D3", "Enter your email": "\u05D4\u05DB\u05E0\u05E1 \u05D0\u05EA \u05D4\u05DE\u05D9\u05D9\u05DC \u05E9\u05DC\u05DA", "Enter your phone number": "\u05D4\u05DB\u05E0\u05E1 \u05D0\u05EA \u05DE\u05E1\u05E4\u05E8 \u05D4\u05D8\u05DC\u05E4\u05D5\u05DF \u05E9\u05DC\u05DA", "Enter your username": "\u05D4\u05DB\u05E0\u05E1 \u05D0\u05EA \u05E9\u05DD \u05D4\u05DE\u05EA\u05DE\u05E9 \u05E9\u05DC\u05DA", "Forgot your password?": "\u05E9\u05D7\u05DB\u05EA \u05E1\u05D9\u05E1\u05DE\u05D0 ?", "Hide password": "\u05D4\u05E1\u05EA\u05E8 \u05E1\u05D9\u05E1\u05DE\u05D0", Loading: "\u05D8\u05D5\u05E2\u05DF", "New password": "\u05E1\u05D9\u05E1\u05DE\u05D0 \u05D7\u05D3\u05E9\u05D4", or: "\u05D0\u05D5\u05B9", Password: "\u05E1\u05D9\u05E1\u05DE\u05D0", "Phone Number": "\u05DE\u05E1\u05E4\u05E8 \u05D8\u05DC\u05E4\u05D5\u05DF", "Resend Code": "\u05E9\u05DC\u05D7 \u05E7\u05D5\u05D3 \u05E9\u05D5\u05D1", "Reset your password": "\u05D0\u05E4\u05E1 \u05E1\u05D9\u05E1\u05DE\u05D0", "Reset your Password": "\u05D0\u05E4\u05E1 \u05E1\u05D9\u05E1\u05DE\u05D0", "Send code": "\u05E9\u05DC\u05D7 \u05E7\u05D5\u05D3", "Send Code": "\u05E9\u05DC\u05D7 \u05E7\u05D5\u05D3", Sending: "\u05E9\u05D5\u05DC\u05D7", "Setup TOTP": "Setup TOTP", "Show password": "\u05D4\u05E6\u05D2 \u05E1\u05D9\u05E1\u05DE\u05D0", "Sign in to your account": "\u05D4\u05EA\u05D7\u05D1\u05E8 \u05DC\u05D7\u05E9\u05D1\u05D5\u05DF \u05E9\u05DC\u05DA", "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": "\u05D4\u05EA\u05D7\u05D1\u05E8", "Sign In": "\u05D4\u05EA\u05D7\u05D1\u05E8", "Signing in": "\u05DE\u05EA\u05D7\u05D1\u05E8", Skip: "\u05D3\u05DC\u05D2", Submit: "\u05E9\u05DC\u05D7", Submitting: "\u05E9\u05D5\u05DC\u05D7", Username: "\u05E9\u05DD \u05DE\u05E9\u05EA\u05DE\u05E9", "Verify Contact": "\u05D0\u05DE\u05EA \u05D0\u05D9\u05E9 \u05E7\u05E9\u05E8", Verify: "\u05D0\u05DE\u05EA" };
|
|
158
158
|
const e$2 = { "Account recovery requires verified contact information": "\u0412\u0456\u0434\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u044F \u043E\u0431\u043B\u0456\u043A\u043E\u0432\u043E\u0433\u043E \u0437\u0430\u043F\u0438\u0441\u0443 \u043F\u043E\u0442\u0440\u0435\u0431\u0443\u0454 \u043A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0457 \u0456\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u0457", "Back to Sign In": "\u041D\u0430\u0437\u0430\u0434 \u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0443 \u0432\u0445\u043E\u0434\u0443", "Change Password": "\u0417\u043C\u0456\u043D\u0438\u0442\u0438 \u043F\u0430\u0440\u043E\u043B\u044C", Changing: "\u0417\u043C\u0456\u043D\u044E\u0454\u043C\u043E", Code: "\u041A\u043E\u0434", "Confirm Password": "\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0456\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C", "Confirm Sign Up": "\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0456\u0442\u044C \u0440\u0435\u0454\u0441\u0442\u0440\u0430\u0446\u0456\u044E", "Confirm SMS Code": "\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0456\u0442\u044C SMS \u043A\u043E\u0434", "Confirm TOTP Code": "\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0456\u0442\u044C TOTP \u043A\u043E\u0434", Confirm: "\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0438", "Confirmation Code": "\u041A\u043E\u0434 \u043F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0436\u0435\u043D\u043D\u044F", Confirming: "\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0436\u0443\u0454\u043C\u043E", "Create a new account": "\u0417\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0432\u0430\u0442\u0438\u0441\u044F", "Create Account": "\u0417\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0432\u0430\u0442\u0438\u0441\u044F", "Creating Account": "\u0420\u0435\u0454\u0441\u0442\u0440\u0443\u0454\u043C\u043E", "Dismiss alert": "\u0412\u0456\u0434\u0445\u0438\u043B\u0438\u0442\u0438 \u0441\u043F\u043E\u0432\u0456\u0449\u0435\u043D\u043D\u044F", Email: "Email", "Enter your code": "\u0412\u0432\u0435\u0434\u0456\u0442\u044C \u043A\u043E\u0434", "Enter your email": "\u0412\u0432\u0435\u0434\u0456\u0442\u044C \u0432\u0430\u0448 email", "Enter your phone number": "\u0412\u0432\u0435\u0434\u0456\u0442\u044C \u0432\u0430\u0448 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0443", "Enter your username": "\u0412\u0432\u0435\u0434\u0456\u0442\u044C \u0432\u0430\u0448\u0435 \u0456\u043C\u02BC\u044F \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430", "Forgot password?": "\u0417\u0430\u0431\u0443\u043B\u0438 \u043F\u0430\u0440\u043E\u043B\u044C?", "Forgot your password?": "\u0417\u0430\u0431\u0443\u043B\u0438 \u0432\u0430\u0448 \u043F\u0430\u0440\u043E\u043B\u044C?", "Hide password": "\u0421\u0445\u043E\u0432\u0430\u0442\u0438 \u043F\u0430\u0440\u043E\u043B\u044C", "It may take a minute to arrive": "\u0414\u043E\u0441\u0442\u0430\u0432\u043A\u0430 \u043C\u043E\u0436\u0435 \u0442\u0440\u0438\u0432\u0430\u0442\u0438 \u0445\u0432\u0438\u043B\u0438\u043D\u0443", Loading: "\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0454\u043C\u043E", "New password": "\u041D\u043E\u0432\u0438\u0439 \u043F\u0430\u0440\u043E\u043B\u044C", or: "\u0430\u0431\u043E", Password: "\u041F\u0430\u0440\u043E\u043B\u044C", "Phone Number": "\u041D\u043E\u043C\u0435\u0440 \u0422\u0435\u043B\u0435\u0444\u043E\u043D\u0443", "Resend Code": "\u0412\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u0442\u0438 \u043A\u043E\u0434 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E", "Reset your password": "\u0421\u043A\u0438\u043D\u0443\u0442\u0438 \u043F\u0430\u0440\u043E\u043B\u044C", "Reset your Password": "\u0421\u043A\u0438\u043D\u0443\u0442\u0438 \u043F\u0430\u0440\u043E\u043B\u044C", "Send code": "\u0412\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u0442\u0438 \u043A\u043E\u0434", "Send Code": "\u0412\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u0442\u0438 \u043A\u043E\u0434", Sending: "\u0412\u0456\u0434\u043F\u0440\u0430\u0432\u043B\u044F\u0454\u043C\u043E", "Setup TOTP": "\u041D\u0430\u043B\u0430\u0448\u0442\u0443\u0432\u0430\u0442\u0438 TOTP", "Show password": "\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u0438 \u043F\u0430\u0440\u043E\u043B\u044C", "Sign in to your account": "\u0423\u0432\u0456\u0439\u0442\u0438 \u0443 \u0432\u0430\u0448 \u043E\u0431\u043B\u0456\u043A\u043E\u0432\u0438\u0439 \u0437\u0430\u043F\u0438\u0441", "Sign In with Amazon": "\u0423\u0432\u0456\u0439\u0442\u0438 \u0437 Amazon", "Sign In with Apple": "\u0423\u0432\u0456\u0439\u0442\u0438 \u0437 Apple", "Sign In with Facebook": "\u0423\u0432\u0456\u0439\u0442\u0438 \u0437 Facebook", "Sign In with Google": "\u0423\u0432\u0456\u0439\u0442\u0438 \u0437 Google", "Sign in": "\u0423\u0432\u0456\u0439\u0442\u0438", "Sign In": "\u0423\u0432\u0456\u0439\u0442\u0438", "Signing in": "\u0412\u0445\u043E\u0434\u0438\u043C\u043E", Skip: "\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u0438", Submit: "\u0412\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u0442\u0438", Submitting: "\u0412\u0456\u0434\u043F\u0440\u0430\u0432\u043B\u044F\u0454\u043C\u043E", Username: "\u0406\u043C\u02BC\u044F \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430", "Verify Contact": "\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0438 \u041A\u043E\u043D\u0442\u0430\u043A\u0442", Verify: "\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0438", "We Emailed You": "\u041C\u0438 \u0432\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u043B\u0438 \u0432\u0430\u043C Email", "We Sent A Code": "\u041C\u0438 \u0432\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u043B\u0438 \u043A\u043E\u0434", "We Texted You": "\u041C\u0438 \u0432\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u043B\u0438 \u0432\u0430\u043C \u0442\u0435\u043A\u0441\u0442\u043E\u0432\u0435 \u043F\u043E\u0432\u0456\u0434\u043E\u043C\u043B\u0435\u043D\u043D\u044F", "Your code is on the way. To log in, enter the code we emailed to": "\u0412\u0430\u0448 \u043A\u043E\u0434 \u0432\u0436\u0435 \u0432 \u0434\u043E\u0440\u043E\u0437\u0456. \u0429\u043E\u0431 \u0443\u0432\u0456\u0439\u0442\u0438, \u0432\u0432\u0435\u0434\u0456\u0442\u044C \u043A\u043E\u0434, \u0449\u043E \u043C\u0438 \u0432\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u043B\u0438 \u0432\u0430\u043C \u043D\u0430 Email", "Your code is on the way. To log in, enter the code we sent you": "\u0412\u0430\u0448 \u043A\u043E\u0434 \u0432\u0436\u0435 \u0432 \u0434\u043E\u0440\u043E\u0437\u0456. \u0429\u043E\u0431 \u0443\u0432\u0456\u0439\u0442\u0438, \u0432\u0432\u0435\u0434\u0456\u0442\u044C \u043A\u043E\u0434, \u0449\u043E \u043C\u0438 \u0432\u0430\u043C \u0432\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u043B\u0438", "Your code is on the way. To log in, enter the code we texted to": "\u0412\u0430\u0448 \u043A\u043E\u0434 \u0432\u0436\u0435 \u0432 \u0434\u043E\u0440\u043E\u0437\u0456. \u0429\u043E\u0431 \u0443\u0432\u0456\u0439\u0442\u0438, \u0432\u0432\u0435\u0434\u0456\u0442\u044C \u043A\u043E\u0434, \u0449\u043E \u043C\u0438 \u0432\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u043B\u0438 \u0432\u0430\u043C \u0442\u0435\u043A\u0441\u0442\u043E\u0432\u0438\u043C \u043F\u043E\u0432\u0456\u0434\u043E\u043C\u043B\u0435\u043D\u043D\u044F\u043C", "An account with the given email already exists.": "\u041E\u0431\u043B\u0456\u043A\u043E\u0432\u0438\u0439 \u0437\u0430\u043F\u0438\u0441 \u0437 \u0446\u0438\u043C Email \u0432\u0436\u0435 \u0456\u0441\u043D\u0443\u0454.", "Confirm a Code": "\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0456\u0442\u044C \u043A\u043E\u0434", "Confirm Sign In": "\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0456\u0442\u044C \u0432\u0445\u0456\u0434", "Forgot Password": "\u0417\u0430\u0431\u0443\u043B\u0438 \u043F\u0430\u0440\u043E\u043B\u044C", "Incorrect username or password.": "\u041D\u0435\u0432\u0456\u0440\u043D\u0435 \u0456\u043C\u02BC\u044F \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430 \u0430\u0431\u043E \u043F\u0430\u0440\u043E\u043B\u044C", "Invalid password format": "\u041D\u0435\u0432\u0456\u0440\u043D\u0438\u0439 \u0444\u043E\u0440\u043C\u0430\u0442 \u043F\u0430\u0440\u043E\u043B\u044E", "Invalid phone number format": "\u041D\u0435\u0432\u0456\u0440\u043D\u0438\u0439 \u0444\u043E\u0440\u043C\u0430\u0442 \u043D\u043E\u043C\u0435\u0440\u0443 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0443", "Loading...": "\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0454\u043C\u043E...", "New Password": "\u041D\u043E\u0432\u0438\u0439 \u043F\u0430\u0440\u043E\u043B\u044C", "Resend a Code": "\u0412\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u0442\u0438 \u043A\u043E\u0434 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E", "Reset Password": "\u0421\u043A\u0438\u043D\u0443\u0442\u0438 \u043F\u0430\u0440\u043E\u043B\u044C", "Sign Out": "\u0412\u0438\u0439\u0442\u0438", "Sign Up with Amazon": "\u0417\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u0437 Amazon", "Sign Up with Apple": "\u0417\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u0437 Apple", "Sign Up with Facebook": "\u0417\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u0437 Facebook", "Sign Up with Google": "\u0417\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u0437 Google", "Sign Up": "\u0417\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0432\u0430\u0442\u0438\u0441\u044F", "User already exists": "\u041A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447 \u0432\u0436\u0435 \u0456\u0441\u043D\u0443\u0454", "User does not exist": "\u0422\u0430\u043A\u0438\u0439 \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447 \u043D\u0435 \u0456\u0441\u043D\u0443\u0454", "Username cannot be empty": "\u0406\u043C\u02BC\u044F \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430 \u043D\u0435 \u043C\u043E\u0436\u0435 \u0431\u0443\u0442\u0438 \u043F\u0443\u0441\u0442\u0438\u043C", "Your passwords must match": "\u041F\u0430\u0440\u043E\u043B\u0456 \u043C\u0430\u044E\u0442\u044C \u0437\u0431\u0456\u0433\u0430\u0442\u0438\u0441\u044F" };
|
|
159
159
|
const E$2 = { ADD_PROFILE: "Add your Profile", ADD_WEBSITE: "Add your Website", BACK_SIGN_IN: "Back to Sign In", BIRTHDATE: "Birthdate", CHANGE_PASSWORD: "Change Password", CHANGING_PASSWORD: "Changing", CODE: "Code", CODE_ARRIVAL: "It may take a minute to arrive", CODE_EMAILED: "Your code is on the way. To log in, enter the code we emailed to", CODE_SENT: "Your code is on the way. To log in, enter the code we sent you", CODE_TEXTED: "Your code is on the way. To log in, enter the code we texted to", CONFIRM_PASSWORD: "Confirm Password", CONFIRM_PASSWORD_PLACEHOLDER: "Please confirm your 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_BIRTHDATE: "Enter your Birthdate", ENTER_CODE: "Enter your code", ENTER_CONFIRMATION_CODE: "Enter your Confirmation Code", ENTER_EMAIL: "Enter your Email", ENTER_FAMILY_NAME: "Enter your Family Name", ENTER_GIVEN_NAME: "Enter your Given Name", ENTER_MIDDLE_NAME: "Enter your Middle Name", ENTER_NAME: "Enter your Name", ENTER_NICK_NAME: "Enter your Nickname", ENTER_PASSWORD: "Enter your Password", ENTER_PHONE_NUMBER: "Enter your Phone Number", ENTER_PREFERRED_USERNAME: "Enter your Preferred Username", ENTER_USERNAME: "Enter your username", FAMILY_NAME: "Family Name", GIVEN_NAME: "Given Name", FORGOT_PASSWORD: "Forgot Password?", FORGOT_YOUR_PASSWORD: "Forgot your password?", HIDE_PASSWORD: "Hide password", LOADING: "Loading", LOGIN_NAME: "Username", MIDDLE_NAME: "Middle Name", NAME: "Name", NICKNAME: "Nickname", NEW_PASSWORD: "New password", OR: "or", 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", UPPERCASE_COPY: "COPY", VERIFY_CONTACT: "Verify Contact", VERIFY_HEADING: "Account recovery requires verified contact information", VERIFY: "Verify", WE_EMAILED: "We Emailed You", WE_SENT_CODE: "We Sent A Code", WE_TEXTED: "We Texted You", WEBSITE: "Website" };
|
|
160
|
-
const D$1 = Object.assign({}, e$d), d$2 = Object.assign({}, e$c), l$
|
|
160
|
+
const D$1 = Object.assign({}, e$d), d$2 = Object.assign({}, e$c), l$1 = Object.assign({}, e$b), x$1 = Object.assign({}, e$a), k$1 = Object.assign({}, o$7), v$2 = Object.assign({}, e$9), z = Object.assign({}, e$8), T$1 = Object.assign({}, e$7), q$1 = Object.assign({}, o$6), w$2 = Object.assign({}, o$5), y$2 = Object.assign({}, e$6), A$1 = Object.assign({}, e$5), B = Object.assign({}, a$3), C$1 = Object.assign({}, e$4), E$1 = Object.assign({}, e$3), F$1 = Object.assign({}, n$4), G = Object.assign({}, e$2), H = Object.assign({}, E$2);
|
|
161
161
|
const x = Object.assign({}, H);
|
|
162
|
-
function b$
|
|
162
|
+
function b$3(r2) {
|
|
163
163
|
return I18n.get(r2);
|
|
164
164
|
}
|
|
165
|
-
const w$1 = { de: D$1, en: d$2, es: l$
|
|
166
|
-
const r$
|
|
165
|
+
const w$1 = { de: D$1, en: d$2, es: l$1, fr: x$1, id: B, it: k$1, ja: v$2, kr: z, ko: z, nl: T$1, pl: q$1, pt: w$2, zh: y$2, sv: A$1, tr: C$1, ru: E$1, he: F$1, ua: G };
|
|
166
|
+
const r$4 = { birthdate: { label: "Birthdate", placeholder: "Enter your Birthdate", type: "date", autocomplete: "bday", isRequired: true }, confirmation_code: { label: "Confirmation Code", placeholder: "Enter your Confirmation Code", type: "number", autocomplete: "one-time-code", isRequired: true }, confirm_password: { label: "Confirm Password", placeholder: "Please confirm your Password", type: "password", autocomplete: "new-password", isRequired: true }, email: { label: "Email", placeholder: "Enter your Email", type: "email", autocomplete: "username", isRequired: true }, family_name: { label: "Family Name", placeholder: "Enter your Family Name", type: "text", autocomplete: "family-name", isRequired: true }, given_name: { label: "Given Name", placeholder: "Enter your Given Name", type: "text", autocomplete: "given-name", isRequired: true }, middle_name: { label: "Middle Name", placeholder: "Enter your Middle Name", type: "text", autocomplete: "additional-name", isRequired: true }, name: { label: "Name", placeholder: "Enter your Name", type: "text", autocomplete: "name", isRequired: true }, nickname: { label: "Nickname", placeholder: "Enter your Nickname", type: "text", autocomplete: "tel", isRequired: true }, password: { label: "Password", placeholder: "Enter your Password", type: "password", autocomplete: "new-password", isRequired: true }, phone_number: { label: "Phone Number", placeholder: "Enter your Phone Number", type: "tel", autocomplete: "tel", dialCode: "+1", dialCodeList: o$8, isRequired: true }, preferred_username: { label: "Preferred Username", placeholder: "Enter your Preferred Username", type: "text", isRequired: true }, profile: { label: "Profile", placeholder: "Add your Profile", type: "url", autocomplete: "url", isRequired: true }, website: { label: "Website", placeholder: "Add your Website", type: "url", autocomplete: "url", isRequired: true }, username: { label: "Username", placeholder: "Enter your Username", type: "text", autocomplete: "username", isRequired: true } }, a$2 = ["^", "$", "*", ".", "[", "]", "{", "}", "(", ")", "?", '"', "!", "@", "#", "%", "&", "/", "\\", ",", ">", "<", "'", ":", ";", "|", "_", "~", "`", "=", "+", "-", " "];
|
|
167
167
|
const t = (r2) => {
|
|
168
168
|
const t2 = new FormData(r2.target);
|
|
169
169
|
return Object.fromEntries(t2);
|
|
170
|
-
}, o$4 = (t2) => r$
|
|
170
|
+
}, o$4 = (t2) => r$6.includes(t2), s$2 = (r2) => {
|
|
171
171
|
return r2 ? (t2 = r2, Array.isArray(t2) ? r2 : [r2]) : null;
|
|
172
172
|
var t2;
|
|
173
173
|
};
|
|
@@ -344,83 +344,116 @@ function waitFor(actorRef, predicate, options) {
|
|
|
344
344
|
});
|
|
345
345
|
}
|
|
346
346
|
var waitFor_2 = waitFor$1.waitFor = waitFor;
|
|
347
|
-
|
|
347
|
+
function r$3(t2) {
|
|
348
|
+
return null != t2 && !Array.isArray(t2) && "object" == typeof t2;
|
|
349
|
+
}
|
|
350
|
+
function n$3(t2) {
|
|
351
|
+
return "string" == typeof t2 || "object" == typeof t2 && "[object String]" === Object.prototype.toString.call(t2);
|
|
352
|
+
}
|
|
353
|
+
function e$1(t2) {
|
|
354
|
+
return r$3(t2) && "[object Map]" === Object.prototype.toString.call(t2);
|
|
355
|
+
}
|
|
356
|
+
function o$3(t2) {
|
|
357
|
+
return r$3(t2) && "[object Set]" === Object.prototype.toString.call(t2);
|
|
358
|
+
}
|
|
359
|
+
function i$3(t2) {
|
|
360
|
+
if (null == t2)
|
|
361
|
+
return true;
|
|
362
|
+
if (r$3(t2) && (e$1(t2) || o$3(t2)))
|
|
363
|
+
return !t2.size;
|
|
364
|
+
if (r$3(t2) && (n$3(t2) || Array.isArray(t2)))
|
|
365
|
+
return !t2.length;
|
|
366
|
+
for (const r2 in t2)
|
|
367
|
+
if (s$1(t2, r2))
|
|
368
|
+
return false;
|
|
369
|
+
return true;
|
|
370
|
+
}
|
|
371
|
+
function s$1(t2, r2) {
|
|
372
|
+
return null != t2 && Object.prototype.hasOwnProperty.call(t2, r2);
|
|
373
|
+
}
|
|
374
|
+
function b$2(t2) {
|
|
375
|
+
return "function" == typeof t2;
|
|
376
|
+
}
|
|
377
|
+
const r$2 = ({ packageName: t2, version: e2 }) => {
|
|
348
378
|
appendToCognitoUserAgent(`${t2}/${e2}`);
|
|
349
|
-
},
|
|
379
|
+
}, u$1 = (e2) => __awaiter(void 0, void 0, void 0, function* () {
|
|
350
380
|
try {
|
|
351
381
|
yield waitFor_2(e2, (t2) => t$1(t2).matches("autoSignIn"));
|
|
352
382
|
} catch (t2) {
|
|
353
383
|
}
|
|
354
|
-
}),
|
|
355
|
-
const { send: t2 } =
|
|
356
|
-
switch (
|
|
384
|
+
}), m$2 = ({ payload: { data: e2, event: n2 } }, i2, a2) => __awaiter(void 0, void 0, void 0, function* () {
|
|
385
|
+
const { send: t2 } = i2, r2 = i2.getSnapshot(), { onSignIn: c2, onSignOut: l2 } = null != a2 ? a2 : {};
|
|
386
|
+
switch (n2) {
|
|
357
387
|
case "tokenRefresh":
|
|
358
|
-
|
|
388
|
+
r2.matches("authenticated.idle") && t2("TOKEN_REFRESH");
|
|
359
389
|
break;
|
|
360
390
|
case "autoSignIn":
|
|
361
|
-
if (!
|
|
362
|
-
yield
|
|
363
|
-
const n3 = t$1(
|
|
364
|
-
(null == n3 ? void 0 : n3.matches("autoSignIn")) && t2({ type: "AUTO_SIGN_IN", data: e2
|
|
391
|
+
if (!r2.matches("authenticated")) {
|
|
392
|
+
yield u$1(i2);
|
|
393
|
+
const n3 = t$1(i2.getSnapshot());
|
|
394
|
+
(null == n3 ? void 0 : n3.matches("autoSignIn")) && t2({ type: "AUTO_SIGN_IN", data: e2 });
|
|
365
395
|
}
|
|
366
396
|
break;
|
|
367
397
|
case "autoSignIn_failure": {
|
|
368
|
-
yield
|
|
369
|
-
const n3 = t$1(
|
|
370
|
-
(null == n3 ? void 0 : n3.matches("autoSignIn")) && t2({ type: "AUTO_SIGN_IN_FAILURE", data: e2
|
|
398
|
+
yield u$1(i2);
|
|
399
|
+
const n3 = t$1(i2.getSnapshot());
|
|
400
|
+
(null == n3 ? void 0 : n3.matches("autoSignIn")) && t2({ type: "AUTO_SIGN_IN_FAILURE", data: e2 });
|
|
371
401
|
break;
|
|
372
402
|
}
|
|
403
|
+
case "signIn":
|
|
404
|
+
b$2(c2) && c2();
|
|
405
|
+
break;
|
|
373
406
|
case "signOut":
|
|
374
407
|
case "tokenRefresh_failure":
|
|
375
|
-
|
|
408
|
+
b$2(l2) && l2(), r2.matches("authenticated.idle") && t2("SIGN_OUT");
|
|
376
409
|
}
|
|
377
|
-
}),
|
|
378
|
-
e2(
|
|
379
|
-
})(t2,
|
|
380
|
-
function
|
|
381
|
-
return Object.entries(t2).reduce((t3, [
|
|
410
|
+
}), d$1 = (t2, n2 = m$2) => Hub.listen("auth", ((t3, e2) => (n3) => {
|
|
411
|
+
e2(n3, t3);
|
|
412
|
+
})(t2, n2), "authenticator-hub-handler"), h$1 = (t2) => a$2.some((e2) => t2.includes(e2)), p$2 = (t2, e2, n2) => encodeURI(`otpauth://totp/${t2}:${e2}?secret=${n2}&issuer=${t2}`);
|
|
413
|
+
function f$2(t2, ...e2) {
|
|
414
|
+
return Object.entries(t2).reduce((t3, [n2, i2]) => Object.assign(Object.assign({}, t3), { [n2]: e2.includes(n2) ? i2 : null == i2 ? void 0 : i2.trim() }), {});
|
|
382
415
|
}
|
|
383
|
-
const n$
|
|
416
|
+
const n$2 = (s2, r2) => {
|
|
384
417
|
const { country_code: t2 } = o$a(s2);
|
|
385
|
-
let n2 = r$
|
|
418
|
+
let n2 = r$4[r2];
|
|
386
419
|
const { type: a2 } = n2;
|
|
387
420
|
return "tel" === a2 && (n2 = Object.assign(Object.assign({}, n2), { dialCode: t2 })), n2;
|
|
388
421
|
}, a$1 = (o2) => {
|
|
389
422
|
const s2 = i$4(o2);
|
|
390
|
-
return Object.assign(Object.assign({}, n$
|
|
391
|
-
}, c$2 = (o2) => ({ confirmation_code: Object.assign(Object.assign({}, n$
|
|
423
|
+
return Object.assign(Object.assign({}, n$2(o2, s2)), { autocomplete: "username" });
|
|
424
|
+
}, c$2 = (o2) => ({ confirmation_code: Object.assign(Object.assign({}, n$2(o2, "confirmation_code")), { label: "Code *", placeholder: "Code" }) }), i$2 = { signIn: (o2) => ({ username: Object.assign({}, a$1(o2)), password: Object.assign(Object.assign({}, n$2(o2, "password")), { autocomplete: "current-password" }) }), signUp: (o2) => {
|
|
392
425
|
const { loginMechanisms: s2, signUpAttributes: e2 } = o2.context.config, c2 = i$4(o2), i2 = Array.from(/* @__PURE__ */ new Set([...s2, "password", "confirm_password", ...e2])), d2 = {};
|
|
393
426
|
for (const s3 of i2)
|
|
394
427
|
if (o$4(s3)) {
|
|
395
|
-
const e3 = s3 === c2 ? a$1(o2) : n$
|
|
428
|
+
const e3 = s3 === c2 ? a$1(o2) : n$2(o2, s3);
|
|
396
429
|
d2[s3] = Object.assign({}, e3);
|
|
397
430
|
} else
|
|
398
431
|
console.debug(`Authenticator does not have a default implementation for ${s3}. Customize SignUp FormFields to add your own.`);
|
|
399
432
|
return d2;
|
|
400
|
-
}, confirmSignUp: (o2) => ({ confirmation_code: Object.assign(Object.assign({}, n$
|
|
433
|
+
}, confirmSignUp: (o2) => ({ confirmation_code: Object.assign(Object.assign({}, n$2(o2, "confirmation_code")), { placeholder: "Enter your code" }) }), confirmSignIn: c$2, forceNewPassword: (o2) => {
|
|
401
434
|
const e2 = t$1(o2), { requiredAttributes: r2 } = e2.context, a2 = Array.from(/* @__PURE__ */ new Set(["password", "confirm_password", ...r2])), c2 = {};
|
|
402
435
|
for (const s2 of a2)
|
|
403
|
-
o$4(s2) ? c2[s2] = Object.assign({}, n$
|
|
436
|
+
o$4(s2) ? c2[s2] = Object.assign({}, n$2(o2, s2)) : console.debug(`Authenticator does not have a default implementation for ${s2}. Customize ForceNewPassword FormFields to add your own.`);
|
|
404
437
|
return c2;
|
|
405
438
|
}, resetPassword: (o2) => {
|
|
406
|
-
const s2 = i$4(o2), { label: t2 } = r$
|
|
439
|
+
const s2 = i$4(o2), { label: t2 } = r$4[s2];
|
|
407
440
|
return { username: Object.assign(Object.assign({}, a$1(o2)), { label: `Enter your ${t2.toLowerCase()}`, placeholder: `Enter your ${t2.toLowerCase()}` }) };
|
|
408
|
-
}, confirmResetPassword: (o2) => Object.assign(Object.assign({}, c$2(o2)), { password: Object.assign(Object.assign({}, n$
|
|
409
|
-
const r$
|
|
441
|
+
}, confirmResetPassword: (o2) => Object.assign(Object.assign({}, c$2(o2)), { password: Object.assign(Object.assign({}, n$2(o2, "password")), { label: "New Password", placeholder: "New Password" }), confirm_password: Object.assign(Object.assign({}, n$2(o2, "confirm_password")), { label: "Confirm Password", placeholder: "Confirm Password" }) }), confirmVerifyUser: c$2, setupTOTP: c$2 };
|
|
442
|
+
const r$1 = (r2) => {
|
|
410
443
|
const o2 = Object.assign({}, r2);
|
|
411
444
|
for (const [t2, s2] of Object.entries(r2)) {
|
|
412
445
|
const { label: r3, placeholder: n2 } = s2;
|
|
413
|
-
o2[t2] = Object.assign(Object.assign({}, s2), { label: r3 ? b$
|
|
446
|
+
o2[t2] = Object.assign(Object.assign({}, s2), { label: r3 ? b$3(r3) : void 0, placeholder: n2 ? b$3(n2) : void 0 });
|
|
414
447
|
}
|
|
415
448
|
return o2;
|
|
416
|
-
}, o$
|
|
417
|
-
const a = (s2, t2) => (0, i$
|
|
449
|
+
}, o$2 = (e2) => Object.entries(e2).sort((e3, r2) => (e3[1].order || Number.MAX_VALUE) - (r2[1].order || Number.MAX_VALUE)).filter((e3) => void 0 !== e3[1]);
|
|
450
|
+
const a = (s2, t2) => (0, i$2[s2])(t2), c$1 = (r2, i2) => {
|
|
418
451
|
var o2, a2;
|
|
419
452
|
const c2 = null === (a2 = null === (o2 = o$a(i2)) || void 0 === o2 ? void 0 : o2.formFields) || void 0 === a2 ? void 0 : a2[r2];
|
|
420
453
|
return c2 && 0 !== Object.keys(c2).length ? Object.entries(c2).reduce((t2, [o3, a3]) => {
|
|
421
454
|
if ("signIn" !== r2 && "resetPassword" !== r2 || "username" !== o3) {
|
|
422
455
|
if (i$5(o3)) {
|
|
423
|
-
const s2 = r$
|
|
456
|
+
const s2 = r$4[o3], r3 = Object.assign(Object.assign({}, s2), a3);
|
|
424
457
|
return Object.assign(Object.assign({}, t2), { [o3]: r3 });
|
|
425
458
|
}
|
|
426
459
|
return Object.assign(Object.assign({}, t2), { [o3]: a3 });
|
|
@@ -432,29 +465,29 @@ const a = (s2, t2) => (0, i$3[s2])(t2), c$1 = (r2, i2) => {
|
|
|
432
465
|
}, {}) : {};
|
|
433
466
|
}, m$1 = (s2, t2) => {
|
|
434
467
|
const e2 = a(s2, t2), r2 = c$1(s2, t2), n2 = Object.assign(Object.assign({}, e2), r2);
|
|
435
|
-
return delete n2.QR, r$
|
|
468
|
+
return delete n2.QR, r$1(n2);
|
|
436
469
|
}, j$2 = (s2) => s2.map((s3) => [s3[0], Object.assign(Object.assign({}, s3[1]), { order: void 0 })]), b$1 = (s2, t2) => {
|
|
437
470
|
const e2 = m$1(s2, t2);
|
|
438
|
-
return j$2(o$
|
|
471
|
+
return j$2(o$2(e2));
|
|
439
472
|
};
|
|
440
|
-
const T = { amazon: "Amazon", apple: "Apple", facebook: "Facebook", google: "Google" }, n$
|
|
441
|
-
const { DeliveryMedium: n2, Destination: g2 } = null != T2 ? T2 : {}, S = "EMAIL" === n2, o2 = "SMS" === n2, i2 = b$
|
|
473
|
+
const T = { amazon: "Amazon", apple: "Apple", facebook: "Facebook", google: "Google" }, n$1 = { getBackToSignInText: () => b$3(x.BACK_SIGN_IN), getChangePasswordText: () => b$3(x.CHANGE_PASSWORD), getChangingText: () => b$3(x.CHANGING_PASSWORD), getConfirmText: () => b$3(x.CONFIRM), getConfirmingText: () => b$3(x.CONFIRMING), getCopyText: () => b$3(x.UPPERCASE_COPY), getHidePasswordText: () => b$3(x.HIDE_PASSWORD), getLoadingText: () => b$3(x.LOADING), getOrText: () => b$3(x.OR), getResendCodeText: () => b$3(x.RESEND_CODE), getSendCodeText: () => b$3(x.SEND_CODE), getSendingText: () => b$3(x.SENDING), getShowPasswordText: () => b$3(x.SHOW_PASSWORD), getSubmitText: () => b$3(x.SUBMIT), getSubmittingText: () => b$3(x.SUBMITTING), getSignInTabText: () => b$3(x.SIGN_IN_TAB), getSignUpTabText: () => b$3(x.CREATE_ACCOUNT), getForgotPasswordText: (T2) => b$3(T2 ? x.FORGOT_PASSWORD : x.FORGOT_YOUR_PASSWORD), getSigningInText: () => b$3(x.SIGNING_IN_BUTTON), getSignInText: () => b$3(x.SIGN_IN_BUTTON), getCreatingAccountText: () => b$3(x.CREATING_ACCOUNT), getCreateAccountText: () => b$3(x.CREATE_ACCOUNT), getDeliveryMessageText: (T2) => {
|
|
474
|
+
const { DeliveryMedium: n2, Destination: g2 } = null != T2 ? T2 : {}, S = "EMAIL" === n2, o2 = "SMS" === n2, i2 = b$3(x.CODE_ARRIVAL);
|
|
442
475
|
if (!S && !o2)
|
|
443
|
-
return `${b$
|
|
444
|
-
return `${b$
|
|
476
|
+
return `${b$3(x.CODE_SENT)}. ${i2}.`;
|
|
477
|
+
return `${b$3(S ? x.CODE_EMAILED : x.CODE_TEXTED)} ${g2}. ${i2}.`;
|
|
445
478
|
}, getDeliveryMethodText: (T2) => {
|
|
446
479
|
const { DeliveryMedium: n2 } = null != T2 ? T2 : {}, g2 = "EMAIL" === n2;
|
|
447
|
-
return b$
|
|
480
|
+
return b$3(g2 || "SMS" !== n2 ? g2 ? x.WE_EMAILED : x.WE_TEXTED : x.WE_SENT_CODE);
|
|
448
481
|
}, getChallengeText: (T2) => {
|
|
449
482
|
switch (T2) {
|
|
450
483
|
case "SMS_MFA":
|
|
451
|
-
return b$
|
|
484
|
+
return b$3(x.CONFIRM_SMS);
|
|
452
485
|
case "SOFTWARE_TOKEN_MFA":
|
|
453
|
-
return b$
|
|
486
|
+
return b$3(x.CONFIRM_TOTP);
|
|
454
487
|
default:
|
|
455
|
-
throw new Error(`${b$
|
|
488
|
+
throw new Error(`${b$3("Unexpected challengeName encountered in ConfirmSignIn:")} ${T2}`);
|
|
456
489
|
}
|
|
457
|
-
}, getResetYourPasswordText: () => b$
|
|
490
|
+
}, getResetYourPasswordText: () => b$3(x.RESET_PASSWORD), getSetupTOTPText: () => b$3(x.SETUP_TOTP), getSetupTOTPInstructionsText: () => b$3("Copy and paste the secret key below into an authenticator app and then enter the code in the text field below."), getCopiedText: () => b$3("COPIED"), getSignInWithFederationText: (t2, n2) => b$3(`Sign ${"signIn" === t2 ? "In" : "Up"} with ${T[n2]}`), getSkipText: () => b$3(x.SKIP), getVerifyText: () => b$3(x.VERIFY), getVerifyContactText: () => b$3(x.VERIFY_CONTACT), getAccountRecoveryInfoText: () => b$3(x.VERIFY_HEADING) };
|
|
458
491
|
/*! *****************************************************************************
|
|
459
492
|
Copyright (c) Microsoft Corporation.
|
|
460
493
|
|
|
@@ -1501,7 +1534,7 @@ function resolveActions(machine, currentState, currentContext, _event, actionBlo
|
|
|
1501
1534
|
var resolvedActions = flatten(actionBlocks.map(processBlock));
|
|
1502
1535
|
return [resolvedActions, updatedContext];
|
|
1503
1536
|
}
|
|
1504
|
-
var r
|
|
1537
|
+
var r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1505
1538
|
__proto__: null,
|
|
1506
1539
|
actionTypes,
|
|
1507
1540
|
after,
|
|
@@ -4467,40 +4500,40 @@ function createMachine(config, options) {
|
|
|
4467
4500
|
return new StateNode(config, options);
|
|
4468
4501
|
}
|
|
4469
4502
|
var assign = assign$1, sendUpdate = sendUpdate$1, forwardTo = forwardTo$1;
|
|
4470
|
-
const { assign: o$
|
|
4471
|
-
} }), u = o$
|
|
4472
|
-
} }), m = o$
|
|
4473
|
-
} }), l = o$
|
|
4474
|
-
} }), f$1 = o$
|
|
4475
|
-
} }), v$1 = o$
|
|
4503
|
+
const { assign: o$1, stop: s } = r, n = (e2) => s(e2), i$1 = o$1({ attributeToVerify: (e2) => {
|
|
4504
|
+
} }), u = o$1({ challengeName: (e2) => {
|
|
4505
|
+
} }), m = o$1({ requiredAttributes: (e2) => {
|
|
4506
|
+
} }), l = o$1({ remoteError: (e2) => "" }), d = o$1({ formValues: (e2) => ({}) }), c = o$1({ touched: (e2) => ({}) }), p$1 = o$1({ unverifiedContactMethods: (e2) => {
|
|
4507
|
+
} }), f$1 = o$1({ username: (e2) => {
|
|
4508
|
+
} }), v$1 = o$1({ validationError: (e2) => ({}) }), h = o$1({ totpSecretCode: (e2, r2) => r2.data }), g$1 = o$1({ challengeName: (e2, r2) => {
|
|
4476
4509
|
var t2;
|
|
4477
4510
|
return null === (t2 = r2.data) || void 0 === t2 ? void 0 : t2.challengeName;
|
|
4478
|
-
} }), b = o$
|
|
4511
|
+
} }), b = o$1({ requiredAttributes: (e2, r2) => {
|
|
4479
4512
|
var t2, a2;
|
|
4480
4513
|
return null === (a2 = null === (t2 = r2.data) || void 0 === t2 ? void 0 : t2.challengeParam) || void 0 === a2 ? void 0 : a2.requiredAttributes;
|
|
4481
|
-
} }), V = o$
|
|
4514
|
+
} }), V = o$1({ redirectIntent: (e2) => "confirmPasswordReset" }), j$1 = o$1({ redirectIntent: (e2) => "confirmSignUp" }), y$1 = o$1({ authAttributes: (e2, r2) => {
|
|
4482
4515
|
var t2, a2;
|
|
4483
4516
|
const [o2] = e2.loginMechanisms;
|
|
4484
4517
|
return { username: null !== (t2 = e2.formValues[o2]) && void 0 !== t2 ? t2 : e2.formValues.username, password: null === (a2 = e2.formValues) || void 0 === a2 ? void 0 : a2.password };
|
|
4485
|
-
} }), O$1 = o$
|
|
4518
|
+
} }), O$1 = o$1({ validationError: (e2, r2) => r2.data }), _$1 = o$1({ remoteError: (e2, r2) => {
|
|
4486
4519
|
var t2;
|
|
4487
4520
|
return "NoUserPoolError" === r2.data.name ? "Configuration error (see console) \u2013 please contact the administrator" : (null === (t2 = r2.data) || void 0 === t2 ? void 0 : t2.message) || r2.data;
|
|
4488
|
-
} }), w = o$
|
|
4521
|
+
} }), w = o$1({ unverifiedContactMethods: (e2, r2) => r2.data.unverified }), A = o$1({ user: (e2, r2) => r2.data.user || r2.data }), C = o$1({ username: (e2, r2) => {
|
|
4489
4522
|
let { formValues: { username: t2, country_code: a2 } } = e2;
|
|
4490
4523
|
return a2 && (t2 = `${a2}${t2}`), t2;
|
|
4491
|
-
} }), E = o$
|
|
4524
|
+
} }), E = o$1({ codeDeliveryDetails: (e2, r2) => r2.data.codeDeliveryDetails }), N = o$1({ authAttributes: (e2, r2) => ({ username: e2.formValues.username }) }), $ = o$1({ formValues: (e2, r2) => {
|
|
4492
4525
|
const { name: t2, value: a2 } = r2.data;
|
|
4493
4526
|
return Object.assign(Object.assign({}, e2.formValues), { [t2]: a2 });
|
|
4494
|
-
} }), D = o$
|
|
4527
|
+
} }), D = o$1({ formValues: (e2, r2) => {
|
|
4495
4528
|
const t2 = Object.assign(Object.assign({}, e2.formValues), r2.data);
|
|
4496
|
-
return
|
|
4497
|
-
} }), M = o$
|
|
4529
|
+
return f$2(t2, "password");
|
|
4530
|
+
} }), M = o$1({ touched: (e2, r2) => {
|
|
4498
4531
|
const { name: t2 } = r2.data;
|
|
4499
4532
|
return Object.assign(Object.assign({}, e2.touched), { [`${t2}`]: true });
|
|
4500
4533
|
} }), P = (t2) => __awaiter(void 0, void 0, void 0, function* () {
|
|
4501
4534
|
const { username: e2 } = t2;
|
|
4502
4535
|
return yield Auth.forgotPassword(e2);
|
|
4503
|
-
}), q = o$
|
|
4536
|
+
}), q = o$1({ formValues: (e2, r2) => {
|
|
4504
4537
|
var t2;
|
|
4505
4538
|
const [a2 = "username"] = e2.loginMechanisms;
|
|
4506
4539
|
if (!e2.formValues.phone_number && "phone_number" !== a2)
|
|
@@ -5527,36 +5560,9 @@ var merge = createAssigner(function(object, source, srcIndex) {
|
|
|
5527
5560
|
baseMerge(object, source, srcIndex);
|
|
5528
5561
|
});
|
|
5529
5562
|
var merge_1 = merge;
|
|
5530
|
-
function r(t2) {
|
|
5531
|
-
return null != t2 && !Array.isArray(t2) && "object" == typeof t2;
|
|
5532
|
-
}
|
|
5533
|
-
function n(t2) {
|
|
5534
|
-
return "string" == typeof t2 || "object" == typeof t2 && "[object String]" === Object.prototype.toString.call(t2);
|
|
5535
|
-
}
|
|
5536
|
-
function e$1(t2) {
|
|
5537
|
-
return r(t2) && "[object Map]" === Object.prototype.toString.call(t2);
|
|
5538
|
-
}
|
|
5539
|
-
function o$1(t2) {
|
|
5540
|
-
return r(t2) && "[object Set]" === Object.prototype.toString.call(t2);
|
|
5541
|
-
}
|
|
5542
|
-
function i$1(t2) {
|
|
5543
|
-
if (null == t2)
|
|
5544
|
-
return true;
|
|
5545
|
-
if (r(t2) && (e$1(t2) || o$1(t2)))
|
|
5546
|
-
return !t2.size;
|
|
5547
|
-
if (r(t2) && (n(t2) || Array.isArray(t2)))
|
|
5548
|
-
return !t2.length;
|
|
5549
|
-
for (const r2 in t2)
|
|
5550
|
-
if (s(t2, r2))
|
|
5551
|
-
return false;
|
|
5552
|
-
return true;
|
|
5553
|
-
}
|
|
5554
|
-
function s(t2, r2) {
|
|
5555
|
-
return null != t2 && Object.prototype.hasOwnProperty.call(t2, r2);
|
|
5556
|
-
}
|
|
5557
5563
|
const e = (e2, m2, s2, t2) => __awaiter(void 0, void 0, void 0, function* () {
|
|
5558
5564
|
const o2 = yield Promise.all(t2.map((o3) => o3(e2, m2, s2))), l2 = merge_1({}, ...o2);
|
|
5559
|
-
return i$
|
|
5565
|
+
return i$3(l2) ? Promise.resolve() : Promise.reject(l2);
|
|
5560
5566
|
});
|
|
5561
5567
|
const o = { getAmplifyConfig() {
|
|
5562
5568
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -5628,9 +5634,9 @@ const o = { getAmplifyConfig() {
|
|
|
5628
5634
|
} };
|
|
5629
5635
|
const _ = ["SMS_MFA", "SOFTWARE_TOKEN_MFA"], F = (e2) => get_1(e2, "data.challengeName"), O = (e2, t2) => e2 === t2, j = (e2) => _.includes(e2);
|
|
5630
5636
|
function k({ services: n2 }) {
|
|
5631
|
-
return createMachine({ initial: "init", id: "signInActor", predictableActionArguments: true, states: { init: { always: [{ target: "autoSignIn.submit", cond: "shouldAutoSubmit" }, { target: "autoSignIn", cond: "shouldAutoSignIn" }, { target: "signIn" }] }, signIn: { initial: "edit", exit: ["clearFormValues", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, CHANGE: { actions: "handleInput" }, FEDERATED_SIGN_IN: "federatedSignIn" } }, federatedSignIn: { tags: ["pending"], entry: ["sendUpdate", "clearError"], invoke: { src: "federatedSignIn", onError: { actions: "setRemoteError" } } }, submit: { tags: ["pending"], entry: ["parsePhoneNumber", "clearError", "sendUpdate"], invoke: { src: "signIn", onDone: [{ cond: "shouldSetupTOTP", actions: ["setUser", "setChallengeName"], target: "#signInActor.setupTOTP" }, { cond: "shouldConfirmSignIn", actions: ["setUser", "setChallengeName"], target: "#signInActor.confirmSignIn" }, { cond: "shouldForceChangePassword", actions: ["setUser", "setChallengeName", "setRequiredAttributes"], target: "#signInActor.forceNewPassword" }, { actions: "setUser", target: "verifying" }], onError: [{ cond: "shouldRedirectToConfirmSignUp", actions: ["setCredentials", "setConfirmSignUpIntent"], target: "rejected" }, { cond: "shouldRedirectToConfirmResetPassword", actions: ["setUsernameAuthAttributes", "setConfirmResetPasswordIntent"], target: "rejected" }, { actions: "setRemoteError", target: "edit" }] } }, verifying: { tags: ["pending"], entry: ["clearError", "sendUpdate"], invoke: { src: "checkVerifiedContact", onDone: [{ cond: "shouldRequestVerification", target: "#signInActor.verifyUser", actions: "setUnverifiedContactMethods" }, { target: "resolved" }], onError: { actions: "setRemoteError", target: "edit" } } }, resolved: { always: "#signInActor.resolved" }, rejected: { always: "#signInActor.rejected" } } }, autoSignIn: { initial: "pending", states: { pending: { tags: ["pending"], entry: ["clearError", "sendUpdate"], on: { AUTO_SIGN_IN: [{ cond: "shouldSetupTOTP", actions: ["setUser", "setChallengeName"], target: "#signInActor.setupTOTP" }, { cond: "shouldConfirmSignIn", actions: ["setUser", "setChallengeName"], target: "#signInActor.confirmSignIn" }, { cond: "shouldForceChangePassword", actions: ["setUser", "setChallengeName", "setRequiredAttributes"], target: "#signInActor.forceNewPassword" }, { actions: "setUser", target: "#signInActor.resolved" }], AUTO_SIGN_IN_FAILURE: { actions: "setRemoteError", target: "pending" } } }, submit: { tags: ["pending"], entry: ["clearError", "sendUpdate"], invoke: { src: "signIn", onDone: [{ cond: "shouldSetupTOTP", actions: ["setUser", "setChallengeName"], target: "#signInActor.setupTOTP" }, { cond: "shouldConfirmSignIn", actions: ["setUser", "setChallengeName"], target: "#signInActor.confirmSignIn" }, { cond: "shouldForceChangePassword", actions: ["setUser", "setChallengeName", "setRequiredAttributes"], target: "#signInActor.forceNewPassword" }, { actions: "setUser", target: "#signInActor.resolved" }], onError: { actions: "setRemoteError", target: "#signInActor.signIn" } } }, resolved: { always: "#signInActor.resolved" }, rejected: { always: "#signInActor.rejected" } } }, confirmSignIn: { initial: "edit", exit: ["clearFormValues", "clearError", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SIGN_IN: "#signInActor.signIn", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: ["clearError", "sendUpdate"], invoke: { src: "confirmSignIn", onDone: { target: "#signInActor.resolved", actions: ["setUser", "clearChallengeName", "clearRequiredAttributes"] }, onError: { target: "edit", actions: "setRemoteError" } } } } }, forceNewPassword: { type: "parallel", exit: ["clearFormValues", "clearError", "clearTouched"], states: { validation: { initial: "pending", states: { pending: { invoke: { src: "validateFields", onDone: { target: "valid", actions: "clearValidationError" }, onError: { target: "invalid", actions: "setFieldErrors" } } }, valid: { entry: "sendUpdate" }, invalid: { entry: "sendUpdate" } }, on: { SIGN_IN: "#signInActor.signIn", CHANGE: { actions: "handleInput", target: ".pending" }, BLUR: { actions: "handleBlur", target: ".pending" } } }, submit: { initial: "idle", entry: "clearError", states: { idle: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "validate" } } }, validate: { entry: "sendUpdate", invoke: { src: "validateFields", onDone: { target: "pending", actions: "clearValidationError" }, onError: { target: "idle", actions: "setFieldErrors" } } }, pending: { tags: ["pending"], entry: ["sendUpdate", "clearError"], invoke: { src: "forceNewPassword", onDone: [{ cond: "shouldConfirmSignIn", actions: ["setUser", "setChallengeName"], target: "#signInActor.confirmSignIn" }, { cond: "shouldSetupTOTP", actions: ["setUser", "setChallengeName"], target: "#signInActor.setupTOTP" }, { target: "resolved", actions: ["setUser", "setCredentials"] }], onError: { target: "idle", actions: "setRemoteError" } } }, resolved: { type: "final", always: "#signInActor.resolved" } } } } }, setupTOTP: { initial: "getTotpSecretCode", exit: ["clearFormValues", "clearError", "clearTouched"], states: { getTotpSecretCode: { invoke: { src: "getTotpSecretCode", onDone: { target: "edit", actions: "setTotpSecretCode" }, onError: { target: "edit", actions: "setRemoteError" } } }, edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SIGN_IN: "#signInActor.signIn", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: ["sendUpdate", "clearError"], invoke: { src: "verifyTotpToken", onDone: { actions: ["clearChallengeName", "clearRequiredAttributes"], target: "#signInActor.resolved" }, onError: { actions: "setRemoteError", target: "edit" } } } } }, verifyUser: { initial: "edit", exit: ["clearFormValues", "clearError", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SKIP: "#signInActor.resolved", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: "clearError", invoke: { src: "verifyUser", onDone: { target: "#signInActor.confirmVerifyUser" }, onError: { actions: "setRemoteError", target: "edit" } } } } }, confirmVerifyUser: { initial: "edit", exit: ["clearFormValues", "clearError", "clearUnverifiedContactMethods", "clearAttributeToVerify", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SKIP: "#signInActor.resolved", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: "clearError", invoke: { src: "confirmVerifyUser", onDone: { target: "#signInActor.resolved" }, onError: { actions: "setRemoteError", target: "edit" } } } } }, resolved: { type: "final", data: (e2) => ({ user: e2.user }) }, rejected: { type: "final", data: (e2, t2) => ({ intent: e2.redirectIntent, authAttributes: e2.authAttributes }) } } }, { actions: { clearAttributeToVerify: i$
|
|
5637
|
+
return createMachine({ initial: "init", id: "signInActor", predictableActionArguments: true, states: { init: { always: [{ target: "autoSignIn.submit", cond: "shouldAutoSubmit" }, { target: "autoSignIn", cond: "shouldAutoSignIn" }, { target: "signIn" }] }, signIn: { initial: "edit", exit: ["clearFormValues", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, CHANGE: { actions: "handleInput" }, FEDERATED_SIGN_IN: "federatedSignIn" } }, federatedSignIn: { tags: ["pending"], entry: ["sendUpdate", "clearError"], invoke: { src: "federatedSignIn", onError: { actions: "setRemoteError" } } }, submit: { tags: ["pending"], entry: ["parsePhoneNumber", "clearError", "sendUpdate"], invoke: { src: "signIn", onDone: [{ cond: "shouldSetupTOTP", actions: ["setUser", "setChallengeName"], target: "#signInActor.setupTOTP" }, { cond: "shouldConfirmSignIn", actions: ["setUser", "setChallengeName"], target: "#signInActor.confirmSignIn" }, { cond: "shouldForceChangePassword", actions: ["setUser", "setChallengeName", "setRequiredAttributes"], target: "#signInActor.forceNewPassword" }, { actions: "setUser", target: "verifying" }], onError: [{ cond: "shouldRedirectToConfirmSignUp", actions: ["setCredentials", "setConfirmSignUpIntent"], target: "rejected" }, { cond: "shouldRedirectToConfirmResetPassword", actions: ["setUsernameAuthAttributes", "setConfirmResetPasswordIntent"], target: "rejected" }, { actions: "setRemoteError", target: "edit" }] } }, verifying: { tags: ["pending"], entry: ["clearError", "sendUpdate"], invoke: { src: "checkVerifiedContact", onDone: [{ cond: "shouldRequestVerification", target: "#signInActor.verifyUser", actions: "setUnverifiedContactMethods" }, { target: "resolved" }], onError: { actions: "setRemoteError", target: "edit" } } }, resolved: { always: "#signInActor.resolved" }, rejected: { always: "#signInActor.rejected" } } }, autoSignIn: { initial: "pending", states: { pending: { tags: ["pending"], entry: ["clearError", "sendUpdate"], on: { AUTO_SIGN_IN: [{ cond: "shouldSetupTOTP", actions: ["setUser", "setChallengeName"], target: "#signInActor.setupTOTP" }, { cond: "shouldConfirmSignIn", actions: ["setUser", "setChallengeName"], target: "#signInActor.confirmSignIn" }, { cond: "shouldForceChangePassword", actions: ["setUser", "setChallengeName", "setRequiredAttributes"], target: "#signInActor.forceNewPassword" }, { actions: "setUser", target: "#signInActor.resolved" }], AUTO_SIGN_IN_FAILURE: { actions: "setRemoteError", target: "pending" } } }, submit: { tags: ["pending"], entry: ["clearError", "sendUpdate"], invoke: { src: "signIn", onDone: [{ cond: "shouldSetupTOTP", actions: ["setUser", "setChallengeName"], target: "#signInActor.setupTOTP" }, { cond: "shouldConfirmSignIn", actions: ["setUser", "setChallengeName"], target: "#signInActor.confirmSignIn" }, { cond: "shouldForceChangePassword", actions: ["setUser", "setChallengeName", "setRequiredAttributes"], target: "#signInActor.forceNewPassword" }, { actions: "setUser", target: "#signInActor.resolved" }], onError: { actions: "setRemoteError", target: "#signInActor.signIn" } } }, resolved: { always: "#signInActor.resolved" }, rejected: { always: "#signInActor.rejected" } } }, confirmSignIn: { initial: "edit", exit: ["clearFormValues", "clearError", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SIGN_IN: "#signInActor.signIn", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: ["clearError", "sendUpdate"], invoke: { src: "confirmSignIn", onDone: { target: "#signInActor.resolved", actions: ["setUser", "clearChallengeName", "clearRequiredAttributes"] }, onError: { target: "edit", actions: "setRemoteError" } } } } }, forceNewPassword: { type: "parallel", exit: ["clearFormValues", "clearError", "clearTouched"], states: { validation: { initial: "pending", states: { pending: { invoke: { src: "validateFields", onDone: { target: "valid", actions: "clearValidationError" }, onError: { target: "invalid", actions: "setFieldErrors" } } }, valid: { entry: "sendUpdate" }, invalid: { entry: "sendUpdate" } }, on: { SIGN_IN: "#signInActor.signIn", CHANGE: { actions: "handleInput", target: ".pending" }, BLUR: { actions: "handleBlur", target: ".pending" } } }, submit: { initial: "idle", entry: "clearError", states: { idle: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "validate" } } }, validate: { entry: "sendUpdate", invoke: { src: "validateFields", onDone: { target: "pending", actions: "clearValidationError" }, onError: { target: "idle", actions: "setFieldErrors" } } }, pending: { tags: ["pending"], entry: ["sendUpdate", "clearError"], invoke: { src: "forceNewPassword", onDone: [{ cond: "shouldConfirmSignIn", actions: ["setUser", "setChallengeName"], target: "#signInActor.confirmSignIn" }, { cond: "shouldSetupTOTP", actions: ["setUser", "setChallengeName"], target: "#signInActor.setupTOTP" }, { target: "resolved", actions: ["setUser", "setCredentials"] }], onError: { target: "idle", actions: "setRemoteError" } } }, resolved: { type: "final", always: "#signInActor.resolved" } } } } }, setupTOTP: { initial: "getTotpSecretCode", exit: ["clearFormValues", "clearError", "clearTouched"], states: { getTotpSecretCode: { invoke: { src: "getTotpSecretCode", onDone: { target: "edit", actions: "setTotpSecretCode" }, onError: { target: "edit", actions: "setRemoteError" } } }, edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SIGN_IN: "#signInActor.signIn", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: ["sendUpdate", "clearError"], invoke: { src: "verifyTotpToken", onDone: { actions: ["clearChallengeName", "clearRequiredAttributes"], target: "#signInActor.resolved" }, onError: { actions: "setRemoteError", target: "edit" } } } } }, verifyUser: { initial: "edit", exit: ["clearFormValues", "clearError", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SKIP: "#signInActor.resolved", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: "clearError", invoke: { src: "verifyUser", onDone: { target: "#signInActor.confirmVerifyUser" }, onError: { actions: "setRemoteError", target: "edit" } } } } }, confirmVerifyUser: { initial: "edit", exit: ["clearFormValues", "clearError", "clearUnverifiedContactMethods", "clearAttributeToVerify", "clearTouched"], states: { edit: { entry: "sendUpdate", on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SKIP: "#signInActor.resolved", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: "clearError", invoke: { src: "confirmVerifyUser", onDone: { target: "#signInActor.resolved" }, onError: { actions: "setRemoteError", target: "edit" } } } } }, resolved: { type: "final", data: (e2) => ({ user: e2.user }) }, rejected: { type: "final", data: (e2, t2) => ({ intent: e2.redirectIntent, authAttributes: e2.authAttributes }) } } }, { actions: { clearAttributeToVerify: i$1, clearChallengeName: u, clearRequiredAttributes: m, clearError: l, clearFormValues: d, clearTouched: c, clearUnverifiedContactMethods: p$1, clearValidationError: v$1, handleInput: $, handleSubmit: D, handleBlur: M, parsePhoneNumber: q, setChallengeName: g$1, setConfirmResetPasswordIntent: V, setConfirmSignUpIntent: j$1, setRequiredAttributes: b, setCredentials: y$1, setFieldErrors: O$1, setRemoteError: _$1, setTotpSecretCode: h, setUnverifiedContactMethods: w, setUser: A, setUsernameAuthAttributes: N, sendUpdate: sendUpdate() }, guards: { shouldAutoSignIn: (e2) => "autoSignIn" === (null == e2 ? void 0 : e2.intent), shouldAutoSubmit: (e2) => "autoSignInSubmit" === (null == e2 ? void 0 : e2.intent), shouldConfirmSignIn: (e2, t2) => j(F(t2)), shouldForceChangePassword: (e2, t2) => O(F(t2), "NEW_PASSWORD_REQUIRED"), shouldRedirectToConfirmResetPassword: (e2, t2) => "PasswordResetRequiredException" === t2.data.code, shouldRedirectToConfirmSignUp: (e2, t2) => "UserNotConfirmedException" === t2.data.code, shouldRequestVerification: (e2, t2) => {
|
|
5632
5638
|
const { unverified: r2, verified: n3 } = t2.data;
|
|
5633
|
-
return i$
|
|
5639
|
+
return i$3(n3) && !i$3(r2);
|
|
5634
5640
|
}, shouldSetupTOTP: (e2, t2) => O(F(t2), "MFA_SETUP") }, services: { signIn(t2) {
|
|
5635
5641
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5636
5642
|
const { authAttributes: e2 = {}, formValues: r2 = {} } = t2, o2 = Object.assign(Object.assign({}, e2), r2), { username: i2, password: s2 } = o2;
|
|
@@ -6321,7 +6327,7 @@ function y({ services: y2 }) {
|
|
|
6321
6327
|
});
|
|
6322
6328
|
} } });
|
|
6323
6329
|
}
|
|
6324
|
-
const { choose: g } = r
|
|
6330
|
+
const { choose: g } = r;
|
|
6325
6331
|
function v() {
|
|
6326
6332
|
return createMachine({ id: "authenticator", initial: "idle", context: { user: void 0, config: {}, services: o, actorRef: void 0, hasSetup: false }, predictableActionArguments: true, states: { idle: { invoke: { src: "getCurrentUser", onDone: { actions: "setUser", target: "authenticated" }, onError: { target: "setup" } } }, setup: { initial: "waitConfig", states: { waitConfig: { on: { INIT: { actions: ["configure", "setHasSetup"], target: "applyConfig" } } }, applyConfig: { invoke: { src: "getAmplifyConfig", onDone: { actions: "applyAmplifyConfig", target: "goToInitialState" } } }, goToInitialState: { always: [{ target: "#authenticator.signUp", cond: "isInitialStateSignUp" }, { target: "#authenticator.resetPassword", cond: "isInitialStateResetPassword" }, { target: "#authenticator.signIn" }] } } }, signIn: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnSignInActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: "stopSignInActor" } }, on: { SIGN_UP: "signUp", RESET_PASSWORD: "resetPassword", "done.invoke.signInActor": [{ target: "signUp", actions: "setActorDoneData", cond: "shouldRedirectToSignUp" }, { target: "resetPassword", actions: "setActorDoneData", cond: "shouldRedirectToResetPassword" }, { target: "authenticated", actions: "setActorDoneData" }] } }, signUp: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnSignUpActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: "stopSignUpActor" }, autoSignIn: { invoke: { src: "getCurrentUser", onDone: "#authenticator.authenticated", onError: "#authenticator.setup.goToInitialState" } } }, on: { SIGN_IN: "signIn", "done.invoke.signUpActor": { target: "#authenticator.signIn", actions: "setActorDoneData", cond: "shouldAutoSignIn" } } }, resetPassword: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnResetPasswordActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: "stopResetPasswordActor" } }, on: { SIGN_IN: "signIn", "done.invoke.resetPasswordActor": { target: "signIn", actions: "setActorDoneData" } } }, signOut: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnSignOutActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: ["stopSignOutActor", "clearUser"] } }, on: { "done.invoke.signOutActor": [{ target: "setup", cond: "shouldSetup" }, { target: "setup.goToInitialState" }] } }, authenticated: { initial: "idle", states: { idle: { on: { TOKEN_REFRESH: "refreshUser" } }, refreshUser: { invoke: { src: "getCurrentUser", onDone: { actions: "setUser", target: "idle" }, onError: { target: "#authenticator.signOut" } } } }, on: { SIGN_OUT: "signOut" } } }, on: { CHANGE: { actions: "forwardToActor" }, BLUR: { actions: "forwardToActor" }, SUBMIT: { actions: "forwardToActor" }, FEDERATED_SIGN_IN: { actions: "forwardToActor" }, AUTO_SIGN_IN: { actions: "forwardToActor" }, RESEND: { actions: "forwardToActor" }, SIGN_IN: { actions: "forwardToActor" }, SKIP: { actions: "forwardToActor" } } }, { actions: { forwardToActor: g([{ cond: "hasActor", actions: forwardTo((t2) => t2.actorRef) }]), setUser: assign({ user: (t2, o2) => o2.data }), setActorDoneData: assign({ actorDoneData: (t2, o2) => {
|
|
6327
6333
|
var i2, n2;
|
|
@@ -6350,7 +6356,7 @@ function v() {
|
|
|
6350
6356
|
} }), spawnSignOutActor: assign({ actorRef: (t2) => {
|
|
6351
6357
|
const o2 = i.withContext({ user: t2.user });
|
|
6352
6358
|
return spawn(o2, { name: "signOutActor" });
|
|
6353
|
-
} }), stopSignInActor: n
|
|
6359
|
+
} }), stopSignInActor: n("signInActor"), stopSignUpActor: n("signUpActor"), stopResetPasswordActor: n("resetPasswordActor"), stopSignOutActor: n("signOutActor"), configure: assign((o$12, i2) => {
|
|
6354
6360
|
const n2 = i2.data, { services: e2 } = n2, r2 = __rest$2(n2, ["services"]);
|
|
6355
6361
|
return { services: Object.assign(Object.assign({}, o), e2), config: r2 };
|
|
6356
6362
|
}), setHasSetup: assign({ hasSetup: true }) }, guards: { isInitialStateSignUp: (t2) => "signUp" === t2.config.initialState, isInitialStateResetPassword: (t2) => "resetPassword" === t2.config.initialState, shouldRedirectToSignUp: (t2, o2) => {
|
|
@@ -6401,7 +6407,7 @@ const _sfc_main$w = {
|
|
|
6401
6407
|
__name: "base-alert",
|
|
6402
6408
|
setup(__props) {
|
|
6403
6409
|
const show = ref(true);
|
|
6404
|
-
const dismissAriaLabel = b$
|
|
6410
|
+
const dismissAriaLabel = b$3("Dismiss alert");
|
|
6405
6411
|
function close() {
|
|
6406
6412
|
show.value = false;
|
|
6407
6413
|
}
|
|
@@ -6660,7 +6666,7 @@ function createValues() {
|
|
|
6660
6666
|
if (!service.value)
|
|
6661
6667
|
return;
|
|
6662
6668
|
const { state, send: send2 } = useAuth();
|
|
6663
|
-
const facadeValues = s$
|
|
6669
|
+
const facadeValues = s$3({ send: send2, state: state.value });
|
|
6664
6670
|
for (const key of Object.keys(facade)) {
|
|
6665
6671
|
useAuthenticatorValue[key] = facadeValues[key];
|
|
6666
6672
|
}
|
|
@@ -6782,7 +6788,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
6782
6788
|
const includeFacebook = socialProviders == null ? void 0 : socialProviders.includes("facebook");
|
|
6783
6789
|
const includeGoogle = socialProviders == null ? void 0 : socialProviders.includes("google");
|
|
6784
6790
|
const shouldShowFederatedSignIn = includeFacebook || includeGoogle || includeAmazon || includeApple;
|
|
6785
|
-
const { getSignInWithFederationText, getOrText } = n$
|
|
6791
|
+
const { getSignInWithFederationText, getOrText } = n$1;
|
|
6786
6792
|
const fp = computed(() => o$9);
|
|
6787
6793
|
const signInWithAmazon = computed(() => getSignInWithFederationText(route, "amazon"));
|
|
6788
6794
|
const signInWithApple = computed(() => getSignInWithFederationText(route, "apple"));
|
|
@@ -6921,8 +6927,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
6921
6927
|
setup(__props) {
|
|
6922
6928
|
var _a2;
|
|
6923
6929
|
const props = __props;
|
|
6924
|
-
const showPassword = b$
|
|
6925
|
-
const hidePassword = b$
|
|
6930
|
+
const showPassword = b$3("Show password");
|
|
6931
|
+
const hidePassword = b$3("Hide password");
|
|
6926
6932
|
const showHideType = ref("password");
|
|
6927
6933
|
const showHideLabel = ref(showPassword);
|
|
6928
6934
|
const random = Math.floor(Math.random() * 999999);
|
|
@@ -6932,8 +6938,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
6932
6938
|
showHideLabel.value = showHideLabel.value === showPassword ? hidePassword : showPassword;
|
|
6933
6939
|
showHideType.value = showHideType.value === "password" ? "text" : "password";
|
|
6934
6940
|
}
|
|
6935
|
-
const placeholderValue = b$
|
|
6936
|
-
const labelValue = b$
|
|
6941
|
+
const placeholderValue = b$3((_a2 = placeholder == null ? void 0 : placeholder.value) != null ? _a2 : label.value);
|
|
6942
|
+
const labelValue = b$3(label.value);
|
|
6937
6943
|
return (_ctx, _cache) => {
|
|
6938
6944
|
const _component_base_label = __unplugin_components_0;
|
|
6939
6945
|
const _component_base_input = _sfc_main$p;
|
|
@@ -7192,7 +7198,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
7192
7198
|
const { type } = formField.value;
|
|
7193
7199
|
const isPasswordField = type === "password";
|
|
7194
7200
|
const errorId = nanoid(12);
|
|
7195
|
-
const errors = computed(() => s$
|
|
7201
|
+
const errors = computed(() => s$2(validationErrors.value[name.value]));
|
|
7196
7202
|
const hasError = computed(() => {
|
|
7197
7203
|
var _a2;
|
|
7198
7204
|
return ((_a2 = errors.value) == null ? void 0 : _a2.length) > 0;
|
|
@@ -7234,7 +7240,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
7234
7240
|
role: "alert",
|
|
7235
7241
|
"data-variation": "error",
|
|
7236
7242
|
class: "amplify-text amplify-text--error"
|
|
7237
|
-
}, toDisplayString(unref(b$
|
|
7243
|
+
}, toDisplayString(unref(b$3)(error2)), 1);
|
|
7238
7244
|
}), 128))
|
|
7239
7245
|
], 8, _hoisted_1$4)) : createCommentVNode("", true)
|
|
7240
7246
|
], 64);
|
|
@@ -7278,7 +7284,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7278
7284
|
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
7279
7285
|
const props = useAuthShared();
|
|
7280
7286
|
const attrs = useAttrs();
|
|
7281
|
-
const { getForgotPasswordText, getSignInText, getSigningInText } = n$
|
|
7287
|
+
const { getForgotPasswordText, getSignInText, getSigningInText } = n$1;
|
|
7282
7288
|
const forgotYourPasswordLink = computed(() => getForgotPasswordText());
|
|
7283
7289
|
const signInButtonText = computed(() => getSignInText());
|
|
7284
7290
|
const signIngButtonText = computed(() => getSigningInText());
|
|
@@ -7352,7 +7358,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7352
7358
|
}, 8, ["disabled"]),
|
|
7353
7359
|
unref(actorState).context.remoteError ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
|
|
7354
7360
|
default: withCtx(() => [
|
|
7355
|
-
createTextVNode(toDisplayString(unref(b$
|
|
7361
|
+
createTextVNode(toDisplayString(unref(b$3)(unref(actorState).context.remoteError)), 1)
|
|
7356
7362
|
]),
|
|
7357
7363
|
_: 1
|
|
7358
7364
|
})) : createCommentVNode("", true),
|
|
@@ -7421,7 +7427,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
7421
7427
|
const props = useAuthShared();
|
|
7422
7428
|
const { hasValidationErrors, isPending, error: error2 } = toRefs(facadeValues);
|
|
7423
7429
|
const attrs = useAttrs();
|
|
7424
|
-
const { getCreateAccountText } = n$
|
|
7430
|
+
const { getCreateAccountText } = n$1;
|
|
7425
7431
|
const createAccountLabel = computed(() => getCreateAccountText());
|
|
7426
7432
|
const onInput = (e2) => {
|
|
7427
7433
|
let { checked, name, type, value } = e2.target;
|
|
@@ -7477,7 +7483,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
7477
7483
|
}, 8, ["disabled"]),
|
|
7478
7484
|
unref(error2) ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
|
|
7479
7485
|
default: withCtx(() => [
|
|
7480
|
-
createTextVNode(toDisplayString(unref(b$
|
|
7486
|
+
createTextVNode(toDisplayString(unref(b$3)(unref(error2))), 1)
|
|
7481
7487
|
]),
|
|
7482
7488
|
_: 1
|
|
7483
7489
|
})) : createCommentVNode("", true),
|
|
@@ -7612,7 +7618,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
7612
7618
|
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
7613
7619
|
const { isPending, error: error2, codeDeliveryDetails } = toRefs(useAuthShared());
|
|
7614
7620
|
const { submitForm, updateForm, resendCode } = useAuthShared();
|
|
7615
|
-
const { getDeliveryMethodText, getDeliveryMessageText, getResendCodeText, getConfirmText } = n$
|
|
7621
|
+
const { getDeliveryMethodText, getDeliveryMessageText, getResendCodeText, getConfirmText } = n$1;
|
|
7616
7622
|
const confirmSignUpHeading = computed(() => getDeliveryMethodText(codeDeliveryDetails.value));
|
|
7617
7623
|
const resendCodeText = computed(() => getResendCodeText());
|
|
7618
7624
|
const confirmText = computed(() => getConfirmText());
|
|
@@ -7687,7 +7693,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
7687
7693
|
default: withCtx(() => [
|
|
7688
7694
|
unref(error2) ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
|
|
7689
7695
|
default: withCtx(() => [
|
|
7690
|
-
createTextVNode(toDisplayString(unref(b$
|
|
7696
|
+
createTextVNode(toDisplayString(unref(b$3)(unref(error2))), 1)
|
|
7691
7697
|
]),
|
|
7692
7698
|
_: 1
|
|
7693
7699
|
})) : createCommentVNode("", true),
|
|
@@ -7747,7 +7753,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
7747
7753
|
const props = useAuthShared();
|
|
7748
7754
|
const actorState = computed(() => t$1(state.value));
|
|
7749
7755
|
const challengeName = actorState.value.context.challengeName;
|
|
7750
|
-
const { getBackToSignInText, getConfirmText, getChallengeText } = n$
|
|
7756
|
+
const { getBackToSignInText, getConfirmText, getChallengeText } = n$1;
|
|
7751
7757
|
const confirmSignInHeading = computed(() => getChallengeText(challengeName));
|
|
7752
7758
|
const backSignInText = computed(() => getBackToSignInText());
|
|
7753
7759
|
const confirmText = computed(() => getConfirmText());
|
|
@@ -7824,7 +7830,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
7824
7830
|
default: withCtx(() => {
|
|
7825
7831
|
var _a3, _b2;
|
|
7826
7832
|
return [
|
|
7827
|
-
createTextVNode(toDisplayString(unref(b$
|
|
7833
|
+
createTextVNode(toDisplayString(unref(b$3)((_b2 = (_a3 = unref(actorState)) == null ? void 0 : _a3.context) == null ? void 0 : _b2.remoteError)), 1)
|
|
7828
7834
|
];
|
|
7829
7835
|
}),
|
|
7830
7836
|
_: 1
|
|
@@ -9906,12 +9912,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
9906
9912
|
const { totpSecretCode, user } = actorState.value.context;
|
|
9907
9913
|
const formOverrides = (_b = (_a2 = context == null ? void 0 : context.config) == null ? void 0 : _a2.formFields) == null ? void 0 : _b.setupTOTP;
|
|
9908
9914
|
const { totpIssuer = "AWSCognito", totpUsername = user == null ? void 0 : user.username } = (_c = formOverrides == null ? void 0 : formOverrides["QR"]) != null ? _c : {};
|
|
9909
|
-
const totpCodeURL = typeof totpSecretCode === "string" && typeof totpUsername === "string" ?
|
|
9915
|
+
const totpCodeURL = typeof totpSecretCode === "string" && typeof totpUsername === "string" ? p$2(totpIssuer, totpUsername, totpSecretCode) : null;
|
|
9910
9916
|
const qrCode = reactive({
|
|
9911
9917
|
qrCodeImageSource: "",
|
|
9912
9918
|
isLoading: true
|
|
9913
9919
|
});
|
|
9914
|
-
const { getCopyText, getCopiedText, getBackToSignInText, getConfirmText } = n$
|
|
9920
|
+
const { getCopyText, getCopiedText, getBackToSignInText, getConfirmText } = n$1;
|
|
9915
9921
|
const copyTextLabel = ref(getCopyText());
|
|
9916
9922
|
function copyText() {
|
|
9917
9923
|
if (typeof totpSecretCode === "string") {
|
|
@@ -10029,7 +10035,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
10029
10035
|
return [
|
|
10030
10036
|
((_a3 = unref(actorState).context) == null ? void 0 : _a3.remoteError) ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
|
|
10031
10037
|
default: withCtx(() => [
|
|
10032
|
-
createTextVNode(toDisplayString(unref(b$
|
|
10038
|
+
createTextVNode(toDisplayString(unref(b$3)(unref(actorState).context.remoteError)), 1)
|
|
10033
10039
|
]),
|
|
10034
10040
|
_: 1
|
|
10035
10041
|
})) : createCommentVNode("", true),
|
|
@@ -10101,7 +10107,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
10101
10107
|
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
10102
10108
|
const props = useAuthShared();
|
|
10103
10109
|
const actorState = computed(() => t$1(state.value));
|
|
10104
|
-
const { getChangePasswordText, getChangingText, getBackToSignInText } = n$
|
|
10110
|
+
const { getChangePasswordText, getChangingText, getBackToSignInText } = n$1;
|
|
10105
10111
|
const changePasswordLabel = computed(() => getChangePasswordText());
|
|
10106
10112
|
const changingPasswordLabel = computed(() => getChangingText());
|
|
10107
10113
|
const backSignInText = computed(() => getBackToSignInText());
|
|
@@ -10184,7 +10190,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
10184
10190
|
"data-ui-error": ""
|
|
10185
10191
|
}, {
|
|
10186
10192
|
default: withCtx(() => [
|
|
10187
|
-
createTextVNode(toDisplayString(unref(b$
|
|
10193
|
+
createTextVNode(toDisplayString(unref(b$3)(unref(actorState).context.remoteError)), 1)
|
|
10188
10194
|
]),
|
|
10189
10195
|
_: 1
|
|
10190
10196
|
})) : createCommentVNode("", true),
|
|
@@ -10243,7 +10249,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
10243
10249
|
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
10244
10250
|
const { send: send2, submitForm } = useAuthShared();
|
|
10245
10251
|
const { error: error2, isPending } = toRefs(useAuthShared());
|
|
10246
|
-
const { getBackToSignInText, getResetYourPasswordText, getSendCodeText } = n$
|
|
10252
|
+
const { getBackToSignInText, getResetYourPasswordText, getSendCodeText } = n$1;
|
|
10247
10253
|
const backSignInText = computed(() => getBackToSignInText());
|
|
10248
10254
|
const resetPasswordHeading = computed(() => getResetYourPasswordText());
|
|
10249
10255
|
const sendCodeText = computed(() => getSendCodeText());
|
|
@@ -10314,7 +10320,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
10314
10320
|
default: withCtx(() => [
|
|
10315
10321
|
unref(error2) ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
|
|
10316
10322
|
default: withCtx(() => [
|
|
10317
|
-
createTextVNode(toDisplayString(unref(b$
|
|
10323
|
+
createTextVNode(toDisplayString(unref(b$3)(unref(error2))), 1)
|
|
10318
10324
|
]),
|
|
10319
10325
|
_: 1
|
|
10320
10326
|
})) : createCommentVNode("", true),
|
|
@@ -10370,7 +10376,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
10370
10376
|
const props = useAuthShared();
|
|
10371
10377
|
const attrs = useAttrs();
|
|
10372
10378
|
const actorState = computed(() => t$1(state.value));
|
|
10373
|
-
const { getResendCodeText, getResetYourPasswordText, getSubmitText } = n$
|
|
10379
|
+
const { getResendCodeText, getResetYourPasswordText, getSubmitText } = n$1;
|
|
10374
10380
|
const resendCodeText = computed(() => getResendCodeText());
|
|
10375
10381
|
const confirmResetPasswordHeading = computed(() => getResetYourPasswordText());
|
|
10376
10382
|
const confirmResetPasswordText = computed(() => getSubmitText());
|
|
@@ -10448,7 +10454,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
10448
10454
|
default: withCtx(() => {
|
|
10449
10455
|
var _a3, _b2;
|
|
10450
10456
|
return [
|
|
10451
|
-
createTextVNode(toDisplayString(unref(b$
|
|
10457
|
+
createTextVNode(toDisplayString(unref(b$3)((_b2 = (_a3 = unref(actorState)) == null ? void 0 : _a3.context) == null ? void 0 : _b2.remoteError)), 1)
|
|
10452
10458
|
];
|
|
10453
10459
|
}),
|
|
10454
10460
|
_: 1
|
|
@@ -10509,7 +10515,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
10509
10515
|
const { state, send: send2 } = useAuth();
|
|
10510
10516
|
const actorState = computed(() => t$1(state.value));
|
|
10511
10517
|
const { unverifiedContactMethods } = actorState.value.context;
|
|
10512
|
-
const { getAccountRecoveryInfoText, getSkipText, getVerifyText, getVerifyContactText } = n$
|
|
10518
|
+
const { getAccountRecoveryInfoText, getSkipText, getVerifyText, getVerifyContactText } = n$1;
|
|
10513
10519
|
const verifyHeading = computed(() => getAccountRecoveryInfoText());
|
|
10514
10520
|
const skipText = computed(() => getSkipText());
|
|
10515
10521
|
const verifyText = computed(() => getVerifyText());
|
|
@@ -10612,7 +10618,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
10612
10618
|
}),
|
|
10613
10619
|
createVNode(_component_base_text, { class: "amplify-text amplify-radio__label" }, {
|
|
10614
10620
|
default: withCtx(() => [
|
|
10615
|
-
createTextVNode(toDisplayString(unref(r$
|
|
10621
|
+
createTextVNode(toDisplayString(unref(r$4)[key].label), 1)
|
|
10616
10622
|
]),
|
|
10617
10623
|
_: 2
|
|
10618
10624
|
}, 1024)
|
|
@@ -10634,7 +10640,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
10634
10640
|
default: withCtx(() => {
|
|
10635
10641
|
var _a3;
|
|
10636
10642
|
return [
|
|
10637
|
-
createTextVNode(toDisplayString(unref(b$
|
|
10643
|
+
createTextVNode(toDisplayString(unref(b$3)((_a3 = unref(actorState)) == null ? void 0 : _a3.context.remoteError)), 1)
|
|
10638
10644
|
];
|
|
10639
10645
|
}),
|
|
10640
10646
|
_: 1
|
|
@@ -10695,7 +10701,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
10695
10701
|
const attrs = useAttrs();
|
|
10696
10702
|
const { state, send: send2 } = useAuth();
|
|
10697
10703
|
const actorState = computed(() => t$1(state.value));
|
|
10698
|
-
const { getAccountRecoveryInfoText, getSkipText, getSubmitText } = n$
|
|
10704
|
+
const { getAccountRecoveryInfoText, getSkipText, getSubmitText } = n$1;
|
|
10699
10705
|
const verifyHeading = computed(() => getAccountRecoveryInfoText());
|
|
10700
10706
|
const skipText = computed(() => getSkipText());
|
|
10701
10707
|
const submitText = computed(() => getSubmitText());
|
|
@@ -10771,7 +10777,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
10771
10777
|
default: withCtx(() => {
|
|
10772
10778
|
var _a3;
|
|
10773
10779
|
return [
|
|
10774
|
-
createTextVNode(toDisplayString(unref(b$
|
|
10780
|
+
createTextVNode(toDisplayString(unref(b$3)((_a3 = unref(actorState)) == null ? void 0 : _a3.context.remoteError)), 1)
|
|
10775
10781
|
];
|
|
10776
10782
|
}),
|
|
10777
10783
|
_: 1
|
|
@@ -10823,7 +10829,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
10823
10829
|
};
|
|
10824
10830
|
}
|
|
10825
10831
|
});
|
|
10826
|
-
const VERSION = "3.1.
|
|
10832
|
+
const VERSION = "3.1.16";
|
|
10827
10833
|
const _hoisted_1$1 = ["data-variation"];
|
|
10828
10834
|
const _hoisted_2$1 = { "data-amplify-container": "" };
|
|
10829
10835
|
const _hoisted_3$1 = ["data-amplify-router-content"];
|
|
@@ -10883,8 +10889,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
10883
10889
|
}
|
|
10884
10890
|
}).unsubscribe;
|
|
10885
10891
|
onMounted(() => {
|
|
10886
|
-
unsubscribeHub =
|
|
10887
|
-
|
|
10892
|
+
unsubscribeHub = d$1(service2);
|
|
10893
|
+
r$2({
|
|
10888
10894
|
packageName: "@aws-amplify/ui-vue",
|
|
10889
10895
|
version: VERSION
|
|
10890
10896
|
});
|
|
@@ -10906,7 +10912,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
10906
10912
|
const confirmResetPasswordComponent = ref();
|
|
10907
10913
|
const verifyUserComponent = ref();
|
|
10908
10914
|
const confirmVerifyUserComponent = ref();
|
|
10909
|
-
const { getSignInTabText, getSignUpTabText } = n$
|
|
10915
|
+
const { getSignInTabText, getSignUpTabText } = n$1;
|
|
10910
10916
|
const signInLabel = computed(() => getSignInTabText());
|
|
10911
10917
|
const createAccountLabel = computed(() => getSignUpTabText());
|
|
10912
10918
|
const onSignInSubmitI = (e2) => {
|
|
@@ -10983,7 +10989,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
10983
10989
|
const user = ref(null);
|
|
10984
10990
|
const signOut = ref();
|
|
10985
10991
|
watch(() => state.value.context, () => {
|
|
10986
|
-
const { user: u2, signOut: s2 } = s$
|
|
10992
|
+
const { user: u2, signOut: s2 } = s$3({
|
|
10987
10993
|
send: send2,
|
|
10988
10994
|
state: state.value
|
|
10989
10995
|
});
|