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