@mx-cartographer/experiences 9.0.0-alpha.mega1 → 9.0.0-ram1-bug-alpha-testing

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 (773) hide show
  1. package/CHANGELOG.md +676 -9
  2. package/README.md +216 -47
  3. package/dist/{Account-CMjOp7S2.mjs → Account-BaJmiJAG.mjs} +4 -4
  4. package/dist/{Account-BIKn4XEZ.mjs → Account-BxHMlV9R.mjs} +1 -1
  5. package/dist/AccountDetailsHeader-DIysk_4w.mjs +95 -0
  6. package/dist/AccountFields-mwJ8NXsX.mjs +141 -0
  7. package/dist/AccountListItem-BDXHs4tV.mjs +94 -0
  8. package/dist/AccountUtils-T5_Odvos.mjs +27 -0
  9. package/dist/Accounts-CseLC3lL.mjs +5 -0
  10. package/dist/Analytics-CkYXKvco.mjs +53 -0
  11. package/dist/Analytics-CzGzz_sE.mjs +136 -0
  12. package/dist/ApiEndpoints-DXwIYNUV.mjs +49 -0
  13. package/dist/BudgetUtil-Bg2AQJpQ.mjs +74 -0
  14. package/dist/{Category-Ccoew_sA.mjs → Category-DEKZGLYe.mjs} +3 -3
  15. package/dist/{CategorySelectorDrawer-C4aZYP4N.mjs → CategorySelectorDrawer-CmaDLhnf.mjs} +131 -119
  16. package/dist/Connect-Dk6GZEsA.mjs +39 -0
  17. package/dist/ConnectCard-CCep7Zqe.mjs +54 -0
  18. package/dist/ConnectDrawer-Cnjr3Ddg.mjs +58 -0
  19. package/dist/{ConnectionsDrawer-BExzgE16.mjs → ConnectionsDrawer-CtfPXk0M.mjs} +13 -12
  20. package/dist/CurrencyDialog-DumQCTPO.mjs +373 -0
  21. package/dist/CurrencyInput-adTIRtL3.mjs +87 -0
  22. package/dist/{CurrencyText-C-85TnUF.mjs → CurrencyText-CCbE6MmF.mjs} +1 -1
  23. package/dist/DateFormats-HudZ3Bjs.mjs +64 -0
  24. package/dist/DateUtil-Bhq59ZVg.mjs +58 -0
  25. package/dist/DebtUtils-DD3186U-.mjs +153 -0
  26. package/dist/Dialog-CwWc0AbH.mjs +63 -0
  27. package/dist/Donut-SzzfZDHF.mjs +88 -0
  28. package/dist/{Drawer-Bet2ZPJo.mjs → Drawer-BXqqBMxg.mjs} +32 -34
  29. package/dist/EmbeddedCard-DPwJjqMH.mjs +856 -0
  30. package/dist/{EmptyState-DoxNUae-.mjs → EmptyState-CJUDc3kD.mjs} +21 -22
  31. package/dist/Error-Dogaw2jO.mjs +84 -0
  32. package/dist/ErrorBoundary-CsdOcnJ9.mjs +23 -0
  33. package/dist/{ExportCsvAction-oG_Mn66T.mjs → ExportCsvAction-Bw02ZJEj.mjs} +6 -6
  34. package/dist/GlobalAccountFilter-7Cg2-9A5.mjs +237 -0
  35. package/dist/GlobalCopyApi-wcnDUzMV.mjs +128 -0
  36. package/dist/GoalsUtil-C9EnLWvC.mjs +107 -0
  37. package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
  38. package/dist/{Help-c-zHlDbv.mjs → Help-CkQTjORd.mjs} +6 -27
  39. package/dist/{Help-BW_ar-4B.mjs → Help-DJ8PrVHX.mjs} +594 -562
  40. package/dist/InformationTooltip-4su8bn1e.mjs +41 -0
  41. package/dist/{InvestmentUtil-jOyOgzIB.mjs → InvestmentUtil-BItV7uEs.mjs} +17 -17
  42. package/dist/LineChart-CejWS_rh.mjs +612 -0
  43. package/dist/{ListItemAction-Cbr3417C.mjs → ListItemAction-CwspSmQi.mjs} +26 -26
  44. package/dist/ListItemRow-kH1rn8Xu.mjs +67 -0
  45. package/dist/ListItemWrapper-B5r-YQQ_.mjs +42 -0
  46. package/dist/Loader-CxeBwuPG.mjs +21 -0
  47. package/dist/Localization-DnoVyBNK.mjs +38 -0
  48. package/dist/ManageIncome-B1JfqslT.mjs +595 -0
  49. package/dist/{MicroWidgetContainer-DSyYwRCU.mjs → MicroWidgetContainer-CfKdQfhi.mjs} +2 -2
  50. package/dist/MiniWidgetContainer-BdPiUU-u.mjs +66 -0
  51. package/dist/NetWorthUtils-DilGN1nW.mjs +95 -0
  52. package/dist/Notification-DTNYSd8P.mjs +7 -0
  53. package/dist/{NotificationSettings-e789PcRb.mjs → NotificationSettings-6p-h5phZ.mjs} +143 -142
  54. package/dist/NotificationUtils-BRGFTePr.mjs +23 -0
  55. package/dist/{NumberFormatting-DjTD0t3W.mjs → NumberFormatting--XMeeBfr.mjs} +2 -1
  56. package/dist/OriginalBalanceAction-CkJPnp2c.mjs +114 -0
  57. package/dist/{RecurringSettings-BpCUcE8w.mjs → RecurringSettings-cm6MK_aS.mjs} +4 -4
  58. package/dist/RecurringTransactionsUtil-B3rLEx_g.mjs +253 -0
  59. package/dist/{ResponsiveButton-C6KH8JH4.mjs → ResponsiveButton-CC9F_Ezk.mjs} +4 -4
  60. package/dist/SearchBox-Cpgu_gdO.mjs +50 -0
  61. package/dist/Select-BFt-HD-L.mjs +55 -0
  62. package/dist/SelectionBox-B4xELRgp.mjs +48 -0
  63. package/dist/{SingleSegmentDonut-PsRQPkmV.mjs → SingleSegmentDonut-7Uy6VEld.mjs} +1 -1
  64. package/dist/Sizes-DISGrlUg.mjs +6 -0
  65. package/dist/{SpendingData-B7NuTQ9s.mjs → SpendingData-xyRoRDHv.mjs} +7 -7
  66. package/dist/SpendingLegend-5Ct_FZ8o.mjs +193 -0
  67. package/dist/ToggleListItem-Dl1lXNwj.mjs +91 -0
  68. package/dist/TransactionDetails-C3dlAzYf.mjs +1714 -0
  69. package/dist/TransactionUtils-BphBJBbU.mjs +234 -0
  70. package/dist/TrendsUtil-D9z3kIj_.mjs +69 -0
  71. package/dist/UserStore-CRpKQjpP.mjs +3002 -0
  72. package/dist/ViewMoreMicroCard-BD_MNc2z.mjs +1295 -0
  73. package/dist/WidgetContainer-DNuz_s7W.mjs +479 -0
  74. package/dist/accounts/AccountsMiniWidget.d.ts +1 -1
  75. package/dist/accounts/AccountsWidget.d.ts +1 -1
  76. package/dist/accounts/components/AccountListItem.d.ts +1 -1
  77. package/dist/accounts/components/AccountsListCompact.d.ts +1 -1
  78. package/dist/accounts/components/detailsdrawer/Accounts/AccountActionsRow.d.ts +1 -0
  79. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +1 -1
  80. package/dist/accounts/hooks/useGetMergeableAccounts.d.ts +1 -1
  81. package/dist/accounts/hooks/useUiStore.d.ts +6 -1
  82. package/dist/accounts/index.d.ts +0 -2
  83. package/dist/accounts/index.es.js +628 -527
  84. package/dist/accounts/utils/AccountDetails.d.ts +1 -1
  85. package/dist/accounts/utils/AccountFields.d.ts +3 -3
  86. package/dist/analytics/index.es.js +93 -112
  87. package/dist/budgets/BubbleBudgetsMiniWidget.d.ts +1 -1
  88. package/dist/budgets/BubbleBudgetsWidget.d.ts +1 -1
  89. package/dist/budgets/components/BubbleChart.d.ts +1 -1
  90. package/dist/budgets/components/BudgetDetailsDrawerV2.d.ts +11 -0
  91. package/dist/budgets/components/MerchantBudgetDetailsDrawer.d.ts +17 -0
  92. package/dist/budgets/components/addbudget/RecalculateBudgetRow.d.ts +1 -1
  93. package/dist/budgets/components/addbudget/UnbudgetedRow.d.ts +1 -1
  94. package/dist/budgets/components/bubblechart/Bubble.d.ts +1 -1
  95. package/dist/budgets/components/budgetdetails/AddSubBudget.d.ts +1 -1
  96. package/dist/budgets/components/budgetdetails/BudgetDetails.d.ts +1 -1
  97. package/dist/budgets/components/budgetdetails/Header.d.ts +1 -1
  98. package/dist/budgets/components/budgetdetails/SubBudgetList.d.ts +1 -1
  99. package/dist/budgets/components/budgetlist/BudgetRow.d.ts +1 -1
  100. package/dist/budgets/components/budgetlist/SubBudgetRow.d.ts +1 -1
  101. package/dist/budgets/components/shared/BudgetDetailsTopSection.d.ts +13 -0
  102. package/dist/budgets/index.d.ts +2 -1
  103. package/dist/budgets/index.es.js +989 -813
  104. package/dist/budgets/utils/BubblesSVG.d.ts +3 -3
  105. package/dist/cashflow/CashflowMiniWidget.d.ts +1 -1
  106. package/dist/cashflow/CashflowWidget.d.ts +1 -1
  107. package/dist/cashflow/components/DetailsExpenseRow.d.ts +1 -1
  108. package/dist/cashflow/context/hooks.d.ts +15 -1
  109. package/dist/cashflow/index.d.ts +0 -2
  110. package/dist/cashflow/index.es.js +461 -490
  111. package/dist/cashflow/util/Filters.d.ts +1 -1
  112. package/dist/categories/components/CategoryRow.d.ts +1 -1
  113. package/dist/categories/components/CustomCategories/AddSubcategory.d.ts +1 -1
  114. package/dist/categories/components/CustomCategories/DeleteSubcategory.d.ts +1 -1
  115. package/dist/categories/components/CustomCategories/RenameSubcategory.d.ts +1 -1
  116. package/dist/categories/components/SubcategoryList.d.ts +1 -1
  117. package/dist/categories/components/SubcategoryRow.d.ts +1 -1
  118. package/dist/categories/context/hooks.d.ts +19 -1
  119. package/dist/categories/index.d.ts +0 -1
  120. package/dist/categories/index.es.js +4 -6
  121. package/dist/common/components/CurrencyDialog.d.ts +19 -0
  122. package/dist/common/components/CurrencyInput.d.ts +1 -1
  123. package/dist/common/components/EmptyState.d.ts +0 -1
  124. package/dist/common/components/Error.d.ts +13 -0
  125. package/dist/common/components/GlobalAccountFilter.d.ts +3 -2
  126. package/dist/common/components/Loader.d.ts +1 -2
  127. package/dist/common/components/MiniWidgetContainer.d.ts +1 -0
  128. package/dist/common/components/TinyBarChart.d.ts +10 -0
  129. package/dist/common/components/WidgetContainer.d.ts +4 -3
  130. package/dist/common/components/WidgetDateRangeSelector.d.ts +12 -0
  131. package/dist/common/components/charts/LineChart.d.ts +1 -0
  132. package/dist/common/components/charts/index.d.ts +1 -0
  133. package/dist/common/components/charts/linechart/CustomTooltip.d.ts +2 -1
  134. package/dist/common/components/charts/linechart/utils/markerShapes.d.ts +3 -0
  135. package/dist/common/components/charts/stackedlinechart/CustomAreaTooltip.d.ts +1 -1
  136. package/dist/common/components/daterangeselector/DateRangeSelector.d.ts +1 -0
  137. package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +1 -1
  138. package/dist/common/components/index.d.ts +2 -1
  139. package/dist/common/constants/Account.d.ts +1 -1
  140. package/dist/common/constants/Analytics.d.ts +12 -0
  141. package/dist/common/constants/ScheduledPayment.d.ts +1 -10
  142. package/dist/common/constants/SpendingPlan.d.ts +0 -10
  143. package/dist/common/constants/index.d.ts +2 -6
  144. package/dist/common/context/GlobalDataProvider.d.ts +2 -1
  145. package/dist/common/context/hooks.d.ts +24 -24
  146. package/dist/common/hooks/index.d.ts +2 -0
  147. package/dist/common/hooks/useAccountDisplayName.d.ts +1 -1
  148. package/dist/common/hooks/useCombineEvents.d.ts +1 -1
  149. package/dist/common/hooks/usePrevious.d.ts +2 -0
  150. package/dist/common/hooks/useWidgetHeaderStyles.d.ts +34 -0
  151. package/dist/common/index.d.ts +3 -3
  152. package/dist/common/index.es.js +254 -1348
  153. package/dist/common/utils/AccountDisplayName.d.ts +1 -1
  154. package/dist/common/utils/AccountFilter.d.ts +2 -2
  155. package/dist/common/utils/Analytics.d.ts +1 -1
  156. package/dist/common/utils/PostMessage.d.ts +1 -0
  157. package/dist/common/utils/Theme.d.ts +7 -6
  158. package/dist/common/utils/index.d.ts +1 -6
  159. package/dist/{accounts → core}/api/AccountApi.d.ts +2 -2
  160. package/dist/{common → core}/api/AnalyticsApi.d.ts +1 -1
  161. package/dist/{common → core}/api/AppDataApi.d.ts +2 -2
  162. package/dist/{common → core}/api/BannerApi.d.ts +1 -1
  163. package/dist/{common → core}/api/BeatApi.d.ts +2 -2
  164. package/dist/{budgets → core}/api/BudgetsApi.d.ts +5 -1
  165. package/dist/{common → core}/api/CategoryApi.d.ts +2 -2
  166. package/dist/{finstrong → core}/api/FinstrongApi.d.ts +2 -2
  167. package/dist/{common → core}/api/GlobalCopyApi.d.ts +2 -2
  168. package/dist/{goals → core}/api/GoalApi.d.ts +2 -2
  169. package/dist/{help → core}/api/HelpApi.d.ts +2 -2
  170. package/dist/{investments → core}/api/HoldingApi.d.ts +2 -2
  171. package/dist/{merchants → core}/api/MerchantApi.d.ts +2 -2
  172. package/dist/{common → core}/api/NotificationApi.d.ts +2 -2
  173. package/dist/{recurringtransactions → core}/api/RepeatingTransactionsApi.d.ts +2 -1
  174. package/dist/{common → core}/api/ScheduledPaymentsApi.d.ts +2 -2
  175. package/dist/{settings → core}/api/SettingsApi.d.ts +2 -3
  176. package/dist/{transactions → core}/api/TransactionApi.d.ts +2 -2
  177. package/dist/{common → core}/api/UserApi.d.ts +2 -2
  178. package/dist/{common → core}/api/WidgetApi.d.ts +1 -1
  179. package/dist/core/api/index.d.ts +20 -0
  180. package/dist/{common → core}/constants/ApiEndpoints.d.ts +1 -2
  181. package/dist/{common → core}/constants/DefaultConfig.d.ts +1 -1
  182. package/dist/core/constants/Transaction.d.ts +10 -0
  183. package/dist/core/constants/index.d.ts +4 -0
  184. package/dist/core/constants/repeatingTransactions.d.ts +10 -0
  185. package/dist/core/index.d.ts +4 -0
  186. package/dist/core/index.es.js +108 -0
  187. package/dist/{accounts → core}/stores/AccountStore.d.ts +15 -3
  188. package/dist/{analytics → core}/stores/AnalyticsStore.d.ts +1 -1
  189. package/dist/{common → core}/stores/AppDataStore.d.ts +1 -2
  190. package/dist/{insights/store → core/stores}/BeatStore.d.ts +3 -3
  191. package/dist/{budgets/store → core/stores}/BudgetsStore.d.ts +15 -2
  192. package/dist/{cashflow/stores/UiStore.d.ts → core/stores/CashflowStore.d.ts} +10 -2
  193. package/dist/{categories → core}/stores/CategoryStore.d.ts +24 -2
  194. package/dist/{common → core}/stores/ConnectStore.d.ts +1 -1
  195. package/dist/core/stores/DebtsStore.d.ts +22 -0
  196. package/dist/{finstrong → core}/stores/FinstrongStore.d.ts +5 -4
  197. package/dist/{common → core}/stores/GlobalStore.d.ts +4 -25
  198. package/dist/{goals → core}/stores/GoalStore.d.ts +3 -2
  199. package/dist/{help/store → core/stores}/HelpStore.d.ts +4 -5
  200. package/dist/{investments → core}/stores/HoldingStore.d.ts +4 -3
  201. package/dist/{merchants → core}/stores/MerchantStore.d.ts +3 -2
  202. package/dist/{networth → core}/stores/NetWorthStore.d.ts +3 -3
  203. package/dist/{notifications → core}/stores/NotificationStore.d.ts +3 -1
  204. package/dist/{recurringtransactions → core}/stores/RecurringTransactionsStore.d.ts +3 -2
  205. package/dist/{settings → core}/stores/SettingsStore.d.ts +4 -4
  206. package/dist/{transactions → core}/stores/TransactionStore.d.ts +30 -4
  207. package/dist/{trends → core}/stores/TrendsStore.d.ts +11 -4
  208. package/dist/core/stores/index.d.ts +24 -0
  209. package/dist/{common → core}/types/Analytics.d.ts +6 -3
  210. package/dist/{common → core}/types/AppData.d.ts +8 -2
  211. package/dist/{common → core}/types/Beat.d.ts +2 -0
  212. package/dist/{common → core}/types/Budget.d.ts +8 -0
  213. package/dist/{common → core}/types/Client.d.ts +1 -0
  214. package/dist/{common → core}/types/Expense.d.ts +2 -1
  215. package/dist/{common → core}/types/Finstrong.d.ts +0 -2
  216. package/dist/{networth → core}/types/NetWorth.d.ts +1 -10
  217. package/dist/{common → core}/types/Notification.d.ts +15 -5
  218. package/dist/core/types/Offer.d.ts +32 -0
  219. package/dist/{common → core}/types/Widgets.d.ts +1 -0
  220. package/dist/{common → core}/types/index.d.ts +4 -3
  221. package/dist/{common → core}/types/localization/BudgetsCopy.d.ts +26 -0
  222. package/dist/{common → core}/types/localization/CashflowCopy.d.ts +1 -0
  223. package/dist/{common → core}/types/localization/CommonCopy.d.ts +3 -0
  224. package/dist/{common → core}/types/localization/DebtsCopy.d.ts +5 -0
  225. package/dist/{common → core}/types/localization/GoalsCopy.d.ts +0 -1
  226. package/dist/{common → core}/types/localization/InsightsFeedCopy.d.ts +11 -0
  227. package/dist/{common → core}/types/localization/RecurringCopy.d.ts +2 -0
  228. package/dist/{common → core}/types/localization/SpendingCopy.d.ts +1 -0
  229. package/dist/{common → core}/types/localization/TransactionsCopy.d.ts +11 -6
  230. package/dist/{common → core}/types/localization/TrendsCopy.d.ts +2 -0
  231. package/dist/{accounts/utils/Accounts.d.ts → core/utils/AccountUtils.d.ts} +2 -2
  232. package/dist/{microinsights/utils/beatUtils.d.ts → core/utils/BeatUtils.d.ts} +1 -1
  233. package/dist/{budgets → core}/utils/BudgetUtil.d.ts +7 -2
  234. package/dist/{categories/util → core/utils}/CategoryUtil.d.ts +6 -1
  235. package/dist/core/utils/DebtUtils.d.ts +31 -0
  236. package/dist/core/utils/FinstrongUtils.d.ts +7 -0
  237. package/dist/{goals/util → core/utils}/GoalsUtil.d.ts +1 -1
  238. package/dist/core/utils/HelpUtil.d.ts +3 -0
  239. package/dist/{investments/util → core/utils}/InvestmentUtil.d.ts +2 -2
  240. package/dist/{common → core}/utils/Localization.d.ts +9 -1
  241. package/dist/{networth → core}/utils/NetWorthUtils.d.ts +1 -2
  242. package/dist/{notifications → core}/utils/NotificationUtils.d.ts +2 -1
  243. package/dist/{common → core}/utils/NumberFormatting.d.ts +1 -1
  244. package/dist/{recurringtransactions/util/RecurringTransactions.d.ts → core/utils/RecurringTransactionsUtil.d.ts} +2 -2
  245. package/dist/{settings/util/Notifications.d.ts → core/utils/SettingsUtil.d.ts} +1 -1
  246. package/dist/{transactions/utils/buildDetailedTransactions.d.ts → core/utils/TransactionUtils.d.ts} +12 -2
  247. package/dist/{trends/utils/TrendsData.d.ts → core/utils/TrendsUtil.d.ts} +1 -1
  248. package/dist/core/utils/index.d.ts +2 -0
  249. package/dist/dashboard/index.es.js +39 -38
  250. package/dist/debts/DebtsWidget.d.ts +1 -1
  251. package/dist/debts/components/DebtsChart.d.ts +1 -1
  252. package/dist/debts/components/DebtsTable.d.ts +1 -1
  253. package/dist/debts/components/SnowballCard.d.ts +1 -1
  254. package/dist/debts/components/actions/DebtsPriorityAction.d.ts +6 -1
  255. package/dist/debts/components/actions/InterestRateAction.d.ts +1 -1
  256. package/dist/debts/components/actions/MonthlyPaymentAction.d.ts +1 -1
  257. package/dist/debts/components/actions/OriginalBalanceAction.d.ts +1 -1
  258. package/dist/debts/components/debtspaydown/PaydownButton.d.ts +2 -1
  259. package/dist/debts/components/debtspriority/DebtsPriorityButton.d.ts +3 -1
  260. package/dist/debts/hooks/useDebtsUiStore.d.ts +1 -1
  261. package/dist/debts/index.d.ts +0 -1
  262. package/dist/debts/index.es.js +715 -775
  263. package/dist/debts/utils/DebtsTable.d.ts +1 -1
  264. package/dist/debts/utils/SnowballCard.d.ts +2 -2
  265. package/dist/finstrong/FinstrongWidget.d.ts +2 -2
  266. package/dist/finstrong/components/HealthChart.d.ts +1 -1
  267. package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +1 -1
  268. package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +1 -1
  269. package/dist/finstrong/components/shared/Accounts.d.ts +1 -1
  270. package/dist/finstrong/components/shared/DoubleBarChart.d.ts +1 -0
  271. package/dist/finstrong/components/shared/ScoreHistoryTimeline.d.ts +1 -1
  272. package/dist/finstrong/components/shared/Transactions.d.ts +1 -1
  273. package/dist/finstrong/index.d.ts +0 -2
  274. package/dist/finstrong/index.es.js +1587 -1349
  275. package/dist/finstrong/util/finstrongUtils.d.ts +3 -9
  276. package/dist/goals/GoalsWidget.d.ts +2 -2
  277. package/dist/goals/components/AccountSelectionDrawer.d.ts +1 -1
  278. package/dist/goals/components/AddGoal.d.ts +1 -1
  279. package/dist/goals/components/GoalDetails.d.ts +1 -1
  280. package/dist/goals/components/GoalDetailsDrawer.d.ts +1 -1
  281. package/dist/goals/components/GoalList.d.ts +1 -1
  282. package/dist/goals/components/GoalStatusCard.d.ts +1 -1
  283. package/dist/goals/components/ManageGoals.d.ts +1 -1
  284. package/dist/goals/components/actions/AccountAction.d.ts +1 -1
  285. package/dist/goals/components/actions/AddRetirementAccountAction.d.ts +1 -1
  286. package/dist/goals/components/actions/AmountToSaveAction.d.ts +1 -1
  287. package/dist/goals/components/actions/BirthdayAction.d.ts +1 -1
  288. package/dist/goals/components/actions/ChangeAccountAction.d.ts +1 -1
  289. package/dist/goals/components/actions/ContributionAction.d.ts +1 -1
  290. package/dist/goals/components/actions/GoalNameAction.d.ts +1 -1
  291. package/dist/goals/components/actions/InterestRateAction.d.ts +1 -1
  292. package/dist/goals/components/actions/MonthlyPaymentAction.d.ts +1 -1
  293. package/dist/goals/components/actions/OriginalBalanceAction.d.ts +1 -1
  294. package/dist/goals/components/actions/RetirementAgeAction.d.ts +1 -1
  295. package/dist/goals/components/addgoal/AddGoalListItem.d.ts +2 -2
  296. package/dist/goals/components/managegoals/CompleteListItem.d.ts +1 -1
  297. package/dist/goals/components/managegoals/OngoingListItem.d.ts +3 -2
  298. package/dist/goals/components/managegoals/ReorderGoals.d.ts +1 -1
  299. package/dist/goals/components/micro/GoalMicroStatusCard.d.ts +1 -1
  300. package/dist/goals/index.d.ts +0 -2
  301. package/dist/goals/index.es.js +707 -787
  302. package/dist/help/HelpWidget.d.ts +2 -2
  303. package/dist/help/components/HelpContent.d.ts +1 -1
  304. package/dist/help/components/HelpList.d.ts +1 -1
  305. package/dist/help/components/content/BottomImageContent.d.ts +1 -1
  306. package/dist/help/components/content/ContentItem.d.ts +1 -1
  307. package/dist/help/components/content/LeftImageContent.d.ts +1 -1
  308. package/dist/help/components/content/NoImageContent.d.ts +1 -1
  309. package/dist/help/components/content/RightImageContent.d.ts +1 -1
  310. package/dist/help/components/content/TopImageContent.d.ts +1 -1
  311. package/dist/help/components/content/section/Accounts.d.ts +1 -1
  312. package/dist/help/components/content/section/Budgets.d.ts +1 -1
  313. package/dist/help/components/content/section/CashFlow.d.ts +1 -1
  314. package/dist/help/components/content/section/Debts.d.ts +1 -1
  315. package/dist/help/components/content/section/General.d.ts +1 -1
  316. package/dist/help/components/content/section/Goals.d.ts +1 -1
  317. package/dist/help/components/content/section/Insights.d.ts +1 -1
  318. package/dist/help/components/content/section/Investments.d.ts +1 -1
  319. package/dist/help/components/content/section/Mobile.d.ts +1 -1
  320. package/dist/help/components/content/section/NetWorth.d.ts +1 -1
  321. package/dist/help/components/content/section/Notifications.d.ts +1 -1
  322. package/dist/help/components/content/section/RecurringTransactions.d.ts +1 -1
  323. package/dist/help/components/content/section/Spending.d.ts +1 -1
  324. package/dist/help/components/content/section/Transactions.d.ts +1 -1
  325. package/dist/help/components/content/section/Trends.d.ts +1 -1
  326. package/dist/help/components/content/section/index.d.ts +15 -15
  327. package/dist/help/components/requestsupport/ContactSupport.d.ts +1 -1
  328. package/dist/help/components/requestsupport/HelpByCategoryList.d.ts +1 -1
  329. package/dist/help/components/requestsupport/MissingInstitution.d.ts +1 -1
  330. package/dist/help/components/requestsupport/PopularTopicsDrawer.d.ts +1 -1
  331. package/dist/help/components/requestsupport/PopularTopicsList.d.ts +1 -1
  332. package/dist/help/components/requestsupport/RequestSupport.d.ts +1 -1
  333. package/dist/help/components/requestsupport/RequestSupportFooter.d.ts +1 -1
  334. package/dist/help/components/requestsupport/RequestSupportInstitution.d.ts +1 -1
  335. package/dist/help/components/requestsupport/SupportSuccessMessage.d.ts +1 -1
  336. package/dist/help/index.es.js +19 -10
  337. package/dist/help/utils/index.d.ts +0 -1
  338. package/dist/{hooks-fY_n74f7.mjs → hooks-BaO_gOI6.mjs} +23 -23
  339. package/dist/insights/components/feed/Header.d.ts +8 -0
  340. package/dist/insights/components/index.d.ts +53 -0
  341. package/dist/insights/components/insights/AccountDiscoverability/AccountDiscoverability.d.ts +3 -0
  342. package/dist/insights/components/insights/AccountDiscoverability/index.d.ts +1 -0
  343. package/dist/insights/components/insights/AccountDiscoverability/types/AccountDiscoverability.d.ts +3 -0
  344. package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/AmericanUpcomingTaxDeadlineAlert.d.ts +2 -0
  345. package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/index.d.ts +1 -0
  346. package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/types/AmericanUpcomingTaxDeadlineProps.d.ts +4 -0
  347. package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandard.d.ts +3 -0
  348. package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandardMUI.d.ts +3 -0
  349. package/dist/insights/components/insights/BillAmountNotStandard/index.d.ts +2 -0
  350. package/dist/insights/components/insights/BillAmountNotStandard/types/BillAmountNotStandard.d.ts +4 -0
  351. package/dist/insights/components/insights/CashBack/CashBack.d.ts +3 -0
  352. package/dist/insights/components/insights/CashBack/index.d.ts +1 -0
  353. package/dist/insights/components/insights/CashBack/types/CashBack.d.ts +7 -0
  354. package/dist/insights/components/insights/CategoryBudget/CategoryBudget.d.ts +3 -0
  355. package/dist/insights/components/insights/CategoryBudget/index.d.ts +1 -0
  356. package/dist/insights/components/insights/CategoryBudget/types/CategoryBudget.d.ts +10 -0
  357. package/dist/insights/components/insights/CategorySpendingV2/CategorySpendingV2.d.ts +2 -0
  358. package/dist/insights/components/insights/CategorySpendingV2/CategorySpendingV2MUI.d.ts +2 -0
  359. package/dist/insights/components/insights/CategorySpendingV2/index.d.ts +2 -0
  360. package/dist/insights/components/insights/CategorySpendingV2/types/CategorySpendingV2.d.ts +7 -0
  361. package/dist/insights/components/insights/CelebrateCreditCardPayoff/CelebrateCreditCardPayoff.d.ts +3 -0
  362. package/dist/insights/components/insights/CelebrateCreditCardPayoff/index.d.ts +1 -0
  363. package/dist/insights/components/insights/CelebrateCreditCardPayoff/types/CelebrateCreditCardPayoffProps.d.ts +9 -0
  364. package/dist/insights/components/insights/CustomTransaction/CustomTransaction.d.ts +3 -0
  365. package/dist/insights/components/insights/CustomTransaction/index.d.ts +1 -0
  366. package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsBody.d.ts +9 -0
  367. package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsLearnMoreDrawerContent.d.ts +21 -0
  368. package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsMiniInsight.d.ts +6 -0
  369. package/dist/insights/components/insights/DiscoveredAccounts/index.d.ts +3 -0
  370. package/dist/insights/components/insights/FederalBankHoliday/FederalBankHoliday.d.ts +3 -0
  371. package/dist/insights/components/insights/FederalBankHoliday/FederalBankHolidayMUI.d.ts +3 -0
  372. package/dist/insights/components/insights/FederalBankHoliday/index.d.ts +2 -0
  373. package/dist/insights/components/insights/FederalBankHoliday/types/FederalBankHoliday.d.ts +4 -0
  374. package/dist/insights/components/insights/MarketingHub/Offer.d.ts +3 -0
  375. package/dist/insights/components/insights/MarketingHub/Types.d.ts +33 -0
  376. package/dist/insights/components/insights/MarketingHub/index.d.ts +2 -0
  377. package/dist/insights/components/insights/MonthlyDebtToIncomeComparisonV2/MonthlyDebtToIncomeComparisonV2.d.ts +2 -0
  378. package/dist/insights/components/insights/MonthlyDebtToIncomeComparisonV2/index.d.ts +1 -0
  379. package/dist/insights/components/insights/MonthlyDebtToIncomeComparisonV2/types/index.d.ts +4 -0
  380. package/dist/insights/components/insights/MonthlyEmergencyFundReview/LastMonthsContributionSection.d.ts +6 -0
  381. package/dist/insights/components/insights/MonthlyEmergencyFundReview/MonthlyEmergencyFundReviewBody.d.ts +21 -0
  382. package/dist/insights/components/insights/MonthlyEmergencyFundReview/ProjectedCompletionSection.d.ts +6 -0
  383. package/dist/insights/components/insights/MonthlyEmergencyFundReview/TotalSection.d.ts +7 -0
  384. package/dist/insights/components/insights/MonthlyEmergencyFundReview/index.d.ts +4 -0
  385. package/dist/insights/components/insights/MonthlySavingsToIncomeComparison/MonthlySavingsToIncomeComparison.d.ts +2 -0
  386. package/dist/insights/components/insights/MonthlySavingsToIncomeComparison/index.d.ts +1 -0
  387. package/dist/insights/components/insights/MonthlySavingsToIncomeComparison/types/index.d.ts +4 -0
  388. package/dist/insights/components/insights/MonthlySpendToIncomeComparisonV2/MonthlySpendToIncomeComparisonV2.d.ts +2 -0
  389. package/dist/insights/components/insights/MonthlySpendToIncomeComparisonV2/index.d.ts +1 -0
  390. package/dist/insights/components/insights/MonthlySpendToIncomeComparisonV2/types/index.d.ts +4 -0
  391. package/dist/insights/components/insights/MonthlySpendingComparisonV2/MonthlySpendingComparisonV2.d.ts +3 -0
  392. package/dist/insights/components/insights/MonthlySpendingComparisonV2/__test__/MonthlySpendComparisonV2.test.d.ts +1 -0
  393. package/dist/insights/components/insights/MonthlySpendingComparisonV2/index.d.ts +1 -0
  394. package/dist/insights/components/insights/MonthlySpendingComparisonV2/types/MonthlySpendComparisonV2.d.ts +4 -0
  395. package/dist/insights/components/insights/P2pCategorization/P2pCategorization.d.ts +3 -0
  396. package/dist/insights/components/insights/P2pCategorization/_tests_/P2pCategorizationMultipleTransaction.test.d.ts +0 -0
  397. package/dist/insights/components/insights/P2pCategorization/_tests_/P2pCategorizationSingleTransaction.test.d.ts +0 -0
  398. package/dist/insights/components/insights/P2pCategorization/index.d.ts +4 -0
  399. package/dist/insights/components/insights/P2pCategorization/shared/P2pCategorizationMultipleTransactions.d.ts +3 -0
  400. package/dist/insights/components/insights/P2pCategorization/shared/P2pCategorizationSingleTransaction.d.ts +3 -0
  401. package/dist/insights/components/insights/P2pCategorization/types/P2pCategorization.d.ts +17 -0
  402. package/dist/insights/components/insights/SavingsAccountBalancesSummary/SavingsAccountBalancesSummary.d.ts +2 -0
  403. package/dist/insights/components/insights/SavingsAccountBalancesSummary/index.d.ts +1 -0
  404. package/dist/insights/components/insights/SavingsAccountBalancesSummary/types/SavingsAccountBalancesSummary.d.ts +4 -0
  405. package/dist/insights/components/insights/SetUpDirectDeposit/SetUpDirectDepositBody.d.ts +3 -0
  406. package/dist/insights/components/insights/SetUpDirectDeposit/index.d.ts +1 -0
  407. package/dist/insights/components/insights/SharedDeposit/SharedDeposit.d.ts +2 -0
  408. package/dist/insights/components/insights/SharedDeposit/index.d.ts +1 -0
  409. package/dist/insights/components/insights/SharedDeposit/types/index.d.ts +7 -0
  410. package/dist/insights/components/insights/SwitchDirectDeposit/AccountBox.d.ts +7 -0
  411. package/dist/insights/components/insights/SwitchDirectDeposit/SwitchDirectDepositBody.d.ts +10 -0
  412. package/dist/insights/components/insights/SwitchDirectDeposit/SwitchDirectDepositMainContainer.d.ts +9 -0
  413. package/dist/insights/components/insights/SwitchDirectDeposit/index.d.ts +3 -0
  414. package/dist/insights/components/insights/UnifiedDeposit/UnifiedDeposit.d.ts +7 -0
  415. package/dist/insights/components/insights/UnifiedDeposit/UnifiedDepositBody.d.ts +11 -0
  416. package/dist/insights/components/insights/UnifiedDeposit/index.d.ts +1 -0
  417. package/dist/insights/components/insights/UserFeedback/StyledToggleButton.d.ts +7 -0
  418. package/dist/insights/components/insights/UserFeedback/Types.d.ts +27 -0
  419. package/dist/insights/components/insights/UserFeedback/UserFeedback.d.ts +3 -0
  420. package/dist/insights/components/insights/UserFeedback/index.d.ts +1 -0
  421. package/dist/insights/components/insights/WeeklyNoSpendDays/BubbleWeek.d.ts +9 -0
  422. package/dist/insights/components/insights/WeeklyNoSpendDays/NoSpendIcons.d.ts +1 -0
  423. package/dist/insights/components/insights/WeeklyNoSpendDays/WeeklyNoSpendDays.d.ts +12 -0
  424. package/dist/insights/components/insights/WeeklyNoSpendDays/_tests_/WeeklyNoSpendDays.test.d.ts +0 -0
  425. package/dist/insights/components/insights/WeeklyNoSpendDays/index.d.ts +1 -0
  426. package/dist/insights/components/insights/index.d.ts +25 -0
  427. package/dist/insights/components/shared/AccountBalanceCard.d.ts +13 -0
  428. package/dist/insights/components/shared/BottomSheet.d.ts +13 -0
  429. package/dist/insights/components/shared/CarouselControls.d.ts +14 -0
  430. package/dist/insights/components/shared/ChartDrawerTemplate/ChartDrawerTemplate.d.ts +30 -0
  431. package/dist/insights/components/shared/ChartDrawerTemplate/TipSection.d.ts +9 -0
  432. package/dist/insights/components/shared/ChartTransactionWithDrillDown.d.ts +22 -0
  433. package/dist/insights/components/shared/Charts/BarChart/BarChart.d.ts +2 -0
  434. package/dist/insights/components/shared/Charts/BarChart/BarChartV2.d.ts +2 -0
  435. package/dist/insights/components/shared/Charts/BarChart/ChartLegend.d.ts +9 -0
  436. package/dist/insights/components/shared/Charts/BarChart/ChartLegendV2.d.ts +10 -0
  437. package/dist/insights/components/shared/Charts/BarChart/CustomBarPlot.d.ts +18 -0
  438. package/dist/insights/components/shared/Charts/BarChart/CustomBarPlotV2.d.ts +18 -0
  439. package/dist/insights/components/shared/Charts/BarChart/CustomDoubleBarPlot.d.ts +18 -0
  440. package/dist/insights/components/shared/Charts/BarChart/CustomDoubleBarPlotMXUI.d.ts +18 -0
  441. package/dist/insights/components/shared/Charts/BarChart/DoubleBarChart.d.ts +2 -0
  442. package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartLegend.d.ts +10 -0
  443. package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartLegendMXUI.d.ts +10 -0
  444. package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartMXUI.d.ts +2 -0
  445. package/dist/insights/components/shared/Charts/BarChart/index.d.ts +4 -0
  446. package/dist/insights/components/shared/Charts/EmptyBarChart.d.ts +1 -0
  447. package/dist/insights/components/shared/Charts/index.d.ts +2 -0
  448. package/dist/insights/components/shared/Confetti.d.ts +5 -0
  449. package/dist/insights/components/shared/ConnectionCard.d.ts +14 -0
  450. package/dist/insights/components/shared/ConnectionDetailDrillDown.d.ts +25 -0
  451. package/dist/insights/components/shared/Coupon.d.ts +8 -0
  452. package/dist/insights/components/shared/DeepLinks/DeepLinkDialog.d.ts +11 -0
  453. package/dist/insights/components/shared/DeepLinks/DirectDeposit/Circle.d.ts +6 -0
  454. package/dist/insights/components/shared/DeepLinks/DirectDeposit/DirectDepositDeepLink.d.ts +24 -0
  455. package/dist/insights/components/shared/DeepLinks/DirectDeposit/Dot.d.ts +1 -0
  456. package/dist/insights/components/shared/DeepLinks/DirectDeposit/Oval.d.ts +1 -0
  457. package/dist/insights/components/shared/DirectDeposit/DirectDeposit.d.ts +3 -0
  458. package/dist/insights/components/shared/DirectDeposit/DirectDepositSubHeader.d.ts +14 -0
  459. package/dist/insights/components/shared/DirectDeposit/FullFeedBodyHeader.d.ts +10 -0
  460. package/dist/insights/components/shared/DirectDeposit/LeftBox.d.ts +7 -0
  461. package/dist/insights/components/shared/DirectDeposit/MiniBodyHeader.d.ts +10 -0
  462. package/dist/insights/components/shared/DirectDeposit/RightBox.d.ts +8 -0
  463. package/dist/insights/components/shared/DiscoveredAccountsConnect.d.ts +8 -0
  464. package/dist/insights/components/shared/DonutChartV2.d.ts +13 -0
  465. package/dist/insights/components/shared/DrillDownCalculation/BalanceStepper.d.ts +12 -0
  466. package/dist/insights/components/shared/DrillDownCalculation/DrillDownCalculation.d.ts +31 -0
  467. package/dist/insights/components/shared/ErrorCard/ErrorCard.d.ts +8 -0
  468. package/dist/insights/components/shared/GenericFeedback/FeedbackButtons.d.ts +15 -0
  469. package/dist/insights/components/shared/GenericFeedback/FeedbackDescription.d.ts +5 -0
  470. package/dist/insights/components/shared/GenericFeedback/FeedbackHeader.d.ts +15 -0
  471. package/dist/insights/components/shared/GenericFeedback/FeedbackOptions.d.ts +12 -0
  472. package/dist/insights/components/shared/GenericFeedback/FeedbackText.d.ts +13 -0
  473. package/dist/insights/components/shared/GoalProgress.d.ts +10 -0
  474. package/dist/insights/components/shared/GradientBox.d.ts +8 -0
  475. package/dist/insights/components/shared/InsightsCard/BeatCard.d.ts +20 -0
  476. package/dist/insights/components/shared/InsightsCard/BeatCardMUI.d.ts +20 -0
  477. package/dist/insights/components/shared/InsightsCard/CardButtonSection.d.ts +7 -0
  478. package/dist/insights/components/shared/InsightsCard/CardError.d.ts +5 -0
  479. package/dist/insights/components/shared/InsightsCard/CardFooter.d.ts +7 -0
  480. package/dist/insights/components/shared/InsightsCard/CardHeader.d.ts +11 -0
  481. package/dist/insights/components/shared/InsightsCard/CardHeaderMUI.d.ts +11 -0
  482. package/dist/insights/components/shared/InsightsCard/CardLoading.d.ts +5 -0
  483. package/dist/insights/components/shared/InsightsCard/ClientConfigurableCta.d.ts +5 -0
  484. package/dist/insights/components/shared/InsightsCard/ContentAndDescription.d.ts +15 -0
  485. package/dist/insights/components/shared/InsightsCard/ContentAndDescriptionMUI.d.ts +15 -0
  486. package/dist/insights/components/shared/InsightsCard/Description.d.ts +10 -0
  487. package/dist/insights/components/shared/InsightsCard/DescriptionMUI.d.ts +10 -0
  488. package/dist/insights/components/shared/InsightsCard/EmbeddedCard.d.ts +9 -0
  489. package/dist/insights/components/shared/InsightsCard/FeedbackCard.d.ts +13 -0
  490. package/dist/insights/components/shared/InsightsCard/InsightButton.d.ts +12 -0
  491. package/dist/insights/components/shared/InsightsCard/MiniDescription.d.ts +9 -0
  492. package/dist/insights/components/shared/InsightsCard/MiniDescriptionMUI.d.ts +9 -0
  493. package/dist/insights/components/shared/MenuAction.d.ts +15 -0
  494. package/dist/insights/components/shared/MiniInsightCard.d.ts +16 -0
  495. package/dist/insights/components/shared/P2P/P2PMultipleCategorization.d.ts +12 -0
  496. package/dist/insights/components/shared/P2PCategorizationSingleAccount/P2PCategorizationSingleAccount.d.ts +10 -0
  497. package/dist/insights/components/shared/ProgressBar.d.ts +9 -0
  498. package/dist/insights/components/shared/SaveAnExtra100/SaveAnExtra100.d.ts +9 -0
  499. package/dist/insights/components/shared/SaveEnoughToLiveOnBottomSection.d.ts +11 -0
  500. package/dist/insights/components/shared/SaveEnoughToLiveOnTopSection.d.ts +2 -0
  501. package/dist/insights/components/shared/StatusIndicator.d.ts +15 -0
  502. package/dist/insights/components/shared/TabContainer.d.ts +8 -0
  503. package/dist/insights/components/shared/ThemedSVGImage.d.ts +2 -0
  504. package/dist/insights/components/shared/TransactionCard.d.ts +14 -0
  505. package/dist/insights/components/shared/ZeroState/LinedCardZeroState.d.ts +1 -0
  506. package/dist/insights/components/shared/index.d.ts +2 -0
  507. package/dist/insights/hooks/useContainerDimensions.d.ts +5 -0
  508. package/dist/insights/index.d.ts +1 -1
  509. package/dist/insights/index.es.js +4843 -2
  510. package/dist/insights/themes/Typography.d.ts +1 -0
  511. package/dist/insights/themes/index.d.ts +1 -0
  512. package/dist/insights/types/Charts/BarChart.d.ts +96 -0
  513. package/dist/insights/types/CommonBeat.d.ts +367 -0
  514. package/dist/insights/types/DirectDeposit.d.ts +16 -0
  515. package/dist/insights/types/ThemedSVGImage.d.ts +5 -0
  516. package/dist/investments/InvestmentsWidget.d.ts +2 -2
  517. package/dist/investments/components/AnalysisDetails.d.ts +1 -1
  518. package/dist/investments/components/allocation/util/createInvestementsAllocationData.d.ts +2 -2
  519. package/dist/investments/index.es.js +574 -574
  520. package/dist/merchants/index.d.ts +0 -1
  521. package/dist/merchants/index.es.js +18 -20
  522. package/dist/microinsights/InsightsMicroWidget.d.ts +1 -14
  523. package/dist/microinsights/MicroCardTemplate.d.ts +2 -4
  524. package/dist/microinsights/beaticons/AreaChartIcon.d.ts +3 -0
  525. package/dist/microinsights/beaticons/AverageSpendComparisonIcon.d.ts +3 -0
  526. package/dist/microinsights/beaticons/BeatMaterialIcon.d.ts +5 -1
  527. package/dist/microinsights/beaticons/InstitutionLogoIcon.d.ts +5 -0
  528. package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +0 -2
  529. package/dist/microinsights/beaticons/index.d.ts +3 -0
  530. package/dist/microinsights/cards/InsightCard.d.ts +3 -3
  531. package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +3 -3
  532. package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +3 -3
  533. package/dist/microinsights/cards/ZeroStateCard.d.ts +3 -3
  534. package/dist/microinsights/carousel/BeatList.d.ts +3 -3
  535. package/dist/microinsights/carousel/CarouselHeader.d.ts +4 -2
  536. package/dist/microinsights/carousel/MicroBeatCarousel.d.ts +12 -12
  537. package/dist/microinsights/constants/Analytics.d.ts +1 -1
  538. package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +1 -1
  539. package/dist/microinsights/context/hooks.d.ts +1 -1
  540. package/dist/microinsights/index.d.ts +1 -1
  541. package/dist/microinsights/index.es.js +1 -1
  542. package/dist/microinsights/interfaces.d.ts +23 -40
  543. package/dist/microinsights/stores/CopyStore.d.ts +2 -2
  544. package/dist/microinsights/stores/InsightsMicroWidgetStore.d.ts +2 -2
  545. package/dist/microinsights/utils/DataSeries.d.ts +1 -1
  546. package/dist/microinsights/utils/colorType.d.ts +22 -0
  547. package/dist/networth/NetWorthWidget.d.ts +1 -1
  548. package/dist/networth/components/AssetsLiabilitiesDetail.d.ts +1 -1
  549. package/dist/networth/components/GainsLossesDetail.d.ts +1 -1
  550. package/dist/networth/components/NetWorthChange.d.ts +1 -1
  551. package/dist/networth/components/NetWorthListItem.d.ts +1 -1
  552. package/dist/networth/components/NetWorthSummary.d.ts +1 -1
  553. package/dist/networth/components/micro/NetworthData.d.ts +1 -1
  554. package/dist/networth/components/micro/ZeroState.d.ts +1 -1
  555. package/dist/networth/index.d.ts +0 -4
  556. package/dist/networth/index.es.js +302 -314
  557. package/dist/notifications/components/NotificationBadge.d.ts +1 -1
  558. package/dist/notifications/components/NotificationCard.d.ts +1 -1
  559. package/dist/notifications/components/NotificationDrawer.d.ts +1 -1
  560. package/dist/notifications/components/NotificationList.d.ts +2 -1
  561. package/dist/notifications/index.d.ts +0 -2
  562. package/dist/notifications/index.es.js +101 -93
  563. package/dist/recurringtransactions/RecurringTransactionsMiniWidget.d.ts +1 -1
  564. package/dist/recurringtransactions/RecurringTransactionsWidget.d.ts +2 -2
  565. package/dist/recurringtransactions/components/PaymentSchedule.d.ts +1 -1
  566. package/dist/recurringtransactions/components/RecurrenceList.d.ts +1 -1
  567. package/dist/recurringtransactions/components/RecurrenceRow.d.ts +1 -1
  568. package/dist/recurringtransactions/components/RecurringTransactionDetails.d.ts +1 -1
  569. package/dist/recurringtransactions/components/actions/PaymentScheduleAction.d.ts +1 -1
  570. package/dist/recurringtransactions/components/micro/MerchantLogosRow.d.ts +1 -1
  571. package/dist/recurringtransactions/components/micro/OverlappingMerchantLogos.d.ts +1 -1
  572. package/dist/recurringtransactions/components/shared/recurringsettings/AddRecurringTransactionDetails.d.ts +1 -1
  573. package/dist/recurringtransactions/components/shared/recurringsettings/RecurringRow.d.ts +1 -1
  574. package/dist/recurringtransactions/index.d.ts +0 -1
  575. package/dist/recurringtransactions/index.es.js +489 -462
  576. package/dist/settings/NotificationSettingsWidget.d.ts +1 -1
  577. package/dist/settings/SettingsWidget.d.ts +2 -2
  578. package/dist/settings/TransactionRulesWidget.d.ts +1 -1
  579. package/dist/settings/components/devices/DeviceDialog.d.ts +1 -1
  580. package/dist/settings/components/devices/DeviceList.d.ts +1 -1
  581. package/dist/settings/components/devices/DeviceTable.d.ts +1 -1
  582. package/dist/settings/components/notifications/AccountNotificationProfile.d.ts +1 -1
  583. package/dist/settings/components/notifications/AccountProfileListItem.d.ts +1 -1
  584. package/dist/settings/components/notifications/NotificationProfile.d.ts +1 -1
  585. package/dist/settings/components/notifications/NotificationSettings.d.ts +1 -1
  586. package/dist/settings/components/transactionrules/actions/EditRuleAction.d.ts +1 -1
  587. package/dist/settings/index.d.ts +0 -2
  588. package/dist/settings/index.es.js +419 -430
  589. package/dist/spending/SpendingMiniWidget.d.ts +1 -1
  590. package/dist/spending/SpendingWidget.d.ts +1 -1
  591. package/dist/spending/index.es.js +229 -222
  592. package/dist/spending/utils/SpendingData.d.ts +1 -1
  593. package/dist/transactions/TransactionWidget.d.ts +1 -1
  594. package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -1
  595. package/dist/transactions/components/shared/TransactionList.d.ts +3 -4
  596. package/dist/transactions/components/shared/getEmbeddedInstanceSlotByBeatTemplates.d.ts +17 -0
  597. package/dist/transactions/components/shared/transactiondetails/Description.d.ts +1 -1
  598. package/dist/transactions/components/shared/transactiondetails/FlagTransaction.d.ts +1 -1
  599. package/dist/transactions/components/shared/transactiondetails/TransactionAmountHeader.d.ts +1 -1
  600. package/dist/transactions/components/shared/transactiondetails/TransactionDetailsView.d.ts +1 -1
  601. package/dist/transactions/components/shared/transactiondetails/actions/AddMerchantBudgetAction.d.ts +13 -0
  602. package/dist/transactions/components/shared/transactiondetails/actions/CategoryAction.d.ts +1 -1
  603. package/dist/transactions/components/shared/transactiondetails/actions/DateAction.d.ts +1 -1
  604. package/dist/transactions/components/shared/transactiondetails/actions/DeleteAction.d.ts +1 -1
  605. package/dist/transactions/components/shared/transactiondetails/actions/DeleteLogoAction.d.ts +1 -1
  606. package/dist/transactions/components/shared/transactiondetails/actions/ExcludeAction.d.ts +7 -0
  607. package/dist/transactions/components/shared/transactiondetails/actions/MemoAction.d.ts +1 -1
  608. package/dist/transactions/components/shared/transactiondetails/actions/SplitAction.d.ts +1 -1
  609. package/dist/transactions/components/shared/transactiondetails/actions/TagsAction.d.ts +1 -1
  610. package/dist/transactions/components/shared/transactiondetails/actions/index.d.ts +2 -1
  611. package/dist/transactions/components/shared/transactionlist/TransactionRow.d.ts +1 -1
  612. package/dist/transactions/components/shared/transactiontable/cells/PayeeCell.d.ts +4 -1
  613. package/dist/transactions/components/splitmanager/SplitManager.d.ts +1 -1
  614. package/dist/transactions/components/splitmanager/SplitRow.d.ts +1 -1
  615. package/dist/transactions/components/tagmanager/TagRow.d.ts +1 -1
  616. package/dist/transactions/components/transactionwidget/actions/EditCategoryAction.d.ts +1 -1
  617. package/dist/transactions/components/transactionwidget/actions/ExportCsvAction.d.ts +1 -1
  618. package/dist/transactions/constants/Actions.d.ts +4 -3
  619. package/dist/transactions/context/hooks.d.ts +1 -1
  620. package/dist/transactions/index.d.ts +0 -5
  621. package/dist/transactions/index.es.js +344 -351
  622. package/dist/transactions/utils/Filters.d.ts +1 -1
  623. package/dist/transactions/utils/Transactions.d.ts +17 -1
  624. package/dist/trends/TrendsFullWidget.d.ts +1 -1
  625. package/dist/trends/TrendsMiniWidget.d.ts +1 -1
  626. package/dist/trends/TrendsWidget.d.ts +1 -1
  627. package/dist/trends/components/CategoriesList.d.ts +1 -1
  628. package/dist/trends/components/CategoriesListItem.d.ts +1 -1
  629. package/dist/trends/components/CategoryDetails.d.ts +3 -0
  630. package/dist/trends/components/TrendsChartTotals.d.ts +1 -1
  631. package/dist/trends/components/TrendsInsights.d.ts +1 -1
  632. package/dist/trends/components/{TrendsTable.d.ts → TrendsTableContainer.d.ts} +2 -2
  633. package/dist/trends/components/trendstable/AccessibleSortIcon.d.ts +13 -0
  634. package/dist/trends/components/trendstable/TrendsTable.d.ts +12 -0
  635. package/dist/trends/index.d.ts +0 -1
  636. package/dist/trends/index.es.js +991 -876
  637. package/dist/trends/utils/SpendingData.d.ts +1 -1
  638. package/dist/trends/utils/TrendsTable.d.ts +5 -3
  639. package/dist/trends/utils/TrendsWidget.d.ts +7 -0
  640. package/dist/trends/utils/shared.d.ts +2 -2
  641. package/dist/{useAccountDisplayName-DbkgGLdg.mjs → useAccountDisplayName-CFa_MrS6.mjs} +5 -5
  642. package/dist/{useAriaLive-B3_pRUio.mjs → useAriaLive-MkYebyUR.mjs} +4 -4
  643. package/dist/{useDimensions-27p2evRx.mjs → useDimensions-CeDR9V8N.mjs} +6 -6
  644. package/dist/{useInsightsEnabled-dhmXeSyF.mjs → useInsightsEnabled-DaNLPmUU.mjs} +1 -1
  645. package/dist/{useScreenSize-B6JyS_Lj.mjs → useScreenSize-mWpmnh5w.mjs} +3 -3
  646. package/dist/{useWidgetLoadTimer-CrUzxN-P.mjs → useWidgetLoadTimer-CJb-RELP.mjs} +1 -1
  647. package/package.json +65 -43
  648. package/dist/AccountApi-DgZ8ILj1.mjs +0 -19
  649. package/dist/AccountDetailsHeader-BOV91g1o.mjs +0 -95
  650. package/dist/AccountFields-BRRH37K1.mjs +0 -140
  651. package/dist/AccountListItem-Ds5C0mOT.mjs +0 -90
  652. package/dist/AccountStore-BFKvXJSD.mjs +0 -244
  653. package/dist/Accounts-CuE8aSZN.mjs +0 -27
  654. package/dist/BeatApi-De2IaqH2.mjs +0 -21
  655. package/dist/BeatStore-D_NYuBSz.mjs +0 -81
  656. package/dist/BudgetUtil-CDSOZXem.mjs +0 -101
  657. package/dist/CashflowStore-naOtJcwo.mjs +0 -91
  658. package/dist/CategoryStore-DEqAnHbi.mjs +0 -186
  659. package/dist/CategoryUtil-CFHBvaV4.mjs +0 -80
  660. package/dist/CurrencyInput-DDQ4DBrE.mjs +0 -85
  661. package/dist/DateUtil-CVsMhbZU.mjs +0 -48
  662. package/dist/DebtsStore-Dv_T7Dts.mjs +0 -63
  663. package/dist/Dialog-CWymUiuO.mjs +0 -120
  664. package/dist/Donut-Dmy3JTWd.mjs +0 -86
  665. package/dist/Fetch-DecPFeGU.mjs +0 -119
  666. package/dist/FinstrongStore-BjFkMTIL.mjs +0 -451
  667. package/dist/GlobalAccountFilter-BpWlPAl5.mjs +0 -316
  668. package/dist/GoalStore-Dbjgft2i.mjs +0 -422
  669. package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
  670. package/dist/LineChart-DHj-Bufi.mjs +0 -580
  671. package/dist/Loader-BSWSYqvn.mjs +0 -24
  672. package/dist/Localization-2MODESHW.mjs +0 -30
  673. package/dist/ManageIncome-DIIyqDTp.mjs +0 -585
  674. package/dist/MerchantStore-WvZ4gnQe.mjs +0 -37
  675. package/dist/MiniWidgetContainer-DKn7ndO6.mjs +0 -56
  676. package/dist/NetWorthStore-B6ziBtaH.mjs +0 -168
  677. package/dist/Notification-Bs1fdbzI.mjs +0 -95
  678. package/dist/NotificationStore-Ck2KdNmT.mjs +0 -79
  679. package/dist/OriginalBalanceAction-DFoG79Ba.mjs +0 -115
  680. package/dist/RecurringTransactionsStore-D_--5PWH.mjs +0 -277
  681. package/dist/RepeatingTransaction-C2txVA9O.mjs +0 -292
  682. package/dist/SearchBox-B2_zLv8-.mjs +0 -42
  683. package/dist/SettingsStore-CInvh-rQ.mjs +0 -269
  684. package/dist/SpendingLegend-BxefXiQd.mjs +0 -193
  685. package/dist/TransactionApi-CjBoLleL.mjs +0 -86
  686. package/dist/TransactionDetails-CPwv9xtZ.mjs +0 -1374
  687. package/dist/TransactionStore-D2aMUClq.mjs +0 -688
  688. package/dist/TrendsStore-BdsYfCc7.mjs +0 -183
  689. package/dist/User-CulNdZUr.mjs +0 -314
  690. package/dist/ViewMoreMicroCard-CDWR16_h.mjs +0 -1147
  691. package/dist/WidgetContainer-mzejMmz2.mjs +0 -555
  692. package/dist/accounts/stores/UiStore.d.ts +0 -10
  693. package/dist/accounts/utils/index.d.ts +0 -1
  694. package/dist/cashflow/api/CashflowApi.d.ts +0 -13
  695. package/dist/cashflow/stores/CashflowStore.d.ts +0 -8
  696. package/dist/categories/stores/UiStore.d.ts +0 -20
  697. package/dist/common/api/LocalizedCopyApi.d.ts +0 -8
  698. package/dist/common/api/index.d.ts +0 -10
  699. package/dist/common/components/barchart/Bar.d.ts +0 -25
  700. package/dist/common/components/barchart/BarChart.d.ts +0 -34
  701. package/dist/common/components/barchart/BarColumn.d.ts +0 -37
  702. package/dist/common/components/barchart/Legend.d.ts +0 -8
  703. package/dist/common/components/barchart/Util.d.ts +0 -42
  704. package/dist/common/components/barchart/index.d.ts +0 -1
  705. package/dist/common/stores/index.d.ts +0 -3
  706. package/dist/common/types/SpendingPlan.d.ts +0 -44
  707. package/dist/common/utils/Categories.d.ts +0 -6
  708. package/dist/debts/store/DebtsStore.d.ts +0 -9
  709. package/dist/debts/store/DebtsUiStore.d.ts +0 -13
  710. package/dist/debts/utils/DebtStore.d.ts +0 -4
  711. package/dist/debts/utils/DebtsWidget.d.ts +0 -14
  712. package/dist/debts/utils/shared.d.ts +0 -12
  713. package/dist/exportTransactionsToCSV-BU1jTY0Q.mjs +0 -48
  714. package/dist/help/constants/index.d.ts +0 -1
  715. package/dist/help/utils/getAccessibleHelpCategories.d.ts +0 -3
  716. package/dist/transactions/analytics.d.ts +0 -3
  717. package/dist/transactions/components/shared/transactiondetails/actions/HideAction.d.ts +0 -7
  718. package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +0 -7
  719. package/dist/transactions/constants/Transaction.d.ts +0 -2
  720. package/dist/transactions/constants/TransactionsTable.d.ts +0 -17
  721. package/dist/transactions/stores/UiStore.d.ts +0 -25
  722. package/dist/transactions/utils/exportTransactionsToCSV.d.ts +0 -9
  723. package/dist/transactions/utils/sortAndFilterTransactions.d.ts +0 -3
  724. package/dist/trends/components/CategoryDetailDrawer.d.ts +0 -7
  725. package/dist/useCombineEvents-CRwX-qWE.mjs +0 -92
  726. package/dist/{common → core}/constants/Category.d.ts +0 -0
  727. package/dist/{common → core}/constants/DateFormats.d.ts +0 -0
  728. package/dist/{debts/constants/index.d.ts → core/constants/Debts.d.ts} +0 -0
  729. package/dist/{help → core}/constants/Help.d.ts +0 -0
  730. package/dist/{investments/constants/index.d.ts → core/constants/Investments.d.ts} +0 -0
  731. package/dist/{common → core}/constants/Numbers.d.ts +0 -0
  732. package/dist/{common → core}/constants/Table.d.ts +0 -0
  733. package/dist/{common → core}/stores/GlobalCopyStore.d.ts +0 -0
  734. package/dist/{common → core}/stores/GlobalUiStore.d.ts +0 -0
  735. package/dist/{common → core}/stores/UserStore.d.ts +1 -1
  736. /package/dist/{common → core}/types/Account.d.ts +0 -0
  737. /package/dist/{common → core}/types/Cashflow.d.ts +0 -0
  738. /package/dist/{common → core}/types/Category.d.ts +0 -0
  739. /package/dist/{common → core}/types/Date.d.ts +0 -0
  740. /package/dist/{common → core}/types/Debt.d.ts +0 -0
  741. /package/dist/{common → core}/types/Global.d.ts +0 -0
  742. /package/dist/{common → core}/types/GlobalCopy.d.ts +0 -0
  743. /package/dist/{common → core}/types/Goal.d.ts +0 -0
  744. /package/dist/{common → core}/types/Handlers.d.ts +0 -0
  745. /package/dist/{common → core}/types/Help.d.ts +0 -0
  746. /package/dist/{common → core}/types/Holding.d.ts +0 -0
  747. /package/dist/{common → core}/types/Institution.d.ts +0 -0
  748. /package/dist/{common → core}/types/LocalizedContent.d.ts +0 -0
  749. /package/dist/{common → core}/types/Merchant.d.ts +0 -0
  750. /package/dist/{common → core}/types/RepeatingTransaction.d.ts +0 -0
  751. /package/dist/{common → core}/types/ScheduledPayment.d.ts +0 -0
  752. /package/dist/{common → core}/types/ScreenSize.d.ts +0 -0
  753. /package/dist/{common → core}/types/Transaction.d.ts +0 -0
  754. /package/dist/{common → core}/types/User.d.ts +0 -0
  755. /package/dist/{common → core}/types/localization/AccountFilterCopy.d.ts +0 -0
  756. /package/dist/{common → core}/types/localization/AccountTypeCopy.d.ts +0 -0
  757. /package/dist/{common → core}/types/localization/AccountsCopy.d.ts +0 -0
  758. /package/dist/{common → core}/types/localization/AnalyticsCopy.d.ts +0 -0
  759. /package/dist/{common → core}/types/localization/CategoryCopy.d.ts +0 -0
  760. /package/dist/{common → core}/types/localization/ConnectCopy.d.ts +0 -0
  761. /package/dist/{common → core}/types/localization/CurrencyInputCopy.d.ts +0 -0
  762. /package/dist/{common → core}/types/localization/DateRangePickerCopy.d.ts +0 -0
  763. /package/dist/{common → core}/types/localization/FinstrongCopy.d.ts +0 -0
  764. /package/dist/{common → core}/types/localization/HelpCopy.d.ts +0 -0
  765. /package/dist/{common → core}/types/localization/InvestmentsCopy.d.ts +0 -0
  766. /package/dist/{common → core}/types/localization/MicroInsightsCopy.d.ts +0 -0
  767. /package/dist/{common → core}/types/localization/NetWorthCopy.d.ts +0 -0
  768. /package/dist/{common → core}/types/localization/NotificationsCopy.d.ts +0 -0
  769. /package/dist/{common → core}/types/localization/SettingsCopy.d.ts +0 -0
  770. /package/dist/{common → core}/types/localization/index.d.ts +0 -0
  771. /package/dist/{common → core}/utils/DateUtil.d.ts +0 -0
  772. /package/dist/{common → core}/utils/Fetch.d.ts +0 -0
  773. /package/dist/{common/utils/User.d.ts → core/utils/UserUtils.d.ts} +0 -0
@@ -1,118 +1,344 @@
1
- import { jsxs as i, Fragment as z, jsx as e } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as s, Fragment as H } from "react/jsx-runtime";
2
2
  import M from "@mui/material/Box";
3
3
  import _ from "@mui/material/Stack";
4
- import { useTheme as E, alpha as le } from "@mui/material/styles";
5
- import { PieChart as tn } from "@mui/x-charts/PieChart";
6
- import { P as I, H3 as K, Text as A, InstitutionLogo as lt, H2 as Fe, MerchantLogo as nn, Icon as on } from "@mxenabled/mxui";
7
- import { TrendingUp as rn, ArrowRightAlt as an, TrendingDown as sn, AccountBalance as dt, ChevronRight as Z, CheckCircle as cn, Cancel as ln, CreditCard as pt, Savings as dn, ContentCopy as pn, MultilineChart as _n, Add as _t, Cardiology as un, Payments as hn, CalendarMonth as mn, ExpandMore as gn } from "@mxenabled/mx-icons";
8
- import { g as yn, a as bn, r as Ze, b as fn, c as Ge, d as ut, C as we, e as ke, f as xn, h as Sn, i as vn, j as ht, k as Je, l as Cn, m as et, n as wn, o as mt, p as kn, q as gt, s as Oe, t as yt, u as Mn, v as bt, w as Dn, A as ne, x as In, P as An } from "../FinstrongStore-BjFkMTIL.mjs";
9
- import { y as Si, F as vi } from "../FinstrongStore-BjFkMTIL.mjs";
10
- import * as tt from "d3";
4
+ import { useTheme as W, alpha as ue } from "@mui/material/styles";
5
+ import { PieChart as pn } from "@mui/x-charts/PieChart";
6
+ import { Text as D, P as A, H3 as j, InstitutionLogo as yt, H2 as Ge, MerchantLogo as un, Icon as _n } from "@mxenabled/mxui";
7
+ import { ChevronRight as J, Check as mn, TrendingUp as hn, ArrowRightAlt as gn, TrendingDown as yn, AccountBalance as ft, CheckCircle as fn, Cancel as bn, CreditCard as bt, Savings as xn, ContentCopy as Cn, MultilineChart as Sn, Add as xt, Cardiology as vn, Payments as wn, CalendarMonth as kn, ExpandMore as Mn } from "@mxenabled/mx-icons";
8
+ import { addDays as Dn } from "date-fns/addDays";
9
+ import { addMonths as In } from "date-fns/addMonths";
10
+ import { addYears as An } from "date-fns/addYears";
11
+ import { differenceInDays as Tn } from "date-fns/differenceInDays";
12
+ import { differenceInMonths as On } from "date-fns/differenceInMonths";
13
+ import { differenceInWeeks as it } from "date-fns/differenceInWeeks";
14
+ import { format as Ct } from "date-fns/format";
15
+ import { startOfToday as Ve } from "date-fns/startOfToday";
16
+ import m, { useState as Rn, useRef as Fn, useCallback as st, useEffect as ct } from "react";
17
+ import Ln from "@mui/material/Avatar";
18
+ import ae from "@mui/material/Divider";
19
+ import Le from "@mui/material/List";
20
+ import _e from "@mui/material/ListItem";
21
+ import Ye from "@mui/material/ListItemAvatar";
22
+ import St from "@mui/material/ListItemButton";
23
+ import me from "@mui/material/ListItemText";
24
+ import { f as B } from "../NumberFormatting--XMeeBfr.mjs";
25
+ import { b as z } from "../Localization-DnoVyBNK.mjs";
26
+ import { f as Xe, D as Ue } from "../DateFormats-HudZ3Bjs.mjs";
27
+ import * as lt from "d3";
11
28
  import { observer as w } from "mobx-react-lite";
12
- import { u as v, b as J, a as He, o as ee, A as B, p as Tn, d as xe, m as Ne, f as On, j as je, h as Rn, i as Ln } from "../hooks-fY_n74f7.mjs";
13
- import { L as U } from "../Loader-BSWSYqvn.mjs";
14
- import h, { useState as Fn, useRef as Bn, useCallback as nt, useEffect as ot } from "react";
15
- import P from "@mui/material/Button";
16
- import V from "@mui/material/Card";
17
- import { L as Ke } from "../LineChart-DHj-Bufi.mjs";
18
- import { C as ft } from "../ConnectionsDrawer-BExzgE16.mjs";
19
- import { b as re } from "../GlobalAccountFilter-BpWlPAl5.mjs";
20
- import de from "@mui/material/Tab";
21
- import Ve from "@mui/material/Tabs";
22
- import Re from "@mui/material/TextField";
23
- import { a as Pn, f as Wn, D as $n } from "../Dialog-CWymUiuO.mjs";
24
- import { u as Xe } from "../useScreenSize-B6JyS_Lj.mjs";
25
- import { u as xt } from "../useDimensions-27p2evRx.mjs";
26
- import { E as Le } from "../EmptyState-DoxNUae-.mjs";
27
- import En from "@mui/material/Chip";
28
- import { D as oe } from "../Drawer-Bet2ZPJo.mjs";
29
- import _e from "@mui/material/Divider";
30
- import ye from "@mui/material/ListItem";
31
- import St from "@mui/material/ListItemAvatar";
32
- import be from "@mui/material/ListItemText";
33
- import { g as vt } from "../AccountDisplayName-CO7z3v99.mjs";
34
- import { g as Ct } from "../AccountFields-BRRH37K1.mjs";
35
- import Ee from "@mui/material/List";
36
- import zn from "@mui/material/ListItemButton";
37
- import Gn from "@mui/material/ListSubheader";
38
- import { f as $ } from "../NumberFormatting-DjTD0t3W.mjs";
39
- import { b as j } from "../Localization-2MODESHW.mjs";
40
- import { S as rt, F as wt, e as Hn, R as kt } from "../RepeatingTransaction-C2txVA9O.mjs";
41
- import { A as ze } from "../Account-CMjOp7S2.mjs";
42
- import { S as Nn } from "../StatusBar-CPfSXe80.mjs";
43
- import { h as Mt } from "../DateUtil-CVsMhbZU.mjs";
44
- import { T as jn, s as Kn, h as Vn, S as Xn, b as Yn } from "../TransactionDetails-CPwv9xtZ.mjs";
45
- import { T as pe } from "../TabContentContainer-CnMXkVqr.mjs";
46
- import qn from "@mui/material/useMediaQuery";
29
+ import { u as S, b as ne, a as qe, C as oe, s as L, D as Pn, d as ke, l as Qe, f as Bn, i as Ze, h as En, o as Gn } from "../hooks-BaO_gOI6.mjs";
30
+ import { L as ee } from "../Loader-CxeBwuPG.mjs";
31
+ import E from "@mui/material/Button";
32
+ import Y from "@mui/material/Card";
33
+ import { L as Je } from "../LineChart-CejWS_rh.mjs";
34
+ import { C as vt } from "../ConnectionsDrawer-CtfPXk0M.mjs";
35
+ import { C as se } from "../ConnectDrawer-Cnjr3Ddg.mjs";
36
+ import he from "@mui/material/Tab";
37
+ import et from "@mui/material/Tabs";
38
+ import Pe from "@mui/material/TextField";
39
+ import { u as tt } from "../useScreenSize-mWpmnh5w.mjs";
40
+ import { D as Wn } from "../Dialog-CwWc0AbH.mjs";
41
+ import { u as wt } from "../useDimensions-CeDR9V8N.mjs";
42
+ import { E as Be } from "../EmptyState-CJUDc3kD.mjs";
43
+ import $n from "@mui/material/Chip";
44
+ import { D as ie } from "../Drawer-BXqqBMxg.mjs";
45
+ import { g as kt } from "../AccountDisplayName-CO7z3v99.mjs";
46
+ import { g as Mt } from "../AccountFields-mwJ8NXsX.mjs";
47
+ import Nn from "@mui/material/ListSubheader";
48
+ import { S as dt } from "../Select-BFt-HD-L.mjs";
49
+ import { A as je } from "../Account-BaJmiJAG.mjs";
50
+ import { S as zn } from "../StatusBar-CPfSXe80.mjs";
51
+ import { i as Dt } from "../DateUtil-Bhq59ZVg.mjs";
52
+ import { T as Hn, s as Kn, h as Vn, S as jn, a as Yn } from "../EmbeddedCard-DPwJjqMH.mjs";
53
+ import { T as ge } from "../TabContentContainer-CnMXkVqr.mjs";
54
+ import Xn from "@mui/material/useMediaQuery";
47
55
  import { BarPlot as Un } from "@mui/x-charts/BarChart";
48
- import { ChartContainer as Qn } from "@mui/x-charts/ChartContainer";
49
- import { ChartsXAxis as Zn } from "@mui/x-charts/ChartsXAxis";
50
- import { ChartsYAxis as Jn } from "@mui/x-charts/ChartsYAxis";
51
- import { startOfMonth as Dt } from "date-fns/startOfMonth";
52
- import { endOfMonth as It } from "date-fns/endOfMonth";
53
- import { g as eo, S as to, b as no } from "../SpendingLegend-BxefXiQd.mjs";
54
- import { formatISO as oo } from "date-fns/formatISO";
55
- import { fromUnixTime as ro } from "date-fns/fromUnixTime";
56
- import { startOfToday as at } from "date-fns/startOfToday";
57
- import { subDays as ao } from "date-fns/subDays";
58
- import { c as io, d as it, S as so, i as co } from "../ManageIncome-DIIyqDTp.mjs";
59
- import { LocalizationProvider as lo, DatePicker as po, StaticDatePicker as _o } from "@mui/x-date-pickers";
60
- import { AdapterDateFns as At } from "@mui/x-date-pickers/AdapterDateFnsV3";
61
- import { R as uo } from "../RecurringSettings-BpCUcE8w.mjs";
62
- import { LocalizationProvider as ho } from "@mui/x-date-pickers/LocalizationProvider";
63
- import { format as mo } from "date-fns/format";
64
- import go from "@mui/lab/Timeline";
65
- import yo, { timelineItemClasses as bo } from "@mui/lab/TimelineItem";
56
+ import { ChartContainer as qn } from "@mui/x-charts/ChartContainer";
57
+ import { ChartsXAxis as Qn } from "@mui/x-charts/ChartsXAxis";
58
+ import { ChartsYAxis as Zn } from "@mui/x-charts/ChartsYAxis";
59
+ import { startOfMonth as It } from "date-fns/startOfMonth";
60
+ import { endOfMonth as At } from "date-fns/endOfMonth";
61
+ import { g as Jn, S as eo, b as to } from "../SpendingLegend-5Ct_FZ8o.mjs";
62
+ import { formatISO as no } from "date-fns/formatISO";
63
+ import { fromUnixTime as oo } from "date-fns/fromUnixTime";
64
+ import { subDays as ro } from "date-fns/subDays";
65
+ import { c as ao, b as pt, S as io, i as so } from "../ManageIncome-B1JfqslT.mjs";
66
+ import { F as Tt, c as co, R as Ot } from "../RecurringTransactionsUtil-B3rLEx_g.mjs";
67
+ import { LocalizationProvider as lo, DatePicker as po, StaticDatePicker as uo } from "@mui/x-date-pickers";
68
+ import { AdapterDateFns as Rt } from "@mui/x-date-pickers/AdapterDateFnsV3";
69
+ import { R as _o } from "../RecurringSettings-cm6MK_aS.mjs";
70
+ import { LocalizationProvider as mo } from "@mui/x-date-pickers/LocalizationProvider";
71
+ import ho from "@mui/lab/Timeline";
72
+ import go, { timelineItemClasses as yo } from "@mui/lab/TimelineItem";
66
73
  import fo from "@mui/lab/TimelineConnector";
67
- import xo from "@mui/lab/TimelineContent";
68
- import So from "@mui/lab/TimelineDot";
69
- import vo from "@mui/lab/TimelineSeparator";
70
- import Co from "@mui/material/Accordion";
71
- import wo from "@mui/material/AccordionDetails";
72
- import ko from "@mui/material/AccordionSummary";
73
- import { u as Mo } from "../useWidgetLoadTimer-CrUzxN-P.mjs";
74
- import { W as Do } from "../WidgetContainer-mzejMmz2.mjs";
75
- const Io = ({
74
+ import bo from "@mui/lab/TimelineContent";
75
+ import xo from "@mui/lab/TimelineDot";
76
+ import Co from "@mui/lab/TimelineSeparator";
77
+ import So from "@mui/material/Accordion";
78
+ import vo from "@mui/material/AccordionDetails";
79
+ import wo from "@mui/material/AccordionSummary";
80
+ import { u as ko } from "../useWidgetLoadTimer-CJb-RELP.mjs";
81
+ import { W as Mo } from "../WidgetContainer-DNuz_s7W.mjs";
82
+ const Ae = {
83
+ creditScore: {
84
+ poor: 600,
85
+ good: 720
86
+ },
87
+ daysOfCashOnHand: {
88
+ poor: 30,
89
+ good: 90
90
+ },
91
+ debtToIncomeRatio: {
92
+ poor: 40,
93
+ good: 30
94
+ },
95
+ emergencySavings: {
96
+ poor: 750,
97
+ good: 1e3
98
+ },
99
+ spendToIncomeRatio: {
100
+ poor: 110,
101
+ good: 100
102
+ }
103
+ }, De = {
104
+ GOOD: "GOOD",
105
+ FAIR: "FAIR",
106
+ OFF_TRACK: "OFF TRACK",
107
+ MISSING: "MISSING DATA"
108
+ };
109
+ var q = /* @__PURE__ */ ((t) => (t.Connections = "connections", t.CreditScore = "credit_score", t.DateOfBirth = "date_of_birth", t.MonthlyIncome = "monthly_income", t))(q || {});
110
+ const Do = ({ list: t, onClickItem: n }) => /* @__PURE__ */ e(M, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(
111
+ Le,
112
+ {
113
+ sx: {
114
+ "& .MuiListItemSecondaryAction-root": {
115
+ color: "text.primary",
116
+ pr: 24
117
+ }
118
+ },
119
+ children: t.map((o, r) => /* @__PURE__ */ s(m.Fragment, { children: [
120
+ /* @__PURE__ */ e(_e, { secondaryAction: /* @__PURE__ */ e(J, {}), children: /* @__PURE__ */ s(St, { onClick: () => n(o.key), children: [
121
+ /* @__PURE__ */ e(Ye, { children: /* @__PURE__ */ e(
122
+ Ln,
123
+ {
124
+ sx: {
125
+ bgcolor: "primary.main",
126
+ ...!o.isComplete && {
127
+ bgcolor: "transparent",
128
+ borderColor: "action.active",
129
+ borderStyle: "solid",
130
+ borderWidth: 1,
131
+ color: "action.active"
132
+ }
133
+ },
134
+ children: o.icon
135
+ }
136
+ ) }),
137
+ /* @__PURE__ */ e(
138
+ me,
139
+ {
140
+ primary: /* @__PURE__ */ e(D, { sx: { color: "text.secondary" }, variant: "caption", children: o.primaryText }),
141
+ secondary: /* @__PURE__ */ e(D, { sx: { color: "text.primary", fontWeight: 600 }, variant: "body1", children: o.secondaryText })
142
+ }
143
+ )
144
+ ] }) }),
145
+ /* @__PURE__ */ e(ae, { sx: { color: "divider", ml: r === t.length - 1 ? 0 : 68 } })
146
+ ] }, o.key))
147
+ }
148
+ ) }), ut = (t) => t * (180 / Math.PI), nt = (t, n) => [
149
+ {
150
+ description: n.vulnerable_description,
151
+ max: 25,
152
+ scoreContent: n.accordion_details_text.vulnerable,
153
+ status: n.vulnerable
154
+ },
155
+ {
156
+ description: n.building_description,
157
+ max: 50,
158
+ scoreContent: n.accordion_details_text.building,
159
+ status: n.building
160
+ },
161
+ {
162
+ description: n.stable_description,
163
+ max: 75,
164
+ scoreContent: n.accordion_details_text.stable,
165
+ status: n.stable
166
+ },
167
+ {
168
+ description: n.strong_description,
169
+ max: 100,
170
+ scoreContent: n.accordion_details_text.strong,
171
+ status: n.strong
172
+ }
173
+ ].find((i) => t > 0 && t <= i.max) || { status: n.insufficient_data, description: "", scoreContent: "" }, Q = {
174
+ POOR: "#8C0E0E",
175
+ FAIR: "#E32727",
176
+ GOOD: "#FFB70D",
177
+ VERY_GOOD: "#0EA26C",
178
+ EXCEPTIONAL: "#005C3D"
179
+ }, Z = {
180
+ POOR: "#B21C1C",
181
+ FAIR: "#FF3232",
182
+ GOOD: "#FFC02C",
183
+ VERY_GOOD: "#29C76B",
184
+ EXCEPTIONAL: "#008A5A"
185
+ }, Ft = (t, n, o) => t >= 300 && t < 580 ? {
186
+ status: o.poor,
187
+ color: n ? Z.POOR : Q.POOR
188
+ } : t >= 580 && t < 670 ? {
189
+ status: o.fair,
190
+ color: n ? Z.FAIR : Q.FAIR
191
+ } : t >= 670 && t < 740 ? {
192
+ status: o.good,
193
+ color: n ? Z.GOOD : Q.GOOD
194
+ } : t >= 740 && t < 800 ? {
195
+ status: o.very_good,
196
+ color: n ? Z.VERY_GOOD : Q.VERY_GOOD
197
+ } : t >= 800 && t <= 850 ? {
198
+ status: o.exceptional,
199
+ color: n ? Z.EXCEPTIONAL : Q.EXCEPTIONAL
200
+ } : { status: o.missing_data }, Io = (t, n, o, r) => {
201
+ const i = t.reduce((c, d) => c + d.value, 0);
202
+ let a = 0;
203
+ const l = t.map((c) => {
204
+ const d = c.value / i * n, p = o + a, u = p + d;
205
+ return a += d, {
206
+ ...c,
207
+ startAngle: p,
208
+ endAngle: u
209
+ };
210
+ });
211
+ return [l[r].startAngle, l[r].endAngle];
212
+ }, Ao = (t, n, o, r, i) => {
213
+ let a = 0, l = 0;
214
+ const c = Math.floor(r), d = r - c;
215
+ return c > o ? (a = t, l = n) : c === o && d > 0 && (a = t, l = i), [a, l];
216
+ }, To = (t, n, o = 0) => {
217
+ const r = t * Math.sin(n - o), i = -t * Math.cos(n - o);
218
+ return [r, i];
219
+ }, Oo = ({
220
+ dynamicCopy: t,
221
+ fallbackLabel: n,
222
+ icon: o,
223
+ key: r,
224
+ label: i,
225
+ value: a
226
+ }) => {
227
+ const l = !!a, c = l ? Ro(r, a) : t && z(t, n) || n;
228
+ return {
229
+ icon: l ? /* @__PURE__ */ e(mn, {}) : o,
230
+ isComplete: l,
231
+ key: r,
232
+ primaryText: i,
233
+ secondaryText: c
234
+ };
235
+ }, Ro = (t, n) => ({
236
+ [q.DateOfBirth]: (r) => Ct(new Date(Number(r) * 1e3), "MMM d, yyyy"),
237
+ [q.MonthlyIncome]: (r) => B(Number(r), "0.00")
238
+ })[t]?.(n) ?? String(n), Ee = (t) => t !== null ? Math.round(t * 100) : null, Fo = (t) => {
239
+ const n = new Date((/* @__PURE__ */ new Date()).getFullYear(), t - 1, 1);
240
+ return Xe(n, Ue.MONTH_SHORT);
241
+ }, Lt = (t) => {
242
+ const { good: n, poor: o } = Ae.daysOfCashOnHand;
243
+ return t === null ? "MISSING" : t >= n ? "GOOD" : t >= o ? "FAIR" : "OFF_TRACK";
244
+ }, Pt = (t) => {
245
+ const { good: n, poor: o } = Ae.emergencySavings;
246
+ return t === null ? "MISSING" : t >= n ? "GOOD" : t >= o ? "FAIR" : "OFF_TRACK";
247
+ }, Bt = (t) => {
248
+ const { good: n, poor: o } = Ae.spendToIncomeRatio;
249
+ return t === null ? "MISSING" : t < n ? "GOOD" : t < o ? "FAIR" : "OFF_TRACK";
250
+ }, Et = (t) => {
251
+ const { good: n, poor: o } = Ae.debtToIncomeRatio;
252
+ return t === null ? "MISSING" : t <= n ? "GOOD" : t <= o ? "FAIR" : "OFF_TRACK";
253
+ }, Gt = (t) => {
254
+ const { good: n, poor: o } = Ae.creditScore;
255
+ return t === null ? "MISSING" : t >= n ? "GOOD" : t >= o ? "FAIR" : "OFF_TRACK";
256
+ }, Wt = (t) => t === null ? "MISSING" : t === 0 ? "GOOD" : "OFF_TRACK", Lo = (t, n) => {
257
+ const o = Wt(t), r = {
258
+ GOOD: n.count_good_description,
259
+ OFF_TRACK: n.count_off_track_description,
260
+ MISSING: n.count_missing_description
261
+ };
262
+ return {
263
+ cardState: o,
264
+ description: r[o],
265
+ title: n.count_card_title
266
+ };
267
+ }, Po = (t) => ({
268
+ [De.GOOD]: { backgroundColor: "success.lighter", color: "success.dark" },
269
+ [De.FAIR]: { backgroundColor: "warning.lighter", color: "warning.dark" },
270
+ [De.OFF_TRACK]: { backgroundColor: "error.lighter", color: "error.dark" },
271
+ [De.MISSING]: { backgroundColor: "divider", color: "text.secondary" }
272
+ })[t], Bo = 1, Eo = 1, Go = {
273
+ 1: In,
274
+ 2: An,
275
+ 3: Dn
276
+ }, Wo = {
277
+ 1: On,
278
+ 2: (t, n) => it(t, n) / 2,
279
+ 3: it,
280
+ 4: Tn
281
+ }, $t = [
282
+ { contributionPeriodIndex: 3, targetAmount: 6, upperLimit: 500 },
283
+ { contributionPeriodIndex: 3, targetAmount: 3, upperLimit: 900 },
284
+ { contributionPeriodIndex: 2, targetAmount: 1, upperLimit: 1e3 }
285
+ ], _t = ({
286
+ contribution: t,
287
+ goalAmount: n,
288
+ goalPeriod: o,
289
+ targetPeriod: r,
290
+ totalSaved: i
291
+ }) => {
292
+ const a = n - i;
293
+ if (a <= 0) return 0;
294
+ const l = Ve(), c = Go[r], d = Wo[t];
295
+ if (!c || !d) return a;
296
+ const p = c(l, o), u = d(p, l);
297
+ return Math.max(a / (u || 1), 1);
298
+ }, $o = (t) => !t || t <= 0 ? "0%" : t >= 1e3 ? "100%" : `${Math.round(t / 10)}%`, No = (t) => $t.find((o) => t < o.upperLimit)?.targetAmount ?? Eo, mt = (t) => $t.find((r) => t < r.upperLimit)?.contributionPeriodIndex ?? Bo, zo = (t, n) => [...t].sort((r, i) => r.year === i.year ? r.month - i.month : r.year - i.year).map((r) => ({
299
+ x: Xe(new Date(0, r.month - 1, 1), Ue.MONTH_SHORT),
300
+ y: r[n]
301
+ })), Ho = ({
76
302
  dialScoreData: t,
77
- dataIndex: o,
78
- arcColor: n,
303
+ dataIndex: n,
304
+ arcColor: o,
79
305
  arcStartAngle: r,
80
- totalAngularSpan: s,
306
+ totalAngularSpan: i,
81
307
  centerX: a,
82
308
  centerY: l,
83
309
  arcRadius: c,
84
310
  innerArcRadius: d,
85
311
  outterArcRadius: p,
86
312
  progressEndAngle: u,
87
- unitsPerSegment: m,
88
- isFinacialStrengthGraph: b
313
+ unitsPerSegment: h,
314
+ isFinacialStrengthGraph: f
89
315
  }) => {
90
- const C = E(), x = [
91
- { offset: "13.62%", color: C.palette.chartMono.chartMono2 },
92
- { offset: "36.67%", color: C.palette.chartMono.chartMono3 },
93
- { offset: "59.72%", color: C.palette.chartMono.chartMono4 },
94
- { offset: "83.46%", color: C.palette.chartMono.chartMono5 }
95
- ], [S, y] = yn(
316
+ const v = W(), x = [
317
+ { offset: "13.62%", color: v.palette.chartMono.chartMono2 },
318
+ { offset: "36.67%", color: v.palette.chartMono.chartMono3 },
319
+ { offset: "59.72%", color: v.palette.chartMono.chartMono4 },
320
+ { offset: "83.46%", color: v.palette.chartMono.chartMono5 }
321
+ ], [C, b] = Io(
96
322
  t,
97
- s,
323
+ i,
98
324
  r,
99
- o
100
- ), [k, g] = bn(
101
- S,
102
- y,
103
- o,
104
- m,
325
+ n
326
+ ), [k, g] = Ao(
327
+ C,
328
+ b,
329
+ n,
330
+ h,
105
331
  u
106
- ), f = tt.arc().innerRadius(d).outerRadius(p).startAngle(S).endAngle(y).padAngle(0.02).cornerRadius(8), T = tt.arc().innerRadius(d).outerRadius(p).startAngle(k).endAngle(g).padAngle(0.02).cornerRadius(8);
107
- return /* @__PURE__ */ i(z, { children: [
332
+ ), y = lt.arc().innerRadius(d).outerRadius(p).startAngle(C).endAngle(b).padAngle(0.02).cornerRadius(8), I = lt.arc().innerRadius(d).outerRadius(p).startAngle(k).endAngle(g).padAngle(0.02).cornerRadius(8);
333
+ return /* @__PURE__ */ s(H, { children: [
108
334
  /* @__PURE__ */ e(
109
335
  "path",
110
336
  {
111
- d: f({}),
112
- fill: b ? C.palette.divider : n
337
+ d: y({}),
338
+ fill: f ? v.palette.divider : o
113
339
  }
114
340
  ),
115
- b && /* @__PURE__ */ e("path", { d: T({}), fill: "url(#arcGradient)" }),
341
+ f && /* @__PURE__ */ e("path", { d: I({}), fill: "url(#arcGradient)" }),
116
342
  /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e(
117
343
  "linearGradient",
118
344
  {
@@ -123,82 +349,82 @@ const Io = ({
123
349
  x2: a - c * 0.8 * Math.cos(Math.PI / 1.35),
124
350
  y1: l + c * 0.8 * Math.sin(Math.PI / 1.35),
125
351
  y2: l - c * 0.8 * Math.sin(Math.PI / 1.35),
126
- children: x.map((L, D) => /* @__PURE__ */ e("stop", { offset: L.offset, stopColor: L.color }, D))
352
+ children: x.map((G, O) => /* @__PURE__ */ e("stop", { offset: G.offset, stopColor: G.color }, O))
127
353
  }
128
354
  ) })
129
355
  ] });
130
- }, Tt = ({
356
+ }, Nt = ({
131
357
  arcRadius: t = 100,
132
- healthScore: o,
133
- size: n = "L",
358
+ healthScore: n,
359
+ size: o = "L",
134
360
  dialScoreData: r,
135
- minValue: s = 0,
361
+ minValue: i = 0,
136
362
  maxValue: a = 100,
137
363
  margin: l,
138
364
  markerColor: c,
139
365
  healthScoreStatus: d,
140
366
  footerCenterContent: p,
141
367
  footerLeftContent: u,
142
- footerRightContent: m,
143
- isFinacialStrengthGraph: b = !1
368
+ footerRightContent: h,
369
+ isFinacialStrengthGraph: f = !1
144
370
  }) => {
145
- const C = E(), x = -Math.PI / 1.35, S = Math.PI / 1.35, y = S - x, k = y / (a - s), g = (o - s) * k, f = x + g + 0.02, T = n !== "SM" ? 0.1 : 0.12, L = t, D = t * (1 - T), G = L * 2, W = G / 2, H = G / 2, ve = (D + L) / 2, ae = o !== 25 && o !== 50 && o !== 75 && o !== 100 ? 0 : 0.12, [X, te] = fn(ve, f, ae), ie = o / 25, Y = {
371
+ const v = W(), x = -Math.PI / 1.35, C = Math.PI / 1.35, b = C - x, k = b / (a - i), g = (n - i) * k, y = x + g + 0.02, I = o !== "SM" ? 0.1 : 0.12, G = t, O = t * (1 - I), $ = G * 2, F = $ / 2, K = $ / 2, fe = (O + G) / 2, be = n !== 25 && n !== 50 && n !== 75 && n !== 100 ? 0 : 0.12, [X, re] = To(fe, y, be), ce = n / 25, U = {
146
372
  L: { markerSize: 12, healthScoreFontSize: 64 },
147
373
  M: { markerSize: 8, healthScoreFontSize: 48 },
148
374
  SM: { markerSize: 3, healthScoreFontSize: 14 }
149
- }, N = {
375
+ }, V = {
150
376
  top: 0,
151
377
  right: 0,
152
378
  bottom: 0,
153
379
  left: 0,
154
380
  ...l
155
- }, he = p === 0 ? an : sn, se = n !== "SM" ? 3 : 1, Ce = se * 4, q = Y[n].markerSize * 2 + Ce;
156
- return /* @__PURE__ */ i(
381
+ }, le = p === 0 ? gn : yn, de = o !== "SM" ? 3 : 1, xe = de * 4, N = U[o].markerSize * 2 + xe;
382
+ return /* @__PURE__ */ s(
157
383
  _,
158
384
  {
159
385
  sx: {
160
- width: G,
161
- height: n === "SM" ? G - 7 : G,
386
+ width: $,
387
+ height: o === "SM" ? $ - 7 : $,
162
388
  position: "relative",
163
389
  alignSelf: "center",
164
390
  overflow: "visible"
165
391
  },
166
392
  children: [
167
393
  /* @__PURE__ */ e(
168
- tn,
394
+ pn,
169
395
  {
170
- height: n === "SM" ? G - 7 : G,
396
+ height: o === "SM" ? $ - 7 : $,
171
397
  hideLegend: !0,
172
- margin: N,
398
+ margin: V,
173
399
  series: [
174
400
  {
175
401
  data: r,
176
- innerRadius: D,
177
- outerRadius: L,
178
- startAngle: Math.round(Ze(x)),
402
+ innerRadius: O,
403
+ outerRadius: G,
404
+ startAngle: Math.round(ut(x)),
179
405
  // Use Math.degrees to convert
180
- endAngle: Math.round(Ze(S))
406
+ endAngle: Math.round(ut(C))
181
407
  // Use Math.degrees to convert
182
408
  }
183
409
  ],
184
410
  skipAnimation: !0,
185
411
  slots: {
186
- pieArc: (De) => /* @__PURE__ */ e(
187
- Io,
412
+ pieArc: (Ce) => /* @__PURE__ */ e(
413
+ Ho,
188
414
  {
189
- arcColor: De.color,
415
+ arcColor: Ce.color,
190
416
  arcRadius: t,
191
417
  arcStartAngle: x,
192
- centerX: W,
193
- centerY: H,
194
- dataIndex: De.dataIndex,
418
+ centerX: F,
419
+ centerY: K,
420
+ dataIndex: Ce.dataIndex,
195
421
  dialScoreData: r,
196
- innerArcRadius: D,
197
- isFinacialStrengthGraph: b,
198
- outterArcRadius: L,
199
- progressEndAngle: f,
200
- totalAngularSpan: y,
201
- unitsPerSegment: ie
422
+ innerArcRadius: O,
423
+ isFinacialStrengthGraph: f,
424
+ outterArcRadius: G,
425
+ progressEndAngle: y,
426
+ totalAngularSpan: b,
427
+ unitsPerSegment: ce
202
428
  }
203
429
  )
204
430
  },
@@ -207,30 +433,30 @@ const Io = ({
207
433
  stroke: "none"
208
434
  }
209
435
  },
210
- width: G
436
+ width: $
211
437
  }
212
438
  ),
213
- o >= s && o <= a && /* @__PURE__ */ e(
439
+ n >= i && n <= a && /* @__PURE__ */ e(
214
440
  "svg",
215
441
  {
216
- height: q,
442
+ height: N,
217
443
  style: {
218
444
  position: "absolute",
219
- left: W + X - Y[n].markerSize - 5,
220
- top: H + te - Y[n].markerSize - 5,
445
+ left: F + X - U[o].markerSize - 5,
446
+ top: K + re - U[o].markerSize - 5,
221
447
  overflow: "visible"
222
448
  },
223
- viewBox: `${W + X - Y[n].markerSize - 5} ${H + te - Y[n].markerSize - 5} ${q} ${q}`,
224
- width: q,
449
+ viewBox: `${F + X - U[o].markerSize - 5} ${K + re - U[o].markerSize - 5} ${N} ${N}`,
450
+ width: N,
225
451
  children: /* @__PURE__ */ e(
226
452
  "circle",
227
453
  {
228
- cx: W + X,
229
- cy: H + te,
230
- fill: C.palette.common.white,
231
- r: Y[n].markerSize,
232
- stroke: b ? "url(#arcGradient)" : c,
233
- strokeWidth: se
454
+ cx: F + X,
455
+ cy: K + re,
456
+ fill: v.palette.common.white,
457
+ r: U[o].markerSize,
458
+ stroke: f ? "url(#arcGradient)" : c,
459
+ strokeWidth: de
234
460
  }
235
461
  )
236
462
  }
@@ -240,29 +466,29 @@ const Io = ({
240
466
  {
241
467
  sx: {
242
468
  position: "absolute",
243
- top: `${H}px`,
244
- left: `${W}px`,
469
+ top: `${K}px`,
470
+ left: `${F}px`,
245
471
  transform: "translate(-50%, -50%)",
246
472
  textAlign: "center"
247
473
  },
248
- children: /* @__PURE__ */ i(
474
+ children: /* @__PURE__ */ s(
249
475
  _,
250
476
  {
251
477
  spacing: 1,
252
- sx: { alignItems: "center", justifyContent: "center", gap: n !== "M" ? 10 : 3 },
478
+ sx: { alignItems: "center", justifyContent: "center", gap: o !== "M" ? 10 : 3 },
253
479
  children: [
254
480
  /* @__PURE__ */ e(
255
- I,
481
+ A,
256
482
  {
257
483
  sx: {
258
- fontSize: Y[n].healthScoreFontSize,
259
- lineHeight: n !== "SM" ? "48px" : "100%"
484
+ fontSize: U[o].healthScoreFontSize,
485
+ lineHeight: o !== "SM" ? "48px" : "100%"
260
486
  },
261
- variant: "H1",
262
- children: o
487
+ variant: "h1",
488
+ children: n
263
489
  }
264
490
  ),
265
- n !== "SM" && /* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: n === "L" ? "body1" : "body2", children: d })
491
+ o !== "SM" && /* @__PURE__ */ e(A, { sx: { fontWeight: 600 }, variant: o === "L" ? "body1" : "body2", children: d })
266
492
  ]
267
493
  }
268
494
  )
@@ -273,12 +499,12 @@ const Io = ({
273
499
  {
274
500
  sx: {
275
501
  position: "absolute",
276
- top: `${H * 2 * 0.83}px`,
277
- left: `${W}px`,
502
+ top: `${K * 2 * 0.83}px`,
503
+ left: `${F}px`,
278
504
  transform: "translate(-50%, -50%)",
279
505
  textAlign: "center"
280
506
  },
281
- children: typeof p == "number" ? /* @__PURE__ */ i(
507
+ children: typeof p == "number" ? /* @__PURE__ */ s(
282
508
  _,
283
509
  {
284
510
  sx: {
@@ -288,9 +514,9 @@ const Io = ({
288
514
  mt: 24
289
515
  },
290
516
  children: [
291
- p > 0 ? /* @__PURE__ */ e(rn, { size: 16, sx: { color: "success.main" } }) : /* @__PURE__ */ e(he, { size: 16, sx: { color: "text.secondary" } }),
517
+ p > 0 ? /* @__PURE__ */ e(hn, { size: 16, sx: { color: "success.main" } }) : /* @__PURE__ */ e(le, { size: 16, sx: { color: "text.secondary" } }),
292
518
  /* @__PURE__ */ e(
293
- I,
519
+ A,
294
520
  {
295
521
  sx: {
296
522
  fontWeight: 600,
@@ -302,7 +528,7 @@ const Io = ({
302
528
  )
303
529
  ]
304
530
  }
305
- ) : /* @__PURE__ */ e(I, { sx: { color: "text.secondary" }, variant: "subtitle2", children: p })
531
+ ) : /* @__PURE__ */ e(A, { sx: { color: "text.secondary" }, variant: "subtitle2", children: p })
306
532
  }
307
533
  ),
308
534
  u !== void 0 && /* @__PURE__ */ e(
@@ -310,136 +536,136 @@ const Io = ({
310
536
  {
311
537
  sx: {
312
538
  position: "absolute",
313
- top: `${H * 2 * 0.83}px`,
314
- left: `${W - W / 2}px`,
539
+ top: `${K * 2 * 0.83}px`,
540
+ left: `${F - F / 2}px`,
315
541
  // shift left from center
316
542
  transform: "translate(-50%, -50%)",
317
543
  textAlign: "left"
318
544
  },
319
- children: /* @__PURE__ */ e(I, { variant: "body1", children: u })
545
+ children: /* @__PURE__ */ e(A, { variant: "body1", children: u })
320
546
  }
321
547
  ),
322
- m !== void 0 && /* @__PURE__ */ e(
548
+ h !== void 0 && /* @__PURE__ */ e(
323
549
  M,
324
550
  {
325
551
  sx: {
326
552
  position: "absolute",
327
- top: `${H * 2 * 0.83}px`,
328
- left: `${W + W / 2}px`,
553
+ top: `${K * 2 * 0.83}px`,
554
+ left: `${F + F / 2}px`,
329
555
  transform: "translate(-50%, -50%)",
330
556
  textAlign: "right"
331
557
  },
332
- children: /* @__PURE__ */ e(I, { variant: "body1", children: m })
558
+ children: /* @__PURE__ */ e(A, { variant: "body1", children: h })
333
559
  }
334
560
  )
335
561
  ]
336
562
  }
337
563
  );
338
- }, Ot = w(
564
+ }, zt = w(
339
565
  ({
340
566
  arcRadius: t,
341
- size: o = "L",
342
- healthScore: n,
567
+ size: n = "L",
568
+ healthScore: o,
343
569
  footerCenterContent: r,
344
- margin: s
570
+ margin: i
345
571
  }) => {
346
572
  const a = [
347
573
  { id: 1, label: "Group A", value: 25 },
348
574
  { id: 2, label: "Group B", value: 25 },
349
575
  { id: 3, label: "Group C", value: 25 },
350
576
  { id: 4, label: "Group D", value: 25 }
351
- ], { finstrong: l } = v(), c = Ge(n, l);
577
+ ], { finstrong: l } = S(), c = nt(o, l);
352
578
  return /* @__PURE__ */ e(
353
- Tt,
579
+ Nt,
354
580
  {
355
581
  arcRadius: t,
356
582
  dialScoreData: a,
357
- footerCenterContent: o === "L" ? l.footer_center_content_updated_just_now : r,
358
- healthScore: n,
583
+ footerCenterContent: n === "L" ? l.footer_center_content_updated_just_now : r,
584
+ healthScore: o,
359
585
  healthScoreStatus: c.status,
360
586
  isFinacialStrengthGraph: !0,
361
- margin: s,
362
- size: o
587
+ margin: i,
588
+ size: n
363
589
  }
364
590
  );
365
591
  }
366
- ), Ao = w(
592
+ ), Ko = w(
367
593
  ({
368
594
  arcRadius: t,
369
- size: o = "L",
370
- healthScore: n,
595
+ size: n = "L",
596
+ healthScore: o,
371
597
  maxValue: r = 850,
372
- minValue: s = 300,
598
+ minValue: i = 300,
373
599
  footerCenterContent: a
374
600
  }) => {
375
- const c = E().palette.mode === "dark", d = [
601
+ const c = W().palette.mode === "dark", d = [
376
602
  {
377
603
  id: 1,
378
604
  label: "Poor",
379
605
  value: 29,
380
- color: c ? we.POOR : ke.POOR
606
+ color: c ? Z.POOR : Q.POOR
381
607
  },
382
608
  {
383
609
  id: 2,
384
610
  label: "Fair",
385
611
  value: 25,
386
- color: c ? we.FAIR : ke.FAIR
612
+ color: c ? Z.FAIR : Q.FAIR
387
613
  },
388
614
  {
389
615
  id: 3,
390
616
  label: "Good",
391
617
  value: 17,
392
- color: c ? we.GOOD : ke.GOOD
618
+ color: c ? Z.GOOD : Q.GOOD
393
619
  },
394
620
  {
395
621
  id: 4,
396
622
  label: "Very Good",
397
623
  value: 17,
398
- color: c ? we.VERY_GOOD : ke.VERY_GOOD
624
+ color: c ? Z.VERY_GOOD : Q.VERY_GOOD
399
625
  },
400
626
  {
401
627
  id: 5,
402
628
  label: "Exceptional",
403
629
  value: 12,
404
- color: c ? we.EXCEPTIONAL : ke.EXCEPTIONAL
630
+ color: c ? Z.EXCEPTIONAL : Q.EXCEPTIONAL
405
631
  }
406
- ], { finstrong: p } = v(), { isCopyLoaded: u } = J();
407
- if (!u) return /* @__PURE__ */ e(U, {});
408
- const { status: m, color: b = "none" } = ut(
409
- n,
632
+ ], { finstrong: p } = S(), { isCopyLoaded: u } = ne();
633
+ if (!u) return /* @__PURE__ */ e(ee, {});
634
+ const { status: h, color: f = "none" } = Ft(
635
+ o,
410
636
  c,
411
637
  p.credit_score_status
412
638
  );
413
639
  return /* @__PURE__ */ e(
414
- Tt,
640
+ Nt,
415
641
  {
416
642
  arcRadius: t,
417
643
  dialScoreData: d,
418
644
  footerCenterContent: a,
419
- footerLeftContent: s,
645
+ footerLeftContent: i,
420
646
  footerRightContent: r,
421
- healthScore: n,
422
- healthScoreStatus: m,
423
- markerColor: b,
647
+ healthScore: o,
648
+ healthScoreStatus: h,
649
+ markerColor: f,
424
650
  maxValue: r,
425
- minValue: s,
426
- size: o
651
+ minValue: i,
652
+ size: n
427
653
  }
428
654
  );
429
655
  }
430
- ), Be = ({
656
+ ), We = ({
431
657
  drawerType: t,
432
- isDashboard: o = !1,
433
- hasIcon: n = !0,
658
+ isDashboard: n = !1,
659
+ hasIcon: o = !0,
434
660
  buttonText: r,
435
- title: s,
661
+ title: i,
436
662
  titleDrawer: a,
437
663
  description: l,
438
664
  sx: c
439
665
  }) => {
440
- const [d, p] = h.useState(!1), { connect: u, finstrong: m } = v(), { config: b } = He();
441
- return t && b.show_connections_widget_in_master ? /* @__PURE__ */ i(
442
- V,
666
+ const [d, p] = m.useState(!1), { connect: u, finstrong: h } = S(), { config: f } = qe();
667
+ return t && f.show_connections_widget_in_master ? /* @__PURE__ */ s(
668
+ Y,
443
669
  {
444
670
  sx: {
445
671
  pb: 24,
@@ -449,40 +675,40 @@ const Io = ({
449
675
  ...c
450
676
  },
451
677
  children: [
452
- /* @__PURE__ */ i(
678
+ /* @__PURE__ */ s(
453
679
  _,
454
680
  {
455
681
  sx: {
456
682
  gap: 8,
457
- ...o && { flexDirection: "row", alignItems: "center" }
683
+ ...n && { flexDirection: "row", alignItems: "center" }
458
684
  },
459
685
  children: [
460
- n && /* @__PURE__ */ e(dt, { sx: { height: 20, width: 20 } }),
461
- /* @__PURE__ */ e(K, { className: "connect-more-accounts-title", sx: { ...o && { fontSize: 15 } }, children: s || m.connect_more_accounts_title })
686
+ o && /* @__PURE__ */ e(ft, { sx: { height: 20, width: 20 } }),
687
+ /* @__PURE__ */ e(j, { className: "connect-more-accounts-title", sx: { ...n && { fontSize: 15 } }, children: i || h.connect_more_accounts_title })
462
688
  ]
463
689
  }
464
690
  ),
465
691
  /* @__PURE__ */ e(
466
- I,
692
+ A,
467
693
  {
468
694
  className: "connect-more-accounts-description",
469
695
  sx: { color: "text.secondary", mt: 8 },
470
696
  variant: "subtitle1",
471
- children: l || m.connect_more_accounts_description
697
+ children: l || h.connect_more_accounts_description
472
698
  }
473
699
  ),
474
700
  /* @__PURE__ */ e(
475
- P,
701
+ E,
476
702
  {
477
- endIcon: /* @__PURE__ */ e(Z, {}),
703
+ endIcon: /* @__PURE__ */ e(J, {}),
478
704
  onClick: () => p(!0),
479
705
  size: "small",
480
706
  sx: { p: 0, mt: 8, "&:hover": { backgroundColor: "transparent" } },
481
- children: /* @__PURE__ */ e(A, { sx: { fontWeight: 600 }, variant: "body2", children: r || m.connect_more_accounts_button })
707
+ children: /* @__PURE__ */ e(D, { sx: { fontWeight: 600 }, variant: "body2", children: r || h.connect_more_accounts_button })
482
708
  }
483
709
  ),
484
710
  t === "connectDrawer" && /* @__PURE__ */ e(
485
- re,
711
+ se,
486
712
  {
487
713
  onClose: () => p(!1),
488
714
  showConnectWidget: d,
@@ -490,7 +716,7 @@ const Io = ({
490
716
  }
491
717
  ),
492
718
  t === "connectionsDrawer" && /* @__PURE__ */ e(
493
- ft,
719
+ vt,
494
720
  {
495
721
  onClose: () => p(!1),
496
722
  showConnectionsWidget: d,
@@ -501,46 +727,48 @@ const Io = ({
501
727
  }
502
728
  ) : null;
503
729
  };
504
- var ue = /* @__PURE__ */ ((t) => (t.SpendLessThanYouMake = "spendLessThanYouMake", t.PayBillsOnTime = "payBillsOnTime", t.SaveEnoughToLiveOn = "saveEnoughToLiveOn", t.MaintainEmergencySavings = "maintainEmergencySavings", t.HaveManageableDebt = "haveManageableDebt", t.HaveAGoodCreditScore = "haveAGoodCreditScore", t))(ue || {});
505
- const To = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_animation_final.gif", Oo = ({ isOpen: t, onClose: o }) => {
506
- const { common: n, finstrong: r } = v(), { isMobile: s } = Xe(), { updateUser: a, user: l } = ee(), [c, d] = h.useState(l.credit_score || 0), p = !isNaN(c), u = () => {
507
- o(), setTimeout(() => d(l.credit_score || 0), 300);
508
- }, m = () => {
730
+ var ye = /* @__PURE__ */ ((t) => (t.SpendLessThanYouMake = "spendLessThanYouMake", t.PayBillsOnTime = "payBillsOnTime", t.SaveEnoughToLiveOn = "saveEnoughToLiveOn", t.MaintainEmergencySavings = "maintainEmergencySavings", t.HaveManageableDebt = "haveManageableDebt", t.HaveAGoodCreditScore = "haveAGoodCreditScore", t))(ye || {});
731
+ const Vo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_animation_final.gif", jo = ({ isOpen: t, onClose: n }) => {
732
+ const { common: o, finstrong: r } = S(), { isMobile: i } = tt(), { updateUser: a, user: l } = oe(), [c, d] = m.useState(l.credit_score || 0), p = !isNaN(c), u = () => {
733
+ n(), setTimeout(() => d(l.credit_score || 0), 300);
734
+ }, h = () => {
509
735
  !c || c === l.credit_score || a({ ...l, credit_score: c });
510
736
  };
511
737
  return /* @__PURE__ */ e(
512
- Pn,
738
+ Wn,
513
739
  {
514
- copy: { close_aria: n.close_aria, title: r.edit_credit_score },
740
+ copy: { close_aria: o.close_aria, title: r.edit_credit_score },
515
741
  disablePrimaryButton: !c || !p,
516
742
  isOpen: t,
517
743
  maxWidth: "xs",
518
744
  onClose: u,
519
- onPrimaryAction: m,
745
+ onPrimaryAction: h,
520
746
  primaryColor: "primary",
521
- primaryText: n.save_button,
747
+ primaryText: o.save_button,
522
748
  sx: {
523
749
  "& .MuiDialog-paper": {
524
- minWidth: s ? "100%" : 400
750
+ minWidth: i ? "100%" : 400
525
751
  }
526
752
  },
527
753
  children: /* @__PURE__ */ e(
528
754
  "form",
529
755
  {
530
- onSubmit: (b) => {
531
- b.preventDefault(), m(), u();
756
+ onSubmit: (f) => {
757
+ f.preventDefault(), h(), u();
532
758
  },
533
759
  children: /* @__PURE__ */ e(
534
- Re,
760
+ Pe,
535
761
  {
536
762
  error: !p,
537
763
  fullWidth: !0,
538
764
  inputMode: "numeric",
539
- inputProps: {
540
- noValidate: !0,
541
- pattern: "[0-9]*"
765
+ onChange: (f) => d(Number(f.target.value)),
766
+ slotProps: {
767
+ htmlInput: {
768
+ noValidate: !0,
769
+ pattern: "[0-9]*"
770
+ }
542
771
  },
543
- onChange: (b) => d(Number(b.target.value)),
544
772
  value: p ? c : ""
545
773
  }
546
774
  )
@@ -548,8 +776,8 @@ const To = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
548
776
  )
549
777
  }
550
778
  );
551
- }, Rt = w(Oo), Ro = ({ chartFor: t }) => {
552
- const o = E(), n = o.palette.mode === "dark", { monthlySummaries: r } = B(), { user: s } = ee(), { finstrong: a } = v(), [l, { width: c }] = xt(), d = {
779
+ }, Ht = w(jo), Yo = ({ chartFor: t }) => {
780
+ const n = W(), o = n.palette.mode === "dark", { monthlySummaries: r } = L(), { user: i } = oe(), { finstrong: a } = S(), [l, { width: c }] = wt(), d = {
553
781
  savingsOverTime: {
554
782
  icon: "trending_up",
555
783
  title: a.key_indicators_save.zero_state_title,
@@ -578,62 +806,62 @@ const To = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
578
806
  title: a.credit_over_time_title,
579
807
  valueKey: "credit_score"
580
808
  }
581
- }[t], m = xn(r, u.valueKey), b = r.map((D) => D[u.valueKey]), C = Math.max(...b), x = Math.min(...b), S = () => C >= 1e6 ? { formatter: "0.000a", leftMargin: -7 } : C >= 1e3 ? { formatter: "0a", leftMargin: -27 } : { formatter: "0a", leftMargin: -32 }, { formatter: y, leftMargin: k } = S(), g = u.title, f = t === "creditOverTime";
582
- let T;
583
- if (f) {
584
- const { color: D } = ut(
585
- s?.credit_score ?? 0,
586
- n,
809
+ }[t], h = zo(r, u.valueKey), f = r.map((O) => O[u.valueKey]), v = Math.max(...f), x = Math.min(...f), C = () => v >= 1e6 ? { formatter: "0.000a", leftMargin: -7 } : v >= 1e3 ? { formatter: "0a", leftMargin: -27 } : { formatter: "0a", leftMargin: -32 }, { formatter: b, leftMargin: k } = C(), g = u.title, y = t === "creditOverTime";
810
+ let I;
811
+ if (y) {
812
+ const { color: O } = Ft(
813
+ i?.credit_score ?? 0,
814
+ o,
587
815
  a.credit_score_status
588
816
  );
589
- T = D;
817
+ I = O;
590
818
  }
591
- const L = m.some((D) => D.y !== 0);
592
- return /* @__PURE__ */ e(V, { ref: l, sx: { backgroundColor: "background.paper" }, children: L ? /* @__PURE__ */ i(_, { gap: 8, sx: { pl: 18 }, children: [
593
- /* @__PURE__ */ e(I, { sx: { pb: 8, pt: 16 }, variant: "h3", children: g }),
819
+ const G = h.some((O) => O.y !== 0);
820
+ return /* @__PURE__ */ e(Y, { ref: l, sx: { backgroundColor: "background.paper" }, children: G ? /* @__PURE__ */ s(_, { gap: 8, sx: { pl: 18 }, children: [
821
+ /* @__PURE__ */ e(A, { sx: { pb: 8, pt: 16 }, variant: "h3", children: g }),
594
822
  /* @__PURE__ */ e(
595
- Ke,
823
+ Je,
596
824
  {
597
- areaColor: T,
598
- axisColor: o.palette.divider,
825
+ areaColor: I,
826
+ axisColor: n.palette.divider,
599
827
  baseline: "min",
600
828
  chartFor: t,
601
- colors: [o.palette.primary.main],
602
- curveType: f ? "linear" : "monotoneX",
603
- datasets: m ? [m] : [],
829
+ colors: [n.palette.primary.main],
830
+ curveType: y ? "linear" : "monotoneX",
831
+ datasets: h ? [h] : [],
604
832
  height: 244,
605
- labelFontColor: f ? "text.primary" : "",
606
- labelFontSize: f ? 13 : void 0,
833
+ labelFontColor: y ? "text.primary" : "",
834
+ labelFontSize: y ? 13 : void 0,
607
835
  labels: [a.key_indicators_label],
608
- margin: { left: k, top: f ? 25 : 15, right: 20 },
609
- markStyles: (D) => f ? {
836
+ margin: { left: k, top: y ? 25 : 15, right: 20 },
837
+ markStyles: (O) => y ? {
610
838
  markLabelStyles: {
611
839
  marginLeft: 16,
612
- transform: D === m.length - 1 ? "translateX(-16px)" : "translateX(16px)",
840
+ transform: O === h.length - 1 ? "translateX(-16px)" : "translateX(16px)",
613
841
  fontWeight: 600,
614
- fill: o.palette.text.primary
842
+ fill: n.palette.text.primary
615
843
  },
616
- stroke: T
844
+ stroke: I
617
845
  } : {},
618
- maxRange: f ? 850 : void 0,
846
+ maxRange: y ? 850 : void 0,
619
847
  minRange: (() => {
620
- if (f)
848
+ if (y)
621
849
  return x < 300 ? 0 : 300;
622
850
  })(),
623
851
  showArea: !0,
624
- showAverage: !f,
625
- showMark: !f,
626
- showMarkLabel: f,
852
+ showAverage: !y,
853
+ showMark: !y,
854
+ showMarkLabel: y,
627
855
  showXAxis: !0,
628
- showYAxis: f,
629
- showYAxisTicks: f,
856
+ showYAxis: y,
857
+ showYAxisTicks: y,
630
858
  useCustomMark: !0,
631
- valueFormatterString: f ? void 0 : y,
859
+ valueFormatterString: y ? void 0 : b,
632
860
  width: c < 342 ? c - 48 : 342
633
861
  }
634
862
  )
635
863
  ] }) : /* @__PURE__ */ e(
636
- Le,
864
+ Be,
637
865
  {
638
866
  header: d.title,
639
867
  icon: d.icon,
@@ -649,43 +877,42 @@ const To = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
649
877
  lineHeight: "24px",
650
878
  mt: 8
651
879
  }
652
- },
653
- variant: "no-buttons"
880
+ }
654
881
  }
655
882
  ) });
656
- }, Ye = w(Ro), Lo = () => {
657
- const { healthScoreChangeReports: t } = B(), { finstrong: o } = v(), { user: n } = ee(), { availableWidth: r } = Tn(), { isSmallMobile: s } = Xe(r), [a, l] = h.useState(!1), c = t.at(-1);
658
- return /* @__PURE__ */ i(M, { children: [
659
- /* @__PURE__ */ i(_, { sx: { gap: 28 }, children: [
883
+ }, ot = w(Yo), Xo = () => {
884
+ const { healthScoreChangeReports: t } = L(), { finstrong: n } = S(), { user: o } = oe(), { availableWidth: r } = Pn(), { isSmallMobile: i } = tt(r), [a, l] = m.useState(!1), c = t.at(-1);
885
+ return /* @__PURE__ */ s(M, { children: [
886
+ /* @__PURE__ */ s(_, { sx: { gap: 28 }, children: [
660
887
  /* @__PURE__ */ e(
661
- Ao,
888
+ Ko,
662
889
  {
663
- arcRadius: s ? 124 : 154,
890
+ arcRadius: i ? 124 : 154,
664
891
  footerCenterContent: c ? c.newer_credit_score - c.older_credit_score : 0,
665
- healthScore: n.credit_score ?? 0,
666
- size: s ? "M" : "L"
892
+ healthScore: o.credit_score ?? 0,
893
+ size: i ? "M" : "L"
667
894
  }
668
895
  ),
669
- /* @__PURE__ */ e(P, { onClick: () => l(!0), variant: "contained", children: o.credit_score_updated_score }),
670
- /* @__PURE__ */ e(Ye, { chartFor: "creditOverTime" })
896
+ /* @__PURE__ */ e(E, { onClick: () => l(!0), variant: "contained", children: n.credit_score_updated_score }),
897
+ /* @__PURE__ */ e(ot, { chartFor: "creditOverTime" })
671
898
  ] }),
672
- /* @__PURE__ */ e(Rt, { isOpen: a, onClose: () => l(!1) })
899
+ /* @__PURE__ */ e(Ht, { isOpen: a, onClose: () => l(!1) })
673
900
  ] });
674
- }, Fo = w(Lo), Pe = ({ status: t }) => {
675
- const { finstrong: o } = v(), n = Sn(vn[t]), r = {
676
- GOOD: o.key_indicators_good,
677
- FAIR: o.key_indicators_fair,
678
- OFF_TRACK: o.key_indicators_off_track,
679
- MISSING: o.key_indicators_missing
901
+ }, Uo = w(Xo), $e = ({ status: t }) => {
902
+ const { finstrong: n } = S(), o = Po(De[t]), r = {
903
+ GOOD: n.key_indicators_good,
904
+ FAIR: n.key_indicators_fair,
905
+ OFF_TRACK: n.key_indicators_off_track,
906
+ MISSING: n.key_indicators_missing
680
907
  }[t];
681
908
  return /* @__PURE__ */ e(
682
- En,
909
+ $n,
683
910
  {
684
911
  label: /* @__PURE__ */ e(
685
- I,
912
+ A,
686
913
  {
687
914
  fontWeight: 700,
688
- sx: { color: n.color, minHeight: 12 },
915
+ sx: { color: o.color, minHeight: 12 },
689
916
  uppercase: !0,
690
917
  variant: "tiny",
691
918
  children: r
@@ -693,64 +920,64 @@ const To = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
693
920
  ),
694
921
  size: "small",
695
922
  sx: {
696
- bgcolor: n.backgroundColor,
923
+ bgcolor: o.backgroundColor,
697
924
  height: 16
698
925
  },
699
926
  variant: "filled"
700
927
  }
701
928
  );
702
- }, Bo = () => {
703
- const { finstrong: t } = v(), { user: o } = ee(), n = ht(o.credit_score ?? null);
704
- return /* @__PURE__ */ i(_, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
705
- /* @__PURE__ */ e(K, { children: t.credit_score_keep_strong_credit_score }),
706
- /* @__PURE__ */ e(Pe, { status: n })
929
+ }, qo = () => {
930
+ const { finstrong: t } = S(), { user: n } = oe(), o = Gt(n.credit_score ?? null);
931
+ return /* @__PURE__ */ s(_, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
932
+ /* @__PURE__ */ e(j, { children: t.credit_score_keep_strong_credit_score }),
933
+ /* @__PURE__ */ e($e, { status: o })
707
934
  ] });
708
- }, Po = w(Bo), Wo = ({
935
+ }, Qo = w(qo), Zo = ({
709
936
  additionalContent: t,
710
- connectTitle: o,
711
- connectDescription: n,
937
+ connectTitle: n,
938
+ connectDescription: o,
712
939
  children: r,
713
- description: s,
940
+ description: i,
714
941
  drawerTitle: a,
715
942
  isOpen: l,
716
943
  loadConnectAccountsCard: c = !0,
717
944
  onClose: d,
718
945
  stickyComponent: p,
719
946
  title: u,
720
- drawerType: m
947
+ drawerType: h
721
948
  }) => {
722
- const { finstrong: b } = v(), { isCopyLoaded: C } = J(), [x, S] = Fn(!1), y = Bn(null), k = nt(() => {
723
- if (y.current) {
724
- const f = y.current.scrollTop > 0;
725
- S((T) => T !== f ? f : T);
949
+ const { finstrong: f } = S(), { isCopyLoaded: v } = ne(), [x, C] = Rn(!1), b = Fn(null), k = st(() => {
950
+ if (b.current) {
951
+ const y = b.current.scrollTop > 0;
952
+ C((I) => I !== y ? y : I);
726
953
  }
727
- }, []), g = nt(
728
- (f) => {
729
- if (y.current && y.current.removeEventListener("scroll", k), f) {
730
- let T = f.parentElement;
731
- for (; T; ) {
732
- const { overflow: L, overflowY: D } = window.getComputedStyle(T);
733
- if (L === "auto" || D === "auto" || L === "scroll" || D === "scroll") {
734
- y.current = T, T.addEventListener("scroll", k, { passive: !0 });
954
+ }, []), g = st(
955
+ (y) => {
956
+ if (b.current && b.current.removeEventListener("scroll", k), y) {
957
+ let I = y.parentElement;
958
+ for (; I; ) {
959
+ const { overflow: G, overflowY: O } = window.getComputedStyle(I);
960
+ if (G === "auto" || O === "auto" || G === "scroll" || O === "scroll") {
961
+ b.current = I, I.addEventListener("scroll", k, { passive: !0 });
735
962
  break;
736
963
  }
737
- T = T.parentElement;
964
+ I = I.parentElement;
738
965
  }
739
966
  }
740
967
  },
741
968
  [k]
742
969
  );
743
- return ot(() => {
744
- l || S(!1);
745
- }, [l]), ot(() => () => {
746
- y.current && y.current.removeEventListener("scroll", k);
747
- }, [k]), C ? /* @__PURE__ */ e(oe, { isOpen: l, onClose: d, title: a || b.key_indicators, children: /* @__PURE__ */ i(
970
+ return ct(() => {
971
+ l || C(!1);
972
+ }, [l]), ct(() => () => {
973
+ b.current && b.current.removeEventListener("scroll", k);
974
+ }, [k]), v ? /* @__PURE__ */ e(ie, { isOpen: l, onClose: d, title: a || f.key_indicators, children: /* @__PURE__ */ s(
748
975
  _,
749
976
  {
750
977
  ref: g,
751
978
  sx: { backgroundColor: "background.default", height: "100%" },
752
979
  children: [
753
- (u || s) && /* @__PURE__ */ i(
980
+ (u || i) && /* @__PURE__ */ s(
754
981
  _,
755
982
  {
756
983
  sx: {
@@ -760,8 +987,8 @@ const To = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
760
987
  pb: p ? 0 : 24
761
988
  },
762
989
  children: [
763
- u && typeof u == "string" ? /* @__PURE__ */ e(K, { children: u }) : u,
764
- s && /* @__PURE__ */ e(I, { sx: { lineHeight: "24px" }, children: s })
990
+ u && typeof u == "string" ? /* @__PURE__ */ e(j, { children: u }) : u,
991
+ i && /* @__PURE__ */ e(A, { sx: { lineHeight: "24px" }, children: i })
765
992
  ]
766
993
  }
767
994
  ),
@@ -781,143 +1008,151 @@ const To = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
781
1008
  }
782
1009
  ),
783
1010
  t && /* @__PURE__ */ e(M, { children: t }),
784
- /* @__PURE__ */ i(_, { sx: { bgcolor: "background.default", gap: 24, p: 24 }, children: [
1011
+ /* @__PURE__ */ s(_, { sx: { bgcolor: "background.default", gap: 24, p: 24 }, children: [
785
1012
  r,
786
1013
  c && /* @__PURE__ */ e(
787
- Be,
1014
+ We,
788
1015
  {
789
- description: n,
790
- drawerType: m,
1016
+ description: o,
1017
+ drawerType: h,
791
1018
  isDashboard: !0,
792
1019
  sx: { backgroundColor: "background.paper" },
793
- title: o
1020
+ title: n
794
1021
  }
795
1022
  )
796
1023
  ] })
797
1024
  ]
798
1025
  }
799
- ) }) : /* @__PURE__ */ e(U, {});
800
- }, Lt = w(Wo), $o = ({
1026
+ ) }) : /* @__PURE__ */ e(ee, {});
1027
+ }, Kt = w(Zo), Jo = ({
801
1028
  onClick: t,
802
- shouldShowBalance: o = !0,
803
- loadAccounts: n
1029
+ shouldShowBalance: n = !0,
1030
+ loadAccounts: o
804
1031
  }) => {
805
- const { config: r } = He(), { accounts: s } = v(), { selectedAccounts: a } = J(), l = h.useCallback(
1032
+ const { config: r } = qe(), { accounts: i } = S(), { selectedAccounts: a } = ne(), l = m.useCallback(
806
1033
  (d) => {
807
1034
  t?.(d);
808
1035
  },
809
1036
  [t]
810
- ), c = h.useMemo(
1037
+ ), c = m.useMemo(
811
1038
  () => Array.from(new Set(a.map((d) => d.account_type))).filter(
812
- (d) => n ? n.includes(d) : !0
1039
+ (d) => o ? o.includes(d) : !0
813
1040
  ),
814
- [a, n]
1041
+ [a, o]
815
1042
  );
816
- return a.length ? /* @__PURE__ */ e(h.Fragment, { children: c.map((d) => {
1043
+ return a.length ? /* @__PURE__ */ e(m.Fragment, { children: c.map((d) => {
817
1044
  const { accountsForType: p, totalBalanceForType: u } = a.reduce(
818
- (m, b) => (b.account_type === d && (m.accountsForType.push(b), m.totalBalanceForType += b.balance || 0), m),
1045
+ (h, f) => (f.account_type === d && (h.accountsForType.push(f), h.totalBalanceForType += f.balance || 0), h),
819
1046
  { accountsForType: [], totalBalanceForType: 0 }
820
1047
  );
821
- return /* @__PURE__ */ i(
822
- Ee,
1048
+ return /* @__PURE__ */ s(
1049
+ Le,
823
1050
  {
824
- subheader: /* @__PURE__ */ e(Gn, { sx: { pb: 4, position: "static", pt: 12, px: 24 }, children: /* @__PURE__ */ i(_, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
825
- /* @__PURE__ */ e(A, { bold: !0, variant: "caption", children: s.account_types[d] }),
826
- o && /* @__PURE__ */ e(A, { bold: !0, variant: "caption", children: $(u, "0,0.00") })
1051
+ subheader: /* @__PURE__ */ e(Nn, { sx: { pb: 4, position: "static", pt: 12, px: 24 }, children: /* @__PURE__ */ s(_, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
1052
+ /* @__PURE__ */ e(D, { bold: !0, variant: "caption", children: i.account_types[d] }),
1053
+ n && /* @__PURE__ */ e(D, { bold: !0, variant: "caption", children: B(u, "0,0.00") })
827
1054
  ] }) }),
828
1055
  sx: { bgcolor: "background.paper" },
829
1056
  children: [
830
- p.map((m, b) => {
831
- const { firstValue: C } = Ct(m, s), x = vt(m, {
1057
+ p.map((h, f) => {
1058
+ const { firstValue: v } = Mt(
1059
+ h,
1060
+ i,
1061
+ r.display_available_balance_in_accounts
1062
+ ), x = kt(h, {
832
1063
  allowNickname: r?.show_account_nicknames_in_master
833
- }), S = /* @__PURE__ */ i(z, { children: [
834
- /* @__PURE__ */ e(St, { children: /* @__PURE__ */ e(lt, { alt: "MX", institutionGuid: m.institution_guid ?? "" }) }),
1064
+ }), C = /* @__PURE__ */ s(H, { children: [
1065
+ /* @__PURE__ */ e(Ye, { children: /* @__PURE__ */ e(yt, { alt: "MX", institutionGuid: h.institution_guid ?? "" }) }),
835
1066
  /* @__PURE__ */ e(
836
- be,
1067
+ me,
837
1068
  {
838
- primary: `${x}${m.account_number ? ` *${m.account_number}` : ""}`,
839
- primaryTypographyProps: { noWrap: !0, pr: 4, variant: "body1" }
1069
+ primary: `${x}${h.account_number ? ` *${h.account_number}` : ""}`,
1070
+ slotProps: { primary: { noWrap: !0, pr: 4, variant: "body1" } }
840
1071
  }
841
1072
  ),
842
- o && /* @__PURE__ */ e(I, { bold: !0, variant: "body2", children: $(C ?? 0, "0,0.00") })
1073
+ n && /* @__PURE__ */ e(A, { bold: !0, variant: "body2", children: B(v ?? 0, "0,0.00") })
843
1074
  ] });
844
- return /* @__PURE__ */ i(h.Fragment, { children: [
845
- /* @__PURE__ */ e(ye, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e(zn, { onClick: () => l(m), children: S }) : S }),
846
- b !== p.length - 1 && /* @__PURE__ */ e(_e, { variant: "inset" })
847
- ] }, m.guid);
1075
+ return /* @__PURE__ */ s(m.Fragment, { children: [
1076
+ /* @__PURE__ */ e(_e, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e(St, { onClick: () => l(h), children: C }) : C }),
1077
+ f !== p.length - 1 && /* @__PURE__ */ e(ae, { variant: "inset" })
1078
+ ] }, h.guid);
848
1079
  }),
849
- /* @__PURE__ */ e(_e, {})
1080
+ /* @__PURE__ */ e(ae, {})
850
1081
  ]
851
1082
  },
852
1083
  d
853
1084
  );
854
1085
  }) }) : null;
855
- }, Ft = w($o), Eo = ({ loadAccounts: t, loadMoreLabel: o }) => {
856
- const n = E(), { config: r } = He(), { connect: s, finstrong: a } = v(), { accounts: l } = v(), { selectedAccounts: c } = J(), [d, p] = h.useState(!1), [u, m] = h.useState(!1), b = h.useMemo(
1086
+ }, Vt = w(Jo), er = ({ loadAccounts: t, loadMoreLabel: n }) => {
1087
+ const o = W(), { config: r } = qe(), { connect: i, finstrong: a } = S(), { accounts: l } = S(), { selectedAccounts: c } = ne(), [d, p] = m.useState(!1), [u, h] = m.useState(!1), f = m.useMemo(
857
1088
  () => c.filter(
858
- (S) => t ? t.includes(S.account_type) : !0
1089
+ (C) => t ? t.includes(C.account_type) : !0
859
1090
  ),
860
1091
  [c, t]
861
- ), C = h.useMemo(() => b.slice(0, 3), [b]), x = (S) => {
862
- const { firstValue: y } = Ct(S, l);
863
- return y;
1092
+ ), v = m.useMemo(() => f.slice(0, 3), [f]), x = (C) => {
1093
+ const { firstValue: b } = Mt(
1094
+ C,
1095
+ l,
1096
+ r.display_available_balance_in_accounts
1097
+ );
1098
+ return b;
864
1099
  };
865
- return b.length >= 1 ? /* @__PURE__ */ i(z, { children: [
866
- /* @__PURE__ */ e(M, { sx: { border: `1px solid ${n.palette.divider}`, borderRadius: 2 }, children: C.map((S, y) => /* @__PURE__ */ i(h.Fragment, { children: [
867
- /* @__PURE__ */ i(ye, { sx: { px: 24 }, children: [
868
- /* @__PURE__ */ e(St, { children: /* @__PURE__ */ e(lt, { alt: "MX", institutionGuid: S.institution_guid ?? "" }) }),
1100
+ return f.length >= 1 ? /* @__PURE__ */ s(H, { children: [
1101
+ /* @__PURE__ */ e(M, { sx: { border: `1px solid ${o.palette.divider}`, borderRadius: 2 }, children: v.map((C, b) => /* @__PURE__ */ s(m.Fragment, { children: [
1102
+ /* @__PURE__ */ s(_e, { sx: { px: 24 }, children: [
1103
+ /* @__PURE__ */ e(Ye, { children: /* @__PURE__ */ e(yt, { alt: "MX", institutionGuid: C.institution_guid ?? "" }) }),
869
1104
  /* @__PURE__ */ e(
870
- be,
1105
+ me,
871
1106
  {
872
- primary: `${vt(S, {
1107
+ primary: `${kt(C, {
873
1108
  allowNickname: r?.show_account_nicknames_in_master
874
1109
  })}
875
- ${S.account_number ? ` *${S.account_number}` : ""}`,
876
- primaryTypographyProps: { noWrap: !0, pr: 4, variant: "body1" }
1110
+ ${C.account_number ? ` *${C.account_number}` : ""}`,
1111
+ slotProps: { primary: { noWrap: !0, pr: 4, variant: "body1" } }
877
1112
  }
878
1113
  ),
879
- /* @__PURE__ */ e(I, { bold: !0, variant: "body2", children: $(x(S), "0,0.00") })
1114
+ /* @__PURE__ */ e(A, { bold: !0, variant: "body2", children: B(x(C), "0,0.00") })
880
1115
  ] }),
881
- y < C.length - 1 && /* @__PURE__ */ e(_e, { variant: "inset" })
882
- ] }, S.guid)) }),
883
- b.length > 3 && /* @__PURE__ */ i(z, { children: [
1116
+ b < v.length - 1 && /* @__PURE__ */ e(ae, { variant: "inset" })
1117
+ ] }, C.guid)) }),
1118
+ f.length > 3 && /* @__PURE__ */ s(H, { children: [
884
1119
  /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
885
- P,
1120
+ E,
886
1121
  {
887
- endIcon: /* @__PURE__ */ e(Z, {}),
1122
+ endIcon: /* @__PURE__ */ e(J, {}),
888
1123
  onClick: () => p(!0),
889
1124
  size: "small",
890
1125
  sx: { my: 0, px: 16, py: 12, width: "100%" },
891
- children: /* @__PURE__ */ i(A, { bold: !0, variant: "body1", children: [
892
- b.length - 3,
1126
+ children: /* @__PURE__ */ s(D, { bold: !0, variant: "body1", children: [
1127
+ f.length - 3,
893
1128
  " ",
894
- o
1129
+ n
895
1130
  ] })
896
1131
  }
897
1132
  ) }),
898
- /* @__PURE__ */ e(oe, { isOpen: d, onClose: () => p(!1), title: a.accounts, children: /* @__PURE__ */ e(Ft, { loadAccounts: t }) })
1133
+ /* @__PURE__ */ e(ie, { isOpen: d, onClose: () => p(!1), title: a.accounts, children: /* @__PURE__ */ e(Vt, { loadAccounts: t }) })
899
1134
  ] })
900
- ] }) : /* @__PURE__ */ i(z, { children: [
1135
+ ] }) : /* @__PURE__ */ s(H, { children: [
901
1136
  /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
902
- P,
1137
+ E,
903
1138
  {
904
- onClick: () => m(!0),
1139
+ onClick: () => h(!0),
905
1140
  size: "small",
906
1141
  sx: { my: 0, px: 16, py: 12, width: "100%" },
907
1142
  variant: "contained",
908
- children: /* @__PURE__ */ e(A, { bold: !0, variant: "body1", children: a.connect_more_accounts_button })
1143
+ children: /* @__PURE__ */ e(D, { bold: !0, variant: "body1", children: a.connect_more_accounts_button })
909
1144
  }
910
1145
  ) }),
911
1146
  /* @__PURE__ */ e(
912
- re,
1147
+ se,
913
1148
  {
914
- onClose: () => m(!1),
1149
+ onClose: () => h(!1),
915
1150
  showConnectWidget: u,
916
- title: s.mini_title
1151
+ title: i.mini_title
917
1152
  }
918
1153
  )
919
1154
  ] });
920
- }, Bt = w(Eo), Se = ({ balance: t, title: o, sx: n }) => /* @__PURE__ */ i(
1155
+ }, jt = w(er), Me = ({ balance: t, title: n, sx: o }) => /* @__PURE__ */ s(
921
1156
  _,
922
1157
  {
923
1158
  sx: {
@@ -927,111 +1162,115 @@ const To = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
927
1162
  height: 72,
928
1163
  justifyContent: "center",
929
1164
  p: 12,
930
- ...n
1165
+ ...o
931
1166
  },
932
1167
  children: [
933
- typeof t == "number" ? /* @__PURE__ */ e(I, { variant: "h2", children: $(t, "0,0.00") }) : t,
934
- /* @__PURE__ */ e(I, { color: "text.secondary", fontWeight: "400", variant: "subtitle2", children: o })
1168
+ typeof t == "number" ? /* @__PURE__ */ e(A, { variant: "h2", children: B(t, "0,0.00") }) : t,
1169
+ /* @__PURE__ */ e(A, { color: "text.secondary", fontWeight: "400", variant: "subtitle2", children: n })
935
1170
  ]
936
1171
  }
937
1172
  );
938
- var R = /* @__PURE__ */ ((t) => (t[t.ConnectAccounts = 1] = "ConnectAccounts", t[t.MonthlyIncome = 2] = "MonthlyIncome", t[t.Birthday = 3] = "Birthday", t[t.CreditScore = 4] = "CreditScore", t))(R || {}), Me = /* @__PURE__ */ ((t) => (t[t.Months = 1] = "Months", t[t.Years = 2] = "Years", t[t.Days = 3] = "Days", t))(Me || {}), Q = /* @__PURE__ */ ((t) => (t[t.Monthly = 1] = "Monthly", t[t.BiWeekly = 2] = "BiWeekly", t[t.Weekly = 3] = "Weekly", t[t.Daily = 4] = "Daily", t))(Q || {});
939
- const zo = ({ total: t }) => {
940
- const { finstrong: o } = v(), n = [
941
- { id: Q.Monthly, label: o.maintain_emergency_savings_monthly },
942
- { id: Q.BiWeekly, label: o.maintain_emergency_savings_bi_weekly },
943
- { id: Q.Weekly, label: o.maintain_emergency_savings_weekly },
944
- { id: Q.Daily, label: o.maintain_emergency_savings_daily }
1173
+ var R = /* @__PURE__ */ ((t) => (t[t.ConnectAccounts = 1] = "ConnectAccounts", t[t.MonthlyIncome = 2] = "MonthlyIncome", t[t.Birthday = 3] = "Birthday", t[t.CreditScore = 4] = "CreditScore", t))(R || {}), Ie = /* @__PURE__ */ ((t) => (t[t.Months = 1] = "Months", t[t.Years = 2] = "Years", t[t.Days = 3] = "Days", t))(Ie || {}), te = /* @__PURE__ */ ((t) => (t[t.Monthly = 1] = "Monthly", t[t.BiWeekly = 2] = "BiWeekly", t[t.Weekly = 3] = "Weekly", t[t.Daily = 4] = "Daily", t))(te || {});
1174
+ const tr = ({ total: t }) => {
1175
+ const { finstrong: n } = S(), o = [
1176
+ { id: te.Monthly, label: n.maintain_emergency_savings_monthly },
1177
+ { id: te.BiWeekly, label: n.maintain_emergency_savings_bi_weekly },
1178
+ { id: te.Weekly, label: n.maintain_emergency_savings_weekly },
1179
+ { id: te.Daily, label: n.maintain_emergency_savings_daily }
945
1180
  ], r = {
946
- [Q.Monthly]: o.maintain_emergency_savings_estimated_period_monthly,
947
- [Q.BiWeekly]: o.maintain_emergency_savings_estimated_period_bi_weekly,
948
- [Q.Weekly]: o.maintain_emergency_savings_estimated_period_weekly,
949
- [Q.Daily]: o.maintain_emergency_savings_estimated_period_daily
950
- }, s = [
951
- { id: Me.Months, label: o.maintain_emergency_savings_months },
952
- { id: Me.Years, label: o.maintain_emergency_savings_years },
953
- { id: Me.Days, label: o.maintain_emergency_savings_days }
954
- ], a = Math.ceil((t + 1) / 1e3) * 1e3, [l, c] = h.useState(0), [d, p] = h.useState(Je(t)), [u, m] = h.useState(
955
- Je(t)
956
- ), [b, C] = h.useState(a), [x, S] = h.useState(Cn(t)), [y, k] = h.useState(Me.Months);
957
- h.useEffect(() => {
1181
+ [te.Monthly]: n.maintain_emergency_savings_estimated_period_monthly,
1182
+ [te.BiWeekly]: n.maintain_emergency_savings_estimated_period_bi_weekly,
1183
+ [te.Weekly]: n.maintain_emergency_savings_estimated_period_weekly,
1184
+ [te.Daily]: n.maintain_emergency_savings_estimated_period_daily
1185
+ }, i = [
1186
+ { id: Ie.Months, label: n.maintain_emergency_savings_months },
1187
+ { id: Ie.Years, label: n.maintain_emergency_savings_years },
1188
+ { id: Ie.Days, label: n.maintain_emergency_savings_days }
1189
+ ], a = Math.ceil((t + 1) / 1e3) * 1e3, [l, c] = m.useState(0), [d, p] = m.useState(mt(t)), [u, h] = m.useState(
1190
+ mt(t)
1191
+ ), [f, v] = m.useState(a), [x, C] = m.useState(No(t)), [b, k] = m.useState(Ie.Months);
1192
+ m.useEffect(() => {
958
1193
  c(
959
- et({
1194
+ _t({
960
1195
  contribution: u,
961
- goalAmount: b,
1196
+ goalAmount: f,
962
1197
  goalPeriod: x,
963
- targetPeriod: y,
1198
+ targetPeriod: b,
964
1199
  totalSaved: t
965
1200
  })
966
1201
  ), p(u);
967
1202
  }, []);
968
- const g = (f) => {
969
- f.preventDefault(), c(
970
- et({
1203
+ const g = (y) => {
1204
+ y.preventDefault(), c(
1205
+ _t({
971
1206
  contribution: u,
972
- goalAmount: b,
1207
+ goalAmount: f,
973
1208
  goalPeriod: x,
974
- targetPeriod: y,
1209
+ targetPeriod: b,
975
1210
  totalSaved: t
976
1211
  })
977
1212
  ), p(u);
978
1213
  };
979
- return /* @__PURE__ */ e(V, { children: /* @__PURE__ */ e("form", { onSubmit: g, children: /* @__PURE__ */ i(_, { sx: { gap: 24, pb: 24, pt: 16, px: 16 }, children: [
1214
+ return /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e("form", { onSubmit: g, children: /* @__PURE__ */ s(_, { sx: { gap: 24, pb: 24, pt: 16, px: 16 }, children: [
980
1215
  /* @__PURE__ */ e(
981
- Se,
1216
+ Me,
982
1217
  {
983
- balance: /* @__PURE__ */ i(_, { sx: { flexDirection: "row", height: 32 }, children: [
984
- /* @__PURE__ */ e(A, { variant: "h2", children: $(l, "0,0") }),
985
- /* @__PURE__ */ i(A, { sx: { alignSelf: "end", height: 24 }, variant: "subtitle2", children: [
1218
+ balance: /* @__PURE__ */ s(_, { sx: { flexDirection: "row", height: 32 }, children: [
1219
+ /* @__PURE__ */ e(D, { variant: "h2", children: B(l, "0,0") }),
1220
+ /* @__PURE__ */ s(D, { sx: { alignSelf: "end", height: 24 }, variant: "subtitle2", children: [
986
1221
  "/",
987
1222
  r[d]
988
1223
  ] })
989
1224
  ] }),
990
- title: o.maintain_emergency_savings_estimated_contribution
1225
+ title: n.maintain_emergency_savings_estimated_contribution
991
1226
  }
992
1227
  ),
993
1228
  /* @__PURE__ */ e(
994
- Re,
1229
+ Pe,
995
1230
  {
996
- "aria-label": o.maintain_emergency_savings_savings_goal,
997
- helperText: j(
998
- o.maintain_emergency_savings_suggested_goal,
999
- $(a, "0,0")
1231
+ "aria-label": n.maintain_emergency_savings_savings_goal,
1232
+ helperText: z(
1233
+ n.maintain_emergency_savings_suggested_goal,
1234
+ B(a, "0,0")
1000
1235
  ),
1001
- inputProps: {
1002
- noValidate: !0,
1003
- pattern: "[0-9]*"
1236
+ label: n.maintain_emergency_savings_savings_goal,
1237
+ onChange: (y) => {
1238
+ y.target.value && v(Number(y.target.value.replace(/[^0-9]/g, "")));
1004
1239
  },
1005
- label: o.maintain_emergency_savings_savings_goal,
1006
- onChange: (f) => {
1007
- f.target.value && C(Number(f.target.value.replace(/[^0-9]/g, "")));
1240
+ slotProps: {
1241
+ htmlInput: {
1242
+ noValidate: !0,
1243
+ pattern: "[0-9]*"
1244
+ }
1008
1245
  },
1009
- value: b ? $(b, "0,0") : ""
1246
+ value: f ? B(f, "0,0") : ""
1010
1247
  }
1011
1248
  ),
1012
1249
  /* @__PURE__ */ e(
1013
- rt,
1250
+ dt,
1014
1251
  {
1015
- label: o.maintain_emergency_savings_how_often_contribute,
1016
- onChange: m,
1017
- options: n,
1252
+ label: n.maintain_emergency_savings_how_often_contribute,
1253
+ onChange: h,
1254
+ options: o,
1018
1255
  required: !0,
1019
1256
  value: u
1020
1257
  }
1021
1258
  ),
1022
- /* @__PURE__ */ i(_, { sx: { flexDirection: "row" }, children: [
1259
+ /* @__PURE__ */ s(_, { sx: { flexDirection: "row" }, children: [
1023
1260
  /* @__PURE__ */ e(
1024
- Re,
1261
+ Pe,
1025
1262
  {
1026
- "aria-label": o.maintain_emergency_savings_meet_your_goal_within,
1263
+ "aria-label": n.maintain_emergency_savings_meet_your_goal_within,
1027
1264
  fullWidth: !0,
1028
- inputProps: {
1029
- noValidate: !0,
1030
- pattern: "[0-9]*"
1265
+ label: n.maintain_emergency_savings_meet_your_goal_within,
1266
+ onChange: (y) => {
1267
+ isNaN(Number(y.target.value)) || C(Number(y.target.value));
1031
1268
  },
1032
- label: o.maintain_emergency_savings_meet_your_goal_within,
1033
- onChange: (f) => {
1034
- isNaN(Number(f.target.value)) || S(Number(f.target.value));
1269
+ slotProps: {
1270
+ htmlInput: {
1271
+ noValidate: !0,
1272
+ pattern: "[0-9]*"
1273
+ }
1035
1274
  },
1036
1275
  sx: {
1037
1276
  "& .MuiInputBase-root": {
@@ -1057,40 +1296,40 @@ const zo = ({ total: t }) => {
1057
1296
  }
1058
1297
  }
1059
1298
  },
1060
- children: /* @__PURE__ */ e(rt, { label: "", onChange: k, options: s, value: y })
1299
+ children: /* @__PURE__ */ e(dt, { label: "", onChange: k, options: i, value: b })
1061
1300
  }
1062
1301
  )
1063
1302
  ] }),
1064
- /* @__PURE__ */ e(P, { fullWidth: !0, onClick: g, type: "submit", variant: "contained", children: o.maintain_emergency_savings_calculate })
1303
+ /* @__PURE__ */ e(E, { fullWidth: !0, onClick: g, type: "submit", variant: "contained", children: n.maintain_emergency_savings_calculate })
1065
1304
  ] }) }) });
1066
- }, Go = w(zo), Ho = () => {
1067
- const { savingsAccounts: t } = xe(), { finstrong: o } = v(), [n, r] = h.useState(!1), s = h.useMemo(
1305
+ }, nr = w(tr), or = () => {
1306
+ const { savingsAccounts: t } = ke(), { finstrong: n } = S(), [o, r] = m.useState(!1), i = m.useMemo(
1068
1307
  () => t.reduce((a, l) => a + (l.balance ?? 0), 0),
1069
1308
  [t]
1070
1309
  );
1071
- return /* @__PURE__ */ i(_, { sx: { gap: 24 }, children: [
1072
- /* @__PURE__ */ e(V, { sx: { bgcolor: "background.paper", p: 16 }, children: /* @__PURE__ */ i(_, { sx: { gap: 16 }, children: [
1073
- /* @__PURE__ */ e(Se, { balance: s, title: o.maintain_emergency_savings_your_savings }),
1310
+ return /* @__PURE__ */ s(_, { sx: { gap: 24 }, children: [
1311
+ /* @__PURE__ */ e(Y, { sx: { bgcolor: "background.paper", p: 16 }, children: /* @__PURE__ */ s(_, { sx: { gap: 16 }, children: [
1312
+ /* @__PURE__ */ e(Me, { balance: i, title: n.maintain_emergency_savings_your_savings }),
1074
1313
  t.length ? /* @__PURE__ */ e(
1075
- Bt,
1314
+ jt,
1076
1315
  {
1077
- loadAccounts: [ze.SAVINGS],
1078
- loadMoreLabel: o.connect_more_accounts_button
1316
+ loadAccounts: [je.SAVINGS],
1317
+ loadMoreLabel: n.connect_more_accounts_button
1079
1318
  }
1080
- ) : /* @__PURE__ */ e(P, { onClick: () => r(!0), variant: "contained", children: o.connect_more_accounts_button })
1319
+ ) : /* @__PURE__ */ e(E, { onClick: () => r(!0), variant: "contained", children: n.connect_more_accounts_button })
1081
1320
  ] }) }),
1082
- /* @__PURE__ */ e(Go, { total: s }),
1321
+ /* @__PURE__ */ e(nr, { total: i }),
1083
1322
  /* @__PURE__ */ e(
1084
- re,
1323
+ se,
1085
1324
  {
1086
1325
  onClose: () => r(!1),
1087
- showConnectWidget: n,
1088
- title: o.connect_more_accounts_button
1326
+ showConnectWidget: o,
1327
+ title: n.connect_more_accounts_button
1089
1328
  }
1090
1329
  )
1091
1330
  ] });
1092
- }, No = w(Ho), We = w(
1093
- ({ label: t, value: o, status: n, bottomComponent: r, statusBarData: s = [] }) => {
1331
+ }, rr = w(or), Ne = w(
1332
+ ({ label: t, value: n, status: o, bottomComponent: r, statusBarData: i = [] }) => {
1094
1333
  const a = {
1095
1334
  GOOD: {
1096
1335
  progressBarColor: "primary.main"
@@ -1104,14 +1343,14 @@ const zo = ({ total: t }) => {
1104
1343
  MISSING: {
1105
1344
  progressBarColor: "text.secondary"
1106
1345
  }
1107
- }[n], l = s.map((c, d) => s.length === 2 ? {
1346
+ }[o], l = i.map((c, d) => i.length === 2 ? {
1108
1347
  color: d === 0 ? "primary.main" : c.color || a?.progressBarColor,
1109
1348
  percentage: c.percentage
1110
1349
  } : {
1111
1350
  color: c.color || a?.progressBarColor,
1112
1351
  percentage: c.percentage
1113
1352
  });
1114
- return /* @__PURE__ */ i(
1353
+ return /* @__PURE__ */ s(
1115
1354
  _,
1116
1355
  {
1117
1356
  sx: {
@@ -1122,9 +1361,9 @@ const zo = ({ total: t }) => {
1122
1361
  borderColor: "divider"
1123
1362
  },
1124
1363
  children: [
1125
- /* @__PURE__ */ i(_, { sx: { gap: 2 }, children: [
1126
- /* @__PURE__ */ e(A, { variant: "body2", children: t }),
1127
- /* @__PURE__ */ i(
1364
+ /* @__PURE__ */ s(_, { sx: { gap: 2 }, children: [
1365
+ /* @__PURE__ */ e(D, { variant: "body2", children: t }),
1366
+ /* @__PURE__ */ s(
1128
1367
  _,
1129
1368
  {
1130
1369
  sx: {
@@ -1134,30 +1373,30 @@ const zo = ({ total: t }) => {
1134
1373
  justifyContent: "space-between"
1135
1374
  },
1136
1375
  children: [
1137
- /* @__PURE__ */ e(Fe, { children: o }),
1138
- /* @__PURE__ */ e(Pe, { status: n })
1376
+ /* @__PURE__ */ e(Ge, { children: n }),
1377
+ /* @__PURE__ */ e($e, { status: o })
1139
1378
  ]
1140
1379
  }
1141
1380
  )
1142
1381
  ] }),
1143
- /* @__PURE__ */ i(_, { children: [
1144
- /* @__PURE__ */ e(Nn, { data: l, height: 16 }),
1382
+ /* @__PURE__ */ s(_, { children: [
1383
+ /* @__PURE__ */ e(zn, { data: l, height: 16 }),
1145
1384
  r
1146
1385
  ] })
1147
1386
  ]
1148
1387
  }
1149
1388
  );
1150
1389
  }
1151
- ), jo = {
1390
+ ), ar = {
1152
1391
  sticky_label: "You have saved"
1153
- }, Ko = ["$0", "$250", "$500", "$750", "$1k"], Vo = () => {
1154
- const { healthScore: t } = B(), o = Math.round(t.emergency_savings_on_hand ?? NaN) || null, n = wn(o), r = mt(o);
1392
+ }, ir = ["$0", "$250", "$500", "$750", "$1k"], sr = () => {
1393
+ const { healthScore: t } = L(), n = Math.round(t.emergency_savings_on_hand ?? NaN) || null, o = $o(n), r = Pt(n);
1155
1394
  return /* @__PURE__ */ e(
1156
- We,
1395
+ Ne,
1157
1396
  {
1158
- bottomComponent: /* @__PURE__ */ e(_, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: Ko.map((s) => /* @__PURE__ */ i(_, { sx: { alignItems: "center", height: 24, width: 30 }, children: [
1397
+ bottomComponent: /* @__PURE__ */ e(_, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: ir.map((i) => /* @__PURE__ */ s(_, { sx: { alignItems: "center", height: 24, width: 30 }, children: [
1159
1398
  /* @__PURE__ */ e(
1160
- _e,
1399
+ ae,
1161
1400
  {
1162
1401
  orientation: "vertical",
1163
1402
  sx: {
@@ -1167,54 +1406,54 @@ const zo = ({ total: t }) => {
1167
1406
  }
1168
1407
  }
1169
1408
  ),
1170
- /* @__PURE__ */ e(A, { variant: "caption", children: s })
1171
- ] }, s)) }),
1172
- label: jo.sticky_label,
1409
+ /* @__PURE__ */ e(D, { variant: "caption", children: i })
1410
+ ] }, i)) }),
1411
+ label: ar.sticky_label,
1173
1412
  status: r,
1174
1413
  statusBarData: [
1175
1414
  {
1176
- percentage: n
1415
+ percentage: o
1177
1416
  }
1178
1417
  ],
1179
- value: $(o ?? 0, "0,0.00")
1418
+ value: B(n ?? 0, "0,0.00")
1180
1419
  }
1181
1420
  );
1182
- }, Xo = w(Vo), $e = ({
1421
+ }, cr = w(sr), ze = ({
1183
1422
  transactions: t = [],
1184
- amountColor: o = "success.main",
1185
- amountPosition: n = "center",
1186
- formatDate: r = Mt,
1187
- secondaryIcon: s
1423
+ amountColor: n = "success.main",
1424
+ amountPosition: o = "center",
1425
+ formatDate: r = Dt,
1426
+ secondaryIcon: i
1188
1427
  }) => {
1189
- const a = E(), { connect: l, finstrong: c, categories: d } = v(), [p, u] = h.useState(!1), [m, b] = h.useState(!1), { getCategoryName: C } = Ne(), x = 3, S = t.length > x, y = t.length - x;
1428
+ const a = W(), { connect: l, finstrong: c, categories: d } = S(), [p, u] = m.useState(!1), [h, f] = m.useState(!1), { getCategoryName: v } = Qe(), x = 3, C = t.length > x, b = t.length - x;
1190
1429
  let k = t;
1191
- return S && (k = t.map((g) => ({
1430
+ return C && (k = t.map((g) => ({
1192
1431
  ...g,
1193
1432
  category: d.default_categories[g.top_level_category_guid]?.replace(
1194
1433
  /&amp;/g,
1195
1434
  "&"
1196
- ) ?? C(g.top_level_category_guid)
1197
- })).sort((g, f) => f.date - g.date)), !t || t.length === 0 ? /* @__PURE__ */ i(z, { children: [
1435
+ ) ?? v(g.top_level_category_guid)
1436
+ })).sort((g, y) => y.date - g.date)), !t || t.length === 0 ? /* @__PURE__ */ s(H, { children: [
1198
1437
  /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
1199
- P,
1438
+ E,
1200
1439
  {
1201
- onClick: () => b(!0),
1440
+ onClick: () => f(!0),
1202
1441
  size: "small",
1203
1442
  sx: { my: 0, px: 16, py: 12, width: "100%" },
1204
1443
  variant: "contained",
1205
- children: /* @__PURE__ */ e(A, { bold: !0, variant: "body1", children: c.connect_more_accounts_button })
1444
+ children: /* @__PURE__ */ e(D, { bold: !0, variant: "body1", children: c.connect_more_accounts_button })
1206
1445
  }
1207
1446
  ) }),
1208
1447
  /* @__PURE__ */ e(
1209
- re,
1448
+ se,
1210
1449
  {
1211
- onClose: () => b(!1),
1212
- showConnectWidget: m,
1450
+ onClose: () => f(!1),
1451
+ showConnectWidget: h,
1213
1452
  title: l.mini_title
1214
1453
  }
1215
1454
  )
1216
- ] }) : /* @__PURE__ */ i(_, { sx: { gap: 16 }, children: [
1217
- /* @__PURE__ */ e(M, { sx: { border: `1px solid ${a.palette.divider}`, borderRadius: 2 }, children: t.slice(0, x).sort((g, f) => f.date - g.date).map((g, f) => /* @__PURE__ */ i(
1455
+ ] }) : /* @__PURE__ */ s(_, { sx: { gap: 16 }, children: [
1456
+ /* @__PURE__ */ e(M, { sx: { border: `1px solid ${a.palette.divider}`, borderRadius: 2 }, children: t.slice(0, x).sort((g, y) => y.date - g.date).map((g, y) => /* @__PURE__ */ s(
1218
1457
  _,
1219
1458
  {
1220
1459
  sx: {
@@ -1226,22 +1465,22 @@ const zo = ({ total: t }) => {
1226
1465
  },
1227
1466
  children: [
1228
1467
  /* @__PURE__ */ e(_, { sx: { pb: 14 }, children: /* @__PURE__ */ e(
1229
- nn,
1468
+ un,
1230
1469
  {
1231
1470
  categoryGuid: g.top_level_category_guid || "",
1232
1471
  merchantGuid: g.merchant_guid || "",
1233
1472
  size: 32
1234
1473
  }
1235
1474
  ) }),
1236
- /* @__PURE__ */ i(
1475
+ /* @__PURE__ */ s(
1237
1476
  _,
1238
1477
  {
1239
1478
  sx: {
1240
- alignItems: n,
1479
+ alignItems: o,
1241
1480
  flexDirection: "row",
1242
1481
  gap: 12,
1243
1482
  justifyContent: "space-between",
1244
- ...f < Math.min(t.length, x) - 1 && {
1483
+ ...y < Math.min(t.length, x) - 1 && {
1245
1484
  borderBottom: `1px solid ${a.palette.divider}`
1246
1485
  },
1247
1486
  pb: 13,
@@ -1249,58 +1488,58 @@ const zo = ({ total: t }) => {
1249
1488
  width: "100%"
1250
1489
  },
1251
1490
  children: [
1252
- /* @__PURE__ */ i(_, { children: [
1253
- /* @__PURE__ */ e(I, { bold: !0, variant: "body1", children: g.description }),
1254
- /* @__PURE__ */ i(_, { sx: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
1255
- !!s && s,
1256
- /* @__PURE__ */ e(A, { variant: "caption", children: r(g.date) })
1491
+ /* @__PURE__ */ s(_, { children: [
1492
+ /* @__PURE__ */ e(A, { bold: !0, variant: "body1", children: g.description }),
1493
+ /* @__PURE__ */ s(_, { sx: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
1494
+ !!i && i,
1495
+ /* @__PURE__ */ e(D, { variant: "caption", children: r(g.date) })
1257
1496
  ] })
1258
1497
  ] }),
1259
- /* @__PURE__ */ e(I, { bold: !0, sx: { color: o, flexShrink: 0 }, variant: "body1", children: $(g.amount, "0,0.00") })
1498
+ /* @__PURE__ */ e(A, { bold: !0, sx: { color: n, flexShrink: 0 }, variant: "body1", children: B(g.amount, "0,0.00") })
1260
1499
  ]
1261
1500
  },
1262
- g.guid || f
1501
+ g.guid || y
1263
1502
  )
1264
1503
  ]
1265
1504
  },
1266
- f
1505
+ y
1267
1506
  )) }),
1268
- S && /* @__PURE__ */ i(z, { children: [
1507
+ C && /* @__PURE__ */ s(H, { children: [
1269
1508
  /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
1270
- P,
1509
+ E,
1271
1510
  {
1272
- endIcon: /* @__PURE__ */ e(Z, {}),
1511
+ endIcon: /* @__PURE__ */ e(J, {}),
1273
1512
  onClick: () => u(!0),
1274
1513
  size: "small",
1275
1514
  sx: { my: 0, px: 16, py: 12, width: "100%" },
1276
- children: /* @__PURE__ */ i(A, { bold: !0, variant: "body1", children: [
1277
- y,
1515
+ children: /* @__PURE__ */ s(D, { bold: !0, variant: "body1", children: [
1516
+ b,
1278
1517
  " ",
1279
1518
  c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_more_transactions
1280
1519
  ] })
1281
1520
  }
1282
1521
  ) }),
1283
1522
  /* @__PURE__ */ e(
1284
- oe,
1523
+ ie,
1285
1524
  {
1286
1525
  isOpen: p,
1287
1526
  onClose: () => u(!1),
1288
1527
  title: c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_transactions,
1289
- children: /* @__PURE__ */ e(jn, { transaction: k })
1528
+ children: /* @__PURE__ */ e(Hn, { transaction: k })
1290
1529
  }
1291
1530
  )
1292
1531
  ] })
1293
1532
  ] });
1294
- }, Yo = () => {
1295
- const [t, o] = h.useState(!0), {
1533
+ }, lr = () => {
1534
+ const [t, n] = m.useState(!0), {
1296
1535
  finstrong: {
1297
- key_indicators_spend: { pay_bills_on_time_drawer: n }
1536
+ key_indicators_spend: { pay_bills_on_time_drawer: o }
1298
1537
  }
1299
- } = v(), { getSpendingFeeTransactions: r, allTransactions: s } = B();
1300
- return h.useEffect(() => {
1301
- r().finally(() => o(!1));
1302
- }, []), t ? /* @__PURE__ */ e(U, {}) : /* @__PURE__ */ e(z, { children: s.spendingFee.length === 0 ? /* @__PURE__ */ i(
1303
- V,
1538
+ } = S(), { getSpendingFeeTransactions: r, allTransactions: i } = L();
1539
+ return m.useEffect(() => {
1540
+ r().finally(() => n(!1));
1541
+ }, []), t ? /* @__PURE__ */ e(ee, {}) : /* @__PURE__ */ e(H, { children: i.spendingFee.length === 0 ? /* @__PURE__ */ s(
1542
+ Y,
1304
1543
  {
1305
1544
  sx: {
1306
1545
  backgroundColor: "background.paper",
@@ -1311,15 +1550,15 @@ const zo = ({ total: t }) => {
1311
1550
  width: "100%"
1312
1551
  },
1313
1552
  children: [
1314
- /* @__PURE__ */ e(cn, { filled: !0, size: 48, sx: { color: "success.main" } }),
1315
- /* @__PURE__ */ i(_, { sx: { alignItems: "center", gap: 4, pt: 24 }, children: [
1316
- /* @__PURE__ */ e(K, { children: n.pay_bills_on_time_zero_fees_title }),
1317
- /* @__PURE__ */ e(I, { variant: "subtitle1", children: n.pay_bills_on_time_zero_fees_description })
1553
+ /* @__PURE__ */ e(fn, { filled: !0, size: 48, sx: { color: "success.main" } }),
1554
+ /* @__PURE__ */ s(_, { sx: { alignItems: "center", gap: 4, pt: 24 }, children: [
1555
+ /* @__PURE__ */ e(j, { children: o.pay_bills_on_time_zero_fees_title }),
1556
+ /* @__PURE__ */ e(A, { variant: "subtitle1", children: o.pay_bills_on_time_zero_fees_description })
1318
1557
  ] })
1319
1558
  ]
1320
1559
  }
1321
- ) : /* @__PURE__ */ i(
1322
- V,
1560
+ ) : /* @__PURE__ */ s(
1561
+ Y,
1323
1562
  {
1324
1563
  sx: {
1325
1564
  p: 16,
@@ -1327,23 +1566,23 @@ const zo = ({ total: t }) => {
1327
1566
  backgroundColor: "background.paper"
1328
1567
  },
1329
1568
  children: [
1330
- /* @__PURE__ */ e(K, { sx: { textAlign: "left", pb: 16 }, children: n.pay_bills_on_time_sticky_fee_count }),
1569
+ /* @__PURE__ */ e(j, { sx: { textAlign: "left", pb: 16 }, children: o.pay_bills_on_time_sticky_fee_count }),
1331
1570
  /* @__PURE__ */ e(
1332
- $e,
1571
+ ze,
1333
1572
  {
1334
1573
  amountColor: "text.primary",
1335
1574
  amountPosition: "flex-start",
1336
- formatDate: (a) => Wn(new Date(a * 1e3), $n.MONTH_DAY),
1337
- secondaryIcon: /* @__PURE__ */ e(ln, { color: "error", filled: !0, size: 12 }),
1338
- transactions: s.spendingFee
1575
+ formatDate: (a) => Xe(new Date(a * 1e3), Ue.MONTH_DAY),
1576
+ secondaryIcon: /* @__PURE__ */ e(bn, { color: "error", filled: !0, size: 12 }),
1577
+ transactions: i.spendingFee
1339
1578
  }
1340
1579
  )
1341
1580
  ]
1342
1581
  }
1343
1582
  ) });
1344
- }, qo = w(Yo), Uo = () => {
1345
- const { healthScore: t } = B(), { finstrong: o } = v(), { key_indicators_spend: n } = o, { pay_bills_on_time_drawer: r } = n, s = kn(t.spending_fee_transaction_count);
1346
- return /* @__PURE__ */ i(
1583
+ }, dr = w(lr), pr = () => {
1584
+ const { healthScore: t } = L(), { finstrong: n } = S(), { key_indicators_spend: o } = n, { pay_bills_on_time_drawer: r } = o, i = Wt(t.spending_fee_transaction_count);
1585
+ return /* @__PURE__ */ s(
1347
1586
  _,
1348
1587
  {
1349
1588
  sx: {
@@ -1353,104 +1592,104 @@ const zo = ({ total: t }) => {
1353
1592
  borderColor: "divider"
1354
1593
  },
1355
1594
  children: [
1356
- /* @__PURE__ */ e(I, { variant: "body2", children: r.pay_bills_on_time_sticky_description }),
1357
- /* @__PURE__ */ i(_, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
1358
- /* @__PURE__ */ i(Fe, { children: [
1595
+ /* @__PURE__ */ e(A, { variant: "body2", children: r.pay_bills_on_time_sticky_description }),
1596
+ /* @__PURE__ */ s(_, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
1597
+ /* @__PURE__ */ s(Ge, { children: [
1359
1598
  t.spending_fee_transaction_count,
1360
1599
  " ",
1361
1600
  r.pay_bills_on_time_sticky_fee_count
1362
1601
  ] }),
1363
- /* @__PURE__ */ e(Pe, { status: s })
1602
+ /* @__PURE__ */ e($e, { status: i })
1364
1603
  ] })
1365
1604
  ]
1366
1605
  }
1367
1606
  );
1368
- }, Qo = w(Uo), Zo = () => {
1369
- const { savingsAndCheckingAccountsBalance: t } = xe(), { finstrong: o } = v();
1370
- return /* @__PURE__ */ i(_, { gap: 16, sx: { p: 16 }, children: [
1607
+ }, ur = w(pr), _r = () => {
1608
+ const { savingsAndCheckingAccountsBalance: t } = ke(), { finstrong: n } = S();
1609
+ return /* @__PURE__ */ s(_, { gap: 16, sx: { p: 16 }, children: [
1371
1610
  /* @__PURE__ */ e(
1372
- Se,
1611
+ Me,
1373
1612
  {
1374
1613
  balance: t,
1375
- title: o.key_indicators_save.drawer_available_balance
1614
+ title: n.key_indicators_save.drawer_available_balance
1376
1615
  }
1377
1616
  ),
1378
1617
  /* @__PURE__ */ e(
1379
- Bt,
1618
+ jt,
1380
1619
  {
1381
- loadAccounts: [ze.SAVINGS, ze.CHECKING],
1382
- loadMoreLabel: o.more_accounts
1620
+ loadAccounts: [je.SAVINGS, je.CHECKING],
1621
+ loadMoreLabel: n.more_accounts
1383
1622
  }
1384
1623
  )
1385
1624
  ] });
1386
- }, Jo = w(Zo), er = () => {
1387
- const { finstrong: t } = v(), {
1388
- isSpendingInitialized: o,
1389
- healthScore: n,
1625
+ }, mr = w(_r), hr = () => {
1626
+ const { finstrong: t } = S(), {
1627
+ isSpendingInitialized: n,
1628
+ healthScore: o,
1390
1629
  allTransactions: r,
1391
- loadSpendTransactions: s,
1630
+ loadSpendTransactions: i,
1392
1631
  loadDebtSpend: a
1393
- } = B();
1394
- h.useEffect(() => {
1395
- o || (s().finally(), a().finally());
1396
- }, [o]);
1397
- const l = h.useMemo(() => {
1632
+ } = L();
1633
+ m.useEffect(() => {
1634
+ n || (i().finally(), a().finally());
1635
+ }, [n]);
1636
+ const l = m.useMemo(() => {
1398
1637
  const c = r.spend.map((p) => p.transaction), d = r.debtSpend.map((p) => p.transaction);
1399
1638
  return [...c, ...d];
1400
1639
  }, [r.spend, r.debtSpend]);
1401
- return o ? /* @__PURE__ */ i(_, { gap: 16, sx: { p: 16 }, children: [
1640
+ return n ? /* @__PURE__ */ s(_, { gap: 16, sx: { p: 16 }, children: [
1402
1641
  /* @__PURE__ */ e(
1403
- Se,
1642
+ Me,
1404
1643
  {
1405
- balance: n.ninety_day_spend / 90,
1644
+ balance: o.ninety_day_spend / 90,
1406
1645
  title: t.key_indicators_save.drawer_daily_spend
1407
1646
  }
1408
1647
  ),
1409
- /* @__PURE__ */ e($e, { amountColor: "text.primary", transactions: l })
1410
- ] }) : /* @__PURE__ */ e(U, {});
1411
- }, tr = w(er), nr = () => {
1412
- const [t, o] = h.useState(0), { finstrong: n } = v();
1413
- return /* @__PURE__ */ i(z, { children: [
1414
- /* @__PURE__ */ i(V, { children: [
1415
- /* @__PURE__ */ i(
1416
- Ve,
1648
+ /* @__PURE__ */ e(ze, { amountColor: "text.primary", transactions: l })
1649
+ ] }) : /* @__PURE__ */ e(ee, {});
1650
+ }, gr = w(hr), yr = () => {
1651
+ const [t, n] = m.useState(0), { finstrong: o } = S();
1652
+ return /* @__PURE__ */ s(H, { children: [
1653
+ /* @__PURE__ */ s(Y, { children: [
1654
+ /* @__PURE__ */ s(
1655
+ et,
1417
1656
  {
1418
- "aria-label": n.key_indicators_save.drawer_title,
1657
+ "aria-label": o.key_indicators_save.drawer_title,
1419
1658
  centered: !0,
1420
- onChange: (r, s) => o(s),
1659
+ onChange: (r, i) => n(i),
1421
1660
  selectionFollowsFocus: !0,
1422
1661
  sx: { mb: 0 },
1423
1662
  value: t,
1424
1663
  variant: "fullWidth",
1425
1664
  children: [
1426
1665
  /* @__PURE__ */ e(
1427
- de,
1666
+ he,
1428
1667
  {
1429
1668
  "aria-controls": "available-details-tabpanel-0",
1430
- label: n.key_indicators_save.drawer_available,
1669
+ label: o.key_indicators_save.drawer_available,
1431
1670
  sx: { minHeight: 44 }
1432
1671
  }
1433
1672
  ),
1434
1673
  /* @__PURE__ */ e(
1435
- de,
1674
+ he,
1436
1675
  {
1437
1676
  "aria-controls": "spending-details-tabpanel-1",
1438
- label: n.key_indicators_save.drawer_spending,
1677
+ label: o.key_indicators_save.drawer_spending,
1439
1678
  sx: { minHeight: 44 }
1440
1679
  }
1441
1680
  )
1442
1681
  ]
1443
1682
  }
1444
1683
  ),
1445
- /* @__PURE__ */ e(pe, { index: 0, name: "available-details", value: t, children: /* @__PURE__ */ e(Jo, {}) }),
1446
- /* @__PURE__ */ e(pe, { index: 1, name: "spending-details", value: t, children: /* @__PURE__ */ e(tr, {}) })
1684
+ /* @__PURE__ */ e(ge, { index: 0, name: "available-details", value: t, children: /* @__PURE__ */ e(mr, {}) }),
1685
+ /* @__PURE__ */ e(ge, { index: 1, name: "spending-details", value: t, children: /* @__PURE__ */ e(gr, {}) })
1447
1686
  ] }),
1448
- /* @__PURE__ */ e(Ye, { chartFor: "savingsOverTime" })
1687
+ /* @__PURE__ */ e(ot, { chartFor: "savingsOverTime" })
1449
1688
  ] });
1450
- }, or = w(nr), rr = () => {
1451
- const { finstrong: t } = v(), { healthScore: o } = B(), n = o.months_of_cash_on_hand, r = gt(n ? n * 30 : null), s = 183 / 6, a = Math.floor(n), l = Math.round((n - a) * s), c = n / 6 * 100;
1689
+ }, fr = w(yr), br = () => {
1690
+ const { finstrong: t } = S(), { healthScore: n } = L(), o = n.months_of_cash_on_hand, r = Lt(o ? o * 30 : null), i = 183 / 6, a = Math.floor(o), l = Math.round((o - a) * i), c = o / 6 * 100;
1452
1691
  return /* @__PURE__ */ e(
1453
- We,
1692
+ Ne,
1454
1693
  {
1455
1694
  bottomComponent: /* @__PURE__ */ e(
1456
1695
  _,
@@ -1462,7 +1701,7 @@ const zo = ({ total: t }) => {
1462
1701
  mt: 2,
1463
1702
  px: 1
1464
1703
  },
1465
- children: ["0 Mo", "1 Mo", "2 Mo", "3 Mo", "4 Mo", "5 Mo", "6 Mo"].map((p) => /* @__PURE__ */ i(
1704
+ children: ["0 Mo", "1 Mo", "2 Mo", "3 Mo", "4 Mo", "5 Mo", "6 Mo"].map((p) => /* @__PURE__ */ s(
1466
1705
  _,
1467
1706
  {
1468
1707
  sx: {
@@ -1471,7 +1710,7 @@ const zo = ({ total: t }) => {
1471
1710
  },
1472
1711
  children: [
1473
1712
  /* @__PURE__ */ e(
1474
- _e,
1713
+ ae,
1475
1714
  {
1476
1715
  orientation: "vertical",
1477
1716
  sx: {
@@ -1480,7 +1719,7 @@ const zo = ({ total: t }) => {
1480
1719
  }
1481
1720
  }
1482
1721
  ),
1483
- /* @__PURE__ */ e(A, { variant: "XSmall", children: p })
1722
+ /* @__PURE__ */ e(D, { variant: "caption", children: p })
1484
1723
  ]
1485
1724
  },
1486
1725
  p
@@ -1494,15 +1733,15 @@ const zo = ({ total: t }) => {
1494
1733
  percentage: `${c}%`
1495
1734
  }
1496
1735
  ],
1497
- value: j(t.key_indicators_save.drawer_progress_bar_value, a, l)
1736
+ value: z(t.key_indicators_save.drawer_progress_bar_value, a, l)
1498
1737
  }
1499
1738
  );
1500
- }, ar = w(rr), ir = () => {
1501
- const { healthScore: t } = B(), { finstrong: o } = v(), n = Oe(t.debt_to_income_ratio), r = yt(n);
1739
+ }, xr = w(br), Cr = () => {
1740
+ const { healthScore: t } = L(), { finstrong: n } = S(), o = Ee(t.debt_to_income_ratio), r = Et(o);
1502
1741
  return /* @__PURE__ */ e(
1503
- We,
1742
+ Ne,
1504
1743
  {
1505
- bottomComponent: /* @__PURE__ */ i(
1744
+ bottomComponent: /* @__PURE__ */ s(
1506
1745
  _,
1507
1746
  {
1508
1747
  sx: {
@@ -1522,7 +1761,7 @@ const zo = ({ total: t }) => {
1522
1761
  position: "absolute",
1523
1762
  transform: "translateX(-50%)"
1524
1763
  },
1525
- children: /* @__PURE__ */ i(
1764
+ children: /* @__PURE__ */ s(
1526
1765
  _,
1527
1766
  {
1528
1767
  sx: {
@@ -1533,7 +1772,7 @@ const zo = ({ total: t }) => {
1533
1772
  },
1534
1773
  children: [
1535
1774
  /* @__PURE__ */ e(
1536
- _e,
1775
+ ae,
1537
1776
  {
1538
1777
  orientation: "vertical",
1539
1778
  sx: {
@@ -1542,7 +1781,7 @@ const zo = ({ total: t }) => {
1542
1781
  }
1543
1782
  }
1544
1783
  ),
1545
- /* @__PURE__ */ e(A, { sx: { color: "text.primary" }, variant: "XSmall", children: "30%" })
1784
+ /* @__PURE__ */ e(D, { sx: { color: "text.primary" }, variant: "caption", children: "30%" })
1546
1785
  ]
1547
1786
  }
1548
1787
  )
@@ -1558,41 +1797,41 @@ const zo = ({ total: t }) => {
1558
1797
  justifyContent: "center",
1559
1798
  marginLeft: "auto"
1560
1799
  },
1561
- children: /* @__PURE__ */ e(A, { variant: "Small", children: t.debt_to_income_ratio ? j(
1562
- o.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_sticky_description,
1563
- n
1800
+ children: /* @__PURE__ */ e(D, { variant: "body2", children: t.debt_to_income_ratio ? z(
1801
+ n.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_sticky_description,
1802
+ o
1564
1803
  ) : "-" })
1565
1804
  }
1566
1805
  )
1567
1806
  ]
1568
1807
  }
1569
1808
  ),
1570
- label: o.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_sticky_title,
1809
+ label: n.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_sticky_title,
1571
1810
  status: r,
1572
1811
  statusBarData: [
1573
1812
  {
1574
- percentage: `${n}%`
1813
+ percentage: `${o}%`
1575
1814
  }
1576
1815
  ],
1577
- value: $(t.ninety_day_debt_spend, "0,0.00")
1816
+ value: B(t.ninety_day_debt_spend, "0,0.00")
1578
1817
  }
1579
1818
  );
1580
- }, sr = w(ir), cr = () => {
1581
- const { healthScore: t, allTransactions: o } = B(), { connect: n, finstrong: r } = v(), [s, a] = h.useState(!1);
1582
- return /* @__PURE__ */ i(_, { gap: 16, sx: { p: 16 }, children: [
1819
+ }, Sr = w(Cr), vr = () => {
1820
+ const { healthScore: t, allTransactions: n } = L(), { connect: o, finstrong: r } = S(), [i, a] = m.useState(!1);
1821
+ return /* @__PURE__ */ s(_, { gap: 16, sx: { p: 16 }, children: [
1583
1822
  /* @__PURE__ */ e(
1584
- Se,
1823
+ Me,
1585
1824
  {
1586
1825
  balance: t.ninety_day_income,
1587
1826
  sx: { flexDirection: "column-reverse" },
1588
1827
  title: r.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_income
1589
1828
  }
1590
1829
  ),
1591
- o.income.length ? (
1830
+ n.income.length ? (
1592
1831
  // TODO: Need to add More Transactions functionality
1593
- /* @__PURE__ */ e($e, { transactions: o.income.map((l) => l.transaction) })
1832
+ /* @__PURE__ */ e(ze, { transactions: n.income.map((l) => l.transaction) })
1594
1833
  ) : /* @__PURE__ */ e(
1595
- P,
1834
+ E,
1596
1835
  {
1597
1836
  onClick: () => {
1598
1837
  a(!0);
@@ -1602,21 +1841,21 @@ const zo = ({ total: t }) => {
1602
1841
  }
1603
1842
  ),
1604
1843
  /* @__PURE__ */ e(
1605
- re,
1844
+ se,
1606
1845
  {
1607
1846
  onClose: () => a(!1),
1608
- showConnectWidget: s,
1609
- title: n.mini_title
1847
+ showConnectWidget: i,
1848
+ title: o.mini_title
1610
1849
  }
1611
1850
  )
1612
1851
  ] });
1613
- }, lr = w(cr), dr = () => {
1614
- const { allTransactions: t, healthScore: o } = B(), { connect: n, finstrong: r } = v(), [s, a] = h.useState(!1);
1615
- return /* @__PURE__ */ i(_, { gap: 16, sx: { p: 16 }, children: [
1852
+ }, wr = w(vr), kr = () => {
1853
+ const { allTransactions: t, healthScore: n } = L(), { connect: o, finstrong: r } = S(), [i, a] = m.useState(!1);
1854
+ return /* @__PURE__ */ s(_, { gap: 16, sx: { p: 16 }, children: [
1616
1855
  /* @__PURE__ */ e(
1617
- Se,
1856
+ Me,
1618
1857
  {
1619
- balance: o.ninety_day_debt_spend,
1858
+ balance: n.ninety_day_debt_spend,
1620
1859
  sx: { flexDirection: "column-reverse" },
1621
1860
  title: r.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_payments
1622
1861
  }
@@ -1624,14 +1863,14 @@ const zo = ({ total: t }) => {
1624
1863
  t.debtSpend.length ? (
1625
1864
  //TODO: Need to add More Transactions functionality
1626
1865
  /* @__PURE__ */ e(
1627
- $e,
1866
+ ze,
1628
1867
  {
1629
1868
  amountColor: "text.primary",
1630
1869
  transactions: t.debtSpend.map((l) => l.transaction)
1631
1870
  }
1632
1871
  )
1633
1872
  ) : /* @__PURE__ */ e(
1634
- P,
1873
+ E,
1635
1874
  {
1636
1875
  onClick: () => {
1637
1876
  a(!0);
@@ -1641,43 +1880,43 @@ const zo = ({ total: t }) => {
1641
1880
  }
1642
1881
  ),
1643
1882
  /* @__PURE__ */ e(
1644
- re,
1883
+ se,
1645
1884
  {
1646
1885
  onClose: () => a(!1),
1647
- showConnectWidget: s,
1648
- title: n.mini_title
1886
+ showConnectWidget: i,
1887
+ title: o.mini_title
1649
1888
  }
1650
1889
  )
1651
1890
  ] });
1652
- }, pr = w(dr), _r = ({
1891
+ }, Mr = w(kr), Dr = ({
1653
1892
  color: t,
1654
- data: o,
1655
- series: n,
1893
+ data: n,
1894
+ series: o,
1656
1895
  style: r,
1657
- ...s
1896
+ ...i
1658
1897
  }) => {
1659
- const a = E(), l = h.useRef(null), c = h.useRef(null), [d, p] = h.useState(r.width || 0);
1660
- h.useLayoutEffect(() => {
1898
+ const a = W(), l = m.useRef(null), c = m.useRef(null), [d, p] = m.useState(r.width || 0);
1899
+ m.useLayoutEffect(() => {
1661
1900
  p(r.width || 0);
1662
- }, [r.width]), h.useLayoutEffect(() => {
1663
- const S = new ResizeObserver(() => {
1901
+ }, [r.width]), m.useLayoutEffect(() => {
1902
+ const C = new ResizeObserver(() => {
1664
1903
  window.requestAnimationFrame(() => {
1665
1904
  if (l.current) {
1666
- const { width: y } = l.current.getBoundingClientRect(), k = y / 2, g = l.current.querySelector("text");
1905
+ const { width: b } = l.current.getBoundingClientRect(), k = b / 2, g = l.current.querySelector("text");
1667
1906
  g && g.setAttribute("transform", `translate(${k}, -8)`);
1668
1907
  }
1669
1908
  });
1670
1909
  });
1671
- return l.current && S.observe(l.current), () => {
1672
- l.current && S.unobserve(l.current);
1910
+ return l.current && C.observe(l.current), () => {
1911
+ l.current && C.unobserve(l.current);
1673
1912
  };
1674
1913
  }, []);
1675
- const { formattedComparison: u, formattedMain: m } = o[n.index], b = n.type === 0 ? m : u, C = {
1914
+ const { formattedComparison: u, formattedMain: h } = n[o.index], f = o.type === 0 ? h : u, v = {
1676
1915
  ...r,
1677
1916
  transition: "all 0.3s ease-in-out"
1678
1917
  }, x = `translate(${d / 2}, -5)`;
1679
- return /* @__PURE__ */ i("g", { children: [
1680
- /* @__PURE__ */ e("rect", { ...s, fill: t, ref: l, rx: 2, style: C }),
1918
+ return /* @__PURE__ */ s("g", { children: [
1919
+ /* @__PURE__ */ e("rect", { ...i, fill: t, ref: l, rx: 2, style: v }),
1681
1920
  /* @__PURE__ */ e(
1682
1921
  "text",
1683
1922
  {
@@ -1690,59 +1929,59 @@ const zo = ({ total: t }) => {
1690
1929
  transform: x,
1691
1930
  x: r.x,
1692
1931
  y: r.y,
1693
- children: b
1932
+ children: f
1694
1933
  }
1695
1934
  )
1696
1935
  ] });
1697
- }, Te = (t, o = 1e3) => {
1698
- const n = Math.abs(t) >= o ? "0.[0]a" : "0";
1699
- return $(t, n);
1700
- }, Pt = ({
1936
+ }, Fe = (t, n = 1e3) => {
1937
+ const o = Math.abs(t) >= n ? "0.[0]a" : "0";
1938
+ return B(t, o);
1939
+ }, Yt = ({
1701
1940
  chartFor: t,
1702
- data: o,
1703
- title: n,
1941
+ data: n,
1942
+ title: o,
1704
1943
  buttonLabel: r,
1705
- onClick: s,
1944
+ onClick: i,
1706
1945
  legendLabelMain: a,
1707
1946
  legendLabelComparison: l,
1708
1947
  totalComparison: c,
1709
1948
  totalMain: d
1710
1949
  }) => {
1711
- const p = E(), u = qn(p.breakpoints.down("xs")), m = h.useMemo(
1712
- () => o.sort((g, f) => g.month - f.month).map((g) => {
1713
- const f = Mn(g.month), T = {
1950
+ const p = W(), u = Xn(p.breakpoints.down("xs")), h = m.useMemo(
1951
+ () => n.sort((g, y) => g.year !== y.year ? g.year - y.year : g.month - y.month).map((g) => {
1952
+ const y = Fo(g.month), I = {
1714
1953
  spending_vs_income: {
1715
1954
  main: g.standard_spend,
1716
1955
  comparison: g.income,
1717
- formattedMain: Te(g.standard_spend),
1718
- formattedComparison: Te(g.income)
1956
+ formattedMain: Fe(g.standard_spend),
1957
+ formattedComparison: Fe(g.income)
1719
1958
  },
1720
1959
  debt_payment_vs_income: {
1721
1960
  main: g.income,
1722
1961
  comparison: g.debt_spend,
1723
- formattedMain: Te(g.income),
1724
- formattedComparison: Te(g.debt_spend)
1962
+ formattedMain: Fe(g.income),
1963
+ formattedComparison: Fe(g.debt_spend)
1725
1964
  }
1726
1965
  };
1727
1966
  return {
1728
- label: f,
1729
- ...T[t]
1967
+ label: y,
1968
+ ...I[t]
1730
1969
  };
1731
1970
  }),
1732
- [o, t]
1733
- ), b = {
1971
+ [n, t]
1972
+ ), f = {
1734
1973
  dataKey: "label",
1735
1974
  scaleType: "band"
1736
- }, C = Math.max(...m.map((g) => Math.max(g.main, g.comparison))), S = Math.min(...m.map((g) => Math.min(g.main, g.comparison))) === 0 && C === 0 ? 100 : Math.ceil(C * 1.2 / 1e3) * 1e3, y = S / 3, k = {
1975
+ }, v = Math.max(...h.map((g) => Math.max(g.main, g.comparison))), C = Math.min(...h.map((g) => Math.min(g.main, g.comparison))) === 0 && v === 0 ? 100 : Math.ceil(v * 1.2 / 1e3) * 1e3, b = C / 3, k = {
1737
1976
  scaleType: "linear",
1738
1977
  min: 0,
1739
- max: S,
1978
+ max: C,
1740
1979
  tickNumber: 4,
1741
- tickMinStep: y,
1742
- valueFormatter: (g) => g === 0 ? "$0" : $(g, "0.[0]a")
1980
+ tickMinStep: b,
1981
+ valueFormatter: (g) => g === 0 ? "$0" : B(g, "0.[0]a")
1743
1982
  };
1744
- return /* @__PURE__ */ i(V, { children: [
1745
- /* @__PURE__ */ i(
1983
+ return /* @__PURE__ */ s(Y, { children: [
1984
+ /* @__PURE__ */ s(
1746
1985
  _,
1747
1986
  {
1748
1987
  sx: {
@@ -1755,12 +1994,12 @@ const zo = ({ total: t }) => {
1755
1994
  px: 16
1756
1995
  },
1757
1996
  children: [
1758
- /* @__PURE__ */ e(K, { children: n }),
1997
+ /* @__PURE__ */ e(j, { children: o }),
1759
1998
  r && /* @__PURE__ */ e(
1760
- P,
1999
+ E,
1761
2000
  {
1762
- endIcon: /* @__PURE__ */ e(Z, {}),
1763
- onClick: s,
2001
+ endIcon: /* @__PURE__ */ e(J, {}),
2002
+ onClick: i,
1764
2003
  size: "small",
1765
2004
  sx: {
1766
2005
  pl: 8,
@@ -1773,9 +2012,9 @@ const zo = ({ total: t }) => {
1773
2012
  ]
1774
2013
  }
1775
2014
  ),
1776
- /* @__PURE__ */ i(_, { sx: { pb: 24, pl: 16, pr: 24 }, children: [
1777
- /* @__PURE__ */ i(_, { sx: { alignItems: "center", flexDirection: "row", gap: 24, py: 4 }, children: [
1778
- /* @__PURE__ */ i(_, { sx: { gap: 8, alignItems: "center", flexDirection: "row" }, children: [
2015
+ /* @__PURE__ */ s(_, { sx: { pb: 24, pl: 16, pr: 24 }, children: [
2016
+ /* @__PURE__ */ s(_, { sx: { alignItems: "center", flexDirection: "row", gap: 24, py: 4 }, children: [
2017
+ /* @__PURE__ */ s(_, { sx: { gap: 8, alignItems: "center", flexDirection: "row" }, children: [
1779
2018
  /* @__PURE__ */ e(
1780
2019
  M,
1781
2020
  {
@@ -1787,15 +2026,15 @@ const zo = ({ total: t }) => {
1787
2026
  }
1788
2027
  }
1789
2028
  ),
1790
- /* @__PURE__ */ i(_, { sx: { alignItems: "center", flexDirection: "row" }, children: [
1791
- /* @__PURE__ */ i(A, { variant: "subtitle2", children: [
2029
+ /* @__PURE__ */ s(_, { sx: { alignItems: "center", flexDirection: "row" }, children: [
2030
+ /* @__PURE__ */ s(D, { variant: "subtitle2", children: [
1792
2031
  a,
1793
2032
  " "
1794
2033
  ] }),
1795
- !u && d && /* @__PURE__ */ e(A, { sx: { fontWeight: 700 }, variant: "subtitle2", children: d })
2034
+ !u && d && /* @__PURE__ */ e(D, { sx: { fontWeight: 700 }, variant: "subtitle2", children: d })
1796
2035
  ] })
1797
2036
  ] }),
1798
- /* @__PURE__ */ i(_, { alignItems: "center", direction: "row", spacing: 8, children: [
2037
+ /* @__PURE__ */ s(_, { alignItems: "center", direction: "row", spacing: 8, children: [
1799
2038
  /* @__PURE__ */ e(
1800
2039
  M,
1801
2040
  {
@@ -1807,30 +2046,30 @@ const zo = ({ total: t }) => {
1807
2046
  }
1808
2047
  }
1809
2048
  ),
1810
- /* @__PURE__ */ i(_, { sx: { alignItems: "center", flexDirection: "row" }, children: [
1811
- /* @__PURE__ */ i(A, { variant: "subtitle2", children: [
2049
+ /* @__PURE__ */ s(_, { sx: { alignItems: "center", flexDirection: "row" }, children: [
2050
+ /* @__PURE__ */ s(D, { variant: "subtitle2", children: [
1812
2051
  l,
1813
2052
  " "
1814
2053
  ] }),
1815
- !u && c && /* @__PURE__ */ e(A, { sx: { fontWeight: 700 }, variant: "subtitle2", children: c })
2054
+ !u && c && /* @__PURE__ */ e(D, { sx: { fontWeight: 700 }, variant: "subtitle2", children: c })
1816
2055
  ] })
1817
2056
  ] })
1818
2057
  ] }),
1819
- /* @__PURE__ */ i(
1820
- Qn,
2058
+ /* @__PURE__ */ s(
2059
+ qn,
1821
2060
  {
1822
2061
  colors: [
1823
2062
  `${p.palette.chartMono.chartMono3}`,
1824
2063
  `${p.palette.chartMono.chartMono5}`
1825
2064
  ],
1826
- dataset: m,
2065
+ dataset: h,
1827
2066
  height: 240,
1828
2067
  margin: { top: 14, bottom: 10, right: 2, left: -2 },
1829
2068
  series: [
1830
2069
  { dataKey: "main", type: "bar" },
1831
2070
  { dataKey: "comparison", type: "bar" }
1832
2071
  ],
1833
- xAxis: [b],
2072
+ xAxis: [f],
1834
2073
  yAxis: [k],
1835
2074
  children: [
1836
2075
  /* @__PURE__ */ e(
@@ -1838,16 +2077,16 @@ const zo = ({ total: t }) => {
1838
2077
  {
1839
2078
  slots: {
1840
2079
  bar: (g) => {
1841
- const { ownerState: f, ...T } = g;
2080
+ const { ownerState: y, ...I } = g;
1842
2081
  return /* @__PURE__ */ e(
1843
- _r,
2082
+ Dr,
1844
2083
  {
1845
- ...T,
1846
- color: f.color,
1847
- data: m,
2084
+ ...I,
2085
+ color: y.color,
2086
+ data: h,
1848
2087
  series: {
1849
- index: f.dataIndex,
1850
- type: Number(f.id.toString().split("-").pop())
2088
+ index: y.dataIndex,
2089
+ type: Number(y.id.toString().split("-").pop())
1851
2090
  },
1852
2091
  style: {
1853
2092
  x: g.x,
@@ -1861,7 +2100,7 @@ const zo = ({ total: t }) => {
1861
2100
  }
1862
2101
  ),
1863
2102
  /* @__PURE__ */ e(
1864
- Zn,
2103
+ Qn,
1865
2104
  {
1866
2105
  sx: () => ({
1867
2106
  ".MuiChartsAxis-line": {
@@ -1881,7 +2120,7 @@ const zo = ({ total: t }) => {
1881
2120
  }
1882
2121
  ),
1883
2122
  /* @__PURE__ */ e(
1884
- Jn,
2123
+ Zn,
1885
2124
  {
1886
2125
  sx: () => ({
1887
2126
  ".MuiChartsAxis-line": {
@@ -1905,29 +2144,29 @@ const zo = ({ total: t }) => {
1905
2144
  )
1906
2145
  ] })
1907
2146
  ] });
1908
- }, ur = () => {
1909
- const { isIncomeInitialized: t, loadDebtSpend: o, loadIncome: n, monthlySummaries: r } = B(), [s, a] = h.useState(0), { finstrong: l } = v();
1910
- if (h.useEffect(() => {
1911
- t || (o().finally(), n().finally());
1912
- }, [t]), !t) return /* @__PURE__ */ e(U, {});
2147
+ }, Ir = () => {
2148
+ const { isIncomeInitialized: t, loadDebtSpend: n, loadIncome: o, monthlySummaries: r } = L(), [i, a] = m.useState(0), { finstrong: l } = S();
2149
+ if (m.useEffect(() => {
2150
+ t || (n().finally(), o().finally());
2151
+ }, [t]), !t) return /* @__PURE__ */ e(ee, {});
1913
2152
  const c = r.some(
1914
2153
  (d) => d.debt_spend !== 0 || d.income !== 0
1915
2154
  );
1916
- return /* @__PURE__ */ i(z, { children: [
1917
- /* @__PURE__ */ i(V, { children: [
1918
- /* @__PURE__ */ i(
1919
- Ve,
2155
+ return /* @__PURE__ */ s(H, { children: [
2156
+ /* @__PURE__ */ s(Y, { children: [
2157
+ /* @__PURE__ */ s(
2158
+ et,
1920
2159
  {
1921
2160
  "aria-label": l.key_indicators_save.drawer_title,
1922
2161
  centered: !0,
1923
2162
  onChange: (d, p) => a(p),
1924
2163
  selectionFollowsFocus: !0,
1925
2164
  sx: { mb: 0 },
1926
- value: s,
2165
+ value: i,
1927
2166
  variant: "fullWidth",
1928
2167
  children: [
1929
2168
  /* @__PURE__ */ e(
1930
- de,
2169
+ he,
1931
2170
  {
1932
2171
  "aria-controls": "income-details-tabpanel-0",
1933
2172
  id: "income-details-tab-0",
@@ -1936,7 +2175,7 @@ const zo = ({ total: t }) => {
1936
2175
  }
1937
2176
  ),
1938
2177
  /* @__PURE__ */ e(
1939
- de,
2178
+ he,
1940
2179
  {
1941
2180
  "aria-controls": "debt-payment-details-tabpanel-1",
1942
2181
  id: "debt-payment-details-tab-1",
@@ -1948,28 +2187,28 @@ const zo = ({ total: t }) => {
1948
2187
  }
1949
2188
  ),
1950
2189
  /* @__PURE__ */ e(
1951
- pe,
2190
+ ge,
1952
2191
  {
1953
2192
  "aria-labelledby": "income-details-tab-0",
1954
2193
  index: 0,
1955
2194
  name: "income-details",
1956
- value: s,
1957
- children: /* @__PURE__ */ e(lr, {})
2195
+ value: i,
2196
+ children: /* @__PURE__ */ e(wr, {})
1958
2197
  }
1959
2198
  ),
1960
2199
  /* @__PURE__ */ e(
1961
- pe,
2200
+ ge,
1962
2201
  {
1963
2202
  "aria-labelledby": "debt-payment-details-tab-1",
1964
2203
  index: 1,
1965
2204
  name: "debt-payment-details",
1966
- value: s,
1967
- children: /* @__PURE__ */ e(pr, {})
2205
+ value: i,
2206
+ children: /* @__PURE__ */ e(Mr, {})
1968
2207
  }
1969
2208
  )
1970
2209
  ] }),
1971
- c ? /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(
1972
- Pt,
2210
+ c ? /* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(
2211
+ Yt,
1973
2212
  {
1974
2213
  chartFor: "debt_payment_vs_income",
1975
2214
  data: r,
@@ -1978,7 +2217,7 @@ const zo = ({ total: t }) => {
1978
2217
  title: l.key_indicators_borrow.have_manageable_debt_drawer.debt_payment
1979
2218
  }
1980
2219
  ) }) : /* @__PURE__ */ e(
1981
- Le,
2220
+ Be,
1982
2221
  {
1983
2222
  header: l.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_double_bar_chart_empty_state_header,
1984
2223
  icon: "multiline_chart",
@@ -1994,23 +2233,22 @@ const zo = ({ total: t }) => {
1994
2233
  lineHeight: "24px",
1995
2234
  mt: 8
1996
2235
  }
1997
- },
1998
- variant: "no-buttons"
2236
+ }
1999
2237
  }
2000
2238
  ),
2001
- /* @__PURE__ */ e(Ye, { chartFor: "debtOverTime" })
2239
+ /* @__PURE__ */ e(ot, { chartFor: "debtOverTime" })
2002
2240
  ] });
2003
- }, hr = w(ur), mr = () => {
2004
- const { healthScore: t } = B(), { finstrong: o } = v(), n = Oe(t.spend_to_income_ratio), r = n ?? 0, s = Object.keys(t).length === 0, a = bt(n), l = {
2241
+ }, Ar = w(Ir), Tr = () => {
2242
+ const { healthScore: t } = L(), { finstrong: n } = S(), o = Ee(t.spend_to_income_ratio), r = o ?? 0, i = Object.keys(t).length === 0, a = Bt(o), l = {
2005
2243
  GOOD: [{ percentage: `${r}%` }],
2006
2244
  FAIR: [{ percentage: "100%" }, { percentage: `${r - 100}%` }],
2007
2245
  OFF_TRACK: [{ percentage: "100%" }, { percentage: `${r - 100}%` }],
2008
2246
  MISSING: [{ percentage: "0%" }]
2009
2247
  }[a];
2010
2248
  return /* @__PURE__ */ e(
2011
- We,
2249
+ Ne,
2012
2250
  {
2013
- bottomComponent: /* @__PURE__ */ i(
2251
+ bottomComponent: /* @__PURE__ */ s(
2014
2252
  _,
2015
2253
  {
2016
2254
  sx: {
@@ -2020,64 +2258,64 @@ const zo = ({ total: t }) => {
2020
2258
  mt: 8
2021
2259
  },
2022
2260
  children: [
2023
- /* @__PURE__ */ i(A, { variant: "body2", children: [
2024
- t.ninety_day_income <= 0 ? "-" : $(t.ninety_day_income, "0,0.00"),
2261
+ /* @__PURE__ */ s(D, { variant: "body2", children: [
2262
+ t.ninety_day_income <= 0 ? "-" : B(t.ninety_day_income, "0,0.00"),
2025
2263
  " ",
2026
- o?.key_indicators_spend.spend_less_than_you_make_drawer.income
2264
+ n?.key_indicators_spend.spend_less_than_you_make_drawer.income
2027
2265
  ] }),
2028
- /* @__PURE__ */ i(A, { variant: "body2", children: [
2266
+ /* @__PURE__ */ s(D, { variant: "body2", children: [
2029
2267
  r <= 0 ? "-%" : `${r}%`,
2030
2268
  " ",
2031
- o?.key_indicators_spend.spend_less_than_you_make_drawer.spent
2269
+ n?.key_indicators_spend.spend_less_than_you_make_drawer.spent
2032
2270
  ] })
2033
2271
  ]
2034
2272
  }
2035
2273
  ),
2036
- label: o?.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_sticky_description,
2274
+ label: n?.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_sticky_description,
2037
2275
  status: a,
2038
2276
  statusBarData: l,
2039
- value: s ? "$0" : $(t.ninety_day_spend, "0,0.00")
2277
+ value: i ? "$0" : B(t.ninety_day_spend, "0,0.00")
2040
2278
  }
2041
2279
  );
2042
- }, gr = w(mr), yr = () => {
2043
- const { accounts: t } = xe(), { categories: o, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: r } = Ne(), { monthlySummaries: s, handleFinstrongWidgetPrimaryCtaClick: a } = B(), { appDataStore: l } = On(), { finstrong: c, goals: d, spending: p } = v(), u = E(), [m, b] = h.useState("");
2044
- h.useEffect(() => {
2280
+ }, Or = w(Tr), Rr = () => {
2281
+ const { accounts: t } = ke(), { categories: n, dateRangeCategoryTotals: o, loadDateRangeCategoryTotals: r } = Qe(), { monthlySummaries: i, handleFinstrongWidgetPrimaryCtaClick: a } = L(), { appDataStore: l } = Bn(), { finstrong: c, goals: d, spending: p } = S(), u = W(), [h, f] = m.useState("");
2282
+ m.useEffect(() => {
2045
2283
  r(
2046
2284
  t,
2047
- Dt(/* @__PURE__ */ new Date()),
2048
- It(/* @__PURE__ */ new Date())
2285
+ It(/* @__PURE__ */ new Date()),
2286
+ At(/* @__PURE__ */ new Date())
2049
2287
  ).finally();
2050
2288
  }, [t]);
2051
- const C = h.useMemo(
2052
- () => eo(o, d, u, n),
2053
- [o, n]
2289
+ const v = m.useMemo(
2290
+ () => Jn(n, d, u, o),
2291
+ [n, o]
2054
2292
  ), x = (k) => {
2055
- b(m === k ? "" : k);
2056
- }, { totalSpending: S, totalIncome: y } = h.useMemo(() => s?.reduce(
2057
- (k, { standard_spend: g = 0, income: f = 0 }) => ({
2293
+ f(h === k ? "" : k);
2294
+ }, { totalSpending: C, totalIncome: b } = m.useMemo(() => i?.reduce(
2295
+ (k, { standard_spend: g = 0, income: y = 0 }) => ({
2058
2296
  totalSpending: k.totalSpending + g,
2059
- totalIncome: k.totalIncome + f
2297
+ totalIncome: k.totalIncome + y
2060
2298
  }),
2061
2299
  { totalSpending: 0, totalIncome: 0 }
2062
- ), [s]);
2063
- return /* @__PURE__ */ i(_, { sx: { gap: 24 }, children: [
2064
- y > 0 || S > 0 ? /* @__PURE__ */ e(
2065
- Pt,
2300
+ ), [i]);
2301
+ return /* @__PURE__ */ s(_, { sx: { gap: 24 }, children: [
2302
+ b > 0 || C > 0 ? /* @__PURE__ */ e(
2303
+ Yt,
2066
2304
  {
2067
2305
  ...l.appData.client_profile?.allow_trends_widget && {
2068
2306
  buttonLabel: c.key_indicators_spend.spend_less_than_you_make_drawer.view_more
2069
2307
  },
2070
2308
  chartFor: "spending_vs_income",
2071
- data: s,
2309
+ data: i,
2072
2310
  legendLabelComparison: c.key_indicators_spend.spend_less_than_you_make_drawer.income,
2073
2311
  legendLabelMain: c.key_indicators_spend.spend_less_than_you_make_drawer.spending,
2074
2312
  onClick: () => a("trends")(),
2075
2313
  title: c.key_indicators_spend.spend_less_than_you_make_drawer.trends,
2076
- totalComparison: $(y, "0,0.00"),
2077
- totalMain: $(S, "0,0.00")
2314
+ totalComparison: B(b, "0,0.00"),
2315
+ totalMain: B(C, "0,0.00")
2078
2316
  }
2079
2317
  ) : /* @__PURE__ */ e(
2080
- Le,
2318
+ Be,
2081
2319
  {
2082
2320
  header: c.key_indicators_spend.spend_less_than_you_make_drawer.trends_zero_state_title,
2083
2321
  icon: "multiline_chart",
@@ -2093,19 +2331,18 @@ const zo = ({ total: t }) => {
2093
2331
  lineHeight: "24px",
2094
2332
  mt: 8
2095
2333
  }
2096
- },
2097
- variant: "no-buttons"
2334
+ }
2098
2335
  }
2099
2336
  ),
2100
- C.donutData.length > 0 ? /* @__PURE__ */ i(
2101
- V,
2337
+ v.donutData.length > 0 ? /* @__PURE__ */ s(
2338
+ Y,
2102
2339
  {
2103
2340
  sx: {
2104
2341
  px: 16,
2105
2342
  py: 24
2106
2343
  },
2107
2344
  children: [
2108
- /* @__PURE__ */ i(
2345
+ /* @__PURE__ */ s(
2109
2346
  _,
2110
2347
  {
2111
2348
  sx: {
@@ -2118,11 +2355,11 @@ const zo = ({ total: t }) => {
2118
2355
  px: 16
2119
2356
  },
2120
2357
  children: [
2121
- /* @__PURE__ */ e(K, { children: c.key_indicators_spend.spend_less_than_you_make_drawer.spending }),
2358
+ /* @__PURE__ */ e(j, { children: c.key_indicators_spend.spend_less_than_you_make_drawer.spending }),
2122
2359
  l.appData.client_profile?.allow_spending_widget && /* @__PURE__ */ e(
2123
- P,
2360
+ E,
2124
2361
  {
2125
- endIcon: /* @__PURE__ */ e(Z, {}),
2362
+ endIcon: /* @__PURE__ */ e(J, {}),
2126
2363
  onClick: () => a("spending")(),
2127
2364
  size: "small",
2128
2365
  sx: {
@@ -2136,26 +2373,26 @@ const zo = ({ total: t }) => {
2136
2373
  ]
2137
2374
  }
2138
2375
  ),
2139
- /* @__PURE__ */ i(
2376
+ /* @__PURE__ */ s(
2140
2377
  _,
2141
2378
  {
2142
2379
  sx: { flexDirection: "row", gap: 12, justifyContent: "center", pb: 32, pt: 16, px: 24 },
2143
2380
  children: [
2144
2381
  /* @__PURE__ */ e(
2145
- to,
2382
+ eo,
2146
2383
  {
2147
- data: C,
2384
+ data: v,
2148
2385
  onSelected: x,
2149
- selectedId: m,
2386
+ selectedId: h,
2150
2387
  totalLabel: p.total_spending
2151
2388
  }
2152
2389
  ),
2153
2390
  /* @__PURE__ */ e(
2154
- no,
2391
+ to,
2155
2392
  {
2156
- data: C,
2393
+ data: v,
2157
2394
  onSelected: x,
2158
- selectedId: m
2395
+ selectedId: h
2159
2396
  }
2160
2397
  )
2161
2398
  ]
@@ -2164,7 +2401,7 @@ const zo = ({ total: t }) => {
2164
2401
  ]
2165
2402
  }
2166
2403
  ) : /* @__PURE__ */ e(
2167
- Le,
2404
+ Be,
2168
2405
  {
2169
2406
  header: c.key_indicators_spend.spend_less_than_you_make_drawer.spending_zero_state_title,
2170
2407
  icon: "donut_small",
@@ -2180,22 +2417,21 @@ const zo = ({ total: t }) => {
2180
2417
  lineHeight: "24px",
2181
2418
  mt: 8
2182
2419
  }
2183
- },
2184
- variant: "no-buttons"
2420
+ }
2185
2421
  }
2186
2422
  )
2187
2423
  ] });
2188
- }, br = w(yr), fr = ({
2424
+ }, Fr = w(Rr), Lr = ({
2189
2425
  drawerFor: t,
2190
- isOpen: o,
2191
- onClose: n
2426
+ isOpen: n,
2427
+ onClose: o
2192
2428
  }) => {
2193
- const { finstrong: r } = v(), a = {
2429
+ const { finstrong: r } = S(), a = {
2194
2430
  spendLessThanYouMake: {
2195
2431
  title: r.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_title,
2196
2432
  description: r.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_description,
2197
- stickyComponent: /* @__PURE__ */ e(gr, {}),
2198
- content: /* @__PURE__ */ e(br, {}),
2433
+ stickyComponent: /* @__PURE__ */ e(Or, {}),
2434
+ content: /* @__PURE__ */ e(Fr, {}),
2199
2435
  drawerType: "connectDrawer",
2200
2436
  connectTitle: r.connect_your_accounts,
2201
2437
  connectDescription: r.connect_more_accounts_to_unlock_a_fuller_understanding_of_your_finances
@@ -2203,16 +2439,16 @@ const zo = ({ total: t }) => {
2203
2439
  payBillsOnTime: {
2204
2440
  title: r.key_indicators_spend.pay_bills_on_time_drawer.pay_bills_on_time_title,
2205
2441
  description: r.key_indicators_spend.pay_bills_on_time_drawer.pay_bills_on_time_description,
2206
- stickyComponent: /* @__PURE__ */ e(Qo, {}),
2207
- content: /* @__PURE__ */ e(qo, {}),
2442
+ stickyComponent: /* @__PURE__ */ e(ur, {}),
2443
+ content: /* @__PURE__ */ e(dr, {}),
2208
2444
  drawerType: "connectDrawer",
2209
2445
  connectTitle: r.connect_your_accounts,
2210
2446
  connectDescription: r.connect_more_accounts_to_unlock_a_fuller_understanding_of_your_finances
2211
2447
  },
2212
2448
  maintainEmergencySavings: {
2213
- content: /* @__PURE__ */ e(No, {}),
2449
+ content: /* @__PURE__ */ e(rr, {}),
2214
2450
  description: r.maintain_emergency_savings_description,
2215
- stickyComponent: /* @__PURE__ */ e(Xo, {}),
2451
+ stickyComponent: /* @__PURE__ */ e(cr, {}),
2216
2452
  title: r.maintain_emergency_savings_title,
2217
2453
  drawerType: "connectDrawer",
2218
2454
  connectTitle: r.connect_your_accounts,
@@ -2221,58 +2457,58 @@ const zo = ({ total: t }) => {
2221
2457
  haveManageableDebt: {
2222
2458
  title: r.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_title,
2223
2459
  description: r.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_description,
2224
- stickyComponent: /* @__PURE__ */ e(sr, {}),
2225
- content: /* @__PURE__ */ e(hr, {}),
2460
+ stickyComponent: /* @__PURE__ */ e(Sr, {}),
2461
+ content: /* @__PURE__ */ e(Ar, {}),
2226
2462
  drawerType: "connectDrawer",
2227
2463
  connectTitle: r.dont_see_all_your_accounts,
2228
2464
  connectDescription: r.connect_more_accounts_to_view_more_accurate_financial_picture
2229
2465
  },
2230
2466
  haveAGoodCreditScore: {
2231
- title: /* @__PURE__ */ e(Po, {}),
2467
+ title: /* @__PURE__ */ e(Qo, {}),
2232
2468
  description: r.credit_score_description,
2233
2469
  stickyComponent: null,
2234
- content: /* @__PURE__ */ e(Fo, {})
2470
+ content: /* @__PURE__ */ e(Uo, {})
2235
2471
  },
2236
2472
  saveEnoughToLiveOn: {
2237
2473
  title: r.key_indicators_save.drawer_title,
2238
2474
  description: r.key_indicators_save.drawer_description,
2239
- stickyComponent: /* @__PURE__ */ e(ar, {}),
2240
- content: /* @__PURE__ */ e(or, {}),
2475
+ stickyComponent: /* @__PURE__ */ e(xr, {}),
2476
+ content: /* @__PURE__ */ e(fr, {}),
2241
2477
  drawerType: "connectDrawer",
2242
2478
  connectTitle: r.dont_see_all_your_accounts,
2243
2479
  connectDescription: r.connect_more_accounts_to_view_more_accurate_financial_picture
2244
2480
  }
2245
2481
  }[t];
2246
2482
  return /* @__PURE__ */ e(
2247
- Lt,
2483
+ Kt,
2248
2484
  {
2249
2485
  connectDescription: a?.connectDescription,
2250
2486
  connectTitle: a?.connectTitle,
2251
2487
  description: a?.description,
2252
2488
  drawerTitle: r.key_indicators,
2253
2489
  drawerType: a.drawerType,
2254
- isOpen: o,
2490
+ isOpen: n,
2255
2491
  loadConnectAccountsCard: !0,
2256
- onClose: n,
2492
+ onClose: o,
2257
2493
  stickyComponent: a.stickyComponent,
2258
2494
  title: a.title,
2259
2495
  children: /* @__PURE__ */ e(_, { sx: { gap: 16 }, children: a.content })
2260
2496
  }
2261
2497
  );
2262
- }, xr = w(fr), fe = ({
2498
+ }, Pr = w(Lr), we = ({
2263
2499
  drawerFor: t,
2264
- title: o,
2265
- description: n,
2500
+ title: n,
2501
+ description: o,
2266
2502
  cardState: r = "MISSING"
2267
2503
  }) => {
2268
- const { finstrong: s } = v(), [a, l] = h.useState(!1), c = (d) => {
2504
+ const { finstrong: i } = S(), [a, l] = m.useState(!1), c = (d) => {
2269
2505
  (d.key === "Enter" || d.key === " ") && (d.preventDefault(), l(!0));
2270
2506
  };
2271
- return /* @__PURE__ */ i(z, { children: [
2272
- /* @__PURE__ */ i(
2507
+ return /* @__PURE__ */ s(H, { children: [
2508
+ /* @__PURE__ */ s(
2273
2509
  _,
2274
2510
  {
2275
- "aria-label": `${s.key_indicators_open} ${o}`,
2511
+ "aria-label": `${i.key_indicators_open} ${n}`,
2276
2512
  onClick: () => l(!0),
2277
2513
  onKeyDown: c,
2278
2514
  role: "button",
@@ -2289,19 +2525,19 @@ const zo = ({ total: t }) => {
2289
2525
  },
2290
2526
  tabIndex: 0,
2291
2527
  children: [
2292
- /* @__PURE__ */ i(_, { sx: { gap: 8, minWidth: 0 }, children: [
2293
- /* @__PURE__ */ i(_, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
2294
- /* @__PURE__ */ e(A, { sx: { fontWeight: 600 }, variant: "body1", children: o }),
2295
- /* @__PURE__ */ e(Pe, { status: r })
2528
+ /* @__PURE__ */ s(_, { sx: { gap: 8, minWidth: 0 }, children: [
2529
+ /* @__PURE__ */ s(_, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
2530
+ /* @__PURE__ */ e(D, { sx: { fontWeight: 600 }, variant: "body1", children: n }),
2531
+ /* @__PURE__ */ e($e, { status: r })
2296
2532
  ] }),
2297
- /* @__PURE__ */ e(I, { color: "secondary", variant: "subtitle2", children: n })
2533
+ /* @__PURE__ */ e(A, { color: "secondary", variant: "subtitle2", children: o })
2298
2534
  ] }),
2299
- /* @__PURE__ */ e(Z, { color: "secondary", size: 24 })
2535
+ /* @__PURE__ */ e(J, { color: "secondary", size: 24 })
2300
2536
  ]
2301
2537
  }
2302
2538
  ),
2303
2539
  /* @__PURE__ */ e(
2304
- xr,
2540
+ Pr,
2305
2541
  {
2306
2542
  drawerFor: t,
2307
2543
  isOpen: a,
@@ -2309,170 +2545,170 @@ const zo = ({ total: t }) => {
2309
2545
  }
2310
2546
  )
2311
2547
  ] });
2312
- }, Sr = () => {
2313
- const { finstrong: t } = v(), { key_indicators_spend: o } = t, { healthScore: n } = B(), r = (l) => {
2314
- const c = bt(l), d = {
2315
- GOOD: o.ratio_good_description,
2316
- FAIR: o.ratio_fair_description,
2317
- OFF_TRACK: o.ratio_off_track_description,
2318
- MISSING: o.ratio_missing_description
2319
- }, p = c === "MISSING" ? d[c] : j(d[c], l);
2548
+ }, Br = () => {
2549
+ const { finstrong: t } = S(), { key_indicators_spend: n } = t, { healthScore: o } = L(), r = (l) => {
2550
+ const c = Bt(l), d = {
2551
+ GOOD: n.ratio_good_description,
2552
+ FAIR: n.ratio_fair_description,
2553
+ OFF_TRACK: n.ratio_off_track_description,
2554
+ MISSING: n.ratio_missing_description
2555
+ }, p = c === "MISSING" ? d[c] : z(d[c], l);
2320
2556
  return {
2321
2557
  cardState: c,
2322
2558
  description: p,
2323
- title: o.ratio_card_title
2559
+ title: n.ratio_card_title
2324
2560
  };
2325
- }, { spendToIncomeRatio: s, spendFeeCount: a } = h.useMemo(() => {
2326
- const l = n.spend_to_income_ratio !== null ? Math.round(n.spend_to_income_ratio * 100) : null, c = r(l), d = Dn(
2327
- n.spending_fee_transaction_count,
2328
- o
2561
+ }, { spendToIncomeRatio: i, spendFeeCount: a } = m.useMemo(() => {
2562
+ const l = o.spend_to_income_ratio !== null ? Math.round(o.spend_to_income_ratio * 100) : null, c = r(l), d = Lo(
2563
+ o.spending_fee_transaction_count,
2564
+ n
2329
2565
  );
2330
2566
  return { spendToIncomeRatio: c, spendFeeCount: d };
2331
2567
  }, [
2332
- n.spend_to_income_ratio,
2333
- n.spending_fee_transaction_count,
2334
- o,
2568
+ o.spend_to_income_ratio,
2569
+ o.spending_fee_transaction_count,
2570
+ n,
2335
2571
  t
2336
2572
  ]);
2337
- return /* @__PURE__ */ i(_, { sx: { gap: 24, p: 8, pt: 24 }, children: [
2573
+ return /* @__PURE__ */ s(_, { sx: { gap: 24, p: 8, pt: 24 }, children: [
2338
2574
  /* @__PURE__ */ e(
2339
- fe,
2575
+ we,
2340
2576
  {
2341
- cardState: s.cardState,
2342
- description: s.description,
2343
- drawerFor: ue.SpendLessThanYouMake,
2344
- title: s.title
2577
+ cardState: i.cardState,
2578
+ description: i.description,
2579
+ drawerFor: ye.SpendLessThanYouMake,
2580
+ title: i.title
2345
2581
  }
2346
2582
  ),
2347
2583
  /* @__PURE__ */ e(
2348
- fe,
2584
+ we,
2349
2585
  {
2350
2586
  cardState: a.cardState,
2351
2587
  description: a.description,
2352
- drawerFor: ue.PayBillsOnTime,
2588
+ drawerFor: ye.PayBillsOnTime,
2353
2589
  title: a.title
2354
2590
  }
2355
2591
  )
2356
2592
  ] });
2357
- }, vr = w(Sr), Cr = () => {
2358
- const { healthScore: t } = B(), { finstrong: o } = v(), { key_indicators_save: n } = o, r = (c) => {
2359
- const d = gt(c), p = {
2360
- GOOD: n.days_of_cash_good_description,
2361
- FAIR: n.days_of_cash_fair_description,
2362
- OFF_TRACK: n.days_of_cash_off_track_description,
2363
- MISSING: n.days_of_cash_missing_description
2364
- }, u = d === "MISSING" ? p[d] : j(p[d], c);
2593
+ }, Er = w(Br), Gr = () => {
2594
+ const { healthScore: t } = L(), { finstrong: n } = S(), { key_indicators_save: o } = n, r = (c) => {
2595
+ const d = Lt(c), p = {
2596
+ GOOD: o.days_of_cash_good_description,
2597
+ FAIR: o.days_of_cash_fair_description,
2598
+ OFF_TRACK: o.days_of_cash_off_track_description,
2599
+ MISSING: o.days_of_cash_missing_description
2600
+ }, u = d === "MISSING" ? p[d] : z(p[d], c);
2365
2601
  return {
2366
2602
  cardState: d,
2367
2603
  description: u,
2368
- title: n.days_of_cash_title
2604
+ title: o.days_of_cash_title
2369
2605
  };
2370
- }, s = (c) => {
2371
- const d = mt(c), p = {
2372
- GOOD: n.emergency_savings_good_description,
2373
- FAIR: n.emergency_savings_fair_description,
2374
- OFF_TRACK: n.emergency_savings_off_track_description,
2375
- MISSING: n.emergency_savings_missing_description
2606
+ }, i = (c) => {
2607
+ const d = Pt(c), p = {
2608
+ GOOD: o.emergency_savings_good_description,
2609
+ FAIR: o.emergency_savings_fair_description,
2610
+ OFF_TRACK: o.emergency_savings_off_track_description,
2611
+ MISSING: o.emergency_savings_missing_description
2376
2612
  };
2377
2613
  let u;
2378
- return d === "FAIR" && c !== null ? u = j(
2614
+ return d === "FAIR" && c !== null ? u = z(
2379
2615
  p[d],
2380
- $(c, "0,0.00")
2616
+ B(c, "0,0.00")
2381
2617
  ) : u = p[d], {
2382
2618
  cardState: d,
2383
2619
  description: u,
2384
- title: n.emergency_savings_title
2620
+ title: o.emergency_savings_title
2385
2621
  };
2386
- }, { daysOfCashOnHand: a, emergencySavings: l } = h.useMemo(() => {
2387
- const c = t.months_of_cash_on_hand !== null ? Math.round(t.months_of_cash_on_hand * 30) : null, d = r(c), p = t.emergency_savings_on_hand !== null ? Math.round(t.emergency_savings_on_hand) : null, u = s(p);
2622
+ }, { daysOfCashOnHand: a, emergencySavings: l } = m.useMemo(() => {
2623
+ const c = t.months_of_cash_on_hand !== null ? Math.round(t.months_of_cash_on_hand * 30) : null, d = r(c), p = t.emergency_savings_on_hand !== null ? Math.round(t.emergency_savings_on_hand) : null, u = i(p);
2388
2624
  return { daysOfCashOnHand: d, emergencySavings: u };
2389
2625
  }, [
2390
2626
  t.months_of_cash_on_hand,
2391
2627
  t.emergency_savings_on_hand,
2392
- n,
2393
- o
2628
+ o,
2629
+ n
2394
2630
  ]);
2395
- return /* @__PURE__ */ i(_, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
2631
+ return /* @__PURE__ */ s(_, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
2396
2632
  /* @__PURE__ */ e(
2397
- fe,
2633
+ we,
2398
2634
  {
2399
2635
  cardState: a.cardState,
2400
2636
  description: a.description,
2401
- drawerFor: ue.SaveEnoughToLiveOn,
2637
+ drawerFor: ye.SaveEnoughToLiveOn,
2402
2638
  title: a.title
2403
2639
  }
2404
2640
  ),
2405
2641
  /* @__PURE__ */ e(
2406
- fe,
2642
+ we,
2407
2643
  {
2408
2644
  cardState: l.cardState,
2409
2645
  description: l.description,
2410
- drawerFor: ue.MaintainEmergencySavings,
2646
+ drawerFor: ye.MaintainEmergencySavings,
2411
2647
  title: l.title
2412
2648
  }
2413
2649
  )
2414
2650
  ] });
2415
- }, wr = w(Cr), kr = () => {
2416
- const { healthScore: t } = B(), { finstrong: o } = v(), { key_indicators_borrow: n } = o, { user: r } = ee(), s = (d) => {
2417
- const p = yt(d), u = {
2418
- GOOD: n.manage_debit_good_description,
2419
- FAIR: n.manage_debit_fair_description,
2420
- OFF_TRACK: n.manage_debit_off_track_description,
2421
- MISSING: n.manage_debit_missing_description
2422
- }, m = p === "FAIR" || p === "OFF_TRACK" ? j(u[p], d) : u[p];
2651
+ }, Wr = w(Gr), $r = () => {
2652
+ const { healthScore: t } = L(), { finstrong: n } = S(), { key_indicators_borrow: o } = n, { user: r } = oe(), i = (d) => {
2653
+ const p = Et(d), u = {
2654
+ GOOD: o.manage_debit_good_description,
2655
+ FAIR: o.manage_debit_fair_description,
2656
+ OFF_TRACK: o.manage_debit_off_track_description,
2657
+ MISSING: o.manage_debit_missing_description
2658
+ }, h = p === "FAIR" || p === "OFF_TRACK" ? z(u[p], d) : u[p];
2423
2659
  return {
2424
2660
  cardState: p,
2425
- description: m,
2426
- title: n.manage_debit_title
2661
+ description: h,
2662
+ title: o.manage_debit_title
2427
2663
  };
2428
2664
  }, a = (d) => {
2429
- const p = ht(d), u = {
2430
- GOOD: n.credit_score_good_description,
2431
- FAIR: n.credit_score_fair_description,
2432
- OFF_TRACK: n.credit_score_off_track_description,
2433
- MISSING: n.credit_score_missing_description
2434
- }, m = p === "MISSING" ? u[p] : j(u[p], d);
2665
+ const p = Gt(d), u = {
2666
+ GOOD: o.credit_score_good_description,
2667
+ FAIR: o.credit_score_fair_description,
2668
+ OFF_TRACK: o.credit_score_off_track_description,
2669
+ MISSING: o.credit_score_missing_description
2670
+ }, h = p === "MISSING" ? u[p] : z(u[p], d);
2435
2671
  return {
2436
2672
  cardState: p,
2437
- description: m,
2438
- title: n.credit_score_title
2673
+ description: h,
2674
+ title: o.credit_score_title
2439
2675
  };
2440
- }, { manageDebtStatus: l, creditScoreStatus: c } = h.useMemo(() => {
2441
- const d = t.debt_to_income_ratio !== null ? Math.round(t.debt_to_income_ratio * 100) : null, p = s(d), u = a(r.credit_score || null);
2676
+ }, { manageDebtStatus: l, creditScoreStatus: c } = m.useMemo(() => {
2677
+ const d = t.debt_to_income_ratio !== null ? Math.round(t.debt_to_income_ratio * 100) : null, p = i(d), u = a(r.credit_score || null);
2442
2678
  return {
2443
2679
  manageDebtStatus: p,
2444
2680
  creditScoreStatus: u
2445
2681
  };
2446
- }, [t.debt_to_income_ratio, r.credit_score, n, o]);
2447
- return /* @__PURE__ */ i(_, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
2682
+ }, [t.debt_to_income_ratio, r.credit_score, o, n]);
2683
+ return /* @__PURE__ */ s(_, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
2448
2684
  /* @__PURE__ */ e(
2449
- fe,
2685
+ we,
2450
2686
  {
2451
2687
  cardState: l.cardState,
2452
2688
  description: l.description,
2453
- drawerFor: ue.HaveManageableDebt,
2689
+ drawerFor: ye.HaveManageableDebt,
2454
2690
  title: l.title
2455
2691
  }
2456
2692
  ),
2457
2693
  /* @__PURE__ */ e(
2458
- fe,
2694
+ we,
2459
2695
  {
2460
2696
  cardState: c.cardState,
2461
2697
  description: c.description,
2462
- drawerFor: ue.HaveAGoodCreditScore,
2698
+ drawerFor: ye.HaveAGoodCreditScore,
2463
2699
  title: c.title
2464
2700
  }
2465
2701
  )
2466
2702
  ] });
2467
- }, Mr = w(kr), Dr = () => {
2468
- const [t, o] = h.useState(0), { finstrong: n } = v();
2469
- return /* @__PURE__ */ i(z, { children: [
2470
- /* @__PURE__ */ i(
2471
- Ve,
2703
+ }, Nr = w($r), zr = () => {
2704
+ const [t, n] = m.useState(0), { finstrong: o } = S();
2705
+ return /* @__PURE__ */ s(H, { children: [
2706
+ /* @__PURE__ */ s(
2707
+ et,
2472
2708
  {
2473
2709
  "aria-label": "Key Indicators",
2474
2710
  centered: !0,
2475
- onChange: (r, s) => o(s),
2711
+ onChange: (r, i) => n(i),
2476
2712
  selectionFollowsFocus: !0,
2477
2713
  sx: {
2478
2714
  mb: 0,
@@ -2485,57 +2721,57 @@ const zo = ({ total: t }) => {
2485
2721
  variant: "fullWidth",
2486
2722
  children: [
2487
2723
  /* @__PURE__ */ e(
2488
- de,
2724
+ he,
2489
2725
  {
2490
2726
  "aria-controls": "spend-details-tabpanel-0",
2491
- icon: /* @__PURE__ */ e(pt, { sx: { mr: 8 } }),
2727
+ icon: /* @__PURE__ */ e(bt, { sx: { mr: 8 } }),
2492
2728
  iconPosition: "start",
2493
2729
  id: "spend-details-tab-0",
2494
- label: n.key_indicators_spend.title,
2730
+ label: o.key_indicators_spend.title,
2495
2731
  sx: { minHeight: 44 }
2496
2732
  }
2497
2733
  ),
2498
2734
  /* @__PURE__ */ e(
2499
- de,
2735
+ he,
2500
2736
  {
2501
2737
  "aria-controls": "save-details-tabpanel-1",
2502
- icon: /* @__PURE__ */ e(dn, { sx: { mr: 8 } }),
2738
+ icon: /* @__PURE__ */ e(xn, { sx: { mr: 8 } }),
2503
2739
  iconPosition: "start",
2504
2740
  id: "save-details-tab-1",
2505
- label: n.key_indicators_save.title,
2741
+ label: o.key_indicators_save.title,
2506
2742
  sx: { minHeight: 44 }
2507
2743
  }
2508
2744
  ),
2509
2745
  /* @__PURE__ */ e(
2510
- de,
2746
+ he,
2511
2747
  {
2512
2748
  "aria-controls": "borrow-details-tabpanel-2",
2513
- icon: /* @__PURE__ */ e(pn, { sx: { mr: 8 } }),
2749
+ icon: /* @__PURE__ */ e(Cn, { sx: { mr: 8 } }),
2514
2750
  iconPosition: "start",
2515
2751
  id: "borrow-details-tab-2",
2516
- label: n.key_indicators_borrow.title,
2752
+ label: o.key_indicators_borrow.title,
2517
2753
  sx: { minHeight: 44 }
2518
2754
  }
2519
2755
  )
2520
2756
  ]
2521
2757
  }
2522
2758
  ),
2523
- /* @__PURE__ */ e(pe, { index: 0, name: "spend-details", value: t, children: /* @__PURE__ */ e(vr, {}) }),
2524
- /* @__PURE__ */ e(pe, { index: 1, name: "save-details", value: t, children: /* @__PURE__ */ e(wr, {}) }),
2525
- /* @__PURE__ */ e(pe, { index: 2, name: "borrow-details", value: t, children: /* @__PURE__ */ e(Mr, {}) })
2759
+ /* @__PURE__ */ e(ge, { index: 0, name: "spend-details", value: t, children: /* @__PURE__ */ e(Er, {}) }),
2760
+ /* @__PURE__ */ e(ge, { index: 1, name: "save-details", value: t, children: /* @__PURE__ */ e(Wr, {}) }),
2761
+ /* @__PURE__ */ e(ge, { index: 2, name: "borrow-details", value: t, children: /* @__PURE__ */ e(Nr, {}) })
2526
2762
  ] });
2527
- }, Ir = w(Dr), Ar = ({ onClick: t }) => {
2528
- const { finstrong: o } = v(), { isCopyLoaded: n } = J();
2529
- return n ? /* @__PURE__ */ i(_, { sx: { alignItems: "center", gap: 12, pt: 12, pb: 32 }, children: [
2530
- /* @__PURE__ */ e(_n, { size: 48 }),
2531
- /* @__PURE__ */ i(_, { sx: { alignItems: "center", gap: 4, textAlign: "center" }, children: [
2532
- /* @__PURE__ */ e(K, { children: o.missing_data_title }),
2533
- /* @__PURE__ */ e(I, { sx: { width: { sm: 348 } }, variant: "subtitle1", children: o.missing_data_description })
2763
+ }, Hr = w(zr), Kr = ({ onClick: t }) => {
2764
+ const { finstrong: n } = S(), { isCopyLoaded: o } = ne();
2765
+ return o ? /* @__PURE__ */ s(_, { sx: { alignItems: "center", gap: 12, pt: 12, pb: 32 }, children: [
2766
+ /* @__PURE__ */ e(Sn, { size: 48 }),
2767
+ /* @__PURE__ */ s(_, { sx: { alignItems: "center", gap: 4, textAlign: "center" }, children: [
2768
+ /* @__PURE__ */ e(j, { children: n.missing_data_title }),
2769
+ /* @__PURE__ */ e(A, { sx: { width: { sm: 348 } }, variant: "subtitle1", children: n.missing_data_description })
2534
2770
  ] }),
2535
2771
  /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
2536
- P,
2772
+ E,
2537
2773
  {
2538
- endIcon: /* @__PURE__ */ e(Z, {}),
2774
+ endIcon: /* @__PURE__ */ e(J, {}),
2539
2775
  onClick: t,
2540
2776
  size: "small",
2541
2777
  sx: {
@@ -2545,79 +2781,79 @@ const zo = ({ total: t }) => {
2545
2781
  }
2546
2782
  },
2547
2783
  variant: "text",
2548
- children: o.connect_more_accounts_button
2784
+ children: n.connect_more_accounts_button
2549
2785
  }
2550
2786
  ) })
2551
- ] }) : /* @__PURE__ */ e(U, {});
2552
- }, Tr = w(Ar), Or = ({
2787
+ ] }) : /* @__PURE__ */ e(ee, {});
2788
+ }, Vr = w(Kr), jr = ({
2553
2789
  firstDay: t,
2554
- frequency: o,
2555
- secondDay: n,
2790
+ frequency: n,
2791
+ secondDay: o,
2556
2792
  incomeTransactions: r,
2557
- setCurrentStep: s,
2793
+ setCurrentStep: i,
2558
2794
  setFirstDay: a,
2559
2795
  setFrequency: l,
2560
2796
  setSecondDay: c,
2561
2797
  transaction: d
2562
2798
  }) => {
2563
- const { finstrong: p } = v();
2564
- return /* @__PURE__ */ i(h.Fragment, { children: [
2565
- /* @__PURE__ */ i(_, { children: [
2566
- !!r.length && /* @__PURE__ */ e(M, { sx: { pb: 24 }, children: r.reduce((u, m, b) => {
2567
- if (m.guid === d.guid) return u;
2568
- const C = Kn(b, r), x = Vn(b, r);
2799
+ const { finstrong: p } = S();
2800
+ return /* @__PURE__ */ s(m.Fragment, { children: [
2801
+ /* @__PURE__ */ s(_, { children: [
2802
+ !!r.length && /* @__PURE__ */ e(M, { sx: { pb: 24 }, children: r.reduce((u, h, f) => {
2803
+ if (h.guid === d.guid) return u;
2804
+ const v = Kn(f, r), x = Vn(f, r);
2569
2805
  return u.push(
2570
- /* @__PURE__ */ i(h.Fragment, { children: [
2571
- C && /* @__PURE__ */ e(Xn, { children: Mt(m.date) }),
2572
- /* @__PURE__ */ e(Yn, { transaction: m }),
2573
- /* @__PURE__ */ e(_e, { sx: { ml: x ? 44 : 0 } })
2574
- ] }, m.guid)
2806
+ /* @__PURE__ */ s(m.Fragment, { children: [
2807
+ v && /* @__PURE__ */ e(jn, { children: Dt(h.date) }),
2808
+ /* @__PURE__ */ e(Yn, { transaction: h }),
2809
+ /* @__PURE__ */ e(ae, { sx: { ml: x ? 44 : 0 } })
2810
+ ] }, h.guid)
2575
2811
  ), u;
2576
2812
  }, []) }),
2577
2813
  /* @__PURE__ */ e(
2578
- io,
2814
+ ao,
2579
2815
  {
2580
2816
  firstDay: t,
2581
- frequency: o,
2817
+ frequency: n,
2582
2818
  onFirstDayChange: a,
2583
2819
  onFrequencyChange: l,
2584
2820
  onSecondDayChange: c,
2585
- secondDay: n,
2821
+ secondDay: o,
2586
2822
  transaction: d
2587
2823
  }
2588
2824
  )
2589
2825
  ] }),
2590
2826
  /* @__PURE__ */ e(M, { sx: { px: 24 }, children: /* @__PURE__ */ e(
2591
- P,
2827
+ E,
2592
2828
  {
2593
2829
  fullWidth: !0,
2594
- onClick: () => s({ step: R.MonthlyIncome, type: "main" }),
2595
- startIcon: /* @__PURE__ */ e(_t, {}),
2830
+ onClick: () => i({ step: R.MonthlyIncome, type: "main" }),
2831
+ startIcon: /* @__PURE__ */ e(xt, {}),
2596
2832
  children: p.onboarding_add_more_income
2597
2833
  }
2598
2834
  ) })
2599
2835
  ] });
2600
- }, Rr = w(Or), Lr = ({ selectedDate: t, setSelectedDate: o }) => {
2601
- const { finstrong: n } = v(), r = E(), s = (a) => {
2602
- o(Math.floor(new Date(a).getTime() / 1e3));
2836
+ }, Yr = w(jr), Xr = ({ selectedDate: t, setSelectedDate: n }) => {
2837
+ const { finstrong: o } = S(), r = W(), i = (a) => {
2838
+ n(Math.floor(new Date(a).getTime() / 1e3));
2603
2839
  };
2604
- return /* @__PURE__ */ e(M, { sx: { p: 24 }, children: /* @__PURE__ */ e(lo, { dateAdapter: At, children: /* @__PURE__ */ e(
2840
+ return /* @__PURE__ */ e(M, { sx: { p: 24 }, children: /* @__PURE__ */ e(lo, { dateAdapter: Rt, children: /* @__PURE__ */ e(
2605
2841
  po,
2606
2842
  {
2607
2843
  disableFuture: !0,
2608
- label: n.onboarding_select_date,
2609
- onChange: s,
2844
+ label: o.onboarding_select_date,
2845
+ onChange: i,
2610
2846
  slotProps: {
2611
2847
  nextIconButton: {
2612
2848
  sx: {
2613
2849
  color: "primary.main",
2614
- "&:hover": { bgcolor: le(r.palette.primary.light, 0.1) }
2850
+ "&:hover": { bgcolor: ue(r.palette.primary.light, 0.1) }
2615
2851
  }
2616
2852
  },
2617
2853
  previousIconButton: {
2618
2854
  sx: {
2619
2855
  color: "primary.main",
2620
- "&:hover": { bgcolor: le(r.palette.primary.light, 0.1) }
2856
+ "&:hover": { bgcolor: ue(r.palette.primary.light, 0.1) }
2621
2857
  }
2622
2858
  }
2623
2859
  },
@@ -2625,31 +2861,33 @@ const zo = ({ total: t }) => {
2625
2861
  width: "100%",
2626
2862
  "& .MuiIconButton-edgeEnd": {
2627
2863
  color: "primary.main",
2628
- "&:hover": { bgcolor: le(r.palette.primary.light, 0.1) }
2864
+ "&:hover": { bgcolor: ue(r.palette.primary.light, 0.1) }
2629
2865
  }
2630
2866
  },
2631
2867
  value: t ? new Date(t * 1e3) : null
2632
2868
  }
2633
2869
  ) }) });
2634
- }, Fr = w(Lr), Br = ({ creditScore: t, setCreditScore: o }) => {
2635
- const { finstrong: n } = v(), r = !isNaN(t);
2870
+ }, Ur = w(Xr), qr = ({ creditScore: t, setCreditScore: n }) => {
2871
+ const { finstrong: o } = S(), r = !isNaN(t);
2636
2872
  return /* @__PURE__ */ e(M, { sx: { p: 24 }, children: /* @__PURE__ */ e(
2637
- Re,
2873
+ Pe,
2638
2874
  {
2639
2875
  error: !r,
2640
2876
  fullWidth: !0,
2641
2877
  inputMode: "numeric",
2642
- inputProps: {
2643
- noValidate: !0,
2644
- pattern: "[0-9]*"
2878
+ label: o.credit_score,
2879
+ onChange: (i) => n(Number(i.target.value)),
2880
+ slotProps: {
2881
+ htmlInput: {
2882
+ noValidate: !0,
2883
+ pattern: "[0-9]*"
2884
+ }
2645
2885
  },
2646
- label: n.credit_score,
2647
- onChange: (s) => o(Number(s.target.value)),
2648
2886
  value: r ? t : ""
2649
2887
  }
2650
2888
  ) });
2651
- }, Pr = w(Br), Wt = ({ value: t, completeCopy: o }) => /* @__PURE__ */ i(_, { sx: { gap: 8 }, children: [
2652
- /* @__PURE__ */ e(_, { sx: { flexDirection: "row", gap: 4 }, children: Array.from({ length: 4 }).map((n, r) => /* @__PURE__ */ e(
2889
+ }, Qr = w(qr), Xt = ({ value: t, completeCopy: n }) => /* @__PURE__ */ s(_, { sx: { gap: 8 }, children: [
2890
+ /* @__PURE__ */ e(_, { sx: { flexDirection: "row", gap: 4 }, children: Array.from({ length: 4 }).map((o, r) => /* @__PURE__ */ e(
2653
2891
  M,
2654
2892
  {
2655
2893
  sx: {
@@ -2661,244 +2899,244 @@ const zo = ({ total: t }) => {
2661
2899
  },
2662
2900
  r
2663
2901
  )) }),
2664
- /* @__PURE__ */ i(A, { sx: { color: "text.secondary" }, variant: "body2", children: [
2902
+ /* @__PURE__ */ s(D, { sx: { color: "text.secondary" }, variant: "body2", children: [
2665
2903
  t / 4 * 100,
2666
2904
  "% ",
2667
- o
2905
+ n
2668
2906
  ] })
2669
- ] }), Wr = ({
2907
+ ] }), Zr = ({
2670
2908
  completeCopy: t,
2671
- primaryText: o,
2672
- secondaryText: n,
2909
+ primaryText: n,
2910
+ secondaryText: o,
2673
2911
  value: r
2674
- }) => /* @__PURE__ */ i(_, { sx: { gap: 20, p: 24 }, children: [
2675
- /* @__PURE__ */ i(_, { sx: { gap: 8 }, children: [
2676
- /* @__PURE__ */ e(K, { children: o }),
2677
- /* @__PURE__ */ e(I, { variant: "subtitle1", children: n })
2912
+ }) => /* @__PURE__ */ s(_, { sx: { gap: 20, p: 24 }, children: [
2913
+ /* @__PURE__ */ s(_, { sx: { gap: 8 }, children: [
2914
+ /* @__PURE__ */ e(j, { children: n }),
2915
+ /* @__PURE__ */ e(A, { variant: "subtitle1", children: o })
2678
2916
  ] }),
2679
- /* @__PURE__ */ e(Wt, { completeCopy: t, value: r })
2680
- ] }), st = {
2917
+ /* @__PURE__ */ e(Xt, { completeCopy: t, value: r })
2918
+ ] }), ht = {
2681
2919
  step: R.ConnectAccounts,
2682
2920
  type: "main"
2683
- }, $r = ({ isOpen: t, onClose: o }) => {
2684
- const { visibleAccounts: n } = xe(), { calculateHealthScore: r } = B(), { finstrong: s } = v(), { addRepeatingTransaction: a, setDateRange: l } = je(), { filter: c, setFilter: d, transactions: p } = Rn(), { user: u, userProfile: m, updateUser: b, updateUserProfile: C } = ee(), [x, S] = h.useState(u.credit_score || 0), [y, k] = h.useState(
2685
- st
2686
- ), [g, f] = h.useState(1), [T, L] = h.useState(wt.EveryMonth), [D, G] = h.useState([]), [W, H] = h.useState(!1), [ve, ae] = h.useState(!1), [X, te] = h.useState(u.birthday), [ie, Y] = h.useState(15), [N, he] = h.useState("");
2687
- h.useEffect(() => {
2688
- l({ start: Dt(at()), end: It(at()) });
2689
- }, []), h.useEffect(() => {
2921
+ }, Jr = ({ isOpen: t, onClose: n }) => {
2922
+ const { visibleAccounts: o } = ke(), { calculateHealthScore: r } = L(), { finstrong: i } = S(), { addRepeatingTransaction: a, setDateRange: l } = Ze(), { filter: c, setFilter: d, transactions: p } = En(), { user: u, userProfile: h, updateUser: f, updateUserProfile: v } = oe(), [x, C] = m.useState(u.credit_score || 0), [b, k] = m.useState(
2923
+ ht
2924
+ ), [g, y] = m.useState(1), [I, G] = m.useState(Tt.EveryMonth), [O, $] = m.useState([]), [F, K] = m.useState(!1), [fe, be] = m.useState(!1), [X, re] = m.useState(u.birthday), [ce, U] = m.useState(15), [V, le] = m.useState("");
2925
+ m.useEffect(() => {
2926
+ l({ start: It(Ve()), end: At(Ve()) });
2927
+ }, []), m.useEffect(() => {
2690
2928
  d({
2691
- accounts: n.map((O) => O.guid),
2929
+ accounts: o.map((T) => T.guid),
2692
2930
  dateRange: {
2693
- start: ao(/* @__PURE__ */ new Date(), 90),
2931
+ start: ro(/* @__PURE__ */ new Date(), 90),
2694
2932
  end: /* @__PURE__ */ new Date()
2695
2933
  },
2696
- custom: it
2934
+ custom: pt
2697
2935
  });
2698
- }, [n]);
2699
- const se = h.useMemo(
2700
- () => p.find((O) => O.guid === N),
2701
- [N, p]
2702
- ), Ce = h.useMemo(() => ({
2936
+ }, [o]);
2937
+ const de = m.useMemo(
2938
+ () => p.find((T) => T.guid === V),
2939
+ [V, p]
2940
+ ), xe = m.useMemo(() => ({
2703
2941
  [R.ConnectAccounts]: !0,
2704
- [R.MonthlyIncome]: !!N,
2942
+ [R.MonthlyIncome]: !!V,
2705
2943
  [R.Birthday]: !!u.birthday || !!X,
2706
2944
  [R.CreditScore]: !!u.credit_score || !!x
2707
- })[y.step], [x, y, X, N, u]), q = n.length > 0, De = h.useMemo(() => {
2708
- const { step: O } = y;
2709
- let F = 0;
2710
- return O >= R.MonthlyIncome && q && F++, O >= R.Birthday && D.length && F++, O >= R.CreditScore && (u.birthday || u.credit_score) && F++, F;
2711
- }, [y.step, q, D.length, u.birthday, u.credit_score]), $t = (O) => {
2945
+ })[b.step], [x, b, X, V, u]), N = o.length > 0, Ce = m.useMemo(() => {
2946
+ const { step: T } = b;
2947
+ let P = 0;
2948
+ return T >= R.MonthlyIncome && N && P++, T >= R.Birthday && O.length && P++, T >= R.CreditScore && (u.birthday || u.credit_score) && P++, P;
2949
+ }, [b.step, N, O.length, u.birthday, u.credit_score]), He = (T) => {
2712
2950
  d({
2713
2951
  ...c,
2714
- custom: (F) => O ? co(F, O) : it(F)
2952
+ custom: (P) => T ? so(P, T) : pt(P)
2715
2953
  });
2716
- }, Et = {
2954
+ }, Ke = {
2717
2955
  [R.ConnectAccounts]: {
2718
- main: q ? /* @__PURE__ */ e(Ft, { shouldShowBalance: !1 }) : null,
2719
- mainActionContent: q ? s.onboarding_next : s.onboarding_add_accounts,
2720
- primaryText: s.connect_your_accounts,
2721
- secondaryText: s.onboarding_connect_your_accounts_secondary
2956
+ main: N ? /* @__PURE__ */ e(Vt, { shouldShowBalance: !1 }) : null,
2957
+ mainActionContent: N ? i.onboarding_next : i.onboarding_add_accounts,
2958
+ primaryText: i.connect_your_accounts,
2959
+ secondaryText: i.onboarding_connect_your_accounts_secondary
2722
2960
  },
2723
2961
  [R.MonthlyIncome]: {
2724
2962
  detail: /* @__PURE__ */ e(
2725
- Rr,
2963
+ Yr,
2726
2964
  {
2727
2965
  firstDay: g,
2728
- frequency: T,
2729
- incomeTransactions: D,
2730
- secondDay: ie,
2731
- setCurrentStep: (O) => {
2732
- k(O), G((F) => {
2733
- if (F.some((ce) => ce.guid === N)) return F.filter((ce) => ce.guid !== N);
2734
- const Ae = p.find((ce) => ce.guid === N);
2735
- return Ae ? [...F, { ...Ae, firstDay: g, frequency: T, secondDay: ie }] : F;
2966
+ frequency: I,
2967
+ incomeTransactions: O,
2968
+ secondDay: ce,
2969
+ setCurrentStep: (T) => {
2970
+ k(T), $((P) => {
2971
+ if (P.some((pe) => pe.guid === V)) return P.filter((pe) => pe.guid !== V);
2972
+ const Re = p.find((pe) => pe.guid === V);
2973
+ return Re ? [...P, { ...Re, firstDay: g, frequency: I, secondDay: ce }] : P;
2736
2974
  });
2737
2975
  },
2738
- setFirstDay: f,
2739
- setFrequency: L,
2740
- setSecondDay: Y,
2741
- transaction: se
2976
+ setFirstDay: y,
2977
+ setFrequency: G,
2978
+ setSecondDay: U,
2979
+ transaction: de
2742
2980
  }
2743
2981
  ),
2744
- detailActionContent: s.onboarding_confirm_income,
2982
+ detailActionContent: i.onboarding_confirm_income,
2745
2983
  main: /* @__PURE__ */ e(
2746
- so,
2984
+ io,
2747
2985
  {
2748
- onSearch: $t,
2749
- onSelected: (O) => {
2750
- k({ step: R.MonthlyIncome, type: "detail" }), he(O);
2986
+ onSearch: He,
2987
+ onSelected: (T) => {
2988
+ k({ step: R.MonthlyIncome, type: "detail" }), le(T);
2751
2989
  }
2752
2990
  }
2753
2991
  ),
2754
- mainActionContent: s.onboarding_confirm_income,
2755
- primaryText: s.onboarding_add_income_primary,
2756
- secondaryText: s.onboarding_add_income_secondary
2992
+ mainActionContent: i.onboarding_confirm_income,
2993
+ primaryText: i.onboarding_add_income_primary,
2994
+ secondaryText: i.onboarding_add_income_secondary
2757
2995
  },
2758
2996
  [R.Birthday]: {
2759
- main: /* @__PURE__ */ e(Fr, { selectedDate: X, setSelectedDate: te }),
2760
- mainActionContent: s.onboarding_next,
2761
- primaryText: s.onboarding_birthday_primary,
2762
- secondaryText: s.onboarding_birthday_secondary
2997
+ main: /* @__PURE__ */ e(Ur, { selectedDate: X, setSelectedDate: re }),
2998
+ mainActionContent: i.onboarding_next,
2999
+ primaryText: i.onboarding_birthday_primary,
3000
+ secondaryText: i.onboarding_birthday_secondary
2763
3001
  },
2764
3002
  [R.CreditScore]: {
2765
- main: /* @__PURE__ */ e(Pr, { creditScore: x, setCreditScore: S }),
2766
- mainActionContent: s.onboarding_next,
2767
- primaryText: s.onboarding_credit_score_primary,
2768
- secondaryText: s.onboarding_credit_score_secondary
3003
+ main: /* @__PURE__ */ e(Qr, { creditScore: x, setCreditScore: C }),
3004
+ mainActionContent: i.onboarding_next,
3005
+ primaryText: i.onboarding_credit_score_primary,
3006
+ secondaryText: i.onboarding_credit_score_secondary
2769
3007
  }
2770
- }, qe = () => {
2771
- k(st), H(!1), he(""), o();
2772
- }, Ue = async () => {
2773
- H(!0), await Nt(D), await r(), await C({ ...m, has_completed_finstrong_onboarding: !0 }), qe();
2774
- }, zt = () => {
2775
- if (y.step === R.CreditScore) {
2776
- Ue();
3008
+ }, Te = () => {
3009
+ k(ht), K(!1), le(""), n();
3010
+ }, rt = async () => {
3011
+ K(!0), await Zt(O), await r(), await v({ ...h, has_completed_finstrong_onboarding: !0 }), Te();
3012
+ }, Ut = () => {
3013
+ if (b.step === R.CreditScore) {
3014
+ rt();
2777
3015
  return;
2778
3016
  }
2779
- k({ step: y.step + 1, type: "main" });
2780
- }, Gt = () => {
2781
- const { step: O } = y, F = O + 1;
2782
- switch (O) {
3017
+ k({ step: b.step + 1, type: "main" });
3018
+ }, qt = () => {
3019
+ const { step: T } = b, P = T + 1;
3020
+ switch (T) {
2783
3021
  case R.Birthday:
2784
- X && X !== u.birthday && b({ ...u, birthday: X });
3022
+ X && X !== u.birthday && f({ ...u, birthday: X });
2785
3023
  break;
2786
3024
  case R.CreditScore:
2787
- x && x !== u.credit_score && b({ ...u, credit_score: x }), Ue();
3025
+ x && x !== u.credit_score && f({ ...u, credit_score: x }), rt();
2788
3026
  return;
2789
3027
  case R.MonthlyIncome:
2790
- N && D.findIndex(({ guid: ge }) => ge === N) === -1 && G((ge) => [
2791
- ...ge,
2792
- { ...se, firstDay: g, frequency: T, secondDay: ie }
3028
+ V && O.findIndex(({ guid: ve }) => ve === V) === -1 && $((ve) => [
3029
+ ...ve,
3030
+ { ...de, firstDay: g, frequency: I, secondDay: ce }
2793
3031
  ]);
2794
3032
  break;
2795
3033
  case R.ConnectAccounts:
2796
- if (!q) {
2797
- ae(!0);
3034
+ if (!N) {
3035
+ be(!0);
2798
3036
  return;
2799
3037
  }
2800
3038
  break;
2801
3039
  }
2802
- F in R && k({ step: F, type: "main" });
2803
- }, Ht = () => {
2804
- const { step: O, type: F } = y;
2805
- if (F === "detail") {
2806
- k({ step: O, type: "main" });
3040
+ P in R && k({ step: P, type: "main" });
3041
+ }, Qt = () => {
3042
+ const { step: T, type: P } = b;
3043
+ if (P === "detail") {
3044
+ k({ step: T, type: "main" });
2807
3045
  return;
2808
3046
  }
2809
- if (O === R.Birthday && D.length) {
2810
- k({ step: O - 1, type: "detail" });
3047
+ if (T === R.Birthday && O.length) {
3048
+ k({ step: T - 1, type: "detail" });
2811
3049
  return;
2812
3050
  }
2813
- O > R.ConnectAccounts && k({ step: O - 1, type: "main" });
2814
- }, Nt = async (O) => {
2815
- for (const F of O) {
3051
+ T > R.ConnectAccounts && k({ step: T - 1, type: "main" });
3052
+ }, Zt = async (T) => {
3053
+ for (const P of T) {
2816
3054
  const {
2817
- account_guid: ge,
2818
- amount: Ae,
2819
- date: ce,
2820
- description: Vt,
2821
- feed_description: Xt,
2822
- firstDay: Yt,
2823
- frequency: Qe,
2824
- secondDay: qt,
2825
- merchant_guid: Ut,
2826
- payee: Qt,
2827
- transaction_type: Zt
2828
- } = F, Jt = Hn(Qe, ro(ce)), en = {
2829
- account_guid: ge,
2830
- amount: Ae,
3055
+ account_guid: ve,
3056
+ amount: Re,
3057
+ date: pe,
3058
+ description: tn,
3059
+ feed_description: nn,
3060
+ firstDay: on,
3061
+ frequency: at,
3062
+ secondDay: rn,
3063
+ merchant_guid: an,
3064
+ payee: sn,
3065
+ transaction_type: cn
3066
+ } = P, ln = co(at, oo(pe)), dn = {
3067
+ account_guid: ve,
3068
+ amount: Re,
2831
3069
  created_by: 0,
2832
- description: Qt || Vt || Xt,
2833
- merchant_guid: Ut,
2834
- predicted_occurs_on: oo(Jt, { representation: "date" }),
2835
- recurrence_day: Yt,
2836
- recurrence_type: Qe,
2837
- repeating_transaction_type: kt.Income,
2838
- second_recurrence_day: qt,
2839
- transaction_type: Zt,
3070
+ description: sn || tn || nn,
3071
+ merchant_guid: an,
3072
+ predicted_occurs_on: no(ln, { representation: "date" }),
3073
+ recurrence_day: on,
3074
+ recurrence_type: at,
3075
+ repeating_transaction_type: Ot.Income,
3076
+ second_recurrence_day: rn,
3077
+ transaction_type: cn,
2840
3078
  user_guid: u.guid
2841
3079
  };
2842
- await a(en, F);
3080
+ await a(dn, P);
2843
3081
  }
2844
- }, me = Et[y.step], Ie = y.step === R.ConnectAccounts, jt = {
3082
+ }, Se = Ke[b.step], Oe = b.step === R.ConnectAccounts, Jt = {
2845
3083
  fullWidth: !0,
2846
- ...Ie && !q && { startIcon: /* @__PURE__ */ e(_t, {}) }
2847
- }, Kt = !Ie || Ie && !q;
2848
- return /* @__PURE__ */ i(h.Fragment, { children: [
3084
+ ...Oe && !N && { startIcon: /* @__PURE__ */ e(xt, {}) }
3085
+ }, en = !Oe || Oe && !N;
3086
+ return /* @__PURE__ */ s(m.Fragment, { children: [
2849
3087
  /* @__PURE__ */ e(
2850
- oe,
3088
+ ie,
2851
3089
  {
2852
3090
  footerStyles: { borderTop: 1, borderColor: "divider", px: 24, py: 16 },
2853
- hasSecondaryAction: !Ie,
3091
+ hasSecondaryAction: !Oe,
2854
3092
  isOpen: t,
2855
- isPrimaryDisabled: !Ce,
2856
- onClose: qe,
2857
- onSecondaryAction: Ht,
2858
- primaryButtonProps: jt,
2859
- primaryText: me?.mainActionContent,
3093
+ isPrimaryDisabled: !xe,
3094
+ onClose: Te,
3095
+ onSecondaryAction: Qt,
3096
+ primaryButtonProps: Jt,
3097
+ primaryText: Se?.mainActionContent,
2860
3098
  secondaryColor: "primary",
2861
- secondaryText: s.onboarding_back,
2862
- title: s.title,
2863
- ...!W && { onPrimaryAction: Gt },
2864
- children: /* @__PURE__ */ i(_, { sx: { bgcolor: "background.default", height: "100%" }, children: [
2865
- W && /* @__PURE__ */ i(_, { sx: { alignItems: "center", gap: 24, position: "relative", px: 16, top: 126 }, children: [
2866
- /* @__PURE__ */ e("img", { alt: "", src: To, style: { minHeight: 100, width: 211 } }),
2867
- /* @__PURE__ */ e(Fe, { children: s.onboarding_calculate_primary }),
2868
- /* @__PURE__ */ e(I, { sx: { textAlign: "center" }, variant: "subtitle1", children: s.onboarding_calculate_secondary })
3099
+ secondaryText: i.onboarding_back,
3100
+ title: i.title,
3101
+ ...!F && { onPrimaryAction: qt },
3102
+ children: /* @__PURE__ */ s(_, { sx: { bgcolor: "background.default", height: "100%" }, children: [
3103
+ F && /* @__PURE__ */ s(_, { sx: { alignItems: "center", gap: 24, position: "relative", px: 16, top: 126 }, children: [
3104
+ /* @__PURE__ */ e("img", { alt: "", src: Vo, style: { minHeight: 100, width: 211 } }),
3105
+ /* @__PURE__ */ e(Ge, { children: i.onboarding_calculate_primary }),
3106
+ /* @__PURE__ */ e(A, { sx: { textAlign: "center" }, variant: "subtitle1", children: i.onboarding_calculate_secondary })
2869
3107
  ] }),
2870
- me && !W && /* @__PURE__ */ i(h.Fragment, { children: [
3108
+ Se && !F && /* @__PURE__ */ s(m.Fragment, { children: [
2871
3109
  /* @__PURE__ */ e(
2872
- Wr,
3110
+ Zr,
2873
3111
  {
2874
- completeCopy: s.complete,
2875
- primaryText: me.primaryText,
2876
- secondaryText: me.secondaryText,
2877
- value: De
3112
+ completeCopy: i.complete,
3113
+ primaryText: Se.primaryText,
3114
+ secondaryText: Se.secondaryText,
3115
+ value: Ce
2878
3116
  }
2879
3117
  ),
2880
- y.type === "main" && /* @__PURE__ */ i(M, { sx: { bgcolor: "background.default" }, children: [
2881
- me.main,
2882
- Kt && /* @__PURE__ */ e(_, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e(P, { fullWidth: !0, onClick: zt, children: s.onboarding_do_it_later }) })
3118
+ b.type === "main" && /* @__PURE__ */ s(M, { sx: { bgcolor: "background.default" }, children: [
3119
+ Se.main,
3120
+ en && /* @__PURE__ */ e(_, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e(E, { fullWidth: !0, onClick: Ut, children: i.onboarding_do_it_later }) })
2883
3121
  ] }),
2884
- y.type === "detail" && me.detail
3122
+ b.type === "detail" && Se.detail
2885
3123
  ] })
2886
3124
  ] })
2887
3125
  }
2888
3126
  ),
2889
3127
  /* @__PURE__ */ e(
2890
- re,
3128
+ se,
2891
3129
  {
2892
- onClose: () => ae(!1),
2893
- showConnectWidget: ve,
2894
- title: s.connect_more_accounts_button
3130
+ onClose: () => be(!1),
3131
+ showConnectWidget: fe,
3132
+ title: i.connect_more_accounts_button
2895
3133
  }
2896
3134
  )
2897
3135
  ] });
2898
- }, Er = w($r), zr = () => {
2899
- const { finstrong: t } = v(), [o, n] = h.useState(!1);
2900
- return /* @__PURE__ */ i(h.Fragment, { children: [
2901
- /* @__PURE__ */ i(
3136
+ }, ea = w(Jr), ta = () => {
3137
+ const { finstrong: t } = S(), [n, o] = m.useState(!1);
3138
+ return /* @__PURE__ */ s(m.Fragment, { children: [
3139
+ /* @__PURE__ */ s(
2902
3140
  _,
2903
3141
  {
2904
3142
  sx: {
@@ -2911,56 +3149,58 @@ const zo = ({ total: t }) => {
2911
3149
  px: 16
2912
3150
  },
2913
3151
  children: [
2914
- /* @__PURE__ */ i(_, { sx: { alignItems: { sm: "center" }, gap: 24, width: "100%" }, children: [
2915
- /* @__PURE__ */ e(M, { sx: { textAlign: "center" }, children: /* @__PURE__ */ e(un, { size: 72 }) }),
2916
- /* @__PURE__ */ i(_, { sx: { gap: 4, textAlign: "center", width: { sm: 400 } }, children: [
2917
- /* @__PURE__ */ e(Fe, { children: t.onboarding_title }),
2918
- /* @__PURE__ */ e(I, { sx: { color: "text.secondary" }, variant: "subtitle1", children: t.onboarding_subtitle })
3152
+ /* @__PURE__ */ s(_, { sx: { alignItems: { sm: "center" }, gap: 24, width: "100%" }, children: [
3153
+ /* @__PURE__ */ e(M, { sx: { textAlign: "center" }, children: /* @__PURE__ */ e(vn, { size: 72 }) }),
3154
+ /* @__PURE__ */ s(_, { sx: { gap: 4, textAlign: "center", width: { sm: 400 } }, children: [
3155
+ /* @__PURE__ */ e(Ge, { children: t.onboarding_title }),
3156
+ /* @__PURE__ */ e(A, { sx: { color: "text.secondary" }, variant: "subtitle1", children: t.onboarding_subtitle })
2919
3157
  ] })
2920
3158
  ] }),
2921
- /* @__PURE__ */ e(P, { onClick: () => n(!0), variant: "contained", children: t.onboarding_get_started })
3159
+ /* @__PURE__ */ e(E, { onClick: () => o(!0), variant: "contained", children: t.onboarding_get_started })
2922
3160
  ]
2923
3161
  }
2924
3162
  ),
2925
- /* @__PURE__ */ e(Er, { isOpen: o, onClose: () => n(!1) })
3163
+ /* @__PURE__ */ e(ea, { isOpen: n, onClose: () => o(!1) })
2926
3164
  ] });
2927
- }, Gr = ({ isOpen: t, onClose: o }) => {
2928
- const { finstrong: n } = v(), r = E(), { updateUser: s, user: a } = ee(), [l, c] = h.useState(a.birthday), d = (u) => {
2929
- c(Math.floor(new Date(u).getTime() / 1e3));
3165
+ }, na = ({ isOpen: t, onClose: n }) => {
3166
+ const { finstrong: o } = S(), r = W(), { updateUser: i, user: a } = oe(), { loadPeerScore: l } = L(), [c, d] = m.useState(a.birthday), p = (h) => {
3167
+ d(Math.floor(new Date(h).getTime() / 1e3));
2930
3168
  };
2931
3169
  return /* @__PURE__ */ e(
2932
- oe,
3170
+ ie,
2933
3171
  {
2934
3172
  footerStyles: { borderTop: 1, borderColor: "divider", px: 24, py: 16 },
2935
3173
  isOpen: t,
2936
- onClose: o,
3174
+ onClose: n,
2937
3175
  onPrimaryAction: () => {
2938
- !l || l === a.birthday || (s({ ...a, birthday: l }), o());
3176
+ !c || c === a.birthday || (i({ ...a, birthday: c }).finally(() => {
3177
+ l();
3178
+ }), n());
2939
3179
  },
2940
- onSecondaryAction: o,
2941
- title: n.date_of_birth,
2942
- children: /* @__PURE__ */ e(_, { sx: { bgcolor: "background.default", height: "100%" }, children: /* @__PURE__ */ e(ho, { dateAdapter: At, children: /* @__PURE__ */ e(
2943
- _o,
3180
+ onSecondaryAction: n,
3181
+ title: o.date_of_birth,
3182
+ children: /* @__PURE__ */ e(_, { sx: { bgcolor: "background.default", height: "100%" }, children: /* @__PURE__ */ e(mo, { dateAdapter: Rt, children: /* @__PURE__ */ e(
3183
+ uo,
2944
3184
  {
2945
3185
  disableFuture: !0,
2946
- onChange: d,
3186
+ onChange: p,
2947
3187
  slotProps: {
2948
3188
  nextIconButton: {
2949
3189
  sx: {
2950
3190
  color: "primary.main",
2951
- "&:hover": { bgcolor: le(r.palette.primary.light, 0.1) }
3191
+ "&:hover": { bgcolor: ue(r.palette.primary.light, 0.1) }
2952
3192
  }
2953
3193
  },
2954
3194
  previousIconButton: {
2955
3195
  sx: {
2956
3196
  color: "primary.main",
2957
- "&:hover": { bgcolor: le(r.palette.primary.light, 0.1) }
3197
+ "&:hover": { bgcolor: ue(r.palette.primary.light, 0.1) }
2958
3198
  }
2959
3199
  },
2960
3200
  switchViewButton: {
2961
3201
  sx: {
2962
3202
  color: "primary.main",
2963
- "&:hover": { bgcolor: le(r.palette.primary.light, 0.1) }
3203
+ "&:hover": { bgcolor: ue(r.palette.primary.light, 0.1) }
2964
3204
  }
2965
3205
  }
2966
3206
  },
@@ -2972,115 +3212,115 @@ const zo = ({ total: t }) => {
2972
3212
  width: "100%",
2973
3213
  "& .MuiIconButton-edgeEnd": {
2974
3214
  color: "primary.main",
2975
- "&:hover": { bgcolor: le(r.palette.primary.light, 0.1) }
3215
+ "&:hover": { bgcolor: ue(r.palette.primary.light, 0.1) }
2976
3216
  }
2977
3217
  },
2978
- value: l ? new Date(l * 1e3) : /* @__PURE__ */ new Date()
3218
+ value: c ? new Date(c * 1e3) : /* @__PURE__ */ new Date()
2979
3219
  }
2980
3220
  ) }) })
2981
3221
  }
2982
3222
  );
2983
- }, Hr = w(Gr), Nr = ({ isOpen: t, onClose: o }) => {
2984
- const { visibleFinstrongAccounts: n } = xe(), {
3223
+ }, oa = w(na), ra = ({ isOpen: t, onClose: n }) => {
3224
+ const { visibleFinstrongAccounts: o } = ke(), {
2985
3225
  accounts: r,
2986
- common: s,
3226
+ common: i,
2987
3227
  finstrong: a,
2988
3228
  recurring: l
2989
- } = v(), { repeatingTransactions: c } = je(), { user: d } = ee(), p = c.reduce((x, S) => {
2990
- const { repeating_transaction_type: y, transactions: k, recurrence_type: g, amount: f } = S;
2991
- return y === kt.Income && (k && k.length > 0 || g === wt.EveryYear) ? x + f : x;
2992
- }, 0), [u, m] = h.useState(null), C = [
3229
+ } = S(), { repeatingTransactions: c } = Ze(), { user: d } = oe(), p = c.reduce((x, C) => {
3230
+ const { repeating_transaction_type: b, transactions: k, recurrence_type: g, amount: y } = C;
3231
+ return b === Ot.Income && (k && k.length > 0 || g === Tt.EveryYear) ? x + y : x;
3232
+ }, 0), [u, h] = m.useState(null), v = [
2993
3233
  {
2994
3234
  dynamicCopy: a.add_profile_item,
2995
3235
  fallbackLabel: a.monthly_income,
2996
- icon: /* @__PURE__ */ e(hn, {}),
2997
- key: ne.MonthlyIncome,
3236
+ icon: /* @__PURE__ */ e(wn, {}),
3237
+ key: q.MonthlyIncome,
2998
3238
  label: a.monthly_income,
2999
3239
  value: p
3000
3240
  },
3001
3241
  {
3002
3242
  dynamicCopy: a.add_profile_item,
3003
3243
  fallbackLabel: a.date_of_birth,
3004
- icon: /* @__PURE__ */ e(mn, {}),
3005
- key: ne.DateOfBirth,
3244
+ icon: /* @__PURE__ */ e(kn, {}),
3245
+ key: q.DateOfBirth,
3006
3246
  label: a.date_of_birth,
3007
3247
  value: d.birthday
3008
3248
  },
3009
3249
  {
3010
3250
  dynamicCopy: a.add_profile_item,
3011
3251
  fallbackLabel: a.credit_score,
3012
- icon: /* @__PURE__ */ e(pt, {}),
3013
- key: ne.CreditScore,
3252
+ icon: /* @__PURE__ */ e(bt, {}),
3253
+ key: q.CreditScore,
3014
3254
  label: a.credit_score,
3015
3255
  value: d.credit_score
3016
3256
  },
3017
3257
  {
3018
3258
  fallbackLabel: a.connect_your_accounts,
3019
- icon: /* @__PURE__ */ e(dt, {}),
3020
- key: ne.Connections,
3259
+ icon: /* @__PURE__ */ e(ft, {}),
3260
+ key: q.Connections,
3021
3261
  label: a.connections,
3022
- value: n.length > 0 ? j(
3262
+ value: o.length > 0 ? z(
3023
3263
  a.connected_account,
3024
- String(n.length),
3025
- n.length > 1 ? a.accounts : a.account
3264
+ String(o.length),
3265
+ o.length > 1 ? a.accounts : a.account
3026
3266
  ) : void 0
3027
3267
  }
3028
- ].map((x) => In(x));
3029
- return /* @__PURE__ */ i(oe, { isOpen: t, onClose: o, title: a.financial_profile, children: [
3030
- /* @__PURE__ */ i(_, { sx: { bgcolor: "background.default", height: "100%" }, children: [
3031
- /* @__PURE__ */ i(_, { sx: { gap: 20, p: 24 }, children: [
3032
- /* @__PURE__ */ i(_, { sx: { gap: 8 }, children: [
3033
- /* @__PURE__ */ e(K, { children: a.your_financial_profile }),
3034
- /* @__PURE__ */ e(I, { children: a.financial_profile_description })
3268
+ ].map((x) => Oo(x));
3269
+ return /* @__PURE__ */ s(ie, { isOpen: t, onClose: n, title: a.financial_profile, children: [
3270
+ /* @__PURE__ */ s(_, { sx: { bgcolor: "background.default", height: "100%" }, children: [
3271
+ /* @__PURE__ */ s(_, { sx: { gap: 20, p: 24 }, children: [
3272
+ /* @__PURE__ */ s(_, { sx: { gap: 8 }, children: [
3273
+ /* @__PURE__ */ e(j, { children: a.your_financial_profile }),
3274
+ /* @__PURE__ */ e(A, { children: a.financial_profile_description })
3035
3275
  ] }),
3036
3276
  /* @__PURE__ */ e(
3037
- Wt,
3277
+ Xt,
3038
3278
  {
3039
3279
  completeCopy: a.complete,
3040
- value: C.reduce((x, S) => x + (S.isComplete ? 1 : 0), 0)
3280
+ value: v.reduce((x, C) => x + (C.isComplete ? 1 : 0), 0)
3041
3281
  }
3042
3282
  )
3043
3283
  ] }),
3044
- /* @__PURE__ */ e(An, { list: C, onClickItem: m }),
3284
+ /* @__PURE__ */ e(Do, { list: v, onClickItem: h }),
3045
3285
  /* @__PURE__ */ e(M, { sx: { p: 24 }, children: /* @__PURE__ */ e(
3046
- Be,
3286
+ We,
3047
3287
  {
3048
3288
  description: a.connect_more_accounts_to_view_more_accurate_financial_picture,
3049
3289
  drawerType: "connectDrawer",
3050
3290
  isDashboard: !0,
3051
3291
  title: a.dont_see_all_your_accounts,
3052
- titleDrawer: s.add_accounts
3292
+ titleDrawer: i.add_accounts
3053
3293
  }
3054
3294
  ) })
3055
3295
  ] }),
3056
3296
  /* @__PURE__ */ e(
3057
- oe,
3297
+ ie,
3058
3298
  {
3059
- isOpen: u === ne.MonthlyIncome,
3060
- onClose: () => m(null),
3299
+ isOpen: u === q.MonthlyIncome,
3300
+ onClose: () => h(null),
3061
3301
  shouldShowHeaderBorders: !1,
3062
3302
  title: l.action_title,
3063
- children: /* @__PURE__ */ e(uo, {})
3303
+ children: /* @__PURE__ */ e(_o, {})
3064
3304
  }
3065
3305
  ),
3066
- /* @__PURE__ */ e(Hr, { isOpen: u === ne.DateOfBirth, onClose: () => m(null) }),
3067
- /* @__PURE__ */ e(Rt, { isOpen: u === ne.CreditScore, onClose: () => m(null) }),
3306
+ /* @__PURE__ */ e(oa, { isOpen: u === q.DateOfBirth, onClose: () => h(null) }),
3307
+ /* @__PURE__ */ e(Ht, { isOpen: u === q.CreditScore, onClose: () => h(null) }),
3068
3308
  /* @__PURE__ */ e(
3069
- ft,
3309
+ vt,
3070
3310
  {
3071
- onClose: () => m(null),
3072
- showConnectionsWidget: u === ne.Connections,
3311
+ onClose: () => h(null),
3312
+ showConnectionsWidget: u === q.Connections,
3073
3313
  title: r.manage_connections
3074
3314
  }
3075
3315
  )
3076
3316
  ] });
3077
- }, jr = w(Nr), ct = ({
3317
+ }, aa = w(ra), gt = ({
3078
3318
  content: t,
3079
- islast: o = !1
3080
- }) => /* @__PURE__ */ i(yo, { sx: { minHeight: 0 }, children: [
3081
- /* @__PURE__ */ i(vo, { children: [
3082
- /* @__PURE__ */ e(So, { sx: { bgcolor: "divider", boxShadow: "none", p: 2 } }),
3083
- !o && /* @__PURE__ */ e(
3319
+ islast: n = !1
3320
+ }) => /* @__PURE__ */ s(go, { sx: { minHeight: 0 }, children: [
3321
+ /* @__PURE__ */ s(Co, { children: [
3322
+ /* @__PURE__ */ e(xo, { sx: { bgcolor: "divider", boxShadow: "none", p: 2 } }),
3323
+ !n && /* @__PURE__ */ e(
3084
3324
  fo,
3085
3325
  {
3086
3326
  sx: {
@@ -3093,33 +3333,33 @@ const zo = ({ total: t }) => {
3093
3333
  }
3094
3334
  )
3095
3335
  ] }),
3096
- /* @__PURE__ */ e(xo, { sx: { pb: 16, pl: 12, pr: 0, pt: 5 }, children: /* @__PURE__ */ e(I, { fontSize: 13, fontWeight: 400, variant: "subtitle2", children: t }) })
3097
- ] }), Kr = ({ report: t }) => {
3098
- const { finstrong: o } = v(), { score_history_drawer_timeline: n } = o, {
3336
+ /* @__PURE__ */ e(bo, { sx: { pb: 16, pl: 12, pr: 0, pt: 5 }, children: /* @__PURE__ */ e(A, { fontSize: 13, fontWeight: 400, variant: "subtitle2", children: t }) })
3337
+ ] }), ia = ({ report: t }) => {
3338
+ const { finstrong: n } = S(), { score_history_drawer_timeline: o } = n, {
3099
3339
  health_score_point_difference: r,
3100
- newer_credit_score: s,
3340
+ newer_credit_score: i,
3101
3341
  older_credit_score: a,
3102
3342
  older_spend_to_income_ratio: l,
3103
3343
  newer_spend_to_income_ratio: c,
3104
3344
  older_health_score: d,
3105
3345
  newer_health_score: p,
3106
3346
  newer_score_calculated_at: u
3107
- } = t, m = mo(new Date(u), "MMM d"), b = () => r === 0 ? "info.lighter" : r > 0 ? "success.lighter" : "error.lighter", C = () => r === 0 ? j(n.stayed_at, d) : r > 0 ? n.less_spending : n.more_spending, x = () => {
3347
+ } = t, h = Ct(new Date(u), "MMM d"), f = () => r === 0 ? "info.lighter" : r > 0 ? "success.lighter" : "error.lighter", v = () => r === 0 ? z(o.stayed_at, d) : r > 0 ? o.less_spending : o.more_spending, x = () => {
3108
3348
  if (r === 0) return null;
3109
- const S = r > 0 ? n.up_from : n.down_from, y = j(S, d, p);
3110
- return /* @__PURE__ */ i(z, { children: [
3349
+ const C = r > 0 ? o.up_from : o.down_from, b = z(C, d, p);
3350
+ return /* @__PURE__ */ s(H, { children: [
3111
3351
  /* @__PURE__ */ e(
3112
- on,
3352
+ _n,
3113
3353
  {
3114
3354
  fill: !0,
3115
3355
  name: "circle",
3116
3356
  sx: { color: "text.secondary", fontSize: 8, mx: 4, p: 1 }
3117
3357
  }
3118
3358
  ),
3119
- y
3359
+ b
3120
3360
  ] });
3121
3361
  };
3122
- return /* @__PURE__ */ i(V, { children: [
3362
+ return /* @__PURE__ */ s(Y, { children: [
3123
3363
  /* @__PURE__ */ e(
3124
3364
  M,
3125
3365
  {
@@ -3129,7 +3369,7 @@ const zo = ({ total: t }) => {
3129
3369
  borderBottomWidth: r !== 0 ? 1 : 0,
3130
3370
  p: 16
3131
3371
  },
3132
- children: /* @__PURE__ */ i(
3372
+ children: /* @__PURE__ */ s(
3133
3373
  _,
3134
3374
  {
3135
3375
  flexDirection: "row",
@@ -3140,19 +3380,19 @@ const zo = ({ total: t }) => {
3140
3380
  {
3141
3381
  sx: {
3142
3382
  alignItems: "center",
3143
- backgroundColor: b(),
3383
+ backgroundColor: f(),
3144
3384
  borderRadius: 999,
3145
3385
  height: 48,
3146
3386
  justifyContent: "center",
3147
3387
  width: 48
3148
3388
  },
3149
- children: /* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: "Body", children: r > 0 ? `+${r}` : r })
3389
+ children: /* @__PURE__ */ e(A, { sx: { fontWeight: 600 }, variant: "body1", children: r > 0 ? `+${r}` : r })
3150
3390
  }
3151
3391
  ),
3152
- /* @__PURE__ */ i(_, { sx: { gap: 2, width: "80%" }, children: [
3153
- /* @__PURE__ */ e(A, { fontWeight: 600, variant: "Body", children: C() }),
3154
- /* @__PURE__ */ i(A, { sx: { color: "text.secondary" }, variant: "subtitle2", children: [
3155
- m,
3392
+ /* @__PURE__ */ s(_, { sx: { gap: 2, width: "80%" }, children: [
3393
+ /* @__PURE__ */ e(D, { fontWeight: 600, variant: "body1", children: v() }),
3394
+ /* @__PURE__ */ s(D, { sx: { color: "text.secondary" }, variant: "subtitle2", children: [
3395
+ h,
3156
3396
  " ",
3157
3397
  x()
3158
3398
  ] })
@@ -3162,11 +3402,11 @@ const zo = ({ total: t }) => {
3162
3402
  )
3163
3403
  }
3164
3404
  ),
3165
- r !== 0 && /* @__PURE__ */ e(M, { sx: { color: "text.secondary", pb: 8, pl: 32, pr: 16, pt: 12 }, children: /* @__PURE__ */ i(
3166
- go,
3405
+ r !== 0 && /* @__PURE__ */ e(M, { sx: { color: "text.secondary", pb: 8, pl: 32, pr: 16, pt: 12 }, children: /* @__PURE__ */ s(
3406
+ ho,
3167
3407
  {
3168
3408
  sx: {
3169
- [`& .${bo.root}:before`]: {
3409
+ [`& .${yo.root}:before`]: {
3170
3410
  flex: 0,
3171
3411
  padding: 0
3172
3412
  },
@@ -3175,22 +3415,22 @@ const zo = ({ total: t }) => {
3175
3415
  },
3176
3416
  children: [
3177
3417
  /* @__PURE__ */ e(
3178
- ct,
3418
+ gt,
3179
3419
  {
3180
- content: j(
3181
- n.spend_to_income_description,
3182
- Oe(l),
3183
- Oe(c)
3420
+ content: z(
3421
+ o.spend_to_income_description,
3422
+ Ee(l),
3423
+ Ee(c)
3184
3424
  )
3185
3425
  }
3186
3426
  ),
3187
3427
  /* @__PURE__ */ e(
3188
- ct,
3428
+ gt,
3189
3429
  {
3190
- content: j(
3191
- n.credit_score_description,
3430
+ content: z(
3431
+ o.credit_score_description,
3192
3432
  a,
3193
- s
3433
+ i
3194
3434
  ),
3195
3435
  islast: !0
3196
3436
  }
@@ -3199,12 +3439,12 @@ const zo = ({ total: t }) => {
3199
3439
  }
3200
3440
  ) })
3201
3441
  ] });
3202
- }, Vr = w(Kr), Xr = ({ isOpen: t, onClose: o }) => {
3203
- const n = E(), { finstrong: r } = v(), { isCopyLoaded: s, isInitialized: a } = J(), { augmentedChartData: l, healthScore: c, healthScoreChangeReports: d, peerScore: p } = B();
3204
- if (!s || !a) return /* @__PURE__ */ e(U, {});
3205
- const u = Ge(c.health_score || 0, r), m = d.slice().reverse();
3442
+ }, sa = w(ia), ca = ({ isOpen: t, onClose: n }) => {
3443
+ const o = W(), { finstrong: r } = S(), { isCopyLoaded: i, isInitialized: a } = ne(), { augmentedChartData: l, healthScore: c, healthScoreChangeReports: d, peerScore: p } = L();
3444
+ if (!i || !a) return /* @__PURE__ */ e(ee, {});
3445
+ const u = nt(c.health_score || 0, r), h = d.slice().reverse();
3206
3446
  return /* @__PURE__ */ e(
3207
- Lt,
3447
+ Kt,
3208
3448
  {
3209
3449
  additionalContent: /* @__PURE__ */ e(
3210
3450
  _,
@@ -3215,11 +3455,11 @@ const zo = ({ total: t }) => {
3215
3455
  borderColor: "divider"
3216
3456
  },
3217
3457
  children: /* @__PURE__ */ e(
3218
- Ke,
3458
+ Je,
3219
3459
  {
3220
- axisColor: n.palette.divider,
3460
+ axisColor: o.palette.divider,
3221
3461
  baseline: "min",
3222
- colors: [n.palette.primary.main],
3462
+ colors: [o.palette.primary.main],
3223
3463
  curveType: "natural",
3224
3464
  datasets: [l],
3225
3465
  height: 160,
@@ -3238,7 +3478,7 @@ const zo = ({ total: t }) => {
3238
3478
  drawerTitle: r.score_history,
3239
3479
  isOpen: t,
3240
3480
  loadConnectAccountsCard: !1,
3241
- onClose: o,
3481
+ onClose: n,
3242
3482
  stickyComponent: /* @__PURE__ */ e(
3243
3483
  _,
3244
3484
  {
@@ -3248,9 +3488,9 @@ const zo = ({ total: t }) => {
3248
3488
  pt: 8,
3249
3489
  px: 24
3250
3490
  },
3251
- children: /* @__PURE__ */ i(_, { sx: { alignItems: "center", flexDirection: "row", gap: 16 }, children: [
3491
+ children: /* @__PURE__ */ s(_, { sx: { alignItems: "center", flexDirection: "row", gap: 16 }, children: [
3252
3492
  /* @__PURE__ */ e(
3253
- Ot,
3493
+ zt,
3254
3494
  {
3255
3495
  arcRadius: 24,
3256
3496
  healthScore: c?.health_score,
@@ -3258,52 +3498,52 @@ const zo = ({ total: t }) => {
3258
3498
  size: "SM"
3259
3499
  }
3260
3500
  ),
3261
- /* @__PURE__ */ i(_, { sx: { gap: 4 }, children: [
3262
- /* @__PURE__ */ e(I, { variant: "h3", children: u.status }),
3263
- /* @__PURE__ */ e(I, { variant: "XSmall", children: u.description })
3501
+ /* @__PURE__ */ s(_, { sx: { gap: 4 }, children: [
3502
+ /* @__PURE__ */ e(A, { variant: "h3", children: u.status }),
3503
+ /* @__PURE__ */ e(A, { variant: "caption", children: u.description })
3264
3504
  ] })
3265
3505
  ] })
3266
3506
  }
3267
3507
  ),
3268
- children: /* @__PURE__ */ e(_, { sx: { gap: 16 }, children: m.map((b, C) => /* @__PURE__ */ e(Vr, { report: b }, C)) })
3508
+ children: /* @__PURE__ */ e(_, { sx: { gap: 16 }, children: h.map((f, v) => /* @__PURE__ */ e(sa, { report: f }, v)) })
3269
3509
  }
3270
3510
  );
3271
- }, Yr = w(Xr), qr = ({ copy: t }) => {
3272
- const o = E(), n = [
3273
- o.palette.chartMono.chartMono5,
3274
- o.palette.chartMono.chartMono4,
3275
- o.palette.chartMono.chartMono3,
3276
- o.palette.chartMono.chartMono2
3511
+ }, la = w(ca), da = ({ copy: t }) => {
3512
+ const n = W(), o = [
3513
+ n.palette.chartMono.chartMono5,
3514
+ n.palette.chartMono.chartMono4,
3515
+ n.palette.chartMono.chartMono3,
3516
+ n.palette.chartMono.chartMono2
3277
3517
  ];
3278
- return /* @__PURE__ */ i(_, { sx: { gap: 8 }, children: [
3518
+ return /* @__PURE__ */ s(_, { sx: { gap: 8 }, children: [
3279
3519
  /* @__PURE__ */ e(_, { sx: { flexDirection: "row", gap: 8, px: 2 }, children: [
3280
3520
  { color: "chartMono.chartMono2", text: t.vulnerable, value: "0-25" },
3281
3521
  { color: "chartMono.chartMono3", text: t.building, value: "26-50" },
3282
3522
  { color: "chartMono.chartMono4", text: t.stable, value: "51-75" },
3283
3523
  { color: "chartMono.chartMono5", text: t.strong, value: "76-100" }
3284
- ].map(({ color: r, text: s, value: a }) => /* @__PURE__ */ i(_, { sx: { gap: 4, textAlign: "center", width: "100%" }, children: [
3285
- /* @__PURE__ */ i(M, { children: [
3286
- /* @__PURE__ */ e(I, { sx: { fontWeight: 700, textTransform: "uppercase" }, variant: "caption", children: s }),
3287
- /* @__PURE__ */ i(A, { sx: { color: "text.secondary" }, variant: "caption", children: [
3524
+ ].map(({ color: r, text: i, value: a }) => /* @__PURE__ */ s(_, { sx: { gap: 4, textAlign: "center", width: "100%" }, children: [
3525
+ /* @__PURE__ */ s(M, { children: [
3526
+ /* @__PURE__ */ e(A, { sx: { fontWeight: 700, textTransform: "uppercase" }, variant: "caption", children: i }),
3527
+ /* @__PURE__ */ s(D, { sx: { color: "text.secondary" }, variant: "caption", children: [
3288
3528
  "(",
3289
3529
  a,
3290
3530
  ")"
3291
3531
  ] })
3292
3532
  ] }),
3293
3533
  /* @__PURE__ */ e(M, { sx: { border: "2px solid", borderColor: r, borderRadius: "3px" } })
3294
- ] }, s)) }),
3295
- /* @__PURE__ */ i(M, { children: [
3534
+ ] }, i)) }),
3535
+ /* @__PURE__ */ s(M, { children: [
3296
3536
  /* @__PURE__ */ e(
3297
3537
  M,
3298
3538
  {
3299
3539
  sx: {
3300
- background: `linear-gradient(to left, ${n.join(", ")})`,
3540
+ background: `linear-gradient(to left, ${o.join(", ")})`,
3301
3541
  borderRadius: "4px",
3302
3542
  height: 16
3303
3543
  }
3304
3544
  }
3305
3545
  ),
3306
- /* @__PURE__ */ e(_, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100].map((r) => /* @__PURE__ */ i(
3546
+ /* @__PURE__ */ e(_, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100].map((r) => /* @__PURE__ */ s(
3307
3547
  _,
3308
3548
  {
3309
3549
  sx: { alignItems: "center", height: 20, justifyContent: "space-between", width: 24 },
@@ -3321,27 +3561,27 @@ const zo = ({ total: t }) => {
3321
3561
  }
3322
3562
  }
3323
3563
  ),
3324
- /* @__PURE__ */ e(A, { sx: { color: "text.secondary" }, variant: "tiny", children: r })
3564
+ /* @__PURE__ */ e(D, { sx: { color: "text.secondary" }, variant: "tiny", children: r })
3325
3565
  ]
3326
3566
  },
3327
3567
  r
3328
3568
  )) })
3329
3569
  ] })
3330
3570
  ] });
3331
- }, Ur = ({ isOpen: t, onClose: o }) => {
3332
- const { finstrong: n } = v(), { isCopyLoaded: r } = J();
3333
- return r ? /* @__PURE__ */ e(oe, { isOpen: t, onClose: o, title: n.score_rubric, children: /* @__PURE__ */ i(_, { sx: { bgcolor: "background.default", gap: 36, height: "100%", p: 24 }, children: [
3334
- /* @__PURE__ */ i(_, { sx: { gap: 20 }, children: [
3335
- /* @__PURE__ */ i(_, { sx: { gap: 8 }, children: [
3336
- /* @__PURE__ */ e(K, { sx: { textWrap: "wrap" }, children: n.your_path_to_financial_freedom }),
3337
- /* @__PURE__ */ e(I, { variant: "subtitle1", children: n.finstrong_freedom_description })
3571
+ }, pa = ({ isOpen: t, onClose: n }) => {
3572
+ const { finstrong: o } = S(), { isCopyLoaded: r } = ne();
3573
+ return r ? /* @__PURE__ */ e(ie, { isOpen: t, onClose: n, title: o.score_rubric, children: /* @__PURE__ */ s(_, { sx: { bgcolor: "background.default", gap: 36, height: "100%", p: 24 }, children: [
3574
+ /* @__PURE__ */ s(_, { sx: { gap: 20 }, children: [
3575
+ /* @__PURE__ */ s(_, { sx: { gap: 8 }, children: [
3576
+ /* @__PURE__ */ e(j, { children: o.your_path_to_financial_freedom }),
3577
+ /* @__PURE__ */ e(A, { variant: "subtitle1", children: o.finstrong_freedom_description })
3338
3578
  ] }),
3339
- /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(qr, { copy: n }) })
3579
+ /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(da, { copy: o }) })
3340
3580
  ] }),
3341
- /* @__PURE__ */ i(_, { sx: { gap: 12 }, children: [
3342
- /* @__PURE__ */ e(A, { sx: { fontWeight: 600 }, variant: "body1", children: n.how_do_we_do_this }),
3343
- /* @__PURE__ */ i(
3344
- Ee,
3581
+ /* @__PURE__ */ s(_, { sx: { gap: 12 }, children: [
3582
+ /* @__PURE__ */ e(D, { sx: { fontWeight: 600 }, variant: "body1", children: o.how_do_we_do_this }),
3583
+ /* @__PURE__ */ s(
3584
+ Le,
3345
3585
  {
3346
3586
  component: "ol",
3347
3587
  sx: {
@@ -3360,28 +3600,28 @@ const zo = ({ total: t }) => {
3360
3600
  }
3361
3601
  },
3362
3602
  children: [
3363
- /* @__PURE__ */ e(ye, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(
3364
- be,
3603
+ /* @__PURE__ */ e(_e, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(
3604
+ me,
3365
3605
  {
3366
- primary: n.understand_your_habits,
3367
- secondary: n.understand_your_habits_description
3606
+ primary: o.understand_your_habits,
3607
+ secondary: o.understand_your_habits_description
3368
3608
  }
3369
3609
  ) }),
3370
- /* @__PURE__ */ e(ye, { sx: { display: "list-item", pt: 16 }, children: /* @__PURE__ */ e(
3371
- be,
3610
+ /* @__PURE__ */ e(_e, { sx: { display: "list-item", pt: 16 }, children: /* @__PURE__ */ e(
3611
+ me,
3372
3612
  {
3373
- primary: n.see_whats_possible,
3374
- secondary: n.see_whats_possible_description
3613
+ primary: o.see_whats_possible,
3614
+ secondary: o.see_whats_possible_description
3375
3615
  }
3376
3616
  ) })
3377
3617
  ]
3378
3618
  }
3379
3619
  )
3380
3620
  ] }),
3381
- /* @__PURE__ */ i(_, { sx: { gap: 4 }, children: [
3382
- /* @__PURE__ */ e(A, { sx: { fontWeight: 600, pb: 4 }, variant: "body1", children: n.we_ask_questions }),
3383
- /* @__PURE__ */ i(
3384
- Ee,
3621
+ /* @__PURE__ */ s(_, { sx: { gap: 4 }, children: [
3622
+ /* @__PURE__ */ e(D, { sx: { fontWeight: 600, pb: 4 }, variant: "body1", children: o.we_ask_questions }),
3623
+ /* @__PURE__ */ s(
3624
+ Le,
3385
3625
  {
3386
3626
  component: "ol",
3387
3627
  sx: {
@@ -3401,23 +3641,23 @@ const zo = ({ total: t }) => {
3401
3641
  }
3402
3642
  },
3403
3643
  children: [
3404
- /* @__PURE__ */ e(ye, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(be, { secondary: n.we_ask_questions_description_1 }) }),
3405
- /* @__PURE__ */ e(ye, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(be, { secondary: n.we_ask_questions_description_2 }) })
3644
+ /* @__PURE__ */ e(_e, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(me, { secondary: o.we_ask_questions_description_1 }) }),
3645
+ /* @__PURE__ */ e(_e, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(me, { secondary: o.we_ask_questions_description_2 }) })
3406
3646
  ]
3407
3647
  }
3408
3648
  )
3409
3649
  ] })
3410
- ] }) }) : /* @__PURE__ */ e(U, {});
3411
- }, Qr = w(Ur), Zr = w(() => {
3412
- const [t, o] = h.useState(!1), n = E(), [r, { width: s }] = xt(), { finstrong: a } = v(), { isCopyLoaded: l, isInitialized: c } = J(), { healthScore: d, healthScoreChange: p } = B(), u = n.palette.mode === "dark", m = Ge(d?.health_score, a);
3413
- return !l || !c ? /* @__PURE__ */ e(U, {}) : /* @__PURE__ */ i(V, { ref: r, sx: { p: 16, display: "flex", flexDirection: "column", gap: 8 }, children: [
3414
- /* @__PURE__ */ i(_, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
3415
- /* @__PURE__ */ e(K, { children: a.financial_strength_header }),
3650
+ ] }) }) : /* @__PURE__ */ e(ee, {});
3651
+ }, ua = w(pa), _a = w(() => {
3652
+ const [t, n] = m.useState(!1), o = W(), [r, { width: i }] = wt(), { finstrong: a } = S(), { isCopyLoaded: l, isInitialized: c } = ne(), { healthScore: d, healthScoreChange: p } = L(), u = o.palette.mode === "dark", h = nt(d?.health_score, a);
3653
+ return !l || !c ? /* @__PURE__ */ e(ee, {}) : /* @__PURE__ */ s(Y, { ref: r, sx: { p: 16, display: "flex", flexDirection: "column", gap: 8 }, children: [
3654
+ /* @__PURE__ */ s(_, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
3655
+ /* @__PURE__ */ e(j, { children: a.financial_strength_header }),
3416
3656
  /* @__PURE__ */ e(
3417
- P,
3657
+ E,
3418
3658
  {
3419
- endIcon: /* @__PURE__ */ e(Z, {}),
3420
- onClick: () => o(!0),
3659
+ endIcon: /* @__PURE__ */ e(J, {}),
3660
+ onClick: () => n(!0),
3421
3661
  size: "small",
3422
3662
  sx: {
3423
3663
  "&.MuiButtonBase-root": {
@@ -3427,7 +3667,7 @@ const zo = ({ total: t }) => {
3427
3667
  },
3428
3668
  variant: "text",
3429
3669
  children: /* @__PURE__ */ e(
3430
- A,
3670
+ D,
3431
3671
  {
3432
3672
  bold: !0,
3433
3673
  sx: {
@@ -3441,16 +3681,16 @@ const zo = ({ total: t }) => {
3441
3681
  )
3442
3682
  ] }),
3443
3683
  /* @__PURE__ */ e(_, { sx: { justifyContent: "center", alignItems: "center", pb: 4, pt: 20, px: 16 }, children: /* @__PURE__ */ e(
3444
- Ot,
3684
+ zt,
3445
3685
  {
3446
- arcRadius: s <= 323 ? 72.5 : 154,
3686
+ arcRadius: i <= 323 ? 72.5 : 154,
3447
3687
  footerCenterContent: p,
3448
3688
  healthScore: d?.health_score || 0,
3449
- size: s <= 323 ? "M" : "L"
3689
+ size: i <= 323 ? "M" : "L"
3450
3690
  }
3451
3691
  ) }),
3452
- d?.health_score ? /* @__PURE__ */ i(
3453
- Co,
3692
+ d?.health_score ? /* @__PURE__ */ s(
3693
+ So,
3454
3694
  {
3455
3695
  sx: {
3456
3696
  px: 16,
@@ -3465,9 +3705,9 @@ const zo = ({ total: t }) => {
3465
3705
  },
3466
3706
  children: [
3467
3707
  /* @__PURE__ */ e(
3468
- ko,
3708
+ wo,
3469
3709
  {
3470
- expandIcon: /* @__PURE__ */ e(gn, { size: 20 }),
3710
+ expandIcon: /* @__PURE__ */ e(Mn, { size: 20 }),
3471
3711
  sx: {
3472
3712
  "&.MuiAccordionSummary-root": {
3473
3713
  minHeight: 0
@@ -3478,14 +3718,14 @@ const zo = ({ total: t }) => {
3478
3718
  minHeight: 0
3479
3719
  }
3480
3720
  },
3481
- children: /* @__PURE__ */ e(I, { sx: { fontWeight: 600 }, variant: "body1", children: a.accordion_title_text })
3721
+ children: /* @__PURE__ */ e(A, { sx: { fontWeight: 600 }, variant: "body1", children: a.accordion_title_text })
3482
3722
  }
3483
3723
  ),
3484
- /* @__PURE__ */ e(wo, { sx: { "&.MuiAccordionDetails-root": { padding: 0, pb: 16 } }, children: /* @__PURE__ */ e(I, { variant: "subtitle1", children: m.scoreContent }) })
3724
+ /* @__PURE__ */ e(vo, { sx: { "&.MuiAccordionDetails-root": { padding: 0, pb: 16 } }, children: /* @__PURE__ */ e(A, { variant: "subtitle1", children: h.scoreContent }) })
3485
3725
  ]
3486
3726
  }
3487
3727
  ) : /* @__PURE__ */ e(
3488
- Be,
3728
+ We,
3489
3729
  {
3490
3730
  buttonText: a.connect_more_accounts_title,
3491
3731
  description: a.health_score_zero_description,
@@ -3506,63 +3746,62 @@ const zo = ({ total: t }) => {
3506
3746
  }
3507
3747
  ),
3508
3748
  /* @__PURE__ */ e(
3509
- Qr,
3749
+ ua,
3510
3750
  {
3511
3751
  isOpen: t,
3512
- onClose: () => o(!1)
3752
+ onClose: () => n(!1)
3513
3753
  }
3514
3754
  )
3515
3755
  ] });
3516
- }), Jr = ({ onBackClick: t, sx: o, onPrimaryCtaClick: n }) => {
3517
- const { visibleAccounts: r } = xe(), { dateRange: s, isDataLoaded: a, loadBudgetData: l, setTheme: c } = Ln(), { reloadCategoryTotals: d } = Ne(), p = B(), {
3518
- augmentedChartData: u,
3519
- calculateHealthScore: m,
3520
- loadAugmentedChartData: b,
3521
- loadMonthlySummaries: C,
3522
- loadPeerScore: x,
3523
- peerScore: S
3524
- } = p, { finstrong: y, connect: k } = v(), { isInitialized: g } = J(), { loadRepeatingTransactionData: f, isDataLoaded: T } = je(), { isSmallMobile: L } = Xe(), D = E(), { userProfile: G } = ee(), [W, H] = h.useState(!1), [ve, ae] = h.useState(!1), [X, te] = h.useState(!1), [ie, Y] = h.useState(!1);
3525
- if (Mo({
3756
+ }), ma = ({ onBackClick: t, onMenuClick: n, sx: o, onPrimaryCtaClick: r }) => {
3757
+ const { visibleAccounts: i } = ke(), { dateRange: a, isDataLoaded: l, loadBudgetData: c, setTheme: d } = Gn(), { reloadCategoryTotals: p } = Qe(), u = L(), {
3758
+ augmentedChartData: h,
3759
+ calculateHealthScore: f,
3760
+ loadAugmentedChartData: v,
3761
+ loadMonthlySummaries: x,
3762
+ loadPeerScore: C,
3763
+ peerScore: b,
3764
+ healthScore: k
3765
+ } = u, { finstrong: g, connect: y } = S(), { isInitialized: I } = ne(), { loadRepeatingTransactionData: G, isDataLoaded: O } = Ze(), { isSmallMobile: $ } = tt(), F = W(), { userProfile: K } = oe(), [fe, be] = m.useState(!1), [X, re] = m.useState(!1), [ce, U] = m.useState(!1), [V, le] = m.useState(!1), [de, xe] = m.useState(!1);
3766
+ ko({
3526
3767
  widgetName: "FinstrongWidget",
3527
- isLoaded: W
3528
- }), h.useEffect(() => {
3529
- c(D);
3530
- }, []), h.useEffect(() => {
3531
- n && (p.handleFinstrongWidgetPrimaryCtaClick = n);
3532
- }, [n, p]), h.useEffect(() => {
3533
- g && (C().finally(), x().finally(), m().finally(), b().finally());
3534
- }, [g]), h.useEffect(() => {
3535
- g && (d(r, s.start, s.end).finally(() => {
3536
- H(!0);
3537
- }), a || (l(), f().finally()));
3538
- }, [s, a, g, r]), !g || !W || !T) return /* @__PURE__ */ e(U, {});
3539
- const N = () => ae(!0), he = Math.round(S?.average_health_score?.average_health_score || 0), se = u.some((Ce) => Ce.y !== 0);
3540
- return /* @__PURE__ */ i(
3541
- Do,
3768
+ isLoaded: fe
3769
+ }), m.useEffect(() => {
3770
+ d(F);
3771
+ }, []), m.useEffect(() => {
3772
+ r && (u.handleFinstrongWidgetPrimaryCtaClick = r);
3773
+ }, [r, u]), m.useEffect(() => {
3774
+ I && (x().finally(), C().finally(), f().finally());
3775
+ }, [I]), m.useEffect(() => {
3776
+ I && (p(i, a.start, a.end).finally(() => {
3777
+ be(!0);
3778
+ }), l || (c(), G().finally()));
3779
+ }, [a, l, I, i]), m.useEffect(() => {
3780
+ k?.health_score && v().finally();
3781
+ }, [k.health_score]);
3782
+ const N = () => U(!0), Ce = Math.round(b?.average_health_score?.average_health_score || 0), He = h.some((Te) => Te.y !== 0), Ke = () => {
3783
+ re(!0), f(!1).finally(() => {
3784
+ re(!1);
3785
+ }), U(!1);
3786
+ };
3787
+ return !I || !fe || !O || X ? /* @__PURE__ */ e(ee, {}) : /* @__PURE__ */ s(
3788
+ Mo,
3542
3789
  {
3543
3790
  actions: [
3544
3791
  {
3545
3792
  iconName: "person",
3546
- label: y.profile,
3793
+ label: g.profile,
3547
3794
  onClick: N
3548
3795
  }
3549
3796
  ],
3550
3797
  hasDivider: !0,
3551
3798
  onBackClick: t,
3799
+ onMenuClick: n,
3552
3800
  showAccountFilter: !1,
3553
- sx: {
3554
- "& .MuiCardHeader-root": {
3555
- px: L ? 16 : 48,
3556
- pt: L ? 12 : 48
3557
- },
3558
- "& .MuiDivider-root": {
3559
- mt: L ? 12 : 24
3560
- },
3561
- ...o
3562
- },
3563
- title: y.title,
3801
+ sx: o,
3802
+ title: g.title,
3564
3803
  children: [
3565
- G.has_completed_finstrong_onboarding ? /* @__PURE__ */ i(
3804
+ K.has_completed_finstrong_onboarding ? /* @__PURE__ */ s(
3566
3805
  _,
3567
3806
  {
3568
3807
  sx: {
@@ -3570,34 +3809,34 @@ const zo = ({ total: t }) => {
3570
3809
  flexDirection: { md: "row" },
3571
3810
  gap: 24,
3572
3811
  justifyContent: "center",
3573
- pt: L ? 16 : 24,
3574
- px: L ? 16 : 48
3812
+ pt: $ ? 16 : 24,
3813
+ px: $ ? 16 : 48
3575
3814
  },
3576
3815
  children: [
3577
- /* @__PURE__ */ i(_, { sx: { gap: 24, width: { md: 432 }, height: "100%" }, children: [
3578
- /* @__PURE__ */ e(Zr, {}),
3816
+ /* @__PURE__ */ s(_, { sx: { gap: 24, width: { md: 432 }, height: "100%" }, children: [
3817
+ /* @__PURE__ */ e(_a, {}),
3579
3818
  /* @__PURE__ */ e(
3580
- Be,
3819
+ We,
3581
3820
  {
3582
- description: y.connect_more_accounts_description,
3821
+ description: g.connect_more_accounts_description,
3583
3822
  drawerType: "connectDrawer",
3584
- title: y.connect_more_accounts_title
3823
+ title: g.connect_more_accounts_title
3585
3824
  }
3586
3825
  )
3587
3826
  ] }),
3588
- /* @__PURE__ */ e(_, { sx: { maxWidth: 848, width: { md: 720 } }, children: /* @__PURE__ */ i(V, { sx: { height: "100%", p: 16 }, children: [
3589
- /* @__PURE__ */ i(
3827
+ /* @__PURE__ */ e(_, { sx: { maxWidth: 848, width: { md: 720 } }, children: /* @__PURE__ */ s(Y, { sx: { height: "100%", p: 16 }, children: [
3828
+ /* @__PURE__ */ s(
3590
3829
  _,
3591
3830
  {
3592
3831
  direction: "row",
3593
3832
  sx: { alignItems: "center", gap: 12, justifyContent: "space-between" },
3594
3833
  children: [
3595
- /* @__PURE__ */ e(K, { children: y.key_indicators }),
3834
+ /* @__PURE__ */ e(j, { children: g.key_indicators }),
3596
3835
  /* @__PURE__ */ e(
3597
- P,
3836
+ E,
3598
3837
  {
3599
- endIcon: /* @__PURE__ */ e(Z, {}),
3600
- onClick: () => te(!0),
3838
+ endIcon: /* @__PURE__ */ e(J, {}),
3839
+ onClick: () => le(!0),
3601
3840
  size: "small",
3602
3841
  sx: {
3603
3842
  "&.MuiButtonBase-root": {
@@ -3606,70 +3845,69 @@ const zo = ({ total: t }) => {
3606
3845
  }
3607
3846
  },
3608
3847
  variant: "text",
3609
- children: /* @__PURE__ */ e(A, { bold: !0, variant: "body2", children: y.whats_changed })
3848
+ children: /* @__PURE__ */ e(D, { bold: !0, variant: "body2", children: g.whats_changed })
3610
3849
  }
3611
3850
  )
3612
3851
  ]
3613
3852
  }
3614
3853
  ),
3615
- se ? /* @__PURE__ */ e(
3616
- Ke,
3854
+ He ? /* @__PURE__ */ e(
3855
+ Je,
3617
3856
  {
3618
- axisColor: D.palette.divider,
3857
+ axisColor: F.palette.divider,
3619
3858
  baseline: "min",
3620
- colors: [D.palette.primary.main],
3859
+ colors: [F.palette.primary.main],
3621
3860
  curveType: "natural",
3622
3861
  customLegendBoxSx: { borderRadius: "2px" },
3623
3862
  customLegendSx: { left: 0 },
3624
- customLegendVariant: "XSmall",
3625
- datasets: [u],
3863
+ customLegendVariant: "caption",
3864
+ datasets: [h],
3626
3865
  height: 300,
3866
+ isCurrency: !1,
3627
3867
  isGraphClippingXAxis: !0,
3628
- labelBackgroundColor: D.palette.border.dark,
3629
- labelFontColor: D.palette.common.white,
3630
- labelFontSize: typeof D.typography.XSmall?.fontSize == "string" ? parseFloat(D.typography.XSmall.fontSize) : D.typography.XSmall?.fontSize,
3631
- labels: [y.key_indicators_label],
3868
+ labelBackgroundColor: F.palette.neutral.dark,
3869
+ labelFontColor: F.palette.common.white,
3870
+ labelFontSize: typeof F.typography.caption?.fontSize == "string" ? parseFloat(F.typography.caption.fontSize) : F.typography.caption?.fontSize,
3871
+ labels: [g.key_indicators_label],
3632
3872
  margin: { right: 12, left: -37 },
3633
- peerAverage: he,
3873
+ peerAverage: Ce,
3634
3874
  showArea: !0,
3635
3875
  showAverage: !0,
3636
3876
  showLegend: !0,
3637
3877
  showMarkLabel: !0,
3638
3878
  showTooltip: !0,
3639
3879
  showXAxis: !0,
3640
- title: y.peer_average
3880
+ title: g.peer_average
3641
3881
  }
3642
- ) : /* @__PURE__ */ e(Tr, { onClick: () => Y(!0) }),
3643
- /* @__PURE__ */ e(Ir, {})
3882
+ ) : /* @__PURE__ */ e(Vr, { onClick: () => xe(!0) }),
3883
+ /* @__PURE__ */ e(Hr, {})
3644
3884
  ] }) })
3645
3885
  ]
3646
3886
  }
3647
- ) : /* @__PURE__ */ e(zr, {}),
3648
- /* @__PURE__ */ e(jr, { isOpen: ve, onClose: () => ae(!1) }),
3887
+ ) : /* @__PURE__ */ e(ta, {}),
3888
+ /* @__PURE__ */ e(aa, { isOpen: ce, onClose: Ke }),
3649
3889
  /* @__PURE__ */ e(
3650
- re,
3890
+ se,
3651
3891
  {
3652
- onClose: () => Y(!1),
3653
- showConnectWidget: ie,
3654
- title: k.mini_title
3892
+ onClose: () => xe(!1),
3893
+ showConnectWidget: de,
3894
+ title: y.mini_title
3655
3895
  }
3656
3896
  ),
3657
3897
  /* @__PURE__ */ e(
3658
- Yr,
3898
+ la,
3659
3899
  {
3660
- isOpen: X,
3661
- onClose: () => te(!1)
3900
+ isOpen: V,
3901
+ onClose: () => le(!1)
3662
3902
  }
3663
3903
  )
3664
3904
  ]
3665
3905
  }
3666
3906
  );
3667
- }, bi = w(Jr);
3907
+ }, Ni = w(ma);
3668
3908
  export {
3669
- Ao as CreditScoreGraph,
3670
- Tt as DialScoreCard,
3671
- Ot as FinancialStrengthGraph,
3672
- Si as FinstrongApi,
3673
- vi as FinstrongStore,
3674
- bi as FinstrongWidget
3909
+ Ko as CreditScoreGraph,
3910
+ Nt as DialScoreCard,
3911
+ zt as FinancialStrengthGraph,
3912
+ Ni as FinstrongWidget
3675
3913
  };