@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,5 +1,3 @@
|
|
|
1
1
|
export { getNotificationDetailRoute } from './constants/NotificationConstants';
|
|
2
|
-
export { NotificationStore } from './stores/NotificationStore';
|
|
3
2
|
export { default as NotificationList } from './components/NotificationList';
|
|
4
3
|
export { NotificationDrawer } from './components/NotificationDrawer';
|
|
5
|
-
export { filterRecentNotifications } from './utils/NotificationUtils';
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { A as f, B as N, N as A } from "../Notification-DTNYSd8P.mjs";
|
|
2
|
-
import { A as y } from "../ApiEndpoints-
|
|
3
|
-
import { g as T, s as D } from "../NotificationStore-DlAM5Ue0.mjs";
|
|
4
|
-
import { N as kt, f as Lt } from "../NotificationStore-DlAM5Ue0.mjs";
|
|
2
|
+
import { A as y } from "../ApiEndpoints-DXwIYNUV.mjs";
|
|
5
3
|
import { jsx as t, jsxs as l, Fragment as S } from "react/jsx-runtime";
|
|
6
|
-
import
|
|
4
|
+
import T, { useEffect as D } from "react";
|
|
7
5
|
import { observer as p } from "mobx-react-lite";
|
|
8
6
|
import b from "@mui/material/Box";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
7
|
+
import B from "@mui/material/Divider";
|
|
8
|
+
import I from "@mui/material/List";
|
|
9
|
+
import { g as R, s as O } from "../NotificationUtils-BRGFTePr.mjs";
|
|
10
|
+
import { Text as m, InstitutionLogo as G, CategoryIcon as E } from "@mxenabled/mxui";
|
|
11
|
+
import { i as j } from "../DateUtil-Bhq59ZVg.mjs";
|
|
13
12
|
import { useTheme as z, Card as U } from "@mui/material";
|
|
14
|
-
import { d as F,
|
|
13
|
+
import { d as F, o as P, u as C, y as w, b as v, a as V } from "../hooks-BaO_gOI6.mjs";
|
|
15
14
|
import { Icon as W, Settings as $ } from "@mxenabled/mx-icons";
|
|
16
15
|
import M from "@mui/material/Button";
|
|
17
16
|
import X from "@mui/material/Stack";
|
|
18
17
|
import { L as k } from "../Loader-CxeBwuPG.mjs";
|
|
19
18
|
import Y from "@mui/material/IconButton";
|
|
20
|
-
import { N as q } from "../NotificationSettings-
|
|
19
|
+
import { N as q } from "../NotificationSettings-CCg-Tml2.mjs";
|
|
21
20
|
import { D as x } from "../Drawer-XPaLYjiO.mjs";
|
|
22
21
|
const xt = (i) => {
|
|
23
22
|
switch (i) {
|
|
@@ -35,7 +34,7 @@ const xt = (i) => {
|
|
|
35
34
|
default:
|
|
36
35
|
return null;
|
|
37
36
|
}
|
|
38
|
-
}, H = ({ date: i }) => /* @__PURE__ */ t(b, { sx: { display: "flex", justifyContent: "center", mt: 12, py: 8 }, children: /* @__PURE__ */ t(
|
|
37
|
+
}, H = ({ date: i }) => /* @__PURE__ */ t(b, { sx: { display: "flex", justifyContent: "center", mt: 12, py: 8 }, children: /* @__PURE__ */ t(m, { bold: !0, variant: "body2", children: j(i) }) }), J = ({ notification: i }) => {
|
|
39
38
|
const { accounts: e } = F(), { budgets: r } = P(), { accounts: n } = C(), o = e.find((c) => c.guid === i.entity_guid), a = r.find((c) => c.guid === i.entity_guid), d = i.entity_guid.includes("GOL"), u = {
|
|
40
39
|
badge: {
|
|
41
40
|
display: "flex",
|
|
@@ -84,16 +83,16 @@ const xt = (i) => {
|
|
|
84
83
|
}, sx: o.card, children: [
|
|
85
84
|
i.has_been_viewed ? null : /* @__PURE__ */ t("div", { "data-testid": "new-message-dot", style: o.dot }),
|
|
86
85
|
/* @__PURE__ */ t(K, { notification: i }),
|
|
87
|
-
/* @__PURE__ */ t(
|
|
86
|
+
/* @__PURE__ */ t(m, { bold: !i.has_been_viewed, truncate: !1, variant: "body2", children: i.content })
|
|
88
87
|
] });
|
|
89
88
|
}, Z = p(
|
|
90
89
|
({ onManageNotifications: i }) => {
|
|
91
90
|
const { notifications: e } = C();
|
|
92
91
|
return /* @__PURE__ */ l(X, { sx: { alignItems: "center", height: "95%", justifyContent: "center" }, children: [
|
|
93
92
|
/* @__PURE__ */ t(W, { name: "notifications", size: 32 }),
|
|
94
|
-
/* @__PURE__ */ t(
|
|
93
|
+
/* @__PURE__ */ t(m, { sx: { pt: 32 }, variant: "h3", children: e.notification_empty_state.no_new_notifications }),
|
|
95
94
|
/* @__PURE__ */ t(
|
|
96
|
-
|
|
95
|
+
m,
|
|
97
96
|
{
|
|
98
97
|
sx: {
|
|
99
98
|
maxWidth: 327,
|
|
@@ -117,23 +116,23 @@ const xt = (i) => {
|
|
|
117
116
|
const { isLoading: n, loadNotifications: o, markAllAsViewed: a, recentNotifications: d } = w(), { isInitialized: u } = v(), c = (s) => {
|
|
118
117
|
e?.(s);
|
|
119
118
|
};
|
|
120
|
-
|
|
119
|
+
D(() => {
|
|
121
120
|
o().then(() => a()).finally();
|
|
122
121
|
}, []);
|
|
123
|
-
const
|
|
122
|
+
const g = i?.includes(A.Insights);
|
|
124
123
|
if (!u || n)
|
|
125
124
|
return /* @__PURE__ */ t(k, {});
|
|
126
125
|
const h = d.slice().sort((s, _) => _.delivered_at - s.delivered_at).filter(
|
|
127
|
-
(s) =>
|
|
126
|
+
(s) => g ? R().has(s.notification_type) : !0
|
|
128
127
|
);
|
|
129
128
|
return /* @__PURE__ */ l(S, { children: [
|
|
130
129
|
h.length === 0 && /* @__PURE__ */ t(Z, { onManageNotifications: r }),
|
|
131
|
-
/* @__PURE__ */ t(
|
|
132
|
-
const L =
|
|
130
|
+
/* @__PURE__ */ t(I, { sx: { p: 16 }, children: h.map((s, _) => {
|
|
131
|
+
const L = O(_, h);
|
|
133
132
|
return /* @__PURE__ */ l(b, { sx: { mb: 12 }, children: [
|
|
134
133
|
L && /* @__PURE__ */ l(b, { sx: { mb: 12 }, children: [
|
|
135
134
|
/* @__PURE__ */ t(H, { date: s.delivered_at }),
|
|
136
|
-
/* @__PURE__ */ t(
|
|
135
|
+
/* @__PURE__ */ t(B, {})
|
|
137
136
|
] }),
|
|
138
137
|
/* @__PURE__ */ t(Q, { notification: s, onClick: c })
|
|
139
138
|
] }, s.guid);
|
|
@@ -141,7 +140,7 @@ const xt = (i) => {
|
|
|
141
140
|
] });
|
|
142
141
|
}, it = p(tt), St = p(
|
|
143
142
|
({ notificationTypes: i, isOpen: e, onClose: r, onNotificationClick: n }) => {
|
|
144
|
-
const { config: o } = V(), { notifications: a, settings: d } = C(), { isCopyLoaded: u } = v(), [c,
|
|
143
|
+
const { config: o } = V(), { notifications: a, settings: d } = C(), { isCopyLoaded: u } = v(), [c, g] = T.useState(!1);
|
|
145
144
|
return u ? /* @__PURE__ */ l(S, { children: [
|
|
146
145
|
/* @__PURE__ */ l(
|
|
147
146
|
x,
|
|
@@ -155,7 +154,7 @@ const xt = (i) => {
|
|
|
155
154
|
Y,
|
|
156
155
|
{
|
|
157
156
|
"aria-label": d.open_notification_settings_btn_aria,
|
|
158
|
-
onClick: () =>
|
|
157
|
+
onClick: () => g(!0),
|
|
159
158
|
sx: {
|
|
160
159
|
position: "absolute",
|
|
161
160
|
right: 8,
|
|
@@ -169,7 +168,7 @@ const xt = (i) => {
|
|
|
169
168
|
{
|
|
170
169
|
notificationTypes: i,
|
|
171
170
|
onClick: n,
|
|
172
|
-
onManageNotifications: () =>
|
|
171
|
+
onManageNotifications: () => g(!0)
|
|
173
172
|
}
|
|
174
173
|
)
|
|
175
174
|
]
|
|
@@ -180,7 +179,7 @@ const xt = (i) => {
|
|
|
180
179
|
{
|
|
181
180
|
ariaLabelClose: a.close_notification_settings,
|
|
182
181
|
isOpen: c,
|
|
183
|
-
onClose: () =>
|
|
182
|
+
onClose: () => g(!1),
|
|
184
183
|
title: d.notification_settings_title,
|
|
185
184
|
children: /* @__PURE__ */ t(
|
|
186
185
|
q,
|
|
@@ -197,7 +196,5 @@ const xt = (i) => {
|
|
|
197
196
|
export {
|
|
198
197
|
St as NotificationDrawer,
|
|
199
198
|
it as NotificationList,
|
|
200
|
-
kt as NotificationStore,
|
|
201
|
-
Lt as filterRecentNotifications,
|
|
202
199
|
xt as getNotificationDetailRoute
|
|
203
200
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { RecurringTransactionsWidget } from './RecurringTransactionsWidget';
|
|
2
2
|
export { RecurringTransactionsMiniWidget } from './RecurringTransactionsMiniWidget';
|
|
3
3
|
export { RecurringTransactionsMicroWidget } from './RecurringTransactionsMicroWidget';
|
|
4
|
-
export { RecurringTransactionsStore } from './stores/RecurringTransactionsStore';
|
|
5
4
|
export { RecurringSettings } from './components/shared/RecurringSettings';
|
|
6
5
|
export { ManageIncome } from './components/shared/recurringsettings/ManageIncome';
|
|
7
6
|
export { ManageExpenses } from './components/shared/recurringsettings/ManageExpenses';
|
|
@@ -6,8 +6,8 @@ import { endOfToday as J } from "date-fns/endOfToday";
|
|
|
6
6
|
import { startOfMonth as k } from "date-fns/startOfMonth";
|
|
7
7
|
import { startOfToday as Q } from "date-fns/startOfToday";
|
|
8
8
|
import { subDays as ee } from "date-fns/subDays";
|
|
9
|
-
import { R as
|
|
10
|
-
import { M as
|
|
9
|
+
import { R as _e } from "../RecurringSettings-CPXLW6AR.mjs";
|
|
10
|
+
import { M as Un } from "../RecurringSettings-CPXLW6AR.mjs";
|
|
11
11
|
import { addMonths as He } from "date-fns/addMonths";
|
|
12
12
|
import { subMonths as $e } from "date-fns/subMonths";
|
|
13
13
|
import { isBefore as Be } from "date-fns/isBefore";
|
|
@@ -16,53 +16,50 @@ import ge from "@mui/material/IconButton";
|
|
|
16
16
|
import l from "@mui/material/Stack";
|
|
17
17
|
import he from "@mui/material/Tab";
|
|
18
18
|
import Fe from "@mui/material/Tabs";
|
|
19
|
-
import { Cancel as
|
|
19
|
+
import { Cancel as Te, CheckCircle as Se, Schedule as ze, MonetizationOn as Ue, ChevronLeft as Ye, ChevronRight as je, CurrencyExchange as Ke } from "@mxenabled/mx-icons";
|
|
20
20
|
import { Text as h, MerchantLogo as te, InstitutionLogo as Ve, H3 as qe, H2 as Ze, P as Z } from "@mxenabled/mxui";
|
|
21
|
+
import { g as Xe, L as G, b as N } from "../Localization-DnoVyBNK.mjs";
|
|
21
22
|
import { getWeeksInMonth as fe } from "date-fns/getWeeksInMonth";
|
|
22
|
-
import { enCA as
|
|
23
|
+
import { enCA as Je } from "date-fns/locale/en-CA";
|
|
23
24
|
import { enUS as xe } from "date-fns/locale/en-US";
|
|
24
|
-
import { es as
|
|
25
|
-
import { fr as
|
|
26
|
-
import { frCA as
|
|
25
|
+
import { es as Qe } from "date-fns/locale/es";
|
|
26
|
+
import { fr as et } from "date-fns/locale/fr";
|
|
27
|
+
import { frCA as tt } from "date-fns/locale/fr-CA";
|
|
27
28
|
import ne from "@mui/material/styles/useTheme";
|
|
28
|
-
import { AdapterDateFns as
|
|
29
|
-
import { DateCalendar as
|
|
30
|
-
import { LocalizationProvider as
|
|
31
|
-
import { isSameDay as
|
|
32
|
-
import
|
|
33
|
-
import { PickersDay as
|
|
29
|
+
import { AdapterDateFns as nt } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
30
|
+
import { DateCalendar as rt } from "@mui/x-date-pickers/DateCalendar";
|
|
31
|
+
import { LocalizationProvider as it } from "@mui/x-date-pickers/LocalizationProvider";
|
|
32
|
+
import { isSameDay as ot } from "date-fns/isSameDay";
|
|
33
|
+
import at from "@mui/material/Badge";
|
|
34
|
+
import { PickersDay as st } from "@mui/x-date-pickers/PickersDay";
|
|
34
35
|
import { I as F } from "../IconBacking-DgT8DCeh.mjs";
|
|
35
|
-
import { u as y, b as z, i as I, g as U,
|
|
36
|
-
import {
|
|
37
|
-
import { f as S, D as w } from "../DateFormats-
|
|
38
|
-
import { T as
|
|
39
|
-
import { R as Vn } from "../RecurringTransactionsStore-CFJYC7lI.mjs";
|
|
36
|
+
import { u as y, b as z, i as I, g as U, D as we, h as re } from "../hooks-BaO_gOI6.mjs";
|
|
37
|
+
import { b as A, a as D, g as be, d as ct } from "../RecurringTransactionsUtil-B3rLEx_g.mjs";
|
|
38
|
+
import { f as S, D as w } from "../DateFormats-HudZ3Bjs.mjs";
|
|
39
|
+
import { T as W } from "../Sizes-DISGrlUg.mjs";
|
|
40
40
|
import { A as L } from "../Analytics-CzGzz_sE.mjs";
|
|
41
|
-
import
|
|
42
|
-
import ct from "@mui/material/Button";
|
|
41
|
+
import lt from "@mui/material/Button";
|
|
43
42
|
import X from "@mui/material/Divider";
|
|
44
|
-
import
|
|
43
|
+
import Ce from "@mui/material/List";
|
|
45
44
|
import Ie from "@mui/material/ListItem";
|
|
46
|
-
import
|
|
47
|
-
import { g as Ce, d as dt } from "../RecurringTransactions-DCt94TN4.mjs";
|
|
45
|
+
import dt from "@mui/material/ListSubheader";
|
|
48
46
|
import ut from "@mui/material/ListItemAvatar";
|
|
49
47
|
import mt from "@mui/material/ListItemButton";
|
|
50
48
|
import pt from "@mui/material/ListItemText";
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
49
|
+
import { f as E } from "../NumberFormatting--XMeeBfr.mjs";
|
|
50
|
+
import { d as gt } from "../ManageIncome-DwylSiWs.mjs";
|
|
51
|
+
import { c as jn, M as Kn, S as Vn } from "../ManageIncome-DwylSiWs.mjs";
|
|
54
52
|
import { D as ie } from "../Drawer-XPaLYjiO.mjs";
|
|
55
|
-
import { b as N } from "../Localization-CkQ49EKr.mjs";
|
|
56
53
|
import O from "@mui/material/Box";
|
|
57
54
|
import { u as Me } from "../useScreenSize-CeFhWTt_.mjs";
|
|
58
55
|
import { S as Le } from "../StatusBar-CPfSXe80.mjs";
|
|
59
56
|
import { S as ve } from "../SkeletonLoader-BaNboJjD.mjs";
|
|
60
|
-
import { u as oe } from "../useWidgetLoadTimer-
|
|
57
|
+
import { u as oe } from "../useWidgetLoadTimer-CJb-RELP.mjs";
|
|
61
58
|
import { L as ae } from "../Loader-CxeBwuPG.mjs";
|
|
62
|
-
import { W as ht } from "../WidgetContainer-
|
|
63
|
-
import { M as ft } from "../MiniWidgetContainer-
|
|
59
|
+
import { W as ht } from "../WidgetContainer-DalWyz5A.mjs";
|
|
60
|
+
import { M as ft } from "../MiniWidgetContainer-BdPiUU-u.mjs";
|
|
64
61
|
import { u as xt } from "../useDimensions-CeDR9V8N.mjs";
|
|
65
|
-
import { M as bt } from "../MicroWidgetContainer-
|
|
62
|
+
import { M as bt } from "../MicroWidgetContainer-CfKdQfhi.mjs";
|
|
66
63
|
const Y = {
|
|
67
64
|
gridRow: 1,
|
|
68
65
|
gridColumn: 1,
|
|
@@ -95,7 +92,7 @@ const Y = {
|
|
|
95
92
|
backingSx: { backgroundColor: "background.paper" },
|
|
96
93
|
size: n,
|
|
97
94
|
sx: { ...j(t) },
|
|
98
|
-
children: /* @__PURE__ */ e(
|
|
95
|
+
children: /* @__PURE__ */ e(Te, { color: "error", filled: !0, sx: { fontSize: n, ...Y } })
|
|
99
96
|
}
|
|
100
97
|
), de = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(
|
|
101
98
|
F,
|
|
@@ -111,7 +108,7 @@ const Y = {
|
|
|
111
108
|
() => c.filter((f) => o.includes(f.accountGuid)),
|
|
112
109
|
[o, c]
|
|
113
110
|
).filter(
|
|
114
|
-
(f) =>
|
|
111
|
+
(f) => ot(f.occurredOnDate || f.expectedDate, t)
|
|
115
112
|
), d = a.some(
|
|
116
113
|
(f) => f.type !== A.Income && f.status === D.Upcoming
|
|
117
114
|
), m = a.some(
|
|
@@ -125,7 +122,7 @@ const Y = {
|
|
|
125
122
|
b && i.income
|
|
126
123
|
].filter(Boolean), M = v.length > 0 ? `${S(t, w.MONTH_DAY_YEAR)}, ${v.join(", ")}` : S(t, w.MONTH_DAY_YEAR);
|
|
127
124
|
return /* @__PURE__ */ e(
|
|
128
|
-
|
|
125
|
+
at,
|
|
129
126
|
{
|
|
130
127
|
badgeContent: a.length > 0 && /* @__PURE__ */ s(B, { children: [
|
|
131
128
|
m && /* @__PURE__ */ e(le, { isOffset: !0 }),
|
|
@@ -142,7 +139,7 @@ const Y = {
|
|
|
142
139
|
}
|
|
143
140
|
},
|
|
144
141
|
children: /* @__PURE__ */ e(
|
|
145
|
-
|
|
142
|
+
st,
|
|
146
143
|
{
|
|
147
144
|
"aria-label": M,
|
|
148
145
|
day: t,
|
|
@@ -184,19 +181,19 @@ const Y = {
|
|
|
184
181
|
}
|
|
185
182
|
);
|
|
186
183
|
}), ye = 58, Rt = () => {
|
|
187
|
-
const t =
|
|
184
|
+
const t = Xe();
|
|
188
185
|
return {
|
|
189
|
-
[
|
|
190
|
-
[
|
|
191
|
-
[
|
|
192
|
-
[
|
|
193
|
-
[
|
|
186
|
+
[G.EN_US]: xe,
|
|
187
|
+
[G.EN_CA]: Je,
|
|
188
|
+
[G.FR]: et,
|
|
189
|
+
[G.FR_CA]: tt,
|
|
190
|
+
[G.ES]: Qe
|
|
194
191
|
}[t] || xe;
|
|
195
192
|
}, Ae = R(() => {
|
|
196
193
|
const t = ne(), { onEvent: n } = U(), { recurring: r } = y(), { selectedDay: i, setDateRange: o } = I(), [c, u] = x.useState(
|
|
197
|
-
fe(/* @__PURE__ */ new Date()) *
|
|
194
|
+
fe(/* @__PURE__ */ new Date()) * W + ye
|
|
198
195
|
), p = (m) => {
|
|
199
|
-
u(fe(m) *
|
|
196
|
+
u(fe(m) * W + ye), o({
|
|
200
197
|
start: k(m),
|
|
201
198
|
end: H(m)
|
|
202
199
|
}), a(m), n(L.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
|
|
@@ -206,7 +203,7 @@ const Y = {
|
|
|
206
203
|
g?.setAttribute("tabindex", "-1"), g?.focus();
|
|
207
204
|
});
|
|
208
205
|
}, d = /* @__PURE__ */ e(
|
|
209
|
-
|
|
206
|
+
rt,
|
|
210
207
|
{
|
|
211
208
|
minDate: k(/* @__PURE__ */ new Date()),
|
|
212
209
|
onChange: a,
|
|
@@ -242,11 +239,11 @@ const Y = {
|
|
|
242
239
|
minHeight: c
|
|
243
240
|
},
|
|
244
241
|
"&.MuiDateCalendar-root": {
|
|
245
|
-
minHeight: c +
|
|
242
|
+
minHeight: c + W
|
|
246
243
|
},
|
|
247
244
|
"& .MuiButtonBase-root, .MuiDayCalendar-weekDayLabel": {
|
|
248
|
-
height:
|
|
249
|
-
width:
|
|
245
|
+
height: W,
|
|
246
|
+
width: W,
|
|
250
247
|
margin: 0
|
|
251
248
|
},
|
|
252
249
|
"& .MuiDayCalendar-weekDayLabel": {
|
|
@@ -262,7 +259,7 @@ const Y = {
|
|
|
262
259
|
views: ["day"]
|
|
263
260
|
}
|
|
264
261
|
);
|
|
265
|
-
return /* @__PURE__ */ e(l, { "aria-labelledby": "calendar-label", justifyContent: "center", role: "group", children: /* @__PURE__ */ s(
|
|
262
|
+
return /* @__PURE__ */ e(l, { "aria-labelledby": "calendar-label", justifyContent: "center", role: "group", children: /* @__PURE__ */ s(it, { adapterLocale: Rt(), dateAdapter: nt, children: [
|
|
266
263
|
i && d,
|
|
267
264
|
!i && d,
|
|
268
265
|
/* @__PURE__ */ e(h, { id: "calendar-label", sx: { alignSelf: "center" }, variant: "body2", children: r.calendar_tooltip }),
|
|
@@ -279,7 +276,7 @@ const Y = {
|
|
|
279
276
|
default:
|
|
280
277
|
return /* @__PURE__ */ e(se, {});
|
|
281
278
|
}
|
|
282
|
-
},
|
|
279
|
+
}, _t = (t, n) => {
|
|
283
280
|
switch (t.status) {
|
|
284
281
|
case D.Paid:
|
|
285
282
|
return t.expectedDate ? N(
|
|
@@ -314,7 +311,7 @@ const Y = {
|
|
|
314
311
|
[t, c]
|
|
315
312
|
), d = t.type === A.Income, m = t.status === D.Paid, g = t.status === D.Missed, b = t.status === D.Upcoming;
|
|
316
313
|
let C = o.paid?.toLowerCase();
|
|
317
|
-
return g ? C = o.missed?.toLowerCase() : b && (C = i ?
|
|
314
|
+
return g ? C = o.missed?.toLowerCase() : b && (C = i ? be(o, a || {}, !0) : be(o, a || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
|
|
318
315
|
/* @__PURE__ */ s(Ie, { disableGutters: !0, disablePadding: !0, children: [
|
|
319
316
|
/* @__PURE__ */ s(mt, { onClick: () => {
|
|
320
317
|
p(!0), r(t);
|
|
@@ -337,7 +334,7 @@ const Y = {
|
|
|
337
334
|
/* @__PURE__ */ e(h, { bold: !0, variant: "body1", children: t.name }),
|
|
338
335
|
/* @__PURE__ */ e(l, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ s(l, { direction: "row", gap: 4, children: [
|
|
339
336
|
Dt(t),
|
|
340
|
-
/* @__PURE__ */ e(h, { variant: "caption", children:
|
|
337
|
+
/* @__PURE__ */ e(h, { variant: "caption", children: _t(t, o) })
|
|
341
338
|
] }) : /* @__PURE__ */ s(B, { children: [
|
|
342
339
|
t.institutionGuid && /* @__PURE__ */ e(
|
|
343
340
|
Ve,
|
|
@@ -368,7 +365,7 @@ const Y = {
|
|
|
368
365
|
},
|
|
369
366
|
children: [
|
|
370
367
|
m && /* @__PURE__ */ e(Se, { color: "success", filled: !0, size: 12 }),
|
|
371
|
-
g && /* @__PURE__ */ e(
|
|
368
|
+
g && /* @__PURE__ */ e(Te, { color: "error", filled: !0, size: 12 }),
|
|
372
369
|
/* @__PURE__ */ e(h, { bold: !0, color: "text.secondary", variant: "caption", children: C })
|
|
373
370
|
]
|
|
374
371
|
}
|
|
@@ -404,7 +401,7 @@ const Y = {
|
|
|
404
401
|
sx: o = {},
|
|
405
402
|
title: c
|
|
406
403
|
}) => {
|
|
407
|
-
const { recurring: u } = y(), p = x.useMemo(() =>
|
|
404
|
+
const { recurring: u } = y(), p = x.useMemo(() => ct(t), [t]);
|
|
408
405
|
return /* @__PURE__ */ s(l, { id: "recurrence-list", sx: { gap: 8, mt: 4, ...o }, "tab-index": -1, children: [
|
|
409
406
|
c && /* @__PURE__ */ s(
|
|
410
407
|
l,
|
|
@@ -417,11 +414,11 @@ const Y = {
|
|
|
417
414
|
},
|
|
418
415
|
children: [
|
|
419
416
|
/* @__PURE__ */ e(qe, { bold: !0, variant: "body1", children: c }),
|
|
420
|
-
r && /* @__PURE__ */ e(
|
|
417
|
+
r && /* @__PURE__ */ e(lt, { onClick: r, size: "small", variant: "text", children: u.reset })
|
|
421
418
|
]
|
|
422
419
|
}
|
|
423
420
|
),
|
|
424
|
-
t.length === 0 ? /* @__PURE__ */ e(h, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: u.no_activities }) : /* @__PURE__ */ e(
|
|
421
|
+
t.length === 0 ? /* @__PURE__ */ e(h, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: u.no_activities }) : /* @__PURE__ */ e(Ce, { children: n ? t.map((a, d) => /* @__PURE__ */ s(x.Fragment, { children: [
|
|
425
422
|
/* @__PURE__ */ e(
|
|
426
423
|
Re,
|
|
427
424
|
{
|
|
@@ -433,9 +430,9 @@ const Y = {
|
|
|
433
430
|
/* @__PURE__ */ e(X, { sx: { mx: 24 } })
|
|
434
431
|
] }, `recurrence-${d}`)) : p.map((a, d) => /* @__PURE__ */ s(x.Fragment, { children: [
|
|
435
432
|
/* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(
|
|
436
|
-
|
|
433
|
+
Ce,
|
|
437
434
|
{
|
|
438
|
-
subheader: /* @__PURE__ */ e(
|
|
435
|
+
subheader: /* @__PURE__ */ e(dt, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ e(h, { bold: !0, variant: "caption", children: S(a.date, w.DAY_OF_WEEK_MONTH_DAY) }) }),
|
|
439
436
|
sx: { width: "100%" },
|
|
440
437
|
children: a.recurrences.map((m, g) => /* @__PURE__ */ e(x.Fragment, { children: /* @__PURE__ */ e(
|
|
441
438
|
Re,
|
|
@@ -478,7 +475,7 @@ const Y = {
|
|
|
478
475
|
] })
|
|
479
476
|
] });
|
|
480
477
|
}
|
|
481
|
-
),
|
|
478
|
+
), Tt = R(() => {
|
|
482
479
|
const { recurring: t } = y(), { availableWidth: n } = we(), { isDesktop: r, isSmallMobile: i, isMobile: o } = Me(n), { onEvent: c } = U(), {
|
|
483
480
|
currentMonthExpenses: u,
|
|
484
481
|
currentMonthIncome: p,
|
|
@@ -491,31 +488,31 @@ const Y = {
|
|
|
491
488
|
paidIncomeTotal: v,
|
|
492
489
|
selectedDay: M,
|
|
493
490
|
selectedDayRecurrences: f,
|
|
494
|
-
setDateRange:
|
|
491
|
+
setDateRange: T,
|
|
495
492
|
upcomingExpenseTotal: K,
|
|
496
493
|
upcomingIncomeTotal: Ee,
|
|
497
494
|
upcomingRecurrences: ue
|
|
498
|
-
} = I(), [V, Ne] = x.useState(0), Oe = Be(a.start, /* @__PURE__ */ new Date()), ke = (
|
|
495
|
+
} = I(), [V, Ne] = x.useState(0), Oe = Be(a.start, /* @__PURE__ */ new Date()), ke = (_, Pe) => {
|
|
499
496
|
Ne(Pe);
|
|
500
|
-
}, me = (
|
|
497
|
+
}, me = (_) => {
|
|
501
498
|
c(L.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
|
|
502
|
-
transaction_guid:
|
|
499
|
+
transaction_guid: _.transaction?.guid
|
|
503
500
|
});
|
|
504
|
-
}, pe = (
|
|
501
|
+
}, pe = (_) => {
|
|
505
502
|
c(L.RECURRING_TRANSACTIONS_CLICK_PAID, {
|
|
506
|
-
transaction_guid:
|
|
503
|
+
transaction_guid: _.transaction?.guid
|
|
507
504
|
});
|
|
508
505
|
}, Ge = () => {
|
|
509
|
-
const
|
|
510
|
-
|
|
511
|
-
start: k(
|
|
512
|
-
end: H(
|
|
506
|
+
const _ = He(a.start, 1);
|
|
507
|
+
T({
|
|
508
|
+
start: k(_),
|
|
509
|
+
end: H(_)
|
|
513
510
|
});
|
|
514
511
|
}, We = () => {
|
|
515
|
-
const
|
|
516
|
-
|
|
517
|
-
start: k(
|
|
518
|
-
end: H(
|
|
512
|
+
const _ = $e(a.start, 1);
|
|
513
|
+
T({
|
|
514
|
+
start: k(_),
|
|
515
|
+
end: H(_)
|
|
519
516
|
});
|
|
520
517
|
};
|
|
521
518
|
return /* @__PURE__ */ s(
|
|
@@ -625,7 +622,7 @@ const Y = {
|
|
|
625
622
|
]
|
|
626
623
|
}
|
|
627
624
|
);
|
|
628
|
-
}),
|
|
625
|
+
}), Pn = R(
|
|
629
626
|
({ onBackClick: t, onMenuClick: n, sx: r = {} }) => {
|
|
630
627
|
const { recurring: i } = y(), { isInitialized: o, selectedAccountGuids: c } = z(), { isDataLoaded: u, loadRepeatingTransactionData: p, setDateRange: a } = I(), { setFilter: d } = re(), { onEvent: m } = U(), [g, b] = x.useState(!1);
|
|
631
628
|
return oe({
|
|
@@ -657,7 +654,7 @@ const Y = {
|
|
|
657
654
|
sx: r,
|
|
658
655
|
title: i.title,
|
|
659
656
|
children: [
|
|
660
|
-
u ? /* @__PURE__ */ e(
|
|
657
|
+
u ? /* @__PURE__ */ e(Tt, {}) : /* @__PURE__ */ e(ve, { sx: { m: 48 }, variant: "list" }),
|
|
661
658
|
/* @__PURE__ */ e(
|
|
662
659
|
ie,
|
|
663
660
|
{
|
|
@@ -666,7 +663,7 @@ const Y = {
|
|
|
666
663
|
onClose: () => b(!1),
|
|
667
664
|
shouldShowHeaderBorders: !1,
|
|
668
665
|
title: i.action_title,
|
|
669
|
-
children: /* @__PURE__ */ e(
|
|
666
|
+
children: /* @__PURE__ */ e(_e, {})
|
|
670
667
|
}
|
|
671
668
|
)
|
|
672
669
|
]
|
|
@@ -692,7 +689,7 @@ const Y = {
|
|
|
692
689
|
}
|
|
693
690
|
)
|
|
694
691
|
] });
|
|
695
|
-
}),
|
|
692
|
+
}), Hn = R(
|
|
696
693
|
({ onPrimaryCtaClick: t, sx: n }) => {
|
|
697
694
|
const { recurring: r } = y(), { setFilter: i } = re(), { isDataLoaded: o, loadRepeatingTransactionData: c } = I(), { isInitialized: u, selectedAccountGuids: p } = z();
|
|
698
695
|
return oe({
|
|
@@ -805,13 +802,13 @@ const Y = {
|
|
|
805
802
|
paidExpenseTotal: u,
|
|
806
803
|
upcomingExpenseTotal: p
|
|
807
804
|
} = I(), { recurring: a } = y(), d = r <= 288, m = r >= 450, g = 32, b = i.length > 0, C = x.useMemo(() => E(o, o === 0 ? "0,0" : "0,0.00"), [o]), v = x.useMemo(() => {
|
|
808
|
-
const
|
|
805
|
+
const T = [
|
|
809
806
|
{ color: t.palette.success.main, percentage: `${u / o}` }
|
|
810
807
|
];
|
|
811
|
-
return c &&
|
|
808
|
+
return c && T.push({
|
|
812
809
|
color: t.palette.error.main,
|
|
813
810
|
percentage: `${c / o}`
|
|
814
|
-
}),
|
|
811
|
+
}), T;
|
|
815
812
|
}, [
|
|
816
813
|
u,
|
|
817
814
|
o,
|
|
@@ -882,14 +879,14 @@ const Y = {
|
|
|
882
879
|
gap: 16,
|
|
883
880
|
mt: 4
|
|
884
881
|
},
|
|
885
|
-
children: f.map((
|
|
882
|
+
children: f.map((T, K) => /* @__PURE__ */ e(
|
|
886
883
|
It,
|
|
887
884
|
{
|
|
888
|
-
amount:
|
|
889
|
-
bgcolor:
|
|
885
|
+
amount: T.amount,
|
|
886
|
+
bgcolor: T.bgColor,
|
|
890
887
|
isLargeScreen: m,
|
|
891
888
|
isSmallScreen: d,
|
|
892
|
-
label:
|
|
889
|
+
label: T.label
|
|
893
890
|
},
|
|
894
891
|
`recurrence-legend-${K}`
|
|
895
892
|
))
|
|
@@ -897,7 +894,7 @@ const Y = {
|
|
|
897
894
|
)
|
|
898
895
|
] })
|
|
899
896
|
] });
|
|
900
|
-
}),
|
|
897
|
+
}), $n = R(
|
|
901
898
|
({ onCTAClick: t }) => {
|
|
902
899
|
const { onEvent: n } = U(), { isInitialized: r, selectedAccountGuids: i } = z(), {
|
|
903
900
|
loadRepeatingTransactionData: o,
|
|
@@ -939,7 +936,7 @@ const Y = {
|
|
|
939
936
|
}
|
|
940
937
|
);
|
|
941
938
|
}
|
|
942
|
-
),
|
|
939
|
+
), Bn = R(
|
|
943
940
|
({ isOpen: t, onClose: n, selectedTab: r }) => {
|
|
944
941
|
const { cashflow: i } = y();
|
|
945
942
|
return /* @__PURE__ */ e(
|
|
@@ -949,20 +946,19 @@ const Y = {
|
|
|
949
946
|
isOpen: t,
|
|
950
947
|
onClose: n,
|
|
951
948
|
title: i.cashflow_settings,
|
|
952
|
-
children: /* @__PURE__ */ e(
|
|
949
|
+
children: /* @__PURE__ */ e(_e, { defaultSelectedTab: r })
|
|
953
950
|
}
|
|
954
951
|
);
|
|
955
952
|
}
|
|
956
953
|
);
|
|
957
954
|
export {
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
Jn as SelectTransaction
|
|
955
|
+
jn as AddRecurringTransactionDetails,
|
|
956
|
+
Un as ManageExpenses,
|
|
957
|
+
Kn as ManageIncome,
|
|
958
|
+
_e as RecurringSettings,
|
|
959
|
+
Bn as RecurringSettingsDrawer,
|
|
960
|
+
$n as RecurringTransactionsMicroWidget,
|
|
961
|
+
Hn as RecurringTransactionsMiniWidget,
|
|
962
|
+
Pn as RecurringTransactionsWidget,
|
|
963
|
+
Vn as SelectTransaction
|
|
968
964
|
};
|
package/dist/settings/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { SettingsStore } from './stores/SettingsStore';
|
|
2
1
|
export { SettingsWidget, SettingsTabs } from './SettingsWidget';
|
|
3
2
|
export { SettingsWidgetContents } from './components/SettingsWidgetContents';
|
|
4
3
|
export { default as ProfileTab } from './components/profile/ProfileTab';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { S as Jt } from "../SettingsStore-BcbuKfFO.mjs";
|
|
2
1
|
import { jsxs as c, Fragment as X, jsx as e } from "react/jsx-runtime";
|
|
3
2
|
import m from "react";
|
|
4
3
|
import { observer as C } from "mobx-react-lite";
|
|
@@ -16,9 +15,9 @@ import W from "@mui/material/Box";
|
|
|
16
15
|
import Z from "@mui/material/Button";
|
|
17
16
|
import A from "@mui/material/TextField";
|
|
18
17
|
import { H3 as Y, P as M, Text as x, Icon as L, ChevronRightIcon as ve } from "@mxenabled/mxui";
|
|
19
|
-
import { V as Ce, a as De, N as J } from "../NotificationSettings-
|
|
20
|
-
import { A as
|
|
21
|
-
import { u as w, a as G,
|
|
18
|
+
import { V as Ce, a as De, N as J } from "../NotificationSettings-CCg-Tml2.mjs";
|
|
19
|
+
import { A as Jt, B as Kt, I as Yt } from "../NotificationSettings-CCg-Tml2.mjs";
|
|
20
|
+
import { u as w, a as G, A as E, C as we, b as ee, l as $ } from "../hooks-BaO_gOI6.mjs";
|
|
22
21
|
import { u as H } from "../useScreenSize-CeFhWTt_.mjs";
|
|
23
22
|
import { D as j } from "../Dialog-iLlBR8TG.mjs";
|
|
24
23
|
import { formatDistanceToNow as te } from "date-fns/formatDistanceToNow";
|
|
@@ -26,8 +25,8 @@ import { fromUnixTime as oe } from "date-fns/fromUnixTime";
|
|
|
26
25
|
import O from "@mui/material/styles/useTheme";
|
|
27
26
|
import z from "@mui/material/IconButton";
|
|
28
27
|
import { DataGridPro as ke } from "@mui/x-data-grid-pro";
|
|
28
|
+
import { b as B } from "../Localization-DnoVyBNK.mjs";
|
|
29
29
|
import { H as U } from "../HeaderCell-P8w6CmfO.mjs";
|
|
30
|
-
import { b as B } from "../Localization-CkQ49EKr.mjs";
|
|
31
30
|
import Se from "@mui/material/Accordion";
|
|
32
31
|
import Te from "@mui/material/AccordionDetails";
|
|
33
32
|
import Ie from "@mui/material/AccordionSummary";
|
|
@@ -35,15 +34,15 @@ import { L as ie } from "../Loader-CxeBwuPG.mjs";
|
|
|
35
34
|
import Ae from "@mui/material/List";
|
|
36
35
|
import K from "@mui/material/Divider";
|
|
37
36
|
import Ee from "@mui/material/ListSubheader";
|
|
38
|
-
import { b as Pe, u as Re } from "../CategorySelectorDrawer-
|
|
37
|
+
import { b as Pe, u as Re } from "../CategorySelectorDrawer-Cu1ohxeM.mjs";
|
|
39
38
|
import Ne from "@mui/material/ListItem";
|
|
40
39
|
import Me from "@mui/material/ListItemButton";
|
|
41
40
|
import Le from "@mui/material/ListItemIcon";
|
|
42
41
|
import Be from "@mui/material/ListItemText";
|
|
43
42
|
import { D as He } from "../Drawer-XPaLYjiO.mjs";
|
|
44
|
-
import { u as ne } from "../useWidgetLoadTimer-
|
|
45
|
-
import { H as Oe } from "../Help-
|
|
46
|
-
import { W as q } from "../WidgetContainer-
|
|
43
|
+
import { u as ne } from "../useWidgetLoadTimer-CJb-RELP.mjs";
|
|
44
|
+
import { H as Oe } from "../Help-BSQm9o29.mjs";
|
|
45
|
+
import { W as q } from "../WidgetContainer-DalWyz5A.mjs";
|
|
47
46
|
const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
48
47
|
const i = xe(), { common: o, settings: n } = w(), { isDesktop: u, isMobile: s, isSmallMobile: a, isTablet: l } = H(t), { config: b } = G(), { updateUser: _ } = E(), { user: d } = we(), [p, k] = m.useState({
|
|
49
48
|
first_name: d.first_name,
|
|
@@ -868,14 +867,13 @@ const Wt = C(({ onBackClick: t, onMenuClick: r, sx: i }) => {
|
|
|
868
867
|
}), /* @__PURE__ */ e(q, { ...t, showAccountFilter: !1, children: /* @__PURE__ */ e(h, { sx: { mx: r ? 0 : 48, my: 24 }, children: /* @__PURE__ */ e(re, {}) }) });
|
|
869
868
|
};
|
|
870
869
|
export {
|
|
871
|
-
|
|
872
|
-
|
|
870
|
+
Jt as AccountNotificationProfiles,
|
|
871
|
+
Kt as BudgetNotificationProfiles,
|
|
873
872
|
$e as DeviceTab,
|
|
874
|
-
|
|
873
|
+
Yt as InsightsNotificationProfiles,
|
|
875
874
|
J as NotificationSettings,
|
|
876
875
|
zt as NotificationSettingsWidget,
|
|
877
876
|
Ue as ProfileTab,
|
|
878
|
-
Jt as SettingsStore,
|
|
879
877
|
N as SettingsTabs,
|
|
880
878
|
Wt as SettingsWidget,
|
|
881
879
|
Qe as SettingsWidgetContents,
|