@mxenabled/mxui 2.0.0-alpha.1 → 2.0.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,52 +1,52 @@
1
1
  import { jsx as a, jsxs as T } from "react/jsx-runtime";
2
2
  import L from "react";
3
3
  import E from "@mui/material/Stack";
4
- import { useTheme as O, createTheme as Y } from "@mui/material/styles";
5
- import { Icon as re, Close as te } from "@mxenabled/mx-icons";
4
+ import { useTheme as y, createTheme as K } from "@mui/material/styles";
5
+ import { Icon as re, Close as ie } from "@mxenabled/mx-icons";
6
6
  import { endOfMonth as $ } from "date-fns/endOfMonth";
7
- import { endOfYear as ie } from "date-fns/endOfYear";
8
- import { startOfToday as ae } from "date-fns/startOfToday";
7
+ import { endOfYear as ae } from "date-fns/endOfYear";
8
+ import { startOfToday as ne } from "date-fns/startOfToday";
9
9
  import { startOfMonth as U } from "date-fns/startOfMonth";
10
10
  import { startOfYear as G } from "date-fns/startOfYear";
11
- import { subDays as W } from "date-fns/subDays";
12
- import { subMonths as ne } from "date-fns/subMonths";
13
- import { subYears as le } from "date-fns/subYears";
14
- import se from "@mui/material/useMediaQuery";
15
- import { LocalizationProvider as ce, StaticDateRangePicker as de } from "@mui/x-date-pickers-pro";
16
- import { AdapterDateFns as pe } from "@mui/x-date-pickers-pro/AdapterDateFnsV3";
17
- import K from "@mui/material/Box";
18
- import ue from "@mui/material/ToggleButton";
19
- import he from "@mui/material/ToggleButtonGroup";
20
- import j from "@mui/material/Slide";
11
+ import { subDays as V } from "date-fns/subDays";
12
+ import { subMonths as le } from "date-fns/subMonths";
13
+ import { subYears as se } from "date-fns/subYears";
14
+ import ce from "@mui/material/useMediaQuery";
15
+ import { usePickerContext as de, useIsValidValue as pe, LocalizationProvider as ue, StaticDateRangePicker as he } from "@mui/x-date-pickers-pro";
16
+ import { AdapterDateFns as ge } from "@mui/x-date-pickers-pro/AdapterDateFns";
17
+ import j from "@mui/material/Box";
18
+ import fe from "@mui/material/ToggleButton";
19
+ import me from "@mui/material/ToggleButtonGroup";
20
+ import X from "@mui/material/Slide";
21
21
  import P from "@mui/material/Button";
22
- import X from "@mui/material/IconButton";
23
- import ge from "@mui/material/Typography";
24
- import fe from "@mui/material/Drawer";
25
- import me from "@mui/material/TextField";
26
- import be from "@mui/material/Snackbar";
27
- import Te from "@mui/material/Alert";
28
- import { FormControlLabel as xe, Box as B, Typography as V, Radio as _, Checkbox as Re, alpha as m, darken as N, lighten as I, getContrastRatio as Me } from "@mui/material";
29
- import { circularProgressClasses as Se } from "@mui/material/CircularProgress";
30
- import { LicenseInfo as Ce } from "@mui/x-license-pro";
22
+ import Z from "@mui/material/IconButton";
23
+ import be from "@mui/material/Typography";
24
+ import Te from "@mui/material/Drawer";
25
+ import xe from "@mui/material/TextField";
26
+ import Re from "@mui/material/Snackbar";
27
+ import Me from "@mui/material/Alert";
28
+ import { FormControlLabel as Ce, Box as B, Typography as W, Radio as _, Checkbox as Se, alpha as m, darken as N, lighten as I, getContrastRatio as Ae } from "@mui/material";
29
+ import { circularProgressClasses as Oe } from "@mui/material/CircularProgress";
30
+ import { LicenseInfo as ye } from "@mui/x-license";
31
31
  const D = ({
32
32
  children: e,
33
33
  height: i,
34
- size: r = 16,
34
+ size: o = 16,
35
35
  viewBox: n = "0 0 16 16",
36
- width: o
36
+ width: t
37
37
  }) => /* @__PURE__ */ a(
38
38
  "svg",
39
39
  {
40
40
  "aria-hidden": !0,
41
41
  className: "mx-kmui-icon",
42
42
  focusable: !1,
43
- height: i || r,
43
+ height: i || o,
44
44
  viewBox: n,
45
- width: o || r,
45
+ width: t || o,
46
46
  xmlns: "http://www.w3.org/2000/svg",
47
47
  children: e
48
48
  }
49
- ), R = ({ color: e, fill: i = !1, name: r, size: n = 20, sx: o, ...s }) => /* @__PURE__ */ a(re, { color: e, fill: i, name: r, size: n, sx: o, ...s }), fo = ({
49
+ ), R = ({ color: e, fill: i = !1, name: o, size: n = 20, sx: t, ...s }) => /* @__PURE__ */ a(re, { color: e, fill: i, name: o, size: n, sx: t, ...s }), mt = ({
50
50
  color: e = "currentColor",
51
51
  ...i
52
52
  }) => /* @__PURE__ */ T(D, { ...i, children: [
@@ -64,7 +64,7 @@ const D = ({
64
64
  fill: e
65
65
  }
66
66
  )
67
- ] }), mo = ({
67
+ ] }), bt = ({
68
68
  color: e = "currentColor",
69
69
  ...i
70
70
  }) => /* @__PURE__ */ T(D, { ...i, children: [
@@ -100,7 +100,7 @@ const D = ({
100
100
  fillRule: "evenodd"
101
101
  }
102
102
  )
103
- ] }), bo = ({
103
+ ] }), Tt = ({
104
104
  color: e = "currentColor",
105
105
  ...i
106
106
  }) => /* @__PURE__ */ a(D, { ...i, children: /* @__PURE__ */ a(
@@ -111,7 +111,7 @@ const D = ({
111
111
  fill: e,
112
112
  fillRule: "evenodd"
113
113
  }
114
- ) }), To = ({
114
+ ) }), xt = ({
115
115
  color: e = "currentColor",
116
116
  ...i
117
117
  }) => /* @__PURE__ */ T(D, { ...i, children: [
@@ -139,12 +139,12 @@ const D = ({
139
139
  }
140
140
  )
141
141
  ] });
142
- 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 || {}), Ae = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Filled = "filled", e.Transparent = "transparent", e.TwoTone = "two-tone", e))(Ae || {});
143
- const Z = {
142
+ 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 || {}), Ie = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Filled = "filled", e.Transparent = "transparent", e.TwoTone = "two-tone", e))(Ie || {});
143
+ const Q = {
144
144
  guid: g.Uncategorized,
145
145
  colorName: "uncategorized",
146
146
  icon: "category"
147
- }, ye = [
147
+ }, Ee = [
148
148
  {
149
149
  guid: g.AutoTransport,
150
150
  colorName: "autoTransport",
@@ -245,16 +245,16 @@ const Z = {
245
245
  colorName: "travel",
246
246
  icon: "airplane_ticket"
247
247
  },
248
- Z
249
- ], Oe = 0.625, Ie = ({
248
+ Q
249
+ ], ve = 0.625, Fe = ({
250
250
  categoryGuid: e,
251
- icon_ratio: i = Oe,
252
- size: r = 32,
251
+ icon_ratio: i = ve,
252
+ size: o = 32,
253
253
  sx: n = {},
254
- variant: o = "filled"
254
+ variant: t = "filled"
255
255
  }) => {
256
- const s = O(), l = L.useMemo(
257
- () => ye.find((p) => p.guid === e) ?? Z,
256
+ const s = y(), l = L.useMemo(
257
+ () => Ee.find((p) => p.guid === e) ?? Q,
258
258
  [e]
259
259
  ), d = s.palette.categories[l.colorName];
260
260
  return /* @__PURE__ */ a(
@@ -263,38 +263,33 @@ const Z = {
263
263
  alignItems: "center",
264
264
  bgcolor: () => {
265
265
  let p = d;
266
- return o === "twotone" && (p = `${p}20`), o === "transparent" || o === "basic" ? "transparent" : p;
266
+ return t === "twotone" && (p = `${p}20`), t === "transparent" || t === "basic" ? "transparent" : p;
267
267
  },
268
268
  borderRadius: 1,
269
269
  color: () => {
270
- const p = o === "filled" ? s.palette.common.white : d;
271
- return o === "basic" ? s.palette.text.primary : p;
270
+ const p = t === "filled" ? s.palette.common.white : d;
271
+ return t === "basic" ? s.palette.text.primary : p;
272
272
  },
273
- height: r,
273
+ height: o,
274
274
  justifyContent: "center",
275
275
  sx: [...Array.isArray(n) ? n : [n]],
276
- width: r,
277
- children: /* @__PURE__ */ a(R, { name: l.icon, size: r * i })
276
+ width: o,
277
+ children: /* @__PURE__ */ a(R, { name: l.icon, size: o * i })
278
278
  }
279
279
  );
280
- }, Ee = ({
281
- items: e,
282
- onChange: i,
283
- isValid: r,
284
- selected: n
285
- }) => {
286
- const o = O(), s = e?.map((l) => {
287
- const d = l.getValue({ isValid: r });
280
+ }, Ne = ({ items: e, selected: i }) => {
281
+ const o = y(), { setValue: n } = de(), t = pe(), s = e?.map((l) => {
282
+ const d = l.getValue({ isValid: t });
288
283
  return {
289
284
  label: l.label,
290
285
  onClick: () => {
291
- i(d, "accept", l);
286
+ n(d, { changeImportance: "accept", shortcut: l });
292
287
  },
293
- disabled: !r(d)
288
+ disabled: !t(d)
294
289
  };
295
290
  });
296
- return /* @__PURE__ */ a(K, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ a(he, { color: "primary", orientation: "vertical", value: n, children: s?.map((l) => /* @__PURE__ */ a(
297
- ue,
291
+ 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: i, children: s?.map((l) => /* @__PURE__ */ a(
292
+ fe,
298
293
  {
299
294
  onClick: l.onClick,
300
295
  sx: {
@@ -321,19 +316,19 @@ const Z = {
321
316
  },
322
317
  l.label
323
318
  )) }) });
324
- }, xo = ({
319
+ }, Rt = ({
325
320
  copy: e,
326
321
  dateRange: i,
327
- onRangeChanged: r,
322
+ onRangeChanged: o,
328
323
  selectedShortcut: n = e.dateRangeThisMonth,
329
- sx: o = {}
324
+ sx: t = {}
330
325
  }) => {
331
- const s = O(), l = se(s.breakpoints.down("sm")), d = L.useMemo(() => {
332
- const t = ae(), p = ne(t, 1), b = le(t, 1);
326
+ const s = y(), l = ce(s.breakpoints.down("sm")), d = L.useMemo(() => {
327
+ const r = ne(), p = le(r, 1), b = se(r, 1);
333
328
  return [
334
329
  {
335
330
  label: e.dateRangeThisMonth,
336
- getValue: () => [U(t), $(t)]
331
+ getValue: () => [U(r), $(r)]
337
332
  },
338
333
  {
339
334
  label: e.dateRangeLastMonth,
@@ -341,31 +336,31 @@ const Z = {
341
336
  },
342
337
  {
343
338
  label: e.dateRangeLast30Days,
344
- getValue: () => [W(t, 30), t]
339
+ getValue: () => [V(r, 30), r]
345
340
  },
346
341
  {
347
342
  label: e.dateRangeLast90Days,
348
- getValue: () => [W(t, 90), t]
343
+ getValue: () => [V(r, 90), r]
349
344
  },
350
345
  {
351
346
  label: e.dateRangeYTD,
352
- getValue: () => [G(t), t]
347
+ getValue: () => [G(r), r]
353
348
  },
354
349
  {
355
350
  label: e.dateRangeLastYear,
356
- getValue: () => [G(b), ie(b)]
351
+ getValue: () => [G(b), ae(b)]
357
352
  },
358
353
  {
359
354
  label: e.dateRangeCustom,
360
- getValue: () => [t, t]
355
+ getValue: () => [r, r]
361
356
  }
362
357
  ];
363
- }, [e]), c = (t, p) => {
358
+ }, [e]), c = (r, p) => {
364
359
  const b = p.shortcut;
365
- r?.(t, b ? b.label : e.dateRangeCustom);
360
+ o?.(r, b ? b.label : e.dateRangeCustom);
366
361
  };
367
- return /* @__PURE__ */ a(E, { gap: 16, m: 8, children: /* @__PURE__ */ a(ce, { dateAdapter: pe, children: /* @__PURE__ */ a(
368
- de,
362
+ return /* @__PURE__ */ a(E, { gap: 16, m: 8, children: /* @__PURE__ */ a(ue, { dateAdapter: ge, children: /* @__PURE__ */ a(
363
+ he,
369
364
  {
370
365
  calendars: 1,
371
366
  localeText: {
@@ -386,21 +381,21 @@ const Z = {
386
381
  },
387
382
  slots: {
388
383
  leftArrowIcon: () => /* @__PURE__ */ a(R, { name: "chevron_left", size: 28 }),
389
- shortcuts: (t) => /* @__PURE__ */ a(Ee, { selected: n, ...t }),
384
+ shortcuts: (r) => /* @__PURE__ */ a(Ne, { selected: n, ...r }),
390
385
  rightArrowIcon: () => /* @__PURE__ */ a(R, { name: "chevron_right", size: 28 })
391
386
  },
392
- sx: { ...o },
387
+ sx: { ...t },
393
388
  value: i
394
389
  }
395
390
  ) }) });
396
- }, Ro = L.forwardRef(function(i, r) {
397
- return /* @__PURE__ */ a(j, { direction: "up", ref: r, ...i });
398
- }), ve = ({
391
+ }, Mt = L.forwardRef(function(i, o) {
392
+ return /* @__PURE__ */ a(X, { direction: "up", ref: o, ...i });
393
+ }), He = ({
399
394
  hasSecondaryAction: e = !0,
400
395
  isPrimaryDisabled: i,
401
- onPrimaryAction: r,
396
+ onPrimaryAction: o,
402
397
  onSecondaryAction: n,
403
- primaryColor: o = "primary",
398
+ primaryColor: t = "primary",
404
399
  primaryText: s = "Save",
405
400
  secondaryColor: l = "primary",
406
401
  secondaryText: d = "Cancel"
@@ -410,23 +405,23 @@ const Z = {
410
405
  direction: "row",
411
406
  gap: 16,
412
407
  justifyContent: "flex-end",
413
- sx: { bgcolor: "background.paper", width: "100%", p: 24 },
408
+ sx: { bgcolor: "background.paper", p: 24 },
414
409
  children: [
415
410
  e && /* @__PURE__ */ a(
416
411
  P,
417
412
  {
418
413
  color: l,
419
414
  onClick: n,
420
- variant: r ? "outlined" : "contained",
415
+ variant: o ? "outlined" : "contained",
421
416
  children: d
422
417
  }
423
418
  ),
424
- r && /* @__PURE__ */ a(
419
+ o && /* @__PURE__ */ a(
425
420
  P,
426
421
  {
427
- color: o,
422
+ color: t,
428
423
  disabled: i,
429
- onClick: r,
424
+ onClick: o,
430
425
  variant: "contained",
431
426
  children: s
432
427
  }
@@ -436,14 +431,14 @@ const Z = {
436
431
  ), v = ({
437
432
  bold: e,
438
433
  className: i = "",
439
- children: r,
434
+ children: o,
440
435
  color: n,
441
- sx: o = {},
436
+ sx: t = {},
442
437
  truncate: s = !0,
443
438
  uppercase: l,
444
439
  ...d
445
440
  }) => /* @__PURE__ */ a(
446
- ge,
441
+ be,
447
442
  {
448
443
  className: `mx-kmui-text ${i}`,
449
444
  color: n,
@@ -459,22 +454,22 @@ const Z = {
459
454
  l ? {
460
455
  textTransform: "uppercase"
461
456
  } : {},
462
- ...Array.isArray(o) ? o : [o]
457
+ ...Array.isArray(t) ? t : [t]
463
458
  ],
464
459
  ...d,
465
- children: r
460
+ children: o
466
461
  }
467
- ), Fe = ({ className: e = "", children: i, ...r }) => /* @__PURE__ */ a(v, { className: `mx-mxui-text h1 ${e}`, component: "h1", variant: "h1", ...r, children: i }), Mo = ({ className: e = "", children: i, ...r }) => /* @__PURE__ */ a(v, { className: `mx-mxui-text h2 ${e}`, component: "h2", variant: "h2", ...r, children: i }), So = ({ className: e = "", children: i, ...r }) => /* @__PURE__ */ a(v, { className: `mx-mxui-text h3 ${e}`, component: "h3", variant: "h3", ...r, children: i }), Co = ({ className: e = "", children: i, truncate: r, ...n }) => /* @__PURE__ */ a(
462
+ ), Le = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(v, { className: `mx-mxui-text h1 ${e}`, component: "h1", variant: "h1", ...o, children: i }), Ct = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(v, { className: `mx-mxui-text h2 ${e}`, component: "h2", variant: "h2", ...o, children: i }), St = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(v, { className: `mx-mxui-text h3 ${e}`, component: "h3", variant: "h3", ...o, children: i }), At = ({ className: e = "", children: i, truncate: o, ...n }) => /* @__PURE__ */ a(
468
463
  v,
469
464
  {
470
465
  className: `mx-mxui-text p ${e}`,
471
466
  component: "p",
472
- truncate: r || !1,
467
+ truncate: o || !1,
473
468
  variant: "body1",
474
469
  ...n,
475
470
  children: i
476
471
  }
477
- ), Ao = ({ copy: e, onClose: i }) => /* @__PURE__ */ T(
472
+ ), Ot = ({ copy: e, onClose: i }) => /* @__PURE__ */ T(
478
473
  E,
479
474
  {
480
475
  sx: {
@@ -485,81 +480,81 @@ const Z = {
485
480
  py: 14
486
481
  },
487
482
  children: [
488
- /* @__PURE__ */ a(Fe, { variant: "h3", children: e.title }),
489
- /* @__PURE__ */ a(X, { "aria-label": e.close_aria, onClick: i, sx: { mr: -12 }, children: /* @__PURE__ */ a(te, {}) })
483
+ /* @__PURE__ */ a(Le, { variant: "h3", children: e.title }),
484
+ /* @__PURE__ */ a(Z, { "aria-label": e.close_aria, onClick: i, sx: { mr: -12 }, children: /* @__PURE__ */ a(ie, {}) })
490
485
  ]
491
486
  }
492
- ), yo = ({
487
+ ), yt = ({
493
488
  className: e,
494
489
  disableSave: i,
495
- id: r,
490
+ id: o,
496
491
  isOpen: n,
497
- onClose: o,
492
+ onClose: t,
498
493
  onSave: s,
499
494
  primaryText: l,
500
495
  secondaryText: d,
501
496
  children: c,
502
- ...t
497
+ ...r
503
498
  }) => /* @__PURE__ */ T(
504
- fe,
499
+ Te,
505
500
  {
506
501
  anchor: "right",
507
502
  className: `mx-kmui-drawer ${e}`,
508
- id: r ?? void 0,
509
- onClose: o,
503
+ id: o ?? void 0,
504
+ onClose: t,
510
505
  open: n,
511
506
  variant: "temporary",
512
- ...t,
507
+ ...r,
513
508
  children: [
514
509
  c,
515
510
  s && /* @__PURE__ */ a(
516
- ve,
511
+ He,
517
512
  {
518
513
  isPrimaryDisabled: i,
519
514
  onPrimaryAction: s,
520
- onSecondaryAction: o,
515
+ onSecondaryAction: t,
521
516
  primaryText: l,
522
517
  secondaryText: d
523
518
  }
524
519
  )
525
520
  ]
526
521
  }
527
- ), Q = 32, z = "https://content.moneydesktop.com/storage/MD_Assets", Ne = `${z}/serenity/default_institution_logo.png`, Oo = ({
522
+ ), J = 32, z = "https://content.moneydesktop.com/storage/MD_Assets", De = `${z}/serenity/default_institution_logo.png`, It = ({
528
523
  alt: e,
529
524
  institutionGuid: i,
530
- logoUrl: r,
531
- size: n = Q,
532
- ...o
525
+ logoUrl: o,
526
+ size: n = J,
527
+ ...t
533
528
  }) => /* @__PURE__ */ a(
534
529
  "img",
535
530
  {
536
531
  alt: e,
537
532
  height: n,
538
- onError: (s) => s.target.src = Ne,
539
- src: r || `${z}/Ipad%20Logos/100x100/${i}_100x100.png`,
533
+ onError: (s) => s.target.src = De,
534
+ src: o || `${z}/Ipad%20Logos/100x100/${i}_100x100.png`,
540
535
  style: {
541
536
  borderRadius: 4
542
537
  },
543
538
  width: n,
544
- ...o
539
+ ...t
545
540
  }
546
- ), Io = ({
541
+ ), Et = ({
547
542
  alt: e = "",
548
543
  categoryGuid: i,
549
- merchantGuid: r,
550
- size: n = Q,
551
- ...o
544
+ merchantGuid: o,
545
+ size: n = J,
546
+ ...t
552
547
  }) => {
553
- const [s, l] = L.useState(!1), d = O();
554
- return /* @__PURE__ */ T(K, { display: "inline-block", position: "relative", ...o, children: [
555
- r && !s && /* @__PURE__ */ a(
548
+ const [s, l] = L.useState(!1), d = y();
549
+ return /* @__PURE__ */ T(j, { display: "inline-block", position: "relative", ...t, children: [
550
+ o && !s && /* @__PURE__ */ a(
556
551
  "img",
557
552
  {
558
553
  alt: e,
559
554
  "aria-hidden": !e,
560
555
  height: n,
561
556
  onError: () => l(!0),
562
- src: `${z}/merchant_logos/${r}.png`,
557
+ src: `${z}/merchant_logos/${o}.png`,
563
558
  style: {
564
559
  backgroundColor: d.palette.common.white,
565
560
  borderRadius: 4,
@@ -569,43 +564,43 @@ const Z = {
569
564
  width: n
570
565
  }
571
566
  ),
572
- /* @__PURE__ */ a(Ie, { categoryGuid: i, size: n })
567
+ /* @__PURE__ */ a(Fe, { categoryGuid: i, size: n })
573
568
  ] });
574
- }, Eo = ({
569
+ }, vt = ({
575
570
  disabled: e = !1,
576
571
  label: i = "",
577
- shrink: r = !0,
572
+ shrink: o = !0,
578
573
  variant: n = "outlined",
579
- ...o
574
+ ...t
580
575
  }) => /* @__PURE__ */ a(
581
- me,
576
+ xe,
582
577
  {
583
578
  InputLabelProps: {
584
- shrink: r
579
+ shrink: o
585
580
  },
586
581
  disabled: e,
587
582
  label: i,
588
583
  variant: n,
589
- ...o
584
+ ...t
590
585
  }
591
586
  );
592
- function He(e) {
593
- return /* @__PURE__ */ a(j, { ...e, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
587
+ function ke(e) {
588
+ return /* @__PURE__ */ a(X, { ...e, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
594
589
  }
595
- const vo = ({
590
+ const Ft = ({
596
591
  open: e,
597
592
  handleClose: i,
598
- message: r,
593
+ message: o,
599
594
  autoHideDuration: n = 3e3,
600
- severity: o = "success",
595
+ severity: t = "success",
601
596
  snackbarSx: s,
602
597
  showAction: l = !1,
603
598
  showClose: d = !1,
604
599
  actionText: c = "Undo",
605
- onActionClick: t,
600
+ onActionClick: r,
606
601
  multiLine: p = !1
607
602
  }) => {
608
- const b = O(), F = /* @__PURE__ */ T(
603
+ const b = y(), F = /* @__PURE__ */ T(
609
604
  E,
610
605
  {
611
606
  alignItems: p ? "flex-end" : "center",
@@ -619,7 +614,7 @@ const vo = ({
619
614
  P,
620
615
  {
621
616
  color: "inherit",
622
- onClick: t || i,
617
+ onClick: r || i,
623
618
  size: "small",
624
619
  sx: {
625
620
  color: b.palette.success.contrastText,
@@ -629,7 +624,7 @@ const vo = ({
629
624
  }
630
625
  ),
631
626
  d && /* @__PURE__ */ a(
632
- X,
627
+ Z,
633
628
  {
634
629
  "aria-label": "close",
635
630
  color: "inherit",
@@ -642,9 +637,9 @@ const vo = ({
642
637
  }
643
638
  );
644
639
  return /* @__PURE__ */ a(
645
- be,
640
+ Re,
646
641
  {
647
- TransitionComponent: He,
642
+ TransitionComponent: ke,
648
643
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
649
644
  autoHideDuration: n,
650
645
  onClose: i,
@@ -654,10 +649,10 @@ const vo = ({
654
649
  width: p ? 400 : 325
655
650
  },
656
651
  children: /* @__PURE__ */ a(
657
- Te,
652
+ Me,
658
653
  {
659
654
  action: F,
660
- severity: o,
655
+ severity: t,
661
656
  sx: {
662
657
  display: "flex",
663
658
  alignItems: "stretch",
@@ -688,33 +683,33 @@ const vo = ({
688
683
  textOverflow: p ? "clip" : "ellipsis"
689
684
  },
690
685
  truncate: !p,
691
- children: r
686
+ children: o
692
687
  }
693
688
  )
694
689
  }
695
690
  )
696
691
  }
697
692
  );
698
- }, Fo = ({
693
+ }, Nt = ({
699
694
  component: e = _,
700
695
  variant: i = "outlined",
701
- selected: r,
696
+ selected: o,
702
697
  onChange: n,
703
- headline: o,
698
+ headline: t,
704
699
  message: s,
705
700
  name: l,
706
701
  value: d,
707
702
  disabled: c = !1,
708
- error: t = !1,
703
+ error: r = !1,
709
704
  icon: p = !1,
710
705
  sx: b = {},
711
706
  ...F
712
707
  }) => {
713
- const f = O(), J = () => f.palette.background.paper, w = () => t ? `inset 0px 0px 0px 2px ${f.palette.error.main}` : c ? r ? `inset 0px 0px 0px 2px ${f.palette.action.disabled}` : i === "outlined" ? `inset 0px 0px 0px 1px ${f.palette.action.disabledBackground}` : `inset 0px 0px 0px 1px ${f.palette.action.disabled}` : i === "outlined" ? r ? `inset 0px 0px 0px 2px ${m(f.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${m(f.palette.common.black, 0.23)}` : r ? `inset 0px 0px 0px 2px ${m(f.palette.primary.main, 0.5)}` : f.shadows[1], q = () => c || t ? f.palette.background.paper : m(f.palette.primary.main, 0.1), ee = () => c || t ? w() : i === "outlined" ? r ? `inset 0px 0px 0px 2px ${m(f.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${m(f.palette.primary.main, 0.5)}` : w(), oe = () => c || t ? f.palette.background.paper : m(f.palette.primary.main, 0.3);
708
+ const f = y(), q = () => f.palette.background.paper, w = () => r ? `inset 0px 0px 0px 2px ${f.palette.error.main}` : c ? o ? `inset 0px 0px 0px 2px ${f.palette.action.disabled}` : i === "outlined" ? `inset 0px 0px 0px 1px ${f.palette.action.disabledBackground}` : `inset 0px 0px 0px 1px ${f.palette.action.disabled}` : i === "outlined" ? o ? `inset 0px 0px 0px 2px ${m(f.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${m(f.palette.common.black, 0.23)}` : o ? `inset 0px 0px 0px 2px ${m(f.palette.primary.main, 0.5)}` : f.shadows[1], ee = () => c || r ? f.palette.background.paper : m(f.palette.primary.main, 0.1), te = () => c || r ? w() : i === "outlined" ? o ? `inset 0px 0px 0px 2px ${m(f.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${m(f.palette.primary.main, 0.5)}` : w(), oe = () => c || r ? f.palette.background.paper : m(f.palette.primary.main, 0.3);
714
709
  return /* @__PURE__ */ a(
715
- xe,
710
+ Ce,
716
711
  {
717
- checked: r,
712
+ checked: o,
718
713
  control: e === _ ? /* @__PURE__ */ a(
719
714
  _,
720
715
  {
@@ -731,7 +726,7 @@ const vo = ({
731
726
  ...F
732
727
  }
733
728
  ) : /* @__PURE__ */ a(
734
- Re,
729
+ Se,
735
730
  {
736
731
  name: l,
737
732
  sx: {
@@ -750,8 +745,8 @@ const vo = ({
750
745
  label: /* @__PURE__ */ T(B, { sx: { display: "flex", alignItems: "flex-start", width: "100%" }, children: [
751
746
  p && /* @__PURE__ */ a(B, { sx: { mr: 12, mt: "8px", flexShrink: 0 }, children: p }),
752
747
  /* @__PURE__ */ T(B, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
753
- o && /* @__PURE__ */ a(V, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: o }),
754
- /* @__PURE__ */ a(V, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: s })
748
+ t && /* @__PURE__ */ a(W, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: t }),
749
+ /* @__PURE__ */ a(W, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: s })
755
750
  ] })
756
751
  ] }),
757
752
  labelPlacement: "start",
@@ -765,7 +760,7 @@ const vo = ({
765
760
  mb: 16,
766
761
  cursor: c ? "not-allowed" : "pointer",
767
762
  opacity: c ? 0.6 : 1,
768
- backgroundColor: J(),
763
+ backgroundColor: q(),
769
764
  border: "none",
770
765
  boxShadow: w(),
771
766
  boxSizing: "border-box",
@@ -773,8 +768,8 @@ const vo = ({
773
768
  duration: f.transitions.duration.short
774
769
  }),
775
770
  "&:hover": {
776
- backgroundColor: q(),
777
- boxShadow: ee()
771
+ backgroundColor: ee(),
772
+ boxShadow: te()
778
773
  },
779
774
  "&:active": {
780
775
  backgroundColor: oe()
@@ -788,7 +783,7 @@ const vo = ({
788
783
  value: d
789
784
  }
790
785
  );
791
- }, y = {
786
+ }, O = {
792
787
  LIGHT: "light"
793
788
  }, M = (e) => ({
794
789
  50: I(e, 0.95),
@@ -801,7 +796,7 @@ const vo = ({
801
796
  700: N(e, 0.5),
802
797
  800: N(e, 0.65),
803
798
  900: N(e, 0.75)
804
- }), x = "#FFFFFF", H = "#000000", Le = "#F9F9F9", De = "#1A1A1A", S = {
799
+ }), x = "#FFFFFF", H = "#000000", we = "#F9F9F9", Be = "#1A1A1A", C = {
805
800
  PRIMARY: "#2C64EF",
806
801
  SECONDARY: "#808080",
807
802
  INFO: "#2C64EF",
@@ -809,7 +804,7 @@ const vo = ({
809
804
  WARNING: "#FF7B00",
810
805
  ERROR: "#E32727",
811
806
  GREY: "#808080"
812
- }, C = {
807
+ }, S = {
813
808
  CHART1: "#74E4DA",
814
809
  CHART2: "#ED64A4",
815
810
  CHART3: "#F3DC46",
@@ -870,8 +865,8 @@ const vo = ({
870
865
  TRANSFER: "#75C7B7",
871
866
  TRAVEL: "#76ACF7",
872
867
  UNCATEGORIZED: "#BCC6D4"
873
- }, ke = (e, i) => {
874
- const r = M(i?.primary || S.PRIMARY), n = M(i?.secondary || S.SECONDARY), o = M(i?.error || S.ERROR), s = M(i?.warning || S.WARNING), l = M(i?.info || S.INFO), d = M(i?.success || S.SUCCESS), c = M(i?.grey || S.GREY), t = e === y.LIGHT;
868
+ }, _e = (e, i) => {
869
+ const o = M(i?.primary || C.PRIMARY), n = M(i?.secondary || C.SECONDARY), t = M(i?.error || C.ERROR), s = M(i?.warning || C.WARNING), l = M(i?.info || C.INFO), d = M(i?.success || C.SUCCESS), c = M(i?.grey || C.GREY), r = e === O.LIGHT;
875
870
  return {
876
871
  mode: e,
877
872
  common: {
@@ -879,99 +874,99 @@ const vo = ({
879
874
  black: H
880
875
  },
881
876
  primary: {
882
- ...r,
883
- light: t ? r[300] : r[600],
884
- main: t ? r[500] : r[400],
885
- dark: t ? r[700] : r[200]
877
+ ...o,
878
+ light: r ? o[300] : o[600],
879
+ main: r ? o[500] : o[400],
880
+ dark: r ? o[700] : o[200]
886
881
  },
887
882
  secondary: {
888
883
  ...n,
889
- light: t ? n[300] : n[600],
890
- main: t ? n[500] : n[400],
891
- dark: t ? n[700] : n[200]
884
+ light: r ? n[300] : n[600],
885
+ main: r ? n[500] : n[400],
886
+ dark: r ? n[700] : n[200]
892
887
  },
893
888
  neutral: {
894
889
  ...c,
895
- light: t ? c[300] : c[600],
896
- main: t ? c[500] : c[400],
897
- dark: t ? c[700] : c[200],
898
- contrastText: Me(t ? c[700] : c[400], "#fff") > 4.5 ? x : c[900]
890
+ light: r ? c[300] : c[600],
891
+ main: r ? c[500] : c[400],
892
+ dark: r ? c[700] : c[200],
893
+ contrastText: Ae(r ? c[700] : c[400], "#fff") > 4.5 ? x : c[900]
899
894
  },
900
895
  text: {
901
- primary: t ? c[900] : x,
902
- secondary: t ? c[600] : m(x, 0.7),
903
- disabled: t ? c[500] : m(x, 0.38)
896
+ primary: r ? c[900] : x,
897
+ secondary: r ? c[600] : m(x, 0.7),
898
+ disabled: r ? c[500] : m(x, 0.38)
904
899
  },
905
900
  error: {
906
- ...o,
907
- light: t ? o[300] : o[600],
908
- main: t ? o[500] : o[400],
909
- dark: t ? o[700] : o[200]
901
+ ...t,
902
+ light: r ? t[300] : t[600],
903
+ main: r ? t[500] : t[400],
904
+ dark: r ? t[700] : t[200]
910
905
  },
911
906
  warning: {
912
907
  ...s,
913
- light: t ? s[300] : s[600],
914
- main: t ? s[500] : s[400],
915
- dark: t ? s[700] : s[200]
908
+ light: r ? s[300] : s[600],
909
+ main: r ? s[500] : s[400],
910
+ dark: r ? s[700] : s[200]
916
911
  },
917
912
  info: {
918
913
  ...l,
919
- light: t ? l[300] : l[600],
920
- main: t ? l[500] : l[400],
921
- dark: t ? l[700] : l[200]
914
+ light: r ? l[300] : l[600],
915
+ main: r ? l[500] : l[400],
916
+ dark: r ? l[700] : l[200]
922
917
  },
923
918
  success: {
924
919
  ...d,
925
- light: t ? d[300] : d[600],
926
- main: t ? d[500] : d[400],
927
- dark: t ? d[700] : d[200]
920
+ light: r ? d[300] : d[600],
921
+ main: r ? d[500] : d[400],
922
+ dark: r ? d[700] : d[200]
928
923
  },
929
924
  grey: c,
930
925
  action: {
931
- active: t ? m(H, 0.56) : m(x, 0.56),
932
- hoverOpacity: t ? 0.1 : 0.2,
933
- selectedOpacity: t ? 0.16 : 0.25,
926
+ active: r ? m(H, 0.56) : m(x, 0.56),
927
+ hoverOpacity: r ? 0.1 : 0.2,
928
+ selectedOpacity: r ? 0.16 : 0.25,
934
929
  focusOpacity: 0.3
935
930
  },
936
931
  background: {
937
- default: t ? i?.background?.default?.light || Le : i?.background?.default?.dark || H,
938
- paper: t ? i?.background?.paper?.light || x : i?.background?.paper?.dark || De,
939
- highlight: t ? c[200] : c[600],
940
- highlightPrimary: t ? r[100] : r[500]
932
+ default: r ? i?.background?.default?.light || we : i?.background?.default?.dark || H,
933
+ paper: r ? i?.background?.paper?.light || x : i?.background?.paper?.dark || Be,
934
+ highlight: r ? c[200] : c[600],
935
+ highlightPrimary: r ? o[100] : o[500]
941
936
  },
942
- divider: t ? m(H, 0.12) : m(x, 0.24),
937
+ divider: r ? m(H, 0.12) : m(x, 0.24),
943
938
  categories: {
944
- autoTransport: t ? u.AUTO_TRANSPORTT : h.AUTO_TRANSPORTT,
945
- billsUtilities: t ? u.BILLS_UTILITIES : h.BILLS_UTILITIES,
946
- businessServices: t ? u.BUSINESS_SERVICES : h.BUSINESS_SERVICES,
947
- education: t ? u.EDUCATION : h.EDUCATION,
948
- entertainment: t ? u.ENTERTAINMENT : h.ENTERTAINMENT,
949
- feesCharges: t ? u.FEES_CHARGES : h.FEES_CHARGES,
950
- financial: t ? u.FINANCIAL : h.FINANCIAL,
951
- foodDining: t ? u.FOOD_DINING : h.FOOD_DINING,
952
- giftsDonations: t ? u.GIFTS_DONATIONS : h.GIFTS_DONATIONS,
953
- healthFitness: t ? u.HEALTH_FITNESS : h.HEALTH_FITNESS,
954
- home: t ? u.HOME : h.HOME,
955
- income: t ? u.INCOME : h.INCOME,
956
- investments: t ? u.INVESTMENTS : h.INVESTMENTS,
957
- kids: t ? u.KIDS : h.KIDS,
958
- others: t ? u.OTHERS : h.OTHERS,
959
- personalCare: t ? u.PERSONAL_CARE : h.PERSONAL_CARE,
960
- pets: t ? u.PETS : h.PETS,
961
- shopping: t ? u.SHOPPING : h.SHOPPING,
962
- taxes: t ? u.TAXES : h.TAXES,
963
- transfer: t ? u.TRANSFER : h.TRANSFER,
964
- travel: t ? u.TRAVEL : h.TRAVEL,
965
- uncategorized: t ? u.UNCATEGORIZED : h.UNCATEGORIZED
939
+ autoTransport: r ? u.AUTO_TRANSPORTT : h.AUTO_TRANSPORTT,
940
+ billsUtilities: r ? u.BILLS_UTILITIES : h.BILLS_UTILITIES,
941
+ businessServices: r ? u.BUSINESS_SERVICES : h.BUSINESS_SERVICES,
942
+ education: r ? u.EDUCATION : h.EDUCATION,
943
+ entertainment: r ? u.ENTERTAINMENT : h.ENTERTAINMENT,
944
+ feesCharges: r ? u.FEES_CHARGES : h.FEES_CHARGES,
945
+ financial: r ? u.FINANCIAL : h.FINANCIAL,
946
+ foodDining: r ? u.FOOD_DINING : h.FOOD_DINING,
947
+ giftsDonations: r ? u.GIFTS_DONATIONS : h.GIFTS_DONATIONS,
948
+ healthFitness: r ? u.HEALTH_FITNESS : h.HEALTH_FITNESS,
949
+ home: r ? u.HOME : h.HOME,
950
+ income: r ? u.INCOME : h.INCOME,
951
+ investments: r ? u.INVESTMENTS : h.INVESTMENTS,
952
+ kids: r ? u.KIDS : h.KIDS,
953
+ others: r ? u.OTHERS : h.OTHERS,
954
+ personalCare: r ? u.PERSONAL_CARE : h.PERSONAL_CARE,
955
+ pets: r ? u.PETS : h.PETS,
956
+ shopping: r ? u.SHOPPING : h.SHOPPING,
957
+ taxes: r ? u.TAXES : h.TAXES,
958
+ transfer: r ? u.TRANSFER : h.TRANSFER,
959
+ travel: r ? u.TRAVEL : h.TRAVEL,
960
+ uncategorized: r ? u.UNCATEGORIZED : h.UNCATEGORIZED
966
961
  },
967
962
  chart: {
968
- chart1: C.CHART1,
969
- chart2: C.CHART2,
970
- chart3: C.CHART3,
971
- chart4: C.CHART4,
972
- chart5: C.CHART5,
973
- chart6: C.CHART6,
974
- chart7: C.CHART7
963
+ chart1: S.CHART1,
964
+ chart2: S.CHART2,
965
+ chart3: S.CHART3,
966
+ chart4: S.CHART4,
967
+ chart5: S.CHART5,
968
+ chart6: S.CHART6,
969
+ chart7: S.CHART7
975
970
  },
976
971
  chartMono: {
977
972
  chartMono1: A.CHART_MONO1,
@@ -982,8 +977,8 @@ const vo = ({
982
977
  chartMono6: A.CHART_MONO6
983
978
  }
984
979
  };
985
- }, we = "Inter, Helvetica, Arial, sans-serif", Be = (e) => {
986
- const i = e?.fontFamily || we;
980
+ }, Y = "Inter, Helvetica, Arial, sans-serif", Pe = (e) => {
981
+ const i = e?.fontFamily ? `${e?.fontFamily}, ${Y}` : Y;
987
982
  return {
988
983
  fontFamily: i,
989
984
  fontSize: 15,
@@ -1042,16 +1037,16 @@ const vo = ({
1042
1037
  ...e
1043
1038
  };
1044
1039
  };
1045
- Ce.setLicenseKey(
1040
+ ye.setLicenseKey(
1046
1041
  "6e7dd593526efa1f157230ecf06c9b02Tz0xMDA5NjAsRT0xNzYyMDQxNjAwMDAwLFM9cHJvLExNPWFubnVhbCxQVj1RMy0yMDI0LEtWPTI="
1047
1042
  );
1048
- const k = [...Y().shadows];
1043
+ const k = [...K().shadows];
1049
1044
  k[1] = "0px 2px 8px rgba(106, 115, 129, 0.12)";
1050
1045
  k[2] = "0px 6px 12px rgba(106, 115, 129, 0.16), 0px 3px 8px rgba(87, 102, 117, 0.06)";
1051
1046
  k[3] = "0px 12px 20px rgba(106, 115, 129, 0.22)";
1052
- const No = (e, i) => {
1053
- const r = ke(e, i?.paletteOptions), n = Be(i?.typographyOptions);
1054
- return Y({
1047
+ const Ht = (e, i) => {
1048
+ const o = _e(e, i?.paletteOptions), n = Pe(i?.typographyOptions);
1049
+ return K({
1055
1050
  breakpoints: {
1056
1051
  values: {
1057
1052
  xs: 444,
@@ -1061,7 +1056,7 @@ const No = (e, i) => {
1061
1056
  xl: 1536
1062
1057
  }
1063
1058
  },
1064
- palette: r,
1059
+ palette: o,
1065
1060
  shadows: k,
1066
1061
  shape: {
1067
1062
  borderRadius: i?.shapeOptions?.borderRadius || 4
@@ -1081,19 +1076,19 @@ const No = (e, i) => {
1081
1076
  variant: "outlined"
1082
1077
  },
1083
1078
  styleOverrides: {
1084
- root: ({ theme: o, ownerState: s }) => {
1079
+ root: ({ theme: t, ownerState: s }) => {
1085
1080
  const l = s.severity || "info";
1086
- let d = o.palette.mode === y.LIGHT ? o.palette[l]?.[50] : o.palette[l]?.[800];
1081
+ let d = t.palette.mode === O.LIGHT ? t.palette[l]?.[50] : t.palette[l]?.[800];
1087
1082
  if (s.variant === "filled") {
1088
1083
  const c = l === "warning";
1089
- d = o.palette[l]?.[c ? 400 : 600];
1084
+ d = t.palette[l]?.[c ? 400 : 600];
1090
1085
  }
1091
1086
  return {
1092
1087
  backgroundColor: d,
1093
- borderRadius: o.shape.borderRadius,
1088
+ borderRadius: t.shape.borderRadius,
1094
1089
  "& .MuiAlert-message": {
1095
- fontSize: o.typography.subtitle1.fontSize,
1096
- lineHeight: o.typography.subtitle1.lineHeight,
1090
+ fontSize: t.typography.subtitle1.fontSize,
1091
+ lineHeight: t.typography.subtitle1.lineHeight,
1097
1092
  marginTop: "auto",
1098
1093
  marginBottom: "auto"
1099
1094
  },
@@ -1119,14 +1114,14 @@ const No = (e, i) => {
1119
1114
  disableElevation: !0
1120
1115
  },
1121
1116
  styleOverrides: {
1122
- root: ({ theme: o }) => ({
1117
+ root: ({ theme: t }) => ({
1123
1118
  fontWeight: 600,
1124
1119
  textTransform: "none",
1125
1120
  "&.Mui-disabled": {
1126
1121
  cursor: "not-allowed"
1127
1122
  },
1128
1123
  "&.Mui-focusVisible": {
1129
- outline: `2px solid ${o.palette.info.main}`,
1124
+ outline: `2px solid ${t.palette.info.main}`,
1130
1125
  outlineOffset: "2px"
1131
1126
  }
1132
1127
  }),
@@ -1163,7 +1158,7 @@ const No = (e, i) => {
1163
1158
  styleOverrides: {
1164
1159
  root: {
1165
1160
  "&.Mui-focusVisible": {
1166
- boxShadow: `inset 0 0 0 2px ${r.info.main}`
1161
+ boxShadow: `inset 0 0 0 2px ${o.info.main}`
1167
1162
  }
1168
1163
  }
1169
1164
  }
@@ -1171,7 +1166,7 @@ const No = (e, i) => {
1171
1166
  MuiCircularProgress: {
1172
1167
  styleOverrides: {
1173
1168
  root: {
1174
- [`& .${Se.circle}`]: {
1169
+ [`& .${Oe.circle}`]: {
1175
1170
  strokeLinecap: "round"
1176
1171
  }
1177
1172
  }
@@ -1192,22 +1187,22 @@ const No = (e, i) => {
1192
1187
  },
1193
1188
  MuiDataGrid: {
1194
1189
  styleOverrides: {
1195
- root: ({ theme: o }) => ({
1190
+ root: ({ theme: t }) => ({
1196
1191
  border: "none",
1197
1192
  borderRadius: 0,
1198
- fontSize: o.typography.body2.fontSize,
1193
+ fontSize: t.typography.body2.fontSize,
1199
1194
  "& .MuiDataGrid-cell": {
1200
1195
  display: "flex",
1201
1196
  alignItems: "center",
1202
1197
  borderTop: "1px solid",
1203
- borderColor: o.palette.background.highlight
1198
+ borderColor: t.palette.background.highlight
1204
1199
  },
1205
1200
  "& .MuiDataGrid-cell:focus": { outline: "unset" },
1206
1201
  "& .MuiDataGrid-iconSeparator": { display: "none" },
1207
1202
  "& .MuiDataGrid-columnHeaders": {
1208
- backgroundColor: o.palette.background.paper,
1203
+ backgroundColor: t.palette.background.paper,
1209
1204
  borderBottom: "2px solid",
1210
- borderColor: o.palette.divider
1205
+ borderColor: t.palette.divider
1211
1206
  },
1212
1207
  "& .MuiDataGrid-columnHeaderTitle": {
1213
1208
  fontWeight: 600
@@ -1225,42 +1220,42 @@ const No = (e, i) => {
1225
1220
  },
1226
1221
  MuiDateRangePickerDay: {
1227
1222
  styleOverrides: {
1228
- root: ({ theme: o }) => ({
1223
+ root: ({ theme: t }) => ({
1229
1224
  ":first-of-type": {
1230
- borderTopLeftRadius: o.shape.borderRadius,
1231
- borderBottomLeftRadius: o.shape.borderRadius,
1225
+ borderTopLeftRadius: t.shape.borderRadius,
1226
+ borderBottomLeftRadius: t.shape.borderRadius,
1232
1227
  "& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
1233
- borderTopLeftRadius: o.shape.borderRadius,
1234
- borderBottomLeftRadius: o.shape.borderRadius
1228
+ borderTopLeftRadius: t.shape.borderRadius,
1229
+ borderBottomLeftRadius: t.shape.borderRadius
1235
1230
  }
1236
1231
  },
1237
1232
  ":last-of-type": {
1238
- borderTopRightRadius: o.shape.borderRadius,
1239
- borderBottomRightRadius: o.shape.borderRadius,
1233
+ borderTopRightRadius: t.shape.borderRadius,
1234
+ borderBottomRightRadius: t.shape.borderRadius,
1240
1235
  "& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
1241
- borderTopRightRadius: o.shape.borderRadius,
1242
- borderBottomRightRadius: o.shape.borderRadius
1236
+ borderTopRightRadius: t.shape.borderRadius,
1237
+ borderBottomRightRadius: t.shape.borderRadius
1243
1238
  }
1244
1239
  },
1245
1240
  "& .Mui-selected": {
1246
- borderRadius: o.shape.borderRadius
1241
+ borderRadius: t.shape.borderRadius
1247
1242
  },
1248
1243
  "& .MuiPickersDay-dayOutsideMonth": {
1249
- color: o.palette.action.disabled
1244
+ color: t.palette.action.disabled
1250
1245
  }
1251
1246
  }),
1252
- day: ({ theme: o }) => ({
1253
- borderRadius: o.shape.borderRadius
1247
+ day: ({ theme: t }) => ({
1248
+ borderRadius: t.shape.borderRadius
1254
1249
  }),
1255
- rangeIntervalDayPreview: ({ theme: o }) => ({
1256
- borderRadius: o.shape.borderRadius
1250
+ rangeIntervalDayPreview: ({ theme: t }) => ({
1251
+ borderRadius: t.shape.borderRadius
1257
1252
  })
1258
1253
  }
1259
1254
  },
1260
1255
  MuiDayCalendar: {
1261
1256
  styleOverrides: {
1262
- weekDayLabel: ({ theme: o }) => ({
1263
- fontSize: o.typography.body2.fontSize,
1257
+ weekDayLabel: ({ theme: t }) => ({
1258
+ fontSize: t.typography.body2.fontSize,
1264
1259
  fontWeight: 700
1265
1260
  })
1266
1261
  }
@@ -1302,14 +1297,14 @@ const No = (e, i) => {
1302
1297
  },
1303
1298
  MuiFormHelperText: {
1304
1299
  styleOverrides: {
1305
- root: ({ theme: o }) => ({
1300
+ root: ({ theme: t }) => ({
1306
1301
  fontSize: 13,
1307
1302
  // Small
1308
1303
  marginLeft: 0,
1309
1304
  display: "flex",
1310
1305
  alignItems: "center",
1311
1306
  position: "relative",
1312
- color: o.palette.text.secondary,
1307
+ color: t.palette.text.secondary,
1313
1308
  "& .MuiSvgIcon-root": {
1314
1309
  height: "16px",
1315
1310
  width: "16px",
@@ -1325,7 +1320,7 @@ const No = (e, i) => {
1325
1320
  MuiFormLabel: {
1326
1321
  styleOverrides: {
1327
1322
  asterisk: {
1328
- color: r.error.main
1323
+ color: o.error.main
1329
1324
  }
1330
1325
  }
1331
1326
  },
@@ -1340,19 +1335,19 @@ const No = (e, i) => {
1340
1335
  disableFocusRipple: !0
1341
1336
  },
1342
1337
  styleOverrides: {
1343
- root: ({ theme: o }) => ({
1344
- borderRadius: o.shape.borderRadius,
1338
+ root: ({ theme: t }) => ({
1339
+ borderRadius: t.shape.borderRadius,
1345
1340
  minHeight: 44,
1346
1341
  // touch target
1347
1342
  minWidth: 44,
1348
1343
  // touch target
1349
1344
  "&.Mui-focusVisible": {
1350
- outline: `2px solid ${o.palette.info.main}`,
1345
+ outline: `2px solid ${t.palette.info.main}`,
1351
1346
  outlineOffset: "2px"
1352
1347
  },
1353
1348
  "& .MuiTouchRipple-root": {
1354
1349
  "& .MuiTouchRipple-child": {
1355
- borderRadius: o.shape.borderRadius
1350
+ borderRadius: t.shape.borderRadius
1356
1351
  }
1357
1352
  }
1358
1353
  })
@@ -1373,13 +1368,13 @@ const No = (e, i) => {
1373
1368
  borderRadius: 4
1374
1369
  },
1375
1370
  colorPrimary: {
1376
- backgroundColor: r.grey[300]
1371
+ backgroundColor: o.grey[300]
1377
1372
  }
1378
1373
  }
1379
1374
  },
1380
1375
  MuiLink: {
1381
1376
  styleOverrides: {
1382
- root: ({ theme: o, color: s }) => ({
1377
+ root: ({ theme: t, color: s }) => ({
1383
1378
  cursor: "pointer",
1384
1379
  fontWeight: 600,
1385
1380
  textDecoration: "none",
@@ -1391,10 +1386,10 @@ const No = (e, i) => {
1391
1386
  outlineOffset: "2px"
1392
1387
  },
1393
1388
  "&:hover": {
1394
- backgroundColor: o.palette.action.hover
1389
+ backgroundColor: t.palette.action.hover
1395
1390
  },
1396
1391
  "&:active": {
1397
- backgroundColor: o.palette.mode === y.LIGHT ? o.palette[s].light : o.palette[s].dark
1392
+ backgroundColor: t.palette.mode === O.LIGHT ? t.palette[s].light : t.palette[s].dark
1398
1393
  }
1399
1394
  })
1400
1395
  }
@@ -1421,9 +1416,9 @@ const No = (e, i) => {
1421
1416
  disablePadding: !0
1422
1417
  },
1423
1418
  styleOverrides: {
1424
- root: ({ ownerState: o }) => ({
1419
+ root: ({ ownerState: t }) => ({
1425
1420
  minHeight: 64,
1426
- ...!o.disablePadding && {
1421
+ ...!t.disablePadding && {
1427
1422
  paddingTop: 12,
1428
1423
  paddingBottom: 12,
1429
1424
  paddingLeft: 24
@@ -1447,7 +1442,7 @@ const No = (e, i) => {
1447
1442
  },
1448
1443
  MuiListItemButton: {
1449
1444
  styleOverrides: {
1450
- root: ({ theme: o }) => ({
1445
+ root: ({ theme: t }) => ({
1451
1446
  minHeight: 64,
1452
1447
  paddingLeft: 24,
1453
1448
  paddingRight: 24,
@@ -1456,7 +1451,7 @@ const No = (e, i) => {
1456
1451
  "&.Mui-focusVisible": {
1457
1452
  backgroundColor: "transparent",
1458
1453
  borderRadius: 8,
1459
- outline: `2px solid ${o.palette.info.main}`,
1454
+ outline: `2px solid ${t.palette.info.main}`,
1460
1455
  outlineOffset: -2
1461
1456
  }
1462
1457
  })
@@ -1479,12 +1474,8 @@ const No = (e, i) => {
1479
1474
  },
1480
1475
  secondary: {
1481
1476
  fontSize: 11,
1482
- color: "text.primary"
1477
+ color: o.text.secondary
1483
1478
  }
1484
- },
1485
- secondaryTypographyProps: {
1486
- fontSize: 11,
1487
- color: r.text.secondary
1488
1479
  }
1489
1480
  },
1490
1481
  styleOverrides: {
@@ -1504,7 +1495,7 @@ const No = (e, i) => {
1504
1495
  lineHeight: "inherit",
1505
1496
  top: -1,
1506
1497
  // This fixes an issue where there is a 1px gap when the subheader sticks to the top while scrolling
1507
- backgroundColor: r.background.default
1498
+ backgroundColor: o.background.default
1508
1499
  }
1509
1500
  }
1510
1501
  },
@@ -1587,11 +1578,11 @@ const No = (e, i) => {
1587
1578
  },
1588
1579
  MuiPickersToolbar: {
1589
1580
  styleOverrides: {
1590
- content: ({ theme: o }) => ({
1581
+ content: ({ theme: t }) => ({
1591
1582
  marginTop: 4,
1592
1583
  "& .MuiTypography-root": {
1593
- fontSize: o.typography.h3.fontSize,
1594
- lineHeight: o.typography.h3.lineHeight
1584
+ fontSize: t.typography.h3.fontSize,
1585
+ lineHeight: t.typography.h3.lineHeight
1595
1586
  }
1596
1587
  })
1597
1588
  }
@@ -1617,7 +1608,7 @@ const No = (e, i) => {
1617
1608
  disableFocusRipple: !0
1618
1609
  },
1619
1610
  styleOverrides: {
1620
- root: ({ theme: o }) => ({
1611
+ root: ({ theme: t }) => ({
1621
1612
  width: 37,
1622
1613
  height: 20,
1623
1614
  padding: 0,
@@ -1628,7 +1619,7 @@ const No = (e, i) => {
1628
1619
  "&.Mui-checked": {
1629
1620
  transform: "translateX(16px)",
1630
1621
  "& + .MuiSwitch-track": {
1631
- backgroundColor: o.palette.success.main,
1622
+ backgroundColor: t.palette.success.main,
1632
1623
  opacity: 1,
1633
1624
  border: 0
1634
1625
  },
@@ -1637,27 +1628,27 @@ const No = (e, i) => {
1637
1628
  }
1638
1629
  },
1639
1630
  "&.Mui-disabled .MuiSwitch-thumb": {
1640
- color: o.palette.common.white
1631
+ color: t.palette.common.white
1641
1632
  },
1642
1633
  "&.Mui-disabled + .MuiSwitch-track": {
1643
- backgroundColor: o.palette.action.disabledBackground,
1634
+ backgroundColor: t.palette.action.disabledBackground,
1644
1635
  opacity: 1
1645
1636
  }
1646
1637
  },
1647
1638
  "& .MuiSwitch-input": {
1648
1639
  "&:focus-visible ~ .MuiSwitch-thumb": {
1649
- outline: `2px solid ${o.palette.info.main}`,
1640
+ outline: `2px solid ${t.palette.info.main}`,
1650
1641
  outlineOffset: 0
1651
1642
  }
1652
1643
  },
1653
1644
  "& .MuiSwitch-thumb": {
1654
1645
  boxSizing: "border-box",
1655
- backgroundColor: o.palette.background.paper,
1646
+ backgroundColor: t.palette.background.paper,
1656
1647
  width: 16,
1657
1648
  height: 16
1658
1649
  },
1659
1650
  "& .MuiSwitch-track": {
1660
- backgroundColor: o.palette.action.active,
1651
+ backgroundColor: t.palette.action.active,
1661
1652
  borderRadius: 20 / 2,
1662
1653
  opacity: 1
1663
1654
  }
@@ -1674,7 +1665,7 @@ const No = (e, i) => {
1674
1665
  fontWeight: 600,
1675
1666
  "&.Mui-focusVisible": {
1676
1667
  outline: "none",
1677
- boxShadow: `inset 0 0 0 2px ${r.info.main}`,
1668
+ boxShadow: `inset 0 0 0 2px ${o.info.main}`,
1678
1669
  borderRadius: 4
1679
1670
  }
1680
1671
  }
@@ -1685,21 +1676,23 @@ const No = (e, i) => {
1685
1676
  root: {
1686
1677
  borderBottomStyle: "solid",
1687
1678
  borderBottomWidth: 1,
1688
- borderColor: r.divider,
1679
+ borderColor: o.divider,
1689
1680
  marginBottom: 8
1690
1681
  }
1691
1682
  }
1692
1683
  },
1693
1684
  MuiTextField: {
1694
1685
  defaultProps: {
1695
- InputLabelProps: {
1696
- shrink: !0
1686
+ slotProps: {
1687
+ inputLabel: {
1688
+ shrink: !0
1689
+ }
1697
1690
  },
1698
1691
  variant: "outlined"
1699
1692
  },
1700
1693
  styleOverrides: {
1701
1694
  root: {
1702
- backgroundColor: r.background.paper
1695
+ backgroundColor: o.background.paper
1703
1696
  }
1704
1697
  }
1705
1698
  },
@@ -1710,29 +1703,29 @@ const No = (e, i) => {
1710
1703
  },
1711
1704
  styleOverrides: {
1712
1705
  root: {
1713
- color: r.text.primary,
1706
+ color: o.text.primary,
1714
1707
  fontSize: 13,
1715
1708
  lineHeight: "16px",
1716
1709
  textTransform: "none",
1717
1710
  "&:focus-visible": {
1718
- outline: `2px solid ${r.info.main}`,
1711
+ outline: `2px solid ${o.info.main}`,
1719
1712
  outlineOffset: "2px"
1720
1713
  },
1721
1714
  "&:hover": {
1722
- backgroundColor: m(r.primary.main, r.mode === y.LIGHT ? 0.1 : 0.2),
1723
- borderColor: r.primary.main
1715
+ backgroundColor: m(o.primary.main, o.mode === O.LIGHT ? 0.1 : 0.2),
1716
+ borderColor: o.primary.main
1724
1717
  },
1725
1718
  "&.Mui-selected": {
1726
1719
  fontWeight: 600,
1727
- borderColor: r.primary.main,
1720
+ borderColor: o.primary.main,
1728
1721
  "&:hover": {
1729
- boxShadow: `inset 0px 0px 0px 2px ${r.primary.main}`
1722
+ boxShadow: `inset 0px 0px 0px 2px ${o.primary.main}`
1730
1723
  }
1731
1724
  },
1732
1725
  "& .MuiTouchRipple-root": {
1733
1726
  "& .MuiTouchRipple-ripple": {
1734
1727
  "& .MuiTouchRipple-child": {
1735
- backgroundColor: r.primary.main
1728
+ backgroundColor: o.primary.main
1736
1729
  }
1737
1730
  }
1738
1731
  }
@@ -1743,19 +1736,19 @@ const No = (e, i) => {
1743
1736
  props: { color: "error" },
1744
1737
  style: {
1745
1738
  "&:hover": {
1746
- backgroundColor: m(r.error.main, r.mode === y.LIGHT ? 0.1 : 0.2),
1747
- borderColor: r.error.main
1739
+ backgroundColor: m(o.error.main, o.mode === O.LIGHT ? 0.1 : 0.2),
1740
+ borderColor: o.error.main
1748
1741
  },
1749
1742
  "&.Mui-selected": {
1750
- borderColor: r.error.main,
1743
+ borderColor: o.error.main,
1751
1744
  "&:hover": {
1752
- boxShadow: `inset 0px 0px 0px 2px ${r.error.main}`
1745
+ boxShadow: `inset 0px 0px 0px 2px ${o.error.main}`
1753
1746
  }
1754
1747
  },
1755
1748
  "& .MuiTouchRipple-root": {
1756
1749
  "& .MuiTouchRipple-ripple": {
1757
1750
  "& .MuiTouchRipple-child": {
1758
- backgroundColor: r.error.main
1751
+ backgroundColor: o.error.main
1759
1752
  }
1760
1753
  }
1761
1754
  }
@@ -1766,21 +1759,21 @@ const No = (e, i) => {
1766
1759
  style: {
1767
1760
  "&:hover": {
1768
1761
  backgroundColor: m(
1769
- r.secondary.main,
1770
- r.mode === y.LIGHT ? 0.1 : 0.2
1762
+ o.secondary.main,
1763
+ o.mode === O.LIGHT ? 0.1 : 0.2
1771
1764
  ),
1772
- borderColor: r.secondary.main
1765
+ borderColor: o.secondary.main
1773
1766
  },
1774
1767
  "&.Mui-selected": {
1775
- borderColor: r.secondary.main,
1768
+ borderColor: o.secondary.main,
1776
1769
  "&:hover": {
1777
- boxShadow: `inset 0px 0px 0px 2px ${r.secondary.main}`
1770
+ boxShadow: `inset 0px 0px 0px 2px ${o.secondary.main}`
1778
1771
  }
1779
1772
  },
1780
1773
  "& .MuiTouchRipple-root": {
1781
1774
  "& .MuiTouchRipple-ripple": {
1782
1775
  "& .MuiTouchRipple-child": {
1783
- backgroundColor: r.secondary.main
1776
+ backgroundColor: o.secondary.main
1784
1777
  }
1785
1778
  }
1786
1779
  }
@@ -1808,32 +1801,32 @@ const No = (e, i) => {
1808
1801
  };
1809
1802
  export {
1810
1803
  D as BaseIcon,
1811
- Ro as BottomSheetTransition,
1804
+ Mt as BottomSheetTransition,
1812
1805
  g as CategoryGuids,
1813
- Ie as CategoryIcon,
1814
- ye as CategoryIconList,
1815
- Ae as CategoryIconVariants,
1816
- xo as DateRangePicker,
1817
- ve as DialogFooter,
1818
- Ao as DialogHeader,
1819
- yo as Drawer,
1820
- ve as Footer,
1821
- Fe as H1,
1822
- Mo as H2,
1823
- So as H3,
1824
- we as INTER,
1806
+ Fe as CategoryIcon,
1807
+ Ee as CategoryIconList,
1808
+ Ie as CategoryIconVariants,
1809
+ Rt as DateRangePicker,
1810
+ He as DialogFooter,
1811
+ Ot as DialogHeader,
1812
+ yt as Drawer,
1813
+ He as Footer,
1814
+ Le as H1,
1815
+ Ct as H2,
1816
+ St as H3,
1817
+ Y as INTER,
1825
1818
  R as Icon,
1826
- Oo as InstitutionLogo,
1827
- mo as MXLogoCopyrightIcon,
1828
- bo as MXLogoFilledIcon,
1829
- fo as MXLogoIcon,
1830
- To as MXLogoOutlineIcon,
1831
- Io as MerchantLogo,
1832
- Co as P,
1833
- Fo as SelectionBox,
1819
+ It as InstitutionLogo,
1820
+ bt as MXLogoCopyrightIcon,
1821
+ Tt as MXLogoFilledIcon,
1822
+ mt as MXLogoIcon,
1823
+ xt as MXLogoOutlineIcon,
1824
+ Et as MerchantLogo,
1825
+ At as P,
1826
+ Nt as SelectionBox,
1834
1827
  v as Text,
1835
- Eo as TextField,
1836
- vo as Toast,
1837
- No as createMXTheme
1828
+ vt as TextField,
1829
+ Ft as Toast,
1830
+ Ht as createMXTheme
1838
1831
  };
1839
1832
  //# sourceMappingURL=index.es.js.map