@mx-cartographer/experiences 8.0.0-alpha.bb3 → 8.0.0-alpha.sms1

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 (182) hide show
  1. package/CHANGELOG.md +128 -1
  2. package/dist/{Account-Bxw0_4FU.mjs → Account-BDXA6PWh.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-CAM9y39M.mjs → AccountDetailsContent-CUztd3-b.mjs} +87 -83
  4. package/dist/AccountDetailsHeader-i3KFhNuo.mjs +87 -0
  5. package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-QZspYAji.mjs} +6 -6
  6. package/dist/{AccountListItem-JFMZROh7.mjs → AccountListItem-DX5upmCS.mjs} +5 -5
  7. package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-BcnDpyLL.mjs} +19 -8
  8. package/dist/{Accounts-BRf_YeTf.mjs → Accounts-DXfZotRC.mjs} +1 -1
  9. package/dist/{BeatApi-DhJpgCLz.mjs → BeatApi-De2IaqH2.mjs} +1 -1
  10. package/dist/{BeatStore-IBnXd4YK.mjs → BeatStore-D_NYuBSz.mjs} +1 -1
  11. package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-Df2nII9u.mjs} +2 -2
  12. package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-DqJK_rrL.mjs} +23 -21
  13. package/dist/{CategoryStore-yHI0hWmK.mjs → CategoryStore-DTgyAMM7.mjs} +12 -10
  14. package/dist/{CategoryUtil-pZRIYOgN.mjs → CategoryUtil-C5cR-nfQ.mjs} +1 -1
  15. package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-BIbTqYOH.mjs} +2 -2
  16. package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-BFfY3_zB.mjs} +3 -3
  17. package/dist/{CurrencyInput-DUsQbkXb.mjs → CurrencyInput-BFKcs-_K.mjs} +2 -2
  18. package/dist/{CurrencyText-kyC1aseI.mjs → CurrencyText-Dr0EZ7bp.mjs} +1 -1
  19. package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CBdcsyuk.mjs} +3 -3
  20. package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-BbJB0nmu.mjs} +1 -1
  21. package/dist/{Dialog-CWW597AF.mjs → Dialog-BPTr3qHE.mjs} +2 -2
  22. package/dist/{Donut-oaQFlbit.mjs → Donut-Dmy3JTWd.mjs} +12 -12
  23. package/dist/Drawer-BEtCk82g.mjs +163 -0
  24. package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
  25. package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-DzTrtPzk.mjs} +3 -3
  26. package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
  27. package/dist/FinstrongStore-BIrX0Xg2.mjs +451 -0
  28. package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-DpWY3gVb.mjs} +5 -5
  29. package/dist/{Help-B6dIcujh.mjs → Help-BnPXM_N2.mjs} +2 -2
  30. package/dist/LineChart-bc1D9xBE.mjs +581 -0
  31. package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-uobBrm_a.mjs} +10 -10
  32. package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-NpXHhO1n.mjs} +177 -174
  33. package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
  34. package/dist/{MicroWidgetContainer-DpeqN9n3.mjs → MicroWidgetContainer-DEiRnYVa.mjs} +1 -1
  35. package/dist/{MiniWidgetContainer-D0gfmbaF.mjs → MiniWidgetContainer-CmXpTylX.mjs} +1 -1
  36. package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-lsuhEpn6.mjs} +2 -2
  37. package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-CNmJWVeI.mjs} +241 -238
  38. package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-Ck2KdNmT.mjs} +10 -10
  39. package/dist/{NumberFormatting-Buh7u8Oi.mjs → NumberFormatting-DjTD0t3W.mjs} +9 -9
  40. package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-DK8_LkPz.mjs} +4 -4
  41. package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-CqZh1SQa.mjs} +17 -17
  42. package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-BKcYmpv3.mjs} +46 -45
  43. package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-Ni5tSQIO.mjs} +80 -73
  44. package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-krIRNwHK.mjs} +3 -3
  45. package/dist/SkeletonLoader-BaNboJjD.mjs +38 -0
  46. package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-BuJ03S9d.mjs} +16 -16
  47. package/dist/SpendingLegend-CjX-hX2O.mjs +193 -0
  48. package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
  49. package/dist/TransactionApi-CjBoLleL.mjs +86 -0
  50. package/dist/TransactionDetails-5M2vfr59.mjs +1379 -0
  51. package/dist/{TransactionStore-ai3uII_r.mjs → TransactionStore-D-Q3BU9Z.mjs} +119 -121
  52. package/dist/TrendsStore-BW9FGQeE.mjs +182 -0
  53. package/dist/{User-BQUxBeZV.mjs → User-wXzDI4M8.mjs} +2 -2
  54. package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-C0832BMe.mjs} +702 -723
  55. package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-BhQ1Kx2z.mjs} +4 -4
  56. package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
  57. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +4 -1
  58. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +2 -1
  59. package/dist/accounts/index.es.js +229 -222
  60. package/dist/accounts/stores/AccountStore.d.ts +2 -0
  61. package/dist/analytics/index.es.js +2 -2
  62. package/dist/budgets/index.es.js +380 -382
  63. package/dist/cashflow/index.es.js +405 -413
  64. package/dist/categories/index.es.js +2 -2
  65. package/dist/categories/stores/CategoryStore.d.ts +1 -1
  66. package/dist/common/components/ErrorBoundary.d.ts +1 -1
  67. package/dist/common/components/Select.d.ts +4 -2
  68. package/dist/common/components/charts/LineChart.d.ts +12 -2
  69. package/dist/common/components/charts/index.d.ts +0 -3
  70. package/dist/common/components/charts/linechart/CustomLegend.d.ts +3 -1
  71. package/dist/common/components/charts/linechart/CustomMark.d.ts +4 -0
  72. package/dist/common/components/drawer/Drawer.d.ts +3 -0
  73. package/dist/common/components/drawer/Footer.d.ts +17 -0
  74. package/dist/common/hooks/index.d.ts +0 -1
  75. package/dist/common/hooks/useAriaLive.d.ts +1 -1
  76. package/dist/common/index.es.js +320 -321
  77. package/dist/common/stores/GlobalStore.d.ts +7 -1
  78. package/dist/common/types/Finstrong.d.ts +54 -0
  79. package/dist/common/types/Global.d.ts +1 -0
  80. package/dist/common/types/Widgets.d.ts +1 -0
  81. package/dist/common/types/index.d.ts +1 -1
  82. package/dist/common/types/localization/FinstrongCopy.d.ts +105 -2
  83. package/dist/common/types/localization/GoalsCopy.d.ts +1 -0
  84. package/dist/dashboard/index.es.js +2 -2
  85. package/dist/debts/index.es.js +506 -498
  86. package/dist/exportTransactionsToCSV-Cz2t0lmA.mjs +48 -0
  87. package/dist/finstrong/FinstrongWidget.d.ts +1 -1
  88. package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
  89. package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
  90. package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
  91. package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
  92. package/dist/finstrong/components/FinancialStrengthGraph.d.ts +7 -1
  93. package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
  94. package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
  95. package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
  96. package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
  97. package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
  98. package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +4 -1
  99. package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
  100. package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
  101. package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +4 -3
  102. package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
  103. package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
  104. package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
  105. package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
  106. package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
  107. package/dist/finstrong/components/ProgressBar.d.ts +15 -0
  108. package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
  109. package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
  110. package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
  111. package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
  112. package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
  113. package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
  114. package/dist/finstrong/components/StatusChip.d.ts +5 -0
  115. package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
  116. package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +17 -0
  117. package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
  118. package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
  119. package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
  120. package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
  121. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
  122. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
  123. package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
  124. package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +25 -0
  125. package/dist/finstrong/components/shared/DialScoreCard.d.ts +7 -1
  126. package/dist/finstrong/components/shared/DoubleBarChart.d.ts +28 -0
  127. package/dist/finstrong/components/shared/LineGraph.d.ts +7 -0
  128. package/dist/finstrong/components/shared/TotalCard.d.ts +8 -0
  129. package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
  130. package/dist/finstrong/constants/index.d.ts +9 -0
  131. package/dist/finstrong/index.es.js +3171 -1063
  132. package/dist/finstrong/stores/FinstrongStore.d.ts +25 -2
  133. package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
  134. package/dist/goals/index.es.js +566 -562
  135. package/dist/help/index.es.js +3 -3
  136. package/dist/{hooks-D6XlXHf4.mjs → hooks-C41HAxM5.mjs} +3 -3
  137. package/dist/insights/index.es.js +1 -1
  138. package/dist/investments/index.es.js +437 -435
  139. package/dist/merchants/index.es.js +2 -2
  140. package/dist/microinsights/beaticons/BeatIcon.d.ts +2 -9
  141. package/dist/microinsights/beaticons/BeatMerchantLogo.d.ts +3 -2
  142. package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +2 -1
  143. package/dist/microinsights/cards/{MicroInsightCard.d.ts → BaseCard.d.ts} +1 -8
  144. package/dist/microinsights/cards/{BeatCard.d.ts → InsightCard.d.ts} +2 -2
  145. package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +2 -5
  146. package/dist/microinsights/cards/ZeroStateCard.d.ts +2 -5
  147. package/dist/microinsights/carousel/BeatList.d.ts +10 -0
  148. package/dist/microinsights/carousel/CarouselControls.d.ts +1 -3
  149. package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -2
  150. package/dist/microinsights/constants/App.d.ts +0 -1
  151. package/dist/microinsights/index.d.ts +3 -3
  152. package/dist/microinsights/index.es.js +7 -7
  153. package/dist/microinsights/interfaces.d.ts +0 -6
  154. package/dist/networth/index.es.js +188 -186
  155. package/dist/notifications/index.es.js +95 -96
  156. package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +3 -0
  157. package/dist/recurringtransactions/index.es.js +584 -560
  158. package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +1 -0
  159. package/dist/settings/index.es.js +286 -280
  160. package/dist/spending/index.es.js +269 -421
  161. package/dist/spending/utils/SpendingData.d.ts +2 -1
  162. package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
  163. package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
  164. package/dist/transactions/index.es.js +226 -220
  165. package/dist/transactions/stores/TransactionStore.d.ts +1 -1
  166. package/dist/transactions/stores/UiStore.d.ts +0 -2
  167. package/dist/trends/index.es.js +963 -586
  168. package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-CFNF8766.mjs} +2 -2
  169. package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-CRwX-qWE.mjs} +1 -1
  170. package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
  171. package/package.json +7 -7
  172. package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
  173. package/dist/Drawer-kEE73B87.mjs +0 -113
  174. package/dist/FinstrongStore-F2c607dj.mjs +0 -101
  175. package/dist/LineChart-D4GI7nVh.mjs +0 -541
  176. package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
  177. package/dist/TransactionDetails-oP1eSuiS.mjs +0 -1334
  178. package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
  179. package/dist/common/hooks/usePrevious.d.ts +0 -2
  180. package/dist/exportTransactionsToCSV-7bVS7KXf.mjs +0 -47
  181. package/dist/finstrong/utils/Finstrong.d.ts +0 -6
  182. package/dist/useAriaLive-B3_pRUio.mjs +0 -35
@@ -1,157 +1,157 @@
1
- import { g as ue, T as d, G as me, a as We, M as J, C as ye, b as Pe } from "../GoalStore-D-aB35SY.mjs";
2
- import { c as Yn, d as Zn } from "../GoalStore-D-aB35SY.mjs";
3
- import { jsxs as r, jsx as e, Fragment as U } from "react/jsx-runtime";
1
+ import { g as _e, T as u, G as ue, a as Pe, M as q, C as Te, b as Ve } from "../GoalStore-DpWY3gVb.mjs";
2
+ import { c as qn, d as Jn } from "../GoalStore-DpWY3gVb.mjs";
3
+ import { jsxs as i, jsx as e, Fragment as U } from "react/jsx-runtime";
4
4
  import y from "react";
5
5
  import { observer as D } from "mobx-react-lite";
6
- import Ve from "@mui/material/Alert";
7
- import je from "@mui/material/Snackbar";
8
- import f from "@mui/material/Stack";
9
- import le from "@mui/material/Tab";
10
- import Fe from "@mui/material/Tabs";
11
- import { Text as A, H2 as _e, P as W, H3 as ze, Icon as He, InstitutionLogo as ne } from "@mxenabled/mxui";
12
- import pe from "@mui/material/Button";
13
- import Ae from "@mui/material/Card";
14
- import Te from "@mui/material/CardActionArea";
15
- import Ce from "@mui/material/CardContent";
16
- import ge from "@mui/material/Unstable_Grid2";
17
- import oe from "@mui/material/Avatar";
18
- import $e from "@mui/material/CardHeader";
19
- import { Payments as Se, NoteStack as Re, Person as Ee, ChevronRight as M, DragHandle as Xe, CheckCircle as Ue, Icon as be, ExpandLess as Ye, ExpandMore as Ze, AddBox as xe, Trophy as qe } from "@mxenabled/mx-icons";
20
- import { u as C, l as I, a as ve, d as V, p as Ie, g as Ge, b as Ne } from "../hooks-D6XlXHf4.mjs";
21
- import { u as he } from "../useScreenSize-B6JyS_Lj.mjs";
22
- import { f as x } from "../NumberFormatting-Buh7u8Oi.mjs";
23
- import { S as Je } from "../StatusBar-BK_uYHAB.mjs";
6
+ import je from "@mui/material/Alert";
7
+ import Fe from "@mui/material/Snackbar";
8
+ import b from "@mui/material/Stack";
9
+ import ce from "@mui/material/Tab";
10
+ import ze from "@mui/material/Tabs";
11
+ import { Text as A, H2 as pe, P, H3 as He, Icon as $e, InstitutionLogo as oe } from "@mxenabled/mxui";
12
+ import he from "@mui/material/Button";
13
+ import Ce from "@mui/material/Card";
14
+ import Se from "@mui/material/CardActionArea";
15
+ import Re from "@mui/material/CardContent";
16
+ import fe 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, ChevronRight as M, DragHandle as Ue, CheckCircle as Ye, Icon as ye, ExpandLess as Ze, ExpandMore as qe, AddBox as Ie, Trophy as Je } from "@mxenabled/mx-icons";
20
+ import { u as C, l as I, b as ge, a as Ge, d as j, p as Ne, g as ke, n as Qe } from "../hooks-C41HAxM5.mjs";
21
+ import { u as be } from "../useScreenSize-B6JyS_Lj.mjs";
22
+ import { f as x } from "../NumberFormatting-DjTD0t3W.mjs";
23
+ import { S as et } from "../StatusBar-BK_uYHAB.mjs";
24
24
  import E from "@mui/material/Divider";
25
- import L from "@mui/material/List";
26
- import { L as ee } from "../ListItemAction-DHa3KJPs.mjs";
27
- import { C as ke } from "../CurrencyInput-DUsQbkXb.mjs";
28
- import { fromUnixTime as Q } from "date-fns/fromUnixTime";
25
+ import B from "@mui/material/List";
26
+ import { L as Q } from "../ListItemAction-uobBrm_a.mjs";
27
+ import { C as we } from "../CurrencyInput-BFKcs-_K.mjs";
28
+ import { fromUnixTime as J } from "date-fns/fromUnixTime";
29
29
  import N from "@mui/material/ListItem";
30
30
  import k from "@mui/material/ListItemButton";
31
31
  import w from "@mui/material/ListItemText";
32
- import { DataGridPro as Qe } from "@mui/x-data-grid-pro";
33
- import { D as j } from "../Drawer-kEE73B87.mjs";
34
- import { b as B } from "../Localization-2MODESHW.mjs";
35
- import { f as ae, D as re, a as et } from "../Dialog-CWW597AF.mjs";
36
- import P from "@mui/material/ListItemAvatar";
37
- import { g as we, A as fe } from "../ConnectDrawer-BQNs-hjk.mjs";
38
- import tt from "@mui/material/Collapse";
39
- import nt from "@mui/material/ListItemIcon";
40
- import ot from "@mui/material/Checkbox";
41
- import { u as at, A as rt } from "../AccountDetailsHeader-JtSX6Uf9.mjs";
42
- import { A as it } from "../AccountDetailsContent-CAM9y39M.mjs";
43
- import { u as st } from "../useAccountDisplayName-BUAApBIb.mjs";
44
- import De from "@mui/material/TextField";
45
- import { M as lt, I as ct, O as dt } from "../OriginalBalanceAction-CWuVvRq9.mjs";
46
- import { getUnixTime as mt } from "date-fns/getUnixTime";
47
- import { isValid as ut } from "date-fns/isValid";
48
- import { AdapterDateFns as _t } from "@mui/x-date-pickers/AdapterDateFnsV3";
49
- import { DatePicker as pt } from "@mui/x-date-pickers";
50
- import { LocalizationProvider as ht } from "@mui/x-date-pickers/LocalizationProvider";
51
- import { A as Y, W as gt } from "../WidgetContainer-BHWANqT4.mjs";
52
- import { L as Ke } from "../Loader-DUaFpDGv.mjs";
53
- import { E as bt } from "../EmptyState-DA_lfRBv.mjs";
54
- import ft from "@mui/material/Stack/Stack";
55
- import yt from "@mui/material/Box";
56
- import At from "@mui/material/styles/useTheme";
57
- import { S as Tt } from "../SingleSegmentDonut-BgbLgwHi.mjs";
58
- import { M as Ct } from "../MicroWidgetContainer-DpeqN9n3.mjs";
59
- function ce({ title: t, subtitle: n }) {
60
- return /* @__PURE__ */ r(f, { children: [
32
+ import { DataGridPro as tt } from "@mui/x-data-grid-pro";
33
+ import { D as F } from "../Drawer-BEtCk82g.mjs";
34
+ import { b as L } from "../Localization-2MODESHW.mjs";
35
+ import { f as re, a as ie, D as nt } from "../Dialog-BPTr3qHE.mjs";
36
+ import V from "@mui/material/ListItemAvatar";
37
+ import { g as De, A as Ae } from "../ConnectDrawer-BIbTqYOH.mjs";
38
+ import ot from "@mui/material/Collapse";
39
+ import at from "@mui/material/ListItemIcon";
40
+ import rt from "@mui/material/Checkbox";
41
+ import { u as it, A as st } from "../AccountDetailsHeader-i3KFhNuo.mjs";
42
+ import { A as lt } from "../AccountDetailsContent-CUztd3-b.mjs";
43
+ import { u as ct } from "../useAccountDisplayName-CFNF8766.mjs";
44
+ import Ke from "@mui/material/TextField";
45
+ import { M as dt, I as mt, O as ut } from "../OriginalBalanceAction-DK8_LkPz.mjs";
46
+ import { getUnixTime as _t } from "date-fns/getUnixTime";
47
+ import { isValid as pt } from "date-fns/isValid";
48
+ import { AdapterDateFns as ht } from "@mui/x-date-pickers/AdapterDateFnsV3";
49
+ import { DatePicker as gt } from "@mui/x-date-pickers";
50
+ import { LocalizationProvider as bt } from "@mui/x-date-pickers/LocalizationProvider";
51
+ import { A as Y, W as ft } from "../WidgetContainer-BhQ1Kx2z.mjs";
52
+ import { L as Me } from "../Loader-DUaFpDGv.mjs";
53
+ import { E as yt } from "../EmptyState-DoxNUae-.mjs";
54
+ import At from "@mui/material/Stack/Stack";
55
+ import Tt from "@mui/material/Box";
56
+ import Ct from "@mui/material/styles/useTheme";
57
+ import { S as St } from "../SingleSegmentDonut-BgbLgwHi.mjs";
58
+ import { M as Rt } from "../MicroWidgetContainer-DEiRnYVa.mjs";
59
+ function de({ title: t, subtitle: n }) {
60
+ return /* @__PURE__ */ i(b, { children: [
61
61
  /* @__PURE__ */ e(A, { bold: !0, variant: "Body", children: t }),
62
62
  /* @__PURE__ */ e(A, { sx: { fontWeight: 400 }, variant: "Body", children: n })
63
63
  ] });
64
64
  }
65
- const St = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
65
+ const Et = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
66
66
  /(\d+)(?:\.0+|(\.\d*?[1-9])0*)([a-zA-Z]* ?\$?)/g,
67
67
  "$1$2$3"
68
- ) : x(t, "0,0.00"), Me = D(
69
- ({ goal: t, isInDrawer: n = !1, onClick: i }) => {
70
- const { goals: s } = C(), { isMobile: p, isTablet: a } = he(), _ = p || a, {
71
- backgroundColor: g,
72
- color: l,
73
- percentage: h,
74
- percentageText: o,
75
- projectedText: m
76
- } = ue(s, t), c = t.track_type === d.DEBT_TRACK ? t.initial_amount : t.amount, u = [
68
+ ) : x(t, "0,0.00"), Le = D(
69
+ ({ goal: t, isInDrawer: n = !1, onClick: s }) => {
70
+ const { goals: c } = C(), { isMobile: p, isTablet: a } = be(), _ = p || a, {
71
+ backgroundColor: h,
72
+ color: g,
73
+ percentage: r,
74
+ percentageText: m,
75
+ projectedText: o
76
+ } = _e(c, t), d = t.track_type === u.DEBT_TRACK ? t.initial_amount : t.amount, l = [
77
77
  {
78
- color: g,
79
- percentage: `${h}`
78
+ color: h,
79
+ percentage: `${r}`
80
80
  }
81
81
  ];
82
- let b = /* @__PURE__ */ e(Se, {});
83
- return t.track_type === d.DEBT_TRACK ? b = /* @__PURE__ */ e(Re, {}) : t.track_type === d.RETIREMENT_TRACK && (b = /* @__PURE__ */ e(Ee, {})), /* @__PURE__ */ e(Ae, { elevation: 2, children: /* @__PURE__ */ r(Te, { disabled: !i, onClick: i, children: [
82
+ let f = /* @__PURE__ */ e(Ee, {});
83
+ return t.track_type === u.DEBT_TRACK ? f = /* @__PURE__ */ e(xe, {}) : t.track_type === u.RETIREMENT_TRACK && (f = /* @__PURE__ */ e(ve, {})), /* @__PURE__ */ e(Ce, { elevation: 2, children: /* @__PURE__ */ i(Se, { disabled: !s, onClick: s, children: [
84
84
  /* @__PURE__ */ e(
85
- $e,
85
+ Xe,
86
86
  {
87
- avatar: /* @__PURE__ */ e(oe, { sx: { bgcolor: g, color: l, height: 48, width: 48 }, variant: "rounded", children: b }),
88
- subheader: /* @__PURE__ */ e(A, { variant: n || _ ? "H3" : "H2", children: `${x(t.current_amount, _ ? "0,0" : "0,0.00")} / ${St(
89
- c,
87
+ avatar: /* @__PURE__ */ e(ae, { sx: { bgcolor: h, color: g, height: 48, width: 48 }, variant: "rounded", children: f }),
88
+ subheader: /* @__PURE__ */ e(A, { variant: n || _ ? "H3" : "H2", children: `${x(t.current_amount, _ ? "0,0" : "0,0.00")} / ${Et(
89
+ d,
90
90
  _
91
91
  )}` }),
92
- title: /* @__PURE__ */ e(_e, { color: "text.secondary", fontWeight: 400, variant: "Body", children: t.name })
92
+ title: /* @__PURE__ */ e(pe, { color: "text.secondary", fontWeight: 400, variant: "Body", children: t.name })
93
93
  }
94
94
  ),
95
- /* @__PURE__ */ e(Ce, { sx: { pt: 0 }, children: /* @__PURE__ */ r(f, { gap: 6, children: [
96
- /* @__PURE__ */ e(Je, { data: u, height: 24 }),
97
- /* @__PURE__ */ r(f, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
98
- /* @__PURE__ */ e(A, { color: "text.secondary", variant: "XSmall", children: o }),
99
- t.projected_to_complete_at && /* @__PURE__ */ e(A, { color: "text.secondary", variant: "XSmall", children: m })
95
+ /* @__PURE__ */ e(Re, { sx: { pt: 0 }, children: /* @__PURE__ */ i(b, { gap: 6, children: [
96
+ /* @__PURE__ */ e(et, { data: l, height: 24 }),
97
+ /* @__PURE__ */ i(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
98
+ /* @__PURE__ */ e(A, { color: "text.secondary", variant: "XSmall", children: m }),
99
+ t.projected_to_complete_at && /* @__PURE__ */ e(A, { color: "text.secondary", variant: "XSmall", children: o })
100
100
  ] })
101
101
  ] }) })
102
102
  ] }) });
103
103
  }
104
- ), Rt = D(({ trackType: t }) => {
105
- const { goals: n } = C(), { setAlert: i, monthlyCashFlowProfile: s, updateMonthlyCashFlowProfile: p } = I(), a = y.useMemo(() => {
106
- let h = 0;
107
- return t === d.SAVINGS_TRACK ? h = s?.amount_allocated_for_savings_goals || 0 : t === d.DEBT_TRACK ? h = s?.amount_allocated_for_debt_goals || 0 : t === d.RETIREMENT_TRACK && (h = s?.amount_allocated_for_retirement_goals || 0), h;
108
- }, [s]), [_, g] = y.useState(a), l = async () => {
109
- if (s) {
110
- const h = { ...s };
111
- t === d.SAVINGS_TRACK ? h.amount_allocated_for_savings_goals = _ : t === d.DEBT_TRACK ? h.amount_allocated_for_debt_goals = _ : t === d.RETIREMENT_TRACK && (h.amount_allocated_for_retirement_goals = _), await p(h), i(n.alert_contribution_updated);
104
+ ), xt = D(({ trackType: t }) => {
105
+ const { goals: n } = C(), { setAlert: s, monthlyCashFlowProfile: c, updateMonthlyCashFlowProfile: p } = I(), a = y.useMemo(() => {
106
+ let r = 0;
107
+ return t === u.SAVINGS_TRACK ? r = c?.amount_allocated_for_savings_goals || 0 : t === u.DEBT_TRACK ? r = c?.amount_allocated_for_debt_goals || 0 : t === u.RETIREMENT_TRACK && (r = c?.amount_allocated_for_retirement_goals || 0), r;
108
+ }, [c]), [_, h] = y.useState(a), g = async () => {
109
+ if (c) {
110
+ const r = { ...c };
111
+ t === u.SAVINGS_TRACK ? r.amount_allocated_for_savings_goals = _ : t === u.DEBT_TRACK ? r.amount_allocated_for_debt_goals = _ : t === u.RETIREMENT_TRACK && (r.amount_allocated_for_retirement_goals = _), await p(r), s(n.alert_contribution_updated);
112
112
  }
113
113
  };
114
- return /* @__PURE__ */ e(f, { bgcolor: "background.paper", children: /* @__PURE__ */ e(
115
- ee,
114
+ return /* @__PURE__ */ e(b, { bgcolor: "background.paper", children: /* @__PURE__ */ e(
115
+ Q,
116
116
  {
117
117
  isSaveDisabled: !_ || isNaN(_),
118
118
  label: n.contribution_label,
119
- onCancel: () => g(a),
120
- onSave: l,
119
+ onCancel: () => h(a),
120
+ onSave: g,
121
121
  primaryText: n.contribution_label,
122
122
  secondaryText: x(a, "0,0.00"),
123
123
  children: /* @__PURE__ */ e(
124
- ke,
124
+ we,
125
125
  {
126
126
  amount: _,
127
127
  autoFocus: !0,
128
128
  error: !_ || isNaN(_),
129
129
  fullWidth: !0,
130
130
  minAmount: 0,
131
- setAmount: (h) => g(isNaN(Number(h)) ? _ : Number(h)),
131
+ setAmount: (r) => h(isNaN(Number(r)) ? _ : Number(r)),
132
132
  sx: { ".MuiTypography-Body": { p: 0 } }
133
133
  }
134
134
  )
135
135
  }
136
136
  ) });
137
- }), Et = ({ goals: t }) => {
138
- const { goals: n, common: i } = C(), { reorderGoals: s, setAlert: p } = I(), [a, _] = y.useState(!1), [g, l] = y.useState(t.map((u) => ({ ...u })));
137
+ }), vt = ({ goals: t }) => {
138
+ const { goals: n, common: s } = C(), { reorderGoals: c, setAlert: p } = I(), [a, _] = y.useState(!1), [h, g] = y.useState(t.map((l) => ({ ...l })));
139
139
  y.useEffect(() => {
140
- a && l(t.map((u) => ({ ...u })));
140
+ a && g(t.map((l) => ({ ...l })));
141
141
  }, [a]);
142
- const h = [
142
+ const r = [
143
143
  {
144
144
  field: "name",
145
145
  flex: 1,
146
- renderCell: (u) => {
147
- const b = u.row;
148
- return /* @__PURE__ */ r(f, { children: [
149
- /* @__PURE__ */ e(A, { bold: !0, variant: "Body", children: b.name }),
150
- /* @__PURE__ */ e(A, { variant: "XSmall", children: B(
146
+ renderCell: (l) => {
147
+ const f = l.row;
148
+ return /* @__PURE__ */ i(b, { children: [
149
+ /* @__PURE__ */ e(A, { bold: !0, variant: "Body", children: f.name }),
150
+ /* @__PURE__ */ e(A, { variant: "XSmall", children: L(
151
151
  n.goal_projection,
152
- ae(
153
- Q(b.projected_to_complete_at || 0),
154
- re.MONTH_SHORT_YEAR
152
+ re(
153
+ J(f.projected_to_complete_at || 0),
154
+ ie.MONTH_SHORT_YEAR
155
155
  )
156
156
  ) })
157
157
  ] });
@@ -162,29 +162,29 @@ const St = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
162
162
  align: "right",
163
163
  field: "amount",
164
164
  minWidth: 140,
165
- renderCell: (u) => {
166
- const b = u.row;
167
- return /* @__PURE__ */ e(A, { bold: !0, sx: { mr: 12 }, variant: "Body", children: x(b.amount, "0,0.00") });
165
+ renderCell: (l) => {
166
+ const f = l.row;
167
+ return /* @__PURE__ */ e(A, { bold: !0, sx: { mr: 12 }, variant: "Body", children: x(f.amount, "0,0.00") });
168
168
  },
169
169
  sortable: !1
170
170
  }
171
- ], o = g.map((u) => ({
172
- id: u.guid,
171
+ ], m = h.map((l) => ({
172
+ id: l.guid,
173
173
  isHovering: !1,
174
- __reorder__: u.name,
175
- ...u
176
- })), m = ({ oldIndex: u, targetIndex: b }) => {
177
- const T = [...g];
178
- T.splice(b, 0, T.splice(u, 1)[0]);
174
+ __reorder__: l.name,
175
+ ...l
176
+ })), o = ({ oldIndex: l, targetIndex: f }) => {
177
+ const T = [...h];
178
+ T.splice(f, 0, T.splice(l, 1)[0]);
179
179
  for (let S = 0; S < T.length; S += 1)
180
180
  T[S].position = S + 1;
181
- l(T);
182
- }, c = async () => {
183
- await s(g), p(n.alert_goals_reordered), _(!1);
181
+ g(T);
182
+ }, d = async () => {
183
+ await c(h), p(n.alert_goals_reordered), _(!1);
184
184
  };
185
- return /* @__PURE__ */ r(f, { children: [
186
- /* @__PURE__ */ e(N, { children: /* @__PURE__ */ e(k, { onClick: () => _(!0), children: /* @__PURE__ */ e(w, { children: /* @__PURE__ */ r(
187
- f,
185
+ return /* @__PURE__ */ i(b, { children: [
186
+ /* @__PURE__ */ e(N, { children: /* @__PURE__ */ e(k, { onClick: () => _(!0), children: /* @__PURE__ */ e(w, { children: /* @__PURE__ */ i(
187
+ b,
188
188
  {
189
189
  alignItems: "center",
190
190
  color: "action.active",
@@ -197,28 +197,28 @@ const St = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
197
197
  }
198
198
  ) }) }) }),
199
199
  /* @__PURE__ */ e(
200
- j,
200
+ F,
201
201
  {
202
- ariaLabelClose: i.close_aria,
202
+ ariaLabelClose: s.close_aria,
203
203
  isOpen: a,
204
204
  onClose: () => _(!1),
205
- onPrimaryAction: c,
205
+ onPrimaryAction: d,
206
206
  title: n.reorder_goals_title,
207
- children: /* @__PURE__ */ r(f, { children: [
208
- /* @__PURE__ */ e(W, { sx: { my: 12, mx: 24 }, children: n.reorder_goals_description }),
207
+ children: /* @__PURE__ */ i(b, { children: [
208
+ /* @__PURE__ */ e(P, { sx: { my: 12, mx: 24 }, children: n.reorder_goals_description }),
209
209
  /* @__PURE__ */ e(
210
- Qe,
210
+ tt,
211
211
  {
212
212
  columnHeaderHeight: 0,
213
- columns: h,
213
+ columns: r,
214
214
  disableColumnFilter: !0,
215
215
  disableColumnMenu: !0,
216
216
  hideFooter: !0,
217
- onRowOrderChange: m,
217
+ onRowOrderChange: o,
218
218
  rowReordering: !0,
219
- rows: o,
219
+ rows: m,
220
220
  slots: {
221
- rowReorderIcon: () => /* @__PURE__ */ e(Xe, { sx: { ml: 12 } })
221
+ rowReorderIcon: () => /* @__PURE__ */ e(Ue, { sx: { ml: 12 } })
222
222
  //TODO: Add to mx-icons
223
223
  },
224
224
  sx: {
@@ -232,11 +232,11 @@ const St = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
232
232
  }
233
233
  )
234
234
  ] });
235
- }, xt = ({ goal: t, index: n }) => {
236
- const { goals: i } = C(), { percentage: s } = ue(i, t), p = t.goal_type === me.KEEP_BALANCE_BELOW || t.has_been_spent ? i.goal_completed : B(i.goal_percentage_reached, `${s * 100}`);
237
- return /* @__PURE__ */ e(N, { children: /* @__PURE__ */ r(k, { children: [
238
- t.track_type !== d.RETIREMENT_TRACK && /* @__PURE__ */ e(
239
- P,
235
+ }, It = ({ goal: t, index: n }) => {
236
+ const { goals: s } = C(), { percentage: c } = _e(s, t), p = t.goal_type === ue.KEEP_BALANCE_BELOW || t.has_been_spent ? s.goal_completed : L(s.goal_percentage_reached, `${c * 100}`);
237
+ return /* @__PURE__ */ e(N, { children: /* @__PURE__ */ i(k, { children: [
238
+ t.track_type !== u.RETIREMENT_TRACK && /* @__PURE__ */ e(
239
+ V,
240
240
  {
241
241
  sx: {
242
242
  alignItems: "center",
@@ -244,112 +244,114 @@ const St = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
244
244
  justifyContent: "center",
245
245
  ".MuiAvatar-root": { height: "16px", width: "16px" }
246
246
  },
247
- children: /* @__PURE__ */ e(oe, { sx: { bgcolor: "text.primary", height: "16px", width: "16px" }, children: /* @__PURE__ */ e(A, { bold: !0, variant: "XSmall", children: n + 1 }) })
247
+ children: /* @__PURE__ */ e(ae, { sx: { bgcolor: "text.primary", height: "16px", width: "16px" }, children: /* @__PURE__ */ e(A, { bold: !0, variant: "XSmall", children: n + 1 }) })
248
248
  }
249
249
  ),
250
- /* @__PURE__ */ e(w, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ r(f, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
251
- /* @__PURE__ */ r(f, { children: [
250
+ /* @__PURE__ */ e(w, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ i(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
251
+ /* @__PURE__ */ i(b, { children: [
252
252
  /* @__PURE__ */ e(A, { bold: !0, variant: "Body", children: t.name }),
253
- /* @__PURE__ */ e(A, { variant: "XSmall", children: t.is_complete ? p : B(
254
- i.goal_projection,
255
- ae(
256
- Q(t.projected_to_complete_at || 0),
257
- re.MONTH_SHORT_YEAR
253
+ /* @__PURE__ */ e(A, { variant: "XSmall", children: t.is_complete ? p : L(
254
+ s.goal_projection,
255
+ re(
256
+ J(t.projected_to_complete_at || 0),
257
+ ie.MONTH_SHORT_YEAR
258
258
  )
259
259
  ) })
260
260
  ] }),
261
261
  /* @__PURE__ */ e(A, { bold: !0, variant: "Body", children: x(t.amount, "0,0.00") })
262
262
  ] }) })
263
263
  ] }) });
264
- }, vt = ({ goal: t }) => {
264
+ }, Gt = ({ goal: t }) => {
265
265
  const { goals: n } = C();
266
- return /* @__PURE__ */ e(N, { children: /* @__PURE__ */ r(k, { children: [
267
- /* @__PURE__ */ e(P, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(Ue, { color: "success", filled: !0, size: 20 }) }),
268
- /* @__PURE__ */ e(w, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ r(f, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
269
- /* @__PURE__ */ r(f, { children: [
266
+ return /* @__PURE__ */ e(N, { children: /* @__PURE__ */ i(k, { children: [
267
+ /* @__PURE__ */ e(V, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(Ye, { color: "success", filled: !0, size: 20 }) }),
268
+ /* @__PURE__ */ e(w, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ i(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
269
+ /* @__PURE__ */ i(b, { children: [
270
270
  /* @__PURE__ */ e(A, { bold: !0, variant: "Body", children: t.name }),
271
- /* @__PURE__ */ e(A, { variant: "XSmall", children: B(
271
+ /* @__PURE__ */ e(A, { variant: "XSmall", children: L(
272
272
  n.completed_label,
273
- ae(
274
- Q(t.completed_at || 0),
275
- re.MONTH_SHORT_YEAR
273
+ re(
274
+ J(t.completed_at || 0),
275
+ ie.MONTH_SHORT_YEAR
276
276
  )
277
277
  ) })
278
278
  ] }),
279
279
  /* @__PURE__ */ e(A, { bold: !0, variant: "Body", children: x(t.amount, "0,0.00") })
280
280
  ] }) })
281
281
  ] }) }, t.guid);
282
- }, It = ({ trackType: t }) => {
283
- const { goals: n, common: i } = C(), { orderedGoals: s } = I(), p = s.filter((u) => u.track_type === t), a = p.filter(
284
- (u) => u.track_type === d.SAVINGS_TRACK && !u.has_been_spent || u.track_type !== d.SAVINGS_TRACK && !u.is_complete
282
+ }, Nt = ({ trackType: t }) => {
283
+ const { goals: n, common: s } = C(), { orderedGoals: c } = I(), p = c.filter((l) => l.track_type === t), a = p.filter(
284
+ (l) => l.track_type === u.SAVINGS_TRACK && !l.has_been_spent || l.track_type !== u.SAVINGS_TRACK && !l.is_complete
285
285
  ), _ = p.filter(
286
- (u) => u.track_type === d.SAVINGS_TRACK && u.has_been_spent || u.track_type !== d.SAVINGS_TRACK && u.is_complete
287
- ), [g, l] = y.useState(!1);
288
- let h = n.manage_saving_goals, o = n.manage_saving_drawer_title, m = n.manage_saving_title, c = n.manage_saving_description;
289
- return t === d.DEBT_TRACK ? (h = n.manage_debt_goals, o = n.manage_debt_drawer_title, m = n.manage_debt_title, c = n.manage_debt_description) : t === d.RETIREMENT_TRACK && (h = n.manage_retirement_goals, o = n.manage_retirement_drawer_title, m = n.manage_retirement_title, c = n.manage_retirement_description), /* @__PURE__ */ r(f, { children: [
290
- /* @__PURE__ */ e(pe, { endIcon: /* @__PURE__ */ e(M, {}), onClick: () => l(!0), children: h }),
286
+ (l) => l.track_type === u.SAVINGS_TRACK && l.has_been_spent || l.track_type !== u.SAVINGS_TRACK && l.is_complete
287
+ ), [h, g] = y.useState(!1);
288
+ let r = n.manage_saving_goals, m = n.manage_saving_drawer_title, o = n.manage_saving_title, d = n.manage_saving_description;
289
+ return t === u.DEBT_TRACK ? (r = n.manage_debt_goals, m = n.manage_debt_drawer_title, o = n.manage_debt_title, d = n.manage_debt_description) : t === u.RETIREMENT_TRACK && (r = n.manage_retirement_goals, m = n.manage_retirement_drawer_title, o = n.manage_retirement_title, d = n.manage_retirement_description), /* @__PURE__ */ i(b, { children: [
290
+ /* @__PURE__ */ e(he, { endIcon: /* @__PURE__ */ e(M, {}), onClick: () => g(!0), children: r }),
291
291
  /* @__PURE__ */ e(
292
- j,
292
+ F,
293
293
  {
294
- ariaLabelClose: i.close_aria,
295
- isOpen: g,
296
- onClose: () => l(!1),
297
- title: o,
298
- children: /* @__PURE__ */ r(f, { children: [
299
- /* @__PURE__ */ r(f, { m: 24, children: [
300
- /* @__PURE__ */ e(ze, { children: m }),
301
- /* @__PURE__ */ e(W, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: c })
294
+ ariaLabelClose: s.close_aria,
295
+ isOpen: h,
296
+ onClose: () => g(!1),
297
+ title: m,
298
+ children: /* @__PURE__ */ i(b, { children: [
299
+ /* @__PURE__ */ i(b, { m: 24, children: [
300
+ /* @__PURE__ */ e(He, { children: o }),
301
+ /* @__PURE__ */ e(P, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: d })
302
302
  ] }),
303
- /* @__PURE__ */ e(Rt, { trackType: t }),
303
+ /* @__PURE__ */ e(xt, { trackType: t }),
304
304
  /* @__PURE__ */ e(A, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "XSmall", children: n.goal_priority }),
305
- /* @__PURE__ */ r(L, { sx: { bgcolor: "background.paper" }, children: [
306
- a.map((u, b) => {
307
- const T = b >= a.length - 1;
308
- return /* @__PURE__ */ r(f, { children: [
309
- /* @__PURE__ */ e(xt, { goal: u, index: b }),
305
+ /* @__PURE__ */ i(B, { sx: { bgcolor: "background.paper" }, children: [
306
+ a.map((l, f) => {
307
+ const T = f >= a.length - 1;
308
+ return /* @__PURE__ */ i(b, { children: [
309
+ /* @__PURE__ */ e(It, { goal: l, index: f }),
310
310
  /* @__PURE__ */ e(
311
311
  E,
312
312
  {
313
- variant: T && t === d.RETIREMENT_TRACK ? "fullWidth" : "inset"
313
+ variant: T && t === u.RETIREMENT_TRACK ? "fullWidth" : "inset"
314
314
  }
315
315
  )
316
- ] }, `ongoing-${u.guid}`);
316
+ ] }, `ongoing-${l.guid}`);
317
317
  }),
318
- t !== d.RETIREMENT_TRACK && /* @__PURE__ */ r(f, { children: [
319
- /* @__PURE__ */ e(Et, { goals: a }),
318
+ t !== u.RETIREMENT_TRACK && /* @__PURE__ */ i(b, { children: [
319
+ /* @__PURE__ */ e(vt, { goals: a }),
320
320
  /* @__PURE__ */ e(E, {})
321
321
  ] })
322
322
  ] }),
323
- t !== d.RETIREMENT_TRACK && _.length > 0 && /* @__PURE__ */ r(f, { children: [
323
+ t !== u.RETIREMENT_TRACK && _.length > 0 && /* @__PURE__ */ i(b, { children: [
324
324
  /* @__PURE__ */ e(A, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "XSmall", children: n.complete_title }),
325
- /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: _.map((u, b) => {
326
- const T = b > a.length - 1;
327
- return /* @__PURE__ */ r(f, { children: [
328
- /* @__PURE__ */ e(vt, { goal: u }),
325
+ /* @__PURE__ */ e(B, { sx: { bgcolor: "background.paper" }, children: _.map((l, f) => {
326
+ const T = f > a.length - 1;
327
+ return /* @__PURE__ */ i(b, { children: [
328
+ /* @__PURE__ */ e(Gt, { goal: l }),
329
329
  /* @__PURE__ */ e(E, { variant: T ? "fullWidth" : "inset" })
330
- ] }, `complete-${u.guid}`);
330
+ ] }, `complete-${l.guid}`);
331
331
  }) })
332
332
  ] })
333
333
  ] })
334
334
  }
335
335
  )
336
336
  ] });
337
- }, de = D(({ trackType: t, onAddGoals: n }) => {
338
- const { isMobile: i } = he(), { goals: s } = C(), { orderedGoals: p, setSelectedGoal: a } = I(), _ = p.filter((o) => o.track_type === t), g = _.filter(
339
- (o) => o.track_type === d.SAVINGS_TRACK && !o.has_been_spent || o.track_type !== d.SAVINGS_TRACK && !o.is_complete
340
- ), l = _.filter(
341
- (o) => o.track_type === d.SAVINGS_TRACK && o.has_been_spent || o.track_type !== d.SAVINGS_TRACK && o.is_complete
342
- ), h = t === d.DEBT_TRACK ? s.zero_state_complete_debt : s.zero_state_complete_savings;
343
- return /* @__PURE__ */ r(f, { mt: 16, mx: i ? 24 : 0, children: [
344
- /* @__PURE__ */ r(f, { alignItems: "center", direction: "row", justifyContent: "space-between", mb: 8, children: [
345
- /* @__PURE__ */ e(A, { color: "text.secondary", variant: "Small", children: s.ongoing_title }),
346
- /* @__PURE__ */ e(It, { trackType: t })
337
+ }, me = D(({ trackType: t, onAddGoals: n }) => {
338
+ const { isMobile: s } = be(), { goals: c } = C(), { selectedAccountGuids: p } = ge(), { orderedGoals: a, setSelectedGoal: _ } = I(), h = a.filter(
339
+ (o) => o.track_type === t && p.includes(o.account_guid)
340
+ ), g = h.filter(
341
+ (o) => o.track_type === u.SAVINGS_TRACK && !o.has_been_spent || o.track_type !== u.SAVINGS_TRACK && !o.is_complete
342
+ ), r = h.filter(
343
+ (o) => o.track_type === u.SAVINGS_TRACK && o.has_been_spent || o.track_type !== u.SAVINGS_TRACK && o.is_complete
344
+ ), m = t === u.DEBT_TRACK ? c.zero_state_complete_debt : c.zero_state_complete_savings;
345
+ return /* @__PURE__ */ i(b, { mt: 16, mx: s ? 24 : 0, children: [
346
+ /* @__PURE__ */ i(b, { alignItems: "center", direction: "row", justifyContent: "space-between", mb: 8, children: [
347
+ /* @__PURE__ */ e(A, { color: "text.secondary", variant: "Small", children: c.ongoing_title }),
348
+ /* @__PURE__ */ e(Nt, { trackType: t })
347
349
  ] }),
348
- g.length > 0 ? /* @__PURE__ */ e(ge, { container: !0, spacing: 24, children: g.map((o, m, c) => (
350
+ g.length > 0 ? /* @__PURE__ */ e(fe, { container: !0, spacing: 24, children: g.map((o, d, l) => (
349
351
  // Goal should be full width in mobile or if it's the first goal (unless there are 2)
350
- /* @__PURE__ */ e(ge, { xs: i || m === 0 && c.length !== 2 ? 12 : 6, children: /* @__PURE__ */ e(Me, { goal: o, onClick: () => a(o) }, o.guid) }, m)
351
- )) }) : /* @__PURE__ */ r(
352
- f,
352
+ /* @__PURE__ */ e(fe, { xs: s || d === 0 && l.length !== 2 ? 12 : 6, children: /* @__PURE__ */ e(Le, { goal: o, onClick: () => _(o) }, o.guid) }, d)
353
+ )) }) : /* @__PURE__ */ i(
354
+ b,
353
355
  {
354
356
  alignItems: "center",
355
357
  bgcolor: "background.default",
@@ -359,7 +361,7 @@ const St = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
359
361
  py: 18,
360
362
  children: [
361
363
  /* @__PURE__ */ e(
362
- W,
364
+ P,
363
365
  {
364
366
  sx: (o) => ({
365
367
  color: "text.secondary",
@@ -369,17 +371,17 @@ const St = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
369
371
  width: { sm: 381 }
370
372
  }),
371
373
  variant: "Small",
372
- children: We(t, s)
374
+ children: Pe(t, c)
373
375
  }
374
376
  ),
375
- /* @__PURE__ */ e(pe, { onClick: n, sx: { mt: 16, width: { sm: 224 } }, variant: "contained", children: s.add_goals_button })
377
+ /* @__PURE__ */ e(he, { onClick: n, sx: { mt: 16, width: { sm: 224 } }, variant: "contained", children: c.add_goals_button })
376
378
  ]
377
379
  }
378
380
  ),
379
- t !== d.RETIREMENT_TRACK && /* @__PURE__ */ r(f, { gap: 16, mt: 48, children: [
380
- /* @__PURE__ */ e(A, { color: "text.secondary", variant: "Small", children: s.complete_title }),
381
- l.length === 0 && /* @__PURE__ */ e(f, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ e(
382
- W,
381
+ t !== u.RETIREMENT_TRACK && /* @__PURE__ */ i(b, { gap: 16, mt: 48, children: [
382
+ /* @__PURE__ */ e(A, { color: "text.secondary", variant: "Small", children: c.complete_title }),
383
+ r.length === 0 && /* @__PURE__ */ e(b, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ e(
384
+ P,
383
385
  {
384
386
  sx: (o) => ({
385
387
  color: "text.secondary",
@@ -389,98 +391,98 @@ const St = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
389
391
  }
390
392
  }),
391
393
  variant: "Small",
392
- children: h
394
+ children: m
393
395
  }
394
396
  ) }),
395
- l.map((o) => /* @__PURE__ */ e(Ae, { elevation: 2, children: /* @__PURE__ */ e(Te, { onClick: () => a(o), children: /* @__PURE__ */ e(Ce, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ r(f, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
396
- /* @__PURE__ */ r(f, { alignItems: "center", direction: "row", gap: 6, children: [
397
- /* @__PURE__ */ e(He, { color: "success", fill: !0, name: "check_circle", size: 20 }),
397
+ r.map((o) => /* @__PURE__ */ e(Ce, { elevation: 2, children: /* @__PURE__ */ e(Se, { onClick: () => _(o), children: /* @__PURE__ */ e(Re, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ i(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
398
+ /* @__PURE__ */ i(b, { alignItems: "center", direction: "row", gap: 6, children: [
399
+ /* @__PURE__ */ e($e, { color: "success", fill: !0, name: "check_circle", size: 20 }),
398
400
  /* @__PURE__ */ e(A, { color: "text.secondary", variant: "Body", children: o.name })
399
401
  ] }),
400
402
  /* @__PURE__ */ e(A, { bold: !0, variant: "Body", children: x(o.amount, "0,0.00") })
401
403
  ] }) }) }) }, o.guid))
402
404
  ] })
403
405
  ] });
404
- }), Gt = ({ goalType: t, onClick: n }) => {
405
- const { goals: i } = C(), { bgcolor: s, icon: p, label: a, description: _, subTypes: g, type: l } = t, [h, o] = y.useState(!1), m = g.length > 0;
406
- return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ r(L, { sx: { bgcolor: "background.paper" }, children: [
407
- /* @__PURE__ */ e(N, { children: /* @__PURE__ */ r(
406
+ }), kt = ({ goalType: t, onClick: n }) => {
407
+ const { goals: s } = C(), { bgcolor: c, icon: p, label: a, description: _, subTypes: h, type: g } = t, [r, m] = y.useState(!1), o = h.length > 0;
408
+ return /* @__PURE__ */ e(b, { children: /* @__PURE__ */ i(B, { sx: { bgcolor: "background.paper" }, children: [
409
+ /* @__PURE__ */ e(N, { children: /* @__PURE__ */ i(
408
410
  k,
409
411
  {
410
- onClick: m ? () => o(!h) : () => n(
411
- l === d.RETIREMENT_TRACK ? i.retirement : "",
412
- l === d.RETIREMENT_TRACK ? J.RETIREMENT : J.OTHER,
413
- l
412
+ onClick: o ? () => m(!r) : () => n(
413
+ g === u.RETIREMENT_TRACK ? s.retirement : "",
414
+ g === u.RETIREMENT_TRACK ? q.RETIREMENT : q.OTHER,
415
+ g
414
416
  ),
415
417
  children: [
416
- /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(oe, { sx: { bgcolor: s }, variant: "rounded", children: /* @__PURE__ */ e(be, { name: p, sx: { color: "grey.900" } }) }) }),
418
+ /* @__PURE__ */ e(V, { children: /* @__PURE__ */ e(ae, { sx: { bgcolor: c }, variant: "rounded", children: /* @__PURE__ */ e(ye, { name: p, sx: { color: "grey.900" } }) }) }),
417
419
  /* @__PURE__ */ e(w, { primary: a, secondary: _, sx: { mr: 24 } }),
418
- !m && /* @__PURE__ */ e(M, {}),
419
- m && (h ? /* @__PURE__ */ e(Ye, {}) : /* @__PURE__ */ e(Ze, {}))
420
+ !o && /* @__PURE__ */ e(M, {}),
421
+ o && (r ? /* @__PURE__ */ e(Ze, {}) : /* @__PURE__ */ e(qe, {}))
420
422
  ]
421
423
  }
422
424
  ) }),
423
425
  /* @__PURE__ */ e(E, { variant: "inset" }),
424
- m && /* @__PURE__ */ e(tt, { in: h, children: /* @__PURE__ */ e(L, { sx: { bgcolor: "background.default" }, children: g.map((c, u) => /* @__PURE__ */ e(N, { sx: { pl: 48 }, children: /* @__PURE__ */ r(k, { onClick: () => n(c.label, c.metaType, l), children: [
425
- /* @__PURE__ */ e(nt, { sx: { mr: 8 }, children: /* @__PURE__ */ e(be, { name: c.icon }) }),
426
+ o && /* @__PURE__ */ e(ot, { in: r, children: /* @__PURE__ */ e(B, { sx: { bgcolor: "background.default" }, children: h.map((d, l) => /* @__PURE__ */ e(N, { sx: { pl: 48 }, children: /* @__PURE__ */ i(k, { onClick: () => n(d.label, d.metaType, g), children: [
427
+ /* @__PURE__ */ e(at, { sx: { mr: 8 }, children: /* @__PURE__ */ e(ye, { name: d.icon }) }),
426
428
  /* @__PURE__ */ e(
427
429
  w,
428
430
  {
429
- primary: c.label,
431
+ primary: d.label,
430
432
  primaryTypographyProps: { variant: "Body" }
431
433
  }
432
434
  ),
433
435
  /* @__PURE__ */ e(M, {})
434
- ] }) }, u)) }) })
436
+ ] }) }, l)) }) })
435
437
  ] }) });
436
438
  }, Be = ({
437
439
  accounts: t,
438
440
  isOpen: n,
439
- onClose: i,
440
- onSave: s,
441
+ onClose: s,
442
+ onSave: c,
441
443
  title: p
442
444
  }) => {
443
- const { goals: a, common: _ } = C(), { config: g } = ve(), [l, h] = y.useState([]), o = (m) => {
444
- const c = l.findIndex((b) => b.guid === m.guid), u = [...l];
445
- c >= 0 ? u.splice(c, 1) : u.push(m), h(u);
445
+ const { goals: a, common: _ } = C(), { config: h } = Ge(), [g, r] = y.useState([]), m = (o) => {
446
+ const d = g.findIndex((f) => f.guid === o.guid), l = [...g];
447
+ d >= 0 ? l.splice(d, 1) : l.push(o), r(l);
446
448
  };
447
- return /* @__PURE__ */ r(
448
- j,
449
+ return /* @__PURE__ */ i(
450
+ F,
449
451
  {
450
452
  ariaLabelClose: _.close_aria,
451
453
  isOpen: n,
452
- onClose: i,
453
- onPrimaryAction: () => s(l),
454
+ onClose: s,
455
+ onPrimaryAction: () => c(g),
454
456
  title: p,
455
457
  children: [
456
- /* @__PURE__ */ e(W, { color: "text.secondary", sx: { mx: 24, my: 12 }, children: a.select_debt_accounts_description }),
457
- /* @__PURE__ */ r(L, { sx: { bgcolor: "background.white" }, children: [
458
+ /* @__PURE__ */ e(P, { color: "text.secondary", sx: { mx: 24, my: 12 }, children: a.select_debt_accounts_description }),
459
+ /* @__PURE__ */ i(B, { sx: { bgcolor: "background.white" }, children: [
458
460
  /* @__PURE__ */ e(E, { variant: "fullWidth" }),
459
- t.map((m, c) => /* @__PURE__ */ r(y.Fragment, { children: [
460
- /* @__PURE__ */ e(N, { children: /* @__PURE__ */ r(k, { onClick: () => o(m), children: [
461
- /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
462
- ne,
461
+ t.map((o, d) => /* @__PURE__ */ i(y.Fragment, { children: [
462
+ /* @__PURE__ */ e(N, { children: /* @__PURE__ */ i(k, { onClick: () => m(o), children: [
463
+ /* @__PURE__ */ e(V, { children: /* @__PURE__ */ e(
464
+ oe,
463
465
  {
464
- alt: m?.name || "",
465
- institutionGuid: m?.institution_guid || ""
466
+ alt: o?.name || "",
467
+ institutionGuid: o?.institution_guid || ""
466
468
  }
467
469
  ) }),
468
470
  /* @__PURE__ */ e(
469
471
  w,
470
472
  {
471
- primary: we(m, {
472
- allowNickname: g?.show_account_nicknames_in_master
473
+ primary: De(o, {
474
+ allowNickname: h?.show_account_nicknames_in_master
473
475
  }),
474
- secondary: x(m.balance || 0, "0,0.00")
476
+ secondary: x(o.balance || 0, "0,0.00")
475
477
  }
476
478
  ),
477
- /* @__PURE__ */ e(ot, { checked: l.some((u) => u.guid === m.guid) })
479
+ /* @__PURE__ */ e(rt, { checked: g.some((l) => l.guid === o.guid) })
478
480
  ] }) }),
479
- /* @__PURE__ */ e(E, { variant: c < t.length - 1 ? "inset" : "fullWidth" })
480
- ] }, m.guid))
481
+ /* @__PURE__ */ e(E, { variant: d < t.length - 1 ? "inset" : "fullWidth" })
482
+ ] }, o.guid))
481
483
  ] }),
482
484
  /* @__PURE__ */ e(
483
- ye,
485
+ Te,
484
486
  {
485
487
  description: a.connect_description,
486
488
  label: a.connect_button,
@@ -490,58 +492,58 @@ const St = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
490
492
  ]
491
493
  }
492
494
  );
493
- }, Nt = ({ onClose: t }) => {
494
- const { goals: n } = C(), { addGoal: i, debtGoals: s, setAlert: p, setSelectedGoal: a } = I(), { config: _ } = ve(), { visibleDebtAccounts: g } = V(), [l, h] = y.useState(!1), o = Pe(n), m = (u, b, T) => {
495
- T === d.DEBT_TRACK ? h(!0) : a({
495
+ }, wt = ({ onClose: t }) => {
496
+ const { goals: n } = C(), { addGoal: s, debtGoals: c, setAlert: p, setSelectedGoal: a } = I(), { config: _ } = Ge(), { visibleDebtAccounts: h } = j(), [g, r] = y.useState(!1), m = Ve(n), o = (l, f, T) => {
497
+ T === u.DEBT_TRACK ? r(!0) : a({
496
498
  amount: 0,
497
499
  current_amount: 0,
498
- goal_type: me.SAVE_AMOUNT,
500
+ goal_type: ue.SAVE_AMOUNT,
499
501
  initial_amount: 0,
500
- meta_type: b,
501
- name: u,
502
+ meta_type: f,
503
+ name: l,
502
504
  track_type: T
503
505
  });
504
- }, c = async (u) => {
505
- for (const b of u) {
506
- let T = J.CREDIT_CARD;
507
- b.account_type === fe.LOAN ? T = J.LOANS : b.account_type === fe.LINE_OF_CREDIT && (T = J.LINE_OF_CREDIT), await i({
508
- account_guid: b.guid,
506
+ }, d = async (l) => {
507
+ for (const f of l) {
508
+ let T = q.CREDIT_CARD;
509
+ f.account_type === Ae.LOAN ? T = q.LOANS : f.account_type === Ae.LINE_OF_CREDIT && (T = q.LINE_OF_CREDIT), await s({
510
+ account_guid: f.guid,
509
511
  amount: 0,
510
512
  current_amount: 0,
511
- goal_type: me.KEEP_BALANCE_BELOW,
512
- initial_amount: b.balance || 0,
513
- interest_rate: b.interest_rate || 0,
513
+ goal_type: ue.KEEP_BALANCE_BELOW,
514
+ initial_amount: f.balance || 0,
515
+ interest_rate: f.interest_rate || 0,
514
516
  meta_type: T,
515
- monthly_payment: b.minimum_payment || 0,
516
- name: we(b, {
517
+ monthly_payment: f.minimum_payment || 0,
518
+ name: De(f, {
517
519
  allowNickname: _?.show_account_nicknames_in_master
518
520
  }),
519
- track_type: d.DEBT_TRACK
521
+ track_type: u.DEBT_TRACK
520
522
  }), p(n.alert_goal_added);
521
523
  }
522
- h(!1), t?.(d.DEBT_TRACK);
524
+ r(!1), t?.(u.DEBT_TRACK);
523
525
  };
524
- return /* @__PURE__ */ r(f, { children: [
525
- /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: o.map((u, b) => /* @__PURE__ */ e(Gt, { goalType: u, onClick: m }, b)) }),
526
+ return /* @__PURE__ */ i(b, { children: [
527
+ /* @__PURE__ */ e(B, { sx: { bgcolor: "background.paper" }, children: m.map((l, f) => /* @__PURE__ */ e(kt, { goalType: l, onClick: o }, f)) }),
526
528
  /* @__PURE__ */ e(
527
529
  Be,
528
530
  {
529
- accounts: g.filter((u) => !s.find((b) => b.account_guid === u.guid)),
530
- isOpen: l,
531
- onClose: () => h(!1),
532
- onSave: c,
531
+ accounts: h.filter((l) => !c.find((f) => f.account_guid === l.guid)),
532
+ isOpen: g,
533
+ onClose: () => r(!1),
534
+ onSave: d,
533
535
  title: n.select_debt_accounts_title
534
536
  }
535
537
  )
536
538
  ] });
537
- }, Le = ({ account: t }) => {
538
- const { accounts: n } = C(), i = st(t), { setSelectedAccount: s } = at(), [p, a] = y.useState(!1);
539
- return /* @__PURE__ */ r(N, { sx: { bgcolor: "background.paper" }, children: [
540
- /* @__PURE__ */ r(k, { onClick: () => {
541
- s(t), a(!0);
539
+ }, Oe = ({ account: t }) => {
540
+ const { accounts: n } = C(), s = ct(t), { setSelectedAccount: c } = it(), [p, a] = y.useState(!1);
541
+ return /* @__PURE__ */ i(N, { sx: { bgcolor: "background.paper" }, children: [
542
+ /* @__PURE__ */ i(k, { onClick: () => {
543
+ c(t), a(!0);
542
544
  }, children: [
543
- /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
544
- ne,
545
+ /* @__PURE__ */ e(V, { children: /* @__PURE__ */ e(
546
+ oe,
545
547
  {
546
548
  alt: t.name || "",
547
549
  institutionGuid: t.institution_guid || ""
@@ -550,114 +552,114 @@ const St = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
550
552
  /* @__PURE__ */ e(
551
553
  w,
552
554
  {
553
- primary: i,
555
+ primary: s,
554
556
  secondary: x(t.balance || 0, "0,0.00")
555
557
  }
556
558
  ),
557
559
  /* @__PURE__ */ e(M, {})
558
560
  ] }),
559
- /* @__PURE__ */ e(j, { isOpen: p, onClose: () => a(!1), title: n.account_details, children: /* @__PURE__ */ r(f, { children: [
560
- /* @__PURE__ */ e(rt, {}),
561
- /* @__PURE__ */ e(it, {})
561
+ /* @__PURE__ */ e(F, { isOpen: p, onClose: () => a(!1), title: n.account_details, children: /* @__PURE__ */ i(b, { children: [
562
+ /* @__PURE__ */ e(st, {}),
563
+ /* @__PURE__ */ e(lt, {})
562
564
  ] }) })
563
565
  ] });
564
- }, kt = D(({ goal: t }) => {
565
- const { goals: n } = C(), { setAlert: i, setSelectedGoal: s, updateGoal: p } = I(), [a, _] = y.useState(t.amount), g = !t.guid, l = a < 0 || a > 9999999999e-2, h = t.track_type === d.SAVINGS_TRACK && t.has_been_spent || t.track_type !== d.SAVINGS_TRACK && t.is_complete, o = async () => {
566
- const c = { ...t, amount: a };
567
- t.amount = a, g ? s(c) : (await p(c), i(n.alert_goal_updated_amount));
568
- }, m = () => {
566
+ }, Dt = D(({ goal: t }) => {
567
+ const { goals: n } = C(), { setAlert: s, setSelectedGoal: c, updateGoal: p } = I(), [a, _] = y.useState(t.amount), h = !t.guid, g = a < 0 || a > 9999999999e-2, r = t.track_type === u.SAVINGS_TRACK && t.has_been_spent || t.track_type !== u.SAVINGS_TRACK && t.is_complete, m = async () => {
568
+ const d = { ...t, amount: a };
569
+ t.amount = a, h ? c(d) : (await p(d), s(n.alert_goal_updated_amount));
570
+ }, o = () => {
569
571
  setTimeout(() => {
570
572
  _(t.amount);
571
573
  }, 250);
572
574
  };
573
575
  return /* @__PURE__ */ e(
574
- ee,
576
+ Q,
575
577
  {
576
- isDisabled: h,
577
- isSaveDisabled: l,
578
+ isDisabled: r,
579
+ isSaveDisabled: g,
578
580
  label: n.details_amount_to_save,
579
- onCancel: m,
580
- onSave: o,
581
+ onCancel: o,
582
+ onSave: m,
581
583
  primaryText: n.details_amount_to_save,
582
584
  secondaryText: x(t.amount, "0,0"),
583
- zeroStateText: g && t.amount === 0 ? n.add_amount : void 0,
585
+ zeroStateText: h && t.amount === 0 ? n.add_amount : void 0,
584
586
  children: /* @__PURE__ */ e(
585
- ke,
587
+ we,
586
588
  {
587
589
  amount: a,
588
590
  autoFocus: !0,
589
- error: l,
591
+ error: g,
590
592
  fullWidth: !0,
591
593
  minAmount: 0,
592
- setAmount: (c) => _(isNaN(Number(c)) ? a : Number(c)),
594
+ setAmount: (d) => _(isNaN(Number(d)) ? a : Number(d)),
593
595
  sx: { ".MuiTypography-Body": { p: 0 } }
594
596
  }
595
597
  )
596
598
  }
597
599
  );
598
- }), wt = ({ goal: t }) => {
599
- const { visibleCheckingAccounts: n, visibleSavingsAccounts: i } = V(), { accounts: s, goals: p } = C(), { setAlert: a, setSelectedGoal: _, updateGoal: g } = I(), l = !t.guid, [h, o] = y.useState(!1), m = async ({ balance: c, guid: u }) => {
600
- const b = { ...t, account_guid: u, current_amount: c || 0 };
601
- l ? _(b) : (await g(b), a(p.alert_account_changed)), o(!1);
600
+ }), Kt = ({ goal: t }) => {
601
+ const { visibleCheckingAccounts: n, visibleSavingsAccounts: s } = j(), { accounts: c, goals: p } = C(), { setAlert: a, setSelectedGoal: _, updateGoal: h } = I(), g = !t.guid, [r, m] = y.useState(!1), o = async ({ balance: d, guid: l }) => {
602
+ const f = { ...t, account_guid: l, current_amount: d || 0 };
603
+ g ? _(f) : (await h(f), a(p.alert_account_changed)), m(!1);
602
604
  };
603
- return /* @__PURE__ */ r(f, { children: [
604
- l && !t.account_guid ? /* @__PURE__ */ e(N, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ r(k, { onClick: () => o(!0), children: [
605
- /* @__PURE__ */ e(w, { children: /* @__PURE__ */ r(f, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
606
- /* @__PURE__ */ e(xe, { filled: !0 }),
605
+ return /* @__PURE__ */ i(b, { children: [
606
+ g && !t.account_guid ? /* @__PURE__ */ e(N, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ i(k, { onClick: () => m(!0), children: [
607
+ /* @__PURE__ */ e(w, { children: /* @__PURE__ */ i(b, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
608
+ /* @__PURE__ */ e(Ie, { filled: !0 }),
607
609
  p.details_add_account
608
610
  ] }) }),
609
611
  /* @__PURE__ */ e(M, { color: "primary" })
610
- ] }) }) : /* @__PURE__ */ r(f, { sx: { gap: 8, my: 24, mx: 24 }, children: [
611
- /* @__PURE__ */ e(pe, { onClick: () => o(!0), variant: "text", children: p.details_change_account }),
612
+ ] }) }) : /* @__PURE__ */ i(b, { sx: { gap: 8, my: 24, mx: 24 }, children: [
613
+ /* @__PURE__ */ e(he, { onClick: () => m(!0), variant: "text", children: p.details_change_account }),
612
614
  /* @__PURE__ */ e(
613
615
  A,
614
616
  {
615
617
  color: "text.secondary",
616
618
  sx: { textAlign: "center", whiteSpace: "wrap" },
617
619
  variant: "Paragraph",
618
- children: B(p.details_change_account_description, t.name)
620
+ children: L(p.details_change_account_description, t.name)
619
621
  }
620
622
  )
621
623
  ] }),
622
- /* @__PURE__ */ e(j, { isOpen: h, onClose: () => o(!1), title: p.details_change_account, children: /* @__PURE__ */ r(f, { children: [
623
- n.length > 0 && /* @__PURE__ */ e(A, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: s.account_types[1] }),
624
- /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: n.map((c) => /* @__PURE__ */ e(N, { children: /* @__PURE__ */ r(k, { onClick: () => m(c), children: [
625
- /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
626
- ne,
624
+ /* @__PURE__ */ e(F, { isOpen: r, onClose: () => m(!1), title: p.details_change_account, children: /* @__PURE__ */ i(b, { children: [
625
+ n.length > 0 && /* @__PURE__ */ e(A, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: c.account_types[1] }),
626
+ /* @__PURE__ */ e(B, { sx: { bgcolor: "background.paper" }, children: n.map((d) => /* @__PURE__ */ e(N, { children: /* @__PURE__ */ i(k, { onClick: () => o(d), children: [
627
+ /* @__PURE__ */ e(V, { children: /* @__PURE__ */ e(
628
+ oe,
627
629
  {
628
- alt: c?.name || "",
629
- institutionGuid: c?.institution_guid || ""
630
+ alt: d?.name || "",
631
+ institutionGuid: d?.institution_guid || ""
630
632
  }
631
633
  ) }),
632
634
  /* @__PURE__ */ e(
633
635
  w,
634
636
  {
635
- primary: c?.name || c?.feed_name,
636
- secondary: x(c?.balance || 0, "0,0.00")
637
+ primary: d?.name || d?.feed_name,
638
+ secondary: x(d?.balance || 0, "0,0.00")
637
639
  }
638
640
  ),
639
641
  /* @__PURE__ */ e(M, {})
640
- ] }) }, c.guid)) }),
641
- i.length > 0 && /* @__PURE__ */ e(A, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: s.account_types[2] }),
642
- /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: i.map((c) => /* @__PURE__ */ e(N, { children: /* @__PURE__ */ r(k, { onClick: () => m(c), children: [
643
- /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
644
- ne,
642
+ ] }) }, d.guid)) }),
643
+ s.length > 0 && /* @__PURE__ */ e(A, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: c.account_types[2] }),
644
+ /* @__PURE__ */ e(B, { sx: { bgcolor: "background.paper" }, children: s.map((d) => /* @__PURE__ */ e(N, { children: /* @__PURE__ */ i(k, { onClick: () => o(d), children: [
645
+ /* @__PURE__ */ e(V, { children: /* @__PURE__ */ e(
646
+ oe,
645
647
  {
646
- alt: c?.name || "",
647
- institutionGuid: c?.institution_guid || ""
648
+ alt: d?.name || "",
649
+ institutionGuid: d?.institution_guid || ""
648
650
  }
649
651
  ) }),
650
652
  /* @__PURE__ */ e(
651
653
  w,
652
654
  {
653
- primary: c?.name || c?.feed_name,
654
- secondary: x(c?.balance || 0, "0,0.00")
655
+ primary: d?.name || d?.feed_name,
656
+ secondary: x(d?.balance || 0, "0,0.00")
655
657
  }
656
658
  ),
657
659
  /* @__PURE__ */ e(M, {})
658
- ] }) }, c.guid)) }),
660
+ ] }) }, d.guid)) }),
659
661
  /* @__PURE__ */ e(
660
- ye,
662
+ Te,
661
663
  {
662
664
  description: p.connect_description,
663
665
  label: p.connect_button,
@@ -666,133 +668,133 @@ const St = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
666
668
  )
667
669
  ] }) })
668
670
  ] });
669
- }, Dt = D(({ goal: t }) => {
670
- const { goals: n } = C(), { setAlert: i, setSelectedGoal: s, updateGoal: p } = I(), [a, _] = y.useState(t.name), g = !t.guid, l = t.track_type === d.SAVINGS_TRACK && t.has_been_spent || t.track_type !== d.SAVINGS_TRACK && t.is_complete, h = async () => {
671
- const m = { ...t, name: a };
672
- t.name = a, g ? s(m) : (await p(m), i(n.alert_goal_updated_name));
673
- }, o = () => {
671
+ }, Mt = D(({ goal: t }) => {
672
+ const { goals: n } = C(), { setAlert: s, setSelectedGoal: c, updateGoal: p } = I(), [a, _] = y.useState(t.name), h = !t.guid, g = t.track_type === u.SAVINGS_TRACK && t.has_been_spent || t.track_type !== u.SAVINGS_TRACK && t.is_complete, r = async () => {
673
+ const o = { ...t, name: a };
674
+ t.name = a, h ? c(o) : (await p(o), s(n.alert_goal_updated_name));
675
+ }, m = () => {
674
676
  setTimeout(() => {
675
677
  _(t.name);
676
678
  }, 250);
677
679
  };
678
680
  return /* @__PURE__ */ e(
679
- ee,
681
+ Q,
680
682
  {
681
- isDisabled: l,
683
+ isDisabled: g,
682
684
  isSaveDisabled: !a,
683
685
  label: n.details_goal_name,
684
- onCancel: o,
685
- onSave: h,
686
+ onCancel: m,
687
+ onSave: r,
686
688
  primaryText: n.details_goal_name,
687
689
  secondaryText: t.name,
688
690
  children: /* @__PURE__ */ e(
689
- De,
691
+ Ke,
690
692
  {
691
693
  error: !a,
692
694
  fullWidth: !0,
693
695
  label: n.details_goal_name,
694
- onChange: (m) => _(m.target.value),
696
+ onChange: (o) => _(o.target.value),
695
697
  value: a
696
698
  }
697
699
  )
698
700
  }
699
701
  );
700
- }), Kt = ({ goal: t }) => {
701
- const { goals: n } = C(), { setAlert: i, setSelectedGoal: s, updateGoal: p } = I(), [a, _] = y.useState(t.retirement_age || 65), g = !t.guid, l = async () => {
702
+ }), Lt = ({ goal: t }) => {
703
+ const { goals: n } = C(), { setAlert: s, setSelectedGoal: c, updateGoal: p } = I(), [a, _] = y.useState(t.retirement_age || 65), h = !t.guid, g = async () => {
702
704
  if (!isNaN(a)) {
703
- const m = { ...t, retirement_age: a };
704
- t.retirement_age = a, g ? s(m) : (await p(m), i(n.alert_goal_updated_retirement_age));
705
+ const o = { ...t, retirement_age: a };
706
+ t.retirement_age = a, h ? c(o) : (await p(o), s(n.alert_goal_updated_retirement_age));
705
707
  }
706
- }, h = () => {
708
+ }, r = () => {
707
709
  setTimeout(() => {
708
710
  _(t.retirement_age || 65);
709
711
  }, 250);
710
- }, o = !a || isNaN(a) || a < 20 || a >= 100;
712
+ }, m = !a || isNaN(a) || a < 20 || a >= 100;
711
713
  return /* @__PURE__ */ e(
712
- ee,
714
+ Q,
713
715
  {
714
716
  isDisabled: t.is_complete,
715
- isSaveDisabled: o,
717
+ isSaveDisabled: m,
716
718
  label: n.details_retirement_age,
717
- onCancel: h,
718
- onSave: l,
719
+ onCancel: r,
720
+ onSave: g,
719
721
  primaryText: n.details_retirement_age,
720
722
  secondaryText: `${t.retirement_age}`,
721
- zeroStateText: g && !t.retirement_age ? n.add_age : void 0,
723
+ zeroStateText: h && !t.retirement_age ? n.add_age : void 0,
722
724
  children: /* @__PURE__ */ e(
723
- De,
725
+ Ke,
724
726
  {
725
- error: o,
727
+ error: m,
726
728
  fullWidth: !0,
727
729
  label: n.details_retirement_age,
728
- onChange: (m) => _(Number(m.target.value)),
730
+ onChange: (o) => _(Number(o.target.value)),
729
731
  value: isNaN(a) ? "" : a
730
732
  }
731
733
  )
732
734
  }
733
735
  );
734
- }, Mt = D(({ goal: t }) => {
735
- const { goals: n } = C(), { user: i, updateUser: s } = Ie(), { setAlert: p } = I(), [a, _] = y.useState(Q(i.birthday ?? 0)), [g, l] = y.useState(null), h = t.is_complete, o = async () => {
736
- a && ut(a) && (await s({ ...i, birthday: mt(a) }), p(n.alert_goal_updated_birthday));
736
+ }, Bt = D(({ goal: t }) => {
737
+ const { goals: n } = C(), { user: s, updateUser: c } = Ne(), { setAlert: p } = I(), [a, _] = y.useState(J(s.birthday ?? 0)), [h, g] = y.useState(null), r = t.is_complete, m = async () => {
738
+ a && pt(a) && (await c({ ...s, birthday: _t(a) }), p(n.alert_goal_updated_birthday));
737
739
  };
738
740
  return /* @__PURE__ */ e(
739
- ee,
741
+ Q,
740
742
  {
741
- isDisabled: h,
742
- isSaveDisabled: !!g,
743
+ isDisabled: r,
744
+ isSaveDisabled: !!h,
743
745
  label: n.details_birthday,
744
- onSave: o,
746
+ onSave: m,
745
747
  primaryText: n.details_birthday,
746
- secondaryText: `${ae(Q(i.birthday ?? 0), re.MONTH_DAY_YEAR)}`,
747
- zeroStateText: !t.guid && !i.birthday ? n.add_birthday : void 0,
748
- children: /* @__PURE__ */ e(ht, { dateAdapter: _t, children: /* @__PURE__ */ e(
749
- pt,
748
+ secondaryText: `${re(J(s.birthday ?? 0), ie.MONTH_DAY_YEAR)}`,
749
+ zeroStateText: !t.guid && !s.birthday ? n.add_birthday : void 0,
750
+ children: /* @__PURE__ */ e(bt, { dateAdapter: ht, children: /* @__PURE__ */ e(
751
+ gt,
750
752
  {
751
753
  label: n.details_birthday,
752
754
  onChange: _,
753
- onError: (m) => l(m),
755
+ onError: (o) => g(o),
754
756
  sx: { width: "100%" },
755
757
  value: a
756
758
  }
757
759
  ) })
758
760
  }
759
761
  );
760
- }), Bt = ({ goal: t }) => {
761
- const { goals: n } = C(), { visibleRetirementAccounts: i } = V(), {
762
- addRetirementGoalAccount: s,
762
+ }), Ot = ({ goal: t }) => {
763
+ const { goals: n } = C(), { visibleRetirementAccounts: s } = j(), {
764
+ addRetirementGoalAccount: c,
763
765
  newRetirementGoalAccounts: p,
764
766
  retirementGoalAccounts: a,
765
767
  selectedGoal: _,
766
- setAlert: g,
767
- setNewRetirementGoalAccounts: l,
768
- setSelectedGoal: h
769
- } = I(), [o, m] = y.useState(!1), c = !t.guid, u = i.filter(
770
- (S) => c ? p.find((R) => R.account_guid === S.guid) : a.find((R) => R.account_guid === S.guid)
771
- ), b = i.filter(
768
+ setAlert: h,
769
+ setNewRetirementGoalAccounts: g,
770
+ setSelectedGoal: r
771
+ } = I(), [m, o] = y.useState(!1), d = !t.guid, l = s.filter(
772
+ (S) => d ? p.find((R) => R.account_guid === S.guid) : a.find((R) => R.account_guid === S.guid)
773
+ ), f = s.filter(
772
774
  (S) => !a.find((R) => R.account_guid === S.guid)
773
775
  ), T = async (S) => {
774
776
  const R = S.map((v) => ({
775
777
  account_guid: v.guid,
776
778
  retirement_goal_guid: t.guid
777
779
  }));
778
- if (c)
779
- l(R);
780
+ if (d)
781
+ g(R);
780
782
  else
781
783
  for (const v of R)
782
- await s(v), g(n.alert_account_added);
783
- h({
784
+ await c(v), h(n.alert_account_added);
785
+ r({
784
786
  ..._,
785
- current_amount: S.reduce((v, F) => v + (F.balance || 0), 0)
786
- }), m(!1);
787
+ current_amount: S.reduce((v, K) => v + (K.balance || 0), 0)
788
+ }), o(!1);
787
789
  };
788
- return /* @__PURE__ */ r(f, { children: [
789
- u.map((S) => /* @__PURE__ */ r(f, { children: [
790
- /* @__PURE__ */ e(Le, { account: S }),
790
+ return /* @__PURE__ */ i(b, { children: [
791
+ l.map((S) => /* @__PURE__ */ i(b, { children: [
792
+ /* @__PURE__ */ e(Oe, { account: S }),
791
793
  /* @__PURE__ */ e(E, {})
792
794
  ] }, S.guid)),
793
- /* @__PURE__ */ e(N, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ r(k, { onClick: () => m(!0), children: [
794
- /* @__PURE__ */ e(w, { children: /* @__PURE__ */ r(f, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
795
- /* @__PURE__ */ e(xe, { filled: !0 }),
795
+ /* @__PURE__ */ e(N, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ i(k, { onClick: () => o(!0), children: [
796
+ /* @__PURE__ */ e(w, { children: /* @__PURE__ */ i(b, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
797
+ /* @__PURE__ */ e(Ie, { filled: !0 }),
796
798
  n.details_add_account
797
799
  ] }) }),
798
800
  /* @__PURE__ */ e(M, { color: "primary" })
@@ -800,211 +802,213 @@ const St = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
800
802
  /* @__PURE__ */ e(
801
803
  Be,
802
804
  {
803
- accounts: b,
804
- isOpen: o,
805
- onClose: () => m(!1),
805
+ accounts: f,
806
+ isOpen: m,
807
+ onClose: () => o(!1),
806
808
  onSave: T,
807
809
  title: n.add_select_accounts
808
810
  }
809
811
  )
810
812
  ] });
811
- }, Lt = D(({ goal: t }) => {
812
- const { goals: n } = C(), { visibleAccounts: i } = V(), s = y.useMemo(
813
- () => i.find((_) => _.guid === t.account_guid),
814
- [i, t]
813
+ }, Wt = D(({ goal: t }) => {
814
+ const { goals: n } = C(), { visibleAccounts: s } = j(), c = y.useMemo(
815
+ () => s.find((_) => _.guid === t.account_guid),
816
+ [s, t]
815
817
  ), p = t.track_type;
816
818
  let a = n.details_save_title;
817
- return t.track_type === d.DEBT_TRACK ? a = n.details_debt_title : t.track_type === d.RETIREMENT_TRACK && (a = n.details_retirement_title), /* @__PURE__ */ r(f, { children: [
818
- /* @__PURE__ */ r(f, { mx: 24, children: [
819
+ return t.track_type === u.DEBT_TRACK ? a = n.details_debt_title : t.track_type === u.RETIREMENT_TRACK && (a = n.details_retirement_title), /* @__PURE__ */ i(b, { children: [
820
+ /* @__PURE__ */ i(b, { mx: 24, children: [
819
821
  /* @__PURE__ */ e(A, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "XSmall", children: a }),
820
- /* @__PURE__ */ e(Me, { goal: t, isInDrawer: !0 }),
822
+ /* @__PURE__ */ e(Le, { goal: t, isInDrawer: !0 }),
821
823
  /* @__PURE__ */ e(A, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "XSmall", children: n.details_title })
822
824
  ] }),
823
- /* @__PURE__ */ r(L, { sx: { bgcolor: "background.paper" }, children: [
824
- /* @__PURE__ */ e(Dt, { goal: t }),
825
+ /* @__PURE__ */ i(B, { sx: { bgcolor: "background.paper" }, children: [
826
+ /* @__PURE__ */ e(Mt, { goal: t }),
825
827
  /* @__PURE__ */ e(E, { sx: { ml: 24 } }),
826
- (p === d.SAVINGS_TRACK || p === d.RETIREMENT_TRACK) && /* @__PURE__ */ r(U, { children: [
827
- /* @__PURE__ */ e(kt, { goal: t }),
828
- /* @__PURE__ */ e(E, { sx: { ml: p === d.RETIREMENT_TRACK ? 24 : 0 } })
828
+ (p === u.SAVINGS_TRACK || p === u.RETIREMENT_TRACK) && /* @__PURE__ */ i(U, { children: [
829
+ /* @__PURE__ */ e(Dt, { goal: t }),
830
+ /* @__PURE__ */ e(E, { sx: { ml: p === u.RETIREMENT_TRACK ? 24 : 0 } })
829
831
  ] }),
830
- t.track_type === d.DEBT_TRACK && /* @__PURE__ */ r(U, { children: [
831
- /* @__PURE__ */ e(lt, { goal: t }),
832
+ t.track_type === u.DEBT_TRACK && /* @__PURE__ */ i(U, { children: [
833
+ /* @__PURE__ */ e(dt, { goal: t }),
832
834
  /* @__PURE__ */ e(E, { sx: { ml: 24 } }),
833
- /* @__PURE__ */ e(ct, { goal: t }),
835
+ /* @__PURE__ */ e(mt, { goal: t }),
834
836
  /* @__PURE__ */ e(E, { sx: { ml: 24 } }),
835
- /* @__PURE__ */ e(dt, { goal: t }),
837
+ /* @__PURE__ */ e(ut, { goal: t }),
836
838
  /* @__PURE__ */ e(E, { variant: "fullWidth" })
837
839
  ] }),
838
- t.track_type === d.RETIREMENT_TRACK && /* @__PURE__ */ r(U, { children: [
839
- /* @__PURE__ */ e(Kt, { goal: t }),
840
+ t.track_type === u.RETIREMENT_TRACK && /* @__PURE__ */ i(U, { children: [
841
+ /* @__PURE__ */ e(Lt, { goal: t }),
840
842
  /* @__PURE__ */ e(E, { sx: { ml: 24 } }),
841
- /* @__PURE__ */ e(Mt, { goal: t }),
843
+ /* @__PURE__ */ e(Bt, { goal: t }),
842
844
  /* @__PURE__ */ e(E, { variant: "fullWidth" })
843
845
  ] })
844
846
  ] }),
845
- /* @__PURE__ */ e(A, { color: "text.secondary", sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: t.track_type === d.RETIREMENT_TRACK ? n.details_accounts : n.details_account }),
846
- t.track_type !== d.RETIREMENT_TRACK && s && /* @__PURE__ */ r(U, { children: [
847
- /* @__PURE__ */ e(Le, { account: s }),
847
+ /* @__PURE__ */ e(A, { color: "text.secondary", sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: t.track_type === u.RETIREMENT_TRACK ? n.details_accounts : n.details_account }),
848
+ t.track_type !== u.RETIREMENT_TRACK && c && /* @__PURE__ */ i(U, { children: [
849
+ /* @__PURE__ */ e(Oe, { account: c }),
848
850
  /* @__PURE__ */ e(E, {})
849
851
  ] }),
850
- t.track_type === d.RETIREMENT_TRACK && /* @__PURE__ */ r(U, { children: [
851
- /* @__PURE__ */ e(Bt, { goal: t }),
852
+ t.track_type === u.RETIREMENT_TRACK && /* @__PURE__ */ i(U, { children: [
853
+ /* @__PURE__ */ e(Ot, { goal: t }),
852
854
  /* @__PURE__ */ e(E, {})
853
855
  ] }),
854
- t.track_type === d.SAVINGS_TRACK && !t.is_complete && /* @__PURE__ */ e(wt, { goal: t })
856
+ t.track_type === u.SAVINGS_TRACK && !t.is_complete && /* @__PURE__ */ e(Kt, { goal: t })
855
857
  ] });
856
- }), Ot = D(({ onClose: t }) => {
857
- const { visibleRetirementAccounts: n } = V(), { goals: i, common: s } = C(), {
858
+ }), Pt = D(({ onClose: t }) => {
859
+ const { visibleRetirementAccounts: n } = j(), { goals: s, common: c } = C(), {
858
860
  addGoal: p,
859
861
  addRetirementGoal: a,
860
862
  deleteGoal: _,
861
- deleteRetirementGoal: g,
862
- newRetirementGoalAccounts: l,
863
- retirementGoalAccounts: h,
864
- selectedGoal: o,
865
- setAlert: m,
866
- setSelectedGoal: c,
867
- updateGoal: u
868
- } = I(), { user: b } = Ie(), [T, S] = y.useState(!1), R = !o?.guid, v = o?.track_type === d.SAVINGS_TRACK && o.is_complete && !o.has_been_spent, F = y.useMemo(() => {
869
- const G = R ? l : h;
870
- return n.filter(($) => G.some((K) => K.account_guid === $.guid));
871
- }, [R, n, l, h]), Z = y.useMemo(() => {
872
- if (!o) return !1;
863
+ deleteRetirementGoal: h,
864
+ newRetirementGoalAccounts: g,
865
+ retirementGoalAccounts: r,
866
+ selectedGoal: m,
867
+ setAlert: o,
868
+ setSelectedGoal: d,
869
+ updateGoal: l
870
+ } = I(), { user: f } = Ne(), [T, S] = y.useState(!1), R = !m?.guid, v = m?.track_type === u.SAVINGS_TRACK && m.is_complete && !m.has_been_spent, K = y.useMemo(() => {
871
+ const G = R ? g : r;
872
+ return n.filter((H) => G.some(($) => $.account_guid === H.guid));
873
+ }, [R, n, g, r]), se = y.useMemo(() => {
874
+ if (!m) return !1;
873
875
  if (!R && !v) return !0;
874
- const { account_guid: G, track_type: $, name: K, amount: q, retirement_age: O } = o;
875
- return $ === d.SAVINGS_TRACK ? G ? !!K && !!q : !1 : $ === d.RETIREMENT_TRACK ? F.length ? !!K && !!q && !!O && !!b.birthday : !1 : !0;
876
- }, [o, F, b.birthday]);
877
- let z = s.delete_button, H = () => S(!0);
878
- R ? (H = () => te(), z = s.save_button) : v && (H = () => se(), z = i.mark_as_complete_button);
879
- const te = async () => {
880
- if (o) {
881
- const G = o.track_type;
882
- G !== d.RETIREMENT_TRACK ? await p(o) : G === d.RETIREMENT_TRACK && await a({ ...o, target_amount: o.amount }), m(i.alert_goal_added), c(void 0), G && t?.(G);
876
+ const { account_guid: G, track_type: H, name: $, amount: O, retirement_age: ne } = m;
877
+ return H === u.SAVINGS_TRACK ? G ? !!$ && !!O : !1 : H === u.RETIREMENT_TRACK ? K.length ? !!$ && !!O && !!ne && !!f.birthday : !1 : !0;
878
+ }, [m, K, f.birthday]);
879
+ let W = c.delete_button, z = () => S(!0);
880
+ R ? (z = () => ee(), W = c.save_button) : v && (z = () => le(), W = s.mark_as_complete_button);
881
+ const ee = async () => {
882
+ if (m) {
883
+ const G = m.track_type;
884
+ G !== u.RETIREMENT_TRACK ? await p(m) : G === u.RETIREMENT_TRACK && await a({ ...m, target_amount: m.amount }), o(s.alert_goal_added), d(void 0), G && t?.(G);
883
885
  }
884
- }, ie = async () => {
885
- o && (o.track_type !== d.RETIREMENT_TRACK ? await _(o.guid) : o.track_type === d.RETIREMENT_TRACK && await g(o), m(i.alert_goal_deleted), c(void 0));
886
- }, se = async () => {
886
+ }, te = async () => {
887
+ m && (m.track_type !== u.RETIREMENT_TRACK ? await _(m.guid) : m.track_type === u.RETIREMENT_TRACK && await h(m), o(s.alert_goal_deleted), d(void 0));
888
+ }, le = async () => {
887
889
  const G = {
888
- ...o,
890
+ ...m,
889
891
  has_been_spent: !0
890
892
  };
891
- await u(G), m(i.alert_goal_completed), c(void 0);
893
+ await l(G), o(s.alert_goal_completed), d(void 0);
892
894
  };
893
- return /* @__PURE__ */ r(f, { children: [
895
+ return /* @__PURE__ */ i(b, { children: [
894
896
  /* @__PURE__ */ e(
895
- j,
897
+ F,
896
898
  {
897
- ariaLabelClose: s.close_aria,
899
+ ariaLabelClose: c.close_aria,
898
900
  hasSecondaryAction: R,
899
- isOpen: !!o,
900
- isPrimaryDisabled: !Z,
901
- onClose: () => c(void 0),
902
- onPrimaryAction: H,
901
+ isOpen: !!m,
902
+ isPrimaryDisabled: !se,
903
+ onClose: () => d(void 0),
904
+ onPrimaryAction: z,
903
905
  primaryColor: R || v ? "primary" : "error",
904
- primaryText: z,
906
+ primaryText: W,
905
907
  secondaryColor: "primary",
906
- title: i.goal_details,
907
- children: o && /* @__PURE__ */ e(Lt, { goal: o })
908
+ title: s.goal_details,
909
+ children: m && /* @__PURE__ */ e(Wt, { goal: m })
908
910
  }
909
911
  ),
910
912
  /* @__PURE__ */ e(
911
- et,
913
+ nt,
912
914
  {
913
- copy: { close_aria: s.close_aria, title: i.delete_goal },
915
+ copy: { close_aria: c.close_aria, title: s.delete_goal },
914
916
  isOpen: T,
915
917
  maxWidth: "xs",
916
918
  onClose: () => S(!1),
917
- onPrimaryAction: ie,
919
+ onPrimaryAction: te,
918
920
  primaryColor: "error",
919
- primaryText: s.delete_button,
920
- children: /* @__PURE__ */ e(A, { sx: { textWrap: "wrap" }, variant: "Paragraph", children: B(i.delete_description, o?.name || "") })
921
+ primaryText: c.delete_button,
922
+ children: /* @__PURE__ */ e(A, { sx: { textWrap: "wrap" }, variant: "Paragraph", children: L(s.delete_description, m?.name || "") })
921
923
  }
922
924
  )
923
925
  ] });
924
- }), Hn = D(({ onBackClick: t, sx: n }) => {
925
- const { onEvent: i } = Ge(), { isMobile: s } = he(), { visibleAccounts: p } = V(), { isCopyLoaded: a, isInitialized: _, setSelectedAccounts: g } = Ne(), { goals: l, common: h } = C(), { alert: o, goals: m, goalsLoaded: c, loadGoals: u, monthlyCashFlowProfile: b, setAlert: T, retirmentGoals: S } = I(), [R, v] = y.useState(0), [F, Z] = y.useState(!1), z = b?.amount_allocated_for_savings_goals || 0, H = b?.amount_allocated_for_debt_goals || 0, te = b?.amount_allocated_for_retirement_goals || 0, ie = a ? B(
926
- s ? l.tab_subtitle_mobile : l.tab_subtitle,
926
+ }), Xn = D(({ onBackClick: t, sx: n }) => {
927
+ const { onEvent: s } = ke(), { onLoad: c } = Qe(), { isMobile: p } = be(), { visibleAccounts: a } = j(), { isCopyLoaded: _, isInitialized: h, setSelectedAccounts: g } = ge(), { goals: r, common: m } = C(), { alert: o, goals: d, goalsLoaded: l, loadGoals: f, monthlyCashFlowProfile: T, setAlert: S, retirmentGoals: R } = I(), [v, K] = y.useState(0), [se, W] = y.useState(!1), z = T?.amount_allocated_for_savings_goals || 0, ee = T?.amount_allocated_for_debt_goals || 0, te = T?.amount_allocated_for_retirement_goals || 0, le = _ ? L(
928
+ p ? r.tab_subtitle_mobile : r.tab_subtitle,
927
929
  x(z, "0,0")
928
- ) : "", se = a ? B(
929
- s ? l.tab_subtitle_mobile : l.tab_subtitle,
930
- x(H, "0,0")
931
- ) : "", G = a ? B(
932
- s ? l.tab_subtitle_mobile : l.tab_subtitle,
930
+ ) : "", G = _ ? L(
931
+ p ? r.tab_subtitle_mobile : r.tab_subtitle,
932
+ x(ee, "0,0")
933
+ ) : "", H = _ ? L(
934
+ p ? r.tab_subtitle_mobile : r.tab_subtitle,
933
935
  x(te, "0,0")
934
936
  ) : "";
935
937
  y.useEffect(() => {
936
- g(p), i(Y.GOALS_VIEW);
937
- }, []), y.useEffect(() => {
938
- _ && u().finally();
939
- }, [_, z, H, te]);
938
+ g(a), s(Y.GOALS_VIEW);
939
+ }, [a]), y.useEffect(() => {
940
+ h && f().finally(() => {
941
+ c?.("GoalsWidget");
942
+ });
943
+ }, [h, z, ee, te]);
940
944
  const $ = () => {
941
- i(Y.GOALS_CLICK_FILTER);
942
- }, K = () => {
943
- Z(!0), i(Y.GOALS_CLICK_ADD);
944
- }, q = (X) => {
945
- Z(!1), X === d.SAVINGS_TRACK ? v(0) : X === d.DEBT_TRACK ? v(1) : X === d.RETIREMENT_TRACK && v(2);
946
- }, O = y.useMemo(
947
- () => c && (m.length === 0 || m.every(({ track_type: X }) => !X) && S.length === 0),
948
- [m, c, S]
945
+ s(Y.GOALS_CLICK_FILTER);
946
+ }, O = () => {
947
+ W(!0), s(Y.GOALS_CLICK_ADD);
948
+ }, ne = (X) => {
949
+ W(!1), X === u.SAVINGS_TRACK ? K(0) : X === u.DEBT_TRACK ? K(1) : X === u.RETIREMENT_TRACK && K(2);
950
+ }, Z = y.useMemo(
951
+ () => l && (d.length === 0 || d.every(({ track_type: X }) => !X) && R.length === 0),
952
+ [d, l, R]
949
953
  );
950
- return !c || !a || !_ ? /* @__PURE__ */ e(Ke, {}) : /* @__PURE__ */ r(
951
- gt,
954
+ return !l || !_ || !h ? /* @__PURE__ */ e(Me, {}) : /* @__PURE__ */ i(
955
+ ft,
952
956
  {
953
- accountOptions: p,
957
+ accountOptions: a,
954
958
  actions: [
955
959
  {
956
960
  iconName: "add",
957
- label: l.add_title,
958
- onClick: K
961
+ label: r.add_title,
962
+ onClick: O
959
963
  }
960
964
  ],
961
965
  onAccountsFilterClick: $,
962
966
  onBackClick: t,
963
967
  sx: n,
964
- title: l.title,
968
+ title: r.title,
965
969
  children: [
966
- /* @__PURE__ */ r(f, { mx: s ? 0 : 48, my: 24, children: [
967
- /* @__PURE__ */ r(
968
- Fe,
970
+ /* @__PURE__ */ i(b, { mx: p ? 0 : 48, my: 24, children: [
971
+ /* @__PURE__ */ i(
972
+ ze,
969
973
  {
970
- onChange: (X, Oe) => v(Oe),
974
+ onChange: (X, We) => K(We),
971
975
  sx: { bgcolor: "background.paper" },
972
976
  textColor: "primary",
973
- value: O ? !1 : R,
977
+ value: Z ? !1 : v,
974
978
  variant: "fullWidth",
975
979
  children: [
976
980
  /* @__PURE__ */ e(
977
- le,
981
+ ce,
978
982
  {
979
- disabled: O,
980
- label: /* @__PURE__ */ e(ce, { subtitle: ie, title: l.tab_saving_title })
983
+ disabled: Z,
984
+ label: /* @__PURE__ */ e(de, { subtitle: le, title: r.tab_saving_title })
981
985
  }
982
986
  ),
983
987
  /* @__PURE__ */ e(
984
- le,
988
+ ce,
985
989
  {
986
- disabled: O,
987
- label: /* @__PURE__ */ e(ce, { subtitle: se, title: l.tab_debt_title })
990
+ disabled: Z,
991
+ label: /* @__PURE__ */ e(de, { subtitle: G, title: r.tab_debt_title })
988
992
  }
989
993
  ),
990
994
  /* @__PURE__ */ e(
991
- le,
995
+ ce,
992
996
  {
993
- disabled: O,
994
- label: /* @__PURE__ */ e(ce, { subtitle: G, title: l.tab_retirement_title })
997
+ disabled: Z,
998
+ label: /* @__PURE__ */ e(de, { subtitle: H, title: r.tab_retirement_title })
995
999
  }
996
1000
  )
997
1001
  ]
998
1002
  }
999
1003
  ),
1000
- O ? /* @__PURE__ */ e(
1001
- bt,
1004
+ Z ? /* @__PURE__ */ e(
1005
+ yt,
1002
1006
  {
1003
- header: l.create_goals_header,
1007
+ header: r.create_goals_header,
1004
1008
  icon: "trophy",
1005
- onClick: K,
1006
- primaryButton: l.add_goals_button,
1007
- subText: l.empty_state_subheader,
1009
+ onClick: O,
1010
+ primaryButton: r.add_goals_button,
1011
+ subText: r.empty_state_subheader,
1008
1012
  sx: {
1009
1013
  width: { sm: 432 },
1010
1014
  ".buttons-footer": {
@@ -1012,67 +1016,67 @@ const St = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
1012
1016
  }
1013
1017
  }
1014
1018
  }
1015
- ) : /* @__PURE__ */ r(U, { children: [
1016
- R === 0 && /* @__PURE__ */ e(de, { onAddGoals: K, trackType: d.SAVINGS_TRACK }),
1017
- R === 1 && /* @__PURE__ */ e(de, { onAddGoals: K, trackType: d.DEBT_TRACK }),
1018
- R === 2 && /* @__PURE__ */ e(de, { onAddGoals: K, trackType: d.RETIREMENT_TRACK })
1019
+ ) : /* @__PURE__ */ i(U, { children: [
1020
+ v === 0 && /* @__PURE__ */ e(me, { onAddGoals: O, trackType: u.SAVINGS_TRACK }),
1021
+ v === 1 && /* @__PURE__ */ e(me, { onAddGoals: O, trackType: u.DEBT_TRACK }),
1022
+ v === 2 && /* @__PURE__ */ e(me, { onAddGoals: O, trackType: u.RETIREMENT_TRACK })
1019
1023
  ] })
1020
1024
  ] }),
1021
- /* @__PURE__ */ e(Ot, { onClose: q }),
1025
+ /* @__PURE__ */ e(Pt, { onClose: ne }),
1022
1026
  /* @__PURE__ */ e(
1023
- j,
1027
+ F,
1024
1028
  {
1025
- ariaLabelClose: h.close_aria,
1026
- isOpen: F,
1027
- onClose: () => Z(!1),
1028
- title: l.add_goal_title,
1029
- children: /* @__PURE__ */ e(Nt, { onClose: q })
1029
+ ariaLabelClose: m.close_aria,
1030
+ isOpen: se,
1031
+ onClose: () => W(!1),
1032
+ title: r.add_goal_title,
1033
+ children: /* @__PURE__ */ e(wt, { onClose: ne })
1030
1034
  }
1031
1035
  ),
1032
- /* @__PURE__ */ e(je, { onClose: () => T(""), open: !!o, children: /* @__PURE__ */ e(Ve, { onClose: () => T(""), severity: "success", variant: "filled", children: o }) })
1036
+ /* @__PURE__ */ e(Fe, { onClose: () => S(""), open: !!o, children: /* @__PURE__ */ e(je, { onClose: () => S(""), severity: "success", variant: "filled", children: o }) })
1033
1037
  ]
1034
1038
  }
1035
1039
  );
1036
- }), Wt = D(({ goal: t }) => {
1037
- const { goals: n } = C(), i = At(), {
1038
- backgroundColor: s,
1040
+ }), Vt = D(({ goal: t }) => {
1041
+ const { goals: n } = C(), s = Ct(), {
1042
+ backgroundColor: c,
1039
1043
  color: p,
1040
1044
  percentage: a,
1041
1045
  projectedText: _
1042
- } = ue(n, t), g = Math.round(a * 100);
1043
- let l = /* @__PURE__ */ e(Se, {});
1044
- return t.track_type === d.DEBT_TRACK ? l = /* @__PURE__ */ e(Re, {}) : t.track_type === d.RETIREMENT_TRACK && (l = /* @__PURE__ */ e(Ee, {})), /* @__PURE__ */ r(f, { alignItems: "center", direction: "row", spacing: 12, sx: { py: 12 }, children: [
1045
- /* @__PURE__ */ e(oe, { sx: { bgcolor: s, color: p, height: 32, width: 32 }, variant: "rounded", children: l }),
1046
- /* @__PURE__ */ r(yt, { sx: { width: "100%" }, children: [
1047
- /* @__PURE__ */ e(_e, { fontSize: 15, fontWeight: 600, variant: "body1", children: t.name }),
1046
+ } = _e(n, t), h = Math.round(a * 100);
1047
+ let g = /* @__PURE__ */ e(Ee, {});
1048
+ return t.track_type === u.DEBT_TRACK ? g = /* @__PURE__ */ e(xe, {}) : t.track_type === u.RETIREMENT_TRACK && (g = /* @__PURE__ */ e(ve, {})), /* @__PURE__ */ i(b, { alignItems: "center", direction: "row", spacing: 12, sx: { py: 12 }, children: [
1049
+ /* @__PURE__ */ e(ae, { sx: { bgcolor: c, color: p, height: 32, width: 32 }, variant: "rounded", children: g }),
1050
+ /* @__PURE__ */ i(Tt, { sx: { width: "100%" }, children: [
1051
+ /* @__PURE__ */ e(pe, { fontSize: 15, fontWeight: 600, variant: "body1", children: t.name }),
1048
1052
  t.projected_to_complete_at && /* @__PURE__ */ e(A, { color: "text.secondary", variant: "XSmall", children: _ })
1049
1053
  ] }),
1050
1054
  /* @__PURE__ */ e(
1051
- Tt,
1055
+ St,
1052
1056
  {
1053
- backgroundStrokeColor: i.palette.border.lighter,
1054
- color: i.palette.primary.main,
1055
- percent: g,
1057
+ backgroundStrokeColor: s.palette.border.lighter,
1058
+ color: s.palette.primary.main,
1059
+ percent: h,
1056
1060
  size: 40,
1057
1061
  strokeWidth: 3,
1058
- children: /* @__PURE__ */ e(W, { fontWeight: 700, variant: "caption", children: `${g}%` })
1062
+ children: /* @__PURE__ */ e(P, { fontWeight: 700, variant: "caption", children: `${h}%` })
1059
1063
  }
1060
1064
  )
1061
1065
  ] });
1062
- }), Pt = ({ header: t, subText: n, sx: i }) => /* @__PURE__ */ r(
1063
- f,
1066
+ }), jt = ({ header: t, subText: n, sx: s }) => /* @__PURE__ */ i(
1067
+ b,
1064
1068
  {
1065
1069
  sx: {
1066
1070
  alignItems: "center",
1067
1071
  alignSelf: "center",
1068
1072
  px: 24,
1069
- ...i
1073
+ ...s
1070
1074
  },
1071
1075
  children: [
1072
- /* @__PURE__ */ e(qe, { size: 32 }),
1073
- /* @__PURE__ */ e(_e, { fontSize: 15, fontWeight: 600, children: t }),
1076
+ /* @__PURE__ */ e(Je, { size: 32 }),
1077
+ /* @__PURE__ */ e(pe, { fontSize: 15, fontWeight: 600, children: t }),
1074
1078
  /* @__PURE__ */ e(
1075
- W,
1079
+ P,
1076
1080
  {
1077
1081
  color: "text.secondary",
1078
1082
  sx: { fontWeight: 400, maxWidth: { sm: 424 }, textAlign: "center" },
@@ -1082,46 +1086,46 @@ const St = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
1082
1086
  )
1083
1087
  ]
1084
1088
  }
1085
- ), $n = D(({ onCTAClick: t }) => {
1086
- const { visibleAccounts: n } = V(), { onEvent: i } = Ge(), { goals: s } = C(), { isInitialized: p, setSelectedAccounts: a, isCopyLoaded: _ } = Ne(), { ongoingGoalsForMicroWidget: g, loadGoals: l, goalsLoaded: h } = I();
1089
+ ), Un = D(({ onCTAClick: t }) => {
1090
+ const { visibleAccounts: n } = j(), { onEvent: s } = ke(), { goals: c } = C(), { isInitialized: p, setSelectedAccounts: a, isCopyLoaded: _ } = ge(), { ongoingGoalsForMicroWidget: h, loadGoals: g, goalsLoaded: r } = I();
1087
1091
  y.useEffect(() => {
1088
1092
  a(n);
1089
1093
  }, []), y.useEffect(() => {
1090
- p && (l().finally(), i(Y.GOALS_LOAD_WIDGET, {
1094
+ p && (g().finally(), s(Y.GOALS_LOAD_WIDGET, {
1091
1095
  state: n?.length ? "default" : "zeroState"
1092
1096
  }));
1093
1097
  }, [p]);
1094
- const o = y.useMemo(
1095
- () => h && g.length === 0,
1096
- [g, h]
1097
- ), m = () => {
1098
- i(
1099
- o ? Y.GOALS_CLICK_GET_STARTED : Y.GOALS_CLICK_VIEW_DETAILS
1098
+ const m = y.useMemo(
1099
+ () => r && h.length === 0,
1100
+ [h, r]
1101
+ ), o = () => {
1102
+ s(
1103
+ m ? Y.GOALS_CLICK_GET_STARTED : Y.GOALS_CLICK_VIEW_DETAILS
1100
1104
  ), t();
1101
1105
  };
1102
- return !h || !_ || !p ? /* @__PURE__ */ e(Ke, {}) : /* @__PURE__ */ e(
1103
- Ct,
1106
+ return !r || !_ || !p ? /* @__PURE__ */ e(Me, {}) : /* @__PURE__ */ e(
1107
+ Rt,
1104
1108
  {
1105
1109
  className: "mx-goals-microwidget",
1106
- ctaLabel: o ? s.get_started : s.view_details,
1107
- onCTAClick: m,
1108
- title: s.title,
1109
- children: o ? /* @__PURE__ */ e(
1110
- Pt,
1110
+ ctaLabel: m ? c.get_started : c.view_details,
1111
+ onCTAClick: o,
1112
+ title: c.title,
1113
+ children: m ? /* @__PURE__ */ e(
1114
+ jt,
1111
1115
  {
1112
- header: s.create_goals_header,
1113
- subText: s.micro_zero_state_description
1116
+ header: c.create_goals_header,
1117
+ subText: c.micro_zero_state_description
1114
1118
  }
1115
- ) : /* @__PURE__ */ e(ft, { sx: { justifyContent: "space-between" }, children: g.map((c, u) => /* @__PURE__ */ r(y.Fragment, { children: [
1116
- /* @__PURE__ */ e(Wt, { goal: c }),
1117
- u !== g.length - 1 && /* @__PURE__ */ e(E, {})
1118
- ] }, c.guid)) })
1119
+ ) : /* @__PURE__ */ e(At, { sx: { justifyContent: "space-between" }, children: h.map((d, l) => /* @__PURE__ */ i(y.Fragment, { children: [
1120
+ /* @__PURE__ */ e(Vt, { goal: d }),
1121
+ l !== h.length - 1 && /* @__PURE__ */ e(E, {})
1122
+ ] }, d.guid)) })
1119
1123
  }
1120
1124
  );
1121
1125
  });
1122
1126
  export {
1123
- Yn as GoalApi,
1124
- Zn as GoalStore,
1125
- $n as GoalsMicroWidget,
1126
- Hn as GoalsWidget
1127
+ qn as GoalApi,
1128
+ Jn as GoalStore,
1129
+ Un as GoalsMicroWidget,
1130
+ Xn as GoalsWidget
1127
1131
  };