@mx-cartographer/experiences 9.1.6 → 9.2.1
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 +8 -0
- package/dist/{UserStore-Bksi48jC.mjs → UserStore-BBceqFxh.mjs} +669 -609
- package/dist/UserStore-BBceqFxh.mjs.map +1 -0
- package/dist/common/index.es.js +1 -1
- package/dist/core/index.es.js +1 -1
- package/dist/investments/index.es.js +82 -53
- package/dist/investments/index.es.js.map +1 -1
- package/package.json +5 -2
- package/dist/UserStore-Bksi48jC.mjs.map +0 -1
package/dist/common/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as Y } from "../UserStore-
|
|
1
|
+
import { l as Y } from "../UserStore-BBceqFxh.mjs";
|
|
2
2
|
import { b as $, a as H } from "../Localization-DnoVyBNK.mjs";
|
|
3
3
|
import { f as j, b as V, a as K, c as Z, g as J, d as X } from "../NumberFormatting--XMeeBfr.mjs";
|
|
4
4
|
import { C as rr, a as er, b as or } from "../CurrencyDialog-DumQCTPO.mjs";
|
package/dist/core/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as g, a as m, b as C, c as N, d as h, B as f, e as E, f as D, g as b, C as I, h as M, i as R, j as B, D as L, F as G, k as _, G as H, l as P, m as U, n as x, o as O, H as F, p as k, q as v, r as w, M as W, s as Y, N as $, t as q, u as K, R as j, v as z, S as J, w as Q, T as X, x as Z, y as V, U as tt, z as at, W as st } from "../UserStore-
|
|
1
|
+
import { A as g, a as m, b as C, c as N, d as h, B as f, e as E, f as D, g as b, C as I, h as M, i as R, j as B, D as L, F as G, k as _, G as H, l as P, m as U, n as x, o as O, H as F, p as k, q as v, r as w, M as W, s as Y, N as $, t as q, u as K, R as j, v as z, S as J, w as Q, T as X, x as Z, y as V, U as tt, z as at, W as st } from "../UserStore-BBceqFxh.mjs";
|
|
2
2
|
import { b as ot, a as nt, d as rt, c as it, A as ct, C as pt, e as At, E as St, M as ut, N as lt, P as Tt, f as yt, g as dt, S as gt } from "../Account-DR7Plrqy.mjs";
|
|
3
3
|
import { A as Ct, B as Nt, I as ht, N as ft } from "../Notification-DTNYSd8P.mjs";
|
|
4
4
|
import { F as n } from "../GlobalCopyApi-CLhyon-B.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e, Fragment as le } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import k, { useState as O } from "react";
|
|
3
3
|
import { observer as $ } from "mobx-react-lite";
|
|
4
4
|
import _ from "@mui/material/Stack";
|
|
5
5
|
import Fe from "@mui/material/Tab";
|
|
@@ -21,7 +21,7 @@ import { A as z } from "../Analytics-D-jdcL72.mjs";
|
|
|
21
21
|
import { f as re, a as je } from "../NumberFormatting--XMeeBfr.mjs";
|
|
22
22
|
import { u as j } from "../useScreenSize-mWpmnh5w.mjs";
|
|
23
23
|
import { useTheme as Z } from "@mui/material/styles";
|
|
24
|
-
import { Icon as
|
|
24
|
+
import { Icon as W } from "@mxenabled/mx-icons";
|
|
25
25
|
import { D as He } from "../Donut-SzzfZDHF.mjs";
|
|
26
26
|
import { f as ze, A as V } from "../InvestmentUtil-BItV7uEs.mjs";
|
|
27
27
|
import Oe from "@mui/material/ListItemText";
|
|
@@ -162,32 +162,32 @@ const me = ({ sx: t = {} }) => {
|
|
|
162
162
|
), y = b + x;
|
|
163
163
|
Xe.forEach((n, g) => {
|
|
164
164
|
const C = l.filter(
|
|
165
|
-
(
|
|
165
|
+
(B) => !!B[n.name]
|
|
166
166
|
);
|
|
167
167
|
let D = C.reduce(
|
|
168
|
-
(
|
|
168
|
+
(B, A) => B + Q(A) * A[n.name] / 100,
|
|
169
169
|
0
|
|
170
170
|
);
|
|
171
|
-
const
|
|
171
|
+
const T = et(
|
|
172
172
|
C,
|
|
173
173
|
n.name,
|
|
174
174
|
D
|
|
175
175
|
);
|
|
176
176
|
if (n.name === "allocations_cash" && x > 0) {
|
|
177
177
|
D += x;
|
|
178
|
-
const
|
|
178
|
+
const B = {
|
|
179
179
|
displayName: u.cash_balance_display_name,
|
|
180
180
|
name: "allocations_name",
|
|
181
181
|
value: x,
|
|
182
182
|
percentage: x / y
|
|
183
183
|
};
|
|
184
|
-
|
|
184
|
+
T.push(B);
|
|
185
185
|
}
|
|
186
186
|
D > 0 && (f.push({
|
|
187
187
|
name: n.name,
|
|
188
188
|
displayName: m[g],
|
|
189
189
|
guid: `${n.name}-${g}`,
|
|
190
|
-
holdings:
|
|
190
|
+
holdings: T,
|
|
191
191
|
percentage: D / y,
|
|
192
192
|
value: D,
|
|
193
193
|
color: Je[n.name]
|
|
@@ -235,7 +235,7 @@ const me = ({ sx: t = {} }) => {
|
|
|
235
235
|
children: x.map(({ label: s, value: y }) => /* @__PURE__ */ e(ye, { color: "primary", value: y, children: /* @__PURE__ */ e(o, { bold: !0, textTransform: "capitalize", variant: "body1", children: s }) }, s))
|
|
236
236
|
}
|
|
237
237
|
),
|
|
238
|
-
/* @__PURE__ */ e(ne, { sx: { px: 12 }, children: t.investmentsData.map((s) => /* @__PURE__ */ i(
|
|
238
|
+
/* @__PURE__ */ e(ne, { sx: { px: 12 }, children: t.investmentsData.map((s) => /* @__PURE__ */ i(k.Fragment, { children: [
|
|
239
239
|
/* @__PURE__ */ e(
|
|
240
240
|
ie,
|
|
241
241
|
{
|
|
@@ -326,12 +326,12 @@ const me = ({ sx: t = {} }) => {
|
|
|
326
326
|
size: l = 150,
|
|
327
327
|
totalLabel: x
|
|
328
328
|
}) => {
|
|
329
|
-
const h = Z(), b = h.palette.mode === "dark", s =
|
|
330
|
-
() => d ? t.investmentsData.find(({ guid:
|
|
329
|
+
const h = Z(), b = h.palette.mode === "dark", s = k.useMemo(
|
|
330
|
+
() => d ? t.investmentsData.find(({ guid: T }) => T === d) : void 0,
|
|
331
331
|
[d]
|
|
332
332
|
), {
|
|
333
333
|
investments: { allocation: y }
|
|
334
|
-
} = N(), r =
|
|
334
|
+
} = N(), r = k.useMemo(() => t.donutData.length > 0 ? t.donutData : [{ id: "0", color: h.palette.neutral.light, value: 100 }], [t, h]), n = b ? "#0AC295" : "#09A57F", g = b ? "grey.300" : "grey.700", C = () => s ? y.pie_chart_centered_click_for_details : c ? ae(t.totalGainLossPercentage) : R(t.totalGainLoss), D = t.totalGainLoss >= 0 ? n : g;
|
|
335
335
|
return /* @__PURE__ */ e(
|
|
336
336
|
He,
|
|
337
337
|
{
|
|
@@ -347,7 +347,7 @@ const me = ({ sx: t = {} }) => {
|
|
|
347
347
|
/* @__PURE__ */ e(X, { color: "text.primary", variant: "h1", children: R(s?.value ?? t.totalMarketValue) }),
|
|
348
348
|
/* @__PURE__ */ i(_, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
|
349
349
|
!s && /* @__PURE__ */ e(
|
|
350
|
-
|
|
350
|
+
W,
|
|
351
351
|
{
|
|
352
352
|
name: t.totalGainLoss >= 0 ? "trending_up" : "trending_down",
|
|
353
353
|
size: 20,
|
|
@@ -370,7 +370,7 @@ const me = ({ sx: t = {} }) => {
|
|
|
370
370
|
}
|
|
371
371
|
);
|
|
372
372
|
}, ot = () => {
|
|
373
|
-
const [t, u] =
|
|
373
|
+
const [t, u] = k.useState(0), [c, m] = k.useState(""), [f, v] = k.useState(""), d = (n) => {
|
|
374
374
|
c !== n ? m(n) : (m(""), v(""));
|
|
375
375
|
}, { selectedAccountGuids: l } = J(), { visibleHoldings: x } = U(), { visibleInvestmentAccounts: h } = ce(), {
|
|
376
376
|
investments: { allocation: b }
|
|
@@ -428,7 +428,7 @@ const me = ({ sx: t = {} }) => {
|
|
|
428
428
|
copy: c,
|
|
429
429
|
setAnalysisType: m
|
|
430
430
|
}) => {
|
|
431
|
-
const { isSmallMobile: f } = j(), v =
|
|
431
|
+
const { isSmallMobile: f } = j(), v = k.useMemo(() => Object.keys(t).filter((l) => t[l] >= 1).map((l) => ({
|
|
432
432
|
key: l,
|
|
433
433
|
value: re(t[l], "0,0"),
|
|
434
434
|
formattedKey: ze(l)
|
|
@@ -497,12 +497,12 @@ const me = ({ sx: t = {} }) => {
|
|
|
497
497
|
enterTouchDelay: 500,
|
|
498
498
|
placement: t,
|
|
499
499
|
title: /* @__PURE__ */ e(at, { body: u, title: c }),
|
|
500
|
-
children: /* @__PURE__ */ e(de, { "aria-label": c, sx: { minHeight: 0, minWidth: 0, p: 0 }, children: /* @__PURE__ */ e(
|
|
500
|
+
children: /* @__PURE__ */ e(de, { "aria-label": c, sx: { minHeight: 0, minWidth: 0, p: 0 }, children: /* @__PURE__ */ e(W, { name: "info", sx: { color: "info.main" } }) })
|
|
501
501
|
}
|
|
502
502
|
), ct = () => {
|
|
503
503
|
const {
|
|
504
504
|
investments: { analysis: t }
|
|
505
|
-
} = N(), { analysisChartData: u, analysisDetails: c, analysisType: m, setAnalysisType: f } = U(), v = xe("(min-width:320px) and (max-width:375px)"), { isMobile: d } = j(), x = Z().palette.mode === "dark", { cellDimension: h, columns: b, rows: s, textVariant: y } =
|
|
505
|
+
} = N(), { analysisChartData: u, analysisDetails: c, analysisType: m, setAnalysisType: f } = U(), v = xe("(min-width:320px) and (max-width:375px)"), { isMobile: d } = j(), x = Z().palette.mode === "dark", { cellDimension: h, columns: b, rows: s, textVariant: y } = k.useMemo(() => {
|
|
506
506
|
const r = m === V.Stocks, n = Object.values(r ? t.stock_column_labels : t.bond_column_labels), g = Object.values(r ? t.stock_row_labels : t.bond_row_labels);
|
|
507
507
|
return { cellDimension: d ? 72 : 100, columns: n, rows: g, textVariant: d ? "caption" : "body1" };
|
|
508
508
|
}, [t, d, m]);
|
|
@@ -589,17 +589,17 @@ const me = ({ sx: t = {} }) => {
|
|
|
589
589
|
}
|
|
590
590
|
),
|
|
591
591
|
u.map((r, n, g) => /* @__PURE__ */ e(_, { sx: { flexDirection: "row", gap: 4 }, children: r.map((C, D) => {
|
|
592
|
-
const
|
|
592
|
+
const T = n === 0, B = n === g.length - 1, A = D === 0, G = D === r.length - 1, F = Number(C.replace("%", "")) >= 25;
|
|
593
593
|
let L = "grey.200", H = "grey.900";
|
|
594
594
|
return x ? (L = F ? "grey.200" : "grey.700", H = F ? "grey.900" : "common.white") : (L = F ? "grey.700" : "grey.200", H = F ? "common.white" : "grey.900"), /* @__PURE__ */ e(
|
|
595
595
|
_,
|
|
596
596
|
{
|
|
597
597
|
sx: {
|
|
598
598
|
...{
|
|
599
|
-
borderBottomLeftRadius:
|
|
600
|
-
borderBottomRightRadius:
|
|
601
|
-
borderTopLeftRadius:
|
|
602
|
-
borderTopRightRadius:
|
|
599
|
+
borderBottomLeftRadius: B && A ? 4 : 0,
|
|
600
|
+
borderBottomRightRadius: B && G ? 4 : 0,
|
|
601
|
+
borderTopLeftRadius: T && A ? 4 : 0,
|
|
602
|
+
borderTopRightRadius: T && G ? 4 : 0
|
|
603
603
|
},
|
|
604
604
|
alignItems: "center",
|
|
605
605
|
bgcolor: L,
|
|
@@ -663,7 +663,7 @@ const me = ({ sx: t = {} }) => {
|
|
|
663
663
|
isOpen: l,
|
|
664
664
|
onClose: x
|
|
665
665
|
}) => {
|
|
666
|
-
const { investments: h } = N(), [b, s] =
|
|
666
|
+
const { investments: h } = N(), [b, s] = k.useState({}), y = (r) => (n, g) => {
|
|
667
667
|
s((C) => ({
|
|
668
668
|
...C,
|
|
669
669
|
[r]: g
|
|
@@ -765,12 +765,41 @@ const me = ({ sx: t = {} }) => {
|
|
|
765
765
|
{
|
|
766
766
|
sx: {
|
|
767
767
|
alignItems: "center",
|
|
768
|
+
flex: 1,
|
|
768
769
|
flexDirection: "row",
|
|
769
|
-
gap: 12
|
|
770
|
+
gap: 12,
|
|
771
|
+
minWidth: 0
|
|
770
772
|
},
|
|
771
|
-
children: /* @__PURE__ */ i(p, { sx: { overflow: "hidden"
|
|
772
|
-
/* @__PURE__ */ e(
|
|
773
|
-
|
|
773
|
+
children: /* @__PURE__ */ i(p, { sx: { minWidth: 0, overflow: "hidden" }, children: [
|
|
774
|
+
/* @__PURE__ */ e(
|
|
775
|
+
o,
|
|
776
|
+
{
|
|
777
|
+
sx: {
|
|
778
|
+
fontWeight: 600,
|
|
779
|
+
display: "-webkit-box",
|
|
780
|
+
WebkitBoxOrient: "vertical",
|
|
781
|
+
WebkitLineClamp: 1,
|
|
782
|
+
overflow: "hidden",
|
|
783
|
+
overflowWrap: "anywhere"
|
|
784
|
+
},
|
|
785
|
+
variant: "body1",
|
|
786
|
+
children: r.holding
|
|
787
|
+
}
|
|
788
|
+
),
|
|
789
|
+
/* @__PURE__ */ e(
|
|
790
|
+
o,
|
|
791
|
+
{
|
|
792
|
+
sx: {
|
|
793
|
+
display: "-webkit-box",
|
|
794
|
+
WebkitBoxOrient: "vertical",
|
|
795
|
+
WebkitLineClamp: 2,
|
|
796
|
+
overflow: "hidden",
|
|
797
|
+
overflowWrap: "anywhere"
|
|
798
|
+
},
|
|
799
|
+
variant: "caption",
|
|
800
|
+
children: r.description
|
|
801
|
+
}
|
|
802
|
+
)
|
|
774
803
|
] })
|
|
775
804
|
}
|
|
776
805
|
),
|
|
@@ -779,7 +808,7 @@ const me = ({ sx: t = {} }) => {
|
|
|
779
808
|
{
|
|
780
809
|
sx: {
|
|
781
810
|
alignItems: "center",
|
|
782
|
-
|
|
811
|
+
flexShrink: 0,
|
|
783
812
|
flexDirection: "row",
|
|
784
813
|
gap: 12,
|
|
785
814
|
justifyContent: "flex-end"
|
|
@@ -794,7 +823,7 @@ const me = ({ sx: t = {} }) => {
|
|
|
794
823
|
}) }),
|
|
795
824
|
/* @__PURE__ */ i(p, { sx: { alignItems: "center", gap: 2, flexDirection: "row" }, children: [
|
|
796
825
|
r.totalGainLoss !== 0 && /* @__PURE__ */ e(
|
|
797
|
-
|
|
826
|
+
W,
|
|
798
827
|
{
|
|
799
828
|
name: r.totalGainLoss >= 0 ? "trending_up" : "trending_down",
|
|
800
829
|
size: 12,
|
|
@@ -836,7 +865,7 @@ const me = ({ sx: t = {} }) => {
|
|
|
836
865
|
] })
|
|
837
866
|
] }),
|
|
838
867
|
/* @__PURE__ */ e(
|
|
839
|
-
|
|
868
|
+
W,
|
|
840
869
|
{
|
|
841
870
|
name: b[r.id] ? "expand_less" : "expand_more",
|
|
842
871
|
size: 20
|
|
@@ -936,7 +965,7 @@ const me = ({ sx: t = {} }) => {
|
|
|
936
965
|
{
|
|
937
966
|
onClick: () => f(r.id, r.costBasis),
|
|
938
967
|
sx: { minWidth: 16, minHeight: 16 },
|
|
939
|
-
children: /* @__PURE__ */ e(
|
|
968
|
+
children: /* @__PURE__ */ e(W, { name: "stylus", size: 16, sx: { color: "grey.700" } })
|
|
940
969
|
}
|
|
941
970
|
)
|
|
942
971
|
]
|
|
@@ -959,7 +988,7 @@ const me = ({ sx: t = {} }) => {
|
|
|
959
988
|
);
|
|
960
989
|
}, ut = $(mt), K = (t) => /* @__PURE__ */ i(Pe, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
|
961
990
|
/* @__PURE__ */ e(o, { sx: { color: "text.primary", fontWeight: 600, fontSize: 14 }, variant: "body2", children: t.colDef.headerName }),
|
|
962
|
-
/* @__PURE__ */ e(
|
|
991
|
+
/* @__PURE__ */ e(W, { name: "expand_all", size: 12 })
|
|
963
992
|
] }), ht = ({
|
|
964
993
|
data: t,
|
|
965
994
|
editingHoldingId: u,
|
|
@@ -1030,7 +1059,7 @@ const me = ({ sx: t = {} }) => {
|
|
|
1030
1059
|
{
|
|
1031
1060
|
onClick: () => m(n.row.id, n.row.costBasis),
|
|
1032
1061
|
sx: { minWidth: 12, minHeight: 12 },
|
|
1033
|
-
children: /* @__PURE__ */ e(
|
|
1062
|
+
children: /* @__PURE__ */ e(W, { name: "stylus", size: 12, sx: { color: "grey.700" } })
|
|
1034
1063
|
}
|
|
1035
1064
|
)
|
|
1036
1065
|
] });
|
|
@@ -1047,7 +1076,7 @@ const me = ({ sx: t = {} }) => {
|
|
|
1047
1076
|
const g = n.row.costBasis, C = g ? n.row.totalGainLoss / g * 100 : 0;
|
|
1048
1077
|
return /* @__PURE__ */ i(_, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
|
|
1049
1078
|
n.value !== 0 && /* @__PURE__ */ e(
|
|
1050
|
-
|
|
1079
|
+
W,
|
|
1051
1080
|
{
|
|
1052
1081
|
name: n.value > 0 ? "trending_up" : "trending_down",
|
|
1053
1082
|
size: 16,
|
|
@@ -1129,14 +1158,14 @@ const me = ({ sx: t = {} }) => {
|
|
|
1129
1158
|
}
|
|
1130
1159
|
);
|
|
1131
1160
|
}, gt = () => {
|
|
1132
|
-
const { isMobile: t } = j(), [u, c] = O({}), [m, f] = O(!1), { selectedAccountGuids: v } = J(), { visibleHoldings: d, updateHoldings: l } = U(), [x, h] =
|
|
1161
|
+
const { isMobile: t } = j(), [u, c] = O({}), [m, f] = O(!1), { selectedAccountGuids: v } = J(), { visibleHoldings: d, updateHoldings: l } = U(), [x, h] = k.useState(!1), [b, s] = O({
|
|
1133
1162
|
accounts: [],
|
|
1134
1163
|
holdings: []
|
|
1135
|
-
}), { accounts: y, investments: r } = N(), { isCopyLoaded: n } = J(), [g, C] = O(null), [D,
|
|
1136
|
-
C(a),
|
|
1164
|
+
}), { accounts: y, investments: r } = N(), { isCopyLoaded: n } = J(), [g, C] = O(null), [D, T] = O(""), A = Z().palette.mode === "dark", G = A ? "#0AC295" : "#09A57F", F = A ? "grey.300" : "grey.700", L = (a, w = "lesserThan") => w === "greaterThan" ? a >= 0 ? G : F : a <= 0 ? F : G, H = (a, w) => {
|
|
1165
|
+
C(a), T(w.toFixed(2));
|
|
1137
1166
|
}, ee = (a) => {
|
|
1138
1167
|
const w = a.target.value;
|
|
1139
|
-
/^\d*\.?\d*$/.test(w) &&
|
|
1168
|
+
/^\d*\.?\d*$/.test(w) && T(w);
|
|
1140
1169
|
}, ue = (a, w) => {
|
|
1141
1170
|
a.key === "Enter" ? te(w) : a.key === "Escape" && C(null);
|
|
1142
1171
|
}, te = (a) => {
|
|
@@ -1165,7 +1194,7 @@ const me = ({ sx: t = {} }) => {
|
|
|
1165
1194
|
).reduce((a, w) => {
|
|
1166
1195
|
const M = w.market_value ? w.market_value - (w.cost_basis || 0) : 0;
|
|
1167
1196
|
return a + M;
|
|
1168
|
-
}, 0),
|
|
1197
|
+
}, 0), ke = () => {
|
|
1169
1198
|
f(!1);
|
|
1170
1199
|
};
|
|
1171
1200
|
return n ? /* @__PURE__ */ i(p, { sx: { alignItems: "center", gap: 48, pt: 48, width: "100%" }, children: [
|
|
@@ -1179,7 +1208,7 @@ const me = ({ sx: t = {} }) => {
|
|
|
1179
1208
|
}) }),
|
|
1180
1209
|
/* @__PURE__ */ i(p, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
|
|
1181
1210
|
/* @__PURE__ */ e(
|
|
1182
|
-
|
|
1211
|
+
W,
|
|
1183
1212
|
{
|
|
1184
1213
|
name: q >= 0 ? "trending_up" : "trending_down",
|
|
1185
1214
|
size: 20,
|
|
@@ -1211,7 +1240,7 @@ const me = ({ sx: t = {} }) => {
|
|
|
1211
1240
|
marketValue: I.market_value || 0,
|
|
1212
1241
|
description: I.description || ""
|
|
1213
1242
|
})), M = w.length > 0, E = a.balance, S = w.reduce(
|
|
1214
|
-
(I,
|
|
1243
|
+
(I, Be) => Be.totalGainLoss + I,
|
|
1215
1244
|
0
|
|
1216
1245
|
), ge = E ? S / E * 100 : 0;
|
|
1217
1246
|
if (t)
|
|
@@ -1307,7 +1336,7 @@ const me = ({ sx: t = {} }) => {
|
|
|
1307
1336
|
},
|
|
1308
1337
|
children: [
|
|
1309
1338
|
S !== 0 && /* @__PURE__ */ e(
|
|
1310
|
-
|
|
1339
|
+
W,
|
|
1311
1340
|
{
|
|
1312
1341
|
name: S > 0 ? "trending_up" : "trending_down",
|
|
1313
1342
|
size: 20,
|
|
@@ -1383,7 +1412,7 @@ const me = ({ sx: t = {} }) => {
|
|
|
1383
1412
|
},
|
|
1384
1413
|
a.guid
|
|
1385
1414
|
);
|
|
1386
|
-
const
|
|
1415
|
+
const Te = A ? "grey.700" : "grey.400", We = w.length ? "text.primary" : Te;
|
|
1387
1416
|
return /* @__PURE__ */ i(
|
|
1388
1417
|
be,
|
|
1389
1418
|
{
|
|
@@ -1421,7 +1450,7 @@ const me = ({ sx: t = {} }) => {
|
|
|
1421
1450
|
width: "100%"
|
|
1422
1451
|
},
|
|
1423
1452
|
children: [
|
|
1424
|
-
/* @__PURE__ */ e(
|
|
1453
|
+
/* @__PURE__ */ e(W, { name: "expand_more", size: 20, sx: { color: We } }),
|
|
1425
1454
|
/* @__PURE__ */ e(
|
|
1426
1455
|
oe,
|
|
1427
1456
|
{
|
|
@@ -1451,7 +1480,7 @@ const me = ({ sx: t = {} }) => {
|
|
|
1451
1480
|
},
|
|
1452
1481
|
children: [
|
|
1453
1482
|
S !== 0 && /* @__PURE__ */ e(
|
|
1454
|
-
|
|
1483
|
+
W,
|
|
1455
1484
|
{
|
|
1456
1485
|
name: S >= 0 ? "trending_up" : "trending_down",
|
|
1457
1486
|
size: 20,
|
|
@@ -1535,7 +1564,7 @@ const me = ({ sx: t = {} }) => {
|
|
|
1535
1564
|
handleCostBasisClick: H,
|
|
1536
1565
|
handleCostBasisKeyDown: ue,
|
|
1537
1566
|
isOpen: m,
|
|
1538
|
-
onClose:
|
|
1567
|
+
onClose: ke
|
|
1539
1568
|
}
|
|
1540
1569
|
),
|
|
1541
1570
|
/* @__PURE__ */ e(
|
|
@@ -1556,20 +1585,20 @@ const me = ({ sx: t = {} }) => {
|
|
|
1556
1585
|
visibleHoldings: x,
|
|
1557
1586
|
setShowConnectionsWidget: h,
|
|
1558
1587
|
showConnectionsWidget: b
|
|
1559
|
-
} = U(), { investments: s, accounts: y } = N(), { isInitialized: r } = J(), [n, g] =
|
|
1588
|
+
} = U(), { investments: s, accounts: y } = N(), { isInitialized: r } = J(), [n, g] = k.useState(0), { loadHoldings: C, holdingsLoaded: D } = U();
|
|
1560
1589
|
qe({
|
|
1561
1590
|
widgetName: "InvestmentsWidget",
|
|
1562
1591
|
isLoaded: D
|
|
1563
|
-
}),
|
|
1592
|
+
}), k.useEffect(() => {
|
|
1564
1593
|
v || d().finally();
|
|
1565
|
-
}, []),
|
|
1594
|
+
}, []), k.useEffect(() => {
|
|
1566
1595
|
r && C().finally();
|
|
1567
1596
|
}, [r]);
|
|
1568
|
-
const
|
|
1597
|
+
const T = () => {
|
|
1569
1598
|
m(z.INVESTMENT_WIDGET_ACCOUNT_FILTER_CLICK);
|
|
1570
1599
|
};
|
|
1571
1600
|
if (!r || !D) return /* @__PURE__ */ e(De, {});
|
|
1572
|
-
const
|
|
1601
|
+
const B = [
|
|
1573
1602
|
z.INVESTMENT_WIDGET_DETAILS_CLICK,
|
|
1574
1603
|
z.INVESTMENT_WIDGET_ALLOCATION_CLICK,
|
|
1575
1604
|
z.INVESTMENT_WIDGET_ANALYSIS_CLICK
|
|
@@ -1582,7 +1611,7 @@ const me = ({ sx: t = {} }) => {
|
|
|
1582
1611
|
Ke,
|
|
1583
1612
|
{
|
|
1584
1613
|
allowedAccountTypes: [Ye.INVESTMENT],
|
|
1585
|
-
onAccountsFilterClick:
|
|
1614
|
+
onAccountsFilterClick: T,
|
|
1586
1615
|
onBackClick: t,
|
|
1587
1616
|
onMenuClick: u,
|
|
1588
1617
|
sx: c,
|
|
@@ -1593,7 +1622,7 @@ const me = ({ sx: t = {} }) => {
|
|
|
1593
1622
|
Ee,
|
|
1594
1623
|
{
|
|
1595
1624
|
onChange: (F, L) => {
|
|
1596
|
-
g(L), m(
|
|
1625
|
+
g(L), m(B[L]);
|
|
1597
1626
|
},
|
|
1598
1627
|
sx: { bgcolor: "background.paper" },
|
|
1599
1628
|
textColor: "primary",
|