@mx-cartographer/experiences 9.1.1 → 9.1.2
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 -0
- package/dist/{AccountDetailsDrawer-C1hhmlmI.mjs → AccountDetailsDrawer-Cq4kiiKD.mjs} +4 -4
- package/dist/{AccountDetailsDrawer-C1hhmlmI.mjs.map → AccountDetailsDrawer-Cq4kiiKD.mjs.map} +1 -1
- package/dist/{Analytics-WeZYytR0.mjs → Analytics-D-jdcL72.mjs} +3 -3
- package/dist/Analytics-D-jdcL72.mjs.map +1 -0
- package/dist/{EmbeddedCard-DH8vQ3qN.mjs → EmbeddedCard-DCOQnTz-.mjs} +2 -2
- package/dist/{EmbeddedCard-DH8vQ3qN.mjs.map → EmbeddedCard-DCOQnTz-.mjs.map} +1 -1
- package/dist/{ExportCsvAction-C9KWH3Az.mjs → ExportCsvAction-C-IisDcv.mjs} +2 -2
- package/dist/{ExportCsvAction-C9KWH3Az.mjs.map → ExportCsvAction-C-IisDcv.mjs.map} +1 -1
- package/dist/{Help-aERwhajy.mjs → Help-zVZdcmlk.mjs} +2 -2
- package/dist/{Help-aERwhajy.mjs.map → Help-zVZdcmlk.mjs.map} +1 -1
- package/dist/{ManageIncome-Be9WHv-s.mjs → ManageIncome-B_8i71mE.mjs} +5 -5
- package/dist/{ManageIncome-Be9WHv-s.mjs.map → ManageIncome-B_8i71mE.mjs.map} +1 -1
- package/dist/{RecurringSettings-kRqAViNn.mjs → RecurringSettings-hs0YUp83.mjs} +3 -3
- package/dist/{RecurringSettings-kRqAViNn.mjs.map → RecurringSettings-hs0YUp83.mjs.map} +1 -1
- package/dist/{TransactionDetails-roZ5xLq8.mjs → TransactionDetails-DT-MQqOB.mjs} +3 -3
- package/dist/{TransactionDetails-roZ5xLq8.mjs.map → TransactionDetails-DT-MQqOB.mjs.map} +1 -1
- package/dist/{WidgetContainer-DJnp6t6c.mjs → WidgetContainer-CjdCY4sj.mjs} +21 -21
- package/dist/WidgetContainer-CjdCY4sj.mjs.map +1 -0
- package/dist/accounts/index.es.js +4 -4
- package/dist/budgets/index.es.js +5 -5
- package/dist/cashflow/index.es.js +6 -6
- package/dist/common/components/daterangeselector/DateRangeSelector.d.ts +5 -0
- package/dist/common/index.es.js +2 -2
- package/dist/debts/index.es.js +2 -2
- package/dist/finstrong/index.es.js +4 -4
- package/dist/goals/index.es.js +2 -2
- package/dist/help/index.es.js +2 -2
- package/dist/insights/index.es.js +2 -2
- package/dist/investments/index.es.js +2 -2
- package/dist/networth/index.es.js +78 -76
- package/dist/networth/index.es.js.map +1 -1
- package/dist/recurringtransactions/index.es.js +6 -6
- package/dist/settings/index.es.js +2 -2
- package/dist/spending/index.es.js +4 -4
- package/dist/transactions/index.es.js +7 -7
- package/dist/trends/index.es.js +5 -5
- package/package.json +1 -1
- package/dist/Analytics-WeZYytR0.mjs.map +0 -1
- package/dist/WidgetContainer-DJnp6t6c.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e, Fragment as N } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import x from "react";
|
|
3
3
|
import { observer as _ } from "mobx-react-lite";
|
|
4
4
|
import m from "@mui/material/Stack";
|
|
5
5
|
import { P as Y, Text as d, Icon as R } from "@mxenabled/mxui";
|
|
@@ -7,7 +7,7 @@ import { Icon as Z } from "@mxenabled/mx-icons";
|
|
|
7
7
|
import { f as F } from "../NumberFormatting--XMeeBfr.mjs";
|
|
8
8
|
import { c as oe, f as $, u as E, a as q, x as j, D as re } from "../hooks-97sNJ_lf.mjs";
|
|
9
9
|
import { u as J } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
|
|
10
|
-
import { A as v } from "../Analytics-
|
|
10
|
+
import { A as v } from "../Analytics-D-jdcL72.mjs";
|
|
11
11
|
import { L as Q } from "../Loader-CxeBwuPG.mjs";
|
|
12
12
|
import { M as ie } from "../MicroWidgetContainer-B2NnKBgW.mjs";
|
|
13
13
|
import { format as ae, fromUnixTime as se, differenceInMonths as ce } from "date-fns";
|
|
@@ -19,20 +19,20 @@ import { L as me } from "../LineChart-CUfiH86G.mjs";
|
|
|
19
19
|
import { u as ee } from "../useScreenSize-mWpmnh5w.mjs";
|
|
20
20
|
import { f as he, D as pe } from "../DateFormats-HudZ3Bjs.mjs";
|
|
21
21
|
import ue from "@mui/material/Button";
|
|
22
|
-
import
|
|
22
|
+
import I from "@mui/material/Divider";
|
|
23
23
|
import z from "@mui/material/List";
|
|
24
24
|
import A from "@mui/material/ListSubheader";
|
|
25
25
|
import O from "@mui/material/ListItem";
|
|
26
26
|
import te from "@mui/material/ListItemButton";
|
|
27
27
|
import b from "@mui/material/ListItemText";
|
|
28
28
|
import { l as ne } from "../DateUtil-CzBmbjmA.mjs";
|
|
29
|
-
import { C as
|
|
29
|
+
import { C as f } from "../CurrencyText-CCbE6MmF.mjs";
|
|
30
30
|
import { Stack as fe } from "@mui/material";
|
|
31
31
|
import xe from "@mui/material/Collapse";
|
|
32
32
|
import K from "@mui/material/ListItemIcon";
|
|
33
33
|
import { g as U } from "../NetWorthUtils-Dj7CgAg2.mjs";
|
|
34
34
|
import { D as V } from "../Drawer-DsnW2o0v.mjs";
|
|
35
|
-
import { W as ge } from "../WidgetContainer-
|
|
35
|
+
import { W as ge } from "../WidgetContainer-CjdCY4sj.mjs";
|
|
36
36
|
import { E as ye } from "../EmptyState-CJUDc3kD.mjs";
|
|
37
37
|
const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
38
38
|
const n = i > 0, o = i === 0 ? "trending_flat" : n ? "trending_up" : "trending_down";
|
|
@@ -53,13 +53,13 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
53
53
|
/* @__PURE__ */ e(Y, { sx: { color: "text.secondary" }, variant: "body2", children: t.zero_state_description })
|
|
54
54
|
] })
|
|
55
55
|
] }), gt = _(({ onCTAClick: t }) => {
|
|
56
|
-
const { visibleAccounts: s } = oe(), { onEvent: i } = $(), { net_worth: n, common: a } = E(), { isInitialized: o } = q(), { isNetWorthDataLoaded: c, loadNetWorthData: l, netWorthData: g, selectedData:
|
|
57
|
-
if (
|
|
56
|
+
const { visibleAccounts: s } = oe(), { onEvent: i } = $(), { net_worth: n, common: a } = E(), { isInitialized: o } = q(), { isNetWorthDataLoaded: c, loadNetWorthData: l, netWorthData: g, selectedData: u } = j();
|
|
57
|
+
if (x.useEffect(() => {
|
|
58
58
|
c || l().finally();
|
|
59
59
|
}, []), J({
|
|
60
60
|
widgetName: "NetWorthMicroWidget",
|
|
61
61
|
isLoaded: c
|
|
62
|
-
}),
|
|
62
|
+
}), x.useEffect(() => {
|
|
63
63
|
c && i(v.NET_WORTH_LOAD_WIDGET, {
|
|
64
64
|
state: s?.length ? "default" : "zeroState"
|
|
65
65
|
});
|
|
@@ -79,9 +79,9 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
79
79
|
children: g.accounts.length ? /* @__PURE__ */ e(
|
|
80
80
|
Ce,
|
|
81
81
|
{
|
|
82
|
-
amount:
|
|
82
|
+
amount: u?.y,
|
|
83
83
|
copy: n,
|
|
84
|
-
trendValue:
|
|
84
|
+
trendValue: u?.change
|
|
85
85
|
}
|
|
86
86
|
) : /* @__PURE__ */ e(be, { copy: n })
|
|
87
87
|
}
|
|
@@ -93,18 +93,18 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
93
93
|
selectedData: o,
|
|
94
94
|
setHoveredIndex: c,
|
|
95
95
|
setSelectedIndex: l
|
|
96
|
-
} = j(), g = s - 320,
|
|
96
|
+
} = j(), g = s - 320, u = a.map((h) => ({
|
|
97
97
|
x: he(de(h.x), pe.MONTH_SHORT),
|
|
98
98
|
y: h.y
|
|
99
|
-
})), W = o ? { index: a.findIndex((h) => h.x === o.x) } : void 0,
|
|
99
|
+
})), W = o ? { index: a.findIndex((h) => h.x === o.x) } : void 0, y = n ? { index: a.findIndex((h) => h.x === n.x) } : void 0, w = (h) => ({
|
|
100
100
|
fill: h === W?.index ? i.palette.success.main : "",
|
|
101
|
-
filter: h ===
|
|
101
|
+
filter: h === y?.index ? `drop-shadow(0px 0px 10px ${i.palette.success.main})` : "none",
|
|
102
102
|
stroke: i.palette.success.main
|
|
103
|
-
}),
|
|
103
|
+
}), L = (h, M) => {
|
|
104
104
|
l(M);
|
|
105
|
-
},
|
|
105
|
+
}, D = (h) => {
|
|
106
106
|
c(h);
|
|
107
|
-
},
|
|
107
|
+
}, k = () => {
|
|
108
108
|
c(-1);
|
|
109
109
|
};
|
|
110
110
|
return /* @__PURE__ */ e(m, { sx: { width: "100%" }, children: /* @__PURE__ */ e(
|
|
@@ -115,11 +115,11 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
115
115
|
chartXaxisSx: { "& .MuiChartsAxis-tickLabel": { transform: "translateX(8px)" } },
|
|
116
116
|
chartYaxisSx: { "& .MuiChartsAxis-tickLabel": { transform: "translateX(-8px)" } },
|
|
117
117
|
colors: [i.palette.success.main],
|
|
118
|
-
datasets: [
|
|
118
|
+
datasets: [u],
|
|
119
119
|
height: 350,
|
|
120
120
|
labels: [],
|
|
121
121
|
margin: { right: 20, left: 38 },
|
|
122
|
-
markHandlers: { onMarkClick:
|
|
122
|
+
markHandlers: { onMarkClick: L, onMouseEnter: D, onMouseLeave: k },
|
|
123
123
|
markStyles: w,
|
|
124
124
|
showArea: !0,
|
|
125
125
|
useCustomMark: !0,
|
|
@@ -136,12 +136,12 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
136
136
|
onMouseEnter: o,
|
|
137
137
|
onMouseLeave: c
|
|
138
138
|
}) => {
|
|
139
|
-
const [l, g] =
|
|
139
|
+
const [l, g] = x.useState({
|
|
140
140
|
color: ""
|
|
141
141
|
});
|
|
142
|
-
return
|
|
142
|
+
return x.useEffect(() => {
|
|
143
143
|
g(s(t));
|
|
144
|
-
}, [i, n]), /* @__PURE__ */ r(
|
|
144
|
+
}, [i, n]), /* @__PURE__ */ r(x.Fragment, { children: [
|
|
145
145
|
/* @__PURE__ */ e(
|
|
146
146
|
O,
|
|
147
147
|
{
|
|
@@ -153,7 +153,7 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
153
153
|
children: /* @__PURE__ */ e(
|
|
154
154
|
te,
|
|
155
155
|
{
|
|
156
|
-
onClick: (
|
|
156
|
+
onClick: (u) => a?.(u, t.x),
|
|
157
157
|
onMouseEnter: () => o(t.x),
|
|
158
158
|
onMouseLeave: () => c(),
|
|
159
159
|
sx: { minHeight: 20, padding: 12 },
|
|
@@ -162,7 +162,7 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
162
162
|
{
|
|
163
163
|
primary: /* @__PURE__ */ r(m, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
|
164
164
|
/* @__PURE__ */ e(d, { variant: "body1", children: ne(t.x) }),
|
|
165
|
-
/* @__PURE__ */ e(
|
|
165
|
+
/* @__PURE__ */ e(f, { amount: t.y, sx: { color: "inherit" }, variant: "body1" })
|
|
166
166
|
] })
|
|
167
167
|
}
|
|
168
168
|
)
|
|
@@ -170,7 +170,7 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
170
170
|
)
|
|
171
171
|
}
|
|
172
172
|
),
|
|
173
|
-
/* @__PURE__ */ e(
|
|
173
|
+
/* @__PURE__ */ e(I, {})
|
|
174
174
|
] }, t.x);
|
|
175
175
|
}, We = _(ve), Se = ({
|
|
176
176
|
currencyLabel: t,
|
|
@@ -191,10 +191,10 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
),
|
|
194
|
-
/* @__PURE__ */ e(
|
|
194
|
+
/* @__PURE__ */ e(f, { amount: n.change, color: c, variant: s }),
|
|
195
195
|
/* @__PURE__ */ e(d, { variant: "body2", children: t })
|
|
196
196
|
] });
|
|
197
|
-
}, B = _(Se),
|
|
197
|
+
}, B = _(Se), Te = ({
|
|
198
198
|
netWorth: t,
|
|
199
199
|
gains: s,
|
|
200
200
|
losses: i,
|
|
@@ -214,18 +214,18 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
214
214
|
{
|
|
215
215
|
primary: /* @__PURE__ */ r(m, { direction: "row", justifyContent: "space-between", children: [
|
|
216
216
|
/* @__PURE__ */ e(d, { sx: { fontWeight: 700 }, variant: "caption", children: o.gains }),
|
|
217
|
-
/* @__PURE__ */ e(
|
|
217
|
+
/* @__PURE__ */ e(f, { amount: n, sx: { fontWeight: 400 }, variant: "caption" })
|
|
218
218
|
] })
|
|
219
219
|
}
|
|
220
220
|
) }),
|
|
221
|
-
s?.map((l) => /* @__PURE__ */ r(
|
|
221
|
+
s?.map((l) => /* @__PURE__ */ r(x.Fragment, { children: [
|
|
222
222
|
/* @__PURE__ */ e(O, { sx: { backgroundColor: c.palette.background.paper, py: 14 }, children: /* @__PURE__ */ e(
|
|
223
223
|
b,
|
|
224
224
|
{
|
|
225
225
|
primary: /* @__PURE__ */ r(m, { direction: "row", justifyContent: "space-between", children: [
|
|
226
226
|
/* @__PURE__ */ e(d, { sx: { mr: 10 }, variant: "body1", children: l.accountName }),
|
|
227
227
|
/* @__PURE__ */ e(
|
|
228
|
-
|
|
228
|
+
f,
|
|
229
229
|
{
|
|
230
230
|
amount: l.gain,
|
|
231
231
|
sx: { color: c.palette.success.main, flexShrink: 0, fontWeight: 700 },
|
|
@@ -236,14 +236,14 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
236
236
|
sx: { px: 16 }
|
|
237
237
|
}
|
|
238
238
|
) }),
|
|
239
|
-
/* @__PURE__ */ e(
|
|
239
|
+
/* @__PURE__ */ e(I, {})
|
|
240
240
|
] }, l.accountName)),
|
|
241
241
|
/* @__PURE__ */ e(A, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
|
|
242
242
|
b,
|
|
243
243
|
{
|
|
244
244
|
primary: /* @__PURE__ */ r(m, { direction: "row", justifyContent: "space-between", children: [
|
|
245
245
|
/* @__PURE__ */ e(d, { sx: { fontWeight: 700 }, variant: "caption", children: o.losses }),
|
|
246
|
-
/* @__PURE__ */ e(
|
|
246
|
+
/* @__PURE__ */ e(f, { amount: a, sx: { fontWeight: 400 }, variant: "caption" })
|
|
247
247
|
] })
|
|
248
248
|
}
|
|
249
249
|
) }),
|
|
@@ -267,7 +267,7 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
267
267
|
}
|
|
268
268
|
),
|
|
269
269
|
/* @__PURE__ */ e(
|
|
270
|
-
|
|
270
|
+
f,
|
|
271
271
|
{
|
|
272
272
|
amount: l.loss,
|
|
273
273
|
sx: { flexShrink: 0, fontWeight: 700 },
|
|
@@ -281,12 +281,12 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
281
281
|
},
|
|
282
282
|
l.accountName
|
|
283
283
|
),
|
|
284
|
-
/* @__PURE__ */ e(
|
|
284
|
+
/* @__PURE__ */ e(I, {})
|
|
285
285
|
] }))
|
|
286
286
|
] })
|
|
287
287
|
] });
|
|
288
|
-
},
|
|
289
|
-
const [n, a] =
|
|
288
|
+
}, Ie = _(Te), Le = ({ accounts: t, name: s, icon: i }) => {
|
|
289
|
+
const [n, a] = x.useState(!1);
|
|
290
290
|
return /* @__PURE__ */ r(N, { children: [
|
|
291
291
|
/* @__PURE__ */ e(O, { sx: (o) => ({ backgroundColor: o.palette.background.paper }), children: /* @__PURE__ */ r(te, { onClick: () => a(!n), children: [
|
|
292
292
|
i && /* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(R, { name: i, size: 24, sx: { mr: 12 } }) }),
|
|
@@ -298,7 +298,7 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
298
298
|
),
|
|
299
299
|
/* @__PURE__ */ e(K, { children: n ? /* @__PURE__ */ e(R, { name: "expand_less", size: 24 }) : /* @__PURE__ */ e(R, { name: "expand_more", size: 24 }) })
|
|
300
300
|
] }) }),
|
|
301
|
-
/* @__PURE__ */ e(
|
|
301
|
+
/* @__PURE__ */ e(I, {}),
|
|
302
302
|
/* @__PURE__ */ e(xe, { in: n, timeout: "auto", unmountOnExit: !0, children: t.map((o, c) => /* @__PURE__ */ r(z, { children: [
|
|
303
303
|
/* @__PURE__ */ e(O, { sx: () => ({ py: 14 }), children: /* @__PURE__ */ e(
|
|
304
304
|
b,
|
|
@@ -315,7 +315,7 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
315
315
|
}
|
|
316
316
|
),
|
|
317
317
|
/* @__PURE__ */ e(
|
|
318
|
-
|
|
318
|
+
f,
|
|
319
319
|
{
|
|
320
320
|
amount: o.balance,
|
|
321
321
|
sx: {
|
|
@@ -328,7 +328,7 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
328
328
|
sx: { pl: 72, pr: 16 }
|
|
329
329
|
}
|
|
330
330
|
) }),
|
|
331
|
-
c < t.length - 1 ? /* @__PURE__ */ e(
|
|
331
|
+
c < t.length - 1 ? /* @__PURE__ */ e(I, { variant: "inset" }) : /* @__PURE__ */ e(I, {})
|
|
332
332
|
] }, o.accountName)) })
|
|
333
333
|
] });
|
|
334
334
|
}, X = ({ groupedAccounts: t }) => /* @__PURE__ */ e(N, { children: t.map(({ accounts: s, icon: i, name: n }) => /* @__PURE__ */ e(Le, { accounts: s, icon: i, name: n }, n)) }), De = ({
|
|
@@ -353,7 +353,7 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
353
353
|
},
|
|
354
354
|
children: [
|
|
355
355
|
/* @__PURE__ */ e(d, { variant: "body1", children: o.current_net_worth }),
|
|
356
|
-
/* @__PURE__ */ e(
|
|
356
|
+
/* @__PURE__ */ e(f, { amount: t?.y ?? 0, variant: "h1" }),
|
|
357
357
|
t && /* @__PURE__ */ e(
|
|
358
358
|
B,
|
|
359
359
|
{
|
|
@@ -372,7 +372,7 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
372
372
|
{
|
|
373
373
|
primary: /* @__PURE__ */ r(m, { direction: "row", justifyContent: "space-between", children: [
|
|
374
374
|
/* @__PURE__ */ e(d, { sx: { fontWeight: 700 }, variant: "caption", children: o.assets }),
|
|
375
|
-
/* @__PURE__ */ e(
|
|
375
|
+
/* @__PURE__ */ e(f, { amount: n, sx: { fontWeight: 400 }, variant: "caption" })
|
|
376
376
|
] })
|
|
377
377
|
}
|
|
378
378
|
) }),
|
|
@@ -383,7 +383,7 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
383
383
|
primary: /* @__PURE__ */ r(m, { direction: "row", justifyContent: "space-between", children: [
|
|
384
384
|
/* @__PURE__ */ e(d, { sx: { fontWeight: 700 }, variant: "caption", children: o.liabilities }),
|
|
385
385
|
/* @__PURE__ */ e(
|
|
386
|
-
|
|
386
|
+
f,
|
|
387
387
|
{
|
|
388
388
|
amount: a,
|
|
389
389
|
sx: { fontWeight: 400 },
|
|
@@ -404,18 +404,18 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
404
404
|
netWorthChartData: c,
|
|
405
405
|
selectedData: l,
|
|
406
406
|
setHoveredIndex: g,
|
|
407
|
-
setSelectedIndex:
|
|
408
|
-
} = j(), [W,
|
|
409
|
-
const C = p.x === o?.x,
|
|
407
|
+
setSelectedIndex: u
|
|
408
|
+
} = j(), [W, y] = x.useState(!1), [w, L] = x.useState(!1), D = (p) => {
|
|
409
|
+
const C = p.x === o?.x, S = p.x === l?.x, T = {
|
|
410
410
|
backgroundColor: "inherit",
|
|
411
411
|
borderBottom: "inherit",
|
|
412
412
|
color: "inherit"
|
|
413
413
|
};
|
|
414
|
-
return C && (T.color =
|
|
415
|
-
},
|
|
416
|
-
|
|
414
|
+
return C && (T.color = S ? "inherit" : T.color, T.backgroundColor = s.palette.action.hover), S && (T.backgroundColor = s.palette.primary.main, T.borderBottom = s.palette.neutral.light, T.color = s.palette.common.white), T;
|
|
415
|
+
}, k = (p, C) => {
|
|
416
|
+
u(C), p.currentTarget instanceof HTMLDivElement && y(!0);
|
|
417
417
|
}, h = () => {
|
|
418
|
-
|
|
418
|
+
L(!0), i(v.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES);
|
|
419
419
|
}, M = (p) => {
|
|
420
420
|
g(p);
|
|
421
421
|
}, G = () => {
|
|
@@ -424,15 +424,15 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
424
424
|
return /* @__PURE__ */ r(m, { direction: "column", sx: { width: 320 }, children: [
|
|
425
425
|
/* @__PURE__ */ r(z, { children: [
|
|
426
426
|
/* @__PURE__ */ e(A, { sx: { backgroundColor: "transparent", mb: 8, mt: 12, px: 12 }, children: /* @__PURE__ */ e(d, { bold: !0, component: "h2", variant: "body1", children: t.monthly_totals }) }),
|
|
427
|
-
/* @__PURE__ */ e(
|
|
427
|
+
/* @__PURE__ */ e(I, {}),
|
|
428
428
|
c.map((p, C) => /* @__PURE__ */ e(
|
|
429
429
|
We,
|
|
430
430
|
{
|
|
431
|
-
getStyles:
|
|
431
|
+
getStyles: D,
|
|
432
432
|
isHovered: p.x === o?.x,
|
|
433
433
|
isSelected: p.x === l?.x,
|
|
434
434
|
item: p,
|
|
435
|
-
onItemClick: (
|
|
435
|
+
onItemClick: (S) => k(S, C),
|
|
436
436
|
onMouseEnter: () => M(C),
|
|
437
437
|
onMouseLeave: () => G()
|
|
438
438
|
},
|
|
@@ -453,11 +453,11 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
453
453
|
{
|
|
454
454
|
ariaLabelClose: "Close",
|
|
455
455
|
isOpen: W,
|
|
456
|
-
onClose: () =>
|
|
456
|
+
onClose: () => y(!1),
|
|
457
457
|
shouldShowHeaderBorders: !1,
|
|
458
458
|
shouldShowHeaderShadow: !0,
|
|
459
459
|
title: t.gains_and_losses,
|
|
460
|
-
children: a && /* @__PURE__ */ e(
|
|
460
|
+
children: a && /* @__PURE__ */ e(Ie, { ...a })
|
|
461
461
|
}
|
|
462
462
|
),
|
|
463
463
|
/* @__PURE__ */ e(
|
|
@@ -465,7 +465,7 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
465
465
|
{
|
|
466
466
|
ariaLabelClose: "Close",
|
|
467
467
|
isOpen: w,
|
|
468
|
-
onClose: () =>
|
|
468
|
+
onClose: () => L(!1),
|
|
469
469
|
shouldShowHeaderBorders: !1,
|
|
470
470
|
shouldShowHeaderShadow: !0,
|
|
471
471
|
title: t.assets_and_liabilities,
|
|
@@ -477,7 +477,7 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
477
477
|
const { net_worth: i } = E(), n = H(), a = t || s, o = ae(se(a.x), "MMMM");
|
|
478
478
|
return /* @__PURE__ */ r(m, { alignItems: "center", direction: "column", m: 24, children: [
|
|
479
479
|
/* @__PURE__ */ e(d, { color: n.palette.secondary.main, variant: "body2", children: `${o} ${i.net_worth}` }),
|
|
480
|
-
/* @__PURE__ */ e(
|
|
480
|
+
/* @__PURE__ */ e(f, { amount: a.y, variant: "h2" }),
|
|
481
481
|
/* @__PURE__ */ e(B, { currencyLabel: i.this_month, netWorth: a, theme: n })
|
|
482
482
|
] });
|
|
483
483
|
}, Ae = _(Me), yt = _(({ onBackClick: t, onMenuClick: s }) => {
|
|
@@ -486,32 +486,34 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
486
486
|
isNetWorthDataLoaded: c,
|
|
487
487
|
loadNetWorthData: l,
|
|
488
488
|
netWorthChartData: g,
|
|
489
|
-
selectedData:
|
|
490
|
-
setTimeframe: W
|
|
491
|
-
|
|
492
|
-
} = j(), { isMobile: w } = ee(), { onEvent: y } = $(), [k, D] = u.useState(!1);
|
|
489
|
+
selectedData: u,
|
|
490
|
+
setTimeframe: W
|
|
491
|
+
} = j(), { isMobile: y } = ee(), { onEvent: w } = $(), [L, D] = x.useState(!1);
|
|
493
492
|
J({
|
|
494
493
|
widgetName: "NetWorthWidget",
|
|
495
494
|
isLoaded: c
|
|
496
|
-
}),
|
|
497
|
-
c || l().finally(),
|
|
498
|
-
}, [])
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
495
|
+
}), x.useEffect(() => {
|
|
496
|
+
c || l().finally(), w(v.NET_WORTH_VIEW);
|
|
497
|
+
}, []);
|
|
498
|
+
const k = async (p) => {
|
|
499
|
+
const C = p[0], S = p[1];
|
|
500
|
+
C && S && W(ce(S, C));
|
|
501
|
+
}, h = (p) => {
|
|
502
|
+
w(v.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: p + "M" });
|
|
504
503
|
}, M = () => {
|
|
505
|
-
D(!0),
|
|
504
|
+
D(!0), w(v.ACCOUNTS_CLICK_CONNECT);
|
|
506
505
|
};
|
|
507
506
|
if (!i || !c) return /* @__PURE__ */ e(Q, {});
|
|
508
507
|
const G = g.length === 0;
|
|
509
508
|
return /* @__PURE__ */ r(
|
|
510
509
|
ge,
|
|
511
510
|
{
|
|
512
|
-
calendarActions: {
|
|
513
|
-
|
|
514
|
-
|
|
511
|
+
calendarActions: {
|
|
512
|
+
onRangeChanged: k,
|
|
513
|
+
onTimeframeClick: h
|
|
514
|
+
},
|
|
515
|
+
dateRangeVariant: y ? "timeframetabs" : "timeframebuttons",
|
|
516
|
+
onAccountsFilterClick: () => w(v.NET_WORTH_WIDGET_CLICK_FILTER),
|
|
515
517
|
onBackClick: t,
|
|
516
518
|
onMenuClick: s,
|
|
517
519
|
title: a.net_worth,
|
|
@@ -532,13 +534,13 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
532
534
|
}
|
|
533
535
|
}
|
|
534
536
|
) }) : /* @__PURE__ */ r(N, { children: [
|
|
535
|
-
|
|
537
|
+
u && /* @__PURE__ */ e(Ae, { hoveredData: o, selectedData: u }),
|
|
536
538
|
/* @__PURE__ */ r(
|
|
537
539
|
m,
|
|
538
540
|
{
|
|
539
|
-
alignItems:
|
|
540
|
-
direction:
|
|
541
|
-
spacing:
|
|
541
|
+
alignItems: y ? "center" : "flex-start",
|
|
542
|
+
direction: y ? "column" : "row",
|
|
543
|
+
spacing: y ? 0 : 48,
|
|
542
544
|
children: [
|
|
543
545
|
/* @__PURE__ */ e(we, {}),
|
|
544
546
|
/* @__PURE__ */ e(ke, {})
|
|
@@ -550,7 +552,7 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
550
552
|
le,
|
|
551
553
|
{
|
|
552
554
|
onClose: () => D(!1),
|
|
553
|
-
showConnectionsWidget:
|
|
555
|
+
showConnectionsWidget: L,
|
|
554
556
|
title: n.manage_connections
|
|
555
557
|
}
|
|
556
558
|
)
|