@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
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import c from "react";
|
|
3
|
+
import { observer as g } from "mobx-react-lite";
|
|
4
|
+
import { Stack as i, Box as f, Button as u, useTheme as y } from "@mui/material";
|
|
5
|
+
import { Icon as C, Text as l } from "@mxenabled/mxui";
|
|
6
|
+
import { G as b } from "./hooks-BaO_gOI6.mjs";
|
|
7
|
+
const m = c.forwardRef(
|
|
8
|
+
(r, o) => {
|
|
9
|
+
const n = y();
|
|
10
|
+
return /* @__PURE__ */ e(
|
|
11
|
+
"svg",
|
|
12
|
+
{
|
|
13
|
+
fill: "none",
|
|
14
|
+
height: "60",
|
|
15
|
+
ref: o,
|
|
16
|
+
viewBox: "0 0 72 60",
|
|
17
|
+
width: "72",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
...r,
|
|
20
|
+
children: /* @__PURE__ */ e(
|
|
21
|
+
"path",
|
|
22
|
+
{
|
|
23
|
+
d: "M28.8288 1.43265C34.4433 4.02036 36.9443 13.1615 44.4378 18.7551C53.8387 25.7725 64.7205 8.05287 70.6592 18.2364C80.9926 35.9558 28.2828 74.5237 25.8072 54.2678C25.1894 49.213 34.1353 42.7165 27.308 38.2971C18.7065 32.7294 9.89746 43.1722 4.34888 37.9733C-8.70438 25.7428 10.0261 -7.2333 28.8288 1.43265Z",
|
|
24
|
+
fill: n.palette.primary[100] ?? "#DFE8FD"
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
m.displayName = "BlobSVG";
|
|
32
|
+
const w = ({
|
|
33
|
+
heading: r,
|
|
34
|
+
message: o,
|
|
35
|
+
iconName: n = "error",
|
|
36
|
+
buttonText: d,
|
|
37
|
+
onClick: s
|
|
38
|
+
}) => {
|
|
39
|
+
const t = c.useContext(b)?.globalStore.copyStore.copy.common, h = r ?? (t?.error_heading ? `${t.error_heading}!` : "Oops!"), x = o ?? t?.error_message ?? "Something went wrong. Please try again.", p = d ?? t?.refresh_button ?? "Refresh";
|
|
40
|
+
return /* @__PURE__ */ e(i, { alignItems: "center", justifyContent: "center", style: { height: "100dvh" }, children: /* @__PURE__ */ a(
|
|
41
|
+
i,
|
|
42
|
+
{
|
|
43
|
+
sx: {
|
|
44
|
+
display: "flex",
|
|
45
|
+
padding: "48px 16px",
|
|
46
|
+
flexDirection: "column",
|
|
47
|
+
alignItems: "center"
|
|
48
|
+
},
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ a(
|
|
51
|
+
i,
|
|
52
|
+
{
|
|
53
|
+
sx: {
|
|
54
|
+
alignItems: "center",
|
|
55
|
+
justifyContent: "center"
|
|
56
|
+
},
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ e(
|
|
59
|
+
f,
|
|
60
|
+
{
|
|
61
|
+
sx: {
|
|
62
|
+
position: "absolute",
|
|
63
|
+
zIndex: 0
|
|
64
|
+
},
|
|
65
|
+
children: /* @__PURE__ */ e(m, {})
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
/* @__PURE__ */ e(C, { color: "primary", name: n, size: 48, sx: { zIndex: 1 } })
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ e(l, { bold: !0, color: "text.primary", mt: "24px", variant: "h2", children: h }),
|
|
73
|
+
/* @__PURE__ */ e(l, { color: "text.secondary", variant: "subtitle1", children: x }),
|
|
74
|
+
s && /* @__PURE__ */ e(u, { color: "primary", onClick: () => {
|
|
75
|
+
s?.();
|
|
76
|
+
}, sx: { mt: 48 }, variant: "contained", children: p })
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
) });
|
|
80
|
+
}, G = g(w);
|
|
81
|
+
export {
|
|
82
|
+
m as B,
|
|
83
|
+
G as E
|
|
84
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import o from "react";
|
|
3
|
+
import { H3 as s } from "@mxenabled/mxui";
|
|
4
|
+
const n = {
|
|
5
|
+
text: "Oops! Something went wrong."
|
|
6
|
+
};
|
|
7
|
+
class h extends o.Component {
|
|
8
|
+
state = {
|
|
9
|
+
hasError: !1
|
|
10
|
+
};
|
|
11
|
+
componentDidCatch(r, t) {
|
|
12
|
+
console.error("Uncaught error:", r, t);
|
|
13
|
+
}
|
|
14
|
+
static getDerivedStateFromError() {
|
|
15
|
+
return { hasError: !0 };
|
|
16
|
+
}
|
|
17
|
+
render() {
|
|
18
|
+
return this.state.hasError ? /* @__PURE__ */ e(s, { sx: { pt: 24 }, children: n.text }) : this.props.children;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
h as E
|
|
23
|
+
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { observer as c } from "mobx-react-lite";
|
|
3
3
|
import { Icon as i } from "@mxenabled/mxui";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { e as p } from "./TransactionUtils-BphBJBbU.mjs";
|
|
5
|
+
import { O as m } from "./EmbeddedCard-BNl3quCs.mjs";
|
|
6
|
+
import { g as x, h as _, u as C } from "./hooks-BaO_gOI6.mjs";
|
|
6
7
|
import { R as l } from "./ResponsiveButton-BNsV08Ud.mjs";
|
|
7
8
|
const v = ({ filter: t }) => {
|
|
8
9
|
const { onEvent: r } = x(), { tags: e, sortedTransactions: s } = _(), { transactions: n } = C(), a = () => {
|
|
9
|
-
r(
|
|
10
|
+
r(m.ON_TRANSACTION_EXPORT_CSV_CLICK), p(t ? s.filter(t) : s, e);
|
|
10
11
|
};
|
|
11
12
|
return /* @__PURE__ */ o("div", { className: "mx-txn-export-csv-action", children: /* @__PURE__ */ o(
|
|
12
13
|
l,
|
|
@@ -17,7 +18,7 @@ const v = ({ filter: t }) => {
|
|
|
17
18
|
tooltipText: n.export_csv_title
|
|
18
19
|
}
|
|
19
20
|
) });
|
|
20
|
-
},
|
|
21
|
+
}, b = c(v);
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
+
b as E
|
|
23
24
|
};
|
|
@@ -15,7 +15,7 @@ import y from "@mui/material/ListItem";
|
|
|
15
15
|
import _ from "@mui/material/ListItemButton";
|
|
16
16
|
import H from "@mui/material/ListItemIcon";
|
|
17
17
|
import v from "@mui/material/ListItemText";
|
|
18
|
-
import { b as M, u as z, d as L } from "./hooks-
|
|
18
|
+
import { b as M, u as z, d as L } from "./hooks-BaO_gOI6.mjs";
|
|
19
19
|
const N = I(
|
|
20
20
|
({ allowedAccountTypes: a }) => {
|
|
21
21
|
const { accountFilterMap: s, updateAccountFilterMap: u } = M(), { accounts: g, common: x } = z(), { account_filter: c } = x, { accountsByTypeMap: n } = L(), k = B.useMemo(
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import c from "bowser";
|
|
2
|
+
import { A as a } from "./ApiEndpoints-DXwIYNUV.mjs";
|
|
3
|
+
import { g as h } from "./Localization-DnoVyBNK.mjs";
|
|
4
|
+
class o {
|
|
5
|
+
endpoint = "/";
|
|
6
|
+
headers;
|
|
7
|
+
onError;
|
|
8
|
+
constructor(e, n, t, r) {
|
|
9
|
+
this.endpoint = e;
|
|
10
|
+
const s = {
|
|
11
|
+
Accept: "application/json",
|
|
12
|
+
"Accept-Language": h(),
|
|
13
|
+
"Content-Type": "application/json",
|
|
14
|
+
"MD-Session-Token": n
|
|
15
|
+
};
|
|
16
|
+
this.headers = t || s, this.onError = r;
|
|
17
|
+
}
|
|
18
|
+
get = async (e) => {
|
|
19
|
+
const n = {
|
|
20
|
+
method: "GET",
|
|
21
|
+
headers: this.headers
|
|
22
|
+
};
|
|
23
|
+
return fetch(`${this.endpoint}${e}`, n).then((t) => {
|
|
24
|
+
if (t.ok)
|
|
25
|
+
return t.text();
|
|
26
|
+
throw t;
|
|
27
|
+
}).then((t) => t.length ? JSON.parse(t) : {}).then((t) => t).catch((t) => {
|
|
28
|
+
throw this.onError?.(t, void 0, "ApiGetRequestError"), t;
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
post = async (e, n) => {
|
|
32
|
+
const t = n ? JSON.stringify(n) : void 0, r = {
|
|
33
|
+
method: "POST",
|
|
34
|
+
headers: this.headers,
|
|
35
|
+
body: t
|
|
36
|
+
};
|
|
37
|
+
return fetch(`${this.endpoint}${e}`, r).then((s) => {
|
|
38
|
+
if (!s.ok)
|
|
39
|
+
throw s;
|
|
40
|
+
return s.text();
|
|
41
|
+
}).then((s) => s.length ? JSON.parse(s) : {}).then((s) => s).catch((s) => {
|
|
42
|
+
throw s;
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
put = async (e, n) => {
|
|
46
|
+
const t = JSON.stringify(n), r = {
|
|
47
|
+
method: "PUT",
|
|
48
|
+
headers: this.headers,
|
|
49
|
+
body: t
|
|
50
|
+
};
|
|
51
|
+
return fetch(`${this.endpoint}${e}`, r).then((s) => {
|
|
52
|
+
if (s.ok)
|
|
53
|
+
return s.text();
|
|
54
|
+
throw new Error(`${s.status}`);
|
|
55
|
+
}).then((s) => s.length ? JSON.parse(s) : {}).then((s) => s).catch((s) => {
|
|
56
|
+
throw window?.app?.config?.type === "pulse" && this.onError?.(s.message), s.message;
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
delete = async (e) => {
|
|
60
|
+
const n = {
|
|
61
|
+
method: "DELETE",
|
|
62
|
+
headers: this.headers
|
|
63
|
+
};
|
|
64
|
+
return fetch(`${this.endpoint}${e}`, n).then((t) => t.ok ? t.text() : t.text().then((r) => {
|
|
65
|
+
throw new Error(r);
|
|
66
|
+
})).then((t) => t.length ? JSON.parse(t) : {}).then((t) => t).catch((t) => {
|
|
67
|
+
throw t;
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
class f {
|
|
72
|
+
fetchInstance;
|
|
73
|
+
constructor(e, n, t) {
|
|
74
|
+
this.fetchInstance = new o(e, n, void 0, t);
|
|
75
|
+
}
|
|
76
|
+
initializeAnalyticsSession = async (e, n) => {
|
|
77
|
+
const t = c.getParser(window.navigator.userAgent), { analytics_session: r } = await this.fetchInstance.post(a.ANALYTICS_SESSION, {
|
|
78
|
+
browser_name: t.getBrowserName() || "Unknown",
|
|
79
|
+
browser_version: t.getBrowserVersion() || "0.0.0",
|
|
80
|
+
is_first_visit: !1,
|
|
81
|
+
product_name: "Individual Widget",
|
|
82
|
+
product_version: e
|
|
83
|
+
});
|
|
84
|
+
return r ? (this.fetchInstance.post(a.ANALYTICS_FEATURE_VISITS, {
|
|
85
|
+
feature_visit: {
|
|
86
|
+
analytics_session_guid: r.guid,
|
|
87
|
+
feature_name: n || "Experiences",
|
|
88
|
+
is_first_visit: r.is_first_visit
|
|
89
|
+
}
|
|
90
|
+
}), { analytics_session: r }) : { analytics_session: null };
|
|
91
|
+
};
|
|
92
|
+
sendAnalyticEvent = async (e) => this.fetchInstance.post(a.ANALYTICS_EVENTS, e).catch((n) => {
|
|
93
|
+
throw n;
|
|
94
|
+
});
|
|
95
|
+
sendAnalyticsPageview = async (e) => this.fetchInstance.post(a.ANALYTICS_PAGEVIEWS, e).catch((n) => {
|
|
96
|
+
throw n;
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
class l {
|
|
100
|
+
fetchInstance;
|
|
101
|
+
constructor(e, n, t) {
|
|
102
|
+
this.fetchInstance = new o(e, n, void 0, t);
|
|
103
|
+
}
|
|
104
|
+
getBeats = async (e, n) => {
|
|
105
|
+
const t = `page=${e || 1}&per_page=${n || 5}`;
|
|
106
|
+
return this.fetchInstance.get(`${a.BEATS}?${t}`).then((r) => r.beats);
|
|
107
|
+
};
|
|
108
|
+
getBeatsWithAssociatedTransaction = async (e) => {
|
|
109
|
+
let n = "has_associated_transaction_guid=true";
|
|
110
|
+
return n += e ? `&from_date=${e}` : "", this.fetchInstance.get(`${a.BEATS}?${n}`).then((t) => t.beats);
|
|
111
|
+
};
|
|
112
|
+
getOffers = async () => this.fetchInstance.get(`${a.OFFERS}/${a.PULSE_COMMUNICATIONS}`).then((e) => e.pulse_communications);
|
|
113
|
+
updateBeat = async (e) => this.fetchInstance.put(`${a.BEATS}/${e.guid}`, e).then((n) => n.beat);
|
|
114
|
+
updateOffer = async (e) => this.fetchInstance.put(`${a.OFFERS}/${e.guid}`, e).then((n) => n.beat);
|
|
115
|
+
}
|
|
116
|
+
class g {
|
|
117
|
+
fetchInstance;
|
|
118
|
+
constructor(e, n, t) {
|
|
119
|
+
this.fetchInstance = new o(e, n, void 0, t);
|
|
120
|
+
}
|
|
121
|
+
getGlobalCopy = async (e, n) => this.fetchInstance.post(`${a.LOCALIZED_CONTENT}/${e}`, { translation_key: n }).then((t) => t);
|
|
122
|
+
}
|
|
123
|
+
export {
|
|
124
|
+
f as A,
|
|
125
|
+
l as B,
|
|
126
|
+
o as F,
|
|
127
|
+
g as G
|
|
128
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { fromUnixTime as s } from "date-fns/fromUnixTime";
|
|
2
|
+
import { addYears as C } from "date-fns/addYears";
|
|
3
|
+
import { getUnixTime as N } from "date-fns/getUnixTime";
|
|
4
|
+
import { a as g } from "./NumberFormatting--XMeeBfr.mjs";
|
|
5
|
+
import { b as r } from "./Localization-DnoVyBNK.mjs";
|
|
6
|
+
import { f as T, D as O } from "./DateFormats-HudZ3Bjs.mjs";
|
|
7
|
+
var e = /* @__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))(e || {}), I = /* @__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))(I || {}), n = /* @__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))(n || {});
|
|
8
|
+
function h(t, E) {
|
|
9
|
+
const o = E.track_type === e.DEBT_TRACK ? E.initial_amount : E.amount;
|
|
10
|
+
let _ = E.current_amount / o;
|
|
11
|
+
_ > 1 && (_ = 1), _ = E.track_type === e.DEBT_TRACK ? 1 - _ : _, isNaN(_) && (_ = 1);
|
|
12
|
+
let i = "chart.chart1", a = "common.black";
|
|
13
|
+
E.track_type === e.DEBT_TRACK ? (a = "common.white", i = "chart.chart5") : E.track_type === e.RETIREMENT_TRACK && (i = "chart.chart6");
|
|
14
|
+
const A = {
|
|
15
|
+
style: "percent",
|
|
16
|
+
minimumFractionDigits: 0,
|
|
17
|
+
maximumFractionDigits: 0
|
|
18
|
+
}, c = E.is_complete ? E.completed_at : E.projected_to_complete_at, l = c ? s(c) : /* @__PURE__ */ new Date(), m = r(
|
|
19
|
+
t.goal_percentage,
|
|
20
|
+
g(_, A)
|
|
21
|
+
), R = r(
|
|
22
|
+
E.is_complete ? t.completed_label : t.goal_projection,
|
|
23
|
+
T(l, O.MONTH_SHORT_YEAR)
|
|
24
|
+
);
|
|
25
|
+
return {
|
|
26
|
+
backgroundColor: i,
|
|
27
|
+
color: a,
|
|
28
|
+
percentage: _,
|
|
29
|
+
percentageText: m,
|
|
30
|
+
projectedText: R
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function K(t) {
|
|
34
|
+
return [
|
|
35
|
+
{
|
|
36
|
+
bgcolor: "chart.chart1",
|
|
37
|
+
icon: "attach_money",
|
|
38
|
+
label: t.saving_goal_label,
|
|
39
|
+
description: t.saving_goal_description,
|
|
40
|
+
subTypes: [
|
|
41
|
+
{
|
|
42
|
+
icon: "ecg_heart",
|
|
43
|
+
label: t.saving_goal_emergency_fund,
|
|
44
|
+
metaType: n.EMERGENCY_FUND
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
icon: "directions_car",
|
|
48
|
+
label: t.saving_gaol_automobile,
|
|
49
|
+
metaType: n.AUTOMOBILE
|
|
50
|
+
},
|
|
51
|
+
{ icon: "school", label: t.saving_goal_college, metaType: n.COLLEGE },
|
|
52
|
+
{ icon: "home", label: t.saving_goal_home, metaType: n.HOUSE },
|
|
53
|
+
{
|
|
54
|
+
icon: "mountain_flag",
|
|
55
|
+
label: t.saving_goal_recreational,
|
|
56
|
+
metaType: n.RECREATIONAL_VEHICLE
|
|
57
|
+
},
|
|
58
|
+
{ icon: "airplane_ticket", label: t.saving_goal_vacation, metaType: n.VACATION },
|
|
59
|
+
{
|
|
60
|
+
icon: "desktop_windows",
|
|
61
|
+
label: t.saving_goal_electronic,
|
|
62
|
+
metaType: n.ELECTRONIC
|
|
63
|
+
},
|
|
64
|
+
{ icon: "payments", label: t.saving_goal_other, metaType: n.OTHER }
|
|
65
|
+
],
|
|
66
|
+
type: e.SAVINGS_TRACK
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
bgcolor: "chart.chart5",
|
|
70
|
+
icon: "note_stack",
|
|
71
|
+
label: t.debt_goal_label,
|
|
72
|
+
description: t.debt_goal_description,
|
|
73
|
+
subTypes: [],
|
|
74
|
+
type: e.DEBT_TRACK
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
bgcolor: "chart.chart6",
|
|
78
|
+
icon: "person",
|
|
79
|
+
label: t.retirement_goal_label,
|
|
80
|
+
description: t.retirement_goal_description,
|
|
81
|
+
subTypes: [],
|
|
82
|
+
type: e.RETIREMENT_TRACK
|
|
83
|
+
}
|
|
84
|
+
];
|
|
85
|
+
}
|
|
86
|
+
const B = (t, E) => {
|
|
87
|
+
switch (t) {
|
|
88
|
+
case e.DEBT_TRACK:
|
|
89
|
+
return r(E.zero_state_ongoing, "debt");
|
|
90
|
+
case e.SAVINGS_TRACK:
|
|
91
|
+
return r(E.zero_state_ongoing, "saving");
|
|
92
|
+
default:
|
|
93
|
+
return r(E.zero_state_ongoing, "retirement");
|
|
94
|
+
}
|
|
95
|
+
}, U = (t, E) => {
|
|
96
|
+
const o = s(E), _ = C(o, t);
|
|
97
|
+
return N(_);
|
|
98
|
+
};
|
|
99
|
+
export {
|
|
100
|
+
I as G,
|
|
101
|
+
n as M,
|
|
102
|
+
e as T,
|
|
103
|
+
B as a,
|
|
104
|
+
K as b,
|
|
105
|
+
U as c,
|
|
106
|
+
h as g
|
|
107
|
+
};
|