@mxenabled/mxui 2.2.2 → 2.2.4
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 +317 -315
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import { jsx as a, jsxs as b } from "react/jsx-runtime";
|
|
2
2
|
import H from "react";
|
|
3
3
|
import A from "@mui/material/Stack";
|
|
4
|
-
import { useTheme as E, createTheme as
|
|
4
|
+
import { useTheme as E, createTheme as $ } from "@mui/material/styles";
|
|
5
5
|
import { Icon as le, ExpandMore as se, Close as ce } from "@mxenabled/mx-icons";
|
|
6
|
-
import { endOfMonth as
|
|
6
|
+
import { endOfMonth as U } from "date-fns/endOfMonth";
|
|
7
7
|
import { endOfYear as de } from "date-fns/endOfYear";
|
|
8
|
-
import { startOfToday as
|
|
9
|
-
import { startOfMonth as
|
|
10
|
-
import { startOfYear as
|
|
11
|
-
import { subDays as
|
|
12
|
-
import { subMonths as
|
|
8
|
+
import { startOfToday as pe } from "date-fns/startOfToday";
|
|
9
|
+
import { startOfMonth as V } from "date-fns/startOfMonth";
|
|
10
|
+
import { startOfYear as G } from "date-fns/startOfYear";
|
|
11
|
+
import { subDays as W } from "date-fns/subDays";
|
|
12
|
+
import { subMonths as ue } from "date-fns/subMonths";
|
|
13
13
|
import { subYears as he } from "date-fns/subYears";
|
|
14
14
|
import ge from "@mui/material/useMediaQuery";
|
|
15
|
-
import { usePickerContext as
|
|
15
|
+
import { usePickerContext as j, useIsValidValue as Z, LocalizationProvider as fe, StaticDateRangePicker as me } from "@mui/x-date-pickers-pro";
|
|
16
16
|
import { AdapterDateFns as be } from "@mui/x-date-pickers-pro/AdapterDateFns";
|
|
17
17
|
import { MultiInputDateRangeField as Te } from "@mui/x-date-pickers-pro/MultiInputDateRangeField";
|
|
18
|
-
import
|
|
18
|
+
import Q from "@mui/material/Box";
|
|
19
19
|
import xe from "@mui/material/ToggleButton";
|
|
20
20
|
import Re from "@mui/material/ToggleButtonGroup";
|
|
21
21
|
import Me from "@mui/material/MenuItem";
|
|
22
|
-
import
|
|
22
|
+
import J from "@mui/material/TextField";
|
|
23
23
|
import { usePickerLayout as Ce, PickersLayoutRoot as Se, PickersLayoutContentWrapper as Ae, pickersLayoutClasses as D } from "@mui/x-date-pickers/PickersLayout";
|
|
24
|
-
import
|
|
24
|
+
import q from "@mui/material/Slide";
|
|
25
25
|
import B from "@mui/material/Button";
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
26
|
+
import ee from "@mui/material/IconButton";
|
|
27
|
+
import Ie from "@mui/material/Typography";
|
|
28
|
+
import ye from "@mui/material/Drawer";
|
|
29
29
|
import Ee from "@mui/material/Snackbar";
|
|
30
30
|
import Oe from "@mui/material/Alert";
|
|
31
|
-
import { FormControlLabel as Fe, Box as w, Typography as
|
|
31
|
+
import { FormControlLabel as Fe, Box as w, Typography as Y, Radio as P, Checkbox as ve, alpha as m, darken as N, lighten as O, getContrastRatio as Ne } from "@mui/material";
|
|
32
32
|
import { circularProgressClasses as He } from "@mui/material/CircularProgress";
|
|
33
33
|
import { LicenseInfo as Le } from "@mui/x-license";
|
|
34
34
|
const L = ({
|
|
35
35
|
children: e,
|
|
36
36
|
height: i,
|
|
37
|
-
size:
|
|
38
|
-
viewBox:
|
|
39
|
-
width:
|
|
37
|
+
size: r = 16,
|
|
38
|
+
viewBox: s = "0 0 16 16",
|
|
39
|
+
width: l
|
|
40
40
|
}) => /* @__PURE__ */ a(
|
|
41
41
|
"svg",
|
|
42
42
|
{
|
|
43
43
|
"aria-hidden": !0,
|
|
44
44
|
className: "mx-kmui-icon",
|
|
45
45
|
focusable: !1,
|
|
46
|
-
height: i ||
|
|
47
|
-
viewBox:
|
|
48
|
-
width:
|
|
46
|
+
height: i || r,
|
|
47
|
+
viewBox: s,
|
|
48
|
+
width: l || r,
|
|
49
49
|
xmlns: "http://www.w3.org/2000/svg",
|
|
50
50
|
children: e
|
|
51
51
|
}
|
|
52
|
-
), x = ({ color: e, fill: i = !1, name:
|
|
52
|
+
), x = ({ color: e, fill: i = !1, name: r, size: s = 20, sx: l, ...t }) => /* @__PURE__ */ a(le, { color: e, fill: i, name: r, size: s, sx: l, ...t }), Ft = ({
|
|
53
53
|
color: e = "currentColor",
|
|
54
54
|
...i
|
|
55
55
|
}) => /* @__PURE__ */ b(L, { ...i, children: [
|
|
@@ -143,7 +143,7 @@ const L = ({
|
|
|
143
143
|
)
|
|
144
144
|
] });
|
|
145
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
|
|
146
|
+
const te = {
|
|
147
147
|
guid: g.Uncategorized,
|
|
148
148
|
colorName: "uncategorized",
|
|
149
149
|
icon: "category"
|
|
@@ -248,50 +248,50 @@ const ee = {
|
|
|
248
248
|
colorName: "travel",
|
|
249
249
|
icon: "airplane_ticket"
|
|
250
250
|
},
|
|
251
|
-
|
|
251
|
+
te
|
|
252
252
|
], we = 0.625, Pe = ({
|
|
253
253
|
categoryGuid: e,
|
|
254
254
|
icon_ratio: i = we,
|
|
255
|
-
size:
|
|
256
|
-
sx:
|
|
257
|
-
variant:
|
|
255
|
+
size: r = 32,
|
|
256
|
+
sx: s = {},
|
|
257
|
+
variant: l = "filled"
|
|
258
258
|
}) => {
|
|
259
|
-
const
|
|
260
|
-
() => De.find((
|
|
259
|
+
const t = E(), n = H.useMemo(
|
|
260
|
+
() => De.find((p) => p.guid === e) ?? te,
|
|
261
261
|
[e]
|
|
262
|
-
), c =
|
|
262
|
+
), c = t.palette.categories[n.colorName];
|
|
263
263
|
return /* @__PURE__ */ a(
|
|
264
264
|
A,
|
|
265
265
|
{
|
|
266
266
|
alignItems: "center",
|
|
267
267
|
bgcolor: () => {
|
|
268
|
-
let
|
|
269
|
-
return
|
|
268
|
+
let p = c;
|
|
269
|
+
return l === "twotone" && (p = `${p}20`), l === "transparent" || l === "basic" ? "transparent" : p;
|
|
270
270
|
},
|
|
271
271
|
borderRadius: 1,
|
|
272
272
|
color: () => {
|
|
273
|
-
const
|
|
274
|
-
return
|
|
273
|
+
const p = l === "filled" ? t.palette.common.white : c;
|
|
274
|
+
return l === "basic" ? t.palette.text.primary : p;
|
|
275
275
|
},
|
|
276
|
-
height:
|
|
276
|
+
height: r,
|
|
277
277
|
justifyContent: "center",
|
|
278
|
-
sx: [...Array.isArray(
|
|
279
|
-
width:
|
|
280
|
-
children: /* @__PURE__ */ a(x, { name: n.icon, size:
|
|
278
|
+
sx: [...Array.isArray(s) ? s : [s]],
|
|
279
|
+
width: r,
|
|
280
|
+
children: /* @__PURE__ */ a(x, { name: n.icon, size: r * i })
|
|
281
281
|
}
|
|
282
282
|
);
|
|
283
283
|
}, _e = ({ items: e, selected: i }) => {
|
|
284
|
-
const
|
|
285
|
-
const c = n.getValue({ isValid:
|
|
284
|
+
const r = E(), { setValue: s } = j(), l = Z(), t = e?.map((n) => {
|
|
285
|
+
const c = n.getValue({ isValid: l });
|
|
286
286
|
return {
|
|
287
287
|
label: n.label,
|
|
288
288
|
onClick: () => {
|
|
289
|
-
|
|
289
|
+
s(c, { changeImportance: "accept", shortcut: n });
|
|
290
290
|
},
|
|
291
|
-
disabled: !
|
|
291
|
+
disabled: !l(c)
|
|
292
292
|
};
|
|
293
293
|
});
|
|
294
|
-
return /* @__PURE__ */ a(
|
|
294
|
+
return /* @__PURE__ */ a(Q, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ a(Re, { color: "primary", orientation: "vertical", value: i, children: t?.map((n) => /* @__PURE__ */ a(
|
|
295
295
|
xe,
|
|
296
296
|
{
|
|
297
297
|
onClick: n.onClick,
|
|
@@ -305,11 +305,11 @@ const ee = {
|
|
|
305
305
|
boxShadow: "0px 0px 0px 2px rgba(82, 138, 224, 0.8)"
|
|
306
306
|
},
|
|
307
307
|
"&:hover": {
|
|
308
|
-
bgcolor:
|
|
309
|
-
borderTop: `1px solid ${
|
|
308
|
+
bgcolor: r.palette.action.hover,
|
|
309
|
+
borderTop: `1px solid ${r.palette.secondary.light}`
|
|
310
310
|
},
|
|
311
311
|
"&.Mui-selected": {
|
|
312
|
-
border: `2px solid ${
|
|
312
|
+
border: `2px solid ${r.palette.primary.main} !important`,
|
|
313
313
|
marginTop: "-2px !important",
|
|
314
314
|
color: "primary"
|
|
315
315
|
}
|
|
@@ -322,38 +322,38 @@ const ee = {
|
|
|
322
322
|
}, Be = ({
|
|
323
323
|
items: e,
|
|
324
324
|
selected: i,
|
|
325
|
-
selectLabel:
|
|
325
|
+
selectLabel: r
|
|
326
326
|
}) => {
|
|
327
|
-
const { setValue:
|
|
328
|
-
const c = n.getValue({ isValid:
|
|
327
|
+
const { setValue: s } = j(), l = Z(), t = e?.map((n) => {
|
|
328
|
+
const c = n.getValue({ isValid: l });
|
|
329
329
|
return {
|
|
330
330
|
label: n.label,
|
|
331
331
|
onClick: () => {
|
|
332
|
-
|
|
332
|
+
s(c, { changeImportance: "accept", shortcut: n });
|
|
333
333
|
},
|
|
334
|
-
disabled: !
|
|
334
|
+
disabled: !l(c)
|
|
335
335
|
};
|
|
336
336
|
});
|
|
337
337
|
return /* @__PURE__ */ a(A, { sx: { py: 16 }, children: /* @__PURE__ */ a(
|
|
338
|
-
|
|
338
|
+
J,
|
|
339
339
|
{
|
|
340
340
|
defaultValue: i,
|
|
341
341
|
id: "select",
|
|
342
|
-
label:
|
|
342
|
+
label: r,
|
|
343
343
|
select: !0,
|
|
344
344
|
slotProps: { inputLabel: { shrink: !0 }, select: { IconComponent: se } },
|
|
345
345
|
sx: { width: "100%" },
|
|
346
346
|
value: i,
|
|
347
347
|
variant: "outlined",
|
|
348
|
-
children:
|
|
348
|
+
children: t?.map((n) => /* @__PURE__ */ a(Me, { onClick: n.onClick, value: n.label, children: n.label }, n.label))
|
|
349
349
|
}
|
|
350
350
|
) });
|
|
351
351
|
}, ze = (e) => {
|
|
352
|
-
const { toolbar: i, content:
|
|
352
|
+
const { toolbar: i, content: r, shortcuts: s, ownerState: l } = Ce(e);
|
|
353
353
|
return /* @__PURE__ */ b(
|
|
354
354
|
Se,
|
|
355
355
|
{
|
|
356
|
-
ownerState:
|
|
356
|
+
ownerState: l,
|
|
357
357
|
sx: {
|
|
358
358
|
gridTemplateColumns: "minmax(320px, 1fr)",
|
|
359
359
|
overflow: "auto",
|
|
@@ -370,15 +370,15 @@ const ee = {
|
|
|
370
370
|
},
|
|
371
371
|
children: [
|
|
372
372
|
/* @__PURE__ */ b(A, { sx: { gridColumn: 1, gridRow: 1, p: 16 }, children: [
|
|
373
|
-
|
|
373
|
+
s,
|
|
374
374
|
i
|
|
375
375
|
] }),
|
|
376
376
|
/* @__PURE__ */ a(
|
|
377
377
|
Ae,
|
|
378
378
|
{
|
|
379
379
|
className: D.contentWrapper,
|
|
380
|
-
ownerState:
|
|
381
|
-
children:
|
|
380
|
+
ownerState: l,
|
|
381
|
+
children: r
|
|
382
382
|
}
|
|
383
383
|
)
|
|
384
384
|
]
|
|
@@ -387,48 +387,48 @@ const ee = {
|
|
|
387
387
|
}, Lt = ({
|
|
388
388
|
copy: e,
|
|
389
389
|
dateRange: i,
|
|
390
|
-
onRangeChanged:
|
|
391
|
-
selectedShortcut:
|
|
392
|
-
sx:
|
|
390
|
+
onRangeChanged: r,
|
|
391
|
+
selectedShortcut: s = e.dateRangeThisMonth,
|
|
392
|
+
sx: l = {}
|
|
393
393
|
}) => {
|
|
394
|
-
const
|
|
395
|
-
const
|
|
394
|
+
const t = E(), n = ge(t.breakpoints.down("sm")), c = H.useMemo(() => {
|
|
395
|
+
const o = pe(), p = ue(o, 1), T = he(o, 1);
|
|
396
396
|
return [
|
|
397
397
|
{
|
|
398
398
|
label: e.dateRangeThisMonth,
|
|
399
|
-
getValue: () => [
|
|
399
|
+
getValue: () => [V(o), U(o)]
|
|
400
400
|
},
|
|
401
401
|
{
|
|
402
402
|
label: e.dateRangeLastMonth,
|
|
403
|
-
getValue: () => [
|
|
403
|
+
getValue: () => [V(p), U(p)]
|
|
404
404
|
},
|
|
405
405
|
{
|
|
406
406
|
label: e.dateRangeLast30Days,
|
|
407
|
-
getValue: () => [
|
|
407
|
+
getValue: () => [W(o, 30), o]
|
|
408
408
|
},
|
|
409
409
|
{
|
|
410
410
|
label: e.dateRangeLast90Days,
|
|
411
|
-
getValue: () => [
|
|
411
|
+
getValue: () => [W(o, 90), o]
|
|
412
412
|
},
|
|
413
413
|
{
|
|
414
414
|
label: e.dateRangeYTD,
|
|
415
|
-
getValue: () => [
|
|
415
|
+
getValue: () => [G(o), o]
|
|
416
416
|
},
|
|
417
417
|
{
|
|
418
418
|
label: e.dateRangeLastYear,
|
|
419
|
-
getValue: () => [
|
|
419
|
+
getValue: () => [G(T), de(T)]
|
|
420
420
|
},
|
|
421
421
|
{
|
|
422
422
|
label: e.dateRangeCustom,
|
|
423
|
-
getValue: () => [
|
|
423
|
+
getValue: () => [o, o]
|
|
424
424
|
}
|
|
425
425
|
];
|
|
426
|
-
}, [e]), d = (
|
|
427
|
-
const T =
|
|
428
|
-
|
|
426
|
+
}, [e]), d = (o, p) => {
|
|
427
|
+
const T = p.shortcut;
|
|
428
|
+
r?.(o, T ? T.label : e.dateRangeCustom);
|
|
429
429
|
};
|
|
430
|
-
return /* @__PURE__ */ a(A, { gap: n ? 0 : 16, m: n ? 0 : 8, children: /* @__PURE__ */ a(
|
|
431
|
-
|
|
430
|
+
return /* @__PURE__ */ a(A, { gap: n ? 0 : 16, m: n ? 0 : 8, children: /* @__PURE__ */ a(fe, { dateAdapter: be, children: /* @__PURE__ */ a(
|
|
431
|
+
me,
|
|
432
432
|
{
|
|
433
433
|
calendars: 1,
|
|
434
434
|
localeText: {
|
|
@@ -450,25 +450,25 @@ const ee = {
|
|
|
450
450
|
slots: {
|
|
451
451
|
...n && { layout: ze },
|
|
452
452
|
leftArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_left", size: 28 }),
|
|
453
|
-
shortcuts: (
|
|
453
|
+
shortcuts: (o) => n ? /* @__PURE__ */ a(
|
|
454
454
|
Be,
|
|
455
455
|
{
|
|
456
456
|
selectLabel: e.dateRangeSelectARange,
|
|
457
|
-
selected:
|
|
458
|
-
...
|
|
457
|
+
selected: s,
|
|
458
|
+
...o
|
|
459
459
|
}
|
|
460
|
-
) : /* @__PURE__ */ a(_e, { selected:
|
|
460
|
+
) : /* @__PURE__ */ a(_e, { selected: s, ...o }),
|
|
461
461
|
rightArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_right", size: 28 }),
|
|
462
462
|
...n && {
|
|
463
|
-
toolbar: (
|
|
463
|
+
toolbar: (o) => /* @__PURE__ */ a(
|
|
464
464
|
Te,
|
|
465
465
|
{
|
|
466
466
|
dateSeparator: "",
|
|
467
467
|
format: "MM/dd/yyyy",
|
|
468
|
-
...
|
|
468
|
+
...o,
|
|
469
469
|
slotProps: {
|
|
470
|
-
textField: ({ position:
|
|
471
|
-
label:
|
|
470
|
+
textField: ({ position: p }) => ({
|
|
471
|
+
label: p === "start" ? e.dateRangeFrom : e.dateRangeTo
|
|
472
472
|
})
|
|
473
473
|
},
|
|
474
474
|
sx: { gap: 8 }
|
|
@@ -476,19 +476,19 @@ const ee = {
|
|
|
476
476
|
)
|
|
477
477
|
}
|
|
478
478
|
},
|
|
479
|
-
sx: { ...
|
|
479
|
+
sx: { ...l },
|
|
480
480
|
value: i
|
|
481
481
|
}
|
|
482
482
|
) }) });
|
|
483
|
-
}, kt = H.forwardRef(function(i,
|
|
484
|
-
return /* @__PURE__ */ a(
|
|
483
|
+
}, kt = H.forwardRef(function(i, r) {
|
|
484
|
+
return /* @__PURE__ */ a(q, { direction: "up", ref: r, ...i });
|
|
485
485
|
}), $e = ({
|
|
486
486
|
hasSecondaryAction: e = !0,
|
|
487
487
|
isPrimaryDisabled: i,
|
|
488
|
-
onPrimaryAction:
|
|
489
|
-
onSecondaryAction:
|
|
490
|
-
primaryColor:
|
|
491
|
-
primaryText:
|
|
488
|
+
onPrimaryAction: r,
|
|
489
|
+
onSecondaryAction: s,
|
|
490
|
+
primaryColor: l = "primary",
|
|
491
|
+
primaryText: t = "Save",
|
|
492
492
|
secondaryColor: n = "primary",
|
|
493
493
|
secondaryText: c = "Cancel"
|
|
494
494
|
}) => /* @__PURE__ */ b(
|
|
@@ -503,19 +503,19 @@ const ee = {
|
|
|
503
503
|
B,
|
|
504
504
|
{
|
|
505
505
|
color: n,
|
|
506
|
-
onClick:
|
|
507
|
-
variant:
|
|
506
|
+
onClick: s,
|
|
507
|
+
variant: r ? "outlined" : "contained",
|
|
508
508
|
children: c
|
|
509
509
|
}
|
|
510
510
|
),
|
|
511
|
-
|
|
511
|
+
r && /* @__PURE__ */ a(
|
|
512
512
|
B,
|
|
513
513
|
{
|
|
514
|
-
color:
|
|
514
|
+
color: l,
|
|
515
515
|
disabled: i,
|
|
516
|
-
onClick:
|
|
516
|
+
onClick: r,
|
|
517
517
|
variant: "contained",
|
|
518
|
-
children:
|
|
518
|
+
children: t
|
|
519
519
|
}
|
|
520
520
|
)
|
|
521
521
|
]
|
|
@@ -523,22 +523,22 @@ const ee = {
|
|
|
523
523
|
), F = ({
|
|
524
524
|
bold: e,
|
|
525
525
|
className: i = "",
|
|
526
|
-
children:
|
|
527
|
-
color:
|
|
528
|
-
sx:
|
|
529
|
-
truncate:
|
|
526
|
+
children: r,
|
|
527
|
+
color: s,
|
|
528
|
+
sx: l = {},
|
|
529
|
+
truncate: t,
|
|
530
530
|
uppercase: n,
|
|
531
531
|
...c
|
|
532
532
|
}) => /* @__PURE__ */ a(
|
|
533
|
-
|
|
533
|
+
Ie,
|
|
534
534
|
{
|
|
535
535
|
className: `mx-kmui-text ${i}`,
|
|
536
|
-
color:
|
|
536
|
+
color: s,
|
|
537
537
|
sx: [
|
|
538
538
|
e ? {
|
|
539
539
|
fontWeight: 600
|
|
540
540
|
} : {},
|
|
541
|
-
|
|
541
|
+
t ? {
|
|
542
542
|
overflow: "hidden",
|
|
543
543
|
textOverflow: "ellipsis",
|
|
544
544
|
whiteSpace: "nowrap"
|
|
@@ -546,12 +546,12 @@ const ee = {
|
|
|
546
546
|
n ? {
|
|
547
547
|
textTransform: "uppercase"
|
|
548
548
|
} : {},
|
|
549
|
-
...Array.isArray(
|
|
549
|
+
...Array.isArray(l) ? l : [l]
|
|
550
550
|
],
|
|
551
551
|
...c,
|
|
552
|
-
children:
|
|
552
|
+
children: r
|
|
553
553
|
}
|
|
554
|
-
), Ue = ({ className: e = "", children: i, ...
|
|
554
|
+
), Ue = ({ className: e = "", children: i, ...r }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h1 ${e}`, component: "h1", variant: "h1", ...r, children: i }), Dt = ({ className: e = "", children: i, ...r }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h2 ${e}`, component: "h2", variant: "h2", ...r, children: i }), wt = ({ className: e = "", children: i, ...r }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h3 ${e}`, component: "h3", variant: "h3", ...r, children: i }), Pt = ({ className: e = "", children: i, ...r }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text p ${e}`, component: "p", variant: "body1", ...r, children: i }), _t = ({ copy: e, onClose: i }) => /* @__PURE__ */ b(
|
|
555
555
|
A,
|
|
556
556
|
{
|
|
557
557
|
sx: {
|
|
@@ -563,143 +563,143 @@ const ee = {
|
|
|
563
563
|
},
|
|
564
564
|
children: [
|
|
565
565
|
/* @__PURE__ */ a(Ue, { variant: "h3", children: e.title }),
|
|
566
|
-
/* @__PURE__ */ a(
|
|
566
|
+
/* @__PURE__ */ a(ee, { "aria-label": e.close_aria, onClick: i, sx: { mr: -12 }, children: /* @__PURE__ */ a(ce, {}) })
|
|
567
567
|
]
|
|
568
568
|
}
|
|
569
569
|
), Bt = ({
|
|
570
570
|
className: e,
|
|
571
571
|
disableSave: i,
|
|
572
|
-
id:
|
|
573
|
-
isOpen:
|
|
574
|
-
onClose:
|
|
575
|
-
onSave:
|
|
572
|
+
id: r,
|
|
573
|
+
isOpen: s,
|
|
574
|
+
onClose: l,
|
|
575
|
+
onSave: t,
|
|
576
576
|
primaryText: n,
|
|
577
577
|
secondaryText: c,
|
|
578
578
|
children: d,
|
|
579
|
-
...
|
|
579
|
+
...o
|
|
580
580
|
}) => /* @__PURE__ */ b(
|
|
581
|
-
|
|
581
|
+
ye,
|
|
582
582
|
{
|
|
583
583
|
anchor: "right",
|
|
584
584
|
className: `mx-kmui-drawer ${e}`,
|
|
585
|
-
id:
|
|
586
|
-
onClose:
|
|
587
|
-
open:
|
|
585
|
+
id: r ?? void 0,
|
|
586
|
+
onClose: l,
|
|
587
|
+
open: s,
|
|
588
588
|
variant: "temporary",
|
|
589
|
-
...
|
|
589
|
+
...o,
|
|
590
590
|
children: [
|
|
591
591
|
d,
|
|
592
|
-
|
|
592
|
+
t && /* @__PURE__ */ a(
|
|
593
593
|
$e,
|
|
594
594
|
{
|
|
595
595
|
isPrimaryDisabled: i,
|
|
596
|
-
onPrimaryAction:
|
|
597
|
-
onSecondaryAction:
|
|
596
|
+
onPrimaryAction: t,
|
|
597
|
+
onSecondaryAction: l,
|
|
598
598
|
primaryText: n,
|
|
599
599
|
secondaryText: c
|
|
600
600
|
}
|
|
601
601
|
)
|
|
602
602
|
]
|
|
603
603
|
}
|
|
604
|
-
),
|
|
604
|
+
), oe = 32, z = "https://content.moneydesktop.com/storage/MD_Assets", K = `${z}/serenity/default_institution_logo.png`, zt = ({
|
|
605
605
|
alt: e,
|
|
606
606
|
institutionGuid: i,
|
|
607
|
-
logoUrl:
|
|
608
|
-
size:
|
|
609
|
-
...
|
|
607
|
+
logoUrl: r,
|
|
608
|
+
size: s = oe,
|
|
609
|
+
...l
|
|
610
610
|
}) => /* @__PURE__ */ a(
|
|
611
611
|
"img",
|
|
612
612
|
{
|
|
613
613
|
alt: e,
|
|
614
|
-
height:
|
|
615
|
-
onError: (
|
|
616
|
-
const n =
|
|
617
|
-
n.src !==
|
|
614
|
+
height: s,
|
|
615
|
+
onError: (t) => {
|
|
616
|
+
const n = t.target;
|
|
617
|
+
n.src !== K && (n.src = K);
|
|
618
618
|
},
|
|
619
|
-
src:
|
|
619
|
+
src: r || `${z}/Ipad%20Logos/100x100/${i}_100x100.png`,
|
|
620
620
|
style: {
|
|
621
621
|
borderRadius: 4
|
|
622
622
|
},
|
|
623
|
-
width:
|
|
624
|
-
...
|
|
623
|
+
width: s,
|
|
624
|
+
...l
|
|
625
625
|
}
|
|
626
626
|
), $t = ({
|
|
627
627
|
alt: e = "",
|
|
628
628
|
categoryGuid: i,
|
|
629
|
-
merchantGuid:
|
|
630
|
-
size:
|
|
631
|
-
...
|
|
629
|
+
merchantGuid: r,
|
|
630
|
+
size: s = oe,
|
|
631
|
+
...l
|
|
632
632
|
}) => {
|
|
633
|
-
const [
|
|
634
|
-
return /* @__PURE__ */ b(
|
|
635
|
-
|
|
633
|
+
const [t, n] = H.useState(!1), c = E();
|
|
634
|
+
return /* @__PURE__ */ b(Q, { display: "inline-block", position: "relative", ...l, children: [
|
|
635
|
+
r && !t && /* @__PURE__ */ a(
|
|
636
636
|
"img",
|
|
637
637
|
{
|
|
638
638
|
alt: e,
|
|
639
639
|
"aria-hidden": !e,
|
|
640
|
-
height:
|
|
640
|
+
height: s,
|
|
641
641
|
onError: () => n(!0),
|
|
642
|
-
src: `${z}/merchant_logos/${
|
|
642
|
+
src: `${z}/merchant_logos/${r}.png`,
|
|
643
643
|
style: {
|
|
644
644
|
backgroundColor: c.palette.common.white,
|
|
645
645
|
borderRadius: 4,
|
|
646
646
|
boxSizing: "border-box",
|
|
647
647
|
position: "absolute"
|
|
648
648
|
},
|
|
649
|
-
width:
|
|
649
|
+
width: s
|
|
650
650
|
}
|
|
651
651
|
),
|
|
652
|
-
/* @__PURE__ */ a(Pe, { categoryGuid: i, size:
|
|
652
|
+
/* @__PURE__ */ a(Pe, { categoryGuid: i, size: s })
|
|
653
653
|
] });
|
|
654
654
|
}, Ut = ({
|
|
655
655
|
disabled: e = !1,
|
|
656
656
|
label: i = "",
|
|
657
|
-
shrink:
|
|
658
|
-
variant:
|
|
659
|
-
...
|
|
657
|
+
shrink: r = !0,
|
|
658
|
+
variant: s = "outlined",
|
|
659
|
+
...l
|
|
660
660
|
}) => /* @__PURE__ */ a(
|
|
661
|
-
|
|
661
|
+
J,
|
|
662
662
|
{
|
|
663
663
|
InputLabelProps: {
|
|
664
|
-
shrink:
|
|
664
|
+
shrink: r
|
|
665
665
|
},
|
|
666
666
|
disabled: e,
|
|
667
667
|
label: i,
|
|
668
|
-
variant:
|
|
669
|
-
...
|
|
668
|
+
variant: s,
|
|
669
|
+
...l
|
|
670
670
|
}
|
|
671
671
|
);
|
|
672
672
|
function Ve(e) {
|
|
673
|
-
return /* @__PURE__ */ a(
|
|
673
|
+
return /* @__PURE__ */ a(q, { ...e, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
|
|
674
674
|
}
|
|
675
675
|
const Vt = ({
|
|
676
676
|
open: e,
|
|
677
677
|
handleClose: i,
|
|
678
|
-
message:
|
|
679
|
-
autoHideDuration:
|
|
680
|
-
severity:
|
|
681
|
-
snackbarSx:
|
|
678
|
+
message: r,
|
|
679
|
+
autoHideDuration: s = 3e3,
|
|
680
|
+
severity: l = "success",
|
|
681
|
+
snackbarSx: t,
|
|
682
682
|
showAction: n = !1,
|
|
683
683
|
showClose: c = !1,
|
|
684
684
|
actionText: d = "Undo",
|
|
685
|
-
onActionClick:
|
|
686
|
-
multiLine:
|
|
685
|
+
onActionClick: o,
|
|
686
|
+
multiLine: p = !1
|
|
687
687
|
}) => {
|
|
688
688
|
const T = E(), v = /* @__PURE__ */ b(
|
|
689
689
|
A,
|
|
690
690
|
{
|
|
691
|
-
alignItems:
|
|
692
|
-
direction:
|
|
691
|
+
alignItems: p ? "flex-end" : "center",
|
|
692
|
+
direction: p ? "column-reverse" : "row",
|
|
693
693
|
justifyContent: (
|
|
694
694
|
// eslint-disable-next-line no-nested-ternary
|
|
695
|
-
|
|
695
|
+
p && n && c ? "space-between" : "flex-end"
|
|
696
696
|
),
|
|
697
697
|
children: [
|
|
698
698
|
n && /* @__PURE__ */ a(
|
|
699
699
|
B,
|
|
700
700
|
{
|
|
701
701
|
color: "inherit",
|
|
702
|
-
onClick:
|
|
702
|
+
onClick: o || i,
|
|
703
703
|
size: "small",
|
|
704
704
|
sx: {
|
|
705
705
|
color: T.palette.success.contrastText,
|
|
@@ -709,7 +709,7 @@ const Vt = ({
|
|
|
709
709
|
}
|
|
710
710
|
),
|
|
711
711
|
c && /* @__PURE__ */ a(
|
|
712
|
-
|
|
712
|
+
ee,
|
|
713
713
|
{
|
|
714
714
|
"aria-label": "close",
|
|
715
715
|
color: "inherit",
|
|
@@ -726,31 +726,31 @@ const Vt = ({
|
|
|
726
726
|
{
|
|
727
727
|
TransitionComponent: Ve,
|
|
728
728
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
729
|
-
autoHideDuration:
|
|
729
|
+
autoHideDuration: s,
|
|
730
730
|
onClose: i,
|
|
731
731
|
open: e,
|
|
732
732
|
sx: {
|
|
733
|
-
...
|
|
734
|
-
width:
|
|
733
|
+
...t,
|
|
734
|
+
width: p ? 400 : 325
|
|
735
735
|
},
|
|
736
736
|
children: /* @__PURE__ */ a(
|
|
737
737
|
Oe,
|
|
738
738
|
{
|
|
739
739
|
action: v,
|
|
740
|
-
severity:
|
|
740
|
+
severity: l,
|
|
741
741
|
sx: {
|
|
742
742
|
display: "flex",
|
|
743
743
|
alignItems: "stretch",
|
|
744
|
-
minHeight: c && n &&
|
|
745
|
-
maxHeight:
|
|
744
|
+
minHeight: c && n && p ? 120 : 56,
|
|
745
|
+
maxHeight: p ? 120 : 56,
|
|
746
746
|
width: "100%",
|
|
747
747
|
"& .MuiAlert-icon": {
|
|
748
|
-
alignSelf:
|
|
748
|
+
alignSelf: p ? "flex-start" : "center"
|
|
749
749
|
},
|
|
750
750
|
"& .MuiAlert-message": {
|
|
751
|
-
paddingTop:
|
|
752
|
-
paddingBottom:
|
|
753
|
-
alignSelf:
|
|
751
|
+
paddingTop: p ? 12 : 8,
|
|
752
|
+
paddingBottom: p ? 12 : 8,
|
|
753
|
+
alignSelf: p ? "flex-start" : "center"
|
|
754
754
|
},
|
|
755
755
|
"& .MuiAlert-action": {
|
|
756
756
|
alignItems: "stretch",
|
|
@@ -763,12 +763,12 @@ const Vt = ({
|
|
|
763
763
|
{
|
|
764
764
|
sx: {
|
|
765
765
|
lineHeight: T.typography.body1.lineHeight,
|
|
766
|
-
whiteSpace:
|
|
767
|
-
overflow:
|
|
768
|
-
textOverflow:
|
|
766
|
+
whiteSpace: p ? "normal" : "nowrap",
|
|
767
|
+
overflow: p ? "visible" : "hidden",
|
|
768
|
+
textOverflow: p ? "clip" : "ellipsis"
|
|
769
769
|
},
|
|
770
|
-
truncate: !
|
|
771
|
-
children:
|
|
770
|
+
truncate: !p,
|
|
771
|
+
children: r
|
|
772
772
|
}
|
|
773
773
|
)
|
|
774
774
|
}
|
|
@@ -778,23 +778,23 @@ const Vt = ({
|
|
|
778
778
|
}, Gt = ({
|
|
779
779
|
component: e = P,
|
|
780
780
|
variant: i = "outlined",
|
|
781
|
-
selected:
|
|
782
|
-
onChange:
|
|
783
|
-
headline:
|
|
784
|
-
message:
|
|
781
|
+
selected: r,
|
|
782
|
+
onChange: s,
|
|
783
|
+
headline: l,
|
|
784
|
+
message: t,
|
|
785
785
|
name: n,
|
|
786
786
|
value: c,
|
|
787
787
|
disabled: d = !1,
|
|
788
|
-
error:
|
|
789
|
-
icon:
|
|
788
|
+
error: o = !1,
|
|
789
|
+
icon: p = !1,
|
|
790
790
|
sx: T = {},
|
|
791
791
|
...v
|
|
792
792
|
}) => {
|
|
793
|
-
const
|
|
793
|
+
const f = E(), re = () => f.palette.background.paper, k = () => o ? `inset 0px 0px 0px 2px ${f.palette.error.main}` : d ? 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], ie = () => d || o ? f.palette.background.paper : m(f.palette.primary.main, 0.1), ae = () => d || o ? k() : 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)}` : k(), ne = () => d || o ? f.palette.background.paper : m(f.palette.primary.main, 0.3);
|
|
794
794
|
return /* @__PURE__ */ a(
|
|
795
795
|
Fe,
|
|
796
796
|
{
|
|
797
|
-
checked:
|
|
797
|
+
checked: r,
|
|
798
798
|
control: e === P ? /* @__PURE__ */ a(
|
|
799
799
|
P,
|
|
800
800
|
{
|
|
@@ -828,39 +828,39 @@ const Vt = ({
|
|
|
828
828
|
),
|
|
829
829
|
disabled: d,
|
|
830
830
|
label: /* @__PURE__ */ b(w, { sx: { display: "flex", alignItems: "flex-start", width: "100%" }, children: [
|
|
831
|
-
|
|
831
|
+
p && /* @__PURE__ */ a(w, { sx: { mr: 12, mt: "8px", flexShrink: 0 }, children: p }),
|
|
832
832
|
/* @__PURE__ */ b(w, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
|
|
833
|
-
|
|
834
|
-
/* @__PURE__ */ a(
|
|
833
|
+
l && /* @__PURE__ */ a(Y, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: l }),
|
|
834
|
+
/* @__PURE__ */ a(Y, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: t })
|
|
835
835
|
] })
|
|
836
836
|
] }),
|
|
837
837
|
labelPlacement: "start",
|
|
838
|
-
onChange:
|
|
838
|
+
onChange: s,
|
|
839
839
|
sx: {
|
|
840
840
|
display: "flex",
|
|
841
841
|
padding: "6px 16px",
|
|
842
842
|
alignItems: "flex-start",
|
|
843
843
|
justifyContent: "space-between",
|
|
844
|
-
borderRadius:
|
|
844
|
+
borderRadius: f.shape.borderRadius / 2,
|
|
845
845
|
mb: 16,
|
|
846
846
|
cursor: d ? "not-allowed" : "pointer",
|
|
847
847
|
opacity: d ? 0.6 : 1,
|
|
848
|
-
backgroundColor:
|
|
848
|
+
backgroundColor: re(),
|
|
849
849
|
border: "none",
|
|
850
850
|
boxShadow: k(),
|
|
851
851
|
boxSizing: "border-box",
|
|
852
|
-
transition:
|
|
853
|
-
duration:
|
|
852
|
+
transition: f.transitions.create(["background-color", "box-shadow"], {
|
|
853
|
+
duration: f.transitions.duration.short
|
|
854
854
|
}),
|
|
855
855
|
"&:hover": {
|
|
856
|
-
backgroundColor:
|
|
857
|
-
boxShadow:
|
|
856
|
+
backgroundColor: ie(),
|
|
857
|
+
boxShadow: ae()
|
|
858
858
|
},
|
|
859
859
|
"&:active": {
|
|
860
|
-
backgroundColor:
|
|
860
|
+
backgroundColor: ne()
|
|
861
861
|
},
|
|
862
862
|
"&:focus-visible": {
|
|
863
|
-
outline: `2px solid ${
|
|
863
|
+
outline: `2px solid ${f.palette.info.main}`,
|
|
864
864
|
outlineOffset: "2px"
|
|
865
865
|
},
|
|
866
866
|
...T
|
|
@@ -868,7 +868,7 @@ const Vt = ({
|
|
|
868
868
|
value: c
|
|
869
869
|
}
|
|
870
870
|
);
|
|
871
|
-
},
|
|
871
|
+
}, y = {
|
|
872
872
|
LIGHT: "light"
|
|
873
873
|
}, R = (e) => ({
|
|
874
874
|
50: O(e, 0.95),
|
|
@@ -897,14 +897,14 @@ const Vt = ({
|
|
|
897
897
|
CHART5: "#60A9FF",
|
|
898
898
|
CHART6: "#C8BAEE",
|
|
899
899
|
CHART7: "#585E67"
|
|
900
|
-
},
|
|
900
|
+
}, I = {
|
|
901
901
|
CHART_MONO1: "#C3EAFF",
|
|
902
902
|
CHART_MONO2: "#8ED7FF",
|
|
903
903
|
CHART_MONO3: "#60A9FF",
|
|
904
904
|
CHART_MONO4: "#2F73DA",
|
|
905
905
|
CHART_MONO5: "#034AB3",
|
|
906
906
|
CHART_MONO6: "#002966"
|
|
907
|
-
},
|
|
907
|
+
}, u = {
|
|
908
908
|
AUTO_TRANSPORTT: "#00B0FF",
|
|
909
909
|
BILLS_UTILITIES: "#F949BD",
|
|
910
910
|
BUSINESS_SERVICES: "#2979FF",
|
|
@@ -951,7 +951,7 @@ const Vt = ({
|
|
|
951
951
|
TRAVEL: "#76ACF7",
|
|
952
952
|
UNCATEGORIZED: "#BCC6D4"
|
|
953
953
|
}, Xe = (e, i) => {
|
|
954
|
-
const
|
|
954
|
+
const r = R(i?.primary || C.PRIMARY), s = R(i?.secondary || C.SECONDARY), l = R(i?.error || C.ERROR), t = R(i?.warning || C.WARNING), n = R(i?.info || C.INFO), c = R(i?.success || C.SUCCESS), d = R(i?.grey || C.GREY), o = e === y.LIGHT;
|
|
955
955
|
return {
|
|
956
956
|
mode: e,
|
|
957
957
|
common: {
|
|
@@ -959,90 +959,90 @@ const Vt = ({
|
|
|
959
959
|
black: _
|
|
960
960
|
},
|
|
961
961
|
primary: {
|
|
962
|
-
...
|
|
963
|
-
light:
|
|
964
|
-
main:
|
|
965
|
-
dark:
|
|
962
|
+
...r,
|
|
963
|
+
light: o ? r[300] : r[600],
|
|
964
|
+
main: o ? r[500] : r[400],
|
|
965
|
+
dark: o ? r[700] : r[200]
|
|
966
966
|
},
|
|
967
967
|
secondary: {
|
|
968
|
-
...
|
|
969
|
-
light:
|
|
970
|
-
main:
|
|
971
|
-
dark:
|
|
968
|
+
...s,
|
|
969
|
+
light: o ? s[300] : s[600],
|
|
970
|
+
main: o ? s[500] : s[400],
|
|
971
|
+
dark: o ? s[700] : s[200]
|
|
972
972
|
},
|
|
973
973
|
neutral: {
|
|
974
974
|
...d,
|
|
975
|
-
light:
|
|
976
|
-
main:
|
|
977
|
-
dark:
|
|
978
|
-
contrastText: Ne(
|
|
975
|
+
light: o ? d[300] : d[600],
|
|
976
|
+
main: o ? d[500] : d[400],
|
|
977
|
+
dark: o ? d[700] : d[200],
|
|
978
|
+
contrastText: Ne(o ? d[700] : d[400], "#fff") > 4.5 ? M : d[900]
|
|
979
979
|
},
|
|
980
980
|
text: {
|
|
981
|
-
primary:
|
|
982
|
-
secondary:
|
|
983
|
-
disabled:
|
|
981
|
+
primary: o ? d[900] : M,
|
|
982
|
+
secondary: o ? d[600] : m(M, 0.7),
|
|
983
|
+
disabled: o ? d[500] : m(M, 0.38)
|
|
984
984
|
},
|
|
985
985
|
error: {
|
|
986
|
-
...
|
|
987
|
-
light:
|
|
988
|
-
main:
|
|
989
|
-
dark:
|
|
986
|
+
...l,
|
|
987
|
+
light: o ? l[300] : l[600],
|
|
988
|
+
main: o ? l[500] : l[400],
|
|
989
|
+
dark: o ? l[700] : l[200]
|
|
990
990
|
},
|
|
991
991
|
warning: {
|
|
992
|
-
...
|
|
993
|
-
light:
|
|
994
|
-
main:
|
|
995
|
-
dark:
|
|
992
|
+
...t,
|
|
993
|
+
light: o ? t[300] : t[600],
|
|
994
|
+
main: o ? t[500] : t[400],
|
|
995
|
+
dark: o ? t[700] : t[200]
|
|
996
996
|
},
|
|
997
997
|
info: {
|
|
998
998
|
...n,
|
|
999
|
-
light:
|
|
1000
|
-
main:
|
|
1001
|
-
dark:
|
|
999
|
+
light: o ? n[300] : n[600],
|
|
1000
|
+
main: o ? n[500] : n[400],
|
|
1001
|
+
dark: o ? n[700] : n[200]
|
|
1002
1002
|
},
|
|
1003
1003
|
success: {
|
|
1004
1004
|
...c,
|
|
1005
|
-
light:
|
|
1006
|
-
main:
|
|
1007
|
-
dark:
|
|
1005
|
+
light: o ? c[300] : c[600],
|
|
1006
|
+
main: o ? c[500] : c[400],
|
|
1007
|
+
dark: o ? c[700] : c[200]
|
|
1008
1008
|
},
|
|
1009
1009
|
grey: d,
|
|
1010
1010
|
action: {
|
|
1011
|
-
active:
|
|
1012
|
-
hoverOpacity:
|
|
1013
|
-
selectedOpacity:
|
|
1011
|
+
active: o ? m(_, 0.56) : m(M, 0.56),
|
|
1012
|
+
hoverOpacity: o ? 0.1 : 0.2,
|
|
1013
|
+
selectedOpacity: o ? 0.16 : 0.25,
|
|
1014
1014
|
focusOpacity: 0.3
|
|
1015
1015
|
},
|
|
1016
1016
|
background: {
|
|
1017
|
-
default:
|
|
1018
|
-
paper:
|
|
1019
|
-
highlight:
|
|
1020
|
-
highlightPrimary:
|
|
1017
|
+
default: o ? i?.background?.default?.light || Ge : i?.background?.default?.dark || We,
|
|
1018
|
+
paper: o ? i?.background?.paper?.light || Ye : i?.background?.paper?.dark || Ke,
|
|
1019
|
+
highlight: o ? d[200] : d[600],
|
|
1020
|
+
highlightPrimary: o ? r[100] : r[500]
|
|
1021
1021
|
},
|
|
1022
|
-
divider:
|
|
1022
|
+
divider: o ? m(_, 0.12) : m(M, 0.24),
|
|
1023
1023
|
categories: {
|
|
1024
|
-
autoTransport:
|
|
1025
|
-
billsUtilities:
|
|
1026
|
-
businessServices:
|
|
1027
|
-
education:
|
|
1028
|
-
entertainment:
|
|
1029
|
-
feesCharges:
|
|
1030
|
-
financial:
|
|
1031
|
-
foodDining:
|
|
1032
|
-
giftsDonations:
|
|
1033
|
-
healthFitness:
|
|
1034
|
-
home:
|
|
1035
|
-
income:
|
|
1036
|
-
investments:
|
|
1037
|
-
kids:
|
|
1038
|
-
others:
|
|
1039
|
-
personalCare:
|
|
1040
|
-
pets:
|
|
1041
|
-
shopping:
|
|
1042
|
-
taxes:
|
|
1043
|
-
transfer:
|
|
1044
|
-
travel:
|
|
1045
|
-
uncategorized:
|
|
1024
|
+
autoTransport: o ? u.AUTO_TRANSPORTT : h.AUTO_TRANSPORTT,
|
|
1025
|
+
billsUtilities: o ? u.BILLS_UTILITIES : h.BILLS_UTILITIES,
|
|
1026
|
+
businessServices: o ? u.BUSINESS_SERVICES : h.BUSINESS_SERVICES,
|
|
1027
|
+
education: o ? u.EDUCATION : h.EDUCATION,
|
|
1028
|
+
entertainment: o ? u.ENTERTAINMENT : h.ENTERTAINMENT,
|
|
1029
|
+
feesCharges: o ? u.FEES_CHARGES : h.FEES_CHARGES,
|
|
1030
|
+
financial: o ? u.FINANCIAL : h.FINANCIAL,
|
|
1031
|
+
foodDining: o ? u.FOOD_DINING : h.FOOD_DINING,
|
|
1032
|
+
giftsDonations: o ? u.GIFTS_DONATIONS : h.GIFTS_DONATIONS,
|
|
1033
|
+
healthFitness: o ? u.HEALTH_FITNESS : h.HEALTH_FITNESS,
|
|
1034
|
+
home: o ? u.HOME : h.HOME,
|
|
1035
|
+
income: o ? u.INCOME : h.INCOME,
|
|
1036
|
+
investments: o ? u.INVESTMENTS : h.INVESTMENTS,
|
|
1037
|
+
kids: o ? u.KIDS : h.KIDS,
|
|
1038
|
+
others: o ? u.OTHERS : h.OTHERS,
|
|
1039
|
+
personalCare: o ? u.PERSONAL_CARE : h.PERSONAL_CARE,
|
|
1040
|
+
pets: o ? u.PETS : h.PETS,
|
|
1041
|
+
shopping: o ? u.SHOPPING : h.SHOPPING,
|
|
1042
|
+
taxes: o ? u.TAXES : h.TAXES,
|
|
1043
|
+
transfer: o ? u.TRANSFER : h.TRANSFER,
|
|
1044
|
+
travel: o ? u.TRAVEL : h.TRAVEL,
|
|
1045
|
+
uncategorized: o ? u.UNCATEGORIZED : h.UNCATEGORIZED
|
|
1046
1046
|
},
|
|
1047
1047
|
chart: {
|
|
1048
1048
|
chart1: S.CHART1,
|
|
@@ -1054,16 +1054,16 @@ const Vt = ({
|
|
|
1054
1054
|
chart7: S.CHART7
|
|
1055
1055
|
},
|
|
1056
1056
|
chartMono: {
|
|
1057
|
-
chartMono1:
|
|
1058
|
-
chartMono2:
|
|
1059
|
-
chartMono3:
|
|
1060
|
-
chartMono4:
|
|
1061
|
-
chartMono5:
|
|
1062
|
-
chartMono6:
|
|
1057
|
+
chartMono1: I.CHART_MONO1,
|
|
1058
|
+
chartMono2: I.CHART_MONO2,
|
|
1059
|
+
chartMono3: I.CHART_MONO3,
|
|
1060
|
+
chartMono4: I.CHART_MONO4,
|
|
1061
|
+
chartMono5: I.CHART_MONO5,
|
|
1062
|
+
chartMono6: I.CHART_MONO6
|
|
1063
1063
|
}
|
|
1064
1064
|
};
|
|
1065
|
-
},
|
|
1066
|
-
const i = e?.fontFamily ? `${e?.fontFamily}, ${
|
|
1065
|
+
}, X = "Inter, Helvetica, Arial, sans-serif", je = (e) => {
|
|
1066
|
+
const i = e?.fontFamily ? `${e?.fontFamily}, ${X}` : X;
|
|
1067
1067
|
return {
|
|
1068
1068
|
fontFamily: i,
|
|
1069
1069
|
fontSize: 15,
|
|
@@ -1126,8 +1126,8 @@ Le.setLicenseKey(
|
|
|
1126
1126
|
"702b0c04dc7df078768d2d45cd3a98c6Tz0xMjEzMDYsRT0xNzkzNzUwMzk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
|
|
1127
1127
|
);
|
|
1128
1128
|
const Wt = (e, i) => {
|
|
1129
|
-
const
|
|
1130
|
-
return
|
|
1129
|
+
const r = Xe(e, i?.paletteOptions), s = je(i?.typographyOptions), l = [...$().shadows];
|
|
1130
|
+
return l[1] = "0px 2px 8px 0 rgba(0, 0, 0, 0.12)", l[8] = "0px 6px 12px 0 rgba(0, 0, 0, 0.16), 0px 3px 8px 0 rgba(0, 0, 0, 0.06)", l[16] = "0px 12px 20px 0 rgba(0, 0, 0, 0.22)", $({
|
|
1131
1131
|
breakpoints: {
|
|
1132
1132
|
values: {
|
|
1133
1133
|
xs: 444,
|
|
@@ -1138,13 +1138,14 @@ const Wt = (e, i) => {
|
|
|
1138
1138
|
}
|
|
1139
1139
|
},
|
|
1140
1140
|
cssVariables: !0,
|
|
1141
|
-
palette:
|
|
1141
|
+
palette: r,
|
|
1142
1142
|
shape: {
|
|
1143
1143
|
borderRadius: i?.shapeOptions?.borderRadius || 4
|
|
1144
1144
|
},
|
|
1145
|
+
shadows: l,
|
|
1145
1146
|
spacing: 1,
|
|
1146
1147
|
// TODO: update spacing, we're back to a 8-base which is default for MUI 2.x
|
|
1147
|
-
typography:
|
|
1148
|
+
typography: s,
|
|
1148
1149
|
components: {
|
|
1149
1150
|
MuiAlert: {
|
|
1150
1151
|
defaultProps: {
|
|
@@ -1157,15 +1158,15 @@ const Wt = (e, i) => {
|
|
|
1157
1158
|
variant: "outlined"
|
|
1158
1159
|
},
|
|
1159
1160
|
styleOverrides: {
|
|
1160
|
-
root: ({ theme: t, ownerState:
|
|
1161
|
-
const
|
|
1162
|
-
let
|
|
1163
|
-
if (
|
|
1164
|
-
const
|
|
1165
|
-
|
|
1161
|
+
root: ({ theme: t, ownerState: n }) => {
|
|
1162
|
+
const c = n.severity || "info";
|
|
1163
|
+
let d = t.palette.mode === y.LIGHT ? t.palette[c]?.[50] : t.palette[c]?.[800];
|
|
1164
|
+
if (n.variant === "filled") {
|
|
1165
|
+
const o = c === "warning";
|
|
1166
|
+
d = t.palette[c]?.[o ? 400 : 600];
|
|
1166
1167
|
}
|
|
1167
1168
|
return {
|
|
1168
|
-
backgroundColor:
|
|
1169
|
+
backgroundColor: d,
|
|
1169
1170
|
borderRadius: t.shape.borderRadius,
|
|
1170
1171
|
"& .MuiAlert-message": {
|
|
1171
1172
|
fontSize: t.typography.subtitle1.fontSize,
|
|
@@ -1239,7 +1240,7 @@ const Wt = (e, i) => {
|
|
|
1239
1240
|
styleOverrides: {
|
|
1240
1241
|
root: {
|
|
1241
1242
|
"&.Mui-focusVisible": {
|
|
1242
|
-
boxShadow: `inset 0 0 0 2px ${
|
|
1243
|
+
boxShadow: `inset 0 0 0 2px ${r.info.main}`
|
|
1243
1244
|
}
|
|
1244
1245
|
}
|
|
1245
1246
|
}
|
|
@@ -1401,7 +1402,7 @@ const Wt = (e, i) => {
|
|
|
1401
1402
|
MuiFormLabel: {
|
|
1402
1403
|
styleOverrides: {
|
|
1403
1404
|
asterisk: {
|
|
1404
|
-
color:
|
|
1405
|
+
color: r.error.main
|
|
1405
1406
|
}
|
|
1406
1407
|
}
|
|
1407
1408
|
},
|
|
@@ -1449,13 +1450,13 @@ const Wt = (e, i) => {
|
|
|
1449
1450
|
borderRadius: 4
|
|
1450
1451
|
},
|
|
1451
1452
|
colorPrimary: {
|
|
1452
|
-
backgroundColor:
|
|
1453
|
+
backgroundColor: r.grey[300]
|
|
1453
1454
|
}
|
|
1454
1455
|
}
|
|
1455
1456
|
},
|
|
1456
1457
|
MuiLink: {
|
|
1457
1458
|
styleOverrides: {
|
|
1458
|
-
root: ({ theme: t, color:
|
|
1459
|
+
root: ({ theme: t, color: n }) => ({
|
|
1459
1460
|
cursor: "pointer",
|
|
1460
1461
|
fontWeight: 600,
|
|
1461
1462
|
textDecoration: "none",
|
|
@@ -1470,7 +1471,7 @@ const Wt = (e, i) => {
|
|
|
1470
1471
|
backgroundColor: t.palette.action.hover
|
|
1471
1472
|
},
|
|
1472
1473
|
"&:active": {
|
|
1473
|
-
backgroundColor: t.palette.mode ===
|
|
1474
|
+
backgroundColor: t.palette.mode === y.LIGHT ? t.palette[n].light : t.palette[n].dark
|
|
1474
1475
|
}
|
|
1475
1476
|
})
|
|
1476
1477
|
}
|
|
@@ -1555,7 +1556,7 @@ const Wt = (e, i) => {
|
|
|
1555
1556
|
},
|
|
1556
1557
|
secondary: {
|
|
1557
1558
|
fontSize: 11,
|
|
1558
|
-
color:
|
|
1559
|
+
color: r.text.secondary
|
|
1559
1560
|
}
|
|
1560
1561
|
}
|
|
1561
1562
|
},
|
|
@@ -1576,7 +1577,7 @@ const Wt = (e, i) => {
|
|
|
1576
1577
|
lineHeight: "inherit",
|
|
1577
1578
|
top: -1,
|
|
1578
1579
|
// This fixes an issue where there is a 1px gap when the subheader sticks to the top while scrolling
|
|
1579
|
-
backgroundColor:
|
|
1580
|
+
backgroundColor: r.background.default
|
|
1580
1581
|
}
|
|
1581
1582
|
}
|
|
1582
1583
|
},
|
|
@@ -1650,9 +1651,9 @@ const Wt = (e, i) => {
|
|
|
1650
1651
|
gridColumn: "1/4",
|
|
1651
1652
|
"& > .MuiTypography-root": {
|
|
1652
1653
|
textTransform: "uppercase",
|
|
1653
|
-
fontSize:
|
|
1654
|
+
fontSize: s.body2.fontSize,
|
|
1654
1655
|
fontWeight: 600,
|
|
1655
|
-
lineHeight:
|
|
1656
|
+
lineHeight: s.body2.lineHeight
|
|
1656
1657
|
}
|
|
1657
1658
|
}
|
|
1658
1659
|
}
|
|
@@ -1746,7 +1747,7 @@ const Wt = (e, i) => {
|
|
|
1746
1747
|
fontWeight: 600,
|
|
1747
1748
|
"&.Mui-focusVisible": {
|
|
1748
1749
|
outline: "none",
|
|
1749
|
-
boxShadow: `inset 0 0 0 2px ${
|
|
1750
|
+
boxShadow: `inset 0 0 0 2px ${r.info.main}`,
|
|
1750
1751
|
borderRadius: 4
|
|
1751
1752
|
}
|
|
1752
1753
|
}
|
|
@@ -1757,7 +1758,7 @@ const Wt = (e, i) => {
|
|
|
1757
1758
|
root: {
|
|
1758
1759
|
borderBottomStyle: "solid",
|
|
1759
1760
|
borderBottomWidth: 1,
|
|
1760
|
-
borderColor:
|
|
1761
|
+
borderColor: r.divider,
|
|
1761
1762
|
marginBottom: 8
|
|
1762
1763
|
}
|
|
1763
1764
|
}
|
|
@@ -1773,7 +1774,7 @@ const Wt = (e, i) => {
|
|
|
1773
1774
|
},
|
|
1774
1775
|
styleOverrides: {
|
|
1775
1776
|
root: {
|
|
1776
|
-
backgroundColor:
|
|
1777
|
+
backgroundColor: r.background.paper
|
|
1777
1778
|
}
|
|
1778
1779
|
}
|
|
1779
1780
|
},
|
|
@@ -1783,53 +1784,54 @@ const Wt = (e, i) => {
|
|
|
1783
1784
|
disableFocusRipple: !0
|
|
1784
1785
|
},
|
|
1785
1786
|
styleOverrides: {
|
|
1786
|
-
root: {
|
|
1787
|
-
color: o.text.primary,
|
|
1787
|
+
root: ({ theme: t }) => ({
|
|
1788
1788
|
fontSize: 13,
|
|
1789
1789
|
lineHeight: "16px",
|
|
1790
1790
|
textTransform: "none",
|
|
1791
1791
|
"&:focus-visible": {
|
|
1792
|
-
outline: `2px solid ${
|
|
1792
|
+
outline: `2px solid ${r.info.main}`,
|
|
1793
1793
|
outlineOffset: "2px"
|
|
1794
1794
|
},
|
|
1795
1795
|
"&:hover": {
|
|
1796
|
-
backgroundColor:
|
|
1797
|
-
|
|
1796
|
+
backgroundColor: m(
|
|
1797
|
+
t.palette.primary.main,
|
|
1798
|
+
r.mode === y.LIGHT ? 0.1 : 0.2
|
|
1799
|
+
),
|
|
1800
|
+
borderColor: t.palette.primary.main
|
|
1798
1801
|
},
|
|
1799
1802
|
"&.Mui-selected": {
|
|
1800
1803
|
fontWeight: 600,
|
|
1801
|
-
borderColor:
|
|
1804
|
+
borderColor: t.palette.primary.main,
|
|
1802
1805
|
"&:hover": {
|
|
1803
|
-
boxShadow: `inset 0px 0px 0px 2px ${
|
|
1806
|
+
boxShadow: `inset 0px 0px 0px 2px ${t.palette.primary.main}`
|
|
1804
1807
|
}
|
|
1805
1808
|
},
|
|
1806
1809
|
"& .MuiTouchRipple-root": {
|
|
1807
|
-
"& .MuiTouchRipple-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
}
|
|
1810
|
+
"& .MuiTouchRipple-child": {
|
|
1811
|
+
backgroundColor: t.palette.primary.main,
|
|
1812
|
+
borderRadius: t.shape.borderRadius
|
|
1811
1813
|
}
|
|
1812
1814
|
}
|
|
1813
|
-
}
|
|
1815
|
+
})
|
|
1814
1816
|
},
|
|
1815
1817
|
variants: [
|
|
1816
1818
|
{
|
|
1817
1819
|
props: { color: "error" },
|
|
1818
1820
|
style: {
|
|
1819
1821
|
"&:hover": {
|
|
1820
|
-
backgroundColor:
|
|
1821
|
-
borderColor:
|
|
1822
|
+
backgroundColor: m(r.error.main, r.mode === y.LIGHT ? 0.1 : 0.2),
|
|
1823
|
+
borderColor: r.error.main
|
|
1822
1824
|
},
|
|
1823
1825
|
"&.Mui-selected": {
|
|
1824
|
-
borderColor:
|
|
1826
|
+
borderColor: r.error.main,
|
|
1825
1827
|
"&:hover": {
|
|
1826
|
-
boxShadow: `inset 0px 0px 0px 2px ${
|
|
1828
|
+
boxShadow: `inset 0px 0px 0px 2px ${r.error.main}`
|
|
1827
1829
|
}
|
|
1828
1830
|
},
|
|
1829
1831
|
"& .MuiTouchRipple-root": {
|
|
1830
1832
|
"& .MuiTouchRipple-ripple": {
|
|
1831
1833
|
"& .MuiTouchRipple-child": {
|
|
1832
|
-
backgroundColor:
|
|
1834
|
+
backgroundColor: r.error.main
|
|
1833
1835
|
}
|
|
1834
1836
|
}
|
|
1835
1837
|
}
|
|
@@ -1839,22 +1841,22 @@ const Wt = (e, i) => {
|
|
|
1839
1841
|
props: { color: "standard" },
|
|
1840
1842
|
style: {
|
|
1841
1843
|
"&:hover": {
|
|
1842
|
-
backgroundColor:
|
|
1843
|
-
|
|
1844
|
-
|
|
1844
|
+
backgroundColor: m(
|
|
1845
|
+
r.secondary.main,
|
|
1846
|
+
r.mode === y.LIGHT ? 0.1 : 0.2
|
|
1845
1847
|
),
|
|
1846
|
-
borderColor:
|
|
1848
|
+
borderColor: r.secondary.main
|
|
1847
1849
|
},
|
|
1848
1850
|
"&.Mui-selected": {
|
|
1849
|
-
borderColor:
|
|
1851
|
+
borderColor: r.secondary.main,
|
|
1850
1852
|
"&:hover": {
|
|
1851
|
-
boxShadow: `inset 0px 0px 0px 2px ${
|
|
1853
|
+
boxShadow: `inset 0px 0px 0px 2px ${r.secondary.main}`
|
|
1852
1854
|
}
|
|
1853
1855
|
},
|
|
1854
1856
|
"& .MuiTouchRipple-root": {
|
|
1855
1857
|
"& .MuiTouchRipple-ripple": {
|
|
1856
1858
|
"& .MuiTouchRipple-child": {
|
|
1857
|
-
backgroundColor:
|
|
1859
|
+
backgroundColor: r.secondary.main
|
|
1858
1860
|
}
|
|
1859
1861
|
}
|
|
1860
1862
|
}
|
|
@@ -1895,7 +1897,7 @@ export {
|
|
|
1895
1897
|
Ue as H1,
|
|
1896
1898
|
Dt as H2,
|
|
1897
1899
|
wt as H3,
|
|
1898
|
-
|
|
1900
|
+
X as INTER,
|
|
1899
1901
|
x as Icon,
|
|
1900
1902
|
zt as InstitutionLogo,
|
|
1901
1903
|
vt as MXLogoCopyrightIcon,
|