@mx-cartographer/experiences 7.6.15 → 7.7.0-alpha.bb1
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/CHANGELOG.md +0 -12
- package/dist/{Account-_uxi_9nO.mjs → Account-B6i0x4zD.mjs} +1 -1
- package/dist/Account-Cp4uT2pE.mjs +118 -0
- package/dist/AccountApi-DgZ8ILj1.mjs +19 -0
- package/dist/{AccountDetailsHeader-DQ7XLdz1.mjs → AccountDetailsHeader-BQnrDweD.mjs} +15 -16
- package/dist/AccountDisplayName-CO7z3v99.mjs +11 -0
- package/dist/{AccountFields-BQPsS98r.mjs → AccountFields-C1f8f59u.mjs} +7 -6
- package/dist/{AccountListItem-Di1Yze76.mjs → AccountListItem-EQj72dmt.mjs} +8 -8
- package/dist/AccountStore-Cd8qrrbb.mjs +288 -0
- package/dist/Accounts-DBJHvSZk.mjs +27 -0
- package/dist/{BudgetUtil-BmZXkL0C.mjs → BudgetUtil-BAgMwIPn.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-DywvMfPe.mjs → CategorySelectorDrawer-DziMth8p.mjs} +11 -12
- package/dist/CategoryStore-1pMmsDQB.mjs +186 -0
- package/dist/CategoryUtil-meuejJqP.mjs +80 -0
- package/dist/{ConnectionsDrawer-XlO1q6PK.mjs → ConnectionsDrawer-eVEWlg9f.mjs} +2 -2
- package/dist/{CurrencyInput-itK0R3wV.mjs → CurrencyInput-k0MTsb3v.mjs} +1 -1
- package/dist/{DebtsStore-BVMbvqHR.mjs → DebtsStore-BX6npZOf.mjs} +1 -1
- package/dist/{ExportCsvAction-HK5CeZWR.mjs → ExportCsvAction-DhE9olsw.mjs} +3 -3
- package/dist/GlobalAccountFilter-D5W5uJO3.mjs +318 -0
- package/dist/{GoalStore-DaQzJCFj.mjs → GoalStore-CR2t078O.mjs} +160 -116
- package/dist/{Help-DODxp9uw.mjs → Help-DM5yDMUD.mjs} +17 -18
- package/dist/{LineChart-BF4QA-Lx.mjs → LineChart-CZ2mXCRU.mjs} +1 -1
- package/dist/{ListItemAction-CU42h39I.mjs → ListItemAction-Cmc4Ju7g.mjs} +1 -1
- package/dist/Loader-CTlCnT5j.mjs +97 -0
- package/dist/{ManageIncome-1FRPmZFq.mjs → ManageIncome-CBmdkG6r.mjs} +106 -106
- package/dist/{MicroWidgetContainer-B2hO9rOG.mjs → MicroWidgetContainer-CIActpPF.mjs} +1 -1
- package/dist/{MiniWidgetContainer-98-hKFqm.mjs → MiniWidgetContainer-Dw7fDSjS.mjs} +1 -1
- package/dist/NetWorthStore-BEV3JD7w.mjs +163 -0
- package/dist/{NotificationSettings-D4Vh3z8I.mjs → NotificationSettings-C-WBUPtb.mjs} +24 -25
- package/dist/{NotificationStore-CDX_kqHa.mjs → NotificationStore-Ck2KdNmT.mjs} +22 -14
- package/dist/{OriginalBalanceAction-ChGGq5AH.mjs → OriginalBalanceAction-CtAyE05P.mjs} +3 -3
- package/dist/{RecurringSettings-z0XUW9qx.mjs → RecurringSettings-DHqi7SWg.mjs} +17 -17
- package/dist/{RecurringTransactions-Bf4lX0Cn.mjs → RecurringTransactions-YQcbogIO.mjs} +3 -3
- package/dist/{RecurringTransactionsStore-Caf1cq4v.mjs → RecurringTransactionsStore-BXxP_Aiy.mjs} +91 -81
- package/dist/SkeletonLoader-BaNboJjD.mjs +38 -0
- package/dist/{SpendingLegend-BuDjbr2d.mjs → SpendingLegend-BiYBGarP.mjs} +59 -59
- package/dist/{TransactionDetails-BKoBKUNp.mjs → TransactionDetails-CvOJsYX6.mjs} +16 -17
- package/dist/TransactionStore-DcsITl72.mjs +703 -0
- package/dist/{User-LJpEwPtn.mjs → User-Byn3qkWJ.mjs} +1 -1
- package/dist/{ViewMoreMicroCard-DwR0v_ll.mjs → ViewMoreMicroCard-DDviyuuC.mjs} +2 -2
- package/dist/WidgetContainer-Dw95CQIX.mjs +582 -0
- package/dist/accounts/index.es.js +361 -355
- package/dist/accounts/stores/AccountStore.d.ts +30 -22
- package/dist/accounts/utils/Accounts.d.ts +2 -1
- package/dist/analytics/index.es.js +8 -9
- package/dist/budgets/index.es.js +598 -595
- package/dist/budgets/store/BudgetsStore.d.ts +1 -0
- package/dist/cashflow/index.es.js +422 -436
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +8 -2
- package/dist/categories/util/CategoryUtil.d.ts +3 -2
- package/dist/common/components/GlobalAccountFilter.d.ts +11 -0
- package/dist/common/components/SkeletonLoader.d.ts +7 -0
- package/dist/common/components/WidgetContainer.d.ts +7 -6
- package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +7 -0
- package/dist/common/components/index.d.ts +1 -1
- package/dist/common/hooks/useAriaLive.d.ts +1 -1
- package/dist/common/index.es.js +938 -634
- package/dist/common/stores/AppDataStore.d.ts +3 -1
- package/dist/common/stores/GlobalCopyStore.d.ts +0 -1
- package/dist/common/stores/GlobalStore.d.ts +3 -3
- package/dist/common/stores/GlobalUiStore.d.ts +9 -6
- package/dist/common/stores/UserStore.d.ts +3 -2
- package/dist/common/types/Account.d.ts +9 -6
- package/dist/common/types/localization/MicroInsightsCopy.d.ts +0 -1
- package/dist/dashboard/index.es.js +84 -116
- package/dist/debts/index.es.js +493 -490
- package/dist/{exportTransactionsToCSV-BrTYdSgJ.mjs → exportTransactionsToCSV-DgJVlkJP.mjs} +1 -1
- package/dist/finstrong/index.es.js +1227 -1256
- package/dist/goals/index.es.js +561 -553
- package/dist/goals/stores/GoalStore.d.ts +18 -4
- package/dist/help/index.es.js +11 -12
- package/dist/investments/index.es.js +344 -340
- package/dist/investments/stores/HoldingStore.d.ts +1 -0
- package/dist/merchants/index.es.js +12 -13
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/components/NetWorthChart.d.ts +3 -2
- package/dist/networth/components/NetWorthList.d.ts +3 -3
- package/dist/networth/index.es.js +407 -420
- package/dist/networth/stores/NetWorthStore.d.ts +18 -9
- package/dist/networth/utils/NetWorthUtils.d.ts +2 -2
- package/dist/notifications/index.es.js +90 -92
- package/dist/notifications/stores/NotificationStore.d.ts +3 -1
- package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +3 -0
- package/dist/recurringtransactions/index.es.js +542 -562
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +4 -2
- package/dist/settings/index.es.js +44 -44
- package/dist/spending/index.es.js +267 -285
- package/dist/transactions/index.es.js +235 -231
- package/dist/transactions/stores/TransactionStore.d.ts +26 -78
- package/dist/transactions/stores/UiStore.d.ts +0 -2
- package/dist/trends/index.es.js +700 -689
- package/dist/{useAccountDisplayName-Bh0NAiSw.mjs → useAccountDisplayName-C3OUj3R_.mjs} +2 -2
- package/dist/{useInsightsEnabled-B7dxpDrX.mjs → useInsightsEnabled-SrR3a9-5.mjs} +1 -1
- package/dist/{useWidgetLoadTimer-hIOioiKx.mjs → useWidgetLoadTimer-BLzUUy8f.mjs} +1 -1
- package/package.json +3 -3
- package/dist/AccountStore-CJH6KiEh.mjs +0 -260
- package/dist/Accounts-CrbI2KoT.mjs +0 -9
- package/dist/CategoryStore-Cnw9yUys.mjs +0 -186
- package/dist/CategoryUtil-DZflYFam.mjs +0 -78
- package/dist/ConnectDrawer-CPvaP8lk.mjs +0 -545
- package/dist/Loader-DUaFpDGv.mjs +0 -24
- package/dist/NetWorthStore-BRdkznL_.mjs +0 -150
- package/dist/TransactionStore-DJwPaZuM.mjs +0 -677
- package/dist/WidgetContainer-COyiIVSd.mjs +0 -600
- package/dist/hooks-ZMp65DFz.mjs +0 -77
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
## [7.6.15] - 01-19-2026
|
|
2
|
-
|
|
3
|
-
- **FIXED** - `Finstrong` KeyIndicators Zero State Style
|
|
4
|
-
|
|
5
|
-
## [7.6.14] - 01-19-2026
|
|
6
|
-
|
|
7
|
-
- **FIXED** - Finstrong Header Dimensions | Finstrong Score Card Styling | Issues Fixed
|
|
8
|
-
|
|
9
|
-
## [7.6.13] - 01-19-2026
|
|
10
|
-
|
|
11
|
-
- **UPDATED** - Fixes for `Finstrong` onboarding and sticky footer
|
|
12
|
-
|
|
13
1
|
## [7.6.12] - 01-16-2026
|
|
14
2
|
|
|
15
3
|
- **UPDATED** - Focus style for goal status cards
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
var I = /* @__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))(I || {}), N = /* @__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))(N || {}), _ = /* @__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))(_ || {}), R = /* @__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))(R || {});
|
|
2
|
+
const C = [
|
|
3
|
+
0,
|
|
4
|
+
15,
|
|
5
|
+
18
|
|
6
|
+
/* RESUMED */
|
|
7
|
+
], O = [
|
|
8
|
+
3,
|
|
9
|
+
4
|
|
10
|
+
/* REJECTED */
|
|
11
|
+
], L = [
|
|
12
|
+
1,
|
|
13
|
+
2,
|
|
14
|
+
5,
|
|
15
|
+
7,
|
|
16
|
+
9,
|
|
17
|
+
10,
|
|
18
|
+
11,
|
|
19
|
+
12,
|
|
20
|
+
13,
|
|
21
|
+
14,
|
|
22
|
+
16,
|
|
23
|
+
17,
|
|
24
|
+
19,
|
|
25
|
+
20
|
|
26
|
+
/* IMPAIRED */
|
|
27
|
+
], P = [...L, ...O];
|
|
28
|
+
var D = /* @__PURE__ */ ((E) => (E.Connected = "Connected", E.Error = "Error", E.Processing = "Processing", E.RequiresMfa = "RequiresMfa", E))(D || {});
|
|
29
|
+
const U = {
|
|
30
|
+
3: "Challenged",
|
|
31
|
+
12: "Closed",
|
|
32
|
+
9: "Degraded",
|
|
33
|
+
13: "Delayed",
|
|
34
|
+
2: "Denied",
|
|
35
|
+
16: "Disabled",
|
|
36
|
+
10: "Disconnected",
|
|
37
|
+
11: "Discontinued",
|
|
38
|
+
19: "Expired",
|
|
39
|
+
14: "Failed",
|
|
40
|
+
20: "Impaired",
|
|
41
|
+
7: "Impeded",
|
|
42
|
+
17: "Imported",
|
|
43
|
+
5: "Locked",
|
|
44
|
+
1: "Prevented",
|
|
45
|
+
4: "Rejected"
|
|
46
|
+
}, A = {
|
|
47
|
+
0: "Any",
|
|
48
|
+
9: "Cash",
|
|
49
|
+
1: "Checking",
|
|
50
|
+
12: "Checking Line of Credit",
|
|
51
|
+
4: "Credit Card",
|
|
52
|
+
13: "Digital Wallet",
|
|
53
|
+
10: "Insurance",
|
|
54
|
+
5: "Investment",
|
|
55
|
+
6: "Line of Credit",
|
|
56
|
+
3: "Loan",
|
|
57
|
+
7: "Mortgage",
|
|
58
|
+
11: "Prepaid",
|
|
59
|
+
8: "Property",
|
|
60
|
+
2: "Savings"
|
|
61
|
+
}, M = {
|
|
62
|
+
0: "account_balance",
|
|
63
|
+
9: "monetization_on",
|
|
64
|
+
1: "checkbook",
|
|
65
|
+
12: "checkbook",
|
|
66
|
+
// Checking line of credit has the same icon as checking
|
|
67
|
+
4: "credit_card",
|
|
68
|
+
13: "wallet",
|
|
69
|
+
10: "monitor_heart",
|
|
70
|
+
5: "trending_up",
|
|
71
|
+
6: "add_credit",
|
|
72
|
+
3: "loans",
|
|
73
|
+
7: "house",
|
|
74
|
+
11: "credit_card",
|
|
75
|
+
8: "key",
|
|
76
|
+
2: "savings"
|
|
77
|
+
}, H = {
|
|
78
|
+
5: "bid_landscape"
|
|
79
|
+
}, T = {
|
|
80
|
+
0: "Real Estate",
|
|
81
|
+
1: "Vehicle",
|
|
82
|
+
2: "Art",
|
|
83
|
+
3: "Jewelry",
|
|
84
|
+
4: "Furniture",
|
|
85
|
+
5: "Appliances",
|
|
86
|
+
6: "Computer",
|
|
87
|
+
7: "Electronics",
|
|
88
|
+
8: "Sports Equipment",
|
|
89
|
+
9: "Miscellaneous"
|
|
90
|
+
}, G = {
|
|
91
|
+
0: "home_work",
|
|
92
|
+
1: "directions_car",
|
|
93
|
+
2: "insert_photo",
|
|
94
|
+
3: "diamond",
|
|
95
|
+
4: "chair",
|
|
96
|
+
5: "kitchen",
|
|
97
|
+
6: "computer",
|
|
98
|
+
7: "camera_alt",
|
|
99
|
+
8: "sports_baseball",
|
|
100
|
+
9: "monetization_on"
|
|
101
|
+
};
|
|
102
|
+
export {
|
|
103
|
+
I as A,
|
|
104
|
+
D as C,
|
|
105
|
+
L as E,
|
|
106
|
+
O as M,
|
|
107
|
+
P as N,
|
|
108
|
+
_ as P,
|
|
109
|
+
U as S,
|
|
110
|
+
M as a,
|
|
111
|
+
G as b,
|
|
112
|
+
C as c,
|
|
113
|
+
H as d,
|
|
114
|
+
A as e,
|
|
115
|
+
N as f,
|
|
116
|
+
R as g,
|
|
117
|
+
T as h
|
|
118
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { F as s, A as e } from "./Fetch-DecPFeGU.mjs";
|
|
2
|
+
class r {
|
|
3
|
+
fetchInstance;
|
|
4
|
+
constructor(t, c, n) {
|
|
5
|
+
this.fetchInstance = new s(t, c, void 0, n);
|
|
6
|
+
}
|
|
7
|
+
createAccount = async (t) => this.fetchInstance.post(e.ACCOUNTS, t).then((c) => c.account).catch((c) => c);
|
|
8
|
+
deleteAccount = async (t) => this.fetchInstance.delete(`${e.ACCOUNTS}/${t}`).catch((c) => c);
|
|
9
|
+
getAccounts = async () => this.fetchInstance.get(e.ACCOUNTS).then((t) => t.accounts).catch((t) => t);
|
|
10
|
+
getInstitutions = async () => this.fetchInstance.get(e.INSTITUTIONS).then((t) => t).catch((t) => t);
|
|
11
|
+
getMembers = async () => this.fetchInstance.get(e.MEMBERS).then((t) => t.members).catch((t) => t);
|
|
12
|
+
getMonthlyAccountBalances = async (t) => this.fetchInstance.get(`${e.ACCOUNTS}/${t}/monthly_account_balances`).then((c) => c.monthly_account_balances).catch((c) => c);
|
|
13
|
+
mergeAccounts = async (t) => this.fetchInstance.put(`${e.ACCOUNTS}/merge`, { accounts: t }).then((c) => c).catch((c) => c);
|
|
14
|
+
refreshAllMembers = async () => this.fetchInstance.get(`${e.MEMBERS}/refresh_all`).then((t) => t).catch((t) => t);
|
|
15
|
+
updateAccount = async (t) => this.fetchInstance.put(`${e.ACCOUNTS}/${t.guid}`, t).then((c) => c.account).catch((c) => c);
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
r as A
|
|
19
|
+
};
|
|
@@ -3,15 +3,14 @@ import { observer as f } from "mobx-react-lite";
|
|
|
3
3
|
import s from "@mui/material/Stack";
|
|
4
4
|
import { H3 as T, InstitutionLogo as x, Text as l, H2 as D } from "@mxenabled/mxui";
|
|
5
5
|
import p from "react";
|
|
6
|
-
import { G as N, d as C, m as P, f as G,
|
|
7
|
-
import { g as
|
|
8
|
-
import { A as r } from "./
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { u as j } from "./useAccountDisplayName-Bh0NAiSw.mjs";
|
|
6
|
+
import { G as N, d as C, m as P, f as G, L as O, u as R } from "./Loader-CTlCnT5j.mjs";
|
|
7
|
+
import { g as w } from "./AccountFields-C1f8f59u.mjs";
|
|
8
|
+
import { A as r } from "./Account-Cp4uT2pE.mjs";
|
|
9
|
+
import v from "@mui/material/Card";
|
|
10
|
+
import L from "@mui/material/CardContent";
|
|
11
|
+
import H from "@mui/material/CardHeader";
|
|
12
|
+
import { I as M, P as U, S as Y } from "./Account-B6i0x4zD.mjs";
|
|
13
|
+
import { u as j } from "./useAccountDisplayName-C3OUj3R_.mjs";
|
|
15
14
|
import { f as z } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
16
15
|
const _ = () => {
|
|
17
16
|
if (!p.useContext(N))
|
|
@@ -37,8 +36,8 @@ const _ = () => {
|
|
|
37
36
|
o && n([d]).finally(() => {
|
|
38
37
|
m(!0);
|
|
39
38
|
});
|
|
40
|
-
}, [o, d]), !o || !u ? /* @__PURE__ */ t(
|
|
41
|
-
|
|
39
|
+
}, [o, d]), !o || !u ? /* @__PURE__ */ t(O, {}) : /* @__PURE__ */ a(
|
|
40
|
+
v,
|
|
42
41
|
{
|
|
43
42
|
sx: {
|
|
44
43
|
"& .MuiCardContent-root:last-child": {
|
|
@@ -47,8 +46,8 @@ const _ = () => {
|
|
|
47
46
|
...i
|
|
48
47
|
},
|
|
49
48
|
children: [
|
|
50
|
-
/* @__PURE__ */ t(
|
|
51
|
-
/* @__PURE__ */ t(
|
|
49
|
+
/* @__PURE__ */ t(H, { sx: { pb: 0 }, title: /* @__PURE__ */ t(T, { sx: { pb: 4 }, children: c }) }),
|
|
50
|
+
/* @__PURE__ */ t(L, { sx: { p: 0 }, children: e ? /* @__PURE__ */ t(e, {}) : null })
|
|
52
51
|
]
|
|
53
52
|
}
|
|
54
53
|
);
|
|
@@ -56,7 +55,7 @@ const _ = () => {
|
|
|
56
55
|
customDetailsChart: i,
|
|
57
56
|
ChartComponent: e
|
|
58
57
|
}) => {
|
|
59
|
-
const { institutions: c } = C(), { selectedAccount: n } = _(), { accounts: o } =
|
|
58
|
+
const { institutions: c } = C(), { selectedAccount: n } = _(), { accounts: o } = R(), { firstSubtitle: d, firstValue: u, hasAvailableBalance: m, secondSubtitle: h, secondValue: b } = w(n, o), A = c.find(
|
|
60
59
|
(I) => I.guid === n?.institution_guid
|
|
61
60
|
), S = [
|
|
62
61
|
...M,
|
|
@@ -88,8 +87,8 @@ const _ = () => {
|
|
|
88
87
|
] }),
|
|
89
88
|
S && /* @__PURE__ */ t(s, { "aria-label": E, role: "img", children: i || /* @__PURE__ */ t(F, { ChartComponent: e, header: y }) })
|
|
90
89
|
] });
|
|
91
|
-
},
|
|
90
|
+
}, st = f(V);
|
|
92
91
|
export {
|
|
93
|
-
|
|
92
|
+
st as A,
|
|
94
93
|
_ as u
|
|
95
94
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { Icon as p, Text as y } from "@mxenabled/mxui";
|
|
3
|
-
import {
|
|
4
|
-
import { i as T, u as D, a as A, b as g, c as O } from "./Accounts-
|
|
3
|
+
import { A as d, a as v, P as h, b as F } from "./Account-Cp4uT2pE.mjs";
|
|
4
|
+
import { i as T, u as D, a as A, b as g, c as O } from "./Accounts-DBJHvSZk.mjs";
|
|
5
|
+
import { F as m } from "./GlobalAccountFilter-D5W5uJO3.mjs";
|
|
5
6
|
import { f as _, i as b, a as N, b as S } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
6
7
|
import { b as i } from "./Localization-2MODESHW.mjs";
|
|
7
8
|
import { f as o, D as f } from "./Dialog-B4PI-_bL.mjs";
|
|
8
|
-
const
|
|
9
|
+
const x = (l, e) => {
|
|
9
10
|
const r = [
|
|
10
11
|
{
|
|
11
12
|
event: "account_details_click_account_name",
|
|
@@ -128,12 +129,12 @@ const w = (l, e) => {
|
|
|
128
129
|
secondValue: n,
|
|
129
130
|
hasAvailableBalance: s
|
|
130
131
|
};
|
|
131
|
-
},
|
|
132
|
+
}, B = (l, e) => l.reduce((a, t) => {
|
|
132
133
|
const s = C(t, e).firstValue || 0;
|
|
133
134
|
return a + s;
|
|
134
135
|
}, 0);
|
|
135
136
|
export {
|
|
136
|
-
|
|
137
|
-
|
|
137
|
+
x as a,
|
|
138
|
+
B as b,
|
|
138
139
|
C as g
|
|
139
140
|
};
|
|
@@ -4,16 +4,16 @@ import I from "@mui/material/Badge";
|
|
|
4
4
|
import m from "@mui/material/Box";
|
|
5
5
|
import S from "@mui/material/ListItem";
|
|
6
6
|
import v from "@mui/material/ListItemAvatar";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
7
|
+
import C from "@mui/material/ListItemButton";
|
|
8
|
+
import _ from "@mui/material/ListItemText";
|
|
9
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-
|
|
14
|
-
import { u as X } from "./useAccountDisplayName-
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
13
|
+
import { g as T } from "./AccountFields-C1f8f59u.mjs";
|
|
14
|
+
import { u as X } from "./useAccountDisplayName-C3OUj3R_.mjs";
|
|
15
|
+
import { u as $ } from "./Loader-CTlCnT5j.mjs";
|
|
16
|
+
import { C as d } from "./Account-Cp4uT2pE.mjs";
|
|
17
17
|
import { f as k } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
18
18
|
const w = {
|
|
19
19
|
gridRow: 1,
|
|
@@ -45,7 +45,7 @@ const w = {
|
|
|
45
45
|
}
|
|
46
46
|
) }),
|
|
47
47
|
/* @__PURE__ */ e(
|
|
48
|
-
|
|
48
|
+
_,
|
|
49
49
|
{
|
|
50
50
|
disableTypography: !0,
|
|
51
51
|
primary: /* @__PURE__ */ r(
|
|
@@ -81,7 +81,7 @@ const w = {
|
|
|
81
81
|
{
|
|
82
82
|
sx: { backgroundColor: "background.paper", color: t.is_closed ? "grey.700" : "" },
|
|
83
83
|
...c,
|
|
84
|
-
children: s ? /* @__PURE__ */ e(
|
|
84
|
+
children: s ? /* @__PURE__ */ e(C, { alignItems: "flex-start", onClick: s, sx: { px: 24 }, children: a }) : a
|
|
85
85
|
}
|
|
86
86
|
);
|
|
87
87
|
}, Z = b(M);
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import { g as m } from "./AccountDisplayName-CO7z3v99.mjs";
|
|
2
|
+
import { A as n, e as _, f as u } from "./Account-Cp4uT2pE.mjs";
|
|
3
|
+
import { makeAutoObservable as g, runInAction as d } from "mobx";
|
|
4
|
+
import { i as f } from "./User-Byn3qkWJ.mjs";
|
|
5
|
+
import { A as l } from "./AccountApi-DgZ8ILj1.mjs";
|
|
6
|
+
import { d as y } from "./Accounts-DBJHvSZk.mjs";
|
|
7
|
+
const T = (o, t) => o.reduce((e, s) => (e[s.guid] = t?.includes(s.guid), e), {}), M = (o, t, e) => o.reduce((s, c) => {
|
|
8
|
+
const i = _[c.account_type], r = m(c, {
|
|
9
|
+
allowNickname: e?.appConfig.config?.show_account_nicknames_in_master
|
|
10
|
+
}), a = {
|
|
11
|
+
accountNumber: c.account_number,
|
|
12
|
+
name: `${r} ${c.is_closed ? `(${t})` : ""}`,
|
|
13
|
+
guid: c.guid
|
|
14
|
+
};
|
|
15
|
+
return Object.prototype.hasOwnProperty.call(s, i) ? s[i] = s[i].concat(a) : s[i] = [a], s;
|
|
16
|
+
}, {});
|
|
17
|
+
function b(o) {
|
|
18
|
+
const { heldAccounts: t, externalAccounts: e } = o.reduce(
|
|
19
|
+
(s, c) => (c.member_is_managed_by_user ? s.externalAccounts.push(c) : s.heldAccounts.push(c), s),
|
|
20
|
+
{ heldAccounts: [], externalAccounts: [] }
|
|
21
|
+
);
|
|
22
|
+
return {
|
|
23
|
+
heldAccounts: A(t),
|
|
24
|
+
externalAccounts: A(e)
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function x(o, t) {
|
|
28
|
+
const { heldAccounts: e, externalAccounts: s } = b(o), c = e.slice(0, t);
|
|
29
|
+
return c.length < t && c.push(...s.slice(0, t - c.length)), c;
|
|
30
|
+
}
|
|
31
|
+
const I = {
|
|
32
|
+
[n.CHECKING]: 1,
|
|
33
|
+
[n.SAVINGS]: 2,
|
|
34
|
+
[n.CREDIT_CARD]: 3
|
|
35
|
+
}, h = (o) => I[o] ?? o + 100, A = (o) => o.sort((t, e) => {
|
|
36
|
+
const s = h(t.account_type), c = h(e.account_type), i = s - c;
|
|
37
|
+
if (i !== 0) return i;
|
|
38
|
+
const r = t.name ?? t.feed_name ?? "", a = e.name ?? e.feed_name ?? "";
|
|
39
|
+
return r.localeCompare(a);
|
|
40
|
+
});
|
|
41
|
+
class E {
|
|
42
|
+
isLoading = !1;
|
|
43
|
+
selectedAccount = {};
|
|
44
|
+
selectedMember = {};
|
|
45
|
+
constructor() {
|
|
46
|
+
g(this);
|
|
47
|
+
}
|
|
48
|
+
setIsLoading = (t) => this.isLoading = t;
|
|
49
|
+
setSelectedAccount = (t) => this.selectedAccount = t;
|
|
50
|
+
setSelectedMember = (t) => this.selectedMember = t;
|
|
51
|
+
}
|
|
52
|
+
class R {
|
|
53
|
+
globalStore;
|
|
54
|
+
api = new l("/", "");
|
|
55
|
+
accounts = [];
|
|
56
|
+
accountsLoaded = !1;
|
|
57
|
+
accountsLoading = !1;
|
|
58
|
+
institutions = [];
|
|
59
|
+
institutionsLoaded = !1;
|
|
60
|
+
institutionsLoading = !1;
|
|
61
|
+
members = [];
|
|
62
|
+
membersLoaded = !1;
|
|
63
|
+
membersLoading = !1;
|
|
64
|
+
uiStore;
|
|
65
|
+
constructor(t) {
|
|
66
|
+
this.globalStore = t, this.uiStore = new E(), this.api = new l(t.endpoint, t.sessionToken, t.onError), g(this);
|
|
67
|
+
}
|
|
68
|
+
loadAccountData = async () => {
|
|
69
|
+
await Promise.all([this.loadAccounts(), this.loadMembers(), this.loadInstitutions()]);
|
|
70
|
+
};
|
|
71
|
+
get isAccountDataLoaded() {
|
|
72
|
+
return this.accountsLoaded && this.membersLoaded && this.institutionsLoaded;
|
|
73
|
+
}
|
|
74
|
+
get detailedAccounts() {
|
|
75
|
+
const t = this.globalStore.userStore.userFeatures, e = f(t, "MD_EXCLUDE_EXTERNAL_ACCOUNTS");
|
|
76
|
+
return y(this.accounts, this.institutions, this.members, e);
|
|
77
|
+
}
|
|
78
|
+
get accountsByTypeMap() {
|
|
79
|
+
return this.detailedAccounts.reduce((t, e) => {
|
|
80
|
+
const s = e.account_type;
|
|
81
|
+
let c = t.get(s);
|
|
82
|
+
return c || (c = []), c.push(e), t.set(s, c), t;
|
|
83
|
+
}, /* @__PURE__ */ new Map());
|
|
84
|
+
}
|
|
85
|
+
get cashAccounts() {
|
|
86
|
+
return this.detailedAccounts.filter(
|
|
87
|
+
(t) => t.account_type === n.CASH || t.account_type === n.CHECKING || t.account_type === n.PREPAID || t.account_type === n.SAVINGS || t.account_type === n.CHECKING_LINE_OF_CREDIT
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
get cashBalance() {
|
|
91
|
+
return this.cashAccounts.reduce((t, e) => t + (e?.balance || 0), 0);
|
|
92
|
+
}
|
|
93
|
+
get checkingAccounts() {
|
|
94
|
+
return this.detailedAccounts.filter((t) => t.account_type === n.CHECKING);
|
|
95
|
+
}
|
|
96
|
+
get debtAccounts() {
|
|
97
|
+
return this.detailedAccounts.filter(
|
|
98
|
+
(t) => t.account_type === n.CREDIT_CARD || t.account_type === n.LOAN || t.account_type === n.MORTGAGE || t.account_type === n.LINE_OF_CREDIT || t.account_type === n.CHECKING_LINE_OF_CREDIT
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
get finstrongAccounts() {
|
|
102
|
+
const t = /* @__PURE__ */ new Set([
|
|
103
|
+
n.CHECKING,
|
|
104
|
+
n.SAVINGS,
|
|
105
|
+
n.CREDIT_CARD,
|
|
106
|
+
n.INVESTMENT
|
|
107
|
+
]);
|
|
108
|
+
return this.detailedAccounts.filter((e) => t.has(e.account_type));
|
|
109
|
+
}
|
|
110
|
+
get investmentAccounts() {
|
|
111
|
+
return this.detailedAccounts.filter(
|
|
112
|
+
(t) => t.account_type === n.INVESTMENT
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
get savingsAccounts() {
|
|
116
|
+
return this.detailedAccounts.filter((t) => t.account_type === n.SAVINGS);
|
|
117
|
+
}
|
|
118
|
+
get retirementAccounts() {
|
|
119
|
+
return this.detailedAccounts.filter(
|
|
120
|
+
(t) => t.account_type === n.INVESTMENT || t.account_type === n.SAVINGS || t.account_type === n.CHECKING || t.account_type === n.CASH || t.account_type === n.PROPERTY || t.account_type === n.INSURANCE && (t.account_subtype === u.WHOLE_LIFE || t.account_subtype === u.UNIVERSAL_LIFE || t.account_subtype === u.VARIABLE_UNIVERSAL_LIFE)
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
get visibleAccounts() {
|
|
124
|
+
return this.detailedAccounts.filter((t) => !t.is_hidden);
|
|
125
|
+
}
|
|
126
|
+
get visibleCashAccounts() {
|
|
127
|
+
return this.cashAccounts.filter((t) => !t.is_hidden);
|
|
128
|
+
}
|
|
129
|
+
get visibleCashBalance() {
|
|
130
|
+
return this.visibleCashAccounts.reduce((t, e) => t + (e?.balance || 0), 0);
|
|
131
|
+
}
|
|
132
|
+
get visibleCheckingAccounts() {
|
|
133
|
+
return this.checkingAccounts.filter((t) => !t.is_hidden);
|
|
134
|
+
}
|
|
135
|
+
get visibleDebtAccounts() {
|
|
136
|
+
return this.debtAccounts.filter((t) => !t.is_hidden);
|
|
137
|
+
}
|
|
138
|
+
get visibleFinstrongAccounts() {
|
|
139
|
+
return this.finstrongAccounts.filter(
|
|
140
|
+
(t) => !(t.is_closed || t.is_deleted || t.is_hidden)
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
get visibleRetirementAccounts() {
|
|
144
|
+
return this.retirementAccounts.filter((t) => !t.is_hidden);
|
|
145
|
+
}
|
|
146
|
+
get visibleInvestmentAccounts() {
|
|
147
|
+
return this.investmentAccounts.filter((t) => !t.is_hidden);
|
|
148
|
+
}
|
|
149
|
+
get visibleSavingsAccounts() {
|
|
150
|
+
return this.savingsAccounts.filter((t) => !t.is_hidden);
|
|
151
|
+
}
|
|
152
|
+
get savingsAndCheckingAccountsBalance() {
|
|
153
|
+
return this.savingsAndCheckingAccounts.reduce(
|
|
154
|
+
(e, s) => e + (s?.balance || 0),
|
|
155
|
+
0
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
get savingsAndCheckingAccounts() {
|
|
159
|
+
return this.accounts.filter(
|
|
160
|
+
(e) => e.account_type === n.SAVINGS || e.account_type === n.CHECKING
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
setAccounts = (t) => {
|
|
164
|
+
this.accounts = t, this.accountsLoading = !1, this.accountsLoaded = !0;
|
|
165
|
+
};
|
|
166
|
+
setMembers = (t) => {
|
|
167
|
+
this.members = t, this.membersLoading = !1, this.membersLoaded = !0;
|
|
168
|
+
};
|
|
169
|
+
setInstitutions = (t) => {
|
|
170
|
+
this.institutions = t, this.institutionsLoading = !1, this.institutionsLoaded = !0;
|
|
171
|
+
};
|
|
172
|
+
addAccount = async (t) => {
|
|
173
|
+
try {
|
|
174
|
+
const e = await this.api.createAccount(t);
|
|
175
|
+
d(() => {
|
|
176
|
+
this.accounts = [...this.accounts, e];
|
|
177
|
+
});
|
|
178
|
+
} catch (e) {
|
|
179
|
+
console.error(`Error occurred while adding an account: ${e}`);
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
loadAccounts = async () => {
|
|
183
|
+
if (!this.accountsLoading) {
|
|
184
|
+
this.accountsLoading = !0;
|
|
185
|
+
try {
|
|
186
|
+
const t = await this.api.getAccounts();
|
|
187
|
+
this.setAccounts(t);
|
|
188
|
+
} catch (t) {
|
|
189
|
+
console.error(`Error occurred while loading accounts: ${t}`);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
loadInstitutions = async () => {
|
|
194
|
+
if (!this.institutionsLoading) {
|
|
195
|
+
this.institutionsLoading = !0;
|
|
196
|
+
try {
|
|
197
|
+
const t = await this.api.getInstitutions();
|
|
198
|
+
this.setInstitutions(t);
|
|
199
|
+
} catch (t) {
|
|
200
|
+
console.error(`Error occurred while loading institutions: ${t}`);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
loadMembers = async () => {
|
|
205
|
+
if (!this.membersLoading) {
|
|
206
|
+
this.membersLoading = !0;
|
|
207
|
+
try {
|
|
208
|
+
const t = await this.api.getMembers();
|
|
209
|
+
this.setMembers(t);
|
|
210
|
+
} catch (t) {
|
|
211
|
+
console.error(`Error occurred while loading members: ${t}`);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
mergeAccounts = async (t) => {
|
|
216
|
+
try {
|
|
217
|
+
const e = await this.api.mergeAccounts(t), s = e[Object.keys(e)[0]];
|
|
218
|
+
d(() => {
|
|
219
|
+
const c = this.accounts.findIndex((r) => r.guid === t[1]);
|
|
220
|
+
this.accounts.splice(c, 1);
|
|
221
|
+
const i = this.accounts.findIndex((r) => r.guid === t[0]);
|
|
222
|
+
this.accounts.splice(i, 1, s);
|
|
223
|
+
});
|
|
224
|
+
} catch (e) {
|
|
225
|
+
console.error(`Error occurred while merging accounts: ${e}`);
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
refreshAccounts = async () => {
|
|
229
|
+
this.uiStore.setIsLoading(!0), await Promise.all([this.loadAccounts(), this.loadInstitutions(), this.loadMembers()]), this.uiStore.setIsLoading(!1);
|
|
230
|
+
};
|
|
231
|
+
refreshMembers = async () => {
|
|
232
|
+
try {
|
|
233
|
+
await this.api.refreshAllMembers(), await this.loadMembers();
|
|
234
|
+
} catch (t) {
|
|
235
|
+
console.error(`Error occurredwhile refreshing members: ${t}`);
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
removeAccount = async (t) => {
|
|
239
|
+
try {
|
|
240
|
+
await this.api.deleteAccount(t);
|
|
241
|
+
const e = this.accounts.findIndex((s) => s.guid === t);
|
|
242
|
+
this.accounts.splice(e, 1);
|
|
243
|
+
} catch (e) {
|
|
244
|
+
console.error(`Error occurred while removing an account: ${e}`);
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
updateAccount = async (t) => {
|
|
248
|
+
try {
|
|
249
|
+
const e = await this.api.updateAccount(t), s = this.accounts.findIndex(
|
|
250
|
+
(c) => c.guid === e.guid
|
|
251
|
+
);
|
|
252
|
+
this.accounts.splice(s, 1, e);
|
|
253
|
+
} catch (e) {
|
|
254
|
+
console.error(`Error occurred while updating account: ${e}`);
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
updateAccountBalance = (t, e) => {
|
|
258
|
+
const s = this.accounts.find((c) => c.guid === t);
|
|
259
|
+
s && d(() => {
|
|
260
|
+
s.balance = (s.balance || 0) + e;
|
|
261
|
+
});
|
|
262
|
+
};
|
|
263
|
+
updateAccountFiltering = async (t, e) => {
|
|
264
|
+
for (const s of t) {
|
|
265
|
+
const c = this.accounts.find((i) => i.guid === s);
|
|
266
|
+
c && (c.is_excluded_from_accounts = e, await this.updateAccount(c));
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
updateAccountFilter = async (t) => {
|
|
270
|
+
const e = [];
|
|
271
|
+
for (const [i, r] of t.entries()) {
|
|
272
|
+
const a = this.accounts.find((p) => p.guid === i);
|
|
273
|
+
a && a.is_excluded_from_accounts === r && (a.is_excluded_from_accounts = !r, e.push(this.api.updateAccount(a)));
|
|
274
|
+
}
|
|
275
|
+
const s = await Promise.all(e), c = [...this.accounts];
|
|
276
|
+
for (const i of s) {
|
|
277
|
+
const r = c.findIndex((a) => a.guid === i.guid);
|
|
278
|
+
r !== -1 && c.splice(r, 1, i);
|
|
279
|
+
}
|
|
280
|
+
this.setAccounts(c);
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
export {
|
|
284
|
+
R as A,
|
|
285
|
+
T as a,
|
|
286
|
+
x as g,
|
|
287
|
+
M as s
|
|
288
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { A as e, C as u, E as r, c as p, M as y } from "./Account-Cp4uT2pE.mjs";
|
|
2
|
+
const l = (t) => t && (t.account_type === e.CREDIT_CARD || t.account_type === e.LOAN || t.account_type === e.MORTGAGE || t.account_type === e.LINE_OF_CREDIT || t.account_type === e.CHECKING_LINE_OF_CREDIT), I = (t) => t.is_manual || !t.guid, R = (t) => t.account_type === e.LINE_OF_CREDIT || t.account_type === e.CREDIT_CARD || t.account_type === e.CHECKING_LINE_OF_CREDIT, f = (t) => t.account_type === e.SAVINGS || t.account_type === e.CHECKING || t.account_type === e.LINE_OF_CREDIT || t.account_type === e.CREDIT_CARD || t.account_type === e.LOAN || t.account_type === e.MORTGAGE, m = (t) => t.account_type === e.LOAN || t.account_type === e.MORTGAGE, A = (t, n, s, _) => t.filter((i) => !(i.member_is_managed_by_user && _)).sort(d).map((i) => {
|
|
3
|
+
const c = n.find((a) => a.guid === i.institution_guid), o = s.find((a) => a.guid === i.member_guid);
|
|
4
|
+
return E(i, c, o);
|
|
5
|
+
}), E = (t, n, s) => {
|
|
6
|
+
let _ = u.Connected;
|
|
7
|
+
s && (r.includes(s.connection_status) ? _ = u.Error : p.includes(s.connection_status) ? _ = u.Processing : y.includes(s.connection_status) && (_ = u.RequiresMfa));
|
|
8
|
+
const i = [
|
|
9
|
+
t.user_name || t.feed_name || "",
|
|
10
|
+
t.account_number ? `*${t.account_number}` : ""
|
|
11
|
+
].join(" ").trim();
|
|
12
|
+
return {
|
|
13
|
+
...t,
|
|
14
|
+
connectionStatus: _,
|
|
15
|
+
displayName: i,
|
|
16
|
+
institution: n,
|
|
17
|
+
member: s
|
|
18
|
+
};
|
|
19
|
+
}, d = (t, n) => t.account_type > n.account_type ? 1 : t.account_type < n.account_type ? -1 : (t.name || "") > (n.name || "") ? 1 : (t.name || "") < (n.name || "") ? -1 : 0;
|
|
20
|
+
export {
|
|
21
|
+
l as a,
|
|
22
|
+
R as b,
|
|
23
|
+
m as c,
|
|
24
|
+
A as d,
|
|
25
|
+
I as i,
|
|
26
|
+
f as u
|
|
27
|
+
};
|