@mxenabled/connect-widget 2.17.5 → 2.17.6

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
@@ -62404,7 +62404,13 @@ const Disclosure = React__default.forwardRef((_, disclosureRef) => {
62404
62404
  {
62405
62405
  id: "mx-connect-disclosure",
62406
62406
  ref: containerRef,
62407
- children: showPrivacyPolicy ? /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsx(PrivacyPolicy, { onCancel: () => setShowPrivacyPolicy(false) }) }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
62407
+ children: showPrivacyPolicy ? /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
62408
+ PrivacyPolicy,
62409
+ {
62410
+ onCancel: () => setShowPrivacyPolicy(false),
62411
+ showExternalLinkPopup
62412
+ }
62413
+ ) }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
62408
62414
  /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsx(ConnectInstitutionHeader, {}) }),
62409
62415
  /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: styles.flexGroup, children: [
62410
62416
  /* @__PURE__ */ jsxRuntimeExports.jsx(L, { "data-test": "disclosure-title", style: styles.title, truncate: false, variant: "H2", children: _p("connect/disclosure/title", "Connect your account") }),
@@ -62465,7 +62471,9 @@ const Disclosure = React__default.forwardRef((_, disclosureRef) => {
62465
62471
  scrollToTop(containerRef);
62466
62472
  setShowPrivacyPolicy(true);
62467
62473
  } else {
62468
- goToUrlLink("https://www.mx.com/privacy/", true);
62474
+ const locale = getLocale();
62475
+ const privacyUrl = locale === "fr-ca" ? "https://www.mx.com/fr/privacy/" : "https://www.mx.com/privacy/";
62476
+ goToUrlLink(privacyUrl, true);
62469
62477
  }
62470
62478
  },
62471
62479
  style: styles.link,
@@ -77013,7 +77021,13 @@ const DisclosureInterstitial = React__default.forwardRef((props, interstitialNav
77013
77021
  }
77014
77022
  };
77015
77023
  if (currentView === VIEWS$1.PRIVACY_POLICY) {
77016
- return /* @__PURE__ */ jsxRuntimeExports.jsx(PrivacyPolicy, { onCancel: () => setCurrentView(VIEWS$1.INTERSTITIAL_DISCLOSURE) });
77024
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
77025
+ PrivacyPolicy,
77026
+ {
77027
+ onCancel: () => setCurrentView(VIEWS$1.INTERSTITIAL_DISCLOSURE),
77028
+ showExternalLinkPopup
77029
+ }
77030
+ );
77017
77031
  } else if (currentView === VIEWS$1.DATA_REQUESTED) {
77018
77032
  return /* @__PURE__ */ jsxRuntimeExports.jsx(DataRequested, { setCurrentView });
77019
77033
  } else if (currentView === VIEWS$1.AVAILABLE_DATA) {
@@ -77136,7 +77150,9 @@ const DisclosureInterstitial = React__default.forwardRef((props, interstitialNav
77136
77150
  scrollToTop();
77137
77151
  setCurrentView(VIEWS$1.PRIVACY_POLICY);
77138
77152
  } else {
77139
- goToUrlLink("https://www.mx.com/privacy/", true);
77153
+ const locale = getLocale();
77154
+ const privacyUrl = locale === "fr-ca" ? "https://www.mx.com/fr/privacy/" : "https://www.mx.com/privacy/";
77155
+ goToUrlLink(privacyUrl, true);
77140
77156
  }
77141
77157
  },
77142
77158
  style: styles.link,