@mx-cartographer/experiences 9.0.16 → 9.0.17-alpha
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 -5
- package/dist/Account-DR7Plrqy.mjs +1 -0
- package/dist/Account-DR7Plrqy.mjs.map +1 -0
- package/dist/{AccountDetailsDrawer-BuxLfuIm.mjs → AccountDetailsDrawer-CZPeLsCq.mjs} +4 -3
- package/dist/AccountDetailsDrawer-CZPeLsCq.mjs.map +1 -0
- package/dist/{AccountDetailsHeader-ByGNPZpO.mjs → AccountDetailsHeader-BvbCUQSS.mjs} +3 -0
- package/dist/AccountDetailsHeader-BvbCUQSS.mjs.map +1 -0
- package/dist/AccountUtils-B8ZzWI-d.mjs +1 -0
- package/dist/AccountUtils-B8ZzWI-d.mjs.map +1 -0
- package/dist/Analytics-CkYXKvco.mjs +1 -0
- package/dist/Analytics-CkYXKvco.mjs.map +1 -0
- package/dist/Analytics-WeZYytR0.mjs +1 -0
- package/dist/Analytics-WeZYytR0.mjs.map +1 -0
- package/dist/ApiEndpoints-DXwIYNUV.mjs +1 -0
- package/dist/ApiEndpoints-DXwIYNUV.mjs.map +1 -0
- package/dist/BeatMaterialIcon-1KOfRZrA.mjs +1 -0
- package/dist/BeatMaterialIcon-1KOfRZrA.mjs.map +1 -0
- package/dist/BudgetUtil-Bg2AQJpQ.mjs +1 -0
- package/dist/BudgetUtil-Bg2AQJpQ.mjs.map +1 -0
- package/dist/Category-DEKZGLYe.mjs +1 -0
- package/dist/Category-DEKZGLYe.mjs.map +1 -0
- package/dist/CategorySelectorDrawer-NJsFsKP1.mjs +1 -0
- package/dist/CategorySelectorDrawer-NJsFsKP1.mjs.map +1 -0
- package/dist/Connect-BH0Pt6zc.mjs +1 -0
- package/dist/Connect-BH0Pt6zc.mjs.map +1 -0
- package/dist/ConnectCard-D7uxoH5Y.mjs +1 -0
- package/dist/ConnectCard-D7uxoH5Y.mjs.map +1 -0
- package/dist/ConnectDrawer-CW4LA3H3.mjs +1 -0
- package/dist/ConnectDrawer-CW4LA3H3.mjs.map +1 -0
- package/dist/ConnectionsDrawer-CZU9ku-k.mjs +1 -0
- package/dist/ConnectionsDrawer-CZU9ku-k.mjs.map +1 -0
- package/dist/CurrencyDialog-DumQCTPO.mjs +1 -0
- package/dist/CurrencyDialog-DumQCTPO.mjs.map +1 -0
- package/dist/CurrencyInput-DaGEQaLW.mjs +1 -0
- package/dist/CurrencyInput-DaGEQaLW.mjs.map +1 -0
- package/dist/CurrencyText-CCbE6MmF.mjs +1 -0
- package/dist/CurrencyText-CCbE6MmF.mjs.map +1 -0
- package/dist/DateFormats-HudZ3Bjs.mjs +1 -0
- package/dist/DateFormats-HudZ3Bjs.mjs.map +1 -0
- package/dist/DateUtil-CzBmbjmA.mjs +1 -0
- package/dist/DateUtil-CzBmbjmA.mjs.map +1 -0
- package/dist/DebtUtils-i4pI2Uoe.mjs +1 -0
- package/dist/DebtUtils-i4pI2Uoe.mjs.map +1 -0
- package/dist/Dialog-Bvd2n8hz.mjs +1 -0
- package/dist/Dialog-Bvd2n8hz.mjs.map +1 -0
- package/dist/Donut-SzzfZDHF.mjs +1 -0
- package/dist/Donut-SzzfZDHF.mjs.map +1 -0
- package/dist/Drawer-DsnW2o0v.mjs +1 -0
- package/dist/Drawer-DsnW2o0v.mjs.map +1 -0
- package/dist/{EmbeddedCard-BxgB26dd.mjs → EmbeddedCard-DH8vQ3qN.mjs} +184 -181
- package/dist/EmbeddedCard-DH8vQ3qN.mjs.map +1 -0
- package/dist/EmptyState-CJUDc3kD.mjs +1 -0
- package/dist/EmptyState-CJUDc3kD.mjs.map +1 -0
- package/dist/Error-Dtw6yxkf.mjs +1 -0
- package/dist/Error-Dtw6yxkf.mjs.map +1 -0
- package/dist/ErrorBoundary-CsdOcnJ9.mjs +1 -0
- package/dist/ErrorBoundary-CsdOcnJ9.mjs.map +1 -0
- package/dist/{ExportCsvAction-BV69DnpC.mjs → ExportCsvAction-C9KWH3Az.mjs} +2 -1
- package/dist/ExportCsvAction-C9KWH3Az.mjs.map +1 -0
- package/dist/GlobalAccountFilter-BhzR5Vb1.mjs +1 -0
- package/dist/GlobalAccountFilter-BhzR5Vb1.mjs.map +1 -0
- package/dist/GlobalCopyApi-wcnDUzMV.mjs +1 -0
- package/dist/GlobalCopyApi-wcnDUzMV.mjs.map +1 -0
- package/dist/GoalsUtil-C9EnLWvC.mjs +1 -0
- package/dist/GoalsUtil-C9EnLWvC.mjs.map +1 -0
- package/dist/HeaderCell-P8w6CmfO.mjs +1 -0
- package/dist/HeaderCell-P8w6CmfO.mjs.map +1 -0
- package/dist/Help-CkQTjORd.mjs +1 -0
- package/dist/Help-CkQTjORd.mjs.map +1 -0
- package/dist/{Help-BMCejaQr.mjs → Help-aERwhajy.mjs} +3 -2
- package/dist/Help-aERwhajy.mjs.map +1 -0
- package/dist/IconBacking-DgT8DCeh.mjs +1 -0
- package/dist/IconBacking-DgT8DCeh.mjs.map +1 -0
- package/dist/InformationTooltip-4su8bn1e.mjs +1 -0
- package/dist/InformationTooltip-4su8bn1e.mjs.map +1 -0
- package/dist/InvestmentUtil-BItV7uEs.mjs +1 -0
- package/dist/InvestmentUtil-BItV7uEs.mjs.map +1 -0
- package/dist/LineChart-CUfiH86G.mjs +1 -0
- package/dist/LineChart-CUfiH86G.mjs.map +1 -0
- package/dist/ListItemAction-BqUCLj_w.mjs +1 -0
- package/dist/ListItemAction-BqUCLj_w.mjs.map +1 -0
- package/dist/ListItemRow-kH1rn8Xu.mjs +1 -0
- package/dist/ListItemRow-kH1rn8Xu.mjs.map +1 -0
- package/dist/ListItemWrapper-DRse79Iu.mjs +44 -0
- package/dist/ListItemWrapper-DRse79Iu.mjs.map +1 -0
- package/dist/Loader-CxeBwuPG.mjs +1 -0
- package/dist/Loader-CxeBwuPG.mjs.map +1 -0
- package/dist/Localization-DnoVyBNK.mjs +1 -0
- package/dist/Localization-DnoVyBNK.mjs.map +1 -0
- package/dist/{ManageIncome-BadwsHRL.mjs → ManageIncome-Dcsnnz86.mjs} +9 -8
- package/dist/ManageIncome-Dcsnnz86.mjs.map +1 -0
- package/dist/MicroWidgetContainer-B2NnKBgW.mjs +1 -0
- package/dist/MicroWidgetContainer-B2NnKBgW.mjs.map +1 -0
- package/dist/MiniWidgetContainer-Bmv_WeUd.mjs +1 -0
- package/dist/MiniWidgetContainer-Bmv_WeUd.mjs.map +1 -0
- package/dist/NetWorthUtils-DfSH3z70.mjs +1 -0
- package/dist/NetWorthUtils-DfSH3z70.mjs.map +1 -0
- package/dist/Notification-DTNYSd8P.mjs +1 -0
- package/dist/Notification-DTNYSd8P.mjs.map +1 -0
- package/dist/NotificationSettings-CW7okUrk.mjs +1 -0
- package/dist/NotificationSettings-CW7okUrk.mjs.map +1 -0
- package/dist/NotificationUtils-BRGFTePr.mjs +1 -0
- package/dist/NotificationUtils-BRGFTePr.mjs.map +1 -0
- package/dist/NumberFormatting--XMeeBfr.mjs +1 -0
- package/dist/NumberFormatting--XMeeBfr.mjs.map +1 -0
- package/dist/OriginalBalanceAction-YrvxBYAl.mjs +1 -0
- package/dist/OriginalBalanceAction-YrvxBYAl.mjs.map +1 -0
- package/dist/{RecurringSettings-CGZiV-Ie.mjs → RecurringSettings-D8hBbXV_.mjs} +2 -1
- package/dist/RecurringSettings-D8hBbXV_.mjs.map +1 -0
- package/dist/RecurringTransactionsUtil-CHWmqvW5.mjs +1 -0
- package/dist/RecurringTransactionsUtil-CHWmqvW5.mjs.map +1 -0
- package/dist/ResponsiveButton-CC9F_Ezk.mjs +1 -0
- package/dist/ResponsiveButton-CC9F_Ezk.mjs.map +1 -0
- package/dist/SearchBox-Cpgu_gdO.mjs +1 -0
- package/dist/SearchBox-Cpgu_gdO.mjs.map +1 -0
- package/dist/Select-CSpkK5cR.mjs +1 -0
- package/dist/Select-CSpkK5cR.mjs.map +1 -0
- package/dist/SelectionBox-B4xELRgp.mjs +1 -0
- package/dist/SelectionBox-B4xELRgp.mjs.map +1 -0
- package/dist/SingleSegmentDonut-7Uy6VEld.mjs +1 -0
- package/dist/SingleSegmentDonut-7Uy6VEld.mjs.map +1 -0
- package/dist/Sizes-DISGrlUg.mjs +1 -0
- package/dist/Sizes-DISGrlUg.mjs.map +1 -0
- package/dist/SkeletonLoader-BaNboJjD.mjs +1 -0
- package/dist/SkeletonLoader-BaNboJjD.mjs.map +1 -0
- package/dist/SpendingData-Fii_xATx.mjs +1 -0
- package/dist/SpendingData-Fii_xATx.mjs.map +1 -0
- package/dist/SpendingLegend-CxvNOg3c.mjs +1 -0
- package/dist/SpendingLegend-CxvNOg3c.mjs.map +1 -0
- package/dist/StatusBar-CPfSXe80.mjs +1 -0
- package/dist/StatusBar-CPfSXe80.mjs.map +1 -0
- package/dist/TabContentContainer-B0eYJP5p.mjs +1 -0
- package/dist/TabContentContainer-B0eYJP5p.mjs.map +1 -0
- package/dist/ToggleListItem-Dl1lXNwj.mjs +1 -0
- package/dist/ToggleListItem-Dl1lXNwj.mjs.map +1 -0
- package/dist/{TransactionDetails-DQ_eE7M4.mjs → TransactionDetails-roZ5xLq8.mjs} +2 -1
- package/dist/TransactionDetails-roZ5xLq8.mjs.map +1 -0
- package/dist/TransactionUtils-BphBJBbU.mjs +1 -0
- package/dist/TransactionUtils-BphBJBbU.mjs.map +1 -0
- package/dist/TrendsUtil-D9z3kIj_.mjs +1 -0
- package/dist/TrendsUtil-D9z3kIj_.mjs.map +1 -0
- package/dist/UserStore-C1fdL3Iu.mjs +1 -0
- package/dist/UserStore-C1fdL3Iu.mjs.map +1 -0
- package/dist/{ViewMoreMicroCard-fnwE0hqd.mjs → ViewMoreMicroCard-Dxghxphh.mjs} +352 -355
- package/dist/ViewMoreMicroCard-Dxghxphh.mjs.map +1 -0
- package/dist/WidgetContainer-DJnp6t6c.mjs +1 -0
- package/dist/WidgetContainer-DJnp6t6c.mjs.map +1 -0
- package/dist/accounts/index.es.js +5 -4
- package/dist/accounts/index.es.js.map +1 -0
- package/dist/analytics/index.es.js +1 -0
- package/dist/analytics/index.es.js.map +1 -0
- package/dist/budgets/index.es.js +4 -3
- package/dist/budgets/index.es.js.map +1 -0
- package/dist/cashflow/index.es.js +5 -4
- package/dist/cashflow/index.es.js.map +1 -0
- package/dist/categories/index.es.js +1 -0
- package/dist/categories/index.es.js.map +1 -0
- package/dist/common/components/ListItemWrapper.d.ts +2 -1
- package/dist/common/index.es.js +2 -1
- package/dist/common/index.es.js.map +1 -0
- package/dist/core/index.es.js +1 -0
- package/dist/core/index.es.js.map +1 -0
- package/dist/dashboard/index.es.js +1 -0
- package/dist/dashboard/index.es.js.map +1 -0
- package/dist/debts/index.es.js +64 -63
- package/dist/debts/index.es.js.map +1 -0
- package/dist/finstrong/index.es.js +6 -5
- package/dist/finstrong/index.es.js.map +1 -0
- package/dist/goals/index.es.js +1 -0
- package/dist/goals/index.es.js.map +1 -0
- package/dist/help/index.es.js +2 -1
- package/dist/help/index.es.js.map +1 -0
- package/dist/hooks-97sNJ_lf.mjs +1 -0
- package/dist/hooks-97sNJ_lf.mjs.map +1 -0
- package/dist/insights/index.es.js +3 -2
- package/dist/insights/index.es.js.map +1 -0
- package/dist/investments/index.es.js +1 -0
- package/dist/investments/index.es.js.map +1 -0
- package/dist/merchants/index.es.js +1 -0
- package/dist/merchants/index.es.js.map +1 -0
- package/dist/microinsights/index.es.js +2 -1
- package/dist/microinsights/index.es.js.map +1 -0
- package/dist/networth/index.es.js +1 -0
- package/dist/networth/index.es.js.map +1 -0
- package/dist/notifications/index.es.js +1 -0
- package/dist/notifications/index.es.js.map +1 -0
- package/dist/recurringtransactions/index.es.js +152 -138
- package/dist/recurringtransactions/index.es.js.map +1 -0
- package/dist/settings/index.es.js +2 -1
- package/dist/settings/index.es.js.map +1 -0
- package/dist/spending/index.es.js +3 -2
- package/dist/spending/index.es.js.map +1 -0
- package/dist/transactions/components/shared/transactionlist/TransactionRow.d.ts +1 -0
- package/dist/transactions/index.es.js +6 -5
- package/dist/transactions/index.es.js.map +1 -0
- package/dist/trends/index.es.js +5 -4
- package/dist/trends/index.es.js.map +1 -0
- package/dist/useAccountDisplayName-BsiXA0qf.mjs +1 -0
- package/dist/useAccountDisplayName-BsiXA0qf.mjs.map +1 -0
- package/dist/useAriaLive-MkYebyUR.mjs +1 -0
- package/dist/useAriaLive-MkYebyUR.mjs.map +1 -0
- package/dist/useDimensions-CeDR9V8N.mjs +1 -0
- package/dist/useDimensions-CeDR9V8N.mjs.map +1 -0
- package/dist/useInsightsEnabled-D5Sdm0TJ.mjs +1 -0
- package/dist/useInsightsEnabled-D5Sdm0TJ.mjs.map +1 -0
- package/dist/useScreenSize-mWpmnh5w.mjs +1 -0
- package/dist/useScreenSize-mWpmnh5w.mjs.map +1 -0
- package/dist/useWidgetLoadTimer-B0tB-yzL.mjs +1 -0
- package/dist/useWidgetLoadTimer-B0tB-yzL.mjs.map +1 -0
- package/package.json +6 -6
- package/dist/ListItemWrapper-BHIbqx7E.mjs +0 -42
- package/dist/insights/components/insights/P2pCategorization/_tests_/P2pCategorizationMultipleTransaction.test.d.ts +0 -0
- package/dist/insights/components/insights/P2pCategorization/_tests_/P2pCategorizationSingleTransaction.test.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as c, Fragment as B } from "react/jsx-runtime";
|
|
2
2
|
import x from "react";
|
|
3
3
|
import { observer as T } from "mobx-react-lite";
|
|
4
4
|
import { endOfMonth as z } from "date-fns/endOfMonth";
|
|
@@ -6,10 +6,10 @@ 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
|
|
9
|
+
import Be from "@mui/material/Alert";
|
|
10
10
|
import Fe from "@mui/material/Snackbar";
|
|
11
|
-
import { R as _e } from "../RecurringSettings-
|
|
12
|
-
import { M as Jn } from "../RecurringSettings-
|
|
11
|
+
import { R as _e } from "../RecurringSettings-D8hBbXV_.mjs";
|
|
12
|
+
import { M as Jn } from "../RecurringSettings-D8hBbXV_.mjs";
|
|
13
13
|
import { addMonths as Ue } from "date-fns/addMonths";
|
|
14
14
|
import { subMonths as Ye } from "date-fns/subMonths";
|
|
15
15
|
import { isBefore as je } from "date-fns/isBefore";
|
|
@@ -20,7 +20,7 @@ import fe from "@mui/material/Tab";
|
|
|
20
20
|
import Ke from "@mui/material/Tabs";
|
|
21
21
|
import { Cancel as Se, CheckCircle as we, Schedule as Ve, MonetizationOn as qe, ChevronLeft as Ze, ChevronRight as Xe, CurrencyExchange as Je } from "@mxenabled/mx-icons";
|
|
22
22
|
import { Text as h, MerchantLogo as te, InstitutionLogo as Qe, H3 as et, H2 as tt, P as Z } from "@mxenabled/mxui";
|
|
23
|
-
import { g as nt, L as O, b as
|
|
23
|
+
import { g as nt, L as O, b as G } from "../Localization-DnoVyBNK.mjs";
|
|
24
24
|
import { getWeeksInMonth as xe } from "date-fns/getWeeksInMonth";
|
|
25
25
|
import { enCA as rt } from "date-fns/locale/en-CA";
|
|
26
26
|
import { enUS as be } from "date-fns/locale/en-US";
|
|
@@ -36,24 +36,24 @@ import ut from "@mui/material/Badge";
|
|
|
36
36
|
import { PickersDay as mt } from "@mui/x-date-pickers/PickersDay";
|
|
37
37
|
import { I as F } from "../IconBacking-DgT8DCeh.mjs";
|
|
38
38
|
import { u as b, a as U, h as _, f as Y, D as Ie, g as re } from "../hooks-97sNJ_lf.mjs";
|
|
39
|
-
import { b as E, a as D, g as
|
|
39
|
+
import { b as E, a as D, g as ye, e as pt, R as gt } from "../RecurringTransactionsUtil-CHWmqvW5.mjs";
|
|
40
40
|
import { f as I, D as M } from "../DateFormats-HudZ3Bjs.mjs";
|
|
41
41
|
import { T as W } from "../Sizes-DISGrlUg.mjs";
|
|
42
42
|
import { A as v } from "../Analytics-WeZYytR0.mjs";
|
|
43
43
|
import ht from "@mui/material/Button";
|
|
44
44
|
import X from "@mui/material/Divider";
|
|
45
|
-
import
|
|
45
|
+
import Ce from "@mui/material/List";
|
|
46
46
|
import Me from "@mui/material/ListItem";
|
|
47
47
|
import ft from "@mui/material/ListSubheader";
|
|
48
48
|
import xt from "@mui/material/ListItemAvatar";
|
|
49
49
|
import bt from "@mui/material/ListItemButton";
|
|
50
|
-
import
|
|
50
|
+
import yt from "@mui/material/ListItemText";
|
|
51
51
|
import { f as L } from "../NumberFormatting--XMeeBfr.mjs";
|
|
52
|
-
import
|
|
52
|
+
import N from "@mui/material/Box";
|
|
53
53
|
import { u as ve } from "../useScreenSize-mWpmnh5w.mjs";
|
|
54
54
|
import { S as Le } from "../StatusBar-CPfSXe80.mjs";
|
|
55
|
-
import { d as
|
|
56
|
-
import { c as er, M as tr, S as nr } from "../ManageIncome-
|
|
55
|
+
import { d as Ct } from "../ManageIncome-Dcsnnz86.mjs";
|
|
56
|
+
import { c as er, M as tr, S as nr } from "../ManageIncome-Dcsnnz86.mjs";
|
|
57
57
|
import { D as ie } from "../Drawer-DsnW2o0v.mjs";
|
|
58
58
|
import { S as Ae } from "../SkeletonLoader-BaNboJjD.mjs";
|
|
59
59
|
import { u as oe } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
|
|
@@ -106,37 +106,37 @@ const j = {
|
|
|
106
106
|
}
|
|
107
107
|
), St = T(
|
|
108
108
|
({ day: t, outsideCurrentMonth: n, ...r }) => {
|
|
109
|
-
const { recurring: i } = b(), { selectedAccountGuids: o } = U(), { recurrences: s, setSelectedDay: m } = _(),
|
|
109
|
+
const { recurring: i } = b(), { selectedAccountGuids: o } = U(), { recurrences: s, setSelectedDay: m } = _(), a = x.useMemo(
|
|
110
110
|
() => s.filter((f) => o.includes(f.accountGuid)),
|
|
111
111
|
[o, s]
|
|
112
112
|
).filter(
|
|
113
113
|
(f) => dt(f.occurredOnDate || f.expectedDate, t)
|
|
114
|
-
), l =
|
|
114
|
+
), l = a.some(
|
|
115
115
|
(f) => f.type !== E.Income && f.status === D.Upcoming
|
|
116
|
-
), u =
|
|
116
|
+
), u = a.some(
|
|
117
117
|
(f) => f.type !== E.Income && f.status === D.Missed
|
|
118
|
-
), g =
|
|
118
|
+
), g = a.some(
|
|
119
119
|
(f) => f.type !== E.Income && f.status === D.Paid
|
|
120
|
-
),
|
|
120
|
+
), y = a.some((f) => f.type === E.Income), C = (l ? 1 : 0) + (u ? 1 : 0) + (g ? 1 : 0) + (y ? 1 : 0), S = [
|
|
121
121
|
g && i.paid,
|
|
122
122
|
u && i.missed,
|
|
123
123
|
l && i.upcoming,
|
|
124
|
-
|
|
124
|
+
y && i.income
|
|
125
125
|
].filter(Boolean), A = S.length > 0 ? `${I(t, M.MONTH_DAY_YEAR)}, ${S.join(", ")}` : I(t, M.MONTH_DAY_YEAR);
|
|
126
126
|
return /* @__PURE__ */ e(
|
|
127
127
|
ut,
|
|
128
128
|
{
|
|
129
|
-
badgeContent:
|
|
129
|
+
badgeContent: a.length > 0 && /* @__PURE__ */ c(B, { children: [
|
|
130
130
|
u && /* @__PURE__ */ e(le, { isOffset: !0 }),
|
|
131
131
|
g && /* @__PURE__ */ e(de, { isOffset: !0 }),
|
|
132
132
|
l && /* @__PURE__ */ e(se, { isOffset: !0 }),
|
|
133
|
-
|
|
133
|
+
y && /* @__PURE__ */ e(ce, { isOffset: !0 })
|
|
134
134
|
] }),
|
|
135
135
|
overlap: "circular",
|
|
136
136
|
sx: {
|
|
137
137
|
"& .MuiBadge-badge": {
|
|
138
138
|
padding: 0,
|
|
139
|
-
marginRight: `${(
|
|
139
|
+
marginRight: `${(C - 1) * 6 + 1}px`,
|
|
140
140
|
flexWrap: "nowrap"
|
|
141
141
|
}
|
|
142
142
|
},
|
|
@@ -151,6 +151,9 @@ const j = {
|
|
|
151
151
|
"&.MuiPickersDay-root": {
|
|
152
152
|
...n && {
|
|
153
153
|
color: "text.disabled"
|
|
154
|
+
},
|
|
155
|
+
...r.today && {
|
|
156
|
+
color: "primary.main"
|
|
154
157
|
}
|
|
155
158
|
}
|
|
156
159
|
},
|
|
@@ -160,12 +163,12 @@ const j = {
|
|
|
160
163
|
}
|
|
161
164
|
);
|
|
162
165
|
}
|
|
163
|
-
),
|
|
166
|
+
), $ = ({ icon: t, label: n }) => /* @__PURE__ */ c(d, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
|
|
164
167
|
/* @__PURE__ */ e(t, {}),
|
|
165
168
|
/* @__PURE__ */ e(h, { variant: "caption", children: n })
|
|
166
169
|
] }), wt = T(() => {
|
|
167
170
|
const { recurring: t } = b();
|
|
168
|
-
return /* @__PURE__ */
|
|
171
|
+
return /* @__PURE__ */ c(
|
|
169
172
|
d,
|
|
170
173
|
{
|
|
171
174
|
alignItems: "center",
|
|
@@ -175,10 +178,10 @@ const j = {
|
|
|
175
178
|
justifyContent: "center",
|
|
176
179
|
mt: 12,
|
|
177
180
|
children: [
|
|
178
|
-
/* @__PURE__ */ e(
|
|
179
|
-
/* @__PURE__ */ e(
|
|
180
|
-
/* @__PURE__ */ e(
|
|
181
|
-
/* @__PURE__ */ e(
|
|
181
|
+
/* @__PURE__ */ e($, { icon: se, label: t.expense }),
|
|
182
|
+
/* @__PURE__ */ e($, { icon: ce, label: t.income }),
|
|
183
|
+
/* @__PURE__ */ e($, { icon: le, label: t.missed }),
|
|
184
|
+
/* @__PURE__ */ e($, { icon: de, label: t.paid })
|
|
182
185
|
]
|
|
183
186
|
}
|
|
184
187
|
);
|
|
@@ -198,8 +201,8 @@ const j = {
|
|
|
198
201
|
m(xe(u) * W + Re), o({
|
|
199
202
|
start: k(u),
|
|
200
203
|
end: z(u)
|
|
201
|
-
}),
|
|
202
|
-
},
|
|
204
|
+
}), a(u), n(v.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
|
|
205
|
+
}, a = (u) => {
|
|
203
206
|
u && requestAnimationFrame(() => {
|
|
204
207
|
const g = document.getElementById("recurrence-list");
|
|
205
208
|
g?.setAttribute("tabindex", "-1"), g?.focus();
|
|
@@ -208,7 +211,7 @@ const j = {
|
|
|
208
211
|
ct,
|
|
209
212
|
{
|
|
210
213
|
minDate: k(/* @__PURE__ */ new Date()),
|
|
211
|
-
onChange:
|
|
214
|
+
onChange: a,
|
|
212
215
|
onMonthChange: p,
|
|
213
216
|
showDaysOutsideCurrentMonth: !0,
|
|
214
217
|
slots: {
|
|
@@ -261,7 +264,7 @@ const j = {
|
|
|
261
264
|
views: ["day"]
|
|
262
265
|
}
|
|
263
266
|
);
|
|
264
|
-
return /* @__PURE__ */ e(d, { "aria-labelledby": "calendar-label", justifyContent: "center", role: "group", children: /* @__PURE__ */
|
|
267
|
+
return /* @__PURE__ */ e(d, { "aria-labelledby": "calendar-label", justifyContent: "center", role: "group", children: /* @__PURE__ */ c(lt, { adapterLocale: It(), dateAdapter: st, children: [
|
|
265
268
|
i && l,
|
|
266
269
|
!i && l,
|
|
267
270
|
/* @__PURE__ */ e(h, { id: "calendar-label", sx: { alignSelf: "center" }, variant: "body2", children: r.calendar_tooltip }),
|
|
@@ -281,7 +284,7 @@ const j = {
|
|
|
281
284
|
}, vt = (t, n) => {
|
|
282
285
|
switch (t.status) {
|
|
283
286
|
case D.Paid:
|
|
284
|
-
return t.expectedDate ?
|
|
287
|
+
return t.expectedDate ? G(
|
|
285
288
|
n.paid_on,
|
|
286
289
|
I(
|
|
287
290
|
t.occurredOnDate || t.expectedDate,
|
|
@@ -289,12 +292,12 @@ const j = {
|
|
|
289
292
|
)
|
|
290
293
|
) : n.paid;
|
|
291
294
|
case D.Missed:
|
|
292
|
-
return
|
|
295
|
+
return G(
|
|
293
296
|
n.missed_on,
|
|
294
297
|
I(t.expectedDate, M.MONTH_DAY)
|
|
295
298
|
);
|
|
296
299
|
case D.Upcoming:
|
|
297
|
-
return
|
|
300
|
+
return G(
|
|
298
301
|
n.upcoming_on,
|
|
299
302
|
I(t.expectedDate, M.MONTH_DAY)
|
|
300
303
|
);
|
|
@@ -309,12 +312,12 @@ const j = {
|
|
|
309
312
|
showOrdinal: i = !1
|
|
310
313
|
}) => {
|
|
311
314
|
const { recurring: o } = b(), { detailedRepeatingTransactions: s } = _(), m = x.useMemo(
|
|
312
|
-
() => s.find((
|
|
315
|
+
() => s.find((C) => C.guid === t.repeatingTransactionGuid),
|
|
313
316
|
[t, s]
|
|
314
|
-
), p = t.type === E.Income,
|
|
317
|
+
), p = t.type === E.Income, a = t.status === D.Paid, l = t.status === D.Missed, u = t.status === D.Upcoming;
|
|
315
318
|
let g = o.paid?.toLowerCase();
|
|
316
|
-
return l ? g = o.missed?.toLowerCase() : u && (g = i ?
|
|
317
|
-
/* @__PURE__ */ e(Me, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */
|
|
319
|
+
return l ? g = o.missed?.toLowerCase() : u && (g = i ? ye(o, m || {}, !0) : ye(o, m || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
|
|
320
|
+
/* @__PURE__ */ e(Me, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ c(bt, { onClick: () => {
|
|
318
321
|
r(t);
|
|
319
322
|
}, children: [
|
|
320
323
|
/* @__PURE__ */ e(xt, { children: /* @__PURE__ */ e(
|
|
@@ -324,23 +327,23 @@ const j = {
|
|
|
324
327
|
merchantGuid: t.merchantGuid
|
|
325
328
|
}
|
|
326
329
|
) }),
|
|
327
|
-
/* @__PURE__ */ e(
|
|
330
|
+
/* @__PURE__ */ e(yt, { children: /* @__PURE__ */ c(
|
|
328
331
|
d,
|
|
329
332
|
{
|
|
330
333
|
direction: "row",
|
|
331
334
|
gap: 4,
|
|
332
335
|
sx: { justifyContent: "space-between", textOverflow: "ellipsis", textWrap: "nowrap" },
|
|
333
336
|
children: [
|
|
334
|
-
/* @__PURE__ */
|
|
337
|
+
/* @__PURE__ */ c(d, { direction: "column", width: "50%", children: [
|
|
335
338
|
/* @__PURE__ */ e(h, { bold: !0, variant: "body1", children: t.name }),
|
|
336
|
-
/* @__PURE__ */ e(d, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */
|
|
339
|
+
/* @__PURE__ */ e(d, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ c(d, { direction: "row", gap: 4, children: [
|
|
337
340
|
Mt(t),
|
|
338
341
|
/* @__PURE__ */ e(h, { variant: "caption", children: vt(t, o) })
|
|
339
|
-
] }) : /* @__PURE__ */
|
|
342
|
+
] }) : /* @__PURE__ */ c(B, { children: [
|
|
340
343
|
t.institutionGuid && /* @__PURE__ */ e(
|
|
341
344
|
Qe,
|
|
342
345
|
{
|
|
343
|
-
alt:
|
|
346
|
+
alt: "",
|
|
344
347
|
institutionGuid: t.institutionGuid,
|
|
345
348
|
size: 12
|
|
346
349
|
}
|
|
@@ -348,12 +351,12 @@ const j = {
|
|
|
348
351
|
/* @__PURE__ */ e(h, { sx: { maxWidth: 250 }, variant: "caption", children: t.institutionName })
|
|
349
352
|
] }) })
|
|
350
353
|
] }),
|
|
351
|
-
/* @__PURE__ */
|
|
352
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ c(d, { alignItems: "flex-end", width: "100%", children: [
|
|
355
|
+
/* @__PURE__ */ c(h, { bold: !0, color: p ? "success.main" : "text.primary", variant: "body1", children: [
|
|
353
356
|
p ? "+" : "",
|
|
354
357
|
L(t.amount, "0,0.00")
|
|
355
358
|
] }),
|
|
356
|
-
!n && /* @__PURE__ */
|
|
359
|
+
!n && /* @__PURE__ */ c(
|
|
357
360
|
d,
|
|
358
361
|
{
|
|
359
362
|
direction: "row",
|
|
@@ -365,7 +368,7 @@ const j = {
|
|
|
365
368
|
width: "100%"
|
|
366
369
|
},
|
|
367
370
|
children: [
|
|
368
|
-
|
|
371
|
+
a && /* @__PURE__ */ e(we, { color: "success", filled: !0, size: 12 }),
|
|
369
372
|
l && /* @__PURE__ */ e(Se, { color: "error", filled: !0, size: 12 }),
|
|
370
373
|
/* @__PURE__ */ e(h, { bold: !0, color: "text.secondary", variant: "caption", children: g })
|
|
371
374
|
]
|
|
@@ -386,8 +389,8 @@ const j = {
|
|
|
386
389
|
title: s
|
|
387
390
|
}) => {
|
|
388
391
|
const { recurring: m } = b(), p = x.useMemo(() => pt(t), [t]);
|
|
389
|
-
return /* @__PURE__ */
|
|
390
|
-
s && /* @__PURE__ */
|
|
392
|
+
return /* @__PURE__ */ c(d, { id: "recurrence-list", sx: { gap: 8, mt: 4, ...o }, tabIndex: -1, children: [
|
|
393
|
+
s && /* @__PURE__ */ c(
|
|
391
394
|
d,
|
|
392
395
|
{
|
|
393
396
|
sx: {
|
|
@@ -402,23 +405,33 @@ const j = {
|
|
|
402
405
|
]
|
|
403
406
|
}
|
|
404
407
|
),
|
|
405
|
-
t.length === 0 ? /* @__PURE__ */ e(h, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: m.no_activities }) : /* @__PURE__ */ e(
|
|
408
|
+
t.length === 0 ? /* @__PURE__ */ e(h, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: m.no_activities }) : /* @__PURE__ */ e(Ce, { "aria-label": s, children: n ? t.map((a, l) => /* @__PURE__ */ c(x.Fragment, { children: [
|
|
406
409
|
/* @__PURE__ */ e(
|
|
407
410
|
Te,
|
|
408
411
|
{
|
|
409
412
|
isMini: n,
|
|
410
413
|
onRecurrenceClick: i,
|
|
411
|
-
recurrence:
|
|
414
|
+
recurrence: a
|
|
412
415
|
}
|
|
413
416
|
),
|
|
414
417
|
/* @__PURE__ */ e(X, { sx: { mx: 24 } })
|
|
415
|
-
] }, `recurrence-${l}`)) : p.map((
|
|
418
|
+
] }, `recurrence-${l}`)) : p.map((a, l) => /* @__PURE__ */ c(x.Fragment, { children: [
|
|
416
419
|
/* @__PURE__ */ e(Me, { children: /* @__PURE__ */ e(
|
|
417
|
-
|
|
420
|
+
Ce,
|
|
418
421
|
{
|
|
419
|
-
|
|
422
|
+
"aria-labelledby": `date-group-header-${a.id}`,
|
|
423
|
+
subheader: /* @__PURE__ */ e(
|
|
424
|
+
ft,
|
|
425
|
+
{
|
|
426
|
+
"aria-hidden": "true",
|
|
427
|
+
id: `date-group-header-${a.id}`,
|
|
428
|
+
role: "presentation",
|
|
429
|
+
sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 },
|
|
430
|
+
children: /* @__PURE__ */ e(h, { bold: !0, variant: "caption", children: I(a.date, M.DAY_OF_WEEK_MONTH_DAY) })
|
|
431
|
+
}
|
|
432
|
+
),
|
|
420
433
|
sx: { width: "100%" },
|
|
421
|
-
children:
|
|
434
|
+
children: a.recurrences.map((u, g) => /* @__PURE__ */ e(x.Fragment, { children: /* @__PURE__ */ e(
|
|
422
435
|
Te,
|
|
423
436
|
{
|
|
424
437
|
isMini: n,
|
|
@@ -427,39 +440,39 @@ const j = {
|
|
|
427
440
|
}
|
|
428
441
|
) }, `day-recurrence-${g}`))
|
|
429
442
|
}
|
|
430
|
-
) },
|
|
443
|
+
) }, a.id),
|
|
431
444
|
/* @__PURE__ */ e(X, { sx: { mx: 24 } })
|
|
432
445
|
] }, `recurrence-${l}`)) })
|
|
433
446
|
] });
|
|
434
447
|
}
|
|
435
448
|
), De = T(
|
|
436
449
|
({ expected: t, isExpense: n = !0, missed: r, paid: i, title: o, total: s, upcoming: m }) => {
|
|
437
|
-
const p = ne(), { isSmallMobile:
|
|
450
|
+
const p = ne(), { isSmallMobile: a } = ve(), { recurring: l } = b(), u = x.useMemo(() => {
|
|
438
451
|
const g = [{ color: p.palette.success.main, percentage: `${i / t}` }];
|
|
439
452
|
return r && g.push({ color: p.palette.error.main, percentage: `${r / t}` }), g;
|
|
440
453
|
}, [i, t, r]);
|
|
441
|
-
return /* @__PURE__ */
|
|
442
|
-
/* @__PURE__ */
|
|
454
|
+
return /* @__PURE__ */ c(d, { children: [
|
|
455
|
+
/* @__PURE__ */ c(d, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
|
|
443
456
|
/* @__PURE__ */ e(h, { bold: !0, variant: "body1", children: `${o} (${s})` }),
|
|
444
457
|
/* @__PURE__ */ e(h, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${L(t, "0,0.00")}` })
|
|
445
458
|
] }),
|
|
446
459
|
/* @__PURE__ */ e(Le, { data: u, height: 12 }),
|
|
447
|
-
/* @__PURE__ */
|
|
448
|
-
/* @__PURE__ */ e(
|
|
449
|
-
!
|
|
460
|
+
/* @__PURE__ */ c(d, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
|
|
461
|
+
/* @__PURE__ */ e(N, { sx: { bgcolor: "success.main", height: 8, mr: 8, width: 8 } }),
|
|
462
|
+
!a && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: L(i, "0,0.00") }),
|
|
450
463
|
/* @__PURE__ */ e(h, { variant: "caption", children: l.paid?.toLowerCase() }),
|
|
451
|
-
r !== void 0 && /* @__PURE__ */
|
|
452
|
-
/* @__PURE__ */ e(
|
|
453
|
-
!
|
|
464
|
+
r !== void 0 && /* @__PURE__ */ c(B, { children: [
|
|
465
|
+
/* @__PURE__ */ e(N, { sx: { bgcolor: "error.main", height: 8, ml: 16, mr: 8, width: 8 } }),
|
|
466
|
+
!a && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: L(r, "0,0.00") }),
|
|
454
467
|
/* @__PURE__ */ e(h, { variant: "caption", children: l.missed?.toLowerCase() })
|
|
455
468
|
] }),
|
|
456
|
-
/* @__PURE__ */ e(
|
|
457
|
-
!
|
|
469
|
+
/* @__PURE__ */ e(N, { sx: { bgcolor: "divider", height: 8, ml: 16, mr: 8, width: 8 } }),
|
|
470
|
+
!a && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: L(m, "0,0.00") }),
|
|
458
471
|
/* @__PURE__ */ e(h, { variant: "caption", children: l.upcoming?.toLowerCase() })
|
|
459
472
|
] })
|
|
460
473
|
] });
|
|
461
474
|
}
|
|
462
|
-
),
|
|
475
|
+
), Ge = T(() => {
|
|
463
476
|
const { recurring: t } = b(), {
|
|
464
477
|
selectedRecurrence: n,
|
|
465
478
|
selectedRepeatingTransaction: r,
|
|
@@ -476,7 +489,7 @@ const j = {
|
|
|
476
489
|
onClose: s,
|
|
477
490
|
title: r?.repeating_transaction_type === gt.Income ? t.income_details : t.expense_details,
|
|
478
491
|
children: r && /* @__PURE__ */ e(
|
|
479
|
-
|
|
492
|
+
Ct,
|
|
480
493
|
{
|
|
481
494
|
onDeleted: s,
|
|
482
495
|
recurringTransaction: r,
|
|
@@ -489,23 +502,23 @@ const j = {
|
|
|
489
502
|
const { recurring: t } = b(), { availableWidth: n } = Ie(), { isDesktop: r, isSmallMobile: i, isMobile: o } = ve(n), { onEvent: s } = Y(), {
|
|
490
503
|
currentMonthExpenses: m,
|
|
491
504
|
currentMonthIncome: p,
|
|
492
|
-
dateRange:
|
|
505
|
+
dateRange: a,
|
|
493
506
|
expenseTotal: l,
|
|
494
507
|
incomeTotal: u,
|
|
495
508
|
missedExpenseTotal: g,
|
|
496
|
-
pastRecurrences:
|
|
497
|
-
paidExpenseTotal:
|
|
509
|
+
pastRecurrences: y,
|
|
510
|
+
paidExpenseTotal: C,
|
|
498
511
|
paidIncomeTotal: S,
|
|
499
512
|
selectedDay: A,
|
|
500
513
|
selectedDayRecurrences: f,
|
|
501
514
|
setDateRange: w,
|
|
502
515
|
setSelectedRecurrence: H,
|
|
503
516
|
setSelectedRepeatingTransactionGuid: ue,
|
|
504
|
-
upcomingExpenseTotal:
|
|
517
|
+
upcomingExpenseTotal: Ne,
|
|
505
518
|
upcomingIncomeTotal: ke,
|
|
506
519
|
upcomingRecurrences: me
|
|
507
|
-
} = _(), [V, Oe] = x.useState(0), We = je(
|
|
508
|
-
Oe(
|
|
520
|
+
} = _(), [V, Oe] = x.useState(0), We = je(a.start, /* @__PURE__ */ new Date()), Pe = (R, $e) => {
|
|
521
|
+
Oe($e);
|
|
509
522
|
}, pe = (R) => {
|
|
510
523
|
ue(R.repeatingTransactionGuid), H(R), s(v.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
|
|
511
524
|
transaction_guid: R.transaction?.guid
|
|
@@ -515,19 +528,19 @@ const j = {
|
|
|
515
528
|
transaction_guid: R.transaction?.guid
|
|
516
529
|
});
|
|
517
530
|
}, ze = () => {
|
|
518
|
-
const R = Ue(
|
|
531
|
+
const R = Ue(a.start, 1);
|
|
519
532
|
w({
|
|
520
533
|
start: k(R),
|
|
521
534
|
end: z(R)
|
|
522
535
|
});
|
|
523
536
|
}, He = () => {
|
|
524
|
-
const R = Ye(
|
|
537
|
+
const R = Ye(a.start, 1);
|
|
525
538
|
w({
|
|
526
539
|
start: k(R),
|
|
527
540
|
end: z(R)
|
|
528
541
|
});
|
|
529
542
|
};
|
|
530
|
-
return /* @__PURE__ */
|
|
543
|
+
return /* @__PURE__ */ c(
|
|
531
544
|
q,
|
|
532
545
|
{
|
|
533
546
|
container: !0,
|
|
@@ -535,14 +548,14 @@ const j = {
|
|
|
535
548
|
pt: 16
|
|
536
549
|
},
|
|
537
550
|
children: [
|
|
538
|
-
/* @__PURE__ */
|
|
539
|
-
/* @__PURE__ */
|
|
540
|
-
/* @__PURE__ */
|
|
541
|
-
/* @__PURE__ */ e(tt, { variant: "h3", children:
|
|
551
|
+
/* @__PURE__ */ c(q, { size: { sm: 12, md: "grow" }, width: "100%", children: [
|
|
552
|
+
/* @__PURE__ */ c(d, { sx: { gap: 16, px: r ? 48 : 24 }, children: [
|
|
553
|
+
/* @__PURE__ */ c(d, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
554
|
+
/* @__PURE__ */ e(tt, { variant: "h3", children: G(
|
|
542
555
|
t.header_title,
|
|
543
|
-
I(
|
|
556
|
+
I(a.start, M.MONTH_LONG)
|
|
544
557
|
) }),
|
|
545
|
-
!r && /* @__PURE__ */
|
|
558
|
+
!r && /* @__PURE__ */ c(d, { direction: "row", gap: 4, children: [
|
|
546
559
|
/* @__PURE__ */ e(
|
|
547
560
|
he,
|
|
548
561
|
{
|
|
@@ -560,10 +573,10 @@ const j = {
|
|
|
560
573
|
{
|
|
561
574
|
expected: l,
|
|
562
575
|
missed: g,
|
|
563
|
-
paid:
|
|
576
|
+
paid: C,
|
|
564
577
|
title: t.expenses,
|
|
565
578
|
total: m.length,
|
|
566
|
-
upcoming:
|
|
579
|
+
upcoming: Ne
|
|
567
580
|
}
|
|
568
581
|
),
|
|
569
582
|
/* @__PURE__ */ e(
|
|
@@ -586,8 +599,8 @@ const j = {
|
|
|
586
599
|
}
|
|
587
600
|
)
|
|
588
601
|
] }),
|
|
589
|
-
!r && /* @__PURE__ */
|
|
590
|
-
/* @__PURE__ */
|
|
602
|
+
!r && /* @__PURE__ */ c(d, { sx: { px: o ? 0 : 24 }, children: [
|
|
603
|
+
/* @__PURE__ */ c(Ke, { onChange: Pe, value: V, variant: "fullWidth", children: [
|
|
591
604
|
/* @__PURE__ */ e(
|
|
592
605
|
fe,
|
|
593
606
|
{
|
|
@@ -612,43 +625,43 @@ const j = {
|
|
|
612
625
|
P,
|
|
613
626
|
{
|
|
614
627
|
onRecurrenceClick: ge,
|
|
615
|
-
recurrences:
|
|
628
|
+
recurrences: y
|
|
616
629
|
}
|
|
617
630
|
)
|
|
618
631
|
] })
|
|
619
632
|
] }),
|
|
620
|
-
r && /* @__PURE__ */ e(q, { size: { xs: "auto" }, sx: { minWidth: 450 }, children: /* @__PURE__ */
|
|
633
|
+
r && /* @__PURE__ */ e(q, { size: { xs: "auto" }, sx: { minWidth: 450 }, children: /* @__PURE__ */ c(d, { gap: 24, children: [
|
|
621
634
|
/* @__PURE__ */ e(Ee, {}),
|
|
622
635
|
/* @__PURE__ */ e(
|
|
623
636
|
P,
|
|
624
637
|
{
|
|
625
638
|
onRecurrenceClick: ge,
|
|
626
|
-
recurrences: f ||
|
|
627
|
-
title: A ?
|
|
639
|
+
recurrences: f || y,
|
|
640
|
+
title: A ? G(
|
|
628
641
|
t.day_transactions,
|
|
629
642
|
I(A, M.MONTH_DAY)
|
|
630
643
|
) : t.past_transactions
|
|
631
644
|
}
|
|
632
645
|
)
|
|
633
646
|
] }) }),
|
|
634
|
-
/* @__PURE__ */ e(
|
|
647
|
+
/* @__PURE__ */ e(Ge, {})
|
|
635
648
|
]
|
|
636
649
|
}
|
|
637
650
|
);
|
|
638
651
|
}), jn = T(
|
|
639
652
|
({ onBackClick: t, onMenuClick: n, sx: r = {} }) => {
|
|
640
|
-
const { recurring: i } = b(), { isInitialized: o, selectedAccountGuids: s } = U(), { alert: m, isDataLoaded: p, loadRepeatingTransactionData:
|
|
653
|
+
const { recurring: i } = b(), { isInitialized: o, selectedAccountGuids: s } = U(), { alert: m, isDataLoaded: p, loadRepeatingTransactionData: a, setAlert: l, setDateRange: u } = _(), { setFilter: g } = re(), { onEvent: y } = Y(), [C, S] = x.useState(!1);
|
|
641
654
|
return oe({
|
|
642
655
|
widgetName: "RecurringTransactionsWidget",
|
|
643
656
|
isLoaded: p
|
|
644
657
|
}), x.useEffect(() => {
|
|
645
|
-
p ||
|
|
658
|
+
p || a().finally();
|
|
646
659
|
}, []), x.useEffect(() => {
|
|
647
660
|
g({
|
|
648
661
|
dateRange: { start: ee(Q(), 90), end: J() },
|
|
649
662
|
accounts: s
|
|
650
663
|
}), u({ start: k(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) });
|
|
651
|
-
}, [s]), o ? /* @__PURE__ */
|
|
664
|
+
}, [s]), o ? /* @__PURE__ */ c(
|
|
652
665
|
Rt,
|
|
653
666
|
{
|
|
654
667
|
actions: [
|
|
@@ -656,12 +669,12 @@ const j = {
|
|
|
656
669
|
label: i.action_title,
|
|
657
670
|
iconName: "credit_card_gear",
|
|
658
671
|
onClick: () => {
|
|
659
|
-
S(!0),
|
|
672
|
+
S(!0), y(v.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
|
|
660
673
|
}
|
|
661
674
|
}
|
|
662
675
|
],
|
|
663
676
|
hasDivider: !0,
|
|
664
|
-
onAccountsFilterClick: () =>
|
|
677
|
+
onAccountsFilterClick: () => y(v.RECURRING_TRANSACTIONS_CLICK_FILTER),
|
|
665
678
|
onBackClick: t,
|
|
666
679
|
onMenuClick: n,
|
|
667
680
|
sx: r,
|
|
@@ -672,7 +685,7 @@ const j = {
|
|
|
672
685
|
ie,
|
|
673
686
|
{
|
|
674
687
|
ariaLabelClose: i.close_drawer_aria,
|
|
675
|
-
isOpen:
|
|
688
|
+
isOpen: C,
|
|
676
689
|
onClose: () => S(!1),
|
|
677
690
|
shouldShowHeaderBorders: !1,
|
|
678
691
|
title: i.action_title,
|
|
@@ -686,7 +699,7 @@ const j = {
|
|
|
686
699
|
autoHideDuration: 3500,
|
|
687
700
|
onClose: () => l(""),
|
|
688
701
|
open: !!m.message,
|
|
689
|
-
children: /* @__PURE__ */ e(
|
|
702
|
+
children: /* @__PURE__ */ e(Be, { onClose: () => l(""), severity: m.severity, variant: "filled", children: m.message })
|
|
690
703
|
}
|
|
691
704
|
)
|
|
692
705
|
]
|
|
@@ -701,21 +714,21 @@ const j = {
|
|
|
701
714
|
setSelectedRecurrence: s,
|
|
702
715
|
setSelectedRepeatingTransactionGuid: m,
|
|
703
716
|
upcomingRecurrences: p
|
|
704
|
-
} = _(),
|
|
717
|
+
} = _(), a = (u) => {
|
|
705
718
|
m(u.repeatingTransactionGuid), s(u);
|
|
706
719
|
}, l = n < 750;
|
|
707
|
-
return /* @__PURE__ */
|
|
720
|
+
return /* @__PURE__ */ c(d, { flexDirection: l ? "column" : "row", width: "100%", children: [
|
|
708
721
|
/* @__PURE__ */ e(Ee, {}),
|
|
709
722
|
!l && /* @__PURE__ */ e(X, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
|
|
710
723
|
/* @__PURE__ */ e(
|
|
711
724
|
P,
|
|
712
725
|
{
|
|
713
726
|
isMini: !0,
|
|
714
|
-
onRecurrenceClick:
|
|
727
|
+
onRecurrenceClick: a,
|
|
715
728
|
onResetClick: r ? () => o(r) : void 0,
|
|
716
729
|
recurrences: i || p.slice(0, 5),
|
|
717
730
|
sx: { width: l ? "100%" : "calc(100% - 336px)", mt: 12 },
|
|
718
|
-
title: r ?
|
|
731
|
+
title: r ? G(
|
|
719
732
|
t.day_transactions,
|
|
720
733
|
I(r, M.MONTH_DAY)
|
|
721
734
|
) : t.upcoming_activity
|
|
@@ -735,7 +748,7 @@ const j = {
|
|
|
735
748
|
dateRange: { start: ee(Q(), 90), end: J() },
|
|
736
749
|
accounts: p
|
|
737
750
|
});
|
|
738
|
-
}, [p]), m ? /* @__PURE__ */
|
|
751
|
+
}, [p]), m ? /* @__PURE__ */ c(
|
|
739
752
|
Tt,
|
|
740
753
|
{
|
|
741
754
|
className: "mx-exp-recurring-transactions-miniwidget",
|
|
@@ -747,29 +760,29 @@ const j = {
|
|
|
747
760
|
title: r.mini_title,
|
|
748
761
|
children: [
|
|
749
762
|
o ? /* @__PURE__ */ e(At, {}) : /* @__PURE__ */ e(Ae, { sx: { mx: 16 }, variant: "list" }),
|
|
750
|
-
/* @__PURE__ */ e(
|
|
763
|
+
/* @__PURE__ */ e(Ge, {})
|
|
751
764
|
]
|
|
752
765
|
}
|
|
753
766
|
) : /* @__PURE__ */ e(ae, {});
|
|
754
767
|
}
|
|
755
768
|
), Et = T(() => {
|
|
756
769
|
const { recurring: t } = b();
|
|
757
|
-
return /* @__PURE__ */
|
|
770
|
+
return /* @__PURE__ */ c(d, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
|
|
758
771
|
/* @__PURE__ */ e(Je, { size: 32 }),
|
|
759
|
-
/* @__PURE__ */
|
|
772
|
+
/* @__PURE__ */ c(d, { children: [
|
|
760
773
|
/* @__PURE__ */ e(Z, { fontWeight: 600, variant: "body1", children: t.zero_state_content_header }),
|
|
761
774
|
/* @__PURE__ */ e(Z, { color: "text.secondary", variant: "subtitle2", children: t.zero_state_content_description })
|
|
762
775
|
] })
|
|
763
776
|
] });
|
|
764
|
-
}),
|
|
777
|
+
}), Gt = ({
|
|
765
778
|
amount: t,
|
|
766
779
|
bgcolor: n,
|
|
767
780
|
isLargeScreen: r,
|
|
768
781
|
isSmallScreen: i,
|
|
769
782
|
label: o
|
|
770
|
-
}) => /* @__PURE__ */
|
|
783
|
+
}) => /* @__PURE__ */ c(d, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
|
|
771
784
|
/* @__PURE__ */ e(
|
|
772
|
-
|
|
785
|
+
N,
|
|
773
786
|
{
|
|
774
787
|
sx: {
|
|
775
788
|
borderRadius: "2px",
|
|
@@ -779,25 +792,25 @@ const j = {
|
|
|
779
792
|
}
|
|
780
793
|
}
|
|
781
794
|
),
|
|
782
|
-
/* @__PURE__ */
|
|
795
|
+
/* @__PURE__ */ c(d, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
|
|
783
796
|
!i && /* @__PURE__ */ e(h, { bold: !0, variant: "caption", children: L(t, t === 0 || !r ? "0,0" : "0,0.00") }),
|
|
784
797
|
/* @__PURE__ */ e(h, { variant: "caption", children: o })
|
|
785
798
|
] })
|
|
786
|
-
] }),
|
|
799
|
+
] }), Nt = ({
|
|
787
800
|
upcomingRecurrences: t,
|
|
788
801
|
logoSize: n = 32,
|
|
789
802
|
maxLogos: r = 3
|
|
790
803
|
}) => {
|
|
791
804
|
const i = (o) => o * (n / 2);
|
|
792
805
|
return /* @__PURE__ */ e(
|
|
793
|
-
|
|
806
|
+
N,
|
|
794
807
|
{
|
|
795
808
|
sx: {
|
|
796
809
|
position: "relative",
|
|
797
810
|
width: 64
|
|
798
811
|
},
|
|
799
812
|
children: t.map((o, s) => s < r ? /* @__PURE__ */ e(
|
|
800
|
-
|
|
813
|
+
N,
|
|
801
814
|
{
|
|
802
815
|
sx: {
|
|
803
816
|
borderRadius: "4px",
|
|
@@ -837,7 +850,7 @@ const j = {
|
|
|
837
850
|
missedExpenseTotal: s,
|
|
838
851
|
paidExpenseTotal: m,
|
|
839
852
|
upcomingExpenseTotal: p
|
|
840
|
-
} = _(), { recurring:
|
|
853
|
+
} = _(), { recurring: a } = b(), l = r <= 288, u = r >= 450, g = 32, y = i.length > 0, C = x.useMemo(() => L(o, o === 0 ? "0,0" : "0,0.00"), [o]), S = x.useMemo(() => {
|
|
841
854
|
const w = [
|
|
842
855
|
{ color: t.palette.success.main, percentage: `${m / o}` }
|
|
843
856
|
];
|
|
@@ -851,8 +864,8 @@ const j = {
|
|
|
851
864
|
s,
|
|
852
865
|
t.palette.success.main,
|
|
853
866
|
t.palette.error.main
|
|
854
|
-
]), A = () =>
|
|
855
|
-
|
|
867
|
+
]), A = () => y ? l ? /* @__PURE__ */ e(
|
|
868
|
+
Nt,
|
|
856
869
|
{
|
|
857
870
|
logoSize: g,
|
|
858
871
|
maxLogos: 3,
|
|
@@ -862,26 +875,26 @@ const j = {
|
|
|
862
875
|
{
|
|
863
876
|
amount: m,
|
|
864
877
|
bgColor: "success.main",
|
|
865
|
-
label:
|
|
878
|
+
label: a.paid
|
|
866
879
|
},
|
|
867
880
|
{
|
|
868
881
|
amount: s,
|
|
869
882
|
bgColor: "error.main",
|
|
870
|
-
label:
|
|
883
|
+
label: a.missed
|
|
871
884
|
},
|
|
872
885
|
{
|
|
873
886
|
amount: p,
|
|
874
887
|
bgColor: "neutral.light",
|
|
875
|
-
label:
|
|
888
|
+
label: a.upcoming
|
|
876
889
|
}
|
|
877
890
|
];
|
|
878
|
-
return /* @__PURE__ */
|
|
879
|
-
/* @__PURE__ */
|
|
880
|
-
/* @__PURE__ */
|
|
891
|
+
return /* @__PURE__ */ c(B, { children: [
|
|
892
|
+
/* @__PURE__ */ c(d, { ref: n, sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
893
|
+
/* @__PURE__ */ c(
|
|
881
894
|
d,
|
|
882
895
|
{
|
|
883
896
|
sx: [
|
|
884
|
-
|
|
897
|
+
C.length >= 10 && l ? { flexDirection: "column" } : { flexDirection: "row", gap: 2 },
|
|
885
898
|
{
|
|
886
899
|
alignItems: "baseline",
|
|
887
900
|
overflow: "hidden",
|
|
@@ -894,17 +907,17 @@ const j = {
|
|
|
894
907
|
h,
|
|
895
908
|
{
|
|
896
909
|
sx: { width: "100%" },
|
|
897
|
-
variant:
|
|
898
|
-
children:
|
|
910
|
+
variant: C.length >= 10 && l ? "h3" : "h2",
|
|
911
|
+
children: C
|
|
899
912
|
}
|
|
900
913
|
),
|
|
901
|
-
/* @__PURE__ */ e(Z, { sx: { pr: 12 }, variant: "caption", children:
|
|
914
|
+
/* @__PURE__ */ e(Z, { sx: { pr: 12 }, variant: "caption", children: a.expected })
|
|
902
915
|
]
|
|
903
916
|
}
|
|
904
917
|
),
|
|
905
918
|
A()
|
|
906
919
|
] }),
|
|
907
|
-
/* @__PURE__ */
|
|
920
|
+
/* @__PURE__ */ c(d, { sx: { pt: 12 }, children: [
|
|
908
921
|
/* @__PURE__ */ e(Le, { data: S }),
|
|
909
922
|
/* @__PURE__ */ e(
|
|
910
923
|
d,
|
|
@@ -916,7 +929,7 @@ const j = {
|
|
|
916
929
|
mt: 4
|
|
917
930
|
},
|
|
918
931
|
children: f.map((w, H) => /* @__PURE__ */ e(
|
|
919
|
-
|
|
932
|
+
Gt,
|
|
920
933
|
{
|
|
921
934
|
amount: w.amount,
|
|
922
935
|
bgcolor: w.bgColor,
|
|
@@ -937,13 +950,13 @@ const j = {
|
|
|
937
950
|
upcomingRecurrences: s,
|
|
938
951
|
repeatingTransactions: m,
|
|
939
952
|
setDateRange: p,
|
|
940
|
-
isDataLoaded:
|
|
953
|
+
isDataLoaded: a
|
|
941
954
|
} = _(), { setFilter: l } = re(), { recurring: u, budgets: g } = b();
|
|
942
955
|
oe({
|
|
943
956
|
widgetName: "RecurringTransactionsMicroWidget",
|
|
944
|
-
isLoaded:
|
|
957
|
+
isLoaded: a
|
|
945
958
|
}), x.useEffect(() => {
|
|
946
|
-
|
|
959
|
+
a || o().finally(() => {
|
|
947
960
|
n(v.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
|
|
948
961
|
state: s.length > 0 ? "default" : "zeroState"
|
|
949
962
|
});
|
|
@@ -954,21 +967,21 @@ const j = {
|
|
|
954
967
|
accounts: i
|
|
955
968
|
}), p({ start: k(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) }));
|
|
956
969
|
}, [r, i]);
|
|
957
|
-
const
|
|
970
|
+
const y = () => {
|
|
958
971
|
n(
|
|
959
972
|
s.length > 0 ? v.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : v.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
|
|
960
973
|
), t();
|
|
961
974
|
};
|
|
962
|
-
if (!r || !
|
|
963
|
-
const
|
|
975
|
+
if (!r || !a) return /* @__PURE__ */ e(ae, { height: 100 });
|
|
976
|
+
const C = !m?.length;
|
|
964
977
|
return /* @__PURE__ */ e(
|
|
965
978
|
_t,
|
|
966
979
|
{
|
|
967
980
|
className: "mx-recurring-transaction-microwidget",
|
|
968
|
-
ctaLabel:
|
|
969
|
-
onCTAClick:
|
|
981
|
+
ctaLabel: C ? g.get_started_cta : u.primary_cta,
|
|
982
|
+
onCTAClick: y,
|
|
970
983
|
title: u.recurring_expenses,
|
|
971
|
-
children:
|
|
984
|
+
children: C ? /* @__PURE__ */ e(Et, {}) : /* @__PURE__ */ e(Ot, {})
|
|
972
985
|
}
|
|
973
986
|
);
|
|
974
987
|
}
|
|
@@ -998,3 +1011,4 @@ export {
|
|
|
998
1011
|
jn as RecurringTransactionsWidget,
|
|
999
1012
|
nr as SelectTransaction
|
|
1000
1013
|
};
|
|
1014
|
+
//# sourceMappingURL=index.es.js.map
|