@mx-cartographer/experiences 2.34.0 → 2.34.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +4 -0
- package/dist/index.es.js +118 -115
- package/dist/index.es.js.map +1 -1
- package/dist/src/common/components/CurrencyText.d.ts +2 -0
- package/package.json +14 -14
package/dist/index.es.js
CHANGED
@@ -6,7 +6,7 @@ import W from "@mui/material/Divider";
|
|
6
6
|
import dA from "@mui/material/List";
|
7
7
|
import Dn from "@mui/material/ListSubheader";
|
8
8
|
import aa from "@mui/system/Stack";
|
9
|
-
import { useTokens as cA, AccountsIcon as Oi, P as mA, Icon as
|
9
|
+
import { useTokens as cA, AccountsIcon as Oi, P as mA, Icon as H, Text as y, H2 as it, DialogHeader as _i, DialogFooter as xi, Drawer as Ni, Footer as Mi, DateRangePicker as ra, H3 as Hi, H1 as ve, TextField as pe, IconWeight as ur, MerchantLogo as Ee, CategoryIcon as ze, CategoryIconVariants as hr, InstitutionLogo as ot, THEMES as ia, createMXTheme as Ri } from "@kyper/mui";
|
10
10
|
import qi from "bowser";
|
11
11
|
import { getUnixTime as eA } from "date-fns/getUnixTime";
|
12
12
|
import { Honeybadger as ht } from "@honeybadger-io/react";
|
@@ -192,7 +192,7 @@ const ns = async (A, e, n = "1.0.0", a = "Experiences") => {
|
|
192
192
|
[]
|
193
193
|
);
|
194
194
|
return n ? r : r.join("");
|
195
|
-
}, $
|
195
|
+
}, $3 = (A, e, n, ...a) => !A || !e ? "" : N(n === 1 ? A : e, ...a), ye = () => (window?.app?.options?.language || document.querySelector("html")?.getAttribute("lang") || "en-US").toLowerCase(), Ct = [500, 502, 503, 504], ft = "";
|
196
196
|
class KA {
|
197
197
|
endpoint = "/";
|
198
198
|
headers = {};
|
@@ -1138,14 +1138,14 @@ const ws = (A, e) => {
|
|
1138
1138
|
v(null);
|
1139
1139
|
};
|
1140
1140
|
return /* @__PURE__ */ l(L, { className: "mx-cmn-account-filter", m: 4, sx: { ...s }, children: [
|
1141
|
-
u && /* @__PURE__ */ t(st, { id: "filter-accounts", placement: "bottom", title: e.title, children: /* @__PURE__ */ t(TA, { "aria-describedby": "filter-accounts", "aria-label": e.title, onClick: T, children: /* @__PURE__ */ t(
|
1141
|
+
u && /* @__PURE__ */ t(st, { id: "filter-accounts", placement: "bottom", title: e.title, children: /* @__PURE__ */ t(TA, { "aria-describedby": "filter-accounts", "aria-label": e.title, onClick: T, children: /* @__PURE__ */ t(H, { name: "filter_alt" }) }) }),
|
1142
1142
|
(d || h) && /* @__PURE__ */ t(
|
1143
1143
|
Z,
|
1144
1144
|
{
|
1145
1145
|
"aria-label": e.title,
|
1146
|
-
endIcon: o ? /* @__PURE__ */ t(
|
1146
|
+
endIcon: o ? /* @__PURE__ */ t(H, { name: "expand_more" }) : void 0,
|
1147
1147
|
onClick: T,
|
1148
|
-
startIcon: /* @__PURE__ */ t(
|
1148
|
+
startIcon: /* @__PURE__ */ t(H, { name: "filter_alt" }),
|
1149
1149
|
variant: c,
|
1150
1150
|
children: e.title
|
1151
1151
|
}
|
@@ -1381,7 +1381,7 @@ const ws = (A, e) => {
|
|
1381
1381
|
selectedIndex: c,
|
1382
1382
|
valueFormatter: d = (u) => `${u}`
|
1383
1383
|
}) => {
|
1384
|
-
const u = cA(), h = xs(u), g = a.reduce(Os, []), v = A !== void 0 ? A : g.reduce(bs, 0) / g.length, m = Math.max(...g), p = Math.min(...g), T = g.reduce(Ps, 0), w = m >= 0, I = p < 0, S = La(w, I, r), x = La(I, w, r), M = _s(v, m, p, S || x), P = (
|
1384
|
+
const u = cA(), h = xs(u), g = a.reduce(Os, []), v = A !== void 0 ? A : g.reduce(bs, 0) / g.length, m = Math.max(...g), p = Math.min(...g), T = g.reduce(Ps, 0), w = m >= 0, I = p < 0, S = La(w, I, r), x = La(I, w, r), M = _s(v, m, p, S || x), P = (R) => c === void 0 || R === c ? n : `${n}80`, q = () => /* @__PURE__ */ t(
|
1385
1385
|
wa,
|
1386
1386
|
{
|
1387
1387
|
averageLineHeight: M,
|
@@ -1396,11 +1396,11 @@ const ws = (A, e) => {
|
|
1396
1396
|
return /* @__PURE__ */ l("div", { className: `mx-cmn-bar-chart ${h}`, children: [
|
1397
1397
|
/* @__PURE__ */ l("div", { className: "mx-cmn-chart-container", children: [
|
1398
1398
|
/* @__PURE__ */ t(q, {}),
|
1399
|
-
a.map((
|
1399
|
+
a.map((R, K) => /* @__PURE__ */ l(C.Fragment, { children: [
|
1400
1400
|
/* @__PURE__ */ t(
|
1401
1401
|
wa,
|
1402
1402
|
{
|
1403
|
-
ariaLabel:
|
1403
|
+
ariaLabel: R.ariaLabel,
|
1404
1404
|
averageLineHeight: M,
|
1405
1405
|
bottomHeight: x,
|
1406
1406
|
color: P(K),
|
@@ -1409,10 +1409,10 @@ const ws = (A, e) => {
|
|
1409
1409
|
range: T,
|
1410
1410
|
selectedIndex: c,
|
1411
1411
|
topHeight: S,
|
1412
|
-
value:
|
1413
|
-
valueLabel: d(
|
1412
|
+
value: R.value,
|
1413
|
+
valueLabel: d(R.value),
|
1414
1414
|
width: e,
|
1415
|
-
xAxisLabel:
|
1415
|
+
xAxisLabel: R.label
|
1416
1416
|
}
|
1417
1417
|
),
|
1418
1418
|
/* @__PURE__ */ t(q, {})
|
@@ -1550,10 +1550,10 @@ const zs = ({
|
|
1550
1550
|
const m = C.useMemo(() => {
|
1551
1551
|
const S = Gi({ start: gA(c), end: bA(c) }), x = [];
|
1552
1552
|
for (let M = 0; M < S.length; M++) {
|
1553
|
-
const P = S[M], q = ki({ start: P, end: te(P, 6) }),
|
1553
|
+
const P = S[M], q = ki({ start: P, end: te(P, 6) }), R = [];
|
1554
1554
|
for (let K = 0; K < q.length; K++)
|
1555
|
-
|
1556
|
-
x.push(
|
1555
|
+
R.push(q[K]);
|
1556
|
+
x.push(R);
|
1557
1557
|
}
|
1558
1558
|
return x;
|
1559
1559
|
}, [c]), p = (S) => {
|
@@ -1903,7 +1903,7 @@ const zs = ({
|
|
1903
1903
|
padding: "8px 20px 8px 8px"
|
1904
1904
|
},
|
1905
1905
|
children: [
|
1906
|
-
/* @__PURE__ */ t(TA, { "aria-label": A, onClick: e, children: /* @__PURE__ */ t(
|
1906
|
+
/* @__PURE__ */ t(TA, { "aria-label": A, onClick: e, children: /* @__PURE__ */ t(H, { name: "west" }) }),
|
1907
1907
|
/* @__PURE__ */ t(
|
1908
1908
|
L,
|
1909
1909
|
{
|
@@ -1972,14 +1972,14 @@ const zs = ({
|
|
1972
1972
|
p(u);
|
1973
1973
|
}, [u]);
|
1974
1974
|
const x = (P) => {
|
1975
|
-
const q = [...u],
|
1975
|
+
const q = [...u], R = u[0], K = u[1], B = P === "previous";
|
1976
1976
|
if (g === n.dateRangePickerCopy.dateRangeThisMonth)
|
1977
|
-
q[0] = B ? be(
|
1977
|
+
q[0] = B ? be(R, 1) : RA(R, 1), q[1] = bA(B ? be(K, 1) : RA(K, 1));
|
1978
1978
|
else if (g === n.dateRangePickerCopy.dateRangeYTD || g === n.dateRangePickerCopy.dateRangeLastYear)
|
1979
|
-
q[0] = B ? la(ca(
|
1979
|
+
q[0] = B ? la(ca(R), 1) : At(ca(R), 1), q[1] = B ? la(sa(R), 1) : At(sa(R), 1);
|
1980
1980
|
else {
|
1981
|
-
const aA = ro(K,
|
1982
|
-
q[0] = P === "previous" ? qA(
|
1981
|
+
const aA = ro(K, R);
|
1982
|
+
q[0] = P === "previous" ? qA(R, aA) : te(R, aA), q[1] = P === "previous" ? qA(K, aA) : te(K, aA);
|
1983
1983
|
}
|
1984
1984
|
h(q), A.onRangeChanged(q);
|
1985
1985
|
}, M = () => {
|
@@ -2001,7 +2001,7 @@ const zs = ({
|
|
2001
2001
|
"aria-describedby": "select-date",
|
2002
2002
|
"aria-label": "Select a date",
|
2003
2003
|
onClick: () => w(!0),
|
2004
|
-
children: /* @__PURE__ */ t(
|
2004
|
+
children: /* @__PURE__ */ t(H, { name: "calendar_month" })
|
2005
2005
|
}
|
2006
2006
|
)
|
2007
2007
|
}
|
@@ -2018,9 +2018,9 @@ const zs = ({
|
|
2018
2018
|
},
|
2019
2019
|
children: [
|
2020
2020
|
o === "readonly" && /* @__PURE__ */ l(E, { alignItems: "center", direction: "row", gap: 8, children: [
|
2021
|
-
/* @__PURE__ */ t(
|
2021
|
+
/* @__PURE__ */ t(H, { name: "calendar_month", size: 24 }),
|
2022
2022
|
/* @__PURE__ */ t(y, { bold: !0, children: J(u[0], V.MONTH_DAY) }),
|
2023
|
-
/* @__PURE__ */ t(
|
2023
|
+
/* @__PURE__ */ t(H, { name: "remove" }),
|
2024
2024
|
/* @__PURE__ */ t(y, { bold: !0, children: J(u[1], V.MONTH_DAY_YEAR) })
|
2025
2025
|
] }),
|
2026
2026
|
o !== "readonly" && /* @__PURE__ */ l(
|
@@ -2042,7 +2042,7 @@ const zs = ({
|
|
2042
2042
|
"aria-label": n.dateRangePreviousAria,
|
2043
2043
|
color: A.shouldDisablePrevious ? "secondary" : "primary",
|
2044
2044
|
onClick: () => A.shouldDisablePrevious ? null : x("previous"),
|
2045
|
-
children: /* @__PURE__ */ t(
|
2045
|
+
children: /* @__PURE__ */ t(H, { name: "chevron_left", size: 28 })
|
2046
2046
|
}
|
2047
2047
|
),
|
2048
2048
|
/* @__PURE__ */ t(
|
@@ -2051,7 +2051,7 @@ const zs = ({
|
|
2051
2051
|
"aria-disabled": A.shouldDisablePicker,
|
2052
2052
|
color: e,
|
2053
2053
|
onClick: () => A.shouldDisablePicker ? null : w(!0),
|
2054
|
-
startIcon: /* @__PURE__ */ t(
|
2054
|
+
startIcon: /* @__PURE__ */ t(H, { name: "calendar_month", size: 20 }),
|
2055
2055
|
sx: {
|
2056
2056
|
p: d ? 0 : 8,
|
2057
2057
|
width: c ? 280 : 232
|
@@ -2071,7 +2071,7 @@ const zs = ({
|
|
2071
2071
|
"aria-label": n.dateRangeNextAria,
|
2072
2072
|
color: A.shouldDisableNext ? "secondary" : "primary",
|
2073
2073
|
onClick: () => A.shouldDisableNext ? null : x("next"),
|
2074
|
-
children: /* @__PURE__ */ t(
|
2074
|
+
children: /* @__PURE__ */ t(H, { name: "chevron_right", size: 28 })
|
2075
2075
|
}
|
2076
2076
|
)
|
2077
2077
|
]
|
@@ -2303,7 +2303,7 @@ const zs = ({
|
|
2303
2303
|
action: n && /* @__PURE__ */ t(
|
2304
2304
|
Z,
|
2305
2305
|
{
|
2306
|
-
endIcon: /* @__PURE__ */ t(
|
2306
|
+
endIcon: /* @__PURE__ */ t(H, { name: "keyboard_arrow_right_rounded" }),
|
2307
2307
|
onClick: n,
|
2308
2308
|
children: /* @__PURE__ */ t(y, { bold: !0, variant: "Small", children: a })
|
2309
2309
|
}
|
@@ -2400,7 +2400,7 @@ const zs = ({
|
|
2400
2400
|
accounts: A,
|
2401
2401
|
copy: Qr,
|
2402
2402
|
onFilterClick: (P) => {
|
2403
|
-
const q = A.filter((
|
2403
|
+
const q = A.filter((R) => P.includes(R.guid));
|
2404
2404
|
x(P), M(q);
|
2405
2405
|
},
|
2406
2406
|
selectedAccounts: S,
|
@@ -2415,7 +2415,7 @@ const zs = ({
|
|
2415
2415
|
Z,
|
2416
2416
|
{
|
2417
2417
|
onClick: P.onClick,
|
2418
|
-
startIcon: /* @__PURE__ */ t(
|
2418
|
+
startIcon: /* @__PURE__ */ t(H, { name: P.iconName }),
|
2419
2419
|
sx: { mx: 4 },
|
2420
2420
|
children: P.label
|
2421
2421
|
},
|
@@ -2425,7 +2425,7 @@ const zs = ({
|
|
2425
2425
|
{
|
2426
2426
|
"aria-label": P.label,
|
2427
2427
|
onClick: P.onClick,
|
2428
|
-
children: /* @__PURE__ */ t(
|
2428
|
+
children: /* @__PURE__ */ t(H, { name: P.iconName })
|
2429
2429
|
},
|
2430
2430
|
P.iconName
|
2431
2431
|
)
|
@@ -2442,7 +2442,7 @@ const zs = ({
|
|
2442
2442
|
pb: 0
|
2443
2443
|
},
|
2444
2444
|
title: p ? /* @__PURE__ */ t(ve, { children: d }) : /* @__PURE__ */ l(E, { alignItems: "center", flexDirection: "row", children: [
|
2445
|
-
T && /* @__PURE__ */ t(TA, { onClick: s, sx: { ml: -16, mr: 16 }, children: /* @__PURE__ */ t(
|
2445
|
+
T && /* @__PURE__ */ t(TA, { onClick: s, sx: { ml: -16, mr: 16 }, children: /* @__PURE__ */ t(H, { name: "arrow_back" }) }),
|
2446
2446
|
/* @__PURE__ */ t(ve, { variant: "H3", children: d })
|
2447
2447
|
] })
|
2448
2448
|
}
|
@@ -2595,14 +2595,14 @@ const zs = ({
|
|
2595
2595
|
"aria-label": e,
|
2596
2596
|
className: "mx-cat-cancel-search-button",
|
2597
2597
|
onClick: () => n(""),
|
2598
|
-
children: /* @__PURE__ */ t(
|
2598
|
+
children: /* @__PURE__ */ t(H, { name: "cancel", size: 24 })
|
2599
2599
|
}
|
2600
2600
|
);
|
2601
2601
|
return /* @__PURE__ */ t(L, { className: "mx-cmn-search-box", px: i.Spacing.Large, py: i.Spacing.Medium, children: /* @__PURE__ */ t(
|
2602
2602
|
pe,
|
2603
2603
|
{
|
2604
2604
|
InputProps: {
|
2605
|
-
startAdornment: /* @__PURE__ */ t(Dt, { position: "start", children: /* @__PURE__ */ t(
|
2605
|
+
startAdornment: /* @__PURE__ */ t(Dt, { position: "start", children: /* @__PURE__ */ t(H, { color: "disabled", name: "search", size: 26 }) }),
|
2606
2606
|
endAdornment: /* @__PURE__ */ t(Dt, { position: "end", sx: { p: 0 }, children: r ? o : null })
|
2607
2607
|
},
|
2608
2608
|
"aria-label": A,
|
@@ -2701,7 +2701,7 @@ const zs = ({
|
|
2701
2701
|
}
|
2702
2702
|
), Nt = ({ iconName: A, label: e, onClick: n, value: a }) => {
|
2703
2703
|
const r = /* @__PURE__ */ l(AA, { children: [
|
2704
|
-
/* @__PURE__ */ t(SA, { children: /* @__PURE__ */ t(ce, { variant: "rounded", children: /* @__PURE__ */ t(
|
2704
|
+
/* @__PURE__ */ t(SA, { children: /* @__PURE__ */ t(ce, { variant: "rounded", children: /* @__PURE__ */ t(H, { name: A, sx: { color: "text.primary" }, weight: ur.Dark }) }) }),
|
2705
2705
|
/* @__PURE__ */ t(
|
2706
2706
|
rA,
|
2707
2707
|
{
|
@@ -2714,7 +2714,7 @@ const zs = ({
|
|
2714
2714
|
] });
|
2715
2715
|
return n ? /* @__PURE__ */ t($, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(nA, { onClick: n, children: [
|
2716
2716
|
r,
|
2717
|
-
/* @__PURE__ */ t($A, { children: /* @__PURE__ */ t(
|
2717
|
+
/* @__PURE__ */ t($A, { children: /* @__PURE__ */ t(H, { name: "chevron_right", size: 24 }) })
|
2718
2718
|
] }) }) : /* @__PURE__ */ t($, { disableGutters: !1, disablePadding: !1, children: r });
|
2719
2719
|
}, Gn = ({
|
2720
2720
|
body: A,
|
@@ -2727,8 +2727,8 @@ const zs = ({
|
|
2727
2727
|
/* @__PURE__ */ t(y, { bold: !0, variant: "Body", children: n }),
|
2728
2728
|
/* @__PURE__ */ t(y, { sx: { whiteSpace: "unset" }, variant: "Small", children: A })
|
2729
2729
|
] }),
|
2730
|
-
children: /* @__PURE__ */ t(TA, {
|
2731
|
-
|
2730
|
+
children: /* @__PURE__ */ t(TA, { sx: { minHeight: 0, minWidth: 0, p: 0 }, children: /* @__PURE__ */ t(
|
2731
|
+
H,
|
2732
2732
|
{
|
2733
2733
|
name: e,
|
2734
2734
|
sx: { color: "action.active", fontSize: 16 },
|
@@ -2853,12 +2853,12 @@ const Ge = () => {
|
|
2853
2853
|
c.length
|
2854
2854
|
) })
|
2855
2855
|
] }),
|
2856
|
-
/* @__PURE__ */ t(E, { pt: 18, children: /* @__PURE__ */ t(
|
2856
|
+
/* @__PURE__ */ t(E, { pt: 18, children: /* @__PURE__ */ t(H, { name: "remove" }) }),
|
2857
2857
|
/* @__PURE__ */ l(E, { pb: 14, pt: 12, children: [
|
2858
2858
|
/* @__PURE__ */ t(y, { variant: "H2", children: z(v, "0,0.00") }),
|
2859
2859
|
/* @__PURE__ */ t(mA, { variant: "XSmall", whiteSpace: "nowrap", children: N(a.expenses_due, s.length) })
|
2860
2860
|
] }),
|
2861
|
-
/* @__PURE__ */ t(E, { pt: 18, children: /* @__PURE__ */ t(
|
2861
|
+
/* @__PURE__ */ t(E, { pt: 18, children: /* @__PURE__ */ t(H, { name: "equals" }) }),
|
2862
2862
|
/* @__PURE__ */ l(E, { pb: 14, pr: 24, pt: 12, children: [
|
2863
2863
|
/* @__PURE__ */ t(y, { variant: "H2", children: z(m, "0,0.00") }),
|
2864
2864
|
/* @__PURE__ */ l(E, { alignItems: "center", direction: "row", gap: 8, children: [
|
@@ -2870,7 +2870,7 @@ const Ge = () => {
|
|
2870
2870
|
Z,
|
2871
2871
|
{
|
2872
2872
|
onClick: A,
|
2873
|
-
startIcon: /* @__PURE__ */ t(
|
2873
|
+
startIcon: /* @__PURE__ */ t(H, { name: "add" }),
|
2874
2874
|
sx: { fontSize: 13, lineHeight: "initial" },
|
2875
2875
|
children: vt.add_income
|
2876
2876
|
}
|
@@ -2915,7 +2915,7 @@ const Ge = () => {
|
|
2915
2915
|
{
|
2916
2916
|
fullWidth: !0,
|
2917
2917
|
onClick: A,
|
2918
|
-
startIcon: /* @__PURE__ */ t(
|
2918
|
+
startIcon: /* @__PURE__ */ t(H, { name: "add" }),
|
2919
2919
|
sx: { fontSize: 13 },
|
2920
2920
|
children: vt.add_income
|
2921
2921
|
}
|
@@ -3843,9 +3843,9 @@ const HA = () => {
|
|
3843
3843
|
disableTypography: !0,
|
3844
3844
|
secondary: /* @__PURE__ */ l(E, { direction: "row", justifyContent: "space-between", children: [
|
3845
3845
|
/* @__PURE__ */ l(E, { alignItems: "center", direction: "row", gap: 4, children: [
|
3846
|
-
A.is_flagged && /* @__PURE__ */ t(
|
3847
|
-
A.is_hidden && /* @__PURE__ */ t(
|
3848
|
-
A.has_been_split && /* @__PURE__ */ t(
|
3846
|
+
A.is_flagged && /* @__PURE__ */ t(H, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
|
3847
|
+
A.is_hidden && /* @__PURE__ */ t(H, { name: "visibility_off", size: 16 }),
|
3848
|
+
A.has_been_split && /* @__PURE__ */ t(H, { name: "call_split", size: 16 }),
|
3849
3849
|
/* @__PURE__ */ t(y, { variant: "XSmall", children: A.has_been_split ? a.split_transaction_category_label : A.category })
|
3850
3850
|
] }),
|
3851
3851
|
o && r && /* @__PURE__ */ t(y, { bold: !0, color: "action.active", variant: "XSmall", children: o.short_title })
|
@@ -3990,17 +3990,17 @@ const HA = () => {
|
|
3990
3990
|
onMouseEnter: () => a(!0),
|
3991
3991
|
onMouseLeave: () => a(!1),
|
3992
3992
|
children: [
|
3993
|
-
A.row.has_been_split && /* @__PURE__ */ t(
|
3993
|
+
A.row.has_been_split && /* @__PURE__ */ t(H, { name: "call_split", size: 16 }),
|
3994
3994
|
/* @__PURE__ */ t(y, { tabIndex: A.tabIndex, variant: "Small", children: A.row.has_been_split ? e.split_transaction_category_label : A.row.category }),
|
3995
|
-
!A.row.has_been_split && n && /* @__PURE__ */ t(
|
3995
|
+
!A.row.has_been_split && n && /* @__PURE__ */ t(H, { name: "edit", sx: { color: "action.active" } })
|
3996
3996
|
]
|
3997
3997
|
}
|
3998
3998
|
);
|
3999
3999
|
}, Rc = (A) => /* @__PURE__ */ t(y, { tabIndex: A.tabIndex, variant: "Small", children: J(wA(A.row.date), V.MONTH_DAY) }), qc = (A) => {
|
4000
4000
|
const { is_flagged: e, is_hidden: n } = A.row;
|
4001
4001
|
return /* @__PURE__ */ l(L, { tabIndex: A.tabIndex, children: [
|
4002
|
-
e && /* @__PURE__ */ t(
|
4003
|
-
!e && n && /* @__PURE__ */ t(
|
4002
|
+
e && /* @__PURE__ */ t(H, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
|
4003
|
+
!e && n && /* @__PURE__ */ t(H, { name: "visibility_off", size: 16 })
|
4004
4004
|
] });
|
4005
4005
|
}, Ue = (A) => /* @__PURE__ */ t(y, { fontFamily: "InterSemibold", variant: "Small", children: A.colDef.headerName }), zc = (A) => /* @__PURE__ */ l(E, { alignItems: "center", direction: "row", gap: 8, children: [
|
4006
4006
|
/* @__PURE__ */ t(
|
@@ -5192,23 +5192,23 @@ const Wr = ({ transaction: A }) => {
|
|
5192
5192
|
parent_guid: A.guid,
|
5193
5193
|
top_level_category_guid: void 0
|
5194
5194
|
}, [d, u] = C.useState(!1), [h, g] = C.useState(!1), [v, m] = C.useState([]), p = () => {
|
5195
|
-
const
|
5196
|
-
|
5197
|
-
}, T = (
|
5198
|
-
if (
|
5199
|
-
const K = v[
|
5200
|
-
B.splice(
|
5201
|
-
}
|
5202
|
-
}, w = (
|
5195
|
+
const R = [...v];
|
5196
|
+
R.push({ ...c }), R[0].amount -= 1, m(R);
|
5197
|
+
}, T = (R) => {
|
5198
|
+
if (R > 0) {
|
5199
|
+
const K = v[R], B = [...v];
|
5200
|
+
B.splice(R, 1), B[0].amount += K.amount, m(B);
|
5201
|
+
}
|
5202
|
+
}, w = (R, K) => {
|
5203
5203
|
const B = [...v];
|
5204
|
-
B[
|
5204
|
+
B[R].amount = K, B[0].amount = A.amount - B.reduce(
|
5205
5205
|
(aA, OA, de) => aA + (de !== 0 ? OA.amount : 0),
|
5206
5206
|
0
|
5207
5207
|
), m(B);
|
5208
|
-
}, I = (
|
5208
|
+
}, I = (R, K) => {
|
5209
5209
|
const B = [...v], aA = o.find((OA) => OA.guid === K);
|
5210
|
-
aA && (B[
|
5211
|
-
...B[
|
5210
|
+
aA && (B[R] = {
|
5211
|
+
...B[R],
|
5212
5212
|
category_guid: K,
|
5213
5213
|
category: aA.name,
|
5214
5214
|
top_level_category_guid: aA.parent_guid || K
|
@@ -5225,11 +5225,11 @@ const Wr = ({ transaction: A }) => {
|
|
5225
5225
|
e(D.ON_TRANSACTION_SPLIT_CANCEL_CLICK), m([{ ...s }, { ...c }]), u(!1);
|
5226
5226
|
}, P = async () => {
|
5227
5227
|
e(D.ON_TRANSACTION_UNSPLIT);
|
5228
|
-
const
|
5229
|
-
await r(
|
5228
|
+
const R = A.parent_guid ?? A.guid;
|
5229
|
+
await r(R);
|
5230
5230
|
}, q = C.useMemo(() => {
|
5231
|
-
const
|
5232
|
-
return
|
5231
|
+
const R = v.some((B) => !B.category_guid), K = v.some((B) => B.amount <= 0);
|
5232
|
+
return R || K;
|
5233
5233
|
}, [v]);
|
5234
5234
|
return /* @__PURE__ */ l(C.Fragment, { children: [
|
5235
5235
|
A && /* @__PURE__ */ t($, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(nA, { onClick: S, children: [
|
@@ -5859,7 +5859,7 @@ const Wr = ({ transaction: A }) => {
|
|
5859
5859
|
selectedAccountGuids: S,
|
5860
5860
|
selectedAccounts: x,
|
5861
5861
|
setDisplayedDate: M
|
5862
|
-
} = fA(), [P, q] = C.useState(""), [
|
5862
|
+
} = fA(), [P, q] = C.useState(""), [R, K] = C.useState(""), [B, aA] = C.useState(!1);
|
5863
5863
|
C.useEffect(() => {
|
5864
5864
|
const yA = gA(G()), na = bA(G());
|
5865
5865
|
M(yA, na), v({
|
@@ -5875,7 +5875,7 @@ const Wr = ({ transaction: A }) => {
|
|
5875
5875
|
}, [w, S]), C.useEffect(() => {
|
5876
5876
|
c(e);
|
5877
5877
|
}, [e]);
|
5878
|
-
const OA =
|
5878
|
+
const OA = R ? p.find((yA) => yA.guid === R) : void 0, de = i && !!r.payee && !!r.account_guid && !!r.category_guid, JA = (yA) => {
|
5879
5879
|
M(yA[0], yA[1]);
|
5880
5880
|
}, iA = (yA) => {
|
5881
5881
|
s(yA), v({
|
@@ -6101,7 +6101,7 @@ const Wr = ({ transaction: A }) => {
|
|
6101
6101
|
primaryTypographyProps: { fontWeight: 400 }
|
6102
6102
|
}
|
6103
6103
|
),
|
6104
|
-
A.recurrenceType === u.id && /* @__PURE__ */ t(
|
6104
|
+
A.recurrenceType === u.id && /* @__PURE__ */ t(H, { color: "primary", fill: !0, name: "check_circle", size: 24 })
|
6105
6105
|
] }) }, u.id),
|
6106
6106
|
/* @__PURE__ */ t(W, {})
|
6107
6107
|
] }, u.id)) })
|
@@ -6239,7 +6239,7 @@ const Wr = ({ transaction: A }) => {
|
|
6239
6239
|
{
|
6240
6240
|
color: "error",
|
6241
6241
|
onClick: () => h(!0),
|
6242
|
-
startIcon: /* @__PURE__ */ t(
|
6242
|
+
startIcon: /* @__PURE__ */ t(H, { name: "delete" }),
|
6243
6243
|
sx: { mx: 24, my: 16 },
|
6244
6244
|
variant: "text",
|
6245
6245
|
children: p ? GA.activity_delete_income_title : GA.activity_delete_expense_title
|
@@ -6410,8 +6410,8 @@ const Wr = ({ transaction: A }) => {
|
|
6410
6410
|
z(A.amount, "0,0.00")
|
6411
6411
|
] }),
|
6412
6412
|
!e && /* @__PURE__ */ l(E, { alignItems: "center", direction: "row", gap: 6, textTransform: "uppercase", children: [
|
6413
|
-
s && /* @__PURE__ */ t(
|
6414
|
-
c && /* @__PURE__ */ t(
|
6413
|
+
s && /* @__PURE__ */ t(H, { color: "success", fill: !0, name: "check_circle", size: 12 }),
|
6414
|
+
c && /* @__PURE__ */ t(H, { color: "error", fill: !0, name: "cancel", size: 12 }),
|
6415
6415
|
/* @__PURE__ */ t(y, { bold: !0, color: "secondary.light", variant: "XSmall", children: u })
|
6416
6416
|
] })
|
6417
6417
|
] })
|
@@ -6601,7 +6601,7 @@ const Wr = ({ transaction: A }) => {
|
|
6601
6601
|
{
|
6602
6602
|
InputLabelProps: { shrink: !0 },
|
6603
6603
|
SelectProps: {
|
6604
|
-
IconComponent: (d) => /* @__PURE__ */ t(
|
6604
|
+
IconComponent: (d) => /* @__PURE__ */ t(H, { fill: !1, name: "expand_more", size: 20, sx: { mr: 4 }, ...d })
|
6605
6605
|
},
|
6606
6606
|
defaultValue: 0,
|
6607
6607
|
label: QA.frequency,
|
@@ -6658,9 +6658,12 @@ const Wr = ({ transaction: A }) => {
|
|
6658
6658
|
g(""), u(!1);
|
6659
6659
|
};
|
6660
6660
|
return /* @__PURE__ */ l(L, { children: [
|
6661
|
-
/* @__PURE__ */ t($, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(nA, { onClick: I, children: /* @__PURE__ */ t(rA, { children: /* @__PURE__ */ l(E, { alignItems: "center", direction: "row",
|
6662
|
-
/* @__PURE__ */
|
6663
|
-
|
6661
|
+
/* @__PURE__ */ t($, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(nA, { onClick: I, children: /* @__PURE__ */ t(rA, { children: /* @__PURE__ */ l(E, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
6662
|
+
/* @__PURE__ */ l(E, { alignItems: "center", direction: "row", gap: 8, children: [
|
6663
|
+
/* @__PURE__ */ t(H, { fill: !0, name: "add_box", size: 24, sx: { color: "action.active" } }),
|
6664
|
+
/* @__PURE__ */ t(y, { bold: !0, sx: { color: "action.active" }, variant: "Body", children: e })
|
6665
|
+
] }),
|
6666
|
+
/* @__PURE__ */ t(H, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
|
6664
6667
|
] }) }) }) }),
|
6665
6668
|
/* @__PURE__ */ t(W, {}),
|
6666
6669
|
/* @__PURE__ */ t(
|
@@ -6719,7 +6722,7 @@ const Wr = ({ transaction: A }) => {
|
|
6719
6722
|
expectedDate: mr(a.occurs_on),
|
6720
6723
|
name: a.description,
|
6721
6724
|
institution: i?.user_name,
|
6722
|
-
institutionGuid: i?.
|
6725
|
+
institutionGuid: i?.institution_guid,
|
6723
6726
|
merchantGuid: a.merchant_guid,
|
6724
6727
|
recurrenceType: a.recurrence_type,
|
6725
6728
|
recurrenceDay: a.recurrence_day,
|
@@ -6728,9 +6731,9 @@ const Wr = ({ transaction: A }) => {
|
|
6728
6731
|
}), Vl = () => {
|
6729
6732
|
const { scheduledPayments: A } = PA(), { transactions: e } = Y(), { selectedAccounts: n } = fA(), a = Yl(n, A, e);
|
6730
6733
|
return /* @__PURE__ */ l(dA, { sx: { bgcolor: "background.paper" }, children: [
|
6731
|
-
a.map((r) => /* @__PURE__ */ l(C.Fragment, { children: [
|
6734
|
+
a.map((r, i) => /* @__PURE__ */ l(C.Fragment, { children: [
|
6732
6735
|
/* @__PURE__ */ t($n, { activity: r, showOrdinal: !0 }),
|
6733
|
-
/* @__PURE__ */ t(W, {})
|
6736
|
+
/* @__PURE__ */ t(W, { variant: i < a.length - 1 ? "inset" : "fullWidth" })
|
6734
6737
|
] }, r.scheduledPaymentGuid)),
|
6735
6738
|
/* @__PURE__ */ t(ii, { label: Wl.manage_expenses_label })
|
6736
6739
|
] });
|
@@ -6899,7 +6902,7 @@ const Wr = ({ transaction: A }) => {
|
|
6899
6902
|
expectedDate: u,
|
6900
6903
|
name: i.name,
|
6901
6904
|
institution: d?.user_name,
|
6902
|
-
institutionGuid: d?.
|
6905
|
+
institutionGuid: d?.institution_guid,
|
6903
6906
|
merchantGuid: c?.merchant_guid,
|
6904
6907
|
recurrenceType: Tn(i),
|
6905
6908
|
recurrenceDay: Number(i.repeat_day),
|
@@ -6914,9 +6917,9 @@ const Wr = ({ transaction: A }) => {
|
|
6914
6917
|
r
|
6915
6918
|
);
|
6916
6919
|
return /* @__PURE__ */ l(dA, { sx: { bgcolor: "background.paper" }, children: [
|
6917
|
-
i.map((o) => /* @__PURE__ */ l(C.Fragment, { children: [
|
6920
|
+
i.map((o, s) => /* @__PURE__ */ l(C.Fragment, { children: [
|
6918
6921
|
/* @__PURE__ */ t($n, { activity: o, showOrdinal: !0 }),
|
6919
|
-
/* @__PURE__ */ t(W, {})
|
6922
|
+
/* @__PURE__ */ t(W, { variant: s < i.length - 1 ? "inset" : "fullWidth" })
|
6920
6923
|
] }, o.sequenceGuid)),
|
6921
6924
|
/* @__PURE__ */ t(ii, { isIncome: !0, label: Ad.manage_income_add })
|
6922
6925
|
] });
|
@@ -7144,7 +7147,7 @@ const Wr = ({ transaction: A }) => {
|
|
7144
7147
|
/* @__PURE__ */ t(y, { variant: "XSmall", children: s.activity_expected })
|
7145
7148
|
] })
|
7146
7149
|
] }),
|
7147
|
-
i && /* @__PURE__ */ t(Z, { onClick: i, startIcon: /* @__PURE__ */ t(
|
7150
|
+
i && /* @__PURE__ */ t(Z, { onClick: i, startIcon: /* @__PURE__ */ t(H, { name: "add" }), variant: "text", children: s.activity_add_new })
|
7148
7151
|
] }),
|
7149
7152
|
/* @__PURE__ */ t(Fs, { data: c })
|
7150
7153
|
] });
|
@@ -7565,7 +7568,7 @@ const F = {
|
|
7565
7568
|
const n = Object.keys(k).filter((a) => Number(a)).map((a) => ({
|
7566
7569
|
label: Ot[a],
|
7567
7570
|
value: Number(a),
|
7568
|
-
icon: /* @__PURE__ */ t(
|
7571
|
+
icon: /* @__PURE__ */ t(H, { name: ss[a] })
|
7569
7572
|
}));
|
7570
7573
|
e.push({
|
7571
7574
|
label: F.account_type,
|
@@ -7580,7 +7583,7 @@ const F = {
|
|
7580
7583
|
const n = Object.keys(br).filter((a) => Number(a)).map((a) => ({
|
7581
7584
|
label: cs[a],
|
7582
7585
|
value: Number(a),
|
7583
|
-
icon: /* @__PURE__ */ t(
|
7586
|
+
icon: /* @__PURE__ */ t(H, { name: ls[a] })
|
7584
7587
|
}));
|
7585
7588
|
e.push({
|
7586
7589
|
label: F.property_type,
|
@@ -8048,7 +8051,7 @@ const Sd = ({ activity: A }) => {
|
|
8048
8051
|
Z,
|
8049
8052
|
{
|
8050
8053
|
onClick: () => e(!0),
|
8051
|
-
startIcon: /* @__PURE__ */ t(
|
8054
|
+
startIcon: /* @__PURE__ */ t(H, { name: "add" }),
|
8052
8055
|
sx: { fontSize: 13 },
|
8053
8056
|
children: Xe.add_income
|
8054
8057
|
}
|
@@ -8103,7 +8106,7 @@ const Sd = ({ activity: A }) => {
|
|
8103
8106
|
mr: 24,
|
8104
8107
|
sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
|
8105
8108
|
width: 44,
|
8106
|
-
children: /* @__PURE__ */ t(
|
8109
|
+
children: /* @__PURE__ */ t(H, { color: "primary", name: "currency_exchange" })
|
8107
8110
|
}
|
8108
8111
|
),
|
8109
8112
|
n.bullet_one
|
@@ -8119,7 +8122,7 @@ const Sd = ({ activity: A }) => {
|
|
8119
8122
|
mr: 24,
|
8120
8123
|
sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
|
8121
8124
|
width: 44,
|
8122
|
-
children: /* @__PURE__ */ t(
|
8125
|
+
children: /* @__PURE__ */ t(H, { color: "primary", name: "cardiology" })
|
8123
8126
|
}
|
8124
8127
|
),
|
8125
8128
|
n.bullet_two
|
@@ -8135,7 +8138,7 @@ const Sd = ({ activity: A }) => {
|
|
8135
8138
|
mr: 24,
|
8136
8139
|
sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
|
8137
8140
|
width: 44,
|
8138
|
-
children: /* @__PURE__ */ t(
|
8141
|
+
children: /* @__PURE__ */ t(H, { color: "primary", name: "flare" })
|
8139
8142
|
}
|
8140
8143
|
),
|
8141
8144
|
n.bullet_three
|
@@ -8169,9 +8172,9 @@ const Sd = ({ activity: A }) => {
|
|
8169
8172
|
`, Gd = () => {
|
8170
8173
|
const { addCashflowEvent: A, addCashflowSequence: e, cashflowSequences: n } = PA(), {
|
8171
8174
|
copy: { onboarding: a }
|
8172
|
-
} = zA(), { completeOnboarding: r } = zA(), { isDirty: i } = Ge(), { isMobile: o } = Ae(), { setDisplayedDate: s } = fA(), { filter: c, setFilter: d, transactions: u } = Y(), h = tA(), [g, v] = oe(!0), [m, p] = C.useState(_.EveryMonth), [T, w] = oe(!1), [I, S] = C.useState(null), [x, M] = oe(1), [P, q] = oe([]), [
|
8173
|
-
() => u.find((iA) => iA.guid ===
|
8174
|
-
[
|
8175
|
+
} = zA(), { completeOnboarding: r } = zA(), { isDirty: i } = Ge(), { isMobile: o } = Ae(), { setDisplayedDate: s } = fA(), { filter: c, setFilter: d, transactions: u } = Y(), h = tA(), [g, v] = oe(!0), [m, p] = C.useState(_.EveryMonth), [T, w] = oe(!1), [I, S] = C.useState(null), [x, M] = oe(1), [P, q] = oe([]), [R, K] = oe(""), B = C.useMemo(
|
8176
|
+
() => u.find((iA) => iA.guid === R),
|
8177
|
+
[R]
|
8175
8178
|
), aA = !!n.length, OA = async () => {
|
8176
8179
|
M(2), s(
|
8177
8180
|
// Beginning of the month, 90 days before today
|
@@ -8250,7 +8253,7 @@ const Sd = ({ activity: A }) => {
|
|
8250
8253
|
Z,
|
8251
8254
|
{
|
8252
8255
|
onClick: () => v(!0),
|
8253
|
-
startIcon: /* @__PURE__ */ t(
|
8256
|
+
startIcon: /* @__PURE__ */ t(H, { name: "add", size: 20 }),
|
8254
8257
|
children: rn.add_additional_income_button
|
8255
8258
|
}
|
8256
8259
|
)
|
@@ -8315,7 +8318,7 @@ const Sd = ({ activity: A }) => {
|
|
8315
8318
|
"aria-disabled": P.length < 1 || T,
|
8316
8319
|
onClick: de,
|
8317
8320
|
startIcon: T ? /* @__PURE__ */ t(
|
8318
|
-
|
8321
|
+
H,
|
8319
8322
|
{
|
8320
8323
|
name: "progress_activity",
|
8321
8324
|
sx: {
|
@@ -8995,7 +8998,7 @@ const on = ({
|
|
8995
8998
|
onClick: () => e(!0),
|
8996
8999
|
primaryText: c.is_closed ? uA.mark_as_open : uA.mark_as_closed,
|
8997
9000
|
secondaryText: uA.this_will_set_the_account_balance_to_0,
|
8998
|
-
children: /* @__PURE__ */ t(
|
9001
|
+
children: /* @__PURE__ */ t(H, { name: "chevron_right" })
|
8999
9002
|
}
|
9000
9003
|
),
|
9001
9004
|
h.length > 0 && /* @__PURE__ */ t(
|
@@ -9005,7 +9008,7 @@ const on = ({
|
|
9005
9008
|
onClick: () => a(!0),
|
9006
9009
|
primaryText: uA.mark_as_duplicate,
|
9007
9010
|
secondaryText: uA.if_a_connected_account_is_showing_up_twice,
|
9008
|
-
children: /* @__PURE__ */ t(
|
9011
|
+
children: /* @__PURE__ */ t(H, { name: "chevron_right" })
|
9009
9012
|
}
|
9010
9013
|
),
|
9011
9014
|
/* @__PURE__ */ t(
|
@@ -9326,7 +9329,7 @@ const on = ({
|
|
9326
9329
|
] })
|
9327
9330
|
}
|
9328
9331
|
),
|
9329
|
-
/* @__PURE__ */ t(
|
9332
|
+
/* @__PURE__ */ t(H, { name: "chevron_right" })
|
9330
9333
|
] }) }),
|
9331
9334
|
/* @__PURE__ */ t(W, { sx: { ml: a.is_manual || !a.institution_url ? 0 : 24 } }),
|
9332
9335
|
!a.is_manual && a.institution_url && /* @__PURE__ */ l(AA, { children: [
|
@@ -9351,7 +9354,7 @@ const on = ({
|
|
9351
9354
|
}
|
9352
9355
|
) }),
|
9353
9356
|
/* @__PURE__ */ t(rA, { primary: a.name, secondary: a.institution_url }),
|
9354
|
-
/* @__PURE__ */ t(
|
9357
|
+
/* @__PURE__ */ t(H, { name: "launch" })
|
9355
9358
|
] }) }),
|
9356
9359
|
/* @__PURE__ */ t(W, {})
|
9357
9360
|
] }),
|
@@ -9481,7 +9484,7 @@ const on = ({
|
|
9481
9484
|
},
|
9482
9485
|
children: [
|
9483
9486
|
g,
|
9484
|
-
/* @__PURE__ */ t(
|
9487
|
+
/* @__PURE__ */ t(H, { name: "chevron_right" })
|
9485
9488
|
]
|
9486
9489
|
}
|
9487
9490
|
) }),
|
@@ -10700,7 +10703,7 @@ const er = {
|
|
10700
10703
|
simplify_your_budgets_zero_state_title: "Simplify Your Budgets",
|
10701
10704
|
every_transaction_is_automatically_zero_state_copy: "Every transaction is automatically categorized and put in a budget to help you stay on track."
|
10702
10705
|
}, h1 = () => /* @__PURE__ */ l(E, { alignItems: "center", gap: 12, sx: { mx: 24, textAlign: "center" }, children: [
|
10703
|
-
/* @__PURE__ */ t(
|
10706
|
+
/* @__PURE__ */ t(H, { name: "bubble_chart", size: 48 }),
|
10704
10707
|
/* @__PURE__ */ t(y, { bold: !0, children: nr.simplify_your_budgets_zero_state_title }),
|
10705
10708
|
/* @__PURE__ */ t(y, { sx: { whiteSpace: "wrap" }, children: nr.every_transaction_is_automatically_zero_state_copy })
|
10706
10709
|
] }), g1 = ({
|
@@ -10825,7 +10828,7 @@ const Lt = {
|
|
10825
10828
|
children: /* @__PURE__ */ l(dA, { children: [
|
10826
10829
|
/* @__PURE__ */ t(W, {}),
|
10827
10830
|
/* @__PURE__ */ t($, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(nA, { onClick: () => null, children: [
|
10828
|
-
/* @__PURE__ */ t(
|
10831
|
+
/* @__PURE__ */ t(H, { name: "visibility_off_outlined", size: 24, sx: { marginRight: 12 } }),
|
10829
10832
|
/* @__PURE__ */ t(
|
10830
10833
|
rA,
|
10831
10834
|
{
|
@@ -10835,7 +10838,7 @@ const Lt = {
|
|
10835
10838
|
}
|
10836
10839
|
),
|
10837
10840
|
A.hiddenInsights && /* @__PURE__ */ t(y, { sx: { marginRight: 24 }, children: A.hiddenInsights.length }),
|
10838
|
-
/* @__PURE__ */ t(
|
10841
|
+
/* @__PURE__ */ t(H, { name: "chevron_right", size: 24 })
|
10839
10842
|
] }) }),
|
10840
10843
|
/* @__PURE__ */ t(W, {})
|
10841
10844
|
] })
|
@@ -11118,7 +11121,7 @@ const lt = C.createContext(null), b1 = ({
|
|
11118
11121
|
return !r.length || !i.length ? e.Color.Primary300 : r[0].amount > i[0].amount ? e.Color.Error300 : r[0].amount < i[0].amount ? e.Color.Success300 : e.Color.Primary300;
|
11119
11122
|
}, R1 = ({ beat: A }) => {
|
11120
11123
|
const e = cA(), n = H1(A.data_series, e);
|
11121
|
-
return /* @__PURE__ */ t(
|
11124
|
+
return /* @__PURE__ */ t(H, { name: "bar_chart", sx: { color: n } });
|
11122
11125
|
}, Ei = () => /* @__PURE__ */ l("svg", { fill: "none", height: "36", viewBox: "0 0 40 36", width: "40", xmlns: "http://www.w3.org/2000/svg", children: [
|
11123
11126
|
/* @__PURE__ */ t(
|
11124
11127
|
"path",
|
@@ -11902,8 +11905,8 @@ const lt = C.createContext(null), b1 = ({
|
|
11902
11905
|
] })
|
11903
11906
|
] }), or = ({ beat: A, clientColorScheme: e, color: n, type: a }) => {
|
11904
11907
|
const r = tA(), i = e?.primary_300 ? e.primary_300 : r.palette.primary.main;
|
11905
|
-
return a === 0 ? /* @__PURE__ */ t(
|
11906
|
-
|
11908
|
+
return a === 0 ? /* @__PURE__ */ t(H, { fill: !0, name: "error", sx: { color: n || i } }) : a === 1 && A ? /* @__PURE__ */ t(P1, { beat: A }) : a === 2 && A ? /* @__PURE__ */ t(x1, { beat: A }) : a === 3 && A ? /* @__PURE__ */ t(R1, { beat: A }) : /* @__PURE__ */ t(
|
11909
|
+
H,
|
11907
11910
|
{
|
11908
11911
|
fill: !0,
|
11909
11912
|
name: "info",
|
@@ -12107,7 +12110,7 @@ const lt = C.createContext(null), b1 = ({
|
|
12107
12110
|
});
|
12108
12111
|
}, q = () => {
|
12109
12112
|
g.current && m(g.current.scrollLeft);
|
12110
|
-
},
|
12113
|
+
}, R = () => {
|
12111
12114
|
if (!w || !p) return;
|
12112
12115
|
w - p > q1 ? x(FA.ON_CAROUSEL_FORWARD_SWIPE) : x(FA.ON_CAROUSEL_BACK_SWIPE);
|
12113
12116
|
}, K = (JA) => {
|
@@ -12128,7 +12131,7 @@ const lt = C.createContext(null), b1 = ({
|
|
12128
12131
|
{
|
12129
12132
|
className: "mx-insights-micro-carousel-container",
|
12130
12133
|
onScroll: q,
|
12131
|
-
onTouchEnd:
|
12134
|
+
onTouchEnd: R,
|
12132
12135
|
onTouchMove: K,
|
12133
12136
|
onTouchStart: B,
|
12134
12137
|
ref: g,
|
@@ -12438,7 +12441,7 @@ const lt = C.createContext(null), b1 = ({
|
|
12438
12441
|
const aA = window.innerHeight;
|
12439
12442
|
aA < 180 ? M("STANDARD") : aA >= 180 && aA < 200 ? M("LARGE") : aA >= 200 && aA < 248 ? M("XLARGE") : aA >= 248 && M("XXLARGE");
|
12440
12443
|
}, []);
|
12441
|
-
const
|
12444
|
+
const R = {
|
12442
12445
|
showCTAColocatedWithText: a,
|
12443
12446
|
heightOverrides: i,
|
12444
12447
|
onCardClick: o,
|
@@ -12450,7 +12453,7 @@ const lt = C.createContext(null), b1 = ({
|
|
12450
12453
|
carouselSize: x,
|
12451
12454
|
posthog: d,
|
12452
12455
|
variant: I,
|
12453
|
-
...
|
12456
|
+
...R
|
12454
12457
|
}, B = !A && xe.isInitialized;
|
12455
12458
|
return (
|
12456
12459
|
// The Theme provider must wrap the component so that the styles don't break when imported into other applications.
|
@@ -12483,7 +12486,7 @@ const lt = C.createContext(null), b1 = ({
|
|
12483
12486
|
clientColorScheme: n,
|
12484
12487
|
showCarouselControls: h,
|
12485
12488
|
variant: u ? I : void 0,
|
12486
|
-
...
|
12489
|
+
...R
|
12487
12490
|
}
|
12488
12491
|
),
|
12489
12492
|
B && !e.length && w && /* @__PURE__ */ t(V1, { clientColorScheme: n, ...K }),
|
@@ -13042,12 +13045,12 @@ const lt = C.createContext(null), b1 = ({
|
|
13042
13045
|
), S = C.useMemo(
|
13043
13046
|
() => c.find((q) => q.guid === v),
|
13044
13047
|
[v]
|
13045
|
-
), x = (q,
|
13046
|
-
g(
|
13048
|
+
), x = (q, R) => {
|
13049
|
+
g(R), u("");
|
13047
13050
|
}, M = (q) => {
|
13048
13051
|
u(d === q || q === "0" ? "" : q);
|
13049
13052
|
}, P = (q) => {
|
13050
|
-
const
|
13053
|
+
const R = {
|
13051
13054
|
accounts: r,
|
13052
13055
|
dateRange: i
|
13053
13056
|
};
|
@@ -13055,17 +13058,17 @@ const lt = C.createContext(null), b1 = ({
|
|
13055
13058
|
if (q === "other") {
|
13056
13059
|
const K = w.categoryData.find((B) => B.guid === "other");
|
13057
13060
|
s({
|
13058
|
-
...
|
13061
|
+
...R,
|
13059
13062
|
custom: (B) => !!K?.categoryTotals?.find((aA) => aA.guid === B.top_level_category_guid)
|
13060
13063
|
});
|
13061
13064
|
} else
|
13062
13065
|
s({
|
13063
|
-
...
|
13066
|
+
...R,
|
13064
13067
|
custom: (K) => q ? K.top_level_category_guid === q : K.top_level_category_guid !== f.INCOME
|
13065
13068
|
});
|
13066
13069
|
else
|
13067
13070
|
s({
|
13068
|
-
...
|
13071
|
+
...R,
|
13069
13072
|
custom: (K) => q ? K.category_guid === q : K.top_level_category_guid === f.INCOME
|
13070
13073
|
});
|
13071
13074
|
T(!0);
|
@@ -13337,7 +13340,7 @@ export {
|
|
13337
13340
|
Ei as ZeroStateIcon,
|
13338
13341
|
ns as analyticsSession,
|
13339
13342
|
N as buildDynamicCopy,
|
13340
|
-
$
|
13343
|
+
$3 as buildPluralCopy,
|
13341
13344
|
z as formatCurrency,
|
13342
13345
|
J as formatDate,
|
13343
13346
|
ps as formatOrdinal,
|