@mxenabled/connect-widget 2.17.6 → 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 +24 -60
- 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)) {
|
|
@@ -75899,8 +75883,8 @@ const TouchIndicator = ({
|
|
|
75899
75883
|
const { hover, selected } = theme.palette.action;
|
|
75900
75884
|
const styles = {
|
|
75901
75885
|
position: "absolute",
|
|
75902
|
-
height: "
|
|
75903
|
-
width: "
|
|
75886
|
+
height: "37px",
|
|
75887
|
+
width: "37px",
|
|
75904
75888
|
background: `radial-gradient(circle, ${hover} 0%, ${selected} 100%)`,
|
|
75905
75889
|
stroke: theme.palette.divider,
|
|
75906
75890
|
filter: "drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12))",
|
|
@@ -75914,7 +75898,7 @@ const TouchIndicator = ({
|
|
|
75914
75898
|
|
|
75915
75899
|
const ExampleCheckbox = ({ id, showTouchIndicator, pseudoFocusColor }) => {
|
|
75916
75900
|
const theme = useTheme();
|
|
75917
|
-
const checkboxSize = "
|
|
75901
|
+
const checkboxSize = "15px";
|
|
75918
75902
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "aria-hidden": "true", style: { position: "relative" }, children: [
|
|
75919
75903
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
75920
75904
|
"input",
|
|
@@ -75929,6 +75913,7 @@ const ExampleCheckbox = ({ id, showTouchIndicator, pseudoFocusColor }) => {
|
|
|
75929
75913
|
marginTop: "8px",
|
|
75930
75914
|
marginBottom: "8px",
|
|
75931
75915
|
marginRight: "12px",
|
|
75916
|
+
marginLeft: "4px",
|
|
75932
75917
|
width: checkboxSize,
|
|
75933
75918
|
height: checkboxSize
|
|
75934
75919
|
},
|
|
@@ -75936,7 +75921,7 @@ const ExampleCheckbox = ({ id, showTouchIndicator, pseudoFocusColor }) => {
|
|
|
75936
75921
|
type: "checkbox"
|
|
75937
75922
|
}
|
|
75938
75923
|
),
|
|
75939
|
-
showTouchIndicator && /* @__PURE__ */ jsxRuntimeExports.jsx(TouchIndicator, { style: { left: "-
|
|
75924
|
+
showTouchIndicator && /* @__PURE__ */ jsxRuntimeExports.jsx(TouchIndicator, { style: { left: "-8px", top: "-4px" } }),
|
|
75940
75925
|
showTouchIndicator && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
75941
75926
|
"div",
|
|
75942
75927
|
{
|
|
@@ -75959,21 +75944,9 @@ ExampleCheckbox.propTypes = {
|
|
|
75959
75944
|
id: PropTypes$1.string
|
|
75960
75945
|
};
|
|
75961
75946
|
|
|
75962
|
-
function isWellsFargoInstitution(institution) {
|
|
75963
|
-
const wellsFargoGuids = [
|
|
75964
|
-
"INS-6073ad01-da9e-f6ba-dfdf-5f1500d8e867",
|
|
75965
|
-
// Wells Fargo PROD guid
|
|
75966
|
-
"INS-f9e8d5f6-b953-da63-32e4-6e88fbe8b250"
|
|
75967
|
-
// Wells Fargo SAND guid for testing
|
|
75968
|
-
];
|
|
75969
|
-
return wellsFargoGuids.includes(institution.guid) || institution.name === "Wells Fargo";
|
|
75970
|
-
}
|
|
75971
75947
|
function getInstitutionBrandColor(institution, defaultColor) {
|
|
75972
75948
|
const rawColor = institution?.brand_color_hex_code;
|
|
75973
75949
|
const configuredInstitutionColor = rawColor && /^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$/.test(rawColor) ? rawColor : null;
|
|
75974
|
-
if (isWellsFargoInstitution(institution)) {
|
|
75975
|
-
return configuredInstitutionColor || "#B22222";
|
|
75976
|
-
}
|
|
75977
75950
|
return configuredInstitutionColor || defaultColor;
|
|
75978
75951
|
}
|
|
75979
75952
|
const OAUTH_PREDIRECT_INSTRUCTION = {
|
|
@@ -75991,14 +75964,6 @@ function PredirectInstructions(props) {
|
|
|
75991
75964
|
) ? [...props.institution.oauth_predirect_instructions].filter(
|
|
75992
75965
|
(instruction) => Object.values(OAUTH_PREDIRECT_INSTRUCTION).includes(instruction)
|
|
75993
75966
|
) : [];
|
|
75994
|
-
if (isWellsFargoInstitution(props.institution) && configuredPredirectInstructions.length === 0) {
|
|
75995
|
-
configuredPredirectInstructions.push(
|
|
75996
|
-
OAUTH_PREDIRECT_INSTRUCTION.ACCOUNT_AND_TRANSACTIONS_INSTRUCTION
|
|
75997
|
-
);
|
|
75998
|
-
configuredPredirectInstructions.push(
|
|
75999
|
-
OAUTH_PREDIRECT_INSTRUCTION.PROFILE_INFORMATION_INSTRUCTION
|
|
76000
|
-
);
|
|
76001
|
-
}
|
|
76002
75967
|
if (configuredPredirectInstructions.length === 0) {
|
|
76003
75968
|
configuredPredirectInstructions.push(
|
|
76004
75969
|
OAUTH_PREDIRECT_INSTRUCTION.ACCOUNT_AND_TRANSACTIONS_INSTRUCTION
|
|
@@ -76060,7 +76025,7 @@ function PredirectInstructions(props) {
|
|
|
76060
76025
|
break;
|
|
76061
76026
|
}
|
|
76062
76027
|
const isLastItem = index === checkboxItems.length - 1;
|
|
76063
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
76028
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React__default.Fragment, { children: [
|
|
76064
76029
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("li", { children: [
|
|
76065
76030
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
76066
76031
|
ExampleCheckbox,
|
|
@@ -76071,9 +76036,9 @@ function PredirectInstructions(props) {
|
|
|
76071
76036
|
}
|
|
76072
76037
|
),
|
|
76073
76038
|
/* @__PURE__ */ jsxRuntimeExports.jsx(L, { className: "psuedo-checkbox-label", variant: "body1", children: text })
|
|
76074
|
-
] }
|
|
76075
|
-
!isLastItem && /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {}
|
|
76076
|
-
] });
|
|
76039
|
+
] }),
|
|
76040
|
+
!isLastItem && /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {})
|
|
76041
|
+
] }, item);
|
|
76077
76042
|
}) }) })
|
|
76078
76043
|
] }) })
|
|
76079
76044
|
] });
|
|
@@ -76081,7 +76046,6 @@ function PredirectInstructions(props) {
|
|
|
76081
76046
|
|
|
76082
76047
|
const OAuthDefault = (props) => {
|
|
76083
76048
|
const language = window?.app?.options?.language || "en-US";
|
|
76084
|
-
const isWellsFargo = isWellsFargoInstitution(props.institution);
|
|
76085
76049
|
const hasPredirectInstructions = Array.isArray(props.institution?.oauth_predirect_instructions) && props.institution?.oauth_predirect_instructions.length > 0;
|
|
76086
76050
|
const { api } = useApi();
|
|
76087
76051
|
useAnalyticsPath(...PageviewInfo.CONNECT_OAUTH_INSTRUCTIONS, {
|
|
@@ -76099,7 +76063,7 @@ const OAuthDefault = (props) => {
|
|
|
76099
76063
|
const tokens = useTokens();
|
|
76100
76064
|
const styles = getStyles$X(tokens);
|
|
76101
76065
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { role: "alert", children: [
|
|
76102
|
-
|
|
76066
|
+
hasPredirectInstructions ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(PredirectInstructions, { institution: props?.institution }) }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
76103
76067
|
/* @__PURE__ */ jsxRuntimeExports.jsx(InstitutionBlock, { institution: props.institution }),
|
|
76104
76068
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
76105
76069
|
ViewTitle,
|