@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
|
@@ -10,34 +10,34 @@ import ce from "@mui/material/ListItem";
|
|
|
10
10
|
import de from "@mui/material/ListItemAvatar";
|
|
11
11
|
import le from "@mui/material/ListItemButton";
|
|
12
12
|
import _e from "@mui/material/ListItemText";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
21
|
-
import { T as be } from "./
|
|
13
|
+
import { b as ue, f as H } from "./NumberFormatting--XMeeBfr.mjs";
|
|
14
|
+
import { F as l, g as X, R as L, c as Z } from "./RecurringTransactionsUtil-B3rLEx_g.mjs";
|
|
15
|
+
import { subDays as J } from "date-fns/subDays";
|
|
16
|
+
import { startOfToday as E } from "date-fns/startOfToday";
|
|
17
|
+
import { endOfMonth as me } from "date-fns/endOfMonth";
|
|
18
|
+
import { parseISO as pe } from "date-fns/parseISO";
|
|
19
|
+
import V from "@mui/material/Button";
|
|
20
|
+
import { Delete as ye, Add as he, ReceiptLong as fe } from "@mxenabled/mx-icons";
|
|
21
|
+
import { T as ee, u as ge, S as Ce, a as be } from "./EmbeddedCard-BNl3quCs.mjs";
|
|
22
|
+
import { T as xe } from "./TransactionDetails-CbBSxdOi.mjs";
|
|
22
23
|
import { addYears as j } from "date-fns/addYears";
|
|
23
|
-
import { getDayOfYear as
|
|
24
|
-
import { setDayOfYear as
|
|
25
|
-
import { AdapterDateFns as
|
|
26
|
-
import { DatePicker as
|
|
27
|
-
import { LocalizationProvider as
|
|
28
|
-
import { u as w, i as Y, g as P, b as
|
|
29
|
-
import {
|
|
30
|
-
import { b as Ee, f as te } from "./NumberFormatting-CyrvFgfd.mjs";
|
|
24
|
+
import { getDayOfYear as Se } from "date-fns/getDayOfYear";
|
|
25
|
+
import { setDayOfYear as ve } from "date-fns/setDayOfYear";
|
|
26
|
+
import { AdapterDateFns as De } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
27
|
+
import { DatePicker as we } from "@mui/x-date-pickers";
|
|
28
|
+
import { LocalizationProvider as Ae } from "@mui/x-date-pickers/LocalizationProvider";
|
|
29
|
+
import { u as w, i as Y, g as P, b as Ie, h as te, C as Re } from "./hooks-BaO_gOI6.mjs";
|
|
30
|
+
import { S as M, D as z } from "./Select-BZRUpOib.mjs";
|
|
31
31
|
import { D as N } from "./Drawer-XPaLYjiO.mjs";
|
|
32
32
|
import { A as O } from "./Analytics-CzGzz_sE.mjs";
|
|
33
|
-
import { f as
|
|
33
|
+
import { f as Ee, D as Le } from "./DateFormats-HudZ3Bjs.mjs";
|
|
34
34
|
import { D as Oe } from "./Dialog-iLlBR8TG.mjs";
|
|
35
35
|
import { formatISO as Te } from "date-fns/formatISO";
|
|
36
36
|
import { fromUnixTime as ke } from "date-fns/fromUnixTime";
|
|
37
37
|
import { S as Ne } from "./SearchBox-CwDgvWVJ.mjs";
|
|
38
|
-
import { i as Me } from "./DateUtil-
|
|
39
|
-
import {
|
|
40
|
-
import { T as ne } from "./
|
|
38
|
+
import { i as Me } from "./DateUtil-Bhq59ZVg.mjs";
|
|
39
|
+
import { C as q } from "./Category-DEKZGLYe.mjs";
|
|
40
|
+
import { T as ne } from "./TransactionUtils-BphBJBbU.mjs";
|
|
41
41
|
const re = ({
|
|
42
42
|
frequency: n,
|
|
43
43
|
firstDay: t,
|
|
@@ -68,11 +68,11 @@ const re = ({
|
|
|
68
68
|
{ id: 6, label: r.weekday_saturday }
|
|
69
69
|
], h = [...Array(31).keys()].map((b) => ({
|
|
70
70
|
id: b + 1,
|
|
71
|
-
label:
|
|
71
|
+
label: ue(b + 1)
|
|
72
72
|
}));
|
|
73
73
|
h[30].label += ` (${r.last_day_of_month})`;
|
|
74
|
-
const g = h.slice(0, 15), v = h.slice(14), C = n === l.EveryWeek || n === l.EveryOtherWeek, f = n === l.TwiceAMonth || n === l.EveryMonth || n === l.EveryOtherMonth || n === l.EveryQuarter || n === l.EveryOtherQuarter, A =
|
|
75
|
-
b && s(
|
|
74
|
+
const g = h.slice(0, 15), v = h.slice(14), C = n === l.EveryWeek || n === l.EveryOtherWeek, f = n === l.TwiceAMonth || n === l.EveryMonth || n === l.EveryOtherMonth || n === l.EveryQuarter || n === l.EveryOtherQuarter, A = ve(E(), t), y = A < E() ? j(A, 1) : A, D = (b) => {
|
|
75
|
+
b && s(Se(b));
|
|
76
76
|
};
|
|
77
77
|
return /* @__PURE__ */ c(p, { gap: 24, sx: { m: 24 }, children: [
|
|
78
78
|
/* @__PURE__ */ e(
|
|
@@ -111,13 +111,13 @@ const re = ({
|
|
|
111
111
|
value: o || 0
|
|
112
112
|
}
|
|
113
113
|
),
|
|
114
|
-
n === l.EveryYear && /* @__PURE__ */ e(
|
|
115
|
-
|
|
114
|
+
n === l.EveryYear && /* @__PURE__ */ e(Ae, { dateAdapter: De, children: /* @__PURE__ */ e(
|
|
115
|
+
we,
|
|
116
116
|
{
|
|
117
117
|
disablePast: !0,
|
|
118
118
|
label: r.next_payment_date,
|
|
119
|
-
maxDate:
|
|
120
|
-
minDate:
|
|
119
|
+
maxDate: J(j(E(), 1), 1),
|
|
120
|
+
minDate: E(),
|
|
121
121
|
onChange: D,
|
|
122
122
|
value: y
|
|
123
123
|
}
|
|
@@ -141,7 +141,7 @@ const re = ({
|
|
|
141
141
|
iconName: "sync",
|
|
142
142
|
label: t.activity_schedule,
|
|
143
143
|
onClick: f,
|
|
144
|
-
value: `${
|
|
144
|
+
value: `${X(t, n, !0)}`
|
|
145
145
|
}
|
|
146
146
|
),
|
|
147
147
|
/* @__PURE__ */ e(
|
|
@@ -168,11 +168,11 @@ const re = ({
|
|
|
168
168
|
] });
|
|
169
169
|
}), Ge = I(
|
|
170
170
|
({ onDeleted: n, recurringTransaction: t }) => {
|
|
171
|
-
const { recurring: o } = w(), { selectedAccountGuids: i } =
|
|
171
|
+
const { recurring: o } = w(), { selectedAccountGuids: i } = Ie(), { onEvent: s } = P(), { deleteRepeatingTransaction: d } = Y(), { setFilter: r, transactions: a } = te(), { amount: m, description: h, merchant_guid: g } = t, [v, C] = _.useState(!1), [f, A] = _.useState("");
|
|
172
172
|
_.useEffect(() => {
|
|
173
173
|
r({
|
|
174
174
|
accounts: i,
|
|
175
|
-
dateRange: { start:
|
|
175
|
+
dateRange: { start: J(E(), 90), end: me(E()) },
|
|
176
176
|
custom: (u) => u.repeating_transaction_guid === t.guid
|
|
177
177
|
});
|
|
178
178
|
}, [t]);
|
|
@@ -198,12 +198,12 @@ const re = ({
|
|
|
198
198
|
/* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: h }),
|
|
199
199
|
/* @__PURE__ */ c(G, { color: D ? "success.main" : "text.primary", sx: { my: 4 }, variant: "h1", children: [
|
|
200
200
|
D ? "+" : "",
|
|
201
|
-
|
|
201
|
+
H(m, "0,0.00")
|
|
202
202
|
] }),
|
|
203
|
-
/* @__PURE__ */ e(S, { color: "text.secondary", variant: "body2", children: `${o.next_payment_date}: ${
|
|
204
|
-
|
|
203
|
+
/* @__PURE__ */ e(S, { color: "text.secondary", variant: "body2", children: `${o.next_payment_date}: ${Ee(
|
|
204
|
+
Z(
|
|
205
205
|
t.recurrence_type,
|
|
206
|
-
|
|
206
|
+
pe(t.predicted_occurs_on),
|
|
207
207
|
t.recurrence_day
|
|
208
208
|
),
|
|
209
209
|
Le.MONTH_DAY_YEAR
|
|
@@ -236,18 +236,18 @@ const re = ({
|
|
|
236
236
|
/* @__PURE__ */ e(T, {})
|
|
237
237
|
] }),
|
|
238
238
|
/* @__PURE__ */ e(
|
|
239
|
-
|
|
239
|
+
V,
|
|
240
240
|
{
|
|
241
241
|
color: "error",
|
|
242
242
|
onClick: U,
|
|
243
|
-
startIcon: /* @__PURE__ */ e(
|
|
243
|
+
startIcon: /* @__PURE__ */ e(ye, {}),
|
|
244
244
|
sx: { mx: 24, my: 16 },
|
|
245
245
|
variant: "text",
|
|
246
246
|
children: D ? o.delete_income_title : o.delete_expense_title
|
|
247
247
|
}
|
|
248
248
|
),
|
|
249
249
|
/* @__PURE__ */ e(S, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "body1", children: o.paid_transactions }),
|
|
250
|
-
/* @__PURE__ */ e(
|
|
250
|
+
/* @__PURE__ */ e(ee, { height: "30dvh", onClick: A }),
|
|
251
251
|
/* @__PURE__ */ e(
|
|
252
252
|
N,
|
|
253
253
|
{
|
|
@@ -255,7 +255,7 @@ const re = ({
|
|
|
255
255
|
isOpen: !!f && !!y,
|
|
256
256
|
onClose: () => A(""),
|
|
257
257
|
title: o.transaction_details_drawer_title,
|
|
258
|
-
children: y && /* @__PURE__ */ e(
|
|
258
|
+
children: y && /* @__PURE__ */ e(xe, { transaction: y })
|
|
259
259
|
}
|
|
260
260
|
),
|
|
261
261
|
/* @__PURE__ */ e(
|
|
@@ -279,7 +279,7 @@ const re = ({
|
|
|
279
279
|
const { recurring: o } = w(), [i, s] = _.useState(!1), d = _.useMemo(
|
|
280
280
|
() => t.transactions.length === 0 ? "" : t.transactions[0].category_guid || "",
|
|
281
281
|
[t]
|
|
282
|
-
), r = t.account?.displayName || "", a = t.repeating_transaction_type === L.Income, m =
|
|
282
|
+
), r = t.account?.displayName || "", a = t.repeating_transaction_type === L.Income, m = X(o, t, !0);
|
|
283
283
|
return /* @__PURE__ */ c(ce, { disableGutters: !0, disablePadding: !0, children: [
|
|
284
284
|
/* @__PURE__ */ c(le, { onClick: () => {
|
|
285
285
|
n(t), s(!0);
|
|
@@ -315,7 +315,7 @@ const re = ({
|
|
|
315
315
|
variant: "body1",
|
|
316
316
|
children: [
|
|
317
317
|
a ? "+" : "",
|
|
318
|
-
|
|
318
|
+
H(t.amount, "0,0.00")
|
|
319
319
|
]
|
|
320
320
|
}
|
|
321
321
|
),
|
|
@@ -361,7 +361,7 @@ const re = ({
|
|
|
361
361
|
onSearch: o,
|
|
362
362
|
onSelected: i
|
|
363
363
|
}) => {
|
|
364
|
-
const { recurring: s } = w(), { searchValue: d, setSearchValue: r } =
|
|
364
|
+
const { recurring: s } = w(), { searchValue: d, setSearchValue: r } = ge();
|
|
365
365
|
return /* @__PURE__ */ c(p, { sx: { bgcolor: n, gap: 16, pt: 8 }, children: [
|
|
366
366
|
t && /* @__PURE__ */ e(G, { sx: { mx: 24 }, children: t }),
|
|
367
367
|
/* @__PURE__ */ e(
|
|
@@ -377,7 +377,7 @@ const re = ({
|
|
|
377
377
|
}
|
|
378
378
|
),
|
|
379
379
|
/* @__PURE__ */ e(
|
|
380
|
-
|
|
380
|
+
ee,
|
|
381
381
|
{
|
|
382
382
|
bgcolor: n,
|
|
383
383
|
filter: (a) => !!a.merchant_guid,
|
|
@@ -402,8 +402,8 @@ const re = ({
|
|
|
402
402
|
const { recurring: m } = w();
|
|
403
403
|
return /* @__PURE__ */ c(p, { bgcolor: n, gap: 24, height: "100%", children: [
|
|
404
404
|
/* @__PURE__ */ c(p, { children: [
|
|
405
|
-
/* @__PURE__ */ e(
|
|
406
|
-
/* @__PURE__ */ e(
|
|
405
|
+
/* @__PURE__ */ e(Ce, { bgcolor: n, children: Me(a.date) }),
|
|
406
|
+
/* @__PURE__ */ e(be, { transaction: a })
|
|
407
407
|
] }),
|
|
408
408
|
/* @__PURE__ */ c(F, { children: [
|
|
409
409
|
/* @__PURE__ */ e(S, { bold: !0, sx: { mx: 24 }, variant: "body1", children: m.payment_schedule }),
|
|
@@ -427,7 +427,7 @@ const re = ({
|
|
|
427
427
|
label: t,
|
|
428
428
|
onAddRecurringTransaction: o = () => null
|
|
429
429
|
}) => {
|
|
430
|
-
const { recurring: i } = w(), { filter: s, setFilter: d, transactions: r } =
|
|
430
|
+
const { recurring: i } = w(), { filter: s, setFilter: d, transactions: r } = te(), { addRepeatingTransaction: a } = Y(), { user: m } = Re(), [h, g] = _.useState(!1), [v, C] = _.useState(""), [f, A] = _.useState(l.EveryMonth), [y, D] = _.useState(1), [b, U] = _.useState(15), u = _.useMemo(
|
|
431
431
|
() => r.find((x) => x.guid === v),
|
|
432
432
|
[v, r]
|
|
433
433
|
), ae = () => {
|
|
@@ -438,7 +438,7 @@ const re = ({
|
|
|
438
438
|
return;
|
|
439
439
|
}
|
|
440
440
|
o();
|
|
441
|
-
const x =
|
|
441
|
+
const x = Z(f, ke(u.date), y), R = {
|
|
442
442
|
account_guid: u.account_guid,
|
|
443
443
|
amount: u.amount,
|
|
444
444
|
created_by: 0,
|
|
@@ -453,12 +453,12 @@ const re = ({
|
|
|
453
453
|
transaction_type: u.transaction_type,
|
|
454
454
|
user_guid: m.guid
|
|
455
455
|
};
|
|
456
|
-
await a(
|
|
456
|
+
await a(R, u), K();
|
|
457
457
|
}, K = () => {
|
|
458
458
|
C(""), g(!1);
|
|
459
459
|
};
|
|
460
460
|
return /* @__PURE__ */ c(k, { children: [
|
|
461
|
-
/* @__PURE__ */ e(
|
|
461
|
+
/* @__PURE__ */ e(V, { onClick: ae, startIcon: /* @__PURE__ */ e(he, { size: 24 }), variant: "contained", children: t }),
|
|
462
462
|
/* @__PURE__ */ e(
|
|
463
463
|
N,
|
|
464
464
|
{
|
|
@@ -473,7 +473,7 @@ const re = ({
|
|
|
473
473
|
onSearch: (x) => {
|
|
474
474
|
d({
|
|
475
475
|
...s,
|
|
476
|
-
custom: (
|
|
476
|
+
custom: (R) => n ? x ? qe(R, x) : W(R) : x ? ze(R, x) : B(R)
|
|
477
477
|
});
|
|
478
478
|
},
|
|
479
479
|
onSelected: (x) => C(x)
|
|
@@ -509,7 +509,7 @@ const re = ({
|
|
|
509
509
|
({ zeroStateFor: n }) => {
|
|
510
510
|
const { recurring: t } = w(), { onEvent: o } = P(), i = n === "income", s = i ? t.recurring_setting_zero_state_income_title : t.recurring_setting_zero_state_expenses_title, d = i ? t.recurring_setting_zero_state_income_description : t.recurring_setting_zero_state_expenses_description, r = i ? t.add_income : t.add_expense;
|
|
511
511
|
return /* @__PURE__ */ c(p, { sx: { alignItems: "center", p: 24, pt: 48 }, children: [
|
|
512
|
-
/* @__PURE__ */ e(
|
|
512
|
+
/* @__PURE__ */ e(fe, { size: 48 }),
|
|
513
513
|
/* @__PURE__ */ e(G, { sx: { my: 8, fontWeight: 600 }, variant: "body1", children: s }),
|
|
514
514
|
/* @__PURE__ */ e(G, { color: "text.secondary", sx: { mb: 32 }, variant: "subtitle2", children: d }),
|
|
515
515
|
/* @__PURE__ */ e(
|
|
@@ -6,7 +6,7 @@ import g from "@mui/material/CardHeader";
|
|
|
6
6
|
import { H3 as u, P as v } from "@mxenabled/mxui";
|
|
7
7
|
import { ChevronRight as W } from "@mxenabled/mx-icons";
|
|
8
8
|
import { u as w } from "./useDimensions-CeDR9V8N.mjs";
|
|
9
|
-
import { W as H } from "./hooks-
|
|
9
|
+
import { W as H } from "./hooks-BaO_gOI6.mjs";
|
|
10
10
|
const D = ({
|
|
11
11
|
children: i,
|
|
12
12
|
className: o,
|
|
@@ -8,7 +8,7 @@ import H from "@mui/material/IconButton";
|
|
|
8
8
|
import { Icon as I, ChevronRight as W } from "@mxenabled/mx-icons";
|
|
9
9
|
import { H3 as y, Text as B, P as j } from "@mxenabled/mxui";
|
|
10
10
|
import { u as w } from "./useDimensions-CeDR9V8N.mjs";
|
|
11
|
-
import { W as M } from "./hooks-
|
|
11
|
+
import { W as M } from "./hooks-BaO_gOI6.mjs";
|
|
12
12
|
const J = ({
|
|
13
13
|
children: a,
|
|
14
14
|
className: m = "mx-cmn-mini-widget",
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { format as b } from "date-fns/format";
|
|
2
|
+
import { fromUnixTime as y } from "date-fns/fromUnixTime";
|
|
3
|
+
import { startOfMonth as _ } from "date-fns/startOfMonth";
|
|
4
|
+
import { subMonths as A } from "date-fns/subMonths";
|
|
5
|
+
import { a as h } from "./AccountUtils-T5_Odvos.mjs";
|
|
6
|
+
import { c as M, d as T, a as N } from "./Account-BaJmiJAG.mjs";
|
|
7
|
+
const f = 13, W = (e, s) => e.filter((n) => {
|
|
8
|
+
const { is_closed: i, is_deleted: r, is_hidden: t, is_manual: o } = n;
|
|
9
|
+
return i || r || t ? !1 : o || !n.guid ? !0 : s.some((c) => e.some((g) => c.guid === g.member_guid));
|
|
10
|
+
}), G = (e, s) => [...e, ...s], R = (e) => {
|
|
11
|
+
if (e && e.length > 0)
|
|
12
|
+
return e[e.length - 1];
|
|
13
|
+
}, U = (e, s) => e.year_month - s.year_month, L = () => Array.from({ length: f }, (e, s) => Math.floor(_(A(/* @__PURE__ */ new Date(), s)).getTime() / 1e3)).sort(), j = (e, s, n) => !e.length || !s.length ? [] : L().reduceRight((r, t) => {
|
|
14
|
+
const o = s.filter(
|
|
15
|
+
({ year_month: a }) => a === parseInt(b(y(t), "yyyyMM"))
|
|
16
|
+
), c = e.map((a) => {
|
|
17
|
+
const l = o.find((u) => u.account_guid === a.guid), m = {
|
|
18
|
+
change: 0,
|
|
19
|
+
guid: a.guid,
|
|
20
|
+
name: a.name,
|
|
21
|
+
type: a.account_type,
|
|
22
|
+
balance: 0
|
|
23
|
+
};
|
|
24
|
+
if (!l && r.length === 0 && !a.balance) return m;
|
|
25
|
+
if (!l && r.length === 0)
|
|
26
|
+
return {
|
|
27
|
+
...m,
|
|
28
|
+
value: h(a) ? -(a.balance ?? 0) : a.balance ?? 0
|
|
29
|
+
};
|
|
30
|
+
if (!l) {
|
|
31
|
+
const u = r[0].accounts.find((p) => p.guid === a.guid);
|
|
32
|
+
return u || m;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
change: l.transaction_total,
|
|
36
|
+
guid: a.guid,
|
|
37
|
+
name: a.name,
|
|
38
|
+
type: a.account_type,
|
|
39
|
+
value: l.balance
|
|
40
|
+
};
|
|
41
|
+
}), { y: g, change: d } = c.reduce(
|
|
42
|
+
(a, l) => ({
|
|
43
|
+
y: a.y + (l.value || 0),
|
|
44
|
+
change: a.change + (l.change || 0)
|
|
45
|
+
}),
|
|
46
|
+
{ y: 0, change: 0 }
|
|
47
|
+
);
|
|
48
|
+
return [
|
|
49
|
+
{
|
|
50
|
+
accounts: c,
|
|
51
|
+
x: t,
|
|
52
|
+
y: g,
|
|
53
|
+
change: d
|
|
54
|
+
},
|
|
55
|
+
...r
|
|
56
|
+
];
|
|
57
|
+
}, []).slice(f - n), w = (e) => {
|
|
58
|
+
const s = [], n = [];
|
|
59
|
+
let i = 0, r = 0;
|
|
60
|
+
return e?.accounts.forEach((t) => {
|
|
61
|
+
t.change > 0 && (s.push({ accountName: t.name, gain: t.change }), i += t.change), t.change < 0 && (n.push({ accountName: t.name, loss: t.change }), r += t.change);
|
|
62
|
+
}), { netWorth: e, gains: s, losses: n, totalGains: i, totalLosses: r };
|
|
63
|
+
}, x = (e) => {
|
|
64
|
+
const s = [], n = [];
|
|
65
|
+
let i = 0, r = 0;
|
|
66
|
+
return e.forEach((t) => {
|
|
67
|
+
if (h(t)) {
|
|
68
|
+
const o = t.balance ?? 0;
|
|
69
|
+
n.push({ accountName: t.name, accountType: t.account_type, balance: o }), r += o;
|
|
70
|
+
} else {
|
|
71
|
+
const o = t.balance ?? 0;
|
|
72
|
+
s.push({ accountName: t.name, accountType: t.account_type, balance: o }), i += o;
|
|
73
|
+
}
|
|
74
|
+
}), { assets: s, liabilities: n, totalAssets: i, totalLiabilities: r };
|
|
75
|
+
}, z = (e) => {
|
|
76
|
+
const s = e.reduce((n, i) => {
|
|
77
|
+
const r = i.accountType;
|
|
78
|
+
return n[r] || (n[r] = []), n[r].push(i), n;
|
|
79
|
+
}, {});
|
|
80
|
+
return Object.entries(s).map(([n, i]) => ({
|
|
81
|
+
icon: T[+n] || N[+n],
|
|
82
|
+
name: M[+n],
|
|
83
|
+
accounts: i
|
|
84
|
+
}));
|
|
85
|
+
};
|
|
86
|
+
export {
|
|
87
|
+
R as a,
|
|
88
|
+
j as b,
|
|
89
|
+
w as c,
|
|
90
|
+
x as d,
|
|
91
|
+
G as e,
|
|
92
|
+
W as f,
|
|
93
|
+
z as g,
|
|
94
|
+
U as s
|
|
95
|
+
};
|
|
@@ -14,13 +14,13 @@ import { startOfMonth as oe } from "date-fns/startOfMonth";
|
|
|
14
14
|
import { DateCalendar as se } from "@mui/x-date-pickers/DateCalendar";
|
|
15
15
|
import { LocalizationProvider as ae } from "@mui/x-date-pickers/LocalizationProvider";
|
|
16
16
|
import { AdapterDateFns as ce } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
17
|
+
import { b as le } from "./Localization-DnoVyBNK.mjs";
|
|
18
|
+
import { b as re, f as de } from "./NumberFormatting--XMeeBfr.mjs";
|
|
19
|
+
import { u as k, A as T, C as A, d as J, g as me, a as q, b as he } from "./hooks-BaO_gOI6.mjs";
|
|
20
|
+
import { A as ue, N as b } from "./Notification-DTNYSd8P.mjs";
|
|
21
21
|
import { T as R, a as D } from "./ToggleListItem-BLu_fWA2.mjs";
|
|
22
22
|
import { D as B } from "./Dialog-iLlBR8TG.mjs";
|
|
23
|
-
import { C as _e } from "./CurrencyInput-
|
|
23
|
+
import { C as _e } from "./CurrencyInput-B59ugxPN.mjs";
|
|
24
24
|
import { u as pe } from "./useScreenSize-CeFhWTt_.mjs";
|
|
25
25
|
import { D as K } from "./Drawer-XPaLYjiO.mjs";
|
|
26
26
|
import fe from "@mui/material/Collapse";
|
|
@@ -31,8 +31,8 @@ import j from "@mui/material/Button";
|
|
|
31
31
|
import U from "@mui/material/TextField";
|
|
32
32
|
import { u as be } from "./useDimensions-CeDR9V8N.mjs";
|
|
33
33
|
import Q from "@mui/material/styles/useTheme";
|
|
34
|
-
import { u as xe } from "./useInsightsEnabled-
|
|
35
|
-
import { u as Ce } from "./useWidgetLoadTimer-
|
|
34
|
+
import { u as xe } from "./useInsightsEnabled-DaNLPmUU.mjs";
|
|
35
|
+
import { u as Ce } from "./useWidgetLoadTimer-CJb-RELP.mjs";
|
|
36
36
|
import { L as ve } from "./Loader-CxeBwuPG.mjs";
|
|
37
37
|
const Te = C(() => {
|
|
38
38
|
const { common: n, settings: t } = k(), { sendEmailVerification: s } = T(), { user: l } = A(), i = Q(), [r, a] = p.useState(!1), o = () => {
|
|
@@ -175,12 +175,12 @@ const Te = C(() => {
|
|
|
175
175
|
] });
|
|
176
176
|
}), ke = C(
|
|
177
177
|
({ onProfileUpdated: n, profile: t }) => {
|
|
178
|
-
const { common: s, recurring: l, settings: i } = k(), { updateAccount: r } = J(), a = t.notification_type ===
|
|
178
|
+
const { common: s, recurring: l, settings: i } = k(), { updateAccount: r } = J(), a = t.notification_type === ue.DebtPaymentReminder, [o, u] = p.useState(!1), [d, f] = p.useState(t.threshold || 0), [_, y] = p.useState(
|
|
179
179
|
t.account?.day_payment_is_due || 0
|
|
180
|
-
), m = t.account?.name || t.account?.feed_name || "", g = t.account?.day_payment_is_due ?
|
|
180
|
+
), m = t.account?.name || t.account?.feed_name || "", g = t.account?.day_payment_is_due ? le(
|
|
181
181
|
i.notification_debt_payment_date,
|
|
182
|
-
|
|
183
|
-
) : i.notification_debt_payment_zero_state, P = a ? g :
|
|
182
|
+
re(t.account?.day_payment_is_due)
|
|
183
|
+
) : i.notification_debt_payment_zero_state, P = a ? g : de(t.threshold ?? 0, "0,0"), I = async () => {
|
|
184
184
|
a && t.account ? await r({ ...t.account, day_payment_is_due: _ }) : n({ ...t, threshold: d });
|
|
185
185
|
};
|
|
186
186
|
return /* @__PURE__ */ c(h, { children: [
|
|
@@ -449,7 +449,7 @@ const Te = C(() => {
|
|
|
449
449
|
const { budgetProfiles: n } = T();
|
|
450
450
|
return /* @__PURE__ */ e(h, { children: n.map((t) => /* @__PURE__ */ e(X, { profile: t }, t.guid)) });
|
|
451
451
|
}), Se = C(() => {
|
|
452
|
-
const { onEvent: n } =
|
|
452
|
+
const { onEvent: n } = me(), { settings: t } = k(), {
|
|
453
453
|
clientCommunicationProfile: s,
|
|
454
454
|
updateUserCommunicationProfile: l,
|
|
455
455
|
userCommunicationsProfile: i
|
|
@@ -602,7 +602,7 @@ const Te = C(() => {
|
|
|
602
602
|
showPersonalDetails: t = !1,
|
|
603
603
|
view: s
|
|
604
604
|
}) => {
|
|
605
|
-
const { config: l } = q(), { settings: i } = k(), { isInitialized: r } =
|
|
605
|
+
const { config: l } = q(), { settings: i } = k(), { isInitialized: r } = he(), { isAccountDataLoaded: a, loadAccountData: o } = J(), { clientCommunicationProfile: u, loadNotificationProfiles: d } = T(), f = xe(), [_, y] = p.useState(!1), [m, g] = p.useState(
|
|
606
606
|
void 0
|
|
607
607
|
);
|
|
608
608
|
if (n.length > 0 && f && n.push(b.Insights), Ce({
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { fromUnixTime as n, isSameDay as a } from "date-fns";
|
|
2
|
+
import { I as c } from "./Notification-DTNYSd8P.mjs";
|
|
3
|
+
let o = null;
|
|
4
|
+
const u = () => (o || (o = new Set(
|
|
5
|
+
Object.values(c).filter(
|
|
6
|
+
(e) => typeof e == "number"
|
|
7
|
+
)
|
|
8
|
+
)), o), _ = (e, t) => {
|
|
9
|
+
const i = n(t[e].delivered_at), r = n(t[e - 1]?.delivered_at);
|
|
10
|
+
return !a(i, r);
|
|
11
|
+
};
|
|
12
|
+
function m(e) {
|
|
13
|
+
const i = Math.floor(Date.now() / 1e3);
|
|
14
|
+
return e.filter((r) => {
|
|
15
|
+
const s = r.delivered_at;
|
|
16
|
+
return i - s <= 2592e3;
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
m as f,
|
|
21
|
+
u as g,
|
|
22
|
+
_ as s
|
|
23
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import o from "numeral";
|
|
2
|
-
import { g as a } from "./Localization-
|
|
2
|
+
import { g as a } from "./Localization-DnoVyBNK.mjs";
|
|
3
3
|
const D = 9999999999e-2;
|
|
4
4
|
var c = /* @__PURE__ */ ((t) => (t.CAD = "CAD", t.USD = "USD", t))(c || {});
|
|
5
5
|
const h = (t, r, e) => {
|
|
@@ -42,6 +42,7 @@ export {
|
|
|
42
42
|
N as a,
|
|
43
43
|
P as b,
|
|
44
44
|
h as c,
|
|
45
|
+
u as d,
|
|
45
46
|
w as f,
|
|
46
47
|
$ as g,
|
|
47
48
|
f as i
|
|
@@ -2,10 +2,10 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import _ from "react";
|
|
3
3
|
import { observer as p } from "mobx-react-lite";
|
|
4
4
|
import v from "@mui/material/TextField";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { C as f } from "./CurrencyInput-
|
|
5
|
+
import { a as T, f as S } from "./NumberFormatting--XMeeBfr.mjs";
|
|
6
|
+
import { u as y, k as h } from "./hooks-BaO_gOI6.mjs";
|
|
7
|
+
import { L as b } from "./ListItemAction-DGjHxNDJ.mjs";
|
|
8
|
+
import { C as f } from "./CurrencyInput-B59ugxPN.mjs";
|
|
9
9
|
const F = p(({ goal: e }) => {
|
|
10
10
|
const { goals: n } = y(), { setAlert: r, setSelectedGoal: l, updateGoal: m } = h(), [t, s] = _.useState(e.interest_rate ?? 0), c = !e.guid, i = t < 0, d = async () => {
|
|
11
11
|
const a = { ...e, interest_rate: t };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx as e, Fragment as
|
|
1
|
+
import { jsx as e, Fragment as x, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
import u from "react";
|
|
3
3
|
import { observer as h } from "mobx-react-lite";
|
|
4
4
|
import c from "@mui/material/Box";
|
|
5
5
|
import p from "@mui/material/Tab";
|
|
6
|
-
import
|
|
6
|
+
import R from "@mui/material/Tabs";
|
|
7
7
|
import d from "@mui/material/Divider";
|
|
8
|
-
import
|
|
8
|
+
import b from "@mui/material/List";
|
|
9
9
|
import T from "@mui/material/Stack";
|
|
10
|
-
import { R as C, A as S, a as E, M as v } from "./ManageIncome-
|
|
11
|
-
import { u as _, i as A, g as f } from "./hooks-
|
|
12
|
-
import {
|
|
10
|
+
import { R as C, A as S, a as E, M as v } from "./ManageIncome-DwylSiWs.mjs";
|
|
11
|
+
import { u as _, i as A, g as f } from "./hooks-BaO_gOI6.mjs";
|
|
12
|
+
import { R as y, F as N } from "./RecurringTransactionsUtil-B3rLEx_g.mjs";
|
|
13
13
|
import { A as m } from "./Analytics-CzGzz_sE.mjs";
|
|
14
14
|
const I = h(() => {
|
|
15
15
|
const { recurring: g } = _(), { detailedRepeatingTransactions: n } = A(), { onEvent: a } = f(), l = (r) => {
|
|
@@ -21,7 +21,7 @@ const I = h(() => {
|
|
|
21
21
|
}, i = n.filter(
|
|
22
22
|
(r) => r.repeating_transaction_type !== y.Income && (r.transactions.length > 0 || r.recurrence_type === N.EveryYear)
|
|
23
23
|
);
|
|
24
|
-
return /* @__PURE__ */ e(
|
|
24
|
+
return /* @__PURE__ */ e(x, { children: i.length !== 0 ? /* @__PURE__ */ t(
|
|
25
25
|
T,
|
|
26
26
|
{
|
|
27
27
|
sx: {
|
|
@@ -29,7 +29,7 @@ const I = h(() => {
|
|
|
29
29
|
maxHeight: "calc(100vh - 109px)"
|
|
30
30
|
},
|
|
31
31
|
children: [
|
|
32
|
-
/* @__PURE__ */ e(c, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(
|
|
32
|
+
/* @__PURE__ */ e(c, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(b, { sx: { bgcolor: "background.paper" }, children: i.map((r, s) => /* @__PURE__ */ t(u.Fragment, { children: [
|
|
33
33
|
/* @__PURE__ */ e(C, { onClick: l, repeatingTransaction: r }),
|
|
34
34
|
/* @__PURE__ */ e(
|
|
35
35
|
d,
|
|
@@ -62,7 +62,7 @@ const I = h(() => {
|
|
|
62
62
|
const [n, a] = u.useState(g), { onEvent: l } = f(), { recurring: o } = _();
|
|
63
63
|
return /* @__PURE__ */ t(c, { bgcolor: "background.default", height: "100%", children: [
|
|
64
64
|
/* @__PURE__ */ t(
|
|
65
|
-
|
|
65
|
+
R,
|
|
66
66
|
{
|
|
67
67
|
onChange: (r, s) => {
|
|
68
68
|
a(s), l(
|