@mx-cartographer/experiences 9.0.11 → 9.0.13-alpha.al0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/debts/index.es.js +24 -24
- package/dist/settings/index.es.js +140 -129
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [9.0.13] - 06-02-2026
|
|
2
|
+
|
|
3
|
+
- **ADDED** - Back button on Notification Settings views when show_back_button is enabled
|
|
4
|
+
|
|
5
|
+
## [9.0.12] - 06-02-2026
|
|
6
|
+
|
|
7
|
+
- **FIXED** - Debts widget briefly displaying zero percent interest rates before account data finished loading
|
|
8
|
+
|
|
1
9
|
## [9.0.11] - 06-01-2026
|
|
2
10
|
|
|
3
11
|
- **ADDED** - Spending chart accessibility description for screen readers
|
package/dist/debts/index.es.js
CHANGED
|
@@ -5,7 +5,7 @@ import y from "@mui/material/Stack";
|
|
|
5
5
|
import { useTheme as j, Card as ge, Stack as u, Box as W } from "@mui/material";
|
|
6
6
|
import { Text as i, P as xe, H3 as Be, InstitutionLogo as Pe, Icon as ne } from "@mxenabled/mxui";
|
|
7
7
|
import { intervalToDuration as Re, formatDuration as Le } from "date-fns";
|
|
8
|
-
import { s as Fe, D as
|
|
8
|
+
import { s as Fe, D as $, t as $e, b as Oe } from "../DebtUtils-i4pI2Uoe.mjs";
|
|
9
9
|
import { f as I, a as We } from "../NumberFormatting--XMeeBfr.mjs";
|
|
10
10
|
import { f as J, D as Q } from "../DateFormats-HudZ3Bjs.mjs";
|
|
11
11
|
import { G as Ge, q as ee, u as w, k as V, f as k, c as te, i as He, a as ze } from "../hooks-97sNJ_lf.mjs";
|
|
@@ -56,7 +56,7 @@ function ht(r, n, o = 0) {
|
|
|
56
56
|
let m = !1;
|
|
57
57
|
for (const [v, x] of t.entries()) {
|
|
58
58
|
if (x.balance <= 0.01 || x.is_impossible) continue;
|
|
59
|
-
const
|
|
59
|
+
const F = (x.interest_rate ?? 0) / 100 / 12, N = x.balance * F;
|
|
60
60
|
let A = x.monthly_payment ?? 0;
|
|
61
61
|
v === 0 && o && (A += o), x.balance += N;
|
|
62
62
|
const E = Math.min(x.balance, A + s);
|
|
@@ -525,10 +525,10 @@ const De = ({
|
|
|
525
525
|
}), x = v.reduce(
|
|
526
526
|
(p, g) => p + (g.dataset[0]?.y ?? 0),
|
|
527
527
|
0
|
|
528
|
-
),
|
|
528
|
+
), L = m.map((p, g) => {
|
|
529
529
|
const D = g / (m.length - 1), M = x * (1 - D);
|
|
530
530
|
return { x: p, y: M };
|
|
531
|
-
}),
|
|
531
|
+
}), F = Math.ceil(x / 100) * 100, N = m, A = v.map((p, g) => {
|
|
532
532
|
const D = 1 - g / v.length * 0.5, M = gt(ft, D);
|
|
533
533
|
return {
|
|
534
534
|
id: `debt-${g}`,
|
|
@@ -546,7 +546,7 @@ const De = ({
|
|
|
546
546
|
A.push({
|
|
547
547
|
id: "payoff-line",
|
|
548
548
|
label: "Payoff Line",
|
|
549
|
-
data:
|
|
549
|
+
data: L.map((p) => p.y),
|
|
550
550
|
color: c.palette.grey[700],
|
|
551
551
|
curve: "linear",
|
|
552
552
|
type: "line",
|
|
@@ -632,7 +632,7 @@ const De = ({
|
|
|
632
632
|
yAxis: [
|
|
633
633
|
{
|
|
634
634
|
min: 0,
|
|
635
|
-
max:
|
|
635
|
+
max: F,
|
|
636
636
|
disableTicks: !0,
|
|
637
637
|
valueFormatter: (p) => I(p, "0a")
|
|
638
638
|
}
|
|
@@ -1148,7 +1148,7 @@ const Wt = (r) => {
|
|
|
1148
1148
|
minWidth: 122,
|
|
1149
1149
|
flex: 0.6
|
|
1150
1150
|
}
|
|
1151
|
-
],
|
|
1151
|
+
], L = [
|
|
1152
1152
|
...x.slice(0, 3),
|
|
1153
1153
|
{
|
|
1154
1154
|
field: "chevron",
|
|
@@ -1162,7 +1162,7 @@ const Wt = (r) => {
|
|
|
1162
1162
|
headerAlign: "right",
|
|
1163
1163
|
width: 20
|
|
1164
1164
|
}
|
|
1165
|
-
],
|
|
1165
|
+
], F = f.useMemo(() => n.map((_, p) => ({
|
|
1166
1166
|
..._,
|
|
1167
1167
|
id: p,
|
|
1168
1168
|
priority: Ot(_)
|
|
@@ -1173,7 +1173,7 @@ const Wt = (r) => {
|
|
|
1173
1173
|
c || N(_);
|
|
1174
1174
|
}, E = (_) => {
|
|
1175
1175
|
c && N(_);
|
|
1176
|
-
}, Y = (_) =>
|
|
1176
|
+
}, Y = (_) => F.find((p) => p.guid === _)?.id;
|
|
1177
1177
|
return /* @__PURE__ */ e(
|
|
1178
1178
|
le,
|
|
1179
1179
|
{
|
|
@@ -1189,7 +1189,7 @@ const Wt = (r) => {
|
|
|
1189
1189
|
children: /* @__PURE__ */ e(
|
|
1190
1190
|
ot,
|
|
1191
1191
|
{
|
|
1192
|
-
columns: c ?
|
|
1192
|
+
columns: c ? L : x,
|
|
1193
1193
|
disableColumnFilter: !0,
|
|
1194
1194
|
disableColumnMenu: !0,
|
|
1195
1195
|
hideFooter: !0,
|
|
@@ -1200,7 +1200,7 @@ const Wt = (r) => {
|
|
|
1200
1200
|
onSortModelChange: (_) => {
|
|
1201
1201
|
v(_), d(S.DEBTS_CLICK_TABLE_SORT);
|
|
1202
1202
|
},
|
|
1203
|
-
rows:
|
|
1203
|
+
rows: F,
|
|
1204
1204
|
slotProps: {
|
|
1205
1205
|
baseIconButton: { color: "secondary", sx: { ml: 8 } },
|
|
1206
1206
|
row: {
|
|
@@ -1259,19 +1259,19 @@ const Wt = (r) => {
|
|
|
1259
1259
|
}, Vt = C(({ buttonEl: r, onClose: n }) => {
|
|
1260
1260
|
const { onEvent: o } = k(), { debts: t } = w(), { selectedDebtPriority: a, setSelectedDebtPriority: s } = P(), d = !!r, c = [
|
|
1261
1261
|
{
|
|
1262
|
-
priority:
|
|
1262
|
+
priority: $.FASTEST_PAYOFF_FIRST,
|
|
1263
1263
|
text: t.priority_sort_fastest_payoff
|
|
1264
1264
|
},
|
|
1265
1265
|
{
|
|
1266
|
-
priority:
|
|
1266
|
+
priority: $.HIGHEST_INTEREST,
|
|
1267
1267
|
text: t.priority_sort_highest_interest
|
|
1268
1268
|
},
|
|
1269
1269
|
{
|
|
1270
|
-
priority:
|
|
1270
|
+
priority: $.LOWEST_BALANCE,
|
|
1271
1271
|
text: t.priority_sort_lowest_balance
|
|
1272
1272
|
},
|
|
1273
1273
|
{
|
|
1274
|
-
priority:
|
|
1274
|
+
priority: $.HIGHEST_BALANCE,
|
|
1275
1275
|
text: t.priority_sort_highest_balance
|
|
1276
1276
|
}
|
|
1277
1277
|
], b = (h) => {
|
|
@@ -1325,10 +1325,10 @@ const Wt = (r) => {
|
|
|
1325
1325
|
}, b = () => {
|
|
1326
1326
|
d(null);
|
|
1327
1327
|
}, h = !!s, m = f.useMemo(() => ({
|
|
1328
|
-
[
|
|
1329
|
-
[
|
|
1330
|
-
[
|
|
1331
|
-
[
|
|
1328
|
+
[$.FASTEST_PAYOFF_FIRST]: t.priority_sort_fastest_payoff,
|
|
1329
|
+
[$.HIGHEST_INTEREST]: t.priority_sort_highest_interest,
|
|
1330
|
+
[$.HIGHEST_BALANCE]: t.priority_sort_highest_balance,
|
|
1331
|
+
[$.LOWEST_BALANCE]: t.priority_sort_lowest_balance
|
|
1332
1332
|
})[a] ?? t.priority_sort_lowest_balance, [a]);
|
|
1333
1333
|
return /* @__PURE__ */ l(u, { children: [
|
|
1334
1334
|
/* @__PURE__ */ e(
|
|
@@ -1362,21 +1362,21 @@ const Wt = (r) => {
|
|
|
1362
1362
|
const { isDesktop: t, isMobile: a } = ae(), { connect: s, debts: d } = w(), { onEvent: c } = k(), {
|
|
1363
1363
|
config: { show_connections_widget_in_master: b }
|
|
1364
1364
|
} = He(), { isInitialized: h } = ze(), { setSelectedAccount: m } = Ve(), { selectedDebtPriority: v, setSelectedDebtChartData: x } = P(), {
|
|
1365
|
-
isAccountDataLoaded:
|
|
1366
|
-
loadAccountData:
|
|
1365
|
+
isAccountDataLoaded: L,
|
|
1366
|
+
loadAccountData: F,
|
|
1367
1367
|
detailedAccounts: N,
|
|
1368
1368
|
visibleDebtAccounts: A
|
|
1369
1369
|
} = te(), { isAllGoalDataLoaded: E, loadGoalData: Y, monthlyCashFlowProfile: _ } = V(), { debts: p } = ee(), [g, D] = f.useState(!1), [M, B] = f.useState(!1), [K, ce] = f.useState(!1), [U, Se] = f.useState(""), [Ae, de] = f.useState(!1);
|
|
1370
1370
|
st({
|
|
1371
1371
|
widgetName: "DebtsWidget",
|
|
1372
|
-
isLoaded: E
|
|
1372
|
+
isLoaded: L && E
|
|
1373
1373
|
});
|
|
1374
1374
|
const q = f.useMemo(() => {
|
|
1375
1375
|
const O = _?.extra_payment ?? 0;
|
|
1376
1376
|
return $e(p, v, O);
|
|
1377
1377
|
}, [p, v, _]);
|
|
1378
1378
|
f.useEffect(() => {
|
|
1379
|
-
|
|
1379
|
+
L || F().finally(), c(S.DEBTS_VIEW);
|
|
1380
1380
|
}, []), f.useEffect(() => {
|
|
1381
1381
|
h && Y().finally();
|
|
1382
1382
|
}, [h]);
|
|
@@ -1388,7 +1388,7 @@ const Wt = (r) => {
|
|
|
1388
1388
|
}, Ie = () => {
|
|
1389
1389
|
B(!0), c(S.DEBTS_CLICK_PAYDOWN);
|
|
1390
1390
|
};
|
|
1391
|
-
if (!h || !E)
|
|
1391
|
+
if (!h || !L || !E)
|
|
1392
1392
|
return /* @__PURE__ */ e(ct, {});
|
|
1393
1393
|
const Me = N.length === 0, ke = A.length === 0, Ne = p.length === 0, X = Me || ke || Ne, Z = Oe(
|
|
1394
1394
|
d,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as c, Fragment as X, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import m from "react";
|
|
3
3
|
import { observer as C } from "mobx-react-lite";
|
|
4
|
-
import
|
|
4
|
+
import p from "@mui/material/Stack";
|
|
5
5
|
import ue from "@mui/material/Tab";
|
|
6
6
|
import pe from "@mui/material/Tabs";
|
|
7
7
|
import he from "@mui/material/Alert";
|
|
@@ -10,24 +10,24 @@ import { getUnixTime as _e } from "date-fns/getUnixTime";
|
|
|
10
10
|
import { AdapterDateFns as ge } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
11
11
|
import { DatePicker as be } from "@mui/x-date-pickers";
|
|
12
12
|
import { LocalizationProvider as ye } from "@mui/x-date-pickers/LocalizationProvider";
|
|
13
|
-
import { useTheme as L, alpha as
|
|
14
|
-
import
|
|
13
|
+
import { useTheme as L, alpha as W } from "@mui/material/styles";
|
|
14
|
+
import z from "@mui/material/Box";
|
|
15
15
|
import Z from "@mui/material/Button";
|
|
16
16
|
import I from "@mui/material/TextField";
|
|
17
17
|
import { H3 as Y, P as M, Text as x, Icon as B } from "@mxenabled/mxui";
|
|
18
18
|
import { V as xe, a as ve, N as J } from "../NotificationSettings-CW7okUrk.mjs";
|
|
19
|
-
import { A as
|
|
20
|
-
import { u as
|
|
21
|
-
import { u as
|
|
19
|
+
import { A as Jt, B as Kt, I as Yt } from "../NotificationSettings-CW7okUrk.mjs";
|
|
20
|
+
import { u as k, i as G, A as E, C as Ce, a as ee, l as j } from "../hooks-97sNJ_lf.mjs";
|
|
21
|
+
import { u as F } from "../useScreenSize-mWpmnh5w.mjs";
|
|
22
22
|
import { D as $ } from "../Dialog-Bvd2n8hz.mjs";
|
|
23
23
|
import { formatDistanceToNow as te } from "date-fns/formatDistanceToNow";
|
|
24
24
|
import { fromUnixTime as oe } from "date-fns/fromUnixTime";
|
|
25
|
-
import
|
|
25
|
+
import O from "@mui/material/IconButton";
|
|
26
26
|
import { DataGridPro as De } from "@mui/x-data-grid-pro";
|
|
27
27
|
import { b as H } from "../Localization-DnoVyBNK.mjs";
|
|
28
|
-
import { H as
|
|
29
|
-
import
|
|
30
|
-
import
|
|
28
|
+
import { H as V } from "../HeaderCell-P8w6CmfO.mjs";
|
|
29
|
+
import ke from "@mui/material/Accordion";
|
|
30
|
+
import we from "@mui/material/AccordionDetails";
|
|
31
31
|
import Se from "@mui/material/AccordionSummary";
|
|
32
32
|
import { L as ie } from "../Loader-CxeBwuPG.mjs";
|
|
33
33
|
import Te from "@mui/material/List";
|
|
@@ -38,13 +38,13 @@ import Pe from "@mui/material/ListItem";
|
|
|
38
38
|
import Re from "@mui/material/ListItemButton";
|
|
39
39
|
import Ne from "@mui/material/ListItemIcon";
|
|
40
40
|
import Me from "@mui/material/ListItemText";
|
|
41
|
-
import { ChevronRight as Le } from "@mxenabled/mx-icons";
|
|
42
|
-
import { D as
|
|
41
|
+
import { ChevronRight as Le, ChevronLeft as Be } from "@mxenabled/mx-icons";
|
|
42
|
+
import { D as He } from "../Drawer-DsnW2o0v.mjs";
|
|
43
43
|
import { u as ne } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
|
|
44
|
-
import { H as
|
|
44
|
+
import { H as Oe } from "../Help-BMCejaQr.mjs";
|
|
45
45
|
import { W as q } from "../WidgetContainer-DJnp6t6c.mjs";
|
|
46
|
-
const
|
|
47
|
-
const i = L(), { common: o, settings: n } =
|
|
46
|
+
const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
47
|
+
const i = L(), { common: o, settings: n } = k(), { isDesktop: u, isMobile: s, isSmallMobile: a, isTablet: l } = F(t), { config: b } = G(), { updateUser: _ } = E(), { user: d } = Ce(), [h, w] = m.useState({
|
|
48
48
|
first_name: d.first_name,
|
|
49
49
|
last_name: d.last_name,
|
|
50
50
|
email: d.email,
|
|
@@ -52,7 +52,7 @@ const Oe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
|
52
52
|
birthday: d.birthday,
|
|
53
53
|
postal_code: d.postal_code,
|
|
54
54
|
credit_score: d.credit_score
|
|
55
|
-
}), [v, S] = m.useState(!1), [A, T] = m.useState(!1), g = m.useRef(null), D =
|
|
55
|
+
}), [v, S] = m.useState(!1), [A, T] = m.useState(!1), g = m.useRef(null), D = h.email && !d.email_is_verified && !v, U = h.phone && !d.phone_is_verified && !v;
|
|
56
56
|
m.useEffect(() => {
|
|
57
57
|
if (r) {
|
|
58
58
|
const f = (R) => {
|
|
@@ -64,26 +64,26 @@ const Oe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
|
64
64
|
}
|
|
65
65
|
}, [v]);
|
|
66
66
|
const ae = () => {
|
|
67
|
-
if (
|
|
68
|
-
const f = new Date(
|
|
67
|
+
if (h.birthday) {
|
|
68
|
+
const f = new Date(h.birthday * 1e3), R = f.getUTCFullYear(), de = f.getUTCMonth(), me = f.getUTCDate();
|
|
69
69
|
return new Date(R, de, me);
|
|
70
70
|
}
|
|
71
71
|
}, se = async () => {
|
|
72
|
-
await _({ ...d, ...
|
|
72
|
+
await _({ ...d, ...h }), S(!1);
|
|
73
73
|
}, le = () => {
|
|
74
74
|
T(!1), r && r();
|
|
75
75
|
}, ce = () => {
|
|
76
76
|
T(!1);
|
|
77
77
|
}, P = (f) => {
|
|
78
78
|
const R = {
|
|
79
|
-
...
|
|
79
|
+
...h,
|
|
80
80
|
...f
|
|
81
81
|
};
|
|
82
|
-
|
|
82
|
+
w(R), S(JSON.stringify({ ...d, ...R }) !== JSON.stringify(d));
|
|
83
83
|
};
|
|
84
84
|
return /* @__PURE__ */ c(X, { children: [
|
|
85
85
|
/* @__PURE__ */ c(
|
|
86
|
-
|
|
86
|
+
z,
|
|
87
87
|
{
|
|
88
88
|
component: "form",
|
|
89
89
|
ref: g,
|
|
@@ -99,7 +99,7 @@ const Oe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
|
99
99
|
/* @__PURE__ */ e(Y, { children: n.personal_details }),
|
|
100
100
|
/* @__PURE__ */ e(M, { variant: "body1", children: n.update_information }),
|
|
101
101
|
/* @__PURE__ */ c(
|
|
102
|
-
|
|
102
|
+
p,
|
|
103
103
|
{
|
|
104
104
|
direction: s ? "column" : "row",
|
|
105
105
|
spacing: s ? 44 : 24,
|
|
@@ -108,7 +108,7 @@ const Oe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
|
108
108
|
/* @__PURE__ */ e(
|
|
109
109
|
I,
|
|
110
110
|
{
|
|
111
|
-
defaultValue:
|
|
111
|
+
defaultValue: h.first_name,
|
|
112
112
|
label: n.first_name,
|
|
113
113
|
onChange: (f) => P({ first_name: f.target.value })
|
|
114
114
|
}
|
|
@@ -116,7 +116,7 @@ const Oe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
|
116
116
|
/* @__PURE__ */ e(
|
|
117
117
|
I,
|
|
118
118
|
{
|
|
119
|
-
defaultValue:
|
|
119
|
+
defaultValue: h.last_name,
|
|
120
120
|
label: n.last_name,
|
|
121
121
|
onChange: (f) => P({ last_name: f.target.value })
|
|
122
122
|
}
|
|
@@ -124,32 +124,32 @@ const Oe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
|
124
124
|
]
|
|
125
125
|
}
|
|
126
126
|
),
|
|
127
|
-
/* @__PURE__ */ c(
|
|
128
|
-
b.display_email_edit_field_in_settings && /* @__PURE__ */ c(
|
|
127
|
+
/* @__PURE__ */ c(p, { direction: s ? "column" : "row", children: [
|
|
128
|
+
b.display_email_edit_field_in_settings && /* @__PURE__ */ c(p, { sx: { mb: D ? 20 : 44, mr: s ? 0 : 24 }, children: [
|
|
129
129
|
/* @__PURE__ */ e(
|
|
130
130
|
I,
|
|
131
131
|
{
|
|
132
|
-
defaultValue:
|
|
132
|
+
defaultValue: h.email,
|
|
133
133
|
label: n.email_address,
|
|
134
134
|
onChange: (f) => P({ email: f.target.value })
|
|
135
135
|
}
|
|
136
136
|
),
|
|
137
137
|
D && /* @__PURE__ */ e(xe, {})
|
|
138
138
|
] }),
|
|
139
|
-
b.display_sms_edit_field_in_settings && /* @__PURE__ */ c(
|
|
139
|
+
b.display_sms_edit_field_in_settings && /* @__PURE__ */ c(p, { sx: { mb: U ? 20 : 44 }, children: [
|
|
140
140
|
/* @__PURE__ */ e(
|
|
141
141
|
I,
|
|
142
142
|
{
|
|
143
|
-
defaultValue:
|
|
143
|
+
defaultValue: h.phone,
|
|
144
144
|
label: n.mobile_number,
|
|
145
145
|
onChange: (f) => P({ phone: f.target.value }),
|
|
146
146
|
type: "tel"
|
|
147
147
|
}
|
|
148
148
|
),
|
|
149
|
-
|
|
149
|
+
U && /* @__PURE__ */ e(ve, {})
|
|
150
150
|
] })
|
|
151
151
|
] }),
|
|
152
|
-
/* @__PURE__ */ c(
|
|
152
|
+
/* @__PURE__ */ c(p, { direction: s ? "column" : "row", spacing: s ? 44 : 24, sx: { mb: 44 }, children: [
|
|
153
153
|
/* @__PURE__ */ e(ye, { dateAdapter: ge, children: /* @__PURE__ */ e(
|
|
154
154
|
be,
|
|
155
155
|
{
|
|
@@ -159,13 +159,13 @@ const Oe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
|
159
159
|
nextIconButton: {
|
|
160
160
|
sx: {
|
|
161
161
|
color: "primary.main",
|
|
162
|
-
"&:hover": { backgroundColor:
|
|
162
|
+
"&:hover": { backgroundColor: W(i.palette.primary.light, 0.1) }
|
|
163
163
|
}
|
|
164
164
|
},
|
|
165
165
|
previousIconButton: {
|
|
166
166
|
sx: {
|
|
167
167
|
color: "primary.main",
|
|
168
|
-
"&:hover": { backgroundColor:
|
|
168
|
+
"&:hover": { backgroundColor: W(i.palette.primary.light, 0.1) }
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
},
|
|
@@ -173,7 +173,7 @@ const Oe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
|
173
173
|
width: "100%",
|
|
174
174
|
"& .MuiIconButton-edgeEnd": {
|
|
175
175
|
color: "primary.main",
|
|
176
|
-
"&:hover": { backgroundColor:
|
|
176
|
+
"&:hover": { backgroundColor: W(i.palette.primary.light, 0.1) }
|
|
177
177
|
}
|
|
178
178
|
},
|
|
179
179
|
value: ae()
|
|
@@ -182,17 +182,17 @@ const Oe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
|
182
182
|
/* @__PURE__ */ e(
|
|
183
183
|
I,
|
|
184
184
|
{
|
|
185
|
-
defaultValue:
|
|
185
|
+
defaultValue: h.postal_code,
|
|
186
186
|
label: n.zip_code,
|
|
187
187
|
onChange: (f) => P({ postal_code: f.target.value })
|
|
188
188
|
}
|
|
189
189
|
)
|
|
190
190
|
] }),
|
|
191
|
-
/* @__PURE__ */ c(
|
|
191
|
+
/* @__PURE__ */ c(p, { children: [
|
|
192
192
|
/* @__PURE__ */ e(
|
|
193
193
|
I,
|
|
194
194
|
{
|
|
195
|
-
defaultValue:
|
|
195
|
+
defaultValue: h.credit_score,
|
|
196
196
|
label: n.credit_score,
|
|
197
197
|
onChange: (f) => P({ credit_score: Number(f.target.value) }),
|
|
198
198
|
sx: { mb: 44 }
|
|
@@ -225,22 +225,22 @@ const Oe = ({ availableWidth: t, handleOnLeavClick: r }) => {
|
|
|
225
225
|
}
|
|
226
226
|
)
|
|
227
227
|
] });
|
|
228
|
-
},
|
|
228
|
+
}, Ue = C(Fe);
|
|
229
229
|
var y = /* @__PURE__ */ ((t) => (t.Delete = "delete", t.Edit = "edit", t.Token = "token", t))(y || {});
|
|
230
|
-
const
|
|
230
|
+
const Ve = ({
|
|
231
231
|
devices: t,
|
|
232
232
|
onClickDeviceEdit: r,
|
|
233
233
|
onClickDeviceDelete: i
|
|
234
234
|
}) => {
|
|
235
|
-
const o = L(), { settings: n } =
|
|
235
|
+
const o = L(), { settings: n } = k(), u = [
|
|
236
236
|
{
|
|
237
237
|
field: "name",
|
|
238
238
|
headerName: n.mobile_devices_column_name,
|
|
239
|
-
renderHeader:
|
|
240
|
-
renderCell: (a) => /* @__PURE__ */ c(
|
|
239
|
+
renderHeader: V,
|
|
240
|
+
renderCell: (a) => /* @__PURE__ */ c(p, { alignItems: "center", direction: "row", gap: 4, children: [
|
|
241
241
|
/* @__PURE__ */ e(x, { variant: "body2", children: a.value }),
|
|
242
242
|
/* @__PURE__ */ e(
|
|
243
|
-
|
|
243
|
+
O,
|
|
244
244
|
{
|
|
245
245
|
"aria-label": n.mobile_devices_edit_label,
|
|
246
246
|
color: "secondary",
|
|
@@ -256,7 +256,7 @@ const Ue = ({
|
|
|
256
256
|
{
|
|
257
257
|
field: "device_type",
|
|
258
258
|
headerName: n.mobile_devices_column_type,
|
|
259
|
-
renderHeader:
|
|
259
|
+
renderHeader: V,
|
|
260
260
|
sortable: !0,
|
|
261
261
|
hideSortIcons: !1,
|
|
262
262
|
flex: 1,
|
|
@@ -265,7 +265,7 @@ const Ue = ({
|
|
|
265
265
|
{
|
|
266
266
|
field: "created_at",
|
|
267
267
|
headerName: n.mobile_devices_column_added,
|
|
268
|
-
renderHeader:
|
|
268
|
+
renderHeader: V,
|
|
269
269
|
valueFormatter: (a) => te(oe(a), { addSuffix: !0 }),
|
|
270
270
|
sortable: !0,
|
|
271
271
|
hideSortIcons: !1,
|
|
@@ -275,9 +275,9 @@ const Ue = ({
|
|
|
275
275
|
{
|
|
276
276
|
field: "delete",
|
|
277
277
|
headerName: "",
|
|
278
|
-
renderHeader:
|
|
279
|
-
renderCell: (a) => /* @__PURE__ */ e(
|
|
280
|
-
|
|
278
|
+
renderHeader: V,
|
|
279
|
+
renderCell: (a) => /* @__PURE__ */ e(p, { mr: 4, children: /* @__PURE__ */ e(
|
|
280
|
+
O,
|
|
281
281
|
{
|
|
282
282
|
"aria-label": n.mobile_devices_delete_label,
|
|
283
283
|
color: "secondary",
|
|
@@ -294,7 +294,7 @@ const Ue = ({
|
|
|
294
294
|
...a,
|
|
295
295
|
device_type: `${a.make} ${a.model}`
|
|
296
296
|
})), [t]);
|
|
297
|
-
return /* @__PURE__ */ e(
|
|
297
|
+
return /* @__PURE__ */ e(z, { sx: { width: "100%" }, children: /* @__PURE__ */ e(
|
|
298
298
|
De,
|
|
299
299
|
{
|
|
300
300
|
columns: u,
|
|
@@ -309,7 +309,7 @@ const Ue = ({
|
|
|
309
309
|
},
|
|
310
310
|
slots: {
|
|
311
311
|
footer: () => /* @__PURE__ */ e(
|
|
312
|
-
|
|
312
|
+
z,
|
|
313
313
|
{
|
|
314
314
|
sx: {
|
|
315
315
|
backgroundColor: o.palette.background.default,
|
|
@@ -333,7 +333,7 @@ const Ue = ({
|
|
|
333
333
|
"& .MuiDataGrid-columnHeader .MuiIconButton-root": {
|
|
334
334
|
color: o.palette.primary.main,
|
|
335
335
|
"&:hover": {
|
|
336
|
-
backgroundColor:
|
|
336
|
+
backgroundColor: W(o.palette.primary.main, 0.1)
|
|
337
337
|
}
|
|
338
338
|
},
|
|
339
339
|
"& .MuiDataGrid-sortIcon": {
|
|
@@ -342,17 +342,17 @@ const Ue = ({
|
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
) });
|
|
345
|
-
},
|
|
345
|
+
}, We = ({
|
|
346
346
|
devices: t,
|
|
347
347
|
onClickDeviceEdit: r,
|
|
348
348
|
onClickDeviceDelete: i
|
|
349
349
|
}) => {
|
|
350
|
-
const o = L(), { settings: n } =
|
|
350
|
+
const o = L(), { settings: n } = k(), [u, s] = m.useState(!1), a = (l) => (b, _) => {
|
|
351
351
|
s(_ ? l : !1);
|
|
352
352
|
};
|
|
353
|
-
return /* @__PURE__ */ c(
|
|
353
|
+
return /* @__PURE__ */ c(p, { mx: -28, sx: { "& .MuiAccordion-root": { mb: 0, mt: 0 } }, children: [
|
|
354
354
|
t.map((l) => /* @__PURE__ */ c(
|
|
355
|
-
|
|
355
|
+
ke,
|
|
356
356
|
{
|
|
357
357
|
expanded: u === l.guid,
|
|
358
358
|
onChange: a(l.guid),
|
|
@@ -367,7 +367,7 @@ const Ue = ({
|
|
|
367
367
|
borderBottom: "1px solid",
|
|
368
368
|
borderColor: o.palette.divider
|
|
369
369
|
},
|
|
370
|
-
children: /* @__PURE__ */ c(
|
|
370
|
+
children: /* @__PURE__ */ c(p, { gap: 4, children: [
|
|
371
371
|
/* @__PURE__ */ e(x, { bold: !0, variant: "body1", children: l.name }),
|
|
372
372
|
/* @__PURE__ */ e(x, { color: o.palette.text.secondary, variant: "body2", children: `${l.make} ${l.model}` }),
|
|
373
373
|
/* @__PURE__ */ e(x, { color: o.palette.text.secondary, variant: "body2", children: te(oe(l.created_at), { addSuffix: !0 }) })
|
|
@@ -375,12 +375,12 @@ const Ue = ({
|
|
|
375
375
|
}
|
|
376
376
|
),
|
|
377
377
|
/* @__PURE__ */ c(
|
|
378
|
-
|
|
378
|
+
we,
|
|
379
379
|
{
|
|
380
380
|
sx: { backgroundColor: o.palette.background.default, p: "0 0 0 24px" },
|
|
381
381
|
children: [
|
|
382
382
|
/* @__PURE__ */ c(
|
|
383
|
-
|
|
383
|
+
p,
|
|
384
384
|
{
|
|
385
385
|
onClick: () => r(l),
|
|
386
386
|
sx: {
|
|
@@ -394,13 +394,13 @@ const Ue = ({
|
|
|
394
394
|
borderColor: o.palette.divider
|
|
395
395
|
},
|
|
396
396
|
children: [
|
|
397
|
-
/* @__PURE__ */ e(
|
|
397
|
+
/* @__PURE__ */ e(O, { "aria-label": n.mobile_devices_edit_label, color: "secondary", children: /* @__PURE__ */ e(B, { name: "edit" }) }),
|
|
398
398
|
/* @__PURE__ */ e(x, { variant: "body1", children: n.mobile_devices_edit_label })
|
|
399
399
|
]
|
|
400
400
|
}
|
|
401
401
|
),
|
|
402
402
|
/* @__PURE__ */ c(
|
|
403
|
-
|
|
403
|
+
p,
|
|
404
404
|
{
|
|
405
405
|
onClick: () => i(l),
|
|
406
406
|
sx: {
|
|
@@ -412,7 +412,7 @@ const Ue = ({
|
|
|
412
412
|
cursor: "pointer"
|
|
413
413
|
},
|
|
414
414
|
children: [
|
|
415
|
-
/* @__PURE__ */ e(
|
|
415
|
+
/* @__PURE__ */ e(O, { "aria-label": n.mobile_devices_delete_label, color: "secondary", children: /* @__PURE__ */ e(B, { name: "delete" }) }),
|
|
416
416
|
/* @__PURE__ */ e(x, { variant: "body1", children: n.mobile_devices_delete_label })
|
|
417
417
|
]
|
|
418
418
|
}
|
|
@@ -425,7 +425,7 @@ const Ue = ({
|
|
|
425
425
|
l.guid
|
|
426
426
|
)),
|
|
427
427
|
/* @__PURE__ */ e(
|
|
428
|
-
|
|
428
|
+
z,
|
|
429
429
|
{
|
|
430
430
|
sx: {
|
|
431
431
|
backgroundColor: o.palette.background.default,
|
|
@@ -441,16 +441,16 @@ const Ue = ({
|
|
|
441
441
|
}
|
|
442
442
|
)
|
|
443
443
|
] });
|
|
444
|
-
},
|
|
444
|
+
}, ze = ({
|
|
445
445
|
dialogType: t,
|
|
446
446
|
isOpen: r,
|
|
447
447
|
onClose: i,
|
|
448
448
|
device: o,
|
|
449
449
|
deviceToken: n = ""
|
|
450
450
|
}) => {
|
|
451
|
-
const u = L(), { common: s, settings: a } =
|
|
451
|
+
const u = L(), { common: s, settings: a } = k(), { updateDevice: l, deleteDevice: b, setAlert: _, loadDevices: d } = E(), [h, w] = m.useState("");
|
|
452
452
|
m.useEffect(() => {
|
|
453
|
-
o &&
|
|
453
|
+
o && w(o.name);
|
|
454
454
|
}, [o, t]);
|
|
455
455
|
const v = () => {
|
|
456
456
|
switch (t) {
|
|
@@ -506,7 +506,7 @@ const Ue = ({
|
|
|
506
506
|
};
|
|
507
507
|
}, T = async () => {
|
|
508
508
|
if (t === y.Token && i(), t === y.Edit && o) {
|
|
509
|
-
const g = { ...o, name:
|
|
509
|
+
const g = { ...o, name: h };
|
|
510
510
|
(await l(g)).success ? (_(a.mobile_devices_edit_success, "success"), d()) : _(
|
|
511
511
|
H(a.mobile_devices_edit_error, o.name),
|
|
512
512
|
"error"
|
|
@@ -533,7 +533,7 @@ const Ue = ({
|
|
|
533
533
|
secondaryText: t === y.Token ? s.back : s.cancel_button,
|
|
534
534
|
sx: A(),
|
|
535
535
|
children: [
|
|
536
|
-
t === y.Token && /* @__PURE__ */ c(
|
|
536
|
+
t === y.Token && /* @__PURE__ */ c(p, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
|
|
537
537
|
/* @__PURE__ */ e(x, { bold: !0, truncate: !1, variant: "body1", children: a.mobile_devices_access_label }),
|
|
538
538
|
/* @__PURE__ */ e(x, { truncate: !1, variant: "body2", children: a.mobile_devices_access_info_1 }),
|
|
539
539
|
/* @__PURE__ */ e(
|
|
@@ -550,19 +550,19 @@ const Ue = ({
|
|
|
550
550
|
),
|
|
551
551
|
/* @__PURE__ */ e(x, { truncate: !1, variant: "body2", children: a.mobile_devices_access_info_2 })
|
|
552
552
|
] }),
|
|
553
|
-
t === y.Edit && /* @__PURE__ */ e(
|
|
553
|
+
t === y.Edit && /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(I, { onChange: (g) => w(g.target.value), value: h }) }),
|
|
554
554
|
t === y.Delete && /* @__PURE__ */ e(M, { children: a.mobile_devices_delete_info })
|
|
555
555
|
]
|
|
556
556
|
}
|
|
557
557
|
);
|
|
558
|
-
},
|
|
559
|
-
const { isMobile: t } =
|
|
558
|
+
}, Ge = C(ze), je = C(() => {
|
|
559
|
+
const { isMobile: t } = F(), { settings: r } = k(), { isCopyLoaded: i, isInitialized: o } = ee(), { setAlert: n, devices: u, loadDevices: s, generateDeviceToken: a } = E(), [l, b] = m.useState({ open: !1, type: "" }), [_, d] = m.useState(), [h, w] = m.useState("");
|
|
560
560
|
m.useEffect(() => {
|
|
561
561
|
o && s();
|
|
562
562
|
}, [o]);
|
|
563
563
|
const v = async () => {
|
|
564
564
|
const g = await a();
|
|
565
|
-
g ? (
|
|
565
|
+
g ? (w(g), b({ open: !0, type: y.Token })) : n(r.mobile_devices_access_error, "error");
|
|
566
566
|
}, S = (g) => {
|
|
567
567
|
d(g), b({ open: !0, type: y.Edit });
|
|
568
568
|
}, A = (g) => {
|
|
@@ -571,7 +571,7 @@ const Ue = ({
|
|
|
571
571
|
b({ open: !1, type: "" }), d(void 0);
|
|
572
572
|
};
|
|
573
573
|
return !i || !o ? /* @__PURE__ */ e(ie, {}) : /* @__PURE__ */ c(
|
|
574
|
-
|
|
574
|
+
p,
|
|
575
575
|
{
|
|
576
576
|
sx: {
|
|
577
577
|
backgroundColor: "background.paper",
|
|
@@ -579,35 +579,35 @@ const Ue = ({
|
|
|
579
579
|
gap: 24
|
|
580
580
|
},
|
|
581
581
|
children: [
|
|
582
|
-
/* @__PURE__ */ c(
|
|
582
|
+
/* @__PURE__ */ c(p, { gap: 4, children: [
|
|
583
583
|
/* @__PURE__ */ e(Y, { children: r.mobile_devices_title }),
|
|
584
584
|
/* @__PURE__ */ e(M, { variant: "body1", children: r.mobile_devices_info })
|
|
585
585
|
] }),
|
|
586
586
|
t ? /* @__PURE__ */ e(
|
|
587
|
-
|
|
587
|
+
We,
|
|
588
588
|
{
|
|
589
589
|
devices: u,
|
|
590
590
|
onClickDeviceDelete: A,
|
|
591
591
|
onClickDeviceEdit: S
|
|
592
592
|
}
|
|
593
593
|
) : /* @__PURE__ */ e(
|
|
594
|
-
|
|
594
|
+
Ve,
|
|
595
595
|
{
|
|
596
596
|
devices: u,
|
|
597
597
|
onClickDeviceDelete: A,
|
|
598
598
|
onClickDeviceEdit: S
|
|
599
599
|
}
|
|
600
600
|
),
|
|
601
|
-
/* @__PURE__ */ c(
|
|
601
|
+
/* @__PURE__ */ c(p, { sx: { alignItems: "center", px: 24, py: 12, gap: 4 }, children: [
|
|
602
602
|
/* @__PURE__ */ e(x, { bold: !0, variant: "body1", children: r.mobile_devices_access_title }),
|
|
603
603
|
/* @__PURE__ */ e(M, { align: "center", variant: "body2", children: r.mobile_devices_access_description }),
|
|
604
604
|
/* @__PURE__ */ e(Z, { onClick: v, variant: "text", children: r.mobile_devices_access_cta })
|
|
605
605
|
] }),
|
|
606
606
|
/* @__PURE__ */ e(
|
|
607
|
-
|
|
607
|
+
Ge,
|
|
608
608
|
{
|
|
609
609
|
device: _,
|
|
610
|
-
deviceToken:
|
|
610
|
+
deviceToken: h,
|
|
611
611
|
dialogType: l.type,
|
|
612
612
|
isOpen: l.open,
|
|
613
613
|
onClose: T
|
|
@@ -624,8 +624,8 @@ const Ue = ({
|
|
|
624
624
|
/* @__PURE__ */ e(Ne, { children: /* @__PURE__ */ e(Le, {}) })
|
|
625
625
|
] }) });
|
|
626
626
|
}
|
|
627
|
-
),
|
|
628
|
-
const { settings: t } =
|
|
627
|
+
), $e = C(() => {
|
|
628
|
+
const { settings: t } = k(), { categories: r } = j(), { selectedRule: i, updateRuleCategory: o } = E(), [n, u] = m.useState(!1), s = () => {
|
|
629
629
|
u(!1);
|
|
630
630
|
}, a = () => {
|
|
631
631
|
u(!0);
|
|
@@ -652,8 +652,8 @@ const Ue = ({
|
|
|
652
652
|
}
|
|
653
653
|
)
|
|
654
654
|
] });
|
|
655
|
-
}),
|
|
656
|
-
const { common: t, settings: r } =
|
|
655
|
+
}), Je = C(() => {
|
|
656
|
+
const { common: t, settings: r } = k(), { selectedRule: i, updateRulePayee: o } = E(), n = L(), [u, s] = m.useState(!1), a = i?.description ? i.description : i?.match_description, [l, b] = m.useState(a || ""), _ = () => {
|
|
657
657
|
s(!0);
|
|
658
658
|
}, d = async () => {
|
|
659
659
|
l !== a && i && (i.description = l, await o(i), s(!1));
|
|
@@ -684,7 +684,7 @@ const Ue = ({
|
|
|
684
684
|
children: /* @__PURE__ */ e(
|
|
685
685
|
I,
|
|
686
686
|
{
|
|
687
|
-
onChange: (
|
|
687
|
+
onChange: (h) => b(h.target.value),
|
|
688
688
|
sx: { width: 352 },
|
|
689
689
|
value: l
|
|
690
690
|
}
|
|
@@ -692,8 +692,8 @@ const Ue = ({
|
|
|
692
692
|
}
|
|
693
693
|
)
|
|
694
694
|
] });
|
|
695
|
-
}),
|
|
696
|
-
const { common: o, settings: n } =
|
|
695
|
+
}), Ke = C(({ onClose: t, onDelete: r, isOpen: i }) => {
|
|
696
|
+
const { common: o, settings: n } = k();
|
|
697
697
|
return /* @__PURE__ */ e(
|
|
698
698
|
$,
|
|
699
699
|
{
|
|
@@ -710,11 +710,11 @@ const Ue = ({
|
|
|
710
710
|
children: /* @__PURE__ */ e(x, { truncate: !1, variant: "body2", children: n.delete_rule_confirm })
|
|
711
711
|
}
|
|
712
712
|
);
|
|
713
|
-
}),
|
|
713
|
+
}), Ye = C(
|
|
714
714
|
({ isOpen: t, onClose: r, onDelete: i }) => {
|
|
715
|
-
const { common: o, settings: n } =
|
|
715
|
+
const { common: o, settings: n } = k(), [u, s] = m.useState(!1);
|
|
716
716
|
return /* @__PURE__ */ c(
|
|
717
|
-
|
|
717
|
+
He,
|
|
718
718
|
{
|
|
719
719
|
hasSecondaryAction: !1,
|
|
720
720
|
isOpen: t,
|
|
@@ -727,12 +727,12 @@ const Ue = ({
|
|
|
727
727
|
title: n.edit_rule,
|
|
728
728
|
children: [
|
|
729
729
|
/* @__PURE__ */ e(Ae, { children: /* @__PURE__ */ e(x, { bold: !0, variant: "caption", children: n.details }) }),
|
|
730
|
-
/* @__PURE__ */ e(
|
|
730
|
+
/* @__PURE__ */ e(Je, {}),
|
|
731
731
|
/* @__PURE__ */ e(K, { sx: { ml: 24 } }),
|
|
732
|
-
/* @__PURE__ */ e(
|
|
732
|
+
/* @__PURE__ */ e($e, {}),
|
|
733
733
|
/* @__PURE__ */ e(K, { sx: { ml: 24 } }),
|
|
734
734
|
/* @__PURE__ */ e(
|
|
735
|
-
|
|
735
|
+
Ke,
|
|
736
736
|
{
|
|
737
737
|
isOpen: u,
|
|
738
738
|
onClose: () => s(!1),
|
|
@@ -743,50 +743,50 @@ const Ue = ({
|
|
|
743
743
|
}
|
|
744
744
|
);
|
|
745
745
|
}
|
|
746
|
-
),
|
|
747
|
-
const { categories: r } = j(), { setSelectedGuid: i } = Ee(), { deleteTransactionRule: o, setSelectedRule: n } = E(), { isDesktop: u, isTablet: s } =
|
|
746
|
+
), qe = C(({ rule: t }) => {
|
|
747
|
+
const { categories: r } = j(), { setSelectedGuid: i } = Ee(), { deleteTransactionRule: o, setSelectedRule: n } = E(), { isDesktop: u, isTablet: s } = F(), [a, l] = m.useState(!1), b = () => {
|
|
748
748
|
l(!1), i(null), n(void 0);
|
|
749
749
|
}, _ = async () => {
|
|
750
750
|
await o(), b();
|
|
751
751
|
}, d = () => {
|
|
752
752
|
l(!0), n(t);
|
|
753
|
-
},
|
|
753
|
+
}, h = (w) => r.find((v) => v.guid === w)?.name;
|
|
754
754
|
return /* @__PURE__ */ c(m.Fragment, { children: [
|
|
755
755
|
/* @__PURE__ */ e(
|
|
756
756
|
Q,
|
|
757
757
|
{
|
|
758
758
|
onClick: d,
|
|
759
759
|
primaryText: t.description ? t.description : t.match_description,
|
|
760
|
-
secondaryText: t.category_guid ?
|
|
760
|
+
secondaryText: t.category_guid ? h(t.category_guid) : ""
|
|
761
761
|
}
|
|
762
762
|
),
|
|
763
763
|
/* @__PURE__ */ e(K, { sx: { ml: s || u ? 0 : 24 } }),
|
|
764
|
-
/* @__PURE__ */ e(
|
|
764
|
+
/* @__PURE__ */ e(Ye, { isOpen: a, onClose: b, onDelete: _ })
|
|
765
765
|
] });
|
|
766
766
|
}), re = C(() => {
|
|
767
|
-
const { settings: t } =
|
|
767
|
+
const { settings: t } = k(), { loadTransactionRules: r, transactionRules: i } = E(), [o, n] = m.useState(!1);
|
|
768
768
|
return ne({
|
|
769
769
|
widgetName: "TransactionRulesTab",
|
|
770
770
|
isLoaded: o
|
|
771
771
|
}), m.useEffect(() => {
|
|
772
772
|
r().finally(() => n(!0));
|
|
773
|
-
}, []), /* @__PURE__ */ c(
|
|
774
|
-
/* @__PURE__ */ c(
|
|
773
|
+
}, []), /* @__PURE__ */ c(p, { sx: { gap: 24, py: 24 }, children: [
|
|
774
|
+
/* @__PURE__ */ c(p, { sx: { px: 24 }, children: [
|
|
775
775
|
/* @__PURE__ */ e(Y, { children: t.transaction_rules_label }),
|
|
776
776
|
/* @__PURE__ */ e(M, { variant: "body1", children: t.transaction_rules_description })
|
|
777
777
|
] }),
|
|
778
|
-
/* @__PURE__ */ e(Te, { children: i.map((u, s) => /* @__PURE__ */ e(
|
|
778
|
+
/* @__PURE__ */ e(Te, { children: i.map((u, s) => /* @__PURE__ */ e(qe, { rule: u }, s)) })
|
|
779
779
|
] });
|
|
780
|
-
}),
|
|
780
|
+
}), Qe = C(({ selectedTab: t }) => {
|
|
781
781
|
const { alert: r, setAlert: i } = E(), {
|
|
782
782
|
config: { display_user_profile_in_settings: o }
|
|
783
783
|
} = G();
|
|
784
784
|
return /* @__PURE__ */ c(X, { children: [
|
|
785
|
-
t === N.Profile && /* @__PURE__ */ e(
|
|
786
|
-
t === N.Devices && /* @__PURE__ */ e(
|
|
785
|
+
t === N.Profile && /* @__PURE__ */ e(Ue, {}),
|
|
786
|
+
t === N.Devices && /* @__PURE__ */ e(je, {}),
|
|
787
787
|
t === N.Notifications && /* @__PURE__ */ e(J, { showPersonalDetails: !o }),
|
|
788
788
|
t === N.TransactionRules && /* @__PURE__ */ e(re, {}),
|
|
789
|
-
t === N.Help && /* @__PURE__ */ e(
|
|
789
|
+
t === N.Help && /* @__PURE__ */ e(p, { sx: { px: 24 }, children: /* @__PURE__ */ e(Oe, {}) }),
|
|
790
790
|
/* @__PURE__ */ e(
|
|
791
791
|
fe,
|
|
792
792
|
{
|
|
@@ -810,8 +810,8 @@ const Ue = ({
|
|
|
810
810
|
] });
|
|
811
811
|
});
|
|
812
812
|
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 || {});
|
|
813
|
-
const
|
|
814
|
-
const { settings: o } =
|
|
813
|
+
const Wt = C(({ onBackClick: t, onMenuClick: r, sx: i }) => {
|
|
814
|
+
const { settings: o } = k(), { isCopyLoaded: n, isInitialized: u } = ee(), { config: s } = G(), { isMobile: a } = F(), { categoriesLoaded: l, loadCategories: b } = j();
|
|
815
815
|
ne({
|
|
816
816
|
widgetName: "SettingsWidget",
|
|
817
817
|
isLoaded: u && n
|
|
@@ -821,14 +821,14 @@ const Vt = C(({ onBackClick: t, onMenuClick: r, sx: i }) => {
|
|
|
821
821
|
const {
|
|
822
822
|
display_user_profile_in_settings: _,
|
|
823
823
|
display_mobile_devices_in_settings: d,
|
|
824
|
-
display_notification_settings_in_settings:
|
|
825
|
-
display_user_transaction_rules_in_settings:
|
|
824
|
+
display_notification_settings_in_settings: h,
|
|
825
|
+
display_user_transaction_rules_in_settings: w,
|
|
826
826
|
show_help_widget_in_master: v
|
|
827
827
|
} = s, S = [
|
|
828
828
|
{ enabled: _, index: 0, label: o?.profile_label },
|
|
829
829
|
{ enabled: d, index: 1, label: o?.mobile_devices_label },
|
|
830
|
-
{ enabled:
|
|
831
|
-
{ enabled:
|
|
830
|
+
{ enabled: h, index: 2, label: o?.notifications_label },
|
|
831
|
+
{ enabled: w, index: 3, label: o?.transaction_rules_label },
|
|
832
832
|
{ enabled: v, index: 4, label: o?.help_label }
|
|
833
833
|
], A = S.find((D) => D.enabled), [T, g] = m.useState(A ? A.index : -1);
|
|
834
834
|
return !n || !u ? /* @__PURE__ */ e(ie, {}) : /* @__PURE__ */ e(
|
|
@@ -839,11 +839,11 @@ const Vt = C(({ onBackClick: t, onMenuClick: r, sx: i }) => {
|
|
|
839
839
|
showAccountFilter: !1,
|
|
840
840
|
sx: { height: "calc(100dvh - 24px)", overflow: "auto", ...i },
|
|
841
841
|
title: o.title,
|
|
842
|
-
children: /* @__PURE__ */ c(
|
|
842
|
+
children: /* @__PURE__ */ c(p, { mx: a ? 0 : 48, my: 24, children: [
|
|
843
843
|
/* @__PURE__ */ e(
|
|
844
844
|
pe,
|
|
845
845
|
{
|
|
846
|
-
onChange: (D,
|
|
846
|
+
onChange: (D, U) => g(U),
|
|
847
847
|
sx: { bgcolor: "background.paper" },
|
|
848
848
|
textColor: "primary",
|
|
849
849
|
value: T,
|
|
@@ -853,30 +853,41 @@ const Vt = C(({ onBackClick: t, onMenuClick: r, sx: i }) => {
|
|
|
853
853
|
)
|
|
854
854
|
}
|
|
855
855
|
),
|
|
856
|
-
/* @__PURE__ */ e(
|
|
856
|
+
/* @__PURE__ */ e(Qe, { selectedTab: T })
|
|
857
857
|
] })
|
|
858
858
|
}
|
|
859
859
|
);
|
|
860
|
-
}),
|
|
861
|
-
const { clientConfig: r } = G(), i = r?.master?.deep_link_params?.view;
|
|
862
|
-
return i ? /* @__PURE__ */
|
|
863
|
-
|
|
864
|
-
|
|
860
|
+
}), zt = C((t) => {
|
|
861
|
+
const { clientConfig: r } = G(), i = r?.master?.deep_link_params?.view, o = r?.master?.show_back_button;
|
|
862
|
+
return i ? /* @__PURE__ */ c(p, { children: [
|
|
863
|
+
o && t.onBackClick && /* @__PURE__ */ e(
|
|
864
|
+
O,
|
|
865
|
+
{
|
|
866
|
+
color: "primary",
|
|
867
|
+
onClick: t.onBackClick,
|
|
868
|
+
sx: { p: 10, alignSelf: "flex-start" },
|
|
869
|
+
children: /* @__PURE__ */ e(Be, { size: 24 })
|
|
870
|
+
}
|
|
871
|
+
),
|
|
872
|
+
/* @__PURE__ */ e(J, { view: i })
|
|
873
|
+
] }) : /* @__PURE__ */ e(q, { ...t, showAccountFilter: !1, children: /* @__PURE__ */ e(p, { my: 24, children: /* @__PURE__ */ e(J, {}) }) });
|
|
874
|
+
}), Gt = (t) => {
|
|
875
|
+
const { isMobile: r } = F(), { categoriesLoaded: i, loadCategories: o } = j();
|
|
865
876
|
return m.useEffect(() => {
|
|
866
877
|
i || o().finally();
|
|
867
|
-
}), /* @__PURE__ */ e(q, { ...t, showAccountFilter: !1, children: /* @__PURE__ */ e(
|
|
878
|
+
}), /* @__PURE__ */ e(q, { ...t, showAccountFilter: !1, children: /* @__PURE__ */ e(p, { sx: { mx: r ? 0 : 48, my: 24 }, children: /* @__PURE__ */ e(re, {}) }) });
|
|
868
879
|
};
|
|
869
880
|
export {
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
881
|
+
Jt as AccountNotificationProfiles,
|
|
882
|
+
Kt as BudgetNotificationProfiles,
|
|
883
|
+
je as DeviceTab,
|
|
884
|
+
Yt as InsightsNotificationProfiles,
|
|
874
885
|
J as NotificationSettings,
|
|
875
|
-
|
|
876
|
-
|
|
886
|
+
zt as NotificationSettingsWidget,
|
|
887
|
+
Ue as ProfileTab,
|
|
877
888
|
N as SettingsTabs,
|
|
878
|
-
|
|
879
|
-
|
|
889
|
+
Wt as SettingsWidget,
|
|
890
|
+
Qe as SettingsWidgetContents,
|
|
880
891
|
re as TransactionRulesTab,
|
|
881
|
-
|
|
892
|
+
Gt as TransactionRulesWidget
|
|
882
893
|
};
|