@mx-cartographer/experiences 9.0.12 → 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 CHANGED
@@ -1,3 +1,7 @@
1
+ ## [9.0.13] - 06-02-2026
2
+
3
+ - **ADDED** - Back button on Notification Settings views when show_back_button is enabled
4
+
1
5
  ## [9.0.12] - 06-02-2026
2
6
 
3
7
  - **FIXED** - Debts widget briefly displaying zero percent interest rates before account data finished loading
@@ -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 h from "@mui/material/Stack";
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 V } from "@mui/material/styles";
14
- import W from "@mui/material/Box";
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 $t, B as Jt, I as Kt } from "../NotificationSettings-CW7okUrk.mjs";
20
- import { u as w, i as G, A as E, C as Ce, a as ee, l as j } from "../hooks-97sNJ_lf.mjs";
21
- import { u as O } from "../useScreenSize-mWpmnh5w.mjs";
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 z from "@mui/material/IconButton";
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 U } from "../HeaderCell-P8w6CmfO.mjs";
29
- import we from "@mui/material/Accordion";
30
- import ke from "@mui/material/AccordionDetails";
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 Be } from "../Drawer-DsnW2o0v.mjs";
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 He } from "../Help-BMCejaQr.mjs";
44
+ import { H as Oe } from "../Help-BMCejaQr.mjs";
45
45
  import { W as q } from "../WidgetContainer-DJnp6t6c.mjs";
46
- const Oe = ({ availableWidth: t, handleOnLeavClick: r }) => {
47
- const i = L(), { common: o, settings: n } = w(), { isDesktop: u, isMobile: s, isSmallMobile: a, isTablet: l } = O(t), { config: b } = G(), { updateUser: _ } = E(), { user: d } = Ce(), [p, k] = m.useState({
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 = p.email && !d.email_is_verified && !v, F = p.phone && !d.phone_is_verified && !v;
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 (p.birthday) {
68
- const f = new Date(p.birthday * 1e3), R = f.getUTCFullYear(), de = f.getUTCMonth(), me = f.getUTCDate();
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, ...p }), S(!1);
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
- ...p,
79
+ ...h,
80
80
  ...f
81
81
  };
82
- k(R), S(JSON.stringify({ ...d, ...R }) !== JSON.stringify(d));
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
- W,
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
- h,
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: p.first_name,
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: p.last_name,
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(h, { direction: s ? "column" : "row", children: [
128
- b.display_email_edit_field_in_settings && /* @__PURE__ */ c(h, { sx: { mb: D ? 20 : 44, mr: s ? 0 : 24 }, children: [
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: p.email,
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(h, { sx: { mb: F ? 20 : 44 }, children: [
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: p.phone,
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
- F && /* @__PURE__ */ e(ve, {})
149
+ U && /* @__PURE__ */ e(ve, {})
150
150
  ] })
151
151
  ] }),
152
- /* @__PURE__ */ c(h, { direction: s ? "column" : "row", spacing: s ? 44 : 24, sx: { mb: 44 }, children: [
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: V(i.palette.primary.light, 0.1) }
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: V(i.palette.primary.light, 0.1) }
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: V(i.palette.primary.light, 0.1) }
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: p.postal_code,
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(h, { children: [
191
+ /* @__PURE__ */ c(p, { children: [
192
192
  /* @__PURE__ */ e(
193
193
  I,
194
194
  {
195
- defaultValue: p.credit_score,
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
- }, Fe = C(Oe);
228
+ }, Ue = C(Fe);
229
229
  var y = /* @__PURE__ */ ((t) => (t.Delete = "delete", t.Edit = "edit", t.Token = "token", t))(y || {});
230
- const Ue = ({
230
+ const Ve = ({
231
231
  devices: t,
232
232
  onClickDeviceEdit: r,
233
233
  onClickDeviceDelete: i
234
234
  }) => {
235
- const o = L(), { settings: n } = w(), u = [
235
+ const o = L(), { settings: n } = k(), u = [
236
236
  {
237
237
  field: "name",
238
238
  headerName: n.mobile_devices_column_name,
239
- renderHeader: U,
240
- renderCell: (a) => /* @__PURE__ */ c(h, { alignItems: "center", direction: "row", gap: 4, children: [
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
- z,
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: U,
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: U,
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: U,
279
- renderCell: (a) => /* @__PURE__ */ e(h, { mr: 4, children: /* @__PURE__ */ e(
280
- z,
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(W, { sx: { width: "100%" }, children: /* @__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
- W,
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: V(o.palette.primary.main, 0.1)
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
- }, Ve = ({
345
+ }, We = ({
346
346
  devices: t,
347
347
  onClickDeviceEdit: r,
348
348
  onClickDeviceDelete: i
349
349
  }) => {
350
- const o = L(), { settings: n } = w(), [u, s] = m.useState(!1), a = (l) => (b, _) => {
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(h, { mx: -28, sx: { "& .MuiAccordion-root": { mb: 0, mt: 0 } }, children: [
353
+ return /* @__PURE__ */ c(p, { mx: -28, sx: { "& .MuiAccordion-root": { mb: 0, mt: 0 } }, children: [
354
354
  t.map((l) => /* @__PURE__ */ c(
355
- we,
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(h, { gap: 4, children: [
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
- ke,
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
- h,
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(z, { "aria-label": n.mobile_devices_edit_label, color: "secondary", children: /* @__PURE__ */ e(B, { name: "edit" }) }),
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
- h,
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(z, { "aria-label": n.mobile_devices_delete_label, color: "secondary", children: /* @__PURE__ */ e(B, { name: "delete" }) }),
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
- W,
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
- }, We = ({
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 } = w(), { updateDevice: l, deleteDevice: b, setAlert: _, loadDevices: d } = E(), [p, k] = m.useState("");
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 && k(o.name);
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: p };
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(h, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
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(h, { children: /* @__PURE__ */ e(I, { onChange: (g) => k(g.target.value), value: p }) }),
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
- }, ze = C(We), Ge = C(() => {
559
- const { isMobile: t } = O(), { 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("");
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 ? (k(g), b({ open: !0, type: y.Token })) : n(r.mobile_devices_access_error, "error");
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
- h,
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(h, { gap: 4, children: [
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
- Ve,
587
+ We,
588
588
  {
589
589
  devices: u,
590
590
  onClickDeviceDelete: A,
591
591
  onClickDeviceEdit: S
592
592
  }
593
593
  ) : /* @__PURE__ */ e(
594
- Ue,
594
+ Ve,
595
595
  {
596
596
  devices: u,
597
597
  onClickDeviceDelete: A,
598
598
  onClickDeviceEdit: S
599
599
  }
600
600
  ),
601
- /* @__PURE__ */ c(h, { sx: { alignItems: "center", px: 24, py: 12, gap: 4 }, children: [
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
- ze,
607
+ Ge,
608
608
  {
609
609
  device: _,
610
- deviceToken: p,
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
- ), je = C(() => {
628
- const { settings: t } = w(), { categories: r } = j(), { selectedRule: i, updateRuleCategory: o } = E(), [n, u] = m.useState(!1), s = () => {
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
- }), $e = C(() => {
656
- const { common: t, settings: r } = w(), { 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 || ""), _ = () => {
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: (p) => b(p.target.value),
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
- }), Je = C(({ onClose: t, onDelete: r, isOpen: i }) => {
696
- const { common: o, settings: n } = w();
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
- }), Ke = C(
713
+ }), Ye = C(
714
714
  ({ isOpen: t, onClose: r, onDelete: i }) => {
715
- const { common: o, settings: n } = w(), [u, s] = m.useState(!1);
715
+ const { common: o, settings: n } = k(), [u, s] = m.useState(!1);
716
716
  return /* @__PURE__ */ c(
717
- Be,
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($e, {}),
730
+ /* @__PURE__ */ e(Je, {}),
731
731
  /* @__PURE__ */ e(K, { sx: { ml: 24 } }),
732
- /* @__PURE__ */ e(je, {}),
732
+ /* @__PURE__ */ e($e, {}),
733
733
  /* @__PURE__ */ e(K, { sx: { ml: 24 } }),
734
734
  /* @__PURE__ */ e(
735
- Je,
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
- ), Ye = C(({ rule: t }) => {
747
- const { categories: r } = j(), { setSelectedGuid: i } = Ee(), { deleteTransactionRule: o, setSelectedRule: n } = E(), { isDesktop: u, isTablet: s } = O(), [a, l] = m.useState(!1), b = () => {
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
- }, p = (k) => r.find((v) => v.guid === k)?.name;
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 ? p(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(Ke, { isOpen: a, onClose: b, onDelete: _ })
764
+ /* @__PURE__ */ e(Ye, { isOpen: a, onClose: b, onDelete: _ })
765
765
  ] });
766
766
  }), re = C(() => {
767
- const { settings: t } = w(), { loadTransactionRules: r, transactionRules: i } = E(), [o, n] = m.useState(!1);
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(h, { sx: { gap: 24, py: 24 }, children: [
774
- /* @__PURE__ */ c(h, { sx: { px: 24 }, children: [
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(Ye, { rule: u }, s)) })
778
+ /* @__PURE__ */ e(Te, { children: i.map((u, s) => /* @__PURE__ */ e(qe, { rule: u }, s)) })
779
779
  ] });
780
- }), qe = C(({ selectedTab: t }) => {
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(Fe, {}),
786
- t === N.Devices && /* @__PURE__ */ e(Ge, {}),
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(h, { sx: { px: 24 }, children: /* @__PURE__ */ e(He, {}) }),
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 Vt = C(({ onBackClick: t, onMenuClick: r, sx: i }) => {
814
- const { settings: o } = w(), { isCopyLoaded: n, isInitialized: u } = ee(), { config: s } = G(), { isMobile: a } = O(), { categoriesLoaded: l, loadCategories: b } = j();
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: p,
825
- display_user_transaction_rules_in_settings: k,
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: p, index: 2, label: o?.notifications_label },
831
- { enabled: k, index: 3, label: o?.transaction_rules_label },
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(h, { mx: a ? 0 : 48, my: 24, children: [
842
+ children: /* @__PURE__ */ c(p, { mx: a ? 0 : 48, my: 24, children: [
843
843
  /* @__PURE__ */ e(
844
844
  pe,
845
845
  {
846
- onChange: (D, F) => g(F),
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(qe, { selectedTab: T })
856
+ /* @__PURE__ */ e(Qe, { selectedTab: T })
857
857
  ] })
858
858
  }
859
859
  );
860
- }), Wt = C((t) => {
861
- const { clientConfig: r } = G(), i = r?.master?.deep_link_params?.view;
862
- return i ? /* @__PURE__ */ e(J, { view: i }) : /* @__PURE__ */ e(q, { ...t, showAccountFilter: !1, children: /* @__PURE__ */ e(h, { my: 24, children: /* @__PURE__ */ e(J, {}) }) });
863
- }), zt = (t) => {
864
- const { isMobile: r } = O(), { categoriesLoaded: i, loadCategories: o } = j();
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(h, { sx: { mx: r ? 0 : 48, my: 24 }, children: /* @__PURE__ */ e(re, {}) }) });
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
- $t as AccountNotificationProfiles,
871
- Jt as BudgetNotificationProfiles,
872
- Ge as DeviceTab,
873
- Kt as InsightsNotificationProfiles,
881
+ Jt as AccountNotificationProfiles,
882
+ Kt as BudgetNotificationProfiles,
883
+ je as DeviceTab,
884
+ Yt as InsightsNotificationProfiles,
874
885
  J as NotificationSettings,
875
- Wt as NotificationSettingsWidget,
876
- Fe as ProfileTab,
886
+ zt as NotificationSettingsWidget,
887
+ Ue as ProfileTab,
877
888
  N as SettingsTabs,
878
- Vt as SettingsWidget,
879
- qe as SettingsWidgetContents,
889
+ Wt as SettingsWidget,
890
+ Qe as SettingsWidgetContents,
880
891
  re as TransactionRulesTab,
881
- zt as TransactionRulesWidget
892
+ Gt as TransactionRulesWidget
882
893
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "9.0.12",
3
+ "version": "9.0.13-alpha.al0",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",