@mxenabled/mxui 1.6.0-alpha.4 → 1.6.0-alpha.5

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/dist/index.es.js CHANGED
@@ -3,12 +3,12 @@ import C from "react";
3
3
  import F from "@mui/material/Stack";
4
4
  import { useTheme as H, createTheme as j } from "@mui/material/styles";
5
5
  import { Icon as de, Close as ue } from "@mxenabled/mx-icons";
6
- import { endOfMonth as $ } from "date-fns/endOfMonth";
6
+ import { endOfMonth as U } from "date-fns/endOfMonth";
7
7
  import { endOfYear as pe } from "date-fns/endOfYear";
8
8
  import { startOfToday as he } from "date-fns/startOfToday";
9
9
  import { startOfMonth as W } from "date-fns/startOfMonth";
10
10
  import { startOfYear as Z } from "date-fns/startOfYear";
11
- import { subDays as K } from "date-fns/subDays";
11
+ import { subDays as Y } from "date-fns/subDays";
12
12
  import { subMonths as ge } from "date-fns/subMonths";
13
13
  import { subYears as fe } from "date-fns/subYears";
14
14
  import me from "@mui/material/useMediaQuery";
@@ -26,15 +26,15 @@ import Ee from "@mui/material/TextField";
26
26
  import Se from "@mui/material/Snackbar";
27
27
  import Ie from "@mui/material/Alert";
28
28
  import { light as ee, buildTheme as z, dark as ve } from "@mxenabled/design-tokens";
29
- import { Paper as He, Box as Y, Typography as X, Radio as k, Checkbox as ye, alpha as b, darken as N, lighten as y, getContrastRatio as Oe } from "@mui/material";
29
+ import { Paper as He, Box as X, Typography as K, Radio as D, Checkbox as ye, alpha as b, darken as N, lighten as y, getContrastRatio as Oe } from "@mui/material";
30
30
  import { circularProgressClasses as Fe } from "@mui/material/CircularProgress";
31
- import { LicenseInfo as De } from "@mui/x-license-pro";
31
+ import { LicenseInfo as ke } from "@mui/x-license-pro";
32
32
  const f = ({
33
33
  children: e,
34
34
  height: o,
35
35
  size: i = 16,
36
36
  viewBox: n = "0 0 16 16",
37
- width: t
37
+ width: r
38
38
  }) => /* @__PURE__ */ a(
39
39
  "svg",
40
40
  {
@@ -43,7 +43,7 @@ const f = ({
43
43
  focusable: !1,
44
44
  height: o || i,
45
45
  viewBox: n,
46
- width: t || i,
46
+ width: r || i,
47
47
  xmlns: "http://www.w3.org/2000/svg",
48
48
  children: e
49
49
  }
@@ -54,7 +54,7 @@ const M = ({
54
54
  fill: o = !1,
55
55
  name: i,
56
56
  size: n = 20,
57
- sx: t,
57
+ sx: r,
58
58
  weight: d = 300,
59
59
  ...c
60
60
  }) => /* @__PURE__ */ a(
@@ -64,11 +64,11 @@ const M = ({
64
64
  fill: o,
65
65
  name: i,
66
66
  size: n,
67
- sx: t,
67
+ sx: r,
68
68
  weight: d,
69
69
  ...c
70
70
  }
71
- ), I0 = ({
71
+ ), S0 = ({
72
72
  color: e = "currentColor",
73
73
  ...o
74
74
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -77,7 +77,7 @@ const M = ({
77
77
  d: "M2.24801 6.76647H0.573286C0.327604 6.76647 0.110586 6.60678 0.0327867 6.37748C-0.0450124 6.14408 0.0327866 5.88612 0.229332 5.73871L7.6571 0.116699C7.85774 -0.0388996 8.14027 -0.0388996 8.34501 0.116699L15.7728 5.73871C15.9693 5.89021 16.0471 6.14408 15.9693 6.37748C15.8915 6.61088 15.6745 6.76647 15.4288 6.76647H13.7582V12.323H14.3929C14.7122 12.323 14.9661 12.5809 14.9661 12.8962C14.9661 13.2156 14.7082 13.4695 14.3929 13.4695H1.60924C1.28986 13.4695 1.03599 13.2115 1.03599 12.8962C1.03599 12.5768 1.29395 12.323 1.60924 12.323H2.24801V6.76647ZM5.70393 6.76647H3.39043V12.323H5.70393V6.76647ZM9.15985 12.323V6.76647H6.84635V12.323H9.15985ZM10.3023 12.3189H12.6158V6.76647H10.3023V12.3189ZM0.573256 14.8535H15.4288C15.7441 14.8535 15.998 15.1115 15.998 15.4267C15.998 15.7461 15.74 16 15.4247 16H0.573256C0.253871 16 0 15.742 0 15.4267C0 15.1074 0.257965 14.8535 0.573256 14.8535Z",
78
78
  fill: e
79
79
  }
80
- ) })), v0 = ({
80
+ ) })), I0 = ({
81
81
  color: e = "currentColor",
82
82
  ...o
83
83
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -86,7 +86,7 @@ const M = ({
86
86
  d: "M15.429 14.854H.573a.572.572 0 100 1.146h14.852a.572.572 0 00.004-1.146zM.573 6.766h1.675v5.557h-.639a.572.572 0 100 1.146h12.784a.572.572 0 100-1.146h-.635V6.766h1.67a.568.568 0 00.541-.389.574.574 0 00-.196-.638L8.345.117a.565.565 0 00-.688 0L.23 5.739a.572.572 0 00.344 1.027zm2.817 0h2.314v5.557H3.39V6.766zm5.77 0v5.557H6.846V6.766H9.16zm3.456 5.553h-2.314V6.766h2.314v5.553zM8 1.288l5.724 4.336H2.277L8 1.288z",
87
87
  fill: e
88
88
  }
89
- ) })), H0 = ({
89
+ ) })), v0 = ({
90
90
  color: e = "currentColor",
91
91
  ...o
92
92
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -95,7 +95,7 @@ const M = ({
95
95
  d: "M5.854 3.133a.426.426 0 010 .643L1.757 7.5h13.774c.26 0 .469.224.469.5s-.21.5-.469.5H1.757l4.097 3.724a.426.426 0 010 .643.536.536 0 01-.708 0l-5-4.546a.426.426 0 010-.642l5-4.546a.536.536 0 01.708 0z",
96
96
  fill: e
97
97
  }
98
- ) })), y0 = ({
98
+ ) })), H0 = ({
99
99
  color: e = "currentColor",
100
100
  ...o
101
101
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -106,7 +106,7 @@ const M = ({
106
106
  fill: e,
107
107
  fillRule: "evenodd"
108
108
  }
109
- ) })), O0 = ({
109
+ ) })), y0 = ({
110
110
  color: e = "currentColor",
111
111
  ...o
112
112
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -115,7 +115,7 @@ const M = ({
115
115
  d: "M11.5 0a.5.5 0 01.5.5V2h2.5A1.5 1.5 0 0116 3.5v11a1.5 1.5 0 01-1.5 1.5h-13A1.5 1.5 0 010 14.5v-11A1.5 1.5 0 011.5 2H4V.5a.5.5 0 011 0V2h6V.5a.5.5 0 01.5-.5zM15 6H1v8.5a.5.5 0 00.5.5h13a.5.5 0 00.5-.5V6zm-4.5 1a.5.5 0 01.5.5V10h2.5a.5.5 0 010 1H11v2.5a.5.5 0 01-1 0V11H6v2.5a.5.5 0 01-1 0V11H2.5a.5.5 0 010-1H5V7.5a.5.5 0 011 0V10h4V7.5a.5.5 0 01.5-.5zm4-4h-13a.5.5 0 00-.5.5V5h14V3.5a.5.5 0 00-.5-.5z",
116
116
  fill: e
117
117
  }
118
- ) })), F0 = ({
118
+ ) })), O0 = ({
119
119
  color: e = "currentColor",
120
120
  ...o
121
121
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -124,7 +124,7 @@ const M = ({
124
124
  d: "M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8zm4.358 5.151a.5.5 0 00-.707-.01L6.858 9.803 4.35 7.363a.5.5 0 10-.698.718l2.858 2.777a.5.5 0 00.697 0l5.142-5a.5.5 0 00.01-.707z",
125
125
  fill: e
126
126
  }
127
- ) })), D0 = ({
127
+ ) })), F0 = ({
128
128
  color: e = "currentColor",
129
129
  ...o
130
130
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -133,7 +133,7 @@ const M = ({
133
133
  d: "M2.68 5.201a.6.6 0 01.848-.011L8 9.543l4.472-4.353a.6.6 0 11.837.86l-4.89 4.76a.6.6 0 01-.838 0l-4.89-4.76a.6.6 0 01-.012-.849z",
134
134
  fill: e
135
135
  }
136
- ) })), L0 = ({
136
+ ) })), k0 = ({
137
137
  color: e = "currentColor",
138
138
  ...o
139
139
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -142,7 +142,7 @@ const M = ({
142
142
  d: "M10.799 2.68a.6.6 0 01.011.848L6.457 8l4.353 4.472a.6.6 0 01-.86.837L5.19 8.42a.6.6 0 010-.838l4.76-4.89a.6.6 0 01.849-.012z",
143
143
  fill: e
144
144
  }
145
- ) })), k0 = ({
145
+ ) })), L0 = ({
146
146
  color: e = "currentColor",
147
147
  ...o
148
148
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -151,7 +151,7 @@ const M = ({
151
151
  d: "M5.207 13.32a.6.6 0 01-.012-.848L9.55 8 5.195 3.528a.6.6 0 11.86-.837l4.76 4.89a.6.6 0 010 .838l-4.76 4.89a.6.6 0 01-.848.012z",
152
152
  fill: e
153
153
  }
154
- ) })), N0 = ({
154
+ ) })), D0 = ({
155
155
  color: e = "currentColor",
156
156
  ...o
157
157
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -160,7 +160,7 @@ const M = ({
160
160
  d: "M13.79 2.21a.72.72 0 0 1 0 1.02L9.018 8l4.77 4.77a.72.72 0 1 1-1.018 1.02L8 9.018l-4.77 4.77a.72.72 0 1 1-1.02-1.018L6.982 8l-4.77-4.77A.72.72 0 0 1 3.23 2.21L8 6.982l4.77-4.77a.72.72 0 0 1 1.02 0Z",
161
161
  fill: e
162
162
  }
163
- ) })), w0 = ({
163
+ ) })), N0 = ({
164
164
  color: e = "currentColor",
165
165
  ...o
166
166
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -169,7 +169,7 @@ const M = ({
169
169
  d: "M12.644.156l3.2 3.2a.533.533 0 010 .754L5.177 14.777a.534.534 0 01-.247.14L.663 15.984a.533.533 0 01-.647-.647l1.067-4.267a.534.534 0 01.14-.248L11.89.156a.533.533 0 01.754 0zM10.133 3.42l-8.051 8.052-.815 3.261 3.26-.815 8.052-8.052-2.446-2.446zm2.134-2.132l-1.38 1.378 2.446 2.446 1.38-1.379-2.446-2.445z",
170
170
  fill: e
171
171
  }
172
- ) })), _0 = ({
172
+ ) })), w0 = ({
173
173
  color: e = "currentColor",
174
174
  ...o
175
175
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -187,7 +187,7 @@ const M = ({
187
187
  d: "M1.317 2.317a4.5 4.5 0 016.364 0c.117.117.223.238.32.363.095-.124.2-.245.316-.362a4.5 4.5 0 016.364 6.364l-.004.004-6.328 6.172a.5.5 0 01-.698 0L1.317 8.682a4.5 4.5 0 010-6.365zm5.657.708a3.5 3.5 0 00-4.952 4.947L8 13.802l5.977-5.83a3.5 3.5 0 00-4.952-4.947c-.235.235-.42.51-.586.815a.5.5 0 01-.878 0 3.46 3.46 0 00-.587-.815z",
188
188
  fill: e
189
189
  }
190
- ) })), B0 = ({
190
+ ) })), _0 = ({
191
191
  color: e = "currentColor",
192
192
  ...o
193
193
  }) => /* @__PURE__ */ x(f, { ...o, children: [
@@ -205,7 +205,7 @@ const M = ({
205
205
  fill: e
206
206
  }
207
207
  )
208
- ] }), z0 = ({
208
+ ] }), B0 = ({
209
209
  color: e = "currentColor",
210
210
  ...o
211
211
  }) => /* @__PURE__ */ x(f, { ...o, children: [
@@ -241,7 +241,7 @@ const M = ({
241
241
  fillRule: "evenodd"
242
242
  }
243
243
  )
244
- ] }), V0 = ({
244
+ ] }), z0 = ({
245
245
  color: e = "currentColor",
246
246
  ...o
247
247
  }) => /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -252,7 +252,7 @@ const M = ({
252
252
  fill: e,
253
253
  fillRule: "evenodd"
254
254
  }
255
- ) }), G0 = ({
255
+ ) }), V0 = ({
256
256
  color: e = "currentColor",
257
257
  ...o
258
258
  }) => /* @__PURE__ */ x(f, { ...o, children: [
@@ -280,7 +280,7 @@ const M = ({
280
280
  }
281
281
  )
282
282
  ] });
283
- var g = /* @__PURE__ */ ((e) => (e.AutoTransport = "CAT-7829f71c-2e8c-afa5-2f55-fa3634b89874", e.BillsUtilities = "CAT-79b02f2f-2adc-88f0-ac2b-4e71ead9cfc8", e.BusinessServices = "CAT-94b11142-e97b-941a-f67f-6e18d246a23f", e.Education = "CAT-bf5c9cca-c96b-b50d-440d-38d9adfda5b0", e.Entertainment = "CAT-e04e9d1e-e041-c315-2e50-094143ab3f73", e.FeesCharges = "CAT-d73ee74b-13a4-ac3e-4015-fc4ba9a62b2a", e.Financial = "CAT-6c7de3f8-de6c-7061-1dd2-b093044014bf", e.FoodDining = "CAT-bd56d35a-a9a7-6e10-66c1-5b9cc1b6c81a", e.GiftsDonations = "CAT-8edf9663-623e-4735-490e-31288f0a70b0", e.HealthFitness = "CAT-52fa4693-c088-afb2-2a99-7bc39bb23a0f", e.Home = "CAT-b709172b-4eb7-318e-3b5d-e0f0500b32ac", e.Income = "CAT-bf9f3294-4c40-1677-d269-54fbc189faf3", e.Investments = "CAT-ccd42390-9e8c-3fb6-a5d9-6c31182d9c5c", e.Kids = "CAT-0cb1d99d-f558-99e3-2282-b31f359b411a", e.PersonalCare = "CAT-e5154228-fe45-790d-a280-f6bf5ae5ac9f", e.Pets = "CAT-7cccbafa-87d7-c9a6-661b-8b3402fe9e78", e.Shopping = "CAT-aad51b46-d6f7-3da5-fd6e-492328b3023f", e.Taxes = "CAT-d00fc539-aa14-009b-4ffb-7e8c7b839954", e.Transfer = "CAT-bce48142-fea4-ff45-20d9-0a642d44de83", e.Travel = "CAT-ea23d844-cbd1-eb10-f6ac-0df9610e59ae", e.Uncategorized = "CAT-d7851c65-3353-e490-1953-fb9235e681e4", e))(g || {}), ke = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Filled = "filled", e.Transparent = "transparent", e.TwoTone = "two-tone", e))(ke || {});
283
+ var g = /* @__PURE__ */ ((e) => (e.AutoTransport = "CAT-7829f71c-2e8c-afa5-2f55-fa3634b89874", e.BillsUtilities = "CAT-79b02f2f-2adc-88f0-ac2b-4e71ead9cfc8", e.BusinessServices = "CAT-94b11142-e97b-941a-f67f-6e18d246a23f", e.Education = "CAT-bf5c9cca-c96b-b50d-440d-38d9adfda5b0", e.Entertainment = "CAT-e04e9d1e-e041-c315-2e50-094143ab3f73", e.FeesCharges = "CAT-d73ee74b-13a4-ac3e-4015-fc4ba9a62b2a", e.Financial = "CAT-6c7de3f8-de6c-7061-1dd2-b093044014bf", e.FoodDining = "CAT-bd56d35a-a9a7-6e10-66c1-5b9cc1b6c81a", e.GiftsDonations = "CAT-8edf9663-623e-4735-490e-31288f0a70b0", e.HealthFitness = "CAT-52fa4693-c088-afb2-2a99-7bc39bb23a0f", e.Home = "CAT-b709172b-4eb7-318e-3b5d-e0f0500b32ac", e.Income = "CAT-bf9f3294-4c40-1677-d269-54fbc189faf3", e.Investments = "CAT-ccd42390-9e8c-3fb6-a5d9-6c31182d9c5c", e.Kids = "CAT-0cb1d99d-f558-99e3-2282-b31f359b411a", e.PersonalCare = "CAT-e5154228-fe45-790d-a280-f6bf5ae5ac9f", e.Pets = "CAT-7cccbafa-87d7-c9a6-661b-8b3402fe9e78", e.Shopping = "CAT-aad51b46-d6f7-3da5-fd6e-492328b3023f", e.Taxes = "CAT-d00fc539-aa14-009b-4ffb-7e8c7b839954", e.Transfer = "CAT-bce48142-fea4-ff45-20d9-0a642d44de83", e.Travel = "CAT-ea23d844-cbd1-eb10-f6ac-0df9610e59ae", e.Uncategorized = "CAT-d7851c65-3353-e490-1953-fb9235e681e4", e))(g || {}), De = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Filled = "filled", e.Transparent = "transparent", e.TwoTone = "two-tone", e))(De || {});
284
284
  const oe = {
285
285
  guid: g.Uncategorized,
286
286
  colorName: "uncategorized",
@@ -387,12 +387,12 @@ const oe = {
387
387
  icon: "airplane_ticket"
388
388
  },
389
389
  oe
390
- ], we = 0.625, _e = ({
390
+ ], we = 0.625, Pe = ({
391
391
  categoryGuid: e,
392
392
  icon_ratio: o = we,
393
393
  size: i = 32,
394
394
  sx: n = {},
395
- variant: t = "filled"
395
+ variant: r = "filled"
396
396
  }) => {
397
397
  const d = H(), c = C.useMemo(
398
398
  () => Ne.find((u) => u.guid === e) ?? oe,
@@ -404,12 +404,12 @@ const oe = {
404
404
  alignItems: "center",
405
405
  bgcolor: () => {
406
406
  let u = l;
407
- return t === "twotone" && (u = `${u}20`), t === "transparent" || t === "basic" ? "transparent" : u;
407
+ return r === "twotone" && (u = `${u}20`), r === "transparent" || r === "basic" ? "transparent" : u;
408
408
  },
409
409
  borderRadius: 1,
410
410
  color: () => {
411
- const u = t === "filled" ? d.palette.common.white : l;
412
- return t === "basic" ? d.palette.text.primary : u;
411
+ const u = r === "filled" ? d.palette.common.white : l;
412
+ return r === "basic" ? d.palette.text.primary : u;
413
413
  },
414
414
  height: i,
415
415
  justifyContent: "center",
@@ -418,13 +418,13 @@ const oe = {
418
418
  children: /* @__PURE__ */ a(M, { name: c.icon, size: i * o })
419
419
  }
420
420
  );
421
- }, Pe = ({
421
+ }, _e = ({
422
422
  items: e,
423
423
  onChange: o,
424
424
  isValid: i,
425
425
  selected: n
426
426
  }) => {
427
- const t = H(), d = e?.map((c) => {
427
+ const r = H(), d = e?.map((c) => {
428
428
  const l = c.getValue({ isValid: i });
429
429
  return {
430
430
  label: c.label,
@@ -448,11 +448,11 @@ const oe = {
448
448
  boxShadow: "0px 0px 0px 2px rgba(82, 138, 224, 0.8)"
449
449
  },
450
450
  "&:hover": {
451
- bgcolor: t.palette.action.hover,
452
- borderTop: `1px solid ${t.palette.secondary.light}`
451
+ bgcolor: r.palette.action.hover,
452
+ borderTop: `1px solid ${r.palette.secondary.light}`
453
453
  },
454
454
  "&.Mui-selected": {
455
- border: `2px solid ${t.palette.primary.main} !important`,
455
+ border: `2px solid ${r.palette.primary.main} !important`,
456
456
  marginTop: "-2px !important",
457
457
  color: "primary"
458
458
  }
@@ -462,35 +462,35 @@ const oe = {
462
462
  },
463
463
  c.label
464
464
  )) }) });
465
- }, U0 = ({
465
+ }, G0 = ({
466
466
  copy: e,
467
467
  dateRange: o,
468
468
  onRangeChanged: i,
469
469
  selectedShortcut: n = e.dateRangeThisMonth,
470
- sx: t = {}
470
+ sx: r = {}
471
471
  }) => {
472
472
  const d = H(), c = me(d.breakpoints.down("sm")), l = C.useMemo(() => {
473
- const r = he(), u = ge(r, 1), T = fe(r, 1);
473
+ const t = he(), u = ge(t, 1), T = fe(t, 1);
474
474
  return [
475
475
  {
476
476
  label: e.dateRangeThisMonth,
477
- getValue: () => [W(r), $(r)]
477
+ getValue: () => [W(t), U(t)]
478
478
  },
479
479
  {
480
480
  label: e.dateRangeLastMonth,
481
- getValue: () => [W(u), $(u)]
481
+ getValue: () => [W(u), U(u)]
482
482
  },
483
483
  {
484
484
  label: e.dateRangeLast30Days,
485
- getValue: () => [K(r, 30), r]
485
+ getValue: () => [Y(t, 30), t]
486
486
  },
487
487
  {
488
488
  label: e.dateRangeLast90Days,
489
- getValue: () => [K(r, 90), r]
489
+ getValue: () => [Y(t, 90), t]
490
490
  },
491
491
  {
492
492
  label: e.dateRangeYTD,
493
- getValue: () => [Z(r), r]
493
+ getValue: () => [Z(t), t]
494
494
  },
495
495
  {
496
496
  label: e.dateRangeLastYear,
@@ -498,12 +498,12 @@ const oe = {
498
498
  },
499
499
  {
500
500
  label: e.dateRangeCustom,
501
- getValue: () => [r, r]
501
+ getValue: () => [t, t]
502
502
  }
503
503
  ];
504
- }, [e]), s = (r, u) => {
504
+ }, [e]), s = (t, u) => {
505
505
  const T = u.shortcut;
506
- i?.(r, T ? T.label : e.dateRangeCustom);
506
+ i?.(t, T ? T.label : e.dateRangeCustom);
507
507
  };
508
508
  return /* @__PURE__ */ a(F, { gap: 16, m: 8, children: /* @__PURE__ */ a(be, { dateAdapter: Ce, children: /* @__PURE__ */ a(
509
509
  Te,
@@ -527,10 +527,10 @@ const oe = {
527
527
  },
528
528
  slots: {
529
529
  leftArrowIcon: () => /* @__PURE__ */ a(M, { name: "chevron_left", size: 28 }),
530
- shortcuts: (r) => /* @__PURE__ */ a(Pe, { selected: n, ...r }),
530
+ shortcuts: (t) => /* @__PURE__ */ a(_e, { selected: n, ...t }),
531
531
  rightArrowIcon: () => /* @__PURE__ */ a(M, { name: "chevron_right", size: 28 })
532
532
  },
533
- sx: { ...t },
533
+ sx: { ...r },
534
534
  value: o
535
535
  }
536
536
  ) }) });
@@ -541,7 +541,7 @@ const oe = {
541
541
  isPrimaryDisabled: o,
542
542
  onPrimaryAction: i,
543
543
  onSecondaryAction: n,
544
- primaryColor: t = "primary",
544
+ primaryColor: r = "primary",
545
545
  primaryText: d = "Save",
546
546
  secondaryColor: c = "primary",
547
547
  secondaryText: l = "Cancel"
@@ -565,7 +565,7 @@ const oe = {
565
565
  i && /* @__PURE__ */ a(
566
566
  B,
567
567
  {
568
- color: t,
568
+ color: r,
569
569
  disabled: o,
570
570
  onClick: i,
571
571
  variant: "contained",
@@ -574,12 +574,12 @@ const oe = {
574
574
  )
575
575
  ]
576
576
  }
577
- ), D = ({
577
+ ), k = ({
578
578
  bold: e,
579
579
  className: o = "",
580
580
  children: i,
581
581
  color: n,
582
- sx: t = {},
582
+ sx: r = {},
583
583
  truncate: d = !0,
584
584
  uppercase: c,
585
585
  ...l
@@ -633,14 +633,14 @@ const oe = {
633
633
  c ? {
634
634
  textTransform: "uppercase"
635
635
  } : {},
636
- ...Array.isArray(t) ? t : [t]
636
+ ...Array.isArray(r) ? r : [r]
637
637
  ],
638
638
  ...l,
639
639
  children: i
640
640
  }
641
641
  );
642
- }, ze = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(D, { className: `mx-kmui-text h1 ${e}`, component: "h1", variant: "h1", ...i, children: o }), W0 = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(D, { className: `mx-kmui-text h2 ${e}`, component: "h2", variant: "h2", ...i, children: o }), Z0 = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(D, { className: `mx-kmui-text h3 ${e}`, component: "h3", variant: "h3", ...i, children: o }), K0 = ({ className: e = "", children: o, truncate: i, ...n }) => /* @__PURE__ */ a(
643
- D,
642
+ }, ze = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h1 ${e}`, component: "h1", variant: "h1", ...i, children: o }), U0 = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h2 ${e}`, component: "h2", variant: "h2", ...i, children: o }), W0 = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h3 ${e}`, component: "h3", variant: "h3", ...i, children: o }), Z0 = ({ className: e = "", children: o, truncate: i, ...n }) => /* @__PURE__ */ a(
643
+ k,
644
644
  {
645
645
  className: `mx-kmui-text p ${e}`,
646
646
  component: "p",
@@ -669,22 +669,22 @@ const oe = {
669
669
  disableSave: o,
670
670
  id: i,
671
671
  isOpen: n,
672
- onClose: t,
672
+ onClose: r,
673
673
  onSave: d,
674
674
  primaryText: c,
675
675
  secondaryText: l,
676
676
  children: s,
677
- ...r
677
+ ...t
678
678
  }) => /* @__PURE__ */ x(
679
679
  Ae,
680
680
  {
681
681
  anchor: "right",
682
682
  className: `mx-kmui-drawer ${e}`,
683
683
  id: i ?? void 0,
684
- onClose: t,
684
+ onClose: r,
685
685
  open: n,
686
686
  variant: "temporary",
687
- ...r,
687
+ ...t,
688
688
  children: [
689
689
  s,
690
690
  d && /* @__PURE__ */ a(
@@ -692,19 +692,19 @@ const oe = {
692
692
  {
693
693
  isPrimaryDisabled: o,
694
694
  onPrimaryAction: d,
695
- onSecondaryAction: t,
695
+ onSecondaryAction: r,
696
696
  primaryText: c,
697
697
  secondaryText: l
698
698
  }
699
699
  )
700
700
  ]
701
701
  }
702
- ), te = 32, V = "https://content.moneydesktop.com/storage/MD_Assets", Ve = `${V}/serenity/default_institution_logo.png`, j0 = ({
702
+ ), re = 32, V = "https://content.moneydesktop.com/storage/MD_Assets", Ve = `${V}/serenity/default_institution_logo.png`, K0 = ({
703
703
  alt: e,
704
704
  institutionGuid: o,
705
705
  logoUrl: i,
706
- size: n = te,
707
- ...t
706
+ size: n = re,
707
+ ...r
708
708
  }) => /* @__PURE__ */ a(
709
709
  "img",
710
710
  {
@@ -716,17 +716,17 @@ const oe = {
716
716
  borderRadius: 4
717
717
  },
718
718
  width: n,
719
- ...t
719
+ ...r
720
720
  }
721
- ), Q0 = ({
721
+ ), j0 = ({
722
722
  alt: e = "",
723
723
  categoryGuid: o,
724
724
  merchantGuid: i,
725
- size: n = te,
726
- ...t
725
+ size: n = re,
726
+ ...r
727
727
  }) => {
728
728
  const [d, c] = C.useState(!1), l = H();
729
- return /* @__PURE__ */ x(Q, { display: "inline-block", position: "relative", ...t, children: [
729
+ return /* @__PURE__ */ x(Q, { display: "inline-block", position: "relative", ...r, children: [
730
730
  i && !d && /* @__PURE__ */ a(
731
731
  "img",
732
732
  {
@@ -744,14 +744,14 @@ const oe = {
744
744
  width: n
745
745
  }
746
746
  ),
747
- /* @__PURE__ */ a(_e, { categoryGuid: o, size: n })
747
+ /* @__PURE__ */ a(Pe, { categoryGuid: o, size: n })
748
748
  ] });
749
- }, J0 = ({
749
+ }, Q0 = ({
750
750
  disabled: e = !1,
751
751
  label: o = "",
752
752
  shrink: i = !0,
753
753
  variant: n = "outlined",
754
- ...t
754
+ ...r
755
755
  }) => /* @__PURE__ */ a(
756
756
  Ee,
757
757
  {
@@ -761,23 +761,23 @@ const oe = {
761
761
  disabled: e,
762
762
  label: o,
763
763
  variant: n,
764
- ...t
764
+ ...r
765
765
  }
766
766
  );
767
767
  function Ge(e) {
768
768
  return /* @__PURE__ */ a(J, { ...e, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
769
769
  }
770
- const q0 = ({
770
+ const J0 = ({
771
771
  open: e,
772
772
  handleClose: o,
773
773
  message: i,
774
774
  autoHideDuration: n = 3e3,
775
- severity: t = "success",
775
+ severity: r = "success",
776
776
  snackbarSx: d,
777
777
  showAction: c = !1,
778
778
  showClose: l = !1,
779
779
  actionText: s = "Undo",
780
- onActionClick: r,
780
+ onActionClick: t,
781
781
  multiLine: u = !1
782
782
  }) => {
783
783
  const T = H(), L = /* @__PURE__ */ x(
@@ -794,7 +794,7 @@ const q0 = ({
794
794
  B,
795
795
  {
796
796
  color: "inherit",
797
- onClick: r || o,
797
+ onClick: t || o,
798
798
  size: "small",
799
799
  sx: {
800
800
  color: T.palette.success.contrastText,
@@ -832,7 +832,7 @@ const q0 = ({
832
832
  Ie,
833
833
  {
834
834
  action: L,
835
- severity: t,
835
+ severity: r,
836
836
  sx: {
837
837
  display: "flex",
838
838
  alignItems: "stretch",
@@ -854,7 +854,7 @@ const q0 = ({
854
854
  },
855
855
  variant: "filled",
856
856
  children: /* @__PURE__ */ a(
857
- D,
857
+ k,
858
858
  {
859
859
  sx: {
860
860
  lineHeight: T.typography.body1.lineHeight,
@@ -874,50 +874,50 @@ const q0 = ({
874
874
  REACT: "react",
875
875
  REACT_NATIVE: "react_native",
876
876
  NATIVE: "native"
877
- }, _ = {
877
+ }, P = {
878
878
  LIGHT: "light",
879
879
  DARK: "dark"
880
- }, re = C.createContext(ee), ie = C.createContext(
881
- z(_.LIGHT, O.REACT_NATIVE)
882
- ), eo = ({
880
+ }, te = C.createContext(ee), ie = C.createContext(
881
+ z(P.LIGHT, O.REACT_NATIVE)
882
+ ), q0 = ({
883
883
  children: e,
884
884
  target: o = O.REACT,
885
- theme: i = _.LIGHT,
885
+ theme: i = P.LIGHT,
886
886
  tokenOverrides: n
887
887
  }) => {
888
- const [t, d] = C.useState(i === _.LIGHT ? ee : ve), c = C.useMemo(() => ({
888
+ const [r, d] = C.useState(i === P.LIGHT ? ee : ve), c = C.useMemo(() => ({
889
889
  ...n
890
890
  }), [n]);
891
891
  return C.useEffect(() => {
892
892
  const l = z(i, o, { ...c });
893
893
  d(l);
894
- }, [i, o, c]), o === O.REACT ? /* @__PURE__ */ a(re.Provider, { value: t, children: e }) : (console.warn("DEPRECATED: Use static values instead of tokens"), /* @__PURE__ */ a(ie.Provider, { value: t, children: e }));
895
- }, oo = (e = O.REACT, o = {}) => {
896
- const i = e === O.REACT ? re : ie, n = C.useContext(i);
897
- return n || z(_.LIGHT, e, { ...o });
898
- }, to = ({
899
- component: e = k,
894
+ }, [i, o, c]), o === O.REACT ? /* @__PURE__ */ a(te.Provider, { value: r, children: e }) : (console.warn("DEPRECATED: Use static values instead of tokens"), /* @__PURE__ */ a(ie.Provider, { value: r, children: e }));
895
+ }, eo = (e = O.REACT, o = {}) => {
896
+ const i = e === O.REACT ? te : ie, n = C.useContext(i);
897
+ return n || z(P.LIGHT, e, { ...o });
898
+ }, oo = ({
899
+ component: e = D,
900
900
  variant: o = "outlined",
901
901
  selected: i,
902
902
  onChange: n,
903
- headline: t,
903
+ headline: r,
904
904
  message: d,
905
905
  name: c,
906
906
  value: l,
907
907
  disabled: s = !1,
908
- error: r = !1,
908
+ error: t = !1,
909
909
  icon: u = !1,
910
910
  sx: T = {},
911
911
  ...L
912
912
  }) => {
913
913
  const m = H(), ae = () => {
914
914
  if (!s && n) {
915
- const U = e === k ? !0 : !i;
915
+ const $ = e === D ? !0 : !i;
916
916
  n({
917
- target: { value: l, checked: U }
918
- }, U);
917
+ target: { value: l, checked: $ }
918
+ }, $);
919
919
  }
920
- }, ne = () => m.palette.background.paper, G = () => r ? `inset 0px 0px 0px 2px ${m.palette.error.main}` : s ? i ? `inset 0px 0px 0px 2px ${m.palette.action.disabled}` : o === "outlined" ? `inset 0px 0px 0px 1px ${m.palette.action.disabledBackground}` : void 0 : i ? `inset 0px 0px 0px 2px ${b(m.palette.primary.main, 0.5)}` : o === "outlined" ? `inset 0px 0px 0px 1px ${b(m.palette.common.black, 0.23)}` : void 0, le = () => s || r ? m.palette.background.paper : b(m.palette.primary.main, 0.1), ce = () => s || r ? G() : i ? `inset 0px 0px 0px 2px ${b(m.palette.primary.main, 0.5)}` : o === "outlined" ? `inset 0px 0px 0px 1px ${b(m.palette.primary.main, 0.5)}` : void 0, se = () => s || r ? m.palette.background.paper : b(m.palette.primary.main, 0.3);
920
+ }, ne = () => m.palette.background.paper, G = () => t ? `inset 0px 0px 0px 2px ${m.palette.error.main}` : s ? i ? `inset 0px 0px 0px 2px ${m.palette.action.disabled}` : o === "outlined" ? `inset 0px 0px 0px 1px ${m.palette.action.disabledBackground}` : void 0 : i ? `inset 0px 0px 0px 2px ${b(m.palette.primary.main, 0.5)}` : o === "outlined" ? `inset 0px 0px 0px 1px ${b(m.palette.common.black, 0.23)}` : void 0, le = () => s || t ? m.palette.background.paper : b(m.palette.primary.main, 0.1), ce = () => s || t ? G() : i ? `inset 0px 0px 0px 2px ${b(m.palette.primary.main, 0.5)}` : o === "outlined" ? `inset 0px 0px 0px 1px ${b(m.palette.primary.main, 0.5)}` : void 0, se = () => s || t ? m.palette.background.paper : b(m.palette.primary.main, 0.3);
921
921
  return /* @__PURE__ */ x(
922
922
  He,
923
923
  {
@@ -956,7 +956,7 @@ const q0 = ({
956
956
  variant: o,
957
957
  children: [
958
958
  u && /* @__PURE__ */ a(
959
- Y,
959
+ X,
960
960
  {
961
961
  sx: {
962
962
  mr: 12,
@@ -966,12 +966,12 @@ const q0 = ({
966
966
  children: u
967
967
  }
968
968
  ),
969
- /* @__PURE__ */ x(Y, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
970
- t && /* @__PURE__ */ a(X, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: t }),
971
- /* @__PURE__ */ a(X, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: d })
969
+ /* @__PURE__ */ x(X, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
970
+ r && /* @__PURE__ */ a(K, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: r }),
971
+ /* @__PURE__ */ a(K, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: d })
972
972
  ] }),
973
- e === k ? /* @__PURE__ */ a(
974
- k,
973
+ e === D ? /* @__PURE__ */ a(
974
+ D,
975
975
  {
976
976
  checked: i,
977
977
  disabled: s,
@@ -1025,7 +1025,7 @@ const q0 = ({
1025
1025
  700: N(e, 0.5),
1026
1026
  800: N(e, 0.65),
1027
1027
  900: N(e, 0.75)
1028
- }), R = "#FFFFFF", w = "#000000", Ue = "#F9F9F9", $e = "#1A1A1A", E = {
1028
+ }), R = "#FFFFFF", w = "#000000", $e = "#F9F9F9", E = {
1029
1029
  PRIMARY: "#2C64EF",
1030
1030
  SECONDARY: "#808080",
1031
1031
  INFO: "#2C64EF",
@@ -1094,16 +1094,16 @@ const q0 = ({
1094
1094
  TRANSFER: "#75C7B7",
1095
1095
  TRAVEL: "#76ACF7",
1096
1096
  UNCATEGORIZED: "#BCC6D4"
1097
- }, We = (e, o) => {
1098
- const i = A(o?.primary || E.PRIMARY), n = A(o?.secondary || E.SECONDARY), t = A(o?.error || E.ERROR), d = A(o?.warning || E.WARNING), c = A(o?.info || E.INFO), l = A(o?.success || E.SUCCESS), s = A(o?.grey || E.GREY), r = e === v.LIGHT;
1097
+ }, Ue = (e, o) => {
1098
+ const i = A(o?.primary || E.PRIMARY), n = A(o?.secondary || E.SECONDARY), r = A(o?.error || E.ERROR), d = A(o?.warning || E.WARNING), c = A(o?.info || E.INFO), l = A(o?.success || E.SUCCESS), s = A(o?.grey || E.GREY), t = e === v.LIGHT;
1099
1099
  return {
1100
1100
  mode: e,
1101
1101
  // DEPRECATED: Use grey instead
1102
1102
  border: {
1103
1103
  /* DEPRECATED: Use light instead */
1104
- lighter: r ? s[300] : s[700],
1105
- light: r ? s[300] : s[700],
1106
- main: r ? s[400] : s[600],
1104
+ lighter: t ? s[300] : s[700],
1105
+ light: t ? s[300] : s[700],
1106
+ main: t ? s[400] : s[600],
1107
1107
  dark: s[500],
1108
1108
  /* DEPRECATED: Use light instead */
1109
1109
  darker: s[500]
@@ -1115,120 +1115,120 @@ const q0 = ({
1115
1115
  primary: {
1116
1116
  ...i,
1117
1117
  /* DEPRECATED: Use light instead */
1118
- lighter: r ? i[100] : i[800],
1119
- light: r ? i[300] : i[600],
1120
- main: r ? i[500] : i[400],
1121
- dark: r ? i[700] : i[200],
1118
+ lighter: t ? i[100] : i[800],
1119
+ light: t ? i[300] : i[600],
1120
+ main: t ? i[500] : i[400],
1121
+ dark: t ? i[700] : i[200],
1122
1122
  /* DEPRECATED: Use dark instead */
1123
- darker: r ? i[900] : i[100]
1123
+ darker: t ? i[900] : i[100]
1124
1124
  },
1125
1125
  secondary: {
1126
1126
  ...n,
1127
1127
  /* DEPRECATED: Use light instead */
1128
- lighter: r ? n[100] : n[800],
1129
- light: r ? n[300] : n[600],
1130
- main: r ? n[500] : n[400],
1131
- dark: r ? n[700] : n[200],
1128
+ lighter: t ? n[100] : n[800],
1129
+ light: t ? n[300] : n[600],
1130
+ main: t ? n[500] : n[400],
1131
+ dark: t ? n[700] : n[200],
1132
1132
  /* DEPRECATED: Use dark instead */
1133
- darker: r ? n[900] : n[100]
1133
+ darker: t ? n[900] : n[100]
1134
1134
  },
1135
1135
  neutral: {
1136
1136
  ...s,
1137
1137
  /* DEPRECATED: Use light instead */
1138
- lighter: r ? s[100] : s[800],
1139
- light: r ? s[300] : s[600],
1140
- main: r ? s[500] : s[400],
1141
- dark: r ? s[700] : s[200],
1138
+ lighter: t ? s[100] : s[800],
1139
+ light: t ? s[300] : s[600],
1140
+ main: t ? s[500] : s[400],
1141
+ dark: t ? s[700] : s[200],
1142
1142
  /* DEPRECATED: Use dark instead */
1143
- darker: r ? s[900] : s[100],
1144
- contrastText: Oe(r ? s[700] : s[400], "#fff") > 4.5 ? R : s[900]
1143
+ darker: t ? s[900] : s[100],
1144
+ contrastText: Oe(t ? s[700] : s[400], "#fff") > 4.5 ? R : s[900]
1145
1145
  },
1146
1146
  text: {
1147
- primary: r ? s[900] : R,
1148
- secondary: r ? s[600] : b(R, 0.7),
1149
- disabled: r ? s[500] : b(R, 0.38)
1147
+ primary: t ? s[900] : R,
1148
+ secondary: t ? s[600] : b(R, 0.7),
1149
+ disabled: t ? s[500] : b(R, 0.38)
1150
1150
  },
1151
1151
  error: {
1152
- ...t,
1152
+ ...r,
1153
1153
  /* DEPRECATED: Use light instead */
1154
- lighter: r ? t[100] : t[800],
1155
- light: r ? t[300] : t[600],
1156
- main: r ? t[500] : t[400],
1157
- dark: r ? t[700] : t[200],
1154
+ lighter: t ? r[100] : r[800],
1155
+ light: t ? r[300] : r[600],
1156
+ main: t ? r[500] : r[400],
1157
+ dark: t ? r[700] : r[200],
1158
1158
  /* DEPRECATED: Use light instead */
1159
- darker: r ? t[900] : t[100]
1159
+ darker: t ? r[900] : r[100]
1160
1160
  },
1161
1161
  warning: {
1162
1162
  ...d,
1163
1163
  /* DEPRECATED: Use light instead */
1164
- lighter: r ? d[100] : d[800],
1165
- light: r ? d[300] : d[600],
1166
- main: r ? d[500] : d[400],
1167
- dark: r ? d[700] : d[200],
1164
+ lighter: t ? d[100] : d[800],
1165
+ light: t ? d[300] : d[600],
1166
+ main: t ? d[500] : d[400],
1167
+ dark: t ? d[700] : d[200],
1168
1168
  /* DEPRECATED: Use light instead */
1169
- darker: r ? d[900] : d[100]
1169
+ darker: t ? d[900] : d[100]
1170
1170
  },
1171
1171
  info: {
1172
1172
  ...c,
1173
1173
  /* DEPRECATED: Use light instead */
1174
- lighter: r ? c[100] : c[800],
1175
- light: r ? c[300] : c[600],
1176
- main: r ? c[500] : c[400],
1177
- dark: r ? c[700] : c[200],
1174
+ lighter: t ? c[100] : c[800],
1175
+ light: t ? c[300] : c[600],
1176
+ main: t ? c[500] : c[400],
1177
+ dark: t ? c[700] : c[200],
1178
1178
  /* DEPRECATED: Use light instead */
1179
- darker: r ? c[900] : c[100]
1179
+ darker: t ? c[900] : c[100]
1180
1180
  },
1181
1181
  success: {
1182
1182
  ...l,
1183
1183
  /* DEPRECATED: Use light instead */
1184
- lighter: r ? l[100] : l[800],
1185
- light: r ? l[300] : l[600],
1186
- main: r ? l[500] : l[400],
1187
- dark: r ? l[700] : l[200],
1184
+ lighter: t ? l[100] : l[800],
1185
+ light: t ? l[300] : l[600],
1186
+ main: t ? l[500] : l[400],
1187
+ dark: t ? l[700] : l[200],
1188
1188
  /* DEPRECATED: Use light instead */
1189
- darker: r ? l[900] : l[100]
1189
+ darker: t ? l[900] : l[100]
1190
1190
  },
1191
1191
  grey: s,
1192
1192
  action: {
1193
- active: r ? b(w, 0.56) : b(R, 0.56),
1194
- hoverOpacity: r ? 0.1 : 0.2,
1195
- selectedOpacity: r ? 0.16 : 0.25,
1193
+ active: t ? b(w, 0.56) : b(R, 0.56),
1194
+ hoverOpacity: t ? 0.1 : 0.2,
1195
+ selectedOpacity: t ? 0.16 : 0.25,
1196
1196
  focusOpacity: 0.3
1197
1197
  },
1198
1198
  background: {
1199
- default: r ? Ue : w,
1199
+ default: t ? $e : w,
1200
1200
  // ? paletteCustomizations?.background?.default?.light || DEFAULT_BACKGROUND_LIGHT
1201
1201
  // : paletteCustomizations?.background?.default?.dark || DEFAULT_BACKGROUND_DARK,
1202
- paper: r ? R : $e,
1202
+ paper: t ? R : s[900],
1203
1203
  // ? paletteCustomizations?.background?.paper?.light || WHITE
1204
1204
  // : paletteCustomizations?.background?.paper?.dark || BLACK,
1205
- highlight: r ? s[200] : s[600],
1206
- highlightPrimary: r ? i[100] : i[500]
1205
+ highlight: t ? s[200] : s[600],
1206
+ highlightPrimary: t ? i[100] : i[500]
1207
1207
  },
1208
- divider: r ? b(w, 0.12) : b(R, 0.24),
1208
+ divider: t ? b(w, 0.12) : b(R, 0.24),
1209
1209
  categories: {
1210
- autoTransport: r ? p.AUTO_TRANSPORTT : h.AUTO_TRANSPORTT,
1211
- billsUtilities: r ? p.BILLS_UTILITIES : h.BILLS_UTILITIES,
1212
- businessServices: r ? p.BUSINESS_SERVICES : h.BUSINESS_SERVICES,
1213
- education: r ? p.EDUCATION : h.EDUCATION,
1214
- entertainment: r ? p.ENTERTAINMENT : h.ENTERTAINMENT,
1215
- feesCharges: r ? p.FEES_CHARGES : h.FEES_CHARGES,
1216
- financial: r ? p.FINANCIAL : h.FINANCIAL,
1217
- foodDining: r ? p.FOOD_DINING : h.FOOD_DINING,
1218
- giftsDonations: r ? p.GIFTS_DONATIONS : h.GIFTS_DONATIONS,
1219
- healthFitness: r ? p.HEALTH_FITNESS : h.HEALTH_FITNESS,
1220
- home: r ? p.HOME : h.HOME,
1221
- income: r ? p.INCOME : h.INCOME,
1222
- investments: r ? p.INVESTMENTS : h.INVESTMENTS,
1223
- kids: r ? p.KIDS : h.KIDS,
1224
- others: r ? p.OTHERS : h.OTHERS,
1225
- personalCare: r ? p.PERSONAL_CARE : h.PERSONAL_CARE,
1226
- pets: r ? p.PETS : h.PETS,
1227
- shopping: r ? p.SHOPPING : h.SHOPPING,
1228
- taxes: r ? p.TAXES : h.TAXES,
1229
- transfer: r ? p.TRANSFER : h.TRANSFER,
1230
- travel: r ? p.TRAVEL : h.TRAVEL,
1231
- uncategorized: r ? p.UNCATEGORIZED : h.UNCATEGORIZED
1210
+ autoTransport: t ? p.AUTO_TRANSPORTT : h.AUTO_TRANSPORTT,
1211
+ billsUtilities: t ? p.BILLS_UTILITIES : h.BILLS_UTILITIES,
1212
+ businessServices: t ? p.BUSINESS_SERVICES : h.BUSINESS_SERVICES,
1213
+ education: t ? p.EDUCATION : h.EDUCATION,
1214
+ entertainment: t ? p.ENTERTAINMENT : h.ENTERTAINMENT,
1215
+ feesCharges: t ? p.FEES_CHARGES : h.FEES_CHARGES,
1216
+ financial: t ? p.FINANCIAL : h.FINANCIAL,
1217
+ foodDining: t ? p.FOOD_DINING : h.FOOD_DINING,
1218
+ giftsDonations: t ? p.GIFTS_DONATIONS : h.GIFTS_DONATIONS,
1219
+ healthFitness: t ? p.HEALTH_FITNESS : h.HEALTH_FITNESS,
1220
+ home: t ? p.HOME : h.HOME,
1221
+ income: t ? p.INCOME : h.INCOME,
1222
+ investments: t ? p.INVESTMENTS : h.INVESTMENTS,
1223
+ kids: t ? p.KIDS : h.KIDS,
1224
+ others: t ? p.OTHERS : h.OTHERS,
1225
+ personalCare: t ? p.PERSONAL_CARE : h.PERSONAL_CARE,
1226
+ pets: t ? p.PETS : h.PETS,
1227
+ shopping: t ? p.SHOPPING : h.SHOPPING,
1228
+ taxes: t ? p.TAXES : h.TAXES,
1229
+ transfer: t ? p.TRANSFER : h.TRANSFER,
1230
+ travel: t ? p.TRAVEL : h.TRAVEL,
1231
+ uncategorized: t ? p.UNCATEGORIZED : h.UNCATEGORIZED
1232
1232
  },
1233
1233
  chart: {
1234
1234
  chart1: S.CHART1,
@@ -1248,8 +1248,8 @@ const q0 = ({
1248
1248
  chartMono6: I.CHART_MONO6
1249
1249
  }
1250
1250
  };
1251
- }, Ze = "Inter, Helvetica, Arial, sans-serif", Ke = (e) => {
1252
- const o = e?.fontFamily || Ze;
1251
+ }, We = "Inter, Helvetica, Arial, sans-serif", Ze = (e) => {
1252
+ const o = e?.fontFamily || We;
1253
1253
  return {
1254
1254
  fontFamily: o,
1255
1255
  fontSize: 15,
@@ -1382,15 +1382,15 @@ const q0 = ({
1382
1382
  ...e
1383
1383
  };
1384
1384
  };
1385
- De.setLicenseKey(
1385
+ ke.setLicenseKey(
1386
1386
  "6e7dd593526efa1f157230ecf06c9b02Tz0xMDA5NjAsRT0xNzYyMDQxNjAwMDAwLFM9cHJvLExNPWFubnVhbCxQVj1RMy0yMDI0LEtWPTI="
1387
1387
  );
1388
- const P = [...j().shadows];
1389
- P[1] = "0px 2px 8px rgba(106, 115, 129, 0.12)";
1390
- P[2] = "0px 6px 12px rgba(106, 115, 129, 0.16), 0px 3px 8px rgba(87, 102, 117, 0.06)";
1391
- P[3] = "0px 12px 20px rgba(106, 115, 129, 0.22)";
1388
+ const _ = [...j().shadows];
1389
+ _[1] = "0px 2px 8px rgba(106, 115, 129, 0.12)";
1390
+ _[2] = "0px 6px 12px rgba(106, 115, 129, 0.16), 0px 3px 8px rgba(87, 102, 117, 0.06)";
1391
+ _[3] = "0px 12px 20px rgba(106, 115, 129, 0.22)";
1392
1392
  const ro = (e, o) => {
1393
- const i = We(e, o?.paletteOptions), n = Ke(o?.typographyOptions);
1393
+ const i = Ue(e, o?.paletteOptions), n = Ze(o?.typographyOptions);
1394
1394
  return j({
1395
1395
  breakpoints: {
1396
1396
  values: {
@@ -1402,7 +1402,7 @@ const ro = (e, o) => {
1402
1402
  }
1403
1403
  },
1404
1404
  palette: i,
1405
- shadows: P,
1405
+ shadows: _,
1406
1406
  shape: {
1407
1407
  borderRadius: o?.shapeOptions?.borderRadius || 4
1408
1408
  },
@@ -1421,19 +1421,19 @@ const ro = (e, o) => {
1421
1421
  variant: "outlined"
1422
1422
  },
1423
1423
  styleOverrides: {
1424
- root: ({ theme: t, ownerState: d }) => {
1424
+ root: ({ theme: r, ownerState: d }) => {
1425
1425
  const c = d.severity || "info";
1426
- let l = t.palette.mode === v.LIGHT ? t.palette[c]?.[50] : t.palette[c]?.[800];
1426
+ let l = r.palette.mode === v.LIGHT ? r.palette[c]?.[50] : r.palette[c]?.[800];
1427
1427
  if (d.variant === "filled") {
1428
1428
  const s = c === "warning";
1429
- l = t.palette[c]?.[s ? 400 : 600];
1429
+ l = r.palette[c]?.[s ? 400 : 600];
1430
1430
  }
1431
1431
  return {
1432
1432
  backgroundColor: l,
1433
- borderRadius: t.shape.borderRadius,
1433
+ borderRadius: r.shape.borderRadius,
1434
1434
  "& .MuiAlert-message": {
1435
- fontSize: t.typography.subtitle1.fontSize,
1436
- lineHeight: t.typography.subtitle1.lineHeight,
1435
+ fontSize: r.typography.subtitle1.fontSize,
1436
+ lineHeight: r.typography.subtitle1.lineHeight,
1437
1437
  marginTop: "auto",
1438
1438
  marginBottom: "auto"
1439
1439
  },
@@ -1459,14 +1459,14 @@ const ro = (e, o) => {
1459
1459
  disableElevation: !0
1460
1460
  },
1461
1461
  styleOverrides: {
1462
- root: ({ theme: t }) => ({
1462
+ root: ({ theme: r }) => ({
1463
1463
  fontWeight: 600,
1464
1464
  textTransform: "none",
1465
1465
  "&.Mui-disabled": {
1466
1466
  cursor: "not-allowed"
1467
1467
  },
1468
1468
  "&.Mui-focusVisible": {
1469
- outline: `2px solid ${t.palette.info.main}`,
1469
+ outline: `2px solid ${r.palette.info.main}`,
1470
1470
  outlineOffset: "2px"
1471
1471
  }
1472
1472
  }),
@@ -1532,22 +1532,22 @@ const ro = (e, o) => {
1532
1532
  },
1533
1533
  MuiDataGrid: {
1534
1534
  styleOverrides: {
1535
- root: ({ theme: t }) => ({
1535
+ root: ({ theme: r }) => ({
1536
1536
  border: "none",
1537
1537
  borderRadius: 0,
1538
- fontSize: t.typography.body2.fontSize,
1538
+ fontSize: r.typography.body2.fontSize,
1539
1539
  "& .MuiDataGrid-cell": {
1540
1540
  display: "flex",
1541
1541
  alignItems: "center",
1542
1542
  borderTop: "1px solid",
1543
- borderColor: t.palette.background.highlight
1543
+ borderColor: r.palette.background.highlight
1544
1544
  },
1545
1545
  "& .MuiDataGrid-cell:focus": { outline: "unset" },
1546
1546
  "& .MuiDataGrid-iconSeparator": { display: "none" },
1547
1547
  "& .MuiDataGrid-columnHeaders": {
1548
- backgroundColor: t.palette.background.paper,
1548
+ backgroundColor: r.palette.background.paper,
1549
1549
  borderBottom: "2px solid",
1550
- borderColor: t.palette.divider
1550
+ borderColor: r.palette.divider
1551
1551
  },
1552
1552
  "& .MuiDataGrid-columnHeaderTitle": {
1553
1553
  fontWeight: 600
@@ -1565,42 +1565,42 @@ const ro = (e, o) => {
1565
1565
  },
1566
1566
  MuiDateRangePickerDay: {
1567
1567
  styleOverrides: {
1568
- root: ({ theme: t }) => ({
1568
+ root: ({ theme: r }) => ({
1569
1569
  ":first-of-type": {
1570
- borderTopLeftRadius: t.shape.borderRadius,
1571
- borderBottomLeftRadius: t.shape.borderRadius,
1570
+ borderTopLeftRadius: r.shape.borderRadius,
1571
+ borderBottomLeftRadius: r.shape.borderRadius,
1572
1572
  "& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
1573
- borderTopLeftRadius: t.shape.borderRadius,
1574
- borderBottomLeftRadius: t.shape.borderRadius
1573
+ borderTopLeftRadius: r.shape.borderRadius,
1574
+ borderBottomLeftRadius: r.shape.borderRadius
1575
1575
  }
1576
1576
  },
1577
1577
  ":last-of-type": {
1578
- borderTopRightRadius: t.shape.borderRadius,
1579
- borderBottomRightRadius: t.shape.borderRadius,
1578
+ borderTopRightRadius: r.shape.borderRadius,
1579
+ borderBottomRightRadius: r.shape.borderRadius,
1580
1580
  "& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
1581
- borderTopRightRadius: t.shape.borderRadius,
1582
- borderBottomRightRadius: t.shape.borderRadius
1581
+ borderTopRightRadius: r.shape.borderRadius,
1582
+ borderBottomRightRadius: r.shape.borderRadius
1583
1583
  }
1584
1584
  },
1585
1585
  "& .Mui-selected": {
1586
- borderRadius: t.shape.borderRadius
1586
+ borderRadius: r.shape.borderRadius
1587
1587
  },
1588
1588
  "& .MuiPickersDay-dayOutsideMonth": {
1589
- color: t.palette.action.disabled
1589
+ color: r.palette.action.disabled
1590
1590
  }
1591
1591
  }),
1592
- day: ({ theme: t }) => ({
1593
- borderRadius: t.shape.borderRadius
1592
+ day: ({ theme: r }) => ({
1593
+ borderRadius: r.shape.borderRadius
1594
1594
  }),
1595
- rangeIntervalDayPreview: ({ theme: t }) => ({
1596
- borderRadius: t.shape.borderRadius
1595
+ rangeIntervalDayPreview: ({ theme: r }) => ({
1596
+ borderRadius: r.shape.borderRadius
1597
1597
  })
1598
1598
  }
1599
1599
  },
1600
1600
  MuiDayCalendar: {
1601
1601
  styleOverrides: {
1602
- weekDayLabel: ({ theme: t }) => ({
1603
- fontSize: t.typography.body2.fontSize,
1602
+ weekDayLabel: ({ theme: r }) => ({
1603
+ fontSize: r.typography.body2.fontSize,
1604
1604
  fontWeight: 700
1605
1605
  })
1606
1606
  }
@@ -1642,14 +1642,14 @@ const ro = (e, o) => {
1642
1642
  },
1643
1643
  MuiFormHelperText: {
1644
1644
  styleOverrides: {
1645
- root: ({ theme: t }) => ({
1645
+ root: ({ theme: r }) => ({
1646
1646
  fontSize: 13,
1647
1647
  // Small
1648
1648
  marginLeft: 0,
1649
1649
  display: "flex",
1650
1650
  alignItems: "center",
1651
1651
  position: "relative",
1652
- color: t.palette.text.secondary,
1652
+ color: r.palette.text.secondary,
1653
1653
  "& .MuiSvgIcon-root": {
1654
1654
  height: "16px",
1655
1655
  width: "16px",
@@ -1680,19 +1680,19 @@ const ro = (e, o) => {
1680
1680
  disableFocusRipple: !0
1681
1681
  },
1682
1682
  styleOverrides: {
1683
- root: ({ theme: t }) => ({
1684
- borderRadius: t.shape.borderRadius,
1683
+ root: ({ theme: r }) => ({
1684
+ borderRadius: r.shape.borderRadius,
1685
1685
  minHeight: 44,
1686
1686
  // touch target
1687
1687
  minWidth: 44,
1688
1688
  // touch target
1689
1689
  "&.Mui-focusVisible": {
1690
- outline: `2px solid ${t.palette.info.main}`,
1690
+ outline: `2px solid ${r.palette.info.main}`,
1691
1691
  outlineOffset: "2px"
1692
1692
  },
1693
1693
  "& .MuiTouchRipple-root": {
1694
1694
  "& .MuiTouchRipple-child": {
1695
- borderRadius: t.shape.borderRadius
1695
+ borderRadius: r.shape.borderRadius
1696
1696
  }
1697
1697
  }
1698
1698
  })
@@ -1719,7 +1719,7 @@ const ro = (e, o) => {
1719
1719
  },
1720
1720
  MuiLink: {
1721
1721
  styleOverrides: {
1722
- root: ({ theme: t, color: d }) => ({
1722
+ root: ({ theme: r, color: d }) => ({
1723
1723
  cursor: "pointer",
1724
1724
  fontWeight: 600,
1725
1725
  textDecoration: "none",
@@ -1731,10 +1731,10 @@ const ro = (e, o) => {
1731
1731
  outlineOffset: "2px"
1732
1732
  },
1733
1733
  "&:hover": {
1734
- backgroundColor: t.palette.action.hover
1734
+ backgroundColor: r.palette.action.hover
1735
1735
  },
1736
1736
  "&:active": {
1737
- backgroundColor: t.palette.mode === v.LIGHT ? t.palette[d].light : t.palette[d].dark
1737
+ backgroundColor: r.palette.mode === v.LIGHT ? r.palette[d].light : r.palette[d].dark
1738
1738
  }
1739
1739
  })
1740
1740
  }
@@ -1761,9 +1761,9 @@ const ro = (e, o) => {
1761
1761
  disablePadding: !0
1762
1762
  },
1763
1763
  styleOverrides: {
1764
- root: ({ ownerState: t }) => ({
1764
+ root: ({ ownerState: r }) => ({
1765
1765
  minHeight: 64,
1766
- ...!t.disablePadding && {
1766
+ ...!r.disablePadding && {
1767
1767
  paddingTop: 12,
1768
1768
  paddingBottom: 12,
1769
1769
  paddingLeft: 24
@@ -1787,7 +1787,7 @@ const ro = (e, o) => {
1787
1787
  },
1788
1788
  MuiListItemButton: {
1789
1789
  styleOverrides: {
1790
- root: ({ theme: t }) => ({
1790
+ root: ({ theme: r }) => ({
1791
1791
  minHeight: 64,
1792
1792
  paddingLeft: 24,
1793
1793
  paddingRight: 24,
@@ -1796,7 +1796,7 @@ const ro = (e, o) => {
1796
1796
  "&.Mui-focusVisible": {
1797
1797
  backgroundColor: "transparent",
1798
1798
  borderRadius: 8,
1799
- outline: `2px solid ${t.palette.info.main}`,
1799
+ outline: `2px solid ${r.palette.info.main}`,
1800
1800
  outlineOffset: -2
1801
1801
  }
1802
1802
  })
@@ -1922,11 +1922,11 @@ const ro = (e, o) => {
1922
1922
  },
1923
1923
  MuiPickersToolbar: {
1924
1924
  styleOverrides: {
1925
- content: ({ theme: t }) => ({
1925
+ content: ({ theme: r }) => ({
1926
1926
  marginTop: 4,
1927
1927
  "& .MuiTypography-root": {
1928
- fontSize: t.typography.h3.fontSize,
1929
- lineHeight: t.typography.h3.lineHeight
1928
+ fontSize: r.typography.h3.fontSize,
1929
+ lineHeight: r.typography.h3.lineHeight
1930
1930
  }
1931
1931
  })
1932
1932
  }
@@ -1952,7 +1952,7 @@ const ro = (e, o) => {
1952
1952
  disableFocusRipple: !0
1953
1953
  },
1954
1954
  styleOverrides: {
1955
- root: ({ theme: t }) => ({
1955
+ root: ({ theme: r }) => ({
1956
1956
  width: 37,
1957
1957
  height: 20,
1958
1958
  padding: 0,
@@ -1963,7 +1963,7 @@ const ro = (e, o) => {
1963
1963
  "&.Mui-checked": {
1964
1964
  transform: "translateX(16px)",
1965
1965
  "& + .MuiSwitch-track": {
1966
- backgroundColor: t.palette.success.main,
1966
+ backgroundColor: r.palette.success.main,
1967
1967
  opacity: 1,
1968
1968
  border: 0
1969
1969
  },
@@ -1972,27 +1972,27 @@ const ro = (e, o) => {
1972
1972
  }
1973
1973
  },
1974
1974
  "&.Mui-disabled .MuiSwitch-thumb": {
1975
- color: t.palette.common.white
1975
+ color: r.palette.common.white
1976
1976
  },
1977
1977
  "&.Mui-disabled + .MuiSwitch-track": {
1978
- backgroundColor: t.palette.action.disabledBackground,
1978
+ backgroundColor: r.palette.action.disabledBackground,
1979
1979
  opacity: 1
1980
1980
  }
1981
1981
  },
1982
1982
  "& .MuiSwitch-input": {
1983
1983
  "&:focus-visible ~ .MuiSwitch-thumb": {
1984
- outline: `2px solid ${t.palette.info.main}`,
1984
+ outline: `2px solid ${r.palette.info.main}`,
1985
1985
  outlineOffset: 0
1986
1986
  }
1987
1987
  },
1988
1988
  "& .MuiSwitch-thumb": {
1989
1989
  boxSizing: "border-box",
1990
- backgroundColor: t.palette.background.paper,
1990
+ backgroundColor: r.palette.background.paper,
1991
1991
  width: 16,
1992
1992
  height: 16
1993
1993
  },
1994
1994
  "& .MuiSwitch-track": {
1995
- backgroundColor: t.palette.action.active,
1995
+ backgroundColor: r.palette.action.active,
1996
1996
  borderRadius: 20 / 2,
1997
1997
  opacity: 1
1998
1998
  }
@@ -2142,51 +2142,51 @@ const ro = (e, o) => {
2142
2142
  });
2143
2143
  };
2144
2144
  export {
2145
- I0 as AccountsFilledIcon,
2146
- v0 as AccountsIcon,
2147
- H0 as ArrowLeftIcon,
2148
- y0 as AttentionFilledIcon,
2145
+ S0 as AccountsFilledIcon,
2146
+ I0 as AccountsIcon,
2147
+ v0 as ArrowLeftIcon,
2148
+ H0 as AttentionFilledIcon,
2149
2149
  f as BaseIcon,
2150
2150
  $0 as BottomSheetTransition,
2151
- O0 as CalendarIcon,
2151
+ y0 as CalendarIcon,
2152
2152
  g as CategoryGuids,
2153
- _e as CategoryIcon,
2153
+ Pe as CategoryIcon,
2154
2154
  Ne as CategoryIconList,
2155
- ke as CategoryIconVariants,
2156
- F0 as CheckmarkFilledIcon,
2157
- D0 as ChevronDownIcon,
2158
- L0 as ChevronLeftIcon,
2159
- k0 as ChevronRightIcon,
2160
- N0 as CloseIcon,
2161
- U0 as DateRangePicker,
2155
+ De as CategoryIconVariants,
2156
+ O0 as CheckmarkFilledIcon,
2157
+ F0 as ChevronDownIcon,
2158
+ k0 as ChevronLeftIcon,
2159
+ L0 as ChevronRightIcon,
2160
+ D0 as CloseIcon,
2161
+ G0 as DateRangePicker,
2162
2162
  Be as DialogFooter,
2163
2163
  Y0 as DialogHeader,
2164
2164
  X0 as Drawer,
2165
- w0 as EditIcon,
2166
- _0 as FilterIcon,
2165
+ N0 as EditIcon,
2166
+ w0 as FilterIcon,
2167
2167
  Be as Footer,
2168
2168
  ze as H1,
2169
- W0 as H2,
2170
- Z0 as H3,
2169
+ U0 as H2,
2170
+ W0 as H3,
2171
2171
  P0 as HeartIcon,
2172
- Ze as INTER,
2172
+ We as INTER,
2173
2173
  M as Icon,
2174
2174
  Le as IconWeight,
2175
- j0 as InstitutionLogo,
2176
- z0 as MXLogoCopyrightIcon,
2177
- V0 as MXLogoFilledIcon,
2178
- B0 as MXLogoIcon,
2179
- G0 as MXLogoOutlineIcon,
2180
- Q0 as MerchantLogo,
2181
- K0 as P,
2182
- to as SelectionBox,
2175
+ K0 as InstitutionLogo,
2176
+ B0 as MXLogoCopyrightIcon,
2177
+ z0 as MXLogoFilledIcon,
2178
+ _0 as MXLogoIcon,
2179
+ V0 as MXLogoOutlineIcon,
2180
+ j0 as MerchantLogo,
2181
+ Z0 as P,
2182
+ oo as SelectionBox,
2183
2183
  O as TARGETS,
2184
- _ as THEMES,
2185
- D as Text,
2186
- J0 as TextField,
2187
- q0 as Toast,
2188
- eo as TokenProvider,
2184
+ P as THEMES,
2185
+ k as Text,
2186
+ Q0 as TextField,
2187
+ J0 as Toast,
2188
+ q0 as TokenProvider,
2189
2189
  ro as createMXTheme,
2190
- oo as useTokens
2190
+ eo as useTokens
2191
2191
  };
2192
2192
  //# sourceMappingURL=index.es.js.map