@mx-cartographer/experiences 8.0.0-alpha.bb3 → 8.0.0-alpha.mega1
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 +178 -1
- package/dist/{Account-Bxw0_4FU.mjs → Account-CvR2-dSR.mjs} +1 -1
- package/dist/{AccountDetailsContent-CAM9y39M.mjs → AccountDetailsContent-CitErkuS.mjs} +89 -82
- package/dist/AccountDetailsHeader-BkG3MNYo.mjs +87 -0
- package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-zCMqet85.mjs} +6 -6
- package/dist/{AccountListItem-JFMZROh7.mjs → AccountListItem-DHrz8Mml.mjs} +9 -9
- package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-LgfBcYMe.mjs} +112 -75
- package/dist/Accounts-Bzy1_REQ.mjs +9 -0
- package/dist/{BeatApi-DhJpgCLz.mjs → BeatApi-De2IaqH2.mjs} +1 -1
- package/dist/{BeatStore-IBnXd4YK.mjs → BeatStore-D_NYuBSz.mjs} +1 -1
- package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-BmZXkL0C.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-B-I3kajA.mjs} +23 -21
- package/dist/CategoryStore-CA3tS1BO.mjs +186 -0
- package/dist/CategoryUtil-DUM8NuGO.mjs +78 -0
- package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-BkvlItWx.mjs} +11 -11
- package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-VmuVFHbL.mjs} +5 -5
- package/dist/{CurrencyInput-DUsQbkXb.mjs → CurrencyInput-itK0R3wV.mjs} +2 -2
- package/dist/{CurrencyText-kyC1aseI.mjs → CurrencyText-Dr0EZ7bp.mjs} +1 -1
- package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CBdcsyuk.mjs} +3 -3
- package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-Bq-aPy-5.mjs} +1 -1
- package/dist/{Dialog-CWW597AF.mjs → Dialog-BPTr3qHE.mjs} +2 -2
- package/dist/{Donut-oaQFlbit.mjs → Donut-Dmy3JTWd.mjs} +12 -12
- package/dist/Drawer-By9V-B5L.mjs +178 -0
- package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-Cglo8Mca.mjs} +3 -3
- package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
- package/dist/FinstrongStore-BIrX0Xg2.mjs +451 -0
- package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-1P19goZ7.mjs} +112 -152
- package/dist/{Help-B6dIcujh.mjs → Help-Ea3BlXQp.mjs} +2 -2
- package/dist/LineChart-KpPw1phO.mjs +580 -0
- package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-BxTkF6Tz.mjs} +10 -10
- package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-CaoQl609.mjs} +91 -88
- package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
- package/dist/MicroWidgetContainer-r6mtxRer.mjs +52 -0
- package/dist/MiniWidgetContainer-Bg02sF1Y.mjs +71 -0
- package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-rC0q7P7t.mjs} +2 -2
- package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-uzM8tCoH.mjs} +236 -231
- package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-CDX_kqHa.mjs} +7 -15
- package/dist/{NumberFormatting-Buh7u8Oi.mjs → NumberFormatting-DjTD0t3W.mjs} +9 -9
- package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +4 -4
- package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-B4ybrS0B.mjs} +4 -4
- package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-BqijW_8S.mjs} +49 -48
- package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-BhBUVm9a.mjs} +26 -29
- package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-krIRNwHK.mjs} +3 -3
- package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-DQ1b9uqq.mjs} +11 -13
- package/dist/SpendingLegend-CDO060GT.mjs +193 -0
- package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
- package/dist/TransactionApi-CjBoLleL.mjs +86 -0
- package/dist/TransactionDetails-m5PddMQn.mjs +1380 -0
- package/dist/TransactionStore-PRlwE-TF.mjs +677 -0
- package/dist/TrendsStore-yO7qYv97.mjs +186 -0
- package/dist/{User-BQUxBeZV.mjs → User-Cnlegl1N.mjs} +2 -2
- package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-DwR0v_ll.mjs} +711 -728
- package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-CoFDmQRE.mjs} +4 -4
- package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +4 -1
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +2 -1
- package/dist/accounts/index.es.js +245 -235
- package/dist/accounts/stores/AccountStore.d.ts +24 -25
- package/dist/accounts/utils/Accounts.d.ts +1 -2
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/components/AddBudgets.d.ts +2 -1
- package/dist/budgets/index.es.js +611 -580
- package/dist/budgets/store/BudgetsStore.d.ts +0 -1
- package/dist/cashflow/index.es.js +187 -180
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +2 -5
- package/dist/categories/util/CategoryUtil.d.ts +2 -3
- package/dist/common/components/Select.d.ts +4 -2
- package/dist/common/components/charts/LineChart.d.ts +12 -2
- package/dist/common/components/charts/index.d.ts +0 -3
- package/dist/common/components/charts/linechart/CustomLegend.d.ts +3 -1
- package/dist/common/components/charts/linechart/CustomMark.d.ts +4 -0
- package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
- package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
- package/dist/common/components/drawer/Drawer.d.ts +3 -0
- package/dist/common/components/drawer/Footer.d.ts +17 -0
- package/dist/common/hooks/index.d.ts +1 -0
- package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
- package/dist/common/index.es.js +397 -387
- package/dist/common/stores/AppDataStore.d.ts +1 -3
- package/dist/common/stores/GlobalCopyStore.d.ts +1 -0
- package/dist/common/stores/GlobalStore.d.ts +10 -4
- package/dist/common/stores/GlobalUiStore.d.ts +2 -3
- package/dist/common/stores/UserStore.d.ts +2 -3
- package/dist/common/types/Account.d.ts +6 -9
- package/dist/common/types/Finstrong.d.ts +54 -0
- package/dist/common/types/Global.d.ts +1 -0
- package/dist/common/types/Widgets.d.ts +1 -0
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/FinstrongCopy.d.ts +105 -2
- package/dist/common/types/localization/GoalsCopy.d.ts +1 -0
- package/dist/common/types/localization/TransactionsCopy.d.ts +1 -0
- package/dist/dashboard/index.es.js +90 -88
- package/dist/debts/index.es.js +458 -448
- package/dist/exportTransactionsToCSV-DuAaI5XA.mjs +48 -0
- package/dist/finstrong/FinstrongWidget.d.ts +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
- package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
- package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
- package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
- package/dist/finstrong/components/FinancialStrengthGraph.d.ts +7 -1
- package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
- package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
- package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +4 -1
- package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +4 -3
- package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
- package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
- package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
- package/dist/finstrong/components/ProgressBar.d.ts +15 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
- package/dist/finstrong/components/StatusChip.d.ts +5 -0
- package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +17 -0
- package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
- package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +24 -0
- package/dist/finstrong/components/shared/DialScoreCard.d.ts +7 -1
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +28 -0
- package/dist/finstrong/components/shared/LineGraph.d.ts +7 -0
- package/dist/finstrong/components/shared/TotalCard.d.ts +8 -0
- package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
- package/dist/finstrong/constants/index.d.ts +9 -0
- package/dist/finstrong/index.es.js +3190 -1073
- package/dist/finstrong/stores/FinstrongStore.d.ts +25 -2
- package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
- package/dist/goals/index.es.js +302 -291
- package/dist/goals/stores/GoalStore.d.ts +4 -17
- package/dist/help/index.es.js +13 -9
- package/dist/{hooks-D6XlXHf4.mjs → hooks-ZMp65DFz.mjs} +12 -12
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/index.es.js +108 -104
- package/dist/investments/stores/HoldingStore.d.ts +0 -1
- package/dist/merchants/index.es.js +2 -2
- package/dist/microinsights/MicroCardTemplate.d.ts +16 -0
- package/dist/microinsights/beaticons/BeatIcon.d.ts +2 -9
- package/dist/microinsights/beaticons/BeatMerchantLogo.d.ts +3 -2
- package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +2 -1
- package/dist/microinsights/cards/{MicroInsightCard.d.ts → BaseCard.d.ts} +1 -8
- package/dist/microinsights/cards/{BeatCard.d.ts → InsightCard.d.ts} +2 -2
- package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +2 -5
- package/dist/microinsights/cards/ZeroStateCard.d.ts +2 -5
- package/dist/microinsights/carousel/BeatList.d.ts +10 -0
- package/dist/microinsights/carousel/CarouselControls.d.ts +1 -3
- package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -2
- package/dist/microinsights/constants/App.d.ts +0 -1
- package/dist/microinsights/index.d.ts +4 -3
- package/dist/microinsights/index.es.js +101 -14
- package/dist/microinsights/interfaces.d.ts +0 -6
- package/dist/networth/index.es.js +197 -190
- package/dist/notifications/index.es.js +25 -25
- package/dist/notifications/stores/NotificationStore.d.ts +1 -3
- package/dist/recurringtransactions/index.es.js +395 -351
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -3
- package/dist/settings/index.es.js +307 -298
- package/dist/spending/index.es.js +299 -438
- package/dist/spending/utils/SpendingData.d.ts +2 -1
- package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
- package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
- package/dist/transactions/index.es.js +115 -112
- package/dist/transactions/stores/TransactionStore.d.ts +77 -21
- package/dist/trends/components/TrendsTable.d.ts +0 -2
- package/dist/trends/index.es.js +1025 -604
- package/dist/trends/utils/TrendsData.d.ts +1 -0
- package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-B7iXTNM8.mjs} +2 -2
- package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-CRwX-qWE.mjs} +1 -1
- package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
- package/dist/useWidgetLoadTimer-hIOioiKx.mjs +19 -0
- package/package.json +4 -4
- package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
- package/dist/Accounts-BRf_YeTf.mjs +0 -27
- package/dist/CategoryStore-yHI0hWmK.mjs +0 -174
- package/dist/CategoryUtil-pZRIYOgN.mjs +0 -80
- package/dist/Drawer-kEE73B87.mjs +0 -113
- package/dist/FinstrongStore-F2c607dj.mjs +0 -101
- package/dist/LineChart-D4GI7nVh.mjs +0 -541
- package/dist/MicroWidgetContainer-DpeqN9n3.mjs +0 -45
- package/dist/MiniWidgetContainer-D0gfmbaF.mjs +0 -56
- package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
- package/dist/TransactionDetails-oP1eSuiS.mjs +0 -1334
- package/dist/TransactionStore-ai3uII_r.mjs +0 -690
- package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
- package/dist/common/components/SkeletonLoader.d.ts +0 -7
- package/dist/exportTransactionsToCSV-7bVS7KXf.mjs +0 -47
- package/dist/finstrong/utils/Finstrong.d.ts +0 -6
- package/dist/useAriaLive-B3_pRUio.mjs +0 -35
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as g, jsx as _ } from "react/jsx-runtime";
|
|
2
2
|
import u from "react";
|
|
3
3
|
import T from "@mui/material/Button";
|
|
4
4
|
import I from "@mui/material/Card";
|
|
5
5
|
import N from "@mui/material/CardContent";
|
|
6
6
|
import O from "@mui/material/CardHeader";
|
|
7
|
-
import
|
|
8
|
-
import { AccountBalance as
|
|
9
|
-
import { Text as
|
|
10
|
-
import { l as
|
|
11
|
-
import { a as
|
|
12
|
-
import { makeAutoObservable as D, runInAction as
|
|
13
|
-
import { F as v, A as i } from "./Fetch-
|
|
7
|
+
import S from "@mui/material/Stack";
|
|
8
|
+
import { AccountBalance as w, ChevronRight as L } from "@mxenabled/mx-icons";
|
|
9
|
+
import { Text as A } from "@mxenabled/mxui";
|
|
10
|
+
import { l as b } from "./ConnectDrawer-BkvlItWx.mjs";
|
|
11
|
+
import { a as y } from "./hooks-ZMp65DFz.mjs";
|
|
12
|
+
import { makeAutoObservable as D, runInAction as c } from "mobx";
|
|
13
|
+
import { F as v, A as i } from "./Fetch-DecPFeGU.mjs";
|
|
14
14
|
import { fromUnixTime as G } from "date-fns/fromUnixTime";
|
|
15
|
-
import { addYears as
|
|
16
|
-
import { getUnixTime as
|
|
17
|
-
import { b as
|
|
18
|
-
import { a as
|
|
19
|
-
import { f as B,
|
|
20
|
-
var a = /* @__PURE__ */ ((e) => (e[e.DEBT_TRACK = 1] = "DEBT_TRACK", e[e.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", e[e.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", e[e.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", e))(a || {}), $ = /* @__PURE__ */ ((e) => (e[e.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", e[e.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", e[e.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", e[e.ACTION = 4] = "ACTION", e))($ || {}),
|
|
15
|
+
import { addYears as x } from "date-fns/addYears";
|
|
16
|
+
import { getUnixTime as K } from "date-fns/getUnixTime";
|
|
17
|
+
import { b as E } from "./Localization-2MODESHW.mjs";
|
|
18
|
+
import { a as F } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
19
|
+
import { f as B, a as U } from "./Dialog-BPTr3qHE.mjs";
|
|
20
|
+
var a = /* @__PURE__ */ ((e) => (e[e.DEBT_TRACK = 1] = "DEBT_TRACK", e[e.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", e[e.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", e[e.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", e))(a || {}), $ = /* @__PURE__ */ ((e) => (e[e.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", e[e.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", e[e.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", e[e.ACTION = 4] = "ACTION", e))($ || {}), l = /* @__PURE__ */ ((e) => (e[e.AUTOMOBILE = 1] = "AUTOMOBILE", e[e.COLLEGE = 2] = "COLLEGE", e[e.HOUSE = 3] = "HOUSE", e[e.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", e[e.VACATION = 5] = "VACATION", e[e.ELECTRONIC = 6] = "ELECTRONIC", e[e.OTHER = 7] = "OTHER", e[e.RETIREMENT = 8] = "RETIREMENT", e[e.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", e[e.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", e[e.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", e[e.CREDIT_CARD = 12] = "CREDIT_CARD", e[e.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", e[e.LOANS = 14] = "LOANS", e))(l || {});
|
|
21
21
|
const at = ({ description: e, label: t, title: o }) => {
|
|
22
|
-
const { config: r } =
|
|
23
|
-
return /* @__PURE__ */
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
/* @__PURE__ */
|
|
22
|
+
const { config: r } = y(), [n, s] = u.useState(!1);
|
|
23
|
+
return /* @__PURE__ */ g(u.Fragment, { children: [
|
|
24
|
+
/* @__PURE__ */ g(I, { sx: { m: 24 }, children: [
|
|
25
|
+
/* @__PURE__ */ _(
|
|
26
26
|
O,
|
|
27
27
|
{
|
|
28
|
-
avatar: /* @__PURE__ */
|
|
28
|
+
avatar: /* @__PURE__ */ _(w, {}),
|
|
29
29
|
sx: { ".MuiCardHeader-avatar": { mr: 8 } },
|
|
30
|
-
title: /* @__PURE__ */
|
|
30
|
+
title: /* @__PURE__ */ _(A, { bold: !0, variant: "Body", children: o })
|
|
31
31
|
}
|
|
32
32
|
),
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
r.show_connections_widget_in_master && /* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ _(N, { sx: { ":last-child": { pb: 4 }, ml: 28, py: 0 }, children: /* @__PURE__ */ g(S, { alignItems: "flex-start", spacing: 2, children: [
|
|
34
|
+
/* @__PURE__ */ _(A, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: e }),
|
|
35
|
+
r.show_connections_widget_in_master && /* @__PURE__ */ _(
|
|
36
36
|
T,
|
|
37
37
|
{
|
|
38
|
-
endIcon: /* @__PURE__ */
|
|
38
|
+
endIcon: /* @__PURE__ */ _(L, {}),
|
|
39
39
|
onClick: () => s(!0),
|
|
40
40
|
sx: {
|
|
41
41
|
pl: 0,
|
|
@@ -49,8 +49,8 @@ const at = ({ description: e, label: t, title: o }) => {
|
|
|
49
49
|
)
|
|
50
50
|
] }) })
|
|
51
51
|
] }),
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
|
|
52
|
+
/* @__PURE__ */ _(
|
|
53
|
+
b,
|
|
54
54
|
{
|
|
55
55
|
onClose: () => s(!1),
|
|
56
56
|
showConnectWidget: n,
|
|
@@ -59,7 +59,7 @@ const at = ({ description: e, label: t, title: o }) => {
|
|
|
59
59
|
)
|
|
60
60
|
] });
|
|
61
61
|
};
|
|
62
|
-
class
|
|
62
|
+
class R {
|
|
63
63
|
fetchInstance;
|
|
64
64
|
constructor(t, o, r) {
|
|
65
65
|
this.fetchInstance = new v(t, o, void 0, r);
|
|
@@ -90,12 +90,12 @@ function it(e, t) {
|
|
|
90
90
|
style: "percent",
|
|
91
91
|
minimumFractionDigits: 0,
|
|
92
92
|
maximumFractionDigits: 0
|
|
93
|
-
},
|
|
93
|
+
}, d = t.is_complete ? t.completed_at : t.projected_to_complete_at, m = d ? G(d) : /* @__PURE__ */ new Date(), f = E(
|
|
94
94
|
e.goal_percentage,
|
|
95
|
-
|
|
96
|
-
), p =
|
|
95
|
+
F(r, h)
|
|
96
|
+
), p = E(
|
|
97
97
|
t.is_complete ? e.completed_label : e.goal_projection,
|
|
98
|
-
B(
|
|
98
|
+
B(m, U.MONTH_SHORT_YEAR)
|
|
99
99
|
);
|
|
100
100
|
return {
|
|
101
101
|
backgroundColor: n,
|
|
@@ -116,27 +116,27 @@ function st(e) {
|
|
|
116
116
|
{
|
|
117
117
|
icon: "ecg_heart",
|
|
118
118
|
label: e.saving_goal_emergency_fund,
|
|
119
|
-
metaType:
|
|
119
|
+
metaType: l.EMERGENCY_FUND
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
122
|
icon: "directions_car",
|
|
123
123
|
label: e.saving_gaol_automobile,
|
|
124
|
-
metaType:
|
|
124
|
+
metaType: l.AUTOMOBILE
|
|
125
125
|
},
|
|
126
|
-
{ icon: "school", label: e.saving_goal_college, metaType:
|
|
127
|
-
{ icon: "home", label: e.saving_goal_home, metaType:
|
|
126
|
+
{ icon: "school", label: e.saving_goal_college, metaType: l.COLLEGE },
|
|
127
|
+
{ icon: "home", label: e.saving_goal_home, metaType: l.HOUSE },
|
|
128
128
|
{
|
|
129
129
|
icon: "mountain_flag",
|
|
130
130
|
label: e.saving_goal_recreational,
|
|
131
|
-
metaType:
|
|
131
|
+
metaType: l.RECREATIONAL_VEHICLE
|
|
132
132
|
},
|
|
133
|
-
{ icon: "airplane_ticket", label: e.saving_goal_vacation, metaType:
|
|
133
|
+
{ icon: "airplane_ticket", label: e.saving_goal_vacation, metaType: l.VACATION },
|
|
134
134
|
{
|
|
135
135
|
icon: "desktop_windows",
|
|
136
136
|
label: e.saving_goal_electronic,
|
|
137
|
-
metaType:
|
|
137
|
+
metaType: l.ELECTRONIC
|
|
138
138
|
},
|
|
139
|
-
{ icon: "payments", label: e.saving_goal_other, metaType:
|
|
139
|
+
{ icon: "payments", label: e.saving_goal_other, metaType: l.OTHER }
|
|
140
140
|
],
|
|
141
141
|
type: a.SAVINGS_TRACK
|
|
142
142
|
},
|
|
@@ -161,48 +161,31 @@ function st(e) {
|
|
|
161
161
|
const ct = (e, t) => {
|
|
162
162
|
switch (e) {
|
|
163
163
|
case a.DEBT_TRACK:
|
|
164
|
-
return
|
|
164
|
+
return E(t.zero_state_ongoing, "debt");
|
|
165
165
|
case a.SAVINGS_TRACK:
|
|
166
|
-
return
|
|
166
|
+
return E(t.zero_state_ongoing, "saving");
|
|
167
167
|
default:
|
|
168
|
-
return
|
|
168
|
+
return E(t.zero_state_ongoing, "retirement");
|
|
169
169
|
}
|
|
170
|
-
},
|
|
171
|
-
const o = G(t), r =
|
|
172
|
-
return
|
|
170
|
+
}, C = (e, t) => {
|
|
171
|
+
const o = G(t), r = x(o, e);
|
|
172
|
+
return K(r);
|
|
173
173
|
};
|
|
174
174
|
class lt {
|
|
175
175
|
globalStore;
|
|
176
|
-
api = new
|
|
176
|
+
api = new R("/", "");
|
|
177
|
+
alert = "";
|
|
177
178
|
goals = [];
|
|
178
|
-
goalsLoaded = !1;
|
|
179
|
-
retirementGoals = [];
|
|
180
|
-
retirementGoalsLoaded = !1;
|
|
181
179
|
retirementGoalAccounts = [];
|
|
182
|
-
retirementGoalAccountsLoaded = !1;
|
|
183
|
-
monthlyCashFlowProfile = void 0;
|
|
184
|
-
monthlyCashFlowProfileLoaded = !1;
|
|
185
180
|
newRetirementGoalAccounts = [];
|
|
186
|
-
alert = "";
|
|
187
181
|
selectedGoal = void 0;
|
|
182
|
+
monthlyCashFlowProfile = void 0;
|
|
183
|
+
goalsLoaded = !1;
|
|
188
184
|
constructor(t) {
|
|
189
|
-
this.globalStore = t, this.api = new
|
|
190
|
-
}
|
|
191
|
-
get allGoals() {
|
|
192
|
-
const t = this.globalStore.copyStore.copy.goals, o = this.globalStore.userStore.user.birthday;
|
|
193
|
-
return [
|
|
194
|
-
...this.goals,
|
|
195
|
-
...this.retirementGoals.map((r) => ({
|
|
196
|
-
...r,
|
|
197
|
-
amount: r.target_amount,
|
|
198
|
-
name: t.retirement,
|
|
199
|
-
track_type: a.RETIREMENT_TRACK,
|
|
200
|
-
projected_to_complete_at: r.retirement_age && o ? R(r.retirement_age, o) : void 0
|
|
201
|
-
}))
|
|
202
|
-
];
|
|
185
|
+
this.globalStore = t, this.api = new R(t.endpoint, t.sessionToken, t.onError), D(this);
|
|
203
186
|
}
|
|
204
187
|
get orderedGoals() {
|
|
205
|
-
return this.
|
|
188
|
+
return this.goals.slice().sort((t, o) => t.position - o.position);
|
|
206
189
|
}
|
|
207
190
|
get debtGoals() {
|
|
208
191
|
return this.orderedGoals.filter((t) => t.track_type === a.DEBT_TRACK);
|
|
@@ -214,7 +197,7 @@ class lt {
|
|
|
214
197
|
return this.orderedGoals.filter((t) => t.track_type === a.SAVINGS_TRACK);
|
|
215
198
|
}
|
|
216
199
|
get ongoingGoalsForMicroWidget() {
|
|
217
|
-
const t = this.
|
|
200
|
+
const t = this.goals.filter(
|
|
218
201
|
(r) => !r.is_complete && r.track_type !== a.EMERGENCY_FUND_TRACK && r.track_type !== null
|
|
219
202
|
), o = [
|
|
220
203
|
a.SAVINGS_TRACK,
|
|
@@ -226,62 +209,12 @@ class lt {
|
|
|
226
209
|
return s - h;
|
|
227
210
|
}).slice(0, 3);
|
|
228
211
|
}
|
|
229
|
-
setGoals = (t) => {
|
|
230
|
-
this.goals = t, this.goalsLoaded = !0;
|
|
231
|
-
};
|
|
232
|
-
setRetirementGoals = (t) => {
|
|
233
|
-
this.retirementGoals = t, this.retirementGoalsLoaded = !0;
|
|
234
|
-
};
|
|
235
|
-
setRetirementGoalAccounts = (t) => {
|
|
236
|
-
this.retirementGoalAccounts = t, this.retirementGoalAccountsLoaded = !0;
|
|
237
|
-
};
|
|
238
|
-
setMonthlyCashFlowProfile = (t) => {
|
|
239
|
-
this.monthlyCashFlowProfile = t, this.monthlyCashFlowProfileLoaded = !0;
|
|
240
|
-
};
|
|
241
|
-
loadGoalData = async () => {
|
|
242
|
-
await Promise.all([
|
|
243
|
-
this.loadGoals(),
|
|
244
|
-
this.loadRetirementGoals(),
|
|
245
|
-
this.loadRetirementGoalAccounts(),
|
|
246
|
-
this.loadMonthlyCashFlowProfile()
|
|
247
|
-
]);
|
|
248
|
-
};
|
|
249
|
-
loadGoals = async () => {
|
|
250
|
-
try {
|
|
251
|
-
const t = await this.api.getGoals();
|
|
252
|
-
this.setGoals(t);
|
|
253
|
-
} catch (t) {
|
|
254
|
-
console.error(`Error occured while getting goals: ${t}`);
|
|
255
|
-
}
|
|
256
|
-
};
|
|
257
|
-
loadRetirementGoals = async () => {
|
|
258
|
-
try {
|
|
259
|
-
const t = await this.api.getRetirementGoals();
|
|
260
|
-
this.setRetirementGoals(t);
|
|
261
|
-
} catch (t) {
|
|
262
|
-
console.error(`Error occurred while loading retirement goals: ${t}`);
|
|
263
|
-
}
|
|
264
|
-
};
|
|
265
|
-
loadRetirementGoalAccounts = async () => {
|
|
266
|
-
try {
|
|
267
|
-
const t = await this.api.getRetirementGoalAccounts();
|
|
268
|
-
this.setRetirementGoalAccounts(t);
|
|
269
|
-
} catch (t) {
|
|
270
|
-
console.error(`Error occurred while loading retirement goal accounts: ${t}`);
|
|
271
|
-
}
|
|
272
|
-
};
|
|
273
|
-
loadMonthlyCashFlowProfile = async () => {
|
|
274
|
-
try {
|
|
275
|
-
const t = await this.api.getMonthlyCashFlowProfile();
|
|
276
|
-
this.setMonthlyCashFlowProfile(t);
|
|
277
|
-
} catch (t) {
|
|
278
|
-
console.error(`Error occurred while loading monthly cash flow profile: ${t}`);
|
|
279
|
-
}
|
|
280
|
-
};
|
|
281
212
|
addGoal = async (t) => {
|
|
282
213
|
try {
|
|
283
214
|
const o = await this.api.addGoal(t);
|
|
284
|
-
|
|
215
|
+
c(() => {
|
|
216
|
+
this.goals = [...this.goals, o];
|
|
217
|
+
});
|
|
285
218
|
} catch (o) {
|
|
286
219
|
console.error(`Error occurred while adding goal: ${o}`);
|
|
287
220
|
}
|
|
@@ -291,22 +224,24 @@ class lt {
|
|
|
291
224
|
try {
|
|
292
225
|
const r = await this.api.addRetirementGoal(t), n = [], s = this.globalStore.userStore.user.birthday;
|
|
293
226
|
for (const h of this.newRetirementGoalAccounts) {
|
|
294
|
-
const
|
|
227
|
+
const d = await this.api.addRetirementGoalAccount({
|
|
295
228
|
...h,
|
|
296
229
|
retirement_goal_guid: r.guid
|
|
297
230
|
});
|
|
298
|
-
n.push(
|
|
231
|
+
n.push(d);
|
|
299
232
|
}
|
|
300
|
-
this.setNewRetirementGoalAccounts([]),
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
233
|
+
this.setNewRetirementGoalAccounts([]), c(() => {
|
|
234
|
+
this.goals = [
|
|
235
|
+
...this.goals,
|
|
236
|
+
{
|
|
237
|
+
...r,
|
|
238
|
+
amount: r.target_amount,
|
|
239
|
+
name: o.retirement,
|
|
240
|
+
track_type: a.RETIREMENT_TRACK,
|
|
241
|
+
projected_to_complete_at: r.retirement_age && s ? C(r.retirement_age, s) : void 0
|
|
242
|
+
}
|
|
243
|
+
], this.retirementGoalAccounts = [...this.retirementGoalAccounts, ...n];
|
|
244
|
+
});
|
|
310
245
|
} catch (r) {
|
|
311
246
|
console.error(`Error occurred while adding retirement goal: ${r}`);
|
|
312
247
|
}
|
|
@@ -314,18 +249,39 @@ class lt {
|
|
|
314
249
|
addRetirementGoalAccount = async (t) => {
|
|
315
250
|
try {
|
|
316
251
|
const o = await this.api.addRetirementGoalAccount(t);
|
|
317
|
-
|
|
252
|
+
c(() => {
|
|
318
253
|
this.retirementGoalAccounts = [...this.retirementGoalAccounts, o];
|
|
319
254
|
});
|
|
320
255
|
} catch (o) {
|
|
321
256
|
console.error(`Error occurred while adding retirement goal account: ${o}`);
|
|
322
257
|
}
|
|
323
258
|
};
|
|
259
|
+
loadGoals = async () => {
|
|
260
|
+
const t = this.globalStore.copyStore.copy.goals;
|
|
261
|
+
try {
|
|
262
|
+
const o = await this.api.getGoals(), r = await this.api.getRetirementGoals(), n = await this.api.getRetirementGoalAccounts(), s = await this.api.getMonthlyCashFlowProfile(), h = this.globalStore.userStore.user.birthday, d = [
|
|
263
|
+
...o,
|
|
264
|
+
...r.map((m) => ({
|
|
265
|
+
...m,
|
|
266
|
+
amount: m.target_amount,
|
|
267
|
+
name: t.retirement,
|
|
268
|
+
track_type: a.RETIREMENT_TRACK,
|
|
269
|
+
projected_to_complete_at: m.retirement_age && h ? C(m.retirement_age, h) : void 0
|
|
270
|
+
}))
|
|
271
|
+
];
|
|
272
|
+
c(() => {
|
|
273
|
+
this.goals = d, this.retirementGoalAccounts = n, this.monthlyCashFlowProfile = s, this.goalsLoaded = !0;
|
|
274
|
+
});
|
|
275
|
+
} catch (o) {
|
|
276
|
+
console.error(`Error occured while getting goals: ${o}`);
|
|
277
|
+
}
|
|
278
|
+
};
|
|
324
279
|
deleteGoal = async (t) => {
|
|
325
280
|
try {
|
|
326
|
-
await this.api.removeGoal(t)
|
|
327
|
-
|
|
328
|
-
|
|
281
|
+
await this.api.removeGoal(t), c(() => {
|
|
282
|
+
const o = this.goals.findIndex((r) => r.guid === t);
|
|
283
|
+
o >= 0 && this.goals.splice(o, 1);
|
|
284
|
+
});
|
|
329
285
|
} catch (o) {
|
|
330
286
|
console.error(`Error occured while deleting goal: ${o}`);
|
|
331
287
|
}
|
|
@@ -333,22 +289,24 @@ class lt {
|
|
|
333
289
|
deleteRetirementGoal = async (t) => {
|
|
334
290
|
try {
|
|
335
291
|
const o = this.retirementGoalAccounts.filter(
|
|
336
|
-
(
|
|
292
|
+
(r) => r.retirement_goal_guid === t.guid
|
|
337
293
|
);
|
|
338
|
-
for (const
|
|
339
|
-
await this.deleteRetirementGoalAccount(
|
|
340
|
-
await this.api.removeRetirementGoal(t.guid)
|
|
341
|
-
|
|
342
|
-
|
|
294
|
+
for (const r of o)
|
|
295
|
+
await this.deleteRetirementGoalAccount(r.guid);
|
|
296
|
+
await this.api.removeRetirementGoal(t.guid), c(() => {
|
|
297
|
+
const r = this.goals.findIndex((n) => n.guid === t.guid);
|
|
298
|
+
r >= 0 && this.goals.splice(r, 1);
|
|
299
|
+
});
|
|
343
300
|
} catch (o) {
|
|
344
301
|
console.error(`Error deleting retirement goal: ${o}`);
|
|
345
302
|
}
|
|
346
303
|
};
|
|
347
304
|
deleteRetirementGoalAccount = async (t) => {
|
|
348
305
|
try {
|
|
349
|
-
await this.api.removeRetirementGoalAccount(t)
|
|
350
|
-
|
|
351
|
-
|
|
306
|
+
await this.api.removeRetirementGoalAccount(t), c(() => {
|
|
307
|
+
const o = this.retirementGoalAccounts.findIndex((r) => r.guid === t);
|
|
308
|
+
o >= 0 && this.retirementGoalAccounts.splice(o, 1);
|
|
309
|
+
});
|
|
352
310
|
} catch (o) {
|
|
353
311
|
console.error(`Error deleting retirement goal account: ${o}`);
|
|
354
312
|
}
|
|
@@ -356,7 +314,7 @@ class lt {
|
|
|
356
314
|
reorderGoals = async (t) => {
|
|
357
315
|
try {
|
|
358
316
|
const o = await this.api.reorderGoals(t);
|
|
359
|
-
|
|
317
|
+
c(() => {
|
|
360
318
|
for (const r of o) {
|
|
361
319
|
const n = this.goals.findIndex((s) => s.guid === r.guid);
|
|
362
320
|
n >= 0 && (this.goals[n].position = r.position);
|
|
@@ -374,7 +332,7 @@ class lt {
|
|
|
374
332
|
updateGoal = async (t) => {
|
|
375
333
|
try {
|
|
376
334
|
const o = await this.api.updateGoal(t);
|
|
377
|
-
|
|
335
|
+
c(() => {
|
|
378
336
|
const r = this.goals.findIndex((n) => n.guid === t.guid);
|
|
379
337
|
r >= 0 && (this.goals[r] = o), this.selectedGoal?.guid === t.guid && this.setSelectedGoal(o);
|
|
380
338
|
});
|
|
@@ -385,7 +343,9 @@ class lt {
|
|
|
385
343
|
updateMonthlyCashFlowProfile = async (t) => {
|
|
386
344
|
try {
|
|
387
345
|
const o = await this.api.updateMonthlyCashFlowProfile(t);
|
|
388
|
-
|
|
346
|
+
c(() => {
|
|
347
|
+
this.monthlyCashFlowProfile = o;
|
|
348
|
+
});
|
|
389
349
|
} catch (o) {
|
|
390
350
|
console.error(`Error occurred while updating monthly Cash Flow profile: ${o}`);
|
|
391
351
|
}
|
|
@@ -394,11 +354,11 @@ class lt {
|
|
|
394
354
|
export {
|
|
395
355
|
at as C,
|
|
396
356
|
$ as G,
|
|
397
|
-
|
|
357
|
+
l as M,
|
|
398
358
|
a as T,
|
|
399
359
|
ct as a,
|
|
400
360
|
st as b,
|
|
401
|
-
|
|
361
|
+
R as c,
|
|
402
362
|
lt as d,
|
|
403
363
|
it as g
|
|
404
364
|
};
|
|
@@ -13,7 +13,7 @@ import E from "@mui/material/Stack";
|
|
|
13
13
|
import { H3 as y, P as H, Icon as X, Text as T, H2 as _t, InstitutionLogo as bt } from "@mxenabled/mxui";
|
|
14
14
|
import { ExpandMore as ot, ChevronRight as wt } from "@mxenabled/mx-icons";
|
|
15
15
|
import xt from "@mui/material/Breadcrumbs";
|
|
16
|
-
import { u as V, A as tt, d as ft,
|
|
16
|
+
import { u as V, A as tt, d as ft, o as St, b as It, a as Tt } from "./hooks-ZMp65DFz.mjs";
|
|
17
17
|
import { useTheme as Z } from "@mui/material/styles";
|
|
18
18
|
import { b as s } from "./Localization-2MODESHW.mjs";
|
|
19
19
|
import { E as Et, a as Ct, P as At } from "./Help-DhcC-C05.mjs";
|
|
@@ -21,7 +21,7 @@ import { observer as rt } from "mobx-react-lite";
|
|
|
21
21
|
import at from "@mui/material/Alert";
|
|
22
22
|
import ct from "@mui/material/Snackbar";
|
|
23
23
|
import lt from "@mui/material/TextField";
|
|
24
|
-
import { D as U } from "./Drawer-
|
|
24
|
+
import { D as U } from "./Drawer-By9V-B5L.mjs";
|
|
25
25
|
import { L as dt } from "./Loader-DUaFpDGv.mjs";
|
|
26
26
|
import Ot from "@mui/material/ListItemAvatar";
|
|
27
27
|
import Nt from "@mui/material/ListItem";
|