@mx-cartographer/experiences 7.13.16 → 7.13.17

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.
@@ -16,7 +16,7 @@ import ye from "@mui/material/ToggleButton";
16
16
  import fe from "@mui/material/ToggleButtonGroup";
17
17
  import { Text as r, P as X, InstitutionLogo as oe } from "@mxenabled/mxui";
18
18
  import Ue from "@mui/material/Button";
19
- import { u as M, g as be, s as U, b as J, d as le } from "../hooks-BxkfR-Ff.mjs";
19
+ import { u as M, g as ve, s as U, b as J, d as le } from "../hooks-BxkfR-Ff.mjs";
20
20
  import { A as z } from "../Analytics-BYItVAe-.mjs";
21
21
  import { a as je, f as ie } from "../NumberFormatting-QCaNwbjv.mjs";
22
22
  import { u as j } from "../useScreenSize-B6JyS_Lj.mjs";
@@ -28,7 +28,7 @@ import { f as Oe, A as V } from "../InvestmentUtil-BItV7uEs.mjs";
28
28
  import Ve from "@mui/material/ListItemText";
29
29
  import de from "@mui/material/IconButton";
30
30
  import Re from "@mui/material/Tooltip";
31
- import ve from "@mui/material/Accordion";
31
+ import be from "@mui/material/Accordion";
32
32
  import _e from "@mui/material/AccordionDetails";
33
33
  import we from "@mui/material/AccordionSummary";
34
34
  import re from "@mui/material/Paper";
@@ -43,7 +43,7 @@ import { W as Ye } from "../WidgetContainer-B7xDq2bM.mjs";
43
43
  import { A as Qe } from "../Account-BiB1F8lL.mjs";
44
44
  import { E as Je } from "../EmptyState-DHAkGsjk.mjs";
45
45
  const me = ({ sx: t = {} }) => {
46
- const { investments: h } = M(), { onEvent: c } = be(), { setShowConnectionsWidget: m } = U();
46
+ const { investments: h } = M(), { onEvent: c } = ve(), { setShowConnectionsWidget: m } = U();
47
47
  return /* @__PURE__ */ o(_, { sx: { alignItems: "center", gap: 24, height: 164, p: 24, width: "100%", ...t }, children: [
48
48
  /* @__PURE__ */ o(
49
49
  _,
@@ -123,28 +123,28 @@ const me = ({ sx: t = {} }) => {
123
123
  name: "allocations_unknown"
124
124
  }
125
125
  ], et = (t, h, c) => {
126
- const m = h, b = c;
127
- return t >= Math.min(m, b) && t < Math.max(m, b);
126
+ const m = h, v = c;
127
+ return t >= Math.min(m, v) && t < Math.max(m, v);
128
128
  }, tt = (t, h, c) => {
129
129
  const m = [
130
130
  ...new Set(t.map((d) => d.name.toLowerCase()))
131
131
  ];
132
- let b;
132
+ let v;
133
133
  return m.map((d) => {
134
134
  const a = t.reduce((g, f) => {
135
135
  const p = f.name;
136
- return p.toLowerCase() === d ? (b = p, Q(f) * f[h] / 100 + g) : g;
136
+ return p.toLowerCase() === d ? (v = p, Q(f) * f[h] / 100 + g) : g;
137
137
  }, 0);
138
138
  return {
139
- displayName: b,
140
- name: b,
139
+ displayName: v,
140
+ name: v,
141
141
  value: a,
142
142
  percentage: a / c
143
143
  };
144
144
  });
145
145
  }, Q = (t) => t.calculated_market_value ? t.calculated_market_value : t.market_value, nt = (t, h, c) => {
146
- const m = Object.values(h.allocations_list), b = [];
147
- let v = 0;
146
+ const m = Object.values(h.allocations_list), v = [];
147
+ let b = 0;
148
148
  const d = t.map(({ guid: n }) => n), a = c.filter(({ account_guid: n }) => d.includes(n)).map((n) => ({
149
149
  ...n,
150
150
  name: n.symbol || n.description,
@@ -185,7 +185,7 @@ const me = ({ sx: t = {} }) => {
185
185
  };
186
186
  T.push(I);
187
187
  }
188
- D > 0 && (b.push({
188
+ D > 0 && (v.push({
189
189
  name: n.name,
190
190
  displayName: m[x],
191
191
  guid: `${n.name}-${x}`,
@@ -193,20 +193,20 @@ const me = ({ sx: t = {} }) => {
193
193
  percentage: D / u,
194
194
  value: D,
195
195
  color: Xe[n.name]
196
- }), v += D);
196
+ }), b += D);
197
197
  });
198
- const i = b.map(
198
+ const i = v.map(
199
199
  ({ displayName: n, guid: x, color: w, value: D }) => ({
200
200
  id: x,
201
201
  color: w,
202
202
  label: n,
203
- value: D / v * 100
203
+ value: D / b * 100
204
204
  })
205
205
  );
206
206
  return {
207
- investmentsData: b,
207
+ investmentsData: v,
208
208
  donutData: i,
209
- totalAmount: v,
209
+ totalAmount: b,
210
210
  totalGainLoss: l,
211
211
  totalMarketValue: u,
212
212
  totalGainLossPercentage: l / f
@@ -216,10 +216,10 @@ const me = ({ sx: t = {} }) => {
216
216
  onSelected: h,
217
217
  selectedId: c,
218
218
  selectedTabs: m,
219
- setSelectedTabs: b
219
+ setSelectedTabs: v
220
220
  }) => {
221
- const v = (l, u) => {
222
- u !== null && b(u);
221
+ const b = (l, u) => {
222
+ u !== null && v(u);
223
223
  }, { isMobile: d } = j(), {
224
224
  investments: { allocation: a }
225
225
  } = M(), g = [
@@ -232,7 +232,7 @@ const me = ({ sx: t = {} }) => {
232
232
  {
233
233
  exclusive: !0,
234
234
  fullWidth: !0,
235
- onChange: v,
235
+ onChange: b,
236
236
  value: f ? -1 : m,
237
237
  children: g.map(({ label: l, value: u }) => /* @__PURE__ */ e(ye, { color: "primary", value: u, children: /* @__PURE__ */ e(r, { bold: !0, textTransform: "capitalize", variant: "body1", children: l }) }, l))
238
238
  }
@@ -306,7 +306,7 @@ const me = ({ sx: t = {} }) => {
306
306
  ] }, l.guid)) }),
307
307
  f ? /* @__PURE__ */ o(ae, { children: [
308
308
  /* @__PURE__ */ e(r, { sx: { color: "secondary.main", p: 8, textAlign: "center" }, children: a.empty_data }),
309
- /* @__PURE__ */ e(Y, { sx: { borderColor: "border.light" } }),
309
+ /* @__PURE__ */ e(Y, {}),
310
310
  /* @__PURE__ */ e(
311
311
  me,
312
312
  {
@@ -322,8 +322,8 @@ const me = ({ sx: t = {} }) => {
322
322
  hoveredId: h,
323
323
  isPercentage: c,
324
324
  onMouseEnter: m,
325
- onMouseLeave: b,
326
- onSelected: v,
325
+ onMouseLeave: v,
326
+ onSelected: b,
327
327
  selectedId: d,
328
328
  size: a = 150,
329
329
  totalLabel: g
@@ -333,15 +333,15 @@ const me = ({ sx: t = {} }) => {
333
333
  [d]
334
334
  ), {
335
335
  investments: { allocation: u }
336
- } = M(), i = A.useMemo(() => t.donutData.length > 0 ? t.donutData : [{ id: "0", color: f.palette.border.light, value: 100 }], [t, f]), n = p ? "#0AC295" : "#09A57F", x = p ? "grey.300" : "grey.700", w = () => l ? u.pie_chart_centered_click_for_details : c ? se(t.totalGainLossPercentage) : R(t.totalGainLoss), D = t.totalGainLoss >= 0 ? n : x;
336
+ } = M(), i = A.useMemo(() => t.donutData.length > 0 ? t.donutData : [{ id: "0", color: f.palette.neutral.light, value: 100 }], [t, f]), n = p ? "#0AC295" : "#09A57F", x = p ? "grey.300" : "grey.700", w = () => l ? u.pie_chart_centered_click_for_details : c ? se(t.totalGainLossPercentage) : R(t.totalGainLoss), D = t.totalGainLoss >= 0 ? n : x;
337
337
  return /* @__PURE__ */ e(
338
338
  He,
339
339
  {
340
340
  data: i,
341
341
  hoveredId: h,
342
- onClick: v,
342
+ onClick: b,
343
343
  onMouseEnter: m,
344
- onMouseLeave: b,
344
+ onMouseLeave: v,
345
345
  selectedId: d,
346
346
  size: a,
347
347
  children: /* @__PURE__ */ e(_, { alignItems: "center", height: "100%", justifyContent: "center", width: "100%", children: /* @__PURE__ */ e(_, { alignItems: "center", justifyContent: "center", minHeight: a, minWidth: a, children: /* @__PURE__ */ o(_, { alignItems: "center", sx: { gap: { xs: 4, xl: 8 }, mb: { xs: 4, xl: 8 } }, children: [
@@ -372,8 +372,8 @@ const me = ({ sx: t = {} }) => {
372
372
  }
373
373
  );
374
374
  }, rt = () => {
375
- const [t, h] = A.useState(0), [c, m] = A.useState(""), [b, v] = A.useState(""), d = (n) => {
376
- c !== n ? m(n) : (m(""), v(""));
375
+ const [t, h] = A.useState(0), [c, m] = A.useState(""), [v, b] = A.useState(""), d = (n) => {
376
+ c !== n ? m(n) : (m(""), b(""));
377
377
  }, { selectedAccountGuids: a } = J(), { visibleHoldings: g } = U(), { visibleInvestmentAccounts: f } = le(), {
378
378
  investments: { allocation: p }
379
379
  } = M(), l = nt(
@@ -397,13 +397,13 @@ const me = ({ sx: t = {} }) => {
397
397
  it,
398
398
  {
399
399
  data: l,
400
- hoveredId: b,
400
+ hoveredId: v,
401
401
  isPercentage: t === 1,
402
402
  onMouseEnter: (n) => {
403
- c === n ? v("") : c || v(n);
403
+ c === n ? b("") : c || b(n);
404
404
  },
405
405
  onMouseLeave: () => {
406
- v("");
406
+ b("");
407
407
  },
408
408
  onSelected: d,
409
409
  selectedId: c,
@@ -430,7 +430,7 @@ const me = ({ sx: t = {} }) => {
430
430
  copy: c,
431
431
  setAnalysisType: m
432
432
  }) => {
433
- const { isSmallMobile: b } = j(), v = A.useMemo(() => Object.keys(t).filter((a) => t[a] >= 1).map((a) => ({
433
+ const { isSmallMobile: v } = j(), b = A.useMemo(() => Object.keys(t).filter((a) => t[a] >= 1).map((a) => ({
434
434
  key: a,
435
435
  value: ie(t[a], "0,0"),
436
436
  formattedKey: Oe(a)
@@ -453,19 +453,19 @@ const me = ({ sx: t = {} }) => {
453
453
  textTransform: "capitalize"
454
454
  }
455
455
  },
456
- value: v.length ? h : -1,
456
+ value: b.length ? h : -1,
457
457
  children: d.map(({ label: a, value: g }) => /* @__PURE__ */ e(ye, { sx: { width: "100%" }, value: g, children: a }, g))
458
458
  }
459
459
  ),
460
- v.length ? /* @__PURE__ */ e(
460
+ b.length ? /* @__PURE__ */ e(
461
461
  te,
462
462
  {
463
463
  sx: {
464
464
  "& .MuiListItemSecondaryAction-root": { pr: 12 },
465
- "& .MuiListItem-divider": { borderColor: "border.light" },
465
+ "& .MuiListItem-divider": { borderColor: "neutral.light" },
466
466
  "& .MuiListItem-root": { minHeight: 44, px: 12 }
467
467
  },
468
- children: v.map(({ value: a, formattedKey: g }) => /* @__PURE__ */ e(ne, { divider: !0, secondaryAction: /* @__PURE__ */ e(r, { children: a }), children: /* @__PURE__ */ e(
468
+ children: b.map(({ value: a, formattedKey: g }) => /* @__PURE__ */ e(ne, { divider: !0, secondaryAction: /* @__PURE__ */ e(r, { children: a }), children: /* @__PURE__ */ e(
469
469
  Ve,
470
470
  {
471
471
  primary: g,
@@ -475,12 +475,12 @@ const me = ({ sx: t = {} }) => {
475
475
  }
476
476
  ) : /* @__PURE__ */ o(ae, { children: [
477
477
  /* @__PURE__ */ e(r, { sx: { color: "secondary.main", p: 8, textAlign: "center" }, children: c.empty_data }),
478
- /* @__PURE__ */ e(Y, { sx: { borderColor: "border.light" } }),
478
+ /* @__PURE__ */ e(Y, { sx: { borderColor: "neutral.light" } }),
479
479
  /* @__PURE__ */ e(
480
480
  me,
481
481
  {
482
482
  sx: {
483
- ".inner-container": { width: b ? "100%" : 364 }
483
+ ".inner-container": { width: v ? "100%" : 364 }
484
484
  }
485
485
  }
486
486
  )
@@ -504,7 +504,7 @@ const me = ({ sx: t = {} }) => {
504
504
  ), dt = () => {
505
505
  const {
506
506
  investments: { analysis: t }
507
- } = M(), { analysisChartData: h, analysisDetails: c, analysisType: m, setAnalysisType: b } = U(), v = xe("(min-width:320px) and (max-width:375px)"), { isMobile: d } = j(), g = ze().palette.mode === "dark", { cellDimension: f, columns: p, rows: l, textVariant: u } = A.useMemo(() => {
507
+ } = M(), { analysisChartData: h, analysisDetails: c, analysisType: m, setAnalysisType: v } = U(), b = xe("(min-width:320px) and (max-width:375px)"), { isMobile: d } = j(), g = ze().palette.mode === "dark", { cellDimension: f, columns: p, rows: l, textVariant: u } = A.useMemo(() => {
508
508
  const i = m === V.Stocks, n = Object.values(i ? t.stock_column_labels : t.bond_column_labels), x = Object.values(i ? t.stock_row_labels : t.bond_row_labels);
509
509
  return { cellDimension: d ? 72 : 100, columns: n, rows: x, textVariant: d ? "caption" : "body1" };
510
510
  }, [t, d, m]);
@@ -573,7 +573,7 @@ const me = ({ sx: t = {} }) => {
573
573
  _,
574
574
  {
575
575
  sx: {
576
- alignSelf: v ? "start" : "center",
576
+ alignSelf: b ? "start" : "center",
577
577
  flexDirection: "row",
578
578
  gap: 8,
579
579
  pb: 12
@@ -648,7 +648,7 @@ const me = ({ sx: t = {} }) => {
648
648
  equities: t.equities,
649
649
  bonds: t.bonds
650
650
  },
651
- setAnalysisType: b
651
+ setAnalysisType: v
652
652
  }
653
653
  )
654
654
  ]
@@ -659,8 +659,8 @@ const me = ({ sx: t = {} }) => {
659
659
  currentEditedCostBasis: h,
660
660
  editingHoldingId: c,
661
661
  handleCostBasisBlur: m,
662
- handleCostBasisClick: b,
663
- handleCostBasisChange: v,
662
+ handleCostBasisClick: v,
663
+ handleCostBasisChange: b,
664
664
  handleCostBasisKeyDown: d,
665
665
  isOpen: a,
666
666
  onClose: g
@@ -719,7 +719,7 @@ const me = ({ sx: t = {} }) => {
719
719
  t.holdings?.map((i, n) => {
720
720
  const x = c === i.id;
721
721
  return /* @__PURE__ */ o(
722
- ve,
722
+ be,
723
723
  {
724
724
  disableGutters: !0,
725
725
  expanded: p[i.id] === !0,
@@ -739,7 +739,7 @@ const me = ({ sx: t = {} }) => {
739
739
  { height: 64 },
740
740
  p[i.id] && n > 0 && {
741
741
  borderTop: 1,
742
- borderColor: "border.main"
742
+ borderColor: "divider"
743
743
  }
744
744
  ],
745
745
  children: /* @__PURE__ */ o(y, { sx: { flexDirection: "row", width: "100%" }, children: [
@@ -758,7 +758,7 @@ const me = ({ sx: t = {} }) => {
758
758
  },
759
759
  p[i.id] && {
760
760
  borderBottom: 1,
761
- borderColor: "border.main"
761
+ borderColor: "divider"
762
762
  }
763
763
  ],
764
764
  children: [
@@ -871,7 +871,7 @@ const me = ({ sx: t = {} }) => {
871
871
  sx: {
872
872
  alignItems: "center",
873
873
  borderBottom: 1,
874
- borderColor: "border.main",
874
+ borderColor: "divider",
875
875
  flexDirection: "row",
876
876
  height: 48,
877
877
  justifyContent: "space-between",
@@ -909,7 +909,7 @@ const me = ({ sx: t = {} }) => {
909
909
  {
910
910
  autoFocus: !0,
911
911
  onBlur: () => m(i.id),
912
- onChange: v,
912
+ onChange: b,
913
913
  onKeyDown: (w) => d(w, i.id),
914
914
  size: "small",
915
915
  sx: {
@@ -936,7 +936,7 @@ const me = ({ sx: t = {} }) => {
936
936
  /* @__PURE__ */ e(
937
937
  de,
938
938
  {
939
- onClick: () => b(i.id, i.costBasis),
939
+ onClick: () => v(i.id, i.costBasis),
940
940
  sx: { minWidth: 16, minHeight: 16 },
941
941
  children: /* @__PURE__ */ e(B, { name: "stylus", size: 16, sx: { color: "grey.700" } })
942
942
  }
@@ -967,8 +967,8 @@ const me = ({ sx: t = {} }) => {
967
967
  editingHoldingId: h,
968
968
  currentEditedCostBasis: c,
969
969
  handleCostBasisClick: m,
970
- handleCostBasisChange: b,
971
- handleCostBasisKeyDown: v,
970
+ handleCostBasisChange: v,
971
+ handleCostBasisKeyDown: b,
972
972
  handleCostBasisBlur: d
973
973
  }) => {
974
974
  const { investments: a } = M(), f = ce().palette.mode === "dark", p = "success.main", l = f ? "grey.300" : "grey.700", u = (n, x = "lesserThan") => x === "greaterThan" ? n >= 0 ? p : l : n <= 0 ? l : p, i = [
@@ -1003,8 +1003,8 @@ const me = ({ sx: t = {} }) => {
1003
1003
  {
1004
1004
  autoFocus: !0,
1005
1005
  onBlur: () => d(n.row.id),
1006
- onChange: b,
1007
- onKeyDown: (w) => v(w, n.row.id),
1006
+ onChange: v,
1007
+ onKeyDown: (w) => b(w, n.row.id),
1008
1008
  size: "small",
1009
1009
  sx: {
1010
1010
  fontSize: 14,
@@ -1131,7 +1131,7 @@ const me = ({ sx: t = {} }) => {
1131
1131
  }
1132
1132
  );
1133
1133
  }, pt = () => {
1134
- const { isMobile: t } = j(), [h, c] = O({}), [m, b] = O(!1), { selectedAccountGuids: v } = J(), { visibleHoldings: d, updateHoldings: a } = U(), [g, f] = A.useState(!1), [p, l] = O({
1134
+ const { isMobile: t } = j(), [h, c] = O({}), [m, v] = O(!1), { selectedAccountGuids: b } = J(), { visibleHoldings: d, updateHoldings: a } = U(), [g, f] = A.useState(!1), [p, l] = O({
1135
1135
  accounts: [],
1136
1136
  holdings: []
1137
1137
  }), { accounts: u, investments: i } = M(), { isCopyLoaded: n } = J(), [x, w] = O(null), [D, T] = O(""), W = ce().palette.mode === "dark", N = W ? "#0AC295" : "#09A57F", F = W ? "grey.300" : "grey.700", k = (s, C = "lesserThan") => C === "greaterThan" ? s >= 0 ? N : F : s <= 0 ? F : N, H = (s, C) => {
@@ -1161,14 +1161,14 @@ const me = ({ sx: t = {} }) => {
1161
1161
  [s]: G
1162
1162
  }));
1163
1163
  }, { visibleHoldings: he } = U(), { visibleInvestmentAccounts: Le } = le(), P = Le.filter(
1164
- ({ guid: s }) => v.includes(s)
1164
+ ({ guid: s }) => b.includes(s)
1165
1165
  ), Ie = P.reduce((s, C) => s + (C.balance || 0), 0), Ae = P.map(({ guid: s }) => s), q = he.filter(
1166
1166
  ({ account_guid: s }) => Ae.includes(s)
1167
1167
  ).reduce((s, C) => {
1168
1168
  const G = C.market_value ? C.market_value - (C.cost_basis || 0) : 0;
1169
1169
  return s + G;
1170
1170
  }, 0), Te = () => {
1171
- b(!1);
1171
+ v(!1);
1172
1172
  };
1173
1173
  return n ? /* @__PURE__ */ o(y, { sx: { alignItems: "center", gap: 48, pt: 48, width: "100%" }, children: [
1174
1174
  !!P.length && /* @__PURE__ */ o(y, { sx: { alignItems: "center" }, children: [
@@ -1221,7 +1221,7 @@ const me = ({ sx: t = {} }) => {
1221
1221
  re,
1222
1222
  {
1223
1223
  onClick: C.length ? () => {
1224
- b(!0), l({
1224
+ v(!0), l({
1225
1225
  holdings: C,
1226
1226
  accounts: s
1227
1227
  });
@@ -1235,7 +1235,7 @@ const me = ({ sx: t = {} }) => {
1235
1235
  {
1236
1236
  sx: {
1237
1237
  border: 1,
1238
- borderColor: "border.main",
1238
+ borderColor: "divider",
1239
1239
  borderRadius: "8px",
1240
1240
  ml: 16,
1241
1241
  mr: 16,
@@ -1249,7 +1249,7 @@ const me = ({ sx: t = {} }) => {
1249
1249
  sx: {
1250
1250
  alignItems: "center",
1251
1251
  borderBottom: 1,
1252
- borderColor: "border.main",
1252
+ borderColor: "divider",
1253
1253
  flexDirection: "row",
1254
1254
  pb: 14,
1255
1255
  pl: 14,
@@ -1288,7 +1288,7 @@ const me = ({ sx: t = {} }) => {
1288
1288
  sx: {
1289
1289
  alignItems: "center",
1290
1290
  borderRight: 1,
1291
- borderColor: "border.main",
1291
+ borderColor: "divider",
1292
1292
  flex: 1,
1293
1293
  justifyContent: "center",
1294
1294
  pb: 14,
@@ -1387,7 +1387,7 @@ const me = ({ sx: t = {} }) => {
1387
1387
  );
1388
1388
  const ke = W ? "grey.700" : "grey.400", Be = C.length ? "text.primary" : ke;
1389
1389
  return /* @__PURE__ */ o(
1390
- ve,
1390
+ be,
1391
1391
  {
1392
1392
  expanded: h[s.guid] === !0,
1393
1393
  onChange: G ? Se(s.guid) : () => {
@@ -1407,7 +1407,7 @@ const me = ({ sx: t = {} }) => {
1407
1407
  sx: [
1408
1408
  h[s.guid] && {
1409
1409
  borderBottom: 1,
1410
- borderColor: "border.main",
1410
+ borderColor: "divider",
1411
1411
  maxHeight: 88
1412
1412
  }
1413
1413
  ],
@@ -1508,7 +1508,7 @@ const me = ({ sx: t = {} }) => {
1508
1508
  ]
1509
1509
  }
1510
1510
  ),
1511
- /* @__PURE__ */ e(_e, { sx: { bgcolor: "background.default", p: 12 }, children: /* @__PURE__ */ e(re, { sx: { border: 1, borderColor: "border.light" }, children: /* @__PURE__ */ e(
1511
+ /* @__PURE__ */ e(_e, { sx: { bgcolor: "background.default", p: 12 }, children: /* @__PURE__ */ e(re, { sx: { border: 1, borderColor: "neutral.light" }, children: /* @__PURE__ */ e(
1512
1512
  gt,
1513
1513
  {
1514
1514
  currentEditedCostBasis: D,
@@ -1550,9 +1550,9 @@ const me = ({ sx: t = {} }) => {
1550
1550
  )
1551
1551
  ] }) : /* @__PURE__ */ e(De, {});
1552
1552
  }, xt = $(pt), yt = ({ title: t }) => /* @__PURE__ */ e(r, { bold: !0, variant: "body1", children: t }), dn = $(({ onBackClick: t, sx: h }) => {
1553
- const { onEvent: c } = be(), { isMobile: m } = j(), {
1554
- isAccountDataLoaded: b,
1555
- loadAccountData: v,
1553
+ const { onEvent: c } = ve(), { isMobile: m } = j(), {
1554
+ isAccountDataLoaded: v,
1555
+ loadAccountData: b,
1556
1556
  visibleInvestmentAccounts: d
1557
1557
  } = le(), {
1558
1558
  visibleHoldings: a,
@@ -1563,7 +1563,7 @@ const me = ({ sx: t = {} }) => {
1563
1563
  widgetName: "InvestmentsWidget",
1564
1564
  isLoaded: w
1565
1565
  }), A.useEffect(() => {
1566
- b || v().finally();
1566
+ v || b().finally();
1567
1567
  }, []), A.useEffect(() => {
1568
1568
  u && x().finally();
1569
1569
  }, [u]);
@@ -362,7 +362,7 @@ const _e = () => {
362
362
  borderBottom: "inherit",
363
363
  color: "inherit"
364
364
  };
365
- return C && (S.color = H ? "inherit" : S.color, S.backgroundColor = a.palette.action.hover), H && (S.backgroundColor = a.palette.primary.main, S.borderBottom = a.palette.border.light, S.color = a.palette.common.white), S;
365
+ return C && (S.color = H ? "inherit" : S.color, S.backgroundColor = a.palette.action.hover), H && (S.backgroundColor = a.palette.primary.main, S.borderBottom = a.palette.neutral.light, S.color = a.palette.common.white), S;
366
366
  }, E = (p, C) => {
367
367
  g(C), p.currentTarget instanceof HTMLDivElement && y(!0);
368
368
  }, h = () => {
@@ -17,7 +17,7 @@ import M from "@mui/material/Button";
17
17
  import X from "@mui/material/Stack";
18
18
  import { L as k } from "../Loader-D3rjKx72.mjs";
19
19
  import Y from "@mui/material/IconButton";
20
- import { N as q } from "../NotificationSettings-DU3vJh5J.mjs";
20
+ import { N as q } from "../NotificationSettings-C77J42Ue.mjs";
21
21
  import { D as x } from "../Drawer-Bbe4AMB1.mjs";
22
22
  const xt = (i) => {
23
23
  switch (i) {
@@ -6,8 +6,8 @@ import { endOfToday as J } from "date-fns/endOfToday";
6
6
  import { startOfMonth as k } from "date-fns/startOfMonth";
7
7
  import { startOfToday as Q } from "date-fns/startOfToday";
8
8
  import { subDays as ee } from "date-fns/subDays";
9
- import { R as _e } from "../RecurringSettings-XPxxB0Wf.mjs";
10
- import { M as Un } from "../RecurringSettings-XPxxB0Wf.mjs";
9
+ import { R as _e } from "../RecurringSettings-Db8Yrv1K.mjs";
10
+ import { M as Un } from "../RecurringSettings-Db8Yrv1K.mjs";
11
11
  import { addMonths as He } from "date-fns/addMonths";
12
12
  import { subMonths as $e } from "date-fns/subMonths";
13
13
  import { isBefore as Be } from "date-fns/isBefore";
@@ -33,10 +33,10 @@ import ot from "@mui/material/Badge";
33
33
  import { PickersDay as at } from "@mui/x-date-pickers/PickersDay";
34
34
  import { I as F } from "../IconBacking-B9oC6uL2.mjs";
35
35
  import { u as y, b as z, i as I, g as U, p as Ie, h as re } from "../hooks-BxkfR-Ff.mjs";
36
- import { d as A, c as D, g as Ce, f as st } from "../RecurringTransactions-BOzBqfdg.mjs";
36
+ import { d as A, c as D, g as Ce, f as st } from "../RecurringTransactions-C4jRZQ9t.mjs";
37
37
  import { f as S, D as w } from "../DateFormats-BMpMrZpW.mjs";
38
- import { T as G } from "../RecurringTransactionsStore-CcfPS0d3.mjs";
39
- import { R as jn } from "../RecurringTransactionsStore-CcfPS0d3.mjs";
38
+ import { T as G } from "../RecurringTransactionsStore-CiRGQ57O.mjs";
39
+ import { R as jn } from "../RecurringTransactionsStore-CiRGQ57O.mjs";
40
40
  import { g as ct, L as W, b as N } from "../Localization-CPkpIwIx.mjs";
41
41
  import { A as L } from "../Analytics-BYItVAe-.mjs";
42
42
  import lt from "@mui/material/Button";
@@ -47,8 +47,8 @@ import dt from "@mui/material/ListSubheader";
47
47
  import ut from "@mui/material/ListItemAvatar";
48
48
  import mt from "@mui/material/ListItemButton";
49
49
  import pt from "@mui/material/ListItemText";
50
- import { b as gt } from "../ManageIncome--_KEPuCK.mjs";
51
- import { c as Vn, M as qn, S as Zn } from "../ManageIncome--_KEPuCK.mjs";
50
+ import { b as gt } from "../ManageIncome-B808Yjoa.mjs";
51
+ import { c as Vn, M as qn, S as Zn } from "../ManageIncome-B808Yjoa.mjs";
52
52
  import { f as E } from "../NumberFormatting-QCaNwbjv.mjs";
53
53
  import { D as ie } from "../Drawer-Bbe4AMB1.mjs";
54
54
  import O from "@mui/material/Box";
@@ -833,7 +833,7 @@ const Y = {
833
833
  },
834
834
  {
835
835
  amount: p,
836
- bgColor: "border.light",
836
+ bgColor: "neutral.light",
837
837
  label: a.upcoming
838
838
  }
839
839
  ];