@mx-cartographer/experiences 4.1.2-alpha.mega23 → 4.1.2-alpha.mega24
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 +60 -60
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -39,7 +39,7 @@ import { addDays as OA } from "date-fns/addDays";
|
|
|
39
39
|
import { eachDayOfInterval as Jo } from "date-fns/eachDayOfInterval";
|
|
40
40
|
import { eachWeekOfInterval as Zo } from "date-fns/eachWeekOfInterval";
|
|
41
41
|
import { endOfMonth as Re } from "date-fns/endOfMonth";
|
|
42
|
-
import { format as
|
|
42
|
+
import { format as Ve } from "date-fns/format";
|
|
43
43
|
import { isSameMonth as $o } from "date-fns/isSameMonth";
|
|
44
44
|
import { startOfMonth as xe } from "date-fns/startOfMonth";
|
|
45
45
|
import { subMonths as bA } from "date-fns/subMonths";
|
|
@@ -826,7 +826,7 @@ const xt = 44, nr = (e, A) => e.find((n) => n.guid === A), Rc = (e, A) => e.find
|
|
|
826
826
|
);
|
|
827
827
|
return n ? r : r.join("");
|
|
828
828
|
}, v8 = (e, A, n, ...a) => !e || !A ? "" : P(n === 1 ? e : A, ...a), ZA = () => (window?.app?.options?.language || document.querySelector("html")?.getAttribute("lang") || "en-US").toLowerCase();
|
|
829
|
-
class
|
|
829
|
+
class Ye {
|
|
830
830
|
endpoint = "/";
|
|
831
831
|
headers = {};
|
|
832
832
|
constructor(A, n) {
|
|
@@ -946,7 +946,7 @@ const R = (e, A, n) => {
|
|
|
946
946
|
class Uc {
|
|
947
947
|
fetchInstance;
|
|
948
948
|
constructor(A, n) {
|
|
949
|
-
this.fetchInstance = new
|
|
949
|
+
this.fetchInstance = new Ye(A, n);
|
|
950
950
|
}
|
|
951
951
|
initializeAnalyticsSession = async (A, n) => {
|
|
952
952
|
const a = Qo.getParser(window.navigator.userAgent), { analytics_session: r } = await this.fetchInstance.post(M.ANALYTICS_SESSION, {
|
|
@@ -974,7 +974,7 @@ class Uc {
|
|
|
974
974
|
class Et {
|
|
975
975
|
fetchInstance;
|
|
976
976
|
constructor(A, n) {
|
|
977
|
-
this.fetchInstance = new
|
|
977
|
+
this.fetchInstance = new Ye(A, n);
|
|
978
978
|
}
|
|
979
979
|
getBeats = async (A, n) => {
|
|
980
980
|
const a = `page=${A || 1}&per_page=${n || 5}`;
|
|
@@ -989,7 +989,7 @@ class Et {
|
|
|
989
989
|
class sn {
|
|
990
990
|
fetchInstance;
|
|
991
991
|
constructor(A, n) {
|
|
992
|
-
this.fetchInstance = new
|
|
992
|
+
this.fetchInstance = new Ye(A, n);
|
|
993
993
|
}
|
|
994
994
|
addCategory = async (A) => this.fetchInstance.post(M.CATEGORIES, A).then((n) => n.category);
|
|
995
995
|
getCategories = async () => this.fetchInstance.get(M.CATEGORIES).then((A) => A.categories);
|
|
@@ -1005,14 +1005,14 @@ class sn {
|
|
|
1005
1005
|
class cn {
|
|
1006
1006
|
fetchInstance;
|
|
1007
1007
|
constructor(A, n) {
|
|
1008
|
-
this.fetchInstance = new
|
|
1008
|
+
this.fetchInstance = new Ye(A, n);
|
|
1009
1009
|
}
|
|
1010
1010
|
getGlobalCopy = async (A, n) => this.fetchInstance.post(`${M.LOCALIZED_CONTENT}/${A}`, { translation_key: n }).then((a) => a);
|
|
1011
1011
|
}
|
|
1012
1012
|
class y8 {
|
|
1013
1013
|
fetchInstance;
|
|
1014
1014
|
constructor(A, n) {
|
|
1015
|
-
this.fetchInstance = new
|
|
1015
|
+
this.fetchInstance = new Ye(A, n);
|
|
1016
1016
|
}
|
|
1017
1017
|
getLocalizedCopy = async (A) => this.fetchInstance.post(M.LOCALIZED_COPY, A).then((n) => n);
|
|
1018
1018
|
getLocalizedContent = async (A) => this.fetchInstance.post(`${M.LOCALIZED_CONTENT}/${A}`).then((n) => n);
|
|
@@ -1020,7 +1020,7 @@ class y8 {
|
|
|
1020
1020
|
class rr {
|
|
1021
1021
|
fetchInstance;
|
|
1022
1022
|
constructor(A, n) {
|
|
1023
|
-
this.fetchInstance = new
|
|
1023
|
+
this.fetchInstance = new Ye(A, n);
|
|
1024
1024
|
}
|
|
1025
1025
|
getNotifications = () => this.fetchInstance.get(M.NOTIFICATIONS).then(
|
|
1026
1026
|
(A) => A.notifications.map((n) => n.notification)
|
|
@@ -1036,7 +1036,7 @@ class rr {
|
|
|
1036
1036
|
class ir {
|
|
1037
1037
|
fetchInstance;
|
|
1038
1038
|
constructor(A, n) {
|
|
1039
|
-
this.fetchInstance = new
|
|
1039
|
+
this.fetchInstance = new Ye(A, n);
|
|
1040
1040
|
}
|
|
1041
1041
|
addScheduledPayment = async (A) => this.fetchInstance.post(M.SCHEDULED_PAYMENTS, {
|
|
1042
1042
|
...A,
|
|
@@ -1050,7 +1050,7 @@ class ir {
|
|
|
1050
1050
|
class or {
|
|
1051
1051
|
fetchInstance;
|
|
1052
1052
|
constructor(A, n) {
|
|
1053
|
-
this.fetchInstance = new
|
|
1053
|
+
this.fetchInstance = new Ye(A, n);
|
|
1054
1054
|
}
|
|
1055
1055
|
updateUser = async (A) => this.fetchInstance.put(M.USER, A).then((n) => n.user);
|
|
1056
1056
|
updateUserProfile = async (A) => this.fetchInstance.put(`${M.USER_PROFILES}/${A.guid}`, A).then((n) => n.user_profile);
|
|
@@ -1058,7 +1058,7 @@ class or {
|
|
|
1058
1058
|
class sr {
|
|
1059
1059
|
fetchInstance;
|
|
1060
1060
|
constructor(A, n) {
|
|
1061
|
-
this.fetchInstance = new
|
|
1061
|
+
this.fetchInstance = new Ye(A, n);
|
|
1062
1062
|
}
|
|
1063
1063
|
requestWidgetUrl = async (A) => this.fetchInstance.post(M.WIDGET_URLS, A).then((n) => n.widget_url);
|
|
1064
1064
|
}
|
|
@@ -1673,7 +1673,7 @@ const Wc = (e, A) => {
|
|
|
1673
1673
|
${h ? "mx-cmn-day-selected" : ""}
|
|
1674
1674
|
${m ? "mx-cmn-today" : ""}`,
|
|
1675
1675
|
variant: "Small",
|
|
1676
|
-
children:
|
|
1676
|
+
children: Ve(A, "d")
|
|
1677
1677
|
}
|
|
1678
1678
|
)
|
|
1679
1679
|
}
|
|
@@ -1775,7 +1775,7 @@ const ll = ({
|
|
|
1775
1775
|
onPreviousClick: S
|
|
1776
1776
|
}
|
|
1777
1777
|
),
|
|
1778
|
-
/* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-row", children: f[0].map((w, D) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ t(p, { bold: !0, variant: "Small", children:
|
|
1778
|
+
/* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-row", children: f[0].map((w, D) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ t(p, { bold: !0, variant: "Small", children: Ve(w, "EEEEE") }) }, D)) }),
|
|
1779
1779
|
f.map((w, D) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-week", children: w.map((_, O) => /* @__PURE__ */ t(
|
|
1780
1780
|
ol,
|
|
1781
1781
|
{
|
|
@@ -3385,7 +3385,7 @@ const hr = "connect_widget", gr = "connections_widget", Ml = ({
|
|
|
3385
3385
|
"& .MuiInputBase-adornedStart > .p": {
|
|
3386
3386
|
marginRight: e.Spacing.Tiny
|
|
3387
3387
|
}
|
|
3388
|
-
}),
|
|
3388
|
+
}), We = ({ label: e = "", size: A = 32 }) => {
|
|
3389
3389
|
const n = qe();
|
|
3390
3390
|
return /* @__PURE__ */ l(y, { alignItems: "center", gap: n.Spacing.XLarge, height: 450, justifyContent: "center", children: [
|
|
3391
3391
|
/* @__PURE__ */ t(ia, { size: A }),
|
|
@@ -3698,7 +3698,7 @@ class zl {
|
|
|
3698
3698
|
class Cr {
|
|
3699
3699
|
fetchInstance;
|
|
3700
3700
|
constructor(A, n) {
|
|
3701
|
-
this.fetchInstance = new
|
|
3701
|
+
this.fetchInstance = new Ye(A, n);
|
|
3702
3702
|
}
|
|
3703
3703
|
getAppData = async () => this.fetchInstance.get(M.APP_DATA).then((A) => A);
|
|
3704
3704
|
}
|
|
@@ -3749,7 +3749,7 @@ class ql {
|
|
|
3749
3749
|
class pr {
|
|
3750
3750
|
fetchInstance;
|
|
3751
3751
|
constructor(A, n) {
|
|
3752
|
-
this.fetchInstance = new
|
|
3752
|
+
this.fetchInstance = new Ye(A, n);
|
|
3753
3753
|
}
|
|
3754
3754
|
addBudget = async (A, n, a = null) => this.fetchInstance.post(M.BUDGETS, {
|
|
3755
3755
|
amount: n,
|
|
@@ -4095,7 +4095,7 @@ const Tt = () => {
|
|
|
4095
4095
|
class yr {
|
|
4096
4096
|
fetchInstance;
|
|
4097
4097
|
constructor(A, n) {
|
|
4098
|
-
this.fetchInstance = new
|
|
4098
|
+
this.fetchInstance = new Ye(A, n);
|
|
4099
4099
|
}
|
|
4100
4100
|
addTag = async (A) => this.fetchInstance.post(M.TAGS, A).then((n) => n.tag);
|
|
4101
4101
|
addTagging = async (A) => this.fetchInstance.post(M.TAGGINGS, A).then((n) => n.tagging);
|
|
@@ -4549,7 +4549,7 @@ const Yl = [
|
|
|
4549
4549
|
const d = s.tags.some(
|
|
4550
4550
|
(h) => dA(o, A.find((m) => m.guid === h)?.name)
|
|
4551
4551
|
), u = Le(s.date);
|
|
4552
|
-
return dA(o, s.payee) || dA(o, s.feed_description) || dA(o, s.category) || dA(o, ne(u, Z.MONTH)) || dA(o, ne(u, Z.DAY)) || dA(o, ne(u, Z.FULL_MONTH_DAY)) || dA(o, ne(u, Z.MONTH_DAY_YEAR)) || dA(o,
|
|
4552
|
+
return dA(o, s.payee) || dA(o, s.feed_description) || dA(o, s.category) || dA(o, ne(u, Z.MONTH)) || dA(o, ne(u, Z.DAY)) || dA(o, ne(u, Z.FULL_MONTH_DAY)) || dA(o, ne(u, Z.MONTH_DAY_YEAR)) || dA(o, Ve(u, Ic)) || dA(o, s.account) || dA(o, `${s.amount}`) || dA(o, s.memo) || d;
|
|
4553
4553
|
});
|
|
4554
4554
|
}, td = (e, A, n) => [...e].sort((a, r) => {
|
|
4555
4555
|
const i = A, o = (a[i] || "") > (r[i] || "");
|
|
@@ -4829,7 +4829,7 @@ const rA = () => {
|
|
|
4829
4829
|
r.href = `data:attachment/csv;charset=utf-8,${a}`, r.download = "transactions.csv", document.body.appendChild(r), r.click(), document.body.removeChild(r);
|
|
4830
4830
|
}, cd = (e, A) => e.map((n) => ({
|
|
4831
4831
|
// TODO: Data format should be localized
|
|
4832
|
-
Date:
|
|
4832
|
+
Date: Ve(Le(n.date), "MM/dd/yy"),
|
|
4833
4833
|
Description: dd(n),
|
|
4834
4834
|
"Original Description": n.feed_description,
|
|
4835
4835
|
Amount: `${n.amount}`,
|
|
@@ -4908,7 +4908,7 @@ const rA = () => {
|
|
|
4908
4908
|
}, wr = 65, Sr = 34, pd = ({
|
|
4909
4909
|
bgcolor: e,
|
|
4910
4910
|
height: A = "calc(100dvh - 36px)",
|
|
4911
|
-
loader: n = /* @__PURE__ */ t(
|
|
4911
|
+
loader: n = /* @__PURE__ */ t(We, { label: "Loading", size: 40 }),
|
|
4912
4912
|
onClick: a,
|
|
4913
4913
|
showInsights: r = !1,
|
|
4914
4914
|
showLoader: i = !1,
|
|
@@ -5522,11 +5522,11 @@ const Dd = ({
|
|
|
5522
5522
|
const A = [], n = ie();
|
|
5523
5523
|
for (let a = 0; a <= Tr; a++) {
|
|
5524
5524
|
const r = xe(bA(n, Tr - a)), o = e.filter(
|
|
5525
|
-
(s) => s.year_month === Number(
|
|
5525
|
+
(s) => s.year_month === Number(Ve(r, "yyyyMM"))
|
|
5526
5526
|
).reduce((s, c) => s + c.total, 0);
|
|
5527
5527
|
A.push({
|
|
5528
5528
|
amount: o,
|
|
5529
|
-
isoDate:
|
|
5529
|
+
isoDate: Ve(r, "yyyy-MM-dd"),
|
|
5530
5530
|
label: ne(r, Z.MONTH_YEAR)
|
|
5531
5531
|
});
|
|
5532
5532
|
}
|
|
@@ -6955,7 +6955,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
6955
6955
|
}, Hn = () => {
|
|
6956
6956
|
Se(!1), i();
|
|
6957
6957
|
};
|
|
6958
|
-
return !K || !Je ? /* @__PURE__ */ t(
|
|
6958
|
+
return !K || !Je ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ l(
|
|
6959
6959
|
pA,
|
|
6960
6960
|
{
|
|
6961
6961
|
accountOptions: r,
|
|
@@ -7354,25 +7354,25 @@ const Ui = ({ transaction: e }) => {
|
|
|
7354
7354
|
gridColumn: 1,
|
|
7355
7355
|
zIndex: 2
|
|
7356
7356
|
}, Dn = (e) => e ? { margin: "0 0 -6px -4px" } : void 0, Da = ({ isOffset: e = !1, size: A = 16 }) => /* @__PURE__ */ t(VA, { size: A, sx: { ...Dn(e) }, children: /* @__PURE__ */ t(ec, { color: "primary", sx: { fontSize: A, ...Ln } }) }), xa = ({ isOffset: e = !1, size: A = 16 }) => /* @__PURE__ */ t(VA, { size: A, sx: { ...Dn(e) }, children: /* @__PURE__ */ t(Ac, { sx: { color: "categories.income", fontSize: A, ...Ln } }) }), Oa = ({ isOffset: e = !1, size: A = 16 }) => /* @__PURE__ */ t(VA, { size: A, sx: { ...Dn(e) }, children: /* @__PURE__ */ t(rn, { color: "error", sx: { fontSize: A, ...Ln } }) }), _a = ({ isOffset: e = !1, size: A = 16 }) => /* @__PURE__ */ t(VA, { size: A, sx: { ...Dn(e) }, children: /* @__PURE__ */ t(ha, { color: "success", sx: { fontSize: A, ...Ln } }) }), xr = ({ copy: e, date: A, type: n }) => {
|
|
7357
|
-
let a = A && gi(A) ? P(e.monthly_ordinal,
|
|
7357
|
+
let a = A && gi(A) ? P(e.monthly_ordinal, Ve(A, "do")) : e.monthly;
|
|
7358
7358
|
switch (n) {
|
|
7359
7359
|
case X.EveryQuarter:
|
|
7360
|
-
a = A ? P(e.quarterly_ordinal,
|
|
7360
|
+
a = A ? P(e.quarterly_ordinal, Ve(A, "do")) : e.quarterly;
|
|
7361
7361
|
break;
|
|
7362
7362
|
case X.EveryWeek:
|
|
7363
|
-
a = A ? P(e.weekly_ordinal,
|
|
7363
|
+
a = A ? P(e.weekly_ordinal, Ve(A, "do")) : e.weekly;
|
|
7364
7364
|
break;
|
|
7365
7365
|
case X.EveryYear:
|
|
7366
|
-
a = A ? P(e.anually_ordinal,
|
|
7366
|
+
a = A ? P(e.anually_ordinal, Ve(A, "do")) : e.anually;
|
|
7367
7367
|
break;
|
|
7368
7368
|
case X.EveryOtherWeek:
|
|
7369
|
-
a = A ? P(e.every_other_week_ordinal,
|
|
7369
|
+
a = A ? P(e.every_other_week_ordinal, Ve(A, "do")) : e.every_other_week;
|
|
7370
7370
|
break;
|
|
7371
7371
|
case X.EveryOtherMonth:
|
|
7372
|
-
a = A ? P(e.every_other_month_ordinal,
|
|
7372
|
+
a = A ? P(e.every_other_month_ordinal, Ve(A, "do")) : e.every_other_month;
|
|
7373
7373
|
break;
|
|
7374
7374
|
case X.EveryOtherQuarter:
|
|
7375
|
-
a = A ? P(e.every_other_quarter_ordinal,
|
|
7375
|
+
a = A ? P(e.every_other_quarter_ordinal, Ve(A, "do")) : e.every_other_quarter;
|
|
7376
7376
|
break;
|
|
7377
7377
|
}
|
|
7378
7378
|
return a;
|
|
@@ -9643,7 +9643,7 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
|
|
|
9643
9643
|
class Hr {
|
|
9644
9644
|
fetchInstance;
|
|
9645
9645
|
constructor(A, n) {
|
|
9646
|
-
this.fetchInstance = new
|
|
9646
|
+
this.fetchInstance = new Ye(A, n);
|
|
9647
9647
|
}
|
|
9648
9648
|
addCashflowEvent = async (A) => this.fetchInstance.post(M.CASHFLOW_EVENTS, { ...A }).then((n) => n);
|
|
9649
9649
|
addCashflowSequence = async (A) => this.fetchInstance.post(M.CASHFLOW_SEQUENCES, { ...A }).then((n) => n.cashflow_sequence);
|
|
@@ -10218,7 +10218,7 @@ const tn = {
|
|
|
10218
10218
|
n && A([a]).finally(() => {
|
|
10219
10219
|
i(!0);
|
|
10220
10220
|
});
|
|
10221
|
-
}, [n, a]), !n || !r ? /* @__PURE__ */ t(
|
|
10221
|
+
}, [n, a]), !n || !r ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ l(
|
|
10222
10222
|
fA,
|
|
10223
10223
|
{
|
|
10224
10224
|
sx: {
|
|
@@ -11068,7 +11068,7 @@ const _g = ({
|
|
|
11068
11068
|
x && C(x), z && m(z), i(!0);
|
|
11069
11069
|
}, O = () => {
|
|
11070
11070
|
};
|
|
11071
|
-
return !u || !n ? /* @__PURE__ */ t(
|
|
11071
|
+
return !u || !n ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ l(
|
|
11072
11072
|
pA,
|
|
11073
11073
|
{
|
|
11074
11074
|
accountOptions: I,
|
|
@@ -11216,7 +11216,7 @@ class Kg {
|
|
|
11216
11216
|
class qr {
|
|
11217
11217
|
fetchInstance;
|
|
11218
11218
|
constructor(A, n) {
|
|
11219
|
-
this.fetchInstance = new
|
|
11219
|
+
this.fetchInstance = new Ye(A, n);
|
|
11220
11220
|
}
|
|
11221
11221
|
addGoal = async (A) => this.fetchInstance.post(M.GOALS, A).then((n) => n.goal);
|
|
11222
11222
|
addRetirementGoal = async (A) => this.fetchInstance.post(M.RETIREMENT_GOALS, A).then((n) => n.retirement_goal);
|
|
@@ -12143,7 +12143,7 @@ const mo = T(
|
|
|
12143
12143
|
sx: A,
|
|
12144
12144
|
title: s.title,
|
|
12145
12145
|
children: [
|
|
12146
|
-
!i && /* @__PURE__ */ t(
|
|
12146
|
+
!i && /* @__PURE__ */ t(We, {}),
|
|
12147
12147
|
i && /* @__PURE__ */ l(y, { mx: a ? 0 : 48, my: 24, children: [
|
|
12148
12148
|
/* @__PURE__ */ l(
|
|
12149
12149
|
_A,
|
|
@@ -12640,7 +12640,7 @@ const s1 = /^[ a-zA-ZÀ-ÿ0-9]+$/, c1 = 50, kr = 65, l1 = ({
|
|
|
12640
12640
|
),
|
|
12641
12641
|
/* @__PURE__ */ t(gA, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(Ae, { children: /* @__PURE__ */ l(N, { height: e, overflow: "auto", ref: u, children: [
|
|
12642
12642
|
/* @__PURE__ */ l(N, { height: h.getTotalSize(), position: "relative", children: [
|
|
12643
|
-
n && /* @__PURE__ */ t(
|
|
12643
|
+
n && /* @__PURE__ */ t(We, { label: "Loading...", size: 32 }),
|
|
12644
12644
|
!n && h.getVirtualItems().length > 0 && h.getVirtualItems().map((m) => {
|
|
12645
12645
|
const C = a[m.index];
|
|
12646
12646
|
return /* @__PURE__ */ l(
|
|
@@ -12669,7 +12669,7 @@ const s1 = /^[ a-zA-ZÀ-ÿ0-9]+$/, c1 = 50, kr = 65, l1 = ({
|
|
|
12669
12669
|
class Gr {
|
|
12670
12670
|
fetchInstance;
|
|
12671
12671
|
constructor(A, n) {
|
|
12672
|
-
this.fetchInstance = new
|
|
12672
|
+
this.fetchInstance = new Ye(A, n);
|
|
12673
12673
|
}
|
|
12674
12674
|
getMerchants = async (A = [], n = [], a = 1, r = 25) => {
|
|
12675
12675
|
let i = M.MERCHANTS;
|
|
@@ -12708,7 +12708,7 @@ const fo = 13, u1 = (e, A) => e.filter((n) => {
|
|
|
12708
12708
|
return e[e.length - 1];
|
|
12709
12709
|
}, g1 = (e, A) => e.year_month - A.year_month, m1 = () => Array.from({ length: fo }, (e, A) => Math.floor(xe(bA(/* @__PURE__ */ new Date(), A)).getTime() / 1e3)).sort(), C1 = (e, A, n) => !e.length || !A.length ? [] : m1().reduceRight((r, i) => {
|
|
12710
12710
|
const o = A.filter(
|
|
12711
|
-
({ year_month: u }) => u === parseInt(
|
|
12711
|
+
({ year_month: u }) => u === parseInt(Ve(Le(i), "yyyyMM"))
|
|
12712
12712
|
), s = e.map((u) => {
|
|
12713
12713
|
const h = o.find((C) => C.account_guid === u.guid), m = {
|
|
12714
12714
|
change: 0,
|
|
@@ -12848,7 +12848,7 @@ const y1 = ({
|
|
|
12848
12848
|
selectedData: i
|
|
12849
12849
|
}) => {
|
|
12850
12850
|
const { isMobile: o } = Be(), { availableWidth: s } = ct(), c = cA(), d = s - 320, u = e.map((f) => ({
|
|
12851
|
-
x:
|
|
12851
|
+
x: Ve(Le(f.x), "MMM"),
|
|
12852
12852
|
y: f.y
|
|
12853
12853
|
})), h = i ? { index: e.findIndex((f) => f.x === i.x) } : void 0, m = A ? { index: e.findIndex((f) => f.x === A.x) } : void 0, C = (f) => ({
|
|
12854
12854
|
fill: f === h?.index ? c.palette.success.main : "",
|
|
@@ -13247,7 +13247,7 @@ const y1 = ({
|
|
|
13247
13247
|
)
|
|
13248
13248
|
] })
|
|
13249
13249
|
}
|
|
13250
|
-
) : /* @__PURE__ */ t(
|
|
13250
|
+
) : /* @__PURE__ */ t(We, {});
|
|
13251
13251
|
}), z8 = (e) => {
|
|
13252
13252
|
switch (e) {
|
|
13253
13253
|
case 1:
|
|
@@ -13368,7 +13368,7 @@ const H1 = (e, A) => {
|
|
|
13368
13368
|
return xA(() => () => {
|
|
13369
13369
|
a().finally();
|
|
13370
13370
|
}, []), /* @__PURE__ */ l(fs, { sx: { p: 16 }, children: [
|
|
13371
|
-
A && /* @__PURE__ */ t(
|
|
13371
|
+
A && /* @__PURE__ */ t(We, { label: r?.loading, size: 40 }),
|
|
13372
13372
|
!A && n.length === 0 && /* @__PURE__ */ t(yA, { sx: { p: 16 }, children: /* @__PURE__ */ t(p, { fontStyle: "italic", sx: { textAlign: "center" }, children: r.no_notifications }) }),
|
|
13373
13373
|
!A && n.slice().sort((o, s) => s.delivered_at - o.delivered_at).map((o, s) => {
|
|
13374
13374
|
const c = H1(s, n);
|
|
@@ -14209,7 +14209,7 @@ const Fn = ({
|
|
|
14209
14209
|
onBackClick: e,
|
|
14210
14210
|
sx: A,
|
|
14211
14211
|
title: c.title,
|
|
14212
|
-
children: r ? /* @__PURE__ */ t(
|
|
14212
|
+
children: r ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ l(Q, { children: [
|
|
14213
14213
|
/* @__PURE__ */ l(N, { sx: { px: h ? 24 : 12 }, children: [
|
|
14214
14214
|
u.length < 1 && /* @__PURE__ */ t(p, { display: "flex", justifyContent: "center", my: 24, children: c.no_accounts }),
|
|
14215
14215
|
/* @__PURE__ */ t(im, {})
|
|
@@ -14742,7 +14742,7 @@ const Fn = ({
|
|
|
14742
14742
|
class Ur {
|
|
14743
14743
|
fetchInstance;
|
|
14744
14744
|
constructor(A, n) {
|
|
14745
|
-
this.fetchInstance = new
|
|
14745
|
+
this.fetchInstance = new Ye(A, n);
|
|
14746
14746
|
}
|
|
14747
14747
|
createAccount = async (A) => this.fetchInstance.post(M.ACCOUNTS, A).then((n) => n.account).catch((n) => n);
|
|
14748
14748
|
deleteAccount = async (A) => this.fetchInstance.delete(`${M.ACCOUNTS}/${A}`).catch((n) => n);
|
|
@@ -15101,7 +15101,7 @@ const xm = ({
|
|
|
15101
15101
|
click_type: "bubble"
|
|
15102
15102
|
});
|
|
15103
15103
|
};
|
|
15104
|
-
return o ? /* @__PURE__ */ t(y, { alignItems: "center", height: e, justifyContent: "center", width: Math.abs(u), children: /* @__PURE__ */ t(
|
|
15104
|
+
return o ? /* @__PURE__ */ t(y, { alignItems: "center", height: e, justifyContent: "center", width: Math.abs(u), children: /* @__PURE__ */ t(We, {}) }) : /* @__PURE__ */ t(N, { ml: n || d ? 0 : 24, children: n || !s ? /* @__PURE__ */ t(_m, {}) : /* @__PURE__ */ t(
|
|
15105
15105
|
Om,
|
|
15106
15106
|
{
|
|
15107
15107
|
height: e,
|
|
@@ -15711,7 +15711,7 @@ const xm = ({
|
|
|
15711
15711
|
}, V = () => {
|
|
15712
15712
|
z(!1);
|
|
15713
15713
|
}, te = yt(m.end, xe(/* @__PURE__ */ new Date()));
|
|
15714
|
-
return !s || !_ ? /* @__PURE__ */ t(
|
|
15714
|
+
return !s || !_ ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ l(
|
|
15715
15715
|
pA,
|
|
15716
15716
|
{
|
|
15717
15717
|
accountOptions: r,
|
|
@@ -15728,7 +15728,7 @@ const xm = ({
|
|
|
15728
15728
|
sx: A,
|
|
15729
15729
|
title: i.budgets_title,
|
|
15730
15730
|
children: [
|
|
15731
|
-
(!s || !_) && /* @__PURE__ */ t(
|
|
15731
|
+
(!s || !_) && /* @__PURE__ */ t(We, {}),
|
|
15732
15732
|
s && _ && /* @__PURE__ */ l(y, { direction: S || w ? "row" : "column", height: "100%", width: "100%", children: [
|
|
15733
15733
|
/* @__PURE__ */ t(y, { height: S || w ? "calc(100dvh - 150px)" : 450, children: /* @__PURE__ */ t(
|
|
15734
15734
|
Eo,
|
|
@@ -15953,22 +15953,22 @@ const Qm = () => {
|
|
|
15953
15953
|
help_content: "Find answers, get support, and learn how to make the most of your experience.",
|
|
15954
15954
|
help_title: "Help Tool"
|
|
15955
15955
|
}, Jm = () => {
|
|
15956
|
-
const { isInitialized: e } = Sn(), {
|
|
15956
|
+
const { isInitialized: e } = Sn(), { appConfig: A, helpCategories: n, setAppConfig: a } = yl(), r = window.app?.config;
|
|
15957
15957
|
g.useEffect(() => {
|
|
15958
|
-
!e || !
|
|
15959
|
-
}, [e,
|
|
15960
|
-
const
|
|
15961
|
-
},
|
|
15958
|
+
!e || !r || a(r);
|
|
15959
|
+
}, [e, r]);
|
|
15960
|
+
const i = () => {
|
|
15961
|
+
}, o = () => {
|
|
15962
15962
|
};
|
|
15963
|
-
return /* @__PURE__ */ t(pA, { children: /* @__PURE__ */ t(N, { children: /* @__PURE__ */ t(
|
|
15963
|
+
return !e || !A ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ t(pA, { children: /* @__PURE__ */ t(N, { children: /* @__PURE__ */ t(
|
|
15964
15964
|
Vm,
|
|
15965
15965
|
{
|
|
15966
15966
|
buttonText: jn.button_text,
|
|
15967
|
-
helpCategories:
|
|
15967
|
+
helpCategories: n,
|
|
15968
15968
|
helpContent: jn.help_content,
|
|
15969
15969
|
helpTitle: jn.help_title,
|
|
15970
|
-
onRequestHelp:
|
|
15971
|
-
onTopicSelect:
|
|
15970
|
+
onRequestHelp: i,
|
|
15971
|
+
onTopicSelect: o
|
|
15972
15972
|
}
|
|
15973
15973
|
) }) });
|
|
15974
15974
|
}, Q8 = T(Jm), Ba = ({
|
|
@@ -18974,7 +18974,7 @@ const Vt = g.createContext(null), gC = ({
|
|
|
18974
18974
|
const u = (h) => {
|
|
18975
18975
|
i(h[0], h[1]);
|
|
18976
18976
|
};
|
|
18977
|
-
return !r || !c ? /* @__PURE__ */ t(
|
|
18977
|
+
return !r || !c ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ t(
|
|
18978
18978
|
pA,
|
|
18979
18979
|
{
|
|
18980
18980
|
accountOptions: n,
|
|
@@ -19216,7 +19216,7 @@ const np = (e) => e.reduce((n, a) => {
|
|
|
19216
19216
|
}, at = (Se) => {
|
|
19217
19217
|
a(G.TRENDS_HOVER_POINT, { category: Se });
|
|
19218
19218
|
};
|
|
19219
|
-
return !m || !I ? /* @__PURE__ */ t(
|
|
19219
|
+
return !m || !I ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ l(
|
|
19220
19220
|
pA,
|
|
19221
19221
|
{
|
|
19222
19222
|
accountOptions: s,
|
|
@@ -19368,7 +19368,7 @@ const np = (e) => e.reduce((n, a) => {
|
|
|
19368
19368
|
a && n(i).finally(() => {
|
|
19369
19369
|
s(!0);
|
|
19370
19370
|
});
|
|
19371
|
-
}, [a, i]), !a || !o ? /* @__PURE__ */ t(
|
|
19371
|
+
}, [a, i]), !a || !o ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ t(
|
|
19372
19372
|
lt,
|
|
19373
19373
|
{
|
|
19374
19374
|
onPrimaryCtaClick: e,
|
|
@@ -19448,7 +19448,7 @@ export {
|
|
|
19448
19448
|
re as Drawer,
|
|
19449
19449
|
bi as ErrorStatuses,
|
|
19450
19450
|
ad as ExpenseStatus,
|
|
19451
|
-
|
|
19451
|
+
Ye as Fetch,
|
|
19452
19452
|
Ze as FieldType,
|
|
19453
19453
|
cn as GlobalCopyApi,
|
|
19454
19454
|
zl as GlobalCopyStore,
|
|
@@ -19472,7 +19472,7 @@ export {
|
|
|
19472
19472
|
ya as LineChart,
|
|
19473
19473
|
LA as ListItemAction,
|
|
19474
19474
|
Bl as ListItemWrapper,
|
|
19475
|
-
|
|
19475
|
+
We as Loader,
|
|
19476
19476
|
y8 as LocalizedCopyApi,
|
|
19477
19477
|
W8 as ManageAccountsDrawer,
|
|
19478
19478
|
Na as ManageIncome,
|