@mxenabled/connect-widget 0.20.2 → 0.20.4
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 +78 -61
- 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
|
@@ -5087,39 +5087,23 @@ function baseFindIndex$2(array, predicate, fromIndex, fromRight) {
|
|
|
5087
5087
|
}
|
|
5088
5088
|
var _baseFindIndex = baseFindIndex$2;
|
|
5089
5089
|
|
|
5090
|
-
var
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
var reWhitespace = /\s/;
|
|
5097
|
-
function trimmedEndIndex(string) {
|
|
5098
|
-
var index = string.length;
|
|
5099
|
-
while (index-- && reWhitespace.test(string.charAt(index))) {
|
|
5100
|
-
}
|
|
5101
|
-
return index;
|
|
5102
|
-
}
|
|
5103
|
-
_trimmedEndIndex = trimmedEndIndex;
|
|
5104
|
-
return _trimmedEndIndex;
|
|
5090
|
+
var reWhitespace = /\s/;
|
|
5091
|
+
function trimmedEndIndex$1(string) {
|
|
5092
|
+
var index = string.length;
|
|
5093
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {
|
|
5094
|
+
}
|
|
5095
|
+
return index;
|
|
5105
5096
|
}
|
|
5097
|
+
var _trimmedEndIndex = trimmedEndIndex$1;
|
|
5106
5098
|
|
|
5107
|
-
var
|
|
5108
|
-
var
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
if (hasRequired_baseTrim) return _baseTrim;
|
|
5112
|
-
hasRequired_baseTrim = 1;
|
|
5113
|
-
var trimmedEndIndex = require_trimmedEndIndex();
|
|
5114
|
-
var reTrimStart = /^\s+/;
|
|
5115
|
-
function baseTrim(string) {
|
|
5116
|
-
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
5117
|
-
}
|
|
5118
|
-
_baseTrim = baseTrim;
|
|
5119
|
-
return _baseTrim;
|
|
5099
|
+
var trimmedEndIndex = _trimmedEndIndex;
|
|
5100
|
+
var reTrimStart = /^\s+/;
|
|
5101
|
+
function baseTrim$1(string) {
|
|
5102
|
+
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
5120
5103
|
}
|
|
5104
|
+
var _baseTrim = baseTrim$1;
|
|
5121
5105
|
|
|
5122
|
-
var baseTrim =
|
|
5106
|
+
var baseTrim = _baseTrim, isObject$7 = isObject_1, isSymbol$1 = isSymbol_1;
|
|
5123
5107
|
var NAN = 0 / 0;
|
|
5124
5108
|
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
5125
5109
|
var reIsBinary = /^0b[01]+$/i;
|
|
@@ -8575,7 +8559,7 @@ var hasRequiredTrim;
|
|
|
8575
8559
|
function requireTrim () {
|
|
8576
8560
|
if (hasRequiredTrim) return trim_1;
|
|
8577
8561
|
hasRequiredTrim = 1;
|
|
8578
|
-
var baseToString = _baseToString, baseTrim =
|
|
8562
|
+
var baseToString = _baseToString, baseTrim = _baseTrim, castSlice = require_castSlice(), charsEndIndex = require_charsEndIndex(), charsStartIndex = require_charsStartIndex(), stringToArray = require_stringToArray(), toString = toString_1;
|
|
8579
8563
|
function trim(string, chars, guard) {
|
|
8580
8564
|
string = toString(string);
|
|
8581
8565
|
if (string && (guard || chars === void 0)) {
|
|
@@ -62660,7 +62644,8 @@ const InstitutionGridTile = (props) => {
|
|
|
62660
62644
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "iconTile " + dist.css(styles.iconTile), style: styles.iconTile, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
62661
62645
|
De,
|
|
62662
62646
|
{
|
|
62663
|
-
alt:
|
|
62647
|
+
alt: `${institution.name} logo`,
|
|
62648
|
+
"aria-hidden": true,
|
|
62664
62649
|
institutionGuid: institution.guid,
|
|
62665
62650
|
logoUrl: institution.logo_url,
|
|
62666
62651
|
size: containerWidth - 24
|
|
@@ -62903,7 +62888,8 @@ const InstitutionTile = (props) => {
|
|
|
62903
62888
|
startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
62904
62889
|
De,
|
|
62905
62890
|
{
|
|
62906
|
-
alt:
|
|
62891
|
+
alt: `${institution.name} logo`,
|
|
62892
|
+
"aria-hidden": true,
|
|
62907
62893
|
institutionGuid: institution.guid,
|
|
62908
62894
|
logoUrl: institution.logo_url,
|
|
62909
62895
|
size
|
|
@@ -65022,6 +65008,46 @@ const useApi = () => {
|
|
|
65022
65008
|
return { api: context };
|
|
65023
65009
|
};
|
|
65024
65010
|
|
|
65011
|
+
const RequiredFieldNote = ({ styles }) => {
|
|
65012
|
+
const requiredFieldNoteColor = "#666";
|
|
65013
|
+
const asteriskColor = "#E32727";
|
|
65014
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
65015
|
+
Box,
|
|
65016
|
+
{
|
|
65017
|
+
sx: {
|
|
65018
|
+
marginTop: 16,
|
|
65019
|
+
marginBottom: 32,
|
|
65020
|
+
...styles
|
|
65021
|
+
},
|
|
65022
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
65023
|
+
Typography$1,
|
|
65024
|
+
{
|
|
65025
|
+
component: "span",
|
|
65026
|
+
sx: {
|
|
65027
|
+
color: requiredFieldNoteColor,
|
|
65028
|
+
fontSize: "13px"
|
|
65029
|
+
},
|
|
65030
|
+
variant: "caption",
|
|
65031
|
+
children: [
|
|
65032
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
65033
|
+
Typography$1,
|
|
65034
|
+
{
|
|
65035
|
+
component: "span",
|
|
65036
|
+
sx: {
|
|
65037
|
+
color: asteriskColor
|
|
65038
|
+
},
|
|
65039
|
+
children: "*"
|
|
65040
|
+
}
|
|
65041
|
+
),
|
|
65042
|
+
" ",
|
|
65043
|
+
__("Required")
|
|
65044
|
+
]
|
|
65045
|
+
}
|
|
65046
|
+
)
|
|
65047
|
+
}
|
|
65048
|
+
);
|
|
65049
|
+
};
|
|
65050
|
+
|
|
65025
65051
|
const RequestInstitution = React__default.forwardRef((props, requestInstitutionRef) => {
|
|
65026
65052
|
const { handleClose, handleTicketSuccess, user } = props;
|
|
65027
65053
|
useAnalyticsPath(...PageviewInfo.CONNECT_SUPPORT_REQUEST_INSTITUTION);
|
|
@@ -65120,6 +65146,7 @@ const RequestInstitution = React__default.forwardRef((props, requestInstitutionR
|
|
|
65120
65146
|
label: schema.email.label,
|
|
65121
65147
|
name: "email",
|
|
65122
65148
|
onChange: handleTextInputChange,
|
|
65149
|
+
required: true,
|
|
65123
65150
|
value: values.email
|
|
65124
65151
|
}
|
|
65125
65152
|
) }),
|
|
@@ -65140,6 +65167,7 @@ const RequestInstitution = React__default.forwardRef((props, requestInstitutionR
|
|
|
65140
65167
|
label: schema.institutionName.label,
|
|
65141
65168
|
name: "institutionName",
|
|
65142
65169
|
onChange: handleTextInputChange,
|
|
65170
|
+
required: true,
|
|
65143
65171
|
value: values.institutionName
|
|
65144
65172
|
}
|
|
65145
65173
|
) }),
|
|
@@ -65159,10 +65187,11 @@ const RequestInstitution = React__default.forwardRef((props, requestInstitutionR
|
|
|
65159
65187
|
label: schema.institutionWebsite.label,
|
|
65160
65188
|
name: "institutionWebsite",
|
|
65161
65189
|
onChange: handleTextInputChange,
|
|
65190
|
+
required: true,
|
|
65162
65191
|
value: values.institutionWebsite
|
|
65163
65192
|
}
|
|
65164
65193
|
) }),
|
|
65165
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.input, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
65194
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { ...styles.input, marginBottom: 0 }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
65166
65195
|
ProtectedTextField,
|
|
65167
65196
|
{
|
|
65168
65197
|
"aria-label": schema.institutionLogin.label,
|
|
@@ -65183,6 +65212,7 @@ const RequestInstitution = React__default.forwardRef((props, requestInstitutionR
|
|
|
65183
65212
|
}
|
|
65184
65213
|
) })
|
|
65185
65214
|
] }),
|
|
65215
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(RequiredFieldNote, {}),
|
|
65186
65216
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(SlideDown, { delay: getNextDelay(), children: [
|
|
65187
65217
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: styles.buttons, children: [
|
|
65188
65218
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -65322,6 +65352,7 @@ const GeneralSupport = React__default.forwardRef((props, generalSupportRef) => {
|
|
|
65322
65352
|
label: schema.email.label,
|
|
65323
65353
|
name: "email",
|
|
65324
65354
|
onChange: handleTextInputChange,
|
|
65355
|
+
required: true,
|
|
65325
65356
|
value: values.email
|
|
65326
65357
|
}
|
|
65327
65358
|
) }),
|
|
@@ -65338,10 +65369,11 @@ const GeneralSupport = React__default.forwardRef((props, generalSupportRef) => {
|
|
|
65338
65369
|
label: schema.issueDescription.label,
|
|
65339
65370
|
name: "issueDescription",
|
|
65340
65371
|
onChange: handleTextInputChange,
|
|
65372
|
+
required: true,
|
|
65341
65373
|
value: values.issueDescription
|
|
65342
65374
|
}
|
|
65343
65375
|
) }),
|
|
65344
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.input, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
65376
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { ...styles.input, marginBottom: 0 }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
65345
65377
|
ProtectedTextField,
|
|
65346
65378
|
{
|
|
65347
65379
|
autoComplete: "off",
|
|
@@ -65354,11 +65386,13 @@ const GeneralSupport = React__default.forwardRef((props, generalSupportRef) => {
|
|
|
65354
65386
|
multiline: true,
|
|
65355
65387
|
name: "issueDetails",
|
|
65356
65388
|
onChange: handleTextInputChange,
|
|
65389
|
+
required: true,
|
|
65357
65390
|
rows: 4,
|
|
65358
65391
|
value: values.issueDetails
|
|
65359
65392
|
}
|
|
65360
65393
|
) })
|
|
65361
65394
|
] }),
|
|
65395
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(RequiredFieldNote, {}),
|
|
65362
65396
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(SlideDown, { delay: getNextDelay(), children: [
|
|
65363
65397
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: styles.buttons, children: [
|
|
65364
65398
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -66774,41 +66808,32 @@ const DefaultMFA = (props) => {
|
|
|
66774
66808
|
mfaCredentials.map((credential, i) => {
|
|
66775
66809
|
const metaData = credential.meta_data || credential.image_data;
|
|
66776
66810
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: styles.label, children: [
|
|
66777
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
66778
|
-
x,
|
|
66779
|
-
{
|
|
66780
|
-
component: "p",
|
|
66781
|
-
"data-test": "challenge-label",
|
|
66782
|
-
style: styles.challengeLabel,
|
|
66783
|
-
truncate: false,
|
|
66784
|
-
variant: "Paragraph",
|
|
66785
|
-
children: credential.label
|
|
66786
|
-
}
|
|
66787
|
-
),
|
|
66788
66811
|
metaData ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.metaData, children: /* @__PURE__ */ jsxRuntimeExports.jsx("img", { alt: __("Challenge Image"), src: metaData, style: styles.mfaImage }) }) : null,
|
|
66789
66812
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
66790
66813
|
ProtectedTextField,
|
|
66791
66814
|
{
|
|
66792
66815
|
disabled: isSubmitting,
|
|
66793
|
-
error:
|
|
66816
|
+
error: !!errors[credential.label],
|
|
66794
66817
|
fullWidth: true,
|
|
66795
66818
|
helperText: errors[credential.label],
|
|
66796
66819
|
inputProps: { "aria-label": credential.label },
|
|
66797
66820
|
inputRef: i === 0 ? buttonRef : null,
|
|
66821
|
+
label: credential.label,
|
|
66798
66822
|
name: credential.label,
|
|
66799
66823
|
onChange: handleMFACodeChange,
|
|
66824
|
+
required: true,
|
|
66800
66825
|
value: values[credential.label] || ""
|
|
66801
66826
|
}
|
|
66802
66827
|
)
|
|
66803
66828
|
] }, credential.label);
|
|
66804
66829
|
}),
|
|
66830
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(RequiredFieldNote, {}),
|
|
66805
66831
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
66806
66832
|
Button$2,
|
|
66807
66833
|
{
|
|
66808
66834
|
"data-test": "continue-button",
|
|
66809
66835
|
fullWidth: true,
|
|
66810
66836
|
onClick: handleSubmit,
|
|
66811
|
-
style: styles.submitButton,
|
|
66812
66837
|
type: "submit",
|
|
66813
66838
|
variant: "contained",
|
|
66814
66839
|
children: isSubmitting ? `${_p("Verifying", "Checking")}...` : __("Continue")
|
|
@@ -66826,7 +66851,7 @@ const DefaultMFA = (props) => {
|
|
|
66826
66851
|
const getStyles$Y = (tokens) => {
|
|
66827
66852
|
return {
|
|
66828
66853
|
label: {
|
|
66829
|
-
|
|
66854
|
+
marginTop: tokens.Spacing.XLarge
|
|
66830
66855
|
},
|
|
66831
66856
|
challengeLabel: {
|
|
66832
66857
|
marginBottom: tokens.Spacing.Tiny
|
|
@@ -66844,9 +66869,6 @@ const getStyles$Y = (tokens) => {
|
|
|
66844
66869
|
width: "auto",
|
|
66845
66870
|
height: "auto",
|
|
66846
66871
|
borderRadius: tokens.BorderRadius.Medium
|
|
66847
|
-
},
|
|
66848
|
-
submitButton: {
|
|
66849
|
-
marginTop: tokens.Spacing.XLarge
|
|
66850
66872
|
}
|
|
66851
66873
|
};
|
|
66852
66874
|
};
|
|
@@ -73804,11 +73826,7 @@ const RoutingNumber = (props) => {
|
|
|
73804
73826
|
value: values.routingNumber
|
|
73805
73827
|
}
|
|
73806
73828
|
) }) }),
|
|
73807
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
73808
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { color: "#E32727", fontSize: 13 }, children: "*" }),
|
|
73809
|
-
" ",
|
|
73810
|
-
__("Required")
|
|
73811
|
-
] }) }),
|
|
73829
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(RequiredFieldNote, {}),
|
|
73812
73830
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
73813
73831
|
Button$2,
|
|
73814
73832
|
{
|
|
@@ -74008,11 +74026,7 @@ const PersonalInfoForm = ({ accountDetails, onContinue }) => {
|
|
|
74008
74026
|
}
|
|
74009
74027
|
) })
|
|
74010
74028
|
] }),
|
|
74011
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
74012
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { color: "#E32727", fontSize: 13 }, children: "*" }),
|
|
74013
|
-
" ",
|
|
74014
|
-
__("Required")
|
|
74015
|
-
] }) }),
|
|
74029
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(RequiredFieldNote, {}),
|
|
74016
74030
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
74017
74031
|
Button$2,
|
|
74018
74032
|
{
|
|
@@ -74711,6 +74725,7 @@ const VerifyDeposits = ({ microdeposit, onSuccess }) => {
|
|
|
74711
74725
|
name: "firstAmount",
|
|
74712
74726
|
onChange: handleTextInputChange,
|
|
74713
74727
|
placeholder: "0.00",
|
|
74728
|
+
required: true,
|
|
74714
74729
|
value: values.firstAmount
|
|
74715
74730
|
}
|
|
74716
74731
|
) }),
|
|
@@ -74731,10 +74746,12 @@ const VerifyDeposits = ({ microdeposit, onSuccess }) => {
|
|
|
74731
74746
|
name: "secondAmount",
|
|
74732
74747
|
onChange: handleTextInputChange,
|
|
74733
74748
|
placeholder: "0.00",
|
|
74749
|
+
required: true,
|
|
74734
74750
|
value: values.secondAmount
|
|
74735
74751
|
}
|
|
74736
74752
|
) })
|
|
74737
74753
|
] }) }),
|
|
74754
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(RequiredFieldNote, { styles: { marginBottom: 0 } }),
|
|
74738
74755
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
74739
74756
|
Button$2,
|
|
74740
74757
|
{
|