@mxenabled/connect-widget 0.10.1 → 0.10.2

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 CHANGED
@@ -5131,39 +5131,23 @@ function baseFindIndex$2(array, predicate, fromIndex, fromRight) {
5131
5131
  }
5132
5132
  var _baseFindIndex = baseFindIndex$2;
5133
5133
 
5134
- var _trimmedEndIndex;
5135
- var hasRequired_trimmedEndIndex;
5136
-
5137
- function require_trimmedEndIndex () {
5138
- if (hasRequired_trimmedEndIndex) return _trimmedEndIndex;
5139
- hasRequired_trimmedEndIndex = 1;
5140
- var reWhitespace = /\s/;
5141
- function trimmedEndIndex(string) {
5142
- var index = string.length;
5143
- while (index-- && reWhitespace.test(string.charAt(index))) {
5144
- }
5145
- return index;
5146
- }
5147
- _trimmedEndIndex = trimmedEndIndex;
5148
- return _trimmedEndIndex;
5134
+ var reWhitespace = /\s/;
5135
+ function trimmedEndIndex$1(string) {
5136
+ var index = string.length;
5137
+ while (index-- && reWhitespace.test(string.charAt(index))) {
5138
+ }
5139
+ return index;
5149
5140
  }
5141
+ var _trimmedEndIndex = trimmedEndIndex$1;
5150
5142
 
5151
- var _baseTrim;
5152
- var hasRequired_baseTrim;
5153
-
5154
- function require_baseTrim () {
5155
- if (hasRequired_baseTrim) return _baseTrim;
5156
- hasRequired_baseTrim = 1;
5157
- var trimmedEndIndex = require_trimmedEndIndex();
5158
- var reTrimStart = /^\s+/;
5159
- function baseTrim(string) {
5160
- return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
5161
- }
5162
- _baseTrim = baseTrim;
5163
- return _baseTrim;
5143
+ var trimmedEndIndex = _trimmedEndIndex;
5144
+ var reTrimStart = /^\s+/;
5145
+ function baseTrim$1(string) {
5146
+ return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
5164
5147
  }
5148
+ var _baseTrim = baseTrim$1;
5165
5149
 
5166
- var baseTrim = require_baseTrim(), isObject$7 = isObject_1, isSymbol$1 = isSymbol_1;
5150
+ var baseTrim = _baseTrim, isObject$7 = isObject_1, isSymbol$1 = isSymbol_1;
5167
5151
  var NAN = 0 / 0;
5168
5152
  var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
5169
5153
  var reIsBinary = /^0b[01]+$/i;
@@ -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 = require_baseTrim(), castSlice = require_castSlice(), charsEndIndex = require_charsEndIndex(), charsStartIndex = require_charsStartIndex(), stringToArray = require_stringToArray(), toString = toString_1;
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)) {
@@ -46293,6 +46277,25 @@ class LicenseInfo {
46293
46277
 
46294
46278
  const circularProgressClasses = generateUtilityClasses$1("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
46295
46279
 
46280
+ const g = ({
46281
+ children: e,
46282
+ height: o,
46283
+ size: n = 16,
46284
+ viewBox: r = "0 0 16 16",
46285
+ width: i
46286
+ }) => /* @__PURE__ */ jsxRuntimeExports.jsx(
46287
+ "svg",
46288
+ {
46289
+ "aria-hidden": true,
46290
+ className: "mx-kmui-icon",
46291
+ focusable: false,
46292
+ height: o || n,
46293
+ viewBox: r,
46294
+ width: i || n,
46295
+ xmlns: "http://www.w3.org/2000/svg",
46296
+ children: e
46297
+ }
46298
+ );
46296
46299
  var f0 = /* @__PURE__ */ ((e) => (e[e.Lighter = 100] = "Lighter", e[e.Light = 200] = "Light", e[e.Normal = 300] = "Normal", e[e.Dark = 400] = "Dark", e[e.Darker = 500] = "Darker", e))(f0 || {});
46297
46300
  const M = ({
46298
46301
  color: e,
@@ -46331,7 +46334,16 @@ const M = ({
46331
46334
  children: n
46332
46335
  }
46333
46336
  );
46334
- };
46337
+ }, be = ({
46338
+ color: e = "currentColor",
46339
+ ...o
46340
+ }) => /* @__PURE__ */ jsxRuntimeExports.jsx(g, { ...o, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
46341
+ "path",
46342
+ {
46343
+ d: "M5.207 13.32a.6.6 0 01-.012-.848L9.55 8 5.195 3.528a.6.6 0 11.86-.837l4.76 4.89a.6.6 0 010 .838l-4.76 4.89a.6.6 0 01-.848.012z",
46344
+ fill: e
46345
+ }
46346
+ ) });
46335
46347
  var u = /* @__PURE__ */ ((e) => (e.AutoTransport = "CAT-7829f71c-2e8c-afa5-2f55-fa3634b89874", e.BillsUtilities = "CAT-79b02f2f-2adc-88f0-ac2b-4e71ead9cfc8", e.BusinessServices = "CAT-94b11142-e97b-941a-f67f-6e18d246a23f", e.Education = "CAT-bf5c9cca-c96b-b50d-440d-38d9adfda5b0", e.Entertainment = "CAT-e04e9d1e-e041-c315-2e50-094143ab3f73", e.FeesCharges = "CAT-d73ee74b-13a4-ac3e-4015-fc4ba9a62b2a", e.Financial = "CAT-6c7de3f8-de6c-7061-1dd2-b093044014bf", e.FoodDining = "CAT-bd56d35a-a9a7-6e10-66c1-5b9cc1b6c81a", e.GiftsDonations = "CAT-8edf9663-623e-4735-490e-31288f0a70b0", e.HealthFitness = "CAT-52fa4693-c088-afb2-2a99-7bc39bb23a0f", e.Home = "CAT-b709172b-4eb7-318e-3b5d-e0f0500b32ac", e.Income = "CAT-bf9f3294-4c40-1677-d269-54fbc189faf3", e.Investments = "CAT-ccd42390-9e8c-3fb6-a5d9-6c31182d9c5c", e.Kids = "CAT-0cb1d99d-f558-99e3-2282-b31f359b411a", e.PersonalCare = "CAT-e5154228-fe45-790d-a280-f6bf5ae5ac9f", e.Pets = "CAT-7cccbafa-87d7-c9a6-661b-8b3402fe9e78", e.Shopping = "CAT-aad51b46-d6f7-3da5-fd6e-492328b3023f", e.Taxes = "CAT-d00fc539-aa14-009b-4ffb-7e8c7b839954", e.Transfer = "CAT-bce48142-fea4-ff45-20d9-0a642d44de83", e.Travel = "CAT-ea23d844-cbd1-eb10-f6ac-0df9610e59ae", e.Uncategorized = "CAT-d7851c65-3353-e490-1953-fb9235e681e4", e))(u || {});
46336
46348
  const $ = {
46337
46349
  guid: u.Uncategorized,
@@ -72855,7 +72867,7 @@ const ActionTile = (props) => {
72855
72867
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
72856
72868
  Button$2,
72857
72869
  {
72858
- endIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(M, { name: "chevron_right", size: 24 }),
72870
+ endIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(be, { size: 24 }),
72859
72871
  fullWidth: true,
72860
72872
  onClick: onSelectAction,
72861
72873
  size: "large",
@@ -73237,6 +73249,9 @@ const RoutingNumber = (props) => {
73237
73249
  return () => {
73238
73250
  };
73239
73251
  }, [submitting]);
73252
+ useEffect(() => {
73253
+ if (institutions.length > 0) props.setShowSharedRoutingNumber(true);
73254
+ }, [institutions.length]);
73240
73255
  const handleContinue = (newAccountDetails) => fadeOut(containerRef.current, "up", 300).then(() => onContinue(newAccountDetails));
73241
73256
  if (showFindDetails) {
73242
73257
  return /* @__PURE__ */ jsxRuntimeExports.jsx(FindAccountInfo, { onClose: () => setShowFindDetails(false), step: "routingNumber" });
@@ -73245,12 +73260,18 @@ const RoutingNumber = (props) => {
73245
73260
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
73246
73261
  SharedRoutingNumber,
73247
73262
  {
73248
- continueMicrodeposits: () => onContinue({
73249
- ...accountDetails,
73250
- routing_number: values.routingNumber
73251
- }),
73263
+ continueMicrodeposits: () => {
73264
+ props.setShowSharedRoutingNumber(false);
73265
+ onContinue({
73266
+ ...accountDetails,
73267
+ routing_number: values.routingNumber
73268
+ });
73269
+ },
73252
73270
  institutions,
73253
- onGoBack: () => setInstitutions([]),
73271
+ onGoBack: () => {
73272
+ props.setShowSharedRoutingNumber(false);
73273
+ setInstitutions([]);
73274
+ },
73254
73275
  routingNumber: values.routingNumber,
73255
73276
  selectInstitution: (institutionGuid) => stepToIAV(institutionGuid)
73256
73277
  }
@@ -73330,6 +73351,7 @@ const getStyles$r = (tokens) => ({
73330
73351
  RoutingNumber.propTypes = {
73331
73352
  accountDetails: PropTypes$1.object,
73332
73353
  onContinue: PropTypes$1.func.isRequired,
73354
+ setShowSharedRoutingNumber: PropTypes$1.func.isRequired,
73333
73355
  stepToIAV: PropTypes$1.func.isRequired
73334
73356
  };
73335
73357
 
@@ -74648,6 +74670,7 @@ const Microdeposits = React__default.forwardRef((props, navigationRef) => {
74648
74670
  useAnalyticsPath(...PageviewInfo.CONNECT_MICRODEPOSITS);
74649
74671
  const { api } = useApi();
74650
74672
  const [state, dispatch] = useReducer(reducer$2, initialState);
74673
+ const [showSharedRoutingNumber, setShowSharedRoutingNumber] = useState(false);
74651
74674
  const { microdepositGuid, stepToIAV } = props;
74652
74675
  const postMessageFunctions = useContext(PostMessageContext);
74653
74676
  const reduxDispatch = useDispatch();
@@ -74711,10 +74734,11 @@ const Microdeposits = React__default.forwardRef((props, navigationRef) => {
74711
74734
  handleGoBack();
74712
74735
  },
74713
74736
  showBackButton() {
74737
+ if (showSharedRoutingNumber) return false;
74714
74738
  return true;
74715
74739
  }
74716
74740
  };
74717
- }, [state.currentView]);
74741
+ }, [state.currentView, showSharedRoutingNumber]);
74718
74742
  const handleGoBack = () => {
74719
74743
  switch (state.currentView) {
74720
74744
  case VIEWS.HOW_IT_WORKS:
@@ -74744,6 +74768,7 @@ const Microdeposits = React__default.forwardRef((props, navigationRef) => {
74744
74768
  type: state.returnToConfirm ? ACTIONS.STEP_TO_CONFIRM_DETAILS : ACTIONS.STEP_TO_HOW_IT_WORKS,
74745
74769
  payload: accountDetails
74746
74770
  }),
74771
+ setShowSharedRoutingNumber,
74747
74772
  stepToIAV
74748
74773
  }
74749
74774
  ),