@mx-cartographer/experiences 8.0.19 → 8.0.21

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.
Files changed (55) hide show
  1. package/CHANGELOG.md +12 -4
  2. package/dist/{AccountStore-DpYvNnql.mjs → AccountStore-B7zfcad7.mjs} +1 -1
  3. package/dist/{BudgetUtil-CLhRnCoX.mjs → BudgetUtil-DZpOoZQa.mjs} +1 -1
  4. package/dist/{EmbeddedCard-xngm4vLT.mjs → EmbeddedCard-D0Pgpiuq.mjs} +89 -81
  5. package/dist/{GlobalAccountFilter-B73Pw1hJ.mjs → GlobalAccountFilter-CmnaZDS6.mjs} +27 -27
  6. package/dist/{Help-DBAosGjO.mjs → Help-BkmSY96v.mjs} +1 -1
  7. package/dist/{ManageIncome-CvfRTf-j.mjs → ManageIncome-DfKQ48km.mjs} +2 -2
  8. package/dist/{NotificationSettings-D7VqsrZy.mjs → NotificationSettings-DBT37CVB.mjs} +1 -1
  9. package/dist/{RecurringSettings-DJIUgK5A.mjs → RecurringSettings-CpFfjTIL.mjs} +1 -1
  10. package/dist/{SpendingLegend-BCnXkPCD.mjs → SpendingLegend-CypdabwS.mjs} +1 -1
  11. package/dist/{TransactionDetails-KklNHa-s.mjs → TransactionDetails-D57Cfnwh.mjs} +2 -2
  12. package/dist/WidgetContainer-DYKMArWw.mjs +468 -0
  13. package/dist/accounts/index.es.js +96 -94
  14. package/dist/budgets/index.es.js +448 -444
  15. package/dist/cashflow/index.es.js +234 -232
  16. package/dist/common/components/GlobalAccountFilter.d.ts +2 -1
  17. package/dist/common/components/WidgetContainer.d.ts +2 -1
  18. package/dist/common/components/WidgetDateRangeSelector.d.ts +12 -0
  19. package/dist/common/hooks/index.d.ts +1 -0
  20. package/dist/common/hooks/useWidgetHeaderStyles.d.ts +32 -0
  21. package/dist/common/index.es.js +133 -132
  22. package/dist/common/utils/PostMessage.d.ts +1 -0
  23. package/dist/core/types/Widgets.d.ts +1 -0
  24. package/dist/dashboard/index.es.js +3 -3
  25. package/dist/debts/components/actions/DebtsPriorityAction.d.ts +2 -1
  26. package/dist/debts/components/debtspriority/DebtsPriorityButton.d.ts +2 -1
  27. package/dist/debts/index.es.js +589 -587
  28. package/dist/finstrong/FinstrongWidget.d.ts +1 -1
  29. package/dist/finstrong/index.es.js +738 -746
  30. package/dist/goals/GoalsWidget.d.ts +1 -1
  31. package/dist/goals/index.es.js +439 -438
  32. package/dist/help/HelpWidget.d.ts +1 -1
  33. package/dist/help/index.es.js +21 -12
  34. package/dist/insights/components/index.d.ts +1 -0
  35. package/dist/insights/components/shared/InsightsCard/ClientConfigurableCta.d.ts +5 -0
  36. package/dist/insights/components/shared/InsightsCard/ContentAndDescription.d.ts +0 -2
  37. package/dist/insights/components/shared/InsightsCard/ContentAndDescriptionMUI.d.ts +0 -2
  38. package/dist/insights/components/shared/InsightsCard/Description.d.ts +0 -2
  39. package/dist/insights/components/shared/InsightsCard/DescriptionMUI.d.ts +0 -2
  40. package/dist/insights/index.es.js +562 -579
  41. package/dist/insights/types/CommonBeat.d.ts +0 -1
  42. package/dist/investments/InvestmentsWidget.d.ts +1 -1
  43. package/dist/investments/index.es.js +418 -417
  44. package/dist/networth/index.es.js +265 -278
  45. package/dist/notifications/index.es.js +1 -1
  46. package/dist/recurringtransactions/RecurringTransactionsWidget.d.ts +1 -1
  47. package/dist/recurringtransactions/index.es.js +235 -232
  48. package/dist/settings/SettingsWidget.d.ts +1 -1
  49. package/dist/settings/index.es.js +283 -282
  50. package/dist/spending/index.es.js +110 -109
  51. package/dist/transactions/index.es.js +280 -277
  52. package/dist/trends/index.es.js +623 -616
  53. package/dist/{useScreenSize-B6JyS_Lj.mjs → useScreenSize-CUcpY7aJ.mjs} +1 -1
  54. package/package.json +2 -2
  55. package/dist/WidgetContainer-D-pbSa7L.mjs +0 -441
@@ -1,8 +1,8 @@
1
1
  import { S as Yt, a as qt } from "../SettingsStore-BoIoiRLj.mjs";
2
2
  import { jsxs as c, Fragment as X, jsx as e } from "react/jsx-runtime";
3
- import u from "react";
3
+ import m from "react";
4
4
  import { observer as C } from "mobx-react-lite";
5
- import f from "@mui/material/Stack";
5
+ import h 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";
@@ -11,29 +11,29 @@ import { getUnixTime as _e } from "date-fns/getUnixTime";
11
11
  import { AdapterDateFns as ge } from "@mui/x-date-pickers/AdapterDateFnsV3";
12
12
  import { DatePicker as be } from "@mui/x-date-pickers";
13
13
  import { LocalizationProvider as ye } from "@mui/x-date-pickers/LocalizationProvider";
14
- import { useTheme as xe, alpha as U } from "@mui/material/styles";
15
- import V from "@mui/material/Box";
14
+ import { useTheme as xe, alpha as V } from "@mui/material/styles";
15
+ import W from "@mui/material/Box";
16
16
  import Z from "@mui/material/Button";
17
- import I from "@mui/material/TextField";
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-D7VqsrZy.mjs";
20
- import { A as Xt, B as Zt, I as eo } from "../NotificationSettings-D7VqsrZy.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
- import { D as G } from "../Dialog-Ck34yr-d.mjs";
17
+ import A from "@mui/material/TextField";
18
+ import { H3 as Y, P as M, Text as x, Icon as L, ChevronRightIcon as ve } from "@mxenabled/mxui";
19
+ import { V as Ce, a as De, N as J } from "../NotificationSettings-DBT37CVB.mjs";
20
+ import { A as Xt, B as Zt, I as eo } from "../NotificationSettings-DBT37CVB.mjs";
21
+ import { u as w, a as $, r as E, o as we, b as ee, l as G } from "../hooks-BxkfR-Ff.mjs";
22
+ import { u as H } from "../useScreenSize-CUcpY7aJ.mjs";
23
+ import { D as j } from "../Dialog-Ck34yr-d.mjs";
24
24
  import { formatDistanceToNow as te } from "date-fns/formatDistanceToNow";
25
25
  import { fromUnixTime as oe } from "date-fns/fromUnixTime";
26
26
  import O from "@mui/material/styles/useTheme";
27
- import W from "@mui/material/IconButton";
27
+ import z from "@mui/material/IconButton";
28
28
  import { DataGridPro as Se } from "@mui/x-data-grid-pro";
29
- import { H as F } from "../HeaderCell-P8w6CmfO.mjs";
29
+ import { H as U } from "../HeaderCell-P8w6CmfO.mjs";
30
30
  import { b as B } from "../Localization-CPkpIwIx.mjs";
31
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";
35
35
  import Ae from "@mui/material/List";
36
- import J from "@mui/material/Divider";
36
+ import K from "@mui/material/Divider";
37
37
  import Ee from "@mui/material/ListSubheader";
38
38
  import { a as Re, u as Pe } from "../CategorySelectorDrawer-Dc9Widy9.mjs";
39
39
  import Ne from "@mui/material/ListItem";
@@ -42,10 +42,10 @@ 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-DBAosGjO.mjs";
46
- import { W as Y } from "../WidgetContainer-D-pbSa7L.mjs";
45
+ import { H as Oe } from "../Help-BkmSY96v.mjs";
46
+ import { W as q } from "../WidgetContainer-DYKMArWw.mjs";
47
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({
48
+ const i = xe(), { common: o, settings: n } = w(), { isDesktop: u, isMobile: s, isSmallMobile: a, isTablet: l } = H(t), { config: b } = $(), { updateUser: _ } = E(), { user: d } = we(), [p, S] = m.useState({
49
49
  first_name: d.first_name,
50
50
  last_name: d.last_name,
51
51
  email: d.email,
@@ -53,120 +53,120 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
53
53
  birthday: d.birthday,
54
54
  postal_code: d.postal_code,
55
55
  credit_score: d.credit_score
56
- }), [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(() => {
56
+ }), [v, k] = m.useState(!1), [I, T] = m.useState(!1), g = m.useRef(null), D = p.email && !d.email_is_verified && !v, F = p.phone && !d.phone_is_verified && !v;
57
+ m.useEffect(() => {
58
58
  if (r) {
59
- const _ = (R) => {
60
- m.current && !m.current.contains(R.target) && x && T(!0);
59
+ const f = (P) => {
60
+ g.current && !g.current.contains(P.target) && v && T(!0);
61
61
  };
62
- return document.addEventListener("mousedown", _), () => {
63
- document.removeEventListener("mousedown", _);
62
+ return document.addEventListener("mousedown", f), () => {
63
+ document.removeEventListener("mousedown", f);
64
64
  };
65
65
  }
66
- }, [x]);
66
+ }, [v]);
67
67
  const ae = () => {
68
- if (h.birthday) {
69
- const _ = new Date(h.birthday * 1e3), R = _.getUTCFullYear(), de = _.getUTCMonth(), me = _.getUTCDate();
70
- return new Date(R, de, me);
68
+ if (p.birthday) {
69
+ const f = new Date(p.birthday * 1e3), P = f.getUTCFullYear(), de = f.getUTCMonth(), me = f.getUTCDate();
70
+ return new Date(P, de, me);
71
71
  }
72
72
  }, se = async () => {
73
- await g({ ...d, ...h }), S(!1);
73
+ await _({ ...d, ...p }), k(!1);
74
74
  }, le = () => {
75
75
  T(!1), r && r();
76
76
  }, ce = () => {
77
77
  T(!1);
78
- }, E = (_) => {
79
- const R = {
80
- ...h,
81
- ..._
78
+ }, R = (f) => {
79
+ const P = {
80
+ ...p,
81
+ ...f
82
82
  };
83
- w(R), S(JSON.stringify({ ...d, ...R }) !== JSON.stringify(d));
83
+ S(P), k(JSON.stringify({ ...d, ...P }) !== JSON.stringify(d));
84
84
  };
85
85
  return /* @__PURE__ */ c(X, { children: [
86
86
  /* @__PURE__ */ c(
87
- V,
87
+ W,
88
88
  {
89
89
  component: "form",
90
- ref: m,
90
+ ref: g,
91
91
  sx: {
92
92
  backgroundColor: "background.paper",
93
93
  p: 24,
94
- width: a ? 320 : l ? 680 : p ? 990 : 400,
94
+ width: a ? 320 : l ? 680 : u ? 990 : 400,
95
95
  "& .MuiTextField-root": {
96
- width: a ? 272 : l ? 328 : p ? 483 : 352
96
+ width: a ? 272 : l ? 328 : u ? 483 : 352
97
97
  }
98
98
  },
99
99
  children: [
100
- /* @__PURE__ */ e(K, { children: n.personal_details }),
101
- /* @__PURE__ */ e(N, { variant: "body1", children: n.update_information }),
100
+ /* @__PURE__ */ e(Y, { children: n.personal_details }),
101
+ /* @__PURE__ */ e(M, { variant: "body1", children: n.update_information }),
102
102
  /* @__PURE__ */ c(
103
- f,
103
+ h,
104
104
  {
105
105
  direction: s ? "column" : "row",
106
106
  spacing: s ? 44 : 24,
107
107
  sx: { mb: 44, pt: 32 },
108
108
  children: [
109
109
  /* @__PURE__ */ e(
110
- I,
110
+ A,
111
111
  {
112
- defaultValue: h.first_name,
112
+ defaultValue: p.first_name,
113
113
  label: n.first_name,
114
- onChange: (_) => E({ first_name: _.target.value })
114
+ onChange: (f) => R({ first_name: f.target.value })
115
115
  }
116
116
  ),
117
117
  /* @__PURE__ */ e(
118
- I,
118
+ A,
119
119
  {
120
- defaultValue: h.last_name,
120
+ defaultValue: p.last_name,
121
121
  label: n.last_name,
122
- onChange: (_) => E({ last_name: _.target.value })
122
+ onChange: (f) => R({ last_name: f.target.value })
123
123
  }
124
124
  )
125
125
  ]
126
126
  }
127
127
  ),
128
- /* @__PURE__ */ c(f, { direction: s ? "column" : "row", children: [
129
- b.display_email_edit_field_in_settings && /* @__PURE__ */ c(f, { sx: { mb: M ? 20 : 44, mr: s ? 0 : 24 }, children: [
128
+ /* @__PURE__ */ c(h, { direction: s ? "column" : "row", children: [
129
+ b.display_email_edit_field_in_settings && /* @__PURE__ */ c(h, { sx: { mb: D ? 20 : 44, mr: s ? 0 : 24 }, children: [
130
130
  /* @__PURE__ */ e(
131
- I,
131
+ A,
132
132
  {
133
- defaultValue: h.email,
133
+ defaultValue: p.email,
134
134
  label: n.email_address,
135
- onChange: (_) => E({ email: _.target.value })
135
+ onChange: (f) => R({ email: f.target.value })
136
136
  }
137
137
  ),
138
- M && /* @__PURE__ */ e(Ce, {})
138
+ D && /* @__PURE__ */ e(Ce, {})
139
139
  ] }),
140
- b.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(h, { sx: { mb: F ? 20 : 44 }, children: [
141
141
  /* @__PURE__ */ e(
142
- I,
142
+ A,
143
143
  {
144
- defaultValue: h.phone,
144
+ defaultValue: p.phone,
145
145
  label: n.mobile_number,
146
- onChange: (_) => E({ phone: _.target.value }),
146
+ onChange: (f) => R({ phone: f.target.value }),
147
147
  type: "tel"
148
148
  }
149
149
  ),
150
- Q && /* @__PURE__ */ e(De, {})
150
+ F && /* @__PURE__ */ e(De, {})
151
151
  ] })
152
152
  ] }),
153
- /* @__PURE__ */ c(f, { direction: s ? "column" : "row", spacing: s ? 44 : 24, sx: { mb: 44 }, children: [
153
+ /* @__PURE__ */ c(h, { direction: s ? "column" : "row", spacing: s ? 44 : 24, sx: { mb: 44 }, children: [
154
154
  /* @__PURE__ */ e(ye, { dateAdapter: ge, children: /* @__PURE__ */ e(
155
155
  be,
156
156
  {
157
157
  label: n.birthdate,
158
- onChange: (_) => E({ birthday: _e(_) }),
158
+ onChange: (f) => R({ birthday: _e(f) }),
159
159
  slotProps: {
160
160
  nextIconButton: {
161
161
  sx: {
162
162
  color: "primary.main",
163
- "&:hover": { backgroundColor: U(o.palette.primary.light, 0.1) }
163
+ "&:hover": { backgroundColor: V(i.palette.primary.light, 0.1) }
164
164
  }
165
165
  },
166
166
  previousIconButton: {
167
167
  sx: {
168
168
  color: "primary.main",
169
- "&:hover": { backgroundColor: U(o.palette.primary.light, 0.1) }
169
+ "&:hover": { backgroundColor: V(i.palette.primary.light, 0.1) }
170
170
  }
171
171
  }
172
172
  },
@@ -174,39 +174,39 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
174
174
  width: "100%",
175
175
  "& .MuiIconButton-edgeEnd": {
176
176
  color: "primary.main",
177
- "&:hover": { backgroundColor: U(o.palette.primary.light, 0.1) }
177
+ "&:hover": { backgroundColor: V(i.palette.primary.light, 0.1) }
178
178
  }
179
179
  },
180
180
  value: ae()
181
181
  }
182
182
  ) }),
183
183
  /* @__PURE__ */ e(
184
- I,
184
+ A,
185
185
  {
186
- defaultValue: h.postal_code,
186
+ defaultValue: p.postal_code,
187
187
  label: n.zip_code,
188
- onChange: (_) => E({ postal_code: _.target.value })
188
+ onChange: (f) => R({ postal_code: f.target.value })
189
189
  }
190
190
  )
191
191
  ] }),
192
- /* @__PURE__ */ c(f, { children: [
192
+ /* @__PURE__ */ c(h, { children: [
193
193
  /* @__PURE__ */ e(
194
- I,
194
+ A,
195
195
  {
196
- defaultValue: h.credit_score,
196
+ defaultValue: p.credit_score,
197
197
  label: n.credit_score,
198
- onChange: (_) => E({ credit_score: Number(_.target.value) }),
198
+ onChange: (f) => R({ credit_score: Number(f.target.value) }),
199
199
  sx: { mb: 44 }
200
200
  }
201
201
  ),
202
202
  /* @__PURE__ */ e(
203
203
  Z,
204
204
  {
205
- disabled: !x,
205
+ disabled: !v,
206
206
  onClick: se,
207
207
  sx: { width: a ? 272 : 124 },
208
208
  variant: "contained",
209
- children: i.save_button
209
+ children: o.save_button
210
210
  }
211
211
  )
212
212
  ] })
@@ -214,10 +214,10 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
214
214
  }
215
215
  ),
216
216
  /* @__PURE__ */ e(
217
- G,
217
+ j,
218
218
  {
219
219
  copy: { title: n.discard_changes },
220
- isOpen: k,
220
+ isOpen: I,
221
221
  onClose: ce,
222
222
  onSecondaryAction: le,
223
223
  primaryText: n.keep_editing,
@@ -231,17 +231,17 @@ var y = /* @__PURE__ */ ((t) => (t.Delete = "delete", t.Edit = "edit", t.Token =
231
231
  const Ve = ({
232
232
  devices: t,
233
233
  onClickDeviceEdit: r,
234
- onClickDeviceDelete: o
234
+ onClickDeviceDelete: i
235
235
  }) => {
236
- const i = O(), { settings: n } = D(), p = [
236
+ const o = O(), { settings: n } = w(), u = [
237
237
  {
238
238
  field: "name",
239
239
  headerName: n.mobile_devices_column_name,
240
- renderHeader: F,
241
- renderCell: (a) => /* @__PURE__ */ c(f, { alignItems: "center", direction: "row", gap: 4, children: [
242
- /* @__PURE__ */ e(v, { variant: "body2", children: a.value }),
240
+ renderHeader: U,
241
+ renderCell: (a) => /* @__PURE__ */ c(h, { alignItems: "center", direction: "row", gap: 4, children: [
242
+ /* @__PURE__ */ e(x, { variant: "body2", children: a.value }),
243
243
  /* @__PURE__ */ e(
244
- W,
244
+ z,
245
245
  {
246
246
  "aria-label": n.mobile_devices_edit_label,
247
247
  color: "secondary",
@@ -257,7 +257,7 @@ const Ve = ({
257
257
  {
258
258
  field: "device_type",
259
259
  headerName: n.mobile_devices_column_type,
260
- renderHeader: F,
260
+ renderHeader: U,
261
261
  sortable: !0,
262
262
  hideSortIcons: !1,
263
263
  flex: 1,
@@ -266,7 +266,7 @@ const Ve = ({
266
266
  {
267
267
  field: "created_at",
268
268
  headerName: n.mobile_devices_column_added,
269
- renderHeader: F,
269
+ renderHeader: U,
270
270
  valueFormatter: (a) => te(oe(a), { addSuffix: !0 }),
271
271
  sortable: !0,
272
272
  hideSortIcons: !1,
@@ -276,13 +276,13 @@ const Ve = ({
276
276
  {
277
277
  field: "delete",
278
278
  headerName: "",
279
- renderHeader: F,
280
- renderCell: (a) => /* @__PURE__ */ e(f, { mr: 4, children: /* @__PURE__ */ e(
281
- W,
279
+ renderHeader: U,
280
+ renderCell: (a) => /* @__PURE__ */ e(h, { mr: 4, children: /* @__PURE__ */ e(
281
+ z,
282
282
  {
283
283
  "aria-label": n.mobile_devices_delete_label,
284
284
  color: "secondary",
285
- onClick: () => o(a.row),
285
+ onClick: () => i(a.row),
286
286
  children: /* @__PURE__ */ e(L, { name: "delete" })
287
287
  }
288
288
  ) }),
@@ -290,15 +290,15 @@ const Ve = ({
290
290
  hideSortIcons: !1,
291
291
  width: 58
292
292
  }
293
- ], s = u.useMemo(() => t.map((a) => ({
293
+ ], s = m.useMemo(() => t.map((a) => ({
294
294
  id: a.guid,
295
295
  ...a,
296
296
  device_type: `${a.make} ${a.model}`
297
297
  })), [t]);
298
- return /* @__PURE__ */ e(V, { sx: { width: "100%" }, children: /* @__PURE__ */ e(
298
+ return /* @__PURE__ */ e(W, { sx: { width: "100%" }, children: /* @__PURE__ */ e(
299
299
  Se,
300
300
  {
301
- columns: p,
301
+ columns: u,
302
302
  disableColumnFilter: !0,
303
303
  disableColumnMenu: !0,
304
304
  disableRowSelectionOnClick: !0,
@@ -310,16 +310,16 @@ const Ve = ({
310
310
  },
311
311
  slots: {
312
312
  footer: () => /* @__PURE__ */ e(
313
- V,
313
+ W,
314
314
  {
315
315
  sx: {
316
- backgroundColor: i.palette.background.default,
316
+ backgroundColor: o.palette.background.default,
317
317
  display: "flex",
318
318
  justifyContent: "flex-end",
319
319
  alignItems: "center",
320
320
  p: "12px 16px"
321
321
  },
322
- children: /* @__PURE__ */ e(v, { color: i.palette.text.secondary, variant: "body2", children: B(
322
+ children: /* @__PURE__ */ e(x, { color: o.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,16 +329,16 @@ const Ve = ({
329
329
  },
330
330
  sx: {
331
331
  border: "1px solid",
332
- borderColor: i.palette.neutral.light,
332
+ borderColor: o.palette.neutral.light,
333
333
  borderRadius: "8px",
334
334
  "& .MuiDataGrid-columnHeader .MuiIconButton-root": {
335
- color: i.palette.primary.main,
335
+ color: o.palette.primary.main,
336
336
  "&:hover": {
337
- backgroundColor: U(i.palette.primary.main, 0.1)
337
+ backgroundColor: V(o.palette.primary.main, 0.1)
338
338
  }
339
339
  },
340
340
  "& .MuiDataGrid-sortIcon": {
341
- color: i.palette.primary.main
341
+ color: o.palette.primary.main
342
342
  }
343
343
  }
344
344
  }
@@ -346,16 +346,16 @@ const Ve = ({
346
346
  }, We = ({
347
347
  devices: t,
348
348
  onClickDeviceEdit: r,
349
- onClickDeviceDelete: o
349
+ onClickDeviceDelete: i
350
350
  }) => {
351
- const i = O(), { settings: n } = D(), [p, s] = u.useState(!1), a = (l) => (b, g) => {
352
- s(g ? l : !1);
351
+ const o = O(), { settings: n } = w(), [u, s] = m.useState(!1), a = (l) => (b, _) => {
352
+ s(_ ? l : !1);
353
353
  };
354
- return /* @__PURE__ */ c(f, { mx: -28, sx: { "& .MuiAccordion-root": { mb: 0, mt: 0 } }, children: [
354
+ return /* @__PURE__ */ c(h, { mx: -28, sx: { "& .MuiAccordion-root": { mb: 0, mt: 0 } }, children: [
355
355
  t.map((l) => /* @__PURE__ */ c(
356
356
  ke,
357
357
  {
358
- expanded: p === l.guid,
358
+ expanded: u === l.guid,
359
359
  onChange: a(l.guid),
360
360
  sx: { boxShadow: "none" },
361
361
  children: [
@@ -366,22 +366,22 @@ const Ve = ({
366
366
  sx: {
367
367
  padding: "14px 24px",
368
368
  borderBottom: "1px solid",
369
- borderColor: i.palette.divider
369
+ borderColor: o.palette.divider
370
370
  },
371
- children: /* @__PURE__ */ c(f, { gap: 4, children: [
372
- /* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: l.name }),
373
- /* @__PURE__ */ e(v, { color: i.palette.text.secondary, variant: "body2", children: `${l.make} ${l.model}` }),
374
- /* @__PURE__ */ e(v, { color: i.palette.text.secondary, variant: "body2", children: te(oe(l.created_at), { addSuffix: !0 }) })
371
+ children: /* @__PURE__ */ c(h, { gap: 4, children: [
372
+ /* @__PURE__ */ e(x, { bold: !0, variant: "body1", children: l.name }),
373
+ /* @__PURE__ */ e(x, { color: o.palette.text.secondary, variant: "body2", children: `${l.make} ${l.model}` }),
374
+ /* @__PURE__ */ e(x, { color: o.palette.text.secondary, variant: "body2", children: te(oe(l.created_at), { addSuffix: !0 }) })
375
375
  ] })
376
376
  }
377
377
  ),
378
378
  /* @__PURE__ */ c(
379
379
  Te,
380
380
  {
381
- sx: { backgroundColor: i.palette.background.default, p: "0 0 0 24px" },
381
+ sx: { backgroundColor: o.palette.background.default, p: "0 0 0 24px" },
382
382
  children: [
383
383
  /* @__PURE__ */ c(
384
- f,
384
+ h,
385
385
  {
386
386
  onClick: () => r(l),
387
387
  sx: {
@@ -392,18 +392,18 @@ const Ve = ({
392
392
  py: 16,
393
393
  cursor: "pointer",
394
394
  borderBottom: "1px solid",
395
- borderColor: i.palette.divider
395
+ borderColor: o.palette.divider
396
396
  },
397
397
  children: [
398
- /* @__PURE__ */ e(W, { "aria-label": n.mobile_devices_edit_label, color: "secondary", children: /* @__PURE__ */ e(L, { name: "edit" }) }),
399
- /* @__PURE__ */ e(v, { variant: "body1", children: n.mobile_devices_edit_label })
398
+ /* @__PURE__ */ e(z, { "aria-label": n.mobile_devices_edit_label, color: "secondary", children: /* @__PURE__ */ e(L, { name: "edit" }) }),
399
+ /* @__PURE__ */ e(x, { variant: "body1", children: n.mobile_devices_edit_label })
400
400
  ]
401
401
  }
402
402
  ),
403
403
  /* @__PURE__ */ c(
404
- f,
404
+ h,
405
405
  {
406
- onClick: () => o(l),
406
+ onClick: () => i(l),
407
407
  sx: {
408
408
  alignItems: "center",
409
409
  flexDirection: "row",
@@ -413,8 +413,8 @@ const Ve = ({
413
413
  cursor: "pointer"
414
414
  },
415
415
  children: [
416
- /* @__PURE__ */ e(W, { "aria-label": n.mobile_devices_delete_label, color: "secondary", children: /* @__PURE__ */ e(L, { name: "delete" }) }),
417
- /* @__PURE__ */ e(v, { variant: "body1", children: n.mobile_devices_delete_label })
416
+ /* @__PURE__ */ e(z, { "aria-label": n.mobile_devices_delete_label, color: "secondary", children: /* @__PURE__ */ e(L, { name: "delete" }) }),
417
+ /* @__PURE__ */ e(x, { variant: "body1", children: n.mobile_devices_delete_label })
418
418
  ]
419
419
  }
420
420
  )
@@ -426,15 +426,15 @@ const Ve = ({
426
426
  l.guid
427
427
  )),
428
428
  /* @__PURE__ */ e(
429
- V,
429
+ W,
430
430
  {
431
431
  sx: {
432
- backgroundColor: i.palette.background.default,
432
+ backgroundColor: o.palette.background.default,
433
433
  borderTop: "1px solid",
434
- borderColor: i.palette.divider,
434
+ borderColor: o.palette.divider,
435
435
  p: "12px 16px"
436
436
  },
437
- children: /* @__PURE__ */ e(v, { color: i.palette.text.secondary, variant: "body2", children: B(
437
+ children: /* @__PURE__ */ e(x, { color: o.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 })
@@ -445,15 +445,15 @@ const Ve = ({
445
445
  }, ze = ({
446
446
  dialogType: t,
447
447
  isOpen: r,
448
- onClose: o,
449
- device: i,
448
+ onClose: i,
449
+ device: o,
450
450
  deviceToken: n = ""
451
451
  }) => {
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
- i && w(i.name);
455
- }, [i, t]);
456
- const x = () => {
452
+ const u = O(), { common: s, settings: a } = w(), { updateDevice: l, deleteDevice: b, setAlert: _, loadDevices: d } = E(), [p, S] = m.useState("");
453
+ m.useEffect(() => {
454
+ o && S(o.name);
455
+ }, [o, t]);
456
+ const v = () => {
457
457
  switch (t) {
458
458
  case y.Edit:
459
459
  return a.mobile_devices_edit_label;
@@ -462,7 +462,7 @@ const Ve = ({
462
462
  default:
463
463
  return "";
464
464
  }
465
- }, S = () => {
465
+ }, k = () => {
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
- }, k = () => {
477
- const m = {
476
+ }, I = () => {
477
+ const g = {
478
478
  "& .MuiDialogContent-root": {
479
479
  width: 400,
480
480
  pt: 0
481
481
  }
482
482
  };
483
483
  return t === y.Token ? {
484
- ...m,
484
+ ...g,
485
485
  "& .MuiToolbar-root:last-child": {
486
486
  padding: "32px 60px 48px",
487
487
  justifyContent: "center"
@@ -493,7 +493,7 @@ const Ve = ({
493
493
  flex: 1
494
494
  }
495
495
  } : {
496
- ...m,
496
+ ...g,
497
497
  "& .MuiToolbar-root:last-child": {
498
498
  gap: 8,
499
499
  padding: 24,
@@ -506,42 +506,42 @@ const Ve = ({
506
506
  }
507
507
  };
508
508
  }, T = async () => {
509
- if (t === y.Token && o(), t === y.Edit && i) {
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),
509
+ if (t === y.Token && i(), t === y.Edit && o) {
510
+ const g = { ...o, name: p };
511
+ (await l(g)).success ? (_(a.mobile_devices_edit_success, "success"), d()) : _(
512
+ B(a.mobile_devices_edit_error, o.name),
513
513
  "error"
514
- ), o();
514
+ ), i();
515
515
  }
516
- t === y.Delete && i && ((await b(i.guid)).success ? (g(
517
- B(a.mobile_devices_delete_success, i.name),
516
+ t === y.Delete && o && ((await b(o.guid)).success ? (_(
517
+ B(a.mobile_devices_delete_success, o.name),
518
518
  "success"
519
- ), d()) : g(
520
- B(a.mobile_devices_delete_error, i.name),
519
+ ), d()) : _(
520
+ B(a.mobile_devices_delete_error, o.name),
521
521
  "error"
522
- ), o());
522
+ ), i());
523
523
  };
524
524
  return /* @__PURE__ */ c(
525
- G,
525
+ j,
526
526
  {
527
- copy: { title: x() },
527
+ copy: { title: v() },
528
528
  isOpen: r,
529
- onClose: o,
529
+ onClose: i,
530
530
  onPrimaryAction: T,
531
- onSecondaryAction: o,
531
+ onSecondaryAction: i,
532
532
  primaryColor: t === y.Delete ? "error" : void 0,
533
- primaryText: S(),
533
+ primaryText: k(),
534
534
  secondaryText: t === y.Token ? s.back : s.cancel_button,
535
- sx: k(),
535
+ sx: I(),
536
536
  children: [
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: a.mobile_devices_access_label }),
539
- /* @__PURE__ */ e(v, { truncate: !1, variant: "body2", children: a.mobile_devices_access_info_1 }),
537
+ t === y.Token && /* @__PURE__ */ c(h, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
538
+ /* @__PURE__ */ e(x, { bold: !0, truncate: !1, variant: "body1", children: a.mobile_devices_access_label }),
539
+ /* @__PURE__ */ e(x, { truncate: !1, variant: "body2", children: a.mobile_devices_access_info_1 }),
540
540
  /* @__PURE__ */ e(
541
- N,
541
+ M,
542
542
  {
543
543
  sx: {
544
- border: `1px solid ${p.palette.neutral.light}`,
544
+ border: `1px solid ${u.palette.neutral.light}`,
545
545
  borderRadius: "4px",
546
546
  p: "16px 32px"
547
547
  },
@@ -549,30 +549,30 @@ const Ve = ({
549
549
  children: n
550
550
  }
551
551
  ),
552
- /* @__PURE__ */ e(v, { truncate: !1, variant: "body2", children: a.mobile_devices_access_info_2 })
552
+ /* @__PURE__ */ e(x, { 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: (m) => w(m.target.value), value: h }) }),
555
- t === y.Delete && /* @__PURE__ */ e(N, { children: a.mobile_devices_delete_info })
554
+ t === y.Edit && /* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(A, { onChange: (g) => S(g.target.value), value: p }) }),
555
+ t === y.Delete && /* @__PURE__ */ e(M, { children: a.mobile_devices_delete_info })
556
556
  ]
557
557
  }
558
558
  );
559
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
- i && s();
563
- }, [i]);
564
- const x = async () => {
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 });
560
+ const { isMobile: t } = H(), { settings: r } = w(), { isCopyLoaded: i, isInitialized: o } = ee(), { setAlert: n, devices: u, loadDevices: s, generateDeviceToken: a } = E(), [l, b] = m.useState({ open: !1, type: "" }), [_, d] = m.useState(), [p, S] = m.useState("");
561
+ m.useEffect(() => {
562
+ o && s();
563
+ }, [o]);
564
+ const v = async () => {
565
+ const g = await a();
566
+ g ? (S(g), b({ open: !0, type: y.Token })) : n(r.mobile_devices_access_error, "error");
567
+ }, k = (g) => {
568
+ d(g), b({ open: !0, type: y.Edit });
569
+ }, I = (g) => {
570
+ d(g), b({ open: !0, type: y.Delete });
571
571
  }, T = () => {
572
572
  b({ open: !1, type: "" }), d(void 0);
573
573
  };
574
- return !o || !i ? /* @__PURE__ */ e(ie, {}) : /* @__PURE__ */ c(
575
- f,
574
+ return !i || !o ? /* @__PURE__ */ e(ie, {}) : /* @__PURE__ */ c(
575
+ h,
576
576
  {
577
577
  sx: {
578
578
  backgroundColor: "background.paper",
@@ -580,35 +580,35 @@ const Ve = ({
580
580
  gap: 24
581
581
  },
582
582
  children: [
583
- /* @__PURE__ */ c(f, { gap: 4, children: [
584
- /* @__PURE__ */ e(K, { children: r.mobile_devices_title }),
585
- /* @__PURE__ */ e(N, { variant: "body1", children: r.mobile_devices_info })
583
+ /* @__PURE__ */ c(h, { gap: 4, children: [
584
+ /* @__PURE__ */ e(Y, { children: r.mobile_devices_title }),
585
+ /* @__PURE__ */ e(M, { variant: "body1", children: r.mobile_devices_info })
586
586
  ] }),
587
587
  t ? /* @__PURE__ */ e(
588
588
  We,
589
589
  {
590
- devices: p,
591
- onClickDeviceDelete: k,
592
- onClickDeviceEdit: S
590
+ devices: u,
591
+ onClickDeviceDelete: I,
592
+ onClickDeviceEdit: k
593
593
  }
594
594
  ) : /* @__PURE__ */ e(
595
595
  Ve,
596
596
  {
597
- devices: p,
598
- onClickDeviceDelete: k,
599
- onClickDeviceEdit: S
597
+ devices: u,
598
+ onClickDeviceDelete: I,
599
+ onClickDeviceEdit: k
600
600
  }
601
601
  ),
602
- /* @__PURE__ */ c(f, { sx: { alignItems: "center", px: 24, py: 12, gap: 4 }, children: [
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 })
602
+ /* @__PURE__ */ c(h, { sx: { alignItems: "center", px: 24, py: 12, gap: 4 }, children: [
603
+ /* @__PURE__ */ e(x, { bold: !0, variant: "body1", children: r.mobile_devices_access_title }),
604
+ /* @__PURE__ */ e(M, { align: "center", variant: "body2", children: r.mobile_devices_access_description }),
605
+ /* @__PURE__ */ e(Z, { onClick: v, variant: "text", children: r.mobile_devices_access_cta })
606
606
  ] }),
607
607
  /* @__PURE__ */ e(
608
608
  $e,
609
609
  {
610
- device: g,
611
- deviceToken: h,
610
+ device: _,
611
+ deviceToken: p,
612
612
  dialogType: l.type,
613
613
  isOpen: l.open,
614
614
  onClose: T
@@ -617,35 +617,35 @@ const Ve = ({
617
617
  ]
618
618
  }
619
619
  );
620
- }), je = Ge, q = C(
621
- ({ onClick: t, primaryText: r, secondaryText: o, sx: i }) => {
620
+ }), je = Ge, Q = C(
621
+ ({ onClick: t, primaryText: r, secondaryText: i, sx: o }) => {
622
622
  const n = O();
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: r, secondary: o }),
623
+ return /* @__PURE__ */ e(Ne, { sx: { bgcolor: n.palette.background.paper }, children: /* @__PURE__ */ c(Me, { alignItems: "flex-start", onClick: t, sx: o, children: [
624
+ /* @__PURE__ */ e(Be, { primary: r, secondary: i }),
625
625
  /* @__PURE__ */ e(Le, { children: /* @__PURE__ */ e(ve, {}) })
626
626
  ] }) });
627
627
  }
628
628
  ), Je = C(() => {
629
- const { settings: t } = D(), { categories: r } = $(), { selectedRule: o, updateRuleCategory: i } = A(), [n, p] = u.useState(!1), s = () => {
630
- p(!1);
629
+ const { settings: t } = w(), { categories: r } = G(), { selectedRule: i, updateRuleCategory: o } = E(), [n, u] = m.useState(!1), s = () => {
630
+ u(!1);
631
631
  }, a = () => {
632
- p(!0);
633
- }, l = (g) => r.find((d) => d.guid === g)?.name, b = async (g) => {
634
- o && o.category_guid !== g && (o.category_guid = g, await i(o)), s();
632
+ u(!0);
633
+ }, l = (_) => r.find((d) => d.guid === _)?.name, b = async (_) => {
634
+ i && i.category_guid !== _ && (i.category_guid = _, await o(i)), s();
635
635
  };
636
- return /* @__PURE__ */ c(u.Fragment, { children: [
636
+ return /* @__PURE__ */ c(m.Fragment, { children: [
637
637
  /* @__PURE__ */ e(
638
- q,
638
+ Q,
639
639
  {
640
640
  onClick: a,
641
- primaryText: o?.category_guid ? l(o.category_guid) : "",
641
+ primaryText: i?.category_guid ? l(i.category_guid) : "",
642
642
  secondaryText: t.category
643
643
  }
644
644
  ),
645
645
  /* @__PURE__ */ e(
646
646
  Re,
647
647
  {
648
- initialSelected: o?.category_guid ? o.category_guid : void 0,
648
+ initialSelected: i?.category_guid ? i.category_guid : void 0,
649
649
  onClose: s,
650
650
  onSelect: b,
651
651
  showDrawer: n,
@@ -654,25 +654,25 @@ const Ve = ({
654
654
  )
655
655
  ] });
656
656
  }), Ke = C(() => {
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 = () => {
657
+ const { common: t, settings: r } = w(), { selectedRule: i, updateRulePayee: o } = E(), n = O(), [u, s] = m.useState(!1), a = i?.description ? i.description : i?.match_description, [l, b] = m.useState(a || ""), _ = () => {
658
658
  s(!0);
659
659
  }, d = async () => {
660
- l !== a && o && (o.description = l, await i(o), s(!1));
660
+ l !== a && i && (i.description = l, await o(i), s(!1));
661
661
  };
662
- return /* @__PURE__ */ c(u.Fragment, { children: [
662
+ return /* @__PURE__ */ c(m.Fragment, { children: [
663
663
  /* @__PURE__ */ e(
664
- q,
664
+ Q,
665
665
  {
666
- onClick: g,
666
+ onClick: _,
667
667
  primaryText: a,
668
668
  secondaryText: r.payee
669
669
  }
670
670
  ),
671
671
  /* @__PURE__ */ e(
672
- G,
672
+ j,
673
673
  {
674
674
  copy: { title: r.edit_payee },
675
- isOpen: p,
675
+ isOpen: u,
676
676
  onClose: () => s(!1),
677
677
  onPrimaryAction: d,
678
678
  onSecondaryAction: () => s(!1),
@@ -683,9 +683,9 @@ const Ve = ({
683
683
  path: { fill: n.palette.secondary.darker }
684
684
  },
685
685
  children: /* @__PURE__ */ e(
686
- I,
686
+ A,
687
687
  {
688
- onChange: (h) => b(h.target.value),
688
+ onChange: (p) => b(p.target.value),
689
689
  sx: { width: 352 },
690
690
  value: l
691
691
  }
@@ -693,27 +693,27 @@ const Ve = ({
693
693
  }
694
694
  )
695
695
  ] });
696
- }), Ye = C(({ onClose: t, onDelete: r, isOpen: o }) => {
697
- const { common: i, settings: n } = D();
696
+ }), Ye = C(({ onClose: t, onDelete: r, isOpen: i }) => {
697
+ const { common: o, settings: n } = w();
698
698
  return /* @__PURE__ */ e(
699
- G,
699
+ j,
700
700
  {
701
701
  copy: { title: n.delete_rule },
702
- isOpen: o,
702
+ isOpen: i,
703
703
  onClose: t,
704
704
  onPrimaryAction: r,
705
705
  onSecondaryAction: t,
706
706
  primaryColor: "error",
707
- primaryText: i.delete_button,
707
+ primaryText: o.delete_button,
708
708
  secondaryColor: "secondary",
709
- secondaryText: i.cancel_button,
709
+ secondaryText: o.cancel_button,
710
710
  sx: { "& .MuiDialogContent-root": { pt: 0, width: 400 } },
711
- children: /* @__PURE__ */ e(v, { truncate: !1, variant: "body2", children: n.delete_rule_confirm })
711
+ children: /* @__PURE__ */ e(x, { truncate: !1, variant: "body2", children: n.delete_rule_confirm })
712
712
  }
713
713
  );
714
714
  }), qe = C(
715
- ({ isOpen: t, onClose: r, onDelete: o }) => {
716
- const { common: i, settings: n } = D(), [p, s] = u.useState(!1);
715
+ ({ isOpen: t, onClose: r, onDelete: i }) => {
716
+ const { common: o, settings: n } = w(), [u, s] = m.useState(!1);
717
717
  return /* @__PURE__ */ c(
718
718
  He,
719
719
  {
@@ -724,20 +724,20 @@ const Ve = ({
724
724
  s(!0);
725
725
  },
726
726
  primaryColor: "error",
727
- primaryText: i.delete_button,
727
+ primaryText: o.delete_button,
728
728
  title: n.edit_rule,
729
729
  children: [
730
- /* @__PURE__ */ e(Ee, { children: /* @__PURE__ */ e(v, { bold: !0, variant: "caption", children: n.details }) }),
730
+ /* @__PURE__ */ e(Ee, { children: /* @__PURE__ */ e(x, { bold: !0, variant: "caption", children: n.details }) }),
731
731
  /* @__PURE__ */ e(Ke, {}),
732
- /* @__PURE__ */ e(J, { sx: { ml: 24 } }),
732
+ /* @__PURE__ */ e(K, { sx: { ml: 24 } }),
733
733
  /* @__PURE__ */ e(Je, {}),
734
- /* @__PURE__ */ e(J, { sx: { ml: 24 } }),
734
+ /* @__PURE__ */ e(K, { sx: { ml: 24 } }),
735
735
  /* @__PURE__ */ e(
736
736
  Ye,
737
737
  {
738
- isOpen: p,
738
+ isOpen: u,
739
739
  onClose: () => s(!1),
740
- onDelete: o
740
+ onDelete: i
741
741
  }
742
742
  )
743
743
  ]
@@ -745,61 +745,61 @@ const Ve = ({
745
745
  );
746
746
  }
747
747
  ), Qe = C(({ rule: t }) => {
748
- const { categories: r } = $(), { setSelectedGuid: o } = Pe(), { deleteTransactionRule: i, setSelectedRule: n } = A(), { isDesktop: p, isTablet: s } = H(), [a, l] = u.useState(!1), b = () => {
749
- l(!1), o(null), n(void 0);
750
- }, g = async () => {
751
- await i(), b();
748
+ const { categories: r } = G(), { setSelectedGuid: i } = Pe(), { deleteTransactionRule: o, setSelectedRule: n } = E(), { isDesktop: u, isTablet: s } = H(), [a, l] = m.useState(!1), b = () => {
749
+ l(!1), i(null), n(void 0);
750
+ }, _ = async () => {
751
+ await o(), b();
752
752
  }, d = () => {
753
753
  l(!0), n(t);
754
- }, h = (w) => r.find((x) => x.guid === w)?.name;
755
- return /* @__PURE__ */ c(u.Fragment, { children: [
754
+ }, p = (S) => r.find((v) => v.guid === S)?.name;
755
+ return /* @__PURE__ */ c(m.Fragment, { children: [
756
756
  /* @__PURE__ */ e(
757
- q,
757
+ Q,
758
758
  {
759
759
  onClick: d,
760
760
  primaryText: t.description ? t.description : t.match_description,
761
- secondaryText: t.category_guid ? h(t.category_guid) : ""
761
+ secondaryText: t.category_guid ? p(t.category_guid) : ""
762
762
  }
763
763
  ),
764
- /* @__PURE__ */ e(J, { sx: { ml: s || p ? 0 : 24 } }),
765
- /* @__PURE__ */ e(qe, { isOpen: a, onClose: b, onDelete: g })
764
+ /* @__PURE__ */ e(K, { sx: { ml: s || u ? 0 : 24 } }),
765
+ /* @__PURE__ */ e(qe, { isOpen: a, onClose: b, onDelete: _ })
766
766
  ] });
767
767
  }), Xe = C(() => {
768
- const { settings: t } = D(), { loadTransactionRules: r, transactionRules: o } = A(), [i, n] = u.useState(!1);
768
+ const { settings: t } = w(), { loadTransactionRules: r, transactionRules: i } = E(), [o, n] = m.useState(!1);
769
769
  return ne({
770
770
  widgetName: "TransactionRulesTab",
771
- isLoaded: i
772
- }), u.useEffect(() => {
771
+ isLoaded: o
772
+ }), m.useEffect(() => {
773
773
  r().finally(() => n(!0));
774
- }, []), /* @__PURE__ */ c(f, { sx: { gap: 24, py: 24 }, children: [
775
- /* @__PURE__ */ c(f, { sx: { px: 24 }, children: [
776
- /* @__PURE__ */ e(K, { children: t.transaction_rules_label }),
777
- /* @__PURE__ */ e(N, { variant: "body1", children: t.transaction_rules_description })
774
+ }, []), /* @__PURE__ */ c(h, { sx: { gap: 24, py: 24 }, children: [
775
+ /* @__PURE__ */ c(h, { sx: { px: 24 }, children: [
776
+ /* @__PURE__ */ e(Y, { children: t.transaction_rules_label }),
777
+ /* @__PURE__ */ e(M, { variant: "body1", children: t.transaction_rules_description })
778
778
  ] }),
779
- /* @__PURE__ */ e(Ae, { children: o.map((p, s) => /* @__PURE__ */ e(Qe, { rule: p }, s)) })
779
+ /* @__PURE__ */ e(Ae, { children: i.map((u, s) => /* @__PURE__ */ e(Qe, { rule: u }, s)) })
780
780
  ] });
781
781
  }), re = Xe, Ze = C(({ selectedTab: t }) => {
782
- const { alert: r, setAlert: o } = A(), {
783
- config: { display_user_profile_in_settings: i }
784
- } = z();
782
+ const { alert: r, setAlert: i } = E(), {
783
+ config: { display_user_profile_in_settings: o }
784
+ } = $();
785
785
  return /* @__PURE__ */ c(X, { children: [
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, {}) }),
786
+ t === N.Profile && /* @__PURE__ */ e(Ue, {}),
787
+ t === N.Devices && /* @__PURE__ */ e(je, {}),
788
+ t === N.Notifications && /* @__PURE__ */ e(J, { showPersonalDetails: !o }),
789
+ t === N.TransactionRules && /* @__PURE__ */ e(re, {}),
790
+ t === N.Help && /* @__PURE__ */ e(h, { sx: { px: 24 }, children: /* @__PURE__ */ e(Oe, {}) }),
791
791
  /* @__PURE__ */ e(
792
792
  fe,
793
793
  {
794
794
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
795
795
  autoHideDuration: 3500,
796
- onClose: () => o(""),
796
+ onClose: () => i(""),
797
797
  open: !!r.message,
798
798
  children: /* @__PURE__ */ e(
799
799
  he,
800
800
  {
801
801
  onClose: () => {
802
- o("");
802
+ i("");
803
803
  },
804
804
  severity: r.severity,
805
805
  variant: "filled",
@@ -810,73 +810,74 @@ const Ve = ({
810
810
  )
811
811
  ] });
812
812
  });
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 } = $();
813
+ var N = /* @__PURE__ */ ((t) => (t[t.Profile = 0] = "Profile", t[t.Devices = 1] = "Devices", t[t.Notifications = 2] = "Notifications", t[t.TransactionRules = 3] = "TransactionRules", t[t.Help = 4] = "Help", t))(N || {});
814
+ const $t = C(({ onBackClick: t, onMenuClick: r, sx: i }) => {
815
+ const { settings: o } = w(), { isCopyLoaded: n, isInitialized: u } = ee(), { config: s } = $(), { isMobile: a } = H(), { categoriesLoaded: l, loadCategories: b } = G();
816
816
  ne({
817
817
  widgetName: "SettingsWidget",
818
- isLoaded: n && i
819
- }), u.useEffect(() => {
820
- a || l().finally();
818
+ isLoaded: u && n
819
+ }), m.useEffect(() => {
820
+ l || b().finally();
821
821
  }, []);
822
822
  const {
823
- display_user_profile_in_settings: b,
824
- display_mobile_devices_in_settings: g,
825
- display_notification_settings_in_settings: d,
826
- display_user_transaction_rules_in_settings: h,
827
- show_help_widget_in_master: w
828
- } = p, x = [
829
- { enabled: b, index: 0, label: o?.profile_label },
830
- { enabled: g, index: 1, label: o?.mobile_devices_label },
831
- { enabled: d, index: 2, label: o?.notifications_label },
832
- { enabled: h, index: 3, label: o?.transaction_rules_label },
833
- { enabled: w, index: 4, label: o?.help_label }
834
- ], S = x.find((m) => m.enabled), [k, T] = u.useState(S ? S.index : -1);
835
- return !i || !n ? /* @__PURE__ */ e(ie, {}) : /* @__PURE__ */ e(
836
- Y,
823
+ display_user_profile_in_settings: _,
824
+ display_mobile_devices_in_settings: d,
825
+ display_notification_settings_in_settings: p,
826
+ display_user_transaction_rules_in_settings: S,
827
+ show_help_widget_in_master: v
828
+ } = s, k = [
829
+ { enabled: _, index: 0, label: o?.profile_label },
830
+ { enabled: d, index: 1, label: o?.mobile_devices_label },
831
+ { enabled: p, index: 2, label: o?.notifications_label },
832
+ { enabled: S, index: 3, label: o?.transaction_rules_label },
833
+ { enabled: v, index: 4, label: o?.help_label }
834
+ ], I = k.find((D) => D.enabled), [T, g] = m.useState(I ? I.index : -1);
835
+ return !n || !u ? /* @__PURE__ */ e(ie, {}) : /* @__PURE__ */ e(
836
+ q,
837
837
  {
838
838
  onBackClick: t,
839
+ onMenuClick: r,
839
840
  showAccountFilter: !1,
840
- sx: { height: "calc(100dvh - 24px)", overflow: "auto", ...r },
841
+ sx: { height: "calc(100dvh - 24px)", overflow: "auto", ...i },
841
842
  title: o.title,
842
- children: /* @__PURE__ */ c(f, { mx: s ? 0 : 48, my: 24, children: [
843
+ children: /* @__PURE__ */ c(h, { mx: a ? 0 : 48, my: 24, children: [
843
844
  /* @__PURE__ */ e(
844
845
  pe,
845
846
  {
846
- onChange: (m, M) => T(M),
847
+ onChange: (D, F) => g(F),
847
848
  sx: { bgcolor: "background.paper" },
848
849
  textColor: "primary",
849
- value: k,
850
+ value: T,
850
851
  variant: "scrollable",
851
- children: x.map(
852
- (m) => m.enabled && /* @__PURE__ */ e(ue, { label: m.label, value: m.index }, m.index)
852
+ children: k.map(
853
+ (D) => D.enabled && /* @__PURE__ */ e(ue, { label: D.label, value: D.index }, D.index)
853
854
  )
854
855
  }
855
856
  ),
856
- /* @__PURE__ */ e(Ze, { selectedTab: k })
857
+ /* @__PURE__ */ e(Ze, { selectedTab: T })
857
858
  ] })
858
859
  }
859
860
  );
860
861
  }), Gt = C((t) => {
861
- const { clientConfig: r } = z(), o = r?.master?.deep_link_params?.view;
862
- return o ? /* @__PURE__ */ e(j, { view: o }) : /* @__PURE__ */ e(Y, { ...t, showAccountFilter: !1, children: /* @__PURE__ */ e(f, { my: 24, children: /* @__PURE__ */ e(j, {}) }) });
862
+ const { clientConfig: r } = $(), i = r?.master?.deep_link_params?.view;
863
+ return i ? /* @__PURE__ */ e(J, { view: i }) : /* @__PURE__ */ e(q, { ...t, showAccountFilter: !1, children: /* @__PURE__ */ e(h, { my: 24, children: /* @__PURE__ */ e(J, {}) }) });
863
864
  }), jt = (t) => {
864
- const { isMobile: r } = H(), { categoriesLoaded: o, loadCategories: i } = $();
865
- return u.useEffect(() => {
866
- o || i().finally();
867
- }), /* @__PURE__ */ e(Y, { ...t, showAccountFilter: !1, children: /* @__PURE__ */ e(f, { sx: { mx: r ? 0 : 48, my: 24 }, children: /* @__PURE__ */ e(re, {}) }) });
865
+ const { isMobile: r } = H(), { categoriesLoaded: i, loadCategories: o } = G();
866
+ return m.useEffect(() => {
867
+ i || o().finally();
868
+ }), /* @__PURE__ */ e(q, { ...t, showAccountFilter: !1, children: /* @__PURE__ */ e(h, { sx: { mx: r ? 0 : 48, my: 24 }, children: /* @__PURE__ */ e(re, {}) }) });
868
869
  };
869
870
  export {
870
871
  Xt as AccountNotificationProfiles,
871
872
  Zt as BudgetNotificationProfiles,
872
873
  je as DeviceTab,
873
874
  eo as InsightsNotificationProfiles,
874
- j as NotificationSettings,
875
+ J as NotificationSettings,
875
876
  Gt as NotificationSettingsWidget,
876
877
  Ue as ProfileTab,
877
878
  Yt as SettingsApi,
878
879
  qt as SettingsStore,
879
- P as SettingsTabs,
880
+ N as SettingsTabs,
880
881
  $t as SettingsWidget,
881
882
  Ze as SettingsWidgetContents,
882
883
  re as TransactionRulesTab,