@mx-cartographer/experiences 8.0.0-alpha.test2 → 8.0.0-alpha.v2

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 (513) hide show
  1. package/CHANGELOG.md +335 -0
  2. package/README.md +5 -3
  3. package/dist/{Account-CMjOp7S2.mjs → Account-BiB1F8lL.mjs} +2 -2
  4. package/dist/{Account-BIKn4XEZ.mjs → Account-DuOz1a27.mjs} +1 -1
  5. package/dist/{AccountApi-DgZ8ILj1.mjs → AccountApi-ChQr5PAZ.mjs} +1 -1
  6. package/dist/AccountDetailsHeader-D9gbTbUt.mjs +95 -0
  7. package/dist/{AccountFields-DuFtmuud.mjs → AccountFields-CxqONzjY.mjs} +12 -12
  8. package/dist/AccountListItem-D9WJDbZ1.mjs +94 -0
  9. package/dist/{AccountStore-Cq_w2Hfb.mjs → AccountStore-DpYvNnql.mjs} +15 -9
  10. package/dist/Accounts-CseLC3lL.mjs +5 -0
  11. package/dist/Accounts-o7ohkngR.mjs +27 -0
  12. package/dist/{Analytics-i5h6BxR1.mjs → Analytics-BYItVAe-.mjs} +10 -0
  13. package/dist/{BeatApi-De2IaqH2.mjs → BeatApi-EFHXULDx.mjs} +1 -1
  14. package/dist/{BeatStore-D_NYuBSz.mjs → BeatStore-C6CAT-ce.mjs} +1 -1
  15. package/dist/BudgetUtil-CLhRnCoX.mjs +479 -0
  16. package/dist/CashflowStore-CeAzChyD.mjs +91 -0
  17. package/dist/{Category-Ccoew_sA.mjs → Category-CevNQ03n.mjs} +2 -2
  18. package/dist/{CategorySelectorDrawer-CzRxYpiP.mjs → CategorySelectorDrawer-Dc9Widy9.mjs} +118 -110
  19. package/dist/{CategoryStore-V-0d9oje.mjs → CategoryStore-FTxUbn0f.mjs} +3 -3
  20. package/dist/{CategoryUtil-DB-9JMbi.mjs → CategoryUtil-BVixr0d5.mjs} +4 -4
  21. package/dist/Connect-eYIWqCEr.mjs +39 -0
  22. package/dist/ConnectDrawer-C0wjwcJt.mjs +58 -0
  23. package/dist/{ConnectionsDrawer-DMBBzlIJ.mjs → ConnectionsDrawer-IA7vnv1J.mjs} +10 -9
  24. package/dist/CurrencyInput-DuMktPu3.mjs +85 -0
  25. package/dist/{CurrencyText-C-85TnUF.mjs → CurrencyText-CA-E5N_y.mjs} +1 -1
  26. package/dist/{DateFormats-Cs-NbEZ7.mjs → DateFormats-BMpMrZpW.mjs} +1 -1
  27. package/dist/{DateUtil-CVXVMbjf.mjs → DateUtil-wcYTmDRD.mjs} +1 -1
  28. package/dist/{DebtsStore-Dv_T7Dts.mjs → DebtsStore-BZqNLaqd.mjs} +3 -3
  29. package/dist/Dialog-Ck34yr-d.mjs +63 -0
  30. package/dist/{Donut-DKY8mL3P.mjs → Donut-CpxJlVvJ.mjs} +29 -27
  31. package/dist/{Drawer-Bet2ZPJo.mjs → Drawer-Bbe4AMB1.mjs} +14 -14
  32. package/dist/{ExportCsvAction-Cc14QGA9.mjs → ExportCsvAction-ErKh7wJ2.mjs} +4 -4
  33. package/dist/{Fetch-DecPFeGU.mjs → Fetch-B6tMJC1r.mjs} +2 -1
  34. package/dist/{FinstrongStore-DW7-LvAh.mjs → FinstrongStore-BQxXxxYD.mjs} +129 -129
  35. package/dist/GlobalAccountFilter-B73Pw1hJ.mjs +237 -0
  36. package/dist/Goal-0loDagc5.mjs +6 -0
  37. package/dist/GoalStore-fgXt--2Y.mjs +418 -0
  38. package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
  39. package/dist/{Help-CgpJK03Q.mjs → Help-B8mD4aLJ.mjs} +6 -6
  40. package/dist/{Help-DOPJteew.mjs → Help-D-laTbKu.mjs} +544 -493
  41. package/dist/{IconBacking-DgT8DCeh.mjs → IconBacking-B9oC6uL2.mjs} +11 -11
  42. package/dist/LineChart-EAr5ox5U.mjs +612 -0
  43. package/dist/{ListItemAction-engf-T9W.mjs → ListItemAction-4KB7P75M.mjs} +2 -2
  44. package/dist/Loader-D3rjKx72.mjs +21 -0
  45. package/dist/Localization-CPkpIwIx.mjs +37 -0
  46. package/dist/{ManageIncome-BVqHHIO7.mjs → ManageIncome-Cc-wba0I.mjs} +118 -113
  47. package/dist/{MerchantStore-WvZ4gnQe.mjs → MerchantStore-BzGi4JAZ.mjs} +1 -1
  48. package/dist/MicroWidgetContainer-B_EnfvCq.mjs +45 -0
  49. package/dist/MiniWidgetContainer-Bhkv-hpz.mjs +66 -0
  50. package/dist/{NetWorthStore-B6ziBtaH.mjs → NetWorthStore-BqZ44-4M.mjs} +5 -5
  51. package/dist/Notification-DTNYSd8P.mjs +7 -0
  52. package/dist/{NotificationSettings-CEzQSKfg.mjs → NotificationSettings-D7VqsrZy.mjs} +160 -159
  53. package/dist/{NotificationStore-Ck2KdNmT.mjs → NotificationStore-D_e8zo5M.mjs} +28 -21
  54. package/dist/{NumberFormatting-DjTD0t3W.mjs → NumberFormatting-QCaNwbjv.mjs} +1 -1
  55. package/dist/{Transaction-C8QRYhYc.mjs → OnClickEvents-CseHDZ94.mjs} +32 -25
  56. package/dist/{OriginalBalanceAction-CYqr8z8w.mjs → OriginalBalanceAction-DjpvVVFz.mjs} +10 -10
  57. package/dist/{RecurringSettings-rEotGPcM.mjs → RecurringSettings-BN9H5ALr.mjs} +4 -4
  58. package/dist/RecurringTransactions-BCJp-Nap.mjs +297 -0
  59. package/dist/{RecurringTransactionsStore-DpzLX8E8.mjs → RecurringTransactionsStore-CkMA7gY3.mjs} +11 -10
  60. package/dist/RepeatingTransaction-DF4vJn_v.mjs +7 -0
  61. package/dist/{ResponsiveButton-BNsV08Ud.mjs → ResponsiveButton-DZFp78fJ.mjs} +12 -12
  62. package/dist/SearchBox-CwDgvWVJ.mjs +48 -0
  63. package/dist/{SettingsStore-ImYpLCSK.mjs → SettingsStore-BoIoiRLj.mjs} +3 -3
  64. package/dist/{SingleSegmentDonut-PsRQPkmV.mjs → SingleSegmentDonut-BgbLgwHi.mjs} +5 -5
  65. package/dist/{SpendingData-CI_C9xln.mjs → SpendingData-Bz1bCWAs.mjs} +4 -4
  66. package/dist/SpendingLegend-BgjazduU.mjs +193 -0
  67. package/dist/{StatusBar-CPfSXe80.mjs → StatusBar-BK_uYHAB.mjs} +6 -6
  68. package/dist/StatusIndicator-4tWnjeKS.mjs +264 -0
  69. package/dist/{TabContentContainer-CnMXkVqr.mjs → TabContentContainer-j01JYR_7.mjs} +8 -8
  70. package/dist/ToggleListItem-BLu_fWA2.mjs +90 -0
  71. package/dist/Transaction-Cn5_iFm0.mjs +5 -0
  72. package/dist/{TransactionApi-CjBoLleL.mjs → TransactionApi-Ck5Ua-7F.mjs} +1 -1
  73. package/dist/TransactionDetails-D1I1XEsT.mjs +1469 -0
  74. package/dist/{TransactionStore-CEehNrKo.mjs → TransactionStore-Bx9euVrY.mjs} +195 -177
  75. package/dist/{TrendsStore-ncmbS9eE.mjs → TrendsStore-CYdTo7cN.mjs} +10 -10
  76. package/dist/ViewMoreMicroCard-D24H9kDm.mjs +1291 -0
  77. package/dist/{WidgetContainer-DFwVgavi.mjs → WidgetContainer-B7xDq2bM.mjs} +47 -46
  78. package/dist/accounts/AccountsMiniWidget.d.ts +1 -1
  79. package/dist/accounts/AccountsWidget.d.ts +1 -1
  80. package/dist/accounts/api/AccountApi.d.ts +1 -1
  81. package/dist/accounts/components/AccountListItem.d.ts +1 -1
  82. package/dist/accounts/components/AccountsListCompact.d.ts +1 -1
  83. package/dist/accounts/components/detailsdrawer/Accounts/AccountActionsRow.d.ts +1 -0
  84. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +1 -1
  85. package/dist/accounts/hooks/useGetMergeableAccounts.d.ts +1 -1
  86. package/dist/accounts/index.es.js +459 -368
  87. package/dist/accounts/stores/AccountStore.d.ts +2 -1
  88. package/dist/accounts/stores/UiStore.d.ts +1 -1
  89. package/dist/accounts/utils/AccountDetails.d.ts +1 -1
  90. package/dist/accounts/utils/AccountFields.d.ts +1 -1
  91. package/dist/accounts/utils/Accounts.d.ts +2 -2
  92. package/dist/analytics/index.es.js +93 -112
  93. package/dist/budgets/BubbleBudgetsMiniWidget.d.ts +1 -1
  94. package/dist/budgets/BubbleBudgetsWidget.d.ts +1 -1
  95. package/dist/budgets/api/BudgetsApi.d.ts +5 -1
  96. package/dist/budgets/components/BubbleChart.d.ts +1 -1
  97. package/dist/budgets/components/BudgetDetailsDrawerV2.d.ts +4 -1
  98. package/dist/budgets/components/MerchantBudgetDetailsDrawer.d.ts +17 -0
  99. package/dist/budgets/components/addbudget/RecalculateBudgetRow.d.ts +1 -1
  100. package/dist/budgets/components/addbudget/UnbudgetedRow.d.ts +1 -1
  101. package/dist/budgets/components/bubblechart/Bubble.d.ts +1 -1
  102. package/dist/budgets/components/budgetdetails/AddSubBudget.d.ts +1 -1
  103. package/dist/budgets/components/budgetdetails/BudgetDetails.d.ts +1 -1
  104. package/dist/budgets/components/budgetdetails/Header.d.ts +1 -1
  105. package/dist/budgets/components/budgetdetails/SubBudgetList.d.ts +1 -1
  106. package/dist/budgets/components/budgetlist/BudgetRow.d.ts +1 -1
  107. package/dist/budgets/components/budgetlist/SubBudgetRow.d.ts +1 -1
  108. package/dist/budgets/components/shared/BudgetDetailsTopSection.d.ts +13 -0
  109. package/dist/budgets/index.es.js +851 -865
  110. package/dist/budgets/store/BudgetsStore.d.ts +15 -1
  111. package/dist/budgets/utils/BubblesSVG.d.ts +3 -3
  112. package/dist/budgets/utils/BudgetUtil.d.ts +6 -1
  113. package/dist/cashflow/CashflowMiniWidget.d.ts +1 -1
  114. package/dist/cashflow/CashflowWidget.d.ts +1 -1
  115. package/dist/cashflow/api/CashflowApi.d.ts +1 -1
  116. package/dist/cashflow/components/DetailsExpenseRow.d.ts +1 -1
  117. package/dist/cashflow/index.es.js +290 -288
  118. package/dist/cashflow/stores/UiStore.d.ts +1 -1
  119. package/dist/cashflow/util/Filters.d.ts +1 -1
  120. package/dist/categories/components/CategoryRow.d.ts +1 -1
  121. package/dist/categories/components/CustomCategories/AddSubcategory.d.ts +1 -1
  122. package/dist/categories/components/CustomCategories/DeleteSubcategory.d.ts +1 -1
  123. package/dist/categories/components/CustomCategories/RenameSubcategory.d.ts +1 -1
  124. package/dist/categories/components/SubcategoryList.d.ts +1 -1
  125. package/dist/categories/components/SubcategoryRow.d.ts +1 -1
  126. package/dist/categories/index.es.js +2 -2
  127. package/dist/categories/stores/CategoryStore.d.ts +2 -1
  128. package/dist/categories/util/CategoryUtil.d.ts +1 -1
  129. package/dist/common/api/AnalyticsApi.d.ts +1 -1
  130. package/dist/common/api/AppDataApi.d.ts +1 -1
  131. package/dist/common/api/BeatApi.d.ts +1 -1
  132. package/dist/common/api/CategoryApi.d.ts +1 -1
  133. package/dist/common/api/GlobalCopyApi.d.ts +1 -1
  134. package/dist/common/api/LocalizedCopyApi.d.ts +1 -1
  135. package/dist/common/api/NotificationApi.d.ts +1 -1
  136. package/dist/common/api/ScheduledPaymentsApi.d.ts +1 -1
  137. package/dist/common/api/UserApi.d.ts +1 -1
  138. package/dist/common/components/CurrencyDialog.d.ts +1 -1
  139. package/dist/common/components/CurrencyInput.d.ts +1 -1
  140. package/dist/common/components/ErrorBoundary.d.ts +1 -1
  141. package/dist/common/components/GlobalAccountFilter.d.ts +1 -1
  142. package/dist/common/components/Loader.d.ts +1 -2
  143. package/dist/common/components/MiniWidgetContainer.d.ts +1 -0
  144. package/dist/common/components/WidgetContainer.d.ts +1 -1
  145. package/dist/common/components/charts/LineChart.d.ts +1 -0
  146. package/dist/common/components/charts/index.d.ts +1 -0
  147. package/dist/common/components/charts/linechart/CustomTooltip.d.ts +2 -1
  148. package/dist/common/components/charts/linechart/utils/markerShapes.d.ts +3 -0
  149. package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +1 -1
  150. package/dist/common/components/index.d.ts +0 -1
  151. package/dist/common/constants/Account.d.ts +1 -1
  152. package/dist/common/constants/Analytics.d.ts +10 -0
  153. package/dist/common/constants/ApiEndpoints.d.ts +1 -0
  154. package/dist/common/constants/DefaultConfig.d.ts +1 -1
  155. package/dist/common/constants/ScheduledPayment.d.ts +1 -10
  156. package/dist/common/constants/SpendingPlan.d.ts +0 -10
  157. package/dist/common/constants/index.d.ts +2 -2
  158. package/dist/common/context/GlobalDataProvider.d.ts +2 -1
  159. package/dist/common/context/hooks.d.ts +4 -4
  160. package/dist/common/hooks/index.d.ts +1 -0
  161. package/dist/common/hooks/useAccountDisplayName.d.ts +1 -1
  162. package/dist/common/hooks/useCombineEvents.d.ts +1 -1
  163. package/dist/common/hooks/usePrevious.d.ts +2 -0
  164. package/dist/common/index.d.ts +0 -1
  165. package/dist/common/index.es.js +625 -860
  166. package/dist/common/stores/AppDataStore.d.ts +3 -3
  167. package/dist/common/stores/GlobalCopyStore.d.ts +1 -1
  168. package/dist/common/stores/GlobalStore.d.ts +4 -2
  169. package/dist/common/stores/GlobalUiStore.d.ts +3 -3
  170. package/dist/common/stores/UserStore.d.ts +1 -1
  171. package/dist/common/utils/AccountDisplayName.d.ts +1 -1
  172. package/dist/common/utils/AccountFilter.d.ts +1 -1
  173. package/dist/common/utils/Analytics.d.ts +1 -1
  174. package/dist/common/utils/Categories.d.ts +1 -1
  175. package/dist/common/utils/Fetch.d.ts +1 -1
  176. package/dist/common/utils/Localization.d.ts +9 -1
  177. package/dist/common/utils/Theme.d.ts +3 -3
  178. package/dist/common/utils/User.d.ts +1 -1
  179. package/dist/common/utils/index.d.ts +1 -1
  180. package/dist/core/constants/index.d.ts +1 -0
  181. package/dist/core/constants/repeatingTransactions.d.ts +10 -0
  182. package/dist/core/index.d.ts +2 -0
  183. package/dist/core/index.es.js +41 -0
  184. package/dist/{common → core}/types/Analytics.d.ts +6 -3
  185. package/dist/{common → core}/types/AppData.d.ts +1 -0
  186. package/dist/{common → core}/types/Beat.d.ts +2 -0
  187. package/dist/{common → core}/types/Budget.d.ts +8 -0
  188. package/dist/{common → core}/types/Expense.d.ts +2 -1
  189. package/dist/{common → core}/types/Finstrong.d.ts +0 -2
  190. package/dist/{common → core}/types/Notification.d.ts +15 -5
  191. package/dist/{common → core}/types/index.d.ts +1 -2
  192. package/dist/{common → core}/types/localization/BudgetsCopy.d.ts +11 -0
  193. package/dist/{common → core}/types/localization/CashflowCopy.d.ts +1 -0
  194. package/dist/{common → core}/types/localization/CommonCopy.d.ts +2 -0
  195. package/dist/{common → core}/types/localization/DebtsCopy.d.ts +5 -0
  196. package/dist/{common → core}/types/localization/RecurringCopy.d.ts +2 -0
  197. package/dist/{common → core}/types/localization/SpendingCopy.d.ts +1 -0
  198. package/dist/dashboard/index.es.js +46 -45
  199. package/dist/debts/DebtsWidget.d.ts +1 -1
  200. package/dist/debts/components/actions/DebtsPriorityAction.d.ts +5 -1
  201. package/dist/debts/components/debtspaydown/PaydownButton.d.ts +2 -1
  202. package/dist/debts/components/debtspriority/DebtsPriorityButton.d.ts +2 -1
  203. package/dist/debts/index.es.js +705 -646
  204. package/dist/debts/store/DebtsStore.d.ts +2 -1
  205. package/dist/debts/utils/DebtStore.d.ts +1 -1
  206. package/dist/debts/utils/DebtsWidget.d.ts +7 -1
  207. package/dist/debts/utils/shared.d.ts +1 -1
  208. package/dist/{exportTransactionsToCSV-CGnrndmA.mjs → exportTransactionsToCSV-MCYH_zzN.mjs} +5 -5
  209. package/dist/finstrong/FinstrongWidget.d.ts +1 -1
  210. package/dist/finstrong/api/FinstrongApi.d.ts +1 -1
  211. package/dist/finstrong/components/HealthChart.d.ts +1 -1
  212. package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +1 -1
  213. package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +1 -1
  214. package/dist/finstrong/components/shared/Accounts.d.ts +1 -1
  215. package/dist/finstrong/components/shared/DoubleBarChart.d.ts +1 -0
  216. package/dist/finstrong/components/shared/ScoreHistoryTimeline.d.ts +1 -1
  217. package/dist/finstrong/components/shared/Transactions.d.ts +1 -1
  218. package/dist/finstrong/index.es.js +161 -159
  219. package/dist/finstrong/stores/FinstrongStore.d.ts +3 -2
  220. package/dist/finstrong/util/finstrongUtils.d.ts +3 -3
  221. package/dist/goals/GoalsWidget.d.ts +1 -1
  222. package/dist/goals/api/GoalApi.d.ts +2 -2
  223. package/dist/goals/components/AccountSelectionDrawer.d.ts +1 -1
  224. package/dist/goals/components/AddGoal.d.ts +1 -1
  225. package/dist/goals/components/GoalDetails.d.ts +1 -1
  226. package/dist/goals/components/GoalDetailsDrawer.d.ts +1 -1
  227. package/dist/goals/components/GoalList.d.ts +1 -1
  228. package/dist/goals/components/GoalStatusCard.d.ts +1 -1
  229. package/dist/goals/components/ManageGoals.d.ts +1 -1
  230. package/dist/goals/components/actions/AccountAction.d.ts +1 -1
  231. package/dist/goals/components/actions/AddRetirementAccountAction.d.ts +1 -1
  232. package/dist/goals/components/actions/AmountToSaveAction.d.ts +1 -1
  233. package/dist/goals/components/actions/BirthdayAction.d.ts +1 -1
  234. package/dist/goals/components/actions/ChangeAccountAction.d.ts +1 -1
  235. package/dist/goals/components/actions/ContributionAction.d.ts +1 -1
  236. package/dist/goals/components/actions/GoalNameAction.d.ts +1 -1
  237. package/dist/goals/components/actions/InterestRateAction.d.ts +1 -1
  238. package/dist/goals/components/actions/MonthlyPaymentAction.d.ts +1 -1
  239. package/dist/goals/components/actions/OriginalBalanceAction.d.ts +1 -1
  240. package/dist/goals/components/actions/RetirementAgeAction.d.ts +1 -1
  241. package/dist/goals/components/addgoal/AddGoalListItem.d.ts +1 -1
  242. package/dist/goals/components/managegoals/CompleteListItem.d.ts +1 -1
  243. package/dist/goals/components/managegoals/OngoingListItem.d.ts +1 -1
  244. package/dist/goals/components/managegoals/ReorderGoals.d.ts +1 -1
  245. package/dist/goals/components/micro/GoalMicroStatusCard.d.ts +1 -1
  246. package/dist/goals/index.es.js +445 -419
  247. package/dist/goals/stores/GoalStore.d.ts +2 -1
  248. package/dist/goals/util/GoalsUtil.d.ts +1 -1
  249. package/dist/help/HelpWidget.d.ts +1 -1
  250. package/dist/help/api/HelpApi.d.ts +1 -1
  251. package/dist/help/components/HelpContent.d.ts +1 -1
  252. package/dist/help/components/HelpList.d.ts +1 -1
  253. package/dist/help/components/content/BottomImageContent.d.ts +1 -1
  254. package/dist/help/components/content/ContentItem.d.ts +1 -1
  255. package/dist/help/components/content/LeftImageContent.d.ts +1 -1
  256. package/dist/help/components/content/NoImageContent.d.ts +1 -1
  257. package/dist/help/components/content/RightImageContent.d.ts +1 -1
  258. package/dist/help/components/content/TopImageContent.d.ts +1 -1
  259. package/dist/help/components/content/section/Accounts.d.ts +1 -1
  260. package/dist/help/components/content/section/Budgets.d.ts +1 -1
  261. package/dist/help/components/content/section/CashFlow.d.ts +1 -1
  262. package/dist/help/components/content/section/Debts.d.ts +1 -1
  263. package/dist/help/components/content/section/General.d.ts +1 -1
  264. package/dist/help/components/content/section/Goals.d.ts +1 -1
  265. package/dist/help/components/content/section/Insights.d.ts +1 -1
  266. package/dist/help/components/content/section/Investments.d.ts +1 -1
  267. package/dist/help/components/content/section/Mobile.d.ts +1 -1
  268. package/dist/help/components/content/section/NetWorth.d.ts +1 -1
  269. package/dist/help/components/content/section/Notifications.d.ts +1 -1
  270. package/dist/help/components/content/section/RecurringTransactions.d.ts +1 -1
  271. package/dist/help/components/content/section/Spending.d.ts +1 -1
  272. package/dist/help/components/content/section/Transactions.d.ts +1 -1
  273. package/dist/help/components/content/section/Trends.d.ts +1 -1
  274. package/dist/help/components/content/section/index.d.ts +15 -15
  275. package/dist/help/components/requestsupport/ContactSupport.d.ts +1 -1
  276. package/dist/help/components/requestsupport/HelpByCategoryList.d.ts +1 -1
  277. package/dist/help/components/requestsupport/MissingInstitution.d.ts +1 -1
  278. package/dist/help/components/requestsupport/PopularTopicsDrawer.d.ts +1 -1
  279. package/dist/help/components/requestsupport/PopularTopicsList.d.ts +1 -1
  280. package/dist/help/components/requestsupport/RequestSupport.d.ts +1 -1
  281. package/dist/help/components/requestsupport/RequestSupportFooter.d.ts +1 -1
  282. package/dist/help/components/requestsupport/RequestSupportInstitution.d.ts +1 -1
  283. package/dist/help/components/requestsupport/SupportSuccessMessage.d.ts +1 -1
  284. package/dist/help/index.es.js +8 -8
  285. package/dist/help/store/HelpStore.d.ts +5 -4
  286. package/dist/help/utils/getAccessibleHelpCategories.d.ts +2 -2
  287. package/dist/{hooks-CBl85iRr.mjs → hooks-BxkfR-Ff.mjs} +12 -12
  288. package/dist/insights/components/feed/Header.d.ts +8 -0
  289. package/dist/insights/components/index.d.ts +4 -0
  290. package/dist/insights/components/insights/CategoryBudget/types/CategoryBudget.d.ts +1 -0
  291. package/dist/insights/components/insights/CategorySpendingV2/types/CategorySpendingV2.d.ts +1 -0
  292. package/dist/insights/components/shared/ChartDrawerTemplate/ChartDrawerTemplate.d.ts +2 -1
  293. package/dist/insights/components/shared/ChartDrawerTemplate/TipSection.d.ts +3 -1
  294. package/dist/insights/components/shared/ChartTransactionWithDrillDown.d.ts +2 -1
  295. package/dist/insights/components/shared/DonutChartV2.d.ts +13 -0
  296. package/dist/insights/components/shared/InsightsCard/BeatCardMUI.d.ts +20 -0
  297. package/dist/insights/components/shared/InsightsCard/CardHeaderMUI.d.ts +11 -0
  298. package/dist/insights/components/shared/InsightsCard/ContentAndDescriptionMUI.d.ts +17 -0
  299. package/dist/insights/components/shared/InsightsCard/DescriptionMUI.d.ts +12 -0
  300. package/dist/insights/components/shared/InsightsCard/MiniDescriptionMUI.d.ts +9 -0
  301. package/dist/insights/components/shared/StatusIndicator.d.ts +1 -1
  302. package/dist/insights/components/shared/TransactionCard.d.ts +14 -0
  303. package/dist/insights/index.es.js +1361 -1081
  304. package/dist/insights/store/BeatStore.d.ts +1 -1
  305. package/dist/investments/InvestmentsWidget.d.ts +1 -1
  306. package/dist/investments/api/HoldingApi.d.ts +1 -1
  307. package/dist/investments/components/allocation/util/createInvestementsAllocationData.d.ts +2 -2
  308. package/dist/investments/index.es.js +258 -258
  309. package/dist/investments/stores/HoldingStore.d.ts +2 -1
  310. package/dist/investments/util/InvestmentUtil.d.ts +1 -1
  311. package/dist/merchants/api/MerchantApi.d.ts +1 -1
  312. package/dist/merchants/index.es.js +16 -16
  313. package/dist/merchants/stores/MerchantStore.d.ts +2 -1
  314. package/dist/microinsights/InsightsMicroWidget.d.ts +1 -1
  315. package/dist/microinsights/beaticons/AreaChartIcon.d.ts +3 -0
  316. package/dist/microinsights/beaticons/AverageSpendComparisonIcon.d.ts +3 -0
  317. package/dist/microinsights/beaticons/BeatMaterialIcon.d.ts +5 -1
  318. package/dist/microinsights/beaticons/InstitutionLogoIcon.d.ts +5 -0
  319. package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +0 -2
  320. package/dist/microinsights/beaticons/index.d.ts +3 -0
  321. package/dist/microinsights/cards/InsightCard.d.ts +1 -1
  322. package/dist/microinsights/carousel/BeatList.d.ts +1 -1
  323. package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -1
  324. package/dist/microinsights/carousel/MicroBeatCarousel.d.ts +1 -1
  325. package/dist/microinsights/constants/Analytics.d.ts +1 -1
  326. package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +1 -1
  327. package/dist/microinsights/context/hooks.d.ts +1 -1
  328. package/dist/microinsights/index.es.js +1 -1
  329. package/dist/microinsights/interfaces.d.ts +1 -1
  330. package/dist/microinsights/stores/CopyStore.d.ts +1 -1
  331. package/dist/microinsights/stores/InsightsMicroWidgetStore.d.ts +1 -1
  332. package/dist/microinsights/utils/DataSeries.d.ts +1 -1
  333. package/dist/microinsights/utils/colorType.d.ts +22 -0
  334. package/dist/networth/NetWorthWidget.d.ts +1 -1
  335. package/dist/networth/components/micro/NetworthData.d.ts +1 -1
  336. package/dist/networth/components/micro/ZeroState.d.ts +1 -1
  337. package/dist/networth/index.es.js +181 -174
  338. package/dist/networth/stores/NetWorthStore.d.ts +2 -1
  339. package/dist/networth/types/NetWorth.d.ts +1 -1
  340. package/dist/networth/utils/NetWorthUtils.d.ts +1 -1
  341. package/dist/notifications/components/NotificationBadge.d.ts +1 -1
  342. package/dist/notifications/components/NotificationCard.d.ts +1 -1
  343. package/dist/notifications/components/NotificationDrawer.d.ts +1 -1
  344. package/dist/notifications/components/NotificationList.d.ts +2 -1
  345. package/dist/notifications/index.es.js +104 -92
  346. package/dist/notifications/stores/NotificationStore.d.ts +2 -1
  347. package/dist/notifications/utils/NotificationUtils.d.ts +2 -1
  348. package/dist/recurringtransactions/RecurringTransactionsMiniWidget.d.ts +1 -1
  349. package/dist/recurringtransactions/RecurringTransactionsWidget.d.ts +1 -1
  350. package/dist/recurringtransactions/api/RepeatingTransactionsApi.d.ts +2 -1
  351. package/dist/recurringtransactions/components/PaymentSchedule.d.ts +1 -1
  352. package/dist/recurringtransactions/components/RecurrenceList.d.ts +1 -1
  353. package/dist/recurringtransactions/components/RecurrenceRow.d.ts +1 -1
  354. package/dist/recurringtransactions/components/RecurringTransactionDetails.d.ts +1 -1
  355. package/dist/recurringtransactions/components/actions/PaymentScheduleAction.d.ts +1 -1
  356. package/dist/recurringtransactions/components/micro/MerchantLogosRow.d.ts +1 -1
  357. package/dist/recurringtransactions/components/micro/OverlappingMerchantLogos.d.ts +1 -1
  358. package/dist/recurringtransactions/components/shared/recurringsettings/AddRecurringTransactionDetails.d.ts +1 -1
  359. package/dist/recurringtransactions/components/shared/recurringsettings/RecurringRow.d.ts +1 -1
  360. package/dist/recurringtransactions/index.es.js +477 -451
  361. package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -1
  362. package/dist/recurringtransactions/util/RecurringTransactions.d.ts +1 -1
  363. package/dist/repeatingTransactions-DHIG94pi.mjs +4 -0
  364. package/dist/settings/NotificationSettingsWidget.d.ts +1 -1
  365. package/dist/settings/SettingsWidget.d.ts +1 -1
  366. package/dist/settings/TransactionRulesWidget.d.ts +1 -1
  367. package/dist/settings/api/SettingsApi.d.ts +1 -2
  368. package/dist/settings/components/devices/DeviceDialog.d.ts +1 -1
  369. package/dist/settings/components/devices/DeviceList.d.ts +1 -1
  370. package/dist/settings/components/devices/DeviceTable.d.ts +1 -1
  371. package/dist/settings/components/notifications/AccountNotificationProfile.d.ts +1 -1
  372. package/dist/settings/components/notifications/AccountProfileListItem.d.ts +1 -1
  373. package/dist/settings/components/notifications/NotificationProfile.d.ts +1 -1
  374. package/dist/settings/components/notifications/NotificationSettings.d.ts +1 -1
  375. package/dist/settings/components/transactionrules/actions/EditRuleAction.d.ts +1 -1
  376. package/dist/settings/index.es.js +314 -323
  377. package/dist/settings/stores/SettingsStore.d.ts +3 -2
  378. package/dist/settings/util/Notifications.d.ts +1 -1
  379. package/dist/spending/SpendingMiniWidget.d.ts +1 -1
  380. package/dist/spending/SpendingWidget.d.ts +1 -1
  381. package/dist/spending/index.es.js +167 -166
  382. package/dist/spending/utils/SpendingData.d.ts +1 -1
  383. package/dist/transactions/TransactionWidget.d.ts +1 -1
  384. package/dist/transactions/api/TransactionApi.d.ts +1 -1
  385. package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -1
  386. package/dist/transactions/components/shared/TransactionList.d.ts +1 -1
  387. package/dist/transactions/components/shared/getEmbeddedInstanceSlotByBeatTemplates.d.ts +1 -1
  388. package/dist/transactions/components/shared/transactiondetails/Description.d.ts +1 -1
  389. package/dist/transactions/components/shared/transactiondetails/FlagTransaction.d.ts +1 -1
  390. package/dist/transactions/components/shared/transactiondetails/TransactionAmountHeader.d.ts +1 -1
  391. package/dist/transactions/components/shared/transactiondetails/TransactionDetailsView.d.ts +1 -1
  392. package/dist/transactions/components/shared/transactiondetails/actions/AddMerchantBudgetAction.d.ts +13 -0
  393. package/dist/transactions/components/shared/transactiondetails/actions/CategoryAction.d.ts +1 -1
  394. package/dist/transactions/components/shared/transactiondetails/actions/DateAction.d.ts +1 -1
  395. package/dist/transactions/components/shared/transactiondetails/actions/DeleteAction.d.ts +1 -1
  396. package/dist/transactions/components/shared/transactiondetails/actions/DeleteLogoAction.d.ts +1 -1
  397. package/dist/transactions/components/shared/transactiondetails/actions/HideAction.d.ts +1 -1
  398. package/dist/transactions/components/shared/transactiondetails/actions/MemoAction.d.ts +1 -1
  399. package/dist/transactions/components/shared/transactiondetails/actions/SplitAction.d.ts +1 -1
  400. package/dist/transactions/components/shared/transactiondetails/actions/TagsAction.d.ts +1 -1
  401. package/dist/transactions/components/shared/transactiondetails/actions/index.d.ts +1 -0
  402. package/dist/transactions/components/shared/transactionlist/TransactionRow.d.ts +1 -1
  403. package/dist/transactions/components/splitmanager/SplitManager.d.ts +1 -1
  404. package/dist/transactions/components/splitmanager/SplitRow.d.ts +1 -1
  405. package/dist/transactions/components/tagmanager/TagRow.d.ts +1 -1
  406. package/dist/transactions/components/transactionwidget/actions/EditCategoryAction.d.ts +1 -1
  407. package/dist/transactions/components/transactionwidget/actions/ExportCsvAction.d.ts +1 -1
  408. package/dist/transactions/constants/Actions.d.ts +4 -3
  409. package/dist/transactions/constants/Transaction.d.ts +1 -1
  410. package/dist/transactions/index.es.js +195 -187
  411. package/dist/transactions/stores/TransactionStore.d.ts +2 -1
  412. package/dist/transactions/stores/UiStore.d.ts +1 -1
  413. package/dist/transactions/utils/Filters.d.ts +1 -1
  414. package/dist/transactions/utils/Transactions.d.ts +1 -1
  415. package/dist/transactions/utils/buildDetailedTransactions.d.ts +2 -2
  416. package/dist/transactions/utils/exportTransactionsToCSV.d.ts +1 -1
  417. package/dist/transactions/utils/sortAndFilterTransactions.d.ts +1 -1
  418. package/dist/trends/TrendsFullWidget.d.ts +1 -1
  419. package/dist/trends/TrendsMiniWidget.d.ts +1 -1
  420. package/dist/trends/TrendsWidget.d.ts +1 -1
  421. package/dist/trends/components/CategoriesList.d.ts +1 -1
  422. package/dist/trends/components/CategoriesListItem.d.ts +1 -1
  423. package/dist/trends/components/CategoryDetails.d.ts +3 -0
  424. package/dist/trends/components/TrendsChartTotals.d.ts +1 -1
  425. package/dist/trends/components/TrendsInsights.d.ts +1 -1
  426. package/dist/trends/components/trendstable/AccessibleSortIcon.d.ts +13 -0
  427. package/dist/trends/components/trendstable/TrendsTable.d.ts +1 -1
  428. package/dist/trends/index.es.js +817 -764
  429. package/dist/trends/stores/TrendsStore.d.ts +2 -1
  430. package/dist/trends/utils/SpendingData.d.ts +1 -1
  431. package/dist/trends/utils/TrendsData.d.ts +1 -1
  432. package/dist/trends/utils/TrendsTable.d.ts +1 -1
  433. package/dist/trends/utils/TrendsWidget.d.ts +7 -0
  434. package/dist/trends/utils/shared.d.ts +1 -1
  435. package/dist/{useAccountDisplayName-b2xxcD0C.mjs → useAccountDisplayName-DKwT1mWv.mjs} +1 -1
  436. package/dist/{useCombineEvents-ARuNN9Xh.mjs → useCombineEvents-Bqojlv8q.mjs} +3 -3
  437. package/dist/{useInsightsEnabled-Dd-AfsqC.mjs → useInsightsEnabled-DL_oNyI0.mjs} +1 -1
  438. package/dist/{useWidgetLoadTimer-DmNCCLa-.mjs → useWidgetLoadTimer-DgN1bTyu.mjs} +1 -1
  439. package/package.json +17 -10
  440. package/dist/AccountDetailsHeader-Bn2E0Qjk.mjs +0 -95
  441. package/dist/AccountListItem-k63LpVBs.mjs +0 -90
  442. package/dist/Accounts-CuE8aSZN.mjs +0 -27
  443. package/dist/BudgetUtil-BZiGckNY.mjs +0 -238
  444. package/dist/CashflowStore-naOtJcwo.mjs +0 -91
  445. package/dist/CurrencyInput-BEB3FS70.mjs +0 -85
  446. package/dist/Dialog-jmgGw5WA.mjs +0 -58
  447. package/dist/GlobalAccountFilter-CIF-aT3F.mjs +0 -316
  448. package/dist/GoalStore-BjHKNAVm.mjs +0 -421
  449. package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
  450. package/dist/LineChart-CnscUFUG.mjs +0 -580
  451. package/dist/Loader-icSc5MlE.mjs +0 -24
  452. package/dist/Localization-2MODESHW.mjs +0 -30
  453. package/dist/MicroWidgetContainer-CBRk9KG-.mjs +0 -45
  454. package/dist/MiniWidgetContainer-CXQcSWSl.mjs +0 -56
  455. package/dist/Notification-Bs1fdbzI.mjs +0 -95
  456. package/dist/RecurringTransactions-DlKYwpfK.mjs +0 -296
  457. package/dist/SearchBox-B2_zLv8-.mjs +0 -42
  458. package/dist/SpendingLegend-Bld71d7q.mjs +0 -193
  459. package/dist/StatusIndicator-CNMQeYyJ.mjs +0 -55
  460. package/dist/TransactionDetails-Lvt9GCU5.mjs +0 -1194
  461. package/dist/TransactionList-BDffKJMO.mjs +0 -204
  462. package/dist/User-DS18cMaz.mjs +0 -237
  463. package/dist/ViewMoreMicroCard-YHRLl08A.mjs +0 -1152
  464. package/dist/common/components/barchart/Bar.d.ts +0 -25
  465. package/dist/common/components/barchart/BarChart.d.ts +0 -34
  466. package/dist/common/components/barchart/BarColumn.d.ts +0 -37
  467. package/dist/common/components/barchart/Legend.d.ts +0 -8
  468. package/dist/common/components/barchart/Util.d.ts +0 -42
  469. package/dist/common/components/barchart/index.d.ts +0 -1
  470. package/dist/common/types/SpendingPlan.d.ts +0 -44
  471. package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +0 -7
  472. package/dist/trends/components/CategoryDetailDrawer.d.ts +0 -7
  473. /package/dist/{common → core}/types/Account.d.ts +0 -0
  474. /package/dist/{common → core}/types/Cashflow.d.ts +0 -0
  475. /package/dist/{common → core}/types/Category.d.ts +0 -0
  476. /package/dist/{common → core}/types/Client.d.ts +0 -0
  477. /package/dist/{common → core}/types/Date.d.ts +0 -0
  478. /package/dist/{common → core}/types/Debt.d.ts +0 -0
  479. /package/dist/{common → core}/types/Global.d.ts +0 -0
  480. /package/dist/{common → core}/types/GlobalCopy.d.ts +0 -0
  481. /package/dist/{common → core}/types/Goal.d.ts +0 -0
  482. /package/dist/{common → core}/types/Handlers.d.ts +0 -0
  483. /package/dist/{common → core}/types/Help.d.ts +0 -0
  484. /package/dist/{common → core}/types/Holding.d.ts +0 -0
  485. /package/dist/{common → core}/types/Institution.d.ts +0 -0
  486. /package/dist/{common → core}/types/LocalizedContent.d.ts +0 -0
  487. /package/dist/{common → core}/types/Merchant.d.ts +0 -0
  488. /package/dist/{common → core}/types/RepeatingTransaction.d.ts +0 -0
  489. /package/dist/{common → core}/types/ScheduledPayment.d.ts +0 -0
  490. /package/dist/{common → core}/types/ScreenSize.d.ts +0 -0
  491. /package/dist/{common → core}/types/Transaction.d.ts +0 -0
  492. /package/dist/{common → core}/types/User.d.ts +0 -0
  493. /package/dist/{common → core}/types/Widgets.d.ts +0 -0
  494. /package/dist/{common → core}/types/localization/AccountFilterCopy.d.ts +0 -0
  495. /package/dist/{common → core}/types/localization/AccountTypeCopy.d.ts +0 -0
  496. /package/dist/{common → core}/types/localization/AccountsCopy.d.ts +0 -0
  497. /package/dist/{common → core}/types/localization/AnalyticsCopy.d.ts +0 -0
  498. /package/dist/{common → core}/types/localization/CategoryCopy.d.ts +0 -0
  499. /package/dist/{common → core}/types/localization/ConnectCopy.d.ts +0 -0
  500. /package/dist/{common → core}/types/localization/CurrencyInputCopy.d.ts +0 -0
  501. /package/dist/{common → core}/types/localization/DateRangePickerCopy.d.ts +0 -0
  502. /package/dist/{common → core}/types/localization/FinstrongCopy.d.ts +0 -0
  503. /package/dist/{common → core}/types/localization/GoalsCopy.d.ts +0 -0
  504. /package/dist/{common → core}/types/localization/HelpCopy.d.ts +0 -0
  505. /package/dist/{common → core}/types/localization/InsightsFeedCopy.d.ts +0 -0
  506. /package/dist/{common → core}/types/localization/InvestmentsCopy.d.ts +0 -0
  507. /package/dist/{common → core}/types/localization/MicroInsightsCopy.d.ts +0 -0
  508. /package/dist/{common → core}/types/localization/NetWorthCopy.d.ts +0 -0
  509. /package/dist/{common → core}/types/localization/NotificationsCopy.d.ts +0 -0
  510. /package/dist/{common → core}/types/localization/SettingsCopy.d.ts +0 -0
  511. /package/dist/{common → core}/types/localization/TransactionsCopy.d.ts +0 -0
  512. /package/dist/{common → core}/types/localization/TrendsCopy.d.ts +0 -0
  513. /package/dist/{common → core}/types/localization/index.d.ts +0 -0
@@ -1,88 +1,89 @@
1
- import { g as de, T as i, G as ce, a as Ve, M as Y, C as Te, b as Pe } from "../GoalStore-BjHKNAVm.mjs";
2
- import { c as Hn, d as Un } from "../GoalStore-BjHKNAVm.mjs";
1
+ import { g as de, a as Ve, C as Ae, b as ze } from "../GoalStore-fgXt--2Y.mjs";
2
+ import { G as Yn, c as Zn } from "../GoalStore-fgXt--2Y.mjs";
3
3
  import { jsxs as c, jsx as e, Fragment as $ } from "react/jsx-runtime";
4
4
  import T from "react";
5
5
  import { observer as D } from "mobx-react-lite";
6
- import ze from "@mui/material/Alert";
6
+ import Pe from "@mui/material/Alert";
7
7
  import je from "@mui/material/Snackbar";
8
8
  import y from "@mui/material/Stack";
9
- import re from "@mui/material/Tab";
9
+ import ie from "@mui/material/Tab";
10
10
  import Fe from "@mui/material/Tabs";
11
- import { Text as C, H2 as me, H3 as le, P as Z, Icon as $e, InstitutionLogo as te } from "@mxenabled/mxui";
12
- import _e from "@mui/material/Button";
11
+ import { Text as C, H3 as ce, P as q, Icon as $e, InstitutionLogo as te, H2 as Te } from "@mxenabled/mxui";
12
+ import me from "@mui/material/Button";
13
13
  import Ce from "@mui/material/Card";
14
- import Se from "@mui/material/CardActionArea";
14
+ import xe from "@mui/material/CardActionArea";
15
15
  import Re from "@mui/material/CardContent";
16
- import ye from "@mui/material/Unstable_Grid2";
17
- import ae from "@mui/material/Avatar";
18
- import Xe from "@mui/material/CardHeader";
19
- import { Payments as Ee, NoteStack as xe, Person as ve, ArrowUpwardAlt as He, CheckCircle as Ue, ChevronRight as V, Icon as fe, ExpandLess as Ye, ExpandMore as Ze, AddBox as Ie, Trophy as qe } from "@mxenabled/mx-icons";
20
- import { S as Je } from "../StatusBar-CPfSXe80.mjs";
21
- import { u as S, l as G, b as ue, a as pe, d as z, o as Ge, g as Ne } from "../hooks-CBl85iRr.mjs";
22
- import { u as he } from "../useScreenSize-B6JyS_Lj.mjs";
23
- import { f as I } from "../NumberFormatting-DjTD0t3W.mjs";
16
+ import fe from "@mui/material/Unstable_Grid2";
17
+ import oe from "@mui/material/Avatar";
18
+ import He from "@mui/material/CardHeader";
19
+ import { Payments as Se, NoteStack as Ee, Person as ve, ArrowUpwardAlt as Ue, CheckCircle as Ye, ChevronRight as V, Icon as ye, ExpandLess as Ze, ExpandMore as qe, AddBox as Ie, Trophy as Je } from "@mxenabled/mx-icons";
20
+ import { u as x, k as G, b as ue, a as _e, d as P, o as Ge, g as Ne } from "../hooks-BxkfR-Ff.mjs";
21
+ import { u as pe } from "../useScreenSize-B6JyS_Lj.mjs";
22
+ import { T as r, G as le, M as Z } from "../Goal-0loDagc5.mjs";
23
+ import { f as I } from "../NumberFormatting-QCaNwbjv.mjs";
24
+ import { S as Qe } from "../StatusBar-BK_uYHAB.mjs";
24
25
  import v from "@mui/material/Divider";
25
26
  import L from "@mui/material/List";
26
- import { C as ke } from "../CurrencyInput-BEB3FS70.mjs";
27
- import { L as q } from "../ListItemAction-engf-T9W.mjs";
27
+ import { L as J } from "../ListItemAction-4KB7P75M.mjs";
28
+ import { C as ke } from "../CurrencyInput-DuMktPu3.mjs";
28
29
  import { fromUnixTime as ne } from "date-fns/fromUnixTime";
29
- import Qe from "@mui/material/IconButton";
30
+ import Xe from "@mui/material/IconButton";
30
31
  import k from "@mui/material/ListItem";
31
- import P from "@mui/material/ListItemAvatar";
32
+ import z from "@mui/material/ListItemAvatar";
32
33
  import M from "@mui/material/ListItemButton";
33
34
  import w from "@mui/material/ListItemText";
34
- import { b as O } from "../Localization-2MODESHW.mjs";
35
- import { f as be, D as ge } from "../DateFormats-Cs-NbEZ7.mjs";
36
- import { D as J } from "../Drawer-Bet2ZPJo.mjs";
35
+ import { b as W } from "../Localization-CPkpIwIx.mjs";
36
+ import { f as he, D as be } from "../DateFormats-BMpMrZpW.mjs";
37
+ import { D as Q } from "../Drawer-Bbe4AMB1.mjs";
37
38
  import { g as we } from "../AccountDisplayName-CO7z3v99.mjs";
38
39
  import et from "@mui/material/Collapse";
39
40
  import tt from "@mui/material/ListItemIcon";
40
41
  import nt from "@mui/material/Checkbox";
41
- import { A as Ae } from "../Account-CMjOp7S2.mjs";
42
- import { u as at } from "../useAccountDisplayName-b2xxcD0C.mjs";
42
+ import { A as ge } from "../Account-BiB1F8lL.mjs";
43
+ import { u as ot } from "../useAccountDisplayName-DKwT1mWv.mjs";
43
44
  import De from "@mui/material/TextField";
44
- import { M as ot, I as rt, O as it } from "../OriginalBalanceAction-CYqr8z8w.mjs";
45
+ import { M as at, I as it, O as rt } from "../OriginalBalanceAction-DjpvVVFz.mjs";
45
46
  import { getUnixTime as st } from "date-fns/getUnixTime";
46
47
  import { isValid as ct } from "date-fns/isValid";
47
48
  import { AdapterDateFns as lt } from "@mui/x-date-pickers/AdapterDateFnsV3";
48
49
  import { DatePicker as dt } from "@mui/x-date-pickers";
49
50
  import { LocalizationProvider as mt } from "@mui/x-date-pickers/LocalizationProvider";
50
- import { D as _t } from "../Dialog-jmgGw5WA.mjs";
51
- import { L as Ke } from "../Loader-icSc5MlE.mjs";
52
- import { u as Me } from "../useWidgetLoadTimer-DmNCCLa-.mjs";
53
- import { A as X } from "../Analytics-i5h6BxR1.mjs";
54
- import { W as ut } from "../WidgetContainer-DFwVgavi.mjs";
51
+ import { D as ut } from "../Dialog-Ck34yr-d.mjs";
52
+ import { u as Ke } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
53
+ import { A as H } from "../Analytics-BYItVAe-.mjs";
54
+ import { L as Me } from "../Loader-D3rjKx72.mjs";
55
+ import { W as _t } from "../WidgetContainer-B7xDq2bM.mjs";
55
56
  import { E as pt } from "../EmptyState-DHAkGsjk.mjs";
56
57
  import ht from "@mui/material/Stack/Stack";
57
58
  import bt from "@mui/material/Box";
58
- import gt from "@mui/material/styles/useTheme";
59
- import { S as yt } from "../SingleSegmentDonut-PsRQPkmV.mjs";
60
- import { M as ft } from "../MicroWidgetContainer-CBRk9KG-.mjs";
61
- function ie({ title: t, subtitle: n }) {
59
+ import ft from "@mui/material/styles/useTheme";
60
+ import { S as yt } from "../SingleSegmentDonut-BgbLgwHi.mjs";
61
+ import { M as gt } from "../MicroWidgetContainer-B_EnfvCq.mjs";
62
+ function re({ title: t, subtitle: n }) {
62
63
  return /* @__PURE__ */ c(y, { children: [
63
- /* @__PURE__ */ e(C, { bold: !0, variant: "Body", children: t }),
64
- /* @__PURE__ */ e(C, { sx: { fontWeight: 400 }, variant: "Body", children: n })
64
+ /* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: t }),
65
+ /* @__PURE__ */ e(C, { sx: { fontWeight: 400 }, variant: "body1", children: n })
65
66
  ] });
66
67
  }
67
68
  const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
68
69
  /(\d+)(?:\.0+|(\.\d*?[1-9])0*)([a-zA-Z]* ?\$?)/g,
69
70
  "$1$2$3"
70
71
  ) : I(t, "0,0.00"), Le = D(
71
- ({ goal: t, isInDrawer: n = !1, onClick: _ }) => {
72
- const { goals: l } = S(), { isMobile: u, isTablet: r } = he(), d = u || r, {
72
+ ({ goal: t, isInDrawer: n = !1, onClick: u }) => {
73
+ const { goals: l } = x(), { isMobile: _, isTablet: i } = pe(), d = _ || i, {
73
74
  backgroundColor: s,
74
75
  color: p,
75
76
  percentage: h,
76
- percentageText: o,
77
- projectedText: a
78
- } = de(l, t), b = t.track_type === i.DEBT_TRACK ? t.initial_amount : t.amount, m = [
77
+ percentageText: a,
78
+ projectedText: o
79
+ } = de(l, t), b = t.track_type === r.DEBT_TRACK ? t.initial_amount : t.amount, m = [
79
80
  {
80
81
  color: s,
81
82
  percentage: `${h}`
82
83
  }
83
84
  ];
84
- let f = /* @__PURE__ */ e(Ee, {});
85
- return t.track_type === i.DEBT_TRACK ? f = /* @__PURE__ */ e(xe, {}) : t.track_type === i.RETIREMENT_TRACK && (f = /* @__PURE__ */ e(ve, {})), /* @__PURE__ */ e(
85
+ let g = /* @__PURE__ */ e(Se, {});
86
+ return t.track_type === r.DEBT_TRACK ? g = /* @__PURE__ */ e(Ee, {}) : t.track_type === r.RETIREMENT_TRACK && (g = /* @__PURE__ */ e(ve, {})), /* @__PURE__ */ e(
86
87
  Ce,
87
88
  {
88
89
  elevation: 2,
@@ -92,23 +93,48 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
92
93
  outlineColor: "primary.main"
93
94
  }
94
95
  },
95
- children: /* @__PURE__ */ c(Se, { disabled: !_, onClick: _, children: [
96
+ children: /* @__PURE__ */ c(xe, { disabled: !u, onClick: u, children: [
96
97
  /* @__PURE__ */ e(
97
- Xe,
98
+ He,
98
99
  {
99
- avatar: /* @__PURE__ */ e(ae, { sx: { bgcolor: s, color: p, height: 48, width: 48 }, variant: "rounded", children: f }),
100
- subheader: /* @__PURE__ */ e(C, { variant: n || d ? "H3" : "H2", children: `${I(t.current_amount, d ? "0,0" : "0,0.00")} / ${At(
101
- b,
102
- d
103
- )}` }),
104
- title: /* @__PURE__ */ e(me, { color: "text.secondary", fontWeight: 400, variant: "Body", children: t.name })
100
+ avatar: /* @__PURE__ */ e(oe, { sx: { bgcolor: s, color: p, height: 48, width: 48 }, variant: "rounded", children: g }),
101
+ subheader: /* @__PURE__ */ e(
102
+ C,
103
+ {
104
+ sx: {
105
+ fontWeight: 700,
106
+ fontSize: n || d ? "18px" : "23px",
107
+ lineHeight: n || d ? "24px" : "32px"
108
+ },
109
+ children: `${I(t.current_amount, d ? "0,0" : "0,0.00")} / ${At(
110
+ b,
111
+ d
112
+ )}`
113
+ }
114
+ ),
115
+ sx: { alignItems: "flex-start", "& .MuiCardHeader-content": { minWidth: 0 } },
116
+ title: /* @__PURE__ */ e(
117
+ C,
118
+ {
119
+ color: "text.secondary",
120
+ fontWeight: 400,
121
+ sx: {
122
+ fontSize: "15px",
123
+ lineHeight: "20px",
124
+ whiteSpace: "normal",
125
+ overflowWrap: "break-word"
126
+ },
127
+ variant: "h4",
128
+ children: t.name
129
+ }
130
+ )
105
131
  }
106
132
  ),
107
133
  /* @__PURE__ */ e(Re, { sx: { pt: 0 }, children: /* @__PURE__ */ c(y, { gap: 6, children: [
108
- /* @__PURE__ */ e(Je, { data: m, height: 24 }),
134
+ /* @__PURE__ */ e(Qe, { data: m, height: 24 }),
109
135
  /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
110
- /* @__PURE__ */ e(C, { color: "text.secondary", variant: "XSmall", children: o }),
111
- t.projected_to_complete_at && /* @__PURE__ */ e(C, { color: "text.secondary", variant: "XSmall", children: a })
136
+ /* @__PURE__ */ e(C, { color: "text.secondary", variant: "caption", children: a }),
137
+ t.projected_to_complete_at && /* @__PURE__ */ e(C, { color: "text.secondary", variant: "caption", children: o })
112
138
  ] })
113
139
  ] }) })
114
140
  ] })
@@ -116,28 +142,28 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
116
142
  );
117
143
  }
118
144
  ), Tt = D(({ trackType: t }) => {
119
- const { goals: n } = S(), { setAlert: _, monthlyCashFlowProfile: l, updateMonthlyCashFlowProfile: u } = G(), r = T.useMemo(() => {
120
- let o = 0;
121
- return t === i.SAVINGS_TRACK ? o = l?.amount_allocated_for_savings_goals || 0 : t === i.DEBT_TRACK ? o = l?.amount_allocated_for_debt_goals || 0 : t === i.RETIREMENT_TRACK && (o = l?.amount_allocated_for_retirement_goals || 0), o;
145
+ const { goals: n } = x(), { setAlert: u, monthlyCashFlowProfile: l, updateMonthlyCashFlowProfile: _ } = G(), i = T.useMemo(() => {
146
+ let a = 0;
147
+ return t === r.SAVINGS_TRACK ? a = l?.amount_allocated_for_savings_goals || 0 : t === r.DEBT_TRACK ? a = l?.amount_allocated_for_debt_goals || 0 : t === r.RETIREMENT_TRACK && (a = l?.amount_allocated_for_retirement_goals || 0), a;
122
148
  }, [l]);
123
149
  T.useEffect(() => {
124
- s(r);
125
- }, [r]);
126
- const [d, s] = T.useState(r), p = d < 0 || d > 99999999, h = async () => {
150
+ s(i);
151
+ }, [i]);
152
+ const [d, s] = T.useState(i), p = d < 0 || d > 99999999, h = async () => {
127
153
  if (l) {
128
- const o = { ...l };
129
- t === i.SAVINGS_TRACK ? o.amount_allocated_for_savings_goals = d : t === i.DEBT_TRACK ? o.amount_allocated_for_debt_goals = d : t === i.RETIREMENT_TRACK && (o.amount_allocated_for_retirement_goals = d), await u(o), _(n.alert_contribution_updated);
154
+ const a = { ...l };
155
+ t === r.SAVINGS_TRACK ? a.amount_allocated_for_savings_goals = d : t === r.DEBT_TRACK ? a.amount_allocated_for_debt_goals = d : t === r.RETIREMENT_TRACK && (a.amount_allocated_for_retirement_goals = d), await _(a), u(n.alert_contribution_updated);
130
156
  }
131
157
  };
132
158
  return /* @__PURE__ */ e(y, { bgcolor: "background.paper", children: /* @__PURE__ */ e(
133
- q,
159
+ J,
134
160
  {
135
161
  isSaveDisabled: !d || isNaN(d),
136
162
  label: n.contribution_label,
137
- onCancel: () => s(r),
163
+ onCancel: () => s(i),
138
164
  onSave: h,
139
165
  primaryText: n.contribution_label,
140
- secondaryText: I(r, "0,0.00"),
166
+ secondaryText: I(i, "0,0.00"),
141
167
  children: /* @__PURE__ */ e(
142
168
  ke,
143
169
  {
@@ -146,22 +172,22 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
146
172
  error: p,
147
173
  fullWidth: !0,
148
174
  minAmount: 0,
149
- setAmount: (o) => s(isNaN(Number(o)) ? d : Number(o)),
150
- sx: { ".MuiTypography-Body": { p: 0 } }
175
+ setAmount: (a) => s(isNaN(Number(a)) ? d : Number(a)),
176
+ sx: { ".MuiTypography-body1": { p: 0 } }
151
177
  }
152
178
  )
153
179
  }
154
180
  ) });
155
- }), Ct = ({ goal: t, index: n, onUpClick: _ }) => {
156
- const { goals: l } = S(), { percentage: u } = de(l, t), r = t.goal_type === ce.KEEP_BALANCE_BELOW || t.has_been_spent ? l.goal_completed : O(l.goal_percentage_reached, `${u * 100}`);
181
+ }), Ct = ({ goal: t, index: n, onUpClick: u }) => {
182
+ const { goals: l } = x(), { percentage: _ } = de(l, t), i = t.goal_type === le.KEEP_BALANCE_BELOW || t.has_been_spent ? l.goal_completed : W(l.goal_percentage_reached, `${_ * 100}`);
157
183
  return /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(
158
184
  M,
159
185
  {
160
186
  disableRipple: !0,
161
187
  sx: { ":hover": { backgroundColor: "unset" }, cursor: "default" },
162
188
  children: [
163
- t.track_type !== i.RETIREMENT_TRACK && /* @__PURE__ */ e(
164
- P,
189
+ t.track_type !== r.RETIREMENT_TRACK && /* @__PURE__ */ e(
190
+ z,
165
191
  {
166
192
  sx: {
167
193
  alignItems: "center",
@@ -169,97 +195,97 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
169
195
  justifyContent: "center",
170
196
  ".MuiAvatar-root": { height: "16px", width: "16px" }
171
197
  },
172
- children: t.track_type === i.SAVINGS_TRACK ? /* @__PURE__ */ e(Qe, { onClick: () => _?.(t), children: /* @__PURE__ */ e(He, { color: "primary", size: 24 }) }) : /* @__PURE__ */ e(ae, { sx: { bgcolor: "text.primary", height: "16px", width: "16px" }, children: /* @__PURE__ */ e(C, { bold: !0, variant: "XSmall", children: n + 1 }) })
198
+ children: t.track_type === r.SAVINGS_TRACK ? /* @__PURE__ */ e(Xe, { onClick: () => u?.(t), children: /* @__PURE__ */ e(Ue, { color: "primary", size: 24 }) }) : /* @__PURE__ */ e(oe, { sx: { bgcolor: "text.primary", height: "16px", width: "16px" }, children: /* @__PURE__ */ e(C, { bold: !0, variant: "caption", children: n + 1 }) })
173
199
  }
174
200
  ),
175
- /* @__PURE__ */ e(w, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
201
+ /* @__PURE__ */ e(w, { primaryTypographyProps: { variant: "body1" }, children: /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
176
202
  /* @__PURE__ */ c(y, { sx: { maxWidth: "70%" }, children: [
177
- /* @__PURE__ */ e(C, { bold: !0, variant: "Body", children: t.name }),
178
- /* @__PURE__ */ e(C, { variant: "XSmall", children: t.is_complete ? r : O(
203
+ /* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: t.name }),
204
+ /* @__PURE__ */ e(C, { variant: "caption", children: t.is_complete ? i : W(
179
205
  l.goal_projection,
180
- be(
206
+ he(
181
207
  ne(t.projected_to_complete_at || 0),
182
- ge.MONTH_SHORT_YEAR
208
+ be.MONTH_SHORT_YEAR
183
209
  )
184
210
  ) })
185
211
  ] }),
186
- /* @__PURE__ */ e(C, { bold: !0, variant: "Body", children: I(t.amount, "0,0.00") })
212
+ /* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: I(t.amount, "0,0.00") })
187
213
  ] }) })
188
214
  ]
189
215
  }
190
216
  ) });
191
- }, St = ({ goal: t }) => {
192
- const { goals: n } = S();
217
+ }, xt = ({ goal: t }) => {
218
+ const { goals: n } = x();
193
219
  return /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(
194
220
  M,
195
221
  {
196
222
  disableRipple: !0,
197
223
  sx: { ":hover": { backgroundColor: "unset" }, cursor: "default" },
198
224
  children: [
199
- /* @__PURE__ */ e(P, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(Ue, { color: "success", filled: !0, size: 20 }) }),
200
- /* @__PURE__ */ e(w, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
225
+ /* @__PURE__ */ e(z, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(Ye, { color: "success", filled: !0, size: 20 }) }),
226
+ /* @__PURE__ */ e(w, { primaryTypographyProps: { variant: "body1" }, children: /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
201
227
  /* @__PURE__ */ c(y, { children: [
202
- /* @__PURE__ */ e(C, { bold: !0, variant: "Body", children: t.name }),
203
- /* @__PURE__ */ e(C, { variant: "XSmall", children: O(
228
+ /* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: t.name }),
229
+ /* @__PURE__ */ e(C, { variant: "caption", children: W(
204
230
  n.completed_label,
205
- be(
231
+ he(
206
232
  ne(t.completed_at || 0),
207
- ge.MONTH_SHORT_YEAR
233
+ be.MONTH_SHORT_YEAR
208
234
  )
209
235
  ) })
210
236
  ] }),
211
- /* @__PURE__ */ e(C, { bold: !0, variant: "Body", children: I(t.amount, "0,0.00") })
237
+ /* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: I(t.amount, "0,0.00") })
212
238
  ] }) })
213
239
  ]
214
240
  }
215
241
  ) }, t.guid);
216
242
  }, Rt = ({ trackType: t }) => {
217
- const { goals: n, common: _ } = S(), { loadGoals: l, orderedGoals: u, reorderGoals: r } = G(), d = u.filter((g) => g.track_type === t), s = d.filter(
218
- (g) => g.track_type === i.SAVINGS_TRACK && !g.has_been_spent || g.track_type !== i.SAVINGS_TRACK && !g.is_complete
243
+ const { goals: n, common: u } = x(), { loadGoals: l, orderedGoals: _, reorderGoals: i } = G(), d = _.filter((f) => f.track_type === t), s = d.filter(
244
+ (f) => f.track_type === r.SAVINGS_TRACK && !f.has_been_spent || f.track_type !== r.SAVINGS_TRACK && !f.is_complete
219
245
  ), p = d.filter(
220
- (g) => g.track_type === i.SAVINGS_TRACK && g.has_been_spent || g.track_type !== i.SAVINGS_TRACK && g.is_complete
221
- ), [h, o] = T.useState(!1);
222
- let a = n.manage_saving_goals, b = n.manage_saving_drawer_title, m = n.manage_saving_title, f = n.manage_saving_description;
223
- t === i.DEBT_TRACK ? (a = n.manage_debt_goals, b = n.manage_debt_drawer_title, m = n.manage_debt_title, f = n.manage_debt_description) : t === i.RETIREMENT_TRACK && (a = n.manage_retirement_goals, b = n.manage_retirement_drawer_title, m = n.manage_retirement_title, f = n.manage_retirement_description);
224
- const R = async (g) => {
225
- const A = [...s], E = A.findIndex((K) => K.guid === g.guid);
226
- let N = E - 1;
227
- N < 0 && (N = A.length - 1), A.splice(N, 0, A.splice(E, 1)[0]);
246
+ (f) => f.track_type === r.SAVINGS_TRACK && f.has_been_spent || f.track_type !== r.SAVINGS_TRACK && f.is_complete
247
+ ), [h, a] = T.useState(!1);
248
+ let o = n.manage_saving_goals, b = n.manage_saving_drawer_title, m = n.manage_saving_title, g = n.manage_saving_description;
249
+ t === r.DEBT_TRACK ? (o = n.manage_debt_goals, b = n.manage_debt_drawer_title, m = n.manage_debt_title, g = n.manage_debt_description) : t === r.RETIREMENT_TRACK && (o = n.manage_retirement_goals, b = n.manage_retirement_drawer_title, m = n.manage_retirement_title, g = n.manage_retirement_description);
250
+ const R = async (f) => {
251
+ const A = [...s], S = A.findIndex((K) => K.guid === f.guid);
252
+ let N = S - 1;
253
+ N < 0 && (N = A.length - 1), A.splice(N, 0, A.splice(S, 1)[0]);
228
254
  for (let K = 0; K < A.length; K++)
229
255
  A[K].position = K + 1;
230
- await r(A), await l();
256
+ await i(A), await l();
231
257
  };
232
258
  return /* @__PURE__ */ c(y, { children: [
233
- /* @__PURE__ */ e(_e, { endIcon: /* @__PURE__ */ e(V, {}), onClick: () => o(!0), children: a }),
259
+ /* @__PURE__ */ e(me, { endIcon: /* @__PURE__ */ e(V, {}), onClick: () => a(!0), children: o }),
234
260
  /* @__PURE__ */ e(
235
- J,
261
+ Q,
236
262
  {
237
- ariaLabelClose: _.close_aria,
263
+ ariaLabelClose: u.close_aria,
238
264
  isOpen: h,
239
- onClose: () => o(!1),
265
+ onClose: () => a(!1),
240
266
  title: b,
241
267
  children: /* @__PURE__ */ c(y, { children: [
242
268
  /* @__PURE__ */ c(y, { m: 24, children: [
243
- /* @__PURE__ */ e(le, { children: m }),
244
- /* @__PURE__ */ e(Z, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: f })
269
+ /* @__PURE__ */ e(ce, { children: m }),
270
+ /* @__PURE__ */ e(q, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "subtitle2", children: g })
245
271
  ] }),
246
272
  /* @__PURE__ */ e(Tt, { trackType: t }),
247
- /* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "XSmall", children: n.goal_priority }),
248
- /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: s.map((g, A) => {
249
- const E = A >= s.length - 1;
273
+ /* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "caption", children: n.goal_priority }),
274
+ /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: s.map((f, A) => {
275
+ const S = A >= s.length - 1;
250
276
  return /* @__PURE__ */ c(y, { children: [
251
- /* @__PURE__ */ e(Ct, { goal: g, index: A, onUpClick: R }),
252
- /* @__PURE__ */ e(v, { variant: E ? "fullWidth" : "inset" })
253
- ] }, `ongoing-${g.guid}`);
277
+ /* @__PURE__ */ e(Ct, { goal: f, index: A, onUpClick: R }),
278
+ /* @__PURE__ */ e(v, { variant: S ? "fullWidth" : "inset" })
279
+ ] }, `ongoing-${f.guid}`);
254
280
  }) }),
255
- t !== i.RETIREMENT_TRACK && p.length > 0 && /* @__PURE__ */ c(y, { children: [
256
- /* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "XSmall", children: n.complete_title }),
257
- /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: p.map((g, A) => {
258
- const E = A > s.length - 1;
281
+ t !== r.RETIREMENT_TRACK && p.length > 0 && /* @__PURE__ */ c(y, { children: [
282
+ /* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "caption", children: n.complete_title }),
283
+ /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: p.map((f, A) => {
284
+ const S = A > s.length - 1;
259
285
  return /* @__PURE__ */ c(y, { children: [
260
- /* @__PURE__ */ e(St, { goal: g }),
261
- /* @__PURE__ */ e(v, { variant: E ? "fullWidth" : "inset" })
262
- ] }, `complete-${g.guid}`);
286
+ /* @__PURE__ */ e(xt, { goal: f }),
287
+ /* @__PURE__ */ e(v, { variant: S ? "fullWidth" : "inset" })
288
+ ] }, `complete-${f.guid}`);
263
289
  }) })
264
290
  ] })
265
291
  ] })
@@ -267,21 +293,21 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
267
293
  )
268
294
  ] });
269
295
  }, se = D(({ trackType: t, onAddGoals: n }) => {
270
- const { isMobile: _ } = he(), { goals: l } = S(), { selectedAccountGuids: u } = ue(), { orderedGoals: r, setSelectedGoal: d } = G(), s = r.filter(
271
- (a) => a.track_type === t && (a.track_type !== i.RETIREMENT_TRACK && u.includes(a.account_guid) || a.track_type === i.RETIREMENT_TRACK)
296
+ const { isMobile: u } = pe(), { goals: l } = x(), { selectedAccountGuids: _ } = ue(), { orderedGoals: i, setSelectedGoal: d } = G(), s = i.filter(
297
+ (o) => o.track_type === t && (o.track_type !== r.RETIREMENT_TRACK && _.includes(o.account_guid) || o.track_type === r.RETIREMENT_TRACK)
272
298
  ), p = s.filter(
273
- (a) => a.track_type === i.SAVINGS_TRACK && !a.has_been_spent || a.track_type !== i.SAVINGS_TRACK && !a.is_complete
299
+ (o) => o.track_type === r.SAVINGS_TRACK && !o.has_been_spent || o.track_type !== r.SAVINGS_TRACK && !o.is_complete
274
300
  ), h = s.filter(
275
- (a) => a.track_type === i.SAVINGS_TRACK && a.has_been_spent || a.track_type !== i.SAVINGS_TRACK && a.is_complete
276
- ), o = t === i.DEBT_TRACK ? l.zero_state_complete_debt : l.zero_state_complete_savings;
277
- return /* @__PURE__ */ c(y, { mt: 16, mx: _ ? 24 : 0, children: [
301
+ (o) => o.track_type === r.SAVINGS_TRACK && o.has_been_spent || o.track_type !== r.SAVINGS_TRACK && o.is_complete
302
+ ), a = t === r.DEBT_TRACK ? l.zero_state_complete_debt : l.zero_state_complete_savings;
303
+ return /* @__PURE__ */ c(y, { mt: 16, mx: u ? 24 : 0, children: [
278
304
  /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", justifyContent: "space-between", mb: 8, children: [
279
- /* @__PURE__ */ e(le, { color: "text.secondary", variant: "Small", children: l.ongoing_title }),
305
+ /* @__PURE__ */ e(ce, { color: "text.secondary", variant: "body2", children: l.ongoing_title }),
280
306
  /* @__PURE__ */ e(Rt, { trackType: t })
281
307
  ] }),
282
- p.length > 0 ? /* @__PURE__ */ e(ye, { container: !0, spacing: 24, children: p.map((a, b, m) => (
308
+ p.length > 0 ? /* @__PURE__ */ e(fe, { container: !0, spacing: 24, children: p.map((o, b, m) => (
283
309
  // Goal should be full width in mobile or if it's the first goal (unless there are 2)
284
- /* @__PURE__ */ e(ye, { xs: _ || b === 0 && m.length !== 2 ? 12 : 6, children: /* @__PURE__ */ e(Le, { goal: a, onClick: () => d(a) }, a.guid) }, b)
310
+ /* @__PURE__ */ e(fe, { xs: u || b === 0 && m.length !== 2 ? 12 : 6, children: /* @__PURE__ */ e(Le, { goal: o, onClick: () => d(o) }, o.guid) }, b)
285
311
  )) }) : /* @__PURE__ */ c(
286
312
  y,
287
313
  {
@@ -293,173 +319,173 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
293
319
  py: 18,
294
320
  children: [
295
321
  /* @__PURE__ */ e(
296
- Z,
322
+ q,
297
323
  {
298
- sx: (a) => ({
324
+ sx: (o) => ({
299
325
  color: "text.secondary",
300
- [a.breakpoints.down("sm")]: {
326
+ [o.breakpoints.down("sm")]: {
301
327
  px: 10
302
328
  },
303
329
  width: { sm: 381 }
304
330
  }),
305
- variant: "Small",
331
+ variant: "body2",
306
332
  children: Ve(t, l)
307
333
  }
308
334
  ),
309
- /* @__PURE__ */ e(_e, { onClick: n, sx: { mt: 16, width: { sm: 224 } }, variant: "contained", children: l.add_goals_button })
335
+ /* @__PURE__ */ e(me, { onClick: n, sx: { mt: 16, width: { sm: 224 } }, variant: "contained", children: l.add_goals_button })
310
336
  ]
311
337
  }
312
338
  ),
313
- t !== i.RETIREMENT_TRACK && /* @__PURE__ */ c(y, { gap: 16, mt: 48, children: [
314
- /* @__PURE__ */ e(le, { color: "text.secondary", variant: "Small", children: l.complete_title }),
339
+ t !== r.RETIREMENT_TRACK && /* @__PURE__ */ c(y, { gap: 16, mt: 48, children: [
340
+ /* @__PURE__ */ e(ce, { color: "text.secondary", variant: "body2", children: l.complete_title }),
315
341
  h.length === 0 && /* @__PURE__ */ e(y, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ e(
316
- Z,
342
+ q,
317
343
  {
318
- sx: (a) => ({
344
+ sx: (o) => ({
319
345
  color: "text.secondary",
320
346
  width: { sm: 393 },
321
- [a.breakpoints.down("sm")]: {
347
+ [o.breakpoints.down("sm")]: {
322
348
  px: 10
323
349
  }
324
350
  }),
325
- variant: "Small",
326
- children: o
351
+ variant: "body2",
352
+ children: a
327
353
  }
328
354
  ) }),
329
- h.map((a) => /* @__PURE__ */ e(Ce, { elevation: 2, children: /* @__PURE__ */ e(Se, { onClick: () => d(a), children: /* @__PURE__ */ e(Re, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
355
+ h.map((o) => /* @__PURE__ */ e(Ce, { elevation: 2, children: /* @__PURE__ */ e(xe, { onClick: () => d(o), children: /* @__PURE__ */ e(Re, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
330
356
  /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", gap: 6, children: [
331
357
  /* @__PURE__ */ e($e, { color: "success", fill: !0, name: "check_circle", size: 20 }),
332
- /* @__PURE__ */ e(C, { color: "text.secondary", variant: "Body", children: a.name })
358
+ /* @__PURE__ */ e(C, { color: "text.secondary", variant: "body1", children: o.name })
333
359
  ] }),
334
- /* @__PURE__ */ e(C, { bold: !0, variant: "Body", children: I(a.amount, "0,0.00") })
335
- ] }) }) }) }, a.guid))
360
+ /* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: I(o.amount, "0,0.00") })
361
+ ] }) }) }) }, o.guid))
336
362
  ] })
337
363
  ] });
338
- }), Et = ({ goalType: t, onClick: n }) => {
339
- const { goals: _ } = S(), { bgcolor: l, icon: u, label: r, description: d, subTypes: s, type: p } = t, [h, o] = T.useState(!1), a = s.length > 0;
364
+ }), St = ({ goalType: t, onClick: n }) => {
365
+ const { goals: u } = x(), { bgcolor: l, icon: _, label: i, description: d, subTypes: s, type: p } = t, [h, a] = T.useState(!1), o = s.length > 0;
340
366
  return /* @__PURE__ */ e(y, { children: /* @__PURE__ */ c(L, { sx: { bgcolor: "background.paper" }, children: [
341
367
  /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(
342
368
  M,
343
369
  {
344
- onClick: a ? () => o(!h) : () => n(
345
- p === i.RETIREMENT_TRACK ? _.retirement : "",
346
- p === i.RETIREMENT_TRACK ? Y.RETIREMENT : Y.OTHER,
370
+ onClick: o ? () => a(!h) : () => n(
371
+ p === r.RETIREMENT_TRACK ? u.retirement : "",
372
+ p === r.RETIREMENT_TRACK ? Z.RETIREMENT : Z.OTHER,
347
373
  p
348
374
  ),
349
375
  children: [
350
- /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(ae, { sx: { bgcolor: l }, variant: "rounded", children: /* @__PURE__ */ e(fe, { name: u, sx: { color: "grey.900" } }) }) }),
351
- /* @__PURE__ */ e(w, { primary: r, secondary: d, sx: { mr: 24 } }),
352
- !a && /* @__PURE__ */ e(V, {}),
353
- a && (h ? /* @__PURE__ */ e(Ye, {}) : /* @__PURE__ */ e(Ze, {}))
376
+ /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(oe, { sx: { bgcolor: l }, variant: "rounded", children: /* @__PURE__ */ e(ye, { name: _, sx: { color: "grey.900" } }) }) }),
377
+ /* @__PURE__ */ e(w, { primary: i, secondary: d, sx: { mr: 24 } }),
378
+ !o && /* @__PURE__ */ e(V, {}),
379
+ o && (h ? /* @__PURE__ */ e(Ze, {}) : /* @__PURE__ */ e(qe, {}))
354
380
  ]
355
381
  }
356
382
  ) }),
357
383
  /* @__PURE__ */ e(v, { variant: "inset" }),
358
- a && /* @__PURE__ */ e(et, { in: h, children: /* @__PURE__ */ e(L, { sx: { bgcolor: "background.default" }, children: s.map((b, m) => /* @__PURE__ */ e(k, { sx: { pl: 48 }, children: /* @__PURE__ */ c(M, { onClick: () => n(b.label, b.metaType, p), children: [
359
- /* @__PURE__ */ e(tt, { sx: { mr: 8 }, children: /* @__PURE__ */ e(fe, { name: b.icon }) }),
384
+ o && /* @__PURE__ */ e(et, { in: h, children: /* @__PURE__ */ e(L, { sx: { bgcolor: "background.default" }, children: s.map((b, m) => /* @__PURE__ */ e(k, { sx: { pl: 48 }, children: /* @__PURE__ */ c(M, { onClick: () => n(b.label, b.metaType, p), children: [
385
+ /* @__PURE__ */ e(tt, { sx: { mr: 8 }, children: /* @__PURE__ */ e(ye, { name: b.icon }) }),
360
386
  /* @__PURE__ */ e(
361
387
  w,
362
388
  {
363
389
  primary: b.label,
364
- primaryTypographyProps: { variant: "Body" }
390
+ primaryTypographyProps: { variant: "body1" }
365
391
  }
366
392
  ),
367
393
  /* @__PURE__ */ e(V, {})
368
394
  ] }) }, m)) }) })
369
395
  ] }) });
370
- }, Be = ({
396
+ }, Oe = ({
371
397
  accounts: t,
372
398
  isOpen: n,
373
- onClose: _,
399
+ onClose: u,
374
400
  onSave: l,
375
- title: u
401
+ title: _
376
402
  }) => {
377
- const { goals: r, common: d } = S(), { config: s } = pe(), [p, h] = T.useState([]), o = (a) => {
378
- const b = p.findIndex((f) => f.guid === a.guid), m = [...p];
379
- b >= 0 ? m.splice(b, 1) : m.push(a), h(m);
403
+ const { goals: i, common: d } = x(), { config: s } = _e(), [p, h] = T.useState([]), a = (o) => {
404
+ const b = p.findIndex((g) => g.guid === o.guid), m = [...p];
405
+ b >= 0 ? m.splice(b, 1) : m.push(o), h(m);
380
406
  };
381
407
  return /* @__PURE__ */ c(
382
- J,
408
+ Q,
383
409
  {
384
410
  ariaLabelClose: d.close_aria,
385
411
  isOpen: n,
386
- onClose: _,
412
+ onClose: u,
387
413
  onPrimaryAction: () => l(p),
388
- title: u,
414
+ title: _,
389
415
  children: [
390
416
  /* @__PURE__ */ c(L, { sx: { bgcolor: "background.white" }, children: [
391
417
  /* @__PURE__ */ e(v, { variant: "fullWidth" }),
392
- t.map((a, b) => /* @__PURE__ */ c(T.Fragment, { children: [
393
- /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(M, { onClick: () => o(a), children: [
394
- /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
418
+ t.map((o, b) => /* @__PURE__ */ c(T.Fragment, { children: [
419
+ /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(M, { onClick: () => a(o), children: [
420
+ /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(
395
421
  te,
396
422
  {
397
- alt: a?.name || "",
398
- institutionGuid: a?.institution_guid || ""
423
+ alt: o?.name || "",
424
+ institutionGuid: o?.institution_guid || ""
399
425
  }
400
426
  ) }),
401
427
  /* @__PURE__ */ e(
402
428
  w,
403
429
  {
404
- primary: we(a, {
430
+ primary: we(o, {
405
431
  allowNickname: s?.show_account_nicknames_in_master
406
432
  }),
407
- secondary: I(a.balance || 0, "0,0.00")
433
+ secondary: I(o.balance || 0, "0,0.00")
408
434
  }
409
435
  ),
410
- /* @__PURE__ */ e(nt, { checked: p.some((m) => m.guid === a.guid) })
436
+ /* @__PURE__ */ e(nt, { checked: p.some((m) => m.guid === o.guid) })
411
437
  ] }) }),
412
438
  /* @__PURE__ */ e(v, { variant: b < t.length - 1 ? "inset" : "fullWidth" })
413
- ] }, a.guid))
439
+ ] }, o.guid))
414
440
  ] }),
415
441
  s.show_connections_widget_in_master && /* @__PURE__ */ e(
416
- Te,
442
+ Ae,
417
443
  {
418
- description: r.connect_description,
419
- label: r.connect_button,
420
- title: r.connect_title
444
+ description: i.connect_description,
445
+ label: i.connect_button,
446
+ title: i.connect_title
421
447
  }
422
448
  )
423
449
  ]
424
450
  }
425
451
  );
426
- }, xt = ({ onClose: t }) => {
427
- const { goals: n } = S(), { addGoal: _, debtGoals: l, setAlert: u, setSelectedGoal: r } = G(), { config: d } = pe(), { visibleDebtAccounts: s } = z(), [p, h] = T.useState(!1), o = Pe(n), a = (m, f, R) => {
428
- R === i.DEBT_TRACK ? h(!0) : r({
452
+ }, Et = ({ onClose: t }) => {
453
+ const { goals: n } = x(), { addGoal: u, debtGoals: l, setAlert: _, setSelectedGoal: i } = G(), { config: d } = _e(), { visibleDebtAccounts: s } = P(), [p, h] = T.useState(!1), a = ze(n), o = (m, g, R) => {
454
+ R === r.DEBT_TRACK ? h(!0) : i({
429
455
  amount: 0,
430
456
  current_amount: 0,
431
- goal_type: ce.SAVE_AMOUNT,
457
+ goal_type: le.SAVE_AMOUNT,
432
458
  initial_amount: 0,
433
- meta_type: f,
459
+ meta_type: g,
434
460
  name: m,
435
461
  track_type: R
436
462
  });
437
463
  }, b = async (m) => {
438
- for (const f of m) {
439
- let R = Y.CREDIT_CARD;
440
- f.account_type === Ae.LOAN ? R = Y.LOANS : f.account_type === Ae.LINE_OF_CREDIT && (R = Y.LINE_OF_CREDIT), await _({
441
- account_guid: f.guid,
464
+ for (const g of m) {
465
+ let R = Z.CREDIT_CARD;
466
+ g.account_type === ge.LOAN ? R = Z.LOANS : g.account_type === ge.LINE_OF_CREDIT && (R = Z.LINE_OF_CREDIT), await u({
467
+ account_guid: g.guid,
442
468
  amount: 0,
443
469
  current_amount: 0,
444
- goal_type: ce.KEEP_BALANCE_BELOW,
445
- initial_amount: f.balance || 0,
446
- interest_rate: f.interest_rate || 0,
470
+ goal_type: le.KEEP_BALANCE_BELOW,
471
+ initial_amount: g.balance || 0,
472
+ interest_rate: g.interest_rate || 0,
447
473
  meta_type: R,
448
- monthly_payment: f.minimum_payment || 0,
449
- name: we(f, {
474
+ monthly_payment: g.minimum_payment || 0,
475
+ name: we(g, {
450
476
  allowNickname: d?.show_account_nicknames_in_master
451
477
  }),
452
- track_type: i.DEBT_TRACK
453
- }), u(n.alert_goal_added);
478
+ track_type: r.DEBT_TRACK
479
+ }), _(n.alert_goal_added);
454
480
  }
455
- h(!1), t?.(i.DEBT_TRACK);
481
+ h(!1), t?.(r.DEBT_TRACK);
456
482
  };
457
483
  return /* @__PURE__ */ c(y, { children: [
458
- /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: o.map((m, f) => /* @__PURE__ */ e(Et, { goalType: m, onClick: a }, f)) }),
484
+ /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: a.map((m, g) => /* @__PURE__ */ e(St, { goalType: m, onClick: o }, g)) }),
459
485
  /* @__PURE__ */ e(
460
- Be,
486
+ Oe,
461
487
  {
462
- accounts: s.filter((m) => !l.find((f) => f.account_guid === m.guid)),
488
+ accounts: s.filter((m) => !l.find((g) => g.account_guid === m.guid)),
463
489
  isOpen: p,
464
490
  onClose: () => h(!1),
465
491
  onSave: b,
@@ -467,10 +493,10 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
467
493
  }
468
494
  )
469
495
  ] });
470
- }, Oe = ({ account: t }) => {
471
- const n = at(t);
496
+ }, We = ({ account: t }) => {
497
+ const n = ot(t);
472
498
  return /* @__PURE__ */ c(k, { sx: { bgcolor: "background.paper", p: 24 }, children: [
473
- /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
499
+ /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(
474
500
  te,
475
501
  {
476
502
  alt: t.name || "",
@@ -486,22 +512,22 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
486
512
  )
487
513
  ] });
488
514
  }, vt = D(({ goal: t }) => {
489
- const { goals: n } = S(), { setAlert: _, setSelectedGoal: l, updateGoal: u, updateRetirementGoal: r } = G(), [d, s] = T.useState(t.amount), p = !t.guid, h = d < 0 || d > 9999999999e-2, o = t.track_type === i.SAVINGS_TRACK && t.has_been_spent || t.track_type !== i.SAVINGS_TRACK && t.is_complete, a = async () => {
515
+ const { goals: n } = x(), { setAlert: u, setSelectedGoal: l, updateGoal: _, updateRetirementGoal: i } = G(), [d, s] = T.useState(t.amount), p = !t.guid, h = d < 0 || d > 9999999999e-2, a = t.track_type === r.SAVINGS_TRACK && t.has_been_spent || t.track_type !== r.SAVINGS_TRACK && t.is_complete, o = async () => {
490
516
  const m = { ...t, amount: d };
491
- t.amount = d, p ? l(m) : (t.track_type !== i.RETIREMENT_TRACK ? await u(m) : await r(m), _(n.alert_goal_updated_amount));
517
+ t.amount = d, p ? l(m) : (t.track_type !== r.RETIREMENT_TRACK ? await _(m) : await i(m), u(n.alert_goal_updated_amount));
492
518
  }, b = () => {
493
519
  setTimeout(() => {
494
520
  s(t.amount);
495
521
  }, 250);
496
522
  };
497
523
  return /* @__PURE__ */ e(
498
- q,
524
+ J,
499
525
  {
500
- isDisabled: o,
526
+ isDisabled: a,
501
527
  isSaveDisabled: h,
502
528
  label: n.details_amount_to_save,
503
529
  onCancel: b,
504
- onSave: a,
530
+ onSave: o,
505
531
  primaryText: n.details_amount_to_save,
506
532
  secondaryText: I(t.amount, "0,0"),
507
533
  zeroStateText: p && t.amount === 0 ? n.add_amount : void 0,
@@ -514,39 +540,39 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
514
540
  fullWidth: !0,
515
541
  minAmount: 0,
516
542
  setAmount: (m) => s(isNaN(Number(m)) ? d : Number(m)),
517
- sx: { ".MuiTypography-Body": { p: 0 } }
543
+ sx: { ".MuiTypography-body1": { p: 0 } }
518
544
  }
519
545
  )
520
546
  }
521
547
  );
522
548
  }), It = ({ goal: t }) => {
523
- const { visibleCheckingAccounts: n, visibleSavingsAccounts: _ } = z(), { accounts: l, goals: u } = S(), { config: r } = pe(), { setAlert: d, setSelectedGoal: s, updateGoal: p } = G(), h = !t.guid, [o, a] = T.useState(!1), b = async ({ balance: m, guid: f }) => {
524
- const R = { ...t, account_guid: f, current_amount: m || 0 };
525
- h ? s(R) : (await p(R), d(u.alert_account_changed)), a(!1);
549
+ const { visibleCheckingAccounts: n, visibleSavingsAccounts: u } = P(), { accounts: l, goals: _ } = x(), { config: i } = _e(), { setAlert: d, setSelectedGoal: s, updateGoal: p } = G(), h = !t.guid, [a, o] = T.useState(!1), b = async ({ balance: m, guid: g }) => {
550
+ const R = { ...t, account_guid: g, current_amount: m || 0 };
551
+ h ? s(R) : (await p(R), d(_.alert_account_changed)), o(!1);
526
552
  };
527
553
  return /* @__PURE__ */ c(y, { children: [
528
- h && !t.account_guid ? /* @__PURE__ */ e(k, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ c(M, { onClick: () => a(!0), children: [
554
+ h && !t.account_guid ? /* @__PURE__ */ e(k, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ c(M, { onClick: () => o(!0), children: [
529
555
  /* @__PURE__ */ e(w, { children: /* @__PURE__ */ c(y, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
530
556
  /* @__PURE__ */ e(Ie, { filled: !0 }),
531
- u.details_add_account
557
+ _.details_add_account
532
558
  ] }) }),
533
559
  /* @__PURE__ */ e(V, { color: "primary" })
534
560
  ] }) }) : /* @__PURE__ */ c(y, { sx: { gap: 8, my: 24, mx: 24 }, children: [
535
- /* @__PURE__ */ e(_e, { onClick: () => a(!0), variant: "text", children: u.details_change_account }),
561
+ /* @__PURE__ */ e(me, { onClick: () => o(!0), variant: "text", children: _.details_change_account }),
536
562
  /* @__PURE__ */ e(
537
563
  C,
538
564
  {
539
565
  color: "text.secondary",
540
566
  sx: { textAlign: "center", whiteSpace: "wrap" },
541
- variant: "Paragraph",
542
- children: O(u.details_change_account_description, t.name)
567
+ variant: "subtitle1",
568
+ children: W(_.details_change_account_description, t.name)
543
569
  }
544
570
  )
545
571
  ] }),
546
- /* @__PURE__ */ e(J, { isOpen: o, onClose: () => a(!1), title: u.details_change_account, children: /* @__PURE__ */ c(y, { children: [
547
- n.length > 0 && /* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: l.account_types[1] }),
572
+ /* @__PURE__ */ e(Q, { isOpen: a, onClose: () => o(!1), title: _.details_change_account, children: /* @__PURE__ */ c(y, { children: [
573
+ n.length > 0 && /* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: l.account_types[1] }),
548
574
  /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: n.map((m) => /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(M, { onClick: () => b(m), children: [
549
- /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
575
+ /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(
550
576
  te,
551
577
  {
552
578
  alt: m?.name || "",
@@ -562,9 +588,9 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
562
588
  ),
563
589
  /* @__PURE__ */ e(V, {})
564
590
  ] }) }, m.guid)) }),
565
- _.length > 0 && /* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: l.account_types[2] }),
566
- /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: _.map((m) => /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(M, { onClick: () => b(m), children: [
567
- /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
591
+ u.length > 0 && /* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: l.account_types[2] }),
592
+ /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: u.map((m) => /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(M, { onClick: () => b(m), children: [
593
+ /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(
568
594
  te,
569
595
  {
570
596
  alt: m?.name || "",
@@ -580,63 +606,63 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
580
606
  ),
581
607
  /* @__PURE__ */ e(V, {})
582
608
  ] }) }, m.guid)) }),
583
- r.show_connections_widget_in_master && /* @__PURE__ */ e(
584
- Te,
609
+ i.show_connections_widget_in_master && /* @__PURE__ */ e(
610
+ Ae,
585
611
  {
586
- description: u.connect_description,
587
- label: u.connect_button,
588
- title: u.connect_title
612
+ description: _.connect_description,
613
+ label: _.connect_button,
614
+ title: _.connect_title
589
615
  }
590
616
  )
591
617
  ] }) })
592
618
  ] });
593
619
  }, Gt = D(({ goal: t }) => {
594
- const { goals: n } = S(), { setAlert: _, setSelectedGoal: l, updateGoal: u } = G(), [r, d] = T.useState(t.name), s = !t.guid, p = t.track_type === i.SAVINGS_TRACK && t.has_been_spent || t.track_type !== i.SAVINGS_TRACK && t.is_complete, h = async () => {
595
- const a = { ...t, name: r };
596
- t.name = r, s ? l(a) : (await u(a), _(n.alert_goal_updated_name));
597
- }, o = () => {
620
+ const { goals: n } = x(), { setAlert: u, setSelectedGoal: l, updateGoal: _ } = G(), [i, d] = T.useState(t.name), s = !t.guid, p = t.track_type === r.SAVINGS_TRACK && t.has_been_spent || t.track_type !== r.SAVINGS_TRACK && t.is_complete, h = async () => {
621
+ const o = { ...t, name: i };
622
+ t.name = i, s ? l(o) : (await _(o), u(n.alert_goal_updated_name));
623
+ }, a = () => {
598
624
  setTimeout(() => {
599
625
  d(t.name);
600
626
  }, 250);
601
627
  };
602
628
  return /* @__PURE__ */ e(
603
- q,
629
+ J,
604
630
  {
605
631
  isDisabled: p,
606
- isSaveDisabled: !r,
632
+ isSaveDisabled: !i,
607
633
  label: n.details_goal_name,
608
- onCancel: o,
634
+ onCancel: a,
609
635
  onSave: h,
610
636
  primaryText: n.details_goal_name,
611
637
  secondaryText: t.name,
612
638
  children: /* @__PURE__ */ e(
613
639
  De,
614
640
  {
615
- error: !r,
641
+ error: !i,
616
642
  fullWidth: !0,
617
643
  label: n.details_goal_name,
618
- onChange: (a) => d(a.target.value),
619
- value: r
644
+ onChange: (o) => d(o.target.value),
645
+ value: i
620
646
  }
621
647
  )
622
648
  }
623
649
  );
624
650
  }), Nt = ({ goal: t }) => {
625
- const { goals: n } = S(), { setAlert: _, setSelectedGoal: l, updateRetirementGoal: u } = G(), [r, d] = T.useState(t.retirement_age || 65), s = !t.guid, p = async () => {
626
- if (!isNaN(r)) {
627
- const a = { ...t, retirement_age: r };
628
- t.retirement_age = r, s ? l(a) : (await u(a), _(n.alert_goal_updated_retirement_age));
651
+ const { goals: n } = x(), { setAlert: u, setSelectedGoal: l, updateRetirementGoal: _ } = G(), [i, d] = T.useState(t.retirement_age || 65), s = !t.guid, p = async () => {
652
+ if (!isNaN(i)) {
653
+ const o = { ...t, retirement_age: i };
654
+ t.retirement_age = i, s ? l(o) : (await _(o), u(n.alert_goal_updated_retirement_age));
629
655
  }
630
656
  }, h = () => {
631
657
  setTimeout(() => {
632
658
  d(t.retirement_age || 65);
633
659
  }, 250);
634
- }, o = !r || isNaN(r) || r < 20 || r >= 100;
660
+ }, a = !i || isNaN(i) || i < 20 || i >= 100;
635
661
  return /* @__PURE__ */ e(
636
- q,
662
+ J,
637
663
  {
638
664
  isDisabled: t.is_complete,
639
- isSaveDisabled: o,
665
+ isSaveDisabled: a,
640
666
  label: n.details_retirement_age,
641
667
  onCancel: h,
642
668
  onSave: p,
@@ -646,75 +672,75 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
646
672
  children: /* @__PURE__ */ e(
647
673
  De,
648
674
  {
649
- error: o,
675
+ error: a,
650
676
  fullWidth: !0,
651
677
  label: n.details_retirement_age,
652
- onChange: (a) => d(Number(a.target.value)),
653
- value: isNaN(r) ? "" : r
678
+ onChange: (o) => d(Number(o.target.value)),
679
+ value: isNaN(i) ? "" : i
654
680
  }
655
681
  )
656
682
  }
657
683
  );
658
684
  }, kt = D(({ goal: t }) => {
659
- const { goals: n } = S(), { user: _, updateUser: l } = Ge(), { setAlert: u } = G(), [r, d] = T.useState(ne(_.birthday ?? 0)), [s, p] = T.useState(null), h = t.is_complete, o = async () => {
660
- r && ct(r) && (await l({ ..._, birthday: st(r) }), u(n.alert_goal_updated_birthday));
685
+ const { goals: n } = x(), { user: u, updateUser: l } = Ge(), { setAlert: _ } = G(), [i, d] = T.useState(ne(u.birthday ?? 0)), [s, p] = T.useState(null), h = t.is_complete, a = async () => {
686
+ i && ct(i) && (await l({ ...u, birthday: st(i) }), _(n.alert_goal_updated_birthday));
661
687
  };
662
688
  return /* @__PURE__ */ e(
663
- q,
689
+ J,
664
690
  {
665
691
  isDisabled: h,
666
692
  isSaveDisabled: !!s,
667
693
  label: n.details_birthday,
668
- onSave: o,
694
+ onSave: a,
669
695
  primaryText: n.details_birthday,
670
- secondaryText: `${be(ne(_.birthday ?? 0), ge.MONTH_DAY_YEAR)}`,
671
- zeroStateText: !t.guid && !_.birthday ? n.add_birthday : void 0,
696
+ secondaryText: `${he(ne(u.birthday ?? 0), be.MONTH_DAY_YEAR)}`,
697
+ zeroStateText: !t.guid && !u.birthday ? n.add_birthday : void 0,
672
698
  children: /* @__PURE__ */ e(mt, { dateAdapter: lt, children: /* @__PURE__ */ e(
673
699
  dt,
674
700
  {
675
701
  label: n.details_birthday,
676
702
  onChange: d,
677
- onError: (a) => p(a),
703
+ onError: (o) => p(o),
678
704
  sx: { width: "100%" },
679
- value: r
705
+ value: i
680
706
  }
681
707
  ) })
682
708
  }
683
709
  );
684
710
  }), wt = ({ goal: t }) => {
685
- const { goals: n } = S(), { visibleRetirementAccounts: _ } = z(), {
711
+ const { goals: n } = x(), { visibleRetirementAccounts: u } = P(), {
686
712
  addRetirementGoalAccount: l,
687
- newRetirementGoalAccounts: u,
688
- retirementGoalAccounts: r,
713
+ newRetirementGoalAccounts: _,
714
+ retirementGoalAccounts: i,
689
715
  selectedGoal: d,
690
716
  setAlert: s,
691
717
  setNewRetirementGoalAccounts: p,
692
718
  setSelectedGoal: h
693
- } = G(), [o, a] = T.useState(!1), b = !t.guid, m = _.filter(
694
- (g) => b ? u.find((A) => A.account_guid === g.guid) : r.find((A) => A.account_guid === g.guid)
695
- ), f = _.filter(
696
- (g) => !r.find((A) => A.account_guid === g.guid)
697
- ), R = async (g) => {
698
- const A = g.map((E) => ({
699
- account_guid: E.guid,
719
+ } = G(), [a, o] = T.useState(!1), b = !t.guid, m = u.filter(
720
+ (f) => b ? _.find((A) => A.account_guid === f.guid) : i.find((A) => A.account_guid === f.guid)
721
+ ), g = u.filter(
722
+ (f) => !i.find((A) => A.account_guid === f.guid)
723
+ ), R = async (f) => {
724
+ const A = f.map((S) => ({
725
+ account_guid: S.guid,
700
726
  retirement_goal_guid: t.guid
701
727
  }));
702
728
  if (b)
703
729
  p(A);
704
730
  else
705
- for (const E of A)
706
- await l(E), s(n.alert_account_added);
731
+ for (const S of A)
732
+ await l(S), s(n.alert_account_added);
707
733
  h({
708
734
  ...d,
709
- current_amount: g.reduce((E, N) => E + (N.balance || 0), 0)
710
- }), a(!1);
735
+ current_amount: f.reduce((S, N) => S + (N.balance || 0), 0)
736
+ }), o(!1);
711
737
  };
712
738
  return /* @__PURE__ */ c(y, { children: [
713
- m.map((g) => /* @__PURE__ */ c(y, { children: [
714
- /* @__PURE__ */ e(Oe, { account: g }),
739
+ m.map((f) => /* @__PURE__ */ c(y, { children: [
740
+ /* @__PURE__ */ e(We, { account: f }),
715
741
  /* @__PURE__ */ e(v, {})
716
- ] }, g.guid)),
717
- /* @__PURE__ */ e(k, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ c(M, { onClick: () => a(!0), children: [
742
+ ] }, f.guid)),
743
+ /* @__PURE__ */ e(k, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ c(M, { onClick: () => o(!0), children: [
718
744
  /* @__PURE__ */ e(w, { children: /* @__PURE__ */ c(y, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
719
745
  /* @__PURE__ */ e(Ie, { filled: !0 }),
720
746
  n.details_add_account
@@ -722,30 +748,30 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
722
748
  /* @__PURE__ */ e(V, { color: "primary" })
723
749
  ] }) }),
724
750
  /* @__PURE__ */ e(
725
- Be,
751
+ Oe,
726
752
  {
727
- accounts: f,
728
- isOpen: o,
729
- onClose: () => a(!1),
753
+ accounts: g,
754
+ isOpen: a,
755
+ onClose: () => o(!1),
730
756
  onSave: R,
731
757
  title: n.add_select_accounts
732
758
  }
733
759
  )
734
760
  ] });
735
761
  }, Dt = D(({ goal: t }) => {
736
- const { goals: n } = S(), { visibleAccounts: _ } = z(), l = T.useMemo(
737
- () => _.find((d) => d.guid === t.account_guid),
738
- [_, t]
739
- ), u = t.track_type;
740
- let r = n.details_save_title;
741
- return t.track_type === i.DEBT_TRACK ? r = n.details_debt_title : t.track_type === i.RETIREMENT_TRACK && (r = n.details_retirement_title), /* @__PURE__ */ c(y, { children: [
762
+ const { goals: n } = x(), { visibleAccounts: u } = P(), l = T.useMemo(
763
+ () => u.find((d) => d.guid === t.account_guid),
764
+ [u, t]
765
+ ), _ = t.track_type;
766
+ let i = n.details_save_title;
767
+ 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(y, { children: [
742
768
  /* @__PURE__ */ c(y, { mx: 24, children: [
743
- /* @__PURE__ */ e(C, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "XSmall", children: r }),
769
+ /* @__PURE__ */ e(C, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "caption", children: i }),
744
770
  /* @__PURE__ */ e(Le, { goal: t, isInDrawer: !0 }),
745
- /* @__PURE__ */ e(C, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "XSmall", children: n.details_title })
771
+ /* @__PURE__ */ e(C, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "caption", children: n.details_title })
746
772
  ] }),
747
773
  /* @__PURE__ */ c(L, { sx: { bgcolor: "background.paper" }, children: [
748
- u !== i.RETIREMENT_TRACK ? /* @__PURE__ */ e(Gt, { goal: t }) : /* @__PURE__ */ e(k, { sx: { px: 24 }, children: /* @__PURE__ */ e(
774
+ _ !== r.RETIREMENT_TRACK ? /* @__PURE__ */ e(Gt, { goal: t }) : /* @__PURE__ */ e(k, { sx: { px: 24 }, children: /* @__PURE__ */ e(
749
775
  w,
750
776
  {
751
777
  primary: /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
@@ -756,155 +782,155 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
756
782
  }
757
783
  ) }),
758
784
  /* @__PURE__ */ e(v, { sx: { ml: 24 } }),
759
- (u === i.SAVINGS_TRACK || u === i.RETIREMENT_TRACK) && /* @__PURE__ */ c($, { children: [
785
+ (_ === r.SAVINGS_TRACK || _ === r.RETIREMENT_TRACK) && /* @__PURE__ */ c($, { children: [
760
786
  /* @__PURE__ */ e(vt, { goal: t }),
761
- /* @__PURE__ */ e(v, { sx: { ml: u === i.RETIREMENT_TRACK ? 24 : 0 } })
787
+ /* @__PURE__ */ e(v, { sx: { ml: _ === r.RETIREMENT_TRACK ? 24 : 0 } })
762
788
  ] }),
763
- t.track_type === i.DEBT_TRACK && /* @__PURE__ */ c($, { children: [
764
- /* @__PURE__ */ e(ot, { goal: t }),
765
- /* @__PURE__ */ e(v, { sx: { ml: 24 } }),
766
- /* @__PURE__ */ e(rt, { goal: t }),
789
+ t.track_type === r.DEBT_TRACK && /* @__PURE__ */ c($, { children: [
790
+ /* @__PURE__ */ e(at, { goal: t }),
767
791
  /* @__PURE__ */ e(v, { sx: { ml: 24 } }),
768
792
  /* @__PURE__ */ e(it, { goal: t }),
793
+ /* @__PURE__ */ e(v, { sx: { ml: 24 } }),
794
+ /* @__PURE__ */ e(rt, { goal: t }),
769
795
  /* @__PURE__ */ e(v, { variant: "fullWidth" })
770
796
  ] }),
771
- t.track_type === i.RETIREMENT_TRACK && /* @__PURE__ */ c($, { children: [
797
+ t.track_type === r.RETIREMENT_TRACK && /* @__PURE__ */ c($, { children: [
772
798
  /* @__PURE__ */ e(Nt, { goal: t }),
773
799
  /* @__PURE__ */ e(v, { sx: { ml: 24 } }),
774
800
  /* @__PURE__ */ e(kt, { goal: t }),
775
801
  /* @__PURE__ */ e(v, { variant: "fullWidth" })
776
802
  ] })
777
803
  ] }),
778
- /* @__PURE__ */ e(C, { color: "text.secondary", sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: t.track_type === i.RETIREMENT_TRACK ? n.details_accounts : n.details_account }),
779
- t.track_type !== i.RETIREMENT_TRACK && l && /* @__PURE__ */ c($, { children: [
780
- /* @__PURE__ */ e(Oe, { account: l }),
804
+ /* @__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 }),
805
+ t.track_type !== r.RETIREMENT_TRACK && l && /* @__PURE__ */ c($, { children: [
806
+ /* @__PURE__ */ e(We, { account: l }),
781
807
  /* @__PURE__ */ e(v, {})
782
808
  ] }),
783
- t.track_type === i.RETIREMENT_TRACK && /* @__PURE__ */ c($, { children: [
809
+ t.track_type === r.RETIREMENT_TRACK && /* @__PURE__ */ c($, { children: [
784
810
  /* @__PURE__ */ e(wt, { goal: t }),
785
811
  /* @__PURE__ */ e(v, {})
786
812
  ] }),
787
- t.track_type === i.SAVINGS_TRACK && !t.is_complete && /* @__PURE__ */ e(It, { goal: t })
813
+ t.track_type === r.SAVINGS_TRACK && !t.is_complete && /* @__PURE__ */ e(It, { goal: t })
788
814
  ] });
789
815
  }), Kt = D(({ onClose: t }) => {
790
- const { visibleRetirementAccounts: n } = z(), { goals: _, common: l } = S(), {
791
- addGoal: u,
792
- addRetirementGoal: r,
816
+ const { visibleRetirementAccounts: n } = P(), { goals: u, common: l } = x(), {
817
+ addGoal: _,
818
+ addRetirementGoal: i,
793
819
  deleteGoal: d,
794
820
  deleteRetirementGoal: s,
795
821
  newRetirementGoalAccounts: p,
796
822
  retirementGoalAccounts: h,
797
- selectedGoal: o,
798
- setAlert: a,
823
+ selectedGoal: a,
824
+ setAlert: o,
799
825
  setSelectedGoal: b,
800
826
  updateGoal: m
801
- } = G(), { user: f } = Ge(), [R, g] = T.useState(!1), A = !o?.guid, E = o?.track_type === i.SAVINGS_TRACK && o.is_complete && !o.has_been_spent, N = T.useMemo(() => {
802
- const x = A ? p : h;
803
- return n.filter((j) => x.some((F) => F.account_guid === j.guid));
827
+ } = G(), { user: g } = Ge(), [R, f] = T.useState(!1), A = !a?.guid, S = a?.track_type === r.SAVINGS_TRACK && a.is_complete && !a.has_been_spent, N = T.useMemo(() => {
828
+ const E = A ? p : h;
829
+ return n.filter((j) => E.some((F) => F.account_guid === j.guid));
804
830
  }, [A, n, p, h]), K = T.useMemo(() => {
805
- if (!o) return !1;
806
- if (!A && !E) return !0;
807
- const { account_guid: x, track_type: j, name: F, amount: ee, retirement_age: B } = o;
808
- return j === i.SAVINGS_TRACK ? x ? !!F && !!ee : !1 : j === i.RETIREMENT_TRACK ? N.length ? !!F && !!ee && !!B && !!f.birthday : !1 : !0;
809
- }, [o, N, f.birthday]);
810
- let H = l.delete_button, U = () => g(!0);
811
- A ? (U = () => oe(), H = l.save_button) : E && (U = () => Q(), H = _.mark_as_complete_button);
812
- const oe = async () => {
813
- if (o) {
814
- const x = o.track_type;
815
- x !== i.RETIREMENT_TRACK ? await u(o) : x === i.RETIREMENT_TRACK && await r({ ...o, target_amount: o.amount }), a(_.alert_goal_added), b(void 0), x && t?.(x);
831
+ if (!a) return !1;
832
+ if (!A && !S) return !0;
833
+ const { account_guid: E, track_type: j, name: F, amount: ee, retirement_age: O } = a;
834
+ return j === r.SAVINGS_TRACK ? E ? !!F && !!ee : !1 : j === r.RETIREMENT_TRACK ? N.length ? !!F && !!ee && !!O && !!g.birthday : !1 : !0;
835
+ }, [a, N, g.birthday]);
836
+ let U = l.delete_button, Y = () => f(!0);
837
+ A ? (Y = () => ae(), U = l.save_button) : S && (Y = () => X(), U = u.mark_as_complete_button);
838
+ const ae = async () => {
839
+ if (a) {
840
+ const E = a.track_type;
841
+ E !== r.RETIREMENT_TRACK ? await _(a) : E === r.RETIREMENT_TRACK && await i({ ...a, target_amount: a.amount }), o(u.alert_goal_added), b(void 0), E && t?.(E);
816
842
  }
817
- }, W = async () => {
818
- o && (o.track_type !== i.RETIREMENT_TRACK ? await d(o.guid) : o.track_type === i.RETIREMENT_TRACK && await s(o), a(_.alert_goal_deleted), b(void 0));
819
- }, Q = async () => {
820
- const x = {
821
- ...o,
843
+ }, B = async () => {
844
+ a && (a.track_type !== r.RETIREMENT_TRACK ? await d(a.guid) : a.track_type === r.RETIREMENT_TRACK && await s(a), o(u.alert_goal_deleted), b(void 0));
845
+ }, X = async () => {
846
+ const E = {
847
+ ...a,
822
848
  has_been_spent: !0
823
849
  };
824
- await m(x), a(_.alert_goal_completed), b(void 0);
850
+ await m(E), o(u.alert_goal_completed), b(void 0);
825
851
  };
826
852
  return /* @__PURE__ */ c(y, { children: [
827
853
  /* @__PURE__ */ e(
828
- J,
854
+ Q,
829
855
  {
830
856
  ariaLabelClose: l.close_aria,
831
857
  hasSecondaryAction: A,
832
- isOpen: !!o,
858
+ isOpen: !!a,
833
859
  isPrimaryDisabled: !K,
834
860
  onClose: () => b(void 0),
835
- onPrimaryAction: U,
836
- primaryColor: A || E ? "primary" : "error",
837
- primaryText: H,
861
+ onPrimaryAction: Y,
862
+ primaryColor: A || S ? "primary" : "error",
863
+ primaryText: U,
838
864
  secondaryColor: "primary",
839
- title: _.goal_details,
840
- children: o && /* @__PURE__ */ e(Dt, { goal: o })
865
+ title: u.goal_details,
866
+ children: a && /* @__PURE__ */ e(Dt, { goal: a })
841
867
  }
842
868
  ),
843
869
  /* @__PURE__ */ e(
844
- _t,
870
+ ut,
845
871
  {
846
- copy: { close_aria: l.close_aria, title: _.delete_goal },
872
+ copy: { close_aria: l.close_aria, title: u.delete_goal },
847
873
  isOpen: R,
848
874
  maxWidth: "xs",
849
- onClose: () => g(!1),
850
- onPrimaryAction: W,
875
+ onClose: () => f(!1),
876
+ onPrimaryAction: B,
851
877
  primaryColor: "error",
852
878
  primaryText: l.delete_button,
853
- children: /* @__PURE__ */ e(C, { sx: { textWrap: "wrap" }, variant: "Paragraph", children: O(_.delete_description, o?.name || "") })
879
+ children: /* @__PURE__ */ e(C, { sx: { textWrap: "wrap" }, variant: "subtitle1", children: W(u.delete_description, a?.name || "") })
854
880
  }
855
881
  )
856
882
  ] });
857
- }), jn = D(({ onBackClick: t, sx: n }) => {
858
- const { onEvent: _ } = Ne(), { isMobile: l } = he(), { isAccountDataLoaded: u, loadAccountData: r } = z(), { isInitialized: d } = ue(), { goals: s, common: p } = S(), {
883
+ }), Fn = D(({ onBackClick: t, sx: n }) => {
884
+ const { onEvent: u } = Ne(), { isMobile: l } = pe(), { isAccountDataLoaded: _, loadAccountData: i } = P(), { isInitialized: d } = ue(), { goals: s, common: p } = x(), {
859
885
  alert: h,
860
- goals: o,
861
- isAllGoalDataLoaded: a,
886
+ goals: a,
887
+ isAllGoalDataLoaded: o,
862
888
  loadGoalData: b,
863
889
  monthlyCashFlowProfile: m,
864
- setAlert: f,
890
+ setAlert: g,
865
891
  retirmentGoals: R
866
- } = G(), [g, A] = T.useState(0), [E, N] = T.useState(!1), K = m?.amount_allocated_for_savings_goals || 0, H = m?.amount_allocated_for_debt_goals || 0, U = m?.amount_allocated_for_retirement_goals || 0;
867
- Me({
892
+ } = G(), [f, A] = T.useState(0), [S, N] = T.useState(!1), K = m?.amount_allocated_for_savings_goals || 0, U = m?.amount_allocated_for_debt_goals || 0, Y = m?.amount_allocated_for_retirement_goals || 0;
893
+ Ke({
868
894
  widgetName: "GoalsWidget",
869
- isLoaded: a
895
+ isLoaded: o
870
896
  }), T.useEffect(() => {
871
- u || r().finally(), _(X.GOALS_VIEW);
897
+ _ || i().finally(), u(H.GOALS_VIEW);
872
898
  }, []), T.useEffect(() => {
873
899
  d && b().finally();
874
900
  }, [d]);
875
- const oe = () => {
876
- _(X.GOALS_CLICK_FILTER);
877
- }, W = () => {
878
- N(!0), _(X.GOALS_CLICK_ADD);
879
- }, Q = (B) => {
880
- N(!1), B === i.SAVINGS_TRACK ? A(0) : B === i.DEBT_TRACK ? A(1) : B === i.RETIREMENT_TRACK && A(2);
881
- }, x = T.useMemo(
882
- () => a && (o.length === 0 || o.every(({ track_type: B }) => !B) && R.length === 0),
883
- [o, a, R]
901
+ const ae = () => {
902
+ u(H.GOALS_CLICK_FILTER);
903
+ }, B = () => {
904
+ N(!0), u(H.GOALS_CLICK_ADD);
905
+ }, X = (O) => {
906
+ N(!1), O === r.SAVINGS_TRACK ? A(0) : O === r.DEBT_TRACK ? A(1) : O === r.RETIREMENT_TRACK && A(2);
907
+ }, E = T.useMemo(
908
+ () => o && (a.length === 0 || a.every(({ track_type: O }) => !O) && R.length === 0),
909
+ [a, o, R]
884
910
  );
885
- if (!d || !a)
886
- return /* @__PURE__ */ e(Ke, {});
887
- const j = O(
911
+ if (!d || !o)
912
+ return /* @__PURE__ */ e(Me, {});
913
+ const j = W(
888
914
  l ? s.tab_subtitle_mobile : s.tab_subtitle,
889
915
  I(K, "0,0")
890
- ), F = O(
891
- l ? s.tab_subtitle_mobile : s.tab_subtitle,
892
- I(H, "0,0")
893
- ), ee = O(
916
+ ), F = W(
894
917
  l ? s.tab_subtitle_mobile : s.tab_subtitle,
895
918
  I(U, "0,0")
919
+ ), ee = W(
920
+ l ? s.tab_subtitle_mobile : s.tab_subtitle,
921
+ I(Y, "0,0")
896
922
  );
897
923
  return /* @__PURE__ */ c(
898
- ut,
924
+ _t,
899
925
  {
900
926
  actions: [
901
927
  {
902
928
  iconName: "add",
903
929
  label: s.add_title,
904
- onClick: W
930
+ onClick: B
905
931
  }
906
932
  ],
907
- onAccountsFilterClick: oe,
933
+ onAccountsFilterClick: ae,
908
934
  onBackClick: t,
909
935
  sx: n,
910
936
  title: s.title,
@@ -913,42 +939,42 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
913
939
  /* @__PURE__ */ c(
914
940
  Fe,
915
941
  {
916
- onChange: (B, We) => A(We),
942
+ onChange: (O, Be) => A(Be),
917
943
  sx: { bgcolor: "background.paper" },
918
944
  textColor: "primary",
919
- value: x ? !1 : g,
945
+ value: E ? !1 : f,
920
946
  variant: "fullWidth",
921
947
  children: [
922
948
  /* @__PURE__ */ e(
923
- re,
949
+ ie,
924
950
  {
925
- disabled: x,
926
- label: /* @__PURE__ */ e(ie, { subtitle: j, title: s.tab_saving_title })
951
+ disabled: E,
952
+ label: /* @__PURE__ */ e(re, { subtitle: j, title: s.tab_saving_title })
927
953
  }
928
954
  ),
929
955
  /* @__PURE__ */ e(
930
- re,
956
+ ie,
931
957
  {
932
- disabled: x,
933
- label: /* @__PURE__ */ e(ie, { subtitle: F, title: s.tab_debt_title })
958
+ disabled: E,
959
+ label: /* @__PURE__ */ e(re, { subtitle: F, title: s.tab_debt_title })
934
960
  }
935
961
  ),
936
962
  /* @__PURE__ */ e(
937
- re,
963
+ ie,
938
964
  {
939
- disabled: x,
940
- label: /* @__PURE__ */ e(ie, { subtitle: ee, title: s.tab_retirement_title })
965
+ disabled: E,
966
+ label: /* @__PURE__ */ e(re, { subtitle: ee, title: s.tab_retirement_title })
941
967
  }
942
968
  )
943
969
  ]
944
970
  }
945
971
  ),
946
- x ? /* @__PURE__ */ e(
972
+ E ? /* @__PURE__ */ e(
947
973
  pt,
948
974
  {
949
975
  header: s.create_goals_header,
950
976
  icon: "trophy",
951
- onClick: W,
977
+ onClick: B,
952
978
  primaryButton: s.add_goals_button,
953
979
  subText: s.empty_state_subheader,
954
980
  sx: {
@@ -959,66 +985,66 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
959
985
  }
960
986
  }
961
987
  ) : /* @__PURE__ */ c($, { children: [
962
- g === 0 && /* @__PURE__ */ e(se, { onAddGoals: W, trackType: i.SAVINGS_TRACK }),
963
- g === 1 && /* @__PURE__ */ e(se, { onAddGoals: W, trackType: i.DEBT_TRACK }),
964
- g === 2 && /* @__PURE__ */ e(se, { onAddGoals: W, trackType: i.RETIREMENT_TRACK })
988
+ f === 0 && /* @__PURE__ */ e(se, { onAddGoals: B, trackType: r.SAVINGS_TRACK }),
989
+ f === 1 && /* @__PURE__ */ e(se, { onAddGoals: B, trackType: r.DEBT_TRACK }),
990
+ f === 2 && /* @__PURE__ */ e(se, { onAddGoals: B, trackType: r.RETIREMENT_TRACK })
965
991
  ] })
966
992
  ] }),
967
- /* @__PURE__ */ e(Kt, { onClose: Q }),
993
+ /* @__PURE__ */ e(Kt, { onClose: X }),
968
994
  /* @__PURE__ */ e(
969
- J,
995
+ Q,
970
996
  {
971
997
  ariaLabelClose: p.close_aria,
972
- isOpen: E,
998
+ isOpen: S,
973
999
  onClose: () => N(!1),
974
1000
  title: s.add_goal_title,
975
- children: /* @__PURE__ */ e(xt, { onClose: Q })
1001
+ children: /* @__PURE__ */ e(Et, { onClose: X })
976
1002
  }
977
1003
  ),
978
- /* @__PURE__ */ e(je, { onClose: () => f(""), open: !!h, children: /* @__PURE__ */ e(ze, { onClose: () => f(""), severity: "success", variant: "filled", children: h }) })
1004
+ /* @__PURE__ */ e(je, { onClose: () => g(""), open: !!h, children: /* @__PURE__ */ e(Pe, { onClose: () => g(""), severity: "success", variant: "filled", children: h }) })
979
1005
  ]
980
1006
  }
981
1007
  );
982
1008
  }), Mt = D(({ goal: t }) => {
983
- const { goals: n } = S(), _ = gt(), {
1009
+ const { goals: n } = x(), u = ft(), {
984
1010
  backgroundColor: l,
985
- color: u,
986
- percentage: r,
1011
+ color: _,
1012
+ percentage: i,
987
1013
  projectedText: d
988
- } = de(n, t), s = Math.round(r * 100);
989
- let p = /* @__PURE__ */ e(Ee, {});
990
- return t.track_type === i.DEBT_TRACK ? p = /* @__PURE__ */ e(xe, {}) : t.track_type === i.RETIREMENT_TRACK && (p = /* @__PURE__ */ e(ve, {})), /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", spacing: 12, sx: { py: 12 }, children: [
991
- /* @__PURE__ */ e(ae, { sx: { bgcolor: l, color: u, height: 32, width: 32 }, variant: "rounded", children: p }),
1014
+ } = de(n, t), s = Math.round(i * 100);
1015
+ let p = /* @__PURE__ */ e(Se, {});
1016
+ return t.track_type === r.DEBT_TRACK ? p = /* @__PURE__ */ e(Ee, {}) : t.track_type === r.RETIREMENT_TRACK && (p = /* @__PURE__ */ e(ve, {})), /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", spacing: 12, sx: { py: 12 }, children: [
1017
+ /* @__PURE__ */ e(oe, { sx: { bgcolor: l, color: _, height: 32, width: 32 }, variant: "rounded", children: p }),
992
1018
  /* @__PURE__ */ c(bt, { sx: { width: "100%" }, children: [
993
- /* @__PURE__ */ e(me, { fontSize: 15, fontWeight: 600, variant: "body1", children: t.name }),
994
- t.projected_to_complete_at && /* @__PURE__ */ e(C, { color: "text.secondary", variant: "XSmall", children: d })
1019
+ /* @__PURE__ */ e(Te, { fontSize: 15, fontWeight: 600, variant: "body1", children: t.name }),
1020
+ t.projected_to_complete_at && /* @__PURE__ */ e(C, { color: "text.secondary", variant: "caption", children: d })
995
1021
  ] }),
996
1022
  /* @__PURE__ */ e(
997
1023
  yt,
998
1024
  {
999
- backgroundStrokeColor: _.palette.border.lighter,
1000
- color: _.palette.primary.main,
1025
+ backgroundStrokeColor: u.palette.neutral.light,
1026
+ color: u.palette.primary.main,
1001
1027
  percent: s,
1002
1028
  size: 40,
1003
1029
  strokeWidth: 3,
1004
- children: /* @__PURE__ */ e(Z, { fontWeight: 700, variant: "caption", children: `${s}%` })
1030
+ children: /* @__PURE__ */ e(q, { fontWeight: 700, variant: "caption", children: `${s}%` })
1005
1031
  }
1006
1032
  )
1007
1033
  ] });
1008
- }), Lt = ({ header: t, subText: n, sx: _ }) => /* @__PURE__ */ c(
1034
+ }), Lt = ({ header: t, subText: n, sx: u }) => /* @__PURE__ */ c(
1009
1035
  y,
1010
1036
  {
1011
1037
  sx: {
1012
1038
  alignItems: "center",
1013
1039
  alignSelf: "center",
1014
1040
  px: 24,
1015
- ..._
1041
+ ...u
1016
1042
  },
1017
1043
  children: [
1018
- /* @__PURE__ */ e(qe, { size: 32 }),
1019
- /* @__PURE__ */ e(me, { fontSize: 15, fontWeight: 600, children: t }),
1044
+ /* @__PURE__ */ e(Je, { size: 32 }),
1045
+ /* @__PURE__ */ e(Te, { fontSize: 15, fontWeight: 600, children: t }),
1020
1046
  /* @__PURE__ */ e(
1021
- Z,
1047
+ q,
1022
1048
  {
1023
1049
  color: "text.secondary",
1024
1050
  sx: { fontWeight: 400, maxWidth: { sm: 424 }, textAlign: "center" },
@@ -1028,38 +1054,38 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
1028
1054
  )
1029
1055
  ]
1030
1056
  }
1031
- ), Fn = D(({ onCTAClick: t }) => {
1032
- const { isAccountDataLoaded: n, loadAccountData: _, visibleAccounts: l } = z(), { onEvent: u } = Ne(), { goals: r } = S(), { isInitialized: d } = ue(), { ongoingGoalsForMicroWidget: s, isAllGoalDataLoaded: p, loadGoalData: h } = G();
1033
- Me({
1057
+ ), $n = D(({ onCTAClick: t }) => {
1058
+ const { isAccountDataLoaded: n, loadAccountData: u, visibleAccounts: l } = P(), { onEvent: _ } = Ne(), { goals: i } = x(), { isInitialized: d } = ue(), { ongoingGoalsForMicroWidget: s, isAllGoalDataLoaded: p, loadGoalData: h } = G();
1059
+ Ke({
1034
1060
  widgetName: "GoalsMicroWidget",
1035
1061
  isLoaded: p
1036
1062
  }), T.useEffect(() => {
1037
- n || _().finally();
1063
+ n || u().finally();
1038
1064
  }, []), T.useEffect(() => {
1039
- d && (h().finally(), u(X.GOALS_LOAD_WIDGET, {
1065
+ d && (h().finally(), _(H.GOALS_LOAD_WIDGET, {
1040
1066
  state: l?.length ? "default" : "zeroState"
1041
1067
  }));
1042
1068
  }, [d]);
1043
- const o = T.useMemo(
1069
+ const a = T.useMemo(
1044
1070
  () => p && s.length === 0,
1045
1071
  [s, p]
1046
- ), a = () => {
1047
- u(
1048
- o ? X.GOALS_CLICK_GET_STARTED : X.GOALS_CLICK_VIEW_DETAILS
1072
+ ), o = () => {
1073
+ _(
1074
+ a ? H.GOALS_CLICK_GET_STARTED : H.GOALS_CLICK_VIEW_DETAILS
1049
1075
  ), t();
1050
1076
  };
1051
- return !d || !p ? /* @__PURE__ */ e(Ke, {}) : /* @__PURE__ */ e(
1052
- ft,
1077
+ return !d || !p ? /* @__PURE__ */ e(Me, {}) : /* @__PURE__ */ e(
1078
+ gt,
1053
1079
  {
1054
1080
  className: "mx-goals-microwidget",
1055
- ctaLabel: o ? r.get_started : r.view_details,
1056
- onCTAClick: a,
1057
- title: r.title,
1058
- children: o ? /* @__PURE__ */ e(
1081
+ ctaLabel: a ? i.get_started : i.view_details,
1082
+ onCTAClick: o,
1083
+ title: i.title,
1084
+ children: a ? /* @__PURE__ */ e(
1059
1085
  Lt,
1060
1086
  {
1061
- header: r.create_goals_header,
1062
- subText: r.micro_zero_state_description
1087
+ header: i.create_goals_header,
1088
+ subText: i.micro_zero_state_description
1063
1089
  }
1064
1090
  ) : /* @__PURE__ */ e(ht, { sx: { justifyContent: "space-between" }, children: s.map((b, m) => /* @__PURE__ */ c(T.Fragment, { children: [
1065
1091
  /* @__PURE__ */ e(Mt, { goal: b }),
@@ -1069,8 +1095,8 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
1069
1095
  );
1070
1096
  });
1071
1097
  export {
1072
- Hn as GoalApi,
1073
- Un as GoalStore,
1074
- Fn as GoalsMicroWidget,
1075
- jn as GoalsWidget
1098
+ Yn as GoalApi,
1099
+ Zn as GoalStore,
1100
+ $n as GoalsMicroWidget,
1101
+ Fn as GoalsWidget
1076
1102
  };