@mx-cartographer/experiences 7.4.8-alpha.mm0 → 7.4.8
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/{Account-BrOTlmeK.mjs → Account-01wOyrH1.mjs} +1 -1
- package/dist/{AccountDetailsContent-B7FqH05C.mjs → AccountDetailsContent-COMjOzwr.mjs} +8 -8
- package/dist/{AccountDetailsHeader-C8MxsxhN.mjs → AccountDetailsHeader-Cbi5G6fJ.mjs} +4 -4
- package/dist/{AccountFields-BQZ-o6Kj.mjs → AccountFields-Cd_nOWmf.mjs} +2 -2
- package/dist/{AccountListItem-aIE9WWTO.mjs → AccountListItem-DxY4cCF1.mjs} +4 -4
- package/dist/{AccountStore-DqO84Aer.mjs → AccountStore-C1zMBzHq.mjs} +2 -2
- package/dist/{Accounts-DC_A4UCa.mjs → Accounts-D7QljYas.mjs} +1 -1
- package/dist/{BudgetUtil-BmZXkL0C.mjs → BudgetUtil-Df2nII9u.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-SUgfE5GN.mjs → CategorySelectorDrawer-DqJK_rrL.mjs} +1 -1
- package/dist/{ConnectDrawer-KL8t1qSC.mjs → ConnectDrawer-CuUj16NH.mjs} +1 -1
- package/dist/{ConnectionsDrawer-DaK5uIL5.mjs → ConnectionsDrawer-Bz4uwdFE.mjs} +2 -2
- package/dist/{CurrencyInput-itK0R3wV.mjs → CurrencyInput-BFKcs-_K.mjs} +1 -1
- package/dist/{DebtsStore-DVPZbv2C.mjs → DebtsStore-Bu8rRRSL.mjs} +1 -1
- package/dist/{ExportCsvAction-Cglo8Mca.mjs → ExportCsvAction-DzTrtPzk.mjs} +3 -3
- package/dist/{GoalStore-o4rrjGSJ.mjs → GoalStore-CrNhjvNc.mjs} +2 -2
- package/dist/{Help-BjLMsuMS.mjs → Help-BnPXM_N2.mjs} +1 -1
- package/dist/{LineChart-BQRxZF3p.mjs → LineChart-bc1D9xBE.mjs} +1 -1
- package/dist/{ListItemAction-BxTkF6Tz.mjs → ListItemAction-uobBrm_a.mjs} +1 -1
- package/dist/{ManageIncome-rcnDYsBJ.mjs → ManageIncome-A69EUO5u.mjs} +75 -75
- package/dist/{MicroWidgetContainer-B2hO9rOG.mjs → MicroWidgetContainer-DEiRnYVa.mjs} +1 -1
- package/dist/{MiniWidgetContainer-98-hKFqm.mjs → MiniWidgetContainer-CmXpTylX.mjs} +1 -1
- package/dist/{NetWorthStore-DG2X69jG.mjs → NetWorthStore-CpL_kqvx.mjs} +2 -2
- package/dist/{NotificationSettings-C7FYNM7I.mjs → NotificationSettings-CNmJWVeI.mjs} +248 -250
- package/dist/{OriginalBalanceAction-C6jdS4ws.mjs → OriginalBalanceAction-DK8_LkPz.mjs} +3 -3
- package/dist/{RecurringSettings-C81H1l38.mjs → RecurringSettings-B0uObPlD.mjs} +3 -3
- package/dist/{SpendingLegend-DqZxN_BZ.mjs → SpendingLegend-Bf-wbJvb.mjs} +2 -2
- package/dist/{TransactionDetails-BA_E5nQ-.mjs → TransactionDetails-COH0OKNG.mjs} +5 -5
- package/dist/{TransactionStore-PRlwE-TF.mjs → TransactionStore-Dz-G8Wd0.mjs} +2 -2
- package/dist/{User-Cnlegl1N.mjs → User-wXzDI4M8.mjs} +1 -1
- package/dist/{ViewMoreMicroCard-DfPXJzbv.mjs → ViewMoreMicroCard-C0832BMe.mjs} +101 -105
- package/dist/{WidgetContainer-CaPjoWeE.mjs → WidgetContainer-6dsjtOVg.mjs} +2 -2
- package/dist/accounts/index.es.js +140 -148
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +478 -483
- package/dist/cashflow/index.es.js +362 -367
- package/dist/categories/index.es.js +1 -1
- package/dist/common/hooks/index.d.ts +0 -1
- package/dist/common/index.es.js +33 -35
- package/dist/dashboard/index.es.js +88 -90
- package/dist/debts/index.es.js +342 -346
- package/dist/{exportTransactionsToCSV-DuAaI5XA.mjs → exportTransactionsToCSV-Cz2t0lmA.mjs} +1 -1
- package/dist/finstrong/index.es.js +350 -352
- package/dist/goals/index.es.js +511 -518
- package/dist/help/index.es.js +9 -13
- package/dist/{hooks-ZMp65DFz.mjs → hooks-C41HAxM5.mjs} +11 -11
- package/dist/investments/index.es.js +393 -395
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +240 -245
- package/dist/notifications/index.es.js +2 -2
- package/dist/recurringtransactions/index.es.js +285 -293
- package/dist/settings/index.es.js +249 -252
- package/dist/spending/index.es.js +126 -138
- package/dist/transactions/index.es.js +73 -77
- package/dist/trends/index.es.js +588 -601
- package/dist/{useAccountDisplayName-Cjx8YmKK.mjs → useAccountDisplayName-CMMlIOXF.mjs} +2 -2
- package/dist/{useInsightsEnabled-B7dxpDrX.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
- package/package.json +1 -1
- package/dist/common/hooks/useWidgetLoadTimer.d.ts +0 -6
- package/dist/useWidgetLoadTimer-C1NBkyLd.mjs +0 -23
|
@@ -3,45 +3,44 @@ import A, { useState as O } from "react";
|
|
|
3
3
|
import { observer as P } from "mobx-react-lite";
|
|
4
4
|
import _ from "@mui/material/Stack";
|
|
5
5
|
import Ee from "@mui/material/Tab";
|
|
6
|
-
import
|
|
7
|
-
import { C as ge } from "../ConnectionsDrawer-
|
|
6
|
+
import Ge from "@mui/material/Tabs";
|
|
7
|
+
import { C as ge } from "../ConnectionsDrawer-Bz4uwdFE.mjs";
|
|
8
8
|
import pe from "@mui/material/useMediaQuery";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import Me from "@mui/material/Box";
|
|
10
|
+
import Ne from "@mui/material/Collapse";
|
|
11
11
|
import K from "@mui/material/Divider";
|
|
12
12
|
import ee from "@mui/material/List";
|
|
13
13
|
import te from "@mui/material/ListItem";
|
|
14
14
|
import He from "@mui/material/ListItemButton";
|
|
15
15
|
import xe from "@mui/material/ToggleButton";
|
|
16
16
|
import ye from "@mui/material/ToggleButtonGroup";
|
|
17
|
-
import { Text as
|
|
17
|
+
import { Text as i, H1 as fe, P as ve, InstitutionLogo as ne } from "@mxenabled/mxui";
|
|
18
18
|
import Ue from "@mui/material/Button";
|
|
19
|
-
import { u as
|
|
20
|
-
import { A as z, W as
|
|
21
|
-
import { a as
|
|
19
|
+
import { u as M, g as be, t as H, b as Q, d as se, n as je } from "../hooks-C41HAxM5.mjs";
|
|
20
|
+
import { A as z, W as ze } from "../WidgetContainer-6dsjtOVg.mjs";
|
|
21
|
+
import { a as Oe, f as oe } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
22
22
|
import { u as U } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
23
23
|
import le from "@mui/material/styles/useTheme";
|
|
24
24
|
import { Icon as k } from "@mxenabled/mx-icons";
|
|
25
|
-
import { D as
|
|
26
|
-
import { useTheme as
|
|
27
|
-
import { f as
|
|
28
|
-
import
|
|
25
|
+
import { D as Ve } from "../Donut-Dmy3JTWd.mjs";
|
|
26
|
+
import { useTheme as Re } from "@mui/material/styles";
|
|
27
|
+
import { f as Pe, A as V } from "../InvestmentUtil-jOyOgzIB.mjs";
|
|
28
|
+
import Xe from "@mui/material/ListItemText";
|
|
29
29
|
import ce from "@mui/material/IconButton";
|
|
30
|
-
import
|
|
30
|
+
import $e from "@mui/material/Tooltip";
|
|
31
31
|
import _e from "@mui/material/Accordion";
|
|
32
32
|
import we from "@mui/material/AccordionDetails";
|
|
33
33
|
import Ce from "@mui/material/AccordionSummary";
|
|
34
34
|
import ie from "@mui/material/Paper";
|
|
35
|
-
import
|
|
35
|
+
import x from "@mui/system/Stack";
|
|
36
36
|
import Se from "@mui/material/TextField";
|
|
37
|
-
import { D as
|
|
38
|
-
import { DataGridPro as
|
|
39
|
-
import { Stack as
|
|
37
|
+
import { D as qe } from "../Drawer-BEtCk82g.mjs";
|
|
38
|
+
import { DataGridPro as Ke } from "@mui/x-data-grid-pro";
|
|
39
|
+
import { Stack as Ye } from "@mui/material";
|
|
40
40
|
import { L as De } from "../Loader-DUaFpDGv.mjs";
|
|
41
|
-
import { u as Ye } from "../useWidgetLoadTimer-C1NBkyLd.mjs";
|
|
42
41
|
import { E as Qe } from "../EmptyState-DoxNUae-.mjs";
|
|
43
42
|
const de = ({ sx: t = {} }) => {
|
|
44
|
-
const { investments:
|
|
43
|
+
const { investments: g } = M(), { onEvent: c } = be(), { setShowConnectionsWidget: u } = H();
|
|
45
44
|
return /* @__PURE__ */ o(_, { sx: { alignItems: "center", gap: 24, height: 164, p: 24, width: "100%", ...t }, children: [
|
|
46
45
|
/* @__PURE__ */ o(
|
|
47
46
|
_,
|
|
@@ -54,9 +53,9 @@ const de = ({ sx: t = {} }) => {
|
|
|
54
53
|
textAlign: "center"
|
|
55
54
|
},
|
|
56
55
|
children: [
|
|
57
|
-
/* @__PURE__ */ e(
|
|
56
|
+
/* @__PURE__ */ e(i, { sx: { fontWeight: 600, whiteSpace: "normal" }, variant: "Body", children: g.overview.investment_accounts_footer }),
|
|
58
57
|
/* @__PURE__ */ e(
|
|
59
|
-
|
|
58
|
+
i,
|
|
60
59
|
{
|
|
61
60
|
sx: {
|
|
62
61
|
color: "text.secondary",
|
|
@@ -64,7 +63,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
64
63
|
fontWeight: 400
|
|
65
64
|
},
|
|
66
65
|
variant: "ParagraphSmall",
|
|
67
|
-
children:
|
|
66
|
+
children: g.overview.connect_more_accounts_description
|
|
68
67
|
}
|
|
69
68
|
)
|
|
70
69
|
]
|
|
@@ -78,7 +77,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
78
77
|
},
|
|
79
78
|
sx: { fontWeight: 600 },
|
|
80
79
|
variant: "outlined",
|
|
81
|
-
children:
|
|
80
|
+
children: g.overview.connect_accounts
|
|
82
81
|
}
|
|
83
82
|
)
|
|
84
83
|
] });
|
|
@@ -120,48 +119,48 @@ const de = ({ sx: t = {} }) => {
|
|
|
120
119
|
{
|
|
121
120
|
name: "allocations_unknown"
|
|
122
121
|
}
|
|
123
|
-
], et = (t,
|
|
124
|
-
const u =
|
|
125
|
-
return t >= Math.min(u,
|
|
126
|
-
}, tt = (t,
|
|
122
|
+
], et = (t, g, c) => {
|
|
123
|
+
const u = g, v = c;
|
|
124
|
+
return t >= Math.min(u, v) && t < Math.max(u, v);
|
|
125
|
+
}, tt = (t, g, c) => {
|
|
127
126
|
const u = [
|
|
128
|
-
...new Set(t.map((
|
|
127
|
+
...new Set(t.map((m) => m.name.toLowerCase()))
|
|
129
128
|
];
|
|
130
|
-
let
|
|
131
|
-
return u.map((
|
|
132
|
-
const
|
|
133
|
-
const b =
|
|
134
|
-
return b.toLowerCase() ===
|
|
129
|
+
let v;
|
|
130
|
+
return u.map((m) => {
|
|
131
|
+
const s = t.reduce((y, d) => {
|
|
132
|
+
const b = d.name;
|
|
133
|
+
return b.toLowerCase() === m ? (v = b, Y(d) * d[g] / 100 + y) : y;
|
|
135
134
|
}, 0);
|
|
136
135
|
return {
|
|
137
|
-
displayName:
|
|
138
|
-
name:
|
|
139
|
-
value:
|
|
140
|
-
percentage:
|
|
136
|
+
displayName: v,
|
|
137
|
+
name: v,
|
|
138
|
+
value: s,
|
|
139
|
+
percentage: s / c
|
|
141
140
|
};
|
|
142
141
|
});
|
|
143
|
-
}, Y = (t) => t.calculated_market_value ? t.calculated_market_value : t.market_value, nt = (t,
|
|
144
|
-
const u = Object.values(
|
|
145
|
-
let
|
|
146
|
-
const
|
|
142
|
+
}, Y = (t) => t.calculated_market_value ? t.calculated_market_value : t.market_value, nt = (t, g, c) => {
|
|
143
|
+
const u = Object.values(g.allocations_list), v = [];
|
|
144
|
+
let f = 0;
|
|
145
|
+
const m = t.map(({ guid: n }) => n), s = c.filter(({ account_guid: n }) => m.includes(n)).map((n) => ({
|
|
147
146
|
...n,
|
|
148
147
|
name: n.symbol || n.description,
|
|
149
148
|
gainLoss: n.cost_basis || n.cost_basis === 0 ? Y(n) - n.cost_basis : 0
|
|
150
|
-
})), { cashBalance:
|
|
151
|
-
(n,
|
|
152
|
-
cashBalance: n.cashBalance + (
|
|
153
|
-
totalAccountBalance: n.totalAccountBalance + (
|
|
149
|
+
})), { cashBalance: y, totalAccountBalance: d } = t.reduce(
|
|
150
|
+
(n, p) => ({
|
|
151
|
+
cashBalance: n.cashBalance + (p.cash_balance || 0),
|
|
152
|
+
totalAccountBalance: n.totalAccountBalance + (p.balance || 0)
|
|
154
153
|
}),
|
|
155
154
|
{ cashBalance: 0, totalAccountBalance: 0 }
|
|
156
|
-
), { marketValue: b, totalGainLoss:
|
|
157
|
-
(n,
|
|
158
|
-
marketValue: n.marketValue + Y(
|
|
159
|
-
totalGainLoss: n.totalGainLoss +
|
|
155
|
+
), { marketValue: b, totalGainLoss: l } = s.reduce(
|
|
156
|
+
(n, p) => ({
|
|
157
|
+
marketValue: n.marketValue + Y(p),
|
|
158
|
+
totalGainLoss: n.totalGainLoss + p.gainLoss
|
|
160
159
|
}),
|
|
161
160
|
{ marketValue: 0, totalGainLoss: 0 }
|
|
162
|
-
),
|
|
163
|
-
Ze.forEach((n,
|
|
164
|
-
const C =
|
|
161
|
+
), h = b + y;
|
|
162
|
+
Ze.forEach((n, p) => {
|
|
163
|
+
const C = s.filter(
|
|
165
164
|
(I) => !!I[n.name]
|
|
166
165
|
);
|
|
167
166
|
let S = C.reduce(
|
|
@@ -173,69 +172,69 @@ const de = ({ sx: t = {} }) => {
|
|
|
173
172
|
n.name,
|
|
174
173
|
S
|
|
175
174
|
);
|
|
176
|
-
if (n.name === "allocations_cash" &&
|
|
177
|
-
S +=
|
|
175
|
+
if (n.name === "allocations_cash" && y > 0) {
|
|
176
|
+
S += y;
|
|
178
177
|
const I = {
|
|
179
|
-
displayName:
|
|
178
|
+
displayName: g.cash_balance_display_name,
|
|
180
179
|
name: "allocations_name",
|
|
181
|
-
value:
|
|
182
|
-
percentage:
|
|
180
|
+
value: y,
|
|
181
|
+
percentage: y / h
|
|
183
182
|
};
|
|
184
183
|
B.push(I);
|
|
185
184
|
}
|
|
186
|
-
S > 0 && (
|
|
185
|
+
S > 0 && (v.push({
|
|
187
186
|
name: n.name,
|
|
188
|
-
displayName: u[
|
|
189
|
-
guid: `${n.name}-${
|
|
187
|
+
displayName: u[p],
|
|
188
|
+
guid: `${n.name}-${p}`,
|
|
190
189
|
holdings: B,
|
|
191
|
-
percentage: S /
|
|
190
|
+
percentage: S / h,
|
|
192
191
|
value: S,
|
|
193
192
|
color: Je[n.name]
|
|
194
|
-
}),
|
|
193
|
+
}), f += S);
|
|
195
194
|
});
|
|
196
|
-
const
|
|
197
|
-
({ displayName: n, guid:
|
|
198
|
-
id:
|
|
195
|
+
const r = v.map(
|
|
196
|
+
({ displayName: n, guid: p, color: C, value: S }) => ({
|
|
197
|
+
id: p,
|
|
199
198
|
color: C,
|
|
200
199
|
label: n,
|
|
201
|
-
value: S /
|
|
200
|
+
value: S / f * 100
|
|
202
201
|
})
|
|
203
202
|
);
|
|
204
203
|
return {
|
|
205
|
-
investmentsData:
|
|
206
|
-
donutData:
|
|
207
|
-
totalAmount:
|
|
208
|
-
totalGainLoss:
|
|
209
|
-
totalMarketValue:
|
|
210
|
-
totalGainLossPercentage:
|
|
204
|
+
investmentsData: v,
|
|
205
|
+
donutData: r,
|
|
206
|
+
totalAmount: f,
|
|
207
|
+
totalGainLoss: l,
|
|
208
|
+
totalMarketValue: h,
|
|
209
|
+
totalGainLossPercentage: l / d
|
|
211
210
|
};
|
|
212
|
-
}, re = (t) => t < 1e-3 ? "< 0.1%" :
|
|
211
|
+
}, re = (t) => t < 1e-3 ? "< 0.1%" : Oe(t), R = (t) => t === 0 ? oe(t, "0,0.00") : et(t, -0.01, 0.01) ? "< $0.01" : oe(t, "0,0.00"), ot = ({
|
|
213
212
|
data: t,
|
|
214
|
-
onSelected:
|
|
213
|
+
onSelected: g,
|
|
215
214
|
selectedId: c,
|
|
216
215
|
selectedTabs: u,
|
|
217
|
-
setSelectedTabs:
|
|
216
|
+
setSelectedTabs: v
|
|
218
217
|
}) => {
|
|
219
|
-
const
|
|
220
|
-
|
|
221
|
-
}, { isMobile:
|
|
222
|
-
investments: { allocation:
|
|
223
|
-
} =
|
|
224
|
-
{ label:
|
|
225
|
-
{ label:
|
|
226
|
-
],
|
|
227
|
-
return /* @__PURE__ */ o(_, { sx: { mt: 15, gap: 12, width:
|
|
218
|
+
const f = (l, h) => {
|
|
219
|
+
h !== null && v(h);
|
|
220
|
+
}, { isMobile: m } = U(), {
|
|
221
|
+
investments: { allocation: s }
|
|
222
|
+
} = M(), y = [
|
|
223
|
+
{ label: s.tabs_label_dollar, value: 0 },
|
|
224
|
+
{ label: s.tabs_label_percent, value: 1 }
|
|
225
|
+
], d = !t?.investmentsData.length, { isSmallMobile: b } = U();
|
|
226
|
+
return /* @__PURE__ */ o(_, { sx: { mt: 15, gap: 12, width: m ? 250 : 412 }, children: [
|
|
228
227
|
/* @__PURE__ */ e(
|
|
229
228
|
ye,
|
|
230
229
|
{
|
|
231
230
|
exclusive: !0,
|
|
232
231
|
fullWidth: !0,
|
|
233
|
-
onChange:
|
|
234
|
-
value:
|
|
235
|
-
children:
|
|
232
|
+
onChange: f,
|
|
233
|
+
value: d ? -1 : u,
|
|
234
|
+
children: y.map(({ label: l, value: h }) => /* @__PURE__ */ e(xe, { color: "primary", value: h, children: /* @__PURE__ */ e(i, { bold: !0, textTransform: "capitalize", variant: "Body", children: l }) }, l))
|
|
236
235
|
}
|
|
237
236
|
),
|
|
238
|
-
/* @__PURE__ */ e(ee, { sx: { px: 12 }, children: t.investmentsData.map((
|
|
237
|
+
/* @__PURE__ */ e(ee, { sx: { px: 12 }, children: t.investmentsData.map((l) => /* @__PURE__ */ o(A.Fragment, { children: [
|
|
239
238
|
/* @__PURE__ */ e(
|
|
240
239
|
te,
|
|
241
240
|
{
|
|
@@ -247,17 +246,17 @@ const de = ({ sx: t = {} }) => {
|
|
|
247
246
|
children: /* @__PURE__ */ o(
|
|
248
247
|
He,
|
|
249
248
|
{
|
|
250
|
-
"aria-expanded": c ===
|
|
251
|
-
onClick: () =>
|
|
249
|
+
"aria-expanded": c === l.guid,
|
|
250
|
+
onClick: () => g(l.guid),
|
|
252
251
|
sx: { minHeight: 44, px: 12, py: 0 },
|
|
253
252
|
children: [
|
|
254
253
|
/* @__PURE__ */ e(
|
|
255
|
-
|
|
254
|
+
Me,
|
|
256
255
|
{
|
|
257
256
|
borderRadius: 4,
|
|
258
257
|
flexShrink: 0,
|
|
259
258
|
height: 8,
|
|
260
|
-
sx: { backgroundColor:
|
|
259
|
+
sx: { backgroundColor: l.color, mr: 8 },
|
|
261
260
|
width: 8
|
|
262
261
|
}
|
|
263
262
|
),
|
|
@@ -269,8 +268,8 @@ const de = ({ sx: t = {} }) => {
|
|
|
269
268
|
justifyContent: "space-between",
|
|
270
269
|
width: "100%",
|
|
271
270
|
children: [
|
|
272
|
-
/* @__PURE__ */ e(
|
|
273
|
-
/* @__PURE__ */ e(
|
|
271
|
+
/* @__PURE__ */ e(i, { bold: c === l.guid, children: l.displayName }),
|
|
272
|
+
/* @__PURE__ */ e(i, { bold: c === l.guid, variant: "Body", children: u === 0 ? R(l.value) : re(l.percentage) })
|
|
274
273
|
]
|
|
275
274
|
}
|
|
276
275
|
)
|
|
@@ -280,8 +279,8 @@ const de = ({ sx: t = {} }) => {
|
|
|
280
279
|
}
|
|
281
280
|
),
|
|
282
281
|
/* @__PURE__ */ e(K, {}),
|
|
283
|
-
|
|
284
|
-
|
|
282
|
+
l.holdings && l.holdings.length > 0 && /* @__PURE__ */ e(Ne, { in: c === l.guid, unmountOnExit: !0, children: /* @__PURE__ */ o(ee, { children: [
|
|
283
|
+
l?.holdings?.map((h) => /* @__PURE__ */ e(
|
|
285
284
|
te,
|
|
286
285
|
{
|
|
287
286
|
sx: {
|
|
@@ -290,20 +289,20 @@ const de = ({ sx: t = {} }) => {
|
|
|
290
289
|
py: 0
|
|
291
290
|
},
|
|
292
291
|
children: /* @__PURE__ */ o(_, { direction: "row", justifyContent: "space-between", width: "100%", children: [
|
|
293
|
-
/* @__PURE__ */ o(
|
|
294
|
-
|
|
292
|
+
/* @__PURE__ */ o(i, { children: [
|
|
293
|
+
h.displayName,
|
|
295
294
|
" "
|
|
296
295
|
] }),
|
|
297
|
-
/* @__PURE__ */ e(
|
|
296
|
+
/* @__PURE__ */ e(i, { children: u === 0 ? R(h.value) : re(h.percentage) })
|
|
298
297
|
] })
|
|
299
298
|
},
|
|
300
|
-
|
|
299
|
+
h.displayName
|
|
301
300
|
)),
|
|
302
301
|
/* @__PURE__ */ e(K, {})
|
|
303
302
|
] }) })
|
|
304
|
-
] },
|
|
305
|
-
|
|
306
|
-
/* @__PURE__ */ e(
|
|
303
|
+
] }, l.guid)) }),
|
|
304
|
+
d ? /* @__PURE__ */ o(ae, { children: [
|
|
305
|
+
/* @__PURE__ */ e(i, { sx: { color: "secondary.main", p: 8, textAlign: "center" }, children: s.empty_data }),
|
|
307
306
|
/* @__PURE__ */ e(K, { sx: { borderColor: "border.light" } }),
|
|
308
307
|
/* @__PURE__ */ e(
|
|
309
308
|
de,
|
|
@@ -313,40 +312,40 @@ const de = ({ sx: t = {} }) => {
|
|
|
313
312
|
}
|
|
314
313
|
}
|
|
315
314
|
)
|
|
316
|
-
] }) : u === 0 && /* @__PURE__ */ e(
|
|
315
|
+
] }) : u === 0 && /* @__PURE__ */ e(i, { bold: !0, sx: { textAlign: "right", pr: 24 }, children: `${s.total_label_text} ${R(t.totalAmount)}` })
|
|
317
316
|
] });
|
|
318
317
|
}, it = ({
|
|
319
318
|
data: t,
|
|
320
|
-
hoveredId:
|
|
319
|
+
hoveredId: g,
|
|
321
320
|
isPercentage: c,
|
|
322
321
|
onMouseEnter: u,
|
|
323
|
-
onMouseLeave:
|
|
324
|
-
onSelected:
|
|
325
|
-
selectedId:
|
|
326
|
-
size:
|
|
327
|
-
totalLabel:
|
|
322
|
+
onMouseLeave: v,
|
|
323
|
+
onSelected: f,
|
|
324
|
+
selectedId: m,
|
|
325
|
+
size: s = 150,
|
|
326
|
+
totalLabel: y
|
|
328
327
|
}) => {
|
|
329
|
-
const
|
|
330
|
-
() =>
|
|
331
|
-
[
|
|
328
|
+
const d = le(), b = d.palette.mode === "dark", l = A.useMemo(
|
|
329
|
+
() => m ? t.investmentsData.find(({ guid: B }) => B === m) : void 0,
|
|
330
|
+
[m]
|
|
332
331
|
), {
|
|
333
|
-
investments: { allocation:
|
|
334
|
-
} =
|
|
332
|
+
investments: { allocation: h }
|
|
333
|
+
} = M(), r = A.useMemo(() => t.donutData.length > 0 ? t.donutData : [{ id: "0", color: d.palette.border.light, value: 100 }], [t, d]), n = b ? "#0AC295" : "#09A57F", p = b ? "grey.300" : "grey.700", C = () => l ? h.pie_chart_centered_click_for_details : c ? re(t.totalGainLossPercentage) : R(t.totalGainLoss), S = t.totalGainLoss >= 0 ? n : p;
|
|
335
334
|
return /* @__PURE__ */ e(
|
|
336
|
-
|
|
335
|
+
Ve,
|
|
337
336
|
{
|
|
338
|
-
data:
|
|
339
|
-
hoveredId:
|
|
340
|
-
onClick:
|
|
337
|
+
data: r,
|
|
338
|
+
hoveredId: g,
|
|
339
|
+
onClick: f,
|
|
341
340
|
onMouseEnter: u,
|
|
342
|
-
onMouseLeave:
|
|
343
|
-
selectedId:
|
|
344
|
-
size:
|
|
345
|
-
children: /* @__PURE__ */ e(_, { alignItems: "center", height: "100%", justifyContent: "center", width: "100%", children: /* @__PURE__ */ e(_, { alignItems: "center", justifyContent: "center", minHeight:
|
|
346
|
-
/* @__PURE__ */ e(
|
|
347
|
-
/* @__PURE__ */ e(fe, { color: "text.primary", children: R(
|
|
341
|
+
onMouseLeave: v,
|
|
342
|
+
selectedId: m,
|
|
343
|
+
size: s,
|
|
344
|
+
children: /* @__PURE__ */ e(_, { alignItems: "center", height: "100%", justifyContent: "center", width: "100%", children: /* @__PURE__ */ e(_, { alignItems: "center", justifyContent: "center", minHeight: s, minWidth: s, children: /* @__PURE__ */ o(_, { alignItems: "center", sx: { gap: { xs: 4, xl: 8 }, mb: { xs: 4, xl: 8 } }, children: [
|
|
345
|
+
/* @__PURE__ */ e(i, { color: "text.secondary", noWrap: !0, children: l?.displayName ?? y }),
|
|
346
|
+
/* @__PURE__ */ e(fe, { color: "text.primary", children: R(l?.value ?? t.totalMarketValue) }),
|
|
348
347
|
/* @__PURE__ */ o(_, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
|
349
|
-
!
|
|
348
|
+
!l && /* @__PURE__ */ e(
|
|
350
349
|
k,
|
|
351
350
|
{
|
|
352
351
|
name: t.totalGainLoss >= 0 ? "trending_up" : "trending_down",
|
|
@@ -355,7 +354,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
355
354
|
}
|
|
356
355
|
),
|
|
357
356
|
/* @__PURE__ */ e(
|
|
358
|
-
|
|
357
|
+
i,
|
|
359
358
|
{
|
|
360
359
|
sx: {
|
|
361
360
|
color: S,
|
|
@@ -370,20 +369,20 @@ const de = ({ sx: t = {} }) => {
|
|
|
370
369
|
}
|
|
371
370
|
);
|
|
372
371
|
}, rt = () => {
|
|
373
|
-
const [t,
|
|
374
|
-
c !== n ? u(n) : (u(""),
|
|
375
|
-
}, { selectedAccountGuids:
|
|
372
|
+
const [t, g] = A.useState(0), [c, u] = A.useState(""), [v, f] = A.useState(""), m = (n) => {
|
|
373
|
+
c !== n ? u(n) : (u(""), f(""));
|
|
374
|
+
}, { selectedAccountGuids: s } = Q(), { visibleHoldings: y } = H(), { visibleInvestmentAccounts: d } = se(), {
|
|
376
375
|
investments: { allocation: b }
|
|
377
|
-
} =
|
|
378
|
-
|
|
376
|
+
} = M(), l = nt(
|
|
377
|
+
d.filter(({ guid: n }) => s.includes(n)),
|
|
379
378
|
b,
|
|
380
|
-
|
|
381
|
-
), { isMobile:
|
|
379
|
+
y
|
|
380
|
+
), { isMobile: h } = U(), r = pe("(max-width:768px)");
|
|
382
381
|
return /* @__PURE__ */ o(
|
|
383
382
|
_,
|
|
384
383
|
{
|
|
385
|
-
alignItems:
|
|
386
|
-
direction:
|
|
384
|
+
alignItems: r ? "center" : "flex-start",
|
|
385
|
+
direction: r ? "column" : "row",
|
|
387
386
|
gap: { xs: 16, md: 64, xl: 100 },
|
|
388
387
|
sx: {
|
|
389
388
|
justifyContent: "center",
|
|
@@ -394,29 +393,29 @@ const de = ({ sx: t = {} }) => {
|
|
|
394
393
|
/* @__PURE__ */ e(
|
|
395
394
|
it,
|
|
396
395
|
{
|
|
397
|
-
data:
|
|
398
|
-
hoveredId:
|
|
396
|
+
data: l,
|
|
397
|
+
hoveredId: v,
|
|
399
398
|
isPercentage: t === 1,
|
|
400
399
|
onMouseEnter: (n) => {
|
|
401
|
-
c === n ?
|
|
400
|
+
c === n ? f("") : c || f(n);
|
|
402
401
|
},
|
|
403
402
|
onMouseLeave: () => {
|
|
404
|
-
|
|
403
|
+
f("");
|
|
405
404
|
},
|
|
406
|
-
onSelected:
|
|
405
|
+
onSelected: m,
|
|
407
406
|
selectedId: c,
|
|
408
|
-
size:
|
|
407
|
+
size: h ? 280 : 400,
|
|
409
408
|
totalLabel: b.pie_chart_centered_text
|
|
410
409
|
}
|
|
411
410
|
),
|
|
412
411
|
/* @__PURE__ */ e(
|
|
413
412
|
ot,
|
|
414
413
|
{
|
|
415
|
-
data:
|
|
416
|
-
onSelected:
|
|
414
|
+
data: l,
|
|
415
|
+
onSelected: m,
|
|
417
416
|
selectedId: c,
|
|
418
417
|
selectedTabs: t,
|
|
419
|
-
setSelectedTabs:
|
|
418
|
+
setSelectedTabs: g
|
|
420
419
|
}
|
|
421
420
|
)
|
|
422
421
|
]
|
|
@@ -424,15 +423,15 @@ const de = ({ sx: t = {} }) => {
|
|
|
424
423
|
);
|
|
425
424
|
}, at = P(rt), st = ({
|
|
426
425
|
analysisDetails: t,
|
|
427
|
-
analysisType:
|
|
426
|
+
analysisType: g,
|
|
428
427
|
copy: c,
|
|
429
428
|
setAnalysisType: u
|
|
430
429
|
}) => {
|
|
431
|
-
const { isSmallMobile:
|
|
432
|
-
key:
|
|
433
|
-
value: oe(t[
|
|
434
|
-
formattedKey:
|
|
435
|
-
})), [t]),
|
|
430
|
+
const { isSmallMobile: v } = U(), f = A.useMemo(() => Object.keys(t).filter((s) => t[s] >= 1).map((s) => ({
|
|
431
|
+
key: s,
|
|
432
|
+
value: oe(t[s], "0,0"),
|
|
433
|
+
formattedKey: Pe(s)
|
|
434
|
+
})), [t]), m = [
|
|
436
435
|
{ label: c.equities, value: V.Stocks },
|
|
437
436
|
{ label: c.bonds, value: V.Bonds }
|
|
438
437
|
];
|
|
@@ -442,7 +441,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
442
441
|
{
|
|
443
442
|
color: "primary",
|
|
444
443
|
exclusive: !0,
|
|
445
|
-
onChange: (
|
|
444
|
+
onChange: (s, y) => y && u(y),
|
|
446
445
|
sx: {
|
|
447
446
|
width: "100%",
|
|
448
447
|
"& .MuiToggleButton-root": {
|
|
@@ -451,11 +450,11 @@ const de = ({ sx: t = {} }) => {
|
|
|
451
450
|
textTransform: "capitalize"
|
|
452
451
|
}
|
|
453
452
|
},
|
|
454
|
-
value:
|
|
455
|
-
children:
|
|
453
|
+
value: f.length ? g : -1,
|
|
454
|
+
children: m.map(({ label: s, value: y }) => /* @__PURE__ */ e(xe, { sx: { width: "100%" }, value: y, children: s }, y))
|
|
456
455
|
}
|
|
457
456
|
),
|
|
458
|
-
|
|
457
|
+
f.length ? /* @__PURE__ */ e(
|
|
459
458
|
ee,
|
|
460
459
|
{
|
|
461
460
|
sx: {
|
|
@@ -463,55 +462,55 @@ const de = ({ sx: t = {} }) => {
|
|
|
463
462
|
"& .MuiListItem-divider": { borderColor: "border.light" },
|
|
464
463
|
"& .MuiListItem-root": { minHeight: 44, px: 12 }
|
|
465
464
|
},
|
|
466
|
-
children:
|
|
467
|
-
|
|
465
|
+
children: f.map(({ value: s, formattedKey: y }) => /* @__PURE__ */ e(te, { divider: !0, secondaryAction: /* @__PURE__ */ e(i, { children: s }), children: /* @__PURE__ */ e(
|
|
466
|
+
Xe,
|
|
468
467
|
{
|
|
469
|
-
primary:
|
|
468
|
+
primary: y,
|
|
470
469
|
primaryTypographyProps: { fontStyle: "normal" }
|
|
471
470
|
}
|
|
472
|
-
) },
|
|
471
|
+
) }, y))
|
|
473
472
|
}
|
|
474
473
|
) : /* @__PURE__ */ o(ae, { children: [
|
|
475
|
-
/* @__PURE__ */ e(
|
|
474
|
+
/* @__PURE__ */ e(i, { sx: { color: "secondary.main", p: 8, textAlign: "center" }, children: c.empty_data }),
|
|
476
475
|
/* @__PURE__ */ e(K, { sx: { borderColor: "border.light" } }),
|
|
477
476
|
/* @__PURE__ */ e(
|
|
478
477
|
de,
|
|
479
478
|
{
|
|
480
479
|
sx: {
|
|
481
|
-
".inner-container": { width:
|
|
480
|
+
".inner-container": { width: v ? "100%" : 364 }
|
|
482
481
|
}
|
|
483
482
|
}
|
|
484
483
|
)
|
|
485
484
|
] })
|
|
486
485
|
] });
|
|
487
|
-
}, lt = ({ body: t, title:
|
|
488
|
-
/* @__PURE__ */ e(
|
|
486
|
+
}, lt = ({ body: t, title: g }) => /* @__PURE__ */ o(_, { sx: { gap: 4, p: 12 }, children: [
|
|
487
|
+
/* @__PURE__ */ e(i, { bold: !0, variant: "Body", children: g }),
|
|
489
488
|
/* @__PURE__ */ e(ve, { variant: "ParagraphSmall", children: t })
|
|
490
489
|
] }), ct = ({
|
|
491
490
|
placement: t = "bottom",
|
|
492
|
-
tooltip_info_body:
|
|
491
|
+
tooltip_info_body: g,
|
|
493
492
|
tooltip_info_title: c
|
|
494
493
|
}) => /* @__PURE__ */ e(
|
|
495
|
-
|
|
494
|
+
$e,
|
|
496
495
|
{
|
|
497
496
|
enterTouchDelay: 500,
|
|
498
497
|
placement: t,
|
|
499
|
-
title: /* @__PURE__ */ e(lt, { body:
|
|
498
|
+
title: /* @__PURE__ */ e(lt, { body: g, title: c }),
|
|
500
499
|
children: /* @__PURE__ */ e(ce, { "aria-label": c, sx: { minHeight: 0, minWidth: 0, p: 0 }, children: /* @__PURE__ */ e(k, { name: "info", sx: { color: "info.main" } }) })
|
|
501
500
|
}
|
|
502
501
|
), dt = () => {
|
|
503
502
|
const {
|
|
504
503
|
investments: { analysis: t }
|
|
505
|
-
} =
|
|
506
|
-
const
|
|
507
|
-
return { cellDimension:
|
|
508
|
-
}, [t,
|
|
504
|
+
} = M(), { analysisChartData: g, analysisDetails: c, analysisType: u, setAnalysisType: v } = H(), f = pe("(min-width:320px) and (max-width:375px)"), { isMobile: m } = U(), y = Re().palette.mode === "dark", { cellDimension: d, columns: b, rows: l, textVariant: h } = A.useMemo(() => {
|
|
505
|
+
const r = u === V.Stocks, n = Object.values(r ? t.stock_column_labels : t.bond_column_labels), p = Object.values(r ? t.stock_row_labels : t.bond_row_labels);
|
|
506
|
+
return { cellDimension: m ? 72 : 100, columns: n, rows: p, textVariant: m ? "XSmall" : "Body" };
|
|
507
|
+
}, [t, m, u]);
|
|
509
508
|
return /* @__PURE__ */ o(
|
|
510
509
|
_,
|
|
511
510
|
{
|
|
512
511
|
sx: {
|
|
513
512
|
flexDirection: { md: "row" },
|
|
514
|
-
gap:
|
|
513
|
+
gap: m ? 48 : 64,
|
|
515
514
|
justifyContent: "center",
|
|
516
515
|
pt: 48,
|
|
517
516
|
px: 16
|
|
@@ -532,34 +531,34 @@ const de = ({ sx: t = {} }) => {
|
|
|
532
531
|
{
|
|
533
532
|
sx: {
|
|
534
533
|
alignItems: "center",
|
|
535
|
-
bottom:
|
|
536
|
-
gap:
|
|
534
|
+
bottom: m ? 10 : 24,
|
|
535
|
+
gap: m ? 0 : 24,
|
|
537
536
|
position: "relative",
|
|
538
537
|
transform: "rotate(-180deg)",
|
|
539
538
|
writingMode: "vertical-rl"
|
|
540
539
|
},
|
|
541
540
|
children: [
|
|
542
|
-
/* @__PURE__ */ e(ve, { bold: !0, color: "secondary.main", variant:
|
|
541
|
+
/* @__PURE__ */ e(ve, { bold: !0, color: "secondary.main", variant: h, children: u === V.Stocks ? t.market_capitalization : t.credit_quality }),
|
|
543
542
|
/* @__PURE__ */ e(
|
|
544
543
|
_,
|
|
545
544
|
{
|
|
546
545
|
sx: {
|
|
547
546
|
flexDirection: "row",
|
|
548
|
-
height:
|
|
547
|
+
height: m ? 224 : 308,
|
|
549
548
|
justifyContent: "space-around"
|
|
550
549
|
},
|
|
551
|
-
children: b.map((
|
|
552
|
-
|
|
550
|
+
children: b.map((r) => /* @__PURE__ */ e(
|
|
551
|
+
i,
|
|
553
552
|
{
|
|
554
553
|
sx: {
|
|
555
554
|
color: "secondary.main",
|
|
556
555
|
pl: 12,
|
|
557
|
-
pr:
|
|
556
|
+
pr: m ? 4 : 0
|
|
558
557
|
},
|
|
559
|
-
variant:
|
|
560
|
-
children:
|
|
558
|
+
variant: h,
|
|
559
|
+
children: r
|
|
561
560
|
},
|
|
562
|
-
|
|
561
|
+
r
|
|
563
562
|
))
|
|
564
563
|
}
|
|
565
564
|
)
|
|
@@ -571,13 +570,13 @@ const de = ({ sx: t = {} }) => {
|
|
|
571
570
|
_,
|
|
572
571
|
{
|
|
573
572
|
sx: {
|
|
574
|
-
alignSelf:
|
|
573
|
+
alignSelf: f ? "start" : "center",
|
|
575
574
|
flexDirection: "row",
|
|
576
575
|
gap: 8,
|
|
577
576
|
pb: 12
|
|
578
577
|
},
|
|
579
578
|
children: [
|
|
580
|
-
/* @__PURE__ */ e(
|
|
579
|
+
/* @__PURE__ */ e(i, { bold: !0, children: t.invest_analysis }),
|
|
581
580
|
/* @__PURE__ */ e(
|
|
582
581
|
ct,
|
|
583
582
|
{
|
|
@@ -588,33 +587,33 @@ const de = ({ sx: t = {} }) => {
|
|
|
588
587
|
]
|
|
589
588
|
}
|
|
590
589
|
),
|
|
591
|
-
|
|
592
|
-
const B = n === 0, I = n ===
|
|
590
|
+
g.map((r, n, p) => /* @__PURE__ */ e(_, { sx: { flexDirection: "row", gap: 4 }, children: r.map((C, S) => {
|
|
591
|
+
const B = n === 0, I = n === p.length - 1, W = S === 0, G = S === r.length - 1, F = Number(C.replace("%", "")) >= 25;
|
|
593
592
|
let T = "grey.200", j = "grey.900";
|
|
594
|
-
return
|
|
593
|
+
return y ? (T = F ? "grey.200" : "grey.700", j = F ? "grey.900" : "common.white") : (T = F ? "grey.700" : "grey.200", j = F ? "common.white" : "grey.900"), /* @__PURE__ */ e(
|
|
595
594
|
_,
|
|
596
595
|
{
|
|
597
596
|
sx: {
|
|
598
597
|
...{
|
|
599
598
|
borderBottomLeftRadius: I && W ? 4 : 0,
|
|
600
|
-
borderBottomRightRadius: I &&
|
|
599
|
+
borderBottomRightRadius: I && G ? 4 : 0,
|
|
601
600
|
borderTopLeftRadius: B && W ? 4 : 0,
|
|
602
|
-
borderTopRightRadius: B &&
|
|
601
|
+
borderTopRightRadius: B && G ? 4 : 0
|
|
603
602
|
},
|
|
604
603
|
alignItems: "center",
|
|
605
604
|
bgcolor: T,
|
|
606
|
-
height:
|
|
605
|
+
height: d,
|
|
607
606
|
justifyContent: "center",
|
|
608
|
-
width:
|
|
607
|
+
width: d
|
|
609
608
|
},
|
|
610
609
|
children: /* @__PURE__ */ e(
|
|
611
|
-
|
|
610
|
+
i,
|
|
612
611
|
{
|
|
613
612
|
sx: {
|
|
614
613
|
color: j,
|
|
615
|
-
fontWeight:
|
|
614
|
+
fontWeight: m ? 600 : 700
|
|
616
615
|
},
|
|
617
|
-
variant:
|
|
616
|
+
variant: m ? "Body" : "H3",
|
|
618
617
|
children: C
|
|
619
618
|
}
|
|
620
619
|
)
|
|
@@ -622,13 +621,13 @@ const de = ({ sx: t = {} }) => {
|
|
|
622
621
|
S
|
|
623
622
|
);
|
|
624
623
|
}) }, n)),
|
|
625
|
-
/* @__PURE__ */ e(_, { sx: { alignSelf: "center", flexDirection: "row", pt: 12 }, children:
|
|
624
|
+
/* @__PURE__ */ e(_, { sx: { alignSelf: "center", flexDirection: "row", pt: 12 }, children: l.map((r) => /* @__PURE__ */ e(_, { sx: { alignItems: "center", width: d }, children: /* @__PURE__ */ e(i, { color: "secondary.main", variant: h, children: r }) }, r)) }),
|
|
626
625
|
/* @__PURE__ */ e(
|
|
627
|
-
|
|
626
|
+
i,
|
|
628
627
|
{
|
|
629
628
|
bold: !0,
|
|
630
|
-
sx: { color: "secondary.main", pt:
|
|
631
|
-
variant:
|
|
629
|
+
sx: { color: "secondary.main", pt: m ? 4 : 24, textAlign: "center" },
|
|
630
|
+
variant: h,
|
|
632
631
|
children: u === V.Stocks ? t.valuation : t.duration
|
|
633
632
|
}
|
|
634
633
|
)
|
|
@@ -646,7 +645,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
646
645
|
equities: t.equities,
|
|
647
646
|
bonds: t.bonds
|
|
648
647
|
},
|
|
649
|
-
setAnalysisType:
|
|
648
|
+
setAnalysisType: v
|
|
650
649
|
}
|
|
651
650
|
)
|
|
652
651
|
]
|
|
@@ -654,30 +653,30 @@ const de = ({ sx: t = {} }) => {
|
|
|
654
653
|
);
|
|
655
654
|
}, mt = P(dt), ut = ({
|
|
656
655
|
accountHoldingsData: t,
|
|
657
|
-
currentEditedCostBasis:
|
|
656
|
+
currentEditedCostBasis: g,
|
|
658
657
|
editingHoldingId: c,
|
|
659
658
|
handleCostBasisBlur: u,
|
|
660
|
-
handleCostBasisClick:
|
|
661
|
-
handleCostBasisChange:
|
|
662
|
-
handleCostBasisKeyDown:
|
|
663
|
-
isOpen:
|
|
664
|
-
onClose:
|
|
659
|
+
handleCostBasisClick: v,
|
|
660
|
+
handleCostBasisChange: f,
|
|
661
|
+
handleCostBasisKeyDown: m,
|
|
662
|
+
isOpen: s,
|
|
663
|
+
onClose: y
|
|
665
664
|
}) => {
|
|
666
|
-
const { investments:
|
|
667
|
-
|
|
665
|
+
const { investments: d } = M(), [b, l] = A.useState({}), h = (r) => (n, p) => {
|
|
666
|
+
l((C) => ({
|
|
668
667
|
...C,
|
|
669
|
-
[
|
|
668
|
+
[r]: p
|
|
670
669
|
}));
|
|
671
670
|
};
|
|
672
671
|
return /* @__PURE__ */ o(
|
|
673
|
-
|
|
672
|
+
qe,
|
|
674
673
|
{
|
|
675
|
-
ariaLabelClose:
|
|
676
|
-
isOpen:
|
|
677
|
-
onClose:
|
|
678
|
-
title:
|
|
674
|
+
ariaLabelClose: d.overview.close_investment_drawer,
|
|
675
|
+
isOpen: s,
|
|
676
|
+
onClose: y,
|
|
677
|
+
title: d.overview.investment_details,
|
|
679
678
|
children: [
|
|
680
|
-
/* @__PURE__ */ o(
|
|
679
|
+
/* @__PURE__ */ o(x, { sx: { gap: 8, p: 24 }, children: [
|
|
681
680
|
/* @__PURE__ */ e(
|
|
682
681
|
ne,
|
|
683
682
|
{
|
|
@@ -686,11 +685,11 @@ const de = ({ sx: t = {} }) => {
|
|
|
686
685
|
size: 64
|
|
687
686
|
}
|
|
688
687
|
),
|
|
689
|
-
/* @__PURE__ */ e(
|
|
690
|
-
/* @__PURE__ */ e(
|
|
691
|
-
/* @__PURE__ */ o(
|
|
692
|
-
/* @__PURE__ */ e(
|
|
693
|
-
/* @__PURE__ */ e(
|
|
688
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary" }, variant: "Small", children: t.accounts.memberName }),
|
|
689
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary" }, variant: "H2", children: t.accounts.user_name || t.accounts.name }),
|
|
690
|
+
/* @__PURE__ */ o(x, { sx: { alignItems: "center", flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
691
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: d.overview.current_balance }),
|
|
692
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: t.accounts.balance?.toLocaleString("en-US", {
|
|
694
693
|
currency: "USD",
|
|
695
694
|
maximumFractionDigits: 2,
|
|
696
695
|
minimumFractionDigits: 2,
|
|
@@ -699,7 +698,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
699
698
|
] })
|
|
700
699
|
] }),
|
|
701
700
|
/* @__PURE__ */ o(
|
|
702
|
-
|
|
701
|
+
x,
|
|
703
702
|
{
|
|
704
703
|
sx: {
|
|
705
704
|
bgcolor: "background.default",
|
|
@@ -709,19 +708,19 @@ const de = ({ sx: t = {} }) => {
|
|
|
709
708
|
py: 10
|
|
710
709
|
},
|
|
711
710
|
children: [
|
|
712
|
-
/* @__PURE__ */ e(
|
|
713
|
-
/* @__PURE__ */ e(
|
|
711
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary", fontWeight: 700 }, variant: "XSmall", children: d.overview.holding }),
|
|
712
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary", fontWeight: 700 }, variant: "XSmall", children: d.overview.market_value })
|
|
714
713
|
]
|
|
715
714
|
}
|
|
716
715
|
),
|
|
717
|
-
t.holdings?.map((
|
|
718
|
-
const
|
|
716
|
+
t.holdings?.map((r, n) => {
|
|
717
|
+
const p = c === r.id;
|
|
719
718
|
return /* @__PURE__ */ o(
|
|
720
719
|
_e,
|
|
721
720
|
{
|
|
722
721
|
disableGutters: !0,
|
|
723
|
-
expanded: b[
|
|
724
|
-
onChange:
|
|
722
|
+
expanded: b[r.id] === !0,
|
|
723
|
+
onChange: r ? h(r?.id) : () => {
|
|
725
724
|
},
|
|
726
725
|
sx: {
|
|
727
726
|
":before": n === 0 ? { opacity: 0 } : {},
|
|
@@ -735,15 +734,15 @@ const de = ({ sx: t = {} }) => {
|
|
|
735
734
|
id: "panel1a-header",
|
|
736
735
|
sx: [
|
|
737
736
|
{ height: 64 },
|
|
738
|
-
b[
|
|
737
|
+
b[r.id] && n > 0 && {
|
|
739
738
|
borderTop: 1,
|
|
740
739
|
borderColor: "border.main"
|
|
741
740
|
}
|
|
742
741
|
],
|
|
743
|
-
children: /* @__PURE__ */ o(
|
|
742
|
+
children: /* @__PURE__ */ o(x, { sx: { flexDirection: "row", width: "100%" }, children: [
|
|
744
743
|
/* @__PURE__ */ e("div", { style: { width: 24 } }),
|
|
745
744
|
/* @__PURE__ */ o(
|
|
746
|
-
|
|
745
|
+
x,
|
|
747
746
|
{
|
|
748
747
|
sx: [
|
|
749
748
|
{
|
|
@@ -754,28 +753,28 @@ const de = ({ sx: t = {} }) => {
|
|
|
754
753
|
py: 14,
|
|
755
754
|
width: "100%"
|
|
756
755
|
},
|
|
757
|
-
b[
|
|
756
|
+
b[r.id] && {
|
|
758
757
|
borderBottom: 1,
|
|
759
758
|
borderColor: "border.main"
|
|
760
759
|
}
|
|
761
760
|
],
|
|
762
761
|
children: [
|
|
763
762
|
/* @__PURE__ */ e(
|
|
764
|
-
|
|
763
|
+
x,
|
|
765
764
|
{
|
|
766
765
|
sx: {
|
|
767
766
|
alignItems: "center",
|
|
768
767
|
flexDirection: "row",
|
|
769
768
|
gap: 12
|
|
770
769
|
},
|
|
771
|
-
children: /* @__PURE__ */ o(
|
|
772
|
-
/* @__PURE__ */ e(
|
|
773
|
-
/* @__PURE__ */ e(
|
|
770
|
+
children: /* @__PURE__ */ o(x, { sx: { overflow: "hidden", width: 98 }, children: [
|
|
771
|
+
/* @__PURE__ */ e(i, { sx: { fontWeight: 600 }, variant: "Body", children: r.holding }),
|
|
772
|
+
/* @__PURE__ */ e(i, { variant: "XSmall", children: r.description })
|
|
774
773
|
] })
|
|
775
774
|
}
|
|
776
775
|
),
|
|
777
776
|
/* @__PURE__ */ o(
|
|
778
|
-
|
|
777
|
+
x,
|
|
779
778
|
{
|
|
780
779
|
sx: {
|
|
781
780
|
alignItems: "center",
|
|
@@ -785,47 +784,47 @@ const de = ({ sx: t = {} }) => {
|
|
|
785
784
|
justifyContent: "flex-end"
|
|
786
785
|
},
|
|
787
786
|
children: [
|
|
788
|
-
/* @__PURE__ */ o(
|
|
789
|
-
/* @__PURE__ */ e(
|
|
787
|
+
/* @__PURE__ */ o(x, { children: [
|
|
788
|
+
/* @__PURE__ */ e(i, { sx: { fontWeight: 600, textAlign: "right" }, variant: "Body", children: r.marketValue?.toLocaleString("en-US", {
|
|
790
789
|
currency: "USD",
|
|
791
790
|
maximumFractionDigits: 2,
|
|
792
791
|
minimumFractionDigits: 2,
|
|
793
792
|
style: "currency"
|
|
794
793
|
}) }),
|
|
795
|
-
/* @__PURE__ */ o(
|
|
796
|
-
|
|
794
|
+
/* @__PURE__ */ o(x, { sx: { alignItems: "center", gap: 2, flexDirection: "row" }, children: [
|
|
795
|
+
r.totalGainLoss !== 0 && /* @__PURE__ */ e(
|
|
797
796
|
k,
|
|
798
797
|
{
|
|
799
|
-
name:
|
|
798
|
+
name: r.totalGainLoss >= 0 ? "trending_up" : "trending_down",
|
|
800
799
|
size: 12,
|
|
801
800
|
sx: {
|
|
802
801
|
verticalAlign: "middle",
|
|
803
802
|
mr: 1,
|
|
804
|
-
color:
|
|
803
|
+
color: r.totalGainLoss >= 0 ? "success.main" : "grey.700"
|
|
805
804
|
}
|
|
806
805
|
}
|
|
807
806
|
),
|
|
808
807
|
/* @__PURE__ */ e(
|
|
809
|
-
|
|
808
|
+
i,
|
|
810
809
|
{
|
|
811
810
|
sx: {
|
|
812
|
-
color:
|
|
813
|
-
fontWeight:
|
|
811
|
+
color: r.totalGainLoss <= 0 ? "grey.700" : "success.main",
|
|
812
|
+
fontWeight: r.totalGainLoss <= 0 ? 400 : 700
|
|
814
813
|
},
|
|
815
814
|
variant: "XSmall",
|
|
816
|
-
children:
|
|
815
|
+
children: r.costBasis ? `${(r.totalGainLoss / r.costBasis * 100).toFixed(2)}%` : "0.00%"
|
|
817
816
|
}
|
|
818
817
|
),
|
|
819
|
-
/* @__PURE__ */ e(
|
|
818
|
+
/* @__PURE__ */ e(i, { sx: { color: "grey.700" }, variant: "XSmall", children: "|" }),
|
|
820
819
|
/* @__PURE__ */ e(
|
|
821
|
-
|
|
820
|
+
i,
|
|
822
821
|
{
|
|
823
822
|
sx: {
|
|
824
|
-
color:
|
|
825
|
-
fontWeight:
|
|
823
|
+
color: r.totalGainLoss <= 0 ? "grey.700" : "success.main",
|
|
824
|
+
fontWeight: r.totalGainLoss <= 0 ? 400 : 700
|
|
826
825
|
},
|
|
827
826
|
variant: "XSmall",
|
|
828
|
-
children: Math.abs(
|
|
827
|
+
children: Math.abs(r.totalGainLoss).toLocaleString("en-US", {
|
|
829
828
|
currency: "USD",
|
|
830
829
|
maximumFractionDigits: 2,
|
|
831
830
|
minimumFractionDigits: 2,
|
|
@@ -838,7 +837,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
838
837
|
/* @__PURE__ */ e(
|
|
839
838
|
k,
|
|
840
839
|
{
|
|
841
|
-
name: b[
|
|
840
|
+
name: b[r.id] ? "expand_less" : "expand_more",
|
|
842
841
|
size: 20
|
|
843
842
|
}
|
|
844
843
|
)
|
|
@@ -852,7 +851,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
852
851
|
}
|
|
853
852
|
),
|
|
854
853
|
/* @__PURE__ */ e(we, { children: /* @__PURE__ */ o(
|
|
855
|
-
|
|
854
|
+
x,
|
|
856
855
|
{
|
|
857
856
|
sx: {
|
|
858
857
|
alignItems: "center",
|
|
@@ -861,10 +860,10 @@ const de = ({ sx: t = {} }) => {
|
|
|
861
860
|
pl: 24
|
|
862
861
|
},
|
|
863
862
|
children: [
|
|
864
|
-
/* @__PURE__ */ e(
|
|
865
|
-
/* @__PURE__ */ o(
|
|
863
|
+
/* @__PURE__ */ e(x, { sx: { width: 32 } }),
|
|
864
|
+
/* @__PURE__ */ o(x, { sx: { flex: 1 }, children: [
|
|
866
865
|
/* @__PURE__ */ o(
|
|
867
|
-
|
|
866
|
+
x,
|
|
868
867
|
{
|
|
869
868
|
sx: {
|
|
870
869
|
alignItems: "center",
|
|
@@ -876,13 +875,13 @@ const de = ({ sx: t = {} }) => {
|
|
|
876
875
|
pr: 24
|
|
877
876
|
},
|
|
878
877
|
children: [
|
|
879
|
-
/* @__PURE__ */ e(
|
|
880
|
-
/* @__PURE__ */ e(
|
|
878
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary" }, variant: "Body", children: d.overview.quantity }),
|
|
879
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary" }, variant: "Small", children: r.qty })
|
|
881
880
|
]
|
|
882
881
|
}
|
|
883
882
|
),
|
|
884
883
|
/* @__PURE__ */ o(
|
|
885
|
-
|
|
884
|
+
x,
|
|
886
885
|
{
|
|
887
886
|
sx: {
|
|
888
887
|
alignItems: "center",
|
|
@@ -892,9 +891,9 @@ const de = ({ sx: t = {} }) => {
|
|
|
892
891
|
pr: 24
|
|
893
892
|
},
|
|
894
893
|
children: [
|
|
895
|
-
/* @__PURE__ */ e(
|
|
894
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary" }, variant: "Body", children: d.overview.cost_basis_header }),
|
|
896
895
|
/* @__PURE__ */ o(
|
|
897
|
-
|
|
896
|
+
x,
|
|
898
897
|
{
|
|
899
898
|
direction: "row",
|
|
900
899
|
sx: {
|
|
@@ -902,13 +901,13 @@ const de = ({ sx: t = {} }) => {
|
|
|
902
901
|
gap: 4
|
|
903
902
|
},
|
|
904
903
|
children: [
|
|
905
|
-
|
|
904
|
+
p ? /* @__PURE__ */ e(
|
|
906
905
|
Se,
|
|
907
906
|
{
|
|
908
907
|
autoFocus: !0,
|
|
909
|
-
onBlur: () => u(
|
|
910
|
-
onChange:
|
|
911
|
-
onKeyDown: (C) =>
|
|
908
|
+
onBlur: () => u(r.id),
|
|
909
|
+
onChange: f,
|
|
910
|
+
onKeyDown: (C) => m(C, r.id),
|
|
912
911
|
size: "small",
|
|
913
912
|
sx: {
|
|
914
913
|
fontSize: 14,
|
|
@@ -923,9 +922,9 @@ const de = ({ sx: t = {} }) => {
|
|
|
923
922
|
border: "none"
|
|
924
923
|
}
|
|
925
924
|
},
|
|
926
|
-
value:
|
|
925
|
+
value: g
|
|
927
926
|
}
|
|
928
|
-
) : /* @__PURE__ */ e(
|
|
927
|
+
) : /* @__PURE__ */ e(i, { sx: { fontSize: 14, width: 58 }, variant: "Small", children: r.costBasis?.toLocaleString("en-US", {
|
|
929
928
|
currency: "USD",
|
|
930
929
|
maximumFractionDigits: 2,
|
|
931
930
|
minimumFractionDigits: 2,
|
|
@@ -934,7 +933,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
934
933
|
/* @__PURE__ */ e(
|
|
935
934
|
ce,
|
|
936
935
|
{
|
|
937
|
-
onClick: () =>
|
|
936
|
+
onClick: () => v(r.id, r.costBasis),
|
|
938
937
|
sx: { minWidth: 16, minHeight: 16 },
|
|
939
938
|
children: /* @__PURE__ */ e(k, { name: "stylus", size: 16, sx: { color: "grey.700" } })
|
|
940
939
|
}
|
|
@@ -951,28 +950,28 @@ const de = ({ sx: t = {} }) => {
|
|
|
951
950
|
) })
|
|
952
951
|
]
|
|
953
952
|
},
|
|
954
|
-
|
|
953
|
+
r.id
|
|
955
954
|
);
|
|
956
955
|
})
|
|
957
956
|
]
|
|
958
957
|
}
|
|
959
958
|
);
|
|
960
|
-
}, ht = P(ut), q = (t) => /* @__PURE__ */ o(
|
|
961
|
-
/* @__PURE__ */ e(
|
|
959
|
+
}, ht = P(ut), q = (t) => /* @__PURE__ */ o(Ye, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
|
960
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary", fontWeight: 600, fontSize: 14 }, variant: "Small", children: t.colDef.headerName }),
|
|
962
961
|
/* @__PURE__ */ e(k, { name: "expand_all", size: 12 })
|
|
963
962
|
] }), gt = ({
|
|
964
963
|
data: t,
|
|
965
|
-
editingHoldingId:
|
|
964
|
+
editingHoldingId: g,
|
|
966
965
|
currentEditedCostBasis: c,
|
|
967
966
|
handleCostBasisClick: u,
|
|
968
|
-
handleCostBasisChange:
|
|
969
|
-
handleCostBasisKeyDown:
|
|
970
|
-
handleCostBasisBlur:
|
|
967
|
+
handleCostBasisChange: v,
|
|
968
|
+
handleCostBasisKeyDown: f,
|
|
969
|
+
handleCostBasisBlur: m
|
|
971
970
|
}) => {
|
|
972
|
-
const { investments:
|
|
971
|
+
const { investments: s } = M(), d = le().palette.mode === "dark", b = "success.main", l = d ? "grey.300" : "grey.700", h = (n, p = "lesserThan") => p === "greaterThan" ? n >= 0 ? b : l : n <= 0 ? l : b, r = [
|
|
973
972
|
{
|
|
974
973
|
field: "qty",
|
|
975
|
-
headerName:
|
|
974
|
+
headerName: s.overview.qty_header,
|
|
976
975
|
sortable: !1,
|
|
977
976
|
width: 48,
|
|
978
977
|
align: "center",
|
|
@@ -980,29 +979,29 @@ const de = ({ sx: t = {} }) => {
|
|
|
980
979
|
},
|
|
981
980
|
{
|
|
982
981
|
field: "holding",
|
|
983
|
-
headerName:
|
|
982
|
+
headerName: s.overview.holding_header,
|
|
984
983
|
flex: 1,
|
|
985
984
|
renderHeader: q,
|
|
986
985
|
renderCell: (n) => /* @__PURE__ */ e(_, { sx: { alignItems: "center", gap: 16, flexDirection: "row" }, children: /* @__PURE__ */ o(_, { children: [
|
|
987
|
-
/* @__PURE__ */ e(
|
|
988
|
-
/* @__PURE__ */ e(
|
|
986
|
+
/* @__PURE__ */ e(i, { sx: { fontWeight: 700 }, children: n.row.holding }),
|
|
987
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.secondary", fontWeight: 400 }, variant: "tiny", children: n.row.description })
|
|
989
988
|
] }) })
|
|
990
989
|
},
|
|
991
990
|
{
|
|
992
991
|
field: "costBasis",
|
|
993
|
-
headerName:
|
|
992
|
+
headerName: s.overview.cost_basis_header,
|
|
994
993
|
width: 132,
|
|
995
994
|
renderHeader: q,
|
|
996
995
|
renderCell: (n) => {
|
|
997
|
-
const
|
|
996
|
+
const p = g === n.row.id;
|
|
998
997
|
return /* @__PURE__ */ o(_, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
|
999
|
-
|
|
998
|
+
p ? /* @__PURE__ */ e(
|
|
1000
999
|
Se,
|
|
1001
1000
|
{
|
|
1002
1001
|
autoFocus: !0,
|
|
1003
|
-
onBlur: () =>
|
|
1004
|
-
onChange:
|
|
1005
|
-
onKeyDown: (C) =>
|
|
1002
|
+
onBlur: () => m(n.row.id),
|
|
1003
|
+
onChange: v,
|
|
1004
|
+
onKeyDown: (C) => f(C, n.row.id),
|
|
1006
1005
|
size: "small",
|
|
1007
1006
|
sx: {
|
|
1008
1007
|
fontSize: 14,
|
|
@@ -1019,7 +1018,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
1019
1018
|
},
|
|
1020
1019
|
value: c
|
|
1021
1020
|
}
|
|
1022
|
-
) : /* @__PURE__ */ e(
|
|
1021
|
+
) : /* @__PURE__ */ e(i, { sx: { fontSize: 14, width: 57 }, variant: "Small", children: n.value?.toLocaleString("en-US", {
|
|
1023
1022
|
currency: "USD",
|
|
1024
1023
|
maximumFractionDigits: 2,
|
|
1025
1024
|
minimumFractionDigits: 2,
|
|
@@ -1040,11 +1039,11 @@ const de = ({ sx: t = {} }) => {
|
|
|
1040
1039
|
},
|
|
1041
1040
|
{
|
|
1042
1041
|
field: "totalGainLoss",
|
|
1043
|
-
headerName:
|
|
1042
|
+
headerName: s.overview.total_gain_loss_header,
|
|
1044
1043
|
width: 196,
|
|
1045
1044
|
renderHeader: q,
|
|
1046
1045
|
renderCell: (n) => {
|
|
1047
|
-
const
|
|
1046
|
+
const p = n.row.costBasis, C = p ? n.row.totalGainLoss / p * 100 : 0;
|
|
1048
1047
|
return /* @__PURE__ */ o(_, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
|
|
1049
1048
|
n.value !== 0 && /* @__PURE__ */ e(
|
|
1050
1049
|
k,
|
|
@@ -1052,29 +1051,29 @@ const de = ({ sx: t = {} }) => {
|
|
|
1052
1051
|
name: n.value > 0 ? "trending_up" : "trending_down",
|
|
1053
1052
|
size: 16,
|
|
1054
1053
|
sx: {
|
|
1055
|
-
color:
|
|
1054
|
+
color: h(n.value),
|
|
1056
1055
|
mr: 1,
|
|
1057
1056
|
verticalAlign: "middle"
|
|
1058
1057
|
}
|
|
1059
1058
|
}
|
|
1060
1059
|
),
|
|
1061
1060
|
/* @__PURE__ */ e(
|
|
1062
|
-
|
|
1061
|
+
i,
|
|
1063
1062
|
{
|
|
1064
1063
|
sx: {
|
|
1065
|
-
color:
|
|
1064
|
+
color: h(n.value),
|
|
1066
1065
|
fontWeight: n.value > 0 ? 700 : 400
|
|
1067
1066
|
},
|
|
1068
1067
|
variant: "Small",
|
|
1069
|
-
children:
|
|
1068
|
+
children: p ? `${C.toFixed(2)}%` : "0.00%"
|
|
1070
1069
|
}
|
|
1071
1070
|
),
|
|
1072
|
-
/* @__PURE__ */ e(
|
|
1071
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.secondary" }, variant: "XSmall", children: "|" }),
|
|
1073
1072
|
/* @__PURE__ */ e(
|
|
1074
|
-
|
|
1073
|
+
i,
|
|
1075
1074
|
{
|
|
1076
1075
|
sx: {
|
|
1077
|
-
color:
|
|
1076
|
+
color: h(n.value),
|
|
1078
1077
|
fontWeight: n.value > 0 ? 700 : 400
|
|
1079
1078
|
},
|
|
1080
1079
|
variant: "Small",
|
|
@@ -1094,10 +1093,10 @@ const de = ({ sx: t = {} }) => {
|
|
|
1094
1093
|
},
|
|
1095
1094
|
{
|
|
1096
1095
|
field: "marketValue",
|
|
1097
|
-
headerName:
|
|
1096
|
+
headerName: s.overview.market_value_header,
|
|
1098
1097
|
width: 132,
|
|
1099
1098
|
renderHeader: q,
|
|
1100
|
-
renderCell: (n) => /* @__PURE__ */ e(
|
|
1099
|
+
renderCell: (n) => /* @__PURE__ */ e(i, { sx: { fontWeight: 700 }, variant: "Small", children: n.value?.toLocaleString("en-US", {
|
|
1101
1100
|
currency: "USD",
|
|
1102
1101
|
maximumFractionDigits: 2,
|
|
1103
1102
|
minimumFractionDigits: 2,
|
|
@@ -1115,9 +1114,9 @@ const de = ({ sx: t = {} }) => {
|
|
|
1115
1114
|
width: "100%"
|
|
1116
1115
|
},
|
|
1117
1116
|
children: /* @__PURE__ */ e(
|
|
1118
|
-
|
|
1117
|
+
Ke,
|
|
1119
1118
|
{
|
|
1120
|
-
columns:
|
|
1119
|
+
columns: r,
|
|
1121
1120
|
disableColumnFilter: !0,
|
|
1122
1121
|
disableColumnMenu: !0,
|
|
1123
1122
|
disableRowSelectionOnClick: !0,
|
|
@@ -1129,10 +1128,10 @@ const de = ({ sx: t = {} }) => {
|
|
|
1129
1128
|
}
|
|
1130
1129
|
);
|
|
1131
1130
|
}, pt = () => {
|
|
1132
|
-
const { isMobile: t } = U(), [
|
|
1131
|
+
const { isMobile: t } = U(), [g, c] = O({}), [u, v] = O(!1), { selectedAccountGuids: f } = Q(), { visibleHoldings: m, updateHoldings: s } = H(), [y, d] = A.useState(!1), [b, l] = O({
|
|
1133
1132
|
accounts: [],
|
|
1134
1133
|
holdings: []
|
|
1135
|
-
}), { accounts:
|
|
1134
|
+
}), { accounts: h, investments: r } = M(), { isCopyLoaded: n } = Q(), [p, C] = O(null), [S, B] = O(""), W = le().palette.mode === "dark", G = W ? "#0AC295" : "#09A57F", F = W ? "grey.300" : "grey.700", T = (a, w = "lesserThan") => w === "greaterThan" ? a >= 0 ? G : F : a <= 0 ? F : G, j = (a, w) => {
|
|
1136
1135
|
C(a), B(w.toFixed(2));
|
|
1137
1136
|
}, J = (a) => {
|
|
1138
1137
|
const w = a.target.value;
|
|
@@ -1140,44 +1139,44 @@ const de = ({ sx: t = {} }) => {
|
|
|
1140
1139
|
}, me = (a, w) => {
|
|
1141
1140
|
a.key === "Enter" ? Z(w) : a.key === "Escape" && C(null);
|
|
1142
1141
|
}, Z = (a) => {
|
|
1143
|
-
const w =
|
|
1142
|
+
const w = m.find(({ guid: E }) => E === a);
|
|
1144
1143
|
if (!w) return;
|
|
1145
|
-
const
|
|
1146
|
-
if (
|
|
1144
|
+
const N = Number(S);
|
|
1145
|
+
if (s({ ...w, cost_basis: N }), t) {
|
|
1147
1146
|
const E = b.holdings.map(
|
|
1148
|
-
(D) => D.id === a ? { ...D, costBasis:
|
|
1147
|
+
(D) => D.id === a ? { ...D, costBasis: N } : D
|
|
1149
1148
|
);
|
|
1150
|
-
|
|
1149
|
+
l((D) => ({
|
|
1151
1150
|
...D,
|
|
1152
1151
|
holdings: E
|
|
1153
1152
|
}));
|
|
1154
1153
|
}
|
|
1155
1154
|
C(null);
|
|
1156
|
-
}, Le = (a) => (w,
|
|
1155
|
+
}, Le = (a) => (w, N) => {
|
|
1157
1156
|
c((E) => ({
|
|
1158
1157
|
...E,
|
|
1159
|
-
[a]:
|
|
1158
|
+
[a]: N
|
|
1160
1159
|
}));
|
|
1161
1160
|
}, { visibleHoldings: ue } = H(), { visibleInvestmentAccounts: Ie } = se(), X = Ie.filter(
|
|
1162
|
-
({ guid: a }) =>
|
|
1161
|
+
({ guid: a }) => f.includes(a)
|
|
1163
1162
|
), Ae = X.reduce((a, w) => a + (w.balance || 0), 0), Be = X.map(({ guid: a }) => a), $ = ue.filter(
|
|
1164
1163
|
({ account_guid: a }) => Be.includes(a)
|
|
1165
1164
|
).reduce((a, w) => {
|
|
1166
|
-
const
|
|
1167
|
-
return a +
|
|
1165
|
+
const N = w.market_value ? w.market_value - (w.cost_basis || 0) : 0;
|
|
1166
|
+
return a + N;
|
|
1168
1167
|
}, 0), Te = () => {
|
|
1169
|
-
|
|
1168
|
+
v(!1);
|
|
1170
1169
|
};
|
|
1171
|
-
return n ? /* @__PURE__ */ o(
|
|
1172
|
-
!!X.length && /* @__PURE__ */ o(
|
|
1173
|
-
/* @__PURE__ */ e(
|
|
1170
|
+
return n ? /* @__PURE__ */ o(x, { sx: { alignItems: "center", gap: 48, pt: 48, width: "100%" }, children: [
|
|
1171
|
+
!!X.length && /* @__PURE__ */ o(x, { sx: { alignItems: "center" }, children: [
|
|
1172
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.secondary" }, children: r.overview.total_portfolio }),
|
|
1174
1173
|
/* @__PURE__ */ e(fe, { children: Ae.toLocaleString("en-US", {
|
|
1175
1174
|
currency: "USD",
|
|
1176
1175
|
maximumFractionDigits: 2,
|
|
1177
1176
|
minimumFractionDigits: 2,
|
|
1178
1177
|
style: "currency"
|
|
1179
1178
|
}) }),
|
|
1180
|
-
/* @__PURE__ */ o(
|
|
1179
|
+
/* @__PURE__ */ o(x, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
|
|
1181
1180
|
/* @__PURE__ */ e(
|
|
1182
1181
|
k,
|
|
1183
1182
|
{
|
|
@@ -1187,7 +1186,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
1187
1186
|
}
|
|
1188
1187
|
),
|
|
1189
1188
|
/* @__PURE__ */ e(
|
|
1190
|
-
|
|
1189
|
+
i,
|
|
1191
1190
|
{
|
|
1192
1191
|
sx: { color: T($, "greaterThan"), fontWeight: 700 },
|
|
1193
1192
|
variant: "Small",
|
|
@@ -1210,7 +1209,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
1210
1209
|
totalGainLoss: L.market_value ? L.market_value - (L.cost_basis || 0) : 0,
|
|
1211
1210
|
marketValue: L.market_value || 0,
|
|
1212
1211
|
description: L.description || ""
|
|
1213
|
-
})),
|
|
1212
|
+
})), N = w.length > 0, E = a.balance, D = w.reduce(
|
|
1214
1213
|
(L, Fe) => Fe.totalGainLoss + L,
|
|
1215
1214
|
0
|
|
1216
1215
|
), he = E ? D / E * 100 : 0;
|
|
@@ -1219,7 +1218,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
1219
1218
|
ie,
|
|
1220
1219
|
{
|
|
1221
1220
|
onClick: w.length ? () => {
|
|
1222
|
-
|
|
1221
|
+
v(!0), l({
|
|
1223
1222
|
holdings: w,
|
|
1224
1223
|
accounts: a
|
|
1225
1224
|
});
|
|
@@ -1229,7 +1228,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
1229
1228
|
overflow: "hidden"
|
|
1230
1229
|
},
|
|
1231
1230
|
children: /* @__PURE__ */ o(
|
|
1232
|
-
|
|
1231
|
+
x,
|
|
1233
1232
|
{
|
|
1234
1233
|
sx: {
|
|
1235
1234
|
border: 1,
|
|
@@ -1242,7 +1241,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
1242
1241
|
},
|
|
1243
1242
|
children: [
|
|
1244
1243
|
/* @__PURE__ */ o(
|
|
1245
|
-
|
|
1244
|
+
x,
|
|
1246
1245
|
{
|
|
1247
1246
|
sx: {
|
|
1248
1247
|
alignItems: "center",
|
|
@@ -1262,15 +1261,15 @@ const de = ({ sx: t = {} }) => {
|
|
|
1262
1261
|
size: 32
|
|
1263
1262
|
}
|
|
1264
1263
|
),
|
|
1265
|
-
/* @__PURE__ */ o(
|
|
1266
|
-
/* @__PURE__ */ e(
|
|
1267
|
-
/* @__PURE__ */ e(
|
|
1264
|
+
/* @__PURE__ */ o(x, { sx: { overflow: "hidden", pl: 13, pr: 13 }, children: [
|
|
1265
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.secondary" }, variant: "XSmall", children: a.memberName }),
|
|
1266
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: a.user_name || a.name })
|
|
1268
1267
|
] })
|
|
1269
1268
|
]
|
|
1270
1269
|
}
|
|
1271
1270
|
),
|
|
1272
1271
|
/* @__PURE__ */ o(
|
|
1273
|
-
|
|
1272
|
+
x,
|
|
1274
1273
|
{
|
|
1275
1274
|
sx: {
|
|
1276
1275
|
alignItems: "center",
|
|
@@ -1281,7 +1280,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
1281
1280
|
},
|
|
1282
1281
|
children: [
|
|
1283
1282
|
/* @__PURE__ */ o(
|
|
1284
|
-
|
|
1283
|
+
x,
|
|
1285
1284
|
{
|
|
1286
1285
|
sx: {
|
|
1287
1286
|
alignItems: "center",
|
|
@@ -1295,9 +1294,9 @@ const de = ({ sx: t = {} }) => {
|
|
|
1295
1294
|
pt: 14
|
|
1296
1295
|
},
|
|
1297
1296
|
children: [
|
|
1298
|
-
/* @__PURE__ */ e(
|
|
1297
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.secondary", fontSize: 11 }, variant: "Small", children: r.overview.total_gain_Loss }),
|
|
1299
1298
|
/* @__PURE__ */ o(
|
|
1300
|
-
|
|
1299
|
+
x,
|
|
1301
1300
|
{
|
|
1302
1301
|
sx: {
|
|
1303
1302
|
alignItems: "center",
|
|
@@ -1315,7 +1314,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
1315
1314
|
}
|
|
1316
1315
|
),
|
|
1317
1316
|
/* @__PURE__ */ o(
|
|
1318
|
-
|
|
1317
|
+
i,
|
|
1319
1318
|
{
|
|
1320
1319
|
sx: {
|
|
1321
1320
|
color: T(D),
|
|
@@ -1328,9 +1327,9 @@ const de = ({ sx: t = {} }) => {
|
|
|
1328
1327
|
]
|
|
1329
1328
|
}
|
|
1330
1329
|
),
|
|
1331
|
-
/* @__PURE__ */ e(
|
|
1330
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.secondary" }, variant: "XSmall", children: "|" }),
|
|
1332
1331
|
/* @__PURE__ */ e(
|
|
1333
|
-
|
|
1332
|
+
i,
|
|
1334
1333
|
{
|
|
1335
1334
|
sx: {
|
|
1336
1335
|
color: T(D),
|
|
@@ -1352,7 +1351,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
1352
1351
|
}
|
|
1353
1352
|
),
|
|
1354
1353
|
/* @__PURE__ */ o(
|
|
1355
|
-
|
|
1354
|
+
x,
|
|
1356
1355
|
{
|
|
1357
1356
|
sx: {
|
|
1358
1357
|
alignItems: "center",
|
|
@@ -1364,8 +1363,8 @@ const de = ({ sx: t = {} }) => {
|
|
|
1364
1363
|
pt: 14
|
|
1365
1364
|
},
|
|
1366
1365
|
children: [
|
|
1367
|
-
/* @__PURE__ */ e(
|
|
1368
|
-
/* @__PURE__ */ e(
|
|
1366
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.secondary" }, variant: "XSmall", children: r.overview.total_value }),
|
|
1367
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: E?.toLocaleString("en-US", {
|
|
1369
1368
|
currency: "USD",
|
|
1370
1369
|
maximumFractionDigits: 2,
|
|
1371
1370
|
minimumFractionDigits: 2,
|
|
@@ -1387,8 +1386,8 @@ const de = ({ sx: t = {} }) => {
|
|
|
1387
1386
|
return /* @__PURE__ */ o(
|
|
1388
1387
|
_e,
|
|
1389
1388
|
{
|
|
1390
|
-
expanded:
|
|
1391
|
-
onChange:
|
|
1389
|
+
expanded: g[a.guid] === !0,
|
|
1390
|
+
onChange: N ? Le(a.guid) : () => {
|
|
1392
1391
|
},
|
|
1393
1392
|
sx: {
|
|
1394
1393
|
border: 1,
|
|
@@ -1403,7 +1402,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
1403
1402
|
"aria-controls": "panel1a-content",
|
|
1404
1403
|
id: "panel1a-header",
|
|
1405
1404
|
sx: [
|
|
1406
|
-
|
|
1405
|
+
g[a.guid] && {
|
|
1407
1406
|
borderBottom: 1,
|
|
1408
1407
|
borderColor: "border.main",
|
|
1409
1408
|
maxHeight: 88
|
|
@@ -1411,7 +1410,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
1411
1410
|
],
|
|
1412
1411
|
children: [
|
|
1413
1412
|
/* @__PURE__ */ o(
|
|
1414
|
-
|
|
1413
|
+
x,
|
|
1415
1414
|
{
|
|
1416
1415
|
sx: {
|
|
1417
1416
|
alignItems: "center",
|
|
@@ -1430,18 +1429,18 @@ const de = ({ sx: t = {} }) => {
|
|
|
1430
1429
|
size: 32
|
|
1431
1430
|
}
|
|
1432
1431
|
),
|
|
1433
|
-
/* @__PURE__ */ o(
|
|
1434
|
-
/* @__PURE__ */ e(
|
|
1435
|
-
/* @__PURE__ */ e(
|
|
1432
|
+
/* @__PURE__ */ o(x, { sx: { alignItems: "flex-start" }, children: [
|
|
1433
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.secondary" }, variant: "XSmall", children: a.memberName }),
|
|
1434
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: a.user_name || a.name })
|
|
1436
1435
|
] })
|
|
1437
1436
|
]
|
|
1438
1437
|
}
|
|
1439
1438
|
),
|
|
1440
|
-
/* @__PURE__ */ o(
|
|
1441
|
-
/* @__PURE__ */ o(
|
|
1442
|
-
/* @__PURE__ */ e(
|
|
1439
|
+
/* @__PURE__ */ o(x, { sx: { flexDirection: "row" }, children: [
|
|
1440
|
+
/* @__PURE__ */ o(x, { sx: { alignItems: "flex-end", pb: 14, pl: 24, pr: 24, pt: 14 }, children: [
|
|
1441
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.secondary" }, variant: "XSmall", children: r.overview.total_gain_Loss }),
|
|
1443
1442
|
/* @__PURE__ */ o(
|
|
1444
|
-
|
|
1443
|
+
x,
|
|
1445
1444
|
{
|
|
1446
1445
|
sx: {
|
|
1447
1446
|
alignItems: "center",
|
|
@@ -1459,7 +1458,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
1459
1458
|
}
|
|
1460
1459
|
),
|
|
1461
1460
|
/* @__PURE__ */ o(
|
|
1462
|
-
|
|
1461
|
+
i,
|
|
1463
1462
|
{
|
|
1464
1463
|
sx: {
|
|
1465
1464
|
color: T(D),
|
|
@@ -1472,9 +1471,9 @@ const de = ({ sx: t = {} }) => {
|
|
|
1472
1471
|
]
|
|
1473
1472
|
}
|
|
1474
1473
|
),
|
|
1475
|
-
/* @__PURE__ */ e(
|
|
1474
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.secondary" }, variant: "XSmall", children: "|" }),
|
|
1476
1475
|
/* @__PURE__ */ e(
|
|
1477
|
-
|
|
1476
|
+
i,
|
|
1478
1477
|
{
|
|
1479
1478
|
sx: {
|
|
1480
1479
|
color: T(D),
|
|
@@ -1493,9 +1492,9 @@ const de = ({ sx: t = {} }) => {
|
|
|
1493
1492
|
}
|
|
1494
1493
|
)
|
|
1495
1494
|
] }),
|
|
1496
|
-
/* @__PURE__ */ e(
|
|
1497
|
-
/* @__PURE__ */ e(
|
|
1498
|
-
/* @__PURE__ */ e(
|
|
1495
|
+
/* @__PURE__ */ e(x, { sx: { alignItems: "flex-end", gap: 12, pb: 14, pl: 16, pr: 16, pt: 14 }, children: /* @__PURE__ */ o(x, { sx: { alignItems: "flex-end" }, children: [
|
|
1496
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.secondary" }, variant: "XSmall", children: r.overview.total_value }),
|
|
1497
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: E?.toLocaleString("en-US", {
|
|
1499
1498
|
currency: "USD",
|
|
1500
1499
|
maximumFractionDigits: 2,
|
|
1501
1500
|
minimumFractionDigits: 2,
|
|
@@ -1511,7 +1510,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
1511
1510
|
{
|
|
1512
1511
|
currentEditedCostBasis: S,
|
|
1513
1512
|
data: w,
|
|
1514
|
-
editingHoldingId:
|
|
1513
|
+
editingHoldingId: p,
|
|
1515
1514
|
handleCostBasisBlur: Z,
|
|
1516
1515
|
handleCostBasisChange: J,
|
|
1517
1516
|
handleCostBasisClick: j,
|
|
@@ -1529,7 +1528,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
1529
1528
|
{
|
|
1530
1529
|
accountHoldingsData: b,
|
|
1531
1530
|
currentEditedCostBasis: S,
|
|
1532
|
-
editingHoldingId:
|
|
1531
|
+
editingHoldingId: p,
|
|
1533
1532
|
handleCostBasisBlur: Z,
|
|
1534
1533
|
handleCostBasisChange: J,
|
|
1535
1534
|
handleCostBasisClick: j,
|
|
@@ -1541,72 +1540,71 @@ const de = ({ sx: t = {} }) => {
|
|
|
1541
1540
|
/* @__PURE__ */ e(
|
|
1542
1541
|
ge,
|
|
1543
1542
|
{
|
|
1544
|
-
onClose: () =>
|
|
1545
|
-
showConnectionsWidget:
|
|
1546
|
-
title:
|
|
1543
|
+
onClose: () => d(!1),
|
|
1544
|
+
showConnectionsWidget: y,
|
|
1545
|
+
title: h.manage_connections
|
|
1547
1546
|
}
|
|
1548
1547
|
)
|
|
1549
1548
|
] }) : /* @__PURE__ */ e(De, {});
|
|
1550
|
-
}, xt = P(pt), yt = ({ title: t }) => /* @__PURE__ */ e(
|
|
1551
|
-
const { onEvent: c } = be(), {
|
|
1552
|
-
visibleHoldings:
|
|
1553
|
-
setShowConnectionsWidget:
|
|
1554
|
-
showConnectionsWidget:
|
|
1555
|
-
} = H(), { investments:
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
}, [s]);
|
|
1549
|
+
}, xt = P(pt), yt = ({ title: t }) => /* @__PURE__ */ e(i, { bold: !0, variant: "Body", children: t }), sn = P(({ onBackClick: t, sx: g }) => {
|
|
1550
|
+
const { onEvent: c } = be(), { onLoad: u } = je(), { isMobile: v } = U(), { visibleInvestmentAccounts: f } = se(), {
|
|
1551
|
+
visibleHoldings: m,
|
|
1552
|
+
setShowConnectionsWidget: s,
|
|
1553
|
+
showConnectionsWidget: y
|
|
1554
|
+
} = H(), { investments: d, accounts: b } = M(), { isCopyLoaded: l, isInitialized: h, setSelectedAccounts: r } = Q(), [n, p] = A.useState(0), { loadHoldings: C } = H();
|
|
1555
|
+
A.useEffect(() => {
|
|
1556
|
+
r(f);
|
|
1557
|
+
}, [f]), A.useEffect(() => {
|
|
1558
|
+
h && C().finally(() => {
|
|
1559
|
+
u?.("InvestmentsWidget");
|
|
1560
|
+
});
|
|
1561
|
+
}, [h]);
|
|
1564
1562
|
const S = () => {
|
|
1565
1563
|
c(z.INVESTMENT_WIDGET_ACCOUNT_FILTER_CLICK);
|
|
1566
1564
|
};
|
|
1567
|
-
if (!
|
|
1565
|
+
if (!l || !h) return /* @__PURE__ */ e(De, {});
|
|
1568
1566
|
const B = [
|
|
1569
1567
|
z.INVESTMENT_WIDGET_DETAILS_CLICK,
|
|
1570
1568
|
z.INVESTMENT_WIDGET_ALLOCATION_CLICK,
|
|
1571
1569
|
z.INVESTMENT_WIDGET_ANALYSIS_CLICK
|
|
1572
|
-
], I =
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1570
|
+
], I = f.length === 0 && m.length === 0, W = [
|
|
1571
|
+
d.tab_overview_title,
|
|
1572
|
+
d.tab_allocation_title,
|
|
1573
|
+
d.tab_analysis_title
|
|
1576
1574
|
];
|
|
1577
1575
|
return /* @__PURE__ */ o(
|
|
1578
|
-
|
|
1576
|
+
ze,
|
|
1579
1577
|
{
|
|
1580
|
-
accountOptions:
|
|
1578
|
+
accountOptions: f,
|
|
1581
1579
|
onAccountsFilterClick: S,
|
|
1582
1580
|
onBackClick: t,
|
|
1583
|
-
sx:
|
|
1584
|
-
title:
|
|
1581
|
+
sx: g,
|
|
1582
|
+
title: d.title,
|
|
1585
1583
|
children: [
|
|
1586
|
-
/* @__PURE__ */ o(_, { mx:
|
|
1584
|
+
/* @__PURE__ */ o(_, { mx: v ? 0 : 48, my: 24, children: [
|
|
1587
1585
|
/* @__PURE__ */ e(
|
|
1588
|
-
|
|
1586
|
+
Ge,
|
|
1589
1587
|
{
|
|
1590
|
-
onChange: (
|
|
1591
|
-
|
|
1588
|
+
onChange: (G, F) => {
|
|
1589
|
+
p(F), c(B[F]);
|
|
1592
1590
|
},
|
|
1593
1591
|
sx: { bgcolor: "background.paper" },
|
|
1594
1592
|
textColor: "primary",
|
|
1595
|
-
value: I ? -1 :
|
|
1593
|
+
value: I ? -1 : n,
|
|
1596
1594
|
variant: "fullWidth",
|
|
1597
|
-
children: W.map((
|
|
1595
|
+
children: W.map((G) => /* @__PURE__ */ e(Ee, { disabled: I, label: /* @__PURE__ */ e(yt, { title: G }) }, G))
|
|
1598
1596
|
}
|
|
1599
1597
|
),
|
|
1600
1598
|
I ? /* @__PURE__ */ e(
|
|
1601
1599
|
Qe,
|
|
1602
1600
|
{
|
|
1603
|
-
header:
|
|
1601
|
+
header: d.empty_state_header,
|
|
1604
1602
|
icon: "bid_landscape",
|
|
1605
1603
|
onClick: () => {
|
|
1606
|
-
|
|
1604
|
+
s(!0), c(z.ACCOUNTS_CLICK_CONNECT);
|
|
1607
1605
|
},
|
|
1608
|
-
primaryButton:
|
|
1609
|
-
subText:
|
|
1606
|
+
primaryButton: d.overview.connect_accounts,
|
|
1607
|
+
subText: d.empty_state_description,
|
|
1610
1608
|
sx: {
|
|
1611
1609
|
width: { sm: 432 },
|
|
1612
1610
|
".buttons-footer": {
|
|
@@ -1620,17 +1618,17 @@ const de = ({ sx: t = {} }) => {
|
|
|
1620
1618
|
}
|
|
1621
1619
|
}
|
|
1622
1620
|
) : /* @__PURE__ */ o(ae, { children: [
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1621
|
+
n === 0 && /* @__PURE__ */ e(xt, {}),
|
|
1622
|
+
n === 1 && /* @__PURE__ */ e(at, {}),
|
|
1623
|
+
n === 2 && /* @__PURE__ */ e(mt, {})
|
|
1626
1624
|
] })
|
|
1627
1625
|
] }),
|
|
1628
1626
|
/* @__PURE__ */ e(
|
|
1629
1627
|
ge,
|
|
1630
1628
|
{
|
|
1631
|
-
onClose: () =>
|
|
1632
|
-
showConnectionsWidget:
|
|
1633
|
-
title:
|
|
1629
|
+
onClose: () => s(!1),
|
|
1630
|
+
showConnectionsWidget: y,
|
|
1631
|
+
title: b.manage_connections
|
|
1634
1632
|
}
|
|
1635
1633
|
)
|
|
1636
1634
|
]
|
|
@@ -1638,5 +1636,5 @@ const de = ({ sx: t = {} }) => {
|
|
|
1638
1636
|
);
|
|
1639
1637
|
});
|
|
1640
1638
|
export {
|
|
1641
|
-
|
|
1639
|
+
sn as InvestmentsWidget
|
|
1642
1640
|
};
|