@mx-cartographer/experiences 8.0.0-alpha.bb4 → 8.0.0-alpha.sms1

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.
Files changed (106) hide show
  1. package/dist/{Account-B4CDD-zq.mjs → Account-BDXA6PWh.mjs} +1 -1
  2. package/dist/AccountDetailsContent-CUztd3-b.mjs +683 -0
  3. package/dist/{AccountDetailsHeader-DRjFuyJT.mjs → AccountDetailsHeader-i3KFhNuo.mjs} +18 -18
  4. package/dist/{AccountFields-Cl4KHoSj.mjs → AccountFields-QZspYAji.mjs} +10 -12
  5. package/dist/AccountListItem-DX5upmCS.mjs +90 -0
  6. package/dist/{AccountStore-HbVblv86.mjs → AccountStore-BcnDpyLL.mjs} +3 -3
  7. package/dist/{Accounts-CRUehOiy.mjs → Accounts-DXfZotRC.mjs} +1 -1
  8. package/dist/{BudgetUtil-Jv8h9H9l.mjs → BudgetUtil-Df2nII9u.mjs} +31 -31
  9. package/dist/{CashflowStore-CA190BPF.mjs → CashflowStore-D9Dpuz7X.mjs} +25 -18
  10. package/dist/{Category-Ccoew_sA.mjs → Category-CevNQ03n.mjs} +2 -2
  11. package/dist/{CategorySelectorDrawer-Dl006GKy.mjs → CategorySelectorDrawer-DqJK_rrL.mjs} +27 -27
  12. package/dist/{CategoryStore-MUwRWH9e.mjs → CategoryStore-DTgyAMM7.mjs} +2 -2
  13. package/dist/{CategoryUtil-DfVKKkRf.mjs → CategoryUtil-C5cR-nfQ.mjs} +4 -4
  14. package/dist/{ConnectDrawer-DVp54lUH.mjs → ConnectDrawer-BIbTqYOH.mjs} +47 -48
  15. package/dist/{ConnectionsDrawer-Dsc04-4Z.mjs → ConnectionsDrawer-BFfY3_zB.mjs} +2 -2
  16. package/dist/CurrencyInput-BFKcs-_K.mjs +85 -0
  17. package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CBdcsyuk.mjs} +1 -1
  18. package/dist/{DebtsStore-pL63fmdT.mjs → DebtsStore-BbJB0nmu.mjs} +3 -3
  19. package/dist/{Dialog-CDV0kKxj.mjs → Dialog-BPTr3qHE.mjs} +24 -24
  20. package/dist/{Drawer-BF40nbsH.mjs → Drawer-BEtCk82g.mjs} +17 -17
  21. package/dist/{ExportCsvAction-QhQK4_FU.mjs → ExportCsvAction-DzTrtPzk.mjs} +3 -3
  22. package/dist/{FinstrongStore-BGf36b0z.mjs → FinstrongStore-BIrX0Xg2.mjs} +56 -56
  23. package/dist/{GoalStore-C1-w3Y1E.mjs → GoalStore-DpWY3gVb.mjs} +4 -4
  24. package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
  25. package/dist/{Help-DBfsTkAi.mjs → Help-BnPXM_N2.mjs} +145 -124
  26. package/dist/{Help-c-zHlDbv.mjs → Help-DhcC-C05.mjs} +8 -8
  27. package/dist/{IconBacking-DgT8DCeh.mjs → IconBacking-B9oC6uL2.mjs} +11 -11
  28. package/dist/{LineChart-C1PxNf7P.mjs → LineChart-bc1D9xBE.mjs} +78 -78
  29. package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-uobBrm_a.mjs} +1 -1
  30. package/dist/Loader-DUaFpDGv.mjs +24 -0
  31. package/dist/{ManageIncome-8EsStyIQ.mjs → ManageIncome-NpXHhO1n.mjs} +46 -46
  32. package/dist/MicroWidgetContainer-DEiRnYVa.mjs +45 -0
  33. package/dist/MiniWidgetContainer-CmXpTylX.mjs +56 -0
  34. package/dist/{NetWorthStore-Bti6u-d9.mjs → NetWorthStore-lsuhEpn6.mjs} +4 -4
  35. package/dist/{NotificationSettings-B74rQVYC.mjs → NotificationSettings-CNmJWVeI.mjs} +77 -77
  36. package/dist/{OriginalBalanceAction-2Y_3U_mg.mjs → OriginalBalanceAction-DK8_LkPz.mjs} +8 -8
  37. package/dist/{RecurringSettings-DAncu--R.mjs → RecurringSettings-CqZh1SQa.mjs} +3 -3
  38. package/dist/{RecurringTransactions-CxcSL1dY.mjs → RecurringTransactions-BKcYmpv3.mjs} +77 -77
  39. package/dist/{RecurringTransactionsStore-CNFxyGB6.mjs → RecurringTransactionsStore-Ni5tSQIO.mjs} +1 -1
  40. package/dist/{ResponsiveButton-Cn6-R7ue.mjs → ResponsiveButton-DZFp78fJ.mjs} +10 -10
  41. package/dist/SearchBox-B2_zLv8-.mjs +42 -0
  42. package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-krIRNwHK.mjs} +1 -1
  43. package/dist/{SingleSegmentDonut-7Uy6VEld.mjs → SingleSegmentDonut-BgbLgwHi.mjs} +6 -6
  44. package/dist/{SpendingData-DPQ96k3x.mjs → SpendingData-BuJ03S9d.mjs} +4 -4
  45. package/dist/{SpendingLegend-6FqtMcBV.mjs → SpendingLegend-CjX-hX2O.mjs} +12 -12
  46. package/dist/{StatusBar-CPfSXe80.mjs → StatusBar-BK_uYHAB.mjs} +6 -6
  47. package/dist/{TabContentContainer-CnMXkVqr.mjs → TabContentContainer-j01JYR_7.mjs} +8 -8
  48. package/dist/TransactionDetails-5M2vfr59.mjs +1379 -0
  49. package/dist/{TransactionStore-DbwAutwC.mjs → TransactionStore-D-Q3BU9Z.mjs} +58 -41
  50. package/dist/{TrendsStore-_mRaFUdf.mjs → TrendsStore-BW9FGQeE.mjs} +37 -37
  51. package/dist/{User-BklmOUSd.mjs → User-wXzDI4M8.mjs} +107 -107
  52. package/dist/{ViewMoreMicroCard-DAkyNRlD.mjs → ViewMoreMicroCard-C0832BMe.mjs} +233 -231
  53. package/dist/{WidgetContainer-CDh9fjpR.mjs → WidgetContainer-BhQ1Kx2z.mjs} +36 -36
  54. package/dist/accounts/index.es.js +94 -94
  55. package/dist/analytics/index.es.js +27 -27
  56. package/dist/budgets/index.es.js +251 -250
  57. package/dist/cashflow/index.es.js +158 -157
  58. package/dist/categories/index.es.js +2 -2
  59. package/dist/common/components/Loader.d.ts +2 -1
  60. package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
  61. package/dist/common/components/barchart/Bar.d.ts +25 -0
  62. package/dist/common/components/barchart/BarChart.d.ts +34 -0
  63. package/dist/common/components/barchart/BarColumn.d.ts +37 -0
  64. package/dist/common/components/barchart/Legend.d.ts +8 -0
  65. package/dist/common/components/barchart/Util.d.ts +42 -0
  66. package/dist/common/components/barchart/index.d.ts +1 -0
  67. package/dist/common/components/charts/linechart/CustomMark.d.ts +1 -1
  68. package/dist/common/components/index.d.ts +1 -0
  69. package/dist/common/index.es.js +660 -395
  70. package/dist/common/utils/Theme.d.ts +3 -1
  71. package/dist/dashboard/index.es.js +21 -21
  72. package/dist/debts/components/DebtsChart.d.ts +2 -1
  73. package/dist/debts/index.es.js +440 -440
  74. package/dist/{exportTransactionsToCSV-BgV_wTLT.mjs → exportTransactionsToCSV-Cz2t0lmA.mjs} +3 -3
  75. package/dist/finstrong/index.es.js +118 -118
  76. package/dist/goals/index.es.js +380 -386
  77. package/dist/help/components/content/BottomImageContent.d.ts +1 -1
  78. package/dist/help/components/content/LeftImageContent.d.ts +1 -1
  79. package/dist/help/components/content/RightImageContent.d.ts +1 -1
  80. package/dist/help/components/content/TopImageContent.d.ts +1 -1
  81. package/dist/help/index.es.js +6 -6
  82. package/dist/investments/index.es.js +279 -278
  83. package/dist/merchants/index.es.js +7 -7
  84. package/dist/microinsights/index.es.js +1 -1
  85. package/dist/networth/components/NetWorthChange.d.ts +1 -3
  86. package/dist/networth/index.es.js +185 -191
  87. package/dist/notifications/index.es.js +30 -30
  88. package/dist/recurringtransactions/index.es.js +85 -85
  89. package/dist/settings/index.es.js +270 -270
  90. package/dist/spending/index.es.js +44 -44
  91. package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +7 -0
  92. package/dist/transactions/index.es.js +169 -168
  93. package/dist/trends/index.es.js +318 -317
  94. package/dist/{useAccountDisplayName-CcIp09Xc.mjs → useAccountDisplayName-CFNF8766.mjs} +1 -1
  95. package/dist/{useCombineEvents-kNzLTWCp.mjs → useCombineEvents-CRwX-qWE.mjs} +2 -2
  96. package/dist/{useScreenSize-B5afALev.mjs → useScreenSize-B6JyS_Lj.mjs} +1 -1
  97. package/package.json +50 -45
  98. package/dist/AccountDetailsContent-adZTkM52.mjs +0 -683
  99. package/dist/AccountListItem-wgmlex-_.mjs +0 -90
  100. package/dist/CurrencyInput-D1cjbdCI.mjs +0 -85
  101. package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
  102. package/dist/Loader-Ckqi9Rx6.mjs +0 -21
  103. package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +0 -45
  104. package/dist/MiniWidgetContainer-CKzf_Ira.mjs +0 -56
  105. package/dist/SearchBox-B7km148n.mjs +0 -39
  106. package/dist/TransactionDetails-Bn0qY5Hw.mjs +0 -1336
@@ -3,43 +3,43 @@ import k from "@mui/material/Box";
3
3
  import p from "@mui/material/Stack";
4
4
  import { useTheme as G, alpha as be } from "@mui/material/styles";
5
5
  import { PieChart as rn, BarPlot as an } from "@mui/x-charts";
6
- import { TrendingUp as dt, ArrowRightAlt as sn, TrendingDown as cn, AccountBalance as pt, ChevronRight as Z, CreditCard as He, MultilineChart as _t, CheckCircle as ln, Cancel as dn, Savings as pn, ContentCopy as _n, Add as ht, Cardiology as hn, Payments as un, CalendarMonth as mn, ExpandMore as gn } from "@mxenabled/mx-icons";
6
+ import { TrendingUp as dt, ArrowRightAlt as sn, TrendingDown as cn, AccountBalance as pt, ChevronRight as Z, MultilineChart as _t, CreditCard as He, CheckCircle as ln, Cancel as dn, Savings as pn, ContentCopy as _n, Add as ht, Cardiology as hn, Payments as un, CalendarMonth as mn, ExpandMore as gn } from "@mxenabled/mx-icons";
7
7
  import { P as M, H3 as V, Text as I, InstitutionLogo as ut, H2 as Le, MerchantLogo as yn, Icon as bn } from "@mxenabled/mxui";
8
- import { g as fn, a as xn, r as et, b as Cn, c as Ne, d as mt, C as ke, e as Me, f as Sn, h as vn, i as wn, j as gt, k as tt, l as kn, m as nt, n as Mn, o as yt, p as Dn, q as bt, s as Oe, t as ft, u as In, v as xt, w as An, A as ne, x as Tn, P as On } from "../FinstrongStore-BGf36b0z.mjs";
9
- import { y as xi, F as Ci } from "../FinstrongStore-BGf36b0z.mjs";
8
+ import { g as fn, a as xn, r as et, b as Sn, c as Ne, d as mt, C as ke, e as Me, f as Cn, h as vn, i as wn, j as gt, k as tt, l as kn, m as nt, n as Mn, o as yt, p as Dn, q as bt, s as Oe, t as ft, u as In, v as xt, w as An, A as ne, x as Tn, P as On } from "../FinstrongStore-BIrX0Xg2.mjs";
9
+ import { y as xi, F as Si } from "../FinstrongStore-BIrX0Xg2.mjs";
10
10
  import * as ot from "d3";
11
11
  import { observer as v } from "mobx-react-lite";
12
12
  import { u as x, b as q, a as je, p as J, z as L, q as Fn, d as xe, m as Ke, f as Rn, j as Ve, h as Ln, i as Pn, n as Bn } from "../hooks-C41HAxM5.mjs";
13
- import { L as ee } from "../Loader-Ckqi9Rx6.mjs";
13
+ import { L as ee } from "../Loader-DUaFpDGv.mjs";
14
14
  import m from "react";
15
15
  import B from "@mui/material/Button";
16
16
  import Y from "@mui/material/Card";
17
- import { L as Ye } from "../LineChart-C1PxNf7P.mjs";
18
- import { C as Ct } from "../ConnectionsDrawer-Dsc04-4Z.mjs";
19
- import { l as re, g as St, A as Ge } from "../ConnectDrawer-DVp54lUH.mjs";
17
+ import { L as Ye } from "../LineChart-bc1D9xBE.mjs";
18
+ import { C as St } from "../ConnectionsDrawer-BFfY3_zB.mjs";
19
+ import { l as re, g as Ct, A as Ge } from "../ConnectDrawer-BIbTqYOH.mjs";
20
20
  import se from "@mui/material/Tab";
21
21
  import Xe from "@mui/material/Tabs";
22
22
  import Fe from "@mui/material/TextField";
23
- import { D as Wn, f as $n, a as zn } from "../Dialog-CDV0kKxj.mjs";
24
- import { u as qe } from "../useScreenSize-B5afALev.mjs";
23
+ import { u as qe } from "../useScreenSize-B6JyS_Lj.mjs";
24
+ import { D as Wn, f as $n, a as zn } from "../Dialog-BPTr3qHE.mjs";
25
25
  import { u as vt } from "../useDimensions-27p2evRx.mjs";
26
26
  import Gn from "@mui/material/Chip";
27
- import { D as oe } from "../Drawer-BF40nbsH.mjs";
27
+ import { D as oe } from "../Drawer-BEtCk82g.mjs";
28
28
  import le from "@mui/material/Divider";
29
29
  import ge from "@mui/material/ListItem";
30
30
  import wt from "@mui/material/ListItemAvatar";
31
31
  import ye from "@mui/material/ListItemText";
32
- import { g as kt } from "../AccountFields-Cl4KHoSj.mjs";
32
+ import { g as kt } from "../AccountFields-QZspYAji.mjs";
33
33
  import Ee from "@mui/material/List";
34
34
  import En from "@mui/material/ListItemButton";
35
35
  import Hn from "@mui/material/ListSubheader";
36
36
  import { f as $ } from "../NumberFormatting-DjTD0t3W.mjs";
37
37
  import { b as K } from "../Localization-2MODESHW.mjs";
38
- import { S as rt, F as Mt, e as Nn, R as Dt } from "../RecurringTransactions-CxcSL1dY.mjs";
39
- import { S as jn } from "../StatusBar-CPfSXe80.mjs";
40
- import { h as It } from "../DateUtil-CDPZw_-m.mjs";
41
- import { T as Kn, s as Vn, h as Yn, S as Xn, c as qn } from "../TransactionDetails-Bn0qY5Hw.mjs";
42
- import { T as ce } from "../TabContentContainer-CnMXkVqr.mjs";
38
+ import { S as rt, F as Mt, e as Nn, R as Dt } from "../RecurringTransactions-BKcYmpv3.mjs";
39
+ import { S as jn } from "../StatusBar-BK_uYHAB.mjs";
40
+ import { h as It } from "../DateUtil-CBdcsyuk.mjs";
41
+ import { T as Kn, s as Vn, h as Yn, S as Xn, c as qn } from "../TransactionDetails-5M2vfr59.mjs";
42
+ import { T as ce } from "../TabContentContainer-j01JYR_7.mjs";
43
43
  import { E as Re } from "../EmptyState-DoxNUae-.mjs";
44
44
  import Un from "@mui/material/useMediaQuery";
45
45
  import { ChartsXAxis as Qn } from "@mui/x-charts/ChartsXAxis";
@@ -48,28 +48,28 @@ import { ResponsiveChartContainer as Jn } from "@mui/x-charts/ResponsiveChartCon
48
48
  import { useSpring as eo, animated as at } from "@react-spring/web";
49
49
  import { startOfMonth as At } from "date-fns/startOfMonth";
50
50
  import { endOfMonth as Tt } from "date-fns/endOfMonth";
51
- import { g as to, S as no, b as oo } from "../SpendingLegend-6FqtMcBV.mjs";
51
+ import { g as to, S as no, b as oo } from "../SpendingLegend-CjX-hX2O.mjs";
52
52
  import { formatISO as ro } from "date-fns/formatISO";
53
53
  import { fromUnixTime as ao } from "date-fns/fromUnixTime";
54
54
  import { startOfToday as it } from "date-fns/startOfToday";
55
55
  import { subDays as io } from "date-fns/subDays";
56
- import { c as so, d as st, S as co, i as lo } from "../ManageIncome-8EsStyIQ.mjs";
56
+ import { c as so, d as st, S as co, i as lo } from "../ManageIncome-NpXHhO1n.mjs";
57
57
  import { LocalizationProvider as po, DatePicker as _o, StaticDatePicker as ho } from "@mui/x-date-pickers";
58
58
  import { AdapterDateFns as Ot } from "@mui/x-date-pickers/AdapterDateFnsV3";
59
- import { R as uo } from "../RecurringSettings-DAncu--R.mjs";
59
+ import { R as uo } from "../RecurringSettings-CqZh1SQa.mjs";
60
60
  import { LocalizationProvider as mo } from "@mui/x-date-pickers/LocalizationProvider";
61
61
  import { format as go } from "date-fns/format";
62
62
  import yo from "@mui/lab/Timeline";
63
63
  import bo, { timelineItemClasses as fo } from "@mui/lab/TimelineItem";
64
64
  import xo from "@mui/lab/TimelineConnector";
65
- import Co from "@mui/lab/TimelineContent";
66
- import So from "@mui/lab/TimelineDot";
65
+ import So from "@mui/lab/TimelineContent";
66
+ import Co from "@mui/lab/TimelineDot";
67
67
  import vo from "@mui/lab/TimelineSeparator";
68
68
  import wo from "@mui/material/Accordion";
69
69
  import ko from "@mui/material/AccordionDetails";
70
70
  import Mo from "@mui/material/AccordionSummary";
71
71
  import Do from "@mui/material/CardHeader";
72
- import { W as Io } from "../WidgetContainer-CDh9fjpR.mjs";
72
+ import { W as Io } from "../WidgetContainer-BhQ1Kx2z.mjs";
73
73
  const Ao = ({
74
74
  dialScoreData: t,
75
75
  dataIndex: o,
@@ -90,18 +90,18 @@ const Ao = ({
90
90
  { offset: "36.67%", color: f.palette.chartMono.chartMono3 },
91
91
  { offset: "59.72%", color: f.palette.chartMono.chartMono4 },
92
92
  { offset: "83.46%", color: f.palette.chartMono.chartMono5 }
93
- ], [C, D] = fn(
93
+ ], [S, D] = fn(
94
94
  t,
95
95
  s,
96
96
  r,
97
97
  o
98
- ), [S, g] = xn(
99
- C,
98
+ ), [C, g] = xn(
99
+ S,
100
100
  D,
101
101
  o,
102
102
  h,
103
103
  u
104
- ), b = ot.arc().innerRadius(_).outerRadius(d).startAngle(C).endAngle(D).padAngle(0.02).cornerRadius(8), P = ot.arc().innerRadius(_).outerRadius(d).startAngle(S).endAngle(g).padAngle(0.02).cornerRadius(8);
104
+ ), b = ot.arc().innerRadius(_).outerRadius(d).startAngle(S).endAngle(D).padAngle(0.02).cornerRadius(8), P = ot.arc().innerRadius(_).outerRadius(d).startAngle(C).endAngle(g).padAngle(0.02).cornerRadius(8);
105
105
  return /* @__PURE__ */ a(z, { children: [
106
106
  /* @__PURE__ */ e(
107
107
  "path",
@@ -140,7 +140,7 @@ const Ao = ({
140
140
  footerRightContent: h,
141
141
  isFinacialStrengthGraph: y = !1
142
142
  }) => {
143
- const f = G(), w = -Math.PI / 1.35, C = Math.PI / 1.35, D = C - w, S = D / (i - s), g = (o - s) * S, b = w + g + 0.02, P = n !== "SM" ? 0.1 : 0.12, F = t, U = t * (1 - P), W = F * 2, O = W / 2, E = W / 2, pe = (U + F) / 2, Se = o !== 25 && o !== 50 && o !== 75 && o !== 100 ? 0 : 0.12, [te, j] = Cn(pe, b, Se), ve = o / 25, H = {
143
+ const f = G(), w = -Math.PI / 1.35, S = Math.PI / 1.35, D = S - w, C = D / (i - s), g = (o - s) * C, b = w + g + 0.02, P = n !== "SM" ? 0.1 : 0.12, F = t, U = t * (1 - P), W = F * 2, O = W / 2, E = W / 2, pe = (U + F) / 2, Ce = o !== 25 && o !== 50 && o !== 75 && o !== 100 ? 0 : 0.12, [te, j] = Sn(pe, b, Ce), ve = o / 25, H = {
144
144
  L: { markerSize: 12, healthScoreFontSize: 64 },
145
145
  M: { markerSize: 8, healthScoreFontSize: 48 },
146
146
  SM: { markerSize: 3, healthScoreFontSize: 14 }
@@ -174,7 +174,7 @@ const Ao = ({
174
174
  outerRadius: F,
175
175
  startAngle: Math.round(et(w)),
176
176
  // Use Math.degrees to convert
177
- endAngle: Math.round(et(C))
177
+ endAngle: Math.round(et(S))
178
178
  // Use Math.degrees to convert
179
179
  }
180
180
  ],
@@ -258,7 +258,7 @@ const Ao = ({
258
258
  fontSize: H[n].healthScoreFontSize,
259
259
  lineHeight: n !== "SM" ? "48px" : "100%"
260
260
  },
261
- variant: "h1",
261
+ variant: "H1",
262
262
  children: o
263
263
  }
264
264
  ),
@@ -490,7 +490,7 @@ const Ao = ({
490
490
  }
491
491
  ),
492
492
  t === "connectionsDrawer" && /* @__PURE__ */ e(
493
- Ct,
493
+ St,
494
494
  {
495
495
  onClose: () => d(!1),
496
496
  showConnectionsWidget: _,
@@ -581,7 +581,7 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
581
581
  title: ze.credit_over_time_title,
582
582
  valueKey: "credit_score"
583
583
  }
584
- }[t], h = Sn(r, u.valueKey), y = r.map((F) => F[u.valueKey]), f = Math.max(...y), w = Math.min(...y), C = () => f >= 1e6 ? { formatter: "0.000a", leftMargin: 55 } : f >= 1e3 ? { formatter: "0a", leftMargin: 35 } : { formatter: "0a", leftMargin: 30 }, { formatter: D, leftMargin: S } = C(), g = u.title, b = t === "creditOverTime";
584
+ }[t], h = Cn(r, u.valueKey), y = r.map((F) => F[u.valueKey]), f = Math.max(...y), w = Math.min(...y), S = () => f >= 1e6 ? { formatter: "0.000a", leftMargin: 55 } : f >= 1e3 ? { formatter: "0a", leftMargin: 35 } : { formatter: "0a", leftMargin: 30 }, { formatter: D, leftMargin: C } = S(), g = u.title, b = t === "creditOverTime";
585
585
  let P;
586
586
  if (b) {
587
587
  const { color: F } = mt(
@@ -607,7 +607,7 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
607
607
  labelFontColor: b ? "text.primary" : "",
608
608
  labelFontSize: b ? 13 : void 0,
609
609
  labels: [i.key_indicators_label],
610
- margin: { left: S, top: b ? 25 : 15, right: 20 },
610
+ margin: { left: C, top: b ? 25 : 15, right: 20 },
611
611
  markStyles: (F) => b ? {
612
612
  markLabelStyles: {
613
613
  marginLeft: 16,
@@ -778,9 +778,9 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
778
778
  sx: { bgcolor: "background.paper" },
779
779
  children: [
780
780
  d.map((h, y) => {
781
- const { firstValue: f } = kt(h, s), w = St(h, {
781
+ const { firstValue: f } = kt(h, s), w = Ct(h, {
782
782
  allowNickname: r?.show_account_nicknames_in_master
783
- }), C = /* @__PURE__ */ a(z, { children: [
783
+ }), S = /* @__PURE__ */ a(z, { children: [
784
784
  /* @__PURE__ */ e(wt, { children: /* @__PURE__ */ e(ut, { alt: "MX", institutionGuid: h.institution_guid ?? "" }) }),
785
785
  /* @__PURE__ */ e(
786
786
  ye,
@@ -792,7 +792,7 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
792
792
  o && /* @__PURE__ */ e(M, { bold: !0, variant: "body2", children: $(f ?? 0, "0,0.00") })
793
793
  ] });
794
794
  return /* @__PURE__ */ a(m.Fragment, { children: [
795
- /* @__PURE__ */ e(ge, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e(En, { onClick: () => c(h), children: C }) : C }),
795
+ /* @__PURE__ */ e(ge, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e(En, { onClick: () => c(h), children: S }) : S }),
796
796
  y !== d.length - 1 && /* @__PURE__ */ e(le, { variant: "inset" })
797
797
  ] }, h.guid);
798
798
  }),
@@ -805,31 +805,31 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
805
805
  }, Bt = v(zo), Go = ({ loadAccounts: t, loadMoreLabel: o }) => {
806
806
  const n = G(), { config: r } = je(), { connect: s, finstrong: i } = x(), { accounts: c } = x(), { selectedAccounts: l } = q(), [_, d] = m.useState(!1), [u, h] = m.useState(!1), y = m.useMemo(
807
807
  () => l.filter(
808
- (C) => t ? t.includes(C.account_type) : !0
808
+ (S) => t ? t.includes(S.account_type) : !0
809
809
  ),
810
810
  [l, t]
811
- ), f = m.useMemo(() => y.slice(0, 3), [y]), w = (C) => {
812
- const { firstValue: D } = kt(C, c);
811
+ ), f = m.useMemo(() => y.slice(0, 3), [y]), w = (S) => {
812
+ const { firstValue: D } = kt(S, c);
813
813
  return D;
814
814
  };
815
815
  return y.length >= 1 ? /* @__PURE__ */ a(z, { children: [
816
- /* @__PURE__ */ e(k, { sx: { border: `1px solid ${n.palette.divider}`, borderRadius: 2 }, children: f.map((C, D) => /* @__PURE__ */ a(m.Fragment, { children: [
816
+ /* @__PURE__ */ e(k, { sx: { border: `1px solid ${n.palette.divider}`, borderRadius: 2 }, children: f.map((S, D) => /* @__PURE__ */ a(m.Fragment, { children: [
817
817
  /* @__PURE__ */ a(ge, { sx: { px: 24 }, children: [
818
- /* @__PURE__ */ e(wt, { children: /* @__PURE__ */ e(ut, { alt: "MX", institutionGuid: C.institution_guid ?? "" }) }),
818
+ /* @__PURE__ */ e(wt, { children: /* @__PURE__ */ e(ut, { alt: "MX", institutionGuid: S.institution_guid ?? "" }) }),
819
819
  /* @__PURE__ */ e(
820
820
  ye,
821
821
  {
822
- primary: `${St(C, {
822
+ primary: `${Ct(S, {
823
823
  allowNickname: r?.show_account_nicknames_in_master
824
824
  })}
825
- ${C.account_number ? ` *${C.account_number}` : ""}`,
825
+ ${S.account_number ? ` *${S.account_number}` : ""}`,
826
826
  primaryTypographyProps: { noWrap: !0, pr: 4, variant: "body1" }
827
827
  }
828
828
  ),
829
- /* @__PURE__ */ e(M, { bold: !0, variant: "body2", children: $(w(C), "0,0.00") })
829
+ /* @__PURE__ */ e(M, { bold: !0, variant: "body2", children: $(w(S), "0,0.00") })
830
830
  ] }),
831
831
  D < f.length - 1 && /* @__PURE__ */ e(le, { variant: "inset" })
832
- ] }, C.guid)) }),
832
+ ] }, S.guid)) }),
833
833
  y.length > 3 && /* @__PURE__ */ a(z, { children: [
834
834
  /* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(
835
835
  B,
@@ -867,7 +867,7 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
867
867
  }
868
868
  )
869
869
  ] });
870
- }, Wt = v(Go), Ce = ({ balance: t, title: o, sx: n }) => /* @__PURE__ */ a(
870
+ }, Wt = v(Go), Se = ({ balance: t, title: o, sx: n }) => /* @__PURE__ */ a(
871
871
  p,
872
872
  {
873
873
  sx: {
@@ -903,7 +903,7 @@ const Eo = ({ total: t }) => {
903
903
  { id: De.Days, label: o.maintain_emergency_savings_days }
904
904
  ], i = Math.ceil((t + 1) / 1e3) * 1e3, [c, l] = m.useState(0), [_, d] = m.useState(tt(t)), [u, h] = m.useState(
905
905
  tt(t)
906
- ), [y, f] = m.useState(i), [w, C] = m.useState(kn(t)), [D, S] = m.useState(De.Months);
906
+ ), [y, f] = m.useState(i), [w, S] = m.useState(kn(t)), [D, C] = m.useState(De.Months);
907
907
  m.useEffect(() => {
908
908
  l(
909
909
  nt({
@@ -928,7 +928,7 @@ const Eo = ({ total: t }) => {
928
928
  };
929
929
  return /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e("form", { onSubmit: g, children: /* @__PURE__ */ a(p, { sx: { gap: 24, pb: 24, pt: 16, px: 16 }, children: [
930
930
  /* @__PURE__ */ e(
931
- Ce,
931
+ Se,
932
932
  {
933
933
  balance: /* @__PURE__ */ a(p, { sx: { flexDirection: "row", height: 32 }, children: [
934
934
  /* @__PURE__ */ e(I, { variant: "h2", children: $(c, "0,0") }),
@@ -981,7 +981,7 @@ const Eo = ({ total: t }) => {
981
981
  },
982
982
  label: o.maintain_emergency_savings_meet_your_goal_within,
983
983
  onChange: (b) => {
984
- isNaN(Number(b.target.value)) || C(Number(b.target.value));
984
+ isNaN(Number(b.target.value)) || S(Number(b.target.value));
985
985
  },
986
986
  sx: {
987
987
  "& .MuiInputBase-root": {
@@ -1007,7 +1007,7 @@ const Eo = ({ total: t }) => {
1007
1007
  }
1008
1008
  }
1009
1009
  },
1010
- children: /* @__PURE__ */ e(rt, { label: "", onChange: S, options: s, value: D })
1010
+ children: /* @__PURE__ */ e(rt, { label: "", onChange: C, options: s, value: D })
1011
1011
  }
1012
1012
  )
1013
1013
  ] }),
@@ -1020,7 +1020,7 @@ const Eo = ({ total: t }) => {
1020
1020
  );
1021
1021
  return /* @__PURE__ */ a(p, { sx: { gap: 24 }, children: [
1022
1022
  /* @__PURE__ */ e(Y, { sx: { bgcolor: "background.paper", p: 16 }, children: /* @__PURE__ */ a(p, { sx: { gap: 16 }, children: [
1023
- /* @__PURE__ */ e(Ce, { balance: s, title: o.maintain_emergency_savings_your_savings }),
1023
+ /* @__PURE__ */ e(Se, { balance: s, title: o.maintain_emergency_savings_your_savings }),
1024
1024
  t.length ? /* @__PURE__ */ e(
1025
1025
  Wt,
1026
1026
  {
@@ -1137,9 +1137,9 @@ const Eo = ({ total: t }) => {
1137
1137
  formatDate: r = It,
1138
1138
  secondaryIcon: s
1139
1139
  }) => {
1140
- const i = G(), { connect: c, finstrong: l, categories: _ } = x(), [d, u] = m.useState(!1), [h, y] = m.useState(!1), { getCategoryName: f } = Ke(), w = 3, C = t.length > w, D = t.length - w;
1141
- let S = t;
1142
- return C && (S = t.map((g) => ({
1140
+ const i = G(), { connect: c, finstrong: l, categories: _ } = x(), [d, u] = m.useState(!1), [h, y] = m.useState(!1), { getCategoryName: f } = Ke(), w = 3, S = t.length > w, D = t.length - w;
1141
+ let C = t;
1142
+ return S && (C = t.map((g) => ({
1143
1143
  ...g,
1144
1144
  category: _.default_categories[g.top_level_category_guid]?.replace(
1145
1145
  /&amp;/g,
@@ -1216,7 +1216,7 @@ const Eo = ({ total: t }) => {
1216
1216
  },
1217
1217
  b
1218
1218
  )) }),
1219
- C && /* @__PURE__ */ a(z, { children: [
1219
+ S && /* @__PURE__ */ a(z, { children: [
1220
1220
  /* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(
1221
1221
  B,
1222
1222
  {
@@ -1237,7 +1237,7 @@ const Eo = ({ total: t }) => {
1237
1237
  isOpen: d,
1238
1238
  onClose: () => u(!1),
1239
1239
  title: l.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_transactions,
1240
- children: /* @__PURE__ */ e(Kn, { transaction: S })
1240
+ children: /* @__PURE__ */ e(Kn, { transaction: C })
1241
1241
  }
1242
1242
  )
1243
1243
  ] })
@@ -1321,7 +1321,7 @@ const Eo = ({ total: t }) => {
1321
1321
  const { savingsAndCheckingAccountsBalance: t } = xe(), { finstrong: o } = x();
1322
1322
  return /* @__PURE__ */ a(p, { gap: 16, sx: { p: 16 }, children: [
1323
1323
  /* @__PURE__ */ e(
1324
- Ce,
1324
+ Se,
1325
1325
  {
1326
1326
  balance: t,
1327
1327
  title: o.key_indicators_save.drawer_available_balance
@@ -1352,7 +1352,7 @@ const Eo = ({ total: t }) => {
1352
1352
  }, [r.spend, r.debtSpend]);
1353
1353
  return o ? /* @__PURE__ */ a(p, { gap: 16, sx: { p: 16 }, children: [
1354
1354
  /* @__PURE__ */ e(
1355
- Ce,
1355
+ Se,
1356
1356
  {
1357
1357
  balance: n.ninety_day_spend / 90,
1358
1358
  title: t.key_indicators_save.drawer_daily_spend
@@ -1432,7 +1432,7 @@ const Eo = ({ total: t }) => {
1432
1432
  }
1433
1433
  }
1434
1434
  ),
1435
- /* @__PURE__ */ e(I, { variant: "caption", children: d })
1435
+ /* @__PURE__ */ e(I, { variant: "XSmall", children: d })
1436
1436
  ]
1437
1437
  },
1438
1438
  d
@@ -1494,7 +1494,7 @@ const Eo = ({ total: t }) => {
1494
1494
  }
1495
1495
  }
1496
1496
  ),
1497
- /* @__PURE__ */ e(I, { sx: { color: "text.primary" }, variant: "caption", children: "30%" })
1497
+ /* @__PURE__ */ e(I, { sx: { color: "text.primary" }, variant: "XSmall", children: "30%" })
1498
1498
  ]
1499
1499
  }
1500
1500
  )
@@ -1510,7 +1510,7 @@ const Eo = ({ total: t }) => {
1510
1510
  justifyContent: "center",
1511
1511
  marginLeft: "auto"
1512
1512
  },
1513
- children: /* @__PURE__ */ e(I, { variant: "body2", children: t.debt_to_income_ratio ? K(
1513
+ children: /* @__PURE__ */ e(I, { variant: "Small", children: t.debt_to_income_ratio ? K(
1514
1514
  o.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_sticky_description,
1515
1515
  n
1516
1516
  ) : "-" })
@@ -1533,7 +1533,7 @@ const Eo = ({ total: t }) => {
1533
1533
  const { healthScore: t, allTransactions: o } = L(), { connect: n, finstrong: r } = x(), [s, i] = m.useState(!1);
1534
1534
  return /* @__PURE__ */ a(p, { gap: 16, sx: { p: 16 }, children: [
1535
1535
  /* @__PURE__ */ e(
1536
- Ce,
1536
+ Se,
1537
1537
  {
1538
1538
  balance: t.ninety_day_income,
1539
1539
  sx: { flexDirection: "column-reverse" },
@@ -1566,7 +1566,7 @@ const Eo = ({ total: t }) => {
1566
1566
  const { allTransactions: t, healthScore: o } = L(), { connect: n, finstrong: r } = x(), [s, i] = m.useState(!1);
1567
1567
  return /* @__PURE__ */ a(p, { gap: 16, sx: { p: 16 }, children: [
1568
1568
  /* @__PURE__ */ e(
1569
- Ce,
1569
+ Se,
1570
1570
  {
1571
1571
  balance: o.ninety_day_debt_spend,
1572
1572
  sx: { flexDirection: "column-reverse" },
@@ -1680,10 +1680,10 @@ const Eo = ({ total: t }) => {
1680
1680
  ), y = {
1681
1681
  dataKey: "label",
1682
1682
  scaleType: "band"
1683
- }, f = Math.max(...h.map((g) => Math.max(g.main, g.comparison))), C = Math.min(...h.map((g) => Math.min(g.main, g.comparison))) === 0 && f === 0 ? 100 : Math.ceil(f * 1.2 / 1e3) * 1e3, D = C / 3, S = {
1683
+ }, f = Math.max(...h.map((g) => Math.max(g.main, g.comparison))), S = Math.min(...h.map((g) => Math.min(g.main, g.comparison))) === 0 && f === 0 ? 100 : Math.ceil(f * 1.2 / 1e3) * 1e3, D = S / 3, C = {
1684
1684
  scaleType: "linear",
1685
1685
  min: 0,
1686
- max: C,
1686
+ max: S,
1687
1687
  tickNumber: 4,
1688
1688
  tickMinStep: D,
1689
1689
  valueFormatter: (g) => g === 0 ? "$0" : $(g, "0.[0]a")
@@ -1779,7 +1779,7 @@ const Eo = ({ total: t }) => {
1779
1779
  { dataKey: "comparison", type: "bar" }
1780
1780
  ],
1781
1781
  xAxis: [y],
1782
- yAxis: [S],
1782
+ yAxis: [C],
1783
1783
  children: [
1784
1784
  /* @__PURE__ */ e(
1785
1785
  an,
@@ -2007,12 +2007,12 @@ const Eo = ({ total: t }) => {
2007
2007
  const f = m.useMemo(
2008
2008
  () => to(o, _, u, n),
2009
2009
  [o, n]
2010
- ), w = (S) => {
2011
- y(h === S ? "" : S);
2012
- }, { totalSpending: C, totalIncome: D } = m.useMemo(() => s?.reduce(
2013
- (S, { standard_spend: g = 0, income: b = 0 }) => ({
2014
- totalSpending: S.totalSpending + g,
2015
- totalIncome: S.totalIncome + b
2010
+ ), w = (C) => {
2011
+ y(h === C ? "" : C);
2012
+ }, { totalSpending: S, totalIncome: D } = m.useMemo(() => s?.reduce(
2013
+ (C, { standard_spend: g = 0, income: b = 0 }) => ({
2014
+ totalSpending: C.totalSpending + g,
2015
+ totalIncome: C.totalIncome + b
2016
2016
  }),
2017
2017
  { totalSpending: 0, totalIncome: 0 }
2018
2018
  ), [s]);
@@ -2030,7 +2030,7 @@ const Eo = ({ total: t }) => {
2030
2030
  onClick: () => i("trends")(),
2031
2031
  title: l.key_indicators_spend.spend_less_than_you_make_drawer.trends,
2032
2032
  totalComparison: $(D, "0,0.00"),
2033
- totalMain: $(C, "0,0.00")
2033
+ totalMain: $(S, "0,0.00")
2034
2034
  }
2035
2035
  ) : /* @__PURE__ */ e(
2036
2036
  Re,
@@ -2207,7 +2207,7 @@ const Eo = ({ total: t }) => {
2207
2207
  children: /* @__PURE__ */ e(p, { sx: { gap: 16 }, children: i.content })
2208
2208
  }
2209
2209
  );
2210
- }, Cr = v(xr), fe = ({
2210
+ }, Sr = v(xr), fe = ({
2211
2211
  drawerFor: t,
2212
2212
  title: o,
2213
2213
  description: n,
@@ -2249,7 +2249,7 @@ const Eo = ({ total: t }) => {
2249
2249
  }
2250
2250
  ),
2251
2251
  /* @__PURE__ */ e(
2252
- Cr,
2252
+ Sr,
2253
2253
  {
2254
2254
  drawerFor: t,
2255
2255
  isOpen: i,
@@ -2257,7 +2257,7 @@ const Eo = ({ total: t }) => {
2257
2257
  }
2258
2258
  )
2259
2259
  ] });
2260
- }, Sr = () => {
2260
+ }, Cr = () => {
2261
2261
  const { finstrong: t } = x(), { key_indicators_spend: o } = t, { healthScore: n } = L(), r = (c) => {
2262
2262
  const l = xt(c), _ = {
2263
2263
  GOOD: o.ratio_good_description,
@@ -2302,7 +2302,7 @@ const Eo = ({ total: t }) => {
2302
2302
  }
2303
2303
  )
2304
2304
  ] });
2305
- }, vr = v(Sr), wr = () => {
2305
+ }, vr = v(Cr), wr = () => {
2306
2306
  const { healthScore: t } = L(), { finstrong: o } = x(), { key_indicators_save: n } = o, r = (l) => {
2307
2307
  const _ = bt(l), d = {
2308
2308
  GOOD: n.days_of_cash_good_description,
@@ -2629,9 +2629,9 @@ const Eo = ({ total: t }) => {
2629
2629
  step: T.ConnectAccounts,
2630
2630
  type: "main"
2631
2631
  }, zr = ({ isOpen: t, onClose: o }) => {
2632
- const { visibleAccounts: n } = xe(), { calculateHealthScore: r } = L(), { finstrong: s } = x(), { setSelectedAccounts: i } = q(), { addRepeatingTransaction: c, setDateRange: l } = Ve(), { filter: _, setFilter: d, transactions: u } = Ln(), { user: h, userProfile: y, updateUser: f, updateUserProfile: w } = J(), [C, D] = m.useState(h.credit_score || 0), [S, g] = m.useState(
2632
+ const { visibleAccounts: n } = xe(), { calculateHealthScore: r } = L(), { finstrong: s } = x(), { setSelectedAccounts: i } = q(), { addRepeatingTransaction: c, setDateRange: l } = Ve(), { filter: _, setFilter: d, transactions: u } = Ln(), { user: h, userProfile: y, updateUser: f, updateUserProfile: w } = J(), [S, D] = m.useState(h.credit_score || 0), [C, g] = m.useState(
2633
2633
  ct
2634
- ), [b, P] = m.useState(1), [F, U] = m.useState(Mt.EveryMonth), [W, O] = m.useState([]), [E, pe] = m.useState(!1), [Se, te] = m.useState(!1), [j, ve] = m.useState(h.birthday), [H, we] = m.useState(15), [N, ae] = m.useState("");
2634
+ ), [b, P] = m.useState(1), [F, U] = m.useState(Mt.EveryMonth), [W, O] = m.useState([]), [E, pe] = m.useState(!1), [Ce, te] = m.useState(!1), [j, ve] = m.useState(h.birthday), [H, we] = m.useState(15), [N, ae] = m.useState("");
2635
2635
  m.useEffect(() => {
2636
2636
  l({ start: At(it()), end: Tt(it()) });
2637
2637
  }, []), m.useEffect(() => {
@@ -2651,12 +2651,12 @@ const Eo = ({ total: t }) => {
2651
2651
  [T.ConnectAccounts]: !0,
2652
2652
  [T.MonthlyIncome]: !!N,
2653
2653
  [T.Birthday]: !!h.birthday || !!j,
2654
- [T.CreditScore]: !!h.credit_score || !!C
2655
- })[S.step], [C, S, j, N, h]), X = n.length > 0, Gt = m.useMemo(() => {
2656
- const { step: A } = S;
2654
+ [T.CreditScore]: !!h.credit_score || !!S
2655
+ })[C.step], [S, C, j, N, h]), X = n.length > 0, Gt = m.useMemo(() => {
2656
+ const { step: A } = C;
2657
2657
  let R = 0;
2658
2658
  return A >= T.MonthlyIncome && X && R++, A >= T.Birthday && W.length && R++, A >= T.CreditScore && (h.birthday || h.credit_score) && R++, R;
2659
- }, [S.step, X, W.length, h.birthday, h.credit_score]), Et = (A) => {
2659
+ }, [C.step, X, W.length, h.birthday, h.credit_score]), Et = (A) => {
2660
2660
  d({
2661
2661
  ..._,
2662
2662
  custom: (R) => A ? lo(R, A) : st(R)
@@ -2710,7 +2710,7 @@ const Eo = ({ total: t }) => {
2710
2710
  secondaryText: s.onboarding_birthday_secondary
2711
2711
  },
2712
2712
  [T.CreditScore]: {
2713
- main: /* @__PURE__ */ e(Wr, { creditScore: C, setCreditScore: D }),
2713
+ main: /* @__PURE__ */ e(Wr, { creditScore: S, setCreditScore: D }),
2714
2714
  mainActionContent: s.onboarding_next,
2715
2715
  primaryText: s.onboarding_credit_score_primary,
2716
2716
  secondaryText: s.onboarding_credit_score_secondary
@@ -2720,19 +2720,19 @@ const Eo = ({ total: t }) => {
2720
2720
  }, Ze = async () => {
2721
2721
  pe(!0), await Vt(W), await r(), await w({ ...y, has_completed_finstrong_onboarding: !0 }), Qe();
2722
2722
  }, Nt = () => {
2723
- if (S.step === T.CreditScore) {
2723
+ if (C.step === T.CreditScore) {
2724
2724
  Ze();
2725
2725
  return;
2726
2726
  }
2727
- g({ step: S.step + 1, type: "main" });
2727
+ g({ step: C.step + 1, type: "main" });
2728
2728
  }, jt = () => {
2729
- const { step: A } = S, R = A + 1;
2729
+ const { step: A } = C, R = A + 1;
2730
2730
  switch (A) {
2731
2731
  case T.Birthday:
2732
2732
  j && j !== h.birthday && f({ ...h, birthday: j });
2733
2733
  break;
2734
2734
  case T.CreditScore:
2735
- C && C !== h.credit_score && f({ ...h, credit_score: C }), Ze();
2735
+ S && S !== h.credit_score && f({ ...h, credit_score: S }), Ze();
2736
2736
  return;
2737
2737
  case T.MonthlyIncome:
2738
2738
  N && W.findIndex(({ guid: me }) => me === N) === -1 && O((me) => [
@@ -2749,7 +2749,7 @@ const Eo = ({ total: t }) => {
2749
2749
  }
2750
2750
  R in T && g({ step: R, type: "main" });
2751
2751
  }, Kt = () => {
2752
- const { step: A, type: R } = S;
2752
+ const { step: A, type: R } = C;
2753
2753
  if (R === "detail") {
2754
2754
  g({ step: A, type: "main" });
2755
2755
  return;
@@ -2789,7 +2789,7 @@ const Eo = ({ total: t }) => {
2789
2789
  };
2790
2790
  await c(on, R);
2791
2791
  }
2792
- }, ue = Ht[S.step], Ie = S.step === T.ConnectAccounts, Yt = {
2792
+ }, ue = Ht[C.step], Ie = C.step === T.ConnectAccounts, Yt = {
2793
2793
  fullWidth: !0,
2794
2794
  ...Ie && !X && { startIcon: /* @__PURE__ */ e(ht, {}) }
2795
2795
  }, Xt = !Ie || Ie && !X;
@@ -2825,11 +2825,11 @@ const Eo = ({ total: t }) => {
2825
2825
  value: Gt
2826
2826
  }
2827
2827
  ),
2828
- S.type === "main" && /* @__PURE__ */ a(k, { sx: { bgcolor: "background.default" }, children: [
2828
+ C.type === "main" && /* @__PURE__ */ a(k, { sx: { bgcolor: "background.default" }, children: [
2829
2829
  ue.main,
2830
2830
  Xt && /* @__PURE__ */ e(p, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e(B, { fullWidth: !0, onClick: Nt, children: s.onboarding_do_it_later }) })
2831
2831
  ] }),
2832
- S.type === "detail" && ue.detail
2832
+ C.type === "detail" && ue.detail
2833
2833
  ] })
2834
2834
  ] })
2835
2835
  }
@@ -2838,7 +2838,7 @@ const Eo = ({ total: t }) => {
2838
2838
  re,
2839
2839
  {
2840
2840
  onClose: () => te(!1),
2841
- showConnectWidget: Se,
2841
+ showConnectWidget: Ce,
2842
2842
  title: s.connect_more_accounts_button
2843
2843
  }
2844
2844
  )
@@ -2925,8 +2925,8 @@ const Eo = ({ total: t }) => {
2925
2925
  common: s,
2926
2926
  finstrong: i
2927
2927
  } = x(), { repeatingTransactions: c } = Ve(), { user: l } = J(), _ = c.reduce((f, w) => {
2928
- const { repeating_transaction_type: C, transactions: D, recurrence_type: S, amount: g } = w;
2929
- return C === Dt.Income && (D.length > 0 || S === Mt.EveryYear) ? f + g : f;
2928
+ const { repeating_transaction_type: S, transactions: D, recurrence_type: C, amount: g } = w;
2929
+ return S === Dt.Income && (D.length > 0 || C === Mt.EveryYear) ? f + g : f;
2930
2930
  }, 0), [d, u] = m.useState(null), y = [
2931
2931
  {
2932
2932
  dynamicCopy: i.add_profile_item,
@@ -3003,7 +3003,7 @@ const Eo = ({ total: t }) => {
3003
3003
  /* @__PURE__ */ e(Nr, { isOpen: d === ne.DateOfBirth, onClose: () => u(null) }),
3004
3004
  /* @__PURE__ */ e(Lt, { isOpen: d === ne.CreditScore, onClose: () => u(null) }),
3005
3005
  /* @__PURE__ */ e(
3006
- Ct,
3006
+ St,
3007
3007
  {
3008
3008
  onClose: () => u(null),
3009
3009
  showConnectionsWidget: d === ne.Connections,
@@ -3016,10 +3016,10 @@ const Eo = ({ total: t }) => {
3016
3016
  islast: o = !1
3017
3017
  }) => /* @__PURE__ */ a(bo, { sx: { minHeight: 0 }, children: [
3018
3018
  /* @__PURE__ */ a(vo, { children: [
3019
- /* @__PURE__ */ e(So, { sx: { bgcolor: "divider", borderWidth: 1, p: 3 } }),
3019
+ /* @__PURE__ */ e(Co, { sx: { bgcolor: "divider", borderWidth: 1, p: 3 } }),
3020
3020
  !o && /* @__PURE__ */ e(xo, { sx: { bgcolor: "divider", width: 0.1 } })
3021
3021
  ] }),
3022
- /* @__PURE__ */ e(Co, { sx: { pb: 16, pl: 12, pr: 0, pt: 5 }, children: /* @__PURE__ */ e(M, { fontSize: 13, fontWeight: 400, variant: "subtitle2", children: t }) })
3022
+ /* @__PURE__ */ e(So, { sx: { pb: 16, pl: 12, pr: 0, pt: 5 }, children: /* @__PURE__ */ e(M, { fontSize: 13, fontWeight: 400, variant: "subtitle2", children: t }) })
3023
3023
  ] }), Vr = ({ report: t }) => {
3024
3024
  const { finstrong: o } = x(), { score_history_drawer_timeline: n } = o, {
3025
3025
  health_score_point_difference: r,
@@ -3030,9 +3030,9 @@ const Eo = ({ total: t }) => {
3030
3030
  older_health_score: _,
3031
3031
  newer_health_score: d,
3032
3032
  newer_score_calculated_at: u
3033
- } = t, h = go(new Date(u), "MMM d"), y = () => r === 0 ? "info.light" : r > 0 ? "success.light" : "error.light", f = () => r === 0 ? K(n.stayed_at, _) : r > 0 ? n.less_spending : n.more_spending, w = () => {
3033
+ } = t, h = go(new Date(u), "MMM d"), y = () => r === 0 ? "info.lighter" : r > 0 ? "success.lighter" : "error.lighter", f = () => r === 0 ? K(n.stayed_at, _) : r > 0 ? n.less_spending : n.more_spending, w = () => {
3034
3034
  if (r === 0) return null;
3035
- const C = r > 0 ? n.up_from : n.down_from, D = K(C, _, d);
3035
+ const S = r > 0 ? n.up_from : n.down_from, D = K(S, _, d);
3036
3036
  return /* @__PURE__ */ a(z, { children: [
3037
3037
  /* @__PURE__ */ e(
3038
3038
  bn,
@@ -3072,11 +3072,11 @@ const Eo = ({ total: t }) => {
3072
3072
  justifyContent: "center",
3073
3073
  width: 48
3074
3074
  },
3075
- children: /* @__PURE__ */ e(M, { sx: { fontWeight: 600 }, variant: "body1", children: r > 0 ? `+${r}` : r })
3075
+ children: /* @__PURE__ */ e(M, { sx: { fontWeight: 600 }, variant: "Body", children: r > 0 ? `+${r}` : r })
3076
3076
  }
3077
3077
  ),
3078
3078
  /* @__PURE__ */ a(p, { sx: { gap: 2, width: "80%" }, children: [
3079
- /* @__PURE__ */ e(I, { fontWeight: 600, variant: "body1", children: f() }),
3079
+ /* @__PURE__ */ e(I, { fontWeight: 600, variant: "Body", children: f() }),
3080
3080
  /* @__PURE__ */ a(I, { sx: { color: "text.secondary" }, variant: "subtitle2", children: [
3081
3081
  h,
3082
3082
  " ",
@@ -3178,7 +3178,7 @@ const Eo = ({ total: t }) => {
3178
3178
  ),
3179
3179
  /* @__PURE__ */ a(p, { sx: { gap: 4 }, children: [
3180
3180
  /* @__PURE__ */ e(M, { variant: "h3", children: u.status }),
3181
- /* @__PURE__ */ e(M, { variant: "caption", children: u.description })
3181
+ /* @__PURE__ */ e(M, { variant: "XSmall", children: u.description })
3182
3182
  ] })
3183
3183
  ] })
3184
3184
  }
@@ -3433,20 +3433,20 @@ const Eo = ({ total: t }) => {
3433
3433
  healthScore: y,
3434
3434
  loadAugmentedChartData: f,
3435
3435
  loadMonthlySummaries: w,
3436
- loadPeerScore: C,
3436
+ loadPeerScore: S,
3437
3437
  peerScore: D
3438
- } = d, { finstrong: S, connect: g } = x(), { isCopyLoaded: b, isInitialized: P } = q(), { onLoad: F } = Bn(), { loadRepeatingTransactions: U } = Ve(), { isMobile: W } = qe(), O = G(), { userProfile: E } = J(), [pe, Se] = m.useState(!1), [te, j] = m.useState(!1), [ve, H] = m.useState(!1), [we, N] = m.useState(!1);
3438
+ } = d, { finstrong: C, connect: g } = x(), { isCopyLoaded: b, isInitialized: P } = q(), { onLoad: F } = Bn(), { loadRepeatingTransactions: U } = Ve(), { isMobile: W } = qe(), O = G(), { userProfile: E } = J(), [pe, Ce] = m.useState(!1), [te, j] = m.useState(!1), [ve, H] = m.useState(!1), [we, N] = m.useState(!1);
3439
3439
  if (m.useEffect(() => {
3440
3440
  l(O);
3441
3441
  }, []), m.useEffect(() => {
3442
3442
  n && (d.handleFinstrongWidgetPrimaryCtaClick = n);
3443
3443
  }, [n, d]), m.useEffect(() => {
3444
- P && (w().finally(), C().finally(), h().finally(), f().finally(() => {
3444
+ P && (w().finally(), S().finally(), h().finally(), f().finally(() => {
3445
3445
  F?.("FinstrongWidget");
3446
3446
  }));
3447
3447
  }, [P]), m.useEffect(() => {
3448
3448
  P && (_(r, s.start, s.end).finally(() => {
3449
- Se(!0);
3449
+ Ce(!0);
3450
3450
  }), i || (c(), U().finally()));
3451
3451
  }, [s, i, P, r]), !b || !P || !pe) return /* @__PURE__ */ e(ee, {});
3452
3452
  const ae = () => j(!0), _e = Math.round(D?.average_health_score?.average_health_score || 0);
@@ -3456,14 +3456,14 @@ const Eo = ({ total: t }) => {
3456
3456
  actions: [
3457
3457
  {
3458
3458
  iconName: "person",
3459
- label: S.profile,
3459
+ label: C.profile,
3460
3460
  onClick: ae
3461
3461
  }
3462
3462
  ],
3463
3463
  hasDivider: !0,
3464
3464
  onBackClick: t,
3465
3465
  sx: o,
3466
- title: S.title,
3466
+ title: C.title,
3467
3467
  children: [
3468
3468
  E.has_completed_finstrong_onboarding ? /* @__PURE__ */ a(
3469
3469
  p,
@@ -3482,15 +3482,15 @@ const Eo = ({ total: t }) => {
3482
3482
  /* @__PURE__ */ e(
3483
3483
  Pe,
3484
3484
  {
3485
- description: S.connect_more_accounts_description,
3485
+ description: C.connect_more_accounts_description,
3486
3486
  drawerType: "connectDrawer",
3487
- title: S.connect_more_accounts_title
3487
+ title: C.connect_more_accounts_title
3488
3488
  }
3489
3489
  )
3490
3490
  ] }),
3491
3491
  /* @__PURE__ */ e(p, { sx: { maxWidth: 848, minWidth: 288, width: { md: 720 } }, children: /* @__PURE__ */ a(Y, { sx: { height: "100%", p: 16 }, children: [
3492
3492
  /* @__PURE__ */ a(p, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
3493
- /* @__PURE__ */ e(V, { children: S.key_indicators }),
3493
+ /* @__PURE__ */ e(V, { children: C.key_indicators }),
3494
3494
  /* @__PURE__ */ e(
3495
3495
  B,
3496
3496
  {
@@ -3500,7 +3500,7 @@ const Eo = ({ total: t }) => {
3500
3500
  fontSize: 13
3501
3501
  },
3502
3502
  variant: "text",
3503
- children: S.whats_changed
3503
+ children: C.whats_changed
3504
3504
  }
3505
3505
  )
3506
3506
  ] }),
@@ -3513,14 +3513,14 @@ const Eo = ({ total: t }) => {
3513
3513
  curveType: "natural",
3514
3514
  customLegendBoxSx: { borderRadius: "2px" },
3515
3515
  customLegendSx: { left: 0 },
3516
- customLegendVariant: "caption",
3516
+ customLegendVariant: "XSmall",
3517
3517
  datasets: [u],
3518
3518
  height: 300,
3519
3519
  isGraphClippingXAxis: !0,
3520
- labelBackgroundColor: O.palette.neutral.dark,
3520
+ labelBackgroundColor: O.palette.border.dark,
3521
3521
  labelFontColor: O.palette.common.white,
3522
- labelFontSize: typeof O.typography.caption?.fontSize == "string" ? parseFloat(O.typography.caption.fontSize) : O.typography.caption?.fontSize,
3523
- labels: [S.key_indicators_label],
3522
+ labelFontSize: typeof O.typography.XSmall?.fontSize == "string" ? parseFloat(O.typography.XSmall.fontSize) : O.typography.XSmall?.fontSize,
3523
+ labels: [C.key_indicators_label],
3524
3524
  margin: { right: 0, left: 25 },
3525
3525
  peerAverage: _e,
3526
3526
  showArea: !0,
@@ -3528,7 +3528,7 @@ const Eo = ({ total: t }) => {
3528
3528
  showLegend: !0,
3529
3529
  showMarkLabel: !0,
3530
3530
  showXAxis: !0,
3531
- title: S.peer_average,
3531
+ title: C.peer_average,
3532
3532
  useCustomMark: !0,
3533
3533
  xAxisScaleType: "band"
3534
3534
  }
@@ -3563,6 +3563,6 @@ export {
3563
3563
  Ft as DialScoreCard,
3564
3564
  Rt as FinancialStrengthGraph,
3565
3565
  xi as FinstrongApi,
3566
- Ci as FinstrongStore,
3566
+ Si as FinstrongStore,
3567
3567
  yi as FinstrongWidget
3568
3568
  };