componentes-sinco 1.0.1-rc.3 → 1.0.1-rc.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.cjs ADDED
@@ -0,0 +1,3503 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __getProtoOf = Object.getPrototypeOf;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __objRest = (source, exclude) => {
26
+ var target = {};
27
+ for (var prop in source)
28
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
+ target[prop] = source[prop];
30
+ if (source != null && __getOwnPropSymbols)
31
+ for (var prop of __getOwnPropSymbols(source)) {
32
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
+ target[prop] = source[prop];
34
+ }
35
+ return target;
36
+ };
37
+ var __export = (target, all) => {
38
+ for (var name in all)
39
+ __defProp(target, name, { get: all[name], enumerable: true });
40
+ };
41
+ var __copyProps = (to, from, except, desc) => {
42
+ if (from && typeof from === "object" || typeof from === "function") {
43
+ for (let key of __getOwnPropNames(from))
44
+ if (!__hasOwnProp.call(to, key) && key !== except)
45
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
46
+ }
47
+ return to;
48
+ };
49
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
50
+ // If the importer is in node compatibility mode or this is not an ESM
51
+ // file that has been converted to a CommonJS file using a Babel-
52
+ // compatible transform (i.e. "__esModule" has not been set), then set
53
+ // "default" to the CommonJS "module.exports" for node compatibility.
54
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
55
+ mod
56
+ ));
57
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
58
+
59
+ // src/index.ts
60
+ var index_exports = {};
61
+ __export(index_exports, {
62
+ ADCSincoTheme: () => ADCSincoTheme,
63
+ AdproSincoTheme: () => AdproSincoTheme,
64
+ FooterAction: () => FooterAction,
65
+ PageHeader: () => PageHeader,
66
+ SCCalendarSwipeable: () => SCCalendarSwipeable,
67
+ SCDialog: () => SCDialog,
68
+ SCDrawer: () => SCDrawer,
69
+ SCMenu: () => SCMenu,
70
+ SCModal: () => SCModal,
71
+ SCMultiSelect: () => SCMultiSelect,
72
+ SCTabs: () => SCTabs,
73
+ SCTextArea: () => SCTextArea,
74
+ SCTextField: () => SCTextField,
75
+ SCToastNotification: () => SCToastNotification,
76
+ SincoTheme: () => SincoTheme,
77
+ ToastProgress: () => ToastProgress,
78
+ capitalize: () => capitalize,
79
+ getButtonColor: () => getButtonColor,
80
+ getIcon: () => getIcon,
81
+ getIconComponent: () => getIconComponent2,
82
+ getIconMultiSelect: () => getIconMultiSelect,
83
+ getModalColor: () => getModalColor,
84
+ modalStateConfig: () => modalStateConfig,
85
+ useFilteredItems: () => useFilteredItems,
86
+ useMultiSelectHandlers: () => useMultiSelectHandlers,
87
+ useProgress: () => useProgress
88
+ });
89
+ module.exports = __toCommonJS(index_exports);
90
+
91
+ // src/Components/Drawer/SCDrawer.tsx
92
+ var import_react5 = __toESM(require("react"), 1);
93
+ var import_material4 = require("@mui/material");
94
+ var import_Grid22 = __toESM(require("@mui/material/Grid2"), 1);
95
+ var import_Close = __toESM(require("@mui/icons-material/Close"), 1);
96
+
97
+ // src/Components/Textfield/SCTextField.tsx
98
+ var import_react = __toESM(require("react"), 1);
99
+ var import_material = require("@mui/material");
100
+ var import_Grid2 = __toESM(require("@mui/material/Grid2"), 1);
101
+ var import_icons_material = require("@mui/icons-material");
102
+
103
+ // src/Components/Textfield/Helpers/validateIcon.tsx
104
+ var Muicon = __toESM(require("@mui/icons-material"), 1);
105
+ function getIconComponent(name) {
106
+ if (typeof name !== "string") return name;
107
+ return name in Muicon ? Muicon[name] : void 0;
108
+ }
109
+ function getIconValidation(name) {
110
+ if (typeof name !== "string") {
111
+ return (name == null ? void 0 : name.type) ? "icon" : "text";
112
+ }
113
+ return name in Muicon ? "icon" : "text";
114
+ }
115
+
116
+ // src/Components/Textfield/Helpers/validateKeyDown.tsx
117
+ function validateKeyDown(event2, format2) {
118
+ const key = event2.key;
119
+ const target = event2.target;
120
+ if (format2 === "int" && !/^[0-9]$/.test(key)) {
121
+ event2.preventDefault();
122
+ }
123
+ if (format2 === "decimal" && (target.value === "" && key === "." || key === "-" || key === "+")) {
124
+ event2.preventDefault();
125
+ }
126
+ if (target.type === "text") {
127
+ const regex = /^[a-zA-ZáéíóúÁÉÍÓÚñÑ0-9\s_\-.,@]+$/;
128
+ if (!regex.test(key)) {
129
+ event2.preventDefault();
130
+ }
131
+ }
132
+ }
133
+
134
+ // src/Components/Textfield/Helpers/validateOnBlur.tsx
135
+ var validateOnBlurField = ({
136
+ value,
137
+ required = false,
138
+ setError,
139
+ onBlur
140
+ }) => (event2) => {
141
+ const isError = !value.trim() && required;
142
+ setError(isError);
143
+ if (onBlur) {
144
+ onBlur(event2);
145
+ }
146
+ };
147
+
148
+ // src/Components/Textfield/SCTextField.tsx
149
+ var SCTextField = ({
150
+ //informativas
151
+ title,
152
+ iconTitle,
153
+ infoTitle,
154
+ label = "",
155
+ placeholder = "",
156
+ infoElement,
157
+ iconInputStart,
158
+ iconInputEnd,
159
+ maxLength,
160
+ //Apariencia
161
+ variant = "outlined",
162
+ format: format2,
163
+ disabled,
164
+ required,
165
+ size,
166
+ width = "100%",
167
+ color,
168
+ background,
169
+ //Funcionales
170
+ state,
171
+ value,
172
+ onChange,
173
+ onBlur,
174
+ onKeyDown
175
+ }) => {
176
+ const inputComponents = {
177
+ outlined: import_material.OutlinedInput,
178
+ filled: import_material.FilledInput,
179
+ standard: import_material.Input
180
+ };
181
+ const InputComponent = inputComponents[variant] || import_material.OutlinedInput;
182
+ let IconInputStartValidation;
183
+ let IconInputEndValidation;
184
+ let IconInputStart;
185
+ let IconInputEnd;
186
+ let IconTitle;
187
+ const [showPassword, setShowPassword] = (0, import_react.useState)(false);
188
+ const [error, setError] = (0, import_react.useState)(false);
189
+ const [anchorInfoTitle, setAnchorInfoTitle] = (0, import_react.useState)(null);
190
+ const openInfoTitle = Boolean(anchorInfoTitle);
191
+ const [anchorInfoElement, setAnchorInfoElement] = (0, import_react.useState)(null);
192
+ const openInfoElement = Boolean(anchorInfoElement);
193
+ (0, import_react.useEffect)(() => {
194
+ if (error) {
195
+ setTimeout(() => {
196
+ setError(false);
197
+ }, 1e3);
198
+ }
199
+ }, [error]);
200
+ if (iconInputStart) {
201
+ IconInputStartValidation = getIconValidation(iconInputStart);
202
+ IconInputStart = getIconComponent(iconInputStart);
203
+ }
204
+ if (iconInputEnd) {
205
+ IconInputEndValidation = getIconValidation(iconInputEnd);
206
+ IconInputEnd = getIconComponent(iconInputEnd);
207
+ }
208
+ if (iconTitle) {
209
+ IconTitle = getIconComponent(iconTitle);
210
+ }
211
+ const handleClickShowPassword = () => setShowPassword((show) => !show);
212
+ const handleMouseDownPassword = (event2) => {
213
+ event2.preventDefault();
214
+ };
215
+ const handleKeyDown = (event2) => {
216
+ validateKeyDown(event2, format2);
217
+ if (onKeyDown) onKeyDown(event2);
218
+ };
219
+ const handleInputChange = (event2) => {
220
+ let valueMax = maxLength ? maxLength + 1 : 50;
221
+ if (event2.target.value.length < valueMax) {
222
+ if (state) {
223
+ state(event2.target.value);
224
+ }
225
+ if (onChange) {
226
+ onChange(event2);
227
+ }
228
+ }
229
+ };
230
+ const handleBlur = validateOnBlurField({ value, required, setError, onBlur });
231
+ const handleOpenInfoTitle = (event2) => {
232
+ setAnchorInfoTitle(event2.currentTarget);
233
+ };
234
+ const handleCloseInfoTitle = () => {
235
+ setAnchorInfoTitle(null);
236
+ };
237
+ const handleOpenInfoElement = (event2) => {
238
+ setAnchorInfoElement(event2.currentTarget);
239
+ };
240
+ const handleCloseInfoElement = () => {
241
+ setAnchorInfoElement(null);
242
+ };
243
+ return /* @__PURE__ */ import_react.default.createElement(import_material.Box, { sx: { width } }, /* @__PURE__ */ import_react.default.createElement(import_Grid2.default, { container: true, alignItems: "center", mb: 1.25, gap: 0.5 }, iconTitle && IconTitle ? /* @__PURE__ */ import_react.default.createElement(import_material.SvgIcon, { color: "action", fontSize: "small", component: IconTitle }) : "", title ? /* @__PURE__ */ import_react.default.createElement(import_material.Typography, { mx: 0.5, variant: "subtitle2", color: "text.secondary" }, title) : "", infoTitle ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, infoTitle.component === "popover" ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
244
+ import_icons_material.InfoOutlined,
245
+ {
246
+ color: "action",
247
+ fontSize: "small",
248
+ onMouseEnter: (event2) => handleOpenInfoTitle(event2),
249
+ onMouseLeave: () => handleCloseInfoTitle()
250
+ }
251
+ ), /* @__PURE__ */ import_react.default.createElement(
252
+ import_material.Popover,
253
+ {
254
+ sx: {
255
+ pointerEvents: "none",
256
+ "& .MuiBackdrop-root": {
257
+ backgroundColor: "transparent"
258
+ }
259
+ },
260
+ open: openInfoTitle,
261
+ anchorEl: anchorInfoTitle,
262
+ onClose: handleCloseInfoTitle,
263
+ anchorOrigin: {
264
+ vertical: "bottom",
265
+ horizontal: "left"
266
+ },
267
+ transformOrigin: {
268
+ vertical: "top",
269
+ horizontal: "left"
270
+ },
271
+ disableRestoreFocus: true
272
+ },
273
+ /* @__PURE__ */ import_react.default.createElement(import_material.Typography, { p: 2 }, infoTitle.text)
274
+ )) : /* @__PURE__ */ import_react.default.createElement(import_material.Tooltip, { title: infoTitle.text, "data-testid": "test-infoTitle", placement: "bottom-start", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ import_react.default.createElement(
275
+ import_icons_material.InfoOutlined,
276
+ {
277
+ color: "action",
278
+ fontSize: "small"
279
+ }
280
+ ))) : ""), /* @__PURE__ */ import_react.default.createElement(import_Grid2.default, { container: true, sx: { flexWrap: "nowrap", alignItems: "center" } }, /* @__PURE__ */ import_react.default.createElement(
281
+ import_material.FormControl,
282
+ {
283
+ color,
284
+ fullWidth: true,
285
+ size: size ? size : "medium",
286
+ variant,
287
+ sx: { background: background || "transparent", borderRadius: "4px" }
288
+ },
289
+ /* @__PURE__ */ import_react.default.createElement(
290
+ import_material.InputLabel,
291
+ {
292
+ "data-testid": "test-label",
293
+ htmlFor: "",
294
+ required: required && label !== "" ? true : false,
295
+ error,
296
+ disabled: disabled || false
297
+ },
298
+ label ? label : ""
299
+ ),
300
+ /* @__PURE__ */ import_react.default.createElement(
301
+ InputComponent,
302
+ {
303
+ size: size ? size : "medium",
304
+ fullWidth: true,
305
+ value,
306
+ error,
307
+ id: label == null ? void 0 : label.replace(/\s+/g, ""),
308
+ disabled: disabled != null ? disabled : false,
309
+ onKeyDown: handleKeyDown,
310
+ onChange: handleInputChange,
311
+ onBlur: handleBlur,
312
+ inputProps: { maxLength: maxLength ? maxLength : 50 },
313
+ type: !showPassword && format2 === "password" ? "password" : (format2 || "text").toUpperCase() === "INT" || (format2 || "text").toUpperCase() === "DECIMAL" ? "number" : "text",
314
+ className: format2 === "password" && !showPassword ? "" : "",
315
+ placeholder,
316
+ startAdornment: iconInputStart ? /* @__PURE__ */ import_react.default.createElement(import_material.InputAdornment, { position: "start" }, IconInputStartValidation === "text" ? iconInputStart : IconInputStart ? /* @__PURE__ */ import_react.default.createElement(IconInputStart, { fontSize: "small" }) : null) : "",
317
+ endAdornment: /* @__PURE__ */ import_react.default.createElement(import_material.InputAdornment, { position: "end" }, format2 === "password" ? /* @__PURE__ */ import_react.default.createElement(
318
+ import_material.IconButton,
319
+ {
320
+ "aria-label": "toggle password visibility",
321
+ onClick: handleClickShowPassword,
322
+ onMouseDown: handleMouseDownPassword,
323
+ edge: "end"
324
+ },
325
+ showPassword ? /* @__PURE__ */ import_react.default.createElement(import_icons_material.VisibilityOff, null) : /* @__PURE__ */ import_react.default.createElement(import_icons_material.Visibility, null)
326
+ ) : iconInputEnd === void 0 && infoElement !== void 0 ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, infoElement.component === "popover" ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
327
+ import_icons_material.InfoOutlined,
328
+ {
329
+ "data-testid": "test-infoElement",
330
+ sx: { ml: 0.5 },
331
+ color: "action",
332
+ fontSize: "small",
333
+ component: "svg",
334
+ onMouseEnter: (event2) => handleOpenInfoElement(event2),
335
+ onMouseLeave: () => handleCloseInfoElement()
336
+ }
337
+ ), /* @__PURE__ */ import_react.default.createElement(
338
+ import_material.Popover,
339
+ {
340
+ sx: {
341
+ pointerEvents: "none",
342
+ "& .MuiBackdrop-root": {
343
+ backgroundColor: "transparent"
344
+ }
345
+ },
346
+ open: openInfoElement,
347
+ anchorEl: anchorInfoElement,
348
+ onClose: handleCloseInfoElement,
349
+ anchorOrigin: {
350
+ vertical: "bottom",
351
+ horizontal: "left"
352
+ },
353
+ transformOrigin: {
354
+ vertical: "top",
355
+ horizontal: "left"
356
+ },
357
+ disableRestoreFocus: true
358
+ },
359
+ /* @__PURE__ */ import_react.default.createElement(import_material.Typography, { "data-testid": "test-popover-text", p: 2 }, infoElement.text)
360
+ )) : /* @__PURE__ */ import_react.default.createElement(import_material.Tooltip, { title: infoElement.text, placement: "bottom-end", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ import_react.default.createElement(
361
+ import_icons_material.InfoOutlined,
362
+ {
363
+ color: "action",
364
+ fontSize: "small"
365
+ }
366
+ ))) : iconInputEnd !== void 0 ? IconInputEndValidation === "text" ? iconInputEnd : IconInputEnd ? /* @__PURE__ */ import_react.default.createElement(IconInputEnd, { fontSize: "small" }) : null : ""),
367
+ label: label ? label + (format2 === "password" && !showPassword ? "" : "") : "",
368
+ autoComplete: format2 === "password" ? "new-password" : "off"
369
+ }
370
+ )
371
+ ), (iconInputEnd !== void 0 || format2 === "password") && infoElement ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, infoElement.component === "popover" ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
372
+ import_icons_material.InfoOutlined,
373
+ {
374
+ "data-testid": "test-infoElement",
375
+ component: "svg",
376
+ sx: { marginLeft: "4px" },
377
+ color: "action",
378
+ fontSize: "small",
379
+ onMouseEnter: (event2) => handleOpenInfoElement(event2),
380
+ onMouseLeave: handleCloseInfoElement
381
+ }
382
+ ), /* @__PURE__ */ import_react.default.createElement(
383
+ import_material.Popover,
384
+ {
385
+ sx: { pointerEvents: "none" },
386
+ open: openInfoElement,
387
+ anchorEl: anchorInfoElement,
388
+ onClose: handleCloseInfoElement,
389
+ anchorOrigin: {
390
+ vertical: "bottom",
391
+ horizontal: "left"
392
+ },
393
+ transformOrigin: {
394
+ vertical: "top",
395
+ horizontal: "left"
396
+ },
397
+ disableRestoreFocus: true
398
+ },
399
+ /* @__PURE__ */ import_react.default.createElement(import_material.Typography, { "data-testid": "test-popover-text", p: 2 }, infoElement.text)
400
+ )) : /* @__PURE__ */ import_react.default.createElement(import_material.Tooltip, { title: infoElement.text, placement: "bottom-end", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ import_react.default.createElement(
401
+ import_icons_material.InfoOutlined,
402
+ {
403
+ sx: { marginLeft: "4px" },
404
+ color: "action",
405
+ fontSize: "small"
406
+ }
407
+ ))) : ""));
408
+ };
409
+
410
+ // src/Components/ToastNotification/SCToastNotification.tsx
411
+ var import_react3 = __toESM(require("react"), 1);
412
+ var import_material2 = require("@mui/material");
413
+ var import_icons_material2 = require("@mui/icons-material");
414
+
415
+ // src/Components/ToastNotification/useProgress.ts
416
+ var import_react2 = require("react");
417
+ var useProgress = (timeProgress, lote) => {
418
+ const [progress, setProgress] = (0, import_react2.useState)(0);
419
+ (0, import_react2.useEffect)(() => {
420
+ const interval = setInterval(() => {
421
+ setProgress((prev) => {
422
+ if (prev >= 100) {
423
+ clearInterval(interval);
424
+ }
425
+ if (lote) {
426
+ const nextProgress = prev + lote;
427
+ return nextProgress <= 100 ? nextProgress : 100;
428
+ } else {
429
+ return prev + 1;
430
+ }
431
+ });
432
+ }, timeProgress * 10);
433
+ return () => {
434
+ clearInterval(interval);
435
+ };
436
+ }, [timeProgress, lote]);
437
+ return {
438
+ progress
439
+ };
440
+ };
441
+ var ToastProgress = (timeProgress) => {
442
+ const [progress, setProgress] = (0, import_react2.useState)(100);
443
+ (0, import_react2.useEffect)(() => {
444
+ const interval = setInterval(() => {
445
+ setProgress((prev) => {
446
+ if (prev <= 0) {
447
+ clearInterval(interval);
448
+ }
449
+ return prev - 1;
450
+ });
451
+ }, timeProgress * 10);
452
+ return () => {
453
+ clearInterval(interval);
454
+ };
455
+ }, [timeProgress]);
456
+ return {
457
+ progressToast: progress
458
+ };
459
+ };
460
+
461
+ // src/Components/ToastNotification/SCToastNotification.tsx
462
+ var SCToastNotification = (toast) => {
463
+ var _a;
464
+ const [stateOptions, setStateOptions] = (0, import_react3.useState)(true);
465
+ const [stateToast, setStateToast] = (0, import_react3.useState)(true);
466
+ const timeProgress = toast.time || 10;
467
+ const { progress } = useProgress(timeProgress);
468
+ const toastColorConfig = toast.type || "info";
469
+ const toastIconOption = {
470
+ success: /* @__PURE__ */ import_react3.default.createElement(import_icons_material2.CheckCircleRounded, { color: "success" }),
471
+ error: /* @__PURE__ */ import_react3.default.createElement(import_icons_material2.ErrorRounded, { color: "error" }),
472
+ warning: /* @__PURE__ */ import_react3.default.createElement(import_icons_material2.WarningRounded, { color: "warning" }),
473
+ info: /* @__PURE__ */ import_react3.default.createElement(import_icons_material2.InfoRounded, { color: "info" })
474
+ };
475
+ const acciones = [...toast.actions || [{ text: "Action", fn: () => {
476
+ alert("");
477
+ } }, { text: "Consultar", fn: () => {
478
+ } }]];
479
+ const ToastIconConfig = toastIconOption[toast.type];
480
+ const closeToast = () => {
481
+ setStateToast(false);
482
+ };
483
+ const toggleToastOptions = () => {
484
+ setStateOptions((prevShowOptions) => !prevShowOptions);
485
+ };
486
+ (0, import_react3.useEffect)(() => {
487
+ progress >= 100 && setStateToast(false);
488
+ }, [progress]);
489
+ return /* @__PURE__ */ import_react3.default.createElement(import_react3.default.Fragment, null, stateToast && /* @__PURE__ */ import_react3.default.createElement(
490
+ import_material2.Stack,
491
+ {
492
+ position: "fixed",
493
+ zIndex: 1400,
494
+ right: 16,
495
+ top: 16,
496
+ width: 370,
497
+ sx: {
498
+ boxShadow: (theme) => theme.shadows[8]
499
+ }
500
+ },
501
+ /* @__PURE__ */ import_react3.default.createElement(
502
+ import_material2.Box,
503
+ {
504
+ padding: 1.5,
505
+ gap: 1.5,
506
+ display: "flex",
507
+ alignItems: "center",
508
+ sx: {
509
+ backgroundColor: {
510
+ success: "success.50",
511
+ error: "error.50",
512
+ warning: "warning.50",
513
+ info: "info.50"
514
+ }[toastColorConfig]
515
+ }
516
+ },
517
+ /* @__PURE__ */ import_react3.default.createElement(
518
+ import_material2.Stack,
519
+ {
520
+ p: 1,
521
+ gap: 1,
522
+ borderRadius: 50,
523
+ bgcolor: {
524
+ success: "success.100",
525
+ error: "error.100",
526
+ warning: "warning.100",
527
+ info: "info.100"
528
+ }[(_a = toast.type) != null ? _a : "info"]
529
+ },
530
+ /* @__PURE__ */ import_react3.default.createElement(import_material2.Stack, null, ToastIconConfig)
531
+ ),
532
+ /* @__PURE__ */ import_react3.default.createElement(import_material2.Divider, { orientation: "vertical", flexItem: true }),
533
+ /* @__PURE__ */ import_react3.default.createElement(import_material2.Stack, { width: 285 }, /* @__PURE__ */ import_react3.default.createElement(
534
+ import_material2.Stack,
535
+ {
536
+ justifyContent: "space-between",
537
+ flexDirection: "row",
538
+ alignItems: "center"
539
+ },
540
+ /* @__PURE__ */ import_react3.default.createElement(import_material2.Typography, { variant: "subtitle2", color: "text.primary" }, toast.title),
541
+ /* @__PURE__ */ import_react3.default.createElement(
542
+ import_material2.IconButton,
543
+ {
544
+ size: "small",
545
+ "data-testid": "close-icon",
546
+ onClick: closeToast
547
+ },
548
+ /* @__PURE__ */ import_react3.default.createElement(import_icons_material2.Close, { fontSize: "small" })
549
+ )
550
+ ), /* @__PURE__ */ import_react3.default.createElement(import_material2.Stack, { gap: 0.5 }, /* @__PURE__ */ import_react3.default.createElement(import_material2.Typography, { color: "text.primary", variant: "body2" }, toast.subtitle), !stateOptions && toast.listITems && toast.listITems.length > 0 && /* @__PURE__ */ import_react3.default.createElement(import_material2.Stack, null, toast.listITems.map((element, i) => /* @__PURE__ */ import_react3.default.createElement(import_material2.Typography, { variant: "caption", key: i }, "\u2022 ", element)))), /* @__PURE__ */ import_react3.default.createElement(import_material2.Stack, { justifyContent: "flex-end", flexDirection: "row", gap: 0.5 }, toast.actions && toast.actions.length > 0 && /* @__PURE__ */ import_react3.default.createElement(import_material2.Stack, { flexDirection: "row", gap: 0.5 }, toast.actions.map((button, index) => /* @__PURE__ */ import_react3.default.createElement(
551
+ import_material2.Button,
552
+ {
553
+ key: index,
554
+ color: toast.type === "info" ? "info" : toast.type === "success" ? "success" : toast.type === "error" ? "error" : "warning",
555
+ variant: "text",
556
+ onClick: button.fn,
557
+ disabled: button.disabled || false,
558
+ size: "small"
559
+ },
560
+ button.text.charAt(0).toUpperCase() + button.text.slice(1).toLowerCase()
561
+ ))), toast.seeMore && /* @__PURE__ */ import_react3.default.createElement(
562
+ import_material2.Button,
563
+ {
564
+ onClick: toggleToastOptions,
565
+ size: "small",
566
+ variant: "text",
567
+ color: toastColorConfig
568
+ },
569
+ stateOptions ? "Ver m\xE1s" : "Ver menos",
570
+ stateOptions ? /* @__PURE__ */ import_react3.default.createElement(import_icons_material2.KeyboardArrowDown, null) : /* @__PURE__ */ import_react3.default.createElement(import_icons_material2.KeyboardArrowUp, null)
571
+ )))
572
+ ),
573
+ /* @__PURE__ */ import_react3.default.createElement(
574
+ import_material2.LinearProgress,
575
+ {
576
+ sx: {
577
+ ".MuiLinearProgress-bar": {
578
+ transition: "0.1s linear !important",
579
+ transform: "scaleX(-1)"
580
+ }
581
+ },
582
+ color: toastColorConfig,
583
+ variant: "determinate",
584
+ value: 100 - progress
585
+ }
586
+ )
587
+ ));
588
+ };
589
+
590
+ // src/Components/TextArea/Helpers/validateIcon.tsx
591
+ var MuiIcons = __toESM(require("@mui/icons-material"), 1);
592
+ function getIcon(name) {
593
+ if (!name || !(name in MuiIcons)) {
594
+ return null;
595
+ }
596
+ return MuiIcons[name];
597
+ }
598
+
599
+ // src/Components/TextArea/SCTextArea.tsx
600
+ var import_react4 = __toESM(require("react"), 1);
601
+ var import_material3 = require("@mui/material");
602
+ var import_icons_material3 = require("@mui/icons-material");
603
+ var SCTextArea = ({
604
+ //informativas
605
+ title,
606
+ iconTitle,
607
+ infoTitle,
608
+ label = "",
609
+ placeholder,
610
+ maxLength = 200,
611
+ //apariencia
612
+ variant,
613
+ disabled,
614
+ required,
615
+ width = "100%",
616
+ rows = 3,
617
+ colorTitle,
618
+ background,
619
+ //funcionales
620
+ state,
621
+ value,
622
+ onBlur
623
+ }) => {
624
+ const [helperCount, setHelperCount] = (0, import_react4.useState)(0);
625
+ const [stateError, setStateError] = (0, import_react4.useState)(false);
626
+ const [anchorInfoTitle, setAnchorInfoTitle] = import_react4.default.useState(null);
627
+ const openInfoTitle = Boolean(anchorInfoTitle);
628
+ (0, import_react4.useEffect)(() => {
629
+ setHelperCount(value == null ? void 0 : value.length);
630
+ }, [value]);
631
+ const IconTitle = getIcon(iconTitle);
632
+ const handleBlur = (event2) => {
633
+ if (required && value.trim() === "") {
634
+ setStateError(true);
635
+ setTimeout(() => {
636
+ setStateError(false);
637
+ }, 1e3);
638
+ return;
639
+ }
640
+ if (onBlur) {
641
+ onBlur(event2);
642
+ }
643
+ };
644
+ const handleOpenInfoTitle = (event2) => {
645
+ setAnchorInfoTitle(event2.currentTarget);
646
+ };
647
+ const handleCloseInfoTitle = () => {
648
+ setAnchorInfoTitle(null);
649
+ };
650
+ return /* @__PURE__ */ import_react4.default.createElement(import_react4.default.Fragment, null, /* @__PURE__ */ import_react4.default.createElement(import_material3.Box, { sx: { width } }, /* @__PURE__ */ import_react4.default.createElement(import_material3.Grid2, { container: true, sx: { alignItems: "center" }, gap: 0.5 }, iconTitle && IconTitle && /* @__PURE__ */ import_react4.default.createElement(import_material3.SvgIcon, { color: "action", fontSize: "small", component: IconTitle }), title && /* @__PURE__ */ import_react4.default.createElement(import_material3.Typography, { color: colorTitle || "text.secondary", variant: "subtitle2" }, title), infoTitle ? /* @__PURE__ */ import_react4.default.createElement(import_react4.default.Fragment, null, infoTitle.component === "popover" ? /* @__PURE__ */ import_react4.default.createElement(import_react4.default.Fragment, null, /* @__PURE__ */ import_react4.default.createElement(
651
+ import_icons_material3.InfoOutlined,
652
+ {
653
+ color: "action",
654
+ fontSize: "small",
655
+ onMouseEnter: (event2) => handleOpenInfoTitle(event2),
656
+ onMouseLeave: () => handleCloseInfoTitle()
657
+ }
658
+ ), /* @__PURE__ */ import_react4.default.createElement(
659
+ import_material3.Popover,
660
+ {
661
+ sx: { pointerEvents: "none" },
662
+ open: openInfoTitle,
663
+ anchorEl: anchorInfoTitle,
664
+ onClose: handleCloseInfoTitle,
665
+ anchorOrigin: {
666
+ vertical: "bottom",
667
+ horizontal: "left"
668
+ },
669
+ transformOrigin: {
670
+ vertical: "top",
671
+ horizontal: "left"
672
+ },
673
+ disableRestoreFocus: true
674
+ },
675
+ /* @__PURE__ */ import_react4.default.createElement(import_material3.Typography, { sx: { p: 2 } }, infoTitle.text)
676
+ )) : /* @__PURE__ */ import_react4.default.createElement(import_material3.Tooltip, { title: infoTitle.text, placement: "bottom-start", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ import_react4.default.createElement(
677
+ import_icons_material3.InfoOutlined,
678
+ {
679
+ color: "action",
680
+ fontSize: "small"
681
+ }
682
+ ))) : ""), /* @__PURE__ */ import_react4.default.createElement(import_material3.Stack, null, /* @__PURE__ */ import_react4.default.createElement(
683
+ import_material3.TextField,
684
+ {
685
+ required,
686
+ placeholder,
687
+ error: stateError,
688
+ variant,
689
+ sx: { mt: "10px", background: background || "transparent", borderRadius: "4px" },
690
+ id: "outlined-multiline-static",
691
+ label,
692
+ multiline: true,
693
+ disabled,
694
+ rows,
695
+ value,
696
+ onBlur: handleBlur,
697
+ onChange: (e) => {
698
+ if (state) {
699
+ state(e.target.value.substring(0, maxLength));
700
+ }
701
+ },
702
+ autoComplete: "off"
703
+ }
704
+ )), /* @__PURE__ */ import_react4.default.createElement(import_material3.Stack, null, /* @__PURE__ */ import_react4.default.createElement(
705
+ import_material3.Typography,
706
+ {
707
+ variant: "caption",
708
+ color: "text.secondary",
709
+ mr: 1,
710
+ mt: 1,
711
+ align: "right"
712
+ },
713
+ helperCount + "/" + maxLength
714
+ ))));
715
+ };
716
+
717
+ // src/Components/Drawer/Helpers/Utils.tsx
718
+ var Muicon2 = __toESM(require("@mui/icons-material"), 1);
719
+ var import_icons_material4 = require("@mui/icons-material");
720
+ var getIcon2 = (iconName) => {
721
+ if (iconName && iconName in Muicon2) {
722
+ return Muicon2[iconName];
723
+ }
724
+ return import_icons_material4.FilterListOutlined;
725
+ };
726
+ var cleanInputs = (arrayElements) => {
727
+ var _a, _b;
728
+ for (let i = 0; i < arrayElements.length; i++) {
729
+ if (arrayElements[i].component === void 0) {
730
+ (_b = (_a = arrayElements[i]).state) == null ? void 0 : _b.call(_a, "");
731
+ }
732
+ }
733
+ };
734
+
735
+ // src/Components/Drawer/Helpers/validateInput.tsx
736
+ var validateInputs = (arrayElements, onError, onSuccess) => {
737
+ var _a;
738
+ let requiredValues = 0;
739
+ let filledValues = 0;
740
+ for (let i = 0; i < arrayElements.length; i++) {
741
+ if (arrayElements[i].component === void 0) {
742
+ if (arrayElements[i].required) {
743
+ requiredValues++;
744
+ }
745
+ if (arrayElements[i].required && ((_a = arrayElements[i].value) == null ? void 0 : _a.trim()) !== "") {
746
+ filledValues++;
747
+ }
748
+ }
749
+ }
750
+ if (requiredValues === filledValues) {
751
+ onSuccess();
752
+ } else {
753
+ onError({
754
+ type: "error",
755
+ title: "Algunos campos son requeridos",
756
+ time: 10
757
+ });
758
+ }
759
+ };
760
+
761
+ // src/generales/capitalize.tsx
762
+ function capitalize(text) {
763
+ return text.charAt(0).toUpperCase() + text.slice(1);
764
+ }
765
+
766
+ // src/Components/Drawer/SCDrawer.tsx
767
+ var SCDrawer = ({
768
+ //informativas
769
+ title,
770
+ arrayElements = [],
771
+ actions,
772
+ buttonDrawer,
773
+ //Apariencia
774
+ colorTitle,
775
+ anchor = "left",
776
+ width,
777
+ //Funcionales
778
+ open
779
+ }) => {
780
+ var _a;
781
+ const [drawerOpen, setDrawerOpen] = import_react5.default.useState(open);
782
+ const [toast, setToast] = import_react5.default.useState(null);
783
+ const handleDrawerClose = () => {
784
+ setDrawerOpen(false);
785
+ };
786
+ const toggleDrawer = (newOpen) => () => {
787
+ setDrawerOpen(newOpen);
788
+ };
789
+ const ButtonIcon = getIcon2(buttonDrawer == null ? void 0 : buttonDrawer.icon);
790
+ const setToastWithDelay = (toastContent) => {
791
+ setToast(null);
792
+ setTimeout(() => {
793
+ setToast(toastContent);
794
+ }, 10);
795
+ };
796
+ const inputValidation = () => validateInputs(arrayElements, setToastWithDelay, handleDrawerClose);
797
+ const clean = () => cleanInputs(arrayElements);
798
+ actions = actions != null ? actions : [{ text: "Limpiar", fn: clean }, { text: "Consultar", fn: inputValidation }];
799
+ return /* @__PURE__ */ import_react5.default.createElement(import_react5.default.Fragment, null, toast && /* @__PURE__ */ import_react5.default.createElement(SCToastNotification, __spreadValues({}, toast)), /* @__PURE__ */ import_react5.default.createElement(
800
+ import_material4.Button,
801
+ {
802
+ "data-testid": "test-buttonDrawer",
803
+ sx: { textTransform: "capitalize" },
804
+ color: buttonDrawer == null ? void 0 : buttonDrawer.color,
805
+ onClick: toggleDrawer(true),
806
+ size: "small",
807
+ variant: (buttonDrawer == null ? void 0 : buttonDrawer.variant) != void 0 ? buttonDrawer == null ? void 0 : buttonDrawer.variant : "text",
808
+ startIcon: (buttonDrawer == null ? void 0 : buttonDrawer.iconPosition) === "left" || !(buttonDrawer == null ? void 0 : buttonDrawer.iconPosition) ? /* @__PURE__ */ import_react5.default.createElement(ButtonIcon, { color: (buttonDrawer == null ? void 0 : buttonDrawer.color) != void 0 ? buttonDrawer == null ? void 0 : buttonDrawer.color : "primary" }) : null,
809
+ endIcon: (buttonDrawer == null ? void 0 : buttonDrawer.iconPosition) === "right" ? /* @__PURE__ */ import_react5.default.createElement(ButtonIcon, { color: (buttonDrawer == null ? void 0 : buttonDrawer.color) != void 0 ? buttonDrawer == null ? void 0 : buttonDrawer.color : "primary" }) : null
810
+ },
811
+ capitalize((_a = buttonDrawer == null ? void 0 : buttonDrawer.text) != null ? _a : "Drawer")
812
+ ), /* @__PURE__ */ import_react5.default.createElement(
813
+ import_material4.Drawer,
814
+ {
815
+ open: drawerOpen,
816
+ onClose: toggleDrawer(false),
817
+ anchor: anchor != null ? anchor : "left",
818
+ sx: {
819
+ "& .MuiDrawer-paper": {
820
+ width: width != null ? width : "450px",
821
+ boxSizing: "border-box",
822
+ borderRadius: anchor !== "right" ? "0px 4px 4px 0px" : "4px 0px 0px 4px"
823
+ }
824
+ }
825
+ },
826
+ /* @__PURE__ */ import_react5.default.createElement(import_material4.Stack, { flexDirection: "column", height: "100%" }, /* @__PURE__ */ import_react5.default.createElement(import_Grid22.default, { container: true, sx: { backgroundColor: "secondary.main", alignItems: "center", height: "42px", textAlign: "left", padding: "10px 12px 10px 12px", justifyContent: "space-between", alignContent: "center" } }, /* @__PURE__ */ import_react5.default.createElement(import_material4.Typography, { variant: "h6", color: colorTitle || "text.primary" }, title != null ? title : "Personaliza tu b\xFAsqueda"), /* @__PURE__ */ import_react5.default.createElement(import_material4.IconButton, { onClick: handleDrawerClose }, /* @__PURE__ */ import_react5.default.createElement(import_Close.default, { color: "action", "data-testid": "test-button-close" }))), /* @__PURE__ */ import_react5.default.createElement(import_material4.Stack, { alignItems: "flex-start", height: "100%", gap: "16px", flex: 1, overflow: "auto", padding: "12px 16px 12px 16px" }, arrayElements == null ? void 0 : arrayElements.map((arrayElement, index) => {
827
+ var _a2, _b;
828
+ return /* @__PURE__ */ import_react5.default.createElement(
829
+ import_material4.Box,
830
+ {
831
+ key: `Stack_${(_a2 = arrayElement.type) != null ? _a2 : ""} ${(_b = arrayElement.label) != null ? _b : ""}${index}`,
832
+ sx: { width: "100%" }
833
+ },
834
+ arrayElement.component ? /* @__PURE__ */ import_react5.default.createElement(import_material4.Stack, { direction: "row", alignItems: "left", gap: 1 }, arrayElement.component) : arrayElement.type === "textField" ? /* @__PURE__ */ import_react5.default.createElement(
835
+ SCTextField,
836
+ {
837
+ title: arrayElement.title,
838
+ iconTitle: arrayElement.iconTitle,
839
+ infoTitle: arrayElement.infoTitle,
840
+ label: arrayElement.label,
841
+ placeholder: arrayElement.placeholder,
842
+ infoElement: arrayElement.infoElement,
843
+ iconInputStart: arrayElement.iconInputStart,
844
+ iconInputEnd: arrayElement.iconInputEnd,
845
+ maxLength: arrayElement.maxLength,
846
+ variant: arrayElement.variant,
847
+ format: arrayElement.format,
848
+ disabled: arrayElement.disabled,
849
+ required: arrayElement.required,
850
+ size: arrayElement.size,
851
+ width: arrayElement.width,
852
+ color: arrayElement.color,
853
+ background: arrayElement.background,
854
+ state: arrayElement.state,
855
+ value: arrayElement.value || "",
856
+ onChange: arrayElement.onChange,
857
+ onBlur: arrayElement.onBlur,
858
+ onKeyDown: arrayElement.onKeyDown
859
+ }
860
+ ) : arrayElement.type === "textArea" ? /* @__PURE__ */ import_react5.default.createElement(
861
+ SCTextArea,
862
+ {
863
+ title: arrayElement.title,
864
+ iconTitle: arrayElement.iconTitle,
865
+ infoTitle: arrayElement.infoTitle,
866
+ label: arrayElement.label,
867
+ placeholder: arrayElement.placeholder,
868
+ maxLength: arrayElement.maxLength,
869
+ variant: arrayElement.variant,
870
+ disabled: arrayElement.disabled,
871
+ required: arrayElement.required,
872
+ width: arrayElement.width,
873
+ rows: arrayElement.rows,
874
+ background: arrayElement.background,
875
+ state: arrayElement.state,
876
+ value: arrayElement.value || "",
877
+ onBlur: arrayElement.onBlur
878
+ }
879
+ ) : null
880
+ );
881
+ })), actions != void 0 && actions.length > 0 ? /* @__PURE__ */ import_react5.default.createElement(
882
+ import_Grid22.default,
883
+ {
884
+ container: true,
885
+ bgcolor: "background.default",
886
+ gap: 2,
887
+ padding: "9px 16px 9px 16px",
888
+ height: "42px",
889
+ alignItems: "center",
890
+ justifyContent: actions.length > 1 ? "space-between" : !anchor && anchor != "right" ? "flex-end" : "flex-start",
891
+ flexDirection: anchor != "right" ? "row-reverse" : "row"
892
+ },
893
+ actions.map((btn, index) => /* @__PURE__ */ import_react5.default.createElement(
894
+ import_material4.Button,
895
+ {
896
+ key: index,
897
+ variant: index === 0 || actions && actions.length < 2 ? "contained" : "text",
898
+ color: "primary",
899
+ onClick: btn.fn,
900
+ disabled: btn.disabled || false,
901
+ size: "small"
902
+ },
903
+ btn.text
904
+ ))
905
+ ) : "")
906
+ ));
907
+ };
908
+
909
+ // src/Components/MultiSelect/SCMultiSelect.tsx
910
+ var import_react8 = __toESM(require("react"), 1);
911
+ var import_material5 = require("@mui/material");
912
+ var import_icons_material6 = require("@mui/icons-material");
913
+
914
+ // src/Components/MultiSelect/helpers/useHandlers.tsx
915
+ var import_react6 = require("react");
916
+ function useMultiSelectHandlers() {
917
+ const [anchorEl, setAnchorEl] = (0, import_react6.useState)(null);
918
+ const [open, setOpen] = (0, import_react6.useState)(false);
919
+ const [selectedItems, setSelectedItems] = (0, import_react6.useState)([]);
920
+ const [filterValue, setFilterValue] = (0, import_react6.useState)("");
921
+ const handleOpen = (0, import_react6.useCallback)((e) => {
922
+ setAnchorEl(e.currentTarget);
923
+ setOpen(true);
924
+ }, []);
925
+ const handleClose = (0, import_react6.useCallback)(() => {
926
+ setAnchorEl(null);
927
+ setOpen(false);
928
+ }, []);
929
+ const handleFilterChange = (0, import_react6.useCallback)(
930
+ (e) => {
931
+ setFilterValue(e.target.value);
932
+ },
933
+ []
934
+ );
935
+ const handleCheckboxToggle = (0, import_react6.useCallback)((item) => {
936
+ setSelectedItems(
937
+ (prev) => prev.includes(item) ? prev.filter((i) => i !== item) : [...prev, item]
938
+ );
939
+ }, []);
940
+ return {
941
+ anchorEl,
942
+ open,
943
+ selectedItems,
944
+ filterValue,
945
+ setSelectedItems,
946
+ handleOpen,
947
+ handleClose,
948
+ handleFilterChange,
949
+ handleCheckboxToggle,
950
+ setOpen
951
+ };
952
+ }
953
+
954
+ // src/Components/MultiSelect/helpers/Utils.tsx
955
+ var MuiIcons2 = __toESM(require("@mui/icons-material"), 1);
956
+ var import_icons_material5 = require("@mui/icons-material");
957
+ function getIconMultiSelect(name) {
958
+ return name in MuiIcons2 ? MuiIcons2[name] : import_icons_material5.FilterListOutlined;
959
+ }
960
+
961
+ // src/Components/MultiSelect/helpers/useFilteredItems.tsx
962
+ var import_react7 = require("react");
963
+ function useFilteredItems(items, filterValue, getItemLabel, selectedItems) {
964
+ const filteredItems = (0, import_react7.useMemo)(
965
+ () => items.filter(
966
+ (item) => getItemLabel(item).toLowerCase().includes(filterValue.toLowerCase())
967
+ ),
968
+ [items, filterValue, getItemLabel]
969
+ );
970
+ const sortedItems = (0, import_react7.useMemo)(() => {
971
+ return [
972
+ ...filteredItems.filter((item) => selectedItems.includes(item)),
973
+ ...filteredItems.filter((item) => !selectedItems.includes(item))
974
+ ];
975
+ }, [filteredItems, selectedItems]);
976
+ return { filteredItems, sortedItems };
977
+ }
978
+
979
+ // src/Components/MultiSelect/SCMultiSelect.tsx
980
+ function SCMultiSelect({
981
+ textButton,
982
+ button,
983
+ items,
984
+ topPanel,
985
+ actions,
986
+ dense = false,
987
+ open,
988
+ selectAll = false,
989
+ getItemLabel
990
+ }) {
991
+ var _a, _b;
992
+ const {
993
+ anchorEl,
994
+ open: openMultiselect,
995
+ selectedItems,
996
+ filterValue,
997
+ setSelectedItems,
998
+ handleOpen,
999
+ handleClose,
1000
+ handleFilterChange,
1001
+ handleCheckboxToggle,
1002
+ setOpen
1003
+ } = useMultiSelectHandlers();
1004
+ (0, import_react8.useEffect)(() => {
1005
+ if (open !== void 0) {
1006
+ setOpen(open);
1007
+ }
1008
+ }, [open, setOpen]);
1009
+ (0, import_react8.useEffect)(() => {
1010
+ setSelectedItems([]);
1011
+ }, [items, setSelectedItems]);
1012
+ const { filteredItems, sortedItems } = useFilteredItems(items, filterValue, getItemLabel, selectedItems);
1013
+ const Icon = (0, import_react8.useMemo)(() => {
1014
+ var _a2;
1015
+ return getIconMultiSelect((_a2 = button == null ? void 0 : button.icon) != null ? _a2 : "FilterListOutlined");
1016
+ }, [button == null ? void 0 : button.icon]);
1017
+ const handleSelectAll = () => {
1018
+ const allSelected2 = selectedItems.length === filteredItems.length;
1019
+ setSelectedItems(allSelected2 ? [] : filteredItems);
1020
+ };
1021
+ const allSelected = filteredItems.length > 0 && selectedItems.length === filteredItems.length;
1022
+ const resolvedActions = actions != null ? actions : [
1023
+ { text: "Limpiar", fn: handleClose },
1024
+ { text: "Aplicar", fn: () => {
1025
+ } }
1026
+ ];
1027
+ return /* @__PURE__ */ import_react8.default.createElement(import_react8.default.Fragment, null, /* @__PURE__ */ import_react8.default.createElement(
1028
+ import_material5.Button,
1029
+ {
1030
+ "test-id": "multiselect-button",
1031
+ color: (_a = button == null ? void 0 : button.color) != null ? _a : "primary",
1032
+ onClick: handleOpen,
1033
+ variant: (_b = button == null ? void 0 : button.variant) != null ? _b : "text",
1034
+ size: "small",
1035
+ startIcon: (button == null ? void 0 : button.iconPosition) === "left" || !(button == null ? void 0 : button.iconPosition) ? /* @__PURE__ */ import_react8.default.createElement(Icon, null) : null,
1036
+ endIcon: (button == null ? void 0 : button.iconPosition) === "right" ? /* @__PURE__ */ import_react8.default.createElement(Icon, null) : null
1037
+ },
1038
+ capitalize(textButton != null ? textButton : "MultiSelect")
1039
+ ), /* @__PURE__ */ import_react8.default.createElement(
1040
+ import_material5.Popover,
1041
+ {
1042
+ elevation: 8,
1043
+ anchorEl,
1044
+ anchorOrigin: { vertical: "bottom", horizontal: "left" },
1045
+ open: openMultiselect,
1046
+ onClose: () => setOpen(false)
1047
+ },
1048
+ /* @__PURE__ */ import_react8.default.createElement(import_material5.Stack, { minWidth: "320px", "data-testid": "multiselect-container", bgcolor: "white", boxShadow: 3, borderRadius: 1 }, /* @__PURE__ */ import_react8.default.createElement(import_material5.Stack, { py: 1, px: 2 }, topPanel != null ? topPanel : /* @__PURE__ */ import_react8.default.createElement(import_material5.FormControl, { fullWidth: true, size: "small" }, /* @__PURE__ */ import_react8.default.createElement(
1049
+ import_material5.TextField,
1050
+ {
1051
+ "data-testid": "multiselect-input",
1052
+ fullWidth: true,
1053
+ size: "small",
1054
+ variant: "outlined",
1055
+ placeholder: "Buscar",
1056
+ value: filterValue,
1057
+ onChange: handleFilterChange,
1058
+ slotProps: {
1059
+ input: {
1060
+ endAdornment: /* @__PURE__ */ import_react8.default.createElement(import_material5.InputAdornment, { position: "end" }, /* @__PURE__ */ import_react8.default.createElement(import_icons_material6.SearchOutlined, { fontSize: "small" }))
1061
+ }
1062
+ }
1063
+ }
1064
+ ))), /* @__PURE__ */ import_react8.default.createElement(import_material5.Stack, { maxHeight: "300px", overflow: "auto" }, selectAll && /* @__PURE__ */ import_react8.default.createElement(import_material5.MenuItem, { dense, onClick: handleSelectAll }, /* @__PURE__ */ import_react8.default.createElement(import_material5.ListItemIcon, null, /* @__PURE__ */ import_react8.default.createElement(import_material5.Checkbox, { checked: allSelected, color: "primary" })), "Todos los items"), sortedItems.length > 0 ? sortedItems.map((item) => /* @__PURE__ */ import_react8.default.createElement(
1065
+ import_material5.MenuItem,
1066
+ {
1067
+ key: getItemLabel(item),
1068
+ dense,
1069
+ onClick: () => handleCheckboxToggle(item)
1070
+ },
1071
+ /* @__PURE__ */ import_react8.default.createElement(import_material5.ListItemIcon, null, /* @__PURE__ */ import_react8.default.createElement(
1072
+ import_material5.Checkbox,
1073
+ {
1074
+ checked: selectedItems.includes(item),
1075
+ color: "primary"
1076
+ }
1077
+ )),
1078
+ getItemLabel(item)
1079
+ )) : /* @__PURE__ */ import_react8.default.createElement(import_material5.MenuItem, { disabled: true }, "No se encontraron resultados")), /* @__PURE__ */ import_react8.default.createElement(import_material5.Stack, { direction: "row", gap: 1, p: 1, justifyContent: "space-between", bgcolor: "grey.50" }, resolvedActions.map((button2, index) => {
1080
+ var _a2;
1081
+ return /* @__PURE__ */ import_react8.default.createElement(
1082
+ import_material5.Button,
1083
+ {
1084
+ key: index,
1085
+ variant: index === 0 || resolvedActions.length < 2 ? "text" : "contained",
1086
+ onClick: button2.fn,
1087
+ disabled: (_a2 = button2.disabled) != null ? _a2 : false,
1088
+ size: "small"
1089
+ },
1090
+ capitalize(button2.text)
1091
+ );
1092
+ })))
1093
+ ));
1094
+ }
1095
+
1096
+ // src/Components/SCDialog.tsx
1097
+ var import_react9 = __toESM(require("react"), 1);
1098
+ var import_material6 = require("@mui/material");
1099
+ var import_Grid23 = __toESM(require("@mui/material/Grid2"), 1);
1100
+ var import_Close2 = __toESM(require("@mui/icons-material/Close"), 1);
1101
+ var Muicon3 = __toESM(require("@mui/icons-material"), 1);
1102
+ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, disableClose, dividers, widthContent, heightContent, background, setShow, show }) => {
1103
+ let i = 0;
1104
+ let iconTitleValidation = "";
1105
+ let IconTitle;
1106
+ let ButtonIcon;
1107
+ const [open, setOpen] = (0, import_react9.useState)(show);
1108
+ (0, import_react9.useEffect)(() => {
1109
+ if (show) {
1110
+ handleOpen();
1111
+ }
1112
+ }, [show]);
1113
+ if ((buttonDialog == null ? void 0 : buttonDialog.icon) != void 0) {
1114
+ if (Muicon3[buttonDialog == null ? void 0 : buttonDialog.icon] == void 0) {
1115
+ ButtonIcon = buttonDialog == null ? void 0 : buttonDialog.icon;
1116
+ } else {
1117
+ ButtonIcon = Muicon3[buttonDialog == null ? void 0 : buttonDialog.icon];
1118
+ }
1119
+ }
1120
+ if (iconTitle) {
1121
+ if (Muicon3[iconTitle] == void 0) {
1122
+ if (iconTitle && import_react9.default.isValidElement(iconTitle) && iconTitle.type == void 0) {
1123
+ iconTitleValidation = "image";
1124
+ IconTitle = iconTitle;
1125
+ } else {
1126
+ iconTitleValidation = "icon";
1127
+ IconTitle = iconTitle;
1128
+ }
1129
+ } else {
1130
+ iconTitleValidation = "icon";
1131
+ IconTitle = Muicon3[iconTitle];
1132
+ }
1133
+ }
1134
+ const handleOpen = () => setOpen(true);
1135
+ const handleClose = () => {
1136
+ setOpen(false);
1137
+ if (setShow) {
1138
+ setShow(false);
1139
+ }
1140
+ };
1141
+ const dialogActions = actions != null ? actions : [{ text: "Cerrar", fn: handleClose }];
1142
+ content = content != null ? content : { component: /* @__PURE__ */ import_react9.default.createElement(import_material6.Box, null, " Aqui va el contenido ") };
1143
+ return /* @__PURE__ */ import_react9.default.createElement("div", null, buttonDialog ? /* @__PURE__ */ import_react9.default.createElement(import_react9.default.Fragment, null, buttonDialog.text != void 0 ? /* @__PURE__ */ import_react9.default.createElement(import_material6.Tooltip, { placement: "bottom-start", title: buttonDialog.tooltip != void 0 ? buttonDialog.tooltip : "", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ import_react9.default.createElement(import_material6.Button, { size: "small", color: buttonDialog.color != void 0 ? buttonDialog.color : "primary", variant: (buttonDialog == null ? void 0 : buttonDialog.variant) != void 0 ? buttonDialog == null ? void 0 : buttonDialog.variant : "text", startIcon: (buttonDialog == null ? void 0 : buttonDialog.iconPosition) == "left" || !(buttonDialog == null ? void 0 : buttonDialog.iconPosition) ? /* @__PURE__ */ import_react9.default.createElement(ButtonIcon, { color: buttonDialog.color != void 0 ? buttonDialog.color : "primary" }) : "", endIcon: (buttonDialog == null ? void 0 : buttonDialog.iconPosition) == "right" ? /* @__PURE__ */ import_react9.default.createElement(ButtonIcon, { color: buttonDialog.color != void 0 ? buttonDialog.color : "primary" }) : "", onClick: handleOpen }, " ", (buttonDialog == null ? void 0 : buttonDialog.text) != void 0 ? buttonDialog.text : "", " ")) : /* @__PURE__ */ import_react9.default.createElement(import_material6.IconButton, { style: { cursor: "pointer" }, onClick: handleOpen }, /* @__PURE__ */ import_react9.default.createElement(import_material6.SvgIcon, { fontSize: "small", color: (buttonDialog == null ? void 0 : buttonDialog.color) != void 0 ? buttonDialog == null ? void 0 : buttonDialog.color : "action", component: ButtonIcon }))) : "", /* @__PURE__ */ import_react9.default.createElement(import_material6.Modal, { open: open || false, onClose: handleClose }, /* @__PURE__ */ import_react9.default.createElement(
1144
+ import_material6.Dialog,
1145
+ {
1146
+ open: open || false,
1147
+ onClose: disableClose ? void 0 : handleClose,
1148
+ maxWidth: "xl",
1149
+ sx: {
1150
+ width: "100% !important",
1151
+ "& .MuiBackdrop-root": {
1152
+ backdropFilter: "blur(0px) !important"
1153
+ }
1154
+ }
1155
+ },
1156
+ title && /* @__PURE__ */ import_react9.default.createElement(import_material6.DialogTitle, { sx: { m: 0, padding: "8px 16px 8px 16px" }, id: "dialog-title" }, /* @__PURE__ */ import_react9.default.createElement(import_Grid23.default, { container: true, size: 12, sx: { justifyContent: "space-between" } }, /* @__PURE__ */ import_react9.default.createElement(import_Grid23.default, { container: true, size: 11, sx: { alignItems: "center" } }, iconTitle ? iconTitleValidation == "image" ? /* @__PURE__ */ import_react9.default.createElement(import_material6.Box, { sx: { marginRight: "16px", width: "44px", height: "44px", borderRadius: "1px" } }, /* @__PURE__ */ import_react9.default.createElement("img", { src: IconTitle, width: "44px", height: "44px" })) : /* @__PURE__ */ import_react9.default.createElement(import_material6.SvgIcon, { color: "action", fontSize: "small", component: IconTitle, sx: { marginRight: "16px" } }) : "", /* @__PURE__ */ import_react9.default.createElement(import_Grid23.default, null, /* @__PURE__ */ import_react9.default.createElement(import_material6.Typography, { color: "text.primary", variant: "h6", gutterBottom: true }, title ? title : ""), /* @__PURE__ */ import_react9.default.createElement(import_material6.Typography, { color: "text.secondary", variant: "body2", gutterBottom: true }, subtitle ? subtitle : ""))), disableClose != true ? /* @__PURE__ */ import_react9.default.createElement(import_material6.IconButton, { onClick: handleClose, size: "small", color: "default", sx: { height: 22, width: 22 } }, /* @__PURE__ */ import_react9.default.createElement(import_Close2.default, null)) : "")),
1157
+ /* @__PURE__ */ import_react9.default.createElement(
1158
+ import_material6.DialogContent,
1159
+ {
1160
+ dividers: dividers ? dividers : false,
1161
+ sx: {
1162
+ m: 0,
1163
+ padding: "12px 16px 8px 16px",
1164
+ background: background ? background : "white",
1165
+ height: !heightContent ? "508px" : heightContent,
1166
+ width: widthContent == "extra-small" ? "444px" : widthContent == "small" ? "600px" : widthContent == "medium" ? "900px" : widthContent == "large" ? "1200px" : widthContent == "extra-large" ? "1536px" : "900px"
1167
+ }
1168
+ },
1169
+ content.url ? /* @__PURE__ */ import_react9.default.createElement(
1170
+ "iframe",
1171
+ {
1172
+ style: { border: "none", minWidth: "100%", minHeight: "100%" },
1173
+ id: "inlineFrameExample",
1174
+ title: "Inline Frame Example",
1175
+ src: content.url
1176
+ }
1177
+ ) : content.component
1178
+ ),
1179
+ dialogActions.length > 0 ? /* @__PURE__ */ import_react9.default.createElement(import_material6.DialogActions, { sx: { gap: 1, m: 0, padding: "12px 16px 12px 16px" } }, dialogActions.map((boton) => /* @__PURE__ */ import_react9.default.createElement(
1180
+ import_material6.Button,
1181
+ {
1182
+ key: i = i + 1,
1183
+ autoFocus: true,
1184
+ variant: i == 1 || dialogActions.length < 2 ? "contained" : "text",
1185
+ color: "primary",
1186
+ size: "small",
1187
+ onClick: boton.fn,
1188
+ disabled: boton.disabled || false
1189
+ },
1190
+ boton.text
1191
+ ))) : ""
1192
+ )));
1193
+ };
1194
+
1195
+ // src/Components/SCMenu.tsx
1196
+ var import_react11 = __toESM(require("react"), 1);
1197
+ var import_material7 = require("@mui/material");
1198
+ var import_Grid24 = __toESM(require("@mui/material/Grid2"), 1);
1199
+
1200
+ // src/Components/Hooks/useWindowDimensions.ts
1201
+ var import_react10 = require("react");
1202
+ function getWindowDimensions() {
1203
+ const { innerWidth: width, innerHeight: height } = window;
1204
+ return {
1205
+ width,
1206
+ height
1207
+ };
1208
+ }
1209
+ function useWindowDimensions() {
1210
+ const [windowDimensions, setWindowDimensions] = (0, import_react10.useState)(getWindowDimensions());
1211
+ (0, import_react10.useEffect)(() => {
1212
+ function handleResize() {
1213
+ setWindowDimensions(getWindowDimensions());
1214
+ }
1215
+ window.addEventListener("resize", handleResize);
1216
+ return () => window.removeEventListener("resize", handleResize);
1217
+ }, []);
1218
+ return windowDimensions;
1219
+ }
1220
+
1221
+ // src/Components/SCMenu.tsx
1222
+ var Muicon4 = __toESM(require("@mui/icons-material"), 1);
1223
+ var SCMenu = ({ header, options, defaultOption, disable, widthMenu, heightMenu, widthPage }) => {
1224
+ const { height, width } = useWindowDimensions();
1225
+ const menuSize = widthMenu ? parseInt(widthMenu) : 284;
1226
+ const pageSize = widthPage ? parseInt(widthPage) : width - menuSize;
1227
+ const widthContainer = menuSize + pageSize;
1228
+ let heightContainer = heightMenu ? parseInt(heightMenu) : height - 76;
1229
+ const [selectedIndex, setSelectedIndex] = import_react11.default.useState("1");
1230
+ const [value, setValue] = import_react11.default.useState("1");
1231
+ import_react11.default.useEffect(() => {
1232
+ heightContainer = heightMenu ? parseInt(heightMenu) : height - 76;
1233
+ }, [height]);
1234
+ import_react11.default.useEffect(() => {
1235
+ if (defaultOption) {
1236
+ handleClickMenusItem(event, void 0);
1237
+ }
1238
+ }, [defaultOption]);
1239
+ options.map(function(option, index, array) {
1240
+ if (option == null ? void 0 : option.iconLeft) {
1241
+ if ((option == null ? void 0 : option.iconLeft.type) == void 0) {
1242
+ option.iconLeft = Muicon4[option == null ? void 0 : option.iconLeft];
1243
+ } else {
1244
+ option;
1245
+ }
1246
+ }
1247
+ if (option == null ? void 0 : option.iconRight) {
1248
+ if ((option == null ? void 0 : option.iconRight.type) == void 0) {
1249
+ option.iconRight = Muicon4[option == null ? void 0 : option.iconRight];
1250
+ } else {
1251
+ option;
1252
+ }
1253
+ }
1254
+ });
1255
+ const handleClickMenusItem = (event2, index) => {
1256
+ if (defaultOption && index == void 0) {
1257
+ setSelectedIndex(defaultOption);
1258
+ setValue(defaultOption);
1259
+ } else if (index != void 0) {
1260
+ setSelectedIndex(String(index + 1));
1261
+ setValue(String(index + 1));
1262
+ }
1263
+ };
1264
+ return /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, /* @__PURE__ */ import_react11.default.createElement(import_Grid24.default, { container: true, sx: { height: heightContainer, width: widthContainer, flexDirection: "column" } }, /* @__PURE__ */ import_react11.default.createElement(import_material7.Paper, { sx: { width: menuSize, height: heightContainer, overflow: "auto" } }, header && header.component, /* @__PURE__ */ import_react11.default.createElement(import_material7.MenuList, { sx: { height: options.length * 45, padding: "8px 0px" } }, options.map((option, index) => /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, /* @__PURE__ */ import_react11.default.createElement(
1265
+ import_material7.MenuItem,
1266
+ {
1267
+ disabled: disable == true ? true : false,
1268
+ key: index,
1269
+ selected: String(index + 1) === selectedIndex,
1270
+ onClick: (event2) => handleClickMenusItem(event2, index)
1271
+ },
1272
+ option.iconLeft ? /* @__PURE__ */ import_react11.default.createElement(import_material7.ListItemIcon, { sx: { color: String(index + 1) === selectedIndex ? "primary" : "active" } }, /* @__PURE__ */ import_react11.default.createElement(import_material7.SvgIcon, { fontSize: "small", color: String(index + 1) === selectedIndex ? "primary" : "action", component: option.iconLeft })) : "",
1273
+ /* @__PURE__ */ import_react11.default.createElement(import_Grid24.default, { container: true, size: 12, sx: { maxWidth: 220, flexWrap: "noWrap", alignItems: "center" } }, /* @__PURE__ */ import_react11.default.createElement(import_material7.Typography, { noWrap: true, variant: "caption", color: String(index + 1) === selectedIndex ? "primary" : "active" }, option.name), option.iconRight ? /* @__PURE__ */ import_react11.default.createElement(import_material7.ListItemIcon, { sx: { minWidth: "0px !important", color: String(index + 1) === selectedIndex ? "primary" : "active" } }, /* @__PURE__ */ import_react11.default.createElement(import_material7.SvgIcon, { fontSize: "small", color: String(index + 1) === selectedIndex ? "primary" : "action", component: option.iconRight })) : "")
1274
+ ), option.divider == true ? /* @__PURE__ */ import_react11.default.createElement(import_material7.Divider, null) : "")))), /* @__PURE__ */ import_react11.default.createElement(import_Grid24.default, { container: true }, options.map((option, index) => option.page ? String(index + 1) == value ? /* @__PURE__ */ import_react11.default.createElement(import_material7.Box, { sx: { padding: "16px", width: pageSize, height: heightContainer }, key: index }, option.page) : "" : /* @__PURE__ */ import_react11.default.createElement(import_material7.Typography, { color: "error" }, "No se ha configurado el componente a visualizar")))));
1275
+ };
1276
+
1277
+ // src/Components/SCTabs.tsx
1278
+ var import_react12 = __toESM(require("react"), 1);
1279
+ var import_material8 = require("@mui/material");
1280
+ var import_TabPanel = __toESM(require("@mui/lab/TabPanel"), 1);
1281
+ var import_TabContext = __toESM(require("@mui/lab/TabContext"), 1);
1282
+ var Muicon5 = __toESM(require("@mui/icons-material"), 1);
1283
+ var SCTabs = ({ options, defaultOption, background, iconPosition, colorTab, orientation, variant, scrollButtons, children }) => {
1284
+ let i = 0;
1285
+ let j = 0;
1286
+ let k = 0;
1287
+ let l = 0;
1288
+ const [value, setValue] = import_react12.default.useState("1");
1289
+ (0, import_react12.useEffect)(() => {
1290
+ if (defaultOption) {
1291
+ handleChange(event, void 0);
1292
+ }
1293
+ }, [defaultOption]);
1294
+ options.map(function(option) {
1295
+ if (option == null ? void 0 : option.icon) {
1296
+ if ((option == null ? void 0 : option.icon.type) == void 0) {
1297
+ option.icon = Muicon5[option == null ? void 0 : option.icon];
1298
+ } else {
1299
+ option;
1300
+ }
1301
+ }
1302
+ });
1303
+ const handleChange = (event2, newValue) => {
1304
+ if (defaultOption && newValue == void 0) {
1305
+ setValue(defaultOption);
1306
+ } else if (newValue != void 0) {
1307
+ setValue(newValue);
1308
+ }
1309
+ };
1310
+ return /* @__PURE__ */ import_react12.default.createElement(import_react12.default.Fragment, null, /* @__PURE__ */ import_react12.default.createElement(import_material8.Box, { sx: { height: orientation == "vertical" ? "100%" : "auto", display: "flex", flexDirection: orientation == "vertical" ? "row" : "column" }, id: "tabsitos" }, /* @__PURE__ */ import_react12.default.createElement(import_TabContext.default, { value }, /* @__PURE__ */ import_react12.default.createElement(
1311
+ import_material8.Tabs,
1312
+ {
1313
+ value,
1314
+ onChange: handleChange,
1315
+ variant: variant ? orientation == "vertical" && variant == "fullWidth" ? "standard" : variant : "standard",
1316
+ scrollButtons: scrollButtons == false ? false : true,
1317
+ visibleScrollbar: scrollButtons == false ? true : false,
1318
+ textColor: colorTab,
1319
+ indicatorColor: colorTab,
1320
+ orientation: orientation || "horizontal",
1321
+ sx: { borderBottom: orientation == "vertical" ? 0 : 1, borderRight: orientation == "vertical" ? 1 : 0, borderColor: "divider", background: background || "" }
1322
+ },
1323
+ options.map((option) => /* @__PURE__ */ import_react12.default.createElement(
1324
+ import_material8.Tab,
1325
+ {
1326
+ value: String(i = i + 1),
1327
+ key: j = j + 1,
1328
+ label: option.name || "",
1329
+ disabled: option.disabled || false,
1330
+ iconPosition: iconPosition || "end",
1331
+ icon: option.badge ? /* @__PURE__ */ import_react12.default.createElement(
1332
+ import_material8.Badge,
1333
+ {
1334
+ sx: {
1335
+ width: "20px",
1336
+ height: "20px",
1337
+ "& .MuiBadge-badge": {
1338
+ top: "10px",
1339
+ right: "10px"
1340
+ }
1341
+ },
1342
+ variant: "standard",
1343
+ badgeContent: option.badge,
1344
+ color: value == String(i) ? colorTab ? colorTab : "primary" : "default"
1345
+ }
1346
+ ) : option.icon ? /* @__PURE__ */ import_react12.default.createElement(import_material8.SvgIcon, { fontSize: "small", component: option.icon, color: value == String(i) ? colorTab ? colorTab : "primary" : "action", sx: { width: "20px", height: "20px" } }) : "",
1347
+ sx: { "& .MuiTab-icon": { margin: "0px !important" }, padding: "10px 16px", gap: "4px" }
1348
+ }
1349
+ ))
1350
+ ), children, options.map((option) => /* @__PURE__ */ import_react12.default.createElement(
1351
+ import_TabPanel.default,
1352
+ {
1353
+ key: k = k + 1,
1354
+ value: String(l = l + 1),
1355
+ sx: { padding: "16px" }
1356
+ },
1357
+ option.page ? option.page : /* @__PURE__ */ import_react12.default.createElement(import_material8.Typography, null, "No se ha configurado el componente a visualizar ")
1358
+ )))));
1359
+ };
1360
+
1361
+ // src/Components/FooterAction/FooterAction.tsx
1362
+ var import_material9 = require("@mui/material");
1363
+ var import_react13 = __toESM(require("react"), 1);
1364
+ var FooterAction = ({
1365
+ leftContent,
1366
+ rightContent,
1367
+ label,
1368
+ variant
1369
+ }) => {
1370
+ return /* @__PURE__ */ import_react13.default.createElement(
1371
+ import_material9.AppBar,
1372
+ {
1373
+ color: "inherit",
1374
+ sx: { position: variant == "float" ? "relative" : "fixed", left: 0, right: "auto", width: "100%", top: "auto", bottom: 0 }
1375
+ },
1376
+ /* @__PURE__ */ import_react13.default.createElement(
1377
+ import_material9.Toolbar,
1378
+ {
1379
+ id: "footer-toolbar",
1380
+ sx: { gap: 1.5, minHeight: "50px !important" }
1381
+ },
1382
+ leftContent,
1383
+ /* @__PURE__ */ import_react13.default.createElement(import_material9.Box, { flexGrow: 1 }),
1384
+ label && /* @__PURE__ */ import_react13.default.createElement(import_material9.Typography, { variant: "body2", color: "text.secondary" }, label),
1385
+ rightContent
1386
+ )
1387
+ );
1388
+ };
1389
+
1390
+ // src/Components/PageHeader/PageHeader.tsx
1391
+ var import_react14 = __toESM(require("react"), 1);
1392
+ var import_material10 = require("@mui/material");
1393
+ var PageHeader = ({
1394
+ title,
1395
+ subtitle,
1396
+ actions,
1397
+ buttonBack,
1398
+ fixed,
1399
+ shadow = true
1400
+ }) => {
1401
+ return /* @__PURE__ */ import_react14.default.createElement(
1402
+ import_material10.Stack,
1403
+ {
1404
+ "data-testid": "main-container",
1405
+ justifyContent: "center",
1406
+ height: 48,
1407
+ position: fixed ? "fixed" : "relative",
1408
+ width: fixed ? "100%" : "inherit",
1409
+ bgcolor: "background.paper",
1410
+ zIndex: 10,
1411
+ sx: { boxShadow: shadow ? (theme) => theme.shadows[1] : "none" }
1412
+ },
1413
+ /* @__PURE__ */ import_react14.default.createElement(import_material10.Stack, { "data-testid": "page-header-content", height: 40, px: 3, pl: buttonBack ? 1 : 3, direction: "row", alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ import_react14.default.createElement(import_material10.Stack, { id: "left-section", direction: "row", alignItems: "center", gap: 1 }, buttonBack, /* @__PURE__ */ import_react14.default.createElement(import_material10.Stack, { id: "text-section", gap: 0.5 }, /* @__PURE__ */ import_react14.default.createElement(import_material10.Typography, { "data-testid": "page-header-title", variant: "h6", color: "text.primary" }, title), subtitle && /* @__PURE__ */ import_react14.default.createElement(import_material10.Typography, { "data-testid": "page-header-subtitle", variant: "caption", color: "text.primary" }, subtitle))), actions && /* @__PURE__ */ import_react14.default.createElement(import_material10.Stack, { id: "right-actions", direction: "row", alignItems: "center", gap: 1 }, actions))
1414
+ );
1415
+ };
1416
+
1417
+ // src/Components/Modal/Helpers/Data.tsx
1418
+ var import_react15 = __toESM(require("react"), 1);
1419
+ var import_icons_material7 = require("@mui/icons-material");
1420
+ var modalStateConfig = {
1421
+ info: {
1422
+ color: "info",
1423
+ defaultDescription: "Se [sincronizar\xE1n] los datos trabajados en modo offline y se [subir\xE1n] a los servidores.",
1424
+ icon: /* @__PURE__ */ import_react15.default.createElement(import_icons_material7.Info, { color: "info", fontSize: "medium" })
1425
+ },
1426
+ delete: {
1427
+ color: "delete",
1428
+ defaultDescription: "[Elemento espec\xEDfico] [dejar\xE1 de existir en todos los lugares donde est\xE9 en uso]. Esta acci\xF3n es irreversible.",
1429
+ icon: /* @__PURE__ */ import_react15.default.createElement(import_icons_material7.Info, { color: "error", fontSize: "medium" })
1430
+ },
1431
+ warning: {
1432
+ color: "warning",
1433
+ defaultDescription: "Se descartar\xE1 la [creaci\xF3n] y los cambios se perder\xE1n.",
1434
+ icon: /* @__PURE__ */ import_react15.default.createElement(import_icons_material7.Warning, { color: "warning", fontSize: "medium" })
1435
+ }
1436
+ };
1437
+
1438
+ // src/Components/Modal/Helpers/Utils.tsx
1439
+ var MuiIcons3 = __toESM(require("@mui/icons-material"), 1);
1440
+ var import_icons_material8 = require("@mui/icons-material");
1441
+ var getIconComponent2 = (iconName) => {
1442
+ return iconName && MuiIcons3[iconName] ? MuiIcons3[iconName] : import_icons_material8.FilterListOutlined;
1443
+ };
1444
+ var getModalColor = (state) => {
1445
+ var _a;
1446
+ const colors = {
1447
+ info: "info.100",
1448
+ delete: "error.100",
1449
+ warning: "warning.100"
1450
+ };
1451
+ return (_a = colors[state]) != null ? _a : "warning.100";
1452
+ };
1453
+ var getButtonColor = (state) => {
1454
+ var _a;
1455
+ const colorMap = {
1456
+ info: "info",
1457
+ delete: "error",
1458
+ warning: "warning"
1459
+ };
1460
+ return (_a = colorMap[state]) != null ? _a : "info";
1461
+ };
1462
+
1463
+ // src/Components/Modal/SCModal.tsx
1464
+ var import_react16 = __toESM(require("react"), 1);
1465
+ var import_material11 = require("@mui/material");
1466
+ var import_icons_material9 = require("@mui/icons-material");
1467
+ var SCModal = ({
1468
+ buttonModal,
1469
+ state = "info",
1470
+ open,
1471
+ title,
1472
+ description,
1473
+ action
1474
+ }) => {
1475
+ var _a, _b, _c, _d, _e;
1476
+ const [openModal, setOpenModal] = (0, import_react16.useState)(open != null ? open : false);
1477
+ (0, import_react16.useEffect)(() => {
1478
+ if (open !== void 0) {
1479
+ setOpenModal(open);
1480
+ }
1481
+ }, [open]);
1482
+ const Icon = (0, import_react16.useMemo)(() => getIconComponent2(buttonModal == null ? void 0 : buttonModal.icon), [buttonModal == null ? void 0 : buttonModal.icon]);
1483
+ const handleClose = (0, import_react16.useCallback)(() => setOpenModal(false), []);
1484
+ const toggleModal = (newOpen) => () => setOpenModal(newOpen);
1485
+ const prevAction = (0, import_react16.useMemo)(
1486
+ () => action != null ? action : [{ text: "Cancelar", fn: handleClose }, { text: "Consultar", fn: () => {
1487
+ } }],
1488
+ [action, handleClose]
1489
+ );
1490
+ const { icon, defaultDescription } = modalStateConfig[state];
1491
+ return /* @__PURE__ */ import_react16.default.createElement(import_react16.default.Fragment, null, /* @__PURE__ */ import_react16.default.createElement(
1492
+ import_material11.Button,
1493
+ {
1494
+ "data-testid": "test-buttonModal",
1495
+ color: (_a = buttonModal == null ? void 0 : buttonModal.color) != null ? _a : "primary",
1496
+ onClick: toggleModal(true),
1497
+ variant: (_b = buttonModal == null ? void 0 : buttonModal.variant) != null ? _b : "text",
1498
+ size: (_c = buttonModal == null ? void 0 : buttonModal.size) != null ? _c : "small",
1499
+ startIcon: (buttonModal == null ? void 0 : buttonModal.iconPosition) === "left" && /* @__PURE__ */ import_react16.default.createElement(Icon, null),
1500
+ endIcon: (buttonModal == null ? void 0 : buttonModal.iconPosition) === "right" && /* @__PURE__ */ import_react16.default.createElement(Icon, null)
1501
+ },
1502
+ capitalize((_d = buttonModal == null ? void 0 : buttonModal.text) != null ? _d : "filtrar")
1503
+ ), /* @__PURE__ */ import_react16.default.createElement(import_material11.Modal, { open: openModal, onClose: toggleModal(false), sx: { boxShadow: 8 } }, /* @__PURE__ */ import_react16.default.createElement(
1504
+ import_material11.Box,
1505
+ {
1506
+ sx: {
1507
+ position: "absolute",
1508
+ top: "50%",
1509
+ left: "50%",
1510
+ transform: "translate(-50%, -50%)",
1511
+ width: 400,
1512
+ bgcolor: "background.paper",
1513
+ borderRadius: 1,
1514
+ boxShadow: 24
1515
+ }
1516
+ },
1517
+ /* @__PURE__ */ import_react16.default.createElement(import_material11.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center" }, /* @__PURE__ */ import_react16.default.createElement(import_material11.Stack, { direction: "row", alignItems: "center", p: 1, gap: 1.5 }, /* @__PURE__ */ import_react16.default.createElement(import_material11.Box, { display: "flex", justifyContent: "center", alignItems: "center", borderRadius: "50%", height: 36, width: 36, bgcolor: getModalColor(state) }, icon), /* @__PURE__ */ import_react16.default.createElement(import_material11.Typography, { variant: "h6", color: "text.primary" }, title)), /* @__PURE__ */ import_react16.default.createElement(import_material11.IconButton, { onClick: toggleModal(false), "data-testid": "test-buttonClose" }, /* @__PURE__ */ import_react16.default.createElement(import_icons_material9.Close, { color: "action" }))),
1518
+ /* @__PURE__ */ import_react16.default.createElement(import_material11.Stack, { py: 1, px: 3, gap: 1.5 }, /* @__PURE__ */ import_react16.default.createElement(import_material11.Typography, { variant: "body1" }, description || defaultDescription)),
1519
+ action && /* @__PURE__ */ import_react16.default.createElement(
1520
+ import_material11.Stack,
1521
+ {
1522
+ id: "Action",
1523
+ direction: "row",
1524
+ gap: 1,
1525
+ p: 1,
1526
+ justifyContent: "end",
1527
+ bgcolor: "grey.50",
1528
+ sx: { borderRadius: 1 }
1529
+ },
1530
+ /* @__PURE__ */ import_react16.default.createElement(
1531
+ import_material11.Button,
1532
+ {
1533
+ color: "inherit",
1534
+ variant: "text",
1535
+ onClick: handleClose,
1536
+ size: "small"
1537
+ },
1538
+ capitalize("cancelar")
1539
+ ),
1540
+ /* @__PURE__ */ import_react16.default.createElement(
1541
+ import_material11.Button,
1542
+ {
1543
+ "data-testid": "test-aceptar",
1544
+ color: getButtonColor(state),
1545
+ variant: "contained",
1546
+ onClick: (_e = action[0]) == null ? void 0 : _e.fn,
1547
+ disabled: false,
1548
+ size: "small"
1549
+ },
1550
+ capitalize(action[0].text)
1551
+ )
1552
+ )
1553
+ )));
1554
+ };
1555
+
1556
+ // src/Components/SCCalendarSwipeable.tsx
1557
+ var import_react17 = __toESM(require("react"), 1);
1558
+ var import_material12 = require("@mui/material");
1559
+ var import_Grid25 = __toESM(require("@mui/material/Grid2"), 1);
1560
+ var import_AdapterDateFns = require("@mui/x-date-pickers/AdapterDateFns");
1561
+ var import_LocalizationProvider = require("@mui/x-date-pickers/LocalizationProvider");
1562
+ var import_StaticDatePicker = require("@mui/x-date-pickers/StaticDatePicker");
1563
+ var import_locale = require("date-fns/locale");
1564
+ var import_date_fns = require("date-fns");
1565
+ var import_KeyboardDoubleArrowDown = __toESM(require("@mui/icons-material/KeyboardDoubleArrowDown"), 1);
1566
+ var import_KeyboardDoubleArrowUp = __toESM(require("@mui/icons-material/KeyboardDoubleArrowUp"), 1);
1567
+ var SCCalendarSwipeable = ({
1568
+ //informativas
1569
+ //apariencia
1570
+ background,
1571
+ //funcionales
1572
+ setState,
1573
+ state
1574
+ }) => {
1575
+ let convertFecha;
1576
+ const [fecha, setFecha] = (0, import_react17.useState)(/* @__PURE__ */ new Date());
1577
+ const [fechaSeleccionada, setFechaSeleccionada] = (0, import_react17.useState)();
1578
+ const [stateVal, setstateVal] = import_react17.default.useState(/* @__PURE__ */ new Date());
1579
+ const [openCalendar, setOpenCalendar] = import_react17.default.useState(false);
1580
+ const hoy = /* @__PURE__ */ new Date();
1581
+ const inicioSemana = (0, import_date_fns.startOfWeek)(fecha, { weekStartsOn: 0 });
1582
+ const diasSemana = Array.from({ length: 7 }, (_, i) => (0, import_date_fns.addDays)(inicioSemana, i));
1583
+ import_react17.default.useEffect(() => {
1584
+ if (fecha != null) {
1585
+ handleConvertFecha(fecha);
1586
+ }
1587
+ }, [fecha]);
1588
+ const handleConvertFecha = (fecha2) => {
1589
+ if (fecha2) {
1590
+ let day = (fecha2.getDate() < 10 ? "0" : "") + fecha2.getDate();
1591
+ let month = (fecha2.getMonth() + 1 < 10 ? "0" : "") + (fecha2.getMonth() + 1);
1592
+ let year = fecha2.getFullYear();
1593
+ convertFecha = day + "/" + month + "/" + year;
1594
+ setState(convertFecha);
1595
+ setFecha(fecha2);
1596
+ }
1597
+ };
1598
+ const toggleCalendar = (newOpen) => () => {
1599
+ setOpenCalendar(newOpen);
1600
+ };
1601
+ const locale = __spreadProps(__spreadValues({}, import_locale.es), {
1602
+ options: {
1603
+ weekStartsOn: 0
1604
+ // 0 para domingo, 1 para lunes, etc.
1605
+ }
1606
+ });
1607
+ return /* @__PURE__ */ import_react17.default.createElement(import_react17.default.Fragment, null, /* @__PURE__ */ import_react17.default.createElement(import_LocalizationProvider.LocalizationProvider, { dateAdapter: import_AdapterDateFns.AdapterDateFns }, openCalendar == false ? /* @__PURE__ */ import_react17.default.createElement(import_material12.Box, { sx: { width: "100%", background: background ? background : "white", display: "flex", flexDirection: "column", alignItems: "center" } }, /* @__PURE__ */ import_react17.default.createElement(import_material12.Box, { sx: { width: "100%", maxWidth: "320px", background: "transparent" } }, /* @__PURE__ */ import_react17.default.createElement(import_Grid25.default, { container: true, gap: 0.5, sx: {
1608
+ justifyContent: "space-between",
1609
+ padding: "12px 0px",
1610
+ background: "transparent"
1611
+ } }, diasSemana.map((dia) => /* @__PURE__ */ import_react17.default.createElement(import_Grid25.default, { sx: { width: "36px" }, key: dia.toString() }, /* @__PURE__ */ import_react17.default.createElement(import_material12.Box, { sx: { width: "36px", height: "40px", display: "flex", alignItems: "center", justifyContent: "center" } }, /* @__PURE__ */ import_react17.default.createElement(import_material12.Typography, { sx: { fontSize: "12px !important", color: "#10184099" } }, (0, import_date_fns.format)(dia, "EEEE", { locale: import_locale.es }).charAt(0).toUpperCase())), /* @__PURE__ */ import_react17.default.createElement(
1612
+ import_material12.Box,
1613
+ {
1614
+ onClick: () => setFecha(dia),
1615
+ sx: {
1616
+ padding: "10px",
1617
+ textAlign: "center",
1618
+ backgroundColor: (0, import_date_fns.isSameDay)(dia, fecha) ? "#2063a0" : "transparent",
1619
+ cursor: "pointer",
1620
+ borderRadius: "50%",
1621
+ //border: '1px solid lightgray',
1622
+ position: "relative"
1623
+ //width: '36px',
1624
+ //height: '36px',
1625
+ }
1626
+ },
1627
+ /* @__PURE__ */ import_react17.default.createElement(import_material12.Typography, { sx: { fontSize: "12px !important", color: (0, import_date_fns.isSameDay)(dia, fecha) ? "white" : "#101840DE" } }, (0, import_date_fns.format)(dia, "d"))
1628
+ )))), /* @__PURE__ */ import_react17.default.createElement(import_Grid25.default, { container: true, justifyContent: "center" }, /* @__PURE__ */ import_react17.default.createElement(import_material12.IconButton, { onClick: toggleCalendar(true) }, /* @__PURE__ */ import_react17.default.createElement(import_KeyboardDoubleArrowDown.default, null))))) : /* @__PURE__ */ import_react17.default.createElement(import_material12.Box, { sx: { width: "100%", background: "white" } }, /* @__PURE__ */ import_react17.default.createElement(
1629
+ import_StaticDatePicker.StaticDatePicker,
1630
+ {
1631
+ orientation: "landscape",
1632
+ openTo: "day",
1633
+ value: fecha,
1634
+ slotProps: { toolbar: { hidden: true }, actionBar: { actions: [] } },
1635
+ sx: { fontSize: "12px !important", height: "300px !important", background: background ? background : "white", "& .MuiDayCalendar-header": { justifyContent: "space-between" }, "& .MuiDayCalendar-weekContainer": { justifyContent: "space-between" }, "& .MuiPickersCalendarHeader-root": { paddingLeft: "0px", paddingRight: "0px", color: "#10184099" }, "& .MuiPickersDay-root": { fontSize: "12px !important" }, "& .MuiDayCalendar-weekDayLabel": { fontSize: "12px !important" } },
1636
+ onChange: (newValue) => setFecha(newValue)
1637
+ }
1638
+ ), /* @__PURE__ */ import_react17.default.createElement(import_Grid25.default, { container: true, justifyContent: "center" }, /* @__PURE__ */ import_react17.default.createElement(import_material12.IconButton, { onClick: toggleCalendar(false) }, /* @__PURE__ */ import_react17.default.createElement(import_KeyboardDoubleArrowUp.default, null))))));
1639
+ };
1640
+
1641
+ // src/Theme/index.ts
1642
+ var import_styles2 = require("@mui/material/styles");
1643
+
1644
+ // src/Theme/components.ts
1645
+ var import_react18 = __toESM(require("react"), 1);
1646
+ var import_icons_material10 = require("@mui/icons-material");
1647
+ var components = {
1648
+ MuiSelect: {
1649
+ styleOverrides: {
1650
+ outlined: {
1651
+ paddingBlock: "13px"
1652
+ },
1653
+ iconStandard: {
1654
+ "&.MuiSelect-iconStandard.MuiSvgIcon-root": {
1655
+ top: "calc(50% - .4em)"
1656
+ }
1657
+ },
1658
+ iconFilled: {
1659
+ "&.MuiSelect-iconFilled.MuiSvgIcon-root": {
1660
+ top: "calc(50% - .15em)"
1661
+ }
1662
+ },
1663
+ iconOutlined: {
1664
+ "&.MuiSelect-iconOutlined.MuiSvgIcon-root": {
1665
+ top: "calc(50% - .35em)"
1666
+ }
1667
+ },
1668
+ icon: {
1669
+ width: 16,
1670
+ height: 16
1671
+ },
1672
+ root: {
1673
+ fontSize: 13,
1674
+ fontStyle: "normal",
1675
+ fontWeight: 400,
1676
+ letterSpacing: "0.15px",
1677
+ lineHeight: "19px"
1678
+ }
1679
+ }
1680
+ },
1681
+ MuiSpeedDialIcon: {
1682
+ styleOverrides: {
1683
+ icon: {
1684
+ height: 24,
1685
+ width: 24
1686
+ }
1687
+ }
1688
+ },
1689
+ MuiSpeedDialAction: {
1690
+ styleOverrides: {
1691
+ fab: {
1692
+ height: 40,
1693
+ width: 40
1694
+ }
1695
+ }
1696
+ },
1697
+ MuiBadge: {
1698
+ styleOverrides: {
1699
+ badge: {
1700
+ fontSize: "11px",
1701
+ fontWeight: 400,
1702
+ lineHeight: "11px",
1703
+ letterSpacing: ".14px"
1704
+ }
1705
+ }
1706
+ },
1707
+ MuiSpeedDial: {
1708
+ styleOverrides: {
1709
+ fab: {
1710
+ height: 56,
1711
+ width: 56
1712
+ }
1713
+ }
1714
+ },
1715
+ MuiAccordion: {
1716
+ styleOverrides: {
1717
+ root: {
1718
+ ".MuiButtonBase-root.MuiAccordionSummary-root": {
1719
+ minHeight: 44,
1720
+ height: 44
1721
+ }
1722
+ }
1723
+ }
1724
+ },
1725
+ MuiTabs: {
1726
+ styleOverrides: {
1727
+ root: {
1728
+ minHeight: 40
1729
+ }
1730
+ }
1731
+ },
1732
+ MuiTab: {
1733
+ styleOverrides: {
1734
+ labelIcon: {
1735
+ paddingBlock: 10
1736
+ },
1737
+ root: {
1738
+ textTransform: "none",
1739
+ minHeight: 40
1740
+ }
1741
+ }
1742
+ },
1743
+ MuiDataGrid: {
1744
+ defaultProps: {
1745
+ density: "compact"
1746
+ },
1747
+ styleOverrides: {
1748
+ columnHeader: {
1749
+ variants: [
1750
+ {
1751
+ props: { density: "compact" },
1752
+ style: {
1753
+ "--height": "24px",
1754
+ minHeight: "24px !important",
1755
+ maxHeight: "24px !important"
1756
+ }
1757
+ },
1758
+ {
1759
+ props: { density: "standard" },
1760
+ style: {
1761
+ "--height": "36px",
1762
+ minHeight: "36px !important",
1763
+ maxHeight: "36px !important"
1764
+ }
1765
+ },
1766
+ {
1767
+ props: { density: "comfortable" },
1768
+ style: {
1769
+ "--height": "52px",
1770
+ minHeight: "52px !important",
1771
+ maxHeight: "52px !important"
1772
+ }
1773
+ }
1774
+ ]
1775
+ },
1776
+ columnSeparator: {
1777
+ variants: [
1778
+ {
1779
+ props: { density: "compact" },
1780
+ style: {
1781
+ "--height": "24px",
1782
+ minHeight: "24px !important",
1783
+ maxHeight: "24px !important"
1784
+ }
1785
+ },
1786
+ {
1787
+ props: { density: "standard" },
1788
+ style: {
1789
+ "--height": "36px",
1790
+ minHeight: "36px !important",
1791
+ maxHeight: "36px !important"
1792
+ }
1793
+ },
1794
+ {
1795
+ props: { density: "comfortable" },
1796
+ style: {
1797
+ "--height": "52px",
1798
+ minHeight: "52px !important",
1799
+ maxHeight: "52px !important"
1800
+ }
1801
+ }
1802
+ ]
1803
+ },
1804
+ iconButtonContainer: {
1805
+ fontSize: 16
1806
+ },
1807
+ columnHeaderDraggableContainer: {
1808
+ variants: [
1809
+ {
1810
+ props: { density: "compact" },
1811
+ style: {
1812
+ "--height": "24px",
1813
+ minHeight: "24px !important",
1814
+ maxHeight: "24px !important"
1815
+ }
1816
+ },
1817
+ {
1818
+ props: { density: "standard" },
1819
+ style: {
1820
+ "--height": "36px",
1821
+ minHeight: "36px !important",
1822
+ maxHeight: "36px !important"
1823
+ }
1824
+ },
1825
+ {
1826
+ props: { density: "comfortable" },
1827
+ style: {
1828
+ "--height": "52px",
1829
+ minHeight: "52px !important",
1830
+ maxHeight: "52px !important"
1831
+ }
1832
+ }
1833
+ ]
1834
+ },
1835
+ columnHeaderTitle: {
1836
+ fontFamily: "Roboto",
1837
+ fontWeight: 500,
1838
+ fontSize: 13,
1839
+ lineHeight: 1.5,
1840
+ letterSpacing: 0.17
1841
+ },
1842
+ row: {
1843
+ variants: [
1844
+ {
1845
+ props: { density: "compact" },
1846
+ style: {
1847
+ "--height": "22px",
1848
+ minHeight: "22px !important",
1849
+ maxHeight: "22px !important"
1850
+ }
1851
+ },
1852
+ {
1853
+ props: { density: "standard" },
1854
+ style: {
1855
+ "--height": "28px",
1856
+ minHeight: "28px !important",
1857
+ maxHeight: "28px !important"
1858
+ }
1859
+ },
1860
+ {
1861
+ props: { density: "comfortable" },
1862
+ style: {
1863
+ "--height": "48px",
1864
+ minHeight: "48px !important",
1865
+ maxHeight: "48px !important"
1866
+ }
1867
+ }
1868
+ ]
1869
+ },
1870
+ cell: {
1871
+ fontFamily: "Roboto",
1872
+ fontWeight: 300,
1873
+ fontSize: 12,
1874
+ lineHeight: 1.5,
1875
+ letterSpacing: 0.17,
1876
+ display: "flex",
1877
+ alignItems: "center",
1878
+ variants: [
1879
+ {
1880
+ props: { density: "compact" },
1881
+ style: {
1882
+ "--height": "22px",
1883
+ minHeight: "22px !important",
1884
+ maxHeight: "22px !important"
1885
+ }
1886
+ },
1887
+ {
1888
+ props: { density: "standard" },
1889
+ style: {
1890
+ "--height": "28px",
1891
+ minHeight: "28px !important",
1892
+ maxHeight: "28px !important"
1893
+ }
1894
+ },
1895
+ {
1896
+ props: { density: "comfortable" },
1897
+ style: {
1898
+ "--height": "48px",
1899
+ minHeight: "48px !important",
1900
+ maxHeight: "48px !important"
1901
+ }
1902
+ }
1903
+ ],
1904
+ // COMPONENTES DENTRO DE CELDAS
1905
+ ".MuiButtonBase-root": {
1906
+ lineHeight: 0,
1907
+ textTransform: "capitalize"
1908
+ },
1909
+ // CELDA ENFOCADA
1910
+ ".MuiDataGrid-cell": {
1911
+ "&:focus": {
1912
+ outline: "transparent",
1913
+ borderWidth: 0
1914
+ }
1915
+ }
1916
+ },
1917
+ // BOTOM MENU EN LAS CABECERA DE CADA COLUMNA
1918
+ menuIconButton: {
1919
+ svg: {
1920
+ fontSize: "16px"
1921
+ }
1922
+ },
1923
+ menu: {
1924
+ svg: {
1925
+ fontSize: "16px !important"
1926
+ },
1927
+ ".MuiMenuItem-root": {
1928
+ minHeight: "28px",
1929
+ height: "28px"
1930
+ }
1931
+ },
1932
+ pinnedRows: {
1933
+ borderTop: "1px solid rgba(228, 236, 244, 1)"
1934
+ },
1935
+ root: {
1936
+ // FONT-SIZE DE CELDA EN MODO EDICION
1937
+ ".MuiInputBase-root": {
1938
+ fontFamily: "Roboto",
1939
+ fontWeight: 300,
1940
+ fontSize: 12,
1941
+ letterSpacing: 0.17,
1942
+ borderRadius: "0px"
1943
+ },
1944
+ // CELDA FOCUS
1945
+ ".Mui-focused, .MuiOutlinedInput-notchedOutline": {
1946
+ borderWidth: "0px !important"
1947
+ },
1948
+ // TAMAÑO PEQUEÑO
1949
+ "&.MuiDataGrid-root--densityCompact": {
1950
+ ".MuiSvgIcon-root": {
1951
+ fontSize: 16
1952
+ },
1953
+ ".MuiDataGrid-cellCheckbox": {
1954
+ ".MuiButtonBase-root": {
1955
+ padding: 4
1956
+ }
1957
+ }
1958
+ }
1959
+ }
1960
+ }
1961
+ },
1962
+ MuiRating: {
1963
+ defaultProps: {
1964
+ size: "small"
1965
+ },
1966
+ styleOverrides: {
1967
+ sizeSmall: {
1968
+ fontSize: 18
1969
+ },
1970
+ sizeMedium: {
1971
+ fontSize: 24
1972
+ },
1973
+ sizeLarge: {
1974
+ fontSize: 30
1975
+ }
1976
+ }
1977
+ },
1978
+ MuiDrawer: {
1979
+ styleOverrides: {
1980
+ root: {
1981
+ boxShadow: "0px 3px 1px -2px rgba(24, 39, 75, 0.20), 0px 2px 2px 0px rgba(24, 39, 75, 0.14), 0px 1px 5px 0px rgba(24, 39, 75, 0.12)"
1982
+ }
1983
+ }
1984
+ },
1985
+ MuiTooltip: {
1986
+ styleOverrides: {
1987
+ tooltip: {
1988
+ backgroundColor: "#424242"
1989
+ }
1990
+ }
1991
+ },
1992
+ MuiDialog: {
1993
+ styleOverrides: {
1994
+ root: ({ theme }) => ({
1995
+ boxShadow: "0px 11px 15px -7px rgba(24, 39, 75, 0.2), 0px 24px 38px 3px rgba(24, 39, 75, 0.14), 0px 9px 46px 8px rgba(24, 39, 75, 0.12)",
1996
+ "& .MuiBackdrop-root": {
1997
+ backgroundColor: "#00000047"
1998
+ }
1999
+ })
2000
+ }
2001
+ },
2002
+ MuiBackdrop: {
2003
+ styleOverrides: {
2004
+ root: {
2005
+ backgroundColor: "#00000047"
2006
+ }
2007
+ }
2008
+ },
2009
+ MuiDialogTitle: {
2010
+ styleOverrides: {
2011
+ root: {
2012
+ padding: "8px 16px !important"
2013
+ }
2014
+ }
2015
+ },
2016
+ MuiDialogContent: {
2017
+ styleOverrides: {
2018
+ root: {
2019
+ padding: "8px 16px !important"
2020
+ }
2021
+ }
2022
+ },
2023
+ MuiDialogActions: {
2024
+ styleOverrides: {
2025
+ root: {
2026
+ padding: "12px 16px !important"
2027
+ }
2028
+ }
2029
+ },
2030
+ MuiCheckbox: {
2031
+ variants: [
2032
+ {
2033
+ props: { size: "large" },
2034
+ style: {
2035
+ padding: 9,
2036
+ "& .MuiSvgIcon-fontSizeLarge": {
2037
+ height: 24,
2038
+ width: 24,
2039
+ fontSize: 24
2040
+ }
2041
+ }
2042
+ },
2043
+ {
2044
+ props: { size: "small" },
2045
+ style: {
2046
+ padding: 3
2047
+ }
2048
+ },
2049
+ {
2050
+ props: { size: "medium" },
2051
+ style: {
2052
+ padding: 4
2053
+ }
2054
+ }
2055
+ ],
2056
+ defaultProps: {
2057
+ size: "small"
2058
+ }
2059
+ },
2060
+ MuiToggleButton: {
2061
+ styleOverrides: {
2062
+ sizeSmall: {
2063
+ height: 32
2064
+ },
2065
+ sizeMedium: {
2066
+ height: 38
2067
+ },
2068
+ sizeLarge: {
2069
+ height: 48
2070
+ }
2071
+ }
2072
+ },
2073
+ MuiChip: {
2074
+ defaultProps: {
2075
+ size: "small",
2076
+ variant: "standard",
2077
+ color: "default"
2078
+ },
2079
+ styleOverrides: {
2080
+ icon: {
2081
+ opacity: "70%"
2082
+ },
2083
+ deleteIconSmall: {
2084
+ height: 16,
2085
+ width: 16
2086
+ },
2087
+ deleteIconMedium: {
2088
+ height: 20,
2089
+ width: 20
2090
+ },
2091
+ sizeSmall: {
2092
+ height: 16
2093
+ },
2094
+ sizeMedium: {
2095
+ height: 20
2096
+ },
2097
+ avatarSmall: {
2098
+ height: 14,
2099
+ width: 14
2100
+ },
2101
+ avatarMedium: {
2102
+ height: 18,
2103
+ width: 18
2104
+ },
2105
+ iconColorPrimary: ({ theme }) => ({
2106
+ color: theme.palette.primary.main
2107
+ }),
2108
+ colorDefault: ({ theme }) => ({
2109
+ backgroundColor: theme.palette.default.main,
2110
+ color: theme.palette.default.contrastText
2111
+ }),
2112
+ deleteIcon: ({ theme }) => ({
2113
+ variants: [
2114
+ {
2115
+ props: { variant: "filled" },
2116
+ style: {
2117
+ color: theme.palette.background.paper,
2118
+ opacity: "50%"
2119
+ }
2120
+ },
2121
+ {
2122
+ props: { variant: "standard" },
2123
+ style: {
2124
+ color: theme.palette.default.contrastText,
2125
+ opacity: "30%",
2126
+ ":hover": {
2127
+ color: theme.palette.default.contrastText,
2128
+ opacity: "30%"
2129
+ }
2130
+ }
2131
+ },
2132
+ {
2133
+ props: { variant: "outlined" },
2134
+ style: {
2135
+ color: theme.palette.action.active,
2136
+ opacity: "54%",
2137
+ ":hover": {
2138
+ color: theme.palette.action.active,
2139
+ opacity: "54%"
2140
+ }
2141
+ }
2142
+ },
2143
+ {
2144
+ props: { variant: "filled", color: "default" },
2145
+ style: {
2146
+ color: theme.palette.default.contrastText,
2147
+ opacity: "30%"
2148
+ }
2149
+ }
2150
+ ]
2151
+ }),
2152
+ avatar: ({ theme }) => ({
2153
+ lineHeight: 1.8,
2154
+ variants: [
2155
+ {
2156
+ props: { variant: "filled" },
2157
+ style: {
2158
+ backgroundColor: theme.palette.background.paper,
2159
+ opacity: "70%",
2160
+ color: theme.palette.default.contrastText
2161
+ }
2162
+ },
2163
+ {
2164
+ props: { variant: "standard" },
2165
+ style: {
2166
+ backgroundColor: theme.palette.default.contrastText,
2167
+ color: theme.palette.primary.contrastText
2168
+ }
2169
+ },
2170
+ {
2171
+ props: { variant: "outlined", color: "error" },
2172
+ style: {
2173
+ backgroundColor: theme.palette.error.main,
2174
+ color: theme.palette.background.paper
2175
+ }
2176
+ },
2177
+ {
2178
+ props: { variant: "outlined", color: "success" },
2179
+ style: {
2180
+ backgroundColor: theme.palette.success.main,
2181
+ color: theme.palette.background.paper
2182
+ }
2183
+ },
2184
+ {
2185
+ props: { variant: "outlined", color: "info" },
2186
+ style: {
2187
+ backgroundColor: theme.palette.info.main,
2188
+ color: theme.palette.background.paper
2189
+ }
2190
+ },
2191
+ {
2192
+ props: { variant: "outlined", color: "warning" },
2193
+ style: {
2194
+ backgroundColor: theme.palette.warning.main,
2195
+ color: theme.palette.background.paper
2196
+ }
2197
+ },
2198
+ {
2199
+ props: { variant: "outlined", color: "default" },
2200
+ style: {
2201
+ backgroundColor: theme.palette.grey[400],
2202
+ color: theme.palette.background.paper
2203
+ }
2204
+ },
2205
+ {
2206
+ props: { variant: "filled", color: "default" },
2207
+ style: {
2208
+ backgroundColor: theme.palette.default.contrastText,
2209
+ color: theme.palette.background.paper
2210
+ }
2211
+ }
2212
+ ]
2213
+ }),
2214
+ label: ({ theme }) => __spreadValues({}, theme.typography.caption),
2215
+ root: ({ theme }) => ({
2216
+ height: "inherit",
2217
+ borderRadius: 4,
2218
+ variants: [
2219
+ {
2220
+ props: { variant: "outlined", color: "default" },
2221
+ style: {
2222
+ border: `1px solid ${theme.palette.grey[400]}`,
2223
+ backgroundColor: "transparent ",
2224
+ color: theme.palette.default.contrastText,
2225
+ ":hover": {
2226
+ backgroundColor: theme.palette.default.main
2227
+ }
2228
+ }
2229
+ },
2230
+ {
2231
+ props: { variant: "standard", color: "default" },
2232
+ style: {
2233
+ backgroundColor: theme.palette.default.main,
2234
+ color: theme.palette.default.contrastText,
2235
+ ":hover": {
2236
+ backgroundColor: theme.palette.default.dark
2237
+ }
2238
+ }
2239
+ },
2240
+ {
2241
+ props: { variant: "filled", color: "default" },
2242
+ style: {
2243
+ backgroundColor: theme.palette.grey[50],
2244
+ color: theme.palette.default.contrastText,
2245
+ ":hover": {
2246
+ backgroundColor: theme.palette.grey[100]
2247
+ }
2248
+ }
2249
+ },
2250
+ {
2251
+ props: { variant: "filled", color: "default" },
2252
+ style: {
2253
+ backgroundColor: theme.palette.grey[50],
2254
+ color: theme.palette.default.contrastText,
2255
+ ":hover": {
2256
+ backgroundColor: theme.palette.grey[100]
2257
+ }
2258
+ }
2259
+ },
2260
+ {
2261
+ props: { variant: "standard", avatar: true },
2262
+ style: {
2263
+ backgroundColor: theme.palette.default.contrastText,
2264
+ color: theme.palette.default.contrastText
2265
+ }
2266
+ },
2267
+ {
2268
+ props: { variant: "standard" },
2269
+ style: {
2270
+ backgroundColor: theme.palette.default.contrastText,
2271
+ color: theme.palette.default.contrastText
2272
+ }
2273
+ },
2274
+ {
2275
+ props: { variant: "standard", color: "primary" },
2276
+ style: {
2277
+ backgroundColor: theme.palette.chipPrimary.main,
2278
+ ":hover": {
2279
+ backgroundColor: theme.palette.chipPrimary.dark
2280
+ }
2281
+ }
2282
+ },
2283
+ {
2284
+ props: { variant: "standard", color: "secondary" },
2285
+ style: {
2286
+ backgroundColor: theme.palette.chipSecondary.main,
2287
+ ":hover": {
2288
+ backgroundColor: theme.palette.chipSecondary.dark
2289
+ }
2290
+ }
2291
+ },
2292
+ {
2293
+ props: { variant: "standard", color: "info" },
2294
+ style: {
2295
+ backgroundColor: theme.palette.chipInfo.main,
2296
+ ":hover": {
2297
+ backgroundColor: theme.palette.chipInfo.dark
2298
+ }
2299
+ }
2300
+ },
2301
+ {
2302
+ props: { variant: "standard", color: "error" },
2303
+ style: {
2304
+ backgroundColor: theme.palette.chipError.main,
2305
+ ":hover": {
2306
+ backgroundColor: theme.palette.chipError.dark
2307
+ }
2308
+ }
2309
+ },
2310
+ {
2311
+ props: { variant: "standard", color: "success" },
2312
+ style: {
2313
+ backgroundColor: theme.palette.chipSuccess.main,
2314
+ ":hover": {
2315
+ backgroundColor: theme.palette.chipSuccess.dark
2316
+ }
2317
+ }
2318
+ },
2319
+ {
2320
+ props: { variant: "standard", color: "warning" },
2321
+ style: {
2322
+ backgroundColor: theme.palette.chipWarning.main,
2323
+ ":hover": {
2324
+ backgroundColor: theme.palette.chipWarning.dark
2325
+ }
2326
+ }
2327
+ }
2328
+ ]
2329
+ })
2330
+ }
2331
+ },
2332
+ MuiAvatar: {
2333
+ styleOverrides: {
2334
+ root: {
2335
+ display: "flex",
2336
+ alignContent: "center"
2337
+ }
2338
+ }
2339
+ },
2340
+ MuiAlert: {
2341
+ defaultProps: {
2342
+ iconMapping: {
2343
+ success: import_react18.default.createElement(import_icons_material10.CheckCircleRounded),
2344
+ error: import_react18.default.createElement(import_icons_material10.ErrorRounded),
2345
+ warning: import_react18.default.createElement(import_icons_material10.WarningRounded),
2346
+ info: import_react18.default.createElement(import_icons_material10.InfoRounded)
2347
+ }
2348
+ },
2349
+ variants: [
2350
+ {
2351
+ props: { variant: "filled" },
2352
+ style: {
2353
+ color: "#fff"
2354
+ }
2355
+ },
2356
+ {
2357
+ props: { variant: "outlined" },
2358
+ style: {
2359
+ padding: "7px 12px 7px 12px"
2360
+ }
2361
+ }
2362
+ ],
2363
+ styleOverrides: {
2364
+ message: ({ theme }) => ({
2365
+ padding: "0px 4px",
2366
+ minWidth: 0,
2367
+ variants: [
2368
+ {
2369
+ props: { variant: "standard" },
2370
+ style: {
2371
+ color: theme.palette.text.primary
2372
+ }
2373
+ },
2374
+ {
2375
+ props: { variant: "outlined" },
2376
+ style: {
2377
+ color: theme.palette.text.primary
2378
+ }
2379
+ }
2380
+ ]
2381
+ }),
2382
+ icon: ({ theme }) => ({
2383
+ padding: "4px",
2384
+ marginRight: 0,
2385
+ display: "flex",
2386
+ alignItems: "center",
2387
+ borderRadius: 100,
2388
+ variants: [
2389
+ {
2390
+ props: { variant: "standard", color: "success" },
2391
+ style: {
2392
+ backgroundColor: theme.palette.success[100]
2393
+ }
2394
+ },
2395
+ {
2396
+ props: { variant: "standard", color: "error" },
2397
+ style: {
2398
+ backgroundColor: theme.palette.error[100]
2399
+ }
2400
+ },
2401
+ {
2402
+ props: { variant: "standard", color: "info" },
2403
+ style: {
2404
+ backgroundColor: theme.palette.info[100]
2405
+ }
2406
+ },
2407
+ {
2408
+ props: { variant: "standard", color: "warning" },
2409
+ style: {
2410
+ backgroundColor: theme.palette.warning[100]
2411
+ }
2412
+ }
2413
+ ]
2414
+ }),
2415
+ action: ({ theme }) => ({
2416
+ display: "flex",
2417
+ gap: 1.5,
2418
+ padding: "0px",
2419
+ variants: [
2420
+ {
2421
+ props: { variant: "standard" },
2422
+ style: {
2423
+ color: theme.palette.action.active
2424
+ }
2425
+ },
2426
+ {
2427
+ props: { variant: "outlined" },
2428
+ style: {
2429
+ color: theme.palette.action.active
2430
+ }
2431
+ }
2432
+ ]
2433
+ }),
2434
+ root: {
2435
+ padding: "8px 12px 8px 12px",
2436
+ borderRadius: "8px",
2437
+ display: "flex",
2438
+ alignItems: "center",
2439
+ gap: 1.5,
2440
+ minWidth: "296px"
2441
+ }
2442
+ }
2443
+ },
2444
+ MuiAlertTitle: {
2445
+ defaultProps: {
2446
+ variant: "subtitle2"
2447
+ },
2448
+ styleOverrides: {
2449
+ root: {
2450
+ marginBottom: 0,
2451
+ marginTop: 2.5
2452
+ }
2453
+ }
2454
+ },
2455
+ MuiButton: {
2456
+ styleOverrides: {
2457
+ root: {
2458
+ fontFamily: "Roboto",
2459
+ textTransform: "unset",
2460
+ fontWeightLight: 300,
2461
+ fontSize: "13px",
2462
+ lineHeight: "normal",
2463
+ "@media(max-width: 885px)": {
2464
+ fontSize: 14
2465
+ }
2466
+ },
2467
+ startIcon: {
2468
+ marginLeft: 2
2469
+ },
2470
+ endIcon: {
2471
+ marginRight: 2
2472
+ },
2473
+ sizeSmall: {
2474
+ height: 26,
2475
+ ".MuiSvgIcon-fontSizeSmall": {
2476
+ height: 16,
2477
+ width: 16
2478
+ },
2479
+ ".MuiSvgIcon-fontSizeMedium": {
2480
+ height: 18,
2481
+ width: 18
2482
+ },
2483
+ ".MuiSvgIcon-fontSizeLarge": {
2484
+ height: 20,
2485
+ width: 20
2486
+ }
2487
+ },
2488
+ sizeMedium: {
2489
+ height: 32,
2490
+ ".MuiSvgIcon-fontSizeSmall": {
2491
+ height: 16,
2492
+ width: 16
2493
+ },
2494
+ ".MuiSvgIcon-fontSizeMedium": {
2495
+ height: 18,
2496
+ width: 18
2497
+ },
2498
+ ".MuiSvgIcon-fontSizeLarge": {
2499
+ height: 20,
2500
+ width: 20
2501
+ }
2502
+ },
2503
+ sizeLarge: {
2504
+ height: 38,
2505
+ ".MuiSvgIcon-fontSizeSmall": {
2506
+ height: 16,
2507
+ width: 16
2508
+ },
2509
+ "&.MuiSvgIcon-fontSizeMedium": {
2510
+ height: 18,
2511
+ width: 18
2512
+ }
2513
+ }
2514
+ }
2515
+ },
2516
+ MuiButtonGroup: {
2517
+ defaultProps: {
2518
+ size: "small"
2519
+ }
2520
+ },
2521
+ MuiFab: {
2522
+ defaultProps: {
2523
+ size: "small"
2524
+ },
2525
+ styleOverrides: {
2526
+ circular: {
2527
+ boxShadow: "0px 1px 18px 0px rgba(24, 39, 75, 0.12), 0px 6px 10px 0px rgba(24, 39, 75, 0.14), 0px 3px 5px -1px rgba(24, 39, 75, 0.20)",
2528
+ sizeSmall: {
2529
+ height: 36,
2530
+ width: 36,
2531
+ svg: {
2532
+ height: 20,
2533
+ width: 20
2534
+ }
2535
+ },
2536
+ sizeMedium: {
2537
+ height: 48,
2538
+ width: 48,
2539
+ svg: {
2540
+ height: 22,
2541
+ width: 22
2542
+ }
2543
+ },
2544
+ sizeLarge: {
2545
+ height: 56,
2546
+ width: 56,
2547
+ svg: {
2548
+ height: 24,
2549
+ width: 24
2550
+ }
2551
+ }
2552
+ },
2553
+ extended: {
2554
+ gap: 1,
2555
+ boxShadow: " 0px 1px 18px 0px rgba(24, 39, 75, 0.12), 0px 6px 10px 0px rgba(24, 39, 75, 0.14), 0px 3px 5px -1px rgba(24, 39, 75, 0.20)",
2556
+ sizeSmall: {
2557
+ height: 32,
2558
+ svg: {
2559
+ height: 20,
2560
+ width: 20,
2561
+ marginRight: 4
2562
+ }
2563
+ },
2564
+ sizeMedium: {
2565
+ height: 38,
2566
+ svg: {
2567
+ height: 22,
2568
+ width: 22,
2569
+ marginRight: 4
2570
+ }
2571
+ },
2572
+ sizeLarge: {
2573
+ height: 48,
2574
+ svg: {
2575
+ height: 24,
2576
+ width: 24,
2577
+ marginRight: 4
2578
+ }
2579
+ }
2580
+ },
2581
+ root: {
2582
+ textTransform: "capitalize"
2583
+ }
2584
+ }
2585
+ },
2586
+ MuiFormControl: {
2587
+ defaultProps: {
2588
+ size: "small",
2589
+ margin: "none"
2590
+ }
2591
+ },
2592
+ MuiFormHelperText: {
2593
+ defaultProps: {
2594
+ margin: "dense"
2595
+ }
2596
+ },
2597
+ MuiSvgIcon: {
2598
+ defaultProps: {
2599
+ color: "action"
2600
+ },
2601
+ styleOverrides: {
2602
+ fontSizeLarge: {
2603
+ width: 35,
2604
+ height: 35,
2605
+ fontSize: 35
2606
+ },
2607
+ fontSizeMedium: {
2608
+ width: 20,
2609
+ height: 20,
2610
+ fontSize: 20
2611
+ },
2612
+ fontSizeSmall: {
2613
+ width: 16,
2614
+ height: 16,
2615
+ fontSize: 16
2616
+ }
2617
+ }
2618
+ },
2619
+ MuiIconButton: {
2620
+ defaultProps: {
2621
+ color: "inherit"
2622
+ },
2623
+ styleOverrides: {
2624
+ sizeSmall: {
2625
+ padding: 3
2626
+ },
2627
+ sizeMedium: {
2628
+ padding: 8
2629
+ },
2630
+ sizeLarge: {
2631
+ padding: 12
2632
+ }
2633
+ }
2634
+ },
2635
+ MuiInputBase: {
2636
+ defaultProps: {
2637
+ margin: "none"
2638
+ },
2639
+ styleOverrides: {
2640
+ root: {
2641
+ "&.MuiInput-underline": {
2642
+ marginTop: 9
2643
+ },
2644
+ ".MuiOutlinedInput-input.MuiInputBase-inputSizeSmall": {
2645
+ paddingBlock: 6.51
2646
+ },
2647
+ ".MuiOutlinedInput-input": {
2648
+ paddingBlock: 14
2649
+ }
2650
+ }
2651
+ }
2652
+ },
2653
+ MuiOutlinedInput: {
2654
+ styleOverrides: {
2655
+ notchedOutline: {
2656
+ borderColor: "rgba(16, 24, 64, 0.23)"
2657
+ }
2658
+ }
2659
+ },
2660
+ MuiAutocomplete: {
2661
+ defaultProps: {
2662
+ size: "small"
2663
+ },
2664
+ styleOverrides: {
2665
+ root: {
2666
+ "&.MuiAutocomplete-root .MuiOutlinedInput-root": {
2667
+ padding: "6px 14px 6px 10px"
2668
+ },
2669
+ "& .MuiAutocomplete-endAdornment": {
2670
+ top: "calc(50% - 12px)",
2671
+ transform: "none"
2672
+ },
2673
+ "&.MuiAutocomplete-root .MuiOutlinedInput-root.MuiInputBase-sizeSmall": {
2674
+ paddingBlock: 3.5,
2675
+ paddingRight: 14,
2676
+ ".MuiIconButton-sizeSmall .MuiAutocomplete-popupIndicator": {
2677
+ padding: 5
2678
+ }
2679
+ }
2680
+ }
2681
+ }
2682
+ },
2683
+ MuiInputLabel: {
2684
+ styleOverrides: {
2685
+ asterisk: ({ theme }) => ({
2686
+ color: theme.palette.error.main
2687
+ }),
2688
+ root: {
2689
+ display: "flex",
2690
+ gap: ".2rem",
2691
+ flexDirection: "row-reverse",
2692
+ fontSize: 13,
2693
+ fontStyle: "normal",
2694
+ fontWeight: 400,
2695
+ letterSpacing: "0.15px"
2696
+ },
2697
+ filled: {
2698
+ "&.MuiInputLabel-filled.MuiInputLabel-sizeSmall:not(.MuiInputLabel-shrink)": {
2699
+ transform: "translate(12px,15px) scale(1)"
2700
+ },
2701
+ "&.MuiInputLabel-filled.MuiInputLabel-sizeMedium:not(.MuiInputLabel-shrink)": {
2702
+ transform: "translate(12px,19px) scale(1)"
2703
+ }
2704
+ },
2705
+ standard: {
2706
+ "&.MuiInputLabel-standard.MuiInputLabel-sizeSmall:not(.MuiInputLabel-shrink)": {
2707
+ transform: "translate(0, 14px) scale(1)"
2708
+ },
2709
+ "&.MuiInputLabel-standard.MuiInputLabel-sizeMedium:not(.MuiInputLabel-shrink)": {
2710
+ transform: "translate(0, 16px) scale(1)"
2711
+ }
2712
+ },
2713
+ outlined: {
2714
+ "&.MuiInputLabel-outlined.MuiInputLabel-sizeSmall ": {
2715
+ transform: "translate(14px,8px) scale(1)"
2716
+ },
2717
+ "&.MuiInputLabel-outlined ": {
2718
+ transform: "translate(14px, 14px) scale(1)",
2719
+ "&.MuiInputLabel-shrink": {
2720
+ transform: "translate(14px, -7px) scale(0.75)"
2721
+ }
2722
+ }
2723
+ }
2724
+ },
2725
+ defaultProps: {
2726
+ margin: "dense"
2727
+ }
2728
+ },
2729
+ MuiCard: {
2730
+ styleOverrides: {
2731
+ root: {
2732
+ overflow: "initial",
2733
+ boxShadow: "0px 2px 1px -2px rgba(24, 39, 75, 0.20), 0px 1px 1px -1px rgba(24, 39, 75, 0.14), 0px 1px 3px 0px rgba(24, 39, 75, 0.12)"
2734
+ }
2735
+ }
2736
+ },
2737
+ MuiCardHeader: {
2738
+ styleOverrides: {
2739
+ root: {
2740
+ padding: "8px 16px "
2741
+ }
2742
+ }
2743
+ },
2744
+ MuiCardContent: {
2745
+ styleOverrides: {
2746
+ root: {
2747
+ padding: "8px 16px "
2748
+ }
2749
+ }
2750
+ },
2751
+ MuiCardActions: {
2752
+ styleOverrides: {
2753
+ root: {
2754
+ padding: "8px 16px"
2755
+ }
2756
+ }
2757
+ },
2758
+ MuiRadio: {
2759
+ variants: [
2760
+ {
2761
+ props: { size: "small" },
2762
+ style: {
2763
+ padding: 3
2764
+ }
2765
+ },
2766
+ {
2767
+ props: { size: "medium" },
2768
+ style: {
2769
+ padding: 4
2770
+ }
2771
+ },
2772
+ {
2773
+ props: { size: "large" },
2774
+ style: {
2775
+ padding: 9,
2776
+ "& .MuiSvgIcon-fontSizeLarge": {
2777
+ width: 24,
2778
+ height: 24,
2779
+ fontSize: 24
2780
+ }
2781
+ }
2782
+ }
2783
+ ],
2784
+ defaultProps: {
2785
+ size: "small"
2786
+ }
2787
+ },
2788
+ MuiSwitch: {
2789
+ variants: [
2790
+ {
2791
+ props: { size: "small" },
2792
+ style: {
2793
+ height: 22,
2794
+ ".MuiSwitch-switchBase": {
2795
+ padding: 3
2796
+ }
2797
+ }
2798
+ }
2799
+ ],
2800
+ defaultProps: {
2801
+ size: "small"
2802
+ }
2803
+ },
2804
+ MuiTextField: {
2805
+ defaultProps: {
2806
+ size: "small",
2807
+ margin: "none"
2808
+ },
2809
+ variants: [
2810
+ {
2811
+ props: { variant: "standard" },
2812
+ style: {
2813
+ ".MuiInputBase-input.MuiInputBase-inputSizeSmall": {
2814
+ padding: 1.5
2815
+ }
2816
+ }
2817
+ }
2818
+ ]
2819
+ },
2820
+ MuiList: {
2821
+ defaultProps: {
2822
+ dense: false
2823
+ },
2824
+ styleOverrides: {
2825
+ padding: {
2826
+ ".MuiListItem-padding": {
2827
+ paddingBlock: 1
2828
+ }
2829
+ },
2830
+ dense: {
2831
+ ".MuiListItem-dense": {
2832
+ padding: "0.25px 0px 0.25px 16px"
2833
+ }
2834
+ }
2835
+ }
2836
+ },
2837
+ MuiListItemButton: {
2838
+ styleOverrides: {
2839
+ dense: {
2840
+ padding: "4px 16px 4px 16px "
2841
+ },
2842
+ root: {
2843
+ padding: "8.21px 16px",
2844
+ ".MuiListItemText-multiline": {
2845
+ marginBlock: "4px"
2846
+ }
2847
+ }
2848
+ }
2849
+ },
2850
+ MuiMenuItem: {
2851
+ styleOverrides: {
2852
+ dense: {
2853
+ height: 30,
2854
+ minHeight: 30,
2855
+ ".MuiListItemText-root > .MuiTypography-root": {
2856
+ lineHeight: "14.3px",
2857
+ letterSpacing: 0.15
2858
+ }
2859
+ },
2860
+ root: {
2861
+ padding: "7px 16px 7px 16px",
2862
+ ".MuiMenuList-root": {
2863
+ height: 34,
2864
+ minHeight: 34
2865
+ },
2866
+ ".MuiListItemText-root > .MuiTypography-root": {
2867
+ lineHeight: "20px",
2868
+ letterSpacing: 0.17
2869
+ },
2870
+ ".MuiListItemIcon-root": {
2871
+ minWidth: 32
2872
+ }
2873
+ }
2874
+ }
2875
+ },
2876
+ MuiTableBody: {
2877
+ styleOverrides: {
2878
+ root: {
2879
+ ".MuiTableCell-body.MuiTableCell-sizeMedium": {
2880
+ padding: "16px !important"
2881
+ }
2882
+ }
2883
+ }
2884
+ },
2885
+ MuiTableCell: {
2886
+ styleOverrides: {
2887
+ sizeMedium: {
2888
+ padding: 13
2889
+ }
2890
+ }
2891
+ },
2892
+ MuiTable: {
2893
+ defaultProps: {
2894
+ size: "small"
2895
+ },
2896
+ styleOverrides: {
2897
+ root: {
2898
+ minWidth: 630
2899
+ }
2900
+ }
2901
+ }
2902
+ };
2903
+
2904
+ // src/Theme/palette.ts
2905
+ var BasicPalette = {
2906
+ default: {
2907
+ main: "#E4E5E7",
2908
+ dark: "#D1D3D7",
2909
+ light: "#F2F2F3",
2910
+ contrastText: "#5A5E73"
2911
+ },
2912
+ chipInfo: {
2913
+ main: "#C0E8FC",
2914
+ dark: "#9CD8FA",
2915
+ light: "#E0F4FE",
2916
+ contrastText: "#5A5E73"
2917
+ },
2918
+ chipWarning: {
2919
+ main: "#FCE4C0",
2920
+ dark: "#FAD19C",
2921
+ light: "#F3F2F0",
2922
+ contrastText: "#5A5E73"
2923
+ },
2924
+ chipError: {
2925
+ main: "#FCD4D4",
2926
+ dark: "#F4B9B9",
2927
+ light: "#FEEAEA",
2928
+ contrastText: "#5A5E73"
2929
+ },
2930
+ chipSuccess: {
2931
+ main: "#DDF8C3",
2932
+ dark: "#C8F3A2",
2933
+ light: "#EFFCE2",
2934
+ contrastText: "#5A5E73"
2935
+ },
2936
+ error: {
2937
+ 50: "#F9E8E8",
2938
+ 100: "#F1C7C7",
2939
+ 200: "#E8A1A1",
2940
+ 300: "#DF7B7B",
2941
+ light: "#D85F5F",
2942
+ main: "#D14343",
2943
+ 600: "#CC3D3D",
2944
+ 700: "#C63434",
2945
+ 800: "#C02C2C",
2946
+ dark: "#B51E1E",
2947
+ A100: "#FFECEC",
2948
+ A200: "#FFB9B9",
2949
+ A400: "#FF8686",
2950
+ A700: "#FF6D6D",
2951
+ contrastText: "#ffffff"
2952
+ },
2953
+ warning: {
2954
+ 50: "#FFF0E0",
2955
+ 100: "#FEDAB3",
2956
+ 200: "#FDC280",
2957
+ 300: "#FCAA4D",
2958
+ light: "#FC9726",
2959
+ main: "#FB8500",
2960
+ 600: "#FA7D00",
2961
+ 700: "#FA7200",
2962
+ 800: "#F96800",
2963
+ dark: "#F85500",
2964
+ A100: "#FFFFFF",
2965
+ A200: "#FFF1EB",
2966
+ A400: "#FFCCB8",
2967
+ A700: "#FFBA9F",
2968
+ contrastText: "#ffffff"
2969
+ },
2970
+ info: {
2971
+ 50: "#E6F3F8",
2972
+ 100: "#C0E2EE",
2973
+ 200: "#96CFE2",
2974
+ 300: "#6CBCD6",
2975
+ light: "#4DADCE",
2976
+ main: "#2D9FC5",
2977
+ 600: "#2897BF",
2978
+ 700: "#228DB8",
2979
+ 800: "#1C83B0",
2980
+ dark: "#1172A3",
2981
+ A100: "#D4EFFF",
2982
+ A200: "#A1DCFF",
2983
+ A400: "#6ECAFF",
2984
+ A700: "#54C1FF",
2985
+ contrastText: "#ffffff"
2986
+ },
2987
+ success: {
2988
+ 50: "#F2F9E7",
2989
+ 100: "#DDEFC4",
2990
+ 200: "#C7E49D",
2991
+ 300: "#B1D975",
2992
+ light: "#A0D158",
2993
+ main: "#8FC93A",
2994
+ 600: "#87C334",
2995
+ 700: "#7CBC2C",
2996
+ 800: "#72B525",
2997
+ dark: "#60A918",
2998
+ A100: "#EDFFDE",
2999
+ A200: "#D2FFAB",
3000
+ A400: "#B6FF78",
3001
+ A700: "#A9FF5E",
3002
+ contrastText: "#ffffff"
3003
+ },
3004
+ grey: {
3005
+ 50: "#FBFBFB",
3006
+ 100: "#F5F5F6",
3007
+ 200: "#EAEBEC",
3008
+ 300: "#DCDEE0",
3009
+ 400: "#CED1D4",
3010
+ 500: "#C4C7CA",
3011
+ 600: "#B9BDC1",
3012
+ 700: "#B2B7BB",
3013
+ 800: "#AAAEB3",
3014
+ 900: "#A2A6AB",
3015
+ A100: "#FFFFFF",
3016
+ A200: "#FFFFFF",
3017
+ A400: "#D4EAFF",
3018
+ A700: "#BBDDFF"
3019
+ },
3020
+ text: {
3021
+ primary: "#101840de",
3022
+ secondary: "#10184099",
3023
+ disabled: "#10184061"
3024
+ },
3025
+ action: {
3026
+ active: "#1018408a",
3027
+ hover: "#1018400a",
3028
+ selected: "#10184014",
3029
+ disabled: "#10184042",
3030
+ disabledBackground: "#1018401f",
3031
+ focus: "#1018401f"
3032
+ },
3033
+ background: {
3034
+ default: "#f5f5f5",
3035
+ paper: "#fff"
3036
+ },
3037
+ common: {
3038
+ black: "#000",
3039
+ white: "#fff"
3040
+ },
3041
+ divider: "#0000001f"
3042
+ };
3043
+ var paletteERP = __spreadValues({
3044
+ primary: {
3045
+ 50: "#E4ECF4",
3046
+ 100: "#BCD0E3",
3047
+ 200: "#8FB1D0",
3048
+ 300: "#6392BD",
3049
+ light: "#417AAE",
3050
+ main: "#2063A0",
3051
+ 600: "#1C5B98",
3052
+ 700: "#18518E",
3053
+ 800: "#134784",
3054
+ dark: "#0B3573",
3055
+ A100: "#A5C5FF",
3056
+ A200: "#72A4FF",
3057
+ A400: "#3F83FF",
3058
+ A700: "#2572FF",
3059
+ contrastText: "#ffffff"
3060
+ },
3061
+ secondary: {
3062
+ 50: "#E0F7FA",
3063
+ 100: "#B3EBF2",
3064
+ 200: "#80DEEA",
3065
+ 300: "#4DD0E1",
3066
+ light: "#26C6DA",
3067
+ main: "#00BCD4",
3068
+ 600: "#00B6CF",
3069
+ 700: "#00ADC9",
3070
+ 800: "#00A5C3",
3071
+ dark: "#0097B9",
3072
+ A100: "#E2F9FF",
3073
+ A200: "#AFEEFF",
3074
+ A400: "#7CE3FF",
3075
+ A700: "#63DDFF",
3076
+ contrastText: "#ffffff"
3077
+ },
3078
+ chipPrimary: {
3079
+ main: "#C4E1F5",
3080
+ dark: "#A2CDEE",
3081
+ light: "#E2F0FA",
3082
+ contrastText: "#5A5E73"
3083
+ },
3084
+ chipSecondary: {
3085
+ main: "#C4F6FD",
3086
+ dark: "#A8F1FB",
3087
+ light: "#E0FBFE",
3088
+ contrastText: "#545E73"
3089
+ }
3090
+ }, BasicPalette);
3091
+ var paletteADPRO = __spreadValues({
3092
+ primary: {
3093
+ 50: "#F8FAFB",
3094
+ 100: "#E6EFF0",
3095
+ 200: "#D2E3E4",
3096
+ 300: "#82C6CB",
3097
+ light: "#2B9DA7",
3098
+ main: "#058C97",
3099
+ 600: "#04848F",
3100
+ 700: "#047984",
3101
+ 800: "#036F7A",
3102
+ dark: "#015C69",
3103
+ A100: "#98F0FF",
3104
+ A200: "#65E9FF",
3105
+ A400: "#32E1FF",
3106
+ A700: "#32E1FF"
3107
+ },
3108
+ secondary: {
3109
+ 50: "#E0F7FA",
3110
+ 100: "#B3EBF2",
3111
+ 200: "#80DEEA",
3112
+ 300: "#4DD0E1",
3113
+ light: "#26C6DA",
3114
+ main: "#00BCD4",
3115
+ 600: "#00B6CF",
3116
+ 700: "#00ADC9",
3117
+ 800: "#00A5C3",
3118
+ dark: "#0097B9",
3119
+ A100: "#E2F9FF",
3120
+ A200: "#AFEEFF",
3121
+ A400: "#7CE3FF",
3122
+ A700: "#63DDFF",
3123
+ contrastText: "#ffffff"
3124
+ },
3125
+ chipPrimary: {
3126
+ main: "#CEE7E9",
3127
+ dark: "#B2D9DC",
3128
+ light: "#E3F1F2",
3129
+ contrastText: "#5A5E73"
3130
+ },
3131
+ chipSecondary: {
3132
+ main: "#C4F6FD",
3133
+ dark: "#A8F1FB",
3134
+ light: "#E0FBFE",
3135
+ contrastText: "#545E73"
3136
+ }
3137
+ }, BasicPalette);
3138
+ var paletteADC = __spreadValues({
3139
+ primary: {
3140
+ 50: "#F8FAFB",
3141
+ 100: "#E6EFF0",
3142
+ 200: "#D2E3E4",
3143
+ 300: "#82C6CB",
3144
+ light: "#2B9DA7",
3145
+ main: "#058C97",
3146
+ 600: "#04848F",
3147
+ 700: "#047984",
3148
+ 800: "#036F7A",
3149
+ dark: "#015C69",
3150
+ A100: "#98F0FF",
3151
+ A200: "#65E9FF",
3152
+ A400: "#32E1FF",
3153
+ A700: "#32E1FF"
3154
+ },
3155
+ secondary: {
3156
+ 50: "#E0F7FA",
3157
+ 100: "#B3EBF2",
3158
+ 200: "#80DEEA",
3159
+ 300: "#4DD0E1",
3160
+ light: "#26C6DA",
3161
+ main: "#00BCD4",
3162
+ 600: "#00B6CF",
3163
+ 700: "#00ADC9",
3164
+ 800: "#00A5C3",
3165
+ dark: "#0097B9",
3166
+ A100: "#E2F9FF",
3167
+ A200: "#AFEEFF",
3168
+ A400: "#7CE3FF",
3169
+ A700: "#63DDFF",
3170
+ contrastText: "#ffffff"
3171
+ },
3172
+ chipPrimary: {
3173
+ main: "#D4D8F7",
3174
+ dark: "#B2B9F0",
3175
+ light: "#E5E8FA",
3176
+ contrastText: "#5A5E73"
3177
+ },
3178
+ chipSecondary: {
3179
+ main: "#E0E0E0",
3180
+ dark: "#D1D1D1",
3181
+ light: "#EBEBEB",
3182
+ contrastText: "#545E73"
3183
+ }
3184
+ }, BasicPalette);
3185
+
3186
+ // node_modules/@mui/system/esm/createBreakpoints/createBreakpoints.js
3187
+ var sortBreakpointsValues = (values) => {
3188
+ const breakpointsAsArray = Object.keys(values).map((key) => ({
3189
+ key,
3190
+ val: values[key]
3191
+ })) || [];
3192
+ breakpointsAsArray.sort((breakpoint1, breakpoint2) => breakpoint1.val - breakpoint2.val);
3193
+ return breakpointsAsArray.reduce((acc, obj) => {
3194
+ return __spreadProps(__spreadValues({}, acc), {
3195
+ [obj.key]: obj.val
3196
+ });
3197
+ }, {});
3198
+ };
3199
+ function createBreakpoints(breakpoints2) {
3200
+ const _a = breakpoints2, {
3201
+ values: values = {
3202
+ xs: 0,
3203
+ // phone
3204
+ sm: 600,
3205
+ // tablet
3206
+ md: 900,
3207
+ // small laptop
3208
+ lg: 1200,
3209
+ // desktop
3210
+ xl: 1536
3211
+ // large screen
3212
+ },
3213
+ unit = "px",
3214
+ step = 5
3215
+ } = _a, other = __objRest(_a, [
3216
+ // The breakpoint **start** at this value.
3217
+ // For instance with the first breakpoint xs: [xs, sm).
3218
+ "values",
3219
+ "unit",
3220
+ "step"
3221
+ ]);
3222
+ const sortedValues = sortBreakpointsValues(values);
3223
+ const keys = Object.keys(sortedValues);
3224
+ function up(key) {
3225
+ const value = typeof values[key] === "number" ? values[key] : key;
3226
+ return `@media (min-width:${value}${unit})`;
3227
+ }
3228
+ function down(key) {
3229
+ const value = typeof values[key] === "number" ? values[key] : key;
3230
+ return `@media (max-width:${value - step / 100}${unit})`;
3231
+ }
3232
+ function between(start, end) {
3233
+ const endIndex = keys.indexOf(end);
3234
+ return `@media (min-width:${typeof values[start] === "number" ? values[start] : start}${unit}) and (max-width:${(endIndex !== -1 && typeof values[keys[endIndex]] === "number" ? values[keys[endIndex]] : end) - step / 100}${unit})`;
3235
+ }
3236
+ function only(key) {
3237
+ if (keys.indexOf(key) + 1 < keys.length) {
3238
+ return between(key, keys[keys.indexOf(key) + 1]);
3239
+ }
3240
+ return up(key);
3241
+ }
3242
+ function not(key) {
3243
+ const keyIndex = keys.indexOf(key);
3244
+ if (keyIndex === 0) {
3245
+ return up(keys[1]);
3246
+ }
3247
+ if (keyIndex === keys.length - 1) {
3248
+ return down(keys[keyIndex]);
3249
+ }
3250
+ return between(key, keys[keys.indexOf(key) + 1]).replace("@media", "@media not all and");
3251
+ }
3252
+ return __spreadValues({
3253
+ keys,
3254
+ values: sortedValues,
3255
+ up,
3256
+ down,
3257
+ between,
3258
+ only,
3259
+ not,
3260
+ unit
3261
+ }, other);
3262
+ }
3263
+
3264
+ // src/Theme/breakpoints.ts
3265
+ var breakpoints = createBreakpoints({
3266
+ values: {
3267
+ xs: 0,
3268
+ sm: 600,
3269
+ md: 960,
3270
+ lg: 1280,
3271
+ xl: 1920
3272
+ }
3273
+ });
3274
+
3275
+ // src/Theme/mixins.ts
3276
+ var mixins = {
3277
+ toolbar: {
3278
+ minHeight: 48,
3279
+ [breakpoints.down("md")]: {
3280
+ minHeight: 52
3281
+ }
3282
+ }
3283
+ };
3284
+
3285
+ // src/Theme/module.ts
3286
+ var import_Typography = require("@mui/material/Typography");
3287
+ var import_Radio = require("@mui/material/Radio");
3288
+ var import_Chip = require("@mui/material/Chip");
3289
+ var import_Checkbox = require("@mui/material/Checkbox");
3290
+ var import_styles = require("@mui/material/styles");
3291
+
3292
+ // src/Theme/typography.ts
3293
+ var typography = {
3294
+ fontSize: 13,
3295
+ body1: {
3296
+ fontFamily: "Roboto",
3297
+ fontSize: 14,
3298
+ fontWeight: 400,
3299
+ lineHeight: "16px",
3300
+ letterSpacing: "0.15px",
3301
+ "@media(max-width: 885px)": {
3302
+ fontSize: 15
3303
+ }
3304
+ },
3305
+ body2: {
3306
+ fontFamily: "Roboto",
3307
+ fontSize: 13,
3308
+ fontWeight: 400,
3309
+ lineHeight: "16px",
3310
+ letterSpacing: "0.17px",
3311
+ "@media(max-width: 885px)": {
3312
+ fontSize: 14
3313
+ }
3314
+ },
3315
+ body3: {
3316
+ fontFamily: "Roboto",
3317
+ fontWeight: 300,
3318
+ fontSize: 12,
3319
+ lineHeight: "16px",
3320
+ letterSpacing: "0.17px",
3321
+ [breakpoints.down("md")]: {
3322
+ fontSize: 11
3323
+ }
3324
+ },
3325
+ subtitle1: {
3326
+ fontFamily: "Roboto",
3327
+ fontSize: 14,
3328
+ fontWeight: 500,
3329
+ lineHeight: "16px",
3330
+ letterSpacing: "0.15px",
3331
+ "@media(max-width: 885px)": {
3332
+ fontSize: 15
3333
+ }
3334
+ },
3335
+ subtitle2: {
3336
+ fontFamily: "Roboto",
3337
+ fontSize: 13,
3338
+ fontWeight: 500,
3339
+ lineHeight: "16px",
3340
+ letterSpacing: "0.1px",
3341
+ "@media(max-width: 885px)": {
3342
+ fontSize: 14
3343
+ }
3344
+ },
3345
+ caption: {
3346
+ fontFamily: "Roboto",
3347
+ fontSize: 11,
3348
+ fontWeight: 400,
3349
+ lineHeight: "14px",
3350
+ letterSpacing: "0.4px",
3351
+ "@media(max-width: 885px)": {
3352
+ fontSize: 12
3353
+ }
3354
+ },
3355
+ overline: {
3356
+ fontFamily: "Roboto",
3357
+ fontSize: 11,
3358
+ fontWeight: 400,
3359
+ lineHeight: "24px",
3360
+ letterSpacing: "1px",
3361
+ "@media(max-width: 885px)": {
3362
+ fontSize: 12
3363
+ }
3364
+ },
3365
+ h6: {
3366
+ fontFamily: "Nunito",
3367
+ fontSize: 16,
3368
+ fontWeight: 600,
3369
+ lineHeight: "16px",
3370
+ letterSpacing: "0.15px",
3371
+ "@media(max-width: 885px)": {
3372
+ fontSize: 17
3373
+ }
3374
+ },
3375
+ h5: {
3376
+ fontFamily: "Nunito",
3377
+ fontSize: 18,
3378
+ fontWeight: 600,
3379
+ letterSpacing: 0,
3380
+ lineHeight: "24px"
3381
+ },
3382
+ h4: {
3383
+ fontFamily: "Nunito",
3384
+ fontSize: 22,
3385
+ fontWeight: 600,
3386
+ lineHeight: "24px",
3387
+ letterSpacing: "0.25px"
3388
+ },
3389
+ h3: {
3390
+ fontFamily: "Nunito",
3391
+ fontSize: 28,
3392
+ fontWeight: 500,
3393
+ lineHeight: "32px",
3394
+ letterSpacing: 0
3395
+ },
3396
+ h2: {
3397
+ fontFamily: "Nunito",
3398
+ fontSize: 32,
3399
+ fontWeight: 400,
3400
+ lineHeight: "40px",
3401
+ letterSpacing: -0.5
3402
+ },
3403
+ h1: {
3404
+ fontFamily: "Nunito",
3405
+ fontSize: 40,
3406
+ fontWeight: 300,
3407
+ letterSpacing: -1.5,
3408
+ lineHeight: "48px"
3409
+ }
3410
+ };
3411
+
3412
+ // src/Theme/shadows.ts
3413
+ var shadows = [
3414
+ "none",
3415
+ "0px 1px 3px rgba(24, 39, 75, 0.12), 0px 1px 1px -1px rgba(24, 39, 75, 0.14), 0px 2px 1px -2px rgba(24, 39, 75, 0.2)",
3416
+ "0px 1px 5px rgba(24, 39, 75, 0.12), 0px 2px 2px rgba(24, 39, 75, 0.14), 0px 3px 1px -2px rgba(24, 39, 75, 0.2)",
3417
+ "0px 1px 8px rgba(24, 39, 75, 0.12), 0px 3px 4px rgba(24, 39, 75, 0.14), 0px 3px 3px -2px rgba(24, 39, 75, 0.2)",
3418
+ "0px 2px 4px -1px rgba(24, 39, 75, 0.2), 0px 4px 5px rgba(24, 39, 75, 0.14), 0px 1px 10px rgba(24, 39, 75, 0.12)",
3419
+ "0px 3px 5px -1px rgba(24, 39, 75, 0.2), 0px 5px 8px rgba(24, 39, 75, 0.14), 0px 1px 14px rgba(24, 39, 75, 0.12)",
3420
+ "0px 3px 5px -1px rgba(24, 39, 75, 0.2), 0px 6px 10px rgba(24, 39, 75, 0.14), 0px 1px 18px rgba(24, 39, 75, 0.12)",
3421
+ "0px 4px 5px -2px rgba(24, 39, 75, 0.2), 0px 7px 10px 1px rgba(24, 39, 75, 0.14), 0px 2px 16px 1px rgba(24, 39, 75, 0.12)",
3422
+ "0px 5px 5px -3px rgba(24, 39, 75, 0.2), 0px 8px 10px 1px rgba(24, 39, 75, 0.14), 0px 3px 14px 2px rgba(24, 39, 75, 0.12)",
3423
+ "0px 5px 6px -3px rgba(24, 39, 75, 0.2), 0px 9px 12px 1px rgba(24, 39, 75, 0.14), 0px 3px 16px 2px rgba(24, 39, 75, 0.12)",
3424
+ "0px 6px 6px -3px rgba(24, 39, 75, 0.2), 0px 10px 14px 1px rgba(24, 39, 75, 0.14), 0px 4px 18px 3px rgba(24, 39, 75, 0.12)",
3425
+ "0px 6px 7px -4px rgba(24, 39, 75, 0.2), 0px 11px 15px 1px rgba(24, 39, 75, 0.14), 0px 4px 20px 3px rgba(24, 39, 75, 0.12)",
3426
+ "0px 7px 8px -4px rgba(24, 39, 75, 0.2), 0px 12px 17px 2px rgba(24, 39, 75, 0.14), 0px 5px 22px 4px rgba(24, 39, 75, 0.12)",
3427
+ "0px 7px 8px -4px rgba(24, 39, 75, 0.2), 0px 13px 19px 2px rgba(24, 39, 75, 0.14), 0px 5px 24px 4px rgba(24, 39, 75, 0.12)",
3428
+ "0px 7px 9px -4px rgba(24, 39, 75, 0.2), 0px 14px 21px 2px rgba(24, 39, 75, 0.14), 0px 5px 26px 4px rgba(24, 39, 75, 0.12)",
3429
+ "0px 8px 9px -5px rgba(24, 39, 75, 0.2), 0px 15px 22px 2px rgba(24, 39, 75, 0.14), 0px 6px 28px 5px rgba(24, 39, 75, 0.12)",
3430
+ "0px 8px 10px -5px rgba(24, 39, 75, 0.2), 0px 16px 24px 2px rgba(24, 39, 75, 0.14), 0px 6px 30px 5px rgba(24, 39, 75, 0.12)",
3431
+ "0px 8px 11px -5px rgba(24, 39, 75, 0.2), 0px 17px 26px 2px rgba(24, 39, 75, 0.14), 0px 6px 32px 5px rgba(24, 39, 75, 0.12)",
3432
+ "0px 9px 11px -5px rgba(24, 39, 75, 0.2), 0px 18px 28px 2px rgba(24, 39, 75, 0.14), 0px 7px 34px 6px rgba(24, 39, 75, 0.12)",
3433
+ "0px 9px 12px -6px rgba(24, 39, 75, 0.2), 0px 19px 29px 2px rgba(24, 39, 75, 0.14), 0px 7px 36px 6px rgba(24, 39, 75, 0.12)",
3434
+ "0px 10px 13px -6px rgba(24, 39, 75, 0.2), 0px 20px 31px 3px rgba(24, 39, 75, 0.14), 0px 8px 38px 7px rgba(24, 39, 75, 0.12)",
3435
+ "0px 10px 13px -6px rgba(24, 39, 75, 0.2), 0px 21px 33px 3px rgba(24, 39, 75, 0.14), 0px 8px 40px 7px rgba(24, 39, 75, 0.12)",
3436
+ "0px 10px 14px -6px rgba(24, 39, 75, 0.2), 0px 22px 35px 3px rgba(24, 39, 75, 0.14), 0px 8px 42px 7px rgba(24, 39, 75, 0.12)",
3437
+ "0px 11px 14px -7px rgba(24, 39, 75, 0.2), 0px 23px 36px 3px rgba(24, 39, 75, 0.14), 0px 9px 44px 8px rgba(24, 39, 75, 0.12)",
3438
+ "0px 11px 15px -7px rgba(24, 39, 75, 0.2), 0px 24px 38px 3px rgba(24, 39, 75, 0.14), 0px 9px 46px 8px rgba(24, 39, 75, 0.12)"
3439
+ ];
3440
+
3441
+ // src/Theme/theme.ts
3442
+ var BasicTheme = {
3443
+ components,
3444
+ typography,
3445
+ spacing: 8,
3446
+ mixins,
3447
+ breakpoints,
3448
+ shadows
3449
+ };
3450
+ var ERPTheme = __spreadValues({
3451
+ palette: paletteERP
3452
+ }, BasicTheme);
3453
+ var ADPROTheme = __spreadValues({
3454
+ palette: paletteADPRO
3455
+ }, BasicTheme);
3456
+ var ADCTheme = __spreadValues({
3457
+ palette: paletteADC
3458
+ }, BasicTheme);
3459
+
3460
+ // src/Theme/index.ts
3461
+ var SincoTheme = (0, import_styles2.createTheme)(__spreadValues({}, ERPTheme));
3462
+ var AdproSincoTheme = (0, import_styles2.createTheme)(__spreadValues({}, ADPROTheme));
3463
+ var ADCSincoTheme = (0, import_styles2.createTheme)(__spreadValues({}, ADCTheme));
3464
+ // Annotate the CommonJS export names for ESM import in node:
3465
+ 0 && (module.exports = {
3466
+ ADCSincoTheme,
3467
+ AdproSincoTheme,
3468
+ FooterAction,
3469
+ PageHeader,
3470
+ SCCalendarSwipeable,
3471
+ SCDialog,
3472
+ SCDrawer,
3473
+ SCMenu,
3474
+ SCModal,
3475
+ SCMultiSelect,
3476
+ SCTabs,
3477
+ SCTextArea,
3478
+ SCTextField,
3479
+ SCToastNotification,
3480
+ SincoTheme,
3481
+ ToastProgress,
3482
+ capitalize,
3483
+ getButtonColor,
3484
+ getIcon,
3485
+ getIconComponent,
3486
+ getIconMultiSelect,
3487
+ getModalColor,
3488
+ modalStateConfig,
3489
+ useFilteredItems,
3490
+ useMultiSelectHandlers,
3491
+ useProgress
3492
+ });
3493
+ /*! Bundled license information:
3494
+
3495
+ @mui/system/esm/index.js:
3496
+ (**
3497
+ * @mui/system v7.1.1
3498
+ *
3499
+ * @license MIT
3500
+ * This source code is licensed under the MIT license found in the
3501
+ * LICENSE file in the root directory of this source tree.
3502
+ *)
3503
+ */