@mx-cartographer/experiences 9.0.0-alpha.mega1 → 9.0.0

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-PKlh8caU.mjs} +6 -6
  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 +987 -874
  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,272 +1,195 @@
1
- import { jsx as e, jsxs as s, Fragment as O } from "react/jsx-runtime";
2
- import x from "react";
3
- import { observer as v } from "mobx-react-lite";
4
- import g from "@mui/material/Stack";
5
- import { useTheme as V, Card as _e, Stack as _, Box as W } from "@mui/material";
6
- import { Text as l, P as ye, H3 as Te, InstitutionLogo as Ae, Icon as te } from "@mxenabled/mxui";
7
- import { intervalToDuration as Ee, formatDuration as Ie } from "date-fns";
8
- import { addMonths as se } from "date-fns/addMonths";
9
- import { fromUnixTime as ce } from "date-fns/fromUnixTime";
10
- import { getUnixTime as de } from "date-fns/getUnixTime";
11
- import { D as k, M as Be, I as Me } from "../DebtsStore-Dv_T7Dts.mjs";
12
- import { a as Or } from "../DebtsStore-Dv_T7Dts.mjs";
13
- import { f as U, D as q } from "../Dialog-CWymUiuO.mjs";
14
- import { f as N, a as Pe } from "../NumberFormatting-DjTD0t3W.mjs";
15
- import { G as ke, w as Z, u as S, l as Y, g as F, d as J, b as Ne } from "../hooks-fY_n74f7.mjs";
16
- import { u as K } from "../useScreenSize-B6JyS_Lj.mjs";
17
- import { D as re } from "../Drawer-Bet2ZPJo.mjs";
18
- import { b as E } from "../Localization-2MODESHW.mjs";
19
- import { A as Re, u as Fe } from "../AccountDetailsHeader-BOV91g1o.mjs";
20
- import Le from "@mui/material/Card";
21
- import $e from "@mui/material/CardContent";
22
- import Oe from "@mui/material/CardHeader";
23
- import ae from "@mui/material/Box";
24
- import { useTheme as He } from "@mui/material/styles";
25
- import { LineChart as Ge } from "@mui/x-charts/LineChart";
26
- import { A as T, W as We } from "../WidgetContainer-mzejMmz2.mjs";
27
- import pe from "@mui/material/Tab";
28
- import je from "@mui/material/Tabs";
29
- import fe from "@mui/material/List";
30
- import j from "@mui/material/Divider";
31
- import { M as ze, I as Xe, O as Ve } from "../OriginalBalanceAction-DFoG79Ba.mjs";
32
- import Ye from "@mui/material/TextField";
33
- import { L as Q } from "../ListItemAction-Cbr3417C.mjs";
34
- import { C as oe } from "../CurrencyInput-DDQ4DBrE.mjs";
1
+ import { jsx as e, jsxs as l, Fragment as R } from "react/jsx-runtime";
2
+ import f from "react";
3
+ import { observer as C } from "mobx-react-lite";
4
+ import y from "@mui/material/Stack";
5
+ import { useTheme as j, Card as ge, Stack as u, Box as W } from "@mui/material";
6
+ import { Text as i, P as xe, H3 as Be, InstitutionLogo as Pe, Icon as ne } from "@mxenabled/mxui";
7
+ import { intervalToDuration as Re, formatDuration as Le } from "date-fns";
8
+ import { s as Fe, D as F, t as $e, b as Oe } from "../DebtUtils-DD3186U-.mjs";
9
+ import { f as I, a as We } from "../NumberFormatting--XMeeBfr.mjs";
10
+ import { f as J, D as Q } from "../DateFormats-HudZ3Bjs.mjs";
11
+ import { G as Ge, q as ee, u as w, k as V, g as k, d as te, a as He, b as ze } from "../hooks-BaO_gOI6.mjs";
12
+ import { u as ae } from "../useScreenSize-mWpmnh5w.mjs";
13
+ import { b as T } from "../Localization-DnoVyBNK.mjs";
14
+ import { D as ie } from "../Drawer-BXqqBMxg.mjs";
15
+ import { A as je, u as Ve } from "../AccountDetailsHeader-DIysk_4w.mjs";
16
+ import Ye from "@mui/material/Card";
17
+ import Ke from "@mui/material/CardContent";
18
+ import Ue from "@mui/material/CardHeader";
19
+ import le from "@mui/material/Box";
20
+ import { useTheme as qe } from "@mui/material/styles";
21
+ import { LineChart as Xe } from "@mui/x-charts/LineChart";
22
+ import { A as S } from "../Analytics-CzGzz_sE.mjs";
23
+ import be from "@mui/material/Tab";
24
+ import Ze from "@mui/material/Tabs";
25
+ import we from "@mui/material/List";
26
+ import G from "@mui/material/Divider";
27
+ import { M as Je, I as Qe, O as et } from "../OriginalBalanceAction-CkJPnp2c.mjs";
28
+ import tt from "@mui/material/TextField";
29
+ import { L as re } from "../ListItemAction-CwspSmQi.mjs";
30
+ import { C as se } from "../CurrencyInput-adTIRtL3.mjs";
35
31
  import me from "@mui/material/Alert";
36
- import he from "@mui/material/AlertTitle";
37
- import ue from "@mui/material/Paper";
38
- import { Error as Ke, CheckCircle as ge } from "@mxenabled/mx-icons";
39
- import { T as be } from "../TabContentContainer-CnMXkVqr.mjs";
40
- import { DataGridPro as Ue } from "@mui/x-data-grid-pro";
41
- import { H as z } from "../HeaderCell-DjuifqHJ.mjs";
42
- import { e as qe, A as X } from "../Account-CMjOp7S2.mjs";
43
- import xe from "@mui/material/Button";
44
- import Ze from "@mui/material/IconButton";
45
- import Je from "@mui/material/ListItem";
46
- import Qe from "@mui/material/Popover";
47
- import { L as et } from "../Loader-BSWSYqvn.mjs";
48
- import { u as tt } from "../useWidgetLoadTimer-CrUzxN-P.mjs";
49
- const rt = (a, o = 0, r = 0) => {
50
- if (r === 0) return 0;
51
- const t = o / (Be * Me);
52
- return Math.ceil(
53
- t === 0 ? a / r : -Math.log(1 - t * a / r) / Math.log(1 + t)
54
- );
55
- }, at = (a, o, r, t, n) => {
56
- const i = [];
57
- if (r === 0) {
58
- for (let c = 0; c < a; c++) {
59
- const p = o - t * (c + 1), m = o - t * c, b = p >= 0 ? t : m;
60
- i.push({
61
- balance: p >= 0 ? p : 0,
62
- interest: r,
63
- payment: b,
64
- principal: b,
65
- timestamp: de(
66
- se(
67
- ce(n),
68
- // convert seconds → Date
69
- c + 1
70
- // add (index + 1) months
71
- )
72
- )
73
- });
74
- }
75
- return i;
76
- }
77
- const d = r / 1200;
78
- for (let c = 0; c < a; c++) {
79
- const p = de(se(ce(n), c + 1)), m = Math.pow(1 + d, c), b = o * m - t * ((m - 1) / d), w = Math.pow(1 + d, c + 1), h = o * w - t * ((w - 1) / d), A = t + Math.min(h, 0), B = b * d;
80
- i.push({
81
- balance: Math.max(0, h),
82
- interest: B,
83
- payment: A,
84
- principal: A - B,
85
- timestamp: p
86
- });
87
- }
88
- return i;
89
- }, ot = (a) => (a[a.length - 1] || {}).timestamp, nt = (a) => {
90
- const { monthly_payment: o, interest_rate: r, balance: t, payment_due_date: n } = a, i = rt(t, r ?? 0, o ?? 0), d = at(
91
- i,
92
- t,
93
- r ?? 0,
94
- o ?? 0,
95
- n
96
- ), c = ot(d);
97
- return {
98
- ...a,
99
- minimumFinalPayment: c,
100
- minimumPayments: d
101
- };
102
- }, we = (a, o) => {
103
- const [r, t] = a.reduce(
104
- ([n, i], d) => (d.is_paid_off || d.is_impossible ? i.push({ ...d, minimumPayments: [] }) : n.push(nt(d)), [n, i]),
105
- [[], []]
106
- );
107
- switch (o) {
108
- case k.FASTEST_PAYOFF_FIRST:
109
- r.sort((n, i) => (n.minimumFinalPayment ?? 0) - (i.minimumFinalPayment ?? 0));
110
- break;
111
- case k.HIGHEST_INTEREST:
112
- r.sort((n, i) => (i.interest_rate ?? 0) - (n.interest_rate ?? 0));
113
- break;
114
- case k.LOWEST_BALANCE:
115
- r.sort((n, i) => n.balance - i.balance);
116
- break;
117
- case k.HIGHEST_BALANCE:
118
- r.sort((n, i) => i.balance - n.balance);
119
- break;
120
- default:
121
- r.sort((n, i) => n.balance - i.balance);
122
- }
123
- a.splice(0, a.length, ...r, ...t);
124
- };
125
- function it(a, o, r = 0) {
126
- const t = a.map((b) => ({ ...b })).filter(
32
+ import _e from "@mui/material/AlertTitle";
33
+ import ye from "@mui/material/Paper";
34
+ import { Error as rt, CheckCircle as Ce } from "@mxenabled/mx-icons";
35
+ import { T as fe } from "../TabContentContainer-CnMXkVqr.mjs";
36
+ import { DataGridPro as ot } from "@mui/x-data-grid-pro";
37
+ import { H } from "../HeaderCell-P8w6CmfO.mjs";
38
+ import { c as nt, A as z } from "../Account-BaJmiJAG.mjs";
39
+ import ve from "@mui/material/Button";
40
+ import at from "@mui/material/IconButton";
41
+ import it from "@mui/material/ListItem";
42
+ import lt from "@mui/material/Popover";
43
+ import { u as st } from "../useWidgetLoadTimer-CJb-RELP.mjs";
44
+ import { L as ct } from "../Loader-CxeBwuPG.mjs";
45
+ import { W as dt } from "../WidgetContainer-DNuz_s7W.mjs";
46
+ import { E as pt } from "../EmptyState-CJUDc3kD.mjs";
47
+ import { C as ut } from "../ConnectDrawer-Cnjr3Ddg.mjs";
48
+ function ht(r, n, o = 0) {
49
+ const t = r.map((b) => ({ ...b })).filter(
127
50
  (b) => b.interest_rate !== void 0 && b.monthly_payment !== void 0 && !b.is_paid_off
128
51
  );
129
- we(t, o);
130
- let n = 0, i = 0;
52
+ Fe(t, n);
53
+ let a = 0, s = 0;
131
54
  const d = /* @__PURE__ */ new Date(), c = /* @__PURE__ */ new Date();
132
55
  for (; t.some((b) => b.balance >= 0.01 && !b.is_impossible); ) {
133
56
  let b = !1;
134
- for (const [w, h] of t.entries()) {
135
- if (h.balance <= 0.01 || h.is_impossible) continue;
136
- const B = (h.interest_rate ?? 0) / 100 / 12, M = h.balance * B;
137
- let C = h.monthly_payment ?? 0;
138
- w === 0 && r && (C += r), h.balance += M;
139
- const I = Math.min(h.balance, C + i);
140
- if (I <= M) {
141
- h.is_impossible = !0;
57
+ for (const [v, x] of t.entries()) {
58
+ if (x.balance <= 0.01 || x.is_impossible) continue;
59
+ const L = (x.interest_rate ?? 0) / 100 / 12, N = x.balance * L;
60
+ let A = x.monthly_payment ?? 0;
61
+ v === 0 && o && (A += o), x.balance += N;
62
+ const E = Math.min(x.balance, A + s);
63
+ if (E <= N) {
64
+ x.is_impossible = !0;
142
65
  continue;
143
66
  }
144
- h.balance -= I, h.balance = h.balance < 0.01 ? 0 : h.balance, n += M, h.balance <= 0 && (i += C), I > 0 && (b = !0);
67
+ x.balance -= E, x.balance = x.balance < 0.01 ? 0 : x.balance, a += N, x.balance <= 0 && (s += A), E > 0 && (b = !0);
145
68
  }
146
69
  b && c.setMonth(c.getMonth() + 1);
147
70
  }
148
- const p = t.some((b) => b.is_impossible && b.balance > 0), m = Ee({ start: d, end: c });
71
+ const m = t.some((b) => b.is_impossible && b.balance > 0), h = Re({ start: d, end: c });
149
72
  return {
150
- payoffSavings: p ? "N/A" : N(n, "0,0.00"),
151
- payoffDate: p ? "Never" : U(c, q.MONTH_YEAR),
152
- payoffDuration: p ? "Stagnant" : Ie(m, { format: ["years", "months"] }) || "0 months"
73
+ payoffSavings: m ? "N/A" : I(a, "0,0.00"),
74
+ payoffDate: m ? "Never" : J(c, Q.MONTH_YEAR),
75
+ payoffDuration: m ? "Stagnant" : Le(h, { format: ["years", "months"] }) || "0 months"
153
76
  };
154
77
  }
155
- const L = () => {
156
- if (!x.useContext(ke))
78
+ const P = () => {
79
+ if (!f.useContext(Ge))
157
80
  throw new Error("useCateUiStore() must be used within the GlobalDataContext");
158
- return Z().uiStore;
159
- }, lt = ({ debts: a, onClickCta: o, sx: r }) => {
160
- const t = V(), { isMobile: n } = K(), { debts: i } = S(), { selectedDebtPriority: d } = L(), { monthlyCashFlowProfile: c } = Y(), { payoffDate: p, payoffSavings: m, payoffDuration: b } = x.useMemo(() => {
161
- const w = c?.extra_payment ?? 0;
162
- return it(a, d, w);
163
- }, [a, d, c]);
81
+ return ee().uiStore;
82
+ }, bt = ({ debts: r, onClickCta: n, sx: o }) => {
83
+ const t = j(), { isMobile: a } = ae(), { debts: s } = w(), { selectedDebtPriority: d } = P(), { monthlyCashFlowProfile: c } = V(), { payoffDate: m, payoffSavings: h, payoffDuration: b } = f.useMemo(() => {
84
+ const v = c?.extra_payment ?? 0;
85
+ return ht(r, d, v);
86
+ }, [r, d, c]);
164
87
  return /* @__PURE__ */ e(
165
- _e,
88
+ ge,
166
89
  {
167
90
  sx: {
168
91
  boxShadow: t.shadows[2],
169
- width: n ? "100%" : "186px",
92
+ width: a ? "100%" : "186px",
170
93
  minWidth: "186px",
171
- ...r
94
+ ...o
172
95
  },
173
- children: /* @__PURE__ */ s(_, { sx: { gap: "12px", p: "16px" }, children: [
174
- /* @__PURE__ */ s(
175
- _,
96
+ children: /* @__PURE__ */ l(u, { sx: { gap: "12px", p: "16px" }, children: [
97
+ /* @__PURE__ */ l(
98
+ u,
176
99
  {
177
- gap: n ? "4px" : "0",
100
+ gap: a ? "4px" : "0",
178
101
  sx: {
179
102
  borderBottom: "1px solid",
180
103
  borderBottomColor: t.palette.grey[300],
181
104
  pb: "8px"
182
105
  },
183
106
  children: [
184
- /* @__PURE__ */ e(l, { variant: "XSmall", children: i.snowball_card_date_description }),
185
- /* @__PURE__ */ e(l, { bold: !0, color: t.palette.primary.main, variant: "Small", children: p })
107
+ /* @__PURE__ */ e(i, { variant: "caption", children: s.snowball_card_date_description }),
108
+ /* @__PURE__ */ e(i, { bold: !0, color: t.palette.primary.main, variant: "body2", children: m })
186
109
  ]
187
110
  }
188
111
  ),
189
- /* @__PURE__ */ s(_, { gap: n ? "4px" : "0", children: [
190
- /* @__PURE__ */ e(l, { bold: !0, variant: "Small", children: m }),
191
- /* @__PURE__ */ e(l, { sx: { whiteSpace: "normal" }, variant: "XSmall", children: i.snowball_card_amount_description })
112
+ /* @__PURE__ */ l(u, { gap: a ? "4px" : "0", children: [
113
+ /* @__PURE__ */ e(i, { bold: !0, variant: "body2", children: h }),
114
+ /* @__PURE__ */ e(i, { variant: "caption", children: s.snowball_card_amount_description })
192
115
  ] }),
193
- /* @__PURE__ */ s(_, { gap: n ? "4px" : "0", children: [
194
- /* @__PURE__ */ e(l, { bold: !0, variant: "Small", children: b }),
195
- /* @__PURE__ */ e(l, { variant: "XSmall", children: i.snowball_card_duration_description })
116
+ /* @__PURE__ */ l(u, { gap: a ? "4px" : "0", children: [
117
+ /* @__PURE__ */ e(i, { bold: !0, variant: "body2", children: b }),
118
+ /* @__PURE__ */ e(i, { variant: "caption", children: s.snowball_card_duration_description })
196
119
  ] }),
197
120
  /* @__PURE__ */ e(
198
- l,
121
+ i,
199
122
  {
200
123
  bold: !0,
201
124
  color: t.palette.primary.main,
202
- onClick: o,
125
+ onClick: n,
203
126
  sx: { cursor: "pointer" },
204
- variant: "Small",
205
- children: i.snowball_card_cta
127
+ variant: "body2",
128
+ children: s.snowball_card_cta
206
129
  }
207
130
  )
208
131
  ] })
209
132
  }
210
133
  );
211
- }, st = v(lt), ct = ({ isOpen: a, onClose: o }) => {
212
- const r = V(), { debts: t } = S(), [n, i] = x.useState(!1);
134
+ }, mt = C(bt), _t = ({ isOpen: r, onClose: n }) => {
135
+ const o = j(), { debts: t } = w(), [a, s] = f.useState(!1);
213
136
  return /* @__PURE__ */ e(
214
- re,
137
+ ie,
215
138
  {
216
139
  ariaLabelClose: "",
217
- isOpen: a,
218
- onClose: o,
140
+ isOpen: r,
141
+ onClose: n,
219
142
  title: t.snowball_drawer_title,
220
- children: /* @__PURE__ */ s(_, { bgcolor: r.palette.background.default, height: "100%", children: [
221
- /* @__PURE__ */ s(_, { alignItems: "center", px: 24, py: 24, children: [
222
- /* @__PURE__ */ s(_, { alignItems: "center", pb: 24, children: [
223
- /* @__PURE__ */ e(l, { mb: 12, variant: "H3", children: t.snowball_drawer_subtitle }),
224
- /* @__PURE__ */ e(l, { color: r.palette.secondary.main, variant: "Small", children: t.snowball_drawer_amount_description }),
225
- /* @__PURE__ */ e(ye, { variant: "H1", children: t.snowball_drawer_savings }),
226
- /* @__PURE__ */ e(l, { color: r.palette.secondary.main, variant: "Small", children: t.snowball_drawer_duration_description })
143
+ children: /* @__PURE__ */ l(u, { bgcolor: o.palette.background.default, height: "100%", children: [
144
+ /* @__PURE__ */ l(u, { alignItems: "center", px: 24, py: 24, children: [
145
+ /* @__PURE__ */ l(u, { alignItems: "center", pb: 24, children: [
146
+ /* @__PURE__ */ e(i, { mb: 12, truncate: !0, variant: "h3", children: t.snowball_drawer_subtitle }),
147
+ /* @__PURE__ */ e(i, { color: o.palette.secondary.main, variant: "body2", children: t.snowball_drawer_amount_description }),
148
+ /* @__PURE__ */ e(xe, { variant: "h1", children: t.snowball_drawer_savings }),
149
+ /* @__PURE__ */ e(i, { color: o.palette.secondary.main, variant: "body2", children: t.snowball_drawer_duration_description })
227
150
  ] }),
228
- /* @__PURE__ */ s(_e, { sx: { display: "grid", py: 16, px: 24 }, children: [
229
- /* @__PURE__ */ e(l, { mb: 4, variant: "H3", children: t.snowball_drawer_question }),
151
+ /* @__PURE__ */ l(ge, { sx: { display: "grid", py: 16, px: 24 }, children: [
152
+ /* @__PURE__ */ e(i, { mb: 4, truncate: !0, variant: "h3", children: t.snowball_drawer_question }),
230
153
  /* @__PURE__ */ e(
231
- l,
154
+ i,
232
155
  {
233
- color: r.palette.secondary.main,
156
+ color: o.palette.secondary.main,
234
157
  mb: 8,
235
- sx: { whiteSpace: n ? "normal" : "nowrap" },
236
- variant: "ParagraphSmall",
158
+ truncate: !a,
159
+ variant: "subtitle2",
237
160
  children: t.snowball_drawer_answer
238
161
  }
239
162
  ),
240
163
  /* @__PURE__ */ e(
241
- l,
164
+ i,
242
165
  {
243
166
  bold: !0,
244
- color: r.palette.primary.main,
245
- onClick: () => i(!n),
167
+ color: o.palette.primary.main,
168
+ onClick: () => s(!a),
246
169
  sx: { cursor: "pointer" },
247
- variant: "Small",
248
- children: n ? t.snowball_drawer_less : t.snowball_drawer_more
170
+ variant: "body2",
171
+ children: a ? t.snowball_drawer_less : t.snowball_drawer_more
249
172
  }
250
173
  )
251
174
  ] })
252
175
  ] }),
253
- /* @__PURE__ */ s(_, { children: [
176
+ /* @__PURE__ */ l(u, { children: [
254
177
  /* @__PURE__ */ e(
255
- l,
178
+ i,
256
179
  {
257
- color: r.palette.secondary.main,
180
+ color: o.palette.secondary.main,
258
181
  px: 24,
259
- sx: { textAlign: "center", whiteSpace: "normal" },
260
- variant: "Small",
182
+ sx: { textAlign: "center" },
183
+ variant: "body2",
261
184
  children: t.snowball_drawer_disclaimer
262
185
  }
263
186
  ),
264
- /* @__PURE__ */ s(_, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
265
- /* @__PURE__ */ e(l, { bold: !0, variant: "XSmall", children: E(t.snowball_drawer_month_header, 1) }),
266
- /* @__PURE__ */ e(l, { bold: !0, variant: "XSmall", children: t.snowball_drawer_payment_header })
187
+ /* @__PURE__ */ l(u, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
188
+ /* @__PURE__ */ e(i, { bold: !0, variant: "caption", children: T(t.snowball_drawer_month_header, 1) }),
189
+ /* @__PURE__ */ e(i, { bold: !0, variant: "caption", children: t.snowball_drawer_payment_header })
267
190
  ] }),
268
- /* @__PURE__ */ s(_, { bgcolor: r.palette.background.paper, mb: 24, children: [
269
- /* @__PURE__ */ s(_, { alignItems: "center", flexDirection: "row", pl: 24, children: [
191
+ /* @__PURE__ */ l(u, { bgcolor: o.palette.background.paper, mb: 24, children: [
192
+ /* @__PURE__ */ l(u, { alignItems: "center", flexDirection: "row", pl: 24, children: [
270
193
  /* @__PURE__ */ e(
271
194
  W,
272
195
  {
@@ -277,43 +200,43 @@ const L = () => {
277
200
  width: 20,
278
201
  height: 20,
279
202
  borderRadius: "50%",
280
- backgroundColor: r.palette.success.main,
203
+ backgroundColor: o.palette.success.main,
281
204
  marginRight: 12
282
205
  },
283
- children: /* @__PURE__ */ e(l, { color: "white", fontWeight: 700, variant: "Small", children: "✓" })
206
+ children: /* @__PURE__ */ e(i, { color: "white", fontWeight: 700, variant: "body2", children: "✓" })
284
207
  }
285
208
  ),
286
- /* @__PURE__ */ s(
287
- _,
209
+ /* @__PURE__ */ l(
210
+ u,
288
211
  {
289
212
  sx: {
290
- borderBottom: `1px solid ${r.palette.border.light}`,
213
+ borderBottom: `1px solid ${o.palette.neutral.light}`,
291
214
  flexDirection: "row",
292
215
  flexGrow: 1,
293
216
  py: 14,
294
217
  pr: 24
295
218
  },
296
219
  children: [
297
- /* @__PURE__ */ s(_, { flexGrow: 1, children: [
298
- /* @__PURE__ */ e(l, { variant: "Body", children: E(t.snowball_drawer_debt_label, "A") }),
299
- /* @__PURE__ */ s(l, { color: r.palette.secondary.main, variant: "XSmall", children: [
300
- E(
220
+ /* @__PURE__ */ l(u, { flexGrow: 1, children: [
221
+ /* @__PURE__ */ e(i, { variant: "body1", children: T(t.snowball_drawer_debt_label, "A") }),
222
+ /* @__PURE__ */ l(i, { color: o.palette.secondary.main, variant: "caption", children: [
223
+ T(
301
224
  t.snowball_drawer_rollover_explainer_pt1,
302
225
  "$100"
303
226
  ),
304
- /* @__PURE__ */ e("strong", { children: E(t.snowball_drawer_debt_label, "B") }),
227
+ /* @__PURE__ */ e("strong", { children: T(t.snowball_drawer_debt_label, "B") }),
305
228
  t.snowball_drawer_rollover_explainer_pt2
306
229
  ] })
307
230
  ] }),
308
- /* @__PURE__ */ s(_, { children: [
309
- /* @__PURE__ */ e(l, { variant: "Body", children: "$100.00" }),
231
+ /* @__PURE__ */ l(u, { children: [
232
+ /* @__PURE__ */ e(i, { variant: "body1", children: "$100.00" }),
310
233
  /* @__PURE__ */ e(
311
- l,
234
+ i,
312
235
  {
313
236
  bold: !0,
314
- color: r.palette.success.main,
237
+ color: o.palette.success.main,
315
238
  textAlign: "end",
316
- variant: "Tiny",
239
+ variant: "tiny",
317
240
  children: t.snowball_drawer_paid_label
318
241
  }
319
242
  )
@@ -322,7 +245,7 @@ const L = () => {
322
245
  }
323
246
  )
324
247
  ] }),
325
- /* @__PURE__ */ s(_, { alignItems: "center", flexDirection: "row", pl: 24, children: [
248
+ /* @__PURE__ */ l(u, { alignItems: "center", flexDirection: "row", pl: 24, children: [
326
249
  /* @__PURE__ */ e(
327
250
  W,
328
251
  {
@@ -331,28 +254,28 @@ const L = () => {
331
254
  height: 20,
332
255
  marginRight: 12,
333
256
  borderRadius: "50%",
334
- border: `3px solid ${r.palette.border.darker}`
257
+ border: `3px solid ${o.palette.neutral.main}`
335
258
  }
336
259
  }
337
260
  ),
338
- /* @__PURE__ */ s(
339
- _,
261
+ /* @__PURE__ */ l(
262
+ u,
340
263
  {
341
264
  sx: {
342
- borderBottom: `1px solid ${r.palette.border.light}`,
265
+ borderBottom: `1px solid ${o.palette.neutral.light}`,
343
266
  flexDirection: "row",
344
267
  flexGrow: 1,
345
268
  py: 14,
346
269
  pr: 24
347
270
  },
348
271
  children: [
349
- /* @__PURE__ */ e(l, { flexGrow: 1, variant: "Body", children: E(t.snowball_drawer_debt_label, "B") }),
350
- /* @__PURE__ */ e(l, { variant: "Body", children: "$400.00" })
272
+ /* @__PURE__ */ e(i, { flexGrow: 1, variant: "body1", children: T(t.snowball_drawer_debt_label, "B") }),
273
+ /* @__PURE__ */ e(i, { variant: "body1", children: "$400.00" })
351
274
  ]
352
275
  }
353
276
  )
354
277
  ] }),
355
- /* @__PURE__ */ s(_, { alignItems: "center", flexDirection: "row", pl: 24, py: 14, children: [
278
+ /* @__PURE__ */ l(u, { alignItems: "center", flexDirection: "row", pl: 24, py: 14, children: [
356
279
  /* @__PURE__ */ e(
357
280
  W,
358
281
  {
@@ -361,39 +284,39 @@ const L = () => {
361
284
  height: 20,
362
285
  marginRight: 12,
363
286
  borderRadius: "50%",
364
- border: `3px solid ${r.palette.border.darker}`
287
+ border: `3px solid ${o.palette.neutral.main}`
365
288
  }
366
289
  }
367
290
  ),
368
- /* @__PURE__ */ s(_, { flexDirection: "row", flexGrow: 1, pr: 24, children: [
369
- /* @__PURE__ */ e(l, { flexGrow: 1, variant: "Body", children: E(t.snowball_drawer_debt_label, "C") }),
370
- /* @__PURE__ */ e(l, { variant: "Body", children: "$1,000.00" })
291
+ /* @__PURE__ */ l(u, { flexDirection: "row", flexGrow: 1, pr: 24, children: [
292
+ /* @__PURE__ */ e(i, { flexGrow: 1, variant: "body1", children: T(t.snowball_drawer_debt_label, "C") }),
293
+ /* @__PURE__ */ e(i, { variant: "body1", children: "$1,000.00" })
371
294
  ] })
372
295
  ] }),
373
- /* @__PURE__ */ s(
374
- _,
296
+ /* @__PURE__ */ l(
297
+ u,
375
298
  {
376
299
  sx: {
377
300
  py: 8,
378
301
  px: 24,
379
302
  flexDirection: "row",
380
303
  justifyContent: "space-between",
381
- borderTop: `1px solid ${r.palette.border.light}`,
382
- borderBottom: `1px solid ${r.palette.border.light}`
304
+ borderTop: `1px solid ${o.palette.neutral.light}`,
305
+ borderBottom: `1px solid ${o.palette.neutral.light}`
383
306
  },
384
307
  children: [
385
- /* @__PURE__ */ e(l, { bold: !0, variant: "Body", children: t.snowball_drawer_total_label }),
386
- /* @__PURE__ */ e(l, { bold: !0, variant: "Body", children: "$1,500.00" })
308
+ /* @__PURE__ */ e(i, { bold: !0, variant: "body1", children: t.snowball_drawer_total_label }),
309
+ /* @__PURE__ */ e(i, { bold: !0, variant: "body1", children: "$1,500.00" })
387
310
  ]
388
311
  }
389
312
  )
390
313
  ] }),
391
- /* @__PURE__ */ s(_, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
392
- /* @__PURE__ */ e(l, { bold: !0, variant: "XSmall", children: E(t.snowball_drawer_month_header, 2) }),
393
- /* @__PURE__ */ e(l, { bold: !0, variant: "XSmall", children: t.snowball_drawer_payment_header })
314
+ /* @__PURE__ */ l(u, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
315
+ /* @__PURE__ */ e(i, { bold: !0, variant: "caption", children: T(t.snowball_drawer_month_header, 2) }),
316
+ /* @__PURE__ */ e(i, { bold: !0, variant: "caption", children: t.snowball_drawer_payment_header })
394
317
  ] }),
395
- /* @__PURE__ */ s(_, { bgcolor: r.palette.background.paper, mb: 24, children: [
396
- /* @__PURE__ */ s(_, { alignItems: "center", flexDirection: "row", pl: 24, children: [
318
+ /* @__PURE__ */ l(u, { bgcolor: o.palette.background.paper, mb: 24, children: [
319
+ /* @__PURE__ */ l(u, { alignItems: "center", flexDirection: "row", pl: 24, children: [
397
320
  /* @__PURE__ */ e(
398
321
  W,
399
322
  {
@@ -404,43 +327,43 @@ const L = () => {
404
327
  width: 20,
405
328
  height: 20,
406
329
  borderRadius: "50%",
407
- backgroundColor: r.palette.success.main,
330
+ backgroundColor: o.palette.success.main,
408
331
  marginRight: 12
409
332
  },
410
- children: /* @__PURE__ */ e(l, { color: "white", fontWeight: 700, variant: "Small", children: "✓" })
333
+ children: /* @__PURE__ */ e(i, { color: "white", fontWeight: 700, variant: "body2", children: "✓" })
411
334
  }
412
335
  ),
413
- /* @__PURE__ */ s(
414
- _,
336
+ /* @__PURE__ */ l(
337
+ u,
415
338
  {
416
339
  sx: {
417
- borderBottom: `1px solid ${r.palette.border.light}`,
340
+ borderBottom: `1px solid ${o.palette.neutral.light}`,
418
341
  flexDirection: "row",
419
342
  flexGrow: 1,
420
343
  py: 14,
421
344
  pr: 24
422
345
  },
423
346
  children: [
424
- /* @__PURE__ */ s(_, { flexGrow: 1, children: [
425
- /* @__PURE__ */ e(l, { variant: "Body", children: E(t.snowball_drawer_debt_label, "B") }),
426
- /* @__PURE__ */ s(l, { color: r.palette.secondary.main, variant: "XSmall", children: [
427
- E(
347
+ /* @__PURE__ */ l(u, { flexGrow: 1, children: [
348
+ /* @__PURE__ */ e(i, { variant: "body1", children: T(t.snowball_drawer_debt_label, "B") }),
349
+ /* @__PURE__ */ l(i, { color: o.palette.secondary.main, variant: "caption", children: [
350
+ T(
428
351
  t.snowball_drawer_rollover_explainer_pt1,
429
352
  "$500"
430
353
  ),
431
- /* @__PURE__ */ e("strong", { children: E(t.snowball_drawer_debt_label, "C") }),
354
+ /* @__PURE__ */ e("strong", { children: T(t.snowball_drawer_debt_label, "C") }),
432
355
  t.snowball_drawer_rollover_explainer_pt2
433
356
  ] })
434
357
  ] }),
435
- /* @__PURE__ */ s(_, { children: [
436
- /* @__PURE__ */ e(l, { variant: "Body", children: "$500.00" }),
358
+ /* @__PURE__ */ l(u, { children: [
359
+ /* @__PURE__ */ e(i, { variant: "body1", children: "$500.00" }),
437
360
  /* @__PURE__ */ e(
438
- l,
361
+ i,
439
362
  {
440
363
  bold: !0,
441
- color: r.palette.success.main,
364
+ color: o.palette.success.main,
442
365
  textAlign: "end",
443
- variant: "Tiny",
366
+ variant: "tiny",
444
367
  children: t.snowball_drawer_paid_label
445
368
  }
446
369
  )
@@ -449,7 +372,7 @@ const L = () => {
449
372
  }
450
373
  )
451
374
  ] }),
452
- /* @__PURE__ */ s(_, { alignItems: "center", flexDirection: "row", pl: 24, children: [
375
+ /* @__PURE__ */ l(u, { alignItems: "center", flexDirection: "row", pl: 24, children: [
453
376
  /* @__PURE__ */ e(
454
377
  W,
455
378
  {
@@ -458,12 +381,12 @@ const L = () => {
458
381
  height: 20,
459
382
  marginRight: 12,
460
383
  borderRadius: "50%",
461
- border: `3px solid ${r.palette.border.darker}`
384
+ border: `3px solid ${o.palette.neutral.main}`
462
385
  }
463
386
  }
464
387
  ),
465
- /* @__PURE__ */ s(
466
- _,
388
+ /* @__PURE__ */ l(
389
+ u,
467
390
  {
468
391
  sx: {
469
392
  flexDirection: "row",
@@ -472,36 +395,36 @@ const L = () => {
472
395
  pr: 24
473
396
  },
474
397
  children: [
475
- /* @__PURE__ */ e(l, { flexGrow: 1, variant: "Body", children: E(t.snowball_drawer_debt_label, "C") }),
476
- /* @__PURE__ */ e(l, { variant: "Body", children: "$1,000.00" })
398
+ /* @__PURE__ */ e(i, { flexGrow: 1, variant: "body1", children: T(t.snowball_drawer_debt_label, "C") }),
399
+ /* @__PURE__ */ e(i, { variant: "body1", children: "$1,000.00" })
477
400
  ]
478
401
  }
479
402
  )
480
403
  ] }),
481
- /* @__PURE__ */ s(
482
- _,
404
+ /* @__PURE__ */ l(
405
+ u,
483
406
  {
484
407
  sx: {
485
408
  py: 8,
486
409
  px: 24,
487
410
  flexDirection: "row",
488
411
  justifyContent: "space-between",
489
- borderTop: `1px solid ${r.palette.border.light}`,
490
- borderBottom: `1px solid ${r.palette.border.light}`
412
+ borderTop: `1px solid ${o.palette.neutral.light}`,
413
+ borderBottom: `1px solid ${o.palette.neutral.light}`
491
414
  },
492
415
  children: [
493
- /* @__PURE__ */ e(l, { bold: !0, variant: "Body", children: t.snowball_drawer_total_label }),
494
- /* @__PURE__ */ e(l, { bold: !0, variant: "Body", children: "$1,500.00" })
416
+ /* @__PURE__ */ e(i, { bold: !0, variant: "body1", children: t.snowball_drawer_total_label }),
417
+ /* @__PURE__ */ e(i, { bold: !0, variant: "body1", children: "$1,500.00" })
495
418
  ]
496
419
  }
497
420
  )
498
421
  ] }),
499
- /* @__PURE__ */ s(_, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
500
- /* @__PURE__ */ e(l, { bold: !0, variant: "XSmall", children: E(t.snowball_drawer_month_header, 3) }),
501
- /* @__PURE__ */ e(l, { bold: !0, variant: "XSmall", children: t.snowball_drawer_payment_header })
422
+ /* @__PURE__ */ l(u, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
423
+ /* @__PURE__ */ e(i, { bold: !0, variant: "caption", children: T(t.snowball_drawer_month_header, 3) }),
424
+ /* @__PURE__ */ e(i, { bold: !0, variant: "caption", children: t.snowball_drawer_payment_header })
502
425
  ] }),
503
- /* @__PURE__ */ s(_, { bgcolor: r.palette.background.paper, mb: 24, children: [
504
- /* @__PURE__ */ s(_, { alignItems: "center", flexDirection: "row", pl: 24, children: [
426
+ /* @__PURE__ */ l(u, { bgcolor: o.palette.background.paper, mb: 24, children: [
427
+ /* @__PURE__ */ l(u, { alignItems: "center", flexDirection: "row", pl: 24, children: [
505
428
  /* @__PURE__ */ e(
506
429
  W,
507
430
  {
@@ -512,14 +435,14 @@ const L = () => {
512
435
  width: 20,
513
436
  height: 20,
514
437
  borderRadius: "50%",
515
- backgroundColor: r.palette.success.main,
438
+ backgroundColor: o.palette.success.main,
516
439
  marginRight: 12
517
440
  },
518
- children: /* @__PURE__ */ e(l, { color: "white", fontWeight: 700, variant: "Small", children: "✓" })
441
+ children: /* @__PURE__ */ e(i, { color: "white", fontWeight: 700, variant: "body2", children: "✓" })
519
442
  }
520
443
  ),
521
- /* @__PURE__ */ s(
522
- _,
444
+ /* @__PURE__ */ l(
445
+ u,
523
446
  {
524
447
  sx: {
525
448
  alignItems: "center",
@@ -529,16 +452,16 @@ const L = () => {
529
452
  pr: 24
530
453
  },
531
454
  children: [
532
- /* @__PURE__ */ e(_, { flexGrow: 1, children: /* @__PURE__ */ e(l, { variant: "Body", children: E(t.snowball_drawer_debt_label, "C") }) }),
533
- /* @__PURE__ */ s(_, { children: [
534
- /* @__PURE__ */ e(l, { variant: "Body", children: "$1,500.00" }),
455
+ /* @__PURE__ */ e(u, { flexGrow: 1, children: /* @__PURE__ */ e(i, { variant: "body1", children: T(t.snowball_drawer_debt_label, "C") }) }),
456
+ /* @__PURE__ */ l(u, { children: [
457
+ /* @__PURE__ */ e(i, { variant: "body1", children: "$1,500.00" }),
535
458
  /* @__PURE__ */ e(
536
- l,
459
+ i,
537
460
  {
538
461
  bold: !0,
539
- color: r.palette.success.main,
462
+ color: o.palette.success.main,
540
463
  textAlign: "end",
541
- variant: "Tiny",
464
+ variant: "tiny",
542
465
  children: t.snowball_drawer_paid_label
543
466
  }
544
467
  )
@@ -547,20 +470,20 @@ const L = () => {
547
470
  }
548
471
  )
549
472
  ] }),
550
- /* @__PURE__ */ s(
551
- _,
473
+ /* @__PURE__ */ l(
474
+ u,
552
475
  {
553
476
  sx: {
554
477
  py: 8,
555
478
  px: 24,
556
479
  flexDirection: "row",
557
480
  justifyContent: "space-between",
558
- borderTop: `1px solid ${r.palette.border.light}`,
559
- borderBottom: `1px solid ${r.palette.border.light}`
481
+ borderTop: `1px solid ${o.palette.neutral.light}`,
482
+ borderBottom: `1px solid ${o.palette.neutral.light}`
560
483
  },
561
484
  children: [
562
- /* @__PURE__ */ e(l, { bold: !0, variant: "Body", children: t.snowball_drawer_total_label }),
563
- /* @__PURE__ */ e(l, { bold: !0, variant: "Body", children: "$1,500.00" })
485
+ /* @__PURE__ */ e(i, { bold: !0, variant: "body1", children: t.snowball_drawer_total_label }),
486
+ /* @__PURE__ */ e(i, { bold: !0, variant: "body1", children: "$1,500.00" })
564
487
  ]
565
488
  }
566
489
  )
@@ -569,50 +492,50 @@ const L = () => {
569
492
  ] })
570
493
  }
571
494
  );
572
- }, dt = v(ct), pt = "#FF7B08";
573
- function mt(a, o) {
574
- const [r, t, n] = a.replace(/^#/, "").match(/.{1,2}/g).map((d) => parseInt(d, 16)), i = [
575
- Math.max(0, Math.min(255, Math.round(r * o))),
576
- Math.max(0, Math.min(255, Math.round(t * o))),
577
- Math.max(0, Math.min(255, Math.round(n * o)))
495
+ }, yt = C(_t), ft = "#FF7B08";
496
+ function gt(r, n) {
497
+ const [o, t, a] = r.replace(/^#/, "").match(/.{1,2}/g).map((d) => parseInt(d, 16)), s = [
498
+ Math.max(0, Math.min(255, Math.round(o * n))),
499
+ Math.max(0, Math.min(255, Math.round(t * n))),
500
+ Math.max(0, Math.min(255, Math.round(a * n)))
578
501
  ];
579
- return `rgb(${i[0]}, ${i[1]}, ${i[2]})`;
502
+ return `rgb(${s[0]}, ${s[1]}, ${s[2]})`;
580
503
  }
581
- const Ce = ({
582
- sx: a,
583
- height: o = 500,
584
- width: r,
504
+ const De = ({
505
+ sx: r,
506
+ height: n = 500,
507
+ width: o,
585
508
  debts: t,
586
- hoveredDebtGuid: n,
587
- onClickArea: i,
509
+ hoveredDebtGuid: a,
510
+ onClickArea: s,
588
511
  onHoverArea: d
589
512
  }) => {
590
- const c = He(), { onEvent: p } = F(), m = t.filter((u) => !u.is_impossible), b = [
513
+ const c = qe(), { onEvent: m } = k(), h = t.filter((p) => !p.is_impossible), b = [
591
514
  ...new Set(
592
- m.flatMap((u) => u.dataset.map((f) => new Date(f.x).getTime()))
515
+ h.flatMap((p) => p.dataset.map((g) => new Date(g.x).getTime()))
593
516
  )
594
- ].sort((u, f) => u - f).map((u) => new Date(u)), w = m.map((u) => {
595
- const f = new Map(u.dataset.map(($) => [new Date($.x).getTime(), $.y]));
596
- let D = f.get(b[0].getTime()) ?? 0;
597
- const P = b.map(($) => {
598
- const H = f.get($.getTime()) ?? D;
599
- return D = H, { x: $, y: H };
517
+ ].sort((p, g) => p - g).map((p) => new Date(p)), v = h.map((p) => {
518
+ const g = new Map(p.dataset.map((B) => [new Date(B.x).getTime(), B.y]));
519
+ let D = g.get(b[0].getTime()) ?? 0;
520
+ const M = b.map((B) => {
521
+ const K = g.get(B.getTime()) ?? D;
522
+ return D = K, { x: B, y: K };
600
523
  });
601
- return { ...u, dataset: P };
602
- }), h = w.reduce(
603
- (u, f) => u + (f.dataset[0]?.y ?? 0),
524
+ return { ...p, dataset: M };
525
+ }), x = v.reduce(
526
+ (p, g) => p + (g.dataset[0]?.y ?? 0),
604
527
  0
605
- ), A = b.map((u, f) => {
606
- const D = f / (b.length - 1), P = h * (1 - D);
607
- return { x: u, y: P };
608
- }), B = Math.ceil(h / 100) * 100, M = b, C = w.map((u, f) => {
609
- const D = 1 - f / w.length * 0.5, P = mt(pt, D);
528
+ ), $ = b.map((p, g) => {
529
+ const D = g / (b.length - 1), M = x * (1 - D);
530
+ return { x: p, y: M };
531
+ }), L = Math.ceil(x / 100) * 100, N = b, A = v.map((p, g) => {
532
+ const D = 1 - g / v.length * 0.5, M = gt(ft, D);
610
533
  return {
611
- id: `debt-${f}`,
612
- guid: u.guid,
613
- label: u.name,
614
- data: u.dataset.map(($) => $.y),
615
- color: P,
534
+ id: `debt-${g}`,
535
+ guid: p.guid,
536
+ label: p.name,
537
+ data: p.dataset.map((B) => B.y),
538
+ color: M,
616
539
  curve: "linear",
617
540
  type: "line",
618
541
  area: !0,
@@ -620,10 +543,10 @@ const Ce = ({
620
543
  showMark: !1
621
544
  };
622
545
  });
623
- C.push({
546
+ A.push({
624
547
  id: "payoff-line",
625
548
  label: "Payoff Line",
626
- data: A.map((u) => u.y),
549
+ data: $.map((p) => p.y),
627
550
  color: c.palette.grey[700],
628
551
  curve: "linear",
629
552
  type: "line",
@@ -631,9 +554,9 @@ const Ce = ({
631
554
  showMark: !1,
632
555
  disableHighlight: !0
633
556
  });
634
- const I = (u) => C.findIndex((f) => f?.guid === u);
557
+ const E = (p) => A.findIndex((g) => g?.guid === p);
635
558
  return /* @__PURE__ */ e(
636
- ae,
559
+ le,
637
560
  {
638
561
  sx: {
639
562
  width: "100%",
@@ -648,23 +571,23 @@ const Ce = ({
648
571
  }
649
572
  },
650
573
  children: /* @__PURE__ */ e(
651
- Ge,
574
+ Xe,
652
575
  {
653
576
  axisHighlight: { x: "none" },
654
577
  disableLineItemHighlight: !0,
655
- height: o,
578
+ height: n,
656
579
  hideLegend: !0,
657
580
  margin: { bottom: 24, left: 32, right: 72, top: 48 },
658
- onAreaClick: (u, f) => {
659
- i?.();
660
- const D = C.find((P) => P.id === f.seriesId);
661
- p(T.DEBTS_CLICK_CHART_AREA, { account_guid: D?.guid });
581
+ onAreaClick: (p, g) => {
582
+ s?.();
583
+ const D = A.find((M) => M.id === g.seriesId);
584
+ m(S.DEBTS_CLICK_CHART_AREA, { account_guid: D?.guid });
662
585
  },
663
- onHighlightChange: (u) => {
664
- const f = C.find((D) => D.id === u?.seriesId)?.guid;
665
- d?.(f ?? "");
586
+ onHighlightChange: (p) => {
587
+ const g = A.find((D) => D.id === p?.seriesId)?.guid;
588
+ d?.(g ?? "");
666
589
  },
667
- series: C,
590
+ series: A,
668
591
  skipAnimation: !0,
669
592
  slotProps: { tooltip: { trigger: "none" } },
670
593
  sx: {
@@ -684,45 +607,45 @@ const Ce = ({
684
607
  strokeDasharray: "10 5",
685
608
  strokeWidth: 1
686
609
  },
687
- [`& .MuiLineElement-series-debt-${I(n ?? "0")}`]: {
610
+ [`& .MuiLineElement-series-debt-${E(a ?? "0")}`]: {
688
611
  opacity: 1
689
612
  },
690
- [`& .MuiAreaElement-series-debt-${I(n ?? "0")}`]: {
613
+ [`& .MuiAreaElement-series-debt-${E(a ?? "0")}`]: {
691
614
  opacity: 1
692
615
  },
693
616
  "& .MuiChartsAxis-tickLabel > tspan": {
694
- fontFamily: c.typography.Small.fontFamily
617
+ fontFamily: c.typography.body2.fontFamily
695
618
  },
696
- ...a
619
+ ...r
697
620
  },
698
- width: r,
621
+ width: o,
699
622
  xAxis: [
700
623
  {
701
- data: M,
624
+ data: N,
702
625
  disableTicks: !0,
703
626
  min: b[0],
704
627
  scaleType: "time",
705
628
  tickLabelMinGap: 24,
706
- valueFormatter: (u) => U(u, q.MONTH_SHORT_YEAR)
629
+ valueFormatter: (p) => J(p, Q.MONTH_SHORT_YEAR)
707
630
  }
708
631
  ],
709
632
  yAxis: [
710
633
  {
711
634
  min: 0,
712
- max: B,
635
+ max: L,
713
636
  disableTicks: !0,
714
- valueFormatter: (u) => N(u, "0a")
637
+ valueFormatter: (p) => I(p, "0a")
715
638
  }
716
639
  ]
717
640
  }
718
641
  )
719
642
  }
720
643
  );
721
- }, ht = () => {
722
- const a = V(), { debts: o } = S(), { selectedDebtChartData: r } = L();
723
- return /* @__PURE__ */ s(O, { children: [
724
- /* @__PURE__ */ s(
725
- Le,
644
+ }, xt = () => {
645
+ const r = j(), { debts: n } = w(), { selectedDebtChartData: o } = P();
646
+ return /* @__PURE__ */ l(R, { children: [
647
+ /* @__PURE__ */ l(
648
+ Ye,
726
649
  {
727
650
  sx: {
728
651
  "& .MuiCardContent-root:last-child": {
@@ -730,70 +653,70 @@ const Ce = ({
730
653
  }
731
654
  },
732
655
  children: [
733
- /* @__PURE__ */ e(Oe, { sx: { pb: 0 }, title: /* @__PURE__ */ e(Te, { sx: { pb: 4 }, children: o.details_chart_title }) }),
734
- /* @__PURE__ */ e($e, { sx: { p: 0 }, children: /* @__PURE__ */ e(Ce, { debts: [r], height: 250 }) })
656
+ /* @__PURE__ */ e(Ue, { sx: { pb: 0 }, title: /* @__PURE__ */ e(Be, { sx: { pb: 4 }, children: n.details_chart_title }) }),
657
+ /* @__PURE__ */ e(Ke, { sx: { p: 0 }, children: /* @__PURE__ */ e(De, { debts: [o], height: 250 }) })
735
658
  ]
736
659
  }
737
660
  ),
738
661
  /* @__PURE__ */ e(
739
- l,
662
+ i,
740
663
  {
741
- color: a.palette.text.secondary,
742
- sx: { whiteSpace: "normal", textAlign: "center", px: 8, py: 12 },
743
- variant: "Small",
744
- children: o.details_chart_description
664
+ color: r.palette.text.secondary,
665
+ sx: { textAlign: "center", px: 8, py: 12 },
666
+ variant: "body2",
667
+ children: n.details_chart_description
745
668
  }
746
669
  )
747
670
  ] });
748
- }, ut = v(ht), bt = () => {
749
- const a = V(), { onEvent: o } = F(), { debts: r } = S(), { selectedDebtChartData: t, showCompleted: n, showError: i } = L();
750
- return x.useEffect(() => o(T.DEBT_SCHEDULE_VIEW), []), /* @__PURE__ */ e(fe, { children: i || n ? /* @__PURE__ */ e(
751
- l,
671
+ }, wt = C(xt), Ct = () => {
672
+ const r = j(), { onEvent: n } = k(), { debts: o } = w(), { selectedDebtChartData: t, showCompleted: a, showError: s } = P();
673
+ return f.useEffect(() => n(S.DEBT_SCHEDULE_VIEW), []), /* @__PURE__ */ e(we, { children: s || a ? /* @__PURE__ */ e(
674
+ i,
752
675
  {
753
- color: a.palette.secondary.main,
676
+ color: r.palette.secondary.main,
754
677
  component: "div",
755
- sx: { p: 32, textAlign: "center", whiteSpace: "normal" },
756
- variant: "Small",
757
- children: i ? r.schedule_error_message : r.schedule_complete_message
678
+ sx: { p: 32, textAlign: "center" },
679
+ variant: "body2",
680
+ children: s ? o.schedule_error_message : o.schedule_complete_message
758
681
  }
759
- ) : /* @__PURE__ */ s(O, { children: [
760
- /* @__PURE__ */ s(g, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
761
- /* @__PURE__ */ e(l, { bold: !0, variant: "XSmall", children: r.schedule_month_heading }),
762
- /* @__PURE__ */ e(l, { bold: !0, variant: "XSmall", children: r.schedule_amount_heading })
682
+ ) : /* @__PURE__ */ l(R, { children: [
683
+ /* @__PURE__ */ l(y, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
684
+ /* @__PURE__ */ e(i, { bold: !0, variant: "caption", children: o.schedule_month_heading }),
685
+ /* @__PURE__ */ e(i, { bold: !0, variant: "caption", children: o.schedule_amount_heading })
763
686
  ] }),
764
- t.dataset.slice(1).map(({ x: d, y: c, payment: p }) => /* @__PURE__ */ e(g, { bgcolor: a.palette.background.paper, children: /* @__PURE__ */ e(g, { alignItems: "center", flexDirection: "row", pl: 24, children: /* @__PURE__ */ s(
765
- g,
687
+ t.dataset.slice(1).map(({ x: d, y: c, payment: m }) => /* @__PURE__ */ e(y, { bgcolor: r.palette.background.paper, children: /* @__PURE__ */ e(y, { alignItems: "center", flexDirection: "row", pl: 24, children: /* @__PURE__ */ l(
688
+ y,
766
689
  {
767
690
  sx: {
768
- borderBottom: `1px solid ${a.palette.border.light}`,
691
+ borderBottom: `1px solid ${r.palette.divider}`,
769
692
  flexDirection: "row",
770
693
  flexGrow: 1,
771
694
  py: 14,
772
695
  pr: 24
773
696
  },
774
697
  children: [
775
- /* @__PURE__ */ s(g, { flexGrow: 1, children: [
776
- /* @__PURE__ */ e(l, { bold: !0, variant: "Body", children: U(d, q.MONTH_YEAR) }),
777
- /* @__PURE__ */ e(l, { color: a.palette.secondary.main, variant: "XSmall", children: r.schedule_month_label })
698
+ /* @__PURE__ */ l(y, { flexGrow: 1, children: [
699
+ /* @__PURE__ */ e(i, { bold: !0, variant: "body1", children: J(d, Q.MONTH_YEAR) }),
700
+ /* @__PURE__ */ e(i, { color: r.palette.secondary.main, variant: "caption", children: o.schedule_month_label })
778
701
  ] }),
779
- /* @__PURE__ */ s(g, { children: [
780
- /* @__PURE__ */ e(l, { bold: !0, variant: "Body", children: N(c, "0,0.00") }),
702
+ /* @__PURE__ */ l(y, { children: [
703
+ /* @__PURE__ */ e(i, { bold: !0, variant: "body1", children: I(c, "0,0.00") }),
781
704
  /* @__PURE__ */ e(
782
- l,
705
+ i,
783
706
  {
784
707
  bold: !0,
785
- color: a.palette.success.main,
708
+ color: r.palette.success.main,
786
709
  textAlign: "end",
787
- variant: "Tiny",
788
- children: `+${N(p, "0,0")}`
710
+ variant: "tiny",
711
+ children: `+${I(m, "0,0")}`
789
712
  }
790
713
  )
791
714
  ] })
792
715
  ]
793
716
  }
794
717
  ) }) }, String(d))),
795
- /* @__PURE__ */ e(g, { bgcolor: "background.paper", children: /* @__PURE__ */ s(
796
- g,
718
+ /* @__PURE__ */ e(y, { bgcolor: "background.paper", children: /* @__PURE__ */ l(
719
+ y,
797
720
  {
798
721
  sx: {
799
722
  alignItems: "center",
@@ -803,135 +726,135 @@ const Ce = ({
803
726
  px: 24
804
727
  },
805
728
  children: [
806
- /* @__PURE__ */ e(l, { flexGrow: 1, variant: "Body", children: r.schedule_payoff_label }),
807
- /* @__PURE__ */ e(l, { variant: "Body", children: "-" })
729
+ /* @__PURE__ */ e(i, { flexGrow: 1, variant: "body1", children: o.schedule_payoff_label }),
730
+ /* @__PURE__ */ e(i, { variant: "body1", children: "-" })
808
731
  ]
809
732
  }
810
733
  ) })
811
734
  ] }) });
812
- }, _t = v(bt), yt = v(({ debt: a }) => {
813
- const { debts: o } = S(), { updateAccount: r } = J(), { onEvent: t } = F(), [n, i] = x.useState(a.interest_rate ?? 0), d = n < 0, c = async () => {
814
- await r({ ...a.account, interest_rate: n }), a.interest_rate = n, t(T.DEBTS_SAVE_RATE_ACTION, { account_guid: a.guid });
815
- }, p = () => {
735
+ }, vt = C(Ct), Dt = C(({ debt: r }) => {
736
+ const { debts: n } = w(), { updateAccount: o } = te(), { onEvent: t } = k(), [a, s] = f.useState(r.interest_rate ?? 0), d = a < 0, c = async () => {
737
+ await o({ ...r.account, interest_rate: a }), r.interest_rate = a, t(S.DEBTS_SAVE_RATE_ACTION, { account_guid: r.guid });
738
+ }, m = () => {
816
739
  setTimeout(() => {
817
- i(a.interest_rate ?? 0);
740
+ s(r.interest_rate ?? 0);
818
741
  }, 250);
819
742
  };
820
743
  return /* @__PURE__ */ e(
821
- Q,
744
+ re,
822
745
  {
823
746
  isSaveDisabled: d,
824
- label: `${o.details_interest_rate} (%)`,
825
- onCancel: p,
747
+ label: `${n.details_interest_rate} (%)`,
748
+ onCancel: m,
826
749
  onSave: c,
827
- primaryText: o.details_interest_rate,
828
- secondaryText: Pe(Number(a.interest_rate) / 100),
829
- zeroStateText: a.interest_rate ? void 0 : o.add_interest_rate,
750
+ primaryText: n.details_interest_rate,
751
+ secondaryText: We(Number(r.interest_rate) / 100),
752
+ zeroStateText: r.interest_rate ? void 0 : n.add_interest_rate,
830
753
  children: /* @__PURE__ */ e(
831
- Ye,
754
+ tt,
832
755
  {
833
756
  error: d,
834
757
  fullWidth: !0,
835
- onChange: (m) => i(isNaN(parseFloat(m.target.value)) ? 0 : parseFloat(m.target.value)),
758
+ onChange: (h) => s(isNaN(parseFloat(h.target.value)) ? 0 : parseFloat(h.target.value)),
836
759
  type: "number",
837
- value: n
760
+ value: a
838
761
  }
839
762
  )
840
763
  }
841
764
  );
842
- }), ft = v(({ debt: a }) => {
843
- const { debts: o } = S(), { updateAccount: r } = J(), { onEvent: t } = F(), [n, i] = x.useState(a.monthly_payment ?? 0), d = n < 0 || n > 9999999999e-2, c = async () => {
844
- await r({ ...a.account, minimum_payment: n }), a.monthly_payment = n, t(T.DEBTS_SAVE_PAYMENT_ACTION, { account_guid: a.guid });
845
- }, p = () => {
765
+ }), St = C(({ debt: r }) => {
766
+ const { debts: n } = w(), { updateAccount: o } = te(), { onEvent: t } = k(), [a, s] = f.useState(r.monthly_payment ?? 0), d = a < 0 || a > 9999999999e-2, c = async () => {
767
+ await o({ ...r.account, minimum_payment: a }), r.monthly_payment = a, t(S.DEBTS_SAVE_PAYMENT_ACTION, { account_guid: r.guid });
768
+ }, m = () => {
846
769
  setTimeout(() => {
847
- i(a.monthly_payment ?? 0);
770
+ s(r.monthly_payment ?? 0);
848
771
  }, 250);
849
772
  };
850
773
  return /* @__PURE__ */ e(
851
- Q,
774
+ re,
852
775
  {
853
776
  isSaveDisabled: d,
854
- label: o.details_monthly_payment,
855
- onCancel: p,
777
+ label: n.details_monthly_payment,
778
+ onCancel: m,
856
779
  onSave: c,
857
- primaryText: o.details_monthly_payment,
858
- secondaryText: N(a.monthly_payment, "0,0"),
859
- zeroStateText: a.monthly_payment ? void 0 : o.add_monthly_payment,
780
+ primaryText: n.details_monthly_payment,
781
+ secondaryText: I(r.monthly_payment, "0,0"),
782
+ zeroStateText: r.monthly_payment ? void 0 : n.add_monthly_payment,
860
783
  children: /* @__PURE__ */ e(
861
- oe,
784
+ se,
862
785
  {
863
- amount: n,
786
+ amount: a,
864
787
  autoFocus: !0,
865
788
  error: d,
866
789
  fullWidth: !0,
867
790
  minAmount: 0,
868
- setAmount: (m) => i(isNaN(Number(m)) ? n : Number(m)),
869
- sx: { ".MuiTypography-Body": { p: 0 } }
791
+ setAmount: (h) => s(isNaN(Number(h)) ? a : Number(h)),
792
+ sx: { ".MuiTypography-body1": { p: 0 } }
870
793
  }
871
794
  )
872
795
  }
873
796
  );
874
- }), gt = v(({ debt: a }) => {
875
- const { debts: o } = S(), { updateAccount: r } = J(), { onEvent: t } = F(), [n, i] = x.useState(a.original_balance ?? 0), d = n < 0 || n > 9999999999e-2, c = async () => {
876
- await r({ ...a.account, original_balance: n }), a.original_balance = n, t(T.DEBTS_SAVE_BALANCE_ACTION, { account_guid: a.guid });
877
- }, p = () => {
797
+ }), At = C(({ debt: r }) => {
798
+ const { debts: n } = w(), { updateAccount: o } = te(), { onEvent: t } = k(), [a, s] = f.useState(r.original_balance ?? 0), d = a < 0 || a > 9999999999e-2, c = async () => {
799
+ await o({ ...r.account, original_balance: a }), r.original_balance = a, t(S.DEBTS_SAVE_BALANCE_ACTION, { account_guid: r.guid });
800
+ }, m = () => {
878
801
  setTimeout(() => {
879
- i(a.original_balance ?? 0);
802
+ s(r.original_balance ?? 0);
880
803
  }, 250);
881
804
  };
882
805
  return /* @__PURE__ */ e(
883
- Q,
806
+ re,
884
807
  {
885
808
  isSaveDisabled: d,
886
- label: o.details_original_balance,
887
- onCancel: p,
809
+ label: n.details_original_balance,
810
+ onCancel: m,
888
811
  onSave: c,
889
- primaryText: o.details_original_balance,
890
- secondaryText: N(a.original_balance, "0,0"),
891
- zeroStateText: a.original_balance ? void 0 : o.add_original_balance,
812
+ primaryText: n.details_original_balance,
813
+ secondaryText: I(r.original_balance, "0,0"),
814
+ zeroStateText: r.original_balance ? void 0 : n.add_original_balance,
892
815
  children: /* @__PURE__ */ e(
893
- oe,
816
+ se,
894
817
  {
895
- amount: n,
818
+ amount: a,
896
819
  autoFocus: !0,
897
820
  error: d,
898
821
  fullWidth: !0,
899
822
  minAmount: 0,
900
- setAmount: (m) => i(isNaN(Number(m)) ? n : Number(m)),
901
- sx: { ".MuiTypography-Body": { p: 0 } }
823
+ setAmount: (h) => s(isNaN(Number(h)) ? a : Number(h)),
824
+ sx: { ".MuiTypography-body1": { p: 0 } }
902
825
  }
903
826
  )
904
827
  }
905
828
  );
906
- }), xt = () => {
907
- const { onEvent: a } = F(), { selectedDebtChartData: o } = L();
908
- return x.useEffect(() => a(T.DEBT_DETAILS_VIEW), []), /* @__PURE__ */ s(g, { bgcolor: "background.paper", children: [
909
- o?.goal && /* @__PURE__ */ s(O, { children: [
910
- /* @__PURE__ */ e(ze, { goal: o.goal }),
911
- /* @__PURE__ */ e(j, {}),
912
- /* @__PURE__ */ e(Xe, { goal: o.goal }),
913
- /* @__PURE__ */ e(j, {}),
914
- /* @__PURE__ */ e(Ve, { goal: o.goal }),
915
- /* @__PURE__ */ e(j, {})
829
+ }), Tt = () => {
830
+ const { onEvent: r } = k(), { selectedDebtChartData: n } = P();
831
+ return f.useEffect(() => r(S.DEBT_DETAILS_VIEW), []), /* @__PURE__ */ l(y, { bgcolor: "background.paper", children: [
832
+ n?.goal && /* @__PURE__ */ l(R, { children: [
833
+ /* @__PURE__ */ e(Je, { goal: n.goal }),
834
+ /* @__PURE__ */ e(G, {}),
835
+ /* @__PURE__ */ e(Qe, { goal: n.goal }),
836
+ /* @__PURE__ */ e(G, {}),
837
+ /* @__PURE__ */ e(et, { goal: n.goal }),
838
+ /* @__PURE__ */ e(G, {})
916
839
  ] }),
917
- !o?.goal && o?.account && /* @__PURE__ */ s(O, { children: [
918
- /* @__PURE__ */ e(ft, { debt: o }),
919
- /* @__PURE__ */ e(j, {}),
920
- /* @__PURE__ */ e(yt, { debt: o }),
921
- /* @__PURE__ */ e(j, {}),
922
- /* @__PURE__ */ e(gt, { debt: o }),
923
- /* @__PURE__ */ e(j, {})
840
+ !n?.goal && n?.account && /* @__PURE__ */ l(R, { children: [
841
+ /* @__PURE__ */ e(St, { debt: n }),
842
+ /* @__PURE__ */ e(G, {}),
843
+ /* @__PURE__ */ e(Dt, { debt: n }),
844
+ /* @__PURE__ */ e(G, {}),
845
+ /* @__PURE__ */ e(At, { debt: n }),
846
+ /* @__PURE__ */ e(G, {})
924
847
  ] })
925
848
  ] });
926
- }, wt = v(xt), Ct = ({ setTabValue: a, sx: o }) => {
927
- const { debts: r } = S(), { showError: t, showCompleted: n } = L();
928
- return x.useEffect(() => {
929
- t && a(1);
930
- }, [t]), !t && !n ? /* @__PURE__ */ e(O, {}) : /* @__PURE__ */ s(g, { gap: 16, children: [
931
- /* @__PURE__ */ e(ue, { sx: { my: 16, mx: 24, ...o }, children: /* @__PURE__ */ s(
849
+ }, Et = C(Tt), It = ({ setTabValue: r, sx: n }) => {
850
+ const { debts: o } = w(), { showError: t, showCompleted: a } = P();
851
+ return f.useEffect(() => {
852
+ t && r(1);
853
+ }, [t]), !t && !a ? /* @__PURE__ */ e(R, {}) : /* @__PURE__ */ l(y, { gap: 16, children: [
854
+ /* @__PURE__ */ e(ye, { sx: { my: 16, mx: 24, ...n }, children: /* @__PURE__ */ l(
932
855
  me,
933
856
  {
934
- icon: t ? /* @__PURE__ */ e(Ke, { filled: !0 }) : /* @__PURE__ */ e(ge, { color: "success", filled: !0 }),
857
+ icon: t ? /* @__PURE__ */ e(rt, { filled: !0 }) : /* @__PURE__ */ e(Ce, { color: "success", filled: !0 }),
935
858
  severity: "error",
936
859
  sx: {
937
860
  alignItems: "start",
@@ -944,15 +867,15 @@ const Ce = ({
944
867
  }
945
868
  },
946
869
  children: [
947
- /* @__PURE__ */ e(he, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: t ? r.status_error_title : r.status_complete_title }),
948
- /* @__PURE__ */ e(l, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: t ? r.status_error_description : r.status_complete_description })
870
+ /* @__PURE__ */ e(_e, { sx: { fontWeight: 600, marginTop: 2 }, variant: "body1", children: t ? o.status_error_title : o.status_complete_title }),
871
+ /* @__PURE__ */ e(i, { component: "p", variant: "subtitle2", children: t ? o.status_error_description : o.status_complete_description })
949
872
  ]
950
873
  }
951
874
  ) }),
952
- t && /* @__PURE__ */ e(ue, { sx: { mb: 16, mt: 100, mx: 24, ...o }, children: /* @__PURE__ */ s(
875
+ t && /* @__PURE__ */ e(ye, { sx: { mb: 16, mt: 100, mx: 24, ...n }, children: /* @__PURE__ */ l(
953
876
  me,
954
877
  {
955
- icon: /* @__PURE__ */ e(O, {}),
878
+ icon: /* @__PURE__ */ e(R, {}),
956
879
  severity: "error",
957
880
  sx: {
958
881
  borderRadius: 2,
@@ -962,151 +885,151 @@ const Ce = ({
962
885
  }
963
886
  },
964
887
  children: [
965
- /* @__PURE__ */ e(he, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: r.status_info_title }),
966
- /* @__PURE__ */ e(l, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: r.status_info_description })
888
+ /* @__PURE__ */ e(_e, { sx: { fontWeight: 600, marginTop: 2 }, variant: "body1", children: o.status_info_title }),
889
+ /* @__PURE__ */ e(i, { component: "p", variant: "subtitle2", children: o.status_info_description })
967
890
  ]
968
891
  }
969
892
  ) })
970
893
  ] });
971
- }, St = v(Ct), vt = () => {
972
- const { debts: a } = S(), { showError: o, showCompleted: r } = L(), [t, n] = x.useState(0);
973
- return /* @__PURE__ */ s(O, { children: [
974
- (o || r) && /* @__PURE__ */ e(St, { setTabValue: n, sx: { mt: -24 } }),
975
- /* @__PURE__ */ s(
976
- je,
894
+ }, Mt = C(It), kt = () => {
895
+ const { debts: r } = w(), { showError: n, showCompleted: o } = P(), [t, a] = f.useState(0);
896
+ return /* @__PURE__ */ l(R, { children: [
897
+ (n || o) && /* @__PURE__ */ e(Mt, { setTabValue: a, sx: { mt: -24 } }),
898
+ /* @__PURE__ */ l(
899
+ Ze,
977
900
  {
978
- "aria-label": a.details_tabs_aria_label,
901
+ "aria-label": r.details_tabs_aria_label,
979
902
  centered: !0,
980
- onChange: (i, d) => n(d),
903
+ onChange: (s, d) => a(d),
981
904
  textColor: "primary",
982
905
  value: t,
983
906
  variant: "fullWidth",
984
907
  children: [
985
908
  /* @__PURE__ */ e(
986
- pe,
909
+ be,
987
910
  {
988
911
  "aria-controls": "debt-schedule-tabpanel-0",
989
912
  id: "debt-schedule-tab-0",
990
- label: a.schedule_tab_label
913
+ label: r.schedule_tab_label
991
914
  }
992
915
  ),
993
916
  /* @__PURE__ */ e(
994
- pe,
917
+ be,
995
918
  {
996
919
  "aria-controls": "debt-details-tabpanel-1",
997
920
  id: "debt-details-tab-1",
998
- label: a.details_tab_label
921
+ label: r.details_tab_label
999
922
  }
1000
923
  )
1001
924
  ]
1002
925
  }
1003
926
  ),
1004
- /* @__PURE__ */ e(be, { index: 0, name: "debt-schedule", value: t, children: /* @__PURE__ */ e(_t, {}) }),
1005
- /* @__PURE__ */ e(be, { index: 1, name: "debt-details", value: t, children: /* @__PURE__ */ e(wt, {}) })
927
+ /* @__PURE__ */ e(fe, { index: 0, name: "debt-schedule", value: t, children: /* @__PURE__ */ e(vt, {}) }),
928
+ /* @__PURE__ */ e(fe, { index: 1, name: "debt-details", value: t, children: /* @__PURE__ */ e(Et, {}) })
1006
929
  ] });
1007
- }, Dt = v(vt), Tt = ({ isOpen: a, onClose: o }) => {
1008
- const { debts: r } = S(), { showError: t, showCompleted: n } = L(), i = t || n ? /* @__PURE__ */ e(O, {}) : /* @__PURE__ */ e(ut, {});
930
+ }, Nt = C(kt), Bt = ({ isOpen: r, onClose: n }) => {
931
+ const { debts: o } = w(), { showError: t, showCompleted: a } = P(), s = t || a ? /* @__PURE__ */ e(R, {}) : /* @__PURE__ */ e(wt, {});
1009
932
  return /* @__PURE__ */ e(
1010
- re,
933
+ ie,
1011
934
  {
1012
- ariaLabelClose: r.details_close_aria,
1013
- isOpen: a,
1014
- onClose: o,
1015
- title: r.details_title,
1016
- children: /* @__PURE__ */ s(g, { bgcolor: "background.default", children: [
1017
- /* @__PURE__ */ e(Re, { customDetailsChart: i }),
1018
- /* @__PURE__ */ e(Dt, {})
935
+ ariaLabelClose: o.details_close_aria,
936
+ isOpen: r,
937
+ onClose: n,
938
+ title: o.details_title,
939
+ children: /* @__PURE__ */ l(y, { bgcolor: "background.default", children: [
940
+ /* @__PURE__ */ e(je, { customDetailsChart: s }),
941
+ /* @__PURE__ */ e(Nt, {})
1019
942
  ] })
1020
943
  }
1021
944
  );
1022
- }, At = v(() => {
1023
- const { debts: a } = S(), { monthlyCashFlowProfile: o, updateMonthlyCashFlowProfile: r } = Y(), { onEvent: t } = F(), [n, i] = x.useState(o?.extra_payment ?? 0), d = n < 0 || n > 9999999999e-2, c = async () => {
1024
- o && (await r({ ...o, extra_payment: n }), o.extra_payment = n, t(T.DEBTS_SAVE_PAYDOWN_ACTION, {
1025
- user_guid: o?.user_guid
945
+ }, Pt = C(() => {
946
+ const { debts: r } = w(), { monthlyCashFlowProfile: n, updateMonthlyCashFlowProfile: o } = V(), { onEvent: t } = k(), [a, s] = f.useState(n?.extra_payment ?? 0), d = a < 0 || a > 9999999999e-2, c = async () => {
947
+ n && (await o({ ...n, extra_payment: a }), n.extra_payment = a, t(S.DEBTS_SAVE_PAYDOWN_ACTION, {
948
+ user_guid: n?.user_guid
1026
949
  }));
1027
- }, p = () => {
950
+ }, m = () => {
1028
951
  setTimeout(() => {
1029
- i(o?.extra_payment ?? 0);
952
+ s(n?.extra_payment ?? 0);
1030
953
  }, 250);
1031
954
  };
1032
955
  return /* @__PURE__ */ e(
1033
- Q,
956
+ re,
1034
957
  {
1035
958
  isSaveDisabled: d,
1036
- label: a.paydown_drawer_extra_payment,
1037
- onCancel: p,
959
+ label: r.paydown_drawer_extra_payment,
960
+ onCancel: m,
1038
961
  onSave: c,
1039
- primaryText: a.paydown_drawer_extra_payment,
1040
- secondaryText: N(o?.extra_payment, "0,0"),
1041
- zeroStateText: o?.extra_payment ? void 0 : a.add_extra_payment,
962
+ primaryText: r.paydown_drawer_extra_payment,
963
+ secondaryText: I(n?.extra_payment, "0,0"),
964
+ zeroStateText: n?.extra_payment ? void 0 : r.add_extra_payment,
1042
965
  children: /* @__PURE__ */ e(
1043
- oe,
966
+ se,
1044
967
  {
1045
- amount: n,
968
+ amount: a,
1046
969
  autoFocus: !0,
1047
970
  error: d,
1048
971
  fullWidth: !0,
1049
972
  minAmount: 0,
1050
- setAmount: (m) => i(isNaN(Number(m)) ? n : Number(m)),
1051
- sx: { ".MuiTypography-Body": { p: 0 } }
973
+ setAmount: (h) => s(isNaN(Number(h)) ? a : Number(h)),
974
+ sx: { ".MuiTypography-body1": { p: 0 } }
1052
975
  }
1053
976
  )
1054
977
  }
1055
978
  );
1056
- }), Et = () => {
1057
- const { debts: a } = S(), { totalMonthlyPayments: o } = Z(), { monthlyCashFlowProfile: r } = Y(), t = o + Number(r?.extra_payment);
1058
- return /* @__PURE__ */ s(g, { sx: { backgroundColor: "background.default", height: "100%" }, children: [
1059
- /* @__PURE__ */ s(g, { p: 24, children: [
1060
- /* @__PURE__ */ s(g, { alignItems: "center", gap: 4, mb: 24, children: [
1061
- /* @__PURE__ */ e(l, { variant: "Body", children: a.paydown_drawer_mimimum_label }),
1062
- /* @__PURE__ */ e(ye, { bold: !0, variant: "H1", children: N(o, "0,0") }),
1063
- /* @__PURE__ */ e(l, { textAlign: "center", truncate: !1, variant: "Small", width: 208, children: a.paydown_drawer_minimum_info })
979
+ }), Rt = () => {
980
+ const { debts: r } = w(), { totalMonthlyPayments: n } = ee(), { monthlyCashFlowProfile: o } = V(), t = n + Number(o?.extra_payment);
981
+ return /* @__PURE__ */ l(y, { sx: { backgroundColor: "background.default", height: "100%" }, children: [
982
+ /* @__PURE__ */ l(y, { p: 24, children: [
983
+ /* @__PURE__ */ l(y, { alignItems: "center", gap: 4, mb: 24, children: [
984
+ /* @__PURE__ */ e(i, { variant: "body1", children: r.paydown_drawer_mimimum_label }),
985
+ /* @__PURE__ */ e(xe, { bold: !0, variant: "h1", children: I(n, "0,0") }),
986
+ /* @__PURE__ */ e(i, { textAlign: "center", truncate: !1, variant: "body2", width: 208, children: r.paydown_drawer_minimum_info })
1064
987
  ] }),
1065
- /* @__PURE__ */ s(g, { children: [
1066
- /* @__PURE__ */ e(l, { variant: "H3", children: a.paydown_drawer_subtitle }),
1067
- /* @__PURE__ */ e(l, { truncate: !1, variant: "ParagraphSmall", children: a.paydown_drawer_description })
988
+ /* @__PURE__ */ l(y, { children: [
989
+ /* @__PURE__ */ e(i, { variant: "h3", children: r.paydown_drawer_subtitle }),
990
+ /* @__PURE__ */ e(i, { truncate: !1, variant: "subtitle2", children: r.paydown_drawer_description })
1068
991
  ] })
1069
992
  ] }),
1070
- /* @__PURE__ */ e(g, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ e(At, {}) }),
1071
- /* @__PURE__ */ e(g, { flexDirection: "row-reverse", px: 24, py: 12, children: /* @__PURE__ */ s(g, { gap: 4, children: [
1072
- /* @__PURE__ */ e(l, { variant: "Small", children: a.paydown_drawer_total_payment }),
1073
- /* @__PURE__ */ e(l, { bold: !0, textAlign: "right", variant: "Body", children: N(t, "0,0") })
993
+ /* @__PURE__ */ e(y, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ e(Pt, {}) }),
994
+ /* @__PURE__ */ e(y, { flexDirection: "row-reverse", px: 24, py: 12, children: /* @__PURE__ */ l(y, { gap: 4, children: [
995
+ /* @__PURE__ */ e(i, { variant: "body2", children: r.paydown_drawer_total_payment }),
996
+ /* @__PURE__ */ e(i, { bold: !0, textAlign: "right", variant: "body1", children: I(t, "0,0") })
1074
997
  ] }) })
1075
998
  ] });
1076
- }, It = v(Et), Bt = ({ isOpen: a, onClose: o }) => {
1077
- const { debts: r } = S();
999
+ }, Lt = C(Rt), Ft = ({ isOpen: r, onClose: n }) => {
1000
+ const { debts: o } = w();
1078
1001
  return /* @__PURE__ */ e(
1079
- re,
1002
+ ie,
1080
1003
  {
1081
- ariaLabelClose: r.paydown_drawer_close_aria,
1082
- isOpen: a,
1083
- onClose: o,
1084
- title: r.paydown_drawer_title,
1085
- children: /* @__PURE__ */ e(It, {})
1004
+ ariaLabelClose: o.paydown_drawer_close_aria,
1005
+ isOpen: r,
1006
+ onClose: n,
1007
+ title: o.paydown_drawer_title,
1008
+ children: /* @__PURE__ */ e(Lt, {})
1086
1009
  }
1087
1010
  );
1088
1011
  };
1089
- function Mt(a, o) {
1090
- const r = (t) => {
1012
+ function $t(r, n) {
1013
+ const o = (t) => {
1091
1014
  if (typeof t == "number") return t;
1092
1015
  if (t === "!" || t === "✓") return 1 / 0;
1093
1016
  throw new Error("Unsupported value");
1094
1017
  };
1095
- return r(a) - r(o);
1018
+ return o(r) - o(n);
1096
1019
  }
1097
- function Pt(a) {
1098
- return a.is_paid_off ? "✓" : a.priority === void 0 || a.is_impossible ? "!" : a.priority;
1020
+ function Ot(r) {
1021
+ return r.is_paid_off ? "✓" : r.priority === void 0 || r.is_impossible ? "!" : r.priority;
1099
1022
  }
1100
- const kt = (a) => {
1101
- const o = {
1023
+ const Wt = (r) => {
1024
+ const n = {
1102
1025
  text: "#121417",
1103
1026
  background: "#FFB252"
1104
1027
  };
1105
- return a === "!" && (o.text = "#FFFFFF", o.background = "#DF320C"), a === "✓" && (o.text = "#FFFFFF", o.background = "#09A57F"), o;
1106
- }, Nt = (a) => {
1107
- const o = String(a.formattedValue), r = kt(o);
1028
+ return r === "!" && (n.text = "#FFFFFF", n.background = "#DF320C"), r === "✓" && (n.text = "#FFFFFF", n.background = "#09A57F"), n;
1029
+ }, Gt = (r) => {
1030
+ const n = String(r.formattedValue), o = Wt(n);
1108
1031
  return /* @__PURE__ */ e(
1109
- ae,
1032
+ le,
1110
1033
  {
1111
1034
  sx: {
1112
1035
  display: "flex",
@@ -1116,43 +1039,43 @@ const kt = (a) => {
1116
1039
  // Adjust the size as needed
1117
1040
  height: 20,
1118
1041
  borderRadius: "50%",
1119
- backgroundColor: r.background,
1042
+ backgroundColor: o.background,
1120
1043
  marginLeft: "10px"
1121
1044
  },
1122
- children: /* @__PURE__ */ e(l, { color: r.text, fontWeight: 700, variant: "Small", children: o })
1045
+ children: /* @__PURE__ */ e(i, { color: o.text, fontWeight: 700, variant: "body2", children: n })
1123
1046
  }
1124
1047
  );
1125
- }, Rt = (a) => {
1126
- const o = a.row.account, r = qe[o.account_type];
1127
- return /* @__PURE__ */ s(g, { alignItems: "center", flexDirection: "row", children: [
1048
+ }, Ht = (r) => {
1049
+ const n = r.row.account, o = nt[n.account_type];
1050
+ return /* @__PURE__ */ l(y, { alignItems: "center", flexDirection: "row", children: [
1128
1051
  /* @__PURE__ */ e(
1129
- Ae,
1052
+ Pe,
1130
1053
  {
1131
- alt: `${o.institutionName}`,
1132
- institutionGuid: o.institution_guid || ""
1054
+ alt: `${n.institutionName}`,
1055
+ institutionGuid: n.institution_guid || ""
1133
1056
  }
1134
1057
  ),
1135
- /* @__PURE__ */ s(g, { ml: 12, children: [
1136
- /* @__PURE__ */ e(l, { variant: "Small", children: o.name }),
1137
- /* @__PURE__ */ e(l, { variant: "XSmall", children: r })
1058
+ /* @__PURE__ */ l(y, { ml: 12, children: [
1059
+ /* @__PURE__ */ e(i, { variant: "body2", children: n.name }),
1060
+ /* @__PURE__ */ e(i, { variant: "caption", children: o })
1138
1061
  ] })
1139
1062
  ] });
1140
- }, Ft = ({
1141
- sx: a = {},
1142
- debts: o,
1143
- hoveredDebtGuid: r,
1063
+ }, zt = ({
1064
+ sx: r = {},
1065
+ debts: n,
1066
+ hoveredDebtGuid: o,
1144
1067
  onHoverRow: t,
1145
- onClickRow: n
1068
+ onClickRow: a
1146
1069
  }) => {
1147
- const i = V(), { onEvent: d } = F(), { isMobile: c } = K(), { debts: p } = S(), [m, b] = x.useState([
1070
+ const s = j(), { onEvent: d } = k(), { isMobile: c } = ae(), { debts: m, common: h } = w(), [b, v] = f.useState([
1148
1071
  { field: "priority", sort: "asc" }
1149
- ]), w = [
1072
+ ]), x = [
1150
1073
  {
1151
1074
  field: "priority",
1152
- headerName: p.table_column_priority,
1153
- renderHeader: z,
1154
- renderCell: Nt,
1155
- sortComparator: Mt,
1075
+ headerName: m.table_column_priority,
1076
+ renderHeader: H,
1077
+ renderCell: Gt,
1078
+ sortComparator: $t,
1156
1079
  sortable: !0,
1157
1080
  hideSortIcons: !0,
1158
1081
  type: "custom",
@@ -1163,9 +1086,9 @@ const kt = (a) => {
1163
1086
  },
1164
1087
  {
1165
1088
  field: "account",
1166
- headerName: p.table_column_account,
1167
- renderHeader: z,
1168
- renderCell: Rt,
1089
+ headerName: m.table_column_account,
1090
+ renderHeader: H,
1091
+ renderCell: Ht,
1169
1092
  sortable: !1,
1170
1093
  type: "custom",
1171
1094
  align: "left",
@@ -1175,22 +1098,22 @@ const kt = (a) => {
1175
1098
  },
1176
1099
  {
1177
1100
  field: "balance",
1178
- headerName: p.table_column_balance,
1179
- renderHeader: z,
1180
- renderCell: (y) => /* @__PURE__ */ e(l, { color: i.palette.text.primary, variant: "Small", children: N(y.value, "0,0") }),
1101
+ headerName: m.table_column_balance,
1102
+ renderHeader: H,
1103
+ renderCell: (_) => /* @__PURE__ */ e(i, { color: s.palette.text.primary, variant: "body2", children: I(_.value, "0,0") }),
1181
1104
  sortable: !0,
1182
1105
  hideSortIcons: c,
1183
1106
  type: "number",
1184
- align: c ? "right" : "left",
1185
- headerAlign: c ? "right" : "left",
1107
+ align: "left",
1108
+ headerAlign: "left",
1186
1109
  minWidth: c ? 70 : 122,
1187
1110
  flex: c ? 0.4 : 0.6
1188
1111
  },
1189
1112
  {
1190
1113
  field: "interest_rate",
1191
- headerName: p.table_column_interest_rate,
1192
- renderHeader: z,
1193
- renderCell: (y) => /* @__PURE__ */ e(l, { color: i.palette.text.primary, variant: "Small", children: isNaN(y.value) ? "---" : `${Number(y.value).toFixed(2)}%` }),
1114
+ headerName: m.table_column_interest_rate,
1115
+ renderHeader: H,
1116
+ renderCell: (_) => /* @__PURE__ */ e(i, { color: s.palette.text.primary, variant: "body2", children: isNaN(_.value) ? "---" : `${Number(_.value).toFixed(2)}%` }),
1194
1117
  sortable: !0,
1195
1118
  hideSortIcons: c,
1196
1119
  type: "number",
@@ -1201,9 +1124,9 @@ const kt = (a) => {
1201
1124
  },
1202
1125
  {
1203
1126
  field: "projected_payoff_date",
1204
- headerName: p.table_column_payoff_date,
1205
- renderHeader: z,
1206
- renderCell: (y) => /* @__PURE__ */ e(l, { color: i.palette.text.primary, variant: "Small", children: y.value ? U(y.value, q.MONTH_SHORT_YEAR) : "---" }),
1127
+ headerName: m.table_column_payoff_date,
1128
+ renderHeader: H,
1129
+ renderCell: (_) => /* @__PURE__ */ e(i, { color: s.palette.text.primary, variant: "body2", children: _.value ? J(_.value, Q.MONTH_SHORT_YEAR) : "---" }),
1207
1130
  sortable: !0,
1208
1131
  hideSortIcons: c,
1209
1132
  type: "number",
@@ -1214,9 +1137,9 @@ const kt = (a) => {
1214
1137
  },
1215
1138
  {
1216
1139
  field: "monthly_payment",
1217
- headerName: p.table_column_amount_due,
1218
- renderHeader: z,
1219
- renderCell: (y) => /* @__PURE__ */ e(l, { color: i.palette.text.primary, variant: "Small", children: typeof y.value == "number" ? N(y.value, "0,0") : "---" }),
1140
+ headerName: m.table_column_amount_due,
1141
+ renderHeader: H,
1142
+ renderCell: (_) => /* @__PURE__ */ e(i, { color: s.palette.text.primary, variant: "body2", children: typeof _.value == "number" ? I(_.value, "0,0") : "---" }),
1220
1143
  sortable: !0,
1221
1144
  hideSortIcons: c,
1222
1145
  type: "number",
@@ -1225,72 +1148,74 @@ const kt = (a) => {
1225
1148
  minWidth: 122,
1226
1149
  flex: 0.6
1227
1150
  }
1228
- ], h = [
1229
- ...w.slice(0, 3),
1151
+ ], $ = [
1152
+ ...x.slice(0, 3),
1230
1153
  {
1231
1154
  field: "chevron",
1155
+ headerClassName: "chevron-header",
1232
1156
  headerName: "",
1233
- renderHeader: void 0,
1234
- renderCell: () => /* @__PURE__ */ e(te, { name: "chevron_right'" }),
1235
- sortable: !0,
1157
+ renderCell: () => /* @__PURE__ */ e(u, { "aria-label": h.see_details, role: "button", children: /* @__PURE__ */ e(ne, { name: "chevron_right" }) }),
1158
+ sortable: !1,
1236
1159
  hideSortIcons: !0,
1237
1160
  type: "custom",
1238
1161
  align: "right",
1239
1162
  headerAlign: "right",
1240
1163
  width: 20
1241
1164
  }
1242
- ], A = x.useMemo(() => o.map((y, R) => ({
1243
- ...y,
1244
- id: R,
1245
- priority: Pt(y)
1246
- })), [o]), B = (y) => {
1247
- const f = y.target.closest("[data-id]")?.getAttribute("data-id"), D = o[Number(f)];
1248
- t?.(D?.guid ?? "");
1249
- }, M = (y) => {
1250
- c || B(y);
1251
- }, C = (y) => {
1252
- c && B(y);
1253
- }, I = (y) => A.find((R) => R.guid === y)?.id;
1165
+ ], L = f.useMemo(() => n.map((_, p) => ({
1166
+ ..._,
1167
+ id: p,
1168
+ priority: Ot(_)
1169
+ })), [n]), N = (_) => {
1170
+ const D = _.target.closest("[data-id]")?.getAttribute("data-id"), M = n[Number(D)];
1171
+ t?.(M?.guid ?? "");
1172
+ }, A = (_) => {
1173
+ c || N(_);
1174
+ }, E = (_) => {
1175
+ c && N(_);
1176
+ }, Y = (_) => L.find((p) => p.guid === _)?.id;
1254
1177
  return /* @__PURE__ */ e(
1255
- ae,
1178
+ le,
1256
1179
  {
1257
1180
  sx: {
1258
- height: "100dvh",
1181
+ height: "auto",
1259
1182
  width: "100%",
1260
1183
  mt: "15px",
1261
1184
  overflowX: "auto",
1185
+ overflowY: "visible",
1262
1186
  boxShadow: "none",
1263
- ...a
1187
+ ...r
1264
1188
  },
1265
1189
  children: /* @__PURE__ */ e(
1266
- Ue,
1190
+ ot,
1267
1191
  {
1268
- columns: c ? h : w,
1192
+ columns: c ? $ : x,
1269
1193
  disableColumnFilter: !0,
1270
1194
  disableColumnMenu: !0,
1271
1195
  hideFooter: !0,
1272
- initialState: { sorting: { sortModel: m } },
1273
- onRowClick: (y) => {
1274
- n(), d(T.DEBTS_CLICK_TABLE_ROW, { account_guid: y.row.guid });
1196
+ initialState: { sorting: { sortModel: b } },
1197
+ onRowClick: (_) => {
1198
+ a(), d(S.DEBTS_CLICK_TABLE_ROW, { account_guid: _.row.guid });
1275
1199
  },
1276
- onSortModelChange: (y) => {
1277
- b(y), d(T.DEBTS_CLICK_TABLE_SORT);
1200
+ onSortModelChange: (_) => {
1201
+ v(_), d(S.DEBTS_CLICK_TABLE_SORT);
1278
1202
  },
1279
- rows: A,
1203
+ rows: L,
1280
1204
  slotProps: {
1281
1205
  baseIconButton: { color: "secondary", sx: { ml: 8 } },
1282
1206
  row: {
1283
- onMouseEnter: M,
1207
+ onMouseEnter: A,
1284
1208
  onMouseLeave: () => !c && t?.(""),
1285
- onTouchStart: C,
1286
- onClick: c ? C : void 0
1209
+ onTouchStart: E,
1210
+ onClick: c ? E : void 0
1287
1211
  }
1288
1212
  },
1289
- sortModel: m,
1213
+ sortModel: b,
1290
1214
  sortingOrder: ["asc", "desc"],
1291
1215
  sx: {
1292
- [`& .MuiDataGrid-row[data-id="${I(r)}"]`]: {
1293
- backgroundColor: i.palette.mode === "light" ? "#f8f9fb" : "#1f2329",
1216
+ "& .chevron-header": { display: "none" },
1217
+ [`& .MuiDataGrid-row[data-id="${Y(o)}"]`]: {
1218
+ backgroundColor: s.palette.mode === "light" ? "#f8f9fb" : "#1f2329",
1294
1219
  filter: "brightness(98%)"
1295
1220
  }
1296
1221
  }
@@ -1298,74 +1223,82 @@ const kt = (a) => {
1298
1223
  )
1299
1224
  }
1300
1225
  );
1301
- }, Lt = ({ buttonText: a, isOpen: o, onClick: r }) => {
1302
- const { isDesktop: t, isTablet: n } = K(), i = o ? "unfold_less" : "unfold_more";
1303
- return t || n ? /* @__PURE__ */ e(
1304
- xe,
1226
+ }, jt = ({
1227
+ buttonText: r,
1228
+ disabled: n,
1229
+ isDesktop: o = !1,
1230
+ isOpen: t,
1231
+ onClick: a
1232
+ }) => {
1233
+ const s = t ? "unfold_less" : "unfold_more";
1234
+ return o ? /* @__PURE__ */ e(
1235
+ ve,
1305
1236
  {
1306
1237
  "aria-controls": "prioritize-debts",
1307
1238
  "aria-describedby": "prioritize-debts",
1308
1239
  "aria-haspopup": !0,
1309
1240
  "aria-label": "prioritize-debts",
1310
- onClick: r,
1311
- startIcon: /* @__PURE__ */ e(te, { name: i }),
1312
- sx: { justifyContent: "start", minWidth: 214, mx: 4 },
1313
- children: a
1241
+ disabled: n,
1242
+ onClick: a,
1243
+ startIcon: /* @__PURE__ */ e(ne, { name: s }),
1244
+ sx: { justifyContent: "start" },
1245
+ children: r
1314
1246
  }
1315
1247
  ) : /* @__PURE__ */ e(
1316
- Ze,
1248
+ at,
1317
1249
  {
1318
1250
  "aria-controls": "prioritize-debts",
1319
1251
  "aria-describedby": "prioritize-debts",
1320
1252
  "aria-haspopup": !0,
1321
1253
  "aria-label": "prioritize-debts",
1322
- onClick: r,
1323
- children: /* @__PURE__ */ e(te, { name: i })
1254
+ disabled: n,
1255
+ onClick: a,
1256
+ children: /* @__PURE__ */ e(ne, { name: s })
1324
1257
  }
1325
1258
  );
1326
- }, $t = v(({ buttonEl: a, onClose: o }) => {
1327
- const { onEvent: r } = F(), { debts: t } = S(), { selectedDebtPriority: n, setSelectedDebtPriority: i } = L(), d = !!a, c = [
1259
+ }, Vt = C(({ buttonEl: r, onClose: n }) => {
1260
+ const { onEvent: o } = k(), { debts: t } = w(), { selectedDebtPriority: a, setSelectedDebtPriority: s } = P(), d = !!r, c = [
1328
1261
  {
1329
- priority: k.FASTEST_PAYOFF_FIRST,
1262
+ priority: F.FASTEST_PAYOFF_FIRST,
1330
1263
  text: t.priority_sort_fastest_payoff
1331
1264
  },
1332
1265
  {
1333
- priority: k.HIGHEST_INTEREST,
1266
+ priority: F.HIGHEST_INTEREST,
1334
1267
  text: t.priority_sort_highest_interest
1335
1268
  },
1336
1269
  {
1337
- priority: k.LOWEST_BALANCE,
1270
+ priority: F.LOWEST_BALANCE,
1338
1271
  text: t.priority_sort_lowest_balance
1339
1272
  },
1340
1273
  {
1341
- priority: k.HIGHEST_BALANCE,
1274
+ priority: F.HIGHEST_BALANCE,
1342
1275
  text: t.priority_sort_highest_balance
1343
1276
  }
1344
- ], p = (m) => {
1345
- i(m), r(T.DEBTS_CLICK_PRIORITY, { debts_priority: m });
1277
+ ], m = (h) => {
1278
+ s(h), o(S.DEBTS_CLICK_PRIORITY, { debts_priority: h });
1346
1279
  };
1347
1280
  return /* @__PURE__ */ e(
1348
- Qe,
1281
+ lt,
1349
1282
  {
1350
- anchorEl: a,
1283
+ anchorEl: r,
1351
1284
  anchorOrigin: {
1352
1285
  vertical: "bottom",
1353
1286
  horizontal: "left"
1354
1287
  },
1355
1288
  id: "prioritize-debts",
1356
- onClose: o,
1289
+ onClose: n,
1357
1290
  open: d,
1358
1291
  transformOrigin: {
1359
1292
  vertical: "top",
1360
1293
  horizontal: "left"
1361
1294
  },
1362
- children: /* @__PURE__ */ e(fe, { children: c.map(({ priority: m, text: b }) => /* @__PURE__ */ s(
1363
- Je,
1295
+ children: /* @__PURE__ */ e(we, { children: c.map(({ priority: h, text: b }) => /* @__PURE__ */ l(
1296
+ it,
1364
1297
  {
1365
- onClick: () => p(m),
1298
+ onClick: () => m(h),
1366
1299
  sx: {
1367
- bgcolor: n === m ? "primary.main" : void 0,
1368
- color: n === m ? "#fff" : void 0,
1300
+ bgcolor: a === h ? "primary.main" : void 0,
1301
+ color: a === h ? "#fff" : void 0,
1369
1302
  justifyContent: "space-between",
1370
1303
  minHeight: 44,
1371
1304
  minWidth: 268,
@@ -1378,180 +1311,187 @@ const kt = (a) => {
1378
1311
  }
1379
1312
  },
1380
1313
  children: [
1381
- /* @__PURE__ */ e(l, { color: "inherit", variant: "Small", children: b }),
1382
- n === m && /* @__PURE__ */ e(ge, { color: "inherit", filled: !0, fontSize: "small" })
1314
+ /* @__PURE__ */ e(i, { color: "inherit", variant: "body2", children: b }),
1315
+ a === h && /* @__PURE__ */ e(Ce, { color: "inherit", filled: !0, fontSize: "small" })
1383
1316
  ]
1384
1317
  },
1385
- m
1318
+ h
1386
1319
  )) })
1387
1320
  }
1388
1321
  );
1389
- }), Ot = v(() => {
1390
- const { onEvent: a } = F(), { debts: o } = S(), { selectedDebtPriority: r } = L(), [t, n] = x.useState(null), i = (m) => {
1391
- n(m.currentTarget), a(T.DEBTS_CLICK_PRIORITIZE);
1392
- }, d = () => {
1393
- n(null);
1394
- }, c = !!t, p = x.useMemo(() => ({
1395
- [k.FASTEST_PAYOFF_FIRST]: o.priority_sort_fastest_payoff,
1396
- [k.HIGHEST_INTEREST]: o.priority_sort_highest_interest,
1397
- [k.HIGHEST_BALANCE]: o.priority_sort_highest_balance,
1398
- [k.LOWEST_BALANCE]: o.priority_sort_lowest_balance
1399
- })[r] ?? o.priority_sort_lowest_balance, [r]);
1400
- return /* @__PURE__ */ s(_, { children: [
1401
- /* @__PURE__ */ e(Lt, { buttonText: p, isOpen: c, onClick: i }),
1402
- /* @__PURE__ */ e($t, { buttonEl: t, onClose: d })
1403
- ] });
1404
- }), Ht = (a, o, r = 0) => {
1405
- const t = a.map((p) => ({ ...p }));
1406
- we(t, o);
1407
- const n = /* @__PURE__ */ new Date(), i = [];
1408
- let d = 0, c = 1;
1409
- for (const p of t)
1410
- i.push({
1411
- ...p,
1412
- // Start with the initial balance
1413
- dataset: [{ x: new Date(n), y: p.balance }]
1414
- });
1415
- for (; t.some((p) => p.balance >= 0.01 && !p.is_impossible); ) {
1416
- let p = !1, m = !1, b = !1;
1417
- for (const [w, h] of t.entries()) {
1418
- if (h.balance <= 0.01) continue;
1419
- const A = i[w].dataset, M = (h.interest_rate ?? 0) / 100 / 12, C = h.balance * M, I = h.monthly_payment ?? 0;
1420
- let y = I, R = 0;
1421
- !b && r > 0 && (y += r, b = !0), !m && d > 0 && (R = d, m = !0), h.balance += C;
1422
- const u = Math.min(h.balance, y + R);
1423
- if (u <= C) {
1424
- h.is_impossible = !0, i[w].is_impossible = !0, i[w].priority = void 0, A.push({ x: new Date(n), y: h.balance });
1425
- continue;
1322
+ }), Yt = C(({ disabled: r, isDesktop: n }) => {
1323
+ const { onEvent: o } = k(), { debts: t } = w(), { selectedDebtPriority: a } = P(), [s, d] = f.useState(null), c = (v) => {
1324
+ d(v.currentTarget), o(S.DEBTS_CLICK_PRIORITIZE);
1325
+ }, m = () => {
1326
+ d(null);
1327
+ }, h = !!s, b = f.useMemo(() => ({
1328
+ [F.FASTEST_PAYOFF_FIRST]: t.priority_sort_fastest_payoff,
1329
+ [F.HIGHEST_INTEREST]: t.priority_sort_highest_interest,
1330
+ [F.HIGHEST_BALANCE]: t.priority_sort_highest_balance,
1331
+ [F.LOWEST_BALANCE]: t.priority_sort_lowest_balance
1332
+ })[a] ?? t.priority_sort_lowest_balance, [a]);
1333
+ return /* @__PURE__ */ l(u, { children: [
1334
+ /* @__PURE__ */ e(
1335
+ jt,
1336
+ {
1337
+ buttonText: b,
1338
+ disabled: r,
1339
+ isDesktop: n,
1340
+ isOpen: h,
1341
+ onClick: c
1426
1342
  }
1427
- h.balance -= u, h.balance = h.balance < 0.01 ? 0 : h.balance, A.push({
1428
- x: new Date(n),
1429
- y: Math.max(0, h.balance),
1430
- payment: u,
1431
- extra: R
1432
- }), h.balance <= 0 && (d += I, i[w].projected_payoff_date = new Date(n)), u > 0 && (p = !0);
1433
- }
1434
- p && n.setMonth(n.getMonth() + 1);
1435
- }
1436
- return i.forEach((p) => {
1437
- (p.interest_rate === void 0 || p.monthly_payment === void 0) && (p.projected_payoff_date = void 0);
1438
- }), i.forEach((p) => {
1439
- p.priority = !p.is_paid_off && !p.is_impossible ? c++ : void 0;
1440
- }), i;
1441
- }, Gt = v(({ onClick: a }) => {
1442
- const { debts: o } = S(), { isDesktop: r } = K(), { totalMonthlyPayments: t } = Z(), { monthlyCashFlowProfile: n } = Y(), i = t + Number(n?.extra_payment), d = r ? o.paydown_button_long : o.paydown_button_short;
1443
- return /* @__PURE__ */ e(
1444
- xe,
1343
+ ),
1344
+ /* @__PURE__ */ e(Vt, { buttonEl: s, onClose: m })
1345
+ ] });
1346
+ }), Kt = C(({ disabled: r, onClick: n }) => {
1347
+ const { debts: o } = w(), { totalMonthlyPayments: t } = ee(), { monthlyCashFlowProfile: a } = V(), s = t + Number(a?.extra_payment), d = o.paydown_button_long;
1348
+ return /* @__PURE__ */ e(y, { alignItems: "center", sx: { flex: 1, flexShrink: 0 }, children: /* @__PURE__ */ e(
1349
+ ve,
1445
1350
  {
1446
1351
  "aria-controls": "extra-paydown",
1447
1352
  "aria-describedby": "extra-paydown",
1448
1353
  "aria-haspopup": !0,
1449
1354
  "aria-label": "extra-paydown",
1450
- onClick: a,
1451
- sx: { justifyContent: "start", minWidth: 100, mx: 4 },
1452
- children: E(d, N(i, "0,0"))
1355
+ disabled: r,
1356
+ onClick: n,
1357
+ sx: { justifyContent: "start" },
1358
+ children: T(d, I(s, "0,0"))
1453
1359
  }
1454
- );
1455
- }), Wt = ({ onBackClick: a, sx: o }) => {
1456
- const { isDesktop: r, isMobile: t } = K(), { debts: n } = S(), { onEvent: i } = F(), { isInitialized: d } = Ne(), { setSelectedAccount: c } = Fe(), { selectedDebtPriority: p, setSelectedDebtChartData: m } = L(), { isAccountDataLoaded: b, loadAccountData: w, visibleDebtAccounts: h } = J(), { isAllGoalDataLoaded: A, loadGoalData: B, monthlyCashFlowProfile: M } = Y(), { debts: C } = Z(), [I, y] = x.useState(!1), [R, u] = x.useState(!1), [f, D] = x.useState(!1), [P, $] = x.useState("");
1457
- tt({
1360
+ ) });
1361
+ }), Ut = ({ onBackClick: r, onMenuClick: n, sx: o }) => {
1362
+ const { isDesktop: t, isMobile: a } = ae(), { connect: s, debts: d } = w(), { onEvent: c } = k(), {
1363
+ config: { show_connections_widget_in_master: m }
1364
+ } = He(), { isInitialized: h } = ze(), { setSelectedAccount: b } = Ve(), { selectedDebtPriority: v, setSelectedDebtChartData: x } = P(), {
1365
+ isAccountDataLoaded: $,
1366
+ loadAccountData: L,
1367
+ detailedAccounts: N,
1368
+ visibleDebtAccounts: A
1369
+ } = te(), { isAllGoalDataLoaded: E, loadGoalData: Y, monthlyCashFlowProfile: _ } = V(), { debts: p } = ee(), [g, D] = f.useState(!1), [M, B] = f.useState(!1), [K, ce] = f.useState(!1), [U, Se] = f.useState(""), [Ae, de] = f.useState(!1);
1370
+ st({
1458
1371
  widgetName: "DebtsWidget",
1459
- isLoaded: A
1372
+ isLoaded: E
1460
1373
  });
1461
- const H = x.useMemo(() => {
1462
- const G = M?.extra_payment ?? 0;
1463
- return Ht(C, p, G);
1464
- }, [C, p, M]);
1465
- x.useEffect(() => {
1466
- b || w().finally(), i(T.DEBTS_VIEW);
1467
- }, []), x.useEffect(() => {
1468
- d && B().finally();
1469
- }, [d]);
1470
- const ne = (G) => $(G), ie = () => {
1471
- const G = h.find((ee) => ee.guid === P), le = H.find((ee) => ee.guid === P);
1472
- G && c(G), le && m(le), y(!0);
1473
- }, Se = () => i(T.DEBTS_CLICK_FILTER), ve = () => {
1474
- D(!0), i(T.DEBTS_CLICK_SNOWBALL_CTA);
1475
- }, De = () => {
1476
- u(!0), i(T.DEBTS_CLICK_PAYDOWN);
1374
+ const q = f.useMemo(() => {
1375
+ const O = _?.extra_payment ?? 0;
1376
+ return $e(p, v, O);
1377
+ }, [p, v, _]);
1378
+ f.useEffect(() => {
1379
+ $ || L().finally(), c(S.DEBTS_VIEW);
1380
+ }, []), f.useEffect(() => {
1381
+ h && Y().finally();
1382
+ }, [h]);
1383
+ const pe = (O) => Se(O), ue = () => {
1384
+ const O = A.find((oe) => oe.guid === U), he = q.find((oe) => oe.guid === U);
1385
+ O && b(O), he && x(he), D(!0);
1386
+ }, Te = () => c(S.DEBTS_CLICK_FILTER), Ee = () => {
1387
+ ce(!0), c(S.DEBTS_CLICK_SNOWBALL_CTA);
1388
+ }, Ie = () => {
1389
+ B(!0), c(S.DEBTS_CLICK_PAYDOWN);
1477
1390
  };
1478
- return !d || !A ? /* @__PURE__ */ e(et, {}) : /* @__PURE__ */ s(
1479
- We,
1391
+ if (!h || !E)
1392
+ return /* @__PURE__ */ e(ct, {});
1393
+ const Me = N.length === 0, ke = A.length === 0, Ne = p.length === 0, X = Me || ke || Ne, Z = Oe(
1394
+ d,
1395
+ m,
1396
+ () => de(!0)
1397
+ );
1398
+ return /* @__PURE__ */ l(
1399
+ dt,
1480
1400
  {
1481
- actions: [
1482
- /* @__PURE__ */ e(Ot, {}, "prioritize-debts"),
1483
- /* @__PURE__ */ e(Gt, { onClick: De }, "extra-paydown")
1484
- ],
1401
+ actions: [/* @__PURE__ */ e(Yt, { disabled: X }, "prioritize-debts")],
1485
1402
  allowedAccountTypes: [
1486
- X.CREDIT_CARD,
1487
- X.LOAN,
1488
- X.MORTGAGE,
1489
- X.LINE_OF_CREDIT,
1490
- X.CHECKING_LINE_OF_CREDIT
1403
+ z.CREDIT_CARD,
1404
+ z.LOAN,
1405
+ z.MORTGAGE,
1406
+ z.LINE_OF_CREDIT,
1407
+ z.CHECKING_LINE_OF_CREDIT
1491
1408
  ],
1492
- onAccountsFilterClick: Se,
1493
- onBackClick: a,
1409
+ hasDivider: !0,
1410
+ onAccountsFilterClick: Te,
1411
+ onBackClick: r,
1412
+ onMenuClick: n,
1413
+ slotComponent: /* @__PURE__ */ e(Kt, { disabled: X, onClick: Ie }, "extra-paydown"),
1494
1414
  sx: o,
1495
- title: n.title,
1415
+ title: d.title,
1496
1416
  children: [
1497
- /* @__PURE__ */ s(g, { sx: { px: r ? "48px" : "24px" }, children: [
1498
- /* @__PURE__ */ s(
1499
- g,
1417
+ /* @__PURE__ */ l(y, { sx: { pt: 48, px: t ? "48px" : "24px" }, children: [
1418
+ X && /* @__PURE__ */ e(
1419
+ pt,
1500
1420
  {
1501
- sx: {
1502
- alignItems: t ? "flex-start" : "flex-end",
1503
- flexDirection: t ? "column" : "row",
1504
- mx: t ? "-12px" : 0
1505
- },
1506
- children: [
1507
- /* @__PURE__ */ e(
1508
- Ce,
1509
- {
1510
- debts: H,
1511
- height: t ? 250 : void 0,
1512
- hoveredDebtGuid: P,
1513
- onClickArea: ie,
1514
- onHoverArea: ne,
1515
- sx: { mr: t ? "4px" : "-48px" }
1516
- }
1517
- ),
1518
- /* @__PURE__ */ e(
1519
- st,
1520
- {
1521
- debts: H,
1522
- onClickCta: ve,
1523
- sx: { mb: t ? "0px" : "64px" }
1524
- }
1525
- )
1526
- ]
1421
+ header: Z.header,
1422
+ icon: "note_stack",
1423
+ onClick: Z.onClickHandler,
1424
+ primaryButton: Z.primaryButton,
1425
+ subText: Z.description,
1426
+ sx: { maxWidth: 400 }
1527
1427
  }
1528
1428
  ),
1529
- /* @__PURE__ */ e(g, { sx: { mx: t ? "-24px" : 0 }, children: /* @__PURE__ */ e(
1530
- Ft,
1531
- {
1532
- debts: H,
1533
- hoveredDebtGuid: P,
1534
- onClickRow: ie,
1535
- onHoverRow: ne
1536
- }
1537
- ) })
1429
+ !X && /* @__PURE__ */ l(R, { children: [
1430
+ /* @__PURE__ */ l(
1431
+ y,
1432
+ {
1433
+ sx: {
1434
+ alignItems: a ? "flex-start" : "flex-end",
1435
+ flexDirection: a ? "column" : "row",
1436
+ mx: a ? "-12px" : 0
1437
+ },
1438
+ children: [
1439
+ /* @__PURE__ */ e(
1440
+ De,
1441
+ {
1442
+ debts: q,
1443
+ height: a ? 250 : void 0,
1444
+ hoveredDebtGuid: U,
1445
+ onClickArea: ue,
1446
+ onHoverArea: pe,
1447
+ sx: { mr: a ? "4px" : "-48px" }
1448
+ }
1449
+ ),
1450
+ /* @__PURE__ */ e(
1451
+ mt,
1452
+ {
1453
+ debts: q,
1454
+ onClickCta: Ee,
1455
+ sx: { mb: a ? "0px" : "64px" }
1456
+ }
1457
+ )
1458
+ ]
1459
+ }
1460
+ ),
1461
+ /* @__PURE__ */ e(y, { sx: { mx: a ? "-24px" : 0 }, children: /* @__PURE__ */ e(
1462
+ zt,
1463
+ {
1464
+ debts: q,
1465
+ hoveredDebtGuid: U,
1466
+ onClickRow: ue,
1467
+ onHoverRow: pe
1468
+ }
1469
+ ) })
1470
+ ] })
1538
1471
  ] }),
1539
1472
  /* @__PURE__ */ e(
1540
- dt,
1473
+ yt,
1541
1474
  {
1542
- isOpen: f,
1543
- onClose: () => D(!1)
1475
+ isOpen: K,
1476
+ onClose: () => ce(!1)
1544
1477
  }
1545
1478
  ),
1546
- /* @__PURE__ */ e(Tt, { isOpen: I, onClose: () => y(!1) }),
1547
- /* @__PURE__ */ e(Bt, { isOpen: R, onClose: () => u(!1) })
1479
+ /* @__PURE__ */ e(Bt, { isOpen: g, onClose: () => D(!1) }),
1480
+ /* @__PURE__ */ e(Ft, { isOpen: M, onClose: () => B(!1) }),
1481
+ /* @__PURE__ */ e(
1482
+ ut,
1483
+ {
1484
+ onClose: () => de(!1),
1485
+ showConnectWidget: Ae,
1486
+ title: s.mini_title
1487
+ }
1488
+ )
1548
1489
  ]
1549
1490
  }
1550
1491
  );
1551
- }, Fr = v(Wt);
1492
+ }, Hr = C(Ut);
1552
1493
  export {
1553
- Ce as DebtsChart,
1554
- Or as DebtsStore,
1555
- Ft as DebtsTable,
1556
- Fr as DebtsWidget
1494
+ De as DebtsChart,
1495
+ zt as DebtsTable,
1496
+ Hr as DebtsWidget
1557
1497
  };