@mx-cartographer/experiences 7.0.0-alpha.mega1 → 7.0.0
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 +17 -0
- package/dist/{Account-DY6nxO7y.mjs → Account-BFol-JYA.mjs} +1 -1
- package/dist/{AccountDetailsContent-DvPs81kL.mjs → AccountDetailsContent-Do3z1FnQ.mjs} +8 -8
- package/dist/{AccountDetailsHeader-W2U7ZVm_.mjs → AccountDetailsHeader-DnEyQMpX.mjs} +12 -12
- package/dist/{AccountFields-DAVcbZy5.mjs → AccountFields-CeHZrIQe.mjs} +2 -2
- package/dist/{AccountListItem-DFlbdcmT.mjs → AccountListItem-C7JzYpqf.mjs} +3 -3
- package/dist/{AccountStore-CU7qV3vg.mjs → AccountStore-Cu3GoLh-.mjs} +1 -1
- package/dist/{Accounts-BLlrQA5m.mjs → Accounts-BuYXUMhP.mjs} +1 -1
- package/dist/{BudgetUtil-Ci1TN0J5.mjs → BudgetUtil-spowPvBM.mjs} +2 -2
- package/dist/{Category-5S6uwuXz.mjs → Category-CevNQ03n.mjs} +4 -4
- package/dist/{CategorySelectorDrawer-rHyHHYuh.mjs → CategorySelectorDrawer-Dyzb3UDU.mjs} +1 -1
- package/dist/{CategoryStore-B5EW6I1d.mjs → CategoryStore-BOyzQjQp.mjs} +2 -2
- package/dist/{CategoryUtil-DRyruNgi.mjs → CategoryUtil-BR3H5i6n.mjs} +1 -1
- package/dist/{ConnectDrawer-D9cR5phc.mjs → ConnectDrawer-WfKHsHSF.mjs} +1 -1
- package/dist/{ConnectionsDrawer-BzGqljSp.mjs → ConnectionsDrawer-Czp-E0-m.mjs} +2 -2
- package/dist/{CurrencyInput-D74cemI2.mjs → CurrencyInput-CSZjO22Z.mjs} +1 -1
- package/dist/{DebtsStore-S0l9kr0r.mjs → DebtsStore-D9holN8L.mjs} +1 -1
- package/dist/ExportCsvAction-dpvaZxbS.mjs +24 -0
- package/dist/{GoalStore-DioeeL-s.mjs → GoalStore-Drf76ell.mjs} +4 -4
- package/dist/{Help-DpYRO8oA.mjs → Help-DRUwVDvo.mjs} +1 -1
- package/dist/{LineChart-CcyX38kK.mjs → LineChart-CYiUS-px.mjs} +88 -85
- package/dist/{ListItemAction-BabpYivr.mjs → ListItemAction-BzmbPuNp.mjs} +1 -1
- package/dist/{ManageIncome-ndMuhJMG.mjs → ManageIncome-B6kmMN_z.mjs} +178 -186
- package/dist/{MicroWidgetContainer-CsvHLYKX.mjs → MicroWidgetContainer-DmYiksbT.mjs} +1 -1
- package/dist/{MiniWidgetContainer-BoOp-A05.mjs → MiniWidgetContainer-DqKQNubH.mjs} +1 -1
- package/dist/{NetWorthStore-PD-RUe09.mjs → NetWorthStore-BK1_NbXW.mjs} +2 -2
- package/dist/{Notification-AMGWM1Al.mjs → Notification-ByMBpJ5u.mjs} +33 -22
- package/dist/{NotificationSettings-VhHuMAFU.mjs → NotificationSettings-BznqGVQ2.mjs} +35 -34
- package/dist/{OriginalBalanceAction-D39mx6uE.mjs → OriginalBalanceAction-CSu5brQE.mjs} +3 -3
- package/dist/RecurringSettings-Be1dzkMz.mjs +57 -0
- package/dist/ResponsiveButton-DZFp78fJ.mjs +45 -0
- package/dist/{SettingsStore-CE7jDVFL.mjs → SettingsStore-B4gi6oOw.mjs} +1 -1
- package/dist/{SpendingData-BkrxzHdr.mjs → SpendingData-D5vsfYKo.mjs} +5 -5
- package/dist/{Transaction-CA0FW2Ij.mjs → Transaction-CyqrHmAA.mjs} +1 -1
- package/dist/{TransactionDetails-WBHFmbxL.mjs → TransactionDetails-D4B9DSWo.mjs} +421 -417
- package/dist/{TransactionStore-CeLdmVnC.mjs → TransactionStore-DSyXtPek.mjs} +8 -8
- package/dist/TrendsStore-DR8etTL2.mjs +547 -0
- package/dist/{ViewMoreMicroCard-CAPFNz-J.mjs → ViewMoreMicroCard-BZI5VMNW.mjs} +476 -468
- package/dist/{WidgetContainer-DWCusxYI.mjs → WidgetContainer-BG-fdDOf.mjs} +110 -104
- package/dist/accounts/index.es.js +12 -12
- package/dist/analytics/index.es.js +8 -8
- package/dist/budgets/index.es.js +10 -10
- package/dist/cashflow/index.es.js +7 -7
- package/dist/categories/index.es.js +2 -2
- package/dist/common/components/WidgetContainer.d.ts +1 -1
- package/dist/common/components/charts/LineChart.d.ts +1 -0
- package/dist/common/components/index.d.ts +1 -0
- package/dist/common/components/listitems/ToggleButtonListItem.d.ts +2 -1
- package/dist/common/constants/Analytics.d.ts +16 -10
- package/dist/common/index.es.js +432 -469
- package/dist/dashboard/index.es.js +13 -13
- package/dist/debts/index.es.js +66 -66
- package/dist/{exportTransactionsToCSV-CmwsKl2D.mjs → exportTransactionsToCSV-BlVifaOG.mjs} +2 -2
- package/dist/finstrong/index.es.js +6 -6
- package/dist/goals/index.es.js +32 -32
- package/dist/help/index.es.js +3 -3
- package/dist/{hooks-30y_BLwc.mjs → hooks-02T565vf.mjs} +10 -10
- package/dist/investments/index.es.js +3 -3
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/components/carouselheader/CarouselHeader.d.ts +1 -0
- package/dist/microinsights/components/microBeatCarousel/MicroBeatCarousel.d.ts +1 -0
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +7 -7
- package/dist/notifications/index.es.js +9 -9
- package/dist/recurringtransactions/index.es.js +8 -8
- package/dist/settings/index.es.js +25 -25
- package/dist/spending/index.es.js +13 -13
- package/dist/transactions/components/shared/TransactionList.d.ts +2 -0
- package/dist/transactions/components/transactionwidget/actions/ExportCsvAction.d.ts +5 -1
- package/dist/transactions/index.d.ts +1 -0
- package/dist/transactions/index.es.js +143 -141
- package/dist/trends/constants/TrendsWidget.d.ts +3 -0
- package/dist/trends/index.es.js +576 -635
- package/package.json +1 -1
- package/dist/RecurringSettings-D_HnMYZP.mjs +0 -57
- package/dist/TrendsStore-BHJUapXF.mjs +0 -487
- package/dist/index.d.ts +0 -0
- package/dist/trends/components/TransactionsList.d.ts +0 -7
@@ -1,55 +1,56 @@
|
|
1
|
-
import { T as
|
2
|
-
import { u as H, C as
|
3
|
-
import { B as
|
4
|
-
import { T as E } from "../Transaction-
|
5
|
-
import { O as
|
6
|
-
import { S as Z, D as
|
7
|
-
import { T as
|
8
|
-
import { e as
|
1
|
+
import { T as pa } from "../TransactionApi-DbbcjI2L.mjs";
|
2
|
+
import { u as H, C as Me, D as ke, M as Le, c as Re, T as He, a as Be } from "../TransactionDetails-D4B9DSWo.mjs";
|
3
|
+
import { B as ha, d as fa, b as Ca } from "../TransactionDetails-D4B9DSWo.mjs";
|
4
|
+
import { T as E } from "../Transaction-CyqrHmAA.mjs";
|
5
|
+
import { O as ba } from "../Transaction-CyqrHmAA.mjs";
|
6
|
+
import { S as Z, D as Pe } from "../TransactionStore-DSyXtPek.mjs";
|
7
|
+
import { T as Aa } from "../TransactionStore-DSyXtPek.mjs";
|
8
|
+
import { e as $e } from "../exportTransactionsToCSV-BlVifaOG.mjs";
|
9
|
+
import { E as xa } from "../ExportCsvAction-dpvaZxbS.mjs";
|
9
10
|
import { jsxs as p, jsx as e } from "react/jsx-runtime";
|
10
11
|
import m from "react";
|
11
12
|
import { observer as S } from "mobx-react-lite";
|
12
|
-
import
|
13
|
-
import { DataGridPro as
|
13
|
+
import Ve from "@mui/material/Paper";
|
14
|
+
import { DataGridPro as We } from "@mui/x-data-grid-pro";
|
14
15
|
import A from "@mui/material/Box";
|
15
|
-
import { useTheme as
|
16
|
-
import { Text as
|
17
|
-
import {
|
18
|
-
import { fromUnixTime as
|
19
|
-
import { f as
|
16
|
+
import { useTheme as Ge } from "@mui/material/styles";
|
17
|
+
import { Text as f, Icon as R, MerchantLogo as Ue, TextField as ee, P as Fe } from "@mxenabled/mxui";
|
18
|
+
import { f as B, u as x, a as z, c as oe, l as ze, k as Ke, e as qe, o as je } from "../hooks-02T565vf.mjs";
|
19
|
+
import { fromUnixTime as Xe } from "date-fns/fromUnixTime";
|
20
|
+
import { f as Ye, D as Je, a as re } from "../Dialog-CWW597AF.mjs";
|
20
21
|
import N from "@mui/material/Stack";
|
21
22
|
import { f as se } from "../NumberFormatting-CtWHhyBX.mjs";
|
22
23
|
import { L as K } from "../Loader-Dp1P2gNw.mjs";
|
23
|
-
import { endOfMonth as
|
24
|
-
import { getUnixTime as
|
25
|
-
import { startOfMonth as
|
24
|
+
import { endOfMonth as Qe } from "date-fns/endOfMonth";
|
25
|
+
import { getUnixTime as Ze } from "date-fns/getUnixTime";
|
26
|
+
import { startOfMonth as et } from "date-fns/startOfMonth";
|
26
27
|
import { startOfToday as F } from "date-fns/startOfToday";
|
27
|
-
import
|
28
|
-
import { j as
|
29
|
-
import
|
30
|
-
import
|
31
|
-
import
|
32
|
-
import
|
33
|
-
import { C as
|
34
|
-
import { a as
|
28
|
+
import tt from "@mui/material/styles/useTheme";
|
29
|
+
import { j as at } from "../ConnectDrawer-WfKHsHSF.mjs";
|
30
|
+
import nt from "@mui/material/Divider";
|
31
|
+
import ot from "@mui/material/MenuItem";
|
32
|
+
import rt from "@mui/material/RadioGroup";
|
33
|
+
import st from "@mui/icons-material/ExpandMore";
|
34
|
+
import { C as it } from "../CurrencyInput-CSZjO22Z.mjs";
|
35
|
+
import { a as ct, u as lt } from "../CategorySelectorDrawer-Dyzb3UDU.mjs";
|
35
36
|
import { b as te } from "../Localization-2MODESHW.mjs";
|
36
|
-
import { A as T, W as
|
37
|
-
import { u as
|
38
|
-
import { S as
|
37
|
+
import { A as T, W as dt } from "../WidgetContainer-BG-fdDOf.mjs";
|
38
|
+
import { u as ut } from "../useScreenSize-B6JyS_Lj.mjs";
|
39
|
+
import { S as mt } from "../SearchBox-B2_zLv8-.mjs";
|
39
40
|
import { D as ae } from "../Drawer-kEE73B87.mjs";
|
40
|
-
const
|
41
|
+
const _t = (t) => /* @__PURE__ */ p(f, { tabIndex: t.tabIndex, variant: "Small", children: [
|
41
42
|
`${t.row.account}`,
|
42
43
|
t.row.number && ` | ${t.row.number}`
|
43
|
-
] }),
|
44
|
+
] }), pt = (t) => {
|
44
45
|
const { associatedBeats: r } = B(), { showInsights: n } = H(), { amount: a, transaction_type: s } = t.row, l = r.find((g) => g.associated_transaction_guid === t.row.guid), d = s === E.CREDIT;
|
45
46
|
return /* @__PURE__ */ p(N, { alignItems: "flex-end", tabIndex: t.tabIndex, children: [
|
46
|
-
/* @__PURE__ */ p(
|
47
|
+
/* @__PURE__ */ p(f, { color: d ? "success.main" : "text.primary", variant: "Small", children: [
|
47
48
|
d ? "+" : "",
|
48
49
|
se(a, "0,0.00")
|
49
50
|
] }),
|
50
|
-
l && n && /* @__PURE__ */ e(
|
51
|
+
l && n && /* @__PURE__ */ e(f, { bold: !0, color: "primary.light", variant: "XSmall", children: l.short_title })
|
51
52
|
] });
|
52
|
-
},
|
53
|
+
}, gt = (t) => {
|
53
54
|
const { transactions: r } = x(), [n, a] = m.useState(!1);
|
54
55
|
return /* @__PURE__ */ p(
|
55
56
|
N,
|
@@ -63,13 +64,13 @@ const mt = (t) => /* @__PURE__ */ p(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
63
64
|
width: "100%",
|
64
65
|
children: [
|
65
66
|
t.row.has_been_split && /* @__PURE__ */ e(R, { name: "call_split", size: 16 }),
|
66
|
-
/* @__PURE__ */ e(
|
67
|
+
/* @__PURE__ */ e(f, { tabIndex: t.tabIndex, variant: "Small", children: t.row.has_been_split ? r.split_transaction_category_label : t.row.category }),
|
67
68
|
!t.row.has_been_split && n && /* @__PURE__ */ e(R, { name: "edit", sx: { color: "action.active" } })
|
68
69
|
]
|
69
70
|
}
|
70
71
|
);
|
71
|
-
},
|
72
|
-
const r =
|
72
|
+
}, ht = S(gt), ft = (t) => /* @__PURE__ */ e(f, { tabIndex: t.tabIndex, variant: "Small", children: Ye(Xe(t.row.date), Je.MONTH_DAY) }), Ct = (t) => {
|
73
|
+
const r = Ge(), { transactions: n } = x(), { is_flagged: a, is_hidden: s, has_been_viewed: l, parent_guid: d } = t.row, _ = !l && !!!d;
|
73
74
|
return /* @__PURE__ */ p(
|
74
75
|
A,
|
75
76
|
{
|
@@ -96,16 +97,16 @@ const mt = (t) => /* @__PURE__ */ p(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
96
97
|
]
|
97
98
|
}
|
98
99
|
);
|
99
|
-
},
|
100
|
+
}, yt = S(Ct), O = (t) => /* @__PURE__ */ e(f, { fontWeight: 600, variant: "Small", children: t.colDef.headerName }), bt = (t) => /* @__PURE__ */ p(N, { alignItems: "center", direction: "row", gap: 8, children: [
|
100
101
|
/* @__PURE__ */ e(
|
101
|
-
|
102
|
+
Ue,
|
102
103
|
{
|
103
104
|
categoryGuid: t.row.top_level_category_guid || "",
|
104
105
|
merchantGuid: t.row.merchant_guid || ""
|
105
106
|
}
|
106
107
|
),
|
107
|
-
/* @__PURE__ */ e(
|
108
|
-
] }),
|
108
|
+
/* @__PURE__ */ e(f, { tabIndex: t.tabIndex, variant: "Small", children: t.row.payee })
|
109
|
+
] }), Tt = ({
|
109
110
|
height: t = "100dvh",
|
110
111
|
onCategoryClick: r,
|
111
112
|
onRowClick: n
|
@@ -122,14 +123,14 @@ const mt = (t) => /* @__PURE__ */ p(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
122
123
|
), u = ({ row: { id: i, guid: w, has_been_split: I }, field: v }) => I ? _(i) : v === "category" ? r?.(w) : n?.(w);
|
123
124
|
if (!s)
|
124
125
|
return /* @__PURE__ */ e(K, {});
|
125
|
-
const
|
126
|
+
const C = [
|
126
127
|
{
|
127
128
|
field: "flag",
|
128
129
|
headerName: "",
|
129
130
|
minWidth: 32,
|
130
131
|
width: 32,
|
131
132
|
sortable: !1,
|
132
|
-
renderCell: (i) => /* @__PURE__ */ e(
|
133
|
+
renderCell: (i) => /* @__PURE__ */ e(yt, { ...i }),
|
133
134
|
renderHeader: () => /* @__PURE__ */ e("span", { "aria-label": a.transaction_status, role: "presentation" })
|
134
135
|
},
|
135
136
|
{
|
@@ -137,7 +138,7 @@ const mt = (t) => /* @__PURE__ */ p(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
137
138
|
headerName: a.date_title,
|
138
139
|
width: 103,
|
139
140
|
renderHeader: O,
|
140
|
-
renderCell: (i) => i.row.parent_guid ? null : /* @__PURE__ */ e(
|
141
|
+
renderCell: (i) => i.row.parent_guid ? null : /* @__PURE__ */ e(ft, { ...i }),
|
141
142
|
sortingOrder: ["desc", "asc"]
|
142
143
|
},
|
143
144
|
{
|
@@ -146,7 +147,7 @@ const mt = (t) => /* @__PURE__ */ p(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
146
147
|
headerName: a.payee_title,
|
147
148
|
flex: 0.33,
|
148
149
|
renderHeader: O,
|
149
|
-
renderCell:
|
150
|
+
renderCell: bt,
|
150
151
|
sortingOrder: ["asc", "desc"]
|
151
152
|
},
|
152
153
|
{
|
@@ -154,7 +155,7 @@ const mt = (t) => /* @__PURE__ */ p(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
154
155
|
headerName: a.category_title,
|
155
156
|
flex: 0.25,
|
156
157
|
renderHeader: O,
|
157
|
-
renderCell: (i) => /* @__PURE__ */ e(
|
158
|
+
renderCell: (i) => /* @__PURE__ */ e(ht, { ...i }),
|
158
159
|
sortingOrder: ["asc", "desc"]
|
159
160
|
},
|
160
161
|
{
|
@@ -162,7 +163,7 @@ const mt = (t) => /* @__PURE__ */ p(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
162
163
|
headerName: a.account_title,
|
163
164
|
flex: 0.33,
|
164
165
|
renderHeader: O,
|
165
|
-
renderCell: (i) => i.row.parent_guid ? null : /* @__PURE__ */ e(
|
166
|
+
renderCell: (i) => i.row.parent_guid ? null : /* @__PURE__ */ e(_t, { ...i }),
|
166
167
|
sortingOrder: ["asc", "desc"]
|
167
168
|
},
|
168
169
|
{
|
@@ -170,16 +171,16 @@ const mt = (t) => /* @__PURE__ */ p(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
170
171
|
headerName: a.amount_title,
|
171
172
|
flex: 0.25,
|
172
173
|
renderHeader: O,
|
173
|
-
renderCell:
|
174
|
+
renderCell: pt,
|
174
175
|
align: "right",
|
175
176
|
headerAlign: "right",
|
176
177
|
sortingOrder: ["asc", "desc"]
|
177
178
|
}
|
178
179
|
];
|
179
|
-
return /* @__PURE__ */ e(
|
180
|
-
|
180
|
+
return /* @__PURE__ */ e(Ve, { sx: { height: t, px: 24, width: "100%", boxShadow: "none" }, children: /* @__PURE__ */ e(
|
181
|
+
We,
|
181
182
|
{
|
182
|
-
columns:
|
183
|
+
columns: C,
|
183
184
|
disableColumnFilter: !0,
|
184
185
|
disableColumnMenu: !0,
|
185
186
|
getCellClassName: (i) => i.row.parent_guid ? "split-row" : "",
|
@@ -196,7 +197,7 @@ const mt = (t) => /* @__PURE__ */ p(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
196
197
|
}
|
197
198
|
}
|
198
199
|
) });
|
199
|
-
},
|
200
|
+
}, At = S(Tt), St = ({ copy: t, isOpen: r, onClose: n, onPrimaryAction: a }) => {
|
200
201
|
const { common: s, transactions: l } = x(), { isCopyLoaded: d } = z();
|
201
202
|
return d ? /* @__PURE__ */ p(
|
202
203
|
re,
|
@@ -210,19 +211,19 @@ const mt = (t) => /* @__PURE__ */ p(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
210
211
|
primaryText: l.add_manual_account,
|
211
212
|
secondaryText: s.cancel_button,
|
212
213
|
children: [
|
213
|
-
/* @__PURE__ */ e(
|
214
|
-
/* @__PURE__ */ e(
|
214
|
+
/* @__PURE__ */ e(f, { component: "p", sx: { marginBottom: "20px" }, truncate: !1, children: l.add_account_modal_message }),
|
215
|
+
/* @__PURE__ */ e(f, { component: "p", truncate: !1, children: l.add_account_modal_cta })
|
215
216
|
]
|
216
217
|
}
|
217
218
|
) : /* @__PURE__ */ e(K, {});
|
218
|
-
},
|
219
|
+
}, xt = S(St), wt = () => {
|
219
220
|
const { visibleAccounts: t } = oe(), { common: r, transactions: n } = x(), { manualTransaction: a, setIsAmountValid: s, updateManualTransaction: l } = H(), [d, g] = m.useState(""), [_, h] = m.useState(""), u = m.useMemo(
|
220
221
|
() => t.filter((o) => o.is_manual),
|
221
222
|
[t]
|
222
223
|
).map((o) => ({
|
223
224
|
label: `${o.name} | ${se(o.balance, "0,0.00")}`,
|
224
225
|
value: o.guid
|
225
|
-
})),
|
226
|
+
})), C = {
|
226
227
|
error_amount_is_invalid: r.currency_input.error_amount_is_invalid,
|
227
228
|
error_amount_must_be_equal_to: r.currency_input.error_amount_must_be_equal_to,
|
228
229
|
error_amount_must_be_less_than_or_equal_to: r.currency_input.error_amount_must_be_less_than_or_equal_to,
|
@@ -245,12 +246,12 @@ const mt = (t) => /* @__PURE__ */ p(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
245
246
|
sx: { flexDirection: { xs: "column", sm: "row" }, gap: { xs: 40, sm: 8 } },
|
246
247
|
children: [
|
247
248
|
/* @__PURE__ */ e(
|
248
|
-
|
249
|
+
it,
|
249
250
|
{
|
250
251
|
allowDecimals: !0,
|
251
252
|
amount: d,
|
252
253
|
ariaLabel: n.amount_title,
|
253
|
-
copy:
|
254
|
+
copy: C,
|
254
255
|
inputProps: {
|
255
256
|
noValidate: !0
|
256
257
|
},
|
@@ -261,7 +262,7 @@ const mt = (t) => /* @__PURE__ */ p(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
261
262
|
type: "number"
|
262
263
|
}
|
263
264
|
),
|
264
|
-
/* @__PURE__ */ e(
|
265
|
+
/* @__PURE__ */ e(rt, { name: "TransactionType", onChange: w, row: !0, children: /* @__PURE__ */ p(N, { alignItems: "center", direction: "row", children: [
|
265
266
|
/* @__PURE__ */ e(
|
266
267
|
Z,
|
267
268
|
{
|
@@ -299,26 +300,26 @@ const mt = (t) => /* @__PURE__ */ p(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
299
300
|
ee,
|
300
301
|
{
|
301
302
|
InputLabelProps: { shrink: !0 },
|
302
|
-
SelectProps: { defaultValue: -1, IconComponent:
|
303
|
+
SelectProps: { defaultValue: -1, IconComponent: st },
|
303
304
|
label: n.manual_transaction_select_an_account,
|
304
305
|
onChange: (o) => v(o.target.value),
|
305
306
|
placeholder: n.manual_transaction_select,
|
306
307
|
select: !0,
|
307
308
|
sx: { bgcolor: "background.paper" },
|
308
|
-
children: u.map((o) => /* @__PURE__ */ e(
|
309
|
+
children: u.map((o) => /* @__PURE__ */ e(ot, { value: o.value, children: o.label }, o.value))
|
309
310
|
}
|
310
311
|
)
|
311
312
|
] }),
|
312
|
-
/* @__PURE__ */ e(
|
313
|
+
/* @__PURE__ */ e(nt, { light: !0 }),
|
313
314
|
/* @__PURE__ */ p(A, { bgcolor: "background.paper", children: [
|
314
|
-
/* @__PURE__ */ e(Ee, { transaction: a }),
|
315
315
|
/* @__PURE__ */ e(Me, { transaction: a }),
|
316
316
|
/* @__PURE__ */ e(ke, { transaction: a }),
|
317
|
-
/* @__PURE__ */ e(Le, { transaction: a })
|
317
|
+
/* @__PURE__ */ e(Le, { transaction: a }),
|
318
|
+
/* @__PURE__ */ e(Re, { transaction: a })
|
318
319
|
] })
|
319
320
|
] });
|
320
|
-
},
|
321
|
-
const { addOrUpdateTransactionRule: n, updateTransaction: a } = B(), { transactions: s } = x(), { categories: l } =
|
321
|
+
}, It = S(wt), vt = ({ onClose: t, transaction: r }) => {
|
322
|
+
const { addOrUpdateTransactionRule: n, updateTransaction: a } = B(), { transactions: s } = x(), { categories: l } = ze(), [d, g] = m.useState(""), _ = m.useMemo(
|
322
323
|
() => l.find((u) => u.guid === d),
|
323
324
|
[d]
|
324
325
|
), h = async (u) => {
|
@@ -326,7 +327,7 @@ const mt = (t) => /* @__PURE__ */ p(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
326
327
|
};
|
327
328
|
return /* @__PURE__ */ p(A, { className: "mx-txn-edit-category-action", children: [
|
328
329
|
/* @__PURE__ */ e(
|
329
|
-
|
330
|
+
ct,
|
330
331
|
{
|
331
332
|
initialSelected: r.category_guid,
|
332
333
|
onClose: t,
|
@@ -350,7 +351,7 @@ const mt = (t) => /* @__PURE__ */ p(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
350
351
|
onSecondaryAction: () => h(!1),
|
351
352
|
primaryText: s.actions_apply_to_all,
|
352
353
|
secondaryText: s.actions_this_time_only,
|
353
|
-
children: /* @__PURE__ */ e(
|
354
|
+
children: /* @__PURE__ */ e(Fe, { variant: "Paragraph", children: te(
|
354
355
|
s.actions_all_past_and_future,
|
355
356
|
r.description,
|
356
357
|
_?.name
|
@@ -358,100 +359,100 @@ const mt = (t) => /* @__PURE__ */ p(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
358
359
|
}
|
359
360
|
)
|
360
361
|
] });
|
361
|
-
},
|
362
|
+
}, Dt = S(vt), ne = 120, Nt = ({
|
362
363
|
onBackClick: t,
|
363
364
|
height: r = "100dvh",
|
364
365
|
showInsights: n = !1,
|
365
366
|
sx: a = {}
|
366
367
|
}) => {
|
367
|
-
const { visibleAccounts: s, refreshAccounts: l } = oe(), { is_mobile_webview: d } =
|
368
|
-
displayedDateRange:
|
368
|
+
const { visibleAccounts: s, refreshAccounts: l } = oe(), { is_mobile_webview: d } = Ke(), { setSearchValue: g } = lt(), { onEvent: _ } = qe(), { common: h, transactions: u } = x(), {
|
369
|
+
displayedDateRange: C,
|
369
370
|
isCopyLoaded: i,
|
370
371
|
isInitialized: w,
|
371
372
|
selectedAccountGuids: I,
|
372
373
|
setDisplayedDate: v,
|
373
374
|
setSelectedAccounts: o
|
374
|
-
} = z(), { isDesktop: P } =
|
375
|
-
addTransaction:
|
376
|
-
filter:
|
377
|
-
loadAssociatedBeats:
|
375
|
+
} = z(), { isDesktop: P, isTablet: ie } = ut(), M = tt(), {
|
376
|
+
addTransaction: ce,
|
377
|
+
filter: q,
|
378
|
+
loadAssociatedBeats: le,
|
378
379
|
setFilter: $,
|
379
|
-
sortedTransactionsWithSplits:
|
380
|
-
tags:
|
381
|
-
transactions:
|
382
|
-
updateTransaction:
|
380
|
+
sortedTransactionsWithSplits: de,
|
381
|
+
tags: ue,
|
382
|
+
transactions: me,
|
383
|
+
updateTransaction: _e
|
383
384
|
} = B(), {
|
384
385
|
manualTransaction: k,
|
385
|
-
isAmountValid:
|
386
|
-
searchValue:
|
387
|
-
setSearchValue:
|
388
|
-
setShowInsights:
|
386
|
+
isAmountValid: pe,
|
387
|
+
searchValue: ge,
|
388
|
+
setSearchValue: he,
|
389
|
+
setShowInsights: fe,
|
389
390
|
updateManualTransaction: Ce
|
390
|
-
} = H(), { userProfile:
|
391
|
+
} = H(), { userProfile: ye } = je(), [V, y] = m.useState(""), [j, L] = m.useState(""), [be, W] = m.useState(!1), [Te, X] = m.useState(!1), [G, Ae] = m.useState(!1);
|
391
392
|
m.useEffect(() => {
|
392
|
-
const c = s.filter((D) => !D.is_hidden), J =
|
393
|
+
const c = s.filter((D) => !D.is_hidden), J = et(F()), Q = Qe(F());
|
393
394
|
o(c), v(J, Q), $({
|
394
395
|
accounts: c.map((D) => D.guid),
|
395
396
|
custom: (D) => !D.accountIsClosed && !D.accountIsHidden,
|
396
397
|
dateRange: { start: J, end: Q }
|
397
|
-
}),
|
398
|
+
}), Ae(!0), _(T.TRANSACTIONS_VIEW);
|
398
399
|
}, [s]), m.useEffect(() => {
|
399
400
|
G && ($({
|
400
|
-
...
|
401
|
+
...q,
|
401
402
|
accounts: I,
|
402
|
-
dateRange: { start:
|
403
|
-
}),
|
404
|
-
}, [G,
|
405
|
-
|
403
|
+
dateRange: { start: C.start, end: C.end }
|
404
|
+
}), le(C.start).finally());
|
405
|
+
}, [G, C, I]), m.useEffect(() => {
|
406
|
+
fe(n);
|
406
407
|
}, [n]);
|
407
|
-
const
|
408
|
+
const Se = m.useMemo(
|
408
409
|
() => s.filter((c) => c.is_manual),
|
409
410
|
[s]
|
410
|
-
), b =
|
411
|
+
), b = j ? me.find((c) => c.guid === j) : void 0, Y = pe && !!k.payee && !!k.account_guid && !!k.category_guid, xe = (c) => {
|
411
412
|
v(c[0], c[1]);
|
412
|
-
},
|
413
|
-
|
414
|
-
...
|
413
|
+
}, we = (c) => {
|
414
|
+
he(c), $({
|
415
|
+
...q,
|
415
416
|
searchTerm: c
|
416
417
|
}), _(T.TRANSACTIONS_CLICK_SEARCH, { search_term: c });
|
417
|
-
}, we = () => {
|
418
|
-
Pe(le, de), _(T.TRANSACTIONS_CLICK_EXPORT);
|
419
418
|
}, Ie = () => {
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
419
|
+
$e(de, ue), _(T.TRANSACTIONS_CLICK_EXPORT);
|
420
|
+
}, ve = () => {
|
421
|
+
Se.length > 0 ? (Ce({
|
422
|
+
...Pe,
|
423
|
+
date: Ze(F()),
|
424
|
+
user_guid: ye?.user_guid || ""
|
424
425
|
}), y(
|
425
426
|
"addTransaction"
|
426
427
|
/* AddTransaction */
|
427
428
|
), _(T.TRANSACTIONS_CLICK_ADD)) : (W(!0), _(T.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
428
|
-
},
|
429
|
-
Y && await
|
430
|
-
},
|
429
|
+
}, De = async () => {
|
430
|
+
Y && await ce(k), y("");
|
431
|
+
}, Ne = () => {
|
431
432
|
W(!1), X(!0);
|
432
|
-
}, Ne = async () => {
|
433
|
-
X(!1), await l();
|
434
433
|
}, Oe = async () => {
|
435
|
-
|
434
|
+
X(!1), await l();
|
435
|
+
}, Ee = async () => {
|
436
|
+
b && !b.has_been_viewed && await _e({ ...b, has_been_viewed: !0 }), y("");
|
436
437
|
};
|
437
438
|
if (!i || !w || !G)
|
438
439
|
return /* @__PURE__ */ e(K, {});
|
439
440
|
const U = [];
|
440
|
-
return !d && P && U.push({
|
441
|
+
return !d && (P || ie) && U.push({
|
441
442
|
iconName: "open_in_new",
|
442
443
|
label: u.export_csv_btn,
|
443
|
-
onClick:
|
444
|
+
onClick: Ie
|
444
445
|
}), U.push({
|
445
446
|
iconName: "add",
|
446
447
|
label: u.add_transaction_btn,
|
447
|
-
onClick:
|
448
|
+
onClick: ve
|
448
449
|
}), /* @__PURE__ */ p(
|
449
|
-
|
450
|
+
dt,
|
450
451
|
{
|
451
452
|
accountOptions: s,
|
452
453
|
actions: U,
|
453
454
|
calendarActions: {
|
454
|
-
onRangeChanged:
|
455
|
+
onRangeChanged: xe
|
455
456
|
},
|
456
457
|
onAccountsFilterClick: () => _(T.ACCOUNTS_CLICK_FILTER),
|
457
458
|
onBackClick: t,
|
@@ -459,11 +460,11 @@ const mt = (t) => /* @__PURE__ */ p(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
459
460
|
title: u.transactions_title,
|
460
461
|
children: [
|
461
462
|
/* @__PURE__ */ e(A, { mt: 16, children: /* @__PURE__ */ e(
|
462
|
-
|
463
|
+
mt,
|
463
464
|
{
|
464
|
-
onChange:
|
465
|
+
onChange: we,
|
465
466
|
placeholder: u.action_bar_search_placeholder,
|
466
|
-
searchValue:
|
467
|
+
searchValue: ge
|
467
468
|
}
|
468
469
|
) }),
|
469
470
|
/* @__PURE__ */ e(
|
@@ -474,7 +475,7 @@ const mt = (t) => /* @__PURE__ */ p(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
474
475
|
[M.breakpoints.up("md")]: { display: "block" }
|
475
476
|
},
|
476
477
|
children: /* @__PURE__ */ e(
|
477
|
-
|
478
|
+
At,
|
478
479
|
{
|
479
480
|
height: `calc(${r} - ${ne}px)`,
|
480
481
|
onCategoryClick: (c) => {
|
@@ -501,7 +502,7 @@ const mt = (t) => /* @__PURE__ */ p(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
501
502
|
[M.breakpoints.up("md")]: { display: "none" }
|
502
503
|
},
|
503
504
|
children: /* @__PURE__ */ e(
|
504
|
-
|
505
|
+
He,
|
505
506
|
{
|
506
507
|
height: `calc(${r} - ${ne}px)`,
|
507
508
|
onClick: (c) => {
|
@@ -521,13 +522,13 @@ const mt = (t) => /* @__PURE__ */ p(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
521
522
|
{
|
522
523
|
ariaLabelClose: h.close_aria,
|
523
524
|
isOpen: V === "transaction" && !!b,
|
524
|
-
onClose:
|
525
|
+
onClose: Ee,
|
525
526
|
title: u.details_title,
|
526
|
-
children: b && /* @__PURE__ */ e(
|
527
|
+
children: b && /* @__PURE__ */ e(Be, { transaction: b })
|
527
528
|
}
|
528
529
|
),
|
529
530
|
b && V === "category" && /* @__PURE__ */ e(
|
530
|
-
|
531
|
+
Dt,
|
531
532
|
{
|
532
533
|
onClose: () => {
|
533
534
|
g(""), y(""), L("");
|
@@ -542,46 +543,47 @@ const mt = (t) => /* @__PURE__ */ p(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
542
543
|
isOpen: V === "addTransaction",
|
543
544
|
isPrimaryDisabled: !Y,
|
544
545
|
onClose: () => y(""),
|
545
|
-
onPrimaryAction:
|
546
|
+
onPrimaryAction: De,
|
546
547
|
title: u.add_transaction_title,
|
547
|
-
children: /* @__PURE__ */ e(
|
548
|
+
children: /* @__PURE__ */ e(It, {})
|
548
549
|
}
|
549
550
|
),
|
550
551
|
/* @__PURE__ */ e(
|
551
|
-
|
552
|
+
xt,
|
552
553
|
{
|
553
554
|
copy: { title: u.add_manual_account },
|
554
|
-
isOpen:
|
555
|
+
isOpen: be,
|
555
556
|
onClose: () => {
|
556
557
|
W(!1);
|
557
558
|
},
|
558
|
-
onPrimaryAction:
|
559
|
+
onPrimaryAction: Ne
|
559
560
|
}
|
560
561
|
),
|
561
562
|
/* @__PURE__ */ e(
|
562
|
-
|
563
|
+
at,
|
563
564
|
{
|
564
|
-
onClose:
|
565
|
-
showConnectWidget:
|
565
|
+
onClose: Oe,
|
566
|
+
showConnectWidget: Te,
|
566
567
|
title: u.add_manual_account
|
567
568
|
}
|
568
569
|
)
|
569
570
|
]
|
570
571
|
}
|
571
572
|
);
|
572
|
-
},
|
573
|
+
}, ua = S(Nt);
|
573
574
|
export {
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
575
|
+
xt as AddAccountModal,
|
576
|
+
ha as BottomActions,
|
577
|
+
xa as ExportCsvAction,
|
578
|
+
ba as TRANSACTION_EVENTS,
|
579
|
+
fa as TopActions,
|
580
|
+
pa as TransactionApi,
|
581
|
+
Be as TransactionDetails,
|
582
|
+
He as TransactionList,
|
581
583
|
Ca as TransactionRow,
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
584
|
+
Aa as TransactionStore,
|
585
|
+
At as TransactionTable,
|
586
|
+
ua as TransactionWidget,
|
587
|
+
$e as exportTransactionsToCSV,
|
586
588
|
H as useTransactionsUiStore
|
587
589
|
};
|