@mx-cartographer/experiences 4.2.0-alpha.sms5 → 4.2.0-alpha.sms6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +57 -61
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -41,7 +41,7 @@ import { eachWeekOfInterval as $o } from "date-fns/eachWeekOfInterval";
|
|
|
41
41
|
import { endOfMonth as Re } from "date-fns/endOfMonth";
|
|
42
42
|
import { format as Ve } from "date-fns/format";
|
|
43
43
|
import { isSameMonth as es } from "date-fns/isSameMonth";
|
|
44
|
-
import { startOfMonth as
|
|
44
|
+
import { startOfMonth as xe } from "date-fns/startOfMonth";
|
|
45
45
|
import { subMonths as bA } from "date-fns/subMonths";
|
|
46
46
|
import gA from "@mui/material/Paper";
|
|
47
47
|
import As from "@mui/icons-material/KeyboardArrowLeftRounded";
|
|
@@ -80,7 +80,7 @@ import vA from "@mui/material/Avatar";
|
|
|
80
80
|
import be from "@mui/material/ListItemAvatar";
|
|
81
81
|
import nA from "@mui/material/ListItemIcon";
|
|
82
82
|
import { ChevronRight as wA, Payments as xs, NoteStack as Os, Person as _s, CheckCircle as Ns, Icon as Ya, ExpandLess as Ps, ExpandMore as Ms, AccountBalance as Rs, AddBox as di } from "@mxenabled/mx-icons";
|
|
83
|
-
import { makeAutoObservable as
|
|
83
|
+
import { makeAutoObservable as De, runInAction as Y, reaction as oa, autorun as Hs, observable as Bs } from "mobx";
|
|
84
84
|
import { differenceInDays as zs } from "date-fns/differenceInDays";
|
|
85
85
|
import Cn from "@mui/icons-material/ChevronRight";
|
|
86
86
|
import sa from "@mui/icons-material/ExpandMore";
|
|
@@ -1741,7 +1741,7 @@ const dl = ({
|
|
|
1741
1741
|
h(A), p(n), A && d(A);
|
|
1742
1742
|
}, [A, n]);
|
|
1743
1743
|
const f = g.useMemo(() => {
|
|
1744
|
-
const w = $o({ start:
|
|
1744
|
+
const w = $o({ start: xe(c), end: Re(c) }), D = [];
|
|
1745
1745
|
for (let _ = 0; _ < w.length; _++) {
|
|
1746
1746
|
const O = w[_], x = Zo({ start: O, end: OA(O, 6) }), z = [];
|
|
1747
1747
|
for (let K = 0; K < x.length; K++)
|
|
@@ -2655,7 +2655,7 @@ const dl = ({
|
|
|
2655
2655
|
calendarActions: e,
|
|
2656
2656
|
color: A = "primary",
|
|
2657
2657
|
copy: n,
|
|
2658
|
-
range: a = [
|
|
2658
|
+
range: a = [xe(ie()), Re(ot())],
|
|
2659
2659
|
shouldShrinkToIcon: r = !0,
|
|
2660
2660
|
toolTipContent: i = "",
|
|
2661
2661
|
variant: o = "outlined"
|
|
@@ -3677,7 +3677,7 @@ class Kl {
|
|
|
3677
3677
|
api = new cn("/", "");
|
|
3678
3678
|
isInitialized = !1;
|
|
3679
3679
|
constructor() {
|
|
3680
|
-
|
|
3680
|
+
De(this);
|
|
3681
3681
|
}
|
|
3682
3682
|
initialize = async (A, n) => {
|
|
3683
3683
|
this.api = new cn(A, n), await this.getCopy(this.featureNamespace), Y(() => {
|
|
@@ -3706,7 +3706,7 @@ class ql {
|
|
|
3706
3706
|
appData = {};
|
|
3707
3707
|
api = new Cr("/", "");
|
|
3708
3708
|
constructor() {
|
|
3709
|
-
|
|
3709
|
+
De(this);
|
|
3710
3710
|
}
|
|
3711
3711
|
initialize = async (A, n) => {
|
|
3712
3712
|
this.api = new Cr(A, n), await this.loadAppData();
|
|
@@ -3734,7 +3734,7 @@ class kl {
|
|
|
3734
3734
|
beats = [];
|
|
3735
3735
|
api = new Et("/", "");
|
|
3736
3736
|
constructor() {
|
|
3737
|
-
|
|
3737
|
+
De(this);
|
|
3738
3738
|
}
|
|
3739
3739
|
initialize = async (A, n) => {
|
|
3740
3740
|
this.api = new Et(A, n), await this.loadBeats();
|
|
@@ -3825,13 +3825,13 @@ class jl {
|
|
|
3825
3825
|
categoryApi = new sn("/", "");
|
|
3826
3826
|
globalStore;
|
|
3827
3827
|
alert = "";
|
|
3828
|
-
dateRange = { start:
|
|
3828
|
+
dateRange = { start: xe(ie()), end: Re(ie()) };
|
|
3829
3829
|
budgets = [];
|
|
3830
3830
|
selectedBudget;
|
|
3831
3831
|
selectedSubBudget;
|
|
3832
3832
|
theme = {};
|
|
3833
3833
|
constructor(A) {
|
|
3834
|
-
this.globalStore = A,
|
|
3834
|
+
this.globalStore = A, De(this);
|
|
3835
3835
|
}
|
|
3836
3836
|
initialize = async (A, n) => {
|
|
3837
3837
|
this.api = new fr(A, n), this.categoryApi = new sn(A, n), oa(
|
|
@@ -4537,7 +4537,7 @@ const Vl = [
|
|
|
4537
4537
|
}, td = (e, A, n) => {
|
|
4538
4538
|
const {
|
|
4539
4539
|
accounts: a = [],
|
|
4540
|
-
dateRange: r = { start:
|
|
4540
|
+
dateRange: r = { start: xe(ie()), end: ot() },
|
|
4541
4541
|
custom: i = () => !0,
|
|
4542
4542
|
searchTerm: o = ""
|
|
4543
4543
|
} = e;
|
|
@@ -4590,7 +4590,7 @@ const Fi = {
|
|
|
4590
4590
|
tags: []
|
|
4591
4591
|
};
|
|
4592
4592
|
let sd = class {
|
|
4593
|
-
beginDate =
|
|
4593
|
+
beginDate = xe(/* @__PURE__ */ new Date());
|
|
4594
4594
|
endDate = Re(/* @__PURE__ */ new Date());
|
|
4595
4595
|
expandedSplits = [];
|
|
4596
4596
|
isInitialized = !1;
|
|
@@ -4603,7 +4603,7 @@ let sd = class {
|
|
|
4603
4603
|
isAmountValid = !1;
|
|
4604
4604
|
showInsights = !1;
|
|
4605
4605
|
constructor() {
|
|
4606
|
-
|
|
4606
|
+
De(this);
|
|
4607
4607
|
}
|
|
4608
4608
|
setDateRange = (A, n) => {
|
|
4609
4609
|
this.beginDate = A, this.endDate = n;
|
|
@@ -4664,13 +4664,13 @@ class cd {
|
|
|
4664
4664
|
} = n;
|
|
4665
4665
|
this.taggings = a, this.tags = r, this.transactionRules = i, this.transactions = o, this.updateExternallyManagedTransactions = s, this.setIsLoading(!1), this.shouldManageDataExternally = !0;
|
|
4666
4666
|
}
|
|
4667
|
-
this.globalStore = A, this.uiStore = new sd(),
|
|
4667
|
+
this.globalStore = A, this.uiStore = new sd(), De(this);
|
|
4668
4668
|
}
|
|
4669
4669
|
initialize = async (A, n) => {
|
|
4670
|
-
this.api = new Er(A, n), this.beatApi = new Et(A, n), this.shouldManageDataExternally ? (this.uiStore.setIsInitialized(!0),
|
|
4670
|
+
this.api = new Er(A, n), this.beatApi = new Et(A, n), this.shouldManageDataExternally ? (this.uiStore.setIsInitialized(!0), Hs(() => {
|
|
4671
4671
|
this.globalStore.isInitialized && (this.transactions = this.augmentTransactions(this.transactions));
|
|
4672
4672
|
})) : await Promise.all([
|
|
4673
|
-
this.loadAssociatedBeats(
|
|
4673
|
+
this.loadAssociatedBeats(xe(/* @__PURE__ */ new Date())),
|
|
4674
4674
|
this.loadTags(),
|
|
4675
4675
|
this.loadTaggings(),
|
|
4676
4676
|
this.loadTransactionRules(),
|
|
@@ -5549,7 +5549,7 @@ const xd = ({
|
|
|
5549
5549
|
}, Dr = (e) => {
|
|
5550
5550
|
const A = [], n = ie();
|
|
5551
5551
|
for (let a = 0; a <= Ir; a++) {
|
|
5552
|
-
const r =
|
|
5552
|
+
const r = xe(bA(n, Ir - a)), o = e.filter(
|
|
5553
5553
|
(s) => s.year_month === Number(Ve(r, "yyyyMM"))
|
|
5554
5554
|
).reduce((s, c) => s + c.total, 0);
|
|
5555
5555
|
A.push({
|
|
@@ -5571,7 +5571,7 @@ let Yd = class {
|
|
|
5571
5571
|
savedOnSelect;
|
|
5572
5572
|
// todo
|
|
5573
5573
|
constructor() {
|
|
5574
|
-
|
|
5574
|
+
De(this);
|
|
5575
5575
|
}
|
|
5576
5576
|
setExpandedGuid = (A) => this.expandedGuid = A;
|
|
5577
5577
|
setSelectedGuid = (A) => this.selectedGuid = A;
|
|
@@ -5592,7 +5592,7 @@ class Vd {
|
|
|
5592
5592
|
monthlyCategoryTotals = [];
|
|
5593
5593
|
isLoadingCategoryTotals = !1;
|
|
5594
5594
|
constructor(A) {
|
|
5595
|
-
this.globalStore = A, this.uiStore = new Yd(),
|
|
5595
|
+
this.globalStore = A, this.uiStore = new Yd(), De(this);
|
|
5596
5596
|
}
|
|
5597
5597
|
initialize = async (A, n) => {
|
|
5598
5598
|
this.api = new sn(A, n), await this.loadCategories();
|
|
@@ -5652,7 +5652,7 @@ class Vd {
|
|
|
5652
5652
|
}
|
|
5653
5653
|
};
|
|
5654
5654
|
loadMonthlyCategoryTotals = async (A = this.globalStore.accountStore.accounts, n, a) => {
|
|
5655
|
-
const r = Ce(
|
|
5655
|
+
const r = Ce(xe(n ?? bA(/* @__PURE__ */ new Date(), 11))), i = Ce(Re(a ?? /* @__PURE__ */ new Date()));
|
|
5656
5656
|
try {
|
|
5657
5657
|
const o = await this.api.getMonthlyCategoryTotals(r, i, A);
|
|
5658
5658
|
Y(() => {
|
|
@@ -5670,7 +5670,7 @@ class Vd {
|
|
|
5670
5670
|
Ce(a),
|
|
5671
5671
|
A
|
|
5672
5672
|
), i = await this.api.getMonthlyCategoryTotals(
|
|
5673
|
-
Ce(
|
|
5673
|
+
Ce(xe(bA(a, 11))),
|
|
5674
5674
|
Ce(Re(a)),
|
|
5675
5675
|
A
|
|
5676
5676
|
);
|
|
@@ -6941,7 +6941,7 @@ const Qi = ({ transaction: e }) => {
|
|
|
6941
6941
|
g.useEffect(() => {
|
|
6942
6942
|
te(r);
|
|
6943
6943
|
}, [r]), g.useEffect(() => {
|
|
6944
|
-
const ze =
|
|
6944
|
+
const ze = xe(ie()), ka = Re(ie());
|
|
6945
6945
|
V(ze, ka), E({
|
|
6946
6946
|
dateRange: { start: ze, end: ka },
|
|
6947
6947
|
accounts: G.map((zo) => zo.guid)
|
|
@@ -7826,7 +7826,7 @@ const Qi = ({ transaction: e }) => {
|
|
|
7826
7826
|
};
|
|
7827
7827
|
}), s = a.filter(
|
|
7828
7828
|
(u) => ft(Le(u.expected_date), {
|
|
7829
|
-
start:
|
|
7829
|
+
start: xe(ie()),
|
|
7830
7830
|
end: OA(ie(), 30)
|
|
7831
7831
|
})
|
|
7832
7832
|
).filter((u) => {
|
|
@@ -7876,7 +7876,7 @@ const Qi = ({ transaction: e }) => {
|
|
|
7876
7876
|
recurrenceDay: A.recurrence_day,
|
|
7877
7877
|
scheduledPaymentGuid: A.guid,
|
|
7878
7878
|
transactionGuid: ""
|
|
7879
|
-
}, c = A.recurrence_day, d = ie(), u =
|
|
7879
|
+
}, c = A.recurrence_day, d = ie(), u = xe(ie()), h = OA(ie(), 30);
|
|
7880
7880
|
let m = u;
|
|
7881
7881
|
switch (A.recurrence_type) {
|
|
7882
7882
|
case X.EveryWeek:
|
|
@@ -8023,16 +8023,16 @@ const Qi = ({ transaction: e }) => {
|
|
|
8023
8023
|
e === 1 && /* @__PURE__ */ t(Pa, {})
|
|
8024
8024
|
] });
|
|
8025
8025
|
}, io = T(Zu), _t = (e, A) => e + A.amount, zn = (e) => e.activityType === Ne.Income && ft(e.expectedDate, {
|
|
8026
|
-
start:
|
|
8026
|
+
start: xe(ie()),
|
|
8027
8027
|
end: Re(ie())
|
|
8028
8028
|
}), en = (e) => e.activityType === Ne.Expense && ft(e.expectedDate, {
|
|
8029
|
-
start:
|
|
8029
|
+
start: xe(ie()),
|
|
8030
8030
|
end: Re(ie())
|
|
8031
8031
|
}), Kn = (e) => e.occurredOnDate && ft(e.occurredOnDate, {
|
|
8032
|
-
start:
|
|
8032
|
+
start: xe(/* @__PURE__ */ new Date()),
|
|
8033
8033
|
end: OA(ie(), 30)
|
|
8034
8034
|
}) || ft(e.expectedDate, {
|
|
8035
|
-
start:
|
|
8035
|
+
start: xe(/* @__PURE__ */ new Date()),
|
|
8036
8036
|
end: OA(ie(), 30)
|
|
8037
8037
|
}), $u = ({ day: e, outsideCurrentMonth: A, ...n }) => {
|
|
8038
8038
|
const { recurring: a } = L(), { selectedAccountGuids: r } = ye(), { activities: i, setSelectedDay: o } = ke(), c = g.useMemo(
|
|
@@ -8118,7 +8118,7 @@ const Qi = ({ transaction: e }) => {
|
|
|
8118
8118
|
ha,
|
|
8119
8119
|
{
|
|
8120
8120
|
maxDate: Re(oA(/* @__PURE__ */ new Date(), 1)),
|
|
8121
|
-
minDate:
|
|
8121
|
+
minDate: xe(/* @__PURE__ */ new Date()),
|
|
8122
8122
|
onMonthChange: i,
|
|
8123
8123
|
showDaysOutsideCurrentMonth: !0,
|
|
8124
8124
|
slots: {
|
|
@@ -8452,7 +8452,7 @@ class hh {
|
|
|
8452
8452
|
selectedDay;
|
|
8453
8453
|
isLoading = !0;
|
|
8454
8454
|
constructor(A) {
|
|
8455
|
-
this.globalStore = A,
|
|
8455
|
+
this.globalStore = A, De(this);
|
|
8456
8456
|
}
|
|
8457
8457
|
initialize = async (A, n) => {
|
|
8458
8458
|
this.api = new or(A, n), this.cashflowApi = new Br(A, n), this.loadActivity();
|
|
@@ -8565,7 +8565,7 @@ class hh {
|
|
|
8565
8565
|
loadExpectedEvents = async () => {
|
|
8566
8566
|
try {
|
|
8567
8567
|
const A = await this.cashflowApi.getProjectedCashflowEvents(
|
|
8568
|
-
|
|
8568
|
+
xe(ie()),
|
|
8569
8569
|
OA(ie(), 30)
|
|
8570
8570
|
);
|
|
8571
8571
|
Y(() => {
|
|
@@ -9441,7 +9441,7 @@ const wh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
|
|
|
9441
9441
|
), V = !!n.length, te = async () => {
|
|
9442
9442
|
O(2), c(
|
|
9443
9443
|
// Beginning of the month, 90 days before today
|
|
9444
|
-
|
|
9444
|
+
xe(TA(ie(), 90)),
|
|
9445
9445
|
ie()
|
|
9446
9446
|
), u({ ...d, custom: Xt }), O(3);
|
|
9447
9447
|
}, ue = async () => {
|
|
@@ -9695,7 +9695,7 @@ let Fh = class {
|
|
|
9695
9695
|
upcomingExpenses = [];
|
|
9696
9696
|
selectedCashAccounts = [];
|
|
9697
9697
|
constructor() {
|
|
9698
|
-
|
|
9698
|
+
De(this);
|
|
9699
9699
|
}
|
|
9700
9700
|
// Returns the number of days until the next income activity or 0 if there is no income activity
|
|
9701
9701
|
get daysUntilNextIncome() {
|
|
@@ -9720,7 +9720,7 @@ class Xh {
|
|
|
9720
9720
|
globalStore;
|
|
9721
9721
|
uiStore;
|
|
9722
9722
|
constructor(A) {
|
|
9723
|
-
this.globalStore = A, this.uiStore = new Fh(),
|
|
9723
|
+
this.globalStore = A, this.uiStore = new Fh(), De(this);
|
|
9724
9724
|
}
|
|
9725
9725
|
completeOnboarding = async () => {
|
|
9726
9726
|
const A = {
|
|
@@ -9734,7 +9734,7 @@ class jh {
|
|
|
9734
9734
|
widgetApi = new cr("/", "");
|
|
9735
9735
|
globalStore;
|
|
9736
9736
|
constructor(A) {
|
|
9737
|
-
this.globalStore = A,
|
|
9737
|
+
this.globalStore = A, De(this);
|
|
9738
9738
|
}
|
|
9739
9739
|
initialize = async (A, n) => {
|
|
9740
9740
|
this.widgetApi = new cr(A, n);
|
|
@@ -10181,7 +10181,7 @@ const tn = {
|
|
|
10181
10181
|
return ve().uiStore;
|
|
10182
10182
|
}, On = (e) => e.top_level_category_guid === b.INCOME || e.category_guid === b.INCOME, Jh = (e) => !On(e) && !lo(e), co = (e) => tr.includes(e.top_level_category_guid) || tr.includes(e.category_guid), lo = (e) => e.top_level_category_guid === b.TRANSFER || e.category_guid === b.TRANSFER, Zh = (e) => !On(e) && !co(e) && !lo(e), $h = (e) => e.filter((A) => A.category_guid === A.top_level_category_guid), Ra = (e, A) => {
|
|
10183
10183
|
const n = [];
|
|
10184
|
-
let a =
|
|
10184
|
+
let a = xe(bA(/* @__PURE__ */ new Date(), 5));
|
|
10185
10185
|
const r = /* @__PURE__ */ new Date();
|
|
10186
10186
|
for (; Te(a, r); )
|
|
10187
10187
|
n.push({
|
|
@@ -10202,7 +10202,7 @@ const tn = {
|
|
|
10202
10202
|
const A = [], n = e.filter(
|
|
10203
10203
|
(i) => i.top_level_category_guid !== b.INCOME && i.top_level_category_guid !== b.TRANSFER && i.total > 0
|
|
10204
10204
|
);
|
|
10205
|
-
let a =
|
|
10205
|
+
let a = xe(bA(/* @__PURE__ */ new Date(), 5));
|
|
10206
10206
|
const r = Re(/* @__PURE__ */ new Date());
|
|
10207
10207
|
for (; Te(a, r); )
|
|
10208
10208
|
A.push({
|
|
@@ -11178,7 +11178,7 @@ class zg {
|
|
|
11178
11178
|
isLoading = !1;
|
|
11179
11179
|
selectedDebtChartData = {};
|
|
11180
11180
|
constructor() {
|
|
11181
|
-
|
|
11181
|
+
De(this);
|
|
11182
11182
|
}
|
|
11183
11183
|
get showError() {
|
|
11184
11184
|
const { interest_rate: A, monthly_payment: n } = this.selectedDebtChartData;
|
|
@@ -11194,7 +11194,7 @@ class Kg {
|
|
|
11194
11194
|
globalStore;
|
|
11195
11195
|
uiStore;
|
|
11196
11196
|
constructor(A) {
|
|
11197
|
-
this.globalStore = A, this.uiStore = new zg(),
|
|
11197
|
+
this.globalStore = A, this.uiStore = new zg(), De(this);
|
|
11198
11198
|
}
|
|
11199
11199
|
get debts() {
|
|
11200
11200
|
const { debtAccounts: A } = this.globalStore.accountStore, { debtGoals: n } = this.globalStore.goalStore;
|
|
@@ -11208,11 +11208,11 @@ class qg {
|
|
|
11208
11208
|
selectedAccountGuids = this.selectedAccounts.map((A) => A.guid);
|
|
11209
11209
|
displayedDate = /* @__PURE__ */ new Date();
|
|
11210
11210
|
displayedDateRange = {
|
|
11211
|
-
start:
|
|
11211
|
+
start: xe(this.displayedDate),
|
|
11212
11212
|
end: Re(this.displayedDate)
|
|
11213
11213
|
};
|
|
11214
11214
|
constructor(A) {
|
|
11215
|
-
|
|
11215
|
+
De(this), this.globalStore = A;
|
|
11216
11216
|
}
|
|
11217
11217
|
setInitialized = (A) => {
|
|
11218
11218
|
this.isInitialized = A;
|
|
@@ -12231,7 +12231,7 @@ class a1 {
|
|
|
12231
12231
|
selectedGoal = void 0;
|
|
12232
12232
|
monthlyCashFlowProfile = void 0;
|
|
12233
12233
|
constructor(A) {
|
|
12234
|
-
this.globalStore = A,
|
|
12234
|
+
this.globalStore = A, De(this);
|
|
12235
12235
|
}
|
|
12236
12236
|
initialize = async (A, n) => {
|
|
12237
12237
|
this.api = new kr(A, n);
|
|
@@ -12629,7 +12629,7 @@ class s1 {
|
|
|
12629
12629
|
appConfig;
|
|
12630
12630
|
globalStore;
|
|
12631
12631
|
constructor(A) {
|
|
12632
|
-
this.globalStore = A,
|
|
12632
|
+
this.globalStore = A, De(this);
|
|
12633
12633
|
}
|
|
12634
12634
|
loadAppConfig = (A) => this.appConfig = A;
|
|
12635
12635
|
get helpCategories() {
|
|
@@ -12715,7 +12715,7 @@ class u1 {
|
|
|
12715
12715
|
merchants = [];
|
|
12716
12716
|
isLoading = !1;
|
|
12717
12717
|
constructor() {
|
|
12718
|
-
|
|
12718
|
+
De(this);
|
|
12719
12719
|
}
|
|
12720
12720
|
initialize = async (A, n) => {
|
|
12721
12721
|
this.api = new Fr(A, n);
|
|
@@ -12738,7 +12738,7 @@ const vo = 13, h1 = (e, A) => e.filter((n) => {
|
|
|
12738
12738
|
}), g1 = (e, A) => [...e, ...A], Xr = (e) => {
|
|
12739
12739
|
if (e && e.length > 0)
|
|
12740
12740
|
return e[e.length - 1];
|
|
12741
|
-
}, m1 = (e, A) => e.year_month - A.year_month, p1 = () => Array.from({ length: vo }, (e, A) => Math.floor(
|
|
12741
|
+
}, m1 = (e, A) => e.year_month - A.year_month, p1 = () => Array.from({ length: vo }, (e, A) => Math.floor(xe(bA(/* @__PURE__ */ new Date(), A)).getTime() / 1e3)).sort(), C1 = (e, A, n) => !e.length || !A.length ? [] : p1().reduceRight((r, i) => {
|
|
12742
12742
|
const o = A.filter(
|
|
12743
12743
|
({ year_month: u }) => u === parseInt(Ve(Le(i), "yyyyMM"))
|
|
12744
12744
|
), s = e.map((u) => {
|
|
@@ -12818,7 +12818,7 @@ class y1 {
|
|
|
12818
12818
|
hoveredData;
|
|
12819
12819
|
selectedData;
|
|
12820
12820
|
constructor(A) {
|
|
12821
|
-
this.globalStore = A,
|
|
12821
|
+
this.globalStore = A, De(this);
|
|
12822
12822
|
}
|
|
12823
12823
|
loadNetWorthData = async (A) => {
|
|
12824
12824
|
try {
|
|
@@ -13312,7 +13312,7 @@ class H1 {
|
|
|
13312
13312
|
notifications = [];
|
|
13313
13313
|
recentNotifications = [];
|
|
13314
13314
|
constructor() {
|
|
13315
|
-
|
|
13315
|
+
De(this, { notifications: Bs });
|
|
13316
13316
|
}
|
|
13317
13317
|
initialize = async (A, n) => {
|
|
13318
13318
|
this.api = new ir(A, n), await this.loadNotifications();
|
|
@@ -13418,7 +13418,7 @@ class F1 {
|
|
|
13418
13418
|
globalStore;
|
|
13419
13419
|
api = new sr("/", "");
|
|
13420
13420
|
constructor(A) {
|
|
13421
|
-
this.globalStore = A,
|
|
13421
|
+
this.globalStore = A, De(this);
|
|
13422
13422
|
}
|
|
13423
13423
|
initialize = async (A, n) => {
|
|
13424
13424
|
this.api = new sr(A, n);
|
|
@@ -13483,7 +13483,7 @@ class G8 {
|
|
|
13483
13483
|
accountStoreProps: A = void 0,
|
|
13484
13484
|
transactionStoreProps: n = void 0
|
|
13485
13485
|
}) {
|
|
13486
|
-
this.accountStore = new vm(this, A), this.appDataStore = new ql(), this.beatStore = new kl(), this.budgetsStore = new jl(this), this.cashflowStore = new Xh(this), this.categoryStore = new Vd(this), this.connectStore = new jh(this), this.copyStore = new Kl(), this.debtsStore = new Kg(this), this.goalStore = new a1(this), this.helpStore = new s1(this), this.merchantStore = new u1(), this.netWorthStore = new y1(this), this.notificationStore = new H1(), this.recurringActivityStore = new hh(this), this.transactionStore = new cd(this, n), this.userStore = new F1(this), this.globalUiStore = new qg(this),
|
|
13486
|
+
this.accountStore = new vm(this, A), this.appDataStore = new ql(), this.beatStore = new kl(), this.budgetsStore = new jl(this), this.cashflowStore = new Xh(this), this.categoryStore = new Vd(this), this.connectStore = new jh(this), this.copyStore = new Kl(), this.debtsStore = new Kg(this), this.goalStore = new a1(this), this.helpStore = new s1(this), this.merchantStore = new u1(), this.netWorthStore = new y1(this), this.notificationStore = new H1(), this.recurringActivityStore = new hh(this), this.transactionStore = new cd(this, n), this.userStore = new F1(this), this.globalUiStore = new qg(this), De(this);
|
|
13487
13487
|
}
|
|
13488
13488
|
initialize = async (A, n, a = X1) => {
|
|
13489
13489
|
await this.copyStore.initialize(A, n), await this.appDataStore.initialize(A, n);
|
|
@@ -14799,7 +14799,7 @@ class fm {
|
|
|
14799
14799
|
selectedAccount = {};
|
|
14800
14800
|
selectedMember = {};
|
|
14801
14801
|
constructor() {
|
|
14802
|
-
|
|
14802
|
+
De(this);
|
|
14803
14803
|
}
|
|
14804
14804
|
setIsLoading = (A) => this.isLoading = A;
|
|
14805
14805
|
setSelectedAccount = (A) => this.selectedAccount = A;
|
|
@@ -14823,14 +14823,10 @@ class vm {
|
|
|
14823
14823
|
uiStore;
|
|
14824
14824
|
constructor(A, n) {
|
|
14825
14825
|
if (n) {
|
|
14826
|
-
const {
|
|
14827
|
-
accounts: a = [],
|
|
14828
|
-
institutions: r = [],
|
|
14829
|
-
updateExternallyManagedAccounts: i
|
|
14830
|
-
} = n;
|
|
14826
|
+
const { accounts: a = [], institutions: r = [], updateExternallyManagedAccounts: i } = n;
|
|
14831
14827
|
this.accounts = a, this.institutions = r, this.updateExternallyManagedAccounts = i, this.shouldManageDataExternally = !!a.length && !!r;
|
|
14832
14828
|
}
|
|
14833
|
-
this.globalStore = A, this.uiStore = new fm(),
|
|
14829
|
+
this.globalStore = A, this.uiStore = new fm(), De(this);
|
|
14834
14830
|
}
|
|
14835
14831
|
initialize = async (A, n) => {
|
|
14836
14832
|
this.api = new Qr(A, n), this.shouldManageDataExternally ? await this.loadMembers() : await Promise.all([this.loadMembers(), this.loadAccounts(), this.loadInstitutions()]), oa(
|
|
@@ -15771,7 +15767,7 @@ const _m = ({
|
|
|
15771
15767
|
z(!0), a(F.BUDGETS_CLICK_ADD);
|
|
15772
15768
|
}, V = () => {
|
|
15773
15769
|
z(!1);
|
|
15774
|
-
}, te = yt(m.end,
|
|
15770
|
+
}, te = yt(m.end, xe(/* @__PURE__ */ new Date()));
|
|
15775
15771
|
return !s || !_ ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ l(
|
|
15776
15772
|
CA,
|
|
15777
15773
|
{
|
|
@@ -16727,7 +16723,7 @@ class lp {
|
|
|
16727
16723
|
namespace = "experiences";
|
|
16728
16724
|
translationKey = "micro_insights";
|
|
16729
16725
|
constructor() {
|
|
16730
|
-
|
|
16726
|
+
De(this);
|
|
16731
16727
|
}
|
|
16732
16728
|
initialize = async (A, n) => {
|
|
16733
16729
|
this.copyApi = new cn(A, n), await this.loadCopy();
|
|
@@ -16902,7 +16898,7 @@ class gp {
|
|
|
16902
16898
|
onAnalyticPageView = ti;
|
|
16903
16899
|
beatApi = new Et("/", "");
|
|
16904
16900
|
constructor() {
|
|
16905
|
-
|
|
16901
|
+
De(this);
|
|
16906
16902
|
}
|
|
16907
16903
|
initialize = async (A, n, a) => {
|
|
16908
16904
|
this.onAnalyticEvent = (r, i) => {
|
|
@@ -16927,7 +16923,7 @@ class mp {
|
|
|
16927
16923
|
token = "";
|
|
16928
16924
|
isInitialized = !1;
|
|
16929
16925
|
constructor() {
|
|
16930
|
-
this.copyStore = new lp(), this.insightsMicroWidgetStore = new gp(),
|
|
16926
|
+
this.copyStore = new lp(), this.insightsMicroWidgetStore = new gp(), De(this);
|
|
16931
16927
|
}
|
|
16932
16928
|
initialize = async (A, n, a) => {
|
|
16933
16929
|
await this.copyStore.initialize(A, n), await this.insightsMicroWidgetStore.initialize(A, n, a), this.session = await Ic(A, n, "1.0.0", "Micro Insights Carousel"), Y(() => {
|
|
@@ -18687,7 +18683,7 @@ const Vt = g.createContext(null), pp = ({
|
|
|
18687
18683
|
g.useEffect(() => {
|
|
18688
18684
|
o(
|
|
18689
18685
|
n,
|
|
18690
|
-
|
|
18686
|
+
xe(/* @__PURE__ */ new Date()),
|
|
18691
18687
|
Re(/* @__PURE__ */ new Date())
|
|
18692
18688
|
).finally();
|
|
18693
18689
|
}, [n]);
|
|
@@ -19030,7 +19026,7 @@ const Vt = g.createContext(null), pp = ({
|
|
|
19030
19026
|
g.useEffect(() => {
|
|
19031
19027
|
o(n);
|
|
19032
19028
|
}, [n]), g.useEffect(() => {
|
|
19033
|
-
i(
|
|
19029
|
+
i(xe(ie()), Re(ie())), d(!0), s(F.SPENDING_VIEW);
|
|
19034
19030
|
}, []);
|
|
19035
19031
|
const u = (h) => {
|
|
19036
19032
|
i(h[0], h[1]);
|