@mx-cartographer/experiences 6.3.11-alpha.sms4 → 6.3.11-alpha.sms5
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 +188 -188
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -2424,7 +2424,7 @@ const ku = ({
|
|
2424
2424
|
(ce, Pe) => o.reduce((le, Xe) => le + Xe.dataset[Pe]?.y || 0, 0)
|
2425
2425
|
) ?? [0], q = Math.max(...M), U = Math.max(
|
2426
2426
|
...r.flatMap((ce) => ce.dataset.map((Pe) => Pe.y))
|
2427
|
-
),
|
2427
|
+
), Z = Math.floor(Math.min(...O) / 100) * 100, Ee = Math.ceil(Math.max(q, U) / 100) * 100, W = o.map((ce, Pe) => ({
|
2428
2428
|
id: `stacked-${Pe}`,
|
2429
2429
|
guid: ce.category_guid,
|
2430
2430
|
top_level_guid: ce.top_level_category_guid,
|
@@ -2446,8 +2446,8 @@ const ku = ({
|
|
2446
2446
|
label: ce.category_name,
|
2447
2447
|
type: "line",
|
2448
2448
|
valueFormatter: (le) => B(le, "0,0")
|
2449
|
-
})),
|
2450
|
-
...
|
2449
|
+
})), Q = [...W, ...pe], J = [
|
2450
|
+
...W.map(({ guid: ce, top_level_guid: Pe }) => ({
|
2451
2451
|
guid: ce,
|
2452
2452
|
top_level_guid: Pe
|
2453
2453
|
})),
|
@@ -2469,7 +2469,7 @@ const ku = ({
|
|
2469
2469
|
const ce = Le(String(b)).guid;
|
2470
2470
|
ce && a?.(ce);
|
2471
2471
|
}, Re = (ce) => {
|
2472
|
-
const Pe = String(ce?.seriesId), le = Le(Pe).guid, Xe =
|
2472
|
+
const Pe = String(ce?.seriesId), le = Le(Pe).guid, Xe = Q.find((pi) => pi.id === Pe), sn = Xe && ce?.dataIndex !== void 0, mi = Xe && ce?.dataIndex === void 0;
|
2473
2473
|
if (sn)
|
2474
2474
|
f({
|
2475
2475
|
hoveredSeriesId: Pe,
|
@@ -2520,10 +2520,10 @@ const ku = ({
|
|
2520
2520
|
'& [class*="MuiLineElement-series-unstacked-"]': {
|
2521
2521
|
strokeWidth: 3
|
2522
2522
|
},
|
2523
|
-
...h &&
|
2523
|
+
...h && W.reduce((ce, Pe, le) => {
|
2524
2524
|
const Xe = `.MuiAreaElement-series-stacked-${le}`;
|
2525
2525
|
return ce[Xe] = {
|
2526
|
-
opacity:
|
2526
|
+
opacity: W[le].guid === h ? 0.9 : 0.2
|
2527
2527
|
}, ce;
|
2528
2528
|
}, {})
|
2529
2529
|
};
|
@@ -2541,7 +2541,7 @@ const ku = ({
|
|
2541
2541
|
margin: { bottom: 50 },
|
2542
2542
|
onAreaClick: Ze,
|
2543
2543
|
onHighlightChange: Re,
|
2544
|
-
series:
|
2544
|
+
series: Q,
|
2545
2545
|
skipAnimation: !0,
|
2546
2546
|
slotProps: {
|
2547
2547
|
legend: {
|
@@ -2574,7 +2574,7 @@ const ku = ({
|
|
2574
2574
|
],
|
2575
2575
|
yAxis: [
|
2576
2576
|
{
|
2577
|
-
min:
|
2577
|
+
min: Z,
|
2578
2578
|
max: Ee || 100
|
2579
2579
|
}
|
2580
2580
|
]
|
@@ -2583,7 +2583,7 @@ const ku = ({
|
|
2583
2583
|
/* @__PURE__ */ t(
|
2584
2584
|
qu,
|
2585
2585
|
{
|
2586
|
-
categoryGuids:
|
2586
|
+
categoryGuids: J,
|
2587
2587
|
hoveredLegend: h,
|
2588
2588
|
onClickLegend: Fe,
|
2589
2589
|
onHoverLegend: ke,
|
@@ -2823,16 +2823,16 @@ const ku = ({
|
|
2823
2823
|
const U = qe(gn());
|
2824
2824
|
return [qe(qt(U, x)), U];
|
2825
2825
|
}, O = (U) => {
|
2826
|
-
const
|
2826
|
+
const Z = [...u], Ee = u[0], W = u[1], pe = U === "previous";
|
2827
2827
|
if (m === i.dateRangePickerCopy.dateRangeThisMonth)
|
2828
|
-
|
2828
|
+
Z[0] = pe ? qt(Ee, 1) : Ct(Ee, 1), Z[1] = qe(pe ? qt(W, 1) : Ct(W, 1));
|
2829
2829
|
else if (m === i.dateRangePickerCopy.dateRangeYTD || m === i.dateRangePickerCopy.dateRangeLastYear)
|
2830
|
-
|
2830
|
+
Z[0] = pe ? ao(rr(Ee), 1) : ai(rr(Ee), 1), Z[1] = pe ? ao(or(Ee), 1) : ai(or(Ee), 1);
|
2831
2831
|
else {
|
2832
|
-
const
|
2833
|
-
|
2832
|
+
const Q = ed(W, Ee);
|
2833
|
+
Z[0] = U === "previous" ? _t(Ee, Q) : Gt(Ee, Q), Z[1] = U === "previous" ? _t(W, Q) : Gt(W, Q);
|
2834
2834
|
}
|
2835
|
-
h(
|
2835
|
+
h(Z), e.onRangeChanged(Z);
|
2836
2836
|
}, M = () => {
|
2837
2837
|
h(f), N(
|
2838
2838
|
m === i.dateRangePickerCopy.dateRangeThisMonth || m === i.dateRangePickerCopy.dateRangeLastMonth
|
@@ -2977,7 +2977,7 @@ const ku = ({
|
|
2977
2977
|
kt,
|
2978
2978
|
{
|
2979
2979
|
indicatorColor: "primary",
|
2980
|
-
onChange: (U,
|
2980
|
+
onChange: (U, Z) => q(Z),
|
2981
2981
|
textColor: "primary",
|
2982
2982
|
value: x,
|
2983
2983
|
variant: "fullWidth",
|
@@ -3011,8 +3011,8 @@ const ku = ({
|
|
3011
3011
|
{
|
3012
3012
|
copy: i.dateRangePickerCopy,
|
3013
3013
|
dateRange: f,
|
3014
|
-
onRangeChanged: (U,
|
3015
|
-
b(U), C(
|
3014
|
+
onRangeChanged: (U, Z) => {
|
3015
|
+
b(U), C(Z);
|
3016
3016
|
},
|
3017
3017
|
selectedShortcut: m,
|
3018
3018
|
sx: { p: 16 }
|
@@ -3038,8 +3038,8 @@ const ku = ({
|
|
3038
3038
|
{
|
3039
3039
|
copy: i.dateRangePickerCopy,
|
3040
3040
|
dateRange: f,
|
3041
|
-
onRangeChanged: (U,
|
3042
|
-
b(U), C(
|
3041
|
+
onRangeChanged: (U, Z) => {
|
3042
|
+
b(U), C(Z);
|
3043
3043
|
},
|
3044
3044
|
selectedShortcut: m,
|
3045
3045
|
sx: {
|
@@ -3268,7 +3268,7 @@ const Rn = ({
|
|
3268
3268
|
zeroStateTitle: M.account_filter.zero_state_title
|
3269
3269
|
},
|
3270
3270
|
title: M.account_filter.title
|
3271
|
-
},
|
3271
|
+
}, Z = {
|
3272
3272
|
dateRangePickerCopy: {
|
3273
3273
|
dateRangeFrom: M.date_range_picker.from,
|
3274
3274
|
dateRangeTo: M.date_range_picker.to,
|
@@ -3286,7 +3286,7 @@ const Rn = ({
|
|
3286
3286
|
dateRangeEditTitle: M.date_range_picker.edit_title,
|
3287
3287
|
dateRangeNextAria: M.date_range_picker.next_aria,
|
3288
3288
|
dateRangePreviousAria: M.date_range_picker.previous_aria
|
3289
|
-
}, Ee = o ? o.start : R.start,
|
3289
|
+
}, Ee = o ? o.start : R.start, W = o ? o.end : R.end, pe = n?.length > 1;
|
3290
3290
|
return /* @__PURE__ */ l(
|
3291
3291
|
Pt,
|
3292
3292
|
{
|
@@ -3312,8 +3312,8 @@ const Rn = ({
|
|
3312
3312
|
Ar,
|
3313
3313
|
{
|
3314
3314
|
calendarActions: i,
|
3315
|
-
copy:
|
3316
|
-
range: [Ee,
|
3315
|
+
copy: Z,
|
3316
|
+
range: [Ee, W],
|
3317
3317
|
shouldShrinkToIcon: !1,
|
3318
3318
|
variant: r
|
3319
3319
|
}
|
@@ -3323,36 +3323,36 @@ const Rn = ({
|
|
3323
3323
|
{
|
3324
3324
|
accounts: e,
|
3325
3325
|
copy: U,
|
3326
|
-
onFilterClick: (
|
3327
|
-
O(
|
3326
|
+
onFilterClick: (Q) => {
|
3327
|
+
O(Q), _?.();
|
3328
3328
|
},
|
3329
3329
|
selectedAccountGuids: H,
|
3330
3330
|
showAccountNumbers: !1,
|
3331
3331
|
variant: "text"
|
3332
3332
|
}
|
3333
3333
|
),
|
3334
|
-
n?.map((
|
3335
|
-
if (g.isValidElement(
|
3336
|
-
const { iconName:
|
3334
|
+
n?.map((Q) => {
|
3335
|
+
if (g.isValidElement(Q)) return Q;
|
3336
|
+
const { iconName: J, onClick: Le, label: ke } = Q;
|
3337
3337
|
return pe ? v ? /* @__PURE__ */ t(
|
3338
3338
|
te,
|
3339
3339
|
{
|
3340
3340
|
onClick: Le,
|
3341
|
-
startIcon: /* @__PURE__ */ t(P, { color: "primary", name:
|
3341
|
+
startIcon: /* @__PURE__ */ t(P, { color: "primary", name: J }),
|
3342
3342
|
sx: { my: 4 },
|
3343
3343
|
children: ke
|
3344
3344
|
},
|
3345
|
-
|
3346
|
-
) : /* @__PURE__ */ t(Ue, { "aria-label": ke, color: "primary", onClick: Le, children: /* @__PURE__ */ t(P, { name:
|
3345
|
+
J
|
3346
|
+
) : /* @__PURE__ */ t(Ue, { "aria-label": ke, color: "primary", onClick: Le, children: /* @__PURE__ */ t(P, { name: J }) }, J) : S || x ? /* @__PURE__ */ t(
|
3347
3347
|
te,
|
3348
3348
|
{
|
3349
3349
|
onClick: Le,
|
3350
|
-
startIcon: /* @__PURE__ */ t(P, { name:
|
3350
|
+
startIcon: /* @__PURE__ */ t(P, { name: J }),
|
3351
3351
|
sx: { my: 4 },
|
3352
3352
|
children: ke
|
3353
3353
|
},
|
3354
|
-
|
3355
|
-
) : /* @__PURE__ */ t(Ue, { "aria-label": ke, color: "primary", onClick: Le, children: /* @__PURE__ */ t(P, { name:
|
3354
|
+
J
|
3355
|
+
) : /* @__PURE__ */ t(Ue, { "aria-label": ke, color: "primary", onClick: Le, children: /* @__PURE__ */ t(P, { name: J }) }, J);
|
3356
3356
|
})
|
3357
3357
|
] }),
|
3358
3358
|
sx: {
|
@@ -3387,8 +3387,8 @@ const Rn = ({
|
|
3387
3387
|
Ar,
|
3388
3388
|
{
|
3389
3389
|
calendarActions: i,
|
3390
|
-
copy:
|
3391
|
-
range: [Ee,
|
3390
|
+
copy: Z,
|
3391
|
+
range: [Ee, W],
|
3392
3392
|
shouldShrinkToIcon: !1,
|
3393
3393
|
variant: r
|
3394
3394
|
}
|
@@ -6631,16 +6631,16 @@ const mc = ({ transaction: e }) => {
|
|
6631
6631
|
}, v = (M, q) => {
|
6632
6632
|
const U = [...f];
|
6633
6633
|
U[M].amount = q, U[0].amount = e.amount - U.reduce(
|
6634
|
-
(
|
6634
|
+
(Z, Ee, W) => Z + (W !== 0 ? Ee.amount : 0),
|
6635
6635
|
0
|
6636
6636
|
), b(U);
|
6637
6637
|
}, N = (M, q) => {
|
6638
|
-
const U = [...f],
|
6639
|
-
|
6638
|
+
const U = [...f], Z = c.find((Ee) => Ee.guid === q);
|
6639
|
+
Z && (U[M] = {
|
6640
6640
|
...U[M],
|
6641
6641
|
category_guid: q,
|
6642
|
-
category:
|
6643
|
-
top_level_category_guid:
|
6642
|
+
category: Z.name,
|
6643
|
+
top_level_category_guid: Z.parent_guid || q
|
6644
6644
|
}, b(U));
|
6645
6645
|
}, x = () => {
|
6646
6646
|
if (e.parent_guid || e.has_been_split) {
|
@@ -7295,16 +7295,16 @@ const mc = ({ transaction: e }) => {
|
|
7295
7295
|
displayedDateRange: M,
|
7296
7296
|
isCopyLoaded: q,
|
7297
7297
|
isInitialized: U,
|
7298
|
-
selectedAccountGuids:
|
7298
|
+
selectedAccountGuids: Z,
|
7299
7299
|
selectedAccounts: Ee,
|
7300
|
-
setDisplayedDate:
|
7300
|
+
setDisplayedDate: W,
|
7301
7301
|
setSelectedAccounts: pe
|
7302
|
-
} = ue(), [
|
7302
|
+
} = ue(), [Q, J] = g.useState(""), [Le, ke] = g.useState(""), [Fe, Ze] = g.useState(!1), [Re, ot] = g.useState(!1), [Ye, ce] = g.useState(!1);
|
7303
7303
|
g.useEffect(() => {
|
7304
7304
|
pe(o);
|
7305
7305
|
}, [o]), g.useEffect(() => {
|
7306
7306
|
const dt = Ve(_e()), er = qe(_e());
|
7307
|
-
|
7307
|
+
W(dt, er), S({
|
7308
7308
|
dateRange: { start: dt, end: er },
|
7309
7309
|
accounts: Ee.map((Ua) => Ua.guid),
|
7310
7310
|
custom: (Ua) => !Ua.accountIsClosed
|
@@ -7313,16 +7313,16 @@ const mc = ({ transaction: e }) => {
|
|
7313
7313
|
Ye && (S({
|
7314
7314
|
...b,
|
7315
7315
|
dateRange: { start: M.start, end: M.end },
|
7316
|
-
accounts:
|
7316
|
+
accounts: Z
|
7317
7317
|
}), E(M.start).finally());
|
7318
|
-
}, [M,
|
7318
|
+
}, [M, Z]), g.useEffect(() => {
|
7319
7319
|
m(i);
|
7320
7320
|
}, [i]);
|
7321
7321
|
const Pe = g.useMemo(
|
7322
7322
|
() => o.filter((dt) => dt.is_manual),
|
7323
7323
|
[o]
|
7324
7324
|
), le = Le ? N.find((dt) => dt.guid === Le) : void 0, Xe = _ && !!d.payee && !!d.account_guid && !!d.category_guid, sn = (dt) => {
|
7325
|
-
|
7325
|
+
W(dt[0], dt[1]);
|
7326
7326
|
}, mi = (dt) => {
|
7327
7327
|
h(dt), S({
|
7328
7328
|
...b,
|
@@ -7335,18 +7335,18 @@ const mc = ({ transaction: e }) => {
|
|
7335
7335
|
...uc,
|
7336
7336
|
date: Me(_e()),
|
7337
7337
|
user_guid: H?.user_guid || ""
|
7338
|
-
}),
|
7338
|
+
}), J(
|
7339
7339
|
"addTransaction"
|
7340
7340
|
/* AddTransaction */
|
7341
7341
|
), O($.TRANSACTIONS_CLICK_ADD)) : (Ze(!0), O($.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
7342
7342
|
}, Wa = async () => {
|
7343
|
-
Xe && await f(d),
|
7343
|
+
Xe && await f(d), J("");
|
7344
7344
|
}, bl = () => {
|
7345
7345
|
Ze(!1), ot(!0);
|
7346
7346
|
}, yl = async () => {
|
7347
7347
|
ot(!1), await r();
|
7348
7348
|
}, El = async () => {
|
7349
|
-
le && !le.has_been_viewed && await x({ ...le, has_been_viewed: !0 }),
|
7349
|
+
le && !le.has_been_viewed && await x({ ...le, has_been_viewed: !0 }), J("");
|
7350
7350
|
};
|
7351
7351
|
return !q || !U || !Ye ? /* @__PURE__ */ t(ge, {}) : /* @__PURE__ */ l(
|
7352
7352
|
Mt,
|
@@ -7392,13 +7392,13 @@ const mc = ({ transaction: e }) => {
|
|
7392
7392
|
{
|
7393
7393
|
height: `calc(${n} - ${Pr}px)`,
|
7394
7394
|
onCategoryClick: (dt) => {
|
7395
|
-
ke(dt),
|
7395
|
+
ke(dt), J(
|
7396
7396
|
"category"
|
7397
7397
|
/* Category */
|
7398
7398
|
);
|
7399
7399
|
},
|
7400
7400
|
onRowClick: (dt) => {
|
7401
|
-
ke(dt),
|
7401
|
+
ke(dt), J(
|
7402
7402
|
"transaction"
|
7403
7403
|
/* Transaction */
|
7404
7404
|
), O($.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: dt });
|
@@ -7419,7 +7419,7 @@ const mc = ({ transaction: e }) => {
|
|
7419
7419
|
{
|
7420
7420
|
height: `calc(${n} - ${Pr}px)`,
|
7421
7421
|
onClick: (dt) => {
|
7422
|
-
ke(dt),
|
7422
|
+
ke(dt), J(
|
7423
7423
|
"transaction"
|
7424
7424
|
/* Transaction */
|
7425
7425
|
);
|
@@ -7434,17 +7434,17 @@ const mc = ({ transaction: e }) => {
|
|
7434
7434
|
oe,
|
7435
7435
|
{
|
7436
7436
|
ariaLabelClose: R.close_aria,
|
7437
|
-
isOpen:
|
7437
|
+
isOpen: Q === "transaction",
|
7438
7438
|
onClose: El,
|
7439
7439
|
title: D.details_title,
|
7440
7440
|
children: le && /* @__PURE__ */ t(Zn, { transaction: le })
|
7441
7441
|
}
|
7442
7442
|
),
|
7443
|
-
le &&
|
7443
|
+
le && Q === "category" && /* @__PURE__ */ t(
|
7444
7444
|
Qh,
|
7445
7445
|
{
|
7446
7446
|
onClose: () => {
|
7447
|
-
c(""),
|
7447
|
+
c(""), J(""), ke("");
|
7448
7448
|
},
|
7449
7449
|
transaction: le
|
7450
7450
|
}
|
@@ -7453,9 +7453,9 @@ const mc = ({ transaction: e }) => {
|
|
7453
7453
|
oe,
|
7454
7454
|
{
|
7455
7455
|
ariaLabelClose: R.close_aria,
|
7456
|
-
isOpen:
|
7456
|
+
isOpen: Q === "addTransaction",
|
7457
7457
|
isPrimaryDisabled: !Xe,
|
7458
|
-
onClose: () =>
|
7458
|
+
onClose: () => J(""),
|
7459
7459
|
onPrimaryAction: Wa,
|
7460
7460
|
title: D.add_transaction_title,
|
7461
7461
|
children: /* @__PURE__ */ t(qh, {})
|
@@ -9890,10 +9890,10 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
|
|
9890
9890
|
transform: rotate(360deg);
|
9891
9891
|
}
|
9892
9892
|
`, rm = () => {
|
9893
|
-
const { addCashflowEvent: e, addCashflowSequence: n, cashflowSequences: i } = at(), { cashflow: a, common: o } = I(), { completeOnboarding: r } = wo(), { isDirty: s } = gi(), { isMobile: c } = ye(), { isCopyLoaded: d, setDisplayedDate: _ } = ue(), { filter: u, setFilter: h, transactions: m } = Te(), C = me(), [f, b] = Tt(!0), [E, S] = g.useState(ee.EveryMonth), [v, N] = Tt(!1), [x, R] = g.useState(null), [D, H] = Tt(1), [O, M] = Tt([]), [q, U] = Tt(""),
|
9894
|
-
() => m.find((
|
9893
|
+
const { addCashflowEvent: e, addCashflowSequence: n, cashflowSequences: i } = at(), { cashflow: a, common: o } = I(), { completeOnboarding: r } = wo(), { isDirty: s } = gi(), { isMobile: c } = ye(), { isCopyLoaded: d, setDisplayedDate: _ } = ue(), { filter: u, setFilter: h, transactions: m } = Te(), C = me(), [f, b] = Tt(!0), [E, S] = g.useState(ee.EveryMonth), [v, N] = Tt(!1), [x, R] = g.useState(null), [D, H] = Tt(1), [O, M] = Tt([]), [q, U] = Tt(""), Z = g.useMemo(
|
9894
|
+
() => m.find((J) => J.guid === q),
|
9895
9895
|
[q]
|
9896
|
-
), Ee = !!i.length,
|
9896
|
+
), Ee = !!i.length, W = async () => {
|
9897
9897
|
H(2), _(
|
9898
9898
|
// Beginning of the month, 90 days before today
|
9899
9899
|
Ve(_t(_e(), 90)),
|
@@ -9902,8 +9902,8 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
|
|
9902
9902
|
}, pe = async () => {
|
9903
9903
|
if (!(O.length < 1)) {
|
9904
9904
|
N(!0);
|
9905
|
-
for (let
|
9906
|
-
const Le = O[
|
9905
|
+
for (let J = 0; J < O.length; J++) {
|
9906
|
+
const Le = O[J], ke = Sc(
|
9907
9907
|
Le,
|
9908
9908
|
Le.frequency,
|
9909
9909
|
Le.nextDate
|
@@ -9915,7 +9915,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
|
|
9915
9915
|
}
|
9916
9916
|
await r();
|
9917
9917
|
}
|
9918
|
-
},
|
9918
|
+
}, Q = !Z && f || !Z && O.length < 1;
|
9919
9919
|
return d ? /* @__PURE__ */ l(
|
9920
9920
|
L,
|
9921
9921
|
{
|
@@ -9936,7 +9936,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
|
|
9936
9936
|
sx: {
|
9937
9937
|
...c ? { display: "flex", flexDirection: "column", maxWidth: "100%", padding: "0 16px" } : { maxWidth: 590, ml: "40%", mr: 90 }
|
9938
9938
|
},
|
9939
|
-
children: /* @__PURE__ */ t(nm, { handleNextStep:
|
9939
|
+
children: /* @__PURE__ */ t(nm, { handleNextStep: W })
|
9940
9940
|
}
|
9941
9941
|
),
|
9942
9942
|
D === 2 && /* @__PURE__ */ t(
|
@@ -9957,14 +9957,14 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
|
|
9957
9957
|
children: [
|
9958
9958
|
/* @__PURE__ */ t(en, { pb: 12, children: a.add_income_title }),
|
9959
9959
|
/* @__PURE__ */ t(Oe, { mb: 24, children: a.add_income_description }),
|
9960
|
-
O.length > 0 && !
|
9961
|
-
/* @__PURE__ */ t(ie, { children: O.map((
|
9960
|
+
O.length > 0 && !Z && /* @__PURE__ */ l(X, { children: [
|
9961
|
+
/* @__PURE__ */ t(ie, { children: O.map((J, Le) => /* @__PURE__ */ l(g.Fragment, { children: [
|
9962
9962
|
/* @__PURE__ */ t(Da, { bgcolor: "background.paper", children: Wi(
|
9963
|
-
Me(
|
9963
|
+
Me(J.nextDate || J.date)
|
9964
9964
|
) }),
|
9965
|
-
/* @__PURE__ */ t(Na, { transaction:
|
9965
|
+
/* @__PURE__ */ t(Na, { transaction: J }),
|
9966
9966
|
Le !== O.length - 1 && /* @__PURE__ */ t(k, {})
|
9967
|
-
] },
|
9967
|
+
] }, J.guid)) }),
|
9968
9968
|
/* @__PURE__ */ l(y, { alignItems: "center", direction: "row", children: [
|
9969
9969
|
/* @__PURE__ */ t(k, { sx: { flexGrow: 1 } }),
|
9970
9970
|
/* @__PURE__ */ t(
|
@@ -9977,21 +9977,21 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
|
|
9977
9977
|
)
|
9978
9978
|
] })
|
9979
9979
|
] }),
|
9980
|
-
|
9980
|
+
Q && /* @__PURE__ */ t(
|
9981
9981
|
Ac,
|
9982
9982
|
{
|
9983
9983
|
bgcolor: "background.paper",
|
9984
|
-
onSearch: (
|
9984
|
+
onSearch: (J) => h({
|
9985
9985
|
...u,
|
9986
|
-
custom: (Le) =>
|
9986
|
+
custom: (Le) => J ? Po(Le, J) : jn(Le)
|
9987
9987
|
}),
|
9988
|
-
onSelected: (
|
9989
|
-
U(
|
9988
|
+
onSelected: (J) => {
|
9989
|
+
U(J), b(!1);
|
9990
9990
|
}
|
9991
9991
|
}
|
9992
9992
|
),
|
9993
9993
|
!Ee && s && /* @__PURE__ */ t(Oe, { color: "error", mt: 16, children: a.confirm_error }),
|
9994
|
-
|
9994
|
+
Z && /* @__PURE__ */ l(X, { children: [
|
9995
9995
|
/* @__PURE__ */ t(
|
9996
9996
|
Ic,
|
9997
9997
|
{
|
@@ -10001,17 +10001,17 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
|
|
10001
10001
|
nextDate: x,
|
10002
10002
|
onFrequencyChange: S,
|
10003
10003
|
onNextDateChange: R,
|
10004
|
-
transaction:
|
10004
|
+
transaction: Z
|
10005
10005
|
}
|
10006
10006
|
),
|
10007
10007
|
/* @__PURE__ */ l(y, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
|
10008
10008
|
/* @__PURE__ */ t(
|
10009
10009
|
te,
|
10010
10010
|
{
|
10011
|
-
"aria-disabled": !
|
10011
|
+
"aria-disabled": !Z || !x,
|
10012
10012
|
onClick: () => {
|
10013
|
-
const
|
10014
|
-
|
10013
|
+
const J = [...O];
|
10014
|
+
J.push({ ...Z, nextDate: x, frequency: E }), M(J), U("");
|
10015
10015
|
},
|
10016
10016
|
variant: "contained",
|
10017
10017
|
children: o.confirm_button
|
@@ -10021,7 +10021,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
|
|
10021
10021
|
te,
|
10022
10022
|
{
|
10023
10023
|
onClick: () => {
|
10024
|
-
U(""), b(!0),
|
10024
|
+
U(""), b(!0), W();
|
10025
10025
|
},
|
10026
10026
|
variant: "outlined",
|
10027
10027
|
children: o.cancel_button
|
@@ -10029,7 +10029,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
|
|
10029
10029
|
)
|
10030
10030
|
] })
|
10031
10031
|
] }),
|
10032
|
-
O.length > 0 && !
|
10032
|
+
O.length > 0 && !Z && /* @__PURE__ */ l(y, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
|
10033
10033
|
/* @__PURE__ */ t(
|
10034
10034
|
te,
|
10035
10035
|
{
|
@@ -11754,11 +11754,11 @@ const Kt = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11754
11754
|
b && D().finally();
|
11755
11755
|
}, [b]);
|
11756
11756
|
const q = (pe) => _(pe), U = () => {
|
11757
|
-
const pe = x.find((
|
11758
|
-
pe && S(pe),
|
11759
|
-
},
|
11757
|
+
const pe = x.find((J) => J.guid === d), Q = M.find((J) => J.guid === d);
|
11758
|
+
pe && S(pe), Q && N(Q), a(!0);
|
11759
|
+
}, Z = () => C($.DEBTS_CLICK_FILTER), Ee = () => {
|
11760
11760
|
c(!0), C($.DEBTS_CLICK_SNOWBALL_CTA);
|
11761
|
-
},
|
11761
|
+
}, W = () => {
|
11762
11762
|
r(!0), C($.DEBTS_CLICK_PAYDOWN);
|
11763
11763
|
};
|
11764
11764
|
return !R || !f || !b ? /* @__PURE__ */ t(ge, {}) : /* @__PURE__ */ l(
|
@@ -11767,9 +11767,9 @@ const Kt = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11767
11767
|
accountOptions: x,
|
11768
11768
|
actions: [
|
11769
11769
|
/* @__PURE__ */ t(ap, {}, "prioritize-debts"),
|
11770
|
-
/* @__PURE__ */ t(rp, { onClick:
|
11770
|
+
/* @__PURE__ */ t(rp, { onClick: W }, "extra-paydown")
|
11771
11771
|
],
|
11772
|
-
onAccountsFilterClick:
|
11772
|
+
onAccountsFilterClick: Z,
|
11773
11773
|
onBackClick: e,
|
11774
11774
|
sx: n,
|
11775
11775
|
title: m.title,
|
@@ -12852,11 +12852,11 @@ const gp = (e, n) => {
|
|
12852
12852
|
}, [s, R, D, H]);
|
12853
12853
|
const U = () => {
|
12854
12854
|
i($.GOALS_CLICK_FILTER);
|
12855
|
-
},
|
12855
|
+
}, Z = () => {
|
12856
12856
|
x(!0), i($.GOALS_CLICK_ADD);
|
12857
12857
|
}, Ee = (pe) => {
|
12858
12858
|
x(!1), pe === V.SAVINGS_TRACK ? v(0) : pe === V.DEBT_TRACK ? v(1) : pe === V.RETIREMENT_TRACK && v(2);
|
12859
|
-
},
|
12859
|
+
}, W = g.useMemo(
|
12860
12860
|
() => m && (h.length === 0 || h.every(({ track_type: pe }) => !pe) && E.length === 0),
|
12861
12861
|
[h, m, E]
|
12862
12862
|
);
|
@@ -12868,7 +12868,7 @@ const gp = (e, n) => {
|
|
12868
12868
|
{
|
12869
12869
|
iconName: "add",
|
12870
12870
|
label: d.add_title,
|
12871
|
-
onClick:
|
12871
|
+
onClick: Z
|
12872
12872
|
}
|
12873
12873
|
],
|
12874
12874
|
onAccountsFilterClick: U,
|
@@ -12880,15 +12880,15 @@ const gp = (e, n) => {
|
|
12880
12880
|
/* @__PURE__ */ l(
|
12881
12881
|
kt,
|
12882
12882
|
{
|
12883
|
-
onChange: (pe,
|
12883
|
+
onChange: (pe, Q) => v(Q),
|
12884
12884
|
sx: { bgcolor: "background.paper" },
|
12885
|
-
value:
|
12885
|
+
value: W ? !1 : S,
|
12886
12886
|
variant: "fullWidth",
|
12887
12887
|
children: [
|
12888
12888
|
/* @__PURE__ */ t(
|
12889
12889
|
Ke,
|
12890
12890
|
{
|
12891
|
-
disabled:
|
12891
|
+
disabled: W,
|
12892
12892
|
label: /* @__PURE__ */ t(ja, { subtitle: O, title: d.tab_saving_title }),
|
12893
12893
|
sx: { "&.Mui-selected": { color: "primary.light" } }
|
12894
12894
|
}
|
@@ -12896,7 +12896,7 @@ const gp = (e, n) => {
|
|
12896
12896
|
/* @__PURE__ */ t(
|
12897
12897
|
Ke,
|
12898
12898
|
{
|
12899
|
-
disabled:
|
12899
|
+
disabled: W,
|
12900
12900
|
label: /* @__PURE__ */ t(ja, { subtitle: M, title: d.tab_debt_title }),
|
12901
12901
|
sx: { "&.Mui-selected": { color: "primary.light" } }
|
12902
12902
|
}
|
@@ -12904,7 +12904,7 @@ const gp = (e, n) => {
|
|
12904
12904
|
/* @__PURE__ */ t(
|
12905
12905
|
Ke,
|
12906
12906
|
{
|
12907
|
-
disabled:
|
12907
|
+
disabled: W,
|
12908
12908
|
label: /* @__PURE__ */ t(ja, { subtitle: q, title: d.tab_retirement_title }),
|
12909
12909
|
sx: { "&.Mui-selected": { color: "primary.light" } }
|
12910
12910
|
}
|
@@ -12912,12 +12912,12 @@ const gp = (e, n) => {
|
|
12912
12912
|
]
|
12913
12913
|
}
|
12914
12914
|
),
|
12915
|
-
|
12915
|
+
W ? /* @__PURE__ */ t(
|
12916
12916
|
xi,
|
12917
12917
|
{
|
12918
12918
|
header: d.create_goals_header,
|
12919
12919
|
icon: "trophy",
|
12920
|
-
onClick:
|
12920
|
+
onClick: Z,
|
12921
12921
|
primaryButton: d.add_goals_button,
|
12922
12922
|
subText: d.empty_state_subheader,
|
12923
12923
|
sx: {
|
@@ -12928,9 +12928,9 @@ const gp = (e, n) => {
|
|
12928
12928
|
}
|
12929
12929
|
}
|
12930
12930
|
) : /* @__PURE__ */ l(X, { children: [
|
12931
|
-
S === 0 && /* @__PURE__ */ t(Xa, { onAddGoals:
|
12932
|
-
S === 1 && /* @__PURE__ */ t(Xa, { onAddGoals:
|
12933
|
-
S === 2 && /* @__PURE__ */ t(Xa, { onAddGoals:
|
12931
|
+
S === 0 && /* @__PURE__ */ t(Xa, { onAddGoals: Z, trackType: V.SAVINGS_TRACK }),
|
12932
|
+
S === 1 && /* @__PURE__ */ t(Xa, { onAddGoals: Z, trackType: V.DEBT_TRACK }),
|
12933
|
+
S === 2 && /* @__PURE__ */ t(Xa, { onAddGoals: Z, trackType: V.RETIREMENT_TRACK })
|
12934
12934
|
] })
|
12935
12935
|
] }),
|
12936
12936
|
/* @__PURE__ */ t(Dp, { onClose: Ee }),
|
@@ -14161,7 +14161,7 @@ const o1 = ({
|
|
14161
14161
|
selectedData: f,
|
14162
14162
|
setHoveredData: b,
|
14163
14163
|
setSelectedData: E
|
14164
|
-
} = Ku(), { isMobile: S } = ye(), { onEvent: v } = K(), [N, x] = g.useState(!1), [R, D] = g.useState(6), [H, O] = g.useState(!1), [M, q] = g.useState(!1), [U,
|
14164
|
+
} = Ku(), { isMobile: S } = ye(), { onEvent: v } = K(), [N, x] = g.useState(!1), [R, D] = g.useState(6), [H, O] = g.useState(!1), [M, q] = g.useState(!1), [U, Z] = g.useState(!1), Ee = async () => {
|
14165
14165
|
await m(a), await h(R), x(!0);
|
14166
14166
|
};
|
14167
14167
|
g.useEffect(() => {
|
@@ -14173,13 +14173,13 @@ const o1 = ({
|
|
14173
14173
|
}, [i, a]), g.useEffect(() => {
|
14174
14174
|
v($.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: R + "M" }), h(R).finally();
|
14175
14175
|
}, [R]);
|
14176
|
-
const
|
14176
|
+
const W = (Ze, Re) => {
|
14177
14177
|
E(Re), Ze.currentTarget instanceof HTMLDivElement && O(!0);
|
14178
14178
|
}, pe = (Ze) => {
|
14179
14179
|
b(Ze);
|
14180
|
-
}, Z = () => {
|
14181
|
-
b(null);
|
14182
14180
|
}, Q = () => {
|
14181
|
+
b(null);
|
14182
|
+
}, J = () => {
|
14183
14183
|
v($.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), q(!0);
|
14184
14184
|
}, Le = async (Ze) => {
|
14185
14185
|
const Re = Ze[0], ot = Ze[1];
|
@@ -14187,13 +14187,13 @@ const o1 = ({
|
|
14187
14187
|
}, ke = {
|
14188
14188
|
chartData: C,
|
14189
14189
|
hoveredData: u,
|
14190
|
-
onButtonClick:
|
14191
|
-
onDataClick:
|
14190
|
+
onButtonClick: J,
|
14191
|
+
onDataClick: W,
|
14192
14192
|
onMouseEnter: pe,
|
14193
|
-
onMouseLeave:
|
14193
|
+
onMouseLeave: Q,
|
14194
14194
|
selectedData: f
|
14195
14195
|
}, Fe = () => {
|
14196
|
-
|
14196
|
+
Z(!0), v($.ACCOUNTS_CLICK_CONNECT);
|
14197
14197
|
};
|
14198
14198
|
return n ? /* @__PURE__ */ t(
|
14199
14199
|
Mt,
|
@@ -14254,7 +14254,7 @@ const o1 = ({
|
|
14254
14254
|
/* @__PURE__ */ t(
|
14255
14255
|
Ga,
|
14256
14256
|
{
|
14257
|
-
onClose: () =>
|
14257
|
+
onClose: () => Z(!1),
|
14258
14258
|
showConnectionsWidget: U,
|
14259
14259
|
title: r.manage_connections
|
14260
14260
|
}
|
@@ -18061,8 +18061,8 @@ const k1 = ({
|
|
18061
18061
|
const e = it(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: o, isSmallMobile: r, isTablet: s } = ye(), { config: c } = Vi(), { updateUser: d } = Ft(), { user: _ } = an(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, b] = g.useState(_.email), [E, S] = g.useState(_.phone), [v, N] = g.useState(_.postal_code), [x, R] = g.useState(_.credit_score), [D, H] = g.useState(null), O = f && !_.email_is_verified, M = E && !_.phone_is_verified;
|
18062
18062
|
g.useEffect(() => {
|
18063
18063
|
if (_.birthday) {
|
18064
|
-
const W = new Date(_.birthday * 1e3),
|
18065
|
-
H(new Date(
|
18064
|
+
const W = new Date(_.birthday * 1e3), pe = W.getUTCFullYear(), Q = W.getUTCMonth(), J = W.getUTCDate();
|
18065
|
+
H(new Date(pe, Q, J));
|
18066
18066
|
}
|
18067
18067
|
}, [_]);
|
18068
18068
|
const q = async () => {
|
@@ -18077,8 +18077,8 @@ const k1 = ({
|
|
18077
18077
|
credit_score: x
|
18078
18078
|
};
|
18079
18079
|
await d(W);
|
18080
|
-
}, U = Do(
|
18081
|
-
return console.log("
|
18080
|
+
}, [U, { height: Z, width: Ee }] = Do();
|
18081
|
+
return console.log("height, width", Z, Ee), console.log("containerRef", U), /* @__PURE__ */ l(
|
18082
18082
|
L,
|
18083
18083
|
{
|
18084
18084
|
component: "form",
|
@@ -22385,11 +22385,11 @@ const Ff = ({
|
|
22385
22385
|
E({ start: pe[0] || /* @__PURE__ */ new Date(), end: pe[1] || /* @__PURE__ */ new Date() });
|
22386
22386
|
}, U = () => {
|
22387
22387
|
a($.BUDGETS_CLICK_FILTER);
|
22388
|
-
},
|
22388
|
+
}, Z = () => {
|
22389
22389
|
M(!0), a($.BUDGETS_CLICK_ADD);
|
22390
22390
|
}, Ee = () => {
|
22391
22391
|
M(!1);
|
22392
|
-
},
|
22392
|
+
}, W = Jt(C.end, Ve(/* @__PURE__ */ new Date()));
|
22393
22393
|
return !c || !d || !f ? /* @__PURE__ */ t(ge, {}) : /* @__PURE__ */ l(
|
22394
22394
|
Mt,
|
22395
22395
|
{
|
@@ -22398,10 +22398,10 @@ const Ff = ({
|
|
22398
22398
|
{
|
22399
22399
|
iconName: "add",
|
22400
22400
|
label: r.add_title,
|
22401
|
-
onClick:
|
22401
|
+
onClick: Z
|
22402
22402
|
}
|
22403
22403
|
],
|
22404
|
-
calendarActions: { onRangeChanged: q, shouldDisableNext:
|
22404
|
+
calendarActions: { onRangeChanged: q, shouldDisableNext: W },
|
22405
22405
|
onAccountsFilterClick: U,
|
22406
22406
|
onBackClick: e,
|
22407
22407
|
sx: n,
|
@@ -22419,7 +22419,7 @@ const Ff = ({
|
|
22419
22419
|
/* @__PURE__ */ t(y, { height: R || D ? "calc(100dvh - 150px)" : 450, children: /* @__PURE__ */ t(
|
22420
22420
|
tl,
|
22421
22421
|
{
|
22422
|
-
createBudgetOnClick:
|
22422
|
+
createBudgetOnClick: Z,
|
22423
22423
|
height: R || D ? 800 : 450,
|
22424
22424
|
isDraggable: !0,
|
22425
22425
|
shouldShowZeroState: N.length === 0,
|
@@ -23463,9 +23463,9 @@ const d0 = ({ widgets: e, isLoading: n }) => {
|
|
23463
23463
|
const { isMobile: e } = ye(), { onEvent: n } = K(), [i, a] = Tt({}), [o, r] = Tt(!1), { selectedAccountGuids: s } = ue(), { visibleHoldings: c, updateHoldings: d, holdingsLoaded: _ } = Ri(), [u, h] = g.useState(!1), [m, C] = Tt({
|
23464
23464
|
accounts: [],
|
23465
23465
|
holdings: []
|
23466
|
-
}), { accounts: f, investments: b } = I(), S = me().palette.mode === "dark", v = S ? "#0AC295" : "#09A57F", N = S ? "grey.300" : "grey.700", x = (
|
23467
|
-
const { isCopyLoaded:
|
23468
|
-
if (!
|
23466
|
+
}), { accounts: f, investments: b } = I(), S = me().palette.mode === "dark", v = S ? "#0AC295" : "#09A57F", N = S ? "grey.300" : "grey.700", x = (Q, J = "lesserThan") => J === "greaterThan" ? Q >= 0 ? v : N : Q <= 0 ? N : v, R = ({ data: Q }) => {
|
23467
|
+
const { isCopyLoaded: J } = ue(), [Le, ke] = Tt(null), [Fe, Ze] = Tt("");
|
23468
|
+
if (!J || !_)
|
23469
23469
|
return /* @__PURE__ */ t(ge, {});
|
23470
23470
|
const Re = (le, Xe) => {
|
23471
23471
|
ke(le), Ze(Xe.toFixed(2));
|
@@ -23625,24 +23625,24 @@ const d0 = ({ widgets: e, isLoading: n }) => {
|
|
23625
23625
|
disableColumnFilter: !0,
|
23626
23626
|
disableColumnMenu: !0,
|
23627
23627
|
hideFooter: !0,
|
23628
|
-
rows:
|
23628
|
+
rows: Q,
|
23629
23629
|
slotProps: { baseIconButton: { sx: { display: "none" } } }
|
23630
23630
|
}
|
23631
23631
|
) });
|
23632
23632
|
}, D = () => {
|
23633
23633
|
h(!0), n($.ACCOUNTS_CLICK_CONNECT);
|
23634
|
-
}, H = (
|
23634
|
+
}, H = (Q) => (J, Le) => {
|
23635
23635
|
a((ke) => ({
|
23636
23636
|
...ke,
|
23637
|
-
[
|
23637
|
+
[Q]: Le
|
23638
23638
|
}));
|
23639
23639
|
}, { visibleHoldings: O } = Ri(), { visibleInvestmentAccounts: M } = ve(), q = M.filter(
|
23640
|
-
({ guid:
|
23641
|
-
), U = q.reduce((
|
23642
|
-
({ account_guid:
|
23643
|
-
).reduce((
|
23644
|
-
const Le =
|
23645
|
-
return
|
23640
|
+
({ guid: Q }) => s.includes(Q)
|
23641
|
+
), U = q.reduce((Q, J) => Q + (J.balance || 0), 0), Z = q.map(({ guid: Q }) => Q), W = O.filter(
|
23642
|
+
({ account_guid: Q }) => Z.includes(Q)
|
23643
|
+
).reduce((Q, J) => {
|
23644
|
+
const Le = J.market_value ? J.market_value - (J.cost_basis || 0) : 0;
|
23645
|
+
return Q + Le;
|
23646
23646
|
}, 0), pe = () => {
|
23647
23647
|
r(!1);
|
23648
23648
|
};
|
@@ -23659,17 +23659,17 @@ const d0 = ({ widgets: e, isLoading: n }) => {
|
|
23659
23659
|
/* @__PURE__ */ t(
|
23660
23660
|
pt,
|
23661
23661
|
{
|
23662
|
-
name:
|
23662
|
+
name: W >= 0 ? "trending_up" : "trending_down",
|
23663
23663
|
size: 20,
|
23664
|
-
sx: { color: x(
|
23664
|
+
sx: { color: x(W, "greaterThan") }
|
23665
23665
|
}
|
23666
23666
|
),
|
23667
23667
|
/* @__PURE__ */ t(
|
23668
23668
|
p,
|
23669
23669
|
{
|
23670
|
-
sx: { color: x(
|
23670
|
+
sx: { color: x(W, "greaterThan"), fontWeight: 700 },
|
23671
23671
|
variant: "Small",
|
23672
|
-
children:
|
23672
|
+
children: W.toLocaleString("en-US", {
|
23673
23673
|
currency: "USD",
|
23674
23674
|
maximumFractionDigits: 2,
|
23675
23675
|
minimumFractionDigits: 2,
|
@@ -23679,8 +23679,8 @@ const d0 = ({ widgets: e, isLoading: n }) => {
|
|
23679
23679
|
)
|
23680
23680
|
] })
|
23681
23681
|
] }),
|
23682
|
-
q.map((
|
23683
|
-
const
|
23682
|
+
q.map((Q) => {
|
23683
|
+
const J = O.filter((Ye) => Ye.account_guid === Q.guid).map((Ye) => ({
|
23684
23684
|
id: Ye.guid,
|
23685
23685
|
qty: Ye.shares || 0,
|
23686
23686
|
holding: Ye.symbol || Ye.description || "Unknown",
|
@@ -23688,7 +23688,7 @@ const d0 = ({ widgets: e, isLoading: n }) => {
|
|
23688
23688
|
totalGainLoss: Ye.market_value ? Ye.market_value - (Ye.cost_basis || 0) : 0,
|
23689
23689
|
marketValue: Ye.market_value || 0,
|
23690
23690
|
description: Ye.description || ""
|
23691
|
-
})), Le =
|
23691
|
+
})), Le = J.length > 0, ke = Q.balance, Fe = J.reduce(
|
23692
23692
|
(Ye, ce) => ce.totalGainLoss + Ye,
|
23693
23693
|
0
|
23694
23694
|
), Ze = ke ? Fe / ke * 100 : 0;
|
@@ -23696,10 +23696,10 @@ const d0 = ({ widgets: e, isLoading: n }) => {
|
|
23696
23696
|
return /* @__PURE__ */ t(
|
23697
23697
|
It,
|
23698
23698
|
{
|
23699
|
-
onClick:
|
23699
|
+
onClick: J.length ? () => {
|
23700
23700
|
r(!0), C({
|
23701
|
-
holdings:
|
23702
|
-
accounts:
|
23701
|
+
holdings: J,
|
23702
|
+
accounts: Q
|
23703
23703
|
});
|
23704
23704
|
} : void 0,
|
23705
23705
|
sx: {
|
@@ -23735,14 +23735,14 @@ const d0 = ({ widgets: e, isLoading: n }) => {
|
|
23735
23735
|
/* @__PURE__ */ t(
|
23736
23736
|
bt,
|
23737
23737
|
{
|
23738
|
-
alt:
|
23739
|
-
institutionGuid:
|
23738
|
+
alt: Q.institutionName || "",
|
23739
|
+
institutionGuid: Q.institution_guid || "",
|
23740
23740
|
size: 32
|
23741
23741
|
}
|
23742
23742
|
),
|
23743
23743
|
/* @__PURE__ */ l(Se, { sx: { overflow: "hidden", pl: 13, pr: 13 }, children: [
|
23744
|
-
/* @__PURE__ */ t(p, { sx: { color: "text.secondary" }, variant: "XSmall", children:
|
23745
|
-
/* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children:
|
23744
|
+
/* @__PURE__ */ t(p, { sx: { color: "text.secondary" }, variant: "XSmall", children: Q.memberName }),
|
23745
|
+
/* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: Q.user_name || Q.name })
|
23746
23746
|
] })
|
23747
23747
|
]
|
23748
23748
|
}
|
@@ -23859,14 +23859,14 @@ const d0 = ({ widgets: e, isLoading: n }) => {
|
|
23859
23859
|
}
|
23860
23860
|
)
|
23861
23861
|
},
|
23862
|
-
|
23862
|
+
Q.guid
|
23863
23863
|
);
|
23864
|
-
const Re = S ? "grey.700" : "grey.400", ot =
|
23864
|
+
const Re = S ? "grey.700" : "grey.400", ot = J.length ? "text.primary" : Re;
|
23865
23865
|
return /* @__PURE__ */ l(
|
23866
23866
|
Pi,
|
23867
23867
|
{
|
23868
|
-
expanded: i[
|
23869
|
-
onChange: Le ? H(
|
23868
|
+
expanded: i[Q.guid] === !0,
|
23869
|
+
onChange: Le ? H(Q.guid) : () => {
|
23870
23870
|
},
|
23871
23871
|
sx: {
|
23872
23872
|
border: 1,
|
@@ -23881,7 +23881,7 @@ const d0 = ({ widgets: e, isLoading: n }) => {
|
|
23881
23881
|
"aria-controls": "panel1a-content",
|
23882
23882
|
id: "panel1a-header",
|
23883
23883
|
sx: [
|
23884
|
-
i[
|
23884
|
+
i[Q.guid] && {
|
23885
23885
|
borderBottom: 1,
|
23886
23886
|
borderColor: "border.main"
|
23887
23887
|
}
|
@@ -23902,14 +23902,14 @@ const d0 = ({ widgets: e, isLoading: n }) => {
|
|
23902
23902
|
/* @__PURE__ */ t(
|
23903
23903
|
bt,
|
23904
23904
|
{
|
23905
|
-
alt:
|
23906
|
-
institutionGuid:
|
23905
|
+
alt: Q.institutionName || "",
|
23906
|
+
institutionGuid: Q.institution_guid || "",
|
23907
23907
|
size: 32
|
23908
23908
|
}
|
23909
23909
|
),
|
23910
23910
|
/* @__PURE__ */ l(Se, { sx: { alignItems: "flex-start" }, children: [
|
23911
|
-
/* @__PURE__ */ t(p, { sx: { color: "text.secondary" }, variant: "XSmall", children:
|
23912
|
-
/* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children:
|
23911
|
+
/* @__PURE__ */ t(p, { sx: { color: "text.secondary" }, variant: "XSmall", children: Q.memberName }),
|
23912
|
+
/* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: Q.user_name || Q.name })
|
23913
23913
|
] })
|
23914
23914
|
]
|
23915
23915
|
}
|
@@ -23983,10 +23983,10 @@ const d0 = ({ widgets: e, isLoading: n }) => {
|
|
23983
23983
|
]
|
23984
23984
|
}
|
23985
23985
|
),
|
23986
|
-
/* @__PURE__ */ t(Hi, { sx: { background: "background.default", p: 12 }, children: /* @__PURE__ */ t(It, { sx: { border: 1, borderColor: "border.light" }, children: /* @__PURE__ */ t(R, { data:
|
23986
|
+
/* @__PURE__ */ t(Hi, { sx: { background: "background.default", p: 12 }, children: /* @__PURE__ */ t(It, { sx: { border: 1, borderColor: "border.light" }, children: /* @__PURE__ */ t(R, { data: J }) }) })
|
23987
23987
|
]
|
23988
23988
|
},
|
23989
|
-
|
23989
|
+
Q.guid
|
23990
23990
|
);
|
23991
23991
|
}),
|
23992
23992
|
/* @__PURE__ */ l(Se, { sx: { alignItems: "center", gap: 24, height: 164, p: 24, width: "100%" }, children: [
|
@@ -25506,10 +25506,10 @@ const Yi = g.createContext(null), M0 = ({
|
|
25506
25506
|
}, O = () => {
|
25507
25507
|
if (!S || !b) return;
|
25508
25508
|
S - b > V0 ? x(Yt.ON_CAROUSEL_FORWARD_SWIPE) : x(Yt.ON_CAROUSEL_BACK_SWIPE);
|
25509
|
-
}, M = (
|
25510
|
-
E(
|
25511
|
-
}, q = (
|
25512
|
-
E(null), v(
|
25509
|
+
}, M = (W) => {
|
25510
|
+
E(W.targetTouches[0].clientX);
|
25511
|
+
}, q = (W) => {
|
25512
|
+
E(null), v(W.targetTouches[0].clientX);
|
25513
25513
|
}, U = {
|
25514
25514
|
clientColorScheme: n,
|
25515
25515
|
showCTAColocatedWithText: i,
|
@@ -25518,7 +25518,7 @@ const Yi = g.createContext(null), M0 = ({
|
|
25518
25518
|
showIcon: c,
|
25519
25519
|
variant: _,
|
25520
25520
|
widthOverrides: u
|
25521
|
-
},
|
25521
|
+
}, Z = m.current && m.current.offsetWidth ? Math.round(C / m.current.offsetWidth) : 0, Ee = m.current ? m.current.scrollWidth - m.current.offsetWidth : 0;
|
25522
25522
|
return /* @__PURE__ */ l(
|
25523
25523
|
"div",
|
25524
25524
|
{
|
@@ -25537,29 +25537,29 @@ const Yi = g.createContext(null), M0 = ({
|
|
25537
25537
|
onTouchStart: q,
|
25538
25538
|
ref: m,
|
25539
25539
|
children: [
|
25540
|
-
e.map((
|
25541
|
-
const
|
25540
|
+
e.map((W, pe) => {
|
25541
|
+
const Q = pe + 1, J = e.length + 1, Le = T(
|
25542
25542
|
N.card_position_in_carousel_aria,
|
25543
|
-
|
25544
|
-
|
25545
|
-
), ke =
|
25543
|
+
Q.toString(),
|
25544
|
+
J.toString()
|
25545
|
+
), ke = W.micro_title && W.micro_title.length > 0, Fe = W.micro_description && W.micro_description.length > 0, Ze = ke ? W.micro_title : W.title, Re = Fe ? W.micro_description : W.description;
|
25546
25546
|
return /* @__PURE__ */ t(
|
25547
25547
|
K0,
|
25548
25548
|
{
|
25549
25549
|
ariaLabel: `${Le}: ${Ze}, ${Re}`,
|
25550
|
-
beat:
|
25550
|
+
beat: W,
|
25551
25551
|
index: pe,
|
25552
|
-
isActiveCard: pe ===
|
25552
|
+
isActiveCard: pe === Z,
|
25553
25553
|
onCardClick: o,
|
25554
25554
|
...U
|
25555
25555
|
},
|
25556
|
-
`${
|
25556
|
+
`${W.guid} ${pe}`
|
25557
25557
|
);
|
25558
25558
|
}),
|
25559
25559
|
/* @__PURE__ */ t(
|
25560
25560
|
ib,
|
25561
25561
|
{
|
25562
|
-
isActiveCard:
|
25562
|
+
isActiveCard: Z === e.length,
|
25563
25563
|
onCardClick: o,
|
25564
25564
|
...U
|
25565
25565
|
}
|
@@ -25571,7 +25571,7 @@ const Yi = g.createContext(null), M0 = ({
|
|
25571
25571
|
z0,
|
25572
25572
|
{
|
25573
25573
|
clientColorScheme: n,
|
25574
|
-
currentBeatIndex:
|
25574
|
+
currentBeatIndex: Z,
|
25575
25575
|
numBeats: e.length + 1,
|
25576
25576
|
onNextClick: R,
|
25577
25577
|
onPreviousClick: D,
|
@@ -25837,12 +25837,12 @@ const Yi = g.createContext(null), M0 = ({
|
|
25837
25837
|
g.useEffect(() => {
|
25838
25838
|
bn.isInitialized || bn.initialize(o, E, s);
|
25839
25839
|
}, [o, E, s, bn.isInitialized]), g.useEffect(() => {
|
25840
|
-
const
|
25841
|
-
|
25840
|
+
const W = window.innerHeight;
|
25841
|
+
W < 180 ? H("STANDARD") : W >= 180 && W < 200 ? H("LARGE") : W >= 200 && W < 248 ? H("XLARGE") : W >= 248 && H("XXLARGE");
|
25842
25842
|
}, [window.innerHeight]), g.useEffect(() => {
|
25843
25843
|
M(!e && bn.isInitialized);
|
25844
25844
|
}, [e, bn.isInitialized]);
|
25845
|
-
const
|
25845
|
+
const Z = {
|
25846
25846
|
showCTAColocatedWithText: a,
|
25847
25847
|
heightOverrides: r,
|
25848
25848
|
onCardClick: c,
|
@@ -25854,7 +25854,7 @@ const Yi = g.createContext(null), M0 = ({
|
|
25854
25854
|
}, Ee = {
|
25855
25855
|
carouselSize: D,
|
25856
25856
|
variant: N,
|
25857
|
-
...
|
25857
|
+
...Z
|
25858
25858
|
};
|
25859
25859
|
return (
|
25860
25860
|
// The Theme provider must wrap the component so that the styles don't break when imported into other applications.
|
@@ -25878,7 +25878,7 @@ const Yi = g.createContext(null), M0 = ({
|
|
25878
25878
|
clientColorScheme: i,
|
25879
25879
|
showCarouselControls: m,
|
25880
25880
|
variant: h ? N : void 0,
|
25881
|
-
...
|
25881
|
+
...Z
|
25882
25882
|
}
|
25883
25883
|
),
|
25884
25884
|
O && !n.length && v && /* @__PURE__ */ t(ul, { clientColorScheme: i, ...Ee }),
|
@@ -27448,7 +27448,7 @@ const Yi = g.createContext(null), M0 = ({
|
|
27448
27448
|
const q = v.categoryData.find((U) => U.guid === "other");
|
27449
27449
|
d({
|
27450
27450
|
...M,
|
27451
|
-
custom: (U) => !!q?.categoryTotals?.find((
|
27451
|
+
custom: (U) => !!q?.categoryTotals?.find((Z) => Z.guid === U.top_level_category_guid)
|
27452
27452
|
});
|
27453
27453
|
} else
|
27454
27454
|
d({
|
@@ -27742,7 +27742,7 @@ const Ob = (e) => e.reduce((i, a) => {
|
|
27742
27742
|
N(!0);
|
27743
27743
|
});
|
27744
27744
|
}, [C, f, q]);
|
27745
|
-
const
|
27745
|
+
const Z = g.useMemo(() => {
|
27746
27746
|
if (!v) return { stackedDatasets: [], unstackedDatasets: [] };
|
27747
27747
|
const Re = Lb(
|
27748
27748
|
_,
|
@@ -27764,16 +27764,16 @@ const Ob = (e) => e.reduce((i, a) => {
|
|
27764
27764
|
s ? ae.MONTH_SHORT_YEAR : ae.MONTH_YEAR
|
27765
27765
|
);
|
27766
27766
|
return `${Re} - ${ot}`;
|
27767
|
-
}, [q, s]),
|
27767
|
+
}, [q, s]), W = (Re, ot) => {
|
27768
27768
|
H(ot ?? D), a($.TRENDS_CLICK_TOGGLE);
|
27769
27769
|
}, pe = (Re) => {
|
27770
27770
|
const ot = _r(Re?.[0], 1), Ye = Re?.[1], ce = tu(Ye, ot);
|
27771
27771
|
U({ start: ot, end: Ye }), a($.TRENDS_CLICK_DATE, {
|
27772
27772
|
time_period: ce + "M"
|
27773
27773
|
});
|
27774
|
-
},
|
27774
|
+
}, Q = () => {
|
27775
27775
|
a($.TRENDS_CLICK_FILTER);
|
27776
|
-
},
|
27776
|
+
}, J = (Re) => {
|
27777
27777
|
M(Re);
|
27778
27778
|
}, Le = (Re) => {
|
27779
27779
|
M(Re), a($.TRENDS_CLICK_LEGEND, { category: u(Re) });
|
@@ -27791,7 +27791,7 @@ const Ob = (e) => e.reduce((i, a) => {
|
|
27791
27791
|
calendarActions: { onRangeChanged: pe },
|
27792
27792
|
dateRange: q,
|
27793
27793
|
dateRangeVariant: "timeframebuttons",
|
27794
|
-
onAccountsFilterClick:
|
27794
|
+
onAccountsFilterClick: Q,
|
27795
27795
|
onBackClick: e,
|
27796
27796
|
sx: n,
|
27797
27797
|
title: E.title,
|
@@ -27832,7 +27832,7 @@ const Ob = (e) => e.reduce((i, a) => {
|
|
27832
27832
|
ki,
|
27833
27833
|
{
|
27834
27834
|
exclusive: !0,
|
27835
|
-
onChange:
|
27835
|
+
onChange: W,
|
27836
27836
|
orientation: "horizontal",
|
27837
27837
|
value: D,
|
27838
27838
|
children: ["Chart", "Table"].map((Re) => /* @__PURE__ */ t(
|
@@ -27885,15 +27885,15 @@ const Ob = (e) => e.reduce((i, a) => {
|
|
27885
27885
|
onHoverArea: Fe,
|
27886
27886
|
onHoverLegend: ke,
|
27887
27887
|
onHoverPoint: Ze,
|
27888
|
-
stackedDatasets:
|
27889
|
-
unstackedDatasets:
|
27888
|
+
stackedDatasets: Z.stackedDatasets,
|
27889
|
+
unstackedDatasets: Z.unstackedDatasets
|
27890
27890
|
}
|
27891
27891
|
),
|
27892
27892
|
D === "Table" && /* @__PURE__ */ t(
|
27893
27893
|
Hb,
|
27894
27894
|
{
|
27895
27895
|
monthlyCategoryTotals: _,
|
27896
|
-
onClickRow:
|
27896
|
+
onClickRow: J,
|
27897
27897
|
selectedCategory: O,
|
27898
27898
|
selectedDateRange: q
|
27899
27899
|
}
|