@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
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { F as a, A as e } from "./ApiEndpoints-C5IA97i7.mjs";
|
|
2
|
-
class h {
|
|
3
|
-
fetchInstance;
|
|
4
|
-
constructor(t, n, s) {
|
|
5
|
-
this.fetchInstance = new a(t, n, void 0, s);
|
|
6
|
-
}
|
|
7
|
-
calculateHealthScore = async () => this.fetchInstance.post(`${e.HEALTH_SCORES}/calculate`).then((t) => t.health_score);
|
|
8
|
-
getAverageHealthScores = async () => this.fetchInstance.get(`${e.HEALTH_SCORES}/monthly_averages`).then((t) => t);
|
|
9
|
-
getDebtSpend = async () => this.fetchInstance.get(`${e.HEALTH_SCORES}/transactions/debt_spend`).then((t) => t);
|
|
10
|
-
getIncome = async () => this.fetchInstance.get(`${e.HEALTH_SCORES}/transactions/income`).then((t) => t);
|
|
11
|
-
getMonthlySummaries = async () => this.fetchInstance.get(`${e.HEALTH_SCORES}/monthly_summaries`).then((t) => t);
|
|
12
|
-
getHealthScoreChangeReports = async (t, n) => this.fetchInstance.get(`${e.HEALTH_SCORES}/change_report/from/${t}/to/${n}`).then((s) => s);
|
|
13
|
-
getPeerScore = async (t) => this.fetchInstance.get(`${e.HEALTH_SCORES}/average/${t}`).then((n) => n);
|
|
14
|
-
getSpendingFeeTransactions = async () => this.fetchInstance.get(`${e.HEALTH_SCORES}/transactions/spending_fee`).then((t) => t);
|
|
15
|
-
getStandardSpend = async () => this.fetchInstance.get(`${e.HEALTH_SCORES}/transactions/standard_spend`).then((t) => t);
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
h as F
|
|
19
|
-
};
|
|
@@ -1,435 +0,0 @@
|
|
|
1
|
-
import { makeAutoObservable as D, runInAction as d } from "mobx";
|
|
2
|
-
import { format as A } from "date-fns/format";
|
|
3
|
-
import { fromUnixTime as b } from "date-fns/fromUnixTime";
|
|
4
|
-
import { getUnixTime as O } from "date-fns/getUnixTime";
|
|
5
|
-
import { subMonths as x } from "date-fns/subMonths";
|
|
6
|
-
import { F as T } from "./FinstrongApi-FpmsS_sy.mjs";
|
|
7
|
-
import { jsx as c, jsxs as C } from "react/jsx-runtime";
|
|
8
|
-
import { addDays as v } from "date-fns/addDays";
|
|
9
|
-
import { addMonths as E } from "date-fns/addMonths";
|
|
10
|
-
import { addYears as M } from "date-fns/addYears";
|
|
11
|
-
import { differenceInDays as G } from "date-fns/differenceInDays";
|
|
12
|
-
import { differenceInMonths as N } from "date-fns/differenceInMonths";
|
|
13
|
-
import { differenceInWeeks as F } from "date-fns/differenceInWeeks";
|
|
14
|
-
import { startOfToday as w } from "date-fns/startOfToday";
|
|
15
|
-
import { ChevronRight as P, Check as H } from "@mxenabled/mx-icons";
|
|
16
|
-
import k from "react";
|
|
17
|
-
import L from "@mui/material/Avatar";
|
|
18
|
-
import z from "@mui/material/Box";
|
|
19
|
-
import K from "@mui/material/Divider";
|
|
20
|
-
import B from "@mui/material/List";
|
|
21
|
-
import Y from "@mui/material/ListItem";
|
|
22
|
-
import U from "@mui/material/ListItemAvatar";
|
|
23
|
-
import X from "@mui/material/ListItemButton";
|
|
24
|
-
import V from "@mui/material/ListItemText";
|
|
25
|
-
import { Text as y } from "@mxenabled/mxui";
|
|
26
|
-
import { f as I, D as _ } from "./DateFormats-CaOj_4eI.mjs";
|
|
27
|
-
import { b as W } from "./Localization-CkQ49EKr.mjs";
|
|
28
|
-
import { f as j } from "./NumberFormatting-CyrvFgfd.mjs";
|
|
29
|
-
const h = {
|
|
30
|
-
creditScore: {
|
|
31
|
-
poor: 600,
|
|
32
|
-
good: 720
|
|
33
|
-
},
|
|
34
|
-
daysOfCashOnHand: {
|
|
35
|
-
poor: 30,
|
|
36
|
-
good: 90
|
|
37
|
-
},
|
|
38
|
-
debtToIncomeRatio: {
|
|
39
|
-
poor: 40,
|
|
40
|
-
good: 30
|
|
41
|
-
},
|
|
42
|
-
emergencySavings: {
|
|
43
|
-
poor: 750,
|
|
44
|
-
good: 1e3
|
|
45
|
-
},
|
|
46
|
-
spendToIncomeRatio: {
|
|
47
|
-
poor: 110,
|
|
48
|
-
good: 100
|
|
49
|
-
}
|
|
50
|
-
}, p = {
|
|
51
|
-
GOOD: "GOOD",
|
|
52
|
-
FAIR: "FAIR",
|
|
53
|
-
OFF_TRACK: "OFF TRACK",
|
|
54
|
-
MISSING: "MISSING DATA"
|
|
55
|
-
};
|
|
56
|
-
var f = /* @__PURE__ */ ((e) => (e.Connections = "connections", e.CreditScore = "credit_score", e.DateOfBirth = "date_of_birth", e.MonthlyIncome = "monthly_income", e))(f || {});
|
|
57
|
-
const Et = ({ list: e, onClickItem: t }) => /* @__PURE__ */ c(z, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ c(
|
|
58
|
-
B,
|
|
59
|
-
{
|
|
60
|
-
sx: {
|
|
61
|
-
"& .MuiListItemSecondaryAction-root": {
|
|
62
|
-
color: "text.primary",
|
|
63
|
-
pr: 24
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
children: e.map((r, n) => /* @__PURE__ */ C(k.Fragment, { children: [
|
|
67
|
-
/* @__PURE__ */ c(Y, { secondaryAction: /* @__PURE__ */ c(P, {}), children: /* @__PURE__ */ C(X, { onClick: () => t(r.key), children: [
|
|
68
|
-
/* @__PURE__ */ c(U, { children: /* @__PURE__ */ c(
|
|
69
|
-
L,
|
|
70
|
-
{
|
|
71
|
-
sx: {
|
|
72
|
-
bgcolor: "primary.main",
|
|
73
|
-
...!r.isComplete && {
|
|
74
|
-
bgcolor: "transparent",
|
|
75
|
-
borderColor: "action.active",
|
|
76
|
-
borderStyle: "solid",
|
|
77
|
-
borderWidth: 1,
|
|
78
|
-
color: "action.active"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
children: r.icon
|
|
82
|
-
}
|
|
83
|
-
) }),
|
|
84
|
-
/* @__PURE__ */ c(
|
|
85
|
-
V,
|
|
86
|
-
{
|
|
87
|
-
primary: /* @__PURE__ */ c(y, { sx: { color: "text.secondary" }, variant: "caption", children: r.primaryText }),
|
|
88
|
-
secondary: /* @__PURE__ */ c(y, { sx: { color: "text.primary", fontWeight: 600 }, variant: "body1", children: r.secondaryText })
|
|
89
|
-
}
|
|
90
|
-
)
|
|
91
|
-
] }) }),
|
|
92
|
-
/* @__PURE__ */ c(K, { sx: { color: "divider", ml: n === e.length - 1 ? 0 : 68 } })
|
|
93
|
-
] }, r.key))
|
|
94
|
-
}
|
|
95
|
-
) }), Mt = (e) => e * (180 / Math.PI), Gt = (e, t) => [
|
|
96
|
-
{
|
|
97
|
-
description: t.vulnerable_description,
|
|
98
|
-
max: 25,
|
|
99
|
-
scoreContent: t.accordion_details_text.vulnerable,
|
|
100
|
-
status: t.vulnerable
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
description: t.building_description,
|
|
104
|
-
max: 50,
|
|
105
|
-
scoreContent: t.accordion_details_text.building,
|
|
106
|
-
status: t.building
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
description: t.stable_description,
|
|
110
|
-
max: 75,
|
|
111
|
-
scoreContent: t.accordion_details_text.stable,
|
|
112
|
-
status: t.stable
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
description: t.strong_description,
|
|
116
|
-
max: 100,
|
|
117
|
-
scoreContent: t.accordion_details_text.strong,
|
|
118
|
-
status: t.strong
|
|
119
|
-
}
|
|
120
|
-
].find((o) => e > 0 && e <= o.max) || { status: t.insufficient_data, description: "", scoreContent: "" }, g = {
|
|
121
|
-
POOR: "#8C0E0E",
|
|
122
|
-
FAIR: "#E32727",
|
|
123
|
-
GOOD: "#FFB70D",
|
|
124
|
-
VERY_GOOD: "#0EA26C",
|
|
125
|
-
EXCEPTIONAL: "#005C3D"
|
|
126
|
-
}, u = {
|
|
127
|
-
POOR: "#B21C1C",
|
|
128
|
-
FAIR: "#FF3232",
|
|
129
|
-
GOOD: "#FFC02C",
|
|
130
|
-
VERY_GOOD: "#29C76B",
|
|
131
|
-
EXCEPTIONAL: "#008A5A"
|
|
132
|
-
}, Nt = (e, t, r) => e >= 300 && e < 580 ? {
|
|
133
|
-
status: r.poor,
|
|
134
|
-
color: t ? u.POOR : g.POOR
|
|
135
|
-
} : e >= 580 && e < 670 ? {
|
|
136
|
-
status: r.fair,
|
|
137
|
-
color: t ? u.FAIR : g.FAIR
|
|
138
|
-
} : e >= 670 && e < 740 ? {
|
|
139
|
-
status: r.good,
|
|
140
|
-
color: t ? u.GOOD : g.GOOD
|
|
141
|
-
} : e >= 740 && e < 800 ? {
|
|
142
|
-
status: r.very_good,
|
|
143
|
-
color: t ? u.VERY_GOOD : g.VERY_GOOD
|
|
144
|
-
} : e >= 800 && e <= 850 ? {
|
|
145
|
-
status: r.exceptional,
|
|
146
|
-
color: t ? u.EXCEPTIONAL : g.EXCEPTIONAL
|
|
147
|
-
} : { status: r.missing_data }, wt = (e, t, r, n) => {
|
|
148
|
-
const o = e.reduce((i, l) => i + l.value, 0);
|
|
149
|
-
let a = 0;
|
|
150
|
-
const s = e.map((i) => {
|
|
151
|
-
const l = i.value / o * t, m = r + a, S = m + l;
|
|
152
|
-
return a += l, {
|
|
153
|
-
...i,
|
|
154
|
-
startAngle: m,
|
|
155
|
-
endAngle: S
|
|
156
|
-
};
|
|
157
|
-
});
|
|
158
|
-
return [s[n].startAngle, s[n].endAngle];
|
|
159
|
-
}, Pt = (e, t, r, n, o) => {
|
|
160
|
-
let a = 0, s = 0;
|
|
161
|
-
const i = Math.floor(n), l = n - i;
|
|
162
|
-
return i > r ? (a = e, s = t) : i === r && l > 0 && (a = e, s = o), [a, s];
|
|
163
|
-
}, Ht = (e, t, r = 0) => {
|
|
164
|
-
const n = e * Math.sin(t - r), o = -e * Math.cos(t - r);
|
|
165
|
-
return [n, o];
|
|
166
|
-
}, kt = ({
|
|
167
|
-
dynamicCopy: e,
|
|
168
|
-
fallbackLabel: t,
|
|
169
|
-
icon: r,
|
|
170
|
-
key: n,
|
|
171
|
-
label: o,
|
|
172
|
-
value: a
|
|
173
|
-
}) => {
|
|
174
|
-
const s = !!a, i = s ? $(n, a) : e && W(e, t) || t;
|
|
175
|
-
return {
|
|
176
|
-
icon: s ? /* @__PURE__ */ c(H, {}) : r,
|
|
177
|
-
isComplete: s,
|
|
178
|
-
key: n,
|
|
179
|
-
primaryText: o,
|
|
180
|
-
secondaryText: i
|
|
181
|
-
};
|
|
182
|
-
}, $ = (e, t) => ({
|
|
183
|
-
[f.DateOfBirth]: (n) => A(new Date(Number(n) * 1e3), "MMM d, yyyy"),
|
|
184
|
-
[f.MonthlyIncome]: (n) => j(Number(n), "0.00")
|
|
185
|
-
})[e]?.(t) ?? String(t), Lt = (e) => e !== null ? Math.round(e * 100) : null, zt = (e) => {
|
|
186
|
-
const t = new Date((/* @__PURE__ */ new Date()).getFullYear(), e - 1, 1);
|
|
187
|
-
return I(t, _.MONTH_SHORT);
|
|
188
|
-
}, Kt = (e) => {
|
|
189
|
-
const { good: t, poor: r } = h.daysOfCashOnHand;
|
|
190
|
-
return e === null ? "MISSING" : e >= t ? "GOOD" : e >= r ? "FAIR" : "OFF_TRACK";
|
|
191
|
-
}, Bt = (e) => {
|
|
192
|
-
const { good: t, poor: r } = h.emergencySavings;
|
|
193
|
-
return e === null ? "MISSING" : e >= t ? "GOOD" : e >= r ? "FAIR" : "OFF_TRACK";
|
|
194
|
-
}, Yt = (e) => {
|
|
195
|
-
const { good: t, poor: r } = h.spendToIncomeRatio;
|
|
196
|
-
return e === null ? "MISSING" : e < t ? "GOOD" : e < r ? "FAIR" : "OFF_TRACK";
|
|
197
|
-
}, Ut = (e) => {
|
|
198
|
-
const { good: t, poor: r } = h.debtToIncomeRatio;
|
|
199
|
-
return e === null ? "MISSING" : e <= t ? "GOOD" : e <= r ? "FAIR" : "OFF_TRACK";
|
|
200
|
-
}, Xt = (e) => {
|
|
201
|
-
const { good: t, poor: r } = h.creditScore;
|
|
202
|
-
return e === null ? "MISSING" : e >= t ? "GOOD" : e >= r ? "FAIR" : "OFF_TRACK";
|
|
203
|
-
}, q = (e) => e === null ? "MISSING" : e === 0 ? "GOOD" : "OFF_TRACK", Vt = (e, t) => {
|
|
204
|
-
const r = q(e), n = {
|
|
205
|
-
GOOD: t.count_good_description,
|
|
206
|
-
OFF_TRACK: t.count_off_track_description,
|
|
207
|
-
MISSING: t.count_missing_description
|
|
208
|
-
};
|
|
209
|
-
return {
|
|
210
|
-
cardState: r,
|
|
211
|
-
description: n[r],
|
|
212
|
-
title: t.count_card_title
|
|
213
|
-
};
|
|
214
|
-
}, Wt = (e) => ({
|
|
215
|
-
[p.GOOD]: { backgroundColor: "success.lighter", color: "success.dark" },
|
|
216
|
-
[p.FAIR]: { backgroundColor: "warning.lighter", color: "warning.dark" },
|
|
217
|
-
[p.OFF_TRACK]: { backgroundColor: "error.lighter", color: "error.dark" },
|
|
218
|
-
[p.MISSING]: { backgroundColor: "divider", color: "text.secondary" }
|
|
219
|
-
})[e], J = 1, Q = 1, Z = {
|
|
220
|
-
1: E,
|
|
221
|
-
2: M,
|
|
222
|
-
3: v
|
|
223
|
-
}, tt = {
|
|
224
|
-
1: N,
|
|
225
|
-
2: (e, t) => F(e, t) / 2,
|
|
226
|
-
3: F,
|
|
227
|
-
4: G
|
|
228
|
-
}, R = [
|
|
229
|
-
{ contributionPeriodIndex: 3, targetAmount: 6, upperLimit: 500 },
|
|
230
|
-
{ contributionPeriodIndex: 3, targetAmount: 3, upperLimit: 900 },
|
|
231
|
-
{ contributionPeriodIndex: 2, targetAmount: 1, upperLimit: 1e3 }
|
|
232
|
-
], jt = ({
|
|
233
|
-
contribution: e,
|
|
234
|
-
goalAmount: t,
|
|
235
|
-
goalPeriod: r,
|
|
236
|
-
targetPeriod: n,
|
|
237
|
-
totalSaved: o
|
|
238
|
-
}) => {
|
|
239
|
-
const a = t - o;
|
|
240
|
-
if (a <= 0) return 0;
|
|
241
|
-
const s = w(), i = Z[n], l = tt[e];
|
|
242
|
-
if (!i || !l) return a;
|
|
243
|
-
const m = i(s, r), S = l(m, s);
|
|
244
|
-
return Math.max(a / (S || 1), 1);
|
|
245
|
-
}, $t = (e) => !e || e <= 0 ? "0%" : e >= 1e3 ? "100%" : `${Math.round(e / 10)}%`, qt = (e) => R.find((r) => e < r.upperLimit)?.targetAmount ?? Q, Jt = (e) => R.find((n) => e < n.upperLimit)?.contributionPeriodIndex ?? J, Qt = (e, t) => [...e].sort((n, o) => n.year === o.year ? n.month - o.month : n.year - o.year).map((n) => ({
|
|
246
|
-
x: I(new Date(0, n.month - 1, 1), _.MONTH_SHORT),
|
|
247
|
-
y: n[t]
|
|
248
|
-
})), et = (e) => e.sort((t, r) => t.monthly_health_score_average.year !== r.monthly_health_score_average.year ? t.monthly_health_score_average.year - r.monthly_health_score_average.year : t.monthly_health_score_average.month - r.monthly_health_score_average.month).map((t) => ({
|
|
249
|
-
x: I(
|
|
250
|
-
new Date(0, t.monthly_health_score_average.month - 1, 1),
|
|
251
|
-
_.MONTH_SHORT
|
|
252
|
-
),
|
|
253
|
-
y: Math.round(t.monthly_health_score_average.average_health_score)
|
|
254
|
-
})), rt = (e) => e.map(({ transaction: r }) => ({
|
|
255
|
-
...r
|
|
256
|
-
})).sort((r, n) => n.date - r.date);
|
|
257
|
-
class Zt {
|
|
258
|
-
api = new T("/", "");
|
|
259
|
-
augmentedChartData = [];
|
|
260
|
-
averageHealthScores = [];
|
|
261
|
-
monthlySummaries = [];
|
|
262
|
-
incomeTransactions = [];
|
|
263
|
-
debtSpendTransactions = [];
|
|
264
|
-
spendingFeeTransactions = [];
|
|
265
|
-
spendTransactions = [];
|
|
266
|
-
globalStore;
|
|
267
|
-
healthScore = {};
|
|
268
|
-
healthScoreChange;
|
|
269
|
-
healthScoreChangeReports = [];
|
|
270
|
-
peerScore = null;
|
|
271
|
-
isSpendingInitialized = !1;
|
|
272
|
-
isIncomeInitialized = !1;
|
|
273
|
-
constructor(t) {
|
|
274
|
-
this.globalStore = t, this.api = new T(t.endpoint, t.sessionToken, t.onError), D(this);
|
|
275
|
-
}
|
|
276
|
-
setSpendingInitialized = (t) => {
|
|
277
|
-
this.isSpendingInitialized = t;
|
|
278
|
-
};
|
|
279
|
-
setIncomeInitialized = (t) => {
|
|
280
|
-
this.isIncomeInitialized = t;
|
|
281
|
-
};
|
|
282
|
-
calculateHealthScore = async (t = !0) => {
|
|
283
|
-
try {
|
|
284
|
-
const r = await this.api.calculateHealthScore();
|
|
285
|
-
let n = 0;
|
|
286
|
-
t && await this.loadHealthScoreChangeReports();
|
|
287
|
-
const o = r?.health_score || 0, a = this.healthScoreChangeReports.at(-1)?.older_health_score || 0;
|
|
288
|
-
n = o - a, d(() => {
|
|
289
|
-
this.healthScore = r, this.healthScoreChange = n;
|
|
290
|
-
});
|
|
291
|
-
} catch (r) {
|
|
292
|
-
console.error("Error calculating health score:", r);
|
|
293
|
-
}
|
|
294
|
-
};
|
|
295
|
-
loadAverageHealthScores = async () => {
|
|
296
|
-
try {
|
|
297
|
-
const t = await this.api.getAverageHealthScores();
|
|
298
|
-
d(() => {
|
|
299
|
-
this.averageHealthScores = t;
|
|
300
|
-
});
|
|
301
|
-
} catch (t) {
|
|
302
|
-
console.error("Error loading average health scores:", t);
|
|
303
|
-
}
|
|
304
|
-
};
|
|
305
|
-
loadMonthlySummaries = async () => {
|
|
306
|
-
try {
|
|
307
|
-
const t = await this.api.getMonthlySummaries();
|
|
308
|
-
d(() => {
|
|
309
|
-
this.monthlySummaries = t;
|
|
310
|
-
});
|
|
311
|
-
} catch (t) {
|
|
312
|
-
console.error("Error loading monthly summaries:", t);
|
|
313
|
-
}
|
|
314
|
-
};
|
|
315
|
-
loadDebtSpend = async () => {
|
|
316
|
-
try {
|
|
317
|
-
const t = await this.api.getDebtSpend();
|
|
318
|
-
d(() => {
|
|
319
|
-
this.debtSpendTransactions = t;
|
|
320
|
-
});
|
|
321
|
-
} catch (t) {
|
|
322
|
-
console.error("Error loading debt spend:", t);
|
|
323
|
-
}
|
|
324
|
-
};
|
|
325
|
-
loadIncome = async () => {
|
|
326
|
-
this.setIncomeInitialized(!1);
|
|
327
|
-
try {
|
|
328
|
-
const t = await this.api.getIncome();
|
|
329
|
-
d(() => {
|
|
330
|
-
this.incomeTransactions = t, this.setIncomeInitialized(!0);
|
|
331
|
-
});
|
|
332
|
-
} catch (t) {
|
|
333
|
-
console.error("Error loading income:", t);
|
|
334
|
-
}
|
|
335
|
-
};
|
|
336
|
-
loadHealthScoreChangeReports = async () => {
|
|
337
|
-
const t = O(x(/* @__PURE__ */ new Date(), 2)), r = O(/* @__PURE__ */ new Date());
|
|
338
|
-
try {
|
|
339
|
-
const n = await this.api.getHealthScoreChangeReports(
|
|
340
|
-
t,
|
|
341
|
-
r
|
|
342
|
-
);
|
|
343
|
-
d(() => {
|
|
344
|
-
this.healthScoreChangeReports = n;
|
|
345
|
-
});
|
|
346
|
-
} catch (n) {
|
|
347
|
-
console.error("Error loading health score change reports:", n);
|
|
348
|
-
}
|
|
349
|
-
};
|
|
350
|
-
loadPeerScore = async () => {
|
|
351
|
-
const t = A(b(this.globalStore.appDataStore.user.birthday), "yyyy");
|
|
352
|
-
try {
|
|
353
|
-
const r = await this.api.getPeerScore(t);
|
|
354
|
-
d(() => {
|
|
355
|
-
this.peerScore = r;
|
|
356
|
-
});
|
|
357
|
-
} catch (r) {
|
|
358
|
-
console.error("Error loading peer score:", r);
|
|
359
|
-
}
|
|
360
|
-
};
|
|
361
|
-
loadAugmentedChartData = async () => {
|
|
362
|
-
try {
|
|
363
|
-
const t = await this.api.getAverageHealthScores();
|
|
364
|
-
d(() => {
|
|
365
|
-
this.augmentedChartData = et(t);
|
|
366
|
-
});
|
|
367
|
-
} catch (t) {
|
|
368
|
-
console.error(`Error occurred while getting augmented chart data: ${t}`);
|
|
369
|
-
}
|
|
370
|
-
};
|
|
371
|
-
getSpendingFeeTransactions = async () => {
|
|
372
|
-
try {
|
|
373
|
-
const t = await this.api.getSpendingFeeTransactions(), r = rt(t);
|
|
374
|
-
d(() => {
|
|
375
|
-
this.spendingFeeTransactions = r;
|
|
376
|
-
});
|
|
377
|
-
} catch (t) {
|
|
378
|
-
console.error(`Error occurred while getting spending fee transactions: ${t}`);
|
|
379
|
-
}
|
|
380
|
-
};
|
|
381
|
-
loadSpendTransactions = async () => {
|
|
382
|
-
this.setSpendingInitialized(!1);
|
|
383
|
-
try {
|
|
384
|
-
const t = await this.api.getStandardSpend();
|
|
385
|
-
d(() => {
|
|
386
|
-
this.spendTransactions = [...t], this.setSpendingInitialized(!0);
|
|
387
|
-
});
|
|
388
|
-
} catch (t) {
|
|
389
|
-
console.error("Error loading spend transactions:", t);
|
|
390
|
-
}
|
|
391
|
-
};
|
|
392
|
-
get spendAndDebtTransactions() {
|
|
393
|
-
return [...this.spendTransactions, ...this.debtSpendTransactions];
|
|
394
|
-
}
|
|
395
|
-
get allTransactions() {
|
|
396
|
-
return {
|
|
397
|
-
income: this.incomeTransactions,
|
|
398
|
-
debtSpend: this.debtSpendTransactions,
|
|
399
|
-
spendingFee: this.spendingFeeTransactions,
|
|
400
|
-
spend: this.spendTransactions
|
|
401
|
-
};
|
|
402
|
-
}
|
|
403
|
-
handleFinstrongWidgetPrimaryCtaClick = (t) => () => {
|
|
404
|
-
};
|
|
405
|
-
}
|
|
406
|
-
export {
|
|
407
|
-
f as A,
|
|
408
|
-
u as C,
|
|
409
|
-
Zt as F,
|
|
410
|
-
Et as P,
|
|
411
|
-
Pt as a,
|
|
412
|
-
Ht as b,
|
|
413
|
-
Gt as c,
|
|
414
|
-
Nt as d,
|
|
415
|
-
g as e,
|
|
416
|
-
Qt as f,
|
|
417
|
-
wt as g,
|
|
418
|
-
Wt as h,
|
|
419
|
-
p as i,
|
|
420
|
-
Xt as j,
|
|
421
|
-
Jt as k,
|
|
422
|
-
qt as l,
|
|
423
|
-
jt as m,
|
|
424
|
-
$t as n,
|
|
425
|
-
Bt as o,
|
|
426
|
-
q as p,
|
|
427
|
-
Kt as q,
|
|
428
|
-
Mt as r,
|
|
429
|
-
Lt as s,
|
|
430
|
-
Ut as t,
|
|
431
|
-
zt as u,
|
|
432
|
-
Yt as v,
|
|
433
|
-
Vt as w,
|
|
434
|
-
kt as x
|
|
435
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import c from "bowser";
|
|
2
|
-
import { F as a, A as e } from "./ApiEndpoints-C5IA97i7.mjs";
|
|
3
|
-
class h {
|
|
4
|
-
fetchInstance;
|
|
5
|
-
constructor(t, s, n) {
|
|
6
|
-
this.fetchInstance = new a(t, s, void 0, n);
|
|
7
|
-
}
|
|
8
|
-
initializeAnalyticsSession = async (t, s) => {
|
|
9
|
-
const n = c.getParser(window.navigator.userAgent), { analytics_session: i } = await this.fetchInstance.post(e.ANALYTICS_SESSION, {
|
|
10
|
-
browser_name: n.getBrowserName() || "Unknown",
|
|
11
|
-
browser_version: n.getBrowserVersion() || "0.0.0",
|
|
12
|
-
is_first_visit: !1,
|
|
13
|
-
product_name: "Individual Widget",
|
|
14
|
-
product_version: t
|
|
15
|
-
});
|
|
16
|
-
return i ? (this.fetchInstance.post(e.ANALYTICS_FEATURE_VISITS, {
|
|
17
|
-
feature_visit: {
|
|
18
|
-
analytics_session_guid: i.guid,
|
|
19
|
-
feature_name: s || "Experiences",
|
|
20
|
-
is_first_visit: i.is_first_visit
|
|
21
|
-
}
|
|
22
|
-
}), { analytics_session: i }) : { analytics_session: null };
|
|
23
|
-
};
|
|
24
|
-
sendAnalyticEvent = async (t) => this.fetchInstance.post(e.ANALYTICS_EVENTS, t).catch((s) => {
|
|
25
|
-
throw s;
|
|
26
|
-
});
|
|
27
|
-
sendAnalyticsPageview = async (t) => this.fetchInstance.post(e.ANALYTICS_PAGEVIEWS, t).catch((s) => {
|
|
28
|
-
throw s;
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
class A {
|
|
32
|
-
fetchInstance;
|
|
33
|
-
constructor(t, s, n) {
|
|
34
|
-
this.fetchInstance = new a(t, s, void 0, n);
|
|
35
|
-
}
|
|
36
|
-
getGlobalCopy = async (t, s) => this.fetchInstance.post(`${e.LOCALIZED_CONTENT}/${t}`, { translation_key: s }).then((n) => n);
|
|
37
|
-
}
|
|
38
|
-
export {
|
|
39
|
-
h as A,
|
|
40
|
-
A as G
|
|
41
|
-
};
|
package/dist/Goal-MFBpoOIC.mjs
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { F as A, A as s } from "./ApiEndpoints-C5IA97i7.mjs";
|
|
2
|
-
class h {
|
|
3
|
-
fetchInstance;
|
|
4
|
-
constructor(n, E, e) {
|
|
5
|
-
this.fetchInstance = new A(n, E, void 0, e);
|
|
6
|
-
}
|
|
7
|
-
addGoal = async (n) => this.fetchInstance.post(s.GOALS, n).then((E) => E.goal);
|
|
8
|
-
addRetirementGoal = async (n) => this.fetchInstance.post(s.RETIREMENT_GOALS, n).then((E) => E.retirement_goal);
|
|
9
|
-
addRetirementGoalAccount = async (n) => this.fetchInstance.post(s.RETIREMENT_GOAL_ACCOUNTS, n).then((E) => E.retirement_goal_account);
|
|
10
|
-
getGoalByGuid = async (n) => this.fetchInstance.get(`${s.GOALS}/${n}`).then((E) => E.goal);
|
|
11
|
-
getGoals = async () => this.fetchInstance.get(s.GOALS).then((n) => n.goals);
|
|
12
|
-
getMonthlyCashFlowProfile = async () => this.fetchInstance.get(s.MONTHLY_CASH_FLOW_PROFILE).then((n) => n.monthly_cash_flow_profile);
|
|
13
|
-
getRetirementGoals = async () => this.fetchInstance.get(s.RETIREMENT_GOALS).then((n) => n.retirement_goals);
|
|
14
|
-
getRetirementGoalAccounts = async () => this.fetchInstance.get(s.RETIREMENT_GOAL_ACCOUNTS).then((n) => n.retirement_goal_accounts);
|
|
15
|
-
removeGoal = async (n) => this.fetchInstance.delete(`${s.GOALS}/${n}`).then((E) => E);
|
|
16
|
-
removeRetirementGoal = async (n) => this.fetchInstance.delete(`${s.RETIREMENT_GOALS}/${n}`).then((E) => E);
|
|
17
|
-
removeRetirementGoalAccount = async (n) => this.fetchInstance.delete(`${s.RETIREMENT_GOAL_ACCOUNTS}/${n}`).then((E) => E);
|
|
18
|
-
reorderGoals = async (n) => this.fetchInstance.post(`${s.GOALS}/reposition`, { goals: n }).then((E) => E.goals);
|
|
19
|
-
updateGoal = async (n) => this.fetchInstance.put(`${s.GOALS}/${n.guid}`, n).then((E) => E.goal);
|
|
20
|
-
updateMonthlyCashFlowProfile = async (n) => this.fetchInstance.put(`${s.MONTHLY_CASH_FLOW_PROFILE}`, n).then((E) => E.monthly_cash_flow_profile);
|
|
21
|
-
updateRetirementGoal = async (n) => this.fetchInstance.put(`${s.RETIREMENT_GOALS}/${n.guid}`, n).then((E) => E.retirement_goal);
|
|
22
|
-
}
|
|
23
|
-
var r = /* @__PURE__ */ ((t) => (t[t.DEBT_TRACK = 1] = "DEBT_TRACK", t[t.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", t[t.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", t[t.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", t))(r || {}), _ = /* @__PURE__ */ ((t) => (t[t.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", t[t.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", t[t.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", t[t.ACTION = 4] = "ACTION", t))(_ || {}), R = /* @__PURE__ */ ((t) => (t[t.AUTOMOBILE = 1] = "AUTOMOBILE", t[t.COLLEGE = 2] = "COLLEGE", t[t.HOUSE = 3] = "HOUSE", t[t.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", t[t.VACATION = 5] = "VACATION", t[t.ELECTRONIC = 6] = "ELECTRONIC", t[t.OTHER = 7] = "OTHER", t[t.RETIREMENT = 8] = "RETIREMENT", t[t.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", t[t.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", t[t.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", t[t.CREDIT_CARD = 12] = "CREDIT_CARD", t[t.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", t[t.LOANS = 14] = "LOANS", t))(R || {});
|
|
24
|
-
export {
|
|
25
|
-
h as G,
|
|
26
|
-
R as M,
|
|
27
|
-
r as T,
|
|
28
|
-
_ as a
|
|
29
|
-
};
|