@mx-cartographer/experiences 8.1.10 → 8.2.0-alpha.bb0

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 (246) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/{Account-CMjOp7S2.mjs → Account-BTOmbrEK.mjs} +5 -5
  3. package/dist/{Account-BIKn4XEZ.mjs → Account-DC2d-cjn.mjs} +1 -1
  4. package/dist/{AccountDetailsHeader-CzefHTWU.mjs → AccountDetailsHeader-IDZ6GTT0.mjs} +10 -10
  5. package/dist/{AccountFields-BWmpVsS3.mjs → AccountFields-BRAl-Hro.mjs} +6 -6
  6. package/dist/{AccountListItem-DRDxaRBe.mjs → AccountListItem-B8koowMf.mjs} +7 -7
  7. package/dist/{Accounts-DX3xJE97.mjs → AccountUtils-Bc-SndzX.mjs} +1 -1
  8. package/dist/{Analytics-CxK7O19c.mjs → Analytics-vgPYa2Zt.mjs} +1 -1
  9. package/dist/AnalyticsApi-DwgSyZ6m.mjs +102 -0
  10. package/dist/ApiEndpoints-DXwIYNUV.mjs +49 -0
  11. package/dist/BudgetUtil-CGchXaek.mjs +74 -0
  12. package/dist/{Category-Ccoew_sA.mjs → Category-DEKZGLYe.mjs} +3 -3
  13. package/dist/{CategorySelectorDrawer-hhDdSFHO.mjs → CategorySelectorDrawer-nHEBR24E.mjs} +2 -2
  14. package/dist/{Connect-CBBTL1HJ.mjs → Connect-Dk6GZEsA.mjs} +1 -1
  15. package/dist/ConnectCard-Dix8BoV_.mjs +54 -0
  16. package/dist/{ConnectDrawer-DNnuF80E.mjs → ConnectDrawer-DgfsTpyW.mjs} +2 -2
  17. package/dist/{ConnectionsDrawer-DX6d7uwJ.mjs → ConnectionsDrawer-D7IXAza2.mjs} +2 -2
  18. package/dist/CurrencyDialog-C7r7JqVu.mjs +371 -0
  19. package/dist/{CurrencyInput-BMbUVSvz.mjs → CurrencyInput-BUd8mAcE.mjs} +15 -16
  20. package/dist/{CurrencyText-oqd6cX3M.mjs → CurrencyText-Dd3NxFYY.mjs} +1 -1
  21. package/dist/{DateFormats-CaOj_4eI.mjs → DateFormats-BSktnUw6.mjs} +6 -7
  22. package/dist/{DateUtil-D0TO0DaZ.mjs → DateUtil-Bdm-ZxFw.mjs} +1 -1
  23. package/dist/DebtUtils-DPn1cXKG.mjs +153 -0
  24. package/dist/EmbeddedCard-CAY_HJjE.mjs +856 -0
  25. package/dist/Error-Dogaw2jO.mjs +84 -0
  26. package/dist/ErrorBoundary-CsdOcnJ9.mjs +23 -0
  27. package/dist/{ExportCsvAction-BDFu6YIe.mjs → ExportCsvAction-DzeJOb_g.mjs} +6 -5
  28. package/dist/{GlobalAccountFilter-jkFxqPg6.mjs → GlobalAccountFilter-DrhtwPqh.mjs} +1 -1
  29. package/dist/GlobalCopyApi-C75qVBk6.mjs +30 -0
  30. package/dist/GoalsUtil-B-Z6fq_t.mjs +107 -0
  31. package/dist/{Help-CgpJK03Q.mjs → Help-CkQTjORd.mjs} +6 -27
  32. package/dist/{Help-C_CM4gpK.mjs → Help-HoxJgoVt.mjs} +68 -67
  33. package/dist/InformationTooltip-4su8bn1e.mjs +41 -0
  34. package/dist/{LineChart-CeZnCZ7j.mjs → LineChart-DNynWPGz.mjs} +2 -2
  35. package/dist/{ListItemAction-CNpknVvo.mjs → ListItemAction-DGjHxNDJ.mjs} +1 -1
  36. package/dist/ListItemRow-kH1rn8Xu.mjs +67 -0
  37. package/dist/ListItemWrapper-B5r-YQQ_.mjs +42 -0
  38. package/dist/Localization-Li21_krp.mjs +37 -0
  39. package/dist/{ManageIncome-BX2IqW57.mjs → ManageIncome-C_FjST7B.mjs} +24 -24
  40. package/dist/{MicroWidgetContainer-DAesImQ6.mjs → MicroWidgetContainer-CfKdQfhi.mjs} +1 -1
  41. package/dist/{MiniWidgetContainer-BOv3n4iw.mjs → MiniWidgetContainer-BdPiUU-u.mjs} +1 -1
  42. package/dist/NetWorthUtils-CyVz9bUn.mjs +95 -0
  43. package/dist/{NotificationSettings-DatCL2Ej.mjs → NotificationSettings-B8pH9TOv.mjs} +13 -13
  44. package/dist/NotificationUtils-BRGFTePr.mjs +23 -0
  45. package/dist/{NumberFormatting-CyrvFgfd.mjs → NumberFormatting-Dnk0YyfZ.mjs} +1 -1
  46. package/dist/{OriginalBalanceAction-CWQ0CK-T.mjs → OriginalBalanceAction-BEBuqeS1.mjs} +4 -4
  47. package/dist/{RecurringSettings-DCplGEv_.mjs → RecurringSettings-eQb1AS5x.mjs} +9 -9
  48. package/dist/RecurringTransactionsUtil-DbMNqEu_.mjs +253 -0
  49. package/dist/Select-BZRUpOib.mjs +51 -0
  50. package/dist/SelectionBox-Bx2a5rh4.mjs +48 -0
  51. package/dist/Sizes-DISGrlUg.mjs +6 -0
  52. package/dist/{SpendingData-Dj85XEUp.mjs → SpendingData-CktOElG1.mjs} +6 -6
  53. package/dist/{SpendingLegend-DLElSvH0.mjs → SpendingLegend-CM5L_1Ka.mjs} +4 -4
  54. package/dist/{TransactionDetails-C_skrQk8.mjs → TransactionDetails-BP-sFltN.mjs} +33 -33
  55. package/dist/TransactionUtils-CvJW9wDu.mjs +234 -0
  56. package/dist/TrendsUtil-D9z3kIj_.mjs +69 -0
  57. package/dist/{ViewMoreMicroCard-D1j0w64K.mjs → ViewMoreMicroCard-DWOpU5L8.mjs} +28 -30
  58. package/dist/{WidgetContainer-BPJoDkhL.mjs → WidgetContainer-CAgbD0ZS.mjs} +3 -3
  59. package/dist/accounts/hooks/useUiStore.d.ts +6 -1
  60. package/dist/accounts/index.d.ts +0 -1
  61. package/dist/accounts/index.es.js +52 -54
  62. package/dist/analytics/index.es.js +2 -2
  63. package/dist/budgets/index.es.js +18 -18
  64. package/dist/cashflow/context/hooks.d.ts +15 -1
  65. package/dist/cashflow/index.d.ts +0 -1
  66. package/dist/cashflow/index.es.js +28 -31
  67. package/dist/categories/context/hooks.d.ts +19 -1
  68. package/dist/categories/index.d.ts +0 -1
  69. package/dist/categories/index.es.js +4 -6
  70. package/dist/common/constants/ScheduledPayment.d.ts +1 -1
  71. package/dist/common/constants/index.d.ts +0 -3
  72. package/dist/common/context/GlobalDataProvider.d.ts +1 -1
  73. package/dist/common/context/hooks.d.ts +21 -21
  74. package/dist/common/index.d.ts +0 -1
  75. package/dist/common/index.es.js +203 -961
  76. package/dist/common/utils/AccountFilter.d.ts +1 -1
  77. package/dist/common/utils/index.d.ts +0 -4
  78. package/dist/{common → core}/constants/DefaultConfig.d.ts +1 -1
  79. package/dist/core/constants/Transaction.d.ts +10 -0
  80. package/dist/core/constants/index.d.ts +2 -0
  81. package/dist/core/index.d.ts +1 -1
  82. package/dist/core/index.es.js +3060 -88
  83. package/dist/{accounts → core}/stores/AccountStore.d.ts +14 -4
  84. package/dist/{analytics → core}/stores/AnalyticsStore.d.ts +1 -1
  85. package/dist/{common → core}/stores/AppDataStore.d.ts +4 -5
  86. package/dist/{insights/store → core/stores}/BeatStore.d.ts +3 -3
  87. package/dist/{budgets/store → core/stores}/BudgetsStore.d.ts +3 -4
  88. package/dist/{cashflow/stores/UiStore.d.ts → core/stores/CashflowStore.d.ts} +10 -2
  89. package/dist/{categories → core}/stores/CategoryStore.d.ts +24 -4
  90. package/dist/{common → core}/stores/ConnectStore.d.ts +2 -2
  91. package/dist/core/stores/DebtsStore.d.ts +22 -0
  92. package/dist/{finstrong → core}/stores/FinstrongStore.d.ts +4 -4
  93. package/dist/{common → core}/stores/GlobalCopyStore.d.ts +2 -2
  94. package/dist/{common → core}/stores/GlobalStore.d.ts +2 -25
  95. package/dist/{common → core}/stores/GlobalUiStore.d.ts +3 -3
  96. package/dist/{goals → core}/stores/GoalStore.d.ts +3 -3
  97. package/dist/{help/store → core/stores}/HelpStore.d.ts +4 -6
  98. package/dist/{investments → core}/stores/HoldingStore.d.ts +4 -4
  99. package/dist/{merchants → core}/stores/MerchantStore.d.ts +3 -3
  100. package/dist/{networth → core}/stores/NetWorthStore.d.ts +3 -4
  101. package/dist/{notifications → core}/stores/NotificationStore.d.ts +3 -3
  102. package/dist/{recurringtransactions → core}/stores/RecurringTransactionsStore.d.ts +3 -3
  103. package/dist/{settings → core}/stores/SettingsStore.d.ts +4 -5
  104. package/dist/{transactions → core}/stores/TransactionStore.d.ts +27 -6
  105. package/dist/{trends → core}/stores/TrendsStore.d.ts +11 -5
  106. package/dist/{common → core}/stores/UserStore.d.ts +2 -2
  107. package/dist/core/stores/index.d.ts +24 -0
  108. package/dist/{networth → core}/types/NetWorth.d.ts +1 -10
  109. package/dist/core/types/Offer.d.ts +32 -0
  110. package/dist/core/types/index.d.ts +3 -1
  111. package/dist/{accounts/utils/Accounts.d.ts → core/utils/AccountUtils.d.ts} +1 -1
  112. package/dist/{microinsights/utils/beatUtils.d.ts → core/utils/BeatUtils.d.ts} +1 -1
  113. package/dist/{budgets → core}/utils/BudgetUtil.d.ts +2 -2
  114. package/dist/{categories/util → core/utils}/CategoryUtil.d.ts +6 -1
  115. package/dist/core/utils/DebtUtils.d.ts +31 -0
  116. package/dist/core/utils/FinstrongUtils.d.ts +7 -0
  117. package/dist/{goals/util → core/utils}/GoalsUtil.d.ts +1 -1
  118. package/dist/core/utils/HelpUtil.d.ts +3 -0
  119. package/dist/{investments/util → core/utils}/InvestmentUtil.d.ts +2 -2
  120. package/dist/core/utils/Localization.d.ts +2 -0
  121. package/dist/{networth → core}/utils/NetWorthUtils.d.ts +1 -2
  122. package/dist/{notifications → core}/utils/NotificationUtils.d.ts +1 -1
  123. package/dist/{common → core}/utils/NumberFormatting.d.ts +1 -1
  124. package/dist/{recurringtransactions/util/RecurringTransactions.d.ts → core/utils/RecurringTransactionsUtil.d.ts} +1 -1
  125. package/dist/{settings/util/Notifications.d.ts → core/utils/SettingsUtil.d.ts} +1 -1
  126. package/dist/{transactions/utils/buildDetailedTransactions.d.ts → core/utils/TransactionUtils.d.ts} +12 -2
  127. package/dist/{trends/utils/TrendsData.d.ts → core/utils/TrendsUtil.d.ts} +1 -1
  128. package/dist/{common/utils/User.d.ts → core/utils/UserUtils.d.ts} +1 -1
  129. package/dist/core/utils/index.d.ts +1 -1
  130. package/dist/dashboard/index.es.js +4 -4
  131. package/dist/debts/components/DebtsChart.d.ts +1 -1
  132. package/dist/debts/components/DebtsTable.d.ts +1 -1
  133. package/dist/debts/components/SnowballCard.d.ts +1 -1
  134. package/dist/debts/components/actions/InterestRateAction.d.ts +1 -1
  135. package/dist/debts/components/actions/MonthlyPaymentAction.d.ts +1 -1
  136. package/dist/debts/components/actions/OriginalBalanceAction.d.ts +1 -1
  137. package/dist/debts/hooks/useDebtsUiStore.d.ts +1 -1
  138. package/dist/debts/index.d.ts +0 -1
  139. package/dist/debts/index.es.js +568 -691
  140. package/dist/debts/utils/DebtsTable.d.ts +1 -1
  141. package/dist/debts/utils/SnowballCard.d.ts +2 -2
  142. package/dist/finstrong/index.d.ts +0 -1
  143. package/dist/finstrong/index.es.js +1565 -1342
  144. package/dist/finstrong/util/finstrongUtils.d.ts +1 -7
  145. package/dist/goals/components/addgoal/AddGoalListItem.d.ts +1 -1
  146. package/dist/goals/index.d.ts +0 -1
  147. package/dist/goals/index.es.js +71 -73
  148. package/dist/help/index.es.js +4 -4
  149. package/dist/help/utils/index.d.ts +0 -1
  150. package/dist/{hooks-RzCoiTd0.mjs → hooks-BaO_gOI6.mjs} +17 -17
  151. package/dist/insights/index.d.ts +0 -1
  152. package/dist/insights/index.es.js +52 -54
  153. package/dist/investments/components/AnalysisDetails.d.ts +1 -1
  154. package/dist/investments/index.es.js +6 -6
  155. package/dist/merchants/index.d.ts +0 -1
  156. package/dist/merchants/index.es.js +12 -14
  157. package/dist/microinsights/index.es.js +1 -1
  158. package/dist/microinsights/interfaces.d.ts +1 -33
  159. package/dist/networth/components/AssetsLiabilitiesDetail.d.ts +1 -1
  160. package/dist/networth/components/GainsLossesDetail.d.ts +1 -1
  161. package/dist/networth/components/NetWorthChange.d.ts +1 -1
  162. package/dist/networth/components/NetWorthListItem.d.ts +1 -1
  163. package/dist/networth/components/NetWorthSummary.d.ts +1 -1
  164. package/dist/networth/index.d.ts +0 -4
  165. package/dist/networth/index.es.js +232 -237
  166. package/dist/notifications/index.d.ts +0 -2
  167. package/dist/notifications/index.es.js +23 -26
  168. package/dist/recurringtransactions/index.d.ts +0 -1
  169. package/dist/recurringtransactions/index.es.js +67 -71
  170. package/dist/settings/index.d.ts +0 -1
  171. package/dist/settings/index.es.js +11 -13
  172. package/dist/spending/index.es.js +10 -10
  173. package/dist/transactions/context/hooks.d.ts +1 -1
  174. package/dist/transactions/index.d.ts +0 -4
  175. package/dist/transactions/index.es.js +102 -109
  176. package/dist/trends/index.d.ts +0 -1
  177. package/dist/trends/index.es.js +67 -68
  178. package/dist/trends/utils/shared.d.ts +1 -1
  179. package/dist/{useAccountDisplayName-pliH6hz0.mjs → useAccountDisplayName-CFa_MrS6.mjs} +1 -1
  180. package/dist/{useInsightsEnabled-CzJoG8xi.mjs → useInsightsEnabled-DaNLPmUU.mjs} +1 -1
  181. package/dist/{useWidgetLoadTimer-BZjr-BiE.mjs → useWidgetLoadTimer-CJb-RELP.mjs} +1 -1
  182. package/package.json +1 -1
  183. package/dist/AccountApi-WEM2M9tg.mjs +0 -19
  184. package/dist/AccountStore-CGrjC2Oe.mjs +0 -253
  185. package/dist/ApiEndpoints-C5IA97i7.mjs +0 -118
  186. package/dist/BeatApi-C6pBa0Rb.mjs +0 -21
  187. package/dist/BeatStore-C7-PIhpB.mjs +0 -163
  188. package/dist/BudgetUtil-H9igoNVm.mjs +0 -479
  189. package/dist/CashflowStore-BEi92kJg.mjs +0 -91
  190. package/dist/CategoryApi-CogDFScz.mjs +0 -29
  191. package/dist/CategoryStore-CA4NTaKH.mjs +0 -160
  192. package/dist/CategoryUtil-BJOHgYKS.mjs +0 -80
  193. package/dist/DebtsStore-BJlC2-yO.mjs +0 -63
  194. package/dist/EmbeddedCard-B9JoBaan.mjs +0 -811
  195. package/dist/FinstrongApi-FpmsS_sy.mjs +0 -19
  196. package/dist/FinstrongStore-DYawCv1d.mjs +0 -435
  197. package/dist/GlobalCopyApi-DkS-2Zf_.mjs +0 -41
  198. package/dist/Goal-MFBpoOIC.mjs +0 -29
  199. package/dist/GoalStore-BBAEbf43.mjs +0 -395
  200. package/dist/Localization-C_HZg9tJ.mjs +0 -15
  201. package/dist/Localization-CkQ49EKr.mjs +0 -26
  202. package/dist/MerchantApi-D8ahYxiG.mjs +0 -15
  203. package/dist/MerchantStore-CyZTv-BM.mjs +0 -26
  204. package/dist/NetWorthStore-BY-B_hxy.mjs +0 -168
  205. package/dist/NotificationApi-DF0obHoR.mjs +0 -20
  206. package/dist/NotificationStore-DlAM5Ue0.mjs +0 -69
  207. package/dist/RecurringTransactions-DCt94TN4.mjs +0 -297
  208. package/dist/RecurringTransactionsStore-CFJYC7lI.mjs +0 -264
  209. package/dist/RepeatingTransaction-D2gmBTd0.mjs +0 -7
  210. package/dist/RepeatingTransactionsApi-BNZgZPLs.mjs +0 -17
  211. package/dist/SettingsApi-D9d7SLhB.mjs +0 -22
  212. package/dist/SettingsStore-BcbuKfFO.mjs +0 -250
  213. package/dist/Transaction-Cn5_iFm0.mjs +0 -5
  214. package/dist/TransactionApi-CLG2eSNe.mjs +0 -86
  215. package/dist/TransactionStore-amPYxHnA.mjs +0 -710
  216. package/dist/TrendsStore-bYjIGqyR.mjs +0 -183
  217. package/dist/WidgetApi-C0BA2cFX.mjs +0 -102
  218. package/dist/accounts/stores/UiStore.d.ts +0 -10
  219. package/dist/accounts/utils/index.d.ts +0 -1
  220. package/dist/cashflow/stores/CashflowStore.d.ts +0 -8
  221. package/dist/categories/stores/UiStore.d.ts +0 -20
  222. package/dist/common/stores/index.d.ts +0 -3
  223. package/dist/common/utils/Categories.d.ts +0 -6
  224. package/dist/common/utils/Localization.d.ts +0 -3
  225. package/dist/debts/store/DebtsStore.d.ts +0 -10
  226. package/dist/debts/store/DebtsUiStore.d.ts +0 -13
  227. package/dist/debts/utils/DebtStore.d.ts +0 -4
  228. package/dist/debts/utils/DebtsWidget.d.ts +0 -20
  229. package/dist/debts/utils/shared.d.ts +0 -12
  230. package/dist/exportTransactionsToCSV-CSvbZrvL.mjs +0 -133
  231. package/dist/help/constants/index.d.ts +0 -1
  232. package/dist/help/utils/getAccessibleHelpCategories.d.ts +0 -3
  233. package/dist/transactions/analytics.d.ts +0 -3
  234. package/dist/transactions/constants/Transaction.d.ts +0 -2
  235. package/dist/transactions/constants/TransactionsTable.d.ts +0 -17
  236. package/dist/transactions/stores/UiStore.d.ts +0 -25
  237. package/dist/transactions/utils/exportTransactionsToCSV.d.ts +0 -9
  238. package/dist/transactions/utils/sortAndFilterTransactions.d.ts +0 -3
  239. /package/dist/{common → core}/constants/Category.d.ts +0 -0
  240. /package/dist/{common → core}/constants/DateFormats.d.ts +0 -0
  241. /package/dist/{debts/constants/index.d.ts → core/constants/Debts.d.ts} +0 -0
  242. /package/dist/{help → core}/constants/Help.d.ts +0 -0
  243. /package/dist/{investments/constants/index.d.ts → core/constants/Investments.d.ts} +0 -0
  244. /package/dist/{common → core}/constants/Numbers.d.ts +0 -0
  245. /package/dist/{common → core}/constants/Table.d.ts +0 -0
  246. /package/dist/{common → core}/utils/DateUtil.d.ts +0 -0
@@ -5,8 +5,7 @@ import { differenceInDays } from 'date-fns/differenceInDays';
5
5
  import { differenceInMonths } from 'date-fns/differenceInMonths';
6
6
  import { differenceInWeeks } from 'date-fns/differenceInWeeks';
7
7
  import { PieValueType } from '@mui/x-charts';
8
- import { MonthlySummaries, Transaction } from '../../core';
9
- import { SpendingFeeTransaction, MonthlyHealthScoreItem } from '../../core/types/Finstrong';
8
+ import { MonthlySummaries } from '../../core';
10
9
  import { CreditScoreStatusCopy, FinstrongCopy, KeyIndicatorSpend } from '../../core/types/localization/FinstrongCopy';
11
10
  import { CardStatus } from '../../common/constants/FinStrong';
12
11
  import { Action } from '../components/ProfileList';
@@ -102,9 +101,4 @@ export declare const getSeriesGraphData: (monthlySummaries: MonthlySummaries[],
102
101
  x: string;
103
102
  y: number;
104
103
  }[];
105
- export declare const augmentChartData: (averageHealthScores: MonthlyHealthScoreItem[]) => {
106
- x: string;
107
- y: number;
108
- }[];
109
- export declare const augmentSpendingFeeTransactions: (spendingFeeTransactions: SpendingFeeTransaction[]) => Transaction[];
110
104
  export {};
@@ -1,5 +1,5 @@
1
1
  import { MetaType, TrackType } from '../../../core';
2
- import { GoalType } from '../../util/GoalsUtil';
2
+ import { GoalType } from '../../../core/utils/GoalsUtil';
3
3
  interface AddGoalListItemProps {
4
4
  goalType: GoalType;
5
5
  onClick: (name: string, metaType: MetaType, type: TrackType) => void;
@@ -1,3 +1,2 @@
1
1
  export { GoalsWidget } from './GoalsWidget';
2
- export { GoalStore } from './stores/GoalStore';
3
2
  export { GoalsMicroWidget } from './GoalsMicroWidget';
@@ -9,56 +9,55 @@ import Fe from "@mui/material/Tabs";
9
9
  import { Text as C, H3 as le, P as Y, Icon as $e, InstitutionLogo as X, H2 as Te } from "@mxenabled/mxui";
10
10
  import me from "@mui/material/Button";
11
11
  import Ce from "@mui/material/Card";
12
- import xe from "@mui/material/CardActionArea";
13
- import Re from "@mui/material/CardContent";
12
+ import Re from "@mui/material/CardActionArea";
13
+ import xe from "@mui/material/CardContent";
14
14
  import ye from "@mui/material/Unstable_Grid2";
15
15
  import te from "@mui/material/Avatar";
16
16
  import He from "@mui/material/CardHeader";
17
17
  import { Payments as Se, NoteStack as Ee, Person as ve, ArrowUpwardAlt as Ue, CheckCircle as Ye, ChevronRight as z, Icon as ge, ExpandLess as Ze, ExpandMore as qe, AddBox as Ie, Trophy as Je } from "@mxenabled/mx-icons";
18
- import { g as ue, a as Qe, C as Ge, b as Xe } from "../GoalStore-BBAEbf43.mjs";
19
- import { G as qn } from "../GoalStore-BBAEbf43.mjs";
20
- import { u as R, k as N, b as _e, a as pe, d as j, o as Ne, g as ke } from "../hooks-RzCoiTd0.mjs";
18
+ import { g as ue, T as r, G as de, a as Qe, M as U, b as Xe } from "../GoalsUtil-B-Z6fq_t.mjs";
19
+ import { f as I } from "../NumberFormatting-Dnk0YyfZ.mjs";
20
+ import { u as x, k as N, b as _e, a as pe, d as j, C as Ge, g as Ne } from "../hooks-BaO_gOI6.mjs";
21
21
  import { u as he } from "../useScreenSize-CeFhWTt_.mjs";
22
- import { T as r, a as de, M as U } from "../Goal-MFBpoOIC.mjs";
23
- import { f as I } from "../NumberFormatting-CyrvFgfd.mjs";
24
22
  import { S as et } from "../StatusBar-CPfSXe80.mjs";
25
23
  import v from "@mui/material/Divider";
26
24
  import O from "@mui/material/List";
27
- import { L as Z } from "../ListItemAction-CNpknVvo.mjs";
28
- import { C as we } from "../CurrencyInput-BMbUVSvz.mjs";
25
+ import { L as Z } from "../ListItemAction-DGjHxNDJ.mjs";
26
+ import { C as ke } from "../CurrencyInput-BUd8mAcE.mjs";
29
27
  import { fromUnixTime as ee } from "date-fns/fromUnixTime";
30
28
  import tt from "@mui/material/IconButton";
31
29
  import k from "@mui/material/ListItem";
32
30
  import P from "@mui/material/ListItemAvatar";
33
31
  import L from "@mui/material/ListItemButton";
34
32
  import w from "@mui/material/ListItemText";
35
- import { b as W } from "../Localization-CkQ49EKr.mjs";
36
- import { f as be, D as fe } from "../DateFormats-CaOj_4eI.mjs";
33
+ import { b as W } from "../Localization-Li21_krp.mjs";
34
+ import { f as be, D as fe } from "../DateFormats-BSktnUw6.mjs";
37
35
  import { D as q } from "../Drawer-XPaLYjiO.mjs";
38
- import { g as De } from "../AccountDisplayName-CO7z3v99.mjs";
36
+ import { g as we } from "../AccountDisplayName-CO7z3v99.mjs";
39
37
  import nt from "@mui/material/Collapse";
40
38
  import ot from "@mui/material/ListItemIcon";
41
39
  import at from "@mui/material/Checkbox";
42
- import { A as Ae } from "../Account-CMjOp7S2.mjs";
43
- import { u as it } from "../useAccountDisplayName-pliH6hz0.mjs";
40
+ import { C as De } from "../ConnectCard-Dix8BoV_.mjs";
41
+ import { A as Ae } from "../Account-BTOmbrEK.mjs";
42
+ import { u as it } from "../useAccountDisplayName-CFa_MrS6.mjs";
44
43
  import Ke from "@mui/material/TextField";
45
- import { M as rt, I as st, O as ct } from "../OriginalBalanceAction-CWQ0CK-T.mjs";
44
+ import { M as rt, I as st, O as ct } from "../OriginalBalanceAction-BEBuqeS1.mjs";
46
45
  import { getUnixTime as lt } from "date-fns/getUnixTime";
47
46
  import { isValid as dt } from "date-fns/isValid";
48
47
  import { AdapterDateFns as mt } from "@mui/x-date-pickers/AdapterDateFnsV3";
49
48
  import { DatePicker as ut } from "@mui/x-date-pickers";
50
49
  import { LocalizationProvider as _t } from "@mui/x-date-pickers/LocalizationProvider";
51
50
  import { D as pt } from "../Dialog-iLlBR8TG.mjs";
52
- import { u as Me } from "../useWidgetLoadTimer-BZjr-BiE.mjs";
51
+ import { u as Me } from "../useWidgetLoadTimer-CJb-RELP.mjs";
53
52
  import { A as $ } from "../Analytics-CzGzz_sE.mjs";
54
53
  import { L as Le } from "../Loader-CxeBwuPG.mjs";
55
- import { W as ht } from "../WidgetContainer-BPJoDkhL.mjs";
54
+ import { W as ht } from "../WidgetContainer-CAgbD0ZS.mjs";
56
55
  import { E as bt } from "../EmptyState-DHAkGsjk.mjs";
57
56
  import ft from "@mui/material/Stack/Stack";
58
57
  import yt from "@mui/material/Box";
59
58
  import gt from "@mui/material/styles/useTheme";
60
59
  import { S as At } from "../SingleSegmentDonut-PsRQPkmV.mjs";
61
- import { M as Tt } from "../MicroWidgetContainer-DAesImQ6.mjs";
60
+ import { M as Tt } from "../MicroWidgetContainer-CfKdQfhi.mjs";
62
61
  function se({ title: t, subtitle: n }) {
63
62
  return /* @__PURE__ */ c(f, { children: [
64
63
  /* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: t }),
@@ -70,7 +69,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
70
69
  "$1$2$3"
71
70
  ) : I(t, "0,0.00"), Oe = D(
72
71
  ({ goal: t, isInDrawer: n = !1, onClick: u }) => {
73
- const { goals: d } = R(), { isMobile: _, isTablet: i } = he(), m = _ || i, {
72
+ const { goals: d } = x(), { isMobile: _, isTablet: i } = he(), m = _ || i, {
74
73
  backgroundColor: p,
75
74
  color: s,
76
75
  percentage: h,
@@ -93,7 +92,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
93
92
  outlineColor: "primary.main"
94
93
  }
95
94
  },
96
- children: /* @__PURE__ */ c(xe, { disabled: !u, onClick: u, children: [
95
+ children: /* @__PURE__ */ c(Re, { disabled: !u, onClick: u, children: [
97
96
  /* @__PURE__ */ e(
98
97
  He,
99
98
  {
@@ -130,7 +129,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
130
129
  )
131
130
  }
132
131
  ),
133
- /* @__PURE__ */ e(Re, { sx: { pt: 0 }, children: /* @__PURE__ */ c(f, { gap: 6, children: [
132
+ /* @__PURE__ */ e(xe, { sx: { pt: 0 }, children: /* @__PURE__ */ c(f, { gap: 6, children: [
134
133
  /* @__PURE__ */ e(et, { data: l, height: 24 }),
135
134
  /* @__PURE__ */ c(f, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
136
135
  /* @__PURE__ */ e(C, { color: "text.secondary", variant: "caption", children: a }),
@@ -141,8 +140,8 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
141
140
  }
142
141
  );
143
142
  }
144
- ), xt = D(({ trackType: t }) => {
145
- const { goals: n } = R(), { setAlert: u, monthlyCashFlowProfile: d, updateMonthlyCashFlowProfile: _ } = N(), i = T.useMemo(() => {
143
+ ), Rt = D(({ trackType: t }) => {
144
+ const { goals: n } = x(), { setAlert: u, monthlyCashFlowProfile: d, updateMonthlyCashFlowProfile: _ } = N(), i = T.useMemo(() => {
146
145
  let a = 0;
147
146
  return t === r.SAVINGS_TRACK ? a = d?.amount_allocated_for_savings_goals || 0 : t === r.DEBT_TRACK ? a = d?.amount_allocated_for_debt_goals || 0 : t === r.RETIREMENT_TRACK && (a = d?.amount_allocated_for_retirement_goals || 0), a;
148
147
  }, [d]);
@@ -165,7 +164,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
165
164
  primaryText: n.contribution_label,
166
165
  secondaryText: I(i, "0,0.00"),
167
166
  children: /* @__PURE__ */ e(
168
- we,
167
+ ke,
169
168
  {
170
169
  amount: m,
171
170
  autoFocus: !0,
@@ -178,8 +177,8 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
178
177
  )
179
178
  }
180
179
  ) });
181
- }), Rt = ({ goal: t, index: n, onUpClick: u }) => {
182
- const { goals: d } = R(), { percentage: _ } = ue(d, t), i = t.goal_type === de.KEEP_BALANCE_BELOW || t.has_been_spent ? d.goal_completed : W(d.goal_percentage_reached, `${_ * 100}`);
180
+ }), xt = ({ goal: t, index: n, onUpClick: u }) => {
181
+ const { goals: d } = x(), { percentage: _ } = ue(d, t), i = t.goal_type === de.KEEP_BALANCE_BELOW || t.has_been_spent ? d.goal_completed : W(d.goal_percentage_reached, `${_ * 100}`);
183
182
  return /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(
184
183
  L,
185
184
  {
@@ -215,7 +214,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
215
214
  }
216
215
  ) });
217
216
  }, St = ({ goal: t }) => {
218
- const { goals: n } = R();
217
+ const { goals: n } = x();
219
218
  return /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(
220
219
  L,
221
220
  {
@@ -240,7 +239,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
240
239
  }
241
240
  ) }, t.guid);
242
241
  }, Et = ({ trackType: t }) => {
243
- const { goals: n, common: u } = R(), { loadGoals: d, orderedGoals: _, reorderGoals: i } = N(), m = _.filter((y) => y.track_type === t), p = m.filter(
242
+ const { goals: n, common: u } = x(), { loadGoals: d, orderedGoals: _, reorderGoals: i } = N(), m = _.filter((y) => y.track_type === t), p = m.filter(
244
243
  (y) => y.track_type === r.SAVINGS_TRACK && !y.has_been_spent || y.track_type !== r.SAVINGS_TRACK && !y.is_complete
245
244
  ), s = m.filter(
246
245
  (y) => y.track_type === r.SAVINGS_TRACK && y.has_been_spent || y.track_type !== r.SAVINGS_TRACK && y.is_complete
@@ -248,9 +247,9 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
248
247
  let o = n.manage_saving_goals, b = n.manage_saving_drawer_title, l = n.manage_saving_title, g = n.manage_saving_description;
249
248
  t === r.DEBT_TRACK ? (o = n.manage_debt_goals, b = n.manage_debt_drawer_title, l = n.manage_debt_title, g = n.manage_debt_description) : t === r.RETIREMENT_TRACK && (o = n.manage_retirement_goals, b = n.manage_retirement_drawer_title, l = n.manage_retirement_title, g = n.manage_retirement_description);
250
249
  const S = async (y) => {
251
- const A = [...p], x = A.findIndex((K) => K.guid === y.guid);
252
- let G = x - 1;
253
- G < 0 && (G = A.length - 1), A.splice(G, 0, A.splice(x, 1)[0]);
250
+ const A = [...p], R = A.findIndex((K) => K.guid === y.guid);
251
+ let G = R - 1;
252
+ G < 0 && (G = A.length - 1), A.splice(G, 0, A.splice(R, 1)[0]);
254
253
  for (let K = 0; K < A.length; K++)
255
254
  A[K].position = K + 1;
256
255
  await i(A), await d();
@@ -269,22 +268,22 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
269
268
  /* @__PURE__ */ e(le, { children: l }),
270
269
  /* @__PURE__ */ e(Y, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "subtitle2", children: g })
271
270
  ] }),
272
- /* @__PURE__ */ e(xt, { trackType: t }),
271
+ /* @__PURE__ */ e(Rt, { trackType: t }),
273
272
  /* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "caption", children: n.goal_priority }),
274
273
  /* @__PURE__ */ e(O, { sx: { bgcolor: "background.paper" }, children: p.map((y, A) => {
275
- const x = A >= p.length - 1;
274
+ const R = A >= p.length - 1;
276
275
  return /* @__PURE__ */ c(f, { children: [
277
- /* @__PURE__ */ e(Rt, { goal: y, index: A, onUpClick: S }),
278
- /* @__PURE__ */ e(v, { variant: x ? "fullWidth" : "inset" })
276
+ /* @__PURE__ */ e(xt, { goal: y, index: A, onUpClick: S }),
277
+ /* @__PURE__ */ e(v, { variant: R ? "fullWidth" : "inset" })
279
278
  ] }, `ongoing-${y.guid}`);
280
279
  }) }),
281
280
  t !== r.RETIREMENT_TRACK && s.length > 0 && /* @__PURE__ */ c(f, { children: [
282
281
  /* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "caption", children: n.complete_title }),
283
282
  /* @__PURE__ */ e(O, { sx: { bgcolor: "background.paper" }, children: s.map((y, A) => {
284
- const x = A > p.length - 1;
283
+ const R = A > p.length - 1;
285
284
  return /* @__PURE__ */ c(f, { children: [
286
285
  /* @__PURE__ */ e(St, { goal: y }),
287
- /* @__PURE__ */ e(v, { variant: x ? "fullWidth" : "inset" })
286
+ /* @__PURE__ */ e(v, { variant: R ? "fullWidth" : "inset" })
288
287
  ] }, `complete-${y.guid}`);
289
288
  }) })
290
289
  ] })
@@ -293,7 +292,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
293
292
  )
294
293
  ] });
295
294
  }, ce = D(({ trackType: t, onAddGoals: n }) => {
296
- const { isMobile: u } = he(), { goals: d } = R(), { selectedAccountGuids: _ } = _e(), { orderedGoals: i, setSelectedGoal: m } = N(), p = i.filter(
295
+ const { isMobile: u } = he(), { goals: d } = x(), { selectedAccountGuids: _ } = _e(), { orderedGoals: i, setSelectedGoal: m } = N(), p = i.filter(
297
296
  (o) => o.track_type === t && (o.track_type !== r.RETIREMENT_TRACK && _.includes(o.account_guid) || o.track_type === r.RETIREMENT_TRACK)
298
297
  ), s = p.filter(
299
298
  (o) => o.track_type === r.SAVINGS_TRACK && !o.has_been_spent || o.track_type !== r.SAVINGS_TRACK && !o.is_complete
@@ -352,7 +351,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
352
351
  children: a
353
352
  }
354
353
  ) }),
355
- h.map((o) => /* @__PURE__ */ e(Ce, { elevation: 2, children: /* @__PURE__ */ e(xe, { onClick: () => m(o), children: /* @__PURE__ */ e(Re, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ c(f, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
354
+ h.map((o) => /* @__PURE__ */ e(Ce, { elevation: 2, children: /* @__PURE__ */ e(Re, { onClick: () => m(o), children: /* @__PURE__ */ e(xe, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ c(f, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
356
355
  /* @__PURE__ */ c(f, { alignItems: "center", direction: "row", gap: 6, children: [
357
356
  /* @__PURE__ */ e($e, { color: "success", fill: !0, name: "check_circle", size: 20 }),
358
357
  /* @__PURE__ */ e(C, { color: "text.secondary", variant: "body1", children: o.name })
@@ -362,7 +361,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
362
361
  ] })
363
362
  ] });
364
363
  }), vt = ({ goalType: t, onClick: n }) => {
365
- const { goals: u } = R(), { bgcolor: d, icon: _, label: i, description: m, subTypes: p, type: s } = t, [h, a] = T.useState(!1), o = p.length > 0;
364
+ const { goals: u } = x(), { bgcolor: d, icon: _, label: i, description: m, subTypes: p, type: s } = t, [h, a] = T.useState(!1), o = p.length > 0;
366
365
  return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ c(O, { sx: { bgcolor: "background.paper" }, children: [
367
366
  /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(
368
367
  L,
@@ -400,7 +399,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
400
399
  onSave: d,
401
400
  title: _
402
401
  }) => {
403
- const { goals: i, common: m } = R(), { config: p } = pe(), [s, h] = T.useState([]), a = (o) => {
402
+ const { goals: i, common: m } = x(), { config: p } = pe(), [s, h] = T.useState([]), a = (o) => {
404
403
  const b = s.findIndex((g) => g.guid === o.guid), l = [...s];
405
404
  b >= 0 ? l.splice(b, 1) : l.push(o), h(l);
406
405
  };
@@ -427,7 +426,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
427
426
  /* @__PURE__ */ e(
428
427
  w,
429
428
  {
430
- primary: De(o, {
429
+ primary: we(o, {
431
430
  allowNickname: p?.show_account_nicknames_in_master
432
431
  }),
433
432
  secondary: I(o.balance || 0, "0,0.00")
@@ -439,7 +438,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
439
438
  ] }, o.guid))
440
439
  ] }),
441
440
  p.show_connections_widget_in_master && /* @__PURE__ */ e(
442
- Ge,
441
+ De,
443
442
  {
444
443
  description: i.connect_description,
445
444
  label: i.connect_button,
@@ -450,7 +449,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
450
449
  }
451
450
  );
452
451
  }, It = ({ onClose: t }) => {
453
- const { goals: n } = R(), { addGoal: u, debtGoals: d, setAlert: _, setSelectedGoal: i } = N(), { config: m } = pe(), { visibleDebtAccounts: p } = j(), [s, h] = T.useState(!1), a = Xe(n), o = (l, g, S) => {
452
+ const { goals: n } = x(), { addGoal: u, debtGoals: d, setAlert: _, setSelectedGoal: i } = N(), { config: m } = pe(), { visibleDebtAccounts: p } = j(), [s, h] = T.useState(!1), a = Xe(n), o = (l, g, S) => {
454
453
  S === r.DEBT_TRACK ? h(!0) : i({
455
454
  amount: 0,
456
455
  current_amount: 0,
@@ -472,7 +471,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
472
471
  interest_rate: g.interest_rate || 0,
473
472
  meta_type: S,
474
473
  monthly_payment: g.minimum_payment || 0,
475
- name: De(g, {
474
+ name: we(g, {
476
475
  allowNickname: m?.show_account_nicknames_in_master
477
476
  }),
478
477
  track_type: r.DEBT_TRACK
@@ -512,7 +511,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
512
511
  )
513
512
  ] });
514
513
  }, Gt = D(({ goal: t }) => {
515
- const { goals: n } = R(), { setAlert: u, setSelectedGoal: d, updateGoal: _, updateRetirementGoal: i } = N(), [m, p] = T.useState(t.amount), s = !t.guid, h = m < 0 || m > 9999999999e-2, a = t.track_type === r.SAVINGS_TRACK && t.has_been_spent || t.track_type !== r.SAVINGS_TRACK && t.is_complete, o = async () => {
514
+ const { goals: n } = x(), { setAlert: u, setSelectedGoal: d, updateGoal: _, updateRetirementGoal: i } = N(), [m, p] = T.useState(t.amount), s = !t.guid, h = m < 0 || m > 9999999999e-2, a = t.track_type === r.SAVINGS_TRACK && t.has_been_spent || t.track_type !== r.SAVINGS_TRACK && t.is_complete, o = async () => {
516
515
  const l = { ...t, amount: m };
517
516
  t.amount = m, s ? d(l) : (t.track_type !== r.RETIREMENT_TRACK ? await _(l) : await i(l), u(n.alert_goal_updated_amount));
518
517
  }, b = () => {
@@ -532,7 +531,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
532
531
  secondaryText: I(t.amount, "0,0"),
533
532
  zeroStateText: s && t.amount === 0 ? n.add_amount : void 0,
534
533
  children: /* @__PURE__ */ e(
535
- we,
534
+ ke,
536
535
  {
537
536
  amount: m,
538
537
  autoFocus: !0,
@@ -546,7 +545,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
546
545
  }
547
546
  );
548
547
  }), Nt = ({ goal: t }) => {
549
- const { visibleCheckingAccounts: n, visibleSavingsAccounts: u } = j(), { accounts: d, goals: _ } = R(), { config: i } = pe(), { setAlert: m, setSelectedGoal: p, updateGoal: s } = N(), h = !t.guid, [a, o] = T.useState(!1), b = async ({ balance: l, guid: g }) => {
548
+ const { visibleCheckingAccounts: n, visibleSavingsAccounts: u } = j(), { accounts: d, goals: _ } = x(), { config: i } = pe(), { setAlert: m, setSelectedGoal: p, updateGoal: s } = N(), h = !t.guid, [a, o] = T.useState(!1), b = async ({ balance: l, guid: g }) => {
550
549
  const S = { ...t, account_guid: g, current_amount: l || 0 };
551
550
  h ? p(S) : (await s(S), m(_.alert_account_changed)), o(!1);
552
551
  };
@@ -607,7 +606,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
607
606
  /* @__PURE__ */ e(z, {})
608
607
  ] }) }, l.guid)) }),
609
608
  i.show_connections_widget_in_master && /* @__PURE__ */ e(
610
- Ge,
609
+ De,
611
610
  {
612
611
  description: _.connect_description,
613
612
  label: _.connect_button,
@@ -617,7 +616,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
617
616
  ] }) })
618
617
  ] });
619
618
  }, kt = D(({ goal: t }) => {
620
- const { goals: n } = R(), { setAlert: u, setSelectedGoal: d, updateGoal: _ } = N(), [i, m] = T.useState(t.name), p = !t.guid, s = t.track_type === r.SAVINGS_TRACK && t.has_been_spent || t.track_type !== r.SAVINGS_TRACK && t.is_complete, h = async () => {
619
+ const { goals: n } = x(), { setAlert: u, setSelectedGoal: d, updateGoal: _ } = N(), [i, m] = T.useState(t.name), p = !t.guid, s = t.track_type === r.SAVINGS_TRACK && t.has_been_spent || t.track_type !== r.SAVINGS_TRACK && t.is_complete, h = async () => {
621
620
  const o = { ...t, name: i };
622
621
  t.name = i, p ? d(o) : (await _(o), u(n.alert_goal_updated_name));
623
622
  }, a = () => {
@@ -648,7 +647,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
648
647
  }
649
648
  );
650
649
  }), wt = ({ goal: t }) => {
651
- const { goals: n } = R(), { setAlert: u, setSelectedGoal: d, updateRetirementGoal: _ } = N(), [i, m] = T.useState(t.retirement_age || 65), p = !t.guid, s = async () => {
650
+ const { goals: n } = x(), { setAlert: u, setSelectedGoal: d, updateRetirementGoal: _ } = N(), [i, m] = T.useState(t.retirement_age || 65), p = !t.guid, s = async () => {
652
651
  if (!isNaN(i)) {
653
652
  const o = { ...t, retirement_age: i };
654
653
  t.retirement_age = i, p ? d(o) : (await _(o), u(n.alert_goal_updated_retirement_age));
@@ -682,7 +681,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
682
681
  }
683
682
  );
684
683
  }, Dt = D(({ goal: t }) => {
685
- const { goals: n } = R(), { user: u, updateUser: d } = Ne(), { setAlert: _ } = N(), [i, m] = T.useState(ee(u.birthday ?? 0)), [p, s] = T.useState(null), h = t.is_complete, a = async () => {
684
+ const { goals: n } = x(), { user: u, updateUser: d } = Ge(), { setAlert: _ } = N(), [i, m] = T.useState(ee(u.birthday ?? 0)), [p, s] = T.useState(null), h = t.is_complete, a = async () => {
686
685
  i && dt(i) && (await d({ ...u, birthday: lt(i) }), _(n.alert_goal_updated_birthday));
687
686
  };
688
687
  return /* @__PURE__ */ e(
@@ -708,7 +707,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
708
707
  }
709
708
  );
710
709
  }), Kt = ({ goal: t }) => {
711
- const { goals: n } = R(), { visibleRetirementAccounts: u } = j(), {
710
+ const { goals: n } = x(), { visibleRetirementAccounts: u } = j(), {
712
711
  addRetirementGoalAccount: d,
713
712
  newRetirementGoalAccounts: _,
714
713
  retirementGoalAccounts: i,
@@ -721,18 +720,18 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
721
720
  ), g = u.filter(
722
721
  (y) => !i.find((A) => A.account_guid === y.guid)
723
722
  ), S = async (y) => {
724
- const A = y.map((x) => ({
725
- account_guid: x.guid,
723
+ const A = y.map((R) => ({
724
+ account_guid: R.guid,
726
725
  retirement_goal_guid: t.guid
727
726
  }));
728
727
  if (b)
729
728
  s(A);
730
729
  else
731
- for (const x of A)
732
- await d(x), p(n.alert_account_added);
730
+ for (const R of A)
731
+ await d(R), p(n.alert_account_added);
733
732
  h({
734
733
  ...m,
735
- current_amount: y.reduce((x, G) => x + (G.balance || 0), 0)
734
+ current_amount: y.reduce((R, G) => R + (G.balance || 0), 0)
736
735
  }), o(!1);
737
736
  };
738
737
  return /* @__PURE__ */ c(f, { children: [
@@ -759,7 +758,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
759
758
  )
760
759
  ] });
761
760
  }, Mt = D(({ goal: t }) => {
762
- const { goals: n } = R(), { visibleAccounts: u } = j(), d = T.useMemo(
761
+ const { goals: n } = x(), { visibleAccounts: u } = j(), d = T.useMemo(
763
762
  () => u.find((m) => m.guid === t.account_guid),
764
763
  [u, t]
765
764
  ), _ = t.track_type;
@@ -813,7 +812,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
813
812
  t.track_type === r.SAVINGS_TRACK && !t.is_complete && /* @__PURE__ */ e(Nt, { goal: t })
814
813
  ] });
815
814
  }), Lt = D(({ onClose: t }) => {
816
- const { visibleRetirementAccounts: n } = j(), { goals: u, common: d } = R(), {
815
+ const { visibleRetirementAccounts: n } = j(), { goals: u, common: d } = x(), {
817
816
  addGoal: _,
818
817
  addRetirementGoal: i,
819
818
  deleteGoal: m,
@@ -824,17 +823,17 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
824
823
  setAlert: o,
825
824
  setSelectedGoal: b,
826
825
  updateGoal: l
827
- } = N(), { user: g } = Ne(), [S, y] = T.useState(!1), A = !a?.guid, x = a?.track_type === r.SAVINGS_TRACK && a.is_complete && !a.has_been_spent, G = T.useMemo(() => {
826
+ } = N(), { user: g } = Ge(), [S, y] = T.useState(!1), A = !a?.guid, R = a?.track_type === r.SAVINGS_TRACK && a.is_complete && !a.has_been_spent, G = T.useMemo(() => {
828
827
  const E = A ? s : h;
829
828
  return n.filter((V) => E.some((M) => M.account_guid === V.guid));
830
829
  }, [A, n, s, h]), K = T.useMemo(() => {
831
830
  if (!a) return !1;
832
- if (!A && !x) return !0;
831
+ if (!A && !R) return !0;
833
832
  const { account_guid: E, track_type: V, name: M, amount: J, retirement_age: ie } = a;
834
833
  return V === r.SAVINGS_TRACK ? E ? !!M && !!J : !1 : V === r.RETIREMENT_TRACK ? G.length ? !!M && !!J && !!ie && !!g.birthday : !1 : !0;
835
834
  }, [a, G, g.birthday]);
836
835
  let B = d.delete_button, H = () => y(!0);
837
- A ? (H = () => ne(), B = d.save_button) : x && (H = () => ae(), B = u.mark_as_complete_button);
836
+ A ? (H = () => ne(), B = d.save_button) : R && (H = () => ae(), B = u.mark_as_complete_button);
838
837
  const ne = async () => {
839
838
  if (a) {
840
839
  const E = a.track_type;
@@ -859,7 +858,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
859
858
  isPrimaryDisabled: !K,
860
859
  onClose: () => b(void 0),
861
860
  onPrimaryAction: H,
862
- primaryColor: A || x ? "primary" : "error",
861
+ primaryColor: A || R ? "primary" : "error",
863
862
  primaryText: B,
864
863
  secondaryColor: "primary",
865
864
  title: u.goal_details,
@@ -881,7 +880,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
881
880
  )
882
881
  ] });
883
882
  }), Hn = D(({ onBackClick: t, onMenuClick: n, sx: u }) => {
884
- const { onEvent: d } = ke(), { isMobile: _ } = he(), { isAccountDataLoaded: i, loadAccountData: m } = j(), { isInitialized: p } = _e(), { goals: s, common: h } = R(), {
883
+ const { onEvent: d } = Ne(), { isMobile: _ } = he(), { isAccountDataLoaded: i, loadAccountData: m } = j(), { isInitialized: p } = _e(), { goals: s, common: h } = x(), {
885
884
  alert: a,
886
885
  allGoals: o,
887
886
  goals: b,
@@ -890,7 +889,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
890
889
  monthlyCashFlowProfile: S,
891
890
  setAlert: y,
892
891
  retirmentGoals: A
893
- } = N(), [x, G] = T.useState(0), [K, B] = T.useState(!1), H = S?.amount_allocated_for_savings_goals || 0, ne = S?.amount_allocated_for_debt_goals || 0, oe = S?.amount_allocated_for_retirement_goals || 0;
892
+ } = N(), [R, G] = T.useState(0), [K, B] = T.useState(!1), H = S?.amount_allocated_for_savings_goals || 0, ne = S?.amount_allocated_for_debt_goals || 0, oe = S?.amount_allocated_for_retirement_goals || 0;
894
893
  Me({
895
894
  widgetName: "GoalsWidget",
896
895
  isLoaded: l
@@ -944,7 +943,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
944
943
  onChange: (Q, ze) => G(ze),
945
944
  sx: { bgcolor: "background.paper" },
946
945
  textColor: "primary",
947
- value: M ? !1 : x,
946
+ value: M ? !1 : R,
948
947
  variant: "fullWidth",
949
948
  children: [
950
949
  /* @__PURE__ */ e(
@@ -987,9 +986,9 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
987
986
  }
988
987
  }
989
988
  ) : /* @__PURE__ */ c(F, { children: [
990
- x === 0 && /* @__PURE__ */ e(ce, { onAddGoals: E, trackType: r.SAVINGS_TRACK }),
991
- x === 1 && /* @__PURE__ */ e(ce, { onAddGoals: E, trackType: r.DEBT_TRACK }),
992
- x === 2 && /* @__PURE__ */ e(ce, { onAddGoals: E, trackType: r.RETIREMENT_TRACK })
989
+ R === 0 && /* @__PURE__ */ e(ce, { onAddGoals: E, trackType: r.SAVINGS_TRACK }),
990
+ R === 1 && /* @__PURE__ */ e(ce, { onAddGoals: E, trackType: r.DEBT_TRACK }),
991
+ R === 2 && /* @__PURE__ */ e(ce, { onAddGoals: E, trackType: r.RETIREMENT_TRACK })
993
992
  ] })
994
993
  ] }),
995
994
  /* @__PURE__ */ e(Lt, { onClose: V }),
@@ -1008,7 +1007,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
1008
1007
  }
1009
1008
  );
1010
1009
  }), Ot = D(({ goal: t }) => {
1011
- const { goals: n } = R(), u = gt(), {
1010
+ const { goals: n } = x(), u = gt(), {
1012
1011
  backgroundColor: d,
1013
1012
  color: _,
1014
1013
  percentage: i,
@@ -1057,7 +1056,7 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
1057
1056
  ]
1058
1057
  }
1059
1058
  ), Un = D(({ onCTAClick: t }) => {
1060
- const { isAccountDataLoaded: n, loadAccountData: u, visibleAccounts: d } = j(), { onEvent: _ } = ke(), { goals: i } = R(), { isInitialized: m } = _e(), { ongoingGoalsForMicroWidget: p, isAllGoalDataLoaded: s, loadGoalData: h } = N();
1059
+ const { isAccountDataLoaded: n, loadAccountData: u, visibleAccounts: d } = j(), { onEvent: _ } = Ne(), { goals: i } = x(), { isInitialized: m } = _e(), { ongoingGoalsForMicroWidget: p, isAllGoalDataLoaded: s, loadGoalData: h } = N();
1061
1060
  Me({
1062
1061
  widgetName: "GoalsMicroWidget",
1063
1062
  isLoaded: s
@@ -1097,7 +1096,6 @@ const Ct = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
1097
1096
  );
1098
1097
  });
1099
1098
  export {
1100
- qn as GoalStore,
1101
1099
  Un as GoalsMicroWidget,
1102
1100
  Hn as GoalsWidget
1103
1101
  };
@@ -1,10 +1,10 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { observer as m } from "mobx-react-lite";
3
- import { H as s } from "../Help-C_CM4gpK.mjs";
4
- import { b as a } from "../hooks-RzCoiTd0.mjs";
5
- import { u as p } from "../useWidgetLoadTimer-BZjr-BiE.mjs";
3
+ import { H as s } from "../Help-HoxJgoVt.mjs";
4
+ import { b as a } from "../hooks-BaO_gOI6.mjs";
5
+ import { u as p } from "../useWidgetLoadTimer-CJb-RELP.mjs";
6
6
  import { L as d } from "../Loader-CxeBwuPG.mjs";
7
- import { W as f } from "../WidgetContainer-BPJoDkhL.mjs";
7
+ import { W as f } from "../WidgetContainer-CAgbD0ZS.mjs";
8
8
  const L = m(({ onBackClick: e, onMenuClick: i, sx: t }) => {
9
9
  const { isInitialized: o } = a();
10
10
  return p({
@@ -1,2 +1 @@
1
- export { getAccessibleHelpCategories } from './getAccessibleHelpCategories';
2
1
  export { getInstitutionsBasedOnGuid } from './getInstitutionsBasedOnGuid';
@@ -42,10 +42,10 @@ const a = r.createContext(null), C = ({
42
42
  return e;
43
43
  }, k = () => i();
44
44
  export {
45
- A,
46
- _ as B,
47
- $ as C,
48
- V as D,
45
+ L as A,
46
+ V as B,
47
+ j as C,
48
+ k as D,
49
49
  a as G,
50
50
  d as W,
51
51
  f as a,
@@ -60,18 +60,18 @@ export {
60
60
  h as j,
61
61
  P as k,
62
62
  G as l,
63
- x as m,
64
- N as n,
65
- j as o,
66
- k as p,
67
- H as q,
68
- L as r,
69
- T as s,
70
- C as t,
63
+ C as m,
64
+ S as n,
65
+ x as o,
66
+ w as p,
67
+ y as q,
68
+ F as r,
69
+ W as s,
70
+ A as t,
71
71
  E as u,
72
- S as v,
73
- w,
74
- y as x,
75
- F as y,
76
- W as z
72
+ T as v,
73
+ _ as w,
74
+ H as x,
75
+ N as y,
76
+ $ as z
77
77
  };
@@ -1,2 +1 @@
1
- export { BeatStore } from './store/BeatStore';
2
1
  export * from './components';