@mx-cartographer/experiences 7.7.1-alpha.san6 → 7.7.1
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/{CurrencyText-Dr0EZ7bp.mjs → CurrencyText-C-85TnUF.mjs} +3 -3
- package/dist/{ManageIncome-TihufLiw.mjs → ManageIncome-BrTrlplL.mjs} +145 -145
- package/dist/{RecurringSettings-DGRrVmLf.mjs → RecurringSettings-D2V6l77l.mjs} +2 -2
- package/dist/{SpendingLegend-BZsjOYfi.mjs → SpendingLegend-gTCJLLkV.mjs} +31 -31
- package/dist/{TransactionDetails-CKXhveUq.mjs → TransactionDetails-7MHOshKQ.mjs} +175 -175
- package/dist/ViewMoreMicroCard-CL1_NwLt.mjs +1161 -0
- package/dist/{WidgetContainer-RACapQsn.mjs → WidgetContainer-CrK6tyHr.mjs} +2 -2
- package/dist/accounts/index.es.js +2 -2
- package/dist/budgets/index.es.js +72 -72
- package/dist/cashflow/index.es.js +47 -48
- package/dist/common/index.es.js +2 -2
- package/dist/dashboard/index.es.js +1 -1
- package/dist/debts/index.es.js +135 -135
- package/dist/finstrong/index.es.js +5 -5
- package/dist/goals/index.es.js +1 -1
- package/dist/help/index.es.js +1 -1
- package/dist/investments/index.es.js +158 -158
- package/dist/microinsights/MicroCardTemplate.d.ts +0 -1
- package/dist/microinsights/index.es.js +823 -16
- package/dist/networth/index.es.js +92 -92
- package/dist/recurringtransactions/index.es.js +5 -5
- package/dist/settings/index.es.js +51 -51
- package/dist/spending/index.es.js +3 -3
- package/dist/transactions/index.es.js +3 -3
- package/dist/trends/index.es.js +4 -4
- package/package.json +1 -5
- package/dist/BeatIcon-Bh6s6Jhw.mjs +0 -88
- package/dist/ViewMoreMicroCard-D8KVp2kW.mjs +0 -1071
- package/dist/ZeroStateIcon-C0JgRtDy.mjs +0 -813
- package/dist/microinsights/beaticons/index.es.js +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { f as
|
|
2
|
+
import { P as u } from "@mxenabled/mxui";
|
|
3
|
+
import { f as a } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
4
4
|
const y = ({
|
|
5
5
|
isIncome: e = !1,
|
|
6
6
|
amount: o = 0,
|
|
@@ -13,7 +13,7 @@ const y = ({
|
|
|
13
13
|
...f
|
|
14
14
|
}) => /* @__PURE__ */ i(u, { bold: s, color: r || (e ? "success.main" : "text.primary"), sx: n, variant: c, ...f, children: [
|
|
15
15
|
t && t,
|
|
16
|
-
|
|
16
|
+
a(Number(o), m ?? "0,0.00")
|
|
17
17
|
] });
|
|
18
18
|
export {
|
|
19
19
|
y as C
|
|
@@ -5,76 +5,76 @@ import M from "@mui/material/Box";
|
|
|
5
5
|
import T from "@mui/material/Divider";
|
|
6
6
|
import K from "@mui/material/List";
|
|
7
7
|
import h from "@mui/material/Stack";
|
|
8
|
-
import { MerchantLogo as H, Text as S,
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { F as d, S as N, D as Y, g as Q, R as E, e as
|
|
14
|
-
import { subDays as
|
|
8
|
+
import { MerchantLogo as H, Text as S, P as F, InstitutionLogo as oe } from "@mxenabled/mxui";
|
|
9
|
+
import ae from "@mui/material/ListItem";
|
|
10
|
+
import ie from "@mui/material/ListItemAvatar";
|
|
11
|
+
import se from "@mui/material/ListItemButton";
|
|
12
|
+
import ce from "@mui/material/ListItemText";
|
|
13
|
+
import { F as d, S as N, D as Y, g as Q, R as E, e as le } from "./RecurringTransactions-Bf4lX0Cn.mjs";
|
|
14
|
+
import { subDays as de } from "date-fns/subDays";
|
|
15
15
|
import { startOfToday as z } from "date-fns/startOfToday";
|
|
16
|
-
import { endOfMonth as
|
|
17
|
-
import { parseISO as
|
|
16
|
+
import { endOfMonth as ue } from "date-fns/endOfMonth";
|
|
17
|
+
import { parseISO as _e } from "date-fns/parseISO";
|
|
18
18
|
import $ from "@mui/material/Button";
|
|
19
|
-
import { Delete as
|
|
20
|
-
import { T as X, a as
|
|
21
|
-
import { getDayOfYear as
|
|
22
|
-
import { setDayOfYear as
|
|
23
|
-
import { AdapterDateFns as
|
|
24
|
-
import { DatePicker as
|
|
25
|
-
import { LocalizationProvider as
|
|
26
|
-
import { u as w, j as
|
|
27
|
-
import { b 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-7MHOshKQ.mjs";
|
|
21
|
+
import { getDayOfYear as be } from "date-fns/getDayOfYear";
|
|
22
|
+
import { setDayOfYear as xe } from "date-fns/setDayOfYear";
|
|
23
|
+
import { AdapterDateFns as Se } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
24
|
+
import { DatePicker as ve } from "@mui/x-date-pickers";
|
|
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 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 R } from "./WidgetContainer-
|
|
30
|
-
import { f as
|
|
31
|
-
import { formatISO as
|
|
32
|
-
import { fromUnixTime as
|
|
33
|
-
import { S as
|
|
34
|
-
import { h as
|
|
29
|
+
import { A as R } from "./WidgetContainer-CrK6tyHr.mjs";
|
|
30
|
+
import { f as Ee, D as Re, a as Te } from "./Dialog-B4PI-_bL.mjs";
|
|
31
|
+
import { formatISO as Le } from "date-fns/formatISO";
|
|
32
|
+
import { fromUnixTime as Oe } from "date-fns/fromUnixTime";
|
|
33
|
+
import { S as ke } from "./SearchBox-B2_zLv8-.mjs";
|
|
34
|
+
import { h as Ne } from "./DateUtil-D7U-nc1Y.mjs";
|
|
35
35
|
import { b as B } from "./Category-CevNQ03n.mjs";
|
|
36
36
|
import { T as V } from "./User-LJpEwPtn.mjs";
|
|
37
37
|
const ee = ({
|
|
38
38
|
frequency: n,
|
|
39
39
|
firstDay: t,
|
|
40
|
-
secondDay:
|
|
40
|
+
secondDay: o,
|
|
41
41
|
onFrequencyChange: i,
|
|
42
42
|
onFirstDayChange: s,
|
|
43
43
|
onSecondDayChange: l
|
|
44
44
|
}) => {
|
|
45
|
-
const { recurring:
|
|
45
|
+
const { recurring: r } = w(), a = u.useMemo(
|
|
46
46
|
() => [
|
|
47
|
-
{ id: d.EveryWeek, label:
|
|
48
|
-
{ id: d.EveryOtherWeek, label:
|
|
49
|
-
{ id: d.TwiceAMonth, label:
|
|
50
|
-
{ id: d.EveryMonth, label:
|
|
51
|
-
{ id: d.EveryOtherMonth, label:
|
|
52
|
-
{ id: d.EveryQuarter, label:
|
|
53
|
-
{ id: d.EveryOtherQuarter, label:
|
|
54
|
-
{ id: d.EveryYear, label:
|
|
47
|
+
{ id: d.EveryWeek, label: r.frequency_every_week },
|
|
48
|
+
{ id: d.EveryOtherWeek, label: r.frequency_every_other_week },
|
|
49
|
+
{ id: d.TwiceAMonth, label: r.frequency_twice_a_month },
|
|
50
|
+
{ id: d.EveryMonth, label: r.frequency_every_month },
|
|
51
|
+
{ id: d.EveryOtherMonth, label: r.frequency_every_other_month },
|
|
52
|
+
{ id: d.EveryQuarter, label: r.frequency_every_quarter },
|
|
53
|
+
{ id: d.EveryOtherQuarter, label: r.frequency_every_other_quarter },
|
|
54
|
+
{ id: d.EveryYear, label: r.frequency_every_year }
|
|
55
55
|
],
|
|
56
|
-
[
|
|
56
|
+
[r]
|
|
57
57
|
), m = [
|
|
58
|
-
{ id: 0, label:
|
|
59
|
-
{ id: 1, label:
|
|
60
|
-
{ id: 2, label:
|
|
61
|
-
{ id: 3, label:
|
|
62
|
-
{ id: 4, label:
|
|
63
|
-
{ id: 5, label:
|
|
64
|
-
{ id: 6, label:
|
|
58
|
+
{ id: 0, label: r.weekday_sunday },
|
|
59
|
+
{ id: 1, label: r.weekday_monday },
|
|
60
|
+
{ id: 2, label: r.weekday_tuesday },
|
|
61
|
+
{ id: 3, label: r.weekday_wednesday },
|
|
62
|
+
{ id: 4, label: r.weekday_thursday },
|
|
63
|
+
{ id: 5, label: r.weekday_friday },
|
|
64
|
+
{ id: 6, label: r.weekday_saturday }
|
|
65
65
|
], y = [...Array(31).keys()].map((p) => ({
|
|
66
66
|
id: p + 1,
|
|
67
|
-
label:
|
|
67
|
+
label: De(p + 1)
|
|
68
68
|
}));
|
|
69
|
-
y[30].label += ` (${
|
|
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 =
|
|
71
|
-
p && s(
|
|
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) => {
|
|
71
|
+
p && s(be(p));
|
|
72
72
|
};
|
|
73
73
|
return /* @__PURE__ */ c(h, { gap: 24, sx: { m: 24 }, children: [
|
|
74
74
|
/* @__PURE__ */ e(
|
|
75
75
|
N,
|
|
76
76
|
{
|
|
77
|
-
label:
|
|
77
|
+
label: r.frequency,
|
|
78
78
|
onChange: i,
|
|
79
79
|
options: a,
|
|
80
80
|
value: n
|
|
@@ -83,7 +83,7 @@ const ee = ({
|
|
|
83
83
|
b && /* @__PURE__ */ e(
|
|
84
84
|
N,
|
|
85
85
|
{
|
|
86
|
-
label:
|
|
86
|
+
label: r.day_of_the_week,
|
|
87
87
|
onChange: s,
|
|
88
88
|
options: m,
|
|
89
89
|
value: t
|
|
@@ -92,7 +92,7 @@ const ee = ({
|
|
|
92
92
|
g && /* @__PURE__ */ e(
|
|
93
93
|
N,
|
|
94
94
|
{
|
|
95
|
-
label: n === d.TwiceAMonth ?
|
|
95
|
+
label: n === d.TwiceAMonth ? r.first_day_of_the_month : r.day_of_the_month,
|
|
96
96
|
onChange: s,
|
|
97
97
|
options: n === d.TwiceAMonth ? C : y,
|
|
98
98
|
value: t
|
|
@@ -101,27 +101,27 @@ const ee = ({
|
|
|
101
101
|
n === d.TwiceAMonth && /* @__PURE__ */ e(
|
|
102
102
|
N,
|
|
103
103
|
{
|
|
104
|
-
label:
|
|
104
|
+
label: r.second_day_of_the_month,
|
|
105
105
|
onChange: l,
|
|
106
106
|
options: v,
|
|
107
|
-
value:
|
|
107
|
+
value: o || 0
|
|
108
108
|
}
|
|
109
109
|
),
|
|
110
|
-
n === d.EveryYear && /* @__PURE__ */ e(
|
|
111
|
-
|
|
110
|
+
n === d.EveryYear && /* @__PURE__ */ e(we, { dateAdapter: Se, children: /* @__PURE__ */ e(
|
|
111
|
+
ve,
|
|
112
112
|
{
|
|
113
113
|
disablePast: !0,
|
|
114
|
-
label:
|
|
114
|
+
label: r.next_payment_date,
|
|
115
115
|
onChange: f,
|
|
116
116
|
value: I
|
|
117
117
|
}
|
|
118
118
|
) })
|
|
119
119
|
] });
|
|
120
|
-
},
|
|
121
|
-
const { recurring: t } = w(), { updateRepeatingTransaction:
|
|
122
|
-
await
|
|
120
|
+
}, Me = A(({ repeatingTransaction: n }) => {
|
|
121
|
+
const { recurring: t } = w(), { updateRepeatingTransaction: o } = G(), { onEvent: i } = P(), [s, l] = u.useState(!1), [r, a] = u.useState(n.recurrence_type), [m, y] = u.useState(n.recurrence_day), [C, v] = u.useState(n.second_recurrence_day), b = async () => {
|
|
122
|
+
await o({
|
|
123
123
|
...n,
|
|
124
|
-
recurrence_type:
|
|
124
|
+
recurrence_type: r,
|
|
125
125
|
recurrence_day: m,
|
|
126
126
|
second_recurrence_day: C
|
|
127
127
|
}), l(!1);
|
|
@@ -150,7 +150,7 @@ const ee = ({
|
|
|
150
150
|
ee,
|
|
151
151
|
{
|
|
152
152
|
firstDay: m,
|
|
153
|
-
frequency:
|
|
153
|
+
frequency: r,
|
|
154
154
|
onFirstDayChange: y,
|
|
155
155
|
onFrequencyChange: a,
|
|
156
156
|
onSecondDayChange: v,
|
|
@@ -160,13 +160,13 @@ const ee = ({
|
|
|
160
160
|
}
|
|
161
161
|
)
|
|
162
162
|
] });
|
|
163
|
-
}),
|
|
163
|
+
}), Fe = A(
|
|
164
164
|
({ onDeleted: n, recurringTransaction: t }) => {
|
|
165
|
-
const { recurring:
|
|
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] = u.useState(!1), [g, I] = u.useState("");
|
|
166
166
|
u.useEffect(() => {
|
|
167
|
-
|
|
167
|
+
r({
|
|
168
168
|
accounts: i,
|
|
169
|
-
dateRange: { start:
|
|
169
|
+
dateRange: { start: de(z(), 90), end: ue(z()) },
|
|
170
170
|
custom: (_) => _.repeating_transaction_guid === t.guid
|
|
171
171
|
});
|
|
172
172
|
}, [t]);
|
|
@@ -175,7 +175,7 @@ const ee = ({
|
|
|
175
175
|
[g, a]
|
|
176
176
|
), p = t.repeating_transaction_type === E.Income, k = async () => {
|
|
177
177
|
await l(t.guid), n();
|
|
178
|
-
},
|
|
178
|
+
}, U = () => {
|
|
179
179
|
b(!0), s(R.RECURRING_TRANSACTIONS_DETAILS_CLICK_DELETE);
|
|
180
180
|
};
|
|
181
181
|
return /* @__PURE__ */ c(h, { bgcolor: "background.default", direction: "column", height: "100%", children: [
|
|
@@ -190,13 +190,13 @@ const ee = ({
|
|
|
190
190
|
}
|
|
191
191
|
),
|
|
192
192
|
/* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: y }),
|
|
193
|
-
/* @__PURE__ */ c(
|
|
193
|
+
/* @__PURE__ */ c(F, { color: p ? "success.main" : "text.primary", sx: { my: 4 }, variant: "H1", children: [
|
|
194
194
|
p ? "+" : "",
|
|
195
195
|
J(m, "0,0.00")
|
|
196
196
|
] }),
|
|
197
|
-
/* @__PURE__ */ e(S, { color: "text.secondary", variant: "body2", children: `${
|
|
198
|
-
|
|
199
|
-
|
|
197
|
+
/* @__PURE__ */ e(S, { color: "text.secondary", variant: "body2", children: `${o.next_payment_date}: ${Ee(
|
|
198
|
+
_e(t.predicted_occurs_on),
|
|
199
|
+
Re.MONTH_DAY_YEAR
|
|
200
200
|
)}` })
|
|
201
201
|
] }),
|
|
202
202
|
/* @__PURE__ */ c(K, { sx: { bgcolor: "background.paper" }, children: [
|
|
@@ -205,7 +205,7 @@ const ee = ({
|
|
|
205
205
|
Y,
|
|
206
206
|
{
|
|
207
207
|
iconName: "checkbook",
|
|
208
|
-
label:
|
|
208
|
+
label: o.account,
|
|
209
209
|
value: t.account.institutionName || ""
|
|
210
210
|
}
|
|
211
211
|
),
|
|
@@ -216,84 +216,84 @@ const ee = ({
|
|
|
216
216
|
Y,
|
|
217
217
|
{
|
|
218
218
|
iconName: "monetization_on",
|
|
219
|
-
label:
|
|
219
|
+
label: o.category,
|
|
220
220
|
value: f.category
|
|
221
221
|
}
|
|
222
222
|
),
|
|
223
223
|
/* @__PURE__ */ e(T, { variant: "inset" })
|
|
224
224
|
] }),
|
|
225
|
-
/* @__PURE__ */ e(
|
|
225
|
+
/* @__PURE__ */ e(Me, { repeatingTransaction: t }),
|
|
226
226
|
/* @__PURE__ */ e(T, {})
|
|
227
227
|
] }),
|
|
228
228
|
/* @__PURE__ */ e(
|
|
229
229
|
$,
|
|
230
230
|
{
|
|
231
231
|
color: "error",
|
|
232
|
-
onClick:
|
|
233
|
-
startIcon: /* @__PURE__ */ e(
|
|
232
|
+
onClick: U,
|
|
233
|
+
startIcon: /* @__PURE__ */ e(me, {}),
|
|
234
234
|
sx: { mx: 24, my: 16 },
|
|
235
235
|
variant: "text",
|
|
236
|
-
children: p ?
|
|
236
|
+
children: p ? o.delete_income_title : o.delete_expense_title
|
|
237
237
|
}
|
|
238
238
|
),
|
|
239
|
-
/* @__PURE__ */ e(S, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "Body", children:
|
|
239
|
+
/* @__PURE__ */ e(S, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "Body", children: o.paid_transactions }),
|
|
240
240
|
/* @__PURE__ */ e(X, { height: "30dvh", onClick: I }),
|
|
241
241
|
/* @__PURE__ */ e(
|
|
242
242
|
O,
|
|
243
243
|
{
|
|
244
|
-
ariaLabelClose:
|
|
244
|
+
ariaLabelClose: o.close_drawer_aria,
|
|
245
245
|
isOpen: !!g && !!f,
|
|
246
246
|
onClose: () => I(""),
|
|
247
|
-
title:
|
|
248
|
-
children: f && /* @__PURE__ */ e(
|
|
247
|
+
title: o.transaction_details_drawer_title,
|
|
248
|
+
children: f && /* @__PURE__ */ e(ye, { transaction: f })
|
|
249
249
|
}
|
|
250
250
|
),
|
|
251
251
|
/* @__PURE__ */ e(
|
|
252
|
-
|
|
252
|
+
Te,
|
|
253
253
|
{
|
|
254
254
|
copy: {
|
|
255
|
-
title: p ?
|
|
256
|
-
close_aria:
|
|
255
|
+
title: p ? o.delete_income_title : o.delete_expense_title,
|
|
256
|
+
close_aria: o.close_drawer_aria
|
|
257
257
|
},
|
|
258
258
|
isOpen: v,
|
|
259
259
|
onClose: () => b(!1),
|
|
260
260
|
onPrimaryAction: k,
|
|
261
|
-
children: /* @__PURE__ */ e(S, { children: p ?
|
|
261
|
+
children: /* @__PURE__ */ e(S, { children: p ? o.delete_income_description : o.delete_expense_description })
|
|
262
262
|
}
|
|
263
263
|
)
|
|
264
264
|
] });
|
|
265
265
|
}
|
|
266
|
-
),
|
|
266
|
+
), Ge = A(
|
|
267
267
|
({ onClick: n = () => {
|
|
268
268
|
}, repeatingTransaction: t }) => {
|
|
269
|
-
const { recurring:
|
|
269
|
+
const { recurring: o } = w(), [i, s] = u.useState(!1), l = u.useMemo(
|
|
270
270
|
() => t.transactions.length === 0 ? "" : t.transactions[0].category_guid || "",
|
|
271
271
|
[t]
|
|
272
|
-
),
|
|
273
|
-
return /* @__PURE__ */ c(
|
|
274
|
-
/* @__PURE__ */ c(
|
|
272
|
+
), r = t.account?.institutionName || "", a = t.repeating_transaction_type === E.Income, m = Q(o, t, !0);
|
|
273
|
+
return /* @__PURE__ */ c(ae, { disableGutters: !0, disablePadding: !0, children: [
|
|
274
|
+
/* @__PURE__ */ c(se, { onClick: () => {
|
|
275
275
|
n(t), s(!0);
|
|
276
276
|
}, children: [
|
|
277
|
-
/* @__PURE__ */ e(
|
|
277
|
+
/* @__PURE__ */ e(ie, { children: /* @__PURE__ */ e(
|
|
278
278
|
H,
|
|
279
279
|
{
|
|
280
280
|
categoryGuid: l,
|
|
281
281
|
merchantGuid: t.merchant_guid
|
|
282
282
|
}
|
|
283
283
|
) }),
|
|
284
|
-
/* @__PURE__ */ e(
|
|
284
|
+
/* @__PURE__ */ e(ce, { children: /* @__PURE__ */ c(h, { direction: "row", gap: 4, sx: { justifyContent: "space-between" }, children: [
|
|
285
285
|
/* @__PURE__ */ c(h, { direction: "column", sx: { width: "50%" }, children: [
|
|
286
286
|
/* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: t.description }),
|
|
287
287
|
/* @__PURE__ */ c(h, { alignItems: "center", direction: "row", gap: 6, children: [
|
|
288
288
|
t.account?.institution_guid && /* @__PURE__ */ e(
|
|
289
|
-
|
|
289
|
+
oe,
|
|
290
290
|
{
|
|
291
|
-
alt:
|
|
291
|
+
alt: r,
|
|
292
292
|
institutionGuid: t.account?.institution_guid,
|
|
293
293
|
size: 12
|
|
294
294
|
}
|
|
295
295
|
),
|
|
296
|
-
/* @__PURE__ */ e(S, { variant: "caption", children:
|
|
296
|
+
/* @__PURE__ */ e(S, { variant: "caption", children: r })
|
|
297
297
|
] })
|
|
298
298
|
] }),
|
|
299
299
|
/* @__PURE__ */ c(h, { alignItems: "flex-end", sx: { width: "50%" }, children: [
|
|
@@ -329,12 +329,12 @@ const ee = ({
|
|
|
329
329
|
/* @__PURE__ */ e(
|
|
330
330
|
O,
|
|
331
331
|
{
|
|
332
|
-
ariaLabelClose:
|
|
332
|
+
ariaLabelClose: o.close_drawer_aria,
|
|
333
333
|
isOpen: i,
|
|
334
334
|
onClose: () => s(!1),
|
|
335
|
-
title: t.repeating_transaction_type === E.Income ?
|
|
335
|
+
title: t.repeating_transaction_type === E.Income ? o.income_details : o.expense_details,
|
|
336
336
|
children: /* @__PURE__ */ e(
|
|
337
|
-
|
|
337
|
+
Fe,
|
|
338
338
|
{
|
|
339
339
|
onDeleted: () => s(!1),
|
|
340
340
|
recurringTransaction: t
|
|
@@ -344,23 +344,23 @@ const ee = ({
|
|
|
344
344
|
)
|
|
345
345
|
] });
|
|
346
346
|
}
|
|
347
|
-
),
|
|
347
|
+
), Pe = A(
|
|
348
348
|
({
|
|
349
349
|
bgcolor: n = "background.default",
|
|
350
350
|
description: t,
|
|
351
|
-
onSearch:
|
|
351
|
+
onSearch: o,
|
|
352
352
|
onSelected: i
|
|
353
353
|
}) => {
|
|
354
|
-
const { recurring: s } = w(), { searchValue: l, setSearchValue:
|
|
354
|
+
const { recurring: s } = w(), { searchValue: l, setSearchValue: r } = ge();
|
|
355
355
|
return /* @__PURE__ */ c(h, { sx: { bgcolor: n, gap: 16, pt: 8 }, children: [
|
|
356
|
-
t && /* @__PURE__ */ e(
|
|
356
|
+
t && /* @__PURE__ */ e(F, { sx: { mx: 24 }, children: t }),
|
|
357
357
|
/* @__PURE__ */ e(
|
|
358
|
-
|
|
358
|
+
ke,
|
|
359
359
|
{
|
|
360
360
|
ariaLabel: s.select_transaction_search_aria,
|
|
361
361
|
cancelAriaLabel: s.select_transaction_search_cancel_aria,
|
|
362
362
|
onChange: (a) => {
|
|
363
|
-
|
|
363
|
+
r(a), o(a);
|
|
364
364
|
},
|
|
365
365
|
placeholder: s.select_transaction_search_placeholder,
|
|
366
366
|
searchValue: l
|
|
@@ -378,22 +378,22 @@ const ee = ({
|
|
|
378
378
|
)
|
|
379
379
|
] });
|
|
380
380
|
}
|
|
381
|
-
),
|
|
381
|
+
), Ue = A(
|
|
382
382
|
({
|
|
383
383
|
bgcolor: n = "background.default",
|
|
384
384
|
firstDay: t,
|
|
385
|
-
secondDay:
|
|
385
|
+
secondDay: o,
|
|
386
386
|
frequency: i,
|
|
387
387
|
onFrequencyChange: s,
|
|
388
388
|
onFirstDayChange: l,
|
|
389
|
-
onSecondDayChange:
|
|
389
|
+
onSecondDayChange: r,
|
|
390
390
|
transaction: a
|
|
391
391
|
}) => {
|
|
392
392
|
const { recurring: m } = w();
|
|
393
393
|
return /* @__PURE__ */ c(h, { bgcolor: n, gap: 24, height: "100%", children: [
|
|
394
394
|
/* @__PURE__ */ c(h, { children: [
|
|
395
|
-
/* @__PURE__ */ e(
|
|
396
|
-
/* @__PURE__ */ e(
|
|
395
|
+
/* @__PURE__ */ e(fe, { bgcolor: n, children: Ne(a.date) }),
|
|
396
|
+
/* @__PURE__ */ e(Ce, { transaction: a })
|
|
397
397
|
] }),
|
|
398
398
|
/* @__PURE__ */ c(M, { children: [
|
|
399
399
|
/* @__PURE__ */ e(S, { bold: !0, sx: { mx: 24 }, variant: "Body", children: m.payment_schedule }),
|
|
@@ -404,38 +404,38 @@ const ee = ({
|
|
|
404
404
|
frequency: i,
|
|
405
405
|
onFirstDayChange: l,
|
|
406
406
|
onFrequencyChange: s,
|
|
407
|
-
onSecondDayChange:
|
|
408
|
-
secondDay:
|
|
407
|
+
onSecondDayChange: r,
|
|
408
|
+
secondDay: o
|
|
409
409
|
}
|
|
410
410
|
)
|
|
411
411
|
] })
|
|
412
412
|
] });
|
|
413
413
|
}
|
|
414
|
-
), 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(
|
|
415
415
|
({
|
|
416
416
|
isIncome: n = !1,
|
|
417
417
|
label: t,
|
|
418
|
-
onAddRecurringTransaction:
|
|
418
|
+
onAddRecurringTransaction: o = () => null
|
|
419
419
|
}) => {
|
|
420
|
-
const { recurring: i } = w(), { filter: s, setFilter: l, transactions:
|
|
421
|
-
() =>
|
|
422
|
-
[v,
|
|
420
|
+
const { recurring: i } = w(), { filter: s, setFilter: l, transactions: r } = Z(), { addRepeatingTransaction: a } = G(), { user: m } = Ie(), [y, C] = u.useState(!1), [v, b] = u.useState(""), [g, I] = u.useState(d.EveryMonth), [f, p] = u.useState(1), [k, U] = u.useState(15), _ = u.useMemo(
|
|
421
|
+
() => r.find((x) => x.guid === v),
|
|
422
|
+
[v, r]
|
|
423
423
|
), ne = () => {
|
|
424
424
|
C(!0), l(n ? { ...s, custom: W } : { ...s, custom: q });
|
|
425
|
-
},
|
|
425
|
+
}, re = async () => {
|
|
426
426
|
if (!_) {
|
|
427
427
|
j();
|
|
428
428
|
return;
|
|
429
429
|
}
|
|
430
|
-
|
|
431
|
-
const x =
|
|
430
|
+
o();
|
|
431
|
+
const x = le(g, Oe(_.date)), D = {
|
|
432
432
|
account_guid: _.account_guid,
|
|
433
433
|
amount: _.amount,
|
|
434
434
|
created_by: 0,
|
|
435
435
|
// User
|
|
436
436
|
merchant_guid: _.merchant_guid,
|
|
437
437
|
description: _.payee || _.description || _.feed_description,
|
|
438
|
-
predicted_occurs_on:
|
|
438
|
+
predicted_occurs_on: Le(x, { representation: "date" }),
|
|
439
439
|
recurrence_day: f,
|
|
440
440
|
recurrence_type: g,
|
|
441
441
|
repeating_transaction_type: n ? E.Income : E.Bill,
|
|
@@ -448,7 +448,7 @@ const ee = ({
|
|
|
448
448
|
b(""), C(!1);
|
|
449
449
|
};
|
|
450
450
|
return /* @__PURE__ */ c(L, { children: [
|
|
451
|
-
/* @__PURE__ */ e($, { onClick: ne, startIcon: /* @__PURE__ */ e(
|
|
451
|
+
/* @__PURE__ */ e($, { onClick: ne, startIcon: /* @__PURE__ */ e(pe, { size: 24 }), variant: "contained", children: t }),
|
|
452
452
|
/* @__PURE__ */ e(
|
|
453
453
|
O,
|
|
454
454
|
{
|
|
@@ -457,13 +457,13 @@ const ee = ({
|
|
|
457
457
|
onClose: () => C(!1),
|
|
458
458
|
title: t,
|
|
459
459
|
children: /* @__PURE__ */ e(
|
|
460
|
-
|
|
460
|
+
Pe,
|
|
461
461
|
{
|
|
462
462
|
description: n ? i.add_income_description : i.add_expense_description,
|
|
463
463
|
onSearch: (x) => {
|
|
464
464
|
l({
|
|
465
465
|
...s,
|
|
466
|
-
custom: (D) => n ? x ?
|
|
466
|
+
custom: (D) => n ? x ? ze(D, x) : W(D) : x ? Ye(D, x) : q(D)
|
|
467
467
|
});
|
|
468
468
|
},
|
|
469
469
|
onSelected: (x) => b(x)
|
|
@@ -477,16 +477,16 @@ const ee = ({
|
|
|
477
477
|
ariaLabelClose: i.close_drawer_aria,
|
|
478
478
|
isOpen: !!v,
|
|
479
479
|
onClose: () => b(""),
|
|
480
|
-
onPrimaryAction:
|
|
480
|
+
onPrimaryAction: re,
|
|
481
481
|
title: n ? i.income_details : i.expense_details,
|
|
482
482
|
children: _ && /* @__PURE__ */ e(
|
|
483
|
-
|
|
483
|
+
Ue,
|
|
484
484
|
{
|
|
485
485
|
firstDay: f,
|
|
486
486
|
frequency: g,
|
|
487
487
|
onFirstDayChange: p,
|
|
488
488
|
onFrequencyChange: I,
|
|
489
|
-
onSecondDayChange:
|
|
489
|
+
onSecondDayChange: U,
|
|
490
490
|
secondDay: k,
|
|
491
491
|
transaction: _
|
|
492
492
|
}
|
|
@@ -495,20 +495,20 @@ const ee = ({
|
|
|
495
495
|
)
|
|
496
496
|
] });
|
|
497
497
|
}
|
|
498
|
-
),
|
|
498
|
+
), Be = A(
|
|
499
499
|
({ zeroStateFor: n }) => {
|
|
500
|
-
const { recurring: t } = w(), { onEvent:
|
|
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;
|
|
501
501
|
return /* @__PURE__ */ c(h, { sx: { alignItems: "center", p: 24, pt: 48 }, children: [
|
|
502
|
-
/* @__PURE__ */ e(
|
|
503
|
-
/* @__PURE__ */ e(
|
|
504
|
-
/* @__PURE__ */ e(
|
|
502
|
+
/* @__PURE__ */ e(he, { size: 48 }),
|
|
503
|
+
/* @__PURE__ */ e(F, { sx: { my: 8, fontWeight: 600 }, variant: "body1", children: s }),
|
|
504
|
+
/* @__PURE__ */ e(F, { color: "text.secondary", sx: { mb: 32 }, variant: "subtitle2", children: l }),
|
|
505
505
|
/* @__PURE__ */ e(
|
|
506
506
|
te,
|
|
507
507
|
{
|
|
508
508
|
isIncome: i,
|
|
509
|
-
label:
|
|
509
|
+
label: r,
|
|
510
510
|
onAddRecurringTransaction: () => {
|
|
511
|
-
|
|
511
|
+
o(
|
|
512
512
|
i ? R.RECURRING_TRANSACTIONS_CLICK_ADD_INCOME : R.RECURRING_ACTIVITY_CLICK_ADD_EXPENSE
|
|
513
513
|
);
|
|
514
514
|
}
|
|
@@ -516,17 +516,17 @@ const ee = ({
|
|
|
516
516
|
)
|
|
517
517
|
] });
|
|
518
518
|
}
|
|
519
|
-
),
|
|
520
|
-
const { recurring: t } = w(), { repeatingTransactions:
|
|
519
|
+
), At = A(({ forOverview: n = !1 }) => {
|
|
520
|
+
const { recurring: t } = w(), { repeatingTransactions: o } = G(), { onEvent: i } = P(), s = (a) => {
|
|
521
521
|
i(R.RECURRING_TRANSACTIONS_CLICK_INCOME, {
|
|
522
522
|
repeating_transaction_guid: a.guid
|
|
523
523
|
});
|
|
524
524
|
}, l = () => {
|
|
525
525
|
i(R.RECURRING_TRANSACTIONS_CLICK_ADD_INCOME);
|
|
526
|
-
},
|
|
526
|
+
}, r = o.filter(
|
|
527
527
|
(a) => a.repeating_transaction_type === E.Income && (a.transactions.length > 0 || a.recurrence_type === d.EveryYear)
|
|
528
528
|
);
|
|
529
|
-
return /* @__PURE__ */ e(L, { children:
|
|
529
|
+
return /* @__PURE__ */ e(L, { children: r.length !== 0 ? /* @__PURE__ */ c(
|
|
530
530
|
h,
|
|
531
531
|
{
|
|
532
532
|
sx: {
|
|
@@ -535,12 +535,12 @@ const ee = ({
|
|
|
535
535
|
},
|
|
536
536
|
children: [
|
|
537
537
|
n && /* @__PURE__ */ e(S, { bold: !0, sx: { mb: 4, mt: 12, mx: 24 }, variant: "Small", children: t.income }),
|
|
538
|
-
/* @__PURE__ */ e(M, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(K, { sx: { bgcolor: "background.paper" }, children:
|
|
539
|
-
/* @__PURE__ */ e(
|
|
538
|
+
/* @__PURE__ */ e(M, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(K, { sx: { bgcolor: "background.paper" }, children: r.map((a, m) => /* @__PURE__ */ c(u.Fragment, { children: [
|
|
539
|
+
/* @__PURE__ */ e(Ge, { onClick: s, repeatingTransaction: a }),
|
|
540
540
|
/* @__PURE__ */ e(
|
|
541
541
|
T,
|
|
542
542
|
{
|
|
543
|
-
variant: m <
|
|
543
|
+
variant: m < r.length - 1 ? "inset" : "fullWidth"
|
|
544
544
|
}
|
|
545
545
|
)
|
|
546
546
|
] }, a.guid)) }) }),
|
|
@@ -570,16 +570,16 @@ const ee = ({
|
|
|
570
570
|
] })
|
|
571
571
|
]
|
|
572
572
|
}
|
|
573
|
-
) : /* @__PURE__ */ e(
|
|
573
|
+
) : /* @__PURE__ */ e(Be, { zeroStateFor: "income" }) });
|
|
574
574
|
});
|
|
575
575
|
export {
|
|
576
576
|
te as A,
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
577
|
+
At as M,
|
|
578
|
+
Ge as R,
|
|
579
|
+
Pe as S,
|
|
580
|
+
Be as a,
|
|
581
|
+
Fe as b,
|
|
582
|
+
Ue as c,
|
|
583
583
|
W as d,
|
|
584
|
-
|
|
584
|
+
ze as i
|
|
585
585
|
};
|
|
@@ -7,10 +7,10 @@ import b from "@mui/material/Tabs";
|
|
|
7
7
|
import d from "@mui/material/Divider";
|
|
8
8
|
import R 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-BrTrlplL.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 "./RecurringTransactions-Bf4lX0Cn.mjs";
|
|
13
|
-
import { A as m } from "./WidgetContainer-
|
|
13
|
+
import { A as m } from "./WidgetContainer-CrK6tyHr.mjs";
|
|
14
14
|
const I = h(() => {
|
|
15
15
|
const { recurring: g } = _(), { repeatingTransactions: n } = A(), { onEvent: o } = f(), l = (r) => {
|
|
16
16
|
o(m.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
|