@mx-cartographer/experiences 7.13.21 → 7.13.22-alpha.al0
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/dist/{AccountDetailsHeader-D9gbTbUt.mjs → AccountDetailsHeader-CG9VtEpj.mjs} +2 -2
- package/dist/{AccountListItem-D9WJDbZ1.mjs → AccountListItem-BDFCEhSI.mjs} +2 -2
- package/dist/{AccountStore-DpYvNnql.mjs → AccountStore-Bn1eH2EU.mjs} +1 -1
- package/dist/{BudgetUtil-CLhRnCoX.mjs → BudgetUtil-BCSxP3M3.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-Dc9Widy9.mjs → CategorySelectorDrawer-tvJUjmwZ.mjs} +1 -1
- package/dist/{Connect-eYIWqCEr.mjs → Connect-CmjOgy5v.mjs} +1 -1
- package/dist/{ConnectDrawer-C0wjwcJt.mjs → ConnectDrawer-Be0RkL7I.mjs} +2 -2
- package/dist/{ConnectionsDrawer-IA7vnv1J.mjs → ConnectionsDrawer-yeD_PsY1.mjs} +2 -2
- package/dist/{CurrencyInput-DuMktPu3.mjs → CurrencyInput-xu9UcYZR.mjs} +1 -1
- package/dist/DateRangeSelector-DE4UR77m.mjs +275 -0
- package/dist/{ExportCsvAction-izkIdXj5.mjs → ExportCsvAction-CLUDN8jI.mjs} +3 -3
- package/dist/{GlobalAccountFilter-B73Pw1hJ.mjs → GlobalAccountFilter-BkUeAltd.mjs} +90 -96
- package/dist/{GoalStore-DB58sKTC.mjs → GoalStore-DMhiGiF4.mjs} +1 -1
- package/dist/{Help-D-laTbKu.mjs → Help-pcoNjCaF.mjs} +1 -1
- package/dist/{LineChart-EAr5ox5U.mjs → LineChart-DIjY-HBq.mjs} +1 -1
- package/dist/{ListItemAction-4KB7P75M.mjs → ListItemAction-BQIdxB-9.mjs} +1 -1
- package/dist/{ManageIncome-B1j-AzI1.mjs → ManageIncome-DWVaWpCT.mjs} +4 -4
- package/dist/{MicroWidgetContainer-B_EnfvCq.mjs → MicroWidgetContainer-CTMkXRJM.mjs} +1 -1
- package/dist/{MiniWidgetContainer-Bhkv-hpz.mjs → MiniWidgetContainer-BKPN3c-6.mjs} +1 -1
- package/dist/{NotificationSettings-C77J42Ue.mjs → NotificationSettings-O3iUw7-O.mjs} +32 -32
- package/dist/{OriginalBalanceAction-DjpvVVFz.mjs → OriginalBalanceAction-2lCGZTRv.mjs} +3 -3
- package/dist/{RecurringSettings-Dyj3i0ZJ.mjs → RecurringSettings-DNko1CD0.mjs} +2 -2
- package/dist/{SpendingLegend-BgjazduU.mjs → SpendingLegend-CGYqNtOp.mjs} +1 -1
- package/dist/{StatusIndicator-CIKUOoN_.mjs → StatusIndicator-CnDblSmc.mjs} +2 -2
- package/dist/{Transaction-CqjlF6SO.mjs → Transaction-Bd0myZzA.mjs} +1 -1
- package/dist/{TransactionDetails-CwqokbQo.mjs → TransactionDetails-DAB5arBD.mjs} +6 -6
- package/dist/{TransactionStore-rpqhGX8m.mjs → TransactionStore-hzVucfUK.mjs} +2 -2
- package/dist/{ViewMoreMicroCard-D24H9kDm.mjs → ViewMoreMicroCard-BWCe3UeO.mjs} +1 -1
- package/dist/WidgetContainer-BPeSl0Dj.mjs +180 -0
- package/dist/WidgetContainerV2-BjOelON7.mjs +127 -0
- package/dist/accounts/index.es.js +218 -219
- package/dist/analytics/index.es.js +8 -8
- package/dist/budgets/index.es.js +408 -409
- package/dist/cashflow/index.es.js +227 -228
- package/dist/categories/index.es.js +1 -1
- package/dist/common/components/GlobalAccountFilter.d.ts +1 -1
- package/dist/common/components/WidgetContainer.d.ts +3 -2
- package/dist/common/components/WidgetContainerV2.d.ts +4 -0
- package/dist/common/components/index.d.ts +1 -0
- package/dist/common/index.es.js +167 -164
- package/dist/dashboard/index.es.js +5 -5
- package/dist/debts/index.es.js +585 -586
- package/dist/{exportTransactionsToCSV-CdTF_RqL.mjs → exportTransactionsToCSV-CamFllci.mjs} +1 -1
- package/dist/finstrong/FinstrongWidget.d.ts +1 -1
- package/dist/finstrong/index.es.js +641 -652
- package/dist/goals/GoalsWidget.d.ts +1 -1
- package/dist/goals/index.es.js +498 -499
- package/dist/help/index.es.js +8 -8
- package/dist/{hooks-BxkfR-Ff.mjs → hooks-DOWEalfb.mjs} +2 -2
- package/dist/insights/index.es.js +3 -3
- package/dist/investments/InvestmentsWidget.d.ts +1 -1
- package/dist/investments/index.es.js +448 -449
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +182 -196
- package/dist/notifications/index.es.js +2 -2
- package/dist/recurringtransactions/RecurringTransactionsWidget.d.ts +1 -1
- package/dist/recurringtransactions/index.es.js +240 -242
- package/dist/settings/index.es.js +7 -7
- package/dist/spending/index.es.js +8 -8
- package/dist/transactions/index.es.js +246 -248
- package/dist/trends/index.es.js +12 -12
- package/dist/{useAccountDisplayName-DKwT1mWv.mjs → useAccountDisplayName-DQc7zGqk.mjs} +1 -1
- package/dist/{useInsightsEnabled-DL_oNyI0.mjs → useInsightsEnabled-DojdZhOg.mjs} +1 -1
- package/dist/{useWidgetLoadTimer-DgN1bTyu.mjs → useWidgetLoadTimer-DmYEMfRw.mjs} +1 -1
- package/package.json +1 -1
- package/dist/WidgetContainer-B7xDq2bM.mjs +0 -441
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { fromUnixTime as
|
|
1
|
+
import { jsx as t, jsxs as r, Fragment as N } from "react/jsx-runtime";
|
|
2
|
+
import { fromUnixTime as rt } from "date-fns/fromUnixTime";
|
|
3
3
|
import { observer as _ } from "mobx-react-lite";
|
|
4
|
-
import
|
|
4
|
+
import it from "@mui/material/Stack/Stack";
|
|
5
5
|
import { useTheme as z } from "@mui/material/styles";
|
|
6
|
-
import { L as
|
|
7
|
-
import { p as
|
|
6
|
+
import { L as at } from "../LineChart-DIjY-HBq.mjs";
|
|
7
|
+
import { p as st, q as $, u as D, f as G, d as ct, b as Y } from "../hooks-DOWEalfb.mjs";
|
|
8
8
|
import { u as q } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
9
|
-
import { f as
|
|
9
|
+
import { f as lt, D as mt } from "../DateFormats-BMpMrZpW.mjs";
|
|
10
10
|
import u from "react";
|
|
11
|
-
import
|
|
11
|
+
import dt from "@mui/material/Button";
|
|
12
12
|
import T from "@mui/material/Divider";
|
|
13
13
|
import j from "@mui/material/List";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { Text as
|
|
14
|
+
import M from "@mui/material/ListSubheader";
|
|
15
|
+
import d from "@mui/material/Stack";
|
|
16
|
+
import { Text as m, Icon as R, P as Z } from "@mxenabled/mxui";
|
|
17
17
|
import A from "@mui/material/ListItem";
|
|
18
18
|
import J from "@mui/material/ListItemButton";
|
|
19
19
|
import b from "@mui/material/ListItemText";
|
|
20
20
|
import { i as Q } from "../DateUtil-wcYTmDRD.mjs";
|
|
21
21
|
import { C as x } from "../CurrencyText-CA-E5N_y.mjs";
|
|
22
22
|
import P from "@mui/material/styles/useTheme";
|
|
23
|
-
import { Stack as
|
|
24
|
-
import
|
|
25
|
-
import
|
|
23
|
+
import { Stack as ht } from "@mui/material";
|
|
24
|
+
import tt from "@mui/material/Box";
|
|
25
|
+
import pt from "@mui/material/Collapse";
|
|
26
26
|
import F from "@mui/material/ListItemIcon";
|
|
27
27
|
import { g as K } from "../NetWorthStore-BqZ44-4M.mjs";
|
|
28
|
-
import { N as
|
|
28
|
+
import { N as Se } from "../NetWorthStore-BqZ44-4M.mjs";
|
|
29
29
|
import { D as U } from "../Drawer-Bbe4AMB1.mjs";
|
|
30
30
|
import { A as W } from "../Analytics-BYItVAe-.mjs";
|
|
31
|
-
import { format as
|
|
32
|
-
import { Icon as
|
|
31
|
+
import { format as ut, fromUnixTime as ft, differenceInMonths as xt } from "date-fns";
|
|
32
|
+
import { Icon as et } from "@mxenabled/mx-icons";
|
|
33
33
|
import { f as V } from "../NumberFormatting-QCaNwbjv.mjs";
|
|
34
|
-
import { u as
|
|
35
|
-
import { L as
|
|
36
|
-
import { M as
|
|
37
|
-
import { C as
|
|
38
|
-
import { W as
|
|
39
|
-
import { E as
|
|
40
|
-
const
|
|
41
|
-
const { isMobile:
|
|
34
|
+
import { u as nt } from "../useWidgetLoadTimer-DmYEMfRw.mjs";
|
|
35
|
+
import { L as ot } from "../Loader-D3rjKx72.mjs";
|
|
36
|
+
import { M as gt } from "../MicroWidgetContainer-CTMkXRJM.mjs";
|
|
37
|
+
import { C as yt } from "../ConnectionsDrawer-yeD_PsY1.mjs";
|
|
38
|
+
import { W as Ct } from "../WidgetContainerV2-BjOelON7.mjs";
|
|
39
|
+
import { E as bt } from "../EmptyState-DHAkGsjk.mjs";
|
|
40
|
+
const _t = () => {
|
|
41
|
+
const { isMobile: e } = q(), { availableWidth: a } = st(), i = z(), {
|
|
42
42
|
hoveredData: n,
|
|
43
43
|
netWorthChartData: s,
|
|
44
44
|
selectedData: o,
|
|
45
45
|
setHoveredIndex: c,
|
|
46
46
|
setSelectedIndex: l
|
|
47
47
|
} = $(), f = a - 320, g = s.map((h) => ({
|
|
48
|
-
x:
|
|
48
|
+
x: lt(rt(h.x), mt.MONTH_SHORT),
|
|
49
49
|
y: h.y
|
|
50
50
|
})), w = o ? { index: s.findIndex((h) => h.x === o.x) } : void 0, y = n ? { index: s.findIndex((h) => h.x === n.x) } : void 0, v = (h) => ({
|
|
51
51
|
fill: h === w?.index ? i.palette.success.main : "",
|
|
52
52
|
filter: h === y?.index ? `drop-shadow(0px 0px 10px ${i.palette.success.main})` : "none",
|
|
53
53
|
stroke: i.palette.success.main
|
|
54
|
-
}), I = (h,
|
|
55
|
-
l(
|
|
54
|
+
}), I = (h, k) => {
|
|
55
|
+
l(k);
|
|
56
56
|
}, L = (h) => {
|
|
57
57
|
c(h);
|
|
58
58
|
}, E = () => {
|
|
59
59
|
c(-1);
|
|
60
60
|
};
|
|
61
|
-
return /* @__PURE__ */
|
|
62
|
-
|
|
61
|
+
return /* @__PURE__ */ t(it, { sx: { width: "100%" }, children: /* @__PURE__ */ t(
|
|
62
|
+
at,
|
|
63
63
|
{
|
|
64
64
|
baseline: "min",
|
|
65
65
|
chartFor: "networthChart",
|
|
@@ -75,11 +75,11 @@ const _e = () => {
|
|
|
75
75
|
showArea: !0,
|
|
76
76
|
useCustomMark: !0,
|
|
77
77
|
valueFormatterString: "0.0[0]a",
|
|
78
|
-
width:
|
|
78
|
+
width: e ? a - 48 : f
|
|
79
79
|
}
|
|
80
80
|
) });
|
|
81
|
-
},
|
|
82
|
-
item:
|
|
81
|
+
}, wt = _(_t), vt = ({
|
|
82
|
+
item: e,
|
|
83
83
|
getStyles: a,
|
|
84
84
|
isHovered: i = !1,
|
|
85
85
|
isSelected: n = !1,
|
|
@@ -91,9 +91,9 @@ const _e = () => {
|
|
|
91
91
|
color: ""
|
|
92
92
|
});
|
|
93
93
|
return u.useEffect(() => {
|
|
94
|
-
f(a(
|
|
94
|
+
f(a(e));
|
|
95
95
|
}, [i, n]), /* @__PURE__ */ r(u.Fragment, { children: [
|
|
96
|
-
/* @__PURE__ */
|
|
96
|
+
/* @__PURE__ */ t(
|
|
97
97
|
A,
|
|
98
98
|
{
|
|
99
99
|
sx: {
|
|
@@ -101,19 +101,19 @@ const _e = () => {
|
|
|
101
101
|
minHeight: 44,
|
|
102
102
|
"&:hover": { color: n ? "inherit" : l.color }
|
|
103
103
|
},
|
|
104
|
-
children: /* @__PURE__ */
|
|
104
|
+
children: /* @__PURE__ */ t(
|
|
105
105
|
J,
|
|
106
106
|
{
|
|
107
|
-
onClick: (g) => s?.(g,
|
|
108
|
-
onMouseEnter: () => o(
|
|
107
|
+
onClick: (g) => s?.(g, e.x),
|
|
108
|
+
onMouseEnter: () => o(e.x),
|
|
109
109
|
onMouseLeave: () => c(),
|
|
110
110
|
sx: { minHeight: 20, padding: 12 },
|
|
111
|
-
children: /* @__PURE__ */
|
|
111
|
+
children: /* @__PURE__ */ t(
|
|
112
112
|
b,
|
|
113
113
|
{
|
|
114
|
-
primary: /* @__PURE__ */ r(
|
|
115
|
-
/* @__PURE__ */
|
|
116
|
-
/* @__PURE__ */
|
|
114
|
+
primary: /* @__PURE__ */ r(d, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
|
115
|
+
/* @__PURE__ */ t(m, { variant: "body1", children: Q(e.x) }),
|
|
116
|
+
/* @__PURE__ */ t(x, { amount: e.y, sx: { color: "inherit" }, variant: "body1" })
|
|
117
117
|
] })
|
|
118
118
|
}
|
|
119
119
|
)
|
|
@@ -121,18 +121,18 @@ const _e = () => {
|
|
|
121
121
|
)
|
|
122
122
|
}
|
|
123
123
|
),
|
|
124
|
-
/* @__PURE__ */
|
|
125
|
-
] },
|
|
126
|
-
},
|
|
127
|
-
currencyLabel:
|
|
124
|
+
/* @__PURE__ */ t(T, {})
|
|
125
|
+
] }, e.x);
|
|
126
|
+
}, Wt = _(vt), St = ({
|
|
127
|
+
currencyLabel: e,
|
|
128
128
|
currencyVariant: a = "body2",
|
|
129
129
|
iconSize: i,
|
|
130
130
|
netWorth: n,
|
|
131
131
|
theme: s
|
|
132
132
|
}) => {
|
|
133
133
|
let o = s.palette.secondary.main, c = s.palette.secondary.main, l = "trending_flat";
|
|
134
|
-
return n.change < 0 ? l = "trending_down" : n.change > 0 && (o = s.palette.success.main, c = s.palette.success.main, l = "trending_up"), /* @__PURE__ */ r(
|
|
135
|
-
/* @__PURE__ */
|
|
134
|
+
return n.change < 0 ? l = "trending_down" : n.change > 0 && (o = s.palette.success.main, c = s.palette.success.main, l = "trending_up"), /* @__PURE__ */ r(ht, { alignItems: "center", direction: "row", spacing: 4, children: [
|
|
135
|
+
/* @__PURE__ */ t(
|
|
136
136
|
R,
|
|
137
137
|
{
|
|
138
138
|
name: l,
|
|
@@ -142,40 +142,40 @@ const _e = () => {
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
),
|
|
145
|
-
/* @__PURE__ */
|
|
146
|
-
/* @__PURE__ */
|
|
145
|
+
/* @__PURE__ */ t(x, { amount: n.change, color: c, variant: a }),
|
|
146
|
+
/* @__PURE__ */ t(m, { variant: "body2", children: e })
|
|
147
147
|
] });
|
|
148
|
-
}, B = _(
|
|
149
|
-
netWorth:
|
|
148
|
+
}, B = _(St), Tt = ({
|
|
149
|
+
netWorth: e,
|
|
150
150
|
gains: a,
|
|
151
151
|
losses: i,
|
|
152
152
|
totalGains: n,
|
|
153
153
|
totalLosses: s
|
|
154
154
|
}) => {
|
|
155
|
-
const { net_worth: o } =
|
|
156
|
-
return /* @__PURE__ */ r(
|
|
157
|
-
/* @__PURE__ */ r(
|
|
158
|
-
/* @__PURE__ */
|
|
159
|
-
/* @__PURE__ */
|
|
160
|
-
|
|
155
|
+
const { net_worth: o } = D(), c = P();
|
|
156
|
+
return /* @__PURE__ */ r(N, { children: [
|
|
157
|
+
/* @__PURE__ */ r(d, { alignItems: "center", justifyContent: "space-between", mb: 8, pt: 24, children: [
|
|
158
|
+
/* @__PURE__ */ t(m, { variant: "body2", children: Q(e?.x) }),
|
|
159
|
+
/* @__PURE__ */ t(m, { variant: "body1", children: o.total_change }),
|
|
160
|
+
e && /* @__PURE__ */ t(B, { currencyVariant: "h1", iconSize: 32, netWorth: e, theme: c })
|
|
161
161
|
] }),
|
|
162
162
|
/* @__PURE__ */ r(j, { children: [
|
|
163
|
-
/* @__PURE__ */
|
|
163
|
+
/* @__PURE__ */ t(M, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
|
|
164
164
|
b,
|
|
165
165
|
{
|
|
166
|
-
primary: /* @__PURE__ */ r(
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
-
/* @__PURE__ */
|
|
166
|
+
primary: /* @__PURE__ */ r(d, { direction: "row", justifyContent: "space-between", children: [
|
|
167
|
+
/* @__PURE__ */ t(m, { sx: { fontWeight: 700 }, variant: "caption", children: o.gains }),
|
|
168
|
+
/* @__PURE__ */ t(x, { amount: n, sx: { fontWeight: 400 }, variant: "caption" })
|
|
169
169
|
] })
|
|
170
170
|
}
|
|
171
171
|
) }),
|
|
172
172
|
a?.map((l) => /* @__PURE__ */ r(u.Fragment, { children: [
|
|
173
|
-
/* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ t(A, { sx: { backgroundColor: c.palette.background.paper, py: 14 }, children: /* @__PURE__ */ t(
|
|
174
174
|
b,
|
|
175
175
|
{
|
|
176
|
-
primary: /* @__PURE__ */ r(
|
|
177
|
-
/* @__PURE__ */
|
|
178
|
-
/* @__PURE__ */
|
|
176
|
+
primary: /* @__PURE__ */ r(d, { direction: "row", justifyContent: "space-between", children: [
|
|
177
|
+
/* @__PURE__ */ t(m, { sx: { mr: 10 }, variant: "body1", children: l.accountName }),
|
|
178
|
+
/* @__PURE__ */ t(
|
|
179
179
|
x,
|
|
180
180
|
{
|
|
181
181
|
amount: l.gain,
|
|
@@ -187,28 +187,28 @@ const _e = () => {
|
|
|
187
187
|
sx: { px: 16 }
|
|
188
188
|
}
|
|
189
189
|
) }),
|
|
190
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ t(T, {})
|
|
191
191
|
] }, l.accountName)),
|
|
192
|
-
/* @__PURE__ */
|
|
192
|
+
/* @__PURE__ */ t(M, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
|
|
193
193
|
b,
|
|
194
194
|
{
|
|
195
|
-
primary: /* @__PURE__ */ r(
|
|
196
|
-
/* @__PURE__ */
|
|
197
|
-
/* @__PURE__ */
|
|
195
|
+
primary: /* @__PURE__ */ r(d, { direction: "row", justifyContent: "space-between", children: [
|
|
196
|
+
/* @__PURE__ */ t(m, { sx: { fontWeight: 700 }, variant: "caption", children: o.losses }),
|
|
197
|
+
/* @__PURE__ */ t(x, { amount: s, sx: { fontWeight: 400 }, variant: "caption" })
|
|
198
198
|
] })
|
|
199
199
|
}
|
|
200
200
|
) }),
|
|
201
|
-
i?.map((l) => /* @__PURE__ */ r(
|
|
202
|
-
/* @__PURE__ */
|
|
201
|
+
i?.map((l) => /* @__PURE__ */ r(N, { children: [
|
|
202
|
+
/* @__PURE__ */ t(
|
|
203
203
|
A,
|
|
204
204
|
{
|
|
205
205
|
sx: { backgroundColor: c.palette.background.paper, py: 14 },
|
|
206
|
-
children: /* @__PURE__ */
|
|
206
|
+
children: /* @__PURE__ */ t(
|
|
207
207
|
b,
|
|
208
208
|
{
|
|
209
|
-
primary: /* @__PURE__ */ r(
|
|
210
|
-
/* @__PURE__ */
|
|
211
|
-
|
|
209
|
+
primary: /* @__PURE__ */ r(d, { direction: "row", justifyContent: "space-between", children: [
|
|
210
|
+
/* @__PURE__ */ t(
|
|
211
|
+
m,
|
|
212
212
|
{
|
|
213
213
|
sx: {
|
|
214
214
|
mr: 10
|
|
@@ -217,7 +217,7 @@ const _e = () => {
|
|
|
217
217
|
children: l.accountName
|
|
218
218
|
}
|
|
219
219
|
),
|
|
220
|
-
/* @__PURE__ */
|
|
220
|
+
/* @__PURE__ */ t(
|
|
221
221
|
x,
|
|
222
222
|
{
|
|
223
223
|
amount: l.loss,
|
|
@@ -232,31 +232,31 @@ const _e = () => {
|
|
|
232
232
|
},
|
|
233
233
|
l.accountName
|
|
234
234
|
),
|
|
235
|
-
/* @__PURE__ */
|
|
235
|
+
/* @__PURE__ */ t(T, {})
|
|
236
236
|
] }))
|
|
237
237
|
] })
|
|
238
238
|
] });
|
|
239
|
-
},
|
|
239
|
+
}, It = _(Tt), Lt = ({ accounts: e, name: a, icon: i }) => {
|
|
240
240
|
const [n, s] = u.useState(!1);
|
|
241
|
-
return /* @__PURE__ */ r(
|
|
242
|
-
/* @__PURE__ */
|
|
243
|
-
i && /* @__PURE__ */
|
|
244
|
-
/* @__PURE__ */
|
|
241
|
+
return /* @__PURE__ */ r(N, { children: [
|
|
242
|
+
/* @__PURE__ */ t(A, { sx: (o) => ({ backgroundColor: o.palette.background.paper }), children: /* @__PURE__ */ r(J, { onClick: () => s(!n), children: [
|
|
243
|
+
i && /* @__PURE__ */ t(F, { children: /* @__PURE__ */ t(R, { name: i, size: 24, sx: { mr: 12 } }) }),
|
|
244
|
+
/* @__PURE__ */ t(
|
|
245
245
|
b,
|
|
246
246
|
{
|
|
247
|
-
primary: /* @__PURE__ */
|
|
247
|
+
primary: /* @__PURE__ */ t(m, { sx: { fontWeight: 700 }, variant: "body1", children: a })
|
|
248
248
|
}
|
|
249
249
|
),
|
|
250
|
-
/* @__PURE__ */
|
|
250
|
+
/* @__PURE__ */ t(F, { children: n ? /* @__PURE__ */ t(R, { name: "expand_less", size: 24 }) : /* @__PURE__ */ t(R, { name: "expand_more", size: 24 }) })
|
|
251
251
|
] }) }),
|
|
252
|
-
/* @__PURE__ */
|
|
253
|
-
/* @__PURE__ */
|
|
254
|
-
/* @__PURE__ */
|
|
252
|
+
/* @__PURE__ */ t(T, {}),
|
|
253
|
+
/* @__PURE__ */ t(pt, { in: n, timeout: "auto", unmountOnExit: !0, children: e.map((o, c) => /* @__PURE__ */ r(j, { children: [
|
|
254
|
+
/* @__PURE__ */ t(A, { sx: () => ({ py: 14 }), children: /* @__PURE__ */ t(
|
|
255
255
|
b,
|
|
256
256
|
{
|
|
257
|
-
primary: /* @__PURE__ */ r(
|
|
258
|
-
/* @__PURE__ */
|
|
259
|
-
|
|
257
|
+
primary: /* @__PURE__ */ r(d, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
|
258
|
+
/* @__PURE__ */ t(
|
|
259
|
+
m,
|
|
260
260
|
{
|
|
261
261
|
sx: {
|
|
262
262
|
marginRight: 10
|
|
@@ -265,7 +265,7 @@ const _e = () => {
|
|
|
265
265
|
children: o.accountName
|
|
266
266
|
}
|
|
267
267
|
),
|
|
268
|
-
/* @__PURE__ */
|
|
268
|
+
/* @__PURE__ */ t(
|
|
269
269
|
x,
|
|
270
270
|
{
|
|
271
271
|
amount: o.balance,
|
|
@@ -279,20 +279,20 @@ const _e = () => {
|
|
|
279
279
|
sx: { pl: 72, pr: 16 }
|
|
280
280
|
}
|
|
281
281
|
) }),
|
|
282
|
-
c <
|
|
282
|
+
c < e.length - 1 ? /* @__PURE__ */ t(T, { variant: "inset" }) : /* @__PURE__ */ t(T, {})
|
|
283
283
|
] }, o.accountName)) })
|
|
284
284
|
] });
|
|
285
|
-
}, X = ({ groupedAccounts:
|
|
286
|
-
netWorth:
|
|
285
|
+
}, X = ({ groupedAccounts: e }) => /* @__PURE__ */ t(N, { children: e.map(({ accounts: a, icon: i, name: n }) => /* @__PURE__ */ t(Lt, { accounts: a, icon: i, name: n }, n)) }), Nt = ({
|
|
286
|
+
netWorth: e,
|
|
287
287
|
assets: a,
|
|
288
288
|
liabilities: i,
|
|
289
289
|
totalAssets: n,
|
|
290
290
|
totalLiabilities: s
|
|
291
291
|
}) => {
|
|
292
|
-
const { net_worth: o } =
|
|
293
|
-
return /* @__PURE__ */ r(
|
|
292
|
+
const { net_worth: o } = D(), c = P();
|
|
293
|
+
return /* @__PURE__ */ r(N, { children: [
|
|
294
294
|
/* @__PURE__ */ r(
|
|
295
|
-
|
|
295
|
+
tt,
|
|
296
296
|
{
|
|
297
297
|
sx: {
|
|
298
298
|
alignItems: "center",
|
|
@@ -303,14 +303,14 @@ const _e = () => {
|
|
|
303
303
|
marginBottom: 8
|
|
304
304
|
},
|
|
305
305
|
children: [
|
|
306
|
-
/* @__PURE__ */
|
|
307
|
-
/* @__PURE__ */
|
|
308
|
-
|
|
306
|
+
/* @__PURE__ */ t(m, { variant: "body1", children: o.current_net_worth }),
|
|
307
|
+
/* @__PURE__ */ t(x, { amount: e?.y ?? 0, variant: "h1" }),
|
|
308
|
+
e && /* @__PURE__ */ t(
|
|
309
309
|
B,
|
|
310
310
|
{
|
|
311
311
|
currencyLabel: o.this_month,
|
|
312
312
|
iconSize: 20,
|
|
313
|
-
netWorth:
|
|
313
|
+
netWorth: e,
|
|
314
314
|
theme: c
|
|
315
315
|
}
|
|
316
316
|
)
|
|
@@ -318,22 +318,22 @@ const _e = () => {
|
|
|
318
318
|
}
|
|
319
319
|
),
|
|
320
320
|
/* @__PURE__ */ r(j, { children: [
|
|
321
|
-
/* @__PURE__ */
|
|
321
|
+
/* @__PURE__ */ t(M, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
|
|
322
322
|
b,
|
|
323
323
|
{
|
|
324
|
-
primary: /* @__PURE__ */ r(
|
|
325
|
-
/* @__PURE__ */
|
|
326
|
-
/* @__PURE__ */
|
|
324
|
+
primary: /* @__PURE__ */ r(d, { direction: "row", justifyContent: "space-between", children: [
|
|
325
|
+
/* @__PURE__ */ t(m, { sx: { fontWeight: 700 }, variant: "caption", children: o.assets }),
|
|
326
|
+
/* @__PURE__ */ t(x, { amount: n, sx: { fontWeight: 400 }, variant: "caption" })
|
|
327
327
|
] })
|
|
328
328
|
}
|
|
329
329
|
) }),
|
|
330
|
-
/* @__PURE__ */
|
|
331
|
-
/* @__PURE__ */
|
|
330
|
+
/* @__PURE__ */ t(X, { groupedAccounts: K(a) }),
|
|
331
|
+
/* @__PURE__ */ t(M, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
|
|
332
332
|
b,
|
|
333
333
|
{
|
|
334
|
-
primary: /* @__PURE__ */ r(
|
|
335
|
-
/* @__PURE__ */
|
|
336
|
-
/* @__PURE__ */
|
|
334
|
+
primary: /* @__PURE__ */ r(d, { direction: "row", justifyContent: "space-between", children: [
|
|
335
|
+
/* @__PURE__ */ t(m, { sx: { fontWeight: 700 }, variant: "caption", children: o.liabilities }),
|
|
336
|
+
/* @__PURE__ */ t(
|
|
337
337
|
x,
|
|
338
338
|
{
|
|
339
339
|
amount: s,
|
|
@@ -344,11 +344,11 @@ const _e = () => {
|
|
|
344
344
|
] })
|
|
345
345
|
}
|
|
346
346
|
) }),
|
|
347
|
-
/* @__PURE__ */
|
|
347
|
+
/* @__PURE__ */ t(X, { groupedAccounts: K(i) })
|
|
348
348
|
] })
|
|
349
349
|
] });
|
|
350
|
-
},
|
|
351
|
-
const { net_worth:
|
|
350
|
+
}, Dt = _(Nt), Et = () => {
|
|
351
|
+
const { net_worth: e } = D(), a = z(), { onEvent: i } = G(), {
|
|
352
352
|
assetsLiabilities: n,
|
|
353
353
|
gainsLosses: s,
|
|
354
354
|
hoveredData: o,
|
|
@@ -367,39 +367,39 @@ const _e = () => {
|
|
|
367
367
|
g(C), p.currentTarget instanceof HTMLDivElement && y(!0);
|
|
368
368
|
}, h = () => {
|
|
369
369
|
I(!0), i(W.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES);
|
|
370
|
-
},
|
|
370
|
+
}, k = (p) => {
|
|
371
371
|
f(p);
|
|
372
372
|
}, O = () => {
|
|
373
373
|
f(-1);
|
|
374
374
|
};
|
|
375
|
-
return /* @__PURE__ */ r(
|
|
375
|
+
return /* @__PURE__ */ r(d, { direction: "column", sx: { width: 320 }, children: [
|
|
376
376
|
/* @__PURE__ */ r(j, { children: [
|
|
377
|
-
/* @__PURE__ */
|
|
378
|
-
/* @__PURE__ */
|
|
379
|
-
c.map((p, C) => /* @__PURE__ */
|
|
380
|
-
|
|
377
|
+
/* @__PURE__ */ t(M, { sx: { backgroundColor: "transparent", mb: 8, mt: 12, px: 12 }, children: /* @__PURE__ */ t(m, { bold: !0, component: "h2", variant: "body1", children: e.monthly_totals }) }),
|
|
378
|
+
/* @__PURE__ */ t(T, {}),
|
|
379
|
+
c.map((p, C) => /* @__PURE__ */ t(
|
|
380
|
+
Wt,
|
|
381
381
|
{
|
|
382
382
|
getStyles: L,
|
|
383
383
|
isHovered: p.x === o?.x,
|
|
384
384
|
isSelected: p.x === l?.x,
|
|
385
385
|
item: p,
|
|
386
386
|
onItemClick: (H) => E(H, C),
|
|
387
|
-
onMouseEnter: () =>
|
|
387
|
+
onMouseEnter: () => k(C),
|
|
388
388
|
onMouseLeave: () => O()
|
|
389
389
|
},
|
|
390
390
|
p.x
|
|
391
391
|
))
|
|
392
392
|
] }),
|
|
393
|
-
/* @__PURE__ */
|
|
394
|
-
|
|
393
|
+
/* @__PURE__ */ t(
|
|
394
|
+
dt,
|
|
395
395
|
{
|
|
396
396
|
onClick: () => h(),
|
|
397
397
|
sx: { alignSelf: "center", marginTop: 16, width: "fit-content" },
|
|
398
398
|
variant: "outlined",
|
|
399
|
-
children:
|
|
399
|
+
children: e.view_assets_and_liabilities
|
|
400
400
|
}
|
|
401
401
|
),
|
|
402
|
-
/* @__PURE__ */
|
|
402
|
+
/* @__PURE__ */ t(
|
|
403
403
|
U,
|
|
404
404
|
{
|
|
405
405
|
ariaLabelClose: "Close",
|
|
@@ -407,11 +407,11 @@ const _e = () => {
|
|
|
407
407
|
onClose: () => y(!1),
|
|
408
408
|
shouldShowHeaderBorders: !1,
|
|
409
409
|
shouldShowHeaderShadow: !0,
|
|
410
|
-
title:
|
|
411
|
-
children: s && /* @__PURE__ */
|
|
410
|
+
title: e.gains_and_losses,
|
|
411
|
+
children: s && /* @__PURE__ */ t(It, { ...s })
|
|
412
412
|
}
|
|
413
413
|
),
|
|
414
|
-
/* @__PURE__ */
|
|
414
|
+
/* @__PURE__ */ t(
|
|
415
415
|
U,
|
|
416
416
|
{
|
|
417
417
|
ariaLabelClose: "Close",
|
|
@@ -419,72 +419,72 @@ const _e = () => {
|
|
|
419
419
|
onClose: () => I(!1),
|
|
420
420
|
shouldShowHeaderBorders: !1,
|
|
421
421
|
shouldShowHeaderShadow: !0,
|
|
422
|
-
title:
|
|
423
|
-
children: n && /* @__PURE__ */
|
|
422
|
+
title: e.assets_and_liabilities,
|
|
423
|
+
children: n && /* @__PURE__ */ t(Dt, { ...n })
|
|
424
424
|
}
|
|
425
425
|
)
|
|
426
426
|
] });
|
|
427
|
-
},
|
|
428
|
-
const { net_worth: i } =
|
|
429
|
-
return /* @__PURE__ */ r(
|
|
430
|
-
/* @__PURE__ */
|
|
431
|
-
/* @__PURE__ */
|
|
432
|
-
/* @__PURE__ */
|
|
427
|
+
}, kt = _(Et), Mt = ({ hoveredData: e, selectedData: a }) => {
|
|
428
|
+
const { net_worth: i } = D(), n = z(), s = e || a, o = ut(ft(s.x), "MMMM");
|
|
429
|
+
return /* @__PURE__ */ r(d, { alignItems: "center", direction: "column", m: 24, children: [
|
|
430
|
+
/* @__PURE__ */ t(m, { color: n.palette.secondary.main, variant: "body2", children: `${o} ${i.net_worth}` }),
|
|
431
|
+
/* @__PURE__ */ t(x, { amount: s.y, variant: "h2" }),
|
|
432
|
+
/* @__PURE__ */ t(B, { currencyLabel: i.this_month, netWorth: s, theme: n })
|
|
433
433
|
] });
|
|
434
|
-
},
|
|
434
|
+
}, At = _(Mt), Ot = ({ amount: e, copy: a, trendValue: i }) => {
|
|
435
435
|
const n = i > 0, o = i === 0 ? "trending_flat" : n ? "trending_up" : "trending_down";
|
|
436
|
-
return /* @__PURE__ */ r(
|
|
437
|
-
/* @__PURE__ */
|
|
438
|
-
|
|
439
|
-
/* @__PURE__ */ r(
|
|
440
|
-
/* @__PURE__ */
|
|
441
|
-
/* @__PURE__ */
|
|
436
|
+
return /* @__PURE__ */ r(d, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
437
|
+
/* @__PURE__ */ t(Z, { variant: "h1", children: V(e, "0,0") }),
|
|
438
|
+
e !== 0 && /* @__PURE__ */ r(d, { sx: { color: n ? "success.main" : "text.secondary" }, children: [
|
|
439
|
+
/* @__PURE__ */ r(d, { sx: { flexDirection: "row", gap: 8 }, children: [
|
|
440
|
+
/* @__PURE__ */ t(et, { name: o, size: 20 }),
|
|
441
|
+
/* @__PURE__ */ t(m, { sx: { fontWeight: 600, textAlign: "right" }, variant: "body1", children: V(i, "0,0.00") })
|
|
442
442
|
] }),
|
|
443
|
-
/* @__PURE__ */
|
|
443
|
+
/* @__PURE__ */ t(m, { sx: { display: "block", textAlign: "right" }, variant: "caption", children: a.this_month })
|
|
444
444
|
] })
|
|
445
445
|
] });
|
|
446
|
-
},
|
|
447
|
-
/* @__PURE__ */
|
|
448
|
-
/* @__PURE__ */ r(
|
|
449
|
-
/* @__PURE__ */
|
|
450
|
-
/* @__PURE__ */
|
|
446
|
+
}, Ht = ({ copy: e }) => /* @__PURE__ */ r(d, { sx: { flexDirection: "row", gap: 12 }, children: [
|
|
447
|
+
/* @__PURE__ */ t(et, { name: "elevation", size: 32, sx: { color: "text.primary" } }),
|
|
448
|
+
/* @__PURE__ */ r(d, { children: [
|
|
449
|
+
/* @__PURE__ */ t(m, { sx: { display: "block", fontWeight: 600 }, variant: "body1", children: e.empty_widget_header }),
|
|
450
|
+
/* @__PURE__ */ t(Z, { sx: { color: "text.secondary" }, variant: "body2", children: e.zero_state_description })
|
|
451
451
|
] })
|
|
452
|
-
] }),
|
|
453
|
-
const { visibleAccounts: a } =
|
|
452
|
+
] }), _e = _(({ onCTAClick: e }) => {
|
|
453
|
+
const { visibleAccounts: a } = ct(), { onEvent: i } = G(), { net_worth: n, common: s } = D(), { isInitialized: o } = Y(), { isNetWorthDataLoaded: c, loadNetWorthData: l, netWorthData: f, selectedData: g } = $();
|
|
454
454
|
if (u.useEffect(() => {
|
|
455
455
|
c || l().finally();
|
|
456
|
-
}, []),
|
|
456
|
+
}, []), nt({
|
|
457
457
|
widgetName: "NetWorthMicroWidget",
|
|
458
458
|
isLoaded: c
|
|
459
459
|
}), u.useEffect(() => {
|
|
460
460
|
c && i(W.NET_WORTH_LOAD_WIDGET, {
|
|
461
461
|
state: a?.length ? "default" : "zeroState"
|
|
462
462
|
});
|
|
463
|
-
}, [c]), !o || !c) return /* @__PURE__ */
|
|
463
|
+
}, [c]), !o || !c) return /* @__PURE__ */ t(ot, { height: 100 });
|
|
464
464
|
const w = () => {
|
|
465
465
|
i(
|
|
466
466
|
a.length ? W.NET_WORTH_CLICK_VIEW_DETAILS : W.NET_WORTH_CLICK_GET_STARTED
|
|
467
|
-
),
|
|
467
|
+
), e();
|
|
468
468
|
};
|
|
469
|
-
return /* @__PURE__ */
|
|
470
|
-
|
|
469
|
+
return /* @__PURE__ */ t(
|
|
470
|
+
gt,
|
|
471
471
|
{
|
|
472
472
|
className: "mx-networth-microwidget",
|
|
473
473
|
ctaLabel: s.see_details,
|
|
474
474
|
onCTAClick: w,
|
|
475
475
|
title: n.net_worth,
|
|
476
|
-
children: f.accounts.length ? /* @__PURE__ */
|
|
477
|
-
|
|
476
|
+
children: f.accounts.length ? /* @__PURE__ */ t(
|
|
477
|
+
Ot,
|
|
478
478
|
{
|
|
479
479
|
amount: g?.y,
|
|
480
480
|
copy: n,
|
|
481
481
|
trendValue: g?.change
|
|
482
482
|
}
|
|
483
|
-
) : /* @__PURE__ */
|
|
483
|
+
) : /* @__PURE__ */ t(Ht, { copy: n })
|
|
484
484
|
}
|
|
485
485
|
);
|
|
486
|
-
}),
|
|
487
|
-
const { isInitialized: a } = Y(), { accounts: i, net_worth: n } =
|
|
486
|
+
}), we = _(({ onBackClick: e }) => {
|
|
487
|
+
const { isInitialized: a } = Y(), { accounts: i, net_worth: n } = D(), {
|
|
488
488
|
hoveredData: s,
|
|
489
489
|
isNetWorthDataLoaded: o,
|
|
490
490
|
loadNetWorthData: c,
|
|
@@ -493,7 +493,7 @@ const _e = () => {
|
|
|
493
493
|
setTimeframe: g,
|
|
494
494
|
timeframe: w
|
|
495
495
|
} = $(), { isMobile: y } = q(), { onEvent: v } = G(), [I, L] = u.useState(!1);
|
|
496
|
-
|
|
496
|
+
nt({
|
|
497
497
|
widgetName: "NetWorthWidget",
|
|
498
498
|
isLoaded: o
|
|
499
499
|
}), u.useEffect(() => {
|
|
@@ -503,37 +503,23 @@ const _e = () => {
|
|
|
503
503
|
}, [w]);
|
|
504
504
|
const E = async (O) => {
|
|
505
505
|
const p = O[0], C = O[1];
|
|
506
|
-
p && C && g(
|
|
506
|
+
p && C && g(xt(C, p));
|
|
507
507
|
}, h = () => {
|
|
508
508
|
L(!0), v(W.ACCOUNTS_CLICK_CONNECT);
|
|
509
509
|
};
|
|
510
|
-
if (!a || !o) return /* @__PURE__ */
|
|
511
|
-
const
|
|
510
|
+
if (!a || !o) return /* @__PURE__ */ t(ot, {});
|
|
511
|
+
const k = l.length === 0;
|
|
512
512
|
return /* @__PURE__ */ r(
|
|
513
|
-
|
|
513
|
+
Ct,
|
|
514
514
|
{
|
|
515
515
|
calendarActions: { onRangeChanged: E },
|
|
516
516
|
dateRangeVariant: y ? "timeframetabs" : "timeframebuttons",
|
|
517
517
|
onAccountsFilterClick: () => v(W.NET_WORTH_WIDGET_CLICK_FILTER),
|
|
518
|
-
onBackClick:
|
|
519
|
-
showDividerAboveDateSelector: !1,
|
|
520
|
-
sx: {
|
|
521
|
-
p: y ? 0 : 48,
|
|
522
|
-
"& .MuiCardHeader-root": {
|
|
523
|
-
px: 16,
|
|
524
|
-
py: 12
|
|
525
|
-
},
|
|
526
|
-
"& .MuiBox-root": {
|
|
527
|
-
m: 0
|
|
528
|
-
},
|
|
529
|
-
"& .MuiTabs-root": {
|
|
530
|
-
width: "100%"
|
|
531
|
-
}
|
|
532
|
-
},
|
|
518
|
+
onBackClick: e,
|
|
533
519
|
title: n.net_worth,
|
|
534
520
|
children: [
|
|
535
|
-
|
|
536
|
-
|
|
521
|
+
k ? /* @__PURE__ */ t(tt, { sx: { justifyItems: "center" }, children: /* @__PURE__ */ t(
|
|
522
|
+
bt,
|
|
537
523
|
{
|
|
538
524
|
header: n.empty_widget_header,
|
|
539
525
|
icon: "elevation",
|
|
@@ -547,23 +533,23 @@ const _e = () => {
|
|
|
547
533
|
}
|
|
548
534
|
}
|
|
549
535
|
}
|
|
550
|
-
) }) : /* @__PURE__ */ r(
|
|
551
|
-
f && /* @__PURE__ */
|
|
536
|
+
) }) : /* @__PURE__ */ r(N, { children: [
|
|
537
|
+
f && /* @__PURE__ */ t(At, { hoveredData: s, selectedData: f }),
|
|
552
538
|
/* @__PURE__ */ r(
|
|
553
|
-
|
|
539
|
+
d,
|
|
554
540
|
{
|
|
555
541
|
alignItems: y ? "center" : "flex-start",
|
|
556
542
|
direction: y ? "column" : "row",
|
|
557
543
|
spacing: y ? 0 : 48,
|
|
558
544
|
children: [
|
|
559
|
-
/* @__PURE__ */
|
|
560
|
-
/* @__PURE__ */
|
|
545
|
+
/* @__PURE__ */ t(wt, {}),
|
|
546
|
+
/* @__PURE__ */ t(kt, {})
|
|
561
547
|
]
|
|
562
548
|
}
|
|
563
549
|
)
|
|
564
550
|
] }),
|
|
565
|
-
/* @__PURE__ */
|
|
566
|
-
|
|
551
|
+
/* @__PURE__ */ t(
|
|
552
|
+
yt,
|
|
567
553
|
{
|
|
568
554
|
onClose: () => L(!1),
|
|
569
555
|
showConnectionsWidget: I,
|
|
@@ -575,10 +561,10 @@ const _e = () => {
|
|
|
575
561
|
);
|
|
576
562
|
});
|
|
577
563
|
export {
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
564
|
+
wt as NetWorthChart,
|
|
565
|
+
kt as NetWorthList,
|
|
566
|
+
_e as NetWorthMicroWidget,
|
|
567
|
+
Se as NetWorthStore,
|
|
568
|
+
At as NetWorthSummary,
|
|
569
|
+
we as NetWorthWidget
|
|
584
570
|
};
|