@mxenabled/connect-widget 2.12.1 → 2.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +37 -19
- 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
|
@@ -5099,23 +5099,39 @@ function baseFindIndex$2(array, predicate, fromIndex, fromRight) {
|
|
|
5099
5099
|
}
|
|
5100
5100
|
var _baseFindIndex = baseFindIndex$2;
|
|
5101
5101
|
|
|
5102
|
-
var
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5102
|
+
var _trimmedEndIndex;
|
|
5103
|
+
var hasRequired_trimmedEndIndex;
|
|
5104
|
+
|
|
5105
|
+
function require_trimmedEndIndex () {
|
|
5106
|
+
if (hasRequired_trimmedEndIndex) return _trimmedEndIndex;
|
|
5107
|
+
hasRequired_trimmedEndIndex = 1;
|
|
5108
|
+
var reWhitespace = /\s/;
|
|
5109
|
+
function trimmedEndIndex(string) {
|
|
5110
|
+
var index = string.length;
|
|
5111
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {
|
|
5112
|
+
}
|
|
5113
|
+
return index;
|
|
5114
|
+
}
|
|
5115
|
+
_trimmedEndIndex = trimmedEndIndex;
|
|
5116
|
+
return _trimmedEndIndex;
|
|
5108
5117
|
}
|
|
5109
|
-
var _trimmedEndIndex = trimmedEndIndex$1;
|
|
5110
5118
|
|
|
5111
|
-
var
|
|
5112
|
-
var
|
|
5113
|
-
|
|
5114
|
-
|
|
5119
|
+
var _baseTrim;
|
|
5120
|
+
var hasRequired_baseTrim;
|
|
5121
|
+
|
|
5122
|
+
function require_baseTrim () {
|
|
5123
|
+
if (hasRequired_baseTrim) return _baseTrim;
|
|
5124
|
+
hasRequired_baseTrim = 1;
|
|
5125
|
+
var trimmedEndIndex = require_trimmedEndIndex();
|
|
5126
|
+
var reTrimStart = /^\s+/;
|
|
5127
|
+
function baseTrim(string) {
|
|
5128
|
+
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
5129
|
+
}
|
|
5130
|
+
_baseTrim = baseTrim;
|
|
5131
|
+
return _baseTrim;
|
|
5115
5132
|
}
|
|
5116
|
-
var _baseTrim = baseTrim$1;
|
|
5117
5133
|
|
|
5118
|
-
var baseTrim =
|
|
5134
|
+
var baseTrim = require_baseTrim(), isObject$7 = isObject_1, isSymbol$1 = isSymbol_1;
|
|
5119
5135
|
var NAN = 0 / 0;
|
|
5120
5136
|
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
5121
5137
|
var reIsBinary = /^0b[01]+$/i;
|
|
@@ -8597,7 +8613,7 @@ var hasRequiredTrim;
|
|
|
8597
8613
|
function requireTrim () {
|
|
8598
8614
|
if (hasRequiredTrim) return trim_1;
|
|
8599
8615
|
hasRequiredTrim = 1;
|
|
8600
|
-
var baseToString = _baseToString, baseTrim =
|
|
8616
|
+
var baseToString = _baseToString, baseTrim = require_baseTrim(), castSlice = require_castSlice(), charsEndIndex = require_charsEndIndex(), charsStartIndex = require_charsStartIndex(), stringToArray = require_stringToArray(), toString = toString_1;
|
|
8601
8617
|
function trim(string, chars, guard) {
|
|
8602
8618
|
string = toString(string);
|
|
8603
8619
|
if (string && (guard || chars === void 0)) {
|
|
@@ -76222,7 +76238,7 @@ const DEFAULT_POLLING_STATE = {
|
|
|
76222
76238
|
initialDataReady: false
|
|
76223
76239
|
// whether the initial data ready event has been sent
|
|
76224
76240
|
};
|
|
76225
|
-
function pollMember(memberGuid, api, clientLocale) {
|
|
76241
|
+
function pollMember(memberGuid, api, clientLocale, clientGuid = null) {
|
|
76226
76242
|
return interval(3e3).pipe(
|
|
76227
76243
|
switchMap(
|
|
76228
76244
|
() => (
|
|
@@ -76253,7 +76269,8 @@ function pollMember(memberGuid, api, clientLocale) {
|
|
|
76253
76269
|
// preserve the initialDataReadySent flag
|
|
76254
76270
|
initialDataReady: acc.initialDataReady
|
|
76255
76271
|
};
|
|
76256
|
-
|
|
76272
|
+
const excludedClients = ["CLT-64ff7421-a8ef-4ac0-90f1-1636eda1a1fd"];
|
|
76273
|
+
if (!isError && !acc.initialDataReady && response?.job?.async_account_data_ready && !excludedClients.includes(clientGuid)) {
|
|
76257
76274
|
pollingState.initialDataReady = true;
|
|
76258
76275
|
}
|
|
76259
76276
|
const [shouldStopPolling, messageKey] = handlePollingResponse(pollingState);
|
|
@@ -76271,7 +76288,7 @@ function pollMember(memberGuid, api, clientLocale) {
|
|
|
76271
76288
|
function handlePollingResponse(pollingState) {
|
|
76272
76289
|
const polledMember = pollingState.currentResponse?.member || {};
|
|
76273
76290
|
const previousMember = pollingState.previousResponse?.member || {};
|
|
76274
|
-
const
|
|
76291
|
+
const initialDataReady = pollingState.initialDataReady;
|
|
76275
76292
|
const justFinishedAggregating = previousMember.is_being_aggregated === true && polledMember.is_being_aggregated === false;
|
|
76276
76293
|
const isNotAggregatingAtAll = previousMember.is_being_aggregated === false && polledMember.is_being_aggregated === false;
|
|
76277
76294
|
if (polledMember.connection_status === ReadableStatuses$1.CHALLENGED) {
|
|
@@ -76280,7 +76297,7 @@ function handlePollingResponse(pollingState) {
|
|
|
76280
76297
|
if (ProcessingStatuses.indexOf(polledMember.connection_status) !== -1) {
|
|
76281
76298
|
return [false, CONNECTING_MESSAGES.VERIFYING];
|
|
76282
76299
|
}
|
|
76283
|
-
if (
|
|
76300
|
+
if (initialDataReady) {
|
|
76284
76301
|
return [true, CONNECTING_MESSAGES.FINISHING];
|
|
76285
76302
|
}
|
|
76286
76303
|
if (polledMember.connection_status === ReadableStatuses$1.CONNECTED) {
|
|
@@ -78775,6 +78792,7 @@ const Connecting = (props) => {
|
|
|
78775
78792
|
onUpsertMember
|
|
78776
78793
|
} = props;
|
|
78777
78794
|
const selectedInstitution = useSelector(getSelectedInstitution);
|
|
78795
|
+
const clientGuid = useSelector(getClientGuid);
|
|
78778
78796
|
const sendAnalyticsEvent = useAnalyticsEvent();
|
|
78779
78797
|
const clientLocale = useMemo(() => {
|
|
78780
78798
|
return document.querySelector("html")?.getAttribute("lang") || "en";
|
|
@@ -78925,7 +78943,7 @@ const Connecting = (props) => {
|
|
|
78925
78943
|
return needsJobStarted ? startJob$ : of(currentMember);
|
|
78926
78944
|
}).pipe(
|
|
78927
78945
|
concatMap(
|
|
78928
|
-
(member) => pollMember(member.guid, api, clientLocale).pipe(
|
|
78946
|
+
(member) => pollMember(member.guid, api, clientLocale, clientGuid).pipe(
|
|
78929
78947
|
tap((pollingState) => handleMemberPoll(pollingState)),
|
|
78930
78948
|
filter((pollingState) => pollingState.pollingIsDone),
|
|
78931
78949
|
pluck("currentResponse"),
|