@mx-cartographer/experiences 7.2.15-alpha.sms7 → 7.2.15
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/{AccountDetailsContent-Vj4LO6cx.mjs → AccountDetailsContent-CsH1w_GZ.mjs} +1 -1
- package/dist/{ManageIncome-B9yGuahc.mjs → ManageIncome-CsCM4rNt.mjs} +63 -62
- package/dist/{RecurringSettings-D9GFcsXV.mjs → RecurringSettings-DZu2hw1r.mjs} +1 -1
- package/dist/{TransactionDetails-BqCr2FTh.mjs → TransactionDetails-CDtya0KS.mjs} +42 -42
- package/dist/{TransactionStore-bphuV3xu.mjs → TransactionStore-DxPLdF3B.mjs} +79 -89
- package/dist/accounts/index.es.js +2 -2
- package/dist/budgets/index.es.js +2 -2
- package/dist/cashflow/index.es.js +3 -3
- package/dist/common/index.es.js +2 -12
- package/dist/finstrong/index.es.js +1 -1
- package/dist/goals/index.es.js +1 -1
- package/dist/recurringtransactions/index.es.js +4 -4
- package/dist/spending/index.es.js +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/DateAction.d.ts +2 -2
- package/dist/transactions/index.es.js +4 -4
- package/dist/transactions/stores/TransactionStore.d.ts +0 -3
- package/dist/trends/index.es.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -44,7 +44,7 @@ import yt from "@mui/material/AlertTitle";
|
|
|
44
44
|
import xt from "@mui/material/Link";
|
|
45
45
|
import wt from "@mui/material/Paper";
|
|
46
46
|
import { subDays as kt, startOfToday as It, endOfToday as Mt } from "date-fns";
|
|
47
|
-
import { T as vt, a as Lt } from "./TransactionDetails-
|
|
47
|
+
import { T as vt, a as Lt } from "./TransactionDetails-CDtya0KS.mjs";
|
|
48
48
|
import { T as j } from "./TabContentContainer-j01JYR_7.mjs";
|
|
49
49
|
const U = ({
|
|
50
50
|
children: e,
|
|
@@ -14,23 +14,24 @@ import { F as d, S as N, D as Y, g as Q, R as E, e as de } from "./RecurringTran
|
|
|
14
14
|
import { subDays as ue } from "date-fns/subDays";
|
|
15
15
|
import { startOfToday as z } from "date-fns/startOfToday";
|
|
16
16
|
import { endOfMonth as _e } from "date-fns/endOfMonth";
|
|
17
|
+
import { parseISO as me } from "date-fns/parseISO";
|
|
17
18
|
import $ from "@mui/material/Button";
|
|
18
|
-
import { Delete as
|
|
19
|
-
import { T as X, a as
|
|
20
|
-
import { getDayOfYear as
|
|
21
|
-
import { setDayOfYear as
|
|
22
|
-
import { AdapterDateFns as
|
|
23
|
-
import { DatePicker as
|
|
24
|
-
import { LocalizationProvider as
|
|
25
|
-
import { u as w, j as M, g as F, b as
|
|
26
|
-
import { b as
|
|
19
|
+
import { Delete as pe, Add as he, ReceiptLong as ye } from "@mxenabled/mx-icons";
|
|
20
|
+
import { T as X, a as ge, u as fe, S as Ce, b as be } from "./TransactionDetails-CDtya0KS.mjs";
|
|
21
|
+
import { getDayOfYear as xe } from "date-fns/getDayOfYear";
|
|
22
|
+
import { setDayOfYear as Se } from "date-fns/setDayOfYear";
|
|
23
|
+
import { AdapterDateFns as ve } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
24
|
+
import { DatePicker as we } from "@mui/x-date-pickers";
|
|
25
|
+
import { LocalizationProvider as Ae } from "@mui/x-date-pickers/LocalizationProvider";
|
|
26
|
+
import { u as w, j as M, g as F, b as Ie, h as Z, p as De } from "./hooks-D6XlXHf4.mjs";
|
|
27
|
+
import { b as Ee, f as J } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
27
28
|
import { D as O } from "./Drawer-kEE73B87.mjs";
|
|
28
29
|
import { A as R } from "./WidgetContainer-EbrN1oIo.mjs";
|
|
29
|
-
import { f as
|
|
30
|
-
import { formatISO as
|
|
31
|
-
import { fromUnixTime as
|
|
32
|
-
import { S as
|
|
33
|
-
import { h as
|
|
30
|
+
import { f as Re, D as Te, a as Le } from "./Dialog-CWW597AF.mjs";
|
|
31
|
+
import { formatISO as Oe } from "date-fns/formatISO";
|
|
32
|
+
import { fromUnixTime as ke } from "date-fns/fromUnixTime";
|
|
33
|
+
import { S as Ne } from "./SearchBox-B2_zLv8-.mjs";
|
|
34
|
+
import { h as Me } from "./DateUtil-BcuH7ErC.mjs";
|
|
34
35
|
import { b as B } from "./Category-CevNQ03n.mjs";
|
|
35
36
|
import { T as V } from "./User-BQUxBeZV.mjs";
|
|
36
37
|
const ee = ({
|
|
@@ -63,11 +64,11 @@ const ee = ({
|
|
|
63
64
|
{ id: 6, label: o.weekday_saturday }
|
|
64
65
|
], y = [...Array(31).keys()].map((p) => ({
|
|
65
66
|
id: p + 1,
|
|
66
|
-
label:
|
|
67
|
+
label: Ee(p + 1)
|
|
67
68
|
}));
|
|
68
69
|
y[30].label += ` (${o.last_day_of_month})`;
|
|
69
|
-
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,
|
|
70
|
-
p && s(
|
|
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 = Se(z(), t), f = (p) => {
|
|
71
|
+
p && s(xe(p));
|
|
71
72
|
};
|
|
72
73
|
return /* @__PURE__ */ c(h, { gap: 24, sx: { m: 24 }, children: [
|
|
73
74
|
/* @__PURE__ */ e(
|
|
@@ -106,17 +107,17 @@ const ee = ({
|
|
|
106
107
|
value: r || 0
|
|
107
108
|
}
|
|
108
109
|
),
|
|
109
|
-
n === d.EveryYear && /* @__PURE__ */ e(
|
|
110
|
-
|
|
110
|
+
n === d.EveryYear && /* @__PURE__ */ e(Ae, { dateAdapter: ve, children: /* @__PURE__ */ e(
|
|
111
|
+
we,
|
|
111
112
|
{
|
|
112
113
|
disablePast: !0,
|
|
113
114
|
label: o.next_payment_date,
|
|
114
115
|
onChange: f,
|
|
115
|
-
value:
|
|
116
|
+
value: I
|
|
116
117
|
}
|
|
117
118
|
) })
|
|
118
119
|
] });
|
|
119
|
-
},
|
|
120
|
+
}, Fe = A(({ repeatingTransaction: n }) => {
|
|
120
121
|
const { recurring: t } = w(), { updateRepeatingTransaction: r } = M(), { onEvent: i } = F(), [s, l] = u.useState(!1), [o, a] = u.useState(n.recurrence_type), [m, y] = u.useState(n.recurrence_day), [C, v] = u.useState(n.second_recurrence_day), b = async () => {
|
|
121
122
|
await r({
|
|
122
123
|
...n,
|
|
@@ -159,9 +160,9 @@ const ee = ({
|
|
|
159
160
|
}
|
|
160
161
|
)
|
|
161
162
|
] });
|
|
162
|
-
}),
|
|
163
|
+
}), Ge = A(
|
|
163
164
|
({ onDeleted: n, recurringTransaction: t }) => {
|
|
164
|
-
const { recurring: r } = w(), { selectedAccountGuids: i } =
|
|
165
|
+
const { recurring: r } = w(), { selectedAccountGuids: i } = Ie(), { onEvent: s } = F(), { deleteRepeatingTransaction: l } = M(), { setFilter: o, transactions: a } = Z(), { amount: m, description: y, merchant_guid: C } = t, [v, b] = u.useState(!1), [g, I] = u.useState("");
|
|
165
166
|
u.useEffect(() => {
|
|
166
167
|
o({
|
|
167
168
|
accounts: i,
|
|
@@ -193,9 +194,9 @@ const ee = ({
|
|
|
193
194
|
p ? "+" : "",
|
|
194
195
|
J(m, "0,0.00")
|
|
195
196
|
] }),
|
|
196
|
-
/* @__PURE__ */ e(S, { color: "text.secondary", variant: "body2", children: `${r.next_payment_date}: ${
|
|
197
|
-
t.predicted_occurs_on,
|
|
198
|
-
|
|
197
|
+
/* @__PURE__ */ e(S, { color: "text.secondary", variant: "body2", children: `${r.next_payment_date}: ${Re(
|
|
198
|
+
me(t.predicted_occurs_on),
|
|
199
|
+
Te.MONTH_DAY_YEAR
|
|
199
200
|
)}` })
|
|
200
201
|
] }),
|
|
201
202
|
/* @__PURE__ */ c(K, { sx: { bgcolor: "background.paper" }, children: [
|
|
@@ -221,7 +222,7 @@ const ee = ({
|
|
|
221
222
|
),
|
|
222
223
|
/* @__PURE__ */ e(T, { variant: "inset" })
|
|
223
224
|
] }),
|
|
224
|
-
/* @__PURE__ */ e(
|
|
225
|
+
/* @__PURE__ */ e(Fe, { repeatingTransaction: t }),
|
|
225
226
|
/* @__PURE__ */ e(T, {})
|
|
226
227
|
] }),
|
|
227
228
|
/* @__PURE__ */ e(
|
|
@@ -229,26 +230,26 @@ const ee = ({
|
|
|
229
230
|
{
|
|
230
231
|
color: "error",
|
|
231
232
|
onClick: G,
|
|
232
|
-
startIcon: /* @__PURE__ */ e(
|
|
233
|
+
startIcon: /* @__PURE__ */ e(pe, {}),
|
|
233
234
|
sx: { mx: 24, my: 16 },
|
|
234
235
|
variant: "text",
|
|
235
236
|
children: p ? r.delete_income_title : r.delete_expense_title
|
|
236
237
|
}
|
|
237
238
|
),
|
|
238
239
|
/* @__PURE__ */ e(S, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "Body", children: r.paid_transactions }),
|
|
239
|
-
/* @__PURE__ */ e(X, { height: "30dvh", onClick:
|
|
240
|
+
/* @__PURE__ */ e(X, { height: "30dvh", onClick: I }),
|
|
240
241
|
/* @__PURE__ */ e(
|
|
241
242
|
O,
|
|
242
243
|
{
|
|
243
244
|
ariaLabelClose: r.close_drawer_aria,
|
|
244
245
|
isOpen: !!g && !!f,
|
|
245
|
-
onClose: () =>
|
|
246
|
+
onClose: () => I(""),
|
|
246
247
|
title: r.transaction_details_drawer_title,
|
|
247
|
-
children: f && /* @__PURE__ */ e(
|
|
248
|
+
children: f && /* @__PURE__ */ e(ge, { transaction: f })
|
|
248
249
|
}
|
|
249
250
|
),
|
|
250
251
|
/* @__PURE__ */ e(
|
|
251
|
-
|
|
252
|
+
Le,
|
|
252
253
|
{
|
|
253
254
|
copy: {
|
|
254
255
|
title: p ? r.delete_income_title : r.delete_expense_title,
|
|
@@ -262,7 +263,7 @@ const ee = ({
|
|
|
262
263
|
)
|
|
263
264
|
] });
|
|
264
265
|
}
|
|
265
|
-
),
|
|
266
|
+
), Pe = A(
|
|
266
267
|
({ onClick: n = () => {
|
|
267
268
|
}, repeatingTransaction: t }) => {
|
|
268
269
|
const { recurring: r } = w(), [i, s] = u.useState(!1), l = u.useMemo(
|
|
@@ -333,7 +334,7 @@ const ee = ({
|
|
|
333
334
|
onClose: () => s(!1),
|
|
334
335
|
title: t.repeating_transaction_type === E.Income ? r.income_details : r.expense_details,
|
|
335
336
|
children: /* @__PURE__ */ e(
|
|
336
|
-
|
|
337
|
+
Ge,
|
|
337
338
|
{
|
|
338
339
|
onDeleted: () => s(!1),
|
|
339
340
|
recurringTransaction: t
|
|
@@ -343,18 +344,18 @@ const ee = ({
|
|
|
343
344
|
)
|
|
344
345
|
] });
|
|
345
346
|
}
|
|
346
|
-
),
|
|
347
|
+
), Ue = A(
|
|
347
348
|
({
|
|
348
349
|
bgcolor: n = "background.default",
|
|
349
350
|
description: t,
|
|
350
351
|
onSearch: r,
|
|
351
352
|
onSelected: i
|
|
352
353
|
}) => {
|
|
353
|
-
const { recurring: s } = w(), { searchValue: l, setSearchValue: o } =
|
|
354
|
+
const { recurring: s } = w(), { searchValue: l, setSearchValue: o } = fe();
|
|
354
355
|
return /* @__PURE__ */ c(h, { sx: { bgcolor: n, gap: 16, pt: 8 }, children: [
|
|
355
356
|
t && /* @__PURE__ */ e(U, { sx: { mx: 24 }, children: t }),
|
|
356
357
|
/* @__PURE__ */ e(
|
|
357
|
-
|
|
358
|
+
Ne,
|
|
358
359
|
{
|
|
359
360
|
ariaLabel: s.select_transaction_search_aria,
|
|
360
361
|
cancelAriaLabel: s.select_transaction_search_cancel_aria,
|
|
@@ -377,7 +378,7 @@ const ee = ({
|
|
|
377
378
|
)
|
|
378
379
|
] });
|
|
379
380
|
}
|
|
380
|
-
),
|
|
381
|
+
), Ye = A(
|
|
381
382
|
({
|
|
382
383
|
bgcolor: n = "background.default",
|
|
383
384
|
firstDay: t,
|
|
@@ -391,8 +392,8 @@ const ee = ({
|
|
|
391
392
|
const { recurring: m } = w();
|
|
392
393
|
return /* @__PURE__ */ c(h, { bgcolor: n, gap: 24, height: "100%", children: [
|
|
393
394
|
/* @__PURE__ */ c(h, { children: [
|
|
394
|
-
/* @__PURE__ */ e(
|
|
395
|
-
/* @__PURE__ */ e(
|
|
395
|
+
/* @__PURE__ */ e(Ce, { bgcolor: n, children: Me(a.date) }),
|
|
396
|
+
/* @__PURE__ */ e(be, { transaction: a })
|
|
396
397
|
] }),
|
|
397
398
|
/* @__PURE__ */ e(S, { bold: !0, sx: { mx: 24 }, variant: "Body", children: m.payment_schedule }),
|
|
398
399
|
/* @__PURE__ */ e(
|
|
@@ -408,13 +409,13 @@ const ee = ({
|
|
|
408
409
|
)
|
|
409
410
|
] });
|
|
410
411
|
}
|
|
411
|
-
), q = (n) => n.top_level_category_guid !== B.INCOME && n.transaction_type === V.DEBIT,
|
|
412
|
+
), 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(
|
|
412
413
|
({
|
|
413
414
|
isIncome: n = !1,
|
|
414
415
|
label: t,
|
|
415
416
|
onAddRecurringTransaction: r = () => null
|
|
416
417
|
}) => {
|
|
417
|
-
const { recurring: i } = w(), { filter: s, setFilter: l, transactions: o } = Z(), { addRepeatingTransaction: a } = M(), { user: m } = De(), [y, C] = u.useState(!1), [v, b] = u.useState(""), [g,
|
|
418
|
+
const { recurring: i } = w(), { filter: s, setFilter: l, transactions: o } = Z(), { addRepeatingTransaction: a } = M(), { user: m } = De(), [y, C] = u.useState(!1), [v, b] = u.useState(""), [g, I] = u.useState(d.EveryMonth), [f, p] = u.useState(1), [k, G] = u.useState(15), _ = u.useMemo(
|
|
418
419
|
() => o.find((x) => x.guid === v),
|
|
419
420
|
[v, o]
|
|
420
421
|
), ne = () => {
|
|
@@ -425,14 +426,14 @@ const ee = ({
|
|
|
425
426
|
return;
|
|
426
427
|
}
|
|
427
428
|
r();
|
|
428
|
-
const x = de(g,
|
|
429
|
+
const x = de(g, ke(_.date)), D = {
|
|
429
430
|
account_guid: _.account_guid,
|
|
430
431
|
amount: _.amount,
|
|
431
432
|
created_by: 0,
|
|
432
433
|
// User
|
|
433
434
|
merchant_guid: _.merchant_guid,
|
|
434
435
|
description: _.payee || _.description || _.feed_description,
|
|
435
|
-
predicted_occurs_on:
|
|
436
|
+
predicted_occurs_on: Oe(x, { representation: "date" }),
|
|
436
437
|
recurrence_day: f,
|
|
437
438
|
recurrence_type: g,
|
|
438
439
|
repeating_transaction_type: n ? E.Income : E.Bill,
|
|
@@ -440,12 +441,12 @@ const ee = ({
|
|
|
440
441
|
transaction_type: _.transaction_type,
|
|
441
442
|
user_guid: m.guid
|
|
442
443
|
};
|
|
443
|
-
await a(
|
|
444
|
+
await a(D, _), j();
|
|
444
445
|
}, j = () => {
|
|
445
446
|
b(""), C(!1);
|
|
446
447
|
};
|
|
447
448
|
return /* @__PURE__ */ c(L, { children: [
|
|
448
|
-
/* @__PURE__ */ e($, { onClick: ne, startIcon: /* @__PURE__ */ e(
|
|
449
|
+
/* @__PURE__ */ e($, { onClick: ne, startIcon: /* @__PURE__ */ e(he, { size: 24 }), variant: "contained", children: t }),
|
|
449
450
|
/* @__PURE__ */ e(
|
|
450
451
|
O,
|
|
451
452
|
{
|
|
@@ -454,13 +455,13 @@ const ee = ({
|
|
|
454
455
|
onClose: () => C(!1),
|
|
455
456
|
title: t,
|
|
456
457
|
children: /* @__PURE__ */ e(
|
|
457
|
-
|
|
458
|
+
Ue,
|
|
458
459
|
{
|
|
459
460
|
description: n ? i.add_income_description : i.add_expense_description,
|
|
460
461
|
onSearch: (x) => {
|
|
461
462
|
l({
|
|
462
463
|
...s,
|
|
463
|
-
custom: (
|
|
464
|
+
custom: (D) => n ? x ? Be(D, x) : W(D) : x ? ze(D, x) : q(D)
|
|
464
465
|
});
|
|
465
466
|
},
|
|
466
467
|
onSelected: (x) => b(x)
|
|
@@ -477,12 +478,12 @@ const ee = ({
|
|
|
477
478
|
onPrimaryAction: oe,
|
|
478
479
|
title: n ? i.income_details : i.expense_details,
|
|
479
480
|
children: _ && /* @__PURE__ */ e(
|
|
480
|
-
|
|
481
|
+
Ye,
|
|
481
482
|
{
|
|
482
483
|
firstDay: f,
|
|
483
484
|
frequency: g,
|
|
484
485
|
onFirstDayChange: p,
|
|
485
|
-
onFrequencyChange:
|
|
486
|
+
onFrequencyChange: I,
|
|
486
487
|
onSecondDayChange: G,
|
|
487
488
|
secondDay: k,
|
|
488
489
|
transaction: _
|
|
@@ -492,11 +493,11 @@ const ee = ({
|
|
|
492
493
|
)
|
|
493
494
|
] });
|
|
494
495
|
}
|
|
495
|
-
),
|
|
496
|
+
), qe = A(
|
|
496
497
|
({ zeroStateFor: n }) => {
|
|
497
498
|
const { recurring: t } = w(), { onEvent: r } = F(), 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, o = i ? t.add_income : t.add_expense;
|
|
498
499
|
return /* @__PURE__ */ c(h, { sx: { alignItems: "center", p: 24, pt: 48 }, children: [
|
|
499
|
-
/* @__PURE__ */ e(
|
|
500
|
+
/* @__PURE__ */ e(ye, { size: 48 }),
|
|
500
501
|
/* @__PURE__ */ e(U, { sx: { my: 8, fontWeight: 600 }, variant: "body1", children: s }),
|
|
501
502
|
/* @__PURE__ */ e(U, { color: "text.secondary", sx: { mb: 32 }, variant: "subtitle2", children: l }),
|
|
502
503
|
/* @__PURE__ */ e(
|
|
@@ -513,7 +514,7 @@ const ee = ({
|
|
|
513
514
|
)
|
|
514
515
|
] });
|
|
515
516
|
}
|
|
516
|
-
),
|
|
517
|
+
), It = A(({ forOverview: n = !1 }) => {
|
|
517
518
|
const { recurring: t } = w(), { repeatingTransactions: r } = M(), { onEvent: i } = F(), s = (a) => {
|
|
518
519
|
i(R.RECURRING_TRANSACTIONS_CLICK_INCOME, {
|
|
519
520
|
repeating_transaction_guid: a.guid
|
|
@@ -533,7 +534,7 @@ const ee = ({
|
|
|
533
534
|
children: [
|
|
534
535
|
n && /* @__PURE__ */ e(S, { bold: !0, sx: { mb: 4, mt: 12, mx: 24 }, variant: "Small", children: t.income }),
|
|
535
536
|
/* @__PURE__ */ e(P, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(K, { sx: { bgcolor: "background.paper" }, children: o.map((a, m) => /* @__PURE__ */ c(u.Fragment, { children: [
|
|
536
|
-
/* @__PURE__ */ e(
|
|
537
|
+
/* @__PURE__ */ e(Pe, { onClick: s, repeatingTransaction: a }),
|
|
537
538
|
/* @__PURE__ */ e(
|
|
538
539
|
T,
|
|
539
540
|
{
|
|
@@ -567,16 +568,16 @@ const ee = ({
|
|
|
567
568
|
] })
|
|
568
569
|
]
|
|
569
570
|
}
|
|
570
|
-
) : /* @__PURE__ */ e(
|
|
571
|
+
) : /* @__PURE__ */ e(qe, { zeroStateFor: "income" }) });
|
|
571
572
|
});
|
|
572
573
|
export {
|
|
573
574
|
te as A,
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
575
|
+
It as M,
|
|
576
|
+
Pe as R,
|
|
577
|
+
Ue as S,
|
|
578
|
+
qe as a,
|
|
579
|
+
Ge as b,
|
|
580
|
+
Ye as c,
|
|
580
581
|
W as d,
|
|
581
|
-
|
|
582
|
+
Be as i
|
|
582
583
|
};
|
|
@@ -7,7 +7,7 @@ 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-CsCM4rNt.mjs";
|
|
11
11
|
import { u as _, j as A, g as f } from "./hooks-D6XlXHf4.mjs";
|
|
12
12
|
import { R as y, F as N } from "./RecurringTransactions-ej39mgA6.mjs";
|
|
13
13
|
import { A as m } from "./WidgetContainer-EbrN1oIo.mjs";
|
|
@@ -218,7 +218,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
218
218
|
]
|
|
219
219
|
}
|
|
220
220
|
) }) });
|
|
221
|
-
},
|
|
221
|
+
}, Ra = b(ut), mt = ({ transaction: t }) => {
|
|
222
222
|
const { addOrUpdateTransactionRule: r, updateTransaction: a } = v(), { categories: s } = xe(), { onEvent: o } = L(), { setShouldDisableDrawerScroll: n, updateManualTransaction: c } = G(), { transactions: d } = A(), [i, u] = _.useState(!1), [m, g] = _.useState(""), p = async (C) => {
|
|
223
223
|
await a({ ...t, category_guid: m }), C && await r(m, t), g(""), o(P.TRANSACTION_DETAILS_CLICK_CATEGORY, {
|
|
224
224
|
transaction_guid: t.guid
|
|
@@ -360,7 +360,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
360
360
|
}
|
|
361
361
|
)
|
|
362
362
|
] });
|
|
363
|
-
}, pt =
|
|
363
|
+
}, pt = ({ transaction: t }) => {
|
|
364
364
|
const { onEvent: r } = L(), { removeTransaction: a } = v(), { setShouldDisableDrawerScroll: s } = G(), { common: o, transactions: n } = A(), [c, d] = _.useState(!1), i = async () => {
|
|
365
365
|
await a(t.guid), r(h.ON_TRANSACTION_DELETE_DELETED);
|
|
366
366
|
};
|
|
@@ -400,7 +400,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
400
400
|
}
|
|
401
401
|
)
|
|
402
402
|
] });
|
|
403
|
-
},
|
|
403
|
+
}, ht = b(pt), Tt = ({ transaction: t }) => {
|
|
404
404
|
const { onEvent: r } = L(), { updateTransaction: a } = v(), { setShouldDisableDrawerScroll: s } = G(), { common: o, transactions: n } = A(), [c, d] = _.useState(!1), i = async () => {
|
|
405
405
|
await a({ ...t, merchant_guid: "" }), r(P.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
|
|
406
406
|
transaction_guid: t.guid
|
|
@@ -440,7 +440,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
440
440
|
}
|
|
441
441
|
)
|
|
442
442
|
] });
|
|
443
|
-
},
|
|
443
|
+
}, yt = b(Tt), St = ({ transaction: t }) => {
|
|
444
444
|
const { onEvent: r } = L(), { updateTransaction: a } = v(), { setShouldDisableDrawerScroll: s } = G(), { common: o, transactions: n } = A(), [c, d] = _.useState(!1), i = t.is_hidden, u = async () => {
|
|
445
445
|
await a({ ...t, is_hidden: !t.is_hidden }), r(
|
|
446
446
|
i ? h.ON_TRANSACTION_UNHIDDEN : h.ON_TRANSACTION_HIDDEN
|
|
@@ -510,7 +510,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
510
510
|
}
|
|
511
511
|
)
|
|
512
512
|
] });
|
|
513
|
-
},
|
|
513
|
+
}, Ct = b(St), Le = ({ transaction: t }) => {
|
|
514
514
|
const { amount: r, description: a, isIncome: s, merchant_guid: o, payee: n, top_level_category_guid: c } = t;
|
|
515
515
|
return /* @__PURE__ */ l(f, { className: "mx-txn-amount-header", direction: "row", gap: 12, px: 16, py: 24, children: [
|
|
516
516
|
/* @__PURE__ */ e(
|
|
@@ -529,7 +529,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
529
529
|
] })
|
|
530
530
|
] })
|
|
531
531
|
] });
|
|
532
|
-
},
|
|
532
|
+
}, ft = ({ transaction: t }) => {
|
|
533
533
|
const { onEvent: r } = L(), { updateTransaction: a } = v(), { updateManualTransaction: s } = G(), { common: o, transactions: n } = A(), [c, d] = _.useState(!1), [i, u] = _.useState("");
|
|
534
534
|
_.useEffect(() => {
|
|
535
535
|
c && u(t.memo ? t.memo : "");
|
|
@@ -599,7 +599,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
599
599
|
}
|
|
600
600
|
)
|
|
601
601
|
] });
|
|
602
|
-
},
|
|
602
|
+
}, bt = b(ft), At = ({
|
|
603
603
|
index: t,
|
|
604
604
|
onDeleteRow: r,
|
|
605
605
|
onCategoryChanged: a,
|
|
@@ -701,7 +701,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
701
701
|
]
|
|
702
702
|
}
|
|
703
703
|
);
|
|
704
|
-
},
|
|
704
|
+
}, xt = b(At), Nt = ({
|
|
705
705
|
onAddSplit: t,
|
|
706
706
|
onCategoryChanged: r,
|
|
707
707
|
onDeleteSplit: a,
|
|
@@ -719,7 +719,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
719
719
|
);
|
|
720
720
|
}, [o]), /* @__PURE__ */ l(w, { className: "mx-txn-split-manager", children: [
|
|
721
721
|
o.map((g, p) => /* @__PURE__ */ e(
|
|
722
|
-
|
|
722
|
+
xt,
|
|
723
723
|
{
|
|
724
724
|
index: p,
|
|
725
725
|
onCategoryChanged: r,
|
|
@@ -753,7 +753,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
753
753
|
}
|
|
754
754
|
) })
|
|
755
755
|
] });
|
|
756
|
-
},
|
|
756
|
+
}, It = b(Nt), Dt = ({ transaction: t }) => {
|
|
757
757
|
const { onEvent: r } = L(), { splitTransaction: a, unSplitTransaction: s } = v(), { common: o, transactions: n } = A(), { setShouldDisableDrawerScroll: c } = G(), { categories: d } = xe(), i = {
|
|
758
758
|
...t,
|
|
759
759
|
amount: t.amount - 1,
|
|
@@ -839,7 +839,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
839
839
|
children: [
|
|
840
840
|
/* @__PURE__ */ e(Le, { transaction: t }),
|
|
841
841
|
/* @__PURE__ */ e(
|
|
842
|
-
|
|
842
|
+
It,
|
|
843
843
|
{
|
|
844
844
|
onAddSplit: C,
|
|
845
845
|
onCategoryChanged: $,
|
|
@@ -873,7 +873,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
873
873
|
}
|
|
874
874
|
)
|
|
875
875
|
] });
|
|
876
|
-
},
|
|
876
|
+
}, vt = b(Dt), Et = () => {
|
|
877
877
|
const t = ve(), { onEvent: r } = L(), { addTag: a } = v(), { transactions: s } = A(), [o, n] = _.useState(!1), [c, d] = _.useState(""), [i, u] = _.useState(""), m = _.useRef(null);
|
|
878
878
|
_.useEffect(() => {
|
|
879
879
|
o && m?.current?.focus();
|
|
@@ -936,7 +936,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
936
936
|
}
|
|
937
937
|
)
|
|
938
938
|
] });
|
|
939
|
-
},
|
|
939
|
+
}, Ot = b(Et), wt = ({ onSearchValueChanged: t, searchValue: r }) => {
|
|
940
940
|
const { common: a, transactions: s } = A(), o = ee(), n = /* @__PURE__ */ e(
|
|
941
941
|
Q,
|
|
942
942
|
{
|
|
@@ -960,7 +960,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
960
960
|
value: r
|
|
961
961
|
}
|
|
962
962
|
) });
|
|
963
|
-
},
|
|
963
|
+
}, Lt = b(wt), Rt = ({ onTagChecked: t, selectedTags: r, tag: a }) => {
|
|
964
964
|
const { onEvent: s } = L(), { removeTag: o, updateTag: n } = v(), { common: c, transactions: d } = A(), [i, u] = _.useState(!1), [m, g] = _.useState(!1), [p, x] = _.useState(""), [y, N] = _.useState(""), C = async () => {
|
|
965
965
|
s(h.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), a && await n({ ...a, name: p }), u(!1);
|
|
966
966
|
}, R = async () => {
|
|
@@ -1054,25 +1054,25 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
1054
1054
|
]
|
|
1055
1055
|
}
|
|
1056
1056
|
);
|
|
1057
|
-
},
|
|
1057
|
+
}, kt = b(Rt), Pt = ({ selectedTags: t, onTagChecked: r }) => {
|
|
1058
1058
|
const { tags: a } = v(), [s, o] = _.useState(""), n = a.filter(
|
|
1059
1059
|
(c) => c.name.toLowerCase().includes(s.toLowerCase())
|
|
1060
1060
|
);
|
|
1061
1061
|
return /* @__PURE__ */ l("div", { className: "mx-txn-tag-manager", children: [
|
|
1062
1062
|
/* @__PURE__ */ e(
|
|
1063
|
-
|
|
1063
|
+
Lt,
|
|
1064
1064
|
{
|
|
1065
1065
|
onSearchValueChanged: (c) => o(c),
|
|
1066
1066
|
searchValue: s
|
|
1067
1067
|
}
|
|
1068
1068
|
),
|
|
1069
|
-
/* @__PURE__ */ e(
|
|
1069
|
+
/* @__PURE__ */ e(Ot, {}),
|
|
1070
1070
|
/* @__PURE__ */ e(ne, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ e(J, { children: n.map((c) => /* @__PURE__ */ l(_.Fragment, { children: [
|
|
1071
|
-
/* @__PURE__ */ e(
|
|
1071
|
+
/* @__PURE__ */ e(kt, { onTagChecked: r, selectedTags: t, tag: c }),
|
|
1072
1072
|
/* @__PURE__ */ e(Z, { sx: { ml: 24 } })
|
|
1073
1073
|
] }, c.guid)) }) })
|
|
1074
1074
|
] });
|
|
1075
|
-
},
|
|
1075
|
+
}, Gt = b(Pt), Mt = ({ transaction: t }) => {
|
|
1076
1076
|
const { onEvent: r } = L(), { tags: a, updateTaggings: s, updateTransaction: o } = v(), { common: n, transactions: c } = A(), { updateManualTransaction: d } = G(), [i, u] = _.useState(!1), [m, g] = _.useState(t.tags);
|
|
1077
1077
|
_.useEffect(() => {
|
|
1078
1078
|
g(t.tags);
|
|
@@ -1123,11 +1123,11 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
1123
1123
|
primaryText: n.save_button,
|
|
1124
1124
|
secondaryText: n.cancel_button,
|
|
1125
1125
|
title: c.tags_title,
|
|
1126
|
-
children: /* @__PURE__ */ e(
|
|
1126
|
+
children: /* @__PURE__ */ e(Gt, { onTagChecked: p, selectedTags: m })
|
|
1127
1127
|
}
|
|
1128
1128
|
)
|
|
1129
1129
|
] });
|
|
1130
|
-
},
|
|
1130
|
+
}, Kt = b(Mt), $t = ({ transaction: t, viewOnly: r = !1 }) => {
|
|
1131
1131
|
const { updateTransaction: a } = v(), { common: s, transactions: o } = A(), { onEvent: n } = L(), [c, d] = _.useState(!1), [i, u] = _.useState(""), m = _.useRef(null);
|
|
1132
1132
|
_.useEffect(() => {
|
|
1133
1133
|
c && (u(t.description), m?.current?.focus());
|
|
@@ -1178,7 +1178,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
1178
1178
|
}
|
|
1179
1179
|
)
|
|
1180
1180
|
] }) });
|
|
1181
|
-
},
|
|
1181
|
+
}, Bt = b($t), Ft = ({ transaction: t }) => {
|
|
1182
1182
|
const { updateTransaction: r } = v(), { transactions: a } = A(), { onEvent: s } = L(), o = ve(), n = async () => {
|
|
1183
1183
|
s(P.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: t.guid }), await r({ ...t, is_flagged: !t.is_flagged });
|
|
1184
1184
|
};
|
|
@@ -1210,7 +1210,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
1210
1210
|
children: /* @__PURE__ */ e(We, { color: "inherit" })
|
|
1211
1211
|
}
|
|
1212
1212
|
) });
|
|
1213
|
-
},
|
|
1213
|
+
}, Ht = b(Ft), ae = (t, r, a, s = !0, o = "inset") => s ? /* @__PURE__ */ l(_.Fragment, { children: [
|
|
1214
1214
|
/* @__PURE__ */ l(F, { disableGutters: !0, disablePadding: !0, children: [
|
|
1215
1215
|
/* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: t }) }),
|
|
1216
1216
|
/* @__PURE__ */ e(
|
|
@@ -1223,7 +1223,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
1223
1223
|
)
|
|
1224
1224
|
] }),
|
|
1225
1225
|
/* @__PURE__ */ e(Z, { variant: o })
|
|
1226
|
-
] }) : null,
|
|
1226
|
+
] }) : null, zt = ({ transaction: t }) => {
|
|
1227
1227
|
const { transactions: r } = A(), { tags: a } = v(), s = _.useMemo(() => {
|
|
1228
1228
|
const o = new Map(a.map((n) => [n.guid, n.name]));
|
|
1229
1229
|
return t.tags.map((n) => o.get(n)).filter(Boolean).join(" / ");
|
|
@@ -1262,7 +1262,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
1262
1262
|
"fullWidth"
|
|
1263
1263
|
)
|
|
1264
1264
|
] });
|
|
1265
|
-
},
|
|
1265
|
+
}, Ut = b(zt), Xt = ({
|
|
1266
1266
|
bottomActions: t = at,
|
|
1267
1267
|
topActions: r = tt,
|
|
1268
1268
|
transaction: a
|
|
@@ -1284,51 +1284,51 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
1284
1284
|
size: 64
|
|
1285
1285
|
}
|
|
1286
1286
|
) }),
|
|
1287
|
-
/* @__PURE__ */ e(
|
|
1287
|
+
/* @__PURE__ */ e(Bt, { transaction: a, viewOnly: d }),
|
|
1288
1288
|
/* @__PURE__ */ l(f, { direction: "row", justifyContent: "space-between", sx: { minHeight: 44 }, children: [
|
|
1289
1289
|
/* @__PURE__ */ l(Ae, { color: a.isIncome ? "success.main" : "text.primary", children: [
|
|
1290
1290
|
a.isIncome ? "+" : "",
|
|
1291
1291
|
te(a.amount, "0,0.00")
|
|
1292
1292
|
] }),
|
|
1293
|
-
!d && /* @__PURE__ */ e(
|
|
1293
|
+
!d && /* @__PURE__ */ e(Ht, { transaction: a })
|
|
1294
1294
|
] }),
|
|
1295
1295
|
/* @__PURE__ */ l(f, { bgcolor: "background.highlight", borderRadius: "12px", gap: 4, p: 8, children: [
|
|
1296
1296
|
/* @__PURE__ */ e(T, { bold: !0, children: `${a.account}
|
|
1297
1297
|
${c ? a.number : "•".repeat(4).concat(a.number ?? "")}` }),
|
|
1298
|
-
/* @__PURE__ */ e(T, { bold: !0, color: "secondary", variant: "Tiny", children: a.
|
|
1298
|
+
/* @__PURE__ */ e(T, { bold: !0, color: "secondary", variant: "Tiny", children: a.feed_description })
|
|
1299
1299
|
] })
|
|
1300
1300
|
] }),
|
|
1301
|
-
/* @__PURE__ */ e(ne, { square: !0, sx: { boxShadow: "none" }, children: d ? /* @__PURE__ */ e(
|
|
1301
|
+
/* @__PURE__ */ e(ne, { square: !0, sx: { boxShadow: "none" }, children: d ? /* @__PURE__ */ e(Ut, { transaction: a }) : /* @__PURE__ */ e(J, { children: r.map((i, u) => /* @__PURE__ */ l(_.Fragment, { children: [
|
|
1302
1302
|
i === q.Category && /* @__PURE__ */ e(mt, { transaction: a }),
|
|
1303
|
-
i === q.Date && /* @__PURE__ */ e(
|
|
1304
|
-
i === q.Memo && /* @__PURE__ */ e(
|
|
1305
|
-
i === q.Tags && /* @__PURE__ */ e(
|
|
1303
|
+
i === q.Date && /* @__PURE__ */ e(gt, { transaction: a }),
|
|
1304
|
+
i === q.Memo && /* @__PURE__ */ e(bt, { transaction: a }),
|
|
1305
|
+
i === q.Tags && /* @__PURE__ */ e(Kt, { transaction: a }),
|
|
1306
1306
|
/* @__PURE__ */ e(Z, { variant: u < r.length - 1 ? "inset" : "fullWidth" })
|
|
1307
1307
|
] }, i)) }) }),
|
|
1308
1308
|
!d && /* @__PURE__ */ l(_.Fragment, { children: [
|
|
1309
1309
|
/* @__PURE__ */ e(T, { bold: !0, mb: 8, ml: 26, mt: 16, variant: "Body", children: "Actions" }),
|
|
1310
1310
|
/* @__PURE__ */ e(ne, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ l(J, { children: [
|
|
1311
1311
|
t.map((i, u) => /* @__PURE__ */ l(_.Fragment, { children: [
|
|
1312
|
-
i === re.SplitTransaction && /* @__PURE__ */ e(
|
|
1313
|
-
i === re.HideTransaction && /* @__PURE__ */ e(
|
|
1314
|
-
i === re.MerchantLogo && /* @__PURE__ */ e(
|
|
1312
|
+
i === re.SplitTransaction && /* @__PURE__ */ e(vt, { transaction: a }),
|
|
1313
|
+
i === re.HideTransaction && /* @__PURE__ */ e(Ct, { transaction: a }),
|
|
1314
|
+
i === re.MerchantLogo && /* @__PURE__ */ e(yt, { transaction: a }),
|
|
1315
1315
|
/* @__PURE__ */ e(Z, { variant: u < t.length - 1 ? "inset" : "fullWidth" })
|
|
1316
1316
|
] }, i)),
|
|
1317
|
-
a.is_manual && !a.parent_guid && !a.has_been_split && /* @__PURE__ */ e(
|
|
1317
|
+
a.is_manual && !a.parent_guid && !a.has_been_split && /* @__PURE__ */ e(ht, { transaction: a })
|
|
1318
1318
|
] }) })
|
|
1319
1319
|
] })
|
|
1320
1320
|
] }) });
|
|
1321
|
-
},
|
|
1321
|
+
}, ka = b(Xt);
|
|
1322
1322
|
export {
|
|
1323
1323
|
re as B,
|
|
1324
1324
|
mt as C,
|
|
1325
|
-
|
|
1326
|
-
|
|
1325
|
+
gt as D,
|
|
1326
|
+
bt as M,
|
|
1327
1327
|
lt as S,
|
|
1328
|
-
|
|
1329
|
-
|
|
1328
|
+
Ra as T,
|
|
1329
|
+
ka as a,
|
|
1330
1330
|
st as b,
|
|
1331
|
-
|
|
1331
|
+
Kt as c,
|
|
1332
1332
|
q as d,
|
|
1333
1333
|
G as u
|
|
1334
1334
|
};
|
|
@@ -4,36 +4,36 @@ import U from "@mui/material/FormControlLabel";
|
|
|
4
4
|
import K from "@mui/material/Radio";
|
|
5
5
|
import V from "@mui/material/styles/useTheme";
|
|
6
6
|
import v from "@mui/material/Tooltip";
|
|
7
|
-
import { makeAutoObservable as y, runInAction as d
|
|
7
|
+
import { makeAutoObservable as y, runInAction as d } from "mobx";
|
|
8
8
|
import { endOfToday as D } from "date-fns/endOfToday";
|
|
9
|
-
import { formatISO as
|
|
9
|
+
import { formatISO as B } from "date-fns/formatISO";
|
|
10
10
|
import { fromUnixTime as h } from "date-fns/fromUnixTime";
|
|
11
11
|
import { getUnixTime as u } from "date-fns/getUnixTime";
|
|
12
|
-
import { isBefore as
|
|
12
|
+
import { isBefore as Y } from "date-fns/isBefore";
|
|
13
13
|
import { startOfMonth as R } from "date-fns/startOfMonth";
|
|
14
14
|
import { startOfToday as b } from "date-fns/startOfToday";
|
|
15
|
-
import { subDays as
|
|
15
|
+
import { subDays as F } from "date-fns/subDays";
|
|
16
16
|
import { O as n, a as G, T as w } from "./User-BQUxBeZV.mjs";
|
|
17
17
|
import { T as p } from "./TransactionApi-B3Tksf7L.mjs";
|
|
18
|
-
import { b as
|
|
19
|
-
import { f as
|
|
20
|
-
import { format as
|
|
21
|
-
import { f as g, D as O, O as
|
|
22
|
-
import { endOfMonth as
|
|
18
|
+
import { b as W } from "./Category-CevNQ03n.mjs";
|
|
19
|
+
import { f as z } from "./exportTransactionsToCSV-7bVS7KXf.mjs";
|
|
20
|
+
import { format as k } from "date-fns/format";
|
|
21
|
+
import { f as g, D as O, O as $ } from "./Dialog-CWW597AF.mjs";
|
|
22
|
+
import { endOfMonth as X } from "date-fns/endOfMonth";
|
|
23
23
|
import { B as f } from "./BeatApi-DhJpgCLz.mjs";
|
|
24
|
-
const
|
|
25
|
-
checked:
|
|
24
|
+
const j = ({
|
|
25
|
+
checked: S = !1,
|
|
26
26
|
label: t,
|
|
27
27
|
sx: a = {},
|
|
28
28
|
tooltip: e = "",
|
|
29
29
|
value: c
|
|
30
30
|
}) => {
|
|
31
|
-
const _ = V(),
|
|
31
|
+
const _ = V(), i = _.palette.mode === "light" ? _.palette.grey[400] : _.palette.grey[700], A = S ? _.palette.action.active : i;
|
|
32
32
|
return /* @__PURE__ */ C(
|
|
33
33
|
P,
|
|
34
34
|
{
|
|
35
35
|
bgcolor: "background.paper",
|
|
36
|
-
border: `${
|
|
36
|
+
border: `${S ? 3 : 1}px solid`,
|
|
37
37
|
borderColor: A,
|
|
38
38
|
borderRadius: 2,
|
|
39
39
|
mt: -2,
|
|
@@ -59,7 +59,7 @@ const Z = ({
|
|
|
59
59
|
) })
|
|
60
60
|
}
|
|
61
61
|
);
|
|
62
|
-
},
|
|
62
|
+
}, ft = j, x = {
|
|
63
63
|
ASC: "ASC",
|
|
64
64
|
DESC: "DESC",
|
|
65
65
|
DIRECTION: {
|
|
@@ -322,74 +322,74 @@ const Z = ({
|
|
|
322
322
|
category: o.TRANSACTIONS_WIDGET,
|
|
323
323
|
label: r.DELETE_TRANSACTION
|
|
324
324
|
}
|
|
325
|
-
},
|
|
325
|
+
}, Z = async (S, t) => !t || !m[S] ? null : t.sendAnalyticEvent(m[S]), L = {
|
|
326
326
|
FLAG: "flag",
|
|
327
327
|
DATE: "date",
|
|
328
328
|
PAYEE: "payee",
|
|
329
329
|
CATEGORY: "category",
|
|
330
330
|
ACCOUNT: "account",
|
|
331
331
|
AMOUNT: "amount"
|
|
332
|
-
},
|
|
333
|
-
const c = t.reduce((A,
|
|
334
|
-
const { transaction_guid:
|
|
335
|
-
if (!A[
|
|
332
|
+
}, q = (S, t, a, e = []) => {
|
|
333
|
+
const c = t.reduce((A, s) => ({ ...A, [s.guid]: s }), {}), _ = a.reduce((A, s) => ({ ...A, [s.guid]: s }), {}), i = e.reduce((A, s) => {
|
|
334
|
+
const { transaction_guid: l, tag_guid: I } = s;
|
|
335
|
+
if (!A[l])
|
|
336
336
|
return {
|
|
337
337
|
...A,
|
|
338
|
-
[
|
|
338
|
+
[l]: [I]
|
|
339
339
|
};
|
|
340
|
-
const E = [...A[
|
|
340
|
+
const E = [...A[l], I];
|
|
341
341
|
return {
|
|
342
342
|
...A,
|
|
343
|
-
[
|
|
343
|
+
[l]: E
|
|
344
344
|
};
|
|
345
345
|
}, {});
|
|
346
|
-
return
|
|
347
|
-
const
|
|
346
|
+
return S.map((A) => {
|
|
347
|
+
const s = c[A.account_guid], l = A.category_guid ? _[A.category_guid] : null, I = i[A.guid] ?? [];
|
|
348
348
|
return {
|
|
349
349
|
...A,
|
|
350
|
-
account:
|
|
351
|
-
accountIsClosed:
|
|
352
|
-
accountIsHidden:
|
|
353
|
-
category:
|
|
354
|
-
isIncome: A.top_level_category_guid ===
|
|
350
|
+
account: s?.user_name || "Unknown",
|
|
351
|
+
accountIsClosed: s?.is_closed,
|
|
352
|
+
accountIsHidden: s?.is_hidden,
|
|
353
|
+
category: l?.name || "Uncategorized",
|
|
354
|
+
isIncome: A.top_level_category_guid === W.INCOME,
|
|
355
355
|
isPending: A.feed_status === G.PENDING,
|
|
356
|
-
number:
|
|
356
|
+
number: s?.account_number || "",
|
|
357
357
|
payee: A.description,
|
|
358
358
|
tags: I
|
|
359
359
|
};
|
|
360
360
|
});
|
|
361
|
-
},
|
|
362
|
-
const
|
|
363
|
-
return t.forEach((
|
|
364
|
-
const
|
|
365
|
-
A.splice(
|
|
361
|
+
}, J = "uncategorized", Q = (S, t, a, e, c, _) => {
|
|
362
|
+
const i = tt(S, c, _), A = at(i, a, e);
|
|
363
|
+
return t.forEach((s) => {
|
|
364
|
+
const l = A.findIndex((E) => E.guid === s), I = _.filter((E) => E.parent_guid === s);
|
|
365
|
+
A.splice(l + 1, 0, ...I);
|
|
366
366
|
}), A;
|
|
367
|
-
},
|
|
367
|
+
}, tt = (S, t, a) => {
|
|
368
368
|
const {
|
|
369
369
|
accounts: e = [],
|
|
370
370
|
dateRange: c = { start: R(b()), end: D() },
|
|
371
371
|
custom: _ = () => !0,
|
|
372
|
-
searchTerm:
|
|
372
|
+
searchTerm: i = "",
|
|
373
373
|
showSplits: A = !1
|
|
374
|
-
} =
|
|
375
|
-
return a.filter((
|
|
376
|
-
if (
|
|
374
|
+
} = S;
|
|
375
|
+
return a.filter((s) => A ? !s.has_been_split : !s.parent_guid).filter((s) => !!e.find((l) => l === s.account_guid)).filter((s) => s.date >= u(c.start) && s.date <= u(c.end)).filter(_).filter((s) => {
|
|
376
|
+
if (i === J && s.has_been_split)
|
|
377
377
|
return !1;
|
|
378
|
-
if (/^spl/i.test(
|
|
378
|
+
if (/^spl/i.test(i) && (s.has_been_split || s.parent_guid))
|
|
379
379
|
return !0;
|
|
380
|
-
const I =
|
|
381
|
-
(M) =>
|
|
382
|
-
), E = h(
|
|
383
|
-
return
|
|
380
|
+
const I = s.tags.some(
|
|
381
|
+
(M) => N(i, t.find((H) => H.guid === M)?.name)
|
|
382
|
+
), E = h(s.date);
|
|
383
|
+
return N(i, s.payee) || N(i, s.feed_description) || N(i, s.category) || N(i, g(E, O.MONTH)) || N(i, g(E, O.DAY)) || N(i, g(E, O.FULL_MONTH_DAY)) || N(i, g(E, O.MONTH_DAY_YEAR)) || N(i, k(E, $)) || N(i, s.account) || N(i, `${s.amount}`) || N(i, s.memo) || I;
|
|
384
384
|
});
|
|
385
|
-
},
|
|
386
|
-
const _ = t,
|
|
387
|
-
let A =
|
|
388
|
-
return (t === L.DATE || t === L.AMOUNT) && (A =
|
|
389
|
-
}),
|
|
390
|
-
const a =
|
|
385
|
+
}, at = (S, t, a) => [...S].sort((e, c) => {
|
|
386
|
+
const _ = t, i = (e[_] || "") > (c[_] || "");
|
|
387
|
+
let A = i ? -1 : 1, s = i ? 1 : -1;
|
|
388
|
+
return (t === L.DATE || t === L.AMOUNT) && (A = i ? 1 : -1, s = i ? -1 : 1), a === x.ASC ? A : s;
|
|
389
|
+
}), N = (S, t) => {
|
|
390
|
+
const a = S.toLowerCase().split(" "), e = t?.toString().toLowerCase() ?? "";
|
|
391
391
|
return a.every((c) => e.indexOf(c) > -1);
|
|
392
|
-
},
|
|
392
|
+
}, et = {
|
|
393
393
|
account_guid: "",
|
|
394
394
|
amount: 0,
|
|
395
395
|
currency_code: "",
|
|
@@ -420,7 +420,7 @@ const Z = ({
|
|
|
420
420
|
};
|
|
421
421
|
class it {
|
|
422
422
|
beginDate = R(/* @__PURE__ */ new Date());
|
|
423
|
-
endDate =
|
|
423
|
+
endDate = X(/* @__PURE__ */ new Date());
|
|
424
424
|
expandedSplits = [];
|
|
425
425
|
isInitialized = !1;
|
|
426
426
|
height = 550;
|
|
@@ -428,7 +428,7 @@ class it {
|
|
|
428
428
|
shouldDisableDrawerScroll = !1;
|
|
429
429
|
searchValue = "";
|
|
430
430
|
selectedAccountGuids = [];
|
|
431
|
-
manualTransaction =
|
|
431
|
+
manualTransaction = et;
|
|
432
432
|
isAmountValid = !1;
|
|
433
433
|
showInsights = !1;
|
|
434
434
|
constructor() {
|
|
@@ -459,13 +459,13 @@ class it {
|
|
|
459
459
|
this.manualTransaction = t;
|
|
460
460
|
};
|
|
461
461
|
}
|
|
462
|
-
class
|
|
462
|
+
class mt {
|
|
463
463
|
globalStore;
|
|
464
464
|
uiStore;
|
|
465
465
|
api = new p("/", "");
|
|
466
466
|
beatApi = new f("/", "");
|
|
467
467
|
associatedBeats = [];
|
|
468
|
-
cachedStartDate =
|
|
468
|
+
cachedStartDate = F(b(), 90);
|
|
469
469
|
filter = {};
|
|
470
470
|
isLoading = !0;
|
|
471
471
|
rawTransactions = [];
|
|
@@ -474,8 +474,7 @@ class yt {
|
|
|
474
474
|
taggings = [];
|
|
475
475
|
tags = [];
|
|
476
476
|
transactionRules = [];
|
|
477
|
-
|
|
478
|
-
onAnalyticEvent = q;
|
|
477
|
+
onAnalyticEvent = Z;
|
|
479
478
|
constructor(t) {
|
|
480
479
|
this.globalStore = t, this.uiStore = new it(), this.api = new p(
|
|
481
480
|
t.endpoint,
|
|
@@ -499,17 +498,8 @@ class yt {
|
|
|
499
498
|
this.uiStore.setIsInitialized(!0);
|
|
500
499
|
});
|
|
501
500
|
};
|
|
502
|
-
subscribe = (t) => (this.listeners = [...this.listeners, t], () => {
|
|
503
|
-
this.listeners = this.listeners.filter((a) => a !== t);
|
|
504
|
-
});
|
|
505
|
-
getSnapshot = () => {
|
|
506
|
-
B(
|
|
507
|
-
() => this.transactions,
|
|
508
|
-
(t) => t
|
|
509
|
-
);
|
|
510
|
-
};
|
|
511
501
|
get sortedTransactions() {
|
|
512
|
-
return
|
|
502
|
+
return Q(
|
|
513
503
|
this.filter,
|
|
514
504
|
this.uiStore.expandedSplits,
|
|
515
505
|
this.sortColumn,
|
|
@@ -519,7 +509,7 @@ class yt {
|
|
|
519
509
|
);
|
|
520
510
|
}
|
|
521
511
|
get sortedTransactionsWithSplits() {
|
|
522
|
-
return
|
|
512
|
+
return z(this.sortedTransactions, this.transactions);
|
|
523
513
|
}
|
|
524
514
|
get transactions() {
|
|
525
515
|
return this.augmentTransactions(this.rawTransactions);
|
|
@@ -555,7 +545,7 @@ class yt {
|
|
|
555
545
|
this.globalStore.accountStore.updateAccountBalance(a.account_guid, e);
|
|
556
546
|
}
|
|
557
547
|
};
|
|
558
|
-
augmentTransactions = (t) =>
|
|
548
|
+
augmentTransactions = (t) => q(
|
|
559
549
|
t,
|
|
560
550
|
this.globalStore.accountStore.visibleAccounts,
|
|
561
551
|
this.globalStore.categoryStore.categories,
|
|
@@ -563,7 +553,7 @@ class yt {
|
|
|
563
553
|
);
|
|
564
554
|
getTransactionData = () => ({});
|
|
565
555
|
loadAssociatedBeats = async (t, a) => {
|
|
566
|
-
const e = t ?
|
|
556
|
+
const e = t ? B(t, { representation: "date" }) : void 0, c = a ?? await this.beatApi.getBeatsWithAssociatedTransaction(e);
|
|
567
557
|
d(() => this.associatedBeats = c);
|
|
568
558
|
};
|
|
569
559
|
loadTags = async () => {
|
|
@@ -617,7 +607,7 @@ class yt {
|
|
|
617
607
|
}
|
|
618
608
|
};
|
|
619
609
|
setFilter = (t) => {
|
|
620
|
-
this.filter = t, t.dateRange &&
|
|
610
|
+
this.filter = t, t.dateRange && Y(t.dateRange.start, this.cachedStartDate) && this.loadTransactions(t.dateRange.start, D()).then(() => {
|
|
621
611
|
t.dateRange && (this.cachedStartDate = t.dateRange.start);
|
|
622
612
|
});
|
|
623
613
|
};
|
|
@@ -627,11 +617,11 @@ class yt {
|
|
|
627
617
|
};
|
|
628
618
|
splitTransaction = async (t, a) => {
|
|
629
619
|
const e = await this.api.updateTransaction(t), c = [];
|
|
630
|
-
for (let
|
|
631
|
-
const A = await this.api.addTransaction(a[
|
|
620
|
+
for (let i = 0; i < a.length; i++) {
|
|
621
|
+
const A = await this.api.addTransaction(a[i]);
|
|
632
622
|
c.push(A);
|
|
633
623
|
}
|
|
634
|
-
const _ = this.transactions.findIndex((
|
|
624
|
+
const _ = this.transactions.findIndex((i) => i.guid === t.guid);
|
|
635
625
|
_ >= 0 && d(
|
|
636
626
|
() => this.rawTransactions = [
|
|
637
627
|
...this.transactions.slice(0, _),
|
|
@@ -642,14 +632,14 @@ class yt {
|
|
|
642
632
|
);
|
|
643
633
|
};
|
|
644
634
|
unSplitTransaction = async (t) => {
|
|
645
|
-
const a = this.transactions.filter((
|
|
635
|
+
const a = this.transactions.filter((i) => i.parent_guid === t);
|
|
646
636
|
await this.api.removeTransactionSplit(t);
|
|
647
637
|
const e = [...this.transactions];
|
|
648
|
-
a.forEach((
|
|
649
|
-
const A = e.findIndex((
|
|
638
|
+
a.forEach((i) => {
|
|
639
|
+
const A = e.findIndex((s) => s.guid === i.guid);
|
|
650
640
|
A >= 0 && e.splice(A, 1);
|
|
651
641
|
});
|
|
652
|
-
const c = e.findIndex((
|
|
642
|
+
const c = e.findIndex((i) => i.guid === t), _ = e[c];
|
|
653
643
|
_.has_been_split = !1, c >= 0 && d(
|
|
654
644
|
() => this.rawTransactions = [
|
|
655
645
|
...e.slice(0, c),
|
|
@@ -659,11 +649,11 @@ class yt {
|
|
|
659
649
|
);
|
|
660
650
|
};
|
|
661
651
|
updateTaggings = async (t, a) => {
|
|
662
|
-
const e = this.taggings.filter((
|
|
663
|
-
for (const
|
|
664
|
-
c.has(
|
|
665
|
-
for (const
|
|
666
|
-
_.has(
|
|
652
|
+
const e = this.taggings.filter((i) => i.transaction_guid === a), c = new Set(e.map((i) => i.tag_guid)), _ = new Set(t);
|
|
653
|
+
for (const i of t)
|
|
654
|
+
c.has(i) || await this.addTagging(i, a);
|
|
655
|
+
for (const i of e)
|
|
656
|
+
_.has(i.tag_guid) || await this.removeTagging(i.guid);
|
|
667
657
|
await this.loadTaggings();
|
|
668
658
|
};
|
|
669
659
|
updateTag = async (t) => {
|
|
@@ -671,17 +661,17 @@ class yt {
|
|
|
671
661
|
};
|
|
672
662
|
updateTransaction = async (t) => {
|
|
673
663
|
const a = await this.api.updateTransaction(t), e = this.transactions.findIndex((c) => c.guid === t.guid);
|
|
674
|
-
e >= 0 &&
|
|
664
|
+
e >= 0 && d(
|
|
675
665
|
() => this.rawTransactions = [
|
|
676
666
|
...this.transactions.slice(0, e),
|
|
677
667
|
a,
|
|
678
668
|
...this.transactions.slice(e + 1)
|
|
679
669
|
]
|
|
680
|
-
)
|
|
670
|
+
);
|
|
681
671
|
};
|
|
682
672
|
}
|
|
683
673
|
export {
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
674
|
+
et as D,
|
|
675
|
+
ft as S,
|
|
676
|
+
mt as T
|
|
687
677
|
};
|
|
@@ -7,8 +7,8 @@ import E from "@mui/material/List";
|
|
|
7
7
|
import O from "@mui/material/ListSubheader";
|
|
8
8
|
import _ from "@mui/system/Stack";
|
|
9
9
|
import { Text as v } from "@mxenabled/mxui";
|
|
10
|
-
import { A as K } from "../AccountDetailsContent-
|
|
11
|
-
import { u as D1 } from "../AccountDetailsContent-
|
|
10
|
+
import { A as K } from "../AccountDetailsContent-CsH1w_GZ.mjs";
|
|
11
|
+
import { u as D1 } from "../AccountDetailsContent-CsH1w_GZ.mjs";
|
|
12
12
|
import { u as z, A as P } from "../AccountDetailsHeader-Df1JkzYi.mjs";
|
|
13
13
|
import { A as W } from "../AccountListItem-CeY_WIpj.mjs";
|
|
14
14
|
import { a as Y } from "../AccountFields-DUToRRqW.mjs";
|
package/dist/budgets/index.es.js
CHANGED
|
@@ -38,7 +38,7 @@ import Qe from "@mui/material/Snackbar";
|
|
|
38
38
|
import _e from "@mui/material/Tab";
|
|
39
39
|
import et from "@mui/material/Tabs";
|
|
40
40
|
import { e as tt } from "../exportTransactionsToCSV-7bVS7KXf.mjs";
|
|
41
|
-
import { T as we, a as nt } from "../TransactionDetails-
|
|
41
|
+
import { T as we, a as nt } from "../TransactionDetails-CDtya0KS.mjs";
|
|
42
42
|
import he from "@mui/material/Card";
|
|
43
43
|
import fe from "@mui/material/CardContent";
|
|
44
44
|
import { S as pe } from "../StatusBar-BK_uYHAB.mjs";
|
|
@@ -47,7 +47,7 @@ import { u as ot, b as at } from "../CategorySelectorDrawer-DUe4lH5-.mjs";
|
|
|
47
47
|
import Ie from "@mui/material/CardHeader";
|
|
48
48
|
import { subDays as rt } from "date-fns/subDays";
|
|
49
49
|
import st from "@mui/material/IconButton";
|
|
50
|
-
import { M as it } from "../ManageIncome-
|
|
50
|
+
import { M as it } from "../ManageIncome-CsCM4rNt.mjs";
|
|
51
51
|
const ct = I(() => {
|
|
52
52
|
const { budgets: t } = w(), { totalBudgeted: o } = D(), { incomeTotal: i } = te(), s = i - o;
|
|
53
53
|
return /* @__PURE__ */ g(B, { direction: "row", justifyContent: "center", my: 16, spacing: 20, children: [
|
|
@@ -17,7 +17,7 @@ import { C as jn } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
|
17
17
|
import { b as M } from "../Localization-2MODESHW.mjs";
|
|
18
18
|
import { M as Ke } from "../MiniWidgetContainer-D0gfmbaF.mjs";
|
|
19
19
|
import { E as Je } from "../EmptyState-DA_lfRBv.mjs";
|
|
20
|
-
import { R as Ze } from "../RecurringSettings-
|
|
20
|
+
import { R as Ze } from "../RecurringSettings-DZu2hw1r.mjs";
|
|
21
21
|
import et from "@mui/material/Tabs";
|
|
22
22
|
import Ce from "@mui/material/Tab";
|
|
23
23
|
import { getUnixTime as U } from "date-fns/getUnixTime";
|
|
@@ -35,13 +35,13 @@ import { alpha as ot, keyframes as at } from "@mui/material/styles";
|
|
|
35
35
|
import { DataGridPro as it } from "@mui/x-data-grid-pro";
|
|
36
36
|
import { T as we } from "../TabContentContainer-j01JYR_7.mjs";
|
|
37
37
|
import G from "@mui/material/Button";
|
|
38
|
-
import { M as rt, S as st, i as ct, d as _e, c as lt } from "../ManageIncome-
|
|
38
|
+
import { M as rt, S as st, i as ct, d as _e, c as lt } from "../ManageIncome-CsCM4rNt.mjs";
|
|
39
39
|
import { D as Ge } from "../Drawer-kEE73B87.mjs";
|
|
40
40
|
import { formatISO as dt } from "date-fns/formatISO";
|
|
41
41
|
import { fromUnixTime as Ie } from "date-fns/fromUnixTime";
|
|
42
42
|
import { startOfMonth as mt } from "date-fns/startOfMonth";
|
|
43
43
|
import { subDays as je } from "date-fns/subDays";
|
|
44
|
-
import { S as ut, b as ht } from "../TransactionDetails-
|
|
44
|
+
import { S as ut, b as ht } from "../TransactionDetails-CDtya0KS.mjs";
|
|
45
45
|
import { F as pt, R as De, e as ve } from "../RecurringTransactions-ej39mgA6.mjs";
|
|
46
46
|
import { h as ft } from "../DateUtil-BcuH7ErC.mjs";
|
|
47
47
|
import { endOfToday as gt } from "date-fns/endOfToday";
|
package/dist/common/index.es.js
CHANGED
|
@@ -18,8 +18,8 @@ import { C as Ys } from "../CurrencyInput-DUsQbkXb.mjs";
|
|
|
18
18
|
import { L as zs } from "../Loader-DUaFpDGv.mjs";
|
|
19
19
|
import { R as js } from "../ResponsiveButton-DZFp78fJ.mjs";
|
|
20
20
|
import { S as Vs } from "../SearchBox-B2_zLv8-.mjs";
|
|
21
|
-
import { T as at } from "../TransactionStore-
|
|
22
|
-
import { S as Js } from "../TransactionStore-
|
|
21
|
+
import { T as at } from "../TransactionStore-DxPLdF3B.mjs";
|
|
22
|
+
import { S as Js } from "../TransactionStore-DxPLdF3B.mjs";
|
|
23
23
|
import { T as er } from "../TabContentContainer-j01JYR_7.mjs";
|
|
24
24
|
import { I as rr } from "../IconBacking-B9oC6uL2.mjs";
|
|
25
25
|
import { D as ar, F as nr, a as ir, c as cr, R as dr, S as lr } from "../RecurringTransactions-ej39mgA6.mjs";
|
|
@@ -1198,7 +1198,6 @@ class Je {
|
|
|
1198
1198
|
userStore;
|
|
1199
1199
|
// UI Stores
|
|
1200
1200
|
globalUiStore;
|
|
1201
|
-
// listeners = [] as any
|
|
1202
1201
|
constructor(t = K, e = "/", r) {
|
|
1203
1202
|
this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onError = r, this.accountStore = new ft(this), this.appDataStore = new ie(this), this.analyticsStore = new ee(this), this.beatStore = new St(this), this.budgetsStore = new se(this), this.cashflowStore = new nt(this), this.categoryStore = new et(this), this.connectStore = new ce(this), this.copyStore = new te(this), this.debtsStore = new xt(this), this.finstrongStore = new Ct(this), this.goalStore = new it(this), this.helpStore = new ae(this), this.holdingStore = new ne(this), this.merchantStore = new Tt(this), this.netWorthStore = new Bt(this), this.notificationStore = new st(this), this.recurringTransactionsStore = new mt(this), this.settingsStore = new It(this), this.transactionStore = new at(this), this.trendsStore = new ct(this), this.userStore = new le(this), this.globalUiStore = new de(this), f(this);
|
|
1204
1203
|
}
|
|
@@ -1230,15 +1229,6 @@ class Je {
|
|
|
1230
1229
|
})
|
|
1231
1230
|
]), this.globalUiStore.setInitialized(!0);
|
|
1232
1231
|
};
|
|
1233
|
-
// subscribe = (listener: any) => {
|
|
1234
|
-
// this.listeners = [...this.listeners, listener]
|
|
1235
|
-
// return () => {
|
|
1236
|
-
// this.listeners = this.listeners.filter((l: any) => l !== listener)
|
|
1237
|
-
// }
|
|
1238
|
-
// }
|
|
1239
|
-
// getSnapshot = () => {
|
|
1240
|
-
// return this
|
|
1241
|
-
// }
|
|
1242
1232
|
}
|
|
1243
1233
|
export {
|
|
1244
1234
|
vs as ANALYTICS_EVENTS,
|
|
@@ -30,7 +30,7 @@ import Ue from "@mui/material/AccordionSummary";
|
|
|
30
30
|
import Ve from "@mui/material/CardHeader";
|
|
31
31
|
import { u as Ye } from "../useDimensions-27p2evRx.mjs";
|
|
32
32
|
import { C as qe } from "../ConnectionsDrawer-BDvVuJQf.mjs";
|
|
33
|
-
import { R as Je } from "../RecurringSettings-
|
|
33
|
+
import { R as Je } from "../RecurringSettings-DZu2hw1r.mjs";
|
|
34
34
|
import Qe from "@mui/material/TextField";
|
|
35
35
|
import { u as Ce } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
36
36
|
import { a as Ze } from "../Dialog-CWW597AF.mjs";
|
package/dist/goals/index.es.js
CHANGED
|
@@ -39,7 +39,7 @@ import tt from "@mui/material/Collapse";
|
|
|
39
39
|
import nt from "@mui/material/ListItemIcon";
|
|
40
40
|
import ot from "@mui/material/Checkbox";
|
|
41
41
|
import { u as at, A as rt } from "../AccountDetailsHeader-Df1JkzYi.mjs";
|
|
42
|
-
import { A as it } from "../AccountDetailsContent-
|
|
42
|
+
import { A as it } from "../AccountDetailsContent-CsH1w_GZ.mjs";
|
|
43
43
|
import { u as st } from "../useAccountDisplayName-jS05A6-6.mjs";
|
|
44
44
|
import De from "@mui/material/TextField";
|
|
45
45
|
import { M as lt, I as ct, O as dt } from "../OriginalBalanceAction-CWuVvRq9.mjs";
|
|
@@ -8,8 +8,8 @@ import { startOfToday as ue } from "date-fns/startOfToday";
|
|
|
8
8
|
import { subDays as me } from "date-fns/subDays";
|
|
9
9
|
import ae from "@mui/material/Skeleton";
|
|
10
10
|
import c from "@mui/material/Stack";
|
|
11
|
-
import { R as Ee } from "../RecurringSettings-
|
|
12
|
-
import { M as En } from "../RecurringSettings-
|
|
11
|
+
import { R as Ee } from "../RecurringSettings-DZu2hw1r.mjs";
|
|
12
|
+
import { M as En } from "../RecurringSettings-DZu2hw1r.mjs";
|
|
13
13
|
import { addMonths as ze } from "date-fns/addMonths";
|
|
14
14
|
import { subMonths as Fe } from "date-fns/subMonths";
|
|
15
15
|
import { isBefore as Ue } from "date-fns/isBefore";
|
|
@@ -41,8 +41,8 @@ import ct from "@mui/material/ListSubheader";
|
|
|
41
41
|
import lt from "@mui/material/ListItemAvatar";
|
|
42
42
|
import dt from "@mui/material/ListItemButton";
|
|
43
43
|
import ut from "@mui/material/ListItemText";
|
|
44
|
-
import { b as mt } from "../ManageIncome-
|
|
45
|
-
import { c as kn, M as Wn, S as $n } from "../ManageIncome-
|
|
44
|
+
import { b as mt } from "../ManageIncome-CsCM4rNt.mjs";
|
|
45
|
+
import { c as kn, M as Wn, S as $n } from "../ManageIncome-CsCM4rNt.mjs";
|
|
46
46
|
import { f as L } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
47
47
|
import { D as xe } from "../Drawer-kEE73B87.mjs";
|
|
48
48
|
import { b as N } from "../Localization-2MODESHW.mjs";
|
|
@@ -21,7 +21,7 @@ import { D as Tt } from "../Donut-oaQFlbit.mjs";
|
|
|
21
21
|
import { L as F } from "../Loader-DUaFpDGv.mjs";
|
|
22
22
|
import { M as Mt } from "../MiniWidgetContainer-D0gfmbaF.mjs";
|
|
23
23
|
import { startOfToday as U } from "date-fns/startOfToday";
|
|
24
|
-
import { T as Dt, a as xt } from "../TransactionDetails-
|
|
24
|
+
import { T as Dt, a as xt } from "../TransactionDetails-CDtya0KS.mjs";
|
|
25
25
|
import wt from "@mui/material/Collapse";
|
|
26
26
|
import B from "@mui/material/Divider";
|
|
27
27
|
import q from "@mui/material/List";
|
|
@@ -3,5 +3,5 @@ import { Transaction } from '../../../../../common';
|
|
|
3
3
|
interface DateActionProps {
|
|
4
4
|
transaction: Transaction;
|
|
5
5
|
}
|
|
6
|
-
declare const
|
|
7
|
-
export default
|
|
6
|
+
declare const DateAction: React.FC<DateActionProps>;
|
|
7
|
+
export default DateAction;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { T as Aa } from "../TransactionApi-B3Tksf7L.mjs";
|
|
2
|
-
import { u as P, C as Pe, D as $e, M as Ve, c as We, T as Ge, a as Ue } from "../TransactionDetails-
|
|
3
|
-
import { B as xa, d as wa, b as Ia } from "../TransactionDetails-
|
|
2
|
+
import { u as P, C as Pe, D as $e, M as Ve, c as We, T as Ge, a as Ue } from "../TransactionDetails-CDtya0KS.mjs";
|
|
3
|
+
import { B as xa, d as wa, b as Ia } from "../TransactionDetails-CDtya0KS.mjs";
|
|
4
4
|
import { T as M } from "../User-BQUxBeZV.mjs";
|
|
5
5
|
import { O as Da } from "../User-BQUxBeZV.mjs";
|
|
6
|
-
import { S as ae, D as Fe } from "../TransactionStore-
|
|
7
|
-
import { T as Ea } from "../TransactionStore-
|
|
6
|
+
import { S as ae, D as Fe } from "../TransactionStore-DxPLdF3B.mjs";
|
|
7
|
+
import { T as Ea } from "../TransactionStore-DxPLdF3B.mjs";
|
|
8
8
|
import { e as ze } from "../exportTransactionsToCSV-7bVS7KXf.mjs";
|
|
9
9
|
import { E as Ma } from "../ExportCsvAction-sX8Rg4Ov.mjs";
|
|
10
10
|
import { jsxs as _, jsx as e } from "react/jsx-runtime";
|
|
@@ -26,7 +26,6 @@ export declare class TransactionStore {
|
|
|
26
26
|
taggings: Tagging[];
|
|
27
27
|
tags: Tag[];
|
|
28
28
|
transactionRules: TransactionRule[];
|
|
29
|
-
listeners: any;
|
|
30
29
|
onAnalyticEvent: (event: string, session: import('../analytics').AnalyticSession | null) => Promise<any>;
|
|
31
30
|
constructor(globalStore: GlobalStore);
|
|
32
31
|
loadTransactionData: ({ associatedBeats, transactionRules, transactions, }?: {
|
|
@@ -36,8 +35,6 @@ export declare class TransactionStore {
|
|
|
36
35
|
transactionRules?: TransactionRule[];
|
|
37
36
|
transactions?: Transaction[];
|
|
38
37
|
}) => Promise<void>;
|
|
39
|
-
subscribe: (listener: any) => () => void;
|
|
40
|
-
getSnapshot: () => void;
|
|
41
38
|
get sortedTransactions(): Transaction[];
|
|
42
39
|
get sortedTransactionsWithSplits(): Transaction[];
|
|
43
40
|
get transactions(): Transaction[];
|
package/dist/trends/index.es.js
CHANGED
|
@@ -22,7 +22,7 @@ import { H as Ie } from "../HeaderCell-DjuifqHJ.mjs";
|
|
|
22
22
|
import { T as M, b as ft } from "../ViewMoreMicroCard-SCn2wt4i.mjs";
|
|
23
23
|
import { A as _, W as ke } from "../WidgetContainer-EbrN1oIo.mjs";
|
|
24
24
|
import { c as Tt } from "../Category-CevNQ03n.mjs";
|
|
25
|
-
import { a as Ne, T as He } from "../TransactionDetails-
|
|
25
|
+
import { a as Ne, T as He } from "../TransactionDetails-CDtya0KS.mjs";
|
|
26
26
|
import { D as Ce } from "../Drawer-kEE73B87.mjs";
|
|
27
27
|
import { L as Q } from "../Loader-DUaFpDGv.mjs";
|
|
28
28
|
import { useTheme as We } from "@mui/material/styles";
|