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

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 (154) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist/{Account-B4CDD-zq.mjs → Account-CvR2-dSR.mjs} +1 -1
  3. package/dist/AccountDetailsContent-CitErkuS.mjs +686 -0
  4. package/dist/{AccountDetailsHeader-DRjFuyJT.mjs → AccountDetailsHeader-BkG3MNYo.mjs} +19 -19
  5. package/dist/{AccountFields-Cl4KHoSj.mjs → AccountFields-zCMqet85.mjs} +10 -12
  6. package/dist/AccountListItem-DHrz8Mml.mjs +90 -0
  7. package/dist/{AccountStore-HbVblv86.mjs → AccountStore-LgfBcYMe.mjs} +101 -75
  8. package/dist/Accounts-Bzy1_REQ.mjs +9 -0
  9. package/dist/{BudgetUtil-Jv8h9H9l.mjs → BudgetUtil-BmZXkL0C.mjs} +32 -32
  10. package/dist/{CashflowStore-CA190BPF.mjs → CashflowStore-D9Dpuz7X.mjs} +25 -18
  11. package/dist/{Category-Ccoew_sA.mjs → Category-CevNQ03n.mjs} +2 -2
  12. package/dist/{CategorySelectorDrawer-Dl006GKy.mjs → CategorySelectorDrawer-B-I3kajA.mjs} +27 -27
  13. package/dist/CategoryStore-CA3tS1BO.mjs +186 -0
  14. package/dist/CategoryUtil-DUM8NuGO.mjs +78 -0
  15. package/dist/{ConnectDrawer-DVp54lUH.mjs → ConnectDrawer-BkvlItWx.mjs} +55 -56
  16. package/dist/{ConnectionsDrawer-Dsc04-4Z.mjs → ConnectionsDrawer-VmuVFHbL.mjs} +5 -5
  17. package/dist/CurrencyInput-itK0R3wV.mjs +85 -0
  18. package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CBdcsyuk.mjs} +1 -1
  19. package/dist/{DebtsStore-pL63fmdT.mjs → DebtsStore-Bq-aPy-5.mjs} +3 -3
  20. package/dist/{Dialog-CDV0kKxj.mjs → Dialog-BPTr3qHE.mjs} +24 -24
  21. package/dist/Drawer-By9V-B5L.mjs +178 -0
  22. package/dist/{ExportCsvAction-QhQK4_FU.mjs → ExportCsvAction-Cglo8Mca.mjs} +4 -4
  23. package/dist/{FinstrongStore-BGf36b0z.mjs → FinstrongStore-BIrX0Xg2.mjs} +56 -56
  24. package/dist/{GoalStore-C1-w3Y1E.mjs → GoalStore-1P19goZ7.mjs} +111 -151
  25. package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
  26. package/dist/{Help-c-zHlDbv.mjs → Help-DhcC-C05.mjs} +8 -8
  27. package/dist/{Help-DBfsTkAi.mjs → Help-Ea3BlXQp.mjs} +146 -125
  28. package/dist/{IconBacking-DgT8DCeh.mjs → IconBacking-B9oC6uL2.mjs} +11 -11
  29. package/dist/LineChart-BF4QA-Lx.mjs +580 -0
  30. package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-BxTkF6Tz.mjs} +2 -2
  31. package/dist/Loader-DUaFpDGv.mjs +24 -0
  32. package/dist/{ManageIncome-8EsStyIQ.mjs → ManageIncome-CaoQl609.mjs} +142 -142
  33. package/dist/MicroWidgetContainer-r6mtxRer.mjs +52 -0
  34. package/dist/MiniWidgetContainer-Bg02sF1Y.mjs +71 -0
  35. package/dist/{NetWorthStore-Bti6u-d9.mjs → NetWorthStore-rC0q7P7t.mjs} +4 -4
  36. package/dist/NotificationSettings-uzM8tCoH.mjs +674 -0
  37. package/dist/{NotificationStore-Ck2KdNmT.mjs → NotificationStore-CDX_kqHa.mjs} +14 -22
  38. package/dist/{OriginalBalanceAction-2Y_3U_mg.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +9 -9
  39. package/dist/{RecurringSettings-DAncu--R.mjs → RecurringSettings-B4ybrS0B.mjs} +17 -17
  40. package/dist/{RecurringTransactions-CxcSL1dY.mjs → RecurringTransactions-BqijW_8S.mjs} +79 -79
  41. package/dist/{RecurringTransactionsStore-CNFxyGB6.mjs → RecurringTransactionsStore-BhBUVm9a.mjs} +81 -91
  42. package/dist/{ResponsiveButton-Cn6-R7ue.mjs → ResponsiveButton-DZFp78fJ.mjs} +10 -10
  43. package/dist/SearchBox-B2_zLv8-.mjs +42 -0
  44. package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-krIRNwHK.mjs} +1 -1
  45. package/dist/{SingleSegmentDonut-7Uy6VEld.mjs → SingleSegmentDonut-BgbLgwHi.mjs} +6 -6
  46. package/dist/SpendingData-DQ1b9uqq.mjs +53 -0
  47. package/dist/{SpendingLegend-6FqtMcBV.mjs → SpendingLegend-CDO060GT.mjs} +65 -65
  48. package/dist/{StatusBar-CPfSXe80.mjs → StatusBar-BK_uYHAB.mjs} +6 -6
  49. package/dist/{TabContentContainer-CnMXkVqr.mjs → TabContentContainer-j01JYR_7.mjs} +8 -8
  50. package/dist/TransactionDetails-m5PddMQn.mjs +1380 -0
  51. package/dist/TransactionStore-PRlwE-TF.mjs +677 -0
  52. package/dist/TrendsStore-yO7qYv97.mjs +186 -0
  53. package/dist/{User-BklmOUSd.mjs → User-Cnlegl1N.mjs} +107 -107
  54. package/dist/{ViewMoreMicroCard-DAkyNRlD.mjs → ViewMoreMicroCard-DwR0v_ll.mjs} +211 -205
  55. package/dist/{WidgetContainer-CDh9fjpR.mjs → WidgetContainer-CoFDmQRE.mjs} +36 -36
  56. package/dist/accounts/index.es.js +200 -197
  57. package/dist/accounts/stores/AccountStore.d.ts +22 -25
  58. package/dist/accounts/utils/Accounts.d.ts +1 -2
  59. package/dist/analytics/index.es.js +27 -27
  60. package/dist/budgets/components/AddBudgets.d.ts +2 -1
  61. package/dist/budgets/index.es.js +703 -669
  62. package/dist/budgets/store/BudgetsStore.d.ts +0 -1
  63. package/dist/cashflow/index.es.js +420 -404
  64. package/dist/categories/index.es.js +2 -2
  65. package/dist/categories/stores/CategoryStore.d.ts +3 -6
  66. package/dist/categories/util/CategoryUtil.d.ts +2 -3
  67. package/dist/common/components/ErrorBoundary.d.ts +1 -1
  68. package/dist/common/components/Loader.d.ts +2 -1
  69. package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
  70. package/dist/common/components/barchart/Bar.d.ts +25 -0
  71. package/dist/common/components/barchart/BarChart.d.ts +34 -0
  72. package/dist/common/components/barchart/BarColumn.d.ts +37 -0
  73. package/dist/common/components/barchart/Legend.d.ts +8 -0
  74. package/dist/common/components/barchart/Util.d.ts +42 -0
  75. package/dist/common/components/barchart/index.d.ts +1 -0
  76. package/dist/common/components/charts/linechart/CustomMark.d.ts +1 -1
  77. package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
  78. package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
  79. package/dist/common/components/index.d.ts +1 -0
  80. package/dist/common/hooks/index.d.ts +2 -0
  81. package/dist/common/hooks/useAriaLive.d.ts +1 -1
  82. package/dist/common/hooks/usePrevious.d.ts +2 -0
  83. package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
  84. package/dist/common/index.es.js +712 -436
  85. package/dist/common/stores/AppDataStore.d.ts +1 -3
  86. package/dist/common/stores/GlobalCopyStore.d.ts +1 -0
  87. package/dist/common/stores/GlobalStore.d.ts +3 -3
  88. package/dist/common/stores/GlobalUiStore.d.ts +2 -3
  89. package/dist/common/stores/UserStore.d.ts +2 -3
  90. package/dist/common/types/Account.d.ts +6 -9
  91. package/dist/common/types/localization/TransactionsCopy.d.ts +1 -0
  92. package/dist/common/utils/Theme.d.ts +3 -1
  93. package/dist/dashboard/index.es.js +93 -91
  94. package/dist/debts/components/DebtsChart.d.ts +2 -1
  95. package/dist/debts/index.es.js +529 -527
  96. package/dist/{exportTransactionsToCSV-BgV_wTLT.mjs → exportTransactionsToCSV-DuAaI5XA.mjs} +3 -3
  97. package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +4 -5
  98. package/dist/finstrong/index.es.js +876 -867
  99. package/dist/goals/index.es.js +526 -525
  100. package/dist/goals/stores/GoalStore.d.ts +4 -17
  101. package/dist/help/components/content/BottomImageContent.d.ts +1 -1
  102. package/dist/help/components/content/LeftImageContent.d.ts +1 -1
  103. package/dist/help/components/content/RightImageContent.d.ts +1 -1
  104. package/dist/help/components/content/TopImageContent.d.ts +1 -1
  105. package/dist/help/index.es.js +13 -9
  106. package/dist/{hooks-C41HAxM5.mjs → hooks-ZMp65DFz.mjs} +11 -11
  107. package/dist/investments/index.es.js +534 -531
  108. package/dist/investments/stores/HoldingStore.d.ts +0 -1
  109. package/dist/merchants/index.es.js +8 -8
  110. package/dist/microinsights/MicroCardTemplate.d.ts +16 -0
  111. package/dist/microinsights/index.d.ts +1 -0
  112. package/dist/microinsights/index.es.js +101 -14
  113. package/dist/networth/components/NetWorthChange.d.ts +1 -3
  114. package/dist/networth/index.es.js +284 -285
  115. package/dist/notifications/index.es.js +95 -94
  116. package/dist/notifications/stores/NotificationStore.d.ts +1 -3
  117. package/dist/recurringtransactions/index.es.js +582 -562
  118. package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -4
  119. package/dist/settings/index.es.js +340 -337
  120. package/dist/spending/index.es.js +281 -268
  121. package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +7 -0
  122. package/dist/transactions/index.es.js +253 -255
  123. package/dist/transactions/stores/TransactionStore.d.ts +77 -21
  124. package/dist/transactions/stores/UiStore.d.ts +2 -0
  125. package/dist/trends/components/TrendsTable.d.ts +0 -2
  126. package/dist/trends/index.es.js +838 -793
  127. package/dist/trends/utils/TrendsData.d.ts +1 -0
  128. package/dist/{useAccountDisplayName-CcIp09Xc.mjs → useAccountDisplayName-B7iXTNM8.mjs} +2 -2
  129. package/dist/{useCombineEvents-kNzLTWCp.mjs → useCombineEvents-CRwX-qWE.mjs} +2 -2
  130. package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
  131. package/dist/{useScreenSize-B5afALev.mjs → useScreenSize-B6JyS_Lj.mjs} +1 -1
  132. package/dist/useWidgetLoadTimer-hIOioiKx.mjs +19 -0
  133. package/package.json +57 -52
  134. package/dist/AccountDetailsContent-adZTkM52.mjs +0 -683
  135. package/dist/AccountListItem-wgmlex-_.mjs +0 -90
  136. package/dist/Accounts-CRUehOiy.mjs +0 -27
  137. package/dist/CategoryStore-MUwRWH9e.mjs +0 -176
  138. package/dist/CategoryUtil-DfVKKkRf.mjs +0 -80
  139. package/dist/CurrencyInput-D1cjbdCI.mjs +0 -85
  140. package/dist/Drawer-BF40nbsH.mjs +0 -163
  141. package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
  142. package/dist/LineChart-C1PxNf7P.mjs +0 -581
  143. package/dist/Loader-Ckqi9Rx6.mjs +0 -21
  144. package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +0 -45
  145. package/dist/MiniWidgetContainer-CKzf_Ira.mjs +0 -56
  146. package/dist/NotificationSettings-B74rQVYC.mjs +0 -672
  147. package/dist/SearchBox-B7km148n.mjs +0 -39
  148. package/dist/SkeletonLoader-BaNboJjD.mjs +0 -38
  149. package/dist/SpendingData-DPQ96k3x.mjs +0 -55
  150. package/dist/TransactionDetails-Bn0qY5Hw.mjs +0 -1336
  151. package/dist/TransactionStore-DbwAutwC.mjs +0 -671
  152. package/dist/TrendsStore-_mRaFUdf.mjs +0 -182
  153. package/dist/common/components/SkeletonLoader.d.ts +0 -7
  154. package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +0 -3
@@ -1,88 +1,89 @@
1
- import { jsxs as a, Fragment as z, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as a, Fragment as E, jsx as e } from "react/jsx-runtime";
2
2
  import k from "@mui/material/Box";
3
3
  import p from "@mui/material/Stack";
4
- import { useTheme as G, alpha as be } from "@mui/material/styles";
5
- import { PieChart as rn, BarPlot as an } from "@mui/x-charts";
6
- import { TrendingUp as dt, ArrowRightAlt as sn, TrendingDown as cn, AccountBalance as pt, ChevronRight as Z, CreditCard as He, MultilineChart as _t, CheckCircle as ln, Cancel as dn, Savings as pn, ContentCopy as _n, Add as ht, Cardiology as hn, Payments as un, CalendarMonth as mn, ExpandMore as gn } from "@mxenabled/mx-icons";
7
- import { P as M, H3 as V, Text as I, InstitutionLogo as ut, H2 as Le, MerchantLogo as yn, Icon as bn } from "@mxenabled/mxui";
8
- import { g as fn, a as xn, r as et, b as Cn, c as Ne, d as mt, C as ke, e as Me, f as Sn, h as vn, i as wn, j as gt, k as tt, l as kn, m as nt, n as Mn, o as yt, p as Dn, q as bt, s as Oe, t as ft, u as In, v as xt, w as An, A as ne, x as Tn, P as On } from "../FinstrongStore-BGf36b0z.mjs";
9
- import { y as xi, F as Ci } from "../FinstrongStore-BGf36b0z.mjs";
4
+ import { useTheme as G, alpha as fe } from "@mui/material/styles";
5
+ import { PieChart as on } from "@mui/x-charts/PieChart";
6
+ import { P as M, H3 as K, Text as I, InstitutionLogo as lt, H2 as Le, MerchantLogo as rn, Icon as an } from "@mxenabled/mxui";
7
+ import { TrendingUp as dt, ArrowRightAlt as sn, TrendingDown as cn, AccountBalance as pt, ChevronRight as J, MultilineChart as _t, CreditCard as He, CheckCircle as ln, Cancel as dn, Savings as pn, ContentCopy as _n, Add as ht, Cardiology as hn, Payments as un, CalendarMonth as mn, ExpandMore as gn } from "@mxenabled/mx-icons";
8
+ import { g as yn, a as bn, r as et, b as fn, c as Ne, d as ut, C as we, e as ke, f as xn, h as Sn, i as Cn, j as mt, k as tt, l as vn, m as nt, n as wn, o as gt, p as kn, q as yt, s as Oe, t as bt, u as Mn, v as ft, w as Dn, A as ne, x as In, P as An } from "../FinstrongStore-BIrX0Xg2.mjs";
9
+ import { y as fi, F as xi } from "../FinstrongStore-BIrX0Xg2.mjs";
10
10
  import * as ot from "d3";
11
11
  import { observer as v } from "mobx-react-lite";
12
- import { u as x, b as q, a as je, p as J, z as L, q as Fn, d as xe, m as Ke, f as Rn, j as Ve, h as Ln, i as Pn, n as Bn } from "../hooks-C41HAxM5.mjs";
13
- import { L as ee } from "../Loader-Ckqi9Rx6.mjs";
12
+ import { u as S, b as q, a as je, o as ee, z as F, p as Tn, d as Se, m as Ke, f as On, j as Ve, h as Rn, i as Fn } from "../hooks-ZMp65DFz.mjs";
13
+ import { L as te } from "../Loader-DUaFpDGv.mjs";
14
14
  import m from "react";
15
- import B from "@mui/material/Button";
16
- import Y from "@mui/material/Card";
17
- import { L as Ye } from "../LineChart-C1PxNf7P.mjs";
18
- import { C as Ct } from "../ConnectionsDrawer-Dsc04-4Z.mjs";
19
- import { l as re, g as St, A as Ge } from "../ConnectDrawer-DVp54lUH.mjs";
15
+ import P from "@mui/material/Button";
16
+ import V from "@mui/material/Card";
17
+ import { L as Ye } from "../LineChart-BF4QA-Lx.mjs";
18
+ import { C as xt } from "../ConnectionsDrawer-VmuVFHbL.mjs";
19
+ import { l as re, g as St, A as Ee } from "../ConnectDrawer-BkvlItWx.mjs";
20
20
  import se from "@mui/material/Tab";
21
21
  import Xe from "@mui/material/Tabs";
22
- import Fe from "@mui/material/TextField";
23
- import { D as Wn, f as $n, a as zn } from "../Dialog-CDV0kKxj.mjs";
24
- import { u as qe } from "../useScreenSize-B5afALev.mjs";
25
- import { u as vt } from "../useDimensions-27p2evRx.mjs";
26
- import Gn from "@mui/material/Chip";
27
- import { D as oe } from "../Drawer-BF40nbsH.mjs";
22
+ import Re from "@mui/material/TextField";
23
+ import { u as qe } from "../useScreenSize-B6JyS_Lj.mjs";
24
+ import { D as Ln, f as Bn, a as Pn } from "../Dialog-BPTr3qHE.mjs";
25
+ import { u as Ct } from "../useDimensions-27p2evRx.mjs";
26
+ import Wn from "@mui/material/Chip";
27
+ import { D as oe } from "../Drawer-By9V-B5L.mjs";
28
28
  import le from "@mui/material/Divider";
29
- import ge from "@mui/material/ListItem";
30
- import wt from "@mui/material/ListItemAvatar";
31
- import ye from "@mui/material/ListItemText";
32
- import { g as kt } from "../AccountFields-Cl4KHoSj.mjs";
33
- import Ee from "@mui/material/List";
34
- import En from "@mui/material/ListItemButton";
35
- import Hn from "@mui/material/ListSubheader";
36
- import { f as $ } from "../NumberFormatting-DjTD0t3W.mjs";
37
- import { b as K } from "../Localization-2MODESHW.mjs";
38
- import { S as rt, F as Mt, e as Nn, R as Dt } from "../RecurringTransactions-CxcSL1dY.mjs";
39
- import { S as jn } from "../StatusBar-CPfSXe80.mjs";
40
- import { h as It } from "../DateUtil-CDPZw_-m.mjs";
41
- import { T as Kn, s as Vn, h as Yn, S as Xn, c as qn } from "../TransactionDetails-Bn0qY5Hw.mjs";
42
- import { T as ce } from "../TabContentContainer-CnMXkVqr.mjs";
43
- import { E as Re } from "../EmptyState-DoxNUae-.mjs";
44
- import Un from "@mui/material/useMediaQuery";
45
- import { ChartsXAxis as Qn } from "@mui/x-charts/ChartsXAxis";
46
- import { ChartsYAxis as Zn } from "@mui/x-charts/ChartsYAxis";
47
- import { ResponsiveChartContainer as Jn } from "@mui/x-charts/ResponsiveChartContainer";
48
- import { useSpring as eo, animated as at } from "@react-spring/web";
49
- import { startOfMonth as At } from "date-fns/startOfMonth";
50
- import { endOfMonth as Tt } from "date-fns/endOfMonth";
51
- import { g as to, S as no, b as oo } from "../SpendingLegend-6FqtMcBV.mjs";
52
- import { formatISO as ro } from "date-fns/formatISO";
53
- import { fromUnixTime as ao } from "date-fns/fromUnixTime";
54
- import { startOfToday as it } from "date-fns/startOfToday";
55
- import { subDays as io } from "date-fns/subDays";
56
- import { c as so, d as st, S as co, i as lo } from "../ManageIncome-8EsStyIQ.mjs";
57
- import { LocalizationProvider as po, DatePicker as _o, StaticDatePicker as ho } from "@mui/x-date-pickers";
58
- import { AdapterDateFns as Ot } from "@mui/x-date-pickers/AdapterDateFnsV3";
59
- import { R as uo } from "../RecurringSettings-DAncu--R.mjs";
60
- import { LocalizationProvider as mo } from "@mui/x-date-pickers/LocalizationProvider";
61
- import { format as go } from "date-fns/format";
62
- import yo from "@mui/lab/Timeline";
63
- import bo, { timelineItemClasses as fo } from "@mui/lab/TimelineItem";
64
- import xo from "@mui/lab/TimelineConnector";
65
- import Co from "@mui/lab/TimelineContent";
66
- import So from "@mui/lab/TimelineDot";
67
- import vo from "@mui/lab/TimelineSeparator";
68
- import wo from "@mui/material/Accordion";
69
- import ko from "@mui/material/AccordionDetails";
70
- import Mo from "@mui/material/AccordionSummary";
71
- import Do from "@mui/material/CardHeader";
72
- import { W as Io } from "../WidgetContainer-CDh9fjpR.mjs";
73
- const Ao = ({
29
+ import ye from "@mui/material/ListItem";
30
+ import vt from "@mui/material/ListItemAvatar";
31
+ import be from "@mui/material/ListItemText";
32
+ import { g as wt } from "../AccountFields-zCMqet85.mjs";
33
+ import Ge from "@mui/material/List";
34
+ import $n from "@mui/material/ListItemButton";
35
+ import zn from "@mui/material/ListSubheader";
36
+ import { f as W } from "../NumberFormatting-DjTD0t3W.mjs";
37
+ import { b as j } from "../Localization-2MODESHW.mjs";
38
+ import { S as rt, F as kt, e as En, R as Mt } from "../RecurringTransactions-BqijW_8S.mjs";
39
+ import { S as Gn } from "../StatusBar-BK_uYHAB.mjs";
40
+ import { h as Dt } from "../DateUtil-CBdcsyuk.mjs";
41
+ import { T as Hn, s as Nn, h as jn, S as Kn, c as Vn } from "../TransactionDetails-m5PddMQn.mjs";
42
+ import { T as ce } from "../TabContentContainer-j01JYR_7.mjs";
43
+ import { E as Fe } from "../EmptyState-DoxNUae-.mjs";
44
+ import Yn from "@mui/material/useMediaQuery";
45
+ import { BarPlot as Xn } from "@mui/x-charts/BarChart";
46
+ import { ChartContainer as qn } from "@mui/x-charts/ChartContainer";
47
+ import { ChartsXAxis as Un } from "@mui/x-charts/ChartsXAxis";
48
+ import { ChartsYAxis as Qn } from "@mui/x-charts/ChartsYAxis";
49
+ import { startOfMonth as It } from "date-fns/startOfMonth";
50
+ import { endOfMonth as At } from "date-fns/endOfMonth";
51
+ import { g as Zn, S as Jn, b as eo } from "../SpendingLegend-CDO060GT.mjs";
52
+ import { formatISO as to } from "date-fns/formatISO";
53
+ import { fromUnixTime as no } from "date-fns/fromUnixTime";
54
+ import { startOfToday as at } from "date-fns/startOfToday";
55
+ import { subDays as oo } from "date-fns/subDays";
56
+ import { c as ro, d as it, S as ao, i as io } from "../ManageIncome-CaoQl609.mjs";
57
+ import { LocalizationProvider as so, DatePicker as co, StaticDatePicker as lo } from "@mui/x-date-pickers";
58
+ import { AdapterDateFns as Tt } from "@mui/x-date-pickers/AdapterDateFnsV3";
59
+ import { R as po } from "../RecurringSettings-B4ybrS0B.mjs";
60
+ import { LocalizationProvider as _o } from "@mui/x-date-pickers/LocalizationProvider";
61
+ import { format as ho } from "date-fns/format";
62
+ import uo from "@mui/lab/Timeline";
63
+ import mo, { timelineItemClasses as go } from "@mui/lab/TimelineItem";
64
+ import yo from "@mui/lab/TimelineConnector";
65
+ import bo from "@mui/lab/TimelineContent";
66
+ import fo from "@mui/lab/TimelineDot";
67
+ import xo from "@mui/lab/TimelineSeparator";
68
+ import So from "@mui/material/Accordion";
69
+ import Co from "@mui/material/AccordionDetails";
70
+ import vo from "@mui/material/AccordionSummary";
71
+ import wo from "@mui/material/CardHeader";
72
+ import { u as ko } from "../useWidgetLoadTimer-hIOioiKx.mjs";
73
+ import { W as Mo } from "../WidgetContainer-CoFDmQRE.mjs";
74
+ const Do = ({
74
75
  dialScoreData: t,
75
76
  dataIndex: o,
76
77
  arcColor: n,
77
78
  arcStartAngle: r,
78
79
  totalAngularSpan: s,
79
80
  centerX: i,
80
- centerY: c,
81
- arcRadius: l,
81
+ centerY: l,
82
+ arcRadius: c,
82
83
  innerArcRadius: _,
83
84
  outterArcRadius: d,
84
- progressEndAngle: u,
85
- unitsPerSegment: h,
85
+ progressEndAngle: h,
86
+ unitsPerSegment: u,
86
87
  isFinacialStrengthGraph: y
87
88
  }) => {
88
89
  const f = G(), w = [
@@ -90,19 +91,19 @@ const Ao = ({
90
91
  { offset: "36.67%", color: f.palette.chartMono.chartMono3 },
91
92
  { offset: "59.72%", color: f.palette.chartMono.chartMono4 },
92
93
  { offset: "83.46%", color: f.palette.chartMono.chartMono5 }
93
- ], [C, D] = fn(
94
+ ], [x, D] = yn(
94
95
  t,
95
96
  s,
96
97
  r,
97
98
  o
98
- ), [S, g] = xn(
99
- C,
99
+ ), [C, g] = bn(
100
+ x,
100
101
  D,
101
102
  o,
102
- h,
103
- u
104
- ), b = ot.arc().innerRadius(_).outerRadius(d).startAngle(C).endAngle(D).padAngle(0.02).cornerRadius(8), P = ot.arc().innerRadius(_).outerRadius(d).startAngle(S).endAngle(g).padAngle(0.02).cornerRadius(8);
105
- return /* @__PURE__ */ a(z, { children: [
103
+ u,
104
+ h
105
+ ), b = ot.arc().innerRadius(_).outerRadius(d).startAngle(x).endAngle(D).padAngle(0.02).cornerRadius(8), L = ot.arc().innerRadius(_).outerRadius(d).startAngle(C).endAngle(g).padAngle(0.02).cornerRadius(8);
106
+ return /* @__PURE__ */ a(E, { children: [
106
107
  /* @__PURE__ */ e(
107
108
  "path",
108
109
  {
@@ -110,95 +111,93 @@ const Ao = ({
110
111
  fill: y ? f.palette.divider : n
111
112
  }
112
113
  ),
113
- y && /* @__PURE__ */ e("path", { d: P({}), fill: "url(#arcGradient)" }),
114
+ y && /* @__PURE__ */ e("path", { d: L({}), fill: "url(#arcGradient)" }),
114
115
  /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e(
115
116
  "linearGradient",
116
117
  {
117
- gradientTransform: `rotate(5, ${i}, ${c})`,
118
+ gradientTransform: `rotate(5, ${i}, ${l})`,
118
119
  gradientUnits: "userSpaceOnUse",
119
120
  id: "arcGradient",
120
- x1: i + l * 0.8 * Math.cos(Math.PI / 1.35),
121
- x2: i - l * 0.8 * Math.cos(Math.PI / 1.35),
122
- y1: c + l * 0.8 * Math.sin(Math.PI / 1.35),
123
- y2: c - l * 0.8 * Math.sin(Math.PI / 1.35),
124
- children: w.map((F, U) => /* @__PURE__ */ e("stop", { offset: F.offset, stopColor: F.color }, U))
121
+ x1: i + c * 0.8 * Math.cos(Math.PI / 1.35),
122
+ x2: i - c * 0.8 * Math.cos(Math.PI / 1.35),
123
+ y1: l + c * 0.8 * Math.sin(Math.PI / 1.35),
124
+ y2: l - c * 0.8 * Math.sin(Math.PI / 1.35),
125
+ children: w.map((B, U) => /* @__PURE__ */ e("stop", { offset: B.offset, stopColor: B.color }, U))
125
126
  }
126
127
  ) })
127
128
  ] });
128
- }, Ft = ({
129
+ }, Ot = ({
129
130
  arcRadius: t = 100,
130
131
  healthScore: o,
131
132
  size: n = "L",
132
133
  dialScoreData: r,
133
134
  minValue: s = 0,
134
135
  maxValue: i = 100,
135
- margin: c,
136
- markerColor: l,
136
+ margin: l,
137
+ markerColor: c,
137
138
  healthScoreStatus: _,
138
139
  footerCenterContent: d,
139
- footerLeftContent: u,
140
- footerRightContent: h,
140
+ footerLeftContent: h,
141
+ footerRightContent: u,
141
142
  isFinacialStrengthGraph: y = !1
142
143
  }) => {
143
- const f = G(), w = -Math.PI / 1.35, C = Math.PI / 1.35, D = C - w, S = D / (i - s), g = (o - s) * S, b = w + g + 0.02, P = n !== "SM" ? 0.1 : 0.12, F = t, U = t * (1 - P), W = F * 2, O = W / 2, E = W / 2, pe = (U + F) / 2, Se = o !== 25 && o !== 50 && o !== 75 && o !== 100 ? 0 : 0.12, [te, j] = Cn(pe, b, Se), ve = o / 25, H = {
144
+ const f = G(), w = -Math.PI / 1.35, x = Math.PI / 1.35, D = x - w, C = D / (i - s), g = (o - s) * C, b = w + g + 0.02, L = n !== "SM" ? 0.1 : 0.12, B = t, U = t * (1 - L), T = B * 2, $ = T / 2, z = T / 2, pe = (U + B) / 2, ve = o !== 25 && o !== 50 && o !== 75 && o !== 100 ? 0 : 0.12, [Q, Y] = fn(pe, b, ve), _e = o / 25, H = {
144
145
  L: { markerSize: 12, healthScoreFontSize: 64 },
145
146
  M: { markerSize: 8, healthScoreFontSize: 48 },
146
147
  SM: { markerSize: 3, healthScoreFontSize: 14 }
147
- }, we = {
148
+ }, he = {
148
149
  top: 0,
149
150
  right: 0,
150
151
  bottom: 0,
151
152
  left: 0,
152
- ...c
153
- }, N = d === 0 ? sn : cn, ae = n !== "SM" ? 3 : 1, _e = ae * 4, he = H[n].markerSize * 2 + _e;
153
+ ...l
154
+ }, N = d === 0 ? sn : cn, ae = n !== "SM" ? 3 : 1, De = ae * 4, ue = H[n].markerSize * 2 + De;
154
155
  return /* @__PURE__ */ a(
155
156
  p,
156
157
  {
157
158
  sx: {
158
- width: W,
159
- height: n === "SM" ? W - 7 : W,
159
+ width: T,
160
+ height: n === "SM" ? T - 7 : T,
160
161
  position: "relative",
161
162
  alignSelf: "center",
162
163
  overflow: "visible"
163
164
  },
164
165
  children: [
165
166
  /* @__PURE__ */ e(
166
- rn,
167
+ on,
167
168
  {
168
- height: n === "SM" ? W - 7 : W,
169
- margin: we,
169
+ height: n === "SM" ? T - 7 : T,
170
+ hideLegend: !0,
171
+ margin: he,
170
172
  series: [
171
173
  {
172
174
  data: r,
173
175
  innerRadius: U,
174
- outerRadius: F,
176
+ outerRadius: B,
175
177
  startAngle: Math.round(et(w)),
176
178
  // Use Math.degrees to convert
177
- endAngle: Math.round(et(C))
179
+ endAngle: Math.round(et(x))
178
180
  // Use Math.degrees to convert
179
181
  }
180
182
  ],
181
183
  skipAnimation: !0,
182
- slotProps: {
183
- legend: { hidden: !0 }
184
- },
185
184
  slots: {
186
185
  pieArc: (X) => /* @__PURE__ */ e(
187
- Ao,
186
+ Do,
188
187
  {
189
188
  arcColor: X.color,
190
189
  arcRadius: t,
191
190
  arcStartAngle: w,
192
- centerX: O,
193
- centerY: E,
191
+ centerX: $,
192
+ centerY: z,
194
193
  dataIndex: X.dataIndex,
195
194
  dialScoreData: r,
196
195
  innerArcRadius: U,
197
196
  isFinacialStrengthGraph: y,
198
- outterArcRadius: F,
197
+ outterArcRadius: B,
199
198
  progressEndAngle: b,
200
199
  totalAngularSpan: D,
201
- unitsPerSegment: ve
200
+ unitsPerSegment: _e
202
201
  }
203
202
  )
204
203
  },
@@ -207,29 +206,29 @@ const Ao = ({
207
206
  stroke: "none"
208
207
  }
209
208
  },
210
- width: W
209
+ width: T
211
210
  }
212
211
  ),
213
212
  o >= s && o <= i && /* @__PURE__ */ e(
214
213
  "svg",
215
214
  {
216
- height: he,
215
+ height: ue,
217
216
  style: {
218
217
  position: "absolute",
219
- left: O + te - H[n].markerSize - 5,
220
- top: E + j - H[n].markerSize - 5,
218
+ left: $ + Q - H[n].markerSize - 5,
219
+ top: z + Y - H[n].markerSize - 5,
221
220
  overflow: "visible"
222
221
  },
223
- viewBox: `${O + te - H[n].markerSize - 5} ${E + j - H[n].markerSize - 5} ${he} ${he}`,
224
- width: he,
222
+ viewBox: `${$ + Q - H[n].markerSize - 5} ${z + Y - H[n].markerSize - 5} ${ue} ${ue}`,
223
+ width: ue,
225
224
  children: /* @__PURE__ */ e(
226
225
  "circle",
227
226
  {
228
- cx: O + te,
229
- cy: E + j,
227
+ cx: $ + Q,
228
+ cy: z + Y,
230
229
  fill: f.palette.common.white,
231
230
  r: H[n].markerSize,
232
- stroke: y ? "url(#arcGradient)" : l,
231
+ stroke: y ? "url(#arcGradient)" : c,
233
232
  strokeWidth: ae
234
233
  }
235
234
  )
@@ -240,8 +239,8 @@ const Ao = ({
240
239
  {
241
240
  sx: {
242
241
  position: "absolute",
243
- top: `${E}px`,
244
- left: `${O}px`,
242
+ top: `${z}px`,
243
+ left: `${$}px`,
245
244
  transform: "translate(-50%, -50%)",
246
245
  textAlign: "center"
247
246
  },
@@ -258,7 +257,7 @@ const Ao = ({
258
257
  fontSize: H[n].healthScoreFontSize,
259
258
  lineHeight: n !== "SM" ? "48px" : "100%"
260
259
  },
261
- variant: "h1",
260
+ variant: "H1",
262
261
  children: o
263
262
  }
264
263
  ),
@@ -273,8 +272,8 @@ const Ao = ({
273
272
  {
274
273
  sx: {
275
274
  position: "absolute",
276
- top: `${E * 2 * 0.83}px`,
277
- left: `${O}px`,
275
+ top: `${z * 2 * 0.83}px`,
276
+ left: `${$}px`,
278
277
  transform: "translate(-50%, -50%)",
279
278
  textAlign: "center"
280
279
  },
@@ -297,7 +296,7 @@ const Ao = ({
297
296
  color: d > 0 ? "success.main" : "text.secondary"
298
297
  },
299
298
  variant: "body1",
300
- children: d
299
+ children: Math.abs(d)
301
300
  }
302
301
  )
303
302
  ]
@@ -305,31 +304,31 @@ const Ao = ({
305
304
  ) : /* @__PURE__ */ e(M, { sx: { color: "text.secondary" }, variant: "subtitle2", children: d })
306
305
  }
307
306
  ),
308
- u !== void 0 && /* @__PURE__ */ e(
307
+ h !== void 0 && /* @__PURE__ */ e(
309
308
  k,
310
309
  {
311
310
  sx: {
312
311
  position: "absolute",
313
- top: `${E * 2 * 0.83}px`,
314
- left: `${O - O / 2}px`,
312
+ top: `${z * 2 * 0.83}px`,
313
+ left: `${$ - $ / 2}px`,
315
314
  // shift left from center
316
315
  transform: "translate(-50%, -50%)",
317
316
  textAlign: "left"
318
317
  },
319
- children: /* @__PURE__ */ e(M, { variant: "body1", children: u })
318
+ children: /* @__PURE__ */ e(M, { variant: "body1", children: h })
320
319
  }
321
320
  ),
322
- h !== void 0 && /* @__PURE__ */ e(
321
+ u !== void 0 && /* @__PURE__ */ e(
323
322
  k,
324
323
  {
325
324
  sx: {
326
325
  position: "absolute",
327
- top: `${E * 2 * 0.83}px`,
328
- left: `${O + O / 2}px`,
326
+ top: `${z * 2 * 0.83}px`,
327
+ left: `${$ + $ / 2}px`,
329
328
  transform: "translate(-50%, -50%)",
330
329
  textAlign: "right"
331
330
  },
332
- children: /* @__PURE__ */ e(M, { variant: "body1", children: h })
331
+ children: /* @__PURE__ */ e(M, { variant: "body1", children: u })
333
332
  }
334
333
  )
335
334
  ]
@@ -348,22 +347,22 @@ const Ao = ({
348
347
  { id: 2, label: "Group B", value: 25 },
349
348
  { id: 3, label: "Group C", value: 25 },
350
349
  { id: 4, label: "Group D", value: 25 }
351
- ], { finstrong: c } = x(), l = Ne(n, c);
350
+ ], { finstrong: l } = S(), c = Ne(n, l);
352
351
  return /* @__PURE__ */ e(
353
- Ft,
352
+ Ot,
354
353
  {
355
354
  arcRadius: t,
356
355
  dialScoreData: i,
357
- footerCenterContent: o === "L" ? c.footer_center_content_updated_just_now : r,
356
+ footerCenterContent: o === "L" ? l.footer_center_content_updated_just_now : r,
358
357
  healthScore: n,
359
- healthScoreStatus: l.status,
358
+ healthScoreStatus: c.status,
360
359
  isFinacialStrengthGraph: !0,
361
360
  margin: s,
362
361
  size: o
363
362
  }
364
363
  );
365
364
  }
366
- ), To = v(
365
+ ), Io = v(
367
366
  ({
368
367
  arcRadius: t,
369
368
  size: o = "L",
@@ -372,46 +371,46 @@ const Ao = ({
372
371
  minValue: s = 300,
373
372
  footerCenterContent: i
374
373
  }) => {
375
- const l = G().palette.mode === "dark", _ = [
374
+ const c = G().palette.mode === "dark", _ = [
376
375
  {
377
376
  id: 1,
378
377
  label: "Poor",
379
378
  value: 29,
380
- color: l ? ke.POOR : Me.POOR
379
+ color: c ? we.POOR : ke.POOR
381
380
  },
382
381
  {
383
382
  id: 2,
384
383
  label: "Fair",
385
384
  value: 25,
386
- color: l ? ke.FAIR : Me.FAIR
385
+ color: c ? we.FAIR : ke.FAIR
387
386
  },
388
387
  {
389
388
  id: 3,
390
389
  label: "Good",
391
390
  value: 17,
392
- color: l ? ke.GOOD : Me.GOOD
391
+ color: c ? we.GOOD : ke.GOOD
393
392
  },
394
393
  {
395
394
  id: 4,
396
395
  label: "Very Good",
397
396
  value: 17,
398
- color: l ? ke.VERY_GOOD : Me.VERY_GOOD
397
+ color: c ? we.VERY_GOOD : ke.VERY_GOOD
399
398
  },
400
399
  {
401
400
  id: 5,
402
401
  label: "Exceptional",
403
402
  value: 12,
404
- color: l ? ke.EXCEPTIONAL : Me.EXCEPTIONAL
403
+ color: c ? we.EXCEPTIONAL : ke.EXCEPTIONAL
405
404
  }
406
- ], { finstrong: d } = x(), { isCopyLoaded: u } = q();
407
- if (!u) return /* @__PURE__ */ e(ee, {});
408
- const { status: h, color: y = "none" } = mt(
405
+ ], { finstrong: d } = S(), { isCopyLoaded: h } = q();
406
+ if (!h) return /* @__PURE__ */ e(te, {});
407
+ const { status: u, color: y = "none" } = ut(
409
408
  n,
410
- l,
409
+ c,
411
410
  d.credit_score_status
412
411
  );
413
412
  return /* @__PURE__ */ e(
414
- Ft,
413
+ Ot,
415
414
  {
416
415
  arcRadius: t,
417
416
  dialScoreData: _,
@@ -419,7 +418,7 @@ const Ao = ({
419
418
  footerLeftContent: s,
420
419
  footerRightContent: r,
421
420
  healthScore: n,
422
- healthScoreStatus: h,
421
+ healthScoreStatus: u,
423
422
  markerColor: y,
424
423
  maxValue: r,
425
424
  minValue: s,
@@ -427,26 +426,26 @@ const Ao = ({
427
426
  }
428
427
  );
429
428
  }
430
- ), Pe = ({
429
+ ), Be = ({
431
430
  drawerType: t,
432
431
  isDashboard: o = !1,
433
432
  hasIcon: n = !0,
434
433
  buttonText: r,
435
434
  title: s,
436
435
  titleDrawer: i,
437
- description: c,
438
- sx: l
436
+ description: l,
437
+ sx: c
439
438
  }) => {
440
- const [_, d] = m.useState(!1), { connect: u, finstrong: h } = x(), { config: y } = je();
439
+ const [_, d] = m.useState(!1), { connect: h, finstrong: u } = S(), { config: y } = je();
441
440
  return t && y.show_connections_widget_in_master ? /* @__PURE__ */ a(
442
- Y,
441
+ V,
443
442
  {
444
443
  sx: {
445
444
  pb: 24,
446
445
  pt: 18,
447
446
  px: 24,
448
447
  width: "100%",
449
- ...l
448
+ ...c
450
449
  },
451
450
  children: [
452
451
  /* @__PURE__ */ a(
@@ -458,7 +457,7 @@ const Ao = ({
458
457
  },
459
458
  children: [
460
459
  n && /* @__PURE__ */ e(pt, { sx: { height: 20, width: 20 } }),
461
- /* @__PURE__ */ e(V, { className: "connect-more-accounts-title", sx: { ...o && { fontSize: 15 } }, children: s || h.connect_more_accounts_title })
460
+ /* @__PURE__ */ e(K, { className: "connect-more-accounts-title", sx: { ...o && { fontSize: 15 } }, children: s || u.connect_more_accounts_title })
462
461
  ]
463
462
  }
464
463
  ),
@@ -468,17 +467,17 @@ const Ao = ({
468
467
  className: "connect-more-accounts-description",
469
468
  sx: { color: "text.secondary", mt: 8 },
470
469
  variant: "subtitle1",
471
- children: c || h.connect_more_accounts_description
470
+ children: l || u.connect_more_accounts_description
472
471
  }
473
472
  ),
474
473
  /* @__PURE__ */ e(
475
- B,
474
+ P,
476
475
  {
477
- endIcon: /* @__PURE__ */ e(Z, {}),
476
+ endIcon: /* @__PURE__ */ e(J, {}),
478
477
  onClick: () => d(!0),
479
478
  size: "small",
480
479
  sx: { p: 0, mt: 8, "&:hover": { backgroundColor: "transparent" } },
481
- children: /* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: "body2", children: r || h.connect_more_accounts_button })
480
+ children: /* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: "body2", children: r || u.connect_more_accounts_button })
482
481
  }
483
482
  ),
484
483
  t === "connectDrawer" && /* @__PURE__ */ e(
@@ -486,15 +485,15 @@ const Ao = ({
486
485
  {
487
486
  onClose: () => d(!1),
488
487
  showConnectWidget: _,
489
- title: i || u.mini_title
488
+ title: i || h.mini_title
490
489
  }
491
490
  ),
492
491
  t === "connectionsDrawer" && /* @__PURE__ */ e(
493
- Ct,
492
+ xt,
494
493
  {
495
494
  onClose: () => d(!1),
496
495
  showConnectionsWidget: _,
497
- title: i || u.mini_title
496
+ title: i || h.mini_title
498
497
  }
499
498
  )
500
499
  ]
@@ -502,21 +501,21 @@ const Ao = ({
502
501
  ) : null;
503
502
  };
504
503
  var de = /* @__PURE__ */ ((t) => (t.SpendLessThanYouMake = "spendLessThanYouMake", t.PayBillsOnTime = "payBillsOnTime", t.SaveEnoughToLiveOn = "saveEnoughToLiveOn", t.MaintainEmergencySavings = "maintainEmergencySavings", t.HaveManageableDebt = "haveManageableDebt", t.HaveAGoodCreditScore = "haveAGoodCreditScore", t))(de || {});
505
- const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_animation_final.gif", Fo = ({ isOpen: t, onClose: o }) => {
506
- const { common: n, finstrong: r } = x(), { isMobile: s } = qe(), { updateUser: i, user: c } = J(), [l, _] = m.useState(c.credit_score || 0), d = !isNaN(l), u = () => {
507
- o(), setTimeout(() => _(c.credit_score || 0), 300);
508
- }, h = () => {
509
- !l || l === c.credit_score || i({ ...c, credit_score: l });
504
+ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_animation_final.gif", To = ({ isOpen: t, onClose: o }) => {
505
+ const { common: n, finstrong: r } = S(), { isMobile: s } = qe(), { updateUser: i, user: l } = ee(), [c, _] = m.useState(l.credit_score || 0), d = !isNaN(c), h = () => {
506
+ o(), setTimeout(() => _(l.credit_score || 0), 300);
507
+ }, u = () => {
508
+ !c || c === l.credit_score || i({ ...l, credit_score: c });
510
509
  };
511
510
  return /* @__PURE__ */ e(
512
- Wn,
511
+ Ln,
513
512
  {
514
513
  copy: { close_aria: n.close_aria, title: r.edit_credit_score },
515
- disablePrimaryButton: !l || !d,
514
+ disablePrimaryButton: !c || !d,
516
515
  isOpen: t,
517
516
  maxWidth: "xs",
518
- onClose: u,
519
- onPrimaryAction: h,
517
+ onClose: h,
518
+ onPrimaryAction: u,
520
519
  primaryColor: "primary",
521
520
  primaryText: n.save_button,
522
521
  sx: {
@@ -528,10 +527,10 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
528
527
  "form",
529
528
  {
530
529
  onSubmit: (y) => {
531
- y.preventDefault(), h(), u();
530
+ y.preventDefault(), u(), h();
532
531
  },
533
532
  children: /* @__PURE__ */ e(
534
- Fe,
533
+ Re,
535
534
  {
536
535
  error: !d,
537
536
  fullWidth: !0,
@@ -541,18 +540,18 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
541
540
  pattern: "[0-9]*"
542
541
  },
543
542
  onChange: (y) => _(Number(y.target.value)),
544
- value: d ? l : ""
543
+ value: d ? c : ""
545
544
  }
546
545
  )
547
546
  }
548
547
  )
549
548
  }
550
549
  );
551
- }, Lt = v(Fo), ze = {
550
+ }, Ft = v(To), ze = {
552
551
  credit_over_time_title: "Your Credit Over Time",
553
552
  credit_over_time_zero_state_desc: "Add your credit score to start building a full picture of your credit health."
554
- }, Ro = ({ chartFor: t }) => {
555
- const o = G(), n = o.palette.mode === "dark", { monthlySummaries: r } = L(), { user: s } = J(), { finstrong: i } = x(), [c, { width: l }] = vt(), _ = {
553
+ }, Oo = ({ chartFor: t }) => {
554
+ const o = G(), n = o.palette.mode === "dark", { monthlySummaries: r } = F(), { user: s } = ee(), { finstrong: i } = S(), [l, { width: c }] = Ct(), _ = {
556
555
  savingsOverTime: {
557
556
  icon: /* @__PURE__ */ e(dt, { size: 48, sx: { marginBottom: 8 } }),
558
557
  title: i.key_indicators_save.zero_state_title,
@@ -568,7 +567,7 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
568
567
  title: ze.credit_over_time_title,
569
568
  description: ze.credit_over_time_zero_state_desc
570
569
  }
571
- }[t], u = {
570
+ }[t], h = {
572
571
  savingsOverTime: {
573
572
  title: i.key_indicators_save.savings_over_time,
574
573
  valueKey: "available_cash"
@@ -581,41 +580,41 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
581
580
  title: ze.credit_over_time_title,
582
581
  valueKey: "credit_score"
583
582
  }
584
- }[t], h = Sn(r, u.valueKey), y = r.map((F) => F[u.valueKey]), f = Math.max(...y), w = Math.min(...y), C = () => f >= 1e6 ? { formatter: "0.000a", leftMargin: 55 } : f >= 1e3 ? { formatter: "0a", leftMargin: 35 } : { formatter: "0a", leftMargin: 30 }, { formatter: D, leftMargin: S } = C(), g = u.title, b = t === "creditOverTime";
585
- let P;
583
+ }[t], u = xn(r, h.valueKey), y = r.map((B) => B[h.valueKey]), f = Math.max(...y), w = Math.min(...y), x = () => f >= 1e6 ? { formatter: "0.000a", leftMargin: -7 } : f >= 1e3 ? { formatter: "0a", leftMargin: -27 } : { formatter: "0a", leftMargin: -37 }, { formatter: D, leftMargin: C } = x(), g = h.title, b = t === "creditOverTime";
584
+ let L;
586
585
  if (b) {
587
- const { color: F } = mt(
586
+ const { color: B } = ut(
588
587
  s?.credit_score ?? 0,
589
588
  n,
590
589
  i.credit_score_status
591
590
  );
592
- P = F;
591
+ L = B;
593
592
  }
594
- return /* @__PURE__ */ e(Y, { ref: c, sx: { backgroundColor: "background.paper" }, children: h.length >= 1 ? /* @__PURE__ */ a(p, { gap: 8, sx: { pl: 18 }, children: [
593
+ return /* @__PURE__ */ e(V, { ref: l, sx: { backgroundColor: "background.paper" }, children: u.length >= 1 ? /* @__PURE__ */ a(p, { gap: 8, sx: { pl: 18 }, children: [
595
594
  /* @__PURE__ */ e(M, { sx: { pb: 8, pt: 16 }, variant: "h3", children: g }),
596
595
  /* @__PURE__ */ e(
597
596
  Ye,
598
597
  {
599
- areaColor: P,
598
+ areaColor: L,
600
599
  axisColor: o.palette.divider,
601
600
  baseline: "min",
602
601
  chartFor: t,
603
602
  colors: [o.palette.primary.main],
604
603
  curveType: b ? "linear" : "natural",
605
- datasets: h ? [h] : [],
604
+ datasets: u ? [u] : [],
606
605
  height: 244,
607
606
  labelFontColor: b ? "text.primary" : "",
608
607
  labelFontSize: b ? 13 : void 0,
609
608
  labels: [i.key_indicators_label],
610
- margin: { left: S, top: b ? 25 : 15, right: 20 },
611
- markStyles: (F) => b ? {
609
+ margin: { left: C, top: b ? 25 : 15, right: 20 },
610
+ markStyles: (B) => b ? {
612
611
  markLabelStyles: {
613
612
  marginLeft: 16,
614
- transform: F === h.length - 1 ? "translateX(-16px)" : "translateX(16px)",
613
+ transform: B === u.length - 1 ? "translateX(-16px)" : "translateX(16px)",
615
614
  fontWeight: 600,
616
615
  fill: o.palette.text.primary
617
616
  },
618
- stroke: P
617
+ stroke: L
619
618
  } : {},
620
619
  maxRange: b ? 850 : void 0,
621
620
  minRange: (() => {
@@ -631,7 +630,7 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
631
630
  showYAxisTicks: b,
632
631
  useCustomMark: !0,
633
632
  valueFormatterString: b ? void 0 : D,
634
- width: l < 342 ? l - 48 : 342
633
+ width: c < 342 ? c - 48 : 342
635
634
  }
636
635
  )
637
636
  ] }) : /* @__PURE__ */ a(p, { gap: 8, sx: { alignItems: "center", p: 24, pb: 48 }, children: [
@@ -639,33 +638,33 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
639
638
  /* @__PURE__ */ e(M, { fontWeight: 600, variant: "body1", children: _.title }),
640
639
  /* @__PURE__ */ e(M, { align: "center", variant: "subtitle1", children: _.description })
641
640
  ] }) });
642
- }, Ue = v(Ro), Lo = () => {
643
- const { healthScoreChange: t } = L(), { finstrong: o } = x(), { user: n } = J(), { availableWidth: r } = Fn(), { isSmallMobile: s } = qe(r), [i, c] = m.useState(!1);
641
+ }, Ue = v(Oo), Ro = () => {
642
+ const { healthScoreChangeReports: t } = F(), { finstrong: o } = S(), { user: n } = ee(), { availableWidth: r } = Tn(), { isSmallMobile: s } = qe(r), [i, l] = m.useState(!1), c = t.at(-1);
644
643
  return /* @__PURE__ */ a(k, { children: [
645
644
  /* @__PURE__ */ a(p, { sx: { gap: 28 }, children: [
646
645
  /* @__PURE__ */ e(
647
- To,
646
+ Io,
648
647
  {
649
648
  arcRadius: s ? 124 : 154,
650
- footerCenterContent: t,
649
+ footerCenterContent: c ? c.newer_credit_score - c.older_credit_score : 0,
651
650
  healthScore: n.credit_score ?? 0,
652
651
  size: s ? "M" : "L"
653
652
  }
654
653
  ),
655
- /* @__PURE__ */ e(B, { onClick: () => c(!0), variant: "contained", children: o.credit_score_updated_score }),
654
+ /* @__PURE__ */ e(P, { onClick: () => l(!0), variant: "contained", children: o.credit_score_updated_score }),
656
655
  /* @__PURE__ */ e(Ue, { chartFor: "creditOverTime" })
657
656
  ] }),
658
- /* @__PURE__ */ e(Lt, { isOpen: i, onClose: () => c(!1) })
657
+ /* @__PURE__ */ e(Ft, { isOpen: i, onClose: () => l(!1) })
659
658
  ] });
660
- }, Po = v(Lo), Be = ({ status: t }) => {
661
- const { finstrong: o } = x(), n = vn(wn[t]), r = {
659
+ }, Fo = v(Ro), Pe = ({ status: t }) => {
660
+ const { finstrong: o } = S(), n = Sn(Cn[t]), r = {
662
661
  GOOD: o.key_indicators_good,
663
662
  FAIR: o.key_indicators_fair,
664
663
  OFF_TRACK: o.key_indicators_off_track,
665
664
  MISSING: o.key_indicators_missing
666
665
  }[t];
667
666
  return /* @__PURE__ */ e(
668
- Gn,
667
+ Wn,
669
668
  {
670
669
  label: /* @__PURE__ */ e(
671
670
  M,
@@ -685,29 +684,29 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
685
684
  variant: "filled"
686
685
  }
687
686
  );
688
- }, Bo = () => {
689
- const { finstrong: t } = x(), { user: o } = J(), n = gt(o.credit_score ?? null);
687
+ }, Lo = () => {
688
+ const { finstrong: t } = S(), { user: o } = ee(), n = mt(o.credit_score ?? null);
690
689
  return /* @__PURE__ */ a(p, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
691
- /* @__PURE__ */ e(V, { children: t.credit_score_keep_strong_credit_score }),
692
- /* @__PURE__ */ e(Be, { status: n })
690
+ /* @__PURE__ */ e(K, { children: t.credit_score_keep_strong_credit_score }),
691
+ /* @__PURE__ */ e(Pe, { status: n })
693
692
  ] });
694
- }, Wo = v(Bo), $o = ({
693
+ }, Bo = v(Lo), Po = ({
695
694
  additionalContent: t,
696
695
  connectTitle: o,
697
696
  connectDescription: n,
698
697
  children: r,
699
698
  description: s,
700
699
  drawerTitle: i,
701
- isOpen: c,
702
- loadConnectAccountsCard: l = !0,
700
+ isOpen: l,
701
+ loadConnectAccountsCard: c = !0,
703
702
  onClose: _,
704
703
  stickyComponent: d,
705
- title: u,
706
- drawerType: h
704
+ title: h,
705
+ drawerType: u
707
706
  }) => {
708
- const { finstrong: y } = x(), { isCopyLoaded: f } = q();
709
- return f ? /* @__PURE__ */ e(oe, { isOpen: c, onClose: _, title: i || y.key_indicators, children: /* @__PURE__ */ a(p, { sx: { backgroundColor: "background.default", height: "100%" }, children: [
710
- (u || s) && /* @__PURE__ */ a(
707
+ const { finstrong: y } = S(), { isCopyLoaded: f } = q();
708
+ return f ? /* @__PURE__ */ e(oe, { isOpen: l, onClose: _, title: i || y.key_indicators, children: /* @__PURE__ */ a(p, { sx: { backgroundColor: "background.default", height: "100%" }, children: [
709
+ (h || s) && /* @__PURE__ */ a(
711
710
  p,
712
711
  {
713
712
  sx: {
@@ -716,7 +715,7 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
716
715
  p: 24
717
716
  },
718
717
  children: [
719
- u && typeof u == "string" ? /* @__PURE__ */ e(V, { children: u }) : u,
718
+ h && typeof h == "string" ? /* @__PURE__ */ e(K, { children: h }) : h,
720
719
  s && /* @__PURE__ */ e(M, { sx: { lineHeight: "24px" }, children: s })
721
720
  ]
722
721
  }
@@ -735,66 +734,66 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
735
734
  t && /* @__PURE__ */ e(k, { children: t }),
736
735
  /* @__PURE__ */ a(p, { sx: { bgcolor: "background.default", gap: 24, p: 24 }, children: [
737
736
  r,
738
- l && /* @__PURE__ */ e(
739
- Pe,
737
+ c && /* @__PURE__ */ e(
738
+ Be,
740
739
  {
741
740
  description: n,
742
- drawerType: h,
741
+ drawerType: u,
743
742
  isDashboard: !0,
744
743
  sx: { backgroundColor: "background.paper" },
745
744
  title: o
746
745
  }
747
746
  )
748
747
  ] })
749
- ] }) }) : /* @__PURE__ */ e(ee, {});
750
- }, Pt = v($o), zo = ({
748
+ ] }) }) : /* @__PURE__ */ e(te, {});
749
+ }, Lt = v(Po), Wo = ({
751
750
  onClick: t,
752
751
  shouldShowBalance: o = !0,
753
752
  loadAccounts: n
754
753
  }) => {
755
- const { config: r } = je(), { accounts: s } = x(), { selectedAccounts: i } = q(), c = m.useCallback(
754
+ const { config: r } = je(), { accounts: s } = S(), { selectedAccounts: i } = q(), l = m.useCallback(
756
755
  (_) => {
757
756
  t?.(_);
758
757
  },
759
758
  [t]
760
- ), l = m.useMemo(
759
+ ), c = m.useMemo(
761
760
  () => Array.from(new Set(i.map((_) => _.account_type))).filter(
762
761
  (_) => n ? n.includes(_) : !0
763
762
  ),
764
763
  [i, n]
765
764
  );
766
- return i.length ? /* @__PURE__ */ e(m.Fragment, { children: l.map((_) => {
767
- const { accountsForType: d, totalBalanceForType: u } = i.reduce(
768
- (h, y) => (y.account_type === _ && (h.accountsForType.push(y), h.totalBalanceForType += y.balance || 0), h),
765
+ return i.length ? /* @__PURE__ */ e(m.Fragment, { children: c.map((_) => {
766
+ const { accountsForType: d, totalBalanceForType: h } = i.reduce(
767
+ (u, y) => (y.account_type === _ && (u.accountsForType.push(y), u.totalBalanceForType += y.balance || 0), u),
769
768
  { accountsForType: [], totalBalanceForType: 0 }
770
769
  );
771
770
  return /* @__PURE__ */ a(
772
- Ee,
771
+ Ge,
773
772
  {
774
- subheader: /* @__PURE__ */ e(Hn, { sx: { pb: 4, position: "static", pt: 12, px: 24 }, children: /* @__PURE__ */ a(p, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
773
+ subheader: /* @__PURE__ */ e(zn, { sx: { pb: 4, position: "static", pt: 12, px: 24 }, children: /* @__PURE__ */ a(p, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
775
774
  /* @__PURE__ */ e(I, { bold: !0, variant: "caption", children: s.account_types[_] }),
776
- o && /* @__PURE__ */ e(I, { bold: !0, variant: "caption", children: $(u, "0,0.00") })
775
+ o && /* @__PURE__ */ e(I, { bold: !0, variant: "caption", children: W(h, "0,0.00") })
777
776
  ] }) }),
778
777
  sx: { bgcolor: "background.paper" },
779
778
  children: [
780
- d.map((h, y) => {
781
- const { firstValue: f } = kt(h, s), w = St(h, {
779
+ d.map((u, y) => {
780
+ const { firstValue: f } = wt(u, s), w = St(u, {
782
781
  allowNickname: r?.show_account_nicknames_in_master
783
- }), C = /* @__PURE__ */ a(z, { children: [
784
- /* @__PURE__ */ e(wt, { children: /* @__PURE__ */ e(ut, { alt: "MX", institutionGuid: h.institution_guid ?? "" }) }),
782
+ }), x = /* @__PURE__ */ a(E, { children: [
783
+ /* @__PURE__ */ e(vt, { children: /* @__PURE__ */ e(lt, { alt: "MX", institutionGuid: u.institution_guid ?? "" }) }),
785
784
  /* @__PURE__ */ e(
786
- ye,
785
+ be,
787
786
  {
788
- primary: `${w}${h.account_number ? ` *${h.account_number}` : ""}`,
787
+ primary: `${w}${u.account_number ? ` *${u.account_number}` : ""}`,
789
788
  primaryTypographyProps: { noWrap: !0, pr: 4, variant: "body1" }
790
789
  }
791
790
  ),
792
- o && /* @__PURE__ */ e(M, { bold: !0, variant: "body2", children: $(f ?? 0, "0,0.00") })
791
+ o && /* @__PURE__ */ e(M, { bold: !0, variant: "body2", children: W(f ?? 0, "0,0.00") })
793
792
  ] });
794
793
  return /* @__PURE__ */ a(m.Fragment, { children: [
795
- /* @__PURE__ */ e(ge, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e(En, { onClick: () => c(h), children: C }) : C }),
794
+ /* @__PURE__ */ e(ye, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e($n, { onClick: () => l(u), children: x }) : x }),
796
795
  y !== d.length - 1 && /* @__PURE__ */ e(le, { variant: "inset" })
797
- ] }, h.guid);
796
+ ] }, u.guid);
798
797
  }),
799
798
  /* @__PURE__ */ e(le, {})
800
799
  ]
@@ -802,39 +801,39 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
802
801
  _
803
802
  );
804
803
  }) }) : null;
805
- }, Bt = v(zo), Go = ({ loadAccounts: t, loadMoreLabel: o }) => {
806
- const n = G(), { config: r } = je(), { connect: s, finstrong: i } = x(), { accounts: c } = x(), { selectedAccounts: l } = q(), [_, d] = m.useState(!1), [u, h] = m.useState(!1), y = m.useMemo(
807
- () => l.filter(
808
- (C) => t ? t.includes(C.account_type) : !0
804
+ }, Bt = v(Wo), $o = ({ loadAccounts: t, loadMoreLabel: o }) => {
805
+ const n = G(), { config: r } = je(), { connect: s, finstrong: i } = S(), { accounts: l } = S(), { selectedAccounts: c } = q(), [_, d] = m.useState(!1), [h, u] = m.useState(!1), y = m.useMemo(
806
+ () => c.filter(
807
+ (x) => t ? t.includes(x.account_type) : !0
809
808
  ),
810
- [l, t]
811
- ), f = m.useMemo(() => y.slice(0, 3), [y]), w = (C) => {
812
- const { firstValue: D } = kt(C, c);
809
+ [c, t]
810
+ ), f = m.useMemo(() => y.slice(0, 3), [y]), w = (x) => {
811
+ const { firstValue: D } = wt(x, l);
813
812
  return D;
814
813
  };
815
- return y.length >= 1 ? /* @__PURE__ */ a(z, { children: [
816
- /* @__PURE__ */ e(k, { sx: { border: `1px solid ${n.palette.divider}`, borderRadius: 2 }, children: f.map((C, D) => /* @__PURE__ */ a(m.Fragment, { children: [
817
- /* @__PURE__ */ a(ge, { sx: { px: 24 }, children: [
818
- /* @__PURE__ */ e(wt, { children: /* @__PURE__ */ e(ut, { alt: "MX", institutionGuid: C.institution_guid ?? "" }) }),
814
+ return y.length >= 1 ? /* @__PURE__ */ a(E, { children: [
815
+ /* @__PURE__ */ e(k, { sx: { border: `1px solid ${n.palette.divider}`, borderRadius: 2 }, children: f.map((x, D) => /* @__PURE__ */ a(m.Fragment, { children: [
816
+ /* @__PURE__ */ a(ye, { sx: { px: 24 }, children: [
817
+ /* @__PURE__ */ e(vt, { children: /* @__PURE__ */ e(lt, { alt: "MX", institutionGuid: x.institution_guid ?? "" }) }),
819
818
  /* @__PURE__ */ e(
820
- ye,
819
+ be,
821
820
  {
822
- primary: `${St(C, {
821
+ primary: `${St(x, {
823
822
  allowNickname: r?.show_account_nicknames_in_master
824
823
  })}
825
- ${C.account_number ? ` *${C.account_number}` : ""}`,
824
+ ${x.account_number ? ` *${x.account_number}` : ""}`,
826
825
  primaryTypographyProps: { noWrap: !0, pr: 4, variant: "body1" }
827
826
  }
828
827
  ),
829
- /* @__PURE__ */ e(M, { bold: !0, variant: "body2", children: $(w(C), "0,0.00") })
828
+ /* @__PURE__ */ e(M, { bold: !0, variant: "body2", children: W(w(x), "0,0.00") })
830
829
  ] }),
831
830
  D < f.length - 1 && /* @__PURE__ */ e(le, { variant: "inset" })
832
- ] }, C.guid)) }),
833
- y.length > 3 && /* @__PURE__ */ a(z, { children: [
831
+ ] }, x.guid)) }),
832
+ y.length > 3 && /* @__PURE__ */ a(E, { children: [
834
833
  /* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(
835
- B,
834
+ P,
836
835
  {
837
- endIcon: /* @__PURE__ */ e(Z, {}),
836
+ endIcon: /* @__PURE__ */ e(J, {}),
838
837
  onClick: () => d(!0),
839
838
  size: "small",
840
839
  sx: { my: 0, px: 16, py: 12, width: "100%" },
@@ -847,11 +846,11 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
847
846
  ) }),
848
847
  /* @__PURE__ */ e(oe, { isOpen: _, onClose: () => d(!1), title: i.accounts, children: /* @__PURE__ */ e(Bt, { loadAccounts: t }) })
849
848
  ] })
850
- ] }) : /* @__PURE__ */ a(z, { children: [
849
+ ] }) : /* @__PURE__ */ a(E, { children: [
851
850
  /* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(
852
- B,
851
+ P,
853
852
  {
854
- onClick: () => h(!0),
853
+ onClick: () => u(!0),
855
854
  size: "small",
856
855
  sx: { my: 0, px: 16, py: 12, width: "100%" },
857
856
  variant: "contained",
@@ -861,13 +860,13 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
861
860
  /* @__PURE__ */ e(
862
861
  re,
863
862
  {
864
- onClose: () => h(!1),
865
- showConnectWidget: u,
863
+ onClose: () => u(!1),
864
+ showConnectWidget: h,
866
865
  title: s.mini_title
867
866
  }
868
867
  )
869
868
  ] });
870
- }, Wt = v(Go), Ce = ({ balance: t, title: o, sx: n }) => /* @__PURE__ */ a(
869
+ }, Pt = v($o), Ce = ({ balance: t, title: o, sx: n }) => /* @__PURE__ */ a(
871
870
  p,
872
871
  {
873
872
  sx: {
@@ -880,58 +879,58 @@ const Oo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
880
879
  ...n
881
880
  },
882
881
  children: [
883
- typeof t == "number" ? /* @__PURE__ */ e(M, { variant: "h2", children: $(t, "0,0.00") }) : t,
882
+ typeof t == "number" ? /* @__PURE__ */ e(M, { variant: "h2", children: W(t, "0,0.00") }) : t,
884
883
  /* @__PURE__ */ e(M, { color: "text.secondary", fontWeight: "400", variant: "subtitle2", children: o })
885
884
  ]
886
885
  }
887
886
  );
888
- var T = /* @__PURE__ */ ((t) => (t[t.ConnectAccounts = 1] = "ConnectAccounts", t[t.MonthlyIncome = 2] = "MonthlyIncome", t[t.Birthday = 3] = "Birthday", t[t.CreditScore = 4] = "CreditScore", t))(T || {}), De = /* @__PURE__ */ ((t) => (t[t.Months = 1] = "Months", t[t.Years = 2] = "Years", t[t.Days = 3] = "Days", t))(De || {}), 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 || {});
889
- const Eo = ({ total: t }) => {
890
- const { finstrong: o } = x(), n = [
891
- { id: Q.Monthly, label: o.maintain_emergency_savings_monthly },
892
- { id: Q.BiWeekly, label: o.maintain_emergency_savings_bi_weekly },
893
- { id: Q.Weekly, label: o.maintain_emergency_savings_weekly },
894
- { id: Q.Daily, label: o.maintain_emergency_savings_daily }
887
+ 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 || {}), Me = /* @__PURE__ */ ((t) => (t[t.Months = 1] = "Months", t[t.Years = 2] = "Years", t[t.Days = 3] = "Days", t))(Me || {}), 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 || {});
888
+ const zo = ({ total: t }) => {
889
+ const { finstrong: o } = S(), n = [
890
+ { id: Z.Monthly, label: o.maintain_emergency_savings_monthly },
891
+ { id: Z.BiWeekly, label: o.maintain_emergency_savings_bi_weekly },
892
+ { id: Z.Weekly, label: o.maintain_emergency_savings_weekly },
893
+ { id: Z.Daily, label: o.maintain_emergency_savings_daily }
895
894
  ], r = {
896
- [Q.Monthly]: o.maintain_emergency_savings_estimated_period_monthly,
897
- [Q.BiWeekly]: o.maintain_emergency_savings_estimated_period_bi_weekly,
898
- [Q.Weekly]: o.maintain_emergency_savings_estimated_period_weekly,
899
- [Q.Daily]: o.maintain_emergency_savings_estimated_period_daily
895
+ [Z.Monthly]: o.maintain_emergency_savings_estimated_period_monthly,
896
+ [Z.BiWeekly]: o.maintain_emergency_savings_estimated_period_bi_weekly,
897
+ [Z.Weekly]: o.maintain_emergency_savings_estimated_period_weekly,
898
+ [Z.Daily]: o.maintain_emergency_savings_estimated_period_daily
900
899
  }, s = [
901
- { id: De.Months, label: o.maintain_emergency_savings_months },
902
- { id: De.Years, label: o.maintain_emergency_savings_years },
903
- { id: De.Days, label: o.maintain_emergency_savings_days }
904
- ], i = Math.ceil((t + 1) / 1e3) * 1e3, [c, l] = m.useState(0), [_, d] = m.useState(tt(t)), [u, h] = m.useState(
900
+ { id: Me.Months, label: o.maintain_emergency_savings_months },
901
+ { id: Me.Years, label: o.maintain_emergency_savings_years },
902
+ { id: Me.Days, label: o.maintain_emergency_savings_days }
903
+ ], i = Math.ceil((t + 1) / 1e3) * 1e3, [l, c] = m.useState(0), [_, d] = m.useState(tt(t)), [h, u] = m.useState(
905
904
  tt(t)
906
- ), [y, f] = m.useState(i), [w, C] = m.useState(kn(t)), [D, S] = m.useState(De.Months);
905
+ ), [y, f] = m.useState(i), [w, x] = m.useState(vn(t)), [D, C] = m.useState(Me.Months);
907
906
  m.useEffect(() => {
908
- l(
907
+ c(
909
908
  nt({
910
- contribution: u,
909
+ contribution: h,
911
910
  goalAmount: y,
912
911
  goalPeriod: w,
913
912
  targetPeriod: D,
914
913
  totalSaved: t
915
914
  })
916
- ), d(u);
915
+ ), d(h);
917
916
  }, []);
918
917
  const g = (b) => {
919
- b.preventDefault(), l(
918
+ b.preventDefault(), c(
920
919
  nt({
921
- contribution: u,
920
+ contribution: h,
922
921
  goalAmount: y,
923
922
  goalPeriod: w,
924
923
  targetPeriod: D,
925
924
  totalSaved: t
926
925
  })
927
- ), d(u);
926
+ ), d(h);
928
927
  };
929
- return /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e("form", { onSubmit: g, children: /* @__PURE__ */ a(p, { sx: { gap: 24, pb: 24, pt: 16, px: 16 }, children: [
928
+ return /* @__PURE__ */ e(V, { children: /* @__PURE__ */ e("form", { onSubmit: g, children: /* @__PURE__ */ a(p, { sx: { gap: 24, pb: 24, pt: 16, px: 16 }, children: [
930
929
  /* @__PURE__ */ e(
931
930
  Ce,
932
931
  {
933
932
  balance: /* @__PURE__ */ a(p, { sx: { flexDirection: "row", height: 32 }, children: [
934
- /* @__PURE__ */ e(I, { variant: "h2", children: $(c, "0,0") }),
933
+ /* @__PURE__ */ e(I, { variant: "h2", children: W(l, "0,0") }),
935
934
  /* @__PURE__ */ a(I, { sx: { alignSelf: "end", height: 24 }, variant: "subtitle2", children: [
936
935
  "/",
937
936
  r[_]
@@ -941,12 +940,12 @@ const Eo = ({ total: t }) => {
941
940
  }
942
941
  ),
943
942
  /* @__PURE__ */ e(
944
- Fe,
943
+ Re,
945
944
  {
946
945
  "aria-label": o.maintain_emergency_savings_savings_goal,
947
- helperText: K(
946
+ helperText: j(
948
947
  o.maintain_emergency_savings_suggested_goal,
949
- $(i, "0,0")
948
+ W(i, "0,0")
950
949
  ),
951
950
  inputProps: {
952
951
  noValidate: !0,
@@ -956,22 +955,22 @@ const Eo = ({ total: t }) => {
956
955
  onChange: (b) => {
957
956
  b.target.value && f(Number(b.target.value.replace(/[^0-9]/g, "")));
958
957
  },
959
- value: y ? $(y, "0,0") : ""
958
+ value: y ? W(y, "0,0") : ""
960
959
  }
961
960
  ),
962
961
  /* @__PURE__ */ e(
963
962
  rt,
964
963
  {
965
964
  label: o.maintain_emergency_savings_how_often_contribute,
966
- onChange: h,
965
+ onChange: u,
967
966
  options: n,
968
967
  required: !0,
969
- value: u
968
+ value: h
970
969
  }
971
970
  ),
972
971
  /* @__PURE__ */ a(p, { sx: { flexDirection: "row" }, children: [
973
972
  /* @__PURE__ */ e(
974
- Fe,
973
+ Re,
975
974
  {
976
975
  "aria-label": o.maintain_emergency_savings_meet_your_goal_within,
977
976
  fullWidth: !0,
@@ -981,7 +980,7 @@ const Eo = ({ total: t }) => {
981
980
  },
982
981
  label: o.maintain_emergency_savings_meet_your_goal_within,
983
982
  onChange: (b) => {
984
- isNaN(Number(b.target.value)) || C(Number(b.target.value));
983
+ isNaN(Number(b.target.value)) || x(Number(b.target.value));
985
984
  },
986
985
  sx: {
987
986
  "& .MuiInputBase-root": {
@@ -1007,29 +1006,29 @@ const Eo = ({ total: t }) => {
1007
1006
  }
1008
1007
  }
1009
1008
  },
1010
- children: /* @__PURE__ */ e(rt, { label: "", onChange: S, options: s, value: D })
1009
+ children: /* @__PURE__ */ e(rt, { label: "", onChange: C, options: s, value: D })
1011
1010
  }
1012
1011
  )
1013
1012
  ] }),
1014
- /* @__PURE__ */ e(B, { fullWidth: !0, onClick: g, type: "submit", variant: "contained", children: o.maintain_emergency_savings_calculate })
1013
+ /* @__PURE__ */ e(P, { fullWidth: !0, onClick: g, type: "submit", variant: "contained", children: o.maintain_emergency_savings_calculate })
1015
1014
  ] }) }) });
1016
- }, Ho = v(Eo), No = () => {
1017
- const { savingsAccounts: t } = xe(), { finstrong: o } = x(), [n, r] = m.useState(!1), s = m.useMemo(
1018
- () => t.reduce((i, c) => i + (c.balance ?? 0), 0),
1015
+ }, Eo = v(zo), Go = () => {
1016
+ const { savingsAccounts: t } = Se(), { finstrong: o } = S(), [n, r] = m.useState(!1), s = m.useMemo(
1017
+ () => t.reduce((i, l) => i + (l.balance ?? 0), 0),
1019
1018
  [t]
1020
1019
  );
1021
1020
  return /* @__PURE__ */ a(p, { sx: { gap: 24 }, children: [
1022
- /* @__PURE__ */ e(Y, { sx: { bgcolor: "background.paper", p: 16 }, children: /* @__PURE__ */ a(p, { sx: { gap: 16 }, children: [
1021
+ /* @__PURE__ */ e(V, { sx: { bgcolor: "background.paper", p: 16 }, children: /* @__PURE__ */ a(p, { sx: { gap: 16 }, children: [
1023
1022
  /* @__PURE__ */ e(Ce, { balance: s, title: o.maintain_emergency_savings_your_savings }),
1024
1023
  t.length ? /* @__PURE__ */ e(
1025
- Wt,
1024
+ Pt,
1026
1025
  {
1027
- loadAccounts: [Ge.SAVINGS],
1026
+ loadAccounts: [Ee.SAVINGS],
1028
1027
  loadMoreLabel: o.connect_more_accounts_button
1029
1028
  }
1030
- ) : /* @__PURE__ */ e(B, { onClick: () => r(!0), variant: "contained", children: o.connect_more_accounts_button })
1029
+ ) : /* @__PURE__ */ e(P, { onClick: () => r(!0), variant: "contained", children: o.connect_more_accounts_button })
1031
1030
  ] }) }),
1032
- /* @__PURE__ */ e(Ho, { total: s }),
1031
+ /* @__PURE__ */ e(Eo, { total: s }),
1033
1032
  /* @__PURE__ */ e(
1034
1033
  re,
1035
1034
  {
@@ -1039,7 +1038,7 @@ const Eo = ({ total: t }) => {
1039
1038
  }
1040
1039
  )
1041
1040
  ] });
1042
- }, jo = v(No), We = v(
1041
+ }, Ho = v(Go), We = v(
1043
1042
  ({ label: t, value: o, status: n, bottomComponent: r, statusBarData: s = [] }) => {
1044
1043
  const i = {
1045
1044
  GOOD: {
@@ -1054,12 +1053,12 @@ const Eo = ({ total: t }) => {
1054
1053
  MISSING: {
1055
1054
  progressBarColor: "text.secondary"
1056
1055
  }
1057
- }[n], c = s.map((l, _) => s.length === 2 ? {
1058
- color: _ === 0 ? "primary.main" : l.color || i?.progressBarColor,
1059
- percentage: l.percentage
1056
+ }[n], l = s.map((c, _) => s.length === 2 ? {
1057
+ color: _ === 0 ? "primary.main" : c.color || i?.progressBarColor,
1058
+ percentage: c.percentage
1060
1059
  } : {
1061
- color: l.color || i?.progressBarColor,
1062
- percentage: l.percentage
1060
+ color: c.color || i?.progressBarColor,
1061
+ percentage: c.percentage
1063
1062
  });
1064
1063
  return /* @__PURE__ */ a(
1065
1064
  p,
@@ -1086,27 +1085,27 @@ const Eo = ({ total: t }) => {
1086
1085
  },
1087
1086
  children: [
1088
1087
  /* @__PURE__ */ e(Le, { children: o }),
1089
- /* @__PURE__ */ e(Be, { status: n })
1088
+ /* @__PURE__ */ e(Pe, { status: n })
1090
1089
  ]
1091
1090
  }
1092
1091
  )
1093
1092
  ] }),
1094
1093
  /* @__PURE__ */ a(p, { children: [
1095
- /* @__PURE__ */ e(jn, { data: c, height: 16 }),
1094
+ /* @__PURE__ */ e(Gn, { data: l, height: 16 }),
1096
1095
  r
1097
1096
  ] })
1098
1097
  ]
1099
1098
  }
1100
1099
  );
1101
1100
  }
1102
- ), Ko = {
1101
+ ), No = {
1103
1102
  sticky_label: "You have saved"
1104
- }, Vo = ["$0", "$250", "$500", "$750", "$1k"], Yo = () => {
1105
- const { healthScore: t } = L(), o = Math.round(t.emergency_savings_on_hand ?? NaN) || null, n = Mn(o), r = yt(o);
1103
+ }, jo = ["$0", "$250", "$500", "$750", "$1k"], Ko = () => {
1104
+ const { healthScore: t } = F(), o = Math.round(t.emergency_savings_on_hand ?? NaN) || null, n = wn(o), r = gt(o);
1106
1105
  return /* @__PURE__ */ e(
1107
1106
  We,
1108
1107
  {
1109
- bottomComponent: /* @__PURE__ */ e(p, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: Vo.map((s) => /* @__PURE__ */ a(p, { sx: { alignItems: "center", height: 24, width: 30 }, children: [
1108
+ bottomComponent: /* @__PURE__ */ e(p, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: jo.map((s) => /* @__PURE__ */ a(p, { sx: { alignItems: "center", height: 24, width: 30 }, children: [
1110
1109
  /* @__PURE__ */ e(
1111
1110
  le,
1112
1111
  {
@@ -1120,48 +1119,48 @@ const Eo = ({ total: t }) => {
1120
1119
  ),
1121
1120
  /* @__PURE__ */ e(I, { variant: "caption", children: s })
1122
1121
  ] }, s)) }),
1123
- label: Ko.sticky_label,
1122
+ label: No.sticky_label,
1124
1123
  status: r,
1125
1124
  statusBarData: [
1126
1125
  {
1127
1126
  percentage: n
1128
1127
  }
1129
1128
  ],
1130
- value: $(o ?? 0, "0,0.00")
1129
+ value: W(o ?? 0, "0,0.00")
1131
1130
  }
1132
1131
  );
1133
- }, Xo = v(Yo), $e = ({
1132
+ }, Vo = v(Ko), $e = ({
1134
1133
  transactions: t = [],
1135
1134
  amountColor: o = "success.main",
1136
1135
  amountPosition: n = "center",
1137
- formatDate: r = It,
1136
+ formatDate: r = Dt,
1138
1137
  secondaryIcon: s
1139
1138
  }) => {
1140
- const i = G(), { connect: c, finstrong: l, categories: _ } = x(), [d, u] = m.useState(!1), [h, y] = m.useState(!1), { getCategoryName: f } = Ke(), w = 3, C = t.length > w, D = t.length - w;
1141
- let S = t;
1142
- return C && (S = t.map((g) => ({
1139
+ const i = G(), { connect: l, finstrong: c, categories: _ } = S(), [d, h] = m.useState(!1), [u, y] = m.useState(!1), { getCategoryName: f } = Ke(), w = 3, x = t.length > w, D = t.length - w;
1140
+ let C = t;
1141
+ return x && (C = t.map((g) => ({
1143
1142
  ...g,
1144
1143
  category: _.default_categories[g.top_level_category_guid]?.replace(
1145
1144
  /&amp;/g,
1146
1145
  "&"
1147
1146
  ) ?? f(g.top_level_category_guid)
1148
- })).sort((g, b) => b.date - g.date)), !t || t.length === 0 ? /* @__PURE__ */ a(z, { children: [
1147
+ })).sort((g, b) => b.date - g.date)), !t || t.length === 0 ? /* @__PURE__ */ a(E, { children: [
1149
1148
  /* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(
1150
- B,
1149
+ P,
1151
1150
  {
1152
1151
  onClick: () => y(!0),
1153
1152
  size: "small",
1154
1153
  sx: { my: 0, px: 16, py: 12, width: "100%" },
1155
1154
  variant: "contained",
1156
- children: /* @__PURE__ */ e(I, { bold: !0, variant: "body1", children: l.connect_more_accounts_button })
1155
+ children: /* @__PURE__ */ e(I, { bold: !0, variant: "body1", children: c.connect_more_accounts_button })
1157
1156
  }
1158
1157
  ) }),
1159
1158
  /* @__PURE__ */ e(
1160
1159
  re,
1161
1160
  {
1162
1161
  onClose: () => y(!1),
1163
- showConnectWidget: h,
1164
- title: c.mini_title
1162
+ showConnectWidget: u,
1163
+ title: l.mini_title
1165
1164
  }
1166
1165
  )
1167
1166
  ] }) : /* @__PURE__ */ a(p, { sx: { gap: 16 }, children: [
@@ -1177,7 +1176,7 @@ const Eo = ({ total: t }) => {
1177
1176
  },
1178
1177
  children: [
1179
1178
  /* @__PURE__ */ e(p, { sx: { pb: 14 }, children: /* @__PURE__ */ e(
1180
- yn,
1179
+ rn,
1181
1180
  {
1182
1181
  categoryGuid: g.top_level_category_guid || "",
1183
1182
  merchantGuid: g.merchant_guid || "",
@@ -1207,7 +1206,7 @@ const Eo = ({ total: t }) => {
1207
1206
  /* @__PURE__ */ e(I, { variant: "caption", children: r(g.date) })
1208
1207
  ] })
1209
1208
  ] }),
1210
- /* @__PURE__ */ e(M, { bold: !0, sx: { color: o, flexShrink: 0 }, variant: "body1", children: $(g.amount, "0,0.00") })
1209
+ /* @__PURE__ */ e(M, { bold: !0, sx: { color: o, flexShrink: 0 }, variant: "body1", children: W(g.amount, "0,0.00") })
1211
1210
  ]
1212
1211
  },
1213
1212
  g.guid || b
@@ -1216,18 +1215,18 @@ const Eo = ({ total: t }) => {
1216
1215
  },
1217
1216
  b
1218
1217
  )) }),
1219
- C && /* @__PURE__ */ a(z, { children: [
1218
+ x && /* @__PURE__ */ a(E, { children: [
1220
1219
  /* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(
1221
- B,
1220
+ P,
1222
1221
  {
1223
- endIcon: /* @__PURE__ */ e(Z, {}),
1224
- onClick: () => u(!0),
1222
+ endIcon: /* @__PURE__ */ e(J, {}),
1223
+ onClick: () => h(!0),
1225
1224
  size: "small",
1226
1225
  sx: { my: 0, px: 16, py: 12, width: "100%" },
1227
1226
  children: /* @__PURE__ */ a(I, { bold: !0, variant: "body1", children: [
1228
1227
  D,
1229
1228
  " ",
1230
- l.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_more_transactions
1229
+ c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_more_transactions
1231
1230
  ] })
1232
1231
  }
1233
1232
  ) }),
@@ -1235,23 +1234,23 @@ const Eo = ({ total: t }) => {
1235
1234
  oe,
1236
1235
  {
1237
1236
  isOpen: d,
1238
- onClose: () => u(!1),
1239
- title: l.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_transactions,
1240
- children: /* @__PURE__ */ e(Kn, { transaction: S })
1237
+ onClose: () => h(!1),
1238
+ title: c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_transactions,
1239
+ children: /* @__PURE__ */ e(Hn, { transaction: C })
1241
1240
  }
1242
1241
  )
1243
1242
  ] })
1244
1243
  ] });
1245
- }, qo = () => {
1244
+ }, Yo = () => {
1246
1245
  const {
1247
1246
  finstrong: {
1248
1247
  key_indicators_spend: { pay_bills_on_time_drawer: t }
1249
1248
  }
1250
- } = x(), { getSpendingFeeTransactions: o, allTransactions: n } = L();
1249
+ } = S(), { getSpendingFeeTransactions: o, allTransactions: n } = F();
1251
1250
  return m.useEffect(() => {
1252
1251
  o().finally();
1253
- }, []), /* @__PURE__ */ e(z, { children: n.spendingFee.length === 0 ? /* @__PURE__ */ a(
1254
- Y,
1252
+ }, []), /* @__PURE__ */ e(E, { children: n.spendingFee.length === 0 ? /* @__PURE__ */ a(
1253
+ V,
1255
1254
  {
1256
1255
  sx: {
1257
1256
  backgroundColor: "background.paper",
@@ -1264,13 +1263,13 @@ const Eo = ({ total: t }) => {
1264
1263
  children: [
1265
1264
  /* @__PURE__ */ e(ln, { filled: !0, size: 48, sx: { color: "success.main" } }),
1266
1265
  /* @__PURE__ */ a(p, { sx: { alignItems: "center", gap: 4, pt: 24 }, children: [
1267
- /* @__PURE__ */ e(V, { children: t.pay_bills_on_time_zero_fees_title }),
1266
+ /* @__PURE__ */ e(K, { children: t.pay_bills_on_time_zero_fees_title }),
1268
1267
  /* @__PURE__ */ e(M, { variant: "subtitle1", children: t.pay_bills_on_time_zero_fees_description })
1269
1268
  ] })
1270
1269
  ]
1271
1270
  }
1272
1271
  ) : /* @__PURE__ */ a(
1273
- Y,
1272
+ V,
1274
1273
  {
1275
1274
  sx: {
1276
1275
  p: 16,
@@ -1278,13 +1277,13 @@ const Eo = ({ total: t }) => {
1278
1277
  backgroundColor: "background.paper"
1279
1278
  },
1280
1279
  children: [
1281
- /* @__PURE__ */ e(V, { sx: { textAlign: "left", pb: 8 }, children: t.pay_bills_on_time_sticky_fee_count }),
1280
+ /* @__PURE__ */ e(K, { sx: { textAlign: "left", pb: 8 }, children: t.pay_bills_on_time_sticky_fee_count }),
1282
1281
  /* @__PURE__ */ e(
1283
1282
  $e,
1284
1283
  {
1285
1284
  amountColor: "text.primary",
1286
1285
  amountPosition: "flex-start",
1287
- formatDate: (r) => $n(new Date(r * 1e3), zn.MONTH_DAY),
1286
+ formatDate: (r) => Bn(new Date(r * 1e3), Pn.MONTH_DAY),
1288
1287
  secondaryIcon: /* @__PURE__ */ e(dn, { color: "error", filled: !0, size: 12 }),
1289
1288
  transactions: n.spendingFee
1290
1289
  }
@@ -1292,8 +1291,8 @@ const Eo = ({ total: t }) => {
1292
1291
  ]
1293
1292
  }
1294
1293
  ) });
1295
- }, Uo = v(qo), Qo = () => {
1296
- const { healthScore: t } = L(), { finstrong: o } = x(), { key_indicators_spend: n } = o, { pay_bills_on_time_drawer: r } = n, s = Dn(t.spending_fee_transaction_count);
1294
+ }, Xo = v(Yo), qo = () => {
1295
+ const { healthScore: t } = F(), { finstrong: o } = S(), { key_indicators_spend: n } = o, { pay_bills_on_time_drawer: r } = n, s = kn(t.spending_fee_transaction_count);
1297
1296
  return /* @__PURE__ */ a(
1298
1297
  p,
1299
1298
  {
@@ -1312,13 +1311,13 @@ const Eo = ({ total: t }) => {
1312
1311
  " ",
1313
1312
  r.pay_bills_on_time_sticky_fee_count
1314
1313
  ] }),
1315
- /* @__PURE__ */ e(Be, { status: s })
1314
+ /* @__PURE__ */ e(Pe, { status: s })
1316
1315
  ] })
1317
1316
  ]
1318
1317
  }
1319
1318
  );
1320
- }, Zo = v(Qo), Jo = () => {
1321
- const { savingsAndCheckingAccountsBalance: t } = xe(), { finstrong: o } = x();
1319
+ }, Uo = v(qo), Qo = () => {
1320
+ const { savingsAndCheckingAccountsBalance: t } = Se(), { finstrong: o } = S();
1322
1321
  return /* @__PURE__ */ a(p, { gap: 16, sx: { p: 16 }, children: [
1323
1322
  /* @__PURE__ */ e(
1324
1323
  Ce,
@@ -1328,27 +1327,27 @@ const Eo = ({ total: t }) => {
1328
1327
  }
1329
1328
  ),
1330
1329
  /* @__PURE__ */ e(
1331
- Wt,
1330
+ Pt,
1332
1331
  {
1333
- loadAccounts: [Ge.SAVINGS, Ge.CHECKING],
1332
+ loadAccounts: [Ee.SAVINGS, Ee.CHECKING],
1334
1333
  loadMoreLabel: o.more_accounts
1335
1334
  }
1336
1335
  )
1337
1336
  ] });
1338
- }, er = v(Jo), tr = () => {
1339
- const { finstrong: t } = x(), {
1337
+ }, Zo = v(Qo), Jo = () => {
1338
+ const { finstrong: t } = S(), {
1340
1339
  isSpendingInitialized: o,
1341
1340
  healthScore: n,
1342
1341
  allTransactions: r,
1343
1342
  loadSpendTransactions: s,
1344
1343
  loadDebtSpend: i
1345
- } = L();
1344
+ } = F();
1346
1345
  m.useEffect(() => {
1347
1346
  o || (s().finally(), i().finally());
1348
1347
  }, [o]);
1349
- const c = m.useMemo(() => {
1350
- const l = r.spend.map((d) => d.transaction), _ = r.debtSpend.map((d) => d.transaction);
1351
- return [...l, ..._];
1348
+ const l = m.useMemo(() => {
1349
+ const c = r.spend.map((d) => d.transaction), _ = r.debtSpend.map((d) => d.transaction);
1350
+ return [...c, ..._];
1352
1351
  }, [r.spend, r.debtSpend]);
1353
1352
  return o ? /* @__PURE__ */ a(p, { gap: 16, sx: { p: 16 }, children: [
1354
1353
  /* @__PURE__ */ e(
@@ -1358,12 +1357,12 @@ const Eo = ({ total: t }) => {
1358
1357
  title: t.key_indicators_save.drawer_daily_spend
1359
1358
  }
1360
1359
  ),
1361
- /* @__PURE__ */ e($e, { amountColor: "text.primary", transactions: c })
1362
- ] }) : /* @__PURE__ */ e(ee, {});
1363
- }, nr = v(tr), or = () => {
1364
- const [t, o] = m.useState(0), { finstrong: n } = x();
1365
- return /* @__PURE__ */ a(z, { children: [
1366
- /* @__PURE__ */ a(Y, { children: [
1360
+ /* @__PURE__ */ e($e, { amountColor: "text.primary", transactions: l })
1361
+ ] }) : /* @__PURE__ */ e(te, {});
1362
+ }, er = v(Jo), tr = () => {
1363
+ const [t, o] = m.useState(0), { finstrong: n } = S();
1364
+ return /* @__PURE__ */ a(E, { children: [
1365
+ /* @__PURE__ */ a(V, { children: [
1367
1366
  /* @__PURE__ */ a(
1368
1367
  Xe,
1369
1368
  {
@@ -1394,13 +1393,13 @@ const Eo = ({ total: t }) => {
1394
1393
  ]
1395
1394
  }
1396
1395
  ),
1397
- /* @__PURE__ */ e(ce, { index: 0, name: "available-details", value: t, children: /* @__PURE__ */ e(er, {}) }),
1398
- /* @__PURE__ */ e(ce, { index: 1, name: "spending-details", value: t, children: /* @__PURE__ */ e(nr, {}) })
1396
+ /* @__PURE__ */ e(ce, { index: 0, name: "available-details", value: t, children: /* @__PURE__ */ e(Zo, {}) }),
1397
+ /* @__PURE__ */ e(ce, { index: 1, name: "spending-details", value: t, children: /* @__PURE__ */ e(er, {}) })
1399
1398
  ] }),
1400
1399
  /* @__PURE__ */ e(Ue, { chartFor: "savingsOverTime" })
1401
1400
  ] });
1402
- }, rr = v(or), ar = () => {
1403
- const { finstrong: t } = x(), { healthScore: o } = L(), n = o.months_of_cash_on_hand, r = bt(n ? n * 30 : null), s = 183 / 6, i = Math.floor(n), c = Math.round((n - i) * s), l = n / 6 * 100;
1401
+ }, nr = v(tr), or = () => {
1402
+ const { finstrong: t } = S(), { healthScore: o } = F(), n = o.months_of_cash_on_hand, r = yt(n ? n * 30 : null), s = 183 / 6, i = Math.floor(n), l = Math.round((n - i) * s), c = n / 6 * 100;
1404
1403
  return /* @__PURE__ */ e(
1405
1404
  We,
1406
1405
  {
@@ -1432,7 +1431,7 @@ const Eo = ({ total: t }) => {
1432
1431
  }
1433
1432
  }
1434
1433
  ),
1435
- /* @__PURE__ */ e(I, { variant: "caption", children: d })
1434
+ /* @__PURE__ */ e(I, { variant: "XSmall", children: d })
1436
1435
  ]
1437
1436
  },
1438
1437
  d
@@ -1443,14 +1442,14 @@ const Eo = ({ total: t }) => {
1443
1442
  status: r,
1444
1443
  statusBarData: [
1445
1444
  {
1446
- percentage: `${l}%`
1445
+ percentage: `${c}%`
1447
1446
  }
1448
1447
  ],
1449
- value: K(t.key_indicators_save.drawer_progress_bar_value, i, c)
1448
+ value: j(t.key_indicators_save.drawer_progress_bar_value, i, l)
1450
1449
  }
1451
1450
  );
1452
- }, ir = v(ar), sr = () => {
1453
- const { healthScore: t } = L(), { finstrong: o } = x(), n = Oe(t.debt_to_income_ratio), r = ft(n);
1451
+ }, rr = v(or), ar = () => {
1452
+ const { healthScore: t } = F(), { finstrong: o } = S(), n = Oe(t.debt_to_income_ratio), r = bt(n);
1454
1453
  return /* @__PURE__ */ e(
1455
1454
  We,
1456
1455
  {
@@ -1494,7 +1493,7 @@ const Eo = ({ total: t }) => {
1494
1493
  }
1495
1494
  }
1496
1495
  ),
1497
- /* @__PURE__ */ e(I, { sx: { color: "text.primary" }, variant: "caption", children: "30%" })
1496
+ /* @__PURE__ */ e(I, { sx: { color: "text.primary" }, variant: "XSmall", children: "30%" })
1498
1497
  ]
1499
1498
  }
1500
1499
  )
@@ -1510,7 +1509,7 @@ const Eo = ({ total: t }) => {
1510
1509
  justifyContent: "center",
1511
1510
  marginLeft: "auto"
1512
1511
  },
1513
- children: /* @__PURE__ */ e(I, { variant: "body2", children: t.debt_to_income_ratio ? K(
1512
+ children: /* @__PURE__ */ e(I, { variant: "Small", children: t.debt_to_income_ratio ? j(
1514
1513
  o.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_sticky_description,
1515
1514
  n
1516
1515
  ) : "-" })
@@ -1526,11 +1525,11 @@ const Eo = ({ total: t }) => {
1526
1525
  percentage: `${n}%`
1527
1526
  }
1528
1527
  ],
1529
- value: $(t.ninety_day_debt_spend, "0,0.00")
1528
+ value: W(t.ninety_day_debt_spend, "0,0.00")
1530
1529
  }
1531
1530
  );
1532
- }, cr = v(sr), lr = () => {
1533
- const { healthScore: t, allTransactions: o } = L(), { connect: n, finstrong: r } = x(), [s, i] = m.useState(!1);
1531
+ }, ir = v(ar), sr = () => {
1532
+ const { healthScore: t, allTransactions: o } = F(), { connect: n, finstrong: r } = S(), [s, i] = m.useState(!1);
1534
1533
  return /* @__PURE__ */ a(p, { gap: 16, sx: { p: 16 }, children: [
1535
1534
  /* @__PURE__ */ e(
1536
1535
  Ce,
@@ -1542,9 +1541,9 @@ const Eo = ({ total: t }) => {
1542
1541
  ),
1543
1542
  o.income.length ? (
1544
1543
  // TODO: Need to add More Transactions functionality
1545
- /* @__PURE__ */ e($e, { transactions: o.income.map((c) => c.transaction) })
1544
+ /* @__PURE__ */ e($e, { transactions: o.income.map((l) => l.transaction) })
1546
1545
  ) : /* @__PURE__ */ e(
1547
- B,
1546
+ P,
1548
1547
  {
1549
1548
  onClick: () => {
1550
1549
  i(!0);
@@ -1562,8 +1561,8 @@ const Eo = ({ total: t }) => {
1562
1561
  }
1563
1562
  )
1564
1563
  ] });
1565
- }, dr = v(lr), pr = () => {
1566
- const { allTransactions: t, healthScore: o } = L(), { connect: n, finstrong: r } = x(), [s, i] = m.useState(!1);
1564
+ }, cr = v(sr), lr = () => {
1565
+ const { allTransactions: t, healthScore: o } = F(), { connect: n, finstrong: r } = S(), [s, i] = m.useState(!1);
1567
1566
  return /* @__PURE__ */ a(p, { gap: 16, sx: { p: 16 }, children: [
1568
1567
  /* @__PURE__ */ e(
1569
1568
  Ce,
@@ -1579,11 +1578,11 @@ const Eo = ({ total: t }) => {
1579
1578
  $e,
1580
1579
  {
1581
1580
  amountColor: "text.primary",
1582
- transactions: t.debtSpend.map((c) => c.transaction)
1581
+ transactions: t.debtSpend.map((l) => l.transaction)
1583
1582
  }
1584
1583
  )
1585
1584
  ) : /* @__PURE__ */ e(
1586
- B,
1585
+ P,
1587
1586
  {
1588
1587
  onClick: () => {
1589
1588
  i(!0);
@@ -1601,63 +1600,68 @@ const Eo = ({ total: t }) => {
1601
1600
  }
1602
1601
  )
1603
1602
  ] });
1604
- }, _r = v(pr), hr = ({
1603
+ }, dr = v(lr), pr = ({
1605
1604
  color: t,
1606
1605
  data: o,
1607
1606
  series: n,
1608
1607
  style: r,
1609
1608
  ...s
1610
1609
  }) => {
1611
- const i = G(), c = m.useRef(null), { width: l } = eo({
1612
- width: r.width
1613
- });
1610
+ const i = G(), l = m.useRef(null), c = m.useRef(null), [_, d] = m.useState(r.width || 0);
1614
1611
  m.useLayoutEffect(() => {
1615
- const h = new ResizeObserver(() => {
1612
+ d(r.width || 0);
1613
+ }, [r.width]), m.useLayoutEffect(() => {
1614
+ const x = new ResizeObserver(() => {
1616
1615
  window.requestAnimationFrame(() => {
1617
- if (c.current) {
1618
- const { width: y } = c.current.getBoundingClientRect(), f = y / 2, w = c.current.querySelector("text");
1619
- w && w.setAttribute("transform", `translate(${f}, -8)`);
1616
+ if (l.current) {
1617
+ const { width: D } = l.current.getBoundingClientRect(), C = D / 2, g = l.current.querySelector("text");
1618
+ g && g.setAttribute("transform", `translate(${C}, -8)`);
1620
1619
  }
1621
1620
  });
1622
1621
  });
1623
- return c.current && h.observe(c.current), () => {
1624
- c.current && h.unobserve(c.current);
1622
+ return l.current && x.observe(l.current), () => {
1623
+ l.current && x.unobserve(l.current);
1625
1624
  };
1626
1625
  }, []);
1627
- const { formattedComparison: _, formattedMain: d } = o[n.index], u = n.type === 0 ? d : _;
1626
+ const { formattedComparison: h, formattedMain: u } = o[n.index], y = n.type === 0 ? u : h, f = {
1627
+ ...r,
1628
+ transition: "all 0.3s ease-in-out"
1629
+ }, w = `translate(${_ / 2}, -5)`;
1628
1630
  return /* @__PURE__ */ a("g", { children: [
1629
- /* @__PURE__ */ e(at.rect, { ...s, fill: t, ref: c, rx: 2, style: r }),
1631
+ /* @__PURE__ */ e("rect", { ...s, fill: t, ref: l, rx: 2, style: f }),
1630
1632
  /* @__PURE__ */ e(
1631
- at.text,
1633
+ "text",
1632
1634
  {
1633
1635
  fill: i.palette.text.secondary,
1634
1636
  fontSize: 9,
1635
1637
  fontWeight: 400,
1638
+ ref: c,
1639
+ style: { transition: "transform 0.3s ease-in-out" },
1636
1640
  textAnchor: "middle",
1637
- transform: l.to((h) => `translate(${h / 2}, -5)`),
1641
+ transform: w,
1638
1642
  x: r.x,
1639
1643
  y: r.y,
1640
- children: u
1644
+ children: y
1641
1645
  }
1642
1646
  )
1643
1647
  ] });
1644
1648
  }, Te = (t, o = 1e3) => {
1645
1649
  const n = Math.abs(t) >= o ? "0.[0]a" : "0";
1646
- return $(t, n);
1647
- }, $t = ({
1650
+ return W(t, n);
1651
+ }, Wt = ({
1648
1652
  chartFor: t,
1649
1653
  data: o,
1650
1654
  title: n,
1651
1655
  buttonLabel: r,
1652
1656
  onClick: s,
1653
1657
  legendLabelMain: i,
1654
- legendLabelComparison: c,
1655
- totalComparison: l,
1658
+ legendLabelComparison: l,
1659
+ totalComparison: c,
1656
1660
  totalMain: _
1657
1661
  }) => {
1658
- const d = G(), u = Un(d.breakpoints.down("xs")), h = m.useMemo(
1662
+ const d = G(), h = Yn(d.breakpoints.down("xs")), u = m.useMemo(
1659
1663
  () => o.sort((g, b) => g.month - b.month).map((g) => {
1660
- const b = In(g.month), P = {
1664
+ const b = Mn(g.month), L = {
1661
1665
  spending_vs_income: {
1662
1666
  main: g.standard_spend,
1663
1667
  comparison: g.income,
@@ -1673,23 +1677,23 @@ const Eo = ({ total: t }) => {
1673
1677
  };
1674
1678
  return {
1675
1679
  label: b,
1676
- ...P[t]
1680
+ ...L[t]
1677
1681
  };
1678
1682
  }),
1679
1683
  [o, t]
1680
1684
  ), y = {
1681
1685
  dataKey: "label",
1682
1686
  scaleType: "band"
1683
- }, f = Math.max(...h.map((g) => Math.max(g.main, g.comparison))), C = Math.min(...h.map((g) => Math.min(g.main, g.comparison))) === 0 && f === 0 ? 100 : Math.ceil(f * 1.2 / 1e3) * 1e3, D = C / 3, S = {
1687
+ }, f = Math.max(...u.map((g) => Math.max(g.main, g.comparison))), x = Math.min(...u.map((g) => Math.min(g.main, g.comparison))) === 0 && f === 0 ? 100 : Math.ceil(f * 1.2 / 1e3) * 1e3, D = x / 3, C = {
1684
1688
  scaleType: "linear",
1685
1689
  min: 0,
1686
- max: C,
1690
+ max: x,
1687
1691
  tickNumber: 4,
1688
1692
  tickMinStep: D,
1689
- valueFormatter: (g) => g === 0 ? "$0" : $(g, "0.[0]a")
1693
+ valueFormatter: (g) => g === 0 ? "$0" : W(g, "0.[0]a")
1690
1694
  };
1691
1695
  return /* @__PURE__ */ a(
1692
- Y,
1696
+ V,
1693
1697
  {
1694
1698
  sx: {
1695
1699
  px: 16,
@@ -1707,11 +1711,11 @@ const Eo = ({ total: t }) => {
1707
1711
  pb: 8
1708
1712
  },
1709
1713
  children: [
1710
- /* @__PURE__ */ e(V, { children: n }),
1714
+ /* @__PURE__ */ e(K, { children: n }),
1711
1715
  r && /* @__PURE__ */ e(
1712
- B,
1716
+ P,
1713
1717
  {
1714
- endIcon: /* @__PURE__ */ e(Z, {}),
1718
+ endIcon: /* @__PURE__ */ e(J, {}),
1715
1719
  onClick: s,
1716
1720
  size: "small",
1717
1721
  sx: {
@@ -1743,7 +1747,7 @@ const Eo = ({ total: t }) => {
1743
1747
  i,
1744
1748
  " "
1745
1749
  ] }),
1746
- !u && _ && /* @__PURE__ */ e(I, { sx: { fontWeight: 700 }, variant: "subtitle2", children: _ })
1750
+ !h && _ && /* @__PURE__ */ e(I, { sx: { fontWeight: 700 }, variant: "subtitle2", children: _ })
1747
1751
  ] })
1748
1752
  ] }),
1749
1753
  /* @__PURE__ */ a(p, { alignItems: "center", direction: "row", spacing: 8, children: [
@@ -1760,44 +1764,48 @@ const Eo = ({ total: t }) => {
1760
1764
  ),
1761
1765
  /* @__PURE__ */ a(p, { sx: { alignItems: "center", flexDirection: "row" }, children: [
1762
1766
  /* @__PURE__ */ a(I, { variant: "subtitle2", children: [
1763
- c,
1767
+ l,
1764
1768
  " "
1765
1769
  ] }),
1766
- !u && l && /* @__PURE__ */ e(I, { sx: { fontWeight: 700 }, variant: "subtitle2", children: l })
1770
+ !h && c && /* @__PURE__ */ e(I, { sx: { fontWeight: 700 }, variant: "subtitle2", children: c })
1767
1771
  ] })
1768
1772
  ] })
1769
1773
  ] }),
1770
1774
  /* @__PURE__ */ a(
1771
- Jn,
1775
+ qn,
1772
1776
  {
1773
1777
  colors: [`${d.palette.chartMono.chartMono3}`, `${d.palette.chartMono.chartMono5}`],
1774
- dataset: h,
1778
+ dataset: u,
1775
1779
  height: 240,
1776
- margin: { top: 16, bottom: 34, right: 0, left: 50 },
1780
+ margin: { top: 14, bottom: 10, right: 2, left: -2 },
1777
1781
  series: [
1778
1782
  { dataKey: "main", type: "bar" },
1779
1783
  { dataKey: "comparison", type: "bar" }
1780
1784
  ],
1781
1785
  xAxis: [y],
1782
- yAxis: [S],
1786
+ yAxis: [C],
1783
1787
  children: [
1784
1788
  /* @__PURE__ */ e(
1785
- an,
1789
+ Xn,
1786
1790
  {
1787
1791
  slots: {
1788
1792
  bar: (g) => {
1789
- const { ownerState: b, style: P, ...F } = g;
1793
+ const { ownerState: b, ...L } = g;
1790
1794
  return /* @__PURE__ */ e(
1791
- hr,
1795
+ pr,
1792
1796
  {
1793
- ...F,
1797
+ ...L,
1794
1798
  color: b.color,
1795
- data: h,
1799
+ data: u,
1796
1800
  series: {
1797
1801
  index: b.dataIndex,
1798
1802
  type: Number(b.id.toString().split("-").pop())
1799
1803
  },
1800
- style: P
1804
+ style: {
1805
+ x: g.x,
1806
+ y: g.y,
1807
+ width: g.width
1808
+ }
1801
1809
  }
1802
1810
  );
1803
1811
  }
@@ -1805,7 +1813,7 @@ const Eo = ({ total: t }) => {
1805
1813
  }
1806
1814
  ),
1807
1815
  /* @__PURE__ */ e(
1808
- Qn,
1816
+ Un,
1809
1817
  {
1810
1818
  sx: () => ({
1811
1819
  ".MuiChartsAxis-line": {
@@ -1825,7 +1833,7 @@ const Eo = ({ total: t }) => {
1825
1833
  }
1826
1834
  ),
1827
1835
  /* @__PURE__ */ e(
1828
- Zn,
1836
+ Qn,
1829
1837
  {
1830
1838
  sx: () => ({
1831
1839
  ".MuiChartsAxis-line": {
@@ -1850,18 +1858,18 @@ const Eo = ({ total: t }) => {
1850
1858
  ]
1851
1859
  }
1852
1860
  );
1853
- }, ur = () => {
1854
- const { isIncomeInitialized: t, loadDebtSpend: o, loadIncome: n, monthlySummaries: r } = L(), [s, i] = m.useState(0), { finstrong: c } = x();
1861
+ }, _r = () => {
1862
+ const { isIncomeInitialized: t, loadDebtSpend: o, loadIncome: n, monthlySummaries: r } = F(), [s, i] = m.useState(0), { finstrong: l } = S();
1855
1863
  return m.useEffect(() => {
1856
1864
  t || (o().finally(), n().finally());
1857
- }, [t]), t ? /* @__PURE__ */ a(z, { children: [
1858
- /* @__PURE__ */ a(Y, { children: [
1865
+ }, [t]), t ? /* @__PURE__ */ a(E, { children: [
1866
+ /* @__PURE__ */ a(V, { children: [
1859
1867
  /* @__PURE__ */ a(
1860
1868
  Xe,
1861
1869
  {
1862
- "aria-label": c.key_indicators_save.drawer_title,
1870
+ "aria-label": l.key_indicators_save.drawer_title,
1863
1871
  centered: !0,
1864
- onChange: (l, _) => i(_),
1872
+ onChange: (c, _) => i(_),
1865
1873
  selectionFollowsFocus: !0,
1866
1874
  sx: { mb: 0 },
1867
1875
  value: s,
@@ -1872,7 +1880,7 @@ const Eo = ({ total: t }) => {
1872
1880
  {
1873
1881
  "aria-controls": "income-details-tabpanel-0",
1874
1882
  id: "income-details-tab-0",
1875
- label: c.key_indicators_borrow.have_manageable_debt_drawer.income,
1883
+ label: l.key_indicators_borrow.have_manageable_debt_drawer.income,
1876
1884
  sx: { minHeight: 44 }
1877
1885
  }
1878
1886
  ),
@@ -1881,7 +1889,7 @@ const Eo = ({ total: t }) => {
1881
1889
  {
1882
1890
  "aria-controls": "debt-payment-details-tabpanel-1",
1883
1891
  id: "debt-payment-details-tab-1",
1884
- label: c.key_indicators_borrow.have_manageable_debt_drawer.debt_payment,
1892
+ label: l.key_indicators_borrow.have_manageable_debt_drawer.debt_payment,
1885
1893
  sx: { minHeight: 44 }
1886
1894
  }
1887
1895
  )
@@ -1895,7 +1903,7 @@ const Eo = ({ total: t }) => {
1895
1903
  index: 0,
1896
1904
  name: "income-details",
1897
1905
  value: s,
1898
- children: /* @__PURE__ */ e(dr, {})
1906
+ children: /* @__PURE__ */ e(cr, {})
1899
1907
  }
1900
1908
  ),
1901
1909
  /* @__PURE__ */ e(
@@ -1905,29 +1913,29 @@ const Eo = ({ total: t }) => {
1905
1913
  index: 1,
1906
1914
  name: "debt-payment-details",
1907
1915
  value: s,
1908
- children: /* @__PURE__ */ e(_r, {})
1916
+ children: /* @__PURE__ */ e(dr, {})
1909
1917
  }
1910
1918
  )
1911
1919
  ] }),
1912
- r.length ? /* @__PURE__ */ a(z, { children: [
1920
+ r.length ? /* @__PURE__ */ a(E, { children: [
1913
1921
  /* @__PURE__ */ e(
1914
- $t,
1922
+ Wt,
1915
1923
  {
1916
1924
  chartFor: "debt_payment_vs_income",
1917
1925
  data: r,
1918
- legendLabelComparison: c.key_indicators_borrow.have_manageable_debt_drawer.debt_payment,
1919
- legendLabelMain: c.key_indicators_borrow.have_manageable_debt_drawer.income,
1920
- title: c.key_indicators_borrow.have_manageable_debt_drawer.debt_payment
1926
+ legendLabelComparison: l.key_indicators_borrow.have_manageable_debt_drawer.debt_payment,
1927
+ legendLabelMain: l.key_indicators_borrow.have_manageable_debt_drawer.income,
1928
+ title: l.key_indicators_borrow.have_manageable_debt_drawer.debt_payment
1921
1929
  }
1922
1930
  ),
1923
1931
  /* @__PURE__ */ e(Ue, { chartFor: "debtOverTime" })
1924
- ] }) : /* @__PURE__ */ a(z, { children: [
1932
+ ] }) : /* @__PURE__ */ a(E, { children: [
1925
1933
  /* @__PURE__ */ e(
1926
- Re,
1934
+ Fe,
1927
1935
  {
1928
- header: c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_double_bar_chart_empty_state_header,
1936
+ header: l.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_double_bar_chart_empty_state_header,
1929
1937
  icon: "multiline_chart",
1930
- subText: c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_double_bar_chart_empty_state_description,
1938
+ subText: l.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_double_bar_chart_empty_state_description,
1931
1939
  sx: {
1932
1940
  backgroundColor: "background.paper",
1933
1941
  borderRadius: "8px",
@@ -1939,11 +1947,11 @@ const Eo = ({ total: t }) => {
1939
1947
  }
1940
1948
  ),
1941
1949
  /* @__PURE__ */ e(
1942
- Re,
1950
+ Fe,
1943
1951
  {
1944
- header: c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_line_chart_empty_state_header,
1952
+ header: l.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_line_chart_empty_state_header,
1945
1953
  icon: "multiline_chart",
1946
- subText: c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_line_chart_empty_state_description,
1954
+ subText: l.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_line_chart_empty_state_description,
1947
1955
  sx: {
1948
1956
  backgroundColor: "background.paper",
1949
1957
  borderRadius: "8px",
@@ -1955,9 +1963,9 @@ const Eo = ({ total: t }) => {
1955
1963
  }
1956
1964
  )
1957
1965
  ] })
1958
- ] }) : /* @__PURE__ */ e(ee, {});
1959
- }, mr = v(ur), gr = () => {
1960
- const { healthScore: t } = L(), { finstrong: o } = x(), n = Oe(t.spend_to_income_ratio), r = n ?? 0, s = Object.keys(t).length === 0, i = xt(n), c = {
1966
+ ] }) : /* @__PURE__ */ e(te, {});
1967
+ }, hr = v(_r), ur = () => {
1968
+ const { healthScore: t } = F(), { finstrong: o } = S(), n = Oe(t.spend_to_income_ratio), r = n ?? 0, s = Object.keys(t).length === 0, i = ft(n), l = {
1961
1969
  GOOD: [{ percentage: `${r}%` }],
1962
1970
  FAIR: [{ percentage: "100%" }, { percentage: `${r - 100}%` }],
1963
1971
  OFF_TRACK: [{ percentage: "100%" }, { percentage: `${r - 100}%` }],
@@ -1977,7 +1985,7 @@ const Eo = ({ total: t }) => {
1977
1985
  },
1978
1986
  children: [
1979
1987
  /* @__PURE__ */ a(I, { variant: "body2", children: [
1980
- t.ninety_day_income <= 0 ? "-" : $(t.ninety_day_income, "0,0.00"),
1988
+ t.ninety_day_income <= 0 ? "-" : W(t.ninety_day_income, "0,0.00"),
1981
1989
  " ",
1982
1990
  o?.key_indicators_spend.spend_less_than_you_make_drawer.income
1983
1991
  ] }),
@@ -1991,53 +1999,53 @@ const Eo = ({ total: t }) => {
1991
1999
  ),
1992
2000
  label: o?.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_sticky_description,
1993
2001
  status: i,
1994
- statusBarData: c,
1995
- value: s ? "$0" : $(t.ninety_day_spend, "0,0.00")
2002
+ statusBarData: l,
2003
+ value: s ? "$0" : W(t.ninety_day_spend, "0,0.00")
1996
2004
  }
1997
2005
  );
1998
- }, yr = v(gr), br = () => {
1999
- const { accounts: t } = xe(), { categories: o, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: r } = Ke(), { monthlySummaries: s, handleFinstrongWidgetPrimaryCtaClick: i } = L(), { appDataStore: c } = Rn(), { finstrong: l, goals: _, spending: d } = x(), u = G(), [h, y] = m.useState("");
2006
+ }, mr = v(ur), gr = () => {
2007
+ const { accounts: t } = Se(), { categories: o, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: r } = Ke(), { monthlySummaries: s, handleFinstrongWidgetPrimaryCtaClick: i } = F(), { appDataStore: l } = On(), { finstrong: c, goals: _, spending: d } = S(), h = G(), [u, y] = m.useState("");
2000
2008
  m.useEffect(() => {
2001
2009
  r(
2002
2010
  t,
2003
- At(/* @__PURE__ */ new Date()),
2004
- Tt(/* @__PURE__ */ new Date())
2011
+ It(/* @__PURE__ */ new Date()),
2012
+ At(/* @__PURE__ */ new Date())
2005
2013
  ).finally();
2006
2014
  }, [t]);
2007
2015
  const f = m.useMemo(
2008
- () => to(o, _, u, n),
2016
+ () => Zn(o, _, h, n),
2009
2017
  [o, n]
2010
- ), w = (S) => {
2011
- y(h === S ? "" : S);
2012
- }, { totalSpending: C, totalIncome: D } = m.useMemo(() => s?.reduce(
2013
- (S, { standard_spend: g = 0, income: b = 0 }) => ({
2014
- totalSpending: S.totalSpending + g,
2015
- totalIncome: S.totalIncome + b
2018
+ ), w = (C) => {
2019
+ y(u === C ? "" : C);
2020
+ }, { totalSpending: x, totalIncome: D } = m.useMemo(() => s?.reduce(
2021
+ (C, { standard_spend: g = 0, income: b = 0 }) => ({
2022
+ totalSpending: C.totalSpending + g,
2023
+ totalIncome: C.totalIncome + b
2016
2024
  }),
2017
2025
  { totalSpending: 0, totalIncome: 0 }
2018
2026
  ), [s]);
2019
2027
  return /* @__PURE__ */ a(p, { sx: { gap: 24 }, children: [
2020
2028
  s.length ? /* @__PURE__ */ e(
2021
- $t,
2029
+ Wt,
2022
2030
  {
2023
- ...c.appData.client_profile?.allow_trends_widget && {
2024
- buttonLabel: l.key_indicators_spend.spend_less_than_you_make_drawer.view_more
2031
+ ...l.appData.client_profile?.allow_trends_widget && {
2032
+ buttonLabel: c.key_indicators_spend.spend_less_than_you_make_drawer.view_more
2025
2033
  },
2026
2034
  chartFor: "spending_vs_income",
2027
2035
  data: s,
2028
- legendLabelComparison: l.key_indicators_spend.spend_less_than_you_make_drawer.income,
2029
- legendLabelMain: l.key_indicators_spend.spend_less_than_you_make_drawer.spending,
2036
+ legendLabelComparison: c.key_indicators_spend.spend_less_than_you_make_drawer.income,
2037
+ legendLabelMain: c.key_indicators_spend.spend_less_than_you_make_drawer.spending,
2030
2038
  onClick: () => i("trends")(),
2031
- title: l.key_indicators_spend.spend_less_than_you_make_drawer.trends,
2032
- totalComparison: $(D, "0,0.00"),
2033
- totalMain: $(C, "0,0.00")
2039
+ title: c.key_indicators_spend.spend_less_than_you_make_drawer.trends,
2040
+ totalComparison: W(D, "0,0.00"),
2041
+ totalMain: W(x, "0,0.00")
2034
2042
  }
2035
2043
  ) : /* @__PURE__ */ e(
2036
- Re,
2044
+ Fe,
2037
2045
  {
2038
- header: l.key_indicators_spend.spend_less_than_you_make_drawer.trends_zero_state_title,
2046
+ header: c.key_indicators_spend.spend_less_than_you_make_drawer.trends_zero_state_title,
2039
2047
  icon: "multiline_chart",
2040
- subText: l.key_indicators_spend.spend_less_than_you_make_drawer.trends_zero_state_description,
2048
+ subText: c.key_indicators_spend.spend_less_than_you_make_drawer.trends_zero_state_description,
2041
2049
  sx: {
2042
2050
  backgroundColor: "background.paper",
2043
2051
  borderRadius: "8px",
@@ -2054,7 +2062,7 @@ const Eo = ({ total: t }) => {
2054
2062
  }
2055
2063
  ),
2056
2064
  f ? /* @__PURE__ */ a(
2057
- Y,
2065
+ V,
2058
2066
  {
2059
2067
  sx: {
2060
2068
  px: 16,
@@ -2072,11 +2080,11 @@ const Eo = ({ total: t }) => {
2072
2080
  pb: 8
2073
2081
  },
2074
2082
  children: [
2075
- /* @__PURE__ */ e(V, { children: l.key_indicators_spend.spend_less_than_you_make_drawer.spending }),
2076
- c.appData.client_profile?.allow_spending_widget && /* @__PURE__ */ e(
2077
- B,
2083
+ /* @__PURE__ */ e(K, { children: c.key_indicators_spend.spend_less_than_you_make_drawer.spending }),
2084
+ l.appData.client_profile?.allow_spending_widget && /* @__PURE__ */ e(
2085
+ P,
2078
2086
  {
2079
- endIcon: /* @__PURE__ */ e(Z, {}),
2087
+ endIcon: /* @__PURE__ */ e(J, {}),
2080
2088
  onClick: () => i("spending")(),
2081
2089
  size: "small",
2082
2090
  sx: {
@@ -2084,7 +2092,7 @@ const Eo = ({ total: t }) => {
2084
2092
  height: 24
2085
2093
  },
2086
2094
  variant: "text",
2087
- children: l.key_indicators_spend.spend_less_than_you_make_drawer.view_more
2095
+ children: c.key_indicators_spend.spend_less_than_you_make_drawer.view_more
2088
2096
  }
2089
2097
  )
2090
2098
  ]
@@ -2092,31 +2100,31 @@ const Eo = ({ total: t }) => {
2092
2100
  ),
2093
2101
  /* @__PURE__ */ a(p, { sx: { gap: 12, py: 16, flexDirection: "row", justifyContent: "center" }, children: [
2094
2102
  /* @__PURE__ */ e(
2095
- no,
2103
+ Jn,
2096
2104
  {
2097
2105
  data: f,
2098
2106
  onSelected: w,
2099
- selectedId: h,
2107
+ selectedId: u,
2100
2108
  totalLabel: d.total_spending
2101
2109
  }
2102
2110
  ),
2103
2111
  /* @__PURE__ */ e(
2104
- oo,
2112
+ eo,
2105
2113
  {
2106
2114
  data: f,
2107
2115
  onSelected: w,
2108
- selectedId: h
2116
+ selectedId: u
2109
2117
  }
2110
2118
  )
2111
2119
  ] })
2112
2120
  ]
2113
2121
  }
2114
2122
  ) : /* @__PURE__ */ e(
2115
- Re,
2123
+ Fe,
2116
2124
  {
2117
- header: l.key_indicators_spend.spend_less_than_you_make_drawer.spending_zero_state_title,
2125
+ header: c.key_indicators_spend.spend_less_than_you_make_drawer.spending_zero_state_title,
2118
2126
  icon: "donut_small",
2119
- subText: l.key_indicators_spend.spend_less_than_you_make_drawer.spending_zero_state_description,
2127
+ subText: c.key_indicators_spend.spend_less_than_you_make_drawer.spending_zero_state_description,
2120
2128
  sx: {
2121
2129
  backgroundColor: "background.paper",
2122
2130
  borderRadius: "8px",
@@ -2133,17 +2141,17 @@ const Eo = ({ total: t }) => {
2133
2141
  }
2134
2142
  )
2135
2143
  ] });
2136
- }, fr = v(br), xr = ({
2144
+ }, yr = v(gr), br = ({
2137
2145
  drawerFor: t,
2138
2146
  isOpen: o,
2139
2147
  onClose: n
2140
2148
  }) => {
2141
- const { finstrong: r } = x(), i = {
2149
+ const { finstrong: r } = S(), i = {
2142
2150
  spendLessThanYouMake: {
2143
2151
  title: r.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_title,
2144
2152
  description: r.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_description,
2145
- stickyComponent: /* @__PURE__ */ e(yr, {}),
2146
- content: /* @__PURE__ */ e(fr, {}),
2153
+ stickyComponent: /* @__PURE__ */ e(mr, {}),
2154
+ content: /* @__PURE__ */ e(yr, {}),
2147
2155
  drawerType: "connectDrawer",
2148
2156
  connectTitle: r.connect_your_accounts,
2149
2157
  connectDescription: r.connect_more_accounts_to_unlock_a_fuller_understanding_of_your_finances
@@ -2151,16 +2159,16 @@ const Eo = ({ total: t }) => {
2151
2159
  payBillsOnTime: {
2152
2160
  title: r.key_indicators_spend.pay_bills_on_time_drawer.pay_bills_on_time_title,
2153
2161
  description: r.key_indicators_spend.pay_bills_on_time_drawer.pay_bills_on_time_description,
2154
- stickyComponent: /* @__PURE__ */ e(Zo, {}),
2155
- content: /* @__PURE__ */ e(Uo, {}),
2162
+ stickyComponent: /* @__PURE__ */ e(Uo, {}),
2163
+ content: /* @__PURE__ */ e(Xo, {}),
2156
2164
  drawerType: "connectDrawer",
2157
2165
  connectTitle: r.connect_your_accounts,
2158
2166
  connectDescription: r.connect_more_accounts_to_unlock_a_fuller_understanding_of_your_finances
2159
2167
  },
2160
2168
  maintainEmergencySavings: {
2161
- content: /* @__PURE__ */ e(jo, {}),
2169
+ content: /* @__PURE__ */ e(Ho, {}),
2162
2170
  description: r.maintain_emergency_savings_description,
2163
- stickyComponent: /* @__PURE__ */ e(Xo, {}),
2171
+ stickyComponent: /* @__PURE__ */ e(Vo, {}),
2164
2172
  title: r.maintain_emergency_savings_title,
2165
2173
  drawerType: "connectDrawer",
2166
2174
  connectTitle: r.connect_your_accounts,
@@ -2169,30 +2177,30 @@ const Eo = ({ total: t }) => {
2169
2177
  haveManageableDebt: {
2170
2178
  title: r.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_title,
2171
2179
  description: r.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_description,
2172
- stickyComponent: /* @__PURE__ */ e(cr, {}),
2173
- content: /* @__PURE__ */ e(mr, {}),
2180
+ stickyComponent: /* @__PURE__ */ e(ir, {}),
2181
+ content: /* @__PURE__ */ e(hr, {}),
2174
2182
  drawerType: "connectDrawer",
2175
2183
  connectTitle: r.dont_see_all_your_accounts,
2176
2184
  connectDescription: r.connect_more_accounts_to_view_more_accurate_financial_picture
2177
2185
  },
2178
2186
  haveAGoodCreditScore: {
2179
- title: /* @__PURE__ */ e(Wo, {}),
2187
+ title: /* @__PURE__ */ e(Bo, {}),
2180
2188
  description: r.credit_score_description,
2181
2189
  stickyComponent: null,
2182
- content: /* @__PURE__ */ e(Po, {})
2190
+ content: /* @__PURE__ */ e(Fo, {})
2183
2191
  },
2184
2192
  saveEnoughToLiveOn: {
2185
2193
  title: r.key_indicators_save.drawer_title,
2186
2194
  description: r.key_indicators_save.drawer_description,
2187
- stickyComponent: /* @__PURE__ */ e(ir, {}),
2188
- content: /* @__PURE__ */ e(rr, {}),
2195
+ stickyComponent: /* @__PURE__ */ e(rr, {}),
2196
+ content: /* @__PURE__ */ e(nr, {}),
2189
2197
  drawerType: "connectDrawer",
2190
2198
  connectTitle: r.dont_see_all_your_accounts,
2191
2199
  connectDescription: r.connect_more_accounts_to_view_more_accurate_financial_picture
2192
2200
  }
2193
2201
  }[t];
2194
2202
  return /* @__PURE__ */ e(
2195
- Pt,
2203
+ Lt,
2196
2204
  {
2197
2205
  connectDescription: i?.connectDescription,
2198
2206
  connectTitle: i?.connectTitle,
@@ -2207,22 +2215,22 @@ const Eo = ({ total: t }) => {
2207
2215
  children: /* @__PURE__ */ e(p, { sx: { gap: 16 }, children: i.content })
2208
2216
  }
2209
2217
  );
2210
- }, Cr = v(xr), fe = ({
2218
+ }, fr = v(br), xe = ({
2211
2219
  drawerFor: t,
2212
2220
  title: o,
2213
2221
  description: n,
2214
2222
  cardState: r = "MISSING"
2215
2223
  }) => {
2216
- const { finstrong: s } = x(), [i, c] = m.useState(!1), l = (_) => {
2217
- (_.key === "Enter" || _.key === " ") && (_.preventDefault(), c(!0));
2224
+ const { finstrong: s } = S(), [i, l] = m.useState(!1), c = (_) => {
2225
+ (_.key === "Enter" || _.key === " ") && (_.preventDefault(), l(!0));
2218
2226
  };
2219
- return /* @__PURE__ */ a(z, { children: [
2227
+ return /* @__PURE__ */ a(E, { children: [
2220
2228
  /* @__PURE__ */ a(
2221
2229
  p,
2222
2230
  {
2223
2231
  "aria-label": `${s.key_indicators_open} ${o}`,
2224
- onClick: () => c(!0),
2225
- onKeyDown: l,
2232
+ onClick: () => l(!0),
2233
+ onKeyDown: c,
2226
2234
  role: "button",
2227
2235
  sx: {
2228
2236
  alignItems: "center",
@@ -2240,42 +2248,42 @@ const Eo = ({ total: t }) => {
2240
2248
  /* @__PURE__ */ a(p, { sx: { gap: 8, minWidth: 0 }, children: [
2241
2249
  /* @__PURE__ */ a(p, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
2242
2250
  /* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: "body1", children: o }),
2243
- /* @__PURE__ */ e(Be, { status: r })
2251
+ /* @__PURE__ */ e(Pe, { status: r })
2244
2252
  ] }),
2245
2253
  /* @__PURE__ */ e(M, { color: "secondary", variant: "subtitle2", children: n })
2246
2254
  ] }),
2247
- /* @__PURE__ */ e(Z, { color: "secondary", size: 24 })
2255
+ /* @__PURE__ */ e(J, { color: "secondary", size: 24 })
2248
2256
  ]
2249
2257
  }
2250
2258
  ),
2251
2259
  /* @__PURE__ */ e(
2252
- Cr,
2260
+ fr,
2253
2261
  {
2254
2262
  drawerFor: t,
2255
2263
  isOpen: i,
2256
- onClose: () => c(!1)
2264
+ onClose: () => l(!1)
2257
2265
  }
2258
2266
  )
2259
2267
  ] });
2260
- }, Sr = () => {
2261
- const { finstrong: t } = x(), { key_indicators_spend: o } = t, { healthScore: n } = L(), r = (c) => {
2262
- const l = xt(c), _ = {
2268
+ }, xr = () => {
2269
+ const { finstrong: t } = S(), { key_indicators_spend: o } = t, { healthScore: n } = F(), r = (l) => {
2270
+ const c = ft(l), _ = {
2263
2271
  GOOD: o.ratio_good_description,
2264
2272
  FAIR: o.ratio_fair_description,
2265
2273
  OFF_TRACK: o.ratio_off_track_description,
2266
2274
  MISSING: o.ratio_missing_description
2267
- }, d = l === "MISSING" ? _[l] : K(_[l], c);
2275
+ }, d = c === "MISSING" ? _[c] : j(_[c], l);
2268
2276
  return {
2269
- cardState: l,
2277
+ cardState: c,
2270
2278
  description: d,
2271
2279
  title: o.ratio_card_title
2272
2280
  };
2273
2281
  }, { spendToIncomeRatio: s, spendFeeCount: i } = m.useMemo(() => {
2274
- const c = n.spend_to_income_ratio !== null ? Math.round(n.spend_to_income_ratio * 100) : null, l = r(c), _ = An(
2282
+ const l = n.spend_to_income_ratio !== null ? Math.round(n.spend_to_income_ratio * 100) : null, c = r(l), _ = Dn(
2275
2283
  n.spending_fee_transaction_count,
2276
2284
  o
2277
2285
  );
2278
- return { spendToIncomeRatio: l, spendFeeCount: _ };
2286
+ return { spendToIncomeRatio: c, spendFeeCount: _ };
2279
2287
  }, [
2280
2288
  n.spend_to_income_ratio,
2281
2289
  n.spending_fee_transaction_count,
@@ -2284,7 +2292,7 @@ const Eo = ({ total: t }) => {
2284
2292
  ]);
2285
2293
  return /* @__PURE__ */ a(p, { sx: { gap: 24, p: 8, pt: 24 }, children: [
2286
2294
  /* @__PURE__ */ e(
2287
- fe,
2295
+ xe,
2288
2296
  {
2289
2297
  cardState: s.cardState,
2290
2298
  description: s.description,
@@ -2293,7 +2301,7 @@ const Eo = ({ total: t }) => {
2293
2301
  }
2294
2302
  ),
2295
2303
  /* @__PURE__ */ e(
2296
- fe,
2304
+ xe,
2297
2305
  {
2298
2306
  cardState: i.cardState,
2299
2307
  description: i.description,
@@ -2302,38 +2310,38 @@ const Eo = ({ total: t }) => {
2302
2310
  }
2303
2311
  )
2304
2312
  ] });
2305
- }, vr = v(Sr), wr = () => {
2306
- const { healthScore: t } = L(), { finstrong: o } = x(), { key_indicators_save: n } = o, r = (l) => {
2307
- const _ = bt(l), d = {
2313
+ }, Sr = v(xr), Cr = () => {
2314
+ const { healthScore: t } = F(), { finstrong: o } = S(), { key_indicators_save: n } = o, r = (c) => {
2315
+ const _ = yt(c), d = {
2308
2316
  GOOD: n.days_of_cash_good_description,
2309
2317
  FAIR: n.days_of_cash_fair_description,
2310
2318
  OFF_TRACK: n.days_of_cash_off_track_description,
2311
2319
  MISSING: n.days_of_cash_missing_description
2312
- }, u = _ === "MISSING" ? d[_] : K(d[_], l);
2320
+ }, h = _ === "MISSING" ? d[_] : j(d[_], c);
2313
2321
  return {
2314
2322
  cardState: _,
2315
- description: u,
2323
+ description: h,
2316
2324
  title: n.days_of_cash_title
2317
2325
  };
2318
- }, s = (l) => {
2319
- const _ = yt(l), d = {
2326
+ }, s = (c) => {
2327
+ const _ = gt(c), d = {
2320
2328
  GOOD: n.emergency_savings_good_description,
2321
2329
  FAIR: n.emergency_savings_fair_description,
2322
2330
  OFF_TRACK: n.emergency_savings_off_track_description,
2323
2331
  MISSING: n.emergency_savings_missing_description
2324
2332
  };
2325
- let u;
2326
- return _ === "FAIR" && l !== null ? u = K(
2333
+ let h;
2334
+ return _ === "FAIR" && c !== null ? h = j(
2327
2335
  d[_],
2328
- $(l, "0,0.00")
2329
- ) : u = d[_], {
2336
+ W(c, "0,0.00")
2337
+ ) : h = d[_], {
2330
2338
  cardState: _,
2331
- description: u,
2339
+ description: h,
2332
2340
  title: n.emergency_savings_title
2333
2341
  };
2334
- }, { daysOfCashOnHand: i, emergencySavings: c } = m.useMemo(() => {
2335
- const l = t.months_of_cash_on_hand !== null ? Math.round(t.months_of_cash_on_hand * 30) : null, _ = r(l), d = t.emergency_savings_on_hand !== null ? Math.round(t.emergency_savings_on_hand) : null, u = s(d);
2336
- return { daysOfCashOnHand: _, emergencySavings: u };
2342
+ }, { daysOfCashOnHand: i, emergencySavings: l } = m.useMemo(() => {
2343
+ const c = t.months_of_cash_on_hand !== null ? Math.round(t.months_of_cash_on_hand * 30) : null, _ = r(c), d = t.emergency_savings_on_hand !== null ? Math.round(t.emergency_savings_on_hand) : null, h = s(d);
2344
+ return { daysOfCashOnHand: _, emergencySavings: h };
2337
2345
  }, [
2338
2346
  t.months_of_cash_on_hand,
2339
2347
  t.emergency_savings_on_hand,
@@ -2342,7 +2350,7 @@ const Eo = ({ total: t }) => {
2342
2350
  ]);
2343
2351
  return /* @__PURE__ */ a(p, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
2344
2352
  /* @__PURE__ */ e(
2345
- fe,
2353
+ xe,
2346
2354
  {
2347
2355
  cardState: i.cardState,
2348
2356
  description: i.description,
@@ -2351,70 +2359,70 @@ const Eo = ({ total: t }) => {
2351
2359
  }
2352
2360
  ),
2353
2361
  /* @__PURE__ */ e(
2354
- fe,
2362
+ xe,
2355
2363
  {
2356
- cardState: c.cardState,
2357
- description: c.description,
2364
+ cardState: l.cardState,
2365
+ description: l.description,
2358
2366
  drawerFor: de.MaintainEmergencySavings,
2359
- title: c.title
2367
+ title: l.title
2360
2368
  }
2361
2369
  )
2362
2370
  ] });
2363
- }, kr = v(wr), Mr = () => {
2364
- const { healthScore: t } = L(), { finstrong: o } = x(), { key_indicators_borrow: n } = o, { user: r } = J(), s = (_) => {
2365
- const d = ft(_), u = {
2371
+ }, vr = v(Cr), wr = () => {
2372
+ const { healthScore: t } = F(), { finstrong: o } = S(), { key_indicators_borrow: n } = o, { user: r } = ee(), s = (_) => {
2373
+ const d = bt(_), h = {
2366
2374
  GOOD: n.manage_debit_good_description,
2367
2375
  FAIR: n.manage_debit_fair_description,
2368
2376
  OFF_TRACK: n.manage_debit_off_track_description,
2369
2377
  MISSING: n.manage_debit_missing_description
2370
- }, h = d === "FAIR" || d === "OFF_TRACK" ? K(u[d], _) : u[d];
2378
+ }, u = d === "FAIR" || d === "OFF_TRACK" ? j(h[d], _) : h[d];
2371
2379
  return {
2372
2380
  cardState: d,
2373
- description: h,
2381
+ description: u,
2374
2382
  title: n.manage_debit_title
2375
2383
  };
2376
2384
  }, i = (_) => {
2377
- const d = gt(_), u = {
2385
+ const d = mt(_), h = {
2378
2386
  GOOD: n.credit_score_good_description,
2379
2387
  FAIR: n.credit_score_fair_description,
2380
2388
  OFF_TRACK: n.credit_score_off_track_description,
2381
2389
  MISSING: n.credit_score_missing_description
2382
- }, h = d === "MISSING" ? u[d] : K(u[d], _);
2390
+ }, u = d === "MISSING" ? h[d] : j(h[d], _);
2383
2391
  return {
2384
2392
  cardState: d,
2385
- description: h,
2393
+ description: u,
2386
2394
  title: n.credit_score_title
2387
2395
  };
2388
- }, { manageDebtStatus: c, creditScoreStatus: l } = m.useMemo(() => {
2389
- const _ = t.debt_to_income_ratio !== null ? Math.round(t.debt_to_income_ratio * 100) : null, d = s(_), u = i(r.credit_score || null);
2396
+ }, { manageDebtStatus: l, creditScoreStatus: c } = m.useMemo(() => {
2397
+ const _ = t.debt_to_income_ratio !== null ? Math.round(t.debt_to_income_ratio * 100) : null, d = s(_), h = i(r.credit_score || null);
2390
2398
  return {
2391
2399
  manageDebtStatus: d,
2392
- creditScoreStatus: u
2400
+ creditScoreStatus: h
2393
2401
  };
2394
2402
  }, [t.debt_to_income_ratio, r.credit_score, n, o]);
2395
2403
  return /* @__PURE__ */ a(p, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
2396
2404
  /* @__PURE__ */ e(
2397
- fe,
2405
+ xe,
2398
2406
  {
2399
- cardState: c.cardState,
2400
- description: c.description,
2407
+ cardState: l.cardState,
2408
+ description: l.description,
2401
2409
  drawerFor: de.HaveManageableDebt,
2402
- title: c.title
2410
+ title: l.title
2403
2411
  }
2404
2412
  ),
2405
2413
  /* @__PURE__ */ e(
2406
- fe,
2414
+ xe,
2407
2415
  {
2408
- cardState: l.cardState,
2409
- description: l.description,
2416
+ cardState: c.cardState,
2417
+ description: c.description,
2410
2418
  drawerFor: de.HaveAGoodCreditScore,
2411
- title: l.title
2419
+ title: c.title
2412
2420
  }
2413
2421
  )
2414
2422
  ] });
2415
- }, Dr = v(Mr), Ir = () => {
2416
- const [t, o] = m.useState(0), { finstrong: n } = x();
2417
- return /* @__PURE__ */ a(z, { children: [
2423
+ }, kr = v(wr), Mr = () => {
2424
+ const [t, o] = m.useState(0), { finstrong: n } = S();
2425
+ return /* @__PURE__ */ a(E, { children: [
2418
2426
  /* @__PURE__ */ a(
2419
2427
  Xe,
2420
2428
  {
@@ -2468,22 +2476,22 @@ const Eo = ({ total: t }) => {
2468
2476
  ]
2469
2477
  }
2470
2478
  ),
2471
- /* @__PURE__ */ e(ce, { index: 0, name: "spend-details", value: t, children: /* @__PURE__ */ e(vr, {}) }),
2472
- /* @__PURE__ */ e(ce, { index: 1, name: "save-details", value: t, children: /* @__PURE__ */ e(kr, {}) }),
2473
- /* @__PURE__ */ e(ce, { index: 2, name: "borrow-details", value: t, children: /* @__PURE__ */ e(Dr, {}) })
2479
+ /* @__PURE__ */ e(ce, { index: 0, name: "spend-details", value: t, children: /* @__PURE__ */ e(Sr, {}) }),
2480
+ /* @__PURE__ */ e(ce, { index: 1, name: "save-details", value: t, children: /* @__PURE__ */ e(vr, {}) }),
2481
+ /* @__PURE__ */ e(ce, { index: 2, name: "borrow-details", value: t, children: /* @__PURE__ */ e(kr, {}) })
2474
2482
  ] });
2475
- }, Ar = v(Ir), Tr = ({ onClick: t }) => {
2476
- const { finstrong: o } = x(), { isCopyLoaded: n } = q();
2483
+ }, Dr = v(Mr), Ir = ({ onClick: t }) => {
2484
+ const { finstrong: o } = S(), { isCopyLoaded: n } = q();
2477
2485
  return n ? /* @__PURE__ */ a(p, { sx: { alignItems: "center", gap: 12, pt: 12, pb: 32 }, children: [
2478
2486
  /* @__PURE__ */ e(_t, { size: 48 }),
2479
2487
  /* @__PURE__ */ a(p, { sx: { alignItems: "center", gap: 4, textAlign: "center" }, children: [
2480
- /* @__PURE__ */ e(V, { children: o.missing_data_title }),
2488
+ /* @__PURE__ */ e(K, { children: o.missing_data_title }),
2481
2489
  /* @__PURE__ */ e(M, { sx: { width: { sm: 348 } }, variant: "subtitle1", children: o.missing_data_description })
2482
2490
  ] }),
2483
2491
  /* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(
2484
- B,
2492
+ P,
2485
2493
  {
2486
- endIcon: /* @__PURE__ */ e(Z, {}),
2494
+ endIcon: /* @__PURE__ */ e(J, {}),
2487
2495
  onClick: t,
2488
2496
  size: "small",
2489
2497
  sx: {
@@ -2496,61 +2504,61 @@ const Eo = ({ total: t }) => {
2496
2504
  children: o.connect_more_accounts_button
2497
2505
  }
2498
2506
  ) })
2499
- ] }) : /* @__PURE__ */ e(ee, {});
2500
- }, Or = v(Tr), Fr = ({
2507
+ ] }) : /* @__PURE__ */ e(te, {});
2508
+ }, Ar = v(Ir), Tr = ({
2501
2509
  firstDay: t,
2502
2510
  frequency: o,
2503
2511
  secondDay: n,
2504
2512
  incomeTransactions: r,
2505
2513
  setCurrentStep: s,
2506
2514
  setFirstDay: i,
2507
- setFrequency: c,
2508
- setSecondDay: l,
2515
+ setFrequency: l,
2516
+ setSecondDay: c,
2509
2517
  transaction: _
2510
2518
  }) => {
2511
- const { finstrong: d } = x();
2519
+ const { finstrong: d } = S();
2512
2520
  return /* @__PURE__ */ a(m.Fragment, { children: [
2513
2521
  /* @__PURE__ */ a(p, { children: [
2514
- !!r.length && /* @__PURE__ */ e(k, { sx: { pb: 24 }, children: r.reduce((u, h, y) => {
2515
- if (h.guid === _.guid) return u;
2516
- const f = Vn(y, r), w = Yn(y, r);
2517
- return u.push(
2522
+ !!r.length && /* @__PURE__ */ e(k, { sx: { pb: 24 }, children: r.reduce((h, u, y) => {
2523
+ if (u.guid === _.guid) return h;
2524
+ const f = Nn(y, r), w = jn(y, r);
2525
+ return h.push(
2518
2526
  /* @__PURE__ */ a(m.Fragment, { children: [
2519
- f && /* @__PURE__ */ e(Xn, { children: It(h.date) }),
2520
- /* @__PURE__ */ e(qn, { transaction: h }),
2527
+ f && /* @__PURE__ */ e(Kn, { children: Dt(u.date) }),
2528
+ /* @__PURE__ */ e(Vn, { transaction: u }),
2521
2529
  /* @__PURE__ */ e(le, { sx: { ml: w ? 44 : 0 } })
2522
- ] }, h.guid)
2523
- ), u;
2530
+ ] }, u.guid)
2531
+ ), h;
2524
2532
  }, []) }),
2525
2533
  /* @__PURE__ */ e(
2526
- so,
2534
+ ro,
2527
2535
  {
2528
2536
  firstDay: t,
2529
2537
  frequency: o,
2530
2538
  onFirstDayChange: i,
2531
- onFrequencyChange: c,
2532
- onSecondDayChange: l,
2539
+ onFrequencyChange: l,
2540
+ onSecondDayChange: c,
2533
2541
  secondDay: n,
2534
2542
  transaction: _
2535
2543
  }
2536
2544
  )
2537
2545
  ] }),
2538
2546
  /* @__PURE__ */ e(k, { sx: { px: 24 }, children: /* @__PURE__ */ e(
2539
- B,
2547
+ P,
2540
2548
  {
2541
2549
  fullWidth: !0,
2542
- onClick: () => s({ step: T.MonthlyIncome, type: "main" }),
2550
+ onClick: () => s({ step: O.MonthlyIncome, type: "main" }),
2543
2551
  startIcon: /* @__PURE__ */ e(ht, {}),
2544
2552
  children: d.onboarding_add_more_income
2545
2553
  }
2546
2554
  ) })
2547
2555
  ] });
2548
- }, Rr = v(Fr), Lr = ({ selectedDate: t, setSelectedDate: o }) => {
2549
- const { finstrong: n } = x(), r = G(), s = (i) => {
2556
+ }, Or = v(Tr), Rr = ({ selectedDate: t, setSelectedDate: o }) => {
2557
+ const { finstrong: n } = S(), r = G(), s = (i) => {
2550
2558
  o(Math.floor(new Date(i).getTime() / 1e3));
2551
2559
  };
2552
- return /* @__PURE__ */ e(k, { sx: { p: 24 }, children: /* @__PURE__ */ e(po, { dateAdapter: Ot, children: /* @__PURE__ */ e(
2553
- _o,
2560
+ return /* @__PURE__ */ e(k, { sx: { p: 24 }, children: /* @__PURE__ */ e(so, { dateAdapter: Tt, children: /* @__PURE__ */ e(
2561
+ co,
2554
2562
  {
2555
2563
  disableFuture: !0,
2556
2564
  label: n.onboarding_select_date,
@@ -2559,13 +2567,13 @@ const Eo = ({ total: t }) => {
2559
2567
  nextIconButton: {
2560
2568
  sx: {
2561
2569
  color: "primary.main",
2562
- "&:hover": { bgcolor: be(r.palette.primary.light, 0.1) }
2570
+ "&:hover": { bgcolor: fe(r.palette.primary.light, 0.1) }
2563
2571
  }
2564
2572
  },
2565
2573
  previousIconButton: {
2566
2574
  sx: {
2567
2575
  color: "primary.main",
2568
- "&:hover": { bgcolor: be(r.palette.primary.light, 0.1) }
2576
+ "&:hover": { bgcolor: fe(r.palette.primary.light, 0.1) }
2569
2577
  }
2570
2578
  }
2571
2579
  },
@@ -2573,16 +2581,16 @@ const Eo = ({ total: t }) => {
2573
2581
  width: "100%",
2574
2582
  "& .MuiIconButton-edgeEnd": {
2575
2583
  color: "primary.main",
2576
- "&:hover": { bgcolor: be(r.palette.primary.light, 0.1) }
2584
+ "&:hover": { bgcolor: fe(r.palette.primary.light, 0.1) }
2577
2585
  }
2578
2586
  },
2579
2587
  value: t ? new Date(t * 1e3) : null
2580
2588
  }
2581
2589
  ) }) });
2582
- }, Pr = v(Lr), Br = ({ creditScore: t, setCreditScore: o }) => {
2583
- const { finstrong: n } = x(), r = !isNaN(t);
2590
+ }, Fr = v(Rr), Lr = ({ creditScore: t, setCreditScore: o }) => {
2591
+ const { finstrong: n } = S(), r = !isNaN(t);
2584
2592
  return /* @__PURE__ */ e(k, { sx: { p: 24 }, children: /* @__PURE__ */ e(
2585
- Fe,
2593
+ Re,
2586
2594
  {
2587
2595
  error: !r,
2588
2596
  fullWidth: !0,
@@ -2596,7 +2604,7 @@ const Eo = ({ total: t }) => {
2596
2604
  value: r ? t : ""
2597
2605
  }
2598
2606
  ) });
2599
- }, Wr = v(Br), zt = ({ value: t, completeCopy: o }) => /* @__PURE__ */ a(p, { sx: { gap: 8 }, children: [
2607
+ }, Br = v(Lr), $t = ({ value: t, completeCopy: o }) => /* @__PURE__ */ a(p, { sx: { gap: 8 }, children: [
2600
2608
  /* @__PURE__ */ e(p, { sx: { flexDirection: "row", gap: 4 }, children: Array.from({ length: 4 }).map((n, r) => /* @__PURE__ */ e(
2601
2609
  k,
2602
2610
  {
@@ -2614,88 +2622,88 @@ const Eo = ({ total: t }) => {
2614
2622
  "% ",
2615
2623
  o
2616
2624
  ] })
2617
- ] }), $r = ({
2625
+ ] }), Pr = ({
2618
2626
  completeCopy: t,
2619
2627
  primaryText: o,
2620
2628
  secondaryText: n,
2621
2629
  value: r
2622
2630
  }) => /* @__PURE__ */ a(p, { sx: { gap: 20, p: 24 }, children: [
2623
2631
  /* @__PURE__ */ a(p, { sx: { gap: 8 }, children: [
2624
- /* @__PURE__ */ e(V, { children: o }),
2632
+ /* @__PURE__ */ e(K, { children: o }),
2625
2633
  /* @__PURE__ */ e(M, { variant: "subtitle1", children: n })
2626
2634
  ] }),
2627
- /* @__PURE__ */ e(zt, { completeCopy: t, value: r })
2628
- ] }), ct = {
2629
- step: T.ConnectAccounts,
2635
+ /* @__PURE__ */ e($t, { completeCopy: t, value: r })
2636
+ ] }), st = {
2637
+ step: O.ConnectAccounts,
2630
2638
  type: "main"
2631
- }, zr = ({ isOpen: t, onClose: o }) => {
2632
- const { visibleAccounts: n } = xe(), { calculateHealthScore: r } = L(), { finstrong: s } = x(), { setSelectedAccounts: i } = q(), { addRepeatingTransaction: c, setDateRange: l } = Ve(), { filter: _, setFilter: d, transactions: u } = Ln(), { user: h, userProfile: y, updateUser: f, updateUserProfile: w } = J(), [C, D] = m.useState(h.credit_score || 0), [S, g] = m.useState(
2633
- ct
2634
- ), [b, P] = m.useState(1), [F, U] = m.useState(Mt.EveryMonth), [W, O] = m.useState([]), [E, pe] = m.useState(!1), [Se, te] = m.useState(!1), [j, ve] = m.useState(h.birthday), [H, we] = m.useState(15), [N, ae] = m.useState("");
2639
+ }, Wr = ({ isOpen: t, onClose: o }) => {
2640
+ const { visibleAccounts: n } = Se(), { calculateHealthScore: r } = F(), { finstrong: s } = S(), { setSelectedAccounts: i } = q(), { addRepeatingTransaction: l, setDateRange: c } = Ve(), { filter: _, setFilter: d, transactions: h } = Rn(), { user: u, userProfile: y, updateUser: f, updateUserProfile: w } = ee(), [x, D] = m.useState(u.credit_score || 0), [C, g] = m.useState(
2641
+ st
2642
+ ), [b, L] = m.useState(1), [B, U] = m.useState(kt.EveryMonth), [T, $] = m.useState([]), [z, pe] = m.useState(!1), [ve, Q] = m.useState(!1), [Y, _e] = m.useState(u.birthday), [H, he] = m.useState(15), [N, ae] = m.useState("");
2635
2643
  m.useEffect(() => {
2636
- l({ start: At(it()), end: Tt(it()) });
2644
+ c({ start: It(at()), end: At(at()) });
2637
2645
  }, []), m.useEffect(() => {
2638
2646
  d({
2639
2647
  accounts: n.map((A) => A.guid),
2640
2648
  dateRange: {
2641
- start: io(/* @__PURE__ */ new Date(), 90),
2649
+ start: oo(/* @__PURE__ */ new Date(), 90),
2642
2650
  end: /* @__PURE__ */ new Date()
2643
2651
  },
2644
- custom: st
2652
+ custom: it
2645
2653
  }), i(n);
2646
2654
  }, [n]);
2647
- const _e = m.useMemo(
2648
- () => u.find((A) => A.guid === N),
2649
- [N, u]
2650
- ), he = m.useMemo(() => ({
2651
- [T.ConnectAccounts]: !0,
2652
- [T.MonthlyIncome]: !!N,
2653
- [T.Birthday]: !!h.birthday || !!j,
2654
- [T.CreditScore]: !!h.credit_score || !!C
2655
- })[S.step], [C, S, j, N, h]), X = n.length > 0, Gt = m.useMemo(() => {
2656
- const { step: A } = S;
2655
+ const De = m.useMemo(
2656
+ () => h.find((A) => A.guid === N),
2657
+ [N, h]
2658
+ ), ue = m.useMemo(() => ({
2659
+ [O.ConnectAccounts]: !0,
2660
+ [O.MonthlyIncome]: !!N,
2661
+ [O.Birthday]: !!u.birthday || !!Y,
2662
+ [O.CreditScore]: !!u.credit_score || !!x
2663
+ })[C.step], [x, C, Y, N, u]), X = n.length > 0, zt = m.useMemo(() => {
2664
+ const { step: A } = C;
2657
2665
  let R = 0;
2658
- return A >= T.MonthlyIncome && X && R++, A >= T.Birthday && W.length && R++, A >= T.CreditScore && (h.birthday || h.credit_score) && R++, R;
2659
- }, [S.step, X, W.length, h.birthday, h.credit_score]), Et = (A) => {
2666
+ return A >= O.MonthlyIncome && X && R++, A >= O.Birthday && T.length && R++, A >= O.CreditScore && (u.birthday || u.credit_score) && R++, R;
2667
+ }, [C.step, X, T.length, u.birthday, u.credit_score]), Et = (A) => {
2660
2668
  d({
2661
2669
  ..._,
2662
- custom: (R) => A ? lo(R, A) : st(R)
2670
+ custom: (R) => A ? io(R, A) : it(R)
2663
2671
  });
2664
- }, Ht = {
2665
- [T.ConnectAccounts]: {
2672
+ }, Gt = {
2673
+ [O.ConnectAccounts]: {
2666
2674
  main: X ? /* @__PURE__ */ e(Bt, { shouldShowBalance: !1 }) : null,
2667
2675
  mainActionContent: X ? s.onboarding_next : s.onboarding_add_accounts,
2668
2676
  primaryText: s.connect_your_accounts,
2669
2677
  secondaryText: s.onboarding_connect_your_accounts_secondary
2670
2678
  },
2671
- [T.MonthlyIncome]: {
2679
+ [O.MonthlyIncome]: {
2672
2680
  detail: /* @__PURE__ */ e(
2673
- Rr,
2681
+ Or,
2674
2682
  {
2675
2683
  firstDay: b,
2676
- frequency: F,
2677
- incomeTransactions: W,
2684
+ frequency: B,
2685
+ incomeTransactions: T,
2678
2686
  secondDay: H,
2679
2687
  setCurrentStep: (A) => {
2680
- g(A), O((R) => {
2688
+ g(A), $((R) => {
2681
2689
  if (R.some((ie) => ie.guid === N)) return R.filter((ie) => ie.guid !== N);
2682
- const Ae = u.find((ie) => ie.guid === N);
2683
- return Ae ? [...R, { ...Ae, firstDay: b, frequency: F, secondDay: H }] : R;
2690
+ const Ae = h.find((ie) => ie.guid === N);
2691
+ return Ae ? [...R, { ...Ae, firstDay: b, frequency: B, secondDay: H }] : R;
2684
2692
  });
2685
2693
  },
2686
- setFirstDay: P,
2694
+ setFirstDay: L,
2687
2695
  setFrequency: U,
2688
- setSecondDay: we,
2689
- transaction: _e
2696
+ setSecondDay: he,
2697
+ transaction: De
2690
2698
  }
2691
2699
  ),
2692
2700
  detailActionContent: s.onboarding_confirm_income,
2693
2701
  main: /* @__PURE__ */ e(
2694
- co,
2702
+ ao,
2695
2703
  {
2696
2704
  onSearch: Et,
2697
2705
  onSelected: (A) => {
2698
- g({ step: T.MonthlyIncome, type: "detail" }), ae(A);
2706
+ g({ step: O.MonthlyIncome, type: "detail" }), ae(A);
2699
2707
  }
2700
2708
  }
2701
2709
  ),
@@ -2703,96 +2711,96 @@ const Eo = ({ total: t }) => {
2703
2711
  primaryText: s.onboarding_add_income_primary,
2704
2712
  secondaryText: s.onboarding_add_income_secondary
2705
2713
  },
2706
- [T.Birthday]: {
2707
- main: /* @__PURE__ */ e(Pr, { selectedDate: j, setSelectedDate: ve }),
2714
+ [O.Birthday]: {
2715
+ main: /* @__PURE__ */ e(Fr, { selectedDate: Y, setSelectedDate: _e }),
2708
2716
  mainActionContent: s.onboarding_next,
2709
2717
  primaryText: s.onboarding_birthday_primary,
2710
2718
  secondaryText: s.onboarding_birthday_secondary
2711
2719
  },
2712
- [T.CreditScore]: {
2713
- main: /* @__PURE__ */ e(Wr, { creditScore: C, setCreditScore: D }),
2720
+ [O.CreditScore]: {
2721
+ main: /* @__PURE__ */ e(Br, { creditScore: x, setCreditScore: D }),
2714
2722
  mainActionContent: s.onboarding_next,
2715
2723
  primaryText: s.onboarding_credit_score_primary,
2716
2724
  secondaryText: s.onboarding_credit_score_secondary
2717
2725
  }
2718
2726
  }, Qe = () => {
2719
- g(ct), pe(!1), ae(""), o();
2727
+ g(st), pe(!1), ae(""), o();
2720
2728
  }, Ze = async () => {
2721
- pe(!0), await Vt(W), await r(), await w({ ...y, has_completed_finstrong_onboarding: !0 }), Qe();
2722
- }, Nt = () => {
2723
- if (S.step === T.CreditScore) {
2729
+ pe(!0), await Kt(T), await r(), await w({ ...y, has_completed_finstrong_onboarding: !0 }), Qe();
2730
+ }, Ht = () => {
2731
+ if (C.step === O.CreditScore) {
2724
2732
  Ze();
2725
2733
  return;
2726
2734
  }
2727
- g({ step: S.step + 1, type: "main" });
2728
- }, jt = () => {
2729
- const { step: A } = S, R = A + 1;
2735
+ g({ step: C.step + 1, type: "main" });
2736
+ }, Nt = () => {
2737
+ const { step: A } = C, R = A + 1;
2730
2738
  switch (A) {
2731
- case T.Birthday:
2732
- j && j !== h.birthday && f({ ...h, birthday: j });
2739
+ case O.Birthday:
2740
+ Y && Y !== u.birthday && f({ ...u, birthday: Y });
2733
2741
  break;
2734
- case T.CreditScore:
2735
- C && C !== h.credit_score && f({ ...h, credit_score: C }), Ze();
2742
+ case O.CreditScore:
2743
+ x && x !== u.credit_score && f({ ...u, credit_score: x }), Ze();
2736
2744
  return;
2737
- case T.MonthlyIncome:
2738
- N && W.findIndex(({ guid: me }) => me === N) === -1 && O((me) => [
2739
- ...me,
2740
- { ..._e, firstDay: b, frequency: F, secondDay: H }
2745
+ case O.MonthlyIncome:
2746
+ N && T.findIndex(({ guid: ge }) => ge === N) === -1 && $((ge) => [
2747
+ ...ge,
2748
+ { ...De, firstDay: b, frequency: B, secondDay: H }
2741
2749
  ]);
2742
2750
  break;
2743
- case T.ConnectAccounts:
2751
+ case O.ConnectAccounts:
2744
2752
  if (!X) {
2745
- te(!0);
2753
+ Q(!0);
2746
2754
  return;
2747
2755
  }
2748
2756
  break;
2749
2757
  }
2750
- R in T && g({ step: R, type: "main" });
2751
- }, Kt = () => {
2752
- const { step: A, type: R } = S;
2758
+ R in O && g({ step: R, type: "main" });
2759
+ }, jt = () => {
2760
+ const { step: A, type: R } = C;
2753
2761
  if (R === "detail") {
2754
2762
  g({ step: A, type: "main" });
2755
2763
  return;
2756
2764
  }
2757
- if (A === T.Birthday && W.length) {
2765
+ if (A === O.Birthday && T.length) {
2758
2766
  g({ step: A - 1, type: "detail" });
2759
2767
  return;
2760
2768
  }
2761
- A > T.ConnectAccounts && g({ step: A - 1, type: "main" });
2762
- }, Vt = async (A) => {
2769
+ A > O.ConnectAccounts && g({ step: A - 1, type: "main" });
2770
+ }, Kt = async (A) => {
2763
2771
  for (const R of A) {
2764
2772
  const {
2765
- account_guid: me,
2773
+ account_guid: ge,
2766
2774
  amount: Ae,
2767
2775
  date: ie,
2768
- description: qt,
2769
- feed_description: Ut,
2770
- firstDay: Qt,
2776
+ description: Xt,
2777
+ feed_description: qt,
2778
+ firstDay: Ut,
2771
2779
  frequency: Je,
2772
- secondDay: Zt,
2773
- merchant_guid: Jt,
2774
- payee: en,
2775
- transaction_type: tn
2776
- } = R, nn = Nn(Je, ao(ie)), on = {
2777
- account_guid: me,
2780
+ secondDay: Qt,
2781
+ merchant_guid: Zt,
2782
+ payee: Jt,
2783
+ transaction_type: en
2784
+ } = R, tn = En(Je, no(ie)), nn = {
2785
+ account_guid: ge,
2778
2786
  amount: Ae,
2779
2787
  created_by: 0,
2780
- description: en || qt || Ut,
2781
- merchant_guid: Jt,
2782
- predicted_occurs_on: ro(nn, { representation: "date" }),
2783
- recurrence_day: Qt,
2788
+ description: Jt || Xt || qt,
2789
+ merchant_guid: Zt,
2790
+ predicted_occurs_on: to(tn, { representation: "date" }),
2791
+ recurrence_day: Ut,
2784
2792
  recurrence_type: Je,
2785
- repeating_transaction_type: Dt.Income,
2786
- second_recurrence_day: Zt,
2787
- transaction_type: tn,
2788
- user_guid: h.guid
2793
+ repeating_transaction_type: Mt.Income,
2794
+ second_recurrence_day: Qt,
2795
+ transaction_type: en,
2796
+ user_guid: u.guid
2789
2797
  };
2790
- await c(on, R);
2798
+ await l(nn, R);
2791
2799
  }
2792
- }, ue = Ht[S.step], Ie = S.step === T.ConnectAccounts, Yt = {
2800
+ }, me = Gt[C.step], Ie = C.step === O.ConnectAccounts, Vt = {
2793
2801
  fullWidth: !0,
2794
2802
  ...Ie && !X && { startIcon: /* @__PURE__ */ e(ht, {}) }
2795
- }, Xt = !Ie || Ie && !X;
2803
+ }, Yt = !Ie || Ie && !X;
2796
2804
  return /* @__PURE__ */ a(m.Fragment, { children: [
2797
2805
  /* @__PURE__ */ e(
2798
2806
  oe,
@@ -2800,36 +2808,36 @@ const Eo = ({ total: t }) => {
2800
2808
  footerStyles: { px: 24, py: 16 },
2801
2809
  hasSecondaryAction: !Ie,
2802
2810
  isOpen: t,
2803
- isPrimaryDisabled: !he,
2811
+ isPrimaryDisabled: !ue,
2804
2812
  onClose: Qe,
2805
- onSecondaryAction: Kt,
2806
- primaryButtonProps: Yt,
2807
- primaryText: ue?.mainActionContent,
2813
+ onSecondaryAction: jt,
2814
+ primaryButtonProps: Vt,
2815
+ primaryText: me?.mainActionContent,
2808
2816
  secondaryColor: "primary",
2809
2817
  secondaryText: s.onboarding_back,
2810
2818
  title: s.title,
2811
- ...!E && { onPrimaryAction: jt },
2819
+ ...!z && { onPrimaryAction: Nt },
2812
2820
  children: /* @__PURE__ */ a(p, { sx: { bgcolor: "background.default", height: "100%" }, children: [
2813
- E && /* @__PURE__ */ a(p, { sx: { alignItems: "center", gap: 24, position: "relative", px: 16, top: 126 }, children: [
2814
- /* @__PURE__ */ e("img", { alt: "", src: Oo, style: { minHeight: 100, width: 211 } }),
2821
+ z && /* @__PURE__ */ a(p, { sx: { alignItems: "center", gap: 24, position: "relative", px: 16, top: 126 }, children: [
2822
+ /* @__PURE__ */ e("img", { alt: "", src: Ao, style: { minHeight: 100, width: 211 } }),
2815
2823
  /* @__PURE__ */ e(Le, { children: s.onboarding_calculate_primary }),
2816
2824
  /* @__PURE__ */ e(M, { sx: { textAlign: "center" }, variant: "subtitle1", children: s.onboarding_calculate_secondary })
2817
2825
  ] }),
2818
- ue && !E && /* @__PURE__ */ a(m.Fragment, { children: [
2826
+ me && !z && /* @__PURE__ */ a(m.Fragment, { children: [
2819
2827
  /* @__PURE__ */ e(
2820
- $r,
2828
+ Pr,
2821
2829
  {
2822
2830
  completeCopy: s.complete,
2823
- primaryText: ue.primaryText,
2824
- secondaryText: ue.secondaryText,
2825
- value: Gt
2831
+ primaryText: me.primaryText,
2832
+ secondaryText: me.secondaryText,
2833
+ value: zt
2826
2834
  }
2827
2835
  ),
2828
- S.type === "main" && /* @__PURE__ */ a(k, { sx: { bgcolor: "background.default" }, children: [
2829
- ue.main,
2830
- Xt && /* @__PURE__ */ e(p, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e(B, { fullWidth: !0, onClick: Nt, children: s.onboarding_do_it_later }) })
2836
+ C.type === "main" && /* @__PURE__ */ a(k, { sx: { bgcolor: "background.default" }, children: [
2837
+ me.main,
2838
+ Yt && /* @__PURE__ */ e(p, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e(P, { fullWidth: !0, onClick: Ht, children: s.onboarding_do_it_later }) })
2831
2839
  ] }),
2832
- S.type === "detail" && ue.detail
2840
+ C.type === "detail" && me.detail
2833
2841
  ] })
2834
2842
  ] })
2835
2843
  }
@@ -2837,14 +2845,14 @@ const Eo = ({ total: t }) => {
2837
2845
  /* @__PURE__ */ e(
2838
2846
  re,
2839
2847
  {
2840
- onClose: () => te(!1),
2841
- showConnectWidget: Se,
2848
+ onClose: () => Q(!1),
2849
+ showConnectWidget: ve,
2842
2850
  title: s.connect_more_accounts_button
2843
2851
  }
2844
2852
  )
2845
2853
  ] });
2846
- }, Gr = v(zr), Er = () => {
2847
- const { finstrong: t } = x(), [o, n] = m.useState(!1);
2854
+ }, $r = v(Wr), zr = () => {
2855
+ const { finstrong: t } = S(), [o, n] = m.useState(!1);
2848
2856
  return /* @__PURE__ */ a(m.Fragment, { children: [
2849
2857
  /* @__PURE__ */ a(
2850
2858
  p,
@@ -2864,15 +2872,15 @@ const Eo = ({ total: t }) => {
2864
2872
  /* @__PURE__ */ e(M, { sx: { color: "text.secondary" }, variant: "subtitle1", children: t.onboarding_subtitle })
2865
2873
  ] })
2866
2874
  ] }),
2867
- /* @__PURE__ */ e(B, { onClick: () => n(!0), variant: "contained", children: t.onboarding_get_started })
2875
+ /* @__PURE__ */ e(P, { onClick: () => n(!0), variant: "contained", children: t.onboarding_get_started })
2868
2876
  ]
2869
2877
  }
2870
2878
  ),
2871
- /* @__PURE__ */ e(Gr, { isOpen: o, onClose: () => n(!1) })
2879
+ /* @__PURE__ */ e($r, { isOpen: o, onClose: () => n(!1) })
2872
2880
  ] });
2873
- }, Hr = ({ isOpen: t, onClose: o }) => {
2874
- const { finstrong: n } = x(), r = G(), { updateUser: s, user: i } = J(), [c, l] = m.useState(i.birthday), _ = (u) => {
2875
- l(Math.floor(new Date(u).getTime() / 1e3));
2881
+ }, Er = ({ isOpen: t, onClose: o }) => {
2882
+ const { finstrong: n } = S(), r = G(), { updateUser: s, user: i } = ee(), [l, c] = m.useState(i.birthday), _ = (h) => {
2883
+ c(Math.floor(new Date(h).getTime() / 1e3));
2876
2884
  };
2877
2885
  return /* @__PURE__ */ e(
2878
2886
  oe,
@@ -2880,12 +2888,12 @@ const Eo = ({ total: t }) => {
2880
2888
  isOpen: t,
2881
2889
  onClose: o,
2882
2890
  onPrimaryAction: () => {
2883
- !c || c === i.birthday || (s({ ...i, birthday: c }), o());
2891
+ !l || l === i.birthday || (s({ ...i, birthday: l }), o());
2884
2892
  },
2885
2893
  onSecondaryAction: o,
2886
2894
  title: n.date_of_birth,
2887
- children: /* @__PURE__ */ e(p, { sx: { bgcolor: "background.default", height: "100%" }, children: /* @__PURE__ */ e(mo, { dateAdapter: Ot, children: /* @__PURE__ */ e(
2888
- ho,
2895
+ children: /* @__PURE__ */ e(p, { sx: { bgcolor: "background.default", height: "100%" }, children: /* @__PURE__ */ e(_o, { dateAdapter: Tt, children: /* @__PURE__ */ e(
2896
+ lo,
2889
2897
  {
2890
2898
  disableFuture: !0,
2891
2899
  onChange: _,
@@ -2893,13 +2901,13 @@ const Eo = ({ total: t }) => {
2893
2901
  nextIconButton: {
2894
2902
  sx: {
2895
2903
  color: "primary.main",
2896
- "&:hover": { bgcolor: be(r.palette.primary.light, 0.1) }
2904
+ "&:hover": { bgcolor: fe(r.palette.primary.light, 0.1) }
2897
2905
  }
2898
2906
  },
2899
2907
  previousIconButton: {
2900
2908
  sx: {
2901
2909
  color: "primary.main",
2902
- "&:hover": { bgcolor: be(r.palette.primary.light, 0.1) }
2910
+ "&:hover": { bgcolor: fe(r.palette.primary.light, 0.1) }
2903
2911
  }
2904
2912
  }
2905
2913
  },
@@ -2911,23 +2919,23 @@ const Eo = ({ total: t }) => {
2911
2919
  width: "100%",
2912
2920
  "& .MuiIconButton-edgeEnd": {
2913
2921
  color: "primary.main",
2914
- "&:hover": { bgcolor: be(r.palette.primary.light, 0.1) }
2922
+ "&:hover": { bgcolor: fe(r.palette.primary.light, 0.1) }
2915
2923
  }
2916
2924
  },
2917
- value: c ? new Date(c * 1e3) : /* @__PURE__ */ new Date()
2925
+ value: l ? new Date(l * 1e3) : /* @__PURE__ */ new Date()
2918
2926
  }
2919
2927
  ) }) })
2920
2928
  }
2921
2929
  );
2922
- }, Nr = v(Hr), jr = ({ isOpen: t, onClose: o }) => {
2923
- const { visibleFinstrongAccounts: n } = xe(), {
2930
+ }, Gr = v(Er), Hr = ({ isOpen: t, onClose: o }) => {
2931
+ const { visibleFinstrongAccounts: n } = Se(), {
2924
2932
  accounts: r,
2925
2933
  common: s,
2926
2934
  finstrong: i
2927
- } = x(), { repeatingTransactions: c } = Ve(), { user: l } = J(), _ = c.reduce((f, w) => {
2928
- const { repeating_transaction_type: C, transactions: D, recurrence_type: S, amount: g } = w;
2929
- return C === Dt.Income && (D.length > 0 || S === Mt.EveryYear) ? f + g : f;
2930
- }, 0), [d, u] = m.useState(null), y = [
2935
+ } = S(), { repeatingTransactions: l } = Ve(), { user: c } = ee(), _ = l.reduce((f, w) => {
2936
+ const { repeating_transaction_type: x, transactions: D, recurrence_type: C, amount: g } = w;
2937
+ return x === Mt.Income && (D.length > 0 || C === kt.EveryYear) ? f + g : f;
2938
+ }, 0), [d, h] = m.useState(null), y = [
2931
2939
  {
2932
2940
  dynamicCopy: i.add_profile_item,
2933
2941
  fallbackLabel: i.monthly_income,
@@ -2942,7 +2950,7 @@ const Eo = ({ total: t }) => {
2942
2950
  icon: /* @__PURE__ */ e(mn, {}),
2943
2951
  key: ne.DateOfBirth,
2944
2952
  label: i.date_of_birth,
2945
- value: l.birthday
2953
+ value: c.birthday
2946
2954
  },
2947
2955
  {
2948
2956
  dynamicCopy: i.add_profile_item,
@@ -2950,38 +2958,38 @@ const Eo = ({ total: t }) => {
2950
2958
  icon: /* @__PURE__ */ e(He, {}),
2951
2959
  key: ne.CreditScore,
2952
2960
  label: i.credit_score,
2953
- value: l.credit_score
2961
+ value: c.credit_score
2954
2962
  },
2955
2963
  {
2956
2964
  fallbackLabel: i.connect_your_accounts,
2957
2965
  icon: /* @__PURE__ */ e(pt, {}),
2958
2966
  key: ne.Connections,
2959
2967
  label: i.connections,
2960
- value: n.length > 0 ? K(
2968
+ value: n.length > 0 ? j(
2961
2969
  i.connected_account,
2962
2970
  String(n.length),
2963
2971
  n.length > 1 ? i.accounts : i.account
2964
2972
  ) : void 0
2965
2973
  }
2966
- ].map((f) => Tn(f));
2974
+ ].map((f) => In(f));
2967
2975
  return /* @__PURE__ */ a(oe, { isOpen: t, onClose: o, title: i.financial_profile, children: [
2968
2976
  /* @__PURE__ */ a(p, { sx: { bgcolor: "background.default", height: "100%" }, children: [
2969
2977
  /* @__PURE__ */ a(p, { sx: { gap: 20, p: 24 }, children: [
2970
2978
  /* @__PURE__ */ a(p, { sx: { gap: 8 }, children: [
2971
- /* @__PURE__ */ e(V, { children: i.your_financial_profile }),
2979
+ /* @__PURE__ */ e(K, { children: i.your_financial_profile }),
2972
2980
  /* @__PURE__ */ e(M, { children: i.financial_profile_description })
2973
2981
  ] }),
2974
2982
  /* @__PURE__ */ e(
2975
- zt,
2983
+ $t,
2976
2984
  {
2977
2985
  completeCopy: i.complete,
2978
2986
  value: y.reduce((f, w) => f + (w.isComplete ? 1 : 0), 0)
2979
2987
  }
2980
2988
  )
2981
2989
  ] }),
2982
- /* @__PURE__ */ e(On, { list: y, onClickItem: u }),
2990
+ /* @__PURE__ */ e(An, { list: y, onClickItem: h }),
2983
2991
  /* @__PURE__ */ e(k, { sx: { p: 24 }, children: /* @__PURE__ */ e(
2984
- Pe,
2992
+ Be,
2985
2993
  {
2986
2994
  description: i.connect_more_accounts_to_view_more_accurate_financial_picture,
2987
2995
  drawerType: "connectDrawer",
@@ -2995,47 +3003,47 @@ const Eo = ({ total: t }) => {
2995
3003
  oe,
2996
3004
  {
2997
3005
  isOpen: d === ne.MonthlyIncome,
2998
- onClose: () => u(null),
3006
+ onClose: () => h(null),
2999
3007
  title: s.settings,
3000
- children: /* @__PURE__ */ e(uo, {})
3008
+ children: /* @__PURE__ */ e(po, {})
3001
3009
  }
3002
3010
  ),
3003
- /* @__PURE__ */ e(Nr, { isOpen: d === ne.DateOfBirth, onClose: () => u(null) }),
3004
- /* @__PURE__ */ e(Lt, { isOpen: d === ne.CreditScore, onClose: () => u(null) }),
3011
+ /* @__PURE__ */ e(Gr, { isOpen: d === ne.DateOfBirth, onClose: () => h(null) }),
3012
+ /* @__PURE__ */ e(Ft, { isOpen: d === ne.CreditScore, onClose: () => h(null) }),
3005
3013
  /* @__PURE__ */ e(
3006
- Ct,
3014
+ xt,
3007
3015
  {
3008
- onClose: () => u(null),
3016
+ onClose: () => h(null),
3009
3017
  showConnectionsWidget: d === ne.Connections,
3010
3018
  title: r.manage_connections
3011
3019
  }
3012
3020
  )
3013
3021
  ] });
3014
- }, Kr = v(jr), lt = ({
3022
+ }, Nr = v(Hr), ct = ({
3015
3023
  content: t,
3016
3024
  islast: o = !1
3017
- }) => /* @__PURE__ */ a(bo, { sx: { minHeight: 0 }, children: [
3018
- /* @__PURE__ */ a(vo, { children: [
3019
- /* @__PURE__ */ e(So, { sx: { bgcolor: "divider", borderWidth: 1, p: 3 } }),
3020
- !o && /* @__PURE__ */ e(xo, { sx: { bgcolor: "divider", width: 0.1 } })
3025
+ }) => /* @__PURE__ */ a(mo, { sx: { minHeight: 0 }, children: [
3026
+ /* @__PURE__ */ a(xo, { children: [
3027
+ /* @__PURE__ */ e(fo, { sx: { bgcolor: "divider", borderWidth: 1, p: 3 } }),
3028
+ !o && /* @__PURE__ */ e(yo, { sx: { bgcolor: "divider", width: 0.1 } })
3021
3029
  ] }),
3022
- /* @__PURE__ */ e(Co, { sx: { pb: 16, pl: 12, pr: 0, pt: 5 }, children: /* @__PURE__ */ e(M, { fontSize: 13, fontWeight: 400, variant: "subtitle2", children: t }) })
3023
- ] }), Vr = ({ report: t }) => {
3024
- const { finstrong: o } = x(), { score_history_drawer_timeline: n } = o, {
3030
+ /* @__PURE__ */ e(bo, { sx: { pb: 16, pl: 12, pr: 0, pt: 5 }, children: /* @__PURE__ */ e(M, { fontSize: 13, fontWeight: 400, variant: "subtitle2", children: t }) })
3031
+ ] }), jr = ({ report: t }) => {
3032
+ const { finstrong: o } = S(), { score_history_drawer_timeline: n } = o, {
3025
3033
  health_score_point_difference: r,
3026
3034
  newer_credit_score: s,
3027
3035
  older_credit_score: i,
3028
- older_spend_to_income_ratio: c,
3029
- newer_spend_to_income_ratio: l,
3036
+ older_spend_to_income_ratio: l,
3037
+ newer_spend_to_income_ratio: c,
3030
3038
  older_health_score: _,
3031
3039
  newer_health_score: d,
3032
- newer_score_calculated_at: u
3033
- } = t, h = go(new Date(u), "MMM d"), y = () => r === 0 ? "info.light" : r > 0 ? "success.light" : "error.light", f = () => r === 0 ? K(n.stayed_at, _) : r > 0 ? n.less_spending : n.more_spending, w = () => {
3040
+ newer_score_calculated_at: h
3041
+ } = t, u = ho(new Date(h), "MMM d"), y = () => r === 0 ? "info.lighter" : r > 0 ? "success.lighter" : "error.lighter", f = () => r === 0 ? j(n.stayed_at, _) : r > 0 ? n.less_spending : n.more_spending, w = () => {
3034
3042
  if (r === 0) return null;
3035
- const C = r > 0 ? n.up_from : n.down_from, D = K(C, _, d);
3036
- return /* @__PURE__ */ a(z, { children: [
3043
+ const x = r > 0 ? n.up_from : n.down_from, D = j(x, _, d);
3044
+ return /* @__PURE__ */ a(E, { children: [
3037
3045
  /* @__PURE__ */ e(
3038
- bn,
3046
+ an,
3039
3047
  {
3040
3048
  fill: !0,
3041
3049
  name: "circle",
@@ -3045,7 +3053,7 @@ const Eo = ({ total: t }) => {
3045
3053
  D
3046
3054
  ] });
3047
3055
  };
3048
- return /* @__PURE__ */ a(Y, { children: [
3056
+ return /* @__PURE__ */ a(V, { children: [
3049
3057
  /* @__PURE__ */ e(
3050
3058
  k,
3051
3059
  {
@@ -3072,13 +3080,13 @@ const Eo = ({ total: t }) => {
3072
3080
  justifyContent: "center",
3073
3081
  width: 48
3074
3082
  },
3075
- children: /* @__PURE__ */ e(M, { sx: { fontWeight: 600 }, variant: "body1", children: r > 0 ? `+${r}` : r })
3083
+ children: /* @__PURE__ */ e(M, { sx: { fontWeight: 600 }, variant: "Body", children: r > 0 ? `+${r}` : r })
3076
3084
  }
3077
3085
  ),
3078
3086
  /* @__PURE__ */ a(p, { sx: { gap: 2, width: "80%" }, children: [
3079
- /* @__PURE__ */ e(I, { fontWeight: 600, variant: "body1", children: f() }),
3087
+ /* @__PURE__ */ e(I, { fontWeight: 600, variant: "Body", children: f() }),
3080
3088
  /* @__PURE__ */ a(I, { sx: { color: "text.secondary" }, variant: "subtitle2", children: [
3081
- h,
3089
+ u,
3082
3090
  " ",
3083
3091
  w()
3084
3092
  ] })
@@ -3089,10 +3097,10 @@ const Eo = ({ total: t }) => {
3089
3097
  }
3090
3098
  ),
3091
3099
  r !== 0 && /* @__PURE__ */ e(k, { sx: { color: "text.secondary", pb: 8, pl: 32, pr: 16, pt: 12 }, children: /* @__PURE__ */ a(
3092
- yo,
3100
+ uo,
3093
3101
  {
3094
3102
  sx: {
3095
- [`& .${fo.root}:before`]: {
3103
+ [`& .${go.root}:before`]: {
3096
3104
  flex: 0,
3097
3105
  padding: 0
3098
3106
  },
@@ -3101,19 +3109,19 @@ const Eo = ({ total: t }) => {
3101
3109
  },
3102
3110
  children: [
3103
3111
  /* @__PURE__ */ e(
3104
- lt,
3112
+ ct,
3105
3113
  {
3106
- content: K(
3114
+ content: j(
3107
3115
  n.spend_to_income_description,
3108
- Oe(c),
3109
- Oe(l)
3116
+ Oe(l),
3117
+ Oe(c)
3110
3118
  )
3111
3119
  }
3112
3120
  ),
3113
3121
  /* @__PURE__ */ e(
3114
- lt,
3122
+ ct,
3115
3123
  {
3116
- content: K(
3124
+ content: j(
3117
3125
  n.credit_score_description,
3118
3126
  i,
3119
3127
  s
@@ -3125,12 +3133,12 @@ const Eo = ({ total: t }) => {
3125
3133
  }
3126
3134
  ) })
3127
3135
  ] });
3128
- }, Yr = v(Vr), Xr = ({ isOpen: t, onClose: o }) => {
3129
- const n = G(), { finstrong: r } = x(), { isCopyLoaded: s, isInitialized: i } = q(), { augmentedChartData: c, healthScore: l, healthScoreChangeReports: _, peerScore: d } = L();
3130
- if (!s || !i) return /* @__PURE__ */ e(ee, {});
3131
- const u = Ne(l.health_score || 0, r), h = _.slice().reverse();
3136
+ }, Kr = v(jr), Vr = ({ isOpen: t, onClose: o }) => {
3137
+ const n = G(), { finstrong: r } = S(), { isCopyLoaded: s, isInitialized: i } = q(), { augmentedChartData: l, healthScore: c, healthScoreChangeReports: _, peerScore: d } = F();
3138
+ if (!s || !i) return /* @__PURE__ */ e(te, {});
3139
+ const h = Ne(c.health_score || 0, r), u = _.slice().reverse();
3132
3140
  return /* @__PURE__ */ e(
3133
- Pt,
3141
+ Lt,
3134
3142
  {
3135
3143
  additionalContent: /* @__PURE__ */ e(p, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ e(
3136
3144
  Ye,
@@ -3139,11 +3147,11 @@ const Eo = ({ total: t }) => {
3139
3147
  baseline: "min",
3140
3148
  colors: [n.palette.primary.main],
3141
3149
  curveType: "natural",
3142
- datasets: [c],
3150
+ datasets: [l],
3143
3151
  height: 160,
3144
3152
  isGraphClippingXAxis: !0,
3145
3153
  labels: [r.key_indicators_label],
3146
- margin: { top: 24, bottom: 32, right: 24, left: 45 },
3154
+ margin: { top: 24, bottom: 6, right: 24, left: -17 },
3147
3155
  peerAverage: Math.round(d?.average_health_score?.average_health_score || 0),
3148
3156
  showArea: !0,
3149
3157
  showAverage: !0,
@@ -3171,22 +3179,22 @@ const Eo = ({ total: t }) => {
3171
3179
  Rt,
3172
3180
  {
3173
3181
  arcRadius: 24,
3174
- healthScore: l?.health_score,
3182
+ healthScore: c?.health_score,
3175
3183
  margin: { top: 9 },
3176
3184
  size: "SM"
3177
3185
  }
3178
3186
  ),
3179
3187
  /* @__PURE__ */ a(p, { sx: { gap: 4 }, children: [
3180
- /* @__PURE__ */ e(M, { variant: "h3", children: u.status }),
3181
- /* @__PURE__ */ e(M, { variant: "caption", children: u.description })
3188
+ /* @__PURE__ */ e(M, { variant: "h3", children: h.status }),
3189
+ /* @__PURE__ */ e(M, { variant: "XSmall", children: h.description })
3182
3190
  ] })
3183
3191
  ] })
3184
3192
  }
3185
3193
  ),
3186
- children: /* @__PURE__ */ e(p, { sx: { gap: 16 }, children: h.map((y, f) => /* @__PURE__ */ e(Yr, { report: y }, f)) })
3194
+ children: /* @__PURE__ */ e(p, { sx: { gap: 16 }, children: u.map((y, f) => /* @__PURE__ */ e(Kr, { report: y }, f)) })
3187
3195
  }
3188
3196
  );
3189
- }, qr = v(Xr), Ur = ({ copy: t }) => {
3197
+ }, Yr = v(Vr), Xr = ({ copy: t }) => {
3190
3198
  const o = G(), n = [
3191
3199
  o.palette.chartMono.chartMono5,
3192
3200
  o.palette.chartMono.chartMono4,
@@ -3246,20 +3254,20 @@ const Eo = ({ total: t }) => {
3246
3254
  )) })
3247
3255
  ] })
3248
3256
  ] });
3249
- }, Qr = ({ isOpen: t, onClose: o }) => {
3250
- const { finstrong: n } = x(), { isCopyLoaded: r } = q();
3257
+ }, qr = ({ isOpen: t, onClose: o }) => {
3258
+ const { finstrong: n } = S(), { isCopyLoaded: r } = q();
3251
3259
  return r ? /* @__PURE__ */ e(oe, { isOpen: t, onClose: o, title: n.score_rubric, children: /* @__PURE__ */ a(p, { sx: { bgcolor: "background.default", gap: 36, height: "100%", p: 24 }, children: [
3252
3260
  /* @__PURE__ */ a(p, { sx: { gap: 20 }, children: [
3253
3261
  /* @__PURE__ */ a(p, { sx: { gap: 8 }, children: [
3254
- /* @__PURE__ */ e(V, { sx: { textWrap: "wrap" }, children: n.your_path_to_financial_freedom }),
3262
+ /* @__PURE__ */ e(K, { sx: { textWrap: "wrap" }, children: n.your_path_to_financial_freedom }),
3255
3263
  /* @__PURE__ */ e(M, { variant: "subtitle1", children: n.finstrong_freedom_description })
3256
3264
  ] }),
3257
- /* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(Ur, { copy: n }) })
3265
+ /* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(Xr, { copy: n }) })
3258
3266
  ] }),
3259
3267
  /* @__PURE__ */ a(p, { sx: { gap: 12 }, children: [
3260
3268
  /* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: "body1", children: n.how_do_we_do_this }),
3261
3269
  /* @__PURE__ */ a(
3262
- Ee,
3270
+ Ge,
3263
3271
  {
3264
3272
  component: "ol",
3265
3273
  sx: {
@@ -3278,15 +3286,15 @@ const Eo = ({ total: t }) => {
3278
3286
  }
3279
3287
  },
3280
3288
  children: [
3281
- /* @__PURE__ */ e(ge, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(
3282
- ye,
3289
+ /* @__PURE__ */ e(ye, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(
3290
+ be,
3283
3291
  {
3284
3292
  primary: n.understand_your_habits,
3285
3293
  secondary: n.understand_your_habits_description
3286
3294
  }
3287
3295
  ) }),
3288
- /* @__PURE__ */ e(ge, { sx: { display: "list-item", pt: 16 }, children: /* @__PURE__ */ e(
3289
- ye,
3296
+ /* @__PURE__ */ e(ye, { sx: { display: "list-item", pt: 16 }, children: /* @__PURE__ */ e(
3297
+ be,
3290
3298
  {
3291
3299
  primary: n.see_whats_possible,
3292
3300
  secondary: n.see_whats_possible_description
@@ -3299,7 +3307,7 @@ const Eo = ({ total: t }) => {
3299
3307
  /* @__PURE__ */ a(p, { sx: { gap: 4 }, children: [
3300
3308
  /* @__PURE__ */ e(I, { sx: { fontWeight: 600, pb: 4 }, variant: "body1", children: n.we_ask_questions }),
3301
3309
  /* @__PURE__ */ a(
3302
- Ee,
3310
+ Ge,
3303
3311
  {
3304
3312
  component: "ol",
3305
3313
  sx: {
@@ -3319,23 +3327,23 @@ const Eo = ({ total: t }) => {
3319
3327
  }
3320
3328
  },
3321
3329
  children: [
3322
- /* @__PURE__ */ e(ge, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(ye, { secondary: n.we_ask_questions_description_1 }) }),
3323
- /* @__PURE__ */ e(ge, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(ye, { secondary: n.we_ask_questions_description_2 }) })
3330
+ /* @__PURE__ */ e(ye, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(be, { secondary: n.we_ask_questions_description_1 }) }),
3331
+ /* @__PURE__ */ e(ye, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(be, { secondary: n.we_ask_questions_description_2 }) })
3324
3332
  ]
3325
3333
  }
3326
3334
  )
3327
3335
  ] })
3328
- ] }) }) : /* @__PURE__ */ e(ee, {});
3329
- }, Zr = v(Qr), Jr = v(() => {
3330
- const [t, o] = m.useState(!1), n = G(), [r, { width: s }] = vt(), { finstrong: i } = x(), { isCopyLoaded: c, isInitialized: l } = q(), { healthScore: _, healthScoreChange: d } = L(), u = n.palette.mode === "dark", h = Ne(_?.health_score, i);
3331
- return !c || !l ? /* @__PURE__ */ e(ee, {}) : /* @__PURE__ */ a(Y, { ref: r, sx: { p: 16, display: "flex", flexDirection: "column", gap: 8 }, children: [
3336
+ ] }) }) : /* @__PURE__ */ e(te, {});
3337
+ }, Ur = v(qr), Qr = v(() => {
3338
+ const [t, o] = m.useState(!1), n = G(), [r, { width: s }] = Ct(), { finstrong: i } = S(), { isCopyLoaded: l, isInitialized: c } = q(), { healthScore: _, healthScoreChange: d } = F(), h = n.palette.mode === "dark", u = Ne(_?.health_score, i);
3339
+ return !l || !c ? /* @__PURE__ */ e(te, {}) : /* @__PURE__ */ a(V, { ref: r, sx: { p: 16, display: "flex", flexDirection: "column", gap: 8 }, children: [
3332
3340
  /* @__PURE__ */ e(
3333
- Do,
3341
+ wo,
3334
3342
  {
3335
3343
  action: /* @__PURE__ */ e(
3336
- B,
3344
+ P,
3337
3345
  {
3338
- endIcon: /* @__PURE__ */ e(Z, {}),
3346
+ endIcon: /* @__PURE__ */ e(J, {}),
3339
3347
  onClick: () => o(!0),
3340
3348
  sx: {
3341
3349
  fontSize: 13,
@@ -3347,7 +3355,7 @@ const Eo = ({ total: t }) => {
3347
3355
  children: i.financial_strength_header_action
3348
3356
  }
3349
3357
  ),
3350
- subheader: /* @__PURE__ */ e(V, { color: "text.primary", children: i.financial_strength_header }),
3358
+ subheader: /* @__PURE__ */ e(K, { color: "text.primary", children: i.financial_strength_header }),
3351
3359
  sx: {
3352
3360
  p: 0,
3353
3361
  "& .MuiCardHeader-content": {
@@ -3366,11 +3374,11 @@ const Eo = ({ total: t }) => {
3366
3374
  }
3367
3375
  ) }),
3368
3376
  _?.health_score ? /* @__PURE__ */ a(
3369
- wo,
3377
+ So,
3370
3378
  {
3371
3379
  sx: {
3372
3380
  px: 16,
3373
- backgroundColor: u ? "grey.800" : "grey.50",
3381
+ backgroundColor: h ? "grey.800" : "grey.50",
3374
3382
  //TODO: Need to change the background color to palette (supporting both darkmode and lightmode)
3375
3383
  "&.Mui-expanded": {
3376
3384
  m: 0
@@ -3381,7 +3389,7 @@ const Eo = ({ total: t }) => {
3381
3389
  },
3382
3390
  children: [
3383
3391
  /* @__PURE__ */ e(
3384
- Mo,
3392
+ vo,
3385
3393
  {
3386
3394
  expandIcon: /* @__PURE__ */ e(gn, { size: 20 }),
3387
3395
  sx: {
@@ -3394,11 +3402,11 @@ const Eo = ({ total: t }) => {
3394
3402
  children: /* @__PURE__ */ e(M, { sx: { fontWeight: 600 }, variant: "body1", children: i.accordion_title_text })
3395
3403
  }
3396
3404
  ),
3397
- /* @__PURE__ */ e(ko, { sx: { "&.MuiAccordionDetails-root": { padding: 0, pb: 16 } }, children: /* @__PURE__ */ e(M, { variant: "subtitle1", children: h.scoreContent }) })
3405
+ /* @__PURE__ */ e(Co, { sx: { "&.MuiAccordionDetails-root": { padding: 0, pb: 16 } }, children: /* @__PURE__ */ e(M, { variant: "subtitle1", children: u.scoreContent }) })
3398
3406
  ]
3399
3407
  }
3400
3408
  ) : /* @__PURE__ */ e(
3401
- Pe,
3409
+ Be,
3402
3410
  {
3403
3411
  buttonText: i.connect_more_accounts_title,
3404
3412
  description: i.health_score_zero_description,
@@ -3406,7 +3414,7 @@ const Eo = ({ total: t }) => {
3406
3414
  hasIcon: !1,
3407
3415
  isDashboard: !0,
3408
3416
  sx: {
3409
- backgroundColor: u ? "grey.800" : "grey.50",
3417
+ backgroundColor: h ? "grey.800" : "grey.50",
3410
3418
  //TODO: Need to change the background color to palette (supporting both darkmode and lightmode)
3411
3419
  ".connect-more-accounts-title": {
3412
3420
  fontWeight: 600,
@@ -3419,53 +3427,54 @@ const Eo = ({ total: t }) => {
3419
3427
  }
3420
3428
  ),
3421
3429
  /* @__PURE__ */ e(
3422
- Zr,
3430
+ Ur,
3423
3431
  {
3424
3432
  isOpen: t,
3425
3433
  onClose: () => o(!1)
3426
3434
  }
3427
3435
  )
3428
3436
  ] });
3429
- }), ea = ({ onBackClick: t, sx: o, onPrimaryCtaClick: n }) => {
3430
- const { visibleAccounts: r } = xe(), { dateRange: s, isDataLoaded: i, loadBudgetData: c, setTheme: l } = Pn(), { reloadCategoryTotals: _ } = Ke(), d = L(), {
3431
- augmentedChartData: u,
3432
- calculateHealthScore: h,
3437
+ }), Zr = ({ onBackClick: t, sx: o, onPrimaryCtaClick: n }) => {
3438
+ const { visibleAccounts: r } = Se(), { dateRange: s, isDataLoaded: i, loadBudgetData: l, setTheme: c } = Fn(), { reloadCategoryTotals: _ } = Ke(), d = F(), {
3439
+ augmentedChartData: h,
3440
+ calculateHealthScore: u,
3433
3441
  healthScore: y,
3434
3442
  loadAugmentedChartData: f,
3435
3443
  loadMonthlySummaries: w,
3436
- loadPeerScore: C,
3444
+ loadPeerScore: x,
3437
3445
  peerScore: D
3438
- } = d, { finstrong: S, connect: g } = x(), { isCopyLoaded: b, isInitialized: P } = q(), { onLoad: F } = Bn(), { loadRepeatingTransactions: U } = Ve(), { isMobile: W } = qe(), O = G(), { userProfile: E } = J(), [pe, Se] = m.useState(!1), [te, j] = m.useState(!1), [ve, H] = m.useState(!1), [we, N] = m.useState(!1);
3439
- if (m.useEffect(() => {
3440
- l(O);
3446
+ } = d, { finstrong: C, connect: g } = S(), { isCopyLoaded: b, isInitialized: L } = q(), { loadRepeatingTransactions: B } = Ve(), { isMobile: U } = qe(), T = G(), { userProfile: $ } = ee(), [z, pe] = m.useState(!1), [ve, Q] = m.useState(!1), [Y, _e] = m.useState(!1), [H, he] = m.useState(!1);
3447
+ if (ko({
3448
+ widgetName: "FinstrongWidget",
3449
+ isLoaded: z
3450
+ }), m.useEffect(() => {
3451
+ c(T);
3441
3452
  }, []), m.useEffect(() => {
3442
3453
  n && (d.handleFinstrongWidgetPrimaryCtaClick = n);
3443
3454
  }, [n, d]), m.useEffect(() => {
3444
- P && (w().finally(), C().finally(), h().finally(), f().finally(() => {
3445
- F?.("FinstrongWidget");
3446
- }));
3447
- }, [P]), m.useEffect(() => {
3448
- P && (_(r, s.start, s.end).finally(() => {
3449
- Se(!0);
3450
- }), i || (c(), U().finally()));
3451
- }, [s, i, P, r]), !b || !P || !pe) return /* @__PURE__ */ e(ee, {});
3452
- const ae = () => j(!0), _e = Math.round(D?.average_health_score?.average_health_score || 0);
3455
+ L && (w().finally(), x().finally(), u().finally(), f().finally());
3456
+ }, [L]), m.useEffect(() => {
3457
+ L && (_(r, s.start, s.end).finally(() => {
3458
+ pe(!0);
3459
+ }), i || (l(), B().finally()));
3460
+ }, [s, i, L, r]), !b || !L || !z) return /* @__PURE__ */ e(te, {});
3461
+ const N = () => Q(!0), ae = Math.round(D?.average_health_score?.average_health_score || 0);
3453
3462
  return /* @__PURE__ */ a(
3454
- Io,
3463
+ Mo,
3455
3464
  {
3456
3465
  actions: [
3457
3466
  {
3458
3467
  iconName: "person",
3459
- label: S.profile,
3460
- onClick: ae
3468
+ label: C.profile,
3469
+ onClick: N
3461
3470
  }
3462
3471
  ],
3463
3472
  hasDivider: !0,
3464
3473
  onBackClick: t,
3465
3474
  sx: o,
3466
- title: S.title,
3475
+ title: C.title,
3467
3476
  children: [
3468
- E.has_completed_finstrong_onboarding ? /* @__PURE__ */ a(
3477
+ $.has_completed_finstrong_onboarding ? /* @__PURE__ */ a(
3469
3478
  p,
3470
3479
  {
3471
3480
  sx: {
@@ -3473,96 +3482,96 @@ const Eo = ({ total: t }) => {
3473
3482
  flexDirection: { md: "row" },
3474
3483
  gap: 24,
3475
3484
  justifyContent: "center",
3476
- pt: W ? 24 : 16,
3485
+ pt: U ? 24 : 16,
3477
3486
  px: 24
3478
3487
  },
3479
3488
  children: [
3480
3489
  /* @__PURE__ */ a(p, { sx: { gap: 24, width: { md: 432 }, height: "100%" }, children: [
3481
- /* @__PURE__ */ e(Jr, {}),
3490
+ /* @__PURE__ */ e(Qr, {}),
3482
3491
  /* @__PURE__ */ e(
3483
- Pe,
3492
+ Be,
3484
3493
  {
3485
- description: S.connect_more_accounts_description,
3494
+ description: C.connect_more_accounts_description,
3486
3495
  drawerType: "connectDrawer",
3487
- title: S.connect_more_accounts_title
3496
+ title: C.connect_more_accounts_title
3488
3497
  }
3489
3498
  )
3490
3499
  ] }),
3491
- /* @__PURE__ */ e(p, { sx: { maxWidth: 848, minWidth: 288, width: { md: 720 } }, children: /* @__PURE__ */ a(Y, { sx: { height: "100%", p: 16 }, children: [
3500
+ /* @__PURE__ */ e(p, { sx: { maxWidth: 848, minWidth: 288, width: { md: 720 } }, children: /* @__PURE__ */ a(V, { sx: { height: "100%", p: 16 }, children: [
3492
3501
  /* @__PURE__ */ a(p, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
3493
- /* @__PURE__ */ e(V, { children: S.key_indicators }),
3502
+ /* @__PURE__ */ e(K, { children: C.key_indicators }),
3494
3503
  /* @__PURE__ */ e(
3495
- B,
3504
+ P,
3496
3505
  {
3497
- endIcon: /* @__PURE__ */ e(Z, {}),
3498
- onClick: () => H(!0),
3506
+ endIcon: /* @__PURE__ */ e(J, {}),
3507
+ onClick: () => _e(!0),
3499
3508
  sx: {
3500
3509
  fontSize: 13
3501
3510
  },
3502
3511
  variant: "text",
3503
- children: S.whats_changed
3512
+ children: C.whats_changed
3504
3513
  }
3505
3514
  )
3506
3515
  ] }),
3507
- u.length ? /* @__PURE__ */ e(
3516
+ h.length ? /* @__PURE__ */ e(
3508
3517
  Ye,
3509
3518
  {
3510
- axisColor: O.palette.divider,
3519
+ axisColor: T.palette.divider,
3511
3520
  baseline: "min",
3512
- colors: [O.palette.primary.main],
3521
+ colors: [T.palette.primary.main],
3513
3522
  curveType: "natural",
3514
3523
  customLegendBoxSx: { borderRadius: "2px" },
3515
3524
  customLegendSx: { left: 0 },
3516
- customLegendVariant: "caption",
3517
- datasets: [u],
3525
+ customLegendVariant: "XSmall",
3526
+ datasets: [h],
3518
3527
  height: 300,
3519
3528
  isGraphClippingXAxis: !0,
3520
- labelBackgroundColor: O.palette.neutral.dark,
3521
- labelFontColor: O.palette.common.white,
3522
- labelFontSize: typeof O.typography.caption?.fontSize == "string" ? parseFloat(O.typography.caption.fontSize) : O.typography.caption?.fontSize,
3523
- labels: [S.key_indicators_label],
3524
- margin: { right: 0, left: 25 },
3525
- peerAverage: _e,
3529
+ labelBackgroundColor: T.palette.border.dark,
3530
+ labelFontColor: T.palette.common.white,
3531
+ labelFontSize: typeof T.typography.XSmall?.fontSize == "string" ? parseFloat(T.typography.XSmall.fontSize) : T.typography.XSmall?.fontSize,
3532
+ labels: [C.key_indicators_label],
3533
+ margin: { right: 0, left: -37 },
3534
+ peerAverage: ae,
3526
3535
  showArea: !0,
3527
3536
  showAverage: !0,
3528
3537
  showLegend: !0,
3529
3538
  showMarkLabel: !0,
3530
3539
  showXAxis: !0,
3531
- title: S.peer_average,
3540
+ title: C.peer_average,
3532
3541
  useCustomMark: !0,
3533
3542
  xAxisScaleType: "band"
3534
3543
  }
3535
- ) : /* @__PURE__ */ e(Or, { onClick: () => N(!0) }),
3536
- y.health_score !== null && /* @__PURE__ */ e(Ar, {})
3544
+ ) : /* @__PURE__ */ e(Ar, { onClick: () => he(!0) }),
3545
+ y.health_score !== null && /* @__PURE__ */ e(Dr, {})
3537
3546
  ] }) })
3538
3547
  ]
3539
3548
  }
3540
- ) : /* @__PURE__ */ e(Er, {}),
3541
- /* @__PURE__ */ e(Kr, { isOpen: te, onClose: () => j(!1) }),
3549
+ ) : /* @__PURE__ */ e(zr, {}),
3550
+ /* @__PURE__ */ e(Nr, { isOpen: ve, onClose: () => Q(!1) }),
3542
3551
  /* @__PURE__ */ e(
3543
3552
  re,
3544
3553
  {
3545
- onClose: () => N(!1),
3546
- showConnectWidget: we,
3554
+ onClose: () => he(!1),
3555
+ showConnectWidget: H,
3547
3556
  title: g.mini_title
3548
3557
  }
3549
3558
  ),
3550
3559
  /* @__PURE__ */ e(
3551
- qr,
3560
+ Yr,
3552
3561
  {
3553
- isOpen: ve,
3554
- onClose: () => H(!1)
3562
+ isOpen: Y,
3563
+ onClose: () => _e(!1)
3555
3564
  }
3556
3565
  )
3557
3566
  ]
3558
3567
  }
3559
3568
  );
3560
- }, yi = v(ea);
3569
+ }, gi = v(Zr);
3561
3570
  export {
3562
- To as CreditScoreGraph,
3563
- Ft as DialScoreCard,
3571
+ Io as CreditScoreGraph,
3572
+ Ot as DialScoreCard,
3564
3573
  Rt as FinancialStrengthGraph,
3565
- xi as FinstrongApi,
3566
- Ci as FinstrongStore,
3567
- yi as FinstrongWidget
3574
+ fi as FinstrongApi,
3575
+ xi as FinstrongStore,
3576
+ gi as FinstrongWidget
3568
3577
  };