@mx-cartographer/experiences 7.7.0-alpha.bb9 → 7.7.0-alpha.test2
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 +50 -0
- package/dist/{Account-Cp4uT2pE.mjs → Account-BiB1F8lL.mjs} +3 -3
- package/dist/{Account-B6i0x4zD.mjs → Account-DuOz1a27.mjs} +1 -1
- package/dist/{AccountDetailsHeader-rT8KbT1M.mjs → AccountDetailsHeader-Cf2TUJnM.mjs} +3 -3
- package/dist/{AccountFields-B7s_bbQT.mjs → AccountFields-UdOvbQ5H.mjs} +2 -2
- package/dist/{AccountListItem-B_plAb79.mjs → AccountListItem-BPVxmNT_.mjs} +2 -2
- package/dist/{AccountStore-DY5HniWw.mjs → AccountStore-BbPWe2C9.mjs} +47 -85
- package/dist/{Accounts-DBJHvSZk.mjs → Accounts-M-LTzStv.mjs} +1 -1
- package/dist/CategorySelectorDrawer-cQKX5dZb.mjs +418 -0
- package/dist/{DebtsStore-BX6npZOf.mjs → DebtsStore-By_tiNpl.mjs} +1 -1
- package/dist/{ExportCsvAction-HK5CeZWR.mjs → ExportCsvAction-CDuzTva1.mjs} +2 -2
- package/dist/{LineChart-BoML7cMy.mjs → LineChart-BF4QA-Lx.mjs} +14 -15
- package/dist/{ManageIncome-DAfRhEXW.mjs → ManageIncome-BmzXSGvZ.mjs} +4 -4
- package/dist/{NetWorthStore-BEV3JD7w.mjs → NetWorthStore-xMX8Q30L.mjs} +9 -9
- package/dist/{NotificationSettings-D4Vh3z8I.mjs → NotificationSettings-SCsdfdve.mjs} +161 -161
- package/dist/{RecurringSettings-C-_usEQP.mjs → RecurringSettings-BYqta-is.mjs} +3 -3
- package/dist/{RecurringTransactionsStore-BXxP_Aiy.mjs → RecurringTransactionsStore-BQBEJOPP.mjs} +1 -1
- package/dist/{SettingsStore-krIRNwHK.mjs → SettingsStore-BHpuyujx.mjs} +1 -1
- package/dist/SpendingLegend-BSHRsmqN.mjs +193 -0
- package/dist/{TransactionDetails-D1TZl3jS.mjs → TransactionDetails-DuaMqu3g.mjs} +152 -149
- package/dist/{TransactionStore-BJMWfvHs.mjs → TransactionStore-BSp5bOKg.mjs} +2 -2
- package/dist/{User-LJpEwPtn.mjs → User-B0LnmiKO.mjs} +21 -20
- package/dist/{ViewMoreMicroCard-DwR0v_ll.mjs → ViewMoreMicroCard-rY-kN9MP.mjs} +178 -144
- package/dist/{WidgetContainer-Dd99GYSN.mjs → WidgetContainer-Bj3HyCfV.mjs} +201 -229
- package/dist/accounts/index.es.js +367 -344
- package/dist/budgets/index.es.js +5 -5
- package/dist/cashflow/index.es.js +7 -7
- package/dist/categories/components/CustomCategories/AddSubcategory.d.ts +1 -0
- package/dist/categories/components/CustomCategories/DeleteSubcategory.d.ts +1 -0
- package/dist/categories/components/CustomCategories/RenameSubcategory.d.ts +1 -0
- package/dist/categories/components/SubcategoryRow.d.ts +1 -0
- package/dist/categories/index.es.js +1 -1
- package/dist/common/components/index.d.ts +1 -1
- package/dist/common/index.es.js +586 -877
- package/dist/common/stores/GlobalUiStore.d.ts +1 -0
- package/dist/common/types/localization/CategoryCopy.d.ts +3 -0
- package/dist/common/types/localization/MicroInsightsCopy.d.ts +1 -0
- package/dist/debts/index.es.js +5 -5
- package/dist/{exportTransactionsToCSV-BrTYdSgJ.mjs → exportTransactionsToCSV-DtQ7ovAR.mjs} +1 -1
- package/dist/finstrong/index.es.js +1269 -1239
- package/dist/goals/index.es.js +33 -32
- package/dist/help/index.es.js +1 -1
- package/dist/investments/index.es.js +2 -2
- package/dist/microinsights/beaticons/BeatMaterialIcon.d.ts +6 -0
- package/dist/microinsights/beaticons/index.d.ts +1 -0
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +178 -177
- package/dist/notifications/index.es.js +2 -2
- package/dist/recurringtransactions/index.es.js +9 -9
- package/dist/settings/index.es.js +88 -86
- package/dist/spending/components/SpendingChart.d.ts +1 -1
- package/dist/spending/components/SpendingList.d.ts +1 -1
- package/dist/spending/components/SpendingTabLabel.d.ts +1 -0
- package/dist/spending/index.es.js +236 -218
- package/dist/transactions/index.es.js +85 -83
- package/dist/trends/index.es.js +37 -40
- package/dist/useAriaLive-B3_pRUio.mjs +35 -0
- package/package.json +1 -1
- package/dist/CategorySelectorDrawer-DywvMfPe.mjs +0 -399
- package/dist/SpendingLegend-BFX7hUBn.mjs +0 -193
- package/dist/common/components/accountfilter/AccountFilter.d.ts +0 -20
- package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +0 -31
- package/dist/common/components/accountfilter/index.d.ts +0 -1
- package/dist/{GoalStore-DtqS4bfg.mjs → GoalStore-Ik1iC00o.mjs} +1 -1
- package/dist/{ToggleListItem-ciFTiqRS.mjs → Notification-Bs1fdbzI.mjs} +1 -1
- package/dist/{RecurringTransactions-YQcbogIO.mjs → RepeatingTransaction-miZVnk_A.mjs} +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,53 @@
|
|
|
1
|
+
## [7.7.0] - 01-21-2026
|
|
2
|
+
|
|
3
|
+
- **ADDED** - New Global Account Filter component
|
|
4
|
+
- **UPDATED** - Loading pattern to be consistent across all widgets
|
|
5
|
+
- **UPDATED** - All widgets to use new Global Account Filter component
|
|
6
|
+
- **UPDATED** - `isInitialized` in `GlobalStore` to be set after all copy & config are loaded
|
|
7
|
+
- **UPDATED** - Storybook `preview.tsx` to wrap all stories in `GlobalDataProvider` and load config data
|
|
8
|
+
- **UPDATED** - All stories to use new loading patterns
|
|
9
|
+
- **UPDATED** - Unit test to use new loading patterns
|
|
10
|
+
|
|
11
|
+
## [7.6.22] - 01-22-2026
|
|
12
|
+
|
|
13
|
+
- **UPDATED** - Transactions details and list actions a11y imrovements
|
|
14
|
+
|
|
15
|
+
## [7.6.21] - 01-22-2026
|
|
16
|
+
|
|
17
|
+
- **FIXED** - Spending widget subcategories to use parent category when in 'Other'
|
|
18
|
+
|
|
19
|
+
## [7.6.20] - 01-21-2026
|
|
20
|
+
|
|
21
|
+
- **UPDATED** - Spending widget to not round amounts
|
|
22
|
+
|
|
23
|
+
## [7.6.19] - 01-21-2026
|
|
24
|
+
|
|
25
|
+
- **UPDATED** - Spending widget subcategories to open transactions list
|
|
26
|
+
|
|
27
|
+
## [7.6.18] - 01-21-2026
|
|
28
|
+
|
|
29
|
+
- **FIXED** - Pay Bills On Time Drawer Loading Issue - Fees Transactions List | Bug Fixed
|
|
30
|
+
|
|
31
|
+
## [7.6.17] - 01-21-2026
|
|
32
|
+
|
|
33
|
+
- **FIXED** - Line Graph | Curve Type Bug Fixed
|
|
34
|
+
|
|
35
|
+
## [7.6.16] - 01-19-2026
|
|
36
|
+
|
|
37
|
+
- **UPDATED** - `MicroInsights` BeatIcons Updated
|
|
38
|
+
|
|
39
|
+
## [7.6.15] - 01-19-2026
|
|
40
|
+
|
|
41
|
+
- **FIXED** - `Finstrong` KeyIndicators Zero State Style
|
|
42
|
+
|
|
43
|
+
## [7.6.14] - 01-19-2026
|
|
44
|
+
|
|
45
|
+
- **FIXED** - Finstrong Header Dimensions | Finstrong Score Card Styling | Issues Fixed
|
|
46
|
+
|
|
47
|
+
## [7.6.13] - 01-19-2026
|
|
48
|
+
|
|
49
|
+
- **UPDATED** - Fixes for `Finstrong` onboarding and sticky footer
|
|
50
|
+
|
|
1
51
|
## [7.6.12] - 01-16-2026
|
|
2
52
|
|
|
3
53
|
- **UPDATED** - Focus style for goal status cards
|
|
@@ -4,13 +4,13 @@ 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
6
|
import { G as N, d as C, m as P, f as G, u as O } from "./hooks-ZMp65DFz.mjs";
|
|
7
|
-
import { g as R } from "./AccountFields-
|
|
8
|
-
import { A as r } from "./Account-
|
|
7
|
+
import { g as R } from "./AccountFields-UdOvbQ5H.mjs";
|
|
8
|
+
import { A as r } from "./Account-BiB1F8lL.mjs";
|
|
9
9
|
import w from "@mui/material/Card";
|
|
10
10
|
import v from "@mui/material/CardContent";
|
|
11
11
|
import L from "@mui/material/CardHeader";
|
|
12
12
|
import { L as H } from "./Loader-DUaFpDGv.mjs";
|
|
13
|
-
import { I as M, P as U, S as Y } from "./Account-
|
|
13
|
+
import { I as M, P as U, S as Y } from "./Account-DuOz1a27.mjs";
|
|
14
14
|
import { u as j } from "./useAccountDisplayName-Bot2tb4n.mjs";
|
|
15
15
|
import { f as z } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
16
16
|
const _ = () => {
|
|
@@ -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 { A as d, a as v, P as h, b as F } from "./Account-
|
|
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-BiB1F8lL.mjs";
|
|
4
|
+
import { i as T, u as D, a as A, b as g, c as O } from "./Accounts-M-LTzStv.mjs";
|
|
5
5
|
import { F as m } from "./GlobalAccountFilter-DQCPNc95.mjs";
|
|
6
6
|
import { f as _, i as b, a as N, b as S } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
7
7
|
import { b as i } from "./Localization-2MODESHW.mjs";
|
|
@@ -10,10 +10,10 @@ 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-
|
|
13
|
+
import { g as T } from "./AccountFields-UdOvbQ5H.mjs";
|
|
14
14
|
import { u as X } from "./useAccountDisplayName-Bot2tb4n.mjs";
|
|
15
15
|
import { u as $ } from "./hooks-ZMp65DFz.mjs";
|
|
16
|
-
import { C as d } from "./Account-
|
|
16
|
+
import { C as d } from "./Account-BiB1F8lL.mjs";
|
|
17
17
|
import { f as k } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
18
18
|
const w = {
|
|
19
19
|
gridRow: 1,
|
|
@@ -1,57 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { A as
|
|
6
|
-
|
|
7
|
-
const T = (i, t) => i.reduce((e, s) => (e[s.guid] = t?.includes(s.guid), e), {}), M = (i, t, e) => i.reduce((s, n) => {
|
|
8
|
-
const o = _[n.account_type], r = m(n, {
|
|
9
|
-
allowNickname: e?.appConfig.config?.show_account_nicknames_in_master
|
|
10
|
-
}), a = {
|
|
11
|
-
accountNumber: n.account_number,
|
|
12
|
-
name: `${r} ${n.is_closed ? `(${t})` : ""}`,
|
|
13
|
-
guid: n.guid
|
|
14
|
-
};
|
|
15
|
-
return Object.prototype.hasOwnProperty.call(s, o) ? s[o] = s[o].concat(a) : s[o] = [a], s;
|
|
16
|
-
}, {});
|
|
17
|
-
function b(i) {
|
|
18
|
-
const { heldAccounts: t, externalAccounts: e } = i.reduce(
|
|
19
|
-
(s, n) => (n.member_is_managed_by_user ? s.externalAccounts.push(n) : s.heldAccounts.push(n), s),
|
|
20
|
-
{ heldAccounts: [], externalAccounts: [] }
|
|
21
|
-
);
|
|
22
|
-
return {
|
|
23
|
-
heldAccounts: A(t),
|
|
24
|
-
externalAccounts: A(e)
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
function R(i, t) {
|
|
28
|
-
const { heldAccounts: e, externalAccounts: s } = b(i), n = e.slice(0, t);
|
|
29
|
-
return n.length < t && n.push(...s.slice(0, t - n.length)), n;
|
|
30
|
-
}
|
|
31
|
-
const I = {
|
|
32
|
-
[c.CHECKING]: 1,
|
|
33
|
-
[c.SAVINGS]: 2,
|
|
34
|
-
[c.CREDIT_CARD]: 3
|
|
35
|
-
}, h = (i) => I[i] ?? i + 100, A = (i) => i.sort((t, e) => {
|
|
36
|
-
const s = h(t.account_type), n = h(e.account_type), o = s - n;
|
|
37
|
-
if (o !== 0) return o;
|
|
38
|
-
const r = t.name ?? t.feed_name ?? "", a = e.name ?? e.feed_name ?? "";
|
|
39
|
-
return r.localeCompare(a);
|
|
40
|
-
});
|
|
41
|
-
class E {
|
|
1
|
+
import { makeAutoObservable as h, runInAction as a } from "mobx";
|
|
2
|
+
import { i as g } from "./User-B0LnmiKO.mjs";
|
|
3
|
+
import { A as d } from "./AccountApi-DgZ8ILj1.mjs";
|
|
4
|
+
import { d as m } from "./Accounts-M-LTzStv.mjs";
|
|
5
|
+
import { A as s, d as u } from "./Account-BiB1F8lL.mjs";
|
|
6
|
+
class p {
|
|
42
7
|
isLoading = !1;
|
|
43
8
|
selectedAccount = {};
|
|
44
9
|
selectedMember = {};
|
|
45
10
|
constructor() {
|
|
46
|
-
|
|
11
|
+
h(this);
|
|
47
12
|
}
|
|
48
13
|
setIsLoading = (t) => this.isLoading = t;
|
|
49
14
|
setSelectedAccount = (t) => this.selectedAccount = t;
|
|
50
15
|
setSelectedMember = (t) => this.selectedMember = t;
|
|
51
16
|
}
|
|
52
|
-
class
|
|
17
|
+
class E {
|
|
53
18
|
globalStore;
|
|
54
|
-
api = new
|
|
19
|
+
api = new d("/", "");
|
|
55
20
|
accounts = [];
|
|
56
21
|
accountsLoaded = !1;
|
|
57
22
|
accountsLoading = !1;
|
|
@@ -63,7 +28,7 @@ class x {
|
|
|
63
28
|
membersLoading = !1;
|
|
64
29
|
uiStore;
|
|
65
30
|
constructor(t) {
|
|
66
|
-
this.globalStore = t, this.uiStore = new
|
|
31
|
+
this.globalStore = t, this.uiStore = new p(), this.api = new d(t.endpoint, t.sessionToken, t.onError), h(this);
|
|
67
32
|
}
|
|
68
33
|
loadAccountData = async () => {
|
|
69
34
|
await Promise.all([this.loadAccounts(), this.loadMembers(), this.loadInstitutions()]);
|
|
@@ -72,52 +37,52 @@ class x {
|
|
|
72
37
|
return this.accountsLoaded && this.membersLoaded && this.institutionsLoaded;
|
|
73
38
|
}
|
|
74
39
|
get detailedAccounts() {
|
|
75
|
-
const t = this.globalStore.userStore.userFeatures, e =
|
|
76
|
-
return
|
|
40
|
+
const t = this.globalStore.userStore.userFeatures, e = g(t, "MD_EXCLUDE_EXTERNAL_ACCOUNTS");
|
|
41
|
+
return m(this.accounts, this.institutions, this.members, e);
|
|
77
42
|
}
|
|
78
43
|
get accountsByTypeMap() {
|
|
79
44
|
return this.detailedAccounts.reduce((t, e) => {
|
|
80
|
-
const
|
|
81
|
-
let n = t.get(
|
|
82
|
-
return n || (n = []), n.push(e), t.set(
|
|
45
|
+
const c = e.account_type;
|
|
46
|
+
let n = t.get(c);
|
|
47
|
+
return n || (n = []), n.push(e), t.set(c, n), t;
|
|
83
48
|
}, /* @__PURE__ */ new Map());
|
|
84
49
|
}
|
|
85
50
|
get cashAccounts() {
|
|
86
51
|
return this.detailedAccounts.filter(
|
|
87
|
-
(t) => t.account_type ===
|
|
52
|
+
(t) => t.account_type === s.CASH || t.account_type === s.CHECKING || t.account_type === s.PREPAID || t.account_type === s.SAVINGS || t.account_type === s.CHECKING_LINE_OF_CREDIT
|
|
88
53
|
);
|
|
89
54
|
}
|
|
90
55
|
get cashBalance() {
|
|
91
56
|
return this.cashAccounts.reduce((t, e) => t + (e?.balance || 0), 0);
|
|
92
57
|
}
|
|
93
58
|
get checkingAccounts() {
|
|
94
|
-
return this.detailedAccounts.filter((t) => t.account_type ===
|
|
59
|
+
return this.detailedAccounts.filter((t) => t.account_type === s.CHECKING);
|
|
95
60
|
}
|
|
96
61
|
get debtAccounts() {
|
|
97
62
|
return this.detailedAccounts.filter(
|
|
98
|
-
(t) => t.account_type ===
|
|
63
|
+
(t) => t.account_type === s.CREDIT_CARD || t.account_type === s.LOAN || t.account_type === s.MORTGAGE || t.account_type === s.LINE_OF_CREDIT || t.account_type === s.CHECKING_LINE_OF_CREDIT
|
|
99
64
|
);
|
|
100
65
|
}
|
|
101
66
|
get finstrongAccounts() {
|
|
102
67
|
const t = /* @__PURE__ */ new Set([
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
68
|
+
s.CHECKING,
|
|
69
|
+
s.SAVINGS,
|
|
70
|
+
s.CREDIT_CARD,
|
|
71
|
+
s.INVESTMENT
|
|
107
72
|
]);
|
|
108
73
|
return this.detailedAccounts.filter((e) => t.has(e.account_type));
|
|
109
74
|
}
|
|
110
75
|
get investmentAccounts() {
|
|
111
76
|
return this.detailedAccounts.filter(
|
|
112
|
-
(t) => t.account_type ===
|
|
77
|
+
(t) => t.account_type === s.INVESTMENT
|
|
113
78
|
);
|
|
114
79
|
}
|
|
115
80
|
get savingsAccounts() {
|
|
116
|
-
return this.detailedAccounts.filter((t) => t.account_type ===
|
|
81
|
+
return this.detailedAccounts.filter((t) => t.account_type === s.SAVINGS);
|
|
117
82
|
}
|
|
118
83
|
get retirementAccounts() {
|
|
119
84
|
return this.detailedAccounts.filter(
|
|
120
|
-
(t) => t.account_type ===
|
|
85
|
+
(t) => t.account_type === s.INVESTMENT || t.account_type === s.SAVINGS || t.account_type === s.CHECKING || t.account_type === s.CASH || t.account_type === s.PROPERTY || t.account_type === s.INSURANCE && (t.account_subtype === u.WHOLE_LIFE || t.account_subtype === u.UNIVERSAL_LIFE || t.account_subtype === u.VARIABLE_UNIVERSAL_LIFE)
|
|
121
86
|
);
|
|
122
87
|
}
|
|
123
88
|
get visibleAccounts() {
|
|
@@ -151,13 +116,13 @@ class x {
|
|
|
151
116
|
}
|
|
152
117
|
get savingsAndCheckingAccountsBalance() {
|
|
153
118
|
return this.savingsAndCheckingAccounts.reduce(
|
|
154
|
-
(e,
|
|
119
|
+
(e, c) => e + (c?.balance || 0),
|
|
155
120
|
0
|
|
156
121
|
);
|
|
157
122
|
}
|
|
158
123
|
get savingsAndCheckingAccounts() {
|
|
159
124
|
return this.accounts.filter(
|
|
160
|
-
(e) => e.account_type ===
|
|
125
|
+
(e) => e.account_type === s.SAVINGS || e.account_type === s.CHECKING
|
|
161
126
|
);
|
|
162
127
|
}
|
|
163
128
|
setAccounts = (t) => {
|
|
@@ -172,7 +137,7 @@ class x {
|
|
|
172
137
|
addAccount = async (t) => {
|
|
173
138
|
try {
|
|
174
139
|
const e = await this.api.createAccount(t);
|
|
175
|
-
|
|
140
|
+
a(() => {
|
|
176
141
|
this.accounts = [...this.accounts, e];
|
|
177
142
|
});
|
|
178
143
|
} catch (e) {
|
|
@@ -214,12 +179,12 @@ class x {
|
|
|
214
179
|
};
|
|
215
180
|
mergeAccounts = async (t) => {
|
|
216
181
|
try {
|
|
217
|
-
const e = await this.api.mergeAccounts(t),
|
|
218
|
-
|
|
219
|
-
const n = this.accounts.findIndex((
|
|
182
|
+
const e = await this.api.mergeAccounts(t), c = e[Object.keys(e)[0]];
|
|
183
|
+
a(() => {
|
|
184
|
+
const n = this.accounts.findIndex((i) => i.guid === t[1]);
|
|
220
185
|
this.accounts.splice(n, 1);
|
|
221
|
-
const o = this.accounts.findIndex((
|
|
222
|
-
this.accounts.splice(o, 1,
|
|
186
|
+
const o = this.accounts.findIndex((i) => i.guid === t[0]);
|
|
187
|
+
this.accounts.splice(o, 1, c);
|
|
223
188
|
});
|
|
224
189
|
} catch (e) {
|
|
225
190
|
console.error(`Error occurred while merging accounts: ${e}`);
|
|
@@ -238,7 +203,7 @@ class x {
|
|
|
238
203
|
removeAccount = async (t) => {
|
|
239
204
|
try {
|
|
240
205
|
await this.api.deleteAccount(t);
|
|
241
|
-
const e = this.accounts.findIndex((
|
|
206
|
+
const e = this.accounts.findIndex((c) => c.guid === t);
|
|
242
207
|
this.accounts.splice(e, 1);
|
|
243
208
|
} catch (e) {
|
|
244
209
|
console.error(`Error occurred while removing an account: ${e}`);
|
|
@@ -246,37 +211,34 @@ class x {
|
|
|
246
211
|
};
|
|
247
212
|
updateAccount = async (t) => {
|
|
248
213
|
try {
|
|
249
|
-
const e = await this.api.updateAccount(t),
|
|
214
|
+
const e = await this.api.updateAccount(t), c = this.accounts.findIndex(
|
|
250
215
|
(n) => n.guid === e.guid
|
|
251
216
|
);
|
|
252
|
-
this.accounts.splice(
|
|
217
|
+
this.accounts.splice(c, 1, e);
|
|
253
218
|
} catch (e) {
|
|
254
219
|
console.error(`Error occurred while updating account: ${e}`);
|
|
255
220
|
}
|
|
256
221
|
};
|
|
257
222
|
updateAccountBalance = (t, e) => {
|
|
258
|
-
const
|
|
259
|
-
|
|
260
|
-
|
|
223
|
+
const c = this.accounts.find((n) => n.guid === t);
|
|
224
|
+
c && a(() => {
|
|
225
|
+
c.balance = (c.balance || 0) + e;
|
|
261
226
|
});
|
|
262
227
|
};
|
|
263
228
|
updateAccountFilter = async (t) => {
|
|
264
229
|
const e = [];
|
|
265
|
-
for (const [o,
|
|
266
|
-
const
|
|
267
|
-
|
|
230
|
+
for (const [o, i] of t.entries()) {
|
|
231
|
+
const r = this.accounts.find((A) => A.guid === o);
|
|
232
|
+
r && r.is_excluded_from_accounts === i && (r.is_excluded_from_accounts = !i, e.push(this.api.updateAccount(r)));
|
|
268
233
|
}
|
|
269
|
-
const
|
|
270
|
-
for (const o of
|
|
271
|
-
const
|
|
272
|
-
|
|
234
|
+
const c = await Promise.all(e), n = [...this.accounts];
|
|
235
|
+
for (const o of c) {
|
|
236
|
+
const i = n.findIndex((r) => r.guid === o.guid);
|
|
237
|
+
i !== -1 && n.splice(i, 1, o);
|
|
273
238
|
}
|
|
274
239
|
this.setAccounts(n);
|
|
275
240
|
};
|
|
276
241
|
}
|
|
277
242
|
export {
|
|
278
|
-
|
|
279
|
-
T as a,
|
|
280
|
-
R as g,
|
|
281
|
-
M as s
|
|
243
|
+
E as A
|
|
282
244
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, C as u, E as r, c as p, M as y } from "./Account-
|
|
1
|
+
import { A as e, C as u, E as r, c as p, M as y } from "./Account-BiB1F8lL.mjs";
|
|
2
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
3
|
const c = n.find((a) => a.guid === i.institution_guid), o = s.find((a) => a.guid === i.member_guid);
|
|
4
4
|
return E(i, c, o);
|