@mx-cartographer/experiences 5.0.3 → 5.0.4
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/dist/index.es.js
CHANGED
|
@@ -6,7 +6,7 @@ import G from "@mui/material/Divider";
|
|
|
6
6
|
import rA from "@mui/material/List";
|
|
7
7
|
import De from "@mui/material/ListSubheader";
|
|
8
8
|
import Bn from "@mui/system/Stack";
|
|
9
|
-
import { AccountsIcon as Ta, P as RA, Icon as
|
|
9
|
+
import { AccountsIcon as Ta, P as RA, Icon as q, useTokens as VA, Text as v, H2 as yt, CategoryIcon as ue, DialogHeader as Na, DialogFooter as Sa, Drawer as Ya, Footer as Ba, DateRangePicker as Vn, H3 as ze, H1 as _e, TextField as st, IconWeight as te, MerchantLogo as dt, CategoryIconVariants as ao, InstitutionLogo as Xe, THEMES as Un, createMXTheme as Va } from "@mxenabled/mxui";
|
|
10
10
|
import Ua from "bowser";
|
|
11
11
|
import { getUnixTime as PA } from "date-fns/getUnixTime";
|
|
12
12
|
import { intlFormat as ka } from "date-fns/intlFormat";
|
|
@@ -295,7 +295,7 @@ const Rc = async (A, t, i = "1.0.0", n = "Experiences") => {
|
|
|
295
295
|
TRENDS_HOVER_POINT: "trends_widget_hover_chart_point",
|
|
296
296
|
TRENDS_VIEW_TRANSACTIONS: "trends_widget_view_transactions",
|
|
297
297
|
WIDGET_BACK_CLICK: "widget_back_button_click"
|
|
298
|
-
}, Pc = "do",
|
|
298
|
+
}, Pc = "do", O7 = "MMM do, yyyy", $ = {
|
|
299
299
|
TIME_STAMP_HOUR_MINUTE: {
|
|
300
300
|
hour: "numeric",
|
|
301
301
|
minute: "numeric"
|
|
@@ -380,7 +380,7 @@ const bc = [
|
|
|
380
380
|
/* IMPAIRED */
|
|
381
381
|
], mo = [...po, ...zo];
|
|
382
382
|
var lt = /* @__PURE__ */ ((A) => (A.Connected = "Connected", A.Error = "Error", A.Processing = "Processing", A.RequiresMfa = "RequiresMfa", A))(lt || {});
|
|
383
|
-
const
|
|
383
|
+
const q7 = {
|
|
384
384
|
3: "Challenged",
|
|
385
385
|
12: "Closed",
|
|
386
386
|
9: "Degraded",
|
|
@@ -430,7 +430,7 @@ const M7 = {
|
|
|
430
430
|
2: "savings"
|
|
431
431
|
}, Hc = {
|
|
432
432
|
5: "bid_landscape"
|
|
433
|
-
},
|
|
433
|
+
}, M7 = {
|
|
434
434
|
0: "Real Estate",
|
|
435
435
|
1: "Vehicle",
|
|
436
436
|
2: "Art",
|
|
@@ -770,7 +770,7 @@ const M7 = {
|
|
|
770
770
|
UNKNOWN: "help"
|
|
771
771
|
}, nr = 9999999999e-2;
|
|
772
772
|
var Ii = /* @__PURE__ */ ((A) => (A.CAD = "CAD", A.USD = "USD", A))(Ii || {}), V = /* @__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))(V || {});
|
|
773
|
-
const
|
|
773
|
+
const G7 = [
|
|
774
774
|
{ id: 0, copy: "frequency_unknown" },
|
|
775
775
|
{ id: 1, copy: "frequency_every_week" },
|
|
776
776
|
{ id: 2, copy: "frequency_every_other_week" },
|
|
@@ -779,7 +779,7 @@ const T7 = [
|
|
|
779
779
|
{ id: 5, copy: "frequency_every_quarter" },
|
|
780
780
|
{ id: 6, copy: "frequency_every_other_quarter" },
|
|
781
781
|
{ id: 7, copy: "frequency_every_year" }
|
|
782
|
-
],
|
|
782
|
+
], T7 = {
|
|
783
783
|
ERROR: "ERROR",
|
|
784
784
|
LOADING: "LOADING",
|
|
785
785
|
SUCCESS: "SUCCESS"
|
|
@@ -791,7 +791,7 @@ const qt = 44, rr = (A, t) => A.find((i) => i.guid === t), Qc = (A, t) => A.find
|
|
|
791
791
|
const i = A.find((n) => n.subCategories.find((r) => r.guid === t));
|
|
792
792
|
if (i)
|
|
793
793
|
return i.subCategories.find((n) => n.guid === t);
|
|
794
|
-
},
|
|
794
|
+
}, N7 = (A, t) => {
|
|
795
795
|
const i = [];
|
|
796
796
|
for (const n of t) {
|
|
797
797
|
const r = rr(A, n.category_guid);
|
|
@@ -812,7 +812,7 @@ const qt = 44, rr = (A, t) => A.find((i) => i.guid === t), Qc = (A, t) => A.find
|
|
|
812
812
|
});
|
|
813
813
|
}
|
|
814
814
|
return i;
|
|
815
|
-
},
|
|
815
|
+
}, S7 = (A, t) => {
|
|
816
816
|
const i = A.find((n) => n.guid === t);
|
|
817
817
|
return i ? i.guid === H.INCOME || i.parent_guid === H.INCOME : !1;
|
|
818
818
|
}, Dc = /(?<static>.*?)(?<dynamic>(?:_\d+{(?:.*?)}))|(?<staticEnd>.+)/g, g = (A, ...t) => {
|
|
@@ -835,7 +835,7 @@ const qt = 44, rr = (A, t) => A.find((i) => i.guid === t), Qc = (A, t) => A.find
|
|
|
835
835
|
[]
|
|
836
836
|
);
|
|
837
837
|
return i ? r : r.join("");
|
|
838
|
-
},
|
|
838
|
+
}, Y7 = (A, t, i, ...n) => !A || !t ? "" : g(i === 1 ? A : t, ...n), ct = () => (window?.app?.options?.language || document.querySelector("html")?.getAttribute("lang") || "en-US").toLowerCase();
|
|
839
839
|
class JA {
|
|
840
840
|
endpoint = "/";
|
|
841
841
|
headers = {};
|
|
@@ -1019,7 +1019,7 @@ class hi {
|
|
|
1019
1019
|
}
|
|
1020
1020
|
getGlobalCopy = async (t, i) => this.fetchInstance.post(`${j.LOCALIZED_CONTENT}/${t}`, { translation_key: i }).then((n) => n);
|
|
1021
1021
|
}
|
|
1022
|
-
class
|
|
1022
|
+
class B7 {
|
|
1023
1023
|
fetchInstance;
|
|
1024
1024
|
constructor(t, i) {
|
|
1025
1025
|
this.fetchInstance = new JA(t, i);
|
|
@@ -1305,7 +1305,7 @@ const Sc = (A, t) => {
|
|
|
1305
1305
|
isSmallTablet: Ot(pA().breakpoints.between("md", "lg")),
|
|
1306
1306
|
// Between 768 and 1200
|
|
1307
1307
|
isTablet: Ot(pA().breakpoints.between("md", "xl"))
|
|
1308
|
-
}),
|
|
1308
|
+
}), V7 = (A) => {
|
|
1309
1309
|
const t = oo();
|
|
1310
1310
|
return at(() => {
|
|
1311
1311
|
t.current = A;
|
|
@@ -1341,7 +1341,7 @@ const Sc = (A, t) => {
|
|
|
1341
1341
|
"aria-haspopup": !0,
|
|
1342
1342
|
"aria-label": t.title,
|
|
1343
1343
|
onClick: u,
|
|
1344
|
-
children: /* @__PURE__ */ e(
|
|
1344
|
+
children: /* @__PURE__ */ e(q, { name: "filter_alt" })
|
|
1345
1345
|
}
|
|
1346
1346
|
) }) : /* @__PURE__ */ e(
|
|
1347
1347
|
oA,
|
|
@@ -1350,7 +1350,7 @@ const Sc = (A, t) => {
|
|
|
1350
1350
|
"aria-haspopup": !0,
|
|
1351
1351
|
"aria-label": t.title,
|
|
1352
1352
|
onClick: u,
|
|
1353
|
-
startIcon: /* @__PURE__ */ e(
|
|
1353
|
+
startIcon: /* @__PURE__ */ e(q, { name: "filter_alt" }),
|
|
1354
1354
|
variant: s,
|
|
1355
1355
|
children: t.title
|
|
1356
1356
|
}
|
|
@@ -1575,7 +1575,7 @@ const Sc = (A, t) => {
|
|
|
1575
1575
|
}), Fc = (A, t) => A + t, Wc = (A, t) => Math.abs(t) > A ? Math.abs(t) : A, Kc = (A, t) => [...A, t.value], hr = (A, t, i) => {
|
|
1576
1576
|
const n = A && t ? i / 2 : i;
|
|
1577
1577
|
return A ? n : 0;
|
|
1578
|
-
}, Zc = (A, t, i, n) => A / (t < 0 ? -i : t) * n || 0,
|
|
1578
|
+
}, Zc = (A, t, i, n) => A / (t < 0 ? -i : t) * n || 0, U7 = ({
|
|
1579
1579
|
average: A,
|
|
1580
1580
|
barWidth: t = "8%",
|
|
1581
1581
|
color: i,
|
|
@@ -1587,7 +1587,7 @@ const Sc = (A, t) => {
|
|
|
1587
1587
|
selectedIndex: d,
|
|
1588
1588
|
valueFormatter: I = (f) => `${f}`
|
|
1589
1589
|
}) => {
|
|
1590
|
-
const f = VA(), h = Jc(f), l = n.reduce(Kc, []), u = A !== void 0 ? A : l.reduce(Fc, 0) / l.length, R = Math.max(...l), b = Math.min(...l), P = l.reduce(Wc, 0), m = R >= 0, y = b < 0, Q = hr(m, y, r), w = hr(y, m, r), X = Zc(u, R, b, Q || w), L = (
|
|
1590
|
+
const f = VA(), h = Jc(f), l = n.reduce(Kc, []), u = A !== void 0 ? A : l.reduce(Fc, 0) / l.length, R = Math.max(...l), b = Math.min(...l), P = l.reduce(Wc, 0), m = R >= 0, y = b < 0, Q = hr(m, y, r), w = hr(y, m, r), X = Zc(u, R, b, Q || w), L = (M) => d === void 0 || M === d ? i : `${i}80`, D = () => /* @__PURE__ */ e(
|
|
1591
1591
|
fr,
|
|
1592
1592
|
{
|
|
1593
1593
|
averageLineHeight: X,
|
|
@@ -1602,11 +1602,11 @@ const Sc = (A, t) => {
|
|
|
1602
1602
|
return /* @__PURE__ */ c("div", { className: `mx-cmn-bar-chart ${h}`, children: [
|
|
1603
1603
|
/* @__PURE__ */ c("div", { className: "mx-cmn-chart-container", children: [
|
|
1604
1604
|
/* @__PURE__ */ e(D, {}),
|
|
1605
|
-
n.map((
|
|
1605
|
+
n.map((M, N) => /* @__PURE__ */ c(E.Fragment, { children: [
|
|
1606
1606
|
/* @__PURE__ */ e(
|
|
1607
1607
|
fr,
|
|
1608
1608
|
{
|
|
1609
|
-
ariaLabel:
|
|
1609
|
+
ariaLabel: M.ariaLabel,
|
|
1610
1610
|
averageLineHeight: X,
|
|
1611
1611
|
bottomHeight: w,
|
|
1612
1612
|
color: L(N),
|
|
@@ -1615,10 +1615,10 @@ const Sc = (A, t) => {
|
|
|
1615
1615
|
range: P,
|
|
1616
1616
|
selectedIndex: d,
|
|
1617
1617
|
topHeight: Q,
|
|
1618
|
-
value:
|
|
1619
|
-
valueLabel: I(
|
|
1618
|
+
value: M.value,
|
|
1619
|
+
valueLabel: I(M.value),
|
|
1620
1620
|
width: t,
|
|
1621
|
-
xAxisLabel:
|
|
1621
|
+
xAxisLabel: M.label
|
|
1622
1622
|
}
|
|
1623
1623
|
),
|
|
1624
1624
|
/* @__PURE__ */ e(D, {})
|
|
@@ -1756,10 +1756,10 @@ const id = ({
|
|
|
1756
1756
|
const R = E.useMemo(() => {
|
|
1757
1757
|
const Q = Ka({ start: LA(d), end: NA(d) }), w = [];
|
|
1758
1758
|
for (let X = 0; X < Q.length; X++) {
|
|
1759
|
-
const L = Q[X], D = Wa({ start: L, end: Me(L, 6) }),
|
|
1759
|
+
const L = Q[X], D = Wa({ start: L, end: Me(L, 6) }), M = [];
|
|
1760
1760
|
for (let N = 0; N < D.length; N++)
|
|
1761
|
-
|
|
1762
|
-
w.push(
|
|
1761
|
+
M.push(D[N]);
|
|
1762
|
+
w.push(M);
|
|
1763
1763
|
}
|
|
1764
1764
|
return w;
|
|
1765
1765
|
}, [d]), b = (Q) => {
|
|
@@ -1995,12 +1995,12 @@ const id = ({
|
|
|
1995
1995
|
type: d ? "bar" : "line",
|
|
1996
1996
|
curve: "linear",
|
|
1997
1997
|
color: d ? b.palette.chart?.chart6 : t[D] ?? b.palette.primary.main,
|
|
1998
|
-
data: L.map((
|
|
1998
|
+
data: L.map((M) => M.y),
|
|
1999
1999
|
area: I,
|
|
2000
2000
|
baseline: A,
|
|
2001
2001
|
showMark: !0,
|
|
2002
2002
|
label: r[D],
|
|
2003
|
-
valueFormatter: (
|
|
2003
|
+
valueFormatter: (M) => O(M || 0, u)
|
|
2004
2004
|
}));
|
|
2005
2005
|
return /* @__PURE__ */ c("div", { style: { position: "relative" }, children: [
|
|
2006
2006
|
/* @__PURE__ */ c(
|
|
@@ -2106,7 +2106,7 @@ const id = ({
|
|
|
2106
2106
|
}
|
|
2107
2107
|
)
|
|
2108
2108
|
] });
|
|
2109
|
-
}, vt = E.createContext(null),
|
|
2109
|
+
}, vt = E.createContext(null), k7 = ({
|
|
2110
2110
|
children: A,
|
|
2111
2111
|
globalStore: t,
|
|
2112
2112
|
onEvent: i,
|
|
@@ -2137,7 +2137,7 @@ const id = ({
|
|
|
2137
2137
|
if (!t)
|
|
2138
2138
|
throw new Error(`${A}() must be used within the GlobalDataContext`);
|
|
2139
2139
|
return t;
|
|
2140
|
-
}, CA = () => UA("useAccountStore").globalStore.accountStore, WA = () => UA("useBudgetsStore").globalStore.budgetsStore, zn = () => UA("useCashflowStore").globalStore.cashflowStore, qA = () => UA("useCategoryStore").globalStore.categoryStore, Mo = () => UA("useConnectStore").globalStore.connectStore, Go = () => UA("useDebtsStore").globalStore.debtsStore, yi = () => UA("useGlobalStore").globalStore, bA = () => UA("useGlobalUiStore").globalStore.globalUiStore, p = () => UA("globalCopyStore").globalStore.copyStore.copy, _A = () => UA("useGoalStore").globalStore.goalStore, hd = () => UA("useHelpStore").globalStore.helpStore, Ed = () => UA("useMerchantStore").globalStore.merchantStore, ld = () => UA("useNetWorthStore").globalStore.netWorthStore, To = () => UA("useNotificationStore").globalStore.notificationStore, kA = () => UA("useRecurringActivityStore").globalStore.recurringActivityStore, No = () => UA("useSettingsStore").globalStore.settingsStore, vA = () => UA("useTransactionStore").globalStore.transactionStore, Rt = () => UA("useUserStore").globalStore.userStore, F = () => ({ onEvent: UA().onEvent }),
|
|
2140
|
+
}, CA = () => UA("useAccountStore").globalStore.accountStore, WA = () => UA("useBudgetsStore").globalStore.budgetsStore, zn = () => UA("useCashflowStore").globalStore.cashflowStore, qA = () => UA("useCategoryStore").globalStore.categoryStore, Mo = () => UA("useConnectStore").globalStore.connectStore, Go = () => UA("useDebtsStore").globalStore.debtsStore, yi = () => UA("useGlobalStore").globalStore, bA = () => UA("useGlobalUiStore").globalStore.globalUiStore, p = () => UA("globalCopyStore").globalStore.copyStore.copy, _A = () => UA("useGoalStore").globalStore.goalStore, hd = () => UA("useHelpStore").globalStore.helpStore, Ed = () => UA("useMerchantStore").globalStore.merchantStore, ld = () => UA("useNetWorthStore").globalStore.netWorthStore, To = () => UA("useNotificationStore").globalStore.notificationStore, kA = () => UA("useRecurringActivityStore").globalStore.recurringActivityStore, No = () => UA("useSettingsStore").globalStore.settingsStore, vA = () => UA("useTransactionStore").globalStore.transactionStore, Rt = () => UA("useUserStore").globalStore.userStore, F = () => ({ onEvent: UA().onEvent }), F7 = () => ({ onPageView: UA().onPageView }), ud = (A = "useWidgetContainerContext") => {
|
|
2141
2141
|
const t = E.useContext(Oo);
|
|
2142
2142
|
if (!t)
|
|
2143
2143
|
throw new Error(`${A}() must be used within the WidgetContainerContext`);
|
|
@@ -2295,11 +2295,11 @@ const id = ({
|
|
|
2295
2295
|
hoveredAreaData: null,
|
|
2296
2296
|
isAreaHovered: !1,
|
|
2297
2297
|
cursorPos: { x: 0, y: 0 }
|
|
2298
|
-
}), { hoveredSeriesId: b, hoveredAreaData: P, isAreaHovered: m, cursorPos: y } = u, Q = m && b && P, w = !Q, X = [...r, ...o], L = X[0]?.dataset.length ?? 0, D = X.flatMap((K) => K.dataset.map((zA) => zA.x)),
|
|
2298
|
+
}), { hoveredSeriesId: b, hoveredAreaData: P, isAreaHovered: m, cursorPos: y } = u, Q = m && b && P, w = !Q, X = [...r, ...o], L = X[0]?.dataset.length ?? 0, D = X.flatMap((K) => K.dataset.map((zA) => zA.x)), M = X.flatMap((K) => K.dataset.map((zA) => zA.y)), N = r[0]?.dataset?.map(
|
|
2299
2299
|
(K, zA) => r.reduce((TA, Ye) => TA + Ye.dataset[zA]?.y || 0, 0)
|
|
2300
2300
|
) ?? [0], J = Math.max(...N), B = Math.max(
|
|
2301
2301
|
...o.flatMap((K) => K.dataset.map((zA) => zA.y))
|
|
2302
|
-
), W = Math.floor(Math.min(...
|
|
2302
|
+
), W = Math.floor(Math.min(...M) / 100) * 100, tA = Math.ceil(Math.max(J, B) / 100) * 100, AA = r.map((K, zA) => ({
|
|
2303
2303
|
id: `stacked-${zA}`,
|
|
2304
2304
|
guid: K.category_guid,
|
|
2305
2305
|
top_level_guid: K.top_level_category_guid,
|
|
@@ -2692,9 +2692,9 @@ const id = ({
|
|
|
2692
2692
|
E.useEffect(() => {
|
|
2693
2693
|
P(n);
|
|
2694
2694
|
}, [n]), E.useEffect(() => {
|
|
2695
|
-
(a === "timeframebuttons" || a === "timeframetabs") && A.onRangeChanged(
|
|
2695
|
+
(a === "timeframebuttons" || a === "timeframetabs") && A.onRangeChanged(M());
|
|
2696
2696
|
}, [X]);
|
|
2697
|
-
const
|
|
2697
|
+
const M = () => {
|
|
2698
2698
|
const W = NA(ut());
|
|
2699
2699
|
return [NA(Qe(W, X)), W];
|
|
2700
2700
|
}, N = (W) => {
|
|
@@ -2729,7 +2729,7 @@ const id = ({
|
|
|
2729
2729
|
"aria-describedby": "select-date",
|
|
2730
2730
|
"aria-label": "Select a date",
|
|
2731
2731
|
onClick: () => y(!0),
|
|
2732
|
-
children: /* @__PURE__ */ e(
|
|
2732
|
+
children: /* @__PURE__ */ e(q, { name: "calendar_month" })
|
|
2733
2733
|
}
|
|
2734
2734
|
)
|
|
2735
2735
|
}
|
|
@@ -2746,9 +2746,9 @@ const id = ({
|
|
|
2746
2746
|
},
|
|
2747
2747
|
children: [
|
|
2748
2748
|
a === "readonly" && /* @__PURE__ */ c(C, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
2749
|
-
/* @__PURE__ */ e(
|
|
2749
|
+
/* @__PURE__ */ e(q, { name: "calendar_month", size: 24 }),
|
|
2750
2750
|
/* @__PURE__ */ e(v, { bold: !0, children: eA(b[0], $.MONTH_DAY) }),
|
|
2751
|
-
/* @__PURE__ */ e(
|
|
2751
|
+
/* @__PURE__ */ e(q, { name: "remove" }),
|
|
2752
2752
|
/* @__PURE__ */ e(v, { bold: !0, children: eA(b[1], $.MONTH_DAY_YEAR) })
|
|
2753
2753
|
] }),
|
|
2754
2754
|
a !== "readonly" && a !== "timeframebuttons" && a !== "timeframetabs" && /* @__PURE__ */ c(
|
|
@@ -2770,7 +2770,7 @@ const id = ({
|
|
|
2770
2770
|
"aria-label": i.dateRangePreviousAria,
|
|
2771
2771
|
color: A.shouldDisablePrevious ? "secondary" : "primary",
|
|
2772
2772
|
onClick: () => A.shouldDisablePrevious ? null : N("previous"),
|
|
2773
|
-
children: /* @__PURE__ */ e(
|
|
2773
|
+
children: /* @__PURE__ */ e(q, { name: "chevron_left", size: 28 })
|
|
2774
2774
|
}
|
|
2775
2775
|
),
|
|
2776
2776
|
/* @__PURE__ */ e(
|
|
@@ -2779,7 +2779,7 @@ const id = ({
|
|
|
2779
2779
|
"aria-disabled": A.shouldDisablePicker,
|
|
2780
2780
|
color: t,
|
|
2781
2781
|
onClick: () => A.shouldDisablePicker ? null : y(!0),
|
|
2782
|
-
startIcon: /* @__PURE__ */ e(
|
|
2782
|
+
startIcon: /* @__PURE__ */ e(q, { name: "calendar_month", size: 20 }),
|
|
2783
2783
|
sx: {
|
|
2784
2784
|
p: f ? 0 : 8,
|
|
2785
2785
|
width: I ? 280 : 232
|
|
@@ -2799,7 +2799,7 @@ const id = ({
|
|
|
2799
2799
|
"aria-label": i.dateRangeNextAria,
|
|
2800
2800
|
color: A.shouldDisableNext ? "secondary" : "primary",
|
|
2801
2801
|
onClick: () => A.shouldDisableNext ? null : N("next"),
|
|
2802
|
-
children: /* @__PURE__ */ e(
|
|
2802
|
+
children: /* @__PURE__ */ e(q, { name: "chevron_right", size: 28 })
|
|
2803
2803
|
}
|
|
2804
2804
|
)
|
|
2805
2805
|
]
|
|
@@ -2926,7 +2926,7 @@ const id = ({
|
|
|
2926
2926
|
}
|
|
2927
2927
|
)
|
|
2928
2928
|
] });
|
|
2929
|
-
},
|
|
2929
|
+
}, W7 = ({
|
|
2930
2930
|
hasGap: A = !1,
|
|
2931
2931
|
segments: t,
|
|
2932
2932
|
size: i = Qo,
|
|
@@ -3086,7 +3086,7 @@ const Ct = ({
|
|
|
3086
3086
|
action: i && /* @__PURE__ */ e(
|
|
3087
3087
|
oA,
|
|
3088
3088
|
{
|
|
3089
|
-
endIcon: /* @__PURE__ */ e(
|
|
3089
|
+
endIcon: /* @__PURE__ */ e(q, { name: "keyboard_arrow_right_rounded" }),
|
|
3090
3090
|
onClick: i,
|
|
3091
3091
|
children: /* @__PURE__ */ e(v, { bold: !0, variant: "Small", children: n })
|
|
3092
3092
|
}
|
|
@@ -3114,7 +3114,7 @@ const Ct = ({
|
|
|
3114
3114
|
sx: h = {},
|
|
3115
3115
|
title: l = ""
|
|
3116
3116
|
}) => {
|
|
3117
|
-
const [u, { height: R, width: b }] = Bo(), { onEvent: P } = F(), { isDesktop: m, isMobile: y, isTablet: Q } = xA(), { displayedDateRange: w, selectedAccountGuids: X, setSelectedAccountGuids: L } = bA(), { common: D } = p(),
|
|
3117
|
+
const [u, { height: R, width: b }] = Bo(), { onEvent: P } = F(), { isDesktop: m, isMobile: y, isTablet: Q } = xA(), { displayedDateRange: w, selectedAccountGuids: X, setSelectedAccountGuids: L } = bA(), { common: D } = p(), M = () => {
|
|
3118
3118
|
d && (d(), P(T.WIDGET_BACK_CLICK));
|
|
3119
3119
|
}, N = {
|
|
3120
3120
|
accountFilterOptionsCopy: {
|
|
@@ -3202,12 +3202,12 @@ const Ct = ({
|
|
|
3202
3202
|
oA,
|
|
3203
3203
|
{
|
|
3204
3204
|
onClick: lA,
|
|
3205
|
-
startIcon: /* @__PURE__ */ e(
|
|
3205
|
+
startIcon: /* @__PURE__ */ e(q, { name: AA }),
|
|
3206
3206
|
sx: { mx: 4 },
|
|
3207
3207
|
children: cA
|
|
3208
3208
|
},
|
|
3209
3209
|
AA
|
|
3210
|
-
) : /* @__PURE__ */ e(FA, { "aria-label": cA, onClick: lA, children: /* @__PURE__ */ e(
|
|
3210
|
+
) : /* @__PURE__ */ e(FA, { "aria-label": cA, onClick: lA, children: /* @__PURE__ */ e(q, { name: AA }) }, AA);
|
|
3211
3211
|
})
|
|
3212
3212
|
] }),
|
|
3213
3213
|
sx: {
|
|
@@ -3225,9 +3225,9 @@ const Ct = ({
|
|
|
3225
3225
|
FA,
|
|
3226
3226
|
{
|
|
3227
3227
|
"aria-label": D.back_to_dashboard,
|
|
3228
|
-
onClick:
|
|
3228
|
+
onClick: M,
|
|
3229
3229
|
sx: { ml: -16, mr: 16 },
|
|
3230
|
-
children: /* @__PURE__ */ e(
|
|
3230
|
+
children: /* @__PURE__ */ e(q, { name: "arrow_back" })
|
|
3231
3231
|
}
|
|
3232
3232
|
),
|
|
3233
3233
|
/* @__PURE__ */ e(ze, { children: l })
|
|
@@ -3354,18 +3354,18 @@ const lr = "connect_widget", ur = "connections_widget", wd = ({
|
|
|
3354
3354
|
E.useEffect(() => {
|
|
3355
3355
|
D(i);
|
|
3356
3356
|
}, [i]);
|
|
3357
|
-
const D = (
|
|
3358
|
-
!n && (
|
|
3357
|
+
const D = (M) => {
|
|
3358
|
+
!n && (M === "" || M === "." || M === ",") ? (u(""), f?.(!1)) : Number(M) < d ? (u(
|
|
3359
3359
|
g(
|
|
3360
3360
|
b.error_amount_must_be_equal_to,
|
|
3361
3361
|
O(d, "0")
|
|
3362
3362
|
)
|
|
3363
|
-
), f?.(!1)) : Number(
|
|
3363
|
+
), f?.(!1)) : Number(M) > nr ? (u(
|
|
3364
3364
|
g(
|
|
3365
3365
|
b.error_amount_must_be_less_than_or_equal_to,
|
|
3366
3366
|
O(nr, A ? "0,0.00" : "0,0", Math.floor)
|
|
3367
3367
|
)
|
|
3368
|
-
), f?.(!1)) :
|
|
3368
|
+
), f?.(!1)) : M.toString().match(X) ? o() ? (u(""), f?.(!0)) : (u(a), f?.(!1)) : (u(b.error_amount_is_invalid), f?.(!1)), I(M.toString());
|
|
3369
3369
|
};
|
|
3370
3370
|
return /* @__PURE__ */ e(
|
|
3371
3371
|
st,
|
|
@@ -3385,7 +3385,7 @@ const lr = "connect_widget", ur = "connections_widget", wd = ({
|
|
|
3385
3385
|
},
|
|
3386
3386
|
label: s,
|
|
3387
3387
|
name: `currency-input-${L.current}`,
|
|
3388
|
-
onChange: (
|
|
3388
|
+
onChange: (M) => D(M.target.value),
|
|
3389
3389
|
value: i,
|
|
3390
3390
|
...h
|
|
3391
3391
|
}
|
|
@@ -3400,7 +3400,7 @@ const lr = "connect_widget", ur = "connections_widget", wd = ({
|
|
|
3400
3400
|
/* @__PURE__ */ e(In, { size: t }),
|
|
3401
3401
|
A && /* @__PURE__ */ e(v, { children: A })
|
|
3402
3402
|
] });
|
|
3403
|
-
},
|
|
3403
|
+
}, K7 = ({
|
|
3404
3404
|
icon: A,
|
|
3405
3405
|
label: t,
|
|
3406
3406
|
onClick: i,
|
|
@@ -3448,14 +3448,14 @@ const lr = "connect_widget", ur = "connections_widget", wd = ({
|
|
|
3448
3448
|
"aria-label": t,
|
|
3449
3449
|
className: "mx-cat-cancel-search-button",
|
|
3450
3450
|
onClick: () => i(""),
|
|
3451
|
-
children: /* @__PURE__ */ e(
|
|
3451
|
+
children: /* @__PURE__ */ e(q, { name: "cancel", size: 24 })
|
|
3452
3452
|
}
|
|
3453
3453
|
);
|
|
3454
3454
|
return /* @__PURE__ */ e(x, { className: "mx-cmn-search-box", px: o.Spacing.Large, py: o.Spacing.Medium, children: /* @__PURE__ */ e(
|
|
3455
3455
|
st,
|
|
3456
3456
|
{
|
|
3457
3457
|
InputProps: {
|
|
3458
|
-
startAdornment: /* @__PURE__ */ e(ci, { position: "start", children: /* @__PURE__ */ e(
|
|
3458
|
+
startAdornment: /* @__PURE__ */ e(ci, { position: "start", children: /* @__PURE__ */ e(q, { color: "disabled", name: "search", size: 26 }) }),
|
|
3459
3459
|
endAdornment: /* @__PURE__ */ e(ci, { position: "end", sx: { p: 0 }, children: r ? a : null })
|
|
3460
3460
|
},
|
|
3461
3461
|
"aria-label": A,
|
|
@@ -3554,7 +3554,7 @@ const lr = "connect_widget", ur = "connections_widget", wd = ({
|
|
|
3554
3554
|
}
|
|
3555
3555
|
), li = ({ iconName: A, label: t, onClick: i, value: n }) => {
|
|
3556
3556
|
const r = /* @__PURE__ */ c(_, { children: [
|
|
3557
|
-
/* @__PURE__ */ e(mA, { children: /* @__PURE__ */ e(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(
|
|
3557
|
+
/* @__PURE__ */ e(mA, { children: /* @__PURE__ */ e(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(q, { name: A, sx: { color: "text.primary" }, weight: te.Dark }) }) }),
|
|
3558
3558
|
/* @__PURE__ */ e(
|
|
3559
3559
|
iA,
|
|
3560
3560
|
{
|
|
@@ -3567,7 +3567,7 @@ const lr = "connect_widget", ur = "connections_widget", wd = ({
|
|
|
3567
3567
|
] });
|
|
3568
3568
|
return i ? /* @__PURE__ */ e(k, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ c(aA, { onClick: i, children: [
|
|
3569
3569
|
r,
|
|
3570
|
-
/* @__PURE__ */ e(de, { children: /* @__PURE__ */ e(
|
|
3570
|
+
/* @__PURE__ */ e(de, { children: /* @__PURE__ */ e(q, { name: "chevron_right", size: 24 }) })
|
|
3571
3571
|
] }) }) : /* @__PURE__ */ e(k, { disableGutters: !1, disablePadding: !1, children: r });
|
|
3572
3572
|
}, ui = ({
|
|
3573
3573
|
body: A,
|
|
@@ -3591,7 +3591,7 @@ const lr = "connect_widget", ur = "connections_widget", wd = ({
|
|
|
3591
3591
|
p: 0
|
|
3592
3592
|
},
|
|
3593
3593
|
children: /* @__PURE__ */ e(
|
|
3594
|
-
|
|
3594
|
+
q,
|
|
3595
3595
|
{
|
|
3596
3596
|
name: t,
|
|
3597
3597
|
sx: { color: "action.active", fontSize: 16 },
|
|
@@ -4046,12 +4046,12 @@ const Xt = () => {
|
|
|
4046
4046
|
f.length
|
|
4047
4047
|
) })
|
|
4048
4048
|
] }),
|
|
4049
|
-
/* @__PURE__ */ e(C, { pt: 18, children: /* @__PURE__ */ e(
|
|
4049
|
+
/* @__PURE__ */ e(C, { pt: 18, children: /* @__PURE__ */ e(q, { name: "remove" }) }),
|
|
4050
4050
|
/* @__PURE__ */ c(C, { pb: 14, pt: 12, children: [
|
|
4051
4051
|
/* @__PURE__ */ e(DA, { amount: m, variant: "H2" }),
|
|
4052
4052
|
/* @__PURE__ */ e(RA, { variant: "XSmall", whiteSpace: "nowrap", children: g(a.expenses_due, I.length) })
|
|
4053
4053
|
] }),
|
|
4054
|
-
/* @__PURE__ */ e(C, { pt: 18, children: /* @__PURE__ */ e(
|
|
4054
|
+
/* @__PURE__ */ e(C, { pt: 18, children: /* @__PURE__ */ e(q, { name: "equals" }) }),
|
|
4055
4055
|
/* @__PURE__ */ c(C, { pb: 14, pr: 24, pt: 12, children: [
|
|
4056
4056
|
/* @__PURE__ */ e(DA, { amount: y, variant: "H2" }),
|
|
4057
4057
|
/* @__PURE__ */ c(C, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
@@ -4066,7 +4066,7 @@ const Xt = () => {
|
|
|
4066
4066
|
oA,
|
|
4067
4067
|
{
|
|
4068
4068
|
onClick: A,
|
|
4069
|
-
startIcon: /* @__PURE__ */ e(
|
|
4069
|
+
startIcon: /* @__PURE__ */ e(q, { name: "add" }),
|
|
4070
4070
|
sx: { fontSize: 13, lineHeight: "initial" },
|
|
4071
4071
|
children: a.add_income
|
|
4072
4072
|
}
|
|
@@ -4120,7 +4120,7 @@ const Xt = () => {
|
|
|
4120
4120
|
oA,
|
|
4121
4121
|
{
|
|
4122
4122
|
onClick: A,
|
|
4123
|
-
startIcon: /* @__PURE__ */ e(
|
|
4123
|
+
startIcon: /* @__PURE__ */ e(q, { name: "add" }),
|
|
4124
4124
|
sx: { fontSize: 13 },
|
|
4125
4125
|
children: a.add_income
|
|
4126
4126
|
}
|
|
@@ -4143,7 +4143,7 @@ const Xt = () => {
|
|
|
4143
4143
|
children: /* @__PURE__ */ e(Nd, { onAddIncomeClick: A })
|
|
4144
4144
|
}
|
|
4145
4145
|
);
|
|
4146
|
-
},
|
|
4146
|
+
}, Z7 = z(Sd);
|
|
4147
4147
|
class Hr {
|
|
4148
4148
|
fetchInstance;
|
|
4149
4149
|
constructor(t, i) {
|
|
@@ -4919,9 +4919,9 @@ const fe = () => {
|
|
|
4919
4919
|
disableTypography: !0,
|
|
4920
4920
|
secondary: /* @__PURE__ */ c(C, { direction: "row", justifyContent: "space-between", children: [
|
|
4921
4921
|
/* @__PURE__ */ c(C, { alignItems: "center", direction: "row", gap: 4, children: [
|
|
4922
|
-
A.is_flagged && /* @__PURE__ */ e(
|
|
4923
|
-
A.is_hidden && /* @__PURE__ */ e(
|
|
4924
|
-
A.has_been_split && /* @__PURE__ */ e(
|
|
4922
|
+
A.is_flagged && /* @__PURE__ */ e(q, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
|
|
4923
|
+
A.is_hidden && /* @__PURE__ */ e(q, { name: "visibility_off", size: 16 }),
|
|
4924
|
+
A.has_been_split && /* @__PURE__ */ e(q, { name: "call_split", size: 16 }),
|
|
4925
4925
|
/* @__PURE__ */ e(v, { variant: "XSmall", children: A.has_been_split ? n.split_transaction_category_label : A.category })
|
|
4926
4926
|
] }),
|
|
4927
4927
|
a && r && /* @__PURE__ */ e(v, { bold: !0, color: "action.active", variant: "XSmall", children: a.short_title })
|
|
@@ -5052,9 +5052,9 @@ const fe = () => {
|
|
|
5052
5052
|
onMouseLeave: () => n(!1),
|
|
5053
5053
|
width: "100%",
|
|
5054
5054
|
children: [
|
|
5055
|
-
A.row.has_been_split && /* @__PURE__ */ e(
|
|
5055
|
+
A.row.has_been_split && /* @__PURE__ */ e(q, { name: "call_split", size: 16 }),
|
|
5056
5056
|
/* @__PURE__ */ e(v, { tabIndex: A.tabIndex, variant: "Small", children: A.row.has_been_split ? t.split_transaction_category_label : A.row.category }),
|
|
5057
|
-
!A.row.has_been_split && i && /* @__PURE__ */ e(
|
|
5057
|
+
!A.row.has_been_split && i && /* @__PURE__ */ e(q, { name: "edit", sx: { color: "action.active" } })
|
|
5058
5058
|
]
|
|
5059
5059
|
}
|
|
5060
5060
|
);
|
|
@@ -5066,8 +5066,8 @@ const fe = () => {
|
|
|
5066
5066
|
"aria-label": r ? i.is_hidden : i.is_flagged,
|
|
5067
5067
|
tabIndex: A.tabIndex,
|
|
5068
5068
|
children: [
|
|
5069
|
-
n && /* @__PURE__ */ e(
|
|
5070
|
-
!n && r && /* @__PURE__ */ e(
|
|
5069
|
+
n && /* @__PURE__ */ e(q, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
|
|
5070
|
+
!n && r && /* @__PURE__ */ e(q, { name: "visibility_off", size: 16 }),
|
|
5071
5071
|
d && /* @__PURE__ */ e(
|
|
5072
5072
|
"svg",
|
|
5073
5073
|
{
|
|
@@ -5782,7 +5782,7 @@ const Zo = ({ transaction: A }) => {
|
|
|
5782
5782
|
secondary: /* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: A.category ?? s.actions_select_a_category })
|
|
5783
5783
|
}
|
|
5784
5784
|
),
|
|
5785
|
-
/* @__PURE__ */ e(de, { children: /* @__PURE__ */ e(
|
|
5785
|
+
/* @__PURE__ */ e(de, { children: /* @__PURE__ */ e(q, { name: "chevron_right", weight: te.Dark }) })
|
|
5786
5786
|
]
|
|
5787
5787
|
}
|
|
5788
5788
|
) }),
|
|
@@ -5837,7 +5837,7 @@ const Zo = ({ transaction: A }) => {
|
|
|
5837
5837
|
i(Y.ON_TRANSACTION_DATE_CLICK), d(!0);
|
|
5838
5838
|
},
|
|
5839
5839
|
children: [
|
|
5840
|
-
/* @__PURE__ */ e(mA, { children: /* @__PURE__ */ e(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(
|
|
5840
|
+
/* @__PURE__ */ e(mA, { children: /* @__PURE__ */ e(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(q, { name: "calendar_month", sx: { color: "text.primary" }, weight: te.Dark }) }) }),
|
|
5841
5841
|
/* @__PURE__ */ e(
|
|
5842
5842
|
iA,
|
|
5843
5843
|
{
|
|
@@ -5846,7 +5846,7 @@ const Zo = ({ transaction: A }) => {
|
|
|
5846
5846
|
secondary: /* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: eA(wA(A.date), $.YEAR_MONTH_DAY) })
|
|
5847
5847
|
}
|
|
5848
5848
|
),
|
|
5849
|
-
/* @__PURE__ */ e(de, { children: /* @__PURE__ */ e(
|
|
5849
|
+
/* @__PURE__ */ e(de, { children: /* @__PURE__ */ e(q, { name: "chevron_right", weight: te.Dark }) })
|
|
5850
5850
|
]
|
|
5851
5851
|
}
|
|
5852
5852
|
) }),
|
|
@@ -5930,9 +5930,9 @@ const Zo = ({ transaction: A }) => {
|
|
|
5930
5930
|
t(Y.ON_TRANSACTION_DELETE_LOGO_CLICK), s(!0);
|
|
5931
5931
|
},
|
|
5932
5932
|
children: [
|
|
5933
|
-
/* @__PURE__ */ e(mA, { children: /* @__PURE__ */ e(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(
|
|
5933
|
+
/* @__PURE__ */ e(mA, { children: /* @__PURE__ */ e(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(q, { name: "delete", sx: { color: "text.primary" }, weight: te.Dark }) }) }),
|
|
5934
5934
|
/* @__PURE__ */ e(iA, { primary: o.merchant_logo_title, secondary: o.merchant_logo_desc }),
|
|
5935
|
-
/* @__PURE__ */ e(de, { children: /* @__PURE__ */ e(
|
|
5935
|
+
/* @__PURE__ */ e(de, { children: /* @__PURE__ */ e(q, { name: "chevron_right", weight: te.Dark }) })
|
|
5936
5936
|
]
|
|
5937
5937
|
}
|
|
5938
5938
|
) }),
|
|
@@ -5980,13 +5980,13 @@ const Zo = ({ transaction: A }) => {
|
|
|
5980
5980
|
role: "switch",
|
|
5981
5981
|
children: [
|
|
5982
5982
|
/* @__PURE__ */ e(mA, { children: /* @__PURE__ */ e(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: d ? /* @__PURE__ */ e(
|
|
5983
|
-
|
|
5983
|
+
q,
|
|
5984
5984
|
{
|
|
5985
5985
|
name: "visibilityOff",
|
|
5986
5986
|
sx: { color: "text.primary" },
|
|
5987
5987
|
weight: te.Dark
|
|
5988
5988
|
}
|
|
5989
|
-
) : /* @__PURE__ */ e(
|
|
5989
|
+
) : /* @__PURE__ */ e(q, { name: "visibility", sx: { color: "text.primary" }, weight: te.Dark }) }) }),
|
|
5990
5990
|
/* @__PURE__ */ e(
|
|
5991
5991
|
iA,
|
|
5992
5992
|
{
|
|
@@ -6065,7 +6065,7 @@ const Zo = ({ transaction: A }) => {
|
|
|
6065
6065
|
t(Y.ON_TRANSACTION_MEMO_CLICK), s(!0);
|
|
6066
6066
|
},
|
|
6067
6067
|
children: [
|
|
6068
|
-
/* @__PURE__ */ e(mA, { children: /* @__PURE__ */ e(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(
|
|
6068
|
+
/* @__PURE__ */ e(mA, { children: /* @__PURE__ */ e(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(q, { name: "article", sx: { color: "text.primary" }, weight: te.Dark }) }) }),
|
|
6069
6069
|
/* @__PURE__ */ e(
|
|
6070
6070
|
iA,
|
|
6071
6071
|
{
|
|
@@ -6082,7 +6082,7 @@ const Zo = ({ transaction: A }) => {
|
|
|
6082
6082
|
)
|
|
6083
6083
|
}
|
|
6084
6084
|
),
|
|
6085
|
-
/* @__PURE__ */ e(de, { children: /* @__PURE__ */ e(
|
|
6085
|
+
/* @__PURE__ */ e(de, { children: /* @__PURE__ */ e(q, { name: "chevron_right", weight: te.Dark }) })
|
|
6086
6086
|
]
|
|
6087
6087
|
}
|
|
6088
6088
|
) }),
|
|
@@ -6323,13 +6323,13 @@ const Zo = ({ transaction: A }) => {
|
|
|
6323
6323
|
});
|
|
6324
6324
|
const N = A.parent_guid ?? A.guid;
|
|
6325
6325
|
await n(N);
|
|
6326
|
-
},
|
|
6326
|
+
}, M = E.useMemo(() => {
|
|
6327
6327
|
const N = R.some((B) => !B.category_guid), J = R.some((B) => B.amount <= 0);
|
|
6328
6328
|
return N || J;
|
|
6329
6329
|
}, [R]);
|
|
6330
6330
|
return /* @__PURE__ */ c(E.Fragment, { children: [
|
|
6331
6331
|
A && /* @__PURE__ */ e(k, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ c(aA, { onClick: w, children: [
|
|
6332
|
-
/* @__PURE__ */ e(mA, { children: /* @__PURE__ */ e(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(
|
|
6332
|
+
/* @__PURE__ */ e(mA, { children: /* @__PURE__ */ e(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(q, { name: "call_split", sx: { color: "text.primary" }, weight: te.Dark }) }) }),
|
|
6333
6333
|
/* @__PURE__ */ e(
|
|
6334
6334
|
iA,
|
|
6335
6335
|
{
|
|
@@ -6337,14 +6337,14 @@ const Zo = ({ transaction: A }) => {
|
|
|
6337
6337
|
secondary: A.has_been_split || A.parent_guid ? o.split_transaction_unsplit_subtitle : o.split_transaction_desc
|
|
6338
6338
|
}
|
|
6339
6339
|
),
|
|
6340
|
-
/* @__PURE__ */ e(de, { children: A.has_been_split || A.parent_guid ? /* @__PURE__ */ e(
|
|
6340
|
+
/* @__PURE__ */ e(de, { children: A.has_been_split || A.parent_guid ? /* @__PURE__ */ e(q, { name: "delete", weight: te.Dark }) : /* @__PURE__ */ e(q, { name: "chevron_right", weight: te.Dark }) })
|
|
6341
6341
|
] }) }),
|
|
6342
6342
|
/* @__PURE__ */ c(
|
|
6343
6343
|
dA,
|
|
6344
6344
|
{
|
|
6345
6345
|
ariaLabelClose: r.close_aria,
|
|
6346
6346
|
isOpen: f,
|
|
6347
|
-
isPrimaryDisabled:
|
|
6347
|
+
isPrimaryDisabled: M,
|
|
6348
6348
|
onClose: L,
|
|
6349
6349
|
onPrimaryAction: X,
|
|
6350
6350
|
primaryText: r.save_button,
|
|
@@ -6614,7 +6614,7 @@ const Zo = ({ transaction: A }) => {
|
|
|
6614
6614
|
t(Y.ON_TRANSACTION_TAGS_CLICK), I(!0);
|
|
6615
6615
|
},
|
|
6616
6616
|
children: [
|
|
6617
|
-
/* @__PURE__ */ e(mA, { children: /* @__PURE__ */ e(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(
|
|
6617
|
+
/* @__PURE__ */ e(mA, { children: /* @__PURE__ */ e(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(q, { name: "local_offer", sx: { color: "text.primary" }, weight: te.Dark }) }) }),
|
|
6618
6618
|
/* @__PURE__ */ e(
|
|
6619
6619
|
iA,
|
|
6620
6620
|
{
|
|
@@ -6623,7 +6623,7 @@ const Zo = ({ transaction: A }) => {
|
|
|
6623
6623
|
secondary: /* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: A.tags?.length > 0 ? R : a.tags_desc })
|
|
6624
6624
|
}
|
|
6625
6625
|
),
|
|
6626
|
-
/* @__PURE__ */ e(de, { children: /* @__PURE__ */ e(
|
|
6626
|
+
/* @__PURE__ */ e(de, { children: /* @__PURE__ */ e(q, { name: "chevron_right", weight: te.Dark }) })
|
|
6627
6627
|
]
|
|
6628
6628
|
}
|
|
6629
6629
|
) }),
|
|
@@ -6688,7 +6688,7 @@ const Zo = ({ transaction: A }) => {
|
|
|
6688
6688
|
a(!0), r(Y.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK);
|
|
6689
6689
|
},
|
|
6690
6690
|
sx: { color: "action.active" },
|
|
6691
|
-
children: /* @__PURE__ */ e(
|
|
6691
|
+
children: /* @__PURE__ */ e(q, { name: "create", size: 22 })
|
|
6692
6692
|
}
|
|
6693
6693
|
)
|
|
6694
6694
|
] }) });
|
|
@@ -6964,7 +6964,7 @@ const Zo = ({ transaction: A }) => {
|
|
|
6964
6964
|
transactions: y,
|
|
6965
6965
|
updateTransaction: Q
|
|
6966
6966
|
} = vA(), { common: w, transactions: X } = p(), { userProfile: L } = Rt(), { onEvent: D } = F(), {
|
|
6967
|
-
displayedDateRange:
|
|
6967
|
+
displayedDateRange: M,
|
|
6968
6968
|
isInitialized: N,
|
|
6969
6969
|
selectedAccountGuids: J,
|
|
6970
6970
|
selectedAccounts: B,
|
|
@@ -6982,10 +6982,10 @@ const Zo = ({ transaction: A }) => {
|
|
|
6982
6982
|
}, []), E.useEffect(() => {
|
|
6983
6983
|
$A && (P({
|
|
6984
6984
|
...R,
|
|
6985
|
-
dateRange: { start:
|
|
6985
|
+
dateRange: { start: M.start, end: M.end },
|
|
6986
6986
|
accounts: J
|
|
6987
|
-
}), b(
|
|
6988
|
-
}, [
|
|
6987
|
+
}), b(M.start));
|
|
6988
|
+
}, [M, J]), E.useEffect(() => {
|
|
6989
6989
|
h(i);
|
|
6990
6990
|
}, [i]);
|
|
6991
6991
|
const xt = E.useMemo(
|
|
@@ -7152,7 +7152,7 @@ const Zo = ({ transaction: A }) => {
|
|
|
7152
7152
|
]
|
|
7153
7153
|
}
|
|
7154
7154
|
);
|
|
7155
|
-
},
|
|
7155
|
+
}, $7 = z(gf), ea = (A, t) => {
|
|
7156
7156
|
const i = {
|
|
7157
7157
|
...t,
|
|
7158
7158
|
repeat_day: null,
|
|
@@ -7242,7 +7242,7 @@ const Zo = ({ transaction: A }) => {
|
|
|
7242
7242
|
primaryTypographyProps: { fontWeight: 400 }
|
|
7243
7243
|
}
|
|
7244
7244
|
),
|
|
7245
|
-
A.recurrenceType === R.id && /* @__PURE__ */ e(
|
|
7245
|
+
A.recurrenceType === R.id && /* @__PURE__ */ e(q, { color: "primary", fill: !0, name: "check_circle", size: 24 })
|
|
7246
7246
|
] }) }, R.id),
|
|
7247
7247
|
/* @__PURE__ */ e(G, {})
|
|
7248
7248
|
] }, R.id)) })
|
|
@@ -7378,7 +7378,7 @@ const Zo = ({ transaction: A }) => {
|
|
|
7378
7378
|
{
|
|
7379
7379
|
color: "error",
|
|
7380
7380
|
onClick: w,
|
|
7381
|
-
startIcon: /* @__PURE__ */ e(
|
|
7381
|
+
startIcon: /* @__PURE__ */ e(q, { name: "delete" }),
|
|
7382
7382
|
sx: { mx: 24, my: 16 },
|
|
7383
7383
|
variant: "text",
|
|
7384
7384
|
children: m ? i.delete_income_title : i.delete_expense_title
|
|
@@ -7544,8 +7544,8 @@ const Zo = ({ transaction: A }) => {
|
|
|
7544
7544
|
textTransform: "uppercase",
|
|
7545
7545
|
width: "100%",
|
|
7546
7546
|
children: [
|
|
7547
|
-
d && /* @__PURE__ */ e(
|
|
7548
|
-
I && /* @__PURE__ */ e(
|
|
7547
|
+
d && /* @__PURE__ */ e(q, { color: "success", fill: !0, name: "check_circle", size: 12 }),
|
|
7548
|
+
I && /* @__PURE__ */ e(q, { color: "error", fill: !0, name: "cancel", size: 12 }),
|
|
7549
7549
|
/* @__PURE__ */ e(v, { bold: !0, color: "secondary.light", variant: "XSmall", children: h })
|
|
7550
7550
|
]
|
|
7551
7551
|
}
|
|
@@ -7719,7 +7719,7 @@ const Zo = ({ transaction: A }) => {
|
|
|
7719
7719
|
{
|
|
7720
7720
|
InputLabelProps: { shrink: !0 },
|
|
7721
7721
|
SelectProps: {
|
|
7722
|
-
IconComponent: (f) => /* @__PURE__ */ e(
|
|
7722
|
+
IconComponent: (f) => /* @__PURE__ */ e(q, { fill: !1, name: "expand_more", size: 20, sx: { mr: 4 }, ...f })
|
|
7723
7723
|
},
|
|
7724
7724
|
defaultValue: 0,
|
|
7725
7725
|
label: s.frequency,
|
|
@@ -7760,8 +7760,8 @@ const Zo = ({ transaction: A }) => {
|
|
|
7760
7760
|
if (A) {
|
|
7761
7761
|
const L = ia(y, R, P), D = await o(L);
|
|
7762
7762
|
if (D) {
|
|
7763
|
-
const
|
|
7764
|
-
await r(
|
|
7763
|
+
const M = na(D, y);
|
|
7764
|
+
await r(M);
|
|
7765
7765
|
}
|
|
7766
7766
|
} else {
|
|
7767
7767
|
const L = xf(y, R, P);
|
|
@@ -7774,10 +7774,10 @@ const Zo = ({ transaction: A }) => {
|
|
|
7774
7774
|
return /* @__PURE__ */ c(x, { children: [
|
|
7775
7775
|
/* @__PURE__ */ e(k, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ e(aA, { onClick: Q, children: /* @__PURE__ */ e(iA, { children: /* @__PURE__ */ c(C, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
7776
7776
|
/* @__PURE__ */ c(C, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
7777
|
-
/* @__PURE__ */ e(
|
|
7777
|
+
/* @__PURE__ */ e(q, { fill: !0, name: "add_box", size: 24, sx: { color: "action.active" } }),
|
|
7778
7778
|
/* @__PURE__ */ e(v, { bold: !0, sx: { color: "action.active" }, variant: "Body", children: t })
|
|
7779
7779
|
] }),
|
|
7780
|
-
/* @__PURE__ */ e(
|
|
7780
|
+
/* @__PURE__ */ e(q, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
|
|
7781
7781
|
] }) }) }) }),
|
|
7782
7782
|
/* @__PURE__ */ e(G, {}),
|
|
7783
7783
|
/* @__PURE__ */ e(
|
|
@@ -8311,7 +8311,7 @@ const Zo = ({ transaction: A }) => {
|
|
|
8311
8311
|
/* @__PURE__ */ e(v, { variant: "XSmall", children: a.expected })
|
|
8312
8312
|
] })
|
|
8313
8313
|
] }),
|
|
8314
|
-
o && /* @__PURE__ */ e(oA, { onClick: o, startIcon: /* @__PURE__ */ e(
|
|
8314
|
+
o && /* @__PURE__ */ e(oA, { onClick: o, startIcon: /* @__PURE__ */ e(q, { name: "add" }), variant: "text", children: a.add_new })
|
|
8315
8315
|
] }),
|
|
8316
8316
|
/* @__PURE__ */ e(Kt, { data: d })
|
|
8317
8317
|
] });
|
|
@@ -8326,7 +8326,7 @@ const Zo = ({ transaction: A }) => {
|
|
|
8326
8326
|
upcomingActivities: I
|
|
8327
8327
|
} = kA(), [f, h] = E.useState(0), { onEvent: l } = F(), u = n.filter(Vi), R = o.filter(Vi), b = r.filter(Vi), P = u.filter(ri).reduce(Gt, 0), m = R.filter(ri).reduce(Gt, 0), y = b.filter(ri).reduce(Gt, 0), Q = u.filter(ri).length, w = u.filter(Bi).reduce(Gt, 0), X = R.filter(Bi).reduce(Gt, 0), L = u.filter(Bi).length, D = (J, B) => {
|
|
8328
8328
|
h(B);
|
|
8329
|
-
},
|
|
8329
|
+
}, M = (J) => {
|
|
8330
8330
|
l(T.RECURRING_ACTIVITY_CLICK_UPCOMING, {
|
|
8331
8331
|
transaction_guid: J.transactionGuid
|
|
8332
8332
|
});
|
|
@@ -8360,7 +8360,7 @@ const Zo = ({ transaction: A }) => {
|
|
|
8360
8360
|
St,
|
|
8361
8361
|
{
|
|
8362
8362
|
activities: I,
|
|
8363
|
-
onActivityClick:
|
|
8363
|
+
onActivityClick: M,
|
|
8364
8364
|
title: A.upcoming_activity
|
|
8365
8365
|
}
|
|
8366
8366
|
),
|
|
@@ -8383,7 +8383,7 @@ const Zo = ({ transaction: A }) => {
|
|
|
8383
8383
|
St,
|
|
8384
8384
|
{
|
|
8385
8385
|
activities: I,
|
|
8386
|
-
onActivityClick:
|
|
8386
|
+
onActivityClick: M
|
|
8387
8387
|
}
|
|
8388
8388
|
),
|
|
8389
8389
|
f === 1 && /* @__PURE__ */ e(St, { activities: R, onActivityClick: N })
|
|
@@ -8453,7 +8453,7 @@ const Zo = ({ transaction: A }) => {
|
|
|
8453
8453
|
]
|
|
8454
8454
|
}
|
|
8455
8455
|
);
|
|
8456
|
-
},
|
|
8456
|
+
}, AR = z(th), ih = () => {
|
|
8457
8457
|
const { recurring: A } = p(), { selectedAccountGuids: t } = bA(), { selectedDay: i, selectedDayActivities: n, setSelectedDay: r, upcomingActivities: o } = kA(), a = E.useMemo(
|
|
8458
8458
|
() => o.filter(
|
|
8459
8459
|
(I) => t.includes(I.accountGuid || "")
|
|
@@ -8496,7 +8496,7 @@ const Zo = ({ transaction: A }) => {
|
|
|
8496
8496
|
children: /* @__PURE__ */ e(nh, {})
|
|
8497
8497
|
}
|
|
8498
8498
|
);
|
|
8499
|
-
},
|
|
8499
|
+
}, eR = z(rh);
|
|
8500
8500
|
class oh {
|
|
8501
8501
|
globalStore;
|
|
8502
8502
|
api = new sr("/", "");
|
|
@@ -8725,7 +8725,7 @@ const ah = {
|
|
|
8725
8725
|
const n = Object.keys(Z).filter((r) => Number(r)).map((r) => ({
|
|
8726
8726
|
label: t.account_types[r],
|
|
8727
8727
|
value: Number(r),
|
|
8728
|
-
icon: /* @__PURE__ */ e(
|
|
8728
|
+
icon: /* @__PURE__ */ e(q, { name: wo[r] })
|
|
8729
8729
|
}));
|
|
8730
8730
|
i.push({
|
|
8731
8731
|
label: t.account_type,
|
|
@@ -8740,7 +8740,7 @@ const ah = {
|
|
|
8740
8740
|
const n = Object.keys(go).filter((r) => Number(r)).map((r) => ({
|
|
8741
8741
|
label: t.property_types[r],
|
|
8742
8742
|
value: Number(r),
|
|
8743
|
-
icon: /* @__PURE__ */ e(
|
|
8743
|
+
icon: /* @__PURE__ */ e(q, { name: gc[r] })
|
|
8744
8744
|
}));
|
|
8745
8745
|
i.push({
|
|
8746
8746
|
label: t.property_type,
|
|
@@ -9325,7 +9325,7 @@ const uh = ({ activity: A }) => /* @__PURE__ */ c(_, { children: [
|
|
|
9325
9325
|
oA,
|
|
9326
9326
|
{
|
|
9327
9327
|
onClick: () => t(!0),
|
|
9328
|
-
startIcon: /* @__PURE__ */ e(
|
|
9328
|
+
startIcon: /* @__PURE__ */ e(q, { name: "add" }),
|
|
9329
9329
|
sx: { fontSize: 13 },
|
|
9330
9330
|
children: n.add_income
|
|
9331
9331
|
}
|
|
@@ -9372,7 +9372,7 @@ const uh = ({ activity: A }) => /* @__PURE__ */ c(_, { children: [
|
|
|
9372
9372
|
oA,
|
|
9373
9373
|
{
|
|
9374
9374
|
onClick: () => t(!0),
|
|
9375
|
-
startIcon: /* @__PURE__ */ e(
|
|
9375
|
+
startIcon: /* @__PURE__ */ e(q, { name: "add" }),
|
|
9376
9376
|
sx: { fontSize: 13 },
|
|
9377
9377
|
children: n.add_income
|
|
9378
9378
|
}
|
|
@@ -9434,7 +9434,7 @@ const uh = ({ activity: A }) => /* @__PURE__ */ c(_, { children: [
|
|
|
9434
9434
|
mr: 24,
|
|
9435
9435
|
sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
|
|
9436
9436
|
width: 44,
|
|
9437
|
-
children: /* @__PURE__ */ e(
|
|
9437
|
+
children: /* @__PURE__ */ e(q, { color: "primary", name: "currency_exchange" })
|
|
9438
9438
|
}
|
|
9439
9439
|
),
|
|
9440
9440
|
i.bullet_one
|
|
@@ -9450,7 +9450,7 @@ const uh = ({ activity: A }) => /* @__PURE__ */ c(_, { children: [
|
|
|
9450
9450
|
mr: 24,
|
|
9451
9451
|
sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
|
|
9452
9452
|
width: 44,
|
|
9453
|
-
children: /* @__PURE__ */ e(
|
|
9453
|
+
children: /* @__PURE__ */ e(q, { color: "primary", name: "cardiology" })
|
|
9454
9454
|
}
|
|
9455
9455
|
),
|
|
9456
9456
|
i.bullet_two
|
|
@@ -9466,7 +9466,7 @@ const uh = ({ activity: A }) => /* @__PURE__ */ c(_, { children: [
|
|
|
9466
9466
|
mr: 24,
|
|
9467
9467
|
sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
|
|
9468
9468
|
width: 44,
|
|
9469
|
-
children: /* @__PURE__ */ e(
|
|
9469
|
+
children: /* @__PURE__ */ e(q, { color: "primary", name: "flare" })
|
|
9470
9470
|
}
|
|
9471
9471
|
),
|
|
9472
9472
|
i.bullet_three
|
|
@@ -9492,7 +9492,7 @@ const uh = ({ activity: A }) => /* @__PURE__ */ c(_, { children: [
|
|
|
9492
9492
|
transform: rotate(360deg);
|
|
9493
9493
|
}
|
|
9494
9494
|
`, xh = () => {
|
|
9495
|
-
const { addCashflowEvent: A, addCashflowSequence: t, cashflowSequences: i } = kA(), { cashflow: n, common: r } = p(), { completeOnboarding: o } = zn(), { isDirty: a } = Xt(), { isMobile: s } = xA(), { setDisplayedDate: d } = bA(), { filter: I, setFilter: f, transactions: h } = vA(), l = pA(), [u, R] = qe(!0), [b, P] = E.useState(V.EveryMonth), [m, y] = qe(!1), [Q, w] = E.useState(null), [X, L] = qe(1), [D,
|
|
9495
|
+
const { addCashflowEvent: A, addCashflowSequence: t, cashflowSequences: i } = kA(), { cashflow: n, common: r } = p(), { completeOnboarding: o } = zn(), { isDirty: a } = Xt(), { isMobile: s } = xA(), { setDisplayedDate: d } = bA(), { filter: I, setFilter: f, transactions: h } = vA(), l = pA(), [u, R] = qe(!0), [b, P] = E.useState(V.EveryMonth), [m, y] = qe(!1), [Q, w] = E.useState(null), [X, L] = qe(1), [D, M] = qe([]), [N, J] = qe(""), B = E.useMemo(
|
|
9496
9496
|
() => h.find((cA) => cA.guid === N),
|
|
9497
9497
|
[N]
|
|
9498
9498
|
), W = !!i.length, tA = async () => {
|
|
@@ -9573,7 +9573,7 @@ const uh = ({ activity: A }) => /* @__PURE__ */ c(_, { children: [
|
|
|
9573
9573
|
oA,
|
|
9574
9574
|
{
|
|
9575
9575
|
onClick: () => R(!0),
|
|
9576
|
-
startIcon: /* @__PURE__ */ e(
|
|
9576
|
+
startIcon: /* @__PURE__ */ e(q, { name: "add", size: 20 }),
|
|
9577
9577
|
children: n.add_additional_income_button
|
|
9578
9578
|
}
|
|
9579
9579
|
)
|
|
@@ -9613,7 +9613,7 @@ const uh = ({ activity: A }) => /* @__PURE__ */ c(_, { children: [
|
|
|
9613
9613
|
"aria-disabled": !B || !Q,
|
|
9614
9614
|
onClick: () => {
|
|
9615
9615
|
const cA = [...D];
|
|
9616
|
-
cA.push({ ...B, nextDate: Q, frequency: b }),
|
|
9616
|
+
cA.push({ ...B, nextDate: Q, frequency: b }), M(cA), J("");
|
|
9617
9617
|
},
|
|
9618
9618
|
variant: "contained",
|
|
9619
9619
|
children: r.confirm_button
|
|
@@ -9638,7 +9638,7 @@ const uh = ({ activity: A }) => /* @__PURE__ */ c(_, { children: [
|
|
|
9638
9638
|
"aria-disabled": D.length < 1 || m,
|
|
9639
9639
|
onClick: AA,
|
|
9640
9640
|
startIcon: m ? /* @__PURE__ */ e(
|
|
9641
|
-
|
|
9641
|
+
q,
|
|
9642
9642
|
{
|
|
9643
9643
|
name: "progress_activity",
|
|
9644
9644
|
sx: {
|
|
@@ -9724,7 +9724,7 @@ const uh = ({ activity: A }) => /* @__PURE__ */ c(_, { children: [
|
|
|
9724
9724
|
children: /* @__PURE__ */ e(jh, {})
|
|
9725
9725
|
}
|
|
9726
9726
|
);
|
|
9727
|
-
},
|
|
9727
|
+
}, tR = z(Oh);
|
|
9728
9728
|
class Gr {
|
|
9729
9729
|
fetchInstance;
|
|
9730
9730
|
constructor(t, i) {
|
|
@@ -10407,11 +10407,11 @@ const la = ({
|
|
|
10407
10407
|
I.flatMap((w) => w.dataset.map((X) => new Date(X.x).getTime()))
|
|
10408
10408
|
)
|
|
10409
10409
|
].sort((w, X) => w - X).map((w) => new Date(w)), h = I.map((w) => {
|
|
10410
|
-
const X = new Map(w.dataset.map((
|
|
10410
|
+
const X = new Map(w.dataset.map((M) => [new Date(M.x).getTime(), M.y]));
|
|
10411
10411
|
let L = X.get(f[0].getTime()) ?? 0;
|
|
10412
|
-
const D = f.map((
|
|
10413
|
-
const N = X.get(
|
|
10414
|
-
return L = N, { x:
|
|
10412
|
+
const D = f.map((M) => {
|
|
10413
|
+
const N = X.get(M.getTime()) ?? L;
|
|
10414
|
+
return L = N, { x: M, y: N };
|
|
10415
10415
|
});
|
|
10416
10416
|
return { ...w, dataset: D };
|
|
10417
10417
|
}), l = h.reduce(
|
|
@@ -10426,7 +10426,7 @@ const la = ({
|
|
|
10426
10426
|
id: `debt-${X}`,
|
|
10427
10427
|
guid: w.guid,
|
|
10428
10428
|
label: w.name,
|
|
10429
|
-
data: w.dataset.map((
|
|
10429
|
+
data: w.dataset.map((M) => M.y),
|
|
10430
10430
|
color: D,
|
|
10431
10431
|
curve: "linear",
|
|
10432
10432
|
type: "line",
|
|
@@ -11064,7 +11064,7 @@ const tt = (A) => /* @__PURE__ */ e(v, { fontWeight: 600, variant: "Small", chil
|
|
|
11064
11064
|
field: "chevron",
|
|
11065
11065
|
headerName: "",
|
|
11066
11066
|
renderHeader: void 0,
|
|
11067
|
-
renderCell: () => /* @__PURE__ */ e(
|
|
11067
|
+
renderCell: () => /* @__PURE__ */ e(q, { name: "chevron_right'" }),
|
|
11068
11068
|
sortable: !0,
|
|
11069
11069
|
hideSortIcons: !0,
|
|
11070
11070
|
type: "custom",
|
|
@@ -11135,7 +11135,7 @@ const tt = (A) => /* @__PURE__ */ e(v, { fontWeight: 600, variant: "Small", chil
|
|
|
11135
11135
|
"aria-haspopup": !0,
|
|
11136
11136
|
"aria-label": "prioritize-debts",
|
|
11137
11137
|
onClick: i,
|
|
11138
|
-
startIcon: /* @__PURE__ */ e(
|
|
11138
|
+
startIcon: /* @__PURE__ */ e(q, { name: o }),
|
|
11139
11139
|
sx: { justifyContent: "start", minWidth: 214, mx: 4 },
|
|
11140
11140
|
children: A
|
|
11141
11141
|
}
|
|
@@ -11147,7 +11147,7 @@ const tt = (A) => /* @__PURE__ */ e(v, { fontWeight: 600, variant: "Small", chil
|
|
|
11147
11147
|
"aria-haspopup": !0,
|
|
11148
11148
|
"aria-label": "prioritize-debts",
|
|
11149
11149
|
onClick: i,
|
|
11150
|
-
children: /* @__PURE__ */ e(
|
|
11150
|
+
children: /* @__PURE__ */ e(q, { name: o })
|
|
11151
11151
|
}
|
|
11152
11152
|
);
|
|
11153
11153
|
}, wE = z(({ buttonEl: A, onClose: t }) => {
|
|
@@ -11267,7 +11267,7 @@ const tt = (A) => /* @__PURE__ */ e(v, { fontWeight: 600, variant: "Small", chil
|
|
|
11267
11267
|
const L = E.useMemo(
|
|
11268
11268
|
() => yE(X, m),
|
|
11269
11269
|
[X, m]
|
|
11270
|
-
), D = (B) => I(B),
|
|
11270
|
+
), D = (B) => I(B), M = () => {
|
|
11271
11271
|
const B = Q.find((tA) => tA.guid === d), W = L.find((tA) => tA.guid === d);
|
|
11272
11272
|
B && P(B), W && y(W), o(!0);
|
|
11273
11273
|
}, N = () => u(T.DEBTS_CLICK_FILTER), J = () => {
|
|
@@ -11299,7 +11299,7 @@ const tt = (A) => /* @__PURE__ */ e(v, { fontWeight: 600, variant: "Small", chil
|
|
|
11299
11299
|
debts: L,
|
|
11300
11300
|
height: h ? 250 : void 0,
|
|
11301
11301
|
hoveredDebtGuid: d,
|
|
11302
|
-
onClickArea:
|
|
11302
|
+
onClickArea: M,
|
|
11303
11303
|
onHoverArea: D,
|
|
11304
11304
|
sx: { mr: h ? "4px" : "-48px" }
|
|
11305
11305
|
}
|
|
@@ -11320,7 +11320,7 @@ const tt = (A) => /* @__PURE__ */ e(v, { fontWeight: 600, variant: "Small", chil
|
|
|
11320
11320
|
{
|
|
11321
11321
|
debts: L,
|
|
11322
11322
|
hoveredDebtGuid: d,
|
|
11323
|
-
onClickRow:
|
|
11323
|
+
onClickRow: M,
|
|
11324
11324
|
onHoverRow: D
|
|
11325
11325
|
}
|
|
11326
11326
|
) })
|
|
@@ -11336,7 +11336,7 @@ const tt = (A) => /* @__PURE__ */ e(v, { fontWeight: 600, variant: "Small", chil
|
|
|
11336
11336
|
]
|
|
11337
11337
|
}
|
|
11338
11338
|
);
|
|
11339
|
-
},
|
|
11339
|
+
}, nR = z(DE), XE = {
|
|
11340
11340
|
unnamed_label: "Unnamed Debt"
|
|
11341
11341
|
};
|
|
11342
11342
|
function LE(A, t) {
|
|
@@ -11817,7 +11817,7 @@ const Pa = z(
|
|
|
11817
11817
|
s.length === 0 && /* @__PURE__ */ e(C, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ e(v, { variant: "Small", children: d }) }),
|
|
11818
11818
|
s.map((I) => /* @__PURE__ */ e(pe, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ e(Co, { onClick: () => r(I), children: /* @__PURE__ */ e(xe, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ c(C, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
11819
11819
|
/* @__PURE__ */ c(C, { alignItems: "center", direction: "row", gap: 6, children: [
|
|
11820
|
-
/* @__PURE__ */ e(
|
|
11820
|
+
/* @__PURE__ */ e(q, { color: "success", fill: !0, name: "check_circle", size: 20 }),
|
|
11821
11821
|
/* @__PURE__ */ e(v, { color: "text.secondary", variant: "Body", children: I.name })
|
|
11822
11822
|
] }),
|
|
11823
11823
|
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: O(I.amount, "0,0.00") })
|
|
@@ -12325,7 +12325,7 @@ const Pa = z(
|
|
|
12325
12325
|
}
|
|
12326
12326
|
)
|
|
12327
12327
|
] });
|
|
12328
|
-
}),
|
|
12328
|
+
}), rR = z(({ onBackClick: A, sx: t }) => {
|
|
12329
12329
|
const { onEvent: i } = F(), { isMobile: n } = xA(), { accounts: r } = CA(), { isInitialized: o, setSelectedAccounts: a } = bA(), { goals: s, common: d } = p(), { alert: I, loadGoals: f, monthlyCashFlowProfile: h, setAlert: l } = _A(), [u, R] = E.useState(0), [b, P] = E.useState(!1), m = h?.amount_allocated_for_savings_goals || 0, y = h?.amount_allocated_for_debt_goals || 0, Q = h?.amount_allocated_for_retirement_goals || 0, w = g(
|
|
12330
12330
|
n ? s.tab_subtitle_mobile : s.tab_subtitle,
|
|
12331
12331
|
O(m, "0,0")
|
|
@@ -12343,7 +12343,7 @@ const Pa = z(
|
|
|
12343
12343
|
}, [o]);
|
|
12344
12344
|
const D = () => {
|
|
12345
12345
|
i(T.GOALS_CLICK_FILTER);
|
|
12346
|
-
},
|
|
12346
|
+
}, M = () => {
|
|
12347
12347
|
P(!0), i(T.GOALS_CLICK_ADD);
|
|
12348
12348
|
}, N = (J) => {
|
|
12349
12349
|
P(!1), J === S.SAVINGS_TRACK ? R(0) : J === S.DEBT_TRACK ? R(1) : J === S.RETIREMENT_TRACK && R(2);
|
|
@@ -12356,7 +12356,7 @@ const Pa = z(
|
|
|
12356
12356
|
{
|
|
12357
12357
|
iconName: "add",
|
|
12358
12358
|
label: s.add_title,
|
|
12359
|
-
onClick:
|
|
12359
|
+
onClick: M
|
|
12360
12360
|
}
|
|
12361
12361
|
],
|
|
12362
12362
|
onAccountsFilterClick: D,
|
|
@@ -12869,7 +12869,7 @@ const nl = /^[ a-zA-ZÀ-ÿ0-9]+$/, rl = 50, Sr = 65, ol = ({
|
|
|
12869
12869
|
!n.length && /* @__PURE__ */ e(C, { alignItems: "center", my: 24, children: /* @__PURE__ */ e(v, { bold: !0, color: "secondary", variant: "Small", children: o.search_zero_state }) })
|
|
12870
12870
|
] }) }) })
|
|
12871
12871
|
] });
|
|
12872
|
-
},
|
|
12872
|
+
}, oR = z(ol);
|
|
12873
12873
|
class Yr {
|
|
12874
12874
|
fetchInstance;
|
|
12875
12875
|
constructor(t, i) {
|
|
@@ -13177,7 +13177,7 @@ const ul = ({
|
|
|
13177
13177
|
let o = r.palette.secondary.main, a = r.palette.secondary.main, s = "trending_flat";
|
|
13178
13178
|
return n.change < 0 ? s = "trending_down" : n.change > 0 && (o = r.palette.success.main, a = r.palette.success.main, s = "trending_up"), /* @__PURE__ */ c(IA, { alignItems: "center", direction: "row", spacing: 4, children: [
|
|
13179
13179
|
/* @__PURE__ */ e(
|
|
13180
|
-
|
|
13180
|
+
q,
|
|
13181
13181
|
{
|
|
13182
13182
|
name: s,
|
|
13183
13183
|
size: i,
|
|
@@ -13200,14 +13200,14 @@ const ul = ({
|
|
|
13200
13200
|
const [n, r] = E.useState(!1);
|
|
13201
13201
|
return /* @__PURE__ */ c(_, { children: [
|
|
13202
13202
|
/* @__PURE__ */ e(k, { sx: (o) => ({ backgroundColor: o.palette.background.paper }), children: /* @__PURE__ */ c(aA, { onClick: () => r(!n), children: [
|
|
13203
|
-
i && /* @__PURE__ */ e(de, { children: /* @__PURE__ */ e(
|
|
13203
|
+
i && /* @__PURE__ */ e(de, { children: /* @__PURE__ */ e(q, { name: i, size: 24, sx: { mr: 12 } }) }),
|
|
13204
13204
|
/* @__PURE__ */ e(
|
|
13205
13205
|
iA,
|
|
13206
13206
|
{
|
|
13207
13207
|
primary: /* @__PURE__ */ e(v, { sx: { fontWeight: 700 }, variant: "Body", children: t })
|
|
13208
13208
|
}
|
|
13209
13209
|
),
|
|
13210
|
-
/* @__PURE__ */ e(de, { children: n ? /* @__PURE__ */ e(
|
|
13210
|
+
/* @__PURE__ */ e(de, { children: n ? /* @__PURE__ */ e(q, { name: "expand_less", size: 24 }) : /* @__PURE__ */ e(q, { name: "expand_more", size: 24 }) })
|
|
13211
13211
|
] }) }),
|
|
13212
13212
|
/* @__PURE__ */ e(G, {}),
|
|
13213
13213
|
/* @__PURE__ */ e(zi, { in: n, timeout: "auto", unmountOnExit: !0, children: A.map((o, a) => /* @__PURE__ */ c(rA, { children: [
|
|
@@ -13357,7 +13357,7 @@ const ul = ({
|
|
|
13357
13357
|
] }))
|
|
13358
13358
|
] })
|
|
13359
13359
|
] });
|
|
13360
|
-
}, yl = z(Ql),
|
|
13360
|
+
}, yl = z(Ql), aR = z(({ onBackClick: A }) => {
|
|
13361
13361
|
const { isInitialized: t, selectedAccounts: i, setSelectedAccounts: n } = bA(), { net_worth: r } = p(), { accounts: o } = CA(), {
|
|
13362
13362
|
assetsLiabilities: a,
|
|
13363
13363
|
gainsLosses: s,
|
|
@@ -13368,7 +13368,7 @@ const ul = ({
|
|
|
13368
13368
|
selectedData: l,
|
|
13369
13369
|
setHoveredData: u,
|
|
13370
13370
|
setSelectedData: R
|
|
13371
|
-
} = ld(), { isMobile: b } = xA(), { onEvent: P } = F(), [m, y] = E.useState(!1), [Q, w] = E.useState(6), [X, L] = E.useState(!1), [D,
|
|
13371
|
+
} = ld(), { isMobile: b } = xA(), { onEvent: P } = F(), [m, y] = E.useState(!1), [Q, w] = E.useState(6), [X, L] = E.useState(!1), [D, M] = E.useState(!1), N = async () => {
|
|
13372
13372
|
await f(i), await I(Q), y(!0);
|
|
13373
13373
|
};
|
|
13374
13374
|
E.useEffect(() => {
|
|
@@ -13385,7 +13385,7 @@ const ul = ({
|
|
|
13385
13385
|
}, W = () => {
|
|
13386
13386
|
u(null);
|
|
13387
13387
|
}, tA = () => {
|
|
13388
|
-
P(T.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES),
|
|
13388
|
+
P(T.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), M(!0);
|
|
13389
13389
|
}, AA = async (cA) => {
|
|
13390
13390
|
const HA = cA[0], ne = cA[1];
|
|
13391
13391
|
HA && ne && w(Gs(ne, HA));
|
|
@@ -13442,7 +13442,7 @@ const ul = ({
|
|
|
13442
13442
|
{
|
|
13443
13443
|
ariaLabelClose: "Close",
|
|
13444
13444
|
isOpen: D,
|
|
13445
|
-
onClose: () =>
|
|
13445
|
+
onClose: () => M(!1),
|
|
13446
13446
|
shouldShowHeaderBorders: !1,
|
|
13447
13447
|
shouldShowHeaderShadow: !0,
|
|
13448
13448
|
title: r.assets_and_liabilities,
|
|
@@ -13452,7 +13452,7 @@ const ul = ({
|
|
|
13452
13452
|
] })
|
|
13453
13453
|
}
|
|
13454
13454
|
) : /* @__PURE__ */ e(ie, {});
|
|
13455
|
-
}),
|
|
13455
|
+
}), sR = (A) => {
|
|
13456
13456
|
switch (A) {
|
|
13457
13457
|
case BA.BudgetExceeded:
|
|
13458
13458
|
case BA.BudgetOffTarget:
|
|
@@ -13585,7 +13585,7 @@ const Ll = (A, t) => {
|
|
|
13585
13585
|
] }, a.guid);
|
|
13586
13586
|
})
|
|
13587
13587
|
] });
|
|
13588
|
-
},
|
|
13588
|
+
}, cR = z(Ml);
|
|
13589
13589
|
class kr {
|
|
13590
13590
|
fetchInstance;
|
|
13591
13591
|
constructor(t, i) {
|
|
@@ -15232,7 +15232,7 @@ const Sl = ({
|
|
|
15232
15232
|
expandIcon: /* @__PURE__ */ e(fn, { sx: { color: "text.primary" } }),
|
|
15233
15233
|
sx: { height: 64, p: "14px 24px" },
|
|
15234
15234
|
children: /* @__PURE__ */ c(C, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
|
|
15235
|
-
/* @__PURE__ */ e(
|
|
15235
|
+
/* @__PURE__ */ e(q, { name: b, size: 24 }),
|
|
15236
15236
|
/* @__PURE__ */ e(v, { variant: "Body", children: m })
|
|
15237
15237
|
] })
|
|
15238
15238
|
}
|
|
@@ -15304,7 +15304,7 @@ const Sl = ({
|
|
|
15304
15304
|
E.useEffect(() => {
|
|
15305
15305
|
d.message === t.verification_sent_success && y(!0);
|
|
15306
15306
|
}, [d]);
|
|
15307
|
-
const
|
|
15307
|
+
const M = async () => {
|
|
15308
15308
|
await f().then((B) => {
|
|
15309
15309
|
B.success ? I(t.verification_sent_success, "success") : I(t.verification_sent_error, "error");
|
|
15310
15310
|
});
|
|
@@ -15436,7 +15436,7 @@ const Sl = ({
|
|
|
15436
15436
|
copy: { title: "" },
|
|
15437
15437
|
isOpen: u,
|
|
15438
15438
|
onClose: () => R(!1),
|
|
15439
|
-
onPrimaryAction:
|
|
15439
|
+
onPrimaryAction: M,
|
|
15440
15440
|
onSecondaryAction: () => R(!1),
|
|
15441
15441
|
primaryText: t.send_verification,
|
|
15442
15442
|
secondaryText: A.back,
|
|
@@ -15535,7 +15535,7 @@ const Sl = ({
|
|
|
15535
15535
|
]
|
|
15536
15536
|
}
|
|
15537
15537
|
);
|
|
15538
|
-
}),
|
|
15538
|
+
}), dR = z(({ onBackClick: A, sx: t }) => {
|
|
15539
15539
|
const { settings: i } = p(), { alert: n, setAlert: r } = No(), { isMobile: o } = xA(), [a, s] = E.useState(0);
|
|
15540
15540
|
return /* @__PURE__ */ e(le, { onBackClick: A, sx: t, title: i.title, children: /* @__PURE__ */ c(C, { mx: o ? 0 : 48, my: 24, children: [
|
|
15541
15541
|
/* @__PURE__ */ c(
|
|
@@ -15625,7 +15625,7 @@ class Qu {
|
|
|
15625
15625
|
}
|
|
15626
15626
|
};
|
|
15627
15627
|
}
|
|
15628
|
-
class
|
|
15628
|
+
class IR {
|
|
15629
15629
|
accountStore;
|
|
15630
15630
|
appDataStore;
|
|
15631
15631
|
beatStore;
|
|
@@ -15719,7 +15719,7 @@ const Fi = ({
|
|
|
15719
15719
|
},
|
|
15720
15720
|
primaryText: d.is_closed ? h.mark_as_open : h.mark_as_closed,
|
|
15721
15721
|
secondaryText: h.this_will_set_the_account_balance_to_0,
|
|
15722
|
-
children: /* @__PURE__ */ e(
|
|
15722
|
+
children: /* @__PURE__ */ e(q, { name: "chevron_right" })
|
|
15723
15723
|
}
|
|
15724
15724
|
),
|
|
15725
15725
|
l.length > 0 && /* @__PURE__ */ e(
|
|
@@ -15733,7 +15733,7 @@ const Fi = ({
|
|
|
15733
15733
|
},
|
|
15734
15734
|
primaryText: h.mark_as_duplicate,
|
|
15735
15735
|
secondaryText: h.if_a_connected_account_is_showing_up_twice,
|
|
15736
|
-
children: /* @__PURE__ */ e(
|
|
15736
|
+
children: /* @__PURE__ */ e(q, { name: "chevron_right" })
|
|
15737
15737
|
}
|
|
15738
15738
|
),
|
|
15739
15739
|
/* @__PURE__ */ e(
|
|
@@ -15990,7 +15990,7 @@ const Fi = ({
|
|
|
15990
15990
|
] })
|
|
15991
15991
|
}
|
|
15992
15992
|
),
|
|
15993
|
-
/* @__PURE__ */ e(
|
|
15993
|
+
/* @__PURE__ */ e(q, { name: "chevron_right" })
|
|
15994
15994
|
] }) }),
|
|
15995
15995
|
/* @__PURE__ */ e(G, { sx: { ml: n.is_manual || !n.institution_url ? 0 : 24 } }),
|
|
15996
15996
|
!n.is_manual && n.institution_url && /* @__PURE__ */ c(_, { children: [
|
|
@@ -16015,7 +16015,7 @@ const Fi = ({
|
|
|
16015
16015
|
}
|
|
16016
16016
|
) }),
|
|
16017
16017
|
/* @__PURE__ */ e(iA, { primary: n.name, secondary: n.institution_url }),
|
|
16018
|
-
/* @__PURE__ */ e(
|
|
16018
|
+
/* @__PURE__ */ e(q, { name: "launch" })
|
|
16019
16019
|
] }) }),
|
|
16020
16020
|
/* @__PURE__ */ e(G, {})
|
|
16021
16021
|
] }),
|
|
@@ -16138,7 +16138,7 @@ const Fi = ({
|
|
|
16138
16138
|
},
|
|
16139
16139
|
children: [
|
|
16140
16140
|
R,
|
|
16141
|
-
/* @__PURE__ */ e(
|
|
16141
|
+
/* @__PURE__ */ e(q, { name: "chevron_right" })
|
|
16142
16142
|
]
|
|
16143
16143
|
}
|
|
16144
16144
|
) }),
|
|
@@ -16438,7 +16438,7 @@ const Fi = ({
|
|
|
16438
16438
|
] })
|
|
16439
16439
|
}
|
|
16440
16440
|
);
|
|
16441
|
-
},
|
|
16441
|
+
}, fR = z(Ku), Zu = (A, t) => A.filter((i) => t.includes(i.guid)).slice(0, 3), Ju = ({ onPrimaryCtaClick: A, sx: t }) => {
|
|
16442
16442
|
const { accounts: i } = CA(), { accounts: n } = p(), { selectedAccountGuids: r } = bA(), [o, a] = E.useState(i);
|
|
16443
16443
|
return E.useEffect(() => {
|
|
16444
16444
|
a(Zu(i, r));
|
|
@@ -16469,7 +16469,7 @@ const Fi = ({
|
|
|
16469
16469
|
] })
|
|
16470
16470
|
}
|
|
16471
16471
|
);
|
|
16472
|
-
},
|
|
16472
|
+
}, hR = z(Ju), _u = () => /* @__PURE__ */ c(
|
|
16473
16473
|
"svg",
|
|
16474
16474
|
{
|
|
16475
16475
|
fill: "none",
|
|
@@ -16951,7 +16951,7 @@ const Fi = ({
|
|
|
16951
16951
|
}
|
|
16952
16952
|
)
|
|
16953
16953
|
] });
|
|
16954
|
-
},
|
|
16954
|
+
}, ER = z(e9);
|
|
16955
16955
|
class Fr {
|
|
16956
16956
|
fetchInstance;
|
|
16957
16957
|
constructor(t, i) {
|
|
@@ -17234,7 +17234,7 @@ function E9({ bubble: A, isDraggable: t, onClick: i = () => {
|
|
|
17234
17234
|
}
|
|
17235
17235
|
),
|
|
17236
17236
|
/* @__PURE__ */ e(
|
|
17237
|
-
|
|
17237
|
+
q,
|
|
17238
17238
|
{
|
|
17239
17239
|
className: `icon-${s}`,
|
|
17240
17240
|
component: "text",
|
|
@@ -17302,7 +17302,7 @@ const l9 = ({
|
|
|
17302
17302
|
}, u9 = z(l9), v9 = () => {
|
|
17303
17303
|
const { budgets: A } = p();
|
|
17304
17304
|
return /* @__PURE__ */ c(C, { alignItems: "center", gap: 12, sx: { mx: 24, textAlign: "center" }, children: [
|
|
17305
|
-
/* @__PURE__ */ e(
|
|
17305
|
+
/* @__PURE__ */ e(q, { name: "bubble_chart", size: 48 }),
|
|
17306
17306
|
/* @__PURE__ */ e(v, { bold: !0, variant: "Paragraph", children: A.zero_state_title }),
|
|
17307
17307
|
/* @__PURE__ */ e(v, { sx: { whiteSpace: "wrap" }, variant: "Paragraph", children: A.zero_state_description })
|
|
17308
17308
|
] });
|
|
@@ -17343,7 +17343,7 @@ const l9 = ({
|
|
|
17343
17343
|
] })
|
|
17344
17344
|
}
|
|
17345
17345
|
);
|
|
17346
|
-
},
|
|
17346
|
+
}, lR = z(R9), P9 = ({ budget: A, onClick: t }) => {
|
|
17347
17347
|
const {
|
|
17348
17348
|
amount: i,
|
|
17349
17349
|
budgetColors: { background: n, description: r },
|
|
@@ -17388,7 +17388,7 @@ const l9 = ({
|
|
|
17388
17388
|
] });
|
|
17389
17389
|
}), b9 = z(() => {
|
|
17390
17390
|
const A = pA(), { onEvent: t } = F(), { accounts: i } = CA(), { budgets: n, common: r, recurring: o } = p(), { incomeCategories: a, spendCategories: s } = qA(), { detailedBudgets: d, totalBudgeted: I } = WA(), { projectedIncome: f } = kA(), { setFilter: h } = vA(), [l, u] = E.useState(!1), [R, b] = E.useMemo(() => {
|
|
17391
|
-
const Q = s.reduce((D,
|
|
17391
|
+
const Q = s.reduce((D, M) => D + M.totalAmount, 0);
|
|
17392
17392
|
let w = Q / I;
|
|
17393
17393
|
w > 1 && (w = 1);
|
|
17394
17394
|
let X = A.palette.success.main;
|
|
@@ -17443,7 +17443,7 @@ const l9 = ({
|
|
|
17443
17443
|
"aria-label": o.manage_income,
|
|
17444
17444
|
onClick: y,
|
|
17445
17445
|
sx: { p: 0 },
|
|
17446
|
-
children: /* @__PURE__ */ e(
|
|
17446
|
+
children: /* @__PURE__ */ e(q, { name: "edit" })
|
|
17447
17447
|
}
|
|
17448
17448
|
)
|
|
17449
17449
|
] }),
|
|
@@ -17566,7 +17566,7 @@ const l9 = ({
|
|
|
17566
17566
|
secondary: O(A.totalAmount, "0,0")
|
|
17567
17567
|
}
|
|
17568
17568
|
),
|
|
17569
|
-
/* @__PURE__ */ e(hc, { children: /* @__PURE__ */ e(
|
|
17569
|
+
/* @__PURE__ */ e(hc, { children: /* @__PURE__ */ e(q, { name: "add", size: 20 }) })
|
|
17570
17570
|
] }) }, A.guid),
|
|
17571
17571
|
/* @__PURE__ */ e(
|
|
17572
17572
|
XA,
|
|
@@ -17620,7 +17620,7 @@ const l9 = ({
|
|
|
17620
17620
|
}, w9 = z(() => {
|
|
17621
17621
|
const { budgets: A } = p();
|
|
17622
17622
|
return /* @__PURE__ */ c(C, { alignItems: "center", gap: 12, height: "auto", mb: 24, mt: 24, children: [
|
|
17623
|
-
/* @__PURE__ */ e(
|
|
17623
|
+
/* @__PURE__ */ e(q, { color: "secondary", name: "bubble_chart", sx: { fontSize: 32 } }),
|
|
17624
17624
|
/* @__PURE__ */ e(v, { bold: !0, color: "secondary", variant: "Small", children: A.zero_state_no_sub_budgets }),
|
|
17625
17625
|
/* @__PURE__ */ e(v, { color: "text.secondary", variant: "XSmall", children: A.zero_state_no_sub_budgets_description })
|
|
17626
17626
|
] });
|
|
@@ -17661,10 +17661,10 @@ const l9 = ({
|
|
|
17661
17661
|
return /* @__PURE__ */ c(x, { children: [
|
|
17662
17662
|
/* @__PURE__ */ e(k, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(aA, { onClick: b, children: /* @__PURE__ */ e(iA, { children: /* @__PURE__ */ c(C, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
17663
17663
|
/* @__PURE__ */ c(C, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
17664
|
-
/* @__PURE__ */ e(
|
|
17664
|
+
/* @__PURE__ */ e(q, { fill: !0, name: "add_box", size: 24, sx: { color: "action.active" } }),
|
|
17665
17665
|
/* @__PURE__ */ e(v, { bold: !0, sx: { color: "action.active" }, variant: "Body", children: i.add_sub_budget_button })
|
|
17666
17666
|
] }),
|
|
17667
|
-
/* @__PURE__ */ e(
|
|
17667
|
+
/* @__PURE__ */ e(q, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
|
|
17668
17668
|
] }) }) }) }),
|
|
17669
17669
|
/* @__PURE__ */ e(G, {}),
|
|
17670
17670
|
/* @__PURE__ */ e(
|
|
@@ -17808,7 +17808,7 @@ const l9 = ({
|
|
|
17808
17808
|
oA,
|
|
17809
17809
|
{
|
|
17810
17810
|
onClick: u,
|
|
17811
|
-
startIcon: /* @__PURE__ */ e(
|
|
17811
|
+
startIcon: /* @__PURE__ */ e(q, { name: "ios_share" }),
|
|
17812
17812
|
variant: "text",
|
|
17813
17813
|
children: n.export_csv_btn
|
|
17814
17814
|
}
|
|
@@ -17908,8 +17908,8 @@ const l9 = ({
|
|
|
17908
17908
|
}
|
|
17909
17909
|
)
|
|
17910
17910
|
] });
|
|
17911
|
-
}), Jr = 480,
|
|
17912
|
-
const i = pA(), { onEvent: n } = F(), { accounts: r } = CA(), { budgets: o, common: a } = p(), { isInitialized: s, selectedAccounts: d, setDisplayedDate: I, setSelectedAccounts: f } = bA(), { alert: h, dateRange: l, loadBudgets: u, setDateRange: R, setAlert: b, setTheme: P } = WA(), { loadCashflowSequences: m } = kA(), { isDesktop: y, isTablet: Q } = xA(), { reloadCategoryTotals: w } = qA(), [X, L] = E.useState(!1), [D,
|
|
17911
|
+
}), Jr = 480, uR = z(({ onBackClick: A, sx: t }) => {
|
|
17912
|
+
const i = pA(), { onEvent: n } = F(), { accounts: r } = CA(), { budgets: o, common: a } = p(), { isInitialized: s, selectedAccounts: d, setDisplayedDate: I, setSelectedAccounts: f } = bA(), { alert: h, dateRange: l, loadBudgets: u, setDateRange: R, setAlert: b, setTheme: P } = WA(), { loadCashflowSequences: m } = kA(), { isDesktop: y, isTablet: Q } = xA(), { reloadCategoryTotals: w } = qA(), [X, L] = E.useState(!1), [D, M] = E.useState(!1);
|
|
17913
17913
|
E.useEffect(() => {
|
|
17914
17914
|
P(i), f(r), I(l.start, l.end), n(T.BUDGETS_VIEW);
|
|
17915
17915
|
}, []), E.useEffect(() => {
|
|
@@ -17920,9 +17920,9 @@ const l9 = ({
|
|
|
17920
17920
|
}, J = () => {
|
|
17921
17921
|
n(T.BUDGETS_CLICK_FILTER);
|
|
17922
17922
|
}, B = () => {
|
|
17923
|
-
|
|
17923
|
+
M(!0), n(T.BUDGETS_CLICK_ADD);
|
|
17924
17924
|
}, W = () => {
|
|
17925
|
-
|
|
17925
|
+
M(!1);
|
|
17926
17926
|
}, tA = mt(l.end, LA(/* @__PURE__ */ new Date()));
|
|
17927
17927
|
return !s || !X ? /* @__PURE__ */ e(ie, {}) : /* @__PURE__ */ c(
|
|
17928
17928
|
le,
|
|
@@ -17972,7 +17972,7 @@ const l9 = ({
|
|
|
17972
17972
|
{
|
|
17973
17973
|
ariaLabelClose: a.close_aria,
|
|
17974
17974
|
isOpen: D,
|
|
17975
|
-
onClose: () =>
|
|
17975
|
+
onClose: () => M(!1),
|
|
17976
17976
|
title: o.add_new_title,
|
|
17977
17977
|
children: /* @__PURE__ */ e(m9, { onRecalculateBudgets: W })
|
|
17978
17978
|
}
|
|
@@ -18062,7 +18062,7 @@ const x9 = () => {
|
|
|
18062
18062
|
/* @__PURE__ */ e(Ve, { height: 300, variant: "rounded", width: "100%" })
|
|
18063
18063
|
] }) : /* @__PURE__ */ e(C, { direction: "column", spacing: 24, children: I.map((f) => /* @__PURE__ */ e(E.Fragment, { children: f.component }, f.index)) }) })
|
|
18064
18064
|
] });
|
|
18065
|
-
},
|
|
18065
|
+
}, vR = z(O9);
|
|
18066
18066
|
class q9 {
|
|
18067
18067
|
copyApi = new hi("/", "");
|
|
18068
18068
|
copyObject = {};
|
|
@@ -18329,23 +18329,17 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
18329
18329
|
}
|
|
18330
18330
|
)
|
|
18331
18331
|
}
|
|
18332
|
-
), W9 = () =>
|
|
18333
|
-
"path",
|
|
18334
|
-
{
|
|
18335
|
-
d: "M17.5001 10.8333H15.8334C15.5973 10.8333 15.3959 10.7569 15.2292 10.6042C15.0765 10.4375 15.0001 10.2361 15.0001 10C15.0001 9.76392 15.0765 9.56942 15.2292 9.41667C15.3959 9.25001 15.5973 9.16667 15.8334 9.16667H17.5001C17.7362 9.16667 17.9307 9.25001 18.0834 9.41667C18.2501 9.56942 18.3334 9.76392 18.3334 10C18.3334 10.2361 18.2501 10.4375 18.0834 10.6042C17.9307 10.7569 17.7362 10.8333 17.5001 10.8333ZM13.8334 14C13.9723 13.8056 14.1528 13.6944 14.3751 13.6667C14.5973 13.6389 14.8057 13.6944 15.0001 13.8333L16.3334 14.8333C16.5278 14.9723 16.639 15.1528 16.6667 15.375C16.6945 15.5973 16.639 15.8056 16.5001 16C16.3612 16.1944 16.1807 16.3056 15.9584 16.3333C15.7362 16.3611 15.5278 16.3056 15.3334 16.1667L14.0001 15.1667C13.8057 15.0278 13.6945 14.8473 13.6667 14.625C13.639 14.4028 13.6945 14.1944 13.8334 14ZM16.3334 5.16667L15.0001 6.16667C14.8057 6.30556 14.5973 6.36111 14.3751 6.33334C14.1528 6.30556 13.9723 6.19445 13.8334 6.00001C13.6945 5.80556 13.639 5.59723 13.6667 5.37501C13.6945 5.15278 13.8057 4.97223 14.0001 4.83334L15.3334 3.83334C15.5278 3.69445 15.7362 3.6389 15.9584 3.66667C16.1807 3.69445 16.3612 3.80556 16.5001 4.00001C16.639 4.19445 16.6945 4.40278 16.6667 4.62501C16.639 4.84723 16.5278 5.02778 16.3334 5.16667ZM4.16675 12.5H3.33341C2.87508 12.5 2.47925 12.3403 2.14591 12.0208C1.82647 11.6875 1.66675 11.2917 1.66675 10.8333V9.16667C1.66675 8.70834 1.82647 8.31945 2.14591 8.00001C2.47925 7.66667 2.87508 7.50001 3.33341 7.50001H6.66675L9.56258 5.75001C9.84033 5.58334 10.1182 5.58334 10.3959 5.75001C10.6876 5.91667 10.8334 6.15973 10.8334 6.47917V13.5208C10.8334 13.8403 10.6876 14.0833 10.3959 14.25C10.1182 14.4167 9.84033 14.4167 9.56258 14.25L6.66675 12.5H5.83342V15C5.83342 15.2361 5.75008 15.4375 5.58341 15.6042C5.43064 15.7569 5.23619 15.8333 5.00008 15.8333C4.76397 15.8333 4.56258 15.7569 4.39592 15.6042C4.24314 15.4375 4.16675 15.2361 4.16675 15V12.5ZM9.16675 12.0417V7.95834L7.12508 9.16667H3.33341V10.8333H7.12508L9.16675 12.0417ZM11.6667 12.7917V7.20834C12.0417 7.54167 12.3403 7.9514 12.5626 8.43751C12.7987 8.90976 12.9167 9.43059 12.9167 10C12.9167 10.5694 12.7987 11.0973 12.5626 11.5833C12.3403 12.0556 12.0417 12.4583 11.6667 12.7917Z",
|
|
18336
|
-
fill: "#161A20"
|
|
18337
|
-
}
|
|
18338
|
-
) }), K9 = (A) => A ? A.data ? A.data.map((t) => {
|
|
18332
|
+
), W9 = (A) => A ? A.data ? A.data.map((t) => {
|
|
18339
18333
|
const i = {};
|
|
18340
18334
|
return A.names?.map((n, r) => {
|
|
18341
18335
|
i[n] = t[r];
|
|
18342
18336
|
}), i;
|
|
18343
|
-
}) : [] : [],
|
|
18344
|
-
const i =
|
|
18337
|
+
}) : [] : [], K9 = (A, t) => {
|
|
18338
|
+
const i = W9(A), n = i.length / 2, r = i.slice(0, n), o = i.slice(n);
|
|
18345
18339
|
return !r.length || !o.length ? t.Color.Primary300 : r[0].amount > o[0].amount ? t.Color.Error300 : r[0].amount < o[0].amount ? t.Color.Success300 : t.Color.Primary300;
|
|
18346
|
-
},
|
|
18347
|
-
const t = VA(), i =
|
|
18348
|
-
return /* @__PURE__ */ e(
|
|
18340
|
+
}, Z9 = ({ beat: A }) => {
|
|
18341
|
+
const t = VA(), i = K9(A.data_series, t);
|
|
18342
|
+
return /* @__PURE__ */ e(q, { name: "bar_chart", sx: { color: i } });
|
|
18349
18343
|
}, Xa = () => /* @__PURE__ */ c("svg", { fill: "none", height: "36", viewBox: "0 0 40 36", width: "40", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
18350
18344
|
/* @__PURE__ */ e(
|
|
18351
18345
|
"path",
|
|
@@ -19129,8 +19123,8 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19129
19123
|
] })
|
|
19130
19124
|
] }), io = ({ beat: A, clientColorScheme: t, color: i, type: n }) => {
|
|
19131
19125
|
const r = pA(), o = t?.primary_300 ? t.primary_300 : r.palette.primary.main;
|
|
19132
|
-
return n === 0 ? /* @__PURE__ */ e(
|
|
19133
|
-
|
|
19126
|
+
return n === 0 ? /* @__PURE__ */ e(q, { fill: !0, name: "error", sx: { color: i || o } }) : n === 1 && A ? /* @__PURE__ */ e(B9, { beat: A }) : n === 2 && A ? /* @__PURE__ */ e(k9, { beat: A }) : n === 3 && A ? /* @__PURE__ */ e(Z9, { beat: A }) : n === 5 && A ? /* @__PURE__ */ e(q, { name: "campaign" }) : /* @__PURE__ */ e(
|
|
19127
|
+
q,
|
|
19134
19128
|
{
|
|
19135
19129
|
fill: !0,
|
|
19136
19130
|
name: "info",
|
|
@@ -19144,12 +19138,12 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19144
19138
|
STANDARD: 154,
|
|
19145
19139
|
XLARGE: 200,
|
|
19146
19140
|
XXLARGE: 248
|
|
19147
|
-
},
|
|
19141
|
+
}, J9 = 50, xa = 1, ht = () => {
|
|
19148
19142
|
const A = E.useContext(ti);
|
|
19149
19143
|
if (!A)
|
|
19150
19144
|
throw new Error("useCopyStore() must be used within the InsightsMicroWidgetDataProvider");
|
|
19151
19145
|
return A.store.copyStore;
|
|
19152
|
-
},
|
|
19146
|
+
}, _9 = () => {
|
|
19153
19147
|
const A = E.useContext(ti);
|
|
19154
19148
|
if (!A?.store?.insightsMicroWidgetStore)
|
|
19155
19149
|
throw new Error(
|
|
@@ -19166,7 +19160,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19166
19160
|
if (!A)
|
|
19167
19161
|
throw new Error("usePageview() must be used within the InsightsMicroWidgetDataProvider");
|
|
19168
19162
|
return { onPageview: A.onPageview };
|
|
19169
|
-
},
|
|
19163
|
+
}, $9 = ({
|
|
19170
19164
|
ariaLabel: A,
|
|
19171
19165
|
backgroundColor: t,
|
|
19172
19166
|
beat: i,
|
|
@@ -19183,7 +19177,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19183
19177
|
}) => {
|
|
19184
19178
|
const u = window.app?.config.client_guid, { ref: R, inView: b } = Ho({
|
|
19185
19179
|
threshold: xa
|
|
19186
|
-
}), { cardsCopy: P } = ht(), { onEvent: m } = ii(), { updateBeat: y } =
|
|
19180
|
+
}), { cardsCopy: P } = ht(), { onEvent: m } = ii(), { updateBeat: y } = _9();
|
|
19187
19181
|
at(() => {
|
|
19188
19182
|
b && (i.has_been_displayed ? m(Qa(i.template)) : (y({
|
|
19189
19183
|
...i,
|
|
@@ -19233,7 +19227,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19233
19227
|
widthOverrides: l
|
|
19234
19228
|
}
|
|
19235
19229
|
);
|
|
19236
|
-
},
|
|
19230
|
+
}, A3 = ({
|
|
19237
19231
|
clientColorScheme: A,
|
|
19238
19232
|
currentBeatIndex: t,
|
|
19239
19233
|
numBeats: i,
|
|
@@ -19242,7 +19236,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19242
19236
|
scrollRightBoundary: o,
|
|
19243
19237
|
scrollX: a
|
|
19244
19238
|
}) => {
|
|
19245
|
-
const s =
|
|
19239
|
+
const s = e3(), { carouselCopy: d } = ht(), I = Math.floor(a) > o || t === 0, f = a < 0 || i - 1 === t, h = "#BBBCBC", l = A?.primary_300 ? A?.primary_300 : "#2D64EF";
|
|
19246
19240
|
return /* @__PURE__ */ c(x, { className: s, children: [
|
|
19247
19241
|
/* @__PURE__ */ e(
|
|
19248
19242
|
FA,
|
|
@@ -19289,7 +19283,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19289
19283
|
}
|
|
19290
19284
|
)
|
|
19291
19285
|
] });
|
|
19292
|
-
},
|
|
19286
|
+
}, e3 = () => Ie({
|
|
19293
19287
|
alignItems: "center",
|
|
19294
19288
|
display: "flex",
|
|
19295
19289
|
justifyContent: "center",
|
|
@@ -19306,7 +19300,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19306
19300
|
// we were using `gap` instead of margin, but it doesn't work in safari browsers older than iOS 14.1
|
|
19307
19301
|
marginRight: 8
|
|
19308
19302
|
}
|
|
19309
|
-
}),
|
|
19303
|
+
}), t3 = ({
|
|
19310
19304
|
beats: A = [],
|
|
19311
19305
|
clientColorScheme: t,
|
|
19312
19306
|
showCTAColocatedWithText: i,
|
|
@@ -19319,7 +19313,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19319
19313
|
variant: I,
|
|
19320
19314
|
widthOverrides: f
|
|
19321
19315
|
}) => {
|
|
19322
|
-
const h =
|
|
19316
|
+
const h = n3(n, d, f), l = E.useRef(null), [u, R] = E.useState(0), [b, P] = E.useState(null), [m, y] = E.useState(null), { carouselCopy: Q } = ht(), { onEvent: w } = ii(), X = () => {
|
|
19323
19317
|
w(be.ON_CAROUSEL_FORWARD_CLICK), l.current && l.current.scrollTo({
|
|
19324
19318
|
left: (
|
|
19325
19319
|
// Adds the flex gap to the carousel ref's width
|
|
@@ -19336,9 +19330,9 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19336
19330
|
});
|
|
19337
19331
|
}, D = () => {
|
|
19338
19332
|
l.current && R(l.current.scrollLeft);
|
|
19339
|
-
},
|
|
19333
|
+
}, M = () => {
|
|
19340
19334
|
if (!m || !b) return;
|
|
19341
|
-
m - b >
|
|
19335
|
+
m - b > J9 ? w(be.ON_CAROUSEL_FORWARD_SWIPE) : w(be.ON_CAROUSEL_BACK_SWIPE);
|
|
19342
19336
|
}, N = (AA) => {
|
|
19343
19337
|
P(AA.targetTouches[0].clientX);
|
|
19344
19338
|
}, J = (AA) => {
|
|
@@ -19364,7 +19358,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19364
19358
|
{
|
|
19365
19359
|
className: "mx-insights-micro-carousel-container",
|
|
19366
19360
|
onScroll: D,
|
|
19367
|
-
onTouchEnd:
|
|
19361
|
+
onTouchEnd: M,
|
|
19368
19362
|
onTouchMove: N,
|
|
19369
19363
|
onTouchStart: J,
|
|
19370
19364
|
ref: l,
|
|
@@ -19376,7 +19370,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19376
19370
|
HA.toString()
|
|
19377
19371
|
), Re = AA.micro_title && AA.micro_title.length > 0, Ne = AA.micro_description && AA.micro_description.length > 0, gA = Re ? AA.micro_title : AA.title, $A = Ne ? AA.micro_description : AA.description;
|
|
19378
19372
|
return /* @__PURE__ */ e(
|
|
19379
|
-
|
|
19373
|
+
$9,
|
|
19380
19374
|
{
|
|
19381
19375
|
ariaLabel: `${ne}: ${gA}, ${$A}`,
|
|
19382
19376
|
beat: AA,
|
|
@@ -19390,7 +19384,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19390
19384
|
);
|
|
19391
19385
|
}),
|
|
19392
19386
|
/* @__PURE__ */ e(
|
|
19393
|
-
|
|
19387
|
+
E3,
|
|
19394
19388
|
{
|
|
19395
19389
|
isActiveCard: W === A.length,
|
|
19396
19390
|
onCardClick: r,
|
|
@@ -19401,7 +19395,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19401
19395
|
}
|
|
19402
19396
|
),
|
|
19403
19397
|
a && /* @__PURE__ */ e(
|
|
19404
|
-
|
|
19398
|
+
A3,
|
|
19405
19399
|
{
|
|
19406
19400
|
clientColorScheme: t,
|
|
19407
19401
|
currentBeatIndex: W,
|
|
@@ -19415,7 +19409,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19415
19409
|
]
|
|
19416
19410
|
}
|
|
19417
19411
|
);
|
|
19418
|
-
},
|
|
19412
|
+
}, i3 = z(t3), n3 = (A, t = !0, i) => Ie({
|
|
19419
19413
|
alignItems: "center",
|
|
19420
19414
|
boxSizing: "border-box",
|
|
19421
19415
|
display: "flex",
|
|
@@ -19463,7 +19457,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19463
19457
|
E.useEffect(() => {
|
|
19464
19458
|
b && b <= 325 && y(3), b && b > 325 && y(2);
|
|
19465
19459
|
}, [b]);
|
|
19466
|
-
const { cardStyle: Q, linkTextStyle: w } = h, X = R ? Q : { border: "none", boxShadow: "none", ...Q }, L =
|
|
19460
|
+
const { cardStyle: Q, linkTextStyle: w } = h, X = R ? Q : { border: "none", boxShadow: "none", ...Q }, L = r3(
|
|
19467
19461
|
X,
|
|
19468
19462
|
r,
|
|
19469
19463
|
l,
|
|
@@ -19512,7 +19506,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19512
19506
|
}
|
|
19513
19507
|
);
|
|
19514
19508
|
}
|
|
19515
|
-
),
|
|
19509
|
+
), r3 = (A, t, i, n, r, o) => Ie({
|
|
19516
19510
|
height: "100%",
|
|
19517
19511
|
listStyleType: "none",
|
|
19518
19512
|
userSelect: "none",
|
|
@@ -19569,7 +19563,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19569
19563
|
// Needed to override padding for standard and first and last child conditions
|
|
19570
19564
|
padding: "0 !important"
|
|
19571
19565
|
}
|
|
19572
|
-
}),
|
|
19566
|
+
}), o3 = ({
|
|
19573
19567
|
clientColorScheme: A,
|
|
19574
19568
|
onCardClick: t,
|
|
19575
19569
|
posthog: i,
|
|
@@ -19641,7 +19635,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19641
19635
|
]
|
|
19642
19636
|
}
|
|
19643
19637
|
);
|
|
19644
|
-
},
|
|
19638
|
+
}, a3 = z(o3), s3 = ({
|
|
19645
19639
|
heightOverrides: A,
|
|
19646
19640
|
widthOverrides: t,
|
|
19647
19641
|
children: i
|
|
@@ -19662,7 +19656,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19662
19656
|
children: i
|
|
19663
19657
|
}
|
|
19664
19658
|
);
|
|
19665
|
-
},
|
|
19659
|
+
}, c3 = () => /* @__PURE__ */ e(
|
|
19666
19660
|
x,
|
|
19667
19661
|
{
|
|
19668
19662
|
sx: {
|
|
@@ -19674,7 +19668,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19674
19668
|
},
|
|
19675
19669
|
children: /* @__PURE__ */ e(In, {})
|
|
19676
19670
|
}
|
|
19677
|
-
), Be = new S9(),
|
|
19671
|
+
), Be = new S9(), d3 = ({
|
|
19678
19672
|
areBeatsLoading: A,
|
|
19679
19673
|
beats: t = [],
|
|
19680
19674
|
// This also determines the length of the carousel controls (beat.length + 1)
|
|
@@ -19702,14 +19696,14 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19702
19696
|
variant: Q,
|
|
19703
19697
|
widthOverrides: w
|
|
19704
19698
|
}) => {
|
|
19705
|
-
const [X, L] = qe("STANDARD"), [D,
|
|
19699
|
+
const [X, L] = qe("STANDARD"), [D, M] = qe(!1), N = Sc([d], Be), J = Yc([I], Be);
|
|
19706
19700
|
E.useEffect(() => {
|
|
19707
19701
|
Be.isInitialized || Be.initialize(r, P, a);
|
|
19708
19702
|
}, [r, P, a, Be.isInitialized]), E.useEffect(() => {
|
|
19709
19703
|
const tA = window.innerHeight;
|
|
19710
19704
|
tA < 180 ? L("STANDARD") : tA >= 180 && tA < 200 ? L("LARGE") : tA >= 200 && tA < 248 ? L("XLARGE") : tA >= 248 && L("XXLARGE");
|
|
19711
19705
|
}, [window.innerHeight]), E.useEffect(() => {
|
|
19712
|
-
|
|
19706
|
+
M(!A && Be.isInitialized);
|
|
19713
19707
|
}, [A, Be.isInitialized]);
|
|
19714
19708
|
const B = {
|
|
19715
19709
|
showCTAColocatedWithText: n,
|
|
@@ -19729,10 +19723,10 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19729
19723
|
// The Theme provider must wrap the component so that the styles don't break when imported into other applications.
|
|
19730
19724
|
/* @__PURE__ */ c(is, { theme: Va(m ? "dark" : "light"), children: [
|
|
19731
19725
|
/* @__PURE__ */ e(uc, {}),
|
|
19732
|
-
/* @__PURE__ */ e(Y9, { onEvent: N, onPageview: J, store: Be, children: /* @__PURE__ */ c(
|
|
19733
|
-
(A || !Be.isInitialized) && /* @__PURE__ */ e(
|
|
19726
|
+
/* @__PURE__ */ e(Y9, { onEvent: N, onPageview: J, store: Be, children: /* @__PURE__ */ c(s3, { heightOverrides: o, widthOverrides: w, children: [
|
|
19727
|
+
(A || !Be.isInitialized) && /* @__PURE__ */ e(c3, {}),
|
|
19734
19728
|
D && u && /* @__PURE__ */ e(
|
|
19735
|
-
|
|
19729
|
+
a3,
|
|
19736
19730
|
{
|
|
19737
19731
|
clientColorScheme: i,
|
|
19738
19732
|
onCardClick: s,
|
|
@@ -19741,7 +19735,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19741
19735
|
}
|
|
19742
19736
|
),
|
|
19743
19737
|
D && !!t.length && /* @__PURE__ */ e(
|
|
19744
|
-
|
|
19738
|
+
i3,
|
|
19745
19739
|
{
|
|
19746
19740
|
beats: t,
|
|
19747
19741
|
clientColorScheme: i,
|
|
@@ -19750,12 +19744,12 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19750
19744
|
...B
|
|
19751
19745
|
}
|
|
19752
19746
|
),
|
|
19753
|
-
D && !t.length && y && /* @__PURE__ */ e(
|
|
19754
|
-
D && !t.length && !y && /* @__PURE__ */ e(
|
|
19747
|
+
D && !t.length && y && /* @__PURE__ */ e(f3, { clientColorScheme: i, ...W }),
|
|
19748
|
+
D && !t.length && !y && /* @__PURE__ */ e(u3, { ...W })
|
|
19755
19749
|
] }) })
|
|
19756
19750
|
] })
|
|
19757
19751
|
);
|
|
19758
|
-
},
|
|
19752
|
+
}, RR = z(d3), I3 = ({
|
|
19759
19753
|
ariaLabel: A,
|
|
19760
19754
|
carouselSize: t,
|
|
19761
19755
|
clientColorScheme: i,
|
|
@@ -19808,7 +19802,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19808
19802
|
widthOverrides: I
|
|
19809
19803
|
}
|
|
19810
19804
|
);
|
|
19811
|
-
},
|
|
19805
|
+
}, f3 = z(I3), h3 = ({
|
|
19812
19806
|
isActiveCard: A,
|
|
19813
19807
|
ariaLabel: t,
|
|
19814
19808
|
clientColorScheme: i,
|
|
@@ -19859,7 +19853,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19859
19853
|
widthOverrides: d
|
|
19860
19854
|
}
|
|
19861
19855
|
);
|
|
19862
|
-
},
|
|
19856
|
+
}, E3 = z(h3), l3 = ({
|
|
19863
19857
|
ariaLabel: A,
|
|
19864
19858
|
carouselSize: t,
|
|
19865
19859
|
heightOverrides: i,
|
|
@@ -19898,7 +19892,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19898
19892
|
widthOverrides: s
|
|
19899
19893
|
}
|
|
19900
19894
|
);
|
|
19901
|
-
},
|
|
19895
|
+
}, u3 = z(l3), Ki = 5, v3 = (A, t) => t.reduce((i, n) => {
|
|
19902
19896
|
if (n.total > 0) {
|
|
19903
19897
|
const r = A.find((I) => I.guid === n.category_guid);
|
|
19904
19898
|
if (!r) return i;
|
|
@@ -19920,7 +19914,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19920
19914
|
}
|
|
19921
19915
|
return i;
|
|
19922
19916
|
}, []), Oa = (A, t) => {
|
|
19923
|
-
const i =
|
|
19917
|
+
const i = v3(A, t), n = i.filter((d) => d.guid !== H.INCOME && d.guid !== H.TRANSFER).sort((d, I) => I.amount - d.amount), r = n.reduce(
|
|
19924
19918
|
(d, I) => d + I.amount,
|
|
19925
19919
|
0
|
|
19926
19920
|
), o = n.length > Ki ? Ki : n.length, a = n.slice(0, o), s = a.map((d) => ({
|
|
@@ -19982,7 +19976,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
19982
19976
|
}, Ri = ({ amount: A, label: t }) => /* @__PURE__ */ c(C, { direction: "column", children: [
|
|
19983
19977
|
/* @__PURE__ */ e(v, { bold: !0, sx: { textTransform: "none" }, variant: "Body", children: t }),
|
|
19984
19978
|
/* @__PURE__ */ e(v, { variant: "XSmall", children: O(A, "0,0") })
|
|
19985
|
-
] }),
|
|
19979
|
+
] }), R3 = ({
|
|
19986
19980
|
data: A,
|
|
19987
19981
|
isIncome: t = !1,
|
|
19988
19982
|
onSelected: i,
|
|
@@ -20035,7 +20029,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
20035
20029
|
}
|
|
20036
20030
|
)
|
|
20037
20031
|
] }) }) });
|
|
20038
|
-
}, Pi = z(
|
|
20032
|
+
}, Pi = z(R3), no = ({ data: A, onSelected: t, selectedId: i }) => /* @__PURE__ */ e(C, { gap: 8, height: "100%", justifyContent: "center", my: "auto", children: A.categoryData.map((n) => /* @__PURE__ */ c(
|
|
20039
20033
|
C,
|
|
20040
20034
|
{
|
|
20041
20035
|
alignItems: "center",
|
|
@@ -20052,7 +20046,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
20052
20046
|
]
|
|
20053
20047
|
},
|
|
20054
20048
|
n.guid
|
|
20055
|
-
)) }),
|
|
20049
|
+
)) }), P3 = () => {
|
|
20056
20050
|
const A = pA(), { spending: t } = p(), { selectedAccounts: i } = bA(), n = E.useMemo(
|
|
20057
20051
|
() => [
|
|
20058
20052
|
A.palette.chartMono.chartMono5,
|
|
@@ -20142,7 +20136,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
20142
20136
|
/* @__PURE__ */ e(no, { data: l, onSelected: R, selectedId: s })
|
|
20143
20137
|
] }) })
|
|
20144
20138
|
] });
|
|
20145
|
-
},
|
|
20139
|
+
}, C3 = z(P3), b3 = ({ onPrimaryCtaClick: A, sx: t = {} }) => {
|
|
20146
20140
|
const { spending: i } = p();
|
|
20147
20141
|
return /* @__PURE__ */ e(
|
|
20148
20142
|
Ct,
|
|
@@ -20152,10 +20146,10 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
20152
20146
|
primaryCtaLabel: i.primary_cta,
|
|
20153
20147
|
sx: t,
|
|
20154
20148
|
title: i.mini_title,
|
|
20155
|
-
children: /* @__PURE__ */ e(
|
|
20149
|
+
children: /* @__PURE__ */ e(C3, {})
|
|
20156
20150
|
}
|
|
20157
20151
|
);
|
|
20158
|
-
},
|
|
20152
|
+
}, PR = z(b3), H3 = ({
|
|
20159
20153
|
data: A,
|
|
20160
20154
|
onSelected: t,
|
|
20161
20155
|
selectedId: i = "",
|
|
@@ -20234,7 +20228,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
20234
20228
|
] }, a.guid)) }),
|
|
20235
20229
|
/* @__PURE__ */ e(v, { bold: !0, sx: { mt: 12, pr: 8, textAlign: "right" }, children: `${r.total}: ${O(A.totalAmount, "0,0")}` })
|
|
20236
20230
|
] });
|
|
20237
|
-
},
|
|
20231
|
+
}, g3 = z(H3), z3 = ({
|
|
20238
20232
|
data: A,
|
|
20239
20233
|
onSelected: t,
|
|
20240
20234
|
onViewTransactions: i,
|
|
@@ -20280,18 +20274,18 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
20280
20274
|
variant: "full"
|
|
20281
20275
|
}
|
|
20282
20276
|
),
|
|
20283
|
-
/* @__PURE__ */ e(
|
|
20277
|
+
/* @__PURE__ */ e(g3, { data: A, onSelected: t, selectedId: n, title: r })
|
|
20284
20278
|
]
|
|
20285
20279
|
}
|
|
20286
20280
|
);
|
|
20287
|
-
}, ro = z(
|
|
20281
|
+
}, ro = z(z3), p3 = (A) => [
|
|
20288
20282
|
A.palette.chartMono.chartMono5,
|
|
20289
20283
|
A.palette.chartMono.chartMono4,
|
|
20290
20284
|
A.palette.chartMono.chartMono3,
|
|
20291
20285
|
A.palette.chartMono.chartMono2,
|
|
20292
20286
|
A.palette.chartMono.chartMono1,
|
|
20293
20287
|
A.palette.chartMono.chartMono6
|
|
20294
|
-
],
|
|
20288
|
+
], m3 = () => {
|
|
20295
20289
|
const A = $e(), { categories: t, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: n } = qA(), { spending: r } = p(), { displayedDateRange: o, selectedAccounts: a, selectedAccountGuids: s } = bA(), { setFilter: d, sortedTransactions: I } = vA(), [f, h] = E.useState(""), [l, u] = E.useState(0), [R, b] = E.useState(""), [P, m] = E.useState(!1);
|
|
20296
20290
|
E.useEffect(() => {
|
|
20297
20291
|
n(
|
|
@@ -20304,22 +20298,22 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
20304
20298
|
() => Oa(t, i),
|
|
20305
20299
|
[t, i]
|
|
20306
20300
|
), Q = E.useMemo(
|
|
20307
|
-
() => qa(t, i,
|
|
20301
|
+
() => qa(t, i, p3(A)),
|
|
20308
20302
|
[t, i]
|
|
20309
20303
|
), w = E.useMemo(
|
|
20310
|
-
() => I.find((
|
|
20304
|
+
() => I.find((M) => M.guid === R),
|
|
20311
20305
|
[R]
|
|
20312
|
-
), X = (
|
|
20306
|
+
), X = (M, N) => {
|
|
20313
20307
|
u(N), h("");
|
|
20314
|
-
}, L = (
|
|
20315
|
-
h(f ===
|
|
20316
|
-
}, D = (
|
|
20308
|
+
}, L = (M) => {
|
|
20309
|
+
h(f === M || M === "0" ? "" : M);
|
|
20310
|
+
}, D = (M) => {
|
|
20317
20311
|
const N = {
|
|
20318
20312
|
accounts: s,
|
|
20319
20313
|
dateRange: o
|
|
20320
20314
|
};
|
|
20321
20315
|
if (l === 0)
|
|
20322
|
-
if (
|
|
20316
|
+
if (M === "other") {
|
|
20323
20317
|
const J = y.categoryData.find((B) => B.guid === "other");
|
|
20324
20318
|
d({
|
|
20325
20319
|
...N,
|
|
@@ -20328,12 +20322,12 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
20328
20322
|
} else
|
|
20329
20323
|
d({
|
|
20330
20324
|
...N,
|
|
20331
|
-
custom: (J) =>
|
|
20325
|
+
custom: (J) => M ? J.top_level_category_guid === M : J.top_level_category_guid !== H.INCOME
|
|
20332
20326
|
});
|
|
20333
20327
|
else
|
|
20334
20328
|
d({
|
|
20335
20329
|
...N,
|
|
20336
|
-
custom: (J) =>
|
|
20330
|
+
custom: (J) => M ? J.category_guid === M : J.top_level_category_guid === H.INCOME
|
|
20337
20331
|
});
|
|
20338
20332
|
m(!0);
|
|
20339
20333
|
};
|
|
@@ -20405,7 +20399,7 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
20405
20399
|
}
|
|
20406
20400
|
)
|
|
20407
20401
|
] });
|
|
20408
|
-
},
|
|
20402
|
+
}, w3 = z(m3), Q3 = ({ onBackClick: A, sx: t = {} }) => {
|
|
20409
20403
|
const { accounts: i } = CA(), { spending: n } = p(), { isInitialized: r, setDisplayedDate: o, setSelectedAccounts: a } = bA(), { onEvent: s } = F(), [d, I] = E.useState(!1);
|
|
20410
20404
|
E.useEffect(() => {
|
|
20411
20405
|
a(i);
|
|
@@ -20424,11 +20418,11 @@ const ti = E.createContext(null), Y9 = ({
|
|
|
20424
20418
|
onBackClick: A,
|
|
20425
20419
|
sx: t,
|
|
20426
20420
|
title: n.title,
|
|
20427
|
-
children: /* @__PURE__ */ e(x, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ e(
|
|
20421
|
+
children: /* @__PURE__ */ e(x, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ e(w3, {}) })
|
|
20428
20422
|
}
|
|
20429
20423
|
);
|
|
20430
|
-
},
|
|
20431
|
-
function
|
|
20424
|
+
}, CR = z(Q3), y3 = (A) => nt[A] ?? nt.default, D3 = (A) => mi[A];
|
|
20425
|
+
function X3(A, t) {
|
|
20432
20426
|
const i = [], n = new Date(A);
|
|
20433
20427
|
for (; n <= t; ) {
|
|
20434
20428
|
const r = n.getFullYear(), o = String(n.getMonth() + 1).padStart(2, "0");
|
|
@@ -20436,7 +20430,7 @@ function L3(A, t) {
|
|
|
20436
20430
|
}
|
|
20437
20431
|
return i;
|
|
20438
20432
|
}
|
|
20439
|
-
const
|
|
20433
|
+
const L3 = (A) => A.reduce((i, n) => {
|
|
20440
20434
|
const r = {
|
|
20441
20435
|
top_level_category_guid: n.top_level_category_guid,
|
|
20442
20436
|
category_guid: n.category_guid,
|
|
@@ -20444,8 +20438,8 @@ const x3 = (A) => A.reduce((i, n) => {
|
|
|
20444
20438
|
year_month: n.year_month
|
|
20445
20439
|
}, { top_level_category_guid: o, category_guid: a } = r;
|
|
20446
20440
|
return i[a] || (i[a] = []), i[a].push(r), o !== a && (i[o] || (i[o] = []), i[o].push(r)), i;
|
|
20447
|
-
}, {}),
|
|
20448
|
-
const n =
|
|
20441
|
+
}, {}), x3 = (A, t, i) => {
|
|
20442
|
+
const n = L3(A), r = X3(t, i);
|
|
20449
20443
|
return Object.entries(n).map(([a, s]) => {
|
|
20450
20444
|
const d = s[0].top_level_category_guid, I = r.map((f) => {
|
|
20451
20445
|
const h = s.filter((b) => b.year_month === f).reduce((b, P) => b + Math.abs(P.amount), 0), l = Number(String(f).slice(0, 4)), u = Number(String(f).slice(4));
|
|
@@ -20454,18 +20448,18 @@ const x3 = (A) => A.reduce((i, n) => {
|
|
|
20454
20448
|
return {
|
|
20455
20449
|
top_level_category_guid: d,
|
|
20456
20450
|
category_guid: a,
|
|
20457
|
-
category_name:
|
|
20458
|
-
category_color:
|
|
20451
|
+
category_name: D3(a),
|
|
20452
|
+
category_color: y3(d),
|
|
20459
20453
|
dataset: I
|
|
20460
20454
|
};
|
|
20461
20455
|
});
|
|
20462
|
-
},
|
|
20456
|
+
}, j3 = (A, t) => {
|
|
20463
20457
|
const i = typeof A == "string" ? parseFloat(A.replace(/[^0-9.-]+/g, "")) : A, n = typeof t == "string" ? parseFloat(t.replace(/[^0-9.-]+/g, "")) : t;
|
|
20464
20458
|
return (i || 0) - (n || 0);
|
|
20465
|
-
},
|
|
20459
|
+
}, O3 = (A) => {
|
|
20466
20460
|
const t = A.row[A.field];
|
|
20467
20461
|
return /* @__PURE__ */ e(C, { alignItems: "flex-end", tabIndex: A.tabIndex, children: /* @__PURE__ */ e(DA, { amount: t, variant: "Small" }) });
|
|
20468
|
-
},
|
|
20462
|
+
}, q3 = ({ categoryGuid: A, topLevelCategoryGuid: t }) => {
|
|
20469
20463
|
const { categories: i } = p(), n = mi[A];
|
|
20470
20464
|
return /* @__PURE__ */ c(C, { alignItems: "center", direction: "row", justifyContent: "center", children: [
|
|
20471
20465
|
/* @__PURE__ */ e(
|
|
@@ -20478,20 +20472,20 @@ const x3 = (A) => A.reduce((i, n) => {
|
|
|
20478
20472
|
),
|
|
20479
20473
|
/* @__PURE__ */ e(v, { sx: { ml: 12, pb: 6 }, variant: "Small", children: n })
|
|
20480
20474
|
] });
|
|
20481
|
-
},
|
|
20482
|
-
|
|
20475
|
+
}, M3 = (A) => /* @__PURE__ */ e(C, { alignItems: "center", direction: "row", height: "100%", width: "100%", children: /* @__PURE__ */ e(
|
|
20476
|
+
q3,
|
|
20483
20477
|
{
|
|
20484
20478
|
categoryGuid: A.row.category,
|
|
20485
20479
|
topLevelCategoryGuid: A.row.top_level_category_guid
|
|
20486
20480
|
}
|
|
20487
|
-
) }),
|
|
20481
|
+
) }), G3 = (A, t) => {
|
|
20488
20482
|
const i = [], n = new Date(A);
|
|
20489
20483
|
for (; n <= t; ) {
|
|
20490
20484
|
const r = eA(n, $.MONTH);
|
|
20491
20485
|
i.push(r), n.setMonth(n.getMonth() + 1);
|
|
20492
20486
|
}
|
|
20493
20487
|
return i;
|
|
20494
|
-
},
|
|
20488
|
+
}, T3 = ({
|
|
20495
20489
|
monthlyCategoryTotals: A,
|
|
20496
20490
|
selectedDateRange: t,
|
|
20497
20491
|
selectedCategory: i,
|
|
@@ -20501,13 +20495,13 @@ const x3 = (A) => A.reduce((i, n) => {
|
|
|
20501
20495
|
}) => {
|
|
20502
20496
|
const { onEvent: a } = F(), s = eA(/* @__PURE__ */ new Date(), $.MONTH_SHORT), [d, I] = E.useState([
|
|
20503
20497
|
{ field: s, sort: "desc" }
|
|
20504
|
-
]), f = E.useMemo(() =>
|
|
20498
|
+
]), f = E.useMemo(() => G3(t.start, t.end), [t]), h = [
|
|
20505
20499
|
{
|
|
20506
20500
|
field: "category",
|
|
20507
20501
|
headerName: "Category",
|
|
20508
20502
|
minWidth: 175,
|
|
20509
20503
|
renderHeader: tt,
|
|
20510
|
-
renderCell:
|
|
20504
|
+
renderCell: M3,
|
|
20511
20505
|
sortable: !0,
|
|
20512
20506
|
type: "string"
|
|
20513
20507
|
},
|
|
@@ -20517,13 +20511,13 @@ const x3 = (A) => A.reduce((i, n) => {
|
|
|
20517
20511
|
headerName: u,
|
|
20518
20512
|
minWidth: 75,
|
|
20519
20513
|
renderHeader: tt,
|
|
20520
|
-
renderCell:
|
|
20514
|
+
renderCell: O3,
|
|
20521
20515
|
align: "right",
|
|
20522
20516
|
headerAlign: "right",
|
|
20523
20517
|
sortable: !0,
|
|
20524
20518
|
hideSortIcons: !1,
|
|
20525
20519
|
type: "number",
|
|
20526
|
-
sortComparator:
|
|
20520
|
+
sortComparator: j3
|
|
20527
20521
|
})
|
|
20528
20522
|
)
|
|
20529
20523
|
], l = E.useMemo(() => {
|
|
@@ -20565,9 +20559,9 @@ const x3 = (A) => A.reduce((i, n) => {
|
|
|
20565
20559
|
sortingOrder: ["asc", "desc"]
|
|
20566
20560
|
}
|
|
20567
20561
|
) });
|
|
20568
|
-
},
|
|
20562
|
+
}, N3 = {
|
|
20569
20563
|
title: "Transaction List"
|
|
20570
|
-
},
|
|
20564
|
+
}, S3 = ({
|
|
20571
20565
|
categoryGuid: A,
|
|
20572
20566
|
dateRange: t,
|
|
20573
20567
|
isOpen: i,
|
|
@@ -20590,17 +20584,17 @@ const x3 = (A) => A.reduce((i, n) => {
|
|
|
20590
20584
|
ariaLabelClose: a.close_aria,
|
|
20591
20585
|
isOpen: i,
|
|
20592
20586
|
onClose: l,
|
|
20593
|
-
title:
|
|
20587
|
+
title: N3.title,
|
|
20594
20588
|
children: [
|
|
20595
20589
|
h && /* @__PURE__ */ e(Lt, { transaction: h }),
|
|
20596
20590
|
!h && /* @__PURE__ */ e(It, { onClick: f })
|
|
20597
20591
|
]
|
|
20598
20592
|
}
|
|
20599
20593
|
);
|
|
20600
|
-
},
|
|
20594
|
+
}, Y3 = z(S3), B3 = {
|
|
20601
20595
|
view_transactions: "View Transactions"
|
|
20602
|
-
},
|
|
20603
|
-
const i = ZA(), { onEvent: n } = F(), { isDesktop: r, isTablet: o, isMobile: a } = xA(), { accounts: s } = CA(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: I, getCategoryName: f } = qA(), { sortedTransactions: h } = vA(), { isInitialized: l, selectedAccounts: u, setSelectedAccounts: R } = bA(), { trends: b } = p(), P = i.palette.mode === "dark", [m, y] = E.useState(!1), [Q, w] = E.useState(!1), [X, L] = E.useState("Chart"), [D,
|
|
20596
|
+
}, V3 = ({ onBackClick: A, sx: t }) => {
|
|
20597
|
+
const i = ZA(), { onEvent: n } = F(), { isDesktop: r, isTablet: o, isMobile: a } = xA(), { accounts: s } = CA(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: I, getCategoryName: f } = qA(), { sortedTransactions: h } = vA(), { isInitialized: l, selectedAccounts: u, setSelectedAccounts: R } = bA(), { trends: b } = p(), P = i.palette.mode === "dark", [m, y] = E.useState(!1), [Q, w] = E.useState(!1), [X, L] = E.useState("Chart"), [D, M] = E.useState(""), [N, J] = E.useState({
|
|
20604
20598
|
start: tr(NA(Qe(/* @__PURE__ */ new Date(), 6)), 1),
|
|
20605
20599
|
end: NA(/* @__PURE__ */ new Date())
|
|
20606
20600
|
});
|
|
@@ -20617,7 +20611,7 @@ const x3 = (A) => A.reduce((i, n) => {
|
|
|
20617
20611
|
}, [l, u, N]);
|
|
20618
20612
|
const B = E.useMemo(() => {
|
|
20619
20613
|
if (!m) return { stackedDatasets: [], unstackedDatasets: [] };
|
|
20620
|
-
const gA =
|
|
20614
|
+
const gA = x3(
|
|
20621
20615
|
I,
|
|
20622
20616
|
N.start,
|
|
20623
20617
|
N.end
|
|
@@ -20647,9 +20641,9 @@ const x3 = (A) => A.reduce((i, n) => {
|
|
|
20647
20641
|
}, lA = () => {
|
|
20648
20642
|
n(T.TRENDS_CLICK_FILTER);
|
|
20649
20643
|
}, cA = (gA) => {
|
|
20650
|
-
|
|
20644
|
+
M(gA);
|
|
20651
20645
|
}, HA = (gA) => {
|
|
20652
|
-
|
|
20646
|
+
M(gA), n(T.TRENDS_CLICK_LEGEND, { category: f(gA) });
|
|
20653
20647
|
}, ne = (gA) => {
|
|
20654
20648
|
n(T.TRENDS_HOVER_LEGEND, { category: f(gA) });
|
|
20655
20649
|
}, Re = (gA) => {
|
|
@@ -20734,7 +20728,7 @@ const x3 = (A) => A.reduce((i, n) => {
|
|
|
20734
20728
|
}
|
|
20735
20729
|
},
|
|
20736
20730
|
value: gA,
|
|
20737
|
-
children: gA === "Chart" ? /* @__PURE__ */ e(
|
|
20731
|
+
children: gA === "Chart" ? /* @__PURE__ */ e(q, { name: "table_chart_view" }) : /* @__PURE__ */ e(q, { name: "format_list_bulleted" })
|
|
20738
20732
|
},
|
|
20739
20733
|
gA
|
|
20740
20734
|
))
|
|
@@ -20744,11 +20738,11 @@ const x3 = (A) => A.reduce((i, n) => {
|
|
|
20744
20738
|
}
|
|
20745
20739
|
),
|
|
20746
20740
|
/* @__PURE__ */ c(C, { alignItems: "center", flexDirection: "row", width: "100%", children: [
|
|
20747
|
-
/* @__PURE__ */ e(x, { flexGrow: 1, children: D && /* @__PURE__ */ c(oA, { onClick: () =>
|
|
20748
|
-
/* @__PURE__ */ e(
|
|
20741
|
+
/* @__PURE__ */ e(x, { flexGrow: 1, children: D && /* @__PURE__ */ c(oA, { onClick: () => M(""), sx: { p: 0, pr: 5 }, children: [
|
|
20742
|
+
/* @__PURE__ */ e(q, { name: "arrow_back" }),
|
|
20749
20743
|
b.all_categories
|
|
20750
20744
|
] }) }),
|
|
20751
|
-
/* @__PURE__ */ e(oA, { onClick: () => w(!0), sx: { px: 5 }, children: `${
|
|
20745
|
+
/* @__PURE__ */ e(oA, { onClick: () => w(!0), sx: { px: 5 }, children: `${B3.view_transactions} (${h.length})` })
|
|
20752
20746
|
] }),
|
|
20753
20747
|
/* @__PURE__ */ c(x, { children: [
|
|
20754
20748
|
X === "Chart" && /* @__PURE__ */ e(
|
|
@@ -20763,7 +20757,7 @@ const x3 = (A) => A.reduce((i, n) => {
|
|
|
20763
20757
|
}
|
|
20764
20758
|
),
|
|
20765
20759
|
X === "Table" && /* @__PURE__ */ e(
|
|
20766
|
-
|
|
20760
|
+
T3,
|
|
20767
20761
|
{
|
|
20768
20762
|
monthlyCategoryTotals: I,
|
|
20769
20763
|
onClickRow: cA,
|
|
@@ -20776,7 +20770,7 @@ const x3 = (A) => A.reduce((i, n) => {
|
|
|
20776
20770
|
}
|
|
20777
20771
|
),
|
|
20778
20772
|
/* @__PURE__ */ e(
|
|
20779
|
-
|
|
20773
|
+
Y3,
|
|
20780
20774
|
{
|
|
20781
20775
|
categoryGuid: D,
|
|
20782
20776
|
dateRange: N,
|
|
@@ -20787,7 +20781,7 @@ const x3 = (A) => A.reduce((i, n) => {
|
|
|
20787
20781
|
]
|
|
20788
20782
|
}
|
|
20789
20783
|
);
|
|
20790
|
-
},
|
|
20784
|
+
}, bR = z(V3), U3 = () => {
|
|
20791
20785
|
const A = ZA(), { monthlyCategoryTotals: t } = qA(), { trends: i } = p(), n = Zh(t);
|
|
20792
20786
|
return /* @__PURE__ */ e(
|
|
20793
20787
|
gn,
|
|
@@ -20803,7 +20797,7 @@ const x3 = (A) => A.reduce((i, n) => {
|
|
|
20803
20797
|
useCustomMark: !0
|
|
20804
20798
|
}
|
|
20805
20799
|
);
|
|
20806
|
-
},
|
|
20800
|
+
}, k3 = z(U3), F3 = ({ onPrimaryCtaClick: A, sx: t }) => {
|
|
20807
20801
|
const { loadMonthlyCategoryTotals: i } = qA(), { isInitialized: n } = yi(), { trends: r } = p(), { selectedAccounts: o } = bA(), [a, s] = E.useState(!1);
|
|
20808
20802
|
return E.useEffect(() => {
|
|
20809
20803
|
n && i(o).finally(() => {
|
|
@@ -20817,10 +20811,10 @@ const x3 = (A) => A.reduce((i, n) => {
|
|
|
20817
20811
|
subTitle: r.sub_title,
|
|
20818
20812
|
sx: t,
|
|
20819
20813
|
title: r.mini_title,
|
|
20820
|
-
children: /* @__PURE__ */ e(
|
|
20814
|
+
children: /* @__PURE__ */ e(k3, {})
|
|
20821
20815
|
}
|
|
20822
20816
|
);
|
|
20823
|
-
},
|
|
20817
|
+
}, HR = z(F3);
|
|
20824
20818
|
export {
|
|
20825
20819
|
T as ANALYTICS_EVENTS,
|
|
20826
20820
|
Fr as AccountApi,
|
|
@@ -20833,8 +20827,8 @@ export {
|
|
|
20833
20827
|
Cc as AccountSubType,
|
|
20834
20828
|
Z as AccountType,
|
|
20835
20829
|
Rn as AccountTypeName,
|
|
20836
|
-
|
|
20837
|
-
|
|
20830
|
+
hR as AccountsMiniWidget,
|
|
20831
|
+
fR as AccountsWidget,
|
|
20838
20832
|
ca as ActivitySettings,
|
|
20839
20833
|
SA as ActivityStatus,
|
|
20840
20834
|
MA as ActivityType,
|
|
@@ -20842,20 +20836,20 @@ export {
|
|
|
20842
20836
|
Tc as AnalyticsApi,
|
|
20843
20837
|
j as ApiEndpoints,
|
|
20844
20838
|
S9 as AppStore,
|
|
20845
|
-
|
|
20839
|
+
U7 as BarChart,
|
|
20846
20840
|
wt as BeatApi,
|
|
20847
|
-
|
|
20841
|
+
$9 as BeatCard,
|
|
20848
20842
|
ai as BottomActions,
|
|
20849
|
-
|
|
20850
|
-
|
|
20843
|
+
lR as BubbleBudgetsMiniWidget,
|
|
20844
|
+
uR as BubbleBudgetsWidget,
|
|
20851
20845
|
id as Calendar,
|
|
20852
20846
|
jo as CalendarSelectionTypes,
|
|
20853
|
-
|
|
20847
|
+
a3 as CarouselHeader,
|
|
20854
20848
|
Gr as CashflowApi,
|
|
20855
|
-
|
|
20849
|
+
Z7 as CashflowMiniWidget,
|
|
20856
20850
|
jh as CashflowOnboarding,
|
|
20857
20851
|
Mh as CashflowStore,
|
|
20858
|
-
|
|
20852
|
+
tR as CashflowWidget,
|
|
20859
20853
|
fi as CategoryApi,
|
|
20860
20854
|
nt as CategoryColors,
|
|
20861
20855
|
mi as CategoryGuidToName,
|
|
@@ -20868,7 +20862,7 @@ export {
|
|
|
20868
20862
|
F9 as ChartFilledIcon,
|
|
20869
20863
|
Vo as ConnectCard,
|
|
20870
20864
|
ei as ConnectDrawer,
|
|
20871
|
-
|
|
20865
|
+
ER as ConnectMiniWidget,
|
|
20872
20866
|
lt as ConnectionStatus,
|
|
20873
20867
|
KA as ConnectionStatusEnums,
|
|
20874
20868
|
Ii as CurrencyCodes,
|
|
@@ -20877,14 +20871,14 @@ export {
|
|
|
20877
20871
|
$ as DATE_FORMATS_INTL,
|
|
20878
20872
|
Qo as DEFAULT_DONUT_SIZE,
|
|
20879
20873
|
yo as DEFAULT_STROKE_WIDTH,
|
|
20880
|
-
|
|
20874
|
+
vR as Dashboard,
|
|
20881
20875
|
cn as DashboardLocation,
|
|
20882
20876
|
li as DataRow,
|
|
20883
20877
|
Er as DateRangeSelector,
|
|
20884
20878
|
la as DebtsChart,
|
|
20885
20879
|
jE as DebtsStore,
|
|
20886
20880
|
pE as DebtsTable,
|
|
20887
|
-
|
|
20881
|
+
nR as DebtsWidget,
|
|
20888
20882
|
XA as Dialog,
|
|
20889
20883
|
sd as Donut,
|
|
20890
20884
|
dA as Drawer,
|
|
@@ -20895,63 +20889,63 @@ export {
|
|
|
20895
20889
|
hi as GlobalCopyApi,
|
|
20896
20890
|
Xd as GlobalCopyStore,
|
|
20897
20891
|
vt as GlobalDataContext,
|
|
20898
|
-
|
|
20899
|
-
|
|
20892
|
+
k7 as GlobalDataProvider,
|
|
20893
|
+
IR as GlobalStore,
|
|
20900
20894
|
Nr as GoalApi,
|
|
20901
20895
|
$E as GoalStore,
|
|
20902
20896
|
nn as GoalType,
|
|
20903
|
-
|
|
20897
|
+
rR as GoalsWidget,
|
|
20904
20898
|
gu as HelpContent,
|
|
20905
20899
|
zu as HelpList,
|
|
20906
20900
|
mu as HelpWidget,
|
|
20907
20901
|
Pn as INCOME_ACCOUNT_TYPES,
|
|
20908
20902
|
ot as IconBacking,
|
|
20909
20903
|
ui as InformationTooltip,
|
|
20910
|
-
|
|
20904
|
+
RR as InsightsMicroWidget,
|
|
20911
20905
|
Y9 as InsightsMicroWidgetDataProvider,
|
|
20912
20906
|
mc as IterationItemTypes,
|
|
20913
|
-
|
|
20907
|
+
T7 as LOADING_STATUS,
|
|
20914
20908
|
gn as LineChart,
|
|
20915
20909
|
Oe as ListItemAction,
|
|
20916
20910
|
Dd as ListItemWrapper,
|
|
20917
20911
|
ie as Loader,
|
|
20918
|
-
|
|
20912
|
+
B7 as LocalizedCopyApi,
|
|
20919
20913
|
On as ManageIncome,
|
|
20920
20914
|
rt as MemberConnectionStatus,
|
|
20921
|
-
|
|
20915
|
+
oR as MerchantLookup,
|
|
20922
20916
|
al as MerchantStore,
|
|
20923
20917
|
ae as MetaType,
|
|
20924
20918
|
zo as MfaStatuses,
|
|
20925
|
-
|
|
20919
|
+
i3 as MicroBeatCarousel,
|
|
20926
20920
|
Mi as MicroInsightCard,
|
|
20927
20921
|
Ct as MiniWidgetContainer,
|
|
20928
|
-
|
|
20929
|
-
|
|
20922
|
+
Z9 as MonthlySpendComparisonIcon,
|
|
20923
|
+
W7 as MultiSegmentDonut,
|
|
20930
20924
|
vl as NetWorthChart,
|
|
20931
20925
|
bl as NetWorthList,
|
|
20932
20926
|
ll as NetWorthStore,
|
|
20933
20927
|
zl as NetWorthSummary,
|
|
20934
|
-
|
|
20935
|
-
|
|
20928
|
+
aR as NetWorthWidget,
|
|
20929
|
+
f3 as NoRelevantInsightsCard,
|
|
20936
20930
|
mo as NonConnectedStatuses,
|
|
20937
20931
|
ar as NotificationApi,
|
|
20938
|
-
|
|
20932
|
+
cR as NotificationList,
|
|
20939
20933
|
Xl as NotificationStore,
|
|
20940
20934
|
BA as NotificationType,
|
|
20941
20935
|
Pc as ORDINAL_DATE_FORMAT,
|
|
20942
|
-
|
|
20936
|
+
O7 as ORDINAL_MONTH_DAY_YEAR_FORMAT,
|
|
20943
20937
|
Cn as PAYMENT_ACCOUNT_TYPES,
|
|
20944
20938
|
ir as PaymentCategories,
|
|
20945
20939
|
pc as PlanTypes,
|
|
20946
20940
|
bc as ProcessingStatuses,
|
|
20947
20941
|
go as PropertyType,
|
|
20948
|
-
|
|
20949
|
-
|
|
20942
|
+
M7 as PropertyTypeName,
|
|
20943
|
+
G7 as RECURRENCE_COPY,
|
|
20950
20944
|
V as RecurrenceTypes,
|
|
20951
|
-
|
|
20945
|
+
eR as RecurringActivityMiniWidget,
|
|
20952
20946
|
oh as RecurringActivityStore,
|
|
20953
|
-
|
|
20954
|
-
|
|
20947
|
+
AR as RecurringActivityWidget,
|
|
20948
|
+
K7 as ResponsiveButton,
|
|
20955
20949
|
bn as SPENDING_ACCOUNT_TYPES,
|
|
20956
20950
|
_d as ScheduledPaymentTypes,
|
|
20957
20951
|
sr as ScheduledPaymentsApi,
|
|
@@ -20960,14 +20954,14 @@ export {
|
|
|
20960
20954
|
vr as SelectionBox,
|
|
20961
20955
|
kr as SettingsApi,
|
|
20962
20956
|
Gl as SettingsStore,
|
|
20963
|
-
|
|
20957
|
+
dR as SettingsWidget,
|
|
20964
20958
|
Yo as SingleSegmentDonut,
|
|
20965
20959
|
wc as Sizes,
|
|
20966
|
-
|
|
20967
|
-
|
|
20960
|
+
PR as SpendingMiniWidget,
|
|
20961
|
+
CR as SpendingWidget,
|
|
20968
20962
|
bd as StackedLineChart,
|
|
20969
20963
|
Kt as StatusBar,
|
|
20970
|
-
|
|
20964
|
+
q7 as StatusName,
|
|
20971
20965
|
qt as TOUCH_TARGET,
|
|
20972
20966
|
Y as TRANSACTION_EVENTS,
|
|
20973
20967
|
Qt as TabContentContainer,
|
|
@@ -20981,22 +20975,22 @@ export {
|
|
|
20981
20975
|
eI as TransactionStore,
|
|
20982
20976
|
CI as TransactionTable,
|
|
20983
20977
|
se as TransactionType,
|
|
20984
|
-
|
|
20985
|
-
|
|
20986
|
-
|
|
20978
|
+
$7 as TransactionWidget,
|
|
20979
|
+
bR as TrendsFullWidget,
|
|
20980
|
+
HR as TrendsMiniWidget,
|
|
20987
20981
|
cr as UserApi,
|
|
20988
20982
|
Qu as UserStore,
|
|
20989
20983
|
Zd as UserVerification,
|
|
20990
|
-
|
|
20984
|
+
E3 as ViewMoreMicroCard,
|
|
20991
20985
|
dr as WidgetApi,
|
|
20992
20986
|
le as WidgetContainer,
|
|
20993
20987
|
Oo as WidgetContainerContext,
|
|
20994
20988
|
qo as WidgetContainerProvider,
|
|
20995
|
-
|
|
20989
|
+
u3 as ZeroStateCard,
|
|
20996
20990
|
Xa as ZeroStateIcon,
|
|
20997
20991
|
Rc as analyticsSession,
|
|
20998
20992
|
g as buildDynamicCopy,
|
|
20999
|
-
|
|
20993
|
+
Y7 as buildPluralCopy,
|
|
21000
20994
|
Fo as exportTransactionsToCSV,
|
|
21001
20995
|
O as formatCurrency,
|
|
21002
20996
|
eA as formatDate,
|
|
@@ -21006,13 +21000,13 @@ export {
|
|
|
21006
21000
|
Ia as getAccountBalanceDetails,
|
|
21007
21001
|
hh as getAccountDetailFields,
|
|
21008
21002
|
rr as getCategory,
|
|
21009
|
-
|
|
21003
|
+
N7 as getCategoryTotalsByParent,
|
|
21010
21004
|
Xc as getCurrencyCodes,
|
|
21011
21005
|
Qc as getDetailedCategory,
|
|
21012
21006
|
yc as getDetailedSubCategory,
|
|
21013
21007
|
ct as getLocale,
|
|
21014
|
-
|
|
21015
|
-
|
|
21008
|
+
sR as getNotificationDetailRoute,
|
|
21009
|
+
S7 as isIncome,
|
|
21016
21010
|
An as isValidNumber,
|
|
21017
21011
|
CA as useAccountStore,
|
|
21018
21012
|
ve as useAccountUiStore,
|
|
@@ -21033,8 +21027,8 @@ export {
|
|
|
21033
21027
|
Ed as useMerchantStore,
|
|
21034
21028
|
ld as useNetWorthStore,
|
|
21035
21029
|
To as useNotificationStore,
|
|
21036
|
-
|
|
21037
|
-
|
|
21030
|
+
F7 as usePageView,
|
|
21031
|
+
V7 as usePrevious,
|
|
21038
21032
|
kA as useRecurringActivityStore,
|
|
21039
21033
|
xA as useScreenSize,
|
|
21040
21034
|
No as useSettingsStore,
|