@mx-cartographer/experiences 8.2.3 → 8.2.4-alpha-ram1-bug-testing
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 +16 -0
- package/dist/{AccountDetailsHeader-CfdnKyJK.mjs → AccountDetailsHeader-DIysk_4w.mjs} +1 -1
- package/dist/{AccountFields-CAy0x_4i.mjs → AccountFields-mwJ8NXsX.mjs} +18 -18
- package/dist/{AccountListItem-BYyeeCf6.mjs → AccountListItem-BDXHs4tV.mjs} +7 -8
- package/dist/{CategorySelectorDrawer-Cu1ohxeM.mjs → CategorySelectorDrawer-CmaDLhnf.mjs} +71 -68
- package/dist/{ConnectCard-Dix8BoV_.mjs → ConnectCard-CCep7Zqe.mjs} +9 -9
- package/dist/{ConnectDrawer-DgfsTpyW.mjs → ConnectDrawer-Cnjr3Ddg.mjs} +2 -2
- package/dist/{ConnectionsDrawer-D7IXAza2.mjs → ConnectionsDrawer-CtfPXk0M.mjs} +1 -1
- package/dist/{CurrencyDialog-d4dL7vA5.mjs → CurrencyDialog-DumQCTPO.mjs} +18 -16
- package/dist/{CurrencyInput-B59ugxPN.mjs → CurrencyInput-adTIRtL3.mjs} +28 -26
- package/dist/{Dialog-iLlBR8TG.mjs → Dialog-CwWc0AbH.mjs} +11 -11
- package/dist/{Drawer-XPaLYjiO.mjs → Drawer-BXqqBMxg.mjs} +26 -28
- package/dist/{EmbeddedCard-BNl3quCs.mjs → EmbeddedCard-DPwJjqMH.mjs} +37 -37
- package/dist/{EmptyState-DHAkGsjk.mjs → EmptyState-CJUDc3kD.mjs} +17 -17
- package/dist/{ExportCsvAction-hDprC41l.mjs → ExportCsvAction-Bw02ZJEj.mjs} +2 -2
- package/dist/{GlobalAccountFilter-DrhtwPqh.mjs → GlobalAccountFilter-7Cg2-9A5.mjs} +25 -25
- package/dist/{Help-BSQm9o29.mjs → Help-DJ8PrVHX.mjs} +56 -73
- package/dist/{ListItemAction-DGjHxNDJ.mjs → ListItemAction-CwspSmQi.mjs} +22 -22
- package/dist/{ManageIncome-DwylSiWs.mjs → ManageIncome-B1JfqslT.mjs} +6 -6
- package/dist/{NotificationSettings-CCg-Tml2.mjs → NotificationSettings-6p-h5phZ.mjs} +48 -48
- package/dist/{OriginalBalanceAction-CvDx0K6k.mjs → OriginalBalanceAction-CkJPnp2c.mjs} +2 -2
- package/dist/{RecurringSettings-CPXLW6AR.mjs → RecurringSettings-cm6MK_aS.mjs} +1 -1
- package/dist/{ResponsiveButton-BNsV08Ud.mjs → ResponsiveButton-CC9F_Ezk.mjs} +1 -1
- package/dist/SearchBox-Cpgu_gdO.mjs +50 -0
- package/dist/Select-BFt-HD-L.mjs +55 -0
- package/dist/{SelectionBox-Bx2a5rh4.mjs → SelectionBox-B4xELRgp.mjs} +1 -1
- package/dist/{SingleSegmentDonut-PsRQPkmV.mjs → SingleSegmentDonut-7Uy6VEld.mjs} +1 -1
- package/dist/{SpendingLegend-BmkEr9Nh.mjs → SpendingLegend-5Ct_FZ8o.mjs} +1 -1
- package/dist/{ToggleListItem-BLu_fWA2.mjs → ToggleListItem-Dl1lXNwj.mjs} +29 -28
- package/dist/{TransactionDetails-CbBSxdOi.mjs → TransactionDetails-C3dlAzYf.mjs} +386 -393
- package/dist/{ViewMoreMicroCard-D_LoKlJU.mjs → ViewMoreMicroCard-BD_MNc2z.mjs} +526 -518
- package/dist/{WidgetContainer-CYcmwsSu.mjs → WidgetContainer-DNuz_s7W.mjs} +5 -5
- package/dist/accounts/index.es.js +199 -194
- package/dist/analytics/index.es.js +1 -1
- package/dist/budgets/index.es.js +183 -184
- package/dist/cashflow/index.es.js +70 -80
- package/dist/categories/index.es.js +1 -1
- package/dist/common/components/ErrorBoundary.d.ts +1 -1
- package/dist/common/components/WidgetContainer.d.ts +1 -1
- package/dist/common/components/charts/stackedlinechart/CustomAreaTooltip.d.ts +1 -1
- package/dist/common/hooks/usePrevious.d.ts +1 -1
- package/dist/common/index.es.js +206 -194
- package/dist/common/utils/Theme.d.ts +6 -5
- package/dist/common/utils/index.d.ts +1 -1
- package/dist/dashboard/index.es.js +47 -47
- package/dist/debts/index.es.js +140 -140
- package/dist/finstrong/index.es.js +40 -32
- package/dist/finstrong/util/finstrongUtils.d.ts +1 -1
- package/dist/goals/index.es.js +154 -165
- package/dist/help/index.es.js +2 -2
- package/dist/insights/components/insights/UserFeedback/Types.d.ts +1 -1
- package/dist/insights/components/shared/DirectDeposit/DirectDepositSubHeader.d.ts +3 -3
- package/dist/insights/hooks/useContainerDimensions.d.ts +1 -1
- package/dist/insights/index.es.js +677 -687
- package/dist/insights/themes/Typography.d.ts +0 -2
- package/dist/investments/index.es.js +205 -207
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/cards/InsightCard.d.ts +2 -2
- package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +3 -5
- package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +3 -5
- package/dist/microinsights/cards/ZeroStateCard.d.ts +3 -5
- package/dist/microinsights/carousel/BeatList.d.ts +2 -2
- package/dist/microinsights/carousel/MicroBeatCarousel.d.ts +12 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/microinsights/interfaces.d.ts +11 -5
- package/dist/networth/index.es.js +85 -87
- package/dist/notifications/index.es.js +7 -8
- package/dist/recurringtransactions/index.es.js +53 -53
- package/dist/settings/index.es.js +111 -111
- package/dist/spending/index.es.js +7 -7
- package/dist/transactions/components/shared/TransactionList.d.ts +2 -2
- package/dist/transactions/index.es.js +138 -140
- package/dist/trends/index.es.js +293 -292
- package/dist/{useScreenSize-CeFhWTt_.mjs → useScreenSize-mWpmnh5w.mjs} +1 -1
- package/package.json +29 -23
- package/dist/SearchBox-CwDgvWVJ.mjs +0 -48
- package/dist/Select-BZRUpOib.mjs +0 -51
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { B as
|
|
3
|
-
import { u as B, T as
|
|
4
|
-
import { a as
|
|
5
|
-
import { E as
|
|
1
|
+
import { C as Be, D as He, M as Pe, a as We, T as $e } from "../TransactionDetails-C3dlAzYf.mjs";
|
|
2
|
+
import { B as xa, b as Aa } from "../TransactionDetails-C3dlAzYf.mjs";
|
|
3
|
+
import { u as B, T as Ge } from "../EmbeddedCard-DPwJjqMH.mjs";
|
|
4
|
+
import { a as Sa } from "../EmbeddedCard-DPwJjqMH.mjs";
|
|
5
|
+
import { E as va } from "../ExportCsvAction-Bw02ZJEj.mjs";
|
|
6
6
|
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
7
7
|
import u from "react";
|
|
8
8
|
import { observer as D } from "mobx-react-lite";
|
|
9
|
-
import
|
|
10
|
-
import { DataGridPro as
|
|
11
|
-
import { h as H, u as v, g as ne, b as K, d as oe, l as
|
|
9
|
+
import Ve from "@mui/material/Paper";
|
|
10
|
+
import { DataGridPro as Fe } from "@mui/x-data-grid-pro";
|
|
11
|
+
import { h as H, u as v, g as ne, b as K, d as oe, l as Ue, a as Ke, C as ze } from "../hooks-BaO_gOI6.mjs";
|
|
12
12
|
import { L as z } from "../Loader-CxeBwuPG.mjs";
|
|
13
|
-
import { Text as y, Icon as R, MerchantLogo as
|
|
13
|
+
import { Text as y, Icon as R, MerchantLogo as qe, TextField as Z, P as Ye } from "@mxenabled/mxui";
|
|
14
14
|
import w from "@mui/material/Stack";
|
|
15
15
|
import { f as re } from "../NumberFormatting--XMeeBfr.mjs";
|
|
16
|
-
import { T as k, e as
|
|
16
|
+
import { T as k, e as je, D as Xe } from "../TransactionUtils-BphBJBbU.mjs";
|
|
17
17
|
import S from "@mui/material/Box";
|
|
18
|
-
import { useTheme as
|
|
18
|
+
import { useTheme as ie } from "@mui/material/styles";
|
|
19
19
|
import { fromUnixTime as Je } from "date-fns/fromUnixTime";
|
|
20
20
|
import { f as Qe, D as Ze } from "../DateFormats-HudZ3Bjs.mjs";
|
|
21
21
|
import { A } from "../Analytics-CzGzz_sE.mjs";
|
|
@@ -23,28 +23,27 @@ import { endOfMonth as et } from "date-fns/endOfMonth";
|
|
|
23
23
|
import { getUnixTime as tt } from "date-fns/getUnixTime";
|
|
24
24
|
import { startOfMonth as at } from "date-fns/startOfMonth";
|
|
25
25
|
import { startOfToday as F } from "date-fns/startOfToday";
|
|
26
|
-
import nt from "@mui/material/styles/useTheme";
|
|
27
26
|
import { b as U } from "../Localization-DnoVyBNK.mjs";
|
|
28
|
-
import { C as
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import { ExpandMore as
|
|
33
|
-
import { C as
|
|
34
|
-
import { S as ee } from "../SelectionBox-
|
|
35
|
-
import { D as
|
|
36
|
-
import { b as
|
|
37
|
-
import { u as
|
|
38
|
-
import { S as
|
|
39
|
-
import { u as
|
|
40
|
-
import { u as
|
|
41
|
-
import { W as
|
|
42
|
-
import { S as
|
|
43
|
-
import { D as te } from "../Drawer-
|
|
44
|
-
const
|
|
27
|
+
import { C as nt } from "../ConnectDrawer-Cnjr3Ddg.mjs";
|
|
28
|
+
import ot from "@mui/material/Divider";
|
|
29
|
+
import rt from "@mui/material/MenuItem";
|
|
30
|
+
import it from "@mui/material/RadioGroup";
|
|
31
|
+
import { ExpandMore as st } from "@mxenabled/mx-icons";
|
|
32
|
+
import { C as ct } from "../CurrencyInput-adTIRtL3.mjs";
|
|
33
|
+
import { S as ee } from "../SelectionBox-B4xELRgp.mjs";
|
|
34
|
+
import { D as se } from "../Dialog-CwWc0AbH.mjs";
|
|
35
|
+
import { b as lt, u as dt } from "../CategorySelectorDrawer-CmaDLhnf.mjs";
|
|
36
|
+
import { u as ut } from "../useAriaLive-MkYebyUR.mjs";
|
|
37
|
+
import { S as mt } from "../SkeletonLoader-BaNboJjD.mjs";
|
|
38
|
+
import { u as _t } from "../useScreenSize-mWpmnh5w.mjs";
|
|
39
|
+
import { u as pt } from "../useWidgetLoadTimer-CJb-RELP.mjs";
|
|
40
|
+
import { W as gt } from "../WidgetContainer-DNuz_s7W.mjs";
|
|
41
|
+
import { S as ht } from "../SearchBox-Cpgu_gdO.mjs";
|
|
42
|
+
import { D as te } from "../Drawer-BXqqBMxg.mjs";
|
|
43
|
+
const ft = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2", children: [
|
|
45
44
|
`${t.row.account}`,
|
|
46
45
|
t.row.number && ` | ${t.row.number}`
|
|
47
|
-
] }),
|
|
46
|
+
] }), Ct = (t) => {
|
|
48
47
|
const { associatedBeats: r } = H(), { showInsights: i } = B(), { amount: a, transaction_type: s } = t.row, c = r.find((p) => p.associated_transaction_guid === t.row.guid), l = s === k.CREDIT;
|
|
49
48
|
return /* @__PURE__ */ m(w, { alignItems: "flex-end", tabIndex: t.tabIndex, children: [
|
|
50
49
|
/* @__PURE__ */ m(y, { bold: l, color: l ? "success.main" : "text.primary", variant: "body2", children: [
|
|
@@ -53,7 +52,7 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
53
52
|
] }),
|
|
54
53
|
c && i && /* @__PURE__ */ e(y, { bold: !0, color: "primary.light", variant: "caption", children: c.short_title })
|
|
55
54
|
] });
|
|
56
|
-
},
|
|
55
|
+
}, yt = (t) => {
|
|
57
56
|
const { transactions: r } = v(), [i, a] = u.useState(!1);
|
|
58
57
|
return /* @__PURE__ */ m(
|
|
59
58
|
w,
|
|
@@ -72,8 +71,8 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
72
71
|
]
|
|
73
72
|
}
|
|
74
73
|
);
|
|
75
|
-
},
|
|
76
|
-
const r =
|
|
74
|
+
}, bt = D(yt), Tt = (t) => /* @__PURE__ */ e(y, { tabIndex: t.tabIndex, variant: "body2", children: Qe(Je(t.row.date), Ze.MONTH_DAY) }), xt = (t) => {
|
|
75
|
+
const r = ie(), i = r.palette.mode === "dark", { transactions: a } = v(), { is_flagged: s, is_hidden: c, has_been_viewed: l, parent_guid: p } = t.row, f = !l && !!!p;
|
|
77
76
|
return /* @__PURE__ */ m(
|
|
78
77
|
S,
|
|
79
78
|
{
|
|
@@ -108,9 +107,9 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
108
107
|
]
|
|
109
108
|
}
|
|
110
109
|
);
|
|
111
|
-
},
|
|
110
|
+
}, At = D(xt), E = (t) => /* @__PURE__ */ e(y, { fontWeight: 600, variant: "body2", children: t.colDef.headerName }), wt = (t) => /* @__PURE__ */ m(w, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
112
111
|
/* @__PURE__ */ e(
|
|
113
|
-
|
|
112
|
+
qe,
|
|
114
113
|
{
|
|
115
114
|
categoryGuid: t.row.top_level_category_guid || "",
|
|
116
115
|
merchantGuid: t.row.merchant_guid || ""
|
|
@@ -120,7 +119,7 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
120
119
|
/* @__PURE__ */ e(y, { tabIndex: t.tabIndex, variant: "body2", children: t.row.payee }),
|
|
121
120
|
t.row.is_hidden && /* @__PURE__ */ e(y, { variant: "caption", children: t.excludedText })
|
|
122
121
|
] })
|
|
123
|
-
] }),
|
|
122
|
+
] }), St = ({
|
|
124
123
|
height: t = "100dvh",
|
|
125
124
|
onCategoryClick: r,
|
|
126
125
|
onRowClick: i
|
|
@@ -146,7 +145,7 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
146
145
|
minWidth: 32,
|
|
147
146
|
width: 32,
|
|
148
147
|
sortable: !1,
|
|
149
|
-
renderCell: (o) => /* @__PURE__ */ e(
|
|
148
|
+
renderCell: (o) => /* @__PURE__ */ e(At, { ...o }),
|
|
150
149
|
renderHeader: () => /* @__PURE__ */ e("span", { "aria-label": s.transaction_status, role: "presentation" })
|
|
151
150
|
},
|
|
152
151
|
{
|
|
@@ -154,7 +153,7 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
154
153
|
headerName: s.date_title,
|
|
155
154
|
width: 103,
|
|
156
155
|
renderHeader: E,
|
|
157
|
-
renderCell: (o) => o.row.parent_guid ? null : /* @__PURE__ */ e(
|
|
156
|
+
renderCell: (o) => o.row.parent_guid ? null : /* @__PURE__ */ e(Tt, { ...o }),
|
|
158
157
|
sortingOrder: ["desc", "asc"]
|
|
159
158
|
},
|
|
160
159
|
{
|
|
@@ -163,7 +162,7 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
163
162
|
headerName: s.payee_title,
|
|
164
163
|
flex: 0.33,
|
|
165
164
|
renderHeader: E,
|
|
166
|
-
renderCell: (o) => /* @__PURE__ */ e(
|
|
165
|
+
renderCell: (o) => /* @__PURE__ */ e(wt, { ...o, excludedText: s.is_excluded }),
|
|
167
166
|
sortingOrder: ["asc", "desc"]
|
|
168
167
|
},
|
|
169
168
|
{
|
|
@@ -171,7 +170,7 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
171
170
|
headerName: s.category_title,
|
|
172
171
|
flex: 0.25,
|
|
173
172
|
renderHeader: E,
|
|
174
|
-
renderCell: (o) => /* @__PURE__ */ e(
|
|
173
|
+
renderCell: (o) => /* @__PURE__ */ e(bt, { ...o }),
|
|
175
174
|
sortingOrder: ["asc", "desc"]
|
|
176
175
|
},
|
|
177
176
|
{
|
|
@@ -179,7 +178,7 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
179
178
|
headerName: s.account_title,
|
|
180
179
|
flex: 0.33,
|
|
181
180
|
renderHeader: E,
|
|
182
|
-
renderCell: (o) => o.row.parent_guid ? null : /* @__PURE__ */ e(
|
|
181
|
+
renderCell: (o) => o.row.parent_guid ? null : /* @__PURE__ */ e(ft, { ...o }),
|
|
183
182
|
sortingOrder: ["asc", "desc"]
|
|
184
183
|
},
|
|
185
184
|
{
|
|
@@ -187,14 +186,14 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
187
186
|
headerName: s.amount_title,
|
|
188
187
|
flex: 0.25,
|
|
189
188
|
renderHeader: E,
|
|
190
|
-
renderCell:
|
|
189
|
+
renderCell: Ct,
|
|
191
190
|
align: "right",
|
|
192
191
|
headerAlign: "right",
|
|
193
192
|
sortingOrder: ["asc", "desc"]
|
|
194
193
|
}
|
|
195
194
|
];
|
|
196
|
-
return /* @__PURE__ */ e(
|
|
197
|
-
|
|
195
|
+
return /* @__PURE__ */ e(Ve, { sx: { height: t, px: 24, width: "100%", boxShadow: "none" }, children: /* @__PURE__ */ e(
|
|
196
|
+
Fe,
|
|
198
197
|
{
|
|
199
198
|
columns: g,
|
|
200
199
|
disableColumnFilter: !0,
|
|
@@ -218,7 +217,7 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
218
217
|
}
|
|
219
218
|
}
|
|
220
219
|
) });
|
|
221
|
-
},
|
|
220
|
+
}, Dt = D(St), vt = () => {
|
|
222
221
|
const { visibleAccounts: t } = oe(), { common: r, transactions: i } = v(), { manualTransaction: a, setIsAmountValid: s, updateManualTransaction: c } = B(), [l, p] = u.useState(""), [b, f] = u.useState(""), C = u.useMemo(
|
|
223
222
|
() => t.filter((n) => n.is_manual),
|
|
224
223
|
[t]
|
|
@@ -248,15 +247,12 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
248
247
|
sx: { flexDirection: { xs: "column", sm: "row" }, gap: { xs: 40, sm: 8 } },
|
|
249
248
|
children: [
|
|
250
249
|
/* @__PURE__ */ e(
|
|
251
|
-
|
|
250
|
+
ct,
|
|
252
251
|
{
|
|
253
252
|
allowDecimals: !0,
|
|
254
253
|
amount: l,
|
|
255
254
|
ariaLabel: i.amount_title,
|
|
256
255
|
copy: h,
|
|
257
|
-
inputProps: {
|
|
258
|
-
noValidate: !0
|
|
259
|
-
},
|
|
260
256
|
label: i.amount_title,
|
|
261
257
|
setAmount: I,
|
|
262
258
|
setHasValidInput: s,
|
|
@@ -264,7 +260,7 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
264
260
|
type: "number"
|
|
265
261
|
}
|
|
266
262
|
),
|
|
267
|
-
/* @__PURE__ */ e(
|
|
263
|
+
/* @__PURE__ */ e(it, { name: "TransactionType", onChange: g, row: !0, children: /* @__PURE__ */ m(w, { alignItems: "center", direction: "row", children: [
|
|
268
264
|
/* @__PURE__ */ e(
|
|
269
265
|
ee,
|
|
270
266
|
{
|
|
@@ -301,29 +297,31 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
301
297
|
/* @__PURE__ */ e(
|
|
302
298
|
Z,
|
|
303
299
|
{
|
|
304
|
-
InputLabelProps: { shrink: !0 },
|
|
305
|
-
SelectProps: { defaultValue: -1, IconComponent: ct },
|
|
306
300
|
label: i.manual_transaction_select_an_account,
|
|
307
301
|
onChange: (n) => _(n.target.value),
|
|
308
302
|
placeholder: i.manual_transaction_select,
|
|
309
303
|
select: !0,
|
|
304
|
+
slotProps: {
|
|
305
|
+
inputLabel: { shrink: !0 },
|
|
306
|
+
select: { defaultValue: -1, IconComponent: st }
|
|
307
|
+
},
|
|
310
308
|
sx: { bgcolor: "background.paper" },
|
|
311
|
-
children: C.map((n) => /* @__PURE__ */ e(
|
|
309
|
+
children: C.map((n) => /* @__PURE__ */ e(rt, { value: n.value, children: n.label }, n.value))
|
|
312
310
|
}
|
|
313
311
|
)
|
|
314
312
|
] }),
|
|
315
|
-
/* @__PURE__ */ e(
|
|
313
|
+
/* @__PURE__ */ e(ot, { light: !0 }),
|
|
316
314
|
/* @__PURE__ */ m(S, { bgcolor: "background.paper", children: [
|
|
317
|
-
/* @__PURE__ */ e(Re, { transaction: a }),
|
|
318
315
|
/* @__PURE__ */ e(Be, { transaction: a }),
|
|
319
316
|
/* @__PURE__ */ e(He, { transaction: a }),
|
|
320
|
-
/* @__PURE__ */ e(Pe, { transaction: a })
|
|
317
|
+
/* @__PURE__ */ e(Pe, { transaction: a }),
|
|
318
|
+
/* @__PURE__ */ e(We, { transaction: a })
|
|
321
319
|
] })
|
|
322
320
|
] });
|
|
323
|
-
},
|
|
321
|
+
}, It = D(vt), Nt = ({ copy: t, isOpen: r, onClose: i, onPrimaryAction: a }) => {
|
|
324
322
|
const { common: s, transactions: c } = v(), { isCopyLoaded: l } = K();
|
|
325
323
|
return l ? /* @__PURE__ */ m(
|
|
326
|
-
|
|
324
|
+
se,
|
|
327
325
|
{
|
|
328
326
|
copy: {
|
|
329
327
|
title: t.title
|
|
@@ -339,8 +337,8 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
339
337
|
]
|
|
340
338
|
}
|
|
341
339
|
) : /* @__PURE__ */ e(z, {});
|
|
342
|
-
},
|
|
343
|
-
const { addOrUpdateTransactionRule: i, updateTransaction: a } = H(), { transactions: s } = v(), { categories: c } =
|
|
340
|
+
}, Et = D(Nt), kt = ({ onClose: t, transaction: r }) => {
|
|
341
|
+
const { addOrUpdateTransactionRule: i, updateTransaction: a } = H(), { transactions: s } = v(), { categories: c } = Ue(), [l, p] = u.useState(""), b = u.useMemo(
|
|
344
342
|
() => c.find((C) => C.guid === l),
|
|
345
343
|
[l]
|
|
346
344
|
), f = async (C) => {
|
|
@@ -348,7 +346,7 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
348
346
|
};
|
|
349
347
|
return /* @__PURE__ */ m(S, { className: "mx-txn-edit-category-action", children: [
|
|
350
348
|
/* @__PURE__ */ e(
|
|
351
|
-
|
|
349
|
+
lt,
|
|
352
350
|
{
|
|
353
351
|
initialSelected: r.category_guid,
|
|
354
352
|
onClose: t,
|
|
@@ -358,7 +356,7 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
358
356
|
}
|
|
359
357
|
),
|
|
360
358
|
/* @__PURE__ */ e(
|
|
361
|
-
|
|
359
|
+
se,
|
|
362
360
|
{
|
|
363
361
|
copy: {
|
|
364
362
|
title: U(
|
|
@@ -372,7 +370,7 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
372
370
|
onSecondaryAction: () => f(!1),
|
|
373
371
|
primaryText: s.actions_apply_to_all,
|
|
374
372
|
secondaryText: s.actions_this_time_only,
|
|
375
|
-
children: /* @__PURE__ */ e(
|
|
373
|
+
children: /* @__PURE__ */ e(Ye, { variant: "subtitle1", children: U(
|
|
376
374
|
s.actions_all_past_and_future,
|
|
377
375
|
r.description,
|
|
378
376
|
b?.name
|
|
@@ -380,112 +378,112 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
380
378
|
}
|
|
381
379
|
)
|
|
382
380
|
] });
|
|
383
|
-
},
|
|
381
|
+
}, Ot = D(kt), ae = 120, Lt = ({
|
|
384
382
|
onBackClick: t,
|
|
385
383
|
onMenuClick: r,
|
|
386
384
|
height: i = "100dvh",
|
|
387
385
|
showInsights: a = !1,
|
|
388
386
|
sx: s = {}
|
|
389
387
|
}) => {
|
|
390
|
-
const { manualAccounts: c, refreshAccounts: l } = oe(), { is_mobile_webview: p, clientConfig: b, config: f } =
|
|
391
|
-
addTransaction:
|
|
392
|
-
filter:
|
|
388
|
+
const { manualAccounts: c, refreshAccounts: l } = oe(), { is_mobile_webview: p, clientConfig: b, config: f } = Ke(), { setSearchValue: C } = dt(), { onEvent: h } = ne(), { common: I, transactions: g } = v(), { displayedDateRange: o, isInitialized: _, selectedAccountGuids: n, setDisplayedDate: N } = K(), { isDesktop: ce, isTablet: le } = _t(), O = ie(), {
|
|
389
|
+
addTransaction: de,
|
|
390
|
+
filter: ue,
|
|
393
391
|
isTransactionDataLoaded: P,
|
|
394
|
-
loadTransactionData:
|
|
392
|
+
loadTransactionData: me,
|
|
395
393
|
setFilter: q,
|
|
396
394
|
sortedTransactions: Y,
|
|
397
|
-
sortedTransactionsWithSplits:
|
|
398
|
-
tags:
|
|
399
|
-
detailedTransactions:
|
|
400
|
-
updateTransaction:
|
|
395
|
+
sortedTransactionsWithSplits: _e,
|
|
396
|
+
tags: pe,
|
|
397
|
+
detailedTransactions: ge,
|
|
398
|
+
updateTransaction: he
|
|
401
399
|
} = H(), {
|
|
402
|
-
clearExpandedSplits:
|
|
403
|
-
isAmountValid:
|
|
400
|
+
clearExpandedSplits: fe,
|
|
401
|
+
isAmountValid: Ce,
|
|
404
402
|
manualTransaction: L,
|
|
405
403
|
searchValue: j,
|
|
406
|
-
setSearchValue:
|
|
407
|
-
setShowInsights:
|
|
408
|
-
updateManualTransaction:
|
|
409
|
-
} = B(), { userProfile:
|
|
410
|
-
|
|
404
|
+
setSearchValue: ye,
|
|
405
|
+
setShowInsights: be,
|
|
406
|
+
updateManualTransaction: Te
|
|
407
|
+
} = B(), { userProfile: xe } = ze(), [W, T] = u.useState(""), [X, M] = u.useState(""), [Ae, $] = u.useState(!1), [we, J] = u.useState(!1), { announce: Se, ariaLive: De } = ut(), G = b?.transactions?.selected_account_guid;
|
|
408
|
+
pt({
|
|
411
409
|
widgetName: "TransactionWidget",
|
|
412
410
|
isLoaded: P
|
|
413
411
|
}), u.useEffect(() => {
|
|
414
|
-
P ||
|
|
415
|
-
const d = at(F()),
|
|
416
|
-
N(d,
|
|
412
|
+
P || me().finally();
|
|
413
|
+
const d = at(F()), Re = et(F());
|
|
414
|
+
N(d, Re), h(A.TRANSACTIONS_VIEW);
|
|
417
415
|
}, []), u.useEffect(() => {
|
|
418
416
|
_ && q({
|
|
419
|
-
accounts:
|
|
417
|
+
accounts: G ? [G] : n,
|
|
420
418
|
dateRange: { start: o.start, end: o.end },
|
|
421
419
|
searchTerm: j
|
|
422
420
|
});
|
|
423
421
|
}, [_, o, n]), u.useEffect(() => {
|
|
424
|
-
|
|
422
|
+
be(a);
|
|
425
423
|
}, [a]), u.useEffect(() => {
|
|
426
|
-
_ &&
|
|
424
|
+
_ && Se(
|
|
427
425
|
U(g.showing_transactions_count, Y.length)
|
|
428
426
|
);
|
|
429
427
|
}, [_, Y]);
|
|
430
|
-
const x = X ?
|
|
431
|
-
|
|
432
|
-
},
|
|
433
|
-
|
|
434
|
-
...
|
|
428
|
+
const x = X ? ge.find((d) => d.guid === X) : void 0, Q = Ce && !!L.payee && !!L.account_guid && !!L.category_guid, ve = (d) => {
|
|
429
|
+
fe(), N(d[0], d[1]);
|
|
430
|
+
}, Ie = (d) => {
|
|
431
|
+
ye(d), q({
|
|
432
|
+
...ue,
|
|
435
433
|
searchTerm: d
|
|
436
434
|
}), h(A.TRANSACTIONS_CLICK_SEARCH, { search_term: d });
|
|
437
|
-
}, Ie = () => {
|
|
438
|
-
Ye(me, _e), h(A.TRANSACTIONS_CLICK_EXPORT);
|
|
439
435
|
}, Ne = () => {
|
|
440
|
-
|
|
441
|
-
|
|
436
|
+
je(_e, pe), h(A.TRANSACTIONS_CLICK_EXPORT);
|
|
437
|
+
}, Ee = () => {
|
|
438
|
+
c.length > 0 ? (Te({
|
|
439
|
+
...Xe,
|
|
442
440
|
date: tt(F()),
|
|
443
|
-
user_guid:
|
|
441
|
+
user_guid: xe?.user_guid || ""
|
|
444
442
|
}), T(
|
|
445
443
|
"addTransaction"
|
|
446
444
|
/* AddTransaction */
|
|
447
|
-
), h(A.TRANSACTIONS_CLICK_ADD)) : (
|
|
448
|
-
},
|
|
449
|
-
Q && await
|
|
450
|
-
},
|
|
451
|
-
|
|
452
|
-
}, Oe = async () => {
|
|
453
|
-
J(!1), await l();
|
|
445
|
+
), h(A.TRANSACTIONS_CLICK_ADD)) : ($(!0), h(A.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
|
446
|
+
}, ke = async () => {
|
|
447
|
+
Q && await de(L), T("");
|
|
448
|
+
}, Oe = () => {
|
|
449
|
+
$(!1), J(!0);
|
|
454
450
|
}, Le = async () => {
|
|
455
|
-
|
|
451
|
+
J(!1), await l();
|
|
452
|
+
}, Me = async () => {
|
|
453
|
+
x && !x.has_been_viewed && await he({ ...x, has_been_viewed: !0 }), T("");
|
|
456
454
|
};
|
|
457
455
|
if (!_)
|
|
458
456
|
return /* @__PURE__ */ e(z, {});
|
|
459
|
-
const
|
|
460
|
-
return !p && (
|
|
457
|
+
const V = [];
|
|
458
|
+
return !p && (ce || le) && V.push({
|
|
461
459
|
iconName: "open_in_new",
|
|
462
460
|
label: g.export_csv_btn,
|
|
463
|
-
onClick:
|
|
464
|
-
}), f.show_connections_widget_in_master &&
|
|
461
|
+
onClick: Ne
|
|
462
|
+
}), f.show_connections_widget_in_master && V.push({
|
|
465
463
|
iconName: "add",
|
|
466
464
|
label: g.add_transaction_btn,
|
|
467
|
-
onClick:
|
|
465
|
+
onClick: Ee
|
|
468
466
|
}), /* @__PURE__ */ m(
|
|
469
|
-
|
|
467
|
+
gt,
|
|
470
468
|
{
|
|
471
|
-
actions:
|
|
469
|
+
actions: V,
|
|
472
470
|
calendarActions: {
|
|
473
|
-
onRangeChanged:
|
|
471
|
+
onRangeChanged: ve
|
|
474
472
|
},
|
|
475
473
|
hasDivider: !0,
|
|
476
474
|
onAccountsFilterClick: () => h(A.ACCOUNTS_CLICK_FILTER),
|
|
477
475
|
onBackClick: t,
|
|
478
476
|
onMenuClick: r,
|
|
479
|
-
showAccountFilter: !
|
|
477
|
+
showAccountFilter: !G,
|
|
480
478
|
sx: s,
|
|
481
479
|
title: g.transactions_title,
|
|
482
480
|
children: [
|
|
483
481
|
P ? /* @__PURE__ */ m(w, { children: [
|
|
484
|
-
|
|
482
|
+
De,
|
|
485
483
|
/* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(
|
|
486
|
-
|
|
484
|
+
ht,
|
|
487
485
|
{
|
|
488
|
-
onChange:
|
|
486
|
+
onChange: Ie,
|
|
489
487
|
placeholder: g.action_bar_search_placeholder,
|
|
490
488
|
searchValue: j
|
|
491
489
|
}
|
|
@@ -498,7 +496,7 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
498
496
|
[O.breakpoints.up("md")]: { display: "block" }
|
|
499
497
|
},
|
|
500
498
|
children: /* @__PURE__ */ e(
|
|
501
|
-
|
|
499
|
+
Dt,
|
|
502
500
|
{
|
|
503
501
|
height: `calc(${i} - ${ae}px)`,
|
|
504
502
|
onCategoryClick: (d) => {
|
|
@@ -525,7 +523,7 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
525
523
|
[O.breakpoints.up("md")]: { display: "none" }
|
|
526
524
|
},
|
|
527
525
|
children: /* @__PURE__ */ e(
|
|
528
|
-
|
|
526
|
+
Ge,
|
|
529
527
|
{
|
|
530
528
|
height: `calc(${i} - ${ae}px)`,
|
|
531
529
|
onClick: (d) => {
|
|
@@ -539,19 +537,19 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
539
537
|
)
|
|
540
538
|
}
|
|
541
539
|
)
|
|
542
|
-
] }) : /* @__PURE__ */ e(
|
|
540
|
+
] }) : /* @__PURE__ */ e(mt, { sx: { m: 48 }, variant: "list" }),
|
|
543
541
|
/* @__PURE__ */ e(
|
|
544
542
|
te,
|
|
545
543
|
{
|
|
546
544
|
ariaLabelClose: I.close_aria,
|
|
547
|
-
isOpen:
|
|
548
|
-
onClose:
|
|
545
|
+
isOpen: W === "transaction" && !!x,
|
|
546
|
+
onClose: Me,
|
|
549
547
|
title: g.details_title,
|
|
550
548
|
children: x && /* @__PURE__ */ e($e, { transaction: x })
|
|
551
549
|
}
|
|
552
550
|
),
|
|
553
|
-
x &&
|
|
554
|
-
|
|
551
|
+
x && W === "category" && /* @__PURE__ */ e(
|
|
552
|
+
Ot,
|
|
555
553
|
{
|
|
556
554
|
onClose: () => {
|
|
557
555
|
C(""), T(""), M("");
|
|
@@ -563,45 +561,45 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
563
561
|
te,
|
|
564
562
|
{
|
|
565
563
|
ariaLabelClose: I.close_aria,
|
|
566
|
-
isOpen:
|
|
564
|
+
isOpen: W === "addTransaction",
|
|
567
565
|
isPrimaryDisabled: !Q,
|
|
568
566
|
onClose: () => T(""),
|
|
569
|
-
onPrimaryAction:
|
|
567
|
+
onPrimaryAction: ke,
|
|
570
568
|
title: g.add_transaction_title,
|
|
571
|
-
children: /* @__PURE__ */ e(
|
|
569
|
+
children: /* @__PURE__ */ e(It, {})
|
|
572
570
|
}
|
|
573
571
|
),
|
|
574
572
|
/* @__PURE__ */ e(
|
|
575
|
-
|
|
573
|
+
Et,
|
|
576
574
|
{
|
|
577
575
|
copy: { title: g.add_manual_account },
|
|
578
|
-
isOpen:
|
|
576
|
+
isOpen: Ae,
|
|
579
577
|
onClose: () => {
|
|
580
|
-
|
|
578
|
+
$(!1);
|
|
581
579
|
},
|
|
582
|
-
onPrimaryAction:
|
|
580
|
+
onPrimaryAction: Oe
|
|
583
581
|
}
|
|
584
582
|
),
|
|
585
583
|
/* @__PURE__ */ e(
|
|
586
|
-
|
|
584
|
+
nt,
|
|
587
585
|
{
|
|
588
|
-
onClose:
|
|
589
|
-
showConnectWidget:
|
|
586
|
+
onClose: Le,
|
|
587
|
+
showConnectWidget: we,
|
|
590
588
|
title: g.add_manual_account
|
|
591
589
|
}
|
|
592
590
|
)
|
|
593
591
|
]
|
|
594
592
|
}
|
|
595
593
|
);
|
|
596
|
-
},
|
|
594
|
+
}, ya = D(Lt);
|
|
597
595
|
export {
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
596
|
+
xa as BottomActions,
|
|
597
|
+
va as ExportCsvAction,
|
|
598
|
+
Aa as TopActions,
|
|
601
599
|
$e as TransactionDetails,
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
600
|
+
Ge as TransactionList,
|
|
601
|
+
Sa as TransactionRow,
|
|
602
|
+
Dt as TransactionTable,
|
|
603
|
+
ya as TransactionWidget,
|
|
606
604
|
B as useTransactionsUiStore
|
|
607
605
|
};
|