@mxenabled/mxui 1.5.9 → 1.5.11-alpha.al1

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,74 +1,74 @@
1
1
  import { jsx as a, jsxs as T } from "react/jsx-runtime";
2
- import R from "react";
2
+ import x from "react";
3
3
  import I from "@mui/material/Stack";
4
- import { useTheme as H, createTheme as ce } from "@mui/material/styles";
4
+ import { useTheme as y, createTheme as $ } from "@mui/material/styles";
5
5
  import { Icon as se, ExpandMore as de, Close as ue } from "@mxenabled/mx-icons";
6
- import { endOfMonth as U } from "date-fns/endOfMonth";
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";
11
- import { subDays as K } from "date-fns/subDays";
9
+ import { startOfMonth as Z } from "date-fns/startOfMonth";
10
+ import { startOfYear as K } from "date-fns/startOfYear";
11
+ import { subDays as Y } from "date-fns/subDays";
12
12
  import { subMonths as ge } from "date-fns/subMonths";
13
13
  import { subYears as me } from "date-fns/subYears";
14
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 { MultiInputDateRangeField as Re } from "@mui/x-date-pickers-pro/MultiInputDateRangeField";
18
- import X from "@mui/material/Box";
19
- import xe from "@mui/material/ToggleButton";
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
20
  import Me from "@mui/material/ToggleButtonGroup";
21
21
  import Ae from "@mui/material/MenuItem";
22
- import j from "@mui/material/TextField";
22
+ import Q from "@mui/material/TextField";
23
23
  import { usePickerLayout as Ee, PickersLayoutRoot as Se, PickersLayoutContentWrapper as Ie, pickersLayoutClasses as P } from "@mui/x-date-pickers/PickersLayout";
24
- import Q from "@mui/material/Slide";
24
+ import J from "@mui/material/Slide";
25
25
  import V from "@mui/material/Button";
26
- import J from "@mui/material/IconButton";
26
+ import q from "@mui/material/IconButton";
27
27
  import ve from "@mui/material/Typography";
28
28
  import ye from "@mui/material/Drawer";
29
29
  import He from "@mui/material/Snackbar";
30
30
  import Fe from "@mui/material/Alert";
31
- import { light as q, buildTheme as $, dark as Oe } from "@mxenabled/design-tokens";
32
- import { FormControlLabel as ke, Box as _, Typography as Y, Radio as B, Checkbox as Le, alpha as b, darken as D, lighten as F, getContrastRatio as De } from "@mui/material";
31
+ import { light as ee, buildTheme as G, dark as Oe } from "@mxenabled/design-tokens";
32
+ import { FormControlLabel as ke, Box as _, Typography as X, Radio as B, Checkbox as Le, alpha as b, darken as D, lighten as H, getContrastRatio as De } from "@mui/material";
33
33
  import { circularProgressClasses as Ne } from "@mui/material/CircularProgress";
34
34
  import { LicenseInfo as we } from "@mui/x-license-pro";
35
35
  const f = ({
36
36
  children: e,
37
37
  height: o,
38
- size: t = 16,
38
+ size: i = 16,
39
39
  viewBox: l = "0 0 16 16",
40
- width: r
40
+ width: c
41
41
  }) => /* @__PURE__ */ a(
42
42
  "svg",
43
43
  {
44
44
  "aria-hidden": !0,
45
45
  className: "mx-kmui-icon",
46
46
  focusable: !1,
47
- height: o || t,
47
+ height: o || i,
48
48
  viewBox: l,
49
- width: r || t,
49
+ width: c || i,
50
50
  xmlns: "http://www.w3.org/2000/svg",
51
51
  children: e
52
52
  }
53
53
  );
54
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 x = ({
55
+ const R = ({
56
56
  color: e,
57
57
  fill: o = !1,
58
- name: t,
58
+ name: i,
59
59
  size: l = 20,
60
- sx: r,
61
- weight: s = 300,
60
+ sx: c,
61
+ weight: r = 300,
62
62
  ...n
63
63
  }) => /* @__PURE__ */ a(
64
64
  se,
65
65
  {
66
66
  color: e,
67
67
  fill: o,
68
- name: t,
68
+ name: i,
69
69
  size: l,
70
- sx: r,
71
- weight: s,
70
+ sx: c,
71
+ weight: r,
72
72
  ...n
73
73
  }
74
74
  ), w0 = ({
@@ -127,7 +127,7 @@ const x = ({
127
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",
128
128
  fill: e
129
129
  }
130
- ) })), $0 = ({
130
+ ) })), G0 = ({
131
131
  color: e = "currentColor",
132
132
  ...o
133
133
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -136,7 +136,7 @@ const x = ({
136
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",
137
137
  fill: e
138
138
  }
139
- ) })), G0 = ({
139
+ ) })), U0 = ({
140
140
  color: e = "currentColor",
141
141
  ...o
142
142
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -145,7 +145,7 @@ const x = ({
145
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",
146
146
  fill: e
147
147
  }
148
- ) })), U0 = ({
148
+ ) })), $0 = ({
149
149
  color: e = "currentColor",
150
150
  ...o
151
151
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -284,7 +284,7 @@ const x = ({
284
284
  )
285
285
  ] });
286
286
  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 || {}), _e = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Filled = "filled", e.Transparent = "transparent", e.TwoTone = "two-tone", e))(_e || {});
287
- const ee = {
287
+ const oe = {
288
288
  guid: g.Uncategorized,
289
289
  colorName: "uncategorized",
290
290
  icon: "category"
@@ -389,56 +389,56 @@ const ee = {
389
389
  colorName: "travel",
390
390
  icon: "airplane_ticket"
391
391
  },
392
- ee
392
+ oe
393
393
  ], ze = 0.625, Ve = ({
394
394
  categoryGuid: e,
395
395
  icon_ratio: o = ze,
396
- size: t = 32,
396
+ size: i = 32,
397
397
  sx: l = {},
398
- variant: r = "filled"
398
+ variant: c = "filled"
399
399
  }) => {
400
- const s = H(), n = R.useMemo(
401
- () => Be.find((u) => u.guid === e) ?? ee,
400
+ const r = y(), n = x.useMemo(
401
+ () => Be.find((u) => u.guid === e) ?? oe,
402
402
  [e]
403
- ), c = s.palette.categories[n.colorName];
403
+ ), s = r.palette.categories[n.colorName];
404
404
  return /* @__PURE__ */ a(
405
405
  I,
406
406
  {
407
407
  alignItems: "center",
408
408
  bgcolor: () => {
409
- let u = c;
410
- return r === "twotone" && (u = `${u}20`), r === "transparent" || r === "basic" ? "transparent" : u;
409
+ let u = s;
410
+ return c === "twotone" && (u = `${u}20`), c === "transparent" || c === "basic" ? "transparent" : u;
411
411
  },
412
412
  borderRadius: 1,
413
413
  color: () => {
414
- const u = r === "filled" ? s.palette.common.white : c;
415
- return r === "basic" ? s.palette.text.primary : u;
414
+ const u = c === "filled" ? r.palette.common.white : s;
415
+ return c === "basic" ? r.palette.text.primary : u;
416
416
  },
417
- height: t,
417
+ height: i,
418
418
  justifyContent: "center",
419
419
  sx: [...Array.isArray(l) ? l : [l]],
420
- width: t,
421
- children: /* @__PURE__ */ a(x, { name: n.icon, size: t * o })
420
+ width: i,
421
+ children: /* @__PURE__ */ a(R, { name: n.icon, size: i * o })
422
422
  }
423
423
  );
424
- }, $e = ({
424
+ }, Ge = ({
425
425
  items: e,
426
426
  onChange: o,
427
- isValid: t,
427
+ isValid: i,
428
428
  selected: l
429
429
  }) => {
430
- const r = H(), s = e?.map((n) => {
431
- const c = n.getValue({ isValid: t });
430
+ const c = y(), r = e?.map((n) => {
431
+ const s = n.getValue({ isValid: i });
432
432
  return {
433
433
  label: n.label,
434
434
  onClick: () => {
435
- o(c, "accept", n);
435
+ o(s, "accept", n);
436
436
  },
437
- disabled: !t(c)
437
+ disabled: !i(s)
438
438
  };
439
439
  });
440
- return /* @__PURE__ */ a(X, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ a(Me, { color: "primary", orientation: "vertical", value: l, children: s?.map((n) => /* @__PURE__ */ a(
441
- 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,
442
442
  {
443
443
  onClick: n.onClick,
444
444
  sx: {
@@ -451,11 +451,11 @@ const ee = {
451
451
  boxShadow: "0px 0px 0px 2px rgba(82, 138, 224, 0.8)"
452
452
  },
453
453
  "&:hover": {
454
- bgcolor: r.palette.action.hover,
455
- borderTop: `1px solid ${r.palette.secondary.light}`
454
+ bgcolor: c.palette.action.hover,
455
+ borderTop: `1px solid ${c.palette.secondary.light}`
456
456
  },
457
457
  "&.Mui-selected": {
458
- border: `2px solid ${r.palette.primary.main} !important`,
458
+ border: `2px solid ${c.palette.primary.main} !important`,
459
459
  marginTop: "-2px !important",
460
460
  color: "primary"
461
461
  }
@@ -465,25 +465,25 @@ const ee = {
465
465
  },
466
466
  n.label
467
467
  )) }) });
468
- }, Ge = ({
468
+ }, Ue = ({
469
469
  items: e,
470
470
  onChange: o,
471
- isValid: t,
471
+ isValid: i,
472
472
  selected: l,
473
- selectLabel: r
473
+ selectLabel: c
474
474
  }) => {
475
- const s = e?.map((n) => {
476
- const c = n.getValue({ isValid: t });
475
+ const r = e?.map((n) => {
476
+ const s = n.getValue({ isValid: i });
477
477
  return {
478
478
  label: n.label,
479
479
  onClick: () => {
480
- o(c, "accept", n);
480
+ o(s, "accept", n);
481
481
  },
482
- disabled: !t(c)
482
+ disabled: !i(s)
483
483
  };
484
484
  });
485
485
  return /* @__PURE__ */ a(I, { sx: { py: 16 }, children: /* @__PURE__ */ a(
486
- j,
486
+ Q,
487
487
  {
488
488
  InputLabelProps: {
489
489
  shrink: !0
@@ -491,16 +491,16 @@ const ee = {
491
491
  SelectProps: { IconComponent: de },
492
492
  defaultValue: l,
493
493
  id: "select",
494
- label: r,
494
+ label: c,
495
495
  select: !0,
496
496
  sx: { width: "100%" },
497
497
  value: l,
498
498
  variant: "outlined",
499
- children: s?.map((n) => /* @__PURE__ */ a(Ae, { onClick: n.onClick, value: n.label, children: n.label }, n.label))
499
+ children: r?.map((n) => /* @__PURE__ */ a(Ae, { onClick: n.onClick, value: n.label, children: n.label }, n.label))
500
500
  }
501
501
  ) });
502
- }, Ue = (e) => {
503
- const { toolbar: o, content: t, shortcuts: l } = Ee(e);
502
+ }, $e = (e) => {
503
+ const { toolbar: o, content: i, shortcuts: l } = Ee(e);
504
504
  return /* @__PURE__ */ T(
505
505
  Se,
506
506
  {
@@ -524,52 +524,52 @@ const ee = {
524
524
  l,
525
525
  o
526
526
  ] }),
527
- /* @__PURE__ */ a(Ie, { className: P.contentWrapper, children: t })
527
+ /* @__PURE__ */ a(Ie, { className: P.contentWrapper, children: i })
528
528
  ]
529
529
  }
530
530
  );
531
531
  }, q0 = ({
532
532
  copy: e,
533
533
  dateRange: o,
534
- onRangeChanged: t,
534
+ onRangeChanged: i,
535
535
  selectedShortcut: l = e.dateRangeThisMonth,
536
- sx: r = {}
536
+ sx: c = {}
537
537
  }) => {
538
- const s = H(), n = fe(s.breakpoints.down("sm")), c = R.useMemo(() => {
539
- const i = he(), u = ge(i, 1), C = me(i, 1);
538
+ const r = y(), n = fe(r.breakpoints.down("sm")), s = x.useMemo(() => {
539
+ const t = he(), u = ge(t, 1), C = me(t, 1);
540
540
  return [
541
541
  {
542
542
  label: e.dateRangeThisMonth,
543
- getValue: () => [W(i), U(i)]
543
+ getValue: () => [Z(t), W(t)]
544
544
  },
545
545
  {
546
546
  label: e.dateRangeLastMonth,
547
- getValue: () => [W(u), U(u)]
547
+ getValue: () => [Z(u), W(u)]
548
548
  },
549
549
  {
550
550
  label: e.dateRangeLast30Days,
551
- getValue: () => [K(i, 30), i]
551
+ getValue: () => [Y(t, 30), t]
552
552
  },
553
553
  {
554
554
  label: e.dateRangeLast90Days,
555
- getValue: () => [K(i, 90), i]
555
+ getValue: () => [Y(t, 90), t]
556
556
  },
557
557
  {
558
558
  label: e.dateRangeYTD,
559
- getValue: () => [Z(i), i]
559
+ getValue: () => [K(t), t]
560
560
  },
561
561
  {
562
562
  label: e.dateRangeLastYear,
563
- getValue: () => [Z(C), pe(C)]
563
+ getValue: () => [K(C), pe(C)]
564
564
  },
565
565
  {
566
566
  label: e.dateRangeCustom,
567
- getValue: () => [i, i]
567
+ getValue: () => [t, t]
568
568
  }
569
569
  ];
570
- }, [e]), d = (i, u) => {
570
+ }, [e]), d = (t, u) => {
571
571
  const C = u.shortcut;
572
- t?.(i, C ? C.label : e.dateRangeCustom);
572
+ i?.(t, C ? C.label : e.dateRangeCustom);
573
573
  };
574
574
  return /* @__PURE__ */ a(I, { gap: n ? 0 : 16, m: n ? 0 : 8, children: /* @__PURE__ */ a(be, { dateAdapter: Ce, children: /* @__PURE__ */ a(
575
575
  Te,
@@ -585,30 +585,30 @@ const ee = {
585
585
  slotProps: {
586
586
  actionBar: { actions: [] },
587
587
  shortcuts: {
588
- items: c
588
+ items: s
589
589
  },
590
590
  toolbar: {
591
591
  toolbarFormat: n ? "MM/dd/yyyy" : "MMM d, yyyy"
592
592
  }
593
593
  },
594
594
  slots: {
595
- ...n && { layout: Ue },
596
- leftArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_left", size: 28 }),
597
- shortcuts: (i) => n ? /* @__PURE__ */ a(
598
- Ge,
595
+ ...n && { layout: $e },
596
+ leftArrowIcon: () => /* @__PURE__ */ a(R, { name: "chevron_left", size: 28 }),
597
+ shortcuts: (t) => n ? /* @__PURE__ */ a(
598
+ Ue,
599
599
  {
600
600
  selectLabel: e.dateRangeSelectARange,
601
601
  selected: l,
602
- ...i
602
+ ...t
603
603
  }
604
- ) : /* @__PURE__ */ a($e, { selected: l, ...i }),
605
- rightArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_right", size: 28 }),
604
+ ) : /* @__PURE__ */ a(Ge, { selected: l, ...t }),
605
+ rightArrowIcon: () => /* @__PURE__ */ a(R, { name: "chevron_right", size: 28 }),
606
606
  ...n && {
607
- toolbar: (i) => /* @__PURE__ */ a(
608
- Re,
607
+ toolbar: (t) => /* @__PURE__ */ a(
608
+ xe,
609
609
  {
610
610
  dateSeparator: "",
611
- ...i,
611
+ ...t,
612
612
  slotProps: {
613
613
  textField: ({ position: u }) => ({
614
614
  label: u === "start" ? e.dateRangeFrom : e.dateRangeTo
@@ -619,21 +619,21 @@ const ee = {
619
619
  )
620
620
  }
621
621
  },
622
- sx: { ...r },
622
+ sx: { ...c },
623
623
  value: o
624
624
  }
625
625
  ) }) });
626
- }, eo = R.forwardRef(function(o, t) {
627
- return /* @__PURE__ */ a(Q, { direction: "up", ref: t, ...o });
626
+ }, eo = x.forwardRef(function(o, i) {
627
+ return /* @__PURE__ */ a(J, { direction: "up", ref: i, ...o });
628
628
  }), We = ({
629
629
  hasSecondaryAction: e = !0,
630
630
  isPrimaryDisabled: o,
631
- onPrimaryAction: t,
631
+ onPrimaryAction: i,
632
632
  onSecondaryAction: l,
633
- primaryColor: r = "primary",
634
- primaryText: s = "Save",
633
+ primaryColor: c = "primary",
634
+ primaryText: r = "Save",
635
635
  secondaryColor: n = "primary",
636
- secondaryText: c = "Cancel"
636
+ secondaryText: s = "Cancel"
637
637
  }) => /* @__PURE__ */ T(
638
638
  I,
639
639
  {
@@ -647,18 +647,18 @@ const ee = {
647
647
  {
648
648
  color: n,
649
649
  onClick: l,
650
- variant: t ? "outlined" : "contained",
651
- children: c
650
+ variant: i ? "outlined" : "contained",
651
+ children: s
652
652
  }
653
653
  ),
654
- t && /* @__PURE__ */ a(
654
+ i && /* @__PURE__ */ a(
655
655
  V,
656
656
  {
657
- color: r,
657
+ color: c,
658
658
  disabled: o,
659
- onClick: t,
659
+ onClick: i,
660
660
  variant: "contained",
661
- children: s
661
+ children: r
662
662
  }
663
663
  )
664
664
  ]
@@ -666,43 +666,43 @@ const ee = {
666
666
  ), k = ({
667
667
  bold: e,
668
668
  className: o = "",
669
- children: t,
669
+ children: i,
670
670
  color: l,
671
- sx: r = {},
672
- truncate: s = !0,
671
+ sx: c = {},
672
+ truncate: r = !0,
673
673
  uppercase: n,
674
- ...c
674
+ ...s
675
675
  }) => {
676
- switch (c.variant) {
676
+ switch (s.variant) {
677
677
  case "Body":
678
- c.variant = "body1";
678
+ s.variant = "body1";
679
679
  break;
680
680
  case "Button":
681
- c.variant = "button";
681
+ s.variant = "button";
682
682
  break;
683
683
  case "H1":
684
- c.variant = "h1";
684
+ s.variant = "h1";
685
685
  break;
686
686
  case "H2":
687
- c.variant = "h2";
687
+ s.variant = "h2";
688
688
  break;
689
689
  case "H3":
690
- c.variant = "h3";
690
+ s.variant = "h3";
691
691
  break;
692
692
  case "Paragraph":
693
- c.variant = "subtitle1";
693
+ s.variant = "subtitle1";
694
694
  break;
695
695
  case "ParagraphSmall":
696
- c.variant = "subtitle2";
696
+ s.variant = "subtitle2";
697
697
  break;
698
698
  case "Small":
699
- c.variant = "body2";
699
+ s.variant = "body2";
700
700
  break;
701
701
  case "Tiny":
702
- c.variant = "tiny";
702
+ s.variant = "tiny";
703
703
  break;
704
704
  case "XSmall":
705
- c.variant = "caption";
705
+ s.variant = "caption";
706
706
  break;
707
707
  }
708
708
  return /* @__PURE__ */ a(
@@ -714,7 +714,7 @@ const ee = {
714
714
  e ? {
715
715
  fontWeight: 600
716
716
  } : {},
717
- s ? {
717
+ r ? {
718
718
  overflow: "hidden",
719
719
  textOverflow: "ellipsis",
720
720
  whiteSpace: "nowrap"
@@ -722,18 +722,18 @@ const ee = {
722
722
  n ? {
723
723
  textTransform: "uppercase"
724
724
  } : {},
725
- ...Array.isArray(r) ? r : [r]
725
+ ...Array.isArray(c) ? c : [c]
726
726
  ],
727
- ...c,
728
- children: t
727
+ ...s,
728
+ children: i
729
729
  }
730
730
  );
731
- }, Ze = ({ className: e = "", children: o, ...t }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h1 ${e}`, component: "h1", variant: "h1", ...t, children: o }), oo = ({ className: e = "", children: o, ...t }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h2 ${e}`, component: "h2", variant: "h2", ...t, children: o }), ro = ({ className: e = "", children: o, ...t }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h3 ${e}`, component: "h3", variant: "h3", ...t, children: o }), to = ({ className: e = "", children: o, truncate: t, ...l }) => /* @__PURE__ */ a(
731
+ }, 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 }), to = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h3 ${e}`, component: "h3", variant: "h3", ...i, children: o }), ro = ({ className: e = "", children: o, truncate: i, ...l }) => /* @__PURE__ */ a(
732
732
  k,
733
733
  {
734
734
  className: `mx-kmui-text p ${e}`,
735
735
  component: "p",
736
- truncate: t || !1,
736
+ truncate: i || !1,
737
737
  variant: "body1",
738
738
  ...l,
739
739
  children: o
@@ -750,82 +750,82 @@ const ee = {
750
750
  },
751
751
  children: [
752
752
  /* @__PURE__ */ a(Ze, { variant: "h3", children: e.title }),
753
- /* @__PURE__ */ a(J, { "aria-label": e.close_aria, onClick: o, sx: { mr: -12 }, children: /* @__PURE__ */ a(ue, {}) })
753
+ /* @__PURE__ */ a(q, { "aria-label": e.close_aria, onClick: o, sx: { mr: -12 }, children: /* @__PURE__ */ a(ue, {}) })
754
754
  ]
755
755
  }
756
756
  ), ao = ({
757
757
  className: e,
758
758
  disableSave: o,
759
- id: t,
759
+ id: i,
760
760
  isOpen: l,
761
- onClose: r,
762
- onSave: s,
761
+ onClose: c,
762
+ onSave: r,
763
763
  primaryText: n,
764
- secondaryText: c,
764
+ secondaryText: s,
765
765
  children: d,
766
- ...i
766
+ ...t
767
767
  }) => /* @__PURE__ */ T(
768
768
  ye,
769
769
  {
770
770
  anchor: "right",
771
771
  className: `mx-kmui-drawer ${e}`,
772
- id: t ?? void 0,
773
- onClose: r,
772
+ id: i ?? void 0,
773
+ onClose: c,
774
774
  open: l,
775
775
  variant: "temporary",
776
- ...i,
776
+ ...t,
777
777
  children: [
778
778
  d,
779
- s && /* @__PURE__ */ a(
779
+ r && /* @__PURE__ */ a(
780
780
  We,
781
781
  {
782
782
  isPrimaryDisabled: o,
783
- onPrimaryAction: s,
784
- onSecondaryAction: r,
783
+ onPrimaryAction: r,
784
+ onSecondaryAction: c,
785
785
  primaryText: n,
786
- secondaryText: c
786
+ secondaryText: s
787
787
  }
788
788
  )
789
789
  ]
790
790
  }
791
- ), oe = 32, G = "https://content.moneydesktop.com/storage/MD_Assets", Ke = `${G}/serenity/default_institution_logo.png`, no = ({
791
+ ), te = 32, U = "https://content.moneydesktop.com/storage/MD_Assets", Ke = `${U}/serenity/default_institution_logo.png`, no = ({
792
792
  alt: e,
793
793
  institutionGuid: o,
794
- logoUrl: t,
795
- size: l = oe,
796
- ...r
794
+ logoUrl: i,
795
+ size: l = te,
796
+ ...c
797
797
  }) => /* @__PURE__ */ a(
798
798
  "img",
799
799
  {
800
800
  alt: e,
801
801
  height: l,
802
- onError: (s) => s.target.src = Ke,
803
- src: t || `${G}/Ipad%20Logos/100x100/${o}_100x100.png`,
802
+ onError: (r) => r.target.src = Ke,
803
+ src: i || `${U}/Ipad%20Logos/100x100/${o}_100x100.png`,
804
804
  style: {
805
805
  borderRadius: 4
806
806
  },
807
807
  width: l,
808
- ...r
808
+ ...c
809
809
  }
810
810
  ), lo = ({
811
811
  alt: e = "",
812
812
  categoryGuid: o,
813
- merchantGuid: t,
814
- size: l = oe,
815
- ...r
813
+ merchantGuid: i,
814
+ size: l = te,
815
+ ...c
816
816
  }) => {
817
- const [s, n] = R.useState(!1), c = H();
818
- return /* @__PURE__ */ T(X, { display: "inline-block", position: "relative", ...r, children: [
819
- t && !s && /* @__PURE__ */ a(
817
+ const [r, n] = x.useState(!1), s = y();
818
+ return /* @__PURE__ */ T(j, { display: "inline-block", position: "relative", ...c, children: [
819
+ i && !r && /* @__PURE__ */ a(
820
820
  "img",
821
821
  {
822
822
  alt: e,
823
823
  "aria-hidden": !e,
824
824
  height: l,
825
825
  onError: () => n(!0),
826
- src: `${G}/merchant_logos/${t}.png`,
826
+ src: `${U}/merchant_logos/${i}.png`,
827
827
  style: {
828
- backgroundColor: c.palette.common.white,
828
+ backgroundColor: s.palette.common.white,
829
829
  borderRadius: 4,
830
830
  boxSizing: "border-box",
831
831
  position: "absolute"
@@ -838,52 +838,52 @@ const ee = {
838
838
  }, co = ({
839
839
  disabled: e = !1,
840
840
  label: o = "",
841
- shrink: t = !0,
841
+ shrink: i = !0,
842
842
  variant: l = "outlined",
843
- ...r
843
+ ...c
844
844
  }) => /* @__PURE__ */ a(
845
- j,
845
+ Q,
846
846
  {
847
847
  InputLabelProps: {
848
- shrink: t
848
+ shrink: i
849
849
  },
850
850
  disabled: e,
851
851
  label: o,
852
852
  variant: l,
853
- ...r
853
+ ...c
854
854
  }
855
855
  );
856
856
  function Ye(e) {
857
- return /* @__PURE__ */ a(Q, { ...e, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
857
+ return /* @__PURE__ */ a(J, { ...e, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
858
858
  }
859
859
  const so = ({
860
860
  open: e,
861
861
  handleClose: o,
862
- message: t,
862
+ message: i,
863
863
  autoHideDuration: l = 3e3,
864
- severity: r = "success",
865
- snackbarSx: s,
864
+ severity: c = "success",
865
+ snackbarSx: r,
866
866
  showAction: n = !1,
867
- showClose: c = !1,
867
+ showClose: s = !1,
868
868
  actionText: d = "Undo",
869
- onActionClick: i,
869
+ onActionClick: t,
870
870
  multiLine: u = !1
871
871
  }) => {
872
- const C = H(), L = /* @__PURE__ */ T(
872
+ const C = y(), L = /* @__PURE__ */ T(
873
873
  I,
874
874
  {
875
875
  alignItems: u ? "flex-end" : "center",
876
876
  direction: u ? "column-reverse" : "row",
877
877
  justifyContent: (
878
878
  // eslint-disable-next-line no-nested-ternary
879
- u && n && c ? "space-between" : "flex-end"
879
+ u && n && s ? "space-between" : "flex-end"
880
880
  ),
881
881
  children: [
882
882
  n && /* @__PURE__ */ a(
883
883
  V,
884
884
  {
885
885
  color: "inherit",
886
- onClick: i || o,
886
+ onClick: t || o,
887
887
  size: "small",
888
888
  sx: {
889
889
  color: C.palette.success.contrastText,
@@ -892,14 +892,14 @@ const so = ({
892
892
  children: d
893
893
  }
894
894
  ),
895
- c && /* @__PURE__ */ a(
896
- J,
895
+ s && /* @__PURE__ */ a(
896
+ q,
897
897
  {
898
898
  "aria-label": "close",
899
899
  color: "inherit",
900
900
  onClick: o,
901
901
  sx: { height: 44, width: 44 },
902
- children: /* @__PURE__ */ a(x, { fill: !0, name: "close", size: 24, weight: 400 })
902
+ children: /* @__PURE__ */ a(R, { fill: !0, name: "close", size: 24, weight: 400 })
903
903
  }
904
904
  )
905
905
  ]
@@ -914,18 +914,18 @@ const so = ({
914
914
  onClose: o,
915
915
  open: e,
916
916
  sx: {
917
- ...s,
917
+ ...r,
918
918
  width: u ? 400 : 325
919
919
  },
920
920
  children: /* @__PURE__ */ a(
921
921
  Fe,
922
922
  {
923
923
  action: L,
924
- severity: r,
924
+ severity: c,
925
925
  sx: {
926
926
  display: "flex",
927
927
  alignItems: "stretch",
928
- minHeight: c && n && u ? 120 : 56,
928
+ minHeight: s && n && u ? 120 : 56,
929
929
  maxHeight: u ? 120 : 56,
930
930
  width: "100%",
931
931
  "& .MuiAlert-icon": {
@@ -952,7 +952,7 @@ const so = ({
952
952
  textOverflow: u ? "clip" : "ellipsis"
953
953
  },
954
954
  truncate: !u,
955
- children: t
955
+ children: i
956
956
  }
957
957
  )
958
958
  }
@@ -966,44 +966,44 @@ const so = ({
966
966
  }, N = {
967
967
  LIGHT: "light",
968
968
  DARK: "dark"
969
- }, re = R.createContext(q), te = R.createContext(
970
- $(N.LIGHT, O.REACT_NATIVE)
969
+ }, re = x.createContext(ee), ie = x.createContext(
970
+ G(N.LIGHT, O.REACT_NATIVE)
971
971
  ), uo = ({
972
972
  children: e,
973
973
  target: o = O.REACT,
974
- theme: t = N.LIGHT,
974
+ theme: i = N.LIGHT,
975
975
  tokenOverrides: l
976
976
  }) => {
977
- const [r, s] = R.useState(t === N.LIGHT ? q : Oe), n = R.useMemo(() => ({
977
+ const [c, r] = x.useState(i === N.LIGHT ? ee : Oe), n = x.useMemo(() => ({
978
978
  ...l
979
979
  }), [l]);
980
- return R.useEffect(() => {
981
- const c = $(t, o, { ...n });
982
- s(c);
983
- }, [t, o, n]), o === O.REACT ? /* @__PURE__ */ a(re.Provider, { value: r, children: e }) : (console.warn("DEPRECATED: Use static values instead of tokens"), /* @__PURE__ */ a(te.Provider, { value: r, children: e }));
980
+ return x.useEffect(() => {
981
+ const s = G(i, o, { ...n });
982
+ r(s);
983
+ }, [i, o, n]), o === O.REACT ? /* @__PURE__ */ a(re.Provider, { value: c, children: e }) : (console.warn("DEPRECATED: Use static values instead of tokens"), /* @__PURE__ */ a(ie.Provider, { value: c, children: e }));
984
984
  }, po = (e = O.REACT, o = {}) => {
985
- const t = e === O.REACT ? re : te, l = R.useContext(t);
986
- return l || $(N.LIGHT, e, { ...o });
985
+ const i = e === O.REACT ? re : ie, l = x.useContext(i);
986
+ return l || G(N.LIGHT, e, { ...o });
987
987
  }, ho = ({
988
988
  component: e = B,
989
989
  variant: o = "outlined",
990
- selected: t,
990
+ selected: i,
991
991
  onChange: l,
992
- headline: r,
993
- message: s,
992
+ headline: c,
993
+ message: r,
994
994
  name: n,
995
- value: c,
995
+ value: s,
996
996
  disabled: d = !1,
997
- error: i = !1,
997
+ error: t = !1,
998
998
  icon: u = !1,
999
999
  sx: C = {},
1000
1000
  ...L
1001
1001
  }) => {
1002
- const m = H(), ie = () => m.palette.background.paper, w = () => i ? `inset 0px 0px 0px 2px ${m.palette.error.main}` : d ? t ? `inset 0px 0px 0px 2px ${m.palette.action.disabled}` : o === "outlined" ? `inset 0px 0px 0px 1px ${m.palette.action.disabledBackground}` : `inset 0px 0px 0px 1px ${m.palette.action.disabled}` : o === "outlined" ? t ? `inset 0px 0px 0px 2px ${b(m.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${b(m.palette.common.black, 0.23)}` : t ? `inset 0px 0px 0px 2px ${b(m.palette.primary.main, 0.5)}` : m.shadows[1], ae = () => d || i ? m.palette.background.paper : b(m.palette.primary.main, 0.1), ne = () => d || i ? w() : o === "outlined" ? t ? `inset 0px 0px 0px 2px ${b(m.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${b(m.palette.primary.main, 0.5)}` : w(), le = () => d || i ? m.palette.background.paper : b(m.palette.primary.main, 0.3);
1002
+ const m = y(), ae = () => m.palette.background.paper, w = () => t ? `inset 0px 0px 0px 2px ${m.palette.error.main}` : d ? i ? `inset 0px 0px 0px 2px ${m.palette.action.disabled}` : o === "outlined" ? `inset 0px 0px 0px 1px ${m.palette.action.disabledBackground}` : `inset 0px 0px 0px 1px ${m.palette.action.disabled}` : o === "outlined" ? i ? `inset 0px 0px 0px 2px ${b(m.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${b(m.palette.common.black, 0.23)}` : i ? `inset 0px 0px 0px 2px ${b(m.palette.primary.main, 0.5)}` : m.shadows[1], ne = () => d || t ? m.palette.background.paper : b(m.palette.primary.main, 0.1), le = () => d || t ? w() : o === "outlined" ? i ? `inset 0px 0px 0px 2px ${b(m.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${b(m.palette.primary.main, 0.5)}` : w(), ce = () => d || t ? m.palette.background.paper : b(m.palette.primary.main, 0.3);
1003
1003
  return /* @__PURE__ */ a(
1004
1004
  ke,
1005
1005
  {
1006
- checked: t,
1006
+ checked: i,
1007
1007
  control: e === B ? /* @__PURE__ */ a(
1008
1008
  B,
1009
1009
  {
@@ -1039,8 +1039,8 @@ const so = ({
1039
1039
  label: /* @__PURE__ */ T(_, { sx: { display: "flex", alignItems: "flex-start", width: "100%" }, children: [
1040
1040
  u && /* @__PURE__ */ a(_, { sx: { mr: 12, mt: "8px", flexShrink: 0 }, children: u }),
1041
1041
  /* @__PURE__ */ T(_, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
1042
- r && /* @__PURE__ */ a(Y, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: r }),
1043
- /* @__PURE__ */ a(Y, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: s })
1042
+ c && /* @__PURE__ */ a(X, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: c }),
1043
+ /* @__PURE__ */ a(X, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: r })
1044
1044
  ] })
1045
1045
  ] }),
1046
1046
  labelPlacement: "start",
@@ -1054,7 +1054,7 @@ const so = ({
1054
1054
  mb: 16,
1055
1055
  cursor: d ? "not-allowed" : "pointer",
1056
1056
  opacity: d ? 0.6 : 1,
1057
- backgroundColor: ie(),
1057
+ backgroundColor: ae(),
1058
1058
  border: "none",
1059
1059
  boxShadow: w(),
1060
1060
  boxSizing: "border-box",
@@ -1062,11 +1062,11 @@ const so = ({
1062
1062
  duration: m.transitions.duration.short
1063
1063
  }),
1064
1064
  "&:hover": {
1065
- backgroundColor: ae(),
1066
- boxShadow: ne()
1065
+ backgroundColor: ne(),
1066
+ boxShadow: le()
1067
1067
  },
1068
1068
  "&:active": {
1069
- backgroundColor: le()
1069
+ backgroundColor: ce()
1070
1070
  },
1071
1071
  "&:focus-visible": {
1072
1072
  outline: `2px solid ${m.palette.info.main}`,
@@ -1074,17 +1074,17 @@ const so = ({
1074
1074
  },
1075
1075
  ...C
1076
1076
  },
1077
- value: c
1077
+ value: s
1078
1078
  }
1079
1079
  );
1080
- }, y = {
1080
+ }, F = {
1081
1081
  LIGHT: "light"
1082
1082
  }, M = (e) => ({
1083
- 50: F(e, 0.95),
1084
- 100: F(e, 0.85),
1085
- 200: F(e, 0.7),
1086
- 300: F(e, 0.55),
1087
- 400: F(e, 0.3),
1083
+ 50: H(e, 0.95),
1084
+ 100: H(e, 0.85),
1085
+ 200: H(e, 0.7),
1086
+ 300: H(e, 0.55),
1087
+ 400: H(e, 0.3),
1088
1088
  500: e,
1089
1089
  600: D(e, 0.3),
1090
1090
  700: D(e, 0.5),
@@ -1160,15 +1160,15 @@ const so = ({
1160
1160
  TRAVEL: "#76ACF7",
1161
1161
  UNCATEGORIZED: "#BCC6D4"
1162
1162
  }, qe = (e, o) => {
1163
- const t = M(o?.primary || E.PRIMARY), l = M(o?.secondary || E.SECONDARY), r = M(o?.error || E.ERROR), s = M(o?.warning || E.WARNING), n = M(o?.info || E.INFO), c = M(o?.success || E.SUCCESS), d = M(o?.grey || E.GREY), i = e === y.LIGHT;
1163
+ 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 === F.LIGHT;
1164
1164
  return {
1165
1165
  mode: e,
1166
1166
  // DEPRECATED: Use grey instead
1167
1167
  border: {
1168
1168
  /* DEPRECATED: Use light instead */
1169
- lighter: i ? d[300] : d[700],
1170
- light: i ? d[300] : d[700],
1171
- main: i ? d[400] : d[600],
1169
+ lighter: t ? d[300] : d[700],
1170
+ light: t ? d[300] : d[700],
1171
+ main: t ? d[400] : d[600],
1172
1172
  dark: d[500],
1173
1173
  /* DEPRECATED: Use light instead */
1174
1174
  darker: d[500]
@@ -1178,118 +1178,118 @@ const so = ({
1178
1178
  black: z
1179
1179
  },
1180
1180
  primary: {
1181
- ...t,
1181
+ ...i,
1182
1182
  /* DEPRECATED: Use light instead */
1183
- lighter: i ? t[100] : t[800],
1184
- light: i ? t[300] : t[600],
1185
- main: i ? t[500] : t[400],
1186
- dark: i ? t[700] : t[200],
1183
+ lighter: t ? i[100] : i[800],
1184
+ light: t ? i[300] : i[600],
1185
+ main: t ? i[500] : i[400],
1186
+ dark: t ? i[700] : i[200],
1187
1187
  /* DEPRECATED: Use dark instead */
1188
- darker: i ? t[900] : t[100]
1188
+ darker: t ? i[900] : i[100]
1189
1189
  },
1190
1190
  secondary: {
1191
1191
  ...l,
1192
1192
  /* DEPRECATED: Use light instead */
1193
- lighter: i ? l[100] : l[800],
1194
- light: i ? l[300] : l[600],
1195
- main: i ? l[500] : l[400],
1196
- dark: i ? l[700] : l[200],
1193
+ lighter: t ? l[100] : l[800],
1194
+ light: t ? l[300] : l[600],
1195
+ main: t ? l[500] : l[400],
1196
+ dark: t ? l[700] : l[200],
1197
1197
  /* DEPRECATED: Use dark instead */
1198
- darker: i ? l[900] : l[100]
1198
+ darker: t ? l[900] : l[100]
1199
1199
  },
1200
1200
  neutral: {
1201
1201
  ...d,
1202
1202
  /* DEPRECATED: Use light instead */
1203
- lighter: i ? d[100] : d[800],
1204
- light: i ? d[300] : d[600],
1205
- main: i ? d[500] : d[400],
1206
- dark: i ? d[700] : d[200],
1203
+ lighter: t ? d[100] : d[800],
1204
+ light: t ? d[300] : d[600],
1205
+ main: t ? d[500] : d[400],
1206
+ dark: t ? d[700] : d[200],
1207
1207
  /* DEPRECATED: Use dark instead */
1208
- darker: i ? d[900] : d[100],
1209
- contrastText: De(i ? d[700] : d[400], "#fff") > 4.5 ? A : d[900]
1208
+ darker: t ? d[900] : d[100],
1209
+ contrastText: De(t ? d[700] : d[400], "#fff") > 4.5 ? A : d[900]
1210
1210
  },
1211
1211
  text: {
1212
- primary: i ? d[900] : A,
1213
- secondary: i ? d[600] : b(A, 0.7),
1214
- disabled: i ? d[500] : b(A, 0.38)
1212
+ primary: t ? d[900] : A,
1213
+ secondary: t ? d[600] : b(A, 0.7),
1214
+ disabled: t ? d[500] : b(A, 0.38)
1215
1215
  },
1216
1216
  error: {
1217
- ...r,
1217
+ ...c,
1218
1218
  /* DEPRECATED: Use light instead */
1219
- lighter: i ? r[100] : r[800],
1220
- light: i ? r[300] : r[600],
1221
- main: i ? r[500] : r[400],
1222
- dark: i ? r[700] : r[200],
1219
+ lighter: t ? c[100] : c[800],
1220
+ light: t ? c[300] : c[600],
1221
+ main: t ? c[500] : c[400],
1222
+ dark: t ? c[700] : c[200],
1223
1223
  /* DEPRECATED: Use light instead */
1224
- darker: i ? r[900] : r[100]
1224
+ darker: t ? c[900] : c[100]
1225
1225
  },
1226
1226
  warning: {
1227
- ...s,
1227
+ ...r,
1228
1228
  /* DEPRECATED: Use light instead */
1229
- lighter: i ? s[100] : s[800],
1230
- light: i ? s[300] : s[600],
1231
- main: i ? s[500] : s[400],
1232
- dark: i ? s[700] : s[200],
1229
+ lighter: t ? r[100] : r[800],
1230
+ light: t ? r[300] : r[600],
1231
+ main: t ? r[500] : r[400],
1232
+ dark: t ? r[700] : r[200],
1233
1233
  /* DEPRECATED: Use light instead */
1234
- darker: i ? s[900] : s[100]
1234
+ darker: t ? r[900] : r[100]
1235
1235
  },
1236
1236
  info: {
1237
1237
  ...n,
1238
1238
  /* DEPRECATED: Use light instead */
1239
- lighter: i ? n[100] : n[800],
1240
- light: i ? n[300] : n[600],
1241
- main: i ? n[500] : n[400],
1242
- dark: i ? n[700] : n[200],
1239
+ lighter: t ? n[100] : n[800],
1240
+ light: t ? n[300] : n[600],
1241
+ main: t ? n[500] : n[400],
1242
+ dark: t ? n[700] : n[200],
1243
1243
  /* DEPRECATED: Use light instead */
1244
- darker: i ? n[900] : n[100]
1244
+ darker: t ? n[900] : n[100]
1245
1245
  },
1246
1246
  success: {
1247
- ...c,
1247
+ ...s,
1248
1248
  /* DEPRECATED: Use light instead */
1249
- lighter: i ? c[100] : c[800],
1250
- light: i ? c[300] : c[600],
1251
- main: i ? c[500] : c[400],
1252
- dark: i ? c[700] : c[200],
1249
+ lighter: t ? s[100] : s[800],
1250
+ light: t ? s[300] : s[600],
1251
+ main: t ? s[500] : s[400],
1252
+ dark: t ? s[700] : s[200],
1253
1253
  /* DEPRECATED: Use light instead */
1254
- darker: i ? c[900] : c[100]
1254
+ darker: t ? s[900] : s[100]
1255
1255
  },
1256
1256
  grey: d,
1257
1257
  action: {
1258
- active: i ? b(z, 0.56) : b(A, 0.56),
1259
- hoverOpacity: i ? 0.1 : 0.2,
1260
- selectedOpacity: i ? 0.16 : 0.25,
1258
+ active: t ? b(z, 0.56) : b(A, 0.56),
1259
+ hoverOpacity: t ? 0.1 : 0.2,
1260
+ selectedOpacity: t ? 0.16 : 0.25,
1261
1261
  focusOpacity: 0.3
1262
1262
  },
1263
1263
  background: {
1264
- default: i ? o?.background?.default?.light || Xe : o?.background?.default?.dark || je,
1265
- paper: i ? o?.background?.paper?.light || Qe : o?.background?.paper?.dark || Je,
1266
- highlight: i ? d[200] : d[600],
1267
- highlightPrimary: i ? t[100] : t[500]
1264
+ default: t ? o?.background?.default?.light || Xe : o?.background?.default?.dark || je,
1265
+ paper: t ? o?.background?.paper?.light || Qe : o?.background?.paper?.dark || Je,
1266
+ highlight: t ? d[200] : d[600],
1267
+ highlightPrimary: t ? i[100] : i[500]
1268
1268
  },
1269
- divider: i ? b(z, 0.12) : b(A, 0.24),
1269
+ divider: t ? b(z, 0.12) : b(A, 0.24),
1270
1270
  categories: {
1271
- autoTransport: i ? p.AUTO_TRANSPORTT : h.AUTO_TRANSPORTT,
1272
- billsUtilities: i ? p.BILLS_UTILITIES : h.BILLS_UTILITIES,
1273
- businessServices: i ? p.BUSINESS_SERVICES : h.BUSINESS_SERVICES,
1274
- education: i ? p.EDUCATION : h.EDUCATION,
1275
- entertainment: i ? p.ENTERTAINMENT : h.ENTERTAINMENT,
1276
- feesCharges: i ? p.FEES_CHARGES : h.FEES_CHARGES,
1277
- financial: i ? p.FINANCIAL : h.FINANCIAL,
1278
- foodDining: i ? p.FOOD_DINING : h.FOOD_DINING,
1279
- giftsDonations: i ? p.GIFTS_DONATIONS : h.GIFTS_DONATIONS,
1280
- healthFitness: i ? p.HEALTH_FITNESS : h.HEALTH_FITNESS,
1281
- home: i ? p.HOME : h.HOME,
1282
- income: i ? p.INCOME : h.INCOME,
1283
- investments: i ? p.INVESTMENTS : h.INVESTMENTS,
1284
- kids: i ? p.KIDS : h.KIDS,
1285
- others: i ? p.OTHERS : h.OTHERS,
1286
- personalCare: i ? p.PERSONAL_CARE : h.PERSONAL_CARE,
1287
- pets: i ? p.PETS : h.PETS,
1288
- shopping: i ? p.SHOPPING : h.SHOPPING,
1289
- taxes: i ? p.TAXES : h.TAXES,
1290
- transfer: i ? p.TRANSFER : h.TRANSFER,
1291
- travel: i ? p.TRAVEL : h.TRAVEL,
1292
- uncategorized: i ? p.UNCATEGORIZED : h.UNCATEGORIZED
1271
+ autoTransport: t ? p.AUTO_TRANSPORTT : h.AUTO_TRANSPORTT,
1272
+ billsUtilities: t ? p.BILLS_UTILITIES : h.BILLS_UTILITIES,
1273
+ businessServices: t ? p.BUSINESS_SERVICES : h.BUSINESS_SERVICES,
1274
+ education: t ? p.EDUCATION : h.EDUCATION,
1275
+ entertainment: t ? p.ENTERTAINMENT : h.ENTERTAINMENT,
1276
+ feesCharges: t ? p.FEES_CHARGES : h.FEES_CHARGES,
1277
+ financial: t ? p.FINANCIAL : h.FINANCIAL,
1278
+ foodDining: t ? p.FOOD_DINING : h.FOOD_DINING,
1279
+ giftsDonations: t ? p.GIFTS_DONATIONS : h.GIFTS_DONATIONS,
1280
+ healthFitness: t ? p.HEALTH_FITNESS : h.HEALTH_FITNESS,
1281
+ home: t ? p.HOME : h.HOME,
1282
+ income: t ? p.INCOME : h.INCOME,
1283
+ investments: t ? p.INVESTMENTS : h.INVESTMENTS,
1284
+ kids: t ? p.KIDS : h.KIDS,
1285
+ others: t ? p.OTHERS : h.OTHERS,
1286
+ personalCare: t ? p.PERSONAL_CARE : h.PERSONAL_CARE,
1287
+ pets: t ? p.PETS : h.PETS,
1288
+ shopping: t ? p.SHOPPING : h.SHOPPING,
1289
+ taxes: t ? p.TAXES : h.TAXES,
1290
+ transfer: t ? p.TRANSFER : h.TRANSFER,
1291
+ travel: t ? p.TRAVEL : h.TRAVEL,
1292
+ uncategorized: t ? p.UNCATEGORIZED : h.UNCATEGORIZED
1293
1293
  },
1294
1294
  chart: {
1295
1295
  chart1: S.CHART1,
@@ -1447,8 +1447,8 @@ we.setLicenseKey(
1447
1447
  "702b0c04dc7df078768d2d45cd3a98c6Tz0xMjEzMDYsRT0xNzkzNzUwMzk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
1448
1448
  );
1449
1449
  const go = (e, o) => {
1450
- const t = qe(e, o?.paletteOptions), l = o0(o?.typographyOptions);
1451
- return ce({
1450
+ const i = qe(e, o?.paletteOptions), l = o0(o?.typographyOptions), c = [...$().shadows];
1451
+ 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)", $({
1452
1452
  breakpoints: {
1453
1453
  values: {
1454
1454
  xs: 444,
@@ -1458,10 +1458,11 @@ const go = (e, o) => {
1458
1458
  xl: 1536
1459
1459
  }
1460
1460
  },
1461
- palette: t,
1461
+ palette: i,
1462
1462
  shape: {
1463
1463
  borderRadius: o?.shapeOptions?.borderRadius || 4
1464
1464
  },
1465
+ shadows: c,
1465
1466
  spacing: 1,
1466
1467
  // TODO: update spacing, we're back to a 8-base which is default for MUI 2.x
1467
1468
  typography: l,
@@ -1469,23 +1470,23 @@ const go = (e, o) => {
1469
1470
  MuiAlert: {
1470
1471
  defaultProps: {
1471
1472
  iconMapping: {
1472
- success: /* @__PURE__ */ a(x, { fill: !0, name: "check_circle", size: 24, weight: 400 }),
1473
- error: /* @__PURE__ */ a(x, { fill: !0, name: "error", size: 24, weight: 400 }),
1474
- warning: /* @__PURE__ */ a(x, { fill: !0, name: "warning", size: 24, weight: 400 }),
1475
- info: /* @__PURE__ */ a(x, { fill: !0, name: "info", size: 24, weight: 400 })
1473
+ success: /* @__PURE__ */ a(R, { fill: !0, name: "check_circle", size: 24, weight: 400 }),
1474
+ error: /* @__PURE__ */ a(R, { fill: !0, name: "error", size: 24, weight: 400 }),
1475
+ warning: /* @__PURE__ */ a(R, { fill: !0, name: "warning", size: 24, weight: 400 }),
1476
+ info: /* @__PURE__ */ a(R, { fill: !0, name: "info", size: 24, weight: 400 })
1476
1477
  },
1477
1478
  variant: "outlined"
1478
1479
  },
1479
1480
  styleOverrides: {
1480
- root: ({ theme: r, ownerState: s }) => {
1481
- const n = s.severity || "info";
1482
- let c = r.palette.mode === y.LIGHT ? r.palette[n]?.[50] : r.palette[n]?.[800];
1483
- if (s.variant === "filled") {
1484
- const d = n === "warning";
1485
- c = r.palette[n]?.[d ? 400 : 600];
1481
+ root: ({ theme: r, ownerState: n }) => {
1482
+ const s = n.severity || "info";
1483
+ let d = r.palette.mode === F.LIGHT ? r.palette[s]?.[50] : r.palette[s]?.[800];
1484
+ if (n.variant === "filled") {
1485
+ const t = s === "warning";
1486
+ d = r.palette[s]?.[t ? 400 : 600];
1486
1487
  }
1487
1488
  return {
1488
- backgroundColor: c,
1489
+ backgroundColor: d,
1489
1490
  borderRadius: r.shape.borderRadius,
1490
1491
  "& .MuiAlert-message": {
1491
1492
  fontSize: r.typography.subtitle1.fontSize,
@@ -1559,7 +1560,7 @@ const go = (e, o) => {
1559
1560
  styleOverrides: {
1560
1561
  root: {
1561
1562
  "&.Mui-focusVisible": {
1562
- boxShadow: `inset 0 0 0 2px ${t.info.main}`
1563
+ boxShadow: `inset 0 0 0 2px ${i.info.main}`
1563
1564
  }
1564
1565
  }
1565
1566
  }
@@ -1721,7 +1722,7 @@ const go = (e, o) => {
1721
1722
  MuiFormLabel: {
1722
1723
  styleOverrides: {
1723
1724
  asterisk: {
1724
- color: t.error.main
1725
+ color: i.error.main
1725
1726
  }
1726
1727
  }
1727
1728
  },
@@ -1769,13 +1770,13 @@ const go = (e, o) => {
1769
1770
  borderRadius: 4
1770
1771
  },
1771
1772
  colorPrimary: {
1772
- backgroundColor: t.grey[300]
1773
+ backgroundColor: i.grey[300]
1773
1774
  }
1774
1775
  }
1775
1776
  },
1776
1777
  MuiLink: {
1777
1778
  styleOverrides: {
1778
- root: ({ theme: r, color: s }) => ({
1779
+ root: ({ theme: r, color: n }) => ({
1779
1780
  cursor: "pointer",
1780
1781
  fontWeight: 600,
1781
1782
  textDecoration: "none",
@@ -1790,7 +1791,7 @@ const go = (e, o) => {
1790
1791
  backgroundColor: r.palette.action.hover
1791
1792
  },
1792
1793
  "&:active": {
1793
- backgroundColor: r.palette.mode === y.LIGHT ? r.palette[s].light : r.palette[s].dark
1794
+ backgroundColor: r.palette.mode === F.LIGHT ? r.palette[n].light : r.palette[n].dark
1794
1795
  }
1795
1796
  })
1796
1797
  }
@@ -1874,7 +1875,7 @@ const go = (e, o) => {
1874
1875
  },
1875
1876
  secondaryTypographyProps: {
1876
1877
  fontSize: 11,
1877
- color: t.text.secondary
1878
+ color: i.text.secondary
1878
1879
  }
1879
1880
  },
1880
1881
  styleOverrides: {
@@ -1894,7 +1895,7 @@ const go = (e, o) => {
1894
1895
  lineHeight: "inherit",
1895
1896
  top: -1,
1896
1897
  // This fixes an issue where there is a 1px gap when the subheader sticks to the top while scrolling
1897
- backgroundColor: t.background.default
1898
+ backgroundColor: i.background.default
1898
1899
  }
1899
1900
  }
1900
1901
  },
@@ -2064,7 +2065,7 @@ const go = (e, o) => {
2064
2065
  fontWeight: 600,
2065
2066
  "&.Mui-focusVisible": {
2066
2067
  outline: "none",
2067
- boxShadow: `inset 0 0 0 2px ${t.info.main}`,
2068
+ boxShadow: `inset 0 0 0 2px ${i.info.main}`,
2068
2069
  borderRadius: 4
2069
2070
  }
2070
2071
  }
@@ -2075,7 +2076,7 @@ const go = (e, o) => {
2075
2076
  root: {
2076
2077
  borderBottomStyle: "solid",
2077
2078
  borderBottomWidth: 1,
2078
- borderColor: t.divider,
2079
+ borderColor: i.divider,
2079
2080
  marginBottom: 8
2080
2081
  }
2081
2082
  }
@@ -2089,7 +2090,7 @@ const go = (e, o) => {
2089
2090
  },
2090
2091
  styleOverrides: {
2091
2092
  root: {
2092
- backgroundColor: t.background.paper
2093
+ backgroundColor: i.background.paper
2093
2094
  }
2094
2095
  }
2095
2096
  },
@@ -2100,29 +2101,14 @@ const go = (e, o) => {
2100
2101
  },
2101
2102
  styleOverrides: {
2102
2103
  root: {
2103
- color: t.text.primary,
2104
+ color: i.text.primary,
2104
2105
  fontSize: 13,
2105
2106
  lineHeight: "16px",
2106
2107
  textTransform: "none",
2107
- "&:focus-visible": {
2108
- outline: `2px solid ${t.info.main}`,
2109
- outlineOffset: "2px"
2110
- },
2111
- "&:hover": {
2112
- backgroundColor: b(t.primary.main, t.mode === y.LIGHT ? 0.1 : 0.2),
2113
- borderColor: t.primary.main
2114
- },
2115
- "&.Mui-selected": {
2116
- fontWeight: 600,
2117
- borderColor: t.primary.main,
2118
- "&:hover": {
2119
- boxShadow: `inset 0px 0px 0px 2px ${t.primary.main}`
2120
- }
2121
- },
2122
2108
  "& .MuiTouchRipple-root": {
2123
2109
  "& .MuiTouchRipple-ripple": {
2124
2110
  "& .MuiTouchRipple-child": {
2125
- backgroundColor: t.primary.main
2111
+ backgroundColor: i.primary.main
2126
2112
  }
2127
2113
  }
2128
2114
  }
@@ -2133,19 +2119,19 @@ const go = (e, o) => {
2133
2119
  props: { color: "error" },
2134
2120
  style: {
2135
2121
  "&:hover": {
2136
- backgroundColor: b(t.error.main, t.mode === y.LIGHT ? 0.1 : 0.2),
2137
- borderColor: t.error.main
2122
+ backgroundColor: b(i.error.main, i.mode === F.LIGHT ? 0.1 : 0.2),
2123
+ borderColor: i.error.main
2138
2124
  },
2139
2125
  "&.Mui-selected": {
2140
- borderColor: t.error.main,
2126
+ borderColor: i.error.main,
2141
2127
  "&:hover": {
2142
- boxShadow: `inset 0px 0px 0px 2px ${t.error.main}`
2128
+ boxShadow: `inset 0px 0px 0px 2px ${i.error.main}`
2143
2129
  }
2144
2130
  },
2145
2131
  "& .MuiTouchRipple-root": {
2146
2132
  "& .MuiTouchRipple-ripple": {
2147
2133
  "& .MuiTouchRipple-child": {
2148
- backgroundColor: t.error.main
2134
+ backgroundColor: i.error.main
2149
2135
  }
2150
2136
  }
2151
2137
  }
@@ -2156,21 +2142,21 @@ const go = (e, o) => {
2156
2142
  style: {
2157
2143
  "&:hover": {
2158
2144
  backgroundColor: b(
2159
- t.secondary.main,
2160
- t.mode === y.LIGHT ? 0.1 : 0.2
2145
+ i.secondary.main,
2146
+ i.mode === F.LIGHT ? 0.1 : 0.2
2161
2147
  ),
2162
- borderColor: t.secondary.main
2148
+ borderColor: i.secondary.main
2163
2149
  },
2164
2150
  "&.Mui-selected": {
2165
- borderColor: t.secondary.main,
2151
+ borderColor: i.secondary.main,
2166
2152
  "&:hover": {
2167
- boxShadow: `inset 0px 0px 0px 2px ${t.secondary.main}`
2153
+ boxShadow: `inset 0px 0px 0px 2px ${i.secondary.main}`
2168
2154
  }
2169
2155
  },
2170
2156
  "& .MuiTouchRipple-root": {
2171
2157
  "& .MuiTouchRipple-ripple": {
2172
2158
  "& .MuiTouchRipple-child": {
2173
- backgroundColor: t.secondary.main
2159
+ backgroundColor: i.secondary.main
2174
2160
  }
2175
2161
  }
2176
2162
  }
@@ -2209,9 +2195,9 @@ export {
2209
2195
  Be as CategoryIconList,
2210
2196
  _e as CategoryIconVariants,
2211
2197
  V0 as CheckmarkFilledIcon,
2212
- $0 as ChevronDownIcon,
2213
- G0 as ChevronLeftIcon,
2214
- U0 as ChevronRightIcon,
2198
+ G0 as ChevronDownIcon,
2199
+ U0 as ChevronLeftIcon,
2200
+ $0 as ChevronRightIcon,
2215
2201
  W0 as CloseIcon,
2216
2202
  q0 as DateRangePicker,
2217
2203
  We as DialogFooter,
@@ -2222,10 +2208,10 @@ export {
2222
2208
  We as Footer,
2223
2209
  Ze as H1,
2224
2210
  oo as H2,
2225
- ro as H3,
2211
+ to as H3,
2226
2212
  Y0 as HeartIcon,
2227
2213
  e0 as INTER,
2228
- x as Icon,
2214
+ R as Icon,
2229
2215
  Pe as IconWeight,
2230
2216
  no as InstitutionLogo,
2231
2217
  j0 as MXLogoCopyrightIcon,
@@ -2233,7 +2219,7 @@ export {
2233
2219
  X0 as MXLogoIcon,
2234
2220
  J0 as MXLogoOutlineIcon,
2235
2221
  lo as MerchantLogo,
2236
- to as P,
2222
+ ro as P,
2237
2223
  ho as SelectionBox,
2238
2224
  O as TARGETS,
2239
2225
  N as THEMES,