@mx-cartographer/experiences 7.12.16 → 7.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/{AccountDetailsHeader-DkBNsLsI.mjs → AccountDetailsHeader-D9gbTbUt.mjs} +31 -31
- package/dist/{AccountFields-DeZSQOuM.mjs → AccountFields-CxqONzjY.mjs} +7 -7
- package/dist/AccountListItem-LcJVJysf.mjs +90 -0
- package/dist/{AccountStore-Brc0MNSF.mjs → AccountStore-BNlTuxWN.mjs} +12 -6
- package/dist/Accounts-o7ohkngR.mjs +27 -0
- package/dist/{BudgetUtil--_QXyszn.mjs → BudgetUtil-CLhRnCoX.mjs} +75 -75
- package/dist/{CashflowStore-DEdQJU5i.mjs → CashflowStore-D3MKniVM.mjs} +11 -11
- package/dist/{CategorySelectorDrawer-wfUTIbLR.mjs → CategorySelectorDrawer-DYHNBd2v.mjs} +31 -31
- package/dist/{ConnectDrawer-CioFo6Wy.mjs → ConnectDrawer-C0wjwcJt.mjs} +1 -1
- package/dist/{ConnectionsDrawer-DqhSaMrJ.mjs → ConnectionsDrawer-IA7vnv1J.mjs} +1 -1
- package/dist/{Drawer-DV4NTsFg.mjs → Drawer-Bbe4AMB1.mjs} +5 -5
- package/dist/{GoalStore-0bd-Upkc.mjs → GoalStore-DB58sKTC.mjs} +8 -8
- package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
- package/dist/{Help-CDu1Fvrc.mjs → Help-CpLfyvPv.mjs} +24 -24
- package/dist/{LineChart-B1qbKR8q.mjs → LineChart-DBSlRSEm.mjs} +102 -102
- package/dist/{ManageIncome-BnWWjP2g.mjs → ManageIncome-QvqN555q.mjs} +62 -62
- package/dist/{MiniWidgetContainer-Cu72GNsE.mjs → MiniWidgetContainer-xLWSV6Wz.mjs} +13 -13
- package/dist/{NetWorthStore-DP78lgZ0.mjs → NetWorthStore-BqZ44-4M.mjs} +1 -1
- package/dist/{NotificationSettings-BH2yOwTB.mjs → NotificationSettings-DU3vJh5J.mjs} +139 -139
- package/dist/{OriginalBalanceAction-BM6rT_Cn.mjs → OriginalBalanceAction-DjpvVVFz.mjs} +6 -6
- package/dist/{RecurringSettings-BmXtfHtK.mjs → RecurringSettings-DdOcok2e.mjs} +2 -2
- package/dist/{RecurringTransactions-CYNpe_RS.mjs → RecurringTransactions-BOzBqfdg.mjs} +11 -11
- package/dist/{RecurringTransactionsStore-BD-OfVZ-.mjs → RecurringTransactionsStore-CcfPS0d3.mjs} +1 -1
- package/dist/{SpendingLegend-Bq6aXMNh.mjs → SpendingLegend-CJjjTGBw.mjs} +76 -76
- package/dist/{StatusIndicator-BV3oFzxo.mjs → StatusIndicator-CIKUOoN_.mjs} +53 -53
- package/dist/{TransactionDetails-DYlTwSDt.mjs → TransactionDetails-BpcWeXNU.mjs} +350 -350
- package/dist/{WidgetContainer-B0ncgABX.mjs → WidgetContainer-D_iaToWJ.mjs} +12 -12
- package/dist/accounts/index.es.js +107 -107
- package/dist/accounts/utils/Accounts.d.ts +1 -1
- package/dist/analytics/index.es.js +18 -18
- package/dist/budgets/index.es.js +182 -182
- package/dist/cashflow/index.es.js +223 -223
- package/dist/categories/index.es.js +1 -1
- package/dist/common/index.es.js +54 -64
- package/dist/dashboard/index.es.js +9 -9
- package/dist/debts/index.es.js +469 -469
- package/dist/finstrong/index.es.js +68 -68
- package/dist/goals/index.es.js +437 -437
- package/dist/help/index.es.js +2 -2
- package/dist/insights/index.es.js +159 -159
- package/dist/investments/index.es.js +292 -292
- package/dist/merchants/index.es.js +12 -12
- package/dist/networth/index.es.js +175 -168
- package/dist/notifications/index.es.js +13 -13
- package/dist/recurringtransactions/index.es.js +69 -69
- package/dist/settings/index.es.js +187 -187
- package/dist/spending/index.es.js +58 -58
- package/dist/transactions/index.es.js +70 -70
- package/dist/trends/index.es.js +15 -15
- package/package.json +1 -1
- package/dist/AccountListItem-BIVhda6q.mjs +0 -90
- package/dist/Accounts-M-LTzStv.mjs +0 -27
- package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
package/dist/common/index.es.js
CHANGED
|
@@ -11,24 +11,24 @@ import { L as Re, a as $e } from "../Transaction-CqjlF6SO.mjs";
|
|
|
11
11
|
import { H } from "../Help-B8mD4aLJ.mjs";
|
|
12
12
|
import { E as Ge } from "../Help-B8mD4aLJ.mjs";
|
|
13
13
|
import { M as We } from "../MicroWidgetContainer-B_EnfvCq.mjs";
|
|
14
|
-
import { M as Ye } from "../MiniWidgetContainer-
|
|
15
|
-
import { D as Ke, W as ze } from "../WidgetContainer-
|
|
16
|
-
import { C as Ve } from "../ConnectDrawer-
|
|
17
|
-
import { f as W, c as q, d as C } from "../BudgetUtil
|
|
18
|
-
import { a as
|
|
14
|
+
import { M as Ye } from "../MiniWidgetContainer-xLWSV6Wz.mjs";
|
|
15
|
+
import { D as Ke, W as ze } from "../WidgetContainer-D_iaToWJ.mjs";
|
|
16
|
+
import { C as Ve } from "../ConnectDrawer-C0wjwcJt.mjs";
|
|
17
|
+
import { f as W, c as q, d as C } from "../BudgetUtil-CLhRnCoX.mjs";
|
|
18
|
+
import { a as Xe, b as Je, C as ts, e as es, k as ss, h as rs, j as os, l as as } from "../BudgetUtil-CLhRnCoX.mjs";
|
|
19
19
|
import { C as is } from "../CurrencyInput-DuMktPu3.mjs";
|
|
20
20
|
import { L as us } from "../Loader-D3rjKx72.mjs";
|
|
21
|
-
import { R as
|
|
21
|
+
import { R as hs } from "../ResponsiveButton-DZFp78fJ.mjs";
|
|
22
22
|
import { S as gs } from "../SearchBox-B7km148n.mjs";
|
|
23
23
|
import { T as Y } from "../TransactionStore-DP5vipL2.mjs";
|
|
24
24
|
import { S as _s } from "../TransactionStore-DP5vipL2.mjs";
|
|
25
25
|
import { T as ms } from "../TabContentContainer-j01JYR_7.mjs";
|
|
26
26
|
import { I as Ss } from "../IconBacking-B9oC6uL2.mjs";
|
|
27
|
-
import { D as ws, F as Cs, c as Ds, d as Es, R as As, S as xs } from "../RecurringTransactions-
|
|
28
|
-
import { C as Q } from "../CashflowStore-
|
|
29
|
-
import { I as Bs } from "../CashflowStore-
|
|
30
|
-
import { d as K } from "../GoalStore-
|
|
31
|
-
import { C as vs, G as Ms, M as ks, T as Ns } from "../GoalStore-
|
|
27
|
+
import { D as ws, F as Cs, c as Ds, d as Es, R as As, S as xs } from "../RecurringTransactions-BOzBqfdg.mjs";
|
|
28
|
+
import { C as Q } from "../CashflowStore-D3MKniVM.mjs";
|
|
29
|
+
import { I as Bs } from "../CashflowStore-D3MKniVM.mjs";
|
|
30
|
+
import { d as K } from "../GoalStore-DB58sKTC.mjs";
|
|
31
|
+
import { C as vs, G as Ms, M as ks, T as Ns } from "../GoalStore-DB58sKTC.mjs";
|
|
32
32
|
import { C as Ls } from "../CurrencyText-CA-E5N_y.mjs";
|
|
33
33
|
import { E as Ps } from "../EmptyState-DHAkGsjk.mjs";
|
|
34
34
|
import { L as $s } from "../ListItemAction-4KB7P75M.mjs";
|
|
@@ -36,30 +36,30 @@ import { T as z } from "../TrendsStore-st6GjDtg.mjs";
|
|
|
36
36
|
import { L as Gs } from "../TrendsStore-st6GjDtg.mjs";
|
|
37
37
|
import { A as Ws, B as qs, I as Ys, N as Qs, T as Ks, a as zs } from "../Notification-CMBNDGC-.mjs";
|
|
38
38
|
import { G as Vs } from "../GlobalAccountFilter-B73Pw1hJ.mjs";
|
|
39
|
-
import { S as
|
|
39
|
+
import { S as Xs } from "../StatusBar-BK_uYHAB.mjs";
|
|
40
40
|
import { D as tr } from "../Donut-CpxJlVvJ.mjs";
|
|
41
41
|
import { D as sr } from "../Dialog-Ck34yr-d.mjs";
|
|
42
42
|
import { jsxs as D, jsx as b } from "react/jsx-runtime";
|
|
43
43
|
import { css as j } from "@mxenabled/cssinjs";
|
|
44
|
-
import { D as V, a as
|
|
44
|
+
import { D as V, a as Z } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
45
45
|
import { S as or } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
46
|
-
import { D as nr } from "../Drawer-
|
|
46
|
+
import { D as nr } from "../Drawer-Bbe4AMB1.mjs";
|
|
47
47
|
import { A as cr } from "../Analytics-BYItVAe-.mjs";
|
|
48
|
-
import { D as dr, O as
|
|
48
|
+
import { D as dr, O as hr, a as lr, f as gr } from "../DateFormats-BMpMrZpW.mjs";
|
|
49
49
|
import { I as _r, P as fr, S as mr } from "../Account-DuOz1a27.mjs";
|
|
50
50
|
import { b as f } from "../Category-CevNQ03n.mjs";
|
|
51
51
|
import { C as Sr, c as br, a as wr, P as Cr } from "../Category-CevNQ03n.mjs";
|
|
52
52
|
import { C as Er, f as Ar, b as xr, a as Tr, g as Br, i as Ir } from "../NumberFormatting-QCaNwbjv.mjs";
|
|
53
|
-
import { R as
|
|
54
|
-
import { S as Mr, T as kr } from "../RecurringTransactionsStore-
|
|
55
|
-
import { G as Ur, C as Lr, D as Or, W as Pr, d as Rr, a as $r, m as Fr, t as Gr, l as Hr, v as Wr, w as qr, g as Yr, y as Qr, u as Kr, f as zr, b as jr, k as Vr, z as
|
|
56
|
-
import { u as
|
|
53
|
+
import { R as X } from "../RecurringTransactionsStore-CcfPS0d3.mjs";
|
|
54
|
+
import { S as Mr, T as kr } from "../RecurringTransactionsStore-CcfPS0d3.mjs";
|
|
55
|
+
import { G as Ur, C as Lr, D as Or, W as Pr, d as Rr, a as $r, m as Fr, t as Gr, l as Hr, v as Wr, w as qr, g as Yr, y as Qr, u as Kr, f as zr, b as jr, k as Vr, z as Zr, s as Xr, x as Jr, c as to, q as eo, n as so, A as ro, i as oo, r as ao, h as no, B as io, o as co, p as uo } from "../hooks-BxkfR-Ff.mjs";
|
|
56
|
+
import { u as lo } from "../useAccountDisplayName-DKwT1mWv.mjs";
|
|
57
57
|
import { u as po } from "../useInsightsEnabled-DL_oNyI0.mjs";
|
|
58
58
|
import { u as fo } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
59
59
|
import { useRef as J, useEffect as tt } from "react";
|
|
60
60
|
import { u as yo } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
61
|
-
import { makeAutoObservable as
|
|
62
|
-
import { A as st } from "../AccountStore-
|
|
61
|
+
import { makeAutoObservable as l, runInAction as h, reaction as L, autorun as et } from "mobx";
|
|
62
|
+
import { A as st } from "../AccountStore-BNlTuxWN.mjs";
|
|
63
63
|
import rt from "posthog-js";
|
|
64
64
|
import { B as ot } from "../BeatStore-C6CAT-ce.mjs";
|
|
65
65
|
import { endOfMonth as O } from "date-fns/endOfMonth";
|
|
@@ -68,8 +68,8 @@ import { startOfToday as E } from "date-fns/startOfToday";
|
|
|
68
68
|
import { D as at } from "../DebtsStore-BZqNLaqd.mjs";
|
|
69
69
|
import { F as nt } from "../FinstrongStore-BQxXxxYD.mjs";
|
|
70
70
|
import { A as it, m as ct, a as ut, b as dt } from "../InvestmentUtil-BItV7uEs.mjs";
|
|
71
|
-
import { M as
|
|
72
|
-
import { N as
|
|
71
|
+
import { M as ht } from "../MerchantStore-BzGi4JAZ.mjs";
|
|
72
|
+
import { N as lt } from "../NetWorthStore-BqZ44-4M.mjs";
|
|
73
73
|
import { a as gt } from "../SettingsStore-Cax1fzsz.mjs";
|
|
74
74
|
import { addMonths as pt } from "date-fns/addMonths";
|
|
75
75
|
import { getMonth as m } from "date-fns/getMonth";
|
|
@@ -95,25 +95,15 @@ const me = [
|
|
|
95
95
|
var mt = /* @__PURE__ */ ((s) => (s[s.SpendingPlan = 0] = "SpendingPlan", s[s.Budgets = 1] = "Budgets", s))(mt || {}), yt = /* @__PURE__ */ ((s) => (s[s.RecurringExpense = 0] = "RecurringExpense", s[s.PlannedExpense = 1] = "PlannedExpense", s[s.Other = 2] = "Other", s[s.Income = 3] = "Income", s))(yt || {});
|
|
96
96
|
const St = [
|
|
97
97
|
"fontFamily",
|
|
98
|
-
"H1",
|
|
99
98
|
"h1",
|
|
100
|
-
"H2",
|
|
101
99
|
"h2",
|
|
102
|
-
"H3",
|
|
103
100
|
"h3",
|
|
104
|
-
"Body",
|
|
105
101
|
"body1",
|
|
106
|
-
"Small",
|
|
107
102
|
"body2",
|
|
108
|
-
"Button",
|
|
109
103
|
"button",
|
|
110
|
-
"XSmall",
|
|
111
104
|
"caption",
|
|
112
|
-
"Paragraph",
|
|
113
105
|
"subtitle1",
|
|
114
|
-
"ParagraphSmall",
|
|
115
106
|
"subtitle2",
|
|
116
|
-
"Tiny",
|
|
117
107
|
"tiny"
|
|
118
108
|
], bt = [
|
|
119
109
|
{ key: "primary", light: "primary_color", dark: "primary_color_dark" },
|
|
@@ -254,7 +244,7 @@ const Ce = (s) => {
|
|
|
254
244
|
hasGap: s = !1,
|
|
255
245
|
segments: t,
|
|
256
246
|
size: e = V,
|
|
257
|
-
strokeWidth: r =
|
|
247
|
+
strokeWidth: r = Z,
|
|
258
248
|
children: o
|
|
259
249
|
}) => {
|
|
260
250
|
const n = Ct(e), i = (e - r) / 2, c = e / 2;
|
|
@@ -314,17 +304,17 @@ class Dt {
|
|
|
314
304
|
t.endpoint,
|
|
315
305
|
t.sessionToken,
|
|
316
306
|
t.onError
|
|
317
|
-
),
|
|
307
|
+
), l(this);
|
|
318
308
|
}
|
|
319
309
|
loadCopy = async () => {
|
|
320
|
-
await this.getCopy(this.featureNamespace),
|
|
310
|
+
await this.getCopy(this.featureNamespace), h(() => {
|
|
321
311
|
this.isInitialized = !0;
|
|
322
312
|
});
|
|
323
313
|
};
|
|
324
314
|
getCopy = async (t, e = "") => {
|
|
325
315
|
try {
|
|
326
316
|
const r = await this.api.getGlobalCopy(t, e);
|
|
327
|
-
|
|
317
|
+
h(() => {
|
|
328
318
|
this.copy = r[t];
|
|
329
319
|
});
|
|
330
320
|
} catch (r) {
|
|
@@ -340,7 +330,7 @@ class Et {
|
|
|
340
330
|
response = null;
|
|
341
331
|
responses = {};
|
|
342
332
|
constructor(t) {
|
|
343
|
-
this.globalStore = t,
|
|
333
|
+
this.globalStore = t, l(this);
|
|
344
334
|
}
|
|
345
335
|
get isLastQuestion() {
|
|
346
336
|
return this.currentQuestionIndex === this.surveyQuestions.length - 1;
|
|
@@ -363,7 +353,7 @@ class Et {
|
|
|
363
353
|
}
|
|
364
354
|
loadSurvey = (t = !1) => {
|
|
365
355
|
rt.getActiveMatchingSurveys((e) => {
|
|
366
|
-
|
|
356
|
+
h(() => {
|
|
367
357
|
if (e.length > 0) {
|
|
368
358
|
const r = e.find((o) => o.id === this.surveyId);
|
|
369
359
|
r && (this.survey = r, this.currentQuestionIndex = 0, this.question = r.questions[0], this.response = null, this.responses = {});
|
|
@@ -429,7 +419,7 @@ class It {
|
|
|
429
419
|
theme = {};
|
|
430
420
|
merchantBudgets = [];
|
|
431
421
|
constructor(t) {
|
|
432
|
-
this.globalStore = t, this.api = new v(t.endpoint, t.sessionToken, t.onError),
|
|
422
|
+
this.globalStore = t, this.api = new v(t.endpoint, t.sessionToken, t.onError), l(this);
|
|
433
423
|
}
|
|
434
424
|
loadBudgetData = async () => {
|
|
435
425
|
this.globalStore.recurringTransactionsStore.isDataLoaded || await this.globalStore.recurringTransactionsStore.loadRepeatingTransactionData(), await this.loadBudgets(), L(
|
|
@@ -481,7 +471,7 @@ class It {
|
|
|
481
471
|
addBudget = async (t, e, r = null) => {
|
|
482
472
|
try {
|
|
483
473
|
const o = await this.api.addBudget(t, e, r);
|
|
484
|
-
|
|
474
|
+
h(() => {
|
|
485
475
|
this.budgets.push(o);
|
|
486
476
|
});
|
|
487
477
|
} catch (o) {
|
|
@@ -490,7 +480,7 @@ class It {
|
|
|
490
480
|
};
|
|
491
481
|
deleteBudget = async (t) => {
|
|
492
482
|
try {
|
|
493
|
-
await this.api.deleteBudget(t),
|
|
483
|
+
await this.api.deleteBudget(t), h(() => {
|
|
494
484
|
const e = this.budgets.findIndex((r) => r.guid === t);
|
|
495
485
|
e >= 0 && this.budgets.splice(e, 1);
|
|
496
486
|
});
|
|
@@ -540,7 +530,7 @@ class It {
|
|
|
540
530
|
updateBudget = async (t) => {
|
|
541
531
|
try {
|
|
542
532
|
const e = await this.api.updateBudget(t);
|
|
543
|
-
|
|
533
|
+
h(() => {
|
|
544
534
|
const r = this.budgets.findIndex((o) => o.guid === t.guid);
|
|
545
535
|
r >= 0 && (this.budgets[r] = e);
|
|
546
536
|
});
|
|
@@ -557,7 +547,7 @@ class It {
|
|
|
557
547
|
addMerchantBudget = async (t, e) => {
|
|
558
548
|
try {
|
|
559
549
|
const r = await this.api.addMerchantBudget(t, e);
|
|
560
|
-
return
|
|
550
|
+
return h(() => {
|
|
561
551
|
this.merchantBudgets.push(r);
|
|
562
552
|
}), { isSuccess: !0 };
|
|
563
553
|
} catch (r) {
|
|
@@ -567,7 +557,7 @@ class It {
|
|
|
567
557
|
updateMerchantBudget = async (t) => {
|
|
568
558
|
try {
|
|
569
559
|
const { guid: e, amount: r } = t, o = await this.api.updateMerchantBudget(e, r);
|
|
570
|
-
return
|
|
560
|
+
return h(() => {
|
|
571
561
|
const n = this.merchantBudgets.findIndex((i) => i.guid === t.guid);
|
|
572
562
|
n >= 0 && (this.merchantBudgets[n] = o);
|
|
573
563
|
}), { isSuccess: !0 };
|
|
@@ -577,7 +567,7 @@ class It {
|
|
|
577
567
|
};
|
|
578
568
|
deleteMerchantBudget = async (t) => {
|
|
579
569
|
try {
|
|
580
|
-
return await this.api.deleteMerchantBudget(t),
|
|
570
|
+
return await this.api.deleteMerchantBudget(t), h(() => {
|
|
581
571
|
const e = this.merchantBudgets.filter(
|
|
582
572
|
(r) => r.guid !== t
|
|
583
573
|
);
|
|
@@ -619,7 +609,7 @@ class kt {
|
|
|
619
609
|
globalStore;
|
|
620
610
|
isLoading = !1;
|
|
621
611
|
constructor(t) {
|
|
622
|
-
this.globalStore = t, this.api = new M(t.endpoint, t.sessionToken, t.onError),
|
|
612
|
+
this.globalStore = t, this.api = new M(t.endpoint, t.sessionToken, t.onError), l(this);
|
|
623
613
|
}
|
|
624
614
|
createSupportTicket = async (t) => {
|
|
625
615
|
try {
|
|
@@ -664,7 +654,7 @@ class Nt {
|
|
|
664
654
|
globalStore;
|
|
665
655
|
showConnectionsWidget = !1;
|
|
666
656
|
constructor(t) {
|
|
667
|
-
this.globalStore = t, this.api = new k(t.endpoint, t.sessionToken, t.onError),
|
|
657
|
+
this.globalStore = t, this.api = new k(t.endpoint, t.sessionToken, t.onError), l(this);
|
|
668
658
|
}
|
|
669
659
|
get analysisChartData() {
|
|
670
660
|
return ct(ut(this.visibleHoldings), this.analysisType);
|
|
@@ -700,7 +690,7 @@ class Nt {
|
|
|
700
690
|
const e = await this.api.updateHoldings(t), r = this.holdings.findIndex(({ guid: o }) => o === t.guid);
|
|
701
691
|
if (r >= 0) {
|
|
702
692
|
const o = [...this.holdings];
|
|
703
|
-
o[r] = e,
|
|
693
|
+
o[r] = e, h(() => {
|
|
704
694
|
this.holdings = o, this.holdingsLoaded = !0;
|
|
705
695
|
});
|
|
706
696
|
}
|
|
@@ -829,7 +819,7 @@ class Ut {
|
|
|
829
819
|
isAppDataLoaded = !1;
|
|
830
820
|
banner = {};
|
|
831
821
|
constructor(t) {
|
|
832
|
-
this.globalStore = t, this.api = new U(t.endpoint, t.sessionToken, t.onError),
|
|
822
|
+
this.globalStore = t, this.api = new U(t.endpoint, t.sessionToken, t.onError), l(this);
|
|
833
823
|
}
|
|
834
824
|
get appConfig() {
|
|
835
825
|
return this.globalStore.appConfig;
|
|
@@ -863,7 +853,7 @@ class Ut {
|
|
|
863
853
|
loadBanner = async () => {
|
|
864
854
|
try {
|
|
865
855
|
const t = this.user?.guid ?? null, e = t ? await this.bannerApi.getBanner(t) : {};
|
|
866
|
-
|
|
856
|
+
h(() => {
|
|
867
857
|
this.banner = e;
|
|
868
858
|
});
|
|
869
859
|
} catch (t) {
|
|
@@ -878,7 +868,7 @@ class Lt {
|
|
|
878
868
|
globalStore;
|
|
879
869
|
widgetApi = new I("/", "");
|
|
880
870
|
constructor(t) {
|
|
881
|
-
this.globalStore = t, this.widgetApi = new I(t.endpoint, t.sessionToken),
|
|
871
|
+
this.globalStore = t, this.widgetApi = new I(t.endpoint, t.sessionToken), l(this);
|
|
882
872
|
}
|
|
883
873
|
loadWidget = async ({ widget: t = "connect_widget", mode: e = "light", ...r }) => await this.widgetApi.requestWidgetUrl({
|
|
884
874
|
widget_url: { widget_type: t, color_scheme: e, ...r }
|
|
@@ -893,7 +883,7 @@ class Ot {
|
|
|
893
883
|
end: O(this.displayedDate)
|
|
894
884
|
};
|
|
895
885
|
constructor(t) {
|
|
896
|
-
|
|
886
|
+
l(this), this.globalStore = t, L(
|
|
897
887
|
() => this.globalStore.accountStore.visibleAccounts,
|
|
898
888
|
(e) => {
|
|
899
889
|
this.populateAccountFilterMap(e);
|
|
@@ -957,7 +947,7 @@ class Pt {
|
|
|
957
947
|
userFeatures = [];
|
|
958
948
|
userFeaturesLoaded = !1;
|
|
959
949
|
constructor(t) {
|
|
960
|
-
this.globalStore = t, this.api = new B(t.endpoint, t.sessionToken, t.onError),
|
|
950
|
+
this.globalStore = t, this.api = new B(t.endpoint, t.sessionToken, t.onError), l(this);
|
|
961
951
|
}
|
|
962
952
|
get userProfile() {
|
|
963
953
|
return this.globalStore.appDataStore.userProfile;
|
|
@@ -1026,7 +1016,7 @@ class Ee {
|
|
|
1026
1016
|
// UI Stores
|
|
1027
1017
|
globalUiStore;
|
|
1028
1018
|
constructor(t = N, e = "/", r, o) {
|
|
1029
|
-
this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onError = r, this.onStoreUpdate = o, this.accountStore = new st(this), this.appDataStore = new Ut(this), this.analyticsStore = new Et(this), this.beatStore = new ot(this), this.budgetsStore = new It(this), this.cashflowStore = new Q(this), this.categoryStore = new $(this), this.connectStore = new Lt(this), this.copyStore = new Dt(this), this.debtsStore = new at(this), this.finstrongStore = new nt(this), this.goalStore = new K(this), this.helpStore = new kt(this), this.holdingStore = new Nt(this), this.merchantStore = new
|
|
1019
|
+
this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onError = r, this.onStoreUpdate = o, this.accountStore = new st(this), this.appDataStore = new Ut(this), this.analyticsStore = new Et(this), this.beatStore = new ot(this), this.budgetsStore = new It(this), this.cashflowStore = new Q(this), this.categoryStore = new $(this), this.connectStore = new Lt(this), this.copyStore = new Dt(this), this.debtsStore = new at(this), this.finstrongStore = new nt(this), this.goalStore = new K(this), this.helpStore = new kt(this), this.holdingStore = new Nt(this), this.merchantStore = new ht(this), this.netWorthStore = new lt(this), this.notificationStore = new F(this), this.recurringTransactionsStore = new X(this), this.settingsStore = new gt(this), this.transactionStore = new Y(this), this.trendsStore = new z(this), this.userStore = new Pt(this), this.globalUiStore = new Ot(this), l(this), et(() => {
|
|
1030
1020
|
const { transactions: n } = this.transactionStore;
|
|
1031
1021
|
this.emitUpdate({
|
|
1032
1022
|
transactions: n
|
|
@@ -1075,7 +1065,7 @@ export {
|
|
|
1075
1065
|
T as BannerApi,
|
|
1076
1066
|
ke as BeatApi,
|
|
1077
1067
|
qs as BudgetNotificationTypes,
|
|
1078
|
-
|
|
1068
|
+
Xe as Calendar,
|
|
1079
1069
|
Je as CalendarSelectionTypes,
|
|
1080
1070
|
Ue as CategoryApi,
|
|
1081
1071
|
Sr as CategoryColors,
|
|
@@ -1092,7 +1082,7 @@ export {
|
|
|
1092
1082
|
Ls as CurrencyText,
|
|
1093
1083
|
dr as DATE_FORMATS_INTL,
|
|
1094
1084
|
V as DEFAULT_DONUT_SIZE,
|
|
1095
|
-
|
|
1085
|
+
Z as DEFAULT_STROKE_WIDTH,
|
|
1096
1086
|
ws as DataRow,
|
|
1097
1087
|
Ke as DateRangeSelector,
|
|
1098
1088
|
sr as Dialog,
|
|
@@ -1131,8 +1121,8 @@ export {
|
|
|
1131
1121
|
Io as NonConnectedStatuses,
|
|
1132
1122
|
Oe as NotificationApi,
|
|
1133
1123
|
Qs as NotificationTypes,
|
|
1134
|
-
|
|
1135
|
-
|
|
1124
|
+
hr as ORDINAL_DATE_FORMAT,
|
|
1125
|
+
lr as ORDINAL_MONTH_DAY_YEAR_FORMAT,
|
|
1136
1126
|
fr as PAYMENT_ACCOUNT_TYPES,
|
|
1137
1127
|
Cr as PaymentCategories,
|
|
1138
1128
|
mt as PlanTypes,
|
|
@@ -1144,7 +1134,7 @@ export {
|
|
|
1144
1134
|
Es as RecurrenceType,
|
|
1145
1135
|
ft as RecurrenceTypes,
|
|
1146
1136
|
As as RepeatingType,
|
|
1147
|
-
|
|
1137
|
+
hs as ResponsiveButton,
|
|
1148
1138
|
mr as SPENDING_ACCOUNT_TYPES,
|
|
1149
1139
|
Tt as ScheduledPaymentTypes,
|
|
1150
1140
|
we as ScheduledPaymentsApi,
|
|
@@ -1154,7 +1144,7 @@ export {
|
|
|
1154
1144
|
_s as SelectionBox,
|
|
1155
1145
|
or as SingleSegmentDonut,
|
|
1156
1146
|
Mr as Sizes,
|
|
1157
|
-
|
|
1147
|
+
Xs as StatusBar,
|
|
1158
1148
|
No as StatusName,
|
|
1159
1149
|
kr as TOUCH_TARGET,
|
|
1160
1150
|
ms as TabContentContainer,
|
|
@@ -1187,7 +1177,7 @@ export {
|
|
|
1187
1177
|
Fo as getLocale,
|
|
1188
1178
|
as as isIncome,
|
|
1189
1179
|
Ir as isValidNumber,
|
|
1190
|
-
|
|
1180
|
+
lo as useAccountDisplayName,
|
|
1191
1181
|
Rr as useAccountStore,
|
|
1192
1182
|
$r as useAppConfig,
|
|
1193
1183
|
Fr as useBudgetsStore,
|
|
@@ -1203,8 +1193,8 @@ export {
|
|
|
1203
1193
|
zr as useGlobalStore,
|
|
1204
1194
|
jr as useGlobalUiStore,
|
|
1205
1195
|
Vr as useGoalStore,
|
|
1206
|
-
|
|
1207
|
-
|
|
1196
|
+
Zr as useHelpStore,
|
|
1197
|
+
Xr as useHoldingStore,
|
|
1208
1198
|
po as useInsightsEnabled,
|
|
1209
1199
|
Jr as useLoad,
|
|
1210
1200
|
to as useMerchantStore,
|
|
@@ -16,9 +16,9 @@ import I from "@mui/material/Tooltip";
|
|
|
16
16
|
import B from "@mui/material/useMediaQuery";
|
|
17
17
|
import { G as F } from "../GlobalAccountFilter-B73Pw1hJ.mjs";
|
|
18
18
|
import { u as y } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
19
|
-
import { C as $ } from "../ConnectDrawer-
|
|
19
|
+
import { C as $ } from "../ConnectDrawer-C0wjwcJt.mjs";
|
|
20
20
|
import { u as z } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
21
|
-
const
|
|
21
|
+
const R = p(() => {
|
|
22
22
|
const t = S(), {
|
|
23
23
|
appDataStore: { banner: o, loadBanner: i, user: a }
|
|
24
24
|
} = _();
|
|
@@ -57,7 +57,7 @@ const H = p(() => {
|
|
|
57
57
|
)
|
|
58
58
|
}
|
|
59
59
|
) : null;
|
|
60
|
-
}),
|
|
60
|
+
}), T = ({ handleConnectClick: t }) => {
|
|
61
61
|
const { common: o } = b(), i = B("(max-width: 700px)");
|
|
62
62
|
return /* @__PURE__ */ e(W, { my: 4, children: i ? /* @__PURE__ */ e(I, { id: "add-accounts", placement: "bottom", title: o.add_accounts, children: /* @__PURE__ */ e(
|
|
63
63
|
A,
|
|
@@ -87,7 +87,7 @@ const H = p(() => {
|
|
|
87
87
|
children: o.add_accounts
|
|
88
88
|
}
|
|
89
89
|
) });
|
|
90
|
-
},
|
|
90
|
+
}, j = p(T), Q = () => {
|
|
91
91
|
const [t, o] = n.useState(!1), i = G("(max-width:320px)"), { common: a, connect: g } = b(), { config: d } = v(), { isMobile: f } = y(), x = () => {
|
|
92
92
|
const l = (/* @__PURE__ */ new Date()).getHours();
|
|
93
93
|
return l > 1 && l < 12 ? a.good_morning : l >= 12 && l < 18 ? a.good_afternoon : a.good_evening;
|
|
@@ -95,11 +95,11 @@ const H = p(() => {
|
|
|
95
95
|
return /* @__PURE__ */ c(n.Fragment, { children: [
|
|
96
96
|
/* @__PURE__ */ e(C, { sx: { gap: 12, mb: f ? 24 : 0, p: 24 }, children: /* @__PURE__ */ c(s, { alignItems: "center", flexDirection: "row", justifyContent: "space-between", children: [
|
|
97
97
|
/* @__PURE__ */ c(s, { children: [
|
|
98
|
-
/* @__PURE__ */ e(M, { variant: i ? "
|
|
98
|
+
/* @__PURE__ */ e(M, { variant: i ? "h2" : "h1", children: x() }),
|
|
99
99
|
/* @__PURE__ */ e(D, { color: "text.secondary", children: a.heres_your_spending_overview })
|
|
100
100
|
] }),
|
|
101
101
|
/* @__PURE__ */ c(s, { flexDirection: "row", children: [
|
|
102
|
-
d.show_connections_widget_in_master && /* @__PURE__ */ e(
|
|
102
|
+
d.show_connections_widget_in_master && /* @__PURE__ */ e(j, { handleConnectClick: () => o(!0) }),
|
|
103
103
|
/* @__PURE__ */ e(F, {})
|
|
104
104
|
] })
|
|
105
105
|
] }) }),
|
|
@@ -112,7 +112,7 @@ const H = p(() => {
|
|
|
112
112
|
}
|
|
113
113
|
)
|
|
114
114
|
] });
|
|
115
|
-
},
|
|
115
|
+
}, H = p(Q);
|
|
116
116
|
var h = /* @__PURE__ */ ((t) => (t[t.Main = 0] = "Main", t[t.RightSide = 1] = "RightSide", t[t.Disabled = 2] = "Disabled", t))(h || {});
|
|
117
117
|
const P = ({ widgets: t, isLoading: o }) => {
|
|
118
118
|
const { isDesktop: i, isMobile: a } = y(), { copyStore: g } = _();
|
|
@@ -131,9 +131,9 @@ const P = ({ widgets: t, isLoading: o }) => {
|
|
|
131
131
|
[d]
|
|
132
132
|
);
|
|
133
133
|
return /* @__PURE__ */ c(u, { container: !0, spacing: a ? 0 : 24, sx: { overflow: "scroll" }, children: [
|
|
134
|
-
/* @__PURE__ */ e(u, { sx: { pt: 16 }, xs: 12, children: g.isInitialized && /* @__PURE__ */ e(
|
|
134
|
+
/* @__PURE__ */ e(u, { sx: { pt: 16 }, xs: 12, children: g.isInitialized && /* @__PURE__ */ e(H, {}) }),
|
|
135
135
|
/* @__PURE__ */ c(u, { lg: 8, xs: 12, children: [
|
|
136
|
-
/* @__PURE__ */ e(
|
|
136
|
+
/* @__PURE__ */ e(R, {}),
|
|
137
137
|
o && /* @__PURE__ */ c(s, { direction: "column", spacing: 24, children: [
|
|
138
138
|
/* @__PURE__ */ e(m, { height: 100, variant: "rounded", width: "100%" }),
|
|
139
139
|
/* @__PURE__ */ e(m, { height: 300, variant: "rounded", width: "100%" }),
|