componentes-sinco 1.0.12 → 1.0.14

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, 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,183 @@ 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
+ title,
281
+ description,
282
+ action
283
+ }) => {
284
+ var _a, _b, _c, _d, _e;
285
+ const [internalOpen, setInternalOpen] = useState3(open != null ? open : false);
286
+ const isControlled = Boolean(setOpen);
287
+ const modalOpen = isControlled ? open != null ? open : false : internalOpen;
288
+ const setModalOpen = isControlled ? setOpen : setInternalOpen;
289
+ const handleToggle = useCallback(() => setModalOpen((prev) => !prev), [setModalOpen]);
290
+ const handleClose = useCallback(() => setModalOpen(false), [setModalOpen]);
291
+ const Icon = useMemo(() => getIconComponent(buttonModal == null ? void 0 : buttonModal.icon), [buttonModal == null ? void 0 : buttonModal.icon]);
292
+ const prevAction = useMemo(
293
+ () => action != null ? action : [
294
+ { text: "Cancelar", fn: handleClose },
295
+ { text: "Consultar", fn: () => {
296
+ } }
297
+ ],
298
+ [action, handleClose]
299
+ );
300
+ const { icon, defaultDescription } = modalStateConfig[state];
301
+ return /* @__PURE__ */ React3.createElement(React3.Fragment, null, buttonModal && /* @__PURE__ */ React3.createElement(
302
+ Button2,
303
+ {
304
+ "data-testid": "test-buttonModal",
305
+ color: (_a = buttonModal == null ? void 0 : buttonModal.color) != null ? _a : "primary",
306
+ onClick: handleToggle,
307
+ variant: (_b = buttonModal == null ? void 0 : buttonModal.variant) != null ? _b : "text",
308
+ size: (_c = buttonModal == null ? void 0 : buttonModal.size) != null ? _c : "small",
309
+ startIcon: (buttonModal == null ? void 0 : buttonModal.iconPosition) === "left" && /* @__PURE__ */ React3.createElement(Icon, null),
310
+ endIcon: (buttonModal == null ? void 0 : buttonModal.iconPosition) === "right" && /* @__PURE__ */ React3.createElement(Icon, null)
311
+ },
312
+ capitalize((_d = buttonModal == null ? void 0 : buttonModal.text) != null ? _d : "filtrar")
313
+ ), /* @__PURE__ */ React3.createElement(Modal, { open: modalOpen, onClose: handleClose, sx: { boxShadow: 8 } }, /* @__PURE__ */ React3.createElement(
314
+ Box2,
315
+ {
316
+ sx: {
317
+ position: "absolute",
318
+ top: "50%",
319
+ left: "50%",
320
+ transform: "translate(-50%, -50%)",
321
+ width: 400,
322
+ bgcolor: "background.paper",
323
+ borderRadius: 1,
324
+ boxShadow: 24
325
+ }
326
+ },
327
+ /* @__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(
328
+ Box2,
329
+ {
330
+ display: "flex",
331
+ justifyContent: "center",
332
+ alignItems: "center",
333
+ borderRadius: "50%",
334
+ height: 36,
335
+ width: 36,
336
+ bgcolor: getModalColor(state)
337
+ },
338
+ icon
339
+ ), /* @__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" }))),
340
+ /* @__PURE__ */ React3.createElement(Stack2, { py: 1, px: 3, gap: 1.5 }, /* @__PURE__ */ React3.createElement(Typography2, { variant: "body1" }, description || defaultDescription)),
341
+ action && /* @__PURE__ */ React3.createElement(
342
+ Stack2,
343
+ {
344
+ id: "Action",
345
+ direction: "row",
346
+ gap: 1,
347
+ p: 1,
348
+ justifyContent: "end",
349
+ bgcolor: "grey.50",
350
+ sx: { borderRadius: 1 }
351
+ },
352
+ /* @__PURE__ */ React3.createElement(
353
+ Button2,
354
+ {
355
+ color: "inherit",
356
+ variant: "text",
357
+ onClick: handleClose,
358
+ size: "small"
359
+ },
360
+ capitalize("cancelar")
361
+ ),
362
+ /* @__PURE__ */ React3.createElement(
363
+ Button2,
364
+ {
365
+ "data-testid": "test-aceptar",
366
+ color: getButtonColor(state),
367
+ variant: "contained",
368
+ onClick: (_e = action[0]) == null ? void 0 : _e.fn,
369
+ disabled: false,
370
+ size: "small"
371
+ },
372
+ capitalize(action[0].text)
373
+ )
374
+ )
375
+ )));
376
+ };
377
+
218
378
  // src/Components/Adjuntar/Adjuntar.tsx
219
- var Adjuntar = ({
379
+ var Attachment = ({
220
380
  sx,
221
381
  compact,
222
382
  error,
223
- onChange,
224
383
  maxSize = 400,
225
- fileAccepted = ""
384
+ fileAccepted = "",
385
+ onLoading,
386
+ onChange,
387
+ downloadAction,
388
+ initialFiles = []
226
389
  }) => {
227
- const [files, setFiles] = useState3([]);
228
- const [toast, setToast] = React2.useState(null);
229
- const [isDragFile, setIsDragFile] = useState3(false);
390
+ const [files, setFiles] = useState4([]);
391
+ const [fileToDelete, setFileToDelete] = useState4(null);
392
+ const [toast, setToast] = React4.useState(null);
393
+ const [openModal, setOpenModal] = useState4(false);
394
+ const [isDragFile, setIsDragFile] = useState4(false);
230
395
  const inputRef = useRef(null);
231
396
  const handleDrop = (event2) => {
232
397
  event2.preventDefault();
@@ -247,7 +412,13 @@ var Adjuntar = ({
247
412
  event2.preventDefault();
248
413
  setIsDragFile(false);
249
414
  };
250
- useEffect3(() => {
415
+ useEffect4(() => {
416
+ if (initialFiles.length > 0) {
417
+ setFiles(initialFiles);
418
+ onChange == null ? void 0 : onChange(initialFiles);
419
+ }
420
+ }, [initialFiles]);
421
+ useEffect4(() => {
251
422
  const interval = setInterval(() => {
252
423
  setFiles((prevFiles) => {
253
424
  let updated = false;
@@ -308,6 +479,7 @@ var Adjuntar = ({
308
479
  type: "error",
309
480
  title: "Tipo de archivo no permitido",
310
481
  listITems: [`El archivo ${file.name} no es un tipo permitido.`],
482
+ seeMore: true,
311
483
  time: 10
312
484
  });
313
485
  return;
@@ -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 ? `${fileAccepted || "DOCX, XML, PNG, JPG"} \u2022 Archivo no soportado` : `${fileAccepted || "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: "450px"
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,36 +605,62 @@ 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 && 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__ */ React2.createElement(
427
- LinearProgress2,
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}`))),
609
+ /* @__PURE__ */ React4.createElement(Tooltip, { title: "Descargar" }, /* @__PURE__ */ React4.createElement(IconButton3, { size: "small", onClick: downloadAction }, /* @__PURE__ */ React4.createElement(FileDownload, { fontSize: "small", color: "action" }))),
610
+ /* @__PURE__ */ React4.createElement(Tooltip, { title: "Eliminar" }, /* @__PURE__ */ React4.createElement(IconButton3, { size: "small", onClick: () => {
611
+ setFileToDelete(file);
612
+ setOpenModal(true);
613
+ } }, /* @__PURE__ */ React4.createElement(DeleteOutline, { fontSize: "small", color: "action" })))
614
+ ))
615
+ ), /* @__PURE__ */ React4.createElement(
616
+ SCModal,
617
+ {
618
+ state: "delete",
619
+ open: openModal,
620
+ setOpen: setOpenModal,
621
+ title: "Eliminar archivo",
622
+ description: `\xBFEst\xE1s seguro que deseas eliminar "${fileToDelete == null ? void 0 : fileToDelete.name}"?`,
623
+ action: [
428
624
  {
429
- variant: "determinate",
430
- color: file.uploadError ? "error" : "primary",
431
- value: file.progress
625
+ text: "Eliminar",
626
+ fn: () => {
627
+ if (fileToDelete) {
628
+ deleteFiles(fileToDelete.name);
629
+ setFileToDelete(null);
630
+ setToast(null);
631
+ setTimeout(() => {
632
+ setToast({
633
+ title: "Archivo eliminado",
634
+ type: "success",
635
+ time: 2
636
+ });
637
+ }, 10);
638
+ }
639
+ setOpenModal(false);
640
+ }
432
641
  }
433
- ))),
434
- /* @__PURE__ */ React2.createElement(IconButton2, { size: "small", onClick: () => deleteFiles(file.name) }, /* @__PURE__ */ React2.createElement(DeleteOutline, { fontSize: "small", color: "action" }))
435
- ))
642
+ ]
643
+ }
436
644
  ));
437
645
  };
438
646
 
439
647
  // 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";
648
+ import React11, { useEffect as useEffect10, useRef as useRef3 } from "react";
649
+ import { Box as Box9, Drawer, Typography as Typography9, IconButton as IconButton7, Button as Button6, Stack as Stack5, Chip as Chip2 } from "@mui/material";
442
650
  import Grid4 from "@mui/material/Grid2";
443
651
  import CloseIcon from "@mui/icons-material/Close";
444
652
  import ArrowBackIosIcon from "@mui/icons-material/ArrowBackIos";
445
653
  import ArrowForwardIosIcon from "@mui/icons-material/ArrowForwardIos";
446
654
 
447
655
  // 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";
656
+ import React5, { useEffect as useEffect5, useState as useState5 } from "react";
657
+ 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
658
  import Grid from "@mui/material/Grid2";
451
659
  import { Visibility, VisibilityOff, InfoOutlined } from "@mui/icons-material";
452
660
 
453
661
  // src/Components/Textfield/Helpers/validateIcon.tsx
454
662
  import * as Muicon from "@mui/icons-material";
455
- function getIconComponent(name) {
663
+ function getIconComponent2(name) {
456
664
  if (typeof name !== "string") return name;
457
665
  return name in Muicon ? Muicon[name] : void 0;
458
666
  }
@@ -534,13 +742,13 @@ var SCTextField = ({
534
742
  let IconInputStart;
535
743
  let IconInputEnd;
536
744
  let IconTitle;
537
- const [showPassword, setShowPassword] = useState4(false);
538
- const [error, setError] = useState4(false);
539
- const [anchorInfoTitle, setAnchorInfoTitle] = useState4(null);
745
+ const [showPassword, setShowPassword] = useState5(false);
746
+ const [error, setError] = useState5(false);
747
+ const [anchorInfoTitle, setAnchorInfoTitle] = useState5(null);
540
748
  const openInfoTitle = Boolean(anchorInfoTitle);
541
- const [anchorInfoElement, setAnchorInfoElement] = useState4(null);
749
+ const [anchorInfoElement, setAnchorInfoElement] = useState5(null);
542
750
  const openInfoElement = Boolean(anchorInfoElement);
543
- useEffect4(() => {
751
+ useEffect5(() => {
544
752
  if (error) {
545
753
  setTimeout(() => {
546
754
  setError(false);
@@ -549,14 +757,14 @@ var SCTextField = ({
549
757
  }, [error]);
550
758
  if (iconInputStart) {
551
759
  IconInputStartValidation = getIconValidation(iconInputStart);
552
- IconInputStart = getIconComponent(iconInputStart);
760
+ IconInputStart = getIconComponent2(iconInputStart);
553
761
  }
554
762
  if (iconInputEnd) {
555
763
  IconInputEndValidation = getIconValidation(iconInputEnd);
556
- IconInputEnd = getIconComponent(iconInputEnd);
764
+ IconInputEnd = getIconComponent2(iconInputEnd);
557
765
  }
558
766
  if (iconTitle) {
559
- IconTitle = getIconComponent(iconTitle);
767
+ IconTitle = getIconComponent2(iconTitle);
560
768
  }
561
769
  const handleClickShowPassword = () => setShowPassword((show) => !show);
562
770
  const handleMouseDownPassword = (event2) => {
@@ -590,7 +798,7 @@ var SCTextField = ({
590
798
  const handleCloseInfoElement = () => {
591
799
  setAnchorInfoElement(null);
592
800
  };
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(
801
+ 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
802
  InfoOutlined,
595
803
  {
596
804
  color: "action",
@@ -598,7 +806,7 @@ var SCTextField = ({
598
806
  onMouseEnter: (event2) => handleOpenInfoTitle(event2),
599
807
  onMouseLeave: () => handleCloseInfoTitle()
600
808
  }
601
- ), /* @__PURE__ */ React3.createElement(
809
+ ), /* @__PURE__ */ React5.createElement(
602
810
  Popover,
603
811
  {
604
812
  sx: {
@@ -620,14 +828,14 @@ var SCTextField = ({
620
828
  },
621
829
  disableRestoreFocus: true
622
830
  },
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(
831
+ /* @__PURE__ */ React5.createElement(Typography4, { p: 2 }, infoTitle.text)
832
+ )) : /* @__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
833
  InfoOutlined,
626
834
  {
627
835
  color: "action",
628
836
  fontSize: "small"
629
837
  }
630
- ))) : ""), /* @__PURE__ */ React3.createElement(Grid, { container: true, sx: { flexWrap: "nowrap", alignItems: "center" } }, /* @__PURE__ */ React3.createElement(
838
+ ))) : ""), /* @__PURE__ */ React5.createElement(Grid, { container: true, sx: { flexWrap: "nowrap", alignItems: "center" } }, /* @__PURE__ */ React5.createElement(
631
839
  FormControl,
632
840
  {
633
841
  color,
@@ -636,7 +844,7 @@ var SCTextField = ({
636
844
  variant,
637
845
  sx: { background: background || "transparent", borderRadius: "4px" }
638
846
  },
639
- /* @__PURE__ */ React3.createElement(
847
+ /* @__PURE__ */ React5.createElement(
640
848
  InputLabel,
641
849
  {
642
850
  "data-testid": "test-label",
@@ -647,7 +855,7 @@ var SCTextField = ({
647
855
  },
648
856
  label ? label : ""
649
857
  ),
650
- /* @__PURE__ */ React3.createElement(
858
+ /* @__PURE__ */ React5.createElement(
651
859
  InputComponent,
652
860
  {
653
861
  size: size ? size : "medium",
@@ -663,17 +871,17 @@ var SCTextField = ({
663
871
  type: !showPassword && format2 === "password" ? "password" : (format2 || "text").toUpperCase() === "INT" || (format2 || "text").toUpperCase() === "DECIMAL" ? "number" : "text",
664
872
  className: format2 === "password" && !showPassword ? "" : "",
665
873
  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,
874
+ startAdornment: iconInputStart ? /* @__PURE__ */ React5.createElement(InputAdornment, { position: "start" }, IconInputStartValidation === "text" ? iconInputStart : IconInputStart ? /* @__PURE__ */ React5.createElement(IconInputStart, { fontSize: "small" }) : null) : "",
875
+ endAdornment: /* @__PURE__ */ React5.createElement(InputAdornment, { position: "end" }, format2 === "password" ? /* @__PURE__ */ React5.createElement(
876
+ IconButton4,
669
877
  {
670
878
  "aria-label": "toggle password visibility",
671
879
  onClick: handleClickShowPassword,
672
880
  onMouseDown: handleMouseDownPassword,
673
881
  edge: "end"
674
882
  },
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(
883
+ showPassword ? /* @__PURE__ */ React5.createElement(VisibilityOff, null) : /* @__PURE__ */ React5.createElement(Visibility, null)
884
+ ) : 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
885
  InfoOutlined,
678
886
  {
679
887
  "data-testid": "test-infoElement",
@@ -684,7 +892,7 @@ var SCTextField = ({
684
892
  onMouseEnter: (event2) => handleOpenInfoElement(event2),
685
893
  onMouseLeave: () => handleCloseInfoElement()
686
894
  }
687
- ), /* @__PURE__ */ React3.createElement(
895
+ ), /* @__PURE__ */ React5.createElement(
688
896
  Popover,
689
897
  {
690
898
  sx: {
@@ -706,19 +914,19 @@ var SCTextField = ({
706
914
  },
707
915
  disableRestoreFocus: true
708
916
  },
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(
917
+ /* @__PURE__ */ React5.createElement(Typography4, { "data-testid": "test-popover-text", p: 2 }, infoElement.text)
918
+ )) : /* @__PURE__ */ React5.createElement(Tooltip2, { title: infoElement.text, placement: "bottom-end", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React5.createElement(
711
919
  InfoOutlined,
712
920
  {
713
921
  color: "action",
714
922
  fontSize: "small"
715
923
  }
716
- ))) : iconInputEnd !== void 0 ? IconInputEndValidation === "text" ? iconInputEnd : IconInputEnd ? /* @__PURE__ */ React3.createElement(IconInputEnd, { fontSize: "small" }) : null : ""),
924
+ ))) : iconInputEnd !== void 0 ? IconInputEndValidation === "text" ? iconInputEnd : IconInputEnd ? /* @__PURE__ */ React5.createElement(IconInputEnd, { fontSize: "small" }) : null : ""),
717
925
  label: label ? label + (format2 === "password" && !showPassword ? "" : "") : "",
718
926
  autoComplete: format2 === "password" ? "new-password" : "off"
719
927
  }
720
928
  )
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(
929
+ ), (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
930
  InfoOutlined,
723
931
  {
724
932
  "data-testid": "test-infoElement",
@@ -729,7 +937,7 @@ var SCTextField = ({
729
937
  onMouseEnter: (event2) => handleOpenInfoElement(event2),
730
938
  onMouseLeave: handleCloseInfoElement
731
939
  }
732
- ), /* @__PURE__ */ React3.createElement(
940
+ ), /* @__PURE__ */ React5.createElement(
733
941
  Popover,
734
942
  {
735
943
  sx: { pointerEvents: "none" },
@@ -746,8 +954,8 @@ var SCTextField = ({
746
954
  },
747
955
  disableRestoreFocus: true
748
956
  },
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(
957
+ /* @__PURE__ */ React5.createElement(Typography4, { "data-testid": "test-popover-text", p: 2 }, infoElement.text)
958
+ )) : /* @__PURE__ */ React5.createElement(Tooltip2, { title: infoElement.text, placement: "bottom-end", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React5.createElement(
751
959
  InfoOutlined,
752
960
  {
753
961
  sx: { marginLeft: "4px" },
@@ -758,17 +966,17 @@ var SCTextField = ({
758
966
  };
759
967
 
760
968
  // src/Components/TextArea/Helpers/validateIcon.tsx
761
- import * as MuiIcons from "@mui/icons-material";
969
+ import * as MuiIcons2 from "@mui/icons-material";
762
970
  function getIcon(name) {
763
- if (!name || !(name in MuiIcons)) {
971
+ if (!name || !(name in MuiIcons2)) {
764
972
  return null;
765
973
  }
766
- return MuiIcons[name];
974
+ return MuiIcons2[name];
767
975
  }
768
976
 
769
977
  // 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";
978
+ import React6, { useEffect as useEffect6, useState as useState6 } from "react";
979
+ 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
980
  import { InfoOutlined as InfoOutlined2 } from "@mui/icons-material";
773
981
  var SCTextArea = ({
774
982
  //informativas
@@ -791,11 +999,11 @@ var SCTextArea = ({
791
999
  state,
792
1000
  onBlur
793
1001
  }) => {
794
- const [helperCount, setHelperCount] = useState5(0);
795
- const [stateError, setStateError] = useState5(false);
796
- const [anchorInfoTitle, setAnchorInfoTitle] = React4.useState(null);
1002
+ const [helperCount, setHelperCount] = useState6(0);
1003
+ const [stateError, setStateError] = useState6(false);
1004
+ const [anchorInfoTitle, setAnchorInfoTitle] = React6.useState(null);
797
1005
  const openInfoTitle = Boolean(anchorInfoTitle);
798
- useEffect5(() => {
1006
+ useEffect6(() => {
799
1007
  setHelperCount(state == null ? void 0 : state.length);
800
1008
  }, [state]);
801
1009
  const IconTitle = getIcon(iconTitle);
@@ -817,7 +1025,7 @@ var SCTextArea = ({
817
1025
  const handleCloseInfoTitle = () => {
818
1026
  setAnchorInfoTitle(null);
819
1027
  };
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(
1028
+ 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
1029
  InfoOutlined2,
822
1030
  {
823
1031
  color: "action",
@@ -825,7 +1033,7 @@ var SCTextArea = ({
825
1033
  onMouseEnter: (event2) => handleOpenInfoTitle(event2),
826
1034
  onMouseLeave: () => handleCloseInfoTitle()
827
1035
  }
828
- ), /* @__PURE__ */ React4.createElement(
1036
+ ), /* @__PURE__ */ React6.createElement(
829
1037
  Popover2,
830
1038
  {
831
1039
  sx: { pointerEvents: "none" },
@@ -842,14 +1050,14 @@ var SCTextArea = ({
842
1050
  },
843
1051
  disableRestoreFocus: true
844
1052
  },
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(
1053
+ /* @__PURE__ */ React6.createElement(Typography5, { sx: { p: 2 } }, infoTitle.text)
1054
+ )) : /* @__PURE__ */ React6.createElement(Tooltip3, { title: infoTitle.text, placement: "bottom-start", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React6.createElement(
847
1055
  InfoOutlined2,
848
1056
  {
849
1057
  color: "action",
850
1058
  fontSize: "small"
851
1059
  }
852
- ))) : ""), /* @__PURE__ */ React4.createElement(Stack3, null, /* @__PURE__ */ React4.createElement(
1060
+ ))) : ""), /* @__PURE__ */ React6.createElement(Stack4, null, /* @__PURE__ */ React6.createElement(
853
1061
  TextField,
854
1062
  {
855
1063
  required,
@@ -871,8 +1079,8 @@ var SCTextArea = ({
871
1079
  },
872
1080
  autoComplete: "off"
873
1081
  }
874
- )), /* @__PURE__ */ React4.createElement(Stack3, null, /* @__PURE__ */ React4.createElement(
875
- Typography4,
1082
+ )), /* @__PURE__ */ React6.createElement(Stack4, null, /* @__PURE__ */ React6.createElement(
1083
+ Typography5,
876
1084
  {
877
1085
  variant: "caption",
878
1086
  color: "text.secondary",
@@ -885,8 +1093,8 @@ var SCTextArea = ({
885
1093
  };
886
1094
 
887
1095
  // 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";
1096
+ import React7, { useEffect as useEffect7 } from "react";
1097
+ import { InputLabel as InputLabel2, FormControl as FormControl2, MenuItem, SvgIcon as SvgIcon3, ListItemIcon, ListItemText, Box as Box6 } from "@mui/material";
890
1098
  import Select from "@mui/material/Select";
891
1099
  import * as Muicon2 from "@mui/icons-material";
892
1100
  function SCSelect({
@@ -903,16 +1111,16 @@ function SCSelect({
903
1111
  state
904
1112
  }) {
905
1113
  const labelContent = `<span style="color: red;">* </span>` + label;
906
- const [prevData, setPrevData] = React5.useState(data);
907
- const [error, setError] = React5.useState(false);
908
- useEffect6(() => {
1114
+ const [prevData, setPrevData] = React7.useState(data);
1115
+ const [error, setError] = React7.useState(false);
1116
+ useEffect7(() => {
909
1117
  if (error) {
910
1118
  setTimeout(() => {
911
1119
  setError(false);
912
1120
  }, 1e3);
913
1121
  }
914
1122
  }, [error]);
915
- useEffect6(() => {
1123
+ useEffect7(() => {
916
1124
  let dataChangeValidation = JSON.stringify(prevData) === JSON.stringify(data);
917
1125
  if (dataChangeValidation == false) {
918
1126
  setState({ hiddenValue: "", textValue: "" });
@@ -946,25 +1154,25 @@ function SCSelect({
946
1154
  }
947
1155
  }
948
1156
  };
949
- return /* @__PURE__ */ React5.createElement(React5.Fragment, null, data && /* @__PURE__ */ React5.createElement(Box5, { sx: { width } }, /* @__PURE__ */ React5.createElement(
1157
+ return /* @__PURE__ */ React7.createElement(React7.Fragment, null, data && /* @__PURE__ */ React7.createElement(Box6, { sx: { width } }, /* @__PURE__ */ React7.createElement(
950
1158
  FormControl2,
951
1159
  {
952
1160
  fullWidth: true,
953
1161
  size: size ? size : "medium",
954
1162
  variant
955
1163
  },
956
- /* @__PURE__ */ React5.createElement(
1164
+ /* @__PURE__ */ React7.createElement(
957
1165
  InputLabel2,
958
1166
  {
959
1167
  error
960
1168
  },
961
- required ? /* @__PURE__ */ React5.createElement("span", { dangerouslySetInnerHTML: { __html: labelContent } }) : label
1169
+ required ? /* @__PURE__ */ React7.createElement("span", { dangerouslySetInnerHTML: { __html: labelContent } }) : label
962
1170
  ),
963
- /* @__PURE__ */ React5.createElement(
1171
+ /* @__PURE__ */ React7.createElement(
964
1172
  Select,
965
1173
  {
966
1174
  value: Array.isArray(state.hiddenValue) ? state.hiddenValue[0] || "" : state.hiddenValue != "-1" ? state.hiddenValue : "",
967
- label: required ? /* @__PURE__ */ React5.createElement("span", { dangerouslySetInnerHTML: { __html: labelContent } }) : label,
1175
+ label: required ? /* @__PURE__ */ React7.createElement("span", { dangerouslySetInnerHTML: { __html: labelContent } }) : label,
968
1176
  onChange: handleChange,
969
1177
  onBlur: handleBlur,
970
1178
  variant,
@@ -990,15 +1198,15 @@ function SCSelect({
990
1198
  }
991
1199
  },
992
1200
  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" }));
1201
+ 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
1202
  })
995
1203
  )
996
1204
  )));
997
1205
  }
998
1206
 
999
1207
  // 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";
1208
+ import React8, { useEffect as useEffect8 } from "react";
1209
+ 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
1210
  import Grid3 from "@mui/material/Grid2";
1003
1211
  import { Search, Clear } from "@mui/icons-material";
1004
1212
  import * as Muicon3 from "@mui/icons-material";
@@ -1022,12 +1230,12 @@ function SCAutocomplete({
1022
1230
  const labelContent = `<span style="color: red;">* </span>` + label;
1023
1231
  let group = "";
1024
1232
  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(() => {
1233
+ const [selectedOptions, setSelectedOptions] = React8.useState([]);
1234
+ const [prevData, setPrevData] = React8.useState(data);
1235
+ const [originalData, setOriginalData] = React8.useState(data);
1236
+ const [inputValue, setInputValue] = React8.useState("");
1237
+ const [isUserTyping, setIsUserTyping] = React8.useState(false);
1238
+ useEffect8(() => {
1031
1239
  const dataChangeValidation = JSON.stringify(prevData) === JSON.stringify(data);
1032
1240
  if (!dataChangeValidation && !isUserTyping) {
1033
1241
  setState({ hiddenValue: "-1", textValue: "" });
@@ -1038,7 +1246,7 @@ function SCAutocomplete({
1038
1246
  }
1039
1247
  setPrevData(data);
1040
1248
  }, [data, isUserTyping]);
1041
- useEffect7(() => {
1249
+ useEffect8(() => {
1042
1250
  if (typeFormat == "multiselect") {
1043
1251
  if (state.hiddenValue != "-1" && Array.isArray(state.hiddenValue)) {
1044
1252
  const newSelectedOptions = originalData.filter(
@@ -1048,7 +1256,7 @@ function SCAutocomplete({
1048
1256
  }
1049
1257
  }
1050
1258
  }, [state.hiddenValue, originalData, typeFormat]);
1051
- useEffect7(() => {
1259
+ useEffect8(() => {
1052
1260
  if (inputValue === "") {
1053
1261
  setIsUserTyping(false);
1054
1262
  }
@@ -1106,7 +1314,7 @@ function SCAutocomplete({
1106
1314
  const selectedValue = typeFormat === "multiselect" ? selectedOptions : originalData.find(
1107
1315
  (item) => getItemValue(item).value === state.hiddenValue
1108
1316
  ) || null;
1109
- return /* @__PURE__ */ React6.createElement(React6.Fragment, null, data && /* @__PURE__ */ React6.createElement(
1317
+ return /* @__PURE__ */ React8.createElement(React8.Fragment, null, data && /* @__PURE__ */ React8.createElement(
1110
1318
  Autocomplete,
1111
1319
  {
1112
1320
  multiple: typeFormat === "multiselect",
@@ -1133,9 +1341,9 @@ function SCAutocomplete({
1133
1341
  limitTags: 2,
1134
1342
  renderTags: (value, getTagProps) => {
1135
1343
  const limit = 2;
1136
- return /* @__PURE__ */ React6.createElement(React6.Fragment, null, value.slice(0, limit).map((option, index) => {
1344
+ return /* @__PURE__ */ React8.createElement(React8.Fragment, null, value.slice(0, limit).map((option, index) => {
1137
1345
  const _a = getTagProps({ index }), { key } = _a, chipProps = __objRest(_a, ["key"]);
1138
- return /* @__PURE__ */ React6.createElement(
1346
+ return /* @__PURE__ */ React8.createElement(
1139
1347
  Chip,
1140
1348
  __spreadProps(__spreadValues({
1141
1349
  key,
@@ -1147,7 +1355,7 @@ function SCAutocomplete({
1147
1355
  style: { maxWidth: 120, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }
1148
1356
  })
1149
1357
  );
1150
- }), value.length > limit && /* @__PURE__ */ React6.createElement(Box6, { sx: { ml: 0.5, fontSize: 13, color: "#666", display: "flex", alignItems: "center" } }, `+${value.length - limit}`));
1358
+ }), value.length > limit && /* @__PURE__ */ React8.createElement(Box7, { sx: { ml: 0.5, fontSize: 13, color: "#666", display: "flex", alignItems: "center" } }, `+${value.length - limit}`));
1151
1359
  },
1152
1360
  renderOption: (props, option) => {
1153
1361
  const _a = props, { key } = _a, optionProps = __objRest(_a, ["key"]);
@@ -1165,7 +1373,7 @@ function SCAutocomplete({
1165
1373
  isValid = group == option[columnGroup];
1166
1374
  group = option[columnGroup];
1167
1375
  }
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(
1376
+ 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
1377
  MenuItem2,
1170
1378
  __spreadProps(__spreadValues({}, optionProps), {
1171
1379
  disabled: isDisabled,
@@ -1175,8 +1383,8 @@ function SCAutocomplete({
1175
1383
  opacity: isDisabled ? 0.5 : 1
1176
1384
  }
1177
1385
  }),
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(
1386
+ 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 })) : "",
1387
+ typeFormat == "multiselect" ? /* @__PURE__ */ React8.createElement(
1180
1388
  Checkbox,
1181
1389
  {
1182
1390
  checked: isSelected,
@@ -1185,25 +1393,25 @@ function SCAutocomplete({
1185
1393
  color: "primary"
1186
1394
  }
1187
1395
  ) : "",
1188
- /* @__PURE__ */ React6.createElement(ListItemText2, { primary: getItemValue(option).text, color: "text.primary" }),
1396
+ /* @__PURE__ */ React8.createElement(ListItemText2, { primary: getItemValue(option).text, color: "text.primary" }),
1189
1397
  getItemValue(option).component != void 0 ? getItemValue(option).component : ""
1190
1398
  )));
1191
1399
  },
1192
- renderInput: (params) => /* @__PURE__ */ React6.createElement(React6.Fragment, null, /* @__PURE__ */ React6.createElement(
1400
+ renderInput: (params) => /* @__PURE__ */ React8.createElement(React8.Fragment, null, /* @__PURE__ */ React8.createElement(
1193
1401
  TextField3,
1194
1402
  __spreadProps(__spreadValues({}, params), {
1195
- label: required ? /* @__PURE__ */ React6.createElement("span", { dangerouslySetInnerHTML: { __html: labelContent } }) : label,
1403
+ label: required ? /* @__PURE__ */ React8.createElement("span", { dangerouslySetInnerHTML: { __html: labelContent } }) : label,
1196
1404
  placeholder: selectedOptions.length == 0 ? "B\xFAsqueda" : "",
1197
1405
  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" } })))
1406
+ 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
1407
  })
1200
1408
  })
1201
1409
  )),
1202
1410
  slotProps: {
1203
1411
  listbox: {
1204
- component: React6.forwardRef(function ListboxComponent(props, ref) {
1205
- return /* @__PURE__ */ React6.createElement(React6.Fragment, null, /* @__PURE__ */ React6.createElement(
1206
- Box6,
1412
+ component: React8.forwardRef(function ListboxComponent(props, ref) {
1413
+ return /* @__PURE__ */ React8.createElement(React8.Fragment, null, /* @__PURE__ */ React8.createElement(
1414
+ Box7,
1207
1415
  __spreadProps(__spreadValues({
1208
1416
  ref
1209
1417
  }, props), {
@@ -1213,9 +1421,9 @@ function SCAutocomplete({
1213
1421
  backgroundColor: "white"
1214
1422
  }, props.sx)
1215
1423
  }),
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)) : "",
1424
+ 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
1425
  props.children,
1218
- deleteType == "button" || fnAplicar ? /* @__PURE__ */ React6.createElement(
1426
+ deleteType == "button" || fnAplicar ? /* @__PURE__ */ React8.createElement(
1219
1427
  Grid3,
1220
1428
  {
1221
1429
  container: true,
@@ -1230,8 +1438,8 @@ function SCAutocomplete({
1230
1438
  justifyContent: "space-between"
1231
1439
  }
1232
1440
  },
1233
- deleteType == "button" ? /* @__PURE__ */ React6.createElement(
1234
- Button4,
1441
+ deleteType == "button" ? /* @__PURE__ */ React8.createElement(
1442
+ Button5,
1235
1443
  {
1236
1444
  variant: "text",
1237
1445
  color: "primary",
@@ -1243,8 +1451,8 @@ function SCAutocomplete({
1243
1451
  },
1244
1452
  "Limpiar"
1245
1453
  ) : "",
1246
- fnAplicar && /* @__PURE__ */ React6.createElement(
1247
- Button4,
1454
+ fnAplicar && /* @__PURE__ */ React8.createElement(
1455
+ Button5,
1248
1456
  {
1249
1457
  variant: "contained",
1250
1458
  color: "primary",
@@ -1263,8 +1471,8 @@ function SCAutocomplete({
1263
1471
  }
1264
1472
 
1265
1473
  // src/Components/SCDateRange.tsx
1266
- import React7 from "react";
1267
- import { Box as Box7, InputAdornment as InputAdornment4 } from "@mui/material";
1474
+ import React9 from "react";
1475
+ import { Box as Box8, InputAdornment as InputAdornment4 } from "@mui/material";
1268
1476
  import { LocalizationProvider } from "@mui/x-date-pickers/LocalizationProvider";
1269
1477
  import { AdapterDayjs } from "@mui/x-date-pickers/AdapterDayjs";
1270
1478
  import { DateRangePicker } from "@mui/x-date-pickers-pro/DateRangePicker";
@@ -1295,7 +1503,7 @@ var SCDateRange = ({
1295
1503
  ];
1296
1504
  setState(convertedValue);
1297
1505
  };
1298
- return /* @__PURE__ */ React7.createElement(LocalizationProvider, { dateAdapter: AdapterDayjs, adapterLocale: "es" }, /* @__PURE__ */ React7.createElement(Box7, { sx: { width: "100%" } }, /* @__PURE__ */ React7.createElement(
1506
+ return /* @__PURE__ */ React9.createElement(LocalizationProvider, { dateAdapter: AdapterDayjs, adapterLocale: "es" }, /* @__PURE__ */ React9.createElement(Box8, { sx: { width: "100%" } }, /* @__PURE__ */ React9.createElement(
1299
1507
  DateRangePicker,
1300
1508
  {
1301
1509
  value: state,
@@ -1314,7 +1522,7 @@ var SCDateRange = ({
1314
1522
  required,
1315
1523
  error: position === "start" ? isStartEmpty : isEndEmpty,
1316
1524
  InputProps: {
1317
- endAdornment: /* @__PURE__ */ React7.createElement(InputAdornment4, { position: "end" }, /* @__PURE__ */ React7.createElement(
1525
+ endAdornment: /* @__PURE__ */ React9.createElement(InputAdornment4, { position: "end" }, /* @__PURE__ */ React9.createElement(
1318
1526
  EventIcon,
1319
1527
  {
1320
1528
  color: hasError ? "error" : "action",
@@ -1384,7 +1592,7 @@ var validateInputs = (arrayElements, onError, onSuccess, setChipFilters, setText
1384
1592
  };
1385
1593
 
1386
1594
  // src/Components/Drawer/Helpers/validateTypeElement.tsx
1387
- import React8 from "react";
1595
+ import React10 from "react";
1388
1596
  var validateTypeElements = (element) => {
1389
1597
  var _a;
1390
1598
  let validation = "";
@@ -1392,37 +1600,37 @@ var validateTypeElements = (element) => {
1392
1600
  if (element.type == "textField") {
1393
1601
  validation = "textField";
1394
1602
  typeElement = element;
1395
- } else if (React8.isValidElement(element == null ? void 0 : element.component) && element.component.type && element.component.type.name == "SCtextField") {
1603
+ } else if (React10.isValidElement(element == null ? void 0 : element.component) && element.component.type && element.component.type.name == "SCtextField") {
1396
1604
  validation = "textField";
1397
1605
  typeElement = element == null ? void 0 : element.component.props;
1398
1606
  } else if (element.type == "textArea") {
1399
1607
  validation = "textArea";
1400
1608
  typeElement = element;
1401
- } else if (React8.isValidElement(element == null ? void 0 : element.component) && element.component.type && element.component.type.name == "SCtextArea") {
1609
+ } else if (React10.isValidElement(element == null ? void 0 : element.component) && element.component.type && element.component.type.name == "SCtextArea") {
1402
1610
  validation = "textArea";
1403
1611
  typeElement = element == null ? void 0 : element.component.props;
1404
1612
  } else if (element.type == "dateRange") {
1405
1613
  validation = "dateRange";
1406
1614
  typeElement = element;
1407
- } else if (React8.isValidElement(element == null ? void 0 : element.component) && element.component.type && element.component.type.name == "SCDateRange") {
1615
+ } else if (React10.isValidElement(element == null ? void 0 : element.component) && element.component.type && element.component.type.name == "SCDateRange") {
1408
1616
  validation = "dateRange";
1409
1617
  typeElement = element == null ? void 0 : element.component.props;
1410
1618
  } else if (element.type == "autocomplete") {
1411
1619
  validation = "autocomplete";
1412
1620
  typeElement = element;
1413
- } else if (React8.isValidElement(element == null ? void 0 : element.component) && element.component.type && element.component.type.name == "SCAutocomplete") {
1621
+ } else if (React10.isValidElement(element == null ? void 0 : element.component) && element.component.type && element.component.type.name == "SCAutocomplete") {
1414
1622
  validation = "autocomplete";
1415
1623
  typeElement = element == null ? void 0 : element.component.props;
1416
1624
  } else if (element.typeFormat == "multiselect") {
1417
1625
  validation = "multiselect";
1418
1626
  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") {
1627
+ } 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
1628
  validation = "multiselect";
1421
1629
  typeElement = element == null ? void 0 : element.component.props;
1422
1630
  } else if (element.type == "select") {
1423
1631
  validation = "select";
1424
1632
  typeElement = element;
1425
- } else if (React8.isValidElement(element == null ? void 0 : element.component) && element.component.type && element.component.type.name == "SCSelect") {
1633
+ } else if (React10.isValidElement(element == null ? void 0 : element.component) && element.component.type && element.component.type.name == "SCSelect") {
1426
1634
  validation = "select";
1427
1635
  typeElement = element == null ? void 0 : element.component.props;
1428
1636
  }
@@ -1450,11 +1658,11 @@ function SCDrawer({
1450
1658
  }) {
1451
1659
  var _a, _b;
1452
1660
  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(() => {
1661
+ const [drawerOpen, setDrawerOpen] = React11.useState(open);
1662
+ const [toast, setToast] = React11.useState(null);
1663
+ const [stateChipFilters, setChipFilters] = React11.useState(false);
1664
+ const [textFilters, setTextFilters] = React11.useState([]);
1665
+ useEffect10(() => {
1458
1666
  if (chipFilters != void 0) {
1459
1667
  if (chipFilters.length > 0) {
1460
1668
  setTextFilters([]);
@@ -1462,7 +1670,7 @@ function SCDrawer({
1462
1670
  }
1463
1671
  }
1464
1672
  }, [chipFilters]);
1465
- useEffect9(() => {
1673
+ useEffect10(() => {
1466
1674
  if (open) {
1467
1675
  toggleDrawer(true);
1468
1676
  } else {
@@ -1625,8 +1833,8 @@ function SCDrawer({
1625
1833
  };
1626
1834
  const shouldShowChips = chipFilters != void 0 && chipFilters.length > 0 ? true : stateChipFilters === true && hasActiveFilters();
1627
1835
  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,
1836
+ 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(
1837
+ Box9,
1630
1838
  {
1631
1839
  ref: scrollRef,
1632
1840
  gap: 0.3,
@@ -1637,7 +1845,7 @@ function SCDrawer({
1637
1845
  "&::-webkit-scrollbar": { display: "none" }
1638
1846
  }
1639
1847
  },
1640
- textFilters == null ? void 0 : textFilters.map((chipData, index) => /* @__PURE__ */ React9.createElement(
1848
+ textFilters == null ? void 0 : textFilters.map((chipData, index) => /* @__PURE__ */ React11.createElement(
1641
1849
  Chip2,
1642
1850
  __spreadProps(__spreadValues({
1643
1851
  key: index,
@@ -1652,15 +1860,15 @@ function SCDrawer({
1652
1860
  }
1653
1861
  })
1654
1862
  ))
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(
1863
+ ), /* @__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
1864
  Chip2,
1657
1865
  __spreadProps(__spreadValues({
1658
1866
  onClick: toggleDrawer(true),
1659
1867
  color: buttonDrawer == null ? void 0 : buttonDrawer.color,
1660
1868
  variant: (buttonDrawer == null ? void 0 : buttonDrawer.variant) == "contained" ? "filled" : "outlined",
1661
1869
  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
1870
+ icon: (buttonDrawer == null ? void 0 : buttonDrawer.iconPosition) === "left" && ButtonIcon ? /* @__PURE__ */ React11.createElement(ButtonIcon, { fontSize: "small" }) : void 0,
1871
+ deleteIcon: (buttonDrawer == null ? void 0 : buttonDrawer.iconPosition) === "right" && ButtonIcon ? /* @__PURE__ */ React11.createElement(ButtonIcon, { fontSize: "small" }) : void 0
1664
1872
  }, (buttonDrawer == null ? void 0 : buttonDrawer.iconPosition) === "right" && ButtonIcon ? { onDelete: () => {
1665
1873
  } } : {}), {
1666
1874
  sx: {
@@ -1670,8 +1878,8 @@ function SCDrawer({
1670
1878
  textTransform: "capitalize"
1671
1879
  }
1672
1880
  })
1673
- ) : /* @__PURE__ */ React9.createElement(
1674
- Button5,
1881
+ ) : /* @__PURE__ */ React11.createElement(
1882
+ Button6,
1675
1883
  {
1676
1884
  "data-testid": "test-buttonDrawer",
1677
1885
  sx: { textTransform: "capitalize" },
@@ -1679,11 +1887,11 @@ function SCDrawer({
1679
1887
  onClick: toggleDrawer(true),
1680
1888
  size: "small",
1681
1889
  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
1890
+ startIcon: ((buttonDrawer == null ? void 0 : buttonDrawer.iconPosition) === "left" || !(buttonDrawer == null ? void 0 : buttonDrawer.iconPosition)) && ButtonIcon ? /* @__PURE__ */ React11.createElement(ButtonIcon, { fontSize: "small" }) : null,
1891
+ endIcon: (buttonDrawer == null ? void 0 : buttonDrawer.iconPosition) === "right" && ButtonIcon ? /* @__PURE__ */ React11.createElement(ButtonIcon, { fontSize: "small" }) : null
1684
1892
  },
1685
1893
  (_b = buttonDrawer == null ? void 0 : buttonDrawer.text) != null ? _b : ""
1686
- )), /* @__PURE__ */ React9.createElement(
1894
+ )), /* @__PURE__ */ React11.createElement(
1687
1895
  Drawer,
1688
1896
  {
1689
1897
  open: drawerOpen,
@@ -1697,15 +1905,15 @@ function SCDrawer({
1697
1905
  }
1698
1906
  }
1699
1907
  },
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) => {
1908
+ /* @__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
1909
  var _a2, _b2, _c, _d, _e, _f;
1702
- return /* @__PURE__ */ React9.createElement(
1703
- Box8,
1910
+ return /* @__PURE__ */ React11.createElement(
1911
+ Box9,
1704
1912
  {
1705
1913
  key: `Stack_${(_a2 = arrayElement.type) != null ? _a2 : ""} ${(_b2 = arrayElement.label) != null ? _b2 : ""}${index}`,
1706
1914
  sx: { width: "100%" }
1707
1915
  },
1708
- arrayElement.component ? /* @__PURE__ */ React9.createElement(Stack4, { direction: "row", alignItems: "left", gap: 1 }, arrayElement.component) : arrayElement.type === "textField" ? /* @__PURE__ */ React9.createElement(
1916
+ arrayElement.component ? /* @__PURE__ */ React11.createElement(Stack5, { direction: "row", alignItems: "left", gap: 1 }, arrayElement.component) : arrayElement.type === "textField" ? /* @__PURE__ */ React11.createElement(
1709
1917
  SCTextField,
1710
1918
  {
1711
1919
  title: arrayElement.title,
@@ -1731,7 +1939,7 @@ function SCDrawer({
1731
1939
  onBlur: arrayElement.onBlur,
1732
1940
  onKeyDown: arrayElement.onKeyDown
1733
1941
  }
1734
- ) : arrayElement.type === "textArea" ? /* @__PURE__ */ React9.createElement(
1942
+ ) : arrayElement.type === "textArea" ? /* @__PURE__ */ React11.createElement(
1735
1943
  SCTextArea,
1736
1944
  {
1737
1945
  title: arrayElement.title,
@@ -1750,7 +1958,7 @@ function SCDrawer({
1750
1958
  state: arrayElement.state || "",
1751
1959
  onBlur: arrayElement.onBlur
1752
1960
  }
1753
- ) : arrayElement.type === "autocomplete" ? /* @__PURE__ */ React9.createElement(
1961
+ ) : arrayElement.type === "autocomplete" ? /* @__PURE__ */ React11.createElement(
1754
1962
  SCAutocomplete,
1755
1963
  {
1756
1964
  label: arrayElement.label,
@@ -1768,7 +1976,7 @@ function SCDrawer({
1768
1976
  state: arrayElement.state || "",
1769
1977
  inputChange: arrayElement.inputChange
1770
1978
  }
1771
- ) : arrayElement.type === "select" ? /* @__PURE__ */ React9.createElement(
1979
+ ) : arrayElement.type === "select" ? /* @__PURE__ */ React11.createElement(
1772
1980
  SCSelect,
1773
1981
  {
1774
1982
  label: arrayElement.label,
@@ -1784,7 +1992,7 @@ function SCDrawer({
1784
1992
  setState: arrayElement.setState,
1785
1993
  state: arrayElement.state || ""
1786
1994
  }
1787
- ) : arrayElement.type === "dateRange" ? /* @__PURE__ */ React9.createElement(
1995
+ ) : arrayElement.type === "dateRange" ? /* @__PURE__ */ React11.createElement(
1788
1996
  SCDateRange,
1789
1997
  {
1790
1998
  labelDateInitial: arrayElement.labelDateInitial,
@@ -1797,7 +2005,7 @@ function SCDrawer({
1797
2005
  }
1798
2006
  ) : null
1799
2007
  );
1800
- })), actionsA != void 0 && actionsA != false ? Array.isArray(actionsA) && (actionsA == null ? void 0 : actionsA.length) > 0 ? /* @__PURE__ */ React9.createElement(
2008
+ })), actionsA != void 0 && actionsA != false ? Array.isArray(actionsA) && (actionsA == null ? void 0 : actionsA.length) > 0 ? /* @__PURE__ */ React11.createElement(
1801
2009
  Grid4,
1802
2010
  {
1803
2011
  sx: { borderTop: 1, borderColor: "#1018403B" },
@@ -1809,8 +2017,8 @@ function SCDrawer({
1809
2017
  justifyContent: actionsA.length > 1 ? "space-between" : !anchor && anchor != "right" ? "flex-end" : "flex-start",
1810
2018
  flexDirection: anchor != "right" ? "row-reverse" : "row"
1811
2019
  },
1812
- actionsA.map((btn, index) => /* @__PURE__ */ React9.createElement(
1813
- Button5,
2020
+ actionsA.map((btn, index) => /* @__PURE__ */ React11.createElement(
2021
+ Button6,
1814
2022
  {
1815
2023
  key: index,
1816
2024
  variant: index === 0 || actionsA.length < 2 ? "contained" : "text",
@@ -1826,177 +2034,34 @@ function SCDrawer({
1826
2034
  }
1827
2035
 
1828
2036
  // src/Components/FooterAction/FooterAction.tsx
1829
- import React10 from "react";
1830
- import { AppBar, Toolbar, Box as Box9, Typography as Typography9 } from "@mui/material";
2037
+ import React12 from "react";
2038
+ import { AppBar, Toolbar, Box as Box10, Typography as Typography10 } from "@mui/material";
1831
2039
  var FooterAction = ({
1832
2040
  leftContent,
1833
2041
  rightContent,
1834
2042
  label,
1835
2043
  variant
1836
2044
  }) => {
1837
- return /* @__PURE__ */ React10.createElement(
2045
+ return /* @__PURE__ */ React12.createElement(
1838
2046
  AppBar,
1839
2047
  {
1840
2048
  color: "inherit",
1841
2049
  sx: { position: variant == "float" ? "relative" : "fixed", left: 0, right: "auto", width: "100%", top: "auto", bottom: 0 }
1842
2050
  },
1843
- /* @__PURE__ */ React10.createElement(
2051
+ /* @__PURE__ */ React12.createElement(
1844
2052
  Toolbar,
1845
2053
  {
1846
2054
  id: "footer-toolbar",
1847
2055
  sx: { gap: 1.5, minHeight: "50px !important" }
1848
2056
  },
1849
2057
  leftContent,
1850
- /* @__PURE__ */ React10.createElement(Box9, { flexGrow: 1 }),
1851
- label && /* @__PURE__ */ React10.createElement(Typography9, { variant: "body2", color: "text.secondary" }, label),
2058
+ /* @__PURE__ */ React12.createElement(Box10, { flexGrow: 1 }),
2059
+ label && /* @__PURE__ */ React12.createElement(Typography10, { variant: "body2", color: "text.secondary" }, label),
1852
2060
  rightContent
1853
2061
  )
1854
2062
  );
1855
2063
  };
1856
2064
 
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
2065
  // src/Components/MultiSelect/MultiSelect.tsx
2001
2066
  import React13, { useEffect as useEffect11, useMemo as useMemo5 } from "react";
2002
2067
  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 +2750,7 @@ var EmptyState = ({
2685
2750
 
2686
2751
  // src/Components/SCDialog.tsx
2687
2752
  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";
2753
+ 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
2754
  import Grid6 from "@mui/material/Grid2";
2690
2755
  import CloseIcon2 from "@mui/icons-material/Close";
2691
2756
  import * as Muicon5 from "@mui/icons-material";
@@ -2746,7 +2811,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
2746
2811
  };
2747
2812
  const dialogActions = actions != null ? actions : [{ text: "Cerrar", fn: handleClose }];
2748
2813
  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(
2814
+ 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
2815
  Dialog,
2751
2816
  {
2752
2817
  "data-testid": "dialog-element",
@@ -3043,7 +3108,7 @@ var SCTabs = ({ options, defaultOption, typeIcon, background, iconPosition, colo
3043
3108
 
3044
3109
  // src/Components/Calendario/Calendar.tsx
3045
3110
  import React31, { useState as useState13 } from "react";
3046
- import { Box as Box20, CircularProgress as CircularProgress4 } from "@mui/material";
3111
+ import { Box as Box20, CircularProgress as CircularProgress5 } from "@mui/material";
3047
3112
 
3048
3113
  // src/Components/Calendario/CalendarToolbar.tsx
3049
3114
  import React25, { useState as useState12 } from "react";
@@ -3113,7 +3178,7 @@ var CalendarToolbar = ({
3113
3178
 
3114
3179
  // src/Components/Calendario/Views/MonthView.tsx
3115
3180
  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";
3181
+ 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
3182
  import AddIcon from "@mui/icons-material/Add";
3118
3183
  import dayjs4 from "dayjs";
3119
3184
  import localeData from "dayjs/plugin/localeData";
@@ -3255,7 +3320,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3255
3320
  const [openDrawer, setOpenDrawer] = React28.useState(false);
3256
3321
  const [selectedDay, setSelectedDay] = React28.useState(null);
3257
3322
  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(
3323
+ 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
3324
  EmptyState,
3260
3325
  {
3261
3326
  title: "Inicia la gesti\xF3n de las actividades",
@@ -3305,7 +3370,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3305
3370
  },
3306
3371
  day.date()
3307
3372
  )
3308
- ), dayEvents.length > 2 && /* @__PURE__ */ React28.createElement(Tooltip5, { title: "M\xE1s eventos" }, /* @__PURE__ */ React28.createElement(
3373
+ ), dayEvents.length > 2 && /* @__PURE__ */ React28.createElement(Tooltip6, { title: "M\xE1s eventos" }, /* @__PURE__ */ React28.createElement(
3309
3374
  IconButton11,
3310
3375
  {
3311
3376
  color: "primary",
@@ -3356,6 +3421,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3356
3421
  event: first,
3357
3422
  color: stateColors[first.state],
3358
3423
  onClick: () => onEventClick == null ? void 0 : onEventClick(first, day),
3424
+ onHover: onEventHover,
3359
3425
  sx: {
3360
3426
  whiteSpace: "normal",
3361
3427
  "& .MuiTypography-root": {
@@ -3408,7 +3474,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3408
3474
 
3409
3475
  // src/Components/Calendario/Views/WeekView.tsx
3410
3476
  import React29 from "react";
3411
- import { Box as Box18, CircularProgress as CircularProgress2, Typography as Typography20 } from "@mui/material";
3477
+ import { Box as Box18, CircularProgress as CircularProgress3, Typography as Typography20 } from "@mui/material";
3412
3478
  import dayjs5 from "dayjs";
3413
3479
  import localeData2 from "dayjs/plugin/localeData";
3414
3480
  dayjs5.extend(localeData2);
@@ -3464,7 +3530,7 @@ var WeekView = ({
3464
3530
  /* @__PURE__ */ React29.createElement(Typography20, { variant: "h6", color: "text.primary" }, day.format("D")),
3465
3531
  /* @__PURE__ */ React29.createElement(Typography20, { variant: "caption", color: "text.secondary" }, day.format("dddd"))
3466
3532
  );
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(
3533
+ })), 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
3534
  EmptyState,
3469
3535
  {
3470
3536
  title: "Inicia la gesti\xF3n de las actividades",
@@ -3546,7 +3612,7 @@ var WeekView = ({
3546
3612
 
3547
3613
  // src/Components/Calendario/Views/DayView.tsx
3548
3614
  import React30 from "react";
3549
- import { Box as Box19, CircularProgress as CircularProgress3, Typography as Typography21 } from "@mui/material";
3615
+ import { Box as Box19, CircularProgress as CircularProgress4, Typography as Typography21 } from "@mui/material";
3550
3616
  import dayjs6 from "dayjs";
3551
3617
  var DayView = ({
3552
3618
  events,
@@ -3577,7 +3643,7 @@ var DayView = ({
3577
3643
  (event2) => currentDate.isBetween(event2.start.startOf("day"), event2.end.endOf("day"), null, "[]")
3578
3644
  );
3579
3645
  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(
3646
+ 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
3647
  EmptyState,
3582
3648
  {
3583
3649
  title: "Inicia la gesti\xF3n de las actividades",
@@ -3690,7 +3756,7 @@ var Calendar = ({
3690
3756
  alignItems: "center",
3691
3757
  height: "400px"
3692
3758
  },
3693
- /* @__PURE__ */ React31.createElement(CircularProgress4, { variant: "indeterminate" })
3759
+ /* @__PURE__ */ React31.createElement(CircularProgress5, { variant: "indeterminate" })
3694
3760
  ))) : /* @__PURE__ */ React31.createElement(React31.Fragment, null, view === "month" && /* @__PURE__ */ React31.createElement(
3695
3761
  MonthView,
3696
3762
  {
@@ -5701,8 +5767,8 @@ var AdproSincoTheme = createTheme(__spreadValues({}, ADPROTheme));
5701
5767
  var ADCSincoTheme = createTheme(__spreadValues({}, ADCTheme));
5702
5768
  export {
5703
5769
  ADCSincoTheme,
5704
- Adjuntar,
5705
5770
  AdproSincoTheme,
5771
+ Attachment,
5706
5772
  Calendar,
5707
5773
  EmptyState,
5708
5774
  FooterAction,
@@ -5729,7 +5795,7 @@ export {
5729
5795
  capitalize,
5730
5796
  getButtonColor,
5731
5797
  getIcon,
5732
- getIconComponent2 as getIconComponent,
5798
+ getIconComponent,
5733
5799
  getIconMultiSelect,
5734
5800
  getModalColor,
5735
5801
  modalStateConfig,