@mxenabled/connect-widget 2.17.7 → 2.17.9

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
@@ -75960,21 +75960,9 @@ ExampleCheckbox.propTypes = {
75960
75960
  id: PropTypes$1.string
75961
75961
  };
75962
75962
 
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
75963
  function getInstitutionBrandColor(institution, defaultColor) {
75973
75964
  const rawColor = institution?.brand_color_hex_code;
75974
75965
  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
75966
  return configuredInstitutionColor || defaultColor;
75979
75967
  }
75980
75968
  const OAUTH_PREDIRECT_INSTRUCTION = {
@@ -75992,14 +75980,6 @@ function PredirectInstructions(props) {
75992
75980
  ) ? [...props.institution.oauth_predirect_instructions].filter(
75993
75981
  (instruction) => Object.values(OAUTH_PREDIRECT_INSTRUCTION).includes(instruction)
75994
75982
  ) : [];
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
75983
  if (configuredPredirectInstructions.length === 0) {
76004
75984
  configuredPredirectInstructions.push(
76005
75985
  OAUTH_PREDIRECT_INSTRUCTION.ACCOUNT_AND_TRANSACTIONS_INSTRUCTION
@@ -76082,7 +76062,6 @@ function PredirectInstructions(props) {
76082
76062
 
76083
76063
  const OAuthDefault = (props) => {
76084
76064
  const language = window?.app?.options?.language || "en-US";
76085
- const isWellsFargo = isWellsFargoInstitution(props.institution);
76086
76065
  const hasPredirectInstructions = Array.isArray(props.institution?.oauth_predirect_instructions) && props.institution?.oauth_predirect_instructions.length > 0;
76087
76066
  const { api } = useApi();
76088
76067
  useAnalyticsPath(...PageviewInfo.CONNECT_OAUTH_INSTRUCTIONS, {
@@ -76100,7 +76079,7 @@ const OAuthDefault = (props) => {
76100
76079
  const tokens = useTokens();
76101
76080
  const styles = getStyles$X(tokens);
76102
76081
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { role: "alert", children: [
76103
- isWellsFargo || hasPredirectInstructions ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(PredirectInstructions, { institution: props?.institution }) }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
76082
+ hasPredirectInstructions ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(PredirectInstructions, { institution: props?.institution }) }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
76104
76083
  /* @__PURE__ */ jsxRuntimeExports.jsx(InstitutionBlock, { institution: props.institution }),
76105
76084
  /* @__PURE__ */ jsxRuntimeExports.jsx(
76106
76085
  ViewTitle,