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