@mx-cartographer/experiences 4.1.4-alpha.bb2 → 4.1.4-alpha.bb4
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 +97 -97
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2289,7 +2289,7 @@ const sl = ({
|
|
|
2289
2289
|
(W, ye) => r.reduce((Me, zA) => Me + zA.dataset[ye]?.y || 0, 0)
|
|
2290
2290
|
) ?? [0], q = Math.max(...K), F = Math.max(
|
|
2291
2291
|
...i.flatMap((W) => W.dataset.map((ye) => ye.y))
|
|
2292
|
-
),
|
|
2292
|
+
), J = Math.floor(Math.min(...z) / 100) * 100, ae = Math.ceil(Math.max(q, F) / 100) * 100, oe = r.map((W, ye) => ({
|
|
2293
2293
|
id: `stacked-${ye}`,
|
|
2294
2294
|
guid: W.category_guid,
|
|
2295
2295
|
top_level_guid: W.top_level_category_guid,
|
|
@@ -2439,7 +2439,7 @@ const sl = ({
|
|
|
2439
2439
|
],
|
|
2440
2440
|
yAxis: [
|
|
2441
2441
|
{
|
|
2442
|
-
min:
|
|
2442
|
+
min: J,
|
|
2443
2443
|
max: ae || 100
|
|
2444
2444
|
}
|
|
2445
2445
|
]
|
|
@@ -2683,25 +2683,25 @@ const sl = ({
|
|
|
2683
2683
|
(o === "timeframebuttons" || o === "timeframetabs") && e.onRangeChanged(z());
|
|
2684
2684
|
}, [D]);
|
|
2685
2685
|
const z = () => {
|
|
2686
|
-
const
|
|
2687
|
-
return [Re(bA(
|
|
2688
|
-
}, K = (
|
|
2689
|
-
const ae = [...h], oe = h[0], ge = h[1], ce =
|
|
2686
|
+
const J = Re(st());
|
|
2687
|
+
return [Re(bA(J, D)), J];
|
|
2688
|
+
}, K = (J) => {
|
|
2689
|
+
const ae = [...h], oe = h[0], ge = h[1], ce = J === "previous";
|
|
2690
2690
|
if (p === n.dateRangePickerCopy.dateRangeThisMonth)
|
|
2691
2691
|
ae[0] = ce ? bA(oe, 1) : oA(oe, 1), ae[1] = Re(ce ? bA(ge, 1) : oA(ge, 1));
|
|
2692
2692
|
else if (p === n.dateRangePickerCopy.dateRangeYTD || p === n.dateRangePickerCopy.dateRangeLastYear)
|
|
2693
2693
|
ae[0] = ce ? Xa(Fa(oe), 1) : zt(Fa(oe), 1), ae[1] = ce ? Xa(Ga(oe), 1) : zt(Ga(oe), 1);
|
|
2694
2694
|
else {
|
|
2695
2695
|
const be = Cs(ge, oe);
|
|
2696
|
-
ae[0] =
|
|
2696
|
+
ae[0] = J === "previous" ? IA(oe, be) : _A(oe, be), ae[1] = J === "previous" ? IA(ge, be) : _A(ge, be);
|
|
2697
2697
|
}
|
|
2698
2698
|
m(ae), e.onRangeChanged(ae);
|
|
2699
2699
|
}, q = () => {
|
|
2700
2700
|
m(v), x(
|
|
2701
2701
|
p === n.dateRangePickerCopy.dateRangeThisMonth || p === n.dateRangePickerCopy.dateRangeLastMonth
|
|
2702
2702
|
), e.onRangeChanged(v);
|
|
2703
|
-
}, F = (
|
|
2704
|
-
_(
|
|
2703
|
+
}, F = (J) => {
|
|
2704
|
+
_(J);
|
|
2705
2705
|
};
|
|
2706
2706
|
return /* @__PURE__ */ l(N, { className: "mx-cmn-date-range-selector", m: 4, children: [
|
|
2707
2707
|
/* @__PURE__ */ t(
|
|
@@ -2800,10 +2800,10 @@ const sl = ({
|
|
|
2800
2800
|
exclusive: !0,
|
|
2801
2801
|
orientation: "horizontal",
|
|
2802
2802
|
value: D,
|
|
2803
|
-
children: O.buttons.map((
|
|
2803
|
+
children: O.buttons.map((J) => /* @__PURE__ */ t(
|
|
2804
2804
|
na,
|
|
2805
2805
|
{
|
|
2806
|
-
onClick: () => F(
|
|
2806
|
+
onClick: () => F(J.value),
|
|
2807
2807
|
sx: {
|
|
2808
2808
|
fontSize: 15,
|
|
2809
2809
|
fontWeight: 600,
|
|
@@ -2827,10 +2827,10 @@ const sl = ({
|
|
|
2827
2827
|
color: s.palette.grey[500]
|
|
2828
2828
|
}
|
|
2829
2829
|
},
|
|
2830
|
-
value:
|
|
2831
|
-
children:
|
|
2830
|
+
value: J.value,
|
|
2831
|
+
children: J.label
|
|
2832
2832
|
},
|
|
2833
|
-
|
|
2833
|
+
J.label
|
|
2834
2834
|
))
|
|
2835
2835
|
}
|
|
2836
2836
|
),
|
|
@@ -2838,18 +2838,18 @@ const sl = ({
|
|
|
2838
2838
|
MA,
|
|
2839
2839
|
{
|
|
2840
2840
|
indicatorColor: "primary",
|
|
2841
|
-
onChange: (
|
|
2841
|
+
onChange: (J, ae) => F(ae),
|
|
2842
2842
|
textColor: "primary",
|
|
2843
2843
|
value: D,
|
|
2844
2844
|
variant: "fullWidth",
|
|
2845
|
-
children: O.tabs.map((
|
|
2845
|
+
children: O.tabs.map((J) => /* @__PURE__ */ t(
|
|
2846
2846
|
Ke,
|
|
2847
2847
|
{
|
|
2848
|
-
label: /* @__PURE__ */ t(f, { bold: !0, variant: "Body", children:
|
|
2848
|
+
label: /* @__PURE__ */ t(f, { bold: !0, variant: "Body", children: J.label }),
|
|
2849
2849
|
sx: { minWidth: 80 },
|
|
2850
|
-
value:
|
|
2850
|
+
value: J.value
|
|
2851
2851
|
},
|
|
2852
|
-
|
|
2852
|
+
J.label
|
|
2853
2853
|
))
|
|
2854
2854
|
}
|
|
2855
2855
|
)
|
|
@@ -2872,8 +2872,8 @@ const sl = ({
|
|
|
2872
2872
|
{
|
|
2873
2873
|
copy: n.dateRangePickerCopy,
|
|
2874
2874
|
dateRange: v,
|
|
2875
|
-
onRangeChanged: (
|
|
2876
|
-
y(
|
|
2875
|
+
onRangeChanged: (J, ae) => {
|
|
2876
|
+
y(J), C(ae);
|
|
2877
2877
|
},
|
|
2878
2878
|
selectedShortcut: p,
|
|
2879
2879
|
sx: { p: 16 }
|
|
@@ -2899,8 +2899,8 @@ const sl = ({
|
|
|
2899
2899
|
{
|
|
2900
2900
|
copy: n.dateRangePickerCopy,
|
|
2901
2901
|
dateRange: v,
|
|
2902
|
-
onRangeChanged: (
|
|
2903
|
-
y(
|
|
2902
|
+
onRangeChanged: (J, ae) => {
|
|
2903
|
+
y(J), C(ae);
|
|
2904
2904
|
},
|
|
2905
2905
|
selectedShortcut: p,
|
|
2906
2906
|
sx: {
|
|
@@ -3136,7 +3136,7 @@ const ut = ({
|
|
|
3136
3136
|
dateRangeEditTitle: O.date_range_picker.edit_title,
|
|
3137
3137
|
dateRangeNextAria: O.date_range_picker.next_aria,
|
|
3138
3138
|
dateRangePreviousAria: O.date_range_picker.previous_aria
|
|
3139
|
-
}, F = r ? r.start : x.start,
|
|
3139
|
+
}, F = r ? r.start : x.start, J = r ? r.end : x.end;
|
|
3140
3140
|
return /* @__PURE__ */ l(
|
|
3141
3141
|
fA,
|
|
3142
3142
|
{
|
|
@@ -3163,7 +3163,7 @@ const ut = ({
|
|
|
3163
3163
|
{
|
|
3164
3164
|
calendarActions: n,
|
|
3165
3165
|
copy: q,
|
|
3166
|
-
range: [F,
|
|
3166
|
+
range: [F, J],
|
|
3167
3167
|
shouldShrinkToIcon: !1,
|
|
3168
3168
|
variant: i
|
|
3169
3169
|
}
|
|
@@ -3230,7 +3230,7 @@ const ut = ({
|
|
|
3230
3230
|
{
|
|
3231
3231
|
calendarActions: n,
|
|
3232
3232
|
copy: q,
|
|
3233
|
-
range: [F,
|
|
3233
|
+
range: [F, J],
|
|
3234
3234
|
shouldShrinkToIcon: !1,
|
|
3235
3235
|
variant: i
|
|
3236
3236
|
}
|
|
@@ -4556,7 +4556,7 @@ const Wl = [
|
|
|
4556
4556
|
const n = e.toLowerCase().split(" "), a = A?.toString().toLowerCase() ?? "";
|
|
4557
4557
|
return n.every((r) => a.indexOf(r) > -1);
|
|
4558
4558
|
};
|
|
4559
|
-
var Ne = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Ne || {}), He = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(He || {}), Ad = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(Ad || {}), td = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(td || {}), nd = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(nd || {}),
|
|
4559
|
+
var Ne = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Ne || {}), He = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(He || {}), Ad = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(Ad || {}), td = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(td || {}), nd = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(nd || {}), V = /* @__PURE__ */ ((e) => (e[e.DEBT_TRACK = 1] = "DEBT_TRACK", e[e.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", e[e.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", e[e.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", e))(V || {}), Zn = /* @__PURE__ */ ((e) => (e[e.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", e[e.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", e[e.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", e[e.ACTION = 4] = "ACTION", e))(Zn || {}), eA = /* @__PURE__ */ ((e) => (e[e.AUTOMOBILE = 1] = "AUTOMOBILE", e[e.COLLEGE = 2] = "COLLEGE", e[e.HOUSE = 3] = "HOUSE", e[e.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", e[e.VACATION = 5] = "VACATION", e[e.ELECTRONIC = 6] = "ELECTRONIC", e[e.OTHER = 7] = "OTHER", e[e.RETIREMENT = 8] = "RETIREMENT", e[e.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", e[e.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", e[e.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", e[e.CREDIT_CARD = 12] = "CREDIT_CARD", e[e.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", e[e.LOANS = 14] = "LOANS", e))(eA || {}), AA = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(AA || {}), ya = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(ya || {}), ad = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(ad || {});
|
|
4560
4560
|
const Ki = {
|
|
4561
4561
|
account_guid: "",
|
|
4562
4562
|
amount: 0,
|
|
@@ -6239,16 +6239,16 @@ const Fi = ({ transaction: e }) => {
|
|
|
6239
6239
|
}, S = (K, q) => {
|
|
6240
6240
|
const F = [...C];
|
|
6241
6241
|
F[K].amount = q, F[0].amount = e.amount - F.reduce(
|
|
6242
|
-
(
|
|
6242
|
+
(J, ae, oe) => J + (oe !== 0 ? ae.amount : 0),
|
|
6243
6243
|
0
|
|
6244
6244
|
), v(F);
|
|
6245
6245
|
}, w = (K, q) => {
|
|
6246
|
-
const F = [...C],
|
|
6247
|
-
|
|
6246
|
+
const F = [...C], J = s.find((ae) => ae.guid === q);
|
|
6247
|
+
J && (F[K] = {
|
|
6248
6248
|
...F[K],
|
|
6249
6249
|
category_guid: q,
|
|
6250
|
-
category:
|
|
6251
|
-
top_level_category_guid:
|
|
6250
|
+
category: J.name,
|
|
6251
|
+
top_level_category_guid: J.parent_guid || q
|
|
6252
6252
|
}, v(F));
|
|
6253
6253
|
}, x = () => {
|
|
6254
6254
|
if (e.parent_guid || e.has_been_split) {
|
|
@@ -6913,14 +6913,14 @@ const Fi = ({ transaction: e }) => {
|
|
|
6913
6913
|
isInitialized: K,
|
|
6914
6914
|
selectedAccountGuids: q,
|
|
6915
6915
|
selectedAccounts: F,
|
|
6916
|
-
setDisplayedDate:
|
|
6916
|
+
setDisplayedDate: J,
|
|
6917
6917
|
setSelectedAccounts: ae
|
|
6918
6918
|
} = ve(), [oe, ge] = g.useState(""), [ce, be] = g.useState(""), [iA, DA] = g.useState(!1), [rt, we] = g.useState(!1), [Je, BA] = g.useState(!1);
|
|
6919
6919
|
g.useEffect(() => {
|
|
6920
6920
|
ae(r);
|
|
6921
6921
|
}, [r]), g.useEffect(() => {
|
|
6922
6922
|
const ze = De(se()), Ba = Re(se());
|
|
6923
|
-
|
|
6923
|
+
J(ze, Ba), y({
|
|
6924
6924
|
dateRange: { start: ze, end: Ba },
|
|
6925
6925
|
accounts: F.map((Ro) => Ro.guid)
|
|
6926
6926
|
}), BA(!0), O(G.TRANSACTIONS_VIEW);
|
|
@@ -6937,7 +6937,7 @@ const Fi = ({ transaction: e }) => {
|
|
|
6937
6937
|
() => r.filter((ze) => ze.is_manual),
|
|
6938
6938
|
[r]
|
|
6939
6939
|
), W = ce ? S.find((ze) => ze.guid === ce) : void 0, ye = c && !!s.payee && !!s.account_guid && !!s.category_guid, Me = (ze) => {
|
|
6940
|
-
|
|
6940
|
+
J(ze[0], ze[1]);
|
|
6941
6941
|
}, zA = (ze) => {
|
|
6942
6942
|
d(ze), y({
|
|
6943
6943
|
...C,
|
|
@@ -9416,7 +9416,7 @@ const yh = ({ activity: e }) => /* @__PURE__ */ l(U, { children: [
|
|
|
9416
9416
|
const { addCashflowEvent: e, addCashflowSequence: A, cashflowSequences: n } = ke(), { cashflow: a, common: r } = I(), { completeOnboarding: i } = fa(), { isDirty: o } = St(), { isMobile: s } = Pe(), { setDisplayedDate: c } = ve(), { filter: u, setFilter: d, transactions: h } = me(), m = Ce(), [p, C] = EA(!0), [v, y] = g.useState(X.EveryMonth), [L, S] = EA(!1), [w, x] = g.useState(null), [D, _] = EA(1), [O, z] = EA([]), [K, q] = EA(""), F = g.useMemo(
|
|
9417
9417
|
() => h.find((ce) => ce.guid === K),
|
|
9418
9418
|
[K]
|
|
9419
|
-
),
|
|
9419
|
+
), J = !!n.length, ae = async () => {
|
|
9420
9420
|
_(2), c(
|
|
9421
9421
|
// Beginning of the month, 90 days before today
|
|
9422
9422
|
De(IA(se(), 90)),
|
|
@@ -9513,7 +9513,7 @@ const yh = ({ activity: e }) => /* @__PURE__ */ l(U, { children: [
|
|
|
9513
9513
|
}
|
|
9514
9514
|
}
|
|
9515
9515
|
),
|
|
9516
|
-
!
|
|
9516
|
+
!J && o && /* @__PURE__ */ t(Ie, { color: "error", mt: 16, children: a.confirm_error }),
|
|
9517
9517
|
F && /* @__PURE__ */ l(U, { children: [
|
|
9518
9518
|
/* @__PURE__ */ t(
|
|
9519
9519
|
$i,
|
|
@@ -11340,7 +11340,7 @@ function kg(e, A) {
|
|
|
11340
11340
|
let n = A.current_amount / A.amount;
|
|
11341
11341
|
n > 1 && (n = 1);
|
|
11342
11342
|
let a = "chart.chart1", r = "common.black";
|
|
11343
|
-
A.track_type ===
|
|
11343
|
+
A.track_type === V.DEBT_TRACK ? (r = "common.white", a = "chart.chart5") : A.track_type === V.RETIREMENT_TRACK && (a = "chart.chart6");
|
|
11344
11344
|
const i = {
|
|
11345
11345
|
style: "percent",
|
|
11346
11346
|
minimumFractionDigits: 0,
|
|
@@ -11393,7 +11393,7 @@ function Gg(e) {
|
|
|
11393
11393
|
},
|
|
11394
11394
|
{ icon: "payments", label: e.saving_goal_other, metaType: eA.OTHER }
|
|
11395
11395
|
],
|
|
11396
|
-
type:
|
|
11396
|
+
type: V.SAVINGS_TRACK
|
|
11397
11397
|
},
|
|
11398
11398
|
{
|
|
11399
11399
|
bgcolor: "chart.chart5",
|
|
@@ -11401,7 +11401,7 @@ function Gg(e) {
|
|
|
11401
11401
|
label: e.debt_goal_label,
|
|
11402
11402
|
description: e.debt_goal_description,
|
|
11403
11403
|
subTypes: [],
|
|
11404
|
-
type:
|
|
11404
|
+
type: V.DEBT_TRACK
|
|
11405
11405
|
},
|
|
11406
11406
|
{
|
|
11407
11407
|
bgcolor: "chart.chart6",
|
|
@@ -11409,7 +11409,7 @@ function Gg(e) {
|
|
|
11409
11409
|
label: e.retirement_goal_label,
|
|
11410
11410
|
description: e.retirement_goal_description,
|
|
11411
11411
|
subTypes: [],
|
|
11412
|
-
type:
|
|
11412
|
+
type: V.RETIREMENT_TRACK
|
|
11413
11413
|
}
|
|
11414
11414
|
];
|
|
11415
11415
|
}
|
|
@@ -11421,27 +11421,27 @@ const ho = T(
|
|
|
11421
11421
|
percentage: o,
|
|
11422
11422
|
percentageText: s,
|
|
11423
11423
|
projectedText: c
|
|
11424
|
-
} = kg(a, e), u = [
|
|
11424
|
+
} = kg(a, e), u = e.track_type === V.DEBT_TRACK ? e.initial_amount : e.amount, d = [
|
|
11425
11425
|
{
|
|
11426
11426
|
color: r,
|
|
11427
11427
|
percentage: `${o}`
|
|
11428
11428
|
}
|
|
11429
11429
|
];
|
|
11430
|
-
let
|
|
11431
|
-
return e.track_type ===
|
|
11430
|
+
let h = /* @__PURE__ */ t(Ts, {});
|
|
11431
|
+
return e.track_type === V.DEBT_TRACK ? h = /* @__PURE__ */ t(Is, {}) : e.track_type === V.RETIREMENT_TRACK && (h = /* @__PURE__ */ t(Ls, {})), /* @__PURE__ */ t(fA, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ l(hi, { disabled: !n, onClick: n, children: [
|
|
11432
11432
|
/* @__PURE__ */ t(
|
|
11433
11433
|
UA,
|
|
11434
11434
|
{
|
|
11435
|
-
avatar: /* @__PURE__ */ t(vA, { sx: { bgcolor: r, color: i, height: 48, width: 48 }, variant: "rounded", children:
|
|
11435
|
+
avatar: /* @__PURE__ */ t(vA, { sx: { bgcolor: r, color: i, height: 48, width: 48 }, variant: "rounded", children: h }),
|
|
11436
11436
|
subheader: /* @__PURE__ */ t(f, { variant: A ? "H3" : "H2", children: `
|
|
11437
11437
|
${H(e.current_amount, "0,0.00")}/
|
|
11438
|
-
${H(
|
|
11438
|
+
${H(u, "0,0.00")}
|
|
11439
11439
|
` }),
|
|
11440
11440
|
title: /* @__PURE__ */ t(ct, { color: "text.secondary", fontWeight: 400, variant: "Body", children: e.name })
|
|
11441
11441
|
}
|
|
11442
11442
|
),
|
|
11443
11443
|
/* @__PURE__ */ t(LA, { sx: { pt: 0 }, children: /* @__PURE__ */ l(E, { gap: 6, children: [
|
|
11444
|
-
/* @__PURE__ */ t(Gt, { data:
|
|
11444
|
+
/* @__PURE__ */ t(Gt, { data: d, height: 24 }),
|
|
11445
11445
|
/* @__PURE__ */ l(E, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
11446
11446
|
/* @__PURE__ */ t(f, { color: "text.secondary", variant: "XSmall", children: s }),
|
|
11447
11447
|
e.projected_to_complete_at && /* @__PURE__ */ t(f, { color: "text.secondary", variant: "XSmall", children: c })
|
|
@@ -11452,11 +11452,11 @@ const ho = T(
|
|
|
11452
11452
|
), Fg = T(({ trackType: e }) => {
|
|
11453
11453
|
const { goals: A } = I(), { setAlert: n, monthlyCashFlowProfile: a, updateMonthlyCashFlowProfile: r } = Ue(), i = g.useMemo(() => {
|
|
11454
11454
|
let u = 0;
|
|
11455
|
-
return e ===
|
|
11455
|
+
return e === V.SAVINGS_TRACK ? u = a?.amount_allocated_for_savings_goals || 0 : e === V.DEBT_TRACK ? u = a?.amount_allocated_for_debt_goals || 0 : e === V.RETIREMENT_TRACK && (u = a?.amount_allocated_for_retirement_goals || 0), u;
|
|
11456
11456
|
}, [a]), [o, s] = g.useState(i), c = async () => {
|
|
11457
11457
|
if (a) {
|
|
11458
11458
|
const u = { ...a };
|
|
11459
|
-
e ===
|
|
11459
|
+
e === V.SAVINGS_TRACK ? u.amount_allocated_for_savings_goals = o : e === V.DEBT_TRACK ? u.amount_allocated_for_debt_goals = o : e === V.RETIREMENT_TRACK && (u.amount_allocated_for_retirement_goals = o), await r(u), n(A.alert_contribution_updated);
|
|
11460
11460
|
}
|
|
11461
11461
|
};
|
|
11462
11462
|
return /* @__PURE__ */ t(E, { bgcolor: "background.paper", children: /* @__PURE__ */ t(
|
|
@@ -11581,7 +11581,7 @@ const ho = T(
|
|
|
11581
11581
|
}, jg = ({ goal: e, index: A }) => {
|
|
11582
11582
|
const { goals: n } = I();
|
|
11583
11583
|
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ne, { children: [
|
|
11584
|
-
e.track_type !==
|
|
11584
|
+
e.track_type !== V.RETIREMENT_TRACK && /* @__PURE__ */ t(
|
|
11585
11585
|
Ee,
|
|
11586
11586
|
{
|
|
11587
11587
|
sx: {
|
|
@@ -11628,7 +11628,7 @@ const ho = T(
|
|
|
11628
11628
|
}, Wg = ({ trackType: e }) => {
|
|
11629
11629
|
const { goals: A, common: n } = I(), { orderedGoals: a } = Ue(), r = a.filter((p) => p.track_type === e), i = r.filter((p) => !p.is_complete), o = r.filter((p) => p.is_complete), [s, c] = g.useState(!1);
|
|
11630
11630
|
let u = A.manage_saving_goals, d = A.manage_saving_drawer_title, h = A.manage_saving_title, m = A.manage_saving_description;
|
|
11631
|
-
return e ===
|
|
11631
|
+
return e === V.DEBT_TRACK ? (u = A.manage_debt_goals, d = A.manage_debt_drawer_title, h = A.manage_debt_title, m = A.manage_debt_description) : e === V.RETIREMENT_TRACK && (u = A.manage_retirement_goals, d = A.manage_retirement_drawer_title, h = A.manage_retirement_title, m = A.manage_retirement_description), /* @__PURE__ */ l(E, { children: [
|
|
11632
11632
|
/* @__PURE__ */ t(ie, { endIcon: /* @__PURE__ */ t(wA, {}), onClick: () => c(!0), children: u }),
|
|
11633
11633
|
/* @__PURE__ */ t(
|
|
11634
11634
|
re,
|
|
@@ -11646,10 +11646,10 @@ const ho = T(
|
|
|
11646
11646
|
/* @__PURE__ */ t(f, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "XSmall", children: A.goal_priority }),
|
|
11647
11647
|
/* @__PURE__ */ l(ee, { sx: { bgcolor: "background.paper" }, children: [
|
|
11648
11648
|
i.map((p, C) => /* @__PURE__ */ t(jg, { goal: p, index: C }, `ongoing-${p.guid}`)),
|
|
11649
|
-
/* @__PURE__ */ t(R, { variant: e !==
|
|
11650
|
-
e !==
|
|
11649
|
+
/* @__PURE__ */ t(R, { variant: e !== V.RETIREMENT_TRACK ? "inset" : "fullWidth" }),
|
|
11650
|
+
e !== V.RETIREMENT_TRACK && /* @__PURE__ */ t(Xg, { goals: i })
|
|
11651
11651
|
] }),
|
|
11652
|
-
e !==
|
|
11652
|
+
e !== V.RETIREMENT_TRACK && /* @__PURE__ */ l(E, { children: [
|
|
11653
11653
|
/* @__PURE__ */ t(f, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "XSmall", children: A.complete_title }),
|
|
11654
11654
|
/* @__PURE__ */ t(ee, { sx: { bgcolor: "background.paper" }, children: o.map((p) => /* @__PURE__ */ t(Ug, { goal: p }, `complete-${p.guid}`)) })
|
|
11655
11655
|
] })
|
|
@@ -11658,7 +11658,7 @@ const ho = T(
|
|
|
11658
11658
|
)
|
|
11659
11659
|
] });
|
|
11660
11660
|
}, Kn = T(({ trackType: e }) => {
|
|
11661
|
-
const { isMobile: A } = Pe(), { goals: n } = I(), { orderedGoals: a, setSelectedGoal: r } = Ue(), i = a.filter((u) => u.track_type === e), o = i.filter((u) => !u.has_been_spent), s = i.filter((u) => u.has_been_spent), c = e ===
|
|
11661
|
+
const { isMobile: A } = Pe(), { goals: n } = I(), { orderedGoals: a, setSelectedGoal: r } = Ue(), i = a.filter((u) => u.track_type === e), o = i.filter((u) => !u.has_been_spent), s = i.filter((u) => u.has_been_spent), c = e === V.DEBT_TRACK ? n.zero_state_complete_debt : n.zero_state_complete_savings;
|
|
11662
11662
|
return /* @__PURE__ */ l(E, { mt: 16, mx: A ? 24 : 0, children: [
|
|
11663
11663
|
/* @__PURE__ */ l(E, { alignItems: "center", direction: "row", justifyContent: "space-between", mb: 8, children: [
|
|
11664
11664
|
/* @__PURE__ */ t(f, { color: "text.secondary", variant: "Small", children: n.ongoing_title }),
|
|
@@ -11668,7 +11668,7 @@ const ho = T(
|
|
|
11668
11668
|
// Goal should be full width in mobile or if it's the first goal (unless there are 2)
|
|
11669
11669
|
/* @__PURE__ */ t(XA, { xs: A || d === 0 && h.length !== 2 ? 12 : 6, children: /* @__PURE__ */ t(ho, { goal: u, onClick: () => r(u) }, u.guid) }, d)
|
|
11670
11670
|
)) }),
|
|
11671
|
-
e !==
|
|
11671
|
+
e !== V.RETIREMENT_TRACK && /* @__PURE__ */ l(E, { gap: 16, mt: 48, children: [
|
|
11672
11672
|
/* @__PURE__ */ t(f, { color: "text.secondary", variant: "Small", children: n.complete_title }),
|
|
11673
11673
|
s.length === 0 && /* @__PURE__ */ t(E, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ t(f, { variant: "Small", children: c }) }),
|
|
11674
11674
|
s.map((u) => /* @__PURE__ */ t(fA, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ t(hi, { onClick: () => r(u), children: /* @__PURE__ */ t(LA, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ l(E, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
@@ -11687,8 +11687,8 @@ const ho = T(
|
|
|
11687
11687
|
ne,
|
|
11688
11688
|
{
|
|
11689
11689
|
onClick: h ? () => d(!u) : () => A(
|
|
11690
|
-
c ===
|
|
11691
|
-
c ===
|
|
11690
|
+
c === V.RETIREMENT_TRACK ? n.retirement : "",
|
|
11691
|
+
c === V.RETIREMENT_TRACK ? eA.RETIREMENT : eA.OTHER,
|
|
11692
11692
|
c
|
|
11693
11693
|
),
|
|
11694
11694
|
children: [
|
|
@@ -11799,7 +11799,7 @@ const ho = T(
|
|
|
11799
11799
|
);
|
|
11800
11800
|
}, Yg = ({ onClose: e }) => {
|
|
11801
11801
|
const { goals: A } = I(), { addGoal: n, debtGoals: a, setAlert: r, setSelectedGoal: i } = Ue(), { debtAccounts: o } = fe(), [s, c] = g.useState(!1), u = Gg(A), d = (m, p, C) => {
|
|
11802
|
-
C ===
|
|
11802
|
+
C === V.DEBT_TRACK ? c(!0) : i({
|
|
11803
11803
|
amount: 0,
|
|
11804
11804
|
current_amount: 0,
|
|
11805
11805
|
goal_type: Zn.SAVE_AMOUNT,
|
|
@@ -11821,10 +11821,10 @@ const ho = T(
|
|
|
11821
11821
|
meta_type: C,
|
|
11822
11822
|
monthly_payment: p.minimum_payment || 0,
|
|
11823
11823
|
name: p.name || p.feed_name || "",
|
|
11824
|
-
track_type:
|
|
11824
|
+
track_type: V.DEBT_TRACK
|
|
11825
11825
|
}), r(A.alert_goal_added);
|
|
11826
11826
|
}
|
|
11827
|
-
c(!1), e?.(
|
|
11827
|
+
c(!1), e?.(V.DEBT_TRACK);
|
|
11828
11828
|
};
|
|
11829
11829
|
return /* @__PURE__ */ l(E, { children: [
|
|
11830
11830
|
/* @__PURE__ */ t(ee, { sx: { bgcolor: "background.paper" }, children: u.map((m, p) => /* @__PURE__ */ t(Qg, { goalType: m, onClick: d }, p)) }),
|
|
@@ -12103,7 +12103,7 @@ const ho = T(
|
|
|
12103
12103
|
[n, e]
|
|
12104
12104
|
), r = e.track_type;
|
|
12105
12105
|
let i = A.details_save_title;
|
|
12106
|
-
return e.track_type ===
|
|
12106
|
+
return e.track_type === V.DEBT_TRACK ? i = A.details_debt_title : e.track_type === V.RETIREMENT_TRACK && (i = A.details_retirement_title), /* @__PURE__ */ l(E, { children: [
|
|
12107
12107
|
/* @__PURE__ */ l(E, { mx: 24, children: [
|
|
12108
12108
|
/* @__PURE__ */ t(f, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "XSmall", children: i }),
|
|
12109
12109
|
/* @__PURE__ */ t(ho, { goal: e, isInDrawer: !0 }),
|
|
@@ -12112,11 +12112,11 @@ const ho = T(
|
|
|
12112
12112
|
/* @__PURE__ */ l(ee, { sx: { bgcolor: "background.paper" }, children: [
|
|
12113
12113
|
/* @__PURE__ */ t(Zg, { goal: e }),
|
|
12114
12114
|
/* @__PURE__ */ t(R, { variant: "inset" }),
|
|
12115
|
-
(r ===
|
|
12115
|
+
(r === V.SAVINGS_TRACK || r === V.RETIREMENT_TRACK) && /* @__PURE__ */ l(U, { children: [
|
|
12116
12116
|
/* @__PURE__ */ t(Vg, { goal: e }),
|
|
12117
|
-
/* @__PURE__ */ t(R, { variant: r ===
|
|
12117
|
+
/* @__PURE__ */ t(R, { variant: r === V.RETIREMENT_TRACK ? "inset" : "fullWidth" })
|
|
12118
12118
|
] }),
|
|
12119
|
-
e.track_type ===
|
|
12119
|
+
e.track_type === V.DEBT_TRACK && /* @__PURE__ */ l(U, { children: [
|
|
12120
12120
|
/* @__PURE__ */ t(lo, { goal: e }),
|
|
12121
12121
|
/* @__PURE__ */ t(R, { variant: "inset" }),
|
|
12122
12122
|
/* @__PURE__ */ t(co, { goal: e }),
|
|
@@ -12124,23 +12124,23 @@ const ho = T(
|
|
|
12124
12124
|
/* @__PURE__ */ t(uo, { goal: e }),
|
|
12125
12125
|
/* @__PURE__ */ t(R, { variant: "fullWidth" })
|
|
12126
12126
|
] }),
|
|
12127
|
-
e.track_type ===
|
|
12127
|
+
e.track_type === V.RETIREMENT_TRACK && /* @__PURE__ */ l(U, { children: [
|
|
12128
12128
|
/* @__PURE__ */ t($g, { goal: e }),
|
|
12129
12129
|
/* @__PURE__ */ t(R, { variant: "inset" }),
|
|
12130
12130
|
/* @__PURE__ */ t(e1, { goal: e }),
|
|
12131
12131
|
/* @__PURE__ */ t(R, { variant: "fullWidth" })
|
|
12132
12132
|
] })
|
|
12133
12133
|
] }),
|
|
12134
|
-
/* @__PURE__ */ t(f, { color: "text.secondary", sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: e.track_type ===
|
|
12134
|
+
/* @__PURE__ */ t(f, { color: "text.secondary", sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: e.track_type === V.RETIREMENT_TRACK ? A.details_accounts : A.details_account }),
|
|
12135
12135
|
a && /* @__PURE__ */ l(U, { children: [
|
|
12136
12136
|
/* @__PURE__ */ t(mo, { account: a }),
|
|
12137
12137
|
/* @__PURE__ */ t(R, {})
|
|
12138
12138
|
] }),
|
|
12139
|
-
e.track_type ===
|
|
12139
|
+
e.track_type === V.RETIREMENT_TRACK && /* @__PURE__ */ l(U, { children: [
|
|
12140
12140
|
/* @__PURE__ */ t(A1, { goal: e }),
|
|
12141
12141
|
/* @__PURE__ */ t(R, {})
|
|
12142
12142
|
] }),
|
|
12143
|
-
e.track_type ===
|
|
12143
|
+
e.track_type === V.SAVINGS_TRACK && !e.is_complete && /* @__PURE__ */ t(Jg, { goal: e })
|
|
12144
12144
|
] });
|
|
12145
12145
|
}), n1 = T(({ onClose: e }) => {
|
|
12146
12146
|
const { goals: A, common: n } = I(), {
|
|
@@ -12152,16 +12152,16 @@ const ho = T(
|
|
|
12152
12152
|
setAlert: c,
|
|
12153
12153
|
setSelectedGoal: u,
|
|
12154
12154
|
updateGoal: d
|
|
12155
|
-
} = Ue(), { user: h } = wt(), [m, p] = g.useState(!1), C = !s?.guid, v = s?.track_type ===
|
|
12155
|
+
} = Ue(), { user: h } = wt(), [m, p] = g.useState(!1), C = !s?.guid, v = s?.track_type === V.SAVINGS_TRACK && s.is_complete, y = g.useMemo(() => s ? s.track_type === V.SAVINGS_TRACK ? !!s.name && !!s.amount : s.track_type === V.DEBT_TRACK ? !0 : s.track_type === V.RETIREMENT_TRACK ? !!s.name && !!s.amount && !!s.retirement_age && !!h.birthday : !0 : !1, [s]);
|
|
12156
12156
|
let L = n.delete_button, S = () => p(!0);
|
|
12157
12157
|
C ? (S = () => w(), L = n.save_button) : v && (S = () => D(), L = A.mark_as_complete_button);
|
|
12158
12158
|
const w = async () => {
|
|
12159
12159
|
if (s) {
|
|
12160
12160
|
const _ = s.track_type;
|
|
12161
|
-
_ !==
|
|
12161
|
+
_ !== V.RETIREMENT_TRACK ? await a(s) : _ === V.RETIREMENT_TRACK && await r({ ...s, target_amount: s.amount }), c(A.alert_goal_added), u(void 0), _ && e?.(_);
|
|
12162
12162
|
}
|
|
12163
12163
|
}, x = async () => {
|
|
12164
|
-
s && (s.track_type !==
|
|
12164
|
+
s && (s.track_type !== V.RETIREMENT_TRACK ? await i(s.guid) : s.track_type === V.RETIREMENT_TRACK && await o(s), c(A.alert_goal_deleted), u(void 0));
|
|
12165
12165
|
}, D = async () => {
|
|
12166
12166
|
const _ = {
|
|
12167
12167
|
...s,
|
|
@@ -12220,7 +12220,7 @@ const ho = T(
|
|
|
12220
12220
|
}, z = () => {
|
|
12221
12221
|
y(!0), n(G.GOALS_CLICK_ADD);
|
|
12222
12222
|
}, K = (q) => {
|
|
12223
|
-
y(!1), q ===
|
|
12223
|
+
y(!1), q === V.SAVINGS_TRACK ? C(0) : q === V.DEBT_TRACK ? C(1) : q === V.RETIREMENT_TRACK && C(2);
|
|
12224
12224
|
};
|
|
12225
12225
|
return /* @__PURE__ */ l(
|
|
12226
12226
|
CA,
|
|
@@ -12259,9 +12259,9 @@ const ho = T(
|
|
|
12259
12259
|
]
|
|
12260
12260
|
}
|
|
12261
12261
|
),
|
|
12262
|
-
p === 0 && /* @__PURE__ */ t(Kn, { trackType:
|
|
12263
|
-
p === 1 && /* @__PURE__ */ t(Kn, { trackType:
|
|
12264
|
-
p === 2 && /* @__PURE__ */ t(Kn, { trackType:
|
|
12262
|
+
p === 0 && /* @__PURE__ */ t(Kn, { trackType: V.SAVINGS_TRACK }),
|
|
12263
|
+
p === 1 && /* @__PURE__ */ t(Kn, { trackType: V.DEBT_TRACK }),
|
|
12264
|
+
p === 2 && /* @__PURE__ */ t(Kn, { trackType: V.RETIREMENT_TRACK })
|
|
12265
12265
|
] }),
|
|
12266
12266
|
/* @__PURE__ */ t(n1, { onClose: K }),
|
|
12267
12267
|
/* @__PURE__ */ t(
|
|
@@ -12307,13 +12307,13 @@ class a1 {
|
|
|
12307
12307
|
return this.goals.slice().sort((A, n) => A.position - n.position);
|
|
12308
12308
|
}
|
|
12309
12309
|
get debtGoals() {
|
|
12310
|
-
return this.orderedGoals.filter((A) => A.track_type ===
|
|
12310
|
+
return this.orderedGoals.filter((A) => A.track_type === V.DEBT_TRACK);
|
|
12311
12311
|
}
|
|
12312
12312
|
get retirmentGoals() {
|
|
12313
|
-
return this.orderedGoals.filter((A) => A.track_type ===
|
|
12313
|
+
return this.orderedGoals.filter((A) => A.track_type === V.RETIREMENT_TRACK);
|
|
12314
12314
|
}
|
|
12315
12315
|
get savingGoals() {
|
|
12316
|
-
return this.orderedGoals.filter((A) => A.track_type ===
|
|
12316
|
+
return this.orderedGoals.filter((A) => A.track_type === V.SAVINGS_TRACK);
|
|
12317
12317
|
}
|
|
12318
12318
|
addGoal = async (A) => {
|
|
12319
12319
|
try {
|
|
@@ -12358,7 +12358,7 @@ class a1 {
|
|
|
12358
12358
|
...s,
|
|
12359
12359
|
amount: s.target_amount,
|
|
12360
12360
|
name: A.retirement,
|
|
12361
|
-
track_type:
|
|
12361
|
+
track_type: V.RETIREMENT_TRACK
|
|
12362
12362
|
}))
|
|
12363
12363
|
];
|
|
12364
12364
|
Q(() => {
|
|
@@ -13320,7 +13320,7 @@ const b1 = ({
|
|
|
13320
13320
|
C(be), ce.currentTarget instanceof HTMLDivElement && _(!0);
|
|
13321
13321
|
}, F = (ce) => {
|
|
13322
13322
|
p(ce);
|
|
13323
|
-
},
|
|
13323
|
+
}, J = () => {
|
|
13324
13324
|
p(null);
|
|
13325
13325
|
}, ae = () => {
|
|
13326
13326
|
y(G.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), z(!0);
|
|
@@ -13333,7 +13333,7 @@ const b1 = ({
|
|
|
13333
13333
|
onButtonClick: ae,
|
|
13334
13334
|
onDataClick: q,
|
|
13335
13335
|
onMouseEnter: F,
|
|
13336
|
-
onMouseLeave:
|
|
13336
|
+
onMouseLeave: J,
|
|
13337
13337
|
selectedData: m
|
|
13338
13338
|
};
|
|
13339
13339
|
return L ? /* @__PURE__ */ t(
|
|
@@ -15861,7 +15861,7 @@ const _m = ({
|
|
|
15861
15861
|
a(G.BUDGETS_CLICK_FILTER);
|
|
15862
15862
|
}, F = () => {
|
|
15863
15863
|
z(!0), a(G.BUDGETS_CLICK_ADD);
|
|
15864
|
-
},
|
|
15864
|
+
}, J = () => {
|
|
15865
15865
|
z(!1);
|
|
15866
15866
|
}, ae = vt(m.end, De(/* @__PURE__ */ new Date()));
|
|
15867
15867
|
return !s || !D ? /* @__PURE__ */ t(Qe, {}) : /* @__PURE__ */ l(
|
|
@@ -15914,7 +15914,7 @@ const _m = ({
|
|
|
15914
15914
|
isOpen: O,
|
|
15915
15915
|
onClose: () => z(!1),
|
|
15916
15916
|
title: i.add_new_title,
|
|
15917
|
-
children: /* @__PURE__ */ t(Gm, { onRecalculateBudgets:
|
|
15917
|
+
children: /* @__PURE__ */ t(Gm, { onRecalculateBudgets: J })
|
|
15918
15918
|
}
|
|
15919
15919
|
),
|
|
15920
15920
|
/* @__PURE__ */ t(
|
|
@@ -16886,7 +16886,7 @@ const So = ({
|
|
|
16886
16886
|
{
|
|
16887
16887
|
subheader: /* @__PURE__ */ t(Ma, { children: s[q.key] }),
|
|
16888
16888
|
children: q.subcategories.map(
|
|
16889
|
-
(F,
|
|
16889
|
+
(F, J) => F.beats.length > 0 && /* @__PURE__ */ l(N, { children: [
|
|
16890
16890
|
/* @__PURE__ */ t(j, { disablePadding: !0, children: /* @__PURE__ */ l(
|
|
16891
16891
|
ne,
|
|
16892
16892
|
{
|
|
@@ -16913,7 +16913,7 @@ const So = ({
|
|
|
16913
16913
|
/* @__PURE__ */ t(
|
|
16914
16914
|
R,
|
|
16915
16915
|
{
|
|
16916
|
-
sx: { ml:
|
|
16916
|
+
sx: { ml: J < q.subcategories.length - 1 ? 24 : 0 }
|
|
16917
16917
|
}
|
|
16918
16918
|
)
|
|
16919
16919
|
] }, F.key)
|
|
@@ -18274,7 +18274,7 @@ const Qt = g.createContext(null), fp = ({
|
|
|
18274
18274
|
showIcon: s,
|
|
18275
18275
|
variant: u,
|
|
18276
18276
|
widthOverrides: d
|
|
18277
|
-
},
|
|
18277
|
+
}, J = m.current && m.current.offsetWidth ? Math.round(p / m.current.offsetWidth) : 0, ae = m.current ? m.current.scrollWidth - m.current.offsetWidth : 0;
|
|
18278
18278
|
return /* @__PURE__ */ l("div", { className: h, children: [
|
|
18279
18279
|
/* @__PURE__ */ l(
|
|
18280
18280
|
"ul",
|
|
@@ -18296,7 +18296,7 @@ const Qt = g.createContext(null), fp = ({
|
|
|
18296
18296
|
),
|
|
18297
18297
|
beat: oe,
|
|
18298
18298
|
index: ge,
|
|
18299
|
-
isActiveCard: ge ===
|
|
18299
|
+
isActiveCard: ge === J,
|
|
18300
18300
|
onCardClick: r,
|
|
18301
18301
|
posthog: i,
|
|
18302
18302
|
...F
|
|
@@ -18306,7 +18306,7 @@ const Qt = g.createContext(null), fp = ({
|
|
|
18306
18306
|
/* @__PURE__ */ t(
|
|
18307
18307
|
Fp,
|
|
18308
18308
|
{
|
|
18309
|
-
isActiveCard:
|
|
18309
|
+
isActiveCard: J === e.length,
|
|
18310
18310
|
onCardClick: r,
|
|
18311
18311
|
...F
|
|
18312
18312
|
}
|
|
@@ -18318,7 +18318,7 @@ const Qt = g.createContext(null), fp = ({
|
|
|
18318
18318
|
Op,
|
|
18319
18319
|
{
|
|
18320
18320
|
clientColorScheme: A,
|
|
18321
|
-
currentBeatIndex:
|
|
18321
|
+
currentBeatIndex: J,
|
|
18322
18322
|
numBeats: e.length + 1,
|
|
18323
18323
|
onNextClick: D,
|
|
18324
18324
|
onPreviousClick: _,
|
|
@@ -18602,7 +18602,7 @@ const Qt = g.createContext(null), fp = ({
|
|
|
18602
18602
|
showWithMargin: v,
|
|
18603
18603
|
useDarkMode: L,
|
|
18604
18604
|
widthOverrides: x
|
|
18605
|
-
},
|
|
18605
|
+
}, J = {
|
|
18606
18606
|
carouselSize: D,
|
|
18607
18607
|
posthog: d,
|
|
18608
18608
|
variant: w,
|
|
@@ -18642,8 +18642,8 @@ const Qt = g.createContext(null), fp = ({
|
|
|
18642
18642
|
...F
|
|
18643
18643
|
}
|
|
18644
18644
|
),
|
|
18645
|
-
O && !A.length && S && /* @__PURE__ */ t(kp, { clientColorScheme: n, ...
|
|
18646
|
-
O && !A.length && !S && /* @__PURE__ */ t(jp, { ...
|
|
18645
|
+
O && !A.length && S && /* @__PURE__ */ t(kp, { clientColorScheme: n, ...J }),
|
|
18646
|
+
O && !A.length && !S && /* @__PURE__ */ t(jp, { ...J })
|
|
18647
18647
|
]
|
|
18648
18648
|
}
|
|
18649
18649
|
) })
|
|
@@ -19217,7 +19217,7 @@ const Qt = g.createContext(null), fp = ({
|
|
|
19217
19217
|
const q = S.categoryData.find((F) => F.guid === "other");
|
|
19218
19218
|
c({
|
|
19219
19219
|
...K,
|
|
19220
|
-
custom: (F) => !!q?.categoryTotals?.find((
|
|
19220
|
+
custom: (F) => !!q?.categoryTotals?.find((J) => J.guid === F.top_level_category_guid)
|
|
19221
19221
|
});
|
|
19222
19222
|
} else
|
|
19223
19223
|
c({
|
|
@@ -19522,7 +19522,7 @@ const oC = (e) => e.reduce((n, a) => {
|
|
|
19522
19522
|
stackedDatasets: Je.filter(Qh),
|
|
19523
19523
|
unstackedDatasets: Je.filter(xn)
|
|
19524
19524
|
};
|
|
19525
|
-
}, [u, O, K]),
|
|
19525
|
+
}, [u, O, K]), J = g.useMemo(() => {
|
|
19526
19526
|
const we = te(
|
|
19527
19527
|
K.start,
|
|
19528
19528
|
o ? $.MONTH_SHORT_YEAR : $.MONTH_YEAR
|
|
@@ -19593,7 +19593,7 @@ const oC = (e) => e.reduce((n, a) => {
|
|
|
19593
19593
|
children: d(O) || v.sub_title
|
|
19594
19594
|
}
|
|
19595
19595
|
),
|
|
19596
|
-
/* @__PURE__ */ t(f, { variant: r ? "Body" : "Small", children:
|
|
19596
|
+
/* @__PURE__ */ t(f, { variant: r ? "Body" : "Small", children: J })
|
|
19597
19597
|
] }),
|
|
19598
19598
|
/* @__PURE__ */ t(
|
|
19599
19599
|
ri,
|
|
@@ -19864,7 +19864,7 @@ export {
|
|
|
19864
19864
|
k as TRANSACTION_EVENTS,
|
|
19865
19865
|
Et as TabContentContainer,
|
|
19866
19866
|
Nt as TopActions,
|
|
19867
|
-
|
|
19867
|
+
V as TrackType,
|
|
19868
19868
|
Cr as TransactionApi,
|
|
19869
19869
|
Tt as TransactionDetails,
|
|
19870
19870
|
nt as TransactionList,
|