@mx-cartographer/experiences 7.0.27-alpha.mm0 → 7.0.27-alpha.sms1
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 +0 -4
- package/dist/{Account-DJ7VG5hs.mjs → Account-BW3-oYEs.mjs} +1 -1
- package/dist/{AccountDetailsContent-YtqGgQmV.mjs → AccountDetailsContent-UxSEMBo_.mjs} +8 -8
- package/dist/{AccountDetailsHeader-DJk0hheh.mjs → AccountDetailsHeader-Eb3WvBGm.mjs} +5 -5
- package/dist/{AccountFields-BJfIdeay.mjs → AccountFields-CIz-r3gP.mjs} +2 -2
- package/dist/{AccountListItem-CkDTN1Bi.mjs → AccountListItem-B-ZjJ4Gp.mjs} +3 -3
- package/dist/{AccountStore-CJl0ld02.mjs → AccountStore-BaMynkQT.mjs} +26 -26
- package/dist/{Accounts-BYGu-bN1.mjs → Accounts-CA-nqAjT.mjs} +1 -1
- package/dist/{BeatApi-DhJpgCLz.mjs → BeatApi-DLu87ijw.mjs} +3 -3
- package/dist/{BeatStore-IBnXd4YK.mjs → BeatStore-By4aGoRM.mjs} +17 -17
- package/dist/{BudgetUtil-BB9gMyLW.mjs → BudgetUtil-CeSLAcsl.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-B-W3eXHU.mjs → CategorySelectorDrawer-BJ9jlCyt.mjs} +1 -1
- package/dist/{CategoryStore-BCcpI3oJ.mjs → CategoryStore-BOyzQjQp.mjs} +4 -4
- package/dist/{ConnectDrawer-COy3Xwqv.mjs → ConnectDrawer-phFH6OHt.mjs} +1 -1
- package/dist/{ConnectionsDrawer-B36W8Qvy.mjs → ConnectionsDrawer-ihxkAi1P.mjs} +2 -2
- package/dist/{CurrencyInput-B6gF46iv.mjs → CurrencyInput-bEx2Mbd0.mjs} +1 -1
- package/dist/{DebtsStore-2yxA32_7.mjs → DebtsStore-VkyMADzd.mjs} +1 -1
- package/dist/{ExportCsvAction-C3s1m5os.mjs → ExportCsvAction-CbdFfDV5.mjs} +3 -3
- package/dist/{Fetch-87LIQbEA.mjs → Fetch-CkFKy79O.mjs} +10 -11
- package/dist/{FinstrongStore-F2c607dj.mjs → FinstrongStore-mkALvztw.mjs} +4 -4
- package/dist/{GoalStore-dBJBsl-g.mjs → GoalStore-eSOkI6uE.mjs} +6 -6
- package/dist/{Help-CWsL8d5P.mjs → Help-KAAMEubC.mjs} +1 -1
- package/dist/{LineChart-CBKadOFA.mjs → LineChart-BWWmmJxV.mjs} +1 -1
- package/dist/{ListItemAction-CpYlo5Sh.mjs → ListItemAction-DNZZ5fSa.mjs} +1 -1
- package/dist/{ManageIncome-CGoLh7xs.mjs → ManageIncome-DbsiKUoO.mjs} +4 -4
- package/dist/MerchantStore-DVH-QOf0.mjs +37 -0
- package/dist/{MicroWidgetContainer-DQXTwO5i.mjs → MicroWidgetContainer-Dxz8uBN9.mjs} +1 -1
- package/dist/{MiniWidgetContainer-BF2Qwhh-.mjs → MiniWidgetContainer-CTyjmE1h.mjs} +1 -1
- package/dist/{NetWorthStore-CrQtq5rq.mjs → NetWorthStore-B6xF9eGH.mjs} +2 -2
- package/dist/{NotificationSettings-gz1XBCBs.mjs → NotificationSettings-D5xBFiWs.mjs} +53 -53
- package/dist/{NotificationStore-C6PH6MKm.mjs → NotificationStore-DHtSGySy.mjs} +4 -8
- package/dist/{OriginalBalanceAction-C3afa-mq.mjs → OriginalBalanceAction-DepsKiJz.mjs} +3 -3
- package/dist/{RecurringSettings-fjYVNmPp.mjs → RecurringSettings-Dj29piAQ.mjs} +3 -3
- package/dist/{RecurringTransactionsStore-DeLXfuC4.mjs → RecurringTransactionsStore-D62XJtdL.mjs} +16 -20
- package/dist/{SettingsStore-0aHfHlOE.mjs → SettingsStore-B4gi6oOw.mjs} +29 -33
- package/dist/{TransactionApi-B3Tksf7L.mjs → TransactionApi-DbbcjI2L.mjs} +29 -29
- package/dist/{TransactionDetails--DPYM8la.mjs → TransactionDetails-C-z3HGTT.mjs} +5 -5
- package/dist/{TransactionStore-Cd25G0gH.mjs → TransactionStore-Cep_Eeql.mjs} +25 -29
- package/dist/{TrendsStore-ReCVjB8o.mjs → TrendsStore-WrHxzdbQ.mjs} +1 -1
- package/dist/{User-DD7Pb2ze.mjs → User-Dq9Qj764.mjs} +1 -1
- package/dist/{ViewMoreMicroCard-C66pzgfS.mjs → ViewMoreMicroCard-DFAY0tA8.mjs} +2 -5
- package/dist/{WidgetContainer-C1NlG0pd.mjs → WidgetContainer-CdBs9WOZ.mjs} +2 -2
- package/dist/accounts/api/AccountApi.d.ts +2 -2
- package/dist/accounts/index.es.js +12 -12
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/api/BudgetsApi.d.ts +2 -2
- package/dist/budgets/index.es.js +10 -10
- package/dist/cashflow/api/CashflowApi.d.ts +2 -3
- package/dist/cashflow/index.es.js +10 -10
- package/dist/categories/index.es.js +2 -2
- package/dist/common/api/AnalyticsApi.d.ts +2 -2
- package/dist/common/api/AppDataApi.d.ts +2 -2
- package/dist/common/api/BeatApi.d.ts +2 -2
- package/dist/common/api/CategoryApi.d.ts +3 -2
- package/dist/common/api/GlobalCopyApi.d.ts +1 -2
- package/dist/common/api/LocalizedCopyApi.d.ts +1 -2
- package/dist/common/api/NotificationApi.d.ts +2 -2
- package/dist/common/api/ScheduledPaymentsApi.d.ts +2 -3
- package/dist/common/api/UserApi.d.ts +2 -2
- package/dist/common/context/GlobalDataProvider.d.ts +2 -3
- package/dist/common/context/hooks.d.ts +1 -4
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/index.es.js +310 -316
- package/dist/common/stores/GlobalStore.d.ts +2 -3
- package/dist/common/types/index.d.ts +0 -1
- package/dist/common/utils/Fetch.d.ts +1 -3
- package/dist/dashboard/index.es.js +2 -2
- package/dist/debts/index.es.js +9 -9
- package/dist/{exportTransactionsToCSV-Ch_T5Xhk.mjs → exportTransactionsToCSV-B5qAKd6C.mjs} +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +1 -2
- package/dist/finstrong/index.es.js +7 -7
- package/dist/goals/api/GoalApi.d.ts +2 -3
- package/dist/goals/index.es.js +11 -11
- package/dist/help/api/HelpApi.d.ts +2 -2
- package/dist/help/index.es.js +3 -3
- package/dist/hooks-DkUqN6JE.mjs +71 -0
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/api/HoldingApi.d.ts +2 -3
- package/dist/investments/index.es.js +3 -3
- package/dist/merchants/api/MerchantApi.d.ts +1 -2
- package/dist/merchants/index.es.js +2 -2
- package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +1 -2
- package/dist/microinsights/context/hooks.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +7 -7
- package/dist/notifications/index.es.js +5 -5
- package/dist/recurringtransactions/api/RepeatingTransactionsApi.d.ts +2 -2
- package/dist/recurringtransactions/index.es.js +10 -10
- package/dist/settings/api/SettingsApi.d.ts +2 -3
- package/dist/settings/index.es.js +7 -7
- package/dist/spending/index.es.js +4 -4
- package/dist/transactions/api/TransactionApi.d.ts +2 -3
- package/dist/transactions/index.es.js +14 -14
- package/dist/trends/index.es.js +10 -10
- package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-DaDBSR_1.mjs} +29 -29
- package/package.json +1 -1
- package/dist/MerchantStore-DrFvsUyy.mjs +0 -37
- package/dist/common/types/Handlers.d.ts +0 -2
- package/dist/hooks-CTieq90n.mjs +0 -74
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { makeAutoObservable as m, runInAction as s } from "mobx";
|
|
2
|
+
import { F as p, A as c } from "./Fetch-CkFKy79O.mjs";
|
|
3
|
+
class h {
|
|
4
|
+
fetchInstance;
|
|
5
|
+
constructor(t, n) {
|
|
6
|
+
this.fetchInstance = new p(t, n);
|
|
7
|
+
}
|
|
8
|
+
getMerchants = async (t = [], n = [], r = 1, o = 25) => {
|
|
9
|
+
let a = c.MERCHANTS;
|
|
10
|
+
return a += `?page=${r}&per_page=${o}`, t.length && t.forEach((e) => a += `&fuzzy_name[]=${e}`), n.length && n.forEach((e) => a += `&guid[]=${e}`), this.fetchInstance.get(a).then((e) => e.merchants);
|
|
11
|
+
};
|
|
12
|
+
getMerchantByGuid = async (t) => this.fetchInstance.get(`${c.MERCHANTS}/${t}`).then((n) => n.merchant);
|
|
13
|
+
}
|
|
14
|
+
class l {
|
|
15
|
+
globalStore;
|
|
16
|
+
api = new h("/", "");
|
|
17
|
+
merchant = null;
|
|
18
|
+
merchants = [];
|
|
19
|
+
isLoading = !1;
|
|
20
|
+
constructor(t) {
|
|
21
|
+
this.globalStore = t, this.api = new h(t.endpoint, t.sessionToken), m(this);
|
|
22
|
+
}
|
|
23
|
+
loadMerchants = async (t = "") => {
|
|
24
|
+
this.isLoading = !0;
|
|
25
|
+
const n = await this.api.getMerchants([t]);
|
|
26
|
+
s(() => {
|
|
27
|
+
this.merchants = n, this.isLoading = !1;
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
loadMerchantByGuid = async (t) => {
|
|
31
|
+
const n = await this.api.getMerchantByGuid(t);
|
|
32
|
+
s(() => this.merchant = n);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
l as M
|
|
37
|
+
};
|
|
@@ -6,7 +6,7 @@ import b from "@mui/material/CardHeader";
|
|
|
6
6
|
import { P as u, H3 as v } from "@mxenabled/mxui";
|
|
7
7
|
import { ChevronRight as W } from "@mxenabled/mx-icons";
|
|
8
8
|
import { u as M } from "./useDimensions-27p2evRx.mjs";
|
|
9
|
-
import { W as w } from "./hooks-
|
|
9
|
+
import { W as w } from "./hooks-DkUqN6JE.mjs";
|
|
10
10
|
const H = ({
|
|
11
11
|
children: e,
|
|
12
12
|
className: o,
|
|
@@ -7,7 +7,7 @@ import b from "@mui/material/IconButton";
|
|
|
7
7
|
import { Icon as C, ChevronRight as v } from "@mxenabled/mx-icons";
|
|
8
8
|
import { Text as W, H3 as H } from "@mxenabled/mxui";
|
|
9
9
|
import { u as I } from "./useDimensions-27p2evRx.mjs";
|
|
10
|
-
import { W as M } from "./hooks-
|
|
10
|
+
import { W as M } from "./hooks-DkUqN6JE.mjs";
|
|
11
11
|
const j = ({
|
|
12
12
|
className: t = "mx-cmn-mini-widget",
|
|
13
13
|
closeLabel: a,
|
|
@@ -3,8 +3,8 @@ import { format as A } from "date-fns/format";
|
|
|
3
3
|
import { fromUnixTime as W } from "date-fns/fromUnixTime";
|
|
4
4
|
import { startOfMonth as _ } from "date-fns/startOfMonth";
|
|
5
5
|
import { subMonths as B } from "date-fns/subMonths";
|
|
6
|
-
import { a as b } from "./Accounts-
|
|
7
|
-
import { e as N, a as M, f as v } from "./ConnectDrawer-
|
|
6
|
+
import { a as b } from "./Accounts-CA-nqAjT.mjs";
|
|
7
|
+
import { e as N, a as M, f as v } from "./ConnectDrawer-phFH6OHt.mjs";
|
|
8
8
|
const f = 13, L = (n, t) => n.filter((e) => {
|
|
9
9
|
const { is_closed: r, is_deleted: s, is_hidden: a, is_manual: i } = e;
|
|
10
10
|
return r || s || a ? !1 : i || !e.guid ? !0 : t.some((l) => n.some((g) => l.guid === g.member_guid));
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { jsxs as c, jsx as e, Fragment as
|
|
1
|
+
import { jsxs as c, jsx as e, Fragment as M } from "react/jsx-runtime";
|
|
2
2
|
import f from "react";
|
|
3
|
-
import { observer as
|
|
3
|
+
import { observer as x } from "mobx-react-lite";
|
|
4
4
|
import v from "@mui/material/Divider";
|
|
5
|
-
import
|
|
5
|
+
import E from "@mui/material/List";
|
|
6
6
|
import O from "@mui/material/ListItem";
|
|
7
7
|
import N from "@mui/material/ListItemText";
|
|
8
8
|
import V from "@mui/material/ListItemButton";
|
|
9
9
|
import _ from "@mui/material/Stack";
|
|
10
10
|
import { ChevronRight as k, ExpandMore as K, Star as Q } from "@mxenabled/mx-icons";
|
|
11
|
-
import { Text as
|
|
11
|
+
import { Text as b, InstitutionLogo as Y, H3 as U } from "@mxenabled/mxui";
|
|
12
12
|
import { endOfMonth as Z } from "date-fns/endOfMonth";
|
|
13
13
|
import { startOfMonth as ee } from "date-fns/startOfMonth";
|
|
14
14
|
import { DateCalendar as te } from "@mui/x-date-pickers/DateCalendar";
|
|
15
15
|
import { LocalizationProvider as ne } from "@mui/x-date-pickers/LocalizationProvider";
|
|
16
16
|
import { AdapterDateFns as ie } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
17
|
-
import { A as oe, T as F, a as P, N as
|
|
18
|
-
import { u as D, r as T, o as w, c as se, e as ae, m as W, a as ce } from "./hooks-
|
|
17
|
+
import { A as oe, T as F, a as P, N as C } from "./Notification-ByMBpJ5u.mjs";
|
|
18
|
+
import { u as D, r as T, o as w, c as se, e as ae, m as W, a as ce } from "./hooks-DkUqN6JE.mjs";
|
|
19
19
|
import { b as le } from "./Localization-2MODESHW.mjs";
|
|
20
20
|
import { b as re, f as de } from "./NumberFormatting-CtWHhyBX.mjs";
|
|
21
|
-
import { a as
|
|
22
|
-
import { C as me } from "./CurrencyInput-
|
|
21
|
+
import { a as B } from "./Dialog-CWW597AF.mjs";
|
|
22
|
+
import { C as me } from "./CurrencyInput-bEx2Mbd0.mjs";
|
|
23
23
|
import { u as _e } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
24
24
|
import { D as J } from "./Drawer-kEE73B87.mjs";
|
|
25
25
|
import he from "@mui/material/Collapse";
|
|
@@ -31,7 +31,7 @@ import L from "@mui/material/TextField";
|
|
|
31
31
|
import { u as fe } from "./useDimensions-27p2evRx.mjs";
|
|
32
32
|
import X from "@mui/material/styles/useTheme";
|
|
33
33
|
import { L as ge } from "./Loader-DUaFpDGv.mjs";
|
|
34
|
-
const ye =
|
|
34
|
+
const ye = x(() => {
|
|
35
35
|
const { common: n, settings: t } = D(), { sendEmailVerification: s } = T(), { user: l } = w(), i = X(), [r, a] = f.useState(!1), o = () => {
|
|
36
36
|
a(!1);
|
|
37
37
|
}, d = () => {
|
|
@@ -39,11 +39,11 @@ const ye = C(() => {
|
|
|
39
39
|
};
|
|
40
40
|
return /* @__PURE__ */ c(f.Fragment, { children: [
|
|
41
41
|
/* @__PURE__ */ c(R, { onClick: d, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
|
42
|
-
/* @__PURE__ */ e(
|
|
42
|
+
/* @__PURE__ */ e(b, { variant: "Small", children: t.verify_email }),
|
|
43
43
|
/* @__PURE__ */ e(k, {})
|
|
44
44
|
] }),
|
|
45
45
|
/* @__PURE__ */ e(
|
|
46
|
-
|
|
46
|
+
B,
|
|
47
47
|
{
|
|
48
48
|
copy: { title: "" },
|
|
49
49
|
isOpen: r,
|
|
@@ -61,10 +61,10 @@ const ye = C(() => {
|
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
children: /* @__PURE__ */ c(_, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
|
|
64
|
-
/* @__PURE__ */ e(
|
|
65
|
-
/* @__PURE__ */ e(
|
|
64
|
+
/* @__PURE__ */ e(b, { bold: !0, truncate: !1, variant: "Body", children: t.confirm_your_email }),
|
|
65
|
+
/* @__PURE__ */ e(b, { truncate: !1, variant: "Small", children: t.confirm_email }),
|
|
66
66
|
/* @__PURE__ */ e(
|
|
67
|
-
|
|
67
|
+
b,
|
|
68
68
|
{
|
|
69
69
|
sx: {
|
|
70
70
|
border: `1px solid ${i.palette.border.light}`,
|
|
@@ -75,16 +75,16 @@ const ye = C(() => {
|
|
|
75
75
|
children: l.email
|
|
76
76
|
}
|
|
77
77
|
),
|
|
78
|
-
/* @__PURE__ */ e(
|
|
78
|
+
/* @__PURE__ */ e(b, { truncate: !1, variant: "Small", children: t.verification_notice_email })
|
|
79
79
|
] })
|
|
80
80
|
}
|
|
81
81
|
)
|
|
82
82
|
] });
|
|
83
|
-
}), be =
|
|
83
|
+
}), be = x(
|
|
84
84
|
({ handleClose: n, handleVerify: t, isOpen: s }) => {
|
|
85
85
|
const { common: l, settings: i } = D(), [r, a] = f.useState("");
|
|
86
86
|
return /* @__PURE__ */ e(
|
|
87
|
-
|
|
87
|
+
B,
|
|
88
88
|
{
|
|
89
89
|
copy: { title: i.enter_verification_code },
|
|
90
90
|
isOpen: s,
|
|
@@ -105,7 +105,7 @@ const ye = C(() => {
|
|
|
105
105
|
}
|
|
106
106
|
);
|
|
107
107
|
}
|
|
108
|
-
), xe =
|
|
108
|
+
), xe = x(() => {
|
|
109
109
|
const { common: n, settings: t } = D(), { sendPhoneVerification: s, verifyPhoneToken: l } = T(), { user: i } = w(), r = X(), [a, o] = f.useState(!1), [d, m] = f.useState(!1), h = () => {
|
|
110
110
|
o(!1);
|
|
111
111
|
}, u = () => {
|
|
@@ -121,11 +121,11 @@ const ye = C(() => {
|
|
|
121
121
|
};
|
|
122
122
|
return /* @__PURE__ */ c(f.Fragment, { children: [
|
|
123
123
|
/* @__PURE__ */ c(R, { onClick: u, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
|
124
|
-
/* @__PURE__ */ e(
|
|
124
|
+
/* @__PURE__ */ e(b, { variant: "Small", children: t.verify_phone }),
|
|
125
125
|
/* @__PURE__ */ e(k, {})
|
|
126
126
|
] }),
|
|
127
127
|
/* @__PURE__ */ e(
|
|
128
|
-
|
|
128
|
+
B,
|
|
129
129
|
{
|
|
130
130
|
copy: { title: "" },
|
|
131
131
|
isOpen: a,
|
|
@@ -143,10 +143,10 @@ const ye = C(() => {
|
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
145
|
children: /* @__PURE__ */ c(_, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
|
|
146
|
-
/* @__PURE__ */ e(
|
|
147
|
-
/* @__PURE__ */ e(
|
|
146
|
+
/* @__PURE__ */ e(b, { bold: !0, truncate: !1, variant: "Body", children: t.confirm_your_phone }),
|
|
147
|
+
/* @__PURE__ */ e(b, { truncate: !1, variant: "Small", children: t.confirm_phone }),
|
|
148
148
|
/* @__PURE__ */ e(
|
|
149
|
-
|
|
149
|
+
b,
|
|
150
150
|
{
|
|
151
151
|
sx: {
|
|
152
152
|
border: `1px solid ${r.palette.border.light}`,
|
|
@@ -157,7 +157,7 @@ const ye = C(() => {
|
|
|
157
157
|
children: i.phone
|
|
158
158
|
}
|
|
159
159
|
),
|
|
160
|
-
/* @__PURE__ */ e(
|
|
160
|
+
/* @__PURE__ */ e(b, { truncate: !1, variant: "Small", children: t.verification_notice_phone })
|
|
161
161
|
] })
|
|
162
162
|
}
|
|
163
163
|
),
|
|
@@ -170,7 +170,7 @@ const ye = C(() => {
|
|
|
170
170
|
}
|
|
171
171
|
)
|
|
172
172
|
] });
|
|
173
|
-
}), Ce =
|
|
173
|
+
}), Ce = x(
|
|
174
174
|
({ onProfileUpdated: n, profile: t }) => {
|
|
175
175
|
const { common: s, recurring: l, settings: i } = D(), { updateAccount: r } = se(), a = t.notification_type === oe.DebtPaymentReminder, [o, d] = f.useState(!1), [m, h] = f.useState(t.threshold || 0), [u, g] = f.useState(
|
|
176
176
|
t.account?.day_payment_is_due || 0
|
|
@@ -204,7 +204,7 @@ const ye = C(() => {
|
|
|
204
204
|
}
|
|
205
205
|
),
|
|
206
206
|
/* @__PURE__ */ e(
|
|
207
|
-
|
|
207
|
+
B,
|
|
208
208
|
{
|
|
209
209
|
copy: {
|
|
210
210
|
title: a ? l.day_of_the_month : i.notification_threshold_label,
|
|
@@ -251,7 +251,7 @@ const ye = C(() => {
|
|
|
251
251
|
)
|
|
252
252
|
] });
|
|
253
253
|
}
|
|
254
|
-
), ve =
|
|
254
|
+
), ve = x(
|
|
255
255
|
({ onUpdateProfile: n, profile: t }) => {
|
|
256
256
|
const { settings: s } = D(), { user: l } = w(), { clientCommunicationProfile: i, userCommunicationsProfile: r } = T(), { isMobile: a } = _e(), o = t.notification_type > 2, {
|
|
257
257
|
opted_out_of_email_notifications: d,
|
|
@@ -263,9 +263,9 @@ const ye = C(() => {
|
|
|
263
263
|
sms_notifications_enabled: p
|
|
264
264
|
} = i;
|
|
265
265
|
return /* @__PURE__ */ c(_, { children: [
|
|
266
|
-
(u || p || g) && /* @__PURE__ */ c(
|
|
267
|
-
/* @__PURE__ */ e(
|
|
268
|
-
/* @__PURE__ */ c(
|
|
266
|
+
(u || p || g) && /* @__PURE__ */ c(M, { children: [
|
|
267
|
+
/* @__PURE__ */ e(b, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: s.delivery_method_title }),
|
|
268
|
+
/* @__PURE__ */ c(E, { sx: { bgcolor: "background.paper" }, children: [
|
|
269
269
|
u && /* @__PURE__ */ e(_, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
|
270
270
|
P,
|
|
271
271
|
{
|
|
@@ -305,8 +305,8 @@ const ye = C(() => {
|
|
|
305
305
|
] })
|
|
306
306
|
] }),
|
|
307
307
|
o && !!t.children?.length && /* @__PURE__ */ c(_, { children: [
|
|
308
|
-
/* @__PURE__ */ e(
|
|
309
|
-
/* @__PURE__ */ e(
|
|
308
|
+
/* @__PURE__ */ e(b, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: s.accounts_threshold_title }),
|
|
309
|
+
/* @__PURE__ */ e(E, { sx: { bgcolor: "background.paper" }, children: t.children?.map((y) => /* @__PURE__ */ e(
|
|
310
310
|
Ce,
|
|
311
311
|
{
|
|
312
312
|
onProfileUpdated: n,
|
|
@@ -317,7 +317,7 @@ const ye = C(() => {
|
|
|
317
317
|
] })
|
|
318
318
|
] });
|
|
319
319
|
}
|
|
320
|
-
), H =
|
|
320
|
+
), H = x(() => {
|
|
321
321
|
const { accountProfiles: n, updateNotificationProfile: t } = T(), [s, l] = f.useState(""), i = f.useMemo(
|
|
322
322
|
() => n.find((o) => o.guid === s),
|
|
323
323
|
[n, s]
|
|
@@ -359,7 +359,7 @@ const ye = C(() => {
|
|
|
359
359
|
}
|
|
360
360
|
)
|
|
361
361
|
] });
|
|
362
|
-
}), q =
|
|
362
|
+
}), q = x(({ profile: n }) => {
|
|
363
363
|
const { settings: t } = D(), {
|
|
364
364
|
clientCommunicationProfile: {
|
|
365
365
|
email_notifications_enabled: s,
|
|
@@ -377,7 +377,7 @@ const ye = C(() => {
|
|
|
377
377
|
}, p = async (S) => {
|
|
378
378
|
await r(S);
|
|
379
379
|
}, y = s || i || l;
|
|
380
|
-
return /* @__PURE__ */ c(
|
|
380
|
+
return /* @__PURE__ */ c(E, { sx: { bgcolor: "background.paper" }, children: [
|
|
381
381
|
/* @__PURE__ */ e(
|
|
382
382
|
F,
|
|
383
383
|
{
|
|
@@ -399,7 +399,7 @@ const ye = C(() => {
|
|
|
399
399
|
},
|
|
400
400
|
n.guid
|
|
401
401
|
),
|
|
402
|
-
y && /* @__PURE__ */ e(he, { in: h, children: /* @__PURE__ */ c(
|
|
402
|
+
y && /* @__PURE__ */ e(he, { in: h, children: /* @__PURE__ */ c(E, { sx: { bgcolor: "background.paper" }, children: [
|
|
403
403
|
s && /* @__PURE__ */ e(
|
|
404
404
|
P,
|
|
405
405
|
{
|
|
@@ -441,10 +441,10 @@ const ye = C(() => {
|
|
|
441
441
|
] }) }),
|
|
442
442
|
/* @__PURE__ */ e(v, {})
|
|
443
443
|
] }, n.guid);
|
|
444
|
-
}), z =
|
|
444
|
+
}), z = x(() => {
|
|
445
445
|
const { budgetProfiles: n } = T();
|
|
446
446
|
return /* @__PURE__ */ e(_, { children: n.map((t) => /* @__PURE__ */ e(q, { profile: t }, t.guid)) });
|
|
447
|
-
}), Te =
|
|
447
|
+
}), Te = x(() => {
|
|
448
448
|
const { onEvent: n } = ae(), { settings: t } = D(), {
|
|
449
449
|
clientCommunicationProfile: s,
|
|
450
450
|
updateUserCommunicationProfile: l,
|
|
@@ -459,7 +459,7 @@ const ye = C(() => {
|
|
|
459
459
|
};
|
|
460
460
|
return /* @__PURE__ */ c(_, { children: [
|
|
461
461
|
/* @__PURE__ */ e(U, { sx: { mt: 24 }, children: t.delivery_method_title }),
|
|
462
|
-
s.email_notifications_enabled && /* @__PURE__ */ c(
|
|
462
|
+
s.email_notifications_enabled && /* @__PURE__ */ c(M, { children: [
|
|
463
463
|
/* @__PURE__ */ e(
|
|
464
464
|
P,
|
|
465
465
|
{
|
|
@@ -476,7 +476,7 @@ const ye = C(() => {
|
|
|
476
476
|
),
|
|
477
477
|
(s.sms_notifications_enabled || s.push_notifications_enabled) && /* @__PURE__ */ e(v, {})
|
|
478
478
|
] }),
|
|
479
|
-
s.sms_notifications_enabled && /* @__PURE__ */ c(
|
|
479
|
+
s.sms_notifications_enabled && /* @__PURE__ */ c(M, { children: [
|
|
480
480
|
/* @__PURE__ */ e(
|
|
481
481
|
P,
|
|
482
482
|
{
|
|
@@ -504,10 +504,10 @@ const ye = C(() => {
|
|
|
504
504
|
),
|
|
505
505
|
s.sms_notifications_enabled && /* @__PURE__ */ e(ue, { sx: { backgroundColor: "background.default", mt: 12 }, variant: "outlined", children: /* @__PURE__ */ e(pe, { children: /* @__PURE__ */ c(_, { alignItems: "flex-start", direction: "row", gap: 6, children: [
|
|
506
506
|
/* @__PURE__ */ e(Q, { color: "primary", filled: !0 }),
|
|
507
|
-
/* @__PURE__ */ e(
|
|
507
|
+
/* @__PURE__ */ e(b, { sx: { whiteSpace: "wrap" }, variant: "XSmall", children: t.delivery_method_sms_note_1 })
|
|
508
508
|
] }) }) })
|
|
509
509
|
] });
|
|
510
|
-
}), $ =
|
|
510
|
+
}), $ = x(() => {
|
|
511
511
|
const { insightsProfiles: n } = T();
|
|
512
512
|
return /* @__PURE__ */ e(_, { children: n.map((t) => /* @__PURE__ */ e(q, { profile: t }, t.guid)) });
|
|
513
513
|
}), Pe = () => {
|
|
@@ -592,9 +592,9 @@ const ye = C(() => {
|
|
|
592
592
|
)
|
|
593
593
|
] })
|
|
594
594
|
] });
|
|
595
|
-
}, De =
|
|
595
|
+
}, De = x(Pe), st = x(
|
|
596
596
|
({
|
|
597
|
-
notificationTypes: n = [
|
|
597
|
+
notificationTypes: n = [],
|
|
598
598
|
showPersonalDetails: t = !1,
|
|
599
599
|
view: s
|
|
600
600
|
}) => {
|
|
@@ -606,7 +606,7 @@ const ye = C(() => {
|
|
|
606
606
|
}, [r]), !r)
|
|
607
607
|
return /* @__PURE__ */ e(ge, {});
|
|
608
608
|
let h = i.manage_account_notifications;
|
|
609
|
-
d ===
|
|
609
|
+
d === C.Budgets ? h = i.manage_budget_notifications : d === C.Insights && (h = i.manage_insights_notifications);
|
|
610
610
|
const {
|
|
611
611
|
email_notifications_enabled: u,
|
|
612
612
|
sms_notifications_enabled: g,
|
|
@@ -621,22 +621,22 @@ const ye = C(() => {
|
|
|
621
621
|
const S = l.display_email_edit_field_in_settings || l.display_sms_edit_field_in_settings, A = t && a.can_edit_contact_info && S;
|
|
622
622
|
return /* @__PURE__ */ c(_, { sx: { pt: y ? 0 : 24 }, children: [
|
|
623
623
|
/* @__PURE__ */ c(_, { sx: { px: 24 }, children: [
|
|
624
|
-
y && /* @__PURE__ */ c(
|
|
624
|
+
y && /* @__PURE__ */ c(M, { children: [
|
|
625
625
|
/* @__PURE__ */ e(Te, {}),
|
|
626
626
|
/* @__PURE__ */ e(v, { sx: { my: 24 } })
|
|
627
627
|
] }),
|
|
628
628
|
/* @__PURE__ */ e(U, { sx: { mb: 4 }, children: i.notification_types_title })
|
|
629
629
|
] }),
|
|
630
|
-
/* @__PURE__ */ c(
|
|
631
|
-
n.includes(
|
|
630
|
+
/* @__PURE__ */ c(E, { children: [
|
|
631
|
+
n.includes(C.Accounts) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ c(V, { onClick: () => m(C.Accounts), children: [
|
|
632
632
|
/* @__PURE__ */ e(N, { primary: i.accounts_title, secondary: i.accounts_subtitle }),
|
|
633
633
|
/* @__PURE__ */ e(k, {})
|
|
634
634
|
] }) }),
|
|
635
|
-
n.includes(
|
|
635
|
+
n.includes(C.Budgets) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ c(V, { onClick: () => m(C.Budgets), children: [
|
|
636
636
|
/* @__PURE__ */ e(N, { primary: i.budgets_title, secondary: i.budgets_subtitle }),
|
|
637
637
|
/* @__PURE__ */ e(k, {})
|
|
638
638
|
] }) }),
|
|
639
|
-
n.includes(
|
|
639
|
+
n.includes(C.Insights) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ c(V, { onClick: () => m(C.Insights), children: [
|
|
640
640
|
/* @__PURE__ */ e(N, { primary: i.insights_title, secondary: i.insights_subtitle }),
|
|
641
641
|
/* @__PURE__ */ e(k, {})
|
|
642
642
|
] }) })
|
|
@@ -649,9 +649,9 @@ const ye = C(() => {
|
|
|
649
649
|
onClose: () => m(void 0),
|
|
650
650
|
title: h,
|
|
651
651
|
children: /* @__PURE__ */ c(_, { children: [
|
|
652
|
-
d ===
|
|
653
|
-
d ===
|
|
654
|
-
d ===
|
|
652
|
+
d === C.Accounts && /* @__PURE__ */ e(H, {}),
|
|
653
|
+
d === C.Budgets && /* @__PURE__ */ e(z, {}),
|
|
654
|
+
d === C.Insights && /* @__PURE__ */ e($, {})
|
|
655
655
|
] })
|
|
656
656
|
}
|
|
657
657
|
)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { makeAutoObservable as c, observable as f, runInAction as h } from "mobx";
|
|
2
2
|
import { fromUnixTime as o, isSameDay as d } from "date-fns";
|
|
3
|
-
import { F as l, A as n } from "./Fetch-
|
|
3
|
+
import { F as l, A as n } from "./Fetch-CkFKy79O.mjs";
|
|
4
4
|
class s {
|
|
5
5
|
fetchInstance;
|
|
6
|
-
constructor(t, i
|
|
7
|
-
this.fetchInstance = new l(t, i
|
|
6
|
+
constructor(t, i) {
|
|
7
|
+
this.fetchInstance = new l(t, i);
|
|
8
8
|
}
|
|
9
9
|
getNotifications = () => this.fetchInstance.get(n.NOTIFICATIONS).then(
|
|
10
10
|
(t) => t.notifications.map((i) => i.notification)
|
|
@@ -35,11 +35,7 @@ class A {
|
|
|
35
35
|
notifications = [];
|
|
36
36
|
recentNotifications = [];
|
|
37
37
|
constructor(t) {
|
|
38
|
-
this.globalStore = t, this.api = new s(
|
|
39
|
-
t.endpoint,
|
|
40
|
-
t.sessionToken,
|
|
41
|
-
t.onError
|
|
42
|
-
), c(this, { notifications: f });
|
|
38
|
+
this.globalStore = t, this.api = new s(t.endpoint, t.sessionToken), c(this, { notifications: f });
|
|
43
39
|
}
|
|
44
40
|
// Used in Money Dashboard
|
|
45
41
|
get newNotifications() {
|
|
@@ -2,10 +2,10 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import _ from "react";
|
|
3
3
|
import { observer as p } from "mobx-react-lite";
|
|
4
4
|
import v from "@mui/material/TextField";
|
|
5
|
-
import { L as y } from "./ListItemAction-
|
|
6
|
-
import { u as h, j as b } from "./hooks-
|
|
5
|
+
import { L as y } from "./ListItemAction-DNZZ5fSa.mjs";
|
|
6
|
+
import { u as h, j as b } from "./hooks-DkUqN6JE.mjs";
|
|
7
7
|
import { a as T, f as S } from "./NumberFormatting-CtWHhyBX.mjs";
|
|
8
|
-
import { C as f } from "./CurrencyInput-
|
|
8
|
+
import { C as f } from "./CurrencyInput-bEx2Mbd0.mjs";
|
|
9
9
|
const F = p(({ goal: e }) => {
|
|
10
10
|
const { goals: a } = h(), { setAlert: r, setSelectedGoal: l, updateGoal: m } = b(), [t, s] = _.useState(e.interest_rate ?? 0), c = !e.guid, i = t < 0, d = async () => {
|
|
11
11
|
const n = { ...e, interest_rate: t };
|
|
@@ -7,10 +7,10 @@ import R from "@mui/material/Tabs";
|
|
|
7
7
|
import l from "@mui/material/Divider";
|
|
8
8
|
import T from "@mui/material/List";
|
|
9
9
|
import C from "@mui/material/Stack";
|
|
10
|
-
import { R as x, A as S, a as E, M as A } from "./ManageIncome-
|
|
11
|
-
import { u as h, h as y, e as _ } from "./hooks-
|
|
10
|
+
import { R as x, A as S, a as E, M as A } from "./ManageIncome-DbsiKUoO.mjs";
|
|
11
|
+
import { u as h, h as y, e as _ } from "./hooks-DkUqN6JE.mjs";
|
|
12
12
|
import { R as v, F as N } from "./RepeatingTransaction-BW4J-jeJ.mjs";
|
|
13
|
-
import { A as d } from "./WidgetContainer-
|
|
13
|
+
import { A as d } from "./WidgetContainer-CdBs9WOZ.mjs";
|
|
14
14
|
const I = u(() => {
|
|
15
15
|
const { recurring: r } = h(), { repeatingTransactions: s } = y(), { onEvent: o } = _(), a = (n) => {
|
|
16
16
|
o(d.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
|
package/dist/{RecurringTransactionsStore-DeLXfuC4.mjs → RecurringTransactionsStore-D62XJtdL.mjs}
RENAMED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { makeAutoObservable as f, runInAction as i } from "mobx";
|
|
2
2
|
import { endOfMonth as R } from "date-fns/endOfMonth";
|
|
3
3
|
import { isAfter as p } from "date-fns/isAfter";
|
|
4
|
-
import { isBefore as
|
|
4
|
+
import { isBefore as S } from "date-fns/isBefore";
|
|
5
5
|
import { isSameDay as g } from "date-fns/isSameDay";
|
|
6
6
|
import { isWithinInterval as m } from "date-fns/isWithinInterval";
|
|
7
|
-
import { startOfMonth as
|
|
7
|
+
import { startOfMonth as I } from "date-fns/startOfMonth";
|
|
8
8
|
import { startOfToday as c } from "date-fns/startOfToday";
|
|
9
9
|
import { subDays as y } from "date-fns/subDays";
|
|
10
|
-
import { F as x, A as o } from "./Fetch-
|
|
11
|
-
import { b as
|
|
12
|
-
var
|
|
10
|
+
import { F as x, A as o } from "./Fetch-CkFKy79O.mjs";
|
|
11
|
+
import { b as A, a, c as h, d as u } from "./RepeatingTransaction-BW4J-jeJ.mjs";
|
|
12
|
+
var E = /* @__PURE__ */ ((r) => (r.Small = "small", r.Medium = "medium", r.Large = "large", r))(E || {});
|
|
13
13
|
const U = 44;
|
|
14
|
-
class
|
|
14
|
+
class d {
|
|
15
15
|
fetchInstance;
|
|
16
|
-
constructor(e, t
|
|
17
|
-
this.fetchInstance = new x(e, t
|
|
16
|
+
constructor(e, t) {
|
|
17
|
+
this.fetchInstance = new x(e, t);
|
|
18
18
|
}
|
|
19
19
|
addRepeatingTransaction = async (e) => this.fetchInstance.post(o.REPEATING_TRANSACTIONS, e).then((t) => t.repeating_transaction);
|
|
20
20
|
getRepeatingTransactions = async () => this.fetchInstance.get(o.REPEATING_TRANSACTIONS).then((e) => e.repeating_transactions);
|
|
@@ -27,25 +27,21 @@ class h {
|
|
|
27
27
|
const l = (r, e) => m(e.expectedDate, r), s = (r, e) => r + e.amount;
|
|
28
28
|
class C {
|
|
29
29
|
globalStore;
|
|
30
|
-
api = new
|
|
30
|
+
api = new d("/", "");
|
|
31
31
|
transactions = [];
|
|
32
32
|
repeatingTransactions = [];
|
|
33
33
|
selectedDay;
|
|
34
|
-
dateRange = { start:
|
|
34
|
+
dateRange = { start: I(c()), end: R(c()) };
|
|
35
35
|
isDataLoaded = !1;
|
|
36
36
|
constructor(e) {
|
|
37
|
-
this.globalStore = e, this.api = new
|
|
38
|
-
e.endpoint,
|
|
39
|
-
e.sessionToken,
|
|
40
|
-
e.onError
|
|
41
|
-
), f(this);
|
|
37
|
+
this.globalStore = e, this.api = new d(e.endpoint, e.sessionToken), f(this);
|
|
42
38
|
}
|
|
43
39
|
/**
|
|
44
40
|
* Returns all recurrences built from repeating transactions and filtered by accounts.
|
|
45
41
|
*/
|
|
46
42
|
get recurrences() {
|
|
47
43
|
const e = this.globalStore.accountStore.visibleAccounts;
|
|
48
|
-
return
|
|
44
|
+
return A(this.repeatingTransactions, this.dateRange).filter((t) => e.some((n) => n.guid === t.accountGuid && !n.is_excluded_from_accounts)).filter((t) => m(t.expectedDate, this.dateRange));
|
|
49
45
|
}
|
|
50
46
|
/**
|
|
51
47
|
* Returns all recurrences that have occurred in the past, including those that are paid or missed
|
|
@@ -61,7 +57,7 @@ class C {
|
|
|
61
57
|
*/
|
|
62
58
|
get upcomingRecurrences() {
|
|
63
59
|
return this.recurrences.filter(
|
|
64
|
-
(e) => p(e.expectedDate, y(c(), 3)) &&
|
|
60
|
+
(e) => p(e.expectedDate, y(c(), 3)) && S(e.expectedDate, this.dateRange.end) && e.status === a.Upcoming
|
|
65
61
|
);
|
|
66
62
|
}
|
|
67
63
|
/**
|
|
@@ -69,7 +65,7 @@ class C {
|
|
|
69
65
|
*/
|
|
70
66
|
get expenses() {
|
|
71
67
|
return this.recurrences.filter(
|
|
72
|
-
(e) => e.type ===
|
|
68
|
+
(e) => e.type === h.Expense
|
|
73
69
|
);
|
|
74
70
|
}
|
|
75
71
|
/**
|
|
@@ -85,7 +81,7 @@ class C {
|
|
|
85
81
|
*/
|
|
86
82
|
get income() {
|
|
87
83
|
return this.recurrences.filter(
|
|
88
|
-
(e) => e.type ===
|
|
84
|
+
(e) => e.type === h.Income
|
|
89
85
|
);
|
|
90
86
|
}
|
|
91
87
|
/**
|
|
@@ -262,6 +258,6 @@ class C {
|
|
|
262
258
|
}
|
|
263
259
|
export {
|
|
264
260
|
C as R,
|
|
265
|
-
|
|
261
|
+
E as S,
|
|
266
262
|
U as T
|
|
267
263
|
};
|