@mx-cartographer/experiences 6.24.4 → 6.24.6
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/CHANGELOG.md +8 -0
- package/dist/index.es.js +293 -290
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5,7 +5,7 @@ import k from "@mui/material/Box";
|
|
|
5
5
|
import F from "@mui/material/Divider";
|
|
6
6
|
import ie from "@mui/material/List";
|
|
7
7
|
import Ot from "@mui/material/ListSubheader";
|
|
8
|
-
import
|
|
8
|
+
import Re from "@mui/system/Stack";
|
|
9
9
|
import { AccountsIcon as xl, P as _e, Icon as K, useTokens as yt, Text as C, H2 as sn, CategoryIcon as Mt, DialogHeader as Il, DialogFooter as wl, Drawer as vl, Footer as Nl, DateRangePicker as Fo, H3 as rt, H1 as $t, TextField as yn, IconWeight as At, MerchantLogo as on, CategoryIconList as Dl, CategoryIconVariants as _s, InstitutionLogo as ft, ChevronRightIcon as hs, THEMES as Wo } from "@mxenabled/mxui";
|
|
10
10
|
import Rl from "bowser";
|
|
11
11
|
import { getUnixTime as Pe } from "date-fns/getUnixTime";
|
|
@@ -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
|
-
}, Ce = () => 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,
|
|
1303
|
+
}, Ce = () => 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, Le = () => 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
|
+
})), fe = 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,30 +2557,30 @@ const Xu = ({
|
|
|
2557
2557
|
label: z.category_name,
|
|
2558
2558
|
type: "line",
|
|
2559
2559
|
valueFormatter: (Ke) => P(Ke, "0,0")
|
|
2560
|
-
})),
|
|
2560
|
+
})), Oe = [...ye, ...fe], ke = [
|
|
2561
2561
|
...ye.map(({ guid: z, top_level_guid: Ne }) => ({
|
|
2562
2562
|
guid: z,
|
|
2563
2563
|
top_level_guid: Ne
|
|
2564
2564
|
})),
|
|
2565
|
-
...
|
|
2565
|
+
...fe.map(({ guid: z, top_level_guid: Ne }) => ({
|
|
2566
2566
|
guid: z,
|
|
2567
2567
|
top_level_guid: Ne
|
|
2568
2568
|
}))
|
|
2569
|
-
],
|
|
2569
|
+
], ge = (z) => {
|
|
2570
2570
|
const Ke = z.startsWith("stacked-") ? o[parseInt(z.split("-")[1])] : r[parseInt(z.split("-")[1])];
|
|
2571
2571
|
return {
|
|
2572
2572
|
guid: Ke?.category_guid,
|
|
2573
2573
|
topLevelGuid: Ke?.top_level_category_guid
|
|
2574
2574
|
};
|
|
2575
|
-
},
|
|
2575
|
+
}, he = (z) => {
|
|
2576
2576
|
m(z), i?.(z ?? "");
|
|
2577
2577
|
}, Ee = (z) => {
|
|
2578
2578
|
a?.(z ?? "");
|
|
2579
2579
|
}, B = () => {
|
|
2580
|
-
const z =
|
|
2580
|
+
const z = ge(String(E)).guid;
|
|
2581
2581
|
z && a?.(z);
|
|
2582
2582
|
}, ne = (z) => {
|
|
2583
|
-
const Ne = String(z?.seriesId), Ke =
|
|
2583
|
+
const Ne = String(z?.seriesId), Ke = ge(Ne).guid, Gt = Oe.find((ci) => ci.id === Ne), ze = Gt && z?.dataIndex !== void 0, zn = Gt && z?.dataIndex === void 0;
|
|
2584
2584
|
if (ze)
|
|
2585
2585
|
f({
|
|
2586
2586
|
hoveredSeriesId: Ne,
|
|
@@ -2652,7 +2652,7 @@ const Xu = ({
|
|
|
2652
2652
|
margin: { bottom: 50 },
|
|
2653
2653
|
onAreaClick: B,
|
|
2654
2654
|
onHighlightChange: ne,
|
|
2655
|
-
series:
|
|
2655
|
+
series: Oe,
|
|
2656
2656
|
skipAnimation: !0,
|
|
2657
2657
|
slotProps: {
|
|
2658
2658
|
legend: {
|
|
@@ -2663,7 +2663,7 @@ const Xu = ({
|
|
|
2663
2663
|
itemContent: (z) => w && E ? /* @__PURE__ */ t(
|
|
2664
2664
|
r_,
|
|
2665
2665
|
{
|
|
2666
|
-
categoryGuids:
|
|
2666
|
+
categoryGuids: ge(E),
|
|
2667
2667
|
xData: G,
|
|
2668
2668
|
...z
|
|
2669
2669
|
}
|
|
@@ -2694,17 +2694,17 @@ const Xu = ({
|
|
|
2694
2694
|
/* @__PURE__ */ t(
|
|
2695
2695
|
s_,
|
|
2696
2696
|
{
|
|
2697
|
-
categoryGuids:
|
|
2697
|
+
categoryGuids: ke,
|
|
2698
2698
|
hoveredLegend: h,
|
|
2699
2699
|
onClickLegend: Ee,
|
|
2700
|
-
onHoverLegend:
|
|
2700
|
+
onHoverLegend: he,
|
|
2701
2701
|
sx: { px: _ ? 0 : 24 }
|
|
2702
2702
|
}
|
|
2703
2703
|
),
|
|
2704
2704
|
v && /* @__PURE__ */ t(
|
|
2705
2705
|
o_,
|
|
2706
2706
|
{
|
|
2707
|
-
categoryGuids:
|
|
2707
|
+
categoryGuids: ge(E),
|
|
2708
2708
|
chartContainerRef: u,
|
|
2709
2709
|
cursorPosition: I,
|
|
2710
2710
|
hoveredAreaData: y.map((z) => ({
|
|
@@ -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
|
+
}, fe = o ? o.start : O.start, Oe = o ? o.end : O.end, ke = 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: [fe, Oe],
|
|
3418
3418
|
shouldShrinkToIcon: !1,
|
|
3419
3419
|
variant: r
|
|
3420
3420
|
}
|
|
@@ -3425,36 +3425,36 @@ const ha = ({
|
|
|
3425
3425
|
accounts: e,
|
|
3426
3426
|
copy: ue,
|
|
3427
3427
|
onConnectAccountClick: () => f(!0),
|
|
3428
|
-
onFilterClick: (
|
|
3429
|
-
R(
|
|
3428
|
+
onFilterClick: (ge) => {
|
|
3429
|
+
R(ge), _?.();
|
|
3430
3430
|
},
|
|
3431
3431
|
selectedAccountGuids: M,
|
|
3432
3432
|
showAccountNumbers: !1,
|
|
3433
3433
|
variant: "text"
|
|
3434
3434
|
}
|
|
3435
3435
|
),
|
|
3436
|
-
n?.map((
|
|
3437
|
-
if (g.isValidElement(
|
|
3438
|
-
const { iconName:
|
|
3439
|
-
return
|
|
3436
|
+
n?.map((ge) => {
|
|
3437
|
+
if (g.isValidElement(ge)) return ge;
|
|
3438
|
+
const { iconName: he, onClick: Ee, label: B } = ge;
|
|
3439
|
+
return ke ? v || D ? /* @__PURE__ */ t(
|
|
3440
3440
|
Q,
|
|
3441
3441
|
{
|
|
3442
3442
|
onClick: Ee,
|
|
3443
|
-
startIcon: /* @__PURE__ */ t(K, { name:
|
|
3443
|
+
startIcon: /* @__PURE__ */ t(K, { name: he, size: 24 }),
|
|
3444
3444
|
sx: { my: 4 },
|
|
3445
3445
|
children: B
|
|
3446
3446
|
},
|
|
3447
|
-
|
|
3448
|
-
) : /* @__PURE__ */ t(Fe, { "aria-label": B, color: "primary", onClick: Ee, children: /* @__PURE__ */ t(K, { name:
|
|
3447
|
+
he
|
|
3448
|
+
) : /* @__PURE__ */ t(Fe, { "aria-label": B, color: "primary", onClick: Ee, children: /* @__PURE__ */ t(K, { name: he, size: 24 }) }, he) : v || D ? /* @__PURE__ */ t(
|
|
3449
3449
|
Q,
|
|
3450
3450
|
{
|
|
3451
3451
|
onClick: Ee,
|
|
3452
|
-
startIcon: /* @__PURE__ */ t(K, { name:
|
|
3452
|
+
startIcon: /* @__PURE__ */ t(K, { name: he, size: 24 }),
|
|
3453
3453
|
sx: { my: 4 },
|
|
3454
3454
|
children: B
|
|
3455
3455
|
},
|
|
3456
|
-
|
|
3457
|
-
) : /* @__PURE__ */ t(Fe, { "aria-label": B, color: "primary", onClick: Ee, children: /* @__PURE__ */ t(K, { name:
|
|
3456
|
+
he
|
|
3457
|
+
) : /* @__PURE__ */ t(Fe, { "aria-label": B, color: "primary", onClick: Ee, children: /* @__PURE__ */ t(K, { name: he, size: 24 }) }, he);
|
|
3458
3458
|
})
|
|
3459
3459
|
] }),
|
|
3460
3460
|
sx: {
|
|
@@ -3489,7 +3489,7 @@ const ha = ({
|
|
|
3489
3489
|
{
|
|
3490
3490
|
calendarActions: i,
|
|
3491
3491
|
copy: ye,
|
|
3492
|
-
range: [
|
|
3492
|
+
range: [fe, Oe],
|
|
3493
3493
|
shouldShrinkToIcon: !1,
|
|
3494
3494
|
variant: r
|
|
3495
3495
|
}
|
|
@@ -4621,28 +4621,28 @@ const ri = () => {
|
|
|
4621
4621
|
transaction: void 0
|
|
4622
4622
|
}, s = n.start, c = n.end;
|
|
4623
4623
|
switch (e.recurrence_type) {
|
|
4624
|
-
case
|
|
4624
|
+
case be.EveryWeek:
|
|
4625
4625
|
i.push(...M_(r, s, c));
|
|
4626
4626
|
break;
|
|
4627
|
-
case
|
|
4627
|
+
case be.EveryOtherWeek:
|
|
4628
4628
|
i.push(...k_(r, s, c));
|
|
4629
4629
|
break;
|
|
4630
|
-
case
|
|
4630
|
+
case be.TwiceAMonth:
|
|
4631
4631
|
i.push(...G_(r, s));
|
|
4632
4632
|
break;
|
|
4633
|
-
case
|
|
4633
|
+
case be.EveryMonth:
|
|
4634
4634
|
i.push(...B_(r, s));
|
|
4635
4635
|
break;
|
|
4636
|
-
case
|
|
4636
|
+
case be.EveryOtherMonth:
|
|
4637
4637
|
i.push(...H_(r, s, c));
|
|
4638
4638
|
break;
|
|
4639
|
-
case
|
|
4639
|
+
case be.EveryQuarter:
|
|
4640
4640
|
i.push(...P_(r, s, c));
|
|
4641
4641
|
break;
|
|
4642
|
-
case
|
|
4642
|
+
case be.EveryOtherQuarter:
|
|
4643
4643
|
i.push(...F_(r, s, c));
|
|
4644
4644
|
break;
|
|
4645
|
-
case
|
|
4645
|
+
case be.EveryYear:
|
|
4646
4646
|
i.push(...W_(r, s, c));
|
|
4647
4647
|
break;
|
|
4648
4648
|
}
|
|
@@ -4734,34 +4734,34 @@ const ri = () => {
|
|
|
4734
4734
|
const a = Ki(Se(), n.recurrence_day), o = vs(Se(), n.recurrence_day), r = bi(n.recurrence_day), s = n.second_recurrence_day ? bi(n.second_recurrence_day) : "";
|
|
4735
4735
|
let c = i ? S(e.monthly_ordinal, r) : e.monthly;
|
|
4736
4736
|
switch (n.recurrence_type) {
|
|
4737
|
-
case
|
|
4737
|
+
case be.EveryQuarter:
|
|
4738
4738
|
c = i ? S(e.quarterly_ordinal, r) : e.quarterly;
|
|
4739
4739
|
break;
|
|
4740
|
-
case
|
|
4740
|
+
case be.EveryWeek:
|
|
4741
4741
|
c = i ? S(
|
|
4742
4742
|
e.weekly_ordinal,
|
|
4743
4743
|
oe(a, ee.DAY_OF_WEEK)
|
|
4744
4744
|
) : e.weekly;
|
|
4745
4745
|
break;
|
|
4746
|
-
case
|
|
4746
|
+
case be.EveryYear:
|
|
4747
4747
|
c = i ? S(
|
|
4748
4748
|
e.anually_ordinal,
|
|
4749
4749
|
oe(o, ee.MONTH_DAY)
|
|
4750
4750
|
) : e.anually;
|
|
4751
4751
|
break;
|
|
4752
|
-
case
|
|
4752
|
+
case be.EveryOtherWeek:
|
|
4753
4753
|
c = i ? S(
|
|
4754
4754
|
e.every_other_week_ordinal,
|
|
4755
4755
|
oe(a, ee.DAY_OF_WEEK)
|
|
4756
4756
|
) : e.every_other_week;
|
|
4757
4757
|
break;
|
|
4758
|
-
case
|
|
4758
|
+
case be.EveryOtherMonth:
|
|
4759
4759
|
c = i ? S(e.every_other_month_ordinal, r) : e.every_other_month;
|
|
4760
4760
|
break;
|
|
4761
|
-
case
|
|
4761
|
+
case be.EveryOtherQuarter:
|
|
4762
4762
|
c = i ? S(e.every_other_quarter_ordinal, r) : e.every_other_quarter;
|
|
4763
4763
|
break;
|
|
4764
|
-
case
|
|
4764
|
+
case be.TwiceAMonth:
|
|
4765
4765
|
c = i ? S(e.twice_a_month_ordinal, r, s) : e.twice_a_month;
|
|
4766
4766
|
break;
|
|
4767
4767
|
}
|
|
@@ -4769,25 +4769,25 @@ const ri = () => {
|
|
|
4769
4769
|
}, Ua = (e, n) => {
|
|
4770
4770
|
let i = n;
|
|
4771
4771
|
switch (e) {
|
|
4772
|
-
case
|
|
4772
|
+
case be.EveryWeek:
|
|
4773
4773
|
i = so(n);
|
|
4774
4774
|
break;
|
|
4775
|
-
case
|
|
4775
|
+
case be.EveryOtherWeek:
|
|
4776
4776
|
i = yu(n);
|
|
4777
4777
|
break;
|
|
4778
|
-
case
|
|
4778
|
+
case be.EveryMonth:
|
|
4779
4779
|
i = Eu(n);
|
|
4780
4780
|
break;
|
|
4781
|
-
case
|
|
4781
|
+
case be.EveryOtherMonth:
|
|
4782
4782
|
i = Au(n);
|
|
4783
4783
|
break;
|
|
4784
|
-
case
|
|
4784
|
+
case be.EveryQuarter:
|
|
4785
4785
|
i = Vs(n);
|
|
4786
4786
|
break;
|
|
4787
|
-
case
|
|
4787
|
+
case be.EveryOtherQuarter:
|
|
4788
4788
|
i = Su(n);
|
|
4789
4789
|
break;
|
|
4790
|
-
case
|
|
4790
|
+
case be.EveryYear:
|
|
4791
4791
|
i = Tu(n);
|
|
4792
4792
|
break;
|
|
4793
4793
|
}
|
|
@@ -5300,7 +5300,7 @@ const ac = (e, n) => {
|
|
|
5300
5300
|
const i = e.toLowerCase().split(" "), a = n?.toString().toLowerCase() ?? "";
|
|
5301
5301
|
return i.every((o) => a.indexOf(o) > -1);
|
|
5302
5302
|
};
|
|
5303
|
-
var oh = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(oh || {}), rh = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(rh || {}), sh = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(sh || {}), Y = /* @__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))(Y || {}), Ka = /* @__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))(Ka || {}), Rt = /* @__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))(Rt || {}), Nt = /* @__PURE__ */ ((e) => (e.Accounts = "accounts", e.Budgets = "budgets", e.Insights = "insights", e.Personal = "personal", e))(Nt || {}), at = /* @__PURE__ */ ((e) => (e[e.DebtPaymentReminder = 3] = "DebtPaymentReminder", e[e.AccountBalanceLow = 6] = "AccountBalanceLow", e[e.AccountDepositLarge = 7] = "AccountDepositLarge", e[e.TransactionExpenseLarge = 8] = "TransactionExpenseLarge", e[e.TransactionFeeCharge = 9] = "TransactionFeeCharge", e[e.InternationalTransaction = 23] = "InternationalTransaction", e[e.AccountDepositLargePosted = 48] = "AccountDepositLargePosted", e))(at || {}), Wn = /* @__PURE__ */ ((e) => (e[e.BudgetExceeded = 1] = "BudgetExceeded", e[e.BudgetOffTarget = 2] = "BudgetOffTarget", e))(Wn || {}), $e = /* @__PURE__ */ ((e) => (e[e.AccountBalanceLow = 33] = "AccountBalanceLow", e[e.BillAmountNotStandard = 49] = "BillAmountNotStandard", e[e.CategorySpending = 50] = "CategorySpending", e[e.CreditCardCloseToLimit = 51] = "CreditCardCloseToLimit", e[e.DebtPaymentReminder = 37] = "DebtPaymentReminder", e[e.DuplicatePayment = 42] = "DuplicatePayment", e[e.MonthlySpendComparison = 53] = "MonthlySpendComparison", e[e.MonthlySpendToIncomeComparison = 54] = "MonthlySpendToIncomeComparison", e[e.MonthlySubscriptionAggregate = 55] = "MonthlySubscriptionAggregate", e[e.MonthlyTopMerchantSpending = 56] = "MonthlyTopMerchantSpending", e[e.SaveAnExtra100Dollars = 57] = "SaveAnExtra100Dollars", e[e.SavingsOpportunity = 58] = "SavingsOpportunity", e[e.SetUpDirectDeposit = 59] = "SetUpDirectDeposit", e[e.SwitchDirectDeposit = 60] = "SwitchDirectDeposit", e[e.UncategorizedTransactions = 61] = "UncategorizedTransactions", e[e.UnifiedDeposit = 62] = "UnifiedDeposit", e[e.UpcomingBill = 63] = "UpcomingBill", e[e.WeekendSpendingSummary = 64] = "WeekendSpendingSummary", e[e.WeeklyNewMerchants = 65] = "WeeklyNewMerchants", e[e.DiscoveredAccounts = 52] = "DiscoveredAccounts", e[e.TransactionExpenseLarge = 39] = "TransactionExpenseLarge", e[e.PromotionalCampaignMessages = 67] = "PromotionalCampaignMessages", e[e.TransparentOverdraft = 68] = "TransparentOverdraft", e))($e || {}), Yt = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(Yt || {}), fo = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(fo || {}), ch = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(ch || {}),
|
|
5303
|
+
var oh = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(oh || {}), rh = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(rh || {}), sh = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(sh || {}), Y = /* @__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))(Y || {}), Ka = /* @__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))(Ka || {}), Rt = /* @__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))(Rt || {}), Nt = /* @__PURE__ */ ((e) => (e.Accounts = "accounts", e.Budgets = "budgets", e.Insights = "insights", e.Personal = "personal", e))(Nt || {}), at = /* @__PURE__ */ ((e) => (e[e.DebtPaymentReminder = 3] = "DebtPaymentReminder", e[e.AccountBalanceLow = 6] = "AccountBalanceLow", e[e.AccountDepositLarge = 7] = "AccountDepositLarge", e[e.TransactionExpenseLarge = 8] = "TransactionExpenseLarge", e[e.TransactionFeeCharge = 9] = "TransactionFeeCharge", e[e.InternationalTransaction = 23] = "InternationalTransaction", e[e.AccountDepositLargePosted = 48] = "AccountDepositLargePosted", e))(at || {}), Wn = /* @__PURE__ */ ((e) => (e[e.BudgetExceeded = 1] = "BudgetExceeded", e[e.BudgetOffTarget = 2] = "BudgetOffTarget", e))(Wn || {}), $e = /* @__PURE__ */ ((e) => (e[e.AccountBalanceLow = 33] = "AccountBalanceLow", e[e.BillAmountNotStandard = 49] = "BillAmountNotStandard", e[e.CategorySpending = 50] = "CategorySpending", e[e.CreditCardCloseToLimit = 51] = "CreditCardCloseToLimit", e[e.DebtPaymentReminder = 37] = "DebtPaymentReminder", e[e.DuplicatePayment = 42] = "DuplicatePayment", e[e.MonthlySpendComparison = 53] = "MonthlySpendComparison", e[e.MonthlySpendToIncomeComparison = 54] = "MonthlySpendToIncomeComparison", e[e.MonthlySubscriptionAggregate = 55] = "MonthlySubscriptionAggregate", e[e.MonthlyTopMerchantSpending = 56] = "MonthlyTopMerchantSpending", e[e.SaveAnExtra100Dollars = 57] = "SaveAnExtra100Dollars", e[e.SavingsOpportunity = 58] = "SavingsOpportunity", e[e.SetUpDirectDeposit = 59] = "SetUpDirectDeposit", e[e.SwitchDirectDeposit = 60] = "SwitchDirectDeposit", e[e.UncategorizedTransactions = 61] = "UncategorizedTransactions", e[e.UnifiedDeposit = 62] = "UnifiedDeposit", e[e.UpcomingBill = 63] = "UpcomingBill", e[e.WeekendSpendingSummary = 64] = "WeekendSpendingSummary", e[e.WeeklyNewMerchants = 65] = "WeeklyNewMerchants", e[e.DiscoveredAccounts = 52] = "DiscoveredAccounts", e[e.TransactionExpenseLarge = 39] = "TransactionExpenseLarge", e[e.PromotionalCampaignMessages = 67] = "PromotionalCampaignMessages", e[e.TransparentOverdraft = 68] = "TransparentOverdraft", e))($e || {}), Yt = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(Yt || {}), fo = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(fo || {}), ch = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(ch || {}), be = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.EveryWeek = 1] = "EveryWeek", e[e.EveryOtherWeek = 2] = "EveryOtherWeek", e[e.EveryMonth = 3] = "EveryMonth", e[e.EveryOtherMonth = 4] = "EveryOtherMonth", e[e.EveryQuarter = 5] = "EveryQuarter", e[e.EveryOtherQuarter = 6] = "EveryOtherQuarter", e[e.EveryYear = 7] = "EveryYear", e[e.TwiceAMonth = 8] = "TwiceAMonth", e))(be || {}), Xe = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(Xe || {}), zt = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(zt || {}), nn = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e[e.Income = 3] = "Income", e[e.Transfer = 4] = "Transfer", e))(nn || {});
|
|
5304
5304
|
const oc = {
|
|
5305
5305
|
account_guid: "",
|
|
5306
5306
|
amount: 0,
|
|
@@ -5575,7 +5575,7 @@ class dh {
|
|
|
5575
5575
|
const vt = () => {
|
|
5576
5576
|
if (!g.useContext(Yn))
|
|
5577
5577
|
throw new Error("useTransactionsUiStore() must be used within the GlobalDataContext");
|
|
5578
|
-
return
|
|
5578
|
+
return Le().uiStore;
|
|
5579
5579
|
};
|
|
5580
5580
|
function uh() {
|
|
5581
5581
|
return window.opener && window.opener.location ? window.opener.location.toString() : document.referrer;
|
|
@@ -5592,7 +5592,7 @@ function hh(e) {
|
|
|
5592
5592
|
});
|
|
5593
5593
|
}
|
|
5594
5594
|
const gh = ({ transaction: e, onClick: n }) => {
|
|
5595
|
-
const { associatedBeats: i } =
|
|
5595
|
+
const { associatedBeats: i } = Le(), { transactions: a } = x(), { showInsights: o } = vt(), r = e.transaction_type === Yt.CREDIT, s = g.useMemo(() => i.find((c) => c.associated_transaction_guid === e.guid), [i, e]);
|
|
5596
5596
|
return /* @__PURE__ */ l(
|
|
5597
5597
|
f_,
|
|
5598
5598
|
{
|
|
@@ -5681,7 +5681,7 @@ const gh = ({ transaction: e, onClick: n }) => {
|
|
|
5681
5681
|
width: c = "100%",
|
|
5682
5682
|
zeroState: d = /* @__PURE__ */ t(ph, {})
|
|
5683
5683
|
}) => {
|
|
5684
|
-
const { isLoading: _, sortedTransactions: u } =
|
|
5684
|
+
const { isLoading: _, sortedTransactions: u } = Le(), h = g.useMemo(() => s ? u : u.filter((v) => !v.is_hidden), [u, s]), { clearExpandedSplits: m, setShowInsights: p, toggleSplit: f } = vt(), { onEvent: E } = X(), y = (v) => {
|
|
5685
5685
|
const w = h.find((D) => D.guid === v);
|
|
5686
5686
|
if (w?.has_been_split) {
|
|
5687
5687
|
f(w.guid);
|
|
@@ -5736,7 +5736,7 @@ const gh = ({ transaction: e, onClick: n }) => {
|
|
|
5736
5736
|
`${e.row.account}`,
|
|
5737
5737
|
e.row.number && ` | ${e.row.number}`
|
|
5738
5738
|
] }), yh = (e) => {
|
|
5739
|
-
const { associatedBeats: n } =
|
|
5739
|
+
const { associatedBeats: n } = Le(), { showInsights: i } = vt(), { amount: a, transaction_type: o } = e.row, r = n.find((c) => c.associated_transaction_guid === e.row.guid), s = o === Yt.CREDIT;
|
|
5740
5740
|
return /* @__PURE__ */ l(b, { alignItems: "flex-end", tabIndex: e.tabIndex, children: [
|
|
5741
5741
|
/* @__PURE__ */ l(C, { color: s ? "success.main" : "text.primary", variant: "Small", children: [
|
|
5742
5742
|
s ? "+" : "",
|
|
@@ -5805,7 +5805,7 @@ const gh = ({ transaction: e, onClick: n }) => {
|
|
|
5805
5805
|
onCategoryClick: n,
|
|
5806
5806
|
onRowClick: i
|
|
5807
5807
|
}) => {
|
|
5808
|
-
const { transactions: a } = x(), { isCopyLoaded: o } = se(), { isLoading: r, sortedTransactions: s } =
|
|
5808
|
+
const { transactions: a } = x(), { isCopyLoaded: o } = se(), { isLoading: r, sortedTransactions: s } = Le(), { clearExpandedSplits: c, toggleSplit: d } = vt();
|
|
5809
5809
|
g.useEffect(() => () => c(), []);
|
|
5810
5810
|
const _ = g.useMemo(
|
|
5811
5811
|
() => s.map((m) => ({
|
|
@@ -6455,7 +6455,7 @@ class Xh {
|
|
|
6455
6455
|
getCategoryName = (n) => this.categories.find((a) => a.guid === n)?.name ?? da[n];
|
|
6456
6456
|
}
|
|
6457
6457
|
const cc = ({ transaction: e }) => {
|
|
6458
|
-
const { addOrUpdateTransactionRule: n, updateTransaction: i } =
|
|
6458
|
+
const { addOrUpdateTransactionRule: n, updateTransaction: i } = Le(), { categories: a } = Ve(), { onEvent: o } = X(), { setShouldDisableDrawerScroll: r, updateManualTransaction: s } = vt(), { transactions: c } = x(), [d, _] = g.useState(!1), [u, h] = g.useState(""), m = async (y) => {
|
|
6459
6459
|
await i({ ...e, category_guid: u }), y && await n(u, e), h(""), o(W.TRANSACTION_DETAILS_CLICK_CATEGORY, {
|
|
6460
6460
|
transaction_guid: e.guid
|
|
6461
6461
|
});
|
|
@@ -6540,7 +6540,7 @@ const cc = ({ transaction: e }) => {
|
|
|
6540
6540
|
)
|
|
6541
6541
|
] });
|
|
6542
6542
|
}, lc = ({ transaction: e }) => {
|
|
6543
|
-
const n = yt(), { onEvent: i } = X(), { updateTransaction: a } =
|
|
6543
|
+
const n = yt(), { onEvent: i } = X(), { updateTransaction: a } = Le(), { updateManualTransaction: o } = vt(), { common: r, transactions: s } = x(), [c, d] = g.useState(!1), [_, u] = g.useState(e.date), h = (p) => {
|
|
6544
6544
|
u(Pe(p));
|
|
6545
6545
|
}, m = async () => {
|
|
6546
6546
|
if (e.is_manual && !e.guid) {
|
|
@@ -6597,7 +6597,7 @@ const cc = ({ transaction: e }) => {
|
|
|
6597
6597
|
)
|
|
6598
6598
|
] });
|
|
6599
6599
|
}, qh = ({ transaction: e }) => {
|
|
6600
|
-
const { onEvent: n } = X(), { removeTransaction: i } =
|
|
6600
|
+
const { onEvent: n } = X(), { removeTransaction: i } = Le(), { setShouldDisableDrawerScroll: a } = vt(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), d = async () => {
|
|
6601
6601
|
await i(e.guid), n($.ON_TRANSACTION_DELETE_DELETED);
|
|
6602
6602
|
};
|
|
6603
6603
|
return /* @__PURE__ */ l(k, { className: "mx-txn-delete", children: [
|
|
@@ -6637,7 +6637,7 @@ const cc = ({ transaction: e }) => {
|
|
|
6637
6637
|
)
|
|
6638
6638
|
] });
|
|
6639
6639
|
}, Zh = T(qh), Qh = ({ transaction: e }) => {
|
|
6640
|
-
const { onEvent: n } = X(), { updateTransaction: i } =
|
|
6640
|
+
const { onEvent: n } = X(), { updateTransaction: i } = Le(), { setShouldDisableDrawerScroll: a } = vt(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), d = async () => {
|
|
6641
6641
|
await i({ ...e, merchant_guid: "" }), n(W.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
|
|
6642
6642
|
transaction_guid: e.guid
|
|
6643
6643
|
});
|
|
@@ -6677,7 +6677,7 @@ const cc = ({ transaction: e }) => {
|
|
|
6677
6677
|
)
|
|
6678
6678
|
] });
|
|
6679
6679
|
}, Jh = T(Qh), eg = ({ transaction: e }) => {
|
|
6680
|
-
const { onEvent: n } = X(), { updateTransaction: i } =
|
|
6680
|
+
const { onEvent: n } = X(), { updateTransaction: i } = Le(), { setShouldDisableDrawerScroll: a } = vt(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), d = e.is_hidden, _ = async () => {
|
|
6681
6681
|
await i({ ...e, is_hidden: !e.is_hidden }), n(
|
|
6682
6682
|
d ? $.ON_TRANSACTION_UNHIDDEN : $.ON_TRANSACTION_HIDDEN
|
|
6683
6683
|
);
|
|
@@ -6766,7 +6766,7 @@ const cc = ({ transaction: e }) => {
|
|
|
6766
6766
|
] })
|
|
6767
6767
|
] });
|
|
6768
6768
|
}, ng = ({ transaction: e }) => {
|
|
6769
|
-
const { onEvent: n } = X(), { updateTransaction: i } =
|
|
6769
|
+
const { onEvent: n } = X(), { updateTransaction: i } = Le(), { updateManualTransaction: a } = vt(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), [d, _] = g.useState("");
|
|
6770
6770
|
g.useEffect(() => {
|
|
6771
6771
|
s && _(e.memo ? e.memo : "");
|
|
6772
6772
|
}, [s]);
|
|
@@ -6993,7 +6993,7 @@ const cc = ({ transaction: e }) => {
|
|
|
6993
6993
|
) })
|
|
6994
6994
|
] });
|
|
6995
6995
|
}, rg = T(og), sg = ({ transaction: e }) => {
|
|
6996
|
-
const { onEvent: n } = X(), { splitTransaction: i, unSplitTransaction: a } =
|
|
6996
|
+
const { onEvent: n } = X(), { splitTransaction: i, unSplitTransaction: a } = Le(), { common: o, transactions: r } = x(), { setShouldDisableDrawerScroll: s } = vt(), { categories: c } = Ve(), d = {
|
|
6997
6997
|
...e,
|
|
6998
6998
|
amount: e.amount - 1,
|
|
6999
6999
|
guid: "",
|
|
@@ -7113,7 +7113,7 @@ const cc = ({ transaction: e }) => {
|
|
|
7113
7113
|
)
|
|
7114
7114
|
] });
|
|
7115
7115
|
}, cg = T(sg), lg = () => {
|
|
7116
|
-
const e = pe(), { onEvent: n } = X(), { addTag: i } =
|
|
7116
|
+
const e = pe(), { onEvent: n } = X(), { addTag: i } = Le(), { transactions: a } = x(), [o, r] = g.useState(!1), [s, c] = g.useState(""), [d, _] = g.useState(""), u = g.useRef(null);
|
|
7117
7117
|
g.useEffect(() => {
|
|
7118
7118
|
o && u?.current?.focus();
|
|
7119
7119
|
}, [o]);
|
|
@@ -7200,7 +7200,7 @@ const cc = ({ transaction: e }) => {
|
|
|
7200
7200
|
}
|
|
7201
7201
|
) });
|
|
7202
7202
|
}, _g = T(ug), hg = ({ onTagChecked: e, selectedTags: n, tag: i }) => {
|
|
7203
|
-
const { onEvent: a } = X(), { removeTag: o, updateTag: r } =
|
|
7203
|
+
const { onEvent: a } = X(), { removeTag: o, updateTag: r } = Le(), { common: s, transactions: c } = x(), [d, _] = g.useState(!1), [u, h] = g.useState(!1), [m, p] = g.useState(""), [f, E] = g.useState(""), y = async () => {
|
|
7204
7204
|
a($.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), i && await r({ ...i, name: m }), _(!1);
|
|
7205
7205
|
}, A = async () => {
|
|
7206
7206
|
a($.ON_TRANSACTION_TAGS_TAG_DELETED), await o(i.guid), h(!1);
|
|
@@ -7294,7 +7294,7 @@ const cc = ({ transaction: e }) => {
|
|
|
7294
7294
|
}
|
|
7295
7295
|
);
|
|
7296
7296
|
}, gg = T(hg), mg = ({ selectedTags: e, onTagChecked: n }) => {
|
|
7297
|
-
const { tags: i } =
|
|
7297
|
+
const { tags: i } = Le(), [a, o] = g.useState(""), r = i.filter(
|
|
7298
7298
|
(s) => s.name.toLowerCase().includes(a.toLowerCase())
|
|
7299
7299
|
);
|
|
7300
7300
|
return /* @__PURE__ */ l("div", { className: "mx-txn-tag-manager", children: [
|
|
@@ -7312,7 +7312,7 @@ const cc = ({ transaction: e }) => {
|
|
|
7312
7312
|
] }, s.guid)) }) })
|
|
7313
7313
|
] });
|
|
7314
7314
|
}, pg = T(mg), Cg = ({ transaction: e }) => {
|
|
7315
|
-
const { onEvent: n } = X(), { tags: i, updateTaggings: a, updateTransaction: o } =
|
|
7315
|
+
const { onEvent: n } = X(), { tags: i, updateTaggings: a, updateTransaction: o } = Le(), { common: r, transactions: s } = x(), { updateManualTransaction: c } = vt(), [d, _] = g.useState(!1), [u, h] = g.useState(e.tags);
|
|
7316
7316
|
g.useEffect(() => {
|
|
7317
7317
|
h(e.tags);
|
|
7318
7318
|
}, [d, e]);
|
|
@@ -7367,7 +7367,7 @@ const cc = ({ transaction: e }) => {
|
|
|
7367
7367
|
)
|
|
7368
7368
|
] });
|
|
7369
7369
|
}, _c = T(Cg), fg = ({ transaction: e }) => {
|
|
7370
|
-
const { updateTransaction: n } =
|
|
7370
|
+
const { updateTransaction: n } = Le(), { common: i, transactions: a } = x(), { onEvent: o } = X(), [r, s] = g.useState(!1), [c, d] = g.useState(""), _ = g.useRef(null);
|
|
7371
7371
|
g.useEffect(() => {
|
|
7372
7372
|
r && (d(e.description), _?.current?.focus());
|
|
7373
7373
|
}, [r]);
|
|
@@ -7418,7 +7418,7 @@ const cc = ({ transaction: e }) => {
|
|
|
7418
7418
|
)
|
|
7419
7419
|
] }) });
|
|
7420
7420
|
}, bg = T(fg), yg = ({ transaction: e }) => {
|
|
7421
|
-
const { updateTransaction: n } =
|
|
7421
|
+
const { updateTransaction: n } = Le(), { transactions: i } = x(), { onEvent: a } = X(), o = pe(), r = async () => {
|
|
7422
7422
|
a(W.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: e.guid }), await n({ ...e, is_flagged: !e.is_flagged });
|
|
7423
7423
|
};
|
|
7424
7424
|
return /* @__PURE__ */ t("div", { className: "mx-txn-transaction-flag", children: /* @__PURE__ */ t(
|
|
@@ -7618,7 +7618,7 @@ const cc = ({ transaction: e }) => {
|
|
|
7618
7618
|
] })
|
|
7619
7619
|
] });
|
|
7620
7620
|
}, Ig = T(xg), wg = ({ onClose: e, transaction: n }) => {
|
|
7621
|
-
const { addOrUpdateTransactionRule: i, updateTransaction: a } =
|
|
7621
|
+
const { addOrUpdateTransactionRule: i, updateTransaction: a } = Le(), { transactions: o } = x(), { categories: r } = Ve(), [s, c] = g.useState(""), d = g.useMemo(
|
|
7622
7622
|
() => r.find((u) => u.guid === s),
|
|
7623
7623
|
[s]
|
|
7624
7624
|
), _ = async (u) => {
|
|
@@ -7680,14 +7680,14 @@ const cc = ({ transaction: e }) => {
|
|
|
7680
7680
|
tags: M,
|
|
7681
7681
|
transactions: R,
|
|
7682
7682
|
updateTransaction: L
|
|
7683
|
-
} =
|
|
7683
|
+
} = Le(), {
|
|
7684
7684
|
manualTransaction: U,
|
|
7685
7685
|
isAmountValid: te,
|
|
7686
7686
|
searchValue: ue,
|
|
7687
7687
|
setSearchValue: ye,
|
|
7688
|
-
setShowInsights:
|
|
7689
|
-
updateManualTransaction:
|
|
7690
|
-
} = vt(), { userProfile:
|
|
7688
|
+
setShowInsights: fe,
|
|
7689
|
+
updateManualTransaction: Oe
|
|
7690
|
+
} = vt(), { userProfile: ke } = wt(), [ge, he] = 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(() => {
|
|
7692
7692
|
const lt = o.filter((jn) => !jn.is_hidden), Ho = Ye(Se()), Po = We(Se());
|
|
7693
7693
|
y(lt), E(Ho, Po), O({
|
|
@@ -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
|
+
fe(i);
|
|
7706
7706
|
}, [i]);
|
|
7707
7707
|
const Gt = g.useMemo(
|
|
7708
7708
|
() => o.filter((lt) => lt.is_manual),
|
|
@@ -7717,22 +7717,22 @@ const cc = ({ transaction: e }) => {
|
|
|
7717
7717
|
}, Aa = () => {
|
|
7718
7718
|
ac(G, M), d(W.TRANSACTIONS_CLICK_EXPORT);
|
|
7719
7719
|
}, bl = () => {
|
|
7720
|
-
Gt.length > 0 ? (
|
|
7720
|
+
Gt.length > 0 ? (Oe({
|
|
7721
7721
|
...oc,
|
|
7722
7722
|
date: Pe(Se()),
|
|
7723
|
-
user_guid:
|
|
7724
|
-
}),
|
|
7723
|
+
user_guid: ke?.user_guid || ""
|
|
7724
|
+
}), he(
|
|
7725
7725
|
"addTransaction"
|
|
7726
7726
|
/* AddTransaction */
|
|
7727
7727
|
), d(W.TRANSACTIONS_CLICK_ADD)) : (Me(!0), d(W.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
|
7728
7728
|
}, yl = async () => {
|
|
7729
|
-
zn && await v(U),
|
|
7729
|
+
zn && await v(U), he("");
|
|
7730
7730
|
}, El = () => {
|
|
7731
7731
|
Me(!1), z(!0);
|
|
7732
7732
|
}, Al = async () => {
|
|
7733
7733
|
z(!1), await r();
|
|
7734
7734
|
}, Sl = async () => {
|
|
7735
|
-
ze && !ze.has_been_viewed && await L({ ...ze, has_been_viewed: !0 }),
|
|
7735
|
+
ze && !ze.has_been_viewed && await L({ ...ze, has_been_viewed: !0 }), he("");
|
|
7736
7736
|
};
|
|
7737
7737
|
if (!m || !p || !Ne)
|
|
7738
7738
|
return /* @__PURE__ */ t(le, {});
|
|
@@ -7778,13 +7778,13 @@ const cc = ({ transaction: e }) => {
|
|
|
7778
7778
|
{
|
|
7779
7779
|
height: `calc(${n} - ${Er}px)`,
|
|
7780
7780
|
onCategoryClick: (lt) => {
|
|
7781
|
-
B(lt),
|
|
7781
|
+
B(lt), he(
|
|
7782
7782
|
"category"
|
|
7783
7783
|
/* Category */
|
|
7784
7784
|
);
|
|
7785
7785
|
},
|
|
7786
7786
|
onRowClick: (lt) => {
|
|
7787
|
-
B(lt),
|
|
7787
|
+
B(lt), he(
|
|
7788
7788
|
"transaction"
|
|
7789
7789
|
/* Transaction */
|
|
7790
7790
|
), d(W.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: lt });
|
|
@@ -7805,7 +7805,7 @@ const cc = ({ transaction: e }) => {
|
|
|
7805
7805
|
{
|
|
7806
7806
|
height: `calc(${n} - ${Er}px)`,
|
|
7807
7807
|
onClick: (lt) => {
|
|
7808
|
-
B(lt),
|
|
7808
|
+
B(lt), he(
|
|
7809
7809
|
"transaction"
|
|
7810
7810
|
/* Transaction */
|
|
7811
7811
|
);
|
|
@@ -7820,17 +7820,17 @@ const cc = ({ transaction: e }) => {
|
|
|
7820
7820
|
ce,
|
|
7821
7821
|
{
|
|
7822
7822
|
ariaLabelClose: _.close_aria,
|
|
7823
|
-
isOpen:
|
|
7823
|
+
isOpen: ge === "transaction" && !!ze,
|
|
7824
7824
|
onClose: Sl,
|
|
7825
7825
|
title: u.details_title,
|
|
7826
7826
|
children: ze && /* @__PURE__ */ t(si, { transaction: ze })
|
|
7827
7827
|
}
|
|
7828
7828
|
),
|
|
7829
|
-
ze &&
|
|
7829
|
+
ze && ge === "category" && /* @__PURE__ */ t(
|
|
7830
7830
|
vg,
|
|
7831
7831
|
{
|
|
7832
7832
|
onClose: () => {
|
|
7833
|
-
c(""),
|
|
7833
|
+
c(""), he(""), B("");
|
|
7834
7834
|
},
|
|
7835
7835
|
transaction: ze
|
|
7836
7836
|
}
|
|
@@ -7839,9 +7839,9 @@ const cc = ({ transaction: e }) => {
|
|
|
7839
7839
|
ce,
|
|
7840
7840
|
{
|
|
7841
7841
|
ariaLabelClose: _.close_aria,
|
|
7842
|
-
isOpen:
|
|
7842
|
+
isOpen: ge === "addTransaction",
|
|
7843
7843
|
isPrimaryDisabled: !zn,
|
|
7844
|
-
onClose: () =>
|
|
7844
|
+
onClose: () => he(""),
|
|
7845
7845
|
onPrimaryAction: yl,
|
|
7846
7846
|
title: u.add_transaction_title,
|
|
7847
7847
|
children: /* @__PURE__ */ t(Ig, {})
|
|
@@ -7879,14 +7879,14 @@ const cc = ({ transaction: e }) => {
|
|
|
7879
7879
|
}) => {
|
|
7880
7880
|
const { recurring: s } = x(), c = g.useMemo(
|
|
7881
7881
|
() => [
|
|
7882
|
-
{ id:
|
|
7883
|
-
{ id:
|
|
7884
|
-
{ id:
|
|
7885
|
-
{ id:
|
|
7886
|
-
{ id:
|
|
7887
|
-
{ id:
|
|
7888
|
-
{ id:
|
|
7889
|
-
{ id:
|
|
7882
|
+
{ id: be.EveryWeek, label: s.frequency_every_week },
|
|
7883
|
+
{ id: be.EveryOtherWeek, label: s.frequency_every_other_week },
|
|
7884
|
+
{ id: be.TwiceAMonth, label: s.frequency_twice_a_month },
|
|
7885
|
+
{ id: be.EveryMonth, label: s.frequency_every_month },
|
|
7886
|
+
{ id: be.EveryOtherMonth, label: s.frequency_every_other_month },
|
|
7887
|
+
{ id: be.EveryQuarter, label: s.frequency_every_quarter },
|
|
7888
|
+
{ id: be.EveryOtherQuarter, label: s.frequency_every_other_quarter },
|
|
7889
|
+
{ id: be.EveryYear, label: s.frequency_every_year }
|
|
7890
7890
|
],
|
|
7891
7891
|
[s]
|
|
7892
7892
|
), d = [
|
|
@@ -7902,7 +7902,7 @@ const cc = ({ transaction: e }) => {
|
|
|
7902
7902
|
label: bi(y + 1)
|
|
7903
7903
|
}));
|
|
7904
7904
|
_[30].label += ` (${s.last_day_of_month})`;
|
|
7905
|
-
const u = _.slice(0, 15), h = _.slice(14), m = e ===
|
|
7905
|
+
const u = _.slice(0, 15), h = _.slice(14), m = e === be.EveryWeek || e === be.EveryOtherWeek, p = e === be.TwiceAMonth || e === be.EveryMonth || e === be.EveryOtherMonth || e === be.EveryQuarter || e === be.EveryOtherQuarter, f = vs(Se(), n), E = (y) => {
|
|
7906
7906
|
y && o(Pd(y));
|
|
7907
7907
|
};
|
|
7908
7908
|
return /* @__PURE__ */ l(b, { gap: 24, sx: { m: 24 }, children: [
|
|
@@ -7927,13 +7927,13 @@ const cc = ({ transaction: e }) => {
|
|
|
7927
7927
|
p && /* @__PURE__ */ t(
|
|
7928
7928
|
Gi,
|
|
7929
7929
|
{
|
|
7930
|
-
label: e ===
|
|
7930
|
+
label: e === be.TwiceAMonth ? s.first_day_of_the_month : s.day_of_the_month,
|
|
7931
7931
|
onChange: o,
|
|
7932
|
-
options: e ===
|
|
7932
|
+
options: e === be.TwiceAMonth ? u : _,
|
|
7933
7933
|
value: n
|
|
7934
7934
|
}
|
|
7935
7935
|
),
|
|
7936
|
-
e ===
|
|
7936
|
+
e === be.TwiceAMonth && /* @__PURE__ */ t(
|
|
7937
7937
|
Gi,
|
|
7938
7938
|
{
|
|
7939
7939
|
label: s.second_day_of_the_month,
|
|
@@ -7942,7 +7942,7 @@ const cc = ({ transaction: e }) => {
|
|
|
7942
7942
|
value: i || 0
|
|
7943
7943
|
}
|
|
7944
7944
|
),
|
|
7945
|
-
e ===
|
|
7945
|
+
e === be.EveryYear && /* @__PURE__ */ t(Ti, { dateAdapter: ni, children: /* @__PURE__ */ t(
|
|
7946
7946
|
Qa,
|
|
7947
7947
|
{
|
|
7948
7948
|
disablePast: !0,
|
|
@@ -7997,7 +7997,7 @@ const cc = ({ transaction: e }) => {
|
|
|
7997
7997
|
] });
|
|
7998
7998
|
}), gc = T(
|
|
7999
7999
|
({ onDeleted: e, recurringTransaction: n }) => {
|
|
8000
|
-
const { recurring: i } = x(), { selectedAccountGuids: a } = se(), { onEvent: o } = X(), { deleteRepeatingTransaction: r } = tt(), { setFilter: s, transactions: c } =
|
|
8000
|
+
const { recurring: i } = x(), { selectedAccountGuids: a } = se(), { onEvent: o } = X(), { deleteRepeatingTransaction: r } = tt(), { setFilter: s, transactions: c } = Le(), { amount: d, description: _, merchant_guid: u } = n, [h, m] = g.useState(!1), [p, f] = g.useState("");
|
|
8001
8001
|
g.useEffect(() => {
|
|
8002
8002
|
s({
|
|
8003
8003
|
accounts: a,
|
|
@@ -8249,7 +8249,7 @@ const cc = ({ transaction: e }) => {
|
|
|
8249
8249
|
label: n,
|
|
8250
8250
|
onAddRecurringTransaction: i = () => null
|
|
8251
8251
|
}) => {
|
|
8252
|
-
const { recurring: a } = x(), { filter: o, setFilter: r, transactions: s } =
|
|
8252
|
+
const { recurring: a } = x(), { filter: o, setFilter: r, transactions: s } = Le(), { addRepeatingTransaction: c } = tt(), { user: d } = wt(), [_, u] = g.useState(!1), [h, m] = g.useState(""), [p, f] = g.useState(be.EveryMonth), [E, y] = g.useState(1), [A, I] = g.useState(15), v = g.useMemo(
|
|
8253
8253
|
() => s.find((G) => G.guid === h),
|
|
8254
8254
|
[h, s]
|
|
8255
8255
|
), w = () => {
|
|
@@ -8344,7 +8344,7 @@ const cc = ({ transaction: e }) => {
|
|
|
8344
8344
|
};
|
|
8345
8345
|
return /* @__PURE__ */ l(ie, { sx: { bgcolor: "background.paper" }, children: [
|
|
8346
8346
|
n.filter(
|
|
8347
|
-
(r) => r.repeating_transaction_type !== nn.Income && (r.transactions.length > 0 || r.recurrence_type ===
|
|
8347
|
+
(r) => r.repeating_transaction_type !== nn.Income && (r.transactions.length > 0 || r.recurrence_type === be.EveryYear)
|
|
8348
8348
|
).map((r, s) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
8349
8349
|
/* @__PURE__ */ t(mc, { onClick: a, repeatingTransaction: r }),
|
|
8350
8350
|
/* @__PURE__ */ t(F, { variant: s < n.length - 1 ? "inset" : "fullWidth" })
|
|
@@ -8361,7 +8361,7 @@ const cc = ({ transaction: e }) => {
|
|
|
8361
8361
|
};
|
|
8362
8362
|
return /* @__PURE__ */ l(ie, { sx: { bgcolor: "background.paper" }, children: [
|
|
8363
8363
|
n.filter(
|
|
8364
|
-
(r) => r.repeating_transaction_type === nn.Income && (r.transactions.length > 0 || r.recurrence_type ===
|
|
8364
|
+
(r) => r.repeating_transaction_type === nn.Income && (r.transactions.length > 0 || r.recurrence_type === be.EveryYear)
|
|
8365
8365
|
).map((r, s) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
8366
8366
|
/* @__PURE__ */ t(mc, { onClick: a, repeatingTransaction: r }),
|
|
8367
8367
|
/* @__PURE__ */ t(F, { variant: s < n.length - 1 ? "inset" : "fullWidth" })
|
|
@@ -8890,7 +8890,7 @@ const cc = ({ transaction: e }) => {
|
|
|
8890
8890
|
] }) })
|
|
8891
8891
|
] });
|
|
8892
8892
|
}), z4 = T(({ onBackClick: e, sx: n = {} }) => {
|
|
8893
|
-
const { accounts: i } = Ce(), { recurring: a } = x(), { isCopyLoaded: o, isInitialized: r, selectedAccountGuids: s, setSelectedAccounts: c } = se(), { isDataLoaded: d, loadRepeatingTransactions: _, setDateRange: u } = tt(), { setFilter: h } =
|
|
8893
|
+
const { accounts: i } = Ce(), { recurring: a } = x(), { isCopyLoaded: o, isInitialized: r, selectedAccountGuids: s, setSelectedAccounts: c } = se(), { isDataLoaded: d, loadRepeatingTransactions: _, setDateRange: u } = tt(), { setFilter: h } = Le(), { 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 } = Ce(), { recurring: a } = x(), { setFilter: o } =
|
|
8959
|
+
const { accounts: i } = Ce(), { recurring: a } = x(), { setFilter: o } = Le(), { 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(() => {
|
|
@@ -9065,7 +9065,7 @@ const cc = ({ transaction: e }) => {
|
|
|
9065
9065
|
paidExpenseTotal: f,
|
|
9066
9066
|
setDateRange: E,
|
|
9067
9067
|
upcomingExpenseTotal: y
|
|
9068
|
-
} = tt(), { setFilter: A } =
|
|
9068
|
+
} = tt(), { setFilter: A } = Le(), { recurring: I, budgets: v } = x();
|
|
9069
9069
|
g.useEffect(() => {
|
|
9070
9070
|
_(a);
|
|
9071
9071
|
}, [a]), g.useEffect(() => {
|
|
@@ -9075,31 +9075,31 @@ const cc = ({ transaction: e }) => {
|
|
|
9075
9075
|
}), E({ start: Ye(/* @__PURE__ */ new Date()), end: We(/* @__PURE__ */ new Date()) }), u().finally(), i(!0));
|
|
9076
9076
|
}, [c]);
|
|
9077
9077
|
const { onEvent: w } = X(), D = pe(), O = r <= 288, G = r >= 450, M = g.useMemo(() => {
|
|
9078
|
-
const
|
|
9078
|
+
const Oe = [
|
|
9079
9079
|
{ color: D.palette.success.main, percentage: `${f / m}` }
|
|
9080
9080
|
];
|
|
9081
|
-
return p &&
|
|
9081
|
+
return p && Oe.push({
|
|
9082
9082
|
color: D.palette.error.main,
|
|
9083
9083
|
percentage: `${p / m}`
|
|
9084
|
-
}),
|
|
9084
|
+
}), Oe;
|
|
9085
9085
|
}, [
|
|
9086
9086
|
f,
|
|
9087
9087
|
m,
|
|
9088
9088
|
p,
|
|
9089
9089
|
D.palette.success.main,
|
|
9090
9090
|
D.palette.error.main
|
|
9091
|
-
]), R =
|
|
9091
|
+
]), R = g.useMemo(() => P(m, m === 0 ? "0,0" : "0,0.00"), [m]), L = () => {
|
|
9092
9092
|
w(W.RECURRING_TRANSACTIONS_MICRO_WIDGET_CTA), e();
|
|
9093
9093
|
};
|
|
9094
9094
|
if (!s || !n) return /* @__PURE__ */ t(le, { height: 100 });
|
|
9095
|
-
const
|
|
9095
|
+
const U = 32, te = h.length > 0, ue = () => te ? O ? /* @__PURE__ */ t(
|
|
9096
9096
|
Fg,
|
|
9097
9097
|
{
|
|
9098
|
-
logoSize:
|
|
9098
|
+
logoSize: U,
|
|
9099
9099
|
maxLogos: 3,
|
|
9100
|
-
upcomingRecurrences: h
|
|
9100
|
+
upcomingRecurrences: h.slice(0, 3)
|
|
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.slice(0, 3) }) : /* @__PURE__ */ t(b, { sx: { width: O ? 64 : 104 } }), ye = [
|
|
9103
9103
|
{
|
|
9104
9104
|
amount: f,
|
|
9105
9105
|
bgColor: "success.main",
|
|
@@ -9115,15 +9115,15 @@ const cc = ({ transaction: e }) => {
|
|
|
9115
9115
|
bgColor: "border.light",
|
|
9116
9116
|
label: I.upcoming
|
|
9117
9117
|
}
|
|
9118
|
-
],
|
|
9118
|
+
], fe = n && !a?.length;
|
|
9119
9119
|
return /* @__PURE__ */ t(
|
|
9120
9120
|
ha,
|
|
9121
9121
|
{
|
|
9122
9122
|
className: "mx-recurring-transaction-microwidget",
|
|
9123
|
-
ctaLabel:
|
|
9124
|
-
onCTAClick:
|
|
9123
|
+
ctaLabel: fe ? v.get_started_cta : I.primary_cta,
|
|
9124
|
+
onCTAClick: L,
|
|
9125
9125
|
title: I.recurring_expenses,
|
|
9126
|
-
children:
|
|
9126
|
+
children: fe ? /* @__PURE__ */ t(Ug, {}) : /* @__PURE__ */ l(Z, { children: [
|
|
9127
9127
|
/* @__PURE__ */ l(
|
|
9128
9128
|
b,
|
|
9129
9129
|
{
|
|
@@ -9137,18 +9137,21 @@ const cc = ({ transaction: e }) => {
|
|
|
9137
9137
|
b,
|
|
9138
9138
|
{
|
|
9139
9139
|
sx: [
|
|
9140
|
-
|
|
9140
|
+
R.length >= 10 && O ? { flexDirection: "column" } : { flexDirection: "row", gap: 2 },
|
|
9141
9141
|
{
|
|
9142
9142
|
alignItems: "baseline",
|
|
9143
|
-
|
|
9143
|
+
overflow: "hidden",
|
|
9144
|
+
textOverflow: "ellipsis",
|
|
9145
|
+
whiteSpace: "nowrap"
|
|
9144
9146
|
}
|
|
9145
9147
|
],
|
|
9146
9148
|
children: [
|
|
9147
9149
|
/* @__PURE__ */ t(
|
|
9148
9150
|
C,
|
|
9149
9151
|
{
|
|
9150
|
-
|
|
9151
|
-
|
|
9152
|
+
sx: { width: "100%" },
|
|
9153
|
+
variant: R.length >= 10 && O ? "H3" : "H2",
|
|
9154
|
+
children: R
|
|
9152
9155
|
}
|
|
9153
9156
|
),
|
|
9154
9157
|
/* @__PURE__ */ t(
|
|
@@ -9164,7 +9167,7 @@ const cc = ({ transaction: e }) => {
|
|
|
9164
9167
|
]
|
|
9165
9168
|
}
|
|
9166
9169
|
),
|
|
9167
|
-
|
|
9170
|
+
ue()
|
|
9168
9171
|
]
|
|
9169
9172
|
}
|
|
9170
9173
|
),
|
|
@@ -9179,16 +9182,16 @@ const cc = ({ transaction: e }) => {
|
|
|
9179
9182
|
gap: 16,
|
|
9180
9183
|
mt: 4
|
|
9181
9184
|
},
|
|
9182
|
-
children:
|
|
9185
|
+
children: ye.map((Oe, ke) => /* @__PURE__ */ t(
|
|
9183
9186
|
Wg,
|
|
9184
9187
|
{
|
|
9185
|
-
amount:
|
|
9186
|
-
bgcolor:
|
|
9188
|
+
amount: Oe.amount,
|
|
9189
|
+
bgcolor: Oe.bgColor,
|
|
9187
9190
|
isLargeScreen: G,
|
|
9188
9191
|
isSmallScreen: O,
|
|
9189
|
-
label:
|
|
9192
|
+
label: Oe.label
|
|
9190
9193
|
},
|
|
9191
|
-
`recurrence-legend-${
|
|
9194
|
+
`recurrence-legend-${ke}`
|
|
9192
9195
|
))
|
|
9193
9196
|
}
|
|
9194
9197
|
)
|
|
@@ -10249,37 +10252,37 @@ const Jg = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
|
10249
10252
|
transform: rotate(360deg);
|
|
10250
10253
|
}
|
|
10251
10254
|
`, gm = () => {
|
|
10252
|
-
const { addRepeatingTransaction: e, repeatingTransactions: n } = tt(), { cashflow: i, common: a } = x(), { completeOnboarding: o } = uo(), { isDirty: r } = ri(), { isMobile: s } = me(), { isCopyLoaded: c, setDisplayedDate: d } = se(), { filter: _, setFilter: u, transactions: h } =
|
|
10253
|
-
() => h.find((
|
|
10255
|
+
const { addRepeatingTransaction: e, repeatingTransactions: n } = tt(), { cashflow: i, common: a } = x(), { completeOnboarding: o } = uo(), { isDirty: r } = ri(), { isMobile: s } = me(), { isCopyLoaded: c, setDisplayedDate: d } = se(), { filter: _, setFilter: u, transactions: h } = Le(), m = pe(), [p, f] = Et(!0), [E, y] = g.useState(be.EveryMonth), [A, I] = g.useState(1), [v, w] = g.useState(15), [D, O] = Et(!1), [G, M] = Et(1), [R, L] = Et([]), [U, te] = Et(""), ue = g.useMemo(
|
|
10256
|
+
() => h.find((ge) => ge.guid === U),
|
|
10254
10257
|
[U, h]
|
|
10255
10258
|
), ye = !!n.filter(
|
|
10256
|
-
(
|
|
10257
|
-
).length,
|
|
10259
|
+
(ge) => ge.repeating_transaction_type === nn.Income
|
|
10260
|
+
).length, fe = async () => {
|
|
10258
10261
|
M(2), d(
|
|
10259
10262
|
// Beginning of the month, 90 days before today
|
|
10260
10263
|
Ye(It(Se(), 90)),
|
|
10261
10264
|
Se()
|
|
10262
10265
|
), u({ ..._, custom: yi }), M(3);
|
|
10263
|
-
},
|
|
10266
|
+
}, Oe = async () => {
|
|
10264
10267
|
if (!(R.length < 1)) {
|
|
10265
10268
|
O(!0);
|
|
10266
|
-
for (let
|
|
10267
|
-
const
|
|
10268
|
-
account_guid:
|
|
10269
|
-
amount:
|
|
10270
|
-
merchant_guid:
|
|
10271
|
-
description:
|
|
10269
|
+
for (let ge = 0; ge < R.length; ge++) {
|
|
10270
|
+
const he = R[ge], Ee = Ua(E, Ue(he.date)), B = {
|
|
10271
|
+
account_guid: he.account_guid,
|
|
10272
|
+
amount: he.amount,
|
|
10273
|
+
merchant_guid: he.merchant_guid,
|
|
10274
|
+
description: he.feed_description || he.description,
|
|
10272
10275
|
predicted_occurs_on: ca(Ee, { representation: "date" }),
|
|
10273
10276
|
recurrence_day: Ee.getDay(),
|
|
10274
10277
|
recurrence_type: E,
|
|
10275
10278
|
repeating_transaction_type: nn.Income,
|
|
10276
|
-
transaction_type:
|
|
10279
|
+
transaction_type: he.transaction_type
|
|
10277
10280
|
};
|
|
10278
|
-
await e(B,
|
|
10281
|
+
await e(B, he);
|
|
10279
10282
|
}
|
|
10280
10283
|
await o();
|
|
10281
10284
|
}
|
|
10282
|
-
},
|
|
10285
|
+
}, ke = !ue && p || !ue && R.length < 1;
|
|
10283
10286
|
return c ? /* @__PURE__ */ l(
|
|
10284
10287
|
k,
|
|
10285
10288
|
{
|
|
@@ -10300,7 +10303,7 @@ const Jg = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
|
10300
10303
|
sx: {
|
|
10301
10304
|
...s ? { display: "flex", flexDirection: "column", maxWidth: "100%", padding: "0 16px" } : { maxWidth: 590, ml: "40%", mr: 90 }
|
|
10302
10305
|
},
|
|
10303
|
-
children: /* @__PURE__ */ t(dm, { handleNextStep:
|
|
10306
|
+
children: /* @__PURE__ */ t(dm, { handleNextStep: fe })
|
|
10304
10307
|
}
|
|
10305
10308
|
),
|
|
10306
10309
|
G === 2 && /* @__PURE__ */ t(
|
|
@@ -10322,13 +10325,13 @@ const Jg = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
|
10322
10325
|
/* @__PURE__ */ t($t, { pb: 12, children: i.add_income_title }),
|
|
10323
10326
|
/* @__PURE__ */ t(_e, { mb: 24, children: i.add_income_description }),
|
|
10324
10327
|
R.length > 0 && !ue && /* @__PURE__ */ l(Z, { children: [
|
|
10325
|
-
/* @__PURE__ */ t(ie, { children: R.map((
|
|
10328
|
+
/* @__PURE__ */ t(ie, { children: R.map((ge, he) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
10326
10329
|
/* @__PURE__ */ t(yo, { bgcolor: "background.paper", children: ua(
|
|
10327
|
-
Pe(
|
|
10330
|
+
Pe(ge.nextDate || ge.date)
|
|
10328
10331
|
) }),
|
|
10329
|
-
/* @__PURE__ */ t(bo, { transaction:
|
|
10330
|
-
|
|
10331
|
-
] },
|
|
10332
|
+
/* @__PURE__ */ t(bo, { transaction: ge }),
|
|
10333
|
+
he !== R.length - 1 && /* @__PURE__ */ t(F, {})
|
|
10334
|
+
] }, ge.guid)) }),
|
|
10332
10335
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", children: [
|
|
10333
10336
|
/* @__PURE__ */ t(F, { sx: { flexGrow: 1 } }),
|
|
10334
10337
|
/* @__PURE__ */ t(
|
|
@@ -10341,16 +10344,16 @@ const Jg = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
|
10341
10344
|
)
|
|
10342
10345
|
] })
|
|
10343
10346
|
] }),
|
|
10344
|
-
|
|
10347
|
+
ke && /* @__PURE__ */ t(
|
|
10345
10348
|
pc,
|
|
10346
10349
|
{
|
|
10347
10350
|
bgcolor: "background.paper",
|
|
10348
|
-
onSearch: (
|
|
10351
|
+
onSearch: (ge) => u({
|
|
10349
10352
|
..._,
|
|
10350
|
-
custom: (
|
|
10353
|
+
custom: (he) => ge ? fc(he, ge) : yi(he)
|
|
10351
10354
|
}),
|
|
10352
|
-
onSelected: (
|
|
10353
|
-
te(
|
|
10355
|
+
onSelected: (ge) => {
|
|
10356
|
+
te(ge), f(!1);
|
|
10354
10357
|
}
|
|
10355
10358
|
}
|
|
10356
10359
|
),
|
|
@@ -10375,12 +10378,12 @@ const Jg = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
|
10375
10378
|
{
|
|
10376
10379
|
"aria-disabled": !ue,
|
|
10377
10380
|
onClick: () => {
|
|
10378
|
-
const
|
|
10379
|
-
|
|
10381
|
+
const ge = [...R];
|
|
10382
|
+
ge.push({
|
|
10380
10383
|
...ue,
|
|
10381
10384
|
nextDate: Ua(E, Ue(ue.date)),
|
|
10382
10385
|
frequency: E
|
|
10383
|
-
}), L(
|
|
10386
|
+
}), L(ge), te("");
|
|
10384
10387
|
},
|
|
10385
10388
|
variant: "contained",
|
|
10386
10389
|
children: a.confirm_button
|
|
@@ -10390,7 +10393,7 @@ const Jg = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
|
10390
10393
|
Q,
|
|
10391
10394
|
{
|
|
10392
10395
|
onClick: () => {
|
|
10393
|
-
te(""), f(!0),
|
|
10396
|
+
te(""), f(!0), fe().finally();
|
|
10394
10397
|
},
|
|
10395
10398
|
variant: "outlined",
|
|
10396
10399
|
children: a.cancel_button
|
|
@@ -10403,7 +10406,7 @@ const Jg = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
|
10403
10406
|
Q,
|
|
10404
10407
|
{
|
|
10405
10408
|
"aria-disabled": R.length < 1 || D,
|
|
10406
|
-
onClick:
|
|
10409
|
+
onClick: Oe,
|
|
10407
10410
|
startIcon: D ? /* @__PURE__ */ t(
|
|
10408
10411
|
K,
|
|
10409
10412
|
{
|
|
@@ -10432,7 +10435,7 @@ const Jg = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
|
10432
10435
|
setSelectedAccounts: o,
|
|
10433
10436
|
shouldDisableNextDate: r,
|
|
10434
10437
|
shouldDisablePrevDate: s
|
|
10435
|
-
} = se(), { onEvent: c } = X(), { visibleCashAccounts: d } = Ce(), { setFilter: _ } =
|
|
10438
|
+
} = se(), { onEvent: c } = X(), { visibleCashAccounts: d } = Ce(), { setFilter: _ } = Le(), { 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
10439
|
return g.useEffect(() => {
|
|
10437
10440
|
A && (f(h), p().finally());
|
|
10438
10441
|
}, [A]), g.useEffect(() => {
|
|
@@ -12113,8 +12116,8 @@ const Ut = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
|
|
|
12113
12116
|
);
|
|
12114
12117
|
}), up = ({ onBackClick: e, sx: n }) => {
|
|
12115
12118
|
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 } = Ce(), { goalsLoaded: D, loadGoals: O, monthlyCashFlowProfile: G } = ct(), { debts: M } = _a(), R = g.useMemo(() => {
|
|
12116
|
-
const
|
|
12117
|
-
return lp(M, I,
|
|
12119
|
+
const fe = G?.extra_payment ?? 0;
|
|
12120
|
+
return lp(M, I, fe);
|
|
12118
12121
|
}, [M, I, G]);
|
|
12119
12122
|
g.useEffect(() => {
|
|
12120
12123
|
y(w), p(W.DEBTS_VIEW);
|
|
@@ -12123,9 +12126,9 @@ const Ut = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
|
|
|
12123
12126
|
}, [w]), g.useEffect(() => {
|
|
12124
12127
|
E && O().finally();
|
|
12125
12128
|
}, [E]);
|
|
12126
|
-
const L = (
|
|
12127
|
-
const
|
|
12128
|
-
|
|
12129
|
+
const L = (fe) => _(fe), U = () => {
|
|
12130
|
+
const fe = w.find((ke) => ke.guid === d), Oe = R.find((ke) => ke.guid === d);
|
|
12131
|
+
fe && A(fe), Oe && v(Oe), a(!0);
|
|
12129
12132
|
}, te = () => p(W.DEBTS_CLICK_FILTER), ue = () => {
|
|
12130
12133
|
c(!0), p(W.DEBTS_CLICK_SNOWBALL_CTA);
|
|
12131
12134
|
}, ye = () => {
|
|
@@ -13408,10 +13411,10 @@ const yp = (e, n) => {
|
|
|
13408
13411
|
i(W.GOALS_CLICK_FILTER);
|
|
13409
13412
|
}, te = () => {
|
|
13410
13413
|
w(!0), i(W.GOALS_CLICK_ADD);
|
|
13411
|
-
}, ue = (
|
|
13412
|
-
w(!1),
|
|
13414
|
+
}, ue = (fe) => {
|
|
13415
|
+
w(!1), fe === Y.SAVINGS_TRACK ? I(0) : fe === Y.DEBT_TRACK ? I(1) : fe === Y.RETIREMENT_TRACK && I(2);
|
|
13413
13416
|
}, ye = g.useMemo(
|
|
13414
|
-
() => m && (h.length === 0 || h.every(({ track_type:
|
|
13417
|
+
() => m && (h.length === 0 || h.every(({ track_type: fe }) => !fe) && y.length === 0),
|
|
13415
13418
|
[h, m, y]
|
|
13416
13419
|
);
|
|
13417
13420
|
return !m || !r || !s ? /* @__PURE__ */ t(le, {}) : /* @__PURE__ */ l(
|
|
@@ -13434,7 +13437,7 @@ const yp = (e, n) => {
|
|
|
13434
13437
|
/* @__PURE__ */ l(
|
|
13435
13438
|
Xt,
|
|
13436
13439
|
{
|
|
13437
|
-
onChange: (
|
|
13440
|
+
onChange: (fe, Oe) => I(Oe),
|
|
13438
13441
|
sx: { bgcolor: "background.paper" },
|
|
13439
13442
|
textColor: "primary",
|
|
13440
13443
|
value: ye ? !1 : A,
|
|
@@ -14969,22 +14972,22 @@ const w1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14969
14972
|
}, [D]);
|
|
14970
14973
|
const ye = (B, ne) => {
|
|
14971
14974
|
y(ne), B.currentTarget instanceof HTMLDivElement && M(!0);
|
|
14972
|
-
},
|
|
14975
|
+
}, fe = (B) => {
|
|
14973
14976
|
E(B);
|
|
14974
|
-
},
|
|
14977
|
+
}, Oe = () => {
|
|
14975
14978
|
E(null);
|
|
14976
|
-
},
|
|
14979
|
+
}, ke = () => {
|
|
14977
14980
|
I(W.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), L(!0);
|
|
14978
|
-
},
|
|
14981
|
+
}, ge = async (B) => {
|
|
14979
14982
|
const ne = B[0], Me = B[1];
|
|
14980
14983
|
ne && Me && O(wd(Me, ne));
|
|
14981
|
-
},
|
|
14984
|
+
}, he = {
|
|
14982
14985
|
chartData: p,
|
|
14983
14986
|
hoveredData: u,
|
|
14984
|
-
onButtonClick:
|
|
14987
|
+
onButtonClick: ke,
|
|
14985
14988
|
onDataClick: ye,
|
|
14986
|
-
onMouseEnter:
|
|
14987
|
-
onMouseLeave:
|
|
14989
|
+
onMouseEnter: fe,
|
|
14990
|
+
onMouseLeave: Oe,
|
|
14988
14991
|
selectedData: f
|
|
14989
14992
|
}, Ee = () => {
|
|
14990
14993
|
te(!0), I(W.ACCOUNTS_CLICK_CONNECT);
|
|
@@ -14994,7 +14997,7 @@ const w1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14994
14997
|
{
|
|
14995
14998
|
accountOptions: c,
|
|
14996
14999
|
calendarActions: {
|
|
14997
|
-
onRangeChanged:
|
|
15000
|
+
onRangeChanged: ge
|
|
14998
15001
|
},
|
|
14999
15002
|
dateRangeVariant: A ? "timeframetabs" : "timeframebuttons",
|
|
15000
15003
|
onAccountsFilterClick: () => I(W.NET_WORTH_WIDGET_CLICK_FILTER),
|
|
@@ -15024,8 +15027,8 @@ const w1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
15024
15027
|
direction: A ? "column" : "row",
|
|
15025
15028
|
spacing: A ? 0 : 48,
|
|
15026
15029
|
children: [
|
|
15027
|
-
/* @__PURE__ */ t(u1, { ...
|
|
15028
|
-
/* @__PURE__ */ t(m1, { ...
|
|
15030
|
+
/* @__PURE__ */ t(u1, { ...he }),
|
|
15031
|
+
/* @__PURE__ */ t(m1, { ...he })
|
|
15029
15032
|
]
|
|
15030
15033
|
}
|
|
15031
15034
|
)
|
|
@@ -20363,7 +20366,7 @@ const zC = (e) => e.reduce((i, a) => {
|
|
|
20363
20366
|
isOpen: i,
|
|
20364
20367
|
onClose: a
|
|
20365
20368
|
}) => {
|
|
20366
|
-
const { onEvent: o } = X(), { selectedAccountGuids: r } = se(), { common: s } = x(), { setFilter: c, sortedTransactions: d } =
|
|
20369
|
+
const { onEvent: o } = X(), { selectedAccountGuids: r } = se(), { common: s } = x(), { setFilter: c, sortedTransactions: d } = Le(), [_, u] = g.useState(""), h = g.useMemo(
|
|
20367
20370
|
() => d.find((p) => p.guid === _),
|
|
20368
20371
|
[_, d]
|
|
20369
20372
|
);
|
|
@@ -20393,7 +20396,7 @@ const zC = (e) => e.reduce((i, a) => {
|
|
|
20393
20396
|
}, tl = T(JC), ef = {
|
|
20394
20397
|
view_transactions: "View Transactions"
|
|
20395
20398
|
}, tf = ({ onBackClick: e, sx: n }) => {
|
|
20396
|
-
const { onEvent: i } = X(), { isDesktop: a, isTablet: o, isMobile: r } = me(), { visibleAccounts: s } = Ce(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: _ } = Ve(), { sortedTransactions: u } =
|
|
20399
|
+
const { onEvent: i } = X(), { isDesktop: a, isTablet: o, isMobile: r } = me(), { visibleAccounts: s } = Ce(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: _ } = Ve(), { sortedTransactions: u } = Le(), { 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
20400
|
start: $i(We(Tt(/* @__PURE__ */ new Date(), 6)), 1),
|
|
20398
20401
|
end: We(/* @__PURE__ */ new Date())
|
|
20399
20402
|
});
|
|
@@ -20439,15 +20442,15 @@ const zC = (e) => e.reduce((i, a) => {
|
|
|
20439
20442
|
});
|
|
20440
20443
|
}, ye = () => {
|
|
20441
20444
|
i(W.TRENDS_CLICK_FILTER);
|
|
20442
|
-
},
|
|
20445
|
+
}, fe = (Ee) => {
|
|
20443
20446
|
G(Ee);
|
|
20444
|
-
},
|
|
20447
|
+
}, Oe = (Ee) => {
|
|
20445
20448
|
G(Ee), i(W.TRENDS_CLICK_LEGEND, { category: _(Ee) });
|
|
20446
|
-
},
|
|
20449
|
+
}, ke = (Ee) => {
|
|
20447
20450
|
i(W.TRENDS_HOVER_LEGEND, { category: _(Ee) });
|
|
20448
|
-
}, he = (Ee) => {
|
|
20449
|
-
i(W.TRENDS_HOVER_AREA, { category: Ee });
|
|
20450
20451
|
}, ge = (Ee) => {
|
|
20452
|
+
i(W.TRENDS_HOVER_AREA, { category: Ee });
|
|
20453
|
+
}, he = (Ee) => {
|
|
20451
20454
|
i(W.TRENDS_HOVER_POINT, { category: Ee });
|
|
20452
20455
|
};
|
|
20453
20456
|
return !h || !m || !y ? /* @__PURE__ */ t(le, {}) : /* @__PURE__ */ l(
|
|
@@ -20518,10 +20521,10 @@ const zC = (e) => e.reduce((i, a) => {
|
|
|
20518
20521
|
w === "Chart" && /* @__PURE__ */ t(
|
|
20519
20522
|
tc,
|
|
20520
20523
|
{
|
|
20521
|
-
onClickLegend:
|
|
20522
|
-
onHoverArea:
|
|
20523
|
-
onHoverLegend:
|
|
20524
|
-
onHoverPoint:
|
|
20524
|
+
onClickLegend: Oe,
|
|
20525
|
+
onHoverArea: ge,
|
|
20526
|
+
onHoverLegend: ke,
|
|
20527
|
+
onHoverPoint: he,
|
|
20525
20528
|
stackedDatasets: L.stackedDatasets,
|
|
20526
20529
|
unstackedDatasets: L.unstackedDatasets
|
|
20527
20530
|
}
|
|
@@ -20530,7 +20533,7 @@ const zC = (e) => e.reduce((i, a) => {
|
|
|
20530
20533
|
el,
|
|
20531
20534
|
{
|
|
20532
20535
|
monthlyCategoryTotals: d,
|
|
20533
|
-
onClickRow:
|
|
20536
|
+
onClickRow: fe,
|
|
20534
20537
|
selectedCategory: O,
|
|
20535
20538
|
selectedDateRange: M
|
|
20536
20539
|
}
|
|
@@ -20708,7 +20711,7 @@ const zC = (e) => e.reduce((i, a) => {
|
|
|
20708
20711
|
b,
|
|
20709
20712
|
{
|
|
20710
20713
|
sx: {
|
|
20711
|
-
alignItems: "
|
|
20714
|
+
alignItems: "stretch",
|
|
20712
20715
|
flexDirection: "row",
|
|
20713
20716
|
gap: 12
|
|
20714
20717
|
},
|
|
@@ -22272,21 +22275,21 @@ const Li = g.createContext(null), pf = ({
|
|
|
22272
22275
|
});
|
|
22273
22276
|
}, ye = () => {
|
|
22274
22277
|
f.current && A(f.current.scrollLeft);
|
|
22275
|
-
},
|
|
22278
|
+
}, fe = () => {
|
|
22276
22279
|
if (!w || !I) return;
|
|
22277
22280
|
w - I > If ? U(Kt.ON_CAROUSEL_FORWARD_SWIPE) : U(Kt.ON_CAROUSEL_BACK_SWIPE);
|
|
22278
|
-
},
|
|
22281
|
+
}, Oe = (B) => {
|
|
22279
22282
|
v(B.targetTouches[0].clientX);
|
|
22280
|
-
},
|
|
22283
|
+
}, ke = (B) => {
|
|
22281
22284
|
v(null), D(B.targetTouches[0].clientX);
|
|
22282
|
-
},
|
|
22285
|
+
}, ge = {
|
|
22283
22286
|
clientColorScheme: i,
|
|
22284
22287
|
showCTAColocatedWithText: a,
|
|
22285
22288
|
heightOverrides: o,
|
|
22286
22289
|
posthog: s,
|
|
22287
22290
|
showIcon: _,
|
|
22288
22291
|
variant: h
|
|
22289
|
-
},
|
|
22292
|
+
}, he = O ? Math.round(y / (O + 8)) : 0, Ee = f.current ? f.current.scrollWidth - f.current.offsetWidth : 0;
|
|
22290
22293
|
return /* @__PURE__ */ l(
|
|
22291
22294
|
b,
|
|
22292
22295
|
{
|
|
@@ -22306,9 +22309,9 @@ const Li = g.createContext(null), pf = ({
|
|
|
22306
22309
|
{
|
|
22307
22310
|
direction: "row",
|
|
22308
22311
|
onScroll: ye,
|
|
22309
|
-
onTouchEnd:
|
|
22310
|
-
onTouchMove:
|
|
22311
|
-
onTouchStart:
|
|
22312
|
+
onTouchEnd: fe,
|
|
22313
|
+
onTouchMove: Oe,
|
|
22314
|
+
onTouchStart: ke,
|
|
22312
22315
|
ref: f,
|
|
22313
22316
|
sx: {
|
|
22314
22317
|
alignItems: "center",
|
|
@@ -22340,10 +22343,10 @@ const Li = g.createContext(null), pf = ({
|
|
|
22340
22343
|
ariaLabel: `${z}: ${Gt}, ${ze}`,
|
|
22341
22344
|
beat: B,
|
|
22342
22345
|
index: ne,
|
|
22343
|
-
isActiveCard: ne ===
|
|
22346
|
+
isActiveCard: ne === he,
|
|
22344
22347
|
onCardClick: r,
|
|
22345
22348
|
widthOverrides: O || void 0,
|
|
22346
|
-
...
|
|
22349
|
+
...ge
|
|
22347
22350
|
},
|
|
22348
22351
|
`${B.guid} ${ne}`
|
|
22349
22352
|
);
|
|
@@ -22351,10 +22354,10 @@ const Li = g.createContext(null), pf = ({
|
|
|
22351
22354
|
/* @__PURE__ */ t(
|
|
22352
22355
|
Hf,
|
|
22353
22356
|
{
|
|
22354
|
-
isActiveCard:
|
|
22357
|
+
isActiveCard: he === n.length,
|
|
22355
22358
|
onCardClick: r,
|
|
22356
22359
|
widthOverrides: O || void 0,
|
|
22357
|
-
...
|
|
22360
|
+
...ge
|
|
22358
22361
|
}
|
|
22359
22362
|
)
|
|
22360
22363
|
]
|
|
@@ -22364,7 +22367,7 @@ const Li = g.createContext(null), pf = ({
|
|
|
22364
22367
|
vf,
|
|
22365
22368
|
{
|
|
22366
22369
|
clientColorScheme: i,
|
|
22367
|
-
currentBeatIndex:
|
|
22370
|
+
currentBeatIndex: he + p - 1,
|
|
22368
22371
|
numBeats: n.length + 1,
|
|
22369
22372
|
onNextClick: te,
|
|
22370
22373
|
onPreviousClick: ue,
|
|
@@ -22610,12 +22613,12 @@ const Li = g.createContext(null), pf = ({
|
|
|
22610
22613
|
g.useEffect(() => {
|
|
22611
22614
|
hn.isInitialized || hn.initialize(r, I, c);
|
|
22612
22615
|
}, [r, I, c, hn.isInitialized]), g.useEffect(() => {
|
|
22613
|
-
const
|
|
22614
|
-
|
|
22616
|
+
const ke = window.innerHeight;
|
|
22617
|
+
ke < 180 ? L("STANDARD") : ke >= 180 && ke < 200 ? L("LARGE") : ke >= 200 && ke < 248 ? L("XLARGE") : ke >= 248 && L("XXLARGE");
|
|
22615
22618
|
}, [window.innerHeight]), g.useEffect(() => {
|
|
22616
22619
|
te(!n && hn.isInitialized);
|
|
22617
22620
|
}, [n, hn.isInitialized]);
|
|
22618
|
-
const
|
|
22621
|
+
const fe = {
|
|
22619
22622
|
showCTAColocatedWithText: o,
|
|
22620
22623
|
heightOverrides: s,
|
|
22621
22624
|
onCardClick: d,
|
|
@@ -22624,10 +22627,10 @@ const Li = g.createContext(null), pf = ({
|
|
|
22624
22627
|
showWithMargin: A,
|
|
22625
22628
|
useDarkMode: v,
|
|
22626
22629
|
widthOverrides: G
|
|
22627
|
-
},
|
|
22630
|
+
}, Oe = {
|
|
22628
22631
|
carouselSize: R,
|
|
22629
22632
|
variant: D,
|
|
22630
|
-
...
|
|
22633
|
+
...fe
|
|
22631
22634
|
};
|
|
22632
22635
|
return (
|
|
22633
22636
|
// The Theme provider must wrap the component so that the styles don't break when imported into other applications.
|
|
@@ -22654,11 +22657,11 @@ const Li = g.createContext(null), pf = ({
|
|
|
22654
22657
|
showCarouselControls: f,
|
|
22655
22658
|
variant: p ? D : void 0,
|
|
22656
22659
|
visibleCardsCount: O,
|
|
22657
|
-
...
|
|
22660
|
+
...fe
|
|
22658
22661
|
}
|
|
22659
22662
|
),
|
|
22660
|
-
U && !i.length && w && /* @__PURE__ */ t(dl, { clientColorScheme: a, ...
|
|
22661
|
-
U && !i.length && !w && /* @__PURE__ */ t(ul, { ...
|
|
22663
|
+
U && !i.length && w && /* @__PURE__ */ t(dl, { clientColorScheme: a, ...Oe }),
|
|
22664
|
+
U && !i.length && !w && /* @__PURE__ */ t(ul, { ...Oe })
|
|
22662
22665
|
] }) })
|
|
22663
22666
|
] })
|
|
22664
22667
|
);
|
|
@@ -22742,7 +22745,7 @@ const Li = g.createContext(null), pf = ({
|
|
|
22742
22745
|
}, Ff = T(Pf), Wf = {
|
|
22743
22746
|
view_transactions: "View Transactions"
|
|
22744
22747
|
}, Uf = ({ onBackClick: e, sx: n }) => {
|
|
22745
|
-
const { onEvent: i } = X(), { isLargeDesktop: a, isDesktop: o, isMobile: r } = me(), { visibleAccounts: s } = Ce(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: _ } = Ve(), { sortedTransactions: u } =
|
|
22748
|
+
const { onEvent: i } = X(), { isLargeDesktop: a, isDesktop: o, isMobile: r } = me(), { visibleAccounts: s } = Ce(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: _ } = Ve(), { sortedTransactions: u } = Le(), { 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({
|
|
22746
22749
|
start: $i(We(Tt(/* @__PURE__ */ new Date(), 6)), 1),
|
|
22747
22750
|
end: We(/* @__PURE__ */ new Date())
|
|
22748
22751
|
});
|
|
@@ -22786,15 +22789,15 @@ const Li = g.createContext(null), pf = ({
|
|
|
22786
22789
|
L({ start: ne, end: Me }), i(W.TRENDS_CLICK_DATE, {
|
|
22787
22790
|
time_period: qe + "M"
|
|
22788
22791
|
});
|
|
22789
|
-
},
|
|
22792
|
+
}, fe = () => {
|
|
22790
22793
|
i(W.TRENDS_CLICK_FILTER);
|
|
22791
|
-
},
|
|
22794
|
+
}, Oe = (B) => {
|
|
22792
22795
|
M(B);
|
|
22793
|
-
},
|
|
22796
|
+
}, ke = (B) => {
|
|
22794
22797
|
M(B), i(W.TRENDS_CLICK_LEGEND, { category: _(B) });
|
|
22795
|
-
}, he = (B) => {
|
|
22796
|
-
i(W.TRENDS_HOVER_LEGEND, { category: _(B) });
|
|
22797
22798
|
}, ge = (B) => {
|
|
22799
|
+
i(W.TRENDS_HOVER_LEGEND, { category: _(B) });
|
|
22800
|
+
}, he = (B) => {
|
|
22798
22801
|
i(W.TRENDS_HOVER_AREA, { category: B });
|
|
22799
22802
|
}, Ee = (B) => {
|
|
22800
22803
|
i(W.TRENDS_HOVER_POINT, { category: B });
|
|
@@ -22816,7 +22819,7 @@ const Li = g.createContext(null), pf = ({
|
|
|
22816
22819
|
calendarActions: { onRangeChanged: ye },
|
|
22817
22820
|
dateRange: R,
|
|
22818
22821
|
dateRangeVariant: r ? "timeframetabs" : "timeframebuttons",
|
|
22819
|
-
onAccountsFilterClick:
|
|
22822
|
+
onAccountsFilterClick: fe,
|
|
22820
22823
|
onBackClick: e,
|
|
22821
22824
|
sx: n,
|
|
22822
22825
|
title: E.title,
|
|
@@ -22878,9 +22881,9 @@ const Li = g.createContext(null), pf = ({
|
|
|
22878
22881
|
tc,
|
|
22879
22882
|
{
|
|
22880
22883
|
height: y ? 500 : void 0,
|
|
22881
|
-
onClickLegend:
|
|
22882
|
-
onHoverArea:
|
|
22883
|
-
onHoverLegend:
|
|
22884
|
+
onClickLegend: ke,
|
|
22885
|
+
onHoverArea: he,
|
|
22886
|
+
onHoverLegend: ge,
|
|
22884
22887
|
onHoverPoint: Ee,
|
|
22885
22888
|
stackedDatasets: U.stackedDatasets,
|
|
22886
22889
|
unstackedDatasets: U.unstackedDatasets
|
|
@@ -22891,7 +22894,7 @@ const Li = g.createContext(null), pf = ({
|
|
|
22891
22894
|
{
|
|
22892
22895
|
height: "unset",
|
|
22893
22896
|
monthlyCategoryTotals: d,
|
|
22894
|
-
onClickRow:
|
|
22897
|
+
onClickRow: Oe,
|
|
22895
22898
|
selectedCategory: G,
|
|
22896
22899
|
selectedDateRange: R
|
|
22897
22900
|
}
|
|
@@ -23170,7 +23173,7 @@ const Da = ({
|
|
|
23170
23173
|
(a) => a.member_guid === i.guid && i.successfully_aggregated_at && a.guid !== n.guid
|
|
23171
23174
|
);
|
|
23172
23175
|
}, Xf = () => {
|
|
23173
|
-
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 } = Ce(), { accounts: h } = x(), m = $f(), { onEvent: p } = X(), { modifyTransactionByAccountGuid: f } =
|
|
23176
|
+
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 } = Ce(), { accounts: h } = x(), m = $f(), { onEvent: p } = X(), { modifyTransactionByAccountGuid: f } = Le(), E = async (A) => {
|
|
23174
23177
|
await u({
|
|
23175
23178
|
...d,
|
|
23176
23179
|
...A
|
|
@@ -23716,7 +23719,7 @@ const Da = ({
|
|
|
23716
23719
|
)
|
|
23717
23720
|
] });
|
|
23718
23721
|
}, r0 = T(o0), s0 = () => {
|
|
23719
|
-
const [e, n] = g.useState(""), { onEvent: i } = X(), { selectedAccount: a } = Ft(), { accounts: o } = x(), { setFilter: r, sortedTransactions: s } =
|
|
23722
|
+
const [e, n] = g.useState(""), { onEvent: i } = X(), { selectedAccount: a } = Ft(), { accounts: o } = x(), { setFilter: r, sortedTransactions: s } = Le(), c = g.useMemo(
|
|
23720
23723
|
() => s.find((d) => d.guid === e),
|
|
23721
23724
|
[e, s]
|
|
23722
23725
|
);
|
|
@@ -23807,7 +23810,7 @@ const Da = ({
|
|
|
23807
23810
|
{
|
|
23808
23811
|
"aria-label": v,
|
|
23809
23812
|
subheader: /* @__PURE__ */ t(Ot, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ l(
|
|
23810
|
-
|
|
23813
|
+
Re,
|
|
23811
23814
|
{
|
|
23812
23815
|
component: "span",
|
|
23813
23816
|
direction: "row",
|
|
@@ -23818,7 +23821,7 @@ const Da = ({
|
|
|
23818
23821
|
]
|
|
23819
23822
|
}
|
|
23820
23823
|
) }),
|
|
23821
|
-
children: /* @__PURE__ */ t(
|
|
23824
|
+
children: /* @__PURE__ */ t(Re, { children: A.map((w, D, O) => {
|
|
23822
23825
|
const G = D === O.length - 1;
|
|
23823
23826
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
23824
23827
|
/* @__PURE__ */ t(
|
|
@@ -23864,7 +23867,7 @@ const Da = ({
|
|
|
23864
23867
|
{
|
|
23865
23868
|
"aria-label": i.account_type_accounts[A[0]?.account_type],
|
|
23866
23869
|
subheader: /* @__PURE__ */ t(Ot, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ l(
|
|
23867
|
-
|
|
23870
|
+
Re,
|
|
23868
23871
|
{
|
|
23869
23872
|
component: "span",
|
|
23870
23873
|
direction: "row",
|
|
@@ -23875,7 +23878,7 @@ const Da = ({
|
|
|
23875
23878
|
]
|
|
23876
23879
|
}
|
|
23877
23880
|
) }),
|
|
23878
|
-
children: /* @__PURE__ */ t(
|
|
23881
|
+
children: /* @__PURE__ */ t(Re, { children: A.map((v) => {
|
|
23879
23882
|
const w = a.indexOf(v) === a.length - 1, D = A.indexOf(v) === A.length - 1;
|
|
23880
23883
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
23881
23884
|
/* @__PURE__ */ t(
|
|
@@ -25403,7 +25406,7 @@ const G0 = ({
|
|
|
25403
25406
|
)
|
|
25404
25407
|
] });
|
|
25405
25408
|
}), j0 = T(({ budget: e }) => {
|
|
25406
|
-
const { category: n, subBudgets: i } = e, { budgets: a, common: o } = x(), { deleteBudget: r, selectedSubBudget: s, setSelectedSubBudget: c, updateBudget: d } = ht(), { filter: _, setFilter: u } =
|
|
25409
|
+
const { category: n, subBudgets: i } = e, { budgets: a, common: o } = x(), { deleteBudget: r, selectedSubBudget: s, setSelectedSubBudget: c, updateBudget: d } = ht(), { filter: _, setFilter: u } = Le(), [h, m] = g.useState(!1), [p, f] = g.useState(!1), [E, y] = g.useState("");
|
|
25407
25410
|
g.useEffect(() => {
|
|
25408
25411
|
s && (y(`${s.amount}`), u({
|
|
25409
25412
|
..._,
|
|
@@ -25488,7 +25491,7 @@ const G0 = ({
|
|
|
25488
25491
|
sortedTransactions: c,
|
|
25489
25492
|
sortedTransactionsWithSplits: d,
|
|
25490
25493
|
tags: _
|
|
25491
|
-
} =
|
|
25494
|
+
} = Le(), [u, h] = g.useState(0), [m, p] = g.useState(""), f = g.useMemo(
|
|
25492
25495
|
() => c.find((I) => I.guid === m),
|
|
25493
25496
|
[m, c]
|
|
25494
25497
|
), E = (I, v) => {
|
|
@@ -25547,7 +25550,7 @@ const G0 = ({
|
|
|
25547
25550
|
setAlert: c,
|
|
25548
25551
|
setSelectedBudget: d,
|
|
25549
25552
|
updateBudget: _
|
|
25550
|
-
} = ht(), { setFilter: u } =
|
|
25553
|
+
} = ht(), { setFilter: u } = Le(), [h, m] = g.useState(!1), [p, f] = g.useState(!1), [E, y] = g.useState(!1), [A, I] = g.useState("");
|
|
25551
25554
|
g.useEffect(() => {
|
|
25552
25555
|
r && !s && (I(`${r.amount}`), m(!0), u({
|
|
25553
25556
|
accounts: e,
|
|
@@ -25662,7 +25665,7 @@ const G0 = ({
|
|
|
25662
25665
|
] }, r.guid)) }) })
|
|
25663
25666
|
] });
|
|
25664
25667
|
}), Q0 = T(() => {
|
|
25665
|
-
const e = pe(), { onEvent: n } = X(), { visibleAccounts: i } = Ce(), { budgets: a, common: o, recurring: r } = x(), { incomeCategories: s, spendCategories: c } = Ve(), { detailedBudgets: d, totalBudgeted: _ } = ht(), { incomeTotal: u } = tt(), { setFilter: h } =
|
|
25668
|
+
const e = pe(), { onEvent: n } = X(), { visibleAccounts: i } = Ce(), { budgets: a, common: o, recurring: r } = x(), { incomeCategories: s, spendCategories: c } = Ve(), { detailedBudgets: d, totalBudgeted: _ } = ht(), { incomeTotal: u } = tt(), { setFilter: h } = Le(), [m, p] = g.useState(!1), [f, E] = g.useMemo(() => {
|
|
25666
25669
|
const v = c.reduce((G, M) => G + M.totalAmount, 0);
|
|
25667
25670
|
let w = v / _;
|
|
25668
25671
|
w > 1 && (w = 1);
|
|
@@ -25762,15 +25765,15 @@ const G0 = ({
|
|
|
25762
25765
|
}, [o]), g.useEffect(() => {
|
|
25763
25766
|
d && (O(_, p.start, p.end).finally(), D(p), f || (w().finally(), E().finally()));
|
|
25764
25767
|
}, [d, _, p]);
|
|
25765
|
-
const ue = (
|
|
25766
|
-
y({ start:
|
|
25768
|
+
const ue = (ge) => {
|
|
25769
|
+
y({ start: ge[0] || /* @__PURE__ */ new Date(), end: ge[1] || /* @__PURE__ */ new Date() });
|
|
25767
25770
|
}, ye = () => {
|
|
25768
25771
|
a(W.BUDGETS_CLICK_FILTER);
|
|
25769
|
-
},
|
|
25772
|
+
}, fe = () => {
|
|
25770
25773
|
te(!0), a(W.BUDGETS_CLICK_ADD);
|
|
25771
|
-
},
|
|
25774
|
+
}, Oe = () => {
|
|
25772
25775
|
te(!1);
|
|
25773
|
-
},
|
|
25776
|
+
}, ke = tn(p.end, Ye(/* @__PURE__ */ new Date()));
|
|
25774
25777
|
return !c || !d || !f ? /* @__PURE__ */ t(le, {}) : /* @__PURE__ */ l(
|
|
25775
25778
|
mt,
|
|
25776
25779
|
{
|
|
@@ -25779,10 +25782,10 @@ const G0 = ({
|
|
|
25779
25782
|
{
|
|
25780
25783
|
iconName: "add",
|
|
25781
25784
|
label: r.add_title,
|
|
25782
|
-
onClick:
|
|
25785
|
+
onClick: fe
|
|
25783
25786
|
}
|
|
25784
25787
|
],
|
|
25785
|
-
calendarActions: { onRangeChanged: ue, shouldDisableNext:
|
|
25788
|
+
calendarActions: { onRangeChanged: ue, shouldDisableNext: ke },
|
|
25786
25789
|
onAccountsFilterClick: ye,
|
|
25787
25790
|
onBackClick: e,
|
|
25788
25791
|
sx: n,
|
|
@@ -25800,7 +25803,7 @@ const G0 = ({
|
|
|
25800
25803
|
/* @__PURE__ */ t(b, { height: L ? 450 : "calc(100dvh - 150px)", children: /* @__PURE__ */ t(
|
|
25801
25804
|
gl,
|
|
25802
25805
|
{
|
|
25803
|
-
createBudgetOnClick:
|
|
25806
|
+
createBudgetOnClick: fe,
|
|
25804
25807
|
height: L ? 450 : 800,
|
|
25805
25808
|
isDraggable: !0,
|
|
25806
25809
|
shouldShowZeroState: v.length === 0,
|
|
@@ -25831,7 +25834,7 @@ const G0 = ({
|
|
|
25831
25834
|
isOpen: U,
|
|
25832
25835
|
onClose: () => te(!1),
|
|
25833
25836
|
title: r.add_new_title,
|
|
25834
|
-
children: /* @__PURE__ */ t(ml, { onRecalculateBudgets:
|
|
25837
|
+
children: /* @__PURE__ */ t(ml, { onRecalculateBudgets: Oe })
|
|
25835
25838
|
}
|
|
25836
25839
|
),
|
|
25837
25840
|
/* @__PURE__ */ t(
|
|
@@ -26654,7 +26657,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
26654
26657
|
onClose: d,
|
|
26655
26658
|
title: _.overview.investment_details,
|
|
26656
26659
|
children: [
|
|
26657
|
-
/* @__PURE__ */ l(
|
|
26660
|
+
/* @__PURE__ */ l(Re, { sx: { gap: 8, p: 24 }, children: [
|
|
26658
26661
|
/* @__PURE__ */ t(
|
|
26659
26662
|
ft,
|
|
26660
26663
|
{
|
|
@@ -26665,7 +26668,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
26665
26668
|
),
|
|
26666
26669
|
/* @__PURE__ */ t(C, { sx: { color: "text.primary" }, variant: "Small", children: e.accounts.memberName }),
|
|
26667
26670
|
/* @__PURE__ */ t(C, { sx: { color: "text.primary" }, variant: "H2", children: e.accounts.user_name || e.accounts.name }),
|
|
26668
|
-
/* @__PURE__ */ l(
|
|
26671
|
+
/* @__PURE__ */ l(Re, { sx: { alignItems: "center", flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
26669
26672
|
/* @__PURE__ */ t(C, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: _.overview.current_balance }),
|
|
26670
26673
|
/* @__PURE__ */ t(C, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: e.accounts.balance?.toLocaleString("en-US", {
|
|
26671
26674
|
currency: "USD",
|
|
@@ -26676,7 +26679,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
26676
26679
|
] })
|
|
26677
26680
|
] }),
|
|
26678
26681
|
/* @__PURE__ */ l(
|
|
26679
|
-
|
|
26682
|
+
Re,
|
|
26680
26683
|
{
|
|
26681
26684
|
sx: {
|
|
26682
26685
|
bgcolor: "background.default",
|
|
@@ -26717,10 +26720,10 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
26717
26720
|
borderColor: "border.main"
|
|
26718
26721
|
}
|
|
26719
26722
|
],
|
|
26720
|
-
children: /* @__PURE__ */ l(
|
|
26723
|
+
children: /* @__PURE__ */ l(Re, { sx: { flexDirection: "row", width: "100%" }, children: [
|
|
26721
26724
|
/* @__PURE__ */ t("div", { style: { width: 24 } }),
|
|
26722
26725
|
/* @__PURE__ */ l(
|
|
26723
|
-
|
|
26726
|
+
Re,
|
|
26724
26727
|
{
|
|
26725
26728
|
sx: [
|
|
26726
26729
|
{
|
|
@@ -26738,21 +26741,21 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
26738
26741
|
],
|
|
26739
26742
|
children: [
|
|
26740
26743
|
/* @__PURE__ */ t(
|
|
26741
|
-
|
|
26744
|
+
Re,
|
|
26742
26745
|
{
|
|
26743
26746
|
sx: {
|
|
26744
26747
|
alignItems: "center",
|
|
26745
26748
|
flexDirection: "row",
|
|
26746
26749
|
gap: 12
|
|
26747
26750
|
},
|
|
26748
|
-
children: /* @__PURE__ */ l(
|
|
26751
|
+
children: /* @__PURE__ */ l(Re, { sx: { overflow: "hidden", width: 98 }, children: [
|
|
26749
26752
|
/* @__PURE__ */ t(C, { sx: { fontWeight: 600 }, variant: "Body", children: p.holding }),
|
|
26750
26753
|
/* @__PURE__ */ t(C, { variant: "XSmall", children: p.description })
|
|
26751
26754
|
] })
|
|
26752
26755
|
}
|
|
26753
26756
|
),
|
|
26754
26757
|
/* @__PURE__ */ l(
|
|
26755
|
-
|
|
26758
|
+
Re,
|
|
26756
26759
|
{
|
|
26757
26760
|
sx: {
|
|
26758
26761
|
alignItems: "center",
|
|
@@ -26762,14 +26765,14 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
26762
26765
|
justifyContent: "flex-end"
|
|
26763
26766
|
},
|
|
26764
26767
|
children: [
|
|
26765
|
-
/* @__PURE__ */ l(
|
|
26768
|
+
/* @__PURE__ */ l(Re, { children: [
|
|
26766
26769
|
/* @__PURE__ */ t(C, { sx: { fontWeight: 600, textAlign: "right" }, variant: "Body", children: p.marketValue?.toLocaleString("en-US", {
|
|
26767
26770
|
currency: "USD",
|
|
26768
26771
|
maximumFractionDigits: 2,
|
|
26769
26772
|
minimumFractionDigits: 2,
|
|
26770
26773
|
style: "currency"
|
|
26771
26774
|
}) }),
|
|
26772
|
-
/* @__PURE__ */ l(
|
|
26775
|
+
/* @__PURE__ */ l(Re, { sx: { alignItems: "center", gap: 2, flexDirection: "row" }, children: [
|
|
26773
26776
|
p.totalGainLoss !== 0 && /* @__PURE__ */ t(
|
|
26774
26777
|
_t,
|
|
26775
26778
|
{
|
|
@@ -26829,7 +26832,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
26829
26832
|
}
|
|
26830
26833
|
),
|
|
26831
26834
|
/* @__PURE__ */ t(Ii, { children: /* @__PURE__ */ l(
|
|
26832
|
-
|
|
26835
|
+
Re,
|
|
26833
26836
|
{
|
|
26834
26837
|
sx: {
|
|
26835
26838
|
alignItems: "center",
|
|
@@ -26838,10 +26841,10 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
26838
26841
|
pl: 24
|
|
26839
26842
|
},
|
|
26840
26843
|
children: [
|
|
26841
|
-
/* @__PURE__ */ t(
|
|
26842
|
-
/* @__PURE__ */ l(
|
|
26844
|
+
/* @__PURE__ */ t(Re, { sx: { width: 32 } }),
|
|
26845
|
+
/* @__PURE__ */ l(Re, { sx: { flex: 1 }, children: [
|
|
26843
26846
|
/* @__PURE__ */ l(
|
|
26844
|
-
|
|
26847
|
+
Re,
|
|
26845
26848
|
{
|
|
26846
26849
|
sx: {
|
|
26847
26850
|
alignItems: "center",
|
|
@@ -26859,7 +26862,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
26859
26862
|
}
|
|
26860
26863
|
),
|
|
26861
26864
|
/* @__PURE__ */ l(
|
|
26862
|
-
|
|
26865
|
+
Re,
|
|
26863
26866
|
{
|
|
26864
26867
|
sx: {
|
|
26865
26868
|
alignItems: "center",
|
|
@@ -26871,7 +26874,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
26871
26874
|
children: [
|
|
26872
26875
|
/* @__PURE__ */ t(C, { sx: { color: "text.primary" }, variant: "Body", children: _.overview.cost_basis_header }),
|
|
26873
26876
|
/* @__PURE__ */ l(
|
|
26874
|
-
|
|
26877
|
+
Re,
|
|
26875
26878
|
{
|
|
26876
26879
|
direction: "row",
|
|
26877
26880
|
sx: {
|
|
@@ -27135,40 +27138,40 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
27135
27138
|
...qe,
|
|
27136
27139
|
[B]: Me
|
|
27137
27140
|
}));
|
|
27138
|
-
}, { visibleHoldings: ue } = Fn(), { visibleInvestmentAccounts: ye } = Ce(),
|
|
27141
|
+
}, { visibleHoldings: ue } = Fn(), { visibleInvestmentAccounts: ye } = Ce(), fe = ye.filter(
|
|
27139
27142
|
({ guid: B }) => r.includes(B)
|
|
27140
|
-
),
|
|
27141
|
-
({ account_guid: B }) =>
|
|
27143
|
+
), Oe = fe.reduce((B, ne) => B + (ne.balance || 0), 0), ke = fe.map(({ guid: B }) => B), he = ue.filter(
|
|
27144
|
+
({ account_guid: B }) => ke.includes(B)
|
|
27142
27145
|
).reduce((B, ne) => {
|
|
27143
27146
|
const Me = ne.market_value ? ne.market_value - (ne.cost_basis || 0) : 0;
|
|
27144
27147
|
return B + Me;
|
|
27145
27148
|
}, 0), Ee = () => {
|
|
27146
27149
|
o(!1);
|
|
27147
27150
|
};
|
|
27148
|
-
return f ? /* @__PURE__ */ l(
|
|
27149
|
-
!!
|
|
27151
|
+
return f ? /* @__PURE__ */ l(Re, { sx: { alignItems: "center", gap: 48, pt: 48, width: "100%" }, children: [
|
|
27152
|
+
!!fe.length && /* @__PURE__ */ l(Re, { sx: { alignItems: "center" }, children: [
|
|
27150
27153
|
/* @__PURE__ */ t(C, { sx: { color: "text.secondary" }, children: p.overview.total_portfolio }),
|
|
27151
|
-
/* @__PURE__ */ t($t, { children:
|
|
27154
|
+
/* @__PURE__ */ t($t, { children: Oe.toLocaleString("en-US", {
|
|
27152
27155
|
currency: "USD",
|
|
27153
27156
|
maximumFractionDigits: 2,
|
|
27154
27157
|
minimumFractionDigits: 2,
|
|
27155
27158
|
style: "currency"
|
|
27156
27159
|
}) }),
|
|
27157
|
-
/* @__PURE__ */ l(
|
|
27160
|
+
/* @__PURE__ */ l(Re, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
|
|
27158
27161
|
/* @__PURE__ */ t(
|
|
27159
27162
|
_t,
|
|
27160
27163
|
{
|
|
27161
|
-
name:
|
|
27164
|
+
name: he >= 0 ? "trending_up" : "trending_down",
|
|
27162
27165
|
size: 20,
|
|
27163
|
-
sx: { color: G(
|
|
27166
|
+
sx: { color: G(he, "greaterThan") }
|
|
27164
27167
|
}
|
|
27165
27168
|
),
|
|
27166
27169
|
/* @__PURE__ */ t(
|
|
27167
27170
|
C,
|
|
27168
27171
|
{
|
|
27169
|
-
sx: { color: G(
|
|
27172
|
+
sx: { color: G(he, "greaterThan"), fontWeight: 700 },
|
|
27170
27173
|
variant: "Small",
|
|
27171
|
-
children:
|
|
27174
|
+
children: he.toLocaleString("en-US", {
|
|
27172
27175
|
currency: "USD",
|
|
27173
27176
|
maximumFractionDigits: 2,
|
|
27174
27177
|
minimumFractionDigits: 2,
|
|
@@ -27178,7 +27181,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
27178
27181
|
)
|
|
27179
27182
|
] })
|
|
27180
27183
|
] }),
|
|
27181
|
-
|
|
27184
|
+
fe.map((B) => {
|
|
27182
27185
|
const ne = ue.filter((ze) => ze.account_guid === B.guid).map((ze) => ({
|
|
27183
27186
|
id: ze.guid,
|
|
27184
27187
|
qty: ze.shares || 0,
|
|
@@ -27206,7 +27209,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
27206
27209
|
overflow: "hidden"
|
|
27207
27210
|
},
|
|
27208
27211
|
children: /* @__PURE__ */ l(
|
|
27209
|
-
|
|
27212
|
+
Re,
|
|
27210
27213
|
{
|
|
27211
27214
|
sx: {
|
|
27212
27215
|
border: 1,
|
|
@@ -27219,7 +27222,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
27219
27222
|
},
|
|
27220
27223
|
children: [
|
|
27221
27224
|
/* @__PURE__ */ l(
|
|
27222
|
-
|
|
27225
|
+
Re,
|
|
27223
27226
|
{
|
|
27224
27227
|
sx: {
|
|
27225
27228
|
alignItems: "center",
|
|
@@ -27239,7 +27242,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
27239
27242
|
size: 32
|
|
27240
27243
|
}
|
|
27241
27244
|
),
|
|
27242
|
-
/* @__PURE__ */ l(
|
|
27245
|
+
/* @__PURE__ */ l(Re, { sx: { overflow: "hidden", pl: 13, pr: 13 }, children: [
|
|
27243
27246
|
/* @__PURE__ */ t(C, { sx: { color: "text.secondary" }, variant: "XSmall", children: B.memberName }),
|
|
27244
27247
|
/* @__PURE__ */ t(C, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: B.user_name || B.name })
|
|
27245
27248
|
] })
|
|
@@ -27247,7 +27250,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
27247
27250
|
}
|
|
27248
27251
|
),
|
|
27249
27252
|
/* @__PURE__ */ l(
|
|
27250
|
-
|
|
27253
|
+
Re,
|
|
27251
27254
|
{
|
|
27252
27255
|
sx: {
|
|
27253
27256
|
alignItems: "center",
|
|
@@ -27258,7 +27261,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
27258
27261
|
},
|
|
27259
27262
|
children: [
|
|
27260
27263
|
/* @__PURE__ */ l(
|
|
27261
|
-
|
|
27264
|
+
Re,
|
|
27262
27265
|
{
|
|
27263
27266
|
sx: {
|
|
27264
27267
|
alignItems: "center",
|
|
@@ -27274,7 +27277,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
27274
27277
|
children: [
|
|
27275
27278
|
/* @__PURE__ */ t(C, { sx: { color: "text.secondary", fontSize: 11 }, variant: "Small", children: p.overview.total_gain_Loss }),
|
|
27276
27279
|
/* @__PURE__ */ l(
|
|
27277
|
-
|
|
27280
|
+
Re,
|
|
27278
27281
|
{
|
|
27279
27282
|
sx: {
|
|
27280
27283
|
alignItems: "center",
|
|
@@ -27329,7 +27332,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
27329
27332
|
}
|
|
27330
27333
|
),
|
|
27331
27334
|
/* @__PURE__ */ l(
|
|
27332
|
-
|
|
27335
|
+
Re,
|
|
27333
27336
|
{
|
|
27334
27337
|
sx: {
|
|
27335
27338
|
alignItems: "center",
|
|
@@ -27388,7 +27391,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
27388
27391
|
],
|
|
27389
27392
|
children: [
|
|
27390
27393
|
/* @__PURE__ */ l(
|
|
27391
|
-
|
|
27394
|
+
Re,
|
|
27392
27395
|
{
|
|
27393
27396
|
sx: {
|
|
27394
27397
|
alignItems: "center",
|
|
@@ -27407,18 +27410,18 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
27407
27410
|
size: 32
|
|
27408
27411
|
}
|
|
27409
27412
|
),
|
|
27410
|
-
/* @__PURE__ */ l(
|
|
27413
|
+
/* @__PURE__ */ l(Re, { sx: { alignItems: "flex-start" }, children: [
|
|
27411
27414
|
/* @__PURE__ */ t(C, { sx: { color: "text.secondary" }, variant: "XSmall", children: B.memberName }),
|
|
27412
27415
|
/* @__PURE__ */ t(C, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: B.user_name || B.name })
|
|
27413
27416
|
] })
|
|
27414
27417
|
]
|
|
27415
27418
|
}
|
|
27416
27419
|
),
|
|
27417
|
-
/* @__PURE__ */ l(
|
|
27418
|
-
/* @__PURE__ */ l(
|
|
27420
|
+
/* @__PURE__ */ l(Re, { sx: { flexDirection: "row" }, children: [
|
|
27421
|
+
/* @__PURE__ */ l(Re, { sx: { alignItems: "flex-end", pb: 14, pl: 24, pr: 24, pt: 14 }, children: [
|
|
27419
27422
|
/* @__PURE__ */ t(C, { sx: { color: "text.secondary" }, variant: "XSmall", children: p.overview.total_gain_Loss }),
|
|
27420
27423
|
/* @__PURE__ */ l(
|
|
27421
|
-
|
|
27424
|
+
Re,
|
|
27422
27425
|
{
|
|
27423
27426
|
sx: {
|
|
27424
27427
|
alignItems: "center",
|
|
@@ -27470,7 +27473,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
27470
27473
|
}
|
|
27471
27474
|
)
|
|
27472
27475
|
] }),
|
|
27473
|
-
/* @__PURE__ */ t(
|
|
27476
|
+
/* @__PURE__ */ t(Re, { sx: { alignItems: "flex-end", gap: 12, pb: 14, pl: 16, pr: 16, pt: 14 }, children: /* @__PURE__ */ l(Re, { sx: { alignItems: "flex-end" }, children: [
|
|
27474
27477
|
/* @__PURE__ */ t(C, { sx: { color: "text.secondary" }, variant: "XSmall", children: p.overview.total_value }),
|
|
27475
27478
|
/* @__PURE__ */ t(C, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: qe?.toLocaleString("en-US", {
|
|
27476
27479
|
currency: "USD",
|
|
@@ -28007,7 +28010,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
28007
28010
|
e.palette.chartMono.chartMono1,
|
|
28008
28011
|
e.palette.chartMono.chartMono6
|
|
28009
28012
|
], Mb = () => {
|
|
28010
|
-
const e = cn(), { categories: n, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: a } = Ve(), { goals: o, spending: r } = x(), { displayedDateRange: s, selectedAccounts: c, selectedAccountGuids: d } = se(), { setFilter: _, sortedTransactions: u } =
|
|
28013
|
+
const e = cn(), { categories: n, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: a } = Ve(), { goals: o, spending: r } = x(), { displayedDateRange: s, selectedAccounts: c, selectedAccountGuids: d } = se(), { setFilter: _, sortedTransactions: u } = Le(), [h, m] = g.useState(""), [p, f] = g.useState(0), [E, y] = g.useState(""), [A, I] = g.useState(!1);
|
|
28011
28014
|
g.useEffect(() => {
|
|
28012
28015
|
a(
|
|
28013
28016
|
c,
|
|
@@ -28223,7 +28226,7 @@ export {
|
|
|
28223
28226
|
Or as FinstrongApi,
|
|
28224
28227
|
pp as FinstrongStore,
|
|
28225
28228
|
J4 as FinstrongWidget,
|
|
28226
|
-
|
|
28229
|
+
be as Frequency,
|
|
28227
28230
|
gi as GlobalCopyApi,
|
|
28228
28231
|
b_ as GlobalCopyStore,
|
|
28229
28232
|
Yn as GlobalDataContext,
|
|
@@ -28402,7 +28405,7 @@ export {
|
|
|
28402
28405
|
tt as useRecurringTransactionsStore,
|
|
28403
28406
|
me as useScreenSize,
|
|
28404
28407
|
pt as useSettingsStore,
|
|
28405
|
-
|
|
28408
|
+
Le as useTransactionStore,
|
|
28406
28409
|
vt as useTransactionsUiStore,
|
|
28407
28410
|
Xs as useTrendsStore,
|
|
28408
28411
|
wt as useUserStore,
|