@mx-cartographer/experiences 8.1.0 → 8.1.2
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 +9 -0
- package/dist/{Account-DuOz1a27.mjs → Account-BIKn4XEZ.mjs} +1 -1
- package/dist/{Account-BiB1F8lL.mjs → Account-CMjOp7S2.mjs} +2 -2
- package/dist/{AccountDetailsHeader-IPRH6Wja.mjs → AccountDetailsHeader-D_a0XUkL.mjs} +6 -6
- package/dist/{AccountFields-BbPSfzru.mjs → AccountFields-nrrEXd46.mjs} +30 -29
- package/dist/{AccountListItem-qpACFl6i.mjs → AccountListItem-D80egD01.mjs} +5 -5
- package/dist/{AccountStore-BeEiLNhW.mjs → AccountStore-B3S_p5Qa.mjs} +3 -3
- package/dist/{Accounts-o7ohkngR.mjs → Accounts-DX3xJE97.mjs} +1 -1
- package/dist/{Analytics-CjZ0emfs.mjs → Analytics-CxK7O19c.mjs} +2 -2
- package/dist/{BudgetUtil-CLh4xtj4.mjs → BudgetUtil-DalEN9--.mjs} +47 -47
- package/dist/{CashflowStore-CeAzChyD.mjs → CashflowStore-BEi92kJg.mjs} +10 -10
- package/dist/{Category-CevNQ03n.mjs → Category-Ccoew_sA.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-BG04ByUx.mjs → CategorySelectorDrawer-DjeHNx71.mjs} +7 -7
- package/dist/{CategoryStore-Bp1kO9Z-.mjs → CategoryStore-CA4NTaKH.mjs} +2 -2
- package/dist/{CategoryUtil-DKRCegQv.mjs → CategoryUtil-BJOHgYKS.mjs} +3 -3
- package/dist/{Connect-eYIWqCEr.mjs → Connect-BRLh-69J.mjs} +1 -1
- package/dist/{ConnectDrawer-C0wjwcJt.mjs → ConnectDrawer-5BpU4IQU.mjs} +3 -3
- package/dist/{ConnectionsDrawer-IA7vnv1J.mjs → ConnectionsDrawer-DxpSlJN7.mjs} +3 -3
- package/dist/{CurrencyInput-BkNVHxSV.mjs → CurrencyInput-CSJ3zMgE.mjs} +18 -18
- package/dist/DateUtil-D0TO0DaZ.mjs +58 -0
- package/dist/{DebtsStore-BZqNLaqd.mjs → DebtsStore-BJlC2-yO.mjs} +1 -1
- package/dist/{Dialog-Ck34yr-d.mjs → Dialog-iLlBR8TG.mjs} +6 -6
- package/dist/{Donut-CpxJlVvJ.mjs → Donut-D7ekbgf5.mjs} +12 -12
- package/dist/{Drawer-Bbe4AMB1.mjs → Drawer-XPaLYjiO.mjs} +11 -11
- package/dist/{EmbeddedCard-j7IGx3s1.mjs → EmbeddedCard-BCcn_fK2.mjs} +193 -193
- package/dist/{ExportCsvAction-7sjz7AXQ.mjs → ExportCsvAction-BPjdEUXx.mjs} +5 -5
- package/dist/{FinstrongStore-DgyDJTEP.mjs → FinstrongStore-DYawCv1d.mjs} +54 -54
- package/dist/{GlobalAccountFilter-CmnaZDS6.mjs → GlobalAccountFilter-CZbiDwBH.mjs} +1 -1
- package/dist/{GoalStore-DcaT4fM6.mjs → GoalStore-DmqM1ZfW.mjs} +1 -1
- package/dist/{Help-B8mD4aLJ.mjs → Help-CgpJK03Q.mjs} +6 -6
- package/dist/{Help-cTsMzSQh.mjs → Help-DuhUdMTZ.mjs} +95 -98
- package/dist/{IconBacking-B9oC6uL2.mjs → IconBacking-DgT8DCeh.mjs} +11 -11
- package/dist/{LineChart-DkD_s9NN.mjs → LineChart-jJVBE8V8.mjs} +1 -1
- package/dist/{ListItemAction-4KB7P75M.mjs → ListItemAction-Buv7tPLp.mjs} +4 -4
- package/dist/{Loader-D3rjKx72.mjs → Loader-CxeBwuPG.mjs} +5 -5
- package/dist/{ManageIncome-DwSE_a8L.mjs → ManageIncome-CrHDAku7.mjs} +8 -8
- package/dist/MicroWidgetContainer-CEcwdfti.mjs +45 -0
- package/dist/MiniWidgetContainer-CmTGSUL5.mjs +66 -0
- package/dist/{NetWorthStore-Ba3q3VcH.mjs → NetWorthStore-BY-B_hxy.mjs} +4 -4
- package/dist/{NotificationSettings-DB-eNgSv.mjs → NotificationSettings-DOgnTxzv.mjs} +9 -9
- package/dist/{OriginalBalanceAction-AB1TGb5P.mjs → OriginalBalanceAction-C8VJZUat.mjs} +9 -9
- package/dist/{RecurringSettings-CZKeZC4m.mjs → RecurringSettings-CIpZL4CX.mjs} +2 -2
- package/dist/{RecurringTransactions-kzlU8OFY.mjs → RecurringTransactions-DCt94TN4.mjs} +47 -47
- package/dist/{RecurringTransactionsStore-D62Dt2BF.mjs → RecurringTransactionsStore-CFJYC7lI.mjs} +1 -1
- package/dist/{ResponsiveButton-DZFp78fJ.mjs → ResponsiveButton-BNsV08Ud.mjs} +12 -12
- package/dist/{SettingsStore-Dsz1mvd3.mjs → SettingsStore-BcbuKfFO.mjs} +1 -1
- package/dist/{SingleSegmentDonut-BgbLgwHi.mjs → SingleSegmentDonut-PsRQPkmV.mjs} +5 -5
- package/dist/{SpendingData-CoZOmlZD.mjs → SpendingData-Dj85XEUp.mjs} +3 -3
- package/dist/{SpendingLegend-DljKEG69.mjs → SpendingLegend-DIWHSsKw.mjs} +5 -5
- package/dist/{StatusBar-BK_uYHAB.mjs → StatusBar-CPfSXe80.mjs} +6 -6
- package/dist/{TabContentContainer-j01JYR_7.mjs → TabContentContainer-CnMXkVqr.mjs} +8 -8
- package/dist/{TransactionDetails-CN-yZkin.mjs → TransactionDetails-Db8dwHoM.mjs} +21 -21
- package/dist/{TransactionStore-6ovFO8P1.mjs → TransactionStore-BUsP-unK.mjs} +40 -57
- package/dist/{TrendsStore-DZa6cyQC.mjs → TrendsStore-bYjIGqyR.mjs} +1 -1
- package/dist/{ViewMoreMicroCard-BsEitNRJ.mjs → ViewMoreMicroCard-C7dC9lDT.mjs} +93 -94
- package/dist/WidgetContainer-CCR7I0gu.mjs +470 -0
- package/dist/accounts/index.es.js +29 -29
- package/dist/analytics/index.es.js +10 -10
- package/dist/budgets/index.es.js +19 -19
- package/dist/cashflow/index.es.js +110 -110
- package/dist/categories/index.es.js +2 -2
- package/dist/common/hooks/useWidgetHeaderStyles.d.ts +1 -0
- package/dist/common/index.es.js +250 -250
- package/dist/core/index.es.js +64 -64
- package/dist/dashboard/index.es.js +22 -22
- package/dist/debts/index.es.js +22 -22
- package/dist/{exportTransactionsToCSV-Dnd5lVq7.mjs → exportTransactionsToCSV-B2Lp7AMl.mjs} +7 -7
- package/dist/finstrong/index.es.js +22 -22
- package/dist/goals/index.es.js +17 -17
- package/dist/help/index.es.js +5 -5
- package/dist/{hooks-BxkfR-Ff.mjs → hooks-HwStH7q_.mjs} +9 -9
- package/dist/insights/index.es.js +328 -328
- package/dist/investments/index.es.js +10 -10
- package/dist/merchants/index.es.js +9 -9
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +25 -25
- package/dist/notifications/index.es.js +5 -5
- package/dist/recurringtransactions/index.es.js +23 -23
- package/dist/settings/index.es.js +96 -96
- package/dist/spending/index.es.js +65 -65
- package/dist/transactions/index.es.js +74 -74
- package/dist/trends/index.es.js +55 -55
- package/dist/{useAccountDisplayName-DKwT1mWv.mjs → useAccountDisplayName-SrQA7K_6.mjs} +1 -1
- package/dist/{useInsightsEnabled-DL_oNyI0.mjs → useInsightsEnabled-DzvRm5Bo.mjs} +1 -1
- package/dist/{useScreenSize-CUcpY7aJ.mjs → useScreenSize-CeFhWTt_.mjs} +1 -1
- package/dist/{useWidgetLoadTimer-DgN1bTyu.mjs → useWidgetLoadTimer-wkBTL5xx.mjs} +1 -1
- package/package.json +20 -20
- package/dist/DateUtil-C57sqxn4.mjs +0 -54
- package/dist/MicroWidgetContainer-B_EnfvCq.mjs +0 -45
- package/dist/MiniWidgetContainer-Bhkv-hpz.mjs +0 -66
- package/dist/WidgetContainer-Bc75FqK7.mjs +0 -468
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as
|
|
1
|
+
import { S as Jt } from "../SettingsStore-BcbuKfFO.mjs";
|
|
2
2
|
import { jsxs as c, Fragment as X, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import m from "react";
|
|
4
4
|
import { observer as C } from "mobx-react-lite";
|
|
@@ -8,19 +8,19 @@ import pe from "@mui/material/Tabs";
|
|
|
8
8
|
import he from "@mui/material/Alert";
|
|
9
9
|
import fe from "@mui/material/Snackbar";
|
|
10
10
|
import { getUnixTime as _e } from "date-fns/getUnixTime";
|
|
11
|
-
import { AdapterDateFns as
|
|
12
|
-
import { DatePicker as
|
|
11
|
+
import { AdapterDateFns as ge } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
12
|
+
import { DatePicker as be } from "@mui/x-date-pickers";
|
|
13
13
|
import { LocalizationProvider as ye } from "@mui/x-date-pickers/LocalizationProvider";
|
|
14
14
|
import { useTheme as xe, alpha as V } from "@mui/material/styles";
|
|
15
15
|
import W from "@mui/material/Box";
|
|
16
16
|
import Z from "@mui/material/Button";
|
|
17
17
|
import A from "@mui/material/TextField";
|
|
18
18
|
import { H3 as Y, P as M, Text as x, Icon as L, ChevronRightIcon as ve } from "@mxenabled/mxui";
|
|
19
|
-
import { V as Ce, a as De, N as J } from "../NotificationSettings-
|
|
20
|
-
import { A as
|
|
21
|
-
import { u as w, a as
|
|
22
|
-
import { u as H } from "../useScreenSize-
|
|
23
|
-
import { D as j } from "../Dialog-
|
|
19
|
+
import { V as Ce, a as De, N as J } from "../NotificationSettings-DOgnTxzv.mjs";
|
|
20
|
+
import { A as Yt, B as qt, I as Qt } from "../NotificationSettings-DOgnTxzv.mjs";
|
|
21
|
+
import { u as w, a as G, r as E, o as we, b as ee, l as $ } from "../hooks-HwStH7q_.mjs";
|
|
22
|
+
import { u as H } from "../useScreenSize-CeFhWTt_.mjs";
|
|
23
|
+
import { D as j } from "../Dialog-iLlBR8TG.mjs";
|
|
24
24
|
import { formatDistanceToNow as te } from "date-fns/formatDistanceToNow";
|
|
25
25
|
import { fromUnixTime as oe } from "date-fns/fromUnixTime";
|
|
26
26
|
import O from "@mui/material/styles/useTheme";
|
|
@@ -31,21 +31,21 @@ import { b as B } from "../Localization-CkQ49EKr.mjs";
|
|
|
31
31
|
import Se from "@mui/material/Accordion";
|
|
32
32
|
import Te from "@mui/material/AccordionDetails";
|
|
33
33
|
import Ie from "@mui/material/AccordionSummary";
|
|
34
|
-
import { L as ie } from "../Loader-
|
|
34
|
+
import { L as ie } from "../Loader-CxeBwuPG.mjs";
|
|
35
35
|
import Ae from "@mui/material/List";
|
|
36
36
|
import K from "@mui/material/Divider";
|
|
37
37
|
import Ee from "@mui/material/ListSubheader";
|
|
38
|
-
import {
|
|
38
|
+
import { b as Pe, u as Re } from "../CategorySelectorDrawer-DjeHNx71.mjs";
|
|
39
39
|
import Ne from "@mui/material/ListItem";
|
|
40
40
|
import Me from "@mui/material/ListItemButton";
|
|
41
41
|
import Le from "@mui/material/ListItemIcon";
|
|
42
42
|
import Be from "@mui/material/ListItemText";
|
|
43
|
-
import { D as He } from "../Drawer-
|
|
44
|
-
import { u as ne } from "../useWidgetLoadTimer-
|
|
45
|
-
import { H as Oe } from "../Help-
|
|
46
|
-
import { W as q } from "../WidgetContainer-
|
|
43
|
+
import { D as He } from "../Drawer-XPaLYjiO.mjs";
|
|
44
|
+
import { u as ne } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
|
|
45
|
+
import { H as Oe } from "../Help-DuhUdMTZ.mjs";
|
|
46
|
+
import { W as q } from "../WidgetContainer-CCR7I0gu.mjs";
|
|
47
47
|
const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
48
|
-
const i = xe(), { common: o, settings: n } = w(), { isDesktop: u, isMobile: s, isSmallMobile: a, isTablet: l } = H(t), { config:
|
|
48
|
+
const i = xe(), { common: o, settings: n } = w(), { isDesktop: u, isMobile: s, isSmallMobile: a, isTablet: l } = H(t), { config: b } = G(), { updateUser: _ } = E(), { user: d } = we(), [p, k] = m.useState({
|
|
49
49
|
first_name: d.first_name,
|
|
50
50
|
last_name: d.last_name,
|
|
51
51
|
email: d.email,
|
|
@@ -53,11 +53,11 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
|
53
53
|
birthday: d.birthday,
|
|
54
54
|
postal_code: d.postal_code,
|
|
55
55
|
credit_score: d.credit_score
|
|
56
|
-
}), [v, S] = m.useState(!1), [I, T] = m.useState(!1),
|
|
56
|
+
}), [v, S] = m.useState(!1), [I, T] = m.useState(!1), g = m.useRef(null), D = p.email && !d.email_is_verified && !v, F = p.phone && !d.phone_is_verified && !v;
|
|
57
57
|
m.useEffect(() => {
|
|
58
58
|
if (r) {
|
|
59
|
-
const f = (
|
|
60
|
-
|
|
59
|
+
const f = (R) => {
|
|
60
|
+
g.current && !g.current.contains(R.target) && v && T(!0);
|
|
61
61
|
};
|
|
62
62
|
return document.addEventListener("mousedown", f), () => {
|
|
63
63
|
document.removeEventListener("mousedown", f);
|
|
@@ -66,8 +66,8 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
|
66
66
|
}, [v]);
|
|
67
67
|
const ae = () => {
|
|
68
68
|
if (p.birthday) {
|
|
69
|
-
const f = new Date(p.birthday * 1e3),
|
|
70
|
-
return new Date(
|
|
69
|
+
const f = new Date(p.birthday * 1e3), R = f.getUTCFullYear(), de = f.getUTCMonth(), me = f.getUTCDate();
|
|
70
|
+
return new Date(R, de, me);
|
|
71
71
|
}
|
|
72
72
|
}, se = async () => {
|
|
73
73
|
await _({ ...d, ...p }), S(!1);
|
|
@@ -75,19 +75,19 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
|
75
75
|
T(!1), r && r();
|
|
76
76
|
}, ce = () => {
|
|
77
77
|
T(!1);
|
|
78
|
-
},
|
|
79
|
-
const
|
|
78
|
+
}, P = (f) => {
|
|
79
|
+
const R = {
|
|
80
80
|
...p,
|
|
81
81
|
...f
|
|
82
82
|
};
|
|
83
|
-
k(
|
|
83
|
+
k(R), S(JSON.stringify({ ...d, ...R }) !== JSON.stringify(d));
|
|
84
84
|
};
|
|
85
85
|
return /* @__PURE__ */ c(X, { children: [
|
|
86
86
|
/* @__PURE__ */ c(
|
|
87
87
|
W,
|
|
88
88
|
{
|
|
89
89
|
component: "form",
|
|
90
|
-
ref:
|
|
90
|
+
ref: g,
|
|
91
91
|
sx: {
|
|
92
92
|
backgroundColor: "background.paper",
|
|
93
93
|
p: 24,
|
|
@@ -111,7 +111,7 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
|
111
111
|
{
|
|
112
112
|
defaultValue: p.first_name,
|
|
113
113
|
label: n.first_name,
|
|
114
|
-
onChange: (f) =>
|
|
114
|
+
onChange: (f) => P({ first_name: f.target.value })
|
|
115
115
|
}
|
|
116
116
|
),
|
|
117
117
|
/* @__PURE__ */ e(
|
|
@@ -119,31 +119,31 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
|
119
119
|
{
|
|
120
120
|
defaultValue: p.last_name,
|
|
121
121
|
label: n.last_name,
|
|
122
|
-
onChange: (f) =>
|
|
122
|
+
onChange: (f) => P({ last_name: f.target.value })
|
|
123
123
|
}
|
|
124
124
|
)
|
|
125
125
|
]
|
|
126
126
|
}
|
|
127
127
|
),
|
|
128
128
|
/* @__PURE__ */ c(h, { direction: s ? "column" : "row", children: [
|
|
129
|
-
|
|
129
|
+
b.display_email_edit_field_in_settings && /* @__PURE__ */ c(h, { sx: { mb: D ? 20 : 44, mr: s ? 0 : 24 }, children: [
|
|
130
130
|
/* @__PURE__ */ e(
|
|
131
131
|
A,
|
|
132
132
|
{
|
|
133
133
|
defaultValue: p.email,
|
|
134
134
|
label: n.email_address,
|
|
135
|
-
onChange: (f) =>
|
|
135
|
+
onChange: (f) => P({ email: f.target.value })
|
|
136
136
|
}
|
|
137
137
|
),
|
|
138
138
|
D && /* @__PURE__ */ e(Ce, {})
|
|
139
139
|
] }),
|
|
140
|
-
|
|
140
|
+
b.display_sms_edit_field_in_settings && /* @__PURE__ */ c(h, { sx: { mb: F ? 20 : 44 }, children: [
|
|
141
141
|
/* @__PURE__ */ e(
|
|
142
142
|
A,
|
|
143
143
|
{
|
|
144
144
|
defaultValue: p.phone,
|
|
145
145
|
label: n.mobile_number,
|
|
146
|
-
onChange: (f) =>
|
|
146
|
+
onChange: (f) => P({ phone: f.target.value }),
|
|
147
147
|
type: "tel"
|
|
148
148
|
}
|
|
149
149
|
),
|
|
@@ -151,11 +151,11 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
|
151
151
|
] })
|
|
152
152
|
] }),
|
|
153
153
|
/* @__PURE__ */ c(h, { direction: s ? "column" : "row", spacing: s ? 44 : 24, sx: { mb: 44 }, children: [
|
|
154
|
-
/* @__PURE__ */ e(ye, { dateAdapter:
|
|
155
|
-
|
|
154
|
+
/* @__PURE__ */ e(ye, { dateAdapter: ge, children: /* @__PURE__ */ e(
|
|
155
|
+
be,
|
|
156
156
|
{
|
|
157
157
|
label: n.birthdate,
|
|
158
|
-
onChange: (f) =>
|
|
158
|
+
onChange: (f) => P({ birthday: _e(f) }),
|
|
159
159
|
slotProps: {
|
|
160
160
|
nextIconButton: {
|
|
161
161
|
sx: {
|
|
@@ -185,7 +185,7 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
|
185
185
|
{
|
|
186
186
|
defaultValue: p.postal_code,
|
|
187
187
|
label: n.zip_code,
|
|
188
|
-
onChange: (f) =>
|
|
188
|
+
onChange: (f) => P({ postal_code: f.target.value })
|
|
189
189
|
}
|
|
190
190
|
)
|
|
191
191
|
] }),
|
|
@@ -195,7 +195,7 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
|
195
195
|
{
|
|
196
196
|
defaultValue: p.credit_score,
|
|
197
197
|
label: n.credit_score,
|
|
198
|
-
onChange: (f) =>
|
|
198
|
+
onChange: (f) => P({ credit_score: Number(f.target.value) }),
|
|
199
199
|
sx: { mb: 44 }
|
|
200
200
|
}
|
|
201
201
|
),
|
|
@@ -348,7 +348,7 @@ const Ve = ({
|
|
|
348
348
|
onClickDeviceEdit: r,
|
|
349
349
|
onClickDeviceDelete: i
|
|
350
350
|
}) => {
|
|
351
|
-
const o = O(), { settings: n } = w(), [u, s] = m.useState(!1), a = (l) => (
|
|
351
|
+
const o = O(), { settings: n } = w(), [u, s] = m.useState(!1), a = (l) => (b, _) => {
|
|
352
352
|
s(_ ? l : !1);
|
|
353
353
|
};
|
|
354
354
|
return /* @__PURE__ */ c(h, { mx: -28, sx: { "& .MuiAccordion-root": { mb: 0, mt: 0 } }, children: [
|
|
@@ -449,7 +449,7 @@ const Ve = ({
|
|
|
449
449
|
device: o,
|
|
450
450
|
deviceToken: n = ""
|
|
451
451
|
}) => {
|
|
452
|
-
const u = O(), { common: s, settings: a } = w(), { updateDevice: l, deleteDevice:
|
|
452
|
+
const u = O(), { common: s, settings: a } = w(), { updateDevice: l, deleteDevice: b, setAlert: _, loadDevices: d } = E(), [p, k] = m.useState("");
|
|
453
453
|
m.useEffect(() => {
|
|
454
454
|
o && k(o.name);
|
|
455
455
|
}, [o, t]);
|
|
@@ -474,14 +474,14 @@ const Ve = ({
|
|
|
474
474
|
return "";
|
|
475
475
|
}
|
|
476
476
|
}, I = () => {
|
|
477
|
-
const
|
|
477
|
+
const g = {
|
|
478
478
|
"& .MuiDialogContent-root": {
|
|
479
479
|
width: 400,
|
|
480
480
|
pt: 0
|
|
481
481
|
}
|
|
482
482
|
};
|
|
483
483
|
return t === y.Token ? {
|
|
484
|
-
...
|
|
484
|
+
...g,
|
|
485
485
|
"& .MuiToolbar-root:last-child": {
|
|
486
486
|
padding: "32px 60px 48px",
|
|
487
487
|
justifyContent: "center"
|
|
@@ -493,7 +493,7 @@ const Ve = ({
|
|
|
493
493
|
flex: 1
|
|
494
494
|
}
|
|
495
495
|
} : {
|
|
496
|
-
...
|
|
496
|
+
...g,
|
|
497
497
|
"& .MuiToolbar-root:last-child": {
|
|
498
498
|
gap: 8,
|
|
499
499
|
padding: 24,
|
|
@@ -507,13 +507,13 @@ const Ve = ({
|
|
|
507
507
|
};
|
|
508
508
|
}, T = async () => {
|
|
509
509
|
if (t === y.Token && i(), t === y.Edit && o) {
|
|
510
|
-
const
|
|
511
|
-
(await l(
|
|
510
|
+
const g = { ...o, name: p };
|
|
511
|
+
(await l(g)).success ? (_(a.mobile_devices_edit_success, "success"), d()) : _(
|
|
512
512
|
B(a.mobile_devices_edit_error, o.name),
|
|
513
513
|
"error"
|
|
514
514
|
), i();
|
|
515
515
|
}
|
|
516
|
-
t === y.Delete && o && ((await
|
|
516
|
+
t === y.Delete && o && ((await b(o.guid)).success ? (_(
|
|
517
517
|
B(a.mobile_devices_delete_success, o.name),
|
|
518
518
|
"success"
|
|
519
519
|
), d()) : _(
|
|
@@ -551,25 +551,25 @@ const Ve = ({
|
|
|
551
551
|
),
|
|
552
552
|
/* @__PURE__ */ e(x, { truncate: !1, variant: "body2", children: a.mobile_devices_access_info_2 })
|
|
553
553
|
] }),
|
|
554
|
-
t === y.Edit && /* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(A, { onChange: (
|
|
554
|
+
t === y.Edit && /* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(A, { onChange: (g) => k(g.target.value), value: p }) }),
|
|
555
555
|
t === y.Delete && /* @__PURE__ */ e(M, { children: a.mobile_devices_delete_info })
|
|
556
556
|
]
|
|
557
557
|
}
|
|
558
558
|
);
|
|
559
|
-
},
|
|
560
|
-
const { isMobile: t } = H(), { settings: r } = w(), { isCopyLoaded: i, isInitialized: o } = ee(), { setAlert: n, devices: u, loadDevices: s, generateDeviceToken: a } = E(), [l,
|
|
559
|
+
}, Ge = C(ze), $e = C(() => {
|
|
560
|
+
const { isMobile: t } = H(), { settings: r } = w(), { isCopyLoaded: i, isInitialized: o } = ee(), { setAlert: n, devices: u, loadDevices: s, generateDeviceToken: a } = E(), [l, b] = m.useState({ open: !1, type: "" }), [_, d] = m.useState(), [p, k] = m.useState("");
|
|
561
561
|
m.useEffect(() => {
|
|
562
562
|
o && s();
|
|
563
563
|
}, [o]);
|
|
564
564
|
const v = async () => {
|
|
565
|
-
const
|
|
566
|
-
|
|
567
|
-
}, S = (
|
|
568
|
-
d(
|
|
569
|
-
}, I = (
|
|
570
|
-
d(
|
|
565
|
+
const g = await a();
|
|
566
|
+
g ? (k(g), b({ open: !0, type: y.Token })) : n(r.mobile_devices_access_error, "error");
|
|
567
|
+
}, S = (g) => {
|
|
568
|
+
d(g), b({ open: !0, type: y.Edit });
|
|
569
|
+
}, I = (g) => {
|
|
570
|
+
d(g), b({ open: !0, type: y.Delete });
|
|
571
571
|
}, T = () => {
|
|
572
|
-
|
|
572
|
+
b({ open: !1, type: "" }), d(void 0);
|
|
573
573
|
};
|
|
574
574
|
return !i || !o ? /* @__PURE__ */ e(ie, {}) : /* @__PURE__ */ c(
|
|
575
575
|
h,
|
|
@@ -605,7 +605,7 @@ const Ve = ({
|
|
|
605
605
|
/* @__PURE__ */ e(Z, { onClick: v, variant: "text", children: r.mobile_devices_access_cta })
|
|
606
606
|
] }),
|
|
607
607
|
/* @__PURE__ */ e(
|
|
608
|
-
|
|
608
|
+
Ge,
|
|
609
609
|
{
|
|
610
610
|
device: _,
|
|
611
611
|
deviceToken: p,
|
|
@@ -617,7 +617,7 @@ const Ve = ({
|
|
|
617
617
|
]
|
|
618
618
|
}
|
|
619
619
|
);
|
|
620
|
-
}),
|
|
620
|
+
}), Q = C(
|
|
621
621
|
({ onClick: t, primaryText: r, secondaryText: i, sx: o }) => {
|
|
622
622
|
const n = O();
|
|
623
623
|
return /* @__PURE__ */ e(Ne, { sx: { bgcolor: n.palette.background.paper }, children: /* @__PURE__ */ c(Me, { alignItems: "flex-start", onClick: t, sx: o, children: [
|
|
@@ -625,12 +625,12 @@ const Ve = ({
|
|
|
625
625
|
/* @__PURE__ */ e(Le, { children: /* @__PURE__ */ e(ve, {}) })
|
|
626
626
|
] }) });
|
|
627
627
|
}
|
|
628
|
-
),
|
|
629
|
-
const { settings: t } = w(), { categories: r } =
|
|
628
|
+
), je = C(() => {
|
|
629
|
+
const { settings: t } = w(), { categories: r } = $(), { selectedRule: i, updateRuleCategory: o } = E(), [n, u] = m.useState(!1), s = () => {
|
|
630
630
|
u(!1);
|
|
631
631
|
}, a = () => {
|
|
632
632
|
u(!0);
|
|
633
|
-
}, l = (_) => r.find((d) => d.guid === _)?.name,
|
|
633
|
+
}, l = (_) => r.find((d) => d.guid === _)?.name, b = async (_) => {
|
|
634
634
|
i && i.category_guid !== _ && (i.category_guid = _, await o(i)), s();
|
|
635
635
|
};
|
|
636
636
|
return /* @__PURE__ */ c(m.Fragment, { children: [
|
|
@@ -643,18 +643,18 @@ const Ve = ({
|
|
|
643
643
|
}
|
|
644
644
|
),
|
|
645
645
|
/* @__PURE__ */ e(
|
|
646
|
-
|
|
646
|
+
Pe,
|
|
647
647
|
{
|
|
648
648
|
initialSelected: i?.category_guid ? i.category_guid : void 0,
|
|
649
649
|
onClose: s,
|
|
650
|
-
onSelect:
|
|
650
|
+
onSelect: b,
|
|
651
651
|
showDrawer: n,
|
|
652
652
|
title: t.select_category
|
|
653
653
|
}
|
|
654
654
|
)
|
|
655
655
|
] });
|
|
656
|
-
}),
|
|
657
|
-
const { common: t, settings: r } = w(), { selectedRule: i, updateRulePayee: o } = E(), n = O(), [u, s] = m.useState(!1), a = i?.description ? i.description : i?.match_description, [l,
|
|
656
|
+
}), Je = C(() => {
|
|
657
|
+
const { common: t, settings: r } = w(), { selectedRule: i, updateRulePayee: o } = E(), n = O(), [u, s] = m.useState(!1), a = i?.description ? i.description : i?.match_description, [l, b] = m.useState(a || ""), _ = () => {
|
|
658
658
|
s(!0);
|
|
659
659
|
}, d = async () => {
|
|
660
660
|
l !== a && i && (i.description = l, await o(i), s(!1));
|
|
@@ -685,7 +685,7 @@ const Ve = ({
|
|
|
685
685
|
children: /* @__PURE__ */ e(
|
|
686
686
|
A,
|
|
687
687
|
{
|
|
688
|
-
onChange: (p) =>
|
|
688
|
+
onChange: (p) => b(p.target.value),
|
|
689
689
|
sx: { width: 352 },
|
|
690
690
|
value: l
|
|
691
691
|
}
|
|
@@ -693,7 +693,7 @@ const Ve = ({
|
|
|
693
693
|
}
|
|
694
694
|
)
|
|
695
695
|
] });
|
|
696
|
-
}),
|
|
696
|
+
}), Ke = C(({ onClose: t, onDelete: r, isOpen: i }) => {
|
|
697
697
|
const { common: o, settings: n } = w();
|
|
698
698
|
return /* @__PURE__ */ e(
|
|
699
699
|
j,
|
|
@@ -711,7 +711,7 @@ const Ve = ({
|
|
|
711
711
|
children: /* @__PURE__ */ e(x, { truncate: !1, variant: "body2", children: n.delete_rule_confirm })
|
|
712
712
|
}
|
|
713
713
|
);
|
|
714
|
-
}),
|
|
714
|
+
}), Ye = C(
|
|
715
715
|
({ isOpen: t, onClose: r, onDelete: i }) => {
|
|
716
716
|
const { common: o, settings: n } = w(), [u, s] = m.useState(!1);
|
|
717
717
|
return /* @__PURE__ */ c(
|
|
@@ -728,12 +728,12 @@ const Ve = ({
|
|
|
728
728
|
title: n.edit_rule,
|
|
729
729
|
children: [
|
|
730
730
|
/* @__PURE__ */ e(Ee, { children: /* @__PURE__ */ e(x, { bold: !0, variant: "caption", children: n.details }) }),
|
|
731
|
-
/* @__PURE__ */ e(Ke, {}),
|
|
732
|
-
/* @__PURE__ */ e(K, { sx: { ml: 24 } }),
|
|
733
731
|
/* @__PURE__ */ e(Je, {}),
|
|
734
732
|
/* @__PURE__ */ e(K, { sx: { ml: 24 } }),
|
|
733
|
+
/* @__PURE__ */ e(je, {}),
|
|
734
|
+
/* @__PURE__ */ e(K, { sx: { ml: 24 } }),
|
|
735
735
|
/* @__PURE__ */ e(
|
|
736
|
-
|
|
736
|
+
Ke,
|
|
737
737
|
{
|
|
738
738
|
isOpen: u,
|
|
739
739
|
onClose: () => s(!1),
|
|
@@ -744,11 +744,11 @@ const Ve = ({
|
|
|
744
744
|
}
|
|
745
745
|
);
|
|
746
746
|
}
|
|
747
|
-
),
|
|
748
|
-
const { categories: r } =
|
|
747
|
+
), qe = C(({ rule: t }) => {
|
|
748
|
+
const { categories: r } = $(), { setSelectedGuid: i } = Re(), { deleteTransactionRule: o, setSelectedRule: n } = E(), { isDesktop: u, isTablet: s } = H(), [a, l] = m.useState(!1), b = () => {
|
|
749
749
|
l(!1), i(null), n(void 0);
|
|
750
750
|
}, _ = async () => {
|
|
751
|
-
await o(),
|
|
751
|
+
await o(), b();
|
|
752
752
|
}, d = () => {
|
|
753
753
|
l(!0), n(t);
|
|
754
754
|
}, p = (k) => r.find((v) => v.guid === k)?.name;
|
|
@@ -762,9 +762,9 @@ const Ve = ({
|
|
|
762
762
|
}
|
|
763
763
|
),
|
|
764
764
|
/* @__PURE__ */ e(K, { sx: { ml: s || u ? 0 : 24 } }),
|
|
765
|
-
/* @__PURE__ */ e(
|
|
765
|
+
/* @__PURE__ */ e(Ye, { isOpen: a, onClose: b, onDelete: _ })
|
|
766
766
|
] });
|
|
767
|
-
}),
|
|
767
|
+
}), re = C(() => {
|
|
768
768
|
const { settings: t } = w(), { loadTransactionRules: r, transactionRules: i } = E(), [o, n] = m.useState(!1);
|
|
769
769
|
return ne({
|
|
770
770
|
widgetName: "TransactionRulesTab",
|
|
@@ -776,15 +776,15 @@ const Ve = ({
|
|
|
776
776
|
/* @__PURE__ */ e(Y, { children: t.transaction_rules_label }),
|
|
777
777
|
/* @__PURE__ */ e(M, { variant: "body1", children: t.transaction_rules_description })
|
|
778
778
|
] }),
|
|
779
|
-
/* @__PURE__ */ e(Ae, { children: i.map((u, s) => /* @__PURE__ */ e(
|
|
779
|
+
/* @__PURE__ */ e(Ae, { children: i.map((u, s) => /* @__PURE__ */ e(qe, { rule: u }, s)) })
|
|
780
780
|
] });
|
|
781
|
-
}),
|
|
781
|
+
}), Qe = C(({ selectedTab: t }) => {
|
|
782
782
|
const { alert: r, setAlert: i } = E(), {
|
|
783
783
|
config: { display_user_profile_in_settings: o }
|
|
784
|
-
} =
|
|
784
|
+
} = G();
|
|
785
785
|
return /* @__PURE__ */ c(X, { children: [
|
|
786
786
|
t === N.Profile && /* @__PURE__ */ e(Ue, {}),
|
|
787
|
-
t === N.Devices && /* @__PURE__ */ e(
|
|
787
|
+
t === N.Devices && /* @__PURE__ */ e($e, {}),
|
|
788
788
|
t === N.Notifications && /* @__PURE__ */ e(J, { showPersonalDetails: !o }),
|
|
789
789
|
t === N.TransactionRules && /* @__PURE__ */ e(re, {}),
|
|
790
790
|
t === N.Help && /* @__PURE__ */ e(h, { sx: { px: 24 }, children: /* @__PURE__ */ e(Oe, {}) }),
|
|
@@ -811,13 +811,13 @@ const Ve = ({
|
|
|
811
811
|
] });
|
|
812
812
|
});
|
|
813
813
|
var N = /* @__PURE__ */ ((t) => (t[t.Profile = 0] = "Profile", t[t.Devices = 1] = "Devices", t[t.Notifications = 2] = "Notifications", t[t.TransactionRules = 3] = "TransactionRules", t[t.Help = 4] = "Help", t))(N || {});
|
|
814
|
-
const
|
|
815
|
-
const { settings: o } = w(), { isCopyLoaded: n, isInitialized: u } = ee(), { config: s } =
|
|
814
|
+
const Wt = C(({ onBackClick: t, onMenuClick: r, sx: i }) => {
|
|
815
|
+
const { settings: o } = w(), { isCopyLoaded: n, isInitialized: u } = ee(), { config: s } = G(), { isMobile: a } = H(), { categoriesLoaded: l, loadCategories: b } = $();
|
|
816
816
|
ne({
|
|
817
817
|
widgetName: "SettingsWidget",
|
|
818
818
|
isLoaded: u && n
|
|
819
819
|
}), m.useEffect(() => {
|
|
820
|
-
l ||
|
|
820
|
+
l || b().finally();
|
|
821
821
|
}, []);
|
|
822
822
|
const {
|
|
823
823
|
display_user_profile_in_settings: _,
|
|
@@ -831,7 +831,7 @@ const $t = C(({ onBackClick: t, onMenuClick: r, sx: i }) => {
|
|
|
831
831
|
{ enabled: p, index: 2, label: o?.notifications_label },
|
|
832
832
|
{ enabled: k, index: 3, label: o?.transaction_rules_label },
|
|
833
833
|
{ enabled: v, index: 4, label: o?.help_label }
|
|
834
|
-
], I = S.find((D) => D.enabled), [T,
|
|
834
|
+
], I = S.find((D) => D.enabled), [T, g] = m.useState(I ? I.index : -1);
|
|
835
835
|
return !n || !u ? /* @__PURE__ */ e(ie, {}) : /* @__PURE__ */ e(
|
|
836
836
|
q,
|
|
837
837
|
{
|
|
@@ -844,7 +844,7 @@ const $t = C(({ onBackClick: t, onMenuClick: r, sx: i }) => {
|
|
|
844
844
|
/* @__PURE__ */ e(
|
|
845
845
|
pe,
|
|
846
846
|
{
|
|
847
|
-
onChange: (D, F) =>
|
|
847
|
+
onChange: (D, F) => g(F),
|
|
848
848
|
sx: { bgcolor: "background.paper" },
|
|
849
849
|
textColor: "primary",
|
|
850
850
|
value: T,
|
|
@@ -854,31 +854,31 @@ const $t = C(({ onBackClick: t, onMenuClick: r, sx: i }) => {
|
|
|
854
854
|
)
|
|
855
855
|
}
|
|
856
856
|
),
|
|
857
|
-
/* @__PURE__ */ e(
|
|
857
|
+
/* @__PURE__ */ e(Qe, { selectedTab: T })
|
|
858
858
|
] })
|
|
859
859
|
}
|
|
860
860
|
);
|
|
861
|
-
}),
|
|
862
|
-
const { clientConfig: r } =
|
|
861
|
+
}), zt = C((t) => {
|
|
862
|
+
const { clientConfig: r } = G(), i = r?.master?.deep_link_params?.view;
|
|
863
863
|
return i ? /* @__PURE__ */ e(J, { view: i }) : /* @__PURE__ */ e(q, { ...t, showAccountFilter: !1, children: /* @__PURE__ */ e(h, { my: 24, children: /* @__PURE__ */ e(J, {}) }) });
|
|
864
|
-
}),
|
|
865
|
-
const { isMobile: r } = H(), { categoriesLoaded: i, loadCategories: o } =
|
|
864
|
+
}), Gt = (t) => {
|
|
865
|
+
const { isMobile: r } = H(), { categoriesLoaded: i, loadCategories: o } = $();
|
|
866
866
|
return m.useEffect(() => {
|
|
867
867
|
i || o().finally();
|
|
868
868
|
}), /* @__PURE__ */ e(q, { ...t, showAccountFilter: !1, children: /* @__PURE__ */ e(h, { sx: { mx: r ? 0 : 48, my: 24 }, children: /* @__PURE__ */ e(re, {}) }) });
|
|
869
869
|
};
|
|
870
870
|
export {
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
871
|
+
Yt as AccountNotificationProfiles,
|
|
872
|
+
qt as BudgetNotificationProfiles,
|
|
873
|
+
$e as DeviceTab,
|
|
874
|
+
Qt as InsightsNotificationProfiles,
|
|
875
875
|
J as NotificationSettings,
|
|
876
|
-
|
|
876
|
+
zt as NotificationSettingsWidget,
|
|
877
877
|
Ue as ProfileTab,
|
|
878
|
-
|
|
878
|
+
Jt as SettingsStore,
|
|
879
879
|
N as SettingsTabs,
|
|
880
|
-
|
|
881
|
-
|
|
880
|
+
Wt as SettingsWidget,
|
|
881
|
+
Qe as SettingsWidgetContents,
|
|
882
882
|
re as TransactionRulesTab,
|
|
883
|
-
|
|
883
|
+
Gt as TransactionRulesWidget
|
|
884
884
|
};
|