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