@mx-cartographer/experiences 8.0.25 → 8.1.0
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 +4 -9
- package/dist/{AccountApi-ChQr5PAZ.mjs → AccountApi-WEM2M9tg.mjs} +1 -1
- package/dist/{AccountDetailsHeader-D9gbTbUt.mjs → AccountDetailsHeader-IPRH6Wja.mjs} +2 -2
- package/dist/{AccountFields-CxqONzjY.mjs → AccountFields-BbPSfzru.mjs} +3 -3
- package/dist/{AccountListItem-D9WJDbZ1.mjs → AccountListItem-qpACFl6i.mjs} +2 -2
- package/dist/{AccountStore-B7zfcad7.mjs → AccountStore-BeEiLNhW.mjs} +2 -2
- package/dist/Analytics-CjZ0emfs.mjs +53 -0
- package/dist/{Fetch-B6tMJC1r.mjs → ApiEndpoints-C5IA97i7.mjs} +48 -50
- package/dist/{BeatApi-EFHXULDx.mjs → BeatApi-C6pBa0Rb.mjs} +1 -1
- package/dist/{BeatStore-C6CAT-ce.mjs → BeatStore-DuvvrljY.mjs} +1 -1
- package/dist/{BudgetUtil-DZpOoZQa.mjs → BudgetUtil-CLh4xtj4.mjs} +60 -60
- package/dist/CategoryApi-CogDFScz.mjs +29 -0
- package/dist/{CategorySelectorDrawer-Dc9Widy9.mjs → CategorySelectorDrawer-BG04ByUx.mjs} +1 -1
- package/dist/CategoryStore-Bp1kO9Z-.mjs +160 -0
- package/dist/{CategoryUtil-BVixr0d5.mjs → CategoryUtil-DKRCegQv.mjs} +1 -1
- package/dist/{CurrencyInput-DuMktPu3.mjs → CurrencyInput-BkNVHxSV.mjs} +14 -13
- package/dist/{CurrencyText-CA-E5N_y.mjs → CurrencyText-oqd6cX3M.mjs} +1 -1
- package/dist/{DateFormats-BMpMrZpW.mjs → DateFormats-CaOj_4eI.mjs} +1 -1
- package/dist/{DateUtil-wcYTmDRD.mjs → DateUtil-C57sqxn4.mjs} +1 -1
- package/dist/{EmbeddedCard-qwIhF1VP.mjs → EmbeddedCard-j7IGx3s1.mjs} +5 -5
- package/dist/{ExportCsvAction-CHCmCCqf.mjs → ExportCsvAction-7sjz7AXQ.mjs} +1 -1
- package/dist/FinstrongApi-FpmsS_sy.mjs +19 -0
- package/dist/{FinstrongStore-BQxXxxYD.mjs → FinstrongStore-DgyDJTEP.mjs} +121 -137
- package/dist/GlobalCopyApi-DkS-2Zf_.mjs +41 -0
- package/dist/Goal-MFBpoOIC.mjs +29 -0
- package/dist/{GoalStore-fgXt--2Y.mjs → GoalStore-DcaT4fM6.mjs} +81 -104
- package/dist/{Help-BkmSY96v.mjs → Help-cTsMzSQh.mjs} +1 -1
- package/dist/{LineChart-EAr5ox5U.mjs → LineChart-DkD_s9NN.mjs} +1 -1
- package/dist/Localization-C_HZg9tJ.mjs +15 -0
- package/dist/Localization-CkQ49EKr.mjs +26 -0
- package/dist/{ManageIncome-DqqI9HB1.mjs → ManageIncome-DwSE_a8L.mjs} +20 -20
- package/dist/MerchantApi-D8ahYxiG.mjs +15 -0
- package/dist/MerchantStore-CyZTv-BM.mjs +26 -0
- package/dist/{NetWorthStore-BqZ44-4M.mjs → NetWorthStore-Ba3q3VcH.mjs} +1 -1
- package/dist/NotificationApi-DF0obHoR.mjs +20 -0
- package/dist/{NotificationSettings-DBT37CVB.mjs → NotificationSettings-DB-eNgSv.mjs} +3 -3
- package/dist/NotificationStore-DlAM5Ue0.mjs +69 -0
- package/dist/{NumberFormatting-QCaNwbjv.mjs → NumberFormatting-CyrvFgfd.mjs} +1 -1
- package/dist/{OriginalBalanceAction-DjpvVVFz.mjs → OriginalBalanceAction-AB1TGb5P.mjs} +2 -2
- package/dist/{RecurringSettings-OBGLelZQ.mjs → RecurringSettings-CZKeZC4m.mjs} +8 -8
- package/dist/{RecurringTransactions-BbZ6MQsX.mjs → RecurringTransactions-kzlU8OFY.mjs} +5 -5
- package/dist/{RecurringTransactionsStore-BE_eUfTC.mjs → RecurringTransactionsStore-D62Dt2BF.mjs} +76 -90
- package/dist/{RepeatingTransaction-DF4vJn_v.mjs → RepeatingTransaction-D2gmBTd0.mjs} +3 -3
- package/dist/RepeatingTransactionsApi-BNZgZPLs.mjs +17 -0
- package/dist/SettingsApi-D9d7SLhB.mjs +22 -0
- package/dist/{SettingsStore-BoIoiRLj.mjs → SettingsStore-Dsz1mvd3.mjs} +41 -60
- package/dist/{SpendingData-Bz1bCWAs.mjs → SpendingData-CoZOmlZD.mjs} +1 -1
- package/dist/{SpendingLegend-CypdabwS.mjs → SpendingLegend-DljKEG69.mjs} +2 -2
- package/dist/{Transaction-C3Pg9TKf.mjs → Transaction-Cn5_iFm0.mjs} +2 -2
- package/dist/{TransactionApi-Ck5Ua-7F.mjs → TransactionApi-CLG2eSNe.mjs} +1 -1
- package/dist/{TransactionDetails-I1ny1ecc.mjs → TransactionDetails-CN-yZkin.mjs} +9 -9
- package/dist/{TransactionStore-BUsgGRL1.mjs → TransactionStore-6ovFO8P1.mjs} +10 -10
- package/dist/{TrendsStore-CYdTo7cN.mjs → TrendsStore-DZa6cyQC.mjs} +1 -1
- package/dist/{ViewMoreMicroCard-BJOZcYnB.mjs → ViewMoreMicroCard-BsEitNRJ.mjs} +10 -9
- package/dist/WidgetApi-C0BA2cFX.mjs +102 -0
- package/dist/{WidgetContainer-DYKMArWw.mjs → WidgetContainer-Bc75FqK7.mjs} +1 -1
- package/dist/accounts/index.d.ts +0 -1
- package/dist/accounts/index.es.js +63 -65
- package/dist/accounts/stores/AccountStore.d.ts +1 -1
- package/dist/budgets/index.es.js +11 -11
- package/dist/budgets/store/BudgetsStore.d.ts +1 -1
- package/dist/cashflow/index.d.ts +0 -1
- package/dist/cashflow/index.es.js +428 -449
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +2 -1
- package/dist/common/constants/index.d.ts +0 -1
- package/dist/common/index.d.ts +0 -1
- package/dist/common/index.es.js +389 -521
- package/dist/common/stores/AppDataStore.d.ts +2 -2
- package/dist/common/stores/ConnectStore.d.ts +1 -1
- package/dist/common/stores/GlobalCopyStore.d.ts +1 -1
- package/dist/common/stores/UserStore.d.ts +1 -1
- package/dist/common/utils/Localization.d.ts +0 -9
- package/dist/common/utils/index.d.ts +1 -2
- package/dist/{accounts → core}/api/AccountApi.d.ts +2 -2
- package/dist/{common → core}/api/AnalyticsApi.d.ts +1 -1
- package/dist/{common → core}/api/AppDataApi.d.ts +2 -2
- package/dist/{common → core}/api/BannerApi.d.ts +1 -1
- package/dist/{common → core}/api/BeatApi.d.ts +2 -2
- package/dist/{budgets → core}/api/BudgetsApi.d.ts +2 -2
- package/dist/{common → core}/api/CategoryApi.d.ts +2 -2
- package/dist/{finstrong → core}/api/FinstrongApi.d.ts +2 -2
- package/dist/{common → core}/api/GlobalCopyApi.d.ts +2 -2
- package/dist/{goals → core}/api/GoalApi.d.ts +2 -2
- package/dist/{help → core}/api/HelpApi.d.ts +2 -2
- package/dist/{investments → core}/api/HoldingApi.d.ts +2 -2
- package/dist/{merchants → core}/api/MerchantApi.d.ts +2 -2
- package/dist/{common → core}/api/NotificationApi.d.ts +2 -2
- package/dist/{recurringtransactions → core}/api/RepeatingTransactionsApi.d.ts +2 -2
- package/dist/{common → core}/api/ScheduledPaymentsApi.d.ts +2 -2
- package/dist/{settings → core}/api/SettingsApi.d.ts +2 -2
- package/dist/{transactions → core}/api/TransactionApi.d.ts +2 -2
- package/dist/{common → core}/api/UserApi.d.ts +2 -2
- package/dist/{common → core}/api/WidgetApi.d.ts +1 -1
- package/dist/core/api/index.d.ts +20 -0
- package/dist/{common → core}/constants/ApiEndpoints.d.ts +0 -2
- package/dist/core/constants/index.d.ts +1 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.es.js +90 -38
- package/dist/{common → core}/utils/Fetch.d.ts +1 -1
- package/dist/core/utils/Localization.d.ts +9 -0
- package/dist/core/utils/index.d.ts +2 -0
- package/dist/debts/index.es.js +7 -7
- package/dist/{exportTransactionsToCSV-DgdB3TBt.mjs → exportTransactionsToCSV-Dnd5lVq7.mjs} +2 -2
- package/dist/finstrong/index.d.ts +0 -1
- package/dist/finstrong/index.es.js +16 -17
- package/dist/finstrong/stores/FinstrongStore.d.ts +1 -1
- package/dist/goals/index.d.ts +0 -1
- package/dist/goals/index.es.js +50 -51
- package/dist/goals/stores/GoalStore.d.ts +1 -1
- package/dist/help/index.es.js +2 -2
- package/dist/help/store/HelpStore.d.ts +1 -1
- package/dist/insights/index.es.js +6 -6
- package/dist/insights/store/BeatStore.d.ts +1 -1
- package/dist/investments/index.es.js +2 -2
- package/dist/investments/stores/HoldingStore.d.ts +1 -1
- package/dist/merchants/index.es.js +1 -1
- package/dist/merchants/stores/MerchantStore.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/microinsights/stores/CopyStore.d.ts +1 -1
- package/dist/microinsights/stores/InsightsMicroWidgetStore.d.ts +1 -1
- package/dist/networth/index.es.js +8 -8
- package/dist/networth/stores/NetWorthStore.d.ts +1 -1
- package/dist/notifications/index.es.js +5 -5
- package/dist/notifications/stores/NotificationStore.d.ts +2 -1
- package/dist/recurringtransactions/index.es.js +26 -25
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +1 -1
- package/dist/settings/index.d.ts +0 -1
- package/dist/settings/index.es.js +65 -66
- package/dist/settings/stores/SettingsStore.d.ts +2 -2
- package/dist/spending/index.es.js +6 -6
- package/dist/transactions/index.d.ts +0 -1
- package/dist/transactions/index.es.js +22 -24
- package/dist/transactions/stores/TransactionStore.d.ts +3 -2
- package/dist/trends/index.es.js +14 -14
- package/package.json +1 -1
- package/dist/CategoryStore-FTxUbn0f.mjs +0 -186
- package/dist/Goal-0loDagc5.mjs +0 -6
- package/dist/Localization-CPkpIwIx.mjs +0 -37
- package/dist/MerchantStore-BzGi4JAZ.mjs +0 -37
- package/dist/NotificationStore-D_e8zo5M.mjs +0 -86
- package/dist/cashflow/api/CashflowApi.d.ts +0 -13
- package/dist/common/api/LocalizedCopyApi.d.ts +0 -8
- package/dist/common/api/index.d.ts +0 -10
- package/dist/repeatingTransactions-DHIG94pi.mjs +0 -4
- package/dist/useCombineEvents-Bqojlv8q.mjs +0 -92
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as C, Fragment as R } from "react/jsx-runtime";
|
|
2
2
|
import h from "react";
|
|
3
|
-
import { observer as
|
|
3
|
+
import { observer as b } from "mobx-react-lite";
|
|
4
4
|
import e1 from "@mui/material/Stack";
|
|
5
5
|
import { Text as g, Icon as N, THEMES as i1 } from "@mxenabled/mxui";
|
|
6
6
|
import { S as h1 } from "../SkeletonLoader-BaNboJjD.mjs";
|
|
@@ -10,24 +10,24 @@ import O from "@mui/material/List";
|
|
|
10
10
|
import B from "@mui/material/ListSubheader";
|
|
11
11
|
import P from "@mui/system/Stack";
|
|
12
12
|
import { useTheme as V1, alpha as M1 } from "@mui/material/styles";
|
|
13
|
-
import { u as
|
|
14
|
-
import { L as
|
|
15
|
-
import { g as
|
|
16
|
-
import { l as T1, u as
|
|
13
|
+
import { u as x, A as y1 } from "../AccountDetailsHeader-IPRH6Wja.mjs";
|
|
14
|
+
import { L as w1 } from "../LineChart-DkD_s9NN.mjs";
|
|
15
|
+
import { g as x1, a as R1, b as S1 } from "../SpendingData-CoZOmlZD.mjs";
|
|
16
|
+
import { l as T1, u as A, d as E, g as D, h as m1, b as G, a as E1 } from "../hooks-BxkfR-Ff.mjs";
|
|
17
17
|
import { A as I, g as L, N as p1 } from "../Account-BiB1F8lL.mjs";
|
|
18
18
|
import { I as _1, P as L1, S as f1 } from "../Account-DuOz1a27.mjs";
|
|
19
|
-
import { a as D1, b as k1 } from "../AccountFields-
|
|
20
|
-
import { g as i2 } from "../AccountFields-
|
|
21
|
-
import { A as U } from "../AccountListItem-
|
|
19
|
+
import { a as D1, b as k1 } from "../AccountFields-BbPSfzru.mjs";
|
|
20
|
+
import { g as i2 } from "../AccountFields-BbPSfzru.mjs";
|
|
21
|
+
import { A as U } from "../AccountListItem-qpACFl6i.mjs";
|
|
22
22
|
import a1 from "@mui/material/Tab";
|
|
23
23
|
import I1 from "@mui/material/Tabs";
|
|
24
24
|
import Z1 from "@mui/material/Switch";
|
|
25
25
|
import T from "@mui/material/ListItem";
|
|
26
26
|
import $ from "@mui/material/ListItemButton";
|
|
27
27
|
import Z from "@mui/material/ListItemText";
|
|
28
|
-
import { A as
|
|
28
|
+
import { A as w } from "../Analytics-0Xm_BjHU.mjs";
|
|
29
29
|
import { D as Q } from "../Dialog-Ck34yr-d.mjs";
|
|
30
|
-
import { b as f } from "../Localization-
|
|
30
|
+
import { b as f } from "../Localization-CkQ49EKr.mjs";
|
|
31
31
|
import { D as t1 } from "../Drawer-Bbe4AMB1.mjs";
|
|
32
32
|
import Y from "@mui/material/ListItemAvatar";
|
|
33
33
|
import N1 from "@mui/material/styles/useTheme";
|
|
@@ -36,7 +36,7 @@ import { C as z } from "../ConnectDrawer-C0wjwcJt.mjs";
|
|
|
36
36
|
import { fromUnixTime as P1 } from "date-fns/fromUnixTime";
|
|
37
37
|
import { isToday as W1 } from "date-fns/isToday";
|
|
38
38
|
import { isYesterday as B1 } from "date-fns/isYesterday";
|
|
39
|
-
import { f as s1, D as l1 } from "../DateFormats-
|
|
39
|
+
import { f as s1, D as l1 } from "../DateFormats-CaOj_4eI.mjs";
|
|
40
40
|
import { I as j } from "../IconBacking-B9oC6uL2.mjs";
|
|
41
41
|
import { addMonths as U1 } from "date-fns/addMonths";
|
|
42
42
|
import { AdapterDateFns as $1 } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
@@ -49,26 +49,25 @@ import X1 from "@mui/material/Select";
|
|
|
49
49
|
import J1 from "@mui/material/TextField";
|
|
50
50
|
import { F as X } from "../Accounts-CseLC3lL.mjs";
|
|
51
51
|
import { M as a2 } from "../Accounts-CseLC3lL.mjs";
|
|
52
|
-
import { C as q1 } from "../CurrencyInput-
|
|
52
|
+
import { C as q1 } from "../CurrencyInput-BkNVHxSV.mjs";
|
|
53
53
|
import Q1 from "@mui/material/Alert";
|
|
54
54
|
import e3 from "@mui/material/AlertTitle";
|
|
55
55
|
import t3 from "@mui/material/Link";
|
|
56
56
|
import n3 from "@mui/material/Paper";
|
|
57
57
|
import { subDays as o3, startOfToday as i3, endOfToday as c3 } from "date-fns";
|
|
58
|
-
import { T as a3 } from "../EmbeddedCard-
|
|
59
|
-
import { T as s3 } from "../TransactionDetails-
|
|
58
|
+
import { T as a3 } from "../EmbeddedCard-j7IGx3s1.mjs";
|
|
59
|
+
import { T as s3 } from "../TransactionDetails-CN-yZkin.mjs";
|
|
60
60
|
import { T as r1 } from "../TabContentContainer-j01JYR_7.mjs";
|
|
61
|
-
import { f as d1 } from "../NumberFormatting-
|
|
61
|
+
import { f as d1 } from "../NumberFormatting-CyrvFgfd.mjs";
|
|
62
62
|
import { C as l3 } from "../ConnectionsDrawer-IA7vnv1J.mjs";
|
|
63
63
|
import { u as H1 } from "../useScreenSize-CUcpY7aJ.mjs";
|
|
64
64
|
import { u as n1 } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
65
65
|
import { L as o1 } from "../Loader-D3rjKx72.mjs";
|
|
66
|
-
import { W as r3 } from "../WidgetContainer-
|
|
66
|
+
import { W as r3 } from "../WidgetContainer-Bc75FqK7.mjs";
|
|
67
67
|
import { M as v1 } from "../MiniWidgetContainer-Bhkv-hpz.mjs";
|
|
68
|
-
import { A as l2 } from "../
|
|
69
|
-
import { A as d2 } from "../AccountStore-B7zfcad7.mjs";
|
|
68
|
+
import { A as l2 } from "../AccountStore-BeEiLNhW.mjs";
|
|
70
69
|
const d3 = (t, o) => {
|
|
71
|
-
const n = _1.includes(o) ?
|
|
70
|
+
const n = _1.includes(o) ? x1(t) : [], i = L1.includes(o) ? R1(t) : [], c = f1.includes(o) ? S1(t) : [];
|
|
72
71
|
return [n, i, c].filter((l) => l.length > 0);
|
|
73
72
|
}, u3 = (t, o, n) => {
|
|
74
73
|
const [i, c] = t, l = i, u = c ?? i, a = [];
|
|
@@ -85,9 +84,9 @@ const d3 = (t, o) => {
|
|
|
85
84
|
}
|
|
86
85
|
return a;
|
|
87
86
|
}, C3 = () => {
|
|
88
|
-
const t = V1(), { selectedAccount: o } =
|
|
87
|
+
const t = V1(), { selectedAccount: o } = x(), { monthlyCategoryTotals: n } = T1(), { trends: i } = A(), c = [t.palette.chart?.chart1, t.palette.chart?.chart2], l = d3(n, o.account_type), u = u3(l, o.account_type, i), a = [I.LOAN, I.MORTGAGE].includes(o.account_type);
|
|
89
88
|
return /* @__PURE__ */ e("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ e(
|
|
90
|
-
|
|
89
|
+
w1,
|
|
91
90
|
{
|
|
92
91
|
colors: c,
|
|
93
92
|
datasets: l,
|
|
@@ -105,7 +104,7 @@ const d3 = (t, o) => {
|
|
|
105
104
|
valueFormatterString: "0,0"
|
|
106
105
|
}
|
|
107
106
|
) });
|
|
108
|
-
}, h3 =
|
|
107
|
+
}, h3 = b(C3), J = ({
|
|
109
108
|
ariaPressed: t,
|
|
110
109
|
children: o,
|
|
111
110
|
isLast: n = !1,
|
|
@@ -134,12 +133,12 @@ const d3 = (t, o) => {
|
|
|
134
133
|
] })
|
|
135
134
|
}
|
|
136
135
|
), m3 = () => {
|
|
137
|
-
const { accounts: t } = E(), { selectedAccount: o, selectedMember: n } =
|
|
136
|
+
const { accounts: t } = E(), { selectedAccount: o, selectedMember: n } = x();
|
|
138
137
|
return t.filter(
|
|
139
138
|
(i) => i.member_guid === n.guid && n.successfully_aggregated_at && i.guid !== o.guid
|
|
140
139
|
);
|
|
141
140
|
}, p3 = () => {
|
|
142
|
-
const [t, o] = h.useState(!1), [n, i] = h.useState(!1), [c, l] = h.useState(!1), [u, a] = h.useState({}), { selectedAccount: r } =
|
|
141
|
+
const [t, o] = h.useState(!1), [n, i] = h.useState(!1), [c, l] = h.useState(!1), [u, a] = h.useState({}), { selectedAccount: r } = x(), { mergeAccounts: _, updateAccount: p } = E(), { accounts: s } = A(), H = m3(), { onEvent: V } = D(), { modifyTransactionByAccountGuid: M } = m1(), y = async (m) => {
|
|
143
142
|
await p({
|
|
144
143
|
...r,
|
|
145
144
|
...m
|
|
@@ -156,7 +155,7 @@ const d3 = (t, o) => {
|
|
|
156
155
|
{
|
|
157
156
|
ariaPressed: r.is_hidden,
|
|
158
157
|
onClick: () => {
|
|
159
|
-
y({ is_hidden: !r.is_hidden }), V(
|
|
158
|
+
y({ is_hidden: !r.is_hidden }), V(w.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: r.guid });
|
|
160
159
|
},
|
|
161
160
|
primaryText: r.is_hidden ? s.unhide_account : s.hide_Account,
|
|
162
161
|
secondaryText: r.is_hidden ? s.include_this_account : s.exclude_this_account,
|
|
@@ -167,7 +166,7 @@ const d3 = (t, o) => {
|
|
|
167
166
|
J,
|
|
168
167
|
{
|
|
169
168
|
onClick: () => {
|
|
170
|
-
o(!0), V(
|
|
169
|
+
o(!0), V(w.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
|
|
171
170
|
account_guid: r.guid
|
|
172
171
|
});
|
|
173
172
|
},
|
|
@@ -201,7 +200,7 @@ const d3 = (t, o) => {
|
|
|
201
200
|
{
|
|
202
201
|
isLast: !0,
|
|
203
202
|
onClick: () => {
|
|
204
|
-
i(!0), V(
|
|
203
|
+
i(!0), V(w.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
|
|
205
204
|
account_guid: r.guid
|
|
206
205
|
});
|
|
207
206
|
},
|
|
@@ -269,7 +268,7 @@ const d3 = (t, o) => {
|
|
|
269
268
|
}
|
|
270
269
|
)
|
|
271
270
|
] });
|
|
272
|
-
}, _3 =
|
|
271
|
+
}, _3 = b(p3), b1 = (t, o) => {
|
|
273
272
|
const { connection_messages: n } = o;
|
|
274
273
|
switch (t.connection_status) {
|
|
275
274
|
case L.CHALLENGED:
|
|
@@ -430,7 +429,7 @@ const d3 = (t, o) => {
|
|
|
430
429
|
}, L3 = () => {
|
|
431
430
|
const [t, o] = h.useState(!1), {
|
|
432
431
|
palette: { mode: n }
|
|
433
|
-
} = N1(), { selectedMember: i } =
|
|
432
|
+
} = N1(), { selectedMember: i } = x(), { accounts: c, connect: l } = A(), u = b1(i, l), a = p1.includes(i.connection_status) ? {
|
|
434
433
|
color: "error.main",
|
|
435
434
|
ctaCopy: u.cta ?? "",
|
|
436
435
|
icon: /* @__PURE__ */ e(g1, { filled: !0, sx: { ...q } }),
|
|
@@ -523,8 +522,8 @@ const d3 = (t, o) => {
|
|
|
523
522
|
}
|
|
524
523
|
)
|
|
525
524
|
] });
|
|
526
|
-
}, f3 =
|
|
527
|
-
const { updateAccount: i } = E(), { selectedAccount: c } =
|
|
525
|
+
}, f3 = b(L3), g3 = ({ field: t, isOpen: o, onClose: n }) => {
|
|
526
|
+
const { updateAccount: i } = E(), { selectedAccount: c } = x(), { accounts: l } = A(), [u, a] = h.useState(c[t.name]), [r, _] = h.useState(""), [p, s] = h.useState(!0), H = () => {
|
|
528
527
|
a(""), _(""), n();
|
|
529
528
|
}, V = () => {
|
|
530
529
|
switch (t.type) {
|
|
@@ -631,8 +630,8 @@ const d3 = (t, o) => {
|
|
|
631
630
|
children: V()
|
|
632
631
|
}
|
|
633
632
|
);
|
|
634
|
-
}, H3 =
|
|
635
|
-
const t = window.app?.config, { onEvent: o } = D(), { selectedAccount: n } =
|
|
633
|
+
}, H3 = b(g3), v3 = () => {
|
|
634
|
+
const t = window.app?.config, { onEvent: o } = D(), { selectedAccount: n } = x(), { accounts: i } = A(), c = D1(n, i), l = n.member_is_managed_by_user || !n.member_is_managed_by_user && t.enable_renaming_home_accounts, [u, a] = h.useState(!1), [r, _] = h.useState(c[0]), p = c.filter(
|
|
636
635
|
(s) => l || n[s.name] || n[s.name] === 0
|
|
637
636
|
);
|
|
638
637
|
return /* @__PURE__ */ C(R, { children: [
|
|
@@ -705,19 +704,19 @@ const d3 = (t, o) => {
|
|
|
705
704
|
}
|
|
706
705
|
)
|
|
707
706
|
] });
|
|
708
|
-
},
|
|
707
|
+
}, b3 = b(v3), A3 = () => {
|
|
709
708
|
const { onEvent: t } = D();
|
|
710
|
-
return h.useEffect(() => t(
|
|
711
|
-
/* @__PURE__ */ e(
|
|
709
|
+
return h.useEffect(() => t(w.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ C(O, { children: [
|
|
710
|
+
/* @__PURE__ */ e(b3, {}),
|
|
712
711
|
/* @__PURE__ */ e(f3, {}),
|
|
713
712
|
/* @__PURE__ */ e(_3, {})
|
|
714
713
|
] });
|
|
715
|
-
}, V3 =
|
|
716
|
-
const [o, n] = h.useState(!1), { selectedMember: i } =
|
|
714
|
+
}, V3 = b(A3), M3 = ({ setTabValue: t }) => {
|
|
715
|
+
const [o, n] = h.useState(!1), { selectedMember: i } = x(), { accounts: c, connect: l } = A(), u = i.connection_status && p1.includes(i.connection_status);
|
|
717
716
|
if (h.useEffect(() => {
|
|
718
717
|
u && t(1);
|
|
719
718
|
}, [u]), !u) return;
|
|
720
|
-
const a =
|
|
719
|
+
const a = b1(i, l);
|
|
721
720
|
return /* @__PURE__ */ C(R, { children: [
|
|
722
721
|
/* @__PURE__ */ e(
|
|
723
722
|
n3,
|
|
@@ -769,8 +768,8 @@ const d3 = (t, o) => {
|
|
|
769
768
|
}
|
|
770
769
|
)
|
|
771
770
|
] });
|
|
772
|
-
}, y3 =
|
|
773
|
-
const [t, o] = h.useState(""), { onEvent: n } = D(), { selectedAccount: i } =
|
|
771
|
+
}, y3 = b(M3), w3 = () => {
|
|
772
|
+
const [t, o] = h.useState(""), { onEvent: n } = D(), { selectedAccount: i } = x(), { accounts: c } = A(), { isTransactionDataLoaded: l, loadTransactionData: u, setFilter: a, sortedTransactions: r } = m1();
|
|
774
773
|
h.useEffect(() => {
|
|
775
774
|
l || u().finally();
|
|
776
775
|
}, []);
|
|
@@ -783,7 +782,7 @@ const d3 = (t, o) => {
|
|
|
783
782
|
dateRange: { start: o3(i3(), 90), end: c3() },
|
|
784
783
|
accounts: [i.guid]
|
|
785
784
|
});
|
|
786
|
-
}, [i]), h.useEffect(() => n(
|
|
785
|
+
}, [i]), h.useEffect(() => n(w.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ C(R, { children: [
|
|
787
786
|
/* @__PURE__ */ e(a3, { onClick: o }),
|
|
788
787
|
_ && /* @__PURE__ */ e(
|
|
789
788
|
t1,
|
|
@@ -796,8 +795,8 @@ const d3 = (t, o) => {
|
|
|
796
795
|
}
|
|
797
796
|
)
|
|
798
797
|
] });
|
|
799
|
-
},
|
|
800
|
-
const [t, o] = h.useState(0), { accounts: n } =
|
|
798
|
+
}, x3 = b(w3), R3 = () => {
|
|
799
|
+
const [t, o] = h.useState(0), { accounts: n } = A();
|
|
801
800
|
return /* @__PURE__ */ C(R, { children: [
|
|
802
801
|
/* @__PURE__ */ e(y3, { setTabValue: o }),
|
|
803
802
|
/* @__PURE__ */ C(
|
|
@@ -829,11 +828,11 @@ const d3 = (t, o) => {
|
|
|
829
828
|
]
|
|
830
829
|
}
|
|
831
830
|
),
|
|
832
|
-
/* @__PURE__ */ e(r1, { index: 0, name: "transaction-details", value: t, children: /* @__PURE__ */ e(
|
|
831
|
+
/* @__PURE__ */ e(r1, { index: 0, name: "transaction-details", value: t, children: /* @__PURE__ */ e(x3, {}) }),
|
|
833
832
|
/* @__PURE__ */ e(r1, { index: 1, name: "account-details", value: t, children: /* @__PURE__ */ e(V3, {}) })
|
|
834
833
|
] });
|
|
835
|
-
}, S3 =
|
|
836
|
-
const [t, o] = h.useState(""), { accounts: n } =
|
|
834
|
+
}, S3 = b(R3), T3 = () => {
|
|
835
|
+
const [t, o] = h.useState(""), { accounts: n } = A(), { allSelectedAccounts: i } = G(), { setSelectedAccount: c, setSelectedMember: l } = x(), { members: u } = E(), { onEvent: a } = D(), r = [...new Set(i.map((d) => d.account_type))], _ = i.find((d) => t === d.guid), p = h.useMemo(
|
|
837
836
|
() => i.filter((d) => d.is_hidden),
|
|
838
837
|
[i]
|
|
839
838
|
), s = h.useMemo(
|
|
@@ -851,7 +850,7 @@ const d3 = (t, o) => {
|
|
|
851
850
|
}
|
|
852
851
|
}, [_, t]);
|
|
853
852
|
const M = (d) => {
|
|
854
|
-
o(d.guid), a(
|
|
853
|
+
o(d.guid), a(w.ACCOUNTS_CLICK_ACCOUNT, {
|
|
855
854
|
account_guid: d.guid,
|
|
856
855
|
account_type: d.account_type
|
|
857
856
|
});
|
|
@@ -873,8 +872,8 @@ const d3 = (t, o) => {
|
|
|
873
872
|
]
|
|
874
873
|
}
|
|
875
874
|
) }),
|
|
876
|
-
children: /* @__PURE__ */ e(P, { children: m.map((S, F,
|
|
877
|
-
const K = F ===
|
|
875
|
+
children: /* @__PURE__ */ e(P, { children: m.map((S, F, A1) => {
|
|
876
|
+
const K = F === A1.length - 1;
|
|
878
877
|
return /* @__PURE__ */ C(h.Fragment, { children: [
|
|
879
878
|
/* @__PURE__ */ e(
|
|
880
879
|
U,
|
|
@@ -972,8 +971,8 @@ const d3 = (t, o) => {
|
|
|
972
971
|
}
|
|
973
972
|
)
|
|
974
973
|
] });
|
|
975
|
-
}, E3 =
|
|
976
|
-
const [i, c] = h.useState(!1), [l, u] = h.useState(!1), { config: a } = E1(), { isAccountDataLoaded: r, loadAccountData: _ } = E(), { accounts: p, connect: s } =
|
|
974
|
+
}, E3 = b(T3), D3 = ({ onBackClick: t, onMenuClick: o, sx: n = {} }) => {
|
|
975
|
+
const [i, c] = h.useState(!1), [l, u] = h.useState(!1), { config: a } = E1(), { isAccountDataLoaded: r, loadAccountData: _ } = E(), { accounts: p, connect: s } = A(), { isInitialized: H, selectedAccountGuids: V } = G(), { isDesktop: M } = H1(), { onEvent: y } = D();
|
|
977
976
|
n1({
|
|
978
977
|
widgetName: "AccountsWidget",
|
|
979
978
|
isLoaded: r
|
|
@@ -981,9 +980,9 @@ const d3 = (t, o) => {
|
|
|
981
980
|
r || _().finally();
|
|
982
981
|
}, []);
|
|
983
982
|
const d = () => {
|
|
984
|
-
c(!0), y(
|
|
983
|
+
c(!0), y(w.ACCOUNTS_CLICK_CONNECT);
|
|
985
984
|
}, m = () => {
|
|
986
|
-
u(!0), y(
|
|
985
|
+
u(!0), y(w.ACCOUNTS_CLICK_CONNECT);
|
|
987
986
|
};
|
|
988
987
|
return H ? /* @__PURE__ */ C(
|
|
989
988
|
r3,
|
|
@@ -997,7 +996,7 @@ const d3 = (t, o) => {
|
|
|
997
996
|
}
|
|
998
997
|
] : [],
|
|
999
998
|
hasDivider: !0,
|
|
1000
|
-
onAccountsFilterClick: () => y(
|
|
999
|
+
onAccountsFilterClick: () => y(w.ACCOUNTS_CLICK_FILTER),
|
|
1001
1000
|
onBackClick: t,
|
|
1002
1001
|
onMenuClick: o,
|
|
1003
1002
|
sx: n,
|
|
@@ -1026,7 +1025,7 @@ const d3 = (t, o) => {
|
|
|
1026
1025
|
]
|
|
1027
1026
|
}
|
|
1028
1027
|
) : /* @__PURE__ */ e(o1, {});
|
|
1029
|
-
}, Q4 =
|
|
1028
|
+
}, Q4 = b(D3);
|
|
1030
1029
|
function k3(t) {
|
|
1031
1030
|
const { heldAccounts: o, externalAccounts: n } = t.reduce(
|
|
1032
1031
|
(i, c) => (c.member_is_managed_by_user ? i.externalAccounts.push(c) : i.heldAccounts.push(c), i),
|
|
@@ -1051,7 +1050,7 @@ const Z3 = {
|
|
|
1051
1050
|
const u = o.name ?? o.feed_name ?? "", a = n.name ?? n.feed_name ?? "";
|
|
1052
1051
|
return u.localeCompare(a);
|
|
1053
1052
|
}), N3 = ({ onPrimaryCtaClick: t, sx: o }) => {
|
|
1054
|
-
const { isAccountDataLoaded: n, loadAccountData: i } = E(), { accounts: c } =
|
|
1053
|
+
const { isAccountDataLoaded: n, loadAccountData: i } = E(), { accounts: c } = A(), { isInitialized: l, selectedAccounts: u } = G(), { isDesktop: a } = H1();
|
|
1055
1054
|
n1({
|
|
1056
1055
|
widgetName: "AccountsMiniWidget",
|
|
1057
1056
|
isLoaded: l
|
|
@@ -1089,7 +1088,7 @@ const Z3 = {
|
|
|
1089
1088
|
] }) : /* @__PURE__ */ e(h1, { sx: { px: 12, py: 8 }, variant: "list" })
|
|
1090
1089
|
}
|
|
1091
1090
|
) : /* @__PURE__ */ e(o1, {});
|
|
1092
|
-
}, e2 =
|
|
1091
|
+
}, e2 = b(N3), O3 = () => /* @__PURE__ */ C(
|
|
1093
1092
|
"svg",
|
|
1094
1093
|
{
|
|
1095
1094
|
fill: "none",
|
|
@@ -1529,7 +1528,7 @@ const Z3 = {
|
|
|
1529
1528
|
]
|
|
1530
1529
|
}
|
|
1531
1530
|
), F3 = () => {
|
|
1532
|
-
const { connect: t } =
|
|
1531
|
+
const { connect: t } = A();
|
|
1533
1532
|
return /* @__PURE__ */ C(e1, { alignItems: "center", direction: "column", m: 24, children: [
|
|
1534
1533
|
/* @__PURE__ */ e(O3, {}),
|
|
1535
1534
|
/* @__PURE__ */ e(
|
|
@@ -1545,12 +1544,12 @@ const Z3 = {
|
|
|
1545
1544
|
}
|
|
1546
1545
|
)
|
|
1547
1546
|
] });
|
|
1548
|
-
}, P3 =
|
|
1547
|
+
}, P3 = b(F3), W3 = ({
|
|
1549
1548
|
onPrimaryCtaClick: t = () => {
|
|
1550
1549
|
},
|
|
1551
1550
|
sx: o
|
|
1552
1551
|
}) => {
|
|
1553
|
-
const { isCopyLoaded: n } = G(), { connect: i } =
|
|
1552
|
+
const { isCopyLoaded: n } = G(), { connect: i } = A(), [c, l] = h.useState(!1), u = () => {
|
|
1554
1553
|
l(!0), t();
|
|
1555
1554
|
};
|
|
1556
1555
|
return n1({
|
|
@@ -1577,12 +1576,11 @@ const Z3 = {
|
|
|
1577
1576
|
]
|
|
1578
1577
|
}
|
|
1579
1578
|
) : /* @__PURE__ */ e(o1, {});
|
|
1580
|
-
}, t2 =
|
|
1579
|
+
}, t2 = b(W3);
|
|
1581
1580
|
export {
|
|
1582
|
-
l2 as AccountApi,
|
|
1583
1581
|
S3 as AccountDetailsContent,
|
|
1584
1582
|
y1 as AccountDetailsHeader,
|
|
1585
|
-
|
|
1583
|
+
l2 as AccountStore,
|
|
1586
1584
|
e2 as AccountsMiniWidget,
|
|
1587
1585
|
Q4 as AccountsWidget,
|
|
1588
1586
|
t2 as ConnectMiniWidget,
|
|
@@ -1590,6 +1588,6 @@ export {
|
|
|
1590
1588
|
a2 as MemberConnectionStatus,
|
|
1591
1589
|
i2 as getAccountBalanceDetails,
|
|
1592
1590
|
D1 as getAccountDetailFields,
|
|
1593
|
-
|
|
1591
|
+
x as useAccountUiStore,
|
|
1594
1592
|
m3 as useGetMergeableAccounts
|
|
1595
1593
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GlobalStore } from '../../common';
|
|
2
2
|
import { Account, DetailedAccount, Institution, Member, AccountType } from '../../core';
|
|
3
|
-
import { AccountApi } from '
|
|
3
|
+
import { AccountApi } from '../../core/api/AccountApi';
|
|
4
4
|
import { UiStore } from './UiStore';
|
|
5
5
|
export declare class AccountStore {
|
|
6
6
|
globalStore: GlobalStore;
|
package/dist/budgets/index.es.js
CHANGED
|
@@ -13,17 +13,17 @@ import Y from "@mui/material/Box";
|
|
|
13
13
|
import X from "@mui/material/List";
|
|
14
14
|
import { Text as C, CategoryIcon as H, Icon as z, H3 as Le } from "@mxenabled/mxui";
|
|
15
15
|
import { u as E, m as w, i as le, l as Z, p as de, a as Ne, g as q, b as J, h as Q, d as ke } from "../hooks-BxkfR-Ff.mjs";
|
|
16
|
-
import { f as D } from "../NumberFormatting-
|
|
16
|
+
import { f as D } from "../NumberFormatting-CyrvFgfd.mjs";
|
|
17
17
|
import $e from "@mui/material/Button";
|
|
18
18
|
import ue from "@mui/material/Divider";
|
|
19
19
|
import ee from "@mui/material/ListItem";
|
|
20
20
|
import me from "@mui/material/ListItemAvatar";
|
|
21
21
|
import te from "@mui/material/ListItemButton";
|
|
22
22
|
import oe from "@mui/material/ListItemText";
|
|
23
|
-
import { b as R } from "../Localization-
|
|
23
|
+
import { b as R } from "../Localization-CkQ49EKr.mjs";
|
|
24
24
|
import { D as $ } from "../Drawer-Bbe4AMB1.mjs";
|
|
25
25
|
import Xe from "@mui/material/ListItemSecondaryAction";
|
|
26
|
-
import { C as Ze } from "../CurrencyInput-
|
|
26
|
+
import { C as Ze } from "../CurrencyInput-BkNVHxSV.mjs";
|
|
27
27
|
import { D as W } from "../Dialog-Ck34yr-d.mjs";
|
|
28
28
|
import { C as qe } from "../ConnectionsDrawer-IA7vnv1J.mjs";
|
|
29
29
|
import * as O from "d3";
|
|
@@ -35,23 +35,23 @@ import { E as _e } from "../EmptyState-DHAkGsjk.mjs";
|
|
|
35
35
|
import { A as P } from "../Analytics-0Xm_BjHU.mjs";
|
|
36
36
|
import Ee from "@mui/material/Tab";
|
|
37
37
|
import et from "@mui/material/Tabs";
|
|
38
|
-
import { e as tt } from "../exportTransactionsToCSV-
|
|
39
|
-
import { T as ve } from "../EmbeddedCard-
|
|
40
|
-
import { T as ot, c as nt } from "../TransactionDetails-
|
|
38
|
+
import { e as tt } from "../exportTransactionsToCSV-Dnd5lVq7.mjs";
|
|
39
|
+
import { T as ve } from "../EmbeddedCard-j7IGx3s1.mjs";
|
|
40
|
+
import { T as ot, c as nt } from "../TransactionDetails-CN-yZkin.mjs";
|
|
41
41
|
import Te from "@mui/material/Card";
|
|
42
42
|
import De from "@mui/material/CardContent";
|
|
43
43
|
import { S as Se } from "../StatusBar-BK_uYHAB.mjs";
|
|
44
44
|
import { S as Pe } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
45
|
-
import { u as at, b as rt } from "../CategorySelectorDrawer-
|
|
45
|
+
import { u as at, b as rt } from "../CategorySelectorDrawer-BG04ByUx.mjs";
|
|
46
46
|
import je from "@mui/material/CardHeader";
|
|
47
47
|
import { subDays as st } from "date-fns/subDays";
|
|
48
48
|
import it from "@mui/material/IconButton";
|
|
49
|
-
import { M as ct } from "../ManageIncome-
|
|
49
|
+
import { M as ct } from "../ManageIncome-DwSE_a8L.mjs";
|
|
50
50
|
import { u as ze } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
51
|
-
import { W as lt } from "../WidgetContainer-
|
|
52
|
-
import { u as dt,
|
|
51
|
+
import { W as lt } from "../WidgetContainer-Bc75FqK7.mjs";
|
|
52
|
+
import { u as dt, l as ut, C as mt } from "../BudgetUtil-CLh4xtj4.mjs";
|
|
53
53
|
import { M as gt } from "../MiniWidgetContainer-Bhkv-hpz.mjs";
|
|
54
|
-
import { b as we } from "../CategoryUtil-
|
|
54
|
+
import { b as we } from "../CategoryUtil-DKRCegQv.mjs";
|
|
55
55
|
const pt = I(() => {
|
|
56
56
|
const { budgets: t } = E(), { totalBudgeted: n } = w(), { incomeTotal: c } = le(), i = c - n;
|
|
57
57
|
return /* @__PURE__ */ m(A, { direction: "row", justifyContent: "center", my: 16, spacing: 20, children: [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Theme } from '@mui/system';
|
|
2
2
|
import { GlobalStore } from '../../common';
|
|
3
3
|
import { Budget, Category, DateRange, DetailedBudget, DetailedCategory } from '../../core';
|
|
4
|
-
import { BudgetsApi } from '
|
|
4
|
+
import { BudgetsApi } from '../../core/api/BudgetsApi';
|
|
5
5
|
import { MerchantBudget } from '../../core/types/Budget';
|
|
6
6
|
export declare class BudgetsStore {
|
|
7
7
|
api: BudgetsApi;
|
package/dist/cashflow/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { default as CashflowMiniWidget } from './CashflowMiniWidget';
|
|
2
2
|
export { default as CashflowWidget } from './CashflowWidget';
|
|
3
3
|
export { default as CashflowOnboarding } from './CashflowOnboarding';
|
|
4
|
-
export { CashflowApi } from './api/CashflowApi';
|
|
5
4
|
export { CashflowStore } from './stores/CashflowStore';
|