@mx-cartographer/experiences 4.1.4-alpha.bb3 → 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 +98 -101
- 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,
|
|
@@ -11325,10 +11325,7 @@ class Rr {
|
|
|
11325
11325
|
removeGoal = async (A) => this.fetchInstance.delete(`${M.GOALS}/${A}`).then((n) => n);
|
|
11326
11326
|
removeRetirementGoal = async (A) => this.fetchInstance.delete(`${M.RETIREMENT_GOALS}/${A}`).then((n) => n);
|
|
11327
11327
|
removeRetirementGoalAccount = async (A) => this.fetchInstance.delete(`${M.RETIREMENT_GOAL_ACCOUNTS}/${A}`).then((n) => n);
|
|
11328
|
-
reorderGoals = async (A) => {
|
|
11329
|
-
const n = { goals: A };
|
|
11330
|
-
return console.log("Goals: ", A), this.fetchInstance.post(`${M.GOALS}/reposition`, n).then((a) => a.goals);
|
|
11331
|
-
};
|
|
11328
|
+
reorderGoals = async (A) => this.fetchInstance.post(`${M.GOALS}/reposition`, { goals: A }).then((n) => n.goals);
|
|
11332
11329
|
updateGoal = async (A) => this.fetchInstance.put(`${M.GOALS}/${A.guid}`, A).then((n) => n.goal);
|
|
11333
11330
|
updateMonthlyCashFlowProfile = async (A) => this.fetchInstance.put(`${M.MONTHLY_CASH_FLOW_PROFILE}`, A).then((n) => n.monthly_cash_flow_profile);
|
|
11334
11331
|
updateRetirementGoal = async (A) => this.fetchInstance.put(`${M.RETIREMENT_GOALS}/${A.guid}`, A).then((n) => n.retirement_goal);
|
|
@@ -11343,7 +11340,7 @@ function kg(e, A) {
|
|
|
11343
11340
|
let n = A.current_amount / A.amount;
|
|
11344
11341
|
n > 1 && (n = 1);
|
|
11345
11342
|
let a = "chart.chart1", r = "common.black";
|
|
11346
|
-
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");
|
|
11347
11344
|
const i = {
|
|
11348
11345
|
style: "percent",
|
|
11349
11346
|
minimumFractionDigits: 0,
|
|
@@ -11396,7 +11393,7 @@ function Gg(e) {
|
|
|
11396
11393
|
},
|
|
11397
11394
|
{ icon: "payments", label: e.saving_goal_other, metaType: eA.OTHER }
|
|
11398
11395
|
],
|
|
11399
|
-
type:
|
|
11396
|
+
type: V.SAVINGS_TRACK
|
|
11400
11397
|
},
|
|
11401
11398
|
{
|
|
11402
11399
|
bgcolor: "chart.chart5",
|
|
@@ -11404,7 +11401,7 @@ function Gg(e) {
|
|
|
11404
11401
|
label: e.debt_goal_label,
|
|
11405
11402
|
description: e.debt_goal_description,
|
|
11406
11403
|
subTypes: [],
|
|
11407
|
-
type:
|
|
11404
|
+
type: V.DEBT_TRACK
|
|
11408
11405
|
},
|
|
11409
11406
|
{
|
|
11410
11407
|
bgcolor: "chart.chart6",
|
|
@@ -11412,7 +11409,7 @@ function Gg(e) {
|
|
|
11412
11409
|
label: e.retirement_goal_label,
|
|
11413
11410
|
description: e.retirement_goal_description,
|
|
11414
11411
|
subTypes: [],
|
|
11415
|
-
type:
|
|
11412
|
+
type: V.RETIREMENT_TRACK
|
|
11416
11413
|
}
|
|
11417
11414
|
];
|
|
11418
11415
|
}
|
|
@@ -11424,27 +11421,27 @@ const ho = T(
|
|
|
11424
11421
|
percentage: o,
|
|
11425
11422
|
percentageText: s,
|
|
11426
11423
|
projectedText: c
|
|
11427
|
-
} = kg(a, e), u = [
|
|
11424
|
+
} = kg(a, e), u = e.track_type === V.DEBT_TRACK ? e.initial_amount : e.amount, d = [
|
|
11428
11425
|
{
|
|
11429
11426
|
color: r,
|
|
11430
11427
|
percentage: `${o}`
|
|
11431
11428
|
}
|
|
11432
11429
|
];
|
|
11433
|
-
let
|
|
11434
|
-
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: [
|
|
11435
11432
|
/* @__PURE__ */ t(
|
|
11436
11433
|
UA,
|
|
11437
11434
|
{
|
|
11438
|
-
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 }),
|
|
11439
11436
|
subheader: /* @__PURE__ */ t(f, { variant: A ? "H3" : "H2", children: `
|
|
11440
11437
|
${H(e.current_amount, "0,0.00")}/
|
|
11441
|
-
${H(
|
|
11438
|
+
${H(u, "0,0.00")}
|
|
11442
11439
|
` }),
|
|
11443
11440
|
title: /* @__PURE__ */ t(ct, { color: "text.secondary", fontWeight: 400, variant: "Body", children: e.name })
|
|
11444
11441
|
}
|
|
11445
11442
|
),
|
|
11446
11443
|
/* @__PURE__ */ t(LA, { sx: { pt: 0 }, children: /* @__PURE__ */ l(E, { gap: 6, children: [
|
|
11447
|
-
/* @__PURE__ */ t(Gt, { data:
|
|
11444
|
+
/* @__PURE__ */ t(Gt, { data: d, height: 24 }),
|
|
11448
11445
|
/* @__PURE__ */ l(E, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
11449
11446
|
/* @__PURE__ */ t(f, { color: "text.secondary", variant: "XSmall", children: s }),
|
|
11450
11447
|
e.projected_to_complete_at && /* @__PURE__ */ t(f, { color: "text.secondary", variant: "XSmall", children: c })
|
|
@@ -11455,11 +11452,11 @@ const ho = T(
|
|
|
11455
11452
|
), Fg = T(({ trackType: e }) => {
|
|
11456
11453
|
const { goals: A } = I(), { setAlert: n, monthlyCashFlowProfile: a, updateMonthlyCashFlowProfile: r } = Ue(), i = g.useMemo(() => {
|
|
11457
11454
|
let u = 0;
|
|
11458
|
-
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;
|
|
11459
11456
|
}, [a]), [o, s] = g.useState(i), c = async () => {
|
|
11460
11457
|
if (a) {
|
|
11461
11458
|
const u = { ...a };
|
|
11462
|
-
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);
|
|
11463
11460
|
}
|
|
11464
11461
|
};
|
|
11465
11462
|
return /* @__PURE__ */ t(E, { bgcolor: "background.paper", children: /* @__PURE__ */ t(
|
|
@@ -11584,7 +11581,7 @@ const ho = T(
|
|
|
11584
11581
|
}, jg = ({ goal: e, index: A }) => {
|
|
11585
11582
|
const { goals: n } = I();
|
|
11586
11583
|
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ne, { children: [
|
|
11587
|
-
e.track_type !==
|
|
11584
|
+
e.track_type !== V.RETIREMENT_TRACK && /* @__PURE__ */ t(
|
|
11588
11585
|
Ee,
|
|
11589
11586
|
{
|
|
11590
11587
|
sx: {
|
|
@@ -11631,7 +11628,7 @@ const ho = T(
|
|
|
11631
11628
|
}, Wg = ({ trackType: e }) => {
|
|
11632
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);
|
|
11633
11630
|
let u = A.manage_saving_goals, d = A.manage_saving_drawer_title, h = A.manage_saving_title, m = A.manage_saving_description;
|
|
11634
|
-
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: [
|
|
11635
11632
|
/* @__PURE__ */ t(ie, { endIcon: /* @__PURE__ */ t(wA, {}), onClick: () => c(!0), children: u }),
|
|
11636
11633
|
/* @__PURE__ */ t(
|
|
11637
11634
|
re,
|
|
@@ -11649,10 +11646,10 @@ const ho = T(
|
|
|
11649
11646
|
/* @__PURE__ */ t(f, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "XSmall", children: A.goal_priority }),
|
|
11650
11647
|
/* @__PURE__ */ l(ee, { sx: { bgcolor: "background.paper" }, children: [
|
|
11651
11648
|
i.map((p, C) => /* @__PURE__ */ t(jg, { goal: p, index: C }, `ongoing-${p.guid}`)),
|
|
11652
|
-
/* @__PURE__ */ t(R, { variant: e !==
|
|
11653
|
-
e !==
|
|
11649
|
+
/* @__PURE__ */ t(R, { variant: e !== V.RETIREMENT_TRACK ? "inset" : "fullWidth" }),
|
|
11650
|
+
e !== V.RETIREMENT_TRACK && /* @__PURE__ */ t(Xg, { goals: i })
|
|
11654
11651
|
] }),
|
|
11655
|
-
e !==
|
|
11652
|
+
e !== V.RETIREMENT_TRACK && /* @__PURE__ */ l(E, { children: [
|
|
11656
11653
|
/* @__PURE__ */ t(f, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "XSmall", children: A.complete_title }),
|
|
11657
11654
|
/* @__PURE__ */ t(ee, { sx: { bgcolor: "background.paper" }, children: o.map((p) => /* @__PURE__ */ t(Ug, { goal: p }, `complete-${p.guid}`)) })
|
|
11658
11655
|
] })
|
|
@@ -11661,7 +11658,7 @@ const ho = T(
|
|
|
11661
11658
|
)
|
|
11662
11659
|
] });
|
|
11663
11660
|
}, Kn = T(({ trackType: e }) => {
|
|
11664
|
-
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;
|
|
11665
11662
|
return /* @__PURE__ */ l(E, { mt: 16, mx: A ? 24 : 0, children: [
|
|
11666
11663
|
/* @__PURE__ */ l(E, { alignItems: "center", direction: "row", justifyContent: "space-between", mb: 8, children: [
|
|
11667
11664
|
/* @__PURE__ */ t(f, { color: "text.secondary", variant: "Small", children: n.ongoing_title }),
|
|
@@ -11671,7 +11668,7 @@ const ho = T(
|
|
|
11671
11668
|
// Goal should be full width in mobile or if it's the first goal (unless there are 2)
|
|
11672
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)
|
|
11673
11670
|
)) }),
|
|
11674
|
-
e !==
|
|
11671
|
+
e !== V.RETIREMENT_TRACK && /* @__PURE__ */ l(E, { gap: 16, mt: 48, children: [
|
|
11675
11672
|
/* @__PURE__ */ t(f, { color: "text.secondary", variant: "Small", children: n.complete_title }),
|
|
11676
11673
|
s.length === 0 && /* @__PURE__ */ t(E, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ t(f, { variant: "Small", children: c }) }),
|
|
11677
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: [
|
|
@@ -11690,8 +11687,8 @@ const ho = T(
|
|
|
11690
11687
|
ne,
|
|
11691
11688
|
{
|
|
11692
11689
|
onClick: h ? () => d(!u) : () => A(
|
|
11693
|
-
c ===
|
|
11694
|
-
c ===
|
|
11690
|
+
c === V.RETIREMENT_TRACK ? n.retirement : "",
|
|
11691
|
+
c === V.RETIREMENT_TRACK ? eA.RETIREMENT : eA.OTHER,
|
|
11695
11692
|
c
|
|
11696
11693
|
),
|
|
11697
11694
|
children: [
|
|
@@ -11802,7 +11799,7 @@ const ho = T(
|
|
|
11802
11799
|
);
|
|
11803
11800
|
}, Yg = ({ onClose: e }) => {
|
|
11804
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) => {
|
|
11805
|
-
C ===
|
|
11802
|
+
C === V.DEBT_TRACK ? c(!0) : i({
|
|
11806
11803
|
amount: 0,
|
|
11807
11804
|
current_amount: 0,
|
|
11808
11805
|
goal_type: Zn.SAVE_AMOUNT,
|
|
@@ -11824,10 +11821,10 @@ const ho = T(
|
|
|
11824
11821
|
meta_type: C,
|
|
11825
11822
|
monthly_payment: p.minimum_payment || 0,
|
|
11826
11823
|
name: p.name || p.feed_name || "",
|
|
11827
|
-
track_type:
|
|
11824
|
+
track_type: V.DEBT_TRACK
|
|
11828
11825
|
}), r(A.alert_goal_added);
|
|
11829
11826
|
}
|
|
11830
|
-
c(!1), e?.(
|
|
11827
|
+
c(!1), e?.(V.DEBT_TRACK);
|
|
11831
11828
|
};
|
|
11832
11829
|
return /* @__PURE__ */ l(E, { children: [
|
|
11833
11830
|
/* @__PURE__ */ t(ee, { sx: { bgcolor: "background.paper" }, children: u.map((m, p) => /* @__PURE__ */ t(Qg, { goalType: m, onClick: d }, p)) }),
|
|
@@ -12106,7 +12103,7 @@ const ho = T(
|
|
|
12106
12103
|
[n, e]
|
|
12107
12104
|
), r = e.track_type;
|
|
12108
12105
|
let i = A.details_save_title;
|
|
12109
|
-
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: [
|
|
12110
12107
|
/* @__PURE__ */ l(E, { mx: 24, children: [
|
|
12111
12108
|
/* @__PURE__ */ t(f, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "XSmall", children: i }),
|
|
12112
12109
|
/* @__PURE__ */ t(ho, { goal: e, isInDrawer: !0 }),
|
|
@@ -12115,11 +12112,11 @@ const ho = T(
|
|
|
12115
12112
|
/* @__PURE__ */ l(ee, { sx: { bgcolor: "background.paper" }, children: [
|
|
12116
12113
|
/* @__PURE__ */ t(Zg, { goal: e }),
|
|
12117
12114
|
/* @__PURE__ */ t(R, { variant: "inset" }),
|
|
12118
|
-
(r ===
|
|
12115
|
+
(r === V.SAVINGS_TRACK || r === V.RETIREMENT_TRACK) && /* @__PURE__ */ l(U, { children: [
|
|
12119
12116
|
/* @__PURE__ */ t(Vg, { goal: e }),
|
|
12120
|
-
/* @__PURE__ */ t(R, { variant: r ===
|
|
12117
|
+
/* @__PURE__ */ t(R, { variant: r === V.RETIREMENT_TRACK ? "inset" : "fullWidth" })
|
|
12121
12118
|
] }),
|
|
12122
|
-
e.track_type ===
|
|
12119
|
+
e.track_type === V.DEBT_TRACK && /* @__PURE__ */ l(U, { children: [
|
|
12123
12120
|
/* @__PURE__ */ t(lo, { goal: e }),
|
|
12124
12121
|
/* @__PURE__ */ t(R, { variant: "inset" }),
|
|
12125
12122
|
/* @__PURE__ */ t(co, { goal: e }),
|
|
@@ -12127,23 +12124,23 @@ const ho = T(
|
|
|
12127
12124
|
/* @__PURE__ */ t(uo, { goal: e }),
|
|
12128
12125
|
/* @__PURE__ */ t(R, { variant: "fullWidth" })
|
|
12129
12126
|
] }),
|
|
12130
|
-
e.track_type ===
|
|
12127
|
+
e.track_type === V.RETIREMENT_TRACK && /* @__PURE__ */ l(U, { children: [
|
|
12131
12128
|
/* @__PURE__ */ t($g, { goal: e }),
|
|
12132
12129
|
/* @__PURE__ */ t(R, { variant: "inset" }),
|
|
12133
12130
|
/* @__PURE__ */ t(e1, { goal: e }),
|
|
12134
12131
|
/* @__PURE__ */ t(R, { variant: "fullWidth" })
|
|
12135
12132
|
] })
|
|
12136
12133
|
] }),
|
|
12137
|
-
/* @__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 }),
|
|
12138
12135
|
a && /* @__PURE__ */ l(U, { children: [
|
|
12139
12136
|
/* @__PURE__ */ t(mo, { account: a }),
|
|
12140
12137
|
/* @__PURE__ */ t(R, {})
|
|
12141
12138
|
] }),
|
|
12142
|
-
e.track_type ===
|
|
12139
|
+
e.track_type === V.RETIREMENT_TRACK && /* @__PURE__ */ l(U, { children: [
|
|
12143
12140
|
/* @__PURE__ */ t(A1, { goal: e }),
|
|
12144
12141
|
/* @__PURE__ */ t(R, {})
|
|
12145
12142
|
] }),
|
|
12146
|
-
e.track_type ===
|
|
12143
|
+
e.track_type === V.SAVINGS_TRACK && !e.is_complete && /* @__PURE__ */ t(Jg, { goal: e })
|
|
12147
12144
|
] });
|
|
12148
12145
|
}), n1 = T(({ onClose: e }) => {
|
|
12149
12146
|
const { goals: A, common: n } = I(), {
|
|
@@ -12155,16 +12152,16 @@ const ho = T(
|
|
|
12155
12152
|
setAlert: c,
|
|
12156
12153
|
setSelectedGoal: u,
|
|
12157
12154
|
updateGoal: d
|
|
12158
|
-
} = 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]);
|
|
12159
12156
|
let L = n.delete_button, S = () => p(!0);
|
|
12160
12157
|
C ? (S = () => w(), L = n.save_button) : v && (S = () => D(), L = A.mark_as_complete_button);
|
|
12161
12158
|
const w = async () => {
|
|
12162
12159
|
if (s) {
|
|
12163
12160
|
const _ = s.track_type;
|
|
12164
|
-
_ !==
|
|
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?.(_);
|
|
12165
12162
|
}
|
|
12166
12163
|
}, x = async () => {
|
|
12167
|
-
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));
|
|
12168
12165
|
}, D = async () => {
|
|
12169
12166
|
const _ = {
|
|
12170
12167
|
...s,
|
|
@@ -12223,7 +12220,7 @@ const ho = T(
|
|
|
12223
12220
|
}, z = () => {
|
|
12224
12221
|
y(!0), n(G.GOALS_CLICK_ADD);
|
|
12225
12222
|
}, K = (q) => {
|
|
12226
|
-
y(!1), q ===
|
|
12223
|
+
y(!1), q === V.SAVINGS_TRACK ? C(0) : q === V.DEBT_TRACK ? C(1) : q === V.RETIREMENT_TRACK && C(2);
|
|
12227
12224
|
};
|
|
12228
12225
|
return /* @__PURE__ */ l(
|
|
12229
12226
|
CA,
|
|
@@ -12262,9 +12259,9 @@ const ho = T(
|
|
|
12262
12259
|
]
|
|
12263
12260
|
}
|
|
12264
12261
|
),
|
|
12265
|
-
p === 0 && /* @__PURE__ */ t(Kn, { trackType:
|
|
12266
|
-
p === 1 && /* @__PURE__ */ t(Kn, { trackType:
|
|
12267
|
-
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 })
|
|
12268
12265
|
] }),
|
|
12269
12266
|
/* @__PURE__ */ t(n1, { onClose: K }),
|
|
12270
12267
|
/* @__PURE__ */ t(
|
|
@@ -12310,13 +12307,13 @@ class a1 {
|
|
|
12310
12307
|
return this.goals.slice().sort((A, n) => A.position - n.position);
|
|
12311
12308
|
}
|
|
12312
12309
|
get debtGoals() {
|
|
12313
|
-
return this.orderedGoals.filter((A) => A.track_type ===
|
|
12310
|
+
return this.orderedGoals.filter((A) => A.track_type === V.DEBT_TRACK);
|
|
12314
12311
|
}
|
|
12315
12312
|
get retirmentGoals() {
|
|
12316
|
-
return this.orderedGoals.filter((A) => A.track_type ===
|
|
12313
|
+
return this.orderedGoals.filter((A) => A.track_type === V.RETIREMENT_TRACK);
|
|
12317
12314
|
}
|
|
12318
12315
|
get savingGoals() {
|
|
12319
|
-
return this.orderedGoals.filter((A) => A.track_type ===
|
|
12316
|
+
return this.orderedGoals.filter((A) => A.track_type === V.SAVINGS_TRACK);
|
|
12320
12317
|
}
|
|
12321
12318
|
addGoal = async (A) => {
|
|
12322
12319
|
try {
|
|
@@ -12361,7 +12358,7 @@ class a1 {
|
|
|
12361
12358
|
...s,
|
|
12362
12359
|
amount: s.target_amount,
|
|
12363
12360
|
name: A.retirement,
|
|
12364
|
-
track_type:
|
|
12361
|
+
track_type: V.RETIREMENT_TRACK
|
|
12365
12362
|
}))
|
|
12366
12363
|
];
|
|
12367
12364
|
Q(() => {
|
|
@@ -13323,7 +13320,7 @@ const b1 = ({
|
|
|
13323
13320
|
C(be), ce.currentTarget instanceof HTMLDivElement && _(!0);
|
|
13324
13321
|
}, F = (ce) => {
|
|
13325
13322
|
p(ce);
|
|
13326
|
-
},
|
|
13323
|
+
}, J = () => {
|
|
13327
13324
|
p(null);
|
|
13328
13325
|
}, ae = () => {
|
|
13329
13326
|
y(G.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), z(!0);
|
|
@@ -13336,7 +13333,7 @@ const b1 = ({
|
|
|
13336
13333
|
onButtonClick: ae,
|
|
13337
13334
|
onDataClick: q,
|
|
13338
13335
|
onMouseEnter: F,
|
|
13339
|
-
onMouseLeave:
|
|
13336
|
+
onMouseLeave: J,
|
|
13340
13337
|
selectedData: m
|
|
13341
13338
|
};
|
|
13342
13339
|
return L ? /* @__PURE__ */ t(
|
|
@@ -15864,7 +15861,7 @@ const _m = ({
|
|
|
15864
15861
|
a(G.BUDGETS_CLICK_FILTER);
|
|
15865
15862
|
}, F = () => {
|
|
15866
15863
|
z(!0), a(G.BUDGETS_CLICK_ADD);
|
|
15867
|
-
},
|
|
15864
|
+
}, J = () => {
|
|
15868
15865
|
z(!1);
|
|
15869
15866
|
}, ae = vt(m.end, De(/* @__PURE__ */ new Date()));
|
|
15870
15867
|
return !s || !D ? /* @__PURE__ */ t(Qe, {}) : /* @__PURE__ */ l(
|
|
@@ -15917,7 +15914,7 @@ const _m = ({
|
|
|
15917
15914
|
isOpen: O,
|
|
15918
15915
|
onClose: () => z(!1),
|
|
15919
15916
|
title: i.add_new_title,
|
|
15920
|
-
children: /* @__PURE__ */ t(Gm, { onRecalculateBudgets:
|
|
15917
|
+
children: /* @__PURE__ */ t(Gm, { onRecalculateBudgets: J })
|
|
15921
15918
|
}
|
|
15922
15919
|
),
|
|
15923
15920
|
/* @__PURE__ */ t(
|
|
@@ -16889,7 +16886,7 @@ const So = ({
|
|
|
16889
16886
|
{
|
|
16890
16887
|
subheader: /* @__PURE__ */ t(Ma, { children: s[q.key] }),
|
|
16891
16888
|
children: q.subcategories.map(
|
|
16892
|
-
(F,
|
|
16889
|
+
(F, J) => F.beats.length > 0 && /* @__PURE__ */ l(N, { children: [
|
|
16893
16890
|
/* @__PURE__ */ t(j, { disablePadding: !0, children: /* @__PURE__ */ l(
|
|
16894
16891
|
ne,
|
|
16895
16892
|
{
|
|
@@ -16916,7 +16913,7 @@ const So = ({
|
|
|
16916
16913
|
/* @__PURE__ */ t(
|
|
16917
16914
|
R,
|
|
16918
16915
|
{
|
|
16919
|
-
sx: { ml:
|
|
16916
|
+
sx: { ml: J < q.subcategories.length - 1 ? 24 : 0 }
|
|
16920
16917
|
}
|
|
16921
16918
|
)
|
|
16922
16919
|
] }, F.key)
|
|
@@ -18277,7 +18274,7 @@ const Qt = g.createContext(null), fp = ({
|
|
|
18277
18274
|
showIcon: s,
|
|
18278
18275
|
variant: u,
|
|
18279
18276
|
widthOverrides: d
|
|
18280
|
-
},
|
|
18277
|
+
}, J = m.current && m.current.offsetWidth ? Math.round(p / m.current.offsetWidth) : 0, ae = m.current ? m.current.scrollWidth - m.current.offsetWidth : 0;
|
|
18281
18278
|
return /* @__PURE__ */ l("div", { className: h, children: [
|
|
18282
18279
|
/* @__PURE__ */ l(
|
|
18283
18280
|
"ul",
|
|
@@ -18299,7 +18296,7 @@ const Qt = g.createContext(null), fp = ({
|
|
|
18299
18296
|
),
|
|
18300
18297
|
beat: oe,
|
|
18301
18298
|
index: ge,
|
|
18302
|
-
isActiveCard: ge ===
|
|
18299
|
+
isActiveCard: ge === J,
|
|
18303
18300
|
onCardClick: r,
|
|
18304
18301
|
posthog: i,
|
|
18305
18302
|
...F
|
|
@@ -18309,7 +18306,7 @@ const Qt = g.createContext(null), fp = ({
|
|
|
18309
18306
|
/* @__PURE__ */ t(
|
|
18310
18307
|
Fp,
|
|
18311
18308
|
{
|
|
18312
|
-
isActiveCard:
|
|
18309
|
+
isActiveCard: J === e.length,
|
|
18313
18310
|
onCardClick: r,
|
|
18314
18311
|
...F
|
|
18315
18312
|
}
|
|
@@ -18321,7 +18318,7 @@ const Qt = g.createContext(null), fp = ({
|
|
|
18321
18318
|
Op,
|
|
18322
18319
|
{
|
|
18323
18320
|
clientColorScheme: A,
|
|
18324
|
-
currentBeatIndex:
|
|
18321
|
+
currentBeatIndex: J,
|
|
18325
18322
|
numBeats: e.length + 1,
|
|
18326
18323
|
onNextClick: D,
|
|
18327
18324
|
onPreviousClick: _,
|
|
@@ -18605,7 +18602,7 @@ const Qt = g.createContext(null), fp = ({
|
|
|
18605
18602
|
showWithMargin: v,
|
|
18606
18603
|
useDarkMode: L,
|
|
18607
18604
|
widthOverrides: x
|
|
18608
|
-
},
|
|
18605
|
+
}, J = {
|
|
18609
18606
|
carouselSize: D,
|
|
18610
18607
|
posthog: d,
|
|
18611
18608
|
variant: w,
|
|
@@ -18645,8 +18642,8 @@ const Qt = g.createContext(null), fp = ({
|
|
|
18645
18642
|
...F
|
|
18646
18643
|
}
|
|
18647
18644
|
),
|
|
18648
|
-
O && !A.length && S && /* @__PURE__ */ t(kp, { clientColorScheme: n, ...
|
|
18649
|
-
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 })
|
|
18650
18647
|
]
|
|
18651
18648
|
}
|
|
18652
18649
|
) })
|
|
@@ -19220,7 +19217,7 @@ const Qt = g.createContext(null), fp = ({
|
|
|
19220
19217
|
const q = S.categoryData.find((F) => F.guid === "other");
|
|
19221
19218
|
c({
|
|
19222
19219
|
...K,
|
|
19223
|
-
custom: (F) => !!q?.categoryTotals?.find((
|
|
19220
|
+
custom: (F) => !!q?.categoryTotals?.find((J) => J.guid === F.top_level_category_guid)
|
|
19224
19221
|
});
|
|
19225
19222
|
} else
|
|
19226
19223
|
c({
|
|
@@ -19525,7 +19522,7 @@ const oC = (e) => e.reduce((n, a) => {
|
|
|
19525
19522
|
stackedDatasets: Je.filter(Qh),
|
|
19526
19523
|
unstackedDatasets: Je.filter(xn)
|
|
19527
19524
|
};
|
|
19528
|
-
}, [u, O, K]),
|
|
19525
|
+
}, [u, O, K]), J = g.useMemo(() => {
|
|
19529
19526
|
const we = te(
|
|
19530
19527
|
K.start,
|
|
19531
19528
|
o ? $.MONTH_SHORT_YEAR : $.MONTH_YEAR
|
|
@@ -19596,7 +19593,7 @@ const oC = (e) => e.reduce((n, a) => {
|
|
|
19596
19593
|
children: d(O) || v.sub_title
|
|
19597
19594
|
}
|
|
19598
19595
|
),
|
|
19599
|
-
/* @__PURE__ */ t(f, { variant: r ? "Body" : "Small", children:
|
|
19596
|
+
/* @__PURE__ */ t(f, { variant: r ? "Body" : "Small", children: J })
|
|
19600
19597
|
] }),
|
|
19601
19598
|
/* @__PURE__ */ t(
|
|
19602
19599
|
ri,
|
|
@@ -19867,7 +19864,7 @@ export {
|
|
|
19867
19864
|
k as TRANSACTION_EVENTS,
|
|
19868
19865
|
Et as TabContentContainer,
|
|
19869
19866
|
Nt as TopActions,
|
|
19870
|
-
|
|
19867
|
+
V as TrackType,
|
|
19871
19868
|
Cr as TransactionApi,
|
|
19872
19869
|
Tt as TransactionDetails,
|
|
19873
19870
|
nt as TransactionList,
|