@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,88 +1,88 @@
1
- import { g as _e, T as s, G as de, a as Pe, M as Z, C as Ae, b as Ve } from "../GoalStore-Dbjgft2i.mjs";
2
- import { c as Un, d as Yn } from "../GoalStore-Dbjgft2i.mjs";
3
- import { jsxs as i, jsx as e, Fragment as H } from "react/jsx-runtime";
4
- import A from "react";
1
+ import { jsxs as c, jsx as e, Fragment as F } from "react/jsx-runtime";
2
+ import T from "react";
5
3
  import { observer as D } from "mobx-react-lite";
6
- import je from "@mui/material/Alert";
7
- import Fe from "@mui/material/Snackbar";
8
- import g from "@mui/material/Stack";
9
- import se from "@mui/material/Tab";
10
- import ze from "@mui/material/Tabs";
11
- import { Text as T, H2 as ue, P, H3 as me, Icon as He, InstitutionLogo as te } from "@mxenabled/mxui";
12
- import pe from "@mui/material/Button";
13
- import Te from "@mui/material/Card";
14
- import Ce from "@mui/material/CardActionArea";
15
- import Se from "@mui/material/CardContent";
16
- import ge from "@mui/material/Unstable_Grid2";
17
- import ne from "@mui/material/Avatar";
18
- import $e from "@mui/material/CardHeader";
19
- import { Payments as Re, NoteStack as Ee, Person as xe, ChevronRight as O, DragHandle as Xe, CheckCircle as Ue, Icon as ye, ExpandLess as Ye, ExpandMore as Ze, AddBox as ve, Trophy as qe } from "@mxenabled/mx-icons";
20
- import { S as Je } from "../StatusBar-CPfSXe80.mjs";
21
- import { u as R, l as G, b as he, a as Ge, d as j, o as Ie, g as Ne } from "../hooks-fY_n74f7.mjs";
22
- import { u as be } from "../useScreenSize-B6JyS_Lj.mjs";
23
- import { f as v } from "../NumberFormatting-DjTD0t3W.mjs";
24
- import E from "@mui/material/Divider";
25
- import L from "@mui/material/List";
26
- import { C as we } from "../CurrencyInput-DDQ4DBrE.mjs";
27
- import { L as J } from "../ListItemAction-Cbr3417C.mjs";
28
- import { fromUnixTime as q } from "date-fns/fromUnixTime";
29
- import w from "@mui/material/ListItem";
30
- import K from "@mui/material/ListItemButton";
31
- import k from "@mui/material/ListItemText";
32
- import { DataGridPro as Qe } from "@mui/x-data-grid-pro";
33
- import { u as et } from "../useAriaLive-B3_pRUio.mjs";
34
- import { D as X } from "../Drawer-Bet2ZPJo.mjs";
35
- import { b as M } from "../Localization-2MODESHW.mjs";
36
- import { f as ae, D as oe, a as tt } from "../Dialog-CWymUiuO.mjs";
37
- import V from "@mui/material/ListItemAvatar";
38
- import { g as ke } from "../AccountDisplayName-CO7z3v99.mjs";
4
+ import Pe from "@mui/material/Alert";
5
+ import je from "@mui/material/Snackbar";
6
+ import f from "@mui/material/Stack";
7
+ import re from "@mui/material/Tab";
8
+ import Fe from "@mui/material/Tabs";
9
+ import { b as B } from "../Localization-DnoVyBNK.mjs";
10
+ import { f as I } from "../NumberFormatting--XMeeBfr.mjs";
11
+ import { Text as C, H3 as le, P as Y, Icon as $e, InstitutionLogo as X, H2 as Te } from "@mxenabled/mxui";
12
+ import me from "@mui/material/Button";
13
+ import Ce from "@mui/material/Card";
14
+ import Re from "@mui/material/CardActionArea";
15
+ import xe from "@mui/material/CardContent";
16
+ import ge from "@mui/material/Grid";
17
+ import te from "@mui/material/Avatar";
18
+ import He from "@mui/material/CardHeader";
19
+ import { Payments as Ee, NoteStack as Se, Person as ve, ArrowUpwardAlt as Ue, CheckCircle as Ye, ChevronRight as z, Icon as ye, ExpandLess as Ze, ExpandMore as qe, AddBox as Ie, Trophy as Je } from "@mxenabled/mx-icons";
20
+ import { g as ue, T as r, G as de, a as Qe, M as U, b as Xe } from "../GoalsUtil-C9EnLWvC.mjs";
21
+ import { u as x, k as N, b as _e, a as pe, d as j, C as Ge, g as Ne } from "../hooks-BaO_gOI6.mjs";
22
+ import { u as he } from "../useScreenSize-mWpmnh5w.mjs";
23
+ import { S as et } from "../StatusBar-CPfSXe80.mjs";
24
+ import v from "@mui/material/Divider";
25
+ import O from "@mui/material/List";
26
+ import { L as Z } from "../ListItemAction-CwspSmQi.mjs";
27
+ import { C as ke } from "../CurrencyInput-adTIRtL3.mjs";
28
+ import { fromUnixTime as ee } from "date-fns/fromUnixTime";
29
+ import tt from "@mui/material/IconButton";
30
+ import k from "@mui/material/ListItem";
31
+ import P from "@mui/material/ListItemAvatar";
32
+ import L from "@mui/material/ListItemButton";
33
+ import w from "@mui/material/ListItemText";
34
+ import { f as be, D as fe } from "../DateFormats-HudZ3Bjs.mjs";
35
+ import { D as q } from "../Drawer-BXqqBMxg.mjs";
36
+ import { g as we } from "../AccountDisplayName-CO7z3v99.mjs";
39
37
  import nt from "@mui/material/Collapse";
40
- import at from "@mui/material/ListItemIcon";
41
- import ot from "@mui/material/Checkbox";
42
- import { A as fe } from "../Account-CMjOp7S2.mjs";
43
- import { u as rt } from "../useAccountDisplayName-DbkgGLdg.mjs";
44
- import De from "@mui/material/TextField";
45
- import { M as it, I as st, O as lt } from "../OriginalBalanceAction-DFoG79Ba.mjs";
46
- import { getUnixTime as ct } from "date-fns/getUnixTime";
38
+ import ot from "@mui/material/ListItemIcon";
39
+ import at from "@mui/material/Checkbox";
40
+ import { C as De } from "../ConnectCard-CCep7Zqe.mjs";
41
+ import { A as Ae } from "../Account-BaJmiJAG.mjs";
42
+ import { u as it } from "../useAccountDisplayName-CFa_MrS6.mjs";
43
+ import Ke from "@mui/material/TextField";
44
+ import { M as rt, I as st, O as ct } from "../OriginalBalanceAction-CkJPnp2c.mjs";
45
+ import { getUnixTime as lt } from "date-fns/getUnixTime";
47
46
  import { isValid as dt } from "date-fns/isValid";
48
47
  import { AdapterDateFns as mt } from "@mui/x-date-pickers/AdapterDateFnsV3";
49
- import { DatePicker as _t } from "@mui/x-date-pickers";
50
- import { LocalizationProvider as ut } from "@mui/x-date-pickers/LocalizationProvider";
51
- import { L as Ke } from "../Loader-BSWSYqvn.mjs";
52
- import { u as Me } from "../useWidgetLoadTimer-CrUzxN-P.mjs";
53
- import { A as $, W as pt } from "../WidgetContainer-mzejMmz2.mjs";
54
- import { E as ht } from "../EmptyState-DoxNUae-.mjs";
55
- import bt from "@mui/material/Stack/Stack";
56
- import gt from "@mui/material/Box";
57
- import yt from "@mui/material/styles/useTheme";
58
- import { S as ft } from "../SingleSegmentDonut-PsRQPkmV.mjs";
59
- import { M as At } from "../MicroWidgetContainer-DSyYwRCU.mjs";
60
- function le({ title: t, subtitle: n }) {
61
- return /* @__PURE__ */ i(g, { children: [
62
- /* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: t }),
63
- /* @__PURE__ */ e(T, { sx: { fontWeight: 400 }, variant: "Body", children: n })
48
+ import { DatePicker as ut } from "@mui/x-date-pickers";
49
+ import { LocalizationProvider as _t } from "@mui/x-date-pickers/LocalizationProvider";
50
+ import { D as pt } from "../Dialog-CwWc0AbH.mjs";
51
+ import { u as Me } from "../useWidgetLoadTimer-CJb-RELP.mjs";
52
+ import { A as $ } from "../Analytics-CzGzz_sE.mjs";
53
+ import { L as Le } from "../Loader-CxeBwuPG.mjs";
54
+ import { W as ht } from "../WidgetContainer-DNuz_s7W.mjs";
55
+ import { E as bt } from "../EmptyState-CJUDc3kD.mjs";
56
+ import ft from "@mui/material/Box";
57
+ import { useTheme as gt } from "@mui/material/styles";
58
+ import { S as yt } from "../SingleSegmentDonut-7Uy6VEld.mjs";
59
+ import { M as At } from "../MicroWidgetContainer-CfKdQfhi.mjs";
60
+ function se({ title: t, subtitle: n }) {
61
+ return /* @__PURE__ */ c(f, { children: [
62
+ /* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: t }),
63
+ /* @__PURE__ */ e(C, { sx: { fontWeight: 400 }, variant: "body1", children: n })
64
64
  ] });
65
65
  }
66
- const Tt = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
66
+ const Tt = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
67
67
  /(\d+)(?:\.0+|(\.\d*?[1-9])0*)([a-zA-Z]* ?\$?)/g,
68
68
  "$1$2$3"
69
- ) : v(t, "0,0.00"), Le = D(
70
- ({ goal: t, isInDrawer: n = !1, onClick: c }) => {
71
- const { goals: m } = R(), { isMobile: h, isTablet: r } = be(), d = h || r, {
72
- backgroundColor: l,
73
- color: p,
74
- percentage: b,
75
- percentageText: o,
76
- projectedText: a
77
- } = _e(m, t), u = t.track_type === s.DEBT_TRACK ? t.initial_amount : t.amount, _ = [
69
+ ) : I(t, "0,0.00"), Oe = D(
70
+ ({ goal: t, isInDrawer: n = !1, onClick: u }) => {
71
+ const { goals: d } = x(), { isMobile: _, isTablet: i } = he(), m = _ || i, {
72
+ backgroundColor: p,
73
+ color: s,
74
+ percentage: h,
75
+ percentageText: a,
76
+ projectedText: o
77
+ } = ue(d, t), b = t.track_type === r.DEBT_TRACK ? t.initial_amount : t.amount, l = [
78
78
  {
79
- color: l,
80
- percentage: `${b}`
79
+ color: p,
80
+ percentage: `${h}`
81
81
  }
82
82
  ];
83
- let y = /* @__PURE__ */ e(Re, {});
84
- return t.track_type === s.DEBT_TRACK ? y = /* @__PURE__ */ e(Ee, {}) : t.track_type === s.RETIREMENT_TRACK && (y = /* @__PURE__ */ e(xe, {})), /* @__PURE__ */ e(
85
- Te,
83
+ let y = /* @__PURE__ */ e(Ee, {});
84
+ return t.track_type === r.DEBT_TRACK ? y = /* @__PURE__ */ e(Se, {}) : t.track_type === r.RETIREMENT_TRACK && (y = /* @__PURE__ */ e(ve, {})), /* @__PURE__ */ e(
85
+ Ce,
86
86
  {
87
87
  elevation: 2,
88
88
  sx: {
@@ -91,23 +91,46 @@ const Tt = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
91
91
  outlineColor: "primary.main"
92
92
  }
93
93
  },
94
- children: /* @__PURE__ */ i(Ce, { disabled: !c, onClick: c, children: [
94
+ children: /* @__PURE__ */ c(Re, { disabled: !u, onClick: u, children: [
95
95
  /* @__PURE__ */ e(
96
- $e,
96
+ He,
97
97
  {
98
- avatar: /* @__PURE__ */ e(ne, { sx: { bgcolor: l, color: p, height: 48, width: 48 }, variant: "rounded", children: y }),
99
- subheader: /* @__PURE__ */ e(T, { variant: n || d ? "H3" : "H2", children: `${v(t.current_amount, d ? "0,0" : "0,0.00")} / ${Tt(
100
- u,
101
- d
102
- )}` }),
103
- title: /* @__PURE__ */ e(ue, { color: "text.secondary", fontWeight: 400, variant: "Body", children: t.name })
98
+ avatar: /* @__PURE__ */ e(te, { sx: { bgcolor: p, color: s, height: 48, width: 48 }, variant: "rounded", children: y }),
99
+ subheader: /* @__PURE__ */ e(
100
+ C,
101
+ {
102
+ sx: {
103
+ fontWeight: 700,
104
+ fontSize: n || m ? "18px" : "23px",
105
+ lineHeight: n || m ? "24px" : "32px"
106
+ },
107
+ children: `${I(t.current_amount, m ? "0,0" : "0,0.00")} / ${Tt(
108
+ b,
109
+ m
110
+ )}`
111
+ }
112
+ ),
113
+ sx: { alignItems: "flex-start", "& .MuiCardHeader-content": { minWidth: 0 } },
114
+ title: /* @__PURE__ */ e(
115
+ C,
116
+ {
117
+ color: "text.secondary",
118
+ fontWeight: 400,
119
+ sx: {
120
+ fontSize: "15px",
121
+ lineHeight: "20px"
122
+ },
123
+ variant: "h4",
124
+ children: t.name
125
+ }
126
+ )
104
127
  }
105
128
  ),
106
- /* @__PURE__ */ e(Se, { sx: { pt: 0 }, children: /* @__PURE__ */ i(g, { gap: 6, children: [
107
- /* @__PURE__ */ e(Je, { data: _, height: 24 }),
108
- /* @__PURE__ */ i(g, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
109
- /* @__PURE__ */ e(T, { color: "text.secondary", variant: "XSmall", children: o }),
110
- t.projected_to_complete_at && /* @__PURE__ */ e(T, { color: "text.secondary", variant: "XSmall", children: a })
129
+ /* @__PURE__ */ e(xe, { sx: { pt: 0 }, children: /* @__PURE__ */ c(f, { gap: 6, children: [
130
+ /* @__PURE__ */ e(et, { data: l, height: 24 }),
131
+ /* @__PURE__ */ c(f, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
132
+ /* @__PURE__ */ e(C, { color: "text.secondary", variant: "caption", children: a }),
133
+ t.projected_to_complete_at && /* @__PURE__ */ e(C, { color: "text.secondary", variant: "caption", children: o })
111
134
  ] })
112
135
  ] }) })
113
136
  ] })
@@ -115,244 +138,150 @@ const Tt = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
115
138
  );
116
139
  }
117
140
  ), Ct = D(({ trackType: t }) => {
118
- const { goals: n } = R(), { setAlert: c, monthlyCashFlowProfile: m, updateMonthlyCashFlowProfile: h } = G(), r = A.useMemo(() => {
119
- let o = 0;
120
- return t === s.SAVINGS_TRACK ? o = m?.amount_allocated_for_savings_goals || 0 : t === s.DEBT_TRACK ? o = m?.amount_allocated_for_debt_goals || 0 : t === s.RETIREMENT_TRACK && (o = m?.amount_allocated_for_retirement_goals || 0), o;
121
- }, [m]);
122
- A.useEffect(() => {
123
- l(r);
124
- }, [r]);
125
- const [d, l] = A.useState(r), p = d < 0 || d > 99999999, b = async () => {
126
- if (m) {
127
- const o = { ...m };
128
- t === s.SAVINGS_TRACK ? o.amount_allocated_for_savings_goals = d : t === s.DEBT_TRACK ? o.amount_allocated_for_debt_goals = d : t === s.RETIREMENT_TRACK && (o.amount_allocated_for_retirement_goals = d), await h(o), c(n.alert_contribution_updated);
141
+ const { goals: n } = x(), { setAlert: u, monthlyCashFlowProfile: d, updateMonthlyCashFlowProfile: _ } = N(), i = T.useMemo(() => {
142
+ let a = 0;
143
+ return t === r.SAVINGS_TRACK ? a = d?.amount_allocated_for_savings_goals || 0 : t === r.DEBT_TRACK ? a = d?.amount_allocated_for_debt_goals || 0 : t === r.RETIREMENT_TRACK && (a = d?.amount_allocated_for_retirement_goals || 0), a;
144
+ }, [d]);
145
+ T.useEffect(() => {
146
+ p(i);
147
+ }, [i]);
148
+ const [m, p] = T.useState(i), s = m < 0 || m > 99999999, h = async () => {
149
+ if (d) {
150
+ const a = { ...d };
151
+ t === r.SAVINGS_TRACK ? a.amount_allocated_for_savings_goals = m : t === r.DEBT_TRACK ? a.amount_allocated_for_debt_goals = m : t === r.RETIREMENT_TRACK && (a.amount_allocated_for_retirement_goals = m), await _(a), u(n.alert_contribution_updated);
129
152
  }
130
153
  };
131
- return /* @__PURE__ */ e(g, { bgcolor: "background.paper", children: /* @__PURE__ */ e(
132
- J,
154
+ return /* @__PURE__ */ e(f, { bgcolor: "background.paper", children: /* @__PURE__ */ e(
155
+ Z,
133
156
  {
134
- isSaveDisabled: !d || isNaN(d),
157
+ isSaveDisabled: !m || isNaN(m),
135
158
  label: n.contribution_label,
136
- onCancel: () => l(r),
137
- onSave: b,
159
+ onCancel: () => p(i),
160
+ onSave: h,
138
161
  primaryText: n.contribution_label,
139
- secondaryText: v(r, "0,0.00"),
162
+ secondaryText: I(i, "0,0.00"),
140
163
  children: /* @__PURE__ */ e(
141
- we,
164
+ ke,
142
165
  {
143
- amount: d,
166
+ amount: m,
144
167
  autoFocus: !0,
145
- error: p,
168
+ error: s,
146
169
  fullWidth: !0,
147
170
  minAmount: 0,
148
- setAmount: (o) => l(isNaN(Number(o)) ? d : Number(o)),
149
- sx: { ".MuiTypography-Body": { p: 0 } }
171
+ setAmount: (a) => p(isNaN(Number(a)) ? m : Number(a)),
172
+ sx: { ".MuiTypography-body1": { p: 0 } }
150
173
  }
151
174
  )
152
175
  }
153
176
  ) });
154
- }), St = ({ goals: t }) => {
155
- const { goals: n, common: c } = R(), { reorderGoals: m, setAlert: h } = G(), { announce: r, ariaLive: d } = et(), [l, p] = A.useState(!1), [b, o] = A.useState(t.map((f) => ({ ...f })));
156
- A.useEffect(() => {
157
- l && o(t.map((f) => ({ ...f })));
158
- }, [l]);
159
- const a = [
177
+ }), Rt = ({ goal: t, index: n, onUpClick: u }) => {
178
+ const { goals: d } = x(), { percentage: _ } = ue(d, t), i = t.goal_type === de.KEEP_BALANCE_BELOW || t.has_been_spent ? d.goal_completed : B(d.goal_percentage_reached, `${_ * 100}`);
179
+ return /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(
180
+ L,
160
181
  {
161
- field: "name",
162
- flex: 1,
163
- renderCell: (f) => {
164
- const S = f.row;
165
- return /* @__PURE__ */ i(g, { children: [
166
- /* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: S.name }),
167
- /* @__PURE__ */ e(T, { variant: "XSmall", children: M(
168
- n.goal_projection,
169
- ae(
170
- q(S.projected_to_complete_at || 0),
171
- oe.MONTH_SHORT_YEAR
172
- )
173
- ) })
174
- ] });
175
- },
176
- sortable: !1
177
- },
182
+ disableRipple: !0,
183
+ sx: { ":hover": { backgroundColor: "unset" }, cursor: "default" },
184
+ children: [
185
+ t.track_type !== r.RETIREMENT_TRACK && /* @__PURE__ */ e(
186
+ P,
187
+ {
188
+ sx: {
189
+ alignItems: "center",
190
+ display: "flex",
191
+ justifyContent: "center",
192
+ ".MuiAvatar-root": { height: "16px", width: "16px" }
193
+ },
194
+ children: t.track_type === r.SAVINGS_TRACK ? /* @__PURE__ */ e(tt, { onClick: () => u?.(t), children: /* @__PURE__ */ e(Ue, { color: "primary", size: 24 }) }) : /* @__PURE__ */ e(te, { sx: { bgcolor: "text.primary", height: "16px", width: "16px" }, children: /* @__PURE__ */ e(C, { bold: !0, variant: "caption", children: n + 1 }) })
195
+ }
196
+ ),
197
+ /* @__PURE__ */ e(w, { slotProps: { primary: { variant: "body1" } }, children: /* @__PURE__ */ c(f, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
198
+ /* @__PURE__ */ c(f, { sx: { maxWidth: "70%" }, children: [
199
+ /* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: t.name }),
200
+ /* @__PURE__ */ e(C, { variant: "caption", children: t.is_complete ? i : B(
201
+ d.goal_projection,
202
+ be(
203
+ ee(t.projected_to_complete_at || 0),
204
+ fe.MONTH_SHORT_YEAR
205
+ )
206
+ ) })
207
+ ] }),
208
+ /* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: I(t.amount, "0,0.00") })
209
+ ] }) })
210
+ ]
211
+ }
212
+ ) });
213
+ }, xt = ({ goal: t }) => {
214
+ const { goals: n } = x();
215
+ return /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(
216
+ L,
178
217
  {
179
- align: "right",
180
- field: "amount",
181
- minWidth: 140,
182
- renderCell: (f) => {
183
- const S = f.row;
184
- return /* @__PURE__ */ e(T, { bold: !0, sx: { mr: 12 }, variant: "Body", children: v(S.amount, "0,0.00") });
185
- },
186
- sortable: !1
218
+ disableRipple: !0,
219
+ sx: { ":hover": { backgroundColor: "unset" }, cursor: "default" },
220
+ children: [
221
+ /* @__PURE__ */ e(P, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(Ye, { color: "success", filled: !0, size: 20 }) }),
222
+ /* @__PURE__ */ e(w, { slotProps: { primary: { variant: "body1" } }, children: /* @__PURE__ */ c(f, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
223
+ /* @__PURE__ */ c(f, { children: [
224
+ /* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: t.name }),
225
+ /* @__PURE__ */ e(C, { variant: "caption", children: B(
226
+ n.completed_label,
227
+ be(
228
+ ee(t.completed_at || 0),
229
+ fe.MONTH_SHORT_YEAR
230
+ )
231
+ ) })
232
+ ] }),
233
+ /* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: I(t.amount, "0,0.00") })
234
+ ] }) })
235
+ ]
187
236
  }
188
- ], u = b.map((f) => ({
189
- id: f.guid,
190
- isHovering: !1,
191
- __reorder__: f.name,
192
- ...f
193
- })), _ = ({ oldIndex: f, targetIndex: S }) => {
194
- const C = [...b], I = C[f];
195
- C.splice(S, 0, C.splice(f, 1)[0]);
196
- for (let N = 0; N < C.length; N += 1)
197
- C[N].position = N + 1;
198
- o(C), r(
199
- M(
200
- n.reorder_goals_announcement,
201
- I.name,
202
- f + 1,
203
- S + 1
204
- )
205
- );
206
- }, y = async () => {
207
- await m(b), h(n.alert_goals_reordered), p(!1);
237
+ ) }, t.guid);
238
+ }, Et = ({ trackType: t }) => {
239
+ const { goals: n, common: u } = x(), { loadGoals: d, orderedGoals: _, reorderGoals: i } = N(), m = _.filter((g) => g.track_type === t), p = m.filter(
240
+ (g) => g.track_type === r.SAVINGS_TRACK && !g.has_been_spent || g.track_type !== r.SAVINGS_TRACK && !g.is_complete
241
+ ), s = m.filter(
242
+ (g) => g.track_type === r.SAVINGS_TRACK && g.has_been_spent || g.track_type !== r.SAVINGS_TRACK && g.is_complete
243
+ ), [h, a] = T.useState(!1);
244
+ let o = n.manage_saving_goals, b = n.manage_saving_drawer_title, l = n.manage_saving_title, y = n.manage_saving_description;
245
+ t === r.DEBT_TRACK ? (o = n.manage_debt_goals, b = n.manage_debt_drawer_title, l = n.manage_debt_title, y = n.manage_debt_description) : t === r.RETIREMENT_TRACK && (o = n.manage_retirement_goals, b = n.manage_retirement_drawer_title, l = n.manage_retirement_title, y = n.manage_retirement_description);
246
+ const E = async (g) => {
247
+ const A = [...p], R = A.findIndex((K) => K.guid === g.guid);
248
+ let G = R - 1;
249
+ G < 0 && (G = A.length - 1), A.splice(G, 0, A.splice(R, 1)[0]);
250
+ for (let K = 0; K < A.length; K++)
251
+ A[K].position = K + 1;
252
+ await i(A), await d();
208
253
  };
209
- return /* @__PURE__ */ i(g, { children: [
210
- /* @__PURE__ */ e(w, { children: /* @__PURE__ */ e(K, { onClick: () => p(!0), children: /* @__PURE__ */ e(k, { children: /* @__PURE__ */ i(
211
- g,
212
- {
213
- alignItems: "center",
214
- color: "action.active",
215
- direction: "row",
216
- justifyContent: "space-between",
217
- children: [
218
- /* @__PURE__ */ e(T, { color: "primary.light", variant: "Body", children: n.reorder_goals_title }),
219
- /* @__PURE__ */ e(O, { color: "primary" })
220
- ]
221
- }
222
- ) }) }) }),
223
- /* @__PURE__ */ e(
224
- X,
225
- {
226
- ariaLabelClose: c.close_aria,
227
- isOpen: l,
228
- onClose: () => p(!1),
229
- onPrimaryAction: y,
230
- title: n.reorder_goals_title,
231
- children: /* @__PURE__ */ i(g, { children: [
232
- d,
233
- /* @__PURE__ */ e(P, { id: "reorder-instructions", sx: { my: 12, mx: 24 }, children: n.reorder_goals_description }),
234
- /* @__PURE__ */ e(
235
- Qe,
236
- {
237
- "aria-describedby": "reorder-instructions",
238
- columnHeaderHeight: 0,
239
- columns: a,
240
- disableColumnFilter: !0,
241
- disableColumnMenu: !0,
242
- hideFooter: !0,
243
- onRowOrderChange: _,
244
- rowReordering: !0,
245
- rows: u,
246
- slots: {
247
- rowReorderIcon: () => /* @__PURE__ */ e(Xe, { "aria-label": n.reorder_goals_drag_aria_label, sx: { ml: 12 } })
248
- },
249
- sx: {
250
- "& .MuiDataGrid-columnHeaders": {
251
- borderBottomWidth: 0
252
- }
253
- }
254
- }
255
- )
256
- ] })
257
- }
258
- )
259
- ] });
260
- }, Rt = ({ goal: t, index: n }) => {
261
- const { goals: c } = R(), { percentage: m } = _e(c, t), h = t.goal_type === de.KEEP_BALANCE_BELOW || t.has_been_spent ? c.goal_completed : M(c.goal_percentage_reached, `${m * 100}`);
262
- return /* @__PURE__ */ e(w, { children: /* @__PURE__ */ i(K, { children: [
263
- t.track_type !== s.RETIREMENT_TRACK && /* @__PURE__ */ e(
264
- V,
265
- {
266
- sx: {
267
- alignItems: "center",
268
- display: "flex",
269
- justifyContent: "center",
270
- ".MuiAvatar-root": { height: "16px", width: "16px" }
271
- },
272
- children: /* @__PURE__ */ e(ne, { sx: { bgcolor: "text.primary", height: "16px", width: "16px" }, children: /* @__PURE__ */ e(T, { bold: !0, variant: "XSmall", children: n + 1 }) })
273
- }
274
- ),
275
- /* @__PURE__ */ e(k, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ i(g, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
276
- /* @__PURE__ */ i(g, { children: [
277
- /* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: t.name }),
278
- /* @__PURE__ */ e(T, { variant: "XSmall", children: t.is_complete ? h : M(
279
- c.goal_projection,
280
- ae(
281
- q(t.projected_to_complete_at || 0),
282
- oe.MONTH_SHORT_YEAR
283
- )
284
- ) })
285
- ] }),
286
- /* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: v(t.amount, "0,0.00") })
287
- ] }) })
288
- ] }) });
289
- }, Et = ({ goal: t }) => {
290
- const { goals: n } = R();
291
- return /* @__PURE__ */ e(w, { children: /* @__PURE__ */ i(K, { children: [
292
- /* @__PURE__ */ e(V, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(Ue, { color: "success", filled: !0, size: 20 }) }),
293
- /* @__PURE__ */ e(k, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ i(g, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
294
- /* @__PURE__ */ i(g, { children: [
295
- /* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: t.name }),
296
- /* @__PURE__ */ e(T, { variant: "XSmall", children: M(
297
- n.completed_label,
298
- ae(
299
- q(t.completed_at || 0),
300
- oe.MONTH_SHORT_YEAR
301
- )
302
- ) })
303
- ] }),
304
- /* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: v(t.amount, "0,0.00") })
305
- ] }) })
306
- ] }) }, t.guid);
307
- }, xt = ({ trackType: t }) => {
308
- const { goals: n, common: c } = R(), { orderedGoals: m } = G(), h = m.filter((_) => _.track_type === t), r = h.filter(
309
- (_) => _.track_type === s.SAVINGS_TRACK && !_.has_been_spent || _.track_type !== s.SAVINGS_TRACK && !_.is_complete
310
- ), d = h.filter(
311
- (_) => _.track_type === s.SAVINGS_TRACK && _.has_been_spent || _.track_type !== s.SAVINGS_TRACK && _.is_complete
312
- ), [l, p] = A.useState(!1);
313
- let b = n.manage_saving_goals, o = n.manage_saving_drawer_title, a = n.manage_saving_title, u = n.manage_saving_description;
314
- return t === s.DEBT_TRACK ? (b = n.manage_debt_goals, o = n.manage_debt_drawer_title, a = n.manage_debt_title, u = n.manage_debt_description) : t === s.RETIREMENT_TRACK && (b = n.manage_retirement_goals, o = n.manage_retirement_drawer_title, a = n.manage_retirement_title, u = n.manage_retirement_description), /* @__PURE__ */ i(g, { children: [
315
- /* @__PURE__ */ e(pe, { endIcon: /* @__PURE__ */ e(O, {}), onClick: () => p(!0), children: b }),
254
+ return /* @__PURE__ */ c(f, { children: [
255
+ /* @__PURE__ */ e(me, { endIcon: /* @__PURE__ */ e(z, {}), onClick: () => a(!0), children: o }),
316
256
  /* @__PURE__ */ e(
317
- X,
257
+ q,
318
258
  {
319
- ariaLabelClose: c.close_aria,
320
- isOpen: l,
321
- onClose: () => p(!1),
322
- title: o,
323
- children: /* @__PURE__ */ i(g, { children: [
324
- /* @__PURE__ */ i(g, { m: 24, children: [
325
- /* @__PURE__ */ e(me, { children: a }),
326
- /* @__PURE__ */ e(P, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: u })
259
+ ariaLabelClose: u.close_aria,
260
+ isOpen: h,
261
+ onClose: () => a(!1),
262
+ title: b,
263
+ children: /* @__PURE__ */ c(f, { children: [
264
+ /* @__PURE__ */ c(f, { m: 24, children: [
265
+ /* @__PURE__ */ e(le, { children: l }),
266
+ /* @__PURE__ */ e(Y, { color: "text.secondary", variant: "subtitle2", children: y })
327
267
  ] }),
328
268
  /* @__PURE__ */ e(Ct, { trackType: t }),
329
- /* @__PURE__ */ e(T, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "XSmall", children: n.goal_priority }),
330
- /* @__PURE__ */ i(L, { sx: { bgcolor: "background.paper" }, children: [
331
- r.map((_, y) => {
332
- const f = y >= r.length - 1;
333
- return /* @__PURE__ */ i(g, { children: [
334
- /* @__PURE__ */ e(Rt, { goal: _, index: y }),
335
- /* @__PURE__ */ e(
336
- E,
337
- {
338
- variant: f && t === s.RETIREMENT_TRACK ? "fullWidth" : "inset"
339
- }
340
- )
341
- ] }, `ongoing-${_.guid}`);
342
- }),
343
- t !== s.RETIREMENT_TRACK && /* @__PURE__ */ i(g, { children: [
344
- /* @__PURE__ */ e(St, { goals: r }),
345
- /* @__PURE__ */ e(E, {})
346
- ] })
347
- ] }),
348
- t !== s.RETIREMENT_TRACK && d.length > 0 && /* @__PURE__ */ i(g, { children: [
349
- /* @__PURE__ */ e(T, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "XSmall", children: n.complete_title }),
350
- /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: d.map((_, y) => {
351
- const f = y > r.length - 1;
352
- return /* @__PURE__ */ i(g, { children: [
353
- /* @__PURE__ */ e(Et, { goal: _ }),
354
- /* @__PURE__ */ e(E, { variant: f ? "fullWidth" : "inset" })
355
- ] }, `complete-${_.guid}`);
269
+ /* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "caption", children: n.goal_priority }),
270
+ /* @__PURE__ */ e(O, { sx: { bgcolor: "background.paper" }, children: p.map((g, A) => {
271
+ const R = A >= p.length - 1;
272
+ return /* @__PURE__ */ c(f, { children: [
273
+ /* @__PURE__ */ e(Rt, { goal: g, index: A, onUpClick: E }),
274
+ /* @__PURE__ */ e(v, { variant: R ? "fullWidth" : "inset" })
275
+ ] }, `ongoing-${g.guid}`);
276
+ }) }),
277
+ t !== r.RETIREMENT_TRACK && s.length > 0 && /* @__PURE__ */ c(f, { children: [
278
+ /* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "caption", children: n.complete_title }),
279
+ /* @__PURE__ */ e(O, { sx: { bgcolor: "background.paper" }, children: s.map((g, A) => {
280
+ const R = A > p.length - 1;
281
+ return /* @__PURE__ */ c(f, { children: [
282
+ /* @__PURE__ */ e(xt, { goal: g }),
283
+ /* @__PURE__ */ e(v, { variant: R ? "fullWidth" : "inset" })
284
+ ] }, `complete-${g.guid}`);
356
285
  }) })
357
286
  ] })
358
287
  ] })
@@ -360,23 +289,23 @@ const Tt = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
360
289
  )
361
290
  ] });
362
291
  }, ce = D(({ trackType: t, onAddGoals: n }) => {
363
- const { isMobile: c } = be(), { goals: m } = R(), { selectedAccountGuids: h } = he(), { orderedGoals: r, setSelectedGoal: d } = G(), l = r.filter(
364
- (a) => a.track_type === t && (a.track_type !== s.RETIREMENT_TRACK && h.includes(a.account_guid) || a.track_type === s.RETIREMENT_TRACK)
365
- ), p = l.filter(
366
- (a) => a.track_type === s.SAVINGS_TRACK && !a.has_been_spent || a.track_type !== s.SAVINGS_TRACK && !a.is_complete
367
- ), b = l.filter(
368
- (a) => a.track_type === s.SAVINGS_TRACK && a.has_been_spent || a.track_type !== s.SAVINGS_TRACK && a.is_complete
369
- ), o = t === s.DEBT_TRACK ? m.zero_state_complete_debt : m.zero_state_complete_savings;
370
- return /* @__PURE__ */ i(g, { mt: 16, mx: c ? 24 : 0, children: [
371
- /* @__PURE__ */ i(g, { alignItems: "center", direction: "row", justifyContent: "space-between", mb: 8, children: [
372
- /* @__PURE__ */ e(me, { color: "text.secondary", variant: "Small", children: m.ongoing_title }),
373
- /* @__PURE__ */ e(xt, { trackType: t })
292
+ const { isMobile: u } = he(), { goals: d } = x(), { selectedAccountGuids: _ } = _e(), { orderedGoals: i, setSelectedGoal: m } = N(), p = i.filter(
293
+ (o) => o.track_type === t && (o.track_type !== r.RETIREMENT_TRACK && _.includes(o.account_guid) || o.track_type === r.RETIREMENT_TRACK)
294
+ ), s = p.filter(
295
+ (o) => o.track_type === r.SAVINGS_TRACK && !o.has_been_spent || o.track_type !== r.SAVINGS_TRACK && !o.is_complete
296
+ ), h = p.filter(
297
+ (o) => o.track_type === r.SAVINGS_TRACK && o.has_been_spent || o.track_type !== r.SAVINGS_TRACK && o.is_complete
298
+ ), a = t === r.DEBT_TRACK ? d.zero_state_complete_debt : d.zero_state_complete_savings;
299
+ return /* @__PURE__ */ c(f, { mt: 16, mx: u ? 24 : 0, children: [
300
+ /* @__PURE__ */ c(f, { alignItems: "center", direction: "row", justifyContent: "space-between", mb: 8, children: [
301
+ /* @__PURE__ */ e(le, { color: "text.secondary", variant: "body2", children: d.ongoing_title }),
302
+ /* @__PURE__ */ e(Et, { trackType: t })
374
303
  ] }),
375
- p.length > 0 ? /* @__PURE__ */ e(ge, { container: !0, spacing: 24, children: p.map((a, u, _) => (
304
+ s.length > 0 ? /* @__PURE__ */ e(ge, { container: !0, spacing: 24, children: s.map((o, b, l) => (
376
305
  // Goal should be full width in mobile or if it's the first goal (unless there are 2)
377
- /* @__PURE__ */ e(ge, { xs: c || u === 0 && _.length !== 2 ? 12 : 6, children: /* @__PURE__ */ e(Le, { goal: a, onClick: () => d(a) }, a.guid) }, u)
378
- )) }) : /* @__PURE__ */ i(
379
- g,
306
+ /* @__PURE__ */ e(ge, { size: u || b === 0 && l.length !== 2 ? 12 : 6, children: /* @__PURE__ */ e(Oe, { goal: o, onClick: () => m(o) }, o.guid) }, b)
307
+ )) }) : /* @__PURE__ */ c(
308
+ f,
380
309
  {
381
310
  alignItems: "center",
382
311
  bgcolor: "background.default",
@@ -386,665 +315,658 @@ const Tt = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
386
315
  py: 18,
387
316
  children: [
388
317
  /* @__PURE__ */ e(
389
- P,
318
+ Y,
390
319
  {
391
- sx: (a) => ({
320
+ sx: (o) => ({
392
321
  color: "text.secondary",
393
- [a.breakpoints.down("sm")]: {
322
+ [o.breakpoints.down("sm")]: {
394
323
  px: 10
395
324
  },
396
325
  width: { sm: 381 }
397
326
  }),
398
- variant: "Small",
399
- children: Pe(t, m)
327
+ variant: "body2",
328
+ children: Qe(t, d)
400
329
  }
401
330
  ),
402
- /* @__PURE__ */ e(pe, { onClick: n, sx: { mt: 16, width: { sm: 224 } }, variant: "contained", children: m.add_goals_button })
331
+ /* @__PURE__ */ e(me, { onClick: n, sx: { mt: 16, width: { sm: 224 } }, variant: "contained", children: d.add_goals_button })
403
332
  ]
404
333
  }
405
334
  ),
406
- t !== s.RETIREMENT_TRACK && /* @__PURE__ */ i(g, { gap: 16, mt: 48, children: [
407
- /* @__PURE__ */ e(me, { color: "text.secondary", variant: "Small", children: m.complete_title }),
408
- b.length === 0 && /* @__PURE__ */ e(g, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ e(
409
- P,
335
+ t !== r.RETIREMENT_TRACK && /* @__PURE__ */ c(f, { gap: 16, mt: 48, children: [
336
+ /* @__PURE__ */ e(le, { color: "text.secondary", variant: "body2", children: d.complete_title }),
337
+ h.length === 0 && /* @__PURE__ */ e(f, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ e(
338
+ Y,
410
339
  {
411
- sx: (a) => ({
340
+ sx: (o) => ({
412
341
  color: "text.secondary",
413
342
  width: { sm: 393 },
414
- [a.breakpoints.down("sm")]: {
343
+ [o.breakpoints.down("sm")]: {
415
344
  px: 10
416
345
  }
417
346
  }),
418
- variant: "Small",
419
- children: o
347
+ variant: "body2",
348
+ children: a
420
349
  }
421
350
  ) }),
422
- b.map((a) => /* @__PURE__ */ e(Te, { elevation: 2, children: /* @__PURE__ */ e(Ce, { onClick: () => d(a), children: /* @__PURE__ */ e(Se, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ i(g, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
423
- /* @__PURE__ */ i(g, { alignItems: "center", direction: "row", gap: 6, children: [
424
- /* @__PURE__ */ e(He, { color: "success", fill: !0, name: "check_circle", size: 20 }),
425
- /* @__PURE__ */ e(T, { color: "text.secondary", variant: "Body", children: a.name })
351
+ h.map((o) => /* @__PURE__ */ e(Ce, { elevation: 2, children: /* @__PURE__ */ e(Re, { onClick: () => m(o), children: /* @__PURE__ */ e(xe, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ c(f, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
352
+ /* @__PURE__ */ c(f, { alignItems: "center", direction: "row", gap: 6, children: [
353
+ /* @__PURE__ */ e($e, { color: "success", fill: !0, name: "check_circle", size: 20 }),
354
+ /* @__PURE__ */ e(C, { color: "text.secondary", variant: "body1", children: o.name })
426
355
  ] }),
427
- /* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: v(a.amount, "0,0.00") })
428
- ] }) }) }) }, a.guid))
356
+ /* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: I(o.amount, "0,0.00") })
357
+ ] }) }) }) }, o.guid))
429
358
  ] })
430
359
  ] });
431
- }), vt = ({ goalType: t, onClick: n }) => {
432
- const { goals: c } = R(), { bgcolor: m, icon: h, label: r, description: d, subTypes: l, type: p } = t, [b, o] = A.useState(!1), a = l.length > 0;
433
- return /* @__PURE__ */ e(g, { children: /* @__PURE__ */ i(L, { sx: { bgcolor: "background.paper" }, children: [
434
- /* @__PURE__ */ e(w, { children: /* @__PURE__ */ i(
435
- K,
360
+ }), St = ({ goalType: t, onClick: n }) => {
361
+ const { goals: u } = x(), { bgcolor: d, icon: _, label: i, description: m, subTypes: p, type: s } = t, [h, a] = T.useState(!1), o = p.length > 0;
362
+ return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ c(O, { sx: { bgcolor: "background.paper" }, children: [
363
+ /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(
364
+ L,
436
365
  {
437
- onClick: a ? () => o(!b) : () => n(
438
- p === s.RETIREMENT_TRACK ? c.retirement : "",
439
- p === s.RETIREMENT_TRACK ? Z.RETIREMENT : Z.OTHER,
440
- p
366
+ onClick: o ? () => a(!h) : () => n(
367
+ s === r.RETIREMENT_TRACK ? u.retirement : "",
368
+ s === r.RETIREMENT_TRACK ? U.RETIREMENT : U.OTHER,
369
+ s
441
370
  ),
442
371
  children: [
443
- /* @__PURE__ */ e(V, { children: /* @__PURE__ */ e(ne, { sx: { bgcolor: m }, variant: "rounded", children: /* @__PURE__ */ e(ye, { name: h, sx: { color: "grey.900" } }) }) }),
444
- /* @__PURE__ */ e(k, { primary: r, secondary: d, sx: { mr: 24 } }),
445
- !a && /* @__PURE__ */ e(O, {}),
446
- a && (b ? /* @__PURE__ */ e(Ye, {}) : /* @__PURE__ */ e(Ze, {}))
372
+ /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(te, { sx: { bgcolor: d }, variant: "rounded", children: /* @__PURE__ */ e(ye, { name: _, sx: { color: "grey.900" } }) }) }),
373
+ /* @__PURE__ */ e(w, { primary: i, secondary: m, sx: { mr: 24 } }),
374
+ !o && /* @__PURE__ */ e(z, {}),
375
+ o && (h ? /* @__PURE__ */ e(Ze, {}) : /* @__PURE__ */ e(qe, {}))
447
376
  ]
448
377
  }
449
378
  ) }),
450
- /* @__PURE__ */ e(E, { variant: "inset" }),
451
- a && /* @__PURE__ */ e(nt, { in: b, children: /* @__PURE__ */ e(L, { sx: { bgcolor: "background.default" }, children: l.map((u, _) => /* @__PURE__ */ e(w, { sx: { pl: 48 }, children: /* @__PURE__ */ i(K, { onClick: () => n(u.label, u.metaType, p), children: [
452
- /* @__PURE__ */ e(at, { sx: { mr: 8 }, children: /* @__PURE__ */ e(ye, { name: u.icon }) }),
379
+ /* @__PURE__ */ e(v, { variant: "inset" }),
380
+ o && /* @__PURE__ */ e(nt, { in: h, children: /* @__PURE__ */ e(O, { sx: { bgcolor: "background.default" }, children: p.map((b, l) => /* @__PURE__ */ e(k, { sx: { pl: 48 }, children: /* @__PURE__ */ c(L, { onClick: () => n(b.label, b.metaType, s), children: [
381
+ /* @__PURE__ */ e(ot, { sx: { mr: 8 }, children: /* @__PURE__ */ e(ye, { name: b.icon }) }),
453
382
  /* @__PURE__ */ e(
454
- k,
383
+ w,
455
384
  {
456
- primary: u.label,
457
- primaryTypographyProps: { variant: "Body" }
385
+ primary: b.label,
386
+ slotProps: { primary: { variant: "body1" } }
458
387
  }
459
388
  ),
460
- /* @__PURE__ */ e(O, {})
461
- ] }) }, _)) }) })
389
+ /* @__PURE__ */ e(z, {})
390
+ ] }) }, l)) }) })
462
391
  ] }) });
463
392
  }, Be = ({
464
393
  accounts: t,
465
394
  isOpen: n,
466
- onClose: c,
467
- onSave: m,
468
- title: h
395
+ onClose: u,
396
+ onSave: d,
397
+ title: _
469
398
  }) => {
470
- const { goals: r, common: d } = R(), { config: l } = Ge(), [p, b] = A.useState([]), o = (a) => {
471
- const u = p.findIndex((y) => y.guid === a.guid), _ = [...p];
472
- u >= 0 ? _.splice(u, 1) : _.push(a), b(_);
399
+ const { goals: i, common: m } = x(), { config: p } = pe(), [s, h] = T.useState([]), a = (o) => {
400
+ const b = s.findIndex((y) => y.guid === o.guid), l = [...s];
401
+ b >= 0 ? l.splice(b, 1) : l.push(o), h(l);
473
402
  };
474
- return /* @__PURE__ */ i(
475
- X,
403
+ return /* @__PURE__ */ c(
404
+ q,
476
405
  {
477
- ariaLabelClose: d.close_aria,
406
+ ariaLabelClose: m.close_aria,
478
407
  isOpen: n,
479
- onClose: c,
480
- onPrimaryAction: () => m(p),
481
- title: h,
408
+ onClose: u,
409
+ onPrimaryAction: () => d(s),
410
+ title: _,
482
411
  children: [
483
- /* @__PURE__ */ e(P, { color: "text.secondary", sx: { mx: 24, my: 12 }, children: r.select_debt_accounts_description }),
484
- /* @__PURE__ */ i(L, { sx: { bgcolor: "background.white" }, children: [
485
- /* @__PURE__ */ e(E, { variant: "fullWidth" }),
486
- t.map((a, u) => /* @__PURE__ */ i(A.Fragment, { children: [
487
- /* @__PURE__ */ e(w, { children: /* @__PURE__ */ i(K, { onClick: () => o(a), children: [
488
- /* @__PURE__ */ e(V, { children: /* @__PURE__ */ e(
489
- te,
412
+ /* @__PURE__ */ c(O, { sx: { bgcolor: "background.white" }, children: [
413
+ /* @__PURE__ */ e(v, { variant: "fullWidth" }),
414
+ t.map((o, b) => /* @__PURE__ */ c(T.Fragment, { children: [
415
+ /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(L, { onClick: () => a(o), children: [
416
+ /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
417
+ X,
490
418
  {
491
- alt: a?.name || "",
492
- institutionGuid: a?.institution_guid || ""
419
+ alt: o?.name || "",
420
+ institutionGuid: o?.institution_guid || ""
493
421
  }
494
422
  ) }),
495
423
  /* @__PURE__ */ e(
496
- k,
424
+ w,
497
425
  {
498
- primary: ke(a, {
499
- allowNickname: l?.show_account_nicknames_in_master
426
+ primary: we(o, {
427
+ allowNickname: p?.show_account_nicknames_in_master
500
428
  }),
501
- secondary: v(a.balance || 0, "0,0.00")
429
+ secondary: I(o.balance || 0, "0,0.00")
502
430
  }
503
431
  ),
504
- /* @__PURE__ */ e(ot, { checked: p.some((_) => _.guid === a.guid) })
432
+ /* @__PURE__ */ e(at, { checked: s.some((l) => l.guid === o.guid) })
505
433
  ] }) }),
506
- /* @__PURE__ */ e(E, { variant: u < t.length - 1 ? "inset" : "fullWidth" })
507
- ] }, a.guid))
434
+ /* @__PURE__ */ e(v, { variant: b < t.length - 1 ? "inset" : "fullWidth" })
435
+ ] }, o.guid))
508
436
  ] }),
509
- /* @__PURE__ */ e(
510
- Ae,
437
+ p.show_connections_widget_in_master && /* @__PURE__ */ e(
438
+ De,
511
439
  {
512
- description: r.connect_description,
513
- label: r.connect_button,
514
- title: r.connect_title
440
+ description: i.connect_description,
441
+ label: i.connect_button,
442
+ title: i.connect_title
515
443
  }
516
444
  )
517
445
  ]
518
446
  }
519
447
  );
520
- }, Gt = ({ onClose: t }) => {
521
- const { goals: n } = R(), { addGoal: c, debtGoals: m, setAlert: h, setSelectedGoal: r } = G(), { config: d } = Ge(), { visibleDebtAccounts: l } = j(), [p, b] = A.useState(!1), o = Ve(n), a = (_, y, f) => {
522
- f === s.DEBT_TRACK ? b(!0) : r({
448
+ }, vt = ({ onClose: t }) => {
449
+ const { goals: n } = x(), { addGoal: u, debtGoals: d, setAlert: _, setSelectedGoal: i } = N(), { config: m } = pe(), { visibleDebtAccounts: p } = j(), [s, h] = T.useState(!1), a = Xe(n), o = (l, y, E) => {
450
+ E === r.DEBT_TRACK ? h(!0) : i({
523
451
  amount: 0,
524
452
  current_amount: 0,
525
453
  goal_type: de.SAVE_AMOUNT,
526
454
  initial_amount: 0,
527
455
  meta_type: y,
528
- name: _,
529
- track_type: f
456
+ name: l,
457
+ track_type: E
530
458
  });
531
- }, u = async (_) => {
532
- for (const y of _) {
533
- let f = Z.CREDIT_CARD;
534
- y.account_type === fe.LOAN ? f = Z.LOANS : y.account_type === fe.LINE_OF_CREDIT && (f = Z.LINE_OF_CREDIT), await c({
459
+ }, b = async (l) => {
460
+ for (const y of l) {
461
+ let E = U.CREDIT_CARD;
462
+ y.account_type === Ae.LOAN ? E = U.LOANS : y.account_type === Ae.LINE_OF_CREDIT && (E = U.LINE_OF_CREDIT), await u({
535
463
  account_guid: y.guid,
536
464
  amount: 0,
537
465
  current_amount: 0,
538
466
  goal_type: de.KEEP_BALANCE_BELOW,
539
467
  initial_amount: y.balance || 0,
540
468
  interest_rate: y.interest_rate || 0,
541
- meta_type: f,
469
+ meta_type: E,
542
470
  monthly_payment: y.minimum_payment || 0,
543
- name: ke(y, {
544
- allowNickname: d?.show_account_nicknames_in_master
471
+ name: we(y, {
472
+ allowNickname: m?.show_account_nicknames_in_master
545
473
  }),
546
- track_type: s.DEBT_TRACK
547
- }), h(n.alert_goal_added);
474
+ track_type: r.DEBT_TRACK
475
+ }), _(n.alert_goal_added);
548
476
  }
549
- b(!1), t?.(s.DEBT_TRACK);
477
+ h(!1), t?.(r.DEBT_TRACK);
550
478
  };
551
- return /* @__PURE__ */ i(g, { children: [
552
- /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: o.map((_, y) => /* @__PURE__ */ e(vt, { goalType: _, onClick: a }, y)) }),
479
+ return /* @__PURE__ */ c(f, { children: [
480
+ /* @__PURE__ */ e(O, { sx: { bgcolor: "background.paper" }, children: a.map((l, y) => /* @__PURE__ */ e(St, { goalType: l, onClick: o }, y)) }),
553
481
  /* @__PURE__ */ e(
554
482
  Be,
555
483
  {
556
- accounts: l.filter((_) => !m.find((y) => y.account_guid === _.guid)),
557
- isOpen: p,
558
- onClose: () => b(!1),
559
- onSave: u,
484
+ accounts: p.filter((l) => !d.find((y) => y.account_guid === l.guid)),
485
+ isOpen: s,
486
+ onClose: () => h(!1),
487
+ onSave: b,
560
488
  title: n.select_debt_accounts_title
561
489
  }
562
490
  )
563
491
  ] });
564
- }, Oe = ({ account: t }) => {
565
- const n = rt(t);
566
- return /* @__PURE__ */ i(w, { sx: { bgcolor: "background.paper", p: 24 }, children: [
567
- /* @__PURE__ */ e(V, { children: /* @__PURE__ */ e(
568
- te,
492
+ }, We = ({ account: t }) => {
493
+ const n = it(t);
494
+ return /* @__PURE__ */ c(k, { sx: { bgcolor: "background.paper", p: 24 }, children: [
495
+ /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
496
+ X,
569
497
  {
570
498
  alt: t.name || "",
571
499
  institutionGuid: t.institution_guid || ""
572
500
  }
573
501
  ) }),
574
502
  /* @__PURE__ */ e(
575
- k,
503
+ w,
576
504
  {
577
505
  primary: n,
578
- secondary: v(t.balance || 0, "0,0.00")
506
+ secondary: I(t.balance || 0, "0,0.00")
579
507
  }
580
508
  )
581
509
  ] });
582
510
  }, It = D(({ goal: t }) => {
583
- const { goals: n } = R(), { setAlert: c, setSelectedGoal: m, updateGoal: h, updateRetirementGoal: r } = G(), [d, l] = A.useState(t.amount), p = !t.guid, b = d < 0 || d > 9999999999e-2, o = t.track_type === s.SAVINGS_TRACK && t.has_been_spent || t.track_type !== s.SAVINGS_TRACK && t.is_complete, a = async () => {
584
- const _ = { ...t, amount: d };
585
- t.amount = d, p ? m(_) : (t.track_type !== s.RETIREMENT_TRACK ? await h(_) : await r(_), c(n.alert_goal_updated_amount));
586
- }, u = () => {
511
+ const { goals: n } = x(), { setAlert: u, setSelectedGoal: d, updateGoal: _, updateRetirementGoal: i } = N(), [m, p] = T.useState(t.amount), s = !t.guid, h = m < 0 || m > 9999999999e-2, a = t.track_type === r.SAVINGS_TRACK && t.has_been_spent || t.track_type !== r.SAVINGS_TRACK && t.is_complete, o = async () => {
512
+ const l = { ...t, amount: m };
513
+ t.amount = m, s ? d(l) : (t.track_type !== r.RETIREMENT_TRACK ? await _(l) : await i(l), u(n.alert_goal_updated_amount));
514
+ }, b = () => {
587
515
  setTimeout(() => {
588
- l(t.amount);
516
+ p(t.amount);
589
517
  }, 250);
590
518
  };
591
519
  return /* @__PURE__ */ e(
592
- J,
520
+ Z,
593
521
  {
594
- isDisabled: o,
595
- isSaveDisabled: b,
522
+ isDisabled: a,
523
+ isSaveDisabled: h,
596
524
  label: n.details_amount_to_save,
597
- onCancel: u,
598
- onSave: a,
525
+ onCancel: b,
526
+ onSave: o,
599
527
  primaryText: n.details_amount_to_save,
600
- secondaryText: v(t.amount, "0,0"),
601
- zeroStateText: p && t.amount === 0 ? n.add_amount : void 0,
528
+ secondaryText: I(t.amount, "0,0"),
529
+ zeroStateText: s && t.amount === 0 ? n.add_amount : void 0,
602
530
  children: /* @__PURE__ */ e(
603
- we,
531
+ ke,
604
532
  {
605
- amount: d,
533
+ amount: m,
606
534
  autoFocus: !0,
607
- error: b,
535
+ error: h,
608
536
  fullWidth: !0,
609
537
  minAmount: 0,
610
- setAmount: (_) => l(isNaN(Number(_)) ? d : Number(_)),
611
- sx: { ".MuiTypography-Body": { p: 0 } }
538
+ setAmount: (l) => p(isNaN(Number(l)) ? m : Number(l)),
539
+ sx: { ".MuiTypography-body1": { p: 0 } }
612
540
  }
613
541
  )
614
542
  }
615
543
  );
616
- }), Nt = ({ goal: t }) => {
617
- const { visibleCheckingAccounts: n, visibleSavingsAccounts: c } = j(), { accounts: m, goals: h } = R(), { setAlert: r, setSelectedGoal: d, updateGoal: l } = G(), p = !t.guid, [b, o] = A.useState(!1), a = async ({ balance: u, guid: _ }) => {
618
- const y = { ...t, account_guid: _, current_amount: u || 0 };
619
- p ? d(y) : (await l(y), r(h.alert_account_changed)), o(!1);
544
+ }), Gt = ({ goal: t }) => {
545
+ const { visibleCheckingAccounts: n, visibleSavingsAccounts: u } = j(), { accounts: d, goals: _ } = x(), { config: i } = pe(), { setAlert: m, setSelectedGoal: p, updateGoal: s } = N(), h = !t.guid, [a, o] = T.useState(!1), b = async ({ balance: l, guid: y }) => {
546
+ const E = { ...t, account_guid: y, current_amount: l || 0 };
547
+ h ? p(E) : (await s(E), m(_.alert_account_changed)), o(!1);
620
548
  };
621
- return /* @__PURE__ */ i(g, { children: [
622
- p && !t.account_guid ? /* @__PURE__ */ e(w, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ i(K, { onClick: () => o(!0), children: [
623
- /* @__PURE__ */ e(k, { children: /* @__PURE__ */ i(g, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
624
- /* @__PURE__ */ e(ve, { filled: !0 }),
625
- h.details_add_account
549
+ return /* @__PURE__ */ c(f, { children: [
550
+ h && !t.account_guid ? /* @__PURE__ */ e(k, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ c(L, { onClick: () => o(!0), children: [
551
+ /* @__PURE__ */ e(w, { children: /* @__PURE__ */ c(f, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
552
+ /* @__PURE__ */ e(Ie, { filled: !0 }),
553
+ _.details_add_account
626
554
  ] }) }),
627
- /* @__PURE__ */ e(O, { color: "primary" })
628
- ] }) }) : /* @__PURE__ */ i(g, { sx: { gap: 8, my: 24, mx: 24 }, children: [
629
- /* @__PURE__ */ e(pe, { onClick: () => o(!0), variant: "text", children: h.details_change_account }),
630
- /* @__PURE__ */ e(
631
- T,
632
- {
633
- color: "text.secondary",
634
- sx: { textAlign: "center", whiteSpace: "wrap" },
635
- variant: "Paragraph",
636
- children: M(h.details_change_account_description, t.name)
637
- }
638
- )
555
+ /* @__PURE__ */ e(z, { color: "primary" })
556
+ ] }) }) : /* @__PURE__ */ c(f, { sx: { gap: 8, my: 24, mx: 24 }, children: [
557
+ /* @__PURE__ */ e(me, { onClick: () => o(!0), variant: "text", children: _.details_change_account }),
558
+ /* @__PURE__ */ e(C, { color: "text.secondary", sx: { textAlign: "center" }, variant: "subtitle1", children: B(_.details_change_account_description, t.name) })
639
559
  ] }),
640
- /* @__PURE__ */ e(X, { isOpen: b, onClose: () => o(!1), title: h.details_change_account, children: /* @__PURE__ */ i(g, { children: [
641
- n.length > 0 && /* @__PURE__ */ e(T, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: m.account_types[1] }),
642
- /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: n.map((u) => /* @__PURE__ */ e(w, { children: /* @__PURE__ */ i(K, { onClick: () => a(u), children: [
643
- /* @__PURE__ */ e(V, { children: /* @__PURE__ */ e(
644
- te,
560
+ /* @__PURE__ */ e(q, { isOpen: a, onClose: () => o(!1), title: _.details_change_account, children: /* @__PURE__ */ c(f, { children: [
561
+ n.length > 0 && /* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: d.account_types[1] }),
562
+ /* @__PURE__ */ e(O, { sx: { bgcolor: "background.paper" }, children: n.map((l) => /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(L, { onClick: () => b(l), children: [
563
+ /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
564
+ X,
645
565
  {
646
- alt: u?.name || "",
647
- institutionGuid: u?.institution_guid || ""
566
+ alt: l?.name || "",
567
+ institutionGuid: l?.institution_guid || ""
648
568
  }
649
569
  ) }),
650
570
  /* @__PURE__ */ e(
651
- k,
571
+ w,
652
572
  {
653
- primary: u?.name || u?.feed_name,
654
- secondary: v(u?.balance || 0, "0,0.00")
573
+ primary: l?.name || l?.feed_name,
574
+ secondary: I(l?.balance || 0, "0,0.00")
655
575
  }
656
576
  ),
657
- /* @__PURE__ */ e(O, {})
658
- ] }) }, u.guid)) }),
659
- c.length > 0 && /* @__PURE__ */ e(T, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: m.account_types[2] }),
660
- /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: c.map((u) => /* @__PURE__ */ e(w, { children: /* @__PURE__ */ i(K, { onClick: () => a(u), children: [
661
- /* @__PURE__ */ e(V, { children: /* @__PURE__ */ e(
662
- te,
577
+ /* @__PURE__ */ e(z, {})
578
+ ] }) }, l.guid)) }),
579
+ u.length > 0 && /* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: d.account_types[2] }),
580
+ /* @__PURE__ */ e(O, { sx: { bgcolor: "background.paper" }, children: u.map((l) => /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(L, { onClick: () => b(l), children: [
581
+ /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
582
+ X,
663
583
  {
664
- alt: u?.name || "",
665
- institutionGuid: u?.institution_guid || ""
584
+ alt: l?.name || "",
585
+ institutionGuid: l?.institution_guid || ""
666
586
  }
667
587
  ) }),
668
588
  /* @__PURE__ */ e(
669
- k,
589
+ w,
670
590
  {
671
- primary: u?.name || u?.feed_name,
672
- secondary: v(u?.balance || 0, "0,0.00")
591
+ primary: l?.name || l?.feed_name,
592
+ secondary: I(l?.balance || 0, "0,0.00")
673
593
  }
674
594
  ),
675
- /* @__PURE__ */ e(O, {})
676
- ] }) }, u.guid)) }),
677
- /* @__PURE__ */ e(
678
- Ae,
595
+ /* @__PURE__ */ e(z, {})
596
+ ] }) }, l.guid)) }),
597
+ i.show_connections_widget_in_master && /* @__PURE__ */ e(
598
+ De,
679
599
  {
680
- description: h.connect_description,
681
- label: h.connect_button,
682
- title: h.connect_title
600
+ description: _.connect_description,
601
+ label: _.connect_button,
602
+ title: _.connect_title
683
603
  }
684
604
  )
685
605
  ] }) })
686
606
  ] });
687
- }, wt = D(({ goal: t }) => {
688
- const { goals: n } = R(), { setAlert: c, setSelectedGoal: m, updateGoal: h } = G(), [r, d] = A.useState(t.name), l = !t.guid, p = t.track_type === s.SAVINGS_TRACK && t.has_been_spent || t.track_type !== s.SAVINGS_TRACK && t.is_complete, b = async () => {
689
- const a = { ...t, name: r };
690
- t.name = r, l ? m(a) : (await h(a), c(n.alert_goal_updated_name));
691
- }, o = () => {
607
+ }, Nt = D(({ goal: t }) => {
608
+ const { goals: n } = x(), { setAlert: u, setSelectedGoal: d, updateGoal: _ } = N(), [i, m] = T.useState(t.name), p = !t.guid, s = t.track_type === r.SAVINGS_TRACK && t.has_been_spent || t.track_type !== r.SAVINGS_TRACK && t.is_complete, h = async () => {
609
+ const o = { ...t, name: i };
610
+ t.name = i, p ? d(o) : (await _(o), u(n.alert_goal_updated_name));
611
+ }, a = () => {
692
612
  setTimeout(() => {
693
- d(t.name);
613
+ m(t.name);
694
614
  }, 250);
695
615
  };
696
616
  return /* @__PURE__ */ e(
697
- J,
617
+ Z,
698
618
  {
699
- isDisabled: p,
700
- isSaveDisabled: !r,
619
+ isDisabled: s,
620
+ isSaveDisabled: !i,
701
621
  label: n.details_goal_name,
702
- onCancel: o,
703
- onSave: b,
622
+ onCancel: a,
623
+ onSave: h,
704
624
  primaryText: n.details_goal_name,
705
625
  secondaryText: t.name,
706
626
  children: /* @__PURE__ */ e(
707
- De,
627
+ Ke,
708
628
  {
709
- error: !r,
629
+ error: !i,
710
630
  fullWidth: !0,
711
631
  label: n.details_goal_name,
712
- onChange: (a) => d(a.target.value),
713
- value: r
632
+ onChange: (o) => m(o.target.value),
633
+ value: i
714
634
  }
715
635
  )
716
636
  }
717
637
  );
718
638
  }), kt = ({ goal: t }) => {
719
- const { goals: n } = R(), { setAlert: c, setSelectedGoal: m, updateRetirementGoal: h } = G(), [r, d] = A.useState(t.retirement_age || 65), l = !t.guid, p = async () => {
720
- if (!isNaN(r)) {
721
- const a = { ...t, retirement_age: r };
722
- t.retirement_age = r, l ? m(a) : (await h(a), c(n.alert_goal_updated_retirement_age));
639
+ const { goals: n } = x(), { setAlert: u, setSelectedGoal: d, updateRetirementGoal: _ } = N(), [i, m] = T.useState(t.retirement_age || 65), p = !t.guid, s = async () => {
640
+ if (!isNaN(i)) {
641
+ const o = { ...t, retirement_age: i };
642
+ t.retirement_age = i, p ? d(o) : (await _(o), u(n.alert_goal_updated_retirement_age));
723
643
  }
724
- }, b = () => {
644
+ }, h = () => {
725
645
  setTimeout(() => {
726
- d(t.retirement_age || 65);
646
+ m(t.retirement_age || 65);
727
647
  }, 250);
728
- }, o = !r || isNaN(r) || r < 20 || r >= 100;
648
+ }, a = !i || isNaN(i) || i < 20 || i >= 100;
729
649
  return /* @__PURE__ */ e(
730
- J,
650
+ Z,
731
651
  {
732
652
  isDisabled: t.is_complete,
733
- isSaveDisabled: o,
653
+ isSaveDisabled: a,
734
654
  label: n.details_retirement_age,
735
- onCancel: b,
736
- onSave: p,
655
+ onCancel: h,
656
+ onSave: s,
737
657
  primaryText: n.details_retirement_age,
738
658
  secondaryText: `${t.retirement_age}`,
739
- zeroStateText: l && !t.retirement_age ? n.add_age : void 0,
659
+ zeroStateText: p && !t.retirement_age ? n.add_age : void 0,
740
660
  children: /* @__PURE__ */ e(
741
- De,
661
+ Ke,
742
662
  {
743
- error: o,
663
+ error: a,
744
664
  fullWidth: !0,
745
665
  label: n.details_retirement_age,
746
- onChange: (a) => d(Number(a.target.value)),
747
- value: isNaN(r) ? "" : r
666
+ onChange: (o) => m(Number(o.target.value)),
667
+ value: isNaN(i) ? "" : i
748
668
  }
749
669
  )
750
670
  }
751
671
  );
752
- }, Dt = D(({ goal: t }) => {
753
- const { goals: n } = R(), { user: c, updateUser: m } = Ie(), { setAlert: h } = G(), [r, d] = A.useState(q(c.birthday ?? 0)), [l, p] = A.useState(null), b = t.is_complete, o = async () => {
754
- r && dt(r) && (await m({ ...c, birthday: ct(r) }), h(n.alert_goal_updated_birthday));
672
+ }, wt = D(({ goal: t }) => {
673
+ const { goals: n } = x(), { user: u, updateUser: d } = Ge(), { setAlert: _ } = N(), [i, m] = T.useState(ee(u.birthday ?? 0)), [p, s] = T.useState(null), h = t.is_complete, a = async () => {
674
+ i && dt(i) && (await d({ ...u, birthday: lt(i) }), _(n.alert_goal_updated_birthday));
755
675
  };
756
676
  return /* @__PURE__ */ e(
757
- J,
677
+ Z,
758
678
  {
759
- isDisabled: b,
760
- isSaveDisabled: !!l,
679
+ isDisabled: h,
680
+ isSaveDisabled: !!p,
761
681
  label: n.details_birthday,
762
- onSave: o,
682
+ onSave: a,
763
683
  primaryText: n.details_birthday,
764
- secondaryText: `${ae(q(c.birthday ?? 0), oe.MONTH_DAY_YEAR)}`,
765
- zeroStateText: !t.guid && !c.birthday ? n.add_birthday : void 0,
766
- children: /* @__PURE__ */ e(ut, { dateAdapter: mt, children: /* @__PURE__ */ e(
767
- _t,
684
+ secondaryText: `${be(ee(u.birthday ?? 0), fe.MONTH_DAY_YEAR)}`,
685
+ zeroStateText: !t.guid && !u.birthday ? n.add_birthday : void 0,
686
+ children: /* @__PURE__ */ e(_t, { dateAdapter: mt, children: /* @__PURE__ */ e(
687
+ ut,
768
688
  {
769
689
  label: n.details_birthday,
770
- onChange: d,
771
- onError: (a) => p(a),
690
+ onChange: m,
691
+ onError: (o) => s(o),
772
692
  sx: { width: "100%" },
773
- value: r
693
+ value: i
774
694
  }
775
695
  ) })
776
696
  }
777
697
  );
778
- }), Kt = ({ goal: t }) => {
779
- const { goals: n } = R(), { visibleRetirementAccounts: c } = j(), {
780
- addRetirementGoalAccount: m,
781
- newRetirementGoalAccounts: h,
782
- retirementGoalAccounts: r,
783
- selectedGoal: d,
784
- setAlert: l,
785
- setNewRetirementGoalAccounts: p,
786
- setSelectedGoal: b
787
- } = G(), [o, a] = A.useState(!1), u = !t.guid, _ = c.filter(
788
- (S) => u ? h.find((C) => C.account_guid === S.guid) : r.find((C) => C.account_guid === S.guid)
789
- ), y = c.filter(
790
- (S) => !r.find((C) => C.account_guid === S.guid)
791
- ), f = async (S) => {
792
- const C = S.map((I) => ({
793
- account_guid: I.guid,
698
+ }), Dt = ({ goal: t }) => {
699
+ const { goals: n } = x(), { visibleRetirementAccounts: u } = j(), {
700
+ addRetirementGoalAccount: d,
701
+ newRetirementGoalAccounts: _,
702
+ retirementGoalAccounts: i,
703
+ selectedGoal: m,
704
+ setAlert: p,
705
+ setNewRetirementGoalAccounts: s,
706
+ setSelectedGoal: h
707
+ } = N(), [a, o] = T.useState(!1), b = !t.guid, l = u.filter(
708
+ (g) => b ? _.find((A) => A.account_guid === g.guid) : i.find((A) => A.account_guid === g.guid)
709
+ ), y = u.filter(
710
+ (g) => !i.find((A) => A.account_guid === g.guid)
711
+ ), E = async (g) => {
712
+ const A = g.map((R) => ({
713
+ account_guid: R.guid,
794
714
  retirement_goal_guid: t.guid
795
715
  }));
796
- if (u)
797
- p(C);
716
+ if (b)
717
+ s(A);
798
718
  else
799
- for (const I of C)
800
- await m(I), l(n.alert_account_added);
801
- b({
802
- ...d,
803
- current_amount: S.reduce((I, N) => I + (N.balance || 0), 0)
804
- }), a(!1);
719
+ for (const R of A)
720
+ await d(R), p(n.alert_account_added);
721
+ h({
722
+ ...m,
723
+ current_amount: g.reduce((R, G) => R + (G.balance || 0), 0)
724
+ }), o(!1);
805
725
  };
806
- return /* @__PURE__ */ i(g, { children: [
807
- _.map((S) => /* @__PURE__ */ i(g, { children: [
808
- /* @__PURE__ */ e(Oe, { account: S }),
809
- /* @__PURE__ */ e(E, {})
810
- ] }, S.guid)),
811
- /* @__PURE__ */ e(w, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ i(K, { onClick: () => a(!0), children: [
812
- /* @__PURE__ */ e(k, { children: /* @__PURE__ */ i(g, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
813
- /* @__PURE__ */ e(ve, { filled: !0 }),
726
+ return /* @__PURE__ */ c(f, { children: [
727
+ l.map((g) => /* @__PURE__ */ c(f, { children: [
728
+ /* @__PURE__ */ e(We, { account: g }),
729
+ /* @__PURE__ */ e(v, {})
730
+ ] }, g.guid)),
731
+ /* @__PURE__ */ e(k, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ c(L, { onClick: () => o(!0), children: [
732
+ /* @__PURE__ */ e(w, { children: /* @__PURE__ */ c(f, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
733
+ /* @__PURE__ */ e(Ie, { filled: !0 }),
814
734
  n.details_add_account
815
735
  ] }) }),
816
- /* @__PURE__ */ e(O, { color: "primary" })
736
+ /* @__PURE__ */ e(z, { color: "primary" })
817
737
  ] }) }),
818
738
  /* @__PURE__ */ e(
819
739
  Be,
820
740
  {
821
741
  accounts: y,
822
- isOpen: o,
823
- onClose: () => a(!1),
824
- onSave: f,
742
+ isOpen: a,
743
+ onClose: () => o(!1),
744
+ onSave: E,
825
745
  title: n.add_select_accounts
826
746
  }
827
747
  )
828
748
  ] });
829
- }, Mt = D(({ goal: t }) => {
830
- const { goals: n } = R(), { visibleAccounts: c } = j(), m = A.useMemo(
831
- () => c.find((d) => d.guid === t.account_guid),
832
- [c, t]
833
- ), h = t.track_type;
834
- let r = n.details_save_title;
835
- return t.track_type === s.DEBT_TRACK ? r = n.details_debt_title : t.track_type === s.RETIREMENT_TRACK && (r = n.details_retirement_title), /* @__PURE__ */ i(g, { children: [
836
- /* @__PURE__ */ i(g, { mx: 24, children: [
837
- /* @__PURE__ */ e(T, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "XSmall", children: r }),
838
- /* @__PURE__ */ e(Le, { goal: t, isInDrawer: !0 }),
839
- /* @__PURE__ */ e(T, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "XSmall", children: n.details_title })
749
+ }, Kt = D(({ goal: t }) => {
750
+ const { goals: n } = x(), { visibleAccounts: u } = j(), d = T.useMemo(
751
+ () => u.find((m) => m.guid === t.account_guid),
752
+ [u, t]
753
+ ), _ = t.track_type;
754
+ let i = n.details_save_title;
755
+ return t.track_type === r.DEBT_TRACK ? i = n.details_debt_title : t.track_type === r.RETIREMENT_TRACK && (i = n.details_retirement_title), /* @__PURE__ */ c(f, { children: [
756
+ /* @__PURE__ */ c(f, { mx: 24, children: [
757
+ /* @__PURE__ */ e(C, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "caption", children: i }),
758
+ /* @__PURE__ */ e(Oe, { goal: t, isInDrawer: !0 }),
759
+ /* @__PURE__ */ e(C, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "caption", children: n.details_title })
840
760
  ] }),
841
- /* @__PURE__ */ i(L, { sx: { bgcolor: "background.paper" }, children: [
842
- h !== s.RETIREMENT_TRACK ? /* @__PURE__ */ e(wt, { goal: t }) : /* @__PURE__ */ e(w, { sx: { px: 24 }, children: /* @__PURE__ */ e(
843
- k,
761
+ /* @__PURE__ */ c(O, { sx: { bgcolor: "background.paper" }, children: [
762
+ _ !== r.RETIREMENT_TRACK ? /* @__PURE__ */ e(Nt, { goal: t }) : /* @__PURE__ */ e(k, { sx: { px: 24 }, children: /* @__PURE__ */ e(
763
+ w,
844
764
  {
845
- primary: /* @__PURE__ */ i(g, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
846
- /* @__PURE__ */ e(T, { variant: "body1", children: n.details_goal_name }),
847
- /* @__PURE__ */ e(T, { bold: !0, color: "text.primary", sx: { mr: 4 }, variant: "body1", children: n.retirement })
765
+ primary: /* @__PURE__ */ c(f, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
766
+ /* @__PURE__ */ e(C, { variant: "body1", children: n.details_goal_name }),
767
+ /* @__PURE__ */ e(C, { bold: !0, color: "text.primary", sx: { mr: 4 }, variant: "body1", children: n.retirement })
848
768
  ] }),
849
- primaryTypographyProps: { variant: "body1" }
769
+ slotProps: { primary: { variant: "body1" } }
850
770
  }
851
771
  ) }),
852
- /* @__PURE__ */ e(E, { sx: { ml: 24 } }),
853
- (h === s.SAVINGS_TRACK || h === s.RETIREMENT_TRACK) && /* @__PURE__ */ i(H, { children: [
772
+ /* @__PURE__ */ e(v, { sx: { ml: 24 } }),
773
+ (_ === r.SAVINGS_TRACK || _ === r.RETIREMENT_TRACK) && /* @__PURE__ */ c(F, { children: [
854
774
  /* @__PURE__ */ e(It, { goal: t }),
855
- /* @__PURE__ */ e(E, { sx: { ml: h === s.RETIREMENT_TRACK ? 24 : 0 } })
775
+ /* @__PURE__ */ e(v, { sx: { ml: _ === r.RETIREMENT_TRACK ? 24 : 0 } })
856
776
  ] }),
857
- t.track_type === s.DEBT_TRACK && /* @__PURE__ */ i(H, { children: [
858
- /* @__PURE__ */ e(it, { goal: t }),
859
- /* @__PURE__ */ e(E, { sx: { ml: 24 } }),
777
+ t.track_type === r.DEBT_TRACK && /* @__PURE__ */ c(F, { children: [
778
+ /* @__PURE__ */ e(rt, { goal: t }),
779
+ /* @__PURE__ */ e(v, { sx: { ml: 24 } }),
860
780
  /* @__PURE__ */ e(st, { goal: t }),
861
- /* @__PURE__ */ e(E, { sx: { ml: 24 } }),
862
- /* @__PURE__ */ e(lt, { goal: t }),
863
- /* @__PURE__ */ e(E, { variant: "fullWidth" })
781
+ /* @__PURE__ */ e(v, { sx: { ml: 24 } }),
782
+ /* @__PURE__ */ e(ct, { goal: t }),
783
+ /* @__PURE__ */ e(v, { variant: "fullWidth" })
864
784
  ] }),
865
- t.track_type === s.RETIREMENT_TRACK && /* @__PURE__ */ i(H, { children: [
785
+ t.track_type === r.RETIREMENT_TRACK && /* @__PURE__ */ c(F, { children: [
866
786
  /* @__PURE__ */ e(kt, { goal: t }),
867
- /* @__PURE__ */ e(E, { sx: { ml: 24 } }),
868
- /* @__PURE__ */ e(Dt, { goal: t }),
869
- /* @__PURE__ */ e(E, { variant: "fullWidth" })
787
+ /* @__PURE__ */ e(v, { sx: { ml: 24 } }),
788
+ /* @__PURE__ */ e(wt, { goal: t }),
789
+ /* @__PURE__ */ e(v, { variant: "fullWidth" })
870
790
  ] })
871
791
  ] }),
872
- /* @__PURE__ */ e(T, { color: "text.secondary", sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: t.track_type === s.RETIREMENT_TRACK ? n.details_accounts : n.details_account }),
873
- t.track_type !== s.RETIREMENT_TRACK && m && /* @__PURE__ */ i(H, { children: [
874
- /* @__PURE__ */ e(Oe, { account: m }),
875
- /* @__PURE__ */ e(E, {})
792
+ /* @__PURE__ */ e(C, { color: "text.secondary", sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: t.track_type === r.RETIREMENT_TRACK ? n.details_accounts : n.details_account }),
793
+ t.track_type !== r.RETIREMENT_TRACK && d && /* @__PURE__ */ c(F, { children: [
794
+ /* @__PURE__ */ e(We, { account: d }),
795
+ /* @__PURE__ */ e(v, {})
876
796
  ] }),
877
- t.track_type === s.RETIREMENT_TRACK && /* @__PURE__ */ i(H, { children: [
878
- /* @__PURE__ */ e(Kt, { goal: t }),
879
- /* @__PURE__ */ e(E, {})
797
+ t.track_type === r.RETIREMENT_TRACK && /* @__PURE__ */ c(F, { children: [
798
+ /* @__PURE__ */ e(Dt, { goal: t }),
799
+ /* @__PURE__ */ e(v, {})
880
800
  ] }),
881
- t.track_type === s.SAVINGS_TRACK && !t.is_complete && /* @__PURE__ */ e(Nt, { goal: t })
801
+ t.track_type === r.SAVINGS_TRACK && !t.is_complete && /* @__PURE__ */ e(Gt, { goal: t })
882
802
  ] });
883
- }), Lt = D(({ onClose: t }) => {
884
- const { visibleRetirementAccounts: n } = j(), { goals: c, common: m } = R(), {
885
- addGoal: h,
886
- addRetirementGoal: r,
887
- deleteGoal: d,
888
- deleteRetirementGoal: l,
889
- newRetirementGoalAccounts: p,
890
- retirementGoalAccounts: b,
891
- selectedGoal: o,
892
- setAlert: a,
893
- setSelectedGoal: u,
894
- updateGoal: _
895
- } = G(), { user: y } = Ie(), [f, S] = A.useState(!1), C = !o?.guid, I = o?.track_type === s.SAVINGS_TRACK && o.is_complete && !o.has_been_spent, N = A.useMemo(() => {
896
- const x = C ? p : b;
897
- return n.filter((F) => x.some((z) => z.account_guid === F.guid));
898
- }, [C, n, p, b]), re = A.useMemo(() => {
899
- if (!o) return !1;
900
- if (!C && !I) return !0;
901
- const { account_guid: x, track_type: F, name: z, amount: ee, retirement_age: B } = o;
902
- return F === s.SAVINGS_TRACK ? x ? !!z && !!ee : !1 : F === s.RETIREMENT_TRACK ? N.length ? !!z && !!ee && !!B && !!y.birthday : !1 : !0;
903
- }, [o, N, y.birthday]);
904
- let U = m.delete_button, Y = () => S(!0);
905
- C ? (Y = () => ie(), U = m.save_button) : I && (Y = () => Q(), U = c.mark_as_complete_button);
906
- const ie = async () => {
907
- if (o) {
908
- const x = o.track_type;
909
- x !== s.RETIREMENT_TRACK ? await h(o) : x === s.RETIREMENT_TRACK && await r({ ...o, target_amount: o.amount }), a(c.alert_goal_added), u(void 0), x && t?.(x);
803
+ }), Mt = D(({ onClose: t }) => {
804
+ const { visibleRetirementAccounts: n } = j(), { goals: u, common: d } = x(), {
805
+ addGoal: _,
806
+ addRetirementGoal: i,
807
+ deleteGoal: m,
808
+ deleteRetirementGoal: p,
809
+ newRetirementGoalAccounts: s,
810
+ retirementGoalAccounts: h,
811
+ selectedGoal: a,
812
+ setAlert: o,
813
+ setSelectedGoal: b,
814
+ updateGoal: l
815
+ } = N(), { user: y } = Ge(), [E, g] = T.useState(!1), A = !a?.guid, R = a?.track_type === r.SAVINGS_TRACK && a.is_complete && !a.has_been_spent, G = T.useMemo(() => {
816
+ const S = A ? s : h;
817
+ return n.filter((V) => S.some((M) => M.account_guid === V.guid));
818
+ }, [A, n, s, h]), K = T.useMemo(() => {
819
+ if (!a) return !1;
820
+ if (!A && !R) return !0;
821
+ const { account_guid: S, track_type: V, name: M, amount: J, retirement_age: ie } = a;
822
+ return V === r.SAVINGS_TRACK ? S ? !!M && !!J : !1 : V === r.RETIREMENT_TRACK ? G.length ? !!M && !!J && !!ie && !!y.birthday : !1 : !0;
823
+ }, [a, G, y.birthday]);
824
+ let W = d.delete_button, H = () => g(!0);
825
+ A ? (H = () => ne(), W = d.save_button) : R && (H = () => ae(), W = u.mark_as_complete_button);
826
+ const ne = async () => {
827
+ if (a) {
828
+ const S = a.track_type;
829
+ S !== r.RETIREMENT_TRACK ? await _(a) : S === r.RETIREMENT_TRACK && await i({ ...a, target_amount: a.amount }), o(u.alert_goal_added), b(void 0), S && t?.(S);
910
830
  }
911
- }, W = async () => {
912
- o && (o.track_type !== s.RETIREMENT_TRACK ? await d(o.guid) : o.track_type === s.RETIREMENT_TRACK && await l(o), a(c.alert_goal_deleted), u(void 0));
913
- }, Q = async () => {
914
- const x = {
915
- ...o,
831
+ }, oe = async () => {
832
+ a && (a.track_type !== r.RETIREMENT_TRACK ? await m(a.guid) : a.track_type === r.RETIREMENT_TRACK && await p(a), o(u.alert_goal_deleted), b(void 0));
833
+ }, ae = async () => {
834
+ const S = {
835
+ ...a,
916
836
  has_been_spent: !0
917
837
  };
918
- await _(x), a(c.alert_goal_completed), u(void 0);
838
+ await l(S), o(u.alert_goal_completed), b(void 0);
919
839
  };
920
- return /* @__PURE__ */ i(g, { children: [
840
+ return /* @__PURE__ */ c(f, { children: [
921
841
  /* @__PURE__ */ e(
922
- X,
842
+ q,
923
843
  {
924
- ariaLabelClose: m.close_aria,
925
- hasSecondaryAction: C,
926
- isOpen: !!o,
927
- isPrimaryDisabled: !re,
928
- onClose: () => u(void 0),
929
- onPrimaryAction: Y,
930
- primaryColor: C || I ? "primary" : "error",
931
- primaryText: U,
844
+ ariaLabelClose: d.close_aria,
845
+ hasSecondaryAction: A,
846
+ isOpen: !!a,
847
+ isPrimaryDisabled: !K,
848
+ onClose: () => b(void 0),
849
+ onPrimaryAction: H,
850
+ primaryColor: A || R ? "primary" : "error",
851
+ primaryText: W,
932
852
  secondaryColor: "primary",
933
- title: c.goal_details,
934
- children: o && /* @__PURE__ */ e(Mt, { goal: o })
853
+ title: u.goal_details,
854
+ children: a && /* @__PURE__ */ e(Kt, { goal: a })
935
855
  }
936
856
  ),
937
857
  /* @__PURE__ */ e(
938
- tt,
858
+ pt,
939
859
  {
940
- copy: { close_aria: m.close_aria, title: c.delete_goal },
941
- isOpen: f,
860
+ copy: { close_aria: d.close_aria, title: u.delete_goal },
861
+ isOpen: E,
942
862
  maxWidth: "xs",
943
- onClose: () => S(!1),
944
- onPrimaryAction: W,
863
+ onClose: () => g(!1),
864
+ onPrimaryAction: oe,
945
865
  primaryColor: "error",
946
- primaryText: m.delete_button,
947
- children: /* @__PURE__ */ e(T, { sx: { textWrap: "wrap" }, variant: "Paragraph", children: M(c.delete_description, o?.name || "") })
866
+ primaryText: d.delete_button,
867
+ children: /* @__PURE__ */ e(C, { variant: "subtitle1", children: B(u.delete_description, a?.name || "") })
948
868
  }
949
869
  )
950
870
  ] });
951
- }), zn = D(({ onBackClick: t, sx: n }) => {
952
- const { onEvent: c } = Ne(), { isMobile: m } = be(), { isAccountDataLoaded: h, loadAccountData: r } = j(), { isInitialized: d } = he(), { goals: l, common: p } = R(), {
953
- alert: b,
954
- goals: o,
955
- isAllGoalDataLoaded: a,
956
- loadGoalData: u,
957
- monthlyCashFlowProfile: _,
958
- setAlert: y,
959
- retirmentGoals: f
960
- } = G(), [S, C] = A.useState(0), [I, N] = A.useState(!1), re = _?.amount_allocated_for_savings_goals || 0, U = _?.amount_allocated_for_debt_goals || 0, Y = _?.amount_allocated_for_retirement_goals || 0;
871
+ }), Fn = D(({ onBackClick: t, onMenuClick: n, sx: u }) => {
872
+ const { onEvent: d } = Ne(), { isMobile: _ } = he(), { isAccountDataLoaded: i, loadAccountData: m } = j(), { isInitialized: p } = _e(), { goals: s, common: h } = x(), {
873
+ alert: a,
874
+ allGoals: o,
875
+ goals: b,
876
+ isAllGoalDataLoaded: l,
877
+ loadGoalData: y,
878
+ monthlyCashFlowProfile: E,
879
+ setAlert: g,
880
+ retirmentGoals: A
881
+ } = N(), [R, G] = T.useState(0), [K, W] = T.useState(!1), H = E?.amount_allocated_for_savings_goals || 0, ne = E?.amount_allocated_for_debt_goals || 0, oe = E?.amount_allocated_for_retirement_goals || 0;
961
882
  Me({
962
883
  widgetName: "GoalsWidget",
963
- isLoaded: a
964
- }), A.useEffect(() => {
965
- h || r().finally(), c($.GOALS_VIEW);
966
- }, []), A.useEffect(() => {
967
- d && u().finally();
968
- }, [d]);
969
- const ie = () => {
970
- c($.GOALS_CLICK_FILTER);
971
- }, W = () => {
972
- N(!0), c($.GOALS_CLICK_ADD);
973
- }, Q = (B) => {
974
- N(!1), B === s.SAVINGS_TRACK ? C(0) : B === s.DEBT_TRACK ? C(1) : B === s.RETIREMENT_TRACK && C(2);
975
- }, x = A.useMemo(
976
- () => a && (o.length === 0 || o.every(({ track_type: B }) => !B) && f.length === 0),
977
- [o, a, f]
884
+ isLoaded: l
885
+ }), T.useEffect(() => {
886
+ i || m().finally(), d($.GOALS_VIEW);
887
+ }, []), T.useEffect(() => {
888
+ p && y().finally();
889
+ }, [p]);
890
+ const ae = () => {
891
+ d($.GOALS_CLICK_FILTER);
892
+ }, S = () => {
893
+ W(!0), d($.GOALS_CLICK_ADD);
894
+ }, V = (Q) => {
895
+ W(!1), Q === r.SAVINGS_TRACK ? G(0) : Q === r.DEBT_TRACK ? G(1) : Q === r.RETIREMENT_TRACK && G(2);
896
+ }, M = T.useMemo(
897
+ () => l && o.length === 0,
898
+ [b, l, A]
978
899
  );
979
- if (!d || !a)
980
- return /* @__PURE__ */ e(Ke, {});
981
- const F = M(
982
- m ? l.tab_subtitle_mobile : l.tab_subtitle,
983
- v(re, "0,0")
984
- ), z = M(
985
- m ? l.tab_subtitle_mobile : l.tab_subtitle,
986
- v(U, "0,0")
987
- ), ee = M(
988
- m ? l.tab_subtitle_mobile : l.tab_subtitle,
989
- v(Y, "0,0")
900
+ if (!p || !l)
901
+ return /* @__PURE__ */ e(Le, {});
902
+ const J = B(
903
+ _ ? s.tab_subtitle_mobile : s.tab_subtitle,
904
+ I(H, "0,0")
905
+ ), ie = B(
906
+ _ ? s.tab_subtitle_mobile : s.tab_subtitle,
907
+ I(ne, "0,0")
908
+ ), Ve = B(
909
+ _ ? s.tab_subtitle_mobile : s.tab_subtitle,
910
+ I(oe, "0,0")
990
911
  );
991
- return /* @__PURE__ */ i(
992
- pt,
912
+ return /* @__PURE__ */ c(
913
+ ht,
993
914
  {
994
915
  actions: [
995
916
  {
996
917
  iconName: "add",
997
- label: l.add_title,
998
- onClick: W
918
+ label: s.add_title,
919
+ onClick: S
999
920
  }
1000
921
  ],
1001
- onAccountsFilterClick: ie,
922
+ onAccountsFilterClick: ae,
1002
923
  onBackClick: t,
1003
- sx: n,
1004
- title: l.title,
924
+ onMenuClick: n,
925
+ sx: u,
926
+ title: s.title,
1005
927
  children: [
1006
- /* @__PURE__ */ i(g, { mx: m ? 0 : 48, my: 24, children: [
1007
- /* @__PURE__ */ i(
1008
- ze,
928
+ /* @__PURE__ */ c(f, { mx: _ ? 0 : 48, my: 24, children: [
929
+ /* @__PURE__ */ c(
930
+ Fe,
1009
931
  {
1010
- onChange: (B, We) => C(We),
932
+ onChange: (Q, ze) => G(ze),
1011
933
  sx: { bgcolor: "background.paper" },
1012
934
  textColor: "primary",
1013
- value: x ? !1 : S,
935
+ value: M ? !1 : R,
1014
936
  variant: "fullWidth",
1015
937
  children: [
1016
938
  /* @__PURE__ */ e(
1017
- se,
939
+ re,
1018
940
  {
1019
- disabled: x,
1020
- label: /* @__PURE__ */ e(le, { subtitle: F, title: l.tab_saving_title })
941
+ disabled: M,
942
+ label: /* @__PURE__ */ e(se, { subtitle: J, title: s.tab_saving_title })
1021
943
  }
1022
944
  ),
1023
945
  /* @__PURE__ */ e(
1024
- se,
946
+ re,
1025
947
  {
1026
- disabled: x,
1027
- label: /* @__PURE__ */ e(le, { subtitle: z, title: l.tab_debt_title })
948
+ disabled: M,
949
+ label: /* @__PURE__ */ e(se, { subtitle: ie, title: s.tab_debt_title })
1028
950
  }
1029
951
  ),
1030
952
  /* @__PURE__ */ e(
1031
- se,
953
+ re,
1032
954
  {
1033
- disabled: x,
1034
- label: /* @__PURE__ */ e(le, { subtitle: ee, title: l.tab_retirement_title })
955
+ disabled: M,
956
+ label: /* @__PURE__ */ e(se, { subtitle: Ve, title: s.tab_retirement_title })
1035
957
  }
1036
958
  )
1037
959
  ]
1038
960
  }
1039
961
  ),
1040
- x ? /* @__PURE__ */ e(
1041
- ht,
962
+ M ? /* @__PURE__ */ e(
963
+ bt,
1042
964
  {
1043
- header: l.create_goals_header,
965
+ header: s.create_goals_header,
1044
966
  icon: "trophy",
1045
- onClick: W,
1046
- primaryButton: l.add_goals_button,
1047
- subText: l.empty_state_subheader,
967
+ onClick: S,
968
+ primaryButton: s.add_goals_button,
969
+ subText: s.empty_state_subheader,
1048
970
  sx: {
1049
971
  width: { sm: 432 },
1050
972
  ".buttons-footer": {
@@ -1052,67 +974,67 @@ const Tt = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
1052
974
  }
1053
975
  }
1054
976
  }
1055
- ) : /* @__PURE__ */ i(H, { children: [
1056
- S === 0 && /* @__PURE__ */ e(ce, { onAddGoals: W, trackType: s.SAVINGS_TRACK }),
1057
- S === 1 && /* @__PURE__ */ e(ce, { onAddGoals: W, trackType: s.DEBT_TRACK }),
1058
- S === 2 && /* @__PURE__ */ e(ce, { onAddGoals: W, trackType: s.RETIREMENT_TRACK })
977
+ ) : /* @__PURE__ */ c(F, { children: [
978
+ R === 0 && /* @__PURE__ */ e(ce, { onAddGoals: S, trackType: r.SAVINGS_TRACK }),
979
+ R === 1 && /* @__PURE__ */ e(ce, { onAddGoals: S, trackType: r.DEBT_TRACK }),
980
+ R === 2 && /* @__PURE__ */ e(ce, { onAddGoals: S, trackType: r.RETIREMENT_TRACK })
1059
981
  ] })
1060
982
  ] }),
1061
- /* @__PURE__ */ e(Lt, { onClose: Q }),
983
+ /* @__PURE__ */ e(Mt, { onClose: V }),
1062
984
  /* @__PURE__ */ e(
1063
- X,
985
+ q,
1064
986
  {
1065
- ariaLabelClose: p.close_aria,
1066
- isOpen: I,
1067
- onClose: () => N(!1),
1068
- title: l.add_goal_title,
1069
- children: /* @__PURE__ */ e(Gt, { onClose: Q })
987
+ ariaLabelClose: h.close_aria,
988
+ isOpen: K,
989
+ onClose: () => W(!1),
990
+ title: s.add_goal_title,
991
+ children: /* @__PURE__ */ e(vt, { onClose: V })
1070
992
  }
1071
993
  ),
1072
- /* @__PURE__ */ e(Fe, { onClose: () => y(""), open: !!b, children: /* @__PURE__ */ e(je, { onClose: () => y(""), severity: "success", variant: "filled", children: b }) })
994
+ /* @__PURE__ */ e(je, { onClose: () => g(""), open: !!a, children: /* @__PURE__ */ e(Pe, { onClose: () => g(""), severity: "success", variant: "filled", children: a }) })
1073
995
  ]
1074
996
  }
1075
997
  );
1076
- }), Bt = D(({ goal: t }) => {
1077
- const { goals: n } = R(), c = yt(), {
1078
- backgroundColor: m,
1079
- color: h,
1080
- percentage: r,
1081
- projectedText: d
1082
- } = _e(n, t), l = Math.round(r * 100);
1083
- let p = /* @__PURE__ */ e(Re, {});
1084
- return t.track_type === s.DEBT_TRACK ? p = /* @__PURE__ */ e(Ee, {}) : t.track_type === s.RETIREMENT_TRACK && (p = /* @__PURE__ */ e(xe, {})), /* @__PURE__ */ i(g, { alignItems: "center", direction: "row", spacing: 12, sx: { py: 12 }, children: [
1085
- /* @__PURE__ */ e(ne, { sx: { bgcolor: m, color: h, height: 32, width: 32 }, variant: "rounded", children: p }),
1086
- /* @__PURE__ */ i(gt, { sx: { width: "100%" }, children: [
1087
- /* @__PURE__ */ e(ue, { fontSize: 15, fontWeight: 600, variant: "body1", children: t.name }),
1088
- t.projected_to_complete_at && /* @__PURE__ */ e(T, { color: "text.secondary", variant: "XSmall", children: d })
998
+ }), Lt = D(({ goal: t }) => {
999
+ const { goals: n } = x(), u = gt(), {
1000
+ backgroundColor: d,
1001
+ color: _,
1002
+ percentage: i,
1003
+ projectedText: m
1004
+ } = ue(n, t), p = Math.round(i * 100);
1005
+ let s = /* @__PURE__ */ e(Ee, {});
1006
+ return t.track_type === r.DEBT_TRACK ? s = /* @__PURE__ */ e(Se, {}) : t.track_type === r.RETIREMENT_TRACK && (s = /* @__PURE__ */ e(ve, {})), /* @__PURE__ */ c(f, { alignItems: "center", direction: "row", spacing: 12, sx: { py: 12 }, children: [
1007
+ /* @__PURE__ */ e(te, { sx: { bgcolor: d, color: _, height: 32, width: 32 }, variant: "rounded", children: s }),
1008
+ /* @__PURE__ */ c(ft, { sx: { width: "100%" }, children: [
1009
+ /* @__PURE__ */ e(Te, { fontSize: 15, fontWeight: 600, variant: "body1", children: t.name }),
1010
+ t.projected_to_complete_at && /* @__PURE__ */ e(C, { color: "text.secondary", variant: "caption", children: m })
1089
1011
  ] }),
1090
1012
  /* @__PURE__ */ e(
1091
- ft,
1013
+ yt,
1092
1014
  {
1093
- backgroundStrokeColor: c.palette.border.lighter,
1094
- color: c.palette.primary.main,
1095
- percent: l,
1015
+ backgroundStrokeColor: u.palette.neutral.light,
1016
+ color: u.palette.primary.main,
1017
+ percent: p,
1096
1018
  size: 40,
1097
1019
  strokeWidth: 3,
1098
- children: /* @__PURE__ */ e(P, { fontWeight: 700, variant: "caption", children: `${l}%` })
1020
+ children: /* @__PURE__ */ e(Y, { fontWeight: 700, variant: "caption", children: `${p}%` })
1099
1021
  }
1100
1022
  )
1101
1023
  ] });
1102
- }), Ot = ({ header: t, subText: n, sx: c }) => /* @__PURE__ */ i(
1103
- g,
1024
+ }), Ot = ({ header: t, subText: n, sx: u }) => /* @__PURE__ */ c(
1025
+ f,
1104
1026
  {
1105
1027
  sx: {
1106
1028
  alignItems: "center",
1107
1029
  alignSelf: "center",
1108
1030
  px: 24,
1109
- ...c
1031
+ ...u
1110
1032
  },
1111
1033
  children: [
1112
- /* @__PURE__ */ e(qe, { size: 32 }),
1113
- /* @__PURE__ */ e(ue, { fontSize: 15, fontWeight: 600, children: t }),
1034
+ /* @__PURE__ */ e(Je, { size: 32 }),
1035
+ /* @__PURE__ */ e(Te, { fontSize: 15, fontWeight: 600, children: t }),
1114
1036
  /* @__PURE__ */ e(
1115
- P,
1037
+ Y,
1116
1038
  {
1117
1039
  color: "text.secondary",
1118
1040
  sx: { fontWeight: 400, maxWidth: { sm: 424 }, textAlign: "center" },
@@ -1122,49 +1044,47 @@ const Tt = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
1122
1044
  )
1123
1045
  ]
1124
1046
  }
1125
- ), Hn = D(({ onCTAClick: t }) => {
1126
- const { isAccountDataLoaded: n, loadAccountData: c, visibleAccounts: m } = j(), { onEvent: h } = Ne(), { goals: r } = R(), { isInitialized: d } = he(), { ongoingGoalsForMicroWidget: l, isAllGoalDataLoaded: p, loadGoalData: b } = G();
1047
+ ), $n = D(({ onCTAClick: t }) => {
1048
+ const { isAccountDataLoaded: n, loadAccountData: u, visibleAccounts: d } = j(), { onEvent: _ } = Ne(), { goals: i } = x(), { isInitialized: m } = _e(), { ongoingGoalsForMicroWidget: p, isAllGoalDataLoaded: s, loadGoalData: h } = N();
1127
1049
  Me({
1128
1050
  widgetName: "GoalsMicroWidget",
1129
- isLoaded: p
1130
- }), A.useEffect(() => {
1131
- n || c().finally();
1132
- }, []), A.useEffect(() => {
1133
- d && (b().finally(), h($.GOALS_LOAD_WIDGET, {
1134
- state: m?.length ? "default" : "zeroState"
1051
+ isLoaded: s
1052
+ }), T.useEffect(() => {
1053
+ n || u().finally();
1054
+ }, []), T.useEffect(() => {
1055
+ m && (h().finally(), _($.GOALS_LOAD_WIDGET, {
1056
+ state: d?.length ? "default" : "zeroState"
1135
1057
  }));
1136
- }, [d]);
1137
- const o = A.useMemo(
1138
- () => p && l.length === 0,
1139
- [l, p]
1140
- ), a = () => {
1141
- h(
1142
- o ? $.GOALS_CLICK_GET_STARTED : $.GOALS_CLICK_VIEW_DETAILS
1058
+ }, [m]);
1059
+ const a = T.useMemo(
1060
+ () => s && p.length === 0,
1061
+ [p, s]
1062
+ ), o = () => {
1063
+ _(
1064
+ a ? $.GOALS_CLICK_GET_STARTED : $.GOALS_CLICK_VIEW_DETAILS
1143
1065
  ), t();
1144
1066
  };
1145
- return !d || !p ? /* @__PURE__ */ e(Ke, {}) : /* @__PURE__ */ e(
1067
+ return !m || !s ? /* @__PURE__ */ e(Le, {}) : /* @__PURE__ */ e(
1146
1068
  At,
1147
1069
  {
1148
1070
  className: "mx-goals-microwidget",
1149
- ctaLabel: o ? r.get_started : r.view_details,
1150
- onCTAClick: a,
1151
- title: r.title,
1152
- children: o ? /* @__PURE__ */ e(
1071
+ ctaLabel: a ? i.get_started : i.view_details,
1072
+ onCTAClick: o,
1073
+ title: i.title,
1074
+ children: a ? /* @__PURE__ */ e(
1153
1075
  Ot,
1154
1076
  {
1155
- header: r.create_goals_header,
1156
- subText: r.micro_zero_state_description
1077
+ header: i.create_goals_header,
1078
+ subText: i.micro_zero_state_description
1157
1079
  }
1158
- ) : /* @__PURE__ */ e(bt, { sx: { justifyContent: "space-between" }, children: l.map((u, _) => /* @__PURE__ */ i(A.Fragment, { children: [
1159
- /* @__PURE__ */ e(Bt, { goal: u }),
1160
- _ !== l.length - 1 && /* @__PURE__ */ e(E, {})
1161
- ] }, u.guid)) })
1080
+ ) : /* @__PURE__ */ e(f, { sx: { justifyContent: "space-between" }, children: p.map((b, l) => /* @__PURE__ */ c(T.Fragment, { children: [
1081
+ /* @__PURE__ */ e(Lt, { goal: b }),
1082
+ l !== p.length - 1 && /* @__PURE__ */ e(v, {})
1083
+ ] }, b.guid)) })
1162
1084
  }
1163
1085
  );
1164
1086
  });
1165
1087
  export {
1166
- Un as GoalApi,
1167
- Yn as GoalStore,
1168
- Hn as GoalsMicroWidget,
1169
- zn as GoalsWidget
1088
+ $n as GoalsMicroWidget,
1089
+ Fn as GoalsWidget
1170
1090
  };