@mx-cartographer/experiences 3.10.1-alpha.mm10 → 3.10.1-alpha.mm12
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +296 -288
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -3,7 +3,7 @@ import g, { useMemo as Oi, useRef as na, useEffect as se, useState as ae, create
|
|
3
3
|
import { observer as I } from "mobx-react-lite";
|
4
4
|
import O from "@mui/material/Box";
|
5
5
|
import Q from "@mui/material/Divider";
|
6
|
-
import
|
6
|
+
import cA from "@mui/material/List";
|
7
7
|
import je from "@mui/material/ListSubheader";
|
8
8
|
import rr from "@mui/system/Stack";
|
9
9
|
import { AccountsIcon as Ni, P as vA, Icon as P, useTokens as LA, Text as y, H2 as kt, CategoryIcon as Ie, DialogHeader as Mi, DialogFooter as Ri, Drawer as Hi, Footer as zi, DateRangePicker as ar, H3 as ra, H1 as fe, TextField as Te, IconWeight as qA, MerchantLogo as be, CategoryIconVariants as aa, InstitutionLogo as ve, THEMES as ir, createMXTheme as ht } from "@kyper/mui";
|
@@ -24,7 +24,7 @@ import w from "@mui/material/Stack";
|
|
24
24
|
import Dt from "@mui/material/Checkbox";
|
25
25
|
import pA from "@mui/material/styles/useTheme";
|
26
26
|
import wt from "@mui/material/useMediaQuery";
|
27
|
-
import { css as
|
27
|
+
import { css as _A, keyframes as _i } from "@mxenabled/cssinjs";
|
28
28
|
import { addDays as ce } from "date-fns/addDays";
|
29
29
|
import { addMonths as WA } from "date-fns/addMonths";
|
30
30
|
import { eachDayOfInterval as ki } from "date-fns/eachDayOfInterval";
|
@@ -291,7 +291,7 @@ const R = {
|
|
291
291
|
TRANSACTIONS: "transactions",
|
292
292
|
USER_PROFILES: "user_profiles",
|
293
293
|
WIDGET_URLS: "widget_urls"
|
294
|
-
},
|
294
|
+
}, j = {
|
295
295
|
ACCOUNTS_CLICK_SYNC: "accounts_widget_click_sync",
|
296
296
|
ACCOUNTS_CLICK_CONNECT: "accounts_widget_click_connect_accounts",
|
297
297
|
ACCOUNTS_CLICK_FILTER: "accounts_widget_click_filter_accounts",
|
@@ -819,7 +819,7 @@ const F8 = {
|
|
819
819
|
[p.UNCATEGORIZED]: "category",
|
820
820
|
UNKNOWN: "help"
|
821
821
|
}, vr = 9999999999e-2;
|
822
|
-
var Pt = /* @__PURE__ */ ((A) => (A.CAD = "CAD", A.USD = "USD", A))(Pt || {}),
|
822
|
+
var Pt = /* @__PURE__ */ ((A) => (A.CAD = "CAD", A.USD = "USD", A))(Pt || {}), q = /* @__PURE__ */ ((A) => (A[A.Unknown = 0] = "Unknown", A[A.EveryWeek = 1] = "EveryWeek", A[A.EveryOtherWeek = 2] = "EveryOtherWeek", A[A.EveryMonth = 3] = "EveryMonth", A[A.EveryOtherMonth = 4] = "EveryOtherMonth", A[A.EveryQuarter = 5] = "EveryQuarter", A[A.EveryOtherQuarter = 6] = "EveryOtherQuarter", A[A.EveryYear = 7] = "EveryYear", A))(q || {});
|
823
823
|
const U8 = [
|
824
824
|
{ id: 0, copy: "frequency_unknown" },
|
825
825
|
{ id: 1, copy: "frequency_every_week" },
|
@@ -1038,7 +1038,7 @@ const rn = (A, e) => A.reduce((n, r) => (n[r.guid] = e?.includes(r.guid), n), {}
|
|
1038
1038
|
}
|
1039
1039
|
) : /* @__PURE__ */ u("form", { onSubmit: l, children: [
|
1040
1040
|
/* @__PURE__ */ u(
|
1041
|
-
|
1041
|
+
cA,
|
1042
1042
|
{
|
1043
1043
|
className: "mx-cmn-account-options",
|
1044
1044
|
dense: !0,
|
@@ -1096,7 +1096,7 @@ const rn = (A, e) => A.reduce((n, r) => (n[r.guid] = e?.includes(r.guid), n), {}
|
|
1096
1096
|
(L) => c[L.guid]
|
1097
1097
|
);
|
1098
1098
|
return /* @__PURE__ */ t(Z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
|
1099
|
-
|
1099
|
+
cA,
|
1100
1100
|
{
|
1101
1101
|
"aria-label": H(n.accountTypeAccounts, E),
|
1102
1102
|
className: "mx-cmn-account-options-group",
|
@@ -1302,7 +1302,7 @@ const vs = (A, e) => {
|
|
1302
1302
|
] }),
|
1303
1303
|
/* @__PURE__ */ t(y, { variant: "XSmall", children: e })
|
1304
1304
|
] });
|
1305
|
-
}, Es = (A, e) =>
|
1305
|
+
}, Es = (A, e) => _A({
|
1306
1306
|
alignItems: "center",
|
1307
1307
|
display: "flex",
|
1308
1308
|
gap: A.Spacing.XSmall,
|
@@ -1369,7 +1369,7 @@ const vs = (A, e) => {
|
|
1369
1369
|
] });
|
1370
1370
|
}, ys = (A, e, n) => {
|
1371
1371
|
const r = `expandBar-${Math.round(n)}`, a = _i(r, { from: { height: 0 }, to: { height: n } });
|
1372
|
-
return
|
1372
|
+
return _A({
|
1373
1373
|
display: "flex",
|
1374
1374
|
flexDirection: "column",
|
1375
1375
|
justifyContent: "flex-end",
|
@@ -1453,7 +1453,7 @@ const vs = (A, e) => {
|
|
1453
1453
|
}
|
1454
1454
|
)
|
1455
1455
|
] });
|
1456
|
-
}, ws = (A, e) =>
|
1456
|
+
}, ws = (A, e) => _A({
|
1457
1457
|
display: "flex",
|
1458
1458
|
flexDirection: "column",
|
1459
1459
|
flexGrow: e === void 0 ? 1 : 0,
|
@@ -1532,7 +1532,7 @@ const vs = (A, e) => {
|
|
1532
1532
|
] }),
|
1533
1533
|
/* @__PURE__ */ t(ms, { color: n, labelAverage: i, labelMain: o })
|
1534
1534
|
] });
|
1535
|
-
}, bs = (A) =>
|
1535
|
+
}, bs = (A) => _A({
|
1536
1536
|
"& .mx-cmn-chart-container": {
|
1537
1537
|
alignItems: "flex-end",
|
1538
1538
|
display: "flex",
|
@@ -1549,7 +1549,7 @@ const vs = (A, e) => {
|
|
1549
1549
|
/* @__PURE__ */ t(oA, { "aria-label": A.nextAria, onClick: n, children: /* @__PURE__ */ t(Fi, {}) })
|
1550
1550
|
] })
|
1551
1551
|
] });
|
1552
|
-
}, Os = (A) =>
|
1552
|
+
}, Os = (A) => _A({
|
1553
1553
|
alignItems: "center",
|
1554
1554
|
display: "flex",
|
1555
1555
|
marginBottom: A.Spacing.Medium,
|
@@ -1599,7 +1599,7 @@ const vs = (A, e) => {
|
|
1599
1599
|
)
|
1600
1600
|
}
|
1601
1601
|
);
|
1602
|
-
}, Ps = (A, e) =>
|
1602
|
+
}, Ps = (A, e) => _A({
|
1603
1603
|
height: rt,
|
1604
1604
|
width: rt,
|
1605
1605
|
display: "flex",
|
@@ -1708,7 +1708,7 @@ const Ms = ({
|
|
1708
1708
|
)) }, `w-${D}`)),
|
1709
1709
|
/* @__PURE__ */ t("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ t(oA, { onClick: E, size: "small", variant: "text", children: A.today }) })
|
1710
1710
|
] }) });
|
1711
|
-
}, Rs = (A) =>
|
1711
|
+
}, Rs = (A) => _A({
|
1712
1712
|
width: Ns,
|
1713
1713
|
"& .MuiPaper-root": {
|
1714
1714
|
paddingLeft: 24,
|
@@ -2006,12 +2006,12 @@ const Ms = ({
|
|
2006
2006
|
},
|
2007
2007
|
children: A
|
2008
2008
|
}
|
2009
|
-
),
|
2009
|
+
), kA = (A = "useGlobalStore") => {
|
2010
2010
|
const e = g.useContext(Ye);
|
2011
2011
|
if (!e)
|
2012
2012
|
throw new Error(`${A}() must be used within the GlobalDataContext`);
|
2013
2013
|
return e;
|
2014
|
-
}, OA = () =>
|
2014
|
+
}, OA = () => kA("useAccountStore").globalStore.accountStore, jt = () => kA("useBudgetsStore").globalStore.budgetsStore, Bn = () => kA("useCashflowStore").globalStore.cashflowStore, xA = () => kA("useCategoryStore").globalStore.categoryStore, Ma = () => kA("useConnectStore").globalStore.connectStore, Kn = () => kA("useGlobalStore").globalStore, mA = () => kA("useGlobalUiStore").globalStore.globalUiStore, b = () => kA("globalCopyStore").globalStore.copyStore.copy, Xs = () => kA("useMerchantStore").globalStore.merchantStore, Ra = () => kA("useNotificationStore").globalStore.notificationStore, BA = () => kA("useRecurringActivityStore").globalStore.recurringActivityStore, dA = () => kA("useTransactionStore").globalStore.transactionStore, Ut = () => kA("useUserStore").globalStore.userStore, V = () => ({ onEvent: kA().onEvent }), Z8 = () => ({ onPageView: kA().onPageView }), Qs = (A = "useWidgetContainerContext") => {
|
2015
2015
|
const e = g.useContext(Pa);
|
2016
2016
|
if (!e)
|
2017
2017
|
throw new Error(`${A}() must be used within the WidgetContainerContext`);
|
@@ -2173,41 +2173,41 @@ const Ms = ({
|
|
2173
2173
|
hoveredAreaData: null,
|
2174
2174
|
isAreaHovered: !1,
|
2175
2175
|
cursorPos: { x: 0, y: 0 }
|
2176
|
-
}), { hoveredSeriesId: v, hoveredAreaData: m, isAreaHovered: E, cursorPos: T } = C, S = E && v && m, L = !S, D = [...r, ...a], N = D[0].dataset.length, x = D.flatMap((
|
2177
|
-
(
|
2176
|
+
}), { hoveredSeriesId: v, hoveredAreaData: m, isAreaHovered: E, cursorPos: T } = C, S = E && v && m, L = !S, D = [...r, ...a], N = D[0].dataset.length, x = D.flatMap((z) => z.dataset.map((lA) => lA.x)), X = D.flatMap((z) => z.dataset.map((lA) => lA.y)), B = r[0].dataset.map(
|
2177
|
+
(z, lA) => r.reduce((SA, De) => SA + De.dataset[lA]?.y || 0, 0)
|
2178
2178
|
), k = Math.max(...B), K = Math.max(
|
2179
|
-
...a.flatMap((
|
2180
|
-
), _ = Math.floor(Math.min(...X) / 100) * 100, G = Math.ceil(Math.max(k, K) / 100) * 100, aA = r.map((
|
2181
|
-
id: `stacked-${
|
2179
|
+
...a.flatMap((z) => z.dataset.map((lA) => lA.y))
|
2180
|
+
), _ = Math.floor(Math.min(...X) / 100) * 100, G = Math.ceil(Math.max(k, K) / 100) * 100, aA = r.map((z, lA) => ({
|
2181
|
+
id: `stacked-${lA}`,
|
2182
2182
|
area: !0,
|
2183
|
-
color: r[
|
2184
|
-
data:
|
2185
|
-
label: r[
|
2183
|
+
color: r[lA].category_color ?? s.palette.primary.main,
|
2184
|
+
data: z.dataset.map((SA) => SA.y),
|
2185
|
+
label: r[lA].category_name,
|
2186
2186
|
stack: "total",
|
2187
2187
|
type: "line",
|
2188
2188
|
highlightScope: { highlight: "item" },
|
2189
2189
|
valueFormatter: (SA) => U(SA, "0,0")
|
2190
|
-
})), $ = a.map((
|
2191
|
-
id: `unstacked-${
|
2190
|
+
})), $ = a.map((z, lA) => ({
|
2191
|
+
id: `unstacked-${lA}`,
|
2192
2192
|
area: !1,
|
2193
|
-
color:
|
2194
|
-
data:
|
2195
|
-
label:
|
2193
|
+
color: z.category_color,
|
2194
|
+
data: z.dataset.map((SA) => SA.y),
|
2195
|
+
label: z.category_name,
|
2196
2196
|
type: "line",
|
2197
2197
|
valueFormatter: (SA) => U(SA, "0,0")
|
2198
|
-
})), TA = [...aA, ...$],
|
2199
|
-
d(
|
2198
|
+
})), TA = [...aA, ...$], F = [...aA.map((z) => z.label), ...$.map((z) => z.label)], sA = (z) => (z.startsWith("stacked-") ? r[parseInt(z.split("-")[1])] : a[parseInt(z.split("-")[1])]).category_guid, KA = (z) => {
|
2199
|
+
d(z), n?.(z ?? "");
|
2200
2200
|
};
|
2201
2201
|
return /* @__PURE__ */ t(
|
2202
2202
|
oe,
|
2203
2203
|
{
|
2204
|
-
onMouseMove: (
|
2205
|
-
const
|
2204
|
+
onMouseMove: (z) => {
|
2205
|
+
const lA = z.currentTarget.getBoundingClientRect();
|
2206
2206
|
f((SA) => ({
|
2207
2207
|
...SA,
|
2208
2208
|
cursorPos: {
|
2209
|
-
x:
|
2210
|
-
y:
|
2209
|
+
x: z.clientX - lA.left,
|
2210
|
+
y: z.clientY - lA.top
|
2211
2211
|
}
|
2212
2212
|
}));
|
2213
2213
|
},
|
@@ -2225,26 +2225,26 @@ const Ms = ({
|
|
2225
2225
|
{
|
2226
2226
|
height: i || 400,
|
2227
2227
|
margin: { bottom: 50 },
|
2228
|
-
onHighlightChange: (
|
2229
|
-
const
|
2228
|
+
onHighlightChange: (z) => {
|
2229
|
+
const lA = z?.seriesId && TA.find((Je) => Je.id === z.seriesId), SA = lA && z?.dataIndex !== void 0, De = lA && z?.dataIndex === void 0;
|
2230
2230
|
if (SA)
|
2231
2231
|
f({
|
2232
|
-
hoveredSeriesId: String(
|
2232
|
+
hoveredSeriesId: String(z.seriesId),
|
2233
2233
|
hoveredAreaData: null,
|
2234
2234
|
isAreaHovered: !1,
|
2235
2235
|
cursorPos: T
|
2236
|
-
}), e?.(
|
2236
|
+
}), e?.(sA(String(z.seriesId)));
|
2237
2237
|
else if (De) {
|
2238
|
-
const Je =
|
2238
|
+
const Je = lA?.data.map((le, Et) => ({
|
2239
2239
|
x: x[Et],
|
2240
2240
|
y: le
|
2241
2241
|
})) ?? [];
|
2242
2242
|
f({
|
2243
|
-
hoveredSeriesId: String(
|
2243
|
+
hoveredSeriesId: String(z.seriesId),
|
2244
2244
|
hoveredAreaData: Je,
|
2245
2245
|
isAreaHovered: !0,
|
2246
2246
|
cursorPos: T
|
2247
|
-
}), A?.(
|
2247
|
+
}), A?.(sA(String(z.seriesId)));
|
2248
2248
|
} else
|
2249
2249
|
f({
|
2250
2250
|
hoveredSeriesId: null,
|
@@ -2260,12 +2260,12 @@ const Ms = ({
|
|
2260
2260
|
}
|
2261
2261
|
},
|
2262
2262
|
slots: {
|
2263
|
-
itemContent: (
|
2263
|
+
itemContent: (z) => L && v ? /* @__PURE__ */ t(
|
2264
2264
|
Us,
|
2265
2265
|
{
|
2266
|
-
categoryGuid:
|
2266
|
+
categoryGuid: sA(v),
|
2267
2267
|
xData: x,
|
2268
|
-
...
|
2268
|
+
...z
|
2269
2269
|
}
|
2270
2270
|
) : null
|
2271
2271
|
},
|
@@ -2285,11 +2285,11 @@ const Ms = ({
|
|
2285
2285
|
'& [class*="MuiLineElement-series-unstacked-"]': {
|
2286
2286
|
strokeWidth: 3
|
2287
2287
|
},
|
2288
|
-
...l && aA.reduce((
|
2288
|
+
...l && aA.reduce((z, lA, SA) => {
|
2289
2289
|
const De = `.MuiAreaElement-series-stacked-${SA}`;
|
2290
|
-
return
|
2290
|
+
return z[De] = {
|
2291
2291
|
opacity: aA[SA].label === l ? 0.9 : 0.2
|
2292
|
-
},
|
2292
|
+
}, z;
|
2293
2293
|
}, {})
|
2294
2294
|
},
|
2295
2295
|
tooltip: {
|
@@ -2300,7 +2300,7 @@ const Ms = ({
|
|
2300
2300
|
{
|
2301
2301
|
data: x,
|
2302
2302
|
scaleType: "time",
|
2303
|
-
valueFormatter: (
|
2303
|
+
valueFormatter: (z) => J(z, Y.MONTH_SHORT_YEAR),
|
2304
2304
|
tickNumber: N
|
2305
2305
|
// How many ticks to show on the x-axis
|
2306
2306
|
}
|
@@ -2317,24 +2317,24 @@ const Ms = ({
|
|
2317
2317
|
Ws,
|
2318
2318
|
{
|
2319
2319
|
hoveredLegend: l,
|
2320
|
-
labels:
|
2321
|
-
setHoveredLegend:
|
2322
|
-
stackedColors: aA.map((
|
2323
|
-
stackedLabels: aA.map((
|
2320
|
+
labels: F,
|
2321
|
+
setHoveredLegend: KA,
|
2322
|
+
stackedColors: aA.map((z) => z.color),
|
2323
|
+
stackedLabels: aA.map((z) => z.label),
|
2324
2324
|
sx: { px: c ? 0 : 24 },
|
2325
|
-
unstackedColors: $.map((
|
2326
|
-
unstackedLabels: $.map((
|
2325
|
+
unstackedColors: $.map((z) => z.color),
|
2326
|
+
unstackedLabels: $.map((z) => z.label)
|
2327
2327
|
}
|
2328
2328
|
),
|
2329
2329
|
S && /* @__PURE__ */ t(
|
2330
2330
|
js,
|
2331
2331
|
{
|
2332
|
-
categoryGuid:
|
2332
|
+
categoryGuid: sA(v),
|
2333
2333
|
chartContainerRef: h,
|
2334
2334
|
cursorPosition: T,
|
2335
|
-
hoveredAreaData: m.map((
|
2336
|
-
...
|
2337
|
-
x: J(
|
2335
|
+
hoveredAreaData: m.map((z) => ({
|
2336
|
+
...z,
|
2337
|
+
x: J(z.x, Y.MONTH_SHORT_YEAR)
|
2338
2338
|
}))
|
2339
2339
|
}
|
2340
2340
|
)
|
@@ -2519,14 +2519,14 @@ const Ms = ({
|
|
2519
2519
|
const G = DA(Re());
|
2520
2520
|
return [DA(Ce(G, N)), G];
|
2521
2521
|
}, k = (G) => {
|
2522
|
-
const aA = [...d], $ = d[0], TA = d[1],
|
2522
|
+
const aA = [...d], $ = d[0], TA = d[1], F = G === "previous";
|
2523
2523
|
if (f === n.dateRangePickerCopy.dateRangeThisMonth)
|
2524
|
-
aA[0] =
|
2524
|
+
aA[0] = F ? Ce($, 1) : WA($, 1), aA[1] = DA(F ? Ce(TA, 1) : WA(TA, 1));
|
2525
2525
|
else if (f === n.dateRangePickerCopy.dateRangeYTD || f === n.dateRangePickerCopy.dateRangeLastYear)
|
2526
|
-
aA[0] =
|
2526
|
+
aA[0] = F ? dr(lr($), 1) : it(lr($), 1), aA[1] = F ? dr(cr($), 1) : it(cr($), 1);
|
2527
2527
|
else {
|
2528
|
-
const
|
2529
|
-
aA[0] = G === "previous" ? te($,
|
2528
|
+
const sA = so(TA, $);
|
2529
|
+
aA[0] = G === "previous" ? te($, sA) : ce($, sA), aA[1] = G === "previous" ? te(TA, sA) : ce(TA, sA);
|
2530
2530
|
}
|
2531
2531
|
C(aA), A.onRangeChanged(aA);
|
2532
2532
|
}, K = () => {
|
@@ -2768,7 +2768,7 @@ const Ms = ({
|
|
2768
2768
|
] }),
|
2769
2769
|
/* @__PURE__ */ t("div", { className: "mx-cmn-multi-segment-donut-children", children: a })
|
2770
2770
|
] });
|
2771
|
-
}, Zs = (A, e) =>
|
2771
|
+
}, Zs = (A, e) => _A({
|
2772
2772
|
height: e,
|
2773
2773
|
marginTop: `-${A.Spacing.XSmall}px`,
|
2774
2774
|
position: "relative",
|
@@ -2818,7 +2818,7 @@ const Ms = ({
|
|
2818
2818
|
] }),
|
2819
2819
|
/* @__PURE__ */ t("div", { className: "mx-cmn-single-segment-donut-children", children: a })
|
2820
2820
|
] });
|
2821
|
-
}, $s = (A, e) =>
|
2821
|
+
}, $s = (A, e) => _A({
|
2822
2822
|
height: e,
|
2823
2823
|
marginTop: `-${A.Spacing.XSmall}px`,
|
2824
2824
|
position: "relative",
|
@@ -2907,7 +2907,7 @@ const qe = ({
|
|
2907
2907
|
title: d = ""
|
2908
2908
|
}) => {
|
2909
2909
|
const [C, { height: f, width: v }] = za(), { onEvent: m } = V(), { isDesktop: E, isMobile: T, isTablet: S } = jA(), { displayedDateRange: L, selectedAccountGuids: D, setSelectedAccountGuids: N } = mA(), { common: x } = b(), X = () => {
|
2910
|
-
c && (c(), m(
|
2910
|
+
c && (c(), m(j.WIDGET_BACK_CLICK));
|
2911
2911
|
}, B = {
|
2912
2912
|
accountFilterOptionsCopy: {
|
2913
2913
|
accountTypeAccounts: x.account_filter.account_type_accounts,
|
@@ -3117,7 +3117,7 @@ const qe = ({
|
|
3117
3117
|
...d
|
3118
3118
|
}
|
3119
3119
|
);
|
3120
|
-
}, tc = (A) =>
|
3120
|
+
}, tc = (A) => _A({
|
3121
3121
|
"& .MuiInputBase-adornedStart > .p": {
|
3122
3122
|
marginRight: A.Spacing.Tiny
|
3123
3123
|
}
|
@@ -4305,9 +4305,9 @@ class Sc {
|
|
4305
4305
|
const UA = () => {
|
4306
4306
|
if (!g.useContext(Ye))
|
4307
4307
|
throw new Error("useTransactionsUiStore() must be used within the GlobalDataContext");
|
4308
|
-
return
|
4308
|
+
return dA().uiStore;
|
4309
4309
|
}, Ic = ({ transaction: A, onClick: e }) => {
|
4310
|
-
const { associatedBeats: n } =
|
4310
|
+
const { associatedBeats: n } = dA(), { transactions: r } = b(), { showInsights: a } = UA(), i = A.transaction_type === QA.CREDIT, o = g.useMemo(() => n.find((s) => s.associated_transaction_guid === A.guid), [n, A]);
|
4311
4311
|
return /* @__PURE__ */ u(
|
4312
4312
|
rc,
|
4313
4313
|
{
|
@@ -4403,13 +4403,13 @@ const UA = () => {
|
|
4403
4403
|
width: o = "100%",
|
4404
4404
|
zeroState: s = /* @__PURE__ */ t(Dc, {})
|
4405
4405
|
}) => {
|
4406
|
-
const { isLoading: c, sortedTransactions: h } =
|
4406
|
+
const { isLoading: c, sortedTransactions: h } = dA(), { setShowInsights: l, toggleSplit: d } = UA(), { onEvent: C } = V(), f = (E) => {
|
4407
4407
|
const T = h.find((S) => S.guid === E);
|
4408
4408
|
if (T?.has_been_split) {
|
4409
4409
|
d(T.guid);
|
4410
4410
|
return;
|
4411
4411
|
}
|
4412
|
-
C(
|
4412
|
+
C(j.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
|
4413
4413
|
account_guid: T?.account_guid,
|
4414
4414
|
transaction_guid: E
|
4415
4415
|
}), r?.(E);
|
@@ -4419,7 +4419,7 @@ const UA = () => {
|
|
4419
4419
|
estimateSize: (E) => Mr + (Pr(E, h) ? Rr : 0),
|
4420
4420
|
overscan: 5
|
4421
4421
|
});
|
4422
|
-
return g.useEffect(() => m.measure(), [h]), g.useEffect(() => l(a), [a]), /* @__PURE__ */ t(
|
4422
|
+
return g.useEffect(() => m.measure(), [h]), g.useEffect(() => l(a), [a]), /* @__PURE__ */ t(cA, { children: /* @__PURE__ */ t(O, { height: e, overflow: "auto", ref: v, width: o, children: /* @__PURE__ */ u(
|
4423
4423
|
O,
|
4424
4424
|
{
|
4425
4425
|
height: (
|
@@ -4458,7 +4458,7 @@ const UA = () => {
|
|
4458
4458
|
`${A.row.account}`,
|
4459
4459
|
A.row.number && ` | ${A.row.number}`
|
4460
4460
|
] }), zc = (A) => {
|
4461
|
-
const { associatedBeats: e } =
|
4461
|
+
const { associatedBeats: e } = dA(), { showInsights: n } = UA(), { amount: r, transaction_type: a } = A.row, i = e.find((s) => s.associated_transaction_guid === A.row.guid), o = a === QA.CREDIT;
|
4462
4462
|
return /* @__PURE__ */ u(w, { alignItems: "flex-end", tabIndex: A.tabIndex, children: [
|
4463
4463
|
/* @__PURE__ */ u(y, { color: o ? "success.main" : "text.primary", variant: "Small", children: [
|
4464
4464
|
o ? "+" : "",
|
@@ -4527,7 +4527,7 @@ const UA = () => {
|
|
4527
4527
|
onCategoryClick: e,
|
4528
4528
|
onRowClick: n
|
4529
4529
|
}) => {
|
4530
|
-
const { isLoading: r, sortedTransactions: a } =
|
4530
|
+
const { isLoading: r, sortedTransactions: a } = dA(), { transactions: i } = b(), o = [
|
4531
4531
|
{
|
4532
4532
|
field: "flag",
|
4533
4533
|
headerName: "",
|
@@ -4833,7 +4833,7 @@ const Fc = ({
|
|
4833
4833
|
timeout: "auto",
|
4834
4834
|
unmountOnExit: !0,
|
4835
4835
|
children: /* @__PURE__ */ u(
|
4836
|
-
|
4836
|
+
cA,
|
4837
4837
|
{
|
4838
4838
|
"aria-labelledby": `category-${e.guid}`,
|
4839
4839
|
className: "mx-cat-subcategory-list",
|
@@ -4898,7 +4898,7 @@ const Fc = ({
|
|
4898
4898
|
}
|
4899
4899
|
return s;
|
4900
4900
|
}, []))(A, e);
|
4901
|
-
return /* @__PURE__ */ t(ie, { className: "mx-cat-category-list", sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(
|
4901
|
+
return /* @__PURE__ */ t(ie, { className: "mx-cat-category-list", sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(cA, { children: a.map((i) => /* @__PURE__ */ t(
|
4902
4902
|
nl,
|
4903
4903
|
{
|
4904
4904
|
category: i.category,
|
@@ -4941,7 +4941,7 @@ const Fc = ({
|
|
4941
4941
|
),
|
4942
4942
|
/* @__PURE__ */ t(al, {})
|
4943
4943
|
] });
|
4944
|
-
}, ol = () =>
|
4944
|
+
}, ol = () => _A({
|
4945
4945
|
display: "flex",
|
4946
4946
|
flexDirection: "column",
|
4947
4947
|
width: "100%"
|
@@ -5110,8 +5110,8 @@ class dl {
|
|
5110
5110
|
};
|
5111
5111
|
}
|
5112
5112
|
const _a = ({ transaction: A }) => {
|
5113
|
-
const { addOrUpdateTransactionRule: e, updateTransaction: n } =
|
5114
|
-
await n({ ...A, category_guid: l }), E && await e(l, A), d(""), a(
|
5113
|
+
const { addOrUpdateTransactionRule: e, updateTransaction: n } = dA(), { categories: r } = xA(), { onEvent: a } = V(), { setShouldDisableDrawerScroll: i, updateManualTransaction: o } = UA(), { transactions: s } = b(), [c, h] = g.useState(!1), [l, d] = g.useState(""), C = async (E) => {
|
5114
|
+
await n({ ...A, category_guid: l }), E && await e(l, A), d(""), a(j.TRANSACTION_DETAILS_CLICK_CATEGORY, {
|
5115
5115
|
transaction_guid: A.guid
|
5116
5116
|
});
|
5117
5117
|
}, f = (E) => {
|
@@ -5195,14 +5195,14 @@ const _a = ({ transaction: A }) => {
|
|
5195
5195
|
)
|
5196
5196
|
] });
|
5197
5197
|
}, ka = ({ transaction: A }) => {
|
5198
|
-
const e = LA(), { onEvent: n } = V(), { updateTransaction: r } =
|
5198
|
+
const e = LA(), { onEvent: n } = V(), { updateTransaction: r } = dA(), { updateManualTransaction: a } = UA(), { common: i, transactions: o } = b(), [s, c] = g.useState(!1), [h, l] = g.useState(A.date), d = (f) => {
|
5199
5199
|
l(fA(f));
|
5200
5200
|
}, C = async () => {
|
5201
5201
|
if (A.is_manual && !A.guid) {
|
5202
5202
|
a({ ...A, date: h }), c(!1);
|
5203
5203
|
return;
|
5204
5204
|
}
|
5205
|
-
await r({ ...A, date: h }), n(
|
5205
|
+
await r({ ...A, date: h }), n(j.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: A.guid }), c(!1);
|
5206
5206
|
};
|
5207
5207
|
return /* @__PURE__ */ u(O, { className: "mx-txn-date-action", children: [
|
5208
5208
|
/* @__PURE__ */ t(Z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(
|
@@ -5252,7 +5252,7 @@ const _a = ({ transaction: A }) => {
|
|
5252
5252
|
)
|
5253
5253
|
] });
|
5254
5254
|
}, ul = ({ transaction: A }) => {
|
5255
|
-
const { onEvent: e } = V(), { removeTransaction: n } =
|
5255
|
+
const { onEvent: e } = V(), { removeTransaction: n } = dA(), { setShouldDisableDrawerScroll: r } = UA(), { common: a, transactions: i } = b(), [o, s] = g.useState(!1), c = async () => {
|
5256
5256
|
await n(A.guid), e(M.ON_TRANSACTION_DELETE_DELETED);
|
5257
5257
|
};
|
5258
5258
|
return /* @__PURE__ */ u(O, { className: "mx-txn-delete", children: [
|
@@ -5292,8 +5292,8 @@ const _a = ({ transaction: A }) => {
|
|
5292
5292
|
)
|
5293
5293
|
] });
|
5294
5294
|
}, hl = I(ul), gl = ({ transaction: A }) => {
|
5295
|
-
const { onEvent: e } = V(), { updateTransaction: n } =
|
5296
|
-
await n({ ...A, merchant_guid: "" }), e(
|
5295
|
+
const { onEvent: e } = V(), { updateTransaction: n } = dA(), { setShouldDisableDrawerScroll: r } = UA(), { common: a, transactions: i } = b(), [o, s] = g.useState(!1), c = async () => {
|
5296
|
+
await n({ ...A, merchant_guid: "" }), e(j.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
|
5297
5297
|
transaction_guid: A.guid
|
5298
5298
|
});
|
5299
5299
|
};
|
@@ -5332,7 +5332,7 @@ const _a = ({ transaction: A }) => {
|
|
5332
5332
|
)
|
5333
5333
|
] });
|
5334
5334
|
}, Cl = I(gl), fl = ({ transaction: A }) => {
|
5335
|
-
const { onEvent: e } = V(), { updateTransaction: n } =
|
5335
|
+
const { onEvent: e } = V(), { updateTransaction: n } = dA(), { setShouldDisableDrawerScroll: r } = UA(), { common: a, transactions: i } = b(), [o, s] = g.useState(!1), c = A.is_hidden, h = async () => {
|
5336
5336
|
await n({ ...A, is_hidden: !A.is_hidden }), e(
|
5337
5337
|
c ? M.ON_TRANSACTION_UNHIDDEN : M.ON_TRANSACTION_HIDDEN
|
5338
5338
|
);
|
@@ -5421,7 +5421,7 @@ const _a = ({ transaction: A }) => {
|
|
5421
5421
|
] })
|
5422
5422
|
] });
|
5423
5423
|
}, pl = ({ transaction: A }) => {
|
5424
|
-
const { onEvent: e } = V(), { updateTransaction: n } =
|
5424
|
+
const { onEvent: e } = V(), { updateTransaction: n } = dA(), { updateManualTransaction: r } = UA(), { common: a, transactions: i } = b(), [o, s] = g.useState(!1), [c, h] = g.useState("");
|
5425
5425
|
g.useEffect(() => {
|
5426
5426
|
o && h(A.memo ? A.memo : "");
|
5427
5427
|
}, [o]);
|
@@ -5430,7 +5430,7 @@ const _a = ({ transaction: A }) => {
|
|
5430
5430
|
r({ ...A, memo: c }), s(!1);
|
5431
5431
|
return;
|
5432
5432
|
}
|
5433
|
-
await n({ ...A, memo: c }), e(
|
5433
|
+
await n({ ...A, memo: c }), e(j.TRANSACTION_DETAILS_CLICK_MEMO, { transaction_guid: A.guid }), s(!1);
|
5434
5434
|
};
|
5435
5435
|
return /* @__PURE__ */ u("div", { className: "mx-txn-memo-action", children: [
|
5436
5436
|
/* @__PURE__ */ t(Z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(
|
@@ -5635,7 +5635,7 @@ const _a = ({ transaction: A }) => {
|
|
5635
5635
|
) })
|
5636
5636
|
] });
|
5637
5637
|
}, wl = I(yl), Ll = ({ transaction: A }) => {
|
5638
|
-
const { onEvent: e } = V(), { splitTransaction: n, unSplitTransaction: r } =
|
5638
|
+
const { onEvent: e } = V(), { splitTransaction: n, unSplitTransaction: r } = dA(), { common: a, transactions: i } = b(), { setShouldDisableDrawerScroll: o } = UA(), { categories: s } = xA(), c = {
|
5639
5639
|
...A,
|
5640
5640
|
amount: A.amount - 1,
|
5641
5641
|
guid: "",
|
@@ -5677,7 +5677,7 @@ const _a = ({ transaction: A }) => {
|
|
5677
5677
|
f(!0);
|
5678
5678
|
return;
|
5679
5679
|
}
|
5680
|
-
m([{ ...c }, { ...h }]), e(
|
5680
|
+
m([{ ...c }, { ...h }]), e(j.TRANSACTION_DETAILS_CLICK_SPLIT, {
|
5681
5681
|
transaction_guid: A.guid
|
5682
5682
|
}), d(!0);
|
5683
5683
|
}, N = async () => {
|
@@ -5685,7 +5685,7 @@ const _a = ({ transaction: A }) => {
|
|
5685
5685
|
}, x = async () => {
|
5686
5686
|
e(M.ON_TRANSACTION_SPLIT_CANCEL_CLICK), m([{ ...c }, { ...h }]), d(!1);
|
5687
5687
|
}, X = async () => {
|
5688
|
-
e(
|
5688
|
+
e(j.TRANSACTION_DETAILS_CLICK_UNSPLIT, {
|
5689
5689
|
transaction_guid: A.guid
|
5690
5690
|
});
|
5691
5691
|
const k = A.parent_guid ?? A.guid;
|
@@ -5755,7 +5755,7 @@ const _a = ({ transaction: A }) => {
|
|
5755
5755
|
)
|
5756
5756
|
] });
|
5757
5757
|
}, Tl = I(Ll), Sl = () => {
|
5758
|
-
const A = pA(), { onEvent: e } = V(), { addTag: n } =
|
5758
|
+
const A = pA(), { onEvent: e } = V(), { addTag: n } = dA(), { transactions: r } = b(), [a, i] = g.useState(!1), [o, s] = g.useState(""), [c, h] = g.useState(""), l = g.useRef(null);
|
5759
5759
|
g.useEffect(() => {
|
5760
5760
|
a && l?.current?.focus();
|
5761
5761
|
}, [a]);
|
@@ -5842,7 +5842,7 @@ const _a = ({ transaction: A }) => {
|
|
5842
5842
|
}
|
5843
5843
|
) });
|
5844
5844
|
}, Dl = I(bl), Ol = ({ onTagChecked: A, selectedTags: e, tag: n }) => {
|
5845
|
-
const { onEvent: r } = V(), { removeTag: a, updateTag: i } =
|
5845
|
+
const { onEvent: r } = V(), { removeTag: a, updateTag: i } = dA(), { common: o, transactions: s } = b(), [c, h] = g.useState(!1), [l, d] = g.useState(!1), [C, f] = g.useState(""), [v, m] = g.useState(""), E = async () => {
|
5846
5846
|
r(M.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), n && await i({ ...n, name: C }), h(!1);
|
5847
5847
|
}, T = async () => {
|
5848
5848
|
r(M.ON_TRANSACTION_TAGS_TAG_DELETED), await a(n.guid), d(!1);
|
@@ -5936,7 +5936,7 @@ const _a = ({ transaction: A }) => {
|
|
5936
5936
|
}
|
5937
5937
|
);
|
5938
5938
|
}, xl = I(Ol), Pl = ({ selectedTags: A, onTagChecked: e }) => {
|
5939
|
-
const { tags: n } =
|
5939
|
+
const { tags: n } = dA(), [r, a] = g.useState(""), i = n.filter(
|
5940
5940
|
(o) => o.name.toLowerCase().includes(r.toLowerCase())
|
5941
5941
|
);
|
5942
5942
|
return /* @__PURE__ */ u("div", { className: "mx-txn-tag-manager", children: [
|
@@ -5948,13 +5948,13 @@ const _a = ({ transaction: A }) => {
|
|
5948
5948
|
}
|
5949
5949
|
),
|
5950
5950
|
/* @__PURE__ */ t(Il, {}),
|
5951
|
-
/* @__PURE__ */ t(ie, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(
|
5951
|
+
/* @__PURE__ */ t(ie, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(cA, { children: i.map((o) => /* @__PURE__ */ u(g.Fragment, { children: [
|
5952
5952
|
/* @__PURE__ */ t(xl, { onTagChecked: e, selectedTags: A, tag: o }),
|
5953
5953
|
/* @__PURE__ */ t(Q, { sx: { ml: 24 } })
|
5954
5954
|
] }, o.guid)) }) })
|
5955
5955
|
] });
|
5956
5956
|
}, Nl = I(Pl), Ml = ({ transaction: A }) => {
|
5957
|
-
const { onEvent: e } = V(), { tags: n, updateTaggings: r, updateTransaction: a } =
|
5957
|
+
const { onEvent: e } = V(), { tags: n, updateTaggings: r, updateTransaction: a } = dA(), { common: i, transactions: o } = b(), { updateManualTransaction: s } = UA(), [c, h] = g.useState(!1), [l, d] = g.useState(A.tags);
|
5958
5958
|
g.useEffect(() => {
|
5959
5959
|
d(A.tags);
|
5960
5960
|
}, [c, A]);
|
@@ -5966,7 +5966,7 @@ const _a = ({ transaction: A }) => {
|
|
5966
5966
|
s({ ...A, tags: l }), h(!1);
|
5967
5967
|
return;
|
5968
5968
|
}
|
5969
|
-
await r(l, A.guid), await a({ ...A }), e(
|
5969
|
+
await r(l, A.guid), await a({ ...A }), e(j.TRANSACTION_DETAILS_CLICK_TAGS, { transaction_guid: A.guid }), h(!1);
|
5970
5970
|
}, v = g.useMemo(
|
5971
5971
|
() => A.tags.map(
|
5972
5972
|
(m, E, T) => `${n.find((S) => S.guid === m)?.name}${E < T.length - 1 ? " / " : ""}`
|
@@ -6009,12 +6009,12 @@ const _a = ({ transaction: A }) => {
|
|
6009
6009
|
)
|
6010
6010
|
] });
|
6011
6011
|
}, Qa = I(Ml), Rl = ({ transaction: A }) => {
|
6012
|
-
const { updateTransaction: e } =
|
6012
|
+
const { updateTransaction: e } = dA(), { common: n, transactions: r } = b(), { onEvent: a } = V(), [i, o] = g.useState(!1), [s, c] = g.useState(""), h = g.useRef(null);
|
6013
6013
|
g.useEffect(() => {
|
6014
6014
|
i && (c(A.description), h?.current?.focus());
|
6015
6015
|
}, [i]);
|
6016
6016
|
const l = async () => {
|
6017
|
-
a(
|
6017
|
+
a(j.TRANSACTION_DETAILS_CLICK_DESCRIPTION, {
|
6018
6018
|
transaction_guid: A.guid
|
6019
6019
|
}), await e({ ...A, description: s }), o(!1);
|
6020
6020
|
};
|
@@ -6060,8 +6060,8 @@ const _a = ({ transaction: A }) => {
|
|
6060
6060
|
)
|
6061
6061
|
] }) });
|
6062
6062
|
}, Hl = I(Rl), zl = ({ transaction: A }) => {
|
6063
|
-
const { updateTransaction: e } =
|
6064
|
-
r(
|
6063
|
+
const { updateTransaction: e } = dA(), { transactions: n } = b(), { onEvent: r } = V(), a = pA(), i = async () => {
|
6064
|
+
r(j.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: A.guid }), await e({ ...A, is_flagged: !A.is_flagged });
|
6065
6065
|
};
|
6066
6066
|
return /* @__PURE__ */ t("div", { className: "mx-txn-transaction-flag", children: /* @__PURE__ */ t(
|
6067
6067
|
wn,
|
@@ -6098,7 +6098,7 @@ const _a = ({ transaction: A }) => {
|
|
6098
6098
|
}) => {
|
6099
6099
|
const r = LA(), a = n?.number && n.number.length > 4, { onEvent: i } = V();
|
6100
6100
|
return g.useEffect(
|
6101
|
-
() => i(
|
6101
|
+
() => i(j.TRANSACTION_DETAILS_VIEW, { transaction_guid: n.guid }),
|
6102
6102
|
[]
|
6103
6103
|
), /* @__PURE__ */ t(O, { className: "mx-txn-transaction-details", width: "100%", children: n && /* @__PURE__ */ u(w, { children: [
|
6104
6104
|
/* @__PURE__ */ u(w, { gap: r.Spacing.Small, p: r.Spacing.Large, children: [
|
@@ -6133,7 +6133,7 @@ const _a = ({ transaction: A }) => {
|
|
6133
6133
|
}
|
6134
6134
|
)
|
6135
6135
|
] }),
|
6136
|
-
/* @__PURE__ */ t(ie, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(
|
6136
|
+
/* @__PURE__ */ t(ie, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(cA, { children: e.map((o, s) => /* @__PURE__ */ u(g.Fragment, { children: [
|
6137
6137
|
o === et.Category && /* @__PURE__ */ t(_a, { transaction: n }),
|
6138
6138
|
o === et.Date && /* @__PURE__ */ t(ka, { transaction: n }),
|
6139
6139
|
o === et.Memo && /* @__PURE__ */ t(Xa, { transaction: n }),
|
@@ -6141,7 +6141,7 @@ const _a = ({ transaction: A }) => {
|
|
6141
6141
|
/* @__PURE__ */ t(Q, { variant: s < e.length - 1 ? "inset" : "fullWidth" })
|
6142
6142
|
] }, o)) }) }),
|
6143
6143
|
/* @__PURE__ */ t(y, { bold: !0, mb: 8, ml: 26, mt: 16, variant: "Body", children: "Actions" }),
|
6144
|
-
/* @__PURE__ */ t(ie, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ u(
|
6144
|
+
/* @__PURE__ */ t(ie, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ u(cA, { children: [
|
6145
6145
|
A.map((o, s) => /* @__PURE__ */ u(g.Fragment, { children: [
|
6146
6146
|
o === bt.SplitTransaction && /* @__PURE__ */ t(Tl, { transaction: n }),
|
6147
6147
|
o === bt.HideTransaction && /* @__PURE__ */ t(vl, { transaction: n }),
|
@@ -6362,7 +6362,7 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
6362
6362
|
] })
|
6363
6363
|
] });
|
6364
6364
|
}, Yl = I(Wl), Vl = ({ onClose: A, transaction: e }) => {
|
6365
|
-
const { addOrUpdateTransactionRule: n, updateTransaction: r } =
|
6365
|
+
const { addOrUpdateTransactionRule: n, updateTransaction: r } = dA(), { transactions: a } = b(), { categories: i } = xA(), [o, s] = g.useState(""), c = g.useMemo(
|
6366
6366
|
() => i.find((l) => l.guid === o),
|
6367
6367
|
[o]
|
6368
6368
|
), h = async (l) => {
|
@@ -6415,14 +6415,14 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
6415
6415
|
setSearchValue: l,
|
6416
6416
|
setShowInsights: d,
|
6417
6417
|
updateManualTransaction: C
|
6418
|
-
} = UA(), { addTransaction: f, filter: v, setFilter: m, tags: E, transactions: T, updateTransaction: S } =
|
6418
|
+
} = UA(), { addTransaction: f, filter: v, setFilter: m, tags: E, transactions: T, updateTransaction: S } = dA(), { common: L, transactions: D } = b(), { userProfile: N } = Ut(), { onEvent: x } = V(), {
|
6419
6419
|
displayedDateRange: X,
|
6420
6420
|
isInitialized: B,
|
6421
6421
|
selectedAccountGuids: k,
|
6422
6422
|
selectedAccounts: K,
|
6423
6423
|
setDisplayedDate: _,
|
6424
6424
|
setSelectedAccounts: G
|
6425
|
-
} = mA(), [aA, $] = g.useState(""), [TA,
|
6425
|
+
} = mA(), [aA, $] = g.useState(""), [TA, F] = g.useState(""), [sA, KA] = g.useState(!1), [z, lA] = g.useState(!1), [SA, De] = g.useState(!1);
|
6426
6426
|
g.useEffect(() => {
|
6427
6427
|
G(a);
|
6428
6428
|
}, [a]), g.useEffect(() => {
|
@@ -6430,7 +6430,7 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
6430
6430
|
_(IA, nr), m({
|
6431
6431
|
dateRange: { start: IA, end: nr },
|
6432
6432
|
accounts: K.map((Di) => Di.guid)
|
6433
|
-
}), De(!0), x(
|
6433
|
+
}), De(!0), x(j.TRANSACTIONS_VIEW);
|
6434
6434
|
}, []), g.useEffect(() => {
|
6435
6435
|
SA && m({
|
6436
6436
|
...v,
|
@@ -6449,9 +6449,9 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
6449
6449
|
l(IA), m({
|
6450
6450
|
...v,
|
6451
6451
|
searchTerm: IA
|
6452
|
-
}), x(
|
6452
|
+
}), x(j.TRANSACTIONS_CLICK_SEARCH, { search_term: IA });
|
6453
6453
|
}, Li = () => {
|
6454
|
-
kl(T, E), x(
|
6454
|
+
kl(T, E), x(j.TRANSACTIONS_CLICK_EXPORT);
|
6455
6455
|
}, Ti = () => {
|
6456
6456
|
Je.length > 0 ? (C({
|
6457
6457
|
...Ba,
|
@@ -6460,13 +6460,13 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
6460
6460
|
}), $(
|
6461
6461
|
"addTransaction"
|
6462
6462
|
/* AddTransaction */
|
6463
|
-
), x(
|
6463
|
+
), x(j.TRANSACTIONS_CLICK_ADD)) : (KA(!0), x(j.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
6464
6464
|
}, Si = async () => {
|
6465
6465
|
Et && await f(s), $("");
|
6466
6466
|
}, Ii = () => {
|
6467
|
-
|
6467
|
+
KA(!1), lA(!0);
|
6468
6468
|
}, bi = () => {
|
6469
|
-
|
6469
|
+
lA(!1), i();
|
6470
6470
|
};
|
6471
6471
|
return !B || !SA ? /* @__PURE__ */ t(me, {}) : /* @__PURE__ */ u(
|
6472
6472
|
He,
|
@@ -6487,7 +6487,7 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
6487
6487
|
calendarActions: {
|
6488
6488
|
onRangeChanged: yi
|
6489
6489
|
},
|
6490
|
-
onAccountsFilterClick: () => x(
|
6490
|
+
onAccountsFilterClick: () => x(j.ACCOUNTS_CLICK_FILTER),
|
6491
6491
|
onBackClick: A,
|
6492
6492
|
sx: r,
|
6493
6493
|
title: D.transactions_title,
|
@@ -6512,16 +6512,16 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
6512
6512
|
{
|
6513
6513
|
height: `calc(${e} - ${qr}px)`,
|
6514
6514
|
onCategoryClick: (IA) => {
|
6515
|
-
|
6515
|
+
F(IA), $(
|
6516
6516
|
"category"
|
6517
6517
|
/* Category */
|
6518
6518
|
);
|
6519
6519
|
},
|
6520
6520
|
onRowClick: (IA) => {
|
6521
|
-
|
6521
|
+
F(IA), $(
|
6522
6522
|
"transaction"
|
6523
6523
|
/* Transaction */
|
6524
|
-
), x(
|
6524
|
+
), x(j.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: IA });
|
6525
6525
|
}
|
6526
6526
|
}
|
6527
6527
|
)
|
@@ -6539,7 +6539,7 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
6539
6539
|
{
|
6540
6540
|
height: `calc(${e} - ${qr}px)`,
|
6541
6541
|
onClick: (IA) => {
|
6542
|
-
|
6542
|
+
F(IA), $(
|
6543
6543
|
"transaction"
|
6544
6544
|
/* Transaction */
|
6545
6545
|
);
|
@@ -6564,7 +6564,7 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
6564
6564
|
Jl,
|
6565
6565
|
{
|
6566
6566
|
onClose: () => {
|
6567
|
-
$(""),
|
6567
|
+
$(""), F("");
|
6568
6568
|
},
|
6569
6569
|
transaction: le
|
6570
6570
|
}
|
@@ -6585,9 +6585,9 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
6585
6585
|
_l,
|
6586
6586
|
{
|
6587
6587
|
copy: { title: D.add_manual_account },
|
6588
|
-
isOpen:
|
6588
|
+
isOpen: sA,
|
6589
6589
|
onClose: () => {
|
6590
|
-
|
6590
|
+
KA(!1);
|
6591
6591
|
},
|
6592
6592
|
onPrimaryAction: Ii
|
6593
6593
|
}
|
@@ -6596,7 +6596,7 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
6596
6596
|
Wn,
|
6597
6597
|
{
|
6598
6598
|
onClose: bi,
|
6599
|
-
showConnectWidget:
|
6599
|
+
showConnectWidget: z,
|
6600
6600
|
title: D.add_manual_account
|
6601
6601
|
}
|
6602
6602
|
)
|
@@ -6613,19 +6613,19 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
6613
6613
|
start_date: fA(A.expectedDate)
|
6614
6614
|
}, r = `${nt(A.expectedDate)}`, a = `${_e(A.expectedDate)}`, i = `${st(A.expectedDate)}`;
|
6615
6615
|
switch (A.recurrenceType) {
|
6616
|
-
case
|
6616
|
+
case q.EveryWeek:
|
6617
6617
|
n.repeat_interval = "1", n.repeat_weekday = i;
|
6618
6618
|
break;
|
6619
|
-
case
|
6619
|
+
case q.EveryOtherWeek:
|
6620
6620
|
n.repeat_interval = "2", n.repeat_weekday = i;
|
6621
6621
|
break;
|
6622
|
-
case
|
6622
|
+
case q.EveryMonth:
|
6623
6623
|
n.repeat_day = r;
|
6624
6624
|
break;
|
6625
|
-
case
|
6625
|
+
case q.EveryQuarter:
|
6626
6626
|
n.repeat_day = r, n.repeat_interval = "3";
|
6627
6627
|
break;
|
6628
|
-
case
|
6628
|
+
case q.EveryYear:
|
6629
6629
|
n.repeat_day = r, n.repeat_month = a;
|
6630
6630
|
break;
|
6631
6631
|
}
|
@@ -6636,13 +6636,13 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
6636
6636
|
recurrence_type: A.recurrenceType
|
6637
6637
|
}), $l = ({ activity: A }) => {
|
6638
6638
|
const { recurring: e } = b(), { cashflowSequences: n, scheduledPayments: r, updateCashflowSequence: a, updateScheduledPayment: i } = BA(), { onEvent: o } = V(), [s, c] = g.useState(!1), h = A.activityType === EA.Income, l = [
|
6639
|
-
{ id:
|
6640
|
-
{ id:
|
6641
|
-
{ id:
|
6642
|
-
{ id:
|
6643
|
-
{ id:
|
6644
|
-
{ id:
|
6645
|
-
{ id:
|
6639
|
+
{ id: q.EveryWeek, label: e.frequency_every_week },
|
6640
|
+
{ id: q.EveryOtherWeek, label: e.frequency_every_other_week },
|
6641
|
+
{ id: q.EveryMonth, label: e.frequency_every_month },
|
6642
|
+
{ id: q.EveryOtherMonth, label: e.frequency_every_other_month },
|
6643
|
+
{ id: q.EveryQuarter, label: e.frequency_every_quarter },
|
6644
|
+
{ id: q.EveryOtherQuarter, label: e.frequency_every_other_quarter },
|
6645
|
+
{ id: q.EveryYear, label: e.frequency_every_year }
|
6646
6646
|
], d = async (v) => {
|
6647
6647
|
const m = { ...A, recurrenceType: v };
|
6648
6648
|
if (A.activityType === EA.Expense) {
|
@@ -6678,11 +6678,11 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
6678
6678
|
isOpen: s,
|
6679
6679
|
onClose: () => c(!1),
|
6680
6680
|
title: e.frequency_title,
|
6681
|
-
children: /* @__PURE__ */ t(
|
6681
|
+
children: /* @__PURE__ */ t(cA, { children: l.filter(
|
6682
6682
|
(v) => (
|
6683
6683
|
// Filter out every other month and every other quarter when income since cashflow
|
6684
6684
|
// sequence doesn't support them
|
6685
|
-
A.activityType === EA.Expense || v.id !==
|
6685
|
+
A.activityType === EA.Expense || v.id !== q.EveryOtherMonth && v.id !== q.EveryOtherQuarter
|
6686
6686
|
)
|
6687
6687
|
).map((v) => /* @__PURE__ */ u(g.Fragment, { children: [
|
6688
6688
|
/* @__PURE__ */ t(Z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ u(hA, { onClick: () => d(v.id), children: [
|
@@ -6749,7 +6749,7 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
6749
6749
|
)
|
6750
6750
|
] });
|
6751
6751
|
}, td = I(ed), nd = ({ activity: A, onDeleted: e }) => {
|
6752
|
-
const { recurring: n } = b(), { categories: r } = xA(), { deleteCashflowSequence: a, deleteScheduledPayment: i, paidActivities: o } = BA(), { filter: s, setFilter: c, transactions: h } =
|
6752
|
+
const { recurring: n } = b(), { categories: r } = xA(), { deleteCashflowSequence: a, deleteScheduledPayment: i, paidActivities: o } = BA(), { filter: s, setFilter: c, transactions: h } = dA(), { selectedAccountGuids: l } = mA(), { onEvent: d } = V(), [C, f] = g.useState(!1), [v, m] = g.useState(""), E = r.find((N) => N.guid === A.categoryGuid), T = A.activityType === EA.Income, S = g.useMemo(
|
6753
6753
|
() => h.find((N) => N.guid === v),
|
6754
6754
|
[v]
|
6755
6755
|
);
|
@@ -6796,7 +6796,7 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
6796
6796
|
U(A.amount, "0,0.00")
|
6797
6797
|
] })
|
6798
6798
|
] }),
|
6799
|
-
/* @__PURE__ */ u(
|
6799
|
+
/* @__PURE__ */ u(cA, { sx: { bgcolor: "background.paper" }, children: [
|
6800
6800
|
A.institution && /* @__PURE__ */ u(iA, { children: [
|
6801
6801
|
/* @__PURE__ */ t(
|
6802
6802
|
Rt,
|
@@ -6868,22 +6868,22 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
6868
6868
|
}, $t = (A) => A ? { margin: "0 0 -6px -4px" } : void 0, Yn = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(we, { size: e, sx: { ...$t(A) }, children: /* @__PURE__ */ t(xo, { color: "primary", sx: { fontSize: e, ...Zt } }) }), Vn = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(we, { size: e, sx: { ...$t(A) }, children: /* @__PURE__ */ t(Po, { sx: { color: "categories.income", fontSize: e, ...Zt } }) }), Jn = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(we, { size: e, sx: { ...$t(A) }, children: /* @__PURE__ */ t(xt, { color: "error", sx: { fontSize: e, ...Zt } }) }), Zn = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(we, { size: e, sx: { ...$t(A) }, children: /* @__PURE__ */ t(ga, { color: "success", sx: { fontSize: e, ...Zt } }) }), Br = ({ copy: A, date: e, type: n }) => {
|
6869
6869
|
let r = e && No(e) ? H(A.monthly_ordinal, VA(e, "do")) : A.monthly;
|
6870
6870
|
switch (n) {
|
6871
|
-
case
|
6871
|
+
case q.EveryQuarter:
|
6872
6872
|
r = e ? H(A.quarterly_ordinal, VA(e, "do")) : A.quarterly;
|
6873
6873
|
break;
|
6874
|
-
case
|
6874
|
+
case q.EveryWeek:
|
6875
6875
|
r = e ? H(A.weekly_ordinal, VA(e, "do")) : A.weekly;
|
6876
6876
|
break;
|
6877
|
-
case
|
6877
|
+
case q.EveryYear:
|
6878
6878
|
r = e ? H(A.anually_ordinal, VA(e, "do")) : A.anually;
|
6879
6879
|
break;
|
6880
|
-
case
|
6880
|
+
case q.EveryOtherWeek:
|
6881
6881
|
r = e ? H(A.every_other_week_ordinal, VA(e, "do")) : A.every_other_week;
|
6882
6882
|
break;
|
6883
|
-
case
|
6883
|
+
case q.EveryOtherMonth:
|
6884
6884
|
r = e ? H(A.every_other_month_ordinal, VA(e, "do")) : A.every_other_month;
|
6885
6885
|
break;
|
6886
|
-
case
|
6886
|
+
case q.EveryOtherQuarter:
|
6887
6887
|
r = e ? H(A.every_other_quarter_ordinal, VA(e, "do")) : A.every_other_quarter;
|
6888
6888
|
break;
|
6889
6889
|
}
|
@@ -7012,19 +7012,19 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
7012
7012
|
transaction_type: A.transaction_type
|
7013
7013
|
};
|
7014
7014
|
switch (e) {
|
7015
|
-
case
|
7015
|
+
case q.EveryWeek:
|
7016
7016
|
r.repeat_interval = "1", r.repeat_weekday = `${st(n)}`;
|
7017
7017
|
break;
|
7018
|
-
case
|
7018
|
+
case q.EveryOtherWeek:
|
7019
7019
|
r.repeat_interval = "2", r.repeat_weekday = `${st(n)}`;
|
7020
7020
|
break;
|
7021
|
-
case
|
7021
|
+
case q.EveryMonth:
|
7022
7022
|
r.repeat_day = `${nt(n)}`;
|
7023
7023
|
break;
|
7024
|
-
case
|
7024
|
+
case q.EveryQuarter:
|
7025
7025
|
r.repeat_interval = "3", r.repeat_day = `${nt(n)}`;
|
7026
7026
|
break;
|
7027
|
-
case
|
7027
|
+
case q.EveryYear:
|
7028
7028
|
r.repeat_day = `${nt(n)}`, r.repeat_month = `${_e(n)}`;
|
7029
7029
|
break;
|
7030
7030
|
}
|
@@ -7047,18 +7047,18 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
7047
7047
|
merchant_guid: A.merchant_guid,
|
7048
7048
|
occurs_on: Sn(n, { representation: "date" }),
|
7049
7049
|
recurrence_day: 0,
|
7050
|
-
recurrence_type:
|
7050
|
+
recurrence_type: q.EveryMonth
|
7051
7051
|
};
|
7052
7052
|
switch (e) {
|
7053
|
-
case
|
7054
|
-
case
|
7053
|
+
case q.EveryWeek:
|
7054
|
+
case q.EveryOtherWeek:
|
7055
7055
|
r.recurrence_day = st(n);
|
7056
7056
|
break;
|
7057
|
-
case
|
7058
|
-
case
|
7059
|
-
case
|
7060
|
-
case
|
7061
|
-
case
|
7057
|
+
case q.EveryMonth:
|
7058
|
+
case q.EveryOtherMonth:
|
7059
|
+
case q.EveryQuarter:
|
7060
|
+
case q.EveryOtherQuarter:
|
7061
|
+
case q.EveryYear:
|
7062
7062
|
r.recurrence_day = nt(n);
|
7063
7063
|
break;
|
7064
7064
|
}
|
@@ -7096,40 +7096,40 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
7096
7096
|
transaction: o
|
7097
7097
|
}) => {
|
7098
7098
|
const { recurring: s } = b(), c = [
|
7099
|
-
{ id:
|
7100
|
-
{ id:
|
7101
|
-
{ id:
|
7102
|
-
{ id:
|
7103
|
-
{ id:
|
7104
|
-
{ id:
|
7105
|
-
{ id:
|
7099
|
+
{ id: q.EveryWeek, label: s.frequency_every_week },
|
7100
|
+
{ id: q.EveryOtherWeek, label: s.frequency_every_other_week },
|
7101
|
+
{ id: q.EveryMonth, label: s.frequency_every_month },
|
7102
|
+
{ id: q.EveryOtherMonth, label: s.frequency_every_other_month },
|
7103
|
+
{ id: q.EveryQuarter, label: s.frequency_every_quarter },
|
7104
|
+
{ id: q.EveryOtherQuarter, label: s.frequency_every_other_quarter },
|
7105
|
+
{ id: q.EveryYear, label: s.frequency_every_year }
|
7106
7106
|
];
|
7107
7107
|
g.useEffect(() => {
|
7108
7108
|
const l = NA(o.date);
|
7109
|
-
i(Nr(l)), a(
|
7109
|
+
i(Nr(l)), a(q.EveryMonth);
|
7110
7110
|
}, [o]);
|
7111
7111
|
const h = (l) => {
|
7112
7112
|
const d = NA(o.date);
|
7113
7113
|
switch (Number(l.target.value)) {
|
7114
|
-
case
|
7114
|
+
case q.EveryWeek:
|
7115
7115
|
i(Fn(d));
|
7116
7116
|
break;
|
7117
|
-
case
|
7117
|
+
case q.EveryOtherWeek:
|
7118
7118
|
i(xc(d));
|
7119
7119
|
break;
|
7120
|
-
case
|
7120
|
+
case q.EveryMonth:
|
7121
7121
|
i(Nr(d));
|
7122
7122
|
break;
|
7123
|
-
case
|
7123
|
+
case q.EveryOtherMonth:
|
7124
7124
|
i(Pc(d));
|
7125
7125
|
break;
|
7126
|
-
case
|
7126
|
+
case q.EveryQuarter:
|
7127
7127
|
i(Ka(d));
|
7128
7128
|
break;
|
7129
|
-
case
|
7129
|
+
case q.EveryOtherQuarter:
|
7130
7130
|
i(Nc(d));
|
7131
7131
|
break;
|
7132
|
-
case
|
7132
|
+
case q.EveryYear:
|
7133
7133
|
i(Mc(d));
|
7134
7134
|
break;
|
7135
7135
|
}
|
@@ -7174,7 +7174,7 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
7174
7174
|
label: e,
|
7175
7175
|
onAddActivity: n = () => null
|
7176
7176
|
}) => {
|
7177
|
-
const { recurring: r } = b(), { addCashflowEvent: a, addCashflowSequence: i, addScheduledPayment: o } = BA(), { filter: s, setFilter: c, transactions: h } =
|
7177
|
+
const { recurring: r } = b(), { addCashflowEvent: a, addCashflowSequence: i, addScheduledPayment: o } = BA(), { filter: s, setFilter: c, transactions: h } = dA(), [l, d] = g.useState(!1), [C, f] = g.useState(""), [v, m] = g.useState(q.EveryMonth), [E, T] = g.useState(null), S = g.useMemo(
|
7178
7178
|
() => h.find((x) => x.guid === C),
|
7179
7179
|
[C]
|
7180
7180
|
), L = () => {
|
@@ -7268,14 +7268,14 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
7268
7268
|
scheduledPaymentGuid: r.guid
|
7269
7269
|
};
|
7270
7270
|
}), gd = () => {
|
7271
|
-
const { recurring: A } = b(), { scheduledPayments: e } = BA(), { transactions: n } =
|
7272
|
-
a(
|
7271
|
+
const { recurring: A } = b(), { scheduledPayments: e } = BA(), { transactions: n } = dA(), { selectedAccounts: r } = mA(), { onEvent: a } = V(), i = hd(r, e, n), o = (c) => {
|
7272
|
+
a(j.RECURRING_ACTIVITY_CLICK_EXPENSE, {
|
7273
7273
|
transaction_guid: c.transactionGuid
|
7274
7274
|
});
|
7275
7275
|
}, s = () => {
|
7276
|
-
a(
|
7276
|
+
a(j.RECURRING_ACTIVITY_CLICK_ADD_EXPENSE);
|
7277
7277
|
};
|
7278
|
-
return /* @__PURE__ */ u(
|
7278
|
+
return /* @__PURE__ */ u(cA, { sx: { bgcolor: "background.paper" }, children: [
|
7279
7279
|
i.map((c, h) => /* @__PURE__ */ u(g.Fragment, { children: [
|
7280
7280
|
/* @__PURE__ */ t(qt, { activity: c, onActivityClick: o, showOrdinal: !0 }),
|
7281
7281
|
/* @__PURE__ */ t(Q, { variant: h < i.length - 1 ? "inset" : "fullWidth" })
|
@@ -7285,7 +7285,7 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
7285
7285
|
}, Cd = I(gd), pn = (A) => {
|
7286
7286
|
let e = A.user_name || A.feed_name || "";
|
7287
7287
|
return A.account_number && (e = `${e} *${A.account_number}`), e;
|
7288
|
-
}, mn = (A) => A ? A.repeat_interval === "1" ?
|
7288
|
+
}, mn = (A) => A ? A.repeat_interval === "1" ? q.EveryWeek : A.repeat_interval === "2" ? q.EveryOtherWeek : A.repeat_day && !A.repeat_month && !A.repeat_interval ? q.EveryMonth : A.repeat_day && A.repeat_interval === "3" ? q.EveryQuarter : A.repeat_day && A.repeat_month ? q.EveryYear : q.Unknown : q.Unknown, fd = (A, e, n, r, a, i) => {
|
7289
7289
|
const o = e.filter((l) => {
|
7290
7290
|
const d = a.find((f) => f.guid === l.cashflow_sequence_guid), C = i.find((f) => f.guid === l.transaction_guid);
|
7291
7291
|
return d?.end_date === null && C;
|
@@ -7363,14 +7363,14 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
7363
7363
|
}, c = e.recurrence_day, h = AA(), l = wA(AA()), d = ce(AA(), 30);
|
7364
7364
|
let C = l;
|
7365
7365
|
switch (e.recurrence_type) {
|
7366
|
-
case
|
7366
|
+
case q.EveryWeek:
|
7367
7367
|
for (C = hn(C, c); CA(C, d); )
|
7368
7368
|
r.push({
|
7369
7369
|
...s,
|
7370
7370
|
expectedDate: C
|
7371
7371
|
}), C = hn(C, c);
|
7372
7372
|
break;
|
7373
|
-
case
|
7373
|
+
case q.EveryOtherWeek:
|
7374
7374
|
if (CA(o, l))
|
7375
7375
|
for (C = ke(o, 2); CA(C, d); )
|
7376
7376
|
ot(C, l) && r.push({
|
@@ -7393,7 +7393,7 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
7393
7393
|
}), C = ke(C, 2);
|
7394
7394
|
}
|
7395
7395
|
break;
|
7396
|
-
case
|
7396
|
+
case q.EveryMonth:
|
7397
7397
|
r.push({
|
7398
7398
|
...s,
|
7399
7399
|
expectedDate: gn(C, c)
|
@@ -7402,7 +7402,7 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
7402
7402
|
expectedDate: WA(gn(C, c), 1)
|
7403
7403
|
});
|
7404
7404
|
break;
|
7405
|
-
case
|
7405
|
+
case q.EveryOtherMonth:
|
7406
7406
|
CA(o, l) ? CA(WA(o, 2), d) && r.push({
|
7407
7407
|
...s,
|
7408
7408
|
expectedDate: WA(o, 2)
|
@@ -7411,7 +7411,7 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
7411
7411
|
expectedDate: o
|
7412
7412
|
});
|
7413
7413
|
break;
|
7414
|
-
case
|
7414
|
+
case q.EveryQuarter:
|
7415
7415
|
CA(o, l) ? CA(xe(o, 1), d) && r.push({
|
7416
7416
|
...s,
|
7417
7417
|
expectedDate: xe(o, 1)
|
@@ -7420,7 +7420,7 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
7420
7420
|
expectedDate: o
|
7421
7421
|
});
|
7422
7422
|
break;
|
7423
|
-
case
|
7423
|
+
case q.EveryOtherQuarter:
|
7424
7424
|
CA(o, l) ? CA(xe(o, 2), d) && r.push({
|
7425
7425
|
...s,
|
7426
7426
|
expectedDate: xe(o, 2)
|
@@ -7429,7 +7429,7 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
7429
7429
|
expectedDate: o
|
7430
7430
|
});
|
7431
7431
|
break;
|
7432
|
-
case
|
7432
|
+
case q.EveryYear:
|
7433
7433
|
CA(o, l) ? CA(it(o, 1), d) && r.push({
|
7434
7434
|
...s,
|
7435
7435
|
expectedDate: it(o, 1)
|
@@ -7463,20 +7463,20 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
7463
7463
|
sequenceGuid: i.guid
|
7464
7464
|
};
|
7465
7465
|
}), md = () => {
|
7466
|
-
const { recurring: A } = b(), { selectedAccounts: e } = mA(), { cashflowEvents: n, cashflowSequences: r, projectedEvents: a } = BA(), { transactions: i } =
|
7466
|
+
const { recurring: A } = b(), { selectedAccounts: e } = mA(), { cashflowEvents: n, cashflowSequences: r, projectedEvents: a } = BA(), { transactions: i } = dA(), { onEvent: o } = V(), s = pd(
|
7467
7467
|
e,
|
7468
7468
|
n,
|
7469
7469
|
a,
|
7470
7470
|
r.filter((l) => !l.end_date),
|
7471
7471
|
i
|
7472
7472
|
), c = (l) => {
|
7473
|
-
o(
|
7473
|
+
o(j.RECURRING_ACTIVITY_CLICK_INCOME, {
|
7474
7474
|
transaction_guid: l.transactionGuid
|
7475
7475
|
});
|
7476
7476
|
}, h = () => {
|
7477
|
-
o(
|
7477
|
+
o(j.RECURRING_ACTIVITY_CLICK_ADD_INCOME);
|
7478
7478
|
};
|
7479
|
-
return /* @__PURE__ */ u(
|
7479
|
+
return /* @__PURE__ */ u(cA, { sx: { bgcolor: "background.paper" }, children: [
|
7480
7480
|
s.map((l, d) => /* @__PURE__ */ u(g.Fragment, { children: [
|
7481
7481
|
/* @__PURE__ */ t(qt, { activity: l, onActivityClick: c, showOrdinal: !0 }),
|
7482
7482
|
/* @__PURE__ */ t(Q, { variant: d < s.length - 1 ? "inset" : "fullWidth" })
|
@@ -7597,7 +7597,7 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
7597
7597
|
const A = pA(), { onEvent: e } = V(), { selectedDay: n } = BA(), [r, a] = g.useState(
|
7598
7598
|
gr(/* @__PURE__ */ new Date()) * Ze + Kr
|
7599
7599
|
), i = (s) => {
|
7600
|
-
a(gr(s) * Ze + Kr), e(
|
7600
|
+
a(gr(s) * Ze + Kr), e(j.RECURRING_ACTIVITY_CLICK_CALENDAR_RIGHT);
|
7601
7601
|
}, o = /* @__PURE__ */ t(
|
7602
7602
|
On,
|
7603
7603
|
{
|
@@ -7672,7 +7672,7 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
7672
7672
|
/* @__PURE__ */ t(y, { bold: !0, variant: "Body", children: i }),
|
7673
7673
|
n && /* @__PURE__ */ t(oA, { onClick: n, sx: { mt: -12 }, variant: "text", children: o.reset })
|
7674
7674
|
] }),
|
7675
|
-
A.length === 0 ? /* @__PURE__ */ t(y, { fontStyle: "italic", py: 24, sx: { textAlign: "center" }, children: o.no_activities }) : /* @__PURE__ */ t(
|
7675
|
+
A.length === 0 ? /* @__PURE__ */ t(y, { fontStyle: "italic", py: 24, sx: { textAlign: "center" }, children: o.no_activities }) : /* @__PURE__ */ t(cA, { children: e ? A.map((c, h) => /* @__PURE__ */ u(iA, { children: [
|
7676
7676
|
/* @__PURE__ */ t(
|
7677
7677
|
qt,
|
7678
7678
|
{
|
@@ -7685,7 +7685,7 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
7685
7685
|
/* @__PURE__ */ t(Q, { sx: { mx: 24 } })
|
7686
7686
|
] })) : s.map((c) => /* @__PURE__ */ u(iA, { children: [
|
7687
7687
|
/* @__PURE__ */ t(Z, { children: /* @__PURE__ */ t(
|
7688
|
-
|
7688
|
+
cA,
|
7689
7689
|
{
|
7690
7690
|
subheader: /* @__PURE__ */ t(je, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ t(y, { bold: !0, variant: "XSmall", children: J(
|
7691
7691
|
c.activities[0].occurredOnDate || c.activities[0].expectedDate,
|
@@ -7754,11 +7754,11 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
7754
7754
|
} = BA(), [h, l] = g.useState(0), { onEvent: d } = V(), C = n.filter(on), f = a.filter(on), v = r.filter(on), m = C.filter(St).reduce(At, 0), E = f.filter(St).reduce(At, 0), T = v.filter(St).reduce(At, 0), S = C.filter(St).length, L = C.filter(an).reduce(At, 0), D = f.filter(an).reduce(At, 0), N = C.filter(an).length, x = (k, K) => {
|
7755
7755
|
l(K);
|
7756
7756
|
}, X = (k) => {
|
7757
|
-
d(
|
7757
|
+
d(j.RECURRING_ACTIVITY_CLICK_UPCOMING, {
|
7758
7758
|
transaction_guid: k.transactionGuid
|
7759
7759
|
});
|
7760
7760
|
}, B = (k) => {
|
7761
|
-
d(
|
7761
|
+
d(j.RECURRING_ACTIVITY_CLICK_PAID, {
|
7762
7762
|
transaction_guid: k.transactionGuid
|
7763
7763
|
});
|
7764
7764
|
};
|
@@ -7833,7 +7833,7 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
7833
7833
|
] }) })
|
7834
7834
|
] });
|
7835
7835
|
}, xd = I(Od), Pd = ({ onBackClick: A, sx: e = {} }) => {
|
7836
|
-
const { accounts: n } = OA(), { recurring: r } = b(), { isInitialized: a, selectedAccountGuids: i, setSelectedAccounts: o } = mA(), { setFilter: s } =
|
7836
|
+
const { accounts: n } = OA(), { recurring: r } = b(), { isInitialized: a, selectedAccountGuids: i, setSelectedAccounts: o } = mA(), { setFilter: s } = dA(), { isLoading: c } = BA(), { onEvent: h } = V();
|
7837
7837
|
g.useEffect(() => {
|
7838
7838
|
o(n);
|
7839
7839
|
}, [n]), g.useEffect(() => {
|
@@ -7852,11 +7852,11 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
7852
7852
|
label: r.settings,
|
7853
7853
|
iconName: "settings",
|
7854
7854
|
onClick: () => {
|
7855
|
-
d(!0), h(
|
7855
|
+
d(!0), h(j.RECURRING_ACTIVITY_CLICK_SETTINGS);
|
7856
7856
|
}
|
7857
7857
|
}
|
7858
7858
|
],
|
7859
|
-
onAccountsFilterClick: () => h(
|
7859
|
+
onAccountsFilterClick: () => h(j.RECURRING_ACTIVITY_CLICK_FILTER),
|
7860
7860
|
onBackClick: A,
|
7861
7861
|
sx: e,
|
7862
7862
|
title: r.title,
|
@@ -7905,7 +7905,7 @@ const Hr = "connect_widget", zr = "connections_widget", Ul = ({
|
|
7905
7905
|
)
|
7906
7906
|
] });
|
7907
7907
|
}, Md = I(Nd), Rd = ({ onPrimaryCtaClick: A, sx: e }) => {
|
7908
|
-
const { recurring: n } = b(), { isInitialized: r, selectedAccountGuids: a } = mA(), { setFilter: i } =
|
7908
|
+
const { recurring: n } = b(), { isInitialized: r, selectedAccountGuids: a } = mA(), { setFilter: i } = dA();
|
7909
7909
|
return g.useEffect(() => {
|
7910
7910
|
r && i({
|
7911
7911
|
dateRange: { start: te(AA(), 90), end: Re() },
|
@@ -8381,7 +8381,7 @@ const jd = ({ activity: A }) => /* @__PURE__ */ u(iA, { children: [
|
|
8381
8381
|
0
|
8382
8382
|
);
|
8383
8383
|
return /* @__PURE__ */ u(
|
8384
|
-
|
8384
|
+
cA,
|
8385
8385
|
{
|
8386
8386
|
sx: {
|
8387
8387
|
border: "1px solid",
|
@@ -8403,7 +8403,7 @@ const jd = ({ activity: A }) => /* @__PURE__ */ u(iA, { children: [
|
|
8403
8403
|
),
|
8404
8404
|
/* @__PURE__ */ t(Q, {}),
|
8405
8405
|
o.length > 0 && /* @__PURE__ */ t(Z, { children: /* @__PURE__ */ t(
|
8406
|
-
|
8406
|
+
cA,
|
8407
8407
|
{
|
8408
8408
|
subheader: /* @__PURE__ */ t(Gr, { total: c, type: ut.INCOME }),
|
8409
8409
|
sx: { width: "100%" },
|
@@ -8411,7 +8411,7 @@ const jd = ({ activity: A }) => /* @__PURE__ */ u(iA, { children: [
|
|
8411
8411
|
}
|
8412
8412
|
) }),
|
8413
8413
|
s.length > 0 && /* @__PURE__ */ t(Z, { children: /* @__PURE__ */ t(
|
8414
|
-
|
8414
|
+
cA,
|
8415
8415
|
{
|
8416
8416
|
subheader: /* @__PURE__ */ t(Gr, { total: h, type: ut.EXPENSE }),
|
8417
8417
|
sx: { width: "100%" },
|
@@ -8546,7 +8546,7 @@ const jd = ({ activity: A }) => /* @__PURE__ */ u(iA, { children: [
|
|
8546
8546
|
) : c.map((h) => {
|
8547
8547
|
const { name: l, nickname: d, institution_guid: C, account_number: f } = h.account, v = d || l;
|
8548
8548
|
return /* @__PURE__ */ t(
|
8549
|
-
|
8549
|
+
cA,
|
8550
8550
|
{
|
8551
8551
|
sx: {
|
8552
8552
|
border: "1px solid",
|
@@ -8898,8 +8898,8 @@ const jd = ({ activity: A }) => /* @__PURE__ */ u(iA, { children: [
|
|
8898
8898
|
transform: rotate(360deg);
|
8899
8899
|
}
|
8900
8900
|
`, cu = () => {
|
8901
|
-
const { addCashflowEvent: A, addCashflowSequence: e, cashflowSequences: n } = BA(), { cashflow: r, common: a } = b(), { completeOnboarding: i } = Bn(), { isDirty: o } = Ve(), { isMobile: s } = jA(), { setDisplayedDate: c } = mA(), { filter: h, setFilter: l, transactions: d } =
|
8902
|
-
() => d.find((
|
8901
|
+
const { addCashflowEvent: A, addCashflowSequence: e, cashflowSequences: n } = BA(), { cashflow: r, common: a } = b(), { completeOnboarding: i } = Bn(), { isDirty: o } = Ve(), { isMobile: s } = jA(), { setDisplayedDate: c } = mA(), { filter: h, setFilter: l, transactions: d } = dA(), C = pA(), [f, v] = ae(!0), [m, E] = g.useState(q.EveryMonth), [T, S] = ae(!1), [L, D] = g.useState(null), [N, x] = ae(1), [X, B] = ae([]), [k, K] = ae(""), _ = g.useMemo(
|
8902
|
+
() => d.find((F) => F.guid === k),
|
8903
8903
|
[k]
|
8904
8904
|
), G = !!n.length, aA = async () => {
|
8905
8905
|
x(2), c(
|
@@ -8910,15 +8910,15 @@ const jd = ({ activity: A }) => /* @__PURE__ */ u(iA, { children: [
|
|
8910
8910
|
}, $ = async () => {
|
8911
8911
|
if (!(X.length < 1)) {
|
8912
8912
|
S(!0);
|
8913
|
-
for (let
|
8914
|
-
const
|
8915
|
-
|
8916
|
-
|
8917
|
-
|
8918
|
-
),
|
8919
|
-
if (
|
8920
|
-
const
|
8921
|
-
await A(
|
8913
|
+
for (let F = 0; F < X.length; F++) {
|
8914
|
+
const sA = X[F], KA = Ua(
|
8915
|
+
sA,
|
8916
|
+
sA.frequency,
|
8917
|
+
sA.nextDate
|
8918
|
+
), z = await e(KA);
|
8919
|
+
if (z) {
|
8920
|
+
const lA = Wa(z, sA);
|
8921
|
+
await A(lA);
|
8922
8922
|
}
|
8923
8923
|
}
|
8924
8924
|
i();
|
@@ -8966,13 +8966,13 @@ const jd = ({ activity: A }) => /* @__PURE__ */ u(iA, { children: [
|
|
8966
8966
|
/* @__PURE__ */ t(fe, { pb: 12, children: r.add_income_title }),
|
8967
8967
|
/* @__PURE__ */ t(vA, { mb: 24, children: r.add_income_description }),
|
8968
8968
|
X.length > 0 && !_ && /* @__PURE__ */ u(iA, { children: [
|
8969
|
-
/* @__PURE__ */ t(
|
8969
|
+
/* @__PURE__ */ t(cA, { children: X.map((F, sA) => /* @__PURE__ */ u(g.Fragment, { children: [
|
8970
8970
|
/* @__PURE__ */ t(Qn, { bgcolor: "background.paper", children: Yt(
|
8971
|
-
fA(
|
8971
|
+
fA(F.nextDate || F.date)
|
8972
8972
|
) }),
|
8973
|
-
/* @__PURE__ */ t(Xn, { transaction:
|
8974
|
-
|
8975
|
-
] },
|
8973
|
+
/* @__PURE__ */ t(Xn, { transaction: F }),
|
8974
|
+
sA !== X.length - 1 && /* @__PURE__ */ t(Q, {})
|
8975
|
+
] }, F.guid)) }),
|
8976
8976
|
/* @__PURE__ */ u(w, { alignItems: "center", direction: "row", children: [
|
8977
8977
|
/* @__PURE__ */ t(Q, { sx: { flexGrow: 1 } }),
|
8978
8978
|
/* @__PURE__ */ t(
|
@@ -8989,12 +8989,12 @@ const jd = ({ activity: A }) => /* @__PURE__ */ u(iA, { children: [
|
|
8989
8989
|
Ya,
|
8990
8990
|
{
|
8991
8991
|
bgcolor: "background.paper",
|
8992
|
-
onSearch: (
|
8992
|
+
onSearch: (F) => l({
|
8993
8993
|
...h,
|
8994
|
-
custom: (
|
8994
|
+
custom: (sA) => F ? Ja(sA, F) : dt(sA)
|
8995
8995
|
}),
|
8996
|
-
onSelected: (
|
8997
|
-
K(
|
8996
|
+
onSelected: (F) => {
|
8997
|
+
K(F), v(!1);
|
8998
8998
|
}
|
8999
8999
|
}
|
9000
9000
|
),
|
@@ -9018,8 +9018,8 @@ const jd = ({ activity: A }) => /* @__PURE__ */ u(iA, { children: [
|
|
9018
9018
|
{
|
9019
9019
|
"aria-disabled": !_ || !L,
|
9020
9020
|
onClick: () => {
|
9021
|
-
const
|
9022
|
-
|
9021
|
+
const F = [...X];
|
9022
|
+
F.push({ ..._, nextDate: L, frequency: m }), B(F), K("");
|
9023
9023
|
},
|
9024
9024
|
variant: "contained",
|
9025
9025
|
children: a.confirm_button
|
@@ -9071,7 +9071,7 @@ const jd = ({ activity: A }) => /* @__PURE__ */ u(iA, { children: [
|
|
9071
9071
|
setSelectedAccounts: a,
|
9072
9072
|
shouldDisableNextDate: i,
|
9073
9073
|
shouldDisablePrevDate: o
|
9074
|
-
} = mA(), { onEvent: s } = V(), { cashAccounts: c } = OA(), { setFilter: h } =
|
9074
|
+
} = mA(), { onEvent: s } = V(), { cashAccounts: c } = OA(), { setFilter: h } = dA(), { userProfile: l } = Ut(), { dateRange: d, setSelectedCashAccounts: C } = Ve(), { cashflow: f } = b(), [v, m] = g.useState(!1);
|
9075
9075
|
return g.useEffect(() => {
|
9076
9076
|
a(c);
|
9077
9077
|
}, [c]), g.useEffect(() => {
|
@@ -9088,7 +9088,7 @@ const jd = ({ activity: A }) => /* @__PURE__ */ u(iA, { children: [
|
|
9088
9088
|
label: f.cashflow_settings,
|
9089
9089
|
iconName: "settings",
|
9090
9090
|
onClick: () => {
|
9091
|
-
m(!0), s(
|
9091
|
+
m(!0), s(j.CASH_FLOW_CLICK_SETTINGS);
|
9092
9092
|
}
|
9093
9093
|
}
|
9094
9094
|
],
|
@@ -9101,7 +9101,7 @@ const jd = ({ activity: A }) => /* @__PURE__ */ u(iA, { children: [
|
|
9101
9101
|
},
|
9102
9102
|
dateRange: d,
|
9103
9103
|
dateRangeVariant: "readonly",
|
9104
|
-
onAccountsFilterClick: () => s(
|
9104
|
+
onAccountsFilterClick: () => s(j.CASH_FLOW_CLICK_FILTER),
|
9105
9105
|
onBackClick: A,
|
9106
9106
|
sx: e,
|
9107
9107
|
title: f.title,
|
@@ -9275,7 +9275,7 @@ const fu = /^[ a-zA-ZÀ-ÿ0-9]+$/, vu = 50, jr = 65, pu = ({
|
|
9275
9275
|
searchValue: o
|
9276
9276
|
}
|
9277
9277
|
),
|
9278
|
-
/* @__PURE__ */ t(ie, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(
|
9278
|
+
/* @__PURE__ */ t(ie, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(cA, { children: /* @__PURE__ */ u(O, { height: A, overflow: "auto", ref: l, children: [
|
9279
9279
|
/* @__PURE__ */ u(O, { height: d.getTotalSize(), position: "relative", children: [
|
9280
9280
|
n && /* @__PURE__ */ t(me, { label: "Loading...", size: 32 }),
|
9281
9281
|
!n && d.getVirtualItems().length > 0 && d.getVirtualItems().map((C) => {
|
@@ -9574,7 +9574,7 @@ const sn = ({
|
|
9574
9574
|
sn,
|
9575
9575
|
{
|
9576
9576
|
onClick: () => {
|
9577
|
-
v({ is_hidden: !c.is_hidden }), f(
|
9577
|
+
v({ is_hidden: !c.is_hidden }), f(j.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: c.guid });
|
9578
9578
|
},
|
9579
9579
|
primaryText: c.is_hidden ? d.unhide_account : d.hide_Account,
|
9580
9580
|
secondaryText: c.is_hidden ? d.include_this_account : d.exclude_this_account,
|
@@ -9585,7 +9585,7 @@ const sn = ({
|
|
9585
9585
|
sn,
|
9586
9586
|
{
|
9587
9587
|
onClick: () => {
|
9588
|
-
e(!0), f(
|
9588
|
+
e(!0), f(j.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
|
9589
9589
|
account_guid: c.guid
|
9590
9590
|
});
|
9591
9591
|
},
|
@@ -9599,7 +9599,7 @@ const sn = ({
|
|
9599
9599
|
{
|
9600
9600
|
isLast: !0,
|
9601
9601
|
onClick: () => {
|
9602
|
-
r(!0), f(
|
9602
|
+
r(!0), f(j.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
|
9603
9603
|
account_guid: c.guid
|
9604
9604
|
});
|
9605
9605
|
},
|
@@ -9633,7 +9633,7 @@ const sn = ({
|
|
9633
9633
|
isOpen: n,
|
9634
9634
|
onClose: () => r(!1),
|
9635
9635
|
title: d.mark_as_duplicate,
|
9636
|
-
children: /* @__PURE__ */ t(
|
9636
|
+
children: /* @__PURE__ */ t(cA, { children: C.map((E) => {
|
9637
9637
|
const T = C.indexOf(E) === C.length - 1;
|
9638
9638
|
return /* @__PURE__ */ u(g.Fragment, { children: [
|
9639
9639
|
/* @__PURE__ */ t(
|
@@ -9645,7 +9645,7 @@ const sn = ({
|
|
9645
9645
|
}
|
9646
9646
|
}
|
9647
9647
|
),
|
9648
|
-
/* @__PURE__ */ t(
|
9648
|
+
/* @__PURE__ */ t(cA, { sx: { ml: T ? 0 : 24 } })
|
9649
9649
|
] }, E.guid);
|
9650
9650
|
}) })
|
9651
9651
|
}
|
@@ -10031,7 +10031,7 @@ const sn = ({
|
|
10031
10031
|
] });
|
10032
10032
|
}, qu = I(zu), Bu = () => {
|
10033
10033
|
const { onEvent: A } = V();
|
10034
|
-
return g.useEffect(() => A(
|
10034
|
+
return g.useEffect(() => A(j.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ u(cA, { children: [
|
10035
10035
|
/* @__PURE__ */ t(qu, {}),
|
10036
10036
|
/* @__PURE__ */ t(Mu, {}),
|
10037
10037
|
/* @__PURE__ */ t(Pu, {})
|
@@ -10093,13 +10093,13 @@ const sn = ({
|
|
10093
10093
|
)
|
10094
10094
|
] });
|
10095
10095
|
}, ku = I(_u), Gu = () => {
|
10096
|
-
const [A, e] = g.useState(""), { onEvent: n } = V(), { selectedAccount: r } = re(), { accounts: a } = b(), { setFilter: i, sortedTransactions: o } =
|
10096
|
+
const [A, e] = g.useState(""), { onEvent: n } = V(), { selectedAccount: r } = re(), { accounts: a } = b(), { setFilter: i, sortedTransactions: o } = dA(), s = g.useMemo(() => o.find((c) => c.guid === A), [A]);
|
10097
10097
|
return g.useEffect(() => {
|
10098
10098
|
i({
|
10099
10099
|
dateRange: { start: vo(po(), 90), end: mo() },
|
10100
10100
|
accounts: [r.guid]
|
10101
10101
|
});
|
10102
|
-
}, [r]), g.useEffect(() => n(
|
10102
|
+
}, [r]), g.useEffect(() => n(j.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ u(iA, { children: [
|
10103
10103
|
/* @__PURE__ */ t(vt, { onClick: e }),
|
10104
10104
|
s && /* @__PURE__ */ t(
|
10105
10105
|
gA,
|
@@ -10180,14 +10180,15 @@ const sn = ({
|
|
10180
10180
|
}, { top_level_category_guid: i, category_guid: o } = a;
|
10181
10181
|
return e[i] || (e[i] = {}), e[i][o] || (e[i][o] = []), e[i][o].push(a), e;
|
10182
10182
|
}, {}), t1 = (A, e) => {
|
10183
|
-
console.log("getStackedLineChartData (input):", { groupedTotals: A, datasetLength: e });
|
10184
10183
|
const n = /* @__PURE__ */ new Set();
|
10185
|
-
Object.values(A).forEach((i) => {
|
10184
|
+
console.log("getStackedLineChartData (input):", { groupedTotals: A, datasetLength: e }), Object.values(A).forEach((i) => {
|
10186
10185
|
Object.values(i).forEach((o) => {
|
10187
10186
|
o.forEach((s) => n.add(s.date));
|
10188
10187
|
});
|
10189
10188
|
});
|
10190
|
-
const r = Array.from(n).sort((i, o) => i.getTime() - o.getTime())
|
10189
|
+
const r = Array.from(n).sort((i, o) => i.getTime() - o.getTime());
|
10190
|
+
console.log("getStackedLineChartData (mid):", { allUniqueMonths: n, sortedUniqueMonths: r });
|
10191
|
+
const a = Object.entries(A).flatMap(
|
10191
10192
|
([i, o]) => Object.entries(o).map(([s, c]) => {
|
10192
10193
|
const h = r.map((l) => {
|
10193
10194
|
const d = c.find(
|
@@ -10310,13 +10311,13 @@ const sn = ({
|
|
10310
10311
|
(v, m) => (m.available_balance || m.balance || 0) + v,
|
10311
10312
|
0
|
10312
10313
|
), f = (v) => {
|
10313
|
-
e(v.guid), s(
|
10314
|
+
e(v.guid), s(j.ACCOUNTS_CLICK_ACCOUNT, {
|
10314
10315
|
account_guid: v.guid,
|
10315
10316
|
account_type: v.account_type
|
10316
10317
|
});
|
10317
10318
|
};
|
10318
10319
|
return /* @__PURE__ */ t(
|
10319
|
-
|
10320
|
+
cA,
|
10320
10321
|
{
|
10321
10322
|
"aria-label": n.account_type_accounts[d[0].account_type],
|
10322
10323
|
subheader: /* @__PURE__ */ t(je, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ u(
|
@@ -10419,9 +10420,9 @@ const sn = ({
|
|
10419
10420
|
const f = () => {
|
10420
10421
|
i(!0), s().finally(() => {
|
10421
10422
|
i(!1);
|
10422
|
-
}), C(
|
10423
|
+
}), C(j.ACCOUNTS_CLICK_SYNC);
|
10423
10424
|
}, v = () => {
|
10424
|
-
r(!0), C(
|
10425
|
+
r(!0), C(j.ACCOUNTS_CLICK_CONNECT);
|
10425
10426
|
};
|
10426
10427
|
return /* @__PURE__ */ t(
|
10427
10428
|
He,
|
@@ -10439,7 +10440,7 @@ const sn = ({
|
|
10439
10440
|
onClick: f
|
10440
10441
|
}
|
10441
10442
|
],
|
10442
|
-
onAccountsFilterClick: () => C(
|
10443
|
+
onAccountsFilterClick: () => C(j.ACCOUNTS_CLICK_FILTER),
|
10443
10444
|
onBackClick: A,
|
10444
10445
|
sx: e,
|
10445
10446
|
title: c.title,
|
@@ -10471,7 +10472,7 @@ const sn = ({
|
|
10471
10472
|
primaryCtaLabel: r.primary_cta,
|
10472
10473
|
sx: e,
|
10473
10474
|
title: r.mini_title,
|
10474
|
-
children: /* @__PURE__ */ u(
|
10475
|
+
children: /* @__PURE__ */ u(cA, { children: [
|
10475
10476
|
i.length < 1 && /* @__PURE__ */ t(Z, { sx: { justifyContent: "center" }, children: r.no_accounts }),
|
10476
10477
|
i.map((s, c) => {
|
10477
10478
|
const h = i.indexOf(s) === i.length - 1;
|
@@ -11525,7 +11526,7 @@ const X1 = () => {
|
|
11525
11526
|
title: A.manage_accounts,
|
11526
11527
|
children: [
|
11527
11528
|
/* @__PURE__ */ t(Q, {}),
|
11528
|
-
/* @__PURE__ */ t(
|
11529
|
+
/* @__PURE__ */ t(cA, { sx: { height: "100%" }, children: r.map(({ accountType: s, accounts: c, title: h }) => /* @__PURE__ */ t(
|
11529
11530
|
j1,
|
11530
11531
|
{
|
11531
11532
|
accounts: c,
|
@@ -11722,7 +11723,7 @@ const li = ({
|
|
11722
11723
|
) }),
|
11723
11724
|
/* @__PURE__ */ t(Q, {}),
|
11724
11725
|
/* @__PURE__ */ t(
|
11725
|
-
|
11726
|
+
cA,
|
11726
11727
|
{
|
11727
11728
|
subheader: /* @__PURE__ */ t(Ar, { children: /* @__PURE__ */ u(
|
11728
11729
|
O,
|
@@ -11951,9 +11952,9 @@ const li = ({
|
|
11951
11952
|
title: A.manage_hidden_insights,
|
11952
11953
|
children: [
|
11953
11954
|
/* @__PURE__ */ t(Q, {}),
|
11954
|
-
n.length > 0 ? /* @__PURE__ */ t(
|
11955
|
+
n.length > 0 ? /* @__PURE__ */ t(cA, { sx: { height: "100%" }, children: o.map(
|
11955
11956
|
(K) => s[K.key] !== "" && /* @__PURE__ */ t(
|
11956
|
-
|
11957
|
+
cA,
|
11957
11958
|
{
|
11958
11959
|
subheader: /* @__PURE__ */ t(Ar, { children: s[K.key] }),
|
11959
11960
|
children: K.subcategories.map(
|
@@ -12056,7 +12057,7 @@ const li = ({
|
|
12056
12057
|
onClose: r,
|
12057
12058
|
shouldShowHeaderBorders: !1,
|
12058
12059
|
title: e.settings,
|
12059
|
-
children: /* @__PURE__ */ u(
|
12060
|
+
children: /* @__PURE__ */ u(cA, { children: [
|
12060
12061
|
/* @__PURE__ */ t(Q, {}),
|
12061
12062
|
A
|
12062
12063
|
] })
|
@@ -12486,7 +12487,7 @@ const pt = g.createContext(null), dh = ({
|
|
12486
12487
|
size: 16
|
12487
12488
|
}
|
12488
12489
|
);
|
12489
|
-
}, gh = (A) =>
|
12490
|
+
}, gh = (A) => _A({
|
12490
12491
|
marginTop: A.Spacing.XTiny,
|
12491
12492
|
"& .kyper-categoryicon": {
|
12492
12493
|
display: "flex"
|
@@ -13469,7 +13470,7 @@ const pt = g.createContext(null), dh = ({
|
|
13469
13470
|
}
|
13470
13471
|
)
|
13471
13472
|
] });
|
13472
|
-
}, Th = () =>
|
13473
|
+
}, Th = () => _A({
|
13473
13474
|
alignItems: "center",
|
13474
13475
|
display: "flex",
|
13475
13476
|
justifyContent: "center",
|
@@ -13583,7 +13584,7 @@ const pt = g.createContext(null), dh = ({
|
|
13583
13584
|
}
|
13584
13585
|
)
|
13585
13586
|
] });
|
13586
|
-
}, Ih = I(Sh), bh = (A, e = !0, n) =>
|
13587
|
+
}, Ih = I(Sh), bh = (A, e = !0, n) => _A({
|
13587
13588
|
alignItems: "center",
|
13588
13589
|
boxSizing: "border-box",
|
13589
13590
|
display: "flex",
|
@@ -13672,7 +13673,7 @@ const pt = g.createContext(null), dh = ({
|
|
13672
13673
|
}
|
13673
13674
|
);
|
13674
13675
|
}
|
13675
|
-
), Dh = (A, e, n, r, a, i) =>
|
13676
|
+
), Dh = (A, e, n, r, a, i) => _A({
|
13676
13677
|
height: "100%",
|
13677
13678
|
listStyleType: "none",
|
13678
13679
|
userSelect: "none",
|
@@ -14315,7 +14316,7 @@ const pt = g.createContext(null), dh = ({
|
|
14315
14316
|
return /* @__PURE__ */ u(w, { direction: "column", justifyContent: "center", maxWidth: 400, minWidth: 275, width: "100%", children: [
|
14316
14317
|
/* @__PURE__ */ t(y, { bold: !0, sx: { py: 12 }, children: `${r} ${a.by_category}` }),
|
14317
14318
|
/* @__PURE__ */ t(Q, { "aria-hidden": "true" }),
|
14318
|
-
/* @__PURE__ */ t(
|
14319
|
+
/* @__PURE__ */ t(cA, { children: A.categoryData.map((o) => /* @__PURE__ */ u(g.Fragment, { children: [
|
14319
14320
|
/* @__PURE__ */ t(
|
14320
14321
|
Z,
|
14321
14322
|
{
|
@@ -14360,7 +14361,7 @@ const pt = g.createContext(null), dh = ({
|
|
14360
14361
|
}
|
14361
14362
|
),
|
14362
14363
|
/* @__PURE__ */ t(Q, {}),
|
14363
|
-
o.categoryTotals && o.categoryTotals.length > 0 && /* @__PURE__ */ t(Ca, { in: i?.guid === o.guid, unmountOnExit: !0, children: /* @__PURE__ */ u(
|
14364
|
+
o.categoryTotals && o.categoryTotals.length > 0 && /* @__PURE__ */ t(Ca, { in: i?.guid === o.guid, unmountOnExit: !0, children: /* @__PURE__ */ u(cA, { children: [
|
14364
14365
|
i?.categoryTotals?.map((s) => /* @__PURE__ */ t(
|
14365
14366
|
Z,
|
14366
14367
|
{
|
@@ -14442,7 +14443,7 @@ const pt = g.createContext(null), dh = ({
|
|
14442
14443
|
A.palette.chartMono.chartMono1,
|
14443
14444
|
A.palette.chartMono.chartMono6
|
14444
14445
|
], Wh = () => {
|
14445
|
-
const A = Ue(), { categories: e, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: r } = xA(), { spending: a } = b(), { displayedDateRange: i, selectedAccounts: o, selectedAccountGuids: s } = mA(), { setFilter: c, sortedTransactions: h } =
|
14446
|
+
const A = Ue(), { categories: e, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: r } = xA(), { spending: a } = b(), { displayedDateRange: i, selectedAccounts: o, selectedAccountGuids: s } = mA(), { setFilter: c, sortedTransactions: h } = dA(), [l, d] = g.useState(""), [C, f] = g.useState(0), [v, m] = g.useState(""), [E, T] = g.useState(!1);
|
14446
14447
|
g.useEffect(() => {
|
14447
14448
|
r(
|
14448
14449
|
o,
|
@@ -14560,7 +14561,7 @@ const pt = g.createContext(null), dh = ({
|
|
14560
14561
|
g.useEffect(() => {
|
14561
14562
|
o(n);
|
14562
14563
|
}, [n]), g.useEffect(() => {
|
14563
|
-
i(wA(AA()), DA(AA())), h(!0), s(
|
14564
|
+
i(wA(AA()), DA(AA())), h(!0), s(j.SPENDING_VIEW);
|
14564
14565
|
}, []);
|
14565
14566
|
const l = (d) => {
|
14566
14567
|
i(d[0], d[1]);
|
@@ -14570,7 +14571,7 @@ const pt = g.createContext(null), dh = ({
|
|
14570
14571
|
{
|
14571
14572
|
accountOptions: n,
|
14572
14573
|
calendarActions: { onRangeChanged: l },
|
14573
|
-
onAccountsFilterClick: () => s(
|
14574
|
+
onAccountsFilterClick: () => s(j.SPENDING_CLICK_FILTER),
|
14574
14575
|
onBackClick: A,
|
14575
14576
|
sx: e,
|
14576
14577
|
title: r.title,
|
@@ -14651,9 +14652,9 @@ const pt = g.createContext(null), dh = ({
|
|
14651
14652
|
disableColumnMenu: !0,
|
14652
14653
|
hideFooter: !0,
|
14653
14654
|
initialState: { sorting: { sortModel: i } },
|
14654
|
-
onRowClick: () => r(
|
14655
|
+
onRowClick: () => r(j.TRENDS_CLICK_TABLE_ROW),
|
14655
14656
|
onSortModelChange: (l) => {
|
14656
|
-
o(l), r(
|
14657
|
+
o(l), r(j.TRENDS_CLICK_TABLE_SORT);
|
14657
14658
|
},
|
14658
14659
|
rows: h,
|
14659
14660
|
slotProps: { baseIconButton: { color: "secondary", sx: { ml: 8 } } },
|
@@ -14678,35 +14679,42 @@ const pt = g.createContext(null), dh = ({
|
|
14678
14679
|
});
|
14679
14680
|
}, [c, d, C, D]);
|
14680
14681
|
const B = g.useMemo(() => {
|
14681
|
-
const
|
14682
|
-
return {
|
14683
|
-
|
14684
|
-
|
14682
|
+
const F = e1(l), sA = t1(F, x), KA = Ju(sA), z = KA.filter(ju), lA = KA.filter(en);
|
14683
|
+
return console.log({
|
14684
|
+
monthlyCategoryTotals: l,
|
14685
|
+
groupedTotals: F,
|
14686
|
+
stackedLineChartData: sA,
|
14687
|
+
topLevelDatasets: KA,
|
14688
|
+
expenseDatasets: z,
|
14689
|
+
incomeDatasets: lA
|
14690
|
+
}), {
|
14691
|
+
stackedDatasets: z,
|
14692
|
+
unstackedDatasets: lA
|
14685
14693
|
};
|
14686
14694
|
}, [l]), k = g.useMemo(() => {
|
14687
|
-
const
|
14695
|
+
const F = J(
|
14688
14696
|
D.start,
|
14689
14697
|
o ? Y.MONTH_SHORT_YEAR : Y.MONTH_YEAR
|
14690
|
-
),
|
14698
|
+
), sA = J(
|
14691
14699
|
D.end,
|
14692
14700
|
o ? Y.MONTH_SHORT_YEAR : Y.MONTH_YEAR
|
14693
14701
|
);
|
14694
|
-
return `${
|
14695
|
-
}, [D, o]), K = (
|
14696
|
-
L(
|
14697
|
-
}, _ = (
|
14698
|
-
const
|
14699
|
-
h(C,
|
14700
|
-
time_period:
|
14701
|
-
}), X(
|
14702
|
+
return `${F} - ${sA}`;
|
14703
|
+
}, [D, o]), K = (F, sA) => {
|
14704
|
+
L(sA ?? S), r(j.TRENDS_CLICK_TOGGLE);
|
14705
|
+
}, _ = (F) => {
|
14706
|
+
const sA = F?.[0], KA = F?.[1], z = Zo(KA, sA);
|
14707
|
+
h(C, sA, KA), N({ start: sA, end: KA }), r(j.TRENDS_CLICK_DATE, {
|
14708
|
+
time_period: z + "M"
|
14709
|
+
}), X(z);
|
14702
14710
|
}, G = () => {
|
14703
|
-
r(
|
14704
|
-
}, aA = (
|
14705
|
-
r(
|
14706
|
-
}, $ = (
|
14707
|
-
r(
|
14708
|
-
}, TA = (
|
14709
|
-
r(
|
14711
|
+
r(j.TRENDS_CLICK_FILTER);
|
14712
|
+
}, aA = (F) => {
|
14713
|
+
r(j.TRENDS_HOVER_AREA, { category: F });
|
14714
|
+
}, $ = (F) => {
|
14715
|
+
r(j.TRENDS_HOVER_LEGEND, { category: F });
|
14716
|
+
}, TA = (F) => {
|
14717
|
+
r(j.TRENDS_HOVER_POINT, { category: F });
|
14710
14718
|
};
|
14711
14719
|
return !d || !E ? /* @__PURE__ */ t(me, {}) : /* @__PURE__ */ t(
|
14712
14720
|
He,
|
@@ -14758,7 +14766,7 @@ const pt = g.createContext(null), dh = ({
|
|
14758
14766
|
onChange: K,
|
14759
14767
|
orientation: "horizontal",
|
14760
14768
|
value: S,
|
14761
|
-
children: ["Chart", "Table"].map((
|
14769
|
+
children: ["Chart", "Table"].map((F) => /* @__PURE__ */ t(
|
14762
14770
|
wn,
|
14763
14771
|
{
|
14764
14772
|
sx: {
|
@@ -14783,10 +14791,10 @@ const pt = g.createContext(null), dh = ({
|
|
14783
14791
|
color: n.palette.grey[500]
|
14784
14792
|
}
|
14785
14793
|
},
|
14786
|
-
value:
|
14787
|
-
children:
|
14794
|
+
value: F,
|
14795
|
+
children: F === "Chart" ? /* @__PURE__ */ t(P, { name: "table_chart_view" }) : /* @__PURE__ */ t(P, { name: "format_list_bulleted" })
|
14788
14796
|
},
|
14789
|
-
|
14797
|
+
F
|
14790
14798
|
))
|
14791
14799
|
}
|
14792
14800
|
)
|
@@ -14856,7 +14864,7 @@ const pt = g.createContext(null), dh = ({
|
|
14856
14864
|
);
|
14857
14865
|
}, DC = I(a3);
|
14858
14866
|
export {
|
14859
|
-
|
14867
|
+
j as ANALYTICS_EVENTS,
|
14860
14868
|
Wr as AccountApi,
|
14861
14869
|
Da as AccountFilter,
|
14862
14870
|
as as AccountIcon,
|
@@ -14956,7 +14964,7 @@ export {
|
|
14956
14964
|
Ea as PropertyType,
|
14957
14965
|
j8 as PropertyTypeName,
|
14958
14966
|
U8 as RECURRENCE_COPY,
|
14959
|
-
|
14967
|
+
q as RecurrenceTypes,
|
14960
14968
|
oC as RecurringActivityMiniWidget,
|
14961
14969
|
Hd as RecurringActivityStore,
|
14962
14970
|
iC as RecurringActivityWidget,
|
@@ -15032,7 +15040,7 @@ export {
|
|
15032
15040
|
ba as usePrevious,
|
15033
15041
|
BA as useRecurringActivityStore,
|
15034
15042
|
jA as useScreenSize,
|
15035
|
-
|
15043
|
+
dA as useTransactionStore,
|
15036
15044
|
UA as useTransactionsUiStore,
|
15037
15045
|
Ut as useUserStore,
|
15038
15046
|
ft as useWidgetContainerProvider
|