@mx-cartographer/experiences 6.3.8-alpha.san1 → 6.3.8-alpha.san2
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 +4 -0
- package/dist/index.es.js +317 -317
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -15,7 +15,7 @@ import { addQuarters as An } from "date-fns/addQuarters";
|
|
15
15
|
import { addWeeks as Jn } from "date-fns/addWeeks";
|
16
16
|
import { addYears as ii } from "date-fns/addYears";
|
17
17
|
import { getDay as ai } from "date-fns/getDay";
|
18
|
-
import { isBefore as
|
18
|
+
import { isBefore as Ne } from "date-fns/isBefore";
|
19
19
|
import { nextDay as vi } from "date-fns/nextDay";
|
20
20
|
import { setDate as na } from "date-fns/setDate";
|
21
21
|
import { startOfToday as _e } from "date-fns/startOfToday";
|
@@ -842,7 +842,7 @@ const hn = 44, hr = (e, n) => e.find((i) => i.guid === n), du = (e, n) => e.find
|
|
842
842
|
}, Ia = (e) => {
|
843
843
|
const n = ai(e);
|
844
844
|
let i = vi(e, n);
|
845
|
-
for (;
|
845
|
+
for (; Ne(i, _e()); )
|
846
846
|
i = Jn(i, 1);
|
847
847
|
return i;
|
848
848
|
}, Ks = (e) => {
|
@@ -850,7 +850,7 @@ const hn = 44, hr = (e, n) => e.find((i) => i.guid === n), du = (e, n) => e.find
|
|
850
850
|
return Jn(n, 1);
|
851
851
|
}, ca = (e) => {
|
852
852
|
let n = na(_e(), e.getDate());
|
853
|
-
for (;
|
853
|
+
for (; Ne(n, _e()); )
|
854
854
|
n = pt(n, 1);
|
855
855
|
return n;
|
856
856
|
}, zs = (e) => {
|
@@ -858,7 +858,7 @@ const hn = 44, hr = (e, n) => e.find((i) => i.guid === n), du = (e, n) => e.find
|
|
858
858
|
return pt(n, 1);
|
859
859
|
}, Ao = (e) => {
|
860
860
|
let n = An(e, 1);
|
861
|
-
for (;
|
861
|
+
for (; Ne(n, _e()); )
|
862
862
|
n = An(n, 1);
|
863
863
|
return n;
|
864
864
|
}, Ys = (e) => {
|
@@ -1888,7 +1888,7 @@ const Mu = ({
|
|
1888
1888
|
h(w), a?.(w);
|
1889
1889
|
return;
|
1890
1890
|
}
|
1891
|
-
!u || m ? (h(w), C(void 0)) :
|
1891
|
+
!u || m ? (h(w), C(void 0)) : Ne(w, u) ? (C(u), h(w), o?.(w, u)) : (C(w), o?.(u, w));
|
1892
1892
|
}
|
1893
1893
|
}, y = () => {
|
1894
1894
|
const w = _e();
|
@@ -2262,7 +2262,7 @@ const Mu = ({
|
|
2262
2262
|
if (!n)
|
2263
2263
|
throw new Error(`${e}() must be used within the GlobalDataContext`);
|
2264
2264
|
return n;
|
2265
|
-
},
|
2265
|
+
}, we = () => Je("useAccountStore").globalStore.accountStore, Ui = () => Je("useAppConfig").globalStore.appDataStore.appConfig, xo = () => Je("useAnalyticsStore").globalStore.analyticsStore, _t = () => Je("useBudgetsStore").globalStore.budgetsStore, vo = () => Je("useCashflowStore").globalStore.cashflowStore, Ye = () => Je("useCategoryStore").globalStore.categoryStore, ic = () => Je("useConnectStore").globalStore.connectStore, xa = () => Je("useDebtsStore").globalStore.debtsStore, va = () => Je("useGlobalStore").globalStore, ue = () => Je("useGlobalUiStore").globalStore.globalUiStore, x = () => Je("globalCopyStore").globalStore.copyStore.copy, ct = () => Je("useGoalStore").globalStore.goalStore, wo = () => Je("useHelpStore").globalStore.helpStore, Di = () => Je("useHoldingStore").globalStore.holdingStore, Uu = () => Je("useMerchantStore").globalStore.merchantStore, Vu = () => Je("useNetWorthStore").globalStore.netWorthStore, ac = () => Je("useNotificationStore").globalStore.notificationStore, at = () => Je("useRecurringActivityStore").globalStore.recurringActivityStore, $t = () => Je("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, Ft = () => Je("useSettingsStore").globalStore.settingsStore, Te = () => Je("useTransactionStore").globalStore.transactionStore, an = () => Je("useUserStore").globalStore.userStore, V = () => ({ onEvent: Je().onEvent }), X2 = () => ({ onPageView: Je().onPageView }), Ku = (e = "useWidgetContainerContext") => {
|
2266
2266
|
const n = g.useContext(tc);
|
2267
2267
|
if (!n)
|
2268
2268
|
throw new Error(`${e}() must be used within the WidgetContainerContext`);
|
@@ -2468,7 +2468,7 @@ const Mu = ({
|
|
2468
2468
|
}, Ze = () => {
|
2469
2469
|
const de = Le(String(E)).guid;
|
2470
2470
|
de && a?.(de);
|
2471
|
-
},
|
2471
|
+
}, Ae = (de) => {
|
2472
2472
|
const He = String(de?.seriesId), ce = Le(He).guid, Xe = Z.find((mi) => mi.id === He), sn = Xe && de?.dataIndex !== void 0, gi = Xe && de?.dataIndex === void 0;
|
2473
2473
|
if (sn)
|
2474
2474
|
f({
|
@@ -2540,7 +2540,7 @@ const Mu = ({
|
|
2540
2540
|
height: s || 400,
|
2541
2541
|
margin: { bottom: 50 },
|
2542
2542
|
onAreaClick: Ze,
|
2543
|
-
onHighlightChange:
|
2543
|
+
onHighlightChange: Ae,
|
2544
2544
|
series: Z,
|
2545
2545
|
skipAnimation: !0,
|
2546
2546
|
slotProps: {
|
@@ -3432,7 +3432,7 @@ const Tr = "connect_widget", Ar = "connections_widget", n_ = ({
|
|
3432
3432
|
title: a
|
3433
3433
|
}) => {
|
3434
3434
|
let o;
|
3435
|
-
const { refreshAccounts: r } =
|
3435
|
+
const { refreshAccounts: r } = we(), { loadWidget: s } = ic(), { connect: c } = x(), [d, _] = g.useState(!1), [u, h] = g.useState(!1), {
|
3436
3436
|
palette: { mode: m }
|
3437
3437
|
} = me();
|
3438
3438
|
return g.useEffect(() => (i ? (_(!0), s({ mode: m, ...e }).then((C) => {
|
@@ -4332,7 +4332,7 @@ const hi = () => {
|
|
4332
4332
|
/* @__PURE__ */ t(je, { amount: e, bold: !0, sx: { fontSize: 12 } })
|
4333
4333
|
] });
|
4334
4334
|
}, No = I(m_), p_ = ({ onAddIncomeClick: e }) => {
|
4335
|
-
const n = me(), { availableWidth: i } = Vn(), { isMobile: a } = be(), { visibleCashAccounts: o, visibleCashBalance: r } =
|
4335
|
+
const n = me(), { availableWidth: i } = Vn(), { isMobile: a } = be(), { visibleCashAccounts: o, visibleCashBalance: r } = we(), { selectedAccountGuids: s } = ue(), { cashflow: c } = x(), { userProfile: d } = an(), {
|
4336
4336
|
daysUntilNextIncome: _,
|
4337
4337
|
expensesTilNextIncome: u,
|
4338
4338
|
selectedCashAccounts: h,
|
@@ -4652,7 +4652,7 @@ const b_ = [
|
|
4652
4652
|
tags: u
|
4653
4653
|
};
|
4654
4654
|
});
|
4655
|
-
},
|
4655
|
+
}, Ie = {
|
4656
4656
|
ADD: "Add",
|
4657
4657
|
ADD_CATEGORY: "Add Category",
|
4658
4658
|
CHANGE_CATEGORY: "Change Category",
|
@@ -4666,11 +4666,11 @@ const b_ = [
|
|
4666
4666
|
SELECT: "Select",
|
4667
4667
|
UNHIDE: "Unhide",
|
4668
4668
|
UNSPLIT: "Unsplit"
|
4669
|
-
},
|
4669
|
+
}, xe = {
|
4670
4670
|
TRANSACTION_DETAILS: "Transaction Details",
|
4671
4671
|
TRANSACTIONS_LIST: "Transactions List",
|
4672
4672
|
TRANSACTIONS_WIDGET: "Transactions Widget"
|
4673
|
-
},
|
4673
|
+
}, ve = {
|
4674
4674
|
ADD_TRANSACTION: "Manual Transaction",
|
4675
4675
|
CATEGORY: "Category",
|
4676
4676
|
DATE: "Date",
|
@@ -4692,216 +4692,216 @@ const b_ = [
|
|
4692
4692
|
}, Nr = {
|
4693
4693
|
// splits
|
4694
4694
|
[Y.ON_TRANSACTION_SPLIT_CLICK]: {
|
4695
|
-
action:
|
4696
|
-
category:
|
4697
|
-
label:
|
4695
|
+
action: Ie.SELECT,
|
4696
|
+
category: xe.TRANSACTION_DETAILS,
|
4697
|
+
label: ve.SPLITS
|
4698
4698
|
},
|
4699
4699
|
[Y.ON_TRANSACTION_SPLIT_CATEGORY_CLICK]: {
|
4700
|
-
action:
|
4701
|
-
category:
|
4702
|
-
label:
|
4700
|
+
action: Ie.ADD_CATEGORY,
|
4701
|
+
category: xe.TRANSACTION_DETAILS,
|
4702
|
+
label: ve.SPLITS
|
4703
4703
|
},
|
4704
4704
|
[Y.ON_TRANSACTION_SPLIT_DELETE_CLICK]: {
|
4705
|
-
action:
|
4706
|
-
category:
|
4707
|
-
label:
|
4705
|
+
action: Ie.DELETE,
|
4706
|
+
category: xe.TRANSACTION_DETAILS,
|
4707
|
+
label: ve.SPLITS
|
4708
4708
|
},
|
4709
4709
|
[Y.ON_TRANSACTION_SPLIT_SAVE_CLICK]: {
|
4710
|
-
action:
|
4711
|
-
category:
|
4712
|
-
label:
|
4710
|
+
action: Ie.SPLIT,
|
4711
|
+
category: xe.TRANSACTION_DETAILS,
|
4712
|
+
label: ve.SPLITS
|
4713
4713
|
},
|
4714
4714
|
[Y.ON_TRANSACTION_UNSPLIT]: {
|
4715
|
-
action:
|
4716
|
-
category:
|
4717
|
-
label:
|
4715
|
+
action: Ie.UNSPLIT,
|
4716
|
+
category: xe.TRANSACTION_DETAILS,
|
4717
|
+
label: ve.SPLITS
|
4718
4718
|
},
|
4719
4719
|
// category
|
4720
4720
|
[Y.ON_TRANSACTION_CATEGORY_CLICK]: {
|
4721
|
-
action:
|
4722
|
-
category:
|
4723
|
-
label:
|
4721
|
+
action: Ie.SELECT,
|
4722
|
+
category: xe.TRANSACTIONS_LIST,
|
4723
|
+
label: ve.CATEGORY
|
4724
4724
|
},
|
4725
4725
|
[Y.ON_TRANSACTION_CATEGORY_CHANGED]: {
|
4726
|
-
action:
|
4727
|
-
category:
|
4728
|
-
label:
|
4726
|
+
action: Ie.CHANGE_CATEGORY,
|
4727
|
+
category: xe.TRANSACTION_DETAILS,
|
4728
|
+
label: ve.CATEGORY
|
4729
4729
|
},
|
4730
4730
|
// date
|
4731
4731
|
[Y.ON_TRANSACTION_DATE_CHANGED]: {
|
4732
|
-
action:
|
4733
|
-
category:
|
4734
|
-
label:
|
4732
|
+
action: Ie.SAVE,
|
4733
|
+
category: xe.TRANSACTION_DETAILS,
|
4734
|
+
label: ve.DATE
|
4735
4735
|
},
|
4736
4736
|
[Y.ON_TRANSACTION_DATE_CLICK]: {
|
4737
|
-
action:
|
4738
|
-
category:
|
4739
|
-
label:
|
4737
|
+
action: Ie.SELECT,
|
4738
|
+
category: xe.TRANSACTION_DETAILS,
|
4739
|
+
label: ve.DATE
|
4740
4740
|
},
|
4741
4741
|
// merchant logo
|
4742
4742
|
[Y.ON_TRANSACTION_DELETE_LOGO_CANCEL]: {
|
4743
|
-
action:
|
4744
|
-
category:
|
4745
|
-
label:
|
4743
|
+
action: Ie.CLOSE,
|
4744
|
+
category: xe.TRANSACTION_DETAILS,
|
4745
|
+
label: ve.DELETE_MERCHANT_LOGO
|
4746
4746
|
},
|
4747
4747
|
[Y.ON_TRANSACTION_DELETE_LOGO_CLICK]: {
|
4748
|
-
action:
|
4749
|
-
category:
|
4750
|
-
label:
|
4748
|
+
action: Ie.SELECT,
|
4749
|
+
category: xe.TRANSACTION_DETAILS,
|
4750
|
+
label: ve.DELETE_MERCHANT_LOGO
|
4751
4751
|
},
|
4752
4752
|
[Y.ON_TRANSACTION_DELETE_LOGO_DELETED]: {
|
4753
|
-
action:
|
4754
|
-
category:
|
4755
|
-
label:
|
4753
|
+
action: Ie.DELETE,
|
4754
|
+
category: xe.TRANSACTION_DETAILS,
|
4755
|
+
label: ve.DELETE_MERCHANT_LOGO
|
4756
4756
|
},
|
4757
4757
|
// description
|
4758
4758
|
[Y.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK]: {
|
4759
|
-
action:
|
4760
|
-
category:
|
4761
|
-
label:
|
4759
|
+
action: Ie.EDIT,
|
4760
|
+
category: xe.TRANSACTION_DETAILS,
|
4761
|
+
label: ve.DESCRIPTION
|
4762
4762
|
},
|
4763
4763
|
[Y.ON_TRANSACTION_DESCRIPTION_SAVE_CLICK]: {
|
4764
|
-
action:
|
4765
|
-
category:
|
4766
|
-
label:
|
4764
|
+
action: Ie.SAVE,
|
4765
|
+
category: xe.TRANSACTION_DETAILS,
|
4766
|
+
label: ve.DESCRIPTION
|
4767
4767
|
},
|
4768
4768
|
// hide transactions
|
4769
4769
|
[Y.ON_TRANSACTION_HIDDEN]: {
|
4770
|
-
action:
|
4771
|
-
category:
|
4772
|
-
label:
|
4770
|
+
action: Ie.SAVE,
|
4771
|
+
category: xe.TRANSACTION_DETAILS,
|
4772
|
+
label: ve.HIDE_TRANSACTION
|
4773
4773
|
},
|
4774
4774
|
[Y.ON_TRANSACTION_HIDE_CLICK]: {
|
4775
|
-
action:
|
4776
|
-
category:
|
4777
|
-
label:
|
4775
|
+
action: Ie.SELECT,
|
4776
|
+
category: xe.TRANSACTION_DETAILS,
|
4777
|
+
label: ve.HIDE_TRANSACTION
|
4778
4778
|
},
|
4779
4779
|
[Y.ON_TRANSACTION_HIDE_CANCEL_CLICK]: {
|
4780
|
-
action:
|
4781
|
-
category:
|
4782
|
-
label:
|
4780
|
+
action: Ie.CLOSE,
|
4781
|
+
category: xe.TRANSACTION_DETAILS,
|
4782
|
+
label: ve.HIDE_TRANSACTION
|
4783
4783
|
},
|
4784
4784
|
// transaction list
|
4785
4785
|
[Y.ON_TRANSACTION_LIST_ITEM_CLICK]: {
|
4786
|
-
action:
|
4787
|
-
category:
|
4788
|
-
label:
|
4786
|
+
action: Ie.SELECT,
|
4787
|
+
category: xe.TRANSACTIONS_LIST,
|
4788
|
+
label: ve.TRANSACTION
|
4789
4789
|
},
|
4790
4790
|
// memo
|
4791
4791
|
[Y.ON_TRANSACTION_MEMO_CHANGED]: {
|
4792
|
-
action:
|
4793
|
-
category:
|
4794
|
-
label:
|
4792
|
+
action: Ie.SAVE,
|
4793
|
+
category: xe.TRANSACTION_DETAILS,
|
4794
|
+
label: ve.MEMO
|
4795
4795
|
},
|
4796
4796
|
[Y.ON_TRANSACTION_MEMO_CLICK]: {
|
4797
|
-
action:
|
4798
|
-
category:
|
4799
|
-
label:
|
4797
|
+
action: Ie.SELECT,
|
4798
|
+
category: xe.TRANSACTION_DETAILS,
|
4799
|
+
label: ve.MEMO
|
4800
4800
|
},
|
4801
4801
|
// tags
|
4802
4802
|
[Y.ON_TRANSACTION_TAGS_CHANGED]: {
|
4803
|
-
action:
|
4804
|
-
category:
|
4805
|
-
label:
|
4803
|
+
action: Ie.SAVE,
|
4804
|
+
category: xe.TRANSACTION_DETAILS,
|
4805
|
+
label: ve.TAGS
|
4806
4806
|
},
|
4807
4807
|
[Y.ON_TRANSACTION_TAGS_CLICK]: {
|
4808
|
-
action:
|
4809
|
-
category:
|
4810
|
-
label:
|
4808
|
+
action: Ie.SELECT,
|
4809
|
+
category: xe.TRANSACTION_DETAILS,
|
4810
|
+
label: ve.TAGS
|
4811
4811
|
},
|
4812
4812
|
[Y.ON_TRANSACTION_TAGS_TAG_ADD_CANCEL_CLICK]: {
|
4813
|
-
action:
|
4814
|
-
category:
|
4815
|
-
label:
|
4813
|
+
action: Ie.CLOSE,
|
4814
|
+
category: xe.TRANSACTION_DETAILS,
|
4815
|
+
label: ve.TAGS
|
4816
4816
|
},
|
4817
4817
|
[Y.ON_TRANSACTION_TAGS_TAG_ADD_CLICK]: {
|
4818
|
-
action:
|
4819
|
-
category:
|
4820
|
-
label:
|
4818
|
+
action: Ie.ADD,
|
4819
|
+
category: xe.TRANSACTION_DETAILS,
|
4820
|
+
label: ve.TAG_ADD
|
4821
4821
|
},
|
4822
4822
|
[Y.ON_TRANSACTION_TAGS_TAG_ADDED]: {
|
4823
|
-
action:
|
4824
|
-
category:
|
4825
|
-
label:
|
4823
|
+
action: Ie.SAVE,
|
4824
|
+
category: xe.TRANSACTION_DETAILS,
|
4825
|
+
label: ve.TAG_ADD
|
4826
4826
|
},
|
4827
4827
|
[Y.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK]: {
|
4828
|
-
action:
|
4829
|
-
category:
|
4830
|
-
label:
|
4828
|
+
action: Ie.SELECT,
|
4829
|
+
category: xe.TRANSACTION_DETAILS,
|
4830
|
+
label: ve.TAG_DELETE
|
4831
4831
|
},
|
4832
4832
|
[Y.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK]: {
|
4833
|
-
action:
|
4834
|
-
category:
|
4835
|
-
label:
|
4833
|
+
action: Ie.CLOSE,
|
4834
|
+
category: xe.TRANSACTION_DETAILS,
|
4835
|
+
label: ve.TAG_DELETE
|
4836
4836
|
},
|
4837
4837
|
[Y.ON_TRANSACTION_TAGS_TAG_DELETED]: {
|
4838
|
-
action:
|
4839
|
-
category:
|
4840
|
-
label:
|
4838
|
+
action: Ie.SAVE,
|
4839
|
+
category: xe.TRANSACTION_DETAILS,
|
4840
|
+
label: ve.TAG_DELETE
|
4841
4841
|
},
|
4842
4842
|
[Y.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK]: {
|
4843
|
-
action:
|
4844
|
-
category:
|
4845
|
-
label:
|
4843
|
+
action: Ie.EDIT,
|
4844
|
+
category: xe.TRANSACTION_DETAILS,
|
4845
|
+
label: ve.TAG_EDIT
|
4846
4846
|
},
|
4847
4847
|
[Y.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED]: {
|
4848
|
-
action:
|
4849
|
-
category:
|
4850
|
-
label:
|
4848
|
+
action: Ie.SAVE,
|
4849
|
+
category: xe.TRANSACTION_DETAILS,
|
4850
|
+
label: ve.TAG_EDIT
|
4851
4851
|
},
|
4852
4852
|
// flag
|
4853
4853
|
[Y.ON_TRANSACTION_TOGGLE_FLAG_CLICK]: {
|
4854
|
-
action:
|
4855
|
-
category:
|
4856
|
-
label:
|
4854
|
+
action: Ie.SELECT,
|
4855
|
+
category: xe.TRANSACTION_DETAILS,
|
4856
|
+
label: ve.FLAG
|
4857
4857
|
},
|
4858
4858
|
// hide
|
4859
4859
|
[Y.ON_TRANSACTION_UNHIDDEN]: {
|
4860
|
-
action:
|
4861
|
-
category:
|
4862
|
-
label:
|
4860
|
+
action: Ie.SAVE,
|
4861
|
+
category: xe.TRANSACTION_DETAILS,
|
4862
|
+
label: ve.UNHIDE_TRANSACTION
|
4863
4863
|
},
|
4864
4864
|
[Y.ON_TRANSACTION_UNHIDE_CLICK]: {
|
4865
|
-
action:
|
4866
|
-
category:
|
4867
|
-
label:
|
4865
|
+
action: Ie.SELECT,
|
4866
|
+
category: xe.TRANSACTION_DETAILS,
|
4867
|
+
label: ve.UNHIDE_TRANSACTION
|
4868
4868
|
},
|
4869
4869
|
[Y.ON_TRANSACTION_UNHIDE_CANCEL_CLICK]: {
|
4870
|
-
action:
|
4871
|
-
category:
|
4872
|
-
label:
|
4870
|
+
action: Ie.CLOSE,
|
4871
|
+
category: xe.TRANSACTION_DETAILS,
|
4872
|
+
label: ve.UNHIDE_TRANSACTION
|
4873
4873
|
},
|
4874
4874
|
// export CSV
|
4875
4875
|
[Y.ON_TRANSACTION_EXPORT_CSV_CLICK]: {
|
4876
|
-
action:
|
4877
|
-
category:
|
4878
|
-
label:
|
4876
|
+
action: Ie.SELECT,
|
4877
|
+
category: xe.TRANSACTIONS_WIDGET,
|
4878
|
+
label: ve.EXPORT_CSV
|
4879
4879
|
},
|
4880
4880
|
// add transaction
|
4881
4881
|
[Y.ON_TRANSACTION_MANUAL_ADD_CLICK]: {
|
4882
|
-
action:
|
4883
|
-
category:
|
4884
|
-
label:
|
4882
|
+
action: Ie.SELECT,
|
4883
|
+
category: xe.TRANSACTIONS_WIDGET,
|
4884
|
+
label: ve.ADD_TRANSACTION
|
4885
4885
|
},
|
4886
4886
|
[Y.ON_TRANSACTION_MANUAL_ADD_ADDED]: {
|
4887
|
-
action:
|
4888
|
-
category:
|
4889
|
-
label:
|
4887
|
+
action: Ie.ADD,
|
4888
|
+
category: xe.TRANSACTIONS_WIDGET,
|
4889
|
+
label: ve.ADD_TRANSACTION
|
4890
4890
|
},
|
4891
4891
|
[Y.ON_TRANSACTION_DELETE_CLICK]: {
|
4892
|
-
action:
|
4893
|
-
category:
|
4894
|
-
label:
|
4892
|
+
action: Ie.SELECT,
|
4893
|
+
category: xe.TRANSACTIONS_WIDGET,
|
4894
|
+
label: ve.DELETE_TRANSACTION
|
4895
4895
|
},
|
4896
4896
|
[Y.ON_TRANSACTION_DELETE_CANCEL]: {
|
4897
|
-
action:
|
4898
|
-
category:
|
4899
|
-
label:
|
4897
|
+
action: Ie.CLOSE,
|
4898
|
+
category: xe.TRANSACTIONS_WIDGET,
|
4899
|
+
label: ve.DELETE_TRANSACTION
|
4900
4900
|
},
|
4901
4901
|
[Y.ON_TRANSACTION_DELETE_DELETED]: {
|
4902
|
-
action:
|
4903
|
-
category:
|
4904
|
-
label:
|
4902
|
+
action: Ie.DELETE,
|
4903
|
+
category: xe.TRANSACTIONS_WIDGET,
|
4904
|
+
label: ve.DELETE_TRANSACTION
|
4905
4905
|
}
|
4906
4906
|
}, S_ = async (e, n) => !n || !Nr[e] ? null : n.sendAnalyticEvent(Nr[e]), co = {
|
4907
4907
|
FLAG: "flag",
|
@@ -4941,7 +4941,7 @@ const b_ = [
|
|
4941
4941
|
const i = e.toLowerCase().split(" "), a = n?.toString().toLowerCase() ?? "";
|
4942
4942
|
return i.every((o) => a.indexOf(o) > -1);
|
4943
4943
|
};
|
4944
|
-
var et = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(et || {}), nt = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(nt || {}), v_ = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(v_ || {}), w_ = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(w_ || {}), N_ = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(N_ || {}), U = /* @__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))(U || {}), lo = /* @__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))(lo || {}), Nt = /* @__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))(Nt || {}), Ke = /* @__PURE__ */ ((e) => (e[e.BudgetExceeded = 1] = "BudgetExceeded", e[e.BudgetOffTarget = 2] = "BudgetOffTarget", 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))(Ke || {}), Tt = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(Tt || {}), Do = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(Do || {}), D_ = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(D_ || {}),
|
4944
|
+
var et = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(et || {}), nt = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(nt || {}), v_ = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(v_ || {}), w_ = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(w_ || {}), N_ = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(N_ || {}), U = /* @__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))(U || {}), lo = /* @__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))(lo || {}), Nt = /* @__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))(Nt || {}), Ke = /* @__PURE__ */ ((e) => (e[e.BudgetExceeded = 1] = "BudgetExceeded", e[e.BudgetOffTarget = 2] = "BudgetOffTarget", 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))(Ke || {}), Tt = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(Tt || {}), Do = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(Do || {}), D_ = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(D_ || {}), De = /* @__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))(De || {}), rt = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(rt || {}), Xt = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Xt || {}), dn = /* @__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))(dn || {});
|
4945
4945
|
const dc = {
|
4946
4946
|
account_guid: "",
|
4947
4947
|
amount: 0,
|
@@ -5143,7 +5143,7 @@ class O_ {
|
|
5143
5143
|
}
|
5144
5144
|
};
|
5145
5145
|
setFilter = (n) => {
|
5146
|
-
this.filter = n, n.dateRange &&
|
5146
|
+
this.filter = n, n.dateRange && Ne(n.dateRange.start, this.cachedStartDate) && this.loadTransactions(n.dateRange.start, gn()).then(() => {
|
5147
5147
|
n.dateRange && (this.cachedStartDate = n.dateRange.start);
|
5148
5148
|
});
|
5149
5149
|
};
|
@@ -7276,7 +7276,7 @@ const gc = ({ transaction: e }) => {
|
|
7276
7276
|
showInsights: i = !1,
|
7277
7277
|
sx: a = {}
|
7278
7278
|
}) => {
|
7279
|
-
const { visibleAccounts: o, refreshAccounts: r } =
|
7279
|
+
const { visibleAccounts: o, refreshAccounts: r } = we(), s = me(), { setSearchValue: c } = Cn(), {
|
7280
7280
|
manualTransaction: d,
|
7281
7281
|
isAmountValid: _,
|
7282
7282
|
searchValue: u,
|
@@ -7299,7 +7299,7 @@ const gc = ({ transaction: e }) => {
|
|
7299
7299
|
selectedAccounts: ye,
|
7300
7300
|
setDisplayedDate: J,
|
7301
7301
|
setSelectedAccounts: Ee
|
7302
|
-
} = ue(), [Z, Q] = g.useState(""), [Le, Ge] = g.useState(""), [We, Ze] = g.useState(!1), [
|
7302
|
+
} = ue(), [Z, Q] = g.useState(""), [Le, Ge] = g.useState(""), [We, Ze] = g.useState(!1), [Ae, ke] = g.useState(!1), [vt, de] = g.useState(!1);
|
7303
7303
|
g.useEffect(() => {
|
7304
7304
|
Ee(o);
|
7305
7305
|
}, [o]), g.useEffect(() => {
|
@@ -7476,7 +7476,7 @@ const gc = ({ transaction: e }) => {
|
|
7476
7476
|
_i,
|
7477
7477
|
{
|
7478
7478
|
onClose: bl,
|
7479
|
-
showConnectWidget:
|
7479
|
+
showConnectWidget: Ae,
|
7480
7480
|
title: D.add_manual_account
|
7481
7481
|
}
|
7482
7482
|
)
|
@@ -8279,15 +8279,15 @@ const gc = ({ transaction: e }) => {
|
|
8279
8279
|
let m = u;
|
8280
8280
|
switch (n.recurrence_type) {
|
8281
8281
|
case ee.EveryWeek:
|
8282
|
-
for (m = vi(m, d);
|
8282
|
+
for (m = vi(m, d); Ne(m, h); )
|
8283
8283
|
a.push({
|
8284
8284
|
...c,
|
8285
8285
|
expectedDate: m
|
8286
8286
|
}), m = vi(m, d);
|
8287
8287
|
break;
|
8288
8288
|
case ee.EveryOtherWeek:
|
8289
|
-
if (
|
8290
|
-
for (m = Jn(s, 2);
|
8289
|
+
if (Ne(s, u))
|
8290
|
+
for (m = Jn(s, 2); Ne(m, h); )
|
8291
8291
|
Jt(m, u) && a.push({
|
8292
8292
|
...c,
|
8293
8293
|
expectedDate: m
|
@@ -8301,7 +8301,7 @@ const gc = ({ transaction: e }) => {
|
|
8301
8301
|
...c,
|
8302
8302
|
expectedDate: m
|
8303
8303
|
}), m = cr(m, 2);
|
8304
|
-
for (m = Jn(s, 2);
|
8304
|
+
for (m = Jn(s, 2); Ne(m, h); )
|
8305
8305
|
a.push({
|
8306
8306
|
...c,
|
8307
8307
|
expectedDate: m
|
@@ -8318,37 +8318,37 @@ const gc = ({ transaction: e }) => {
|
|
8318
8318
|
});
|
8319
8319
|
break;
|
8320
8320
|
case ee.EveryOtherMonth:
|
8321
|
-
|
8321
|
+
Ne(s, u) ? Ne(pt(s, 2), h) && a.push({
|
8322
8322
|
...c,
|
8323
8323
|
expectedDate: pt(s, 2)
|
8324
|
-
}) :
|
8324
|
+
}) : Ne(s, h) && a.push({
|
8325
8325
|
...c,
|
8326
8326
|
expectedDate: s
|
8327
8327
|
});
|
8328
8328
|
break;
|
8329
8329
|
case ee.EveryQuarter:
|
8330
|
-
|
8330
|
+
Ne(s, u) ? Ne(An(s, 1), h) && a.push({
|
8331
8331
|
...c,
|
8332
8332
|
expectedDate: An(s, 1)
|
8333
|
-
}) :
|
8333
|
+
}) : Ne(s, h) && a.push({
|
8334
8334
|
...c,
|
8335
8335
|
expectedDate: s
|
8336
8336
|
});
|
8337
8337
|
break;
|
8338
8338
|
case ee.EveryOtherQuarter:
|
8339
|
-
|
8339
|
+
Ne(s, u) ? Ne(An(s, 2), h) && a.push({
|
8340
8340
|
...c,
|
8341
8341
|
expectedDate: An(s, 2)
|
8342
|
-
}) :
|
8342
|
+
}) : Ne(s, h) && a.push({
|
8343
8343
|
...c,
|
8344
8344
|
expectedDate: s
|
8345
8345
|
});
|
8346
8346
|
break;
|
8347
8347
|
case ee.EveryYear:
|
8348
|
-
|
8348
|
+
Ne(s, u) ? Ne(ii(s, 1), h) && a.push({
|
8349
8349
|
...c,
|
8350
8350
|
expectedDate: ii(s, 1)
|
8351
|
-
}) :
|
8351
|
+
}) : Ne(s, h) && a.push({
|
8352
8352
|
...c,
|
8353
8353
|
expectedDate: s
|
8354
8354
|
});
|
@@ -8358,7 +8358,7 @@ const gc = ({ transaction: e }) => {
|
|
8358
8358
|
const f = i.find(
|
8359
8359
|
(E) => E.scheduled_payment_guid === C.scheduledPaymentGuid && E.date > Me(ut(C.expectedDate, 3)) && E.date < Me(Gt(C.expectedDate, 3))
|
8360
8360
|
);
|
8361
|
-
f ? (C.transactionGuid = f.guid, C.occurredOnDate = Be(f.date), C.activityStatus = nt.Paid) :
|
8361
|
+
f ? (C.transactionGuid = f.guid, C.occurredOnDate = Be(f.date), C.activityStatus = nt.Paid) : Ne(C.expectedDate, ut(_, 3)) && (C.activityStatus = nt.Missed);
|
8362
8362
|
}), a;
|
8363
8363
|
}, Cg = (e, n, i, a, o) => a.map((r) => {
|
8364
8364
|
const s = n.find((h) => h.cashflow_sequence_guid === r.guid), c = i.find((h) => h.cashflow_sequence_guid === r.guid), d = o.find((h) => h.guid === s?.transaction_guid), _ = e.find((h) => h.guid === d?.account_guid);
|
@@ -8769,7 +8769,7 @@ const gc = ({ transaction: e }) => {
|
|
8769
8769
|
] }) })
|
8770
8770
|
] });
|
8771
8771
|
}, Ng = I(wg), Dg = ({ onBackClick: e, sx: n = {} }) => {
|
8772
|
-
const { visibleAccounts: i } =
|
8772
|
+
const { visibleAccounts: i } = we(), { recurring: a } = x(), { isCopyLoaded: o, isInitialized: r, selectedAccountGuids: s, setSelectedAccounts: c } = ue(), { setFilter: d } = Te(), { isDataLoaded: _, loadActivity: u } = at(), { onEvent: h } = V();
|
8773
8773
|
g.useEffect(() => {
|
8774
8774
|
u();
|
8775
8775
|
}, []), g.useEffect(() => {
|
@@ -8849,7 +8849,7 @@ const gc = ({ transaction: e }) => {
|
|
8849
8849
|
)
|
8850
8850
|
] }) : /* @__PURE__ */ t(ge, {});
|
8851
8851
|
}, Og = I(Rg), Lg = ({ onPrimaryCtaClick: e, sx: n }) => {
|
8852
|
-
const { accounts: i } =
|
8852
|
+
const { accounts: i } = we(), { recurring: a } = x(), { isCopyLoaded: o, isInitialized: r, setSelectedAccounts: s, selectedAccountGuids: c } = ue(), { setFilter: d } = Te();
|
8853
8853
|
return g.useEffect(() => {
|
8854
8854
|
r && s(i);
|
8855
8855
|
}, [r]), g.useEffect(() => {
|
@@ -9320,7 +9320,7 @@ const Vg = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
|
|
9320
9320
|
),
|
9321
9321
|
/* @__PURE__ */ t(k, {})
|
9322
9322
|
] });
|
9323
|
-
}, Fr = I(Kg), Wr = (e, n) => (i) => i.accountGuid === e.guid && (bo(i.expectedDate) || Jt(i.expectedDate, n.start)) &&
|
9323
|
+
}, Fr = I(Kg), Wr = (e, n) => (i) => i.accountGuid === e.guid && (bo(i.expectedDate) || Jt(i.expectedDate, n.start)) && Ne(i.expectedDate, n.end), zg = () => {
|
9324
9324
|
const { availableWidth: e } = Vn(), { cashflow: n } = x(), { upcomingExpenses: i, upcomingIncome: a } = at(), { dateRange: o, selectedCashAccounts: r } = hi();
|
9325
9325
|
return /* @__PURE__ */ l(b, { children: [
|
9326
9326
|
/* @__PURE__ */ l(b, { direction: e < 400 ? "column" : "row", justifyContent: "space-between", children: [
|
@@ -9686,7 +9686,7 @@ const Vg = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
|
|
9686
9686
|
n && /* @__PURE__ */ t(je, { amount: e, component: "h2", symbol: o, variant: "Small" })
|
9687
9687
|
]
|
9688
9688
|
}
|
9689
|
-
), Ur = (e, n) => (i) => i.accountGuid && e.includes(i.accountGuid) && (bo(i.expectedDate) || Jt(i.expectedDate, n.start)) &&
|
9689
|
+
), Ur = (e, n) => (i) => i.accountGuid && e.includes(i.accountGuid) && (bo(i.expectedDate) || Jt(i.expectedDate, n.start)) && Ne(i.expectedDate, n.end), Qg = () => {
|
9690
9690
|
const [e, n] = g.useState(!1), { availableWidth: i } = Vn(), { cashflow: a } = x(), { upcomingExpenses: o, upcomingIncome: r } = at(), { selectedAccountGuids: s } = ue(), { dateRange: c, selectedCashAccounts: d } = hi(), { userProfile: _ } = an(), u = g.useMemo(
|
9691
9691
|
() => o.filter(Ur(s, c)),
|
9692
9692
|
[c, s, o]
|
@@ -10063,7 +10063,7 @@ const Vg = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
|
|
10063
10063
|
setSelectedAccounts: o,
|
10064
10064
|
shouldDisableNextDate: r,
|
10065
10065
|
shouldDisablePrevDate: s
|
10066
|
-
} = ue(), { onEvent: c } = V(), { visibleCashAccounts: d } =
|
10066
|
+
} = ue(), { onEvent: c } = V(), { visibleCashAccounts: d } = we(), { setFilter: _ } = Te(), { userProfile: u } = an(), { dateRange: h, setSelectedCashAccounts: m } = hi(), { loadActivity: C } = at(), { cashflow: f } = x(), { isCopyLoaded: E, isInitialized: y } = ue(), [S, v] = g.useState(!1);
|
10067
10067
|
return g.useEffect(() => {
|
10068
10068
|
y && C();
|
10069
10069
|
}, [y]), g.useEffect(() => {
|
@@ -10165,7 +10165,7 @@ let cm = class {
|
|
10165
10165
|
// if there is no income activity
|
10166
10166
|
get expensesTilNextIncome() {
|
10167
10167
|
return this.upcomingExpenses.filter(
|
10168
|
-
(n) =>
|
10168
|
+
(n) => Ne(n.expectedDate, this.nextIncome?.expectedDate || qe(/* @__PURE__ */ new Date()))
|
10169
10169
|
);
|
10170
10170
|
}
|
10171
10171
|
setNextIncome = (n) => {
|
@@ -10659,12 +10659,12 @@ const fn = () => {
|
|
10659
10659
|
}, gm = I(hm), Wt = () => {
|
10660
10660
|
if (!g.useContext(qn))
|
10661
10661
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
10662
|
-
return
|
10662
|
+
return we().uiStore;
|
10663
10663
|
}, Ma = (e) => e.top_level_category_guid === N.INCOME || e.category_guid === N.INCOME, mm = (e) => !Ma(e) && !Lc(e), Oc = (e) => ur.includes(e.top_level_category_guid) || ur.includes(e.category_guid), Lc = (e) => e.top_level_category_guid === N.TRANSFER || e.category_guid === N.TRANSFER, pm = (e) => !Ma(e) && !Oc(e) && !Lc(e), Cm = (e) => e.filter((n) => n.category_guid === n.top_level_category_guid), Ho = (e, n) => {
|
10664
10664
|
const i = [];
|
10665
10665
|
let a = Ve(qt(/* @__PURE__ */ new Date(), 5));
|
10666
10666
|
const o = /* @__PURE__ */ new Date();
|
10667
|
-
for (;
|
10667
|
+
for (; Ne(a, o); )
|
10668
10668
|
i.push({
|
10669
10669
|
x: re(a, ae.MONTH_SHORT),
|
10670
10670
|
y: e.filter((r) => r.year === a.getFullYear() && r.month === a.getMonth() + 1).reduce((r, s) => r + s.total, 0)
|
@@ -10685,7 +10685,7 @@ const fn = () => {
|
|
10685
10685
|
);
|
10686
10686
|
let a = Ve(qt(/* @__PURE__ */ new Date(), 5));
|
10687
10687
|
const o = qe(/* @__PURE__ */ new Date());
|
10688
|
-
for (;
|
10688
|
+
for (; Ne(a, o); )
|
10689
10689
|
n.push({
|
10690
10690
|
x: re(a, ae.MONTH_SHORT),
|
10691
10691
|
y: i.filter((r) => r.year === a.getFullYear() && r.month === a.getMonth() + 1).reduce((r, s) => r + s.total, 0)
|
@@ -10750,7 +10750,7 @@ const fn = () => {
|
|
10750
10750
|
}
|
10751
10751
|
);
|
10752
10752
|
}, vm = I(xm), wm = ({ customDetailsChart: e }) => {
|
10753
|
-
const { institutions: n } =
|
10753
|
+
const { institutions: n } = we(), { selectedAccount: i } = Wt(), { accounts: a } = x(), { firstSubtitle: o, firstValue: r, hasAvailableBalance: s, secondSubtitle: c, secondValue: d } = Nc(i, a), _ = n.find(
|
10754
10754
|
(h) => h.guid === i?.institution_guid
|
10755
10755
|
), u = [
|
10756
10756
|
...Eo,
|
@@ -11107,7 +11107,7 @@ const Mc = ({
|
|
11107
11107
|
}
|
11108
11108
|
);
|
11109
11109
|
}), km = I(({ debt: e }) => {
|
11110
|
-
const { debts: n } = x(), { updateAccount: i } =
|
11110
|
+
const { debts: n } = x(), { updateAccount: i } = we(), { onEvent: a } = V(), [o, r] = g.useState(e.interest_rate ?? 0), s = o < 0, c = async () => {
|
11111
11111
|
await i({ ...e.account, interest_rate: o }), e.interest_rate = o, a($.DEBTS_SAVE_RATE_ACTION, { account_guid: e.guid });
|
11112
11112
|
}, d = () => {
|
11113
11113
|
setTimeout(() => {
|
@@ -11137,7 +11137,7 @@ const Mc = ({
|
|
11137
11137
|
}
|
11138
11138
|
);
|
11139
11139
|
}), Gm = I(({ debt: e }) => {
|
11140
|
-
const { debts: n } = x(), { updateAccount: i } =
|
11140
|
+
const { debts: n } = x(), { updateAccount: i } = we(), { onEvent: a } = V(), [o, r] = g.useState(e.monthly_payment ?? 0), s = o < 0 || o > 9999999999e-2, c = async () => {
|
11141
11141
|
await i({ ...e.account, minimum_payment: o }), e.monthly_payment = o, a($.DEBTS_SAVE_PAYMENT_ACTION, { account_guid: e.guid });
|
11142
11142
|
}, d = () => {
|
11143
11143
|
setTimeout(() => {
|
@@ -11169,7 +11169,7 @@ const Mc = ({
|
|
11169
11169
|
}
|
11170
11170
|
);
|
11171
11171
|
}), Bm = I(({ debt: e }) => {
|
11172
|
-
const { debts: n } = x(), { updateAccount: i } =
|
11172
|
+
const { debts: n } = x(), { updateAccount: i } = we(), { onEvent: a } = V(), [o, r] = g.useState(e.original_balance ?? 0), s = o < 0 || o > 9999999999e-2, c = async () => {
|
11173
11173
|
await i({ ...e.account, original_balance: o }), e.original_balance = o, a($.DEBTS_SAVE_BALANCE_ACTION, { account_guid: e.guid });
|
11174
11174
|
}, d = () => {
|
11175
11175
|
setTimeout(() => {
|
@@ -11742,7 +11742,7 @@ const Kt = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11742
11742
|
}
|
11743
11743
|
);
|
11744
11744
|
}), rp = ({ onBackClick: e, sx: n }) => {
|
11745
|
-
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState(!1), [d, _] = g.useState(""), { isDesktop: u, isMobile: h } = be(), { debts: m } = x(), { onEvent: C } = V(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: y } = ue(), { setSelectedAccount: S } = Wt(), { selectedDebtPriority: v, setSelectedDebtChartData: w } = fn(), { visibleDebtAccounts: A } =
|
11745
|
+
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState(!1), [d, _] = g.useState(""), { isDesktop: u, isMobile: h } = be(), { debts: m } = x(), { onEvent: C } = V(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: y } = ue(), { setSelectedAccount: S } = Wt(), { selectedDebtPriority: v, setSelectedDebtChartData: w } = fn(), { visibleDebtAccounts: A } = we(), { goalsLoaded: R, loadGoals: D, monthlyCashFlowProfile: H } = ct(), { debts: O } = xa(), M = g.useMemo(() => {
|
11746
11746
|
const Ee = H?.extra_payment ?? 0;
|
11747
11747
|
return ap(O, v, Ee);
|
11748
11748
|
}, [O, v, H]);
|
@@ -12421,7 +12421,7 @@ const hp = (e, n) => {
|
|
12421
12421
|
}
|
12422
12422
|
);
|
12423
12423
|
}, Ep = ({ onClose: e }) => {
|
12424
|
-
const { goals: n } = x(), { addGoal: i, debtGoals: a, setAlert: o, setSelectedGoal: r } = ct(), { visibleDebtAccounts: s } =
|
12424
|
+
const { goals: n } = x(), { addGoal: i, debtGoals: a, setAlert: o, setSelectedGoal: r } = ct(), { visibleDebtAccounts: s } = we(), [c, d] = g.useState(!1), _ = _p(n), u = (m, C, f) => {
|
12425
12425
|
f === U.DEBT_TRACK ? d(!0) : r({
|
12426
12426
|
amount: 0,
|
12427
12427
|
current_amount: 0,
|
@@ -12524,7 +12524,7 @@ const hp = (e, n) => {
|
|
12524
12524
|
}
|
12525
12525
|
);
|
12526
12526
|
}), Tp = ({ goal: e }) => {
|
12527
|
-
const { visibleCheckingAccounts: n, visibleSavingsAccounts: i } =
|
12527
|
+
const { visibleCheckingAccounts: n, visibleSavingsAccounts: i } = we(), { accounts: a, goals: o } = x(), { setAlert: r, setSelectedGoal: s, updateGoal: c } = ct(), d = !e.guid && !e.account_guid, [_, u] = g.useState(!1), h = async (m) => {
|
12528
12528
|
const C = { ...e, account_guid: m };
|
12529
12529
|
d ? s(C) : (await c(C), r(o.alert_account_changed)), u(!1);
|
12530
12530
|
};
|
@@ -12686,7 +12686,7 @@ const hp = (e, n) => {
|
|
12686
12686
|
}
|
12687
12687
|
);
|
12688
12688
|
}), vp = ({ goal: e }) => {
|
12689
|
-
const { goals: n } = x(), { visibleInvestmentAccounts: i } =
|
12689
|
+
const { goals: n } = x(), { visibleInvestmentAccounts: i } = we(), {
|
12690
12690
|
addRetirementGoalAccount: a,
|
12691
12691
|
newRetirementGoalAccounts: o,
|
12692
12692
|
retirementGoalAccounts: r,
|
@@ -12732,7 +12732,7 @@ const hp = (e, n) => {
|
|
12732
12732
|
)
|
12733
12733
|
] });
|
12734
12734
|
}, wp = I(({ goal: e }) => {
|
12735
|
-
const { goals: n } = x(), { visibleAccounts: i } =
|
12735
|
+
const { goals: n } = x(), { visibleAccounts: i } = we(), a = g.useMemo(
|
12736
12736
|
() => i.find((s) => s.guid === e.account_guid),
|
12737
12737
|
[i, e]
|
12738
12738
|
), o = e.track_type;
|
@@ -12835,7 +12835,7 @@ const hp = (e, n) => {
|
|
12835
12835
|
)
|
12836
12836
|
] });
|
12837
12837
|
}), s4 = I(({ onBackClick: e, sx: n }) => {
|
12838
|
-
const { onEvent: i } = V(), { isMobile: a } = be(), { visibleAccounts: o } =
|
12838
|
+
const { onEvent: i } = V(), { isMobile: a } = be(), { visibleAccounts: o } = we(), { isCopyLoaded: r, isInitialized: s, setSelectedAccounts: c } = ue(), { goals: d, common: _ } = x(), { alert: u, goals: h, goalsLoaded: m, loadGoals: C, monthlyCashFlowProfile: f, setAlert: E, retirmentGoals: y } = ct(), [S, v] = g.useState(0), [w, A] = g.useState(!1), R = f?.amount_allocated_for_savings_goals || 0, D = f?.amount_allocated_for_debt_goals || 0, H = f?.amount_allocated_for_retirement_goals || 0, O = r ? T(
|
12839
12839
|
a ? d.tab_subtitle_mobile : d.tab_subtitle,
|
12840
12840
|
B(R, "0,0")
|
12841
12841
|
) : "", M = r ? T(
|
@@ -13955,7 +13955,7 @@ const a1 = ({
|
|
13955
13955
|
title: i
|
13956
13956
|
}) => {
|
13957
13957
|
let a;
|
13958
|
-
const { refreshAccounts: o } =
|
13958
|
+
const { refreshAccounts: o } = we(), { loadWidget: r } = ic(), { connect: s } = x(), c = it(), [d, _] = g.useState(!1), [u, h] = g.useState(!1);
|
13959
13959
|
return g.useEffect(() => (n ? (_(!0), r({ widget: "connections_widget", mode: c.palette.mode }).then((m) => {
|
13960
13960
|
a = new pd({
|
13961
13961
|
container: `#${Ar}`,
|
@@ -14151,7 +14151,7 @@ const a1 = ({
|
|
14151
14151
|
] })
|
14152
14152
|
] });
|
14153
14153
|
}, f1 = I(C1), l4 = I(({ onBackClick: e }) => {
|
14154
|
-
const { isCopyLoaded: n, isInitialized: i, selectedAccounts: a, setSelectedAccounts: o } = ue(), { accounts: r, net_worth: s } = x(), { visibleAccounts: c } =
|
14154
|
+
const { isCopyLoaded: n, isInitialized: i, selectedAccounts: a, setSelectedAccounts: o } = ue(), { accounts: r, net_worth: s } = x(), { visibleAccounts: c } = we(), {
|
14155
14155
|
assetsLiabilities: d,
|
14156
14156
|
gainsLosses: _,
|
14157
14157
|
hoveredData: u,
|
@@ -14173,8 +14173,8 @@ const a1 = ({
|
|
14173
14173
|
}, [i, a]), g.useEffect(() => {
|
14174
14174
|
v($.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: R + "M" }), h(R).finally();
|
14175
14175
|
}, [R]);
|
14176
|
-
const J = (Ze,
|
14177
|
-
y(
|
14176
|
+
const J = (Ze, Ae) => {
|
14177
|
+
y(Ae), Ze.currentTarget instanceof HTMLDivElement && O(!0);
|
14178
14178
|
}, Ee = (Ze) => {
|
14179
14179
|
E(Ze);
|
14180
14180
|
}, Z = () => {
|
@@ -14182,8 +14182,8 @@ const a1 = ({
|
|
14182
14182
|
}, Q = () => {
|
14183
14183
|
v($.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), j(!0);
|
14184
14184
|
}, Le = async (Ze) => {
|
14185
|
-
const
|
14186
|
-
|
14185
|
+
const Ae = Ze[0], ke = Ze[1];
|
14186
|
+
Ae && ke && D(Id(ke, Ae));
|
14187
14187
|
}, Ge = {
|
14188
14188
|
chartData: C,
|
14189
14189
|
hoveredData: u,
|
@@ -14345,7 +14345,7 @@ const E1 = (e, n) => {
|
|
14345
14345
|
const i = wi(n[e].delivered_at), a = wi(n[e - 1]?.delivered_at);
|
14346
14346
|
return !xd(i, a);
|
14347
14347
|
}, S1 = ({ date: e }) => /* @__PURE__ */ t(L, { sx: { display: "flex", justifyContent: "center", mt: 12, py: 8 }, children: /* @__PURE__ */ t(p, { bold: !0, variant: "Small", children: Fi(e) }) }), T1 = ({ notification: e }) => {
|
14348
|
-
const { accounts: n } =
|
14348
|
+
const { accounts: n } = we(), { budgets: i } = _t(), { accounts: a } = x(), o = n.find((d) => d.guid === e.entity_guid), r = i.find((d) => d.guid === e.entity_guid), s = e.entity_guid.includes("GOL"), c = {
|
14349
14349
|
badge: {
|
14350
14350
|
display: "flex",
|
14351
14351
|
alignItems: "center",
|
@@ -14919,7 +14919,7 @@ const M1 = ({
|
|
14919
14919
|
/* @__PURE__ */ t(F, { content: c, sx: { py: 1 } }),
|
14920
14920
|
i === d ? /* @__PURE__ */ t(s, { ...o === "ol" && { type: "a" }, children: a.map((_, u) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(F, { content: _, sx: { py: 1 } }) }, u)) }) : null
|
14921
14921
|
] }, d)) }) });
|
14922
|
-
}, Ce = "https://content.moneydesktop.com/storage/MD_Assets/md/help",
|
14922
|
+
}, Ce = "https://content.moneydesktop.com/storage/MD_Assets/md/help", Re = {
|
14923
14923
|
ACCOUNT_DETAILS: `${Ce}/account/AccountDetails.png`,
|
14924
14924
|
ACCOUNT_OVERVIEW: `${Ce}/account/AccountsOverview.png`,
|
14925
14925
|
ACCOUNT_ADD: `${Ce}/account/AddAccount.png`,
|
@@ -14981,7 +14981,7 @@ const M1 = ({
|
|
14981
14981
|
),
|
14982
14982
|
/* @__PURE__ */ t(F, { content: e.accounts_overview.account_view_text, sx: { mt: 12 } })
|
14983
14983
|
] }),
|
14984
|
-
image:
|
14984
|
+
image: Re.ACCOUNT_OVERVIEW,
|
14985
14985
|
imageLargeBreakPoint: 5
|
14986
14986
|
}
|
14987
14987
|
),
|
@@ -15016,7 +15016,7 @@ const M1 = ({
|
|
15016
15016
|
]
|
15017
15017
|
}
|
15018
15018
|
) }),
|
15019
|
-
image:
|
15019
|
+
image: Re.ACCOUNT_DETAILS,
|
15020
15020
|
imageLargeBreakPoint: 3
|
15021
15021
|
}
|
15022
15022
|
),
|
@@ -15096,7 +15096,7 @@ const M1 = ({
|
|
15096
15096
|
)
|
15097
15097
|
] }),
|
15098
15098
|
hasDivider: !1,
|
15099
|
-
image:
|
15099
|
+
image: Re.ACCOUNT_MANAGE_CONNECTIONS,
|
15100
15100
|
imageLargeBreakPoint: 10
|
15101
15101
|
}
|
15102
15102
|
)
|
@@ -15156,7 +15156,7 @@ const M1 = ({
|
|
15156
15156
|
)
|
15157
15157
|
] }),
|
15158
15158
|
hasDivider: !1,
|
15159
|
-
image:
|
15159
|
+
image: Re.ACCOUNT_BROKEN_CONNECTION,
|
15160
15160
|
imageLargeBreakPoint: 3,
|
15161
15161
|
sx: { pt: 24 }
|
15162
15162
|
}
|
@@ -15225,7 +15225,7 @@ const M1 = ({
|
|
15225
15225
|
}
|
15226
15226
|
)
|
15227
15227
|
] }),
|
15228
|
-
image:
|
15228
|
+
image: Re.BUDGETS_WIDGET
|
15229
15229
|
}
|
15230
15230
|
),
|
15231
15231
|
/* @__PURE__ */ t(pe, { content: i.adjusting_income_title, sx: { pt: 48 } }),
|
@@ -15252,7 +15252,7 @@ const M1 = ({
|
|
15252
15252
|
}
|
15253
15253
|
)
|
15254
15254
|
] }),
|
15255
|
-
image:
|
15255
|
+
image: Re.BUDGETS_EDIT_INCOME
|
15256
15256
|
}
|
15257
15257
|
),
|
15258
15258
|
/* @__PURE__ */ t(pe, { content: i.create_budget_title, sx: { pt: 48 } }),
|
@@ -15276,7 +15276,7 @@ const M1 = ({
|
|
15276
15276
|
}
|
15277
15277
|
) }),
|
15278
15278
|
hasDivider: !1,
|
15279
|
-
image:
|
15279
|
+
image: Re.BUDGETS_ADD_SUB_BUDGET
|
15280
15280
|
}
|
15281
15281
|
),
|
15282
15282
|
/* @__PURE__ */ t(
|
@@ -15310,7 +15310,7 @@ const M1 = ({
|
|
15310
15310
|
}
|
15311
15311
|
)
|
15312
15312
|
] }),
|
15313
|
-
image:
|
15313
|
+
image: Re.CASHFLOW_WIDGET,
|
15314
15314
|
sx: { pt: 8 }
|
15315
15315
|
}
|
15316
15316
|
),
|
@@ -15328,7 +15328,7 @@ const M1 = ({
|
|
15328
15328
|
sx: { mt: 24 }
|
15329
15329
|
}
|
15330
15330
|
),
|
15331
|
-
image:
|
15331
|
+
image: Re.CASHFLOW_MANAGE_EXPENSES,
|
15332
15332
|
sx: { pt: 48 }
|
15333
15333
|
}
|
15334
15334
|
),
|
@@ -15345,7 +15345,7 @@ const M1 = ({
|
|
15345
15345
|
altImage: e.cashflow_overview.alt_image_manage_expenses,
|
15346
15346
|
content: /* @__PURE__ */ t(F, { content: e.cashflow_overview.manage_expenses_instruction, sx: { mt: 24 } }),
|
15347
15347
|
hasDivider: !1,
|
15348
|
-
image:
|
15348
|
+
image: Re.CASHFLOW_EXPENSE_DETAILS
|
15349
15349
|
}
|
15350
15350
|
)
|
15351
15351
|
] })
|
@@ -15364,7 +15364,7 @@ const M1 = ({
|
|
15364
15364
|
)
|
15365
15365
|
}
|
15366
15366
|
),
|
15367
|
-
image:
|
15367
|
+
image: Re.DEBTS_OVERVIEW,
|
15368
15368
|
imageLargeBreakPoint: 7,
|
15369
15369
|
sx: { pt: 24 }
|
15370
15370
|
}
|
@@ -15374,7 +15374,7 @@ const M1 = ({
|
|
15374
15374
|
{
|
15375
15375
|
altImage: n.snowball_method,
|
15376
15376
|
content: /* @__PURE__ */ t(F, { content: n.snowball_method_desc, sx: { mt: 24 } }),
|
15377
|
-
image:
|
15377
|
+
image: Re.DEBTS_SNOWBALL_METHOD,
|
15378
15378
|
imageLargeBreakPoint: 2
|
15379
15379
|
}
|
15380
15380
|
),
|
@@ -15419,7 +15419,7 @@ const M1 = ({
|
|
15419
15419
|
}
|
15420
15420
|
)
|
15421
15421
|
] }),
|
15422
|
-
image:
|
15422
|
+
image: Re.DEBTS_PRIORITIZATION,
|
15423
15423
|
imageLargeBreakPoint: 4
|
15424
15424
|
}
|
15425
15425
|
),
|
@@ -15505,7 +15505,7 @@ const M1 = ({
|
|
15505
15505
|
}
|
15506
15506
|
)
|
15507
15507
|
] }),
|
15508
|
-
image:
|
15508
|
+
image: Re.DEBTS_DETAILS
|
15509
15509
|
}
|
15510
15510
|
),
|
15511
15511
|
hidingAccounts: /* @__PURE__ */ t(
|
@@ -15686,7 +15686,7 @@ const M1 = ({
|
|
15686
15686
|
)
|
15687
15687
|
] }),
|
15688
15688
|
hasDivider: !1,
|
15689
|
-
image:
|
15689
|
+
image: Re.GENERAL_CATEGORIZE_TRANSACTIONS,
|
15690
15690
|
imageLargeBreakPoint: 10
|
15691
15691
|
}
|
15692
15692
|
),
|
@@ -15803,7 +15803,7 @@ const M1 = ({
|
|
15803
15803
|
}
|
15804
15804
|
),
|
15805
15805
|
hasDivider: !0,
|
15806
|
-
image:
|
15806
|
+
image: Re.GOALS_CREATE_GOAL,
|
15807
15807
|
imageLargeBreakPoint: 10
|
15808
15808
|
}
|
15809
15809
|
),
|
@@ -15827,7 +15827,7 @@ const M1 = ({
|
|
15827
15827
|
}
|
15828
15828
|
),
|
15829
15829
|
hasDivider: !0,
|
15830
|
-
image:
|
15830
|
+
image: Re.GOALS_SAVINGS_GOALS,
|
15831
15831
|
imageLargeBreakPoint: 3
|
15832
15832
|
}
|
15833
15833
|
),
|
@@ -15853,7 +15853,7 @@ const M1 = ({
|
|
15853
15853
|
}
|
15854
15854
|
) }),
|
15855
15855
|
hasDivider: !0,
|
15856
|
-
image:
|
15856
|
+
image: Re.GOALS_DEBT_GOALS,
|
15857
15857
|
imageLargeBreakPoint: 3
|
15858
15858
|
}
|
15859
15859
|
),
|
@@ -15880,7 +15880,7 @@ const M1 = ({
|
|
15880
15880
|
}
|
15881
15881
|
),
|
15882
15882
|
hasDivider: !0,
|
15883
|
-
image:
|
15883
|
+
image: Re.GOALS_RETIREMENT_GOALS,
|
15884
15884
|
imageLargeBreakPoint: 3
|
15885
15885
|
}
|
15886
15886
|
),
|
@@ -15918,7 +15918,7 @@ const M1 = ({
|
|
15918
15918
|
}
|
15919
15919
|
),
|
15920
15920
|
hasDivider: !1,
|
15921
|
-
image:
|
15921
|
+
image: Re.GOALS_MANAGE_GOALS,
|
15922
15922
|
imageLargeBreakPoint: 3
|
15923
15923
|
}
|
15924
15924
|
)
|
@@ -15978,7 +15978,7 @@ const M1 = ({
|
|
15978
15978
|
/* @__PURE__ */ t(ne, { items: [n.list_2_item_1, n.list_2_item_2] })
|
15979
15979
|
] }),
|
15980
15980
|
hasDivider: !1,
|
15981
|
-
image:
|
15981
|
+
image: Re.INVESTMENTS_WIDGET_DETAILS,
|
15982
15982
|
imageLargeBreakPoint: 10,
|
15983
15983
|
sx: { pt: 12 }
|
15984
15984
|
}
|
@@ -16021,7 +16021,7 @@ const M1 = ({
|
|
16021
16021
|
),
|
16022
16022
|
/* @__PURE__ */ t(F, { content: n.mobile_devices_overview_success })
|
16023
16023
|
] }),
|
16024
|
-
image:
|
16024
|
+
image: Re.MOBILE_ADD_MOBILE_DEVICE,
|
16025
16025
|
imageLargeBreakPoint: 10,
|
16026
16026
|
sx: { mt: 20 }
|
16027
16027
|
}
|
@@ -16076,7 +16076,7 @@ const M1 = ({
|
|
16076
16076
|
)
|
16077
16077
|
}
|
16078
16078
|
),
|
16079
|
-
image:
|
16079
|
+
image: Re.NETWORTH_WIDGET,
|
16080
16080
|
imageLargeBreakPoint: 8,
|
16081
16081
|
sx: { mt: 24 }
|
16082
16082
|
}
|
@@ -16136,7 +16136,7 @@ const M1 = ({
|
|
16136
16136
|
}
|
16137
16137
|
)
|
16138
16138
|
] }),
|
16139
|
-
image:
|
16139
|
+
image: Re.NETWORTH_GAINS_LOSSES,
|
16140
16140
|
imageLargeBreakPoint: 3
|
16141
16141
|
}
|
16142
16142
|
),
|
@@ -16183,7 +16183,7 @@ const M1 = ({
|
|
16183
16183
|
)
|
16184
16184
|
] }),
|
16185
16185
|
hasDivider: !1,
|
16186
|
-
image:
|
16186
|
+
image: Re.NETWORTH_ASSETS_LIABILITIES,
|
16187
16187
|
imageLargeBreakPoint: 3
|
16188
16188
|
}
|
16189
16189
|
)
|
@@ -16205,7 +16205,7 @@ const M1 = ({
|
|
16205
16205
|
)
|
16206
16206
|
}
|
16207
16207
|
),
|
16208
|
-
image:
|
16208
|
+
image: Re.NOTIFICATIONS_OVERVIEW,
|
16209
16209
|
sx: { pt: 8 }
|
16210
16210
|
}
|
16211
16211
|
),
|
@@ -16240,7 +16240,7 @@ const M1 = ({
|
|
16240
16240
|
subListType: "ul"
|
16241
16241
|
}
|
16242
16242
|
) }),
|
16243
|
-
image:
|
16243
|
+
image: Re.NOTIFICATIONS_MANAGING
|
16244
16244
|
}
|
16245
16245
|
),
|
16246
16246
|
/* @__PURE__ */ t(
|
@@ -16313,7 +16313,7 @@ const M1 = ({
|
|
16313
16313
|
)
|
16314
16314
|
}
|
16315
16315
|
),
|
16316
|
-
image:
|
16316
|
+
image: Re.RECURRING_TRANSACTIONS_OVERVIEW,
|
16317
16317
|
imageLargeBreakPoint: 7,
|
16318
16318
|
sx: { pt: 24 }
|
16319
16319
|
}
|
@@ -16350,7 +16350,7 @@ const M1 = ({
|
|
16350
16350
|
),
|
16351
16351
|
/* @__PURE__ */ t(F, { content: n.edit_recurring_transaction_dec_2 })
|
16352
16352
|
] }),
|
16353
|
-
image:
|
16353
|
+
image: Re.RECURRING_TRANSACTIONS_MANAGE_EXPENSES
|
16354
16354
|
}
|
16355
16355
|
),
|
16356
16356
|
paymentFrequencySection: /* @__PURE__ */ t(
|
@@ -16377,7 +16377,7 @@ const M1 = ({
|
|
16377
16377
|
/* @__PURE__ */ t(F, { content: n.payment_frequency_dec_2, sx: { pt: 24 } })
|
16378
16378
|
] }),
|
16379
16379
|
hasDivider: !1,
|
16380
|
-
image:
|
16380
|
+
image: Re.RECURRING_TRANSACTIONS_EXPENSE_DETAILS
|
16381
16381
|
}
|
16382
16382
|
)
|
16383
16383
|
};
|
@@ -16415,7 +16415,7 @@ const M1 = ({
|
|
16415
16415
|
}
|
16416
16416
|
)
|
16417
16417
|
] }),
|
16418
|
-
image:
|
16418
|
+
image: Re.SPENDING_WIDGET,
|
16419
16419
|
imageLargeBreakPoint: 8,
|
16420
16420
|
sx: { pt: 48 }
|
16421
16421
|
}
|
@@ -16520,7 +16520,7 @@ const M1 = ({
|
|
16520
16520
|
}
|
16521
16521
|
)
|
16522
16522
|
] }),
|
16523
|
-
image:
|
16523
|
+
image: Re.TRANSACTIONS_OVERVIEW,
|
16524
16524
|
imageLargeBreakPoint: 8,
|
16525
16525
|
sx: { pt: 24 }
|
16526
16526
|
}
|
@@ -16574,7 +16574,7 @@ const M1 = ({
|
|
16574
16574
|
}
|
16575
16575
|
)
|
16576
16576
|
] }),
|
16577
|
-
image:
|
16577
|
+
image: Re.TRANSACTIONS_EDIT
|
16578
16578
|
}
|
16579
16579
|
),
|
16580
16580
|
/* @__PURE__ */ t(
|
@@ -16616,7 +16616,7 @@ const M1 = ({
|
|
16616
16616
|
}
|
16617
16617
|
)
|
16618
16618
|
] }),
|
16619
|
-
image:
|
16619
|
+
image: Re.TRANSACTIONS_CATEGORIZE,
|
16620
16620
|
imageLargeBreakPoint: 10
|
16621
16621
|
}
|
16622
16622
|
),
|
@@ -16702,7 +16702,7 @@ const M1 = ({
|
|
16702
16702
|
}
|
16703
16703
|
)
|
16704
16704
|
] }),
|
16705
|
-
image:
|
16705
|
+
image: Re.TRANSACTIONS_RULES,
|
16706
16706
|
imageLargeBreakPoint: 10
|
16707
16707
|
}
|
16708
16708
|
),
|
@@ -16862,7 +16862,7 @@ const M1 = ({
|
|
16862
16862
|
)
|
16863
16863
|
] }),
|
16864
16864
|
hasDivider: !1,
|
16865
|
-
image:
|
16865
|
+
image: Re.TRANSACTIONS_EXPORT,
|
16866
16866
|
imageLargeBreakPoint: 10,
|
16867
16867
|
sx: { pt: 24 }
|
16868
16868
|
}
|
@@ -16894,7 +16894,7 @@ const M1 = ({
|
|
16894
16894
|
}
|
16895
16895
|
)
|
16896
16896
|
] }),
|
16897
|
-
image:
|
16897
|
+
image: Re.TRENDS_WIDGET,
|
16898
16898
|
imageLargeBreakPoint: 10,
|
16899
16899
|
sx: { pt: 24 }
|
16900
16900
|
}
|
@@ -16998,7 +16998,7 @@ const M1 = ({
|
|
16998
16998
|
),
|
16999
16999
|
/* @__PURE__ */ t(F, { content: i.dashboard_insights_content_2, sx: { pt: 12 } })
|
17000
17000
|
] }),
|
17001
|
-
image:
|
17001
|
+
image: Re.INSIGHTS_CAROUSEL
|
17002
17002
|
}
|
17003
17003
|
),
|
17004
17004
|
/* @__PURE__ */ t(pe, { content: i.full_feed_section_title, sx: { mt: 48 } }),
|
@@ -17038,7 +17038,7 @@ const M1 = ({
|
|
17038
17038
|
}
|
17039
17039
|
)
|
17040
17040
|
] }),
|
17041
|
-
image:
|
17041
|
+
image: Re.INSIGHTS_FEED,
|
17042
17042
|
imageLargeBreakPoint: 3
|
17043
17043
|
}
|
17044
17044
|
),
|
@@ -17601,7 +17601,7 @@ const M1 = ({
|
|
17601
17601
|
onClose: a,
|
17602
17602
|
topic: o
|
17603
17603
|
}) => {
|
17604
|
-
const { institutions: r, accounts: s } =
|
17604
|
+
const { institutions: r, accounts: s } = we(), c = g.useMemo(
|
17605
17605
|
() => rC(r, s, {
|
17606
17606
|
singular: e.request_support_institution_account,
|
17607
17607
|
plural: e.request_support_institution_accounts
|
@@ -18812,7 +18812,7 @@ const yC = ({
|
|
18812
18812
|
] });
|
18813
18813
|
}), OC = I(
|
18814
18814
|
({ onProfileUpdated: e, profile: n }) => {
|
18815
|
-
const { common: i, settings: a } = x(), { updateAccount: o } =
|
18815
|
+
const { common: i, settings: a } = x(), { updateAccount: o } = we(), r = n.notification_type === Ke.DebtPaymentReminder, [s, c] = g.useState(!1), [d, _] = g.useState(n.threshold || 0), [u, h] = g.useState(
|
18816
18816
|
n.account?.day_payment_is_due || 0
|
18817
18817
|
), m = n.account?.name || n.account?.feed_name || "", C = n.account?.day_payment_is_due ? T(
|
18818
18818
|
a.notification_debt_payment_date,
|
@@ -19273,25 +19273,25 @@ const MC = (e) => {
|
|
19273
19273
|
transaction: void 0
|
19274
19274
|
}, r = Ve(_e()), s = Gt(_e(), 30);
|
19275
19275
|
switch (e.recurrence_type) {
|
19276
|
-
case
|
19276
|
+
case De.EveryWeek:
|
19277
19277
|
n.push(...GC(o, r, s));
|
19278
19278
|
break;
|
19279
|
-
case
|
19279
|
+
case De.EveryOtherWeek:
|
19280
19280
|
n.push(...BC(o, r, s));
|
19281
19281
|
break;
|
19282
|
-
case
|
19282
|
+
case De.EveryMonth:
|
19283
19283
|
n.push(...PC(o));
|
19284
19284
|
break;
|
19285
|
-
case
|
19285
|
+
case De.EveryOtherMonth:
|
19286
19286
|
n.push(...HC(o, r, s));
|
19287
19287
|
break;
|
19288
|
-
case
|
19288
|
+
case De.EveryQuarter:
|
19289
19289
|
n.push(...$C(o, r, s));
|
19290
19290
|
break;
|
19291
|
-
case
|
19291
|
+
case De.EveryOtherQuarter:
|
19292
19292
|
n.push(...FC(o, r, s));
|
19293
19293
|
break;
|
19294
|
-
case
|
19294
|
+
case De.EveryYear:
|
19295
19295
|
n.push(...WC(o, r, s));
|
19296
19296
|
break;
|
19297
19297
|
}
|
@@ -19299,22 +19299,22 @@ const MC = (e) => {
|
|
19299
19299
|
const d = e.transactions.find(
|
19300
19300
|
(_) => _.repeating_transaction_guid === e.guid && _.date > Me(ut(c.expectedDate, 5)) && _.date < Me(Gt(c.expectedDate, 5))
|
19301
19301
|
);
|
19302
|
-
d ? (c.transaction = d, c.status = rt.Paid, c.occurredOnDate = Be(d.date)) :
|
19302
|
+
d ? (c.transaction = d, c.status = rt.Paid, c.occurredOnDate = Be(d.date)) : Ne(c.expectedDate, ut(_e(), 3)) && (c.status = rt.Missed);
|
19303
19303
|
}
|
19304
19304
|
return n;
|
19305
19305
|
}, GC = (e, n, i) => {
|
19306
19306
|
const a = [];
|
19307
19307
|
let o = vi(n, e.recurrenceDay);
|
19308
|
-
for (;
|
19308
|
+
for (; Ne(o, i); )
|
19309
19309
|
a.push({ ...e, expectedDate: o }), o = vi(o, e.recurrenceDay);
|
19310
19310
|
return a;
|
19311
19311
|
}, BC = (e, n, i) => {
|
19312
19312
|
const a = [], o = e.expectedDate;
|
19313
|
-
if (
|
19313
|
+
if (Ne(o, i)) {
|
19314
19314
|
let r = ut(o, 14);
|
19315
19315
|
for (; Jt(r, n) || ht(r, n); )
|
19316
19316
|
a.push({ ...e, expectedDate: r }), r = ut(r, 14);
|
19317
|
-
for (r = o; Jt(r, n) &&
|
19317
|
+
for (r = o; Jt(r, n) && Ne(r, i); )
|
19318
19318
|
a.push({ ...e, expectedDate: r }), r = Gt(r, 14);
|
19319
19319
|
}
|
19320
19320
|
return a;
|
@@ -19323,26 +19323,26 @@ const MC = (e) => {
|
|
19323
19323
|
return n.push({ ...e, expectedDate: i }), n.push({ ...e, expectedDate: pt(i, 1) }), n;
|
19324
19324
|
}, HC = (e, n, i) => {
|
19325
19325
|
const a = [], o = e.expectedDate;
|
19326
|
-
let r =
|
19327
|
-
for (;
|
19326
|
+
let r = Ne(o, i) ? o : qt(o, 2);
|
19327
|
+
for (; Ne(r, i); )
|
19328
19328
|
Jt(r, n) && a.push({ ...e, expectedDate: r }), r = pt(r, 2);
|
19329
19329
|
return a;
|
19330
19330
|
}, $C = (e, n, i) => {
|
19331
19331
|
const a = [], o = e.expectedDate;
|
19332
|
-
let r =
|
19333
|
-
for (;
|
19332
|
+
let r = Ne(o, i) ? o : Os(o, 1);
|
19333
|
+
for (; Ne(r, i); )
|
19334
19334
|
Jt(r, n) && a.push({ ...e, expectedDate: r }), r = An(r, 1);
|
19335
19335
|
return a;
|
19336
19336
|
}, FC = (e, n, i) => {
|
19337
19337
|
const a = [], o = e.expectedDate;
|
19338
|
-
let r =
|
19339
|
-
for (;
|
19338
|
+
let r = Ne(o, i) ? o : Os(o, 2);
|
19339
|
+
for (; Ne(r, i); )
|
19340
19340
|
Jt(r, n) && a.push({ ...e, expectedDate: r }), r = An(r, 2);
|
19341
19341
|
return a;
|
19342
19342
|
}, WC = (e, n, i) => {
|
19343
19343
|
const a = [], o = e.expectedDate;
|
19344
|
-
let r =
|
19345
|
-
for (;
|
19344
|
+
let r = Ne(o, i) ? o : io(o, 1);
|
19345
|
+
for (; Ne(r, i); )
|
19346
19346
|
Jt(r, n) && a.push({ ...e, expectedDate: r }), r = ii(r, 1);
|
19347
19347
|
return a;
|
19348
19348
|
}, UC = (e) => {
|
@@ -19379,22 +19379,22 @@ const MC = (e) => {
|
|
19379
19379
|
}, []), go = (e, n, i) => {
|
19380
19380
|
let a = n && Co(n) ? T(e.monthly_ordinal, Ln(n, Mn)) : e.monthly;
|
19381
19381
|
switch (i) {
|
19382
|
-
case
|
19382
|
+
case De.EveryQuarter:
|
19383
19383
|
a = n ? T(e.quarterly_ordinal, Ln(n, Mn)) : e.quarterly;
|
19384
19384
|
break;
|
19385
|
-
case
|
19385
|
+
case De.EveryWeek:
|
19386
19386
|
a = n ? T(e.weekly_ordinal, Ln(n, Mn)) : e.weekly;
|
19387
19387
|
break;
|
19388
|
-
case
|
19388
|
+
case De.EveryYear:
|
19389
19389
|
a = n ? T(e.anually_ordinal, Ln(n, Mn)) : e.anually;
|
19390
19390
|
break;
|
19391
|
-
case
|
19391
|
+
case De.EveryOtherWeek:
|
19392
19392
|
a = n ? T(e.every_other_week_ordinal, Ln(n, Mn)) : e.every_other_week;
|
19393
19393
|
break;
|
19394
|
-
case
|
19394
|
+
case De.EveryOtherMonth:
|
19395
19395
|
a = n ? T(e.every_other_month_ordinal, Ln(n, Mn)) : e.every_other_month;
|
19396
19396
|
break;
|
19397
|
-
case
|
19397
|
+
case De.EveryOtherQuarter:
|
19398
19398
|
a = n ? T(e.every_other_quarter_ordinal, Ln(n, Mn)) : e.every_other_quarter;
|
19399
19399
|
break;
|
19400
19400
|
}
|
@@ -19763,12 +19763,12 @@ const Za = ({
|
|
19763
19763
|
] }) }),
|
19764
19764
|
/* @__PURE__ */ t(k, { sx: { ml: n ? 0 : 24 } })
|
19765
19765
|
] }), qC = () => {
|
19766
|
-
const { accounts: e } =
|
19766
|
+
const { accounts: e } = we(), { selectedAccount: n, selectedMember: i } = Wt();
|
19767
19767
|
return e.filter(
|
19768
19768
|
(a) => a.member_guid === i.guid && i.successfully_aggregated_at && a.guid !== n.guid
|
19769
19769
|
);
|
19770
19770
|
}, ZC = () => {
|
19771
|
-
const [e, n] = g.useState(!1), [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState({}), { selectedAccount: d } = Wt(), { mergeAccounts: _, updateAccount: u } =
|
19771
|
+
const [e, n] = g.useState(!1), [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState({}), { selectedAccount: d } = Wt(), { mergeAccounts: _, updateAccount: u } = we(), { accounts: h } = x(), m = qC(), { onEvent: C } = V(), { modifyTransactionByAccountGuid: f } = Te(), E = async (S) => {
|
19772
19772
|
await u({
|
19773
19773
|
...d,
|
19774
19774
|
...S
|
@@ -20112,7 +20112,7 @@ const Za = ({
|
|
20112
20112
|
)
|
20113
20113
|
] });
|
20114
20114
|
}, ef = I(JC), tf = ({ field: e, isOpen: n, onClose: i }) => {
|
20115
|
-
const { updateAccount: a } =
|
20115
|
+
const { updateAccount: a } = we(), { selectedAccount: o } = Wt(), { accounts: r } = x(), [s, c] = g.useState(o[e.name]), [d, _] = g.useState(""), [u, h] = g.useState(!0), m = () => {
|
20116
20116
|
c(""), _(""), i();
|
20117
20117
|
}, C = () => {
|
20118
20118
|
switch (e.type) {
|
@@ -20371,7 +20371,7 @@ const Za = ({
|
|
20371
20371
|
/* @__PURE__ */ t(ci, { index: 1, name: "account-details", value: e, children: /* @__PURE__ */ t(sf, {}) })
|
20372
20372
|
] });
|
20373
20373
|
}, Jc = I(_f), hf = () => {
|
20374
|
-
const [e, n] = g.useState(""), { accounts: i } = x(), { selectedAccounts: a } = ue(), { setSelectedAccount: o, setSelectedMember: r } = Wt(), { members: s } =
|
20374
|
+
const [e, n] = g.useState(""), { accounts: i } = x(), { selectedAccounts: a } = ue(), { setSelectedAccount: o, setSelectedMember: r } = Wt(), { members: s } = we(), { onEvent: c } = V(), d = [...new Set(a.map((y) => y.account_type))], _ = a.find((y) => e === y.guid), u = g.useMemo(
|
20375
20375
|
() => a.filter((y) => y.is_hidden),
|
20376
20376
|
[a]
|
20377
20377
|
), h = g.useMemo(
|
@@ -20514,7 +20514,7 @@ const Za = ({
|
|
20514
20514
|
)
|
20515
20515
|
] });
|
20516
20516
|
}, gf = I(hf), mf = ({ onBackClick: e, sx: n = {} }) => {
|
20517
|
-
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), { config: s } = Ui(), { accounts: c, refreshMembers: d } =
|
20517
|
+
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), { config: s } = Ui(), { accounts: c, refreshMembers: d } = we(), { accounts: _ } = x(), { isCopyLoaded: u, isInitialized: h, setSelectedAccounts: m, selectedAccountGuids: C } = ue(), { isDesktop: f } = be(), { onEvent: E } = V();
|
20518
20518
|
g.useEffect(() => {
|
20519
20519
|
m(c);
|
20520
20520
|
}, [c]);
|
@@ -20562,7 +20562,7 @@ const Za = ({
|
|
20562
20562
|
}
|
20563
20563
|
) : /* @__PURE__ */ t(ge, {});
|
20564
20564
|
}, g4 = I(mf), pf = ({ onPrimaryCtaClick: e, sx: n }) => {
|
20565
|
-
const { visibleAccounts: i } =
|
20565
|
+
const { visibleAccounts: i } = we(), { accounts: a } = x(), { isCopyLoaded: o, isInitialized: r, selectedAccounts: s, setSelectedAccounts: c } = ue();
|
20566
20566
|
return g.useEffect(() => {
|
20567
20567
|
c(i);
|
20568
20568
|
}, [i]), o ? /* @__PURE__ */ t(
|
@@ -21736,7 +21736,7 @@ const Hf = ({
|
|
21736
21736
|
] });
|
21737
21737
|
}
|
21738
21738
|
), Wf = (e) => {
|
21739
|
-
const n = me(), { accounts: i } =
|
21739
|
+
const n = me(), { accounts: i } = we(), { budgets: a, isDataLoaded: o, loadBudgetData: r, setTheme: s } = _t(), { budgets: c } = x(), { isCopyLoaded: d, isInitialized: _ } = ue(), { reloadCategoryTotals: u } = Ye(), h = u_(), m = a.length === 0;
|
21740
21740
|
return g.useEffect(() => {
|
21741
21741
|
s(n);
|
21742
21742
|
}, [n]), g.useEffect(() => {
|
@@ -22260,7 +22260,7 @@ const Hf = ({
|
|
22260
22260
|
] }, r.guid)) }) })
|
22261
22261
|
] });
|
22262
22262
|
}), n0 = I(() => {
|
22263
|
-
const e = me(), { onEvent: n } = V(), { visibleAccounts: i } =
|
22263
|
+
const e = me(), { onEvent: n } = V(), { visibleAccounts: i } = we(), { budgets: a, common: o, recurring: r } = x(), { incomeCategories: s, spendCategories: c } = Ye(), { detailedBudgets: d, totalBudgeted: _ } = _t(), { projectedIncome: u } = at(), { setFilter: h } = Te(), [m, C] = g.useState(!1), [f, E] = g.useMemo(() => {
|
22264
22264
|
const w = c.reduce((H, O) => H + O.totalAmount, 0);
|
22265
22265
|
let A = w / _;
|
22266
22266
|
A > 1 && (A = 1);
|
@@ -22343,7 +22343,7 @@ const Hf = ({
|
|
22343
22343
|
)
|
22344
22344
|
] });
|
22345
22345
|
}), _s = 480, b4 = I(({ onBackClick: e, sx: n }) => {
|
22346
|
-
const i = me(), { onEvent: a } = V(), { visibleAccounts: o } =
|
22346
|
+
const i = me(), { onEvent: a } = V(), { visibleAccounts: o } = we(), { budgets: r, common: s } = x(), { isCopyLoaded: c, isInitialized: d, selectedAccounts: _, setDisplayedDate: u, setSelectedAccounts: h } = ue(), {
|
22347
22347
|
alert: m,
|
22348
22348
|
dateRange: C,
|
22349
22349
|
isDataLoaded: f,
|
@@ -22539,7 +22539,7 @@ const Hf = ({
|
|
22539
22539
|
)
|
22540
22540
|
] });
|
22541
22541
|
}, o0 = I(a0), r0 = () => {
|
22542
|
-
const { visibleAccounts: e } =
|
22542
|
+
const { visibleAccounts: e } = we(), { selectedAccountGuids: n, setSelectedAccountGuids: i } = ue(), { common: a } = x(), { config: o } = Ui(), { isMobile: r } = be(), s = {
|
22543
22543
|
accountFilterOptionsCopy: {
|
22544
22544
|
accountTypeAccounts: a.account_filter.account_type_accounts,
|
22545
22545
|
cancelButton: a.cancel_button,
|
@@ -22585,7 +22585,7 @@ const Hf = ({
|
|
22585
22585
|
}, s0 = I(r0);
|
22586
22586
|
var ea = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e[e.Disabled = 2] = "Disabled", e))(ea || {});
|
22587
22587
|
const c0 = ({ widgets: e, isLoading: n }) => {
|
22588
|
-
const { isDesktop: i, isMobile: a } = be(), { copyStore: o } = va(), { setSelectedAccounts: r } = ue(), { visibleAccounts: s } =
|
22588
|
+
const { isDesktop: i, isMobile: a } = be(), { copyStore: o } = va(), { setSelectedAccounts: r } = ue(), { visibleAccounts: s } = we();
|
22589
22589
|
g.useEffect(() => {
|
22590
22590
|
r(s);
|
22591
22591
|
}, [s]);
|
@@ -22919,7 +22919,7 @@ const c0 = ({ widgets: e, isLoading: n }) => {
|
|
22919
22919
|
}, p0 = () => {
|
22920
22920
|
const [e, n] = g.useState(0), [i, a] = g.useState(""), [o, r] = g.useState(""), s = (f) => {
|
22921
22921
|
i !== f ? a(f) : (a(""), r(""));
|
22922
|
-
}, { selectedAccountGuids: c } = ue(), { visibleHoldings: d } = Di(), { visibleInvestmentAccounts: _ } =
|
22922
|
+
}, { selectedAccountGuids: c } = ue(), { visibleHoldings: d } = Di(), { visibleInvestmentAccounts: _ } = we(), {
|
22923
22923
|
investments: { allocation: u }
|
22924
22924
|
} = x(), h = h0(
|
22925
22925
|
_.filter(({ guid: f }) => c.includes(f)),
|
@@ -23446,7 +23446,7 @@ const c0 = ({ widgets: e, isLoading: n }) => {
|
|
23446
23446
|
const { isCopyLoaded: Q } = ue(), [Le, Ge] = St(null), [We, Ze] = St("");
|
23447
23447
|
if (!Q || !_)
|
23448
23448
|
return /* @__PURE__ */ t(ge, {});
|
23449
|
-
const
|
23449
|
+
const Ae = (ce, Xe) => {
|
23450
23450
|
Ge(ce), Ze(Xe.toFixed(2));
|
23451
23451
|
}, ke = (ce) => {
|
23452
23452
|
const Xe = ce.target.value;
|
@@ -23518,7 +23518,7 @@ const c0 = ({ widgets: e, isLoading: n }) => {
|
|
23518
23518
|
/* @__PURE__ */ t(
|
23519
23519
|
Ue,
|
23520
23520
|
{
|
23521
|
-
onClick: () =>
|
23521
|
+
onClick: () => Ae(ce.row.id, ce.row.costBasis),
|
23522
23522
|
sx: { minWidth: 12, minHeight: 12 },
|
23523
23523
|
children: /* @__PURE__ */ t(mt, { name: "stylus", size: 12, sx: { color: "#49505A" } })
|
23524
23524
|
}
|
@@ -23615,7 +23615,7 @@ const c0 = ({ widgets: e, isLoading: n }) => {
|
|
23615
23615
|
...Ge,
|
23616
23616
|
[Z]: Le
|
23617
23617
|
}));
|
23618
|
-
}, { visibleHoldings: O } = Di(), { visibleInvestmentAccounts: M } =
|
23618
|
+
}, { visibleHoldings: O } = Di(), { visibleInvestmentAccounts: M } = we(), j = M.filter(
|
23619
23619
|
({ guid: Z }) => s.includes(Z)
|
23620
23620
|
), W = j.reduce((Z, Q) => Z + (Q.balance || 0), 0), q = j.map(({ guid: Z }) => Z), J = O.filter(
|
23621
23621
|
({ account_guid: Z }) => q.includes(Z)
|
@@ -23840,8 +23840,8 @@ const c0 = ({ widgets: e, isLoading: n }) => {
|
|
23840
23840
|
},
|
23841
23841
|
Z.guid
|
23842
23842
|
);
|
23843
|
-
|
23844
|
-
return /* @__PURE__ */ l(
|
23843
|
+
let Ae;
|
23844
|
+
return Q.length ? Ae = S ? "#FFFFFF" : "#121417" : Ae = S ? "#49505A" : "#CDD3DD", /* @__PURE__ */ l(
|
23845
23845
|
Bi,
|
23846
23846
|
{
|
23847
23847
|
expanded: i[Z.guid] === !0,
|
@@ -23877,7 +23877,7 @@ const c0 = ({ widgets: e, isLoading: n }) => {
|
|
23877
23877
|
width: "100%"
|
23878
23878
|
},
|
23879
23879
|
children: [
|
23880
|
-
/* @__PURE__ */ t(mt, { name: "expand_more", size: 20, sx: { color:
|
23880
|
+
/* @__PURE__ */ t(mt, { name: "expand_more", size: 20, sx: { color: Ae } }),
|
23881
23881
|
/* @__PURE__ */ t(
|
23882
23882
|
ft,
|
23883
23883
|
{
|
@@ -23993,7 +23993,7 @@ const c0 = ({ widgets: e, isLoading: n }) => {
|
|
23993
23993
|
)
|
23994
23994
|
] });
|
23995
23995
|
}, I0 = I(A0), Ja = ({ title: e }) => /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e }), E4 = I(({ onBackClick: e, sx: n }) => {
|
23996
|
-
const { onEvent: i } = V(), { isMobile: a } = be(), { visibleInvestmentAccounts: o } =
|
23996
|
+
const { onEvent: i } = V(), { isMobile: a } = be(), { visibleInvestmentAccounts: o } = we(), { investments: r } = x(), { isCopyLoaded: s, isInitialized: c, setSelectedAccounts: d } = ue(), [_, u] = g.useState(0), { loadHoldings: h } = Di();
|
23997
23997
|
g.useEffect(() => {
|
23998
23998
|
d(o);
|
23999
23999
|
}, [o]), g.useEffect(() => {
|
@@ -25521,11 +25521,11 @@ const zi = g.createContext(null), O0 = ({
|
|
25521
25521
|
w.card_position_in_carousel_aria,
|
25522
25522
|
Z.toString(),
|
25523
25523
|
Q.toString()
|
25524
|
-
), Ge = J.micro_title && J.micro_title.length > 0, We = J.micro_description && J.micro_description.length > 0, Ze = Ge ? J.micro_title : J.title,
|
25524
|
+
), Ge = J.micro_title && J.micro_title.length > 0, We = J.micro_description && J.micro_description.length > 0, Ze = Ge ? J.micro_title : J.title, Ae = We ? J.micro_description : J.description;
|
25525
25525
|
return /* @__PURE__ */ t(
|
25526
25526
|
U0,
|
25527
25527
|
{
|
25528
|
-
ariaLabel: `${Le}: ${Ze}, ${
|
25528
|
+
ariaLabel: `${Le}: ${Ze}, ${Ae}`,
|
25529
25529
|
beat: J,
|
25530
25530
|
index: Ee,
|
25531
25531
|
isActiveCard: Ee === q,
|
@@ -25910,13 +25910,13 @@ const zi = g.createContext(null), O0 = ({
|
|
25910
25910
|
);
|
25911
25911
|
}, tb = I(eb), nb = I(({ repeatingTransaction: e }) => {
|
25912
25912
|
const { recurring: n } = x(), { updateRepeatingTransaction: i } = $t(), { onEvent: a } = V(), [o, r] = g.useState(!1), s = e.repeating_transaction_type === dn.Income, c = [
|
25913
|
-
{ id:
|
25914
|
-
{ id:
|
25915
|
-
{ id:
|
25916
|
-
{ id:
|
25917
|
-
{ id:
|
25918
|
-
{ id:
|
25919
|
-
{ id:
|
25913
|
+
{ id: De.EveryWeek, label: n.frequency_every_week },
|
25914
|
+
{ id: De.EveryOtherWeek, label: n.frequency_every_other_week },
|
25915
|
+
{ id: De.EveryMonth, label: n.frequency_every_month },
|
25916
|
+
{ id: De.EveryOtherMonth, label: n.frequency_every_other_month },
|
25917
|
+
{ id: De.EveryQuarter, label: n.frequency_every_quarter },
|
25918
|
+
{ id: De.EveryOtherQuarter, label: n.frequency_every_other_quarter },
|
25919
|
+
{ id: De.EveryYear, label: n.frequency_every_year }
|
25920
25920
|
], d = async (h) => {
|
25921
25921
|
await i({
|
25922
25922
|
...e,
|
@@ -26240,40 +26240,40 @@ const zi = g.createContext(null), O0 = ({
|
|
26240
26240
|
transaction: s
|
26241
26241
|
}) => {
|
26242
26242
|
const { recurring: c } = x(), d = [
|
26243
|
-
{ id:
|
26244
|
-
{ id:
|
26245
|
-
{ id:
|
26246
|
-
{ id:
|
26247
|
-
{ id:
|
26248
|
-
{ id:
|
26249
|
-
{ id:
|
26243
|
+
{ id: De.EveryWeek, label: c.frequency_every_week },
|
26244
|
+
{ id: De.EveryOtherWeek, label: c.frequency_every_other_week },
|
26245
|
+
{ id: De.EveryMonth, label: c.frequency_every_month },
|
26246
|
+
{ id: De.EveryOtherMonth, label: c.frequency_every_other_month },
|
26247
|
+
{ id: De.EveryQuarter, label: c.frequency_every_quarter },
|
26248
|
+
{ id: De.EveryOtherQuarter, label: c.frequency_every_other_quarter },
|
26249
|
+
{ id: De.EveryYear, label: c.frequency_every_year }
|
26250
26250
|
];
|
26251
26251
|
g.useEffect(() => {
|
26252
26252
|
const u = Be(s.date);
|
26253
|
-
r(ca(u)), o(
|
26253
|
+
r(ca(u)), o(De.EveryMonth);
|
26254
26254
|
}, [s]);
|
26255
26255
|
const _ = (u) => {
|
26256
26256
|
const h = Be(s.date);
|
26257
26257
|
switch (Number(u.target.value)) {
|
26258
|
-
case
|
26258
|
+
case De.EveryWeek:
|
26259
26259
|
r(Ia(h));
|
26260
26260
|
break;
|
26261
|
-
case
|
26261
|
+
case De.EveryOtherWeek:
|
26262
26262
|
r(Ks(h));
|
26263
26263
|
break;
|
26264
|
-
case
|
26264
|
+
case De.EveryMonth:
|
26265
26265
|
r(ca(h));
|
26266
26266
|
break;
|
26267
|
-
case
|
26267
|
+
case De.EveryOtherMonth:
|
26268
26268
|
r(zs(h));
|
26269
26269
|
break;
|
26270
|
-
case
|
26270
|
+
case De.EveryQuarter:
|
26271
26271
|
r(Ao(h));
|
26272
26272
|
break;
|
26273
|
-
case
|
26273
|
+
case De.EveryOtherQuarter:
|
26274
26274
|
r(Ys(h));
|
26275
26275
|
break;
|
26276
|
-
case
|
26276
|
+
case De.EveryYear:
|
26277
26277
|
r(js(h));
|
26278
26278
|
break;
|
26279
26279
|
}
|
@@ -26320,7 +26320,7 @@ const zi = g.createContext(null), O0 = ({
|
|
26320
26320
|
label: n,
|
26321
26321
|
onAddRecurringTransaction: i = () => null
|
26322
26322
|
}) => {
|
26323
|
-
const { recurring: a } = x(), { filter: o, setFilter: r, transactions: s } = Te(), { addRepeatingTransaction: c } = $t(), [d, _] = g.useState(!1), [u, h] = g.useState(""), [m, C] = g.useState(
|
26323
|
+
const { recurring: a } = x(), { filter: o, setFilter: r, transactions: s } = Te(), { addRepeatingTransaction: c } = $t(), [d, _] = g.useState(!1), [u, h] = g.useState(""), [m, C] = g.useState(De.EveryMonth), [f, E] = g.useState(null), y = g.useMemo(
|
26324
26324
|
() => s.find((A) => A.guid === u),
|
26325
26325
|
[u]
|
26326
26326
|
), S = () => {
|
@@ -26342,7 +26342,7 @@ const zi = g.createContext(null), O0 = ({
|
|
26342
26342
|
repeating_transaction_type: e ? dn.Income : dn.Bill,
|
26343
26343
|
transaction_type: y.transaction_type
|
26344
26344
|
};
|
26345
|
-
(m ===
|
26345
|
+
(m === De.EveryWeek || m === De.EveryOtherWeek) && (A.recurrence_day = ai(f)), await c(A, y), w();
|
26346
26346
|
}, w = () => {
|
26347
26347
|
h(""), _(!1);
|
26348
26348
|
};
|
@@ -26908,7 +26908,7 @@ const zi = g.createContext(null), O0 = ({
|
|
26908
26908
|
] }) })
|
26909
26909
|
] });
|
26910
26910
|
}), I4 = I(({ onBackClick: e, sx: n = {} }) => {
|
26911
|
-
const { accounts: i } =
|
26911
|
+
const { accounts: i } = we(), { recurring: a } = x(), { isCopyLoaded: o, isInitialized: r, selectedAccountGuids: s, setSelectedAccounts: c } = ue(), { isDataLoaded: d, loadRepeatingTransactions: _ } = $t(), { setFilter: u } = Te(), { onEvent: h } = V(), [m, C] = g.useState(!1);
|
26912
26912
|
return g.useEffect(() => {
|
26913
26913
|
c(i);
|
26914
26914
|
}, [i]), g.useEffect(() => {
|
@@ -26974,7 +26974,7 @@ const zi = g.createContext(null), O0 = ({
|
|
26974
26974
|
] });
|
26975
26975
|
}), x4 = I(
|
26976
26976
|
({ onPrimaryCtaClick: e, sx: n }) => {
|
26977
|
-
const { accounts: i } =
|
26977
|
+
const { accounts: i } = we(), { recurring: a } = x(), { setFilter: o } = Te(), { isDataLoaded: r, loadRepeatingTransactions: s } = $t(), { isCopyLoaded: c, isInitialized: d, setSelectedAccounts: _, selectedAccountGuids: u } = ue();
|
26978
26978
|
return g.useEffect(() => {
|
26979
26979
|
d && _(i);
|
26980
26980
|
}, [d]), g.useEffect(() => {
|
@@ -27512,7 +27512,7 @@ const zi = g.createContext(null), O0 = ({
|
|
27512
27512
|
)
|
27513
27513
|
] });
|
27514
27514
|
}, Ib = I(Ab), xb = ({ onBackClick: e, sx: n = {} }) => {
|
27515
|
-
const { visibleAccounts: i } =
|
27515
|
+
const { visibleAccounts: i } = we(), { spending: a } = x(), { isCopyLoaded: o, isInitialized: r, setDisplayedDate: s, setSelectedAccounts: c } = ue(), { onEvent: d } = V(), [_, u] = g.useState(!1);
|
27516
27516
|
g.useEffect(() => {
|
27517
27517
|
c(i);
|
27518
27518
|
}, [i]), g.useEffect(() => {
|
@@ -27706,7 +27706,7 @@ const Db = (e) => e.reduce((i, a) => {
|
|
27706
27706
|
}, $b = I(Hb), Fb = {
|
27707
27707
|
view_transactions: "View Transactions"
|
27708
27708
|
}, Wb = ({ onBackClick: e, sx: n }) => {
|
27709
|
-
const i = it(), { onEvent: a } = V(), { isDesktop: o, isTablet: r, isMobile: s } = be(), { visibleAccounts: c } =
|
27709
|
+
const i = it(), { onEvent: a } = V(), { isDesktop: o, isTablet: r, isMobile: s } = be(), { visibleAccounts: c } = we(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: _, getCategoryName: u } = Ye(), { sortedTransactions: h } = Te(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } = ue(), { trends: y } = x(), S = i.palette.mode === "dark", [v, w] = g.useState(!1), [A, R] = g.useState(!1), [D, H] = g.useState("Chart"), [O, M] = g.useState(""), [j, W] = g.useState({
|
27710
27710
|
start: dr(qe(qt(/* @__PURE__ */ new Date(), 6)), 1),
|
27711
27711
|
end: qe(/* @__PURE__ */ new Date())
|
27712
27712
|
});
|
@@ -27723,45 +27723,45 @@ const Db = (e) => e.reduce((i, a) => {
|
|
27723
27723
|
}, [C, f, j]);
|
27724
27724
|
const q = g.useMemo(() => {
|
27725
27725
|
if (!v) return { stackedDatasets: [], unstackedDatasets: [] };
|
27726
|
-
const
|
27726
|
+
const Ae = Rb(
|
27727
27727
|
_,
|
27728
27728
|
j.start,
|
27729
27729
|
j.end
|
27730
|
-
), ke = O.length ?
|
27730
|
+
), ke = O.length ? Ae.filter(
|
27731
27731
|
(vt) => vt.top_level_category_guid === O || vt.category_guid === O
|
27732
|
-
) : Cm(
|
27732
|
+
) : Cm(Ae);
|
27733
27733
|
return {
|
27734
27734
|
stackedDatasets: ke.filter(mm),
|
27735
27735
|
unstackedDatasets: ke.filter(Ma)
|
27736
27736
|
};
|
27737
27737
|
}, [_, O, j]), ye = g.useMemo(() => {
|
27738
|
-
const
|
27738
|
+
const Ae = re(
|
27739
27739
|
j.start,
|
27740
27740
|
s ? ae.MONTH_SHORT_YEAR : ae.MONTH_YEAR
|
27741
27741
|
), ke = re(
|
27742
27742
|
j.end,
|
27743
27743
|
s ? ae.MONTH_SHORT_YEAR : ae.MONTH_YEAR
|
27744
27744
|
);
|
27745
|
-
return `${
|
27746
|
-
}, [j, s]), J = (
|
27745
|
+
return `${Ae} - ${ke}`;
|
27746
|
+
}, [j, s]), J = (Ae, ke) => {
|
27747
27747
|
H(ke ?? D), a($.TRENDS_CLICK_TOGGLE);
|
27748
|
-
}, Ee = (
|
27749
|
-
const ke = dr(
|
27748
|
+
}, Ee = (Ae) => {
|
27749
|
+
const ke = dr(Ae?.[0], 1), vt = Ae?.[1], de = eu(vt, ke);
|
27750
27750
|
W({ start: ke, end: vt }), a($.TRENDS_CLICK_DATE, {
|
27751
27751
|
time_period: de + "M"
|
27752
27752
|
});
|
27753
27753
|
}, Z = () => {
|
27754
27754
|
a($.TRENDS_CLICK_FILTER);
|
27755
|
-
}, Q = (
|
27756
|
-
M(
|
27757
|
-
}, Le = (
|
27758
|
-
M(
|
27759
|
-
}, Ge = (
|
27760
|
-
a($.TRENDS_HOVER_LEGEND, { category: u(
|
27761
|
-
}, We = (
|
27762
|
-
a($.TRENDS_HOVER_AREA, { category:
|
27763
|
-
}, Ze = (
|
27764
|
-
a($.TRENDS_HOVER_POINT, { category:
|
27755
|
+
}, Q = (Ae) => {
|
27756
|
+
M(Ae);
|
27757
|
+
}, Le = (Ae) => {
|
27758
|
+
M(Ae), a($.TRENDS_CLICK_LEGEND, { category: u(Ae) });
|
27759
|
+
}, Ge = (Ae) => {
|
27760
|
+
a($.TRENDS_HOVER_LEGEND, { category: u(Ae) });
|
27761
|
+
}, We = (Ae) => {
|
27762
|
+
a($.TRENDS_HOVER_AREA, { category: Ae });
|
27763
|
+
}, Ze = (Ae) => {
|
27764
|
+
a($.TRENDS_HOVER_POINT, { category: Ae });
|
27765
27765
|
};
|
27766
27766
|
return !m || !C || !v ? /* @__PURE__ */ t(ge, {}) : /* @__PURE__ */ l(
|
27767
27767
|
Mt,
|
@@ -27814,7 +27814,7 @@ const Db = (e) => e.reduce((i, a) => {
|
|
27814
27814
|
onChange: J,
|
27815
27815
|
orientation: "horizontal",
|
27816
27816
|
value: D,
|
27817
|
-
children: ["Chart", "Table"].map((
|
27817
|
+
children: ["Chart", "Table"].map((Ae) => /* @__PURE__ */ t(
|
27818
27818
|
li,
|
27819
27819
|
{
|
27820
27820
|
sx: {
|
@@ -27839,10 +27839,10 @@ const Db = (e) => e.reduce((i, a) => {
|
|
27839
27839
|
color: i.palette.grey[500]
|
27840
27840
|
}
|
27841
27841
|
},
|
27842
|
-
value:
|
27843
|
-
children:
|
27842
|
+
value: Ae,
|
27843
|
+
children: Ae === "Chart" ? /* @__PURE__ */ t(P, { name: "table_chart_view" }) : /* @__PURE__ */ t(P, { name: "format_list_bulleted" })
|
27844
27844
|
},
|
27845
|
-
|
27845
|
+
Ae
|
27846
27846
|
))
|
27847
27847
|
}
|
27848
27848
|
)
|
@@ -27999,7 +27999,7 @@ export {
|
|
27999
27999
|
w_ as ExpenseStatus,
|
28000
28000
|
st as Fetch,
|
28001
28001
|
wt as FieldType,
|
28002
|
-
|
28002
|
+
De as Frequency,
|
28003
28003
|
Ti as GlobalCopyApi,
|
28004
28004
|
r_ as GlobalCopyStore,
|
28005
28005
|
qn as GlobalDataContext,
|
@@ -28137,7 +28137,7 @@ export {
|
|
28137
28137
|
d4 as getNotificationDetailRoute,
|
28138
28138
|
W2 as isIncome,
|
28139
28139
|
oo as isValidNumber,
|
28140
|
-
|
28140
|
+
we as useAccountStore,
|
28141
28141
|
Wt as useAccountUiStore,
|
28142
28142
|
Ui as useAppConfig,
|
28143
28143
|
_t as useBudgetsStore,
|