@mx-cartographer/experiences 6.24.1-alpha.mega1 → 6.24.1-alpha.mega2
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 +92 -90
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1300,7 +1300,7 @@ const xa = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
|
1300
1300
|
if (!n)
|
|
1301
1301
|
throw new Error(`${e}() must be used within the GlobalDataContext`);
|
|
1302
1302
|
return n;
|
|
1303
|
-
},
|
|
1303
|
+
}, fe = () => et("useAccountStore").globalStore.accountStore, Pt = () => et("useAppConfig").globalStore.appDataStore.appConfig, lo = () => et("useAnalyticsStore").globalStore.analyticsStore, ht = () => et("useBudgetsStore").globalStore.budgetsStore, uo = () => et("useCashflowStore").globalStore.cashflowStore, Ve = () => et("useCategoryStore").globalStore.categoryStore, zs = () => et("useConnectStore").globalStore.connectStore, _a = () => et("useDebtsStore").globalStore.debtsStore, oi = () => et("useGlobalStore").globalStore, se = () => et("useGlobalUiStore").globalStore.globalUiStore, x = () => et("globalCopyStore").globalStore.copyStore.copy, ct = () => et("useGoalStore").globalStore.goalStore, _o = () => et("useHelpStore").globalStore.helpStore, Fn = () => et("useHoldingStore").globalStore.holdingStore, Ru = () => et("useMerchantStore").globalStore.merchantStore, js = () => et("useNetWorthStore").globalStore.netWorthStore, $s = () => et("useNotificationStore").globalStore.notificationStore, tt = () => et("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, pt = () => et("useSettingsStore").globalStore.settingsStore, Oe = () => et("useTransactionStore").globalStore.transactionStore, Xs = () => et("useTrendsStore").globalStore.trendsStore, wt = () => et("useUserStore").globalStore.userStore, X = () => ({ onEvent: et().onEvent }), G4 = () => ({ onPageView: et().onPageView }), Lu = (e = "useWidgetContainerContext") => {
|
|
1304
1304
|
const n = g.useContext(Ys);
|
|
1305
1305
|
if (!n)
|
|
1306
1306
|
throw new Error(`${e}() must be used within the WidgetContainerContext`);
|
|
@@ -2547,7 +2547,7 @@ const Xu = ({
|
|
|
2547
2547
|
type: "line",
|
|
2548
2548
|
highlightScope: { highlight: "item" },
|
|
2549
2549
|
valueFormatter: (Ke) => P(Ke, "0,0")
|
|
2550
|
-
})),
|
|
2550
|
+
})), be = r.map((z, Ne) => ({
|
|
2551
2551
|
id: `unstacked-${Ne}`,
|
|
2552
2552
|
guid: z.category_guid,
|
|
2553
2553
|
top_level_guid: z.top_level_category_guid,
|
|
@@ -2557,12 +2557,12 @@ const Xu = ({
|
|
|
2557
2557
|
label: z.category_name,
|
|
2558
2558
|
type: "line",
|
|
2559
2559
|
valueFormatter: (Ke) => P(Ke, "0,0")
|
|
2560
|
-
})), ke = [...ye, ...
|
|
2560
|
+
})), ke = [...ye, ...be], Re = [
|
|
2561
2561
|
...ye.map(({ guid: z, top_level_guid: Ne }) => ({
|
|
2562
2562
|
guid: z,
|
|
2563
2563
|
top_level_guid: Ne
|
|
2564
2564
|
})),
|
|
2565
|
-
...
|
|
2565
|
+
...be.map(({ guid: z, top_level_guid: Ne }) => ({
|
|
2566
2566
|
guid: z,
|
|
2567
2567
|
top_level_guid: Ne
|
|
2568
2568
|
}))
|
|
@@ -3392,7 +3392,7 @@ const ha = ({
|
|
|
3392
3392
|
dateRangeEditTitle: L.date_range_picker.edit_title,
|
|
3393
3393
|
dateRangeNextAria: L.date_range_picker.next_aria,
|
|
3394
3394
|
dateRangePreviousAria: L.date_range_picker.previous_aria
|
|
3395
|
-
},
|
|
3395
|
+
}, be = o ? o.start : O.start, ke = o ? o.end : O.end, Re = n?.length > 1;
|
|
3396
3396
|
return /* @__PURE__ */ l(
|
|
3397
3397
|
bt,
|
|
3398
3398
|
{
|
|
@@ -3414,7 +3414,7 @@ const ha = ({
|
|
|
3414
3414
|
{
|
|
3415
3415
|
calendarActions: i,
|
|
3416
3416
|
copy: ye,
|
|
3417
|
-
range: [
|
|
3417
|
+
range: [be, ke],
|
|
3418
3418
|
shouldShrinkToIcon: !1,
|
|
3419
3419
|
variant: r
|
|
3420
3420
|
}
|
|
@@ -3489,7 +3489,7 @@ const ha = ({
|
|
|
3489
3489
|
{
|
|
3490
3490
|
calendarActions: i,
|
|
3491
3491
|
copy: ye,
|
|
3492
|
-
range: [
|
|
3492
|
+
range: [be, ke],
|
|
3493
3493
|
shouldShrinkToIcon: !1,
|
|
3494
3494
|
variant: r
|
|
3495
3495
|
}
|
|
@@ -3541,7 +3541,7 @@ const cr = "connect_widget", lr = "connections_widget", m_ = ({
|
|
|
3541
3541
|
title: a
|
|
3542
3542
|
}) => {
|
|
3543
3543
|
let o;
|
|
3544
|
-
const { refreshAccounts: r } =
|
|
3544
|
+
const { refreshAccounts: r } = fe(), { loadWidget: s } = zs(), { connect: c } = x(), [d, _] = g.useState(!1), [u, h] = g.useState(!1), {
|
|
3545
3545
|
palette: { mode: m }
|
|
3546
3546
|
} = pe();
|
|
3547
3547
|
return g.useEffect(() => (i ? (_(!0), s({ mode: m, ...e }).then((p) => {
|
|
@@ -4454,7 +4454,7 @@ const ri = () => {
|
|
|
4454
4454
|
/* @__PURE__ */ t(je, { amount: e, bold: !0, sx: { fontSize: 12 } })
|
|
4455
4455
|
] });
|
|
4456
4456
|
}, Co = T(v_), N_ = ({ onAddIncomeClick: e }) => {
|
|
4457
|
-
const n = pe(), { availableWidth: i } = Sn(), { isMobile: a } = me(), { visibleCashAccounts: o, visibleCashBalance: r } =
|
|
4457
|
+
const n = pe(), { availableWidth: i } = Sn(), { isMobile: a } = me(), { visibleCashAccounts: o, visibleCashBalance: r } = fe(), { selectedAccountGuids: s } = se(), { cashflow: c } = x(), { userProfile: d } = wt(), {
|
|
4458
4458
|
daysUntilNextIncome: _,
|
|
4459
4459
|
expensesTilNextIncome: u,
|
|
4460
4460
|
selectedCashAccounts: h,
|
|
@@ -7520,7 +7520,7 @@ const cc = ({ transaction: e }) => {
|
|
|
7520
7520
|
}
|
|
7521
7521
|
) : /* @__PURE__ */ t(le, {});
|
|
7522
7522
|
}, Tg = T(Sg), xg = () => {
|
|
7523
|
-
const { visibleAccounts: e } =
|
|
7523
|
+
const { visibleAccounts: e } = fe(), { common: n, transactions: i } = x(), { manualTransaction: a, setIsAmountValid: o, updateManualTransaction: r } = vt(), [s, c] = g.useState(""), [d, _] = g.useState(""), u = g.useMemo(
|
|
7524
7524
|
() => e.filter((y) => y.is_manual),
|
|
7525
7525
|
[e]
|
|
7526
7526
|
).map((y) => ({
|
|
@@ -7664,7 +7664,7 @@ const cc = ({ transaction: e }) => {
|
|
|
7664
7664
|
showInsights: i = !1,
|
|
7665
7665
|
sx: a = {}
|
|
7666
7666
|
}) => {
|
|
7667
|
-
const { visibleAccounts: o, refreshAccounts: r } =
|
|
7667
|
+
const { visibleAccounts: o, refreshAccounts: r } = fe(), { is_mobile_webview: s } = Pt(), { setSearchValue: c } = un(), { onEvent: d } = X(), { common: _, transactions: u } = x(), {
|
|
7668
7668
|
displayedDateRange: h,
|
|
7669
7669
|
isCopyLoaded: m,
|
|
7670
7670
|
isInitialized: p,
|
|
@@ -7685,7 +7685,7 @@ const cc = ({ transaction: e }) => {
|
|
|
7685
7685
|
isAmountValid: te,
|
|
7686
7686
|
searchValue: ue,
|
|
7687
7687
|
setSearchValue: ye,
|
|
7688
|
-
setShowInsights:
|
|
7688
|
+
setShowInsights: be,
|
|
7689
7689
|
updateManualTransaction: ke
|
|
7690
7690
|
} = vt(), { userProfile: Re } = wt(), [he, ge] = g.useState(""), [Ee, B] = g.useState(""), [ne, Me] = g.useState(!1), [qe, z] = g.useState(!1), [Ne, Ke] = g.useState(!1);
|
|
7691
7691
|
g.useEffect(() => {
|
|
@@ -7702,7 +7702,7 @@ const cc = ({ transaction: e }) => {
|
|
|
7702
7702
|
dateRange: { start: h.start, end: h.end }
|
|
7703
7703
|
}), D(h.start).finally());
|
|
7704
7704
|
}, [Ne, h, f]), g.useEffect(() => {
|
|
7705
|
-
|
|
7705
|
+
be(i);
|
|
7706
7706
|
}, [i]);
|
|
7707
7707
|
const Gt = g.useMemo(
|
|
7708
7708
|
() => o.filter((lt) => lt.is_manual),
|
|
@@ -8890,7 +8890,7 @@ const cc = ({ transaction: e }) => {
|
|
|
8890
8890
|
] }) })
|
|
8891
8891
|
] });
|
|
8892
8892
|
}), z4 = T(({ onBackClick: e, sx: n = {} }) => {
|
|
8893
|
-
const { accounts: i } =
|
|
8893
|
+
const { accounts: i } = fe(), { recurring: a } = x(), { isCopyLoaded: o, isInitialized: r, selectedAccountGuids: s, setSelectedAccounts: c } = se(), { isDataLoaded: d, loadRepeatingTransactions: _, setDateRange: u } = tt(), { setFilter: h } = Oe(), { onEvent: m } = X(), [p, f] = g.useState(!1);
|
|
8894
8894
|
return g.useEffect(() => {
|
|
8895
8895
|
c(i);
|
|
8896
8896
|
}, [i]), g.useEffect(() => {
|
|
@@ -8956,7 +8956,7 @@ const cc = ({ transaction: e }) => {
|
|
|
8956
8956
|
] });
|
|
8957
8957
|
}), j4 = T(
|
|
8958
8958
|
({ onPrimaryCtaClick: e, sx: n }) => {
|
|
8959
|
-
const { accounts: i } =
|
|
8959
|
+
const { accounts: i } = fe(), { recurring: a } = x(), { setFilter: o } = Oe(), { isDataLoaded: r, loadRepeatingTransactions: s } = tt(), { isCopyLoaded: c, isInitialized: d, setSelectedAccounts: _, selectedAccountGuids: u } = se();
|
|
8960
8960
|
return g.useEffect(() => {
|
|
8961
8961
|
d && _(i);
|
|
8962
8962
|
}, [d]), g.useEffect(() => {
|
|
@@ -9057,7 +9057,7 @@ const cc = ({ transaction: e }) => {
|
|
|
9057
9057
|
] });
|
|
9058
9058
|
}), $4 = T(
|
|
9059
9059
|
({ onCTAClick: e }) => {
|
|
9060
|
-
const [n, i] = g.useState(!1), { accounts: a } =
|
|
9060
|
+
const [n, i] = g.useState(!1), { accounts: a } = fe(), [o, { width: r }] = vi(), { isCopyLoaded: s, isInitialized: c, selectedAccountGuids: d, setSelectedAccounts: _ } = se(), {
|
|
9061
9061
|
loadRepeatingTransactions: u,
|
|
9062
9062
|
upcomingRecurrences: h,
|
|
9063
9063
|
expenseTotal: m,
|
|
@@ -9099,7 +9099,7 @@ const cc = ({ transaction: e }) => {
|
|
|
9099
9099
|
maxLogos: 3,
|
|
9100
9100
|
upcomingRecurrences: h
|
|
9101
9101
|
}
|
|
9102
|
-
) : /* @__PURE__ */ t(Pg, { maxLogos: 3, upcomingRecurrences: h }) : /* @__PURE__ */ t(b, { sx: { width: O ? 64 : 104 } }),
|
|
9102
|
+
) : /* @__PURE__ */ t(Pg, { maxLogos: 3, upcomingRecurrences: h }) : /* @__PURE__ */ t(b, { sx: { width: O ? 64 : 104 } }), be = [
|
|
9103
9103
|
{
|
|
9104
9104
|
amount: f,
|
|
9105
9105
|
bgColor: "success.main",
|
|
@@ -9179,7 +9179,7 @@ const cc = ({ transaction: e }) => {
|
|
|
9179
9179
|
gap: 16,
|
|
9180
9180
|
mt: 4
|
|
9181
9181
|
},
|
|
9182
|
-
children:
|
|
9182
|
+
children: be.map((Re, he) => /* @__PURE__ */ t(
|
|
9183
9183
|
Wg,
|
|
9184
9184
|
{
|
|
9185
9185
|
amount: Re.amount,
|
|
@@ -10254,7 +10254,7 @@ const Jg = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
|
10254
10254
|
[U, h]
|
|
10255
10255
|
), ye = !!n.filter(
|
|
10256
10256
|
(he) => he.repeating_transaction_type === nn.Income
|
|
10257
|
-
).length,
|
|
10257
|
+
).length, be = async () => {
|
|
10258
10258
|
M(2), d(
|
|
10259
10259
|
// Beginning of the month, 90 days before today
|
|
10260
10260
|
Ye(It(Se(), 90)),
|
|
@@ -10300,7 +10300,7 @@ const Jg = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
|
10300
10300
|
sx: {
|
|
10301
10301
|
...s ? { display: "flex", flexDirection: "column", maxWidth: "100%", padding: "0 16px" } : { maxWidth: 590, ml: "40%", mr: 90 }
|
|
10302
10302
|
},
|
|
10303
|
-
children: /* @__PURE__ */ t(dm, { handleNextStep:
|
|
10303
|
+
children: /* @__PURE__ */ t(dm, { handleNextStep: be })
|
|
10304
10304
|
}
|
|
10305
10305
|
),
|
|
10306
10306
|
G === 2 && /* @__PURE__ */ t(
|
|
@@ -10390,7 +10390,7 @@ const Jg = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
|
10390
10390
|
Q,
|
|
10391
10391
|
{
|
|
10392
10392
|
onClick: () => {
|
|
10393
|
-
te(""), f(!0),
|
|
10393
|
+
te(""), f(!0), be().finally();
|
|
10394
10394
|
},
|
|
10395
10395
|
variant: "outlined",
|
|
10396
10396
|
children: a.cancel_button
|
|
@@ -10432,7 +10432,7 @@ const Jg = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
|
10432
10432
|
setSelectedAccounts: o,
|
|
10433
10433
|
shouldDisableNextDate: r,
|
|
10434
10434
|
shouldDisablePrevDate: s
|
|
10435
|
-
} = se(), { onEvent: c } = X(), { visibleCashAccounts: d } =
|
|
10435
|
+
} = se(), { onEvent: c } = X(), { visibleCashAccounts: d } = fe(), { setFilter: _ } = Oe(), { userProfile: u } = wt(), { dateRange: h, setSelectedCashAccounts: m } = ri(), { loadRepeatingTransactions: p, setDateRange: f } = tt(), { cashflow: E } = x(), { isCopyLoaded: y, isInitialized: A } = se(), [I, v] = g.useState(!1);
|
|
10436
10436
|
return g.useEffect(() => {
|
|
10437
10437
|
A && (f(h), p().finally());
|
|
10438
10438
|
}, [A]), g.useEffect(() => {
|
|
@@ -11028,7 +11028,7 @@ const _n = () => {
|
|
|
11028
11028
|
}, Sm = T(Am), Ft = () => {
|
|
11029
11029
|
if (!g.useContext(Yn))
|
|
11030
11030
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
|
11031
|
-
return
|
|
11031
|
+
return fe().uiStore;
|
|
11032
11032
|
}, Ni = (e) => e.top_level_category_guid === N.INCOME || e.category_guid === N.INCOME, xc = (e) => !Ni(e) && !wc(e), Ic = (e) => Zo.includes(e.top_level_category_guid) || Zo.includes(e.category_guid), wc = (e) => e.top_level_category_guid === N.TRANSFER || e.category_guid === N.TRANSFER, Tm = (e) => !Ni(e) && !Ic(e) && !wc(e), vc = (e) => e.filter((n) => n.category_guid === n.top_level_category_guid), Rr = (e, n) => {
|
|
11033
11033
|
if (n === 0) return 0;
|
|
11034
11034
|
const i = (e - n) / n;
|
|
@@ -11122,7 +11122,7 @@ const _n = () => {
|
|
|
11122
11122
|
}
|
|
11123
11123
|
);
|
|
11124
11124
|
}, Lm = T(Rm), Om = ({ customDetailsChart: e }) => {
|
|
11125
|
-
const { institutions: n } =
|
|
11125
|
+
const { institutions: n } = fe(), { selectedAccount: i } = Ft(), { accounts: a } = x(), { firstSubtitle: o, firstValue: r, hasAvailableBalance: s, secondSubtitle: c, secondValue: d } = Ac(i, a), _ = n.find(
|
|
11126
11126
|
(h) => h.guid === i?.institution_guid
|
|
11127
11127
|
), u = [
|
|
11128
11128
|
...ao,
|
|
@@ -11478,7 +11478,7 @@ const Rc = ({
|
|
|
11478
11478
|
}
|
|
11479
11479
|
);
|
|
11480
11480
|
}), Fm = T(({ debt: e }) => {
|
|
11481
|
-
const { debts: n } = x(), { updateAccount: i } =
|
|
11481
|
+
const { debts: n } = x(), { updateAccount: i } = fe(), { onEvent: a } = X(), [o, r] = g.useState(e.interest_rate ?? 0), s = o < 0, c = async () => {
|
|
11482
11482
|
await i({ ...e.account, interest_rate: o }), e.interest_rate = o, a(W.DEBTS_SAVE_RATE_ACTION, { account_guid: e.guid });
|
|
11483
11483
|
}, d = () => {
|
|
11484
11484
|
setTimeout(() => {
|
|
@@ -11508,7 +11508,7 @@ const Rc = ({
|
|
|
11508
11508
|
}
|
|
11509
11509
|
);
|
|
11510
11510
|
}), Wm = T(({ debt: e }) => {
|
|
11511
|
-
const { debts: n } = x(), { updateAccount: i } =
|
|
11511
|
+
const { debts: n } = x(), { updateAccount: i } = fe(), { onEvent: a } = X(), [o, r] = g.useState(e.monthly_payment ?? 0), s = o < 0 || o > 9999999999e-2, c = async () => {
|
|
11512
11512
|
await i({ ...e.account, minimum_payment: o }), e.monthly_payment = o, a(W.DEBTS_SAVE_PAYMENT_ACTION, { account_guid: e.guid });
|
|
11513
11513
|
}, d = () => {
|
|
11514
11514
|
setTimeout(() => {
|
|
@@ -11540,7 +11540,7 @@ const Rc = ({
|
|
|
11540
11540
|
}
|
|
11541
11541
|
);
|
|
11542
11542
|
}), Um = T(({ debt: e }) => {
|
|
11543
|
-
const { debts: n } = x(), { updateAccount: i } =
|
|
11543
|
+
const { debts: n } = x(), { updateAccount: i } = fe(), { onEvent: a } = X(), [o, r] = g.useState(e.original_balance ?? 0), s = o < 0 || o > 9999999999e-2, c = async () => {
|
|
11544
11544
|
await i({ ...e.account, original_balance: o }), e.original_balance = o, a(W.DEBTS_SAVE_BALANCE_ACTION, { account_guid: e.guid });
|
|
11545
11545
|
}, d = () => {
|
|
11546
11546
|
setTimeout(() => {
|
|
@@ -12112,9 +12112,9 @@ const Ut = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
|
|
|
12112
12112
|
}
|
|
12113
12113
|
);
|
|
12114
12114
|
}), up = ({ onBackClick: e, sx: n }) => {
|
|
12115
|
-
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState(!1), [d, _] = g.useState(""), { isDesktop: u, isMobile: h } = me(), { debts: m } = x(), { onEvent: p } = X(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: y } = se(), { setSelectedAccount: A } = Ft(), { selectedDebtPriority: I, setSelectedDebtChartData: v } = _n(), { visibleDebtAccounts: w } =
|
|
12116
|
-
const
|
|
12117
|
-
return lp(M, I,
|
|
12115
|
+
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState(!1), [d, _] = g.useState(""), { isDesktop: u, isMobile: h } = me(), { debts: m } = x(), { onEvent: p } = X(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: y } = se(), { setSelectedAccount: A } = Ft(), { selectedDebtPriority: I, setSelectedDebtChartData: v } = _n(), { visibleDebtAccounts: w } = fe(), { goalsLoaded: D, loadGoals: O, monthlyCashFlowProfile: G } = ct(), { debts: M } = _a(), R = g.useMemo(() => {
|
|
12116
|
+
const be = G?.extra_payment ?? 0;
|
|
12117
|
+
return lp(M, I, be);
|
|
12118
12118
|
}, [M, I, G]);
|
|
12119
12119
|
g.useEffect(() => {
|
|
12120
12120
|
y(w), p(W.DEBTS_VIEW);
|
|
@@ -12123,9 +12123,9 @@ const Ut = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
|
|
|
12123
12123
|
}, [w]), g.useEffect(() => {
|
|
12124
12124
|
E && O().finally();
|
|
12125
12125
|
}, [E]);
|
|
12126
|
-
const L = (
|
|
12127
|
-
const
|
|
12128
|
-
|
|
12126
|
+
const L = (be) => _(be), U = () => {
|
|
12127
|
+
const be = w.find((Re) => Re.guid === d), ke = R.find((Re) => Re.guid === d);
|
|
12128
|
+
be && A(be), ke && v(ke), a(!0);
|
|
12129
12129
|
}, te = () => p(W.DEBTS_CLICK_FILTER), ue = () => {
|
|
12130
12130
|
c(!0), p(W.DEBTS_CLICK_SNOWBALL_CTA);
|
|
12131
12131
|
}, ye = () => {
|
|
@@ -12371,7 +12371,7 @@ const Cp = ({
|
|
|
12371
12371
|
profile: "Profile",
|
|
12372
12372
|
title: "Finstrong"
|
|
12373
12373
|
}, fp = ({ onBackClick: e, sx: n }) => {
|
|
12374
|
-
const { visibleAccounts: i } =
|
|
12374
|
+
const { visibleAccounts: i } = fe(), { finstrong: a } = x(), { isCopyLoaded: o } = se(), { isMobile: r } = me();
|
|
12375
12375
|
if (!o) return /* @__PURE__ */ t(le, {});
|
|
12376
12376
|
const s = () => {
|
|
12377
12377
|
}, c = () => {
|
|
@@ -12961,7 +12961,7 @@ const yp = (e, n) => {
|
|
|
12961
12961
|
}
|
|
12962
12962
|
);
|
|
12963
12963
|
}, vp = ({ onClose: e }) => {
|
|
12964
|
-
const { goals: n } = x(), { addGoal: i, debtGoals: a, setAlert: o, setSelectedGoal: r } = ct(), { visibleDebtAccounts: s } =
|
|
12964
|
+
const { goals: n } = x(), { addGoal: i, debtGoals: a, setAlert: o, setSelectedGoal: r } = ct(), { visibleDebtAccounts: s } = fe(), [c, d] = g.useState(!1), _ = bp(n), u = (m, p, f) => {
|
|
12965
12965
|
f === Y.DEBT_TRACK ? d(!0) : r({
|
|
12966
12966
|
amount: 0,
|
|
12967
12967
|
current_amount: 0,
|
|
@@ -13064,7 +13064,7 @@ const yp = (e, n) => {
|
|
|
13064
13064
|
}
|
|
13065
13065
|
);
|
|
13066
13066
|
}), Dp = ({ goal: e }) => {
|
|
13067
|
-
const { visibleCheckingAccounts: n, visibleSavingsAccounts: i } =
|
|
13067
|
+
const { visibleCheckingAccounts: n, visibleSavingsAccounts: i } = fe(), { accounts: a, goals: o } = x(), { setAlert: r, setSelectedGoal: s, updateGoal: c } = ct(), d = !e.guid, [_, u] = g.useState(!1), h = async ({ balance: m, guid: p }) => {
|
|
13068
13068
|
const f = { ...e, account_guid: p, current_amount: m || 0 };
|
|
13069
13069
|
d ? s(f) : (await c(f), r(o.alert_account_changed)), u(!1);
|
|
13070
13070
|
};
|
|
@@ -13226,7 +13226,7 @@ const yp = (e, n) => {
|
|
|
13226
13226
|
}
|
|
13227
13227
|
);
|
|
13228
13228
|
}), Mp = ({ goal: e }) => {
|
|
13229
|
-
const { goals: n } = x(), { visibleInvestmentAccounts: i } =
|
|
13229
|
+
const { goals: n } = x(), { visibleInvestmentAccounts: i } = fe(), {
|
|
13230
13230
|
addRetirementGoalAccount: a,
|
|
13231
13231
|
newRetirementGoalAccounts: o,
|
|
13232
13232
|
retirementGoalAccounts: r,
|
|
@@ -13277,7 +13277,7 @@ const yp = (e, n) => {
|
|
|
13277
13277
|
)
|
|
13278
13278
|
] });
|
|
13279
13279
|
}, kp = T(({ goal: e }) => {
|
|
13280
|
-
const { goals: n } = x(), { visibleAccounts: i } =
|
|
13280
|
+
const { goals: n } = x(), { visibleAccounts: i } = fe(), a = g.useMemo(
|
|
13281
13281
|
() => i.find((s) => s.guid === e.account_guid),
|
|
13282
13282
|
[i, e]
|
|
13283
13283
|
), o = e.track_type;
|
|
@@ -13322,7 +13322,7 @@ const yp = (e, n) => {
|
|
|
13322
13322
|
e.track_type === Y.SAVINGS_TRACK && !e.is_complete && /* @__PURE__ */ t(Dp, { goal: e })
|
|
13323
13323
|
] });
|
|
13324
13324
|
}), Gp = T(({ onClose: e }) => {
|
|
13325
|
-
const { visibleInvestmentAccounts: n } =
|
|
13325
|
+
const { visibleInvestmentAccounts: n } = fe(), { goals: i, common: a } = x(), {
|
|
13326
13326
|
addGoal: o,
|
|
13327
13327
|
addRetirementGoal: r,
|
|
13328
13328
|
deleteGoal: s,
|
|
@@ -13389,7 +13389,7 @@ const yp = (e, n) => {
|
|
|
13389
13389
|
)
|
|
13390
13390
|
] });
|
|
13391
13391
|
}), e2 = T(({ onBackClick: e, sx: n }) => {
|
|
13392
|
-
const { onEvent: i } = X(), { isMobile: a } = me(), { visibleAccounts: o } =
|
|
13392
|
+
const { onEvent: i } = X(), { isMobile: a } = me(), { visibleAccounts: o } = fe(), { isCopyLoaded: r, isInitialized: s, setSelectedAccounts: c } = se(), { goals: d, common: _ } = x(), { alert: u, goals: h, goalsLoaded: m, loadGoals: p, monthlyCashFlowProfile: f, setAlert: E, retirmentGoals: y } = ct(), [A, I] = g.useState(0), [v, w] = g.useState(!1), D = f?.amount_allocated_for_savings_goals || 0, O = f?.amount_allocated_for_debt_goals || 0, G = f?.amount_allocated_for_retirement_goals || 0, M = r ? S(
|
|
13393
13393
|
a ? d.tab_subtitle_mobile : d.tab_subtitle,
|
|
13394
13394
|
P(D, "0,0")
|
|
13395
13395
|
) : "", R = r ? S(
|
|
@@ -13408,10 +13408,10 @@ const yp = (e, n) => {
|
|
|
13408
13408
|
i(W.GOALS_CLICK_FILTER);
|
|
13409
13409
|
}, te = () => {
|
|
13410
13410
|
w(!0), i(W.GOALS_CLICK_ADD);
|
|
13411
|
-
}, ue = (
|
|
13412
|
-
w(!1),
|
|
13411
|
+
}, ue = (be) => {
|
|
13412
|
+
w(!1), be === Y.SAVINGS_TRACK ? I(0) : be === Y.DEBT_TRACK ? I(1) : be === Y.RETIREMENT_TRACK && I(2);
|
|
13413
13413
|
}, ye = g.useMemo(
|
|
13414
|
-
() => m && (h.length === 0 || h.every(({ track_type:
|
|
13414
|
+
() => m && (h.length === 0 || h.every(({ track_type: be }) => !be) && y.length === 0),
|
|
13415
13415
|
[h, m, y]
|
|
13416
13416
|
);
|
|
13417
13417
|
return !m || !r || !s ? /* @__PURE__ */ t(le, {}) : /* @__PURE__ */ l(
|
|
@@ -13434,7 +13434,7 @@ const yp = (e, n) => {
|
|
|
13434
13434
|
/* @__PURE__ */ l(
|
|
13435
13435
|
Xt,
|
|
13436
13436
|
{
|
|
13437
|
-
onChange: (
|
|
13437
|
+
onChange: (be, ke) => I(ke),
|
|
13438
13438
|
sx: { bgcolor: "background.paper" },
|
|
13439
13439
|
textColor: "primary",
|
|
13440
13440
|
value: ye ? !1 : A,
|
|
@@ -13737,7 +13737,7 @@ const Hp = T(({ goal: e }) => {
|
|
|
13737
13737
|
}
|
|
13738
13738
|
);
|
|
13739
13739
|
}), t2 = T(({ onCTAClick: e }) => {
|
|
13740
|
-
const { visibleAccounts: n } =
|
|
13740
|
+
const { visibleAccounts: n } = fe(), { onEvent: i } = X(), { goals: a } = x(), { isInitialized: o, setSelectedAccounts: r, isCopyLoaded: s } = se(), { ongoingGoalsForMicroWidget: c, loadGoals: d, goalsLoaded: _ } = ct();
|
|
13741
13741
|
g.useEffect(() => {
|
|
13742
13742
|
r(n), i(W.GOALS_VIEW);
|
|
13743
13743
|
}, []), g.useEffect(() => {
|
|
@@ -14717,7 +14717,7 @@ const w1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14717
14717
|
/* @__PURE__ */ t(_e, { sx: { color: "text.secondary" }, variant: "body2", children: e.zero_state_description })
|
|
14718
14718
|
] })
|
|
14719
14719
|
] }), i2 = T(({ onCTAClick: e }) => {
|
|
14720
|
-
const [n, i] = g.useState(!1), { visibleAccounts: a } =
|
|
14720
|
+
const [n, i] = g.useState(!1), { visibleAccounts: a } = fe(), { onEvent: o } = X(), { net_worth: r, common: s } = x(), { isInitialized: c, selectedAccounts: d, setSelectedAccounts: _ } = se(), { loadChartData: u, loadNetWorthData: h, netWorthData: m, selectedData: p } = js(), f = async () => {
|
|
14721
14721
|
await h(d), await u(1), i(!0);
|
|
14722
14722
|
};
|
|
14723
14723
|
if (g.useEffect(() => _(a), [a]), g.useEffect(() => {
|
|
@@ -14749,7 +14749,7 @@ const w1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14749
14749
|
title: i
|
|
14750
14750
|
}) => {
|
|
14751
14751
|
let a;
|
|
14752
|
-
const { refreshAccounts: o } =
|
|
14752
|
+
const { refreshAccounts: o } = fe(), { loadWidget: r } = zs(), { connect: s } = x(), c = dt(), [d, _] = g.useState(!1), [u, h] = g.useState(!1);
|
|
14753
14753
|
return g.useEffect(() => (n ? (_(!0), r({ widget: "connections_widget", mode: c.palette.mode }).then((m) => {
|
|
14754
14754
|
a = new Cd({
|
|
14755
14755
|
container: `#${lr}`,
|
|
@@ -14945,7 +14945,7 @@ const w1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14945
14945
|
] })
|
|
14946
14946
|
] });
|
|
14947
14947
|
}, M1 = T(O1), a2 = T(({ onBackClick: e }) => {
|
|
14948
|
-
const { isCopyLoaded: n, isInitialized: i, selectedAccounts: a, setSelectedAccounts: o } = se(), { accounts: r, net_worth: s } = x(), { visibleAccounts: c } =
|
|
14948
|
+
const { isCopyLoaded: n, isInitialized: i, selectedAccounts: a, setSelectedAccounts: o } = se(), { accounts: r, net_worth: s } = x(), { visibleAccounts: c } = fe(), {
|
|
14949
14949
|
assetsLiabilities: d,
|
|
14950
14950
|
gainsLosses: _,
|
|
14951
14951
|
hoveredData: u,
|
|
@@ -14969,7 +14969,7 @@ const w1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14969
14969
|
}, [D]);
|
|
14970
14970
|
const ye = (B, ne) => {
|
|
14971
14971
|
y(ne), B.currentTarget instanceof HTMLDivElement && M(!0);
|
|
14972
|
-
},
|
|
14972
|
+
}, be = (B) => {
|
|
14973
14973
|
E(B);
|
|
14974
14974
|
}, ke = () => {
|
|
14975
14975
|
E(null);
|
|
@@ -14983,7 +14983,7 @@ const w1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14983
14983
|
hoveredData: u,
|
|
14984
14984
|
onButtonClick: Re,
|
|
14985
14985
|
onDataClick: ye,
|
|
14986
|
-
onMouseEnter:
|
|
14986
|
+
onMouseEnter: be,
|
|
14987
14987
|
onMouseLeave: ke,
|
|
14988
14988
|
selectedData: f
|
|
14989
14989
|
}, Ee = () => {
|
|
@@ -15139,7 +15139,7 @@ const B1 = (e, n) => {
|
|
|
15139
15139
|
const i = fi(n[e].delivered_at), a = fi(n[e - 1]?.delivered_at);
|
|
15140
15140
|
return !vd(i, a);
|
|
15141
15141
|
}, H1 = ({ date: e }) => /* @__PURE__ */ t(k, { sx: { display: "flex", justifyContent: "center", mt: 12, py: 8 }, children: /* @__PURE__ */ t(C, { bold: !0, variant: "Small", children: ua(e) }) }), P1 = ({ notification: e }) => {
|
|
15142
|
-
const { accounts: n } =
|
|
15142
|
+
const { accounts: n } = fe(), { budgets: i } = ht(), { accounts: a } = x(), o = n.find((d) => d.guid === e.entity_guid), r = i.find((d) => d.guid === e.entity_guid), s = e.entity_guid.includes("GOL"), c = {
|
|
15143
15143
|
badge: {
|
|
15144
15144
|
display: "flex",
|
|
15145
15145
|
alignItems: "center",
|
|
@@ -16371,7 +16371,7 @@ const Z1 = ({
|
|
|
16371
16371
|
] });
|
|
16372
16372
|
}), sC = T(
|
|
16373
16373
|
({ onProfileUpdated: e, profile: n }) => {
|
|
16374
|
-
const { common: i, recurring: a, settings: o } = x(), { updateAccount: r } =
|
|
16374
|
+
const { common: i, recurring: a, settings: o } = x(), { updateAccount: r } = fe(), s = n.notification_type === at.DebtPaymentReminder, [c, d] = g.useState(!1), [_, u] = g.useState(n.threshold || 0), [h, m] = g.useState(
|
|
16375
16375
|
n.account?.day_payment_is_due || 0
|
|
16376
16376
|
), p = n.account?.name || n.account?.feed_name || "", f = n.account?.day_payment_is_due ? S(
|
|
16377
16377
|
o.notification_debt_payment_date,
|
|
@@ -19666,7 +19666,7 @@ const Z1 = ({
|
|
|
19666
19666
|
onClose: a,
|
|
19667
19667
|
topic: o
|
|
19668
19668
|
}) => {
|
|
19669
|
-
const { institutions: r, accounts: s } =
|
|
19669
|
+
const { institutions: r, accounts: s } = fe(), c = g.useMemo(
|
|
19670
19670
|
() => jp(r, s, {
|
|
19671
19671
|
singular: e.request_support_institution_account,
|
|
19672
19672
|
plural: e.request_support_institution_accounts
|
|
@@ -20393,7 +20393,7 @@ const zC = (e) => e.reduce((i, a) => {
|
|
|
20393
20393
|
}, tl = T(JC), ef = {
|
|
20394
20394
|
view_transactions: "View Transactions"
|
|
20395
20395
|
}, tf = ({ onBackClick: e, sx: n }) => {
|
|
20396
|
-
const { onEvent: i } = X(), { isDesktop: a, isTablet: o, isMobile: r } = me(), { visibleAccounts: s } =
|
|
20396
|
+
const { onEvent: i } = X(), { isDesktop: a, isTablet: o, isMobile: r } = me(), { visibleAccounts: s } = fe(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: _ } = Ve(), { sortedTransactions: u } = Oe(), { isCopyLoaded: h, isInitialized: m, selectedAccounts: p, setSelectedAccounts: f } = se(), { trends: E } = x(), [y, A] = g.useState(!1), [I, v] = g.useState(!1), [w, D] = g.useState("Chart"), [O, G] = g.useState(""), [M, R] = g.useState({
|
|
20397
20397
|
start: $i(We(Tt(/* @__PURE__ */ new Date(), 6)), 1),
|
|
20398
20398
|
end: We(/* @__PURE__ */ new Date())
|
|
20399
20399
|
});
|
|
@@ -20439,7 +20439,7 @@ const zC = (e) => e.reduce((i, a) => {
|
|
|
20439
20439
|
});
|
|
20440
20440
|
}, ye = () => {
|
|
20441
20441
|
i(W.TRENDS_CLICK_FILTER);
|
|
20442
|
-
},
|
|
20442
|
+
}, be = (Ee) => {
|
|
20443
20443
|
G(Ee);
|
|
20444
20444
|
}, ke = (Ee) => {
|
|
20445
20445
|
G(Ee), i(W.TRENDS_CLICK_LEGEND, { category: _(Ee) });
|
|
@@ -20530,7 +20530,7 @@ const zC = (e) => e.reduce((i, a) => {
|
|
|
20530
20530
|
el,
|
|
20531
20531
|
{
|
|
20532
20532
|
monthlyCategoryTotals: d,
|
|
20533
|
-
onClickRow:
|
|
20533
|
+
onClickRow: be,
|
|
20534
20534
|
selectedCategory: O,
|
|
20535
20535
|
selectedDateRange: M
|
|
20536
20536
|
}
|
|
@@ -20678,7 +20678,7 @@ const zC = (e) => e.reduce((i, a) => {
|
|
|
20678
20678
|
] })
|
|
20679
20679
|
] });
|
|
20680
20680
|
}), h2 = T(({ onCtaClick: e }) => {
|
|
20681
|
-
const { visibleAccounts: n } =
|
|
20681
|
+
const { visibleAccounts: n } = fe(), { monthlyCategoryTotals: i, loadMonthlyCategoryTotals: a, monthlyTotalsLoaded: o } = Ve(), r = {
|
|
20682
20682
|
start: Nd(/* @__PURE__ */ new Date(), 1),
|
|
20683
20683
|
end: /* @__PURE__ */ new Date()
|
|
20684
20684
|
}, { trends: s } = x(), { selectedAccounts: c, setSelectedAccounts: d, isInitialized: _ } = se();
|
|
@@ -22270,7 +22270,7 @@ const Li = g.createContext(null), pf = ({
|
|
|
22270
22270
|
});
|
|
22271
22271
|
}, ye = () => {
|
|
22272
22272
|
f.current && A(f.current.scrollLeft);
|
|
22273
|
-
},
|
|
22273
|
+
}, be = () => {
|
|
22274
22274
|
if (!w || !I) return;
|
|
22275
22275
|
w - I > If ? U(Kt.ON_CAROUSEL_FORWARD_SWIPE) : U(Kt.ON_CAROUSEL_BACK_SWIPE);
|
|
22276
22276
|
}, ke = (B) => {
|
|
@@ -22304,7 +22304,7 @@ const Li = g.createContext(null), pf = ({
|
|
|
22304
22304
|
{
|
|
22305
22305
|
direction: "row",
|
|
22306
22306
|
onScroll: ye,
|
|
22307
|
-
onTouchEnd:
|
|
22307
|
+
onTouchEnd: be,
|
|
22308
22308
|
onTouchMove: ke,
|
|
22309
22309
|
onTouchStart: Re,
|
|
22310
22310
|
ref: f,
|
|
@@ -22613,7 +22613,7 @@ const Li = g.createContext(null), pf = ({
|
|
|
22613
22613
|
}, [window.innerHeight]), g.useEffect(() => {
|
|
22614
22614
|
te(!n && hn.isInitialized);
|
|
22615
22615
|
}, [n, hn.isInitialized]);
|
|
22616
|
-
const
|
|
22616
|
+
const be = {
|
|
22617
22617
|
showCTAColocatedWithText: o,
|
|
22618
22618
|
heightOverrides: s,
|
|
22619
22619
|
onCardClick: d,
|
|
@@ -22625,7 +22625,7 @@ const Li = g.createContext(null), pf = ({
|
|
|
22625
22625
|
}, ke = {
|
|
22626
22626
|
carouselSize: R,
|
|
22627
22627
|
variant: D,
|
|
22628
|
-
...
|
|
22628
|
+
...be
|
|
22629
22629
|
};
|
|
22630
22630
|
return (
|
|
22631
22631
|
// The Theme provider must wrap the component so that the styles don't break when imported into other applications.
|
|
@@ -22652,7 +22652,7 @@ const Li = g.createContext(null), pf = ({
|
|
|
22652
22652
|
showCarouselControls: f,
|
|
22653
22653
|
variant: p ? D : void 0,
|
|
22654
22654
|
visibleCardsCount: O,
|
|
22655
|
-
...
|
|
22655
|
+
...be
|
|
22656
22656
|
}
|
|
22657
22657
|
),
|
|
22658
22658
|
U && !i.length && w && /* @__PURE__ */ t(dl, { clientColorScheme: a, ...ke }),
|
|
@@ -22740,7 +22740,7 @@ const Li = g.createContext(null), pf = ({
|
|
|
22740
22740
|
}, Ff = T(Pf), Wf = {
|
|
22741
22741
|
view_transactions: "View Transactions"
|
|
22742
22742
|
}, Uf = ({ onBackClick: e, sx: n }) => {
|
|
22743
|
-
const { onEvent: i } = X(), { isLargeDesktop: a, isDesktop: o, isMobile: r } = me(), { visibleAccounts: s } =
|
|
22743
|
+
const { onEvent: i } = X(), { isLargeDesktop: a, isDesktop: o, isMobile: r } = me(), { visibleAccounts: s } = fe(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: _ } = Ve(), { sortedTransactions: u } = Oe(), { isCopyLoaded: h, isInitialized: m, selectedAccounts: p, setSelectedAccounts: f } = se(), { trends: E } = x(), y = o || a, [A, I] = g.useState(!1), [v, w] = g.useState(!1), [D, O] = g.useState("Chart"), [G, M] = g.useState(""), [R, L] = g.useState({
|
|
22744
22744
|
start: $i(We(Tt(/* @__PURE__ */ new Date(), 6)), 1),
|
|
22745
22745
|
end: We(/* @__PURE__ */ new Date())
|
|
22746
22746
|
});
|
|
@@ -22784,7 +22784,7 @@ const Li = g.createContext(null), pf = ({
|
|
|
22784
22784
|
L({ start: ne, end: Me }), i(W.TRENDS_CLICK_DATE, {
|
|
22785
22785
|
time_period: qe + "M"
|
|
22786
22786
|
});
|
|
22787
|
-
},
|
|
22787
|
+
}, be = () => {
|
|
22788
22788
|
i(W.TRENDS_CLICK_FILTER);
|
|
22789
22789
|
}, ke = (B) => {
|
|
22790
22790
|
M(B);
|
|
@@ -22814,7 +22814,7 @@ const Li = g.createContext(null), pf = ({
|
|
|
22814
22814
|
calendarActions: { onRangeChanged: ye },
|
|
22815
22815
|
dateRange: R,
|
|
22816
22816
|
dateRangeVariant: r ? "timeframetabs" : "timeframebuttons",
|
|
22817
|
-
onAccountsFilterClick:
|
|
22817
|
+
onAccountsFilterClick: be,
|
|
22818
22818
|
onBackClick: e,
|
|
22819
22819
|
sx: n,
|
|
22820
22820
|
title: E.title,
|
|
@@ -23163,12 +23163,12 @@ const Da = ({
|
|
|
23163
23163
|
] }) }),
|
|
23164
23164
|
/* @__PURE__ */ t(F, { sx: { ml: n ? 0 : 24 } })
|
|
23165
23165
|
] }), $f = () => {
|
|
23166
|
-
const { accounts: e } =
|
|
23166
|
+
const { accounts: e } = fe(), { selectedAccount: n, selectedMember: i } = Ft();
|
|
23167
23167
|
return e.filter(
|
|
23168
23168
|
(a) => a.member_guid === i.guid && i.successfully_aggregated_at && a.guid !== n.guid
|
|
23169
23169
|
);
|
|
23170
23170
|
}, Xf = () => {
|
|
23171
|
-
const [e, n] = g.useState(!1), [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState({}), { selectedAccount: d } = Ft(), { mergeAccounts: _, updateAccount: u } =
|
|
23171
|
+
const [e, n] = g.useState(!1), [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState({}), { selectedAccount: d } = Ft(), { mergeAccounts: _, updateAccount: u } = fe(), { accounts: h } = x(), m = $f(), { onEvent: p } = X(), { modifyTransactionByAccountGuid: f } = Oe(), E = async (A) => {
|
|
23172
23172
|
await u({
|
|
23173
23173
|
...d,
|
|
23174
23174
|
...A
|
|
@@ -23512,7 +23512,7 @@ const Da = ({
|
|
|
23512
23512
|
)
|
|
23513
23513
|
] });
|
|
23514
23514
|
}, Qf = T(Zf), Jf = ({ field: e, isOpen: n, onClose: i }) => {
|
|
23515
|
-
const { updateAccount: a } =
|
|
23515
|
+
const { updateAccount: a } = fe(), { selectedAccount: o } = Ft(), { accounts: r } = x(), [s, c] = g.useState(o[e.name]), [d, _] = g.useState(""), [u, h] = g.useState(!0), m = () => {
|
|
23516
23516
|
c(""), _(""), i();
|
|
23517
23517
|
}, p = () => {
|
|
23518
23518
|
switch (e.type) {
|
|
@@ -23773,7 +23773,7 @@ const Da = ({
|
|
|
23773
23773
|
/* @__PURE__ */ t(ei, { index: 1, name: "account-details", value: e, children: /* @__PURE__ */ t(a0, {}) })
|
|
23774
23774
|
] });
|
|
23775
23775
|
}, hl = T(l0), d0 = () => {
|
|
23776
|
-
const [e, n] = g.useState(""), { accounts: i } = x(), { selectedAccounts: a } = se(), { setSelectedAccount: o, setSelectedMember: r } = Ft(), { members: s } =
|
|
23776
|
+
const [e, n] = g.useState(""), { accounts: i } = x(), { selectedAccounts: a } = se(), { setSelectedAccount: o, setSelectedMember: r } = Ft(), { members: s } = fe(), { onEvent: c } = X(), d = [...new Set(a.map((y) => y.account_type))], _ = a.find((y) => e === y.guid), u = g.useMemo(
|
|
23777
23777
|
() => a.filter((y) => y.is_hidden),
|
|
23778
23778
|
[a]
|
|
23779
23779
|
), h = g.useMemo(
|
|
@@ -23916,7 +23916,7 @@ const Da = ({
|
|
|
23916
23916
|
)
|
|
23917
23917
|
] });
|
|
23918
23918
|
}, u0 = T(d0), _0 = ({ onBackClick: e, sx: n = {} }) => {
|
|
23919
|
-
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), { config: s } = Pt(), { accounts: c } =
|
|
23919
|
+
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), { config: s } = Pt(), { accounts: c } = fe(), { accounts: d, connect: _ } = x(), { isCopyLoaded: u, isInitialized: h, setSelectedAccounts: m, selectedAccountGuids: p } = se(), { isDesktop: f } = me(), { onEvent: E } = X();
|
|
23920
23920
|
g.useEffect(() => {
|
|
23921
23921
|
m(c);
|
|
23922
23922
|
}, [c]);
|
|
@@ -23966,7 +23966,7 @@ const Da = ({
|
|
|
23966
23966
|
}
|
|
23967
23967
|
) : /* @__PURE__ */ t(le, {});
|
|
23968
23968
|
}, f2 = T(_0), h0 = ({ onPrimaryCtaClick: e, sx: n }) => {
|
|
23969
|
-
const { visibleAccounts: i } =
|
|
23969
|
+
const { visibleAccounts: i } = fe(), { accounts: a } = x(), { isCopyLoaded: o, isInitialized: r, selectedAccounts: s, setSelectedAccounts: c } = se();
|
|
23970
23970
|
return g.useEffect(() => {
|
|
23971
23971
|
c(i);
|
|
23972
23972
|
}, [i]), o ? /* @__PURE__ */ t(
|
|
@@ -25660,7 +25660,7 @@ const G0 = ({
|
|
|
25660
25660
|
] }, r.guid)) }) })
|
|
25661
25661
|
] });
|
|
25662
25662
|
}), Q0 = T(() => {
|
|
25663
|
-
const e = pe(), { onEvent: n } = X(), { visibleAccounts: i } =
|
|
25663
|
+
const e = pe(), { onEvent: n } = X(), { visibleAccounts: i } = fe(), { budgets: a, common: o, recurring: r } = x(), { incomeCategories: s, spendCategories: c } = Ve(), { detailedBudgets: d, totalBudgeted: _ } = ht(), { incomeTotal: u } = tt(), { setFilter: h } = Oe(), [m, p] = g.useState(!1), [f, E] = g.useMemo(() => {
|
|
25664
25664
|
const v = c.reduce((G, M) => G + M.totalAmount, 0);
|
|
25665
25665
|
let w = v / _;
|
|
25666
25666
|
w > 1 && (w = 1);
|
|
@@ -25743,7 +25743,7 @@ const G0 = ({
|
|
|
25743
25743
|
)
|
|
25744
25744
|
] });
|
|
25745
25745
|
}), cs = 480, S2 = T(({ onBackClick: e, sx: n }) => {
|
|
25746
|
-
const i = pe(), { onEvent: a } = X(), { visibleAccounts: o } =
|
|
25746
|
+
const i = pe(), { onEvent: a } = X(), { visibleAccounts: o } = fe(), { budgets: r, common: s } = x(), { isCopyLoaded: c, isInitialized: d, selectedAccounts: _, setDisplayedDate: u, setSelectedAccounts: h } = se(), {
|
|
25747
25747
|
alert: m,
|
|
25748
25748
|
dateRange: p,
|
|
25749
25749
|
isDataLoaded: f,
|
|
@@ -25764,7 +25764,7 @@ const G0 = ({
|
|
|
25764
25764
|
y({ start: he[0] || /* @__PURE__ */ new Date(), end: he[1] || /* @__PURE__ */ new Date() });
|
|
25765
25765
|
}, ye = () => {
|
|
25766
25766
|
a(W.BUDGETS_CLICK_FILTER);
|
|
25767
|
-
},
|
|
25767
|
+
}, be = () => {
|
|
25768
25768
|
te(!0), a(W.BUDGETS_CLICK_ADD);
|
|
25769
25769
|
}, ke = () => {
|
|
25770
25770
|
te(!1);
|
|
@@ -25777,7 +25777,7 @@ const G0 = ({
|
|
|
25777
25777
|
{
|
|
25778
25778
|
iconName: "add",
|
|
25779
25779
|
label: r.add_title,
|
|
25780
|
-
onClick:
|
|
25780
|
+
onClick: be
|
|
25781
25781
|
}
|
|
25782
25782
|
],
|
|
25783
25783
|
calendarActions: { onRangeChanged: ue, shouldDisableNext: Re },
|
|
@@ -25798,7 +25798,7 @@ const G0 = ({
|
|
|
25798
25798
|
/* @__PURE__ */ t(b, { height: L ? 450 : "calc(100dvh - 150px)", children: /* @__PURE__ */ t(
|
|
25799
25799
|
gl,
|
|
25800
25800
|
{
|
|
25801
|
-
createBudgetOnClick:
|
|
25801
|
+
createBudgetOnClick: be,
|
|
25802
25802
|
height: L ? 450 : 800,
|
|
25803
25803
|
isDraggable: !0,
|
|
25804
25804
|
shouldShowZeroState: v.length === 0,
|
|
@@ -25927,7 +25927,7 @@ const G0 = ({
|
|
|
25927
25927
|
}
|
|
25928
25928
|
) });
|
|
25929
25929
|
}, tb = T(eb), nb = () => {
|
|
25930
|
-
const [e, n] = g.useState(!1), i = ru("(max-width:320px)"), { visibleAccounts: a } =
|
|
25930
|
+
const [e, n] = g.useState(!1), i = ru("(max-width:320px)"), { visibleAccounts: a } = fe(), { selectedAccountGuids: o, setSelectedAccountGuids: r } = se(), { common: s, connect: c } = x(), { config: d } = Pt(), { isMobile: _ } = me(), u = {
|
|
25931
25931
|
accountFilterOptionsCopy: {
|
|
25932
25932
|
accountTypeAccounts: s.account_filter.account_type_accounts,
|
|
25933
25933
|
cancelButton: s.cancel_button,
|
|
@@ -25984,7 +25984,7 @@ const G0 = ({
|
|
|
25984
25984
|
}, ib = T(nb);
|
|
25985
25985
|
var Wi = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e[e.Disabled = 2] = "Disabled", e))(Wi || {});
|
|
25986
25986
|
const ab = ({ widgets: e, isLoading: n }) => {
|
|
25987
|
-
const { isDesktop: i, isMobile: a } = me(), { copyStore: o } = oi(), { setSelectedAccounts: r } = se(), { visibleAccounts: s } =
|
|
25987
|
+
const { isDesktop: i, isMobile: a } = me(), { copyStore: o } = oi(), { setSelectedAccounts: r } = se(), { visibleAccounts: s } = fe();
|
|
25988
25988
|
g.useEffect(() => {
|
|
25989
25989
|
r(s);
|
|
25990
25990
|
}, [s]);
|
|
@@ -26347,7 +26347,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
26347
26347
|
}, _b = () => {
|
|
26348
26348
|
const [e, n] = g.useState(0), [i, a] = g.useState(""), [o, r] = g.useState(""), s = (f) => {
|
|
26349
26349
|
i !== f ? a(f) : (a(""), r(""));
|
|
26350
|
-
}, { selectedAccountGuids: c } = se(), { visibleHoldings: d } = Fn(), { visibleInvestmentAccounts: _ } =
|
|
26350
|
+
}, { selectedAccountGuids: c } = se(), { visibleHoldings: d } = Fn(), { visibleInvestmentAccounts: _ } = fe(), {
|
|
26351
26351
|
investments: { allocation: u }
|
|
26352
26352
|
} = x(), h = lb(
|
|
26353
26353
|
_.filter(({ guid: f }) => c.includes(f)),
|
|
@@ -27133,9 +27133,9 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
27133
27133
|
...qe,
|
|
27134
27134
|
[B]: Me
|
|
27135
27135
|
}));
|
|
27136
|
-
}, { visibleHoldings: ue } = Fn(), { visibleInvestmentAccounts: ye } =
|
|
27136
|
+
}, { visibleHoldings: ue } = Fn(), { visibleInvestmentAccounts: ye } = fe(), be = ye.filter(
|
|
27137
27137
|
({ guid: B }) => r.includes(B)
|
|
27138
|
-
), ke =
|
|
27138
|
+
), ke = be.reduce((B, ne) => B + (ne.balance || 0), 0), Re = be.map(({ guid: B }) => B), ge = ue.filter(
|
|
27139
27139
|
({ account_guid: B }) => Re.includes(B)
|
|
27140
27140
|
).reduce((B, ne) => {
|
|
27141
27141
|
const Me = ne.market_value ? ne.market_value - (ne.cost_basis || 0) : 0;
|
|
@@ -27144,7 +27144,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
27144
27144
|
o(!1);
|
|
27145
27145
|
};
|
|
27146
27146
|
return f ? /* @__PURE__ */ l(Le, { sx: { alignItems: "center", gap: 48, pt: 48, width: "100%" }, children: [
|
|
27147
|
-
!!
|
|
27147
|
+
!!be.length && /* @__PURE__ */ l(Le, { sx: { alignItems: "center" }, children: [
|
|
27148
27148
|
/* @__PURE__ */ t(C, { sx: { color: "text.secondary" }, children: p.overview.total_portfolio }),
|
|
27149
27149
|
/* @__PURE__ */ t($t, { children: ke.toLocaleString("en-US", {
|
|
27150
27150
|
currency: "USD",
|
|
@@ -27176,7 +27176,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
27176
27176
|
)
|
|
27177
27177
|
] })
|
|
27178
27178
|
] }),
|
|
27179
|
-
|
|
27179
|
+
be.map((B) => {
|
|
27180
27180
|
const ne = ue.filter((ze) => ze.account_guid === B.guid).map((ze) => ({
|
|
27181
27181
|
id: ze.guid,
|
|
27182
27182
|
qty: ze.shares || 0,
|
|
@@ -27523,7 +27523,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
27523
27523
|
)
|
|
27524
27524
|
] }) : /* @__PURE__ */ t(le, {});
|
|
27525
27525
|
}, Sb = T(Ab), Tb = ({ title: e }) => /* @__PURE__ */ t(C, { bold: !0, variant: "Body", children: e }), x2 = T(({ onBackClick: e, sx: n }) => {
|
|
27526
|
-
const { onEvent: i } = X(), { isMobile: a } = me(), { visibleInvestmentAccounts: o } =
|
|
27526
|
+
const { onEvent: i } = X(), { isMobile: a } = me(), { visibleInvestmentAccounts: o } = fe(), {
|
|
27527
27527
|
visibleHoldings: r,
|
|
27528
27528
|
setShowConnectionsWidget: s,
|
|
27529
27529
|
showConnectionsWidget: c
|
|
@@ -27854,15 +27854,17 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
27854
27854
|
] }) })
|
|
27855
27855
|
] }) : /* @__PURE__ */ t(le, { height: 250 });
|
|
27856
27856
|
}, vb = T(wb), Nb = ({ onPrimaryCtaClick: e, sx: n = {} }) => {
|
|
27857
|
-
const {
|
|
27858
|
-
return
|
|
27857
|
+
const { visibleAccounts: i } = fe(), { spending: a } = x(), { isCopyLoaded: o, isInitialized: r, setSelectedAccounts: s } = se();
|
|
27858
|
+
return g.useEffect(() => {
|
|
27859
|
+
s(i);
|
|
27860
|
+
}, [i]), !o || !r ? /* @__PURE__ */ t(le, {}) : /* @__PURE__ */ t(
|
|
27859
27861
|
Mn,
|
|
27860
27862
|
{
|
|
27861
27863
|
className: "mx-exp-spending-miniwidget",
|
|
27862
27864
|
onPrimaryCtaClick: e,
|
|
27863
|
-
primaryCtaLabel:
|
|
27865
|
+
primaryCtaLabel: a.primary_cta,
|
|
27864
27866
|
sx: n,
|
|
27865
|
-
title:
|
|
27867
|
+
title: a.mini_title,
|
|
27866
27868
|
children: /* @__PURE__ */ t(vb, {})
|
|
27867
27869
|
}
|
|
27868
27870
|
);
|
|
@@ -28117,7 +28119,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
28117
28119
|
)
|
|
28118
28120
|
] });
|
|
28119
28121
|
}, kb = T(Mb), Gb = ({ onBackClick: e, sx: n = {} }) => {
|
|
28120
|
-
const { visibleAccounts: i } =
|
|
28122
|
+
const { visibleAccounts: i } = fe(), { spending: a } = x(), { isCopyLoaded: o, isInitialized: r, setDisplayedDate: s, setSelectedAccounts: c } = se(), { onEvent: d } = X(), [_, u] = g.useState(!1);
|
|
28121
28123
|
g.useEffect(() => {
|
|
28122
28124
|
c(i);
|
|
28123
28125
|
}, [i]), g.useEffect(() => {
|
|
@@ -28370,7 +28372,7 @@ export {
|
|
|
28370
28372
|
o2 as getNotificationDetailRoute,
|
|
28371
28373
|
D4 as isIncome,
|
|
28372
28374
|
Pa as isValidNumber,
|
|
28373
|
-
|
|
28375
|
+
fe as useAccountStore,
|
|
28374
28376
|
Ft as useAccountUiStore,
|
|
28375
28377
|
Pt as useAppConfig,
|
|
28376
28378
|
ht as useBudgetsStore,
|