@mx-cartographer/experiences 4.0.6-alpha.mm.11 → 4.0.6-alpha.mm.12
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 +365 -352
- package/dist/index.es.js.map +1 -1
- package/dist/trends/utils/TrendsData.d.ts +1 -8
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -273,7 +273,7 @@ const Ks = async (A, e, n = "1.0.0", r = "Experiences") => {
|
|
|
273
273
|
TRENDS_HOVER_POINT: "trends_widget_hover_chart_point",
|
|
274
274
|
TRENDS_VIEW_TRANSACTIONS: "trends_widget_view_transactions",
|
|
275
275
|
WIDGET_BACK_CLICK: "widget_back_button_click"
|
|
276
|
-
}, qs = "do",
|
|
276
|
+
}, qs = "do", Rf = "MMM do, yyyy", Z = {
|
|
277
277
|
TIME_STAMP_HOUR_MINUTE: {
|
|
278
278
|
hour: "numeric",
|
|
279
279
|
minute: "numeric"
|
|
@@ -358,7 +358,7 @@ const Gs = [
|
|
|
358
358
|
/* IMPAIRED */
|
|
359
359
|
], Ai = [...$a, ...Za];
|
|
360
360
|
var Ue = /* @__PURE__ */ ((A) => (A.Connected = "Connected", A.Error = "Error", A.Processing = "Processing", A.RequiresMfa = "RequiresMfa", A))(Ue || {});
|
|
361
|
-
const
|
|
361
|
+
const Hf = {
|
|
362
362
|
3: "Challenged",
|
|
363
363
|
12: "Closed",
|
|
364
364
|
9: "Degraded",
|
|
@@ -408,7 +408,7 @@ const Rf = {
|
|
|
408
408
|
2: "savings"
|
|
409
409
|
}, Fs = {
|
|
410
410
|
5: "bid_landscape"
|
|
411
|
-
},
|
|
411
|
+
}, zf = {
|
|
412
412
|
0: "Real Estate",
|
|
413
413
|
1: "Vehicle",
|
|
414
414
|
2: "Art",
|
|
@@ -748,7 +748,7 @@ const Rf = {
|
|
|
748
748
|
UNKNOWN: "help"
|
|
749
749
|
}, Hr = 9999999999e-2;
|
|
750
750
|
var Ft = /* @__PURE__ */ ((A) => (A.CAD = "CAD", A.USD = "USD", A))(Ft || {}), G = /* @__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))(G || {});
|
|
751
|
-
const
|
|
751
|
+
const Bf = [
|
|
752
752
|
{ id: 0, copy: "frequency_unknown" },
|
|
753
753
|
{ id: 1, copy: "frequency_every_week" },
|
|
754
754
|
{ id: 2, copy: "frequency_every_other_week" },
|
|
@@ -757,7 +757,7 @@ const zf = [
|
|
|
757
757
|
{ id: 5, copy: "frequency_every_quarter" },
|
|
758
758
|
{ id: 6, copy: "frequency_every_other_quarter" },
|
|
759
759
|
{ id: 7, copy: "frequency_every_year" }
|
|
760
|
-
],
|
|
760
|
+
], Kf = {
|
|
761
761
|
ERROR: "ERROR",
|
|
762
762
|
LOADING: "LOADING",
|
|
763
763
|
SUCCESS: "SUCCESS"
|
|
@@ -769,7 +769,7 @@ const dt = 44, zr = (A, e) => A.find((n) => n.guid === e), Ys = (A, e) => A.find
|
|
|
769
769
|
const n = A.find((r) => r.subCategories.find((a) => a.guid === e));
|
|
770
770
|
if (n)
|
|
771
771
|
return n.subCategories.find((r) => r.guid === e);
|
|
772
|
-
},
|
|
772
|
+
}, qf = (A, e) => {
|
|
773
773
|
const n = [];
|
|
774
774
|
for (const r of e) {
|
|
775
775
|
const a = zr(A, r.category_guid);
|
|
@@ -813,7 +813,7 @@ const dt = 44, zr = (A, e) => A.find((n) => n.guid === e), Ys = (A, e) => A.find
|
|
|
813
813
|
[]
|
|
814
814
|
);
|
|
815
815
|
return n ? a : a.join("");
|
|
816
|
-
},
|
|
816
|
+
}, kf = (A, e, n, ...r) => !A || !e ? "" : _(n === 1 ? A : e, ...r), ke = () => (window?.app?.options?.language || document.querySelector("html")?.getAttribute("lang") || "en-US").toLowerCase();
|
|
817
817
|
class WA {
|
|
818
818
|
endpoint = "/";
|
|
819
819
|
headers = {};
|
|
@@ -997,7 +997,7 @@ class jt {
|
|
|
997
997
|
}
|
|
998
998
|
getGlobalCopy = async (e, n) => this.fetchInstance.post(`${R.LOCALIZED_CONTENT}/${e}`, { translation_key: n }).then((r) => r);
|
|
999
999
|
}
|
|
1000
|
-
class
|
|
1000
|
+
class Gf {
|
|
1001
1001
|
fetchInstance;
|
|
1002
1002
|
constructor(e, n) {
|
|
1003
1003
|
this.fetchInstance = new WA(e, n);
|
|
@@ -1144,8 +1144,8 @@ const En = (A, e) => A.reduce((n, r) => (n[r.guid] = e?.includes(r.guid), n), {}
|
|
|
1144
1144
|
disableRipple: !0,
|
|
1145
1145
|
onChange: () => {
|
|
1146
1146
|
const v = {};
|
|
1147
|
-
Object.keys(c).forEach((
|
|
1148
|
-
v[
|
|
1147
|
+
Object.keys(c).forEach((w) => {
|
|
1148
|
+
v[w] = !p;
|
|
1149
1149
|
}), u(v);
|
|
1150
1150
|
},
|
|
1151
1151
|
size: "small",
|
|
@@ -1161,8 +1161,8 @@ const En = (A, e) => A.reduce((n, r) => (n[r.guid] = e?.includes(r.guid), n), {}
|
|
|
1161
1161
|
}
|
|
1162
1162
|
) }),
|
|
1163
1163
|
Object.keys(g).map((v) => {
|
|
1164
|
-
const
|
|
1165
|
-
(
|
|
1164
|
+
const w = g[v], L = w.every(
|
|
1165
|
+
(S) => c[S.guid]
|
|
1166
1166
|
);
|
|
1167
1167
|
return /* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
|
|
1168
1168
|
nA,
|
|
@@ -1196,8 +1196,8 @@ const En = (A, e) => A.reduce((n, r) => (n[r.guid] = e?.includes(r.guid), n), {}
|
|
|
1196
1196
|
}
|
|
1197
1197
|
) }),
|
|
1198
1198
|
sx: { overflow: "auto", width: "100%" },
|
|
1199
|
-
children:
|
|
1200
|
-
const D = c[
|
|
1199
|
+
children: w.map((S) => {
|
|
1200
|
+
const D = c[S.guid], x = `${S.name}${h && S.accountNumber ? ` *${S.accountNumber.slice(-4)}` : ""}`;
|
|
1201
1201
|
return /* @__PURE__ */ t(
|
|
1202
1202
|
Y,
|
|
1203
1203
|
{
|
|
@@ -1213,9 +1213,9 @@ const En = (A, e) => A.reduce((n, r) => (n[r.guid] = e?.includes(r.guid), n), {}
|
|
|
1213
1213
|
checked: D,
|
|
1214
1214
|
"data-ui-test": `checked-${D}`,
|
|
1215
1215
|
disableRipple: !0,
|
|
1216
|
-
id:
|
|
1216
|
+
id: S.guid,
|
|
1217
1217
|
onChange: () => {
|
|
1218
|
-
r(
|
|
1218
|
+
r(S);
|
|
1219
1219
|
},
|
|
1220
1220
|
size: "small",
|
|
1221
1221
|
sx: {
|
|
@@ -1230,7 +1230,7 @@ const En = (A, e) => A.reduce((n, r) => (n[r.guid] = e?.includes(r.guid), n), {}
|
|
|
1230
1230
|
}
|
|
1231
1231
|
)
|
|
1232
1232
|
},
|
|
1233
|
-
|
|
1233
|
+
S.guid
|
|
1234
1234
|
);
|
|
1235
1235
|
})
|
|
1236
1236
|
}
|
|
@@ -1340,10 +1340,10 @@ const cc = (A, e) => {
|
|
|
1340
1340
|
onAccountClick: (p) => {
|
|
1341
1341
|
g({ ...h, [p.guid]: !h[p.guid] });
|
|
1342
1342
|
},
|
|
1343
|
-
onAccountGroupClick: (p, v,
|
|
1343
|
+
onAccountGroupClick: (p, v, w) => {
|
|
1344
1344
|
const L = { ...h };
|
|
1345
|
-
v[p].forEach((
|
|
1346
|
-
L[
|
|
1345
|
+
v[p].forEach((S) => {
|
|
1346
|
+
L[S.guid] = !w;
|
|
1347
1347
|
}), g(L);
|
|
1348
1348
|
},
|
|
1349
1349
|
onCancelClick: () => {
|
|
@@ -1484,7 +1484,7 @@ const cc = (A, e) => {
|
|
|
1484
1484
|
width: h,
|
|
1485
1485
|
xAxisLabel: g = ""
|
|
1486
1486
|
}) => {
|
|
1487
|
-
const f = RA(), m = gc(f, h), p = u / o * c, v = Math.abs(u) / o * n,
|
|
1487
|
+
const f = RA(), m = gc(f, h), p = u / o * c, v = Math.abs(u) / o * n, w = s === void 0 || s === a ? "primary" : "secondary";
|
|
1488
1488
|
return /* @__PURE__ */ l("div", { className: `mx-cmn-barchart-bar-column ${m}`, children: [
|
|
1489
1489
|
/* @__PURE__ */ t("div", { style: { height: c }, children: u >= 0 && /* @__PURE__ */ t(
|
|
1490
1490
|
Fr,
|
|
@@ -1518,7 +1518,7 @@ const cc = (A, e) => {
|
|
|
1518
1518
|
{
|
|
1519
1519
|
className: `mx-cmn-bar-label ${i ? "mx-cmn-clickable" : ""}`,
|
|
1520
1520
|
onClick: i ? () => i(a) : void 0,
|
|
1521
|
-
children: /* @__PURE__ */ t(y, { bold: s === a, color:
|
|
1521
|
+
children: /* @__PURE__ */ t(y, { bold: s === a, color: w, variant: "Small", children: g })
|
|
1522
1522
|
}
|
|
1523
1523
|
)
|
|
1524
1524
|
] });
|
|
@@ -1550,7 +1550,7 @@ const cc = (A, e) => {
|
|
|
1550
1550
|
}), Cc = (A, e) => A + e, fc = (A, e) => Math.abs(e) > A ? Math.abs(e) : A, mc = (A, e) => [...A, e.value], jr = (A, e, n) => {
|
|
1551
1551
|
const r = A && e ? n / 2 : n;
|
|
1552
1552
|
return A ? r : 0;
|
|
1553
|
-
}, pc = (A, e, n, r) => A / (e < 0 ? -n : e) * r || 0,
|
|
1553
|
+
}, pc = (A, e, n, r) => A / (e < 0 ? -n : e) * r || 0, Ff = ({
|
|
1554
1554
|
average: A,
|
|
1555
1555
|
barWidth: e = "8%",
|
|
1556
1556
|
color: n,
|
|
@@ -1562,14 +1562,14 @@ const cc = (A, e) => {
|
|
|
1562
1562
|
selectedIndex: c,
|
|
1563
1563
|
valueFormatter: u = (d) => `${d}`
|
|
1564
1564
|
}) => {
|
|
1565
|
-
const d = RA(), h = vc(d), g = r.reduce(mc, []), f = A !== void 0 ? A : g.reduce(Cc, 0) / g.length, m = Math.max(...g), p = Math.min(...g), v = g.reduce(fc, 0),
|
|
1565
|
+
const d = RA(), h = vc(d), g = r.reduce(mc, []), f = A !== void 0 ? A : g.reduce(Cc, 0) / g.length, m = Math.max(...g), p = Math.min(...g), v = g.reduce(fc, 0), w = m >= 0, L = p < 0, S = jr(w, L, a), D = jr(L, w, a), x = pc(f, m, p, S || D), N = (H) => c === void 0 || H === c ? n : `${n}80`, O = () => /* @__PURE__ */ t(
|
|
1566
1566
|
Xr,
|
|
1567
1567
|
{
|
|
1568
1568
|
averageLineHeight: x,
|
|
1569
1569
|
bottomHeight: D,
|
|
1570
1570
|
color: "",
|
|
1571
1571
|
range: v,
|
|
1572
|
-
topHeight:
|
|
1572
|
+
topHeight: S,
|
|
1573
1573
|
value: 0,
|
|
1574
1574
|
width: void 0
|
|
1575
1575
|
}
|
|
@@ -1589,7 +1589,7 @@ const cc = (A, e) => {
|
|
|
1589
1589
|
onClick: s,
|
|
1590
1590
|
range: v,
|
|
1591
1591
|
selectedIndex: c,
|
|
1592
|
-
topHeight:
|
|
1592
|
+
topHeight: S,
|
|
1593
1593
|
value: H.value,
|
|
1594
1594
|
valueLabel: u(H.value),
|
|
1595
1595
|
width: e,
|
|
@@ -1729,26 +1729,26 @@ const Tc = ({
|
|
|
1729
1729
|
h(e), f(n), e && u(e);
|
|
1730
1730
|
}, [e, n]);
|
|
1731
1731
|
const m = C.useMemo(() => {
|
|
1732
|
-
const
|
|
1733
|
-
for (let x = 0; x <
|
|
1734
|
-
const N =
|
|
1732
|
+
const S = Eo({ start: bA(c), end: xA(c) }), D = [];
|
|
1733
|
+
for (let x = 0; x < S.length; x++) {
|
|
1734
|
+
const N = S[x], O = yo({ start: N, end: ye(N, 6) }), H = [];
|
|
1735
1735
|
for (let B = 0; B < O.length; B++)
|
|
1736
1736
|
H.push(O[B]);
|
|
1737
1737
|
D.push(H);
|
|
1738
1738
|
}
|
|
1739
1739
|
return D;
|
|
1740
|
-
}, [c]), p = (
|
|
1740
|
+
}, [c]), p = (S) => {
|
|
1741
1741
|
if (i !== "None") {
|
|
1742
1742
|
if (i === "Single") {
|
|
1743
|
-
h(
|
|
1743
|
+
h(S), r?.(S);
|
|
1744
1744
|
return;
|
|
1745
1745
|
}
|
|
1746
|
-
!d || g ? (h(
|
|
1746
|
+
!d || g ? (h(S), f(void 0)) : yA(S, d) ? (f(d), h(S), a?.(S, d)) : (f(S), a?.(d, S));
|
|
1747
1747
|
}
|
|
1748
1748
|
}, v = () => {
|
|
1749
|
-
const
|
|
1750
|
-
u(
|
|
1751
|
-
},
|
|
1749
|
+
const S = AA();
|
|
1750
|
+
u(S), i !== "None" && (h(S), i === "Single" ? r?.(S) : (f(S), a?.(S, S)));
|
|
1751
|
+
}, w = () => {
|
|
1752
1752
|
u(te(c, 1));
|
|
1753
1753
|
}, L = () => {
|
|
1754
1754
|
u(le(c, 1));
|
|
@@ -1759,12 +1759,12 @@ const Tc = ({
|
|
|
1759
1759
|
{
|
|
1760
1760
|
copy: A,
|
|
1761
1761
|
date: c,
|
|
1762
|
-
onNextClick:
|
|
1762
|
+
onNextClick: w,
|
|
1763
1763
|
onPreviousClick: L
|
|
1764
1764
|
}
|
|
1765
1765
|
),
|
|
1766
|
-
/* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-row", children: m[0].map((
|
|
1767
|
-
m.map((
|
|
1766
|
+
/* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-row", children: m[0].map((S, D) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ t(y, { bold: !0, variant: "Small", children: jA(S, "EEEEE") }) }, D)) }),
|
|
1767
|
+
m.map((S, D) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-week", children: S.map((x, N) => /* @__PURE__ */ t(
|
|
1768
1768
|
bc,
|
|
1769
1769
|
{
|
|
1770
1770
|
beginDate: d,
|
|
@@ -1966,7 +1966,7 @@ const Tc = ({
|
|
|
1966
1966
|
valueFormatterString: f = "0,0",
|
|
1967
1967
|
width: m
|
|
1968
1968
|
}) => {
|
|
1969
|
-
const p = ae(), v = n.flat().map((N) => N.x),
|
|
1969
|
+
const p = ae(), v = n.flat().map((N) => N.x), w = n.flat().map((N) => N.y), L = Math.round(w.reduce((N, O) => O + N, 0) / w.length), S = Math.floor(Math.min(...w) / 100) * 100, D = Math.ceil(Math.max(...w) / 100) * 100, x = n.map((N, O) => ({
|
|
1970
1970
|
type: c ? "bar" : "line",
|
|
1971
1971
|
curve: "linear",
|
|
1972
1972
|
color: c ? p.palette.chart?.chart6 : e[O] ?? p.palette.primary.main,
|
|
@@ -1998,11 +1998,11 @@ const Tc = ({
|
|
|
1998
1998
|
xAxis: [{ data: v, scaleType: c ? "band" : "point" }],
|
|
1999
1999
|
yAxis: [
|
|
2000
2000
|
{
|
|
2001
|
-
min:
|
|
2001
|
+
min: S,
|
|
2002
2002
|
max: D || 100,
|
|
2003
2003
|
colorMap: u ? {
|
|
2004
2004
|
type: "continuous",
|
|
2005
|
-
min:
|
|
2005
|
+
min: S,
|
|
2006
2006
|
max: D,
|
|
2007
2007
|
color: [p.palette.background.paper, e[0] ?? p.palette.primary.main]
|
|
2008
2008
|
} : void 0,
|
|
@@ -2029,7 +2029,7 @@ const Tc = ({
|
|
|
2029
2029
|
handlers: o,
|
|
2030
2030
|
showLabel: h,
|
|
2031
2031
|
style: s?.(N.dataIndex) ?? {},
|
|
2032
|
-
yData:
|
|
2032
|
+
yData: w,
|
|
2033
2033
|
...N
|
|
2034
2034
|
}
|
|
2035
2035
|
)
|
|
@@ -2081,7 +2081,7 @@ const Tc = ({
|
|
|
2081
2081
|
}
|
|
2082
2082
|
)
|
|
2083
2083
|
] });
|
|
2084
|
-
}, ot = C.createContext(null),
|
|
2084
|
+
}, ot = C.createContext(null), Xf = ({
|
|
2085
2085
|
children: A,
|
|
2086
2086
|
globalStore: e,
|
|
2087
2087
|
onEvent: n,
|
|
@@ -2112,7 +2112,7 @@ const Tc = ({
|
|
|
2112
2112
|
if (!e)
|
|
2113
2113
|
throw new Error(`${A}() must be used within the GlobalDataContext`);
|
|
2114
2114
|
return e;
|
|
2115
|
-
}, SA = () => qA("useAccountStore").globalStore.accountStore, kA = () => qA("useBudgetsStore").globalStore.budgetsStore, tr = () => qA("useCashflowStore").globalStore.cashflowStore, TA = () => qA("useCategoryStore").globalStore.categoryStore, hi = () => qA("useConnectStore").globalStore.connectStore, Rc = () => qA("useDebtsStore").globalStore.debtsStore, nr = () => qA("useGlobalStore").globalStore, CA = () => qA("useGlobalUiStore").globalStore.globalUiStore, I = () => qA("globalCopyStore").globalStore.copyStore.copy, rr = () => qA("useGoalStore").globalStore.goalStore, Hc = () => qA("useMerchantStore").globalStore.merchantStore, zc = () => qA("useNetWorthStore").globalStore.netWorthStore, gi = () => qA("useNotificationStore").globalStore.notificationStore, HA = () => qA("useRecurringActivityStore").globalStore.recurringActivityStore, uA = () => qA("useTransactionStore").globalStore.transactionStore, an = () => qA("useUserStore").globalStore.userStore, V = () => ({ onEvent: qA().onEvent }),
|
|
2115
|
+
}, SA = () => qA("useAccountStore").globalStore.accountStore, kA = () => qA("useBudgetsStore").globalStore.budgetsStore, tr = () => qA("useCashflowStore").globalStore.cashflowStore, TA = () => qA("useCategoryStore").globalStore.categoryStore, hi = () => qA("useConnectStore").globalStore.connectStore, Rc = () => qA("useDebtsStore").globalStore.debtsStore, nr = () => qA("useGlobalStore").globalStore, CA = () => qA("useGlobalUiStore").globalStore.globalUiStore, I = () => qA("globalCopyStore").globalStore.copyStore.copy, rr = () => qA("useGoalStore").globalStore.goalStore, Hc = () => qA("useMerchantStore").globalStore.merchantStore, zc = () => qA("useNetWorthStore").globalStore.netWorthStore, gi = () => qA("useNotificationStore").globalStore.notificationStore, HA = () => qA("useRecurringActivityStore").globalStore.recurringActivityStore, uA = () => qA("useTransactionStore").globalStore.transactionStore, an = () => qA("useUserStore").globalStore.userStore, V = () => ({ onEvent: qA().onEvent }), jf = () => ({ onPageView: qA().onPageView }), Bc = (A = "useWidgetContainerContext") => {
|
|
2116
2116
|
const e = C.useContext(di);
|
|
2117
2117
|
if (!e)
|
|
2118
2118
|
throw new Error(`${A}() must be used within the WidgetContainerContext`);
|
|
@@ -2156,8 +2156,8 @@ const Tc = ({
|
|
|
2156
2156
|
const g = s.current, f = a.current;
|
|
2157
2157
|
if (!g || !f) return;
|
|
2158
2158
|
const m = g.getBoundingClientRect(), p = f.getBoundingClientRect();
|
|
2159
|
-
let v = r.x,
|
|
2160
|
-
v + m.width * 2 > p.right ? v = r.x - m.width : v - m.width < p.left && (v = r.x),
|
|
2159
|
+
let v = r.x, w = r.y;
|
|
2160
|
+
v + m.width * 2 > p.right ? v = r.x - m.width : v - m.width < p.left && (v = r.x), w + m.height * 2 > p.bottom && (w = r.y - m.height), u({ x: v, y: w });
|
|
2161
2161
|
})();
|
|
2162
2162
|
}, [r, a]), !n) return null;
|
|
2163
2163
|
const d = n.reduce((h, g) => h + g.y, 0);
|
|
@@ -2270,7 +2270,7 @@ const Tc = ({
|
|
|
2270
2270
|
hoveredAreaData: null,
|
|
2271
2271
|
isAreaHovered: !1,
|
|
2272
2272
|
cursorPos: { x: 0, y: 0 }
|
|
2273
|
-
}), { hoveredSeriesId: p, hoveredAreaData: v, isAreaHovered:
|
|
2273
|
+
}), { hoveredSeriesId: p, hoveredAreaData: v, isAreaHovered: w, cursorPos: L } = f, S = w && p && v, D = !S, x = [...a, ...i], N = x[0]?.dataset.length ?? 0, O = x.flatMap((j) => j.dataset.map((fA) => fA.x)), H = x.flatMap((j) => j.dataset.map((fA) => fA.y)), B = a[0]?.dataset?.map(
|
|
2274
2274
|
(j, fA) => a.reduce((OA, be) => OA + be.dataset[fA]?.y || 0, 0)
|
|
2275
2275
|
) ?? [0], X = Math.max(...B), F = Math.max(
|
|
2276
2276
|
...i.flatMap((j) => j.dataset.map((fA) => fA.y))
|
|
@@ -2440,7 +2440,7 @@ const Tc = ({
|
|
|
2440
2440
|
sx: { px: u ? 0 : 24 }
|
|
2441
2441
|
}
|
|
2442
2442
|
),
|
|
2443
|
-
|
|
2443
|
+
S && /* @__PURE__ */ t(
|
|
2444
2444
|
qc,
|
|
2445
2445
|
{
|
|
2446
2446
|
categoryGuids: Ae(p),
|
|
@@ -2648,7 +2648,7 @@ const Tc = ({
|
|
|
2648
2648
|
toolTipContent: i = "",
|
|
2649
2649
|
variant: o = "outlined"
|
|
2650
2650
|
}) => {
|
|
2651
|
-
const s = gA(), c = s.palette.mode === "dark", { isDesktop: u, isMobile: d } = MA(), [h, g] = C.useState(r), [f, m] = C.useState(n.dateRangePickerCopy.dateRangeThisMonth), [p, v] = C.useState(h), [
|
|
2651
|
+
const s = gA(), c = s.palette.mode === "dark", { isDesktop: u, isMobile: d } = MA(), [h, g] = C.useState(r), [f, m] = C.useState(n.dateRangePickerCopy.dateRangeThisMonth), [p, v] = C.useState(h), [w, L] = C.useState(!1), [S, D] = C.useState(!0), [x, N] = C.useState(6), O = {
|
|
2652
2652
|
buttons: [
|
|
2653
2653
|
{ label: "3M", value: 3 },
|
|
2654
2654
|
{ label: "6M", value: 6 },
|
|
@@ -2757,7 +2757,7 @@ const Tc = ({
|
|
|
2757
2757
|
p: d ? 0 : 8,
|
|
2758
2758
|
width: u ? 280 : 232
|
|
2759
2759
|
},
|
|
2760
|
-
children:
|
|
2760
|
+
children: S ? $(h[0], Z.MONTH_YEAR) : /* @__PURE__ */ l("span", { children: [
|
|
2761
2761
|
$(h[0], Z.MONTH_DAY_YEAR),
|
|
2762
2762
|
" -",
|
|
2763
2763
|
" ",
|
|
@@ -2841,11 +2841,11 @@ const Tc = ({
|
|
|
2841
2841
|
]
|
|
2842
2842
|
}
|
|
2843
2843
|
),
|
|
2844
|
-
|
|
2844
|
+
w && d && /* @__PURE__ */ t(
|
|
2845
2845
|
lA,
|
|
2846
2846
|
{
|
|
2847
2847
|
ariaLabelClose: n.dateRangeCloseAria,
|
|
2848
|
-
isOpen:
|
|
2848
|
+
isOpen: w,
|
|
2849
2849
|
onClose: () => L(!1),
|
|
2850
2850
|
onPrimaryAction: () => {
|
|
2851
2851
|
X(), L(!1);
|
|
@@ -2866,7 +2866,7 @@ const Tc = ({
|
|
|
2866
2866
|
)
|
|
2867
2867
|
}
|
|
2868
2868
|
),
|
|
2869
|
-
|
|
2869
|
+
w && !d && /* @__PURE__ */ t(
|
|
2870
2870
|
DA,
|
|
2871
2871
|
{
|
|
2872
2872
|
copy: { title: n.dateRangeEditTitle },
|
|
@@ -2899,7 +2899,7 @@ const Tc = ({
|
|
|
2899
2899
|
}
|
|
2900
2900
|
)
|
|
2901
2901
|
] });
|
|
2902
|
-
},
|
|
2902
|
+
}, Qf = ({
|
|
2903
2903
|
hasGap: A = !1,
|
|
2904
2904
|
segments: e,
|
|
2905
2905
|
size: n = ti,
|
|
@@ -3087,7 +3087,7 @@ const Je = ({
|
|
|
3087
3087
|
sx: h = {},
|
|
3088
3088
|
title: g = ""
|
|
3089
3089
|
}) => {
|
|
3090
|
-
const [f, { height: m, width: p }] = mi(), { onEvent: v } = V(), { isDesktop:
|
|
3090
|
+
const [f, { height: m, width: p }] = mi(), { onEvent: v } = V(), { isDesktop: w, isMobile: L, isTablet: S } = MA(), { displayedDateRange: D, selectedAccountGuids: x, setSelectedAccountGuids: N } = CA(), { common: O } = I(), H = () => {
|
|
3091
3091
|
c && (c(), v(k.WIDGET_BACK_CLICK));
|
|
3092
3092
|
}, B = {
|
|
3093
3093
|
accountFilterOptionsCopy: {
|
|
@@ -3132,7 +3132,7 @@ const Je = ({
|
|
|
3132
3132
|
px: 4
|
|
3133
3133
|
},
|
|
3134
3134
|
"& .mx-cmn-date-range-selector": {
|
|
3135
|
-
...(L ||
|
|
3135
|
+
...(L || S) && {
|
|
3136
3136
|
textAlign: "center"
|
|
3137
3137
|
}
|
|
3138
3138
|
},
|
|
@@ -3143,7 +3143,7 @@ const Je = ({
|
|
|
3143
3143
|
Ye,
|
|
3144
3144
|
{
|
|
3145
3145
|
action: /* @__PURE__ */ l(E, { alignItems: "center", flexDirection: "row", children: [
|
|
3146
|
-
|
|
3146
|
+
w && n && /* @__PURE__ */ t(P, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ t(
|
|
3147
3147
|
Qr,
|
|
3148
3148
|
{
|
|
3149
3149
|
calendarActions: n,
|
|
@@ -3169,7 +3169,7 @@ const Je = ({
|
|
|
3169
3169
|
}
|
|
3170
3170
|
),
|
|
3171
3171
|
e.map(
|
|
3172
|
-
(U) =>
|
|
3172
|
+
(U) => w || S ? /* @__PURE__ */ t(
|
|
3173
3173
|
oA,
|
|
3174
3174
|
{
|
|
3175
3175
|
onClick: U.onClick,
|
|
@@ -3191,15 +3191,15 @@ const Je = ({
|
|
|
3191
3191
|
] }),
|
|
3192
3192
|
sx: {
|
|
3193
3193
|
"& .MuiCardHeader-action": {
|
|
3194
|
-
...n &&
|
|
3195
|
-
...(L ||
|
|
3194
|
+
...n && w && { flexGrow: 1 },
|
|
3195
|
+
...(L || S) && {
|
|
3196
3196
|
alignSelf: "center"
|
|
3197
3197
|
}
|
|
3198
3198
|
},
|
|
3199
|
-
p:
|
|
3199
|
+
p: w ? 48 : 24,
|
|
3200
3200
|
pb: 0
|
|
3201
3201
|
},
|
|
3202
|
-
title:
|
|
3202
|
+
title: w || S ? /* @__PURE__ */ t(Oe, { children: g }) : /* @__PURE__ */ l(E, { alignItems: "center", flexDirection: "row", children: [
|
|
3203
3203
|
L && c && /* @__PURE__ */ t(
|
|
3204
3204
|
KA,
|
|
3205
3205
|
{
|
|
@@ -3213,8 +3213,8 @@ const Je = ({
|
|
|
3213
3213
|
] })
|
|
3214
3214
|
}
|
|
3215
3215
|
),
|
|
3216
|
-
s && /* @__PURE__ */ t(q, { sx: { mt:
|
|
3217
|
-
n && (L ||
|
|
3216
|
+
s && /* @__PURE__ */ t(q, { sx: { mt: w ? 48 : 24 } }),
|
|
3217
|
+
n && (L || S) && /* @__PURE__ */ l(E, { gap: 24, justifyContent: "center", sx: { mt: 16 }, children: [
|
|
3218
3218
|
d && /* @__PURE__ */ t(q, {}),
|
|
3219
3219
|
/* @__PURE__ */ t(
|
|
3220
3220
|
Qr,
|
|
@@ -3316,13 +3316,13 @@ const Ur = "connect_widget", Wr = "connections_widget", Yc = ({
|
|
|
3316
3316
|
setHasValidInput: d,
|
|
3317
3317
|
...h
|
|
3318
3318
|
}) => {
|
|
3319
|
-
const [g, f] = C.useState(""), { common: m } = I(), p = a || m.currency_input, v = RA(),
|
|
3319
|
+
const [g, f] = C.useState(""), { common: m } = I(), p = a || m.currency_input, v = RA(), w = Vc(v), L = /^[0-9]*$/, S = /^(\d)*(\,)?([0-9]{1,2})?$/, D = /^(\d)*(\.)?([0-9]{1,2})?$/;
|
|
3320
3320
|
let x;
|
|
3321
3321
|
const N = C.useRef(Yo());
|
|
3322
3322
|
if (A)
|
|
3323
3323
|
switch ($s()) {
|
|
3324
3324
|
case Ft.CAD:
|
|
3325
|
-
x =
|
|
3325
|
+
x = S;
|
|
3326
3326
|
break;
|
|
3327
3327
|
default:
|
|
3328
3328
|
x = D;
|
|
@@ -3354,7 +3354,7 @@ const Ur = "connect_widget", Wr = "connections_widget", Yc = ({
|
|
|
3354
3354
|
startAdornment: ke().includes("fr-ca") ? void 0 : /* @__PURE__ */ t(zA, { children: "$" })
|
|
3355
3355
|
},
|
|
3356
3356
|
"aria-label": e || p.enter_amount,
|
|
3357
|
-
className: `mx-cmn-currency-input ${
|
|
3357
|
+
className: `mx-cmn-currency-input ${w}`,
|
|
3358
3358
|
error: !!g,
|
|
3359
3359
|
helperText: g,
|
|
3360
3360
|
inputMode: A ? "decimal" : "numeric",
|
|
@@ -3379,7 +3379,7 @@ const Ur = "connect_widget", Wr = "connections_widget", Yc = ({
|
|
|
3379
3379
|
/* @__PURE__ */ t(qn, { size: e }),
|
|
3380
3380
|
A && /* @__PURE__ */ t(y, { children: A })
|
|
3381
3381
|
] });
|
|
3382
|
-
},
|
|
3382
|
+
}, Uf = ({
|
|
3383
3383
|
icon: A,
|
|
3384
3384
|
label: e,
|
|
3385
3385
|
onClick: n,
|
|
@@ -3858,13 +3858,13 @@ const st = () => {
|
|
|
3858
3858
|
const v = C.useMemo(
|
|
3859
3859
|
() => r.filter((D) => i.includes(D.guid)).reduce((D, x) => D + (x?.balance || 0), 0),
|
|
3860
3860
|
[i, p]
|
|
3861
|
-
),
|
|
3861
|
+
), w = C.useMemo(
|
|
3862
3862
|
() => u.filter((D) => i.includes(D.accountGuid || "")).reduce((D, x) => D + x.amount, 0),
|
|
3863
3863
|
[i, u]
|
|
3864
3864
|
), L = C.useMemo(
|
|
3865
|
-
() => v -
|
|
3866
|
-
[v,
|
|
3867
|
-
),
|
|
3865
|
+
() => v - w,
|
|
3866
|
+
[v, w]
|
|
3867
|
+
), S = s?.has_completed_cash_flow_onboarding && !!A;
|
|
3868
3868
|
return /* @__PURE__ */ t(P, { className: "mx-cashflow", pl: 16, pr: 16, pt: 16, children: n > 610 ? /* @__PURE__ */ l(
|
|
3869
3869
|
E,
|
|
3870
3870
|
{
|
|
@@ -3883,7 +3883,7 @@ const st = () => {
|
|
|
3883
3883
|
] }),
|
|
3884
3884
|
/* @__PURE__ */ t(E, { pt: 18, children: /* @__PURE__ */ t(M, { name: "remove" }) }),
|
|
3885
3885
|
/* @__PURE__ */ l(E, { pb: 14, pt: 12, children: [
|
|
3886
|
-
/* @__PURE__ */ t(EA, { amount:
|
|
3886
|
+
/* @__PURE__ */ t(EA, { amount: w, variant: "H2" }),
|
|
3887
3887
|
/* @__PURE__ */ t(zA, { variant: "XSmall", whiteSpace: "nowrap", children: _(o.expenses_due, u.length) })
|
|
3888
3888
|
] }),
|
|
3889
3889
|
/* @__PURE__ */ t(E, { pt: 18, children: /* @__PURE__ */ t(M, { name: "equals" }) }),
|
|
@@ -3894,7 +3894,7 @@ const st = () => {
|
|
|
3894
3894
|
/* @__PURE__ */ t(Yt, { body: o.tooltip_body, title: o.tooltip_title })
|
|
3895
3895
|
] })
|
|
3896
3896
|
] }),
|
|
3897
|
-
/* @__PURE__ */ t(E, { borderLeft: `1px solid ${e.palette.border.light}`, pb: 12, pl: 24, pt: 12, children:
|
|
3897
|
+
/* @__PURE__ */ t(E, { borderLeft: `1px solid ${e.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: S ? /* @__PURE__ */ l(eA, { children: [
|
|
3898
3898
|
/* @__PURE__ */ t(y, { variant: "H2", children: _(o.days, c) }),
|
|
3899
3899
|
/* @__PURE__ */ t(zA, { variant: "XSmall", whiteSpace: "nowrap", children: o.next_paycheck })
|
|
3900
3900
|
] }) : /* @__PURE__ */ t(
|
|
@@ -3919,7 +3919,7 @@ const st = () => {
|
|
|
3919
3919
|
/* @__PURE__ */ t(q, {}),
|
|
3920
3920
|
/* @__PURE__ */ l(E, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
3921
3921
|
/* @__PURE__ */ t(y, { variant: "Small", children: _(o.expenses_due, u.length) }),
|
|
3922
|
-
/* @__PURE__ */ t(EA, { amount:
|
|
3922
|
+
/* @__PURE__ */ t(EA, { amount: w, bold: !0, symbol: "-", variant: "XSmall" })
|
|
3923
3923
|
] }),
|
|
3924
3924
|
/* @__PURE__ */ t(q, {}),
|
|
3925
3925
|
/* @__PURE__ */ t(
|
|
@@ -3937,7 +3937,7 @@ const st = () => {
|
|
|
3937
3937
|
}
|
|
3938
3938
|
),
|
|
3939
3939
|
/* @__PURE__ */ t(q, {}),
|
|
3940
|
-
|
|
3940
|
+
S ? /* @__PURE__ */ l(E, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
3941
3941
|
/* @__PURE__ */ t(y, { variant: "Small", children: o.next_paycheck }),
|
|
3942
3942
|
/* @__PURE__ */ t(y, { bold: !0, variant: "XSmall", children: _(o.days, c) })
|
|
3943
3943
|
] }) : /* @__PURE__ */ l(
|
|
@@ -3978,7 +3978,7 @@ const st = () => {
|
|
|
3978
3978
|
children: /* @__PURE__ */ t(ol, { onAddIncomeClick: A })
|
|
3979
3979
|
}
|
|
3980
3980
|
);
|
|
3981
|
-
},
|
|
3981
|
+
}, Wf = T(sl);
|
|
3982
3982
|
class $r {
|
|
3983
3983
|
fetchInstance;
|
|
3984
3984
|
constructor(e, n) {
|
|
@@ -4803,13 +4803,13 @@ const $A = () => {
|
|
|
4803
4803
|
zeroState: s = /* @__PURE__ */ t(Ol, {})
|
|
4804
4804
|
}) => {
|
|
4805
4805
|
const { isLoading: c, sortedTransactions: u } = uA(), { setShowInsights: d, toggleSplit: h } = $A(), { onEvent: g } = V(), f = (v) => {
|
|
4806
|
-
const
|
|
4807
|
-
if (
|
|
4808
|
-
h(
|
|
4806
|
+
const w = u.find((L) => L.guid === v);
|
|
4807
|
+
if (w?.has_been_split) {
|
|
4808
|
+
h(w.guid);
|
|
4809
4809
|
return;
|
|
4810
4810
|
}
|
|
4811
4811
|
g(k.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
|
|
4812
|
-
account_guid:
|
|
4812
|
+
account_guid: w?.account_guid,
|
|
4813
4813
|
transaction_guid: v
|
|
4814
4814
|
}), r?.(v);
|
|
4815
4815
|
}, m = C.useRef(null), p = Fa({
|
|
@@ -4831,7 +4831,7 @@ const $A = () => {
|
|
|
4831
4831
|
(c || i) && n,
|
|
4832
4832
|
!c && !i && p.getVirtualItems().length === 0 && s,
|
|
4833
4833
|
!c && !i && p.getVirtualItems().length > 0 && p.getVirtualItems().map((v) => {
|
|
4834
|
-
const
|
|
4834
|
+
const w = u[v.index], L = ea(v.index, u), S = xl(v.index, u), D = ta + (L ? na : 0);
|
|
4835
4835
|
return /* @__PURE__ */ l(
|
|
4836
4836
|
P,
|
|
4837
4837
|
{
|
|
@@ -4842,12 +4842,12 @@ const $A = () => {
|
|
|
4842
4842
|
width: "100%"
|
|
4843
4843
|
},
|
|
4844
4844
|
children: [
|
|
4845
|
-
L && /* @__PURE__ */ t(sr, { bgcolor: A, children: rn(
|
|
4846
|
-
/* @__PURE__ */ t(or, { onClick: f, transaction:
|
|
4847
|
-
/* @__PURE__ */ t(q, { sx: { ml:
|
|
4845
|
+
L && /* @__PURE__ */ t(sr, { bgcolor: A, children: rn(w.date) }),
|
|
4846
|
+
/* @__PURE__ */ t(or, { onClick: f, transaction: w }),
|
|
4847
|
+
/* @__PURE__ */ t(q, { sx: { ml: S ? 24 : 0 } })
|
|
4848
4848
|
]
|
|
4849
4849
|
},
|
|
4850
|
-
|
|
4850
|
+
w.guid
|
|
4851
4851
|
);
|
|
4852
4852
|
})
|
|
4853
4853
|
]
|
|
@@ -5148,7 +5148,7 @@ const Gl = ({
|
|
|
5148
5148
|
showSelected: o,
|
|
5149
5149
|
unselectable: s,
|
|
5150
5150
|
unselectableText: c
|
|
5151
|
-
} = Xe(), { categories: u } = I(), { onEvent: d } = V(), [h, g] = C.useState(!1), [f, m] = C.useState(!1), p = !!e.revision, v = e.guid === r,
|
|
5151
|
+
} = Xe(), { categories: u } = I(), { onEvent: d } = V(), [h, g] = C.useState(!1), [f, m] = C.useState(!1), p = !!e.revision, v = e.guid === r, w = !s.some((S) => S === e.guid);
|
|
5152
5152
|
return /* @__PURE__ */ l(
|
|
5153
5153
|
Y,
|
|
5154
5154
|
{
|
|
@@ -5163,7 +5163,7 @@ const Gl = ({
|
|
|
5163
5163
|
"aria-pressed": v,
|
|
5164
5164
|
color: "secondary",
|
|
5165
5165
|
onClick: () => {
|
|
5166
|
-
|
|
5166
|
+
w && (a(e.guid), n(e.guid), d(ce.ON_CATEGORY_SELECTED));
|
|
5167
5167
|
},
|
|
5168
5168
|
sx: { height: 44 },
|
|
5169
5169
|
children: [
|
|
@@ -5175,7 +5175,7 @@ const Gl = ({
|
|
|
5175
5175
|
}
|
|
5176
5176
|
),
|
|
5177
5177
|
o && v && /* @__PURE__ */ t(Qa, { fontSize: "small" }),
|
|
5178
|
-
!
|
|
5178
|
+
!w && /* @__PURE__ */ t(ys, { label: c })
|
|
5179
5179
|
]
|
|
5180
5180
|
}
|
|
5181
5181
|
),
|
|
@@ -5567,12 +5567,12 @@ const wi = ({ transaction: A }) => {
|
|
|
5567
5567
|
});
|
|
5568
5568
|
}, f = (v) => {
|
|
5569
5569
|
if (A.is_manual && !A.guid) {
|
|
5570
|
-
const
|
|
5570
|
+
const w = r.find((L) => L.guid === v);
|
|
5571
5571
|
o({
|
|
5572
5572
|
...A,
|
|
5573
|
-
category:
|
|
5573
|
+
category: w?.name,
|
|
5574
5574
|
category_guid: v,
|
|
5575
|
-
top_level_category_guid:
|
|
5575
|
+
top_level_category_guid: w?.parent_guid || v
|
|
5576
5576
|
});
|
|
5577
5577
|
} else
|
|
5578
5578
|
h(v);
|
|
@@ -6104,7 +6104,7 @@ const wi = ({ transaction: A }) => {
|
|
|
6104
6104
|
}, [d, h] = C.useState(!1), [g, f] = C.useState(!1), [m, p] = C.useState([]), v = () => {
|
|
6105
6105
|
const B = [...m];
|
|
6106
6106
|
B.push({ ...u }), B[0].amount -= 1, p(B);
|
|
6107
|
-
},
|
|
6107
|
+
}, w = (B) => {
|
|
6108
6108
|
if (B > 0) {
|
|
6109
6109
|
const X = m[B], F = [...m];
|
|
6110
6110
|
F.splice(B, 1), F[0].amount += X.amount, p(F);
|
|
@@ -6115,7 +6115,7 @@ const wi = ({ transaction: A }) => {
|
|
|
6115
6115
|
(Q, U, sA) => Q + (sA !== 0 ? U.amount : 0),
|
|
6116
6116
|
0
|
|
6117
6117
|
), p(F);
|
|
6118
|
-
},
|
|
6118
|
+
}, S = (B, X) => {
|
|
6119
6119
|
const F = [...m], Q = s.find((U) => U.guid === X);
|
|
6120
6120
|
Q && (F[B] = {
|
|
6121
6121
|
...F[B],
|
|
@@ -6174,8 +6174,8 @@ const wi = ({ transaction: A }) => {
|
|
|
6174
6174
|
yd,
|
|
6175
6175
|
{
|
|
6176
6176
|
onAddSplit: v,
|
|
6177
|
-
onCategoryChanged:
|
|
6178
|
-
onDeleteSplit:
|
|
6177
|
+
onCategoryChanged: S,
|
|
6178
|
+
onDeleteSplit: w,
|
|
6179
6179
|
onUpdateAmount: L,
|
|
6180
6180
|
splits: m,
|
|
6181
6181
|
transaction: A
|
|
@@ -6295,7 +6295,7 @@ const wi = ({ transaction: A }) => {
|
|
|
6295
6295
|
}, Ld = T(Td), Id = ({ onTagChecked: A, selectedTags: e, tag: n }) => {
|
|
6296
6296
|
const { onEvent: r } = V(), { removeTag: a, updateTag: i } = uA(), { common: o, transactions: s } = I(), [c, u] = C.useState(!1), [d, h] = C.useState(!1), [g, f] = C.useState(""), [m, p] = C.useState(""), v = async () => {
|
|
6297
6297
|
r(K.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), n && await i({ ...n, name: g }), u(!1);
|
|
6298
|
-
},
|
|
6298
|
+
}, w = async () => {
|
|
6299
6299
|
r(K.ON_TRANSACTION_TAGS_TAG_DELETED), await a(n.guid), h(!1);
|
|
6300
6300
|
};
|
|
6301
6301
|
C.useEffect(() => {
|
|
@@ -6303,7 +6303,7 @@ const wi = ({ transaction: A }) => {
|
|
|
6303
6303
|
}, [g]);
|
|
6304
6304
|
const L = () => {
|
|
6305
6305
|
r(K.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK), f(n.name), u(!0);
|
|
6306
|
-
},
|
|
6306
|
+
}, S = () => {
|
|
6307
6307
|
r(K.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK), h(!0);
|
|
6308
6308
|
};
|
|
6309
6309
|
return /* @__PURE__ */ l(
|
|
@@ -6327,7 +6327,7 @@ const wi = ({ transaction: A }) => {
|
|
|
6327
6327
|
{
|
|
6328
6328
|
"aria-label": `Delete ${n.name} tag`,
|
|
6329
6329
|
color: "secondary",
|
|
6330
|
-
onClick:
|
|
6330
|
+
onClick: S,
|
|
6331
6331
|
children: /* @__PURE__ */ t(St, { color: "secondary" })
|
|
6332
6332
|
}
|
|
6333
6333
|
)
|
|
@@ -6376,7 +6376,7 @@ const wi = ({ transaction: A }) => {
|
|
|
6376
6376
|
copy: { title: s.tags_delete_title },
|
|
6377
6377
|
isOpen: d,
|
|
6378
6378
|
onClose: () => h(!1),
|
|
6379
|
-
onPrimaryAction:
|
|
6379
|
+
onPrimaryAction: w,
|
|
6380
6380
|
onSecondaryAction: () => r(K.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK),
|
|
6381
6381
|
primaryText: o.delete_button,
|
|
6382
6382
|
secondaryText: o.cancel_button,
|
|
@@ -6410,8 +6410,8 @@ const wi = ({ transaction: A }) => {
|
|
|
6410
6410
|
h(A.tags);
|
|
6411
6411
|
}, [c, A]);
|
|
6412
6412
|
const g = (p) => {
|
|
6413
|
-
const v = [...d],
|
|
6414
|
-
|
|
6413
|
+
const v = [...d], w = d.indexOf(p);
|
|
6414
|
+
w >= 0 ? v.splice(w, 1) : v.push(p), h(v);
|
|
6415
6415
|
}, f = async () => {
|
|
6416
6416
|
if (A.is_manual && !A.guid) {
|
|
6417
6417
|
s({ ...A, tags: d }), u(!1);
|
|
@@ -6420,7 +6420,7 @@ const wi = ({ transaction: A }) => {
|
|
|
6420
6420
|
await r(d, A.guid), await a({ ...A }), e(k.TRANSACTION_DETAILS_CLICK_TAGS, { transaction_guid: A.guid }), u(!1);
|
|
6421
6421
|
}, m = C.useMemo(
|
|
6422
6422
|
() => A.tags.map(
|
|
6423
|
-
(p, v,
|
|
6423
|
+
(p, v, w) => `${n.find((L) => L.guid === p)?.name}${v < w.length - 1 ? " / " : ""}`
|
|
6424
6424
|
),
|
|
6425
6425
|
[n, A]
|
|
6426
6426
|
);
|
|
@@ -6635,8 +6635,8 @@ const wi = ({ transaction: A }) => {
|
|
|
6635
6635
|
enter_amount: e.currency_input.enter_amount
|
|
6636
6636
|
}, g = (v) => {
|
|
6637
6637
|
s(v), i({ ...r, amount: Number(v) });
|
|
6638
|
-
}, f = (v,
|
|
6639
|
-
i({ ...r, transaction_type: Number(
|
|
6638
|
+
}, f = (v, w) => {
|
|
6639
|
+
i({ ...r, transaction_type: Number(w) });
|
|
6640
6640
|
}, m = (v) => {
|
|
6641
6641
|
u(v), i({ ...r, payee: v, description: v });
|
|
6642
6642
|
}, p = (v) => {
|
|
@@ -6778,9 +6778,9 @@ const wi = ({ transaction: A }) => {
|
|
|
6778
6778
|
filter: m,
|
|
6779
6779
|
loadAssociatedBeats: p,
|
|
6780
6780
|
setFilter: v,
|
|
6781
|
-
tags:
|
|
6781
|
+
tags: w,
|
|
6782
6782
|
transactions: L,
|
|
6783
|
-
updateTransaction:
|
|
6783
|
+
updateTransaction: S
|
|
6784
6784
|
} = uA(), { common: D, transactions: x } = I(), { userProfile: N } = an(), { onEvent: O } = V(), {
|
|
6785
6785
|
displayedDateRange: H,
|
|
6786
6786
|
isInitialized: B,
|
|
@@ -6817,7 +6817,7 @@ const wi = ({ transaction: A }) => {
|
|
|
6817
6817
|
searchTerm: _A
|
|
6818
6818
|
}), O(k.TRANSACTIONS_CLICK_SEARCH, { search_term: _A });
|
|
6819
6819
|
}, mn = () => {
|
|
6820
|
-
yi(L,
|
|
6820
|
+
yi(L, w), O(k.TRANSACTIONS_CLICK_EXPORT);
|
|
6821
6821
|
}, pn = () => {
|
|
6822
6822
|
$e.length > 0 ? (g({
|
|
6823
6823
|
...vi,
|
|
@@ -6921,7 +6921,7 @@ const wi = ({ transaction: A }) => {
|
|
|
6921
6921
|
ariaLabelClose: D.close_aria,
|
|
6922
6922
|
isOpen: sA === "transaction",
|
|
6923
6923
|
onClose: () => {
|
|
6924
|
-
j && !j.has_been_viewed &&
|
|
6924
|
+
j && !j.has_been_viewed && S({ ...j, has_been_viewed: !0 }), hA("");
|
|
6925
6925
|
},
|
|
6926
6926
|
title: x.details_title,
|
|
6927
6927
|
children: j && /* @__PURE__ */ t(ct, { transaction: j })
|
|
@@ -6970,7 +6970,7 @@ const wi = ({ transaction: A }) => {
|
|
|
6970
6970
|
]
|
|
6971
6971
|
}
|
|
6972
6972
|
);
|
|
6973
|
-
},
|
|
6973
|
+
}, Jf = T(Fd), Di = (A, e) => {
|
|
6974
6974
|
const n = {
|
|
6975
6975
|
...e,
|
|
6976
6976
|
repeat_day: null,
|
|
@@ -7013,10 +7013,10 @@ const wi = ({ transaction: A }) => {
|
|
|
7013
7013
|
], h = async (m) => {
|
|
7014
7014
|
const p = { ...A, recurrenceType: m };
|
|
7015
7015
|
if (A.activityType === LA.Expense) {
|
|
7016
|
-
const v = r.find((
|
|
7016
|
+
const v = r.find((w) => w.guid === A.scheduledPaymentGuid);
|
|
7017
7017
|
v && await i(Oi(p, v));
|
|
7018
7018
|
} else {
|
|
7019
|
-
const v = n.find((
|
|
7019
|
+
const v = n.find((w) => w.guid === A.sequenceGuid);
|
|
7020
7020
|
v && await a(Di(p, v));
|
|
7021
7021
|
}
|
|
7022
7022
|
c(!1);
|
|
@@ -7116,7 +7116,7 @@ const wi = ({ transaction: A }) => {
|
|
|
7116
7116
|
)
|
|
7117
7117
|
] });
|
|
7118
7118
|
}, Ud = T(Qd), Wd = ({ activity: A, onDeleted: e }) => {
|
|
7119
|
-
const { recurring: n } = I(), { categories: r } = TA(), { deleteCashflowSequence: a, deleteScheduledPayment: i, paidActivities: o } = HA(), { filter: s, setFilter: c, transactions: u } = uA(), { selectedAccountGuids: d } = CA(), { onEvent: h } = V(), [g, f] = C.useState(!1), [m, p] = C.useState(""), v = r.find((x) => x.guid === A.categoryGuid),
|
|
7119
|
+
const { recurring: n } = I(), { categories: r } = TA(), { deleteCashflowSequence: a, deleteScheduledPayment: i, paidActivities: o } = HA(), { filter: s, setFilter: c, transactions: u } = uA(), { selectedAccountGuids: d } = CA(), { onEvent: h } = V(), [g, f] = C.useState(!1), [m, p] = C.useState(""), v = r.find((x) => x.guid === A.categoryGuid), w = A.activityType === LA.Income, L = C.useMemo(
|
|
7120
7120
|
() => u.find((x) => x.guid === m),
|
|
7121
7121
|
[m]
|
|
7122
7122
|
);
|
|
@@ -7126,22 +7126,22 @@ const wi = ({ transaction: A }) => {
|
|
|
7126
7126
|
dateRange: { start: ue(AA(), 90), end: xA(AA()) }
|
|
7127
7127
|
});
|
|
7128
7128
|
}, []), C.useEffect(() => {
|
|
7129
|
-
if (
|
|
7129
|
+
if (w && A.sequenceGuid) {
|
|
7130
7130
|
const x = o.filter((N) => N.sequenceGuid === A.sequenceGuid).map((N) => N.transactionGuid);
|
|
7131
7131
|
c({
|
|
7132
7132
|
...s,
|
|
7133
7133
|
custom: (N) => !!x.find((O) => N.guid === O)
|
|
7134
7134
|
});
|
|
7135
|
-
} else !
|
|
7135
|
+
} else !w && A.scheduledPaymentGuid && c({
|
|
7136
7136
|
...s,
|
|
7137
7137
|
custom: (x) => x.scheduled_payment_guid === A.scheduledPaymentGuid
|
|
7138
7138
|
});
|
|
7139
7139
|
}, [A]);
|
|
7140
|
-
const
|
|
7141
|
-
|
|
7140
|
+
const S = async () => {
|
|
7141
|
+
w && A.sequenceGuid ? await a(A.sequenceGuid) : A.scheduledPaymentGuid && await i(A.scheduledPaymentGuid), e();
|
|
7142
7142
|
}, D = () => {
|
|
7143
7143
|
f(!0), h(
|
|
7144
|
-
|
|
7144
|
+
w ? "recurring_transactions_widget_income_details_click_delete" : "recurring_transactions_widget_expense_details_click_delete",
|
|
7145
7145
|
{
|
|
7146
7146
|
transaction_guid: A.transactionGuid
|
|
7147
7147
|
}
|
|
@@ -7158,8 +7158,8 @@ const wi = ({ transaction: A }) => {
|
|
|
7158
7158
|
}
|
|
7159
7159
|
),
|
|
7160
7160
|
/* @__PURE__ */ t(y, { bold: !0, variant: "Body", children: A.name }),
|
|
7161
|
-
/* @__PURE__ */ l(Oe, { color:
|
|
7162
|
-
|
|
7161
|
+
/* @__PURE__ */ l(Oe, { color: w ? "success.main" : "text.primary", children: [
|
|
7162
|
+
w ? "+" : "",
|
|
7163
7163
|
z(A.amount, "0,0.00")
|
|
7164
7164
|
] })
|
|
7165
7165
|
] }),
|
|
@@ -7199,7 +7199,7 @@ const wi = ({ transaction: A }) => {
|
|
|
7199
7199
|
startIcon: /* @__PURE__ */ t(M, { name: "delete" }),
|
|
7200
7200
|
sx: { mx: 24, my: 16 },
|
|
7201
7201
|
variant: "text",
|
|
7202
|
-
children:
|
|
7202
|
+
children: w ? n.delete_income_title : n.delete_expense_title
|
|
7203
7203
|
}
|
|
7204
7204
|
),
|
|
7205
7205
|
/* @__PURE__ */ t(y, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "Body", children: n.paid_transactions }),
|
|
@@ -7218,13 +7218,13 @@ const wi = ({ transaction: A }) => {
|
|
|
7218
7218
|
DA,
|
|
7219
7219
|
{
|
|
7220
7220
|
copy: {
|
|
7221
|
-
title:
|
|
7221
|
+
title: w ? n.delete_income_title : n.delete_expense_title,
|
|
7222
7222
|
close_aria: n.close_drawer_aria
|
|
7223
7223
|
},
|
|
7224
7224
|
isOpen: g,
|
|
7225
7225
|
onClose: () => f(!1),
|
|
7226
|
-
onPrimaryAction:
|
|
7227
|
-
children: /* @__PURE__ */ t(y, { children:
|
|
7226
|
+
onPrimaryAction: S,
|
|
7227
|
+
children: /* @__PURE__ */ t(y, { children: w ? n.delete_income_description : n.delete_expense_description })
|
|
7228
7228
|
}
|
|
7229
7229
|
)
|
|
7230
7230
|
] });
|
|
@@ -7541,10 +7541,10 @@ const wi = ({ transaction: A }) => {
|
|
|
7541
7541
|
label: e,
|
|
7542
7542
|
onAddActivity: n = () => null
|
|
7543
7543
|
}) => {
|
|
7544
|
-
const { recurring: r } = I(), { addCashflowEvent: a, addCashflowSequence: i, addScheduledPayment: o } = HA(), { filter: s, setFilter: c, transactions: u } = uA(), [d, h] = C.useState(!1), [g, f] = C.useState(""), [m, p] = C.useState(G.EveryMonth), [v,
|
|
7544
|
+
const { recurring: r } = I(), { addCashflowEvent: a, addCashflowSequence: i, addScheduledPayment: o } = HA(), { filter: s, setFilter: c, transactions: u } = uA(), [d, h] = C.useState(!1), [g, f] = C.useState(""), [m, p] = C.useState(G.EveryMonth), [v, w] = C.useState(null), L = C.useMemo(
|
|
7545
7545
|
() => u.find((N) => N.guid === g),
|
|
7546
7546
|
[g]
|
|
7547
|
-
),
|
|
7547
|
+
), S = () => {
|
|
7548
7548
|
h(!0), c(A ? { ...s, custom: Lt } : { ...s, custom: Rn });
|
|
7549
7549
|
}, D = async () => {
|
|
7550
7550
|
if (n(), !L || !v) {
|
|
@@ -7566,7 +7566,7 @@ const wi = ({ transaction: A }) => {
|
|
|
7566
7566
|
f(""), h(!1);
|
|
7567
7567
|
};
|
|
7568
7568
|
return /* @__PURE__ */ l(P, { children: [
|
|
7569
|
-
/* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(dA, { onClick:
|
|
7569
|
+
/* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(dA, { onClick: S, children: /* @__PURE__ */ t(tA, { children: /* @__PURE__ */ l(E, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
7570
7570
|
/* @__PURE__ */ l(E, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
7571
7571
|
/* @__PURE__ */ t(M, { fill: !0, name: "add_box", size: 24, sx: { color: "action.active" } }),
|
|
7572
7572
|
/* @__PURE__ */ t(y, { bold: !0, sx: { color: "action.active" }, variant: "Body", children: e })
|
|
@@ -7611,7 +7611,7 @@ const wi = ({ transaction: A }) => {
|
|
|
7611
7611
|
isIncome: A,
|
|
7612
7612
|
nextDate: v,
|
|
7613
7613
|
onFrequencyChange: p,
|
|
7614
|
-
onNextDateChange:
|
|
7614
|
+
onNextDateChange: w,
|
|
7615
7615
|
transaction: L
|
|
7616
7616
|
}
|
|
7617
7617
|
)
|
|
@@ -8118,7 +8118,7 @@ const wi = ({ transaction: A }) => {
|
|
|
8118
8118
|
selectedDayActivities: o,
|
|
8119
8119
|
setSelectedDay: s,
|
|
8120
8120
|
upcomingActivities: c
|
|
8121
|
-
} = HA(), [u, d] = C.useState(0), { onEvent: h } = V(), g = n.filter(wn), f = a.filter(wn), m = r.filter(wn), p = g.filter(Rt).reduce(ht, 0), v = f.filter(Rt).reduce(ht, 0),
|
|
8121
|
+
} = HA(), [u, d] = C.useState(0), { onEvent: h } = V(), g = n.filter(wn), f = a.filter(wn), m = r.filter(wn), p = g.filter(Rt).reduce(ht, 0), v = f.filter(Rt).reduce(ht, 0), w = m.filter(Rt).reduce(ht, 0), L = g.filter(Rt).length, S = g.filter(bn).reduce(ht, 0), D = f.filter(bn).reduce(ht, 0), x = g.filter(bn).length, N = (B, X) => {
|
|
8122
8122
|
d(X);
|
|
8123
8123
|
}, O = (B) => {
|
|
8124
8124
|
h(k.RECURRING_ACTIVITY_CLICK_UPCOMING, {
|
|
@@ -8135,7 +8135,7 @@ const wi = ({ transaction: A }) => {
|
|
|
8135
8135
|
la,
|
|
8136
8136
|
{
|
|
8137
8137
|
expected: p,
|
|
8138
|
-
missed:
|
|
8138
|
+
missed: w,
|
|
8139
8139
|
paid: v,
|
|
8140
8140
|
title: A.expenses,
|
|
8141
8141
|
total: L
|
|
@@ -8144,7 +8144,7 @@ const wi = ({ transaction: A }) => {
|
|
|
8144
8144
|
/* @__PURE__ */ t(
|
|
8145
8145
|
la,
|
|
8146
8146
|
{
|
|
8147
|
-
expected:
|
|
8147
|
+
expected: S,
|
|
8148
8148
|
paid: D,
|
|
8149
8149
|
title: A.deposits,
|
|
8150
8150
|
total: x
|
|
@@ -8247,7 +8247,7 @@ const wi = ({ transaction: A }) => {
|
|
|
8247
8247
|
]
|
|
8248
8248
|
}
|
|
8249
8249
|
);
|
|
8250
|
-
},
|
|
8250
|
+
}, Zf = T(bu), wu = () => {
|
|
8251
8251
|
const { recurring: A } = I(), { selectedAccountGuids: e } = CA(), { selectedDay: n, selectedDayActivities: r, setSelectedDay: a, upcomingActivities: i } = HA(), o = C.useMemo(
|
|
8252
8252
|
() => i.filter(
|
|
8253
8253
|
(u) => e.includes(u.accountGuid || "")
|
|
@@ -8290,7 +8290,7 @@ const wi = ({ transaction: A }) => {
|
|
|
8290
8290
|
children: /* @__PURE__ */ t(Su, {})
|
|
8291
8291
|
}
|
|
8292
8292
|
);
|
|
8293
|
-
},
|
|
8293
|
+
}, $f = T(Tu);
|
|
8294
8294
|
class Lu {
|
|
8295
8295
|
globalStore;
|
|
8296
8296
|
api = new qr("/", "");
|
|
@@ -9094,11 +9094,11 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
|
|
|
9094
9094
|
() => i.filter(ga(o, s)),
|
|
9095
9095
|
[s, o, i]
|
|
9096
9096
|
), g = C.useMemo(
|
|
9097
|
-
() => c.reduce((L,
|
|
9097
|
+
() => c.reduce((L, S) => L + (S?.balance || 0), 0),
|
|
9098
9098
|
[c]
|
|
9099
|
-
), f = d.reduce((L,
|
|
9100
|
-
return /* @__PURE__ */ l(E, { flexDirection: "row", gap: 24, justifyContent: "center", my:
|
|
9101
|
-
|
|
9099
|
+
), f = d.reduce((L, S) => L + S.amount, 0), m = h.reduce((L, S) => L + S.amount, 0), p = g - f + m, v = i.length > 0 && u?.has_completed_cash_flow_onboarding, w = n < 725;
|
|
9100
|
+
return /* @__PURE__ */ l(E, { flexDirection: "row", gap: 24, justifyContent: "center", my: w ? 24 : 42, children: [
|
|
9101
|
+
w ? /* @__PURE__ */ l(E, { border: "1px solid", borderColor: "border.light", borderRadius: 1, mx: 16, width: "100%", children: [
|
|
9102
9102
|
/* @__PURE__ */ t(
|
|
9103
9103
|
Me,
|
|
9104
9104
|
{
|
|
@@ -9287,7 +9287,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
|
|
|
9287
9287
|
transform: rotate(360deg);
|
|
9288
9288
|
}
|
|
9289
9289
|
`, $u = () => {
|
|
9290
|
-
const { addCashflowEvent: A, addCashflowSequence: e, cashflowSequences: n } = HA(), { cashflow: r, common: a } = I(), { completeOnboarding: i } = tr(), { isDirty: o } = st(), { isMobile: s } = MA(), { setDisplayedDate: c } = CA(), { filter: u, setFilter: d, transactions: h } = uA(), g = gA(), [f, m] = me(!0), [p, v] = C.useState(G.EveryMonth), [
|
|
9290
|
+
const { addCashflowEvent: A, addCashflowSequence: e, cashflowSequences: n } = HA(), { cashflow: r, common: a } = I(), { completeOnboarding: i } = tr(), { isDirty: o } = st(), { isMobile: s } = MA(), { setDisplayedDate: c } = CA(), { filter: u, setFilter: d, transactions: h } = uA(), g = gA(), [f, m] = me(!0), [p, v] = C.useState(G.EveryMonth), [w, L] = me(!1), [S, D] = C.useState(null), [x, N] = me(1), [O, H] = me([]), [B, X] = me(""), F = C.useMemo(
|
|
9291
9291
|
() => h.find((cA) => cA.guid === B),
|
|
9292
9292
|
[B]
|
|
9293
9293
|
), Q = !!n.length, U = async () => {
|
|
@@ -9395,7 +9395,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
|
|
|
9395
9395
|
bgcolor: "background.paper",
|
|
9396
9396
|
frequency: p,
|
|
9397
9397
|
isIncome: !0,
|
|
9398
|
-
nextDate:
|
|
9398
|
+
nextDate: S,
|
|
9399
9399
|
onFrequencyChange: v,
|
|
9400
9400
|
onNextDateChange: D,
|
|
9401
9401
|
transaction: F
|
|
@@ -9405,10 +9405,10 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
|
|
|
9405
9405
|
/* @__PURE__ */ t(
|
|
9406
9406
|
oA,
|
|
9407
9407
|
{
|
|
9408
|
-
"aria-disabled": !F || !
|
|
9408
|
+
"aria-disabled": !F || !S,
|
|
9409
9409
|
onClick: () => {
|
|
9410
9410
|
const cA = [...O];
|
|
9411
|
-
cA.push({ ...F, nextDate:
|
|
9411
|
+
cA.push({ ...F, nextDate: S, frequency: p }), H(cA), X("");
|
|
9412
9412
|
},
|
|
9413
9413
|
variant: "contained",
|
|
9414
9414
|
children: a.confirm_button
|
|
@@ -9430,9 +9430,9 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
|
|
|
9430
9430
|
/* @__PURE__ */ t(
|
|
9431
9431
|
oA,
|
|
9432
9432
|
{
|
|
9433
|
-
"aria-disabled": O.length < 1 ||
|
|
9433
|
+
"aria-disabled": O.length < 1 || w,
|
|
9434
9434
|
onClick: sA,
|
|
9435
|
-
startIcon:
|
|
9435
|
+
startIcon: w ? /* @__PURE__ */ t(
|
|
9436
9436
|
M,
|
|
9437
9437
|
{
|
|
9438
9438
|
name: "progress_activity",
|
|
@@ -9464,10 +9464,10 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
|
|
|
9464
9464
|
return C.useEffect(() => {
|
|
9465
9465
|
a(c);
|
|
9466
9466
|
}, [c]), C.useEffect(() => {
|
|
9467
|
-
const v = c.map((L) => L.guid),
|
|
9467
|
+
const v = c.map((L) => L.guid), w = n.filter(
|
|
9468
9468
|
(L) => r.includes(L.guid) && v.includes(L.guid)
|
|
9469
9469
|
);
|
|
9470
|
-
g(
|
|
9470
|
+
g(w), u({ accounts: w.map((L) => L.guid) });
|
|
9471
9471
|
}, [c, n]), d?.has_completed_cash_flow_onboarding ? /* @__PURE__ */ l(
|
|
9472
9472
|
he,
|
|
9473
9473
|
{
|
|
@@ -9519,7 +9519,7 @@ const Hu = ({ activity: A }) => /* @__PURE__ */ l(eA, { children: [
|
|
|
9519
9519
|
children: /* @__PURE__ */ t(Ah, {})
|
|
9520
9520
|
}
|
|
9521
9521
|
);
|
|
9522
|
-
},
|
|
9522
|
+
}, A7 = T(eh);
|
|
9523
9523
|
class Ca {
|
|
9524
9524
|
fetchInstance;
|
|
9525
9525
|
constructor(e, n) {
|
|
@@ -9614,26 +9614,26 @@ const oh = ({
|
|
|
9614
9614
|
const i = ae(), o = [
|
|
9615
9615
|
...new Set(A.flatMap((p) => p.dataset.map((v) => new Date(v.x).getTime())))
|
|
9616
9616
|
].sort((p, v) => p - v).map((p) => new Date(p)), s = A.map((p) => {
|
|
9617
|
-
const v = new Map(p.dataset.map((
|
|
9618
|
-
let
|
|
9619
|
-
const L = o.map((
|
|
9620
|
-
const D = v.get(
|
|
9621
|
-
return
|
|
9617
|
+
const v = new Map(p.dataset.map((S) => [new Date(S.x).getTime(), S.y]));
|
|
9618
|
+
let w = v.get(o[0].getTime()) ?? 0;
|
|
9619
|
+
const L = o.map((S) => {
|
|
9620
|
+
const D = v.get(S.getTime()) ?? w;
|
|
9621
|
+
return w = D, { x: S, y: D };
|
|
9622
9622
|
});
|
|
9623
9623
|
return { ...p, dataset: L };
|
|
9624
9624
|
}), c = s.reduce(
|
|
9625
9625
|
(p, v) => p + (v.dataset[0]?.y ?? 0),
|
|
9626
9626
|
0
|
|
9627
9627
|
), u = o.map((p, v) => {
|
|
9628
|
-
const
|
|
9628
|
+
const w = v / (o.length - 1), L = c * (1 - w);
|
|
9629
9629
|
return { x: p, y: L };
|
|
9630
9630
|
}), d = Math.ceil(c / 100) * 100, h = o, g = s.map((p, v) => {
|
|
9631
|
-
const
|
|
9631
|
+
const w = 1 - v / s.length * 0.5, L = ih(ah, w);
|
|
9632
9632
|
return {
|
|
9633
9633
|
id: `debt-${v}`,
|
|
9634
9634
|
guid: p.guid,
|
|
9635
9635
|
label: p.name,
|
|
9636
|
-
data: p.dataset.map((
|
|
9636
|
+
data: p.dataset.map((S) => S.y),
|
|
9637
9637
|
color: L,
|
|
9638
9638
|
curve: "linear",
|
|
9639
9639
|
type: "line",
|
|
@@ -9661,7 +9661,7 @@ const oh = ({
|
|
|
9661
9661
|
disableLineItemHighlight: !0,
|
|
9662
9662
|
height: e,
|
|
9663
9663
|
onHighlightChange: (p) => {
|
|
9664
|
-
const v = g.find((
|
|
9664
|
+
const v = g.find((w) => w.id === p?.seriesId)?.guid;
|
|
9665
9665
|
a(v ?? "");
|
|
9666
9666
|
},
|
|
9667
9667
|
series: g,
|
|
@@ -9866,8 +9866,8 @@ const hh = ({
|
|
|
9866
9866
|
payoffDate: f.projected_payoff_date,
|
|
9867
9867
|
payment: f.monthly_payment
|
|
9868
9868
|
})), [e]), h = (f) => {
|
|
9869
|
-
const v = f.target.closest("[data-id]")?.getAttribute("data-id"),
|
|
9870
|
-
r?.(
|
|
9869
|
+
const v = f.target.closest("[data-id]")?.getAttribute("data-id"), w = e[Number(v)];
|
|
9870
|
+
r?.(w?.guid ?? "");
|
|
9871
9871
|
}, g = (f) => d.find((m) => m.guid === f)?.id;
|
|
9872
9872
|
return /* @__PURE__ */ t(
|
|
9873
9873
|
P,
|
|
@@ -9965,7 +9965,7 @@ const hh = ({
|
|
|
9965
9965
|
] })
|
|
9966
9966
|
}
|
|
9967
9967
|
);
|
|
9968
|
-
},
|
|
9968
|
+
}, t7 = T(fh);
|
|
9969
9969
|
function mh(A, e) {
|
|
9970
9970
|
const n = e.map((i) => {
|
|
9971
9971
|
const o = A.find((s) => s.guid === i.account_guid);
|
|
@@ -10130,7 +10130,7 @@ const bh = T(({ goal: A }) => {
|
|
|
10130
10130
|
] }) }) }, d.guid))
|
|
10131
10131
|
] })
|
|
10132
10132
|
] });
|
|
10133
|
-
}),
|
|
10133
|
+
}), n7 = T(({ onBackClick: A, sx: e }) => {
|
|
10134
10134
|
const { onEvent: n } = V(), { isMobile: r } = MA(), { accounts: a } = SA(), { isInitialized: i, setSelectedAccounts: o } = CA(), { goals: s } = I(), { loadGoals: c } = rr(), [u, d] = C.useState(0), h = 400, g = 205, f = 624, m = _(
|
|
10135
10135
|
r ? s.tab_subtitle_mobile : s.tab_subtitle,
|
|
10136
10136
|
z(h, "0,0")
|
|
@@ -10146,7 +10146,7 @@ const bh = T(({ goal: A }) => {
|
|
|
10146
10146
|
}, []), C.useEffect(() => {
|
|
10147
10147
|
i && c().finally();
|
|
10148
10148
|
}, [i]);
|
|
10149
|
-
const
|
|
10149
|
+
const w = () => {
|
|
10150
10150
|
n(k.GOALS_CLICK_FILTER);
|
|
10151
10151
|
}, L = () => {
|
|
10152
10152
|
n(k.GOALS_CLICK_ADD);
|
|
@@ -10162,7 +10162,7 @@ const bh = T(({ goal: A }) => {
|
|
|
10162
10162
|
onClick: L
|
|
10163
10163
|
}
|
|
10164
10164
|
],
|
|
10165
|
-
onAccountsFilterClick:
|
|
10165
|
+
onAccountsFilterClick: w,
|
|
10166
10166
|
onBackClick: A,
|
|
10167
10167
|
sx: e,
|
|
10168
10168
|
title: s.title,
|
|
@@ -10172,7 +10172,7 @@ const bh = T(({ goal: A }) => {
|
|
|
10172
10172
|
/* @__PURE__ */ l(
|
|
10173
10173
|
Pe,
|
|
10174
10174
|
{
|
|
10175
|
-
onChange: (
|
|
10175
|
+
onChange: (S, D) => d(D),
|
|
10176
10176
|
sx: { bgcolor: "background.paper" },
|
|
10177
10177
|
value: u,
|
|
10178
10178
|
variant: "fullWidth",
|
|
@@ -10296,7 +10296,7 @@ const Sh = /^[ a-zA-ZÀ-ÿ0-9]+$/, Th = 50, pa = 65, Lh = ({
|
|
|
10296
10296
|
!r.length && /* @__PURE__ */ t(E, { alignItems: "center", my: 24, children: /* @__PURE__ */ t(y, { bold: !0, color: "secondary", variant: "Small", children: i.search_zero_state }) })
|
|
10297
10297
|
] }) }) })
|
|
10298
10298
|
] });
|
|
10299
|
-
},
|
|
10299
|
+
}, r7 = T(Lh);
|
|
10300
10300
|
class va {
|
|
10301
10301
|
fetchInstance;
|
|
10302
10302
|
constructor(e, n) {
|
|
@@ -10784,7 +10784,7 @@ const Hh = ({
|
|
|
10784
10784
|
] }))
|
|
10785
10785
|
] })
|
|
10786
10786
|
] });
|
|
10787
|
-
}, Yh = T(Wh),
|
|
10787
|
+
}, Yh = T(Wh), a7 = T(({ onBackClick: A }) => {
|
|
10788
10788
|
const { isInitialized: e, selectedAccounts: n, setSelectedAccounts: r } = CA(), { net_worth: a } = I(), { accounts: i } = SA(), {
|
|
10789
10789
|
assetsLiabilities: o,
|
|
10790
10790
|
gainsLosses: s,
|
|
@@ -10795,16 +10795,16 @@ const Hh = ({
|
|
|
10795
10795
|
selectedData: g,
|
|
10796
10796
|
setHoveredData: f,
|
|
10797
10797
|
setSelectedData: m
|
|
10798
|
-
} = zc(), { isMobile: p } = MA(), { onEvent: v } = V(), [
|
|
10799
|
-
await d(n), await u(
|
|
10798
|
+
} = zc(), { isMobile: p } = MA(), { onEvent: v } = V(), [w, L] = C.useState(!1), [S, D] = C.useState(6), [x, N] = C.useState(!1), [O, H] = C.useState(!1), B = async () => {
|
|
10799
|
+
await d(n), await u(S), L(!0);
|
|
10800
10800
|
};
|
|
10801
10801
|
C.useEffect(() => {
|
|
10802
10802
|
v(k.NET_WORTH_VIEW), r(i);
|
|
10803
10803
|
}, []), C.useEffect(() => {
|
|
10804
10804
|
e && B();
|
|
10805
10805
|
}, [e, n]), C.useEffect(() => {
|
|
10806
|
-
v(k.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period:
|
|
10807
|
-
}, [
|
|
10806
|
+
v(k.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: S + "M" }), u(S);
|
|
10807
|
+
}, [S]);
|
|
10808
10808
|
const X = (cA, pA) => {
|
|
10809
10809
|
m(pA), cA.currentTarget instanceof HTMLDivElement && N(!0);
|
|
10810
10810
|
}, F = (cA) => {
|
|
@@ -10825,7 +10825,7 @@ const Hh = ({
|
|
|
10825
10825
|
onMouseLeave: Q,
|
|
10826
10826
|
selectedData: g
|
|
10827
10827
|
};
|
|
10828
|
-
return
|
|
10828
|
+
return w ? /* @__PURE__ */ t(
|
|
10829
10829
|
he,
|
|
10830
10830
|
{
|
|
10831
10831
|
accountOptions: i,
|
|
@@ -10838,7 +10838,7 @@ const Hh = ({
|
|
|
10838
10838
|
showDividerAboveDateSelector: !1,
|
|
10839
10839
|
sx: { p: p ? 0 : 48 },
|
|
10840
10840
|
title: a.net_worth,
|
|
10841
|
-
children:
|
|
10841
|
+
children: w && /* @__PURE__ */ l(eA, { children: [
|
|
10842
10842
|
g && /* @__PURE__ */ t(Xh, { hoveredData: c, selectedData: g }),
|
|
10843
10843
|
/* @__PURE__ */ l(
|
|
10844
10844
|
E,
|
|
@@ -10879,7 +10879,7 @@ const Hh = ({
|
|
|
10879
10879
|
] })
|
|
10880
10880
|
}
|
|
10881
10881
|
) : /* @__PURE__ */ t(UA, {});
|
|
10882
|
-
}),
|
|
10882
|
+
}), i7 = (A) => {
|
|
10883
10883
|
switch (A) {
|
|
10884
10884
|
case 1:
|
|
10885
10885
|
case 2:
|
|
@@ -11012,7 +11012,7 @@ const Zh = (A, e) => {
|
|
|
11012
11012
|
] }, o.guid);
|
|
11013
11013
|
})
|
|
11014
11014
|
] });
|
|
11015
|
-
},
|
|
11015
|
+
}, o7 = T(ng);
|
|
11016
11016
|
class rg {
|
|
11017
11017
|
api = new kr("/", "");
|
|
11018
11018
|
userProfile = null;
|
|
@@ -11043,7 +11043,7 @@ class rg {
|
|
|
11043
11043
|
}
|
|
11044
11044
|
};
|
|
11045
11045
|
}
|
|
11046
|
-
class
|
|
11046
|
+
class s7 {
|
|
11047
11047
|
accountStore;
|
|
11048
11048
|
beatStore;
|
|
11049
11049
|
budgetsStore;
|
|
@@ -11180,7 +11180,7 @@ const Ln = ({
|
|
|
11180
11180
|
onClose: () => r(!1),
|
|
11181
11181
|
title: h.mark_as_duplicate,
|
|
11182
11182
|
children: /* @__PURE__ */ t(nA, { children: g.map((v) => {
|
|
11183
|
-
const
|
|
11183
|
+
const w = g.indexOf(v) === g.length - 1;
|
|
11184
11184
|
return /* @__PURE__ */ l(C.Fragment, { children: [
|
|
11185
11185
|
/* @__PURE__ */ t(
|
|
11186
11186
|
hn,
|
|
@@ -11191,7 +11191,7 @@ const Ln = ({
|
|
|
11191
11191
|
}
|
|
11192
11192
|
}
|
|
11193
11193
|
),
|
|
11194
|
-
/* @__PURE__ */ t(nA, { sx: { ml:
|
|
11194
|
+
/* @__PURE__ */ t(nA, { sx: { ml: w ? 0 : 24 } })
|
|
11195
11195
|
] }, v.guid);
|
|
11196
11196
|
}) })
|
|
11197
11197
|
}
|
|
@@ -11978,7 +11978,7 @@ const Ln = ({
|
|
|
11978
11978
|
] })
|
|
11979
11979
|
}
|
|
11980
11980
|
);
|
|
11981
|
-
},
|
|
11981
|
+
}, c7 = T(kg), Gg = (A, e) => A.filter((n) => e.includes(n.guid)).slice(0, 3), Fg = ({ onPrimaryCtaClick: A, sx: e }) => {
|
|
11982
11982
|
const { accounts: n } = SA(), { accounts: r } = I(), { selectedAccountGuids: a } = CA(), [i, o] = C.useState(n);
|
|
11983
11983
|
return C.useEffect(() => {
|
|
11984
11984
|
o(Gg(n, a));
|
|
@@ -12009,7 +12009,7 @@ const Ln = ({
|
|
|
12009
12009
|
] })
|
|
12010
12010
|
}
|
|
12011
12011
|
);
|
|
12012
|
-
},
|
|
12012
|
+
}, l7 = T(Fg), Xg = () => /* @__PURE__ */ l(
|
|
12013
12013
|
"svg",
|
|
12014
12014
|
{
|
|
12015
12015
|
fill: "none",
|
|
@@ -12491,7 +12491,7 @@ const Ln = ({
|
|
|
12491
12491
|
}
|
|
12492
12492
|
)
|
|
12493
12493
|
] });
|
|
12494
|
-
},
|
|
12494
|
+
}, d7 = T(Ug);
|
|
12495
12495
|
class wa {
|
|
12496
12496
|
fetchInstance;
|
|
12497
12497
|
constructor(e, n) {
|
|
@@ -12716,8 +12716,8 @@ function i1({ bubble: A, isDraggable: e, onClick: n = () => {
|
|
|
12716
12716
|
const [r, a] = C.useState(!1);
|
|
12717
12717
|
if (C.useEffect(() => {
|
|
12718
12718
|
document.fonts.ready.then(() => {
|
|
12719
|
-
const
|
|
12720
|
-
|
|
12719
|
+
const w = JA.select(`.icon-${s}`), L = w.node()?.getComputedTextLength();
|
|
12720
|
+
w.attr("x", () => h < At ? L ? L / 2 - 12 : 12 : L ? L / 2 - 16 : 16);
|
|
12721
12721
|
});
|
|
12722
12722
|
}, []), !A) return;
|
|
12723
12723
|
const {
|
|
@@ -12872,7 +12872,7 @@ const o1 = ({
|
|
|
12872
12872
|
] })
|
|
12873
12873
|
}
|
|
12874
12874
|
);
|
|
12875
|
-
},
|
|
12875
|
+
}, u7 = T(l1), d1 = ({ budget: A, onClick: e }) => {
|
|
12876
12876
|
const {
|
|
12877
12877
|
amount: n,
|
|
12878
12878
|
budgetColors: { background: r, description: a },
|
|
@@ -12917,8 +12917,8 @@ const o1 = ({
|
|
|
12917
12917
|
] });
|
|
12918
12918
|
}), h1 = T(() => {
|
|
12919
12919
|
const A = gA(), { onEvent: e } = V(), { accounts: n } = SA(), { budgets: r, common: a, recurring: i } = I(), { incomeCategories: o, spendCategories: s } = TA(), { detailedBudgets: c, totalBudgeted: u } = kA(), { projectedIncome: d } = HA(), { setFilter: h } = uA(), [g, f] = C.useState(!1), [m, p] = C.useMemo(() => {
|
|
12920
|
-
const
|
|
12921
|
-
let D =
|
|
12920
|
+
const S = s.reduce((O, H) => O + H.totalAmount, 0);
|
|
12921
|
+
let D = S / u;
|
|
12922
12922
|
D > 1 && (D = 1);
|
|
12923
12923
|
let x = A.palette.success.main;
|
|
12924
12924
|
D > 0.8 && D < 1 ? x = A.palette.warning.main : D >= 1 && (x = A.palette.error.main);
|
|
@@ -12928,12 +12928,12 @@ const o1 = ({
|
|
|
12928
12928
|
percentage: `${D}`
|
|
12929
12929
|
}
|
|
12930
12930
|
];
|
|
12931
|
-
return [
|
|
12932
|
-
}, [c, s]), [v,
|
|
12933
|
-
const
|
|
12931
|
+
return [S, N];
|
|
12932
|
+
}, [c, s]), [v, w] = C.useMemo(() => {
|
|
12933
|
+
const S = Math.abs(
|
|
12934
12934
|
o.reduce((N, O) => N + O.totalAmount, 0)
|
|
12935
12935
|
);
|
|
12936
|
-
let D =
|
|
12936
|
+
let D = S / d;
|
|
12937
12937
|
D > 1 && (D = 1);
|
|
12938
12938
|
const x = [
|
|
12939
12939
|
{
|
|
@@ -12941,10 +12941,10 @@ const o1 = ({
|
|
|
12941
12941
|
percentage: `${D}`
|
|
12942
12942
|
}
|
|
12943
12943
|
];
|
|
12944
|
-
return [
|
|
12944
|
+
return [S, x];
|
|
12945
12945
|
}, [o, d]), L = () => {
|
|
12946
12946
|
h({
|
|
12947
|
-
accounts: n.map((
|
|
12947
|
+
accounts: n.map((S) => S.guid),
|
|
12948
12948
|
dateRange: {
|
|
12949
12949
|
start: ue(/* @__PURE__ */ new Date(), 90),
|
|
12950
12950
|
end: /* @__PURE__ */ new Date()
|
|
@@ -12976,7 +12976,7 @@ const o1 = ({
|
|
|
12976
12976
|
}
|
|
12977
12977
|
)
|
|
12978
12978
|
] }),
|
|
12979
|
-
/* @__PURE__ */ t(Tt, { data:
|
|
12979
|
+
/* @__PURE__ */ t(Tt, { data: w, height: 16 }),
|
|
12980
12980
|
/* @__PURE__ */ t(y, { variant: "Small", children: _(
|
|
12981
12981
|
r.income_description,
|
|
12982
12982
|
z(v, "0,0"),
|
|
@@ -13177,8 +13177,8 @@ const o1 = ({
|
|
|
13177
13177
|
}), E1 = T(({ category: A, parentBudget: e }) => {
|
|
13178
13178
|
const { budgets: n, common: r } = I(), { setExpandedGuid: a, setOnSelect: i } = Xe(), { addBudget: o } = kA(), [s, c] = C.useState(!1), [u, d] = C.useState(!1), [h, g] = C.useState(""), [f, m] = C.useState(void 0);
|
|
13179
13179
|
C.useEffect(() => {
|
|
13180
|
-
i((
|
|
13181
|
-
const L = A.subCategories.find((
|
|
13180
|
+
i((w) => {
|
|
13181
|
+
const L = A.subCategories.find((S) => S.guid === w);
|
|
13182
13182
|
L && (m(L), g(`${L.currentAmount === 0 ? "" : L.currentAmount}`), d(!0));
|
|
13183
13183
|
});
|
|
13184
13184
|
}, []);
|
|
@@ -13234,14 +13234,14 @@ const o1 = ({
|
|
|
13234
13234
|
custom: (D) => D.category_guid === o.category_guid
|
|
13235
13235
|
}));
|
|
13236
13236
|
}, [o]);
|
|
13237
|
-
const
|
|
13237
|
+
const w = async () => {
|
|
13238
13238
|
o && await c({
|
|
13239
13239
|
...o,
|
|
13240
13240
|
amount: Number(p)
|
|
13241
13241
|
});
|
|
13242
13242
|
}, L = async () => {
|
|
13243
|
-
o && await i(o.guid), m(!1),
|
|
13244
|
-
},
|
|
13243
|
+
o && await i(o.guid), m(!1), S();
|
|
13244
|
+
}, S = () => {
|
|
13245
13245
|
d({
|
|
13246
13246
|
...u,
|
|
13247
13247
|
custom: (D) => D.category_guid === A.category_guid || D.top_level_category_guid === A.category_guid
|
|
@@ -13260,7 +13260,7 @@ const o1 = ({
|
|
|
13260
13260
|
{
|
|
13261
13261
|
ariaLabelClose: a.close_aria,
|
|
13262
13262
|
isOpen: !!o,
|
|
13263
|
-
onClose:
|
|
13263
|
+
onClose: S,
|
|
13264
13264
|
onPrimaryAction: () => g(!0),
|
|
13265
13265
|
onSecondaryAction: () => m(!0),
|
|
13266
13266
|
primaryText: r.details_edit_button,
|
|
@@ -13280,7 +13280,7 @@ const o1 = ({
|
|
|
13280
13280
|
disablePrimaryButton: Number(p) <= 0,
|
|
13281
13281
|
isOpen: h,
|
|
13282
13282
|
onClose: () => g(!1),
|
|
13283
|
-
onPrimaryAction:
|
|
13283
|
+
onPrimaryAction: w,
|
|
13284
13284
|
primaryText: r.edit_save_button,
|
|
13285
13285
|
children: /* @__PURE__ */ t(
|
|
13286
13286
|
Cn,
|
|
@@ -13366,7 +13366,7 @@ const o1 = ({
|
|
|
13366
13366
|
setAlert: s,
|
|
13367
13367
|
setSelectedBudget: c,
|
|
13368
13368
|
updateBudget: u
|
|
13369
|
-
} = kA(), { setFilter: d } = uA(), [h, g] = C.useState(!1), [f, m] = C.useState(!1), [p, v] = C.useState(!1), [
|
|
13369
|
+
} = kA(), { setFilter: d } = uA(), [h, g] = C.useState(!1), [f, m] = C.useState(!1), [p, v] = C.useState(!1), [w, L] = C.useState("");
|
|
13370
13370
|
C.useEffect(() => {
|
|
13371
13371
|
i && !o && (L(`${i.amount}`), g(!0), d({
|
|
13372
13372
|
accounts: A,
|
|
@@ -13374,11 +13374,11 @@ const o1 = ({
|
|
|
13374
13374
|
custom: (N) => N.category_guid === i.category_guid || N.top_level_category_guid === i.category_guid
|
|
13375
13375
|
}));
|
|
13376
13376
|
}, [i]);
|
|
13377
|
-
const
|
|
13377
|
+
const S = async () => {
|
|
13378
13378
|
i && (await u({
|
|
13379
13379
|
...i,
|
|
13380
|
-
amount: Number(
|
|
13381
|
-
percentage: i.category.totalAmount / Number(
|
|
13380
|
+
amount: Number(w),
|
|
13381
|
+
percentage: i.category.totalAmount / Number(w) * 100
|
|
13382
13382
|
}), s(_(e.alert_budget_updated, i.category.name)));
|
|
13383
13383
|
}, D = async () => {
|
|
13384
13384
|
i && (await a(i.guid), s(_(e.alert_budget_deleted, i.category.name))), v(!1), x();
|
|
@@ -13408,15 +13408,15 @@ const o1 = ({
|
|
|
13408
13408
|
DA,
|
|
13409
13409
|
{
|
|
13410
13410
|
copy: { close_aria: n.close_aria, title: e.details_edit_title },
|
|
13411
|
-
disablePrimaryButton: Number(
|
|
13411
|
+
disablePrimaryButton: Number(w) <= 0,
|
|
13412
13412
|
isOpen: f,
|
|
13413
13413
|
onClose: () => m(!1),
|
|
13414
|
-
onPrimaryAction:
|
|
13414
|
+
onPrimaryAction: S,
|
|
13415
13415
|
primaryText: e.edit_save_button,
|
|
13416
13416
|
children: /* @__PURE__ */ t(
|
|
13417
13417
|
Cn,
|
|
13418
13418
|
{
|
|
13419
|
-
amount:
|
|
13419
|
+
amount: w,
|
|
13420
13420
|
categoryName: i.category.name,
|
|
13421
13421
|
onAmountChanged: L
|
|
13422
13422
|
}
|
|
@@ -13437,12 +13437,12 @@ const o1 = ({
|
|
|
13437
13437
|
}
|
|
13438
13438
|
)
|
|
13439
13439
|
] });
|
|
13440
|
-
}), Ia = 480,
|
|
13441
|
-
const n = gA(), { onEvent: r } = V(), { accounts: a } = SA(), { budgets: i, common: o } = I(), { isInitialized: s, selectedAccounts: c, setDisplayedDate: u, setSelectedAccounts: d } = CA(), { alert: h, dateRange: g, loadBudgets: f, setDateRange: m, setAlert: p, setTheme: v } = kA(), { loadCashflowSequences:
|
|
13440
|
+
}), Ia = 480, h7 = T(({ onBackClick: A, sx: e }) => {
|
|
13441
|
+
const n = gA(), { onEvent: r } = V(), { accounts: a } = SA(), { budgets: i, common: o } = I(), { isInitialized: s, selectedAccounts: c, setDisplayedDate: u, setSelectedAccounts: d } = CA(), { alert: h, dateRange: g, loadBudgets: f, setDateRange: m, setAlert: p, setTheme: v } = kA(), { loadCashflowSequences: w } = HA(), { isDesktop: L, isTablet: S } = MA(), { reloadCategoryTotals: D } = TA(), [x, N] = C.useState(!1), [O, H] = C.useState(!1);
|
|
13442
13442
|
C.useEffect(() => {
|
|
13443
13443
|
v(n), d(a), u(g.start, g.end), r(k.BUDGETS_VIEW);
|
|
13444
13444
|
}, []), C.useEffect(() => {
|
|
13445
|
-
s && (D(c, g.start, g.end).finally(), x || (
|
|
13445
|
+
s && (D(c, g.start, g.end).finally(), x || (w().finally(), f().finally(() => N(!0))));
|
|
13446
13446
|
}, [s, c, g]);
|
|
13447
13447
|
const B = (sA) => {
|
|
13448
13448
|
m({ start: sA[0] || /* @__PURE__ */ new Date(), end: sA[1] || /* @__PURE__ */ new Date() });
|
|
@@ -13471,14 +13471,14 @@ const o1 = ({
|
|
|
13471
13471
|
title: i.budgets_title,
|
|
13472
13472
|
children: [
|
|
13473
13473
|
(!s || !x) && /* @__PURE__ */ t(UA, {}),
|
|
13474
|
-
s && x && /* @__PURE__ */ l(E, { direction: L ||
|
|
13475
|
-
/* @__PURE__ */ t(E, { height: L ||
|
|
13474
|
+
s && x && /* @__PURE__ */ l(E, { direction: L || S ? "row" : "column", height: "100%", width: "100%", children: [
|
|
13475
|
+
/* @__PURE__ */ t(E, { height: L || S ? "calc(100dvh - 150px)" : 450, children: /* @__PURE__ */ t(
|
|
13476
13476
|
Fi,
|
|
13477
13477
|
{
|
|
13478
|
-
height: L ||
|
|
13478
|
+
height: L || S ? 800 : 450,
|
|
13479
13479
|
isDraggable: !0,
|
|
13480
13480
|
shouldShowZeroState: !1,
|
|
13481
|
-
unavailableWidth: L ||
|
|
13481
|
+
unavailableWidth: L || S ? Ia : 0
|
|
13482
13482
|
}
|
|
13483
13483
|
) }),
|
|
13484
13484
|
/* @__PURE__ */ l(
|
|
@@ -13487,7 +13487,7 @@ const o1 = ({
|
|
|
13487
13487
|
gap: 24,
|
|
13488
13488
|
height: "100%",
|
|
13489
13489
|
sx: { mr: 24 },
|
|
13490
|
-
width: L ||
|
|
13490
|
+
width: L || S ? Ia : "100%",
|
|
13491
13491
|
children: [
|
|
13492
13492
|
/* @__PURE__ */ t(h1, {}),
|
|
13493
13493
|
/* @__PURE__ */ t(u1, {})
|
|
@@ -13591,7 +13591,7 @@ const T1 = () => {
|
|
|
13591
13591
|
/* @__PURE__ */ t(Se, { height: 300, variant: "rounded", width: "100%" })
|
|
13592
13592
|
] }) : /* @__PURE__ */ t(E, { direction: "column", spacing: 24, children: u.map((d) => /* @__PURE__ */ t(C.Fragment, { children: d.component }, d.index)) }) })
|
|
13593
13593
|
] });
|
|
13594
|
-
},
|
|
13594
|
+
}, g7 = T(I1), vr = ({
|
|
13595
13595
|
bgcolor: A = "background.default",
|
|
13596
13596
|
children: e
|
|
13597
13597
|
}) => /* @__PURE__ */ t(
|
|
@@ -13706,7 +13706,7 @@ const T1 = () => {
|
|
|
13706
13706
|
] }) }),
|
|
13707
13707
|
/* @__PURE__ */ t(q, {})
|
|
13708
13708
|
] });
|
|
13709
|
-
},
|
|
13709
|
+
}, C7 = ({ content: A, manageAccountsStore: e }) => {
|
|
13710
13710
|
const { groupedAccounts: n, toggleAccount: r } = e, [a, i] = C.useState(!1);
|
|
13711
13711
|
return /* @__PURE__ */ l(eA, { children: [
|
|
13712
13712
|
/* @__PURE__ */ t(
|
|
@@ -13874,34 +13874,34 @@ const Wi = ({
|
|
|
13874
13874
|
translatedSubCatetgory: o = ""
|
|
13875
13875
|
}) => {
|
|
13876
13876
|
const s = gA(), c = C.useMemo(
|
|
13877
|
-
() => e.reduce((
|
|
13877
|
+
() => e.reduce((S, D) => ({ ...S, [D.name]: !1 }), {}),
|
|
13878
13878
|
[e]
|
|
13879
13879
|
), [u, d] = C.useState(c), { toastState: h, hideToast: g } = Ui(), f = si(a);
|
|
13880
13880
|
ve(() => {
|
|
13881
13881
|
f && !a && d(c);
|
|
13882
13882
|
}, [f, a, c, d]);
|
|
13883
|
-
const m = (
|
|
13884
|
-
const { name: D, checked: x } =
|
|
13883
|
+
const m = (S) => {
|
|
13884
|
+
const { name: D, checked: x } = S.target;
|
|
13885
13885
|
d((N) => ({
|
|
13886
13886
|
...N,
|
|
13887
13887
|
[D]: x
|
|
13888
13888
|
}));
|
|
13889
13889
|
}, p = Object.values(u).filter(Boolean).length, v = () => {
|
|
13890
13890
|
d(c), i();
|
|
13891
|
-
},
|
|
13892
|
-
const
|
|
13891
|
+
}, w = () => {
|
|
13892
|
+
const S = e.reduce(
|
|
13893
13893
|
(D, x) => ({
|
|
13894
13894
|
...D,
|
|
13895
13895
|
[x.name]: p !== e.length
|
|
13896
13896
|
}),
|
|
13897
13897
|
{}
|
|
13898
13898
|
);
|
|
13899
|
-
d(
|
|
13899
|
+
d(S);
|
|
13900
13900
|
}, L = () => {
|
|
13901
|
-
const
|
|
13901
|
+
const S = p === e.length;
|
|
13902
13902
|
n(
|
|
13903
13903
|
Object.keys(u).filter((D) => u[D]),
|
|
13904
|
-
|
|
13904
|
+
S
|
|
13905
13905
|
);
|
|
13906
13906
|
};
|
|
13907
13907
|
return /* @__PURE__ */ l(
|
|
@@ -13952,7 +13952,7 @@ const Wi = ({
|
|
|
13952
13952
|
/* @__PURE__ */ t(
|
|
13953
13953
|
oA,
|
|
13954
13954
|
{
|
|
13955
|
-
onClick:
|
|
13955
|
+
onClick: w,
|
|
13956
13956
|
size: "small",
|
|
13957
13957
|
sx: {
|
|
13958
13958
|
"&:hover": { backgroundColor: "transparent" },
|
|
@@ -13969,32 +13969,32 @@ const Wi = ({
|
|
|
13969
13969
|
}
|
|
13970
13970
|
) }),
|
|
13971
13971
|
sx: { height: "100%" },
|
|
13972
|
-
children: e.sort((
|
|
13972
|
+
children: e.sort((S, D) => S.name < D.name ? -1 : 1).map((S, D) => /* @__PURE__ */ l(P, { children: [
|
|
13973
13973
|
/* @__PURE__ */ t(Y, { disablePadding: !0, children: /* @__PURE__ */ l(
|
|
13974
13974
|
dA,
|
|
13975
13975
|
{
|
|
13976
13976
|
onClick: () => d((x) => ({
|
|
13977
13977
|
...x,
|
|
13978
|
-
[
|
|
13978
|
+
[S.name]: !x[S.name]
|
|
13979
13979
|
})),
|
|
13980
13980
|
children: [
|
|
13981
13981
|
/* @__PURE__ */ t(
|
|
13982
13982
|
tA,
|
|
13983
13983
|
{
|
|
13984
|
-
primary:
|
|
13985
|
-
secondary: /* @__PURE__ */ t(C.Fragment, { children:
|
|
13984
|
+
primary: S.title,
|
|
13985
|
+
secondary: /* @__PURE__ */ t(C.Fragment, { children: S.description })
|
|
13986
13986
|
}
|
|
13987
13987
|
),
|
|
13988
13988
|
/* @__PURE__ */ t(
|
|
13989
13989
|
Kt,
|
|
13990
13990
|
{
|
|
13991
|
-
checked: u[
|
|
13991
|
+
checked: u[S.name] ? u[S.name] : !1,
|
|
13992
13992
|
edge: "end",
|
|
13993
13993
|
inputProps: {
|
|
13994
|
-
"aria-label": u[
|
|
13994
|
+
"aria-label": u[S.name] ? `${A.unselect_insight.split(" ")[0]} ${S.name} ${A.unselect_insight.split(" ")[1]}` : `${A.select_insight.split(" ")[0]} ${S.name} ${A.select_insight.split(" ")[1]}`,
|
|
13995
13995
|
role: "checkbox"
|
|
13996
13996
|
},
|
|
13997
|
-
name:
|
|
13997
|
+
name: S.name,
|
|
13998
13998
|
onChange: m,
|
|
13999
13999
|
size: "small"
|
|
14000
14000
|
}
|
|
@@ -14124,7 +14124,7 @@ const Wi = ({
|
|
|
14124
14124
|
update: r,
|
|
14125
14125
|
isUpdateError: a,
|
|
14126
14126
|
isUpdateLoading: i
|
|
14127
|
-
} = e, [o, s, c] = H1(n), { toastState: u, showToast: d, hideToast: h, setMessage: g } = Ui(), [f, m] = C.useState(!1), [p, v] = C.useState(!1), [
|
|
14127
|
+
} = e, [o, s, c] = H1(n), { toastState: u, showToast: d, hideToast: h, setMessage: g } = Ui(), [f, m] = C.useState(!1), [p, v] = C.useState(!1), [w, L] = C.useState(""), [S, D] = C.useState(""), x = si(i);
|
|
14128
14128
|
ve(() => {
|
|
14129
14129
|
x && !i && (a ? d(A.something_went_wrong, "error") : d(void 0, "success"));
|
|
14130
14130
|
}, [x, a]);
|
|
@@ -14239,19 +14239,19 @@ const Wi = ({
|
|
|
14239
14239
|
M1,
|
|
14240
14240
|
{
|
|
14241
14241
|
content: A,
|
|
14242
|
-
disabledBeatTemplates:
|
|
14242
|
+
disabledBeatTemplates: S !== "" ? o.filter((X) => X.key === w)[0].subcategories.filter((X) => X.key === S)[0].beats : [],
|
|
14243
14243
|
handleEnableBeatTemplates: B,
|
|
14244
14244
|
isOpen: p,
|
|
14245
14245
|
isUpdateLoading: i,
|
|
14246
14246
|
onClose: H,
|
|
14247
|
-
translatedSubCatetgory: c[
|
|
14247
|
+
translatedSubCatetgory: c[S]
|
|
14248
14248
|
}
|
|
14249
14249
|
)
|
|
14250
14250
|
]
|
|
14251
14251
|
}
|
|
14252
14252
|
)
|
|
14253
14253
|
] });
|
|
14254
|
-
},
|
|
14254
|
+
}, f7 = ({
|
|
14255
14255
|
content: A,
|
|
14256
14256
|
disabledBeatTemplatesStore: e
|
|
14257
14257
|
}) => /* @__PURE__ */ t(O1, { children: /* @__PURE__ */ t(
|
|
@@ -14260,7 +14260,7 @@ const Wi = ({
|
|
|
14260
14260
|
content: A,
|
|
14261
14261
|
disabledBeatTemplatesStore: e
|
|
14262
14262
|
}
|
|
14263
|
-
) }),
|
|
14263
|
+
) }), m7 = ({
|
|
14264
14264
|
children: A,
|
|
14265
14265
|
content: e,
|
|
14266
14266
|
isOpen: n = !1,
|
|
@@ -15394,12 +15394,12 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
15394
15394
|
}) => {
|
|
15395
15395
|
const f = window.app?.config.client_guid, { ref: m, inView: p } = Va({
|
|
15396
15396
|
threshold: eo
|
|
15397
|
-
}), { cardsCopy: v } = Ze(), { onEvent:
|
|
15397
|
+
}), { cardsCopy: v } = Ze(), { onEvent: w } = Nt(), { updateBeat: L } = AC();
|
|
15398
15398
|
ve(() => {
|
|
15399
|
-
p && (n.has_been_displayed ?
|
|
15399
|
+
p && (n.has_been_displayed ? w(Vi(n.template)) : (L({
|
|
15400
15400
|
...n,
|
|
15401
15401
|
has_been_displayed: !0
|
|
15402
|
-
}),
|
|
15402
|
+
}), w(Ji(n.template))));
|
|
15403
15403
|
}, [p]), ve(() => {
|
|
15404
15404
|
u?.capture && p && n && f && u.capture("micro_widget_viewed_insight", {
|
|
15405
15405
|
beat_guid: n.guid,
|
|
@@ -15408,8 +15408,8 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
15408
15408
|
$groups: { client: f }
|
|
15409
15409
|
});
|
|
15410
15410
|
}, [n, f, u, o, p]);
|
|
15411
|
-
const
|
|
15412
|
-
c && c(n),
|
|
15411
|
+
const S = () => {
|
|
15412
|
+
c && c(n), w(Yi(n.template)), u?.capture && f && u.capture("micro_widget_clicked_insight", {
|
|
15413
15413
|
beat_guid: n.guid,
|
|
15414
15414
|
insight_template: n.template,
|
|
15415
15415
|
position: o,
|
|
@@ -15435,7 +15435,7 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
15435
15435
|
}
|
|
15436
15436
|
),
|
|
15437
15437
|
isActiveCard: s,
|
|
15438
|
-
onCardClick:
|
|
15438
|
+
onCardClick: S,
|
|
15439
15439
|
ref: m,
|
|
15440
15440
|
showCTAColocatedWithText: a,
|
|
15441
15441
|
showIcon: d,
|
|
@@ -15528,7 +15528,7 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
15528
15528
|
variant: u,
|
|
15529
15529
|
widthOverrides: d
|
|
15530
15530
|
}) => {
|
|
15531
|
-
const h = iC(r, c, d), g = C.useRef(null), [f, m] = C.useState(0), [p, v] = C.useState(null), [
|
|
15531
|
+
const h = iC(r, c, d), g = C.useRef(null), [f, m] = C.useState(0), [p, v] = C.useState(null), [w, L] = C.useState(null), { carouselCopy: S } = Ze(), { onEvent: D } = Nt(), x = () => {
|
|
15532
15532
|
D(se.ON_CAROUSEL_FORWARD_CLICK), g.current && g.current.scrollTo({
|
|
15533
15533
|
left: (
|
|
15534
15534
|
// Adds the flex gap to the carousel ulRef's width
|
|
@@ -15546,8 +15546,8 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
15546
15546
|
}, O = () => {
|
|
15547
15547
|
g.current && m(g.current.scrollLeft);
|
|
15548
15548
|
}, H = () => {
|
|
15549
|
-
if (!
|
|
15550
|
-
|
|
15549
|
+
if (!w || !p) return;
|
|
15550
|
+
w - p > $1 ? D(se.ON_CAROUSEL_FORWARD_SWIPE) : D(se.ON_CAROUSEL_BACK_SWIPE);
|
|
15551
15551
|
}, B = (sA) => {
|
|
15552
15552
|
v(sA.targetTouches[0].clientX);
|
|
15553
15553
|
}, X = (sA) => {
|
|
@@ -15575,7 +15575,7 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
15575
15575
|
eC,
|
|
15576
15576
|
{
|
|
15577
15577
|
ariaLabel: _(
|
|
15578
|
-
|
|
15578
|
+
S.card_position_in_carousel_aria,
|
|
15579
15579
|
hA + 1,
|
|
15580
15580
|
A.length + 1
|
|
15581
15581
|
),
|
|
@@ -15656,15 +15656,15 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
15656
15656
|
variant: m,
|
|
15657
15657
|
widthOverrides: p
|
|
15658
15658
|
}, v) {
|
|
15659
|
-
const [
|
|
15659
|
+
const [w, L] = C.useState(1);
|
|
15660
15660
|
C.useEffect(() => {
|
|
15661
15661
|
p && p <= 325 && L(3), p && p > 325 && L(2);
|
|
15662
15662
|
}, [p]);
|
|
15663
|
-
const { cardStyle:
|
|
15663
|
+
const { cardStyle: S, linkTextStyle: D } = h, x = m ? S : { border: "none", boxShadow: "none", ...S }, N = oC(
|
|
15664
15664
|
x,
|
|
15665
15665
|
a,
|
|
15666
15666
|
g,
|
|
15667
|
-
|
|
15667
|
+
w,
|
|
15668
15668
|
D,
|
|
15669
15669
|
o
|
|
15670
15670
|
);
|
|
@@ -15865,9 +15865,9 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
15865
15865
|
showIcon: m,
|
|
15866
15866
|
showWithMargin: p = !0,
|
|
15867
15867
|
token: v = "",
|
|
15868
|
-
useDarkMode:
|
|
15868
|
+
useDarkMode: w,
|
|
15869
15869
|
userHasFullInsightFeedBeats: L,
|
|
15870
|
-
variant:
|
|
15870
|
+
variant: S,
|
|
15871
15871
|
widthOverrides: D
|
|
15872
15872
|
}) => {
|
|
15873
15873
|
const [x, N] = me("STANDARD"), [O, H] = me(!1), B = cc([c], we), X = lc([u], we);
|
|
@@ -15885,17 +15885,17 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
15885
15885
|
onCardClick: s,
|
|
15886
15886
|
showIcon: m,
|
|
15887
15887
|
showWithMargin: p,
|
|
15888
|
-
useDarkMode:
|
|
15888
|
+
useDarkMode: w,
|
|
15889
15889
|
widthOverrides: D
|
|
15890
15890
|
}, Q = {
|
|
15891
15891
|
carouselSize: x,
|
|
15892
15892
|
posthog: d,
|
|
15893
|
-
variant:
|
|
15893
|
+
variant: S,
|
|
15894
15894
|
...F
|
|
15895
15895
|
};
|
|
15896
15896
|
return (
|
|
15897
15897
|
// The Theme provider must wrap the component so that the styles don't break when imported into other applications.
|
|
15898
|
-
/* @__PURE__ */ l(Oo, { theme: Co(
|
|
15898
|
+
/* @__PURE__ */ l(Oo, { theme: Co(w ? "dark" : "light"), children: [
|
|
15899
15899
|
/* @__PURE__ */ t(Bs, {}),
|
|
15900
15900
|
/* @__PURE__ */ t(X1, { onEvent: B, onPageview: X, store: we, children: /* @__PURE__ */ l(
|
|
15901
15901
|
P,
|
|
@@ -15923,7 +15923,7 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
15923
15923
|
beats: e,
|
|
15924
15924
|
clientColorScheme: n,
|
|
15925
15925
|
showCarouselControls: g,
|
|
15926
|
-
variant: h ?
|
|
15926
|
+
variant: h ? S : void 0,
|
|
15927
15927
|
...F
|
|
15928
15928
|
}
|
|
15929
15929
|
),
|
|
@@ -15934,7 +15934,7 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
15934
15934
|
) })
|
|
15935
15935
|
] })
|
|
15936
15936
|
);
|
|
15937
|
-
},
|
|
15937
|
+
}, p7 = T(dC), uC = ({
|
|
15938
15938
|
ariaLabel: A,
|
|
15939
15939
|
carouselSize: e,
|
|
15940
15940
|
clientColorScheme: n,
|
|
@@ -16334,7 +16334,7 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
16334
16334
|
children: /* @__PURE__ */ t(EC, {})
|
|
16335
16335
|
}
|
|
16336
16336
|
);
|
|
16337
|
-
},
|
|
16337
|
+
}, v7 = T(bC), wC = ({
|
|
16338
16338
|
data: A,
|
|
16339
16339
|
onSelected: e,
|
|
16340
16340
|
selectedId: n = "",
|
|
@@ -16471,7 +16471,7 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
16471
16471
|
A.palette.chartMono.chartMono1,
|
|
16472
16472
|
A.palette.chartMono.chartMono6
|
|
16473
16473
|
], IC = () => {
|
|
16474
|
-
const A = xt(), { categories: e, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: r } = TA(), { spending: a } = I(), { displayedDateRange: i, selectedAccounts: o, selectedAccountGuids: s } = CA(), { setFilter: c, sortedTransactions: u } = uA(), [d, h] = C.useState(""), [g, f] = C.useState(0), [m, p] = C.useState(""), [v,
|
|
16474
|
+
const A = xt(), { categories: e, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: r } = TA(), { spending: a } = I(), { displayedDateRange: i, selectedAccounts: o, selectedAccountGuids: s } = CA(), { setFilter: c, sortedTransactions: u } = uA(), [d, h] = C.useState(""), [g, f] = C.useState(0), [m, p] = C.useState(""), [v, w] = C.useState(!1);
|
|
16475
16475
|
C.useEffect(() => {
|
|
16476
16476
|
r(
|
|
16477
16477
|
o,
|
|
@@ -16482,7 +16482,7 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
16482
16482
|
const L = C.useMemo(
|
|
16483
16483
|
() => no(e, n),
|
|
16484
16484
|
[e, n]
|
|
16485
|
-
),
|
|
16485
|
+
), S = C.useMemo(
|
|
16486
16486
|
() => ro(e, n, LC(A)),
|
|
16487
16487
|
[e, n]
|
|
16488
16488
|
), D = C.useMemo(
|
|
@@ -16514,7 +16514,7 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
16514
16514
|
...B,
|
|
16515
16515
|
custom: (X) => H ? X.category_guid === H : X.top_level_category_guid === b.INCOME
|
|
16516
16516
|
});
|
|
16517
|
-
|
|
16517
|
+
w(!0);
|
|
16518
16518
|
};
|
|
16519
16519
|
return /* @__PURE__ */ l(P, { children: [
|
|
16520
16520
|
/* @__PURE__ */ l(Pe, { onChange: x, value: g, variant: "fullWidth", children: [
|
|
@@ -16536,7 +16536,7 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
16536
16536
|
label: /* @__PURE__ */ t(
|
|
16537
16537
|
Jt,
|
|
16538
16538
|
{
|
|
16539
|
-
amount:
|
|
16539
|
+
amount: S.totalAmount,
|
|
16540
16540
|
label: a.income_tab_title
|
|
16541
16541
|
}
|
|
16542
16542
|
)
|
|
@@ -16556,7 +16556,7 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
16556
16556
|
g === 1 && /* @__PURE__ */ t(
|
|
16557
16557
|
Ra,
|
|
16558
16558
|
{
|
|
16559
|
-
data:
|
|
16559
|
+
data: S,
|
|
16560
16560
|
onSelected: N,
|
|
16561
16561
|
onViewTransactions: O,
|
|
16562
16562
|
selectedId: d,
|
|
@@ -16568,7 +16568,7 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
16568
16568
|
{
|
|
16569
16569
|
ariaLabelClose: a.close_drawer_aria,
|
|
16570
16570
|
isOpen: v,
|
|
16571
|
-
onClose: () =>
|
|
16571
|
+
onClose: () => w(!1),
|
|
16572
16572
|
title: a.transactions_drawer_title,
|
|
16573
16573
|
children: /* @__PURE__ */ t(Fe, { onClick: p })
|
|
16574
16574
|
}
|
|
@@ -16606,7 +16606,16 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
16606
16606
|
children: /* @__PURE__ */ t(P, { height: "calc(100dvh - 150px)", width: "100%", children: /* @__PURE__ */ t(DC, {}) })
|
|
16607
16607
|
}
|
|
16608
16608
|
);
|
|
16609
|
-
},
|
|
16609
|
+
}, y7 = T(OC), xC = (A) => He[A] ?? He.default, PC = (A) => nn[A];
|
|
16610
|
+
function NC(A, e) {
|
|
16611
|
+
const n = [], r = new Date(A);
|
|
16612
|
+
for (; r <= e; ) {
|
|
16613
|
+
const a = r.getFullYear(), i = String(r.getMonth() + 1).padStart(2, "0");
|
|
16614
|
+
n.push(+`${a}${i}`), r.setMonth(r.getMonth() + 1);
|
|
16615
|
+
}
|
|
16616
|
+
return n;
|
|
16617
|
+
}
|
|
16618
|
+
const MC = (A) => {
|
|
16610
16619
|
let e = null, n = null;
|
|
16611
16620
|
const r = [...new Set(A.map((i) => i.year_month))].sort((i, o) => i - o), a = A.reduce((i, o) => {
|
|
16612
16621
|
const s = new Date(o.year, o.month - 1);
|
|
@@ -16633,43 +16642,43 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
16633
16642
|
"color: yellow",
|
|
16634
16643
|
"color: white"
|
|
16635
16644
|
), a;
|
|
16636
|
-
},
|
|
16637
|
-
const
|
|
16638
|
-
let
|
|
16639
|
-
const
|
|
16640
|
-
const
|
|
16641
|
-
const
|
|
16642
|
-
return (!
|
|
16643
|
-
}).sort((
|
|
16645
|
+
}, _C = (A, e, n) => {
|
|
16646
|
+
const r = MC(A), a = NC(e, n);
|
|
16647
|
+
let i = null, o = null;
|
|
16648
|
+
const s = Object.entries(r).map(([c, u]) => {
|
|
16649
|
+
const d = u[0].top_level_category_guid, h = a.map((g) => {
|
|
16650
|
+
const f = u.filter((w) => w.year_month === g).reduce((w, L) => w + Math.abs(L.amount), 0), m = Number(String(g).slice(0, 4)), p = Number(String(g).slice(4)), v = new Date(m, p - 1);
|
|
16651
|
+
return (!i || v < i.date) && (i = { month: p, year: m, date: v }), (!o || v > o.date) && (o = { month: p, year: m, date: v }), { x: v, y: f };
|
|
16652
|
+
}).sort((g, f) => g.x.getTime() - f.x.getTime());
|
|
16644
16653
|
return {
|
|
16645
|
-
top_level_category_guid:
|
|
16646
|
-
category_guid:
|
|
16647
|
-
category_name: PC(
|
|
16648
|
-
category_color: xC(
|
|
16649
|
-
dataset:
|
|
16654
|
+
top_level_category_guid: d,
|
|
16655
|
+
category_guid: c,
|
|
16656
|
+
category_name: PC(c),
|
|
16657
|
+
category_color: xC(d),
|
|
16658
|
+
dataset: h
|
|
16650
16659
|
};
|
|
16651
16660
|
});
|
|
16652
16661
|
return console.log(
|
|
16653
16662
|
`
|
|
16654
16663
|
%c getStackedLineChartData
|
|
16655
|
-
%c
|
|
16656
|
-
Earliest year: ${
|
|
16657
|
-
Earliest month: ${
|
|
16658
|
-
Latest year: ${
|
|
16659
|
-
Latest month: ${
|
|
16660
|
-
Earliest date: ${
|
|
16661
|
-
Latest date: ${
|
|
16664
|
+
%c yearMonths: ${a} (${a.length})
|
|
16665
|
+
Earliest year: ${i?.year}
|
|
16666
|
+
Earliest month: ${i?.month}
|
|
16667
|
+
Latest year: ${o?.year}
|
|
16668
|
+
Latest month: ${o?.month}
|
|
16669
|
+
Earliest date: ${i?.date}
|
|
16670
|
+
Latest date: ${o?.date}
|
|
16662
16671
|
`,
|
|
16663
16672
|
"color: green",
|
|
16664
16673
|
"color: white"
|
|
16665
|
-
),
|
|
16666
|
-
},
|
|
16674
|
+
), s;
|
|
16675
|
+
}, RC = (A, e) => {
|
|
16667
16676
|
const n = typeof A == "string" ? parseFloat(A.replace(/[^0-9.-]+/g, "")) : A, r = typeof e == "string" ? parseFloat(e.replace(/[^0-9.-]+/g, "")) : e;
|
|
16668
16677
|
return (n || 0) - (r || 0);
|
|
16669
|
-
},
|
|
16678
|
+
}, HC = (A) => {
|
|
16670
16679
|
const e = A.row[A.field];
|
|
16671
16680
|
return /* @__PURE__ */ t(E, { alignItems: "flex-end", tabIndex: A.tabIndex, children: /* @__PURE__ */ t(EA, { amount: e, variant: "Small" }) });
|
|
16672
|
-
},
|
|
16681
|
+
}, zC = ({ categoryGuid: A, topLevelCategoryGuid: e }) => {
|
|
16673
16682
|
const { categories: n } = I(), r = nn[A];
|
|
16674
16683
|
return /* @__PURE__ */ l(E, { alignItems: "center", direction: "row", justifyContent: "center", children: [
|
|
16675
16684
|
/* @__PURE__ */ t(
|
|
@@ -16682,13 +16691,13 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
16682
16691
|
),
|
|
16683
16692
|
/* @__PURE__ */ t(y, { sx: { ml: 12, pb: 6 }, variant: "Small", children: r })
|
|
16684
16693
|
] });
|
|
16685
|
-
},
|
|
16686
|
-
|
|
16694
|
+
}, BC = (A) => /* @__PURE__ */ t(E, { alignItems: "center", direction: "row", height: "100%", width: "100%", children: /* @__PURE__ */ t(
|
|
16695
|
+
zC,
|
|
16687
16696
|
{
|
|
16688
16697
|
categoryGuid: A.row.category,
|
|
16689
16698
|
topLevelCategoryGuid: A.row.top_level_category_guid
|
|
16690
16699
|
}
|
|
16691
|
-
) }),
|
|
16700
|
+
) }), KC = ({
|
|
16692
16701
|
monthlyCategoryTotals: A,
|
|
16693
16702
|
selectedCategory: e,
|
|
16694
16703
|
onClickRow: n,
|
|
@@ -16710,7 +16719,7 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
16710
16719
|
headerName: "Category",
|
|
16711
16720
|
minWidth: 175,
|
|
16712
16721
|
renderHeader: _e,
|
|
16713
|
-
renderCell:
|
|
16722
|
+
renderCell: BC,
|
|
16714
16723
|
sortable: !0,
|
|
16715
16724
|
type: "string"
|
|
16716
16725
|
},
|
|
@@ -16720,13 +16729,13 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
16720
16729
|
headerName: g,
|
|
16721
16730
|
minWidth: 75,
|
|
16722
16731
|
renderHeader: _e,
|
|
16723
|
-
renderCell:
|
|
16732
|
+
renderCell: HC,
|
|
16724
16733
|
align: "right",
|
|
16725
16734
|
headerAlign: "right",
|
|
16726
16735
|
sortable: !0,
|
|
16727
16736
|
hideSortIcons: !1,
|
|
16728
16737
|
type: "number",
|
|
16729
|
-
sortComparator:
|
|
16738
|
+
sortComparator: RC
|
|
16730
16739
|
})
|
|
16731
16740
|
)
|
|
16732
16741
|
], h = C.useMemo(() => {
|
|
@@ -16734,15 +16743,15 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
16734
16743
|
(m) => m.category_guid === e || m.top_level_category_guid === e
|
|
16735
16744
|
) : A).reduce(
|
|
16736
16745
|
(m, p) => {
|
|
16737
|
-
const { category_guid: v, top_level_category_guid:
|
|
16746
|
+
const { category_guid: v, top_level_category_guid: w, month: L, total: S, year: D } = p, x = e ? v : w;
|
|
16738
16747
|
m[x] || (m[x] = {
|
|
16739
16748
|
id: x,
|
|
16740
16749
|
category: x,
|
|
16741
16750
|
category_guid: v,
|
|
16742
|
-
top_level_category_guid:
|
|
16751
|
+
top_level_category_guid: w
|
|
16743
16752
|
});
|
|
16744
16753
|
const N = $(new Date(D, L, 1), Z.MONTH_SHORT);
|
|
16745
|
-
return m[x][N] =
|
|
16754
|
+
return m[x][N] = S, m;
|
|
16746
16755
|
},
|
|
16747
16756
|
{}
|
|
16748
16757
|
);
|
|
@@ -16768,9 +16777,9 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
16768
16777
|
sortingOrder: ["asc", "desc"]
|
|
16769
16778
|
}
|
|
16770
16779
|
) });
|
|
16771
|
-
},
|
|
16780
|
+
}, qC = {
|
|
16772
16781
|
title: "Transaction List"
|
|
16773
|
-
},
|
|
16782
|
+
}, kC = ({
|
|
16774
16783
|
categoryGuid: A,
|
|
16775
16784
|
dateRange: e,
|
|
16776
16785
|
isOpen: n,
|
|
@@ -16793,17 +16802,17 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
16793
16802
|
ariaLabelClose: o.close_aria,
|
|
16794
16803
|
isOpen: n,
|
|
16795
16804
|
onClose: g,
|
|
16796
|
-
title:
|
|
16805
|
+
title: qC.title,
|
|
16797
16806
|
children: [
|
|
16798
16807
|
h && /* @__PURE__ */ t(ct, { transaction: h }),
|
|
16799
16808
|
!h && /* @__PURE__ */ t(Fe, { onClick: d })
|
|
16800
16809
|
]
|
|
16801
16810
|
}
|
|
16802
16811
|
);
|
|
16803
|
-
},
|
|
16812
|
+
}, GC = T(kC), FC = {
|
|
16804
16813
|
view_transactions: "View Transactions"
|
|
16805
|
-
},
|
|
16806
|
-
const n = ae(), { onEvent: r } = V(), { isDesktop: a, isTablet: i, isMobile: o } = MA(), { accounts: s } = SA(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: u, getCategoryName: d } = TA(), { sortedTransactions: h } = uA(), { isInitialized: g, selectedAccounts: f, setSelectedAccounts: m } = CA(), { trends: p } = I(), v = n.palette.mode === "dark", [
|
|
16814
|
+
}, XC = ({ onBackClick: A, sx: e }) => {
|
|
16815
|
+
const n = ae(), { onEvent: r } = V(), { isDesktop: a, isTablet: i, isMobile: o } = MA(), { accounts: s } = SA(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: u, getCategoryName: d } = TA(), { sortedTransactions: h } = uA(), { isInitialized: g, selectedAccounts: f, setSelectedAccounts: m } = CA(), { trends: p } = I(), v = n.palette.mode === "dark", [w, L] = C.useState(!1), [S, D] = C.useState(!1), [x, N] = C.useState("Chart"), [O, H] = C.useState(""), [B, X] = C.useState({
|
|
16807
16816
|
start: Mr(xA(le(/* @__PURE__ */ new Date(), 6)), 1),
|
|
16808
16817
|
end: xA(/* @__PURE__ */ new Date())
|
|
16809
16818
|
});
|
|
@@ -16828,8 +16837,12 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
16828
16837
|
});
|
|
16829
16838
|
}, [g, f, B]);
|
|
16830
16839
|
const F = C.useMemo(() => {
|
|
16831
|
-
if (!
|
|
16832
|
-
const vA =
|
|
16840
|
+
if (!w) return { stackedDatasets: [], unstackedDatasets: [] };
|
|
16841
|
+
const vA = _C(
|
|
16842
|
+
u,
|
|
16843
|
+
B.start,
|
|
16844
|
+
B.end
|
|
16845
|
+
), XA = O.length ? vA.filter(
|
|
16833
16846
|
(fe) => fe.top_level_category_guid === O || fe.category_guid === O
|
|
16834
16847
|
) : Sg(vA);
|
|
16835
16848
|
return {
|
|
@@ -16874,7 +16887,7 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
16874
16887
|
}, je = (vA) => {
|
|
16875
16888
|
r(k.TRENDS_HOVER_POINT, { category: vA });
|
|
16876
16889
|
};
|
|
16877
|
-
return !g || !
|
|
16890
|
+
return !g || !w ? /* @__PURE__ */ t(UA, {}) : /* @__PURE__ */ l(
|
|
16878
16891
|
he,
|
|
16879
16892
|
{
|
|
16880
16893
|
accountOptions: s,
|
|
@@ -16965,7 +16978,7 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
16965
16978
|
/* @__PURE__ */ t(M, { name: "arrow_back" }),
|
|
16966
16979
|
p.all_categories
|
|
16967
16980
|
] }) }),
|
|
16968
|
-
/* @__PURE__ */ t(oA, { onClick: () => D(!0), sx: { px: 5 }, children: `${
|
|
16981
|
+
/* @__PURE__ */ t(oA, { onClick: () => D(!0), sx: { px: 5 }, children: `${FC.view_transactions} (${h.length})` })
|
|
16969
16982
|
] }),
|
|
16970
16983
|
/* @__PURE__ */ l(P, { children: [
|
|
16971
16984
|
x === "Chart" && /* @__PURE__ */ t(
|
|
@@ -16980,7 +16993,7 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
16980
16993
|
}
|
|
16981
16994
|
),
|
|
16982
16995
|
x === "Table" && /* @__PURE__ */ t(
|
|
16983
|
-
|
|
16996
|
+
KC,
|
|
16984
16997
|
{
|
|
16985
16998
|
monthlyCategoryTotals: u,
|
|
16986
16999
|
onClickRow: cA,
|
|
@@ -16992,18 +17005,18 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
16992
17005
|
}
|
|
16993
17006
|
),
|
|
16994
17007
|
/* @__PURE__ */ t(
|
|
16995
|
-
|
|
17008
|
+
GC,
|
|
16996
17009
|
{
|
|
16997
17010
|
categoryGuid: O,
|
|
16998
17011
|
dateRange: B,
|
|
16999
|
-
isOpen:
|
|
17012
|
+
isOpen: S,
|
|
17000
17013
|
onClose: () => D(!1)
|
|
17001
17014
|
}
|
|
17002
17015
|
)
|
|
17003
17016
|
]
|
|
17004
17017
|
}
|
|
17005
17018
|
);
|
|
17006
|
-
},
|
|
17019
|
+
}, E7 = T(XC), jC = () => {
|
|
17007
17020
|
const A = ae(), { monthlyCategoryTotals: e } = TA(), { trends: n } = I(), r = Dg(e);
|
|
17008
17021
|
return /* @__PURE__ */ t(
|
|
17009
17022
|
er,
|
|
@@ -17019,7 +17032,7 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
17019
17032
|
useCustomMark: !0
|
|
17020
17033
|
}
|
|
17021
17034
|
);
|
|
17022
|
-
},
|
|
17035
|
+
}, QC = T(jC), UC = ({ onPrimaryCtaClick: A, sx: e }) => {
|
|
17023
17036
|
const { loadMonthlyCategoryTotals: n } = TA(), { isInitialized: r } = nr(), { trends: a } = I(), { selectedAccounts: i } = CA(), [o, s] = C.useState(!1);
|
|
17024
17037
|
return C.useEffect(() => {
|
|
17025
17038
|
r && n(i).finally(() => {
|
|
@@ -17033,10 +17046,10 @@ const Pt = C.createContext(null), X1 = ({
|
|
|
17033
17046
|
subTitle: a.sub_title,
|
|
17034
17047
|
sx: e,
|
|
17035
17048
|
title: a.mini_title,
|
|
17036
|
-
children: /* @__PURE__ */ t(
|
|
17049
|
+
children: /* @__PURE__ */ t(QC, {})
|
|
17037
17050
|
}
|
|
17038
17051
|
);
|
|
17039
|
-
},
|
|
17052
|
+
}, b7 = T(UC);
|
|
17040
17053
|
export {
|
|
17041
17054
|
k as ANALYTICS_EVENTS,
|
|
17042
17055
|
wa as AccountApi,
|
|
@@ -17047,8 +17060,8 @@ export {
|
|
|
17047
17060
|
ks as AccountSubType,
|
|
17048
17061
|
W as AccountType,
|
|
17049
17062
|
Vn as AccountTypeName,
|
|
17050
|
-
|
|
17051
|
-
|
|
17063
|
+
l7 as AccountsMiniWidget,
|
|
17064
|
+
c7 as AccountsWidget,
|
|
17052
17065
|
Hi as ActivitySettings,
|
|
17053
17066
|
NA as ActivityStatus,
|
|
17054
17067
|
LA as ActivityType,
|
|
@@ -17056,20 +17069,20 @@ export {
|
|
|
17056
17069
|
oc as AnalyticsApi,
|
|
17057
17070
|
R as ApiEndpoints,
|
|
17058
17071
|
F1 as AppStore,
|
|
17059
|
-
|
|
17072
|
+
Ff as BarChart,
|
|
17060
17073
|
at as BeatApi,
|
|
17061
17074
|
eC as BeatCard,
|
|
17062
17075
|
Bt as BottomActions,
|
|
17063
|
-
|
|
17064
|
-
|
|
17076
|
+
u7 as BubbleBudgetsMiniWidget,
|
|
17077
|
+
h7 as BubbleBudgetsWidget,
|
|
17065
17078
|
Tc as Calendar,
|
|
17066
17079
|
li as CalendarSelectionTypes,
|
|
17067
17080
|
cC as CarouselHeader,
|
|
17068
17081
|
Ca as CashflowApi,
|
|
17069
|
-
|
|
17082
|
+
Wf as CashflowMiniWidget,
|
|
17070
17083
|
Ah as CashflowOnboarding,
|
|
17071
17084
|
nh as CashflowStore,
|
|
17072
|
-
|
|
17085
|
+
A7 as CashflowWidget,
|
|
17073
17086
|
Xt as CategoryApi,
|
|
17074
17087
|
He as CategoryColors,
|
|
17075
17088
|
nn as CategoryGuidToName,
|
|
@@ -17081,7 +17094,7 @@ export {
|
|
|
17081
17094
|
cd as CategoryStore,
|
|
17082
17095
|
Y1 as ChartFilledIcon,
|
|
17083
17096
|
on as ConnectDrawer,
|
|
17084
|
-
|
|
17097
|
+
d7 as ConnectMiniWidget,
|
|
17085
17098
|
Ue as ConnectionStatus,
|
|
17086
17099
|
GA as ConnectionStatusEnums,
|
|
17087
17100
|
Ft as CurrencyCodes,
|
|
@@ -17090,14 +17103,14 @@ export {
|
|
|
17090
17103
|
Z as DATE_FORMATS_INTL,
|
|
17091
17104
|
ti as DEFAULT_DONUT_SIZE,
|
|
17092
17105
|
ni as DEFAULT_STROKE_WIDTH,
|
|
17093
|
-
|
|
17106
|
+
g7 as Dashboard,
|
|
17094
17107
|
Bn as DashboardLocation,
|
|
17095
17108
|
Wt as DataRow,
|
|
17096
17109
|
Qr as DateRangeSelector,
|
|
17097
17110
|
oh as DebtsChart,
|
|
17098
17111
|
vh as DebtsStore,
|
|
17099
17112
|
hh as DebtsTable,
|
|
17100
|
-
|
|
17113
|
+
t7 as DebtsWidget,
|
|
17101
17114
|
DA as Dialog,
|
|
17102
17115
|
xc as Donut,
|
|
17103
17116
|
lA as Drawer,
|
|
@@ -17108,71 +17121,71 @@ export {
|
|
|
17108
17121
|
jt as GlobalCopyApi,
|
|
17109
17122
|
$c as GlobalCopyStore,
|
|
17110
17123
|
ot as GlobalDataContext,
|
|
17111
|
-
|
|
17112
|
-
|
|
17124
|
+
Xf as GlobalDataProvider,
|
|
17125
|
+
s7 as GlobalStore,
|
|
17113
17126
|
wh as GoalStore,
|
|
17114
|
-
|
|
17115
|
-
|
|
17127
|
+
n7 as GoalsWidget,
|
|
17128
|
+
f7 as HiddenInsightsDrawer,
|
|
17116
17129
|
Jn as INCOME_ACCOUNT_TYPES,
|
|
17117
17130
|
Be as IconBacking,
|
|
17118
17131
|
Yt as InformationTooltip,
|
|
17119
|
-
|
|
17132
|
+
p7 as InsightsMicroWidget,
|
|
17120
17133
|
X1 as InsightsMicroWidgetDataProvider,
|
|
17121
17134
|
Us as IterationItemTypes,
|
|
17122
|
-
|
|
17135
|
+
Kf as LOADING_STATUS,
|
|
17123
17136
|
er as LineChart,
|
|
17124
17137
|
Zc as ListItemWrapper,
|
|
17125
17138
|
UA as Loader,
|
|
17126
|
-
|
|
17127
|
-
|
|
17139
|
+
Gf as LocalizedCopyApi,
|
|
17140
|
+
C7 as ManageAccountsDrawer,
|
|
17128
17141
|
Cr as ManageIncome,
|
|
17129
17142
|
ze as MemberConnectionStatus,
|
|
17130
|
-
|
|
17143
|
+
r7 as MerchantLookup,
|
|
17131
17144
|
Ih as MerchantStore,
|
|
17132
17145
|
Za as MfaStatuses,
|
|
17133
17146
|
aC as MicroBeatCarousel,
|
|
17134
17147
|
fn as MicroInsightCard,
|
|
17135
17148
|
Je as MiniWidgetContainer,
|
|
17136
17149
|
Z1 as MonthlySpendComparisonIcon,
|
|
17137
|
-
|
|
17150
|
+
Qf as MultiSegmentDonut,
|
|
17138
17151
|
zh as NetWorthChart,
|
|
17139
17152
|
kh as NetWorthList,
|
|
17140
17153
|
Rh as NetWorthStore,
|
|
17141
17154
|
Xh as NetWorthSummary,
|
|
17142
|
-
|
|
17155
|
+
a7 as NetWorthWidget,
|
|
17143
17156
|
hC as NoRelevantInsightsCard,
|
|
17144
17157
|
Ai as NonConnectedStatuses,
|
|
17145
17158
|
Kr as NotificationApi,
|
|
17146
|
-
|
|
17159
|
+
o7 as NotificationList,
|
|
17147
17160
|
Jh as NotificationStore,
|
|
17148
17161
|
qs as ORDINAL_DATE_FORMAT,
|
|
17149
|
-
|
|
17162
|
+
Rf as ORDINAL_MONTH_DAY_YEAR_FORMAT,
|
|
17150
17163
|
Zn as PAYMENT_ACCOUNT_TYPES,
|
|
17151
17164
|
Rr as PaymentCategories,
|
|
17152
17165
|
Qs as PlanTypes,
|
|
17153
17166
|
Gs as ProcessingStatuses,
|
|
17154
17167
|
Ja as PropertyType,
|
|
17155
|
-
|
|
17156
|
-
|
|
17168
|
+
zf as PropertyTypeName,
|
|
17169
|
+
Bf as RECURRENCE_COPY,
|
|
17157
17170
|
G as RecurrenceTypes,
|
|
17158
|
-
|
|
17171
|
+
$f as RecurringActivityMiniWidget,
|
|
17159
17172
|
Lu as RecurringActivityStore,
|
|
17160
|
-
|
|
17161
|
-
|
|
17173
|
+
Zf as RecurringActivityWidget,
|
|
17174
|
+
Uf as ResponsiveButton,
|
|
17162
17175
|
$n as SPENDING_ACCOUNT_TYPES,
|
|
17163
17176
|
vl as ScheduledPaymentTypes,
|
|
17164
17177
|
qr as ScheduledPaymentsApi,
|
|
17165
17178
|
yl as ScreenSize,
|
|
17166
17179
|
cn as SearchBox,
|
|
17167
17180
|
Yr as SelectionBox,
|
|
17168
|
-
|
|
17181
|
+
m7 as SettingsDrawer,
|
|
17169
17182
|
fi as SingleSegmentDonut,
|
|
17170
17183
|
Ws as Sizes,
|
|
17171
|
-
|
|
17172
|
-
|
|
17184
|
+
v7 as SpendingMiniWidget,
|
|
17185
|
+
y7 as SpendingWidget,
|
|
17173
17186
|
Fc as StackedLineChart,
|
|
17174
17187
|
Tt as StatusBar,
|
|
17175
|
-
|
|
17188
|
+
Hf as StatusName,
|
|
17176
17189
|
dt as TOUCH_TARGET,
|
|
17177
17190
|
K as TRANSACTION_EVENTS,
|
|
17178
17191
|
Ut as TabContentContainer,
|
|
@@ -17186,9 +17199,9 @@ export {
|
|
|
17186
17199
|
bl as TransactionStore,
|
|
17187
17200
|
kl as TransactionTable,
|
|
17188
17201
|
QA as TransactionType,
|
|
17189
|
-
|
|
17190
|
-
|
|
17191
|
-
|
|
17202
|
+
Jf as TransactionWidget,
|
|
17203
|
+
E7 as TrendsFullWidget,
|
|
17204
|
+
b7 as TrendsMiniWidget,
|
|
17192
17205
|
kr as UserApi,
|
|
17193
17206
|
rg as UserStore,
|
|
17194
17207
|
ml as UserVerification,
|
|
@@ -17201,7 +17214,7 @@ export {
|
|
|
17201
17214
|
$i as ZeroStateIcon,
|
|
17202
17215
|
Ks as analyticsSession,
|
|
17203
17216
|
_ as buildDynamicCopy,
|
|
17204
|
-
|
|
17217
|
+
kf as buildPluralCopy,
|
|
17205
17218
|
yi as exportTransactionsToCSV,
|
|
17206
17219
|
z as formatCurrency,
|
|
17207
17220
|
$ as formatDate,
|
|
@@ -17211,12 +17224,12 @@ export {
|
|
|
17211
17224
|
Bi as getAccountBalanceDetails,
|
|
17212
17225
|
Mu as getAccountDetailFields,
|
|
17213
17226
|
zr as getCategory,
|
|
17214
|
-
|
|
17227
|
+
qf as getCategoryTotalsByParent,
|
|
17215
17228
|
$s as getCurrencyCodes,
|
|
17216
17229
|
Ys as getDetailedCategory,
|
|
17217
17230
|
Vs as getDetailedSubCategory,
|
|
17218
17231
|
ke as getLocale,
|
|
17219
|
-
|
|
17232
|
+
i7 as getNotificationDetailRoute,
|
|
17220
17233
|
Js as isIncome,
|
|
17221
17234
|
Nn as isValidNumber,
|
|
17222
17235
|
SA as useAccountStore,
|
|
@@ -17236,7 +17249,7 @@ export {
|
|
|
17236
17249
|
Hc as useMerchantStore,
|
|
17237
17250
|
zc as useNetWorthStore,
|
|
17238
17251
|
gi as useNotificationStore,
|
|
17239
|
-
|
|
17252
|
+
jf as usePageView,
|
|
17240
17253
|
si as usePrevious,
|
|
17241
17254
|
HA as useRecurringActivityStore,
|
|
17242
17255
|
MA as useScreenSize,
|