@mx-cartographer/experiences 7.9.6-alpha.mm0 → 7.9.6
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/{ManageIncome-DOsgqv_y.mjs → ManageIncome-DV6GIjAN.mjs} +79 -83
- package/dist/{RecurringSettings-DT1hanRo.mjs → RecurringSettings-CE7kxzFZ.mjs} +2 -2
- package/dist/{TransactionDetails-BdR4hm3y.mjs → TransactionDetails-DhEr3tAj.mjs} +42 -43
- package/dist/{WidgetContainer-DaQvpZHu.mjs → WidgetContainer-to34uDrh.mjs} +148 -153
- package/dist/accounts/index.es.js +2 -2
- package/dist/budgets/index.es.js +3 -3
- package/dist/cashflow/index.es.js +4 -4
- package/dist/common/index.es.js +1 -2
- package/dist/common/types/AppData.d.ts +0 -1
- package/dist/debts/index.es.js +1 -1
- package/dist/finstrong/index.es.js +4 -4
- package/dist/goals/index.es.js +1 -1
- package/dist/help/index.es.js +1 -1
- package/dist/investments/index.es.js +1 -1
- package/dist/networth/index.es.js +1 -1
- package/dist/recurringtransactions/index.es.js +5 -5
- package/dist/settings/index.es.js +1 -1
- package/dist/spending/index.es.js +2 -2
- package/dist/transactions/index.es.js +3 -3
- package/dist/trends/index.es.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,7 @@ import { observer as A } from "mobx-react-lite";
|
|
|
4
4
|
import M from "@mui/material/Box";
|
|
5
5
|
import T from "@mui/material/Divider";
|
|
6
6
|
import K from "@mui/material/List";
|
|
7
|
-
import
|
|
7
|
+
import h from "@mui/material/Stack";
|
|
8
8
|
import { MerchantLogo as H, Text as S, P as F, InstitutionLogo as oe } from "@mxenabled/mxui";
|
|
9
9
|
import ae from "@mui/material/ListItem";
|
|
10
10
|
import ie from "@mui/material/ListItemAvatar";
|
|
@@ -16,23 +16,22 @@ import { startOfToday as z } from "date-fns/startOfToday";
|
|
|
16
16
|
import { endOfMonth as _e } from "date-fns/endOfMonth";
|
|
17
17
|
import { parseISO as ue } from "date-fns/parseISO";
|
|
18
18
|
import $ from "@mui/material/Button";
|
|
19
|
-
import { Delete as me, Add as pe, ReceiptLong as
|
|
20
|
-
import { T as X, a as
|
|
19
|
+
import { Delete as me, Add as pe, ReceiptLong as he } from "@mxenabled/mx-icons";
|
|
20
|
+
import { T as X, a as ye, u as ge, S as fe, b as Ce } from "./TransactionDetails-DhEr3tAj.mjs";
|
|
21
21
|
import { getDayOfYear as be } from "date-fns/getDayOfYear";
|
|
22
22
|
import { setDayOfYear as xe } from "date-fns/setDayOfYear";
|
|
23
23
|
import { AdapterDateFns as Se } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
24
24
|
import { DatePicker as ve } from "@mui/x-date-pickers";
|
|
25
25
|
import { LocalizationProvider as we } from "@mui/x-date-pickers/LocalizationProvider";
|
|
26
|
-
import { u as w, j as G, g as P, b as Ae, h as Z, o as
|
|
27
|
-
import { b as
|
|
26
|
+
import { u as w, j as G, g as P, b as Ae, h as Z, o as Ie } from "./hooks-ZMp65DFz.mjs";
|
|
27
|
+
import { b as De, f as J } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
28
28
|
import { D as O } from "./Drawer-DV4NTsFg.mjs";
|
|
29
|
-
import { A as E } from "./WidgetContainer-
|
|
29
|
+
import { A as E } from "./WidgetContainer-to34uDrh.mjs";
|
|
30
30
|
import { f as Re, D as Ee, a as Te } from "./Dialog-B4PI-_bL.mjs";
|
|
31
31
|
import { formatISO as Le } from "date-fns/formatISO";
|
|
32
32
|
import { fromUnixTime as Oe } from "date-fns/fromUnixTime";
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import { h as Me } from "./DateUtil-D7U-nc1Y.mjs";
|
|
33
|
+
import { S as ke } from "./SearchBox-B2_zLv8-.mjs";
|
|
34
|
+
import { h as Ne } from "./DateUtil-D7U-nc1Y.mjs";
|
|
36
35
|
import { b as B } from "./Category-CevNQ03n.mjs";
|
|
37
36
|
import { T as V } from "./User-B0LnmiKO.mjs";
|
|
38
37
|
const ee = ({
|
|
@@ -63,15 +62,15 @@ const ee = ({
|
|
|
63
62
|
{ id: 4, label: r.weekday_thursday },
|
|
64
63
|
{ id: 5, label: r.weekday_friday },
|
|
65
64
|
{ id: 6, label: r.weekday_saturday }
|
|
66
|
-
],
|
|
65
|
+
], y = [...Array(31).keys()].map((p) => ({
|
|
67
66
|
id: p + 1,
|
|
68
|
-
label:
|
|
67
|
+
label: De(p + 1)
|
|
69
68
|
}));
|
|
70
|
-
|
|
71
|
-
const C =
|
|
69
|
+
y[30].label += ` (${r.last_day_of_month})`;
|
|
70
|
+
const C = y.slice(0, 15), v = y.slice(14), b = n === d.EveryWeek || n === d.EveryOtherWeek, g = n === d.TwiceAMonth || n === d.EveryMonth || n === d.EveryOtherMonth || n === d.EveryQuarter || n === d.EveryOtherQuarter, I = xe(z(), t), f = (p) => {
|
|
72
71
|
p && s(be(p));
|
|
73
72
|
};
|
|
74
|
-
return /* @__PURE__ */ c(
|
|
73
|
+
return /* @__PURE__ */ c(h, { gap: 24, sx: { m: 24 }, children: [
|
|
75
74
|
/* @__PURE__ */ e(
|
|
76
75
|
N,
|
|
77
76
|
{
|
|
@@ -90,12 +89,12 @@ const ee = ({
|
|
|
90
89
|
value: t
|
|
91
90
|
}
|
|
92
91
|
),
|
|
93
|
-
|
|
92
|
+
g && /* @__PURE__ */ e(
|
|
94
93
|
N,
|
|
95
94
|
{
|
|
96
95
|
label: n === d.TwiceAMonth ? r.first_day_of_the_month : r.day_of_the_month,
|
|
97
96
|
onChange: s,
|
|
98
|
-
options: n === d.TwiceAMonth ? C :
|
|
97
|
+
options: n === d.TwiceAMonth ? C : y,
|
|
99
98
|
value: t
|
|
100
99
|
}
|
|
101
100
|
),
|
|
@@ -113,20 +112,20 @@ const ee = ({
|
|
|
113
112
|
{
|
|
114
113
|
disablePast: !0,
|
|
115
114
|
label: r.next_payment_date,
|
|
116
|
-
onChange:
|
|
117
|
-
value:
|
|
115
|
+
onChange: f,
|
|
116
|
+
value: I
|
|
118
117
|
}
|
|
119
118
|
) })
|
|
120
119
|
] });
|
|
121
|
-
},
|
|
122
|
-
const { recurring: t } = w(), { updateRepeatingTransaction: o } = G(), { onEvent: i } = P(), [s, l] = _.useState(!1), [r, a] = _.useState(n.recurrence_type), [m,
|
|
120
|
+
}, Me = A(({ repeatingTransaction: n }) => {
|
|
121
|
+
const { recurring: t } = w(), { updateRepeatingTransaction: o } = G(), { onEvent: i } = P(), [s, l] = _.useState(!1), [r, a] = _.useState(n.recurrence_type), [m, y] = _.useState(n.recurrence_day), [C, v] = _.useState(n.second_recurrence_day), b = async () => {
|
|
123
122
|
await o({
|
|
124
123
|
...n,
|
|
125
124
|
recurrence_type: r,
|
|
126
125
|
recurrence_day: m,
|
|
127
126
|
second_recurrence_day: C
|
|
128
127
|
}), l(!1);
|
|
129
|
-
},
|
|
128
|
+
}, g = () => {
|
|
130
129
|
l(!0), i(E.RECURRING_TRANSACTIONS_DETAILS_CLICK_PAYMENT_SCHEDULE);
|
|
131
130
|
};
|
|
132
131
|
return /* @__PURE__ */ c(L, { children: [
|
|
@@ -135,7 +134,7 @@ const ee = ({
|
|
|
135
134
|
{
|
|
136
135
|
iconName: "sync",
|
|
137
136
|
label: t.activity_schedule,
|
|
138
|
-
onClick:
|
|
137
|
+
onClick: g,
|
|
139
138
|
value: `${Q(t, n, !0)}`
|
|
140
139
|
}
|
|
141
140
|
),
|
|
@@ -152,7 +151,7 @@ const ee = ({
|
|
|
152
151
|
{
|
|
153
152
|
firstDay: m,
|
|
154
153
|
frequency: r,
|
|
155
|
-
onFirstDayChange:
|
|
154
|
+
onFirstDayChange: y,
|
|
156
155
|
onFrequencyChange: a,
|
|
157
156
|
onSecondDayChange: v,
|
|
158
157
|
secondDay: C
|
|
@@ -161,9 +160,9 @@ const ee = ({
|
|
|
161
160
|
}
|
|
162
161
|
)
|
|
163
162
|
] });
|
|
164
|
-
}),
|
|
163
|
+
}), Fe = A(
|
|
165
164
|
({ onDeleted: n, recurringTransaction: t }) => {
|
|
166
|
-
const { recurring: o } = w(), { selectedAccountGuids: i } = Ae(), { onEvent: s } = P(), { deleteRepeatingTransaction: l } = G(), { setFilter: r, transactions: a } = Z(), { amount: m, description:
|
|
165
|
+
const { recurring: o } = w(), { selectedAccountGuids: i } = Ae(), { onEvent: s } = P(), { deleteRepeatingTransaction: l } = G(), { setFilter: r, transactions: a } = Z(), { amount: m, description: y, merchant_guid: C } = t, [v, b] = _.useState(!1), [g, I] = _.useState("");
|
|
167
166
|
_.useEffect(() => {
|
|
168
167
|
r({
|
|
169
168
|
accounts: i,
|
|
@@ -171,26 +170,26 @@ const ee = ({
|
|
|
171
170
|
custom: (u) => u.repeating_transaction_guid === t.guid
|
|
172
171
|
});
|
|
173
172
|
}, [t]);
|
|
174
|
-
const
|
|
175
|
-
() => a.find((u) => u.guid ===
|
|
176
|
-
[
|
|
173
|
+
const f = _.useMemo(
|
|
174
|
+
() => a.find((u) => u.guid === g),
|
|
175
|
+
[g, a]
|
|
177
176
|
), p = t.repeating_transaction_type === R.Income, k = async () => {
|
|
178
177
|
await l(t.guid), n();
|
|
179
178
|
}, U = () => {
|
|
180
179
|
b(!0), s(E.RECURRING_TRANSACTIONS_DETAILS_CLICK_DELETE);
|
|
181
180
|
};
|
|
182
|
-
return /* @__PURE__ */ c(
|
|
183
|
-
/* @__PURE__ */ c(
|
|
181
|
+
return /* @__PURE__ */ c(h, { bgcolor: "background.default", direction: "column", height: "100%", children: [
|
|
182
|
+
/* @__PURE__ */ c(h, { direction: "column", m: 24, children: [
|
|
184
183
|
/* @__PURE__ */ e(
|
|
185
184
|
H,
|
|
186
185
|
{
|
|
187
|
-
categoryGuid:
|
|
186
|
+
categoryGuid: f?.category_guid || "",
|
|
188
187
|
merchantGuid: C,
|
|
189
188
|
size: 64,
|
|
190
189
|
sx: { mb: 12 }
|
|
191
190
|
}
|
|
192
191
|
),
|
|
193
|
-
/* @__PURE__ */ e(S, { bold: !0, variant: "body1", children:
|
|
192
|
+
/* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: y }),
|
|
194
193
|
/* @__PURE__ */ c(F, { color: p ? "success.main" : "text.primary", sx: { my: 4 }, variant: "H1", children: [
|
|
195
194
|
p ? "+" : "",
|
|
196
195
|
J(m, "0,0.00")
|
|
@@ -212,18 +211,18 @@ const ee = ({
|
|
|
212
211
|
),
|
|
213
212
|
/* @__PURE__ */ e(T, { variant: "inset" })
|
|
214
213
|
] }),
|
|
215
|
-
|
|
214
|
+
f?.category && /* @__PURE__ */ c(L, { children: [
|
|
216
215
|
/* @__PURE__ */ e(
|
|
217
216
|
Y,
|
|
218
217
|
{
|
|
219
218
|
iconName: "monetization_on",
|
|
220
219
|
label: o.category,
|
|
221
|
-
value:
|
|
220
|
+
value: f.category
|
|
222
221
|
}
|
|
223
222
|
),
|
|
224
223
|
/* @__PURE__ */ e(T, { variant: "inset" })
|
|
225
224
|
] }),
|
|
226
|
-
/* @__PURE__ */ e(
|
|
225
|
+
/* @__PURE__ */ e(Me, { repeatingTransaction: t }),
|
|
227
226
|
/* @__PURE__ */ e(T, {})
|
|
228
227
|
] }),
|
|
229
228
|
/* @__PURE__ */ e(
|
|
@@ -238,15 +237,15 @@ const ee = ({
|
|
|
238
237
|
}
|
|
239
238
|
),
|
|
240
239
|
/* @__PURE__ */ e(S, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "Body", children: o.paid_transactions }),
|
|
241
|
-
/* @__PURE__ */ e(X, { height: "30dvh", onClick:
|
|
240
|
+
/* @__PURE__ */ e(X, { height: "30dvh", onClick: I }),
|
|
242
241
|
/* @__PURE__ */ e(
|
|
243
242
|
O,
|
|
244
243
|
{
|
|
245
244
|
ariaLabelClose: o.close_drawer_aria,
|
|
246
|
-
isOpen: !!
|
|
247
|
-
onClose: () =>
|
|
245
|
+
isOpen: !!g && !!f,
|
|
246
|
+
onClose: () => I(""),
|
|
248
247
|
title: o.transaction_details_drawer_title,
|
|
249
|
-
children:
|
|
248
|
+
children: f && /* @__PURE__ */ e(ye, { transaction: f })
|
|
250
249
|
}
|
|
251
250
|
),
|
|
252
251
|
/* @__PURE__ */ e(
|
|
@@ -264,7 +263,7 @@ const ee = ({
|
|
|
264
263
|
)
|
|
265
264
|
] });
|
|
266
265
|
}
|
|
267
|
-
),
|
|
266
|
+
), Ge = A(
|
|
268
267
|
({ onClick: n = () => {
|
|
269
268
|
}, repeatingTransaction: t }) => {
|
|
270
269
|
const { recurring: o } = w(), [i, s] = _.useState(!1), l = _.useMemo(
|
|
@@ -282,10 +281,10 @@ const ee = ({
|
|
|
282
281
|
merchantGuid: t.merchant_guid
|
|
283
282
|
}
|
|
284
283
|
) }),
|
|
285
|
-
/* @__PURE__ */ e(ce, { children: /* @__PURE__ */ c(
|
|
286
|
-
/* @__PURE__ */ c(
|
|
284
|
+
/* @__PURE__ */ e(ce, { children: /* @__PURE__ */ c(h, { direction: "row", gap: 4, sx: { justifyContent: "space-between" }, children: [
|
|
285
|
+
/* @__PURE__ */ c(h, { direction: "column", sx: { width: "50%" }, children: [
|
|
287
286
|
/* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: t.description }),
|
|
288
|
-
/* @__PURE__ */ c(
|
|
287
|
+
/* @__PURE__ */ c(h, { alignItems: "center", direction: "row", gap: 6, children: [
|
|
289
288
|
t.account?.institution_guid && /* @__PURE__ */ e(
|
|
290
289
|
oe,
|
|
291
290
|
{
|
|
@@ -297,7 +296,7 @@ const ee = ({
|
|
|
297
296
|
/* @__PURE__ */ e(S, { variant: "caption", children: r })
|
|
298
297
|
] })
|
|
299
298
|
] }),
|
|
300
|
-
/* @__PURE__ */ c(
|
|
299
|
+
/* @__PURE__ */ c(h, { alignItems: "flex-end", sx: { width: "50%" }, children: [
|
|
301
300
|
/* @__PURE__ */ c(
|
|
302
301
|
S,
|
|
303
302
|
{
|
|
@@ -311,7 +310,7 @@ const ee = ({
|
|
|
311
310
|
}
|
|
312
311
|
),
|
|
313
312
|
/* @__PURE__ */ e(
|
|
314
|
-
|
|
313
|
+
h,
|
|
315
314
|
{
|
|
316
315
|
direction: "row",
|
|
317
316
|
sx: {
|
|
@@ -335,7 +334,7 @@ const ee = ({
|
|
|
335
334
|
onClose: () => s(!1),
|
|
336
335
|
title: t.repeating_transaction_type === R.Income ? o.income_details : o.expense_details,
|
|
337
336
|
children: /* @__PURE__ */ e(
|
|
338
|
-
|
|
337
|
+
Fe,
|
|
339
338
|
{
|
|
340
339
|
onDeleted: () => s(!1),
|
|
341
340
|
recurringTransaction: t
|
|
@@ -345,7 +344,7 @@ const ee = ({
|
|
|
345
344
|
)
|
|
346
345
|
] });
|
|
347
346
|
}
|
|
348
|
-
),
|
|
347
|
+
), Pe = A(
|
|
349
348
|
({
|
|
350
349
|
bgcolor: n = "background.default",
|
|
351
350
|
description: t,
|
|
@@ -353,10 +352,10 @@ const ee = ({
|
|
|
353
352
|
onSelected: i
|
|
354
353
|
}) => {
|
|
355
354
|
const { recurring: s } = w(), { searchValue: l, setSearchValue: r } = ge();
|
|
356
|
-
return /* @__PURE__ */ c(
|
|
355
|
+
return /* @__PURE__ */ c(h, { sx: { bgcolor: n, gap: 16, pt: 8 }, children: [
|
|
357
356
|
t && /* @__PURE__ */ e(F, { sx: { mx: 24 }, children: t }),
|
|
358
357
|
/* @__PURE__ */ e(
|
|
359
|
-
|
|
358
|
+
ke,
|
|
360
359
|
{
|
|
361
360
|
ariaLabel: s.select_transaction_search_aria,
|
|
362
361
|
cancelAriaLabel: s.select_transaction_search_cancel_aria,
|
|
@@ -379,7 +378,7 @@ const ee = ({
|
|
|
379
378
|
)
|
|
380
379
|
] });
|
|
381
380
|
}
|
|
382
|
-
),
|
|
381
|
+
), Ue = A(
|
|
383
382
|
({
|
|
384
383
|
bgcolor: n = "background.default",
|
|
385
384
|
firstDay: t,
|
|
@@ -391,9 +390,9 @@ const ee = ({
|
|
|
391
390
|
transaction: a
|
|
392
391
|
}) => {
|
|
393
392
|
const { recurring: m } = w();
|
|
394
|
-
return /* @__PURE__ */ c(
|
|
395
|
-
/* @__PURE__ */ c(
|
|
396
|
-
/* @__PURE__ */ e(fe, { bgcolor: n, children:
|
|
393
|
+
return /* @__PURE__ */ c(h, { bgcolor: n, gap: 24, height: "100%", children: [
|
|
394
|
+
/* @__PURE__ */ c(h, { children: [
|
|
395
|
+
/* @__PURE__ */ e(fe, { bgcolor: n, children: Ne(a.date) }),
|
|
397
396
|
/* @__PURE__ */ e(Ce, { transaction: a })
|
|
398
397
|
] }),
|
|
399
398
|
/* @__PURE__ */ c(M, { children: [
|
|
@@ -412,13 +411,13 @@ const ee = ({
|
|
|
412
411
|
] })
|
|
413
412
|
] });
|
|
414
413
|
}
|
|
415
|
-
), q = (n) => n.top_level_category_guid !== B.INCOME && n.transaction_type === V.DEBIT,
|
|
414
|
+
), q = (n) => n.top_level_category_guid !== B.INCOME && n.transaction_type === V.DEBIT, Ye = (n, t) => q(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 === B.INCOME || n.top_level_category_guid === B.TRANSFER && n.transaction_type === V.CREDIT, ze = (n, t) => W(n) ? n.payee?.toLowerCase().includes(t.toLowerCase()) || n.description?.toLowerCase().includes(t.toLowerCase()) || n.feed_description?.toLowerCase().includes(t.toLowerCase()) : !1, te = A(
|
|
416
415
|
({
|
|
417
416
|
isIncome: n = !1,
|
|
418
417
|
label: t,
|
|
419
418
|
onAddRecurringTransaction: o = () => null
|
|
420
419
|
}) => {
|
|
421
|
-
const { recurring: i } = w(), { filter: s, setFilter: l, transactions: r } = Z(), { addRepeatingTransaction: a } = G(), { user: m } =
|
|
420
|
+
const { recurring: i } = w(), { filter: s, setFilter: l, transactions: r } = Z(), { addRepeatingTransaction: a } = G(), { user: m } = Ie(), [y, C] = _.useState(!1), [v, b] = _.useState(""), [g, I] = _.useState(d.EveryMonth), [f, p] = _.useState(1), [k, U] = _.useState(15), u = _.useMemo(
|
|
422
421
|
() => r.find((x) => x.guid === v),
|
|
423
422
|
[v, r]
|
|
424
423
|
), ne = () => {
|
|
@@ -429,10 +428,7 @@ const ee = ({
|
|
|
429
428
|
return;
|
|
430
429
|
}
|
|
431
430
|
o();
|
|
432
|
-
const x = le(
|
|
433
|
-
f,
|
|
434
|
-
ke(Oe(u.date), h)
|
|
435
|
-
), I = {
|
|
431
|
+
const x = le(g, Oe(u.date)), D = {
|
|
436
432
|
account_guid: u.account_guid,
|
|
437
433
|
amount: u.amount,
|
|
438
434
|
created_by: 0,
|
|
@@ -440,14 +436,14 @@ const ee = ({
|
|
|
440
436
|
merchant_guid: u.merchant_guid,
|
|
441
437
|
description: u.payee || u.description || u.feed_description,
|
|
442
438
|
predicted_occurs_on: Le(x, { representation: "date" }),
|
|
443
|
-
recurrence_day:
|
|
444
|
-
recurrence_type:
|
|
439
|
+
recurrence_day: f,
|
|
440
|
+
recurrence_type: g,
|
|
445
441
|
repeating_transaction_type: n ? R.Income : R.Bill,
|
|
446
442
|
second_recurrence_day: k,
|
|
447
443
|
transaction_type: u.transaction_type,
|
|
448
444
|
user_guid: m.guid
|
|
449
445
|
};
|
|
450
|
-
await a(
|
|
446
|
+
await a(D, u), j();
|
|
451
447
|
}, j = () => {
|
|
452
448
|
b(""), C(!1);
|
|
453
449
|
};
|
|
@@ -457,17 +453,17 @@ const ee = ({
|
|
|
457
453
|
O,
|
|
458
454
|
{
|
|
459
455
|
ariaLabelClose: i.close_drawer_aria,
|
|
460
|
-
isOpen:
|
|
456
|
+
isOpen: y,
|
|
461
457
|
onClose: () => C(!1),
|
|
462
458
|
title: t,
|
|
463
459
|
children: /* @__PURE__ */ e(
|
|
464
|
-
|
|
460
|
+
Pe,
|
|
465
461
|
{
|
|
466
462
|
description: n ? i.add_income_description : i.add_expense_description,
|
|
467
463
|
onSearch: (x) => {
|
|
468
464
|
l({
|
|
469
465
|
...s,
|
|
470
|
-
custom: (
|
|
466
|
+
custom: (D) => n ? x ? ze(D, x) : W(D) : x ? Ye(D, x) : q(D)
|
|
471
467
|
});
|
|
472
468
|
},
|
|
473
469
|
onSelected: (x) => b(x)
|
|
@@ -484,12 +480,12 @@ const ee = ({
|
|
|
484
480
|
onPrimaryAction: re,
|
|
485
481
|
title: n ? i.income_details : i.expense_details,
|
|
486
482
|
children: u && /* @__PURE__ */ e(
|
|
487
|
-
|
|
483
|
+
Ue,
|
|
488
484
|
{
|
|
489
|
-
firstDay:
|
|
490
|
-
frequency:
|
|
485
|
+
firstDay: f,
|
|
486
|
+
frequency: g,
|
|
491
487
|
onFirstDayChange: p,
|
|
492
|
-
onFrequencyChange:
|
|
488
|
+
onFrequencyChange: I,
|
|
493
489
|
onSecondDayChange: U,
|
|
494
490
|
secondDay: k,
|
|
495
491
|
transaction: u
|
|
@@ -499,11 +495,11 @@ const ee = ({
|
|
|
499
495
|
)
|
|
500
496
|
] });
|
|
501
497
|
}
|
|
502
|
-
),
|
|
498
|
+
), Be = A(
|
|
503
499
|
({ zeroStateFor: n }) => {
|
|
504
500
|
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, l = i ? t.recurring_setting_zero_state_income_description : t.recurring_setting_zero_state_expenses_description, r = i ? t.add_income : t.add_expense;
|
|
505
|
-
return /* @__PURE__ */ c(
|
|
506
|
-
/* @__PURE__ */ e(
|
|
501
|
+
return /* @__PURE__ */ c(h, { sx: { alignItems: "center", p: 24, pt: 48 }, children: [
|
|
502
|
+
/* @__PURE__ */ e(he, { size: 48 }),
|
|
507
503
|
/* @__PURE__ */ e(F, { sx: { my: 8, fontWeight: 600 }, variant: "body1", children: s }),
|
|
508
504
|
/* @__PURE__ */ e(F, { color: "text.secondary", sx: { mb: 32 }, variant: "subtitle2", children: l }),
|
|
509
505
|
/* @__PURE__ */ e(
|
|
@@ -520,7 +516,7 @@ const ee = ({
|
|
|
520
516
|
)
|
|
521
517
|
] });
|
|
522
518
|
}
|
|
523
|
-
),
|
|
519
|
+
), At = A(({ forOverview: n = !1 }) => {
|
|
524
520
|
const { recurring: t } = w(), { detailedRepeatingTransactions: o } = G(), { onEvent: i } = P(), s = (a) => {
|
|
525
521
|
i(E.RECURRING_TRANSACTIONS_CLICK_INCOME, {
|
|
526
522
|
repeating_transaction_guid: a.guid
|
|
@@ -531,7 +527,7 @@ const ee = ({
|
|
|
531
527
|
(a) => a.repeating_transaction_type === R.Income && (a.transactions.length > 0 || a.recurrence_type === d.EveryYear)
|
|
532
528
|
);
|
|
533
529
|
return /* @__PURE__ */ e(L, { children: r.length !== 0 ? /* @__PURE__ */ c(
|
|
534
|
-
|
|
530
|
+
h,
|
|
535
531
|
{
|
|
536
532
|
sx: {
|
|
537
533
|
height: n ? "calc(100vh - 62px)" : "calc(100vh - 109px)",
|
|
@@ -540,7 +536,7 @@ const ee = ({
|
|
|
540
536
|
children: [
|
|
541
537
|
n && /* @__PURE__ */ e(S, { bold: !0, sx: { mb: 4, mt: 12, mx: 24 }, variant: "Small", children: t.income }),
|
|
542
538
|
/* @__PURE__ */ e(M, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(K, { sx: { bgcolor: "background.paper" }, children: r.map((a, m) => /* @__PURE__ */ c(_.Fragment, { children: [
|
|
543
|
-
/* @__PURE__ */ e(
|
|
539
|
+
/* @__PURE__ */ e(Ge, { onClick: s, repeatingTransaction: a }),
|
|
544
540
|
/* @__PURE__ */ e(
|
|
545
541
|
T,
|
|
546
542
|
{
|
|
@@ -574,16 +570,16 @@ const ee = ({
|
|
|
574
570
|
] })
|
|
575
571
|
]
|
|
576
572
|
}
|
|
577
|
-
) : /* @__PURE__ */ e(
|
|
573
|
+
) : /* @__PURE__ */ e(Be, { zeroStateFor: "income" }) });
|
|
578
574
|
});
|
|
579
575
|
export {
|
|
580
576
|
te as A,
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
577
|
+
At as M,
|
|
578
|
+
Ge as R,
|
|
579
|
+
Pe as S,
|
|
580
|
+
Be as a,
|
|
581
|
+
Fe as b,
|
|
582
|
+
Ue as c,
|
|
587
583
|
W as d,
|
|
588
|
-
|
|
584
|
+
ze as i
|
|
589
585
|
};
|
|
@@ -7,10 +7,10 @@ import R from "@mui/material/Tabs";
|
|
|
7
7
|
import d from "@mui/material/Divider";
|
|
8
8
|
import b from "@mui/material/List";
|
|
9
9
|
import T from "@mui/material/Stack";
|
|
10
|
-
import { R as C, A as S, a as E, M as v } from "./ManageIncome-
|
|
10
|
+
import { R as C, A as S, a as E, M as v } from "./ManageIncome-DV6GIjAN.mjs";
|
|
11
11
|
import { u as _, j as A, g as f } from "./hooks-ZMp65DFz.mjs";
|
|
12
12
|
import { R as y, F as N } from "./RepeatingTransaction-miZVnk_A.mjs";
|
|
13
|
-
import { A as m } from "./WidgetContainer-
|
|
13
|
+
import { A as m } from "./WidgetContainer-to34uDrh.mjs";
|
|
14
14
|
const I = h(() => {
|
|
15
15
|
const { recurring: g } = _(), { detailedRepeatingTransactions: n } = A(), { onEvent: a } = f(), l = (r) => {
|
|
16
16
|
a(m.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
|