@mx-cartographer/experiences 7.12.17 → 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 +4 -0
- package/dist/{AccountDetailsHeader-BkEF1gO-.mjs → AccountDetailsHeader-D9gbTbUt.mjs} +31 -31
- package/dist/{AccountFields-C_dcdCM7.mjs → AccountFields-CxqONzjY.mjs} +6 -6
- package/dist/AccountListItem-LcJVJysf.mjs +90 -0
- package/dist/{AccountStore-ypdfueW9.mjs → AccountStore-BNlTuxWN.mjs} +1 -1
- 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/{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/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-BAf03YhK.mjs +0 -90
- package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
import { jsxs as c, Fragment as
|
|
1
|
+
import { S as Yt, a as qt } from "../SettingsStore-Cax1fzsz.mjs";
|
|
2
|
+
import { jsxs as c, Fragment as X, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import p from "react";
|
|
4
4
|
import { observer as C } from "mobx-react-lite";
|
|
5
5
|
import f from "@mui/material/Stack";
|
|
@@ -7,45 +7,45 @@ import ue from "@mui/material/Tab";
|
|
|
7
7
|
import pe from "@mui/material/Tabs";
|
|
8
8
|
import he from "@mui/material/Alert";
|
|
9
9
|
import fe from "@mui/material/Snackbar";
|
|
10
|
-
import { getUnixTime as
|
|
11
|
-
import { AdapterDateFns as
|
|
12
|
-
import { DatePicker as
|
|
10
|
+
import { getUnixTime as be } from "date-fns/getUnixTime";
|
|
11
|
+
import { AdapterDateFns as ge } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
12
|
+
import { DatePicker as _e } 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 U } from "@mui/material/styles";
|
|
15
15
|
import V from "@mui/material/Box";
|
|
16
16
|
import Z from "@mui/material/Button";
|
|
17
17
|
import I from "@mui/material/TextField";
|
|
18
|
-
import { H3 as K, P as
|
|
19
|
-
import { V as Ce, a as De, N as j } from "../NotificationSettings-
|
|
20
|
-
import { A as
|
|
21
|
-
import { u as D, a as $, r as A, o as
|
|
18
|
+
import { H3 as K, P as M, Text as v, Icon as B, ChevronRightIcon as ve } from "@mxenabled/mxui";
|
|
19
|
+
import { V as Ce, a as De, N as j } from "../NotificationSettings-DU3vJh5J.mjs";
|
|
20
|
+
import { A as Xt, B as Zt, I as eo } from "../NotificationSettings-DU3vJh5J.mjs";
|
|
21
|
+
import { u as D, a as $, r as A, o as we, b as ee, l as z } from "../hooks-BxkfR-Ff.mjs";
|
|
22
22
|
import { u as O } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
23
23
|
import { D as G } from "../Dialog-Ck34yr-d.mjs";
|
|
24
24
|
import { formatDistanceToNow as te } from "date-fns/formatDistanceToNow";
|
|
25
25
|
import { fromUnixTime as oe } from "date-fns/fromUnixTime";
|
|
26
26
|
import R from "@mui/material/styles/useTheme";
|
|
27
27
|
import W from "@mui/material/IconButton";
|
|
28
|
-
import { DataGridPro as
|
|
29
|
-
import { H as F } from "../HeaderCell-
|
|
28
|
+
import { DataGridPro as ke } from "@mui/x-data-grid-pro";
|
|
29
|
+
import { H as F } from "../HeaderCell-P8w6CmfO.mjs";
|
|
30
30
|
import { b as H } from "../Localization-CPkpIwIx.mjs";
|
|
31
|
-
import
|
|
31
|
+
import Se from "@mui/material/Accordion";
|
|
32
32
|
import Te from "@mui/material/AccordionDetails";
|
|
33
33
|
import Ie from "@mui/material/AccordionSummary";
|
|
34
34
|
import { L as ie } from "../Loader-D3rjKx72.mjs";
|
|
35
35
|
import Ae from "@mui/material/List";
|
|
36
36
|
import J from "@mui/material/Divider";
|
|
37
37
|
import Ee from "@mui/material/ListSubheader";
|
|
38
|
-
import { a as Re, u as Pe } from "../CategorySelectorDrawer-
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import { D as He } from "../Drawer-
|
|
38
|
+
import { a as Re, u as Pe } from "../CategorySelectorDrawer-DYHNBd2v.mjs";
|
|
39
|
+
import Ne from "@mui/material/ListItem";
|
|
40
|
+
import Me from "@mui/material/ListItemButton";
|
|
41
|
+
import Le from "@mui/material/ListItemIcon";
|
|
42
|
+
import Be from "@mui/material/ListItemText";
|
|
43
|
+
import { D as He } from "../Drawer-Bbe4AMB1.mjs";
|
|
44
44
|
import { u as ne } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
45
|
-
import { H as Oe } from "../Help-
|
|
46
|
-
import { W as
|
|
45
|
+
import { H as Oe } from "../Help-CpLfyvPv.mjs";
|
|
46
|
+
import { W as Y } from "../WidgetContainer-D_iaToWJ.mjs";
|
|
47
47
|
const Fe = ({ availableWidth: t, handleOnLeavClick: a }) => {
|
|
48
|
-
const o = xe(), { common: i, settings: n } = D(), { isDesktop: d, isMobile:
|
|
48
|
+
const o = xe(), { common: i, settings: n } = D(), { isDesktop: d, isMobile: s, isSmallMobile: r, isTablet: l } = O(t), { config: _ } = $(), { updateUser: g } = A(), { user: m } = we(), [h, w] = p.useState({
|
|
49
49
|
first_name: m.first_name,
|
|
50
50
|
last_name: m.last_name,
|
|
51
51
|
email: m.email,
|
|
@@ -53,36 +53,36 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: a }) => {
|
|
|
53
53
|
birthday: m.birthday,
|
|
54
54
|
postal_code: m.postal_code,
|
|
55
55
|
credit_score: m.credit_score
|
|
56
|
-
}), [x,
|
|
56
|
+
}), [x, k] = p.useState(!1), [S, T] = p.useState(!1), u = p.useRef(null), L = h.email && !m.email_is_verified && !x, Q = h.phone && !m.phone_is_verified && !x;
|
|
57
57
|
p.useEffect(() => {
|
|
58
58
|
if (a) {
|
|
59
|
-
const
|
|
59
|
+
const b = (P) => {
|
|
60
60
|
u.current && !u.current.contains(P.target) && x && T(!0);
|
|
61
61
|
};
|
|
62
|
-
return document.addEventListener("mousedown",
|
|
63
|
-
document.removeEventListener("mousedown",
|
|
62
|
+
return document.addEventListener("mousedown", b), () => {
|
|
63
|
+
document.removeEventListener("mousedown", b);
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
}, [x]);
|
|
67
67
|
const ae = () => {
|
|
68
68
|
if (h.birthday) {
|
|
69
|
-
const
|
|
69
|
+
const b = new Date(h.birthday * 1e3), P = b.getUTCFullYear(), de = b.getUTCMonth(), me = b.getUTCDate();
|
|
70
70
|
return new Date(P, de, me);
|
|
71
71
|
}
|
|
72
|
-
},
|
|
73
|
-
await
|
|
74
|
-
},
|
|
72
|
+
}, se = async () => {
|
|
73
|
+
await g({ ...m, ...h }), k(!1);
|
|
74
|
+
}, le = () => {
|
|
75
75
|
T(!1), a && a();
|
|
76
76
|
}, ce = () => {
|
|
77
77
|
T(!1);
|
|
78
|
-
}, E = (
|
|
78
|
+
}, E = (b) => {
|
|
79
79
|
const P = {
|
|
80
80
|
...h,
|
|
81
|
-
...
|
|
81
|
+
...b
|
|
82
82
|
};
|
|
83
|
-
|
|
83
|
+
w(P), k(JSON.stringify({ ...m, ...P }) !== JSON.stringify(m));
|
|
84
84
|
};
|
|
85
|
-
return /* @__PURE__ */ c(
|
|
85
|
+
return /* @__PURE__ */ c(X, { children: [
|
|
86
86
|
/* @__PURE__ */ c(
|
|
87
87
|
V,
|
|
88
88
|
{
|
|
@@ -91,19 +91,19 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: a }) => {
|
|
|
91
91
|
sx: {
|
|
92
92
|
backgroundColor: "background.paper",
|
|
93
93
|
p: 24,
|
|
94
|
-
width: r ? 320 :
|
|
94
|
+
width: r ? 320 : l ? 680 : d ? 990 : 400,
|
|
95
95
|
"& .MuiTextField-root": {
|
|
96
|
-
width: r ? 272 :
|
|
96
|
+
width: r ? 272 : l ? 328 : d ? 483 : 352
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
children: [
|
|
100
100
|
/* @__PURE__ */ e(K, { children: n.personal_details }),
|
|
101
|
-
/* @__PURE__ */ e(
|
|
101
|
+
/* @__PURE__ */ e(M, { variant: "body1", children: n.update_information }),
|
|
102
102
|
/* @__PURE__ */ c(
|
|
103
103
|
f,
|
|
104
104
|
{
|
|
105
|
-
direction:
|
|
106
|
-
spacing:
|
|
105
|
+
direction: s ? "column" : "row",
|
|
106
|
+
spacing: s ? 44 : 24,
|
|
107
107
|
sx: { mb: 44, pt: 32 },
|
|
108
108
|
children: [
|
|
109
109
|
/* @__PURE__ */ e(
|
|
@@ -111,7 +111,7 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: a }) => {
|
|
|
111
111
|
{
|
|
112
112
|
defaultValue: h.first_name,
|
|
113
113
|
label: n.first_name,
|
|
114
|
-
onChange: (
|
|
114
|
+
onChange: (b) => E({ first_name: b.target.value })
|
|
115
115
|
}
|
|
116
116
|
),
|
|
117
117
|
/* @__PURE__ */ e(
|
|
@@ -119,43 +119,43 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: a }) => {
|
|
|
119
119
|
{
|
|
120
120
|
defaultValue: h.last_name,
|
|
121
121
|
label: n.last_name,
|
|
122
|
-
onChange: (
|
|
122
|
+
onChange: (b) => E({ last_name: b.target.value })
|
|
123
123
|
}
|
|
124
124
|
)
|
|
125
125
|
]
|
|
126
126
|
}
|
|
127
127
|
),
|
|
128
|
-
/* @__PURE__ */ c(f, { direction:
|
|
129
|
-
|
|
128
|
+
/* @__PURE__ */ c(f, { direction: s ? "column" : "row", children: [
|
|
129
|
+
_.display_email_edit_field_in_settings && /* @__PURE__ */ c(f, { sx: { mb: L ? 20 : 44, mr: s ? 0 : 24 }, children: [
|
|
130
130
|
/* @__PURE__ */ e(
|
|
131
131
|
I,
|
|
132
132
|
{
|
|
133
133
|
defaultValue: h.email,
|
|
134
134
|
label: n.email_address,
|
|
135
|
-
onChange: (
|
|
135
|
+
onChange: (b) => E({ email: b.target.value })
|
|
136
136
|
}
|
|
137
137
|
),
|
|
138
|
-
|
|
138
|
+
L && /* @__PURE__ */ e(Ce, {})
|
|
139
139
|
] }),
|
|
140
|
-
|
|
140
|
+
_.display_sms_edit_field_in_settings && /* @__PURE__ */ c(f, { sx: { mb: Q ? 20 : 44 }, children: [
|
|
141
141
|
/* @__PURE__ */ e(
|
|
142
142
|
I,
|
|
143
143
|
{
|
|
144
144
|
defaultValue: h.phone,
|
|
145
145
|
label: n.mobile_number,
|
|
146
|
-
onChange: (
|
|
146
|
+
onChange: (b) => E({ phone: b.target.value }),
|
|
147
147
|
type: "tel"
|
|
148
148
|
}
|
|
149
149
|
),
|
|
150
|
-
|
|
150
|
+
Q && /* @__PURE__ */ e(De, {})
|
|
151
151
|
] })
|
|
152
152
|
] }),
|
|
153
|
-
/* @__PURE__ */ c(f, { direction:
|
|
154
|
-
/* @__PURE__ */ e(ye, { dateAdapter:
|
|
155
|
-
|
|
153
|
+
/* @__PURE__ */ c(f, { direction: s ? "column" : "row", spacing: s ? 44 : 24, sx: { mb: 44 }, children: [
|
|
154
|
+
/* @__PURE__ */ e(ye, { dateAdapter: ge, children: /* @__PURE__ */ e(
|
|
155
|
+
_e,
|
|
156
156
|
{
|
|
157
157
|
label: n.birthdate,
|
|
158
|
-
onChange: (
|
|
158
|
+
onChange: (b) => E({ birthday: be(b) }),
|
|
159
159
|
slotProps: {
|
|
160
160
|
nextIconButton: {
|
|
161
161
|
sx: {
|
|
@@ -185,7 +185,7 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: a }) => {
|
|
|
185
185
|
{
|
|
186
186
|
defaultValue: h.postal_code,
|
|
187
187
|
label: n.zip_code,
|
|
188
|
-
onChange: (
|
|
188
|
+
onChange: (b) => E({ postal_code: b.target.value })
|
|
189
189
|
}
|
|
190
190
|
)
|
|
191
191
|
] }),
|
|
@@ -195,7 +195,7 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: a }) => {
|
|
|
195
195
|
{
|
|
196
196
|
defaultValue: h.credit_score,
|
|
197
197
|
label: n.credit_score,
|
|
198
|
-
onChange: (
|
|
198
|
+
onChange: (b) => E({ credit_score: Number(b.target.value) }),
|
|
199
199
|
sx: { mb: 44 }
|
|
200
200
|
}
|
|
201
201
|
),
|
|
@@ -203,7 +203,7 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: a }) => {
|
|
|
203
203
|
Z,
|
|
204
204
|
{
|
|
205
205
|
disabled: !x,
|
|
206
|
-
onClick:
|
|
206
|
+
onClick: se,
|
|
207
207
|
sx: { width: r ? 272 : 124 },
|
|
208
208
|
variant: "contained",
|
|
209
209
|
children: i.save_button
|
|
@@ -217,9 +217,9 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: a }) => {
|
|
|
217
217
|
G,
|
|
218
218
|
{
|
|
219
219
|
copy: { title: n.discard_changes },
|
|
220
|
-
isOpen:
|
|
220
|
+
isOpen: S,
|
|
221
221
|
onClose: ce,
|
|
222
|
-
onSecondaryAction:
|
|
222
|
+
onSecondaryAction: le,
|
|
223
223
|
primaryText: n.keep_editing,
|
|
224
224
|
secondaryText: n.leave,
|
|
225
225
|
children: n.discard_changes_message
|
|
@@ -239,14 +239,14 @@ const Ve = ({
|
|
|
239
239
|
headerName: n.mobile_devices_column_name,
|
|
240
240
|
renderHeader: F,
|
|
241
241
|
renderCell: (r) => /* @__PURE__ */ c(f, { alignItems: "center", direction: "row", gap: 4, children: [
|
|
242
|
-
/* @__PURE__ */ e(v, { variant: "
|
|
242
|
+
/* @__PURE__ */ e(v, { variant: "body2", children: r.value }),
|
|
243
243
|
/* @__PURE__ */ e(
|
|
244
244
|
W,
|
|
245
245
|
{
|
|
246
246
|
"aria-label": n.mobile_devices_edit_label,
|
|
247
247
|
color: "secondary",
|
|
248
248
|
onClick: () => a(r.row),
|
|
249
|
-
children: /* @__PURE__ */ e(
|
|
249
|
+
children: /* @__PURE__ */ e(B, { name: "edit" })
|
|
250
250
|
}
|
|
251
251
|
)
|
|
252
252
|
] }),
|
|
@@ -283,26 +283,26 @@ const Ve = ({
|
|
|
283
283
|
"aria-label": n.mobile_devices_delete_label,
|
|
284
284
|
color: "secondary",
|
|
285
285
|
onClick: () => o(r.row),
|
|
286
|
-
children: /* @__PURE__ */ e(
|
|
286
|
+
children: /* @__PURE__ */ e(B, { name: "delete" })
|
|
287
287
|
}
|
|
288
288
|
) }),
|
|
289
289
|
sortable: !1,
|
|
290
290
|
hideSortIcons: !1,
|
|
291
291
|
width: 58
|
|
292
292
|
}
|
|
293
|
-
],
|
|
293
|
+
], s = p.useMemo(() => t.map((r) => ({
|
|
294
294
|
id: r.guid,
|
|
295
295
|
...r,
|
|
296
296
|
device_type: `${r.make} ${r.model}`
|
|
297
297
|
})), [t]);
|
|
298
298
|
return /* @__PURE__ */ e(V, { sx: { width: "100%" }, children: /* @__PURE__ */ e(
|
|
299
|
-
|
|
299
|
+
ke,
|
|
300
300
|
{
|
|
301
301
|
columns: d,
|
|
302
302
|
disableColumnFilter: !0,
|
|
303
303
|
disableColumnMenu: !0,
|
|
304
304
|
disableRowSelectionOnClick: !0,
|
|
305
|
-
rows:
|
|
305
|
+
rows: s,
|
|
306
306
|
slotProps: {
|
|
307
307
|
footer: {
|
|
308
308
|
sx: { justifyContent: "flex-end" }
|
|
@@ -319,7 +319,7 @@ const Ve = ({
|
|
|
319
319
|
alignItems: "center",
|
|
320
320
|
p: "12px 16px"
|
|
321
321
|
},
|
|
322
|
-
children: /* @__PURE__ */ e(v, { color: i.palette.text.secondary, variant: "
|
|
322
|
+
children: /* @__PURE__ */ e(v, { color: i.palette.text.secondary, variant: "body2", children: H(
|
|
323
323
|
n.mobile_devices_count,
|
|
324
324
|
/* @__PURE__ */ e("b", { children: t.length }),
|
|
325
325
|
/* @__PURE__ */ e("b", { children: t.length })
|
|
@@ -348,30 +348,30 @@ const Ve = ({
|
|
|
348
348
|
onClickDeviceEdit: a,
|
|
349
349
|
onClickDeviceDelete: o
|
|
350
350
|
}) => {
|
|
351
|
-
const i = R(), { settings: n } = D(), [d,
|
|
352
|
-
|
|
351
|
+
const i = R(), { settings: n } = D(), [d, s] = p.useState(!1), r = (l) => (_, g) => {
|
|
352
|
+
s(g ? l : !1);
|
|
353
353
|
};
|
|
354
354
|
return /* @__PURE__ */ c(f, { mx: -28, sx: { "& .MuiAccordion-root": { mb: 0, mt: 0 } }, children: [
|
|
355
|
-
t.map((
|
|
356
|
-
|
|
355
|
+
t.map((l) => /* @__PURE__ */ c(
|
|
356
|
+
Se,
|
|
357
357
|
{
|
|
358
|
-
expanded: d ===
|
|
359
|
-
onChange: r(
|
|
358
|
+
expanded: d === l.guid,
|
|
359
|
+
onChange: r(l.guid),
|
|
360
360
|
sx: { boxShadow: "none" },
|
|
361
361
|
children: [
|
|
362
362
|
/* @__PURE__ */ e(
|
|
363
363
|
Ie,
|
|
364
364
|
{
|
|
365
|
-
expandIcon: /* @__PURE__ */ e(
|
|
365
|
+
expandIcon: /* @__PURE__ */ e(B, { color: "secondary", name: "keyboard_arrow_down", size: 24 }),
|
|
366
366
|
sx: {
|
|
367
367
|
padding: "14px 24px",
|
|
368
368
|
borderBottom: "1px solid",
|
|
369
369
|
borderColor: i.palette.border.light
|
|
370
370
|
},
|
|
371
371
|
children: /* @__PURE__ */ c(f, { gap: 4, children: [
|
|
372
|
-
/* @__PURE__ */ e(v, { bold: !0, variant: "
|
|
373
|
-
/* @__PURE__ */ e(v, { color: i.palette.text.secondary, variant: "
|
|
374
|
-
/* @__PURE__ */ e(v, { color: i.palette.text.secondary, variant: "
|
|
372
|
+
/* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: l.name }),
|
|
373
|
+
/* @__PURE__ */ e(v, { color: i.palette.text.secondary, variant: "body2", children: `${l.make} ${l.model}` }),
|
|
374
|
+
/* @__PURE__ */ e(v, { color: i.palette.text.secondary, variant: "body2", children: te(oe(l.created_at), { addSuffix: !0 }) })
|
|
375
375
|
] })
|
|
376
376
|
}
|
|
377
377
|
),
|
|
@@ -383,7 +383,7 @@ const Ve = ({
|
|
|
383
383
|
/* @__PURE__ */ c(
|
|
384
384
|
f,
|
|
385
385
|
{
|
|
386
|
-
onClick: () => a(
|
|
386
|
+
onClick: () => a(l),
|
|
387
387
|
sx: {
|
|
388
388
|
alignItems: "center",
|
|
389
389
|
flexDirection: "row",
|
|
@@ -395,15 +395,15 @@ const Ve = ({
|
|
|
395
395
|
borderColor: i.palette.border.light
|
|
396
396
|
},
|
|
397
397
|
children: [
|
|
398
|
-
/* @__PURE__ */ e(W, { "aria-label": n.mobile_devices_edit_label, color: "secondary", children: /* @__PURE__ */ e(
|
|
399
|
-
/* @__PURE__ */ e(v, { variant: "
|
|
398
|
+
/* @__PURE__ */ e(W, { "aria-label": n.mobile_devices_edit_label, color: "secondary", children: /* @__PURE__ */ e(B, { name: "edit" }) }),
|
|
399
|
+
/* @__PURE__ */ e(v, { variant: "body1", children: n.mobile_devices_edit_label })
|
|
400
400
|
]
|
|
401
401
|
}
|
|
402
402
|
),
|
|
403
403
|
/* @__PURE__ */ c(
|
|
404
404
|
f,
|
|
405
405
|
{
|
|
406
|
-
onClick: () => o(
|
|
406
|
+
onClick: () => o(l),
|
|
407
407
|
sx: {
|
|
408
408
|
alignItems: "center",
|
|
409
409
|
flexDirection: "row",
|
|
@@ -413,8 +413,8 @@ const Ve = ({
|
|
|
413
413
|
cursor: "pointer"
|
|
414
414
|
},
|
|
415
415
|
children: [
|
|
416
|
-
/* @__PURE__ */ e(W, { "aria-label": n.mobile_devices_delete_label, color: "secondary", children: /* @__PURE__ */ e(
|
|
417
|
-
/* @__PURE__ */ e(v, { variant: "
|
|
416
|
+
/* @__PURE__ */ e(W, { "aria-label": n.mobile_devices_delete_label, color: "secondary", children: /* @__PURE__ */ e(B, { name: "delete" }) }),
|
|
417
|
+
/* @__PURE__ */ e(v, { variant: "body1", children: n.mobile_devices_delete_label })
|
|
418
418
|
]
|
|
419
419
|
}
|
|
420
420
|
)
|
|
@@ -423,7 +423,7 @@ const Ve = ({
|
|
|
423
423
|
)
|
|
424
424
|
]
|
|
425
425
|
},
|
|
426
|
-
|
|
426
|
+
l.guid
|
|
427
427
|
)),
|
|
428
428
|
/* @__PURE__ */ e(
|
|
429
429
|
V,
|
|
@@ -434,7 +434,7 @@ const Ve = ({
|
|
|
434
434
|
borderColor: i.palette.border.light,
|
|
435
435
|
p: "12px 16px"
|
|
436
436
|
},
|
|
437
|
-
children: /* @__PURE__ */ e(v, { color: i.palette.text.secondary, variant: "
|
|
437
|
+
children: /* @__PURE__ */ e(v, { color: i.palette.text.secondary, variant: "body2", children: H(
|
|
438
438
|
n.mobile_devices_count,
|
|
439
439
|
/* @__PURE__ */ e("b", { children: t.length }),
|
|
440
440
|
/* @__PURE__ */ e("b", { children: t.length })
|
|
@@ -449,9 +449,9 @@ const Ve = ({
|
|
|
449
449
|
device: i,
|
|
450
450
|
deviceToken: n = ""
|
|
451
451
|
}) => {
|
|
452
|
-
const d = R(), { common:
|
|
452
|
+
const d = R(), { common: s, settings: r } = D(), { updateDevice: l, deleteDevice: _, setAlert: g, loadDevices: m } = A(), [h, w] = p.useState("");
|
|
453
453
|
p.useEffect(() => {
|
|
454
|
-
i &&
|
|
454
|
+
i && w(i.name);
|
|
455
455
|
}, [i, t]);
|
|
456
456
|
const x = () => {
|
|
457
457
|
switch (t) {
|
|
@@ -462,18 +462,18 @@ const Ve = ({
|
|
|
462
462
|
default:
|
|
463
463
|
return "";
|
|
464
464
|
}
|
|
465
|
-
},
|
|
465
|
+
}, k = () => {
|
|
466
466
|
switch (t) {
|
|
467
467
|
case y.Token:
|
|
468
|
-
return
|
|
468
|
+
return s.done_button;
|
|
469
469
|
case y.Edit:
|
|
470
|
-
return
|
|
470
|
+
return s.save_button;
|
|
471
471
|
case y.Delete:
|
|
472
|
-
return
|
|
472
|
+
return s.delete_button;
|
|
473
473
|
default:
|
|
474
474
|
return "";
|
|
475
475
|
}
|
|
476
|
-
},
|
|
476
|
+
}, S = () => {
|
|
477
477
|
const u = {
|
|
478
478
|
"& .MuiDialogContent-root": {
|
|
479
479
|
width: 400,
|
|
@@ -500,7 +500,7 @@ const Ve = ({
|
|
|
500
500
|
justifyContent: "flex-end"
|
|
501
501
|
},
|
|
502
502
|
...t === y.Delete && {
|
|
503
|
-
"& .MuiTypography-
|
|
503
|
+
"& .MuiTypography-body1": {
|
|
504
504
|
padding: 0
|
|
505
505
|
}
|
|
506
506
|
}
|
|
@@ -508,15 +508,15 @@ const Ve = ({
|
|
|
508
508
|
}, T = async () => {
|
|
509
509
|
if (t === y.Token && o(), t === y.Edit && i) {
|
|
510
510
|
const u = { ...i, name: h };
|
|
511
|
-
(await
|
|
511
|
+
(await l(u)).success ? (g(r.mobile_devices_edit_success, "success"), m()) : g(
|
|
512
512
|
H(r.mobile_devices_edit_error, i.name),
|
|
513
513
|
"error"
|
|
514
514
|
), o();
|
|
515
515
|
}
|
|
516
|
-
t === y.Delete && i && ((await
|
|
516
|
+
t === y.Delete && i && ((await _(i.guid)).success ? (g(
|
|
517
517
|
H(r.mobile_devices_delete_success, i.name),
|
|
518
518
|
"success"
|
|
519
|
-
), m()) :
|
|
519
|
+
), m()) : g(
|
|
520
520
|
H(r.mobile_devices_delete_error, i.name),
|
|
521
521
|
"error"
|
|
522
522
|
), o());
|
|
@@ -530,46 +530,46 @@ const Ve = ({
|
|
|
530
530
|
onPrimaryAction: T,
|
|
531
531
|
onSecondaryAction: o,
|
|
532
532
|
primaryColor: t === y.Delete ? "error" : void 0,
|
|
533
|
-
primaryText:
|
|
534
|
-
secondaryText: t === y.Token ?
|
|
535
|
-
sx:
|
|
533
|
+
primaryText: k(),
|
|
534
|
+
secondaryText: t === y.Token ? s.back : s.cancel_button,
|
|
535
|
+
sx: S(),
|
|
536
536
|
children: [
|
|
537
537
|
t === y.Token && /* @__PURE__ */ c(f, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
|
|
538
|
-
/* @__PURE__ */ e(v, { bold: !0, truncate: !1, variant: "
|
|
539
|
-
/* @__PURE__ */ e(v, { truncate: !1, variant: "
|
|
538
|
+
/* @__PURE__ */ e(v, { bold: !0, truncate: !1, variant: "body1", children: r.mobile_devices_access_label }),
|
|
539
|
+
/* @__PURE__ */ e(v, { truncate: !1, variant: "body2", children: r.mobile_devices_access_info_1 }),
|
|
540
540
|
/* @__PURE__ */ e(
|
|
541
|
-
|
|
541
|
+
M,
|
|
542
542
|
{
|
|
543
543
|
sx: {
|
|
544
544
|
border: `1px solid ${d.palette.border.light}`,
|
|
545
545
|
borderRadius: "4px",
|
|
546
546
|
p: "16px 32px"
|
|
547
547
|
},
|
|
548
|
-
variant: "
|
|
548
|
+
variant: "h1",
|
|
549
549
|
children: n
|
|
550
550
|
}
|
|
551
551
|
),
|
|
552
|
-
/* @__PURE__ */ e(v, { truncate: !1, variant: "
|
|
552
|
+
/* @__PURE__ */ e(v, { truncate: !1, variant: "body2", children: r.mobile_devices_access_info_2 })
|
|
553
553
|
] }),
|
|
554
|
-
t === y.Edit && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(I, { onChange: (u) =>
|
|
555
|
-
t === y.Delete && /* @__PURE__ */ e(
|
|
554
|
+
t === y.Edit && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(I, { onChange: (u) => w(u.target.value), value: h }) }),
|
|
555
|
+
t === y.Delete && /* @__PURE__ */ e(M, { children: r.mobile_devices_delete_info })
|
|
556
556
|
]
|
|
557
557
|
}
|
|
558
558
|
);
|
|
559
559
|
}, ze = C($e), Ge = C(() => {
|
|
560
|
-
const { isMobile: t } = O(), { settings: a } = D(), { isCopyLoaded: o, isInitialized: i } = ee(), { setAlert: n, devices: d, loadDevices:
|
|
560
|
+
const { isMobile: t } = O(), { settings: a } = D(), { isCopyLoaded: o, isInitialized: i } = ee(), { setAlert: n, devices: d, loadDevices: s, generateDeviceToken: r } = A(), [l, _] = p.useState({ open: !1, type: "" }), [g, m] = p.useState(), [h, w] = p.useState("");
|
|
561
561
|
p.useEffect(() => {
|
|
562
|
-
i &&
|
|
562
|
+
i && s();
|
|
563
563
|
}, [i]);
|
|
564
564
|
const x = async () => {
|
|
565
565
|
const u = await r();
|
|
566
|
-
u ? (
|
|
567
|
-
}, w = (u) => {
|
|
568
|
-
m(u), b({ open: !0, type: y.Edit });
|
|
566
|
+
u ? (w(u), _({ open: !0, type: y.Token })) : n(a.mobile_devices_access_error, "error");
|
|
569
567
|
}, k = (u) => {
|
|
570
|
-
m(u),
|
|
568
|
+
m(u), _({ open: !0, type: y.Edit });
|
|
569
|
+
}, S = (u) => {
|
|
570
|
+
m(u), _({ open: !0, type: y.Delete });
|
|
571
571
|
}, T = () => {
|
|
572
|
-
|
|
572
|
+
_({ open: !1, type: "" }), m(void 0);
|
|
573
573
|
};
|
|
574
574
|
return !o || !i ? /* @__PURE__ */ e(ie, {}) : /* @__PURE__ */ c(
|
|
575
575
|
f,
|
|
@@ -582,63 +582,63 @@ const Ve = ({
|
|
|
582
582
|
children: [
|
|
583
583
|
/* @__PURE__ */ c(f, { gap: 4, children: [
|
|
584
584
|
/* @__PURE__ */ e(K, { children: a.mobile_devices_title }),
|
|
585
|
-
/* @__PURE__ */ e(
|
|
585
|
+
/* @__PURE__ */ e(M, { variant: "body1", children: a.mobile_devices_info })
|
|
586
586
|
] }),
|
|
587
587
|
t ? /* @__PURE__ */ e(
|
|
588
588
|
We,
|
|
589
589
|
{
|
|
590
590
|
devices: d,
|
|
591
|
-
onClickDeviceDelete:
|
|
592
|
-
onClickDeviceEdit:
|
|
591
|
+
onClickDeviceDelete: S,
|
|
592
|
+
onClickDeviceEdit: k
|
|
593
593
|
}
|
|
594
594
|
) : /* @__PURE__ */ e(
|
|
595
595
|
Ve,
|
|
596
596
|
{
|
|
597
597
|
devices: d,
|
|
598
|
-
onClickDeviceDelete:
|
|
599
|
-
onClickDeviceEdit:
|
|
598
|
+
onClickDeviceDelete: S,
|
|
599
|
+
onClickDeviceEdit: k
|
|
600
600
|
}
|
|
601
601
|
),
|
|
602
602
|
/* @__PURE__ */ c(f, { sx: { alignItems: "center", px: 24, py: 12, gap: 4 }, children: [
|
|
603
|
-
/* @__PURE__ */ e(v, { bold: !0, variant: "
|
|
604
|
-
/* @__PURE__ */ e(
|
|
603
|
+
/* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: a.mobile_devices_access_title }),
|
|
604
|
+
/* @__PURE__ */ e(M, { align: "center", variant: "body2", children: a.mobile_devices_access_description }),
|
|
605
605
|
/* @__PURE__ */ e(Z, { onClick: x, variant: "text", children: a.mobile_devices_access_cta })
|
|
606
606
|
] }),
|
|
607
607
|
/* @__PURE__ */ e(
|
|
608
608
|
ze,
|
|
609
609
|
{
|
|
610
|
-
device:
|
|
610
|
+
device: g,
|
|
611
611
|
deviceToken: h,
|
|
612
|
-
dialogType:
|
|
613
|
-
isOpen:
|
|
612
|
+
dialogType: l.type,
|
|
613
|
+
isOpen: l.open,
|
|
614
614
|
onClose: T
|
|
615
615
|
}
|
|
616
616
|
)
|
|
617
617
|
]
|
|
618
618
|
}
|
|
619
619
|
);
|
|
620
|
-
}), je = Ge,
|
|
620
|
+
}), je = Ge, q = C(
|
|
621
621
|
({ onClick: t, primaryText: a, secondaryText: o, sx: i }) => {
|
|
622
622
|
const n = R();
|
|
623
|
-
return /* @__PURE__ */ e(
|
|
624
|
-
/* @__PURE__ */ e(
|
|
625
|
-
/* @__PURE__ */ e(
|
|
623
|
+
return /* @__PURE__ */ e(Ne, { sx: { bgcolor: n.palette.background.paper }, children: /* @__PURE__ */ c(Me, { alignItems: "flex-start", onClick: t, sx: i, children: [
|
|
624
|
+
/* @__PURE__ */ e(Be, { primary: a, secondary: o }),
|
|
625
|
+
/* @__PURE__ */ e(Le, { children: /* @__PURE__ */ e(ve, {}) })
|
|
626
626
|
] }) });
|
|
627
627
|
}
|
|
628
628
|
), Je = C(() => {
|
|
629
|
-
const { settings: t } = D(), { categories: a } = z(), { selectedRule: o, updateRuleCategory: i } = A(), [n, d] = p.useState(!1),
|
|
629
|
+
const { settings: t } = D(), { categories: a } = z(), { selectedRule: o, updateRuleCategory: i } = A(), [n, d] = p.useState(!1), s = () => {
|
|
630
630
|
d(!1);
|
|
631
631
|
}, r = () => {
|
|
632
632
|
d(!0);
|
|
633
|
-
},
|
|
634
|
-
o && o.category_guid !==
|
|
633
|
+
}, l = (g) => a.find((m) => m.guid === g)?.name, _ = async (g) => {
|
|
634
|
+
o && o.category_guid !== g && (o.category_guid = g, await i(o)), s();
|
|
635
635
|
};
|
|
636
636
|
return /* @__PURE__ */ c(p.Fragment, { children: [
|
|
637
637
|
/* @__PURE__ */ e(
|
|
638
|
-
|
|
638
|
+
q,
|
|
639
639
|
{
|
|
640
640
|
onClick: r,
|
|
641
|
-
primaryText: o?.category_guid ?
|
|
641
|
+
primaryText: o?.category_guid ? l(o.category_guid) : "",
|
|
642
642
|
secondaryText: t.category
|
|
643
643
|
}
|
|
644
644
|
),
|
|
@@ -646,24 +646,24 @@ const Ve = ({
|
|
|
646
646
|
Re,
|
|
647
647
|
{
|
|
648
648
|
initialSelected: o?.category_guid ? o.category_guid : void 0,
|
|
649
|
-
onClose:
|
|
650
|
-
onSelect:
|
|
649
|
+
onClose: s,
|
|
650
|
+
onSelect: _,
|
|
651
651
|
showDrawer: n,
|
|
652
652
|
title: t.select_category
|
|
653
653
|
}
|
|
654
654
|
)
|
|
655
655
|
] });
|
|
656
656
|
}), Ke = C(() => {
|
|
657
|
-
const { common: t, settings: a } = D(), { selectedRule: o, updateRulePayee: i } = A(), n = R(), [d,
|
|
658
|
-
|
|
657
|
+
const { common: t, settings: a } = D(), { selectedRule: o, updateRulePayee: i } = A(), n = R(), [d, s] = p.useState(!1), r = o?.description ? o.description : o?.match_description, [l, _] = p.useState(r || ""), g = () => {
|
|
658
|
+
s(!0);
|
|
659
659
|
}, m = async () => {
|
|
660
|
-
|
|
660
|
+
l !== r && o && (o.description = l, await i(o), s(!1));
|
|
661
661
|
};
|
|
662
662
|
return /* @__PURE__ */ c(p.Fragment, { children: [
|
|
663
663
|
/* @__PURE__ */ e(
|
|
664
|
-
|
|
664
|
+
q,
|
|
665
665
|
{
|
|
666
|
-
onClick:
|
|
666
|
+
onClick: g,
|
|
667
667
|
primaryText: r,
|
|
668
668
|
secondaryText: a.payee
|
|
669
669
|
}
|
|
@@ -673,9 +673,9 @@ const Ve = ({
|
|
|
673
673
|
{
|
|
674
674
|
copy: { title: a.edit_payee },
|
|
675
675
|
isOpen: d,
|
|
676
|
-
onClose: () =>
|
|
676
|
+
onClose: () => s(!1),
|
|
677
677
|
onPrimaryAction: m,
|
|
678
|
-
onSecondaryAction: () =>
|
|
678
|
+
onSecondaryAction: () => s(!1),
|
|
679
679
|
primaryText: t.save_button,
|
|
680
680
|
secondaryText: t.cancel_button,
|
|
681
681
|
sx: {
|
|
@@ -685,15 +685,15 @@ const Ve = ({
|
|
|
685
685
|
children: /* @__PURE__ */ e(
|
|
686
686
|
I,
|
|
687
687
|
{
|
|
688
|
-
onChange: (h) =>
|
|
688
|
+
onChange: (h) => _(h.target.value),
|
|
689
689
|
sx: { width: 352 },
|
|
690
|
-
value:
|
|
690
|
+
value: l
|
|
691
691
|
}
|
|
692
692
|
)
|
|
693
693
|
}
|
|
694
694
|
)
|
|
695
695
|
] });
|
|
696
|
-
}),
|
|
696
|
+
}), Ye = C(({ onClose: t, onDelete: a, isOpen: o }) => {
|
|
697
697
|
const { common: i, settings: n } = D(), d = R();
|
|
698
698
|
return /* @__PURE__ */ e(
|
|
699
699
|
G,
|
|
@@ -714,12 +714,12 @@ const Ve = ({
|
|
|
714
714
|
"& .MuiDialogContent-root": { pt: 0, width: 400 },
|
|
715
715
|
path: { fill: d.palette.secondary.darker }
|
|
716
716
|
},
|
|
717
|
-
children: /* @__PURE__ */ e(v, { truncate: !1, variant: "
|
|
717
|
+
children: /* @__PURE__ */ e(v, { truncate: !1, variant: "body2", children: n.delete_rule_confirm })
|
|
718
718
|
}
|
|
719
719
|
);
|
|
720
|
-
}),
|
|
720
|
+
}), qe = C(
|
|
721
721
|
({ isOpen: t, onClose: a, onDelete: o }) => {
|
|
722
|
-
const { common: i, settings: n } = D(), d = R(), [
|
|
722
|
+
const { common: i, settings: n } = D(), d = R(), [s, r] = p.useState(!1);
|
|
723
723
|
return /* @__PURE__ */ c(
|
|
724
724
|
He,
|
|
725
725
|
{
|
|
@@ -736,15 +736,15 @@ const Ve = ({
|
|
|
736
736
|
},
|
|
737
737
|
title: n.edit_rule,
|
|
738
738
|
children: [
|
|
739
|
-
/* @__PURE__ */ e(Ee, { children: /* @__PURE__ */ e(v, { bold: !0, variant: "
|
|
739
|
+
/* @__PURE__ */ e(Ee, { children: /* @__PURE__ */ e(v, { bold: !0, variant: "caption", children: n.details }) }),
|
|
740
740
|
/* @__PURE__ */ e(Ke, {}),
|
|
741
741
|
/* @__PURE__ */ e(J, { sx: { ml: 24 } }),
|
|
742
742
|
/* @__PURE__ */ e(Je, {}),
|
|
743
743
|
/* @__PURE__ */ e(J, { sx: { ml: 24 } }),
|
|
744
744
|
/* @__PURE__ */ e(
|
|
745
|
-
|
|
745
|
+
Ye,
|
|
746
746
|
{
|
|
747
|
-
isOpen:
|
|
747
|
+
isOpen: s,
|
|
748
748
|
onClose: () => r(!1),
|
|
749
749
|
onDelete: o
|
|
750
750
|
}
|
|
@@ -753,27 +753,27 @@ const Ve = ({
|
|
|
753
753
|
}
|
|
754
754
|
);
|
|
755
755
|
}
|
|
756
|
-
),
|
|
757
|
-
const { categories: a } = z(), { setSelectedGuid: o } = Pe(), { deleteTransactionRule: i, setSelectedRule: n } = A(), { isDesktop: d, isTablet:
|
|
758
|
-
|
|
759
|
-
},
|
|
760
|
-
await i(),
|
|
756
|
+
), Qe = C(({ rule: t }) => {
|
|
757
|
+
const { categories: a } = z(), { setSelectedGuid: o } = Pe(), { deleteTransactionRule: i, setSelectedRule: n } = A(), { isDesktop: d, isTablet: s } = O(), [r, l] = p.useState(!1), _ = () => {
|
|
758
|
+
l(!1), o(null), n(void 0);
|
|
759
|
+
}, g = async () => {
|
|
760
|
+
await i(), _();
|
|
761
761
|
}, m = () => {
|
|
762
|
-
|
|
763
|
-
}, h = (
|
|
762
|
+
l(!0), n(t);
|
|
763
|
+
}, h = (w) => a.find((x) => x.guid === w)?.name;
|
|
764
764
|
return /* @__PURE__ */ c(p.Fragment, { children: [
|
|
765
765
|
/* @__PURE__ */ e(
|
|
766
|
-
|
|
766
|
+
q,
|
|
767
767
|
{
|
|
768
768
|
onClick: m,
|
|
769
769
|
primaryText: t.description ? t.description : t.match_description,
|
|
770
770
|
secondaryText: t.category_guid ? h(t.category_guid) : ""
|
|
771
771
|
}
|
|
772
772
|
),
|
|
773
|
-
/* @__PURE__ */ e(J, { sx: { ml:
|
|
774
|
-
/* @__PURE__ */ e(
|
|
773
|
+
/* @__PURE__ */ e(J, { sx: { ml: s || d ? 0 : 24 } }),
|
|
774
|
+
/* @__PURE__ */ e(qe, { isOpen: r, onClose: _, onDelete: g })
|
|
775
775
|
] });
|
|
776
|
-
}),
|
|
776
|
+
}), Xe = C(() => {
|
|
777
777
|
const { settings: t } = D(), { loadTransactionRules: a, transactionRules: o } = A(), [i, n] = p.useState(!1);
|
|
778
778
|
return ne({
|
|
779
779
|
widgetName: "TransactionRulesTab",
|
|
@@ -783,20 +783,20 @@ const Ve = ({
|
|
|
783
783
|
}, []), /* @__PURE__ */ c(f, { sx: { gap: 24, py: 24 }, children: [
|
|
784
784
|
/* @__PURE__ */ c(f, { sx: { px: 24 }, children: [
|
|
785
785
|
/* @__PURE__ */ e(K, { children: t.transaction_rules_label }),
|
|
786
|
-
/* @__PURE__ */ e(
|
|
786
|
+
/* @__PURE__ */ e(M, { variant: "body1", children: t.transaction_rules_description })
|
|
787
787
|
] }),
|
|
788
|
-
/* @__PURE__ */ e(Ae, { children: o.map((d,
|
|
788
|
+
/* @__PURE__ */ e(Ae, { children: o.map((d, s) => /* @__PURE__ */ e(Qe, { rule: d }, s)) })
|
|
789
789
|
] });
|
|
790
|
-
}), re =
|
|
790
|
+
}), re = Xe, Ze = C(({ selectedTab: t }) => {
|
|
791
791
|
const { alert: a, setAlert: o } = A(), {
|
|
792
792
|
config: { display_user_profile_in_settings: i }
|
|
793
793
|
} = $();
|
|
794
|
-
return /* @__PURE__ */ c(
|
|
795
|
-
t ===
|
|
796
|
-
t ===
|
|
797
|
-
t ===
|
|
798
|
-
t ===
|
|
799
|
-
t ===
|
|
794
|
+
return /* @__PURE__ */ c(X, { children: [
|
|
795
|
+
t === N.Profile && /* @__PURE__ */ e(Ue, {}),
|
|
796
|
+
t === N.Devices && /* @__PURE__ */ e(je, {}),
|
|
797
|
+
t === N.Notifications && /* @__PURE__ */ e(j, { showPersonalDetails: !i }),
|
|
798
|
+
t === N.TransactionRules && /* @__PURE__ */ e(re, {}),
|
|
799
|
+
t === N.Help && /* @__PURE__ */ e(f, { sx: { px: 24 }, children: /* @__PURE__ */ e(Oe, {}) }),
|
|
800
800
|
/* @__PURE__ */ e(
|
|
801
801
|
fe,
|
|
802
802
|
{
|
|
@@ -819,73 +819,73 @@ const Ve = ({
|
|
|
819
819
|
)
|
|
820
820
|
] });
|
|
821
821
|
});
|
|
822
|
-
var
|
|
822
|
+
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 || {});
|
|
823
823
|
const zt = C(({ onBackClick: t, sx: a }) => {
|
|
824
|
-
const { settings: o } = D(), { isCopyLoaded: i, isInitialized: n } = ee(), { config: d } = $(), { isMobile:
|
|
824
|
+
const { settings: o } = D(), { isCopyLoaded: i, isInitialized: n } = ee(), { config: d } = $(), { isMobile: s } = O(), { categoriesLoaded: r, loadCategories: l } = z();
|
|
825
825
|
ne({
|
|
826
826
|
widgetName: "SettingsWidget",
|
|
827
827
|
isLoaded: n && i
|
|
828
828
|
}), p.useEffect(() => {
|
|
829
|
-
r ||
|
|
829
|
+
r || l().finally();
|
|
830
830
|
}, []);
|
|
831
831
|
const {
|
|
832
|
-
display_user_profile_in_settings:
|
|
833
|
-
display_mobile_devices_in_settings:
|
|
832
|
+
display_user_profile_in_settings: _,
|
|
833
|
+
display_mobile_devices_in_settings: g,
|
|
834
834
|
display_notification_settings_in_settings: m,
|
|
835
835
|
display_user_transaction_rules_in_settings: h,
|
|
836
|
-
show_help_widget_in_master:
|
|
836
|
+
show_help_widget_in_master: w
|
|
837
837
|
} = d, x = [
|
|
838
|
-
{ enabled:
|
|
839
|
-
{ enabled:
|
|
838
|
+
{ enabled: _, index: 0, label: o?.profile_label },
|
|
839
|
+
{ enabled: g, index: 1, label: o?.mobile_devices_label },
|
|
840
840
|
{ enabled: m, index: 2, label: o?.notifications_label },
|
|
841
841
|
{ enabled: h, index: 3, label: o?.transaction_rules_label },
|
|
842
|
-
{ enabled:
|
|
843
|
-
],
|
|
842
|
+
{ enabled: w, index: 4, label: o?.help_label }
|
|
843
|
+
], k = x.find((u) => u.enabled), [S, T] = p.useState(k ? k.index : -1);
|
|
844
844
|
return !i || !n ? /* @__PURE__ */ e(ie, {}) : /* @__PURE__ */ e(
|
|
845
|
-
|
|
845
|
+
Y,
|
|
846
846
|
{
|
|
847
847
|
onBackClick: t,
|
|
848
848
|
showAccountFilter: !1,
|
|
849
849
|
sx: { height: "calc(100dvh - 24px)", overflow: "auto", ...a },
|
|
850
850
|
title: o.title,
|
|
851
|
-
children: /* @__PURE__ */ c(f, { mx:
|
|
851
|
+
children: /* @__PURE__ */ c(f, { mx: s ? 0 : 48, my: 24, children: [
|
|
852
852
|
/* @__PURE__ */ e(
|
|
853
853
|
pe,
|
|
854
854
|
{
|
|
855
|
-
onChange: (u,
|
|
855
|
+
onChange: (u, L) => T(L),
|
|
856
856
|
sx: { bgcolor: "background.paper" },
|
|
857
857
|
textColor: "primary",
|
|
858
|
-
value:
|
|
858
|
+
value: S,
|
|
859
859
|
variant: "scrollable",
|
|
860
860
|
children: x.map(
|
|
861
861
|
(u) => u.enabled && /* @__PURE__ */ e(ue, { label: u.label, value: u.index }, u.index)
|
|
862
862
|
)
|
|
863
863
|
}
|
|
864
864
|
),
|
|
865
|
-
/* @__PURE__ */ e(Ze, { selectedTab:
|
|
865
|
+
/* @__PURE__ */ e(Ze, { selectedTab: S })
|
|
866
866
|
] })
|
|
867
867
|
}
|
|
868
868
|
);
|
|
869
869
|
}), Gt = C((t) => {
|
|
870
870
|
const { clientConfig: a } = $(), o = a?.master?.deep_link_params?.view;
|
|
871
|
-
return o ? /* @__PURE__ */ e(j, { view: o }) : /* @__PURE__ */ e(
|
|
871
|
+
return o ? /* @__PURE__ */ e(j, { view: o }) : /* @__PURE__ */ e(Y, { ...t, showAccountFilter: !1, children: /* @__PURE__ */ e(f, { my: 24, children: /* @__PURE__ */ e(j, {}) }) });
|
|
872
872
|
}), jt = (t) => {
|
|
873
873
|
const { isMobile: a } = O(), { categoriesLoaded: o, loadCategories: i } = z();
|
|
874
874
|
return p.useEffect(() => {
|
|
875
875
|
o || i().finally();
|
|
876
|
-
}), /* @__PURE__ */ e(
|
|
876
|
+
}), /* @__PURE__ */ e(Y, { ...t, showAccountFilter: !1, children: /* @__PURE__ */ e(f, { sx: { mx: a ? 0 : 48, my: 24 }, children: /* @__PURE__ */ e(re, {}) }) });
|
|
877
877
|
};
|
|
878
878
|
export {
|
|
879
|
-
|
|
879
|
+
Xt as AccountNotificationProfiles,
|
|
880
880
|
Zt as BudgetNotificationProfiles,
|
|
881
881
|
je as DeviceTab,
|
|
882
882
|
eo as InsightsNotificationProfiles,
|
|
883
883
|
j as NotificationSettings,
|
|
884
884
|
Gt as NotificationSettingsWidget,
|
|
885
885
|
Ue as ProfileTab,
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
886
|
+
Yt as SettingsApi,
|
|
887
|
+
qt as SettingsStore,
|
|
888
|
+
N as SettingsTabs,
|
|
889
889
|
zt as SettingsWidget,
|
|
890
890
|
Ze as SettingsWidgetContents,
|
|
891
891
|
re as TransactionRulesTab,
|