@mxenabled/connect-widget 0.0.8 → 0.0.9
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.es.js +167 -242
- package/dist/index.es.js.map +1 -1
- package/dist/lastBuild.txt +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1523,12 +1523,12 @@ var symbol_observable_default = $$observable;
|
|
|
1523
1523
|
|
|
1524
1524
|
// src/utils/actionTypes.ts
|
|
1525
1525
|
var randomString = () => Math.random().toString(36).substring(7).split("").join(".");
|
|
1526
|
-
var ActionTypes$
|
|
1526
|
+
var ActionTypes$3 = {
|
|
1527
1527
|
INIT: `@@redux/INIT${/* @__PURE__ */ randomString()}`,
|
|
1528
1528
|
REPLACE: `@@redux/REPLACE${/* @__PURE__ */ randomString()}`,
|
|
1529
1529
|
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${randomString()}`
|
|
1530
1530
|
};
|
|
1531
|
-
var actionTypes_default = ActionTypes$
|
|
1531
|
+
var actionTypes_default = ActionTypes$3;
|
|
1532
1532
|
|
|
1533
1533
|
// src/utils/isPlainObject.ts
|
|
1534
1534
|
function isPlainObject$5(obj) {
|
|
@@ -5130,39 +5130,23 @@ function baseFindIndex$2(array, predicate, fromIndex, fromRight) {
|
|
|
5130
5130
|
}
|
|
5131
5131
|
var _baseFindIndex = baseFindIndex$2;
|
|
5132
5132
|
|
|
5133
|
-
var
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
var reWhitespace = /\s/;
|
|
5140
|
-
function trimmedEndIndex(string) {
|
|
5141
|
-
var index = string.length;
|
|
5142
|
-
while (index-- && reWhitespace.test(string.charAt(index))) {
|
|
5143
|
-
}
|
|
5144
|
-
return index;
|
|
5145
|
-
}
|
|
5146
|
-
_trimmedEndIndex = trimmedEndIndex;
|
|
5147
|
-
return _trimmedEndIndex;
|
|
5133
|
+
var reWhitespace = /\s/;
|
|
5134
|
+
function trimmedEndIndex$1(string) {
|
|
5135
|
+
var index = string.length;
|
|
5136
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {
|
|
5137
|
+
}
|
|
5138
|
+
return index;
|
|
5148
5139
|
}
|
|
5140
|
+
var _trimmedEndIndex = trimmedEndIndex$1;
|
|
5149
5141
|
|
|
5150
|
-
var
|
|
5151
|
-
var
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
if (hasRequired_baseTrim) return _baseTrim;
|
|
5155
|
-
hasRequired_baseTrim = 1;
|
|
5156
|
-
var trimmedEndIndex = require_trimmedEndIndex();
|
|
5157
|
-
var reTrimStart = /^\s+/;
|
|
5158
|
-
function baseTrim(string) {
|
|
5159
|
-
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
5160
|
-
}
|
|
5161
|
-
_baseTrim = baseTrim;
|
|
5162
|
-
return _baseTrim;
|
|
5142
|
+
var trimmedEndIndex = _trimmedEndIndex;
|
|
5143
|
+
var reTrimStart = /^\s+/;
|
|
5144
|
+
function baseTrim$1(string) {
|
|
5145
|
+
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
5163
5146
|
}
|
|
5147
|
+
var _baseTrim = baseTrim$1;
|
|
5164
5148
|
|
|
5165
|
-
var baseTrim =
|
|
5149
|
+
var baseTrim = _baseTrim, isObject$7 = isObject_1, isSymbol$1 = isSymbol_1;
|
|
5166
5150
|
var NAN = 0 / 0;
|
|
5167
5151
|
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
5168
5152
|
var reIsBinary = /^0b[01]+$/i;
|
|
@@ -5233,7 +5217,7 @@ var find_1 = find;
|
|
|
5233
5217
|
|
|
5234
5218
|
const _find = /*@__PURE__*/getDefaultExportFromCjs(find_1);
|
|
5235
5219
|
|
|
5236
|
-
const ActionTypes$
|
|
5220
|
+
const ActionTypes$2 = {
|
|
5237
5221
|
ACCEPT_DISCLOSURE: "connect/accept_disclosure",
|
|
5238
5222
|
ADD_MANUAL_ACCOUNT_SUCCESS: "connect/add_manual_account_success",
|
|
5239
5223
|
CREATE_MEMBER_SUCCESS: "connect/create_member_success",
|
|
@@ -5280,68 +5264,68 @@ const ActionTypes$3 = {
|
|
|
5280
5264
|
LOGIN_ERROR_START_OVER: "connect/login_error_start_over",
|
|
5281
5265
|
CONNECT_GO_BACK: "connect/go_back"
|
|
5282
5266
|
};
|
|
5283
|
-
const loadConnect$1 = (config = {}) => ({ type: ActionTypes$
|
|
5267
|
+
const loadConnect$1 = (config = {}) => ({ type: ActionTypes$2.LOAD_CONNECT, payload: config });
|
|
5284
5268
|
const loadConnectSuccess$1 = (dependencies = {}) => ({
|
|
5285
|
-
type: ActionTypes$
|
|
5269
|
+
type: ActionTypes$2.LOAD_CONNECT_SUCCESS,
|
|
5286
5270
|
payload: dependencies
|
|
5287
5271
|
});
|
|
5288
5272
|
const loadConnectError$1 = (err) => ({
|
|
5289
|
-
type: ActionTypes$
|
|
5273
|
+
type: ActionTypes$2.LOAD_CONNECT_ERROR,
|
|
5290
5274
|
payload: err
|
|
5291
5275
|
});
|
|
5292
5276
|
const selectInstitutionSuccess$1 = (inst) => ({
|
|
5293
|
-
type: ActionTypes$
|
|
5277
|
+
type: ActionTypes$2.SELECT_INSTITUTION_SUCCESS,
|
|
5294
5278
|
payload: inst
|
|
5295
5279
|
});
|
|
5296
5280
|
const selectInstitutionError = (err) => ({
|
|
5297
|
-
type: ActionTypes$
|
|
5281
|
+
type: ActionTypes$2.SELECT_INSTITUTION_ERROR,
|
|
5298
5282
|
payload: err
|
|
5299
5283
|
});
|
|
5300
5284
|
const initializeJobSchedule$1 = (member, job, config, isComboJobsEnabled) => ({
|
|
5301
|
-
type: ActionTypes$
|
|
5285
|
+
type: ActionTypes$2.INIT_JOB_SCHEDULE,
|
|
5302
5286
|
payload: { member, job, config, isComboJobsEnabled }
|
|
5303
5287
|
});
|
|
5304
5288
|
const startOauth$1 = (member, institution) => ({
|
|
5305
|
-
type: ActionTypes$
|
|
5289
|
+
type: ActionTypes$2.START_OAUTH,
|
|
5306
5290
|
payload: { member, institution }
|
|
5307
5291
|
});
|
|
5308
5292
|
const jobComplete$1 = (member, job) => ({
|
|
5309
|
-
type: ActionTypes$
|
|
5293
|
+
type: ActionTypes$2.JOB_COMPLETE,
|
|
5310
5294
|
payload: { member, job }
|
|
5311
5295
|
});
|
|
5312
5296
|
const connectComplete$1 = () => ({
|
|
5313
|
-
type: ActionTypes$
|
|
5297
|
+
type: ActionTypes$2.CONNECT_COMPLETE
|
|
5314
5298
|
});
|
|
5315
5299
|
const handleOAuthError = ({ memberGuid, errorReason }) => ({
|
|
5316
|
-
type: ActionTypes$
|
|
5300
|
+
type: ActionTypes$2.OAUTH_COMPLETE_ERROR,
|
|
5317
5301
|
payload: { memberGuid, errorReason }
|
|
5318
5302
|
});
|
|
5319
5303
|
const handleOAuthSuccess = (memberGuid) => ({
|
|
5320
|
-
type: ActionTypes$
|
|
5304
|
+
type: ActionTypes$2.OAUTH_COMPLETE_SUCCESS,
|
|
5321
5305
|
payload: memberGuid
|
|
5322
5306
|
});
|
|
5323
5307
|
const stepToDeleteMemberSuccess$1 = (memberGuid) => ({
|
|
5324
|
-
type: ActionTypes$
|
|
5308
|
+
type: ActionTypes$2.STEP_TO_DELETE_MEMBER_SUCCESS,
|
|
5325
5309
|
payload: { memberGuid }
|
|
5326
5310
|
});
|
|
5327
|
-
const stepToUpdateCredentials$1 = () => ({ type: ActionTypes$
|
|
5328
|
-
const stepToConnecting$1 = () => ({ type: ActionTypes$
|
|
5329
|
-
const stepToAddManualAccount$1 = () => ({ type: ActionTypes$
|
|
5311
|
+
const stepToUpdateCredentials$1 = () => ({ type: ActionTypes$2.STEP_TO_UPDATE_CREDENTIALS });
|
|
5312
|
+
const stepToConnecting$1 = () => ({ type: ActionTypes$2.STEP_TO_CONNECTING });
|
|
5313
|
+
const stepToAddManualAccount$1 = () => ({ type: ActionTypes$2.STEP_TO_ADD_MANUAL_ACCOUNT });
|
|
5330
5314
|
const stepToVerifyExistingMember$1 = () => ({
|
|
5331
|
-
type: ActionTypes$
|
|
5315
|
+
type: ActionTypes$2.STEP_TO_VERIFY_EXISTING_MEMBER
|
|
5332
5316
|
});
|
|
5333
|
-
const resetConnect$1 = () => ({ type: ActionTypes$
|
|
5334
|
-
const stepToMicrodeposits$1 = () => ({ type: ActionTypes$
|
|
5335
|
-
const retryOAuth$1 = () => ({ type: ActionTypes$
|
|
5317
|
+
const resetConnect$1 = () => ({ type: ActionTypes$2.RESET_CONNECT });
|
|
5318
|
+
const stepToMicrodeposits$1 = () => ({ type: ActionTypes$2.STEP_TO_MICRODEPOSIT });
|
|
5319
|
+
const retryOAuth$1 = () => ({ type: ActionTypes$2.RETRY_OAUTH });
|
|
5336
5320
|
const verifyDifferentConnection$1 = () => ({
|
|
5337
|
-
type: ActionTypes$
|
|
5321
|
+
type: ActionTypes$2.VERIFY_DIFFERENT_CONNECTION
|
|
5338
5322
|
});
|
|
5339
5323
|
const verifyExistingConnection$1 = (member, institution) => ({
|
|
5340
|
-
type: ActionTypes$
|
|
5324
|
+
type: ActionTypes$2.VERIFY_EXISTING_CONNECTION,
|
|
5341
5325
|
payload: { member, institution }
|
|
5342
5326
|
});
|
|
5343
5327
|
const addManualAccountSuccess = (account, member, institution) => ({
|
|
5344
|
-
type: ActionTypes$
|
|
5328
|
+
type: ActionTypes$2.ADD_MANUAL_ACCOUNT_SUCCESS,
|
|
5345
5329
|
payload: { account, member, institution }
|
|
5346
5330
|
});
|
|
5347
5331
|
|
|
@@ -8628,7 +8612,7 @@ var hasRequiredTrim;
|
|
|
8628
8612
|
function requireTrim () {
|
|
8629
8613
|
if (hasRequiredTrim) return trim_1;
|
|
8630
8614
|
hasRequiredTrim = 1;
|
|
8631
|
-
var baseToString = _baseToString, baseTrim =
|
|
8615
|
+
var baseToString = _baseToString, baseTrim = _baseTrim, castSlice = require_castSlice(), charsEndIndex = require_charsEndIndex(), charsStartIndex = require_charsStartIndex(), stringToArray = require_stringToArray(), toString = toString_1;
|
|
8632
8616
|
function trim(string, chars, guard) {
|
|
8633
8617
|
string = toString(string);
|
|
8634
8618
|
if (string && (guard || chars === void 0)) {
|
|
@@ -9051,7 +9035,7 @@ const hasNoSingleAccountSelectOptions = (member) => {
|
|
|
9051
9035
|
return false;
|
|
9052
9036
|
};
|
|
9053
9037
|
|
|
9054
|
-
const defaultState$
|
|
9038
|
+
const defaultState$1 = {
|
|
9055
9039
|
error: null,
|
|
9056
9040
|
// The most recent job request error, if any
|
|
9057
9041
|
hasInvalidData: false,
|
|
@@ -9081,7 +9065,7 @@ const defaultState$2 = {
|
|
|
9081
9065
|
};
|
|
9082
9066
|
const loadConnect = (state, { payload }) => {
|
|
9083
9067
|
return {
|
|
9084
|
-
...defaultState$
|
|
9068
|
+
...defaultState$1,
|
|
9085
9069
|
isConnectMounted: true,
|
|
9086
9070
|
isComponentLoading: true,
|
|
9087
9071
|
members: state.members,
|
|
@@ -9113,7 +9097,7 @@ const loadConnectSuccess = (state, action) => {
|
|
|
9113
9097
|
}
|
|
9114
9098
|
return {
|
|
9115
9099
|
...state,
|
|
9116
|
-
currentMemberGuid: member?.guid ?? defaultState$
|
|
9100
|
+
currentMemberGuid: member?.guid ?? defaultState$1.currentMemberGuid,
|
|
9117
9101
|
currentMicrodepositGuid,
|
|
9118
9102
|
isComponentLoading: false,
|
|
9119
9103
|
location: pushLocation(state.location, startingStep),
|
|
@@ -9129,7 +9113,7 @@ const loadConnectError = (state, action) => ({
|
|
|
9129
9113
|
isComponentLoading: false
|
|
9130
9114
|
});
|
|
9131
9115
|
const resetConnect = (state) => ({
|
|
9132
|
-
...defaultState$
|
|
9116
|
+
...defaultState$1,
|
|
9133
9117
|
isComponentLoading: state.isComponentLoading,
|
|
9134
9118
|
members: state.members
|
|
9135
9119
|
});
|
|
@@ -9137,57 +9121,57 @@ const goBackSearchOrVerify = (state, { payload }) => {
|
|
|
9137
9121
|
return {
|
|
9138
9122
|
...state,
|
|
9139
9123
|
location: resetLocation(state.members, payload, state.location),
|
|
9140
|
-
currentMemberGuid: defaultState$
|
|
9141
|
-
error: defaultState$
|
|
9142
|
-
updateCredentials: defaultState$
|
|
9143
|
-
oauthURL: defaultState$
|
|
9144
|
-
oauthErrorReason: defaultState$
|
|
9124
|
+
currentMemberGuid: defaultState$1.currentMemberGuid,
|
|
9125
|
+
error: defaultState$1.error,
|
|
9126
|
+
updateCredentials: defaultState$1.updateCredentials,
|
|
9127
|
+
oauthURL: defaultState$1.oauthURL,
|
|
9128
|
+
oauthErrorReason: defaultState$1.oauthErrorReason,
|
|
9145
9129
|
jobSchedule: UNINITIALIZED$1,
|
|
9146
|
-
hasInvalidData: defaultState$
|
|
9147
|
-
selectedInstitution: defaultState$
|
|
9130
|
+
hasInvalidData: defaultState$1.hasInvalidData,
|
|
9131
|
+
selectedInstitution: defaultState$1.selectedInstitution
|
|
9148
9132
|
};
|
|
9149
9133
|
};
|
|
9150
9134
|
const resetWidgetMFAStep = (state, { payload }) => {
|
|
9151
9135
|
return {
|
|
9152
9136
|
...state,
|
|
9153
9137
|
location: resetLocation(state.members, payload, state.location),
|
|
9154
|
-
currentMemberGuid: defaultState$
|
|
9155
|
-
error: defaultState$
|
|
9156
|
-
updateCredentials: defaultState$
|
|
9157
|
-
oauthURL: defaultState$
|
|
9158
|
-
oauthErrorReason: defaultState$
|
|
9138
|
+
currentMemberGuid: defaultState$1.currentMemberGuid,
|
|
9139
|
+
error: defaultState$1.error,
|
|
9140
|
+
updateCredentials: defaultState$1.updateCredentials,
|
|
9141
|
+
oauthURL: defaultState$1.oauthURL,
|
|
9142
|
+
oauthErrorReason: defaultState$1.oauthErrorReason,
|
|
9159
9143
|
jobSchedule: UNINITIALIZED$1,
|
|
9160
|
-
hasInvalidData: defaultState$
|
|
9161
|
-
selectedInstitution: defaultState$
|
|
9144
|
+
hasInvalidData: defaultState$1.hasInvalidData,
|
|
9145
|
+
selectedInstitution: defaultState$1.selectedInstitution
|
|
9162
9146
|
};
|
|
9163
9147
|
};
|
|
9164
9148
|
const resetWidgetConnected = (state) => {
|
|
9165
9149
|
return {
|
|
9166
9150
|
...state,
|
|
9167
|
-
currentMemberGuid: defaultState$
|
|
9168
|
-
error: defaultState$
|
|
9169
|
-
updateCredentials: defaultState$
|
|
9170
|
-
oauthURL: defaultState$
|
|
9171
|
-
oauthErrorReason: defaultState$
|
|
9151
|
+
currentMemberGuid: defaultState$1.currentMemberGuid,
|
|
9152
|
+
error: defaultState$1.error,
|
|
9153
|
+
updateCredentials: defaultState$1.updateCredentials,
|
|
9154
|
+
oauthURL: defaultState$1.oauthURL,
|
|
9155
|
+
oauthErrorReason: defaultState$1.oauthErrorReason,
|
|
9172
9156
|
jobSchedule: UNINITIALIZED$1,
|
|
9173
|
-
hasInvalidData: defaultState$
|
|
9174
|
-
selectedInstitution: defaultState$
|
|
9157
|
+
hasInvalidData: defaultState$1.hasInvalidData,
|
|
9158
|
+
selectedInstitution: defaultState$1.selectedInstitution,
|
|
9175
9159
|
// This overrides/resets the location to always only be the search step.
|
|
9176
9160
|
location: pushLocation(state.location, STEPS.SEARCH, true)
|
|
9177
9161
|
};
|
|
9178
9162
|
};
|
|
9179
9163
|
const verifyDifferentConnection = (state) => ({
|
|
9180
9164
|
...state,
|
|
9181
|
-
error: defaultState$
|
|
9165
|
+
error: defaultState$1.error,
|
|
9182
9166
|
location: pushLocation(state.location, STEPS.SEARCH),
|
|
9183
|
-
updateCredentials: defaultState$
|
|
9184
|
-
oauthURL: defaultState$
|
|
9167
|
+
updateCredentials: defaultState$1.updateCredentials,
|
|
9168
|
+
oauthURL: defaultState$1.oauthURL
|
|
9185
9169
|
});
|
|
9186
9170
|
const loginErrorStartOver = (state, action) => {
|
|
9187
9171
|
const mode = action.payload.mode;
|
|
9188
9172
|
const iavMembers = getIavMembers(state.members);
|
|
9189
9173
|
return {
|
|
9190
|
-
...defaultState$
|
|
9174
|
+
...defaultState$1,
|
|
9191
9175
|
isComponentLoading: state.isComponentLoading,
|
|
9192
9176
|
isConnectMounted: state.isConnectMounted,
|
|
9193
9177
|
location: pushLocation(
|
|
@@ -9211,13 +9195,13 @@ const deleteMemberSuccessReset = (state, { payload }) => {
|
|
|
9211
9195
|
return {
|
|
9212
9196
|
...state,
|
|
9213
9197
|
location: resetLocation(state.members, payload, state.location),
|
|
9214
|
-
currentMemberGuid: defaultState$
|
|
9215
|
-
error: defaultState$
|
|
9216
|
-
updateCredentials: defaultState$
|
|
9217
|
-
oauthURL: defaultState$
|
|
9218
|
-
oauthErrorReason: defaultState$
|
|
9198
|
+
currentMemberGuid: defaultState$1.currentMemberGuid,
|
|
9199
|
+
error: defaultState$1.error,
|
|
9200
|
+
updateCredentials: defaultState$1.updateCredentials,
|
|
9201
|
+
oauthURL: defaultState$1.oauthURL,
|
|
9202
|
+
oauthErrorReason: defaultState$1.oauthErrorReason,
|
|
9219
9203
|
jobSchedule: UNINITIALIZED$1,
|
|
9220
|
-
hasInvalidData: defaultState$
|
|
9204
|
+
hasInvalidData: defaultState$1.hasInvalidData
|
|
9221
9205
|
};
|
|
9222
9206
|
};
|
|
9223
9207
|
const stepToUpdateCredentials = (state) => ({
|
|
@@ -9289,17 +9273,17 @@ const oauthError = (state, action) => ({
|
|
|
9289
9273
|
...state,
|
|
9290
9274
|
currentMemberGuid: action.payload.memberGuid,
|
|
9291
9275
|
location: pushLocation(state.location, STEPS.OAUTH_ERROR),
|
|
9292
|
-
oauthURL: defaultState$
|
|
9276
|
+
oauthURL: defaultState$1.oauthURL,
|
|
9293
9277
|
oauthErrorReason: action.payload.errorReason
|
|
9294
9278
|
});
|
|
9295
9279
|
const retryOAuth = (state) => ({
|
|
9296
9280
|
...state,
|
|
9297
9281
|
location: popLocation(state),
|
|
9298
|
-
oauthURL: defaultState$
|
|
9299
|
-
oauthErrorReason: defaultState$
|
|
9282
|
+
oauthURL: defaultState$1.oauthURL,
|
|
9283
|
+
oauthErrorReason: defaultState$1.oauthErrorReason
|
|
9300
9284
|
});
|
|
9301
9285
|
const stepToMicrodeposits = (state) => ({
|
|
9302
|
-
...defaultState$
|
|
9286
|
+
...defaultState$1,
|
|
9303
9287
|
currentMicrodepositGuid: state.currentMicrodepositGuid,
|
|
9304
9288
|
isComponentLoading: state.isComponentLoading,
|
|
9305
9289
|
isConnectMounted: state.isConnectMounted,
|
|
@@ -9353,10 +9337,10 @@ const connectComplete = (state) => ({
|
|
|
9353
9337
|
const finishMicrodeposits = (state) => ({
|
|
9354
9338
|
...state,
|
|
9355
9339
|
location: pushLocation(state.location, STEPS.SEARCH, true),
|
|
9356
|
-
error: defaultState$
|
|
9357
|
-
updateCredentials: defaultState$
|
|
9358
|
-
oauthURL: defaultState$
|
|
9359
|
-
currentMicrodepositGuid: defaultState$
|
|
9340
|
+
error: defaultState$1.error,
|
|
9341
|
+
updateCredentials: defaultState$1.updateCredentials,
|
|
9342
|
+
oauthURL: defaultState$1.oauthURL,
|
|
9343
|
+
currentMicrodepositGuid: defaultState$1.currentMicrodepositGuid
|
|
9360
9344
|
});
|
|
9361
9345
|
const exitMicrodeposits = (state) => ({
|
|
9362
9346
|
...state,
|
|
@@ -9375,13 +9359,13 @@ const resetWidgetInvalidData = (state) => {
|
|
|
9375
9359
|
return {
|
|
9376
9360
|
...state,
|
|
9377
9361
|
location: pushLocation(state.location, STEPS.SEARCH, true),
|
|
9378
|
-
error: defaultState$
|
|
9379
|
-
updateCredentials: defaultState$
|
|
9380
|
-
oauthURL: defaultState$
|
|
9381
|
-
oauthErrorReason: defaultState$
|
|
9362
|
+
error: defaultState$1.error,
|
|
9363
|
+
updateCredentials: defaultState$1.updateCredentials,
|
|
9364
|
+
oauthURL: defaultState$1.oauthURL,
|
|
9365
|
+
oauthErrorReason: defaultState$1.oauthErrorReason,
|
|
9382
9366
|
jobSchedule: UNINITIALIZED$1,
|
|
9383
|
-
currentMemberGuid: defaultState$
|
|
9384
|
-
hasInvalidData: defaultState$
|
|
9367
|
+
currentMemberGuid: defaultState$1.currentMemberGuid,
|
|
9368
|
+
hasInvalidData: defaultState$1.hasInvalidData
|
|
9385
9369
|
};
|
|
9386
9370
|
};
|
|
9387
9371
|
const hasInvalidData = (state) => {
|
|
@@ -9470,49 +9454,49 @@ const resetLocation = (members, connectConfig, location) => {
|
|
|
9470
9454
|
return newLocation;
|
|
9471
9455
|
}
|
|
9472
9456
|
};
|
|
9473
|
-
const connect = createReducer(defaultState$
|
|
9474
|
-
[ActionTypes$
|
|
9475
|
-
[ActionTypes$
|
|
9476
|
-
[ActionTypes$
|
|
9477
|
-
[ActionTypes$
|
|
9478
|
-
[ActionTypes$
|
|
9479
|
-
[ActionTypes$
|
|
9480
|
-
[ActionTypes$
|
|
9481
|
-
[ActionTypes$
|
|
9482
|
-
[ActionTypes$
|
|
9483
|
-
[ActionTypes$
|
|
9484
|
-
[ActionTypes$
|
|
9485
|
-
[ActionTypes$
|
|
9486
|
-
[ActionTypes$
|
|
9487
|
-
[ActionTypes$
|
|
9488
|
-
[ActionTypes$
|
|
9489
|
-
[ActionTypes$
|
|
9490
|
-
[ActionTypes$
|
|
9491
|
-
[ActionTypes$
|
|
9492
|
-
[ActionTypes$
|
|
9493
|
-
[ActionTypes$
|
|
9494
|
-
[ActionTypes$
|
|
9495
|
-
[ActionTypes$
|
|
9496
|
-
[ActionTypes$
|
|
9497
|
-
[ActionTypes$
|
|
9498
|
-
[ActionTypes$
|
|
9499
|
-
[ActionTypes$
|
|
9500
|
-
[ActionTypes$
|
|
9501
|
-
[ActionTypes$
|
|
9502
|
-
[ActionTypes$
|
|
9503
|
-
[ActionTypes$
|
|
9504
|
-
[ActionTypes$
|
|
9505
|
-
[ActionTypes$
|
|
9506
|
-
[ActionTypes$
|
|
9507
|
-
[ActionTypes$
|
|
9508
|
-
[ActionTypes$
|
|
9509
|
-
[ActionTypes$
|
|
9510
|
-
[ActionTypes$
|
|
9511
|
-
[ActionTypes$
|
|
9512
|
-
[ActionTypes$
|
|
9513
|
-
[ActionTypes$
|
|
9514
|
-
[ActionTypes$
|
|
9515
|
-
[ActionTypes$
|
|
9457
|
+
const connect = createReducer(defaultState$1, {
|
|
9458
|
+
[ActionTypes$2.ACCEPT_DISCLOSURE]: acceptDisclosure,
|
|
9459
|
+
[ActionTypes$2.CREATE_MEMBER_SUCCESS]: createMemberSuccess,
|
|
9460
|
+
[ActionTypes$2.CONNECT_COMPLETE]: connectComplete,
|
|
9461
|
+
[ActionTypes$2.GO_BACK_CREDENTIALS]: goBackSearchOrVerify,
|
|
9462
|
+
[ActionTypes$2.GO_BACK_POST_MESSAGE]: goBackSearchOrVerify,
|
|
9463
|
+
[ActionTypes$2.EXIT_MICRODEPOSITS]: exitMicrodeposits,
|
|
9464
|
+
[ActionTypes$2.FINISH_MICRODEPOSITS]: finishMicrodeposits,
|
|
9465
|
+
[ActionTypes$2.GO_BACK_OAUTH]: goBackSearchOrVerify,
|
|
9466
|
+
[ActionTypes$2.DELETE_MEMBER_SUCCESS]: deleteMemberSuccess,
|
|
9467
|
+
[ActionTypes$2.STEP_TO_DELETE_MEMBER_SUCCESS]: stepToDeleteMemberSuccess,
|
|
9468
|
+
[ActionTypes$2.DELETE_MEMBER_SUCCESS_RESET]: deleteMemberSuccessReset,
|
|
9469
|
+
[ActionTypes$2.HAS_INVALID_DATA]: hasInvalidData,
|
|
9470
|
+
[ActionTypes$2.INIT_JOB_SCHEDULE]: initializeJobSchedule,
|
|
9471
|
+
[ActionTypes$2.JOB_COMPLETE]: jobComplete,
|
|
9472
|
+
[ActionTypes$2.LOAD_CONNECT]: loadConnect,
|
|
9473
|
+
[ActionTypes$2.LOAD_CONNECT_ERROR]: loadConnectError,
|
|
9474
|
+
[ActionTypes$2.LOAD_CONNECT_SUCCESS]: loadConnectSuccess,
|
|
9475
|
+
[ActionTypes$2.GO_BACK_MANUAL_ACCOUNT]: goBackSearchOrVerify,
|
|
9476
|
+
[ActionTypes$2.OAUTH_COMPLETE_SUCCESS]: oauthCompleteSuccess,
|
|
9477
|
+
[ActionTypes$2.OAUTH_COMPLETE_ERROR]: oauthError,
|
|
9478
|
+
[ActionTypes$2.RESET_CONNECT]: resetConnect,
|
|
9479
|
+
[ActionTypes$2.RETRY_OAUTH]: retryOAuth,
|
|
9480
|
+
[ActionTypes$2.RESET_WIDGET_CONNECTED]: resetWidgetConnected,
|
|
9481
|
+
[ActionTypes$2.RESET_WIDGET_MFA_STEP]: resetWidgetMFAStep,
|
|
9482
|
+
[ActionTypes$2.RESET_WIDGET_NO_ELIGIBLE_ACCOUNTS]: resetWidgetInvalidData,
|
|
9483
|
+
[ActionTypes$2.SELECT_INSTITUTION_SUCCESS]: selectInstitutionSuccess,
|
|
9484
|
+
[ActionTypes$2.START_OAUTH]: startOauth,
|
|
9485
|
+
[ActionTypes$2.START_OAUTH_SUCCESS]: startOauthSuccess,
|
|
9486
|
+
[ActionTypes$2.STEP_TO_ADD_MANUAL_ACCOUNT]: stepToAddManualAccount,
|
|
9487
|
+
[ActionTypes$2.STEP_TO_CONNECTING]: stepToConnecting,
|
|
9488
|
+
[ActionTypes$2.STEP_TO_MICRODEPOSIT]: stepToMicrodeposits,
|
|
9489
|
+
[ActionTypes$2.STEP_TO_VERIFY_EXISTING_MEMBER]: stepToVerifyExistingMember,
|
|
9490
|
+
[ActionTypes$2.STEP_TO_UPDATE_CREDENTIALS]: stepToUpdateCredentials,
|
|
9491
|
+
[ActionTypes$2.STEP_TO_MFA]: stepToMFA,
|
|
9492
|
+
[ActionTypes$2.VERIFY_DIFFERENT_CONNECTION]: verifyDifferentConnection,
|
|
9493
|
+
[ActionTypes$2.VERIFY_EXISTING_CONNECTION]: verifyExistingConnection,
|
|
9494
|
+
[ActionTypes$2.UPDATE_MEMBER_SUCCESS]: updateMemberSuccess,
|
|
9495
|
+
[ActionTypes$2.MFA_CONNECT_SUBMIT_SUCCESS]: updateMemberSuccess,
|
|
9496
|
+
[ActionTypes$2.MFA_CONNECT_SUBMIT_ERROR]: stepToLoginError,
|
|
9497
|
+
[ActionTypes$2.ADD_MANUAL_ACCOUNT_SUCCESS]: addManualAccount,
|
|
9498
|
+
[ActionTypes$2.LOGIN_ERROR_START_OVER]: loginErrorStartOver,
|
|
9499
|
+
[ActionTypes$2.CONNECT_GO_BACK]: connectGoBack
|
|
9516
9500
|
});
|
|
9517
9501
|
|
|
9518
9502
|
const COMBO_JOB_DATA_TYPES = {
|
|
@@ -9558,7 +9542,7 @@ const configSlice = createSlice({
|
|
|
9558
9542
|
reducers: {},
|
|
9559
9543
|
extraReducers(builder) {
|
|
9560
9544
|
builder.addCase(
|
|
9561
|
-
ActionTypes$
|
|
9545
|
+
ActionTypes$2.LOAD_CONNECT,
|
|
9562
9546
|
(state, action) => {
|
|
9563
9547
|
const productDetermineMode = getProductDeterminedMode(action.payload);
|
|
9564
9548
|
return {
|
|
@@ -9687,12 +9671,12 @@ const isConnectComboJobsEnabled = createSelector(getUserFeatures, (userFeatures)
|
|
|
9687
9671
|
const { loadUserFeatures } = userFeaturesSlice.actions;
|
|
9688
9672
|
const userFeaturesSlice$1 = userFeaturesSlice.reducer;
|
|
9689
9673
|
|
|
9690
|
-
const ActionTypes$
|
|
9674
|
+
const ActionTypes$1 = {
|
|
9691
9675
|
SESSION_IS_TIMED_OUT: "app/session_is_timed_out",
|
|
9692
9676
|
HUMAN_EVENT_HAPPENED: "app/human_event_happened"
|
|
9693
9677
|
};
|
|
9694
9678
|
|
|
9695
|
-
const defaultState
|
|
9679
|
+
const defaultState = {
|
|
9696
9680
|
sessionIsTimedOut: false,
|
|
9697
9681
|
// We are adding this to use for certain requests to try to identify bots and
|
|
9698
9682
|
// credential stuffing. See https://gitlab.mx.com/mx/connect/issues/279
|
|
@@ -9701,11 +9685,11 @@ const defaultState$1 = {
|
|
|
9701
9685
|
};
|
|
9702
9686
|
const markSessionTimedOut = (state) => ({ ...state, sessionIsTimedOut: true });
|
|
9703
9687
|
const handleHumanEvent = (state) => ({ ...state, humanEvent: true });
|
|
9704
|
-
const app = (state = defaultState
|
|
9688
|
+
const app = (state = defaultState, action) => {
|
|
9705
9689
|
switch (action.type) {
|
|
9706
|
-
case ActionTypes$
|
|
9690
|
+
case ActionTypes$1.SESSION_IS_TIMED_OUT:
|
|
9707
9691
|
return markSessionTimedOut(state);
|
|
9708
|
-
case ActionTypes$
|
|
9692
|
+
case ActionTypes$1.HUMAN_EVENT_HAPPENED:
|
|
9709
9693
|
return handleHumanEvent(state);
|
|
9710
9694
|
default:
|
|
9711
9695
|
return state;
|
|
@@ -13146,12 +13130,12 @@ const shouldShowTooSmallDialogFromSnooze = (dismissedAt, thresholdDays, now = nu
|
|
|
13146
13130
|
return daysSinceDismissal > thresholdDays;
|
|
13147
13131
|
};
|
|
13148
13132
|
|
|
13149
|
-
const ActionTypes
|
|
13133
|
+
const ActionTypes = { SET_BROWSER_DIMENSIONS: "browser/set_browser_dimensions" };
|
|
13150
13134
|
const updateDimensions = (extraHeightOffset = 0) => {
|
|
13151
13135
|
const fullHeight = getWindowHeight();
|
|
13152
13136
|
const height = fullHeight - 51 - extraHeightOffset;
|
|
13153
13137
|
return {
|
|
13154
|
-
type: ActionTypes
|
|
13138
|
+
type: ActionTypes.SET_BROWSER_DIMENSIONS,
|
|
13155
13139
|
payload: {
|
|
13156
13140
|
fullHeight,
|
|
13157
13141
|
height,
|
|
@@ -13169,7 +13153,7 @@ const browserDispatcher = (dispatch) => ({
|
|
|
13169
13153
|
|
|
13170
13154
|
const browser = (state = { height: 0, isMobile: false, isTablet: false, size: "", width: 0 }, action) => {
|
|
13171
13155
|
switch (action.type) {
|
|
13172
|
-
case ActionTypes
|
|
13156
|
+
case ActionTypes.SET_BROWSER_DIMENSIONS: {
|
|
13173
13157
|
const { fullHeight, height, isMobile, isTablet, size, trueWidth, width } = action.payload;
|
|
13174
13158
|
return {
|
|
13175
13159
|
fullHeight,
|
|
@@ -13186,64 +13170,6 @@ const browser = (state = { height: 0, isMobile: false, isTablet: false, size: ""
|
|
|
13186
13170
|
}
|
|
13187
13171
|
};
|
|
13188
13172
|
|
|
13189
|
-
const ActionTypes = {
|
|
13190
|
-
POP_FOCUS_COMPONENT: "componentstacks/pop_focus_component",
|
|
13191
|
-
POP_SCRIM_COMPONENT: "componentstacks/pop_scrim_component",
|
|
13192
|
-
PUSH_FOCUS_COMPONENT: "componentstacks/push_focus_component",
|
|
13193
|
-
PUSH_SCRIM_COMPONENT: "componentstacks/push_scrim_component",
|
|
13194
|
-
SHIFT_SCRIM_COMPONENT: "componentstacks/shift_scrim_component",
|
|
13195
|
-
UNSHIFT_SCRIM_COMPONENT: "componentstacks/unshift_scrim_component"
|
|
13196
|
-
};
|
|
13197
|
-
|
|
13198
|
-
const {
|
|
13199
|
-
POP_FOCUS_COMPONENT,
|
|
13200
|
-
POP_SCRIM_COMPONENT,
|
|
13201
|
-
PUSH_FOCUS_COMPONENT,
|
|
13202
|
-
PUSH_SCRIM_COMPONENT,
|
|
13203
|
-
SHIFT_SCRIM_COMPONENT,
|
|
13204
|
-
UNSHIFT_SCRIM_COMPONENT
|
|
13205
|
-
} = ActionTypes;
|
|
13206
|
-
const defaultState = {
|
|
13207
|
-
scrimStack: [],
|
|
13208
|
-
focusStack: []
|
|
13209
|
-
};
|
|
13210
|
-
const popFocusStack = (state) => ({
|
|
13211
|
-
...state,
|
|
13212
|
-
focusStack: state.focusStack.slice(0, -1)
|
|
13213
|
-
});
|
|
13214
|
-
const pushFocusStack = (state, action) => ({
|
|
13215
|
-
...state,
|
|
13216
|
-
focusStack: [...state.focusStack, action.payload]
|
|
13217
|
-
});
|
|
13218
|
-
const pushScrimStack = (state, action) => ({
|
|
13219
|
-
...state,
|
|
13220
|
-
focusStack: [...state.focusStack, action.payload],
|
|
13221
|
-
scrimStack: [...state.scrimStack, action.payload]
|
|
13222
|
-
});
|
|
13223
|
-
const popScrimStack = (state) => ({
|
|
13224
|
-
...state,
|
|
13225
|
-
focusStack: state.focusStack.slice(0, -1),
|
|
13226
|
-
scrimStack: state.scrimStack.slice(0, -1)
|
|
13227
|
-
});
|
|
13228
|
-
const shiftScrimStack = (state) => ({
|
|
13229
|
-
...state,
|
|
13230
|
-
focusStack: state.focusStack.slice(1),
|
|
13231
|
-
scrimStack: state.scrimStack.slice(1)
|
|
13232
|
-
});
|
|
13233
|
-
const unshiftScrimStack = (state, action) => ({
|
|
13234
|
-
...state,
|
|
13235
|
-
focusStack: [action.payload, ...state.focusStack],
|
|
13236
|
-
scrimStack: [action.payload, ...state.scrimStack]
|
|
13237
|
-
});
|
|
13238
|
-
const componentStacks = createReducer(defaultState, {
|
|
13239
|
-
[POP_FOCUS_COMPONENT]: popFocusStack,
|
|
13240
|
-
[POP_SCRIM_COMPONENT]: popScrimStack,
|
|
13241
|
-
[PUSH_FOCUS_COMPONENT]: pushFocusStack,
|
|
13242
|
-
[PUSH_SCRIM_COMPONENT]: pushScrimStack,
|
|
13243
|
-
[SHIFT_SCRIM_COMPONENT]: shiftScrimStack,
|
|
13244
|
-
[UNSHIFT_SCRIM_COMPONENT]: unshiftScrimStack
|
|
13245
|
-
});
|
|
13246
|
-
|
|
13247
13173
|
const initialState$2 = {
|
|
13248
13174
|
currentSession: {},
|
|
13249
13175
|
featureVisit: {},
|
|
@@ -13280,7 +13206,6 @@ const rootReducer = combineReducers({
|
|
|
13280
13206
|
analytics: analyticsSlice$1,
|
|
13281
13207
|
app,
|
|
13282
13208
|
browser,
|
|
13283
|
-
componentStacks,
|
|
13284
13209
|
config: configSlice$1,
|
|
13285
13210
|
connect,
|
|
13286
13211
|
profiles: profilesSlice$1,
|
|
@@ -40821,7 +40746,7 @@ const Search$2 = React__default.forwardRef((props, navigationRef) => {
|
|
|
40821
40746
|
if (state.showSupportView) {
|
|
40822
40747
|
supportNavRef.current.handleCloseSupport();
|
|
40823
40748
|
} else {
|
|
40824
|
-
reduxDispatch({ type: ActionTypes$
|
|
40749
|
+
reduxDispatch({ type: ActionTypes$2.CONNECT_GO_BACK });
|
|
40825
40750
|
}
|
|
40826
40751
|
},
|
|
40827
40752
|
showBackButton() {
|
|
@@ -42242,22 +42167,22 @@ const MFAStep = React__default.forwardRef((props, navigationRef) => {
|
|
|
42242
42167
|
if (!isSubmitting) return () => {
|
|
42243
42168
|
};
|
|
42244
42169
|
dispatch({
|
|
42245
|
-
type: ActionTypes$
|
|
42170
|
+
type: ActionTypes$2.MFA_CONNECT_SUBMIT,
|
|
42246
42171
|
payload: { guid: updatedMember.guid }
|
|
42247
42172
|
});
|
|
42248
42173
|
if (updatedMember?.connection_status === ReadableStatuses$1.EXPIRED) {
|
|
42249
42174
|
return of({
|
|
42250
|
-
type: ActionTypes$
|
|
42175
|
+
type: ActionTypes$2.MFA_CONNECT_SUBMIT_ERROR
|
|
42251
42176
|
});
|
|
42252
42177
|
}
|
|
42253
42178
|
const mfaConnectSubmit$ = defer(() => api.updateMFA(updatedMember, connectConfig, isHuman)).pipe(
|
|
42254
42179
|
map((member) => ({
|
|
42255
|
-
type: ActionTypes$
|
|
42180
|
+
type: ActionTypes$2.MFA_CONNECT_SUBMIT_SUCCESS,
|
|
42256
42181
|
payload: { item: member }
|
|
42257
42182
|
})),
|
|
42258
42183
|
catchError(() => {
|
|
42259
42184
|
return of({
|
|
42260
|
-
type: ActionTypes$
|
|
42185
|
+
type: ActionTypes$2.MFA_CONNECT_SUBMIT_ERROR
|
|
42261
42186
|
});
|
|
42262
42187
|
})
|
|
42263
42188
|
).subscribe((action) => {
|
|
@@ -45105,7 +45030,7 @@ const OAuthStep = React__default.forwardRef((props, navigationRef) => {
|
|
|
45105
45030
|
setIsStartingOauth(false);
|
|
45106
45031
|
setOAuthStartError(null);
|
|
45107
45032
|
dispatch({
|
|
45108
|
-
type: ActionTypes$
|
|
45033
|
+
type: ActionTypes$2.START_OAUTH_SUCCESS,
|
|
45109
45034
|
payload: { member: member2, oauthWindowURI }
|
|
45110
45035
|
});
|
|
45111
45036
|
}
|
|
@@ -45863,7 +45788,7 @@ const UpdateMemberForm = (props) => {
|
|
|
45863
45788
|
props.onUpsertMember(response);
|
|
45864
45789
|
}
|
|
45865
45790
|
return dispatch({
|
|
45866
|
-
type: ActionTypes$
|
|
45791
|
+
type: ActionTypes$2.UPDATE_MEMBER_SUCCESS,
|
|
45867
45792
|
payload: { item: response }
|
|
45868
45793
|
});
|
|
45869
45794
|
}).catch((error) => {
|
|
@@ -45945,7 +45870,7 @@ const CreateMemberForm = (props) => {
|
|
|
45945
45870
|
props.onUpsertMember(response.member);
|
|
45946
45871
|
}
|
|
45947
45872
|
return {
|
|
45948
|
-
type: ActionTypes$
|
|
45873
|
+
type: ActionTypes$2.CREATE_MEMBER_SUCCESS,
|
|
45949
45874
|
payload: { item: response.member }
|
|
45950
45875
|
};
|
|
45951
45876
|
}),
|
|
@@ -45954,7 +45879,7 @@ const CreateMemberForm = (props) => {
|
|
|
45954
45879
|
const memberGuid = err.response.data.guid;
|
|
45955
45880
|
const stepToMFA$ = (member) => of(member).pipe(
|
|
45956
45881
|
map(() => ({
|
|
45957
|
-
type: ActionTypes$
|
|
45882
|
+
type: ActionTypes$2.STEP_TO_MFA,
|
|
45958
45883
|
payload: member.guid
|
|
45959
45884
|
}))
|
|
45960
45885
|
);
|
|
@@ -45976,7 +45901,7 @@ const CreateMemberForm = (props) => {
|
|
|
45976
45901
|
props.onUpsertMember(member);
|
|
45977
45902
|
}
|
|
45978
45903
|
return {
|
|
45979
|
-
type: ActionTypes$
|
|
45904
|
+
type: ActionTypes$2.UPDATE_MEMBER_SUCCESS,
|
|
45980
45905
|
payload: { item: member }
|
|
45981
45906
|
};
|
|
45982
45907
|
})
|
|
@@ -46431,7 +46356,7 @@ const Connecting$2 = (props) => {
|
|
|
46431
46356
|
onUpsertMember(updatedMember);
|
|
46432
46357
|
}
|
|
46433
46358
|
dispatch({
|
|
46434
|
-
type: ActionTypes$
|
|
46359
|
+
type: ActionTypes$2.UPDATE_MEMBER_SUCCESS,
|
|
46435
46360
|
payload: { item: updatedMember }
|
|
46436
46361
|
});
|
|
46437
46362
|
return dispatch(
|
|
@@ -46488,7 +46413,7 @@ const Connecting$2 = (props) => {
|
|
|
46488
46413
|
)
|
|
46489
46414
|
).subscribe(({ member, job, hasInvalidData }) => {
|
|
46490
46415
|
if (hasInvalidData) {
|
|
46491
|
-
return dispatch({ type: ActionTypes$
|
|
46416
|
+
return dispatch({ type: ActionTypes$2.HAS_INVALID_DATA });
|
|
46492
46417
|
}
|
|
46493
46418
|
if (onUpsertMember) {
|
|
46494
46419
|
onUpsertMember(member);
|
|
@@ -46907,7 +46832,7 @@ const NoEligibleAccounts = () => {
|
|
|
46907
46832
|
memberGuid: currentMember.guid
|
|
46908
46833
|
});
|
|
46909
46834
|
postMessageFunctions.onPostMessage(POST_MESSAGES.BACK_TO_SEARCH);
|
|
46910
|
-
dispatch({ type: ActionTypes$
|
|
46835
|
+
dispatch({ type: ActionTypes$2.RESET_WIDGET_NO_ELIGIBLE_ACCOUNTS });
|
|
46911
46836
|
},
|
|
46912
46837
|
style: styles.tryAgainButton,
|
|
46913
46838
|
children: __("Try again")
|
|
@@ -47016,7 +46941,7 @@ const LoginError = React__default.forwardRef(
|
|
|
47016
46941
|
});
|
|
47017
46942
|
}
|
|
47018
46943
|
}, [member]);
|
|
47019
|
-
const loginErrorStartOver = () => dispatch({ type: ActionTypes$
|
|
46944
|
+
const loginErrorStartOver = () => dispatch({ type: ActionTypes$2.LOGIN_ERROR_START_OVER, payload: { mode: connectConfig.mode } });
|
|
47020
46945
|
const handleOkPrimaryActionClick = () => {
|
|
47021
46946
|
postMessageFunctions.onPostMessage("connect/memberError/primaryAction", {
|
|
47022
46947
|
member: {
|
|
@@ -49211,7 +49136,7 @@ const Microdeposits = React__default.forwardRef((props, navigationRef) => {
|
|
|
49211
49136
|
type: shouldShowUserDetails ? ACTIONS.STEP_TO_PERSONAL_INFO_FORM : ACTIONS.STEP_TO_ACCOUNT_INFO
|
|
49212
49137
|
});
|
|
49213
49138
|
default:
|
|
49214
|
-
return reduxDispatch({ type: ActionTypes$
|
|
49139
|
+
return reduxDispatch({ type: ActionTypes$2.EXIT_MICRODEPOSITS });
|
|
49215
49140
|
}
|
|
49216
49141
|
};
|
|
49217
49142
|
if (state.currentView === VIEWS.OOPS) {
|
|
@@ -49270,7 +49195,7 @@ const Microdeposits = React__default.forwardRef((props, navigationRef) => {
|
|
|
49270
49195
|
ComeBack,
|
|
49271
49196
|
{
|
|
49272
49197
|
microdeposit: state.currentMicrodeposit,
|
|
49273
|
-
onDone: () => reduxDispatch({ type: ActionTypes$
|
|
49198
|
+
onDone: () => reduxDispatch({ type: ActionTypes$2.FINISH_MICRODEPOSITS })
|
|
49274
49199
|
}
|
|
49275
49200
|
),
|
|
49276
49201
|
state.currentView === VIEWS.VERIFY_DEPOSITS && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -49287,7 +49212,7 @@ const Microdeposits = React__default.forwardRef((props, navigationRef) => {
|
|
|
49287
49212
|
accountDetails: state.accountDetails,
|
|
49288
49213
|
microdeposit: state.currentMicrodeposit,
|
|
49289
49214
|
microdepositCreateError: state.microdepositCreateError,
|
|
49290
|
-
onResetMicrodeposits: () => reduxDispatch({ type: ActionTypes$
|
|
49215
|
+
onResetMicrodeposits: () => reduxDispatch({ type: ActionTypes$2.FINISH_MICRODEPOSITS }),
|
|
49291
49216
|
resetMicrodeposits: () => dispatch({ type: ACTIONS.RESET_MICRODEPOSITS })
|
|
49292
49217
|
}
|
|
49293
49218
|
),
|
|
@@ -49303,7 +49228,7 @@ const Microdeposits = React__default.forwardRef((props, navigationRef) => {
|
|
|
49303
49228
|
Verified,
|
|
49304
49229
|
{
|
|
49305
49230
|
microdeposit: state.currentMicrodeposit,
|
|
49306
|
-
onDone: () => reduxDispatch({ type: ActionTypes$
|
|
49231
|
+
onDone: () => reduxDispatch({ type: ActionTypes$2.FINISH_MICRODEPOSITS })
|
|
49307
49232
|
}
|
|
49308
49233
|
),
|
|
49309
49234
|
/* @__PURE__ */ jsxRuntimeExports.jsx(PrivateAndSecure, {})
|
|
@@ -50563,7 +50488,7 @@ const RenderConnectStep = (props) => {
|
|
|
50563
50488
|
Disclosure,
|
|
50564
50489
|
{
|
|
50565
50490
|
mode,
|
|
50566
|
-
onContinue: () => dispatch({ type: ActionTypes$
|
|
50491
|
+
onContinue: () => dispatch({ type: ActionTypes$2.ACCEPT_DISCLOSURE, payload: connectConfig }),
|
|
50567
50492
|
ref: props.navigationRef,
|
|
50568
50493
|
size
|
|
50569
50494
|
}
|
|
@@ -50591,7 +50516,7 @@ const RenderConnectStep = (props) => {
|
|
|
50591
50516
|
{
|
|
50592
50517
|
availableAccountTypes: props.availableAccountTypes,
|
|
50593
50518
|
onClose: () => dispatch({
|
|
50594
|
-
type: ActionTypes$
|
|
50519
|
+
type: ActionTypes$2.GO_BACK_MANUAL_ACCOUNT,
|
|
50595
50520
|
payload: connectConfig
|
|
50596
50521
|
}),
|
|
50597
50522
|
onManualAccountAdded: props.onManualAccountAdded,
|
|
@@ -50673,7 +50598,7 @@ const RenderConnectStep = (props) => {
|
|
|
50673
50598
|
onGoBack: () => {
|
|
50674
50599
|
postMessageFunctions.onPostMessage(POST_MESSAGES.BACK_TO_SEARCH);
|
|
50675
50600
|
dispatch({
|
|
50676
|
-
type: ActionTypes$
|
|
50601
|
+
type: ActionTypes$2.RESET_WIDGET_MFA_STEP,
|
|
50677
50602
|
payload: connectConfig
|
|
50678
50603
|
});
|
|
50679
50604
|
},
|
|
@@ -50719,7 +50644,7 @@ const RenderConnectStep = (props) => {
|
|
|
50719
50644
|
currentMember,
|
|
50720
50645
|
institution: selectedInstitution,
|
|
50721
50646
|
onContinueClick: () => {
|
|
50722
|
-
dispatch({ type: ActionTypes$
|
|
50647
|
+
dispatch({ type: ActionTypes$2.RESET_WIDGET_CONNECTED });
|
|
50723
50648
|
},
|
|
50724
50649
|
onSuccessfulAggregation: props.onSuccessfulAggregation
|
|
50725
50650
|
}
|
|
@@ -50732,7 +50657,7 @@ const RenderConnectStep = (props) => {
|
|
|
50732
50657
|
onContinueClick: () => {
|
|
50733
50658
|
postMessageFunctions.onPostMessage(POST_MESSAGES.BACK_TO_SEARCH);
|
|
50734
50659
|
dispatch({
|
|
50735
|
-
type: ActionTypes$
|
|
50660
|
+
type: ActionTypes$2.DELETE_MEMBER_SUCCESS_RESET,
|
|
50736
50661
|
payload: connectConfig
|
|
50737
50662
|
});
|
|
50738
50663
|
}
|
|
@@ -52762,7 +52687,7 @@ const Connect$2 = ({
|
|
|
52762
52687
|
postMessageFunctions.onPostMessage("navigation", { did_go_back: false });
|
|
52763
52688
|
} else {
|
|
52764
52689
|
dispatch({
|
|
52765
|
-
type: ActionTypes$
|
|
52690
|
+
type: ActionTypes$2.GO_BACK_POST_MESSAGE,
|
|
52766
52691
|
payload: connectConfig
|
|
52767
52692
|
});
|
|
52768
52693
|
postMessageFunctions.onPostMessage("navigation", { did_go_back: true });
|
|
@@ -52779,7 +52704,7 @@ const Connect$2 = ({
|
|
|
52779
52704
|
setState({ ...state, returnToMicrodeposits: false });
|
|
52780
52705
|
} else {
|
|
52781
52706
|
postMessageFunctions.onPostMessage(POST_MESSAGES.BACK_TO_SEARCH, {});
|
|
52782
|
-
dispatch({ type: ActionTypes$
|
|
52707
|
+
dispatch({ type: ActionTypes$2.GO_BACK_CREDENTIALS, payload: connectConfig });
|
|
52783
52708
|
}
|
|
52784
52709
|
};
|
|
52785
52710
|
const _handleOAuthGoBack = () => {
|
|
@@ -52788,7 +52713,7 @@ const Connect$2 = ({
|
|
|
52788
52713
|
setState({ ...state, returnToMicrodeposits: false });
|
|
52789
52714
|
} else {
|
|
52790
52715
|
postMessageFunctions.onPostMessage(POST_MESSAGES.BACK_TO_SEARCH, {});
|
|
52791
|
-
dispatch({ type: ActionTypes$
|
|
52716
|
+
dispatch({ type: ActionTypes$2.GO_BACK_OAUTH, payload: connectConfig });
|
|
52792
52717
|
}
|
|
52793
52718
|
};
|
|
52794
52719
|
const _handleStepDOMChange = useCallback((ref) => {
|
|
@@ -52848,7 +52773,7 @@ const Connect$2 = ({
|
|
|
52848
52773
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
52849
52774
|
ConnectNavigationHeader,
|
|
52850
52775
|
{
|
|
52851
|
-
connectGoBack: () => dispatch({ type: ActionTypes$
|
|
52776
|
+
connectGoBack: () => dispatch({ type: ActionTypes$2.CONNECT_GO_BACK }),
|
|
52852
52777
|
stepComponentRef: state.stepComponentRef
|
|
52853
52778
|
}
|
|
52854
52779
|
),
|