@mx-cartographer/experiences 7.7.2 → 7.8.0-alpha-ram-goal-bug

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 (92) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/Account-BiB1F8lL.mjs +118 -0
  3. package/dist/{Account-BfkKlfsW.mjs → Account-DuOz1a27.mjs} +1 -1
  4. package/dist/AccountApi-DgZ8ILj1.mjs +19 -0
  5. package/dist/{AccountDetailsHeader-DqYIuhOs.mjs → AccountDetailsHeader-Cf2TUJnM.mjs} +4 -4
  6. package/dist/AccountDisplayName-CO7z3v99.mjs +11 -0
  7. package/dist/{AccountFields-yP8QdgPd.mjs → AccountFields-UdOvbQ5H.mjs} +7 -6
  8. package/dist/{AccountListItem-DMbu9ehd.mjs → AccountListItem-BPVxmNT_.mjs} +7 -7
  9. package/dist/AccountStore-BbPWe2C9.mjs +244 -0
  10. package/dist/Accounts-M-LTzStv.mjs +27 -0
  11. package/dist/{CategoryStore-Cnw9yUys.mjs → CategoryStore-BYICdb9m.mjs} +73 -73
  12. package/dist/CategoryUtil-meuejJqP.mjs +80 -0
  13. package/dist/{ConnectionsDrawer-BqR6FWJO.mjs → ConnectionsDrawer-BDpVTTSe.mjs} +1 -1
  14. package/dist/{DebtsStore-DuSdXM1k.mjs → DebtsStore-BIbOVCPe.mjs} +12 -12
  15. package/dist/{ExportCsvAction-HK5CeZWR.mjs → ExportCsvAction-CDuzTva1.mjs} +2 -2
  16. package/dist/GlobalAccountFilter-DQCPNc95.mjs +316 -0
  17. package/dist/GoalStore-B4LVt_kH.mjs +422 -0
  18. package/dist/{ManageIncome-BrTrlplL.mjs → ManageIncome-CL3hv8i9.mjs} +44 -44
  19. package/dist/NetWorthStore-yV43kJro.mjs +168 -0
  20. package/dist/{NotificationSettings-D4Vh3z8I.mjs → NotificationSettings-SPg3pwbX.mjs} +171 -169
  21. package/dist/{NotificationStore-CDX_kqHa.mjs → NotificationStore-Ck2KdNmT.mjs} +22 -14
  22. package/dist/{RecurringSettings-D2V6l77l.mjs → RecurringSettings-Bmnnpb48.mjs} +16 -16
  23. package/dist/{RecurringTransactionsStore-Caf1cq4v.mjs → RecurringTransactionsStore-BQBEJOPP.mjs} +91 -81
  24. package/dist/{RecurringTransactions-Bf4lX0Cn.mjs → RepeatingTransaction-miZVnk_A.mjs} +4 -4
  25. package/dist/{SettingsStore-krIRNwHK.mjs → SettingsStore-BHpuyujx.mjs} +1 -1
  26. package/dist/SkeletonLoader-BaNboJjD.mjs +38 -0
  27. package/dist/{SpendingLegend-gTCJLLkV.mjs → SpendingLegend-CD60HCYS.mjs} +33 -33
  28. package/dist/{TransactionDetails-7MHOshKQ.mjs → TransactionDetails-BDhz3DLT.mjs} +2 -2
  29. package/dist/TransactionStore-BSp5bOKg.mjs +705 -0
  30. package/dist/{User-LJpEwPtn.mjs → User-B0LnmiKO.mjs} +21 -20
  31. package/dist/WidgetContainer-BbPS3Yxz.mjs +555 -0
  32. package/dist/accounts/index.es.js +421 -391
  33. package/dist/accounts/stores/AccountStore.d.ts +30 -23
  34. package/dist/accounts/utils/Accounts.d.ts +2 -1
  35. package/dist/budgets/index.es.js +546 -540
  36. package/dist/budgets/store/BudgetsStore.d.ts +1 -0
  37. package/dist/cashflow/index.es.js +444 -457
  38. package/dist/categories/index.es.js +1 -1
  39. package/dist/categories/stores/CategoryStore.d.ts +10 -5
  40. package/dist/categories/util/CategoryUtil.d.ts +3 -2
  41. package/dist/common/components/GlobalAccountFilter.d.ts +11 -0
  42. package/dist/common/components/SkeletonLoader.d.ts +7 -0
  43. package/dist/common/components/WidgetContainer.d.ts +7 -6
  44. package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +7 -0
  45. package/dist/common/components/index.d.ts +2 -2
  46. package/dist/common/hooks/useAriaLive.d.ts +1 -1
  47. package/dist/common/index.es.js +459 -445
  48. package/dist/common/stores/AppDataStore.d.ts +3 -1
  49. package/dist/common/stores/GlobalCopyStore.d.ts +0 -1
  50. package/dist/common/stores/GlobalStore.d.ts +3 -3
  51. package/dist/common/stores/GlobalUiStore.d.ts +10 -6
  52. package/dist/common/stores/UserStore.d.ts +3 -2
  53. package/dist/common/types/Account.d.ts +9 -6
  54. package/dist/dashboard/index.es.js +84 -116
  55. package/dist/debts/index.es.js +417 -413
  56. package/dist/{exportTransactionsToCSV-BrTYdSgJ.mjs → exportTransactionsToCSV-DtQ7ovAR.mjs} +1 -1
  57. package/dist/finstrong/index.es.js +1167 -1110
  58. package/dist/goals/index.es.js +618 -598
  59. package/dist/goals/stores/GoalStore.d.ts +19 -4
  60. package/dist/help/index.es.js +13 -13
  61. package/dist/investments/index.es.js +330 -325
  62. package/dist/investments/stores/HoldingStore.d.ts +1 -0
  63. package/dist/networth/components/NetWorthChart.d.ts +3 -2
  64. package/dist/networth/components/NetWorthList.d.ts +3 -3
  65. package/dist/networth/index.es.js +423 -433
  66. package/dist/networth/stores/NetWorthStore.d.ts +20 -9
  67. package/dist/networth/utils/NetWorthUtils.d.ts +2 -2
  68. package/dist/notifications/index.es.js +90 -91
  69. package/dist/notifications/stores/NotificationStore.d.ts +3 -1
  70. package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +3 -0
  71. package/dist/recurringtransactions/index.es.js +543 -562
  72. package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +4 -2
  73. package/dist/settings/index.es.js +253 -248
  74. package/dist/spending/index.es.js +282 -301
  75. package/dist/transactions/index.es.js +269 -263
  76. package/dist/transactions/stores/TransactionStore.d.ts +26 -77
  77. package/dist/transactions/stores/UiStore.d.ts +0 -2
  78. package/dist/trends/index.es.js +708 -699
  79. package/dist/{useAccountDisplayName-BTvP_pw6.mjs → useAccountDisplayName-Bot2tb4n.mjs} +1 -1
  80. package/package.json +3 -3
  81. package/dist/AccountStore-CWFzg8-E.mjs +0 -260
  82. package/dist/Accounts-CWt-NRq8.mjs +0 -9
  83. package/dist/CategoryUtil-DZflYFam.mjs +0 -78
  84. package/dist/ConnectDrawer-BOjfI6rz.mjs +0 -563
  85. package/dist/GoalStore-C7ahxxLi.mjs +0 -364
  86. package/dist/NetWorthStore-xWIo9CYU.mjs +0 -150
  87. package/dist/TransactionStore-DJwPaZuM.mjs +0 -677
  88. package/dist/WidgetContainer-CrK6tyHr.mjs +0 -572
  89. package/dist/common/components/accountfilter/AccountFilter.d.ts +0 -20
  90. package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +0 -31
  91. package/dist/common/components/accountfilter/index.d.ts +0 -1
  92. package/dist/{ToggleListItem-ciFTiqRS.mjs → Notification-Bs1fdbzI.mjs} +1 -1
@@ -1,76 +1,78 @@
1
- import { jsxs as i, Fragment as N, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as i, Fragment as z, jsx as e } from "react/jsx-runtime";
2
2
  import M from "@mui/material/Box";
3
- import p from "@mui/material/Stack";
4
- import { useTheme as E, alpha as se } from "@mui/material/styles";
5
- import { PieChart as en } from "@mui/x-charts/PieChart";
6
- import { P as D, H3 as X, Text as I, InstitutionLogo as st, H2 as Le, MerchantLogo as tn, Icon as nn } from "@mxenabled/mxui";
7
- import { TrendingUp as on, ArrowRightAlt as rn, TrendingDown as an, AccountBalance as ct, ChevronRight as J, CheckCircle as sn, Cancel as cn, CreditCard as lt, Savings as ln, ContentCopy as dn, MultilineChart as pn, Add as dt, Cardiology as _n, Payments as un, CalendarMonth as hn, ExpandMore as mn } from "@mxenabled/mx-icons";
8
- import { g as gn, a as yn, r as Ze, b as bn, c as Ge, d as pt, C as ke, e as Me, f as fn, h as xn, i as Sn, j as _t, k as Je, l as Cn, m as et, n as vn, o as ut, p as wn, q as ht, s as Oe, t as mt, u as kn, v as gt, w as Mn, A as ne, x as Dn, P as In } from "../FinstrongStore-bEn_im_e.mjs";
9
- import { y as gi, F as yi } from "../FinstrongStore-bEn_im_e.mjs";
3
+ import _ from "@mui/material/Stack";
4
+ import { useTheme as E, alpha as le } from "@mui/material/styles";
5
+ import { PieChart as tn } from "@mui/x-charts/PieChart";
6
+ import { P as I, H3 as K, Text as T, InstitutionLogo as lt, H2 as Fe, MerchantLogo as nn, Icon as on } from "@mxenabled/mxui";
7
+ import { TrendingUp as rn, ArrowRightAlt as an, TrendingDown as sn, AccountBalance as dt, ChevronRight as Z, CheckCircle as cn, Cancel as ln, CreditCard as pt, Savings as dn, ContentCopy as pn, MultilineChart as _n, Add as _t, Cardiology as un, Payments as hn, CalendarMonth as mn, ExpandMore as gn } from "@mxenabled/mx-icons";
8
+ import { g as yn, a as bn, r as Ze, b as fn, c as Ge, d as ut, C as we, e as ke, f as xn, h as Sn, i as vn, j as ht, k as Je, l as Cn, m as et, n as wn, o as mt, p as kn, q as gt, s as Oe, t as yt, u as Mn, v as bt, w as Dn, A as ne, x as In, P as Tn } from "../FinstrongStore-bEn_im_e.mjs";
9
+ import { y as Si, F as vi } from "../FinstrongStore-bEn_im_e.mjs";
10
10
  import * as tt from "d3";
11
- import { observer as v } from "mobx-react-lite";
12
- import { u as x, b as U, a as He, o as ee, z as F, p as An, d as Se, m as Ne, f as Tn, j as je, h as On, i as Rn } from "../hooks-ZMp65DFz.mjs";
13
- import { L as Q } from "../Loader-DUaFpDGv.mjs";
14
- import m from "react";
15
- import B from "@mui/material/Button";
16
- import Y from "@mui/material/Card";
11
+ import { observer as w } from "mobx-react-lite";
12
+ import { u as v, b as J, a as He, o as ee, z as B, p as An, d as xe, m as Ne, f as On, j as je, h as Rn, i as Ln } from "../hooks-ZMp65DFz.mjs";
13
+ import { L as U } from "../Loader-DUaFpDGv.mjs";
14
+ import h, { useState as Fn, useRef as Bn, useCallback as nt, useEffect as ot } from "react";
15
+ import P from "@mui/material/Button";
16
+ import V from "@mui/material/Card";
17
17
  import { L as Ke } from "../LineChart-kFoTu9Pi.mjs";
18
- import { C as yt } from "../ConnectionsDrawer-BqR6FWJO.mjs";
19
- import { l as re, g as bt, A as ze } from "../ConnectDrawer-BOjfI6rz.mjs";
20
- import ce from "@mui/material/Tab";
18
+ import { C as ft } from "../ConnectionsDrawer-BDpVTTSe.mjs";
19
+ import { b as re } from "../GlobalAccountFilter-DQCPNc95.mjs";
20
+ import de from "@mui/material/Tab";
21
21
  import Ve from "@mui/material/Tabs";
22
22
  import Re from "@mui/material/TextField";
23
23
  import { u as Xe } from "../useScreenSize-B6JyS_Lj.mjs";
24
- import { a as Fn, f as Ln, D as Bn } from "../Dialog-B4PI-_bL.mjs";
25
- import { u as ft } from "../useDimensions-27p2evRx.mjs";
26
- import { E as Fe } from "../EmptyState-DoxNUae-.mjs";
27
- import Pn from "@mui/material/Chip";
24
+ import { a as Pn, f as Wn, D as $n } from "../Dialog-B4PI-_bL.mjs";
25
+ import { u as xt } from "../useDimensions-27p2evRx.mjs";
26
+ import { E as Le } from "../EmptyState-DoxNUae-.mjs";
27
+ import En from "@mui/material/Chip";
28
28
  import { D as oe } from "../Drawer-DV4NTsFg.mjs";
29
- import de from "@mui/material/Divider";
30
- import be from "@mui/material/ListItem";
31
- import xt from "@mui/material/ListItemAvatar";
32
- import fe from "@mui/material/ListItemText";
33
- import { g as St } from "../AccountFields-yP8QdgPd.mjs";
29
+ import _e from "@mui/material/Divider";
30
+ import ye from "@mui/material/ListItem";
31
+ import St from "@mui/material/ListItemAvatar";
32
+ import be from "@mui/material/ListItemText";
33
+ import { g as vt } from "../AccountDisplayName-CO7z3v99.mjs";
34
+ import { g as Ct } from "../AccountFields-UdOvbQ5H.mjs";
34
35
  import Ee from "@mui/material/List";
35
- import Wn from "@mui/material/ListItemButton";
36
- import $n from "@mui/material/ListSubheader";
37
- import { f as W } from "../NumberFormatting-DjTD0t3W.mjs";
38
- import { b as V } from "../Localization-2MODESHW.mjs";
39
- import { S as nt, F as Ct, e as zn, R as vt } from "../RecurringTransactions-Bf4lX0Cn.mjs";
40
- import { S as En } from "../StatusBar-BK_uYHAB.mjs";
41
- import { h as wt } from "../DateUtil-D7U-nc1Y.mjs";
42
- import { T as Gn, s as Hn, h as Nn, S as jn, b as Kn } from "../TransactionDetails-7MHOshKQ.mjs";
43
- import { T as le } from "../TabContentContainer-j01JYR_7.mjs";
44
- import Vn from "@mui/material/useMediaQuery";
45
- import { BarPlot as Xn } from "@mui/x-charts/BarChart";
46
- import { ChartContainer as Yn } from "@mui/x-charts/ChartContainer";
47
- import { ChartsXAxis as qn } from "@mui/x-charts/ChartsXAxis";
48
- import { ChartsYAxis as Un } from "@mui/x-charts/ChartsYAxis";
49
- import { startOfMonth as kt } from "date-fns/startOfMonth";
50
- import { endOfMonth as Mt } from "date-fns/endOfMonth";
51
- import { g as Qn, S as Zn, b as Jn } from "../SpendingLegend-gTCJLLkV.mjs";
52
- import { formatISO as eo } from "date-fns/formatISO";
53
- import { fromUnixTime as to } from "date-fns/fromUnixTime";
54
- import { startOfToday as ot } from "date-fns/startOfToday";
55
- import { subDays as no } from "date-fns/subDays";
56
- import { c as oo, d as rt, S as ro, i as ao } from "../ManageIncome-BrTrlplL.mjs";
57
- import { LocalizationProvider as io, DatePicker as so, StaticDatePicker as co } from "@mui/x-date-pickers";
58
- import { AdapterDateFns as Dt } from "@mui/x-date-pickers/AdapterDateFnsV3";
59
- import { R as lo } from "../RecurringSettings-D2V6l77l.mjs";
60
- import { LocalizationProvider as po } from "@mui/x-date-pickers/LocalizationProvider";
61
- import { format as _o } from "date-fns/format";
62
- import uo from "@mui/lab/Timeline";
63
- import ho, { timelineItemClasses as mo } from "@mui/lab/TimelineItem";
64
- import go from "@mui/lab/TimelineConnector";
65
- import yo from "@mui/lab/TimelineContent";
66
- import bo from "@mui/lab/TimelineDot";
67
- import fo from "@mui/lab/TimelineSeparator";
68
- import xo from "@mui/material/Accordion";
69
- import So from "@mui/material/AccordionDetails";
70
- import Co from "@mui/material/AccordionSummary";
71
- import { u as vo } from "../useWidgetLoadTimer-hIOioiKx.mjs";
72
- import { W as wo } from "../WidgetContainer-CrK6tyHr.mjs";
73
- const ko = ({
36
+ import zn from "@mui/material/ListItemButton";
37
+ import Gn from "@mui/material/ListSubheader";
38
+ import { f as $ } from "../NumberFormatting-DjTD0t3W.mjs";
39
+ import { b as j } from "../Localization-2MODESHW.mjs";
40
+ import { S as rt, F as wt, e as Hn, R as kt } from "../RepeatingTransaction-miZVnk_A.mjs";
41
+ import { A as ze } from "../Account-BiB1F8lL.mjs";
42
+ import { S as Nn } from "../StatusBar-BK_uYHAB.mjs";
43
+ import { h as Mt } from "../DateUtil-D7U-nc1Y.mjs";
44
+ import { T as jn, s as Kn, h as Vn, S as Xn, b as Yn } from "../TransactionDetails-BDhz3DLT.mjs";
45
+ import { T as pe } from "../TabContentContainer-j01JYR_7.mjs";
46
+ import qn from "@mui/material/useMediaQuery";
47
+ import { BarPlot as Un } from "@mui/x-charts/BarChart";
48
+ import { ChartContainer as Qn } from "@mui/x-charts/ChartContainer";
49
+ import { ChartsXAxis as Zn } from "@mui/x-charts/ChartsXAxis";
50
+ import { ChartsYAxis as Jn } from "@mui/x-charts/ChartsYAxis";
51
+ import { startOfMonth as Dt } from "date-fns/startOfMonth";
52
+ import { endOfMonth as It } from "date-fns/endOfMonth";
53
+ import { g as eo, S as to, b as no } from "../SpendingLegend-CD60HCYS.mjs";
54
+ import { formatISO as oo } from "date-fns/formatISO";
55
+ import { fromUnixTime as ro } from "date-fns/fromUnixTime";
56
+ import { startOfToday as at } from "date-fns/startOfToday";
57
+ import { subDays as ao } from "date-fns/subDays";
58
+ import { c as io, d as it, S as so, i as co } from "../ManageIncome-CL3hv8i9.mjs";
59
+ import { LocalizationProvider as lo, DatePicker as po, StaticDatePicker as _o } from "@mui/x-date-pickers";
60
+ import { AdapterDateFns as Tt } from "@mui/x-date-pickers/AdapterDateFnsV3";
61
+ import { R as uo } from "../RecurringSettings-Bmnnpb48.mjs";
62
+ import { LocalizationProvider as ho } from "@mui/x-date-pickers/LocalizationProvider";
63
+ import { format as mo } from "date-fns/format";
64
+ import go from "@mui/lab/Timeline";
65
+ import yo, { timelineItemClasses as bo } from "@mui/lab/TimelineItem";
66
+ import fo from "@mui/lab/TimelineConnector";
67
+ import xo from "@mui/lab/TimelineContent";
68
+ import So from "@mui/lab/TimelineDot";
69
+ import vo from "@mui/lab/TimelineSeparator";
70
+ import Co from "@mui/material/Accordion";
71
+ import wo from "@mui/material/AccordionDetails";
72
+ import ko from "@mui/material/AccordionSummary";
73
+ import { u as Mo } from "../useWidgetLoadTimer-hIOioiKx.mjs";
74
+ import { W as Do } from "../WidgetContainer-BbPS3Yxz.mjs";
75
+ const Io = ({
74
76
  dialScoreData: t,
75
77
  dataIndex: o,
76
78
  arcColor: n,
@@ -80,37 +82,37 @@ const ko = ({
80
82
  centerY: l,
81
83
  arcRadius: c,
82
84
  innerArcRadius: d,
83
- outterArcRadius: _,
84
- progressEndAngle: h,
85
- unitsPerSegment: u,
85
+ outterArcRadius: p,
86
+ progressEndAngle: u,
87
+ unitsPerSegment: m,
86
88
  isFinacialStrengthGraph: b
87
89
  }) => {
88
- const S = E(), C = [
89
- { offset: "13.62%", color: S.palette.chartMono.chartMono2 },
90
- { offset: "36.67%", color: S.palette.chartMono.chartMono3 },
91
- { offset: "59.72%", color: S.palette.chartMono.chartMono4 },
92
- { offset: "83.46%", color: S.palette.chartMono.chartMono5 }
93
- ], [f, w] = gn(
90
+ const C = E(), x = [
91
+ { offset: "13.62%", color: C.palette.chartMono.chartMono2 },
92
+ { offset: "36.67%", color: C.palette.chartMono.chartMono3 },
93
+ { offset: "59.72%", color: C.palette.chartMono.chartMono4 },
94
+ { offset: "83.46%", color: C.palette.chartMono.chartMono5 }
95
+ ], [S, y] = yn(
94
96
  t,
95
97
  s,
96
98
  r,
97
99
  o
98
- ), [k, g] = yn(
99
- f,
100
- w,
100
+ ), [k, g] = bn(
101
+ S,
102
+ y,
101
103
  o,
102
- u,
103
- h
104
- ), y = tt.arc().innerRadius(d).outerRadius(_).startAngle(f).endAngle(w).padAngle(0.02).cornerRadius(8), $ = tt.arc().innerRadius(d).outerRadius(_).startAngle(k).endAngle(g).padAngle(0.02).cornerRadius(8);
105
- return /* @__PURE__ */ i(N, { children: [
104
+ m,
105
+ u
106
+ ), f = tt.arc().innerRadius(d).outerRadius(p).startAngle(S).endAngle(y).padAngle(0.02).cornerRadius(8), A = tt.arc().innerRadius(d).outerRadius(p).startAngle(k).endAngle(g).padAngle(0.02).cornerRadius(8);
107
+ return /* @__PURE__ */ i(z, { children: [
106
108
  /* @__PURE__ */ e(
107
109
  "path",
108
110
  {
109
- d: y({}),
110
- fill: b ? S.palette.divider : n
111
+ d: f({}),
112
+ fill: b ? C.palette.divider : n
111
113
  }
112
114
  ),
113
- b && /* @__PURE__ */ e("path", { d: $({}), fill: "url(#arcGradient)" }),
115
+ b && /* @__PURE__ */ e("path", { d: A({}), fill: "url(#arcGradient)" }),
114
116
  /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e(
115
117
  "linearGradient",
116
118
  {
@@ -121,11 +123,11 @@ const ko = ({
121
123
  x2: a - c * 0.8 * Math.cos(Math.PI / 1.35),
122
124
  y1: l + c * 0.8 * Math.sin(Math.PI / 1.35),
123
125
  y2: l - c * 0.8 * Math.sin(Math.PI / 1.35),
124
- children: C.map((L, T) => /* @__PURE__ */ e("stop", { offset: L.offset, stopColor: L.color }, T))
126
+ children: x.map((L, D) => /* @__PURE__ */ e("stop", { offset: L.offset, stopColor: L.color }, D))
125
127
  }
126
128
  ) })
127
129
  ] });
128
- }, It = ({
130
+ }, At = ({
129
131
  arcRadius: t = 100,
130
132
  healthScore: o,
131
133
  size: n = "L",
@@ -135,68 +137,68 @@ const ko = ({
135
137
  margin: l,
136
138
  markerColor: c,
137
139
  healthScoreStatus: d,
138
- footerCenterContent: _,
139
- footerLeftContent: h,
140
- footerRightContent: u,
140
+ footerCenterContent: p,
141
+ footerLeftContent: u,
142
+ footerRightContent: m,
141
143
  isFinacialStrengthGraph: b = !1
142
144
  }) => {
143
- const S = E(), C = -Math.PI / 1.35, f = Math.PI / 1.35, w = f - C, k = w / (a - s), g = (o - s) * k, y = C + g + 0.02, $ = n !== "SM" ? 0.1 : 0.12, L = t, T = t * (1 - $), P = L * 2, z = P / 2, G = P / 2, _e = (T + L) / 2, ue = o !== 25 && o !== 50 && o !== 75 && o !== 100 ? 0 : 0.12, [te, j] = bn(_e, y, ue), ve = o / 25, H = {
145
+ const C = E(), x = -Math.PI / 1.35, S = Math.PI / 1.35, y = S - x, k = y / (a - s), g = (o - s) * k, f = x + g + 0.02, A = n !== "SM" ? 0.1 : 0.12, L = t, D = t * (1 - A), G = L * 2, W = G / 2, H = G / 2, ve = (D + L) / 2, ae = o !== 25 && o !== 50 && o !== 75 && o !== 100 ? 0 : 0.12, [X, te] = fn(ve, f, ae), ie = o / 25, Y = {
144
146
  L: { markerSize: 12, healthScoreFontSize: 64 },
145
147
  M: { markerSize: 8, healthScoreFontSize: 48 },
146
148
  SM: { markerSize: 3, healthScoreFontSize: 14 }
147
- }, we = {
149
+ }, N = {
148
150
  top: 0,
149
151
  right: 0,
150
152
  bottom: 0,
151
153
  left: 0,
152
154
  ...l
153
- }, K = _ === 0 ? rn : an, ae = n !== "SM" ? 3 : 1, he = ae * 4, me = H[n].markerSize * 2 + he;
155
+ }, he = p === 0 ? an : sn, se = n !== "SM" ? 3 : 1, Ce = se * 4, q = Y[n].markerSize * 2 + Ce;
154
156
  return /* @__PURE__ */ i(
155
- p,
157
+ _,
156
158
  {
157
159
  sx: {
158
- width: P,
159
- height: n === "SM" ? P - 7 : P,
160
+ width: G,
161
+ height: n === "SM" ? G - 7 : G,
160
162
  position: "relative",
161
163
  alignSelf: "center",
162
164
  overflow: "visible"
163
165
  },
164
166
  children: [
165
167
  /* @__PURE__ */ e(
166
- en,
168
+ tn,
167
169
  {
168
- height: n === "SM" ? P - 7 : P,
170
+ height: n === "SM" ? G - 7 : G,
169
171
  hideLegend: !0,
170
- margin: we,
172
+ margin: N,
171
173
  series: [
172
174
  {
173
175
  data: r,
174
- innerRadius: T,
176
+ innerRadius: D,
175
177
  outerRadius: L,
176
- startAngle: Math.round(Ze(C)),
178
+ startAngle: Math.round(Ze(x)),
177
179
  // Use Math.degrees to convert
178
- endAngle: Math.round(Ze(f))
180
+ endAngle: Math.round(Ze(S))
179
181
  // Use Math.degrees to convert
180
182
  }
181
183
  ],
182
184
  skipAnimation: !0,
183
185
  slots: {
184
- pieArc: (q) => /* @__PURE__ */ e(
185
- ko,
186
+ pieArc: (De) => /* @__PURE__ */ e(
187
+ Io,
186
188
  {
187
- arcColor: q.color,
189
+ arcColor: De.color,
188
190
  arcRadius: t,
189
- arcStartAngle: C,
190
- centerX: z,
191
- centerY: G,
192
- dataIndex: q.dataIndex,
191
+ arcStartAngle: x,
192
+ centerX: W,
193
+ centerY: H,
194
+ dataIndex: De.dataIndex,
193
195
  dialScoreData: r,
194
- innerArcRadius: T,
196
+ innerArcRadius: D,
195
197
  isFinacialStrengthGraph: b,
196
198
  outterArcRadius: L,
197
- progressEndAngle: y,
198
- totalAngularSpan: w,
199
- unitsPerSegment: ve
199
+ progressEndAngle: f,
200
+ totalAngularSpan: y,
201
+ unitsPerSegment: ie
200
202
  }
201
203
  )
202
204
  },
@@ -205,30 +207,30 @@ const ko = ({
205
207
  stroke: "none"
206
208
  }
207
209
  },
208
- width: P
210
+ width: G
209
211
  }
210
212
  ),
211
213
  o >= s && o <= a && /* @__PURE__ */ e(
212
214
  "svg",
213
215
  {
214
- height: me,
216
+ height: q,
215
217
  style: {
216
218
  position: "absolute",
217
- left: z + te - H[n].markerSize - 5,
218
- top: G + j - H[n].markerSize - 5,
219
+ left: W + X - Y[n].markerSize - 5,
220
+ top: H + te - Y[n].markerSize - 5,
219
221
  overflow: "visible"
220
222
  },
221
- viewBox: `${z + te - H[n].markerSize - 5} ${G + j - H[n].markerSize - 5} ${me} ${me}`,
222
- width: me,
223
+ viewBox: `${W + X - Y[n].markerSize - 5} ${H + te - Y[n].markerSize - 5} ${q} ${q}`,
224
+ width: q,
223
225
  children: /* @__PURE__ */ e(
224
226
  "circle",
225
227
  {
226
- cx: z + te,
227
- cy: G + j,
228
- fill: S.palette.common.white,
229
- r: H[n].markerSize,
228
+ cx: W + X,
229
+ cy: H + te,
230
+ fill: C.palette.common.white,
231
+ r: Y[n].markerSize,
230
232
  stroke: b ? "url(#arcGradient)" : c,
231
- strokeWidth: ae
233
+ strokeWidth: se
232
234
  }
233
235
  )
234
236
  }
@@ -238,46 +240,46 @@ const ko = ({
238
240
  {
239
241
  sx: {
240
242
  position: "absolute",
241
- top: `${G}px`,
242
- left: `${z}px`,
243
+ top: `${H}px`,
244
+ left: `${W}px`,
243
245
  transform: "translate(-50%, -50%)",
244
246
  textAlign: "center"
245
247
  },
246
248
  children: /* @__PURE__ */ i(
247
- p,
249
+ _,
248
250
  {
249
251
  spacing: 1,
250
252
  sx: { alignItems: "center", justifyContent: "center", gap: n !== "M" ? 10 : 3 },
251
253
  children: [
252
254
  /* @__PURE__ */ e(
253
- D,
255
+ I,
254
256
  {
255
257
  sx: {
256
- fontSize: H[n].healthScoreFontSize,
258
+ fontSize: Y[n].healthScoreFontSize,
257
259
  lineHeight: n !== "SM" ? "48px" : "100%"
258
260
  },
259
261
  variant: "H1",
260
262
  children: o
261
263
  }
262
264
  ),
263
- n !== "SM" && /* @__PURE__ */ e(D, { sx: { fontWeight: 600 }, variant: n === "L" ? "body1" : "body2", children: d })
265
+ n !== "SM" && /* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: n === "L" ? "body1" : "body2", children: d })
264
266
  ]
265
267
  }
266
268
  )
267
269
  }
268
270
  ),
269
- _ !== void 0 && /* @__PURE__ */ e(
271
+ p !== void 0 && /* @__PURE__ */ e(
270
272
  M,
271
273
  {
272
274
  sx: {
273
275
  position: "absolute",
274
- top: `${G * 2 * 0.83}px`,
275
- left: `${z}px`,
276
+ top: `${H * 2 * 0.83}px`,
277
+ left: `${W}px`,
276
278
  transform: "translate(-50%, -50%)",
277
279
  textAlign: "center"
278
280
  },
279
- children: typeof _ == "number" ? /* @__PURE__ */ i(
280
- p,
281
+ children: typeof p == "number" ? /* @__PURE__ */ i(
282
+ _,
281
283
  {
282
284
  sx: {
283
285
  flexDirection: "row",
@@ -286,54 +288,54 @@ const ko = ({
286
288
  mt: 24
287
289
  },
288
290
  children: [
289
- _ > 0 ? /* @__PURE__ */ e(on, { size: 16, sx: { color: "success.main" } }) : /* @__PURE__ */ e(K, { size: 16, sx: { color: "text.secondary" } }),
291
+ p > 0 ? /* @__PURE__ */ e(rn, { size: 16, sx: { color: "success.main" } }) : /* @__PURE__ */ e(he, { size: 16, sx: { color: "text.secondary" } }),
290
292
  /* @__PURE__ */ e(
291
- D,
293
+ I,
292
294
  {
293
295
  sx: {
294
296
  fontWeight: 600,
295
- color: _ > 0 ? "success.main" : "text.secondary"
297
+ color: p > 0 ? "success.main" : "text.secondary"
296
298
  },
297
299
  variant: "body1",
298
- children: Math.abs(_)
300
+ children: Math.abs(p)
299
301
  }
300
302
  )
301
303
  ]
302
304
  }
303
- ) : /* @__PURE__ */ e(D, { sx: { color: "text.secondary" }, variant: "subtitle2", children: _ })
305
+ ) : /* @__PURE__ */ e(I, { sx: { color: "text.secondary" }, variant: "subtitle2", children: p })
304
306
  }
305
307
  ),
306
- h !== void 0 && /* @__PURE__ */ e(
308
+ u !== void 0 && /* @__PURE__ */ e(
307
309
  M,
308
310
  {
309
311
  sx: {
310
312
  position: "absolute",
311
- top: `${G * 2 * 0.83}px`,
312
- left: `${z - z / 2}px`,
313
+ top: `${H * 2 * 0.83}px`,
314
+ left: `${W - W / 2}px`,
313
315
  // shift left from center
314
316
  transform: "translate(-50%, -50%)",
315
317
  textAlign: "left"
316
318
  },
317
- children: /* @__PURE__ */ e(D, { variant: "body1", children: h })
319
+ children: /* @__PURE__ */ e(I, { variant: "body1", children: u })
318
320
  }
319
321
  ),
320
- u !== void 0 && /* @__PURE__ */ e(
322
+ m !== void 0 && /* @__PURE__ */ e(
321
323
  M,
322
324
  {
323
325
  sx: {
324
326
  position: "absolute",
325
- top: `${G * 2 * 0.83}px`,
326
- left: `${z + z / 2}px`,
327
+ top: `${H * 2 * 0.83}px`,
328
+ left: `${W + W / 2}px`,
327
329
  transform: "translate(-50%, -50%)",
328
330
  textAlign: "right"
329
331
  },
330
- children: /* @__PURE__ */ e(D, { variant: "body1", children: u })
332
+ children: /* @__PURE__ */ e(I, { variant: "body1", children: m })
331
333
  }
332
334
  )
333
335
  ]
334
336
  }
335
337
  );
336
- }, At = v(
338
+ }, Ot = w(
337
339
  ({
338
340
  arcRadius: t,
339
341
  size: o = "L",
@@ -346,9 +348,9 @@ const ko = ({
346
348
  { id: 2, label: "Group B", value: 25 },
347
349
  { id: 3, label: "Group C", value: 25 },
348
350
  { id: 4, label: "Group D", value: 25 }
349
- ], { finstrong: l } = x(), c = Ge(n, l);
351
+ ], { finstrong: l } = v(), c = Ge(n, l);
350
352
  return /* @__PURE__ */ e(
351
- It,
353
+ At,
352
354
  {
353
355
  arcRadius: t,
354
356
  dialScoreData: a,
@@ -361,7 +363,7 @@ const ko = ({
361
363
  }
362
364
  );
363
365
  }
364
- ), Mo = v(
366
+ ), To = w(
365
367
  ({
366
368
  arcRadius: t,
367
369
  size: o = "L",
@@ -375,41 +377,41 @@ const ko = ({
375
377
  id: 1,
376
378
  label: "Poor",
377
379
  value: 29,
378
- color: c ? ke.POOR : Me.POOR
380
+ color: c ? we.POOR : ke.POOR
379
381
  },
380
382
  {
381
383
  id: 2,
382
384
  label: "Fair",
383
385
  value: 25,
384
- color: c ? ke.FAIR : Me.FAIR
386
+ color: c ? we.FAIR : ke.FAIR
385
387
  },
386
388
  {
387
389
  id: 3,
388
390
  label: "Good",
389
391
  value: 17,
390
- color: c ? ke.GOOD : Me.GOOD
392
+ color: c ? we.GOOD : ke.GOOD
391
393
  },
392
394
  {
393
395
  id: 4,
394
396
  label: "Very Good",
395
397
  value: 17,
396
- color: c ? ke.VERY_GOOD : Me.VERY_GOOD
398
+ color: c ? we.VERY_GOOD : ke.VERY_GOOD
397
399
  },
398
400
  {
399
401
  id: 5,
400
402
  label: "Exceptional",
401
403
  value: 12,
402
- color: c ? ke.EXCEPTIONAL : Me.EXCEPTIONAL
404
+ color: c ? we.EXCEPTIONAL : ke.EXCEPTIONAL
403
405
  }
404
- ], { finstrong: _ } = x(), { isCopyLoaded: h } = U();
405
- if (!h) return /* @__PURE__ */ e(Q, {});
406
- const { status: u, color: b = "none" } = pt(
406
+ ], { finstrong: p } = v(), { isCopyLoaded: u } = J();
407
+ if (!u) return /* @__PURE__ */ e(U, {});
408
+ const { status: m, color: b = "none" } = ut(
407
409
  n,
408
410
  c,
409
- _.credit_score_status
411
+ p.credit_score_status
410
412
  );
411
413
  return /* @__PURE__ */ e(
412
- It,
414
+ At,
413
415
  {
414
416
  arcRadius: t,
415
417
  dialScoreData: d,
@@ -417,7 +419,7 @@ const ko = ({
417
419
  footerLeftContent: s,
418
420
  footerRightContent: r,
419
421
  healthScore: n,
420
- healthScoreStatus: u,
422
+ healthScoreStatus: m,
421
423
  markerColor: b,
422
424
  maxValue: r,
423
425
  minValue: s,
@@ -435,9 +437,9 @@ const ko = ({
435
437
  description: l,
436
438
  sx: c
437
439
  }) => {
438
- const [d, _] = m.useState(!1), { connect: h, finstrong: u } = x(), { config: b } = He();
440
+ const [d, p] = h.useState(!1), { connect: u, finstrong: m } = v(), { config: b } = He();
439
441
  return t && b.show_connections_widget_in_master ? /* @__PURE__ */ i(
440
- Y,
442
+ V,
441
443
  {
442
444
  sx: {
443
445
  pb: 24,
@@ -448,73 +450,73 @@ const ko = ({
448
450
  },
449
451
  children: [
450
452
  /* @__PURE__ */ i(
451
- p,
453
+ _,
452
454
  {
453
455
  sx: {
454
456
  gap: 8,
455
457
  ...o && { flexDirection: "row", alignItems: "center" }
456
458
  },
457
459
  children: [
458
- n && /* @__PURE__ */ e(ct, { sx: { height: 20, width: 20 } }),
459
- /* @__PURE__ */ e(X, { className: "connect-more-accounts-title", sx: { ...o && { fontSize: 15 } }, children: s || u.connect_more_accounts_title })
460
+ n && /* @__PURE__ */ e(dt, { sx: { height: 20, width: 20 } }),
461
+ /* @__PURE__ */ e(K, { className: "connect-more-accounts-title", sx: { ...o && { fontSize: 15 } }, children: s || m.connect_more_accounts_title })
460
462
  ]
461
463
  }
462
464
  ),
463
465
  /* @__PURE__ */ e(
464
- D,
466
+ I,
465
467
  {
466
468
  className: "connect-more-accounts-description",
467
469
  sx: { color: "text.secondary", mt: 8 },
468
470
  variant: "subtitle1",
469
- children: l || u.connect_more_accounts_description
471
+ children: l || m.connect_more_accounts_description
470
472
  }
471
473
  ),
472
474
  /* @__PURE__ */ e(
473
- B,
475
+ P,
474
476
  {
475
- endIcon: /* @__PURE__ */ e(J, {}),
476
- onClick: () => _(!0),
477
+ endIcon: /* @__PURE__ */ e(Z, {}),
478
+ onClick: () => p(!0),
477
479
  size: "small",
478
480
  sx: { p: 0, mt: 8, "&:hover": { backgroundColor: "transparent" } },
479
- children: /* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: "body2", children: r || u.connect_more_accounts_button })
481
+ children: /* @__PURE__ */ e(T, { sx: { fontWeight: 600 }, variant: "body2", children: r || m.connect_more_accounts_button })
480
482
  }
481
483
  ),
482
484
  t === "connectDrawer" && /* @__PURE__ */ e(
483
485
  re,
484
486
  {
485
- onClose: () => _(!1),
487
+ onClose: () => p(!1),
486
488
  showConnectWidget: d,
487
- title: a || h.mini_title
489
+ title: a || u.mini_title
488
490
  }
489
491
  ),
490
492
  t === "connectionsDrawer" && /* @__PURE__ */ e(
491
- yt,
493
+ ft,
492
494
  {
493
- onClose: () => _(!1),
495
+ onClose: () => p(!1),
494
496
  showConnectionsWidget: d,
495
- title: a || h.mini_title
497
+ title: a || u.mini_title
496
498
  }
497
499
  )
498
500
  ]
499
501
  }
500
502
  ) : null;
501
503
  };
502
- var pe = /* @__PURE__ */ ((t) => (t.SpendLessThanYouMake = "spendLessThanYouMake", t.PayBillsOnTime = "payBillsOnTime", t.SaveEnoughToLiveOn = "saveEnoughToLiveOn", t.MaintainEmergencySavings = "maintainEmergencySavings", t.HaveManageableDebt = "haveManageableDebt", t.HaveAGoodCreditScore = "haveAGoodCreditScore", t))(pe || {});
503
- const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_animation_final.gif", Io = ({ isOpen: t, onClose: o }) => {
504
- const { common: n, finstrong: r } = x(), { isMobile: s } = Xe(), { updateUser: a, user: l } = ee(), [c, d] = m.useState(l.credit_score || 0), _ = !isNaN(c), h = () => {
504
+ var ue = /* @__PURE__ */ ((t) => (t.SpendLessThanYouMake = "spendLessThanYouMake", t.PayBillsOnTime = "payBillsOnTime", t.SaveEnoughToLiveOn = "saveEnoughToLiveOn", t.MaintainEmergencySavings = "maintainEmergencySavings", t.HaveManageableDebt = "haveManageableDebt", t.HaveAGoodCreditScore = "haveAGoodCreditScore", t))(ue || {});
505
+ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_animation_final.gif", Oo = ({ isOpen: t, onClose: o }) => {
506
+ const { common: n, finstrong: r } = v(), { isMobile: s } = Xe(), { updateUser: a, user: l } = ee(), [c, d] = h.useState(l.credit_score || 0), p = !isNaN(c), u = () => {
505
507
  o(), setTimeout(() => d(l.credit_score || 0), 300);
506
- }, u = () => {
508
+ }, m = () => {
507
509
  !c || c === l.credit_score || a({ ...l, credit_score: c });
508
510
  };
509
511
  return /* @__PURE__ */ e(
510
- Fn,
512
+ Pn,
511
513
  {
512
514
  copy: { close_aria: n.close_aria, title: r.edit_credit_score },
513
- disablePrimaryButton: !c || !_,
515
+ disablePrimaryButton: !c || !p,
514
516
  isOpen: t,
515
517
  maxWidth: "xs",
516
- onClose: h,
517
- onPrimaryAction: u,
518
+ onClose: u,
519
+ onPrimaryAction: m,
518
520
  primaryColor: "primary",
519
521
  primaryText: n.save_button,
520
522
  sx: {
@@ -526,12 +528,12 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
526
528
  "form",
527
529
  {
528
530
  onSubmit: (b) => {
529
- b.preventDefault(), u(), h();
531
+ b.preventDefault(), m(), u();
530
532
  },
531
533
  children: /* @__PURE__ */ e(
532
534
  Re,
533
535
  {
534
- error: !_,
536
+ error: !p,
535
537
  fullWidth: !0,
536
538
  inputMode: "numeric",
537
539
  inputProps: {
@@ -539,15 +541,15 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
539
541
  pattern: "[0-9]*"
540
542
  },
541
543
  onChange: (b) => d(Number(b.target.value)),
542
- value: _ ? c : ""
544
+ value: p ? c : ""
543
545
  }
544
546
  )
545
547
  }
546
548
  )
547
549
  }
548
550
  );
549
- }, Tt = v(Io), Ao = ({ chartFor: t }) => {
550
- const o = E(), n = o.palette.mode === "dark", { monthlySummaries: r } = F(), { user: s } = ee(), { finstrong: a } = x(), [l, { width: c }] = ft(), d = {
551
+ }, Rt = w(Oo), Ro = ({ chartFor: t }) => {
552
+ const o = E(), n = o.palette.mode === "dark", { monthlySummaries: r } = B(), { user: s } = ee(), { finstrong: a } = v(), [l, { width: c }] = xt(), d = {
551
553
  savingsOverTime: {
552
554
  icon: "trending_up",
553
555
  title: a.key_indicators_save.zero_state_title,
@@ -563,7 +565,7 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
563
565
  title: a.credit_over_time_title,
564
566
  description: a.credit_over_time_zero_state_desc
565
567
  }
566
- }[t], h = {
568
+ }[t], u = {
567
569
  savingsOverTime: {
568
570
  title: a.key_indicators_save.savings_over_time,
569
571
  valueKey: "available_cash"
@@ -576,62 +578,62 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
576
578
  title: a.credit_over_time_title,
577
579
  valueKey: "credit_score"
578
580
  }
579
- }[t], u = fn(r, h.valueKey), b = r.map((T) => T[h.valueKey]), S = Math.max(...b), C = Math.min(...b), f = () => S >= 1e6 ? { formatter: "0.000a", leftMargin: -7 } : S >= 1e3 ? { formatter: "0a", leftMargin: -27 } : { formatter: "0a", leftMargin: -32 }, { formatter: w, leftMargin: k } = f(), g = h.title, y = t === "creditOverTime";
580
- let $;
581
- if (y) {
582
- const { color: T } = pt(
581
+ }[t], m = xn(r, u.valueKey), b = r.map((D) => D[u.valueKey]), C = Math.max(...b), x = Math.min(...b), S = () => C >= 1e6 ? { formatter: "0.000a", leftMargin: -7 } : C >= 1e3 ? { formatter: "0a", leftMargin: -27 } : { formatter: "0a", leftMargin: -32 }, { formatter: y, leftMargin: k } = S(), g = u.title, f = t === "creditOverTime";
582
+ let A;
583
+ if (f) {
584
+ const { color: D } = ut(
583
585
  s?.credit_score ?? 0,
584
586
  n,
585
587
  a.credit_score_status
586
588
  );
587
- $ = T;
589
+ A = D;
588
590
  }
589
- const L = u.some((T) => T.y !== 0);
590
- return /* @__PURE__ */ e(Y, { ref: l, sx: { backgroundColor: "background.paper" }, children: L ? /* @__PURE__ */ i(p, { gap: 8, sx: { pl: 18 }, children: [
591
- /* @__PURE__ */ e(D, { sx: { pb: 8, pt: 16 }, variant: "h3", children: g }),
591
+ const L = m.some((D) => D.y !== 0);
592
+ return /* @__PURE__ */ e(V, { ref: l, sx: { backgroundColor: "background.paper" }, children: L ? /* @__PURE__ */ i(_, { gap: 8, sx: { pl: 18 }, children: [
593
+ /* @__PURE__ */ e(I, { sx: { pb: 8, pt: 16 }, variant: "h3", children: g }),
592
594
  /* @__PURE__ */ e(
593
595
  Ke,
594
596
  {
595
- areaColor: $,
597
+ areaColor: A,
596
598
  axisColor: o.palette.divider,
597
599
  baseline: "min",
598
600
  chartFor: t,
599
601
  colors: [o.palette.primary.main],
600
- curveType: y ? "linear" : "monotoneX",
601
- datasets: u ? [u] : [],
602
+ curveType: f ? "linear" : "monotoneX",
603
+ datasets: m ? [m] : [],
602
604
  height: 244,
603
- labelFontColor: y ? "text.primary" : "",
604
- labelFontSize: y ? 13 : void 0,
605
+ labelFontColor: f ? "text.primary" : "",
606
+ labelFontSize: f ? 13 : void 0,
605
607
  labels: [a.key_indicators_label],
606
- margin: { left: k, top: y ? 25 : 15, right: 20 },
607
- markStyles: (T) => y ? {
608
+ margin: { left: k, top: f ? 25 : 15, right: 20 },
609
+ markStyles: (D) => f ? {
608
610
  markLabelStyles: {
609
611
  marginLeft: 16,
610
- transform: T === u.length - 1 ? "translateX(-16px)" : "translateX(16px)",
612
+ transform: D === m.length - 1 ? "translateX(-16px)" : "translateX(16px)",
611
613
  fontWeight: 600,
612
614
  fill: o.palette.text.primary
613
615
  },
614
- stroke: $
616
+ stroke: A
615
617
  } : {},
616
- maxRange: y ? 850 : void 0,
618
+ maxRange: f ? 850 : void 0,
617
619
  minRange: (() => {
618
- if (y)
619
- return C < 300 ? 0 : 300;
620
+ if (f)
621
+ return x < 300 ? 0 : 300;
620
622
  })(),
621
623
  showArea: !0,
622
- showAverage: !y,
623
- showMark: !y,
624
- showMarkLabel: y,
624
+ showAverage: !f,
625
+ showMark: !f,
626
+ showMarkLabel: f,
625
627
  showXAxis: !0,
626
- showYAxis: y,
627
- showYAxisTicks: y,
628
+ showYAxis: f,
629
+ showYAxisTicks: f,
628
630
  useCustomMark: !0,
629
- valueFormatterString: y ? void 0 : w,
631
+ valueFormatterString: f ? void 0 : y,
630
632
  width: c < 342 ? c - 48 : 342
631
633
  }
632
634
  )
633
635
  ] }) : /* @__PURE__ */ e(
634
- Fe,
636
+ Le,
635
637
  {
636
638
  header: d.title,
637
639
  icon: d.icon,
@@ -651,12 +653,12 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
651
653
  variant: "no-buttons"
652
654
  }
653
655
  ) });
654
- }, Ye = v(Ao), To = () => {
655
- const { healthScoreChangeReports: t } = F(), { finstrong: o } = x(), { user: n } = ee(), { availableWidth: r } = An(), { isSmallMobile: s } = Xe(r), [a, l] = m.useState(!1), c = t.at(-1);
656
+ }, Ye = w(Ro), Lo = () => {
657
+ const { healthScoreChangeReports: t } = B(), { finstrong: o } = v(), { user: n } = ee(), { availableWidth: r } = An(), { isSmallMobile: s } = Xe(r), [a, l] = h.useState(!1), c = t.at(-1);
656
658
  return /* @__PURE__ */ i(M, { children: [
657
- /* @__PURE__ */ i(p, { sx: { gap: 28 }, children: [
659
+ /* @__PURE__ */ i(_, { sx: { gap: 28 }, children: [
658
660
  /* @__PURE__ */ e(
659
- Mo,
661
+ To,
660
662
  {
661
663
  arcRadius: s ? 124 : 154,
662
664
  footerCenterContent: c ? c.newer_credit_score - c.older_credit_score : 0,
@@ -664,23 +666,23 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
664
666
  size: s ? "M" : "L"
665
667
  }
666
668
  ),
667
- /* @__PURE__ */ e(B, { onClick: () => l(!0), variant: "contained", children: o.credit_score_updated_score }),
669
+ /* @__PURE__ */ e(P, { onClick: () => l(!0), variant: "contained", children: o.credit_score_updated_score }),
668
670
  /* @__PURE__ */ e(Ye, { chartFor: "creditOverTime" })
669
671
  ] }),
670
- /* @__PURE__ */ e(Tt, { isOpen: a, onClose: () => l(!1) })
672
+ /* @__PURE__ */ e(Rt, { isOpen: a, onClose: () => l(!1) })
671
673
  ] });
672
- }, Oo = v(To), Pe = ({ status: t }) => {
673
- const { finstrong: o } = x(), n = xn(Sn[t]), r = {
674
+ }, Fo = w(Lo), Pe = ({ status: t }) => {
675
+ const { finstrong: o } = v(), n = Sn(vn[t]), r = {
674
676
  GOOD: o.key_indicators_good,
675
677
  FAIR: o.key_indicators_fair,
676
678
  OFF_TRACK: o.key_indicators_off_track,
677
679
  MISSING: o.key_indicators_missing
678
680
  }[t];
679
681
  return /* @__PURE__ */ e(
680
- Pn,
682
+ En,
681
683
  {
682
684
  label: /* @__PURE__ */ e(
683
- D,
685
+ I,
684
686
  {
685
687
  fontWeight: 700,
686
688
  sx: { color: n.color, minHeight: 12 },
@@ -697,13 +699,13 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
697
699
  variant: "filled"
698
700
  }
699
701
  );
700
- }, Ro = () => {
701
- const { finstrong: t } = x(), { user: o } = ee(), n = _t(o.credit_score ?? null);
702
- return /* @__PURE__ */ i(p, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
703
- /* @__PURE__ */ e(X, { children: t.credit_score_keep_strong_credit_score }),
702
+ }, Bo = () => {
703
+ const { finstrong: t } = v(), { user: o } = ee(), n = ht(o.credit_score ?? null);
704
+ return /* @__PURE__ */ i(_, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
705
+ /* @__PURE__ */ e(K, { children: t.credit_score_keep_strong_credit_score }),
704
706
  /* @__PURE__ */ e(Pe, { status: n })
705
707
  ] });
706
- }, Fo = v(Ro), Lo = ({
708
+ }, Po = w(Bo), Wo = ({
707
709
  additionalContent: t,
708
710
  connectTitle: o,
709
711
  connectDescription: n,
@@ -713,175 +715,210 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
713
715
  isOpen: l,
714
716
  loadConnectAccountsCard: c = !0,
715
717
  onClose: d,
716
- stickyComponent: _,
717
- title: h,
718
- drawerType: u
718
+ stickyComponent: p,
719
+ title: u,
720
+ drawerType: m
719
721
  }) => {
720
- const { finstrong: b } = x(), { isCopyLoaded: S } = U();
721
- return S ? /* @__PURE__ */ e(oe, { isOpen: l, onClose: d, title: a || b.key_indicators, children: /* @__PURE__ */ i(p, { sx: { backgroundColor: "background.default", height: "100%" }, children: [
722
- (h || s) && /* @__PURE__ */ i(
723
- p,
724
- {
725
- sx: {
726
- backgroundColor: "background.paper",
727
- gap: 8,
728
- p: 24,
729
- pb: _ ? 0 : 24
730
- },
731
- children: [
732
- h && typeof h == "string" ? /* @__PURE__ */ e(X, { children: h }) : h,
733
- s && /* @__PURE__ */ e(D, { sx: { lineHeight: "24px" }, children: s })
734
- ]
735
- }
736
- ),
737
- _ && /* @__PURE__ */ e(
738
- M,
739
- {
740
- sx: {
741
- position: "sticky",
742
- top: 0,
743
- zIndex: 1
744
- },
745
- children: _
746
- }
747
- ),
748
- t && /* @__PURE__ */ e(M, { children: t }),
749
- /* @__PURE__ */ i(p, { sx: { bgcolor: "background.default", gap: 24, p: 24 }, children: [
750
- r,
751
- c && /* @__PURE__ */ e(
752
- Be,
753
- {
754
- description: n,
755
- drawerType: u,
756
- isDashboard: !0,
757
- sx: { backgroundColor: "background.paper" },
758
- title: o
722
+ const { finstrong: b } = v(), { isCopyLoaded: C } = J(), [x, S] = Fn(!1), y = Bn(null), k = nt(() => {
723
+ if (y.current) {
724
+ const f = y.current.scrollTop > 0;
725
+ S((A) => A !== f ? f : A);
726
+ }
727
+ }, []), g = nt(
728
+ (f) => {
729
+ if (y.current && y.current.removeEventListener("scroll", k), f) {
730
+ let A = f.parentElement;
731
+ for (; A; ) {
732
+ const { overflow: L, overflowY: D } = window.getComputedStyle(A);
733
+ if (L === "auto" || D === "auto" || L === "scroll" || D === "scroll") {
734
+ y.current = A, A.addEventListener("scroll", k, { passive: !0 });
735
+ break;
736
+ }
737
+ A = A.parentElement;
759
738
  }
760
- )
761
- ] })
762
- ] }) }) : /* @__PURE__ */ e(Q, {});
763
- }, Ot = v(Lo), Bo = ({
739
+ }
740
+ },
741
+ [k]
742
+ );
743
+ return ot(() => {
744
+ l || S(!1);
745
+ }, [l]), ot(() => () => {
746
+ y.current && y.current.removeEventListener("scroll", k);
747
+ }, [k]), C ? /* @__PURE__ */ e(oe, { isOpen: l, onClose: d, title: a || b.key_indicators, children: /* @__PURE__ */ i(
748
+ _,
749
+ {
750
+ ref: g,
751
+ sx: { backgroundColor: "background.default", height: "100%" },
752
+ children: [
753
+ (u || s) && /* @__PURE__ */ i(
754
+ _,
755
+ {
756
+ sx: {
757
+ backgroundColor: "background.paper",
758
+ gap: 8,
759
+ p: 24,
760
+ pb: p ? 0 : 24
761
+ },
762
+ children: [
763
+ u && typeof u == "string" ? /* @__PURE__ */ e(K, { children: u }) : u,
764
+ s && /* @__PURE__ */ e(I, { sx: { lineHeight: "24px" }, children: s })
765
+ ]
766
+ }
767
+ ),
768
+ p && /* @__PURE__ */ e(
769
+ M,
770
+ {
771
+ sx: {
772
+ position: "sticky",
773
+ top: 0,
774
+ zIndex: 1,
775
+ "& > *": {
776
+ borderBottom: x ? "1px solid" : "none",
777
+ borderColor: x ? "divider" : "transparent"
778
+ }
779
+ },
780
+ children: p
781
+ }
782
+ ),
783
+ t && /* @__PURE__ */ e(M, { children: t }),
784
+ /* @__PURE__ */ i(_, { sx: { bgcolor: "background.default", gap: 24, p: 24 }, children: [
785
+ r,
786
+ c && /* @__PURE__ */ e(
787
+ Be,
788
+ {
789
+ description: n,
790
+ drawerType: m,
791
+ isDashboard: !0,
792
+ sx: { backgroundColor: "background.paper" },
793
+ title: o
794
+ }
795
+ )
796
+ ] })
797
+ ]
798
+ }
799
+ ) }) : /* @__PURE__ */ e(U, {});
800
+ }, Lt = w(Wo), $o = ({
764
801
  onClick: t,
765
802
  shouldShowBalance: o = !0,
766
803
  loadAccounts: n
767
804
  }) => {
768
- const { config: r } = He(), { accounts: s } = x(), { selectedAccounts: a } = U(), l = m.useCallback(
805
+ const { config: r } = He(), { accounts: s } = v(), { selectedAccounts: a } = J(), l = h.useCallback(
769
806
  (d) => {
770
807
  t?.(d);
771
808
  },
772
809
  [t]
773
- ), c = m.useMemo(
810
+ ), c = h.useMemo(
774
811
  () => Array.from(new Set(a.map((d) => d.account_type))).filter(
775
812
  (d) => n ? n.includes(d) : !0
776
813
  ),
777
814
  [a, n]
778
815
  );
779
- return a.length ? /* @__PURE__ */ e(m.Fragment, { children: c.map((d) => {
780
- const { accountsForType: _, totalBalanceForType: h } = a.reduce(
781
- (u, b) => (b.account_type === d && (u.accountsForType.push(b), u.totalBalanceForType += b.balance || 0), u),
816
+ return a.length ? /* @__PURE__ */ e(h.Fragment, { children: c.map((d) => {
817
+ const { accountsForType: p, totalBalanceForType: u } = a.reduce(
818
+ (m, b) => (b.account_type === d && (m.accountsForType.push(b), m.totalBalanceForType += b.balance || 0), m),
782
819
  { accountsForType: [], totalBalanceForType: 0 }
783
820
  );
784
821
  return /* @__PURE__ */ i(
785
822
  Ee,
786
823
  {
787
- subheader: /* @__PURE__ */ e($n, { sx: { pb: 4, position: "static", pt: 12, px: 24 }, children: /* @__PURE__ */ i(p, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
788
- /* @__PURE__ */ e(I, { bold: !0, variant: "caption", children: s.account_types[d] }),
789
- o && /* @__PURE__ */ e(I, { bold: !0, variant: "caption", children: W(h, "0,0.00") })
824
+ subheader: /* @__PURE__ */ e(Gn, { sx: { pb: 4, position: "static", pt: 12, px: 24 }, children: /* @__PURE__ */ i(_, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
825
+ /* @__PURE__ */ e(T, { bold: !0, variant: "caption", children: s.account_types[d] }),
826
+ o && /* @__PURE__ */ e(T, { bold: !0, variant: "caption", children: $(u, "0,0.00") })
790
827
  ] }) }),
791
828
  sx: { bgcolor: "background.paper" },
792
829
  children: [
793
- _.map((u, b) => {
794
- const { firstValue: S } = St(u, s), C = bt(u, {
830
+ p.map((m, b) => {
831
+ const { firstValue: C } = Ct(m, s), x = vt(m, {
795
832
  allowNickname: r?.show_account_nicknames_in_master
796
- }), f = /* @__PURE__ */ i(N, { children: [
797
- /* @__PURE__ */ e(xt, { children: /* @__PURE__ */ e(st, { alt: "MX", institutionGuid: u.institution_guid ?? "" }) }),
833
+ }), S = /* @__PURE__ */ i(z, { children: [
834
+ /* @__PURE__ */ e(St, { children: /* @__PURE__ */ e(lt, { alt: "MX", institutionGuid: m.institution_guid ?? "" }) }),
798
835
  /* @__PURE__ */ e(
799
- fe,
836
+ be,
800
837
  {
801
- primary: `${C}${u.account_number ? ` *${u.account_number}` : ""}`,
838
+ primary: `${x}${m.account_number ? ` *${m.account_number}` : ""}`,
802
839
  primaryTypographyProps: { noWrap: !0, pr: 4, variant: "body1" }
803
840
  }
804
841
  ),
805
- o && /* @__PURE__ */ e(D, { bold: !0, variant: "body2", children: W(S ?? 0, "0,0.00") })
842
+ o && /* @__PURE__ */ e(I, { bold: !0, variant: "body2", children: $(C ?? 0, "0,0.00") })
806
843
  ] });
807
- return /* @__PURE__ */ i(m.Fragment, { children: [
808
- /* @__PURE__ */ e(be, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e(Wn, { onClick: () => l(u), children: f }) : f }),
809
- b !== _.length - 1 && /* @__PURE__ */ e(de, { variant: "inset" })
810
- ] }, u.guid);
844
+ return /* @__PURE__ */ i(h.Fragment, { children: [
845
+ /* @__PURE__ */ e(ye, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e(zn, { onClick: () => l(m), children: S }) : S }),
846
+ b !== p.length - 1 && /* @__PURE__ */ e(_e, { variant: "inset" })
847
+ ] }, m.guid);
811
848
  }),
812
- /* @__PURE__ */ e(de, {})
849
+ /* @__PURE__ */ e(_e, {})
813
850
  ]
814
851
  },
815
852
  d
816
853
  );
817
854
  }) }) : null;
818
- }, Rt = v(Bo), Po = ({ loadAccounts: t, loadMoreLabel: o }) => {
819
- const n = E(), { config: r } = He(), { connect: s, finstrong: a } = x(), { accounts: l } = x(), { selectedAccounts: c } = U(), [d, _] = m.useState(!1), [h, u] = m.useState(!1), b = m.useMemo(
855
+ }, Ft = w($o), Eo = ({ loadAccounts: t, loadMoreLabel: o }) => {
856
+ const n = E(), { config: r } = He(), { connect: s, finstrong: a } = v(), { accounts: l } = v(), { selectedAccounts: c } = J(), [d, p] = h.useState(!1), [u, m] = h.useState(!1), b = h.useMemo(
820
857
  () => c.filter(
821
- (f) => t ? t.includes(f.account_type) : !0
858
+ (S) => t ? t.includes(S.account_type) : !0
822
859
  ),
823
860
  [c, t]
824
- ), S = m.useMemo(() => b.slice(0, 3), [b]), C = (f) => {
825
- const { firstValue: w } = St(f, l);
826
- return w;
861
+ ), C = h.useMemo(() => b.slice(0, 3), [b]), x = (S) => {
862
+ const { firstValue: y } = Ct(S, l);
863
+ return y;
827
864
  };
828
- return b.length >= 1 ? /* @__PURE__ */ i(N, { children: [
829
- /* @__PURE__ */ e(M, { sx: { border: `1px solid ${n.palette.divider}`, borderRadius: 2 }, children: S.map((f, w) => /* @__PURE__ */ i(m.Fragment, { children: [
830
- /* @__PURE__ */ i(be, { sx: { px: 24 }, children: [
831
- /* @__PURE__ */ e(xt, { children: /* @__PURE__ */ e(st, { alt: "MX", institutionGuid: f.institution_guid ?? "" }) }),
865
+ return b.length >= 1 ? /* @__PURE__ */ i(z, { children: [
866
+ /* @__PURE__ */ e(M, { sx: { border: `1px solid ${n.palette.divider}`, borderRadius: 2 }, children: C.map((S, y) => /* @__PURE__ */ i(h.Fragment, { children: [
867
+ /* @__PURE__ */ i(ye, { sx: { px: 24 }, children: [
868
+ /* @__PURE__ */ e(St, { children: /* @__PURE__ */ e(lt, { alt: "MX", institutionGuid: S.institution_guid ?? "" }) }),
832
869
  /* @__PURE__ */ e(
833
- fe,
870
+ be,
834
871
  {
835
- primary: `${bt(f, {
872
+ primary: `${vt(S, {
836
873
  allowNickname: r?.show_account_nicknames_in_master
837
874
  })}
838
- ${f.account_number ? ` *${f.account_number}` : ""}`,
875
+ ${S.account_number ? ` *${S.account_number}` : ""}`,
839
876
  primaryTypographyProps: { noWrap: !0, pr: 4, variant: "body1" }
840
877
  }
841
878
  ),
842
- /* @__PURE__ */ e(D, { bold: !0, variant: "body2", children: W(C(f), "0,0.00") })
879
+ /* @__PURE__ */ e(I, { bold: !0, variant: "body2", children: $(x(S), "0,0.00") })
843
880
  ] }),
844
- w < S.length - 1 && /* @__PURE__ */ e(de, { variant: "inset" })
845
- ] }, f.guid)) }),
846
- b.length > 3 && /* @__PURE__ */ i(N, { children: [
881
+ y < C.length - 1 && /* @__PURE__ */ e(_e, { variant: "inset" })
882
+ ] }, S.guid)) }),
883
+ b.length > 3 && /* @__PURE__ */ i(z, { children: [
847
884
  /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
848
- B,
885
+ P,
849
886
  {
850
- endIcon: /* @__PURE__ */ e(J, {}),
851
- onClick: () => _(!0),
887
+ endIcon: /* @__PURE__ */ e(Z, {}),
888
+ onClick: () => p(!0),
852
889
  size: "small",
853
890
  sx: { my: 0, px: 16, py: 12, width: "100%" },
854
- children: /* @__PURE__ */ i(I, { bold: !0, variant: "body1", children: [
891
+ children: /* @__PURE__ */ i(T, { bold: !0, variant: "body1", children: [
855
892
  b.length - 3,
856
893
  " ",
857
894
  o
858
895
  ] })
859
896
  }
860
897
  ) }),
861
- /* @__PURE__ */ e(oe, { isOpen: d, onClose: () => _(!1), title: a.accounts, children: /* @__PURE__ */ e(Rt, { loadAccounts: t }) })
898
+ /* @__PURE__ */ e(oe, { isOpen: d, onClose: () => p(!1), title: a.accounts, children: /* @__PURE__ */ e(Ft, { loadAccounts: t }) })
862
899
  ] })
863
- ] }) : /* @__PURE__ */ i(N, { children: [
900
+ ] }) : /* @__PURE__ */ i(z, { children: [
864
901
  /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
865
- B,
902
+ P,
866
903
  {
867
- onClick: () => u(!0),
904
+ onClick: () => m(!0),
868
905
  size: "small",
869
906
  sx: { my: 0, px: 16, py: 12, width: "100%" },
870
907
  variant: "contained",
871
- children: /* @__PURE__ */ e(I, { bold: !0, variant: "body1", children: a.connect_more_accounts_button })
908
+ children: /* @__PURE__ */ e(T, { bold: !0, variant: "body1", children: a.connect_more_accounts_button })
872
909
  }
873
910
  ) }),
874
911
  /* @__PURE__ */ e(
875
912
  re,
876
913
  {
877
- onClose: () => u(!1),
878
- showConnectWidget: h,
914
+ onClose: () => m(!1),
915
+ showConnectWidget: u,
879
916
  title: s.mini_title
880
917
  }
881
918
  )
882
919
  ] });
883
- }, Ft = v(Po), Ce = ({ balance: t, title: o, sx: n }) => /* @__PURE__ */ i(
884
- p,
920
+ }, Bt = w(Eo), Se = ({ balance: t, title: o, sx: n }) => /* @__PURE__ */ i(
921
+ _,
885
922
  {
886
923
  sx: {
887
924
  alignItems: "center",
@@ -893,59 +930,59 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
893
930
  ...n
894
931
  },
895
932
  children: [
896
- typeof t == "number" ? /* @__PURE__ */ e(D, { variant: "h2", children: W(t, "0,0.00") }) : t,
897
- /* @__PURE__ */ e(D, { color: "text.secondary", fontWeight: "400", variant: "subtitle2", children: o })
933
+ typeof t == "number" ? /* @__PURE__ */ e(I, { variant: "h2", children: $(t, "0,0.00") }) : t,
934
+ /* @__PURE__ */ e(I, { color: "text.secondary", fontWeight: "400", variant: "subtitle2", children: o })
898
935
  ]
899
936
  }
900
937
  );
901
- var O = /* @__PURE__ */ ((t) => (t[t.ConnectAccounts = 1] = "ConnectAccounts", t[t.MonthlyIncome = 2] = "MonthlyIncome", t[t.Birthday = 3] = "Birthday", t[t.CreditScore = 4] = "CreditScore", t))(O || {}), De = /* @__PURE__ */ ((t) => (t[t.Months = 1] = "Months", t[t.Years = 2] = "Years", t[t.Days = 3] = "Days", t))(De || {}), Z = /* @__PURE__ */ ((t) => (t[t.Monthly = 1] = "Monthly", t[t.BiWeekly = 2] = "BiWeekly", t[t.Weekly = 3] = "Weekly", t[t.Daily = 4] = "Daily", t))(Z || {});
902
- const Wo = ({ total: t }) => {
903
- const { finstrong: o } = x(), n = [
904
- { id: Z.Monthly, label: o.maintain_emergency_savings_monthly },
905
- { id: Z.BiWeekly, label: o.maintain_emergency_savings_bi_weekly },
906
- { id: Z.Weekly, label: o.maintain_emergency_savings_weekly },
907
- { id: Z.Daily, label: o.maintain_emergency_savings_daily }
938
+ var R = /* @__PURE__ */ ((t) => (t[t.ConnectAccounts = 1] = "ConnectAccounts", t[t.MonthlyIncome = 2] = "MonthlyIncome", t[t.Birthday = 3] = "Birthday", t[t.CreditScore = 4] = "CreditScore", t))(R || {}), Me = /* @__PURE__ */ ((t) => (t[t.Months = 1] = "Months", t[t.Years = 2] = "Years", t[t.Days = 3] = "Days", t))(Me || {}), Q = /* @__PURE__ */ ((t) => (t[t.Monthly = 1] = "Monthly", t[t.BiWeekly = 2] = "BiWeekly", t[t.Weekly = 3] = "Weekly", t[t.Daily = 4] = "Daily", t))(Q || {});
939
+ const zo = ({ total: t }) => {
940
+ const { finstrong: o } = v(), n = [
941
+ { id: Q.Monthly, label: o.maintain_emergency_savings_monthly },
942
+ { id: Q.BiWeekly, label: o.maintain_emergency_savings_bi_weekly },
943
+ { id: Q.Weekly, label: o.maintain_emergency_savings_weekly },
944
+ { id: Q.Daily, label: o.maintain_emergency_savings_daily }
908
945
  ], r = {
909
- [Z.Monthly]: o.maintain_emergency_savings_estimated_period_monthly,
910
- [Z.BiWeekly]: o.maintain_emergency_savings_estimated_period_bi_weekly,
911
- [Z.Weekly]: o.maintain_emergency_savings_estimated_period_weekly,
912
- [Z.Daily]: o.maintain_emergency_savings_estimated_period_daily
946
+ [Q.Monthly]: o.maintain_emergency_savings_estimated_period_monthly,
947
+ [Q.BiWeekly]: o.maintain_emergency_savings_estimated_period_bi_weekly,
948
+ [Q.Weekly]: o.maintain_emergency_savings_estimated_period_weekly,
949
+ [Q.Daily]: o.maintain_emergency_savings_estimated_period_daily
913
950
  }, s = [
914
- { id: De.Months, label: o.maintain_emergency_savings_months },
915
- { id: De.Years, label: o.maintain_emergency_savings_years },
916
- { id: De.Days, label: o.maintain_emergency_savings_days }
917
- ], a = Math.ceil((t + 1) / 1e3) * 1e3, [l, c] = m.useState(0), [d, _] = m.useState(Je(t)), [h, u] = m.useState(
951
+ { id: Me.Months, label: o.maintain_emergency_savings_months },
952
+ { id: Me.Years, label: o.maintain_emergency_savings_years },
953
+ { id: Me.Days, label: o.maintain_emergency_savings_days }
954
+ ], a = Math.ceil((t + 1) / 1e3) * 1e3, [l, c] = h.useState(0), [d, p] = h.useState(Je(t)), [u, m] = h.useState(
918
955
  Je(t)
919
- ), [b, S] = m.useState(a), [C, f] = m.useState(Cn(t)), [w, k] = m.useState(De.Months);
920
- m.useEffect(() => {
956
+ ), [b, C] = h.useState(a), [x, S] = h.useState(Cn(t)), [y, k] = h.useState(Me.Months);
957
+ h.useEffect(() => {
921
958
  c(
922
959
  et({
923
- contribution: h,
960
+ contribution: u,
924
961
  goalAmount: b,
925
- goalPeriod: C,
926
- targetPeriod: w,
962
+ goalPeriod: x,
963
+ targetPeriod: y,
927
964
  totalSaved: t
928
965
  })
929
- ), _(h);
966
+ ), p(u);
930
967
  }, []);
931
- const g = (y) => {
932
- y.preventDefault(), c(
968
+ const g = (f) => {
969
+ f.preventDefault(), c(
933
970
  et({
934
- contribution: h,
971
+ contribution: u,
935
972
  goalAmount: b,
936
- goalPeriod: C,
937
- targetPeriod: w,
973
+ goalPeriod: x,
974
+ targetPeriod: y,
938
975
  totalSaved: t
939
976
  })
940
- ), _(h);
977
+ ), p(u);
941
978
  };
942
- return /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e("form", { onSubmit: g, children: /* @__PURE__ */ i(p, { sx: { gap: 24, pb: 24, pt: 16, px: 16 }, children: [
979
+ return /* @__PURE__ */ e(V, { children: /* @__PURE__ */ e("form", { onSubmit: g, children: /* @__PURE__ */ i(_, { sx: { gap: 24, pb: 24, pt: 16, px: 16 }, children: [
943
980
  /* @__PURE__ */ e(
944
- Ce,
981
+ Se,
945
982
  {
946
- balance: /* @__PURE__ */ i(p, { sx: { flexDirection: "row", height: 32 }, children: [
947
- /* @__PURE__ */ e(I, { variant: "h2", children: W(l, "0,0") }),
948
- /* @__PURE__ */ i(I, { sx: { alignSelf: "end", height: 24 }, variant: "subtitle2", children: [
983
+ balance: /* @__PURE__ */ i(_, { sx: { flexDirection: "row", height: 32 }, children: [
984
+ /* @__PURE__ */ e(T, { variant: "h2", children: $(l, "0,0") }),
985
+ /* @__PURE__ */ i(T, { sx: { alignSelf: "end", height: 24 }, variant: "subtitle2", children: [
949
986
  "/",
950
987
  r[d]
951
988
  ] })
@@ -957,32 +994,32 @@ const Wo = ({ total: t }) => {
957
994
  Re,
958
995
  {
959
996
  "aria-label": o.maintain_emergency_savings_savings_goal,
960
- helperText: V(
997
+ helperText: j(
961
998
  o.maintain_emergency_savings_suggested_goal,
962
- W(a, "0,0")
999
+ $(a, "0,0")
963
1000
  ),
964
1001
  inputProps: {
965
1002
  noValidate: !0,
966
1003
  pattern: "[0-9]*"
967
1004
  },
968
1005
  label: o.maintain_emergency_savings_savings_goal,
969
- onChange: (y) => {
970
- y.target.value && S(Number(y.target.value.replace(/[^0-9]/g, "")));
1006
+ onChange: (f) => {
1007
+ f.target.value && C(Number(f.target.value.replace(/[^0-9]/g, "")));
971
1008
  },
972
- value: b ? W(b, "0,0") : ""
1009
+ value: b ? $(b, "0,0") : ""
973
1010
  }
974
1011
  ),
975
1012
  /* @__PURE__ */ e(
976
- nt,
1013
+ rt,
977
1014
  {
978
1015
  label: o.maintain_emergency_savings_how_often_contribute,
979
- onChange: u,
1016
+ onChange: m,
980
1017
  options: n,
981
1018
  required: !0,
982
- value: h
1019
+ value: u
983
1020
  }
984
1021
  ),
985
- /* @__PURE__ */ i(p, { sx: { flexDirection: "row" }, children: [
1022
+ /* @__PURE__ */ i(_, { sx: { flexDirection: "row" }, children: [
986
1023
  /* @__PURE__ */ e(
987
1024
  Re,
988
1025
  {
@@ -993,8 +1030,8 @@ const Wo = ({ total: t }) => {
993
1030
  pattern: "[0-9]*"
994
1031
  },
995
1032
  label: o.maintain_emergency_savings_meet_your_goal_within,
996
- onChange: (y) => {
997
- isNaN(Number(y.target.value)) || f(Number(y.target.value));
1033
+ onChange: (f) => {
1034
+ isNaN(Number(f.target.value)) || S(Number(f.target.value));
998
1035
  },
999
1036
  sx: {
1000
1037
  "& .MuiInputBase-root": {
@@ -1005,7 +1042,7 @@ const Wo = ({ total: t }) => {
1005
1042
  }
1006
1043
  }
1007
1044
  },
1008
- value: C
1045
+ value: x
1009
1046
  }
1010
1047
  ),
1011
1048
  /* @__PURE__ */ e(
@@ -1020,29 +1057,29 @@ const Wo = ({ total: t }) => {
1020
1057
  }
1021
1058
  }
1022
1059
  },
1023
- children: /* @__PURE__ */ e(nt, { label: "", onChange: k, options: s, value: w })
1060
+ children: /* @__PURE__ */ e(rt, { label: "", onChange: k, options: s, value: y })
1024
1061
  }
1025
1062
  )
1026
1063
  ] }),
1027
- /* @__PURE__ */ e(B, { fullWidth: !0, onClick: g, type: "submit", variant: "contained", children: o.maintain_emergency_savings_calculate })
1064
+ /* @__PURE__ */ e(P, { fullWidth: !0, onClick: g, type: "submit", variant: "contained", children: o.maintain_emergency_savings_calculate })
1028
1065
  ] }) }) });
1029
- }, $o = v(Wo), zo = () => {
1030
- const { savingsAccounts: t } = Se(), { finstrong: o } = x(), [n, r] = m.useState(!1), s = m.useMemo(
1066
+ }, Go = w(zo), Ho = () => {
1067
+ const { savingsAccounts: t } = xe(), { finstrong: o } = v(), [n, r] = h.useState(!1), s = h.useMemo(
1031
1068
  () => t.reduce((a, l) => a + (l.balance ?? 0), 0),
1032
1069
  [t]
1033
1070
  );
1034
- return /* @__PURE__ */ i(p, { sx: { gap: 24 }, children: [
1035
- /* @__PURE__ */ e(Y, { sx: { bgcolor: "background.paper", p: 16 }, children: /* @__PURE__ */ i(p, { sx: { gap: 16 }, children: [
1036
- /* @__PURE__ */ e(Ce, { balance: s, title: o.maintain_emergency_savings_your_savings }),
1071
+ return /* @__PURE__ */ i(_, { sx: { gap: 24 }, children: [
1072
+ /* @__PURE__ */ e(V, { sx: { bgcolor: "background.paper", p: 16 }, children: /* @__PURE__ */ i(_, { sx: { gap: 16 }, children: [
1073
+ /* @__PURE__ */ e(Se, { balance: s, title: o.maintain_emergency_savings_your_savings }),
1037
1074
  t.length ? /* @__PURE__ */ e(
1038
- Ft,
1075
+ Bt,
1039
1076
  {
1040
1077
  loadAccounts: [ze.SAVINGS],
1041
1078
  loadMoreLabel: o.connect_more_accounts_button
1042
1079
  }
1043
- ) : /* @__PURE__ */ e(B, { onClick: () => r(!0), variant: "contained", children: o.connect_more_accounts_button })
1080
+ ) : /* @__PURE__ */ e(P, { onClick: () => r(!0), variant: "contained", children: o.connect_more_accounts_button })
1044
1081
  ] }) }),
1045
- /* @__PURE__ */ e($o, { total: s }),
1082
+ /* @__PURE__ */ e(Go, { total: s }),
1046
1083
  /* @__PURE__ */ e(
1047
1084
  re,
1048
1085
  {
@@ -1052,7 +1089,7 @@ const Wo = ({ total: t }) => {
1052
1089
  }
1053
1090
  )
1054
1091
  ] });
1055
- }, Eo = v(zo), We = v(
1092
+ }, No = w(Ho), We = w(
1056
1093
  ({ label: t, value: o, status: n, bottomComponent: r, statusBarData: s = [] }) => {
1057
1094
  const a = {
1058
1095
  GOOD: {
@@ -1075,7 +1112,7 @@ const Wo = ({ total: t }) => {
1075
1112
  percentage: c.percentage
1076
1113
  });
1077
1114
  return /* @__PURE__ */ i(
1078
- p,
1115
+ _,
1079
1116
  {
1080
1117
  sx: {
1081
1118
  backgroundColor: "background.paper",
@@ -1085,10 +1122,10 @@ const Wo = ({ total: t }) => {
1085
1122
  borderColor: "divider"
1086
1123
  },
1087
1124
  children: [
1088
- /* @__PURE__ */ i(p, { sx: { gap: 2 }, children: [
1089
- /* @__PURE__ */ e(I, { variant: "body2", children: t }),
1125
+ /* @__PURE__ */ i(_, { sx: { gap: 2 }, children: [
1126
+ /* @__PURE__ */ e(T, { variant: "body2", children: t }),
1090
1127
  /* @__PURE__ */ i(
1091
- p,
1128
+ _,
1092
1129
  {
1093
1130
  sx: {
1094
1131
  alignItems: "center",
@@ -1097,30 +1134,30 @@ const Wo = ({ total: t }) => {
1097
1134
  justifyContent: "space-between"
1098
1135
  },
1099
1136
  children: [
1100
- /* @__PURE__ */ e(Le, { children: o }),
1137
+ /* @__PURE__ */ e(Fe, { children: o }),
1101
1138
  /* @__PURE__ */ e(Pe, { status: n })
1102
1139
  ]
1103
1140
  }
1104
1141
  )
1105
1142
  ] }),
1106
- /* @__PURE__ */ i(p, { children: [
1107
- /* @__PURE__ */ e(En, { data: l, height: 16 }),
1143
+ /* @__PURE__ */ i(_, { children: [
1144
+ /* @__PURE__ */ e(Nn, { data: l, height: 16 }),
1108
1145
  r
1109
1146
  ] })
1110
1147
  ]
1111
1148
  }
1112
1149
  );
1113
1150
  }
1114
- ), Go = {
1151
+ ), jo = {
1115
1152
  sticky_label: "You have saved"
1116
- }, Ho = ["$0", "$250", "$500", "$750", "$1k"], No = () => {
1117
- const { healthScore: t } = F(), o = Math.round(t.emergency_savings_on_hand ?? NaN) || null, n = vn(o), r = ut(o);
1153
+ }, Ko = ["$0", "$250", "$500", "$750", "$1k"], Vo = () => {
1154
+ const { healthScore: t } = B(), o = Math.round(t.emergency_savings_on_hand ?? NaN) || null, n = wn(o), r = mt(o);
1118
1155
  return /* @__PURE__ */ e(
1119
1156
  We,
1120
1157
  {
1121
- bottomComponent: /* @__PURE__ */ e(p, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: Ho.map((s) => /* @__PURE__ */ i(p, { sx: { alignItems: "center", height: 24, width: 30 }, children: [
1158
+ bottomComponent: /* @__PURE__ */ e(_, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: Ko.map((s) => /* @__PURE__ */ i(_, { sx: { alignItems: "center", height: 24, width: 30 }, children: [
1122
1159
  /* @__PURE__ */ e(
1123
- de,
1160
+ _e,
1124
1161
  {
1125
1162
  orientation: "vertical",
1126
1163
  sx: {
@@ -1130,55 +1167,55 @@ const Wo = ({ total: t }) => {
1130
1167
  }
1131
1168
  }
1132
1169
  ),
1133
- /* @__PURE__ */ e(I, { variant: "caption", children: s })
1170
+ /* @__PURE__ */ e(T, { variant: "caption", children: s })
1134
1171
  ] }, s)) }),
1135
- label: Go.sticky_label,
1172
+ label: jo.sticky_label,
1136
1173
  status: r,
1137
1174
  statusBarData: [
1138
1175
  {
1139
1176
  percentage: n
1140
1177
  }
1141
1178
  ],
1142
- value: W(o ?? 0, "0,0.00")
1179
+ value: $(o ?? 0, "0,0.00")
1143
1180
  }
1144
1181
  );
1145
- }, jo = v(No), $e = ({
1182
+ }, Xo = w(Vo), $e = ({
1146
1183
  transactions: t = [],
1147
1184
  amountColor: o = "success.main",
1148
1185
  amountPosition: n = "center",
1149
- formatDate: r = wt,
1186
+ formatDate: r = Mt,
1150
1187
  secondaryIcon: s
1151
1188
  }) => {
1152
- const a = E(), { connect: l, finstrong: c, categories: d } = x(), [_, h] = m.useState(!1), [u, b] = m.useState(!1), { getCategoryName: S } = Ne(), C = 3, f = t.length > C, w = t.length - C;
1189
+ const a = E(), { connect: l, finstrong: c, categories: d } = v(), [p, u] = h.useState(!1), [m, b] = h.useState(!1), { getCategoryName: C } = Ne(), x = 3, S = t.length > x, y = t.length - x;
1153
1190
  let k = t;
1154
- return f && (k = t.map((g) => ({
1191
+ return S && (k = t.map((g) => ({
1155
1192
  ...g,
1156
1193
  category: d.default_categories[g.top_level_category_guid]?.replace(
1157
1194
  /&amp;/g,
1158
1195
  "&"
1159
- ) ?? S(g.top_level_category_guid)
1160
- })).sort((g, y) => y.date - g.date)), !t || t.length === 0 ? /* @__PURE__ */ i(N, { children: [
1196
+ ) ?? C(g.top_level_category_guid)
1197
+ })).sort((g, f) => f.date - g.date)), !t || t.length === 0 ? /* @__PURE__ */ i(z, { children: [
1161
1198
  /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
1162
- B,
1199
+ P,
1163
1200
  {
1164
1201
  onClick: () => b(!0),
1165
1202
  size: "small",
1166
1203
  sx: { my: 0, px: 16, py: 12, width: "100%" },
1167
1204
  variant: "contained",
1168
- children: /* @__PURE__ */ e(I, { bold: !0, variant: "body1", children: c.connect_more_accounts_button })
1205
+ children: /* @__PURE__ */ e(T, { bold: !0, variant: "body1", children: c.connect_more_accounts_button })
1169
1206
  }
1170
1207
  ) }),
1171
1208
  /* @__PURE__ */ e(
1172
1209
  re,
1173
1210
  {
1174
1211
  onClose: () => b(!1),
1175
- showConnectWidget: u,
1212
+ showConnectWidget: m,
1176
1213
  title: l.mini_title
1177
1214
  }
1178
1215
  )
1179
- ] }) : /* @__PURE__ */ i(p, { sx: { gap: 16 }, children: [
1180
- /* @__PURE__ */ e(M, { sx: { border: `1px solid ${a.palette.divider}`, borderRadius: 2 }, children: t.slice(0, C).sort((g, y) => y.date - g.date).map((g, y) => /* @__PURE__ */ i(
1181
- p,
1216
+ ] }) : /* @__PURE__ */ i(_, { sx: { gap: 16 }, children: [
1217
+ /* @__PURE__ */ e(M, { sx: { border: `1px solid ${a.palette.divider}`, borderRadius: 2 }, children: t.slice(0, x).sort((g, f) => f.date - g.date).map((g, f) => /* @__PURE__ */ i(
1218
+ _,
1182
1219
  {
1183
1220
  sx: {
1184
1221
  alignItems: "center",
@@ -1188,8 +1225,8 @@ const Wo = ({ total: t }) => {
1188
1225
  pt: 14
1189
1226
  },
1190
1227
  children: [
1191
- /* @__PURE__ */ e(p, { sx: { pb: 14 }, children: /* @__PURE__ */ e(
1192
- tn,
1228
+ /* @__PURE__ */ e(_, { sx: { pb: 14 }, children: /* @__PURE__ */ e(
1229
+ nn,
1193
1230
  {
1194
1231
  categoryGuid: g.top_level_category_guid || "",
1195
1232
  merchantGuid: g.merchant_guid || "",
@@ -1197,14 +1234,14 @@ const Wo = ({ total: t }) => {
1197
1234
  }
1198
1235
  ) }),
1199
1236
  /* @__PURE__ */ i(
1200
- p,
1237
+ _,
1201
1238
  {
1202
1239
  sx: {
1203
1240
  alignItems: n,
1204
1241
  flexDirection: "row",
1205
1242
  gap: 12,
1206
1243
  justifyContent: "space-between",
1207
- ...y < Math.min(t.length, C) - 1 && {
1244
+ ...f < Math.min(t.length, x) - 1 && {
1208
1245
  borderBottom: `1px solid ${a.palette.divider}`
1209
1246
  },
1210
1247
  pb: 13,
@@ -1212,32 +1249,32 @@ const Wo = ({ total: t }) => {
1212
1249
  width: "100%"
1213
1250
  },
1214
1251
  children: [
1215
- /* @__PURE__ */ i(p, { children: [
1216
- /* @__PURE__ */ e(D, { bold: !0, variant: "body1", children: g.description }),
1217
- /* @__PURE__ */ i(p, { sx: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
1252
+ /* @__PURE__ */ i(_, { children: [
1253
+ /* @__PURE__ */ e(I, { bold: !0, variant: "body1", children: g.description }),
1254
+ /* @__PURE__ */ i(_, { sx: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
1218
1255
  !!s && s,
1219
- /* @__PURE__ */ e(I, { variant: "caption", children: r(g.date) })
1256
+ /* @__PURE__ */ e(T, { variant: "caption", children: r(g.date) })
1220
1257
  ] })
1221
1258
  ] }),
1222
- /* @__PURE__ */ e(D, { bold: !0, sx: { color: o, flexShrink: 0 }, variant: "body1", children: W(g.amount, "0,0.00") })
1259
+ /* @__PURE__ */ e(I, { bold: !0, sx: { color: o, flexShrink: 0 }, variant: "body1", children: $(g.amount, "0,0.00") })
1223
1260
  ]
1224
1261
  },
1225
- g.guid || y
1262
+ g.guid || f
1226
1263
  )
1227
1264
  ]
1228
1265
  },
1229
- y
1266
+ f
1230
1267
  )) }),
1231
- f && /* @__PURE__ */ i(N, { children: [
1268
+ S && /* @__PURE__ */ i(z, { children: [
1232
1269
  /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
1233
- B,
1270
+ P,
1234
1271
  {
1235
- endIcon: /* @__PURE__ */ e(J, {}),
1236
- onClick: () => h(!0),
1272
+ endIcon: /* @__PURE__ */ e(Z, {}),
1273
+ onClick: () => u(!0),
1237
1274
  size: "small",
1238
1275
  sx: { my: 0, px: 16, py: 12, width: "100%" },
1239
- children: /* @__PURE__ */ i(I, { bold: !0, variant: "body1", children: [
1240
- w,
1276
+ children: /* @__PURE__ */ i(T, { bold: !0, variant: "body1", children: [
1277
+ y,
1241
1278
  " ",
1242
1279
  c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_more_transactions
1243
1280
  ] })
@@ -1246,24 +1283,24 @@ const Wo = ({ total: t }) => {
1246
1283
  /* @__PURE__ */ e(
1247
1284
  oe,
1248
1285
  {
1249
- isOpen: _,
1250
- onClose: () => h(!1),
1286
+ isOpen: p,
1287
+ onClose: () => u(!1),
1251
1288
  title: c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_transactions,
1252
- children: /* @__PURE__ */ e(Gn, { transaction: k })
1289
+ children: /* @__PURE__ */ e(jn, { transaction: k })
1253
1290
  }
1254
1291
  )
1255
1292
  ] })
1256
1293
  ] });
1257
- }, Ko = () => {
1258
- const [t, o] = m.useState(!0), {
1294
+ }, Yo = () => {
1295
+ const [t, o] = h.useState(!0), {
1259
1296
  finstrong: {
1260
1297
  key_indicators_spend: { pay_bills_on_time_drawer: n }
1261
1298
  }
1262
- } = x(), { getSpendingFeeTransactions: r, allTransactions: s } = F();
1263
- return m.useEffect(() => {
1299
+ } = v(), { getSpendingFeeTransactions: r, allTransactions: s } = B();
1300
+ return h.useEffect(() => {
1264
1301
  r().finally(() => o(!1));
1265
- }, []), t ? /* @__PURE__ */ e(Q, {}) : /* @__PURE__ */ e(N, { children: s.spendingFee.length === 0 ? /* @__PURE__ */ i(
1266
- Y,
1302
+ }, []), t ? /* @__PURE__ */ e(U, {}) : /* @__PURE__ */ e(z, { children: s.spendingFee.length === 0 ? /* @__PURE__ */ i(
1303
+ V,
1267
1304
  {
1268
1305
  sx: {
1269
1306
  backgroundColor: "background.paper",
@@ -1274,15 +1311,15 @@ const Wo = ({ total: t }) => {
1274
1311
  width: "100%"
1275
1312
  },
1276
1313
  children: [
1277
- /* @__PURE__ */ e(sn, { filled: !0, size: 48, sx: { color: "success.main" } }),
1278
- /* @__PURE__ */ i(p, { sx: { alignItems: "center", gap: 4, pt: 24 }, children: [
1279
- /* @__PURE__ */ e(X, { children: n.pay_bills_on_time_zero_fees_title }),
1280
- /* @__PURE__ */ e(D, { variant: "subtitle1", children: n.pay_bills_on_time_zero_fees_description })
1314
+ /* @__PURE__ */ e(cn, { filled: !0, size: 48, sx: { color: "success.main" } }),
1315
+ /* @__PURE__ */ i(_, { sx: { alignItems: "center", gap: 4, pt: 24 }, children: [
1316
+ /* @__PURE__ */ e(K, { children: n.pay_bills_on_time_zero_fees_title }),
1317
+ /* @__PURE__ */ e(I, { variant: "subtitle1", children: n.pay_bills_on_time_zero_fees_description })
1281
1318
  ] })
1282
1319
  ]
1283
1320
  }
1284
1321
  ) : /* @__PURE__ */ i(
1285
- Y,
1322
+ V,
1286
1323
  {
1287
1324
  sx: {
1288
1325
  p: 16,
@@ -1290,24 +1327,24 @@ const Wo = ({ total: t }) => {
1290
1327
  backgroundColor: "background.paper"
1291
1328
  },
1292
1329
  children: [
1293
- /* @__PURE__ */ e(X, { sx: { textAlign: "left", pb: 16 }, children: n.pay_bills_on_time_sticky_fee_count }),
1330
+ /* @__PURE__ */ e(K, { sx: { textAlign: "left", pb: 16 }, children: n.pay_bills_on_time_sticky_fee_count }),
1294
1331
  /* @__PURE__ */ e(
1295
1332
  $e,
1296
1333
  {
1297
1334
  amountColor: "text.primary",
1298
1335
  amountPosition: "flex-start",
1299
- formatDate: (a) => Ln(new Date(a * 1e3), Bn.MONTH_DAY),
1300
- secondaryIcon: /* @__PURE__ */ e(cn, { color: "error", filled: !0, size: 12 }),
1336
+ formatDate: (a) => Wn(new Date(a * 1e3), $n.MONTH_DAY),
1337
+ secondaryIcon: /* @__PURE__ */ e(ln, { color: "error", filled: !0, size: 12 }),
1301
1338
  transactions: s.spendingFee
1302
1339
  }
1303
1340
  )
1304
1341
  ]
1305
1342
  }
1306
1343
  ) });
1307
- }, Vo = v(Ko), Xo = () => {
1308
- const { healthScore: t } = F(), { finstrong: o } = x(), { key_indicators_spend: n } = o, { pay_bills_on_time_drawer: r } = n, s = wn(t.spending_fee_transaction_count);
1344
+ }, qo = w(Yo), Uo = () => {
1345
+ const { healthScore: t } = B(), { finstrong: o } = v(), { key_indicators_spend: n } = o, { pay_bills_on_time_drawer: r } = n, s = kn(t.spending_fee_transaction_count);
1309
1346
  return /* @__PURE__ */ i(
1310
- p,
1347
+ _,
1311
1348
  {
1312
1349
  sx: {
1313
1350
  p: 24,
@@ -1316,9 +1353,9 @@ const Wo = ({ total: t }) => {
1316
1353
  borderColor: "divider"
1317
1354
  },
1318
1355
  children: [
1319
- /* @__PURE__ */ e(D, { variant: "body2", children: r.pay_bills_on_time_sticky_description }),
1320
- /* @__PURE__ */ i(p, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
1321
- /* @__PURE__ */ i(Le, { children: [
1356
+ /* @__PURE__ */ e(I, { variant: "body2", children: r.pay_bills_on_time_sticky_description }),
1357
+ /* @__PURE__ */ i(_, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
1358
+ /* @__PURE__ */ i(Fe, { children: [
1322
1359
  t.spending_fee_transaction_count,
1323
1360
  " ",
1324
1361
  r.pay_bills_on_time_sticky_fee_count
@@ -1328,53 +1365,53 @@ const Wo = ({ total: t }) => {
1328
1365
  ]
1329
1366
  }
1330
1367
  );
1331
- }, Yo = v(Xo), qo = () => {
1332
- const { savingsAndCheckingAccountsBalance: t } = Se(), { finstrong: o } = x();
1333
- return /* @__PURE__ */ i(p, { gap: 16, sx: { p: 16 }, children: [
1368
+ }, Qo = w(Uo), Zo = () => {
1369
+ const { savingsAndCheckingAccountsBalance: t } = xe(), { finstrong: o } = v();
1370
+ return /* @__PURE__ */ i(_, { gap: 16, sx: { p: 16 }, children: [
1334
1371
  /* @__PURE__ */ e(
1335
- Ce,
1372
+ Se,
1336
1373
  {
1337
1374
  balance: t,
1338
1375
  title: o.key_indicators_save.drawer_available_balance
1339
1376
  }
1340
1377
  ),
1341
1378
  /* @__PURE__ */ e(
1342
- Ft,
1379
+ Bt,
1343
1380
  {
1344
1381
  loadAccounts: [ze.SAVINGS, ze.CHECKING],
1345
1382
  loadMoreLabel: o.more_accounts
1346
1383
  }
1347
1384
  )
1348
1385
  ] });
1349
- }, Uo = v(qo), Qo = () => {
1350
- const { finstrong: t } = x(), {
1386
+ }, Jo = w(Zo), er = () => {
1387
+ const { finstrong: t } = v(), {
1351
1388
  isSpendingInitialized: o,
1352
1389
  healthScore: n,
1353
1390
  allTransactions: r,
1354
1391
  loadSpendTransactions: s,
1355
1392
  loadDebtSpend: a
1356
- } = F();
1357
- m.useEffect(() => {
1393
+ } = B();
1394
+ h.useEffect(() => {
1358
1395
  o || (s().finally(), a().finally());
1359
1396
  }, [o]);
1360
- const l = m.useMemo(() => {
1361
- const c = r.spend.map((_) => _.transaction), d = r.debtSpend.map((_) => _.transaction);
1397
+ const l = h.useMemo(() => {
1398
+ const c = r.spend.map((p) => p.transaction), d = r.debtSpend.map((p) => p.transaction);
1362
1399
  return [...c, ...d];
1363
1400
  }, [r.spend, r.debtSpend]);
1364
- return o ? /* @__PURE__ */ i(p, { gap: 16, sx: { p: 16 }, children: [
1401
+ return o ? /* @__PURE__ */ i(_, { gap: 16, sx: { p: 16 }, children: [
1365
1402
  /* @__PURE__ */ e(
1366
- Ce,
1403
+ Se,
1367
1404
  {
1368
1405
  balance: n.ninety_day_spend / 90,
1369
1406
  title: t.key_indicators_save.drawer_daily_spend
1370
1407
  }
1371
1408
  ),
1372
1409
  /* @__PURE__ */ e($e, { amountColor: "text.primary", transactions: l })
1373
- ] }) : /* @__PURE__ */ e(Q, {});
1374
- }, Zo = v(Qo), Jo = () => {
1375
- const [t, o] = m.useState(0), { finstrong: n } = x();
1376
- return /* @__PURE__ */ i(N, { children: [
1377
- /* @__PURE__ */ i(Y, { children: [
1410
+ ] }) : /* @__PURE__ */ e(U, {});
1411
+ }, tr = w(er), nr = () => {
1412
+ const [t, o] = h.useState(0), { finstrong: n } = v();
1413
+ return /* @__PURE__ */ i(z, { children: [
1414
+ /* @__PURE__ */ i(V, { children: [
1378
1415
  /* @__PURE__ */ i(
1379
1416
  Ve,
1380
1417
  {
@@ -1387,7 +1424,7 @@ const Wo = ({ total: t }) => {
1387
1424
  variant: "fullWidth",
1388
1425
  children: [
1389
1426
  /* @__PURE__ */ e(
1390
- ce,
1427
+ de,
1391
1428
  {
1392
1429
  "aria-controls": "available-details-tabpanel-0",
1393
1430
  label: n.key_indicators_save.drawer_available,
@@ -1395,7 +1432,7 @@ const Wo = ({ total: t }) => {
1395
1432
  }
1396
1433
  ),
1397
1434
  /* @__PURE__ */ e(
1398
- ce,
1435
+ de,
1399
1436
  {
1400
1437
  "aria-controls": "spending-details-tabpanel-1",
1401
1438
  label: n.key_indicators_save.drawer_spending,
@@ -1405,18 +1442,18 @@ const Wo = ({ total: t }) => {
1405
1442
  ]
1406
1443
  }
1407
1444
  ),
1408
- /* @__PURE__ */ e(le, { index: 0, name: "available-details", value: t, children: /* @__PURE__ */ e(Uo, {}) }),
1409
- /* @__PURE__ */ e(le, { index: 1, name: "spending-details", value: t, children: /* @__PURE__ */ e(Zo, {}) })
1445
+ /* @__PURE__ */ e(pe, { index: 0, name: "available-details", value: t, children: /* @__PURE__ */ e(Jo, {}) }),
1446
+ /* @__PURE__ */ e(pe, { index: 1, name: "spending-details", value: t, children: /* @__PURE__ */ e(tr, {}) })
1410
1447
  ] }),
1411
1448
  /* @__PURE__ */ e(Ye, { chartFor: "savingsOverTime" })
1412
1449
  ] });
1413
- }, er = v(Jo), tr = () => {
1414
- const { finstrong: t } = x(), { healthScore: o } = F(), n = o.months_of_cash_on_hand, r = ht(n ? n * 30 : null), s = 183 / 6, a = Math.floor(n), l = Math.round((n - a) * s), c = n / 6 * 100;
1450
+ }, or = w(nr), rr = () => {
1451
+ const { finstrong: t } = v(), { healthScore: o } = B(), n = o.months_of_cash_on_hand, r = gt(n ? n * 30 : null), s = 183 / 6, a = Math.floor(n), l = Math.round((n - a) * s), c = n / 6 * 100;
1415
1452
  return /* @__PURE__ */ e(
1416
1453
  We,
1417
1454
  {
1418
1455
  bottomComponent: /* @__PURE__ */ e(
1419
- p,
1456
+ _,
1420
1457
  {
1421
1458
  sx: {
1422
1459
  flexDirection: "row",
@@ -1425,8 +1462,8 @@ const Wo = ({ total: t }) => {
1425
1462
  mt: 2,
1426
1463
  px: 1
1427
1464
  },
1428
- children: ["0 Mo", "1 Mo", "2 Mo", "3 Mo", "4 Mo", "5 Mo", "6 Mo"].map((_) => /* @__PURE__ */ i(
1429
- p,
1465
+ children: ["0 Mo", "1 Mo", "2 Mo", "3 Mo", "4 Mo", "5 Mo", "6 Mo"].map((p) => /* @__PURE__ */ i(
1466
+ _,
1430
1467
  {
1431
1468
  sx: {
1432
1469
  alignItems: "center",
@@ -1434,7 +1471,7 @@ const Wo = ({ total: t }) => {
1434
1471
  },
1435
1472
  children: [
1436
1473
  /* @__PURE__ */ e(
1437
- de,
1474
+ _e,
1438
1475
  {
1439
1476
  orientation: "vertical",
1440
1477
  sx: {
@@ -1443,10 +1480,10 @@ const Wo = ({ total: t }) => {
1443
1480
  }
1444
1481
  }
1445
1482
  ),
1446
- /* @__PURE__ */ e(I, { variant: "XSmall", children: _ })
1483
+ /* @__PURE__ */ e(T, { variant: "XSmall", children: p })
1447
1484
  ]
1448
1485
  },
1449
- _
1486
+ p
1450
1487
  ))
1451
1488
  }
1452
1489
  ),
@@ -1457,16 +1494,16 @@ const Wo = ({ total: t }) => {
1457
1494
  percentage: `${c}%`
1458
1495
  }
1459
1496
  ],
1460
- value: V(t.key_indicators_save.drawer_progress_bar_value, a, l)
1497
+ value: j(t.key_indicators_save.drawer_progress_bar_value, a, l)
1461
1498
  }
1462
1499
  );
1463
- }, nr = v(tr), or = () => {
1464
- const { healthScore: t } = F(), { finstrong: o } = x(), n = Oe(t.debt_to_income_ratio), r = mt(n);
1500
+ }, ar = w(rr), ir = () => {
1501
+ const { healthScore: t } = B(), { finstrong: o } = v(), n = Oe(t.debt_to_income_ratio), r = yt(n);
1465
1502
  return /* @__PURE__ */ e(
1466
1503
  We,
1467
1504
  {
1468
1505
  bottomComponent: /* @__PURE__ */ i(
1469
- p,
1506
+ _,
1470
1507
  {
1471
1508
  sx: {
1472
1509
  alignItems: "flex-end",
@@ -1486,7 +1523,7 @@ const Wo = ({ total: t }) => {
1486
1523
  transform: "translateX(-50%)"
1487
1524
  },
1488
1525
  children: /* @__PURE__ */ i(
1489
- p,
1526
+ _,
1490
1527
  {
1491
1528
  sx: {
1492
1529
  alignItems: "center",
@@ -1496,7 +1533,7 @@ const Wo = ({ total: t }) => {
1496
1533
  },
1497
1534
  children: [
1498
1535
  /* @__PURE__ */ e(
1499
- de,
1536
+ _e,
1500
1537
  {
1501
1538
  orientation: "vertical",
1502
1539
  sx: {
@@ -1505,7 +1542,7 @@ const Wo = ({ total: t }) => {
1505
1542
  }
1506
1543
  }
1507
1544
  ),
1508
- /* @__PURE__ */ e(I, { sx: { color: "text.primary" }, variant: "XSmall", children: "30%" })
1545
+ /* @__PURE__ */ e(T, { sx: { color: "text.primary" }, variant: "XSmall", children: "30%" })
1509
1546
  ]
1510
1547
  }
1511
1548
  )
@@ -1521,7 +1558,7 @@ const Wo = ({ total: t }) => {
1521
1558
  justifyContent: "center",
1522
1559
  marginLeft: "auto"
1523
1560
  },
1524
- children: /* @__PURE__ */ e(I, { variant: "Small", children: t.debt_to_income_ratio ? V(
1561
+ children: /* @__PURE__ */ e(T, { variant: "Small", children: t.debt_to_income_ratio ? j(
1525
1562
  o.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_sticky_description,
1526
1563
  n
1527
1564
  ) : "-" })
@@ -1537,14 +1574,14 @@ const Wo = ({ total: t }) => {
1537
1574
  percentage: `${n}%`
1538
1575
  }
1539
1576
  ],
1540
- value: W(t.ninety_day_debt_spend, "0,0.00")
1577
+ value: $(t.ninety_day_debt_spend, "0,0.00")
1541
1578
  }
1542
1579
  );
1543
- }, rr = v(or), ar = () => {
1544
- const { healthScore: t, allTransactions: o } = F(), { connect: n, finstrong: r } = x(), [s, a] = m.useState(!1);
1545
- return /* @__PURE__ */ i(p, { gap: 16, sx: { p: 16 }, children: [
1580
+ }, sr = w(ir), cr = () => {
1581
+ const { healthScore: t, allTransactions: o } = B(), { connect: n, finstrong: r } = v(), [s, a] = h.useState(!1);
1582
+ return /* @__PURE__ */ i(_, { gap: 16, sx: { p: 16 }, children: [
1546
1583
  /* @__PURE__ */ e(
1547
- Ce,
1584
+ Se,
1548
1585
  {
1549
1586
  balance: t.ninety_day_income,
1550
1587
  sx: { flexDirection: "column-reverse" },
@@ -1555,7 +1592,7 @@ const Wo = ({ total: t }) => {
1555
1592
  // TODO: Need to add More Transactions functionality
1556
1593
  /* @__PURE__ */ e($e, { transactions: o.income.map((l) => l.transaction) })
1557
1594
  ) : /* @__PURE__ */ e(
1558
- B,
1595
+ P,
1559
1596
  {
1560
1597
  onClick: () => {
1561
1598
  a(!0);
@@ -1573,11 +1610,11 @@ const Wo = ({ total: t }) => {
1573
1610
  }
1574
1611
  )
1575
1612
  ] });
1576
- }, ir = v(ar), sr = () => {
1577
- const { allTransactions: t, healthScore: o } = F(), { connect: n, finstrong: r } = x(), [s, a] = m.useState(!1);
1578
- return /* @__PURE__ */ i(p, { gap: 16, sx: { p: 16 }, children: [
1613
+ }, lr = w(cr), dr = () => {
1614
+ const { allTransactions: t, healthScore: o } = B(), { connect: n, finstrong: r } = v(), [s, a] = h.useState(!1);
1615
+ return /* @__PURE__ */ i(_, { gap: 16, sx: { p: 16 }, children: [
1579
1616
  /* @__PURE__ */ e(
1580
- Ce,
1617
+ Se,
1581
1618
  {
1582
1619
  balance: o.ninety_day_debt_spend,
1583
1620
  sx: { flexDirection: "column-reverse" },
@@ -1594,7 +1631,7 @@ const Wo = ({ total: t }) => {
1594
1631
  }
1595
1632
  )
1596
1633
  ) : /* @__PURE__ */ e(
1597
- B,
1634
+ P,
1598
1635
  {
1599
1636
  onClick: () => {
1600
1637
  a(!0);
@@ -1612,35 +1649,35 @@ const Wo = ({ total: t }) => {
1612
1649
  }
1613
1650
  )
1614
1651
  ] });
1615
- }, cr = v(sr), lr = ({
1652
+ }, pr = w(dr), _r = ({
1616
1653
  color: t,
1617
1654
  data: o,
1618
1655
  series: n,
1619
1656
  style: r,
1620
1657
  ...s
1621
1658
  }) => {
1622
- const a = E(), l = m.useRef(null), c = m.useRef(null), [d, _] = m.useState(r.width || 0);
1623
- m.useLayoutEffect(() => {
1624
- _(r.width || 0);
1625
- }, [r.width]), m.useLayoutEffect(() => {
1626
- const f = new ResizeObserver(() => {
1659
+ const a = E(), l = h.useRef(null), c = h.useRef(null), [d, p] = h.useState(r.width || 0);
1660
+ h.useLayoutEffect(() => {
1661
+ p(r.width || 0);
1662
+ }, [r.width]), h.useLayoutEffect(() => {
1663
+ const S = new ResizeObserver(() => {
1627
1664
  window.requestAnimationFrame(() => {
1628
1665
  if (l.current) {
1629
- const { width: w } = l.current.getBoundingClientRect(), k = w / 2, g = l.current.querySelector("text");
1666
+ const { width: y } = l.current.getBoundingClientRect(), k = y / 2, g = l.current.querySelector("text");
1630
1667
  g && g.setAttribute("transform", `translate(${k}, -8)`);
1631
1668
  }
1632
1669
  });
1633
1670
  });
1634
- return l.current && f.observe(l.current), () => {
1635
- l.current && f.unobserve(l.current);
1671
+ return l.current && S.observe(l.current), () => {
1672
+ l.current && S.unobserve(l.current);
1636
1673
  };
1637
1674
  }, []);
1638
- const { formattedComparison: h, formattedMain: u } = o[n.index], b = n.type === 0 ? u : h, S = {
1675
+ const { formattedComparison: u, formattedMain: m } = o[n.index], b = n.type === 0 ? m : u, C = {
1639
1676
  ...r,
1640
1677
  transition: "all 0.3s ease-in-out"
1641
- }, C = `translate(${d / 2}, -5)`;
1678
+ }, x = `translate(${d / 2}, -5)`;
1642
1679
  return /* @__PURE__ */ i("g", { children: [
1643
- /* @__PURE__ */ e("rect", { ...s, fill: t, ref: l, rx: 2, style: S }),
1680
+ /* @__PURE__ */ e("rect", { ...s, fill: t, ref: l, rx: 2, style: C }),
1644
1681
  /* @__PURE__ */ e(
1645
1682
  "text",
1646
1683
  {
@@ -1650,17 +1687,17 @@ const Wo = ({ total: t }) => {
1650
1687
  ref: c,
1651
1688
  style: { transition: "transform 0.3s ease-in-out" },
1652
1689
  textAnchor: "middle",
1653
- transform: C,
1690
+ transform: x,
1654
1691
  x: r.x,
1655
1692
  y: r.y,
1656
1693
  children: b
1657
1694
  }
1658
1695
  )
1659
1696
  ] });
1660
- }, Te = (t, o = 1e3) => {
1697
+ }, Ae = (t, o = 1e3) => {
1661
1698
  const n = Math.abs(t) >= o ? "0.[0]a" : "0";
1662
- return W(t, n);
1663
- }, Lt = ({
1699
+ return $(t, n);
1700
+ }, Pt = ({
1664
1701
  chartFor: t,
1665
1702
  data: o,
1666
1703
  title: n,
@@ -1671,42 +1708,42 @@ const Wo = ({ total: t }) => {
1671
1708
  totalComparison: c,
1672
1709
  totalMain: d
1673
1710
  }) => {
1674
- const _ = E(), h = Vn(_.breakpoints.down("xs")), u = m.useMemo(
1675
- () => o.sort((g, y) => g.month - y.month).map((g) => {
1676
- const y = kn(g.month), $ = {
1711
+ const p = E(), u = qn(p.breakpoints.down("xs")), m = h.useMemo(
1712
+ () => o.sort((g, f) => g.month - f.month).map((g) => {
1713
+ const f = Mn(g.month), A = {
1677
1714
  spending_vs_income: {
1678
1715
  main: g.standard_spend,
1679
1716
  comparison: g.income,
1680
- formattedMain: Te(g.standard_spend),
1681
- formattedComparison: Te(g.income)
1717
+ formattedMain: Ae(g.standard_spend),
1718
+ formattedComparison: Ae(g.income)
1682
1719
  },
1683
1720
  debt_payment_vs_income: {
1684
1721
  main: g.income,
1685
1722
  comparison: g.debt_spend,
1686
- formattedMain: Te(g.income),
1687
- formattedComparison: Te(g.debt_spend)
1723
+ formattedMain: Ae(g.income),
1724
+ formattedComparison: Ae(g.debt_spend)
1688
1725
  }
1689
1726
  };
1690
1727
  return {
1691
- label: y,
1692
- ...$[t]
1728
+ label: f,
1729
+ ...A[t]
1693
1730
  };
1694
1731
  }),
1695
1732
  [o, t]
1696
1733
  ), b = {
1697
1734
  dataKey: "label",
1698
1735
  scaleType: "band"
1699
- }, S = Math.max(...u.map((g) => Math.max(g.main, g.comparison))), f = Math.min(...u.map((g) => Math.min(g.main, g.comparison))) === 0 && S === 0 ? 100 : Math.ceil(S * 1.2 / 1e3) * 1e3, w = f / 3, k = {
1736
+ }, C = Math.max(...m.map((g) => Math.max(g.main, g.comparison))), S = Math.min(...m.map((g) => Math.min(g.main, g.comparison))) === 0 && C === 0 ? 100 : Math.ceil(C * 1.2 / 1e3) * 1e3, y = S / 3, k = {
1700
1737
  scaleType: "linear",
1701
1738
  min: 0,
1702
- max: f,
1739
+ max: S,
1703
1740
  tickNumber: 4,
1704
- tickMinStep: w,
1705
- valueFormatter: (g) => g === 0 ? "$0" : W(g, "0.[0]a")
1741
+ tickMinStep: y,
1742
+ valueFormatter: (g) => g === 0 ? "$0" : $(g, "0.[0]a")
1706
1743
  };
1707
- return /* @__PURE__ */ i(Y, { children: [
1744
+ return /* @__PURE__ */ i(V, { children: [
1708
1745
  /* @__PURE__ */ i(
1709
- p,
1746
+ _,
1710
1747
  {
1711
1748
  sx: {
1712
1749
  alignItems: "center",
@@ -1718,11 +1755,11 @@ const Wo = ({ total: t }) => {
1718
1755
  px: 16
1719
1756
  },
1720
1757
  children: [
1721
- /* @__PURE__ */ e(X, { children: n }),
1758
+ /* @__PURE__ */ e(K, { children: n }),
1722
1759
  r && /* @__PURE__ */ e(
1723
- B,
1760
+ P,
1724
1761
  {
1725
- endIcon: /* @__PURE__ */ e(J, {}),
1762
+ endIcon: /* @__PURE__ */ e(Z, {}),
1726
1763
  onClick: s,
1727
1764
  size: "small",
1728
1765
  sx: {
@@ -1736,9 +1773,9 @@ const Wo = ({ total: t }) => {
1736
1773
  ]
1737
1774
  }
1738
1775
  ),
1739
- /* @__PURE__ */ i(p, { sx: { pb: 24, pl: 16, pr: 24 }, children: [
1740
- /* @__PURE__ */ i(p, { sx: { alignItems: "center", flexDirection: "row", gap: 24, py: 4 }, children: [
1741
- /* @__PURE__ */ i(p, { sx: { gap: 8, alignItems: "center", flexDirection: "row" }, children: [
1776
+ /* @__PURE__ */ i(_, { sx: { pb: 24, pl: 16, pr: 24 }, children: [
1777
+ /* @__PURE__ */ i(_, { sx: { alignItems: "center", flexDirection: "row", gap: 24, py: 4 }, children: [
1778
+ /* @__PURE__ */ i(_, { sx: { gap: 8, alignItems: "center", flexDirection: "row" }, children: [
1742
1779
  /* @__PURE__ */ e(
1743
1780
  M,
1744
1781
  {
@@ -1750,15 +1787,15 @@ const Wo = ({ total: t }) => {
1750
1787
  }
1751
1788
  }
1752
1789
  ),
1753
- /* @__PURE__ */ i(p, { sx: { alignItems: "center", flexDirection: "row" }, children: [
1754
- /* @__PURE__ */ i(I, { variant: "subtitle2", children: [
1790
+ /* @__PURE__ */ i(_, { sx: { alignItems: "center", flexDirection: "row" }, children: [
1791
+ /* @__PURE__ */ i(T, { variant: "subtitle2", children: [
1755
1792
  a,
1756
1793
  " "
1757
1794
  ] }),
1758
- !h && d && /* @__PURE__ */ e(I, { sx: { fontWeight: 700 }, variant: "subtitle2", children: d })
1795
+ !u && d && /* @__PURE__ */ e(T, { sx: { fontWeight: 700 }, variant: "subtitle2", children: d })
1759
1796
  ] })
1760
1797
  ] }),
1761
- /* @__PURE__ */ i(p, { alignItems: "center", direction: "row", spacing: 8, children: [
1798
+ /* @__PURE__ */ i(_, { alignItems: "center", direction: "row", spacing: 8, children: [
1762
1799
  /* @__PURE__ */ e(
1763
1800
  M,
1764
1801
  {
@@ -1770,23 +1807,23 @@ const Wo = ({ total: t }) => {
1770
1807
  }
1771
1808
  }
1772
1809
  ),
1773
- /* @__PURE__ */ i(p, { sx: { alignItems: "center", flexDirection: "row" }, children: [
1774
- /* @__PURE__ */ i(I, { variant: "subtitle2", children: [
1810
+ /* @__PURE__ */ i(_, { sx: { alignItems: "center", flexDirection: "row" }, children: [
1811
+ /* @__PURE__ */ i(T, { variant: "subtitle2", children: [
1775
1812
  l,
1776
1813
  " "
1777
1814
  ] }),
1778
- !h && c && /* @__PURE__ */ e(I, { sx: { fontWeight: 700 }, variant: "subtitle2", children: c })
1815
+ !u && c && /* @__PURE__ */ e(T, { sx: { fontWeight: 700 }, variant: "subtitle2", children: c })
1779
1816
  ] })
1780
1817
  ] })
1781
1818
  ] }),
1782
1819
  /* @__PURE__ */ i(
1783
- Yn,
1820
+ Qn,
1784
1821
  {
1785
1822
  colors: [
1786
- `${_.palette.chartMono.chartMono3}`,
1787
- `${_.palette.chartMono.chartMono5}`
1823
+ `${p.palette.chartMono.chartMono3}`,
1824
+ `${p.palette.chartMono.chartMono5}`
1788
1825
  ],
1789
- dataset: u,
1826
+ dataset: m,
1790
1827
  height: 240,
1791
1828
  margin: { top: 14, bottom: 10, right: 2, left: -2 },
1792
1829
  series: [
@@ -1797,20 +1834,20 @@ const Wo = ({ total: t }) => {
1797
1834
  yAxis: [k],
1798
1835
  children: [
1799
1836
  /* @__PURE__ */ e(
1800
- Xn,
1837
+ Un,
1801
1838
  {
1802
1839
  slots: {
1803
1840
  bar: (g) => {
1804
- const { ownerState: y, ...$ } = g;
1841
+ const { ownerState: f, ...A } = g;
1805
1842
  return /* @__PURE__ */ e(
1806
- lr,
1843
+ _r,
1807
1844
  {
1808
- ...$,
1809
- color: y.color,
1810
- data: u,
1845
+ ...A,
1846
+ color: f.color,
1847
+ data: m,
1811
1848
  series: {
1812
- index: y.dataIndex,
1813
- type: Number(y.id.toString().split("-").pop())
1849
+ index: f.dataIndex,
1850
+ type: Number(f.id.toString().split("-").pop())
1814
1851
  },
1815
1852
  style: {
1816
1853
  x: g.x,
@@ -1824,14 +1861,14 @@ const Wo = ({ total: t }) => {
1824
1861
  }
1825
1862
  ),
1826
1863
  /* @__PURE__ */ e(
1827
- qn,
1864
+ Zn,
1828
1865
  {
1829
1866
  sx: () => ({
1830
1867
  ".MuiChartsAxis-line": {
1831
- stroke: _.palette.divider
1868
+ stroke: p.palette.divider
1832
1869
  },
1833
1870
  ".MuiChartsAxis-tick": {
1834
- stroke: _.palette.divider
1871
+ stroke: p.palette.divider
1835
1872
  },
1836
1873
  ".MuiChartsAxis-tickLabel": {
1837
1874
  transform: "translateY(10px)"
@@ -1844,14 +1881,14 @@ const Wo = ({ total: t }) => {
1844
1881
  }
1845
1882
  ),
1846
1883
  /* @__PURE__ */ e(
1847
- Un,
1884
+ Jn,
1848
1885
  {
1849
1886
  sx: () => ({
1850
1887
  ".MuiChartsAxis-line": {
1851
- stroke: _.palette.divider
1888
+ stroke: p.palette.divider
1852
1889
  },
1853
1890
  ".MuiChartsAxis-tick": {
1854
- stroke: _.palette.divider
1891
+ stroke: p.palette.divider
1855
1892
  },
1856
1893
  ".MuiChartsAxis-tickLabel": {
1857
1894
  transform: "translateX(-8px)"
@@ -1868,29 +1905,29 @@ const Wo = ({ total: t }) => {
1868
1905
  )
1869
1906
  ] })
1870
1907
  ] });
1871
- }, dr = () => {
1872
- const { isIncomeInitialized: t, loadDebtSpend: o, loadIncome: n, monthlySummaries: r } = F(), [s, a] = m.useState(0), { finstrong: l } = x();
1873
- if (m.useEffect(() => {
1908
+ }, ur = () => {
1909
+ const { isIncomeInitialized: t, loadDebtSpend: o, loadIncome: n, monthlySummaries: r } = B(), [s, a] = h.useState(0), { finstrong: l } = v();
1910
+ if (h.useEffect(() => {
1874
1911
  t || (o().finally(), n().finally());
1875
- }, [t]), !t) return /* @__PURE__ */ e(Q, {});
1912
+ }, [t]), !t) return /* @__PURE__ */ e(U, {});
1876
1913
  const c = r.some(
1877
1914
  (d) => d.debt_spend !== 0 || d.income !== 0
1878
1915
  );
1879
- return /* @__PURE__ */ i(N, { children: [
1880
- /* @__PURE__ */ i(Y, { children: [
1916
+ return /* @__PURE__ */ i(z, { children: [
1917
+ /* @__PURE__ */ i(V, { children: [
1881
1918
  /* @__PURE__ */ i(
1882
1919
  Ve,
1883
1920
  {
1884
1921
  "aria-label": l.key_indicators_save.drawer_title,
1885
1922
  centered: !0,
1886
- onChange: (d, _) => a(_),
1923
+ onChange: (d, p) => a(p),
1887
1924
  selectionFollowsFocus: !0,
1888
1925
  sx: { mb: 0 },
1889
1926
  value: s,
1890
1927
  variant: "fullWidth",
1891
1928
  children: [
1892
1929
  /* @__PURE__ */ e(
1893
- ce,
1930
+ de,
1894
1931
  {
1895
1932
  "aria-controls": "income-details-tabpanel-0",
1896
1933
  id: "income-details-tab-0",
@@ -1899,7 +1936,7 @@ const Wo = ({ total: t }) => {
1899
1936
  }
1900
1937
  ),
1901
1938
  /* @__PURE__ */ e(
1902
- ce,
1939
+ de,
1903
1940
  {
1904
1941
  "aria-controls": "debt-payment-details-tabpanel-1",
1905
1942
  id: "debt-payment-details-tab-1",
@@ -1911,28 +1948,28 @@ const Wo = ({ total: t }) => {
1911
1948
  }
1912
1949
  ),
1913
1950
  /* @__PURE__ */ e(
1914
- le,
1951
+ pe,
1915
1952
  {
1916
1953
  "aria-labelledby": "income-details-tab-0",
1917
1954
  index: 0,
1918
1955
  name: "income-details",
1919
1956
  value: s,
1920
- children: /* @__PURE__ */ e(ir, {})
1957
+ children: /* @__PURE__ */ e(lr, {})
1921
1958
  }
1922
1959
  ),
1923
1960
  /* @__PURE__ */ e(
1924
- le,
1961
+ pe,
1925
1962
  {
1926
1963
  "aria-labelledby": "debt-payment-details-tab-1",
1927
1964
  index: 1,
1928
1965
  name: "debt-payment-details",
1929
1966
  value: s,
1930
- children: /* @__PURE__ */ e(cr, {})
1967
+ children: /* @__PURE__ */ e(pr, {})
1931
1968
  }
1932
1969
  )
1933
1970
  ] }),
1934
- c ? /* @__PURE__ */ e(N, { children: /* @__PURE__ */ e(
1935
- Lt,
1971
+ c ? /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(
1972
+ Pt,
1936
1973
  {
1937
1974
  chartFor: "debt_payment_vs_income",
1938
1975
  data: r,
@@ -1941,7 +1978,7 @@ const Wo = ({ total: t }) => {
1941
1978
  title: l.key_indicators_borrow.have_manageable_debt_drawer.debt_payment
1942
1979
  }
1943
1980
  ) }) : /* @__PURE__ */ e(
1944
- Fe,
1981
+ Le,
1945
1982
  {
1946
1983
  header: l.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_double_bar_chart_empty_state_header,
1947
1984
  icon: "multiline_chart",
@@ -1963,8 +2000,8 @@ const Wo = ({ total: t }) => {
1963
2000
  ),
1964
2001
  /* @__PURE__ */ e(Ye, { chartFor: "debtOverTime" })
1965
2002
  ] });
1966
- }, pr = v(dr), _r = () => {
1967
- const { healthScore: t } = F(), { finstrong: o } = x(), n = Oe(t.spend_to_income_ratio), r = n ?? 0, s = Object.keys(t).length === 0, a = gt(n), l = {
2003
+ }, hr = w(ur), mr = () => {
2004
+ const { healthScore: t } = B(), { finstrong: o } = v(), n = Oe(t.spend_to_income_ratio), r = n ?? 0, s = Object.keys(t).length === 0, a = bt(n), l = {
1968
2005
  GOOD: [{ percentage: `${r}%` }],
1969
2006
  FAIR: [{ percentage: "100%" }, { percentage: `${r - 100}%` }],
1970
2007
  OFF_TRACK: [{ percentage: "100%" }, { percentage: `${r - 100}%` }],
@@ -1974,7 +2011,7 @@ const Wo = ({ total: t }) => {
1974
2011
  We,
1975
2012
  {
1976
2013
  bottomComponent: /* @__PURE__ */ i(
1977
- p,
2014
+ _,
1978
2015
  {
1979
2016
  sx: {
1980
2017
  flexDirection: "row",
@@ -1983,12 +2020,12 @@ const Wo = ({ total: t }) => {
1983
2020
  mt: 8
1984
2021
  },
1985
2022
  children: [
1986
- /* @__PURE__ */ i(I, { variant: "body2", children: [
1987
- t.ninety_day_income <= 0 ? "-" : W(t.ninety_day_income, "0,0.00"),
2023
+ /* @__PURE__ */ i(T, { variant: "body2", children: [
2024
+ t.ninety_day_income <= 0 ? "-" : $(t.ninety_day_income, "0,0.00"),
1988
2025
  " ",
1989
2026
  o?.key_indicators_spend.spend_less_than_you_make_drawer.income
1990
2027
  ] }),
1991
- /* @__PURE__ */ i(I, { variant: "body2", children: [
2028
+ /* @__PURE__ */ i(T, { variant: "body2", children: [
1992
2029
  r <= 0 ? "-%" : `${r}%`,
1993
2030
  " ",
1994
2031
  o?.key_indicators_spend.spend_less_than_you_make_drawer.spent
@@ -1999,33 +2036,33 @@ const Wo = ({ total: t }) => {
1999
2036
  label: o?.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_sticky_description,
2000
2037
  status: a,
2001
2038
  statusBarData: l,
2002
- value: s ? "$0" : W(t.ninety_day_spend, "0,0.00")
2039
+ value: s ? "$0" : $(t.ninety_day_spend, "0,0.00")
2003
2040
  }
2004
2041
  );
2005
- }, ur = v(_r), hr = () => {
2006
- const { accounts: t } = Se(), { categories: o, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: r } = Ne(), { monthlySummaries: s, handleFinstrongWidgetPrimaryCtaClick: a } = F(), { appDataStore: l } = Tn(), { finstrong: c, goals: d, spending: _ } = x(), h = E(), [u, b] = m.useState("");
2007
- m.useEffect(() => {
2042
+ }, gr = w(mr), yr = () => {
2043
+ const { accounts: t } = xe(), { categories: o, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: r } = Ne(), { monthlySummaries: s, handleFinstrongWidgetPrimaryCtaClick: a } = B(), { appDataStore: l } = On(), { finstrong: c, goals: d, spending: p } = v(), u = E(), [m, b] = h.useState("");
2044
+ h.useEffect(() => {
2008
2045
  r(
2009
2046
  t,
2010
- kt(/* @__PURE__ */ new Date()),
2011
- Mt(/* @__PURE__ */ new Date())
2047
+ Dt(/* @__PURE__ */ new Date()),
2048
+ It(/* @__PURE__ */ new Date())
2012
2049
  ).finally();
2013
2050
  }, [t]);
2014
- const S = m.useMemo(
2015
- () => Qn(o, d, h, n),
2051
+ const C = h.useMemo(
2052
+ () => eo(o, d, u, n),
2016
2053
  [o, n]
2017
- ), C = (k) => {
2018
- b(u === k ? "" : k);
2019
- }, { totalSpending: f, totalIncome: w } = m.useMemo(() => s?.reduce(
2020
- (k, { standard_spend: g = 0, income: y = 0 }) => ({
2054
+ ), x = (k) => {
2055
+ b(m === k ? "" : k);
2056
+ }, { totalSpending: S, totalIncome: y } = h.useMemo(() => s?.reduce(
2057
+ (k, { standard_spend: g = 0, income: f = 0 }) => ({
2021
2058
  totalSpending: k.totalSpending + g,
2022
- totalIncome: k.totalIncome + y
2059
+ totalIncome: k.totalIncome + f
2023
2060
  }),
2024
2061
  { totalSpending: 0, totalIncome: 0 }
2025
2062
  ), [s]);
2026
- return /* @__PURE__ */ i(p, { sx: { gap: 24 }, children: [
2027
- w > 0 || f > 0 ? /* @__PURE__ */ e(
2028
- Lt,
2063
+ return /* @__PURE__ */ i(_, { sx: { gap: 24 }, children: [
2064
+ y > 0 || S > 0 ? /* @__PURE__ */ e(
2065
+ Pt,
2029
2066
  {
2030
2067
  ...l.appData.client_profile?.allow_trends_widget && {
2031
2068
  buttonLabel: c.key_indicators_spend.spend_less_than_you_make_drawer.view_more
@@ -2036,11 +2073,11 @@ const Wo = ({ total: t }) => {
2036
2073
  legendLabelMain: c.key_indicators_spend.spend_less_than_you_make_drawer.spending,
2037
2074
  onClick: () => a("trends")(),
2038
2075
  title: c.key_indicators_spend.spend_less_than_you_make_drawer.trends,
2039
- totalComparison: W(w, "0,0.00"),
2040
- totalMain: W(f, "0,0.00")
2076
+ totalComparison: $(y, "0,0.00"),
2077
+ totalMain: $(S, "0,0.00")
2041
2078
  }
2042
2079
  ) : /* @__PURE__ */ e(
2043
- Fe,
2080
+ Le,
2044
2081
  {
2045
2082
  header: c.key_indicators_spend.spend_less_than_you_make_drawer.trends_zero_state_title,
2046
2083
  icon: "multiline_chart",
@@ -2060,8 +2097,8 @@ const Wo = ({ total: t }) => {
2060
2097
  variant: "no-buttons"
2061
2098
  }
2062
2099
  ),
2063
- S.donutData.length > 0 ? /* @__PURE__ */ i(
2064
- Y,
2100
+ C.donutData.length > 0 ? /* @__PURE__ */ i(
2101
+ V,
2065
2102
  {
2066
2103
  sx: {
2067
2104
  px: 16,
@@ -2069,7 +2106,7 @@ const Wo = ({ total: t }) => {
2069
2106
  },
2070
2107
  children: [
2071
2108
  /* @__PURE__ */ i(
2072
- p,
2109
+ _,
2073
2110
  {
2074
2111
  sx: {
2075
2112
  alignItems: "center",
@@ -2081,11 +2118,11 @@ const Wo = ({ total: t }) => {
2081
2118
  px: 16
2082
2119
  },
2083
2120
  children: [
2084
- /* @__PURE__ */ e(X, { children: c.key_indicators_spend.spend_less_than_you_make_drawer.spending }),
2121
+ /* @__PURE__ */ e(K, { children: c.key_indicators_spend.spend_less_than_you_make_drawer.spending }),
2085
2122
  l.appData.client_profile?.allow_spending_widget && /* @__PURE__ */ e(
2086
- B,
2123
+ P,
2087
2124
  {
2088
- endIcon: /* @__PURE__ */ e(J, {}),
2125
+ endIcon: /* @__PURE__ */ e(Z, {}),
2089
2126
  onClick: () => a("spending")(),
2090
2127
  size: "small",
2091
2128
  sx: {
@@ -2100,25 +2137,25 @@ const Wo = ({ total: t }) => {
2100
2137
  }
2101
2138
  ),
2102
2139
  /* @__PURE__ */ i(
2103
- p,
2140
+ _,
2104
2141
  {
2105
2142
  sx: { flexDirection: "row", gap: 12, justifyContent: "center", pb: 32, pt: 16, px: 24 },
2106
2143
  children: [
2107
2144
  /* @__PURE__ */ e(
2108
- Zn,
2145
+ to,
2109
2146
  {
2110
- data: S,
2111
- onSelected: C,
2112
- selectedId: u,
2113
- totalLabel: _.total_spending
2147
+ data: C,
2148
+ onSelected: x,
2149
+ selectedId: m,
2150
+ totalLabel: p.total_spending
2114
2151
  }
2115
2152
  ),
2116
2153
  /* @__PURE__ */ e(
2117
- Jn,
2154
+ no,
2118
2155
  {
2119
- data: S,
2120
- onSelected: C,
2121
- selectedId: u
2156
+ data: C,
2157
+ onSelected: x,
2158
+ selectedId: m
2122
2159
  }
2123
2160
  )
2124
2161
  ]
@@ -2127,7 +2164,7 @@ const Wo = ({ total: t }) => {
2127
2164
  ]
2128
2165
  }
2129
2166
  ) : /* @__PURE__ */ e(
2130
- Fe,
2167
+ Le,
2131
2168
  {
2132
2169
  header: c.key_indicators_spend.spend_less_than_you_make_drawer.spending_zero_state_title,
2133
2170
  icon: "donut_small",
@@ -2148,17 +2185,17 @@ const Wo = ({ total: t }) => {
2148
2185
  }
2149
2186
  )
2150
2187
  ] });
2151
- }, mr = v(hr), gr = ({
2188
+ }, br = w(yr), fr = ({
2152
2189
  drawerFor: t,
2153
2190
  isOpen: o,
2154
2191
  onClose: n
2155
2192
  }) => {
2156
- const { finstrong: r } = x(), a = {
2193
+ const { finstrong: r } = v(), a = {
2157
2194
  spendLessThanYouMake: {
2158
2195
  title: r.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_title,
2159
2196
  description: r.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_description,
2160
- stickyComponent: /* @__PURE__ */ e(ur, {}),
2161
- content: /* @__PURE__ */ e(mr, {}),
2197
+ stickyComponent: /* @__PURE__ */ e(gr, {}),
2198
+ content: /* @__PURE__ */ e(br, {}),
2162
2199
  drawerType: "connectDrawer",
2163
2200
  connectTitle: r.connect_your_accounts,
2164
2201
  connectDescription: r.connect_more_accounts_to_unlock_a_fuller_understanding_of_your_finances
@@ -2166,16 +2203,16 @@ const Wo = ({ total: t }) => {
2166
2203
  payBillsOnTime: {
2167
2204
  title: r.key_indicators_spend.pay_bills_on_time_drawer.pay_bills_on_time_title,
2168
2205
  description: r.key_indicators_spend.pay_bills_on_time_drawer.pay_bills_on_time_description,
2169
- stickyComponent: /* @__PURE__ */ e(Yo, {}),
2170
- content: /* @__PURE__ */ e(Vo, {}),
2206
+ stickyComponent: /* @__PURE__ */ e(Qo, {}),
2207
+ content: /* @__PURE__ */ e(qo, {}),
2171
2208
  drawerType: "connectDrawer",
2172
2209
  connectTitle: r.connect_your_accounts,
2173
2210
  connectDescription: r.connect_more_accounts_to_unlock_a_fuller_understanding_of_your_finances
2174
2211
  },
2175
2212
  maintainEmergencySavings: {
2176
- content: /* @__PURE__ */ e(Eo, {}),
2213
+ content: /* @__PURE__ */ e(No, {}),
2177
2214
  description: r.maintain_emergency_savings_description,
2178
- stickyComponent: /* @__PURE__ */ e(jo, {}),
2215
+ stickyComponent: /* @__PURE__ */ e(Xo, {}),
2179
2216
  title: r.maintain_emergency_savings_title,
2180
2217
  drawerType: "connectDrawer",
2181
2218
  connectTitle: r.connect_your_accounts,
@@ -2184,30 +2221,30 @@ const Wo = ({ total: t }) => {
2184
2221
  haveManageableDebt: {
2185
2222
  title: r.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_title,
2186
2223
  description: r.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_description,
2187
- stickyComponent: /* @__PURE__ */ e(rr, {}),
2188
- content: /* @__PURE__ */ e(pr, {}),
2224
+ stickyComponent: /* @__PURE__ */ e(sr, {}),
2225
+ content: /* @__PURE__ */ e(hr, {}),
2189
2226
  drawerType: "connectDrawer",
2190
2227
  connectTitle: r.dont_see_all_your_accounts,
2191
2228
  connectDescription: r.connect_more_accounts_to_view_more_accurate_financial_picture
2192
2229
  },
2193
2230
  haveAGoodCreditScore: {
2194
- title: /* @__PURE__ */ e(Fo, {}),
2231
+ title: /* @__PURE__ */ e(Po, {}),
2195
2232
  description: r.credit_score_description,
2196
2233
  stickyComponent: null,
2197
- content: /* @__PURE__ */ e(Oo, {})
2234
+ content: /* @__PURE__ */ e(Fo, {})
2198
2235
  },
2199
2236
  saveEnoughToLiveOn: {
2200
2237
  title: r.key_indicators_save.drawer_title,
2201
2238
  description: r.key_indicators_save.drawer_description,
2202
- stickyComponent: /* @__PURE__ */ e(nr, {}),
2203
- content: /* @__PURE__ */ e(er, {}),
2239
+ stickyComponent: /* @__PURE__ */ e(ar, {}),
2240
+ content: /* @__PURE__ */ e(or, {}),
2204
2241
  drawerType: "connectDrawer",
2205
2242
  connectTitle: r.dont_see_all_your_accounts,
2206
2243
  connectDescription: r.connect_more_accounts_to_view_more_accurate_financial_picture
2207
2244
  }
2208
2245
  }[t];
2209
2246
  return /* @__PURE__ */ e(
2210
- Ot,
2247
+ Lt,
2211
2248
  {
2212
2249
  connectDescription: a?.connectDescription,
2213
2250
  connectTitle: a?.connectTitle,
@@ -2219,21 +2256,21 @@ const Wo = ({ total: t }) => {
2219
2256
  onClose: n,
2220
2257
  stickyComponent: a.stickyComponent,
2221
2258
  title: a.title,
2222
- children: /* @__PURE__ */ e(p, { sx: { gap: 16 }, children: a.content })
2259
+ children: /* @__PURE__ */ e(_, { sx: { gap: 16 }, children: a.content })
2223
2260
  }
2224
2261
  );
2225
- }, yr = v(gr), xe = ({
2262
+ }, xr = w(fr), fe = ({
2226
2263
  drawerFor: t,
2227
2264
  title: o,
2228
2265
  description: n,
2229
2266
  cardState: r = "MISSING"
2230
2267
  }) => {
2231
- const { finstrong: s } = x(), [a, l] = m.useState(!1), c = (d) => {
2268
+ const { finstrong: s } = v(), [a, l] = h.useState(!1), c = (d) => {
2232
2269
  (d.key === "Enter" || d.key === " ") && (d.preventDefault(), l(!0));
2233
2270
  };
2234
- return /* @__PURE__ */ i(N, { children: [
2271
+ return /* @__PURE__ */ i(z, { children: [
2235
2272
  /* @__PURE__ */ i(
2236
- p,
2273
+ _,
2237
2274
  {
2238
2275
  "aria-label": `${s.key_indicators_open} ${o}`,
2239
2276
  onClick: () => l(!0),
@@ -2252,19 +2289,19 @@ const Wo = ({ total: t }) => {
2252
2289
  },
2253
2290
  tabIndex: 0,
2254
2291
  children: [
2255
- /* @__PURE__ */ i(p, { sx: { gap: 8, minWidth: 0 }, children: [
2256
- /* @__PURE__ */ i(p, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
2257
- /* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: "body1", children: o }),
2292
+ /* @__PURE__ */ i(_, { sx: { gap: 8, minWidth: 0 }, children: [
2293
+ /* @__PURE__ */ i(_, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
2294
+ /* @__PURE__ */ e(T, { sx: { fontWeight: 600 }, variant: "body1", children: o }),
2258
2295
  /* @__PURE__ */ e(Pe, { status: r })
2259
2296
  ] }),
2260
- /* @__PURE__ */ e(D, { color: "secondary", variant: "subtitle2", children: n })
2297
+ /* @__PURE__ */ e(I, { color: "secondary", variant: "subtitle2", children: n })
2261
2298
  ] }),
2262
- /* @__PURE__ */ e(J, { color: "secondary", size: 24 })
2299
+ /* @__PURE__ */ e(Z, { color: "secondary", size: 24 })
2263
2300
  ]
2264
2301
  }
2265
2302
  ),
2266
2303
  /* @__PURE__ */ e(
2267
- yr,
2304
+ xr,
2268
2305
  {
2269
2306
  drawerFor: t,
2270
2307
  isOpen: a,
@@ -2272,21 +2309,21 @@ const Wo = ({ total: t }) => {
2272
2309
  }
2273
2310
  )
2274
2311
  ] });
2275
- }, br = () => {
2276
- const { finstrong: t } = x(), { key_indicators_spend: o } = t, { healthScore: n } = F(), r = (l) => {
2277
- const c = gt(l), d = {
2312
+ }, Sr = () => {
2313
+ const { finstrong: t } = v(), { key_indicators_spend: o } = t, { healthScore: n } = B(), r = (l) => {
2314
+ const c = bt(l), d = {
2278
2315
  GOOD: o.ratio_good_description,
2279
2316
  FAIR: o.ratio_fair_description,
2280
2317
  OFF_TRACK: o.ratio_off_track_description,
2281
2318
  MISSING: o.ratio_missing_description
2282
- }, _ = c === "MISSING" ? d[c] : V(d[c], l);
2319
+ }, p = c === "MISSING" ? d[c] : j(d[c], l);
2283
2320
  return {
2284
2321
  cardState: c,
2285
- description: _,
2322
+ description: p,
2286
2323
  title: o.ratio_card_title
2287
2324
  };
2288
- }, { spendToIncomeRatio: s, spendFeeCount: a } = m.useMemo(() => {
2289
- const l = n.spend_to_income_ratio !== null ? Math.round(n.spend_to_income_ratio * 100) : null, c = r(l), d = Mn(
2325
+ }, { spendToIncomeRatio: s, spendFeeCount: a } = h.useMemo(() => {
2326
+ const l = n.spend_to_income_ratio !== null ? Math.round(n.spend_to_income_ratio * 100) : null, c = r(l), d = Dn(
2290
2327
  n.spending_fee_transaction_count,
2291
2328
  o
2292
2329
  );
@@ -2297,139 +2334,139 @@ const Wo = ({ total: t }) => {
2297
2334
  o,
2298
2335
  t
2299
2336
  ]);
2300
- return /* @__PURE__ */ i(p, { sx: { gap: 24, p: 8, pt: 24 }, children: [
2337
+ return /* @__PURE__ */ i(_, { sx: { gap: 24, p: 8, pt: 24 }, children: [
2301
2338
  /* @__PURE__ */ e(
2302
- xe,
2339
+ fe,
2303
2340
  {
2304
2341
  cardState: s.cardState,
2305
2342
  description: s.description,
2306
- drawerFor: pe.SpendLessThanYouMake,
2343
+ drawerFor: ue.SpendLessThanYouMake,
2307
2344
  title: s.title
2308
2345
  }
2309
2346
  ),
2310
2347
  /* @__PURE__ */ e(
2311
- xe,
2348
+ fe,
2312
2349
  {
2313
2350
  cardState: a.cardState,
2314
2351
  description: a.description,
2315
- drawerFor: pe.PayBillsOnTime,
2352
+ drawerFor: ue.PayBillsOnTime,
2316
2353
  title: a.title
2317
2354
  }
2318
2355
  )
2319
2356
  ] });
2320
- }, fr = v(br), xr = () => {
2321
- const { healthScore: t } = F(), { finstrong: o } = x(), { key_indicators_save: n } = o, r = (c) => {
2322
- const d = ht(c), _ = {
2357
+ }, vr = w(Sr), Cr = () => {
2358
+ const { healthScore: t } = B(), { finstrong: o } = v(), { key_indicators_save: n } = o, r = (c) => {
2359
+ const d = gt(c), p = {
2323
2360
  GOOD: n.days_of_cash_good_description,
2324
2361
  FAIR: n.days_of_cash_fair_description,
2325
2362
  OFF_TRACK: n.days_of_cash_off_track_description,
2326
2363
  MISSING: n.days_of_cash_missing_description
2327
- }, h = d === "MISSING" ? _[d] : V(_[d], c);
2364
+ }, u = d === "MISSING" ? p[d] : j(p[d], c);
2328
2365
  return {
2329
2366
  cardState: d,
2330
- description: h,
2367
+ description: u,
2331
2368
  title: n.days_of_cash_title
2332
2369
  };
2333
2370
  }, s = (c) => {
2334
- const d = ut(c), _ = {
2371
+ const d = mt(c), p = {
2335
2372
  GOOD: n.emergency_savings_good_description,
2336
2373
  FAIR: n.emergency_savings_fair_description,
2337
2374
  OFF_TRACK: n.emergency_savings_off_track_description,
2338
2375
  MISSING: n.emergency_savings_missing_description
2339
2376
  };
2340
- let h;
2341
- return d === "FAIR" && c !== null ? h = V(
2342
- _[d],
2343
- W(c, "0,0.00")
2344
- ) : h = _[d], {
2377
+ let u;
2378
+ return d === "FAIR" && c !== null ? u = j(
2379
+ p[d],
2380
+ $(c, "0,0.00")
2381
+ ) : u = p[d], {
2345
2382
  cardState: d,
2346
- description: h,
2383
+ description: u,
2347
2384
  title: n.emergency_savings_title
2348
2385
  };
2349
- }, { daysOfCashOnHand: a, emergencySavings: l } = m.useMemo(() => {
2350
- const c = t.months_of_cash_on_hand !== null ? Math.round(t.months_of_cash_on_hand * 30) : null, d = r(c), _ = t.emergency_savings_on_hand !== null ? Math.round(t.emergency_savings_on_hand) : null, h = s(_);
2351
- return { daysOfCashOnHand: d, emergencySavings: h };
2386
+ }, { daysOfCashOnHand: a, emergencySavings: l } = h.useMemo(() => {
2387
+ const c = t.months_of_cash_on_hand !== null ? Math.round(t.months_of_cash_on_hand * 30) : null, d = r(c), p = t.emergency_savings_on_hand !== null ? Math.round(t.emergency_savings_on_hand) : null, u = s(p);
2388
+ return { daysOfCashOnHand: d, emergencySavings: u };
2352
2389
  }, [
2353
2390
  t.months_of_cash_on_hand,
2354
2391
  t.emergency_savings_on_hand,
2355
2392
  n,
2356
2393
  o
2357
2394
  ]);
2358
- return /* @__PURE__ */ i(p, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
2395
+ return /* @__PURE__ */ i(_, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
2359
2396
  /* @__PURE__ */ e(
2360
- xe,
2397
+ fe,
2361
2398
  {
2362
2399
  cardState: a.cardState,
2363
2400
  description: a.description,
2364
- drawerFor: pe.SaveEnoughToLiveOn,
2401
+ drawerFor: ue.SaveEnoughToLiveOn,
2365
2402
  title: a.title
2366
2403
  }
2367
2404
  ),
2368
2405
  /* @__PURE__ */ e(
2369
- xe,
2406
+ fe,
2370
2407
  {
2371
2408
  cardState: l.cardState,
2372
2409
  description: l.description,
2373
- drawerFor: pe.MaintainEmergencySavings,
2410
+ drawerFor: ue.MaintainEmergencySavings,
2374
2411
  title: l.title
2375
2412
  }
2376
2413
  )
2377
2414
  ] });
2378
- }, Sr = v(xr), Cr = () => {
2379
- const { healthScore: t } = F(), { finstrong: o } = x(), { key_indicators_borrow: n } = o, { user: r } = ee(), s = (d) => {
2380
- const _ = mt(d), h = {
2415
+ }, wr = w(Cr), kr = () => {
2416
+ const { healthScore: t } = B(), { finstrong: o } = v(), { key_indicators_borrow: n } = o, { user: r } = ee(), s = (d) => {
2417
+ const p = yt(d), u = {
2381
2418
  GOOD: n.manage_debit_good_description,
2382
2419
  FAIR: n.manage_debit_fair_description,
2383
2420
  OFF_TRACK: n.manage_debit_off_track_description,
2384
2421
  MISSING: n.manage_debit_missing_description
2385
- }, u = _ === "FAIR" || _ === "OFF_TRACK" ? V(h[_], d) : h[_];
2422
+ }, m = p === "FAIR" || p === "OFF_TRACK" ? j(u[p], d) : u[p];
2386
2423
  return {
2387
- cardState: _,
2388
- description: u,
2424
+ cardState: p,
2425
+ description: m,
2389
2426
  title: n.manage_debit_title
2390
2427
  };
2391
2428
  }, a = (d) => {
2392
- const _ = _t(d), h = {
2429
+ const p = ht(d), u = {
2393
2430
  GOOD: n.credit_score_good_description,
2394
2431
  FAIR: n.credit_score_fair_description,
2395
2432
  OFF_TRACK: n.credit_score_off_track_description,
2396
2433
  MISSING: n.credit_score_missing_description
2397
- }, u = _ === "MISSING" ? h[_] : V(h[_], d);
2434
+ }, m = p === "MISSING" ? u[p] : j(u[p], d);
2398
2435
  return {
2399
- cardState: _,
2400
- description: u,
2436
+ cardState: p,
2437
+ description: m,
2401
2438
  title: n.credit_score_title
2402
2439
  };
2403
- }, { manageDebtStatus: l, creditScoreStatus: c } = m.useMemo(() => {
2404
- const d = t.debt_to_income_ratio !== null ? Math.round(t.debt_to_income_ratio * 100) : null, _ = s(d), h = a(r.credit_score || null);
2440
+ }, { manageDebtStatus: l, creditScoreStatus: c } = h.useMemo(() => {
2441
+ const d = t.debt_to_income_ratio !== null ? Math.round(t.debt_to_income_ratio * 100) : null, p = s(d), u = a(r.credit_score || null);
2405
2442
  return {
2406
- manageDebtStatus: _,
2407
- creditScoreStatus: h
2443
+ manageDebtStatus: p,
2444
+ creditScoreStatus: u
2408
2445
  };
2409
2446
  }, [t.debt_to_income_ratio, r.credit_score, n, o]);
2410
- return /* @__PURE__ */ i(p, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
2447
+ return /* @__PURE__ */ i(_, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
2411
2448
  /* @__PURE__ */ e(
2412
- xe,
2449
+ fe,
2413
2450
  {
2414
2451
  cardState: l.cardState,
2415
2452
  description: l.description,
2416
- drawerFor: pe.HaveManageableDebt,
2453
+ drawerFor: ue.HaveManageableDebt,
2417
2454
  title: l.title
2418
2455
  }
2419
2456
  ),
2420
2457
  /* @__PURE__ */ e(
2421
- xe,
2458
+ fe,
2422
2459
  {
2423
2460
  cardState: c.cardState,
2424
2461
  description: c.description,
2425
- drawerFor: pe.HaveAGoodCreditScore,
2462
+ drawerFor: ue.HaveAGoodCreditScore,
2426
2463
  title: c.title
2427
2464
  }
2428
2465
  )
2429
2466
  ] });
2430
- }, vr = v(Cr), wr = () => {
2431
- const [t, o] = m.useState(0), { finstrong: n } = x();
2432
- return /* @__PURE__ */ i(N, { children: [
2467
+ }, Mr = w(kr), Dr = () => {
2468
+ const [t, o] = h.useState(0), { finstrong: n } = v();
2469
+ return /* @__PURE__ */ i(z, { children: [
2433
2470
  /* @__PURE__ */ i(
2434
2471
  Ve,
2435
2472
  {
@@ -2448,10 +2485,10 @@ const Wo = ({ total: t }) => {
2448
2485
  variant: "fullWidth",
2449
2486
  children: [
2450
2487
  /* @__PURE__ */ e(
2451
- ce,
2488
+ de,
2452
2489
  {
2453
2490
  "aria-controls": "spend-details-tabpanel-0",
2454
- icon: /* @__PURE__ */ e(lt, { sx: { mr: 8 } }),
2491
+ icon: /* @__PURE__ */ e(pt, { sx: { mr: 8 } }),
2455
2492
  iconPosition: "start",
2456
2493
  id: "spend-details-tab-0",
2457
2494
  label: n.key_indicators_spend.title,
@@ -2459,10 +2496,10 @@ const Wo = ({ total: t }) => {
2459
2496
  }
2460
2497
  ),
2461
2498
  /* @__PURE__ */ e(
2462
- ce,
2499
+ de,
2463
2500
  {
2464
2501
  "aria-controls": "save-details-tabpanel-1",
2465
- icon: /* @__PURE__ */ e(ln, { sx: { mr: 8 } }),
2502
+ icon: /* @__PURE__ */ e(dn, { sx: { mr: 8 } }),
2466
2503
  iconPosition: "start",
2467
2504
  id: "save-details-tab-1",
2468
2505
  label: n.key_indicators_save.title,
@@ -2470,10 +2507,10 @@ const Wo = ({ total: t }) => {
2470
2507
  }
2471
2508
  ),
2472
2509
  /* @__PURE__ */ e(
2473
- ce,
2510
+ de,
2474
2511
  {
2475
2512
  "aria-controls": "borrow-details-tabpanel-2",
2476
- icon: /* @__PURE__ */ e(dn, { sx: { mr: 8 } }),
2513
+ icon: /* @__PURE__ */ e(pn, { sx: { mr: 8 } }),
2477
2514
  iconPosition: "start",
2478
2515
  id: "borrow-details-tab-2",
2479
2516
  label: n.key_indicators_borrow.title,
@@ -2483,22 +2520,22 @@ const Wo = ({ total: t }) => {
2483
2520
  ]
2484
2521
  }
2485
2522
  ),
2486
- /* @__PURE__ */ e(le, { index: 0, name: "spend-details", value: t, children: /* @__PURE__ */ e(fr, {}) }),
2487
- /* @__PURE__ */ e(le, { index: 1, name: "save-details", value: t, children: /* @__PURE__ */ e(Sr, {}) }),
2488
- /* @__PURE__ */ e(le, { index: 2, name: "borrow-details", value: t, children: /* @__PURE__ */ e(vr, {}) })
2523
+ /* @__PURE__ */ e(pe, { index: 0, name: "spend-details", value: t, children: /* @__PURE__ */ e(vr, {}) }),
2524
+ /* @__PURE__ */ e(pe, { index: 1, name: "save-details", value: t, children: /* @__PURE__ */ e(wr, {}) }),
2525
+ /* @__PURE__ */ e(pe, { index: 2, name: "borrow-details", value: t, children: /* @__PURE__ */ e(Mr, {}) })
2489
2526
  ] });
2490
- }, kr = v(wr), Mr = ({ onClick: t }) => {
2491
- const { finstrong: o } = x(), { isCopyLoaded: n } = U();
2492
- return n ? /* @__PURE__ */ i(p, { sx: { alignItems: "center", gap: 12, pt: 12, pb: 32 }, children: [
2493
- /* @__PURE__ */ e(pn, { size: 48 }),
2494
- /* @__PURE__ */ i(p, { sx: { alignItems: "center", gap: 4, textAlign: "center" }, children: [
2495
- /* @__PURE__ */ e(X, { children: o.missing_data_title }),
2496
- /* @__PURE__ */ e(D, { sx: { width: { sm: 348 } }, variant: "subtitle1", children: o.missing_data_description })
2527
+ }, Ir = w(Dr), Tr = ({ onClick: t }) => {
2528
+ const { finstrong: o } = v(), { isCopyLoaded: n } = J();
2529
+ return n ? /* @__PURE__ */ i(_, { sx: { alignItems: "center", gap: 12, pt: 12, pb: 32 }, children: [
2530
+ /* @__PURE__ */ e(_n, { size: 48 }),
2531
+ /* @__PURE__ */ i(_, { sx: { alignItems: "center", gap: 4, textAlign: "center" }, children: [
2532
+ /* @__PURE__ */ e(K, { children: o.missing_data_title }),
2533
+ /* @__PURE__ */ e(I, { sx: { width: { sm: 348 } }, variant: "subtitle1", children: o.missing_data_description })
2497
2534
  ] }),
2498
2535
  /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
2499
- B,
2536
+ P,
2500
2537
  {
2501
- endIcon: /* @__PURE__ */ e(J, {}),
2538
+ endIcon: /* @__PURE__ */ e(Z, {}),
2502
2539
  onClick: t,
2503
2540
  size: "small",
2504
2541
  sx: {
@@ -2511,8 +2548,8 @@ const Wo = ({ total: t }) => {
2511
2548
  children: o.connect_more_accounts_button
2512
2549
  }
2513
2550
  ) })
2514
- ] }) : /* @__PURE__ */ e(Q, {});
2515
- }, Dr = v(Mr), Ir = ({
2551
+ ] }) : /* @__PURE__ */ e(U, {});
2552
+ }, Ar = w(Tr), Or = ({
2516
2553
  firstDay: t,
2517
2554
  frequency: o,
2518
2555
  secondDay: n,
@@ -2523,22 +2560,22 @@ const Wo = ({ total: t }) => {
2523
2560
  setSecondDay: c,
2524
2561
  transaction: d
2525
2562
  }) => {
2526
- const { finstrong: _ } = x();
2527
- return /* @__PURE__ */ i(m.Fragment, { children: [
2528
- /* @__PURE__ */ i(p, { children: [
2529
- !!r.length && /* @__PURE__ */ e(M, { sx: { pb: 24 }, children: r.reduce((h, u, b) => {
2530
- if (u.guid === d.guid) return h;
2531
- const S = Hn(b, r), C = Nn(b, r);
2532
- return h.push(
2533
- /* @__PURE__ */ i(m.Fragment, { children: [
2534
- S && /* @__PURE__ */ e(jn, { children: wt(u.date) }),
2535
- /* @__PURE__ */ e(Kn, { transaction: u }),
2536
- /* @__PURE__ */ e(de, { sx: { ml: C ? 44 : 0 } })
2537
- ] }, u.guid)
2538
- ), h;
2563
+ const { finstrong: p } = v();
2564
+ return /* @__PURE__ */ i(h.Fragment, { children: [
2565
+ /* @__PURE__ */ i(_, { children: [
2566
+ !!r.length && /* @__PURE__ */ e(M, { sx: { pb: 24 }, children: r.reduce((u, m, b) => {
2567
+ if (m.guid === d.guid) return u;
2568
+ const C = Kn(b, r), x = Vn(b, r);
2569
+ return u.push(
2570
+ /* @__PURE__ */ i(h.Fragment, { children: [
2571
+ C && /* @__PURE__ */ e(Xn, { children: Mt(m.date) }),
2572
+ /* @__PURE__ */ e(Yn, { transaction: m }),
2573
+ /* @__PURE__ */ e(_e, { sx: { ml: x ? 44 : 0 } })
2574
+ ] }, m.guid)
2575
+ ), u;
2539
2576
  }, []) }),
2540
2577
  /* @__PURE__ */ e(
2541
- oo,
2578
+ io,
2542
2579
  {
2543
2580
  firstDay: t,
2544
2581
  frequency: o,
@@ -2551,21 +2588,21 @@ const Wo = ({ total: t }) => {
2551
2588
  )
2552
2589
  ] }),
2553
2590
  /* @__PURE__ */ e(M, { sx: { px: 24 }, children: /* @__PURE__ */ e(
2554
- B,
2591
+ P,
2555
2592
  {
2556
2593
  fullWidth: !0,
2557
- onClick: () => s({ step: O.MonthlyIncome, type: "main" }),
2558
- startIcon: /* @__PURE__ */ e(dt, {}),
2559
- children: _.onboarding_add_more_income
2594
+ onClick: () => s({ step: R.MonthlyIncome, type: "main" }),
2595
+ startIcon: /* @__PURE__ */ e(_t, {}),
2596
+ children: p.onboarding_add_more_income
2560
2597
  }
2561
2598
  ) })
2562
2599
  ] });
2563
- }, Ar = v(Ir), Tr = ({ selectedDate: t, setSelectedDate: o }) => {
2564
- const { finstrong: n } = x(), r = E(), s = (a) => {
2600
+ }, Rr = w(Or), Lr = ({ selectedDate: t, setSelectedDate: o }) => {
2601
+ const { finstrong: n } = v(), r = E(), s = (a) => {
2565
2602
  o(Math.floor(new Date(a).getTime() / 1e3));
2566
2603
  };
2567
- return /* @__PURE__ */ e(M, { sx: { p: 24 }, children: /* @__PURE__ */ e(io, { dateAdapter: Dt, children: /* @__PURE__ */ e(
2568
- so,
2604
+ return /* @__PURE__ */ e(M, { sx: { p: 24 }, children: /* @__PURE__ */ e(lo, { dateAdapter: Tt, children: /* @__PURE__ */ e(
2605
+ po,
2569
2606
  {
2570
2607
  disableFuture: !0,
2571
2608
  label: n.onboarding_select_date,
@@ -2574,13 +2611,13 @@ const Wo = ({ total: t }) => {
2574
2611
  nextIconButton: {
2575
2612
  sx: {
2576
2613
  color: "primary.main",
2577
- "&:hover": { bgcolor: se(r.palette.primary.light, 0.1) }
2614
+ "&:hover": { bgcolor: le(r.palette.primary.light, 0.1) }
2578
2615
  }
2579
2616
  },
2580
2617
  previousIconButton: {
2581
2618
  sx: {
2582
2619
  color: "primary.main",
2583
- "&:hover": { bgcolor: se(r.palette.primary.light, 0.1) }
2620
+ "&:hover": { bgcolor: le(r.palette.primary.light, 0.1) }
2584
2621
  }
2585
2622
  }
2586
2623
  },
@@ -2588,14 +2625,14 @@ const Wo = ({ total: t }) => {
2588
2625
  width: "100%",
2589
2626
  "& .MuiIconButton-edgeEnd": {
2590
2627
  color: "primary.main",
2591
- "&:hover": { bgcolor: se(r.palette.primary.light, 0.1) }
2628
+ "&:hover": { bgcolor: le(r.palette.primary.light, 0.1) }
2592
2629
  }
2593
2630
  },
2594
2631
  value: t ? new Date(t * 1e3) : null
2595
2632
  }
2596
2633
  ) }) });
2597
- }, Or = v(Tr), Rr = ({ creditScore: t, setCreditScore: o }) => {
2598
- const { finstrong: n } = x(), r = !isNaN(t);
2634
+ }, Fr = w(Lr), Br = ({ creditScore: t, setCreditScore: o }) => {
2635
+ const { finstrong: n } = v(), r = !isNaN(t);
2599
2636
  return /* @__PURE__ */ e(M, { sx: { p: 24 }, children: /* @__PURE__ */ e(
2600
2637
  Re,
2601
2638
  {
@@ -2611,8 +2648,8 @@ const Wo = ({ total: t }) => {
2611
2648
  value: r ? t : ""
2612
2649
  }
2613
2650
  ) });
2614
- }, Fr = v(Rr), Bt = ({ value: t, completeCopy: o }) => /* @__PURE__ */ i(p, { sx: { gap: 8 }, children: [
2615
- /* @__PURE__ */ e(p, { sx: { flexDirection: "row", gap: 4 }, children: Array.from({ length: 4 }).map((n, r) => /* @__PURE__ */ e(
2651
+ }, Pr = w(Br), Wt = ({ value: t, completeCopy: o }) => /* @__PURE__ */ i(_, { sx: { gap: 8 }, children: [
2652
+ /* @__PURE__ */ e(_, { sx: { flexDirection: "row", gap: 4 }, children: Array.from({ length: 4 }).map((n, r) => /* @__PURE__ */ e(
2616
2653
  M,
2617
2654
  {
2618
2655
  sx: {
@@ -2624,93 +2661,93 @@ const Wo = ({ total: t }) => {
2624
2661
  },
2625
2662
  r
2626
2663
  )) }),
2627
- /* @__PURE__ */ i(I, { sx: { color: "text.secondary" }, variant: "body2", children: [
2664
+ /* @__PURE__ */ i(T, { sx: { color: "text.secondary" }, variant: "body2", children: [
2628
2665
  t / 4 * 100,
2629
2666
  "% ",
2630
2667
  o
2631
2668
  ] })
2632
- ] }), Lr = ({
2669
+ ] }), Wr = ({
2633
2670
  completeCopy: t,
2634
2671
  primaryText: o,
2635
2672
  secondaryText: n,
2636
2673
  value: r
2637
- }) => /* @__PURE__ */ i(p, { sx: { gap: 20, p: 24 }, children: [
2638
- /* @__PURE__ */ i(p, { sx: { gap: 8 }, children: [
2639
- /* @__PURE__ */ e(X, { children: o }),
2640
- /* @__PURE__ */ e(D, { variant: "subtitle1", children: n })
2674
+ }) => /* @__PURE__ */ i(_, { sx: { gap: 20, p: 24 }, children: [
2675
+ /* @__PURE__ */ i(_, { sx: { gap: 8 }, children: [
2676
+ /* @__PURE__ */ e(K, { children: o }),
2677
+ /* @__PURE__ */ e(I, { variant: "subtitle1", children: n })
2641
2678
  ] }),
2642
- /* @__PURE__ */ e(Bt, { completeCopy: t, value: r })
2643
- ] }), at = {
2644
- step: O.ConnectAccounts,
2679
+ /* @__PURE__ */ e(Wt, { completeCopy: t, value: r })
2680
+ ] }), st = {
2681
+ step: R.ConnectAccounts,
2645
2682
  type: "main"
2646
- }, Br = ({ isOpen: t, onClose: o }) => {
2647
- const { visibleAccounts: n } = Se(), { calculateHealthScore: r } = F(), { finstrong: s } = x(), { setSelectedAccounts: a } = U(), { addRepeatingTransaction: l, setDateRange: c } = je(), { filter: d, setFilter: _, transactions: h } = On(), { user: u, userProfile: b, updateUser: S, updateUserProfile: C } = ee(), [f, w] = m.useState(u.credit_score || 0), [k, g] = m.useState(
2648
- at
2649
- ), [y, $] = m.useState(1), [L, T] = m.useState(Ct.EveryMonth), [P, z] = m.useState([]), [G, _e] = m.useState(!1), [ue, te] = m.useState(!1), [j, ve] = m.useState(u.birthday), [H, we] = m.useState(15), [K, ae] = m.useState("");
2650
- m.useEffect(() => {
2651
- c({ start: kt(ot()), end: Mt(ot()) });
2652
- }, []), m.useEffect(() => {
2653
- _({
2654
- accounts: n.map((A) => A.guid),
2683
+ }, $r = ({ isOpen: t, onClose: o }) => {
2684
+ const { visibleAccounts: n } = xe(), { calculateHealthScore: r } = B(), { finstrong: s } = v(), { addRepeatingTransaction: a, setDateRange: l } = je(), { filter: c, setFilter: d, transactions: p } = Rn(), { user: u, userProfile: m, updateUser: b, updateUserProfile: C } = ee(), [x, S] = h.useState(u.credit_score || 0), [y, k] = h.useState(
2685
+ st
2686
+ ), [g, f] = h.useState(1), [A, L] = h.useState(wt.EveryMonth), [D, G] = h.useState([]), [W, H] = h.useState(!1), [ve, ae] = h.useState(!1), [X, te] = h.useState(u.birthday), [ie, Y] = h.useState(15), [N, he] = h.useState("");
2687
+ h.useEffect(() => {
2688
+ l({ start: Dt(at()), end: It(at()) });
2689
+ }, []), h.useEffect(() => {
2690
+ d({
2691
+ accounts: n.map((O) => O.guid),
2655
2692
  dateRange: {
2656
- start: no(/* @__PURE__ */ new Date(), 90),
2693
+ start: ao(/* @__PURE__ */ new Date(), 90),
2657
2694
  end: /* @__PURE__ */ new Date()
2658
2695
  },
2659
- custom: rt
2660
- }), a(n);
2696
+ custom: it
2697
+ });
2661
2698
  }, [n]);
2662
- const he = m.useMemo(
2663
- () => h.find((A) => A.guid === K),
2664
- [K, h]
2665
- ), me = m.useMemo(() => ({
2666
- [O.ConnectAccounts]: !0,
2667
- [O.MonthlyIncome]: !!K,
2668
- [O.Birthday]: !!u.birthday || !!j,
2669
- [O.CreditScore]: !!u.credit_score || !!f
2670
- })[k.step], [f, k, j, K, u]), q = n.length > 0, Pt = m.useMemo(() => {
2671
- const { step: A } = k;
2672
- let R = 0;
2673
- return A >= O.MonthlyIncome && q && R++, A >= O.Birthday && P.length && R++, A >= O.CreditScore && (u.birthday || u.credit_score) && R++, R;
2674
- }, [k.step, q, P.length, u.birthday, u.credit_score]), Wt = (A) => {
2675
- _({
2676
- ...d,
2677
- custom: (R) => A ? ao(R, A) : rt(R)
2699
+ const se = h.useMemo(
2700
+ () => p.find((O) => O.guid === N),
2701
+ [N, p]
2702
+ ), Ce = h.useMemo(() => ({
2703
+ [R.ConnectAccounts]: !0,
2704
+ [R.MonthlyIncome]: !!N,
2705
+ [R.Birthday]: !!u.birthday || !!X,
2706
+ [R.CreditScore]: !!u.credit_score || !!x
2707
+ })[y.step], [x, y, X, N, u]), q = n.length > 0, De = h.useMemo(() => {
2708
+ const { step: O } = y;
2709
+ let F = 0;
2710
+ return O >= R.MonthlyIncome && q && F++, O >= R.Birthday && D.length && F++, O >= R.CreditScore && (u.birthday || u.credit_score) && F++, F;
2711
+ }, [y.step, q, D.length, u.birthday, u.credit_score]), $t = (O) => {
2712
+ d({
2713
+ ...c,
2714
+ custom: (F) => O ? co(F, O) : it(F)
2678
2715
  });
2679
- }, $t = {
2680
- [O.ConnectAccounts]: {
2681
- main: q ? /* @__PURE__ */ e(Rt, { shouldShowBalance: !1 }) : null,
2716
+ }, Et = {
2717
+ [R.ConnectAccounts]: {
2718
+ main: q ? /* @__PURE__ */ e(Ft, { shouldShowBalance: !1 }) : null,
2682
2719
  mainActionContent: q ? s.onboarding_next : s.onboarding_add_accounts,
2683
2720
  primaryText: s.connect_your_accounts,
2684
2721
  secondaryText: s.onboarding_connect_your_accounts_secondary
2685
2722
  },
2686
- [O.MonthlyIncome]: {
2723
+ [R.MonthlyIncome]: {
2687
2724
  detail: /* @__PURE__ */ e(
2688
- Ar,
2725
+ Rr,
2689
2726
  {
2690
- firstDay: y,
2691
- frequency: L,
2692
- incomeTransactions: P,
2693
- secondDay: H,
2694
- setCurrentStep: (A) => {
2695
- g(A), z((R) => {
2696
- if (R.some((ie) => ie.guid === K)) return R.filter((ie) => ie.guid !== K);
2697
- const Ae = h.find((ie) => ie.guid === K);
2698
- return Ae ? [...R, { ...Ae, firstDay: y, frequency: L, secondDay: H }] : R;
2727
+ firstDay: g,
2728
+ frequency: A,
2729
+ incomeTransactions: D,
2730
+ secondDay: ie,
2731
+ setCurrentStep: (O) => {
2732
+ k(O), G((F) => {
2733
+ if (F.some((ce) => ce.guid === N)) return F.filter((ce) => ce.guid !== N);
2734
+ const Te = p.find((ce) => ce.guid === N);
2735
+ return Te ? [...F, { ...Te, firstDay: g, frequency: A, secondDay: ie }] : F;
2699
2736
  });
2700
2737
  },
2701
- setFirstDay: $,
2702
- setFrequency: T,
2703
- setSecondDay: we,
2704
- transaction: he
2738
+ setFirstDay: f,
2739
+ setFrequency: L,
2740
+ setSecondDay: Y,
2741
+ transaction: se
2705
2742
  }
2706
2743
  ),
2707
2744
  detailActionContent: s.onboarding_confirm_income,
2708
2745
  main: /* @__PURE__ */ e(
2709
- ro,
2746
+ so,
2710
2747
  {
2711
- onSearch: Wt,
2712
- onSelected: (A) => {
2713
- g({ step: O.MonthlyIncome, type: "detail" }), ae(A);
2748
+ onSearch: $t,
2749
+ onSelected: (O) => {
2750
+ k({ step: R.MonthlyIncome, type: "detail" }), he(O);
2714
2751
  }
2715
2752
  }
2716
2753
  ),
@@ -2718,133 +2755,133 @@ const Wo = ({ total: t }) => {
2718
2755
  primaryText: s.onboarding_add_income_primary,
2719
2756
  secondaryText: s.onboarding_add_income_secondary
2720
2757
  },
2721
- [O.Birthday]: {
2722
- main: /* @__PURE__ */ e(Or, { selectedDate: j, setSelectedDate: ve }),
2758
+ [R.Birthday]: {
2759
+ main: /* @__PURE__ */ e(Fr, { selectedDate: X, setSelectedDate: te }),
2723
2760
  mainActionContent: s.onboarding_next,
2724
2761
  primaryText: s.onboarding_birthday_primary,
2725
2762
  secondaryText: s.onboarding_birthday_secondary
2726
2763
  },
2727
- [O.CreditScore]: {
2728
- main: /* @__PURE__ */ e(Fr, { creditScore: f, setCreditScore: w }),
2764
+ [R.CreditScore]: {
2765
+ main: /* @__PURE__ */ e(Pr, { creditScore: x, setCreditScore: S }),
2729
2766
  mainActionContent: s.onboarding_next,
2730
2767
  primaryText: s.onboarding_credit_score_primary,
2731
2768
  secondaryText: s.onboarding_credit_score_secondary
2732
2769
  }
2733
2770
  }, qe = () => {
2734
- g(at), _e(!1), ae(""), o();
2771
+ k(st), H(!1), he(""), o();
2735
2772
  }, Ue = async () => {
2736
- _e(!0), await Ht(P), await r(), await C({ ...b, has_completed_finstrong_onboarding: !0 }), qe();
2773
+ H(!0), await Nt(D), await r(), await C({ ...m, has_completed_finstrong_onboarding: !0 }), qe();
2737
2774
  }, zt = () => {
2738
- if (k.step === O.CreditScore) {
2775
+ if (y.step === R.CreditScore) {
2739
2776
  Ue();
2740
2777
  return;
2741
2778
  }
2742
- g({ step: k.step + 1, type: "main" });
2743
- }, Et = () => {
2744
- const { step: A } = k, R = A + 1;
2745
- switch (A) {
2746
- case O.Birthday:
2747
- j && j !== u.birthday && S({ ...u, birthday: j });
2779
+ k({ step: y.step + 1, type: "main" });
2780
+ }, Gt = () => {
2781
+ const { step: O } = y, F = O + 1;
2782
+ switch (O) {
2783
+ case R.Birthday:
2784
+ X && X !== u.birthday && b({ ...u, birthday: X });
2748
2785
  break;
2749
- case O.CreditScore:
2750
- f && f !== u.credit_score && S({ ...u, credit_score: f }), Ue();
2786
+ case R.CreditScore:
2787
+ x && x !== u.credit_score && b({ ...u, credit_score: x }), Ue();
2751
2788
  return;
2752
- case O.MonthlyIncome:
2753
- K && P.findIndex(({ guid: ye }) => ye === K) === -1 && z((ye) => [
2754
- ...ye,
2755
- { ...he, firstDay: y, frequency: L, secondDay: H }
2789
+ case R.MonthlyIncome:
2790
+ N && D.findIndex(({ guid: ge }) => ge === N) === -1 && G((ge) => [
2791
+ ...ge,
2792
+ { ...se, firstDay: g, frequency: A, secondDay: ie }
2756
2793
  ]);
2757
2794
  break;
2758
- case O.ConnectAccounts:
2795
+ case R.ConnectAccounts:
2759
2796
  if (!q) {
2760
- te(!0);
2797
+ ae(!0);
2761
2798
  return;
2762
2799
  }
2763
2800
  break;
2764
2801
  }
2765
- R in O && g({ step: R, type: "main" });
2766
- }, Gt = () => {
2767
- const { step: A, type: R } = k;
2768
- if (R === "detail") {
2769
- g({ step: A, type: "main" });
2802
+ F in R && k({ step: F, type: "main" });
2803
+ }, Ht = () => {
2804
+ const { step: O, type: F } = y;
2805
+ if (F === "detail") {
2806
+ k({ step: O, type: "main" });
2770
2807
  return;
2771
2808
  }
2772
- if (A === O.Birthday && P.length) {
2773
- g({ step: A - 1, type: "detail" });
2809
+ if (O === R.Birthday && D.length) {
2810
+ k({ step: O - 1, type: "detail" });
2774
2811
  return;
2775
2812
  }
2776
- A > O.ConnectAccounts && g({ step: A - 1, type: "main" });
2777
- }, Ht = async (A) => {
2778
- for (const R of A) {
2813
+ O > R.ConnectAccounts && k({ step: O - 1, type: "main" });
2814
+ }, Nt = async (O) => {
2815
+ for (const F of O) {
2779
2816
  const {
2780
- account_guid: ye,
2781
- amount: Ae,
2782
- date: ie,
2783
- description: Kt,
2784
- feed_description: Vt,
2785
- firstDay: Xt,
2817
+ account_guid: ge,
2818
+ amount: Te,
2819
+ date: ce,
2820
+ description: Vt,
2821
+ feed_description: Xt,
2822
+ firstDay: Yt,
2786
2823
  frequency: Qe,
2787
- secondDay: Yt,
2788
- merchant_guid: qt,
2789
- payee: Ut,
2790
- transaction_type: Qt
2791
- } = R, Zt = zn(Qe, to(ie)), Jt = {
2792
- account_guid: ye,
2793
- amount: Ae,
2824
+ secondDay: qt,
2825
+ merchant_guid: Ut,
2826
+ payee: Qt,
2827
+ transaction_type: Zt
2828
+ } = F, Jt = Hn(Qe, ro(ce)), en = {
2829
+ account_guid: ge,
2830
+ amount: Te,
2794
2831
  created_by: 0,
2795
- description: Ut || Kt || Vt,
2796
- merchant_guid: qt,
2797
- predicted_occurs_on: eo(Zt, { representation: "date" }),
2798
- recurrence_day: Xt,
2832
+ description: Qt || Vt || Xt,
2833
+ merchant_guid: Ut,
2834
+ predicted_occurs_on: oo(Jt, { representation: "date" }),
2835
+ recurrence_day: Yt,
2799
2836
  recurrence_type: Qe,
2800
- repeating_transaction_type: vt.Income,
2801
- second_recurrence_day: Yt,
2802
- transaction_type: Qt,
2837
+ repeating_transaction_type: kt.Income,
2838
+ second_recurrence_day: qt,
2839
+ transaction_type: Zt,
2803
2840
  user_guid: u.guid
2804
2841
  };
2805
- await l(Jt, R);
2842
+ await a(en, F);
2806
2843
  }
2807
- }, ge = $t[k.step], Ie = k.step === O.ConnectAccounts, Nt = {
2844
+ }, me = Et[y.step], Ie = y.step === R.ConnectAccounts, jt = {
2808
2845
  fullWidth: !0,
2809
- ...Ie && !q && { startIcon: /* @__PURE__ */ e(dt, {}) }
2810
- }, jt = !Ie || Ie && !q;
2811
- return /* @__PURE__ */ i(m.Fragment, { children: [
2846
+ ...Ie && !q && { startIcon: /* @__PURE__ */ e(_t, {}) }
2847
+ }, Kt = !Ie || Ie && !q;
2848
+ return /* @__PURE__ */ i(h.Fragment, { children: [
2812
2849
  /* @__PURE__ */ e(
2813
2850
  oe,
2814
2851
  {
2815
2852
  footerStyles: { borderTop: 1, borderColor: "divider", px: 24, py: 16 },
2816
2853
  hasSecondaryAction: !Ie,
2817
2854
  isOpen: t,
2818
- isPrimaryDisabled: !me,
2855
+ isPrimaryDisabled: !Ce,
2819
2856
  onClose: qe,
2820
- onSecondaryAction: Gt,
2821
- primaryButtonProps: Nt,
2822
- primaryText: ge?.mainActionContent,
2857
+ onSecondaryAction: Ht,
2858
+ primaryButtonProps: jt,
2859
+ primaryText: me?.mainActionContent,
2823
2860
  secondaryColor: "primary",
2824
2861
  secondaryText: s.onboarding_back,
2825
2862
  title: s.title,
2826
- ...!G && { onPrimaryAction: Et },
2827
- children: /* @__PURE__ */ i(p, { sx: { bgcolor: "background.default", height: "100%" }, children: [
2828
- G && /* @__PURE__ */ i(p, { sx: { alignItems: "center", gap: 24, position: "relative", px: 16, top: 126 }, children: [
2829
- /* @__PURE__ */ e("img", { alt: "", src: Do, style: { minHeight: 100, width: 211 } }),
2830
- /* @__PURE__ */ e(Le, { children: s.onboarding_calculate_primary }),
2831
- /* @__PURE__ */ e(D, { sx: { textAlign: "center" }, variant: "subtitle1", children: s.onboarding_calculate_secondary })
2863
+ ...!W && { onPrimaryAction: Gt },
2864
+ children: /* @__PURE__ */ i(_, { sx: { bgcolor: "background.default", height: "100%" }, children: [
2865
+ W && /* @__PURE__ */ i(_, { sx: { alignItems: "center", gap: 24, position: "relative", px: 16, top: 126 }, children: [
2866
+ /* @__PURE__ */ e("img", { alt: "", src: Ao, style: { minHeight: 100, width: 211 } }),
2867
+ /* @__PURE__ */ e(Fe, { children: s.onboarding_calculate_primary }),
2868
+ /* @__PURE__ */ e(I, { sx: { textAlign: "center" }, variant: "subtitle1", children: s.onboarding_calculate_secondary })
2832
2869
  ] }),
2833
- ge && !G && /* @__PURE__ */ i(m.Fragment, { children: [
2870
+ me && !W && /* @__PURE__ */ i(h.Fragment, { children: [
2834
2871
  /* @__PURE__ */ e(
2835
- Lr,
2872
+ Wr,
2836
2873
  {
2837
2874
  completeCopy: s.complete,
2838
- primaryText: ge.primaryText,
2839
- secondaryText: ge.secondaryText,
2840
- value: Pt
2875
+ primaryText: me.primaryText,
2876
+ secondaryText: me.secondaryText,
2877
+ value: De
2841
2878
  }
2842
2879
  ),
2843
- k.type === "main" && /* @__PURE__ */ i(M, { sx: { bgcolor: "background.default" }, children: [
2844
- ge.main,
2845
- jt && /* @__PURE__ */ e(p, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e(B, { fullWidth: !0, onClick: zt, children: s.onboarding_do_it_later }) })
2880
+ y.type === "main" && /* @__PURE__ */ i(M, { sx: { bgcolor: "background.default" }, children: [
2881
+ me.main,
2882
+ Kt && /* @__PURE__ */ e(_, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e(P, { fullWidth: !0, onClick: zt, children: s.onboarding_do_it_later }) })
2846
2883
  ] }),
2847
- k.type === "detail" && ge.detail
2884
+ y.type === "detail" && me.detail
2848
2885
  ] })
2849
2886
  ] })
2850
2887
  }
@@ -2852,17 +2889,17 @@ const Wo = ({ total: t }) => {
2852
2889
  /* @__PURE__ */ e(
2853
2890
  re,
2854
2891
  {
2855
- onClose: () => te(!1),
2856
- showConnectWidget: ue,
2892
+ onClose: () => ae(!1),
2893
+ showConnectWidget: ve,
2857
2894
  title: s.connect_more_accounts_button
2858
2895
  }
2859
2896
  )
2860
2897
  ] });
2861
- }, Pr = v(Br), Wr = () => {
2862
- const { finstrong: t } = x(), [o, n] = m.useState(!1);
2863
- return /* @__PURE__ */ i(m.Fragment, { children: [
2898
+ }, Er = w($r), zr = () => {
2899
+ const { finstrong: t } = v(), [o, n] = h.useState(!1);
2900
+ return /* @__PURE__ */ i(h.Fragment, { children: [
2864
2901
  /* @__PURE__ */ i(
2865
- p,
2902
+ _,
2866
2903
  {
2867
2904
  sx: {
2868
2905
  alignItems: "center",
@@ -2874,22 +2911,22 @@ const Wo = ({ total: t }) => {
2874
2911
  px: 16
2875
2912
  },
2876
2913
  children: [
2877
- /* @__PURE__ */ i(p, { sx: { alignItems: { sm: "center" }, gap: 24, width: "100%" }, children: [
2878
- /* @__PURE__ */ e(M, { sx: { textAlign: "center" }, children: /* @__PURE__ */ e(_n, { size: 72 }) }),
2879
- /* @__PURE__ */ i(p, { sx: { gap: 4, textAlign: "center", width: { sm: 400 } }, children: [
2880
- /* @__PURE__ */ e(Le, { children: t.onboarding_title }),
2881
- /* @__PURE__ */ e(D, { sx: { color: "text.secondary" }, variant: "subtitle1", children: t.onboarding_subtitle })
2914
+ /* @__PURE__ */ i(_, { sx: { alignItems: { sm: "center" }, gap: 24, width: "100%" }, children: [
2915
+ /* @__PURE__ */ e(M, { sx: { textAlign: "center" }, children: /* @__PURE__ */ e(un, { size: 72 }) }),
2916
+ /* @__PURE__ */ i(_, { sx: { gap: 4, textAlign: "center", width: { sm: 400 } }, children: [
2917
+ /* @__PURE__ */ e(Fe, { children: t.onboarding_title }),
2918
+ /* @__PURE__ */ e(I, { sx: { color: "text.secondary" }, variant: "subtitle1", children: t.onboarding_subtitle })
2882
2919
  ] })
2883
2920
  ] }),
2884
- /* @__PURE__ */ e(B, { onClick: () => n(!0), variant: "contained", children: t.onboarding_get_started })
2921
+ /* @__PURE__ */ e(P, { onClick: () => n(!0), variant: "contained", children: t.onboarding_get_started })
2885
2922
  ]
2886
2923
  }
2887
2924
  ),
2888
- /* @__PURE__ */ e(Pr, { isOpen: o, onClose: () => n(!1) })
2925
+ /* @__PURE__ */ e(Er, { isOpen: o, onClose: () => n(!1) })
2889
2926
  ] });
2890
- }, $r = ({ isOpen: t, onClose: o }) => {
2891
- const { finstrong: n } = x(), r = E(), { updateUser: s, user: a } = ee(), [l, c] = m.useState(a.birthday), d = (h) => {
2892
- c(Math.floor(new Date(h).getTime() / 1e3));
2927
+ }, Gr = ({ isOpen: t, onClose: o }) => {
2928
+ const { finstrong: n } = v(), r = E(), { updateUser: s, user: a } = ee(), [l, c] = h.useState(a.birthday), d = (u) => {
2929
+ c(Math.floor(new Date(u).getTime() / 1e3));
2893
2930
  };
2894
2931
  return /* @__PURE__ */ e(
2895
2932
  oe,
@@ -2902,8 +2939,8 @@ const Wo = ({ total: t }) => {
2902
2939
  },
2903
2940
  onSecondaryAction: o,
2904
2941
  title: n.date_of_birth,
2905
- children: /* @__PURE__ */ e(p, { sx: { bgcolor: "background.default", height: "100%" }, children: /* @__PURE__ */ e(po, { dateAdapter: Dt, children: /* @__PURE__ */ e(
2906
- co,
2942
+ children: /* @__PURE__ */ e(_, { sx: { bgcolor: "background.default", height: "100%" }, children: /* @__PURE__ */ e(ho, { dateAdapter: Tt, children: /* @__PURE__ */ e(
2943
+ _o,
2907
2944
  {
2908
2945
  disableFuture: !0,
2909
2946
  onChange: d,
@@ -2911,19 +2948,19 @@ const Wo = ({ total: t }) => {
2911
2948
  nextIconButton: {
2912
2949
  sx: {
2913
2950
  color: "primary.main",
2914
- "&:hover": { bgcolor: se(r.palette.primary.light, 0.1) }
2951
+ "&:hover": { bgcolor: le(r.palette.primary.light, 0.1) }
2915
2952
  }
2916
2953
  },
2917
2954
  previousIconButton: {
2918
2955
  sx: {
2919
2956
  color: "primary.main",
2920
- "&:hover": { bgcolor: se(r.palette.primary.light, 0.1) }
2957
+ "&:hover": { bgcolor: le(r.palette.primary.light, 0.1) }
2921
2958
  }
2922
2959
  },
2923
2960
  switchViewButton: {
2924
2961
  sx: {
2925
2962
  color: "primary.main",
2926
- "&:hover": { bgcolor: se(r.palette.primary.light, 0.1) }
2963
+ "&:hover": { bgcolor: le(r.palette.primary.light, 0.1) }
2927
2964
  }
2928
2965
  }
2929
2966
  },
@@ -2935,7 +2972,7 @@ const Wo = ({ total: t }) => {
2935
2972
  width: "100%",
2936
2973
  "& .MuiIconButton-edgeEnd": {
2937
2974
  color: "primary.main",
2938
- "&:hover": { bgcolor: se(r.palette.primary.light, 0.1) }
2975
+ "&:hover": { bgcolor: le(r.palette.primary.light, 0.1) }
2939
2976
  }
2940
2977
  },
2941
2978
  value: l ? new Date(l * 1e3) : /* @__PURE__ */ new Date()
@@ -2943,28 +2980,28 @@ const Wo = ({ total: t }) => {
2943
2980
  ) }) })
2944
2981
  }
2945
2982
  );
2946
- }, zr = v($r), Er = ({ isOpen: t, onClose: o }) => {
2947
- const { visibleFinstrongAccounts: n } = Se(), {
2983
+ }, Hr = w(Gr), Nr = ({ isOpen: t, onClose: o }) => {
2984
+ const { visibleFinstrongAccounts: n } = xe(), {
2948
2985
  accounts: r,
2949
2986
  common: s,
2950
2987
  finstrong: a,
2951
2988
  recurring: l
2952
- } = x(), { repeatingTransactions: c } = je(), { user: d } = ee(), _ = c.reduce((C, f) => {
2953
- const { repeating_transaction_type: w, transactions: k, recurrence_type: g, amount: y } = f;
2954
- return w === vt.Income && (k.length > 0 || g === Ct.EveryYear) ? C + y : C;
2955
- }, 0), [h, u] = m.useState(null), S = [
2989
+ } = v(), { repeatingTransactions: c } = je(), { user: d } = ee(), p = c.reduce((x, S) => {
2990
+ const { repeating_transaction_type: y, transactions: k, recurrence_type: g, amount: f } = S;
2991
+ return y === kt.Income && (k && k.length > 0 || g === wt.EveryYear) ? x + f : x;
2992
+ }, 0), [u, m] = h.useState(null), C = [
2956
2993
  {
2957
2994
  dynamicCopy: a.add_profile_item,
2958
2995
  fallbackLabel: a.monthly_income,
2959
- icon: /* @__PURE__ */ e(un, {}),
2996
+ icon: /* @__PURE__ */ e(hn, {}),
2960
2997
  key: ne.MonthlyIncome,
2961
2998
  label: a.monthly_income,
2962
- value: _
2999
+ value: p
2963
3000
  },
2964
3001
  {
2965
3002
  dynamicCopy: a.add_profile_item,
2966
3003
  fallbackLabel: a.date_of_birth,
2967
- icon: /* @__PURE__ */ e(hn, {}),
3004
+ icon: /* @__PURE__ */ e(mn, {}),
2968
3005
  key: ne.DateOfBirth,
2969
3006
  label: a.date_of_birth,
2970
3007
  value: d.birthday
@@ -2972,39 +3009,39 @@ const Wo = ({ total: t }) => {
2972
3009
  {
2973
3010
  dynamicCopy: a.add_profile_item,
2974
3011
  fallbackLabel: a.credit_score,
2975
- icon: /* @__PURE__ */ e(lt, {}),
3012
+ icon: /* @__PURE__ */ e(pt, {}),
2976
3013
  key: ne.CreditScore,
2977
3014
  label: a.credit_score,
2978
3015
  value: d.credit_score
2979
3016
  },
2980
3017
  {
2981
3018
  fallbackLabel: a.connect_your_accounts,
2982
- icon: /* @__PURE__ */ e(ct, {}),
3019
+ icon: /* @__PURE__ */ e(dt, {}),
2983
3020
  key: ne.Connections,
2984
3021
  label: a.connections,
2985
- value: n.length > 0 ? V(
3022
+ value: n.length > 0 ? j(
2986
3023
  a.connected_account,
2987
3024
  String(n.length),
2988
3025
  n.length > 1 ? a.accounts : a.account
2989
3026
  ) : void 0
2990
3027
  }
2991
- ].map((C) => Dn(C));
3028
+ ].map((x) => In(x));
2992
3029
  return /* @__PURE__ */ i(oe, { isOpen: t, onClose: o, title: a.financial_profile, children: [
2993
- /* @__PURE__ */ i(p, { sx: { bgcolor: "background.default", height: "100%" }, children: [
2994
- /* @__PURE__ */ i(p, { sx: { gap: 20, p: 24 }, children: [
2995
- /* @__PURE__ */ i(p, { sx: { gap: 8 }, children: [
2996
- /* @__PURE__ */ e(X, { children: a.your_financial_profile }),
2997
- /* @__PURE__ */ e(D, { children: a.financial_profile_description })
3030
+ /* @__PURE__ */ i(_, { sx: { bgcolor: "background.default", height: "100%" }, children: [
3031
+ /* @__PURE__ */ i(_, { sx: { gap: 20, p: 24 }, children: [
3032
+ /* @__PURE__ */ i(_, { sx: { gap: 8 }, children: [
3033
+ /* @__PURE__ */ e(K, { children: a.your_financial_profile }),
3034
+ /* @__PURE__ */ e(I, { children: a.financial_profile_description })
2998
3035
  ] }),
2999
3036
  /* @__PURE__ */ e(
3000
- Bt,
3037
+ Wt,
3001
3038
  {
3002
3039
  completeCopy: a.complete,
3003
- value: S.reduce((C, f) => C + (f.isComplete ? 1 : 0), 0)
3040
+ value: C.reduce((x, S) => x + (S.isComplete ? 1 : 0), 0)
3004
3041
  }
3005
3042
  )
3006
3043
  ] }),
3007
- /* @__PURE__ */ e(In, { list: S, onClickItem: u }),
3044
+ /* @__PURE__ */ e(Tn, { list: C, onClickItem: m }),
3008
3045
  /* @__PURE__ */ e(M, { sx: { p: 24 }, children: /* @__PURE__ */ e(
3009
3046
  Be,
3010
3047
  {
@@ -3019,59 +3056,70 @@ const Wo = ({ total: t }) => {
3019
3056
  /* @__PURE__ */ e(
3020
3057
  oe,
3021
3058
  {
3022
- isOpen: h === ne.MonthlyIncome,
3023
- onClose: () => u(null),
3059
+ isOpen: u === ne.MonthlyIncome,
3060
+ onClose: () => m(null),
3024
3061
  shouldShowHeaderBorders: !1,
3025
3062
  title: l.action_title,
3026
- children: /* @__PURE__ */ e(lo, {})
3063
+ children: /* @__PURE__ */ e(uo, {})
3027
3064
  }
3028
3065
  ),
3029
- /* @__PURE__ */ e(zr, { isOpen: h === ne.DateOfBirth, onClose: () => u(null) }),
3030
- /* @__PURE__ */ e(Tt, { isOpen: h === ne.CreditScore, onClose: () => u(null) }),
3066
+ /* @__PURE__ */ e(Hr, { isOpen: u === ne.DateOfBirth, onClose: () => m(null) }),
3067
+ /* @__PURE__ */ e(Rt, { isOpen: u === ne.CreditScore, onClose: () => m(null) }),
3031
3068
  /* @__PURE__ */ e(
3032
- yt,
3069
+ ft,
3033
3070
  {
3034
- onClose: () => u(null),
3035
- showConnectionsWidget: h === ne.Connections,
3071
+ onClose: () => m(null),
3072
+ showConnectionsWidget: u === ne.Connections,
3036
3073
  title: r.manage_connections
3037
3074
  }
3038
3075
  )
3039
3076
  ] });
3040
- }, Gr = v(Er), it = ({
3077
+ }, jr = w(Nr), ct = ({
3041
3078
  content: t,
3042
3079
  islast: o = !1
3043
- }) => /* @__PURE__ */ i(ho, { sx: { minHeight: 0 }, children: [
3044
- /* @__PURE__ */ i(fo, { children: [
3045
- /* @__PURE__ */ e(bo, { sx: { bgcolor: "divider", borderWidth: 1, p: 3 } }),
3046
- !o && /* @__PURE__ */ e(go, { sx: { bgcolor: "divider", width: 0.1 } })
3080
+ }) => /* @__PURE__ */ i(yo, { sx: { minHeight: 0 }, children: [
3081
+ /* @__PURE__ */ i(vo, { children: [
3082
+ /* @__PURE__ */ e(So, { sx: { bgcolor: "divider", boxShadow: "none", p: 2 } }),
3083
+ !o && /* @__PURE__ */ e(
3084
+ fo,
3085
+ {
3086
+ sx: {
3087
+ bgcolor: "background.paper",
3088
+ borderLeft: "1px solid",
3089
+ borderColor: "divider",
3090
+ borderRadius: 1,
3091
+ m: -4
3092
+ }
3093
+ }
3094
+ )
3047
3095
  ] }),
3048
- /* @__PURE__ */ e(yo, { sx: { pb: 16, pl: 12, pr: 0, pt: 5 }, children: /* @__PURE__ */ e(D, { fontSize: 13, fontWeight: 400, variant: "subtitle2", children: t }) })
3049
- ] }), Hr = ({ report: t }) => {
3050
- const { finstrong: o } = x(), { score_history_drawer_timeline: n } = o, {
3096
+ /* @__PURE__ */ e(xo, { sx: { pb: 16, pl: 12, pr: 0, pt: 5 }, children: /* @__PURE__ */ e(I, { fontSize: 13, fontWeight: 400, variant: "subtitle2", children: t }) })
3097
+ ] }), Kr = ({ report: t }) => {
3098
+ const { finstrong: o } = v(), { score_history_drawer_timeline: n } = o, {
3051
3099
  health_score_point_difference: r,
3052
3100
  newer_credit_score: s,
3053
3101
  older_credit_score: a,
3054
3102
  older_spend_to_income_ratio: l,
3055
3103
  newer_spend_to_income_ratio: c,
3056
3104
  older_health_score: d,
3057
- newer_health_score: _,
3058
- newer_score_calculated_at: h
3059
- } = t, u = _o(new Date(h), "MMM d"), b = () => r === 0 ? "info.lighter" : r > 0 ? "success.lighter" : "error.lighter", S = () => r === 0 ? V(n.stayed_at, d) : r > 0 ? n.less_spending : n.more_spending, C = () => {
3105
+ newer_health_score: p,
3106
+ newer_score_calculated_at: u
3107
+ } = t, m = mo(new Date(u), "MMM d"), b = () => r === 0 ? "info.lighter" : r > 0 ? "success.lighter" : "error.lighter", C = () => r === 0 ? j(n.stayed_at, d) : r > 0 ? n.less_spending : n.more_spending, x = () => {
3060
3108
  if (r === 0) return null;
3061
- const f = r > 0 ? n.up_from : n.down_from, w = V(f, d, _);
3062
- return /* @__PURE__ */ i(N, { children: [
3109
+ const S = r > 0 ? n.up_from : n.down_from, y = j(S, d, p);
3110
+ return /* @__PURE__ */ i(z, { children: [
3063
3111
  /* @__PURE__ */ e(
3064
- nn,
3112
+ on,
3065
3113
  {
3066
3114
  fill: !0,
3067
3115
  name: "circle",
3068
3116
  sx: { color: "text.secondary", fontSize: 8, mx: 4, p: 1 }
3069
3117
  }
3070
3118
  ),
3071
- w
3119
+ y
3072
3120
  ] });
3073
3121
  };
3074
- return /* @__PURE__ */ i(Y, { children: [
3122
+ return /* @__PURE__ */ i(V, { children: [
3075
3123
  /* @__PURE__ */ e(
3076
3124
  M,
3077
3125
  {
@@ -3082,13 +3130,13 @@ const Wo = ({ total: t }) => {
3082
3130
  p: 16
3083
3131
  },
3084
3132
  children: /* @__PURE__ */ i(
3085
- p,
3133
+ _,
3086
3134
  {
3087
3135
  flexDirection: "row",
3088
3136
  sx: { alignItems: "center", gap: 16, height: 48, width: "100%" },
3089
3137
  children: [
3090
3138
  /* @__PURE__ */ e(
3091
- p,
3139
+ _,
3092
3140
  {
3093
3141
  sx: {
3094
3142
  alignItems: "center",
@@ -3098,15 +3146,15 @@ const Wo = ({ total: t }) => {
3098
3146
  justifyContent: "center",
3099
3147
  width: 48
3100
3148
  },
3101
- children: /* @__PURE__ */ e(D, { sx: { fontWeight: 600 }, variant: "Body", children: r > 0 ? `+${r}` : r })
3149
+ children: /* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: "Body", children: r > 0 ? `+${r}` : r })
3102
3150
  }
3103
3151
  ),
3104
- /* @__PURE__ */ i(p, { sx: { gap: 2, width: "80%" }, children: [
3105
- /* @__PURE__ */ e(I, { fontWeight: 600, variant: "Body", children: S() }),
3106
- /* @__PURE__ */ i(I, { sx: { color: "text.secondary" }, variant: "subtitle2", children: [
3107
- u,
3152
+ /* @__PURE__ */ i(_, { sx: { gap: 2, width: "80%" }, children: [
3153
+ /* @__PURE__ */ e(T, { fontWeight: 600, variant: "Body", children: C() }),
3154
+ /* @__PURE__ */ i(T, { sx: { color: "text.secondary" }, variant: "subtitle2", children: [
3155
+ m,
3108
3156
  " ",
3109
- C()
3157
+ x()
3110
3158
  ] })
3111
3159
  ] })
3112
3160
  ]
@@ -3115,10 +3163,10 @@ const Wo = ({ total: t }) => {
3115
3163
  }
3116
3164
  ),
3117
3165
  r !== 0 && /* @__PURE__ */ e(M, { sx: { color: "text.secondary", pb: 8, pl: 32, pr: 16, pt: 12 }, children: /* @__PURE__ */ i(
3118
- uo,
3166
+ go,
3119
3167
  {
3120
3168
  sx: {
3121
- [`& .${mo.root}:before`]: {
3169
+ [`& .${bo.root}:before`]: {
3122
3170
  flex: 0,
3123
3171
  padding: 0
3124
3172
  },
@@ -3127,9 +3175,9 @@ const Wo = ({ total: t }) => {
3127
3175
  },
3128
3176
  children: [
3129
3177
  /* @__PURE__ */ e(
3130
- it,
3178
+ ct,
3131
3179
  {
3132
- content: V(
3180
+ content: j(
3133
3181
  n.spend_to_income_description,
3134
3182
  Oe(l),
3135
3183
  Oe(c)
@@ -3137,9 +3185,9 @@ const Wo = ({ total: t }) => {
3137
3185
  }
3138
3186
  ),
3139
3187
  /* @__PURE__ */ e(
3140
- it,
3188
+ ct,
3141
3189
  {
3142
- content: V(
3190
+ content: j(
3143
3191
  n.credit_score_description,
3144
3192
  a,
3145
3193
  s
@@ -3151,50 +3199,58 @@ const Wo = ({ total: t }) => {
3151
3199
  }
3152
3200
  ) })
3153
3201
  ] });
3154
- }, Nr = v(Hr), jr = ({ isOpen: t, onClose: o }) => {
3155
- const n = E(), { finstrong: r } = x(), { isCopyLoaded: s, isInitialized: a } = U(), { augmentedChartData: l, healthScore: c, healthScoreChangeReports: d, peerScore: _ } = F();
3156
- if (!s || !a) return /* @__PURE__ */ e(Q, {});
3157
- const h = Ge(c.health_score || 0, r), u = d.slice().reverse();
3202
+ }, Vr = w(Kr), Xr = ({ isOpen: t, onClose: o }) => {
3203
+ const n = E(), { finstrong: r } = v(), { isCopyLoaded: s, isInitialized: a } = J(), { augmentedChartData: l, healthScore: c, healthScoreChangeReports: d, peerScore: p } = B();
3204
+ if (!s || !a) return /* @__PURE__ */ e(U, {});
3205
+ const u = Ge(c.health_score || 0, r), m = d.slice().reverse();
3158
3206
  return /* @__PURE__ */ e(
3159
- Ot,
3207
+ Lt,
3160
3208
  {
3161
- additionalContent: /* @__PURE__ */ e(p, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ e(
3162
- Ke,
3209
+ additionalContent: /* @__PURE__ */ e(
3210
+ _,
3163
3211
  {
3164
- axisColor: n.palette.divider,
3165
- baseline: "min",
3166
- colors: [n.palette.primary.main],
3167
- curveType: "natural",
3168
- datasets: [l],
3169
- height: 160,
3170
- isGraphClippingXAxis: !0,
3171
- labels: [r.key_indicators_label],
3172
- margin: { top: 24, bottom: 6, right: 24, left: -17 },
3173
- peerAverage: Math.round(_?.average_health_score?.average_health_score || 0),
3174
- showArea: !0,
3175
- showAverage: !0,
3176
- title: r.peer_average,
3177
- useCustomMark: !0
3212
+ sx: {
3213
+ backgroundColor: "background.paper",
3214
+ borderBottom: "1px solid",
3215
+ borderColor: "divider"
3216
+ },
3217
+ children: /* @__PURE__ */ e(
3218
+ Ke,
3219
+ {
3220
+ axisColor: n.palette.divider,
3221
+ baseline: "min",
3222
+ colors: [n.palette.primary.main],
3223
+ curveType: "natural",
3224
+ datasets: [l],
3225
+ height: 160,
3226
+ isGraphClippingXAxis: !0,
3227
+ labels: [r.key_indicators_label],
3228
+ margin: { top: 24, bottom: 6, right: 24, left: -17 },
3229
+ peerAverage: Math.round(p?.average_health_score?.average_health_score || 0),
3230
+ showArea: !0,
3231
+ showAverage: !0,
3232
+ title: r.peer_average,
3233
+ useCustomMark: !0
3234
+ }
3235
+ )
3178
3236
  }
3179
- ) }),
3237
+ ),
3180
3238
  drawerTitle: r.score_history,
3181
3239
  isOpen: t,
3182
3240
  loadConnectAccountsCard: !1,
3183
3241
  onClose: o,
3184
3242
  stickyComponent: /* @__PURE__ */ e(
3185
- p,
3243
+ _,
3186
3244
  {
3187
3245
  sx: {
3188
3246
  backgroundColor: "background.paper",
3189
- borderBottom: "1px solid",
3190
- borderColor: "divider",
3191
3247
  pb: 11,
3192
3248
  pt: 8,
3193
3249
  px: 24
3194
3250
  },
3195
- children: /* @__PURE__ */ i(p, { sx: { alignItems: "center", flexDirection: "row", gap: 16 }, children: [
3251
+ children: /* @__PURE__ */ i(_, { sx: { alignItems: "center", flexDirection: "row", gap: 16 }, children: [
3196
3252
  /* @__PURE__ */ e(
3197
- At,
3253
+ Ot,
3198
3254
  {
3199
3255
  arcRadius: 24,
3200
3256
  healthScore: c?.health_score,
@@ -3202,33 +3258,33 @@ const Wo = ({ total: t }) => {
3202
3258
  size: "SM"
3203
3259
  }
3204
3260
  ),
3205
- /* @__PURE__ */ i(p, { sx: { gap: 4 }, children: [
3206
- /* @__PURE__ */ e(D, { variant: "h3", children: h.status }),
3207
- /* @__PURE__ */ e(D, { variant: "XSmall", children: h.description })
3261
+ /* @__PURE__ */ i(_, { sx: { gap: 4 }, children: [
3262
+ /* @__PURE__ */ e(I, { variant: "h3", children: u.status }),
3263
+ /* @__PURE__ */ e(I, { variant: "XSmall", children: u.description })
3208
3264
  ] })
3209
3265
  ] })
3210
3266
  }
3211
3267
  ),
3212
- children: /* @__PURE__ */ e(p, { sx: { gap: 16 }, children: u.map((b, S) => /* @__PURE__ */ e(Nr, { report: b }, S)) })
3268
+ children: /* @__PURE__ */ e(_, { sx: { gap: 16 }, children: m.map((b, C) => /* @__PURE__ */ e(Vr, { report: b }, C)) })
3213
3269
  }
3214
3270
  );
3215
- }, Kr = v(jr), Vr = ({ copy: t }) => {
3271
+ }, Yr = w(Xr), qr = ({ copy: t }) => {
3216
3272
  const o = E(), n = [
3217
3273
  o.palette.chartMono.chartMono5,
3218
3274
  o.palette.chartMono.chartMono4,
3219
3275
  o.palette.chartMono.chartMono3,
3220
3276
  o.palette.chartMono.chartMono2
3221
3277
  ];
3222
- return /* @__PURE__ */ i(p, { sx: { gap: 8 }, children: [
3223
- /* @__PURE__ */ e(p, { sx: { flexDirection: "row", gap: 8, px: 2 }, children: [
3278
+ return /* @__PURE__ */ i(_, { sx: { gap: 8 }, children: [
3279
+ /* @__PURE__ */ e(_, { sx: { flexDirection: "row", gap: 8, px: 2 }, children: [
3224
3280
  { color: "chartMono.chartMono2", text: t.vulnerable, value: "0-25" },
3225
3281
  { color: "chartMono.chartMono3", text: t.building, value: "26-50" },
3226
3282
  { color: "chartMono.chartMono4", text: t.stable, value: "51-75" },
3227
3283
  { color: "chartMono.chartMono5", text: t.strong, value: "76-100" }
3228
- ].map(({ color: r, text: s, value: a }) => /* @__PURE__ */ i(p, { sx: { gap: 4, textAlign: "center", width: "100%" }, children: [
3284
+ ].map(({ color: r, text: s, value: a }) => /* @__PURE__ */ i(_, { sx: { gap: 4, textAlign: "center", width: "100%" }, children: [
3229
3285
  /* @__PURE__ */ i(M, { children: [
3230
- /* @__PURE__ */ e(D, { sx: { fontWeight: 700, textTransform: "uppercase" }, variant: "caption", children: s }),
3231
- /* @__PURE__ */ i(I, { sx: { color: "text.secondary" }, variant: "caption", children: [
3286
+ /* @__PURE__ */ e(I, { sx: { fontWeight: 700, textTransform: "uppercase" }, variant: "caption", children: s }),
3287
+ /* @__PURE__ */ i(T, { sx: { color: "text.secondary" }, variant: "caption", children: [
3232
3288
  "(",
3233
3289
  a,
3234
3290
  ")"
@@ -3247,8 +3303,8 @@ const Wo = ({ total: t }) => {
3247
3303
  }
3248
3304
  }
3249
3305
  ),
3250
- /* @__PURE__ */ e(p, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100].map((r) => /* @__PURE__ */ i(
3251
- p,
3306
+ /* @__PURE__ */ e(_, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100].map((r) => /* @__PURE__ */ i(
3307
+ _,
3252
3308
  {
3253
3309
  sx: { alignItems: "center", height: 20, justifyContent: "space-between", width: 24 },
3254
3310
  children: [
@@ -3265,25 +3321,25 @@ const Wo = ({ total: t }) => {
3265
3321
  }
3266
3322
  }
3267
3323
  ),
3268
- /* @__PURE__ */ e(I, { sx: { color: "text.secondary" }, variant: "tiny", children: r })
3324
+ /* @__PURE__ */ e(T, { sx: { color: "text.secondary" }, variant: "tiny", children: r })
3269
3325
  ]
3270
3326
  },
3271
3327
  r
3272
3328
  )) })
3273
3329
  ] })
3274
3330
  ] });
3275
- }, Xr = ({ isOpen: t, onClose: o }) => {
3276
- const { finstrong: n } = x(), { isCopyLoaded: r } = U();
3277
- return r ? /* @__PURE__ */ e(oe, { isOpen: t, onClose: o, title: n.score_rubric, children: /* @__PURE__ */ i(p, { sx: { bgcolor: "background.default", gap: 36, height: "100%", p: 24 }, children: [
3278
- /* @__PURE__ */ i(p, { sx: { gap: 20 }, children: [
3279
- /* @__PURE__ */ i(p, { sx: { gap: 8 }, children: [
3280
- /* @__PURE__ */ e(X, { sx: { textWrap: "wrap" }, children: n.your_path_to_financial_freedom }),
3281
- /* @__PURE__ */ e(D, { variant: "subtitle1", children: n.finstrong_freedom_description })
3331
+ }, Ur = ({ isOpen: t, onClose: o }) => {
3332
+ const { finstrong: n } = v(), { isCopyLoaded: r } = J();
3333
+ return r ? /* @__PURE__ */ e(oe, { isOpen: t, onClose: o, title: n.score_rubric, children: /* @__PURE__ */ i(_, { sx: { bgcolor: "background.default", gap: 36, height: "100%", p: 24 }, children: [
3334
+ /* @__PURE__ */ i(_, { sx: { gap: 20 }, children: [
3335
+ /* @__PURE__ */ i(_, { sx: { gap: 8 }, children: [
3336
+ /* @__PURE__ */ e(K, { sx: { textWrap: "wrap" }, children: n.your_path_to_financial_freedom }),
3337
+ /* @__PURE__ */ e(I, { variant: "subtitle1", children: n.finstrong_freedom_description })
3282
3338
  ] }),
3283
- /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(Vr, { copy: n }) })
3339
+ /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(qr, { copy: n }) })
3284
3340
  ] }),
3285
- /* @__PURE__ */ i(p, { sx: { gap: 12 }, children: [
3286
- /* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: "body1", children: n.how_do_we_do_this }),
3341
+ /* @__PURE__ */ i(_, { sx: { gap: 12 }, children: [
3342
+ /* @__PURE__ */ e(T, { sx: { fontWeight: 600 }, variant: "body1", children: n.how_do_we_do_this }),
3287
3343
  /* @__PURE__ */ i(
3288
3344
  Ee,
3289
3345
  {
@@ -3304,15 +3360,15 @@ const Wo = ({ total: t }) => {
3304
3360
  }
3305
3361
  },
3306
3362
  children: [
3307
- /* @__PURE__ */ e(be, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(
3308
- fe,
3363
+ /* @__PURE__ */ e(ye, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(
3364
+ be,
3309
3365
  {
3310
3366
  primary: n.understand_your_habits,
3311
3367
  secondary: n.understand_your_habits_description
3312
3368
  }
3313
3369
  ) }),
3314
- /* @__PURE__ */ e(be, { sx: { display: "list-item", pt: 16 }, children: /* @__PURE__ */ e(
3315
- fe,
3370
+ /* @__PURE__ */ e(ye, { sx: { display: "list-item", pt: 16 }, children: /* @__PURE__ */ e(
3371
+ be,
3316
3372
  {
3317
3373
  primary: n.see_whats_possible,
3318
3374
  secondary: n.see_whats_possible_description
@@ -3322,8 +3378,8 @@ const Wo = ({ total: t }) => {
3322
3378
  }
3323
3379
  )
3324
3380
  ] }),
3325
- /* @__PURE__ */ i(p, { sx: { gap: 4 }, children: [
3326
- /* @__PURE__ */ e(I, { sx: { fontWeight: 600, pb: 4 }, variant: "body1", children: n.we_ask_questions }),
3381
+ /* @__PURE__ */ i(_, { sx: { gap: 4 }, children: [
3382
+ /* @__PURE__ */ e(T, { sx: { fontWeight: 600, pb: 4 }, variant: "body1", children: n.we_ask_questions }),
3327
3383
  /* @__PURE__ */ i(
3328
3384
  Ee,
3329
3385
  {
@@ -3345,22 +3401,22 @@ const Wo = ({ total: t }) => {
3345
3401
  }
3346
3402
  },
3347
3403
  children: [
3348
- /* @__PURE__ */ e(be, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(fe, { secondary: n.we_ask_questions_description_1 }) }),
3349
- /* @__PURE__ */ e(be, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(fe, { secondary: n.we_ask_questions_description_2 }) })
3404
+ /* @__PURE__ */ e(ye, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(be, { secondary: n.we_ask_questions_description_1 }) }),
3405
+ /* @__PURE__ */ e(ye, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(be, { secondary: n.we_ask_questions_description_2 }) })
3350
3406
  ]
3351
3407
  }
3352
3408
  )
3353
3409
  ] })
3354
- ] }) }) : /* @__PURE__ */ e(Q, {});
3355
- }, Yr = v(Xr), qr = v(() => {
3356
- const [t, o] = m.useState(!1), n = E(), [r, { width: s }] = ft(), { finstrong: a } = x(), { isCopyLoaded: l, isInitialized: c } = U(), { healthScore: d, healthScoreChange: _ } = F(), h = n.palette.mode === "dark", u = Ge(d?.health_score, a);
3357
- return !l || !c ? /* @__PURE__ */ e(Q, {}) : /* @__PURE__ */ i(Y, { ref: r, sx: { p: 16, display: "flex", flexDirection: "column", gap: 8 }, children: [
3358
- /* @__PURE__ */ i(p, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
3359
- /* @__PURE__ */ e(X, { children: a.financial_strength_header }),
3410
+ ] }) }) : /* @__PURE__ */ e(U, {});
3411
+ }, Qr = w(Ur), Zr = w(() => {
3412
+ const [t, o] = h.useState(!1), n = E(), [r, { width: s }] = xt(), { finstrong: a } = v(), { isCopyLoaded: l, isInitialized: c } = J(), { healthScore: d, healthScoreChange: p } = B(), u = n.palette.mode === "dark", m = Ge(d?.health_score, a);
3413
+ return !l || !c ? /* @__PURE__ */ e(U, {}) : /* @__PURE__ */ i(V, { ref: r, sx: { p: 16, display: "flex", flexDirection: "column", gap: 8 }, children: [
3414
+ /* @__PURE__ */ i(_, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
3415
+ /* @__PURE__ */ e(K, { children: a.financial_strength_header }),
3360
3416
  /* @__PURE__ */ e(
3361
- B,
3417
+ P,
3362
3418
  {
3363
- endIcon: /* @__PURE__ */ e(J, {}),
3419
+ endIcon: /* @__PURE__ */ e(Z, {}),
3364
3420
  onClick: () => o(!0),
3365
3421
  size: "small",
3366
3422
  sx: {
@@ -3371,7 +3427,7 @@ const Wo = ({ total: t }) => {
3371
3427
  },
3372
3428
  variant: "text",
3373
3429
  children: /* @__PURE__ */ e(
3374
- I,
3430
+ T,
3375
3431
  {
3376
3432
  bold: !0,
3377
3433
  sx: {
@@ -3384,21 +3440,21 @@ const Wo = ({ total: t }) => {
3384
3440
  }
3385
3441
  )
3386
3442
  ] }),
3387
- /* @__PURE__ */ e(p, { sx: { justifyContent: "center", alignItems: "center", pb: 4, pt: 20, px: 16 }, children: /* @__PURE__ */ e(
3388
- At,
3443
+ /* @__PURE__ */ e(_, { sx: { justifyContent: "center", alignItems: "center", pb: 4, pt: 20, px: 16 }, children: /* @__PURE__ */ e(
3444
+ Ot,
3389
3445
  {
3390
3446
  arcRadius: s <= 323 ? 72.5 : 154,
3391
- footerCenterContent: _,
3447
+ footerCenterContent: p,
3392
3448
  healthScore: d?.health_score || 0,
3393
3449
  size: s <= 323 ? "M" : "L"
3394
3450
  }
3395
3451
  ) }),
3396
3452
  d?.health_score ? /* @__PURE__ */ i(
3397
- xo,
3453
+ Co,
3398
3454
  {
3399
3455
  sx: {
3400
3456
  px: 16,
3401
- backgroundColor: h ? "grey.800" : "grey.50",
3457
+ backgroundColor: u ? "grey.800" : "grey.50",
3402
3458
  //TODO: Need to change the background color to palette (supporting both darkmode and lightmode)
3403
3459
  "&.Mui-expanded": {
3404
3460
  m: 0
@@ -3409,9 +3465,9 @@ const Wo = ({ total: t }) => {
3409
3465
  },
3410
3466
  children: [
3411
3467
  /* @__PURE__ */ e(
3412
- Co,
3468
+ ko,
3413
3469
  {
3414
- expandIcon: /* @__PURE__ */ e(mn, { size: 20 }),
3470
+ expandIcon: /* @__PURE__ */ e(gn, { size: 20 }),
3415
3471
  sx: {
3416
3472
  "&.MuiAccordionSummary-root": {
3417
3473
  minHeight: 0
@@ -3422,10 +3478,10 @@ const Wo = ({ total: t }) => {
3422
3478
  minHeight: 0
3423
3479
  }
3424
3480
  },
3425
- children: /* @__PURE__ */ e(D, { sx: { fontWeight: 600 }, variant: "body1", children: a.accordion_title_text })
3481
+ children: /* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: "body1", children: a.accordion_title_text })
3426
3482
  }
3427
3483
  ),
3428
- /* @__PURE__ */ e(So, { sx: { "&.MuiAccordionDetails-root": { padding: 0, pb: 16 } }, children: /* @__PURE__ */ e(D, { variant: "subtitle1", children: u.scoreContent }) })
3484
+ /* @__PURE__ */ e(wo, { sx: { "&.MuiAccordionDetails-root": { padding: 0, pb: 16 } }, children: /* @__PURE__ */ e(I, { variant: "subtitle1", children: m.scoreContent }) })
3429
3485
  ]
3430
3486
  }
3431
3487
  ) : /* @__PURE__ */ e(
@@ -3437,7 +3493,7 @@ const Wo = ({ total: t }) => {
3437
3493
  hasIcon: !1,
3438
3494
  isDashboard: !0,
3439
3495
  sx: {
3440
- backgroundColor: h ? "grey.800" : "grey.50",
3496
+ backgroundColor: u ? "grey.800" : "grey.50",
3441
3497
  //TODO: Need to change the background color to palette (supporting both darkmode and lightmode)
3442
3498
  ".connect-more-accounts-title": {
3443
3499
  fontWeight: 600,
@@ -3450,49 +3506,50 @@ const Wo = ({ total: t }) => {
3450
3506
  }
3451
3507
  ),
3452
3508
  /* @__PURE__ */ e(
3453
- Yr,
3509
+ Qr,
3454
3510
  {
3455
3511
  isOpen: t,
3456
3512
  onClose: () => o(!1)
3457
3513
  }
3458
3514
  )
3459
3515
  ] });
3460
- }), Ur = ({ onBackClick: t, sx: o, onPrimaryCtaClick: n }) => {
3461
- const { visibleAccounts: r } = Se(), { dateRange: s, isDataLoaded: a, loadBudgetData: l, setTheme: c } = Rn(), { reloadCategoryTotals: d } = Ne(), _ = F(), {
3462
- augmentedChartData: h,
3463
- calculateHealthScore: u,
3516
+ }), Jr = ({ onBackClick: t, sx: o, onPrimaryCtaClick: n }) => {
3517
+ const { visibleAccounts: r } = xe(), { dateRange: s, isDataLoaded: a, loadBudgetData: l, setTheme: c } = Ln(), { reloadCategoryTotals: d } = Ne(), p = B(), {
3518
+ augmentedChartData: u,
3519
+ calculateHealthScore: m,
3464
3520
  loadAugmentedChartData: b,
3465
- loadMonthlySummaries: S,
3466
- loadPeerScore: C,
3467
- peerScore: f
3468
- } = _, { finstrong: w, connect: k } = x(), { isCopyLoaded: g, isInitialized: y } = U(), { loadRepeatingTransactions: $ } = je(), { isSmallMobile: L } = Xe(), T = E(), { userProfile: P } = ee(), [z, G] = m.useState(!1), [_e, ue] = m.useState(!1), [te, j] = m.useState(!1), [ve, H] = m.useState(!1);
3469
- if (vo({
3521
+ loadMonthlySummaries: C,
3522
+ loadPeerScore: x,
3523
+ peerScore: S
3524
+ } = p, { finstrong: y, connect: k } = v(), { isInitialized: g } = J(), { loadRepeatingTransactionData: f, isDataLoaded: A } = je(), { isSmallMobile: L } = Xe(), D = E(), { userProfile: G } = ee(), [W, H] = h.useState(!1), [ve, ae] = h.useState(!1), [X, te] = h.useState(!1), [ie, Y] = h.useState(!1);
3525
+ if (Mo({
3470
3526
  widgetName: "FinstrongWidget",
3471
- isLoaded: z
3472
- }), m.useEffect(() => {
3473
- c(T);
3474
- }, []), m.useEffect(() => {
3475
- n && (_.handleFinstrongWidgetPrimaryCtaClick = n);
3476
- }, [n, _]), m.useEffect(() => {
3477
- y && (S().finally(), C().finally(), u().finally(), b().finally());
3478
- }, [y]), m.useEffect(() => {
3479
- y && (d(r, s.start, s.end).finally(() => {
3480
- G(!0);
3481
- }), a || (l(), $().finally()));
3482
- }, [s, a, y, r]), !g || !y || !z) return /* @__PURE__ */ e(Q, {});
3483
- const we = () => ue(!0), K = Math.round(f?.average_health_score?.average_health_score || 0), ae = h.some((he) => he.y !== 0);
3527
+ isLoaded: W
3528
+ }), h.useEffect(() => {
3529
+ c(D);
3530
+ }, []), h.useEffect(() => {
3531
+ n && (p.handleFinstrongWidgetPrimaryCtaClick = n);
3532
+ }, [n, p]), h.useEffect(() => {
3533
+ g && (C().finally(), x().finally(), m().finally(), b().finally());
3534
+ }, [g]), h.useEffect(() => {
3535
+ g && (d(r, s.start, s.end).finally(() => {
3536
+ H(!0);
3537
+ }), a || (l(), f().finally()));
3538
+ }, [s, a, g, r]), !g || !W || !A) return /* @__PURE__ */ e(U, {});
3539
+ const N = () => ae(!0), he = Math.round(S?.average_health_score?.average_health_score || 0), se = u.some((Ce) => Ce.y !== 0);
3484
3540
  return /* @__PURE__ */ i(
3485
- wo,
3541
+ Do,
3486
3542
  {
3487
3543
  actions: [
3488
3544
  {
3489
3545
  iconName: "person",
3490
- label: w.profile,
3491
- onClick: we
3546
+ label: y.profile,
3547
+ onClick: N
3492
3548
  }
3493
3549
  ],
3494
3550
  hasDivider: !0,
3495
3551
  onBackClick: t,
3552
+ showAccountFilter: !1,
3496
3553
  sx: {
3497
3554
  "& .MuiCardHeader-root": {
3498
3555
  px: L ? 16 : 48,
@@ -3503,10 +3560,10 @@ const Wo = ({ total: t }) => {
3503
3560
  },
3504
3561
  ...o
3505
3562
  },
3506
- title: w.title,
3563
+ title: y.title,
3507
3564
  children: [
3508
- P.has_completed_finstrong_onboarding ? /* @__PURE__ */ i(
3509
- p,
3565
+ G.has_completed_finstrong_onboarding ? /* @__PURE__ */ i(
3566
+ _,
3510
3567
  {
3511
3568
  sx: {
3512
3569
  bgcolor: "background.default",
@@ -3517,30 +3574,30 @@ const Wo = ({ total: t }) => {
3517
3574
  px: L ? 16 : 48
3518
3575
  },
3519
3576
  children: [
3520
- /* @__PURE__ */ i(p, { sx: { gap: 24, width: { md: 432 }, height: "100%" }, children: [
3521
- /* @__PURE__ */ e(qr, {}),
3577
+ /* @__PURE__ */ i(_, { sx: { gap: 24, width: { md: 432 }, height: "100%" }, children: [
3578
+ /* @__PURE__ */ e(Zr, {}),
3522
3579
  /* @__PURE__ */ e(
3523
3580
  Be,
3524
3581
  {
3525
- description: w.connect_more_accounts_description,
3582
+ description: y.connect_more_accounts_description,
3526
3583
  drawerType: "connectDrawer",
3527
- title: w.connect_more_accounts_title
3584
+ title: y.connect_more_accounts_title
3528
3585
  }
3529
3586
  )
3530
3587
  ] }),
3531
- /* @__PURE__ */ e(p, { sx: { maxWidth: 848, width: { md: 720 } }, children: /* @__PURE__ */ i(Y, { sx: { height: "100%", p: 16 }, children: [
3588
+ /* @__PURE__ */ e(_, { sx: { maxWidth: 848, width: { md: 720 } }, children: /* @__PURE__ */ i(V, { sx: { height: "100%", p: 16 }, children: [
3532
3589
  /* @__PURE__ */ i(
3533
- p,
3590
+ _,
3534
3591
  {
3535
3592
  direction: "row",
3536
3593
  sx: { alignItems: "center", gap: 12, justifyContent: "space-between" },
3537
3594
  children: [
3538
- /* @__PURE__ */ e(X, { children: w.key_indicators }),
3595
+ /* @__PURE__ */ e(K, { children: y.key_indicators }),
3539
3596
  /* @__PURE__ */ e(
3540
- B,
3597
+ P,
3541
3598
  {
3542
- endIcon: /* @__PURE__ */ e(J, {}),
3543
- onClick: () => j(!0),
3599
+ endIcon: /* @__PURE__ */ e(Z, {}),
3600
+ onClick: () => te(!0),
3544
3601
  size: "small",
3545
3602
  sx: {
3546
3603
  "&.MuiButtonBase-root": {
@@ -3549,70 +3606,70 @@ const Wo = ({ total: t }) => {
3549
3606
  }
3550
3607
  },
3551
3608
  variant: "text",
3552
- children: /* @__PURE__ */ e(I, { bold: !0, variant: "body2", children: w.whats_changed })
3609
+ children: /* @__PURE__ */ e(T, { bold: !0, variant: "body2", children: y.whats_changed })
3553
3610
  }
3554
3611
  )
3555
3612
  ]
3556
3613
  }
3557
3614
  ),
3558
- ae ? /* @__PURE__ */ e(
3615
+ se ? /* @__PURE__ */ e(
3559
3616
  Ke,
3560
3617
  {
3561
- axisColor: T.palette.divider,
3618
+ axisColor: D.palette.divider,
3562
3619
  baseline: "min",
3563
- colors: [T.palette.primary.main],
3620
+ colors: [D.palette.primary.main],
3564
3621
  curveType: "natural",
3565
3622
  customLegendBoxSx: { borderRadius: "2px" },
3566
3623
  customLegendSx: { left: 0 },
3567
3624
  customLegendVariant: "XSmall",
3568
- datasets: [h],
3625
+ datasets: [u],
3569
3626
  height: 300,
3570
3627
  isGraphClippingXAxis: !0,
3571
- labelBackgroundColor: T.palette.border.dark,
3572
- labelFontColor: T.palette.common.white,
3573
- labelFontSize: typeof T.typography.XSmall?.fontSize == "string" ? parseFloat(T.typography.XSmall.fontSize) : T.typography.XSmall?.fontSize,
3574
- labels: [w.key_indicators_label],
3628
+ labelBackgroundColor: D.palette.border.dark,
3629
+ labelFontColor: D.palette.common.white,
3630
+ labelFontSize: typeof D.typography.XSmall?.fontSize == "string" ? parseFloat(D.typography.XSmall.fontSize) : D.typography.XSmall?.fontSize,
3631
+ labels: [y.key_indicators_label],
3575
3632
  margin: { right: 12, left: -37 },
3576
- peerAverage: K,
3633
+ peerAverage: he,
3577
3634
  showArea: !0,
3578
3635
  showAverage: !0,
3579
3636
  showLegend: !0,
3580
3637
  showMarkLabel: !0,
3581
3638
  showTooltip: !0,
3582
3639
  showXAxis: !0,
3583
- title: w.peer_average
3640
+ title: y.peer_average
3584
3641
  }
3585
- ) : /* @__PURE__ */ e(Dr, { onClick: () => H(!0) }),
3586
- /* @__PURE__ */ e(kr, {})
3642
+ ) : /* @__PURE__ */ e(Ar, { onClick: () => Y(!0) }),
3643
+ /* @__PURE__ */ e(Ir, {})
3587
3644
  ] }) })
3588
3645
  ]
3589
3646
  }
3590
- ) : /* @__PURE__ */ e(Wr, {}),
3591
- /* @__PURE__ */ e(Gr, { isOpen: _e, onClose: () => ue(!1) }),
3647
+ ) : /* @__PURE__ */ e(zr, {}),
3648
+ /* @__PURE__ */ e(jr, { isOpen: ve, onClose: () => ae(!1) }),
3592
3649
  /* @__PURE__ */ e(
3593
3650
  re,
3594
3651
  {
3595
- onClose: () => H(!1),
3596
- showConnectWidget: ve,
3652
+ onClose: () => Y(!1),
3653
+ showConnectWidget: ie,
3597
3654
  title: k.mini_title
3598
3655
  }
3599
3656
  ),
3600
3657
  /* @__PURE__ */ e(
3601
- Kr,
3658
+ Yr,
3602
3659
  {
3603
- isOpen: te,
3604
- onClose: () => j(!1)
3660
+ isOpen: X,
3661
+ onClose: () => te(!1)
3605
3662
  }
3606
3663
  )
3607
3664
  ]
3608
3665
  }
3609
3666
  );
3610
- }, ui = v(Ur);
3667
+ }, bi = w(Jr);
3611
3668
  export {
3612
- Mo as CreditScoreGraph,
3613
- It as DialScoreCard,
3614
- At as FinancialStrengthGraph,
3615
- gi as FinstrongApi,
3616
- yi as FinstrongStore,
3617
- ui as FinstrongWidget
3669
+ To as CreditScoreGraph,
3670
+ At as DialScoreCard,
3671
+ Ot as FinancialStrengthGraph,
3672
+ Si as FinstrongApi,
3673
+ vi as FinstrongStore,
3674
+ bi as FinstrongWidget
3618
3675
  };