@mx-cartographer/experiences 7.3.2 → 7.4.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-YwUMFz93.mjs → Account-01wOyrH1.mjs} +1 -1
- package/dist/{AccountDetailsContent-BgCST7mK.mjs → AccountDetailsContent-gke-5zMF.mjs} +10 -10
- package/dist/{AccountDetailsHeader-jAFWoHj7.mjs → AccountDetailsHeader-CRzfuFA2.mjs} +7 -7
- package/dist/{AccountFields-DPxMPBF0.mjs → AccountFields-CPkGZ3SD.mjs} +5 -5
- package/dist/{AccountListItem-D6rWAreC.mjs → AccountListItem-D4uG9yC-.mjs} +4 -4
- package/dist/{AccountStore-B5E98oM1.mjs → AccountStore-C1zMBzHq.mjs} +40 -29
- package/dist/{Accounts-UIlYCmHb.mjs → Accounts-D7QljYas.mjs} +1 -1
- package/dist/{BudgetUtil-CXvenbdN.mjs → BudgetUtil-wjoNuj7B.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-Buy70Y3V.mjs → CategorySelectorDrawer-DqJK_rrL.mjs} +3 -3
- package/dist/{CategoryStore-BEdFs69_.mjs → CategoryStore-U7hOZAbP.mjs} +1 -1
- package/dist/{CategoryUtil-BR3H5i6n.mjs → CategoryUtil-DUM8NuGO.mjs} +1 -1
- package/dist/{ConnectDrawer-CbxHKlRv.mjs → ConnectDrawer-CuUj16NH.mjs} +2 -2
- package/dist/{ConnectionsDrawer-C6kanU7I.mjs → ConnectionsDrawer-Bz4uwdFE.mjs} +3 -3
- package/dist/{CurrencyInput-lSC7oPDg.mjs → CurrencyInput-xH-hqry9.mjs} +1 -1
- package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CBdcsyuk.mjs} +3 -3
- package/dist/{DebtsStore-DgIcphe_.mjs → DebtsStore-Bu8rRRSL.mjs} +1 -1
- package/dist/{Dialog-CWW597AF.mjs → Dialog-BPTr3qHE.mjs} +2 -2
- package/dist/Drawer-BEtCk82g.mjs +163 -0
- package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
- package/dist/{ExportCsvAction-DNSgmdyv.mjs → ExportCsvAction-DzTrtPzk.mjs} +3 -3
- package/dist/FinstrongStore-CfD6bbJk.mjs +441 -0
- package/dist/{GoalStore-CAlmSu4U.mjs → GoalStore-j6QYHgEa.mjs} +3 -3
- package/dist/{Help-hi9I9EYP.mjs → Help-BnPXM_N2.mjs} +2 -2
- package/dist/LineChart-DttMO7uS.mjs +581 -0
- package/dist/{ListItemAction-BmL5buOf.mjs → ListItemAction-uobBrm_a.mjs} +10 -10
- package/dist/{ManageIncome-Cypo9qY4.mjs → ManageIncome-CU5C0AeO.mjs} +97 -95
- package/dist/{MicroWidgetContainer-CFdMGJKg.mjs → MicroWidgetContainer-DEiRnYVa.mjs} +1 -1
- package/dist/{MiniWidgetContainer-BdgBvpga.mjs → MiniWidgetContainer-CmXpTylX.mjs} +1 -1
- package/dist/{NetWorthStore-CxqIxAgN.mjs → NetWorthStore-CpL_kqvx.mjs} +2 -2
- package/dist/{NotificationSettings-DxytNHlN.mjs → NotificationSettings-DI5B1spM.mjs} +5 -5
- package/dist/{OriginalBalanceAction-V6FEoIDe.mjs → OriginalBalanceAction-CCmnsd7y.mjs} +3 -3
- package/dist/{RecurringSettings-iIupYxJW.mjs → RecurringSettings-Cm5Bqcai.mjs} +4 -4
- package/dist/{RecurringTransactions-ej39mgA6.mjs → RecurringTransactions-CngsRZ3K.mjs} +45 -44
- package/dist/{RecurringTransactionsStore-BiwCzScZ.mjs → RecurringTransactionsStore-Bc1wCiNB.mjs} +1 -1
- package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-BuJ03S9d.mjs} +16 -16
- package/dist/SpendingLegend-B2BYr8B4.mjs +193 -0
- package/dist/{TransactionDetails-BUoNbsu-.mjs → TransactionDetails-CtbBBSoU.mjs} +396 -386
- package/dist/{TransactionStore-CtGTg0XS.mjs → TransactionStore-Dz-G8Wd0.mjs} +3 -3
- package/dist/{TrendsStore-5PvDT_o6.mjs → TrendsStore-BW9FGQeE.mjs} +1 -1
- package/dist/{User-Bj34_i8g.mjs → User-wXzDI4M8.mjs} +2 -2
- package/dist/{WidgetContainer-BnTgAfQn.mjs → WidgetContainer-6dsjtOVg.mjs} +4 -4
- package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
- package/dist/accounts/index.es.js +17 -17
- package/dist/accounts/stores/AccountStore.d.ts +2 -0
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +13 -13
- package/dist/cashflow/index.es.js +49 -49
- package/dist/categories/index.es.js +2 -2
- package/dist/common/components/Select.d.ts +4 -2
- package/dist/common/components/charts/LineChart.d.ts +12 -2
- package/dist/common/components/charts/linechart/CustomLegend.d.ts +3 -1
- package/dist/common/components/charts/linechart/CustomMark.d.ts +4 -0
- package/dist/common/components/drawer/Drawer.d.ts +3 -0
- package/dist/common/components/drawer/Footer.d.ts +17 -0
- package/dist/common/index.es.js +33 -33
- package/dist/common/types/Finstrong.d.ts +54 -0
- package/dist/common/types/Widgets.d.ts +1 -0
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/FinstrongCopy.d.ts +105 -2
- package/dist/common/types/localization/GoalsCopy.d.ts +1 -0
- package/dist/dashboard/index.es.js +2 -2
- package/dist/debts/index.es.js +11 -11
- package/dist/{exportTransactionsToCSV-C4PkIYP6.mjs → exportTransactionsToCSV-Cz2t0lmA.mjs} +2 -2
- package/dist/finstrong/FinstrongWidget.d.ts +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
- package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
- package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
- package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
- package/dist/finstrong/components/FinancialStrengthGraph.d.ts +7 -1
- package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
- package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
- package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +4 -1
- package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +4 -3
- package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
- package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
- package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
- package/dist/finstrong/components/ProgressBar.d.ts +15 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
- package/dist/finstrong/components/StatusChip.d.ts +5 -0
- package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +17 -0
- package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
- package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +25 -0
- package/dist/finstrong/components/shared/DialScoreCard.d.ts +7 -1
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +28 -0
- package/dist/finstrong/components/shared/LineGraph.d.ts +7 -0
- package/dist/finstrong/components/shared/TotalCard.d.ts +8 -0
- package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
- package/dist/finstrong/constants/index.d.ts +20 -0
- package/dist/finstrong/index.es.js +3174 -1069
- package/dist/finstrong/stores/FinstrongStore.d.ts +21 -2
- package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
- package/dist/goals/index.es.js +15 -15
- package/dist/help/index.es.js +3 -3
- package/dist/{hooks-Cy8JnjCg.mjs → hooks-C41HAxM5.mjs} +4 -4
- package/dist/investments/index.es.js +5 -5
- package/dist/merchants/index.es.js +1 -1
- package/dist/networth/index.es.js +33 -33
- package/dist/notifications/index.es.js +4 -4
- package/dist/recurringtransactions/index.es.js +43 -43
- package/dist/settings/index.es.js +8 -8
- package/dist/spending/index.es.js +261 -436
- package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
- package/dist/transactions/index.es.js +15 -15
- package/dist/trends/index.es.js +16 -16
- package/dist/{useAccountDisplayName-D6sQsNNQ.mjs → useAccountDisplayName-CMMlIOXF.mjs} +2 -2
- package/dist/{useInsightsEnabled-BxytCjq5.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
- package/package.json +1 -1
- package/dist/Drawer-kEE73B87.mjs +0 -113
- package/dist/FinstrongStore-CL7t5lBL.mjs +0 -101
- package/dist/LineChart-eK4IQImU.mjs +0 -541
- package/dist/finstrong/utils/Finstrong.d.ts +0 -6
|
@@ -8,13 +8,13 @@ import { startOfToday as ue } from "date-fns/startOfToday";
|
|
|
8
8
|
import { subDays as me } from "date-fns/subDays";
|
|
9
9
|
import ae from "@mui/material/Skeleton";
|
|
10
10
|
import c from "@mui/material/Stack";
|
|
11
|
-
import { R as Ee } from "../RecurringSettings-
|
|
12
|
-
import { M as Gn } from "../RecurringSettings-
|
|
11
|
+
import { R as Ee } from "../RecurringSettings-Cm5Bqcai.mjs";
|
|
12
|
+
import { M as Gn } from "../RecurringSettings-Cm5Bqcai.mjs";
|
|
13
13
|
import { addMonths as ze } from "date-fns/addMonths";
|
|
14
14
|
import { subMonths as Fe } from "date-fns/subMonths";
|
|
15
15
|
import { isBefore as Ue } from "date-fns/isBefore";
|
|
16
16
|
import se from "@mui/material/Unstable_Grid2";
|
|
17
|
-
import
|
|
17
|
+
import De from "@mui/material/IconButton";
|
|
18
18
|
import Se from "@mui/material/Tab";
|
|
19
19
|
import je from "@mui/material/Tabs";
|
|
20
20
|
import { Schedule as Ke, MonetizationOn as Ye, Cancel as Ge, CheckCircle as Ne, ChevronLeft as qe, ChevronRight as Ve, CurrencyExchange as Xe } from "@mxenabled/mx-icons";
|
|
@@ -28,11 +28,11 @@ import { isSameDay as nt } from "date-fns/isSameDay";
|
|
|
28
28
|
import it from "@mui/material/Badge";
|
|
29
29
|
import { PickersDay as rt } from "@mui/x-date-pickers/PickersDay";
|
|
30
30
|
import { I as X } from "../IconBacking-B9oC6uL2.mjs";
|
|
31
|
-
import { u as T, b as Z, j as v, g as J, q as Oe, d as he, h as fe, n as ot } from "../hooks-
|
|
32
|
-
import { c as L, a as
|
|
33
|
-
import { T as P } from "../RecurringTransactionsStore-
|
|
34
|
-
import { R as On } from "../RecurringTransactionsStore-
|
|
35
|
-
import { A as I, W as st } from "../WidgetContainer-
|
|
31
|
+
import { u as T, b as Z, j as v, g as J, q as Oe, d as he, h as fe, n as ot } from "../hooks-C41HAxM5.mjs";
|
|
32
|
+
import { c as L, a as D, g as Ie, f as at } from "../RecurringTransactions-CngsRZ3K.mjs";
|
|
33
|
+
import { T as P } from "../RecurringTransactionsStore-Bc1wCiNB.mjs";
|
|
34
|
+
import { R as On } from "../RecurringTransactionsStore-Bc1wCiNB.mjs";
|
|
35
|
+
import { A as I, W as st } from "../WidgetContainer-6dsjtOVg.mjs";
|
|
36
36
|
import ct from "@mui/material/Button";
|
|
37
37
|
import le from "@mui/material/Divider";
|
|
38
38
|
import ve from "@mui/material/List";
|
|
@@ -41,19 +41,19 @@ import lt from "@mui/material/ListSubheader";
|
|
|
41
41
|
import dt from "@mui/material/ListItemAvatar";
|
|
42
42
|
import ut from "@mui/material/ListItemButton";
|
|
43
43
|
import mt from "@mui/material/ListItemText";
|
|
44
|
-
import { b as pt } from "../ManageIncome-
|
|
45
|
-
import { c as Wn, M as $n, S as Bn } from "../ManageIncome-
|
|
44
|
+
import { b as pt } from "../ManageIncome-CU5C0AeO.mjs";
|
|
45
|
+
import { c as Wn, M as $n, S as Bn } from "../ManageIncome-CU5C0AeO.mjs";
|
|
46
46
|
import { f as A } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
47
|
-
import { D as xe } from "../Drawer-
|
|
47
|
+
import { D as xe } from "../Drawer-BEtCk82g.mjs";
|
|
48
48
|
import { b as O } from "../Localization-2MODESHW.mjs";
|
|
49
|
-
import { f as E,
|
|
49
|
+
import { f as E, a as G } from "../Dialog-BPTr3qHE.mjs";
|
|
50
50
|
import k from "@mui/material/Box";
|
|
51
51
|
import { S as We } from "../StatusBar-BK_uYHAB.mjs";
|
|
52
52
|
import { u as ye } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
53
53
|
import { L as q } from "../Loader-DUaFpDGv.mjs";
|
|
54
|
-
import { M as gt } from "../MiniWidgetContainer-
|
|
54
|
+
import { M as gt } from "../MiniWidgetContainer-CmXpTylX.mjs";
|
|
55
55
|
import { u as ht } from "../useDimensions-27p2evRx.mjs";
|
|
56
|
-
import { M as ft } from "../MicroWidgetContainer-
|
|
56
|
+
import { M as ft } from "../MicroWidgetContainer-DEiRnYVa.mjs";
|
|
57
57
|
const Q = {
|
|
58
58
|
gridRow: 1,
|
|
59
59
|
gridColumn: 1,
|
|
@@ -72,11 +72,11 @@ const Q = {
|
|
|
72
72
|
).filter(
|
|
73
73
|
(d) => nt(d.occurredOnDate || d.expectedDate, t)
|
|
74
74
|
), m = s.some(
|
|
75
|
-
(d) => d.type !== L.Income && d.status ===
|
|
75
|
+
(d) => d.type !== L.Income && d.status === D.Upcoming
|
|
76
76
|
), u = s.some(
|
|
77
|
-
(d) => d.type !== L.Income && d.status ===
|
|
77
|
+
(d) => d.type !== L.Income && d.status === D.Missed
|
|
78
78
|
), x = s.some(
|
|
79
|
-
(d) => d.type !== L.Income && d.status ===
|
|
79
|
+
(d) => d.type !== L.Income && d.status === D.Paid
|
|
80
80
|
), b = s.some((d) => d.type === L.Income), y = (m ? 1 : 0) + (u ? 1 : 0) + (x ? 1 : 0) + (b ? 1 : 0);
|
|
81
81
|
return /* @__PURE__ */ e(
|
|
82
82
|
it,
|
|
@@ -244,16 +244,16 @@ const Q = {
|
|
|
244
244
|
if (t.type === L.Income)
|
|
245
245
|
return /* @__PURE__ */ e(Ce, {});
|
|
246
246
|
switch (t.status) {
|
|
247
|
-
case
|
|
247
|
+
case D.Missed:
|
|
248
248
|
return /* @__PURE__ */ e(Re, {});
|
|
249
|
-
case
|
|
249
|
+
case D.Paid:
|
|
250
250
|
return /* @__PURE__ */ e(Te, {});
|
|
251
251
|
default:
|
|
252
252
|
return /* @__PURE__ */ e(be, {});
|
|
253
253
|
}
|
|
254
254
|
}, Ct = (t, n) => {
|
|
255
255
|
switch (t.status) {
|
|
256
|
-
case
|
|
256
|
+
case D.Paid:
|
|
257
257
|
return t.expectedDate ? O(
|
|
258
258
|
n.paid_on,
|
|
259
259
|
E(
|
|
@@ -261,12 +261,12 @@ const Q = {
|
|
|
261
261
|
G.MONTH_DAY
|
|
262
262
|
)
|
|
263
263
|
) : n.paid;
|
|
264
|
-
case
|
|
264
|
+
case D.Missed:
|
|
265
265
|
return O(
|
|
266
266
|
n.missed_on,
|
|
267
267
|
E(t.expectedDate, G.MONTH_DAY)
|
|
268
268
|
);
|
|
269
|
-
case
|
|
269
|
+
case D.Upcoming:
|
|
270
270
|
return O(
|
|
271
271
|
n.upcoming_on,
|
|
272
272
|
E(t.expectedDate, G.MONTH_DAY)
|
|
@@ -282,9 +282,9 @@ const Q = {
|
|
|
282
282
|
showOrdinal: r = !1
|
|
283
283
|
}) => {
|
|
284
284
|
const { recurring: a } = T(), { repeatingTransactions: l } = v(), [p, h] = f.useState(!1), s = f.useMemo(
|
|
285
|
-
() => l.find((
|
|
285
|
+
() => l.find((w) => w.guid === t.repeatingTransactionGuid),
|
|
286
286
|
[t, l]
|
|
287
|
-
), m = t.type === L.Income, u = t.status ===
|
|
287
|
+
), m = t.type === L.Income, u = t.status === D.Paid, x = t.status === D.Missed, b = t.status === D.Upcoming;
|
|
288
288
|
let y = a.paid?.toLowerCase();
|
|
289
289
|
return x ? y = a.missed?.toLowerCase() : b && (y = r ? Ie(a, s || {}, !0) : Ie(a, s || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
|
|
290
290
|
/* @__PURE__ */ o(ke, { disableGutters: !0, disablePadding: !0, children: [
|
|
@@ -456,7 +456,7 @@ const Q = {
|
|
|
456
456
|
pastRecurrences: b,
|
|
457
457
|
paidExpenseTotal: y,
|
|
458
458
|
paidIncomeTotal: d,
|
|
459
|
-
selectedDay:
|
|
459
|
+
selectedDay: w,
|
|
460
460
|
selectedDayRecurrences: S,
|
|
461
461
|
setDateRange: F,
|
|
462
462
|
upcomingExpenseTotal: te,
|
|
@@ -502,7 +502,7 @@ const Q = {
|
|
|
502
502
|
) }),
|
|
503
503
|
!i && /* @__PURE__ */ o(c, { direction: "row", gap: 4, children: [
|
|
504
504
|
/* @__PURE__ */ e(
|
|
505
|
-
|
|
505
|
+
De,
|
|
506
506
|
{
|
|
507
507
|
color: "primary",
|
|
508
508
|
disabled: ie,
|
|
@@ -510,7 +510,7 @@ const Q = {
|
|
|
510
510
|
children: /* @__PURE__ */ e(qe, {})
|
|
511
511
|
}
|
|
512
512
|
),
|
|
513
|
-
/* @__PURE__ */ e(
|
|
513
|
+
/* @__PURE__ */ e(De, { color: "primary", onClick: B, children: /* @__PURE__ */ e(Ve, {}) })
|
|
514
514
|
] })
|
|
515
515
|
] }),
|
|
516
516
|
/* @__PURE__ */ e(
|
|
@@ -582,9 +582,9 @@ const Q = {
|
|
|
582
582
|
{
|
|
583
583
|
onRecurrenceClick: K,
|
|
584
584
|
recurrences: S || b,
|
|
585
|
-
title:
|
|
585
|
+
title: w ? O(
|
|
586
586
|
t.day_transactions,
|
|
587
|
-
E(
|
|
587
|
+
E(w, G.MONTH_DAY)
|
|
588
588
|
) : t.past_transactions
|
|
589
589
|
}
|
|
590
590
|
)
|
|
@@ -593,7 +593,7 @@ const Q = {
|
|
|
593
593
|
}
|
|
594
594
|
);
|
|
595
595
|
}), In = R(({ onBackClick: t, sx: n = {} }) => {
|
|
596
|
-
const { accounts: i } = he(), { recurring: r } = T(), { isCopyLoaded: a, isInitialized: l, selectedAccountGuids: p, setSelectedAccounts: h } = Z(), { isDataLoaded: s, loadRepeatingTransactions: m, setDateRange: u } = v(), { setFilter: x } = fe(), { onEvent: b } = J(), { onLoad: y } = ot(), { isMobile: d } = ye(), [
|
|
596
|
+
const { accounts: i } = he(), { recurring: r } = T(), { isCopyLoaded: a, isInitialized: l, selectedAccountGuids: p, setSelectedAccounts: h } = Z(), { isDataLoaded: s, loadRepeatingTransactions: m, setDateRange: u } = v(), { setFilter: x } = fe(), { onEvent: b } = J(), { onLoad: y } = ot(), { isMobile: d } = ye(), [w, S] = f.useState(!1);
|
|
597
597
|
return f.useEffect(() => {
|
|
598
598
|
h(i);
|
|
599
599
|
}, [i]), f.useEffect(() => {
|
|
@@ -631,7 +631,7 @@ const Q = {
|
|
|
631
631
|
xe,
|
|
632
632
|
{
|
|
633
633
|
ariaLabelClose: r.close_drawer_aria,
|
|
634
|
-
isOpen:
|
|
634
|
+
isOpen: w,
|
|
635
635
|
onClose: () => S(!1),
|
|
636
636
|
shouldShowHeaderBorders: !1,
|
|
637
637
|
title: r.action_title,
|
|
@@ -683,7 +683,7 @@ const Q = {
|
|
|
683
683
|
}
|
|
684
684
|
);
|
|
685
685
|
}
|
|
686
|
-
),
|
|
686
|
+
), wt = ({
|
|
687
687
|
upcomingRecurrences: t,
|
|
688
688
|
maxLogos: n = 3
|
|
689
689
|
}) => /* @__PURE__ */ e(c, { sx: { flexDirection: "row", gap: 4 }, children: t?.slice(0, n).map((i, r) => /* @__PURE__ */ e(
|
|
@@ -693,7 +693,7 @@ const Q = {
|
|
|
693
693
|
merchantGuid: i.merchantGuid || ""
|
|
694
694
|
},
|
|
695
695
|
`${i.categoryGuid}-${i.merchantGuid}-${r}`
|
|
696
|
-
)) }),
|
|
696
|
+
)) }), Dt = ({
|
|
697
697
|
upcomingRecurrences: t,
|
|
698
698
|
logoSize: n = 32,
|
|
699
699
|
maxLogos: i = 3
|
|
@@ -767,7 +767,7 @@ const Q = {
|
|
|
767
767
|
loadRepeatingTransactions: b,
|
|
768
768
|
upcomingRecurrences: y,
|
|
769
769
|
expenseTotal: d,
|
|
770
|
-
missedExpenseTotal:
|
|
770
|
+
missedExpenseTotal: w,
|
|
771
771
|
paidExpenseTotal: S,
|
|
772
772
|
repeatingTransactions: F,
|
|
773
773
|
setDateRange: te,
|
|
@@ -790,14 +790,14 @@ const Q = {
|
|
|
790
790
|
const N = [
|
|
791
791
|
{ color: a.palette.success.main, percentage: `${S / d}` }
|
|
792
792
|
];
|
|
793
|
-
return
|
|
793
|
+
return w && N.push({
|
|
794
794
|
color: a.palette.error.main,
|
|
795
|
-
percentage: `${
|
|
795
|
+
percentage: `${w / d}`
|
|
796
796
|
}), N;
|
|
797
797
|
}, [
|
|
798
798
|
S,
|
|
799
799
|
d,
|
|
800
|
-
|
|
800
|
+
w,
|
|
801
801
|
a.palette.success.main,
|
|
802
802
|
a.palette.error.main
|
|
803
803
|
]), B = f.useMemo(() => A(d, d === 0 ? "0,0" : "0,0.00"), [d]), re = () => {
|
|
@@ -807,20 +807,20 @@ const Q = {
|
|
|
807
807
|
};
|
|
808
808
|
if (!s || !n || !U) return /* @__PURE__ */ e(q, { height: 100 });
|
|
809
809
|
const C = 32, oe = y.length > 0, Be = () => oe ? M ? /* @__PURE__ */ e(
|
|
810
|
-
|
|
810
|
+
Dt,
|
|
811
811
|
{
|
|
812
812
|
logoSize: C,
|
|
813
813
|
maxLogos: 3,
|
|
814
814
|
upcomingRecurrences: y.slice(0, 3)
|
|
815
815
|
}
|
|
816
|
-
) : /* @__PURE__ */ e(
|
|
816
|
+
) : /* @__PURE__ */ e(wt, { maxLogos: 3, upcomingRecurrences: y.slice(0, 3) }) : /* @__PURE__ */ e(c, { sx: { width: M ? 64 : 104 } }), Pe = [
|
|
817
817
|
{
|
|
818
818
|
amount: S,
|
|
819
819
|
bgColor: "success.main",
|
|
820
820
|
label: _.paid
|
|
821
821
|
},
|
|
822
822
|
{
|
|
823
|
-
amount:
|
|
823
|
+
amount: w,
|
|
824
824
|
bgColor: "error.main",
|
|
825
825
|
label: _.missed
|
|
826
826
|
},
|
|
@@ -829,15 +829,15 @@ const Q = {
|
|
|
829
829
|
bgColor: "border.light",
|
|
830
830
|
label: _.upcoming
|
|
831
831
|
}
|
|
832
|
-
],
|
|
832
|
+
], we = !F?.length;
|
|
833
833
|
return /* @__PURE__ */ e(
|
|
834
834
|
ft,
|
|
835
835
|
{
|
|
836
836
|
className: "mx-recurring-transaction-microwidget",
|
|
837
|
-
ctaLabel:
|
|
837
|
+
ctaLabel: we ? ie.get_started_cta : _.primary_cta,
|
|
838
838
|
onCTAClick: re,
|
|
839
839
|
title: _.recurring_expenses,
|
|
840
|
-
children:
|
|
840
|
+
children: we ? /* @__PURE__ */ e(_t, {}) : /* @__PURE__ */ o(V, { children: [
|
|
841
841
|
/* @__PURE__ */ o(
|
|
842
842
|
c,
|
|
843
843
|
{
|
|
@@ -16,11 +16,11 @@ import F from "@mui/material/Box";
|
|
|
16
16
|
import Q from "@mui/material/Button";
|
|
17
17
|
import I from "@mui/material/TextField";
|
|
18
18
|
import { H3 as J, P as L, Text as v, Icon as M, ChevronRightIcon as ve } from "@mxenabled/mxui";
|
|
19
|
-
import { V as Ce, a as De, N as G } from "../NotificationSettings-
|
|
20
|
-
import { A as qt, B as Qt, I as Zt } from "../NotificationSettings-
|
|
21
|
-
import { u as k, a as W, s as A, p as Se, b as Z, m as ee, n as te } from "../hooks-
|
|
19
|
+
import { V as Ce, a as De, N as G } from "../NotificationSettings-DI5B1spM.mjs";
|
|
20
|
+
import { A as qt, B as Qt, I as Zt } from "../NotificationSettings-DI5B1spM.mjs";
|
|
21
|
+
import { u as k, a as W, s as A, p as Se, b as Z, m as ee, n as te } from "../hooks-C41HAxM5.mjs";
|
|
22
22
|
import { u as H } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
23
|
-
import {
|
|
23
|
+
import { D as $ } from "../Dialog-BPTr3qHE.mjs";
|
|
24
24
|
import { formatDistanceToNow as oe } from "date-fns/formatDistanceToNow";
|
|
25
25
|
import { fromUnixTime as ne } from "date-fns/fromUnixTime";
|
|
26
26
|
import R from "@mui/material/styles/useTheme";
|
|
@@ -35,14 +35,14 @@ import { L as re } from "../Loader-DUaFpDGv.mjs";
|
|
|
35
35
|
import Ae from "@mui/material/List";
|
|
36
36
|
import j from "@mui/material/Divider";
|
|
37
37
|
import Ee from "@mui/material/ListSubheader";
|
|
38
|
-
import { a as Re, u as Pe } from "../CategorySelectorDrawer-
|
|
38
|
+
import { a as Re, u as Pe } from "../CategorySelectorDrawer-DqJK_rrL.mjs";
|
|
39
39
|
import Be from "@mui/material/ListItem";
|
|
40
40
|
import Me from "@mui/material/ListItemButton";
|
|
41
41
|
import Ne from "@mui/material/ListItemIcon";
|
|
42
42
|
import Le from "@mui/material/ListItemText";
|
|
43
|
-
import { D as He } from "../Drawer-
|
|
44
|
-
import { H as Oe } from "../Help-
|
|
45
|
-
import { W as K } from "../WidgetContainer-
|
|
43
|
+
import { D as He } from "../Drawer-BEtCk82g.mjs";
|
|
44
|
+
import { H as Oe } from "../Help-BnPXM_N2.mjs";
|
|
45
|
+
import { W as K } from "../WidgetContainer-6dsjtOVg.mjs";
|
|
46
46
|
const Ue = ({ availableWidth: t, handleOnLeavClick: a }) => {
|
|
47
47
|
const o = xe(), { common: n, settings: r } = k(), { isDesktop: d, isMobile: l, isSmallMobile: i, isTablet: s } = H(t), { config: b } = W(), { updateUser: _ } = A(), { user: m } = Se(), [p, S] = u.useState({
|
|
48
48
|
first_name: m.first_name,
|