@mxenabled/mxui 1.6.0-alpha.5 → 1.7.0

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
@@ -1,40 +1,43 @@
1
- import { jsx as a, jsxs as x } from "react/jsx-runtime";
2
- import C from "react";
3
- import F from "@mui/material/Stack";
4
- import { useTheme as H, createTheme as j } from "@mui/material/styles";
5
- import { Icon as de, Close as ue } from "@mxenabled/mx-icons";
6
- import { endOfMonth as U } from "date-fns/endOfMonth";
1
+ import { jsx as a, jsxs as T } from "react/jsx-runtime";
2
+ import x from "react";
3
+ import I from "@mui/material/Stack";
4
+ import { useTheme as H, createTheme as U } from "@mui/material/styles";
5
+ import { Icon as se, ExpandMore as de, Close as ue } from "@mxenabled/mx-icons";
6
+ import { endOfMonth as W } 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
- import { startOfMonth as W } from "date-fns/startOfMonth";
10
- import { startOfYear as Z } from "date-fns/startOfYear";
9
+ import { startOfMonth as Z } from "date-fns/startOfMonth";
10
+ import { startOfYear as K } from "date-fns/startOfYear";
11
11
  import { subDays as Y } from "date-fns/subDays";
12
12
  import { subMonths as ge } from "date-fns/subMonths";
13
- import { subYears as fe } from "date-fns/subYears";
14
- import me from "@mui/material/useMediaQuery";
13
+ import { subYears as me } from "date-fns/subYears";
14
+ import fe from "@mui/material/useMediaQuery";
15
15
  import { LocalizationProvider as be, StaticDateRangePicker as Te } from "@mui/x-date-pickers-pro";
16
16
  import { AdapterDateFns as Ce } from "@mui/x-date-pickers-pro/AdapterDateFnsV3";
17
- import Q from "@mui/material/Box";
18
- import xe from "@mui/material/ToggleButton";
19
- import Re from "@mui/material/ToggleButtonGroup";
17
+ import { MultiInputDateRangeField as xe } from "@mui/x-date-pickers-pro/MultiInputDateRangeField";
18
+ import j from "@mui/material/Box";
19
+ import Re from "@mui/material/ToggleButton";
20
+ import Me from "@mui/material/ToggleButtonGroup";
21
+ import Ae from "@mui/material/MenuItem";
22
+ import Q from "@mui/material/TextField";
23
+ import { usePickerLayout as Ee, PickersLayoutRoot as Se, PickersLayoutContentWrapper as Ie, pickersLayoutClasses as P } from "@mui/x-date-pickers/PickersLayout";
20
24
  import J from "@mui/material/Slide";
21
- import B from "@mui/material/Button";
25
+ import V from "@mui/material/Button";
22
26
  import q from "@mui/material/IconButton";
23
- import Me from "@mui/material/Typography";
24
- import Ae from "@mui/material/Drawer";
25
- import Ee from "@mui/material/TextField";
26
- import Se from "@mui/material/Snackbar";
27
- import Ie from "@mui/material/Alert";
28
- import { light as ee, buildTheme as z, dark as ve } from "@mxenabled/design-tokens";
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
- import { circularProgressClasses as Fe } from "@mui/material/CircularProgress";
31
- import { LicenseInfo as ke } from "@mui/x-license-pro";
27
+ import ye from "@mui/material/Typography";
28
+ import ve from "@mui/material/Drawer";
29
+ import He from "@mui/material/Snackbar";
30
+ import Le from "@mui/material/Alert";
31
+ import { light as ee, buildTheme as G, dark as Fe } from "@mxenabled/design-tokens";
32
+ import { FormControlLabel as ke, Box as _, Typography as X, Radio as B, Checkbox as Oe, alpha as b, darken as D, lighten as L, getContrastRatio as De } from "@mui/material";
33
+ import { circularProgressClasses as Ne } from "@mui/material/CircularProgress";
34
+ import { LicenseInfo as we } from "@mui/x-license-pro";
32
35
  const f = ({
33
36
  children: e,
34
37
  height: o,
35
38
  size: i = 16,
36
- viewBox: n = "0 0 16 16",
37
- width: r
39
+ viewBox: l = "0 0 16 16",
40
+ width: c
38
41
  }) => /* @__PURE__ */ a(
39
42
  "svg",
40
43
  {
@@ -42,33 +45,33 @@ const f = ({
42
45
  className: "mx-kmui-icon",
43
46
  focusable: !1,
44
47
  height: o || i,
45
- viewBox: n,
46
- width: r || i,
48
+ viewBox: l,
49
+ width: c || i,
47
50
  xmlns: "http://www.w3.org/2000/svg",
48
51
  children: e
49
52
  }
50
53
  );
51
- var Le = /* @__PURE__ */ ((e) => (e[e.Lighter = 100] = "Lighter", e[e.Light = 200] = "Light", e[e.Normal = 300] = "Normal", e[e.Dark = 400] = "Dark", e[e.Darker = 500] = "Darker", e))(Le || {});
52
- const M = ({
54
+ var Pe = /* @__PURE__ */ ((e) => (e[e.Lighter = 100] = "Lighter", e[e.Light = 200] = "Light", e[e.Normal = 300] = "Normal", e[e.Dark = 400] = "Dark", e[e.Darker = 500] = "Darker", e))(Pe || {});
55
+ const R = ({
53
56
  color: e,
54
57
  fill: o = !1,
55
58
  name: i,
56
- size: n = 20,
57
- sx: r,
58
- weight: d = 300,
59
- ...c
59
+ size: l = 20,
60
+ sx: c,
61
+ weight: r = 300,
62
+ ...n
60
63
  }) => /* @__PURE__ */ a(
61
- de,
64
+ se,
62
65
  {
63
66
  color: e,
64
67
  fill: o,
65
68
  name: i,
66
- size: n,
67
- sx: r,
68
- weight: d,
69
- ...c
69
+ size: l,
70
+ sx: c,
71
+ weight: r,
72
+ ...n
70
73
  }
71
- ), S0 = ({
74
+ ), w0 = ({
72
75
  color: e = "currentColor",
73
76
  ...o
74
77
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -77,7 +80,7 @@ const M = ({
77
80
  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
81
  fill: e
79
82
  }
80
- ) })), I0 = ({
83
+ ) })), P0 = ({
81
84
  color: e = "currentColor",
82
85
  ...o
83
86
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -86,7 +89,7 @@ const M = ({
86
89
  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
90
  fill: e
88
91
  }
89
- ) })), v0 = ({
92
+ ) })), _0 = ({
90
93
  color: e = "currentColor",
91
94
  ...o
92
95
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -95,7 +98,7 @@ const M = ({
95
98
  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
99
  fill: e
97
100
  }
98
- ) })), H0 = ({
101
+ ) })), B0 = ({
99
102
  color: e = "currentColor",
100
103
  ...o
101
104
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -106,7 +109,7 @@ const M = ({
106
109
  fill: e,
107
110
  fillRule: "evenodd"
108
111
  }
109
- ) })), y0 = ({
112
+ ) })), z0 = ({
110
113
  color: e = "currentColor",
111
114
  ...o
112
115
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -115,7 +118,7 @@ const M = ({
115
118
  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
119
  fill: e
117
120
  }
118
- ) })), O0 = ({
121
+ ) })), V0 = ({
119
122
  color: e = "currentColor",
120
123
  ...o
121
124
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -124,7 +127,7 @@ const M = ({
124
127
  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
128
  fill: e
126
129
  }
127
- ) })), F0 = ({
130
+ ) })), G0 = ({
128
131
  color: e = "currentColor",
129
132
  ...o
130
133
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -133,7 +136,7 @@ const M = ({
133
136
  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
137
  fill: e
135
138
  }
136
- ) })), k0 = ({
139
+ ) })), $0 = ({
137
140
  color: e = "currentColor",
138
141
  ...o
139
142
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -142,7 +145,7 @@ const M = ({
142
145
  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
146
  fill: e
144
147
  }
145
- ) })), L0 = ({
148
+ ) })), U0 = ({
146
149
  color: e = "currentColor",
147
150
  ...o
148
151
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -151,7 +154,7 @@ const M = ({
151
154
  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
155
  fill: e
153
156
  }
154
- ) })), D0 = ({
157
+ ) })), W0 = ({
155
158
  color: e = "currentColor",
156
159
  ...o
157
160
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -160,7 +163,7 @@ const M = ({
160
163
  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
164
  fill: e
162
165
  }
163
- ) })), N0 = ({
166
+ ) })), Z0 = ({
164
167
  color: e = "currentColor",
165
168
  ...o
166
169
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -169,7 +172,7 @@ const M = ({
169
172
  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
173
  fill: e
171
174
  }
172
- ) })), w0 = ({
175
+ ) })), K0 = ({
173
176
  color: e = "currentColor",
174
177
  ...o
175
178
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -178,7 +181,7 @@ const M = ({
178
181
  d: "M1.5 1.933l5.4 6.72c.066.081.1.18.1.28v5.134h2V8.933c0-.1.036-.199.1-.28l5.4-6.72h-13zM6 9.09L.1 1.747C-.145 1.439.09 1 .5 1h15c.413 0 .648.439.4.747L10 9.089v5.444c0 .258-.223.467-.5.467h-3c-.275 0-.5-.209-.5-.467V9.09z",
179
182
  fill: e
180
183
  }
181
- ) })), P0 = ({
184
+ ) })), Y0 = ({
182
185
  color: e = "currentColor",
183
186
  ...o
184
187
  }) => (console.warn('<HeartIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -187,10 +190,10 @@ const M = ({
187
190
  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
191
  fill: e
189
192
  }
190
- ) })), _0 = ({
193
+ ) })), X0 = ({
191
194
  color: e = "currentColor",
192
195
  ...o
193
- }) => /* @__PURE__ */ x(f, { ...o, children: [
196
+ }) => /* @__PURE__ */ T(f, { ...o, children: [
194
197
  /* @__PURE__ */ a(
195
198
  "path",
196
199
  {
@@ -205,10 +208,10 @@ const M = ({
205
208
  fill: e
206
209
  }
207
210
  )
208
- ] }), B0 = ({
211
+ ] }), j0 = ({
209
212
  color: e = "currentColor",
210
213
  ...o
211
- }) => /* @__PURE__ */ x(f, { ...o, children: [
214
+ }) => /* @__PURE__ */ T(f, { ...o, children: [
212
215
  /* @__PURE__ */ a(
213
216
  "path",
214
217
  {
@@ -241,7 +244,7 @@ const M = ({
241
244
  fillRule: "evenodd"
242
245
  }
243
246
  )
244
- ] }), z0 = ({
247
+ ] }), Q0 = ({
245
248
  color: e = "currentColor",
246
249
  ...o
247
250
  }) => /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -252,10 +255,10 @@ const M = ({
252
255
  fill: e,
253
256
  fillRule: "evenodd"
254
257
  }
255
- ) }), V0 = ({
258
+ ) }), J0 = ({
256
259
  color: e = "currentColor",
257
260
  ...o
258
- }) => /* @__PURE__ */ x(f, { ...o, children: [
261
+ }) => /* @__PURE__ */ T(f, { ...o, children: [
259
262
  /* @__PURE__ */ a(
260
263
  "path",
261
264
  {
@@ -280,164 +283,164 @@ const M = ({
280
283
  }
281
284
  )
282
285
  ] });
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 || {});
286
+ var h = /* @__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))(h || {}), _e = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Filled = "filled", e.Transparent = "transparent", e.TwoTone = "two-tone", e))(_e || {});
284
287
  const oe = {
285
- guid: g.Uncategorized,
288
+ guid: h.Uncategorized,
286
289
  colorName: "uncategorized",
287
290
  icon: "category"
288
- }, Ne = [
291
+ }, Be = [
289
292
  {
290
- guid: g.AutoTransport,
293
+ guid: h.AutoTransport,
291
294
  colorName: "autoTransport",
292
295
  icon: "directions_car"
293
296
  },
294
297
  {
295
- guid: g.BillsUtilities,
298
+ guid: h.BillsUtilities,
296
299
  colorName: "billsUtilities",
297
300
  icon: "electrical_services"
298
301
  },
299
302
  {
300
- guid: g.BusinessServices,
303
+ guid: h.BusinessServices,
301
304
  colorName: "businessServices",
302
305
  icon: "business_center"
303
306
  },
304
307
  {
305
- guid: g.Education,
308
+ guid: h.Education,
306
309
  colorName: "education",
307
310
  icon: "school"
308
311
  },
309
312
  {
310
- guid: g.Entertainment,
313
+ guid: h.Entertainment,
311
314
  colorName: "entertainment",
312
315
  icon: "stadium"
313
316
  },
314
317
  {
315
- guid: g.FeesCharges,
318
+ guid: h.FeesCharges,
316
319
  colorName: "feesCharges",
317
320
  icon: "problem"
318
321
  },
319
322
  {
320
- guid: g.Financial,
323
+ guid: h.Financial,
321
324
  colorName: "financial",
322
325
  icon: "price_check"
323
326
  },
324
327
  {
325
- guid: g.FoodDining,
328
+ guid: h.FoodDining,
326
329
  colorName: "foodDining",
327
330
  icon: "grocery"
328
331
  },
329
332
  {
330
- guid: g.GiftsDonations,
333
+ guid: h.GiftsDonations,
331
334
  colorName: "giftsDonations",
332
335
  icon: "featured_seasonal_and_gifts"
333
336
  },
334
337
  {
335
- guid: g.HealthFitness,
338
+ guid: h.HealthFitness,
336
339
  colorName: "healthFitness",
337
340
  icon: "ecg_heart"
338
341
  },
339
342
  {
340
- guid: g.Home,
343
+ guid: h.Home,
341
344
  colorName: "home",
342
345
  icon: "cottage"
343
346
  },
344
347
  {
345
- guid: g.Income,
348
+ guid: h.Income,
346
349
  colorName: "income",
347
350
  icon: "monetization_on"
348
351
  },
349
352
  {
350
- guid: g.Investments,
353
+ guid: h.Investments,
351
354
  colorName: "investments",
352
355
  icon: "bid_landscape"
353
356
  },
354
357
  {
355
- guid: g.Kids,
358
+ guid: h.Kids,
356
359
  colorName: "kids",
357
360
  icon: "face"
358
361
  },
359
362
  {
360
- guid: g.PersonalCare,
363
+ guid: h.PersonalCare,
361
364
  colorName: "personalCare",
362
365
  icon: "volunteer_activism"
363
366
  },
364
367
  {
365
- guid: g.Pets,
368
+ guid: h.Pets,
366
369
  colorName: "pets",
367
370
  icon: "pet_supplies"
368
371
  },
369
372
  {
370
- guid: g.Shopping,
373
+ guid: h.Shopping,
371
374
  colorName: "shopping",
372
375
  icon: "shopping_cart"
373
376
  },
374
377
  {
375
- guid: g.Taxes,
378
+ guid: h.Taxes,
376
379
  colorName: "taxes",
377
380
  icon: "heap_snapshot_large"
378
381
  },
379
382
  {
380
- guid: g.Transfer,
383
+ guid: h.Transfer,
381
384
  colorName: "transfer",
382
385
  icon: "compare_arrows"
383
386
  },
384
387
  {
385
- guid: g.Travel,
388
+ guid: h.Travel,
386
389
  colorName: "travel",
387
390
  icon: "airplane_ticket"
388
391
  },
389
392
  oe
390
- ], we = 0.625, Pe = ({
393
+ ], ze = 0.625, Ve = ({
391
394
  categoryGuid: e,
392
- icon_ratio: o = we,
395
+ icon_ratio: o = ze,
393
396
  size: i = 32,
394
- sx: n = {},
395
- variant: r = "filled"
397
+ sx: l = {},
398
+ variant: c = "filled"
396
399
  }) => {
397
- const d = H(), c = C.useMemo(
398
- () => Ne.find((u) => u.guid === e) ?? oe,
400
+ const r = H(), n = x.useMemo(
401
+ () => Be.find((m) => m.guid === e) ?? oe,
399
402
  [e]
400
- ), l = d.palette.categories[c.colorName];
403
+ ), s = r.palette.categories[n.colorName];
401
404
  return /* @__PURE__ */ a(
402
- F,
405
+ I,
403
406
  {
404
407
  alignItems: "center",
405
408
  bgcolor: () => {
406
- let u = l;
407
- return r === "twotone" && (u = `${u}20`), r === "transparent" || r === "basic" ? "transparent" : u;
409
+ let m = s;
410
+ return c === "twotone" && (m = `${m}20`), c === "transparent" || c === "basic" ? "transparent" : m;
408
411
  },
409
412
  borderRadius: 1,
410
413
  color: () => {
411
- const u = r === "filled" ? d.palette.common.white : l;
412
- return r === "basic" ? d.palette.text.primary : u;
414
+ const m = c === "filled" ? r.palette.common.white : s;
415
+ return c === "basic" ? r.palette.text.primary : m;
413
416
  },
414
417
  height: i,
415
418
  justifyContent: "center",
416
- sx: [...Array.isArray(n) ? n : [n]],
419
+ sx: [...Array.isArray(l) ? l : [l]],
417
420
  width: i,
418
- children: /* @__PURE__ */ a(M, { name: c.icon, size: i * o })
421
+ children: /* @__PURE__ */ a(R, { name: n.icon, size: i * o })
419
422
  }
420
423
  );
421
- }, _e = ({
424
+ }, Ge = ({
422
425
  items: e,
423
426
  onChange: o,
424
427
  isValid: i,
425
- selected: n
428
+ selected: l
426
429
  }) => {
427
- const r = H(), d = e?.map((c) => {
428
- const l = c.getValue({ isValid: i });
430
+ const c = H(), r = e?.map((n) => {
431
+ const s = n.getValue({ isValid: i });
429
432
  return {
430
- label: c.label,
433
+ label: n.label,
431
434
  onClick: () => {
432
- o(l, "accept", c);
435
+ o(s, "accept", n);
433
436
  },
434
- disabled: !i(l)
437
+ disabled: !i(s)
435
438
  };
436
439
  });
437
- return /* @__PURE__ */ a(Q, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ a(Re, { color: "primary", orientation: "vertical", value: n, children: d?.map((c) => /* @__PURE__ */ a(
438
- xe,
440
+ return /* @__PURE__ */ a(j, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ a(Me, { color: "primary", orientation: "vertical", value: l, children: r?.map((n) => /* @__PURE__ */ a(
441
+ Re,
439
442
  {
440
- onClick: c.onClick,
443
+ onClick: n.onClick,
441
444
  sx: {
442
445
  borderWidth: 1,
443
446
  color: "secondary.main",
@@ -448,37 +451,100 @@ const oe = {
448
451
  boxShadow: "0px 0px 0px 2px rgba(82, 138, 224, 0.8)"
449
452
  },
450
453
  "&:hover": {
451
- bgcolor: r.palette.action.hover,
452
- borderTop: `1px solid ${r.palette.secondary.light}`
454
+ bgcolor: c.palette.action.hover,
455
+ borderTop: `1px solid ${c.palette.secondary.light}`
453
456
  },
454
457
  "&.Mui-selected": {
455
- border: `2px solid ${r.palette.primary.main} !important`,
458
+ border: `2px solid ${c.palette.primary.main} !important`,
456
459
  marginTop: "-2px !important",
457
460
  color: "primary"
458
461
  }
459
462
  },
460
- value: c.label,
461
- children: c.label
463
+ value: n.label,
464
+ children: n.label
462
465
  },
463
- c.label
466
+ n.label
464
467
  )) }) });
465
- }, G0 = ({
468
+ }, $e = ({
469
+ items: e,
470
+ onChange: o,
471
+ isValid: i,
472
+ selected: l,
473
+ selectLabel: c
474
+ }) => {
475
+ const r = e?.map((n) => {
476
+ const s = n.getValue({ isValid: i });
477
+ return {
478
+ label: n.label,
479
+ onClick: () => {
480
+ o(s, "accept", n);
481
+ },
482
+ disabled: !i(s)
483
+ };
484
+ });
485
+ return /* @__PURE__ */ a(I, { sx: { py: 16 }, children: /* @__PURE__ */ a(
486
+ Q,
487
+ {
488
+ InputLabelProps: {
489
+ shrink: !0
490
+ },
491
+ SelectProps: { IconComponent: de },
492
+ defaultValue: l,
493
+ id: "select",
494
+ label: c,
495
+ select: !0,
496
+ sx: { width: "100%" },
497
+ value: l,
498
+ variant: "outlined",
499
+ children: r?.map((n) => /* @__PURE__ */ a(Ae, { onClick: n.onClick, value: n.label, children: n.label }, n.label))
500
+ }
501
+ ) });
502
+ }, Ue = (e) => {
503
+ const { toolbar: o, content: i, shortcuts: l } = Ee(e);
504
+ return /* @__PURE__ */ T(
505
+ Se,
506
+ {
507
+ ownerState: e,
508
+ sx: {
509
+ gridTemplateColumns: "minmax(320px, 1fr)",
510
+ overflow: "auto",
511
+ p: 0,
512
+ [`.${P.toolbar}`]: {
513
+ gridColumn: 1,
514
+ gridRow: 2
515
+ },
516
+ [`.${P.contentWrapper}`]: {
517
+ alignItems: "center",
518
+ gridColumn: 1,
519
+ gridRow: 3
520
+ }
521
+ },
522
+ children: [
523
+ /* @__PURE__ */ T(I, { sx: { gridColumn: 1, gridRow: 1, p: 16 }, children: [
524
+ l,
525
+ o
526
+ ] }),
527
+ /* @__PURE__ */ a(Ie, { className: P.contentWrapper, children: i })
528
+ ]
529
+ }
530
+ );
531
+ }, q0 = ({
466
532
  copy: e,
467
533
  dateRange: o,
468
534
  onRangeChanged: i,
469
- selectedShortcut: n = e.dateRangeThisMonth,
470
- sx: r = {}
535
+ selectedShortcut: l = e.dateRangeThisMonth,
536
+ sx: c = {}
471
537
  }) => {
472
- const d = H(), c = me(d.breakpoints.down("sm")), l = C.useMemo(() => {
473
- const t = he(), u = ge(t, 1), T = fe(t, 1);
538
+ const r = H(), n = fe(r.breakpoints.down("sm")), s = x.useMemo(() => {
539
+ const t = he(), m = ge(t, 1), C = me(t, 1);
474
540
  return [
475
541
  {
476
542
  label: e.dateRangeThisMonth,
477
- getValue: () => [W(t), U(t)]
543
+ getValue: () => [Z(t), W(t)]
478
544
  },
479
545
  {
480
546
  label: e.dateRangeLastMonth,
481
- getValue: () => [W(u), U(u)]
547
+ getValue: () => [Z(m), W(m)]
482
548
  },
483
549
  {
484
550
  label: e.dateRangeLast30Days,
@@ -490,22 +556,22 @@ const oe = {
490
556
  },
491
557
  {
492
558
  label: e.dateRangeYTD,
493
- getValue: () => [Z(t), t]
559
+ getValue: () => [K(t), t]
494
560
  },
495
561
  {
496
562
  label: e.dateRangeLastYear,
497
- getValue: () => [Z(T), pe(T)]
563
+ getValue: () => [K(C), pe(C)]
498
564
  },
499
565
  {
500
566
  label: e.dateRangeCustom,
501
567
  getValue: () => [t, t]
502
568
  }
503
569
  ];
504
- }, [e]), s = (t, u) => {
505
- const T = u.shortcut;
506
- i?.(t, T ? T.label : e.dateRangeCustom);
570
+ }, [e]), d = (t, m) => {
571
+ const C = m.shortcut;
572
+ i?.(t, C ? C.label : e.dateRangeCustom);
507
573
  };
508
- return /* @__PURE__ */ a(F, { gap: 16, m: 8, children: /* @__PURE__ */ a(be, { dateAdapter: Ce, children: /* @__PURE__ */ a(
574
+ return /* @__PURE__ */ a(I, { gap: n ? 0 : 16, m: n ? 0 : 8, children: /* @__PURE__ */ a(be, { dateAdapter: Ce, children: /* @__PURE__ */ a(
509
575
  Te,
510
576
  {
511
577
  calendars: 1,
@@ -514,62 +580,93 @@ const oe = {
514
580
  end: e.dateRangeTo,
515
581
  toolbarTitle: e.dateRangeToolbarTitle
516
582
  },
517
- onChange: s,
583
+ onChange: d,
518
584
  showDaysOutsideCurrentMonth: !0,
519
585
  slotProps: {
520
586
  actionBar: { actions: [] },
587
+ layout: {
588
+ sx: {
589
+ "& .MuiPickersLayout-toolbar": {
590
+ gridColumn: "1/4",
591
+ gridRow: 1
592
+ }
593
+ }
594
+ },
521
595
  shortcuts: {
522
- items: c ? [] : l
596
+ items: s
523
597
  },
524
598
  toolbar: {
525
- toolbarFormat: "MMM d, yyyy"
599
+ toolbarFormat: n ? "MM/dd/yyyy" : "MMM d, yyyy"
526
600
  }
527
601
  },
528
602
  slots: {
529
- leftArrowIcon: () => /* @__PURE__ */ a(M, { name: "chevron_left", size: 28 }),
530
- shortcuts: (t) => /* @__PURE__ */ a(_e, { selected: n, ...t }),
531
- rightArrowIcon: () => /* @__PURE__ */ a(M, { name: "chevron_right", size: 28 })
603
+ ...n && { layout: Ue },
604
+ leftArrowIcon: () => /* @__PURE__ */ a(R, { name: "chevron_left", size: 28 }),
605
+ shortcuts: (t) => n ? /* @__PURE__ */ a(
606
+ $e,
607
+ {
608
+ selectLabel: e.dateRangeSelectARange,
609
+ selected: l,
610
+ ...t
611
+ }
612
+ ) : /* @__PURE__ */ a(Ge, { selected: l, ...t }),
613
+ rightArrowIcon: () => /* @__PURE__ */ a(R, { name: "chevron_right", size: 28 }),
614
+ ...n && {
615
+ toolbar: (t) => /* @__PURE__ */ a(
616
+ xe,
617
+ {
618
+ dateSeparator: "",
619
+ ...t,
620
+ slotProps: {
621
+ textField: ({ position: m }) => ({
622
+ label: m === "start" ? e.dateRangeFrom : e.dateRangeTo
623
+ })
624
+ },
625
+ sx: { gap: 8 }
626
+ }
627
+ )
628
+ }
532
629
  },
533
- sx: { ...r },
630
+ sx: { ...c },
534
631
  value: o
535
632
  }
536
633
  ) }) });
537
- }, $0 = C.forwardRef(function(o, i) {
634
+ }, eo = x.forwardRef(function(o, i) {
538
635
  return /* @__PURE__ */ a(J, { direction: "up", ref: i, ...o });
539
- }), Be = ({
636
+ }), We = ({
540
637
  hasSecondaryAction: e = !0,
541
638
  isPrimaryDisabled: o,
542
639
  onPrimaryAction: i,
543
- onSecondaryAction: n,
544
- primaryColor: r = "primary",
545
- primaryText: d = "Save",
546
- secondaryColor: c = "primary",
547
- secondaryText: l = "Cancel"
548
- }) => /* @__PURE__ */ x(
549
- F,
640
+ onSecondaryAction: l,
641
+ primaryColor: c = "primary",
642
+ primaryText: r = "Save",
643
+ secondaryColor: n = "primary",
644
+ secondaryText: s = "Cancel"
645
+ }) => /* @__PURE__ */ T(
646
+ I,
550
647
  {
551
648
  direction: "row",
552
649
  gap: 16,
553
650
  justifyContent: "flex-end",
554
- sx: { bgcolor: "background.paper", width: "100%", p: 24 },
651
+ sx: { bgcolor: "background.paper", p: 24 },
555
652
  children: [
556
653
  e && /* @__PURE__ */ a(
557
- B,
654
+ V,
558
655
  {
559
- color: c,
560
- onClick: n,
656
+ color: n,
657
+ onClick: l,
561
658
  variant: i ? "outlined" : "contained",
562
- children: l
659
+ children: s
563
660
  }
564
661
  ),
565
662
  i && /* @__PURE__ */ a(
566
- B,
663
+ V,
567
664
  {
568
- color: r,
665
+ color: c,
569
666
  disabled: o,
570
667
  onClick: i,
571
668
  variant: "contained",
572
- children: d
669
+ children: r
573
670
  }
574
671
  )
575
672
  ]
@@ -578,79 +675,79 @@ const oe = {
578
675
  bold: e,
579
676
  className: o = "",
580
677
  children: i,
581
- color: n,
582
- sx: r = {},
583
- truncate: d = !0,
584
- uppercase: c,
585
- ...l
678
+ color: l,
679
+ sx: c = {},
680
+ truncate: r = !0,
681
+ uppercase: n,
682
+ ...s
586
683
  }) => {
587
- switch (l.variant) {
684
+ switch (s.variant) {
588
685
  case "Body":
589
- l.variant = "body1";
686
+ s.variant = "body1";
590
687
  break;
591
688
  case "Button":
592
- l.variant = "button";
689
+ s.variant = "button";
593
690
  break;
594
691
  case "H1":
595
- l.variant = "h1";
692
+ s.variant = "h1";
596
693
  break;
597
694
  case "H2":
598
- l.variant = "h2";
695
+ s.variant = "h2";
599
696
  break;
600
697
  case "H3":
601
- l.variant = "h3";
698
+ s.variant = "h3";
602
699
  break;
603
700
  case "Paragraph":
604
- l.variant = "subtitle1";
701
+ s.variant = "subtitle1";
605
702
  break;
606
703
  case "ParagraphSmall":
607
- l.variant = "subtitle2";
704
+ s.variant = "subtitle2";
608
705
  break;
609
706
  case "Small":
610
- l.variant = "body2";
707
+ s.variant = "body2";
611
708
  break;
612
709
  case "Tiny":
613
- l.variant = "tiny";
710
+ s.variant = "tiny";
614
711
  break;
615
712
  case "XSmall":
616
- l.variant = "caption";
713
+ s.variant = "caption";
617
714
  break;
618
715
  }
619
716
  return /* @__PURE__ */ a(
620
- Me,
717
+ ye,
621
718
  {
622
719
  className: `mx-kmui-text ${o}`,
623
- color: n,
720
+ color: l,
624
721
  sx: [
625
722
  e ? {
626
723
  fontWeight: 600
627
724
  } : {},
628
- d ? {
725
+ r ? {
629
726
  overflow: "hidden",
630
727
  textOverflow: "ellipsis",
631
728
  whiteSpace: "nowrap"
632
729
  } : {},
633
- c ? {
730
+ n ? {
634
731
  textTransform: "uppercase"
635
732
  } : {},
636
- ...Array.isArray(r) ? r : [r]
733
+ ...Array.isArray(c) ? c : [c]
637
734
  ],
638
- ...l,
735
+ ...s,
639
736
  children: i
640
737
  }
641
738
  );
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(
739
+ }, Ze = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h1 ${e}`, component: "h1", variant: "h1", ...i, children: o }), oo = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h2 ${e}`, component: "h2", variant: "h2", ...i, children: o }), ro = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h3 ${e}`, component: "h3", variant: "h3", ...i, children: o }), to = ({ className: e = "", children: o, truncate: i, ...l }) => /* @__PURE__ */ a(
643
740
  k,
644
741
  {
645
742
  className: `mx-kmui-text p ${e}`,
646
743
  component: "p",
647
744
  truncate: i || !1,
648
745
  variant: "body1",
649
- ...n,
746
+ ...l,
650
747
  children: o
651
748
  }
652
- ), Y0 = ({ copy: e, onClose: o }) => /* @__PURE__ */ x(
653
- F,
749
+ ), io = ({ copy: e, onClose: o }) => /* @__PURE__ */ T(
750
+ I,
654
751
  {
655
752
  sx: {
656
753
  alignItems: "center",
@@ -660,372 +757,342 @@ const oe = {
660
757
  py: 14
661
758
  },
662
759
  children: [
663
- /* @__PURE__ */ a(ze, { variant: "h3", children: e.title }),
760
+ /* @__PURE__ */ a(Ze, { variant: "h3", children: e.title }),
664
761
  /* @__PURE__ */ a(q, { "aria-label": e.close_aria, onClick: o, sx: { mr: -12 }, children: /* @__PURE__ */ a(ue, {}) })
665
762
  ]
666
763
  }
667
- ), X0 = ({
764
+ ), ao = ({
668
765
  className: e,
669
766
  disableSave: o,
670
767
  id: i,
671
- isOpen: n,
672
- onClose: r,
673
- onSave: d,
674
- primaryText: c,
675
- secondaryText: l,
676
- children: s,
768
+ isOpen: l,
769
+ onClose: c,
770
+ onSave: r,
771
+ primaryText: n,
772
+ secondaryText: s,
773
+ children: d,
677
774
  ...t
678
- }) => /* @__PURE__ */ x(
679
- Ae,
775
+ }) => /* @__PURE__ */ T(
776
+ ve,
680
777
  {
681
778
  anchor: "right",
682
779
  className: `mx-kmui-drawer ${e}`,
683
780
  id: i ?? void 0,
684
- onClose: r,
685
- open: n,
781
+ onClose: c,
782
+ open: l,
686
783
  variant: "temporary",
687
784
  ...t,
688
785
  children: [
689
- s,
690
- d && /* @__PURE__ */ a(
691
- Be,
786
+ d,
787
+ r && /* @__PURE__ */ a(
788
+ We,
692
789
  {
693
790
  isPrimaryDisabled: o,
694
- onPrimaryAction: d,
695
- onSecondaryAction: r,
696
- primaryText: c,
697
- secondaryText: l
791
+ onPrimaryAction: r,
792
+ onSecondaryAction: c,
793
+ primaryText: n,
794
+ secondaryText: s
698
795
  }
699
796
  )
700
797
  ]
701
798
  }
702
- ), re = 32, V = "https://content.moneydesktop.com/storage/MD_Assets", Ve = `${V}/serenity/default_institution_logo.png`, K0 = ({
799
+ ), re = 32, $ = "https://content.moneydesktop.com/storage/MD_Assets", Ke = `${$}/serenity/default_institution_logo.png`, no = ({
703
800
  alt: e,
704
801
  institutionGuid: o,
705
802
  logoUrl: i,
706
- size: n = re,
707
- ...r
803
+ size: l = re,
804
+ ...c
708
805
  }) => /* @__PURE__ */ a(
709
806
  "img",
710
807
  {
711
808
  alt: e,
712
- height: n,
713
- onError: (d) => d.target.src = Ve,
714
- src: i || `${V}/Ipad%20Logos/100x100/${o}_100x100.png`,
809
+ height: l,
810
+ onError: (r) => r.target.src = Ke,
811
+ src: i || `${$}/Ipad%20Logos/100x100/${o}_100x100.png`,
715
812
  style: {
716
813
  borderRadius: 4
717
814
  },
718
- width: n,
719
- ...r
815
+ width: l,
816
+ ...c
720
817
  }
721
- ), j0 = ({
818
+ ), lo = ({
722
819
  alt: e = "",
723
820
  categoryGuid: o,
724
821
  merchantGuid: i,
725
- size: n = re,
726
- ...r
822
+ size: l = re,
823
+ ...c
727
824
  }) => {
728
- const [d, c] = C.useState(!1), l = H();
729
- return /* @__PURE__ */ x(Q, { display: "inline-block", position: "relative", ...r, children: [
730
- i && !d && /* @__PURE__ */ a(
825
+ const [r, n] = x.useState(!1), s = H();
826
+ return /* @__PURE__ */ T(j, { display: "inline-block", position: "relative", ...c, children: [
827
+ i && !r && /* @__PURE__ */ a(
731
828
  "img",
732
829
  {
733
830
  alt: e,
734
831
  "aria-hidden": !e,
735
- height: n,
736
- onError: () => c(!0),
737
- src: `${V}/merchant_logos/${i}.png`,
832
+ height: l,
833
+ onError: () => n(!0),
834
+ src: `${$}/merchant_logos/${i}.png`,
738
835
  style: {
739
- backgroundColor: l.palette.common.white,
836
+ backgroundColor: s.palette.common.white,
740
837
  borderRadius: 4,
741
838
  boxSizing: "border-box",
742
839
  position: "absolute"
743
840
  },
744
- width: n
841
+ width: l
745
842
  }
746
843
  ),
747
- /* @__PURE__ */ a(Pe, { categoryGuid: o, size: n })
844
+ /* @__PURE__ */ a(Ve, { categoryGuid: o, size: l })
748
845
  ] });
749
- }, Q0 = ({
846
+ }, co = ({
750
847
  disabled: e = !1,
751
848
  label: o = "",
752
849
  shrink: i = !0,
753
- variant: n = "outlined",
754
- ...r
850
+ variant: l = "outlined",
851
+ ...c
755
852
  }) => /* @__PURE__ */ a(
756
- Ee,
853
+ Q,
757
854
  {
758
855
  InputLabelProps: {
759
856
  shrink: i
760
857
  },
761
858
  disabled: e,
762
859
  label: o,
763
- variant: n,
764
- ...r
860
+ variant: l,
861
+ ...c
765
862
  }
766
863
  );
767
- function Ge(e) {
864
+ function Ye(e) {
768
865
  return /* @__PURE__ */ a(J, { ...e, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
769
866
  }
770
- const J0 = ({
771
- open: e,
867
+ const so = ({
868
+ open: e = !0,
772
869
  handleClose: o,
773
- message: i,
774
- autoHideDuration: n = 3e3,
870
+ closeAriaLabel: i,
871
+ message: l,
872
+ autoHideDuration: c = 3e3,
775
873
  severity: r = "success",
776
- snackbarSx: d,
777
- showAction: c = !1,
778
- showClose: l = !1,
779
- actionText: s = "Undo",
780
- onActionClick: t,
781
- multiLine: u = !1
874
+ snackbarSx: n,
875
+ showAction: s = !1,
876
+ showClose: d = !1,
877
+ actionText: t = "Undo",
878
+ onActionClick: m
782
879
  }) => {
783
- const T = H(), L = /* @__PURE__ */ x(
784
- F,
785
- {
786
- alignItems: u ? "flex-end" : "center",
787
- direction: u ? "column-reverse" : "row",
788
- justifyContent: (
789
- // eslint-disable-next-line no-nested-ternary
790
- u && c && l ? "space-between" : "flex-end"
791
- ),
792
- children: [
793
- c && /* @__PURE__ */ a(
794
- B,
795
- {
796
- color: "inherit",
797
- onClick: t || o,
798
- size: "small",
799
- sx: {
800
- color: T.palette.success.contrastText,
801
- height: 44
802
- },
803
- children: s
804
- }
805
- ),
806
- l && /* @__PURE__ */ a(
807
- q,
808
- {
809
- "aria-label": "close",
810
- color: "inherit",
811
- onClick: o,
812
- sx: { height: 44, width: 44 },
813
- children: /* @__PURE__ */ a(M, { fill: !0, name: "close", size: 24, weight: 400 })
814
- }
815
- )
816
- ]
817
- }
818
- );
880
+ const C = H(), O = d && /* @__PURE__ */ a(q, { "aria-label": i, color: "inherit", onClick: o, size: "small", children: /* @__PURE__ */ a(R, { fill: !0, name: "close" }) }), g = `${r}.main`;
819
881
  return /* @__PURE__ */ a(
820
- Se,
882
+ He,
821
883
  {
822
- TransitionComponent: Ge,
884
+ TransitionComponent: Ye,
823
885
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
824
- autoHideDuration: n,
886
+ autoHideDuration: c,
825
887
  onClose: o,
826
888
  open: e,
827
889
  sx: {
828
- ...d,
829
- width: u ? 400 : 325
890
+ ...n,
891
+ maxWidth: 568,
892
+ minWidth: 288,
893
+ minHeight: 56
830
894
  },
831
895
  children: /* @__PURE__ */ a(
832
- Ie,
896
+ Le,
833
897
  {
834
- action: L,
898
+ action: O,
835
899
  severity: r,
836
900
  sx: {
901
+ backgroundColor: g,
837
902
  display: "flex",
838
- alignItems: "stretch",
839
- minHeight: l && c && u ? 120 : 56,
840
- maxHeight: u ? 120 : 56,
841
903
  width: "100%",
842
- "& .MuiAlert-icon": {
843
- alignSelf: u ? "flex-start" : "center"
844
- },
904
+ py: 8,
845
905
  "& .MuiAlert-message": {
846
- paddingTop: u ? 12 : 8,
847
- paddingBottom: u ? 12 : 8,
848
- alignSelf: u ? "flex-start" : "center"
906
+ my: 0,
907
+ flex: 1,
908
+ overflow: "hidden"
849
909
  },
850
910
  "& .MuiAlert-action": {
851
- alignItems: "stretch",
852
- height: "auto"
911
+ alignItems: d ? "flex-start" : "center"
853
912
  }
854
913
  },
855
914
  variant: "filled",
856
- children: /* @__PURE__ */ a(
857
- k,
915
+ children: /* @__PURE__ */ T(
916
+ I,
858
917
  {
859
918
  sx: {
860
- lineHeight: T.typography.body1.lineHeight,
861
- whiteSpace: u ? "normal" : "nowrap",
862
- overflow: u ? "visible" : "hidden",
863
- textOverflow: u ? "clip" : "ellipsis"
919
+ flexDirection: "row",
920
+ flexWrap: "wrap",
921
+ alignItems: "baseline",
922
+ justifyContent: "space-between",
923
+ width: "100%",
924
+ rowGap: "16px",
925
+ columnGap: "16px"
864
926
  },
865
- truncate: !u,
866
- children: i
927
+ children: [
928
+ /* @__PURE__ */ a(
929
+ k,
930
+ {
931
+ sx: {
932
+ lineHeight: C.typography.body1.lineHeight,
933
+ flex: 1,
934
+ minWidth: "70%",
935
+ px: 5
936
+ },
937
+ truncate: !1,
938
+ children: l
939
+ }
940
+ ),
941
+ s && /* @__PURE__ */ a(
942
+ V,
943
+ {
944
+ color: "inherit",
945
+ onClick: m || o,
946
+ size: "small",
947
+ sx: {
948
+ color: C.palette.success.contrastText,
949
+ whiteSpace: "nowrap",
950
+ flexShrink: 0,
951
+ minWidth: "auto",
952
+ justifyContent: "flex-start"
953
+ },
954
+ children: t
955
+ }
956
+ )
957
+ ]
867
958
  }
868
959
  )
869
960
  }
870
961
  )
871
962
  }
872
963
  );
873
- }, O = {
964
+ }, F = {
874
965
  REACT: "react",
875
966
  REACT_NATIVE: "react_native",
876
967
  NATIVE: "native"
877
- }, P = {
968
+ }, N = {
878
969
  LIGHT: "light",
879
970
  DARK: "dark"
880
- }, te = C.createContext(ee), ie = C.createContext(
881
- z(P.LIGHT, O.REACT_NATIVE)
882
- ), q0 = ({
971
+ }, te = x.createContext(ee), ie = x.createContext(
972
+ G(N.LIGHT, F.REACT_NATIVE)
973
+ ), uo = ({
883
974
  children: e,
884
- target: o = O.REACT,
885
- theme: i = P.LIGHT,
886
- tokenOverrides: n
975
+ target: o = F.REACT,
976
+ theme: i = N.LIGHT,
977
+ tokenOverrides: l
887
978
  }) => {
888
- const [r, d] = C.useState(i === P.LIGHT ? ee : ve), c = C.useMemo(() => ({
889
- ...n
890
- }), [n]);
891
- return C.useEffect(() => {
892
- const l = z(i, o, { ...c });
893
- d(l);
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,
979
+ const [c, r] = x.useState(i === N.LIGHT ? ee : Fe), n = x.useMemo(() => ({
980
+ ...l
981
+ }), [l]);
982
+ return x.useEffect(() => {
983
+ const s = G(i, o, { ...n });
984
+ r(s);
985
+ }, [i, o, n]), o === F.REACT ? /* @__PURE__ */ a(te.Provider, { value: c, children: e }) : (console.warn("DEPRECATED: Use static values instead of tokens"), /* @__PURE__ */ a(ie.Provider, { value: c, children: e }));
986
+ }, po = (e = F.REACT, o = {}) => {
987
+ const i = e === F.REACT ? te : ie, l = x.useContext(i);
988
+ return l || G(N.LIGHT, e, { ...o });
989
+ }, ho = ({
990
+ component: e = B,
900
991
  variant: o = "outlined",
901
992
  selected: i,
902
- onChange: n,
903
- headline: r,
904
- message: d,
905
- name: c,
906
- value: l,
907
- disabled: s = !1,
993
+ onChange: l,
994
+ headline: c,
995
+ message: r,
996
+ name: n,
997
+ value: s,
998
+ disabled: d = !1,
908
999
  error: t = !1,
909
- icon: u = !1,
910
- sx: T = {},
911
- ...L
1000
+ icon: m = !1,
1001
+ sx: C = {},
1002
+ ...O
912
1003
  }) => {
913
- const m = H(), ae = () => {
914
- if (!s && n) {
915
- const $ = e === D ? !0 : !i;
916
- n({
917
- target: { value: l, checked: $ }
918
- }, $);
919
- }
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
- return /* @__PURE__ */ x(
922
- He,
1004
+ const g = H(), ae = () => g.palette.background.paper, w = () => t ? `inset 0px 0px 0px 2px ${g.palette.error.main}` : d ? i ? `inset 0px 0px 0px 2px ${g.palette.action.disabled}` : o === "outlined" ? `inset 0px 0px 0px 1px ${g.palette.action.disabledBackground}` : `inset 0px 0px 0px 1px ${g.palette.action.disabled}` : o === "outlined" ? i ? `inset 0px 0px 0px 2px ${b(g.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${b(g.palette.common.black, 0.23)}` : i ? `inset 0px 0px 0px 2px ${b(g.palette.primary.main, 0.5)}` : g.shadows[1], ne = () => d || t ? g.palette.background.paper : b(g.palette.primary.main, 0.1), le = () => d || t ? w() : o === "outlined" ? i ? `inset 0px 0px 0px 2px ${b(g.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${b(g.palette.primary.main, 0.5)}` : w(), ce = () => d || t ? g.palette.background.paper : b(g.palette.primary.main, 0.3);
1005
+ return /* @__PURE__ */ a(
1006
+ ke,
923
1007
  {
924
- elevation: o === "elevation" ? 1 : 0,
925
- onClick: ae,
1008
+ checked: i,
1009
+ control: e === B ? /* @__PURE__ */ a(
1010
+ B,
1011
+ {
1012
+ name: n,
1013
+ sx: {
1014
+ p: 0,
1015
+ ml: 16,
1016
+ mt: "8px",
1017
+ flexShrink: 0,
1018
+ "& .MuiSvgIcon-root": {
1019
+ fontSize: "20px"
1020
+ }
1021
+ },
1022
+ ...O
1023
+ }
1024
+ ) : /* @__PURE__ */ a(
1025
+ Oe,
1026
+ {
1027
+ name: n,
1028
+ sx: {
1029
+ p: 0,
1030
+ ml: 16,
1031
+ mt: "8px",
1032
+ flexShrink: 0,
1033
+ "& .MuiSvgIcon-root": {
1034
+ fontSize: "20px"
1035
+ }
1036
+ },
1037
+ ...O
1038
+ }
1039
+ ),
1040
+ disabled: d,
1041
+ label: /* @__PURE__ */ T(_, { sx: { display: "flex", alignItems: "flex-start", width: "100%" }, children: [
1042
+ m && /* @__PURE__ */ a(_, { sx: { mr: 12, mt: "8px", flexShrink: 0 }, children: m }),
1043
+ /* @__PURE__ */ T(_, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
1044
+ c && /* @__PURE__ */ a(X, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: c }),
1045
+ /* @__PURE__ */ a(X, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: r })
1046
+ ] })
1047
+ ] }),
1048
+ labelPlacement: "start",
1049
+ onChange: l,
926
1050
  sx: {
927
1051
  display: "flex",
928
1052
  padding: "6px 16px",
929
1053
  alignItems: "flex-start",
930
1054
  justifyContent: "space-between",
931
- borderRadius: m.shape.borderRadius / 2,
1055
+ borderRadius: g.shape.borderRadius / 2,
932
1056
  mb: 16,
933
- cursor: s ? "not-allowed" : "pointer",
934
- opacity: s ? 0.6 : 1,
935
- backgroundColor: ne(),
1057
+ cursor: d ? "not-allowed" : "pointer",
1058
+ opacity: d ? 0.6 : 1,
1059
+ backgroundColor: ae(),
936
1060
  border: "none",
937
- boxShadow: G(),
1061
+ boxShadow: w(),
938
1062
  boxSizing: "border-box",
939
- transition: m.transitions.create(["background-color", "box-shadow"], {
940
- duration: m.transitions.duration.short
1063
+ transition: g.transitions.create(["background-color", "box-shadow"], {
1064
+ duration: g.transitions.duration.short
941
1065
  }),
942
1066
  "&:hover": {
943
- backgroundColor: le(),
944
- boxShadow: ce()
1067
+ backgroundColor: ne(),
1068
+ boxShadow: le()
945
1069
  },
946
1070
  "&:active": {
947
- backgroundColor: se()
1071
+ backgroundColor: ce()
948
1072
  },
949
1073
  "&:focus-visible": {
950
- outline: `2px solid ${m.palette.info.main}`,
1074
+ outline: `2px solid ${g.palette.info.main}`,
951
1075
  outlineOffset: "2px"
952
1076
  },
953
- ...T
1077
+ ...C
954
1078
  },
955
- tabIndex: 0,
956
- variant: o,
957
- children: [
958
- u && /* @__PURE__ */ a(
959
- X,
960
- {
961
- sx: {
962
- mr: 12,
963
- mt: "8px",
964
- flexShrink: 0
965
- },
966
- children: u
967
- }
968
- ),
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
- ] }),
973
- e === D ? /* @__PURE__ */ a(
974
- D,
975
- {
976
- checked: i,
977
- disabled: s,
978
- name: c,
979
- onChange: n,
980
- sx: {
981
- p: 0,
982
- ml: 16,
983
- mt: "8px",
984
- flexShrink: 0,
985
- "& .MuiSvgIcon-root": {
986
- fontSize: "20px"
987
- }
988
- },
989
- value: l,
990
- ...L
991
- }
992
- ) : /* @__PURE__ */ a(
993
- ye,
994
- {
995
- checked: i,
996
- disabled: s,
997
- name: c,
998
- onChange: n,
999
- sx: {
1000
- p: 0,
1001
- ml: 16,
1002
- mt: "8px",
1003
- flexShrink: 0,
1004
- "& .MuiSvgIcon-root": {
1005
- fontSize: "20px"
1006
- }
1007
- },
1008
- value: l,
1009
- ...L
1010
- }
1011
- )
1012
- ]
1079
+ value: s
1013
1080
  }
1014
1081
  );
1015
1082
  }, v = {
1016
1083
  LIGHT: "light"
1017
- }, A = (e) => ({
1018
- 50: y(e, 0.95),
1019
- 100: y(e, 0.85),
1020
- 200: y(e, 0.7),
1021
- 300: y(e, 0.55),
1022
- 400: y(e, 0.3),
1084
+ }, M = (e) => ({
1085
+ 50: L(e, 0.95),
1086
+ 100: L(e, 0.85),
1087
+ 200: L(e, 0.7),
1088
+ 300: L(e, 0.55),
1089
+ 400: L(e, 0.3),
1023
1090
  500: e,
1024
- 600: N(e, 0.3),
1025
- 700: N(e, 0.5),
1026
- 800: N(e, 0.65),
1027
- 900: N(e, 0.75)
1028
- }), R = "#FFFFFF", w = "#000000", $e = "#F9F9F9", E = {
1091
+ 600: D(e, 0.3),
1092
+ 700: D(e, 0.5),
1093
+ 800: D(e, 0.65),
1094
+ 900: D(e, 0.75)
1095
+ }), A = "#FFFFFF", z = "#000000", Xe = "#F9F9F9", je = "#000000", Qe = "#FFFFFF", Je = "#1A1A1A", E = {
1029
1096
  PRIMARY: "#2C64EF",
1030
1097
  SECONDARY: "#808080",
1031
1098
  INFO: "#2C64EF",
@@ -1041,14 +1108,14 @@ const J0 = ({
1041
1108
  CHART5: "#60A9FF",
1042
1109
  CHART6: "#C8BAEE",
1043
1110
  CHART7: "#585E67"
1044
- }, I = {
1111
+ }, y = {
1045
1112
  CHART_MONO1: "#C3EAFF",
1046
1113
  CHART_MONO2: "#8ED7FF",
1047
1114
  CHART_MONO3: "#60A9FF",
1048
1115
  CHART_MONO4: "#2F73DA",
1049
1116
  CHART_MONO5: "#034AB3",
1050
1117
  CHART_MONO6: "#002966"
1051
- }, p = {
1118
+ }, u = {
1052
1119
  AUTO_TRANSPORTT: "#00B0FF",
1053
1120
  BILLS_UTILITIES: "#F949BD",
1054
1121
  BUSINESS_SERVICES: "#2979FF",
@@ -1071,7 +1138,7 @@ const J0 = ({
1071
1138
  TRANSFER: "#2B9580",
1072
1139
  TRAVEL: "#3D5AFE",
1073
1140
  UNCATEGORIZED: "#8495AD"
1074
- }, h = {
1141
+ }, p = {
1075
1142
  AUTO_TRANSPORTT: "#77DAFF",
1076
1143
  BILLS_UTILITIES: "#FF81D4",
1077
1144
  BUSINESS_SERVICES: "#4BBAFF",
@@ -1094,141 +1161,121 @@ const J0 = ({
1094
1161
  TRANSFER: "#75C7B7",
1095
1162
  TRAVEL: "#76ACF7",
1096
1163
  UNCATEGORIZED: "#BCC6D4"
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;
1164
+ }, qe = (e, o) => {
1165
+ const i = M(o?.primary || E.PRIMARY), l = M(o?.secondary || E.SECONDARY), c = M(o?.error || E.ERROR), r = M(o?.warning || E.WARNING), n = M(o?.info || E.INFO), s = M(o?.success || E.SUCCESS), d = M(o?.grey || E.GREY), t = e === v.LIGHT;
1099
1166
  return {
1100
1167
  mode: e,
1101
1168
  // DEPRECATED: Use grey instead
1102
1169
  border: {
1103
- /* DEPRECATED: Use light instead */
1104
- lighter: t ? s[300] : s[700],
1105
- light: t ? s[300] : s[700],
1106
- main: t ? s[400] : s[600],
1107
- dark: s[500],
1108
- /* DEPRECATED: Use light instead */
1109
- darker: s[500]
1170
+ lighter: t ? d[300] : d[700],
1171
+ light: t ? d[300] : d[700],
1172
+ main: t ? d[400] : d[600],
1173
+ dark: d[500],
1174
+ darker: d[500]
1110
1175
  },
1111
1176
  common: {
1112
- white: R,
1113
- black: w
1177
+ white: A,
1178
+ black: z
1114
1179
  },
1115
1180
  primary: {
1116
1181
  ...i,
1117
- /* DEPRECATED: Use light instead */
1118
- lighter: t ? i[100] : i[800],
1182
+ lighter: t ? i[100] : i[700],
1119
1183
  light: t ? i[300] : i[600],
1120
1184
  main: t ? i[500] : i[400],
1121
1185
  dark: t ? i[700] : i[200],
1122
- /* DEPRECATED: Use dark instead */
1123
- darker: t ? i[900] : i[100]
1186
+ darker: t ? i[800] : i[100]
1124
1187
  },
1125
1188
  secondary: {
1126
- ...n,
1127
- /* DEPRECATED: Use light instead */
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
- /* DEPRECATED: Use dark instead */
1133
- darker: t ? n[900] : n[100]
1189
+ ...l,
1190
+ lighter: t ? l[100] : l[800],
1191
+ light: t ? l[300] : l[600],
1192
+ main: t ? l[500] : l[400],
1193
+ dark: t ? l[700] : l[200],
1194
+ darker: t ? l[800] : l[100]
1134
1195
  },
1135
1196
  neutral: {
1136
- ...s,
1137
- /* DEPRECATED: Use light instead */
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
- /* DEPRECATED: Use dark instead */
1143
- darker: t ? s[900] : s[100],
1144
- contrastText: Oe(t ? s[700] : s[400], "#fff") > 4.5 ? R : s[900]
1145
- },
1146
- text: {
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
- },
1151
- error: {
1152
- ...r,
1153
- /* DEPRECATED: Use light instead */
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
- /* DEPRECATED: Use light instead */
1159
- darker: t ? r[900] : r[100]
1160
- },
1161
- warning: {
1162
1197
  ...d,
1163
- /* DEPRECATED: Use light instead */
1164
1198
  lighter: t ? d[100] : d[800],
1165
1199
  light: t ? d[300] : d[600],
1166
1200
  main: t ? d[500] : d[400],
1167
1201
  dark: t ? d[700] : d[200],
1168
- /* DEPRECATED: Use light instead */
1169
- darker: t ? d[900] : d[100]
1202
+ darker: t ? d[800] : d[100],
1203
+ contrastText: De(t ? d[700] : d[400], "#fff") > 4.5 ? A : d[900]
1170
1204
  },
1171
- info: {
1205
+ text: {
1206
+ primary: t ? d[900] : A,
1207
+ secondary: t ? d[600] : b(A, 0.7),
1208
+ disabled: t ? d[500] : b(A, 0.38)
1209
+ },
1210
+ error: {
1172
1211
  ...c,
1173
- /* DEPRECATED: Use light instead */
1174
- lighter: t ? c[100] : c[800],
1212
+ lighter: t ? c[100] : c[700],
1175
1213
  light: t ? c[300] : c[600],
1176
1214
  main: t ? c[500] : c[400],
1177
1215
  dark: t ? c[700] : c[200],
1178
- /* DEPRECATED: Use light instead */
1179
- darker: t ? c[900] : c[100]
1216
+ darker: t ? c[800] : c[100]
1217
+ },
1218
+ warning: {
1219
+ ...r,
1220
+ lighter: t ? r[100] : r[700],
1221
+ light: t ? r[300] : r[600],
1222
+ main: t ? r[500] : r[400],
1223
+ dark: t ? r[700] : r[200],
1224
+ darker: t ? r[800] : r[100]
1225
+ },
1226
+ info: {
1227
+ ...n,
1228
+ lighter: t ? n[100] : n[700],
1229
+ light: t ? n[300] : n[600],
1230
+ main: t ? n[500] : n[400],
1231
+ dark: t ? n[700] : n[200],
1232
+ darker: t ? n[800] : n[100]
1180
1233
  },
1181
1234
  success: {
1182
- ...l,
1183
- /* DEPRECATED: Use light instead */
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
- /* DEPRECATED: Use light instead */
1189
- darker: t ? l[900] : l[100]
1235
+ ...s,
1236
+ lighter: t ? s[100] : s[700],
1237
+ light: t ? s[300] : s[600],
1238
+ main: t ? s[500] : s[400],
1239
+ dark: t ? s[700] : s[200],
1240
+ darker: t ? s[800] : s[100]
1190
1241
  },
1191
- grey: s,
1242
+ grey: d,
1192
1243
  action: {
1193
- active: t ? b(w, 0.56) : b(R, 0.56),
1244
+ active: t ? b(z, 0.56) : b(A, 0.56),
1194
1245
  hoverOpacity: t ? 0.1 : 0.2,
1195
1246
  selectedOpacity: t ? 0.16 : 0.25,
1196
1247
  focusOpacity: 0.3
1197
1248
  },
1198
1249
  background: {
1199
- default: t ? $e : w,
1200
- // ? paletteCustomizations?.background?.default?.light || DEFAULT_BACKGROUND_LIGHT
1201
- // : paletteCustomizations?.background?.default?.dark || DEFAULT_BACKGROUND_DARK,
1202
- paper: t ? R : s[900],
1203
- // ? paletteCustomizations?.background?.paper?.light || WHITE
1204
- // : paletteCustomizations?.background?.paper?.dark || BLACK,
1205
- highlight: t ? s[200] : s[600],
1250
+ default: t ? o?.background?.default?.light || Xe : o?.background?.default?.dark || je,
1251
+ paper: t ? o?.background?.paper?.light || Qe : o?.background?.paper?.dark || Je,
1252
+ highlight: t ? d[200] : d[600],
1206
1253
  highlightPrimary: t ? i[100] : i[500]
1207
1254
  },
1208
- divider: t ? b(w, 0.12) : b(R, 0.24),
1255
+ divider: t ? b(z, 0.12) : b(A, 0.24),
1209
1256
  categories: {
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
1257
+ autoTransport: t ? u.AUTO_TRANSPORTT : p.AUTO_TRANSPORTT,
1258
+ billsUtilities: t ? u.BILLS_UTILITIES : p.BILLS_UTILITIES,
1259
+ businessServices: t ? u.BUSINESS_SERVICES : p.BUSINESS_SERVICES,
1260
+ education: t ? u.EDUCATION : p.EDUCATION,
1261
+ entertainment: t ? u.ENTERTAINMENT : p.ENTERTAINMENT,
1262
+ feesCharges: t ? u.FEES_CHARGES : p.FEES_CHARGES,
1263
+ financial: t ? u.FINANCIAL : p.FINANCIAL,
1264
+ foodDining: t ? u.FOOD_DINING : p.FOOD_DINING,
1265
+ giftsDonations: t ? u.GIFTS_DONATIONS : p.GIFTS_DONATIONS,
1266
+ healthFitness: t ? u.HEALTH_FITNESS : p.HEALTH_FITNESS,
1267
+ home: t ? u.HOME : p.HOME,
1268
+ income: t ? u.INCOME : p.INCOME,
1269
+ investments: t ? u.INVESTMENTS : p.INVESTMENTS,
1270
+ kids: t ? u.KIDS : p.KIDS,
1271
+ others: t ? u.OTHERS : p.OTHERS,
1272
+ personalCare: t ? u.PERSONAL_CARE : p.PERSONAL_CARE,
1273
+ pets: t ? u.PETS : p.PETS,
1274
+ shopping: t ? u.SHOPPING : p.SHOPPING,
1275
+ taxes: t ? u.TAXES : p.TAXES,
1276
+ transfer: t ? u.TRANSFER : p.TRANSFER,
1277
+ travel: t ? u.TRAVEL : p.TRAVEL,
1278
+ uncategorized: t ? u.UNCATEGORIZED : p.UNCATEGORIZED
1232
1279
  },
1233
1280
  chart: {
1234
1281
  chart1: S.CHART1,
@@ -1240,16 +1287,16 @@ const J0 = ({
1240
1287
  chart7: S.CHART7
1241
1288
  },
1242
1289
  chartMono: {
1243
- chartMono1: I.CHART_MONO1,
1244
- chartMono2: I.CHART_MONO2,
1245
- chartMono3: I.CHART_MONO3,
1246
- chartMono4: I.CHART_MONO4,
1247
- chartMono5: I.CHART_MONO5,
1248
- chartMono6: I.CHART_MONO6
1290
+ chartMono1: y.CHART_MONO1,
1291
+ chartMono2: y.CHART_MONO2,
1292
+ chartMono3: y.CHART_MONO3,
1293
+ chartMono4: y.CHART_MONO4,
1294
+ chartMono5: y.CHART_MONO5,
1295
+ chartMono6: y.CHART_MONO6
1249
1296
  }
1250
1297
  };
1251
- }, We = "Inter, Helvetica, Arial, sans-serif", Ze = (e) => {
1252
- const o = e?.fontFamily || We;
1298
+ }, e0 = "Inter, Helvetica, Arial, sans-serif", o0 = (e) => {
1299
+ const o = e?.fontFamily || e0;
1253
1300
  return {
1254
1301
  fontFamily: o,
1255
1302
  fontSize: 15,
@@ -1382,16 +1429,12 @@ const J0 = ({
1382
1429
  ...e
1383
1430
  };
1384
1431
  };
1385
- ke.setLicenseKey(
1386
- "6e7dd593526efa1f157230ecf06c9b02Tz0xMDA5NjAsRT0xNzYyMDQxNjAwMDAwLFM9cHJvLExNPWFubnVhbCxQVj1RMy0yMDI0LEtWPTI="
1432
+ we.setLicenseKey(
1433
+ "702b0c04dc7df078768d2d45cd3a98c6Tz0xMjEzMDYsRT0xNzkzNzUwMzk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
1387
1434
  );
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
- const ro = (e, o) => {
1393
- const i = Ue(e, o?.paletteOptions), n = Ze(o?.typographyOptions);
1394
- return j({
1435
+ const go = (e, o) => {
1436
+ const i = qe(e, o?.paletteOptions), l = o0(o?.typographyOptions), c = [...U().shadows];
1437
+ return c[1] = "0px 2px 8px 0 rgba(0, 0, 0, 0.12)", c[8] = "0px 6px 12px 0 rgba(0, 0, 0, 0.16), 0px 3px 8px 0 rgba(0, 0, 0, 0.06)", c[16] = "0px 12px 20px 0 rgba(0, 0, 0, 0.22)", U({
1395
1438
  breakpoints: {
1396
1439
  values: {
1397
1440
  xs: 444,
@@ -1402,34 +1445,34 @@ const ro = (e, o) => {
1402
1445
  }
1403
1446
  },
1404
1447
  palette: i,
1405
- shadows: _,
1406
1448
  shape: {
1407
1449
  borderRadius: o?.shapeOptions?.borderRadius || 4
1408
1450
  },
1451
+ shadows: c,
1409
1452
  spacing: 1,
1410
1453
  // TODO: update spacing, we're back to a 8-base which is default for MUI 2.x
1411
- typography: n,
1454
+ typography: l,
1412
1455
  components: {
1413
1456
  MuiAlert: {
1414
1457
  defaultProps: {
1415
1458
  iconMapping: {
1416
- success: /* @__PURE__ */ a(M, { fill: !0, name: "check_circle", size: 24, weight: 400 }),
1417
- error: /* @__PURE__ */ a(M, { fill: !0, name: "error", size: 24, weight: 400 }),
1418
- warning: /* @__PURE__ */ a(M, { fill: !0, name: "warning", size: 24, weight: 400 }),
1419
- info: /* @__PURE__ */ a(M, { fill: !0, name: "info", size: 24, weight: 400 })
1459
+ success: /* @__PURE__ */ a(R, { fill: !0, name: "check_circle", size: 24, weight: 400 }),
1460
+ error: /* @__PURE__ */ a(R, { fill: !0, name: "error", size: 24, weight: 400 }),
1461
+ warning: /* @__PURE__ */ a(R, { fill: !0, name: "warning", size: 24, weight: 400 }),
1462
+ info: /* @__PURE__ */ a(R, { fill: !0, name: "info", size: 24, weight: 400 })
1420
1463
  },
1421
1464
  variant: "outlined"
1422
1465
  },
1423
1466
  styleOverrides: {
1424
- root: ({ theme: r, ownerState: d }) => {
1425
- const c = d.severity || "info";
1426
- let l = r.palette.mode === v.LIGHT ? r.palette[c]?.[50] : r.palette[c]?.[800];
1427
- if (d.variant === "filled") {
1428
- const s = c === "warning";
1429
- l = r.palette[c]?.[s ? 400 : 600];
1467
+ root: ({ theme: r, ownerState: n }) => {
1468
+ const s = n.severity || "info";
1469
+ let d = r.palette.mode === v.LIGHT ? r.palette[s]?.[50] : r.palette[s]?.[800];
1470
+ if (n.variant === "filled") {
1471
+ const t = s === "warning";
1472
+ d = r.palette[s]?.[t ? 400 : 600];
1430
1473
  }
1431
1474
  return {
1432
- backgroundColor: l,
1475
+ backgroundColor: d,
1433
1476
  borderRadius: r.shape.borderRadius,
1434
1477
  "& .MuiAlert-message": {
1435
1478
  fontSize: r.typography.subtitle1.fontSize,
@@ -1475,6 +1518,14 @@ const ro = (e, o) => {
1475
1518
  }
1476
1519
  },
1477
1520
  variants: [
1521
+ {
1522
+ props: { variant: "outlined", color: "error" },
1523
+ style: ({ theme: r }) => ({
1524
+ "&:hover, &:active": {
1525
+ color: r.palette.error.dark
1526
+ }
1527
+ })
1528
+ },
1478
1529
  {
1479
1530
  props: { size: "small" },
1480
1531
  style: {
@@ -1511,7 +1562,7 @@ const ro = (e, o) => {
1511
1562
  MuiCircularProgress: {
1512
1563
  styleOverrides: {
1513
1564
  root: {
1514
- [`& .${Fe.circle}`]: {
1565
+ [`& .${Ne.circle}`]: {
1515
1566
  strokeLinecap: "round"
1516
1567
  }
1517
1568
  }
@@ -1719,7 +1770,7 @@ const ro = (e, o) => {
1719
1770
  },
1720
1771
  MuiLink: {
1721
1772
  styleOverrides: {
1722
- root: ({ theme: r, color: d }) => ({
1773
+ root: ({ theme: r, color: n }) => ({
1723
1774
  cursor: "pointer",
1724
1775
  fontWeight: 600,
1725
1776
  textDecoration: "none",
@@ -1734,7 +1785,7 @@ const ro = (e, o) => {
1734
1785
  backgroundColor: r.palette.action.hover
1735
1786
  },
1736
1787
  "&:active": {
1737
- backgroundColor: r.palette.mode === v.LIGHT ? r.palette[d].light : r.palette[d].dark
1788
+ backgroundColor: r.palette.mode === v.LIGHT ? r.palette[n].light : r.palette[n].dark
1738
1789
  }
1739
1790
  })
1740
1791
  }
@@ -1774,14 +1825,8 @@ const ro = (e, o) => {
1774
1825
  MuiListItemAvatar: {
1775
1826
  styleOverrides: {
1776
1827
  root: {
1777
- height: 32,
1778
1828
  marginRight: 12,
1779
- minWidth: 32,
1780
- width: 32,
1781
- "& .MuiAvatar-root": {
1782
- height: 32,
1783
- width: 32
1784
- }
1829
+ minWidth: "unset"
1785
1830
  }
1786
1831
  }
1787
1832
  },
@@ -1878,9 +1923,8 @@ const ro = (e, o) => {
1878
1923
  },
1879
1924
  MuiPaper: {
1880
1925
  styleOverrides: {
1881
- root: {
1926
+ rounded: {
1882
1927
  borderRadius: 8
1883
- // backgroundImage: 'unset',
1884
1928
  }
1885
1929
  }
1886
1930
  },
@@ -1913,9 +1957,9 @@ const ro = (e, o) => {
1913
1957
  gridColumn: "1/4",
1914
1958
  "& > .MuiTypography-root": {
1915
1959
  textTransform: "uppercase",
1916
- fontSize: n.body2.fontSize,
1960
+ fontSize: l.body2.fontSize,
1917
1961
  fontWeight: 600,
1918
- lineHeight: n.body2.lineHeight
1962
+ lineHeight: l.body2.lineHeight
1919
1963
  }
1920
1964
  }
1921
1965
  }
@@ -2044,8 +2088,7 @@ const ro = (e, o) => {
2044
2088
  disableFocusRipple: !0
2045
2089
  },
2046
2090
  styleOverrides: {
2047
- root: {
2048
- color: i.text.primary,
2091
+ root: ({ theme: r }) => ({
2049
2092
  fontSize: 13,
2050
2093
  lineHeight: "16px",
2051
2094
  textTransform: "none",
@@ -2054,24 +2097,26 @@ const ro = (e, o) => {
2054
2097
  outlineOffset: "2px"
2055
2098
  },
2056
2099
  "&:hover": {
2057
- backgroundColor: b(i.primary.main, i.mode === v.LIGHT ? 0.1 : 0.2),
2058
- borderColor: i.primary.main
2100
+ backgroundColor: b(
2101
+ r.palette.primary.main,
2102
+ i.mode === v.LIGHT ? 0.1 : 0.2
2103
+ ),
2104
+ borderColor: r.palette.primary.main
2059
2105
  },
2060
2106
  "&.Mui-selected": {
2061
2107
  fontWeight: 600,
2062
- borderColor: i.primary.main,
2108
+ borderColor: r.palette.primary.main,
2063
2109
  "&:hover": {
2064
- boxShadow: `inset 0px 0px 0px 2px ${i.primary.main}`
2110
+ boxShadow: `inset 0px 0px 0px 2px ${r.palette.primary.main}`
2065
2111
  }
2066
2112
  },
2067
2113
  "& .MuiTouchRipple-root": {
2068
- "& .MuiTouchRipple-ripple": {
2069
- "& .MuiTouchRipple-child": {
2070
- backgroundColor: i.primary.main
2071
- }
2114
+ "& .MuiTouchRipple-child": {
2115
+ backgroundColor: r.palette.primary.main,
2116
+ borderRadius: r.shape.borderRadius
2072
2117
  }
2073
2118
  }
2074
- }
2119
+ })
2075
2120
  },
2076
2121
  variants: [
2077
2122
  {
@@ -2142,51 +2187,51 @@ const ro = (e, o) => {
2142
2187
  });
2143
2188
  };
2144
2189
  export {
2145
- S0 as AccountsFilledIcon,
2146
- I0 as AccountsIcon,
2147
- v0 as ArrowLeftIcon,
2148
- H0 as AttentionFilledIcon,
2190
+ w0 as AccountsFilledIcon,
2191
+ P0 as AccountsIcon,
2192
+ _0 as ArrowLeftIcon,
2193
+ B0 as AttentionFilledIcon,
2149
2194
  f as BaseIcon,
2150
- $0 as BottomSheetTransition,
2151
- y0 as CalendarIcon,
2152
- g as CategoryGuids,
2153
- Pe as CategoryIcon,
2154
- Ne as CategoryIconList,
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
- Be as DialogFooter,
2163
- Y0 as DialogHeader,
2164
- X0 as Drawer,
2165
- N0 as EditIcon,
2166
- w0 as FilterIcon,
2167
- Be as Footer,
2168
- ze as H1,
2169
- U0 as H2,
2170
- W0 as H3,
2171
- P0 as HeartIcon,
2172
- We as INTER,
2173
- M as Icon,
2174
- Le as IconWeight,
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
- O as TARGETS,
2184
- P as THEMES,
2195
+ eo as BottomSheetTransition,
2196
+ z0 as CalendarIcon,
2197
+ h as CategoryGuids,
2198
+ Ve as CategoryIcon,
2199
+ Be as CategoryIconList,
2200
+ _e as CategoryIconVariants,
2201
+ V0 as CheckmarkFilledIcon,
2202
+ G0 as ChevronDownIcon,
2203
+ $0 as ChevronLeftIcon,
2204
+ U0 as ChevronRightIcon,
2205
+ W0 as CloseIcon,
2206
+ q0 as DateRangePicker,
2207
+ We as DialogFooter,
2208
+ io as DialogHeader,
2209
+ ao as Drawer,
2210
+ Z0 as EditIcon,
2211
+ K0 as FilterIcon,
2212
+ We as Footer,
2213
+ Ze as H1,
2214
+ oo as H2,
2215
+ ro as H3,
2216
+ Y0 as HeartIcon,
2217
+ e0 as INTER,
2218
+ R as Icon,
2219
+ Pe as IconWeight,
2220
+ no as InstitutionLogo,
2221
+ j0 as MXLogoCopyrightIcon,
2222
+ Q0 as MXLogoFilledIcon,
2223
+ X0 as MXLogoIcon,
2224
+ J0 as MXLogoOutlineIcon,
2225
+ lo as MerchantLogo,
2226
+ to as P,
2227
+ ho as SelectionBox,
2228
+ F as TARGETS,
2229
+ N as THEMES,
2185
2230
  k as Text,
2186
- Q0 as TextField,
2187
- J0 as Toast,
2188
- q0 as TokenProvider,
2189
- ro as createMXTheme,
2190
- eo as useTokens
2231
+ co as TextField,
2232
+ so as Toast,
2233
+ uo as TokenProvider,
2234
+ go as createMXTheme,
2235
+ po as useTokens
2191
2236
  };
2192
2237
  //# sourceMappingURL=index.es.js.map