@mx-cartographer/experiences 7.13.16 → 7.13.17

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.
@@ -1,34 +1,34 @@
1
1
  import { S as Yt, a as qt } from "../SettingsStore-Cax1fzsz.mjs";
2
2
  import { jsxs as c, Fragment as X, jsx as e } from "react/jsx-runtime";
3
- import p from "react";
3
+ import u from "react";
4
4
  import { observer as C } from "mobx-react-lite";
5
5
  import f from "@mui/material/Stack";
6
6
  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 be } from "date-fns/getUnixTime";
10
+ import { getUnixTime as _e } from "date-fns/getUnixTime";
11
11
  import { AdapterDateFns as ge } from "@mui/x-date-pickers/AdapterDateFnsV3";
12
- import { DatePicker as _e } from "@mui/x-date-pickers";
12
+ import { DatePicker as be } from "@mui/x-date-pickers";
13
13
  import { LocalizationProvider as ye } from "@mui/x-date-pickers/LocalizationProvider";
14
14
  import { useTheme as xe, alpha as 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 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
- import { u as O } from "../useScreenSize-B6JyS_Lj.mjs";
18
+ import { H3 as K, P as N, Text as v, Icon as L, ChevronRightIcon as ve } from "@mxenabled/mxui";
19
+ import { V as Ce, a as De, N as j } from "../NotificationSettings-C77J42Ue.mjs";
20
+ import { A as Xt, B as Zt, I as eo } from "../NotificationSettings-C77J42Ue.mjs";
21
+ import { u as D, a as z, r as A, o as we, b as ee, l as $ } from "../hooks-BxkfR-Ff.mjs";
22
+ import { u as H } 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
- import R from "@mui/material/styles/useTheme";
26
+ import O from "@mui/material/styles/useTheme";
27
27
  import W from "@mui/material/IconButton";
28
- import { DataGridPro as ke } from "@mui/x-data-grid-pro";
28
+ import { DataGridPro as Se } from "@mui/x-data-grid-pro";
29
29
  import { H as F } from "../HeaderCell-P8w6CmfO.mjs";
30
- import { b as H } from "../Localization-CPkpIwIx.mjs";
31
- import Se from "@mui/material/Accordion";
30
+ import { b as B } from "../Localization-CPkpIwIx.mjs";
31
+ import ke 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";
@@ -42,63 +42,63 @@ import Le from "@mui/material/ListItemIcon";
42
42
  import Be from "@mui/material/ListItemText";
43
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-CpLfyvPv.mjs";
45
+ import { H as Oe } from "../Help-D-laTbKu.mjs";
46
46
  import { W as Y } from "../WidgetContainer-B7xDq2bM.mjs";
47
- const Fe = ({ availableWidth: t, handleOnLeavClick: a }) => {
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
- first_name: m.first_name,
50
- last_name: m.last_name,
51
- email: m.email,
52
- phone: m.phone,
53
- birthday: m.birthday,
54
- postal_code: m.postal_code,
55
- credit_score: m.credit_score
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
- p.useEffect(() => {
58
- if (a) {
59
- const b = (P) => {
60
- u.current && !u.current.contains(P.target) && x && T(!0);
47
+ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
48
+ const o = xe(), { common: i, settings: n } = D(), { isDesktop: p, isMobile: s, isSmallMobile: a, isTablet: l } = H(t), { config: b } = z(), { updateUser: g } = A(), { user: d } = we(), [h, w] = u.useState({
49
+ first_name: d.first_name,
50
+ last_name: d.last_name,
51
+ email: d.email,
52
+ phone: d.phone,
53
+ birthday: d.birthday,
54
+ postal_code: d.postal_code,
55
+ credit_score: d.credit_score
56
+ }), [x, S] = u.useState(!1), [k, T] = u.useState(!1), m = u.useRef(null), M = h.email && !d.email_is_verified && !x, Q = h.phone && !d.phone_is_verified && !x;
57
+ u.useEffect(() => {
58
+ if (r) {
59
+ const _ = (R) => {
60
+ m.current && !m.current.contains(R.target) && x && T(!0);
61
61
  };
62
- return document.addEventListener("mousedown", b), () => {
63
- document.removeEventListener("mousedown", b);
62
+ return document.addEventListener("mousedown", _), () => {
63
+ document.removeEventListener("mousedown", _);
64
64
  };
65
65
  }
66
66
  }, [x]);
67
67
  const ae = () => {
68
68
  if (h.birthday) {
69
- const b = new Date(h.birthday * 1e3), P = b.getUTCFullYear(), de = b.getUTCMonth(), me = b.getUTCDate();
70
- return new Date(P, de, me);
69
+ const _ = new Date(h.birthday * 1e3), R = _.getUTCFullYear(), de = _.getUTCMonth(), me = _.getUTCDate();
70
+ return new Date(R, de, me);
71
71
  }
72
72
  }, se = async () => {
73
- await g({ ...m, ...h }), k(!1);
73
+ await g({ ...d, ...h }), S(!1);
74
74
  }, le = () => {
75
- T(!1), a && a();
75
+ T(!1), r && r();
76
76
  }, ce = () => {
77
77
  T(!1);
78
- }, E = (b) => {
79
- const P = {
78
+ }, E = (_) => {
79
+ const R = {
80
80
  ...h,
81
- ...b
81
+ ..._
82
82
  };
83
- w(P), k(JSON.stringify({ ...m, ...P }) !== JSON.stringify(m));
83
+ w(R), S(JSON.stringify({ ...d, ...R }) !== JSON.stringify(d));
84
84
  };
85
85
  return /* @__PURE__ */ c(X, { children: [
86
86
  /* @__PURE__ */ c(
87
87
  V,
88
88
  {
89
89
  component: "form",
90
- ref: u,
90
+ ref: m,
91
91
  sx: {
92
92
  backgroundColor: "background.paper",
93
93
  p: 24,
94
- width: r ? 320 : l ? 680 : d ? 990 : 400,
94
+ width: a ? 320 : l ? 680 : p ? 990 : 400,
95
95
  "& .MuiTextField-root": {
96
- width: r ? 272 : l ? 328 : d ? 483 : 352
96
+ width: a ? 272 : l ? 328 : p ? 483 : 352
97
97
  }
98
98
  },
99
99
  children: [
100
100
  /* @__PURE__ */ e(K, { children: n.personal_details }),
101
- /* @__PURE__ */ e(M, { variant: "body1", children: n.update_information }),
101
+ /* @__PURE__ */ e(N, { variant: "body1", children: n.update_information }),
102
102
  /* @__PURE__ */ c(
103
103
  f,
104
104
  {
@@ -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: (b) => E({ first_name: b.target.value })
114
+ onChange: (_) => E({ first_name: _.target.value })
115
115
  }
116
116
  ),
117
117
  /* @__PURE__ */ e(
@@ -119,31 +119,31 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: a }) => {
119
119
  {
120
120
  defaultValue: h.last_name,
121
121
  label: n.last_name,
122
- onChange: (b) => E({ last_name: b.target.value })
122
+ onChange: (_) => E({ last_name: _.target.value })
123
123
  }
124
124
  )
125
125
  ]
126
126
  }
127
127
  ),
128
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: [
129
+ b.display_email_edit_field_in_settings && /* @__PURE__ */ c(f, { sx: { mb: M ? 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: (b) => E({ email: b.target.value })
135
+ onChange: (_) => E({ email: _.target.value })
136
136
  }
137
137
  ),
138
- L && /* @__PURE__ */ e(Ce, {})
138
+ M && /* @__PURE__ */ e(Ce, {})
139
139
  ] }),
140
- _.display_sms_edit_field_in_settings && /* @__PURE__ */ c(f, { sx: { mb: Q ? 20 : 44 }, children: [
140
+ b.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: (b) => E({ phone: b.target.value }),
146
+ onChange: (_) => E({ phone: _.target.value }),
147
147
  type: "tel"
148
148
  }
149
149
  ),
@@ -152,10 +152,10 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: a }) => {
152
152
  ] }),
153
153
  /* @__PURE__ */ c(f, { direction: s ? "column" : "row", spacing: s ? 44 : 24, sx: { mb: 44 }, children: [
154
154
  /* @__PURE__ */ e(ye, { dateAdapter: ge, children: /* @__PURE__ */ e(
155
- _e,
155
+ be,
156
156
  {
157
157
  label: n.birthdate,
158
- onChange: (b) => E({ birthday: be(b) }),
158
+ onChange: (_) => E({ birthday: _e(_) }),
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: (b) => E({ postal_code: b.target.value })
188
+ onChange: (_) => E({ postal_code: _.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: (b) => E({ credit_score: Number(b.target.value) }),
198
+ onChange: (_) => E({ credit_score: Number(_.target.value) }),
199
199
  sx: { mb: 44 }
200
200
  }
201
201
  ),
@@ -204,7 +204,7 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: a }) => {
204
204
  {
205
205
  disabled: !x,
206
206
  onClick: se,
207
- sx: { width: r ? 272 : 124 },
207
+ sx: { width: a ? 272 : 124 },
208
208
  variant: "contained",
209
209
  children: i.save_button
210
210
  }
@@ -217,7 +217,7 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: a }) => {
217
217
  G,
218
218
  {
219
219
  copy: { title: n.discard_changes },
220
- isOpen: S,
220
+ isOpen: k,
221
221
  onClose: ce,
222
222
  onSecondaryAction: le,
223
223
  primaryText: n.keep_editing,
@@ -230,23 +230,23 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: a }) => {
230
230
  var y = /* @__PURE__ */ ((t) => (t.Delete = "delete", t.Edit = "edit", t.Token = "token", t))(y || {});
231
231
  const Ve = ({
232
232
  devices: t,
233
- onClickDeviceEdit: a,
233
+ onClickDeviceEdit: r,
234
234
  onClickDeviceDelete: o
235
235
  }) => {
236
- const i = R(), { settings: n } = D(), d = [
236
+ const i = O(), { settings: n } = D(), p = [
237
237
  {
238
238
  field: "name",
239
239
  headerName: n.mobile_devices_column_name,
240
240
  renderHeader: F,
241
- renderCell: (r) => /* @__PURE__ */ c(f, { alignItems: "center", direction: "row", gap: 4, children: [
242
- /* @__PURE__ */ e(v, { variant: "body2", children: r.value }),
241
+ renderCell: (a) => /* @__PURE__ */ c(f, { alignItems: "center", direction: "row", gap: 4, children: [
242
+ /* @__PURE__ */ e(v, { variant: "body2", children: a.value }),
243
243
  /* @__PURE__ */ e(
244
244
  W,
245
245
  {
246
246
  "aria-label": n.mobile_devices_edit_label,
247
247
  color: "secondary",
248
- onClick: () => a(r.row),
249
- children: /* @__PURE__ */ e(B, { name: "edit" })
248
+ onClick: () => r(a.row),
249
+ children: /* @__PURE__ */ e(L, { name: "edit" })
250
250
  }
251
251
  )
252
252
  ] }),
@@ -267,7 +267,7 @@ const Ve = ({
267
267
  field: "created_at",
268
268
  headerName: n.mobile_devices_column_added,
269
269
  renderHeader: F,
270
- valueFormatter: (r) => te(oe(r), { addSuffix: !0 }),
270
+ valueFormatter: (a) => te(oe(a), { addSuffix: !0 }),
271
271
  sortable: !0,
272
272
  hideSortIcons: !1,
273
273
  flex: 1,
@@ -277,28 +277,28 @@ const Ve = ({
277
277
  field: "delete",
278
278
  headerName: "",
279
279
  renderHeader: F,
280
- renderCell: (r) => /* @__PURE__ */ e(f, { mr: 4, children: /* @__PURE__ */ e(
280
+ renderCell: (a) => /* @__PURE__ */ e(f, { mr: 4, children: /* @__PURE__ */ e(
281
281
  W,
282
282
  {
283
283
  "aria-label": n.mobile_devices_delete_label,
284
284
  color: "secondary",
285
- onClick: () => o(r.row),
286
- children: /* @__PURE__ */ e(B, { name: "delete" })
285
+ onClick: () => o(a.row),
286
+ children: /* @__PURE__ */ e(L, { name: "delete" })
287
287
  }
288
288
  ) }),
289
289
  sortable: !1,
290
290
  hideSortIcons: !1,
291
291
  width: 58
292
292
  }
293
- ], s = p.useMemo(() => t.map((r) => ({
294
- id: r.guid,
295
- ...r,
296
- device_type: `${r.make} ${r.model}`
293
+ ], s = u.useMemo(() => t.map((a) => ({
294
+ id: a.guid,
295
+ ...a,
296
+ device_type: `${a.make} ${a.model}`
297
297
  })), [t]);
298
298
  return /* @__PURE__ */ e(V, { sx: { width: "100%" }, children: /* @__PURE__ */ e(
299
- ke,
299
+ Se,
300
300
  {
301
- columns: d,
301
+ columns: p,
302
302
  disableColumnFilter: !0,
303
303
  disableColumnMenu: !0,
304
304
  disableRowSelectionOnClick: !0,
@@ -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: "body2", children: H(
322
+ children: /* @__PURE__ */ e(v, { color: i.palette.text.secondary, variant: "body2", children: B(
323
323
  n.mobile_devices_count,
324
324
  /* @__PURE__ */ e("b", { children: t.length }),
325
325
  /* @__PURE__ */ e("b", { children: t.length })
@@ -329,7 +329,7 @@ const Ve = ({
329
329
  },
330
330
  sx: {
331
331
  border: "1px solid",
332
- borderColor: i.palette.border.light,
332
+ borderColor: i.palette.neutral.light,
333
333
  borderRadius: "8px",
334
334
  "& .MuiDataGrid-columnHeader .MuiIconButton-root": {
335
335
  color: i.palette.primary.main,
@@ -345,28 +345,28 @@ const Ve = ({
345
345
  ) });
346
346
  }, We = ({
347
347
  devices: t,
348
- onClickDeviceEdit: a,
348
+ onClickDeviceEdit: r,
349
349
  onClickDeviceDelete: o
350
350
  }) => {
351
- const i = R(), { settings: n } = D(), [d, s] = p.useState(!1), r = (l) => (_, g) => {
351
+ const i = O(), { settings: n } = D(), [p, s] = u.useState(!1), a = (l) => (b, g) => {
352
352
  s(g ? l : !1);
353
353
  };
354
354
  return /* @__PURE__ */ c(f, { mx: -28, sx: { "& .MuiAccordion-root": { mb: 0, mt: 0 } }, children: [
355
355
  t.map((l) => /* @__PURE__ */ c(
356
- Se,
356
+ ke,
357
357
  {
358
- expanded: d === l.guid,
359
- onChange: r(l.guid),
358
+ expanded: p === l.guid,
359
+ onChange: a(l.guid),
360
360
  sx: { boxShadow: "none" },
361
361
  children: [
362
362
  /* @__PURE__ */ e(
363
363
  Ie,
364
364
  {
365
- expandIcon: /* @__PURE__ */ e(B, { color: "secondary", name: "keyboard_arrow_down", size: 24 }),
365
+ expandIcon: /* @__PURE__ */ e(L, { color: "secondary", name: "keyboard_arrow_down", size: 24 }),
366
366
  sx: {
367
367
  padding: "14px 24px",
368
368
  borderBottom: "1px solid",
369
- borderColor: i.palette.border.light
369
+ borderColor: i.palette.divider
370
370
  },
371
371
  children: /* @__PURE__ */ c(f, { gap: 4, children: [
372
372
  /* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: l.name }),
@@ -383,7 +383,7 @@ const Ve = ({
383
383
  /* @__PURE__ */ c(
384
384
  f,
385
385
  {
386
- onClick: () => a(l),
386
+ onClick: () => r(l),
387
387
  sx: {
388
388
  alignItems: "center",
389
389
  flexDirection: "row",
@@ -392,10 +392,10 @@ const Ve = ({
392
392
  py: 16,
393
393
  cursor: "pointer",
394
394
  borderBottom: "1px solid",
395
- borderColor: i.palette.border.light
395
+ borderColor: i.palette.divider
396
396
  },
397
397
  children: [
398
- /* @__PURE__ */ e(W, { "aria-label": n.mobile_devices_edit_label, color: "secondary", children: /* @__PURE__ */ e(B, { name: "edit" }) }),
398
+ /* @__PURE__ */ e(W, { "aria-label": n.mobile_devices_edit_label, color: "secondary", children: /* @__PURE__ */ e(L, { name: "edit" }) }),
399
399
  /* @__PURE__ */ e(v, { variant: "body1", children: n.mobile_devices_edit_label })
400
400
  ]
401
401
  }
@@ -413,7 +413,7 @@ 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(B, { name: "delete" }) }),
416
+ /* @__PURE__ */ e(W, { "aria-label": n.mobile_devices_delete_label, color: "secondary", children: /* @__PURE__ */ e(L, { name: "delete" }) }),
417
417
  /* @__PURE__ */ e(v, { variant: "body1", children: n.mobile_devices_delete_label })
418
418
  ]
419
419
  }
@@ -431,10 +431,10 @@ const Ve = ({
431
431
  sx: {
432
432
  backgroundColor: i.palette.background.default,
433
433
  borderTop: "1px solid",
434
- borderColor: i.palette.border.light,
434
+ borderColor: i.palette.divider,
435
435
  p: "12px 16px"
436
436
  },
437
- children: /* @__PURE__ */ e(v, { color: i.palette.text.secondary, variant: "body2", children: H(
437
+ children: /* @__PURE__ */ e(v, { color: i.palette.text.secondary, variant: "body2", children: B(
438
438
  n.mobile_devices_count,
439
439
  /* @__PURE__ */ e("b", { children: t.length }),
440
440
  /* @__PURE__ */ e("b", { children: t.length })
@@ -442,27 +442,27 @@ const Ve = ({
442
442
  }
443
443
  )
444
444
  ] });
445
- }, $e = ({
445
+ }, ze = ({
446
446
  dialogType: t,
447
- isOpen: a,
447
+ isOpen: r,
448
448
  onClose: o,
449
449
  device: i,
450
450
  deviceToken: n = ""
451
451
  }) => {
452
- const d = R(), { common: s, settings: r } = D(), { updateDevice: l, deleteDevice: _, setAlert: g, loadDevices: m } = A(), [h, w] = p.useState("");
453
- p.useEffect(() => {
452
+ const p = O(), { common: s, settings: a } = D(), { updateDevice: l, deleteDevice: b, setAlert: g, loadDevices: d } = A(), [h, w] = u.useState("");
453
+ u.useEffect(() => {
454
454
  i && w(i.name);
455
455
  }, [i, t]);
456
456
  const x = () => {
457
457
  switch (t) {
458
458
  case y.Edit:
459
- return r.mobile_devices_edit_label;
459
+ return a.mobile_devices_edit_label;
460
460
  case y.Delete:
461
- return r.mobile_devices_delete_label;
461
+ return a.mobile_devices_delete_label;
462
462
  default:
463
463
  return "";
464
464
  }
465
- }, k = () => {
465
+ }, S = () => {
466
466
  switch (t) {
467
467
  case y.Token:
468
468
  return s.done_button;
@@ -473,15 +473,15 @@ const Ve = ({
473
473
  default:
474
474
  return "";
475
475
  }
476
- }, S = () => {
477
- const u = {
476
+ }, k = () => {
477
+ const m = {
478
478
  "& .MuiDialogContent-root": {
479
479
  width: 400,
480
480
  pt: 0
481
481
  }
482
482
  };
483
483
  return t === y.Token ? {
484
- ...u,
484
+ ...m,
485
485
  "& .MuiToolbar-root:last-child": {
486
486
  padding: "32px 60px 48px",
487
487
  justifyContent: "center"
@@ -493,7 +493,7 @@ const Ve = ({
493
493
  flex: 1
494
494
  }
495
495
  } : {
496
- ...u,
496
+ ...m,
497
497
  "& .MuiToolbar-root:last-child": {
498
498
  gap: 8,
499
499
  padding: 24,
@@ -507,17 +507,17 @@ const Ve = ({
507
507
  };
508
508
  }, T = async () => {
509
509
  if (t === y.Token && o(), t === y.Edit && i) {
510
- const u = { ...i, name: h };
511
- (await l(u)).success ? (g(r.mobile_devices_edit_success, "success"), m()) : g(
512
- H(r.mobile_devices_edit_error, i.name),
510
+ const m = { ...i, name: h };
511
+ (await l(m)).success ? (g(a.mobile_devices_edit_success, "success"), d()) : g(
512
+ B(a.mobile_devices_edit_error, i.name),
513
513
  "error"
514
514
  ), o();
515
515
  }
516
- t === y.Delete && i && ((await _(i.guid)).success ? (g(
517
- H(r.mobile_devices_delete_success, i.name),
516
+ t === y.Delete && i && ((await b(i.guid)).success ? (g(
517
+ B(a.mobile_devices_delete_success, i.name),
518
518
  "success"
519
- ), m()) : g(
520
- H(r.mobile_devices_delete_error, i.name),
519
+ ), d()) : g(
520
+ B(a.mobile_devices_delete_error, i.name),
521
521
  "error"
522
522
  ), o());
523
523
  };
@@ -525,23 +525,23 @@ const Ve = ({
525
525
  G,
526
526
  {
527
527
  copy: { title: x() },
528
- isOpen: a,
528
+ isOpen: r,
529
529
  onClose: o,
530
530
  onPrimaryAction: T,
531
531
  onSecondaryAction: o,
532
532
  primaryColor: t === y.Delete ? "error" : void 0,
533
- primaryText: k(),
533
+ primaryText: S(),
534
534
  secondaryText: t === y.Token ? s.back : s.cancel_button,
535
- sx: S(),
535
+ sx: k(),
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: "body1", children: r.mobile_devices_access_label }),
539
- /* @__PURE__ */ e(v, { truncate: !1, variant: "body2", children: r.mobile_devices_access_info_1 }),
538
+ /* @__PURE__ */ e(v, { bold: !0, truncate: !1, variant: "body1", children: a.mobile_devices_access_label }),
539
+ /* @__PURE__ */ e(v, { truncate: !1, variant: "body2", children: a.mobile_devices_access_info_1 }),
540
540
  /* @__PURE__ */ e(
541
- M,
541
+ N,
542
542
  {
543
543
  sx: {
544
- border: `1px solid ${d.palette.border.light}`,
544
+ border: `1px solid ${p.palette.neutral.light}`,
545
545
  borderRadius: "4px",
546
546
  p: "16px 32px"
547
547
  },
@@ -549,27 +549,27 @@ const Ve = ({
549
549
  children: n
550
550
  }
551
551
  ),
552
- /* @__PURE__ */ e(v, { truncate: !1, variant: "body2", children: r.mobile_devices_access_info_2 })
552
+ /* @__PURE__ */ e(v, { truncate: !1, variant: "body2", children: a.mobile_devices_access_info_2 })
553
553
  ] }),
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 })
554
+ t === y.Edit && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(I, { onChange: (m) => w(m.target.value), value: h }) }),
555
+ t === y.Delete && /* @__PURE__ */ e(N, { children: a.mobile_devices_delete_info })
556
556
  ]
557
557
  }
558
558
  );
559
- }, ze = C($e), Ge = C(() => {
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
- p.useEffect(() => {
559
+ }, $e = C(ze), Ge = C(() => {
560
+ const { isMobile: t } = H(), { settings: r } = D(), { isCopyLoaded: o, isInitialized: i } = ee(), { setAlert: n, devices: p, loadDevices: s, generateDeviceToken: a } = A(), [l, b] = u.useState({ open: !1, type: "" }), [g, d] = u.useState(), [h, w] = u.useState("");
561
+ u.useEffect(() => {
562
562
  i && s();
563
563
  }, [i]);
564
564
  const x = async () => {
565
- const u = await r();
566
- u ? (w(u), _({ open: !0, type: y.Token })) : n(a.mobile_devices_access_error, "error");
567
- }, k = (u) => {
568
- m(u), _({ open: !0, type: y.Edit });
569
- }, S = (u) => {
570
- m(u), _({ open: !0, type: y.Delete });
565
+ const m = await a();
566
+ m ? (w(m), b({ open: !0, type: y.Token })) : n(r.mobile_devices_access_error, "error");
567
+ }, S = (m) => {
568
+ d(m), b({ open: !0, type: y.Edit });
569
+ }, k = (m) => {
570
+ d(m), b({ open: !0, type: y.Delete });
571
571
  }, T = () => {
572
- _({ open: !1, type: "" }), m(void 0);
572
+ b({ open: !1, type: "" }), d(void 0);
573
573
  };
574
574
  return !o || !i ? /* @__PURE__ */ e(ie, {}) : /* @__PURE__ */ c(
575
575
  f,
@@ -581,31 +581,31 @@ const Ve = ({
581
581
  },
582
582
  children: [
583
583
  /* @__PURE__ */ c(f, { gap: 4, children: [
584
- /* @__PURE__ */ e(K, { children: a.mobile_devices_title }),
585
- /* @__PURE__ */ e(M, { variant: "body1", children: a.mobile_devices_info })
584
+ /* @__PURE__ */ e(K, { children: r.mobile_devices_title }),
585
+ /* @__PURE__ */ e(N, { variant: "body1", children: r.mobile_devices_info })
586
586
  ] }),
587
587
  t ? /* @__PURE__ */ e(
588
588
  We,
589
589
  {
590
- devices: d,
591
- onClickDeviceDelete: S,
592
- onClickDeviceEdit: k
590
+ devices: p,
591
+ onClickDeviceDelete: k,
592
+ onClickDeviceEdit: S
593
593
  }
594
594
  ) : /* @__PURE__ */ e(
595
595
  Ve,
596
596
  {
597
- devices: d,
598
- onClickDeviceDelete: S,
599
- onClickDeviceEdit: k
597
+ devices: p,
598
+ onClickDeviceDelete: k,
599
+ onClickDeviceEdit: S
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: "body1", children: a.mobile_devices_access_title }),
604
- /* @__PURE__ */ e(M, { align: "center", variant: "body2", children: a.mobile_devices_access_description }),
605
- /* @__PURE__ */ e(Z, { onClick: x, variant: "text", children: a.mobile_devices_access_cta })
603
+ /* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: r.mobile_devices_access_title }),
604
+ /* @__PURE__ */ e(N, { align: "center", variant: "body2", children: r.mobile_devices_access_description }),
605
+ /* @__PURE__ */ e(Z, { onClick: x, variant: "text", children: r.mobile_devices_access_cta })
606
606
  ] }),
607
607
  /* @__PURE__ */ e(
608
- ze,
608
+ $e,
609
609
  {
610
610
  device: g,
611
611
  deviceToken: h,
@@ -618,26 +618,26 @@ const Ve = ({
618
618
  }
619
619
  );
620
620
  }), je = Ge, q = C(
621
- ({ onClick: t, primaryText: a, secondaryText: o, sx: i }) => {
622
- const n = R();
621
+ ({ onClick: t, primaryText: r, secondaryText: o, sx: i }) => {
622
+ const n = O();
623
623
  return /* @__PURE__ */ e(Ne, { sx: { bgcolor: n.palette.background.paper }, children: /* @__PURE__ */ c(Me, { alignItems: "flex-start", onClick: t, sx: i, children: [
624
- /* @__PURE__ */ e(Be, { primary: a, secondary: o }),
624
+ /* @__PURE__ */ e(Be, { primary: r, secondary: o }),
625
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), s = () => {
630
- d(!1);
631
- }, r = () => {
632
- d(!0);
633
- }, l = (g) => a.find((m) => m.guid === g)?.name, _ = async (g) => {
629
+ const { settings: t } = D(), { categories: r } = $(), { selectedRule: o, updateRuleCategory: i } = A(), [n, p] = u.useState(!1), s = () => {
630
+ p(!1);
631
+ }, a = () => {
632
+ p(!0);
633
+ }, l = (g) => r.find((d) => d.guid === g)?.name, b = async (g) => {
634
634
  o && o.category_guid !== g && (o.category_guid = g, await i(o)), s();
635
635
  };
636
- return /* @__PURE__ */ c(p.Fragment, { children: [
636
+ return /* @__PURE__ */ c(u.Fragment, { children: [
637
637
  /* @__PURE__ */ e(
638
638
  q,
639
639
  {
640
- onClick: r,
640
+ onClick: a,
641
641
  primaryText: o?.category_guid ? l(o.category_guid) : "",
642
642
  secondaryText: t.category
643
643
  }
@@ -647,34 +647,34 @@ const Ve = ({
647
647
  {
648
648
  initialSelected: o?.category_guid ? o.category_guid : void 0,
649
649
  onClose: s,
650
- onSelect: _,
650
+ onSelect: b,
651
651
  showDrawer: n,
652
652
  title: t.select_category
653
653
  }
654
654
  )
655
655
  ] });
656
656
  }), Ke = C(() => {
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 = () => {
657
+ const { common: t, settings: r } = D(), { selectedRule: o, updateRulePayee: i } = A(), n = O(), [p, s] = u.useState(!1), a = o?.description ? o.description : o?.match_description, [l, b] = u.useState(a || ""), g = () => {
658
658
  s(!0);
659
- }, m = async () => {
660
- l !== r && o && (o.description = l, await i(o), s(!1));
659
+ }, d = async () => {
660
+ l !== a && o && (o.description = l, await i(o), s(!1));
661
661
  };
662
- return /* @__PURE__ */ c(p.Fragment, { children: [
662
+ return /* @__PURE__ */ c(u.Fragment, { children: [
663
663
  /* @__PURE__ */ e(
664
664
  q,
665
665
  {
666
666
  onClick: g,
667
- primaryText: r,
668
- secondaryText: a.payee
667
+ primaryText: a,
668
+ secondaryText: r.payee
669
669
  }
670
670
  ),
671
671
  /* @__PURE__ */ e(
672
672
  G,
673
673
  {
674
- copy: { title: a.edit_payee },
675
- isOpen: d,
674
+ copy: { title: r.edit_payee },
675
+ isOpen: p,
676
676
  onClose: () => s(!1),
677
- onPrimaryAction: m,
677
+ onPrimaryAction: d,
678
678
  onSecondaryAction: () => s(!1),
679
679
  primaryText: t.save_button,
680
680
  secondaryText: t.cancel_button,
@@ -685,7 +685,7 @@ const Ve = ({
685
685
  children: /* @__PURE__ */ e(
686
686
  I,
687
687
  {
688
- onChange: (h) => _(h.target.value),
688
+ onChange: (h) => b(h.target.value),
689
689
  sx: { width: 352 },
690
690
  value: l
691
691
  }
@@ -693,47 +693,38 @@ const Ve = ({
693
693
  }
694
694
  )
695
695
  ] });
696
- }), Ye = C(({ onClose: t, onDelete: a, isOpen: o }) => {
697
- const { common: i, settings: n } = D(), d = R();
696
+ }), Ye = C(({ onClose: t, onDelete: r, isOpen: o }) => {
697
+ const { common: i, settings: n } = D();
698
698
  return /* @__PURE__ */ e(
699
699
  G,
700
700
  {
701
701
  copy: { title: n.delete_rule },
702
702
  isOpen: o,
703
703
  onClose: t,
704
- onPrimaryAction: a,
704
+ onPrimaryAction: r,
705
705
  onSecondaryAction: t,
706
706
  primaryColor: "error",
707
707
  primaryText: i.delete_button,
708
+ secondaryColor: "secondary",
708
709
  secondaryText: i.cancel_button,
709
- sx: {
710
- "& .MuiButton-outlined": {
711
- borderColor: d.palette.border.main,
712
- color: d.palette.secondary.main
713
- },
714
- "& .MuiDialogContent-root": { pt: 0, width: 400 },
715
- path: { fill: d.palette.secondary.darker }
716
- },
710
+ sx: { "& .MuiDialogContent-root": { pt: 0, width: 400 } },
717
711
  children: /* @__PURE__ */ e(v, { truncate: !1, variant: "body2", children: n.delete_rule_confirm })
718
712
  }
719
713
  );
720
714
  }), qe = C(
721
- ({ isOpen: t, onClose: a, onDelete: o }) => {
722
- const { common: i, settings: n } = D(), d = R(), [s, r] = p.useState(!1);
715
+ ({ isOpen: t, onClose: r, onDelete: o }) => {
716
+ const { common: i, settings: n } = D(), [p, s] = u.useState(!1);
723
717
  return /* @__PURE__ */ c(
724
718
  He,
725
719
  {
726
720
  hasSecondaryAction: !1,
727
721
  isOpen: t,
728
- onClose: a,
722
+ onClose: r,
729
723
  onPrimaryAction: () => {
730
- r(!0);
724
+ s(!0);
731
725
  },
732
726
  primaryColor: "error",
733
727
  primaryText: i.delete_button,
734
- sx: {
735
- "& .MuiToolbar-root": { borderTop: `1px solid ${d.palette.border.light}` }
736
- },
737
728
  title: n.edit_rule,
738
729
  children: [
739
730
  /* @__PURE__ */ e(Ee, { children: /* @__PURE__ */ e(v, { bold: !0, variant: "caption", children: n.details }) }),
@@ -744,8 +735,8 @@ const Ve = ({
744
735
  /* @__PURE__ */ e(
745
736
  Ye,
746
737
  {
747
- isOpen: s,
748
- onClose: () => r(!1),
738
+ isOpen: p,
739
+ onClose: () => s(!1),
749
740
  onDelete: o
750
741
  }
751
742
  )
@@ -754,126 +745,126 @@ const Ve = ({
754
745
  );
755
746
  }
756
747
  ), 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), _ = () => {
748
+ const { categories: r } = $(), { setSelectedGuid: o } = Pe(), { deleteTransactionRule: i, setSelectedRule: n } = A(), { isDesktop: p, isTablet: s } = H(), [a, l] = u.useState(!1), b = () => {
758
749
  l(!1), o(null), n(void 0);
759
750
  }, g = async () => {
760
- await i(), _();
761
- }, m = () => {
751
+ await i(), b();
752
+ }, d = () => {
762
753
  l(!0), n(t);
763
- }, h = (w) => a.find((x) => x.guid === w)?.name;
764
- return /* @__PURE__ */ c(p.Fragment, { children: [
754
+ }, h = (w) => r.find((x) => x.guid === w)?.name;
755
+ return /* @__PURE__ */ c(u.Fragment, { children: [
765
756
  /* @__PURE__ */ e(
766
757
  q,
767
758
  {
768
- onClick: m,
759
+ onClick: d,
769
760
  primaryText: t.description ? t.description : t.match_description,
770
761
  secondaryText: t.category_guid ? h(t.category_guid) : ""
771
762
  }
772
763
  ),
773
- /* @__PURE__ */ e(J, { sx: { ml: s || d ? 0 : 24 } }),
774
- /* @__PURE__ */ e(qe, { isOpen: r, onClose: _, onDelete: g })
764
+ /* @__PURE__ */ e(J, { sx: { ml: s || p ? 0 : 24 } }),
765
+ /* @__PURE__ */ e(qe, { isOpen: a, onClose: b, onDelete: g })
775
766
  ] });
776
767
  }), Xe = C(() => {
777
- const { settings: t } = D(), { loadTransactionRules: a, transactionRules: o } = A(), [i, n] = p.useState(!1);
768
+ const { settings: t } = D(), { loadTransactionRules: r, transactionRules: o } = A(), [i, n] = u.useState(!1);
778
769
  return ne({
779
770
  widgetName: "TransactionRulesTab",
780
771
  isLoaded: i
781
- }), p.useEffect(() => {
782
- a().finally(() => n(!0));
772
+ }), u.useEffect(() => {
773
+ r().finally(() => n(!0));
783
774
  }, []), /* @__PURE__ */ c(f, { sx: { gap: 24, py: 24 }, children: [
784
775
  /* @__PURE__ */ c(f, { sx: { px: 24 }, children: [
785
776
  /* @__PURE__ */ e(K, { children: t.transaction_rules_label }),
786
- /* @__PURE__ */ e(M, { variant: "body1", children: t.transaction_rules_description })
777
+ /* @__PURE__ */ e(N, { variant: "body1", children: t.transaction_rules_description })
787
778
  ] }),
788
- /* @__PURE__ */ e(Ae, { children: o.map((d, s) => /* @__PURE__ */ e(Qe, { rule: d }, s)) })
779
+ /* @__PURE__ */ e(Ae, { children: o.map((p, s) => /* @__PURE__ */ e(Qe, { rule: p }, s)) })
789
780
  ] });
790
781
  }), re = Xe, Ze = C(({ selectedTab: t }) => {
791
- const { alert: a, setAlert: o } = A(), {
782
+ const { alert: r, setAlert: o } = A(), {
792
783
  config: { display_user_profile_in_settings: i }
793
- } = $();
784
+ } = z();
794
785
  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, {}) }),
786
+ t === P.Profile && /* @__PURE__ */ e(Ue, {}),
787
+ t === P.Devices && /* @__PURE__ */ e(je, {}),
788
+ t === P.Notifications && /* @__PURE__ */ e(j, { showPersonalDetails: !i }),
789
+ t === P.TransactionRules && /* @__PURE__ */ e(re, {}),
790
+ t === P.Help && /* @__PURE__ */ e(f, { sx: { px: 24 }, children: /* @__PURE__ */ e(Oe, {}) }),
800
791
  /* @__PURE__ */ e(
801
792
  fe,
802
793
  {
803
794
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
804
795
  autoHideDuration: 3500,
805
796
  onClose: () => o(""),
806
- open: !!a.message,
797
+ open: !!r.message,
807
798
  children: /* @__PURE__ */ e(
808
799
  he,
809
800
  {
810
801
  onClose: () => {
811
802
  o("");
812
803
  },
813
- severity: a.severity,
804
+ severity: r.severity,
814
805
  variant: "filled",
815
- children: a.message
806
+ children: r.message
816
807
  }
817
808
  )
818
809
  }
819
810
  )
820
811
  ] });
821
812
  });
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
- const zt = C(({ onBackClick: t, sx: a }) => {
824
- const { settings: o } = D(), { isCopyLoaded: i, isInitialized: n } = ee(), { config: d } = $(), { isMobile: s } = O(), { categoriesLoaded: r, loadCategories: l } = z();
813
+ var P = /* @__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))(P || {});
814
+ const $t = C(({ onBackClick: t, sx: r }) => {
815
+ const { settings: o } = D(), { isCopyLoaded: i, isInitialized: n } = ee(), { config: p } = z(), { isMobile: s } = H(), { categoriesLoaded: a, loadCategories: l } = $();
825
816
  ne({
826
817
  widgetName: "SettingsWidget",
827
818
  isLoaded: n && i
828
- }), p.useEffect(() => {
829
- r || l().finally();
819
+ }), u.useEffect(() => {
820
+ a || l().finally();
830
821
  }, []);
831
822
  const {
832
- display_user_profile_in_settings: _,
823
+ display_user_profile_in_settings: b,
833
824
  display_mobile_devices_in_settings: g,
834
- display_notification_settings_in_settings: m,
825
+ display_notification_settings_in_settings: d,
835
826
  display_user_transaction_rules_in_settings: h,
836
827
  show_help_widget_in_master: w
837
- } = d, x = [
838
- { enabled: _, index: 0, label: o?.profile_label },
828
+ } = p, x = [
829
+ { enabled: b, index: 0, label: o?.profile_label },
839
830
  { enabled: g, index: 1, label: o?.mobile_devices_label },
840
- { enabled: m, index: 2, label: o?.notifications_label },
831
+ { enabled: d, index: 2, label: o?.notifications_label },
841
832
  { enabled: h, index: 3, label: o?.transaction_rules_label },
842
833
  { enabled: w, index: 4, label: o?.help_label }
843
- ], k = x.find((u) => u.enabled), [S, T] = p.useState(k ? k.index : -1);
834
+ ], S = x.find((m) => m.enabled), [k, T] = u.useState(S ? S.index : -1);
844
835
  return !i || !n ? /* @__PURE__ */ e(ie, {}) : /* @__PURE__ */ e(
845
836
  Y,
846
837
  {
847
838
  onBackClick: t,
848
839
  showAccountFilter: !1,
849
- sx: { height: "calc(100dvh - 24px)", overflow: "auto", ...a },
840
+ sx: { height: "calc(100dvh - 24px)", overflow: "auto", ...r },
850
841
  title: o.title,
851
842
  children: /* @__PURE__ */ c(f, { mx: s ? 0 : 48, my: 24, children: [
852
843
  /* @__PURE__ */ e(
853
844
  pe,
854
845
  {
855
- onChange: (u, L) => T(L),
846
+ onChange: (m, M) => T(M),
856
847
  sx: { bgcolor: "background.paper" },
857
848
  textColor: "primary",
858
- value: S,
849
+ value: k,
859
850
  variant: "scrollable",
860
851
  children: x.map(
861
- (u) => u.enabled && /* @__PURE__ */ e(ue, { label: u.label, value: u.index }, u.index)
852
+ (m) => m.enabled && /* @__PURE__ */ e(ue, { label: m.label, value: m.index }, m.index)
862
853
  )
863
854
  }
864
855
  ),
865
- /* @__PURE__ */ e(Ze, { selectedTab: S })
856
+ /* @__PURE__ */ e(Ze, { selectedTab: k })
866
857
  ] })
867
858
  }
868
859
  );
869
860
  }), Gt = C((t) => {
870
- const { clientConfig: a } = $(), o = a?.master?.deep_link_params?.view;
861
+ const { clientConfig: r } = z(), o = r?.master?.deep_link_params?.view;
871
862
  return o ? /* @__PURE__ */ e(j, { view: o }) : /* @__PURE__ */ e(Y, { ...t, showAccountFilter: !1, children: /* @__PURE__ */ e(f, { my: 24, children: /* @__PURE__ */ e(j, {}) }) });
872
863
  }), jt = (t) => {
873
- const { isMobile: a } = O(), { categoriesLoaded: o, loadCategories: i } = z();
874
- return p.useEffect(() => {
864
+ const { isMobile: r } = H(), { categoriesLoaded: o, loadCategories: i } = $();
865
+ return u.useEffect(() => {
875
866
  o || i().finally();
876
- }), /* @__PURE__ */ e(Y, { ...t, showAccountFilter: !1, children: /* @__PURE__ */ e(f, { sx: { mx: a ? 0 : 48, my: 24 }, children: /* @__PURE__ */ e(re, {}) }) });
867
+ }), /* @__PURE__ */ e(Y, { ...t, showAccountFilter: !1, children: /* @__PURE__ */ e(f, { sx: { mx: r ? 0 : 48, my: 24 }, children: /* @__PURE__ */ e(re, {}) }) });
877
868
  };
878
869
  export {
879
870
  Xt as AccountNotificationProfiles,
@@ -885,8 +876,8 @@ export {
885
876
  Ue as ProfileTab,
886
877
  Yt as SettingsApi,
887
878
  qt as SettingsStore,
888
- N as SettingsTabs,
889
- zt as SettingsWidget,
879
+ P as SettingsTabs,
880
+ $t as SettingsWidget,
890
881
  Ze as SettingsWidgetContents,
891
882
  re as TransactionRulesTab,
892
883
  jt as TransactionRulesWidget