@mx-cartographer/experiences 7.12.17 → 7.13.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/{AccountDetailsHeader-BkEF1gO-.mjs → AccountDetailsHeader-D9gbTbUt.mjs} +31 -31
- package/dist/{AccountFields-C_dcdCM7.mjs → AccountFields-CxqONzjY.mjs} +6 -6
- package/dist/AccountListItem-LcJVJysf.mjs +90 -0
- package/dist/{AccountStore-ypdfueW9.mjs → AccountStore-BNlTuxWN.mjs} +1 -1
- package/dist/{BudgetUtil--_QXyszn.mjs → BudgetUtil-CLhRnCoX.mjs} +75 -75
- package/dist/{CashflowStore-DEdQJU5i.mjs → CashflowStore-D3MKniVM.mjs} +11 -11
- package/dist/{CategorySelectorDrawer-wfUTIbLR.mjs → CategorySelectorDrawer-DYHNBd2v.mjs} +31 -31
- package/dist/{ConnectDrawer-CioFo6Wy.mjs → ConnectDrawer-C0wjwcJt.mjs} +1 -1
- package/dist/{ConnectionsDrawer-DqhSaMrJ.mjs → ConnectionsDrawer-IA7vnv1J.mjs} +1 -1
- package/dist/{Drawer-DV4NTsFg.mjs → Drawer-Bbe4AMB1.mjs} +5 -5
- package/dist/{GoalStore-0bd-Upkc.mjs → GoalStore-DB58sKTC.mjs} +8 -8
- package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
- package/dist/{Help-CDu1Fvrc.mjs → Help-CpLfyvPv.mjs} +24 -24
- package/dist/{LineChart-B1qbKR8q.mjs → LineChart-DBSlRSEm.mjs} +102 -102
- package/dist/{ManageIncome-BnWWjP2g.mjs → ManageIncome-QvqN555q.mjs} +62 -62
- package/dist/{MiniWidgetContainer-Cu72GNsE.mjs → MiniWidgetContainer-xLWSV6Wz.mjs} +13 -13
- package/dist/{NotificationSettings-BH2yOwTB.mjs → NotificationSettings-DU3vJh5J.mjs} +139 -139
- package/dist/{OriginalBalanceAction-BM6rT_Cn.mjs → OriginalBalanceAction-DjpvVVFz.mjs} +6 -6
- package/dist/{RecurringSettings-BmXtfHtK.mjs → RecurringSettings-DdOcok2e.mjs} +2 -2
- package/dist/{RecurringTransactions-CYNpe_RS.mjs → RecurringTransactions-BOzBqfdg.mjs} +11 -11
- package/dist/{RecurringTransactionsStore-BD-OfVZ-.mjs → RecurringTransactionsStore-CcfPS0d3.mjs} +1 -1
- package/dist/{SpendingLegend-Bq6aXMNh.mjs → SpendingLegend-CJjjTGBw.mjs} +76 -76
- package/dist/{StatusIndicator-BV3oFzxo.mjs → StatusIndicator-CIKUOoN_.mjs} +53 -53
- package/dist/{TransactionDetails-DYlTwSDt.mjs → TransactionDetails-BpcWeXNU.mjs} +350 -350
- package/dist/{WidgetContainer-B0ncgABX.mjs → WidgetContainer-D_iaToWJ.mjs} +12 -12
- package/dist/accounts/index.es.js +107 -107
- package/dist/analytics/index.es.js +18 -18
- package/dist/budgets/index.es.js +182 -182
- package/dist/cashflow/index.es.js +223 -223
- package/dist/categories/index.es.js +1 -1
- package/dist/common/index.es.js +54 -64
- package/dist/dashboard/index.es.js +9 -9
- package/dist/debts/index.es.js +469 -469
- package/dist/finstrong/index.es.js +68 -68
- package/dist/goals/index.es.js +437 -437
- package/dist/help/index.es.js +2 -2
- package/dist/insights/index.es.js +159 -159
- package/dist/investments/index.es.js +292 -292
- package/dist/merchants/index.es.js +12 -12
- package/dist/networth/index.es.js +175 -168
- package/dist/notifications/index.es.js +13 -13
- package/dist/recurringtransactions/index.es.js +69 -69
- package/dist/settings/index.es.js +187 -187
- package/dist/spending/index.es.js +58 -58
- package/dist/transactions/index.es.js +70 -70
- package/dist/trends/index.es.js +15 -15
- package/package.json +1 -1
- package/dist/AccountListItem-BAf03YhK.mjs +0 -90
- package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
|
@@ -3,22 +3,22 @@ import _ from "react";
|
|
|
3
3
|
import { observer as I } from "mobx-react-lite";
|
|
4
4
|
import F from "@mui/material/Box";
|
|
5
5
|
import T from "@mui/material/Divider";
|
|
6
|
-
import
|
|
6
|
+
import Q from "@mui/material/List";
|
|
7
7
|
import p from "@mui/material/Stack";
|
|
8
|
-
import { MerchantLogo as
|
|
8
|
+
import { MerchantLogo as $, Text as S, P as G, InstitutionLogo as se } from "@mxenabled/mxui";
|
|
9
9
|
import ce from "@mui/material/ListItem";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
10
|
+
import de from "@mui/material/ListItemAvatar";
|
|
11
|
+
import le from "@mui/material/ListItemButton";
|
|
12
12
|
import _e from "@mui/material/ListItemText";
|
|
13
|
-
import { F as
|
|
13
|
+
import { F as l, S as M, D as z, g as H, R as L, e as X } from "./RecurringTransactions-BOzBqfdg.mjs";
|
|
14
14
|
import { subDays as Z } from "date-fns/subDays";
|
|
15
15
|
import { startOfToday as E } from "date-fns/startOfToday";
|
|
16
16
|
import { endOfMonth as ue } from "date-fns/endOfMonth";
|
|
17
17
|
import { parseISO as me } from "date-fns/parseISO";
|
|
18
18
|
import J from "@mui/material/Button";
|
|
19
19
|
import { Delete as pe, Add as ye, ReceiptLong as he } from "@mxenabled/mx-icons";
|
|
20
|
-
import { T as V, u as fe, S as ge, a as Ce } from "./StatusIndicator-
|
|
21
|
-
import { T as be } from "./TransactionDetails-
|
|
20
|
+
import { T as V, u as fe, S as ge, a as Ce } from "./StatusIndicator-CIKUOoN_.mjs";
|
|
21
|
+
import { T as be } from "./TransactionDetails-BpcWeXNU.mjs";
|
|
22
22
|
import { addYears as j } from "date-fns/addYears";
|
|
23
23
|
import { getDayOfYear as xe } from "date-fns/getDayOfYear";
|
|
24
24
|
import { setDayOfYear as Se } from "date-fns/setDayOfYear";
|
|
@@ -27,7 +27,7 @@ import { DatePicker as De } from "@mui/x-date-pickers";
|
|
|
27
27
|
import { LocalizationProvider as we } from "@mui/x-date-pickers/LocalizationProvider";
|
|
28
28
|
import { u as w, i as Y, g as P, b as Ae, h as ee, o as Ie } from "./hooks-BxkfR-Ff.mjs";
|
|
29
29
|
import { b as Re, f as te } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
30
|
-
import { D as N } from "./Drawer-
|
|
30
|
+
import { D as N } from "./Drawer-Bbe4AMB1.mjs";
|
|
31
31
|
import { A as O } from "./Analytics-BYItVAe-.mjs";
|
|
32
32
|
import { f as Ee, D as Le } from "./DateFormats-BMpMrZpW.mjs";
|
|
33
33
|
import { D as Oe } from "./Dialog-Ck34yr-d.mjs";
|
|
@@ -35,7 +35,7 @@ import { formatISO as Te } from "date-fns/formatISO";
|
|
|
35
35
|
import { fromUnixTime as ke } from "date-fns/fromUnixTime";
|
|
36
36
|
import { S as Ne } from "./SearchBox-B7km148n.mjs";
|
|
37
37
|
import { h as Me } from "./DateUtil-wcYTmDRD.mjs";
|
|
38
|
-
import { b as
|
|
38
|
+
import { b as q } from "./Category-CevNQ03n.mjs";
|
|
39
39
|
import { T as ne } from "./Transaction-CqjlF6SO.mjs";
|
|
40
40
|
const re = ({
|
|
41
41
|
frequency: n,
|
|
@@ -43,18 +43,18 @@ const re = ({
|
|
|
43
43
|
secondDay: o,
|
|
44
44
|
onFrequencyChange: i,
|
|
45
45
|
onFirstDayChange: s,
|
|
46
|
-
onSecondDayChange:
|
|
46
|
+
onSecondDayChange: d
|
|
47
47
|
}) => {
|
|
48
48
|
const { recurring: r } = w(), a = _.useMemo(
|
|
49
49
|
() => [
|
|
50
|
-
{ id:
|
|
51
|
-
{ id:
|
|
52
|
-
{ id:
|
|
53
|
-
{ id:
|
|
54
|
-
{ id:
|
|
55
|
-
{ id:
|
|
56
|
-
{ id:
|
|
57
|
-
{ id:
|
|
50
|
+
{ id: l.EveryWeek, label: r.frequency_every_week },
|
|
51
|
+
{ id: l.EveryOtherWeek, label: r.frequency_every_other_week },
|
|
52
|
+
{ id: l.TwiceAMonth, label: r.frequency_twice_a_month },
|
|
53
|
+
{ id: l.EveryMonth, label: r.frequency_every_month },
|
|
54
|
+
{ id: l.EveryOtherMonth, label: r.frequency_every_other_month },
|
|
55
|
+
{ id: l.EveryQuarter, label: r.frequency_every_quarter },
|
|
56
|
+
{ id: l.EveryOtherQuarter, label: r.frequency_every_other_quarter },
|
|
57
|
+
{ id: l.EveryYear, label: r.frequency_every_year }
|
|
58
58
|
],
|
|
59
59
|
[r]
|
|
60
60
|
), m = [
|
|
@@ -70,7 +70,7 @@ const re = ({
|
|
|
70
70
|
label: Re(b + 1)
|
|
71
71
|
}));
|
|
72
72
|
h[30].label += ` (${r.last_day_of_month})`;
|
|
73
|
-
const g = h.slice(0, 15), v = h.slice(14), C = n ===
|
|
73
|
+
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 = Se(E(), t), y = A < E() ? j(A, 1) : A, D = (b) => {
|
|
74
74
|
b && s(xe(b));
|
|
75
75
|
};
|
|
76
76
|
return /* @__PURE__ */ c(p, { gap: 24, sx: { m: 24 }, children: [
|
|
@@ -95,22 +95,22 @@ const re = ({
|
|
|
95
95
|
f && /* @__PURE__ */ e(
|
|
96
96
|
M,
|
|
97
97
|
{
|
|
98
|
-
label: n ===
|
|
98
|
+
label: n === l.TwiceAMonth ? r.first_day_of_the_month : r.day_of_the_month,
|
|
99
99
|
onChange: s,
|
|
100
|
-
options: n ===
|
|
100
|
+
options: n === l.TwiceAMonth ? g : h,
|
|
101
101
|
value: t
|
|
102
102
|
}
|
|
103
103
|
),
|
|
104
|
-
n ===
|
|
104
|
+
n === l.TwiceAMonth && /* @__PURE__ */ e(
|
|
105
105
|
M,
|
|
106
106
|
{
|
|
107
107
|
label: r.second_day_of_the_month,
|
|
108
|
-
onChange:
|
|
108
|
+
onChange: d,
|
|
109
109
|
options: v,
|
|
110
110
|
value: o || 0
|
|
111
111
|
}
|
|
112
112
|
),
|
|
113
|
-
n ===
|
|
113
|
+
n === l.EveryYear && /* @__PURE__ */ e(we, { dateAdapter: ve, children: /* @__PURE__ */ e(
|
|
114
114
|
De,
|
|
115
115
|
{
|
|
116
116
|
disablePast: !0,
|
|
@@ -123,15 +123,15 @@ const re = ({
|
|
|
123
123
|
) })
|
|
124
124
|
] });
|
|
125
125
|
}, Fe = I(({ repeatingTransaction: n }) => {
|
|
126
|
-
const { recurring: t } = w(), { updateRepeatingTransaction: o } = Y(), { onEvent: i } = P(), [s,
|
|
126
|
+
const { recurring: t } = w(), { updateRepeatingTransaction: o } = Y(), { onEvent: i } = P(), [s, d] = _.useState(!1), [r, a] = _.useState(n.recurrence_type), [m, h] = _.useState(n.recurrence_day), [g, v] = _.useState(n.second_recurrence_day), C = async () => {
|
|
127
127
|
await o({
|
|
128
128
|
...n,
|
|
129
129
|
recurrence_type: r,
|
|
130
130
|
recurrence_day: m,
|
|
131
131
|
second_recurrence_day: g
|
|
132
|
-
}),
|
|
132
|
+
}), d(!1);
|
|
133
133
|
}, f = () => {
|
|
134
|
-
|
|
134
|
+
d(!0), i(O.RECURRING_TRANSACTIONS_DETAILS_CLICK_PAYMENT_SCHEDULE);
|
|
135
135
|
};
|
|
136
136
|
return /* @__PURE__ */ c(k, { children: [
|
|
137
137
|
/* @__PURE__ */ e(
|
|
@@ -140,7 +140,7 @@ const re = ({
|
|
|
140
140
|
iconName: "sync",
|
|
141
141
|
label: t.activity_schedule,
|
|
142
142
|
onClick: f,
|
|
143
|
-
value: `${
|
|
143
|
+
value: `${H(t, n, !0)}`
|
|
144
144
|
}
|
|
145
145
|
),
|
|
146
146
|
/* @__PURE__ */ e(
|
|
@@ -148,7 +148,7 @@ const re = ({
|
|
|
148
148
|
{
|
|
149
149
|
ariaLabelClose: t.close_drawer_aria,
|
|
150
150
|
isOpen: s,
|
|
151
|
-
onClose: () =>
|
|
151
|
+
onClose: () => d(!1),
|
|
152
152
|
onPrimaryAction: C,
|
|
153
153
|
title: t.payment_schedule,
|
|
154
154
|
children: /* @__PURE__ */ e(
|
|
@@ -167,7 +167,7 @@ const re = ({
|
|
|
167
167
|
] });
|
|
168
168
|
}), Ge = I(
|
|
169
169
|
({ onDeleted: n, recurringTransaction: t }) => {
|
|
170
|
-
const { recurring: o } = w(), { selectedAccountGuids: i } = Ae(), { onEvent: s } = P(), { deleteRepeatingTransaction:
|
|
170
|
+
const { recurring: o } = w(), { selectedAccountGuids: i } = Ae(), { onEvent: s } = P(), { deleteRepeatingTransaction: d } = Y(), { setFilter: r, transactions: a } = ee(), { amount: m, description: h, merchant_guid: g } = t, [v, C] = _.useState(!1), [f, A] = _.useState("");
|
|
171
171
|
_.useEffect(() => {
|
|
172
172
|
r({
|
|
173
173
|
accounts: i,
|
|
@@ -179,14 +179,14 @@ const re = ({
|
|
|
179
179
|
() => a.find((u) => u.guid === f),
|
|
180
180
|
[f, a]
|
|
181
181
|
), D = t.repeating_transaction_type === L.Income, b = async () => {
|
|
182
|
-
await
|
|
182
|
+
await d(t.guid), n();
|
|
183
183
|
}, U = () => {
|
|
184
184
|
C(!0), s(O.RECURRING_TRANSACTIONS_DETAILS_CLICK_DELETE);
|
|
185
185
|
};
|
|
186
186
|
return /* @__PURE__ */ c(p, { bgcolor: "background.default", direction: "column", height: "100%", children: [
|
|
187
187
|
/* @__PURE__ */ c(p, { direction: "column", m: 24, children: [
|
|
188
188
|
/* @__PURE__ */ e(
|
|
189
|
-
|
|
189
|
+
$,
|
|
190
190
|
{
|
|
191
191
|
categoryGuid: y?.category_guid || "",
|
|
192
192
|
merchantGuid: g,
|
|
@@ -195,7 +195,7 @@ const re = ({
|
|
|
195
195
|
}
|
|
196
196
|
),
|
|
197
197
|
/* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: h }),
|
|
198
|
-
/* @__PURE__ */ c(G, { color: D ? "success.main" : "text.primary", sx: { my: 4 }, variant: "
|
|
198
|
+
/* @__PURE__ */ c(G, { color: D ? "success.main" : "text.primary", sx: { my: 4 }, variant: "h1", children: [
|
|
199
199
|
D ? "+" : "",
|
|
200
200
|
te(m, "0,0.00")
|
|
201
201
|
] }),
|
|
@@ -208,7 +208,7 @@ const re = ({
|
|
|
208
208
|
Le.MONTH_DAY_YEAR
|
|
209
209
|
)}` })
|
|
210
210
|
] }),
|
|
211
|
-
/* @__PURE__ */ c(
|
|
211
|
+
/* @__PURE__ */ c(Q, { sx: { bgcolor: "background.paper" }, children: [
|
|
212
212
|
t.account && /* @__PURE__ */ c(k, { children: [
|
|
213
213
|
/* @__PURE__ */ e(
|
|
214
214
|
z,
|
|
@@ -245,7 +245,7 @@ const re = ({
|
|
|
245
245
|
children: D ? o.delete_income_title : o.delete_expense_title
|
|
246
246
|
}
|
|
247
247
|
),
|
|
248
|
-
/* @__PURE__ */ e(S, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "
|
|
248
|
+
/* @__PURE__ */ e(S, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "body1", children: o.paid_transactions }),
|
|
249
249
|
/* @__PURE__ */ e(V, { height: "30dvh", onClick: A }),
|
|
250
250
|
/* @__PURE__ */ e(
|
|
251
251
|
N,
|
|
@@ -275,18 +275,18 @@ const re = ({
|
|
|
275
275
|
), Ye = I(
|
|
276
276
|
({ onClick: n = () => {
|
|
277
277
|
}, repeatingTransaction: t }) => {
|
|
278
|
-
const { recurring: o } = w(), [i, s] = _.useState(!1),
|
|
278
|
+
const { recurring: o } = w(), [i, s] = _.useState(!1), d = _.useMemo(
|
|
279
279
|
() => t.transactions.length === 0 ? "" : t.transactions[0].category_guid || "",
|
|
280
280
|
[t]
|
|
281
|
-
), r = t.account?.displayName || "", a = t.repeating_transaction_type === L.Income, m =
|
|
281
|
+
), r = t.account?.displayName || "", a = t.repeating_transaction_type === L.Income, m = H(o, t, !0);
|
|
282
282
|
return /* @__PURE__ */ c(ce, { disableGutters: !0, disablePadding: !0, children: [
|
|
283
|
-
/* @__PURE__ */ c(
|
|
283
|
+
/* @__PURE__ */ c(le, { onClick: () => {
|
|
284
284
|
n(t), s(!0);
|
|
285
285
|
}, children: [
|
|
286
|
-
/* @__PURE__ */ e(
|
|
287
|
-
|
|
286
|
+
/* @__PURE__ */ e(de, { children: /* @__PURE__ */ e(
|
|
287
|
+
$,
|
|
288
288
|
{
|
|
289
|
-
categoryGuid:
|
|
289
|
+
categoryGuid: d,
|
|
290
290
|
merchantGuid: t.merchant_guid
|
|
291
291
|
}
|
|
292
292
|
) }),
|
|
@@ -360,7 +360,7 @@ const re = ({
|
|
|
360
360
|
onSearch: o,
|
|
361
361
|
onSelected: i
|
|
362
362
|
}) => {
|
|
363
|
-
const { recurring: s } = w(), { searchValue:
|
|
363
|
+
const { recurring: s } = w(), { searchValue: d, setSearchValue: r } = fe();
|
|
364
364
|
return /* @__PURE__ */ c(p, { sx: { bgcolor: n, gap: 16, pt: 8 }, children: [
|
|
365
365
|
t && /* @__PURE__ */ e(G, { sx: { mx: 24 }, children: t }),
|
|
366
366
|
/* @__PURE__ */ e(
|
|
@@ -372,7 +372,7 @@ const re = ({
|
|
|
372
372
|
r(a), o(a);
|
|
373
373
|
},
|
|
374
374
|
placeholder: s.select_transaction_search_placeholder,
|
|
375
|
-
searchValue:
|
|
375
|
+
searchValue: d
|
|
376
376
|
}
|
|
377
377
|
),
|
|
378
378
|
/* @__PURE__ */ e(
|
|
@@ -394,7 +394,7 @@ const re = ({
|
|
|
394
394
|
secondDay: o,
|
|
395
395
|
frequency: i,
|
|
396
396
|
onFrequencyChange: s,
|
|
397
|
-
onFirstDayChange:
|
|
397
|
+
onFirstDayChange: d,
|
|
398
398
|
onSecondDayChange: r,
|
|
399
399
|
transaction: a
|
|
400
400
|
}) => {
|
|
@@ -405,13 +405,13 @@ const re = ({
|
|
|
405
405
|
/* @__PURE__ */ e(Ce, { transaction: a })
|
|
406
406
|
] }),
|
|
407
407
|
/* @__PURE__ */ c(F, { children: [
|
|
408
|
-
/* @__PURE__ */ e(S, { bold: !0, sx: { mx: 24 }, variant: "
|
|
408
|
+
/* @__PURE__ */ e(S, { bold: !0, sx: { mx: 24 }, variant: "body1", children: m.payment_schedule }),
|
|
409
409
|
/* @__PURE__ */ e(
|
|
410
410
|
re,
|
|
411
411
|
{
|
|
412
412
|
firstDay: t,
|
|
413
413
|
frequency: i,
|
|
414
|
-
onFirstDayChange:
|
|
414
|
+
onFirstDayChange: d,
|
|
415
415
|
onFrequencyChange: s,
|
|
416
416
|
onSecondDayChange: r,
|
|
417
417
|
secondDay: o
|
|
@@ -420,17 +420,17 @@ const re = ({
|
|
|
420
420
|
] })
|
|
421
421
|
] });
|
|
422
422
|
}
|
|
423
|
-
),
|
|
423
|
+
), B = (n) => n.top_level_category_guid !== q.INCOME && n.transaction_type === ne.DEBIT, ze = (n, t) => B(n) ? n.payee?.toLowerCase().includes(t.toLowerCase()) || n.description.toLowerCase().includes(t.toLowerCase()) || n.feed_description.toLowerCase().includes(t.toLowerCase()) : !1, W = (n) => n.top_level_category_guid === q.INCOME || n.top_level_category_guid === q.TRANSFER && n.transaction_type === ne.CREDIT, qe = (n, t) => W(n) ? n.payee?.toLowerCase().includes(t.toLowerCase()) || n.description?.toLowerCase().includes(t.toLowerCase()) || n.feed_description?.toLowerCase().includes(t.toLowerCase()) : !1, oe = I(
|
|
424
424
|
({
|
|
425
425
|
isIncome: n = !1,
|
|
426
426
|
label: t,
|
|
427
427
|
onAddRecurringTransaction: o = () => null
|
|
428
428
|
}) => {
|
|
429
|
-
const { recurring: i } = w(), { filter: s, setFilter:
|
|
429
|
+
const { recurring: i } = w(), { filter: s, setFilter: d, transactions: r } = ee(), { addRepeatingTransaction: a } = Y(), { user: m } = Ie(), [h, g] = _.useState(!1), [v, C] = _.useState(""), [f, A] = _.useState(l.EveryMonth), [y, D] = _.useState(1), [b, U] = _.useState(15), u = _.useMemo(
|
|
430
430
|
() => r.find((x) => x.guid === v),
|
|
431
431
|
[v, r]
|
|
432
432
|
), ae = () => {
|
|
433
|
-
g(!0),
|
|
433
|
+
g(!0), d(n ? { ...s, custom: W } : { ...s, custom: B });
|
|
434
434
|
}, ie = async () => {
|
|
435
435
|
if (!u) {
|
|
436
436
|
K();
|
|
@@ -470,9 +470,9 @@ const re = ({
|
|
|
470
470
|
{
|
|
471
471
|
description: n ? i.add_income_description : i.add_expense_description,
|
|
472
472
|
onSearch: (x) => {
|
|
473
|
-
|
|
473
|
+
d({
|
|
474
474
|
...s,
|
|
475
|
-
custom: (R) => n ? x ?
|
|
475
|
+
custom: (R) => n ? x ? qe(R, x) : W(R) : x ? ze(R, x) : B(R)
|
|
476
476
|
});
|
|
477
477
|
},
|
|
478
478
|
onSelected: (x) => C(x)
|
|
@@ -504,13 +504,13 @@ const re = ({
|
|
|
504
504
|
)
|
|
505
505
|
] });
|
|
506
506
|
}
|
|
507
|
-
),
|
|
507
|
+
), Be = I(
|
|
508
508
|
({ zeroStateFor: n }) => {
|
|
509
|
-
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,
|
|
509
|
+
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;
|
|
510
510
|
return /* @__PURE__ */ c(p, { sx: { alignItems: "center", p: 24, pt: 48 }, children: [
|
|
511
511
|
/* @__PURE__ */ e(he, { size: 48 }),
|
|
512
512
|
/* @__PURE__ */ e(G, { sx: { my: 8, fontWeight: 600 }, variant: "body1", children: s }),
|
|
513
|
-
/* @__PURE__ */ e(G, { color: "text.secondary", sx: { mb: 32 }, variant: "subtitle2", children:
|
|
513
|
+
/* @__PURE__ */ e(G, { color: "text.secondary", sx: { mb: 32 }, variant: "subtitle2", children: d }),
|
|
514
514
|
/* @__PURE__ */ e(
|
|
515
515
|
oe,
|
|
516
516
|
{
|
|
@@ -530,10 +530,10 @@ const re = ({
|
|
|
530
530
|
i(O.RECURRING_TRANSACTIONS_CLICK_INCOME, {
|
|
531
531
|
repeating_transaction_guid: a.guid
|
|
532
532
|
});
|
|
533
|
-
},
|
|
533
|
+
}, d = () => {
|
|
534
534
|
i(O.RECURRING_TRANSACTIONS_CLICK_ADD_INCOME);
|
|
535
535
|
}, r = o.filter(
|
|
536
|
-
(a) => a.repeating_transaction_type === L.Income && (a.transactions.length > 0 || a.recurrence_type ===
|
|
536
|
+
(a) => a.repeating_transaction_type === L.Income && (a.transactions.length > 0 || a.recurrence_type === l.EveryYear)
|
|
537
537
|
);
|
|
538
538
|
return /* @__PURE__ */ e(k, { children: r.length !== 0 ? /* @__PURE__ */ c(
|
|
539
539
|
p,
|
|
@@ -543,8 +543,8 @@ const re = ({
|
|
|
543
543
|
maxHeight: n ? "calc(100vh - 62px)" : "calc(100vh - 109px)"
|
|
544
544
|
},
|
|
545
545
|
children: [
|
|
546
|
-
n && /* @__PURE__ */ e(S, { bold: !0, sx: { mb: 4, mt: 12, mx: 24 }, variant: "
|
|
547
|
-
/* @__PURE__ */ e(F, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(
|
|
546
|
+
n && /* @__PURE__ */ e(S, { bold: !0, sx: { mb: 4, mt: 12, mx: 24 }, variant: "body2", children: t.income }),
|
|
547
|
+
/* @__PURE__ */ e(F, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(Q, { sx: { bgcolor: "background.paper" }, children: r.map((a, m) => /* @__PURE__ */ c(_.Fragment, { children: [
|
|
548
548
|
/* @__PURE__ */ e(Ye, { onClick: s, repeatingTransaction: a }),
|
|
549
549
|
/* @__PURE__ */ e(
|
|
550
550
|
T,
|
|
@@ -571,7 +571,7 @@ const re = ({
|
|
|
571
571
|
{
|
|
572
572
|
isIncome: !0,
|
|
573
573
|
label: t.add_income,
|
|
574
|
-
onAddRecurringTransaction:
|
|
574
|
+
onAddRecurringTransaction: d
|
|
575
575
|
}
|
|
576
576
|
)
|
|
577
577
|
}
|
|
@@ -579,16 +579,16 @@ const re = ({
|
|
|
579
579
|
] })
|
|
580
580
|
]
|
|
581
581
|
}
|
|
582
|
-
) : /* @__PURE__ */ e(
|
|
582
|
+
) : /* @__PURE__ */ e(Be, { zeroStateFor: "income" }) });
|
|
583
583
|
});
|
|
584
584
|
export {
|
|
585
585
|
oe as A,
|
|
586
586
|
Et as M,
|
|
587
587
|
Ye as R,
|
|
588
588
|
Pe as S,
|
|
589
|
-
|
|
589
|
+
Be as a,
|
|
590
590
|
Ge as b,
|
|
591
591
|
Ue as c,
|
|
592
592
|
W as d,
|
|
593
|
-
|
|
593
|
+
qe as i
|
|
594
594
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsxs as r, jsx as i, Fragment as g } from "react/jsx-runtime";
|
|
2
2
|
import x from "@mui/material/Box";
|
|
3
3
|
import C from "@mui/material/Button";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import b from "@mui/material/Card";
|
|
5
|
+
import u from "@mui/material/CardHeader";
|
|
6
|
+
import v from "@mui/material/CardContent";
|
|
7
7
|
import W from "@mui/material/IconButton";
|
|
8
8
|
import { Icon as z, ChevronRight as H } from "@mxenabled/mx-icons";
|
|
9
|
-
import { H3 as I, Text as
|
|
10
|
-
import { u as
|
|
9
|
+
import { H3 as I, Text as y, P as B } from "@mxenabled/mxui";
|
|
10
|
+
import { u as M } from "./useDimensions-CeDR9V8N.mjs";
|
|
11
11
|
import { W as j } from "./hooks-BxkfR-Ff.mjs";
|
|
12
12
|
const w = ({
|
|
13
13
|
children: a,
|
|
14
14
|
className: m = "mx-cmn-mini-widget",
|
|
15
|
-
closeLabel:
|
|
16
|
-
contentStyles:
|
|
15
|
+
closeLabel: d,
|
|
16
|
+
contentStyles: l,
|
|
17
17
|
onClose: e,
|
|
18
18
|
onPrimaryCtaClick: o,
|
|
19
19
|
primaryCtaLabel: s = "",
|
|
@@ -21,10 +21,10 @@ const w = ({
|
|
|
21
21
|
sx: c = {},
|
|
22
22
|
title: t = ""
|
|
23
23
|
}) => {
|
|
24
|
-
const [p, { height: h, width: f }] =
|
|
25
|
-
return /* @__PURE__ */ r(
|
|
24
|
+
const [p, { height: h, width: f }] = M();
|
|
25
|
+
return /* @__PURE__ */ r(b, { className: m, sx: { ...c }, children: [
|
|
26
26
|
/* @__PURE__ */ i(
|
|
27
|
-
|
|
27
|
+
u,
|
|
28
28
|
{
|
|
29
29
|
sx: { pb: 8 },
|
|
30
30
|
title: /* @__PURE__ */ r(g, { children: [
|
|
@@ -40,15 +40,15 @@ const w = ({
|
|
|
40
40
|
},
|
|
41
41
|
children: [
|
|
42
42
|
t && /* @__PURE__ */ i(I, { children: t }),
|
|
43
|
-
e ? /* @__PURE__ */ i(W, { "aria-label":
|
|
43
|
+
e ? /* @__PURE__ */ i(W, { "aria-label": d, onClick: e, size: "small", children: /* @__PURE__ */ i(z, { name: "close", size: 24 }) }) : o && /* @__PURE__ */ i(C, { endIcon: /* @__PURE__ */ i(H, {}), onClick: o, size: "small", children: /* @__PURE__ */ i(y, { bold: !0, variant: "body2", children: s }) })
|
|
44
44
|
]
|
|
45
45
|
}
|
|
46
46
|
),
|
|
47
|
-
n && /* @__PURE__ */ i(
|
|
47
|
+
n && /* @__PURE__ */ i(B, { color: "text.secondary", sx: { fontSize: 15, lineHeight: "20px" }, variant: "body2", children: n })
|
|
48
48
|
] })
|
|
49
49
|
}
|
|
50
50
|
),
|
|
51
|
-
/* @__PURE__ */ i(
|
|
51
|
+
/* @__PURE__ */ i(v, { ref: p, sx: { p: 0, ...l }, children: /* @__PURE__ */ i(j, { availableHeight: h, availableWidth: f, children: a }) })
|
|
52
52
|
] });
|
|
53
53
|
}, G = w;
|
|
54
54
|
export {
|