@mx-cartographer/experiences 7.0.45 → 7.0.47

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.
Files changed (47) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{Account-DNtjr75t.mjs → Account-tfHe44mM.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-eODMVIVq.mjs → AccountDetailsContent-Dk-JfKbv.mjs} +6 -6
  4. package/dist/{AccountDetailsHeader-C0qgTju7.mjs → AccountDetailsHeader-eh13XhXN.mjs} +4 -4
  5. package/dist/{AccountFields-DDHk35Ou.mjs → AccountFields-pka2XWfO.mjs} +2 -2
  6. package/dist/{AccountListItem-BxmUd4j3.mjs → AccountListItem-C7NVvdVt.mjs} +3 -3
  7. package/dist/{AccountStore-CpjCeykS.mjs → AccountStore-XZqHTKm3.mjs} +2 -2
  8. package/dist/{Accounts-nXcS0QUR.mjs → Accounts-Bu-b-Wc_.mjs} +1 -1
  9. package/dist/ConnectDrawer-SHjB2fpB.mjs +546 -0
  10. package/dist/{ConnectionsDrawer-Bf2DNDCF.mjs → ConnectionsDrawer-BprLSCBH.mjs} +1 -1
  11. package/dist/{DebtsStore-Dy3YG1fX.mjs → DebtsStore-nxnF_bZi.mjs} +1 -1
  12. package/dist/{ExportCsvAction-CebIvl-V.mjs → ExportCsvAction-CBJAfyAw.mjs} +2 -2
  13. package/dist/{GoalStore-voP4QA5C.mjs → GoalStore-8dI95nSW.mjs} +2 -2
  14. package/dist/{ManageIncome-kMsgLN3T.mjs → ManageIncome-clecqBHm.mjs} +4 -4
  15. package/dist/{NetWorthStore-C5RMjsMS.mjs → NetWorthStore-cweTamnD.mjs} +2 -2
  16. package/dist/{NotificationSettings-BCtanw2c.mjs → NotificationSettings-C215AwS0.mjs} +1 -1
  17. package/dist/{RecurringSettings-CETLT79T.mjs → RecurringSettings-CHuS8Ik_.mjs} +3 -3
  18. package/dist/{RecurringTransactionsStore-DeLXfuC4.mjs → RecurringTransactionsStore-Djo9IeDd.mjs} +1 -1
  19. package/dist/{SettingsStore-Dc34Tzx8.mjs → SettingsStore-BcgS_Ohv.mjs} +1 -1
  20. package/dist/{TransactionDetails-B-rdHE3_.mjs → TransactionDetails-Cl8xcpbh.mjs} +2 -2
  21. package/dist/{TransactionStore-CfQBEIsK.mjs → TransactionStore-B-Tq_YFE.mjs} +2 -2
  22. package/dist/{User-8itAR7lR.mjs → User-DaJAQ09j.mjs} +20 -21
  23. package/dist/{WidgetContainer-p7NIdiNJ.mjs → WidgetContainer-hsbxZmZB.mjs} +83 -82
  24. package/dist/accounts/index.es.js +128 -123
  25. package/dist/budgets/index.es.js +5 -5
  26. package/dist/cashflow/index.es.js +6 -6
  27. package/dist/common/index.es.js +44 -44
  28. package/dist/common/utils/AccountFilter.d.ts +5 -0
  29. package/dist/dashboard/index.es.js +1 -1
  30. package/dist/debts/index.es.js +5 -5
  31. package/dist/{exportTransactionsToCSV-CfylirZA.mjs → exportTransactionsToCSV-D8TTNrrE.mjs} +1 -1
  32. package/dist/finstrong/index.es.js +4 -4
  33. package/dist/goals/index.es.js +7 -7
  34. package/dist/help/index.es.js +1 -1
  35. package/dist/investments/index.es.js +2 -2
  36. package/dist/networth/index.es.js +4 -4
  37. package/dist/notifications/index.es.js +2 -2
  38. package/dist/recurringtransactions/index.es.js +8 -8
  39. package/dist/settings/index.es.js +4 -4
  40. package/dist/spending/index.es.js +2 -2
  41. package/dist/transactions/index.es.js +10 -10
  42. package/dist/trends/index.es.js +4 -4
  43. package/dist/{useAccountDisplayName-DC1Lqjag.mjs → useAccountDisplayName-Dwa7UkEU.mjs} +1 -1
  44. package/package.json +1 -1
  45. package/dist/ConnectDrawer-YIWwEzuN.mjs +0 -521
  46. package/dist/{RepeatingTransaction-BW4J-jeJ.mjs → RecurringTransactions-DTUx9VN1.mjs} +1 -1
  47. package/dist/{Notification-aGCHxikw.mjs → ToggleListItem-r0Kx56wF.mjs} +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [7.0.47] - 10-08-2025
2
+
3
+ - **UPDATED** - WidgetContainer - Change ArrowLeft into ChevronLeft to maintain consistency.
4
+
5
+ ## [7.0.46] - 10-08-2025
6
+
7
+ **UPDATED** - Enhance accounts list UI for mini view
8
+
1
9
  ## [7.0.45] - 10-08-2025
2
10
 
3
11
  - **ADDED** - Default values for dashboard survey
@@ -1,4 +1,4 @@
1
- import { A as C } from "./ConnectDrawer-YIWwEzuN.mjs";
1
+ import { A as C } from "./ConnectDrawer-SHjB2fpB.mjs";
2
2
  const I = [
3
3
  C.ANY,
4
4
  C.CASH,
@@ -11,10 +11,10 @@ import M from "@mui/material/Divider";
11
11
  import v from "@mui/material/ListItem";
12
12
  import N from "@mui/material/ListItemButton";
13
13
  import w from "@mui/material/ListItemText";
14
- import { u as D } from "./AccountDetailsHeader-C0qgTju7.mjs";
14
+ import { u as D } from "./AccountDetailsHeader-eh13XhXN.mjs";
15
15
  import { d as z, u as E, g as O, h as X } from "./hooks-CE2TKk4a.mjs";
16
- import { A as at } from "./AccountListItem-BxmUd4j3.mjs";
17
- import { A as k } from "./WidgetContainer-p7NIdiNJ.mjs";
16
+ import { A as at } from "./AccountListItem-C7NVvdVt.mjs";
17
+ import { A as k } from "./WidgetContainer-hsbxZmZB.mjs";
18
18
  import { a as V, f as B, D as K } from "./Dialog-CWW597AF.mjs";
19
19
  import { b as h } from "./Localization-2MODESHW.mjs";
20
20
  import { D as J } from "./Drawer-kEE73B87.mjs";
@@ -22,7 +22,7 @@ import R from "@mui/material/ListItemAvatar";
22
22
  import ct from "@mui/material/Stack";
23
23
  import st from "@mui/material/styles/useTheme";
24
24
  import { Error as q, CheckCircle as it, Language as rt } from "@mxenabled/mx-icons";
25
- import { l as m, N as Q, k as Z, F as P } from "./ConnectDrawer-YIWwEzuN.mjs";
25
+ import { m, N as Q, k as Z, F as P } from "./ConnectDrawer-SHjB2fpB.mjs";
26
26
  import { fromUnixTime as lt } from "date-fns/fromUnixTime";
27
27
  import { isToday as dt } from "date-fns/isToday";
28
28
  import { isYesterday as ut } from "date-fns/isYesterday";
@@ -38,13 +38,13 @@ import At from "@mui/material/MenuItem";
38
38
  import bt from "@mui/material/Select";
39
39
  import Tt from "@mui/material/TextField";
40
40
  import { C as St } from "./CurrencyInput-CRtdzs3o.mjs";
41
- import { b as Dt } from "./AccountFields-DDHk35Ou.mjs";
41
+ import { b as Dt } from "./AccountFields-pka2XWfO.mjs";
42
42
  import Et from "@mui/material/Alert";
43
43
  import yt from "@mui/material/AlertTitle";
44
44
  import xt from "@mui/material/Link";
45
45
  import wt from "@mui/material/Paper";
46
46
  import { subDays as kt, startOfToday as It, endOfToday as Mt } from "date-fns";
47
- import { T as vt, a as Lt } from "./TransactionDetails-B-rdHE3_.mjs";
47
+ import { T as vt, a as Lt } from "./TransactionDetails-Cl8xcpbh.mjs";
48
48
  import { T as j } from "./TabContentContainer-j01JYR_7.mjs";
49
49
  const U = ({
50
50
  children: e,
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as u } from "react/jsx-runtime";
2
2
  import { observer as p } from "mobx-react-lite";
3
3
  import d from "@mui/material/Stack";
4
4
  import { H3 as w, InstitutionLogo as I, Text as m, H2 as L } from "@mxenabled/mxui";
5
- import { g as v } from "./AccountFields-DDHk35Ou.mjs";
5
+ import { g as v } from "./AccountFields-pka2XWfO.mjs";
6
6
  import h from "react";
7
7
  import { G as E, d as y, m as S, u as _, f as G } from "./hooks-CE2TKk4a.mjs";
8
8
  import O from "@mui/material/Card";
@@ -11,11 +11,11 @@ import M from "@mui/material/CardHeader";
11
11
  import { useTheme as B } from "@mui/material/styles";
12
12
  import { g as H, a as U, b as j } from "./SpendingData-D5vsfYKo.mjs";
13
13
  import { L as z } from "./LineChart-B2Y7zwMu.mjs";
14
- import { I as f, P as g, S as C } from "./Account-DNtjr75t.mjs";
15
- import { A } from "./ConnectDrawer-YIWwEzuN.mjs";
14
+ import { I as f, P as g, S as C } from "./Account-tfHe44mM.mjs";
15
+ import { A } from "./ConnectDrawer-SHjB2fpB.mjs";
16
16
  import { L as Y } from "./Loader-DUaFpDGv.mjs";
17
17
  import { f as R, D as $ } from "./Dialog-CWW597AF.mjs";
18
- import { u as k } from "./useAccountDisplayName-DC1Lqjag.mjs";
18
+ import { u as k } from "./useAccountDisplayName-Dwa7UkEU.mjs";
19
19
  import { f as F } from "./NumberFormatting-CtWHhyBX.mjs";
20
20
  const b = () => {
21
21
  if (!h.useContext(E))
@@ -1,7 +1,7 @@
1
1
  import { jsx as u } from "react/jsx-runtime";
2
2
  import { Icon as p, Text as y } from "@mxenabled/mxui";
3
- import { F as m, A as d, a as v, P as h, b as F } from "./ConnectDrawer-YIWwEzuN.mjs";
4
- import { i as T, u as D, a as A, b as g, c as O } from "./Accounts-nXcS0QUR.mjs";
3
+ import { F as m, A as d, a as v, P as h, b as F } from "./ConnectDrawer-SHjB2fpB.mjs";
4
+ import { i as T, u as D, a as A, b as g, c as O } from "./Accounts-Bu-b-Wc_.mjs";
5
5
  import { f as _, i as b, a as N, b as S } from "./NumberFormatting-CtWHhyBX.mjs";
6
6
  import { b as i } from "./Localization-2MODESHW.mjs";
7
7
  import { f as o, D as f } from "./Dialog-CWW597AF.mjs";
@@ -10,9 +10,9 @@ import B from "@mui/material/styles/useTheme";
10
10
  import { InstitutionLogo as L, Text as o } from "@mxenabled/mxui";
11
11
  import { Error as A } from "@mxenabled/mx-icons";
12
12
  import { I as j } from "./IconBacking-B9oC6uL2.mjs";
13
- import { g as T } from "./AccountFields-DDHk35Ou.mjs";
14
- import { u as X } from "./useAccountDisplayName-DC1Lqjag.mjs";
15
- import { d } from "./ConnectDrawer-YIWwEzuN.mjs";
13
+ import { g as T } from "./AccountFields-pka2XWfO.mjs";
14
+ import { u as X } from "./useAccountDisplayName-Dwa7UkEU.mjs";
15
+ import { d } from "./ConnectDrawer-SHjB2fpB.mjs";
16
16
  import { u as $ } from "./hooks-CE2TKk4a.mjs";
17
17
  import { f as k } from "./NumberFormatting-CtWHhyBX.mjs";
18
18
  const w = {
@@ -1,7 +1,7 @@
1
1
  import { makeAutoObservable as _, runInAction as a } from "mobx";
2
- import { i as g } from "./User-8itAR7lR.mjs";
2
+ import { i as g } from "./User-DaJAQ09j.mjs";
3
3
  import { F as f, A as i } from "./Fetch-87LIQbEA.mjs";
4
- import { A as n, d as h, E as p, h as y, i as I } from "./ConnectDrawer-YIWwEzuN.mjs";
4
+ import { A as n, d as h, E as p, h as y, i as I } from "./ConnectDrawer-SHjB2fpB.mjs";
5
5
  class l {
6
6
  fetchInstance;
7
7
  constructor(t, e, s) {
@@ -1,4 +1,4 @@
1
- import { A as _ } from "./ConnectDrawer-YIWwEzuN.mjs";
1
+ import { A as _ } from "./ConnectDrawer-SHjB2fpB.mjs";
2
2
  const s = (t) => t && (t.account_type === _.CREDIT_CARD || t.account_type === _.LOAN || t.account_type === _.MORTGAGE || t.account_type === _.LINE_OF_CREDIT || t.account_type === _.CHECKING_LINE_OF_CREDIT), p = (t) => t.is_manual || !t.guid, E = (t) => t.account_type === _.LINE_OF_CREDIT || t.account_type === _.CREDIT_CARD || t.account_type === _.CHECKING_LINE_OF_CREDIT, a = (t) => t.account_type === _.SAVINGS || t.account_type === _.CHECKING || t.account_type === _.LINE_OF_CREDIT || t.account_type === _.CREDIT_CARD || t.account_type === _.LOAN || t.account_type === _.MORTGAGE, y = (t) => t.account_type === _.LOAN || t.account_type === _.MORTGAGE;
3
3
  export {
4
4
  s as a,
@@ -0,0 +1,546 @@
1
+ import { jsx as _, jsxs as M } from "react/jsx-runtime";
2
+ import f, { useMemo as Z } from "react";
3
+ import T from "@mui/material/Button";
4
+ import { AccountsIcon as S, P as Y, Icon as x, Text as n } from "@mxenabled/mxui";
5
+ import b from "@mui/material/Tooltip";
6
+ import j from "@mui/material/Box";
7
+ import p from "@mui/material/IconButton";
8
+ import k from "@mui/material/FormControlLabel";
9
+ import K from "@mui/material/List";
10
+ import g from "@mui/material/ListItem";
11
+ import c from "@mui/material/ListItemButton";
12
+ import y from "@mui/material/ListSubheader";
13
+ import u from "@mui/material/ListItemText";
14
+ import EE from "@mui/material/Popover";
15
+ import F from "@mui/material/Stack";
16
+ import v from "@mui/material/Checkbox";
17
+ import { u as B, d as IE, e as _E } from "./hooks-CE2TKk4a.mjs";
18
+ import { b as w } from "./Localization-2MODESHW.mjs";
19
+ import { u as NE } from "./useScreenSize-B6JyS_Lj.mjs";
20
+ import { observer as $ } from "mobx-react-lite";
21
+ import rE from "@mui/material/styles/useTheme";
22
+ import { ConnectWidget as RE } from "@mxenabled/web-widget-sdk";
23
+ import iE from "@mui/material/CircularProgress";
24
+ import { D as aE } from "./Drawer-kEE73B87.mjs";
25
+ var G = /* @__PURE__ */ ((E) => (E[E.ANY = 0] = "ANY", E[E.CHECKING = 1] = "CHECKING", E[E.SAVINGS = 2] = "SAVINGS", E[E.LOAN = 3] = "LOAN", E[E.CREDIT_CARD = 4] = "CREDIT_CARD", E[E.INVESTMENT = 5] = "INVESTMENT", E[E.LINE_OF_CREDIT = 6] = "LINE_OF_CREDIT", E[E.MORTGAGE = 7] = "MORTGAGE", E[E.PROPERTY = 8] = "PROPERTY", E[E.CASH = 9] = "CASH", E[E.INSURANCE = 10] = "INSURANCE", E[E.PREPAID = 11] = "PREPAID", E[E.CHECKING_LINE_OF_CREDIT = 12] = "CHECKING_LINE_OF_CREDIT", E[E.DIGITAL_WALLET = 13] = "DIGITAL_WALLET", E))(G || {}), lE = /* @__PURE__ */ ((E) => (E[E.NONE = 0] = "NONE", E[E.MONEY_MARKET = 1] = "MONEY_MARKET", E[E.CERTIFICATE_OF_DEPOSIT = 2] = "CERTIFICATE_OF_DEPOSIT", E[E.AUTO = 3] = "AUTO", E[E.STUDENT = 4] = "STUDENT", E[E.SMALL_BUSINESS = 5] = "SMALL_BUSINESS", E[E.PERSONAL = 6] = "PERSONAL", E[E.PERSONAL_WITH_COLLATERAL = 7] = "PERSONAL_WITH_COLLATERAL", E[E.HOME_EQUITY = 8] = "HOME_EQUITY", E[E.PLAN_401_K = 9] = "PLAN_401_K", E[E.PLAN_403_B = 10] = "PLAN_403_B", E[E.PLAN_529 = 11] = "PLAN_529", E[E.IRA = 12] = "IRA", E[E.ROLLOVER_IRA = 13] = "ROLLOVER_IRA", E[E.ROTH_IRA = 14] = "ROTH_IRA", E[E.TAXABLE = 15] = "TAXABLE", E[E.NON_TAXABLE = 16] = "NON_TAXABLE", E[E.BROKERAGE = 17] = "BROKERAGE", E[E.TRUST = 18] = "TRUST", E[E.UNIFORM_GIFTS_TO_MINORS_ACT = 19] = "UNIFORM_GIFTS_TO_MINORS_ACT", E[E.PLAN_457 = 20] = "PLAN_457", E[E.PENSION = 21] = "PENSION", E[E.EMPLOYEE_STOCK_OWNERSHIP_PLAN = 22] = "EMPLOYEE_STOCK_OWNERSHIP_PLAN", E[E.SIMPLIFIED_EMPLOYEE_PENSION = 23] = "SIMPLIFIED_EMPLOYEE_PENSION", E[E.SIMPLE_IRA = 24] = "SIMPLE_IRA", E[E.BOAT = 25] = "BOAT", E[E.POWERSPORTS = 26] = "POWERSPORTS", E[E.RV = 27] = "RV", E[E.HELOC = 28] = "HELOC", E[E.PLAN_ROTH_401_K = 29] = "PLAN_ROTH_401_K", E[E.FIXED_ANNUITY = 30] = "FIXED_ANNUITY", E[E.VARIABLE_ANNUITY = 31] = "VARIABLE_ANNUITY", E[E.VEHICLE_INSURANCE = 32] = "VEHICLE_INSURANCE", E[E.DISABILITY = 33] = "DISABILITY", E[E.HEALTH = 34] = "HEALTH", E[E.LONG_TERM_CARE = 35] = "LONG_TERM_CARE", E[E.PROPERTY_AND_CASUALTY = 36] = "PROPERTY_AND_CASUALTY", E[E.UNIVERSAL_LIFE = 37] = "UNIVERSAL_LIFE", E[E.TERM_LIFE = 38] = "TERM_LIFE", E[E.WHOLE_LIFE = 39] = "WHOLE_LIFE", E[E.ACCIDENTAL_DEATH_AND_DISMEMBERMENT = 40] = "ACCIDENTAL_DEATH_AND_DISMEMBERMENT", E[E.VARIABLE_UNIVERSAL_LIFE = 41] = "VARIABLE_UNIVERSAL_LIFE", E[E.HSA = 42] = "HSA", E[E.TAX_FREE_SAVINGS_ACCOUNT = 43] = "TAX_FREE_SAVINGS_ACCOUNT", E[E.INDIVIDUAL = 44] = "INDIVIDUAL", E[E.REGISTERED_RETIREMENT_INCOME_FUND = 45] = "REGISTERED_RETIREMENT_INCOME_FUND", E[E.CASH_MANAGEMENT_ACCOUNT = 46] = "CASH_MANAGEMENT_ACCOUNT", E[E.EMPLOYEE_STOCK_PURCHASE_PLAN = 47] = "EMPLOYEE_STOCK_PURCHASE_PLAN", E[E.REGISTERED_EDUCATION_SAVINGS_PLAN = 48] = "REGISTERED_EDUCATION_SAVINGS_PLAN", E[E.PROFIT_SHARING_PLAN = 49] = "PROFIT_SHARING_PLAN", E[E.UNIFORM_TRANSFER_TO_MINORS_ACT = 50] = "UNIFORM_TRANSFER_TO_MINORS_ACT", E[E.PLAN_401_A = 51] = "PLAN_401_A", E[E.SARSEP_IRA = 52] = "SARSEP_IRA", E[E.FIXED_ANNUITY_TRADITIONAL_IRA = 53] = "FIXED_ANNUITY_TRADITIONAL_IRA", E[E.VARIABLE_ANNUITY_TRADITIONAL_IRA = 54] = "VARIABLE_ANNUITY_TRADITIONAL_IRA", E[E.SEPP_IRA = 55] = "SEPP_IRA", E[E.INHERITED_TRADITIONAL_IRA = 56] = "INHERITED_TRADITIONAL_IRA", E[E.FIXED_ANNUITY_ROTH_IRA = 57] = "FIXED_ANNUITY_ROTH_IRA", E[E.VARIABLE_ANNUITY_ROTH_IRA = 58] = "VARIABLE_ANNUITY_ROTH_IRA", E[E.INHERITED_ROTH_IRA = 59] = "INHERITED_ROTH_IRA", E[E.COVERDELL = 60] = "COVERDELL", E[E.ADVISORY_ACCOUNT = 61] = "ADVISORY_ACCOUNT", E[E.BROKERAGE_MARGIN = 62] = "BROKERAGE_MARGIN", E[E.CHARITABLE_GIFT_ACCOUNT = 63] = "CHARITABLE_GIFT_ACCOUNT", E[E.CHURCH_ACCOUNT = 64] = "CHURCH_ACCOUNT", E[E.CONSERVATORSHIP = 65] = "CONSERVATORSHIP", E[E.CUSTODIAL = 66] = "CUSTODIAL", E[E.DEFINED_BENEFIT_PLAN = 67] = "DEFINED_BENEFIT_PLAN", E[E.DEFINED_CONTRIBUTION_PLAN = 68] = "DEFINED_CONTRIBUTION_PLAN", E[E.EDUCATIONAL = 69] = "EDUCATIONAL", E[E.ESTATE = 70] = "ESTATE", E[E.EXECUTOR = 71] = "EXECUTOR", E[E.GROUP_RETIREMENT_SAVINGS_PLAN = 72] = "GROUP_RETIREMENT_SAVINGS_PLAN", E[E.GUARANTEED_INVESTMENT_CERTIFICATE = 73] = "GUARANTEED_INVESTMENT_CERTIFICATE", E[E.HRA = 74] = "HRA", E[E.INDEXED_ANNUITY = 75] = "INDEXED_ANNUITY", E[E.INVESTMENT_CLUB = 76] = "INVESTMENT_CLUB", E[E.IRREVOCABLE_TRUST = 77] = "IRREVOCABLE_TRUST", E[E.JOINT_TENANTS_BY_ENTIRITY = 78] = "JOINT_TENANTS_BY_ENTIRITY", E[E.JOINT_TENANTS_COMMUNITY_PROPERTY = 79] = "JOINT_TENANTS_COMMUNITY_PROPERTY", E[E.JOINT_TENANTS_IN_COMMON = 80] = "JOINT_TENANTS_IN_COMMON", E[E.JOINT_TENANTS_WITH_RIGHTS_OF_SURVIVORSHIP = 81] = "JOINT_TENANTS_WITH_RIGHTS_OF_SURVIVORSHIP", E[E.KEOUGH_PLAN = 82] = "KEOUGH_PLAN", E[E.LIFE_INCOME_FUND = 83] = "LIFE_INCOME_FUND", E[E.LIVING_TRUST = 84] = "LIVING_TRUST", E[E.LOCKED_IN_RETIREMENT_ACCOUNT = 85] = "LOCKED_IN_RETIREMENT_ACCOUNT", E[E.LOCKED_IN_RETIREMENT_INVESTMENT_FUND = 86] = "LOCKED_IN_RETIREMENT_INVESTMENT_FUND", E[E.LOCKED_IN_RETIREMENT_SAVINGS_ACCOUNT = 87] = "LOCKED_IN_RETIREMENT_SAVINGS_ACCOUNT", E[E.MONEY_PURCHASE_PLAN = 88] = "MONEY_PURCHASE_PLAN", E[E.PARTNERSHIP = 89] = "PARTNERSHIP", E[E.PLAN_409_A = 90] = "PLAN_409_A", E[E.PLAN_ROTH_403_B = 91] = "PLAN_ROTH_403_B", E[E.REGISTERED_DISABILITY_SAVINGS_PLAN = 92] = "REGISTERED_DISABILITY_SAVINGS_PLAN", E[E.REGISTERED_LOCKED_IN_SAVINGS_PLAN = 93] = "REGISTERED_LOCKED_IN_SAVINGS_PLAN", E[E.REGISTERED_PENSION_PLAN = 94] = "REGISTERED_PENSION_PLAN", E[E.REGISTERED_RETIREMENT_SAVINGS_PLAN = 95] = "REGISTERED_RETIREMENT_SAVINGS_PLAN", E[E.REVOCABLE_TRUST = 96] = "REVOCABLE_TRUST", E[E.ROTH_CONVERSION = 97] = "ROTH_CONVERSION", E[E.SOLE_PROPRIETORSHIP = 98] = "SOLE_PROPRIETORSHIP", E[E.SPOUSAL_IRA = 99] = "SPOUSAL_IRA", E[E.SPOUSAL_ROTH_IRA = 100] = "SPOUSAL_ROTH_IRA", E[E.TESTAMENTARY_TRUST = 101] = "TESTAMENTARY_TRUST", E[E.THRIFT_SAVINGS_PLAN = 102] = "THRIFT_SAVINGS_PLAN", E[E.INHERITED_ANNUITY = 103] = "INHERITED_ANNUITY", E[E.CORPORATE_ACCOUNT = 104] = "CORPORATE_ACCOUNT", E[E.LIMITED_LIABILITY_ACCOUNT = 105] = "LIMITED_LIABILITY_ACCOUNT", E[E.HSA_SAVINGS = 106] = "HSA_SAVINGS", E[E.HSA_CHECKING = 107] = "HSA_CHECKING", E))(lE || {}), OE = /* @__PURE__ */ ((E) => (E[E.REAL_ESTATE = 0] = "REAL_ESTATE", E[E.VEHICLE = 1] = "VEHICLE", E[E.ART = 2] = "ART", E[E.JEWELRY = 3] = "JEWELRY", E[E.FURNITURE = 4] = "FURNITURE", E[E.APPLIANCES = 5] = "APPLIANCES", E[E.COMPUTER = 6] = "COMPUTER", E[E.ELECTRONICS = 7] = "ELECTRONICS", E[E.SPORTS_EQUIPMENT = 8] = "SPORTS_EQUIPMENT", E[E.MISCELLANEOUS = 9] = "MISCELLANEOUS", E))(OE || {}), sE = /* @__PURE__ */ ((E) => (E[E.CREATED = 0] = "CREATED", E[E.PREVENTED = 1] = "PREVENTED", E[E.DENIED = 2] = "DENIED", E[E.CHALLENGED = 3] = "CHALLENGED", E[E.REJECTED = 4] = "REJECTED", E[E.LOCKED = 5] = "LOCKED", E[E.CONNECTED = 6] = "CONNECTED", E[E.IMPEDED = 7] = "IMPEDED", E[E.RECONNECTED = 8] = "RECONNECTED", E[E.DEGRADED = 9] = "DEGRADED", E[E.DISCONNECTED = 10] = "DISCONNECTED", E[E.DISCONTINUED = 11] = "DISCONTINUED", E[E.CLOSED = 12] = "CLOSED", E[E.DELAYED = 13] = "DELAYED", E[E.FAILED = 14] = "FAILED", E[E.UPDATED = 15] = "UPDATED", E[E.DISABLED = 16] = "DISABLED", E[E.IMPORTED = 17] = "IMPORTED", E[E.RESUMED = 18] = "RESUMED", E[E.EXPIRED = 19] = "EXPIRED", E[E.IMPAIRED = 20] = "IMPAIRED", E[E.PENDING = 21] = "PENDING", E))(sE || {});
26
+ const SE = [
27
+ 0,
28
+ 15,
29
+ 18
30
+ /* RESUMED */
31
+ ], LE = [
32
+ 3,
33
+ 4
34
+ /* REJECTED */
35
+ ], eE = [
36
+ 1,
37
+ 2,
38
+ 5,
39
+ 7,
40
+ 9,
41
+ 10,
42
+ 11,
43
+ 12,
44
+ 13,
45
+ 14,
46
+ 16,
47
+ 17,
48
+ 19,
49
+ 20
50
+ /* IMPAIRED */
51
+ ], nE = [...eE, ...LE];
52
+ var DE = /* @__PURE__ */ ((E) => (E.Connected = "Connected", E.Error = "Error", E.Processing = "Processing", E.RequiresMfa = "RequiresMfa", E))(DE || {});
53
+ const bE = {
54
+ 3: "Challenged",
55
+ 12: "Closed",
56
+ 9: "Degraded",
57
+ 13: "Delayed",
58
+ 2: "Denied",
59
+ 16: "Disabled",
60
+ 10: "Disconnected",
61
+ 11: "Discontinued",
62
+ 19: "Expired",
63
+ 14: "Failed",
64
+ 20: "Impaired",
65
+ 7: "Impeded",
66
+ 17: "Imported",
67
+ 5: "Locked",
68
+ 1: "Prevented",
69
+ 4: "Rejected"
70
+ }, CE = {
71
+ 0: "Any",
72
+ 9: "Cash",
73
+ 1: "Checking",
74
+ 12: "Checking Line of Credit",
75
+ 4: "Credit Card",
76
+ 13: "Digital Wallet",
77
+ 10: "Insurance",
78
+ 5: "Investment",
79
+ 6: "Line of Credit",
80
+ 3: "Loan",
81
+ 7: "Mortgage",
82
+ 11: "Prepaid",
83
+ 8: "Property",
84
+ 2: "Savings"
85
+ }, pE = {
86
+ 0: "account_balance",
87
+ 9: "monetization_on",
88
+ 1: "checkbook",
89
+ 12: "checkbook",
90
+ // Checking line of credit has the same icon as checking
91
+ 4: "credit_card",
92
+ 13: "wallet",
93
+ 10: "monitor_heart",
94
+ 5: "trending_up",
95
+ 6: "add_credit",
96
+ 3: "loans",
97
+ 7: "house",
98
+ 11: "credit_card",
99
+ 8: "key",
100
+ 2: "savings"
101
+ }, cE = {
102
+ 5: "bid_landscape"
103
+ }, yE = {
104
+ 0: "Real Estate",
105
+ 1: "Vehicle",
106
+ 2: "Art",
107
+ 3: "Jewelry",
108
+ 4: "Furniture",
109
+ 5: "Appliances",
110
+ 6: "Computer",
111
+ 7: "Electronics",
112
+ 8: "Sports Equipment",
113
+ 9: "Miscellaneous"
114
+ }, uE = {
115
+ 0: "home_work",
116
+ 1: "directions_car",
117
+ 2: "insert_photo",
118
+ 3: "diamond",
119
+ 4: "chair",
120
+ 5: "kitchen",
121
+ 6: "computer",
122
+ 7: "camera_alt",
123
+ 8: "sports_baseball",
124
+ 9: "monetization_on"
125
+ };
126
+ function dE(E, N) {
127
+ const I = E.user_name?.trim();
128
+ if (I) return I;
129
+ if (N?.allowNickname === !0) {
130
+ const i = E.nickname?.trim();
131
+ if (i) return i;
132
+ }
133
+ const R = E.name?.trim();
134
+ return R || E.feed_name?.trim() || "";
135
+ }
136
+ const V = (E, N) => E.reduce((I, R) => (I[R.guid] = N?.includes(R.guid), I), {}), PE = (E, N, I) => E.reduce((R, r) => {
137
+ const i = CE[r.account_type], O = dE(r, {
138
+ allowNickname: I?.appConfig.config?.show_account_nicknames_in_master
139
+ }), s = {
140
+ accountNumber: r.account_number,
141
+ name: `${O} ${r.is_closed ? `(${N})` : ""}`,
142
+ guid: r.guid
143
+ };
144
+ return Object.prototype.hasOwnProperty.call(R, i) ? R[i] = R[i].concat(s) : R[i] = [s], R;
145
+ }, {});
146
+ function AE(E) {
147
+ const { heldAccounts: N, externalAccounts: I } = E.reduce(
148
+ (R, r) => (r.member_is_managed_by_user ? R.externalAccounts.push(r) : R.heldAccounts.push(r), R),
149
+ { heldAccounts: [], externalAccounts: [] }
150
+ );
151
+ return {
152
+ heldAccounts: X(N),
153
+ externalAccounts: X(I)
154
+ };
155
+ }
156
+ function EI(E, N) {
157
+ const { heldAccounts: I, externalAccounts: R } = AE(E), r = I.slice(0, N);
158
+ return r.length < N && r.push(...R.slice(0, N - r.length)), r;
159
+ }
160
+ const UE = {
161
+ [G.CHECKING]: 1,
162
+ [G.SAVINGS]: 2,
163
+ [G.CREDIT_CARD]: 3
164
+ }, W = (E) => UE[E] ?? E + 100, X = (E) => E.sort((N, I) => {
165
+ const R = W(N.account_type), r = W(I.account_type), i = R - r;
166
+ if (i !== 0) return i;
167
+ const O = N.name ?? N.feed_name ?? "", s = I.name ?? I.feed_name ?? "";
168
+ return O.localeCompare(s);
169
+ }), Q = ({
170
+ accounts: E,
171
+ accountFilterButtonEl: N,
172
+ copy: I,
173
+ onAccountClick: R,
174
+ onAccountGroupClick: r,
175
+ onCancelClick: i,
176
+ onConnectAccountClick: O,
177
+ onFilterClick: s,
178
+ selectedOptions: C,
179
+ setSelectedOptions: d,
180
+ handleClose: A,
181
+ showAccountNumbers: l
182
+ }) => {
183
+ const { connect: e } = B(), P = Z(
184
+ () => PE(E, e.connection_statuses[12]),
185
+ [E]
186
+ ), U = E.length < 1, L = !!N, h = Object.values(C).every((a) => !!a);
187
+ return /* @__PURE__ */ _(
188
+ EE,
189
+ {
190
+ anchorEl: N,
191
+ anchorOrigin: {
192
+ vertical: "bottom",
193
+ horizontal: "left"
194
+ },
195
+ onClose: A,
196
+ open: L,
197
+ sx: { maxHeight: 400, maxWidth: U ? "100%" : 300 },
198
+ transformOrigin: {
199
+ vertical: "top",
200
+ horizontal: "left"
201
+ },
202
+ children: U ? /* @__PURE__ */ M(
203
+ F,
204
+ {
205
+ sx: {
206
+ alignItems: "center",
207
+ flexDirection: "column",
208
+ padding: 16,
209
+ textAlign: "center",
210
+ width: 320,
211
+ maxWidth: "100%"
212
+ },
213
+ children: [
214
+ /* @__PURE__ */ _(S, { size: 32 }),
215
+ /* @__PURE__ */ _(Y, { bold: !0, mt: 12, children: I.zeroStateTitle }),
216
+ /* @__PURE__ */ _(Y, { mt: 12, children: I.zeroStateDescription }),
217
+ O && /* @__PURE__ */ _(T, { onClick: O, children: I.zeroStateButton })
218
+ ]
219
+ }
220
+ ) : /* @__PURE__ */ M("form", { onSubmit: A, children: [
221
+ /* @__PURE__ */ M(
222
+ K,
223
+ {
224
+ className: "mx-cmn-account-options",
225
+ dense: !0,
226
+ id: "filter_accounts",
227
+ sx: {
228
+ overflow: "auto",
229
+ maxHeight: 300,
230
+ minWidth: 268,
231
+ "& .MuiFormControlLabel-root": {
232
+ m: 4,
233
+ borderRadius: 1,
234
+ width: "100%",
235
+ "&:hover": {
236
+ bgcolor: "background.default"
237
+ },
238
+ "&:focus-within": {
239
+ outline: "2px solid rgba(82, 138, 224, 0.8)",
240
+ outlineOffset: "2px"
241
+ },
242
+ "& .MuiFormControlLabel-label": {
243
+ fontSize: 13
244
+ }
245
+ }
246
+ },
247
+ children: [
248
+ /* @__PURE__ */ _(g, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ _(
249
+ k,
250
+ {
251
+ control: /* @__PURE__ */ _(
252
+ v,
253
+ {
254
+ checked: h,
255
+ "data-ui-test": `checked-${h}`,
256
+ disableRipple: !0,
257
+ onChange: () => {
258
+ const a = {};
259
+ Object.keys(C).forEach((m) => {
260
+ a[m] = !h;
261
+ }), d(a);
262
+ },
263
+ size: "small",
264
+ sx: {
265
+ "&.Mui-focusVisible": {
266
+ outline: "none",
267
+ boxShadow: "none"
268
+ }
269
+ }
270
+ }
271
+ ),
272
+ label: h ? I.unselectAllAccounts : I.selectAllAccounts
273
+ }
274
+ ) }),
275
+ Object.keys(P).map((a) => {
276
+ const m = P[a], H = m.every(
277
+ (D) => C[D.guid]
278
+ );
279
+ return /* @__PURE__ */ _(g, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ _(
280
+ K,
281
+ {
282
+ "aria-label": w(I.accountTypeAccounts, a),
283
+ className: "mx-cmn-account-options-group",
284
+ dense: !0,
285
+ subheader: /* @__PURE__ */ _(y, { disableGutters: !0, children: /* @__PURE__ */ _(
286
+ c,
287
+ {
288
+ "aria-label": w(I.toggleAccountTypeAccounts, a),
289
+ "aria-pressed": H,
290
+ disableGutters: !0,
291
+ onClick: () => r(
292
+ a,
293
+ P,
294
+ H
295
+ ),
296
+ sx: {
297
+ paddingLeft: 12,
298
+ minHeight: 40,
299
+ justifyContent: "left"
300
+ },
301
+ children: /* @__PURE__ */ _(
302
+ u,
303
+ {
304
+ primary: a,
305
+ primaryTypographyProps: { variant: "XSmall", fontWeight: "bold" }
306
+ }
307
+ )
308
+ }
309
+ ) }),
310
+ sx: { overflow: "auto", width: "100%" },
311
+ children: m.map((D) => {
312
+ const o = C[D.guid], q = `${D.name}${l && D.accountNumber ? ` *${D.accountNumber.slice(-4)}` : ""}`;
313
+ return /* @__PURE__ */ _(
314
+ g,
315
+ {
316
+ className: "mx-cmn-account-options-container",
317
+ disableGutters: !0,
318
+ disablePadding: !0,
319
+ children: /* @__PURE__ */ _(
320
+ k,
321
+ {
322
+ control: /* @__PURE__ */ _(
323
+ v,
324
+ {
325
+ checked: o,
326
+ "data-ui-test": `checked-${o}`,
327
+ disableRipple: !0,
328
+ id: D.guid,
329
+ onChange: () => {
330
+ R(D);
331
+ },
332
+ size: "small",
333
+ sx: {
334
+ "&.Mui-focusVisible": {
335
+ outline: "none",
336
+ boxShadow: "none"
337
+ }
338
+ }
339
+ }
340
+ ),
341
+ label: q
342
+ }
343
+ )
344
+ },
345
+ D.guid
346
+ );
347
+ })
348
+ }
349
+ ) }, a);
350
+ })
351
+ ]
352
+ }
353
+ ),
354
+ /* @__PURE__ */ M(F, { direction: "row", justifyContent: "flex-end", padding: 12, spacing: 16, children: [
355
+ /* @__PURE__ */ _(T, { onClick: i, variant: "outlined", children: I.cancelButton }),
356
+ /* @__PURE__ */ _(
357
+ T,
358
+ {
359
+ "aria-label": I.filterButtonAria,
360
+ color: "primary",
361
+ onClick: s,
362
+ variant: "contained",
363
+ children: I.filterButton
364
+ }
365
+ )
366
+ ] })
367
+ ] })
368
+ }
369
+ );
370
+ };
371
+ Q.displayName = "AccountFilterOptions";
372
+ const mE = ({
373
+ accounts: E,
374
+ copy: N,
375
+ onFilterClick: I,
376
+ onConnectAccountClick: R,
377
+ selectedAccountGuids: r,
378
+ showAccountNumbers: i,
379
+ sx: O = {},
380
+ variant: s = "outlined"
381
+ }) => {
382
+ const { isDesktop: C } = NE(), [d, A] = f.useState(null), [l, e] = f.useState(
383
+ V(E, r)
384
+ );
385
+ f.useEffect(() => {
386
+ e(V(E, r));
387
+ }, [E, r]);
388
+ const P = (L) => {
389
+ A(L.currentTarget);
390
+ }, U = () => {
391
+ A(null);
392
+ };
393
+ return /* @__PURE__ */ M(j, { className: "mx-cmn-account-filter", m: 4, sx: { ...O }, children: [
394
+ C ? /* @__PURE__ */ _(
395
+ T,
396
+ {
397
+ "aria-controls": "filter_accounts",
398
+ "aria-haspopup": !0,
399
+ "aria-label": N.title,
400
+ onClick: P,
401
+ startIcon: /* @__PURE__ */ _(x, { name: "filter_alt", size: 24 }),
402
+ sx: { p: 8, whiteSpace: "nowrap", minWidth: "max-content" },
403
+ variant: s,
404
+ children: N.accountFilterOptionsCopy.filterButton
405
+ }
406
+ ) : /* @__PURE__ */ _(b, { id: "filter-accounts", placement: "bottom", title: N.title, children: /* @__PURE__ */ _(
407
+ p,
408
+ {
409
+ "aria-controls": "filter_accounts",
410
+ "aria-describedby": "filter-accounts",
411
+ "aria-haspopup": !0,
412
+ "aria-label": N.title,
413
+ color: "primary",
414
+ onClick: P,
415
+ sx: { p: 8 },
416
+ children: /* @__PURE__ */ _(x, { name: "filter_alt", size: 24 })
417
+ }
418
+ ) }),
419
+ /* @__PURE__ */ _(
420
+ Q,
421
+ {
422
+ accountFilterButtonEl: d,
423
+ accounts: E,
424
+ copy: N.accountFilterOptionsCopy,
425
+ handleClose: U,
426
+ onAccountClick: (L) => {
427
+ e({ ...l, [L.guid]: !l[L.guid] });
428
+ },
429
+ onAccountGroupClick: (L, h, a) => {
430
+ const m = { ...l };
431
+ h[L].forEach((H) => {
432
+ m[H.guid] = !a;
433
+ }), e(m);
434
+ },
435
+ onCancelClick: () => {
436
+ e(V(E, r)), U();
437
+ },
438
+ onConnectAccountClick: R ? () => {
439
+ U(), R();
440
+ } : void 0,
441
+ onFilterClick: () => {
442
+ I(Object.keys(l).filter((L) => l[L])), U();
443
+ },
444
+ selectedOptions: l,
445
+ setSelectedOptions: e,
446
+ showAccountNumbers: i
447
+ }
448
+ )
449
+ ] });
450
+ }, II = mE, ME = ({ status: E = t.Loading }) => {
451
+ const { connect: N } = B();
452
+ return /* @__PURE__ */ _(
453
+ j,
454
+ {
455
+ sx: {
456
+ height: "calc(100% - 62px)",
457
+ position: "absolute",
458
+ width: "100%"
459
+ },
460
+ children: /* @__PURE__ */ M(F, { alignItems: "center", direction: "column", justifyContent: "center", sx: { height: "100%" }, children: [
461
+ E === t.Loading && /* @__PURE__ */ _(iE, { color: "primary", size: 48 }),
462
+ /* @__PURE__ */ _(
463
+ n,
464
+ {
465
+ sx: {
466
+ color: "grey.600",
467
+ marginTop: "16px"
468
+ },
469
+ children: E === t.Error ? N.oops : N.loading
470
+ }
471
+ )
472
+ ] })
473
+ }
474
+ );
475
+ }, z = $(ME);
476
+ var t = /* @__PURE__ */ ((E) => (E.Loading = "loading", E.Error = "error", E))(t || {}), hE = /* @__PURE__ */ ((E) => (E.Currency = "currency", E.Date = "date", E.Input = "input", E.Select = "select", E))(hE || {});
477
+ const J = "connect_widget", _I = "connections_widget", fE = ({
478
+ loadWidgetProps: E,
479
+ onClose: N,
480
+ showConnectWidget: I,
481
+ title: R
482
+ }) => {
483
+ let r;
484
+ const { refreshAccounts: i } = IE(), { loadWidget: O } = _E(), { connect: s } = B(), [C, d] = f.useState(!1), [A, l] = f.useState(!1), {
485
+ palette: { mode: e }
486
+ } = rE();
487
+ return f.useEffect(() => (I ? (d(!0), O({ mode: e, ...E }).then((P) => {
488
+ r = new RE({
489
+ container: `#${J}`,
490
+ style: {
491
+ height: "calc(100% - 62px)",
492
+ maxWidth: "450px",
493
+ position: "absolute",
494
+ width: "100%"
495
+ },
496
+ url: P.url,
497
+ onSsoUrlLoadError: () => {
498
+ d(!1), l(!0);
499
+ },
500
+ onLoad: () => {
501
+ d(!1), l(!1);
502
+ }
503
+ });
504
+ })) : (d(!1), l(!1)), () => {
505
+ r?.unmount();
506
+ }), [I]), /* @__PURE__ */ _(
507
+ aE,
508
+ {
509
+ ariaLabelClose: s.close_manage_connection_aria,
510
+ isOpen: I,
511
+ onClose: () => {
512
+ N(), i();
513
+ },
514
+ title: R,
515
+ children: /* @__PURE__ */ M("div", { id: J, children: [
516
+ A && /* @__PURE__ */ _(z, { status: t.Error }),
517
+ C && /* @__PURE__ */ _(z, { status: t.Loading })
518
+ ] })
519
+ }
520
+ );
521
+ }, NI = $(fE);
522
+ export {
523
+ G as A,
524
+ _I as C,
525
+ eE as E,
526
+ hE as F,
527
+ t as M,
528
+ nE as N,
529
+ OE as P,
530
+ bE as S,
531
+ pE as a,
532
+ uE as b,
533
+ z as c,
534
+ DE as d,
535
+ cE as e,
536
+ CE as f,
537
+ dE as g,
538
+ SE as h,
539
+ LE as i,
540
+ II as j,
541
+ NI as k,
542
+ EI as l,
543
+ sE as m,
544
+ lE as n,
545
+ yE as o
546
+ };