@mxenabled/mxui 2.2.0 → 2.2.2

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,33 +1,36 @@
1
- import { jsx as a, jsxs as T } from "react/jsx-runtime";
1
+ import { jsx as a, jsxs as b } from "react/jsx-runtime";
2
2
  import H from "react";
3
- import y from "@mui/material/Stack";
4
- import { useTheme as O, createTheme as oe } from "@mui/material/styles";
5
- import { Icon as re, Close as ie } from "@mxenabled/mx-icons";
6
- import { endOfMonth as z } from "date-fns/endOfMonth";
7
- import { endOfYear as ae } from "date-fns/endOfYear";
8
- import { startOfToday as ne } from "date-fns/startOfToday";
9
- import { startOfMonth as $ } from "date-fns/startOfMonth";
10
- import { startOfYear as U } from "date-fns/startOfYear";
3
+ import A from "@mui/material/Stack";
4
+ import { useTheme as E, createTheme as ne } from "@mui/material/styles";
5
+ import { Icon as le, ExpandMore as se, Close as ce } from "@mxenabled/mx-icons";
6
+ import { endOfMonth as $ } from "date-fns/endOfMonth";
7
+ import { endOfYear as de } from "date-fns/endOfYear";
8
+ import { startOfToday as ue } from "date-fns/startOfToday";
9
+ import { startOfMonth as U } from "date-fns/startOfMonth";
10
+ import { startOfYear as V } from "date-fns/startOfYear";
11
11
  import { subDays as G } 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 ue, LocalizationProvider as pe, StaticDateRangePicker as he } from "@mui/x-date-pickers-pro";
16
- import { AdapterDateFns as ge } from "@mui/x-date-pickers-pro/AdapterDateFns";
17
- import K 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";
12
+ import { subMonths as pe } from "date-fns/subMonths";
13
+ import { subYears as he } from "date-fns/subYears";
14
+ import ge from "@mui/material/useMediaQuery";
15
+ import { usePickerContext as X, useIsValidValue as j, LocalizationProvider as me, StaticDateRangePicker as fe } from "@mui/x-date-pickers-pro";
16
+ import { AdapterDateFns as be } from "@mui/x-date-pickers-pro/AdapterDateFns";
17
+ import { MultiInputDateRangeField as Te } from "@mui/x-date-pickers-pro/MultiInputDateRangeField";
18
+ import Z from "@mui/material/Box";
19
+ import xe from "@mui/material/ToggleButton";
20
+ import Re from "@mui/material/ToggleButtonGroup";
21
+ import Me from "@mui/material/MenuItem";
22
+ import Q from "@mui/material/TextField";
23
+ import { usePickerLayout as Ce, PickersLayoutRoot as Se, PickersLayoutContentWrapper as Ae, pickersLayoutClasses as D } from "@mui/x-date-pickers/PickersLayout";
24
+ import J from "@mui/material/Slide";
21
25
  import B from "@mui/material/Button";
22
- import j 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 Se, Box as k, Typography as V, Radio as w, Checkbox as Ce, alpha as m, darken as N, lighten as I, getContrastRatio as Ae } from "@mui/material";
29
- import { circularProgressClasses as Ee } from "@mui/material/CircularProgress";
30
- import { LicenseInfo as Oe } from "@mui/x-license";
26
+ import q from "@mui/material/IconButton";
27
+ import ye from "@mui/material/Typography";
28
+ import Ie from "@mui/material/Drawer";
29
+ import Ee from "@mui/material/Snackbar";
30
+ import Oe from "@mui/material/Alert";
31
+ import { FormControlLabel as Fe, Box as w, Typography as W, Radio as P, Checkbox as ve, alpha as f, darken as N, lighten as O, getContrastRatio as Ne } from "@mui/material";
32
+ import { circularProgressClasses as He } from "@mui/material/CircularProgress";
33
+ import { LicenseInfo as Le } from "@mui/x-license";
31
34
  const L = ({
32
35
  children: e,
33
36
  height: i,
@@ -46,10 +49,10 @@ const L = ({
46
49
  xmlns: "http://www.w3.org/2000/svg",
47
50
  children: e
48
51
  }
49
- ), x = ({ color: e, fill: i = !1, name: o, size: l = 20, sx: t, ...s }) => /* @__PURE__ */ a(re, { color: e, fill: i, name: o, size: l, sx: t, ...s }), bt = ({
52
+ ), x = ({ color: e, fill: i = !1, name: o, size: l = 20, sx: t, ...s }) => /* @__PURE__ */ a(le, { color: e, fill: i, name: o, size: l, sx: t, ...s }), Ft = ({
50
53
  color: e = "currentColor",
51
54
  ...i
52
- }) => /* @__PURE__ */ T(L, { ...i, children: [
55
+ }) => /* @__PURE__ */ b(L, { ...i, children: [
53
56
  /* @__PURE__ */ a(
54
57
  "path",
55
58
  {
@@ -64,10 +67,10 @@ const L = ({
64
67
  fill: e
65
68
  }
66
69
  )
67
- ] }), Tt = ({
70
+ ] }), vt = ({
68
71
  color: e = "currentColor",
69
72
  ...i
70
- }) => /* @__PURE__ */ T(L, { ...i, children: [
73
+ }) => /* @__PURE__ */ b(L, { ...i, children: [
71
74
  /* @__PURE__ */ a(
72
75
  "path",
73
76
  {
@@ -100,7 +103,7 @@ const L = ({
100
103
  fillRule: "evenodd"
101
104
  }
102
105
  )
103
- ] }), xt = ({
106
+ ] }), Nt = ({
104
107
  color: e = "currentColor",
105
108
  ...i
106
109
  }) => /* @__PURE__ */ a(L, { ...i, children: /* @__PURE__ */ a(
@@ -111,10 +114,10 @@ const L = ({
111
114
  fill: e,
112
115
  fillRule: "evenodd"
113
116
  }
114
- ) }), Rt = ({
117
+ ) }), Ht = ({
115
118
  color: e = "currentColor",
116
119
  ...i
117
- }) => /* @__PURE__ */ T(L, { ...i, children: [
120
+ }) => /* @__PURE__ */ b(L, { ...i, children: [
118
121
  /* @__PURE__ */ a(
119
122
  "path",
120
123
  {
@@ -139,12 +142,12 @@ const L = ({
139
142
  }
140
143
  )
141
144
  ] });
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 Z = {
145
+ var g = /* @__PURE__ */ ((e) => (e.AutoTransport = "CAT-7829f71c-2e8c-afa5-2f55-fa3634b89874", e.BillsUtilities = "CAT-79b02f2f-2adc-88f0-ac2b-4e71ead9cfc8", e.BusinessServices = "CAT-94b11142-e97b-941a-f67f-6e18d246a23f", e.Education = "CAT-bf5c9cca-c96b-b50d-440d-38d9adfda5b0", e.Entertainment = "CAT-e04e9d1e-e041-c315-2e50-094143ab3f73", e.FeesCharges = "CAT-d73ee74b-13a4-ac3e-4015-fc4ba9a62b2a", e.Financial = "CAT-6c7de3f8-de6c-7061-1dd2-b093044014bf", e.FoodDining = "CAT-bd56d35a-a9a7-6e10-66c1-5b9cc1b6c81a", e.GiftsDonations = "CAT-8edf9663-623e-4735-490e-31288f0a70b0", e.HealthFitness = "CAT-52fa4693-c088-afb2-2a99-7bc39bb23a0f", e.Home = "CAT-b709172b-4eb7-318e-3b5d-e0f0500b32ac", e.Income = "CAT-bf9f3294-4c40-1677-d269-54fbc189faf3", e.Investments = "CAT-ccd42390-9e8c-3fb6-a5d9-6c31182d9c5c", e.Kids = "CAT-0cb1d99d-f558-99e3-2282-b31f359b411a", e.PersonalCare = "CAT-e5154228-fe45-790d-a280-f6bf5ae5ac9f", e.Pets = "CAT-7cccbafa-87d7-c9a6-661b-8b3402fe9e78", e.Shopping = "CAT-aad51b46-d6f7-3da5-fd6e-492328b3023f", e.Taxes = "CAT-d00fc539-aa14-009b-4ffb-7e8c7b839954", e.Transfer = "CAT-bce48142-fea4-ff45-20d9-0a642d44de83", e.Travel = "CAT-ea23d844-cbd1-eb10-f6ac-0df9610e59ae", e.Uncategorized = "CAT-d7851c65-3353-e490-1953-fb9235e681e4", e))(g || {}), ke = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Filled = "filled", e.Transparent = "transparent", e.TwoTone = "two-tone", e))(ke || {});
146
+ const ee = {
144
147
  guid: g.Uncategorized,
145
148
  colorName: "uncategorized",
146
149
  icon: "category"
147
- }, ye = [
150
+ }, De = [
148
151
  {
149
152
  guid: g.AutoTransport,
150
153
  colorName: "autoTransport",
@@ -245,29 +248,29 @@ const Z = {
245
248
  colorName: "travel",
246
249
  icon: "airplane_ticket"
247
250
  },
248
- Z
249
- ], Fe = 0.625, ve = ({
251
+ ee
252
+ ], we = 0.625, Pe = ({
250
253
  categoryGuid: e,
251
- icon_ratio: i = Fe,
254
+ icon_ratio: i = we,
252
255
  size: o = 32,
253
256
  sx: l = {},
254
257
  variant: t = "filled"
255
258
  }) => {
256
- const s = O(), n = H.useMemo(
257
- () => ye.find((u) => u.guid === e) ?? Z,
259
+ const s = E(), n = H.useMemo(
260
+ () => De.find((u) => u.guid === e) ?? ee,
258
261
  [e]
259
- ), d = s.palette.categories[n.colorName];
262
+ ), c = s.palette.categories[n.colorName];
260
263
  return /* @__PURE__ */ a(
261
- y,
264
+ A,
262
265
  {
263
266
  alignItems: "center",
264
267
  bgcolor: () => {
265
- let u = d;
268
+ let u = c;
266
269
  return t === "twotone" && (u = `${u}20`), t === "transparent" || t === "basic" ? "transparent" : u;
267
270
  },
268
271
  borderRadius: 1,
269
272
  color: () => {
270
- const u = t === "filled" ? s.palette.common.white : d;
273
+ const u = t === "filled" ? s.palette.common.white : c;
271
274
  return t === "basic" ? s.palette.text.primary : u;
272
275
  },
273
276
  height: o,
@@ -277,19 +280,19 @@ const Z = {
277
280
  children: /* @__PURE__ */ a(x, { name: n.icon, size: o * i })
278
281
  }
279
282
  );
280
- }, Ne = ({ items: e, selected: i }) => {
281
- const o = O(), { setValue: l } = de(), t = ue(), s = e?.map((n) => {
282
- const d = n.getValue({ isValid: t });
283
+ }, _e = ({ items: e, selected: i }) => {
284
+ const o = E(), { setValue: l } = X(), t = j(), s = e?.map((n) => {
285
+ const c = n.getValue({ isValid: t });
283
286
  return {
284
287
  label: n.label,
285
288
  onClick: () => {
286
- l(d, { changeImportance: "accept", shortcut: n });
289
+ l(c, { changeImportance: "accept", shortcut: n });
287
290
  },
288
- disabled: !t(d)
291
+ disabled: !t(c)
289
292
  };
290
293
  });
291
- return /* @__PURE__ */ a(K, { 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((n) => /* @__PURE__ */ a(
292
- fe,
294
+ return /* @__PURE__ */ a(Z, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ a(Re, { color: "primary", orientation: "vertical", value: i, children: s?.map((n) => /* @__PURE__ */ a(
295
+ xe,
293
296
  {
294
297
  onClick: n.onClick,
295
298
  sx: {
@@ -316,23 +319,88 @@ const Z = {
316
319
  },
317
320
  n.label
318
321
  )) }) });
319
- }, Mt = ({
322
+ }, Be = ({
323
+ items: e,
324
+ selected: i,
325
+ selectLabel: o
326
+ }) => {
327
+ const { setValue: l } = X(), t = j(), s = e?.map((n) => {
328
+ const c = n.getValue({ isValid: t });
329
+ return {
330
+ label: n.label,
331
+ onClick: () => {
332
+ l(c, { changeImportance: "accept", shortcut: n });
333
+ },
334
+ disabled: !t(c)
335
+ };
336
+ });
337
+ return /* @__PURE__ */ a(A, { sx: { py: 16 }, children: /* @__PURE__ */ a(
338
+ Q,
339
+ {
340
+ defaultValue: i,
341
+ id: "select",
342
+ label: o,
343
+ select: !0,
344
+ slotProps: { inputLabel: { shrink: !0 }, select: { IconComponent: se } },
345
+ sx: { width: "100%" },
346
+ value: i,
347
+ variant: "outlined",
348
+ children: s?.map((n) => /* @__PURE__ */ a(Me, { onClick: n.onClick, value: n.label, children: n.label }, n.label))
349
+ }
350
+ ) });
351
+ }, ze = (e) => {
352
+ const { toolbar: i, content: o, shortcuts: l, ownerState: t } = Ce(e);
353
+ return /* @__PURE__ */ b(
354
+ Se,
355
+ {
356
+ ownerState: t,
357
+ sx: {
358
+ gridTemplateColumns: "minmax(320px, 1fr)",
359
+ overflow: "auto",
360
+ p: 0,
361
+ [`.${D.toolbar}`]: {
362
+ gridColumn: 1,
363
+ gridRow: 2
364
+ },
365
+ [`.${D.contentWrapper}`]: {
366
+ alignItems: "center",
367
+ gridColumn: 1,
368
+ gridRow: 3
369
+ }
370
+ },
371
+ children: [
372
+ /* @__PURE__ */ b(A, { sx: { gridColumn: 1, gridRow: 1, p: 16 }, children: [
373
+ l,
374
+ i
375
+ ] }),
376
+ /* @__PURE__ */ a(
377
+ Ae,
378
+ {
379
+ className: D.contentWrapper,
380
+ ownerState: t,
381
+ children: o
382
+ }
383
+ )
384
+ ]
385
+ }
386
+ );
387
+ }, Lt = ({
320
388
  copy: e,
321
389
  dateRange: i,
322
390
  onRangeChanged: o,
323
391
  selectedShortcut: l = e.dateRangeThisMonth,
324
392
  sx: t = {}
325
393
  }) => {
326
- const s = O(), n = ce(s.breakpoints.down("sm")), d = H.useMemo(() => {
327
- const r = ne(), u = le(r, 1), b = se(r, 1);
394
+ const s = E(), n = ge(s.breakpoints.down("sm")), c = H.useMemo(() => {
395
+ const r = ue(), u = pe(r, 1), T = he(r, 1);
328
396
  return [
329
397
  {
330
398
  label: e.dateRangeThisMonth,
331
- getValue: () => [$(r), z(r)]
399
+ getValue: () => [U(r), $(r)]
332
400
  },
333
401
  {
334
402
  label: e.dateRangeLastMonth,
335
- getValue: () => [$(u), z(u)]
403
+ getValue: () => [U(u), $(u)]
336
404
  },
337
405
  {
338
406
  label: e.dateRangeLast30Days,
@@ -344,23 +412,23 @@ const Z = {
344
412
  },
345
413
  {
346
414
  label: e.dateRangeYTD,
347
- getValue: () => [U(r), r]
415
+ getValue: () => [V(r), r]
348
416
  },
349
417
  {
350
418
  label: e.dateRangeLastYear,
351
- getValue: () => [U(b), ae(b)]
419
+ getValue: () => [V(T), de(T)]
352
420
  },
353
421
  {
354
422
  label: e.dateRangeCustom,
355
423
  getValue: () => [r, r]
356
424
  }
357
425
  ];
358
- }, [e]), c = (r, u) => {
359
- const b = u.shortcut;
360
- o?.(r, b ? b.label : e.dateRangeCustom);
426
+ }, [e]), d = (r, u) => {
427
+ const T = u.shortcut;
428
+ o?.(r, T ? T.label : e.dateRangeCustom);
361
429
  };
362
- return /* @__PURE__ */ a(y, { gap: 16, m: 8, children: /* @__PURE__ */ a(pe, { dateAdapter: ge, children: /* @__PURE__ */ a(
363
- he,
430
+ return /* @__PURE__ */ a(A, { gap: n ? 0 : 16, m: n ? 0 : 8, children: /* @__PURE__ */ a(me, { dateAdapter: be, children: /* @__PURE__ */ a(
431
+ fe,
364
432
  {
365
433
  calendars: 1,
366
434
  localeText: {
@@ -368,29 +436,53 @@ const Z = {
368
436
  end: e.dateRangeTo,
369
437
  toolbarTitle: e.dateRangeToolbarTitle
370
438
  },
371
- onChange: c,
439
+ onChange: d,
372
440
  showDaysOutsideCurrentMonth: !0,
373
441
  slotProps: {
374
442
  actionBar: { actions: [] },
375
443
  shortcuts: {
376
- items: n ? [] : d
444
+ items: c
377
445
  },
378
446
  toolbar: {
379
447
  toolbarFormat: "MMM d, yyyy"
380
448
  }
381
449
  },
382
450
  slots: {
451
+ ...n && { layout: ze },
383
452
  leftArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_left", size: 28 }),
384
- shortcuts: (r) => /* @__PURE__ */ a(Ne, { selected: l, ...r }),
385
- rightArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_right", size: 28 })
453
+ shortcuts: (r) => n ? /* @__PURE__ */ a(
454
+ Be,
455
+ {
456
+ selectLabel: e.dateRangeSelectARange,
457
+ selected: l,
458
+ ...r
459
+ }
460
+ ) : /* @__PURE__ */ a(_e, { selected: l, ...r }),
461
+ rightArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_right", size: 28 }),
462
+ ...n && {
463
+ toolbar: (r) => /* @__PURE__ */ a(
464
+ Te,
465
+ {
466
+ dateSeparator: "",
467
+ format: "MM/dd/yyyy",
468
+ ...r,
469
+ slotProps: {
470
+ textField: ({ position: u }) => ({
471
+ label: u === "start" ? e.dateRangeFrom : e.dateRangeTo
472
+ })
473
+ },
474
+ sx: { gap: 8 }
475
+ }
476
+ )
477
+ }
386
478
  },
387
479
  sx: { ...t },
388
480
  value: i
389
481
  }
390
482
  ) }) });
391
- }, St = H.forwardRef(function(i, o) {
392
- return /* @__PURE__ */ a(X, { direction: "up", ref: o, ...i });
393
- }), He = ({
483
+ }, kt = H.forwardRef(function(i, o) {
484
+ return /* @__PURE__ */ a(J, { direction: "up", ref: o, ...i });
485
+ }), $e = ({
394
486
  hasSecondaryAction: e = !0,
395
487
  isPrimaryDisabled: i,
396
488
  onPrimaryAction: o,
@@ -398,9 +490,9 @@ const Z = {
398
490
  primaryColor: t = "primary",
399
491
  primaryText: s = "Save",
400
492
  secondaryColor: n = "primary",
401
- secondaryText: d = "Cancel"
402
- }) => /* @__PURE__ */ T(
403
- y,
493
+ secondaryText: c = "Cancel"
494
+ }) => /* @__PURE__ */ b(
495
+ A,
404
496
  {
405
497
  direction: "row",
406
498
  gap: 16,
@@ -413,7 +505,7 @@ const Z = {
413
505
  color: n,
414
506
  onClick: l,
415
507
  variant: o ? "outlined" : "contained",
416
- children: d
508
+ children: c
417
509
  }
418
510
  ),
419
511
  o && /* @__PURE__ */ a(
@@ -436,9 +528,9 @@ const Z = {
436
528
  sx: t = {},
437
529
  truncate: s,
438
530
  uppercase: n,
439
- ...d
531
+ ...c
440
532
  }) => /* @__PURE__ */ a(
441
- be,
533
+ ye,
442
534
  {
443
535
  className: `mx-kmui-text ${i}`,
444
536
  color: l,
@@ -456,11 +548,11 @@ const Z = {
456
548
  } : {},
457
549
  ...Array.isArray(t) ? t : [t]
458
550
  ],
459
- ...d,
551
+ ...c,
460
552
  children: o
461
553
  }
462
- ), Le = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h1 ${e}`, component: "h1", variant: "h1", ...o, children: i }), Ct = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h2 ${e}`, component: "h2", variant: "h2", ...o, children: i }), At = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h3 ${e}`, component: "h3", variant: "h3", ...o, children: i }), Et = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text p ${e}`, component: "p", variant: "body1", ...o, children: i }), Ot = ({ copy: e, onClose: i }) => /* @__PURE__ */ T(
463
- y,
554
+ ), Ue = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h1 ${e}`, component: "h1", variant: "h1", ...o, children: i }), Dt = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h2 ${e}`, component: "h2", variant: "h2", ...o, children: i }), wt = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h3 ${e}`, component: "h3", variant: "h3", ...o, children: i }), Pt = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text p ${e}`, component: "p", variant: "body1", ...o, children: i }), _t = ({ copy: e, onClose: i }) => /* @__PURE__ */ b(
555
+ A,
464
556
  {
465
557
  sx: {
466
558
  alignItems: "center",
@@ -470,11 +562,11 @@ const Z = {
470
562
  py: 14
471
563
  },
472
564
  children: [
473
- /* @__PURE__ */ a(Le, { variant: "h3", children: e.title }),
474
- /* @__PURE__ */ a(j, { "aria-label": e.close_aria, onClick: i, sx: { mr: -12 }, children: /* @__PURE__ */ a(ie, {}) })
565
+ /* @__PURE__ */ a(Ue, { variant: "h3", children: e.title }),
566
+ /* @__PURE__ */ a(q, { "aria-label": e.close_aria, onClick: i, sx: { mr: -12 }, children: /* @__PURE__ */ a(ce, {}) })
475
567
  ]
476
568
  }
477
- ), It = ({
569
+ ), Bt = ({
478
570
  className: e,
479
571
  disableSave: i,
480
572
  id: o,
@@ -482,11 +574,11 @@ const Z = {
482
574
  onClose: t,
483
575
  onSave: s,
484
576
  primaryText: n,
485
- secondaryText: d,
486
- children: c,
577
+ secondaryText: c,
578
+ children: d,
487
579
  ...r
488
- }) => /* @__PURE__ */ T(
489
- Te,
580
+ }) => /* @__PURE__ */ b(
581
+ Ie,
490
582
  {
491
583
  anchor: "right",
492
584
  className: `mx-kmui-drawer ${e}`,
@@ -496,24 +588,24 @@ const Z = {
496
588
  variant: "temporary",
497
589
  ...r,
498
590
  children: [
499
- c,
591
+ d,
500
592
  s && /* @__PURE__ */ a(
501
- He,
593
+ $e,
502
594
  {
503
595
  isPrimaryDisabled: i,
504
596
  onPrimaryAction: s,
505
597
  onSecondaryAction: t,
506
598
  primaryText: n,
507
- secondaryText: d
599
+ secondaryText: c
508
600
  }
509
601
  )
510
602
  ]
511
603
  }
512
- ), Q = 32, P = "https://content.moneydesktop.com/storage/MD_Assets", W = `${P}/serenity/default_institution_logo.png`, yt = ({
604
+ ), te = 32, z = "https://content.moneydesktop.com/storage/MD_Assets", Y = `${z}/serenity/default_institution_logo.png`, zt = ({
513
605
  alt: e,
514
606
  institutionGuid: i,
515
607
  logoUrl: o,
516
- size: l = Q,
608
+ size: l = te,
517
609
  ...t
518
610
  }) => /* @__PURE__ */ a(
519
611
  "img",
@@ -522,24 +614,24 @@ const Z = {
522
614
  height: l,
523
615
  onError: (s) => {
524
616
  const n = s.target;
525
- n.src !== W && (n.src = W);
617
+ n.src !== Y && (n.src = Y);
526
618
  },
527
- src: o || `${P}/Ipad%20Logos/100x100/${i}_100x100.png`,
619
+ src: o || `${z}/Ipad%20Logos/100x100/${i}_100x100.png`,
528
620
  style: {
529
621
  borderRadius: 4
530
622
  },
531
623
  width: l,
532
624
  ...t
533
625
  }
534
- ), Ft = ({
626
+ ), $t = ({
535
627
  alt: e = "",
536
628
  categoryGuid: i,
537
629
  merchantGuid: o,
538
- size: l = Q,
630
+ size: l = te,
539
631
  ...t
540
632
  }) => {
541
- const [s, n] = H.useState(!1), d = O();
542
- return /* @__PURE__ */ T(K, { display: "inline-block", position: "relative", ...t, children: [
633
+ const [s, n] = H.useState(!1), c = E();
634
+ return /* @__PURE__ */ b(Z, { display: "inline-block", position: "relative", ...t, children: [
543
635
  o && !s && /* @__PURE__ */ a(
544
636
  "img",
545
637
  {
@@ -547,9 +639,9 @@ const Z = {
547
639
  "aria-hidden": !e,
548
640
  height: l,
549
641
  onError: () => n(!0),
550
- src: `${P}/merchant_logos/${o}.png`,
642
+ src: `${z}/merchant_logos/${o}.png`,
551
643
  style: {
552
- backgroundColor: d.palette.common.white,
644
+ backgroundColor: c.palette.common.white,
553
645
  borderRadius: 4,
554
646
  boxSizing: "border-box",
555
647
  position: "absolute"
@@ -557,16 +649,16 @@ const Z = {
557
649
  width: l
558
650
  }
559
651
  ),
560
- /* @__PURE__ */ a(ve, { categoryGuid: i, size: l })
652
+ /* @__PURE__ */ a(Pe, { categoryGuid: i, size: l })
561
653
  ] });
562
- }, vt = ({
654
+ }, Ut = ({
563
655
  disabled: e = !1,
564
656
  label: i = "",
565
657
  shrink: o = !0,
566
658
  variant: l = "outlined",
567
659
  ...t
568
660
  }) => /* @__PURE__ */ a(
569
- xe,
661
+ Q,
570
662
  {
571
663
  InputLabelProps: {
572
664
  shrink: o
@@ -577,10 +669,10 @@ const Z = {
577
669
  ...t
578
670
  }
579
671
  );
580
- function De(e) {
581
- return /* @__PURE__ */ a(X, { ...e, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
672
+ function Ve(e) {
673
+ return /* @__PURE__ */ a(J, { ...e, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
582
674
  }
583
- const Nt = ({
675
+ const Vt = ({
584
676
  open: e,
585
677
  handleClose: i,
586
678
  message: o,
@@ -588,19 +680,19 @@ const Nt = ({
588
680
  severity: t = "success",
589
681
  snackbarSx: s,
590
682
  showAction: n = !1,
591
- showClose: d = !1,
592
- actionText: c = "Undo",
683
+ showClose: c = !1,
684
+ actionText: d = "Undo",
593
685
  onActionClick: r,
594
686
  multiLine: u = !1
595
687
  }) => {
596
- const b = O(), v = /* @__PURE__ */ T(
597
- y,
688
+ const T = E(), v = /* @__PURE__ */ b(
689
+ A,
598
690
  {
599
691
  alignItems: u ? "flex-end" : "center",
600
692
  direction: u ? "column-reverse" : "row",
601
693
  justifyContent: (
602
694
  // eslint-disable-next-line no-nested-ternary
603
- u && n && d ? "space-between" : "flex-end"
695
+ u && n && c ? "space-between" : "flex-end"
604
696
  ),
605
697
  children: [
606
698
  n && /* @__PURE__ */ a(
@@ -610,14 +702,14 @@ const Nt = ({
610
702
  onClick: r || i,
611
703
  size: "small",
612
704
  sx: {
613
- color: b.palette.success.contrastText,
705
+ color: T.palette.success.contrastText,
614
706
  height: 44
615
707
  },
616
- children: c
708
+ children: d
617
709
  }
618
710
  ),
619
- d && /* @__PURE__ */ a(
620
- j,
711
+ c && /* @__PURE__ */ a(
712
+ q,
621
713
  {
622
714
  "aria-label": "close",
623
715
  color: "inherit",
@@ -630,9 +722,9 @@ const Nt = ({
630
722
  }
631
723
  );
632
724
  return /* @__PURE__ */ a(
633
- Re,
725
+ Ee,
634
726
  {
635
- TransitionComponent: De,
727
+ TransitionComponent: Ve,
636
728
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
637
729
  autoHideDuration: l,
638
730
  onClose: i,
@@ -642,14 +734,14 @@ const Nt = ({
642
734
  width: u ? 400 : 325
643
735
  },
644
736
  children: /* @__PURE__ */ a(
645
- Me,
737
+ Oe,
646
738
  {
647
739
  action: v,
648
740
  severity: t,
649
741
  sx: {
650
742
  display: "flex",
651
743
  alignItems: "stretch",
652
- minHeight: d && n && u ? 120 : 56,
744
+ minHeight: c && n && u ? 120 : 56,
653
745
  maxHeight: u ? 120 : 56,
654
746
  width: "100%",
655
747
  "& .MuiAlert-icon": {
@@ -670,7 +762,7 @@ const Nt = ({
670
762
  F,
671
763
  {
672
764
  sx: {
673
- lineHeight: b.typography.body1.lineHeight,
765
+ lineHeight: T.typography.body1.lineHeight,
674
766
  whiteSpace: u ? "normal" : "nowrap",
675
767
  overflow: u ? "visible" : "hidden",
676
768
  textOverflow: u ? "clip" : "ellipsis"
@@ -683,28 +775,28 @@ const Nt = ({
683
775
  )
684
776
  }
685
777
  );
686
- }, Ht = ({
687
- component: e = w,
778
+ }, Gt = ({
779
+ component: e = P,
688
780
  variant: i = "outlined",
689
781
  selected: o,
690
782
  onChange: l,
691
783
  headline: t,
692
784
  message: s,
693
785
  name: n,
694
- value: d,
695
- disabled: c = !1,
786
+ value: c,
787
+ disabled: d = !1,
696
788
  error: r = !1,
697
789
  icon: u = !1,
698
- sx: b = {},
790
+ sx: T = {},
699
791
  ...v
700
792
  }) => {
701
- const f = O(), J = () => f.palette.background.paper, D = () => 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], q = () => c || r ? f.palette.background.paper : m(f.palette.primary.main, 0.1), ee = () => c || r ? D() : 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)}` : D(), te = () => c || r ? f.palette.background.paper : m(f.palette.primary.main, 0.3);
793
+ const m = E(), oe = () => m.palette.background.paper, k = () => r ? `inset 0px 0px 0px 2px ${m.palette.error.main}` : d ? o ? `inset 0px 0px 0px 2px ${m.palette.action.disabled}` : i === "outlined" ? `inset 0px 0px 0px 1px ${m.palette.action.disabledBackground}` : `inset 0px 0px 0px 1px ${m.palette.action.disabled}` : i === "outlined" ? o ? `inset 0px 0px 0px 2px ${f(m.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${f(m.palette.common.black, 0.23)}` : o ? `inset 0px 0px 0px 2px ${f(m.palette.primary.main, 0.5)}` : m.shadows[1], re = () => d || r ? m.palette.background.paper : f(m.palette.primary.main, 0.1), ie = () => d || r ? k() : i === "outlined" ? o ? `inset 0px 0px 0px 2px ${f(m.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${f(m.palette.primary.main, 0.5)}` : k(), ae = () => d || r ? m.palette.background.paper : f(m.palette.primary.main, 0.3);
702
794
  return /* @__PURE__ */ a(
703
- Se,
795
+ Fe,
704
796
  {
705
797
  checked: o,
706
- control: e === w ? /* @__PURE__ */ a(
707
- w,
798
+ control: e === P ? /* @__PURE__ */ a(
799
+ P,
708
800
  {
709
801
  name: n,
710
802
  sx: {
@@ -719,7 +811,7 @@ const Nt = ({
719
811
  ...v
720
812
  }
721
813
  ) : /* @__PURE__ */ a(
722
- Ce,
814
+ ve,
723
815
  {
724
816
  name: n,
725
817
  sx: {
@@ -734,12 +826,12 @@ const Nt = ({
734
826
  ...v
735
827
  }
736
828
  ),
737
- disabled: c,
738
- label: /* @__PURE__ */ T(k, { sx: { display: "flex", alignItems: "flex-start", width: "100%" }, children: [
739
- u && /* @__PURE__ */ a(k, { sx: { mr: 12, mt: "8px", flexShrink: 0 }, children: u }),
740
- /* @__PURE__ */ T(k, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
741
- t && /* @__PURE__ */ a(V, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: t }),
742
- /* @__PURE__ */ a(V, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: s })
829
+ disabled: d,
830
+ label: /* @__PURE__ */ b(w, { sx: { display: "flex", alignItems: "flex-start", width: "100%" }, children: [
831
+ u && /* @__PURE__ */ a(w, { sx: { mr: 12, mt: "8px", flexShrink: 0 }, children: u }),
832
+ /* @__PURE__ */ b(w, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
833
+ t && /* @__PURE__ */ a(W, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: t }),
834
+ /* @__PURE__ */ a(W, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: s })
743
835
  ] })
744
836
  ] }),
745
837
  labelPlacement: "start",
@@ -749,47 +841,47 @@ const Nt = ({
749
841
  padding: "6px 16px",
750
842
  alignItems: "flex-start",
751
843
  justifyContent: "space-between",
752
- borderRadius: f.shape.borderRadius / 2,
844
+ borderRadius: m.shape.borderRadius / 2,
753
845
  mb: 16,
754
- cursor: c ? "not-allowed" : "pointer",
755
- opacity: c ? 0.6 : 1,
756
- backgroundColor: J(),
846
+ cursor: d ? "not-allowed" : "pointer",
847
+ opacity: d ? 0.6 : 1,
848
+ backgroundColor: oe(),
757
849
  border: "none",
758
- boxShadow: D(),
850
+ boxShadow: k(),
759
851
  boxSizing: "border-box",
760
- transition: f.transitions.create(["background-color", "box-shadow"], {
761
- duration: f.transitions.duration.short
852
+ transition: m.transitions.create(["background-color", "box-shadow"], {
853
+ duration: m.transitions.duration.short
762
854
  }),
763
855
  "&:hover": {
764
- backgroundColor: q(),
765
- boxShadow: ee()
856
+ backgroundColor: re(),
857
+ boxShadow: ie()
766
858
  },
767
859
  "&:active": {
768
- backgroundColor: te()
860
+ backgroundColor: ae()
769
861
  },
770
862
  "&:focus-visible": {
771
- outline: `2px solid ${f.palette.info.main}`,
863
+ outline: `2px solid ${m.palette.info.main}`,
772
864
  outlineOffset: "2px"
773
865
  },
774
- ...b
866
+ ...T
775
867
  },
776
- value: d
868
+ value: c
777
869
  }
778
870
  );
779
- }, E = {
871
+ }, I = {
780
872
  LIGHT: "light"
781
873
  }, R = (e) => ({
782
- 50: I(e, 0.95),
783
- 100: I(e, 0.85),
784
- 200: I(e, 0.7),
785
- 300: I(e, 0.55),
786
- 400: I(e, 0.3),
874
+ 50: O(e, 0.95),
875
+ 100: O(e, 0.85),
876
+ 200: O(e, 0.7),
877
+ 300: O(e, 0.55),
878
+ 400: O(e, 0.3),
787
879
  500: e,
788
880
  600: N(e, 0.3),
789
881
  700: N(e, 0.5),
790
882
  800: N(e, 0.65),
791
883
  900: N(e, 0.75)
792
- }), M = "#FFFFFF", _ = "#000000", ke = "#F9F9F9", we = "#000000", _e = "#FFFFFF", Be = "#000000", S = {
884
+ }), M = "#FFFFFF", _ = "#000000", Ge = "#F9F9F9", We = "#000000", Ye = "#FFFFFF", Ke = "#000000", C = {
793
885
  PRIMARY: "#2C64EF",
794
886
  SECONDARY: "#808080",
795
887
  INFO: "#2C64EF",
@@ -797,7 +889,7 @@ const Nt = ({
797
889
  WARNING: "#FF7B00",
798
890
  ERROR: "#E32727",
799
891
  GREY: "#808080"
800
- }, C = {
892
+ }, S = {
801
893
  CHART1: "#74E4DA",
802
894
  CHART2: "#ED64A4",
803
895
  CHART3: "#F3DC46",
@@ -805,7 +897,7 @@ const Nt = ({
805
897
  CHART5: "#60A9FF",
806
898
  CHART6: "#C8BAEE",
807
899
  CHART7: "#585E67"
808
- }, A = {
900
+ }, y = {
809
901
  CHART_MONO1: "#C3EAFF",
810
902
  CHART_MONO2: "#8ED7FF",
811
903
  CHART_MONO3: "#60A9FF",
@@ -858,8 +950,8 @@ const Nt = ({
858
950
  TRANSFER: "#75C7B7",
859
951
  TRAVEL: "#76ACF7",
860
952
  UNCATEGORIZED: "#BCC6D4"
861
- }, Pe = (e, i) => {
862
- const o = R(i?.primary || S.PRIMARY), l = R(i?.secondary || S.SECONDARY), t = R(i?.error || S.ERROR), s = R(i?.warning || S.WARNING), n = R(i?.info || S.INFO), d = R(i?.success || S.SUCCESS), c = R(i?.grey || S.GREY), r = e === E.LIGHT;
953
+ }, Xe = (e, i) => {
954
+ const o = R(i?.primary || C.PRIMARY), l = R(i?.secondary || C.SECONDARY), t = R(i?.error || C.ERROR), s = R(i?.warning || C.WARNING), n = R(i?.info || C.INFO), c = R(i?.success || C.SUCCESS), d = R(i?.grey || C.GREY), r = e === I.LIGHT;
863
955
  return {
864
956
  mode: e,
865
957
  common: {
@@ -879,16 +971,16 @@ const Nt = ({
879
971
  dark: r ? l[700] : l[200]
880
972
  },
881
973
  neutral: {
882
- ...c,
883
- light: r ? c[300] : c[600],
884
- main: r ? c[500] : c[400],
885
- dark: r ? c[700] : c[200],
886
- contrastText: Ae(r ? c[700] : c[400], "#fff") > 4.5 ? M : c[900]
974
+ ...d,
975
+ light: r ? d[300] : d[600],
976
+ main: r ? d[500] : d[400],
977
+ dark: r ? d[700] : d[200],
978
+ contrastText: Ne(r ? d[700] : d[400], "#fff") > 4.5 ? M : d[900]
887
979
  },
888
980
  text: {
889
- primary: r ? c[900] : M,
890
- secondary: r ? c[600] : m(M, 0.7),
891
- disabled: r ? c[500] : m(M, 0.38)
981
+ primary: r ? d[900] : M,
982
+ secondary: r ? d[600] : f(M, 0.7),
983
+ disabled: r ? d[500] : f(M, 0.38)
892
984
  },
893
985
  error: {
894
986
  ...t,
@@ -909,25 +1001,25 @@ const Nt = ({
909
1001
  dark: r ? n[700] : n[200]
910
1002
  },
911
1003
  success: {
912
- ...d,
913
- light: r ? d[300] : d[600],
914
- main: r ? d[500] : d[400],
915
- dark: r ? d[700] : d[200]
1004
+ ...c,
1005
+ light: r ? c[300] : c[600],
1006
+ main: r ? c[500] : c[400],
1007
+ dark: r ? c[700] : c[200]
916
1008
  },
917
- grey: c,
1009
+ grey: d,
918
1010
  action: {
919
- active: r ? m(_, 0.56) : m(M, 0.56),
1011
+ active: r ? f(_, 0.56) : f(M, 0.56),
920
1012
  hoverOpacity: r ? 0.1 : 0.2,
921
1013
  selectedOpacity: r ? 0.16 : 0.25,
922
1014
  focusOpacity: 0.3
923
1015
  },
924
1016
  background: {
925
- default: r ? i?.background?.default?.light || ke : i?.background?.default?.dark || we,
926
- paper: r ? i?.background?.paper?.light || _e : i?.background?.paper?.dark || Be,
927
- highlight: r ? c[200] : c[600],
1017
+ default: r ? i?.background?.default?.light || Ge : i?.background?.default?.dark || We,
1018
+ paper: r ? i?.background?.paper?.light || Ye : i?.background?.paper?.dark || Ke,
1019
+ highlight: r ? d[200] : d[600],
928
1020
  highlightPrimary: r ? o[100] : o[500]
929
1021
  },
930
- divider: r ? m(_, 0.12) : m(M, 0.24),
1022
+ divider: r ? f(_, 0.12) : f(M, 0.24),
931
1023
  categories: {
932
1024
  autoTransport: r ? p.AUTO_TRANSPORTT : h.AUTO_TRANSPORTT,
933
1025
  billsUtilities: r ? p.BILLS_UTILITIES : h.BILLS_UTILITIES,
@@ -953,25 +1045,25 @@ const Nt = ({
953
1045
  uncategorized: r ? p.UNCATEGORIZED : h.UNCATEGORIZED
954
1046
  },
955
1047
  chart: {
956
- chart1: C.CHART1,
957
- chart2: C.CHART2,
958
- chart3: C.CHART3,
959
- chart4: C.CHART4,
960
- chart5: C.CHART5,
961
- chart6: C.CHART6,
962
- chart7: C.CHART7
1048
+ chart1: S.CHART1,
1049
+ chart2: S.CHART2,
1050
+ chart3: S.CHART3,
1051
+ chart4: S.CHART4,
1052
+ chart5: S.CHART5,
1053
+ chart6: S.CHART6,
1054
+ chart7: S.CHART7
963
1055
  },
964
1056
  chartMono: {
965
- chartMono1: A.CHART_MONO1,
966
- chartMono2: A.CHART_MONO2,
967
- chartMono3: A.CHART_MONO3,
968
- chartMono4: A.CHART_MONO4,
969
- chartMono5: A.CHART_MONO5,
970
- chartMono6: A.CHART_MONO6
1057
+ chartMono1: y.CHART_MONO1,
1058
+ chartMono2: y.CHART_MONO2,
1059
+ chartMono3: y.CHART_MONO3,
1060
+ chartMono4: y.CHART_MONO4,
1061
+ chartMono5: y.CHART_MONO5,
1062
+ chartMono6: y.CHART_MONO6
971
1063
  }
972
1064
  };
973
- }, Y = "Inter, Helvetica, Arial, sans-serif", ze = (e) => {
974
- const i = e?.fontFamily ? `${e?.fontFamily}, ${Y}` : Y;
1065
+ }, K = "Inter, Helvetica, Arial, sans-serif", je = (e) => {
1066
+ const i = e?.fontFamily ? `${e?.fontFamily}, ${K}` : K;
975
1067
  return {
976
1068
  fontFamily: i,
977
1069
  fontSize: 15,
@@ -1030,12 +1122,12 @@ const Nt = ({
1030
1122
  ...e
1031
1123
  };
1032
1124
  };
1033
- Oe.setLicenseKey(
1125
+ Le.setLicenseKey(
1034
1126
  "702b0c04dc7df078768d2d45cd3a98c6Tz0xMjEzMDYsRT0xNzkzNzUwMzk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
1035
1127
  );
1036
- const Lt = (e, i) => {
1037
- const o = Pe(e, i?.paletteOptions), l = ze(i?.typographyOptions);
1038
- return oe({
1128
+ const Wt = (e, i) => {
1129
+ const o = Xe(e, i?.paletteOptions), l = je(i?.typographyOptions);
1130
+ return ne({
1039
1131
  breakpoints: {
1040
1132
  values: {
1041
1133
  xs: 444,
@@ -1067,13 +1159,13 @@ const Lt = (e, i) => {
1067
1159
  styleOverrides: {
1068
1160
  root: ({ theme: t, ownerState: s }) => {
1069
1161
  const n = s.severity || "info";
1070
- let d = t.palette.mode === E.LIGHT ? t.palette[n]?.[50] : t.palette[n]?.[800];
1162
+ let c = t.palette.mode === I.LIGHT ? t.palette[n]?.[50] : t.palette[n]?.[800];
1071
1163
  if (s.variant === "filled") {
1072
- const c = n === "warning";
1073
- d = t.palette[n]?.[c ? 400 : 600];
1164
+ const d = n === "warning";
1165
+ c = t.palette[n]?.[d ? 400 : 600];
1074
1166
  }
1075
1167
  return {
1076
- backgroundColor: d,
1168
+ backgroundColor: c,
1077
1169
  borderRadius: t.shape.borderRadius,
1078
1170
  "& .MuiAlert-message": {
1079
1171
  fontSize: t.typography.subtitle1.fontSize,
@@ -1155,7 +1247,7 @@ const Lt = (e, i) => {
1155
1247
  MuiCircularProgress: {
1156
1248
  styleOverrides: {
1157
1249
  root: {
1158
- [`& .${Ee.circle}`]: {
1250
+ [`& .${He.circle}`]: {
1159
1251
  strokeLinecap: "round"
1160
1252
  }
1161
1253
  }
@@ -1378,7 +1470,7 @@ const Lt = (e, i) => {
1378
1470
  backgroundColor: t.palette.action.hover
1379
1471
  },
1380
1472
  "&:active": {
1381
- backgroundColor: t.palette.mode === E.LIGHT ? t.palette[s].light : t.palette[s].dark
1473
+ backgroundColor: t.palette.mode === I.LIGHT ? t.palette[s].light : t.palette[s].dark
1382
1474
  }
1383
1475
  })
1384
1476
  }
@@ -1701,7 +1793,7 @@ const Lt = (e, i) => {
1701
1793
  outlineOffset: "2px"
1702
1794
  },
1703
1795
  "&:hover": {
1704
- backgroundColor: m(o.primary.main, o.mode === E.LIGHT ? 0.1 : 0.2),
1796
+ backgroundColor: f(o.primary.main, o.mode === I.LIGHT ? 0.1 : 0.2),
1705
1797
  borderColor: o.primary.main
1706
1798
  },
1707
1799
  "&.Mui-selected": {
@@ -1725,7 +1817,7 @@ const Lt = (e, i) => {
1725
1817
  props: { color: "error" },
1726
1818
  style: {
1727
1819
  "&:hover": {
1728
- backgroundColor: m(o.error.main, o.mode === E.LIGHT ? 0.1 : 0.2),
1820
+ backgroundColor: f(o.error.main, o.mode === I.LIGHT ? 0.1 : 0.2),
1729
1821
  borderColor: o.error.main
1730
1822
  },
1731
1823
  "&.Mui-selected": {
@@ -1747,9 +1839,9 @@ const Lt = (e, i) => {
1747
1839
  props: { color: "standard" },
1748
1840
  style: {
1749
1841
  "&:hover": {
1750
- backgroundColor: m(
1842
+ backgroundColor: f(
1751
1843
  o.secondary.main,
1752
- o.mode === E.LIGHT ? 0.1 : 0.2
1844
+ o.mode === I.LIGHT ? 0.1 : 0.2
1753
1845
  ),
1754
1846
  borderColor: o.secondary.main
1755
1847
  },
@@ -1790,32 +1882,32 @@ const Lt = (e, i) => {
1790
1882
  };
1791
1883
  export {
1792
1884
  L as BaseIcon,
1793
- St as BottomSheetTransition,
1885
+ kt as BottomSheetTransition,
1794
1886
  g as CategoryGuids,
1795
- ve as CategoryIcon,
1796
- ye as CategoryIconList,
1797
- Ie as CategoryIconVariants,
1798
- Mt as DateRangePicker,
1799
- He as DialogFooter,
1800
- Ot as DialogHeader,
1801
- It as Drawer,
1802
- He as Footer,
1803
- Le as H1,
1804
- Ct as H2,
1805
- At as H3,
1806
- Y as INTER,
1887
+ Pe as CategoryIcon,
1888
+ De as CategoryIconList,
1889
+ ke as CategoryIconVariants,
1890
+ Lt as DateRangePicker,
1891
+ $e as DialogFooter,
1892
+ _t as DialogHeader,
1893
+ Bt as Drawer,
1894
+ $e as Footer,
1895
+ Ue as H1,
1896
+ Dt as H2,
1897
+ wt as H3,
1898
+ K as INTER,
1807
1899
  x as Icon,
1808
- yt as InstitutionLogo,
1809
- Tt as MXLogoCopyrightIcon,
1810
- xt as MXLogoFilledIcon,
1811
- bt as MXLogoIcon,
1812
- Rt as MXLogoOutlineIcon,
1813
- Ft as MerchantLogo,
1814
- Et as P,
1815
- Ht as SelectionBox,
1900
+ zt as InstitutionLogo,
1901
+ vt as MXLogoCopyrightIcon,
1902
+ Nt as MXLogoFilledIcon,
1903
+ Ft as MXLogoIcon,
1904
+ Ht as MXLogoOutlineIcon,
1905
+ $t as MerchantLogo,
1906
+ Pt as P,
1907
+ Gt as SelectionBox,
1816
1908
  F as Text,
1817
- vt as TextField,
1818
- Nt as Toast,
1819
- Lt as createMXTheme
1909
+ Ut as TextField,
1910
+ Vt as Toast,
1911
+ Wt as createMXTheme
1820
1912
  };
1821
1913
  //# sourceMappingURL=index.es.js.map