componentes-sinco 1.0.11 → 1.0.13

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.js CHANGED
@@ -31,9 +31,9 @@ var __objRest = (source, exclude) => {
31
31
  };
32
32
 
33
33
  // src/Components/Adjuntar/Adjuntar.tsx
34
- import React2, { useEffect as useEffect3, useRef, useState as useState3 } from "react";
35
- import { Box as Box2, Button as Button2, IconButton as IconButton2, LinearProgress as LinearProgress2, Stack as Stack2, Typography as Typography2 } from "@mui/material";
36
- import { CloudUploadOutlined, AttachFileOutlined, DeleteOutline, UploadFileOutlined } from "@mui/icons-material";
34
+ import React4, { useEffect as useEffect4, useRef, useState as useState4 } from "react";
35
+ import { Box as Box3, Button as Button3, CircularProgress, IconButton as IconButton3, LinearProgress as LinearProgress2, Stack as Stack3, Tooltip, Typography as Typography3 } from "@mui/material";
36
+ import { CloudUploadOutlined, AttachFileOutlined, DeleteOutline, UploadFileOutlined, FileDownload } from "@mui/icons-material";
37
37
 
38
38
  // src/Components/ToastNotification/SCToastNotification.tsx
39
39
  import React, { useEffect as useEffect2, useState as useState2 } from "react";
@@ -215,18 +215,184 @@ var SCToastNotification = (toast) => {
215
215
  ));
216
216
  };
217
217
 
218
+ // src/Components/Modal/Helpers/Data.tsx
219
+ import React2 from "react";
220
+ import { Info, Warning } from "@mui/icons-material";
221
+ var modalStateConfig = {
222
+ info: {
223
+ color: "info",
224
+ defaultDescription: "Se [sincronizar\xE1n] los datos trabajados en modo offline y se [subir\xE1n] a los servidores.",
225
+ icon: /* @__PURE__ */ React2.createElement(Info, { color: "info", fontSize: "medium" })
226
+ },
227
+ delete: {
228
+ color: "delete",
229
+ defaultDescription: "[Elemento espec\xEDfico] [dejar\xE1 de existir en todos los lugares donde est\xE9 en uso]. Esta acci\xF3n es irreversible.",
230
+ icon: /* @__PURE__ */ React2.createElement(Info, { color: "error", fontSize: "medium" })
231
+ },
232
+ warning: {
233
+ color: "warning",
234
+ defaultDescription: "Se descartar\xE1 la [creaci\xF3n] y los cambios se perder\xE1n.",
235
+ icon: /* @__PURE__ */ React2.createElement(Warning, { color: "warning", fontSize: "medium" })
236
+ }
237
+ };
238
+
239
+ // src/Components/Modal/Helpers/Utils.tsx
240
+ import * as MuiIcons from "@mui/icons-material";
241
+ import { FilterListOutlined } from "@mui/icons-material";
242
+ var getIconComponent = (iconName) => {
243
+ return iconName && MuiIcons[iconName] ? MuiIcons[iconName] : FilterListOutlined;
244
+ };
245
+ var getModalColor = (state) => {
246
+ var _a;
247
+ const colors = {
248
+ info: "info.100",
249
+ delete: "error.100",
250
+ warning: "warning.100"
251
+ };
252
+ return (_a = colors[state]) != null ? _a : "warning.100";
253
+ };
254
+ var getButtonColor = (state) => {
255
+ var _a;
256
+ const colorMap = {
257
+ info: "info",
258
+ delete: "error",
259
+ warning: "warning"
260
+ };
261
+ return (_a = colorMap[state]) != null ? _a : "info";
262
+ };
263
+
264
+ // src/Components/Modal/SCModal.tsx
265
+ import React3, { useCallback, useMemo, useState as useState3 } from "react";
266
+ import { Modal, Box as Box2, Typography as Typography2, IconButton as IconButton2, Button as Button2, Stack as Stack2 } from "@mui/material";
267
+ import { Close as Close2 } from "@mui/icons-material";
268
+
269
+ // src/generales/capitalize.tsx
270
+ function capitalize(text) {
271
+ return text.charAt(0).toUpperCase() + text.slice(1);
272
+ }
273
+
274
+ // src/Components/Modal/SCModal.tsx
275
+ var SCModal = ({
276
+ buttonModal,
277
+ state = "info",
278
+ open,
279
+ setOpen,
280
+ // ✅ ahora también puedes pasar setOpen desde afuera
281
+ title,
282
+ description,
283
+ action
284
+ }) => {
285
+ var _a, _b, _c, _d, _e;
286
+ const [internalOpen, setInternalOpen] = useState3(open != null ? open : false);
287
+ const isControlled = Boolean(setOpen);
288
+ const modalOpen = isControlled ? open != null ? open : false : internalOpen;
289
+ const setModalOpen = isControlled ? setOpen : setInternalOpen;
290
+ const handleToggle = useCallback(() => setModalOpen((prev) => !prev), [setModalOpen]);
291
+ const handleClose = useCallback(() => setModalOpen(false), [setModalOpen]);
292
+ const Icon = useMemo(() => getIconComponent(buttonModal == null ? void 0 : buttonModal.icon), [buttonModal == null ? void 0 : buttonModal.icon]);
293
+ const prevAction = useMemo(
294
+ () => action != null ? action : [
295
+ { text: "Cancelar", fn: handleClose },
296
+ { text: "Consultar", fn: () => {
297
+ } }
298
+ ],
299
+ [action, handleClose]
300
+ );
301
+ const { icon, defaultDescription } = modalStateConfig[state];
302
+ return /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(
303
+ Button2,
304
+ {
305
+ "data-testid": "test-buttonModal",
306
+ color: (_a = buttonModal == null ? void 0 : buttonModal.color) != null ? _a : "primary",
307
+ onClick: handleToggle,
308
+ variant: (_b = buttonModal == null ? void 0 : buttonModal.variant) != null ? _b : "text",
309
+ size: (_c = buttonModal == null ? void 0 : buttonModal.size) != null ? _c : "small",
310
+ startIcon: (buttonModal == null ? void 0 : buttonModal.iconPosition) === "left" && /* @__PURE__ */ React3.createElement(Icon, null),
311
+ endIcon: (buttonModal == null ? void 0 : buttonModal.iconPosition) === "right" && /* @__PURE__ */ React3.createElement(Icon, null)
312
+ },
313
+ capitalize((_d = buttonModal == null ? void 0 : buttonModal.text) != null ? _d : "filtrar")
314
+ ), /* @__PURE__ */ React3.createElement(Modal, { open: modalOpen, onClose: handleClose, sx: { boxShadow: 8 } }, /* @__PURE__ */ React3.createElement(
315
+ Box2,
316
+ {
317
+ sx: {
318
+ position: "absolute",
319
+ top: "50%",
320
+ left: "50%",
321
+ transform: "translate(-50%, -50%)",
322
+ width: 400,
323
+ bgcolor: "background.paper",
324
+ borderRadius: 1,
325
+ boxShadow: 24
326
+ }
327
+ },
328
+ /* @__PURE__ */ React3.createElement(Stack2, { direction: "row", justifyContent: "space-between", alignItems: "center" }, /* @__PURE__ */ React3.createElement(Stack2, { direction: "row", alignItems: "center", p: 1, gap: 1.5 }, /* @__PURE__ */ React3.createElement(
329
+ Box2,
330
+ {
331
+ display: "flex",
332
+ justifyContent: "center",
333
+ alignItems: "center",
334
+ borderRadius: "50%",
335
+ height: 36,
336
+ width: 36,
337
+ bgcolor: getModalColor(state)
338
+ },
339
+ icon
340
+ ), /* @__PURE__ */ React3.createElement(Typography2, { variant: "h6", color: "text.primary" }, title)), /* @__PURE__ */ React3.createElement(IconButton2, { onClick: handleClose, "data-testid": "test-buttonClose" }, /* @__PURE__ */ React3.createElement(Close2, { color: "action" }))),
341
+ /* @__PURE__ */ React3.createElement(Stack2, { py: 1, px: 3, gap: 1.5 }, /* @__PURE__ */ React3.createElement(Typography2, { variant: "body1" }, description || defaultDescription)),
342
+ action && /* @__PURE__ */ React3.createElement(
343
+ Stack2,
344
+ {
345
+ id: "Action",
346
+ direction: "row",
347
+ gap: 1,
348
+ p: 1,
349
+ justifyContent: "end",
350
+ bgcolor: "grey.50",
351
+ sx: { borderRadius: 1 }
352
+ },
353
+ /* @__PURE__ */ React3.createElement(
354
+ Button2,
355
+ {
356
+ color: "inherit",
357
+ variant: "text",
358
+ onClick: handleClose,
359
+ size: "small"
360
+ },
361
+ capitalize("cancelar")
362
+ ),
363
+ /* @__PURE__ */ React3.createElement(
364
+ Button2,
365
+ {
366
+ "data-testid": "test-aceptar",
367
+ color: getButtonColor(state),
368
+ variant: "contained",
369
+ onClick: (_e = action[0]) == null ? void 0 : _e.fn,
370
+ disabled: false,
371
+ size: "small"
372
+ },
373
+ capitalize(action[0].text)
374
+ )
375
+ )
376
+ )));
377
+ };
378
+
218
379
  // src/Components/Adjuntar/Adjuntar.tsx
219
- var Adjuntar = ({
380
+ var Attachment = ({
220
381
  sx,
221
382
  compact,
222
383
  error,
223
- onChange,
224
384
  maxSize = 400,
225
- fileAccepted = ""
385
+ fileAccepted = "",
386
+ onLoading,
387
+ onChange,
388
+ downloadAction,
389
+ initialFiles = []
226
390
  }) => {
227
- const [files, setFiles] = useState3([]);
228
- const [toast, setToast] = React2.useState(null);
229
- const [isDragFile, setIsDragFile] = useState3(false);
391
+ const [files, setFiles] = useState4([]);
392
+ const [fileToDelete, setFileToDelete] = useState4(null);
393
+ const [toast, setToast] = React4.useState(null);
394
+ const [openModal, setOpenModal] = useState4(false);
395
+ const [isDragFile, setIsDragFile] = useState4(false);
230
396
  const inputRef = useRef(null);
231
397
  const handleDrop = (event2) => {
232
398
  event2.preventDefault();
@@ -247,7 +413,13 @@ var Adjuntar = ({
247
413
  event2.preventDefault();
248
414
  setIsDragFile(false);
249
415
  };
250
- useEffect3(() => {
416
+ useEffect4(() => {
417
+ if (initialFiles.length > 0) {
418
+ setFiles(initialFiles);
419
+ onChange == null ? void 0 : onChange(initialFiles);
420
+ }
421
+ }, [initialFiles]);
422
+ useEffect4(() => {
251
423
  const interval = setInterval(() => {
252
424
  setFiles((prevFiles) => {
253
425
  let updated = false;
@@ -335,7 +507,7 @@ var Adjuntar = ({
335
507
  setFiles(filtered);
336
508
  onChange == null ? void 0 : onChange(filtered);
337
509
  };
338
- return /* @__PURE__ */ React2.createElement(Stack2, { spacing: 2 }, toast && /* @__PURE__ */ React2.createElement(SCToastNotification, __spreadValues({}, toast)), /* @__PURE__ */ React2.createElement(
510
+ return /* @__PURE__ */ React4.createElement(Stack3, { spacing: 2 }, toast && /* @__PURE__ */ React4.createElement(SCToastNotification, __spreadValues({}, toast)), /* @__PURE__ */ React4.createElement(
339
511
  "input",
340
512
  {
341
513
  type: "file",
@@ -344,8 +516,8 @@ var Adjuntar = ({
344
516
  ref: inputRef,
345
517
  onChange: handleUpload
346
518
  }
347
- ), /* @__PURE__ */ React2.createElement(
348
- Stack2,
519
+ ), /* @__PURE__ */ React4.createElement(
520
+ Stack3,
349
521
  {
350
522
  id: "ZonaAdjuntos",
351
523
  justifyContent: "center",
@@ -371,9 +543,8 @@ var Adjuntar = ({
371
543
  }
372
544
  }, sx)
373
545
  },
374
- /* @__PURE__ */ React2.createElement(Box2, { display: "flex", bgcolor: error ? "error.50" : "primary.50", borderRadius: "100%", p: 1 }, /* @__PURE__ */ React2.createElement(CloudUploadOutlined, { color: error ? "error" : "primary", fontSize: "medium" })),
375
- /* @__PURE__ */ React2.createElement(
376
- Stack2,
546
+ onLoading ? /* @__PURE__ */ React4.createElement(Box3, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "450px" }, /* @__PURE__ */ React4.createElement(CircularProgress, { sx: { width: "60px", height: "60px" }, variant: "indeterminate" })) : /* @__PURE__ */ React4.createElement(React4.Fragment, null, /* @__PURE__ */ React4.createElement(Box3, { display: "flex", bgcolor: error ? "error.50" : "primary.50", borderRadius: "100%", p: 1 }, /* @__PURE__ */ React4.createElement(CloudUploadOutlined, { color: error ? "error" : "primary", fontSize: "medium" })), /* @__PURE__ */ React4.createElement(
547
+ Stack3,
377
548
  {
378
549
  width: "100%",
379
550
  flexDirection: compact ? "row" : "column",
@@ -381,20 +552,31 @@ var Adjuntar = ({
381
552
  justifyContent: compact ? "space-between" : "center",
382
553
  gap: 1
383
554
  },
384
- /* @__PURE__ */ React2.createElement(Stack2, { flexDirection: "column", alignItems: compact ? "start" : "center", gap: 0.5 }, /* @__PURE__ */ React2.createElement(Typography2, { variant: "body2", color: "text.primary" }, "Arrastrar o adjuntar archivos"), /* @__PURE__ */ React2.createElement(Typography2, { variant: "caption", color: error ? "error" : "text.secondary" }, error ? "DOCX, XML, PNG, JPG \u2022 Archivo no soportado" : `DOCX, XML, PNG, JPG \u2022 Max. ${maxSize}MB`)),
385
- /* @__PURE__ */ React2.createElement(
386
- Button2,
555
+ /* @__PURE__ */ React4.createElement(Stack3, { flexDirection: "column", alignItems: compact ? "start" : "center", gap: 0.5 }, /* @__PURE__ */ React4.createElement(Typography3, { variant: "body2", color: "text.primary" }, "Arrastrar o adjuntar archivos"), /* @__PURE__ */ React4.createElement(
556
+ Typography3,
557
+ {
558
+ variant: "caption",
559
+ color: error ? "error" : "text.secondary",
560
+ whiteSpace: "nowrap",
561
+ overflow: "hidden",
562
+ textOverflow: "ellipsis",
563
+ maxWidth: "210px"
564
+ },
565
+ error ? `${fileAccepted || "DOCX, XML, PNG, JPG"} \u2022 Archivo no soportado` : `${fileAccepted || "DOCX, XML, PNG, JPG"} \u2022 Max. ${maxSize}MB`
566
+ )),
567
+ /* @__PURE__ */ React4.createElement(
568
+ Button3,
387
569
  {
388
570
  variant: "text",
389
571
  color: "primary",
390
572
  size: "small",
391
- startIcon: /* @__PURE__ */ React2.createElement(AttachFileOutlined, { color: "primary", fontSize: "small" })
573
+ startIcon: /* @__PURE__ */ React4.createElement(AttachFileOutlined, { color: "primary", fontSize: "small" })
392
574
  },
393
575
  "Adjuntar"
394
576
  )
395
- )
396
- ), files.length > 0 && /* @__PURE__ */ React2.createElement(
397
- Stack2,
577
+ ))
578
+ ), files.length > 0 && /* @__PURE__ */ React4.createElement(
579
+ Stack3,
398
580
  {
399
581
  id: "ContenedorArchivosAdjuntos",
400
582
  width: "100%",
@@ -405,8 +587,8 @@ var Adjuntar = ({
405
587
  }),
406
588
  spacing: 1
407
589
  },
408
- files.map((file) => /* @__PURE__ */ React2.createElement(
409
- Stack2,
590
+ files.map((file) => /* @__PURE__ */ React4.createElement(
591
+ Stack3,
410
592
  {
411
593
  height: 46,
412
594
  key: file.name + (file.uploadError ? "_error" : ""),
@@ -423,7 +605,7 @@ var Adjuntar = ({
423
605
  }
424
606
  }
425
607
  },
426
- /* @__PURE__ */ React2.createElement(Stack2, { direction: "row", alignItems: "center", gap: 1, width: "100%" }, /* @__PURE__ */ React2.createElement(UploadFileOutlined, { color: file.uploadError ? "error" : "primary", fontSize: "small" }), /* @__PURE__ */ React2.createElement(Stack2, { width: "100%" }, /* @__PURE__ */ React2.createElement(Typography2, { variant: "body2", color: "text.primary" }, file.name), /* @__PURE__ */ React2.createElement(Typography2, { variant: "caption", color: file.uploadError ? "error" : "text.secondary" }, file.uploadError ? "Archivo duplicado o inv\xE1lido \u2022 Carga fallida" : file.size > maxSize && file.uploadError ? "Archivo supero el l\xEDmite" : `${(file.size / (1024 * 1024)).toFixed(2)}MB \u2022 ${file.type} \u2022 carga ${file.progress}%`), file.progress === 100 && !file.uploadError ? /* @__PURE__ */ React2.createElement(React2.Fragment, null) : /* @__PURE__ */ React2.createElement(
608
+ /* @__PURE__ */ React4.createElement(Stack3, { direction: "row", alignItems: "center", gap: 1, width: "100%" }, /* @__PURE__ */ React4.createElement(UploadFileOutlined, { color: file.uploadError ? "error" : "primary", fontSize: "small" }), /* @__PURE__ */ React4.createElement(Stack3, { width: "100%" }, /* @__PURE__ */ React4.createElement(Typography3, { variant: "body2", color: "text.primary", whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis", maxWidth: "210px" }, file.name), /* @__PURE__ */ React4.createElement(Typography3, { variant: "caption", color: file.uploadError ? "error" : "text.secondary" }, file.uploadError && file.size / (1024 * 1024) > maxSize ? "Archivo super\xF3 el l\xEDmite \u2022 Carga fallida" : file.uploadError ? "Archivo duplicado o inv\xE1lido \u2022 Carga fallida" : `${(file.size / (1024 * 1024)).toFixed(2)}MB \u2022 ${file.type} \u2022 carga ${file.progress}%`), file.progress === 100 && !file.uploadError ? null : /* @__PURE__ */ React4.createElement(
427
609
  LinearProgress2,
428
610
  {
429
611
  variant: "determinate",
@@ -431,28 +613,61 @@ var Adjuntar = ({
431
613
  value: file.progress
432
614
  }
433
615
  ))),
434
- /* @__PURE__ */ React2.createElement(IconButton2, { size: "small", onClick: () => deleteFiles(file.name) }, /* @__PURE__ */ React2.createElement(DeleteOutline, { fontSize: "small", color: "action" }))
616
+ /* @__PURE__ */ React4.createElement(Tooltip, { title: "Descargar" }, /* @__PURE__ */ React4.createElement(IconButton3, { size: "small", onClick: downloadAction }, /* @__PURE__ */ React4.createElement(FileDownload, { fontSize: "small", color: "action" }))),
617
+ /* @__PURE__ */ React4.createElement(Tooltip, { title: "Eliminar" }, /* @__PURE__ */ React4.createElement(IconButton3, { size: "small", onClick: () => {
618
+ setFileToDelete(file);
619
+ setOpenModal(true);
620
+ } }, /* @__PURE__ */ React4.createElement(DeleteOutline, { fontSize: "small", color: "action" })))
435
621
  ))
622
+ ), /* @__PURE__ */ React4.createElement(
623
+ SCModal,
624
+ {
625
+ state: "delete",
626
+ open: openModal,
627
+ setOpen: setOpenModal,
628
+ title: "Eliminar archivo",
629
+ description: `\xBFEst\xE1s seguro que deseas eliminar "${fileToDelete == null ? void 0 : fileToDelete.name}"?`,
630
+ action: [
631
+ {
632
+ text: "Eliminar",
633
+ fn: () => {
634
+ if (fileToDelete) {
635
+ deleteFiles(fileToDelete.name);
636
+ setFileToDelete(null);
637
+ setToast(null);
638
+ setTimeout(() => {
639
+ setToast({
640
+ title: "Archivo eliminado",
641
+ type: "success",
642
+ time: 2
643
+ });
644
+ }, 10);
645
+ }
646
+ setOpenModal(false);
647
+ }
648
+ }
649
+ ]
650
+ }
436
651
  ));
437
652
  };
438
653
 
439
654
  // src/Components/Drawer/SCDrawer.tsx
440
- import React9, { useEffect as useEffect9, useRef as useRef3 } from "react";
441
- import { Box as Box8, Drawer, Typography as Typography8, IconButton as IconButton6, Button as Button5, Stack as Stack4, Chip as Chip2 } from "@mui/material";
655
+ import React11, { useEffect as useEffect10, useRef as useRef3 } from "react";
656
+ import { Box as Box9, Drawer, Typography as Typography9, IconButton as IconButton7, Button as Button6, Stack as Stack5, Chip as Chip2 } from "@mui/material";
442
657
  import Grid4 from "@mui/material/Grid2";
443
658
  import CloseIcon from "@mui/icons-material/Close";
444
659
  import ArrowBackIosIcon from "@mui/icons-material/ArrowBackIos";
445
660
  import ArrowForwardIosIcon from "@mui/icons-material/ArrowForwardIos";
446
661
 
447
662
  // src/Components/Textfield/SCTextField.tsx
448
- import React3, { useEffect as useEffect4, useState as useState4 } from "react";
449
- import { FormControl, IconButton as IconButton3, InputAdornment, InputLabel, OutlinedInput, FilledInput, Popover, Input, Box as Box3, Typography as Typography3, SvgIcon, Tooltip } from "@mui/material";
663
+ import React5, { useEffect as useEffect5, useState as useState5 } from "react";
664
+ import { FormControl, IconButton as IconButton4, InputAdornment, InputLabel, OutlinedInput, FilledInput, Popover, Input, Box as Box4, Typography as Typography4, SvgIcon, Tooltip as Tooltip2 } from "@mui/material";
450
665
  import Grid from "@mui/material/Grid2";
451
666
  import { Visibility, VisibilityOff, InfoOutlined } from "@mui/icons-material";
452
667
 
453
668
  // src/Components/Textfield/Helpers/validateIcon.tsx
454
669
  import * as Muicon from "@mui/icons-material";
455
- function getIconComponent(name) {
670
+ function getIconComponent2(name) {
456
671
  if (typeof name !== "string") return name;
457
672
  return name in Muicon ? Muicon[name] : void 0;
458
673
  }
@@ -534,13 +749,13 @@ var SCTextField = ({
534
749
  let IconInputStart;
535
750
  let IconInputEnd;
536
751
  let IconTitle;
537
- const [showPassword, setShowPassword] = useState4(false);
538
- const [error, setError] = useState4(false);
539
- const [anchorInfoTitle, setAnchorInfoTitle] = useState4(null);
752
+ const [showPassword, setShowPassword] = useState5(false);
753
+ const [error, setError] = useState5(false);
754
+ const [anchorInfoTitle, setAnchorInfoTitle] = useState5(null);
540
755
  const openInfoTitle = Boolean(anchorInfoTitle);
541
- const [anchorInfoElement, setAnchorInfoElement] = useState4(null);
756
+ const [anchorInfoElement, setAnchorInfoElement] = useState5(null);
542
757
  const openInfoElement = Boolean(anchorInfoElement);
543
- useEffect4(() => {
758
+ useEffect5(() => {
544
759
  if (error) {
545
760
  setTimeout(() => {
546
761
  setError(false);
@@ -549,14 +764,14 @@ var SCTextField = ({
549
764
  }, [error]);
550
765
  if (iconInputStart) {
551
766
  IconInputStartValidation = getIconValidation(iconInputStart);
552
- IconInputStart = getIconComponent(iconInputStart);
767
+ IconInputStart = getIconComponent2(iconInputStart);
553
768
  }
554
769
  if (iconInputEnd) {
555
770
  IconInputEndValidation = getIconValidation(iconInputEnd);
556
- IconInputEnd = getIconComponent(iconInputEnd);
771
+ IconInputEnd = getIconComponent2(iconInputEnd);
557
772
  }
558
773
  if (iconTitle) {
559
- IconTitle = getIconComponent(iconTitle);
774
+ IconTitle = getIconComponent2(iconTitle);
560
775
  }
561
776
  const handleClickShowPassword = () => setShowPassword((show) => !show);
562
777
  const handleMouseDownPassword = (event2) => {
@@ -590,7 +805,7 @@ var SCTextField = ({
590
805
  const handleCloseInfoElement = () => {
591
806
  setAnchorInfoElement(null);
592
807
  };
593
- return /* @__PURE__ */ React3.createElement(Box3, { sx: { width } }, /* @__PURE__ */ React3.createElement(Grid, { container: true, alignItems: "center", mb: 1.25, gap: 0.5 }, iconTitle && IconTitle ? /* @__PURE__ */ React3.createElement(SvgIcon, { color: "action", fontSize: "small", component: IconTitle }) : "", title ? /* @__PURE__ */ React3.createElement(Typography3, { mx: 0.5, variant: "subtitle2", color: "text.secondary" }, title) : "", infoTitle ? /* @__PURE__ */ React3.createElement(React3.Fragment, null, infoTitle.component === "popover" ? /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(
808
+ return /* @__PURE__ */ React5.createElement(Box4, { sx: { width } }, /* @__PURE__ */ React5.createElement(Grid, { container: true, alignItems: "center", mb: 1.25, gap: 0.5 }, iconTitle && IconTitle ? /* @__PURE__ */ React5.createElement(SvgIcon, { color: "action", fontSize: "small", component: IconTitle }) : "", title ? /* @__PURE__ */ React5.createElement(Typography4, { mx: 0.5, variant: "subtitle2", color: "text.secondary" }, title) : "", infoTitle ? /* @__PURE__ */ React5.createElement(React5.Fragment, null, infoTitle.component === "popover" ? /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(
594
809
  InfoOutlined,
595
810
  {
596
811
  color: "action",
@@ -598,7 +813,7 @@ var SCTextField = ({
598
813
  onMouseEnter: (event2) => handleOpenInfoTitle(event2),
599
814
  onMouseLeave: () => handleCloseInfoTitle()
600
815
  }
601
- ), /* @__PURE__ */ React3.createElement(
816
+ ), /* @__PURE__ */ React5.createElement(
602
817
  Popover,
603
818
  {
604
819
  sx: {
@@ -620,14 +835,14 @@ var SCTextField = ({
620
835
  },
621
836
  disableRestoreFocus: true
622
837
  },
623
- /* @__PURE__ */ React3.createElement(Typography3, { p: 2 }, infoTitle.text)
624
- )) : /* @__PURE__ */ React3.createElement(Tooltip, { title: infoTitle.text, "data-testid": "test-infoTitle", placement: "bottom-start", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React3.createElement(
838
+ /* @__PURE__ */ React5.createElement(Typography4, { p: 2 }, infoTitle.text)
839
+ )) : /* @__PURE__ */ React5.createElement(Tooltip2, { title: infoTitle.text, "data-testid": "test-infoTitle", placement: "bottom-start", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React5.createElement(
625
840
  InfoOutlined,
626
841
  {
627
842
  color: "action",
628
843
  fontSize: "small"
629
844
  }
630
- ))) : ""), /* @__PURE__ */ React3.createElement(Grid, { container: true, sx: { flexWrap: "nowrap", alignItems: "center" } }, /* @__PURE__ */ React3.createElement(
845
+ ))) : ""), /* @__PURE__ */ React5.createElement(Grid, { container: true, sx: { flexWrap: "nowrap", alignItems: "center" } }, /* @__PURE__ */ React5.createElement(
631
846
  FormControl,
632
847
  {
633
848
  color,
@@ -636,7 +851,7 @@ var SCTextField = ({
636
851
  variant,
637
852
  sx: { background: background || "transparent", borderRadius: "4px" }
638
853
  },
639
- /* @__PURE__ */ React3.createElement(
854
+ /* @__PURE__ */ React5.createElement(
640
855
  InputLabel,
641
856
  {
642
857
  "data-testid": "test-label",
@@ -647,7 +862,7 @@ var SCTextField = ({
647
862
  },
648
863
  label ? label : ""
649
864
  ),
650
- /* @__PURE__ */ React3.createElement(
865
+ /* @__PURE__ */ React5.createElement(
651
866
  InputComponent,
652
867
  {
653
868
  size: size ? size : "medium",
@@ -663,17 +878,17 @@ var SCTextField = ({
663
878
  type: !showPassword && format2 === "password" ? "password" : (format2 || "text").toUpperCase() === "INT" || (format2 || "text").toUpperCase() === "DECIMAL" ? "number" : "text",
664
879
  className: format2 === "password" && !showPassword ? "" : "",
665
880
  placeholder,
666
- startAdornment: iconInputStart ? /* @__PURE__ */ React3.createElement(InputAdornment, { position: "start" }, IconInputStartValidation === "text" ? iconInputStart : IconInputStart ? /* @__PURE__ */ React3.createElement(IconInputStart, { fontSize: "small" }) : null) : "",
667
- endAdornment: /* @__PURE__ */ React3.createElement(InputAdornment, { position: "end" }, format2 === "password" ? /* @__PURE__ */ React3.createElement(
668
- IconButton3,
881
+ startAdornment: iconInputStart ? /* @__PURE__ */ React5.createElement(InputAdornment, { position: "start" }, IconInputStartValidation === "text" ? iconInputStart : IconInputStart ? /* @__PURE__ */ React5.createElement(IconInputStart, { fontSize: "small" }) : null) : "",
882
+ endAdornment: /* @__PURE__ */ React5.createElement(InputAdornment, { position: "end" }, format2 === "password" ? /* @__PURE__ */ React5.createElement(
883
+ IconButton4,
669
884
  {
670
885
  "aria-label": "toggle password visibility",
671
886
  onClick: handleClickShowPassword,
672
887
  onMouseDown: handleMouseDownPassword,
673
888
  edge: "end"
674
889
  },
675
- showPassword ? /* @__PURE__ */ React3.createElement(VisibilityOff, null) : /* @__PURE__ */ React3.createElement(Visibility, null)
676
- ) : iconInputEnd === void 0 && infoElement !== void 0 ? /* @__PURE__ */ React3.createElement(React3.Fragment, null, infoElement.component === "popover" ? /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(
890
+ showPassword ? /* @__PURE__ */ React5.createElement(VisibilityOff, null) : /* @__PURE__ */ React5.createElement(Visibility, null)
891
+ ) : iconInputEnd === void 0 && infoElement !== void 0 ? /* @__PURE__ */ React5.createElement(React5.Fragment, null, infoElement.component === "popover" ? /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(
677
892
  InfoOutlined,
678
893
  {
679
894
  "data-testid": "test-infoElement",
@@ -684,7 +899,7 @@ var SCTextField = ({
684
899
  onMouseEnter: (event2) => handleOpenInfoElement(event2),
685
900
  onMouseLeave: () => handleCloseInfoElement()
686
901
  }
687
- ), /* @__PURE__ */ React3.createElement(
902
+ ), /* @__PURE__ */ React5.createElement(
688
903
  Popover,
689
904
  {
690
905
  sx: {
@@ -706,19 +921,19 @@ var SCTextField = ({
706
921
  },
707
922
  disableRestoreFocus: true
708
923
  },
709
- /* @__PURE__ */ React3.createElement(Typography3, { "data-testid": "test-popover-text", p: 2 }, infoElement.text)
710
- )) : /* @__PURE__ */ React3.createElement(Tooltip, { title: infoElement.text, placement: "bottom-end", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React3.createElement(
924
+ /* @__PURE__ */ React5.createElement(Typography4, { "data-testid": "test-popover-text", p: 2 }, infoElement.text)
925
+ )) : /* @__PURE__ */ React5.createElement(Tooltip2, { title: infoElement.text, placement: "bottom-end", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React5.createElement(
711
926
  InfoOutlined,
712
927
  {
713
928
  color: "action",
714
929
  fontSize: "small"
715
930
  }
716
- ))) : iconInputEnd !== void 0 ? IconInputEndValidation === "text" ? iconInputEnd : IconInputEnd ? /* @__PURE__ */ React3.createElement(IconInputEnd, { fontSize: "small" }) : null : ""),
931
+ ))) : iconInputEnd !== void 0 ? IconInputEndValidation === "text" ? iconInputEnd : IconInputEnd ? /* @__PURE__ */ React5.createElement(IconInputEnd, { fontSize: "small" }) : null : ""),
717
932
  label: label ? label + (format2 === "password" && !showPassword ? "" : "") : "",
718
933
  autoComplete: format2 === "password" ? "new-password" : "off"
719
934
  }
720
935
  )
721
- ), (iconInputEnd !== void 0 || format2 === "password") && infoElement ? /* @__PURE__ */ React3.createElement(React3.Fragment, null, infoElement.component === "popover" ? /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(
936
+ ), (iconInputEnd !== void 0 || format2 === "password") && infoElement ? /* @__PURE__ */ React5.createElement(React5.Fragment, null, infoElement.component === "popover" ? /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(
722
937
  InfoOutlined,
723
938
  {
724
939
  "data-testid": "test-infoElement",
@@ -729,7 +944,7 @@ var SCTextField = ({
729
944
  onMouseEnter: (event2) => handleOpenInfoElement(event2),
730
945
  onMouseLeave: handleCloseInfoElement
731
946
  }
732
- ), /* @__PURE__ */ React3.createElement(
947
+ ), /* @__PURE__ */ React5.createElement(
733
948
  Popover,
734
949
  {
735
950
  sx: { pointerEvents: "none" },
@@ -746,8 +961,8 @@ var SCTextField = ({
746
961
  },
747
962
  disableRestoreFocus: true
748
963
  },
749
- /* @__PURE__ */ React3.createElement(Typography3, { "data-testid": "test-popover-text", p: 2 }, infoElement.text)
750
- )) : /* @__PURE__ */ React3.createElement(Tooltip, { title: infoElement.text, placement: "bottom-end", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React3.createElement(
964
+ /* @__PURE__ */ React5.createElement(Typography4, { "data-testid": "test-popover-text", p: 2 }, infoElement.text)
965
+ )) : /* @__PURE__ */ React5.createElement(Tooltip2, { title: infoElement.text, placement: "bottom-end", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React5.createElement(
751
966
  InfoOutlined,
752
967
  {
753
968
  sx: { marginLeft: "4px" },
@@ -758,17 +973,17 @@ var SCTextField = ({
758
973
  };
759
974
 
760
975
  // src/Components/TextArea/Helpers/validateIcon.tsx
761
- import * as MuiIcons from "@mui/icons-material";
976
+ import * as MuiIcons2 from "@mui/icons-material";
762
977
  function getIcon(name) {
763
- if (!name || !(name in MuiIcons)) {
978
+ if (!name || !(name in MuiIcons2)) {
764
979
  return null;
765
980
  }
766
- return MuiIcons[name];
981
+ return MuiIcons2[name];
767
982
  }
768
983
 
769
984
  // src/Components/TextArea/SCTextArea.tsx
770
- import React4, { useEffect as useEffect5, useState as useState5 } from "react";
771
- import { Typography as Typography4, Stack as Stack3, TextField, Box as Box4, Popover as Popover2, Tooltip as Tooltip2, SvgIcon as SvgIcon2, Grid as Grid2 } from "@mui/material";
985
+ import React6, { useEffect as useEffect6, useState as useState6 } from "react";
986
+ import { Typography as Typography5, Stack as Stack4, TextField, Box as Box5, Popover as Popover2, Tooltip as Tooltip3, SvgIcon as SvgIcon2, Grid as Grid2 } from "@mui/material";
772
987
  import { InfoOutlined as InfoOutlined2 } from "@mui/icons-material";
773
988
  var SCTextArea = ({
774
989
  //informativas
@@ -791,11 +1006,11 @@ var SCTextArea = ({
791
1006
  state,
792
1007
  onBlur
793
1008
  }) => {
794
- const [helperCount, setHelperCount] = useState5(0);
795
- const [stateError, setStateError] = useState5(false);
796
- const [anchorInfoTitle, setAnchorInfoTitle] = React4.useState(null);
1009
+ const [helperCount, setHelperCount] = useState6(0);
1010
+ const [stateError, setStateError] = useState6(false);
1011
+ const [anchorInfoTitle, setAnchorInfoTitle] = React6.useState(null);
797
1012
  const openInfoTitle = Boolean(anchorInfoTitle);
798
- useEffect5(() => {
1013
+ useEffect6(() => {
799
1014
  setHelperCount(state == null ? void 0 : state.length);
800
1015
  }, [state]);
801
1016
  const IconTitle = getIcon(iconTitle);
@@ -817,7 +1032,7 @@ var SCTextArea = ({
817
1032
  const handleCloseInfoTitle = () => {
818
1033
  setAnchorInfoTitle(null);
819
1034
  };
820
- return /* @__PURE__ */ React4.createElement(React4.Fragment, null, /* @__PURE__ */ React4.createElement(Box4, { sx: { width } }, /* @__PURE__ */ React4.createElement(Grid2, { container: true, sx: { alignItems: "center" }, gap: 0.5 }, iconTitle && IconTitle && /* @__PURE__ */ React4.createElement(SvgIcon2, { color: "action", fontSize: "small", component: IconTitle }), title && /* @__PURE__ */ React4.createElement(Typography4, { color: colorTitle || "text.secondary", variant: "subtitle2" }, title), infoTitle ? /* @__PURE__ */ React4.createElement(React4.Fragment, null, infoTitle.component === "popover" ? /* @__PURE__ */ React4.createElement(React4.Fragment, null, /* @__PURE__ */ React4.createElement(
1035
+ return /* @__PURE__ */ React6.createElement(React6.Fragment, null, /* @__PURE__ */ React6.createElement(Box5, { sx: { width } }, /* @__PURE__ */ React6.createElement(Grid2, { container: true, sx: { alignItems: "center" }, gap: 0.5 }, iconTitle && IconTitle && /* @__PURE__ */ React6.createElement(SvgIcon2, { color: "action", fontSize: "small", component: IconTitle }), title && /* @__PURE__ */ React6.createElement(Typography5, { color: colorTitle || "text.secondary", variant: "subtitle2" }, title), infoTitle ? /* @__PURE__ */ React6.createElement(React6.Fragment, null, infoTitle.component === "popover" ? /* @__PURE__ */ React6.createElement(React6.Fragment, null, /* @__PURE__ */ React6.createElement(
821
1036
  InfoOutlined2,
822
1037
  {
823
1038
  color: "action",
@@ -825,7 +1040,7 @@ var SCTextArea = ({
825
1040
  onMouseEnter: (event2) => handleOpenInfoTitle(event2),
826
1041
  onMouseLeave: () => handleCloseInfoTitle()
827
1042
  }
828
- ), /* @__PURE__ */ React4.createElement(
1043
+ ), /* @__PURE__ */ React6.createElement(
829
1044
  Popover2,
830
1045
  {
831
1046
  sx: { pointerEvents: "none" },
@@ -842,14 +1057,14 @@ var SCTextArea = ({
842
1057
  },
843
1058
  disableRestoreFocus: true
844
1059
  },
845
- /* @__PURE__ */ React4.createElement(Typography4, { sx: { p: 2 } }, infoTitle.text)
846
- )) : /* @__PURE__ */ React4.createElement(Tooltip2, { title: infoTitle.text, placement: "bottom-start", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React4.createElement(
1060
+ /* @__PURE__ */ React6.createElement(Typography5, { sx: { p: 2 } }, infoTitle.text)
1061
+ )) : /* @__PURE__ */ React6.createElement(Tooltip3, { title: infoTitle.text, placement: "bottom-start", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React6.createElement(
847
1062
  InfoOutlined2,
848
1063
  {
849
1064
  color: "action",
850
1065
  fontSize: "small"
851
1066
  }
852
- ))) : ""), /* @__PURE__ */ React4.createElement(Stack3, null, /* @__PURE__ */ React4.createElement(
1067
+ ))) : ""), /* @__PURE__ */ React6.createElement(Stack4, null, /* @__PURE__ */ React6.createElement(
853
1068
  TextField,
854
1069
  {
855
1070
  required,
@@ -871,8 +1086,8 @@ var SCTextArea = ({
871
1086
  },
872
1087
  autoComplete: "off"
873
1088
  }
874
- )), /* @__PURE__ */ React4.createElement(Stack3, null, /* @__PURE__ */ React4.createElement(
875
- Typography4,
1089
+ )), /* @__PURE__ */ React6.createElement(Stack4, null, /* @__PURE__ */ React6.createElement(
1090
+ Typography5,
876
1091
  {
877
1092
  variant: "caption",
878
1093
  color: "text.secondary",
@@ -885,8 +1100,8 @@ var SCTextArea = ({
885
1100
  };
886
1101
 
887
1102
  // src/Components/SCSelect.tsx
888
- import React5, { useEffect as useEffect6 } from "react";
889
- import { InputLabel as InputLabel2, FormControl as FormControl2, MenuItem, SvgIcon as SvgIcon3, ListItemIcon, ListItemText, Box as Box5 } from "@mui/material";
1103
+ import React7, { useEffect as useEffect7 } from "react";
1104
+ import { InputLabel as InputLabel2, FormControl as FormControl2, MenuItem, SvgIcon as SvgIcon3, ListItemIcon, ListItemText, Box as Box6 } from "@mui/material";
890
1105
  import Select from "@mui/material/Select";
891
1106
  import * as Muicon2 from "@mui/icons-material";
892
1107
  function SCSelect({
@@ -903,16 +1118,16 @@ function SCSelect({
903
1118
  state
904
1119
  }) {
905
1120
  const labelContent = `<span style="color: red;">* </span>` + label;
906
- const [prevData, setPrevData] = React5.useState(data);
907
- const [error, setError] = React5.useState(false);
908
- useEffect6(() => {
1121
+ const [prevData, setPrevData] = React7.useState(data);
1122
+ const [error, setError] = React7.useState(false);
1123
+ useEffect7(() => {
909
1124
  if (error) {
910
1125
  setTimeout(() => {
911
1126
  setError(false);
912
1127
  }, 1e3);
913
1128
  }
914
1129
  }, [error]);
915
- useEffect6(() => {
1130
+ useEffect7(() => {
916
1131
  let dataChangeValidation = JSON.stringify(prevData) === JSON.stringify(data);
917
1132
  if (dataChangeValidation == false) {
918
1133
  setState({ hiddenValue: "", textValue: "" });
@@ -946,25 +1161,25 @@ function SCSelect({
946
1161
  }
947
1162
  }
948
1163
  };
949
- return /* @__PURE__ */ React5.createElement(React5.Fragment, null, data && /* @__PURE__ */ React5.createElement(Box5, { sx: { width } }, /* @__PURE__ */ React5.createElement(
1164
+ return /* @__PURE__ */ React7.createElement(React7.Fragment, null, data && /* @__PURE__ */ React7.createElement(Box6, { sx: { width } }, /* @__PURE__ */ React7.createElement(
950
1165
  FormControl2,
951
1166
  {
952
1167
  fullWidth: true,
953
1168
  size: size ? size : "medium",
954
1169
  variant
955
1170
  },
956
- /* @__PURE__ */ React5.createElement(
1171
+ /* @__PURE__ */ React7.createElement(
957
1172
  InputLabel2,
958
1173
  {
959
1174
  error
960
1175
  },
961
- required ? /* @__PURE__ */ React5.createElement("span", { dangerouslySetInnerHTML: { __html: labelContent } }) : label
1176
+ required ? /* @__PURE__ */ React7.createElement("span", { dangerouslySetInnerHTML: { __html: labelContent } }) : label
962
1177
  ),
963
- /* @__PURE__ */ React5.createElement(
1178
+ /* @__PURE__ */ React7.createElement(
964
1179
  Select,
965
1180
  {
966
1181
  value: Array.isArray(state.hiddenValue) ? state.hiddenValue[0] || "" : state.hiddenValue != "-1" ? state.hiddenValue : "",
967
- label: required ? /* @__PURE__ */ React5.createElement("span", { dangerouslySetInnerHTML: { __html: labelContent } }) : label,
1182
+ label: required ? /* @__PURE__ */ React7.createElement("span", { dangerouslySetInnerHTML: { __html: labelContent } }) : label,
968
1183
  onChange: handleChange,
969
1184
  onBlur: handleBlur,
970
1185
  variant,
@@ -990,15 +1205,15 @@ function SCSelect({
990
1205
  }
991
1206
  },
992
1207
  data.map((option, index) => {
993
- return /* @__PURE__ */ React5.createElement(MenuItem, { key: index, value: getItemValue(option).value }, getItemValue(option).icon != void 0 ? /* @__PURE__ */ React5.createElement(ListItemIcon, { sx: { minWidth: "10px !important" } }, /* @__PURE__ */ React5.createElement(SvgIcon3, { fontSize: "small", color: "action", component: getItemValue(option).icon })) : "", /* @__PURE__ */ React5.createElement(ListItemText, { primary: getItemValue(option).text, color: "text.primary" }));
1208
+ return /* @__PURE__ */ React7.createElement(MenuItem, { key: index, value: getItemValue(option).value }, getItemValue(option).icon != void 0 ? /* @__PURE__ */ React7.createElement(ListItemIcon, { sx: { minWidth: "10px !important" } }, /* @__PURE__ */ React7.createElement(SvgIcon3, { fontSize: "small", color: "action", component: getItemValue(option).icon })) : "", /* @__PURE__ */ React7.createElement(ListItemText, { primary: getItemValue(option).text, color: "text.primary" }));
994
1209
  })
995
1210
  )
996
1211
  )));
997
1212
  }
998
1213
 
999
1214
  // src/Components/SCAutocomplete.tsx
1000
- import React6, { useEffect as useEffect7 } from "react";
1001
- import { Autocomplete, Checkbox, InputAdornment as InputAdornment3, MenuItem as MenuItem2, TextField as TextField3, Typography as Typography6, SvgIcon as SvgIcon4, ListItemIcon as ListItemIcon2, ListItemText as ListItemText2, Divider as Divider3, FormControlLabel as FormControlLabel2, IconButton as IconButton5, Chip, Box as Box6, Button as Button4 } from "@mui/material";
1215
+ import React8, { useEffect as useEffect8 } from "react";
1216
+ import { Autocomplete, Checkbox, InputAdornment as InputAdornment3, MenuItem as MenuItem2, TextField as TextField3, Typography as Typography7, SvgIcon as SvgIcon4, ListItemIcon as ListItemIcon2, ListItemText as ListItemText2, Divider as Divider3, FormControlLabel as FormControlLabel2, IconButton as IconButton6, Chip, Box as Box7, Button as Button5 } from "@mui/material";
1002
1217
  import Grid3 from "@mui/material/Grid2";
1003
1218
  import { Search, Clear } from "@mui/icons-material";
1004
1219
  import * as Muicon3 from "@mui/icons-material";
@@ -1022,12 +1237,12 @@ function SCAutocomplete({
1022
1237
  const labelContent = `<span style="color: red;">* </span>` + label;
1023
1238
  let group = "";
1024
1239
  let isSelected = false;
1025
- const [selectedOptions, setSelectedOptions] = React6.useState([]);
1026
- const [prevData, setPrevData] = React6.useState(data);
1027
- const [originalData, setOriginalData] = React6.useState(data);
1028
- const [inputValue, setInputValue] = React6.useState("");
1029
- const [isUserTyping, setIsUserTyping] = React6.useState(false);
1030
- useEffect7(() => {
1240
+ const [selectedOptions, setSelectedOptions] = React8.useState([]);
1241
+ const [prevData, setPrevData] = React8.useState(data);
1242
+ const [originalData, setOriginalData] = React8.useState(data);
1243
+ const [inputValue, setInputValue] = React8.useState("");
1244
+ const [isUserTyping, setIsUserTyping] = React8.useState(false);
1245
+ useEffect8(() => {
1031
1246
  const dataChangeValidation = JSON.stringify(prevData) === JSON.stringify(data);
1032
1247
  if (!dataChangeValidation && !isUserTyping) {
1033
1248
  setState({ hiddenValue: "-1", textValue: "" });
@@ -1038,7 +1253,7 @@ function SCAutocomplete({
1038
1253
  }
1039
1254
  setPrevData(data);
1040
1255
  }, [data, isUserTyping]);
1041
- useEffect7(() => {
1256
+ useEffect8(() => {
1042
1257
  if (typeFormat == "multiselect") {
1043
1258
  if (state.hiddenValue != "-1" && Array.isArray(state.hiddenValue)) {
1044
1259
  const newSelectedOptions = originalData.filter(
@@ -1048,7 +1263,7 @@ function SCAutocomplete({
1048
1263
  }
1049
1264
  }
1050
1265
  }, [state.hiddenValue, originalData, typeFormat]);
1051
- useEffect7(() => {
1266
+ useEffect8(() => {
1052
1267
  if (inputValue === "") {
1053
1268
  setIsUserTyping(false);
1054
1269
  }
@@ -1106,7 +1321,7 @@ function SCAutocomplete({
1106
1321
  const selectedValue = typeFormat === "multiselect" ? selectedOptions : originalData.find(
1107
1322
  (item) => getItemValue(item).value === state.hiddenValue
1108
1323
  ) || null;
1109
- return /* @__PURE__ */ React6.createElement(React6.Fragment, null, data && /* @__PURE__ */ React6.createElement(
1324
+ return /* @__PURE__ */ React8.createElement(React8.Fragment, null, data && /* @__PURE__ */ React8.createElement(
1110
1325
  Autocomplete,
1111
1326
  {
1112
1327
  multiple: typeFormat === "multiselect",
@@ -1133,9 +1348,9 @@ function SCAutocomplete({
1133
1348
  limitTags: 2,
1134
1349
  renderTags: (value, getTagProps) => {
1135
1350
  const limit = 2;
1136
- return /* @__PURE__ */ React6.createElement(React6.Fragment, null, value.slice(0, limit).map((option, index) => {
1351
+ return /* @__PURE__ */ React8.createElement(React8.Fragment, null, value.slice(0, limit).map((option, index) => {
1137
1352
  const _a = getTagProps({ index }), { key } = _a, chipProps = __objRest(_a, ["key"]);
1138
- return /* @__PURE__ */ React6.createElement(
1353
+ return /* @__PURE__ */ React8.createElement(
1139
1354
  Chip,
1140
1355
  __spreadProps(__spreadValues({
1141
1356
  key,
@@ -1147,7 +1362,7 @@ function SCAutocomplete({
1147
1362
  style: { maxWidth: 120, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }
1148
1363
  })
1149
1364
  );
1150
- }), value.length > limit && /* @__PURE__ */ React6.createElement(Box6, { sx: { ml: 0.5, fontSize: 13, color: "#666", display: "flex", alignItems: "center" } }, `+${value.length - limit}`));
1365
+ }), value.length > limit && /* @__PURE__ */ React8.createElement(Box7, { sx: { ml: 0.5, fontSize: 13, color: "#666", display: "flex", alignItems: "center" } }, `+${value.length - limit}`));
1151
1366
  },
1152
1367
  renderOption: (props, option) => {
1153
1368
  const _a = props, { key } = _a, optionProps = __objRest(_a, ["key"]);
@@ -1165,7 +1380,7 @@ function SCAutocomplete({
1165
1380
  isValid = group == option[columnGroup];
1166
1381
  group = option[columnGroup];
1167
1382
  }
1168
- return /* @__PURE__ */ React6.createElement(React6.Fragment, null, /* @__PURE__ */ React6.createElement(React6.Fragment, { key }, columnGroup ? !isValid ? /* @__PURE__ */ React6.createElement(Typography6, { color: "text.secondary", sx: { margin: "7px 16px !important", fontSize: "13px !important" } }, option[columnGroup]) : "" : "", /* @__PURE__ */ React6.createElement(
1383
+ return /* @__PURE__ */ React8.createElement(React8.Fragment, null, /* @__PURE__ */ React8.createElement(React8.Fragment, { key }, columnGroup ? !isValid ? /* @__PURE__ */ React8.createElement(Typography7, { color: "text.secondary", sx: { margin: "7px 16px !important", fontSize: "13px !important" } }, option[columnGroup]) : "" : "", /* @__PURE__ */ React8.createElement(
1169
1384
  MenuItem2,
1170
1385
  __spreadProps(__spreadValues({}, optionProps), {
1171
1386
  disabled: isDisabled,
@@ -1175,8 +1390,8 @@ function SCAutocomplete({
1175
1390
  opacity: isDisabled ? 0.5 : 1
1176
1391
  }
1177
1392
  }),
1178
- typeFormat != "multiselect" && getItemValue(option).icon != void 0 ? /* @__PURE__ */ React6.createElement(ListItemIcon2, { sx: { minWidth: "10px !important" } }, /* @__PURE__ */ React6.createElement(SvgIcon4, { fontSize: "small", color: "action", component: getItemValue(option).icon })) : "",
1179
- typeFormat == "multiselect" ? /* @__PURE__ */ React6.createElement(
1393
+ typeFormat != "multiselect" && getItemValue(option).icon != void 0 ? /* @__PURE__ */ React8.createElement(ListItemIcon2, { sx: { minWidth: "10px !important" } }, /* @__PURE__ */ React8.createElement(SvgIcon4, { fontSize: "small", color: "action", component: getItemValue(option).icon })) : "",
1394
+ typeFormat == "multiselect" ? /* @__PURE__ */ React8.createElement(
1180
1395
  Checkbox,
1181
1396
  {
1182
1397
  checked: isSelected,
@@ -1185,25 +1400,25 @@ function SCAutocomplete({
1185
1400
  color: "primary"
1186
1401
  }
1187
1402
  ) : "",
1188
- /* @__PURE__ */ React6.createElement(ListItemText2, { primary: getItemValue(option).text, color: "text.primary" }),
1403
+ /* @__PURE__ */ React8.createElement(ListItemText2, { primary: getItemValue(option).text, color: "text.primary" }),
1189
1404
  getItemValue(option).component != void 0 ? getItemValue(option).component : ""
1190
1405
  )));
1191
1406
  },
1192
- renderInput: (params) => /* @__PURE__ */ React6.createElement(React6.Fragment, null, /* @__PURE__ */ React6.createElement(
1407
+ renderInput: (params) => /* @__PURE__ */ React8.createElement(React8.Fragment, null, /* @__PURE__ */ React8.createElement(
1193
1408
  TextField3,
1194
1409
  __spreadProps(__spreadValues({}, params), {
1195
- label: required ? /* @__PURE__ */ React6.createElement("span", { dangerouslySetInnerHTML: { __html: labelContent } }) : label,
1410
+ label: required ? /* @__PURE__ */ React8.createElement("span", { dangerouslySetInnerHTML: { __html: labelContent } }) : label,
1196
1411
  placeholder: selectedOptions.length == 0 ? "B\xFAsqueda" : "",
1197
1412
  InputProps: __spreadProps(__spreadValues({}, params.InputProps), {
1198
- endAdornment: /* @__PURE__ */ React6.createElement(React6.Fragment, null, deleteType == "icon" && (state.hiddenValue.toString() != "-1" && state.hiddenValue.toString() != "") ? /* @__PURE__ */ React6.createElement(IconButton5, { size: "small", onClick: cleanOptions, sx: { marginLeft: "auto", textAlign: "right", padding: "0px" } }, /* @__PURE__ */ React6.createElement(Clear, { fontSize: "small" })) : "", /* @__PURE__ */ React6.createElement(InputAdornment3, { style: { zIndex: 1, position: "relative" }, position: "end" }, /* @__PURE__ */ React6.createElement(Search, { fontSize: "small", color: "action", style: { cursor: "pointer" } })))
1413
+ endAdornment: /* @__PURE__ */ React8.createElement(React8.Fragment, null, deleteType == "icon" && (state.hiddenValue.toString() != "-1" && state.hiddenValue.toString() != "") ? /* @__PURE__ */ React8.createElement(IconButton6, { size: "small", onClick: cleanOptions, sx: { marginLeft: "auto", textAlign: "right", padding: "0px" } }, /* @__PURE__ */ React8.createElement(Clear, { fontSize: "small" })) : "", /* @__PURE__ */ React8.createElement(InputAdornment3, { style: { zIndex: 1, position: "relative" }, position: "end" }, /* @__PURE__ */ React8.createElement(Search, { fontSize: "small", color: "action", style: { cursor: "pointer" } })))
1199
1414
  })
1200
1415
  })
1201
1416
  )),
1202
1417
  slotProps: {
1203
1418
  listbox: {
1204
- component: React6.forwardRef(function ListboxComponent(props, ref) {
1205
- return /* @__PURE__ */ React6.createElement(React6.Fragment, null, /* @__PURE__ */ React6.createElement(
1206
- Box6,
1419
+ component: React8.forwardRef(function ListboxComponent(props, ref) {
1420
+ return /* @__PURE__ */ React8.createElement(React8.Fragment, null, /* @__PURE__ */ React8.createElement(
1421
+ Box7,
1207
1422
  __spreadProps(__spreadValues({
1208
1423
  ref
1209
1424
  }, props), {
@@ -1213,9 +1428,9 @@ function SCAutocomplete({
1213
1428
  backgroundColor: "white"
1214
1429
  }, props.sx)
1215
1430
  }),
1216
- checkMassive && typeFormat == "multiselect" ? /* @__PURE__ */ React6.createElement(React6.Fragment, null, /* @__PURE__ */ React6.createElement(FormControlLabel2, { control: /* @__PURE__ */ React6.createElement(Checkbox, { checked: allSelected, indeterminate: selectedOptions.length > 0 && selectedOptions.length < data.length, onChange: handleCheckAll, color: "primary" }), label: "Todos los items", sx: { marginLeft: "0px !important", marginRight: "0px !important", padding: "7px 16px" } }), /* @__PURE__ */ React6.createElement(Divider3, null)) : "",
1431
+ checkMassive && typeFormat == "multiselect" ? /* @__PURE__ */ React8.createElement(React8.Fragment, null, /* @__PURE__ */ React8.createElement(FormControlLabel2, { control: /* @__PURE__ */ React8.createElement(Checkbox, { checked: allSelected, indeterminate: selectedOptions.length > 0 && selectedOptions.length < data.length, onChange: handleCheckAll, color: "primary" }), label: "Todos los items", sx: { marginLeft: "0px !important", marginRight: "0px !important", padding: "7px 16px" } }), /* @__PURE__ */ React8.createElement(Divider3, null)) : "",
1217
1432
  props.children,
1218
- deleteType == "button" || fnAplicar ? /* @__PURE__ */ React6.createElement(
1433
+ deleteType == "button" || fnAplicar ? /* @__PURE__ */ React8.createElement(
1219
1434
  Grid3,
1220
1435
  {
1221
1436
  container: true,
@@ -1230,8 +1445,8 @@ function SCAutocomplete({
1230
1445
  justifyContent: "space-between"
1231
1446
  }
1232
1447
  },
1233
- deleteType == "button" ? /* @__PURE__ */ React6.createElement(
1234
- Button4,
1448
+ deleteType == "button" ? /* @__PURE__ */ React8.createElement(
1449
+ Button5,
1235
1450
  {
1236
1451
  variant: "text",
1237
1452
  color: "primary",
@@ -1243,8 +1458,8 @@ function SCAutocomplete({
1243
1458
  },
1244
1459
  "Limpiar"
1245
1460
  ) : "",
1246
- fnAplicar && /* @__PURE__ */ React6.createElement(
1247
- Button4,
1461
+ fnAplicar && /* @__PURE__ */ React8.createElement(
1462
+ Button5,
1248
1463
  {
1249
1464
  variant: "contained",
1250
1465
  color: "primary",
@@ -1263,8 +1478,8 @@ function SCAutocomplete({
1263
1478
  }
1264
1479
 
1265
1480
  // src/Components/SCDateRange.tsx
1266
- import React7 from "react";
1267
- import { Box as Box7, InputAdornment as InputAdornment4 } from "@mui/material";
1481
+ import React9 from "react";
1482
+ import { Box as Box8, InputAdornment as InputAdornment4 } from "@mui/material";
1268
1483
  import { LocalizationProvider } from "@mui/x-date-pickers/LocalizationProvider";
1269
1484
  import { AdapterDayjs } from "@mui/x-date-pickers/AdapterDayjs";
1270
1485
  import { DateRangePicker } from "@mui/x-date-pickers-pro/DateRangePicker";
@@ -1295,7 +1510,7 @@ var SCDateRange = ({
1295
1510
  ];
1296
1511
  setState(convertedValue);
1297
1512
  };
1298
- return /* @__PURE__ */ React7.createElement(LocalizationProvider, { dateAdapter: AdapterDayjs, adapterLocale: "es" }, /* @__PURE__ */ React7.createElement(Box7, { sx: { width: "100%" } }, /* @__PURE__ */ React7.createElement(
1513
+ return /* @__PURE__ */ React9.createElement(LocalizationProvider, { dateAdapter: AdapterDayjs, adapterLocale: "es" }, /* @__PURE__ */ React9.createElement(Box8, { sx: { width: "100%" } }, /* @__PURE__ */ React9.createElement(
1299
1514
  DateRangePicker,
1300
1515
  {
1301
1516
  value: state,
@@ -1314,7 +1529,7 @@ var SCDateRange = ({
1314
1529
  required,
1315
1530
  error: position === "start" ? isStartEmpty : isEndEmpty,
1316
1531
  InputProps: {
1317
- endAdornment: /* @__PURE__ */ React7.createElement(InputAdornment4, { position: "end" }, /* @__PURE__ */ React7.createElement(
1532
+ endAdornment: /* @__PURE__ */ React9.createElement(InputAdornment4, { position: "end" }, /* @__PURE__ */ React9.createElement(
1318
1533
  EventIcon,
1319
1534
  {
1320
1535
  color: hasError ? "error" : "action",
@@ -1384,7 +1599,7 @@ var validateInputs = (arrayElements, onError, onSuccess, setChipFilters, setText
1384
1599
  };
1385
1600
 
1386
1601
  // src/Components/Drawer/Helpers/validateTypeElement.tsx
1387
- import React8 from "react";
1602
+ import React10 from "react";
1388
1603
  var validateTypeElements = (element) => {
1389
1604
  var _a;
1390
1605
  let validation = "";
@@ -1392,37 +1607,37 @@ var validateTypeElements = (element) => {
1392
1607
  if (element.type == "textField") {
1393
1608
  validation = "textField";
1394
1609
  typeElement = element;
1395
- } else if (React8.isValidElement(element == null ? void 0 : element.component) && element.component.type && element.component.type.name == "SCtextField") {
1610
+ } else if (React10.isValidElement(element == null ? void 0 : element.component) && element.component.type && element.component.type.name == "SCtextField") {
1396
1611
  validation = "textField";
1397
1612
  typeElement = element == null ? void 0 : element.component.props;
1398
1613
  } else if (element.type == "textArea") {
1399
1614
  validation = "textArea";
1400
1615
  typeElement = element;
1401
- } else if (React8.isValidElement(element == null ? void 0 : element.component) && element.component.type && element.component.type.name == "SCtextArea") {
1616
+ } else if (React10.isValidElement(element == null ? void 0 : element.component) && element.component.type && element.component.type.name == "SCtextArea") {
1402
1617
  validation = "textArea";
1403
1618
  typeElement = element == null ? void 0 : element.component.props;
1404
1619
  } else if (element.type == "dateRange") {
1405
1620
  validation = "dateRange";
1406
1621
  typeElement = element;
1407
- } else if (React8.isValidElement(element == null ? void 0 : element.component) && element.component.type && element.component.type.name == "SCDateRange") {
1622
+ } else if (React10.isValidElement(element == null ? void 0 : element.component) && element.component.type && element.component.type.name == "SCDateRange") {
1408
1623
  validation = "dateRange";
1409
1624
  typeElement = element == null ? void 0 : element.component.props;
1410
1625
  } else if (element.type == "autocomplete") {
1411
1626
  validation = "autocomplete";
1412
1627
  typeElement = element;
1413
- } else if (React8.isValidElement(element == null ? void 0 : element.component) && element.component.type && element.component.type.name == "SCAutocomplete") {
1628
+ } else if (React10.isValidElement(element == null ? void 0 : element.component) && element.component.type && element.component.type.name == "SCAutocomplete") {
1414
1629
  validation = "autocomplete";
1415
1630
  typeElement = element == null ? void 0 : element.component.props;
1416
1631
  } else if (element.typeFormat == "multiselect") {
1417
1632
  validation = "multiselect";
1418
1633
  typeElement = element;
1419
- } else if (React8.isValidElement(element == null ? void 0 : element.component) && element.component.props && ((_a = element == null ? void 0 : element.component) == null ? void 0 : _a.props).typeFormat == "multiselect") {
1634
+ } else if (React10.isValidElement(element == null ? void 0 : element.component) && element.component.props && ((_a = element == null ? void 0 : element.component) == null ? void 0 : _a.props).typeFormat == "multiselect") {
1420
1635
  validation = "multiselect";
1421
1636
  typeElement = element == null ? void 0 : element.component.props;
1422
1637
  } else if (element.type == "select") {
1423
1638
  validation = "select";
1424
1639
  typeElement = element;
1425
- } else if (React8.isValidElement(element == null ? void 0 : element.component) && element.component.type && element.component.type.name == "SCSelect") {
1640
+ } else if (React10.isValidElement(element == null ? void 0 : element.component) && element.component.type && element.component.type.name == "SCSelect") {
1426
1641
  validation = "select";
1427
1642
  typeElement = element == null ? void 0 : element.component.props;
1428
1643
  }
@@ -1450,11 +1665,11 @@ function SCDrawer({
1450
1665
  }) {
1451
1666
  var _a, _b;
1452
1667
  const scrollRef = useRef3(null);
1453
- const [drawerOpen, setDrawerOpen] = React9.useState(open);
1454
- const [toast, setToast] = React9.useState(null);
1455
- const [stateChipFilters, setChipFilters] = React9.useState(false);
1456
- const [textFilters, setTextFilters] = React9.useState([]);
1457
- useEffect9(() => {
1668
+ const [drawerOpen, setDrawerOpen] = React11.useState(open);
1669
+ const [toast, setToast] = React11.useState(null);
1670
+ const [stateChipFilters, setChipFilters] = React11.useState(false);
1671
+ const [textFilters, setTextFilters] = React11.useState([]);
1672
+ useEffect10(() => {
1458
1673
  if (chipFilters != void 0) {
1459
1674
  if (chipFilters.length > 0) {
1460
1675
  setTextFilters([]);
@@ -1462,7 +1677,7 @@ function SCDrawer({
1462
1677
  }
1463
1678
  }
1464
1679
  }, [chipFilters]);
1465
- useEffect9(() => {
1680
+ useEffect10(() => {
1466
1681
  if (open) {
1467
1682
  toggleDrawer(true);
1468
1683
  } else {
@@ -1625,8 +1840,8 @@ function SCDrawer({
1625
1840
  };
1626
1841
  const shouldShowChips = chipFilters != void 0 && chipFilters.length > 0 ? true : stateChipFilters === true && hasActiveFilters();
1627
1842
  const actionsA = actions == false ? false : actions != void 0 ? actions : [{ text: "Aplicar filtros", fn: inputValidation }, { text: "Limpiar filtros", fn: cleanFilters }];
1628
- return /* @__PURE__ */ React9.createElement(React9.Fragment, null, toast && /* @__PURE__ */ React9.createElement(SCToastNotification, __spreadValues({}, toast)), /* @__PURE__ */ React9.createElement(Grid4, { container: true, justifyContent: "flex-start", flexWrap: "nowrap", alignItems: "center", sx: { width: "100%" } }, shouldShowChips && /* @__PURE__ */ React9.createElement(Box8, { display: "flex", alignItems: "center", sx: { maxWidth: "78%" } }, /* @__PURE__ */ React9.createElement(IconButton6, { onClick: () => scroll(-150), size: "small" }, /* @__PURE__ */ React9.createElement(ArrowBackIosIcon, { fontSize: "small" })), /* @__PURE__ */ React9.createElement(
1629
- Box8,
1843
+ return /* @__PURE__ */ React11.createElement(React11.Fragment, null, toast && /* @__PURE__ */ React11.createElement(SCToastNotification, __spreadValues({}, toast)), /* @__PURE__ */ React11.createElement(Grid4, { container: true, justifyContent: "flex-start", flexWrap: "nowrap", alignItems: "center", sx: { width: "100%" } }, shouldShowChips && /* @__PURE__ */ React11.createElement(Box9, { display: "flex", alignItems: "center", sx: { maxWidth: "78%" } }, /* @__PURE__ */ React11.createElement(IconButton7, { onClick: () => scroll(-150), size: "small" }, /* @__PURE__ */ React11.createElement(ArrowBackIosIcon, { fontSize: "small" })), /* @__PURE__ */ React11.createElement(
1844
+ Box9,
1630
1845
  {
1631
1846
  ref: scrollRef,
1632
1847
  gap: 0.3,
@@ -1637,7 +1852,7 @@ function SCDrawer({
1637
1852
  "&::-webkit-scrollbar": { display: "none" }
1638
1853
  }
1639
1854
  },
1640
- textFilters == null ? void 0 : textFilters.map((chipData, index) => /* @__PURE__ */ React9.createElement(
1855
+ textFilters == null ? void 0 : textFilters.map((chipData, index) => /* @__PURE__ */ React11.createElement(
1641
1856
  Chip2,
1642
1857
  __spreadProps(__spreadValues({
1643
1858
  key: index,
@@ -1652,15 +1867,15 @@ function SCDrawer({
1652
1867
  }
1653
1868
  })
1654
1869
  ))
1655
- ), /* @__PURE__ */ React9.createElement(IconButton6, { onClick: () => scroll(150), size: "small" }, /* @__PURE__ */ React9.createElement(ArrowForwardIosIcon, { fontSize: "small" }))), (buttonDrawer == null ? void 0 : buttonDrawer.type) == "chip" ? /* @__PURE__ */ React9.createElement(
1870
+ ), /* @__PURE__ */ React11.createElement(IconButton7, { onClick: () => scroll(150), size: "small" }, /* @__PURE__ */ React11.createElement(ArrowForwardIosIcon, { fontSize: "small" }))), (buttonDrawer == null ? void 0 : buttonDrawer.type) == "chip" ? /* @__PURE__ */ React11.createElement(
1656
1871
  Chip2,
1657
1872
  __spreadProps(__spreadValues({
1658
1873
  onClick: toggleDrawer(true),
1659
1874
  color: buttonDrawer == null ? void 0 : buttonDrawer.color,
1660
1875
  variant: (buttonDrawer == null ? void 0 : buttonDrawer.variant) == "contained" ? "filled" : "outlined",
1661
1876
  label: (_a = buttonDrawer == null ? void 0 : buttonDrawer.text) != null ? _a : "",
1662
- icon: (buttonDrawer == null ? void 0 : buttonDrawer.iconPosition) === "left" && ButtonIcon ? /* @__PURE__ */ React9.createElement(ButtonIcon, { fontSize: "small" }) : void 0,
1663
- deleteIcon: (buttonDrawer == null ? void 0 : buttonDrawer.iconPosition) === "right" && ButtonIcon ? /* @__PURE__ */ React9.createElement(ButtonIcon, { fontSize: "small" }) : void 0
1877
+ icon: (buttonDrawer == null ? void 0 : buttonDrawer.iconPosition) === "left" && ButtonIcon ? /* @__PURE__ */ React11.createElement(ButtonIcon, { fontSize: "small" }) : void 0,
1878
+ deleteIcon: (buttonDrawer == null ? void 0 : buttonDrawer.iconPosition) === "right" && ButtonIcon ? /* @__PURE__ */ React11.createElement(ButtonIcon, { fontSize: "small" }) : void 0
1664
1879
  }, (buttonDrawer == null ? void 0 : buttonDrawer.iconPosition) === "right" && ButtonIcon ? { onDelete: () => {
1665
1880
  } } : {}), {
1666
1881
  sx: {
@@ -1670,8 +1885,8 @@ function SCDrawer({
1670
1885
  textTransform: "capitalize"
1671
1886
  }
1672
1887
  })
1673
- ) : /* @__PURE__ */ React9.createElement(
1674
- Button5,
1888
+ ) : /* @__PURE__ */ React11.createElement(
1889
+ Button6,
1675
1890
  {
1676
1891
  "data-testid": "test-buttonDrawer",
1677
1892
  sx: { textTransform: "capitalize" },
@@ -1679,11 +1894,11 @@ function SCDrawer({
1679
1894
  onClick: toggleDrawer(true),
1680
1895
  size: "small",
1681
1896
  variant: (buttonDrawer == null ? void 0 : buttonDrawer.variant) != void 0 ? buttonDrawer == null ? void 0 : buttonDrawer.variant : "text",
1682
- startIcon: ((buttonDrawer == null ? void 0 : buttonDrawer.iconPosition) === "left" || !(buttonDrawer == null ? void 0 : buttonDrawer.iconPosition)) && ButtonIcon ? /* @__PURE__ */ React9.createElement(ButtonIcon, { fontSize: "small" }) : null,
1683
- endIcon: (buttonDrawer == null ? void 0 : buttonDrawer.iconPosition) === "right" && ButtonIcon ? /* @__PURE__ */ React9.createElement(ButtonIcon, { fontSize: "small" }) : null
1897
+ startIcon: ((buttonDrawer == null ? void 0 : buttonDrawer.iconPosition) === "left" || !(buttonDrawer == null ? void 0 : buttonDrawer.iconPosition)) && ButtonIcon ? /* @__PURE__ */ React11.createElement(ButtonIcon, { fontSize: "small" }) : null,
1898
+ endIcon: (buttonDrawer == null ? void 0 : buttonDrawer.iconPosition) === "right" && ButtonIcon ? /* @__PURE__ */ React11.createElement(ButtonIcon, { fontSize: "small" }) : null
1684
1899
  },
1685
1900
  (_b = buttonDrawer == null ? void 0 : buttonDrawer.text) != null ? _b : ""
1686
- )), /* @__PURE__ */ React9.createElement(
1901
+ )), /* @__PURE__ */ React11.createElement(
1687
1902
  Drawer,
1688
1903
  {
1689
1904
  open: drawerOpen,
@@ -1697,15 +1912,15 @@ function SCDrawer({
1697
1912
  }
1698
1913
  }
1699
1914
  },
1700
- /* @__PURE__ */ React9.createElement(Stack4, { flexDirection: "column", height: "100%" }, /* @__PURE__ */ React9.createElement(Grid4, { container: true, sx: { backgroundColor: "primary.50", alignItems: "center", height: "42px", textAlign: "left", padding: "8px 12px", justifyContent: "space-between", alignContent: "center" } }, /* @__PURE__ */ React9.createElement(Typography8, { variant: "h6", color: colorTitle || "text.primary" }, title != null ? title : "Personaliza tu b\xFAsqueda"), /* @__PURE__ */ React9.createElement(IconButton6, { onClick: handleDrawerClose }, /* @__PURE__ */ React9.createElement(CloseIcon, { "data-testid": "test-button-close", sx: { color: "text.primary" } }))), /* @__PURE__ */ React9.createElement(Stack4, { alignItems: "flex-start", height: "100%", gap: "16px", flex: 1, overflow: "auto", padding: "16px" }, arrayElements == null ? void 0 : arrayElements.map((arrayElement, index) => {
1915
+ /* @__PURE__ */ React11.createElement(Stack5, { flexDirection: "column", height: "100%" }, /* @__PURE__ */ React11.createElement(Grid4, { container: true, sx: { backgroundColor: "primary.50", alignItems: "center", height: "42px", textAlign: "left", padding: "8px 12px", justifyContent: "space-between", alignContent: "center" } }, /* @__PURE__ */ React11.createElement(Typography9, { variant: "h6", color: colorTitle || "text.primary" }, title != null ? title : "Personaliza tu b\xFAsqueda"), /* @__PURE__ */ React11.createElement(IconButton7, { onClick: handleDrawerClose }, /* @__PURE__ */ React11.createElement(CloseIcon, { "data-testid": "test-button-close", sx: { color: "text.primary" } }))), /* @__PURE__ */ React11.createElement(Stack5, { alignItems: "flex-start", height: "100%", gap: "16px", flex: 1, overflow: "auto", padding: "16px" }, arrayElements == null ? void 0 : arrayElements.map((arrayElement, index) => {
1701
1916
  var _a2, _b2, _c, _d, _e, _f;
1702
- return /* @__PURE__ */ React9.createElement(
1703
- Box8,
1917
+ return /* @__PURE__ */ React11.createElement(
1918
+ Box9,
1704
1919
  {
1705
1920
  key: `Stack_${(_a2 = arrayElement.type) != null ? _a2 : ""} ${(_b2 = arrayElement.label) != null ? _b2 : ""}${index}`,
1706
1921
  sx: { width: "100%" }
1707
1922
  },
1708
- arrayElement.component ? /* @__PURE__ */ React9.createElement(Stack4, { direction: "row", alignItems: "left", gap: 1 }, arrayElement.component) : arrayElement.type === "textField" ? /* @__PURE__ */ React9.createElement(
1923
+ arrayElement.component ? /* @__PURE__ */ React11.createElement(Stack5, { direction: "row", alignItems: "left", gap: 1 }, arrayElement.component) : arrayElement.type === "textField" ? /* @__PURE__ */ React11.createElement(
1709
1924
  SCTextField,
1710
1925
  {
1711
1926
  title: arrayElement.title,
@@ -1731,7 +1946,7 @@ function SCDrawer({
1731
1946
  onBlur: arrayElement.onBlur,
1732
1947
  onKeyDown: arrayElement.onKeyDown
1733
1948
  }
1734
- ) : arrayElement.type === "textArea" ? /* @__PURE__ */ React9.createElement(
1949
+ ) : arrayElement.type === "textArea" ? /* @__PURE__ */ React11.createElement(
1735
1950
  SCTextArea,
1736
1951
  {
1737
1952
  title: arrayElement.title,
@@ -1750,7 +1965,7 @@ function SCDrawer({
1750
1965
  state: arrayElement.state || "",
1751
1966
  onBlur: arrayElement.onBlur
1752
1967
  }
1753
- ) : arrayElement.type === "autocomplete" ? /* @__PURE__ */ React9.createElement(
1968
+ ) : arrayElement.type === "autocomplete" ? /* @__PURE__ */ React11.createElement(
1754
1969
  SCAutocomplete,
1755
1970
  {
1756
1971
  label: arrayElement.label,
@@ -1768,7 +1983,7 @@ function SCDrawer({
1768
1983
  state: arrayElement.state || "",
1769
1984
  inputChange: arrayElement.inputChange
1770
1985
  }
1771
- ) : arrayElement.type === "select" ? /* @__PURE__ */ React9.createElement(
1986
+ ) : arrayElement.type === "select" ? /* @__PURE__ */ React11.createElement(
1772
1987
  SCSelect,
1773
1988
  {
1774
1989
  label: arrayElement.label,
@@ -1784,7 +1999,7 @@ function SCDrawer({
1784
1999
  setState: arrayElement.setState,
1785
2000
  state: arrayElement.state || ""
1786
2001
  }
1787
- ) : arrayElement.type === "dateRange" ? /* @__PURE__ */ React9.createElement(
2002
+ ) : arrayElement.type === "dateRange" ? /* @__PURE__ */ React11.createElement(
1788
2003
  SCDateRange,
1789
2004
  {
1790
2005
  labelDateInitial: arrayElement.labelDateInitial,
@@ -1797,7 +2012,7 @@ function SCDrawer({
1797
2012
  }
1798
2013
  ) : null
1799
2014
  );
1800
- })), actionsA != void 0 && actionsA != false ? Array.isArray(actionsA) && (actionsA == null ? void 0 : actionsA.length) > 0 ? /* @__PURE__ */ React9.createElement(
2015
+ })), actionsA != void 0 && actionsA != false ? Array.isArray(actionsA) && (actionsA == null ? void 0 : actionsA.length) > 0 ? /* @__PURE__ */ React11.createElement(
1801
2016
  Grid4,
1802
2017
  {
1803
2018
  sx: { borderTop: 1, borderColor: "#1018403B" },
@@ -1809,8 +2024,8 @@ function SCDrawer({
1809
2024
  justifyContent: actionsA.length > 1 ? "space-between" : !anchor && anchor != "right" ? "flex-end" : "flex-start",
1810
2025
  flexDirection: anchor != "right" ? "row-reverse" : "row"
1811
2026
  },
1812
- actionsA.map((btn, index) => /* @__PURE__ */ React9.createElement(
1813
- Button5,
2027
+ actionsA.map((btn, index) => /* @__PURE__ */ React11.createElement(
2028
+ Button6,
1814
2029
  {
1815
2030
  key: index,
1816
2031
  variant: index === 0 || actionsA.length < 2 ? "contained" : "text",
@@ -1826,177 +2041,34 @@ function SCDrawer({
1826
2041
  }
1827
2042
 
1828
2043
  // src/Components/FooterAction/FooterAction.tsx
1829
- import React10 from "react";
1830
- import { AppBar, Toolbar, Box as Box9, Typography as Typography9 } from "@mui/material";
2044
+ import React12 from "react";
2045
+ import { AppBar, Toolbar, Box as Box10, Typography as Typography10 } from "@mui/material";
1831
2046
  var FooterAction = ({
1832
2047
  leftContent,
1833
2048
  rightContent,
1834
2049
  label,
1835
2050
  variant
1836
2051
  }) => {
1837
- return /* @__PURE__ */ React10.createElement(
2052
+ return /* @__PURE__ */ React12.createElement(
1838
2053
  AppBar,
1839
2054
  {
1840
2055
  color: "inherit",
1841
2056
  sx: { position: variant == "float" ? "relative" : "fixed", left: 0, right: "auto", width: "100%", top: "auto", bottom: 0 }
1842
2057
  },
1843
- /* @__PURE__ */ React10.createElement(
2058
+ /* @__PURE__ */ React12.createElement(
1844
2059
  Toolbar,
1845
2060
  {
1846
2061
  id: "footer-toolbar",
1847
2062
  sx: { gap: 1.5, minHeight: "50px !important" }
1848
2063
  },
1849
2064
  leftContent,
1850
- /* @__PURE__ */ React10.createElement(Box9, { flexGrow: 1 }),
1851
- label && /* @__PURE__ */ React10.createElement(Typography9, { variant: "body2", color: "text.secondary" }, label),
2065
+ /* @__PURE__ */ React12.createElement(Box10, { flexGrow: 1 }),
2066
+ label && /* @__PURE__ */ React12.createElement(Typography10, { variant: "body2", color: "text.secondary" }, label),
1852
2067
  rightContent
1853
2068
  )
1854
2069
  );
1855
2070
  };
1856
2071
 
1857
- // src/Components/Modal/Helpers/Data.tsx
1858
- import React11 from "react";
1859
- import { Info, Warning } from "@mui/icons-material";
1860
- var modalStateConfig = {
1861
- info: {
1862
- color: "info",
1863
- defaultDescription: "Se [sincronizar\xE1n] los datos trabajados en modo offline y se [subir\xE1n] a los servidores.",
1864
- icon: /* @__PURE__ */ React11.createElement(Info, { color: "info", fontSize: "medium" })
1865
- },
1866
- delete: {
1867
- color: "delete",
1868
- defaultDescription: "[Elemento espec\xEDfico] [dejar\xE1 de existir en todos los lugares donde est\xE9 en uso]. Esta acci\xF3n es irreversible.",
1869
- icon: /* @__PURE__ */ React11.createElement(Info, { color: "error", fontSize: "medium" })
1870
- },
1871
- warning: {
1872
- color: "warning",
1873
- defaultDescription: "Se descartar\xE1 la [creaci\xF3n] y los cambios se perder\xE1n.",
1874
- icon: /* @__PURE__ */ React11.createElement(Warning, { color: "warning", fontSize: "medium" })
1875
- }
1876
- };
1877
-
1878
- // src/Components/Modal/Helpers/Utils.tsx
1879
- import * as MuiIcons2 from "@mui/icons-material";
1880
- import { FilterListOutlined } from "@mui/icons-material";
1881
- var getIconComponent2 = (iconName) => {
1882
- return iconName && MuiIcons2[iconName] ? MuiIcons2[iconName] : FilterListOutlined;
1883
- };
1884
- var getModalColor = (state) => {
1885
- var _a;
1886
- const colors = {
1887
- info: "info.100",
1888
- delete: "error.100",
1889
- warning: "warning.100"
1890
- };
1891
- return (_a = colors[state]) != null ? _a : "warning.100";
1892
- };
1893
- var getButtonColor = (state) => {
1894
- var _a;
1895
- const colorMap = {
1896
- info: "info",
1897
- delete: "error",
1898
- warning: "warning"
1899
- };
1900
- return (_a = colorMap[state]) != null ? _a : "info";
1901
- };
1902
-
1903
- // src/Components/Modal/SCModal.tsx
1904
- import React12, { useCallback as useCallback3, useMemo as useMemo3, useState as useState6 } from "react";
1905
- import { Modal, Box as Box10, Typography as Typography10, IconButton as IconButton7, Button as Button6, Stack as Stack5 } from "@mui/material";
1906
- import { Close as Close2 } from "@mui/icons-material";
1907
-
1908
- // src/generales/capitalize.tsx
1909
- function capitalize(text) {
1910
- return text.charAt(0).toUpperCase() + text.slice(1);
1911
- }
1912
-
1913
- // src/Components/Modal/SCModal.tsx
1914
- var SCModal = ({
1915
- buttonModal,
1916
- state = "info",
1917
- open,
1918
- title,
1919
- description,
1920
- action
1921
- }) => {
1922
- var _a, _b, _c, _d, _e;
1923
- const [openModal, setOpenModal] = useState6(open != null ? open : false);
1924
- const handleOpen = React12.useCallback(() => {
1925
- setOpenModal((prev) => !prev);
1926
- }, []);
1927
- const Icon = useMemo3(() => getIconComponent2(buttonModal == null ? void 0 : buttonModal.icon), [buttonModal == null ? void 0 : buttonModal.icon]);
1928
- const handleClose = useCallback3(() => setOpenModal(false), []);
1929
- const prevAction = useMemo3(
1930
- () => action != null ? action : [{ text: "Cancelar", fn: handleClose }, { text: "Consultar", fn: () => {
1931
- } }],
1932
- [action, handleClose]
1933
- );
1934
- const { icon, defaultDescription } = modalStateConfig[state];
1935
- return /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement(
1936
- Button6,
1937
- {
1938
- "data-testid": "test-buttonModal",
1939
- color: (_a = buttonModal == null ? void 0 : buttonModal.color) != null ? _a : "primary",
1940
- onClick: handleOpen,
1941
- variant: (_b = buttonModal == null ? void 0 : buttonModal.variant) != null ? _b : "text",
1942
- size: (_c = buttonModal == null ? void 0 : buttonModal.size) != null ? _c : "small",
1943
- startIcon: (buttonModal == null ? void 0 : buttonModal.iconPosition) === "left" && /* @__PURE__ */ React12.createElement(Icon, null),
1944
- endIcon: (buttonModal == null ? void 0 : buttonModal.iconPosition) === "right" && /* @__PURE__ */ React12.createElement(Icon, null)
1945
- },
1946
- capitalize((_d = buttonModal == null ? void 0 : buttonModal.text) != null ? _d : "filtrar")
1947
- ), /* @__PURE__ */ React12.createElement(Modal, { open: openModal, onClose: handleOpen, sx: { boxShadow: 8 } }, /* @__PURE__ */ React12.createElement(
1948
- Box10,
1949
- {
1950
- sx: {
1951
- position: "absolute",
1952
- top: "50%",
1953
- left: "50%",
1954
- transform: "translate(-50%, -50%)",
1955
- width: 400,
1956
- bgcolor: "background.paper",
1957
- borderRadius: 1,
1958
- boxShadow: 24
1959
- }
1960
- },
1961
- /* @__PURE__ */ React12.createElement(Stack5, { direction: "row", justifyContent: "space-between", alignItems: "center" }, /* @__PURE__ */ React12.createElement(Stack5, { direction: "row", alignItems: "center", p: 1, gap: 1.5 }, /* @__PURE__ */ React12.createElement(Box10, { display: "flex", justifyContent: "center", alignItems: "center", borderRadius: "50%", height: 36, width: 36, bgcolor: getModalColor(state) }, icon), /* @__PURE__ */ React12.createElement(Typography10, { variant: "h6", color: "text.primary" }, title)), /* @__PURE__ */ React12.createElement(IconButton7, { onClick: handleOpen, "data-testid": "test-buttonClose" }, /* @__PURE__ */ React12.createElement(Close2, { color: "action" }))),
1962
- /* @__PURE__ */ React12.createElement(Stack5, { py: 1, px: 3, gap: 1.5 }, /* @__PURE__ */ React12.createElement(Typography10, { variant: "body1" }, description || defaultDescription)),
1963
- action && /* @__PURE__ */ React12.createElement(
1964
- Stack5,
1965
- {
1966
- id: "Action",
1967
- direction: "row",
1968
- gap: 1,
1969
- p: 1,
1970
- justifyContent: "end",
1971
- bgcolor: "grey.50",
1972
- sx: { borderRadius: 1 }
1973
- },
1974
- /* @__PURE__ */ React12.createElement(
1975
- Button6,
1976
- {
1977
- color: "inherit",
1978
- variant: "text",
1979
- onClick: handleClose,
1980
- size: "small"
1981
- },
1982
- capitalize("cancelar")
1983
- ),
1984
- /* @__PURE__ */ React12.createElement(
1985
- Button6,
1986
- {
1987
- "data-testid": "test-aceptar",
1988
- color: getButtonColor(state),
1989
- variant: "contained",
1990
- onClick: (_e = action[0]) == null ? void 0 : _e.fn,
1991
- disabled: false,
1992
- size: "small"
1993
- },
1994
- capitalize(action[0].text)
1995
- )
1996
- )
1997
- )));
1998
- };
1999
-
2000
2072
  // src/Components/MultiSelect/MultiSelect.tsx
2001
2073
  import React13, { useEffect as useEffect11, useMemo as useMemo5 } from "react";
2002
2074
  import { Button as Button7, Checkbox as Checkbox2, FormControl as FormControl3, InputAdornment as InputAdornment5, ListItemIcon as ListItemIcon3, MenuItem as MenuItem3, Popover as Popover3, Stack as Stack6, TextField as TextField4 } from "@mui/material";
@@ -2685,7 +2757,7 @@ var EmptyState = ({
2685
2757
 
2686
2758
  // src/Components/SCDialog.tsx
2687
2759
  import React22, { useEffect as useEffect14, useState as useState10 } from "react";
2688
- import { Button as Button10, Typography as Typography14, Modal as Modal2, Dialog, DialogActions, DialogContent, DialogTitle, IconButton as IconButton9, Tooltip as Tooltip3, Box as Box12, SvgIcon as SvgIcon5 } from "@mui/material";
2760
+ import { Button as Button10, Typography as Typography14, Modal as Modal2, Dialog, DialogActions, DialogContent, DialogTitle, IconButton as IconButton9, Tooltip as Tooltip4, Box as Box12, SvgIcon as SvgIcon5 } from "@mui/material";
2689
2761
  import Grid6 from "@mui/material/Grid2";
2690
2762
  import CloseIcon2 from "@mui/icons-material/Close";
2691
2763
  import * as Muicon5 from "@mui/icons-material";
@@ -2746,7 +2818,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
2746
2818
  };
2747
2819
  const dialogActions = actions != null ? actions : [{ text: "Cerrar", fn: handleClose }];
2748
2820
  content = content != null ? content : { component: /* @__PURE__ */ React22.createElement(Box12, null, " Aqui va el contenido ") };
2749
- return /* @__PURE__ */ React22.createElement("div", null, buttonDialog ? /* @__PURE__ */ React22.createElement(React22.Fragment, null, buttonDialog.text != void 0 ? /* @__PURE__ */ React22.createElement(Tooltip3, { placement: "bottom-start", title: buttonDialog.tooltip != void 0 ? buttonDialog.tooltip : "", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React22.createElement(Button10, { 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) != void 0 ? (buttonDialog == null ? void 0 : buttonDialog.iconPosition) == "left" ? /* @__PURE__ */ React22.createElement(ButtonIcon, null) : "" : "", endIcon: (buttonDialog == null ? void 0 : buttonDialog.iconPosition) != void 0 ? (buttonDialog == null ? void 0 : buttonDialog.iconPosition) == "right" ? /* @__PURE__ */ React22.createElement(ButtonIcon, null) : "" : "", onClick: handleOpen }, " ", (buttonDialog == null ? void 0 : buttonDialog.text) != void 0 ? buttonDialog.text : "", " ")) : /* @__PURE__ */ React22.createElement(IconButton9, { style: { cursor: "pointer" }, onClick: handleOpen }, /* @__PURE__ */ React22.createElement(SvgIcon5, { fontSize: "small", color: (buttonDialog == null ? void 0 : buttonDialog.color) != void 0 ? buttonDialog == null ? void 0 : buttonDialog.color : "action", component: ButtonIcon }))) : "", /* @__PURE__ */ React22.createElement(Modal2, { open: open || false, onClose: handleClose }, /* @__PURE__ */ React22.createElement(
2821
+ return /* @__PURE__ */ React22.createElement("div", null, buttonDialog ? /* @__PURE__ */ React22.createElement(React22.Fragment, null, buttonDialog.text != void 0 ? /* @__PURE__ */ React22.createElement(Tooltip4, { placement: "bottom-start", title: buttonDialog.tooltip != void 0 ? buttonDialog.tooltip : "", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React22.createElement(Button10, { 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) != void 0 ? (buttonDialog == null ? void 0 : buttonDialog.iconPosition) == "left" ? /* @__PURE__ */ React22.createElement(ButtonIcon, null) : "" : "", endIcon: (buttonDialog == null ? void 0 : buttonDialog.iconPosition) != void 0 ? (buttonDialog == null ? void 0 : buttonDialog.iconPosition) == "right" ? /* @__PURE__ */ React22.createElement(ButtonIcon, null) : "" : "", onClick: handleOpen }, " ", (buttonDialog == null ? void 0 : buttonDialog.text) != void 0 ? buttonDialog.text : "", " ")) : /* @__PURE__ */ React22.createElement(IconButton9, { style: { cursor: "pointer" }, onClick: handleOpen }, /* @__PURE__ */ React22.createElement(SvgIcon5, { fontSize: "small", color: (buttonDialog == null ? void 0 : buttonDialog.color) != void 0 ? buttonDialog == null ? void 0 : buttonDialog.color : "action", component: ButtonIcon }))) : "", /* @__PURE__ */ React22.createElement(Modal2, { open: open || false, onClose: handleClose }, /* @__PURE__ */ React22.createElement(
2750
2822
  Dialog,
2751
2823
  {
2752
2824
  "data-testid": "dialog-element",
@@ -3043,7 +3115,7 @@ var SCTabs = ({ options, defaultOption, typeIcon, background, iconPosition, colo
3043
3115
 
3044
3116
  // src/Components/Calendario/Calendar.tsx
3045
3117
  import React31, { useState as useState13 } from "react";
3046
- import { Box as Box20, CircularProgress as CircularProgress4 } from "@mui/material";
3118
+ import { Box as Box20, CircularProgress as CircularProgress5 } from "@mui/material";
3047
3119
 
3048
3120
  // src/Components/Calendario/CalendarToolbar.tsx
3049
3121
  import React25, { useState as useState12 } from "react";
@@ -3113,7 +3185,7 @@ var CalendarToolbar = ({
3113
3185
 
3114
3186
  // src/Components/Calendario/Views/MonthView.tsx
3115
3187
  import React28 from "react";
3116
- import { Box as Box17, Typography as Typography19, IconButton as IconButton11, Paper as Paper2, Tooltip as Tooltip5, Stack as Stack11, Divider as Divider6, CircularProgress } from "@mui/material";
3188
+ import { Box as Box17, Typography as Typography19, IconButton as IconButton11, Paper as Paper2, Tooltip as Tooltip6, Stack as Stack11, Divider as Divider6, CircularProgress as CircularProgress2 } from "@mui/material";
3117
3189
  import AddIcon from "@mui/icons-material/Add";
3118
3190
  import dayjs4 from "dayjs";
3119
3191
  import localeData from "dayjs/plugin/localeData";
@@ -3255,7 +3327,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3255
3327
  const [openDrawer, setOpenDrawer] = React28.useState(false);
3256
3328
  const [selectedDay, setSelectedDay] = React28.useState(null);
3257
3329
  const [selectedEvents, setSelectedEvents] = React28.useState([]);
3258
- return /* @__PURE__ */ React28.createElement(Box17, { width: "100%", sx: { overflowX: "auto" } }, /* @__PURE__ */ React28.createElement(Box17, { minWidth: "1050px" }, /* @__PURE__ */ React28.createElement(Box17, { display: "grid", gridTemplateColumns: "repeat(7, minmax(150px, 1fr))", gap: 0.5, mb: 1 }, weekDays.map((day) => /* @__PURE__ */ React28.createElement(Box17, { key: day.day(), textAlign: "center", py: 0.5 }, /* @__PURE__ */ React28.createElement(Typography19, { variant: "caption", color: "text.secondary" }, day.format("dddd"))))), isLoading ? /* @__PURE__ */ React28.createElement(Box17, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "450px" }, /* @__PURE__ */ React28.createElement(CircularProgress, { sx: { width: "60px", height: "60px" }, variant: "indeterminate" })) : !isLoading && noEvents ? /* @__PURE__ */ React28.createElement(
3330
+ return /* @__PURE__ */ React28.createElement(Box17, { width: "100%", sx: { overflowX: "auto" } }, /* @__PURE__ */ React28.createElement(Box17, { minWidth: "1050px" }, /* @__PURE__ */ React28.createElement(Box17, { display: "grid", gridTemplateColumns: "repeat(7, minmax(150px, 1fr))", gap: 0.5, mb: 1 }, weekDays.map((day) => /* @__PURE__ */ React28.createElement(Box17, { key: day.day(), textAlign: "center", py: 0.5 }, /* @__PURE__ */ React28.createElement(Typography19, { variant: "caption", color: "text.secondary" }, day.format("dddd"))))), isLoading ? /* @__PURE__ */ React28.createElement(Box17, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "450px" }, /* @__PURE__ */ React28.createElement(CircularProgress2, { sx: { width: "60px", height: "60px" }, variant: "indeterminate" })) : !isLoading && noEvents ? /* @__PURE__ */ React28.createElement(
3259
3331
  EmptyState,
3260
3332
  {
3261
3333
  title: "Inicia la gesti\xF3n de las actividades",
@@ -3305,7 +3377,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3305
3377
  },
3306
3378
  day.date()
3307
3379
  )
3308
- ), dayEvents.length > 2 && /* @__PURE__ */ React28.createElement(Tooltip5, { title: "M\xE1s eventos" }, /* @__PURE__ */ React28.createElement(
3380
+ ), dayEvents.length > 2 && /* @__PURE__ */ React28.createElement(Tooltip6, { title: "M\xE1s eventos" }, /* @__PURE__ */ React28.createElement(
3309
3381
  IconButton11,
3310
3382
  {
3311
3383
  color: "primary",
@@ -3356,6 +3428,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3356
3428
  event: first,
3357
3429
  color: stateColors[first.state],
3358
3430
  onClick: () => onEventClick == null ? void 0 : onEventClick(first, day),
3431
+ onHover: onEventHover,
3359
3432
  sx: {
3360
3433
  whiteSpace: "normal",
3361
3434
  "& .MuiTypography-root": {
@@ -3408,7 +3481,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3408
3481
 
3409
3482
  // src/Components/Calendario/Views/WeekView.tsx
3410
3483
  import React29 from "react";
3411
- import { Box as Box18, CircularProgress as CircularProgress2, Typography as Typography20 } from "@mui/material";
3484
+ import { Box as Box18, CircularProgress as CircularProgress3, Typography as Typography20 } from "@mui/material";
3412
3485
  import dayjs5 from "dayjs";
3413
3486
  import localeData2 from "dayjs/plugin/localeData";
3414
3487
  dayjs5.extend(localeData2);
@@ -3464,7 +3537,7 @@ var WeekView = ({
3464
3537
  /* @__PURE__ */ React29.createElement(Typography20, { variant: "h6", color: "text.primary" }, day.format("D")),
3465
3538
  /* @__PURE__ */ React29.createElement(Typography20, { variant: "caption", color: "text.secondary" }, day.format("dddd"))
3466
3539
  );
3467
- })), isLoading ? /* @__PURE__ */ React29.createElement(Box18, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "450px" }, /* @__PURE__ */ React29.createElement(CircularProgress2, { sx: { width: "60px", height: "60px" }, variant: "indeterminate" })) : !isLoading && noEvents ? /* @__PURE__ */ React29.createElement(
3540
+ })), isLoading ? /* @__PURE__ */ React29.createElement(Box18, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "450px" }, /* @__PURE__ */ React29.createElement(CircularProgress3, { sx: { width: "60px", height: "60px" }, variant: "indeterminate" })) : !isLoading && noEvents ? /* @__PURE__ */ React29.createElement(
3468
3541
  EmptyState,
3469
3542
  {
3470
3543
  title: "Inicia la gesti\xF3n de las actividades",
@@ -3546,7 +3619,7 @@ var WeekView = ({
3546
3619
 
3547
3620
  // src/Components/Calendario/Views/DayView.tsx
3548
3621
  import React30 from "react";
3549
- import { Box as Box19, CircularProgress as CircularProgress3, Typography as Typography21 } from "@mui/material";
3622
+ import { Box as Box19, CircularProgress as CircularProgress4, Typography as Typography21 } from "@mui/material";
3550
3623
  import dayjs6 from "dayjs";
3551
3624
  var DayView = ({
3552
3625
  events,
@@ -3577,7 +3650,7 @@ var DayView = ({
3577
3650
  (event2) => currentDate.isBetween(event2.start.startOf("day"), event2.end.endOf("day"), null, "[]")
3578
3651
  );
3579
3652
  const noEvents = events.length === 0;
3580
- return /* @__PURE__ */ React30.createElement(Box19, { display: "flex", flexDirection: "column", height: "100%" }, /* @__PURE__ */ React30.createElement(Box19, { display: "flex", borderBottom: "1px solid", borderColor: "primary.main", bgcolor: "background.paper" }, /* @__PURE__ */ React30.createElement(Box19, { width: 47, bgcolor: "background.default", borderBottom: "1px solid", borderColor: "transparent" }), /* @__PURE__ */ React30.createElement(Box19, { flex: 1, display: "flex", flexDirection: "column", textAlign: "start", gap: 0.5, py: 1, bgcolor: "primary.50" }, /* @__PURE__ */ React30.createElement(Typography21, { variant: "h6", color: "text.secondary" }, currentDate.format("D")), /* @__PURE__ */ React30.createElement(Typography21, { variant: "caption", color: "text.secondary" }, currentDate.format("dddd")))), isLoading ? /* @__PURE__ */ React30.createElement(Box19, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "450px" }, /* @__PURE__ */ React30.createElement(CircularProgress3, { sx: { width: "60px", height: "60px" }, variant: "indeterminate" })) : noEvents ? /* @__PURE__ */ React30.createElement(
3653
+ return /* @__PURE__ */ React30.createElement(Box19, { display: "flex", flexDirection: "column", height: "100%" }, /* @__PURE__ */ React30.createElement(Box19, { display: "flex", borderBottom: "1px solid", borderColor: "primary.main", bgcolor: "background.paper" }, /* @__PURE__ */ React30.createElement(Box19, { width: 47, bgcolor: "background.default", borderBottom: "1px solid", borderColor: "transparent" }), /* @__PURE__ */ React30.createElement(Box19, { flex: 1, display: "flex", flexDirection: "column", textAlign: "start", gap: 0.5, py: 1, bgcolor: "primary.50" }, /* @__PURE__ */ React30.createElement(Typography21, { variant: "h6", color: "text.secondary" }, currentDate.format("D")), /* @__PURE__ */ React30.createElement(Typography21, { variant: "caption", color: "text.secondary" }, currentDate.format("dddd")))), isLoading ? /* @__PURE__ */ React30.createElement(Box19, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "450px" }, /* @__PURE__ */ React30.createElement(CircularProgress4, { sx: { width: "60px", height: "60px" }, variant: "indeterminate" })) : noEvents ? /* @__PURE__ */ React30.createElement(
3581
3654
  EmptyState,
3582
3655
  {
3583
3656
  title: "Inicia la gesti\xF3n de las actividades",
@@ -3690,7 +3763,7 @@ var Calendar = ({
3690
3763
  alignItems: "center",
3691
3764
  height: "400px"
3692
3765
  },
3693
- /* @__PURE__ */ React31.createElement(CircularProgress4, { variant: "indeterminate" })
3766
+ /* @__PURE__ */ React31.createElement(CircularProgress5, { variant: "indeterminate" })
3694
3767
  ))) : /* @__PURE__ */ React31.createElement(React31.Fragment, null, view === "month" && /* @__PURE__ */ React31.createElement(
3695
3768
  MonthView,
3696
3769
  {
@@ -5701,8 +5774,8 @@ var AdproSincoTheme = createTheme(__spreadValues({}, ADPROTheme));
5701
5774
  var ADCSincoTheme = createTheme(__spreadValues({}, ADCTheme));
5702
5775
  export {
5703
5776
  ADCSincoTheme,
5704
- Adjuntar,
5705
5777
  AdproSincoTheme,
5778
+ Attachment,
5706
5779
  Calendar,
5707
5780
  EmptyState,
5708
5781
  FooterAction,
@@ -5729,7 +5802,7 @@ export {
5729
5802
  capitalize,
5730
5803
  getButtonColor,
5731
5804
  getIcon,
5732
- getIconComponent2 as getIconComponent,
5805
+ getIconComponent,
5733
5806
  getIconMultiSelect,
5734
5807
  getModalColor,
5735
5808
  modalStateConfig,