@mxenabled/mxui 2.0.0 → 2.0.1
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 +232 -237
- package/dist/index.es.js.map +1 -1
- package/dist/themes/Colors.d.ts +3 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { jsx as a, jsxs as T } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { useTheme as
|
|
5
|
-
import { Icon as
|
|
6
|
-
import { endOfMonth as
|
|
7
|
-
import { endOfYear as
|
|
8
|
-
import { startOfToday as
|
|
9
|
-
import { startOfMonth as
|
|
10
|
-
import { startOfYear as
|
|
11
|
-
import { subDays as
|
|
12
|
-
import { subMonths as
|
|
13
|
-
import { subYears as
|
|
14
|
-
import
|
|
15
|
-
import { usePickerContext as
|
|
16
|
-
import { AdapterDateFns as
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import { FormControlLabel as
|
|
29
|
-
import { circularProgressClasses as
|
|
30
|
-
import { LicenseInfo as
|
|
31
|
-
const
|
|
2
|
+
import H from "react";
|
|
3
|
+
import y from "@mui/material/Stack";
|
|
4
|
+
import { useTheme as O, createTheme as te } from "@mui/material/styles";
|
|
5
|
+
import { Icon as oe, Close as re } from "@mxenabled/mx-icons";
|
|
6
|
+
import { endOfMonth as z } from "date-fns/endOfMonth";
|
|
7
|
+
import { endOfYear as ie } from "date-fns/endOfYear";
|
|
8
|
+
import { startOfToday as ae } from "date-fns/startOfToday";
|
|
9
|
+
import { startOfMonth as $ } from "date-fns/startOfMonth";
|
|
10
|
+
import { startOfYear as U } from "date-fns/startOfYear";
|
|
11
|
+
import { subDays as G } from "date-fns/subDays";
|
|
12
|
+
import { subMonths as ne } from "date-fns/subMonths";
|
|
13
|
+
import { subYears as le } from "date-fns/subYears";
|
|
14
|
+
import se from "@mui/material/useMediaQuery";
|
|
15
|
+
import { usePickerContext as ce, useIsValidValue as de, LocalizationProvider as ue, StaticDateRangePicker as pe } from "@mui/x-date-pickers-pro";
|
|
16
|
+
import { AdapterDateFns as he } from "@mui/x-date-pickers-pro/AdapterDateFns";
|
|
17
|
+
import Y from "@mui/material/Box";
|
|
18
|
+
import ge from "@mui/material/ToggleButton";
|
|
19
|
+
import fe from "@mui/material/ToggleButtonGroup";
|
|
20
|
+
import K from "@mui/material/Slide";
|
|
21
|
+
import B from "@mui/material/Button";
|
|
22
|
+
import X from "@mui/material/IconButton";
|
|
23
|
+
import me from "@mui/material/Typography";
|
|
24
|
+
import be from "@mui/material/Drawer";
|
|
25
|
+
import Te from "@mui/material/TextField";
|
|
26
|
+
import xe from "@mui/material/Snackbar";
|
|
27
|
+
import Re from "@mui/material/Alert";
|
|
28
|
+
import { FormControlLabel as Me, Box as k, Typography as V, Radio as w, Checkbox as Se, alpha as m, darken as N, lighten as I, getContrastRatio as Ce } from "@mui/material";
|
|
29
|
+
import { circularProgressClasses as Ae } from "@mui/material/CircularProgress";
|
|
30
|
+
import { LicenseInfo as Ee } from "@mui/x-license";
|
|
31
|
+
const L = ({
|
|
32
32
|
children: e,
|
|
33
33
|
height: i,
|
|
34
34
|
size: o = 16,
|
|
@@ -46,10 +46,10 @@ const D = ({
|
|
|
46
46
|
xmlns: "http://www.w3.org/2000/svg",
|
|
47
47
|
children: e
|
|
48
48
|
}
|
|
49
|
-
),
|
|
49
|
+
), x = ({ color: e, fill: i = !1, name: o, size: n = 20, sx: t, ...s }) => /* @__PURE__ */ a(oe, { color: e, fill: i, name: o, size: n, sx: t, ...s }), bt = ({
|
|
50
50
|
color: e = "currentColor",
|
|
51
51
|
...i
|
|
52
|
-
}) => /* @__PURE__ */ T(
|
|
52
|
+
}) => /* @__PURE__ */ T(L, { ...i, children: [
|
|
53
53
|
/* @__PURE__ */ a(
|
|
54
54
|
"path",
|
|
55
55
|
{
|
|
@@ -64,10 +64,10 @@ const D = ({
|
|
|
64
64
|
fill: e
|
|
65
65
|
}
|
|
66
66
|
)
|
|
67
|
-
] }),
|
|
67
|
+
] }), Tt = ({
|
|
68
68
|
color: e = "currentColor",
|
|
69
69
|
...i
|
|
70
|
-
}) => /* @__PURE__ */ T(
|
|
70
|
+
}) => /* @__PURE__ */ T(L, { ...i, children: [
|
|
71
71
|
/* @__PURE__ */ a(
|
|
72
72
|
"path",
|
|
73
73
|
{
|
|
@@ -100,10 +100,10 @@ const D = ({
|
|
|
100
100
|
fillRule: "evenodd"
|
|
101
101
|
}
|
|
102
102
|
)
|
|
103
|
-
] }),
|
|
103
|
+
] }), xt = ({
|
|
104
104
|
color: e = "currentColor",
|
|
105
105
|
...i
|
|
106
|
-
}) => /* @__PURE__ */ a(
|
|
106
|
+
}) => /* @__PURE__ */ a(L, { ...i, children: /* @__PURE__ */ a(
|
|
107
107
|
"path",
|
|
108
108
|
{
|
|
109
109
|
clipRule: "evenodd",
|
|
@@ -111,10 +111,10 @@ const D = ({
|
|
|
111
111
|
fill: e,
|
|
112
112
|
fillRule: "evenodd"
|
|
113
113
|
}
|
|
114
|
-
) }),
|
|
114
|
+
) }), Rt = ({
|
|
115
115
|
color: e = "currentColor",
|
|
116
116
|
...i
|
|
117
|
-
}) => /* @__PURE__ */ T(
|
|
117
|
+
}) => /* @__PURE__ */ T(L, { ...i, children: [
|
|
118
118
|
/* @__PURE__ */ a(
|
|
119
119
|
"path",
|
|
120
120
|
{
|
|
@@ -139,12 +139,12 @@ const D = ({
|
|
|
139
139
|
}
|
|
140
140
|
)
|
|
141
141
|
] });
|
|
142
|
-
var g = /* @__PURE__ */ ((e) => (e.AutoTransport = "CAT-7829f71c-2e8c-afa5-2f55-fa3634b89874", e.BillsUtilities = "CAT-79b02f2f-2adc-88f0-ac2b-4e71ead9cfc8", e.BusinessServices = "CAT-94b11142-e97b-941a-f67f-6e18d246a23f", e.Education = "CAT-bf5c9cca-c96b-b50d-440d-38d9adfda5b0", e.Entertainment = "CAT-e04e9d1e-e041-c315-2e50-094143ab3f73", e.FeesCharges = "CAT-d73ee74b-13a4-ac3e-4015-fc4ba9a62b2a", e.Financial = "CAT-6c7de3f8-de6c-7061-1dd2-b093044014bf", e.FoodDining = "CAT-bd56d35a-a9a7-6e10-66c1-5b9cc1b6c81a", e.GiftsDonations = "CAT-8edf9663-623e-4735-490e-31288f0a70b0", e.HealthFitness = "CAT-52fa4693-c088-afb2-2a99-7bc39bb23a0f", e.Home = "CAT-b709172b-4eb7-318e-3b5d-e0f0500b32ac", e.Income = "CAT-bf9f3294-4c40-1677-d269-54fbc189faf3", e.Investments = "CAT-ccd42390-9e8c-3fb6-a5d9-6c31182d9c5c", e.Kids = "CAT-0cb1d99d-f558-99e3-2282-b31f359b411a", e.PersonalCare = "CAT-e5154228-fe45-790d-a280-f6bf5ae5ac9f", e.Pets = "CAT-7cccbafa-87d7-c9a6-661b-8b3402fe9e78", e.Shopping = "CAT-aad51b46-d6f7-3da5-fd6e-492328b3023f", e.Taxes = "CAT-d00fc539-aa14-009b-4ffb-7e8c7b839954", e.Transfer = "CAT-bce48142-fea4-ff45-20d9-0a642d44de83", e.Travel = "CAT-ea23d844-cbd1-eb10-f6ac-0df9610e59ae", e.Uncategorized = "CAT-d7851c65-3353-e490-1953-fb9235e681e4", e))(g || {}),
|
|
143
|
-
const
|
|
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 || {}), Oe = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Filled = "filled", e.Transparent = "transparent", e.TwoTone = "two-tone", e))(Oe || {});
|
|
143
|
+
const j = {
|
|
144
144
|
guid: g.Uncategorized,
|
|
145
145
|
colorName: "uncategorized",
|
|
146
146
|
icon: "category"
|
|
147
|
-
},
|
|
147
|
+
}, Ie = [
|
|
148
148
|
{
|
|
149
149
|
guid: g.AutoTransport,
|
|
150
150
|
colorName: "autoTransport",
|
|
@@ -245,40 +245,40 @@ const Q = {
|
|
|
245
245
|
colorName: "travel",
|
|
246
246
|
icon: "airplane_ticket"
|
|
247
247
|
},
|
|
248
|
-
|
|
249
|
-
],
|
|
248
|
+
j
|
|
249
|
+
], ye = 0.625, Fe = ({
|
|
250
250
|
categoryGuid: e,
|
|
251
|
-
icon_ratio: i =
|
|
251
|
+
icon_ratio: i = ye,
|
|
252
252
|
size: o = 32,
|
|
253
253
|
sx: n = {},
|
|
254
254
|
variant: t = "filled"
|
|
255
255
|
}) => {
|
|
256
|
-
const s =
|
|
257
|
-
() =>
|
|
256
|
+
const s = O(), l = H.useMemo(
|
|
257
|
+
() => Ie.find((u) => u.guid === e) ?? j,
|
|
258
258
|
[e]
|
|
259
259
|
), d = s.palette.categories[l.colorName];
|
|
260
260
|
return /* @__PURE__ */ a(
|
|
261
|
-
|
|
261
|
+
y,
|
|
262
262
|
{
|
|
263
263
|
alignItems: "center",
|
|
264
264
|
bgcolor: () => {
|
|
265
|
-
let
|
|
266
|
-
return t === "twotone" && (
|
|
265
|
+
let u = d;
|
|
266
|
+
return t === "twotone" && (u = `${u}20`), t === "transparent" || t === "basic" ? "transparent" : u;
|
|
267
267
|
},
|
|
268
268
|
borderRadius: 1,
|
|
269
269
|
color: () => {
|
|
270
|
-
const
|
|
271
|
-
return t === "basic" ? s.palette.text.primary :
|
|
270
|
+
const u = t === "filled" ? s.palette.common.white : d;
|
|
271
|
+
return t === "basic" ? s.palette.text.primary : u;
|
|
272
272
|
},
|
|
273
273
|
height: o,
|
|
274
274
|
justifyContent: "center",
|
|
275
275
|
sx: [...Array.isArray(n) ? n : [n]],
|
|
276
276
|
width: o,
|
|
277
|
-
children: /* @__PURE__ */ a(
|
|
277
|
+
children: /* @__PURE__ */ a(x, { name: l.icon, size: o * i })
|
|
278
278
|
}
|
|
279
279
|
);
|
|
280
|
-
},
|
|
281
|
-
const o =
|
|
280
|
+
}, ve = ({ items: e, selected: i }) => {
|
|
281
|
+
const o = O(), { setValue: n } = ce(), t = de(), s = e?.map((l) => {
|
|
282
282
|
const d = l.getValue({ isValid: t });
|
|
283
283
|
return {
|
|
284
284
|
label: l.label,
|
|
@@ -288,8 +288,8 @@ const Q = {
|
|
|
288
288
|
disabled: !t(d)
|
|
289
289
|
};
|
|
290
290
|
});
|
|
291
|
-
return /* @__PURE__ */ a(
|
|
292
|
-
|
|
291
|
+
return /* @__PURE__ */ a(Y, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ a(fe, { color: "primary", orientation: "vertical", value: i, children: s?.map((l) => /* @__PURE__ */ a(
|
|
292
|
+
ge,
|
|
293
293
|
{
|
|
294
294
|
onClick: l.onClick,
|
|
295
295
|
sx: {
|
|
@@ -316,51 +316,51 @@ const Q = {
|
|
|
316
316
|
},
|
|
317
317
|
l.label
|
|
318
318
|
)) }) });
|
|
319
|
-
},
|
|
319
|
+
}, Mt = ({
|
|
320
320
|
copy: e,
|
|
321
321
|
dateRange: i,
|
|
322
322
|
onRangeChanged: o,
|
|
323
323
|
selectedShortcut: n = e.dateRangeThisMonth,
|
|
324
324
|
sx: t = {}
|
|
325
325
|
}) => {
|
|
326
|
-
const s =
|
|
327
|
-
const r =
|
|
326
|
+
const s = O(), l = se(s.breakpoints.down("sm")), d = H.useMemo(() => {
|
|
327
|
+
const r = ae(), u = ne(r, 1), b = le(r, 1);
|
|
328
328
|
return [
|
|
329
329
|
{
|
|
330
330
|
label: e.dateRangeThisMonth,
|
|
331
|
-
getValue: () => [
|
|
331
|
+
getValue: () => [$(r), z(r)]
|
|
332
332
|
},
|
|
333
333
|
{
|
|
334
334
|
label: e.dateRangeLastMonth,
|
|
335
|
-
getValue: () => [
|
|
335
|
+
getValue: () => [$(u), z(u)]
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
338
|
label: e.dateRangeLast30Days,
|
|
339
|
-
getValue: () => [
|
|
339
|
+
getValue: () => [G(r, 30), r]
|
|
340
340
|
},
|
|
341
341
|
{
|
|
342
342
|
label: e.dateRangeLast90Days,
|
|
343
|
-
getValue: () => [
|
|
343
|
+
getValue: () => [G(r, 90), r]
|
|
344
344
|
},
|
|
345
345
|
{
|
|
346
346
|
label: e.dateRangeYTD,
|
|
347
|
-
getValue: () => [
|
|
347
|
+
getValue: () => [U(r), r]
|
|
348
348
|
},
|
|
349
349
|
{
|
|
350
350
|
label: e.dateRangeLastYear,
|
|
351
|
-
getValue: () => [
|
|
351
|
+
getValue: () => [U(b), ie(b)]
|
|
352
352
|
},
|
|
353
353
|
{
|
|
354
354
|
label: e.dateRangeCustom,
|
|
355
355
|
getValue: () => [r, r]
|
|
356
356
|
}
|
|
357
357
|
];
|
|
358
|
-
}, [e]), c = (r,
|
|
359
|
-
const b =
|
|
358
|
+
}, [e]), c = (r, u) => {
|
|
359
|
+
const b = u.shortcut;
|
|
360
360
|
o?.(r, b ? b.label : e.dateRangeCustom);
|
|
361
361
|
};
|
|
362
|
-
return /* @__PURE__ */ a(
|
|
363
|
-
|
|
362
|
+
return /* @__PURE__ */ a(y, { gap: 16, m: 8, children: /* @__PURE__ */ a(ue, { dateAdapter: he, children: /* @__PURE__ */ a(
|
|
363
|
+
pe,
|
|
364
364
|
{
|
|
365
365
|
calendars: 1,
|
|
366
366
|
localeText: {
|
|
@@ -380,17 +380,17 @@ const Q = {
|
|
|
380
380
|
}
|
|
381
381
|
},
|
|
382
382
|
slots: {
|
|
383
|
-
leftArrowIcon: () => /* @__PURE__ */ a(
|
|
384
|
-
shortcuts: (r) => /* @__PURE__ */ a(
|
|
385
|
-
rightArrowIcon: () => /* @__PURE__ */ a(
|
|
383
|
+
leftArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_left", size: 28 }),
|
|
384
|
+
shortcuts: (r) => /* @__PURE__ */ a(ve, { selected: n, ...r }),
|
|
385
|
+
rightArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_right", size: 28 })
|
|
386
386
|
},
|
|
387
387
|
sx: { ...t },
|
|
388
388
|
value: i
|
|
389
389
|
}
|
|
390
390
|
) }) });
|
|
391
|
-
},
|
|
392
|
-
return /* @__PURE__ */ a(
|
|
393
|
-
}),
|
|
391
|
+
}, St = H.forwardRef(function(i, o) {
|
|
392
|
+
return /* @__PURE__ */ a(K, { direction: "up", ref: o, ...i });
|
|
393
|
+
}), Ne = ({
|
|
394
394
|
hasSecondaryAction: e = !0,
|
|
395
395
|
isPrimaryDisabled: i,
|
|
396
396
|
onPrimaryAction: o,
|
|
@@ -400,7 +400,7 @@ const Q = {
|
|
|
400
400
|
secondaryColor: l = "primary",
|
|
401
401
|
secondaryText: d = "Cancel"
|
|
402
402
|
}) => /* @__PURE__ */ T(
|
|
403
|
-
|
|
403
|
+
y,
|
|
404
404
|
{
|
|
405
405
|
direction: "row",
|
|
406
406
|
gap: 16,
|
|
@@ -408,7 +408,7 @@ const Q = {
|
|
|
408
408
|
sx: { bgcolor: "background.paper", p: 24 },
|
|
409
409
|
children: [
|
|
410
410
|
e && /* @__PURE__ */ a(
|
|
411
|
-
|
|
411
|
+
B,
|
|
412
412
|
{
|
|
413
413
|
color: l,
|
|
414
414
|
onClick: n,
|
|
@@ -417,7 +417,7 @@ const Q = {
|
|
|
417
417
|
}
|
|
418
418
|
),
|
|
419
419
|
o && /* @__PURE__ */ a(
|
|
420
|
-
|
|
420
|
+
B,
|
|
421
421
|
{
|
|
422
422
|
color: t,
|
|
423
423
|
disabled: i,
|
|
@@ -428,7 +428,7 @@ const Q = {
|
|
|
428
428
|
)
|
|
429
429
|
]
|
|
430
430
|
}
|
|
431
|
-
),
|
|
431
|
+
), F = ({
|
|
432
432
|
bold: e,
|
|
433
433
|
className: i = "",
|
|
434
434
|
children: o,
|
|
@@ -438,7 +438,7 @@ const Q = {
|
|
|
438
438
|
uppercase: l,
|
|
439
439
|
...d
|
|
440
440
|
}) => /* @__PURE__ */ a(
|
|
441
|
-
|
|
441
|
+
me,
|
|
442
442
|
{
|
|
443
443
|
className: `mx-kmui-text ${i}`,
|
|
444
444
|
color: n,
|
|
@@ -459,8 +459,8 @@ const Q = {
|
|
|
459
459
|
...d,
|
|
460
460
|
children: o
|
|
461
461
|
}
|
|
462
|
-
),
|
|
463
|
-
|
|
462
|
+
), He = ({ 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, truncate: o, ...n }) => /* @__PURE__ */ a(
|
|
463
|
+
F,
|
|
464
464
|
{
|
|
465
465
|
className: `mx-mxui-text p ${e}`,
|
|
466
466
|
component: "p",
|
|
@@ -470,7 +470,7 @@ const Q = {
|
|
|
470
470
|
children: i
|
|
471
471
|
}
|
|
472
472
|
), Ot = ({ copy: e, onClose: i }) => /* @__PURE__ */ T(
|
|
473
|
-
|
|
473
|
+
y,
|
|
474
474
|
{
|
|
475
475
|
sx: {
|
|
476
476
|
alignItems: "center",
|
|
@@ -480,11 +480,11 @@ const Q = {
|
|
|
480
480
|
py: 14
|
|
481
481
|
},
|
|
482
482
|
children: [
|
|
483
|
-
/* @__PURE__ */ a(
|
|
484
|
-
/* @__PURE__ */ a(
|
|
483
|
+
/* @__PURE__ */ a(He, { variant: "h3", children: e.title }),
|
|
484
|
+
/* @__PURE__ */ a(X, { "aria-label": e.close_aria, onClick: i, sx: { mr: -12 }, children: /* @__PURE__ */ a(re, {}) })
|
|
485
485
|
]
|
|
486
486
|
}
|
|
487
|
-
),
|
|
487
|
+
), It = ({
|
|
488
488
|
className: e,
|
|
489
489
|
disableSave: i,
|
|
490
490
|
id: o,
|
|
@@ -496,7 +496,7 @@ const Q = {
|
|
|
496
496
|
children: c,
|
|
497
497
|
...r
|
|
498
498
|
}) => /* @__PURE__ */ T(
|
|
499
|
-
|
|
499
|
+
be,
|
|
500
500
|
{
|
|
501
501
|
anchor: "right",
|
|
502
502
|
className: `mx-kmui-drawer ${e}`,
|
|
@@ -508,7 +508,7 @@ const Q = {
|
|
|
508
508
|
children: [
|
|
509
509
|
c,
|
|
510
510
|
s && /* @__PURE__ */ a(
|
|
511
|
-
|
|
511
|
+
Ne,
|
|
512
512
|
{
|
|
513
513
|
isPrimaryDisabled: i,
|
|
514
514
|
onPrimaryAction: s,
|
|
@@ -519,34 +519,34 @@ const Q = {
|
|
|
519
519
|
)
|
|
520
520
|
]
|
|
521
521
|
}
|
|
522
|
-
),
|
|
522
|
+
), Z = 32, P = "https://content.moneydesktop.com/storage/MD_Assets", Le = `${P}/serenity/default_institution_logo.png`, yt = ({
|
|
523
523
|
alt: e,
|
|
524
524
|
institutionGuid: i,
|
|
525
525
|
logoUrl: o,
|
|
526
|
-
size: n =
|
|
526
|
+
size: n = Z,
|
|
527
527
|
...t
|
|
528
528
|
}) => /* @__PURE__ */ a(
|
|
529
529
|
"img",
|
|
530
530
|
{
|
|
531
531
|
alt: e,
|
|
532
532
|
height: n,
|
|
533
|
-
onError: (s) => s.target.src =
|
|
534
|
-
src: o || `${
|
|
533
|
+
onError: (s) => s.target.src = Le,
|
|
534
|
+
src: o || `${P}/Ipad%20Logos/100x100/${i}_100x100.png`,
|
|
535
535
|
style: {
|
|
536
536
|
borderRadius: 4
|
|
537
537
|
},
|
|
538
538
|
width: n,
|
|
539
539
|
...t
|
|
540
540
|
}
|
|
541
|
-
),
|
|
541
|
+
), Ft = ({
|
|
542
542
|
alt: e = "",
|
|
543
543
|
categoryGuid: i,
|
|
544
544
|
merchantGuid: o,
|
|
545
|
-
size: n =
|
|
545
|
+
size: n = Z,
|
|
546
546
|
...t
|
|
547
547
|
}) => {
|
|
548
|
-
const [s, l] =
|
|
549
|
-
return /* @__PURE__ */ T(
|
|
548
|
+
const [s, l] = H.useState(!1), d = O();
|
|
549
|
+
return /* @__PURE__ */ T(Y, { display: "inline-block", position: "relative", ...t, children: [
|
|
550
550
|
o && !s && /* @__PURE__ */ a(
|
|
551
551
|
"img",
|
|
552
552
|
{
|
|
@@ -554,7 +554,7 @@ const Q = {
|
|
|
554
554
|
"aria-hidden": !e,
|
|
555
555
|
height: n,
|
|
556
556
|
onError: () => l(!0),
|
|
557
|
-
src: `${
|
|
557
|
+
src: `${P}/merchant_logos/${o}.png`,
|
|
558
558
|
style: {
|
|
559
559
|
backgroundColor: d.palette.common.white,
|
|
560
560
|
borderRadius: 4,
|
|
@@ -573,7 +573,7 @@ const Q = {
|
|
|
573
573
|
variant: n = "outlined",
|
|
574
574
|
...t
|
|
575
575
|
}) => /* @__PURE__ */ a(
|
|
576
|
-
|
|
576
|
+
Te,
|
|
577
577
|
{
|
|
578
578
|
InputLabelProps: {
|
|
579
579
|
shrink: o
|
|
@@ -584,10 +584,10 @@ const Q = {
|
|
|
584
584
|
...t
|
|
585
585
|
}
|
|
586
586
|
);
|
|
587
|
-
function
|
|
588
|
-
return /* @__PURE__ */ a(
|
|
587
|
+
function De(e) {
|
|
588
|
+
return /* @__PURE__ */ a(K, { ...e, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
|
|
589
589
|
}
|
|
590
|
-
const
|
|
590
|
+
const Nt = ({
|
|
591
591
|
open: e,
|
|
592
592
|
handleClose: i,
|
|
593
593
|
message: o,
|
|
@@ -598,20 +598,20 @@ const Ft = ({
|
|
|
598
598
|
showClose: d = !1,
|
|
599
599
|
actionText: c = "Undo",
|
|
600
600
|
onActionClick: r,
|
|
601
|
-
multiLine:
|
|
601
|
+
multiLine: u = !1
|
|
602
602
|
}) => {
|
|
603
|
-
const b =
|
|
604
|
-
|
|
603
|
+
const b = O(), v = /* @__PURE__ */ T(
|
|
604
|
+
y,
|
|
605
605
|
{
|
|
606
|
-
alignItems:
|
|
607
|
-
direction:
|
|
606
|
+
alignItems: u ? "flex-end" : "center",
|
|
607
|
+
direction: u ? "column-reverse" : "row",
|
|
608
608
|
justifyContent: (
|
|
609
609
|
// eslint-disable-next-line no-nested-ternary
|
|
610
|
-
|
|
610
|
+
u && l && d ? "space-between" : "flex-end"
|
|
611
611
|
),
|
|
612
612
|
children: [
|
|
613
613
|
l && /* @__PURE__ */ a(
|
|
614
|
-
|
|
614
|
+
B,
|
|
615
615
|
{
|
|
616
616
|
color: "inherit",
|
|
617
617
|
onClick: r || i,
|
|
@@ -624,48 +624,48 @@ const Ft = ({
|
|
|
624
624
|
}
|
|
625
625
|
),
|
|
626
626
|
d && /* @__PURE__ */ a(
|
|
627
|
-
|
|
627
|
+
X,
|
|
628
628
|
{
|
|
629
629
|
"aria-label": "close",
|
|
630
630
|
color: "inherit",
|
|
631
631
|
onClick: i,
|
|
632
632
|
sx: { height: 44, width: 44 },
|
|
633
|
-
children: /* @__PURE__ */ a(
|
|
633
|
+
children: /* @__PURE__ */ a(x, { fill: !0, name: "close", size: 24 })
|
|
634
634
|
}
|
|
635
635
|
)
|
|
636
636
|
]
|
|
637
637
|
}
|
|
638
638
|
);
|
|
639
639
|
return /* @__PURE__ */ a(
|
|
640
|
-
|
|
640
|
+
xe,
|
|
641
641
|
{
|
|
642
|
-
TransitionComponent:
|
|
642
|
+
TransitionComponent: De,
|
|
643
643
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
644
644
|
autoHideDuration: n,
|
|
645
645
|
onClose: i,
|
|
646
646
|
open: e,
|
|
647
647
|
sx: {
|
|
648
648
|
...s,
|
|
649
|
-
width:
|
|
649
|
+
width: u ? 400 : 325
|
|
650
650
|
},
|
|
651
651
|
children: /* @__PURE__ */ a(
|
|
652
|
-
|
|
652
|
+
Re,
|
|
653
653
|
{
|
|
654
|
-
action:
|
|
654
|
+
action: v,
|
|
655
655
|
severity: t,
|
|
656
656
|
sx: {
|
|
657
657
|
display: "flex",
|
|
658
658
|
alignItems: "stretch",
|
|
659
|
-
minHeight: d && l &&
|
|
660
|
-
maxHeight:
|
|
659
|
+
minHeight: d && l && u ? 120 : 56,
|
|
660
|
+
maxHeight: u ? 120 : 56,
|
|
661
661
|
width: "100%",
|
|
662
662
|
"& .MuiAlert-icon": {
|
|
663
|
-
alignSelf:
|
|
663
|
+
alignSelf: u ? "flex-start" : "center"
|
|
664
664
|
},
|
|
665
665
|
"& .MuiAlert-message": {
|
|
666
|
-
paddingTop:
|
|
667
|
-
paddingBottom:
|
|
668
|
-
alignSelf:
|
|
666
|
+
paddingTop: u ? 12 : 8,
|
|
667
|
+
paddingBottom: u ? 12 : 8,
|
|
668
|
+
alignSelf: u ? "flex-start" : "center"
|
|
669
669
|
},
|
|
670
670
|
"& .MuiAlert-action": {
|
|
671
671
|
alignItems: "stretch",
|
|
@@ -674,15 +674,15 @@ const Ft = ({
|
|
|
674
674
|
},
|
|
675
675
|
variant: "filled",
|
|
676
676
|
children: /* @__PURE__ */ a(
|
|
677
|
-
|
|
677
|
+
F,
|
|
678
678
|
{
|
|
679
679
|
sx: {
|
|
680
680
|
lineHeight: b.typography.body1.lineHeight,
|
|
681
|
-
whiteSpace:
|
|
682
|
-
overflow:
|
|
683
|
-
textOverflow:
|
|
681
|
+
whiteSpace: u ? "normal" : "nowrap",
|
|
682
|
+
overflow: u ? "visible" : "hidden",
|
|
683
|
+
textOverflow: u ? "clip" : "ellipsis"
|
|
684
684
|
},
|
|
685
|
-
truncate: !
|
|
685
|
+
truncate: !u,
|
|
686
686
|
children: o
|
|
687
687
|
}
|
|
688
688
|
)
|
|
@@ -690,8 +690,8 @@ const Ft = ({
|
|
|
690
690
|
)
|
|
691
691
|
}
|
|
692
692
|
);
|
|
693
|
-
},
|
|
694
|
-
component: e =
|
|
693
|
+
}, Ht = ({
|
|
694
|
+
component: e = w,
|
|
695
695
|
variant: i = "outlined",
|
|
696
696
|
selected: o,
|
|
697
697
|
onChange: n,
|
|
@@ -701,17 +701,17 @@ const Ft = ({
|
|
|
701
701
|
value: d,
|
|
702
702
|
disabled: c = !1,
|
|
703
703
|
error: r = !1,
|
|
704
|
-
icon:
|
|
704
|
+
icon: u = !1,
|
|
705
705
|
sx: b = {},
|
|
706
|
-
...
|
|
706
|
+
...v
|
|
707
707
|
}) => {
|
|
708
|
-
const f =
|
|
708
|
+
const f = O(), Q = () => 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], J = () => c || r ? f.palette.background.paper : m(f.palette.primary.main, 0.1), q = () => 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(), ee = () => c || r ? f.palette.background.paper : m(f.palette.primary.main, 0.3);
|
|
709
709
|
return /* @__PURE__ */ a(
|
|
710
|
-
|
|
710
|
+
Me,
|
|
711
711
|
{
|
|
712
712
|
checked: o,
|
|
713
|
-
control: e ===
|
|
714
|
-
|
|
713
|
+
control: e === w ? /* @__PURE__ */ a(
|
|
714
|
+
w,
|
|
715
715
|
{
|
|
716
716
|
name: l,
|
|
717
717
|
sx: {
|
|
@@ -723,7 +723,7 @@ const Ft = ({
|
|
|
723
723
|
fontSize: "20px"
|
|
724
724
|
}
|
|
725
725
|
},
|
|
726
|
-
...
|
|
726
|
+
...v
|
|
727
727
|
}
|
|
728
728
|
) : /* @__PURE__ */ a(
|
|
729
729
|
Se,
|
|
@@ -738,15 +738,15 @@ const Ft = ({
|
|
|
738
738
|
fontSize: "20px"
|
|
739
739
|
}
|
|
740
740
|
},
|
|
741
|
-
...
|
|
741
|
+
...v
|
|
742
742
|
}
|
|
743
743
|
),
|
|
744
744
|
disabled: c,
|
|
745
|
-
label: /* @__PURE__ */ T(
|
|
746
|
-
|
|
747
|
-
/* @__PURE__ */ T(
|
|
748
|
-
t && /* @__PURE__ */ a(
|
|
749
|
-
/* @__PURE__ */ a(
|
|
745
|
+
label: /* @__PURE__ */ T(k, { sx: { display: "flex", alignItems: "flex-start", width: "100%" }, children: [
|
|
746
|
+
u && /* @__PURE__ */ a(k, { sx: { mr: 12, mt: "8px", flexShrink: 0 }, children: u }),
|
|
747
|
+
/* @__PURE__ */ T(k, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
|
|
748
|
+
t && /* @__PURE__ */ a(V, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: t }),
|
|
749
|
+
/* @__PURE__ */ a(V, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: s })
|
|
750
750
|
] })
|
|
751
751
|
] }),
|
|
752
752
|
labelPlacement: "start",
|
|
@@ -760,19 +760,19 @@ const Ft = ({
|
|
|
760
760
|
mb: 16,
|
|
761
761
|
cursor: c ? "not-allowed" : "pointer",
|
|
762
762
|
opacity: c ? 0.6 : 1,
|
|
763
|
-
backgroundColor:
|
|
763
|
+
backgroundColor: Q(),
|
|
764
764
|
border: "none",
|
|
765
|
-
boxShadow:
|
|
765
|
+
boxShadow: D(),
|
|
766
766
|
boxSizing: "border-box",
|
|
767
767
|
transition: f.transitions.create(["background-color", "box-shadow"], {
|
|
768
768
|
duration: f.transitions.duration.short
|
|
769
769
|
}),
|
|
770
770
|
"&:hover": {
|
|
771
|
-
backgroundColor:
|
|
772
|
-
boxShadow:
|
|
771
|
+
backgroundColor: J(),
|
|
772
|
+
boxShadow: q()
|
|
773
773
|
},
|
|
774
774
|
"&:active": {
|
|
775
|
-
backgroundColor:
|
|
775
|
+
backgroundColor: ee()
|
|
776
776
|
},
|
|
777
777
|
"&:focus-visible": {
|
|
778
778
|
outline: `2px solid ${f.palette.info.main}`,
|
|
@@ -783,9 +783,9 @@ const Ft = ({
|
|
|
783
783
|
value: d
|
|
784
784
|
}
|
|
785
785
|
);
|
|
786
|
-
},
|
|
786
|
+
}, E = {
|
|
787
787
|
LIGHT: "light"
|
|
788
|
-
},
|
|
788
|
+
}, R = (e) => ({
|
|
789
789
|
50: I(e, 0.95),
|
|
790
790
|
100: I(e, 0.85),
|
|
791
791
|
200: I(e, 0.7),
|
|
@@ -796,7 +796,7 @@ const Ft = ({
|
|
|
796
796
|
700: N(e, 0.5),
|
|
797
797
|
800: N(e, 0.65),
|
|
798
798
|
900: N(e, 0.75)
|
|
799
|
-
}),
|
|
799
|
+
}), M = "#FFFFFF", _ = "#000000", ke = "#F9F9F9", we = "#000000", _e = "#FFFFFF", Be = "#1A1A1A", S = {
|
|
800
800
|
PRIMARY: "#2C64EF",
|
|
801
801
|
SECONDARY: "#808080",
|
|
802
802
|
INFO: "#2C64EF",
|
|
@@ -804,7 +804,7 @@ const Ft = ({
|
|
|
804
804
|
WARNING: "#FF7B00",
|
|
805
805
|
ERROR: "#E32727",
|
|
806
806
|
GREY: "#808080"
|
|
807
|
-
},
|
|
807
|
+
}, C = {
|
|
808
808
|
CHART1: "#74E4DA",
|
|
809
809
|
CHART2: "#ED64A4",
|
|
810
810
|
CHART3: "#F3DC46",
|
|
@@ -819,7 +819,7 @@ const Ft = ({
|
|
|
819
819
|
CHART_MONO4: "#2F73DA",
|
|
820
820
|
CHART_MONO5: "#034AB3",
|
|
821
821
|
CHART_MONO6: "#002966"
|
|
822
|
-
},
|
|
822
|
+
}, p = {
|
|
823
823
|
AUTO_TRANSPORTT: "#00B0FF",
|
|
824
824
|
BILLS_UTILITIES: "#F949BD",
|
|
825
825
|
BUSINESS_SERVICES: "#2979FF",
|
|
@@ -865,13 +865,13 @@ const Ft = ({
|
|
|
865
865
|
TRANSFER: "#75C7B7",
|
|
866
866
|
TRAVEL: "#76ACF7",
|
|
867
867
|
UNCATEGORIZED: "#BCC6D4"
|
|
868
|
-
},
|
|
869
|
-
const o =
|
|
868
|
+
}, Pe = (e, i) => {
|
|
869
|
+
const o = R(i?.primary || S.PRIMARY), n = R(i?.secondary || S.SECONDARY), t = R(i?.error || S.ERROR), s = R(i?.warning || S.WARNING), l = R(i?.info || S.INFO), d = R(i?.success || S.SUCCESS), c = R(i?.grey || S.GREY), r = e === E.LIGHT;
|
|
870
870
|
return {
|
|
871
871
|
mode: e,
|
|
872
872
|
common: {
|
|
873
|
-
white:
|
|
874
|
-
black:
|
|
873
|
+
white: M,
|
|
874
|
+
black: _
|
|
875
875
|
},
|
|
876
876
|
primary: {
|
|
877
877
|
...o,
|
|
@@ -890,12 +890,12 @@ const Ft = ({
|
|
|
890
890
|
light: r ? c[300] : c[600],
|
|
891
891
|
main: r ? c[500] : c[400],
|
|
892
892
|
dark: r ? c[700] : c[200],
|
|
893
|
-
contrastText:
|
|
893
|
+
contrastText: Ce(r ? c[700] : c[400], "#fff") > 4.5 ? M : c[900]
|
|
894
894
|
},
|
|
895
895
|
text: {
|
|
896
|
-
primary: r ? c[900] :
|
|
897
|
-
secondary: r ? c[600] : m(
|
|
898
|
-
disabled: r ? c[500] : m(
|
|
896
|
+
primary: r ? c[900] : M,
|
|
897
|
+
secondary: r ? c[600] : m(M, 0.7),
|
|
898
|
+
disabled: r ? c[500] : m(M, 0.38)
|
|
899
899
|
},
|
|
900
900
|
error: {
|
|
901
901
|
...t,
|
|
@@ -923,50 +923,50 @@ const Ft = ({
|
|
|
923
923
|
},
|
|
924
924
|
grey: c,
|
|
925
925
|
action: {
|
|
926
|
-
active: r ? m(
|
|
926
|
+
active: r ? m(_, 0.56) : m(M, 0.56),
|
|
927
927
|
hoverOpacity: r ? 0.1 : 0.2,
|
|
928
928
|
selectedOpacity: r ? 0.16 : 0.25,
|
|
929
929
|
focusOpacity: 0.3
|
|
930
930
|
},
|
|
931
931
|
background: {
|
|
932
|
-
default: r ? i?.background?.default?.light ||
|
|
933
|
-
paper: r ? i?.background?.paper?.light ||
|
|
932
|
+
default: r ? i?.background?.default?.light || ke : i?.background?.default?.dark || we,
|
|
933
|
+
paper: r ? i?.background?.paper?.light || _e : i?.background?.paper?.dark || Be,
|
|
934
934
|
highlight: r ? c[200] : c[600],
|
|
935
935
|
highlightPrimary: r ? o[100] : o[500]
|
|
936
936
|
},
|
|
937
|
-
divider: r ? m(
|
|
937
|
+
divider: r ? m(_, 0.12) : m(M, 0.24),
|
|
938
938
|
categories: {
|
|
939
|
-
autoTransport: r ?
|
|
940
|
-
billsUtilities: r ?
|
|
941
|
-
businessServices: r ?
|
|
942
|
-
education: r ?
|
|
943
|
-
entertainment: r ?
|
|
944
|
-
feesCharges: r ?
|
|
945
|
-
financial: r ?
|
|
946
|
-
foodDining: r ?
|
|
947
|
-
giftsDonations: r ?
|
|
948
|
-
healthFitness: r ?
|
|
949
|
-
home: r ?
|
|
950
|
-
income: r ?
|
|
951
|
-
investments: r ?
|
|
952
|
-
kids: r ?
|
|
953
|
-
others: r ?
|
|
954
|
-
personalCare: r ?
|
|
955
|
-
pets: r ?
|
|
956
|
-
shopping: r ?
|
|
957
|
-
taxes: r ?
|
|
958
|
-
transfer: r ?
|
|
959
|
-
travel: r ?
|
|
960
|
-
uncategorized: r ?
|
|
939
|
+
autoTransport: r ? p.AUTO_TRANSPORTT : h.AUTO_TRANSPORTT,
|
|
940
|
+
billsUtilities: r ? p.BILLS_UTILITIES : h.BILLS_UTILITIES,
|
|
941
|
+
businessServices: r ? p.BUSINESS_SERVICES : h.BUSINESS_SERVICES,
|
|
942
|
+
education: r ? p.EDUCATION : h.EDUCATION,
|
|
943
|
+
entertainment: r ? p.ENTERTAINMENT : h.ENTERTAINMENT,
|
|
944
|
+
feesCharges: r ? p.FEES_CHARGES : h.FEES_CHARGES,
|
|
945
|
+
financial: r ? p.FINANCIAL : h.FINANCIAL,
|
|
946
|
+
foodDining: r ? p.FOOD_DINING : h.FOOD_DINING,
|
|
947
|
+
giftsDonations: r ? p.GIFTS_DONATIONS : h.GIFTS_DONATIONS,
|
|
948
|
+
healthFitness: r ? p.HEALTH_FITNESS : h.HEALTH_FITNESS,
|
|
949
|
+
home: r ? p.HOME : h.HOME,
|
|
950
|
+
income: r ? p.INCOME : h.INCOME,
|
|
951
|
+
investments: r ? p.INVESTMENTS : h.INVESTMENTS,
|
|
952
|
+
kids: r ? p.KIDS : h.KIDS,
|
|
953
|
+
others: r ? p.OTHERS : h.OTHERS,
|
|
954
|
+
personalCare: r ? p.PERSONAL_CARE : h.PERSONAL_CARE,
|
|
955
|
+
pets: r ? p.PETS : h.PETS,
|
|
956
|
+
shopping: r ? p.SHOPPING : h.SHOPPING,
|
|
957
|
+
taxes: r ? p.TAXES : h.TAXES,
|
|
958
|
+
transfer: r ? p.TRANSFER : h.TRANSFER,
|
|
959
|
+
travel: r ? p.TRAVEL : h.TRAVEL,
|
|
960
|
+
uncategorized: r ? p.UNCATEGORIZED : h.UNCATEGORIZED
|
|
961
961
|
},
|
|
962
962
|
chart: {
|
|
963
|
-
chart1:
|
|
964
|
-
chart2:
|
|
965
|
-
chart3:
|
|
966
|
-
chart4:
|
|
967
|
-
chart5:
|
|
968
|
-
chart6:
|
|
969
|
-
chart7:
|
|
963
|
+
chart1: C.CHART1,
|
|
964
|
+
chart2: C.CHART2,
|
|
965
|
+
chart3: C.CHART3,
|
|
966
|
+
chart4: C.CHART4,
|
|
967
|
+
chart5: C.CHART5,
|
|
968
|
+
chart6: C.CHART6,
|
|
969
|
+
chart7: C.CHART7
|
|
970
970
|
},
|
|
971
971
|
chartMono: {
|
|
972
972
|
chartMono1: A.CHART_MONO1,
|
|
@@ -977,8 +977,8 @@ const Ft = ({
|
|
|
977
977
|
chartMono6: A.CHART_MONO6
|
|
978
978
|
}
|
|
979
979
|
};
|
|
980
|
-
},
|
|
981
|
-
const i = e?.fontFamily ? `${e?.fontFamily}, ${
|
|
980
|
+
}, W = "Inter, Helvetica, Arial, sans-serif", ze = (e) => {
|
|
981
|
+
const i = e?.fontFamily ? `${e?.fontFamily}, ${W}` : W;
|
|
982
982
|
return {
|
|
983
983
|
fontFamily: i,
|
|
984
984
|
fontSize: 15,
|
|
@@ -1037,16 +1037,12 @@ const Ft = ({
|
|
|
1037
1037
|
...e
|
|
1038
1038
|
};
|
|
1039
1039
|
};
|
|
1040
|
-
|
|
1041
|
-
"
|
|
1040
|
+
Ee.setLicenseKey(
|
|
1041
|
+
"702b0c04dc7df078768d2d45cd3a98c6Tz0xMjEzMDYsRT0xNzkzNzUwMzk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
|
|
1042
1042
|
);
|
|
1043
|
-
const
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
k[3] = "0px 12px 20px rgba(106, 115, 129, 0.22)";
|
|
1047
|
-
const Ht = (e, i) => {
|
|
1048
|
-
const o = _e(e, i?.paletteOptions), n = Pe(i?.typographyOptions);
|
|
1049
|
-
return K({
|
|
1043
|
+
const Lt = (e, i) => {
|
|
1044
|
+
const o = Pe(e, i?.paletteOptions), n = ze(i?.typographyOptions);
|
|
1045
|
+
return te({
|
|
1050
1046
|
breakpoints: {
|
|
1051
1047
|
values: {
|
|
1052
1048
|
xs: 444,
|
|
@@ -1057,7 +1053,6 @@ const Ht = (e, i) => {
|
|
|
1057
1053
|
}
|
|
1058
1054
|
},
|
|
1059
1055
|
palette: o,
|
|
1060
|
-
shadows: k,
|
|
1061
1056
|
shape: {
|
|
1062
1057
|
borderRadius: i?.shapeOptions?.borderRadius || 4
|
|
1063
1058
|
},
|
|
@@ -1068,17 +1063,17 @@ const Ht = (e, i) => {
|
|
|
1068
1063
|
MuiAlert: {
|
|
1069
1064
|
defaultProps: {
|
|
1070
1065
|
iconMapping: {
|
|
1071
|
-
success: /* @__PURE__ */ a(
|
|
1072
|
-
error: /* @__PURE__ */ a(
|
|
1073
|
-
warning: /* @__PURE__ */ a(
|
|
1074
|
-
info: /* @__PURE__ */ a(
|
|
1066
|
+
success: /* @__PURE__ */ a(x, { fill: !0, name: "check_circle", size: 24 }),
|
|
1067
|
+
error: /* @__PURE__ */ a(x, { fill: !0, name: "error", size: 24 }),
|
|
1068
|
+
warning: /* @__PURE__ */ a(x, { fill: !0, name: "warning", size: 24 }),
|
|
1069
|
+
info: /* @__PURE__ */ a(x, { fill: !0, name: "info", size: 24 })
|
|
1075
1070
|
},
|
|
1076
1071
|
variant: "outlined"
|
|
1077
1072
|
},
|
|
1078
1073
|
styleOverrides: {
|
|
1079
1074
|
root: ({ theme: t, ownerState: s }) => {
|
|
1080
1075
|
const l = s.severity || "info";
|
|
1081
|
-
let d = t.palette.mode ===
|
|
1076
|
+
let d = t.palette.mode === E.LIGHT ? t.palette[l]?.[50] : t.palette[l]?.[800];
|
|
1082
1077
|
if (s.variant === "filled") {
|
|
1083
1078
|
const c = l === "warning";
|
|
1084
1079
|
d = t.palette[l]?.[c ? 400 : 600];
|
|
@@ -1166,7 +1161,7 @@ const Ht = (e, i) => {
|
|
|
1166
1161
|
MuiCircularProgress: {
|
|
1167
1162
|
styleOverrides: {
|
|
1168
1163
|
root: {
|
|
1169
|
-
[`& .${
|
|
1164
|
+
[`& .${Ae.circle}`]: {
|
|
1170
1165
|
strokeLinecap: "round"
|
|
1171
1166
|
}
|
|
1172
1167
|
}
|
|
@@ -1389,7 +1384,7 @@ const Ht = (e, i) => {
|
|
|
1389
1384
|
backgroundColor: t.palette.action.hover
|
|
1390
1385
|
},
|
|
1391
1386
|
"&:active": {
|
|
1392
|
-
backgroundColor: t.palette.mode ===
|
|
1387
|
+
backgroundColor: t.palette.mode === E.LIGHT ? t.palette[s].light : t.palette[s].dark
|
|
1393
1388
|
}
|
|
1394
1389
|
})
|
|
1395
1390
|
}
|
|
@@ -1712,7 +1707,7 @@ const Ht = (e, i) => {
|
|
|
1712
1707
|
outlineOffset: "2px"
|
|
1713
1708
|
},
|
|
1714
1709
|
"&:hover": {
|
|
1715
|
-
backgroundColor: m(o.primary.main, o.mode ===
|
|
1710
|
+
backgroundColor: m(o.primary.main, o.mode === E.LIGHT ? 0.1 : 0.2),
|
|
1716
1711
|
borderColor: o.primary.main
|
|
1717
1712
|
},
|
|
1718
1713
|
"&.Mui-selected": {
|
|
@@ -1736,7 +1731,7 @@ const Ht = (e, i) => {
|
|
|
1736
1731
|
props: { color: "error" },
|
|
1737
1732
|
style: {
|
|
1738
1733
|
"&:hover": {
|
|
1739
|
-
backgroundColor: m(o.error.main, o.mode ===
|
|
1734
|
+
backgroundColor: m(o.error.main, o.mode === E.LIGHT ? 0.1 : 0.2),
|
|
1740
1735
|
borderColor: o.error.main
|
|
1741
1736
|
},
|
|
1742
1737
|
"&.Mui-selected": {
|
|
@@ -1760,7 +1755,7 @@ const Ht = (e, i) => {
|
|
|
1760
1755
|
"&:hover": {
|
|
1761
1756
|
backgroundColor: m(
|
|
1762
1757
|
o.secondary.main,
|
|
1763
|
-
o.mode ===
|
|
1758
|
+
o.mode === E.LIGHT ? 0.1 : 0.2
|
|
1764
1759
|
),
|
|
1765
1760
|
borderColor: o.secondary.main
|
|
1766
1761
|
},
|
|
@@ -1800,33 +1795,33 @@ const Ht = (e, i) => {
|
|
|
1800
1795
|
});
|
|
1801
1796
|
};
|
|
1802
1797
|
export {
|
|
1803
|
-
|
|
1804
|
-
|
|
1798
|
+
L as BaseIcon,
|
|
1799
|
+
St as BottomSheetTransition,
|
|
1805
1800
|
g as CategoryGuids,
|
|
1806
1801
|
Fe as CategoryIcon,
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1802
|
+
Ie as CategoryIconList,
|
|
1803
|
+
Oe as CategoryIconVariants,
|
|
1804
|
+
Mt as DateRangePicker,
|
|
1805
|
+
Ne as DialogFooter,
|
|
1811
1806
|
Ot as DialogHeader,
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1807
|
+
It as Drawer,
|
|
1808
|
+
Ne as Footer,
|
|
1809
|
+
He as H1,
|
|
1815
1810
|
Ct as H2,
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1811
|
+
At as H3,
|
|
1812
|
+
W as INTER,
|
|
1813
|
+
x as Icon,
|
|
1814
|
+
yt as InstitutionLogo,
|
|
1815
|
+
Tt as MXLogoCopyrightIcon,
|
|
1816
|
+
xt as MXLogoFilledIcon,
|
|
1817
|
+
bt as MXLogoIcon,
|
|
1818
|
+
Rt as MXLogoOutlineIcon,
|
|
1819
|
+
Ft as MerchantLogo,
|
|
1820
|
+
Et as P,
|
|
1821
|
+
Ht as SelectionBox,
|
|
1822
|
+
F as Text,
|
|
1828
1823
|
vt as TextField,
|
|
1829
|
-
|
|
1830
|
-
|
|
1824
|
+
Nt as Toast,
|
|
1825
|
+
Lt as createMXTheme
|
|
1831
1826
|
};
|
|
1832
1827
|
//# sourceMappingURL=index.es.js.map
|