@mxenabled/connect-widget 2.17.7 → 2.17.8
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 +15 -52
- 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
|
@@ -5269,39 +5269,23 @@ function baseFindIndex$2(array, predicate, fromIndex, fromRight) {
|
|
|
5269
5269
|
}
|
|
5270
5270
|
var _baseFindIndex = baseFindIndex$2;
|
|
5271
5271
|
|
|
5272
|
-
var
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
var reWhitespace = /\s/;
|
|
5279
|
-
function trimmedEndIndex(string) {
|
|
5280
|
-
var index = string.length;
|
|
5281
|
-
while (index-- && reWhitespace.test(string.charAt(index))) {
|
|
5282
|
-
}
|
|
5283
|
-
return index;
|
|
5284
|
-
}
|
|
5285
|
-
_trimmedEndIndex = trimmedEndIndex;
|
|
5286
|
-
return _trimmedEndIndex;
|
|
5272
|
+
var reWhitespace = /\s/;
|
|
5273
|
+
function trimmedEndIndex$1(string) {
|
|
5274
|
+
var index = string.length;
|
|
5275
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {
|
|
5276
|
+
}
|
|
5277
|
+
return index;
|
|
5287
5278
|
}
|
|
5279
|
+
var _trimmedEndIndex = trimmedEndIndex$1;
|
|
5288
5280
|
|
|
5289
|
-
var
|
|
5290
|
-
var
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
if (hasRequired_baseTrim) return _baseTrim;
|
|
5294
|
-
hasRequired_baseTrim = 1;
|
|
5295
|
-
var trimmedEndIndex = require_trimmedEndIndex();
|
|
5296
|
-
var reTrimStart = /^\s+/;
|
|
5297
|
-
function baseTrim(string) {
|
|
5298
|
-
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
5299
|
-
}
|
|
5300
|
-
_baseTrim = baseTrim;
|
|
5301
|
-
return _baseTrim;
|
|
5281
|
+
var trimmedEndIndex = _trimmedEndIndex;
|
|
5282
|
+
var reTrimStart = /^\s+/;
|
|
5283
|
+
function baseTrim$1(string) {
|
|
5284
|
+
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
5302
5285
|
}
|
|
5286
|
+
var _baseTrim = baseTrim$1;
|
|
5303
5287
|
|
|
5304
|
-
var baseTrim =
|
|
5288
|
+
var baseTrim = _baseTrim, isObject$7 = isObject_1, isSymbol$1 = isSymbol_1;
|
|
5305
5289
|
var NAN = 0 / 0;
|
|
5306
5290
|
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
5307
5291
|
var reIsBinary = /^0b[01]+$/i;
|
|
@@ -8783,7 +8767,7 @@ var hasRequiredTrim;
|
|
|
8783
8767
|
function requireTrim () {
|
|
8784
8768
|
if (hasRequiredTrim) return trim_1;
|
|
8785
8769
|
hasRequiredTrim = 1;
|
|
8786
|
-
var baseToString = _baseToString, baseTrim =
|
|
8770
|
+
var baseToString = _baseToString, baseTrim = _baseTrim, castSlice = require_castSlice(), charsEndIndex = require_charsEndIndex(), charsStartIndex = require_charsStartIndex(), stringToArray = require_stringToArray(), toString = toString_1;
|
|
8787
8771
|
function trim(string, chars, guard) {
|
|
8788
8772
|
string = toString(string);
|
|
8789
8773
|
if (string && (guard || chars === void 0)) {
|
|
@@ -75960,21 +75944,9 @@ ExampleCheckbox.propTypes = {
|
|
|
75960
75944
|
id: PropTypes$1.string
|
|
75961
75945
|
};
|
|
75962
75946
|
|
|
75963
|
-
function isWellsFargoInstitution(institution) {
|
|
75964
|
-
const wellsFargoGuids = [
|
|
75965
|
-
"INS-6073ad01-da9e-f6ba-dfdf-5f1500d8e867",
|
|
75966
|
-
// Wells Fargo PROD guid
|
|
75967
|
-
"INS-f9e8d5f6-b953-da63-32e4-6e88fbe8b250"
|
|
75968
|
-
// Wells Fargo SAND guid for testing
|
|
75969
|
-
];
|
|
75970
|
-
return wellsFargoGuids.includes(institution.guid) || institution.name === "Wells Fargo";
|
|
75971
|
-
}
|
|
75972
75947
|
function getInstitutionBrandColor(institution, defaultColor) {
|
|
75973
75948
|
const rawColor = institution?.brand_color_hex_code;
|
|
75974
75949
|
const configuredInstitutionColor = rawColor && /^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$/.test(rawColor) ? rawColor : null;
|
|
75975
|
-
if (isWellsFargoInstitution(institution)) {
|
|
75976
|
-
return configuredInstitutionColor || "#B22222";
|
|
75977
|
-
}
|
|
75978
75950
|
return configuredInstitutionColor || defaultColor;
|
|
75979
75951
|
}
|
|
75980
75952
|
const OAUTH_PREDIRECT_INSTRUCTION = {
|
|
@@ -75992,14 +75964,6 @@ function PredirectInstructions(props) {
|
|
|
75992
75964
|
) ? [...props.institution.oauth_predirect_instructions].filter(
|
|
75993
75965
|
(instruction) => Object.values(OAUTH_PREDIRECT_INSTRUCTION).includes(instruction)
|
|
75994
75966
|
) : [];
|
|
75995
|
-
if (isWellsFargoInstitution(props.institution) && configuredPredirectInstructions.length === 0) {
|
|
75996
|
-
configuredPredirectInstructions.push(
|
|
75997
|
-
OAUTH_PREDIRECT_INSTRUCTION.ACCOUNT_AND_TRANSACTIONS_INSTRUCTION
|
|
75998
|
-
);
|
|
75999
|
-
configuredPredirectInstructions.push(
|
|
76000
|
-
OAUTH_PREDIRECT_INSTRUCTION.PROFILE_INFORMATION_INSTRUCTION
|
|
76001
|
-
);
|
|
76002
|
-
}
|
|
76003
75967
|
if (configuredPredirectInstructions.length === 0) {
|
|
76004
75968
|
configuredPredirectInstructions.push(
|
|
76005
75969
|
OAUTH_PREDIRECT_INSTRUCTION.ACCOUNT_AND_TRANSACTIONS_INSTRUCTION
|
|
@@ -76082,7 +76046,6 @@ function PredirectInstructions(props) {
|
|
|
76082
76046
|
|
|
76083
76047
|
const OAuthDefault = (props) => {
|
|
76084
76048
|
const language = window?.app?.options?.language || "en-US";
|
|
76085
|
-
const isWellsFargo = isWellsFargoInstitution(props.institution);
|
|
76086
76049
|
const hasPredirectInstructions = Array.isArray(props.institution?.oauth_predirect_instructions) && props.institution?.oauth_predirect_instructions.length > 0;
|
|
76087
76050
|
const { api } = useApi();
|
|
76088
76051
|
useAnalyticsPath(...PageviewInfo.CONNECT_OAUTH_INSTRUCTIONS, {
|
|
@@ -76100,7 +76063,7 @@ const OAuthDefault = (props) => {
|
|
|
76100
76063
|
const tokens = useTokens();
|
|
76101
76064
|
const styles = getStyles$X(tokens);
|
|
76102
76065
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { role: "alert", children: [
|
|
76103
|
-
|
|
76066
|
+
hasPredirectInstructions ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(PredirectInstructions, { institution: props?.institution }) }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
76104
76067
|
/* @__PURE__ */ jsxRuntimeExports.jsx(InstitutionBlock, { institution: props.institution }),
|
|
76105
76068
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
76106
76069
|
ViewTitle,
|