@mx-cartographer/experiences 7.3.0-alpha.sms1 → 7.3.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 +75 -0
- package/dist/{Account-Bxw0_4FU.mjs → Account-YwUMFz93.mjs} +1 -1
- package/dist/{AccountDetailsContent-CAM9y39M.mjs → AccountDetailsContent-BgCST7mK.mjs} +8 -8
- package/dist/AccountDetailsHeader-jAFWoHj7.mjs +87 -0
- package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-DPxMPBF0.mjs} +2 -2
- package/dist/{AccountListItem-JFMZROh7.mjs → AccountListItem-D6rWAreC.mjs} +8 -8
- package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-B5E98oM1.mjs} +100 -74
- package/dist/Accounts-UIlYCmHb.mjs +9 -0
- package/dist/{BeatApi-DhJpgCLz.mjs → BeatApi-De2IaqH2.mjs} +1 -1
- package/dist/{BeatStore-IBnXd4YK.mjs → BeatStore-D_NYuBSz.mjs} +1 -1
- package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-CXvenbdN.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-Buy70Y3V.mjs} +21 -19
- package/dist/CategoryStore-BEdFs69_.mjs +183 -0
- package/dist/CategoryUtil-BR3H5i6n.mjs +78 -0
- package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-CbxHKlRv.mjs} +10 -10
- package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-C6kanU7I.mjs} +4 -4
- package/dist/{CurrencyInput-DUsQbkXb.mjs → CurrencyInput-lSC7oPDg.mjs} +1 -1
- package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-DgIcphe_.mjs} +1 -1
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-DNSgmdyv.mjs} +3 -3
- package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
- package/dist/{FinstrongStore-F2c607dj.mjs → FinstrongStore-CL7t5lBL.mjs} +1 -1
- package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-CAlmSu4U.mjs} +112 -152
- package/dist/{Help-B6dIcujh.mjs → Help-hi9I9EYP.mjs} +1 -1
- package/dist/{LineChart-D4GI7nVh.mjs → LineChart-eK4IQImU.mjs} +2 -2
- package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-BmL5buOf.mjs} +1 -1
- package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-Cypo9qY4.mjs} +66 -65
- package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
- package/dist/{MicroWidgetContainer-DpeqN9n3.mjs → MicroWidgetContainer-CFdMGJKg.mjs} +1 -1
- package/dist/{MiniWidgetContainer-D0gfmbaF.mjs → MiniWidgetContainer-BdgBvpga.mjs} +1 -1
- package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-CxqIxAgN.mjs} +2 -2
- package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-DxytNHlN.mjs} +240 -237
- package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-CDX_kqHa.mjs} +7 -15
- package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-V6FEoIDe.mjs} +3 -3
- package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-iIupYxJW.mjs} +4 -4
- package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-ej39mgA6.mjs} +3 -3
- package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-BiwCzScZ.mjs} +26 -29
- package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-krIRNwHK.mjs} +3 -3
- package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
- package/dist/TransactionApi-CjBoLleL.mjs +86 -0
- package/dist/{TransactionDetails-oP1eSuiS.mjs → TransactionDetails-BUoNbsu-.mjs} +402 -367
- package/dist/TransactionStore-CtGTg0XS.mjs +677 -0
- package/dist/TrendsStore-5PvDT_o6.mjs +182 -0
- package/dist/{User-BQUxBeZV.mjs → User-Bj34_i8g.mjs} +1 -1
- package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-lihSDk2J.mjs} +517 -493
- package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-BnTgAfQn.mjs} +2 -2
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +4 -1
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +2 -1
- package/dist/accounts/index.es.js +241 -203
- package/dist/accounts/stores/AccountStore.d.ts +22 -25
- package/dist/accounts/utils/Accounts.d.ts +1 -2
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +500 -507
- package/dist/budgets/store/BudgetsStore.d.ts +0 -1
- package/dist/cashflow/index.es.js +384 -382
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +1 -5
- package/dist/categories/util/CategoryUtil.d.ts +2 -3
- package/dist/common/components/charts/index.d.ts +0 -2
- package/dist/common/index.es.js +391 -376
- package/dist/common/stores/AppDataStore.d.ts +1 -3
- package/dist/common/stores/GlobalCopyStore.d.ts +1 -0
- package/dist/common/stores/GlobalStore.d.ts +10 -4
- package/dist/common/stores/UserStore.d.ts +2 -3
- package/dist/common/types/Account.d.ts +6 -9
- package/dist/common/types/Global.d.ts +1 -0
- package/dist/dashboard/index.es.js +2 -2
- package/dist/debts/index.es.js +506 -498
- package/dist/exportTransactionsToCSV-C4PkIYP6.mjs +48 -0
- package/dist/finstrong/index.es.js +417 -415
- package/dist/goals/index.es.js +559 -557
- package/dist/goals/stores/GoalStore.d.ts +4 -17
- package/dist/help/index.es.js +3 -3
- package/dist/{hooks-D6XlXHf4.mjs → hooks-Cy8JnjCg.mjs} +2 -2
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/index.es.js +437 -435
- package/dist/investments/stores/HoldingStore.d.ts +0 -1
- package/dist/merchants/index.es.js +2 -2
- package/dist/microinsights/carousel/BeatList.d.ts +10 -0
- package/dist/microinsights/carousel/CarouselControls.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/microinsights/interfaces.d.ts +0 -1
- package/dist/networth/index.es.js +176 -174
- package/dist/notifications/index.es.js +23 -23
- package/dist/notifications/stores/NotificationStore.d.ts +1 -3
- package/dist/recurringtransactions/index.es.js +175 -173
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -3
- package/dist/settings/index.es.js +285 -279
- package/dist/spending/index.es.js +328 -304
- package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
- package/dist/transactions/index.es.js +63 -64
- package/dist/transactions/stores/TransactionStore.d.ts +77 -21
- package/dist/trends/index.es.js +948 -583
- package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-D6sQsNNQ.mjs} +2 -2
- package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-CRwX-qWE.mjs} +1 -1
- package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-BxytCjq5.mjs} +1 -1
- package/package.json +3 -3
- package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
- package/dist/Accounts-BRf_YeTf.mjs +0 -27
- package/dist/CategoryStore-yHI0hWmK.mjs +0 -174
- package/dist/CategoryUtil-pZRIYOgN.mjs +0 -80
- package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
- package/dist/TransactionStore-ai3uII_r.mjs +0 -690
- package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
- package/dist/exportTransactionsToCSV-7bVS7KXf.mjs +0 -47
- package/dist/useAriaLive-B3_pRUio.mjs +0 -35
|
@@ -10,29 +10,30 @@ import ie from "@mui/material/ListItem";
|
|
|
10
10
|
import se from "@mui/material/ListItemAvatar";
|
|
11
11
|
import ce from "@mui/material/ListItemButton";
|
|
12
12
|
import le from "@mui/material/ListItemText";
|
|
13
|
-
import { F as d, S as N, D as Y, g as Q, R as E, e as de } from "./RecurringTransactions-
|
|
13
|
+
import { F as d, S as N, D as Y, g as Q, R as E, e as de } from "./RecurringTransactions-ej39mgA6.mjs";
|
|
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-BUoNbsu-.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-Cy8JnjCg.mjs";
|
|
27
|
+
import { b as Ee, f as J } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
27
28
|
import { D as O } from "./Drawer-kEE73B87.mjs";
|
|
28
|
-
import { A as R } from "./WidgetContainer-
|
|
29
|
-
import { f as
|
|
30
|
-
import { formatISO as
|
|
31
|
-
import { fromUnixTime as
|
|
32
|
-
import { S as
|
|
33
|
-
import { h as
|
|
29
|
+
import { A as R } from "./WidgetContainer-BnTgAfQn.mjs";
|
|
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
|
-
import { T as V } from "./User-
|
|
36
|
+
import { T as V } from "./User-Bj34_i8g.mjs";
|
|
36
37
|
const ee = ({
|
|
37
38
|
frequency: n,
|
|
38
39
|
firstDay: t,
|
|
@@ -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
|
};
|
|
@@ -6,7 +6,7 @@ import b from "@mui/material/CardHeader";
|
|
|
6
6
|
import { P as u, H3 as v } from "@mxenabled/mxui";
|
|
7
7
|
import { ChevronRight as W } from "@mxenabled/mx-icons";
|
|
8
8
|
import { u as M } from "./useDimensions-27p2evRx.mjs";
|
|
9
|
-
import { W as w } from "./hooks-
|
|
9
|
+
import { W as w } from "./hooks-Cy8JnjCg.mjs";
|
|
10
10
|
const H = ({
|
|
11
11
|
children: e,
|
|
12
12
|
className: o,
|
|
@@ -8,7 +8,7 @@ import W from "@mui/material/IconButton";
|
|
|
8
8
|
import { Icon as z, ChevronRight as H } from "@mxenabled/mx-icons";
|
|
9
9
|
import { H3 as I, Text as B, P as M } from "@mxenabled/mxui";
|
|
10
10
|
import { u as S } from "./useDimensions-27p2evRx.mjs";
|
|
11
|
-
import { W as j } from "./hooks-
|
|
11
|
+
import { W as j } from "./hooks-Cy8JnjCg.mjs";
|
|
12
12
|
const w = ({
|
|
13
13
|
children: a,
|
|
14
14
|
className: m = "mx-cmn-mini-widget",
|
|
@@ -3,8 +3,8 @@ import { format as A } from "date-fns/format";
|
|
|
3
3
|
import { fromUnixTime as W } from "date-fns/fromUnixTime";
|
|
4
4
|
import { startOfMonth as _ } from "date-fns/startOfMonth";
|
|
5
5
|
import { subMonths as B } from "date-fns/subMonths";
|
|
6
|
-
import { a as b } from "./Accounts-
|
|
7
|
-
import {
|
|
6
|
+
import { a as b } from "./Accounts-UIlYCmHb.mjs";
|
|
7
|
+
import { e as N, a as M, f as v } from "./ConnectDrawer-CbxHKlRv.mjs";
|
|
8
8
|
const f = 13, L = (n, t) => n.filter((e) => {
|
|
9
9
|
const { is_closed: r, is_deleted: s, is_hidden: a, is_manual: i } = e;
|
|
10
10
|
return r || s || a ? !1 : i || !e.guid ? !0 : t.some((l) => n.some((g) => l.guid === g.member_guid));
|