componentes-sinco 1.2.9 → 1.3.0

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
@@ -51,187 +51,49 @@ var __async = (__this, __arguments, generator) => {
51
51
  };
52
52
 
53
53
  // src/Components/Adjuntar/Adjuntar.tsx
54
- import React4, { useEffect as useEffect3, useRef, useState as useState4 } from "react";
55
- import { Box as Box3, Button as Button3, CircularProgress, IconButton as IconButton3, Stack as Stack3, Tooltip, Typography as Typography3, SvgIcon } from "@mui/material";
54
+ import React4, { useEffect, useRef, useState as useState3 } from "react";
55
+ import { Box as Box2, Button as Button2, CircularProgress, IconButton as IconButton2, Stack as Stack2, Tooltip, Typography as Typography2, SvgIcon } from "@mui/material";
56
56
  import { CloudUploadOutlined, AttachFileOutlined, DeleteOutline, UploadFileOutlined, FileDownload } from "@mui/icons-material";
57
57
  import * as Muicon from "@mui/icons-material";
58
58
 
59
- // src/Components/ToastNotification/SCToastNotification.tsx
60
- import React, { useEffect as useEffect2, useState as useState2 } from "react";
61
- import { Stack, LinearProgress, Divider, Box, Typography, IconButton, Button } from "@mui/material";
62
- import { Close, InfoRounded, CheckCircleRounded, WarningRounded, ErrorRounded, KeyboardArrowDown, KeyboardArrowUp } from "@mui/icons-material";
63
-
64
- // src/Components/ToastNotification/useProgress.ts
65
- import { useEffect, useState } from "react";
66
- var useProgress = (timeProgress, lote) => {
67
- const [progress, setProgress] = useState(0);
68
- useEffect(() => {
69
- const interval = setInterval(() => {
70
- setProgress((prev) => {
71
- if (prev >= 100) {
72
- clearInterval(interval);
73
- }
74
- if (lote) {
75
- const nextProgress = prev + lote;
76
- return nextProgress <= 100 ? nextProgress : 100;
77
- } else {
78
- return prev + 1;
79
- }
80
- });
81
- }, timeProgress * 10);
82
- return () => {
83
- clearInterval(interval);
84
- };
85
- }, [timeProgress, lote]);
86
- return {
87
- progress
88
- };
89
- };
90
- var ToastProgress = (timeProgress) => {
91
- const [progress, setProgress] = useState(100);
92
- useEffect(() => {
93
- const interval = setInterval(() => {
94
- setProgress((prev) => {
95
- if (prev <= 0) {
96
- clearInterval(interval);
97
- }
98
- return prev - 1;
99
- });
100
- }, timeProgress * 10);
101
- return () => {
102
- clearInterval(interval);
103
- };
104
- }, [timeProgress]);
105
- return {
106
- progressToast: progress
107
- };
108
- };
109
-
110
- // src/Components/ToastNotification/SCToastNotification.tsx
111
- var SCToastNotification = (toast) => {
112
- var _a;
113
- const [stateOptions, setStateOptions] = useState2(true);
114
- const [stateToast, setStateToast] = useState2(true);
115
- const timeProgress = toast.time || 10;
116
- const { progress } = useProgress(timeProgress);
117
- const toastColorConfig = toast.type || "info";
118
- const toastIconOption = {
119
- success: /* @__PURE__ */ React.createElement(CheckCircleRounded, { color: "success" }),
120
- error: /* @__PURE__ */ React.createElement(ErrorRounded, { color: "error" }),
121
- warning: /* @__PURE__ */ React.createElement(WarningRounded, { color: "warning" }),
122
- info: /* @__PURE__ */ React.createElement(InfoRounded, { color: "info" })
123
- };
124
- const acciones = [...toast.actions || [{ text: "Action", fn: () => {
125
- alert("");
126
- } }, { text: "Consultar", fn: () => {
127
- } }]];
128
- const ToastIconConfig = toastIconOption[toast.type];
129
- const closeToast = () => {
130
- setStateToast(false);
131
- };
132
- const toggleToastOptions = () => {
133
- setStateOptions((prevShowOptions) => !prevShowOptions);
59
+ // src/Components/SCSnackBar.tsx
60
+ import React from "react";
61
+ import MuiAlert from "@mui/material/Alert";
62
+ import "dayjs/locale/es";
63
+ import Snackbar from "@mui/material/Snackbar";
64
+ var SCSnackBar = ({
65
+ type = "success",
66
+ close = true,
67
+ openState,
68
+ setOpenState,
69
+ mensaje,
70
+ duration = 3e3,
71
+ position = "Center"
72
+ }) => {
73
+ const posicionVertical = position == "Center" ? "bottom" : position.split("-")[1] == "Up" ? "top" : "bottom";
74
+ const posicionHorizontal = position == "Center" ? "center" : position.split("-")[0] == "Left" ? "left" : "right";
75
+ const handleClose = (event2, reason) => {
76
+ if (reason === "clickaway") {
77
+ return;
78
+ }
79
+ setOpenState(false);
134
80
  };
135
- useEffect2(() => {
136
- progress >= 100 && setStateToast(false);
137
- }, [progress]);
138
- return /* @__PURE__ */ React.createElement(React.Fragment, null, stateToast && /* @__PURE__ */ React.createElement(
139
- Stack,
140
- {
141
- position: "fixed",
142
- zIndex: 1400,
143
- right: 16,
144
- top: 16,
145
- width: 370,
146
- sx: {
147
- boxShadow: (theme) => theme.shadows[8]
148
- }
149
- },
150
- /* @__PURE__ */ React.createElement(
151
- Box,
152
- {
153
- padding: 1.5,
154
- gap: 1.5,
155
- display: "flex",
156
- alignItems: "center",
157
- sx: {
158
- backgroundColor: {
159
- success: "success.50",
160
- error: "error.50",
161
- warning: "warning.50",
162
- info: "info.50"
163
- }[toastColorConfig]
164
- }
165
- },
166
- /* @__PURE__ */ React.createElement(
167
- Stack,
168
- {
169
- p: 1,
170
- gap: 1,
171
- borderRadius: 50,
172
- bgcolor: {
173
- success: "success.100",
174
- error: "error.100",
175
- warning: "warning.100",
176
- info: "info.100"
177
- }[(_a = toast.type) != null ? _a : "info"]
178
- },
179
- /* @__PURE__ */ React.createElement(Stack, null, ToastIconConfig)
180
- ),
181
- /* @__PURE__ */ React.createElement(Divider, { orientation: "vertical", flexItem: true }),
182
- /* @__PURE__ */ React.createElement(Stack, { width: 285 }, /* @__PURE__ */ React.createElement(
183
- Stack,
184
- {
185
- justifyContent: "space-between",
186
- flexDirection: "row",
187
- alignItems: "center"
188
- },
189
- /* @__PURE__ */ React.createElement(Typography, { variant: "subtitle2", color: "text.primary" }, toast.title),
190
- /* @__PURE__ */ React.createElement(
191
- IconButton,
192
- {
193
- size: "small",
194
- "data-testid": "close-icon",
195
- onClick: closeToast
196
- },
197
- /* @__PURE__ */ React.createElement(Close, { fontSize: "small" })
198
- )
199
- ), /* @__PURE__ */ React.createElement(Stack, { gap: 0.5 }, /* @__PURE__ */ React.createElement(Typography, { color: "text.primary", variant: "body2" }, toast.subtitle), !stateOptions && toast.listITems && toast.listITems.length > 0 && /* @__PURE__ */ React.createElement(Stack, null, toast.listITems.map((element, i) => /* @__PURE__ */ React.createElement(Typography, { variant: "caption", key: i }, "\u2022 ", element)))), /* @__PURE__ */ React.createElement(Stack, { justifyContent: "flex-end", flexDirection: "row", gap: 0.5 }, toast.actions && toast.actions.length > 0 && /* @__PURE__ */ React.createElement(Stack, { flexDirection: "row", gap: 0.5 }, toast.actions.map((button, index) => /* @__PURE__ */ React.createElement(
200
- Button,
201
- {
202
- key: index,
203
- color: toast.type === "info" ? "info" : toast.type === "success" ? "success" : toast.type === "error" ? "error" : "warning",
204
- variant: "text",
205
- onClick: button.fn,
206
- disabled: button.disabled || false,
207
- size: "small"
208
- },
209
- button.text.charAt(0).toUpperCase() + button.text.slice(1).toLowerCase()
210
- ))), toast.seeMore && /* @__PURE__ */ React.createElement(
211
- Button,
212
- {
213
- onClick: toggleToastOptions,
214
- size: "small",
215
- variant: "text",
216
- color: toastColorConfig
217
- },
218
- stateOptions ? "Ver m\xE1s" : "Ver menos",
219
- stateOptions ? /* @__PURE__ */ React.createElement(KeyboardArrowDown, null) : /* @__PURE__ */ React.createElement(KeyboardArrowUp, null)
220
- )))
221
- ),
81
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
82
+ Snackbar,
83
+ __spreadProps(__spreadValues({
84
+ anchorOrigin: { vertical: posicionVertical, horizontal: posicionHorizontal },
85
+ open: openState,
86
+ autoHideDuration: duration
87
+ }, close ? { onClose: handleClose } : {}), {
88
+ sx: { zIndex: 2e3 }
89
+ }),
222
90
  /* @__PURE__ */ React.createElement(
223
- LinearProgress,
224
- {
225
- sx: {
226
- ".MuiLinearProgress-bar": {
227
- transition: "0.1s linear !important",
228
- transform: "scaleX(-1)"
229
- }
230
- },
231
- color: toastColorConfig,
232
- variant: "determinate",
233
- value: 100 - progress
234
- }
91
+ MuiAlert,
92
+ __spreadProps(__spreadValues({}, close ? { onClose: handleClose } : {}), {
93
+ severity: type,
94
+ sx: { backgroundColor: type == "success" ? "success.50" : type == "error" ? "#F9E8E8" : type == "warning" ? "#FFF0E0" : "#E6F3F8" }
95
+ }),
96
+ mensaje
235
97
  )
236
98
  ));
237
99
  };
@@ -283,9 +145,9 @@ var getButtonColor = (state) => {
283
145
  };
284
146
 
285
147
  // src/Components/Modal/SCModal.tsx
286
- import React3, { useCallback, useMemo, useState as useState3 } from "react";
287
- import { Modal, Box as Box2, Typography as Typography2, IconButton as IconButton2, Button as Button2, Stack as Stack2 } from "@mui/material";
288
- import { Close as Close2 } from "@mui/icons-material";
148
+ import React3, { useCallback, useMemo, useState as useState2 } from "react";
149
+ import { Modal, Box, Typography, IconButton, Button, Stack } from "@mui/material";
150
+ import { Close } from "@mui/icons-material";
289
151
 
290
152
  // src/generales/capitalize.tsx
291
153
  function capitalize(text) {
@@ -303,7 +165,7 @@ var SCModal = ({
303
165
  action
304
166
  }) => {
305
167
  var _a, _b, _c, _d, _e;
306
- const [internalOpen, setInternalOpen] = useState3(open != null ? open : false);
168
+ const [internalOpen, setInternalOpen] = useState2(open != null ? open : false);
307
169
  const isControlled = Boolean(setOpen);
308
170
  const modalOpen = isControlled ? open != null ? open : false : internalOpen;
309
171
  const setModalOpen = isControlled ? setOpen : setInternalOpen;
@@ -312,7 +174,7 @@ var SCModal = ({
312
174
  const Icon = useMemo(() => getIconComponent(buttonModal == null ? void 0 : buttonModal.icon), [buttonModal == null ? void 0 : buttonModal.icon]);
313
175
  const { icon, defaultDescription } = modalStateConfig[state];
314
176
  return /* @__PURE__ */ React3.createElement(React3.Fragment, null, buttonModal && /* @__PURE__ */ React3.createElement(
315
- Button2,
177
+ Button,
316
178
  {
317
179
  "data-testid": "test-buttonModal",
318
180
  color: (_a = buttonModal == null ? void 0 : buttonModal.color) != null ? _a : "primary",
@@ -324,7 +186,7 @@ var SCModal = ({
324
186
  },
325
187
  capitalize((_d = buttonModal == null ? void 0 : buttonModal.text) != null ? _d : "filtrar")
326
188
  ), /* @__PURE__ */ React3.createElement(Modal, { open: modalOpen, onClose: handleClose, sx: { boxShadow: 8 } }, /* @__PURE__ */ React3.createElement(
327
- Box2,
189
+ Box,
328
190
  {
329
191
  sx: {
330
192
  position: "absolute",
@@ -337,8 +199,8 @@ var SCModal = ({
337
199
  boxShadow: 24
338
200
  }
339
201
  },
340
- /* @__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(
341
- Box2,
202
+ /* @__PURE__ */ React3.createElement(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center" }, /* @__PURE__ */ React3.createElement(Stack, { direction: "row", alignItems: "center", p: 1, gap: 1.5 }, /* @__PURE__ */ React3.createElement(
203
+ Box,
342
204
  {
343
205
  display: "flex",
344
206
  justifyContent: "center",
@@ -349,10 +211,10 @@ var SCModal = ({
349
211
  bgcolor: getModalColor(state)
350
212
  },
351
213
  icon
352
- ), /* @__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" }))),
353
- /* @__PURE__ */ React3.createElement(Stack2, { py: 1, px: 3, gap: 1.5 }, /* @__PURE__ */ React3.createElement(Typography2, { variant: "body1" }, description || defaultDescription)),
214
+ ), /* @__PURE__ */ React3.createElement(Typography, { variant: "h6", color: "text.primary" }, title)), /* @__PURE__ */ React3.createElement(IconButton, { onClick: handleClose, "data-testid": "test-buttonClose" }, /* @__PURE__ */ React3.createElement(Close, { color: "action" }))),
215
+ /* @__PURE__ */ React3.createElement(Stack, { py: 1, px: 3, gap: 1.5 }, /* @__PURE__ */ React3.createElement(Typography, { variant: "body1" }, description || defaultDescription)),
354
216
  action && /* @__PURE__ */ React3.createElement(
355
- Stack2,
217
+ Stack,
356
218
  {
357
219
  id: "Action",
358
220
  direction: "row",
@@ -363,7 +225,7 @@ var SCModal = ({
363
225
  sx: { borderRadius: 1 }
364
226
  },
365
227
  /* @__PURE__ */ React3.createElement(
366
- Button2,
228
+ Button,
367
229
  {
368
230
  color: "inherit",
369
231
  variant: "text",
@@ -373,7 +235,7 @@ var SCModal = ({
373
235
  capitalize("cancelar")
374
236
  ),
375
237
  /* @__PURE__ */ React3.createElement(
376
- Button2,
238
+ Button,
377
239
  {
378
240
  "data-testid": "test-aceptar",
379
241
  color: getButtonColor(state),
@@ -403,11 +265,11 @@ var Attachment = ({
403
265
  iconFileItem,
404
266
  view = "button"
405
267
  }) => {
406
- const [files, setFiles] = useState4([]);
407
- const [fileToDelete, setFileToDelete] = useState4(null);
408
- const [toast, setToast] = useState4(null);
409
- const [openModal, setOpenModal] = useState4(false);
410
- const [isDragFile, setIsDragFile] = useState4(false);
268
+ const [files, setFiles] = useState3([]);
269
+ const [fileToDelete, setFileToDelete] = useState3(null);
270
+ const [toast, setToast] = useState3({ open: false, mensaje: "", type: "success" });
271
+ const [openModal, setOpenModal] = useState3(false);
272
+ const [isDragFile, setIsDragFile] = useState3(false);
411
273
  const inputRef = useRef(null);
412
274
  let IconFileItem;
413
275
  if (iconFileItem) {
@@ -417,7 +279,7 @@ var Attachment = ({
417
279
  IconFileItem = Muicon[iconFileItem];
418
280
  }
419
281
  }
420
- useEffect3(() => {
282
+ useEffect(() => {
421
283
  if (initialFiles && initialFiles.length > 0) {
422
284
  setFiles(initialFiles);
423
285
  }
@@ -452,13 +314,7 @@ var Attachment = ({
452
314
  );
453
315
  const sizeMB = file.size / (1024 * 1024);
454
316
  if (isDuplicateFile) {
455
- setToast({
456
- type: "error",
457
- title: "Archivo duplicado",
458
- listITems: [`El archivo "${file.name}" ya existe.`],
459
- seeMore: true,
460
- time: 5
461
- });
317
+ setToast({ open: true, type: "error", mensaje: `Archivo duplicado: El archivo "${file.name}" ya existe.` });
462
318
  return;
463
319
  }
464
320
  if (sizeMB > maxSize) {
@@ -469,13 +325,7 @@ var Attachment = ({
469
325
  progress: 0,
470
326
  uploadError: true
471
327
  });
472
- setToast({
473
- type: "error",
474
- title: "Carga fallida",
475
- seeMore: true,
476
- listITems: [`El archivo "${file.name}" supera el l\xEDmite de ${maxSize}MB.`],
477
- time: 5
478
- });
328
+ setToast({ open: true, type: "error", mensaje: `Carga fallida: El archivo "${file.name}" supera el l\xEDmite de ${maxSize}MB.` });
479
329
  return;
480
330
  }
481
331
  if (fileAccepted && !file.name.match(
@@ -484,13 +334,7 @@ var Attachment = ({
484
334
  "i"
485
335
  )
486
336
  )) {
487
- setToast({
488
- type: "error",
489
- title: "Tipo de archivo no permitido",
490
- listITems: [`El archivo "${file.name}" no es un tipo permitido.`],
491
- seeMore: true,
492
- time: 5
493
- });
337
+ setToast({ open: true, type: "error", mensaje: `Tipo de archivo no permitido: El archivo "${file.name}" no es un tipo permitido.` });
494
338
  return;
495
339
  }
496
340
  nuevosArchivos.push({
@@ -525,7 +369,17 @@ var Attachment = ({
525
369
  return filteredFiles;
526
370
  });
527
371
  };
528
- return /* @__PURE__ */ React4.createElement(Stack3, { spacing: 2, display: "flex", flexDirection: "column", gap: 1 }, toast && /* @__PURE__ */ React4.createElement(SCToastNotification, __spreadValues({}, toast)), /* @__PURE__ */ React4.createElement(
372
+ return /* @__PURE__ */ React4.createElement(Stack2, { spacing: 2, display: "flex", flexDirection: "column", gap: 1 }, /* @__PURE__ */ React4.createElement(
373
+ SCSnackBar,
374
+ {
375
+ openState: toast.open,
376
+ setOpenState: (v) => setToast((prev) => __spreadProps(__spreadValues({}, prev), { open: v })),
377
+ mensaje: toast.mensaje,
378
+ type: toast.type,
379
+ duration: 5e3,
380
+ position: "Center"
381
+ }
382
+ ), /* @__PURE__ */ React4.createElement(
529
383
  "input",
530
384
  {
531
385
  type: "file",
@@ -535,7 +389,7 @@ var Attachment = ({
535
389
  onChange: handleUpload
536
390
  }
537
391
  ), view === "button" && /* @__PURE__ */ React4.createElement(
538
- Stack3,
392
+ Stack2,
539
393
  {
540
394
  "data-testid": "ZonaAdjuntos",
541
395
  id: "ZonaAdjuntos",
@@ -565,7 +419,7 @@ var Attachment = ({
565
419
  }, sx)
566
420
  },
567
421
  onLoading ? /* @__PURE__ */ React4.createElement(
568
- Box3,
422
+ Box2,
569
423
  {
570
424
  display: "flex",
571
425
  alignItems: "center",
@@ -581,7 +435,7 @@ var Attachment = ({
581
435
  }
582
436
  )
583
437
  ) : /* @__PURE__ */ React4.createElement(React4.Fragment, null, /* @__PURE__ */ React4.createElement(
584
- Box3,
438
+ Box2,
585
439
  {
586
440
  display: "flex",
587
441
  bgcolor: error ? "error.50" : "primary.50",
@@ -596,7 +450,7 @@ var Attachment = ({
596
450
  }
597
451
  )
598
452
  ), /* @__PURE__ */ React4.createElement(
599
- Stack3,
453
+ Stack2,
600
454
  {
601
455
  width: "100%",
602
456
  flexDirection: compact ? "row" : "column",
@@ -605,15 +459,15 @@ var Attachment = ({
605
459
  gap: 1
606
460
  },
607
461
  /* @__PURE__ */ React4.createElement(
608
- Stack3,
462
+ Stack2,
609
463
  {
610
464
  flexDirection: "column",
611
465
  alignItems: compact ? "start" : "center",
612
466
  gap: 0.5
613
467
  },
614
- /* @__PURE__ */ React4.createElement(Typography3, { variant: "body2", color: "text.primary" }, "Arrastrar o adjuntar archivos"),
468
+ /* @__PURE__ */ React4.createElement(Typography2, { variant: "body2", color: "text.primary" }, "Arrastrar o adjuntar archivos"),
615
469
  /* @__PURE__ */ React4.createElement(
616
- Typography3,
470
+ Typography2,
617
471
  {
618
472
  variant: "caption",
619
473
  color: error ? "error" : "text.secondary",
@@ -626,7 +480,7 @@ var Attachment = ({
626
480
  )
627
481
  ),
628
482
  /* @__PURE__ */ React4.createElement(
629
- Button3,
483
+ Button2,
630
484
  {
631
485
  variant: "text",
632
486
  color: "primary",
@@ -637,7 +491,7 @@ var Attachment = ({
637
491
  )
638
492
  ))
639
493
  ), files.length > 0 && /* @__PURE__ */ React4.createElement(
640
- Stack3,
494
+ Stack2,
641
495
  {
642
496
  "data-testid": "ContenedorArchivosAdjuntos",
643
497
  id: "ContenedorArchivosAdjuntos",
@@ -651,7 +505,7 @@ var Attachment = ({
651
505
  spacing: 1
652
506
  },
653
507
  files.map((file) => /* @__PURE__ */ React4.createElement(
654
- Stack3,
508
+ Stack2,
655
509
  {
656
510
  height: 46,
657
511
  key: file.name + (file.uploadError ? "_error" : ""),
@@ -668,14 +522,14 @@ var Attachment = ({
668
522
  }
669
523
  }
670
524
  },
671
- /* @__PURE__ */ React4.createElement(Stack3, { direction: "row", alignItems: "center", gap: 1, width: "100%" }, iconFileItem ? /* @__PURE__ */ React4.createElement(SvgIcon, { color: file.uploadError ? "error" : "primary", fontSize: "small", component: IconFileItem }) : /* @__PURE__ */ React4.createElement(
525
+ /* @__PURE__ */ React4.createElement(Stack2, { direction: "row", alignItems: "center", gap: 1, width: "100%" }, iconFileItem ? /* @__PURE__ */ React4.createElement(SvgIcon, { color: file.uploadError ? "error" : "primary", fontSize: "small", component: IconFileItem }) : /* @__PURE__ */ React4.createElement(
672
526
  UploadFileOutlined,
673
527
  {
674
528
  color: file.uploadError ? "error" : "primary",
675
529
  fontSize: "small"
676
530
  }
677
- ), /* @__PURE__ */ React4.createElement(Stack3, { width: "100%" }, /* @__PURE__ */ React4.createElement(
678
- Typography3,
531
+ ), /* @__PURE__ */ React4.createElement(Stack2, { width: "100%" }, /* @__PURE__ */ React4.createElement(
532
+ Typography2,
679
533
  {
680
534
  variant: "body2",
681
535
  color: "text.primary",
@@ -686,7 +540,7 @@ var Attachment = ({
686
540
  },
687
541
  file.name
688
542
  ), /* @__PURE__ */ React4.createElement(
689
- Typography3,
543
+ Typography2,
690
544
  {
691
545
  variant: "caption",
692
546
  color: file.uploadError ? "error" : "text.secondary"
@@ -694,7 +548,7 @@ var Attachment = ({
694
548
  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}`
695
549
  ))),
696
550
  /* @__PURE__ */ React4.createElement(Tooltip, { title: "Descargar" }, /* @__PURE__ */ React4.createElement(
697
- IconButton3,
551
+ IconButton2,
698
552
  {
699
553
  size: "small",
700
554
  onClick: () => downloadAction == null ? void 0 : downloadAction(file.name),
@@ -704,7 +558,7 @@ var Attachment = ({
704
558
  /* @__PURE__ */ React4.createElement(FileDownload, { fontSize: "small", color: "action" })
705
559
  )),
706
560
  view === "button" && /* @__PURE__ */ React4.createElement(Tooltip, { title: "Eliminar" }, /* @__PURE__ */ React4.createElement(
707
- IconButton3,
561
+ IconButton2,
708
562
  {
709
563
  size: "small",
710
564
  onClick: () => {
@@ -734,19 +588,9 @@ var Attachment = ({
734
588
  yield deleteAction(fileToDelete.name);
735
589
  }
736
590
  deleteFiles(fileToDelete.name);
737
- setToast({
738
- title: "Archivo eliminado",
739
- type: "success",
740
- listITems: [`El archivo "${fileToDelete.name}" fue eliminado exitosamente.`],
741
- time: 3
742
- });
591
+ setToast({ open: true, type: "success", mensaje: `El archivo "${fileToDelete.name}" fue eliminado exitosamente.` });
743
592
  } catch (error2) {
744
- setToast({
745
- title: "Error al eliminar archivo",
746
- type: "error",
747
- listITems: [`No se pudo eliminar el archivo "${fileToDelete.name}".`],
748
- time: 5
749
- });
593
+ setToast({ open: true, type: "error", mensaje: `No se pudo eliminar el archivo "${fileToDelete.name}".` });
750
594
  } finally {
751
595
  setFileToDelete(null);
752
596
  setOpenModal(false);
@@ -760,12 +604,12 @@ var Attachment = ({
760
604
  };
761
605
 
762
606
  // src/Components/Adjuntar/mobile/AdjuntarMobile.tsx
763
- import React18, { useEffect as useEffect11, useRef as useRef3, useState as useState12, useCallback as useCallback2 } from "react";
607
+ import React19, { useEffect as useEffect11, useRef as useRef3, useState as useState13, useCallback as useCallback2 } from "react";
764
608
  import Webcam from "react-webcam";
765
609
 
766
610
  // src/Components/Adjuntar/mobile/components/button.tsx
767
611
  import React5, { useMemo as useMemo2 } from "react";
768
- import { Button as Button4 } from "@mui/material";
612
+ import { Button as Button3 } from "@mui/material";
769
613
 
770
614
  // src/Components/Adjuntar/mobile/components/Utils.tsx
771
615
  import * as MuiIcons2 from "@mui/icons-material";
@@ -796,7 +640,7 @@ var AttachmentButton = ({ buttonAttachment, open, setOpen }) => {
796
640
  );
797
641
  if (!buttonAttachment) return null;
798
642
  return /* @__PURE__ */ React5.createElement(React5.Fragment, null, buttonAttachment && /* @__PURE__ */ React5.createElement(
799
- Button4,
643
+ Button3,
800
644
  {
801
645
  "data-testid": "test-buttonModal",
802
646
  color: (_a = buttonAttachment == null ? void 0 : buttonAttachment.color) != null ? _a : "primary",
@@ -822,10 +666,190 @@ import FileDownloadOutlinedIcon from "@mui/icons-material/FileDownloadOutlined";
822
666
  import * as Muicon6 from "@mui/icons-material";
823
667
 
824
668
  // src/Components/Drawer/SCDrawer.tsx
825
- import React17 from "react";
669
+ import React18 from "react";
826
670
  import { Drawer, Stack as Stack6, SwipeableDrawer, Box as Box11, Button as Button9 } from "@mui/material";
827
671
  import Grid6 from "@mui/material/Grid";
828
672
 
673
+ // src/Components/ToastNotification/SCToastNotification.tsx
674
+ import React6, { useEffect as useEffect3, useState as useState5 } from "react";
675
+ import { Stack as Stack3, LinearProgress, Divider, Box as Box3, Typography as Typography3, IconButton as IconButton3, Button as Button4 } from "@mui/material";
676
+ import { Close as Close2, InfoRounded, CheckCircleRounded, WarningRounded, ErrorRounded, KeyboardArrowDown, KeyboardArrowUp } from "@mui/icons-material";
677
+
678
+ // src/Components/ToastNotification/useProgress.ts
679
+ import { useEffect as useEffect2, useState as useState4 } from "react";
680
+ var useProgress = (timeProgress, lote) => {
681
+ const [progress, setProgress] = useState4(0);
682
+ useEffect2(() => {
683
+ const interval = setInterval(() => {
684
+ setProgress((prev) => {
685
+ if (prev >= 100) {
686
+ clearInterval(interval);
687
+ }
688
+ if (lote) {
689
+ const nextProgress = prev + lote;
690
+ return nextProgress <= 100 ? nextProgress : 100;
691
+ } else {
692
+ return prev + 1;
693
+ }
694
+ });
695
+ }, timeProgress * 10);
696
+ return () => {
697
+ clearInterval(interval);
698
+ };
699
+ }, [timeProgress, lote]);
700
+ return {
701
+ progress
702
+ };
703
+ };
704
+ var ToastProgress = (timeProgress) => {
705
+ const [progress, setProgress] = useState4(100);
706
+ useEffect2(() => {
707
+ const interval = setInterval(() => {
708
+ setProgress((prev) => {
709
+ if (prev <= 0) {
710
+ clearInterval(interval);
711
+ }
712
+ return prev - 1;
713
+ });
714
+ }, timeProgress * 10);
715
+ return () => {
716
+ clearInterval(interval);
717
+ };
718
+ }, [timeProgress]);
719
+ return {
720
+ progressToast: progress
721
+ };
722
+ };
723
+
724
+ // src/Components/ToastNotification/SCToastNotification.tsx
725
+ var SCToastNotification = (toast) => {
726
+ var _a;
727
+ const [stateOptions, setStateOptions] = useState5(true);
728
+ const [stateToast, setStateToast] = useState5(true);
729
+ const timeProgress = toast.time || 10;
730
+ const { progress } = useProgress(timeProgress);
731
+ const toastColorConfig = toast.type || "info";
732
+ const toastIconOption = {
733
+ success: /* @__PURE__ */ React6.createElement(CheckCircleRounded, { color: "success" }),
734
+ error: /* @__PURE__ */ React6.createElement(ErrorRounded, { color: "error" }),
735
+ warning: /* @__PURE__ */ React6.createElement(WarningRounded, { color: "warning" }),
736
+ info: /* @__PURE__ */ React6.createElement(InfoRounded, { color: "info" })
737
+ };
738
+ const acciones = [...toast.actions || [{ text: "Action", fn: () => {
739
+ alert("");
740
+ } }, { text: "Consultar", fn: () => {
741
+ } }]];
742
+ const ToastIconConfig = toastIconOption[toast.type];
743
+ const closeToast = () => {
744
+ setStateToast(false);
745
+ };
746
+ const toggleToastOptions = () => {
747
+ setStateOptions((prevShowOptions) => !prevShowOptions);
748
+ };
749
+ useEffect3(() => {
750
+ progress >= 100 && setStateToast(false);
751
+ }, [progress]);
752
+ return /* @__PURE__ */ React6.createElement(React6.Fragment, null, stateToast && /* @__PURE__ */ React6.createElement(
753
+ Stack3,
754
+ {
755
+ position: "fixed",
756
+ zIndex: 1400,
757
+ right: 16,
758
+ top: 16,
759
+ width: 370,
760
+ sx: {
761
+ boxShadow: (theme) => theme.shadows[8]
762
+ }
763
+ },
764
+ /* @__PURE__ */ React6.createElement(
765
+ Box3,
766
+ {
767
+ padding: 1.5,
768
+ gap: 1.5,
769
+ display: "flex",
770
+ alignItems: "center",
771
+ sx: {
772
+ backgroundColor: {
773
+ success: "success.50",
774
+ error: "error.50",
775
+ warning: "warning.50",
776
+ info: "info.50"
777
+ }[toastColorConfig]
778
+ }
779
+ },
780
+ /* @__PURE__ */ React6.createElement(
781
+ Stack3,
782
+ {
783
+ p: 1,
784
+ gap: 1,
785
+ borderRadius: 50,
786
+ bgcolor: {
787
+ success: "success.100",
788
+ error: "error.100",
789
+ warning: "warning.100",
790
+ info: "info.100"
791
+ }[(_a = toast.type) != null ? _a : "info"]
792
+ },
793
+ /* @__PURE__ */ React6.createElement(Stack3, null, ToastIconConfig)
794
+ ),
795
+ /* @__PURE__ */ React6.createElement(Divider, { orientation: "vertical", flexItem: true }),
796
+ /* @__PURE__ */ React6.createElement(Stack3, { width: 285 }, /* @__PURE__ */ React6.createElement(
797
+ Stack3,
798
+ {
799
+ justifyContent: "space-between",
800
+ flexDirection: "row",
801
+ alignItems: "center"
802
+ },
803
+ /* @__PURE__ */ React6.createElement(Typography3, { variant: "subtitle2", color: "text.primary" }, toast.title),
804
+ /* @__PURE__ */ React6.createElement(
805
+ IconButton3,
806
+ {
807
+ size: "small",
808
+ "data-testid": "close-icon",
809
+ onClick: closeToast
810
+ },
811
+ /* @__PURE__ */ React6.createElement(Close2, { fontSize: "small" })
812
+ )
813
+ ), /* @__PURE__ */ React6.createElement(Stack3, { gap: 0.5 }, /* @__PURE__ */ React6.createElement(Typography3, { color: "text.primary", variant: "body2" }, toast.subtitle), !stateOptions && toast.listITems && toast.listITems.length > 0 && /* @__PURE__ */ React6.createElement(Stack3, null, toast.listITems.map((element, i) => /* @__PURE__ */ React6.createElement(Typography3, { variant: "caption", key: i }, "\u2022 ", element)))), /* @__PURE__ */ React6.createElement(Stack3, { justifyContent: "flex-end", flexDirection: "row", gap: 0.5 }, toast.actions && toast.actions.length > 0 && /* @__PURE__ */ React6.createElement(Stack3, { flexDirection: "row", gap: 0.5 }, toast.actions.map((button, index) => /* @__PURE__ */ React6.createElement(
814
+ Button4,
815
+ {
816
+ key: index,
817
+ color: toast.type === "info" ? "info" : toast.type === "success" ? "success" : toast.type === "error" ? "error" : "warning",
818
+ variant: "text",
819
+ onClick: button.fn,
820
+ disabled: button.disabled || false,
821
+ size: "small"
822
+ },
823
+ button.text.charAt(0).toUpperCase() + button.text.slice(1).toLowerCase()
824
+ ))), toast.seeMore && /* @__PURE__ */ React6.createElement(
825
+ Button4,
826
+ {
827
+ onClick: toggleToastOptions,
828
+ size: "small",
829
+ variant: "text",
830
+ color: toastColorConfig
831
+ },
832
+ stateOptions ? "Ver m\xE1s" : "Ver menos",
833
+ stateOptions ? /* @__PURE__ */ React6.createElement(KeyboardArrowDown, null) : /* @__PURE__ */ React6.createElement(KeyboardArrowUp, null)
834
+ )))
835
+ ),
836
+ /* @__PURE__ */ React6.createElement(
837
+ LinearProgress,
838
+ {
839
+ sx: {
840
+ ".MuiLinearProgress-bar": {
841
+ transition: "0.1s linear !important",
842
+ transform: "scaleX(-1)"
843
+ }
844
+ },
845
+ color: toastColorConfig,
846
+ variant: "determinate",
847
+ value: 100 - progress
848
+ }
849
+ )
850
+ ));
851
+ };
852
+
829
853
  // src/Components/Drawer/Helpers/Utils.tsx
830
854
  import * as Muicon2 from "@mui/icons-material";
831
855
  var getIcon = (iconName) => {
@@ -865,7 +889,7 @@ var validateInputs = (arrayElements, onError, onSuccess, setChipFilters, setText
865
889
  };
866
890
 
867
891
  // src/Components/Drawer/Helpers/validateTypeElement.tsx
868
- import React6 from "react";
892
+ import React7 from "react";
869
893
  var COMPONENT_NAME_MAP = {
870
894
  SCtextField: "textField",
871
895
  SCtextArea: "textArea",
@@ -888,12 +912,12 @@ var isKnownComponent = (node) => {
888
912
  };
889
913
  var findInTree = (node) => {
890
914
  var _a;
891
- if (!React6.isValidElement(node)) return null;
915
+ if (!React7.isValidElement(node)) return null;
892
916
  if (isKnownComponent(node)) return node;
893
917
  const children = (_a = node.props) == null ? void 0 : _a.children;
894
918
  if (!children) return null;
895
- for (const child of React6.Children.toArray(children)) {
896
- if (React6.isValidElement(child)) {
919
+ for (const child of React7.Children.toArray(children)) {
920
+ if (React7.isValidElement(child)) {
897
921
  const found = findInTree(child);
898
922
  if (found) return found;
899
923
  }
@@ -916,11 +940,11 @@ var validateTypeElements = (element) => {
916
940
  } else if (element.typeFormat === "multiselect") {
917
941
  validation = "multiselect";
918
942
  typeElement = element;
919
- } else if (React6.isValidElement(element == null ? void 0 : element.component) && isKnownComponent(element.component)) {
943
+ } else if (React7.isValidElement(element == null ? void 0 : element.component) && isKnownComponent(element.component)) {
920
944
  const node = element.component;
921
945
  validation = resolveValidation(node);
922
946
  typeElement = node.props;
923
- } else if (React6.isValidElement(element == null ? void 0 : element.component)) {
947
+ } else if (React7.isValidElement(element == null ? void 0 : element.component)) {
924
948
  const found = findInTree(element.component);
925
949
  if (found) {
926
950
  validation = resolveValidation(found);
@@ -931,9 +955,9 @@ var validateTypeElements = (element) => {
931
955
  };
932
956
 
933
957
  // src/Components/Drawer/hooks/useDrawerState.ts
934
- import { useState as useState5, useEffect as useEffect4 } from "react";
958
+ import { useState as useState6, useEffect as useEffect4 } from "react";
935
959
  var useDrawerState = ({ open, setOpen }) => {
936
- const [drawerOpen, setDrawerOpen] = useState5(open || false);
960
+ const [drawerOpen, setDrawerOpen] = useState6(open || false);
937
961
  useEffect4(() => {
938
962
  if (open !== void 0) {
939
963
  setDrawerOpen(open);
@@ -963,10 +987,10 @@ var useDrawerState = ({ open, setOpen }) => {
963
987
  };
964
988
 
965
989
  // src/Components/Drawer/hooks/useChipFilters.ts
966
- import { useState as useState6, useEffect as useEffect5 } from "react";
990
+ import { useState as useState7, useEffect as useEffect5 } from "react";
967
991
  var useChipFilters = (arrayElements, chipFilters) => {
968
- const [stateChipFilters, setChipFilters] = useState6(false);
969
- const [textFilters, setTextFilters] = useState6([]);
992
+ const [stateChipFilters, setChipFilters] = useState7(false);
993
+ const [textFilters, setTextFilters] = useState7([]);
970
994
  useEffect5(() => {
971
995
  if (chipFilters == null ? void 0 : chipFilters.length) {
972
996
  setTextFilters([]);
@@ -1098,9 +1122,9 @@ var useChipFilters = (arrayElements, chipFilters) => {
1098
1122
  };
1099
1123
 
1100
1124
  // src/Components/Drawer/hooks/useToast.ts
1101
- import { useState as useState7 } from "react";
1125
+ import { useState as useState8 } from "react";
1102
1126
  var useToast = () => {
1103
- const [toast, setToast] = useState7(null);
1127
+ const [toast, setToast] = useState8(null);
1104
1128
  const setToastWithDelay = (toastContent) => {
1105
1129
  setToast(null);
1106
1130
  setTimeout(() => {
@@ -1160,7 +1184,7 @@ var deleteFilter = (element, shouldShowChips, setTextFilters) => {
1160
1184
  };
1161
1185
 
1162
1186
  // src/Components/Drawer/components/DrawerButton.tsx
1163
- import React7 from "react";
1187
+ import React8 from "react";
1164
1188
  import { Button as Button5, Chip } from "@mui/material";
1165
1189
  var DrawerButton = ({
1166
1190
  buttonDrawer,
@@ -1169,7 +1193,7 @@ var DrawerButton = ({
1169
1193
  var _a, _b, _c;
1170
1194
  const ButtonIcon = getIcon(buttonDrawer == null ? void 0 : buttonDrawer.icon);
1171
1195
  if ((buttonDrawer == null ? void 0 : buttonDrawer.type) === "chip") {
1172
- return /* @__PURE__ */ React7.createElement(
1196
+ return /* @__PURE__ */ React8.createElement(
1173
1197
  Chip,
1174
1198
  __spreadProps(__spreadValues({
1175
1199
  onClick: onToggle,
@@ -1177,8 +1201,8 @@ var DrawerButton = ({
1177
1201
  color: buttonDrawer == null ? void 0 : buttonDrawer.color,
1178
1202
  variant: (buttonDrawer == null ? void 0 : buttonDrawer.variant) === "contained" ? "filled" : "outlined",
1179
1203
  label: (_a = buttonDrawer == null ? void 0 : buttonDrawer.text) != null ? _a : "",
1180
- icon: (buttonDrawer == null ? void 0 : buttonDrawer.iconPosition) === "left" && ButtonIcon ? /* @__PURE__ */ React7.createElement(ButtonIcon, { fontSize: "small" }) : void 0,
1181
- deleteIcon: (buttonDrawer == null ? void 0 : buttonDrawer.iconPosition) === "right" && ButtonIcon ? /* @__PURE__ */ React7.createElement(ButtonIcon, { fontSize: "small" }) : void 0
1204
+ icon: (buttonDrawer == null ? void 0 : buttonDrawer.iconPosition) === "left" && ButtonIcon ? /* @__PURE__ */ React8.createElement(ButtonIcon, { fontSize: "small" }) : void 0,
1205
+ deleteIcon: (buttonDrawer == null ? void 0 : buttonDrawer.iconPosition) === "right" && ButtonIcon ? /* @__PURE__ */ React8.createElement(ButtonIcon, { fontSize: "small" }) : void 0
1182
1206
  }, (buttonDrawer == null ? void 0 : buttonDrawer.iconPosition) === "right" && ButtonIcon ? { onDelete: () => {
1183
1207
  } } : {}), {
1184
1208
  sx: {
@@ -1190,7 +1214,7 @@ var DrawerButton = ({
1190
1214
  })
1191
1215
  );
1192
1216
  }
1193
- return /* @__PURE__ */ React7.createElement(
1217
+ return /* @__PURE__ */ React8.createElement(
1194
1218
  Button5,
1195
1219
  {
1196
1220
  "data-testid": "test-buttonDrawer",
@@ -1199,15 +1223,15 @@ var DrawerButton = ({
1199
1223
  onClick: onToggle,
1200
1224
  size: "small",
1201
1225
  variant: (_b = buttonDrawer == null ? void 0 : buttonDrawer.variant) != null ? _b : "text",
1202
- startIcon: ((buttonDrawer == null ? void 0 : buttonDrawer.iconPosition) === "left" || !(buttonDrawer == null ? void 0 : buttonDrawer.iconPosition)) && ButtonIcon ? /* @__PURE__ */ React7.createElement(ButtonIcon, { fontSize: "small" }) : null,
1203
- endIcon: (buttonDrawer == null ? void 0 : buttonDrawer.iconPosition) === "right" && ButtonIcon ? /* @__PURE__ */ React7.createElement(ButtonIcon, { fontSize: "small" }) : null
1226
+ startIcon: ((buttonDrawer == null ? void 0 : buttonDrawer.iconPosition) === "left" || !(buttonDrawer == null ? void 0 : buttonDrawer.iconPosition)) && ButtonIcon ? /* @__PURE__ */ React8.createElement(ButtonIcon, { fontSize: "small" }) : null,
1227
+ endIcon: (buttonDrawer == null ? void 0 : buttonDrawer.iconPosition) === "right" && ButtonIcon ? /* @__PURE__ */ React8.createElement(ButtonIcon, { fontSize: "small" }) : null
1204
1228
  },
1205
1229
  (_c = buttonDrawer == null ? void 0 : buttonDrawer.text) != null ? _c : ""
1206
1230
  );
1207
1231
  };
1208
1232
 
1209
1233
  // src/Components/Drawer/components/ChipFiltersDisplay.tsx
1210
- import React8, { useRef as useRef2, useState as useState8, useEffect as useEffect6 } from "react";
1234
+ import React9, { useRef as useRef2, useState as useState9, useEffect as useEffect6 } from "react";
1211
1235
  import { Box as Box4, IconButton as IconButton4, Chip as Chip2 } from "@mui/material";
1212
1236
  import ChevronLeftIcon from "@mui/icons-material/ChevronLeft";
1213
1237
  import ChevronRightIcon from "@mui/icons-material/ChevronRight";
@@ -1216,7 +1240,7 @@ var ChipFiltersDisplay = ({
1216
1240
  onDeleteFilter
1217
1241
  }) => {
1218
1242
  const scrollRef = useRef2(null);
1219
- const [hasOverflow, setHasOverflow] = useState8(false);
1243
+ const [hasOverflow, setHasOverflow] = useState9(false);
1220
1244
  useEffect6(() => {
1221
1245
  const el = scrollRef.current;
1222
1246
  if (!el) return;
@@ -1231,7 +1255,7 @@ var ChipFiltersDisplay = ({
1231
1255
  scrollRef.current.scrollLeft += offset;
1232
1256
  }
1233
1257
  };
1234
- return /* @__PURE__ */ React8.createElement(React8.Fragment, null, (textFilters == null ? void 0 : textFilters.length) > 0 && /* @__PURE__ */ React8.createElement(Box4, { display: "flex", alignItems: "center", sx: { maxWidth: "78%" } }, hasOverflow && /* @__PURE__ */ React8.createElement(IconButton4, { onClick: () => scroll(-150), size: "small" }, /* @__PURE__ */ React8.createElement(ChevronLeftIcon, { fontSize: "small", color: "action" })), /* @__PURE__ */ React8.createElement(
1258
+ return /* @__PURE__ */ React9.createElement(React9.Fragment, null, (textFilters == null ? void 0 : textFilters.length) > 0 && /* @__PURE__ */ React9.createElement(Box4, { display: "flex", alignItems: "center", sx: { maxWidth: "78%" } }, hasOverflow && /* @__PURE__ */ React9.createElement(IconButton4, { onClick: () => scroll(-150), size: "small" }, /* @__PURE__ */ React9.createElement(ChevronLeftIcon, { fontSize: "small", color: "action" })), /* @__PURE__ */ React9.createElement(
1235
1259
  Box4,
1236
1260
  {
1237
1261
  ref: scrollRef,
@@ -1243,7 +1267,7 @@ var ChipFiltersDisplay = ({
1243
1267
  "&::-webkit-scrollbar": { display: "none" }
1244
1268
  }
1245
1269
  },
1246
- textFilters == null ? void 0 : textFilters.map((chipData, index) => /* @__PURE__ */ React8.createElement(
1270
+ textFilters == null ? void 0 : textFilters.map((chipData, index) => /* @__PURE__ */ React9.createElement(
1247
1271
  Chip2,
1248
1272
  __spreadProps(__spreadValues({
1249
1273
  key: index,
@@ -1258,15 +1282,15 @@ var ChipFiltersDisplay = ({
1258
1282
  }
1259
1283
  })
1260
1284
  ))
1261
- ), hasOverflow && /* @__PURE__ */ React8.createElement(IconButton4, { onClick: () => scroll(150), size: "small" }, /* @__PURE__ */ React8.createElement(ChevronRightIcon, { fontSize: "small", color: "action" }))));
1285
+ ), hasOverflow && /* @__PURE__ */ React9.createElement(IconButton4, { onClick: () => scroll(150), size: "small" }, /* @__PURE__ */ React9.createElement(ChevronRightIcon, { fontSize: "small", color: "action" }))));
1262
1286
  };
1263
1287
 
1264
1288
  // src/Components/Drawer/components/DrawerContent.tsx
1265
- import React14 from "react";
1289
+ import React15 from "react";
1266
1290
  import { Box as Box10, Stack as Stack5 } from "@mui/material";
1267
1291
 
1268
1292
  // src/Components/Textfield/SCTextField.tsx
1269
- import React9, { useEffect as useEffect7, useState as useState9 } from "react";
1293
+ import React10, { useEffect as useEffect7, useState as useState10 } from "react";
1270
1294
  import { FormControl, IconButton as IconButton5, InputAdornment, InputLabel, OutlinedInput, FilledInput, Popover, Input, Box as Box5, Typography as Typography4, SvgIcon as SvgIcon2, Tooltip as Tooltip2 } from "@mui/material";
1271
1295
  import Grid from "@mui/material/Grid";
1272
1296
  import { Visibility, VisibilityOff, InfoOutlined } from "@mui/icons-material";
@@ -1355,11 +1379,11 @@ var SCTextField = ({
1355
1379
  let IconInputStart;
1356
1380
  let IconInputEnd;
1357
1381
  let IconTitle;
1358
- const [showPassword, setShowPassword] = useState9(false);
1359
- const [error, setError] = useState9(false);
1360
- const [anchorInfoTitle, setAnchorInfoTitle] = useState9(null);
1382
+ const [showPassword, setShowPassword] = useState10(false);
1383
+ const [error, setError] = useState10(false);
1384
+ const [anchorInfoTitle, setAnchorInfoTitle] = useState10(null);
1361
1385
  const openInfoTitle = Boolean(anchorInfoTitle);
1362
- const [anchorInfoElement, setAnchorInfoElement] = useState9(null);
1386
+ const [anchorInfoElement, setAnchorInfoElement] = useState10(null);
1363
1387
  const openInfoElement = Boolean(anchorInfoElement);
1364
1388
  useEffect7(() => {
1365
1389
  if (error) {
@@ -1411,7 +1435,7 @@ var SCTextField = ({
1411
1435
  const handleCloseInfoElement = () => {
1412
1436
  setAnchorInfoElement(null);
1413
1437
  };
1414
- return /* @__PURE__ */ React9.createElement(Box5, { sx: { width } }, /* @__PURE__ */ React9.createElement(Grid, { container: true, alignItems: "center", mb: 1.25, gap: 0.5 }, iconTitle && IconTitle ? /* @__PURE__ */ React9.createElement(SvgIcon2, { color: "action", fontSize: "small", component: IconTitle }) : "", title ? /* @__PURE__ */ React9.createElement(Typography4, { mx: 0.5, variant: "subtitle2", color: "text.secondary" }, title) : "", infoTitle ? /* @__PURE__ */ React9.createElement(React9.Fragment, null, infoTitle.component === "popover" ? /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement(
1438
+ return /* @__PURE__ */ React10.createElement(Box5, { sx: { width } }, /* @__PURE__ */ React10.createElement(Grid, { container: true, alignItems: "center", gap: 0.5 }, iconTitle && IconTitle ? /* @__PURE__ */ React10.createElement(SvgIcon2, { color: "action", fontSize: "small", component: IconTitle }) : "", title ? /* @__PURE__ */ React10.createElement(Typography4, { mx: 0.5, variant: "subtitle2", color: "text.secondary", sx: { marginBottom: "10px" } }, title) : "", infoTitle ? /* @__PURE__ */ React10.createElement(React10.Fragment, null, infoTitle.component === "popover" ? /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(
1415
1439
  InfoOutlined,
1416
1440
  {
1417
1441
  color: "action",
@@ -1419,7 +1443,7 @@ var SCTextField = ({
1419
1443
  onMouseEnter: (event2) => handleOpenInfoTitle(event2),
1420
1444
  onMouseLeave: () => handleCloseInfoTitle()
1421
1445
  }
1422
- ), /* @__PURE__ */ React9.createElement(
1446
+ ), /* @__PURE__ */ React10.createElement(
1423
1447
  Popover,
1424
1448
  {
1425
1449
  sx: {
@@ -1441,14 +1465,14 @@ var SCTextField = ({
1441
1465
  },
1442
1466
  disableRestoreFocus: true
1443
1467
  },
1444
- /* @__PURE__ */ React9.createElement(Typography4, { p: 2 }, infoTitle.text)
1445
- )) : /* @__PURE__ */ React9.createElement(Tooltip2, { title: infoTitle.text, "data-testid": "test-infoTitle", placement: "bottom-start", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React9.createElement(
1468
+ /* @__PURE__ */ React10.createElement(Typography4, { p: 2 }, infoTitle.text)
1469
+ )) : /* @__PURE__ */ React10.createElement(Tooltip2, { title: infoTitle.text, "data-testid": "test-infoTitle", placement: "bottom-start", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React10.createElement(
1446
1470
  InfoOutlined,
1447
1471
  {
1448
1472
  color: "action",
1449
1473
  fontSize: "small"
1450
1474
  }
1451
- ))) : ""), /* @__PURE__ */ React9.createElement(Grid, { container: true, sx: { flexWrap: "nowrap", alignItems: "center" } }, /* @__PURE__ */ React9.createElement(
1475
+ ))) : ""), /* @__PURE__ */ React10.createElement(Grid, { container: true, sx: { flexWrap: "nowrap", alignItems: "center" } }, /* @__PURE__ */ React10.createElement(
1452
1476
  FormControl,
1453
1477
  {
1454
1478
  color,
@@ -1463,7 +1487,7 @@ var SCTextField = ({
1463
1487
  }
1464
1488
  }
1465
1489
  },
1466
- /* @__PURE__ */ React9.createElement(
1490
+ /* @__PURE__ */ React10.createElement(
1467
1491
  InputLabel,
1468
1492
  {
1469
1493
  "data-testid": "test-label",
@@ -1480,7 +1504,7 @@ var SCTextField = ({
1480
1504
  },
1481
1505
  label ? label : ""
1482
1506
  ),
1483
- /* @__PURE__ */ React9.createElement(
1507
+ /* @__PURE__ */ React10.createElement(
1484
1508
  InputComponent,
1485
1509
  {
1486
1510
  size: size ? size : "medium",
@@ -1496,8 +1520,8 @@ var SCTextField = ({
1496
1520
  type: !showPassword && format3 === "password" ? "password" : (format3 || "text").toUpperCase() === "INT" || (format3 || "text").toUpperCase() === "DECIMAL" ? "number" : "text",
1497
1521
  className: format3 === "password" && !showPassword ? "" : "",
1498
1522
  placeholder,
1499
- startAdornment: iconInputStart ? /* @__PURE__ */ React9.createElement(InputAdornment, { position: "start" }, IconInputStartValidation === "text" ? iconInputStart : IconInputStart ? /* @__PURE__ */ React9.createElement(IconInputStart, { fontSize: "small" }) : null) : "",
1500
- endAdornment: /* @__PURE__ */ React9.createElement(InputAdornment, { position: "end" }, format3 === "password" ? /* @__PURE__ */ React9.createElement(
1523
+ startAdornment: iconInputStart ? /* @__PURE__ */ React10.createElement(InputAdornment, { position: "start" }, IconInputStartValidation === "text" ? iconInputStart : IconInputStart ? /* @__PURE__ */ React10.createElement(IconInputStart, { fontSize: "small" }) : null) : "",
1524
+ endAdornment: /* @__PURE__ */ React10.createElement(InputAdornment, { position: "end" }, format3 === "password" ? /* @__PURE__ */ React10.createElement(
1501
1525
  IconButton5,
1502
1526
  {
1503
1527
  "aria-label": "toggle password visibility",
@@ -1505,8 +1529,8 @@ var SCTextField = ({
1505
1529
  onMouseDown: handleMouseDownPassword,
1506
1530
  edge: "end"
1507
1531
  },
1508
- showPassword ? /* @__PURE__ */ React9.createElement(VisibilityOff, null) : /* @__PURE__ */ React9.createElement(Visibility, null)
1509
- ) : iconInputEnd === void 0 && infoElement !== void 0 ? /* @__PURE__ */ React9.createElement(React9.Fragment, null, infoElement.component === "popover" ? /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement(
1532
+ showPassword ? /* @__PURE__ */ React10.createElement(VisibilityOff, null) : /* @__PURE__ */ React10.createElement(Visibility, null)
1533
+ ) : iconInputEnd === void 0 && infoElement !== void 0 ? /* @__PURE__ */ React10.createElement(React10.Fragment, null, infoElement.component === "popover" ? /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(
1510
1534
  InfoOutlined,
1511
1535
  {
1512
1536
  "data-testid": "test-infoElement",
@@ -1517,7 +1541,7 @@ var SCTextField = ({
1517
1541
  onMouseEnter: (event2) => handleOpenInfoElement(event2),
1518
1542
  onMouseLeave: () => handleCloseInfoElement()
1519
1543
  }
1520
- ), /* @__PURE__ */ React9.createElement(
1544
+ ), /* @__PURE__ */ React10.createElement(
1521
1545
  Popover,
1522
1546
  {
1523
1547
  sx: {
@@ -1539,19 +1563,19 @@ var SCTextField = ({
1539
1563
  },
1540
1564
  disableRestoreFocus: true
1541
1565
  },
1542
- /* @__PURE__ */ React9.createElement(Typography4, { "data-testid": "test-popover-text", p: 2 }, infoElement.text)
1543
- )) : /* @__PURE__ */ React9.createElement(Tooltip2, { title: infoElement.text, placement: "bottom-end", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React9.createElement(
1566
+ /* @__PURE__ */ React10.createElement(Typography4, { "data-testid": "test-popover-text", p: 2 }, infoElement.text)
1567
+ )) : /* @__PURE__ */ React10.createElement(Tooltip2, { title: infoElement.text, placement: "bottom-end", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React10.createElement(
1544
1568
  InfoOutlined,
1545
1569
  {
1546
1570
  color: "action",
1547
1571
  fontSize: "small"
1548
1572
  }
1549
- ))) : iconInputEnd !== void 0 ? IconInputEndValidation === "text" ? iconInputEnd : IconInputEnd ? /* @__PURE__ */ React9.createElement(IconInputEnd, { fontSize: "small" }) : null : ""),
1573
+ ))) : iconInputEnd !== void 0 ? IconInputEndValidation === "text" ? iconInputEnd : IconInputEnd ? /* @__PURE__ */ React10.createElement(IconInputEnd, { fontSize: "small" }) : null : ""),
1550
1574
  label: label ? label + (format3 === "password" && !showPassword ? "" : "") : "",
1551
1575
  autoComplete: format3 === "password" ? "new-password" : "off"
1552
1576
  }
1553
1577
  )
1554
- ), (iconInputEnd !== void 0 || format3 === "password") && infoElement ? /* @__PURE__ */ React9.createElement(React9.Fragment, null, infoElement.component === "popover" ? /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement(
1578
+ ), (iconInputEnd !== void 0 || format3 === "password") && infoElement ? /* @__PURE__ */ React10.createElement(React10.Fragment, null, infoElement.component === "popover" ? /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(
1555
1579
  InfoOutlined,
1556
1580
  {
1557
1581
  "data-testid": "test-infoElement",
@@ -1562,7 +1586,7 @@ var SCTextField = ({
1562
1586
  onMouseEnter: (event2) => handleOpenInfoElement(event2),
1563
1587
  onMouseLeave: handleCloseInfoElement
1564
1588
  }
1565
- ), /* @__PURE__ */ React9.createElement(
1589
+ ), /* @__PURE__ */ React10.createElement(
1566
1590
  Popover,
1567
1591
  {
1568
1592
  sx: { pointerEvents: "none" },
@@ -1579,8 +1603,8 @@ var SCTextField = ({
1579
1603
  },
1580
1604
  disableRestoreFocus: true
1581
1605
  },
1582
- /* @__PURE__ */ React9.createElement(Typography4, { "data-testid": "test-popover-text", p: 2 }, infoElement.text)
1583
- )) : /* @__PURE__ */ React9.createElement(Tooltip2, { title: infoElement.text, placement: "bottom-end", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React9.createElement(
1606
+ /* @__PURE__ */ React10.createElement(Typography4, { "data-testid": "test-popover-text", p: 2 }, infoElement.text)
1607
+ )) : /* @__PURE__ */ React10.createElement(Tooltip2, { title: infoElement.text, placement: "bottom-end", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React10.createElement(
1584
1608
  InfoOutlined,
1585
1609
  {
1586
1610
  sx: { marginLeft: "4px" },
@@ -1600,7 +1624,7 @@ function getIcon2(name) {
1600
1624
  }
1601
1625
 
1602
1626
  // src/Components/TextArea/SCTextArea.tsx
1603
- import React10, { useEffect as useEffect8, useState as useState10 } from "react";
1627
+ import React11, { useEffect as useEffect8, useState as useState11 } from "react";
1604
1628
  import { Typography as Typography5, Stack as Stack4, TextField, Box as Box6, Popover as Popover2, Tooltip as Tooltip3, SvgIcon as SvgIcon3, Grid as Grid2 } from "@mui/material";
1605
1629
  import { InfoOutlined as InfoOutlined2 } from "@mui/icons-material";
1606
1630
  var SCTextArea = ({
@@ -1624,9 +1648,9 @@ var SCTextArea = ({
1624
1648
  state,
1625
1649
  onBlur
1626
1650
  }) => {
1627
- const [helperCount, setHelperCount] = useState10(0);
1628
- const [stateError, setStateError] = useState10(false);
1629
- const [anchorInfoTitle, setAnchorInfoTitle] = React10.useState(null);
1651
+ const [helperCount, setHelperCount] = useState11(0);
1652
+ const [stateError, setStateError] = useState11(false);
1653
+ const [anchorInfoTitle, setAnchorInfoTitle] = React11.useState(null);
1630
1654
  const openInfoTitle = Boolean(anchorInfoTitle);
1631
1655
  useEffect8(() => {
1632
1656
  setHelperCount(state == null ? void 0 : state.length);
@@ -1650,7 +1674,7 @@ var SCTextArea = ({
1650
1674
  const handleCloseInfoTitle = () => {
1651
1675
  setAnchorInfoTitle(null);
1652
1676
  };
1653
- return /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(Box6, { sx: { width } }, /* @__PURE__ */ React10.createElement(Grid2, { container: true, sx: { alignItems: "center" }, gap: 0.5 }, iconTitle && IconTitle && /* @__PURE__ */ React10.createElement(SvgIcon3, { color: "action", fontSize: "small", component: IconTitle }), title && /* @__PURE__ */ React10.createElement(Typography5, { color: colorTitle || "text.secondary", variant: "subtitle2" }, title), infoTitle ? /* @__PURE__ */ React10.createElement(React10.Fragment, null, infoTitle.component === "popover" ? /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(
1677
+ return /* @__PURE__ */ React11.createElement(React11.Fragment, null, /* @__PURE__ */ React11.createElement(Box6, { sx: { width } }, /* @__PURE__ */ React11.createElement(Grid2, { container: true, sx: { alignItems: "center" }, gap: 0.5 }, iconTitle && IconTitle && /* @__PURE__ */ React11.createElement(SvgIcon3, { color: "action", fontSize: "small", component: IconTitle }), title && /* @__PURE__ */ React11.createElement(Typography5, { color: colorTitle || "text.secondary", variant: "subtitle2" }, title), infoTitle ? /* @__PURE__ */ React11.createElement(React11.Fragment, null, infoTitle.component === "popover" ? /* @__PURE__ */ React11.createElement(React11.Fragment, null, /* @__PURE__ */ React11.createElement(
1654
1678
  InfoOutlined2,
1655
1679
  {
1656
1680
  color: "action",
@@ -1658,7 +1682,7 @@ var SCTextArea = ({
1658
1682
  onMouseEnter: (event2) => handleOpenInfoTitle(event2),
1659
1683
  onMouseLeave: () => handleCloseInfoTitle()
1660
1684
  }
1661
- ), /* @__PURE__ */ React10.createElement(
1685
+ ), /* @__PURE__ */ React11.createElement(
1662
1686
  Popover2,
1663
1687
  {
1664
1688
  sx: { pointerEvents: "none" },
@@ -1675,14 +1699,14 @@ var SCTextArea = ({
1675
1699
  },
1676
1700
  disableRestoreFocus: true
1677
1701
  },
1678
- /* @__PURE__ */ React10.createElement(Typography5, { sx: { p: 2 } }, infoTitle.text)
1679
- )) : /* @__PURE__ */ React10.createElement(Tooltip3, { title: infoTitle.text, placement: "bottom-start", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React10.createElement(
1702
+ /* @__PURE__ */ React11.createElement(Typography5, { sx: { p: 2 } }, infoTitle.text)
1703
+ )) : /* @__PURE__ */ React11.createElement(Tooltip3, { title: infoTitle.text, placement: "bottom-start", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React11.createElement(
1680
1704
  InfoOutlined2,
1681
1705
  {
1682
1706
  color: "action",
1683
1707
  fontSize: "small"
1684
1708
  }
1685
- ))) : ""), /* @__PURE__ */ React10.createElement(Stack4, null, /* @__PURE__ */ React10.createElement(
1709
+ ))) : ""), /* @__PURE__ */ React11.createElement(Stack4, null, /* @__PURE__ */ React11.createElement(
1686
1710
  TextField,
1687
1711
  {
1688
1712
  required,
@@ -1707,7 +1731,7 @@ var SCTextArea = ({
1707
1731
  shrink: true
1708
1732
  }
1709
1733
  }
1710
- )), /* @__PURE__ */ React10.createElement(Stack4, null, /* @__PURE__ */ React10.createElement(
1734
+ )), /* @__PURE__ */ React11.createElement(Stack4, null, /* @__PURE__ */ React11.createElement(
1711
1735
  Typography5,
1712
1736
  {
1713
1737
  variant: "caption",
@@ -1721,7 +1745,7 @@ var SCTextArea = ({
1721
1745
  };
1722
1746
 
1723
1747
  // src/Components/SCSelect.tsx
1724
- import React11, { useEffect as useEffect9 } from "react";
1748
+ import React12, { useEffect as useEffect9 } from "react";
1725
1749
  import { InputLabel as InputLabel2, FormControl as FormControl2, MenuItem, SvgIcon as SvgIcon4, ListItemIcon, ListItemText, Box as Box7 } from "@mui/material";
1726
1750
  import Select from "@mui/material/Select";
1727
1751
  import * as Muicon4 from "@mui/icons-material";
@@ -1739,8 +1763,8 @@ function SCSelect({
1739
1763
  state
1740
1764
  }) {
1741
1765
  const labelContent = `<span style="color: red;">* </span>` + label;
1742
- const [prevData, setPrevData] = React11.useState(data);
1743
- const [error, setError] = React11.useState(false);
1766
+ const [prevData, setPrevData] = React12.useState(data);
1767
+ const [error, setError] = React12.useState(false);
1744
1768
  useEffect9(() => {
1745
1769
  if (error) {
1746
1770
  setTimeout(() => {
@@ -1782,7 +1806,7 @@ function SCSelect({
1782
1806
  }
1783
1807
  }
1784
1808
  };
1785
- return /* @__PURE__ */ React11.createElement(React11.Fragment, null, data && /* @__PURE__ */ React11.createElement(Box7, { sx: { width } }, /* @__PURE__ */ React11.createElement(
1809
+ return /* @__PURE__ */ React12.createElement(React12.Fragment, null, data && /* @__PURE__ */ React12.createElement(Box7, { sx: { width } }, /* @__PURE__ */ React12.createElement(
1786
1810
  FormControl2,
1787
1811
  {
1788
1812
  fullWidth: true,
@@ -1790,18 +1814,18 @@ function SCSelect({
1790
1814
  variant,
1791
1815
  sx: { background: background ? background : "transparent" }
1792
1816
  },
1793
- /* @__PURE__ */ React11.createElement(
1817
+ /* @__PURE__ */ React12.createElement(
1794
1818
  InputLabel2,
1795
1819
  {
1796
1820
  error
1797
1821
  },
1798
- required ? /* @__PURE__ */ React11.createElement("span", { dangerouslySetInnerHTML: { __html: labelContent } }) : label
1822
+ required ? /* @__PURE__ */ React12.createElement("span", { dangerouslySetInnerHTML: { __html: labelContent } }) : label
1799
1823
  ),
1800
- /* @__PURE__ */ React11.createElement(
1824
+ /* @__PURE__ */ React12.createElement(
1801
1825
  Select,
1802
1826
  {
1803
1827
  value: Array.isArray(state.hiddenValue) ? state.hiddenValue[0] || "" : state.hiddenValue != "-1" ? state.hiddenValue : "",
1804
- label: required ? /* @__PURE__ */ React11.createElement("span", { dangerouslySetInnerHTML: { __html: labelContent } }) : label,
1828
+ label: required ? /* @__PURE__ */ React12.createElement("span", { dangerouslySetInnerHTML: { __html: labelContent } }) : label,
1805
1829
  onChange: handleChange,
1806
1830
  onBlur: handleBlur,
1807
1831
  variant,
@@ -1832,19 +1856,19 @@ function SCSelect({
1832
1856
  }
1833
1857
  },
1834
1858
  data.map((option, index) => {
1835
- return /* @__PURE__ */ React11.createElement(MenuItem, { key: index, value: getItemValue(option).value }, getItemValue(option).icon != void 0 ? /* @__PURE__ */ React11.createElement(ListItemIcon, { sx: { minWidth: "10px !important" } }, /* @__PURE__ */ React11.createElement(SvgIcon4, { fontSize: "small", color: "action", component: getItemValue(option).icon })) : "", /* @__PURE__ */ React11.createElement(ListItemText, { primary: getItemValue(option).text, color: "text.primary" }));
1859
+ return /* @__PURE__ */ React12.createElement(MenuItem, { key: index, value: getItemValue(option).value }, getItemValue(option).icon != void 0 ? /* @__PURE__ */ React12.createElement(ListItemIcon, { sx: { minWidth: "10px !important" } }, /* @__PURE__ */ React12.createElement(SvgIcon4, { fontSize: "small", color: "action", component: getItemValue(option).icon })) : "", /* @__PURE__ */ React12.createElement(ListItemText, { primary: getItemValue(option).text, color: "text.primary" }));
1836
1860
  })
1837
1861
  )
1838
1862
  )));
1839
1863
  }
1840
1864
 
1841
1865
  // src/Components/SCAutocomplete.tsx
1842
- import React12, { useEffect as useEffect10, useMemo as useMemo3 } from "react";
1866
+ import React13, { useEffect as useEffect10, useMemo as useMemo3 } from "react";
1843
1867
  import { Autocomplete, Checkbox, InputAdornment as InputAdornment3, MenuItem as MenuItem2, TextField as TextField3, Avatar, Typography as Typography7, SvgIcon as SvgIcon5, ListItemIcon as ListItemIcon2, ListItemText as ListItemText2, Divider as Divider3, FormControlLabel as FormControlLabel2, IconButton as IconButton7, Chip as Chip3, Box as Box8, Button as Button7, Grid as Grid3, Popper, Paper } from "@mui/material";
1844
1868
  import { Search, Clear } from "@mui/icons-material";
1845
1869
  import * as Muicon5 from "@mui/icons-material";
1846
1870
  var StopEvent = ({ children }) => {
1847
- return /* @__PURE__ */ React12.createElement(
1871
+ return /* @__PURE__ */ React13.createElement(
1848
1872
  Box8,
1849
1873
  {
1850
1874
  onMouseDown: (e) => {
@@ -1883,11 +1907,11 @@ function SCAutocomplete({
1883
1907
  const labelContent = `<span style="color: red;">* </span>` + label;
1884
1908
  let group = "";
1885
1909
  let isSelected = false;
1886
- const [selectedOptions, setSelectedOptions] = React12.useState([]);
1887
- const [prevData, setPrevData] = React12.useState(data);
1888
- const [originalData, setOriginalData] = React12.useState(data);
1889
- const [inputValue, setInputValue] = React12.useState("");
1890
- const [isUserTyping, setIsUserTyping] = React12.useState(false);
1910
+ const [selectedOptions, setSelectedOptions] = React13.useState([]);
1911
+ const [prevData, setPrevData] = React13.useState(data);
1912
+ const [originalData, setOriginalData] = React13.useState(data);
1913
+ const [inputValue, setInputValue] = React13.useState("");
1914
+ const [isUserTyping, setIsUserTyping] = React13.useState(false);
1891
1915
  useEffect10(() => {
1892
1916
  const dataChangeValidation = JSON.stringify(prevData) === JSON.stringify(data);
1893
1917
  if (!dataChangeValidation && !isUserTyping) {
@@ -1978,15 +2002,15 @@ function SCAutocomplete({
1978
2002
  const selectedValue = typeFormat === "multiselect" ? selectedOptions : originalData.find(
1979
2003
  (item) => getItemValue(item).value === state.hiddenValue
1980
2004
  ) || null;
1981
- const [open, setOpen] = React12.useState(false);
1982
- const componentClickActiveRef = React12.useRef(false);
1983
- const listboxScrollRef = React12.useRef(null);
1984
- const containerRef = React12.useRef(null);
1985
- const [chipLimit, setChipLimit] = React12.useState(2);
1986
- const outsideChipsMeasureRef = React12.useRef(null);
1987
- const [visibleChipCount, setVisibleChipCount] = React12.useState(Number.MAX_SAFE_INTEGER);
1988
- const [popoverAnchor, setPopoverAnchor] = React12.useState(null);
1989
- const popoverTimerRef = React12.useRef(null);
2005
+ const [open, setOpen] = React13.useState(false);
2006
+ const componentClickActiveRef = React13.useRef(false);
2007
+ const listboxScrollRef = React13.useRef(null);
2008
+ const containerRef = React13.useRef(null);
2009
+ const [chipLimit, setChipLimit] = React13.useState(2);
2010
+ const outsideChipsMeasureRef = React13.useRef(null);
2011
+ const [visibleChipCount, setVisibleChipCount] = React13.useState(Number.MAX_SAFE_INTEGER);
2012
+ const [popoverAnchor, setPopoverAnchor] = React13.useState(null);
2013
+ const popoverTimerRef = React13.useRef(null);
1990
2014
  useEffect10(() => {
1991
2015
  const el = containerRef.current;
1992
2016
  if (!el) return;
@@ -2048,7 +2072,7 @@ function SCAutocomplete({
2048
2072
  return Boolean(item.onComponentClick);
2049
2073
  });
2050
2074
  }, [data, getItemValue]);
2051
- return /* @__PURE__ */ React12.createElement(React12.Fragment, null, data && /* @__PURE__ */ React12.createElement(Box8, { ref: containerRef, sx: { width } }, /* @__PURE__ */ React12.createElement(
2075
+ return /* @__PURE__ */ React13.createElement(React13.Fragment, null, data && /* @__PURE__ */ React13.createElement(Box8, { ref: containerRef, sx: { width } }, /* @__PURE__ */ React13.createElement(
2052
2076
  Autocomplete,
2053
2077
  __spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, hayOnComponentClickGlobal ? { disableCloseOnSelect: true } : {}), hayOnComponentClickGlobal ? { blurOnSelect: false } : {}), hayOnComponentClickGlobal ? { open } : {}), hayOnComponentClickGlobal ? { onOpen: () => setOpen(true) } : {}), hayOnComponentClickGlobal ? {
2054
2078
  onClose: (event2, reason) => {
@@ -2081,9 +2105,9 @@ function SCAutocomplete({
2081
2105
  limitTags: chipLimit,
2082
2106
  renderTags: chipOutside ? () => null : (value, getTagProps) => {
2083
2107
  const limit = chipLimit;
2084
- return /* @__PURE__ */ React12.createElement(React12.Fragment, null, value.slice(0, limit).map((option, index) => {
2108
+ return /* @__PURE__ */ React13.createElement(React13.Fragment, null, value.slice(0, limit).map((option, index) => {
2085
2109
  const _a = getTagProps({ index }), { key } = _a, chipProps = __objRest(_a, ["key"]);
2086
- return /* @__PURE__ */ React12.createElement(
2110
+ return /* @__PURE__ */ React13.createElement(
2087
2111
  Chip3,
2088
2112
  __spreadProps(__spreadValues({
2089
2113
  key,
@@ -2095,7 +2119,7 @@ function SCAutocomplete({
2095
2119
  style: { maxWidth: 120, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }
2096
2120
  })
2097
2121
  );
2098
- }), value.length > limit && /* @__PURE__ */ React12.createElement(Box8, { sx: { ml: 0.5, fontSize: 13, color: "#666", display: "flex", alignItems: "center" } }, `+${value.length - limit}`));
2122
+ }), value.length > limit && /* @__PURE__ */ React13.createElement(Box8, { sx: { ml: 0.5, fontSize: 13, color: "#666", display: "flex", alignItems: "center" } }, `+${value.length - limit}`));
2099
2123
  },
2100
2124
  renderOption: (props, option) => {
2101
2125
  const _a = props, { key } = _a, optionProps = __objRest(_a, ["key"]);
@@ -2114,7 +2138,7 @@ function SCAutocomplete({
2114
2138
  group = option[columnGroup];
2115
2139
  }
2116
2140
  const item = getItemValue(option);
2117
- return /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement(React12.Fragment, { key }, columnGroup ? !isValid ? /* @__PURE__ */ React12.createElement(Typography7, { color: "text.secondary", sx: { margin: "7px 16px !important", fontSize: "13px !important" } }, option[columnGroup]) : "" : "", /* @__PURE__ */ React12.createElement(
2141
+ return /* @__PURE__ */ React13.createElement(React13.Fragment, null, /* @__PURE__ */ React13.createElement(React13.Fragment, { key }, columnGroup ? !isValid ? /* @__PURE__ */ React13.createElement(Typography7, { color: "text.secondary", sx: { margin: "7px 16px !important", fontSize: "13px !important" } }, option[columnGroup]) : "" : "", /* @__PURE__ */ React13.createElement(
2118
2142
  MenuItem2,
2119
2143
  __spreadProps(__spreadValues({}, optionProps), {
2120
2144
  component: "li",
@@ -2125,8 +2149,8 @@ function SCAutocomplete({
2125
2149
  opacity: isDisabled ? 0.5 : 1
2126
2150
  }
2127
2151
  }),
2128
- typeFormat != "multiselect" && getItemValue(option).icon != void 0 ? /* @__PURE__ */ React12.createElement(ListItemIcon2, { sx: { minWidth: "10px !important" } }, /* @__PURE__ */ React12.createElement(SvgIcon5, { fontSize: "small", color: "action", component: getItemValue(option).icon })) : "",
2129
- typeFormat == "multiselect" ? /* @__PURE__ */ React12.createElement(
2152
+ typeFormat != "multiselect" && getItemValue(option).icon != void 0 ? /* @__PURE__ */ React13.createElement(ListItemIcon2, { sx: { minWidth: "10px !important" } }, /* @__PURE__ */ React13.createElement(SvgIcon5, { fontSize: "small", color: "action", component: getItemValue(option).icon })) : "",
2153
+ typeFormat == "multiselect" ? /* @__PURE__ */ React13.createElement(
2130
2154
  Checkbox,
2131
2155
  {
2132
2156
  checked: isSelected,
@@ -2135,8 +2159,8 @@ function SCAutocomplete({
2135
2159
  color: "primary"
2136
2160
  }
2137
2161
  ) : "",
2138
- /* @__PURE__ */ React12.createElement(ListItemText2, { primary: getItemValue(option).text, color: "text.primary" }),
2139
- item.component != null ? /* @__PURE__ */ React12.createElement(StopEvent, null, /* @__PURE__ */ React12.createElement(
2162
+ /* @__PURE__ */ React13.createElement(ListItemText2, { primary: getItemValue(option).text, color: "text.primary" }),
2163
+ item.component != null ? /* @__PURE__ */ React13.createElement(StopEvent, null, /* @__PURE__ */ React13.createElement(
2140
2164
  "span",
2141
2165
  {
2142
2166
  onMouseDown: (event2) => {
@@ -2167,7 +2191,7 @@ function SCAutocomplete({
2167
2191
  )) : null
2168
2192
  )));
2169
2193
  },
2170
- renderInput: (params) => /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement(
2194
+ renderInput: (params) => /* @__PURE__ */ React13.createElement(React13.Fragment, null, /* @__PURE__ */ React13.createElement(
2171
2195
  TextField3,
2172
2196
  __spreadProps(__spreadValues({
2173
2197
  sx: {
@@ -2179,10 +2203,10 @@ function SCAutocomplete({
2179
2203
  }
2180
2204
  }
2181
2205
  }, params), {
2182
- label: required ? /* @__PURE__ */ React12.createElement("span", { dangerouslySetInnerHTML: { __html: labelContent } }) : label,
2206
+ label: required ? /* @__PURE__ */ React13.createElement("span", { dangerouslySetInnerHTML: { __html: labelContent } }) : label,
2183
2207
  placeholder: selectedOptions.length == 0 ? "B\xFAsqueda" : "",
2184
2208
  InputProps: __spreadProps(__spreadValues({}, params.InputProps), {
2185
- endAdornment: /* @__PURE__ */ React12.createElement(React12.Fragment, null, deleteType == "icon" && (state.hiddenValue.toString() != "-1" && state.hiddenValue.toString() != "") ? /* @__PURE__ */ React12.createElement(IconButton7, { size: "small", onClick: cleanOptions, sx: { marginLeft: "auto", textAlign: "right", padding: "0px" } }, /* @__PURE__ */ React12.createElement(Clear, { fontSize: "small" })) : "", /* @__PURE__ */ React12.createElement(InputAdornment3, { style: { zIndex: 1, position: "relative" }, position: "end" }, /* @__PURE__ */ React12.createElement(Search, { fontSize: "small", color: "action", style: { cursor: "pointer" } })))
2209
+ endAdornment: /* @__PURE__ */ React13.createElement(React13.Fragment, null, deleteType == "icon" && (state.hiddenValue.toString() != "-1" && state.hiddenValue.toString() != "") ? /* @__PURE__ */ React13.createElement(IconButton7, { size: "small", onClick: cleanOptions, sx: { marginLeft: "auto", textAlign: "right", padding: "0px" } }, /* @__PURE__ */ React13.createElement(Clear, { fontSize: "small" })) : "", /* @__PURE__ */ React13.createElement(InputAdornment3, { style: { zIndex: 1, position: "relative" }, position: "end" }, /* @__PURE__ */ React13.createElement(Search, { fontSize: "small", color: "action", style: { cursor: "pointer" } })))
2186
2210
  })
2187
2211
  })
2188
2212
  )),
@@ -2194,8 +2218,8 @@ function SCAutocomplete({
2194
2218
  }
2195
2219
  },
2196
2220
  listbox: {
2197
- component: React12.forwardRef(function ListboxComponent(props, ref) {
2198
- return /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement(
2221
+ component: React13.forwardRef(function ListboxComponent(props, ref) {
2222
+ return /* @__PURE__ */ React13.createElement(React13.Fragment, null, /* @__PURE__ */ React13.createElement(
2199
2223
  Box8,
2200
2224
  __spreadProps(__spreadValues({
2201
2225
  ref: (node) => {
@@ -2210,9 +2234,9 @@ function SCAutocomplete({
2210
2234
  backgroundColor: "white"
2211
2235
  }, props.sx)
2212
2236
  }),
2213
- checkMassive && typeFormat == "multiselect" ? /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement(FormControlLabel2, { control: /* @__PURE__ */ React12.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__ */ React12.createElement(Divider3, null)) : "",
2237
+ checkMassive && typeFormat == "multiselect" ? /* @__PURE__ */ React13.createElement(React13.Fragment, null, /* @__PURE__ */ React13.createElement(FormControlLabel2, { control: /* @__PURE__ */ React13.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__ */ React13.createElement(Divider3, null)) : "",
2214
2238
  props.children,
2215
- deleteType == "button" || fnAplicar ? /* @__PURE__ */ React12.createElement(
2239
+ deleteType == "button" || fnAplicar ? /* @__PURE__ */ React13.createElement(
2216
2240
  Grid3,
2217
2241
  {
2218
2242
  container: true,
@@ -2227,7 +2251,7 @@ function SCAutocomplete({
2227
2251
  justifyContent: "space-between"
2228
2252
  }
2229
2253
  },
2230
- deleteType == "button" ? /* @__PURE__ */ React12.createElement(
2254
+ deleteType == "button" ? /* @__PURE__ */ React13.createElement(
2231
2255
  Button7,
2232
2256
  {
2233
2257
  variant: "text",
@@ -2241,7 +2265,7 @@ function SCAutocomplete({
2241
2265
  },
2242
2266
  "Limpiar"
2243
2267
  ) : "",
2244
- fnAplicar && /* @__PURE__ */ React12.createElement(
2268
+ fnAplicar && /* @__PURE__ */ React13.createElement(
2245
2269
  Button7,
2246
2270
  {
2247
2271
  variant: "contained",
@@ -2260,7 +2284,7 @@ function SCAutocomplete({
2260
2284
  ), chipOutside && typeFormat === "multiselect" && selectedOptions.length > 0 && (() => {
2261
2285
  const displayCount = Math.min(visibleChipCount, selectedOptions.length);
2262
2286
  const hiddenCount = selectedOptions.length - displayCount;
2263
- return /* @__PURE__ */ React12.createElement(Box8, { sx: { position: "relative", mt: 0.5 } }, /* @__PURE__ */ React12.createElement(
2287
+ return /* @__PURE__ */ React13.createElement(Box8, { sx: { position: "relative", mt: 0.5 } }, /* @__PURE__ */ React13.createElement(
2264
2288
  Box8,
2265
2289
  {
2266
2290
  ref: outsideChipsMeasureRef,
@@ -2279,17 +2303,17 @@ function SCAutocomplete({
2279
2303
  },
2280
2304
  selectedOptions.map((option) => {
2281
2305
  const avatarText = resolveAvatarText(option);
2282
- return /* @__PURE__ */ React12.createElement("div", { key: getItemValue(option).value, "data-outside-chip": true, style: { display: "inline-flex" } }, /* @__PURE__ */ React12.createElement(
2306
+ return /* @__PURE__ */ React13.createElement("div", { key: getItemValue(option).value, "data-outside-chip": true, style: { display: "inline-flex" } }, /* @__PURE__ */ React13.createElement(
2283
2307
  Chip3,
2284
2308
  __spreadValues({
2285
2309
  size: "medium",
2286
2310
  label: getItemValue(option).text
2287
- }, chipOutside.type === "avatar" ? { avatar: /* @__PURE__ */ React12.createElement(Avatar, null, avatarText) } : {})
2311
+ }, chipOutside.type === "avatar" ? { avatar: /* @__PURE__ */ React13.createElement(Avatar, null, avatarText) } : {})
2288
2312
  ));
2289
2313
  })
2290
- ), /* @__PURE__ */ React12.createElement(Box8, { sx: { display: "flex", flexWrap: "wrap", gap: 0.5, maxHeight: 36, overflow: "hidden" } }, selectedOptions.slice(0, displayCount).map((option) => {
2314
+ ), /* @__PURE__ */ React13.createElement(Box8, { sx: { display: "flex", flexWrap: "wrap", gap: 0.5, maxHeight: 36, overflow: "hidden" } }, selectedOptions.slice(0, displayCount).map((option) => {
2291
2315
  const avatarText = resolveAvatarText(option);
2292
- return /* @__PURE__ */ React12.createElement(
2316
+ return /* @__PURE__ */ React13.createElement(
2293
2317
  Chip3,
2294
2318
  __spreadValues({
2295
2319
  key: getItemValue(option).value,
@@ -2298,9 +2322,9 @@ function SCAutocomplete({
2298
2322
  variant: "filled",
2299
2323
  label: getItemValue(option).text,
2300
2324
  onDelete: () => handleDeleteChip(option)
2301
- }, chipOutside.type === "avatar" ? { avatar: /* @__PURE__ */ React12.createElement(Avatar, null, avatarText) } : {})
2325
+ }, chipOutside.type === "avatar" ? { avatar: /* @__PURE__ */ React13.createElement(Avatar, null, avatarText) } : {})
2302
2326
  );
2303
- }), hiddenCount > 0 && /* @__PURE__ */ React12.createElement(
2327
+ }), hiddenCount > 0 && /* @__PURE__ */ React13.createElement(
2304
2328
  Box8,
2305
2329
  {
2306
2330
  onMouseEnter: handlePlusEnter,
@@ -2308,7 +2332,7 @@ function SCAutocomplete({
2308
2332
  sx: { ml: 0.5, fontSize: 13, color: "#666", display: "flex", alignItems: "center", cursor: "default" }
2309
2333
  },
2310
2334
  `+${hiddenCount}`
2311
- )), /* @__PURE__ */ React12.createElement(
2335
+ )), /* @__PURE__ */ React13.createElement(
2312
2336
  Popper,
2313
2337
  {
2314
2338
  open: Boolean(popoverAnchor),
@@ -2316,7 +2340,7 @@ function SCAutocomplete({
2316
2340
  placement: "bottom-start",
2317
2341
  sx: { zIndex: 1500 }
2318
2342
  },
2319
- /* @__PURE__ */ React12.createElement(
2343
+ /* @__PURE__ */ React13.createElement(
2320
2344
  Paper,
2321
2345
  {
2322
2346
  elevation: 3,
@@ -2326,7 +2350,7 @@ function SCAutocomplete({
2326
2350
  },
2327
2351
  selectedOptions.slice(displayCount).map((option) => {
2328
2352
  const avatarText = resolveAvatarText(option);
2329
- return /* @__PURE__ */ React12.createElement(
2353
+ return /* @__PURE__ */ React13.createElement(
2330
2354
  Chip3,
2331
2355
  __spreadValues({
2332
2356
  key: getItemValue(option).value,
@@ -2335,7 +2359,7 @@ function SCAutocomplete({
2335
2359
  variant: "filled",
2336
2360
  label: getItemValue(option).text,
2337
2361
  onDelete: () => handleDeleteChip(option)
2338
- }, chipOutside.type === "avatar" ? { avatar: /* @__PURE__ */ React12.createElement(Avatar, { sx: { fontSize: avatarText.length > 1 ? "0.55rem" : "0.75rem" } }, avatarText) } : {})
2362
+ }, chipOutside.type === "avatar" ? { avatar: /* @__PURE__ */ React13.createElement(Avatar, { sx: { fontSize: avatarText.length > 1 ? "0.55rem" : "0.75rem" } }, avatarText) } : {})
2339
2363
  );
2340
2364
  })
2341
2365
  )
@@ -2344,7 +2368,7 @@ function SCAutocomplete({
2344
2368
  }
2345
2369
 
2346
2370
  // src/Components/SCDateRange.tsx
2347
- import React13 from "react";
2371
+ import React14 from "react";
2348
2372
  import { Box as Box9, InputAdornment as InputAdornment4 } from "@mui/material";
2349
2373
  import { LocalizationProvider } from "@mui/x-date-pickers/LocalizationProvider";
2350
2374
  import { AdapterDayjs } from "@mui/x-date-pickers/AdapterDayjs";
@@ -2369,7 +2393,7 @@ var SCDateRange = ({
2369
2393
  const isStartEmpty = required && !state[0];
2370
2394
  const isEndEmpty = required && !state[1];
2371
2395
  const hasError = isStartEmpty || isEndEmpty;
2372
- const [notification, setNotification] = React13.useState(false);
2396
+ const [notification, setNotification] = React14.useState(false);
2373
2397
  const handleDateChange = (newValue) => {
2374
2398
  const minDateDayjs = dayjs("2013-01-01");
2375
2399
  const convertedValue = [
@@ -2413,7 +2437,7 @@ var SCDateRange = ({
2413
2437
  setState(convertedValue);
2414
2438
  }
2415
2439
  };
2416
- return /* @__PURE__ */ React13.createElement(React13.Fragment, null, /* @__PURE__ */ React13.createElement(LocalizationProvider, { dateAdapter: AdapterDayjs, adapterLocale: "es" }, /* @__PURE__ */ React13.createElement(Box9, { sx: { width: "100%" } }, /* @__PURE__ */ React13.createElement(
2440
+ return /* @__PURE__ */ React14.createElement(React14.Fragment, null, /* @__PURE__ */ React14.createElement(LocalizationProvider, { dateAdapter: AdapterDayjs, adapterLocale: "es" }, /* @__PURE__ */ React14.createElement(Box9, { sx: { width: "100%" } }, /* @__PURE__ */ React14.createElement(
2417
2441
  DateRangePicker,
2418
2442
  {
2419
2443
  value: state,
@@ -2437,7 +2461,7 @@ var SCDateRange = ({
2437
2461
  required,
2438
2462
  error: isStart ? isStartEmpty : isEndEmpty,
2439
2463
  InputProps: {
2440
- endAdornment: /* @__PURE__ */ React13.createElement(InputAdornment4, { position: "end" }, /* @__PURE__ */ React13.createElement(
2464
+ endAdornment: /* @__PURE__ */ React14.createElement(InputAdornment4, { position: "end" }, /* @__PURE__ */ React14.createElement(
2441
2465
  InsertInvitationOutlinedIcon,
2442
2466
  {
2443
2467
  color: hasError ? "error" : "action",
@@ -2473,11 +2497,11 @@ var DrawerContent = ({ arrayElements }) => {
2473
2497
  var _a, _b, _c, _d, _e, _f;
2474
2498
  const key = `Stack_${(_a = arrayElement.type) != null ? _a : ""} ${(_b = arrayElement.label) != null ? _b : ""}${index}`;
2475
2499
  if (arrayElement.component) {
2476
- return /* @__PURE__ */ React14.createElement(Stack5, { direction: "row", alignItems: "left", gap: 1 }, arrayElement.component);
2500
+ return /* @__PURE__ */ React15.createElement(Stack5, { direction: "row", alignItems: "left", gap: 1 }, arrayElement.component);
2477
2501
  }
2478
2502
  switch (arrayElement.type) {
2479
2503
  case "textField":
2480
- return /* @__PURE__ */ React14.createElement(
2504
+ return /* @__PURE__ */ React15.createElement(
2481
2505
  SCTextField,
2482
2506
  {
2483
2507
  title: arrayElement.title,
@@ -2505,7 +2529,7 @@ var DrawerContent = ({ arrayElements }) => {
2505
2529
  }
2506
2530
  );
2507
2531
  case "textArea":
2508
- return /* @__PURE__ */ React14.createElement(
2532
+ return /* @__PURE__ */ React15.createElement(
2509
2533
  SCTextArea,
2510
2534
  {
2511
2535
  title: arrayElement.title,
@@ -2526,7 +2550,7 @@ var DrawerContent = ({ arrayElements }) => {
2526
2550
  }
2527
2551
  );
2528
2552
  case "autocomplete":
2529
- return /* @__PURE__ */ React14.createElement(
2553
+ return /* @__PURE__ */ React15.createElement(
2530
2554
  SCAutocomplete,
2531
2555
  {
2532
2556
  label: arrayElement.label,
@@ -2546,7 +2570,7 @@ var DrawerContent = ({ arrayElements }) => {
2546
2570
  }
2547
2571
  );
2548
2572
  case "select":
2549
- return /* @__PURE__ */ React14.createElement(
2573
+ return /* @__PURE__ */ React15.createElement(
2550
2574
  SCSelect,
2551
2575
  {
2552
2576
  label: arrayElement.label,
@@ -2564,7 +2588,7 @@ var DrawerContent = ({ arrayElements }) => {
2564
2588
  }
2565
2589
  );
2566
2590
  case "dateRange":
2567
- return /* @__PURE__ */ React14.createElement(
2591
+ return /* @__PURE__ */ React15.createElement(
2568
2592
  SCDateRange,
2569
2593
  {
2570
2594
  labelDateInitial: arrayElement.labelDateInitial,
@@ -2580,9 +2604,9 @@ var DrawerContent = ({ arrayElements }) => {
2580
2604
  return null;
2581
2605
  }
2582
2606
  };
2583
- return /* @__PURE__ */ React14.createElement(Stack5, { alignItems: "flex-start", height: "100%", gap: "16px", flex: 1, overflow: "auto", padding: "16px" }, arrayElements == null ? void 0 : arrayElements.map((arrayElement, index) => {
2607
+ return /* @__PURE__ */ React15.createElement(Stack5, { alignItems: "flex-start", height: "100%", gap: "16px", flex: 1, overflow: "auto", padding: "16px" }, arrayElements == null ? void 0 : arrayElements.map((arrayElement, index) => {
2584
2608
  var _a, _b;
2585
- return /* @__PURE__ */ React14.createElement(
2609
+ return /* @__PURE__ */ React15.createElement(
2586
2610
  Box10,
2587
2611
  {
2588
2612
  key: `Stack_${(_a = arrayElement.type) != null ? _a : ""} ${(_b = arrayElement.label) != null ? _b : ""}${index}`,
@@ -2594,7 +2618,7 @@ var DrawerContent = ({ arrayElements }) => {
2594
2618
  };
2595
2619
 
2596
2620
  // src/Components/Drawer/components/DrawerActions.tsx
2597
- import React15 from "react";
2621
+ import React16 from "react";
2598
2622
  import { Button as Button8 } from "@mui/material";
2599
2623
  import Grid4 from "@mui/material/Grid";
2600
2624
  var DrawerActions = ({ actions, anchor }) => {
@@ -2604,7 +2628,7 @@ var DrawerActions = ({ actions, anchor }) => {
2604
2628
  if (!Array.isArray(actions) || actions.length === 0) {
2605
2629
  return null;
2606
2630
  }
2607
- return /* @__PURE__ */ React15.createElement(
2631
+ return /* @__PURE__ */ React16.createElement(
2608
2632
  Grid4,
2609
2633
  {
2610
2634
  sx: { borderTop: 1, borderColor: "#1018403B", zIndex: 1500 },
@@ -2617,7 +2641,7 @@ var DrawerActions = ({ actions, anchor }) => {
2617
2641
  justifyContent: actions.length > 1 ? "space-between" : "flex-start",
2618
2642
  flexDirection: "row-reverse"
2619
2643
  },
2620
- actions.map((btn, index) => /* @__PURE__ */ React15.createElement(
2644
+ actions.map((btn, index) => /* @__PURE__ */ React16.createElement(
2621
2645
  Button8,
2622
2646
  {
2623
2647
  key: index,
@@ -2634,7 +2658,7 @@ var DrawerActions = ({ actions, anchor }) => {
2634
2658
  };
2635
2659
 
2636
2660
  // src/Components/Drawer/components/DrawerHeader.tsx
2637
- import React16 from "react";
2661
+ import React17 from "react";
2638
2662
  import { Typography as Typography8, IconButton as IconButton8 } from "@mui/material";
2639
2663
  import Grid5 from "@mui/material/Grid";
2640
2664
  import CloseIcon from "@mui/icons-material/Close";
@@ -2645,7 +2669,7 @@ var DrawerHeader = ({
2645
2669
  filterSideCard,
2646
2670
  type = "Drawer"
2647
2671
  }) => {
2648
- return /* @__PURE__ */ React16.createElement(
2672
+ return /* @__PURE__ */ React17.createElement(
2649
2673
  Grid5,
2650
2674
  {
2651
2675
  container: true,
@@ -2660,8 +2684,8 @@ var DrawerHeader = ({
2660
2684
  alignContent: "center"
2661
2685
  }
2662
2686
  },
2663
- /* @__PURE__ */ React16.createElement(Typography8, { variant: filterSideCard ? "body2" : "h6", color: colorTitle || "text.primary" }, title != null ? title : "Personaliza tu b\xFAsqueda aqui"),
2664
- filterSideCard ? /* @__PURE__ */ React16.createElement(React16.Fragment, null, filterSideCard) : /* @__PURE__ */ React16.createElement(IconButton8, { onClick: onClose }, /* @__PURE__ */ React16.createElement(CloseIcon, { "data-testid": "test-button-close", sx: { color: "text.primary" } }))
2687
+ /* @__PURE__ */ React17.createElement(Typography8, { variant: filterSideCard ? "body2" : "h6", color: colorTitle || "text.primary" }, title != null ? title : "Personaliza tu b\xFAsqueda aqui"),
2688
+ filterSideCard ? /* @__PURE__ */ React17.createElement(React17.Fragment, null, filterSideCard) : /* @__PURE__ */ React17.createElement(IconButton8, { onClick: onClose }, /* @__PURE__ */ React17.createElement(CloseIcon, { "data-testid": "test-button-close", sx: { color: "text.primary" } }))
2665
2689
  );
2666
2690
  };
2667
2691
 
@@ -2723,7 +2747,7 @@ function SCDrawer({
2723
2747
  ];
2724
2748
  };
2725
2749
  const drawerActions = getActions();
2726
- return /* @__PURE__ */ React17.createElement(React17.Fragment, null, toast && /* @__PURE__ */ React17.createElement(SCToastNotification, __spreadValues({}, toast)), /* @__PURE__ */ React17.createElement(
2750
+ return /* @__PURE__ */ React18.createElement(React18.Fragment, null, toast && /* @__PURE__ */ React18.createElement(SCToastNotification, __spreadValues({}, toast)), /* @__PURE__ */ React18.createElement(
2727
2751
  Grid6,
2728
2752
  {
2729
2753
  container: true,
@@ -2732,21 +2756,21 @@ function SCDrawer({
2732
2756
  alignItems: "center",
2733
2757
  sx: { width: "100%" }
2734
2758
  },
2735
- shouldShowChips && /* @__PURE__ */ React17.createElement(
2759
+ shouldShowChips && /* @__PURE__ */ React18.createElement(
2736
2760
  ChipFiltersDisplay,
2737
2761
  {
2738
2762
  textFilters,
2739
2763
  onDeleteFilter: handleDeleteFilter
2740
2764
  }
2741
2765
  ),
2742
- buttonDrawer && /* @__PURE__ */ React17.createElement(
2766
+ buttonDrawer && /* @__PURE__ */ React18.createElement(
2743
2767
  DrawerButton,
2744
2768
  {
2745
2769
  buttonDrawer,
2746
2770
  onToggle: toggleDrawer(true)
2747
2771
  }
2748
2772
  )
2749
- ), type != "Swipeable" ? /* @__PURE__ */ React17.createElement(
2773
+ ), type != "Swipeable" ? /* @__PURE__ */ React18.createElement(
2750
2774
  Drawer,
2751
2775
  {
2752
2776
  open: drawerOpen,
@@ -2784,7 +2808,7 @@ function SCDrawer({
2784
2808
  }
2785
2809
  }
2786
2810
  },
2787
- /* @__PURE__ */ React17.createElement(Stack6, { flexDirection: "column", height: "100%" }, /* @__PURE__ */ React17.createElement(
2811
+ /* @__PURE__ */ React18.createElement(Stack6, { flexDirection: "column", height: "100%" }, /* @__PURE__ */ React18.createElement(
2788
2812
  DrawerHeader,
2789
2813
  {
2790
2814
  title,
@@ -2793,8 +2817,8 @@ function SCDrawer({
2793
2817
  filterSideCard,
2794
2818
  type
2795
2819
  }
2796
- ), /* @__PURE__ */ React17.createElement(DrawerContent, { arrayElements }), /* @__PURE__ */ React17.createElement(DrawerActions, { actions: drawerActions, anchor }))
2797
- ) : /* @__PURE__ */ React17.createElement(
2820
+ ), /* @__PURE__ */ React18.createElement(DrawerContent, { arrayElements }), /* @__PURE__ */ React18.createElement(DrawerActions, { actions: drawerActions, anchor }))
2821
+ ) : /* @__PURE__ */ React18.createElement(
2798
2822
  SwipeableDrawer,
2799
2823
  {
2800
2824
  open: drawerOpen,
@@ -2822,7 +2846,7 @@ function SCDrawer({
2822
2846
  }
2823
2847
  }
2824
2848
  },
2825
- /* @__PURE__ */ React17.createElement(
2849
+ /* @__PURE__ */ React18.createElement(
2826
2850
  Box11,
2827
2851
  {
2828
2852
  sx: {
@@ -2836,7 +2860,7 @@ function SCDrawer({
2836
2860
  }
2837
2861
  }
2838
2862
  ),
2839
- /* @__PURE__ */ React17.createElement(Stack6, { flexDirection: "column", height: "100%" }, /* @__PURE__ */ React17.createElement(
2863
+ /* @__PURE__ */ React18.createElement(Stack6, { flexDirection: "column", height: "100%" }, /* @__PURE__ */ React18.createElement(
2840
2864
  DrawerHeader,
2841
2865
  {
2842
2866
  title,
@@ -2844,7 +2868,7 @@ function SCDrawer({
2844
2868
  onClose: handleDrawerClose,
2845
2869
  type
2846
2870
  }
2847
- ), /* @__PURE__ */ React17.createElement(DrawerContent, { arrayElements }), /* @__PURE__ */ React17.createElement(
2871
+ ), /* @__PURE__ */ React18.createElement(DrawerContent, { arrayElements }), /* @__PURE__ */ React18.createElement(
2848
2872
  Grid6,
2849
2873
  {
2850
2874
  sx: { zIndex: 1500 },
@@ -2857,7 +2881,7 @@ function SCDrawer({
2857
2881
  justifyContent: Array.isArray(drawerActions) && drawerActions.length > 1 ? "space-between" : "flex-end",
2858
2882
  flexDirection: "row-reverse"
2859
2883
  },
2860
- Array.isArray(drawerActions) && drawerActions.map((btn, index) => /* @__PURE__ */ React17.createElement(
2884
+ Array.isArray(drawerActions) && drawerActions.map((btn, index) => /* @__PURE__ */ React18.createElement(
2861
2885
  Button9,
2862
2886
  {
2863
2887
  key: index,
@@ -2890,13 +2914,13 @@ var AttachmentMobile = ({
2890
2914
  onFileClick
2891
2915
  }) => {
2892
2916
  const webcamRef = useRef3(null);
2893
- const [abrirCamara, setAbrirCamara] = useState12(false);
2894
- const [capturedImage, setCapturedImage] = useState12(null);
2895
- const [files, setFiles] = useState12([]);
2896
- const [fileToDelete, setFileToDelete] = useState12(null);
2897
- const [openDrawerDelete, setOpenDrawerDelete] = useState12(false);
2898
- const [toast, setToast] = useState12(null);
2899
- const [open, setOpen] = React18.useState(false);
2917
+ const [abrirCamara, setAbrirCamara] = useState13(false);
2918
+ const [capturedImage, setCapturedImage] = useState13(null);
2919
+ const [files, setFiles] = useState13([]);
2920
+ const [fileToDelete, setFileToDelete] = useState13(null);
2921
+ const [openDrawerDelete, setOpenDrawerDelete] = useState13(false);
2922
+ const [toast, setToast] = useState13({ open: false, mensaje: "", type: "success" });
2923
+ const [open, setOpen] = React19.useState(false);
2900
2924
  const toggleAttachment = (newOpen) => () => {
2901
2925
  setOpen(newOpen);
2902
2926
  };
@@ -2958,13 +2982,7 @@ var AttachmentMobile = ({
2958
2982
  );
2959
2983
  const sizeMB = file.size / (1024 * 1024);
2960
2984
  if (isDuplicateFile) {
2961
- setToast({
2962
- type: "error",
2963
- title: "Archivo duplicado",
2964
- listITems: [`El archivo "${file.name}" ya existe.`],
2965
- seeMore: true,
2966
- time: 5
2967
- });
2985
+ setToast({ open: true, type: "error", mensaje: `Archivo duplicado: El archivo "${file.name}" ya existe.` });
2968
2986
  return;
2969
2987
  }
2970
2988
  if (sizeMB > maxSize) {
@@ -2975,13 +2993,7 @@ var AttachmentMobile = ({
2975
2993
  progress: 0,
2976
2994
  uploadError: true
2977
2995
  });
2978
- setToast({
2979
- type: "error",
2980
- title: "Carga fallida",
2981
- seeMore: true,
2982
- listITems: [`El archivo "${file.name}" supera el l\xEDmite de ${maxSize}MB.`],
2983
- time: 5
2984
- });
2996
+ setToast({ open: true, type: "error", mensaje: `Carga fallida: El archivo "${file.name}" supera el l\xEDmite de ${maxSize}MB.` });
2985
2997
  return;
2986
2998
  }
2987
2999
  if (fileAccepted && !file.name.match(
@@ -2990,13 +3002,7 @@ var AttachmentMobile = ({
2990
3002
  "i"
2991
3003
  )
2992
3004
  )) {
2993
- setToast({
2994
- type: "error",
2995
- title: "Tipo de archivo no permitido",
2996
- listITems: [`El archivo "${file.name}" no es un tipo permitido.`],
2997
- seeMore: true,
2998
- time: 5
2999
- });
3005
+ setToast({ open: true, type: "error", mensaje: `Tipo de archivo no permitido: El archivo "${file.name}" no es un tipo permitido.` });
3000
3006
  return;
3001
3007
  }
3002
3008
  nuevosArchivos.push({
@@ -3036,21 +3042,9 @@ var AttachmentMobile = ({
3036
3042
  const remainingValidFiles = updatedFiles.filter((f) => !f.uploadError).map((f) => new File([], f.name, { type: f.type }));
3037
3043
  onChange(remainingValidFiles);
3038
3044
  }
3039
- setToast({
3040
- type: "success",
3041
- title: "Archivo eliminado",
3042
- listITems: [`El archivo "${fileToRemove.name}" ha sido eliminado exitosamente.`],
3043
- seeMore: true,
3044
- time: 3
3045
- });
3045
+ setToast({ open: true, type: "success", mensaje: `El archivo "${fileToRemove.name}" ha sido eliminado exitosamente.` });
3046
3046
  } catch (error) {
3047
- setToast({
3048
- type: "error",
3049
- title: "Error al eliminar",
3050
- listITems: [`No se pudo eliminar el archivo "${fileToRemove.name}".`],
3051
- seeMore: true,
3052
- time: 5
3053
- });
3047
+ setToast({ open: true, type: "error", mensaje: `No se pudo eliminar el archivo "${fileToRemove.name}".` });
3054
3048
  }
3055
3049
  });
3056
3050
  const deleteFiles = (fileName) => {
@@ -3063,12 +3057,12 @@ var AttachmentMobile = ({
3063
3057
  });
3064
3058
  };
3065
3059
  const AttachtmentActions = [
3066
- { icon: /* @__PURE__ */ React18.createElement(ImageOutlinedIcon, { type: "file", color: "primary" }), color: "primary", label: "Galer\xEDa", onClick: () => {
3060
+ { icon: /* @__PURE__ */ React19.createElement(ImageOutlinedIcon, { type: "file", color: "primary" }), color: "primary", label: "Galer\xEDa", onClick: () => {
3067
3061
  var _a;
3068
3062
  return (_a = inputRef.current) == null ? void 0 : _a.click();
3069
3063
  } },
3070
- { icon: /* @__PURE__ */ React18.createElement(PhotoCameraOutlined, { type: "file", color: "success" }), color: "success", label: "C\xE1mara", onClick: () => openCam() },
3071
- { icon: /* @__PURE__ */ React18.createElement(FolderOpenOutlined, { type: "file", color: "warning" }), color: "warning", label: "Archivos", onClick: () => {
3064
+ { icon: /* @__PURE__ */ React19.createElement(PhotoCameraOutlined, { type: "file", color: "success" }), color: "success", label: "C\xE1mara", onClick: () => openCam() },
3065
+ { icon: /* @__PURE__ */ React19.createElement(FolderOpenOutlined, { type: "file", color: "warning" }), color: "warning", label: "Archivos", onClick: () => {
3072
3066
  var _a;
3073
3067
  return (_a = inputRef.current) == null ? void 0 : _a.click();
3074
3068
  } }
@@ -3078,14 +3072,24 @@ var AttachmentMobile = ({
3078
3072
  setFiles(initialFiles);
3079
3073
  }
3080
3074
  }, []);
3081
- return /* @__PURE__ */ React18.createElement(Box12, { display: "flex", flexDirection: "column", gap: 1 }, view == "button" ? /* @__PURE__ */ React18.createElement(Box12, { display: "flex", width: "100%", justifyContent: "space-between", alignItems: "center", sx }, children, /* @__PURE__ */ React18.createElement(
3075
+ return /* @__PURE__ */ React19.createElement(Box12, { display: "flex", flexDirection: "column", gap: 1 }, /* @__PURE__ */ React19.createElement(
3076
+ SCSnackBar,
3077
+ {
3078
+ openState: toast.open,
3079
+ setOpenState: (v) => setToast((prev) => __spreadProps(__spreadValues({}, prev), { open: v })),
3080
+ mensaje: toast.mensaje,
3081
+ type: toast.type,
3082
+ duration: 5e3,
3083
+ position: "Center"
3084
+ }
3085
+ ), view == "button" ? /* @__PURE__ */ React19.createElement(Box12, { display: "flex", width: "100%", justifyContent: "space-between", alignItems: "center", sx }, children, /* @__PURE__ */ React19.createElement(
3082
3086
  AttachmentButton,
3083
3087
  {
3084
3088
  buttonAttachment,
3085
3089
  open,
3086
3090
  setOpen
3087
3091
  }
3088
- )) : "", /* @__PURE__ */ React18.createElement(CssBaseline, null), /* @__PURE__ */ React18.createElement(
3092
+ )) : "", /* @__PURE__ */ React19.createElement(CssBaseline, null), /* @__PURE__ */ React19.createElement(
3089
3093
  SwipeableDrawer2,
3090
3094
  {
3091
3095
  slotProps: {
@@ -3110,8 +3114,7 @@ var AttachmentMobile = ({
3110
3114
  onClose: toggleAttachment(false),
3111
3115
  onOpen: toggleAttachment(true)
3112
3116
  },
3113
- toast && /* @__PURE__ */ React18.createElement(SCToastNotification, __spreadValues({}, toast)),
3114
- /* @__PURE__ */ React18.createElement(Box12, { display: "flex", flexDirection: "column", alignItems: "center", p: 2, gap: 2 }, /* @__PURE__ */ React18.createElement(Box12, { display: "flex", width: "100%", justifyContent: "space-between", alignItems: "center", gap: 1, p: 1 }, /* @__PURE__ */ React18.createElement(Typography9, { variant: "h6", color: "text.primary" }, "Agrega adjuntos"), /* @__PURE__ */ React18.createElement(IconButton9, { size: "medium", onClick: toggleAttachment(false) }, /* @__PURE__ */ React18.createElement(CloseOutlined, { color: "action" }))), /* @__PURE__ */ React18.createElement(
3117
+ /* @__PURE__ */ React19.createElement(Box12, { display: "flex", flexDirection: "column", alignItems: "center", p: 2, gap: 2 }, /* @__PURE__ */ React19.createElement(Box12, { display: "flex", width: "100%", justifyContent: "space-between", alignItems: "center", gap: 1, p: 1 }, /* @__PURE__ */ React19.createElement(Typography9, { variant: "h6", color: "text.primary" }, "Agrega adjuntos"), /* @__PURE__ */ React19.createElement(IconButton9, { size: "medium", onClick: toggleAttachment(false) }, /* @__PURE__ */ React19.createElement(CloseOutlined, { color: "action" }))), /* @__PURE__ */ React19.createElement(
3115
3118
  "input",
3116
3119
  {
3117
3120
  type: "file",
@@ -3120,7 +3123,7 @@ var AttachmentMobile = ({
3120
3123
  ref: inputRef,
3121
3124
  onChange: handleUpload
3122
3125
  }
3123
- ), /* @__PURE__ */ React18.createElement(Box12, { display: "flex", justifyContent: "space-around", alignItems: "center", width: "100%", gap: 2, sx: { padding: "0px 0px 52px 0px !important" } }, AttachtmentActions.map((option, index) => /* @__PURE__ */ React18.createElement(
3126
+ ), /* @__PURE__ */ React19.createElement(Box12, { display: "flex", justifyContent: "space-around", alignItems: "center", width: "100%", gap: 2, sx: { padding: "0px 0px 52px 0px !important" } }, AttachtmentActions.map((option, index) => /* @__PURE__ */ React19.createElement(
3124
3127
  Box12,
3125
3128
  {
3126
3129
  display: "flex",
@@ -3140,7 +3143,7 @@ var AttachmentMobile = ({
3140
3143
  cursor: "pointer"
3141
3144
  }
3142
3145
  },
3143
- /* @__PURE__ */ React18.createElement(
3146
+ /* @__PURE__ */ React19.createElement(
3144
3147
  IconButton9,
3145
3148
  {
3146
3149
  sx: {
@@ -3150,9 +3153,9 @@ var AttachmentMobile = ({
3150
3153
  },
3151
3154
  option.icon
3152
3155
  ),
3153
- /* @__PURE__ */ React18.createElement(Typography9, { variant: "body2", color: "text.secondary" }, option.label)
3156
+ /* @__PURE__ */ React19.createElement(Typography9, { variant: "body2", color: "text.secondary" }, option.label)
3154
3157
  ))))
3155
- ), abrirCamara && /* @__PURE__ */ React18.createElement(React18.Fragment, null, /* @__PURE__ */ React18.createElement(CancelOutlinedIcon, { onClick: closeCam, sx: { borderRadius: "50px", height: "35px", width: "35px", zIndex: 1700, background: "white", position: "absolute", left: `calc(100% - 50px)`, bottom: `calc(100% - 50px)` } }), /* @__PURE__ */ React18.createElement(Stack7, { className: "camras" }, /* @__PURE__ */ React18.createElement(
3158
+ ), abrirCamara && /* @__PURE__ */ React19.createElement(React19.Fragment, null, /* @__PURE__ */ React19.createElement(CancelOutlinedIcon, { onClick: closeCam, sx: { borderRadius: "50px", height: "35px", width: "35px", zIndex: 1700, background: "white", position: "absolute", left: `calc(100% - 50px)`, bottom: `calc(100% - 50px)` } }), /* @__PURE__ */ React19.createElement(Stack7, { className: "camras" }, /* @__PURE__ */ React19.createElement(
3156
3159
  Webcam,
3157
3160
  {
3158
3161
  audio: false,
@@ -3176,7 +3179,7 @@ var AttachmentMobile = ({
3176
3179
  // Encima de todo
3177
3180
  }
3178
3181
  }
3179
- ), /* @__PURE__ */ React18.createElement(
3182
+ ), /* @__PURE__ */ React19.createElement(
3180
3183
  PhotoCameraIcon,
3181
3184
  {
3182
3185
  onClick: capture,
@@ -3194,7 +3197,7 @@ var AttachmentMobile = ({
3194
3197
  },
3195
3198
  fontSize: "medium"
3196
3199
  }
3197
- ))), files.length > 0 && /* @__PURE__ */ React18.createElement(
3200
+ ))), files.length > 0 && /* @__PURE__ */ React19.createElement(
3198
3201
  Stack7,
3199
3202
  {
3200
3203
  "data-testid": "ContenedorArchivosAdjuntos",
@@ -3207,7 +3210,7 @@ var AttachmentMobile = ({
3207
3210
  }),
3208
3211
  spacing: 1
3209
3212
  },
3210
- files.map((file) => /* @__PURE__ */ React18.createElement(
3213
+ files.map((file) => /* @__PURE__ */ React19.createElement(
3211
3214
  Stack7,
3212
3215
  {
3213
3216
  height: 46,
@@ -3225,7 +3228,7 @@ var AttachmentMobile = ({
3225
3228
  }
3226
3229
  }
3227
3230
  },
3228
- /* @__PURE__ */ React18.createElement(
3231
+ /* @__PURE__ */ React19.createElement(
3229
3232
  Stack7,
3230
3233
  {
3231
3234
  direction: "row",
@@ -3235,14 +3238,14 @@ var AttachmentMobile = ({
3235
3238
  onClick: () => onFileClick == null ? void 0 : onFileClick(file),
3236
3239
  sx: { cursor: onFileClick ? "pointer" : "default" }
3237
3240
  },
3238
- iconFileItem ? /* @__PURE__ */ React18.createElement(SvgIcon6, { color: file.uploadError ? "error" : "primary", fontSize: "small", component: IconFileItem }) : /* @__PURE__ */ React18.createElement(
3241
+ iconFileItem ? /* @__PURE__ */ React19.createElement(SvgIcon6, { color: file.uploadError ? "error" : "primary", fontSize: "small", component: IconFileItem }) : /* @__PURE__ */ React19.createElement(
3239
3242
  UploadFileOutlined2,
3240
3243
  {
3241
3244
  color: file.uploadError ? "error" : "primary",
3242
3245
  fontSize: "small"
3243
3246
  }
3244
3247
  ),
3245
- /* @__PURE__ */ React18.createElement(Stack7, { width: "100%" }, /* @__PURE__ */ React18.createElement(
3248
+ /* @__PURE__ */ React19.createElement(Stack7, { width: "100%" }, /* @__PURE__ */ React19.createElement(
3246
3249
  Typography9,
3247
3250
  {
3248
3251
  variant: "body2",
@@ -3253,7 +3256,7 @@ var AttachmentMobile = ({
3253
3256
  maxWidth: "310px"
3254
3257
  },
3255
3258
  file.name
3256
- ), /* @__PURE__ */ React18.createElement(
3259
+ ), /* @__PURE__ */ React19.createElement(
3257
3260
  Typography9,
3258
3261
  {
3259
3262
  variant: "caption",
@@ -3262,7 +3265,7 @@ var AttachmentMobile = ({
3262
3265
  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}`
3263
3266
  ))
3264
3267
  ),
3265
- view == "file" ? /* @__PURE__ */ React18.createElement(Tooltip4, { title: "Descargar" }, /* @__PURE__ */ React18.createElement(
3268
+ view == "file" ? /* @__PURE__ */ React19.createElement(Tooltip4, { title: "Descargar" }, /* @__PURE__ */ React19.createElement(
3266
3269
  IconButton9,
3267
3270
  {
3268
3271
  size: "small",
@@ -3270,9 +3273,9 @@ var AttachmentMobile = ({
3270
3273
  disabled: file.uploadError,
3271
3274
  "aria-label": `Descargar ${file.name}`
3272
3275
  },
3273
- /* @__PURE__ */ React18.createElement(FileDownloadOutlinedIcon, { fontSize: "small", color: "action" })
3276
+ /* @__PURE__ */ React19.createElement(FileDownloadOutlinedIcon, { fontSize: "small", color: "action" })
3274
3277
  )) : "",
3275
- view == "button" ? /* @__PURE__ */ React18.createElement(Tooltip4, { title: "Eliminar" }, /* @__PURE__ */ React18.createElement(
3278
+ view == "button" ? /* @__PURE__ */ React19.createElement(Tooltip4, { title: "Eliminar" }, /* @__PURE__ */ React19.createElement(
3276
3279
  IconButton9,
3277
3280
  {
3278
3281
  size: "small",
@@ -3282,10 +3285,10 @@ var AttachmentMobile = ({
3282
3285
  },
3283
3286
  "aria-label": `Eliminar ${file.name}`
3284
3287
  },
3285
- /* @__PURE__ */ React18.createElement(DeleteOutline2, { fontSize: "small", color: "action" })
3288
+ /* @__PURE__ */ React19.createElement(DeleteOutline2, { fontSize: "small", color: "action" })
3286
3289
  )) : ""
3287
3290
  ))
3288
- ), openDrawerDelete && /* @__PURE__ */ React18.createElement(
3291
+ ), openDrawerDelete && /* @__PURE__ */ React19.createElement(
3289
3292
  SCDrawer,
3290
3293
  {
3291
3294
  open: openDrawerDelete,
@@ -3295,7 +3298,7 @@ var AttachmentMobile = ({
3295
3298
  heightDrawer: 150,
3296
3299
  arrayElements: [
3297
3300
  {
3298
- component: /* @__PURE__ */ React18.createElement(Typography9, null, "Esta seguro de eliminar el adjunto ", /* @__PURE__ */ React18.createElement("strong", null, '"', fileToDelete == null ? void 0 : fileToDelete.name, '"'), " ")
3301
+ component: /* @__PURE__ */ React19.createElement(Typography9, null, "Esta seguro de eliminar el adjunto ", /* @__PURE__ */ React19.createElement("strong", null, '"', fileToDelete == null ? void 0 : fileToDelete.name, '"'), " ")
3299
3302
  }
3300
3303
  ],
3301
3304
  actions: [
@@ -3308,19 +3311,9 @@ var AttachmentMobile = ({
3308
3311
  yield deleteAction(fileToDelete.name);
3309
3312
  }
3310
3313
  deleteFiles(fileToDelete.name);
3311
- setToast({
3312
- title: "Archivo eliminado",
3313
- type: "success",
3314
- listITems: [`El archivo "${fileToDelete.name}" fue eliminado exitosamente.`],
3315
- time: 3
3316
- });
3314
+ setToast({ open: true, type: "success", mensaje: `El archivo "${fileToDelete.name}" fue eliminado exitosamente.` });
3317
3315
  } catch (error) {
3318
- setToast({
3319
- title: "Error al eliminar archivo",
3320
- type: "error",
3321
- listITems: [`No se pudo eliminar el archivo "${fileToDelete.name}".`],
3322
- time: 5
3323
- });
3316
+ setToast({ open: true, type: "error", mensaje: `No se pudo eliminar el archivo "${fileToDelete.name}".` });
3324
3317
  } finally {
3325
3318
  setFileToDelete(null);
3326
3319
  setOpenDrawerDelete(false);
@@ -3335,11 +3328,11 @@ var AttachmentMobile = ({
3335
3328
  };
3336
3329
 
3337
3330
  // src/Components/Calendario/Calendar.tsx
3338
- import React31, { useEffect as useEffect12, useState as useState15 } from "react";
3331
+ import React32, { useEffect as useEffect12, useState as useState16 } from "react";
3339
3332
  import { Box as Box19, CircularProgress as CircularProgress5 } from "@mui/material";
3340
3333
 
3341
3334
  // src/Components/Calendario/CalendarToolbar.tsx
3342
- import React19, { useState as useState13 } from "react";
3335
+ import React20, { useState as useState14 } from "react";
3343
3336
  import { ChevronLeft, ChevronRight, KeyboardArrowDown as KeyboardArrowDown2, EventOutlined } from "@mui/icons-material";
3344
3337
  import { Box as Box13, Chip as Chip5, IconButton as IconButton10, Menu, MenuItem as MenuItem3, Stack as Stack8, Typography as Typography10 } from "@mui/material";
3345
3338
  import dayjs2 from "dayjs";
@@ -3358,7 +3351,7 @@ var CalendarToolbar = ({
3358
3351
  onNavigate,
3359
3352
  children
3360
3353
  }) => {
3361
- const [anchorEl, setAnchorEl] = useState13(null);
3354
+ const [anchorEl, setAnchorEl] = useState14(null);
3362
3355
  const open = Boolean(anchorEl);
3363
3356
  const handleMenuOpen = (event2) => {
3364
3357
  setAnchorEl(event2.currentTarget);
@@ -3381,17 +3374,17 @@ var CalendarToolbar = ({
3381
3374
  }
3382
3375
  return labelDate.format(" DD MMMM YYYY");
3383
3376
  };
3384
- return /* @__PURE__ */ React19.createElement(Stack8, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 1.5, sx: { paddingBottom: "16px" } }, /* @__PURE__ */ React19.createElement(Stack8, { direction: "row", alignItems: "center", justifyContent: "flex-start", gap: 1.5 }, /* @__PURE__ */ React19.createElement(Box13, null, /* @__PURE__ */ React19.createElement(
3377
+ return /* @__PURE__ */ React20.createElement(Stack8, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 1.5, sx: { paddingBottom: "16px" } }, /* @__PURE__ */ React20.createElement(Stack8, { direction: "row", alignItems: "center", justifyContent: "flex-start", gap: 1.5 }, /* @__PURE__ */ React20.createElement(Box13, null, /* @__PURE__ */ React20.createElement(
3385
3378
  Chip5,
3386
3379
  {
3387
3380
  size: "medium",
3388
3381
  label: "Hoy",
3389
- icon: /* @__PURE__ */ React19.createElement(EventOutlined, { fontSize: "small" }),
3382
+ icon: /* @__PURE__ */ React20.createElement(EventOutlined, { fontSize: "small" }),
3390
3383
  color: "primary",
3391
3384
  onClick: () => onNavigate("TODAY"),
3392
3385
  variant: "standard"
3393
3386
  }
3394
- )), /* @__PURE__ */ React19.createElement(Stack8, { direction: "row", alignItems: "center", gap: 1 }, /* @__PURE__ */ React19.createElement(IconButton10, { "aria-label": "Anterior", onClick: () => onNavigate("PREV"), size: "small", color: "primary" }, /* @__PURE__ */ React19.createElement(ChevronLeft, { fontSize: "small" })), /* @__PURE__ */ React19.createElement(IconButton10, { "aria-label": "Siguiente", onClick: () => onNavigate("NEXT"), size: "small", color: "primary" }, /* @__PURE__ */ React19.createElement(ChevronRight, { fontSize: "small" })), /* @__PURE__ */ React19.createElement(Typography10, { variant: "h6", color: "primary", "data-testid": "currentDate" }, getFormattedDate()), /* @__PURE__ */ React19.createElement(IconButton10, { onClick: handleMenuOpen, size: "small", color: "primary", "aria-label": "Cambiar vista" }, /* @__PURE__ */ React19.createElement(KeyboardArrowDown2, { fontSize: "small" })), /* @__PURE__ */ React19.createElement(
3387
+ )), /* @__PURE__ */ React20.createElement(Stack8, { direction: "row", alignItems: "center", gap: 1 }, /* @__PURE__ */ React20.createElement(IconButton10, { "aria-label": "Anterior", onClick: () => onNavigate("PREV"), size: "small", color: "primary" }, /* @__PURE__ */ React20.createElement(ChevronLeft, { fontSize: "small" })), /* @__PURE__ */ React20.createElement(IconButton10, { "aria-label": "Siguiente", onClick: () => onNavigate("NEXT"), size: "small", color: "primary" }, /* @__PURE__ */ React20.createElement(ChevronRight, { fontSize: "small" })), /* @__PURE__ */ React20.createElement(Typography10, { variant: "h6", color: "primary", "data-testid": "currentDate" }, getFormattedDate()), /* @__PURE__ */ React20.createElement(IconButton10, { onClick: handleMenuOpen, size: "small", color: "primary", "aria-label": "Cambiar vista" }, /* @__PURE__ */ React20.createElement(KeyboardArrowDown2, { fontSize: "small" })), /* @__PURE__ */ React20.createElement(
3395
3388
  Menu,
3396
3389
  {
3397
3390
  anchorEl,
@@ -3400,14 +3393,14 @@ var CalendarToolbar = ({
3400
3393
  anchorOrigin: { vertical: "bottom", horizontal: "center" },
3401
3394
  transformOrigin: { vertical: "top", horizontal: "center" }
3402
3395
  },
3403
- /* @__PURE__ */ React19.createElement(MenuItem3, { onClick: () => handleViewChange("month") }, "Mes"),
3404
- /* @__PURE__ */ React19.createElement(MenuItem3, { onClick: () => handleViewChange("week") }, "Semana"),
3405
- /* @__PURE__ */ React19.createElement(MenuItem3, { onClick: () => handleViewChange("day") }, "D\xEDa")
3406
- ))), children ? /* @__PURE__ */ React19.createElement(Box13, null, children) : /* @__PURE__ */ React19.createElement(Box13, { width: "24px" }), " ");
3396
+ /* @__PURE__ */ React20.createElement(MenuItem3, { onClick: () => handleViewChange("month") }, "Mes"),
3397
+ /* @__PURE__ */ React20.createElement(MenuItem3, { onClick: () => handleViewChange("week") }, "Semana"),
3398
+ /* @__PURE__ */ React20.createElement(MenuItem3, { onClick: () => handleViewChange("day") }, "D\xEDa")
3399
+ ))), children ? /* @__PURE__ */ React20.createElement(Box13, null, children) : /* @__PURE__ */ React20.createElement(Box13, { width: "24px" }), " ");
3407
3400
  };
3408
3401
 
3409
3402
  // src/Components/Calendario/Views/MonthView.tsx
3410
- import React28 from "react";
3403
+ import React29 from "react";
3411
3404
  import { Box as Box16, Typography as Typography14, IconButton as IconButton11, Paper as Paper2, Tooltip as Tooltip6, Stack as Stack11, CircularProgress as CircularProgress2, Button as Button11 } from "@mui/material";
3412
3405
  import AddIcon from "@mui/icons-material/Add";
3413
3406
  import dayjs5 from "dayjs";
@@ -3440,10 +3433,10 @@ var stateColors = {
3440
3433
  };
3441
3434
 
3442
3435
  // src/Components/Calendario/Event.tsx
3443
- import React20 from "react";
3436
+ import React21 from "react";
3444
3437
  import { Box as Box14, Stack as Stack9, Typography as Typography11, Divider as Divider4, Popover as Popover3 } from "@mui/material";
3445
3438
  var CalendarEventCard = ({ event: event2, color, sx, onClick, onHover }) => {
3446
- const [anchorEl, setAnchorEl] = React20.useState(null);
3439
+ const [anchorEl, setAnchorEl] = React21.useState(null);
3447
3440
  const handlePopoverOpen = (event3) => {
3448
3441
  setAnchorEl(event3.currentTarget);
3449
3442
  };
@@ -3451,7 +3444,7 @@ var CalendarEventCard = ({ event: event2, color, sx, onClick, onHover }) => {
3451
3444
  setAnchorEl(null);
3452
3445
  };
3453
3446
  const open = Boolean(anchorEl);
3454
- return /* @__PURE__ */ React20.createElement(
3447
+ return /* @__PURE__ */ React21.createElement(
3455
3448
  Stack9,
3456
3449
  {
3457
3450
  direction: "row",
@@ -3472,7 +3465,7 @@ var CalendarEventCard = ({ event: event2, color, sx, onClick, onHover }) => {
3472
3465
  cursor: onClick ? "pointer" : "default"
3473
3466
  }, sx)
3474
3467
  },
3475
- /* @__PURE__ */ React20.createElement(
3468
+ /* @__PURE__ */ React21.createElement(
3476
3469
  Divider4,
3477
3470
  {
3478
3471
  orientation: "vertical",
@@ -3484,7 +3477,7 @@ var CalendarEventCard = ({ event: event2, color, sx, onClick, onHover }) => {
3484
3477
  }
3485
3478
  }
3486
3479
  ),
3487
- /* @__PURE__ */ React20.createElement(
3480
+ /* @__PURE__ */ React21.createElement(
3488
3481
  Box14,
3489
3482
  {
3490
3483
  px: 1,
@@ -3494,7 +3487,7 @@ var CalendarEventCard = ({ event: event2, color, sx, onClick, onHover }) => {
3494
3487
  display: "flex",
3495
3488
  alignItems: "center"
3496
3489
  },
3497
- /* @__PURE__ */ React20.createElement(
3490
+ /* @__PURE__ */ React21.createElement(
3498
3491
  Typography11,
3499
3492
  {
3500
3493
  color: "text.primary",
@@ -3510,7 +3503,7 @@ var CalendarEventCard = ({ event: event2, color, sx, onClick, onHover }) => {
3510
3503
  },
3511
3504
  event2.title.charAt(0).toUpperCase() + event2.title.slice(1).toLowerCase()
3512
3505
  ),
3513
- /* @__PURE__ */ React20.createElement(
3506
+ /* @__PURE__ */ React21.createElement(
3514
3507
  Popover3,
3515
3508
  {
3516
3509
  id: "mouse-over-popover",
@@ -3535,60 +3528,60 @@ var CalendarEventCard = ({ event: event2, color, sx, onClick, onHover }) => {
3535
3528
  };
3536
3529
 
3537
3530
  // src/Components/EmptyState/EmptyState.tsx
3538
- import React25 from "react";
3531
+ import React26 from "react";
3539
3532
  import { Button as Button10, Stack as Stack10, Typography as Typography12 } from "@mui/material";
3540
3533
 
3541
- // src/assets/ImgEmptyState/create.tsx
3542
- import React21 from "react";
3543
- var Create = () => {
3544
- return /* @__PURE__ */ React21.createElement("svg", { width: "45", height: "41", viewBox: "0 0 45 41", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React21.createElement("g", { "clip-path": "url(#clip0_1283_39624)" }, /* @__PURE__ */ React21.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M44.4956 13.1869C44.4386 13.8714 43.8367 14.3801 43.1514 14.3231L39.9978 14.0608C39.3124 14.0038 38.8032 13.4027 38.8602 12.7182C38.9173 12.0336 39.5191 11.525 40.2044 11.582L43.3581 11.8443C44.0434 11.9013 44.5527 12.5024 44.4956 13.1869Z", fill: "#CED1D4" }), /* @__PURE__ */ React21.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M41.0393 1.01388C41.4429 1.57002 41.3187 2.34766 40.7619 2.75078L38.099 4.6787C37.5423 5.08182 36.7637 4.95777 36.3601 4.40163C35.9565 3.84548 36.0807 3.06785 36.6375 2.66473L39.3004 0.736804C39.8572 0.333685 40.6357 0.457736 41.0393 1.01388Z", fill: "#CED1D4" }), /* @__PURE__ */ React21.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M36.6656 21.2361C36.1755 21.7179 36.1692 22.5054 36.6515 22.9949L38.9584 25.3363C39.4408 25.8258 40.2291 25.8321 40.7193 25.3503C41.2094 24.8685 41.2157 24.0811 40.7333 23.5915L38.4264 21.2502C37.9441 20.7606 37.1557 20.7543 36.6656 21.2361Z", fill: "#CED1D4" }), /* @__PURE__ */ React21.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0.504365 13.1869C0.561439 13.8714 1.16326 14.3801 1.84856 14.323L5.00224 14.0607C5.68755 14.0037 6.19683 13.4026 6.13976 12.7181C6.08268 12.0336 5.48087 11.5249 4.79556 11.5819L1.64188 11.8442C0.956574 11.9012 0.447291 12.5023 0.504365 13.1869Z", fill: "#CED1D4" }), /* @__PURE__ */ React21.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.95913 1.01431C3.55554 1.57046 3.67974 2.34809 4.23653 2.75121L6.8994 4.67914C7.45619 5.08225 8.23473 4.9582 8.63832 4.40206C9.04191 3.84592 8.91771 3.06828 8.36092 2.66516L5.69805 0.737237C5.14126 0.334118 4.36272 0.458169 3.95913 1.01431Z", fill: "#CED1D4" }), /* @__PURE__ */ React21.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.33389 21.236C8.82403 21.7178 8.83033 22.5053 8.34796 22.9949L6.04107 25.3362C5.5587 25.8257 4.77034 25.832 4.28021 25.3502C3.79008 24.8684 3.78378 24.081 4.26614 23.5914L6.57304 21.2501C7.0554 20.7605 7.84376 20.7542 8.33389 21.236Z", fill: "#CED1D4" }), /* @__PURE__ */ React21.createElement("path", { d: "M19.1448 37.3573H25.5804L25.1621 38.889C25.0636 39.2498 24.7356 39.5 24.3613 39.5H20.3638C19.9895 39.5 19.6615 39.2498 19.563 38.889L19.1448 37.3573Z", fill: "#CED1D4" }), /* @__PURE__ */ React21.createElement("path", { d: "M17.6534 35.3665C17.5381 34.8487 17.9326 34.3575 18.4637 34.3575H26.3983C26.9294 34.3575 27.3239 34.8487 27.2087 35.3665L26.9829 36.3814C26.8563 36.9504 26.351 37.3553 25.7674 37.3553H19.0946C18.511 37.3553 18.0057 36.9504 17.8791 36.3814L17.6534 35.3665Z", fill: "#CED1D4" }), /* @__PURE__ */ React21.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.85423 13.9906C8.85423 6.60807 14.935 0.652473 22.3998 0.652473C29.8646 0.652473 35.9455 6.60807 35.9455 13.9906C35.9455 17.6153 34.4759 20.9015 32.0983 23.3022C31.9627 23.4392 31.8257 23.5745 31.6935 23.7052L31.6917 23.707C30.7961 24.5922 30.1385 25.2699 29.8494 26.1116C29.7242 26.4761 29.6012 27.1915 29.4988 28.0885C29.4002 28.9527 29.3306 29.8872 29.2854 30.6281C29.2099 31.864 28.1896 32.8547 26.9266 32.8547H17.8731C16.6101 32.8547 15.5898 31.864 15.5143 30.6281C15.469 29.8872 15.3995 28.9527 15.3009 28.0885C15.1985 27.1915 15.0755 26.4761 14.9503 26.1116C14.6612 25.2699 14.0036 24.5922 13.108 23.707L13.106 23.7051C12.9739 23.5744 12.837 23.4391 12.7014 23.3022C10.3238 20.9015 8.85423 17.6153 8.85423 13.9906ZM22.3998 2.85676C16.1214 2.85676 11.0611 7.85765 11.0611 13.9906C11.0611 17.0068 12.2813 19.7437 14.2703 21.752C14.3969 21.8798 14.526 22.0075 14.6602 22.1401C14.6831 22.1627 14.7062 22.1855 14.7294 22.2085C15.5402 23.0091 16.5655 24.0215 17.0377 25.3961C17.2505 26.0156 17.3925 26.9534 17.4936 27.8388C17.5983 28.757 17.6707 29.7342 17.7171 30.4939C17.723 30.59 17.8001 30.6504 17.8731 30.6504H26.9266C26.9996 30.6504 27.0767 30.59 27.0826 30.4939C27.129 29.7342 27.2013 28.757 27.3061 27.8388C27.4072 26.9534 27.5492 26.0156 27.762 25.3961C28.2342 24.0215 29.2594 23.0091 30.0702 22.2085C30.0935 22.1855 30.1166 22.1627 30.1395 22.1401C30.2737 22.0075 30.4028 21.8798 30.5294 21.752C32.5184 19.7437 33.7386 17.0068 33.7386 13.9906C33.7386 7.85765 28.6783 2.85676 22.3998 2.85676Z", fill: "#B9BDC1" })), /* @__PURE__ */ React21.createElement("defs", null, /* @__PURE__ */ React21.createElement("clipPath", { id: "clip0_1283_39624" }, /* @__PURE__ */ React21.createElement("rect", { width: "44", height: "40", fill: "white", transform: "translate(0.5 0.5)" }))));
3545
- };
3546
-
3547
3534
  // src/assets/ImgEmptyState/empty.tsx
3548
3535
  import React22 from "react";
3549
3536
  var Empty = () => {
3550
- return /* @__PURE__ */ React22.createElement("svg", { width: "41", height: "41", viewBox: "0 0 41 41", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React22.createElement("g", { "clip-path": "url(#clip0_1283_39626)" }, /* @__PURE__ */ React22.createElement("path", { d: "M36.1351 20.9955C25.1396 25.3151 16.1875 30.5689 11.8186 30.9221L14.7134 35.4696L36.1351 20.9955Z", fill: "#CED1D4" }), /* @__PURE__ */ React22.createElement("path", { d: "M37.4531 24.9937C39.7468 28.137 42.9751 35.0522 37.4531 35.3441C34.9101 35.4058 31.3306 32.981 37.4531 24.9937Z", fill: "#CED1D4" }), /* @__PURE__ */ React22.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M25.6074 1.30001C25.1055 0.501016 24.051 0.26003 23.2522 0.761943L19.6474 3.02673C17.5114 2.68138 14.5326 2.642 12.1799 3.71891C10.8937 4.30766 9.75284 5.25155 9.09396 6.68863C8.65845 7.63849 8.46029 8.74589 8.52317 10.0159L1.2996 14.5543C0.500747 15.0562 0.260156 16.1108 0.762045 16.9098L12.7907 36.0589C13.2926 36.8579 14.3471 37.0989 15.1459 36.597L37.0985 22.8046C37.8973 22.3027 38.1379 21.2481 37.636 20.4491L25.6074 1.30001ZM2.79326 16.1347L8.88857 12.3051C8.91842 12.3953 8.95405 12.4868 8.99634 12.5777C9.70948 14.1097 11.2554 15.9861 13.7088 16.7327C16.2084 17.4934 19.3887 17.0049 23.1824 14.2981L23.3709 14.1636L22.1324 12.4273L21.9439 12.5618C18.5121 15.0104 16.0132 15.2048 14.3292 14.6924C12.5992 14.1659 11.458 12.8132 10.9295 11.6778C10.9197 11.6569 10.9072 11.6225 10.8968 11.5772C10.8595 11.4156 10.8267 11.2584 10.7981 11.1054L24.0275 2.79363L35.6048 21.2243L14.3706 34.5653L2.79326 16.1347ZM13.0675 5.65821C14.0932 5.18871 15.3429 4.98089 16.5902 4.94754L10.716 8.63821C10.7826 8.23367 10.8925 7.88269 11.0323 7.57786C11.4327 6.70447 12.1364 6.08441 13.0675 5.65821Z", fill: "#B9BDC1" }), /* @__PURE__ */ React22.createElement("path", { d: "M24.3482 14.3207C24.0493 15.6305 22.7454 16.4497 21.4358 16.1505C20.1262 15.8513 19.3069 14.547 19.6058 13.2372C19.9047 11.9274 21.2086 11.1082 22.5182 11.4074C23.8278 11.7066 24.6471 13.011 24.3482 14.3207Z", fill: "#CED1D4" })), /* @__PURE__ */ React22.createElement("defs", null, /* @__PURE__ */ React22.createElement("clipPath", { id: "clip0_1283_39626" }, /* @__PURE__ */ React22.createElement("rect", { width: "40", height: "40", fill: "white", transform: "translate(0.5 0.5)" }))));
3537
+ return /* @__PURE__ */ React22.createElement("svg", { width: "100%", height: "100%", viewBox: "0 0 41 41", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React22.createElement("g", { "clip-path": "url(#clip0_1283_39626)" }, /* @__PURE__ */ React22.createElement("path", { d: "M36.1351 20.9955C25.1396 25.3151 16.1875 30.5689 11.8186 30.9221L14.7134 35.4696L36.1351 20.9955Z", fill: "#CED1D4" }), /* @__PURE__ */ React22.createElement("path", { d: "M37.4531 24.9937C39.7468 28.137 42.9751 35.0522 37.4531 35.3441C34.9101 35.4058 31.3306 32.981 37.4531 24.9937Z", fill: "#CED1D4" }), /* @__PURE__ */ React22.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M25.6074 1.30001C25.1055 0.501016 24.051 0.26003 23.2522 0.761943L19.6474 3.02673C17.5114 2.68138 14.5326 2.642 12.1799 3.71891C10.8937 4.30766 9.75284 5.25155 9.09396 6.68863C8.65845 7.63849 8.46029 8.74589 8.52317 10.0159L1.2996 14.5543C0.500747 15.0562 0.260156 16.1108 0.762045 16.9098L12.7907 36.0589C13.2926 36.8579 14.3471 37.0989 15.1459 36.597L37.0985 22.8046C37.8973 22.3027 38.1379 21.2481 37.636 20.4491L25.6074 1.30001ZM2.79326 16.1347L8.88857 12.3051C8.91842 12.3953 8.95405 12.4868 8.99634 12.5777C9.70948 14.1097 11.2554 15.9861 13.7088 16.7327C16.2084 17.4934 19.3887 17.0049 23.1824 14.2981L23.3709 14.1636L22.1324 12.4273L21.9439 12.5618C18.5121 15.0104 16.0132 15.2048 14.3292 14.6924C12.5992 14.1659 11.458 12.8132 10.9295 11.6778C10.9197 11.6569 10.9072 11.6225 10.8968 11.5772C10.8595 11.4156 10.8267 11.2584 10.7981 11.1054L24.0275 2.79363L35.6048 21.2243L14.3706 34.5653L2.79326 16.1347ZM13.0675 5.65821C14.0932 5.18871 15.3429 4.98089 16.5902 4.94754L10.716 8.63821C10.7826 8.23367 10.8925 7.88269 11.0323 7.57786C11.4327 6.70447 12.1364 6.08441 13.0675 5.65821Z", fill: "#B9BDC1" }), /* @__PURE__ */ React22.createElement("path", { d: "M24.3482 14.3207C24.0493 15.6305 22.7454 16.4497 21.4358 16.1505C20.1262 15.8513 19.3069 14.547 19.6058 13.2372C19.9047 11.9274 21.2086 11.1082 22.5182 11.4074C23.8278 11.7066 24.6471 13.011 24.3482 14.3207Z", fill: "#CED1D4" })), /* @__PURE__ */ React22.createElement("defs", null, /* @__PURE__ */ React22.createElement("clipPath", { id: "clip0_1283_39626" }, /* @__PURE__ */ React22.createElement("rect", { width: "40", height: "40", fill: "white", transform: "translate(0.5 0.5)" }))));
3551
3538
  };
3552
3539
 
3553
3540
  // src/assets/ImgEmptyState/error.tsx
3554
3541
  import React23 from "react";
3555
3542
  var Error2 = () => {
3556
- return /* @__PURE__ */ React23.createElement("svg", { width: "41", height: "41", viewBox: "0 0 41 41", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React23.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.8035 3.2925C17.0304 3.2925 16.358 3.82772 16.1913 4.58349L14.0944 13.8188C13.8625 14.8535 14.6474 15.8412 15.7066 15.8412H25.4175C26.4764 15.8412 27.2677 14.8538 27.0297 13.8185L24.9328 4.58323C24.7608 3.82996 24.0975 3.29514 23.3264 3.2925H17.8035ZM15.9436 13.9945L17.9555 5.13336L23.1745 5.12121L25.1863 13.9945H15.9436Z", fill: "#B9BDC1" }), /* @__PURE__ */ React23.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.5449 28.1551C10.7717 28.1551 10.0993 28.6904 9.93264 29.4462L8.54048 35.6049C8.46109 35.7863 8.54048 35.6049 8.46109 35.7863H5.42145C4.91308 35.7863 4.50096 36.1984 4.50096 36.7068C4.50096 37.2152 4.91308 37.6273 5.42145 37.6273H35.5795C36.0879 37.6273 36.5 37.2152 36.5 36.7068C36.5 36.1984 36.0879 35.7863 35.5795 35.7863H32.595C32.5443 35.6284 32.5801 35.745 32.5443 35.5928L31.1121 29.4342C30.9394 28.6844 30.2672 28.1551 29.5 28.1551H11.5449ZM10.3781 35.7863L11.6854 29.9961H29.3426L30.6891 35.7863H10.3781Z", fill: "#B9BDC1" }), /* @__PURE__ */ React23.createElement("path", { d: "M13.7368 17.4381H28.0252C28.2486 17.4381 28.4434 17.5928 28.495 17.8162L30.271 25.9114C30.334 26.2094 30.1106 26.4901 29.8012 26.4901H11.6743C11.3649 26.4901 11.1358 26.1979 11.2102 25.8943L13.2727 17.799C13.3243 17.587 13.519 17.4381 13.7368 17.4381Z", fill: "#CED1D4" }));
3543
+ return /* @__PURE__ */ React23.createElement("svg", { width: "100%", height: "100%", viewBox: "0 0 41 41", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React23.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.8035 3.2925C17.0304 3.2925 16.358 3.82772 16.1913 4.58349L14.0944 13.8188C13.8625 14.8535 14.6474 15.8412 15.7066 15.8412H25.4175C26.4764 15.8412 27.2677 14.8538 27.0297 13.8185L24.9328 4.58323C24.7608 3.82996 24.0975 3.29514 23.3264 3.2925H17.8035ZM15.9436 13.9945L17.9555 5.13336L23.1745 5.12121L25.1863 13.9945H15.9436Z", fill: "#B9BDC1" }), /* @__PURE__ */ React23.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.5449 28.1551C10.7717 28.1551 10.0993 28.6904 9.93264 29.4462L8.54048 35.6049C8.46109 35.7863 8.54048 35.6049 8.46109 35.7863H5.42145C4.91308 35.7863 4.50096 36.1984 4.50096 36.7068C4.50096 37.2152 4.91308 37.6273 5.42145 37.6273H35.5795C36.0879 37.6273 36.5 37.2152 36.5 36.7068C36.5 36.1984 36.0879 35.7863 35.5795 35.7863H32.595C32.5443 35.6284 32.5801 35.745 32.5443 35.5928L31.1121 29.4342C30.9394 28.6844 30.2672 28.1551 29.5 28.1551H11.5449ZM10.3781 35.7863L11.6854 29.9961H29.3426L30.6891 35.7863H10.3781Z", fill: "#B9BDC1" }), /* @__PURE__ */ React23.createElement("path", { d: "M13.7368 17.4381H28.0252C28.2486 17.4381 28.4434 17.5928 28.495 17.8162L30.271 25.9114C30.334 26.2094 30.1106 26.4901 29.8012 26.4901H11.6743C11.3649 26.4901 11.1358 26.1979 11.2102 25.8943L13.2727 17.799C13.3243 17.587 13.519 17.4381 13.7368 17.4381Z", fill: "#CED1D4" }));
3557
3544
  };
3558
3545
 
3559
3546
  // src/assets/ImgEmptyState/search.tsx
3560
3547
  import React24 from "react";
3561
3548
  var Search2 = () => {
3562
- return /* @__PURE__ */ React24.createElement("svg", { width: "41", height: "41", viewBox: "0 0 41 41", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React24.createElement("g", { "clip-path": "url(#clip0_1283_39628)" }, /* @__PURE__ */ React24.createElement("path", { d: "M29.421 4.71198C28.943 2.92749 30.0021 1.09315 31.7865 0.61487C33.5709 0.136592 35.405 1.19549 35.883 2.97998L40.3853 19.7878C40.8633 21.5723 39.8042 23.4066 38.0198 23.8849C36.2354 24.3632 34.4013 23.3043 33.9233 21.5198L29.421 4.71198Z", fill: "#CED1D4" }), /* @__PURE__ */ React24.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0.607749 18.613C0.158895 16.9369 1.15336 15.2141 2.82895 14.7649C4.50454 14.3157 6.22674 15.3102 6.67559 16.9862L8.06043 22.1573C8.50928 23.8333 7.51482 25.5561 5.83923 26.0054C4.16364 26.4546 2.44144 25.46 1.99259 23.784L0.607749 18.613ZM3.41576 16.9561C2.95002 17.0809 2.67359 17.5598 2.79836 18.0257L4.18319 23.1967C4.30796 23.6626 4.78667 23.939 5.25242 23.8142C5.71816 23.6893 5.99459 23.2104 5.86982 22.7445L4.48499 17.5735C4.36022 17.1076 3.88151 16.8312 3.41576 16.9561Z", fill: "#B9BDC1" }), /* @__PURE__ */ React24.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M18.0672 23.7222C17.6115 24.3518 16.9814 24.8602 16.2239 25.1659L23.5692 38.9314C23.929 39.6056 23.6742 40.4438 23.0003 40.8037C22.3263 41.1635 21.4883 40.9087 21.1286 40.2346L14.2002 27.2506L6.15159 39.7788C5.73857 40.4217 4.88273 40.6079 4.24003 40.1948C3.59732 39.7816 3.41113 38.9255 3.82416 38.2826L12.4422 24.8681C11.8201 24.4937 11.2926 23.9601 10.9267 23.3057L6.9728 23.4848C6.43282 23.5092 5.94855 23.1546 5.80865 22.6324L4.48764 17.7008C4.34775 17.1786 4.5899 16.6293 5.06976 16.3804L11.2775 13.1606L11.2169 12.934C11.0764 12.4095 11.3213 11.8581 11.8046 11.6107L26.5904 4.04383C26.8999 3.88542 27.2644 3.87542 27.5822 4.01662C27.8999 4.15781 28.1369 4.43508 28.2269 4.77102L32.7303 21.5831C32.8203 21.9191 32.7537 22.2777 32.5491 22.5589C32.3445 22.8401 32.0238 23.0137 31.6766 23.0314L18.0672 23.7222ZM17.9643 23.1894C18.1495 22.8739 18.2903 22.5322 18.3806 22.1748C18.4139 22.0434 18.4403 21.9098 18.4596 21.7746C18.4048 22.1588 18.2927 22.5298 18.1297 22.876C18.0793 22.983 18.0241 23.0876 17.9643 23.1894ZM18.8739 21.375L30.1375 20.8032L26.3713 6.7432L13.6819 13.2372L14.6854 16.9834C16.5391 17.0063 18.2272 18.2517 18.7306 20.1311C18.8421 20.5473 18.8877 20.9656 18.8739 21.375ZM12.4612 17.5793C11.2373 18.3061 10.4581 19.6082 10.3898 21.0243L7.79324 21.142L6.95134 17.999L11.8877 15.4386L12.4612 17.5793ZM15.1332 23.1064C16.1692 22.8287 16.784 21.7635 16.5064 20.7272C16.2288 19.6909 15.164 19.0759 14.128 19.3536C13.092 19.6313 12.4772 20.6965 12.7547 21.7328C12.9527 22.4718 13.5511 22.9972 14.2553 23.1365C14.2923 23.1351 14.3294 23.1351 14.3667 23.1366C14.4569 23.1402 14.5456 23.1526 14.6318 23.1732C14.797 23.173 14.9652 23.1515 15.1332 23.1064Z", fill: "#B9BDC1" })), /* @__PURE__ */ React24.createElement("defs", null, /* @__PURE__ */ React24.createElement("clipPath", { id: "clip0_1283_39628" }, /* @__PURE__ */ React24.createElement("rect", { width: "40", height: "40", fill: "white", transform: "translate(0.5 0.5)" }))));
3549
+ return /* @__PURE__ */ React24.createElement("svg", { width: "100%", height: "100%", viewBox: "0 0 41 41", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React24.createElement("g", { "clip-path": "url(#clip0_1283_39628)" }, /* @__PURE__ */ React24.createElement("path", { d: "M29.421 4.71198C28.943 2.92749 30.0021 1.09315 31.7865 0.61487C33.5709 0.136592 35.405 1.19549 35.883 2.97998L40.3853 19.7878C40.8633 21.5723 39.8042 23.4066 38.0198 23.8849C36.2354 24.3632 34.4013 23.3043 33.9233 21.5198L29.421 4.71198Z", fill: "#CED1D4" }), /* @__PURE__ */ React24.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0.607749 18.613C0.158895 16.9369 1.15336 15.2141 2.82895 14.7649C4.50454 14.3157 6.22674 15.3102 6.67559 16.9862L8.06043 22.1573C8.50928 23.8333 7.51482 25.5561 5.83923 26.0054C4.16364 26.4546 2.44144 25.46 1.99259 23.784L0.607749 18.613ZM3.41576 16.9561C2.95002 17.0809 2.67359 17.5598 2.79836 18.0257L4.18319 23.1967C4.30796 23.6626 4.78667 23.939 5.25242 23.8142C5.71816 23.6893 5.99459 23.2104 5.86982 22.7445L4.48499 17.5735C4.36022 17.1076 3.88151 16.8312 3.41576 16.9561Z", fill: "#B9BDC1" }), /* @__PURE__ */ React24.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M18.0672 23.7222C17.6115 24.3518 16.9814 24.8602 16.2239 25.1659L23.5692 38.9314C23.929 39.6056 23.6742 40.4438 23.0003 40.8037C22.3263 41.1635 21.4883 40.9087 21.1286 40.2346L14.2002 27.2506L6.15159 39.7788C5.73857 40.4217 4.88273 40.6079 4.24003 40.1948C3.59732 39.7816 3.41113 38.9255 3.82416 38.2826L12.4422 24.8681C11.8201 24.4937 11.2926 23.9601 10.9267 23.3057L6.9728 23.4848C6.43282 23.5092 5.94855 23.1546 5.80865 22.6324L4.48764 17.7008C4.34775 17.1786 4.5899 16.6293 5.06976 16.3804L11.2775 13.1606L11.2169 12.934C11.0764 12.4095 11.3213 11.8581 11.8046 11.6107L26.5904 4.04383C26.8999 3.88542 27.2644 3.87542 27.5822 4.01662C27.8999 4.15781 28.1369 4.43508 28.2269 4.77102L32.7303 21.5831C32.8203 21.9191 32.7537 22.2777 32.5491 22.5589C32.3445 22.8401 32.0238 23.0137 31.6766 23.0314L18.0672 23.7222ZM17.9643 23.1894C18.1495 22.8739 18.2903 22.5322 18.3806 22.1748C18.4139 22.0434 18.4403 21.9098 18.4596 21.7746C18.4048 22.1588 18.2927 22.5298 18.1297 22.876C18.0793 22.983 18.0241 23.0876 17.9643 23.1894ZM18.8739 21.375L30.1375 20.8032L26.3713 6.7432L13.6819 13.2372L14.6854 16.9834C16.5391 17.0063 18.2272 18.2517 18.7306 20.1311C18.8421 20.5473 18.8877 20.9656 18.8739 21.375ZM12.4612 17.5793C11.2373 18.3061 10.4581 19.6082 10.3898 21.0243L7.79324 21.142L6.95134 17.999L11.8877 15.4386L12.4612 17.5793ZM15.1332 23.1064C16.1692 22.8287 16.784 21.7635 16.5064 20.7272C16.2288 19.6909 15.164 19.0759 14.128 19.3536C13.092 19.6313 12.4772 20.6965 12.7547 21.7328C12.9527 22.4718 13.5511 22.9972 14.2553 23.1365C14.2923 23.1351 14.3294 23.1351 14.3667 23.1366C14.4569 23.1402 14.5456 23.1526 14.6318 23.1732C14.797 23.173 14.9652 23.1515 15.1332 23.1064Z", fill: "#B9BDC1" })), /* @__PURE__ */ React24.createElement("defs", null, /* @__PURE__ */ React24.createElement("clipPath", { id: "clip0_1283_39628" }, /* @__PURE__ */ React24.createElement("rect", { width: "40", height: "40", fill: "white", transform: "translate(0.5 0.5)" }))));
3550
+ };
3551
+
3552
+ // src/assets/ImgEmptyState/Crear.tsx
3553
+ import React25 from "react";
3554
+ var Crear = () => {
3555
+ return /* @__PURE__ */ React25.createElement("svg", { width: "100%", height: "100%", viewBox: "0 0 71 60", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React25.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M32.8651 7.72749C33.3297 8.73403 32.8905 9.92668 31.8839 10.3913C29.95 11.2842 28.3291 12.4017 27.1797 13.9815C26.0474 15.5377 25.2507 17.7105 25.2505 20.9384C25.2504 22.047 24.3517 22.9457 23.243 22.9456C22.1344 22.9456 21.2358 22.0468 21.2358 20.9382C21.2361 17.0048 22.2237 13.9694 23.9334 11.6196C25.626 9.29313 27.9046 7.80661 30.2012 6.74635C31.2078 6.28169 32.4004 6.72096 32.8651 7.72749Z", fill: "#D9D9D9" }), /* @__PURE__ */ React25.createElement("path", { d: "Mnan nanL31.6838 57.8016C31.5923 57.3702 31.9213 56.9641 32.3623 56.9641H37.7342C38.1752 56.9641 38.5042 57.3702 38.4127 57.8016Lnan nanL38.4127 57.8016C38.1408 59.0834 37.0092 60.0002 35.6988 60.0002H34.3977C33.0874 60.0002 31.9557 59.0834 31.6838 57.8016Lnan nanZ", fill: "#B9BDC1" }), /* @__PURE__ */ React25.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M32.618 59.3541C32.5278 59.2787 32.4424 59.1976 32.3623 59.1112C32.0307 58.7535 31.7908 58.3058 31.6838 57.8016C31.5923 57.3702 31.9213 56.9641 32.3623 56.9641H37.7342C38.1752 56.9641 38.5042 57.3702 38.4127 57.8016C38.3058 58.3058 38.0658 58.7535 37.7342 59.1112C37.6542 59.1976 37.5687 59.2787 37.4785 59.3541C37.471 59.3604 37.4634 59.3667 37.4558 59.3729C36.9735 59.7676 36.3588 60.0002 35.6988 60.0002H34.3977C33.7377 60.0002 33.123 59.7676 32.6407 59.3729C32.6331 59.3667 32.6255 59.3604 32.618 59.3541Z", fill: "#B9BDC1" }), /* @__PURE__ */ React25.createElement("path", { d: "M28.0335 53.3519C27.8107 52.349 28.5738 51.3977 29.6011 51.3977H40.7778C41.8051 51.3977 42.5683 52.349 42.3454 53.3519L42.1868 54.0656C41.9419 55.1677 40.9644 55.9518 39.8354 55.9518H30.5435C29.4145 55.9518 28.437 55.1677 28.1921 54.0656L28.0335 53.3519Z", fill: "#B9BDC1" }), /* @__PURE__ */ React25.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.5254 20.5958C14.5254 9.19174 23.9064 0 35.4124 0C46.9185 0 56.2995 9.19174 56.2995 20.5958C56.2995 26.1942 54.0319 31.2695 50.3655 34.9759L48.9384 33.5642L50.3655 34.9759C50.1585 35.1851 49.9497 35.3917 49.7494 35.5899L49.7461 35.5932C48.3758 36.9492 47.4403 37.9255 47.0313 39.1176C46.8693 39.5896 46.697 40.5317 46.547 41.7784C46.4035 42.9721 46.2975 44.286 46.2239 45.402C46.0712 47.7172 44.1613 49.5864 41.7826 49.5864H29.0423C26.6636 49.5864 24.7537 47.7172 24.6009 45.402C24.5273 44.286 24.4214 42.9721 24.2778 41.7784C24.1278 40.5317 23.9555 39.5896 23.7936 39.1176C23.3845 37.9255 22.4491 36.9492 21.0788 35.5932L21.075 35.5895C20.8748 35.3914 20.6662 35.185 20.4593 34.9759C16.793 31.2695 14.5254 26.1942 14.5254 20.5958ZM35.4124 4.01465C26.0645 4.01465 18.54 11.4676 18.54 20.5958C18.54 25.086 20.3539 29.1607 23.3135 32.1525L21.9353 33.5158L23.3135 32.1525C23.504 32.3451 23.6987 32.5378 23.9026 32.7396L22.4907 34.1664L23.9026 32.7396C23.9418 32.7783 23.9815 32.8175 24.0215 32.8571C25.243 34.0642 26.8485 35.6508 27.5909 37.8146C27.9057 38.732 28.1145 40.0581 28.2637 41.299C28.4194 42.5929 28.5309 43.9862 28.6069 45.1377C28.6243 45.4015 28.8364 45.5717 29.0423 45.5717H41.7826C41.9885 45.5717 42.2006 45.4015 42.218 45.1377C42.2939 43.9862 42.4055 42.593 42.5611 41.299C42.7104 40.0581 42.9191 38.732 43.2339 37.8146C43.9764 35.6508 45.5819 34.0642 46.8033 32.8571C46.8434 32.8175 46.883 32.7783 46.9222 32.7396C47.1261 32.5378 47.3208 32.3451 47.5114 32.1525C50.4709 29.1607 52.2848 25.086 52.2848 20.5958C52.2848 11.4676 44.7603 4.01465 35.4124 4.01465Z", fill: "#B9BDC1" }), /* @__PURE__ */ React25.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M70.3394 21.106C70.2846 19.9987 69.3427 19.1455 68.2354 19.2002L63.4393 19.4373C62.332 19.492 61.4788 20.434 61.5335 21.5412C61.5883 22.6485 62.5302 23.5018 63.6375 23.447L68.4336 23.2099C69.5409 23.1552 70.3941 22.2132 70.3394 21.106Z", fill: "#D9D9D9" }), /* @__PURE__ */ React25.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M64.4519 39.4881C65.1324 38.6129 64.9746 37.3518 64.0994 36.6713L60.1598 33.608C59.2846 32.9275 58.0234 33.0853 57.3429 33.9605C56.6624 34.8356 56.8202 36.0968 57.6954 36.7773L61.6351 39.8406C62.5103 40.5211 63.7714 40.3633 64.4519 39.4881Z", fill: "#D9D9D9" }), /* @__PURE__ */ React25.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M58.6747 8.57034C57.9112 7.76654 57.9439 6.49599 58.7477 5.73249L62.366 2.29558C63.1698 1.53208 64.4404 1.56476 65.2039 2.36856C65.9673 3.17236 65.9347 4.44291 65.1309 5.20641L61.5125 8.64332C60.7087 9.40682 59.4382 9.37415 58.6747 8.57034Z", fill: "#D9D9D9" }), /* @__PURE__ */ React25.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0.0991034 21.1063C0.153837 19.9991 1.09582 19.1458 2.20309 19.2006L6.99918 19.4376C8.10644 19.4924 8.95969 20.4343 8.90495 21.5416C8.85022 22.6489 7.90823 23.5021 6.80097 23.4474L2.00488 23.2103C0.897615 23.1556 0.0443701 22.2136 0.0991034 21.1063Z", fill: "#D9D9D9" }), /* @__PURE__ */ React25.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.98659 39.4881C5.30608 38.6129 5.4639 37.3518 6.33908 36.6713L10.2787 33.608C11.1539 32.9275 12.415 33.0853 13.0955 33.9605C13.776 34.8356 13.6182 36.0968 12.7431 36.7773L8.80341 39.8406C7.92822 40.5211 6.66709 40.3633 5.98659 39.4881Z", fill: "#D9D9D9" }), /* @__PURE__ */ React25.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.7638 8.57071C12.5273 7.76691 12.4946 6.49636 11.6908 5.73286L8.07248 2.29595C7.26867 1.53245 5.99813 1.56512 5.23463 2.36893C4.47113 3.17273 4.5038 4.44328 5.3076 5.20678L8.92593 8.64368C9.72974 9.40718 11.0003 9.37451 11.7638 8.57071Z", fill: "#D9D9D9" }));
3563
3556
  };
3564
3557
 
3565
3558
  // src/Components/EmptyState/EmptyState.tsx
3566
3559
  var EmptyStateImageUrls = {
3567
- create: /* @__PURE__ */ React25.createElement(Create, null),
3568
- error: /* @__PURE__ */ React25.createElement(Error2, null),
3569
- noResult: /* @__PURE__ */ React25.createElement(Empty, null),
3570
- search: /* @__PURE__ */ React25.createElement(Search2, null)
3560
+ Crear: /* @__PURE__ */ React26.createElement(Crear, null),
3561
+ Error: /* @__PURE__ */ React26.createElement(Error2, null),
3562
+ Vacio: /* @__PURE__ */ React26.createElement(Empty, null),
3563
+ Buscar: /* @__PURE__ */ React26.createElement(Search2, null)
3571
3564
  };
3572
3565
  var DefaultIcon = ({
3573
- state = "create",
3574
- size = "large"
3566
+ state = "Crear",
3567
+ size = "Normal"
3575
3568
  }) => {
3576
3569
  const Icon = EmptyStateImageUrls[state];
3577
- const iconSize = size === "small" ? { width: "40px", height: "40px" } : { width: "60px", height: "60px" };
3578
- return /* @__PURE__ */ React25.createElement("div", null, Icon);
3570
+ const iconSize = size === "Small" ? { width: "40px", height: "40px" } : { width: "60px", height: "60px" };
3571
+ return /* @__PURE__ */ React26.createElement("div", null, Icon);
3579
3572
  };
3580
3573
  var EmptyState = ({
3581
- state = "create",
3582
- size = "large",
3574
+ state = "Crear",
3575
+ size = "Normal",
3583
3576
  title,
3584
3577
  subtitle,
3585
3578
  actions,
3586
3579
  containerHeight = "100vh",
3587
- icon = /* @__PURE__ */ React25.createElement(DefaultIcon, { state, size })
3580
+ icon = /* @__PURE__ */ React26.createElement(DefaultIcon, { state, size })
3588
3581
  }) => {
3589
- const titleVariant = size === "small" ? "subtitle2" : "h6";
3590
- const subtitleVariant = size === "small" ? "caption" : "body1";
3591
- return /* @__PURE__ */ React25.createElement(
3582
+ const titleVariant = size === "Small" ? "subtitle2" : "h6";
3583
+ const subtitleVariant = size === "Small" ? "caption" : "body1";
3584
+ return /* @__PURE__ */ React26.createElement(
3592
3585
  Stack10,
3593
3586
  {
3594
3587
  alignItems: "center",
@@ -3597,8 +3590,8 @@ var EmptyState = ({
3597
3590
  height: containerHeight,
3598
3591
  "data-testid": "empty-state-container"
3599
3592
  },
3600
- icon && /* @__PURE__ */ React25.createElement(Stack10, null, icon),
3601
- /* @__PURE__ */ React25.createElement(Stack10, { gap: 0.5 }, /* @__PURE__ */ React25.createElement(Typography12, { color: "text.primary", variant: titleVariant, textAlign: "center" }, title), subtitle && /* @__PURE__ */ React25.createElement(
3593
+ /* @__PURE__ */ React26.createElement(Stack10, { sx: { width: size === "Small" ? "40px" : "60px", height: size === "Small" ? "40px" : "60px" } }, icon && /* @__PURE__ */ React26.createElement(Stack10, null, icon)),
3594
+ /* @__PURE__ */ React26.createElement(Stack10, { gap: 0.5 }, /* @__PURE__ */ React26.createElement(Typography12, { color: "text.primary", variant: titleVariant, textAlign: "center" }, title), subtitle && /* @__PURE__ */ React26.createElement(
3602
3595
  Typography12,
3603
3596
  {
3604
3597
  variant: subtitleVariant,
@@ -3607,7 +3600,7 @@ var EmptyState = ({
3607
3600
  style: { whiteSpace: "pre-line" }
3608
3601
  },
3609
3602
  subtitle
3610
- ), actions && (actions == null ? void 0 : actions.length) > 0 && /* @__PURE__ */ React25.createElement(
3603
+ ), actions && (actions == null ? void 0 : actions.length) > 0 && /* @__PURE__ */ React26.createElement(
3611
3604
  Stack10,
3612
3605
  {
3613
3606
  direction: "row",
@@ -3617,15 +3610,15 @@ var EmptyState = ({
3617
3610
  },
3618
3611
  actions.map((action, index) => {
3619
3612
  var _a, _b, _c, _d;
3620
- return /* @__PURE__ */ React25.createElement(
3613
+ return /* @__PURE__ */ React26.createElement(
3621
3614
  Button10,
3622
3615
  {
3623
3616
  key: index,
3624
3617
  color: (_a = action.color) != null ? _a : "primary",
3625
- variant: (_b = action.variant) != null ? _b : "text",
3618
+ variant: index == actions.length - 1 ? "outlined" : (_b = action.variant) != null ? _b : "text",
3626
3619
  size: (_c = action.size) != null ? _c : "small",
3627
- startIcon: action.icon && action.iconPosition === "left" ? /* @__PURE__ */ React25.createElement("img", { src: action.icon, alt: "icon" }) : void 0,
3628
- endIcon: action.icon && action.iconPosition === "right" ? /* @__PURE__ */ React25.createElement("img", { src: action.icon, alt: "icon" }) : void 0,
3620
+ startIcon: action.icon && action.iconPosition === "left" ? /* @__PURE__ */ React26.createElement("img", { src: action.icon, alt: "icon" }) : void 0,
3621
+ endIcon: action.icon && action.iconPosition === "right" ? /* @__PURE__ */ React26.createElement("img", { src: action.icon, alt: "icon" }) : void 0,
3629
3622
  onClick: action.onClick
3630
3623
  },
3631
3624
  capitalize((_d = action.text) != null ? _d : "action")
@@ -3636,13 +3629,13 @@ var EmptyState = ({
3636
3629
  };
3637
3630
 
3638
3631
  // src/assets/LogoCalendario.tsx
3639
- import React26 from "react";
3632
+ import React27 from "react";
3640
3633
  var LogoCalendario = () => {
3641
- return /* @__PURE__ */ React26.createElement("svg", { width: "60", height: "61", viewBox: "0 0 60 61", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React26.createElement("g", { "clip-path": "url(#clip0_5353_24891)" }, /* @__PURE__ */ React26.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M40.7361 11.1589C39.7792 11.1589 39.0106 11.9722 39.0106 12.9661V15.4375H20.0309V12.9661C20.0309 11.964 19.2545 11.1589 18.3055 11.1589C17.3487 11.1589 16.5801 11.9722 16.5801 12.9661V15.4375H12.8819C12.0652 15.4375 11.4038 16.0918 11.4038 16.8998V20.6551C11.4038 21.463 12.0652 22.1174 12.8819 22.1174H46.8383C47.655 22.1174 48.3165 21.463 48.3165 20.6551V16.8998C48.3165 16.0918 47.655 15.4375 46.8383 15.4375H42.4615V12.9661C42.4615 11.964 41.6851 11.1589 40.7361 11.1589ZM19.4827 19.2049C19.6528 19.1343 19.7361 19.006 19.7724 18.8352C19.6916 18.9714 19.594 19.0957 19.4827 19.2049Z", fill: "#00BCD4" }), /* @__PURE__ */ React26.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.2037 25.8653C13.7579 25.8653 13.425 26.2168 13.425 26.6093V47.3669C13.425 47.7595 13.7579 48.1109 14.2037 48.1109H46.0004C46.4782 48.1109 46.8656 47.7236 46.8656 47.2458V26.6093C46.8656 26.2168 46.5327 25.8653 46.087 25.8653H14.2037ZM11.6948 26.6093C11.6948 25.2255 12.8384 24.135 14.2037 24.135H46.087C47.4522 24.135 48.5959 25.2255 48.5959 26.6093V47.2458C48.5959 48.6792 47.4339 49.8412 46.0004 49.8412H14.2037C12.8384 49.8412 11.6948 48.7508 11.6948 47.3669V26.6093Z", fill: "#6392BD" }), /* @__PURE__ */ React26.createElement("path", { d: "M19.481 30.9138C19.481 30.5164 20.1155 30.1903 20.9058 30.1903C21.6894 30.1903 22.3305 30.5131 22.3305 30.9138V32.8862C22.3305 33.2836 21.6894 33.6097 20.9058 33.6097C20.1222 33.6097 19.481 33.2869 19.481 32.8862V30.9138Z", fill: "#6392BD" }), /* @__PURE__ */ React26.createElement("path", { d: "M30.0242 30.1903C29.2339 30.1903 28.5995 30.5164 28.5995 30.9138V32.8862C28.5995 33.2869 29.2406 33.6097 30.0242 33.6097C30.8079 33.6097 31.449 33.2836 31.449 32.8862V30.9138C31.449 30.5131 30.8079 30.1903 30.0242 30.1903Z", fill: "#6392BD" }), /* @__PURE__ */ React26.createElement("path", { d: "M37.7179 30.9138C37.7179 30.5164 38.3524 30.1903 39.1427 30.1903C39.608 30.1903 40.022 30.3038 40.2825 30.4797C40.3515 30.5276 40.4116 30.5788 40.4561 30.6344C40.5274 30.7201 40.5675 30.8147 40.5675 30.9138V32.8862C40.5675 33.2836 39.9263 33.6097 39.1427 33.6097C38.3591 33.6097 37.7179 33.2869 37.7179 32.8862V30.9138Z", fill: "#6392BD" }), /* @__PURE__ */ React26.createElement("path", { d: "M20.9058 39.8787C20.1155 39.8787 19.481 40.2048 19.481 40.6022V42.5746C19.481 42.687 19.5322 42.7927 19.6213 42.8874C19.7036 42.9731 19.8172 43.0499 19.9552 43.1122C20.2068 43.228 20.5407 43.2981 20.9058 43.2981C21.6894 43.2981 22.3305 42.972 22.3305 42.5746V40.6022C22.3305 40.2015 21.6894 39.8787 20.9058 39.8787Z", fill: "#6392BD" }), /* @__PURE__ */ React26.createElement("path", { d: "M29.524 39.9477C29.7087 39.9032 29.9158 39.8787 30.1339 39.8787C30.9176 39.8787 31.5587 40.2015 31.5587 40.6022V42.5746C31.5587 42.972 30.9176 43.2981 30.1339 43.2981C29.3503 43.2981 28.7092 42.9753 28.7092 42.5746V40.6022C28.7092 40.315 29.0409 40.0646 29.524 39.9477Z", fill: "#6392BD" }), /* @__PURE__ */ React26.createElement("path", { d: "M38.5141 39.9482C38.6989 39.9037 38.9059 39.8792 39.1241 39.8792C39.9077 39.8792 40.5488 40.202 40.5488 40.6027V42.5751C40.5488 42.9725 39.9077 43.2986 39.1241 43.2986C38.3405 43.2986 37.6993 42.9758 37.6993 42.5751V40.6027C37.6993 40.3155 38.031 40.0651 38.5141 39.9482Z", fill: "#6392BD" })), /* @__PURE__ */ React26.createElement("defs", null, /* @__PURE__ */ React26.createElement("clipPath", { id: "clip0_5353_24891" }, /* @__PURE__ */ React26.createElement("rect", { width: "60", height: "60", fill: "white", transform: "translate(0 0.5)" }))));
3634
+ return /* @__PURE__ */ React27.createElement("svg", { width: "60", height: "61", viewBox: "0 0 60 61", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React27.createElement("g", { "clip-path": "url(#clip0_5353_24891)" }, /* @__PURE__ */ React27.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M40.7361 11.1589C39.7792 11.1589 39.0106 11.9722 39.0106 12.9661V15.4375H20.0309V12.9661C20.0309 11.964 19.2545 11.1589 18.3055 11.1589C17.3487 11.1589 16.5801 11.9722 16.5801 12.9661V15.4375H12.8819C12.0652 15.4375 11.4038 16.0918 11.4038 16.8998V20.6551C11.4038 21.463 12.0652 22.1174 12.8819 22.1174H46.8383C47.655 22.1174 48.3165 21.463 48.3165 20.6551V16.8998C48.3165 16.0918 47.655 15.4375 46.8383 15.4375H42.4615V12.9661C42.4615 11.964 41.6851 11.1589 40.7361 11.1589ZM19.4827 19.2049C19.6528 19.1343 19.7361 19.006 19.7724 18.8352C19.6916 18.9714 19.594 19.0957 19.4827 19.2049Z", fill: "#00BCD4" }), /* @__PURE__ */ React27.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.2037 25.8653C13.7579 25.8653 13.425 26.2168 13.425 26.6093V47.3669C13.425 47.7595 13.7579 48.1109 14.2037 48.1109H46.0004C46.4782 48.1109 46.8656 47.7236 46.8656 47.2458V26.6093C46.8656 26.2168 46.5327 25.8653 46.087 25.8653H14.2037ZM11.6948 26.6093C11.6948 25.2255 12.8384 24.135 14.2037 24.135H46.087C47.4522 24.135 48.5959 25.2255 48.5959 26.6093V47.2458C48.5959 48.6792 47.4339 49.8412 46.0004 49.8412H14.2037C12.8384 49.8412 11.6948 48.7508 11.6948 47.3669V26.6093Z", fill: "#6392BD" }), /* @__PURE__ */ React27.createElement("path", { d: "M19.481 30.9138C19.481 30.5164 20.1155 30.1903 20.9058 30.1903C21.6894 30.1903 22.3305 30.5131 22.3305 30.9138V32.8862C22.3305 33.2836 21.6894 33.6097 20.9058 33.6097C20.1222 33.6097 19.481 33.2869 19.481 32.8862V30.9138Z", fill: "#6392BD" }), /* @__PURE__ */ React27.createElement("path", { d: "M30.0242 30.1903C29.2339 30.1903 28.5995 30.5164 28.5995 30.9138V32.8862C28.5995 33.2869 29.2406 33.6097 30.0242 33.6097C30.8079 33.6097 31.449 33.2836 31.449 32.8862V30.9138C31.449 30.5131 30.8079 30.1903 30.0242 30.1903Z", fill: "#6392BD" }), /* @__PURE__ */ React27.createElement("path", { d: "M37.7179 30.9138C37.7179 30.5164 38.3524 30.1903 39.1427 30.1903C39.608 30.1903 40.022 30.3038 40.2825 30.4797C40.3515 30.5276 40.4116 30.5788 40.4561 30.6344C40.5274 30.7201 40.5675 30.8147 40.5675 30.9138V32.8862C40.5675 33.2836 39.9263 33.6097 39.1427 33.6097C38.3591 33.6097 37.7179 33.2869 37.7179 32.8862V30.9138Z", fill: "#6392BD" }), /* @__PURE__ */ React27.createElement("path", { d: "M20.9058 39.8787C20.1155 39.8787 19.481 40.2048 19.481 40.6022V42.5746C19.481 42.687 19.5322 42.7927 19.6213 42.8874C19.7036 42.9731 19.8172 43.0499 19.9552 43.1122C20.2068 43.228 20.5407 43.2981 20.9058 43.2981C21.6894 43.2981 22.3305 42.972 22.3305 42.5746V40.6022C22.3305 40.2015 21.6894 39.8787 20.9058 39.8787Z", fill: "#6392BD" }), /* @__PURE__ */ React27.createElement("path", { d: "M29.524 39.9477C29.7087 39.9032 29.9158 39.8787 30.1339 39.8787C30.9176 39.8787 31.5587 40.2015 31.5587 40.6022V42.5746C31.5587 42.972 30.9176 43.2981 30.1339 43.2981C29.3503 43.2981 28.7092 42.9753 28.7092 42.5746V40.6022C28.7092 40.315 29.0409 40.0646 29.524 39.9477Z", fill: "#6392BD" }), /* @__PURE__ */ React27.createElement("path", { d: "M38.5141 39.9482C38.6989 39.9037 38.9059 39.8792 39.1241 39.8792C39.9077 39.8792 40.5488 40.202 40.5488 40.6027V42.5751C40.5488 42.9725 39.9077 43.2986 39.1241 43.2986C38.3405 43.2986 37.6993 42.9758 37.6993 42.5751V40.6027C37.6993 40.3155 38.031 40.0651 38.5141 39.9482Z", fill: "#6392BD" })), /* @__PURE__ */ React27.createElement("defs", null, /* @__PURE__ */ React27.createElement("clipPath", { id: "clip0_5353_24891" }, /* @__PURE__ */ React27.createElement("rect", { width: "60", height: "60", fill: "white", transform: "translate(0 0.5)" }))));
3642
3635
  };
3643
3636
 
3644
3637
  // src/Components/Calendario/components/DayEventsList.tsx
3645
- import React27 from "react";
3638
+ import React28 from "react";
3646
3639
  import { Box as Box15, Typography as Typography13, Divider as Divider5 } from "@mui/material";
3647
3640
  var DayEventsList = ({
3648
3641
  events,
@@ -3651,7 +3644,7 @@ var DayEventsList = ({
3651
3644
  onEventHover
3652
3645
  }) => {
3653
3646
  const [first, ...rest] = events;
3654
- return /* @__PURE__ */ React27.createElement(Box15, { display: "flex", width: "100%", flexDirection: "column", height: "100%", pr: 1.5 }, /* @__PURE__ */ React27.createElement(Typography13, { width: "100%", color: "text.secondary" }, "Proximo evento"), first && /* @__PURE__ */ React27.createElement(Box15, { p: 1, pb: 1, width: "100%" }, /* @__PURE__ */ React27.createElement(
3647
+ return /* @__PURE__ */ React28.createElement(Box15, { display: "flex", width: "100%", flexDirection: "column", height: "100%", pr: 1.5 }, /* @__PURE__ */ React28.createElement(Typography13, { width: "100%", color: "text.secondary" }, "Proximo evento"), first && /* @__PURE__ */ React28.createElement(Box15, { p: 1, pb: 1, width: "100%" }, /* @__PURE__ */ React28.createElement(
3655
3648
  CalendarEventCard,
3656
3649
  {
3657
3650
  event: first,
@@ -3667,7 +3660,7 @@ var DayEventsList = ({
3667
3660
  }
3668
3661
  }
3669
3662
  }
3670
- )), /* @__PURE__ */ React27.createElement(Divider5, { flexItem: true, sx: { width: "100%" } }), /* @__PURE__ */ React27.createElement(Typography13, { width: "100%", py: 1, color: "text.secondary" }, "Eventos restantes"), /* @__PURE__ */ React27.createElement(
3663
+ )), /* @__PURE__ */ React28.createElement(Divider5, { flexItem: true, sx: { width: "100%" } }), /* @__PURE__ */ React28.createElement(Typography13, { width: "100%", py: 1, color: "text.secondary" }, "Eventos restantes"), /* @__PURE__ */ React28.createElement(
3671
3664
  Box15,
3672
3665
  {
3673
3666
  width: "100%",
@@ -3680,7 +3673,7 @@ var DayEventsList = ({
3680
3673
  flexDirection: "column",
3681
3674
  gap: 1.5
3682
3675
  },
3683
- rest.map((event2) => /* @__PURE__ */ React27.createElement(
3676
+ rest.map((event2) => /* @__PURE__ */ React28.createElement(
3684
3677
  CalendarEventCard,
3685
3678
  {
3686
3679
  key: `${event2.id}-${day.toString()}`,
@@ -3764,21 +3757,21 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3764
3757
  const noEvents = events.length === 0;
3765
3758
  const days = getMonthDays(currentDate);
3766
3759
  const weekDays = Array.from({ length: 7 }, (_, i) => dayjs5().day(i));
3767
- const [openDrawer, setOpenDrawer] = React28.useState(false);
3768
- const [selectedDay, setSelectedDay] = React28.useState(null);
3769
- const [selectedEvents, setSelectedEvents] = React28.useState([]);
3770
- return /* @__PURE__ */ React28.createElement(React28.Fragment, null, /* @__PURE__ */ React28.createElement(Box16, { width: "100%", sx: { overflowX: "auto" } }, /* @__PURE__ */ React28.createElement(Box16, { minWidth: CALENDAR_CONSTANTS.MIN_WIDTH }, /* @__PURE__ */ React28.createElement(Box16, { display: "grid", gridTemplateColumns: CALENDAR_CONSTANTS.GRID_TEMPLATE, gap: 0.5, mb: 1 }, weekDays.map((day) => /* @__PURE__ */ React28.createElement(Box16, { key: day.day(), textAlign: "center", py: 0.5 }, /* @__PURE__ */ React28.createElement(Typography14, { variant: "caption", color: "text.secondary" }, day.format("dddd"))))), isLoading ? /* @__PURE__ */ React28.createElement(Box16, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: CALENDAR_CONSTANTS.LOADING_CONTAINER_HEIGHT }, /* @__PURE__ */ React28.createElement(CircularProgress2, { sx: { width: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE, height: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE }, variant: "indeterminate" })) : seeDays == false ? /* @__PURE__ */ React28.createElement(
3760
+ const [openDrawer, setOpenDrawer] = React29.useState(false);
3761
+ const [selectedDay, setSelectedDay] = React29.useState(null);
3762
+ const [selectedEvents, setSelectedEvents] = React29.useState([]);
3763
+ return /* @__PURE__ */ React29.createElement(React29.Fragment, null, /* @__PURE__ */ React29.createElement(Box16, { width: "100%", sx: { overflowX: "auto" } }, /* @__PURE__ */ React29.createElement(Box16, { minWidth: CALENDAR_CONSTANTS.MIN_WIDTH }, /* @__PURE__ */ React29.createElement(Box16, { display: "grid", gridTemplateColumns: CALENDAR_CONSTANTS.GRID_TEMPLATE, gap: 0.5, mb: 1 }, weekDays.map((day) => /* @__PURE__ */ React29.createElement(Box16, { key: day.day(), textAlign: "center", py: 0.5 }, /* @__PURE__ */ React29.createElement(Typography14, { variant: "caption", color: "text.secondary" }, day.format("dddd"))))), isLoading ? /* @__PURE__ */ React29.createElement(Box16, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: CALENDAR_CONSTANTS.LOADING_CONTAINER_HEIGHT }, /* @__PURE__ */ React29.createElement(CircularProgress2, { sx: { width: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE, height: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE }, variant: "indeterminate" })) : seeDays == false ? /* @__PURE__ */ React29.createElement(
3771
3764
  EmptyState,
3772
3765
  {
3773
3766
  containerHeight: "calc(100vh - 130px)",
3774
3767
  title: "Inicia la gesti\xF3n de las actividades",
3775
3768
  subtitle: "Selecciona un mec\xE1nico y as\xEDgnale las actividades a realizar.",
3776
- icon: /* @__PURE__ */ React28.createElement(LogoCalendario, null)
3769
+ icon: /* @__PURE__ */ React29.createElement(LogoCalendario, null)
3777
3770
  }
3778
- ) : seeDays == true ? /* @__PURE__ */ React28.createElement(Box16, { display: "grid", gridTemplateColumns: CALENDAR_CONSTANTS.GRID_TEMPLATE, gap: 0.5 }, days.map((day) => {
3771
+ ) : seeDays == true ? /* @__PURE__ */ React29.createElement(Box16, { display: "grid", gridTemplateColumns: CALENDAR_CONSTANTS.GRID_TEMPLATE, gap: 0.5 }, days.map((day) => {
3779
3772
  const dayEvents = filterEventsForDay(events, day);
3780
3773
  const isCurrentMonth = day.month() === currentDate.month();
3781
- return /* @__PURE__ */ React28.createElement(
3774
+ return /* @__PURE__ */ React29.createElement(
3782
3775
  Paper2,
3783
3776
  {
3784
3777
  key: day.toString(),
@@ -3795,7 +3788,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3795
3788
  overflow: "hidden"
3796
3789
  }
3797
3790
  },
3798
- /* @__PURE__ */ React28.createElement(Box16, { p: 1, flexShrink: 0 }, /* @__PURE__ */ React28.createElement(Box16, { display: "flex", alignItems: "center", justifyContent: "flex-start" }, /* @__PURE__ */ React28.createElement(
3791
+ /* @__PURE__ */ React29.createElement(Box16, { p: 1, flexShrink: 0 }, /* @__PURE__ */ React29.createElement(Box16, { display: "flex", alignItems: "center", justifyContent: "flex-start" }, /* @__PURE__ */ React29.createElement(
3799
3792
  Box16,
3800
3793
  {
3801
3794
  sx: {
@@ -3808,7 +3801,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3808
3801
  justifyContent: "center"
3809
3802
  }
3810
3803
  },
3811
- /* @__PURE__ */ React28.createElement(
3804
+ /* @__PURE__ */ React29.createElement(
3812
3805
  Typography14,
3813
3806
  {
3814
3807
  variant: "body2",
@@ -3816,7 +3809,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3816
3809
  },
3817
3810
  day.date()
3818
3811
  )
3819
- ), dayEvents.length > CALENDAR_CONSTANTS.MAX_VISIBLE_EVENTS && /* @__PURE__ */ React28.createElement(Tooltip6, { title: "M\xE1s eventos" }, /* @__PURE__ */ React28.createElement(
3812
+ ), dayEvents.length > CALENDAR_CONSTANTS.MAX_VISIBLE_EVENTS && /* @__PURE__ */ React29.createElement(Tooltip6, { title: "M\xE1s eventos" }, /* @__PURE__ */ React29.createElement(
3820
3813
  IconButton11,
3821
3814
  {
3822
3815
  color: "primary",
@@ -3828,9 +3821,9 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3828
3821
  setSelectedEvents(dayEvents);
3829
3822
  }
3830
3823
  },
3831
- /* @__PURE__ */ React28.createElement(AddIcon, { fontSize: "small" })
3824
+ /* @__PURE__ */ React29.createElement(AddIcon, { fontSize: "small" })
3832
3825
  )))),
3833
- /* @__PURE__ */ React28.createElement(Box16, { display: "flex", flexDirection: "column", gap: 0.5, p: 1, pt: 0, overflow: "hidden" }, dayEvents.slice(0, CALENDAR_CONSTANTS.MAX_VISIBLE_EVENTS).map((event2) => /* @__PURE__ */ React28.createElement(
3826
+ /* @__PURE__ */ React29.createElement(Box16, { display: "flex", flexDirection: "column", gap: 0.5, p: 1, pt: 0, overflow: "hidden" }, dayEvents.slice(0, CALENDAR_CONSTANTS.MAX_VISIBLE_EVENTS).map((event2) => /* @__PURE__ */ React29.createElement(
3834
3827
  CalendarEventCard,
3835
3828
  {
3836
3829
  key: `${event2.id}-${day.toString()}`,
@@ -3840,7 +3833,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3840
3833
  onHover: onEventHover
3841
3834
  }
3842
3835
  ))),
3843
- dayEvents.length > CALENDAR_CONSTANTS.MAX_VISIBLE_EVENTS && /* @__PURE__ */ React28.createElement(
3836
+ dayEvents.length > CALENDAR_CONSTANTS.MAX_VISIBLE_EVENTS && /* @__PURE__ */ React29.createElement(
3844
3837
  Stack11,
3845
3838
  {
3846
3839
  justifyItems: "center",
@@ -3849,7 +3842,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3849
3842
  onClick: (e) => e.stopPropagation(),
3850
3843
  sx: { "& .MuiButtonBase-root": { width: "100%" } }
3851
3844
  },
3852
- /* @__PURE__ */ React28.createElement(
3845
+ /* @__PURE__ */ React29.createElement(
3853
3846
  Button11,
3854
3847
  {
3855
3848
  size: "small",
@@ -3866,7 +3859,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3866
3859
  )
3867
3860
  )
3868
3861
  );
3869
- })) : null)), selectedDay && /* @__PURE__ */ React28.createElement(
3862
+ })) : null)), selectedDay && /* @__PURE__ */ React29.createElement(
3870
3863
  SCDrawer,
3871
3864
  {
3872
3865
  width: CALENDAR_CONSTANTS.DRAWER_WIDTH,
@@ -3879,7 +3872,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3879
3872
  anchor: "right",
3880
3873
  actions: false,
3881
3874
  arrayElements: [{
3882
- component: /* @__PURE__ */ React28.createElement(
3875
+ component: /* @__PURE__ */ React29.createElement(
3883
3876
  DayEventsList,
3884
3877
  {
3885
3878
  events: selectedEvents,
@@ -3894,7 +3887,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3894
3887
  };
3895
3888
 
3896
3889
  // src/Components/Calendario/Views/WeekView.tsx
3897
- import React29 from "react";
3890
+ import React30 from "react";
3898
3891
  import { Box as Box17, CircularProgress as CircularProgress3, Typography as Typography15 } from "@mui/material";
3899
3892
  import dayjs6 from "dayjs";
3900
3893
  import localeData2 from "dayjs/plugin/localeData";
@@ -3930,9 +3923,9 @@ var WeekView = ({
3930
3923
  }
3931
3924
  return "none";
3932
3925
  };
3933
- return /* @__PURE__ */ React29.createElement(Box17, { display: "flex", flexDirection: "column", height: "100%" }, /* @__PURE__ */ React29.createElement(Box17, { display: "flex", bgcolor: "transparent" }, /* @__PURE__ */ React29.createElement(Box17, { width: 45, bgcolor: "transparent" }), days.map((day) => {
3926
+ return /* @__PURE__ */ React30.createElement(Box17, { display: "flex", flexDirection: "column", height: "100%" }, /* @__PURE__ */ React30.createElement(Box17, { display: "flex", bgcolor: "transparent" }, /* @__PURE__ */ React30.createElement(Box17, { width: 45, bgcolor: "transparent" }), days.map((day) => {
3934
3927
  const isToday2 = day.format("YYYY-MM-DD") === todayString;
3935
- return /* @__PURE__ */ React29.createElement(
3928
+ return /* @__PURE__ */ React30.createElement(
3936
3929
  Box17,
3937
3930
  {
3938
3931
  key: day.toString(),
@@ -3949,20 +3942,20 @@ var WeekView = ({
3949
3942
  borderBottom: isToday2 ? 2 : 0,
3950
3943
  borderColor: isToday2 ? "primary.main" : "transparent"
3951
3944
  },
3952
- /* @__PURE__ */ React29.createElement(Typography15, { variant: "h6", color: "text.primary" }, day.format("D")),
3953
- /* @__PURE__ */ React29.createElement(Typography15, { variant: "caption", color: "text.secondary" }, day.format("dddd"))
3945
+ /* @__PURE__ */ React30.createElement(Typography15, { variant: "h6", color: "text.primary" }, day.format("D")),
3946
+ /* @__PURE__ */ React30.createElement(Typography15, { variant: "caption", color: "text.secondary" }, day.format("dddd"))
3954
3947
  );
3955
- })), isLoading ? /* @__PURE__ */ React29.createElement(Box17, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "450px" }, /* @__PURE__ */ React29.createElement(CircularProgress3, { sx: { width: "60px", height: "60px" }, variant: "indeterminate" })) : !isLoading && seeDays == false ? /* @__PURE__ */ React29.createElement(
3948
+ })), isLoading ? /* @__PURE__ */ React30.createElement(Box17, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "450px" }, /* @__PURE__ */ React30.createElement(CircularProgress3, { sx: { width: "60px", height: "60px" }, variant: "indeterminate" })) : !isLoading && seeDays == false ? /* @__PURE__ */ React30.createElement(
3956
3949
  EmptyState,
3957
3950
  {
3958
3951
  containerHeight: "calc(100vh - 130px)",
3959
3952
  title: "Inicia la gesti\xF3n de las actividades",
3960
3953
  subtitle: "Selecciona un mec\xE1nico y as\xEDgnale las actividades a realizar.",
3961
- icon: /* @__PURE__ */ React29.createElement(LogoCalendario, null)
3954
+ icon: /* @__PURE__ */ React30.createElement(LogoCalendario, null)
3962
3955
  }
3963
3956
  ) : (
3964
3957
  // Grid de horas y eventos
3965
- /* @__PURE__ */ React29.createElement(Box17, { display: "flex", flex: 1 }, /* @__PURE__ */ React29.createElement(Box17, { width: 45, bgcolor: "transparent" }, hours.map((h) => /* @__PURE__ */ React29.createElement(
3958
+ /* @__PURE__ */ React30.createElement(Box17, { display: "flex", flex: 1 }, /* @__PURE__ */ React30.createElement(Box17, { width: 45, bgcolor: "transparent" }, hours.map((h) => /* @__PURE__ */ React30.createElement(
3966
3959
  Box17,
3967
3960
  {
3968
3961
  key: h,
@@ -3971,7 +3964,7 @@ var WeekView = ({
3971
3964
  pr: 1,
3972
3965
  borderColor: "divider"
3973
3966
  },
3974
- /* @__PURE__ */ React29.createElement(Typography15, { variant: "caption", color: "text.secondary" }, dayjs6().hour(h).format("h A"))
3967
+ /* @__PURE__ */ React30.createElement(Typography15, { variant: "caption", color: "text.secondary" }, dayjs6().hour(h).format("h A"))
3975
3968
  ))), days.map((day) => {
3976
3969
  const dayEvents = events.filter(
3977
3970
  (event2) => day.isBetween(event2.start.startOf("day"), event2.end.endOf("day"), null, "[]")
@@ -3980,7 +3973,7 @@ var WeekView = ({
3980
3973
  const endsInRange = event2.end.hour() >= startHour && event2.end.hour() <= endHour;
3981
3974
  return startsInRange || endsInRange;
3982
3975
  }).sort((a, b) => a.start.valueOf() - b.start.valueOf());
3983
- return /* @__PURE__ */ React29.createElement(
3976
+ return /* @__PURE__ */ React30.createElement(
3984
3977
  Box17,
3985
3978
  {
3986
3979
  key: day.toString(),
@@ -3993,7 +3986,7 @@ var WeekView = ({
3993
3986
  },
3994
3987
  hours.map((hourIdx) => {
3995
3988
  const borderType = getCellBorderType2(hourIdx, dayEvents);
3996
- return /* @__PURE__ */ React29.createElement(
3989
+ return /* @__PURE__ */ React30.createElement(
3997
3990
  Box17,
3998
3991
  {
3999
3992
  sx: { "&:hover": { bgcolor: "primary.50" } },
@@ -4010,7 +4003,7 @@ var WeekView = ({
4010
4003
  const eventEnd = day.isSame(event2.end, "day") ? event2.end : day.endOf("day").hour(endHour).minute(59);
4011
4004
  const startMinutes = (eventStart.hour() - startHour) * 60 + eventStart.minute();
4012
4005
  const durationMinutes = eventEnd.diff(eventStart, "minute");
4013
- return /* @__PURE__ */ React29.createElement(
4006
+ return /* @__PURE__ */ React30.createElement(
4014
4007
  CalendarEventCard,
4015
4008
  {
4016
4009
  key: `${event2.id}-${day.toString()}`,
@@ -4035,7 +4028,7 @@ var WeekView = ({
4035
4028
  };
4036
4029
 
4037
4030
  // src/Components/Calendario/Views/DayView.tsx
4038
- import React30 from "react";
4031
+ import React31 from "react";
4039
4032
  import { Box as Box18, CircularProgress as CircularProgress4, Typography as Typography16 } from "@mui/material";
4040
4033
  import dayjs7 from "dayjs";
4041
4034
  var DayView = ({
@@ -4051,15 +4044,15 @@ var DayView = ({
4051
4044
  const hours = Array.from({ length: endHour - startHour + 1 }, (_, i) => startHour + i);
4052
4045
  const dayEvents = filterEventsForDay(events, currentDate);
4053
4046
  const noEvents = events.length === 0;
4054
- return /* @__PURE__ */ React30.createElement(Box18, { display: "flex", flexDirection: "column", height: "100%" }, /* @__PURE__ */ React30.createElement(Box18, { display: "flex", borderBottom: "1px solid", borderColor: "primary.main", bgcolor: "background.paper" }, /* @__PURE__ */ React30.createElement(Box18, { width: CALENDAR_CONSTANTS.SIDEBAR_WIDTH, bgcolor: "background.paper", borderBottom: "1px solid", borderColor: "transparent" }), /* @__PURE__ */ React30.createElement(Box18, { flex: 1, display: "flex", flexDirection: "column", textAlign: "start", gap: 0.5, py: 1, bgcolor: "primary.50" }, /* @__PURE__ */ React30.createElement(Typography16, { variant: "h6", color: "text.secondary" }, currentDate.format("D")), /* @__PURE__ */ React30.createElement(Typography16, { variant: "caption", color: "text.secondary" }, currentDate.format("dddd")))), isLoading ? /* @__PURE__ */ React30.createElement(Box18, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: CALENDAR_CONSTANTS.LOADING_CONTAINER_HEIGHT }, /* @__PURE__ */ React30.createElement(CircularProgress4, { sx: { width: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE, height: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE }, variant: "indeterminate" })) : seeDays == false ? /* @__PURE__ */ React30.createElement(
4047
+ return /* @__PURE__ */ React31.createElement(Box18, { display: "flex", flexDirection: "column", height: "100%" }, /* @__PURE__ */ React31.createElement(Box18, { display: "flex", borderBottom: "1px solid", borderColor: "primary.main", bgcolor: "background.paper" }, /* @__PURE__ */ React31.createElement(Box18, { width: CALENDAR_CONSTANTS.SIDEBAR_WIDTH, bgcolor: "background.paper", borderBottom: "1px solid", borderColor: "transparent" }), /* @__PURE__ */ React31.createElement(Box18, { flex: 1, display: "flex", flexDirection: "column", textAlign: "start", gap: 0.5, py: 1, bgcolor: "primary.50" }, /* @__PURE__ */ React31.createElement(Typography16, { variant: "h6", color: "text.secondary" }, currentDate.format("D")), /* @__PURE__ */ React31.createElement(Typography16, { variant: "caption", color: "text.secondary" }, currentDate.format("dddd")))), isLoading ? /* @__PURE__ */ React31.createElement(Box18, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: CALENDAR_CONSTANTS.LOADING_CONTAINER_HEIGHT }, /* @__PURE__ */ React31.createElement(CircularProgress4, { sx: { width: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE, height: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE }, variant: "indeterminate" })) : seeDays == false ? /* @__PURE__ */ React31.createElement(
4055
4048
  EmptyState,
4056
4049
  {
4057
4050
  containerHeight: "calc(100vh - 140px)",
4058
4051
  title: "Inicia la gesti\xF3n de las actividades",
4059
4052
  subtitle: "Selecciona un mec\xE1nico y as\xEDgnale las actividades a realizar.",
4060
- icon: /* @__PURE__ */ React30.createElement(LogoCalendario, null)
4053
+ icon: /* @__PURE__ */ React31.createElement(LogoCalendario, null)
4061
4054
  }
4062
- ) : /* @__PURE__ */ React30.createElement(Box18, { display: "flex", flex: 1 }, /* @__PURE__ */ React30.createElement(Box18, { width: CALENDAR_CONSTANTS.SIDEBAR_WIDTH, bgcolor: "background.paper" }, hours.map((h) => /* @__PURE__ */ React30.createElement(
4055
+ ) : /* @__PURE__ */ React31.createElement(Box18, { display: "flex", flex: 1 }, /* @__PURE__ */ React31.createElement(Box18, { width: CALENDAR_CONSTANTS.SIDEBAR_WIDTH, bgcolor: "background.paper" }, hours.map((h) => /* @__PURE__ */ React31.createElement(
4063
4056
  Box18,
4064
4057
  {
4065
4058
  key: h,
@@ -4070,10 +4063,10 @@ var DayView = ({
4070
4063
  borderRight: "1px solid",
4071
4064
  borderColor: "divider"
4072
4065
  },
4073
- /* @__PURE__ */ React30.createElement(Typography16, { variant: "caption", color: "text.secondary" }, dayjs7().hour(h).format("h A"))
4074
- ))), /* @__PURE__ */ React30.createElement(Box18, { flex: 1, position: "relative" }, hours.map((hourIdx) => {
4066
+ /* @__PURE__ */ React31.createElement(Typography16, { variant: "caption", color: "text.secondary" }, dayjs7().hour(h).format("h A"))
4067
+ ))), /* @__PURE__ */ React31.createElement(Box18, { flex: 1, position: "relative" }, hours.map((hourIdx) => {
4075
4068
  const borderType = getCellBorderType(hourIdx, dayEvents);
4076
- return /* @__PURE__ */ React30.createElement(
4069
+ return /* @__PURE__ */ React31.createElement(
4077
4070
  Box18,
4078
4071
  {
4079
4072
  sx: { "&:hover": { bgcolor: "primary.50" } },
@@ -4091,7 +4084,7 @@ var DayView = ({
4091
4084
  startHour,
4092
4085
  endHour
4093
4086
  );
4094
- return /* @__PURE__ */ React30.createElement(
4087
+ return /* @__PURE__ */ React31.createElement(
4095
4088
  CalendarEventCard,
4096
4089
  {
4097
4090
  key: `${event2.id}-${currentDate.toString()}`,
@@ -4112,10 +4105,10 @@ var DayView = ({
4112
4105
  };
4113
4106
 
4114
4107
  // src/Components/Calendario/hooks/useCalendarNavigation.ts
4115
- import { useState as useState14 } from "react";
4108
+ import { useState as useState15 } from "react";
4116
4109
  import dayjs8 from "dayjs";
4117
4110
  var useCalendarNavigation = (initialDate, onDateChange) => {
4118
- const [currentDate, setCurrentDate] = useState14(initialDate || dayjs8());
4111
+ const [currentDate, setCurrentDate] = useState15(initialDate || dayjs8());
4119
4112
  const getNavigationUnit = (view) => {
4120
4113
  switch (view) {
4121
4114
  case "day":
@@ -4169,7 +4162,7 @@ var Calendar = ({
4169
4162
  endHour = CALENDAR_CONSTANTS.DEFAULT_END_HOUR,
4170
4163
  seeDays = false
4171
4164
  }) => {
4172
- const [view, setView] = useState15(initialView);
4165
+ const [view, setView] = useState16(initialView);
4173
4166
  const { currentDate, navigateDate } = useCalendarNavigation(dayjs9(), onDateChange);
4174
4167
  useEffect12(() => {
4175
4168
  onDateChange == null ? void 0 : onDateChange(currentDate);
@@ -4181,7 +4174,7 @@ var Calendar = ({
4181
4174
  const handleNavigate = (action) => {
4182
4175
  navigateDate(action, view);
4183
4176
  };
4184
- return /* @__PURE__ */ React31.createElement(Box19, { bgcolor: "background.paper" }, /* @__PURE__ */ React31.createElement(
4177
+ return /* @__PURE__ */ React32.createElement(Box19, { bgcolor: "background.paper" }, /* @__PURE__ */ React32.createElement(
4185
4178
  CalendarToolbar,
4186
4179
  {
4187
4180
  labelDate: currentDate,
@@ -4190,7 +4183,7 @@ var Calendar = ({
4190
4183
  onNavigate: handleNavigate
4191
4184
  },
4192
4185
  toolbar
4193
- ), isLoading ? /* @__PURE__ */ React31.createElement(
4186
+ ), isLoading ? /* @__PURE__ */ React32.createElement(
4194
4187
  Box19,
4195
4188
  {
4196
4189
  display: "flex",
@@ -4198,7 +4191,7 @@ var Calendar = ({
4198
4191
  alignItems: "center",
4199
4192
  height: CALENDAR_CONSTANTS.LOADING_CONTAINER_HEIGHT
4200
4193
  },
4201
- /* @__PURE__ */ React31.createElement(
4194
+ /* @__PURE__ */ React32.createElement(
4202
4195
  CircularProgress5,
4203
4196
  {
4204
4197
  variant: "indeterminate",
@@ -4208,7 +4201,7 @@ var Calendar = ({
4208
4201
  }
4209
4202
  }
4210
4203
  )
4211
- ) : /* @__PURE__ */ React31.createElement(React31.Fragment, null, view === "month" && /* @__PURE__ */ React31.createElement(
4204
+ ) : /* @__PURE__ */ React32.createElement(React32.Fragment, null, view === "month" && /* @__PURE__ */ React32.createElement(
4212
4205
  MonthView,
4213
4206
  {
4214
4207
  events,
@@ -4219,7 +4212,7 @@ var Calendar = ({
4219
4212
  onEventHover,
4220
4213
  seeDays
4221
4214
  }
4222
- ), view === "week" && /* @__PURE__ */ React31.createElement(
4215
+ ), view === "week" && /* @__PURE__ */ React32.createElement(
4223
4216
  WeekView,
4224
4217
  {
4225
4218
  events,
@@ -4232,7 +4225,7 @@ var Calendar = ({
4232
4225
  endHour,
4233
4226
  seeDays
4234
4227
  }
4235
- ), view === "day" && /* @__PURE__ */ React31.createElement(
4228
+ ), view === "day" && /* @__PURE__ */ React32.createElement(
4236
4229
  DayView,
4237
4230
  {
4238
4231
  events,
@@ -4247,7 +4240,7 @@ var Calendar = ({
4247
4240
  };
4248
4241
 
4249
4242
  // src/Components/FooterAction/FooterAction.tsx
4250
- import React32 from "react";
4243
+ import React33 from "react";
4251
4244
  import { AppBar, Toolbar, Box as Box20, Typography as Typography17 } from "@mui/material";
4252
4245
  var FooterAction = ({
4253
4246
  leftContent,
@@ -4255,28 +4248,28 @@ var FooterAction = ({
4255
4248
  label,
4256
4249
  variant
4257
4250
  }) => {
4258
- return /* @__PURE__ */ React32.createElement(
4251
+ return /* @__PURE__ */ React33.createElement(
4259
4252
  AppBar,
4260
4253
  {
4261
4254
  color: "inherit",
4262
4255
  sx: { position: variant == "float" ? "relative" : "fixed", left: 0, right: "auto", width: "100%", top: "auto", bottom: 0 }
4263
4256
  },
4264
- /* @__PURE__ */ React32.createElement(
4257
+ /* @__PURE__ */ React33.createElement(
4265
4258
  Toolbar,
4266
4259
  {
4267
4260
  id: "footer-toolbar",
4268
4261
  sx: { gap: 1.5, minHeight: "50px !important" }
4269
4262
  },
4270
4263
  leftContent,
4271
- /* @__PURE__ */ React32.createElement(Box20, { flexGrow: 1 }),
4272
- label && /* @__PURE__ */ React32.createElement(Typography17, { variant: "body2", color: "text.secondary" }, label),
4264
+ /* @__PURE__ */ React33.createElement(Box20, { flexGrow: 1 }),
4265
+ label && /* @__PURE__ */ React33.createElement(Typography17, { variant: "body2", color: "text.secondary" }, label),
4273
4266
  rightContent
4274
4267
  )
4275
4268
  );
4276
4269
  };
4277
4270
 
4278
4271
  // src/Components/Menu/Menu.tsx
4279
- import React33, { useCallback as useCallback3, useState as useState16 } from "react";
4272
+ import React34, { useCallback as useCallback3, useState as useState17 } from "react";
4280
4273
  import { Button as Button12, Menu as Menu2 } from "@mui/material";
4281
4274
  var BasicMenu = ({
4282
4275
  open,
@@ -4287,8 +4280,8 @@ var BasicMenu = ({
4287
4280
  options
4288
4281
  }) => {
4289
4282
  var _a, _b, _c, _d;
4290
- const [internalAnchorEl, setInternalAnchorEl] = useState16(null);
4291
- const [internalOpen, setInternalOpen] = useState16(open != null ? open : false);
4283
+ const [internalAnchorEl, setInternalAnchorEl] = useState17(null);
4284
+ const [internalOpen, setInternalOpen] = useState17(open != null ? open : false);
4292
4285
  const isControlled = Boolean(onClose);
4293
4286
  const menuOpen = isControlled ? open != null ? open : false : internalOpen;
4294
4287
  const setMenuOpen = isControlled ? () => {
@@ -4313,7 +4306,7 @@ var BasicMenu = ({
4313
4306
  setMenuOpen(false);
4314
4307
  }
4315
4308
  }, [onClose, setMenuOpen]);
4316
- return /* @__PURE__ */ React33.createElement("div", null, /* @__PURE__ */ React33.createElement(
4309
+ return /* @__PURE__ */ React34.createElement("div", null, /* @__PURE__ */ React34.createElement(
4317
4310
  Button12,
4318
4311
  {
4319
4312
  id: "basic-button",
@@ -4326,7 +4319,7 @@ var BasicMenu = ({
4326
4319
  size: (_c = button == null ? void 0 : button.size) != null ? _c : "small"
4327
4320
  },
4328
4321
  capitalize((_d = button == null ? void 0 : button.text) != null ? _d : "Menu")
4329
- ), /* @__PURE__ */ React33.createElement(
4322
+ ), /* @__PURE__ */ React34.createElement(
4330
4323
  Menu2,
4331
4324
  {
4332
4325
  id: "basic-menu",
@@ -4344,17 +4337,17 @@ var BasicMenu = ({
4344
4337
  };
4345
4338
 
4346
4339
  // src/Components/MultiSelect/MultiSelect.tsx
4347
- import React34, { useEffect as useEffect13, useMemo as useMemo5 } from "react";
4340
+ import React35, { useEffect as useEffect13, useMemo as useMemo5 } from "react";
4348
4341
  import { Button as Button13, Checkbox as Checkbox2, FormControl as FormControl3, InputAdornment as InputAdornment5, ListItemIcon as ListItemIcon3, MenuItem as MenuItem5, Popover as Popover4, Stack as Stack12, TextField as TextField4 } from "@mui/material";
4349
4342
  import { SearchOutlined } from "@mui/icons-material";
4350
4343
 
4351
4344
  // src/Components/MultiSelect/helpers/useHandlers.tsx
4352
- import { useCallback as useCallback4, useState as useState17 } from "react";
4345
+ import { useCallback as useCallback4, useState as useState18 } from "react";
4353
4346
  function useMultiSelectHandlers() {
4354
- const [anchorEl, setAnchorEl] = useState17(null);
4355
- const [open, setOpen] = useState17(false);
4356
- const [selectedItems, setSelectedItems] = useState17([]);
4357
- const [filterValue, setFilterValue] = useState17("");
4347
+ const [anchorEl, setAnchorEl] = useState18(null);
4348
+ const [open, setOpen] = useState18(false);
4349
+ const [selectedItems, setSelectedItems] = useState18([]);
4350
+ const [filterValue, setFilterValue] = useState18("");
4358
4351
  const handleOpen = useCallback4((e) => {
4359
4352
  setAnchorEl(e.currentTarget);
4360
4353
  setOpen(true);
@@ -4462,7 +4455,7 @@ function MultiSelect({
4462
4455
  { text: "Aplicar", fn: () => {
4463
4456
  } }
4464
4457
  ];
4465
- return /* @__PURE__ */ React34.createElement(React34.Fragment, null, /* @__PURE__ */ React34.createElement(
4458
+ return /* @__PURE__ */ React35.createElement(React35.Fragment, null, /* @__PURE__ */ React35.createElement(
4466
4459
  Button13,
4467
4460
  {
4468
4461
  "test-id": "multiselect-button",
@@ -4470,11 +4463,11 @@ function MultiSelect({
4470
4463
  onClick: handleOpen,
4471
4464
  variant: (_b = button == null ? void 0 : button.variant) != null ? _b : "text",
4472
4465
  size: "small",
4473
- startIcon: (button == null ? void 0 : button.iconPosition) === "left" || !(button == null ? void 0 : button.iconPosition) ? /* @__PURE__ */ React34.createElement(Icon, null) : null,
4474
- endIcon: (button == null ? void 0 : button.iconPosition) === "right" ? /* @__PURE__ */ React34.createElement(Icon, null) : null
4466
+ startIcon: (button == null ? void 0 : button.iconPosition) === "left" || !(button == null ? void 0 : button.iconPosition) ? /* @__PURE__ */ React35.createElement(Icon, null) : null,
4467
+ endIcon: (button == null ? void 0 : button.iconPosition) === "right" ? /* @__PURE__ */ React35.createElement(Icon, null) : null
4475
4468
  },
4476
4469
  capitalize((_c = button == null ? void 0 : button.text) != null ? _c : "")
4477
- ), /* @__PURE__ */ React34.createElement(
4470
+ ), /* @__PURE__ */ React35.createElement(
4478
4471
  Popover4,
4479
4472
  {
4480
4473
  elevation: 8,
@@ -4483,7 +4476,7 @@ function MultiSelect({
4483
4476
  open: openMultiselect,
4484
4477
  onClose: () => setOpen(false)
4485
4478
  },
4486
- /* @__PURE__ */ React34.createElement(Stack12, { minWidth: "320px", "data-testid": "multiselect-container", bgcolor: "white", boxShadow: 3, borderRadius: 1 }, /* @__PURE__ */ React34.createElement(Stack12, { py: 1, px: 2 }, topPanel != null ? topPanel : /* @__PURE__ */ React34.createElement(FormControl3, { fullWidth: true, size: "small" }, /* @__PURE__ */ React34.createElement(
4479
+ /* @__PURE__ */ React35.createElement(Stack12, { minWidth: "320px", "data-testid": "multiselect-container", bgcolor: "white", boxShadow: 3, borderRadius: 1 }, /* @__PURE__ */ React35.createElement(Stack12, { py: 1, px: 2 }, topPanel != null ? topPanel : /* @__PURE__ */ React35.createElement(FormControl3, { fullWidth: true, size: "small" }, /* @__PURE__ */ React35.createElement(
4487
4480
  TextField4,
4488
4481
  {
4489
4482
  sx: { background: background ? background : "transparent" },
@@ -4496,18 +4489,18 @@ function MultiSelect({
4496
4489
  onChange: handleFilterChange,
4497
4490
  slotProps: {
4498
4491
  input: {
4499
- endAdornment: /* @__PURE__ */ React34.createElement(InputAdornment5, { position: "end" }, /* @__PURE__ */ React34.createElement(SearchOutlined, { fontSize: "small" }))
4492
+ endAdornment: /* @__PURE__ */ React35.createElement(InputAdornment5, { position: "end" }, /* @__PURE__ */ React35.createElement(SearchOutlined, { fontSize: "small" }))
4500
4493
  }
4501
4494
  }
4502
4495
  }
4503
- ))), /* @__PURE__ */ React34.createElement(Stack12, { maxHeight: "300px", overflow: "auto" }, selectAll && /* @__PURE__ */ React34.createElement(MenuItem5, { dense, onClick: handleSelectAll }, /* @__PURE__ */ React34.createElement(ListItemIcon3, null, /* @__PURE__ */ React34.createElement(Checkbox2, { checked: allSelected, color: "primary" })), "Todos los items"), sortedItems.length > 0 ? sortedItems.map((item) => /* @__PURE__ */ React34.createElement(
4496
+ ))), /* @__PURE__ */ React35.createElement(Stack12, { maxHeight: "300px", overflow: "auto" }, selectAll && /* @__PURE__ */ React35.createElement(MenuItem5, { dense, onClick: handleSelectAll }, /* @__PURE__ */ React35.createElement(ListItemIcon3, null, /* @__PURE__ */ React35.createElement(Checkbox2, { checked: allSelected, color: "primary" })), "Todos los items"), sortedItems.length > 0 ? sortedItems.map((item) => /* @__PURE__ */ React35.createElement(
4504
4497
  MenuItem5,
4505
4498
  {
4506
4499
  key: getItemLabel(item),
4507
4500
  dense,
4508
4501
  onClick: () => handleCheckboxToggle(item)
4509
4502
  },
4510
- /* @__PURE__ */ React34.createElement(ListItemIcon3, null, /* @__PURE__ */ React34.createElement(
4503
+ /* @__PURE__ */ React35.createElement(ListItemIcon3, null, /* @__PURE__ */ React35.createElement(
4511
4504
  Checkbox2,
4512
4505
  {
4513
4506
  checked: selectedItems.includes(item),
@@ -4515,9 +4508,9 @@ function MultiSelect({
4515
4508
  }
4516
4509
  )),
4517
4510
  getItemLabel(item)
4518
- )) : /* @__PURE__ */ React34.createElement(MenuItem5, { disabled: true }, "No se encontraron resultados")), /* @__PURE__ */ React34.createElement(Stack12, { direction: "row", gap: 1, p: 1, justifyContent: "space-between", bgcolor: "grey.50" }, resolvedActions.map((button2, index) => {
4511
+ )) : /* @__PURE__ */ React35.createElement(MenuItem5, { disabled: true }, "No se encontraron resultados")), /* @__PURE__ */ React35.createElement(Stack12, { direction: "row", gap: 1, p: 1, justifyContent: "space-between", bgcolor: "grey.50" }, resolvedActions.map((button2, index) => {
4519
4512
  var _a2;
4520
- return /* @__PURE__ */ React34.createElement(
4513
+ return /* @__PURE__ */ React35.createElement(
4521
4514
  Button13,
4522
4515
  {
4523
4516
  key: index,
@@ -4533,7 +4526,7 @@ function MultiSelect({
4533
4526
  }
4534
4527
 
4535
4528
  // src/Components/PageHeader/PageHeader.tsx
4536
- import React35 from "react";
4529
+ import React36 from "react";
4537
4530
  import { Stack as Stack13, Typography as Typography18 } from "@mui/material";
4538
4531
  var PageHeader = ({
4539
4532
  title,
@@ -4543,7 +4536,7 @@ var PageHeader = ({
4543
4536
  fixed,
4544
4537
  shadow = true
4545
4538
  }) => {
4546
- return /* @__PURE__ */ React35.createElement(React35.Fragment, null, /* @__PURE__ */ React35.createElement(
4539
+ return /* @__PURE__ */ React36.createElement(React36.Fragment, null, /* @__PURE__ */ React36.createElement(
4547
4540
  Stack13,
4548
4541
  {
4549
4542
  "data-testid": "main-container",
@@ -4555,12 +4548,12 @@ var PageHeader = ({
4555
4548
  zIndex: 10,
4556
4549
  sx: { boxShadow: shadow ? (theme) => theme.shadows[1] : "none" }
4557
4550
  },
4558
- /* @__PURE__ */ React35.createElement(Stack13, { "data-testid": "page-header-content", height: 40, px: 3, pl: buttonBack ? 1 : 3, direction: "row", alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ React35.createElement(Stack13, { id: "left-section", direction: "row", alignItems: "center", gap: 1 }, buttonBack, /* @__PURE__ */ React35.createElement(Stack13, { id: "text-section", gap: 0.5 }, /* @__PURE__ */ React35.createElement(Typography18, { "data-testid": "page-header-title", variant: "h6", color: "text.primary" }, title), subtitle && /* @__PURE__ */ React35.createElement(Typography18, { "data-testid": "page-header-subtitle", variant: "caption", color: "text.secondary" }, subtitle))), actions && /* @__PURE__ */ React35.createElement(Stack13, { id: "right-actions", direction: "row", alignItems: "center", gap: 1 }, actions))
4559
- ), fixed && /* @__PURE__ */ React35.createElement(Stack13, { sx: { height: 48 } }));
4551
+ /* @__PURE__ */ React36.createElement(Stack13, { "data-testid": "page-header-content", height: 40, px: 3, pl: buttonBack ? 1 : 3, direction: "row", alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ React36.createElement(Stack13, { id: "left-section", direction: "row", alignItems: "center", gap: 1 }, buttonBack, /* @__PURE__ */ React36.createElement(Stack13, { id: "text-section", gap: 0.5 }, /* @__PURE__ */ React36.createElement(Typography18, { "data-testid": "page-header-title", variant: "h6", color: "text.primary" }, title), subtitle && /* @__PURE__ */ React36.createElement(Typography18, { "data-testid": "page-header-subtitle", variant: "caption", color: "text.secondary" }, subtitle))), actions && /* @__PURE__ */ React36.createElement(Stack13, { id: "right-actions", direction: "row", alignItems: "center", gap: 1 }, actions))
4552
+ ), fixed && /* @__PURE__ */ React36.createElement(Stack13, { sx: { height: 48 } }));
4560
4553
  };
4561
4554
 
4562
4555
  // src/Components/SCAccordion.tsx
4563
- import React36, { useState as useState18 } from "react";
4556
+ import React37, { useState as useState19 } from "react";
4564
4557
  import { Box as Box21, Typography as Typography19, Accordion, AccordionSummary, AccordionDetails } from "@mui/material";
4565
4558
  import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
4566
4559
  var SCAccordion = ({
@@ -4568,18 +4561,18 @@ var SCAccordion = ({
4568
4561
  actions,
4569
4562
  children
4570
4563
  }) => {
4571
- const [open, setOpen] = useState18(false);
4572
- return /* @__PURE__ */ React36.createElement(React36.Fragment, null, /* @__PURE__ */ React36.createElement(Accordion, null, /* @__PURE__ */ React36.createElement(
4564
+ const [open, setOpen] = useState19(false);
4565
+ return /* @__PURE__ */ React37.createElement(React37.Fragment, null, /* @__PURE__ */ React37.createElement(Accordion, null, /* @__PURE__ */ React37.createElement(
4573
4566
  AccordionSummary,
4574
4567
  {
4575
- expandIcon: /* @__PURE__ */ React36.createElement(ExpandMoreIcon, { fontSize: "small", color: "action" })
4568
+ expandIcon: /* @__PURE__ */ React37.createElement(ExpandMoreIcon, { fontSize: "small", color: "action" })
4576
4569
  },
4577
- /* @__PURE__ */ React36.createElement(Box21, { sx: { display: "flex", alignItems: "center", justifyContent: "space-between", width: "100%" } }, typeof title === "string" ? /* @__PURE__ */ React36.createElement(Typography19, { noWrap: true, variant: "body1", color: "text.primary" }, title) : title, actions)
4578
- ), /* @__PURE__ */ React36.createElement(AccordionDetails, { sx: { padding: "12px" } }, children)));
4570
+ /* @__PURE__ */ React37.createElement(Box21, { sx: { display: "flex", alignItems: "center", justifyContent: "space-between", width: "100%" } }, typeof title === "string" ? /* @__PURE__ */ React37.createElement(Typography19, { noWrap: true, variant: "body1", color: "text.primary" }, title) : title, actions)
4571
+ ), /* @__PURE__ */ React37.createElement(AccordionDetails, { sx: { padding: "12px" } }, children)));
4579
4572
  };
4580
4573
 
4581
4574
  // src/Components/SCActivityCalendar.tsx
4582
- import React38, { useState as useState20 } from "react";
4575
+ import React39, { useState as useState21 } from "react";
4583
4576
  import { Typography as Typography21, IconButton as IconButton13, Box as Box23, Badge, Menu as Menu3, MenuItem as MenuItem7, ListItemIcon as ListItemIcon5, Popover as Popover6 } from "@mui/material";
4584
4577
  import Grid8 from "@mui/material/Grid";
4585
4578
  import { AdapterDateFns } from "@mui/x-date-pickers/AdapterDateFns";
@@ -4589,14 +4582,14 @@ import { es } from "date-fns/locale";
4589
4582
  import { format, startOfWeek, addDays, isSameDay } from "date-fns";
4590
4583
 
4591
4584
  // src/Components/SCListContent.tsx
4592
- import React37 from "react";
4585
+ import React38 from "react";
4593
4586
  import { Divider as Divider6, List, ListItemButton, ListItemIcon as ListItemIcon4, ListItemText as ListItemText3, SvgIcon as SvgIcon7 } from "@mui/material";
4594
4587
  import Grid7 from "@mui/material/Grid";
4595
4588
  import Avatar2 from "@mui/material/Avatar";
4596
4589
  import * as Muicon7 from "@mui/icons-material";
4597
4590
  var SCListContent = ({ options, iconLeftType = "Icon", iconRightType = "Icon" }) => {
4598
- const [selectedIndex, setSelectedIndex] = React37.useState("1");
4599
- const [value, setValue] = React37.useState("1");
4591
+ const [selectedIndex, setSelectedIndex] = React38.useState("1");
4592
+ const [value, setValue] = React38.useState("1");
4600
4593
  options.map(function(option, index, array) {
4601
4594
  if (option == null ? void 0 : option.iconLeft) {
4602
4595
  if ((option == null ? void 0 : option.iconLeft.type) == void 0) {
@@ -4615,26 +4608,26 @@ var SCListContent = ({ options, iconLeftType = "Icon", iconRightType = "Icon" })
4615
4608
  }
4616
4609
  }
4617
4610
  });
4618
- return /* @__PURE__ */ React37.createElement(React37.Fragment, null, /* @__PURE__ */ React37.createElement(List, { sx: { width: "100%", bgcolor: "background.paper", padding: "0px !important" } }, options.map((option, index) => {
4611
+ return /* @__PURE__ */ React38.createElement(React38.Fragment, null, /* @__PURE__ */ React38.createElement(List, { sx: { width: "100%", bgcolor: "background.paper", padding: "0px !important" } }, options.map((option, index) => {
4619
4612
  var _a, _b;
4620
- return /* @__PURE__ */ React37.createElement(React37.Fragment, { key: index }, /* @__PURE__ */ React37.createElement(
4613
+ return /* @__PURE__ */ React38.createElement(React38.Fragment, { key: index }, /* @__PURE__ */ React38.createElement(
4621
4614
  ListItemButton,
4622
4615
  {
4623
4616
  disabled: option.disable,
4624
4617
  onClick: option.fn,
4625
4618
  sx: { gap: 1, padding: iconLeftType == "Icon" ? "8px 8px" : "8px 8px 8px 0px" }
4626
4619
  },
4627
- option.iconLeft ? iconLeftType == "Icon" ? /* @__PURE__ */ React37.createElement(ListItemIcon4, { sx: { minWidth: "0px !important" } }, /* @__PURE__ */ React37.createElement(SvgIcon7, { fontSize: "small", sx: { color: option.iconLeftColor || "action" }, component: option.iconLeft })) : /* @__PURE__ */ React37.createElement(Avatar2, { sx: { width: 25, height: 25, fontSize: "11px", bgcolor: option.iconLeftColor ? `${option.iconLeftColor}.main` : "default" } }, ((_a = option.iconLeft) == null ? void 0 : _a.type) != void 0 ? /* @__PURE__ */ React37.createElement(SvgIcon7, { fontSize: "small", component: option.iconLeft }) : option.iconLeft) : "",
4628
- /* @__PURE__ */ React37.createElement(
4620
+ option.iconLeft ? iconLeftType == "Icon" ? /* @__PURE__ */ React38.createElement(ListItemIcon4, { sx: { minWidth: "0px !important" } }, /* @__PURE__ */ React38.createElement(SvgIcon7, { fontSize: "small", sx: { color: option.iconLeftColor || "action" }, component: option.iconLeft })) : /* @__PURE__ */ React38.createElement(Avatar2, { sx: { width: 25, height: 25, fontSize: "11px", bgcolor: option.iconLeftColor ? `${option.iconLeftColor}.main` : "default" } }, ((_a = option.iconLeft) == null ? void 0 : _a.type) != void 0 ? /* @__PURE__ */ React38.createElement(SvgIcon7, { fontSize: "small", component: option.iconLeft }) : option.iconLeft) : "",
4621
+ /* @__PURE__ */ React38.createElement(
4629
4622
  ListItemText3,
4630
4623
  {
4631
4624
  sx: { color: option.colorDisabled == true ? "text.disabled" : "default" },
4632
4625
  primary: option.title,
4633
- secondary: /* @__PURE__ */ React37.createElement(Grid7, { gap: 0.5 }, /* @__PURE__ */ React37.createElement(Grid7, { container: true, gap: 0.5, sx: { color: option.colorDisabled == true ? "text.disabled" : "default" } }, option.subtitle), /* @__PURE__ */ React37.createElement(Grid7, { container: true, gap: 0.5, sx: { color: option.colorDisabled == true ? "text.disabled" : "default" } }, option.description))
4626
+ secondary: /* @__PURE__ */ React38.createElement(Grid7, { gap: 0.5 }, /* @__PURE__ */ React38.createElement(Grid7, { container: true, gap: 0.5, sx: { color: option.colorDisabled == true ? "text.disabled" : "default" } }, option.subtitle), /* @__PURE__ */ React38.createElement(Grid7, { container: true, gap: 0.5, sx: { color: option.colorDisabled == true ? "text.disabled" : "default" } }, option.description))
4634
4627
  }
4635
4628
  ),
4636
- option.iconRight ? iconRightType == "Icon" ? /* @__PURE__ */ React37.createElement(ListItemIcon4, { sx: { minWidth: "0px !important", marginRight: "8px" } }, /* @__PURE__ */ React37.createElement(SvgIcon7, { fontSize: "small", sx: { color: option.iconRightColor || "action" }, component: option.iconRight })) : /* @__PURE__ */ React37.createElement(Avatar2, { variant: "circular", sx: { width: 20, height: 20 } }, ((_b = option.iconRight) == null ? void 0 : _b.type) != void 0 ? /* @__PURE__ */ React37.createElement(SvgIcon7, { fontSize: "small", color: option.iconRightColor || "action", component: option.iconRight }) : option.iconRight) : ""
4637
- ), option.divider == true ? /* @__PURE__ */ React37.createElement(Divider6, null) : "");
4629
+ option.iconRight ? iconRightType == "Icon" ? /* @__PURE__ */ React38.createElement(ListItemIcon4, { sx: { minWidth: "0px !important", marginRight: "8px" } }, /* @__PURE__ */ React38.createElement(SvgIcon7, { fontSize: "small", sx: { color: option.iconRightColor || "action" }, component: option.iconRight })) : /* @__PURE__ */ React38.createElement(Avatar2, { variant: "circular", sx: { width: 20, height: 20 } }, ((_b = option.iconRight) == null ? void 0 : _b.type) != void 0 ? /* @__PURE__ */ React38.createElement(SvgIcon7, { fontSize: "small", color: option.iconRightColor || "action", component: option.iconRight }) : option.iconRight) : ""
4630
+ ), option.divider == true ? /* @__PURE__ */ React38.createElement(Divider6, null) : "");
4638
4631
  })));
4639
4632
  };
4640
4633
 
@@ -4660,22 +4653,22 @@ var SCActivityCalendar = ({
4660
4653
  configRangeHour
4661
4654
  }) => {
4662
4655
  let convertFecha;
4663
- const [fecha, setFecha] = useState20(/* @__PURE__ */ new Date());
4664
- const [fechaSeleccionada, setFechaSeleccionada] = useState20();
4665
- const [stateVal, setstateVal] = React38.useState(/* @__PURE__ */ new Date());
4666
- const [openCalendar, setOpenCalendar] = React38.useState(false);
4667
- const [anchorPopoverFiltro, setAnchorPopoverFiltro] = useState20(null);
4668
- const [datosEventos, setDatosEventos] = React38.useState(events);
4656
+ const [fecha, setFecha] = useState21(/* @__PURE__ */ new Date());
4657
+ const [fechaSeleccionada, setFechaSeleccionada] = useState21();
4658
+ const [stateVal, setstateVal] = React39.useState(/* @__PURE__ */ new Date());
4659
+ const [openCalendar, setOpenCalendar] = React39.useState(false);
4660
+ const [anchorPopoverFiltro, setAnchorPopoverFiltro] = useState21(null);
4661
+ const [datosEventos, setDatosEventos] = React39.useState(events);
4669
4662
  const openPopoverFiltro = Boolean(anchorPopoverFiltro);
4670
4663
  const hoy = /* @__PURE__ */ new Date();
4671
4664
  const inicioSemana = startOfWeek(fecha, { weekStartsOn: 0 });
4672
4665
  const diasSemana = Array.from({ length: 7 }, (_, i) => addDays(inicioSemana, i));
4673
- React38.useEffect(() => {
4666
+ React39.useEffect(() => {
4674
4667
  if (fecha != null) {
4675
4668
  handleConvertFecha(fecha);
4676
4669
  }
4677
4670
  }, [fecha]);
4678
- React38.useEffect(() => {
4671
+ React39.useEffect(() => {
4679
4672
  if (events != null) {
4680
4673
  setDatosEventos(events);
4681
4674
  }
@@ -4715,7 +4708,7 @@ var SCActivityCalendar = ({
4715
4708
  setDatosEventos(resultado);
4716
4709
  }
4717
4710
  };
4718
- return /* @__PURE__ */ React38.createElement(React38.Fragment, null, /* @__PURE__ */ React38.createElement(LocalizationProvider2, { dateAdapter: AdapterDateFns, adapterLocale: locale }, openCalendar == false ? /* @__PURE__ */ React38.createElement(Box23, { "data-testid": "calendar-mobile", sx: { width: "100%", background: background ? background : "white", display: "flex", flexDirection: "column", alignItems: "center" } }, /* @__PURE__ */ React38.createElement(Box23, { sx: { width: "100%", padding: "0px", background: "transparent" } }, /* @__PURE__ */ React38.createElement(Grid8, { container: true, gap: 0.5, sx: { justifyContent: "space-between", padding: "12px 16px", background: "transparent" } }, diasSemana.map((dia) => /* @__PURE__ */ React38.createElement(Grid8, { sx: { width: "36px" }, key: dia.toString() }, /* @__PURE__ */ React38.createElement(Box23, { sx: { width: "36px", height: "40px", display: "flex", alignItems: "center", justifyContent: "center" } }, /* @__PURE__ */ React38.createElement(Typography21, { sx: { fontSize: "12px !important", color: "#10184099" } }, format(dia, "EEEE", { locale: es }).charAt(0).toUpperCase())), /* @__PURE__ */ React38.createElement(
4711
+ return /* @__PURE__ */ React39.createElement(React39.Fragment, null, /* @__PURE__ */ React39.createElement(LocalizationProvider2, { dateAdapter: AdapterDateFns, adapterLocale: locale }, openCalendar == false ? /* @__PURE__ */ React39.createElement(Box23, { "data-testid": "calendar-mobile", sx: { width: "100%", background: background ? background : "white", display: "flex", flexDirection: "column", alignItems: "center" } }, /* @__PURE__ */ React39.createElement(Box23, { sx: { width: "100%", padding: "0px", background: "transparent" } }, /* @__PURE__ */ React39.createElement(Grid8, { container: true, gap: 0.5, sx: { justifyContent: "space-between", padding: "12px 16px", background: "transparent" } }, diasSemana.map((dia) => /* @__PURE__ */ React39.createElement(Grid8, { sx: { width: "36px" }, key: dia.toString() }, /* @__PURE__ */ React39.createElement(Box23, { sx: { width: "36px", height: "40px", display: "flex", alignItems: "center", justifyContent: "center" } }, /* @__PURE__ */ React39.createElement(Typography21, { sx: { fontSize: "12px !important", color: "#10184099" } }, format(dia, "EEEE", { locale: es }).charAt(0).toUpperCase())), /* @__PURE__ */ React39.createElement(
4719
4712
  Box23,
4720
4713
  {
4721
4714
  onClick: () => setFecha(dia),
@@ -4728,8 +4721,8 @@ var SCActivityCalendar = ({
4728
4721
  position: "relative"
4729
4722
  }
4730
4723
  },
4731
- /* @__PURE__ */ React38.createElement(Typography21, { sx: { fontSize: "12px !important", color: isSameDay(dia, fecha) ? "white" : "#101840DE" } }, format(dia, "d"))
4732
- )))), /* @__PURE__ */ React38.createElement(Grid8, { container: true, justifyContent: "center" }, /* @__PURE__ */ React38.createElement(IconButton13, { "data-testid": "open-calendar-button", onClick: toggleCalendar(true) }, /* @__PURE__ */ React38.createElement(KeyboardDoubleArrowDownIcon, { color: "action" }))))) : /* @__PURE__ */ React38.createElement(Box23, { sx: { width: "100%", background: "white" } }, /* @__PURE__ */ React38.createElement(
4724
+ /* @__PURE__ */ React39.createElement(Typography21, { sx: { fontSize: "12px !important", color: isSameDay(dia, fecha) ? "white" : "#101840DE" } }, format(dia, "d"))
4725
+ )))), /* @__PURE__ */ React39.createElement(Grid8, { container: true, justifyContent: "center" }, /* @__PURE__ */ React39.createElement(IconButton13, { "data-testid": "open-calendar-button", onClick: toggleCalendar(true) }, /* @__PURE__ */ React39.createElement(KeyboardDoubleArrowDownIcon, { color: "action" }))))) : /* @__PURE__ */ React39.createElement(Box23, { sx: { width: "100%", background: "white" } }, /* @__PURE__ */ React39.createElement(
4733
4726
  StaticDatePicker,
4734
4727
  {
4735
4728
  orientation: "landscape",
@@ -4754,7 +4747,7 @@ var SCActivityCalendar = ({
4754
4747
  },
4755
4748
  onChange: (newValue) => setFecha(newValue)
4756
4749
  }
4757
- ), /* @__PURE__ */ React38.createElement(Grid8, { container: true, justifyContent: "center" }, /* @__PURE__ */ React38.createElement(IconButton13, { "data-testid": "close-calendar-button", onClick: toggleCalendar(false) }, /* @__PURE__ */ React38.createElement(KeyboardDoubleArrowUpIcon, { color: "action" }))))), /* @__PURE__ */ React38.createElement(IconButton13, { onClick: handleClickPopoverFiltro, sx: { position: "fixed", right: "calc(100% - 96%)", top: openCalendar == false ? "220px" : "444px" } }, /* @__PURE__ */ React38.createElement(FilterListIcon, { color: "action" })), /* @__PURE__ */ React38.createElement(
4750
+ ), /* @__PURE__ */ React39.createElement(Grid8, { container: true, justifyContent: "center" }, /* @__PURE__ */ React39.createElement(IconButton13, { "data-testid": "close-calendar-button", onClick: toggleCalendar(false) }, /* @__PURE__ */ React39.createElement(KeyboardDoubleArrowUpIcon, { color: "action" }))))), /* @__PURE__ */ React39.createElement(IconButton13, { onClick: handleClickPopoverFiltro, sx: { position: "fixed", right: "calc(100% - 96%)", top: openCalendar == false ? "220px" : "444px" } }, /* @__PURE__ */ React39.createElement(FilterListIcon, { color: "action" })), /* @__PURE__ */ React39.createElement(
4758
4751
  Popover6,
4759
4752
  {
4760
4753
  open: openPopoverFiltro,
@@ -4765,7 +4758,7 @@ var SCActivityCalendar = ({
4765
4758
  horizontal: "right"
4766
4759
  }
4767
4760
  },
4768
- /* @__PURE__ */ React38.createElement(
4761
+ /* @__PURE__ */ React39.createElement(
4769
4762
  Menu3,
4770
4763
  {
4771
4764
  id: "basic-menu",
@@ -4778,24 +4771,24 @@ var SCActivityCalendar = ({
4778
4771
  }
4779
4772
  }
4780
4773
  },
4781
- /* @__PURE__ */ React38.createElement(MenuItem7, { onClick: (event2) => filtrarActividad(event2, "Todo") }, /* @__PURE__ */ React38.createElement(ListItemIcon5, null, /* @__PURE__ */ React38.createElement(CalendarMonthOutlinedIcon, { fontSize: "small" })), /* @__PURE__ */ React38.createElement(Typography21, { variant: "inherit" }, "Ver todo")),
4782
- /* @__PURE__ */ React38.createElement(MenuItem7, { onClick: (event2) => filtrarActividad(event2, "Finalizada") }, /* @__PURE__ */ React38.createElement(ListItemIcon5, null, /* @__PURE__ */ React38.createElement(CheckCircleOutlineOutlinedIcon, { fontSize: "small" })), /* @__PURE__ */ React38.createElement(Typography21, { variant: "inherit" }, "Ver finalizadas")),
4783
- /* @__PURE__ */ React38.createElement(MenuItem7, { onClick: (event2) => filtrarActividad(event2, "Aplazada") }, /* @__PURE__ */ React38.createElement(ListItemIcon5, null, /* @__PURE__ */ React38.createElement(EventBusyOutlinedIcon, { fontSize: "small" })), /* @__PURE__ */ React38.createElement(Typography21, { variant: "inherit" }, "Ver aplazadas")),
4784
- /* @__PURE__ */ React38.createElement(MenuItem7, { onClick: (event2) => filtrarActividad(event2, "En progreso") }, /* @__PURE__ */ React38.createElement(ListItemIcon5, null, /* @__PURE__ */ React38.createElement(PendingOutlinedIcon, { fontSize: "small" })), /* @__PURE__ */ React38.createElement(Typography21, { variant: "inherit" }, "Ver en progreso"))
4774
+ /* @__PURE__ */ React39.createElement(MenuItem7, { onClick: (event2) => filtrarActividad(event2, "Todo") }, /* @__PURE__ */ React39.createElement(ListItemIcon5, null, /* @__PURE__ */ React39.createElement(CalendarMonthOutlinedIcon, { fontSize: "small" })), /* @__PURE__ */ React39.createElement(Typography21, { variant: "inherit" }, "Ver todo")),
4775
+ /* @__PURE__ */ React39.createElement(MenuItem7, { onClick: (event2) => filtrarActividad(event2, "Finalizada") }, /* @__PURE__ */ React39.createElement(ListItemIcon5, null, /* @__PURE__ */ React39.createElement(CheckCircleOutlineOutlinedIcon, { fontSize: "small" })), /* @__PURE__ */ React39.createElement(Typography21, { variant: "inherit" }, "Ver finalizadas")),
4776
+ /* @__PURE__ */ React39.createElement(MenuItem7, { onClick: (event2) => filtrarActividad(event2, "Aplazada") }, /* @__PURE__ */ React39.createElement(ListItemIcon5, null, /* @__PURE__ */ React39.createElement(EventBusyOutlinedIcon, { fontSize: "small" })), /* @__PURE__ */ React39.createElement(Typography21, { variant: "inherit" }, "Ver aplazadas")),
4777
+ /* @__PURE__ */ React39.createElement(MenuItem7, { onClick: (event2) => filtrarActividad(event2, "En progreso") }, /* @__PURE__ */ React39.createElement(ListItemIcon5, null, /* @__PURE__ */ React39.createElement(PendingOutlinedIcon, { fontSize: "small" })), /* @__PURE__ */ React39.createElement(Typography21, { variant: "inherit" }, "Ver en progreso"))
4785
4778
  )
4786
- ), /* @__PURE__ */ React38.createElement(Box23, { sx: { boxSizing: "border-box", padding: "0px 16px", width: "100%", height: openCalendar ? "calc(91% - 316px)" : "calc(91% - 100px)", background: "white", display: "flex", flexDirection: "column", overflowY: "auto", gap: "8px", scrollSnapType: "x mandatory", paddingBottom: "10px" } }, diasSemana.map((day, dayIndex) => /* @__PURE__ */ React38.createElement(
4779
+ ), /* @__PURE__ */ React39.createElement(Box23, { sx: { boxSizing: "border-box", padding: "0px 16px", width: "100%", height: openCalendar ? "calc(91% - 316px)" : "calc(91% - 100px)", background: "white", display: "flex", flexDirection: "column", overflowY: "auto", gap: "8px", scrollSnapType: "x mandatory", paddingBottom: "10px" } }, diasSemana.map((day, dayIndex) => /* @__PURE__ */ React39.createElement(
4787
4780
  Box23,
4788
4781
  {
4789
4782
  key: dayIndex
4790
4783
  },
4791
- /* @__PURE__ */ React38.createElement(Grid8, { container: true }, /* @__PURE__ */ React38.createElement(Typography21, { variant: "subtitle1", sx: { color: isSameDay(day, fecha) ? "info.dark" : "text.secondary" } }, day.toLocaleDateString("es-ES", {
4784
+ /* @__PURE__ */ React39.createElement(Grid8, { container: true }, /* @__PURE__ */ React39.createElement(Typography21, { variant: "subtitle1", sx: { color: isSameDay(day, fecha) ? "info.dark" : "text.secondary" } }, day.toLocaleDateString("es-ES", {
4792
4785
  day: "numeric"
4793
4786
  }), " de ", day.toLocaleDateString("es-ES", {
4794
4787
  month: "short"
4795
4788
  }), ", ", day.toLocaleDateString("es-ES", {
4796
4789
  weekday: "long"
4797
4790
  }))),
4798
- /* @__PURE__ */ React38.createElement(Box23, { sx: {
4791
+ /* @__PURE__ */ React39.createElement(Box23, { sx: {
4799
4792
  display: "flex",
4800
4793
  flexDirection: "column"
4801
4794
  } }, (() => {
@@ -4804,16 +4797,16 @@ var SCActivityCalendar = ({
4804
4797
  (event2) => (/* @__PURE__ */ new Date(event2.date + "T00:00:00")).toDateString() === day.toDateString()
4805
4798
  );
4806
4799
  if (eventosDelDia.length > 0) {
4807
- return eventosDelDia.map((event2, idx) => /* @__PURE__ */ React38.createElement(
4800
+ return eventosDelDia.map((event2, idx) => /* @__PURE__ */ React39.createElement(
4808
4801
  SCListContent,
4809
4802
  {
4810
4803
  key: idx,
4811
4804
  options: [{
4812
4805
  title: event2.activityDescription,
4813
- subtitle: /* @__PURE__ */ React38.createElement(React38.Fragment, null, configRangeHour && (/* @__PURE__ */ new Date(event2.date + "T" + event2.startTime)).getHours() === (/* @__PURE__ */ new Date(event2.date + "T" + configRangeHour.split("-")[0])).getHours() && (/* @__PURE__ */ new Date(event2.date + "T" + event2.finalTime)).getHours() === (/* @__PURE__ */ new Date(event2.date + "T" + configRangeHour.split("-")[1])).getHours() && (/* @__PURE__ */ new Date(event2.date + "T" + event2.startTime)).getMinutes() === (/* @__PURE__ */ new Date(event2.date + "T" + configRangeHour.split("-")[0])).getMinutes() && (/* @__PURE__ */ new Date(event2.date + "T" + event2.finalTime)).getMinutes() === (/* @__PURE__ */ new Date(event2.date + "T" + configRangeHour.split("-")[1])).getMinutes() ? /* @__PURE__ */ React38.createElement(React38.Fragment, null, /* @__PURE__ */ React38.createElement(Typography21, { variant: "body2" }, "Todo el dia"), /* @__PURE__ */ React38.createElement(LightModeOutlinedIcon, { fontSize: "small" })) : /* @__PURE__ */ React38.createElement(React38.Fragment, null, /* @__PURE__ */ React38.createElement(Typography21, { variant: "body2" }, (/* @__PURE__ */ new Date(event2.date + "T" + event2.startTime)).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: true })), /* @__PURE__ */ React38.createElement(ArrowForwardIcon, { fontSize: "small" }), /* @__PURE__ */ React38.createElement(Typography21, { variant: "body2" }, (/* @__PURE__ */ new Date(event2.date + "T" + event2.finalTime)).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: true })))),
4806
+ subtitle: /* @__PURE__ */ React39.createElement(React39.Fragment, null, configRangeHour && (/* @__PURE__ */ new Date(event2.date + "T" + event2.startTime)).getHours() === (/* @__PURE__ */ new Date(event2.date + "T" + configRangeHour.split("-")[0])).getHours() && (/* @__PURE__ */ new Date(event2.date + "T" + event2.finalTime)).getHours() === (/* @__PURE__ */ new Date(event2.date + "T" + configRangeHour.split("-")[1])).getHours() && (/* @__PURE__ */ new Date(event2.date + "T" + event2.startTime)).getMinutes() === (/* @__PURE__ */ new Date(event2.date + "T" + configRangeHour.split("-")[0])).getMinutes() && (/* @__PURE__ */ new Date(event2.date + "T" + event2.finalTime)).getMinutes() === (/* @__PURE__ */ new Date(event2.date + "T" + configRangeHour.split("-")[1])).getMinutes() ? /* @__PURE__ */ React39.createElement(React39.Fragment, null, /* @__PURE__ */ React39.createElement(Typography21, { variant: "body2" }, "Todo el dia"), /* @__PURE__ */ React39.createElement(LightModeOutlinedIcon, { fontSize: "small" })) : /* @__PURE__ */ React39.createElement(React39.Fragment, null, /* @__PURE__ */ React39.createElement(Typography21, { variant: "body2" }, (/* @__PURE__ */ new Date(event2.date + "T" + event2.startTime)).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: true })), /* @__PURE__ */ React39.createElement(ArrowForwardIcon, { fontSize: "small" }), /* @__PURE__ */ React39.createElement(Typography21, { variant: "body2" }, (/* @__PURE__ */ new Date(event2.date + "T" + event2.finalTime)).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: true })))),
4814
4807
  iconLeftColor: event2.state === "Finalizada" ? "#C7E49D" : "action",
4815
4808
  iconLeft: event2.state === "Finalizada" ? "CheckCircle" : event2.state === "Aplazada" ? "EventBusyOutlined" : event2.state === "En progreso" ? "PendingOutlined" : "RadioButtonUnchecked",
4816
- description: /* @__PURE__ */ React38.createElement(Grid8, { display: "flex", flexDirection: "column", alignItems: "flex-start" }, event2.state === "Aplazada" || event2.state === "En progreso" || event2.state === "Auto asignada" ? /* @__PURE__ */ React38.createElement(Grid8, { display: "flex", flexDirection: "row", alignItems: "center", gap: 0.5, sx: { marginLeft: "7px" } }, /* @__PURE__ */ React38.createElement(Badge, { variant: "dot", badgeContent: "", sx: { display: "flex", alignItems: "center", "& .MuiBadge-badge": { top: "50%", transform: "translateY(-50%)" }, color: "action" } }), /* @__PURE__ */ React38.createElement(Typography21, { variant: "body2" }, event2.state == "Auto asignada" ? "Adicional" : event2.state)) : null, /* @__PURE__ */ React38.createElement(Typography21, { variant: "body1" }, event2.equipmentDescription)),
4809
+ description: /* @__PURE__ */ React39.createElement(Grid8, { display: "flex", flexDirection: "column", alignItems: "flex-start" }, event2.state === "Aplazada" || event2.state === "En progreso" || event2.state === "Auto asignada" ? /* @__PURE__ */ React39.createElement(Grid8, { display: "flex", flexDirection: "row", alignItems: "center", gap: 0.5, sx: { marginLeft: "7px" } }, /* @__PURE__ */ React39.createElement(Badge, { variant: "dot", badgeContent: "", sx: { display: "flex", alignItems: "center", "& .MuiBadge-badge": { top: "50%", transform: "translateY(-50%)" }, color: "action" } }), /* @__PURE__ */ React39.createElement(Typography21, { variant: "body2" }, event2.state == "Auto asignada" ? "Adicional" : event2.state)) : null, /* @__PURE__ */ React39.createElement(Typography21, { variant: "body1" }, event2.equipmentDescription)),
4817
4810
  divider: eventosDelDia.length === idx + 1 ? false : true,
4818
4811
  colorDisabled: event2.state === "Finalizada" || event2.state === "Aplazada" || event2.state === "En progreso" ? true : false,
4819
4812
  fn: fn ? () => fn(event2) : void 0
@@ -4821,7 +4814,7 @@ var SCActivityCalendar = ({
4821
4814
  }
4822
4815
  ));
4823
4816
  } else {
4824
- return /* @__PURE__ */ React38.createElement(
4817
+ return /* @__PURE__ */ React39.createElement(
4825
4818
  SCListContent,
4826
4819
  {
4827
4820
  options: [{
@@ -4837,7 +4830,7 @@ var SCActivityCalendar = ({
4837
4830
  };
4838
4831
 
4839
4832
  // src/Components/SCAlert.tsx
4840
- import React39 from "react";
4833
+ import React40 from "react";
4841
4834
  import { Alert, AlertTitle, Typography as Typography22 } from "@mui/material";
4842
4835
  var SCAlert = ({
4843
4836
  title,
@@ -4852,7 +4845,7 @@ var SCAlert = ({
4852
4845
  const handleClose = (event2) => {
4853
4846
  setOpenState(false);
4854
4847
  };
4855
- return /* @__PURE__ */ React39.createElement(React39.Fragment, null, openState && /* @__PURE__ */ React39.createElement(
4848
+ return /* @__PURE__ */ React40.createElement(React40.Fragment, null, openState && /* @__PURE__ */ React40.createElement(
4856
4849
  Alert,
4857
4850
  __spreadProps(__spreadValues({
4858
4851
  severity,
@@ -4867,13 +4860,13 @@ var SCAlert = ({
4867
4860
  }
4868
4861
  })
4869
4862
  }),
4870
- /* @__PURE__ */ React39.createElement(AlertTitle, null, title),
4871
- subtitle ? /* @__PURE__ */ React39.createElement(Typography22, { variant: "body3" }, subtitle) : null
4863
+ /* @__PURE__ */ React40.createElement(AlertTitle, null, title),
4864
+ subtitle ? /* @__PURE__ */ React40.createElement(Typography22, { variant: "body3" }, subtitle) : null
4872
4865
  ));
4873
4866
  };
4874
4867
 
4875
4868
  // src/Components/SCAppBar.tsx
4876
- import React40, { useState as useState21, useEffect as useEffect16 } from "react";
4869
+ import React41, { useState as useState22, useEffect as useEffect16 } from "react";
4877
4870
  import { Menu as Menu4, Box as Box24, Typography as Typography23, MenuItem as MenuItem8, IconButton as IconButton14, Badge as Badge2 } from "@mui/material";
4878
4871
  import Grid9 from "@mui/material/Grid";
4879
4872
  import "dayjs/locale/es";
@@ -4889,8 +4882,8 @@ var SCAppBar = ({
4889
4882
  visibleConexion = true,
4890
4883
  visibleMenu = true
4891
4884
  }) => {
4892
- const [isOnline, setIsOnline] = useState21(window.navigator.onLine);
4893
- const [anchorEl, setAnchorEl] = useState21(null);
4885
+ const [isOnline, setIsOnline] = useState22(window.navigator.onLine);
4886
+ const [anchorEl, setAnchorEl] = useState22(null);
4894
4887
  const openMenu = Boolean(anchorEl);
4895
4888
  const handleMenuClick = (event2) => {
4896
4889
  setAnchorEl(event2.currentTarget);
@@ -4912,7 +4905,7 @@ var SCAppBar = ({
4912
4905
  window.removeEventListener("offline", handleOffline);
4913
4906
  };
4914
4907
  }, []);
4915
- return /* @__PURE__ */ React40.createElement(React40.Fragment, null, /* @__PURE__ */ React40.createElement(Grid9, { sx: { display: "flex", flexDirection: "column" } }, /* @__PURE__ */ React40.createElement(Grid9, { size: 12, sx: { display: "flex", flexDirection: "row", alignItems: "center", background, padding: "0px 16px", justifyContent: "space-between" } }, visibleVolver && /* @__PURE__ */ React40.createElement(IconButton14, { size: "medium", onClick: fnVolver }, /* @__PURE__ */ React40.createElement(ArrowBackIcon, { color: "action" })), /* @__PURE__ */ React40.createElement(Grid9, { sx: { display: "flex", flexDirection: "row", alignItems: "center" } }, visibleConexion && /* @__PURE__ */ React40.createElement(Grid9, { sx: { display: "flex", flexDirection: "row", alignItems: "center" } }, isOnline ? /* @__PURE__ */ React40.createElement(Wifi, { color: "action", sx: { marginRight: "8px" } }) : /* @__PURE__ */ React40.createElement(WifiOff, { color: "action", sx: { marginRight: "8px" } }), /* @__PURE__ */ React40.createElement(
4908
+ return /* @__PURE__ */ React41.createElement(React41.Fragment, null, /* @__PURE__ */ React41.createElement(Grid9, { sx: { display: "flex", flexDirection: "column" } }, /* @__PURE__ */ React41.createElement(Grid9, { size: 12, sx: { display: "flex", flexDirection: "row", alignItems: "center", background, padding: "0px 16px", justifyContent: "space-between" } }, visibleVolver && /* @__PURE__ */ React41.createElement(IconButton14, { size: "medium", onClick: fnVolver }, /* @__PURE__ */ React41.createElement(ArrowBackIcon, { color: "action" })), /* @__PURE__ */ React41.createElement(Grid9, { sx: { display: "flex", flexDirection: "row", alignItems: "center" } }, visibleConexion && /* @__PURE__ */ React41.createElement(Grid9, { sx: { display: "flex", flexDirection: "row", alignItems: "center" } }, isOnline ? /* @__PURE__ */ React41.createElement(Wifi, { color: "action", sx: { marginRight: "8px" } }) : /* @__PURE__ */ React41.createElement(WifiOff, { color: "action", sx: { marginRight: "8px" } }), /* @__PURE__ */ React41.createElement(
4916
4909
  Badge2,
4917
4910
  {
4918
4911
  anchorOrigin: {
@@ -4927,7 +4920,7 @@ var SCAppBar = ({
4927
4920
  },
4928
4921
  color: isOnline ? "success" : "error"
4929
4922
  }
4930
- ), /* @__PURE__ */ React40.createElement(Typography23, { variant: "caption", color: "text.secondary" }, isOnline ? "Online" : "Offline")), visibleMenu && /* @__PURE__ */ React40.createElement(React40.Fragment, null, /* @__PURE__ */ React40.createElement(IconButton14, { size: "medium", onClick: handleMenuClick }, /* @__PURE__ */ React40.createElement(MenuIcon, { color: "action" })), /* @__PURE__ */ React40.createElement(
4923
+ ), /* @__PURE__ */ React41.createElement(Typography23, { variant: "caption", color: "text.secondary" }, isOnline ? "Online" : "Offline")), visibleMenu && /* @__PURE__ */ React41.createElement(React41.Fragment, null, /* @__PURE__ */ React41.createElement(IconButton14, { size: "medium", onClick: handleMenuClick }, /* @__PURE__ */ React41.createElement(MenuIcon, { color: "action" })), /* @__PURE__ */ React41.createElement(
4931
4924
  Menu4,
4932
4925
  {
4933
4926
  anchorEl,
@@ -4943,12 +4936,12 @@ var SCAppBar = ({
4943
4936
  },
4944
4937
  sx: { zIndex: "2000" }
4945
4938
  },
4946
- options.map((option, index) => /* @__PURE__ */ React40.createElement(MenuItem8, { onClick: option.fn, disabled: option.disabled, key: index }, /* @__PURE__ */ React40.createElement(Typography23, { variant: "body2" }, option.name)))
4947
- )))), /* @__PURE__ */ React40.createElement(Box24, { sx: { padding: "8px 16px 0px 16px" } }, contenidoExtra)));
4939
+ options.map((option, index) => /* @__PURE__ */ React41.createElement(MenuItem8, { onClick: option.fn, disabled: option.disabled, key: index }, /* @__PURE__ */ React41.createElement(Typography23, { variant: "body2" }, option.name)))
4940
+ )))), /* @__PURE__ */ React41.createElement(Box24, { sx: { padding: "8px 16px 0px 16px" } }, contenidoExtra)));
4948
4941
  };
4949
4942
 
4950
4943
  // src/Components/SCCalendarSwipeable.tsx
4951
- import React41, { useState as useState22 } from "react";
4944
+ import React42, { useState as useState23 } from "react";
4952
4945
  import { Typography as Typography24, IconButton as IconButton15, Box as Box25 } from "@mui/material";
4953
4946
  import Grid10 from "@mui/material/Grid";
4954
4947
  import { AdapterDateFns as AdapterDateFns2 } from "@mui/x-date-pickers/AdapterDateFns";
@@ -4967,14 +4960,14 @@ var SCCalendarSwipeable = ({
4967
4960
  state
4968
4961
  }) => {
4969
4962
  let convertFecha;
4970
- const [fecha, setFecha] = useState22(/* @__PURE__ */ new Date());
4971
- const [fechaSeleccionada, setFechaSeleccionada] = useState22();
4972
- const [stateVal, setstateVal] = React41.useState(/* @__PURE__ */ new Date());
4973
- const [openCalendar, setOpenCalendar] = React41.useState(false);
4963
+ const [fecha, setFecha] = useState23(/* @__PURE__ */ new Date());
4964
+ const [fechaSeleccionada, setFechaSeleccionada] = useState23();
4965
+ const [stateVal, setstateVal] = React42.useState(/* @__PURE__ */ new Date());
4966
+ const [openCalendar, setOpenCalendar] = React42.useState(false);
4974
4967
  const hoy = /* @__PURE__ */ new Date();
4975
4968
  const inicioSemana = startOfWeek2(fecha, { weekStartsOn: 0 });
4976
4969
  const diasSemana = Array.from({ length: 7 }, (_, i) => addDays2(inicioSemana, i));
4977
- React41.useEffect(() => {
4970
+ React42.useEffect(() => {
4978
4971
  if (fecha != null) {
4979
4972
  handleConvertFecha(fecha);
4980
4973
  }
@@ -4998,7 +4991,7 @@ var SCCalendarSwipeable = ({
4998
4991
  // 0 = domingo, 1 = lunes
4999
4992
  })
5000
4993
  });
5001
- return /* @__PURE__ */ React41.createElement(React41.Fragment, null, /* @__PURE__ */ React41.createElement(LocalizationProvider3, { dateAdapter: AdapterDateFns2, adapterLocale: locale }, openCalendar == false ? /* @__PURE__ */ React41.createElement(Box25, { "data-testid": "calendar-mobile", sx: { width: "100%", background: background ? background : "white", display: "flex", flexDirection: "column", alignItems: "center" } }, /* @__PURE__ */ React41.createElement(Box25, { sx: { width: "100%", padding: "0px 16px", background: "transparent" } }, /* @__PURE__ */ React41.createElement(Grid10, { container: true, gap: 0.5, sx: { justifyContent: "space-between", padding: "12px 0px", background: "transparent" } }, diasSemana.map((dia) => /* @__PURE__ */ React41.createElement(Grid10, { sx: { width: "36px" }, key: dia.toString() }, /* @__PURE__ */ React41.createElement(Box25, { sx: { width: "36px", height: "40px", display: "flex", alignItems: "center", justifyContent: "center" } }, /* @__PURE__ */ React41.createElement(Typography24, { sx: { fontSize: "12px !important", color: "#10184099" } }, format2(dia, "EEEE", { locale: es2 }).charAt(0).toUpperCase())), /* @__PURE__ */ React41.createElement(
4994
+ return /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(LocalizationProvider3, { dateAdapter: AdapterDateFns2, adapterLocale: locale }, openCalendar == false ? /* @__PURE__ */ React42.createElement(Box25, { "data-testid": "calendar-mobile", sx: { width: "100%", background: background ? background : "white", display: "flex", flexDirection: "column", alignItems: "center" } }, /* @__PURE__ */ React42.createElement(Box25, { sx: { width: "100%", padding: "0px 16px", background: "transparent" } }, /* @__PURE__ */ React42.createElement(Grid10, { container: true, gap: 0.5, sx: { justifyContent: "space-between", padding: "12px 0px", background: "transparent" } }, diasSemana.map((dia) => /* @__PURE__ */ React42.createElement(Grid10, { sx: { width: "36px" }, key: dia.toString() }, /* @__PURE__ */ React42.createElement(Box25, { sx: { width: "36px", height: "40px", display: "flex", alignItems: "center", justifyContent: "center" } }, /* @__PURE__ */ React42.createElement(Typography24, { sx: { fontSize: "12px !important", color: "#10184099" } }, format2(dia, "EEEE", { locale: es2 }).charAt(0).toUpperCase())), /* @__PURE__ */ React42.createElement(
5002
4995
  Box25,
5003
4996
  {
5004
4997
  onClick: () => setFecha(dia),
@@ -5014,8 +5007,8 @@ var SCCalendarSwipeable = ({
5014
5007
  //height: '36px',
5015
5008
  }
5016
5009
  },
5017
- /* @__PURE__ */ React41.createElement(Typography24, { sx: { fontSize: "12px !important", color: isSameDay2(dia, fecha) ? "white" : "#101840DE" } }, format2(dia, "d"))
5018
- )))), /* @__PURE__ */ React41.createElement(Grid10, { container: true, justifyContent: "center" }, /* @__PURE__ */ React41.createElement(IconButton15, { "data-testid": "open-calendar-button", onClick: toggleCalendar(true) }, /* @__PURE__ */ React41.createElement(KeyboardDoubleArrowDownIcon2, null))))) : /* @__PURE__ */ React41.createElement(Box25, { sx: { width: "100%", background: "white" } }, /* @__PURE__ */ React41.createElement(
5010
+ /* @__PURE__ */ React42.createElement(Typography24, { sx: { fontSize: "12px !important", color: isSameDay2(dia, fecha) ? "white" : "#101840DE" } }, format2(dia, "d"))
5011
+ )))), /* @__PURE__ */ React42.createElement(Grid10, { container: true, justifyContent: "center" }, /* @__PURE__ */ React42.createElement(IconButton15, { "data-testid": "open-calendar-button", onClick: toggleCalendar(true) }, /* @__PURE__ */ React42.createElement(KeyboardDoubleArrowDownIcon2, null))))) : /* @__PURE__ */ React42.createElement(Box25, { sx: { width: "100%", background: "white" } }, /* @__PURE__ */ React42.createElement(
5019
5012
  StaticDatePicker2,
5020
5013
  {
5021
5014
  orientation: "landscape",
@@ -5040,11 +5033,11 @@ var SCCalendarSwipeable = ({
5040
5033
  },
5041
5034
  onChange: (newValue) => setFecha(newValue)
5042
5035
  }
5043
- ), /* @__PURE__ */ React41.createElement(Grid10, { container: true, justifyContent: "center" }, /* @__PURE__ */ React41.createElement(IconButton15, { "data-testid": "close-calendar-button", onClick: toggleCalendar(false) }, /* @__PURE__ */ React41.createElement(KeyboardDoubleArrowUpIcon2, null))))));
5036
+ ), /* @__PURE__ */ React42.createElement(Grid10, { container: true, justifyContent: "center" }, /* @__PURE__ */ React42.createElement(IconButton15, { "data-testid": "close-calendar-button", onClick: toggleCalendar(false) }, /* @__PURE__ */ React42.createElement(KeyboardDoubleArrowUpIcon2, null))))));
5044
5037
  };
5045
5038
 
5046
5039
  // src/Components/SCCard.tsx
5047
- import React42 from "react";
5040
+ import React43 from "react";
5048
5041
  import { Divider as Divider8, Box as Box26, SvgIcon as SvgIcon9 } from "@mui/material";
5049
5042
  import IconButton16 from "@mui/material/IconButton";
5050
5043
  import Card2 from "@mui/material/Card";
@@ -5058,7 +5051,7 @@ import * as Muicon8 from "@mui/icons-material";
5058
5051
  var SCCard = ({ width, title, image, iconTitle, actionsTitle, subtitle, dividerHeader, content, actions, dividerActions, contentExpand }) => {
5059
5052
  let iconTitleValidation = "";
5060
5053
  let IconTitle;
5061
- const [expanded, setExpanded] = React42.useState(false);
5054
+ const [expanded, setExpanded] = React43.useState(false);
5062
5055
  if (iconTitle) {
5063
5056
  if (typeof iconTitle === "string" && /\.(png|jpg|jpeg|gif|svg|webp)$/i.test(iconTitle)) {
5064
5057
  iconTitleValidation = "image";
@@ -5074,11 +5067,11 @@ var SCCard = ({ width, title, image, iconTitle, actionsTitle, subtitle, dividerH
5074
5067
  const handleExpandClick = () => {
5075
5068
  setExpanded(!expanded);
5076
5069
  };
5077
- return /* @__PURE__ */ React42.createElement(Card2, { sx: { width: width || "auto" } }, title && /* @__PURE__ */ React42.createElement(
5070
+ return /* @__PURE__ */ React43.createElement(Card2, { sx: { width: width || "auto" } }, title && /* @__PURE__ */ React43.createElement(
5078
5071
  CardHeader,
5079
5072
  {
5080
- avatar: iconTitle ? iconTitleValidation === "image" ? /* @__PURE__ */ React42.createElement(Box26, { sx: { marginRight: "16px", width: "44px", height: "44px", borderRadius: "1px" } }, /* @__PURE__ */ React42.createElement("img", { src: IconTitle, width: "44px", height: "44px" })) : /* @__PURE__ */ React42.createElement(SvgIcon9, { color: "action", fontSize: "small", component: IconTitle, sx: { marginRight: "16px" } }) : void 0,
5081
- action: actionsTitle == "expand" ? /* @__PURE__ */ React42.createElement(IconButton16, { onClick: handleExpandClick, sx: { marginRight: "auto" }, size: "small" }, /* @__PURE__ */ React42.createElement(ExpandMoreIcon2, { fontSize: "small" })) : actionsTitle,
5073
+ avatar: iconTitle ? iconTitleValidation === "image" ? /* @__PURE__ */ React43.createElement(Box26, { sx: { marginRight: "16px", width: "44px", height: "44px", borderRadius: "1px" } }, /* @__PURE__ */ React43.createElement("img", { src: IconTitle, width: "44px", height: "44px" })) : /* @__PURE__ */ React43.createElement(SvgIcon9, { color: "action", fontSize: "small", component: IconTitle, sx: { marginRight: "16px" } }) : void 0,
5074
+ action: actionsTitle == "expand" ? /* @__PURE__ */ React43.createElement(IconButton16, { onClick: handleExpandClick, sx: { marginRight: "auto" }, size: "small" }, /* @__PURE__ */ React43.createElement(ExpandMoreIcon2, { fontSize: "small" })) : actionsTitle,
5082
5075
  title,
5083
5076
  subheader: subtitle,
5084
5077
  sx: {
@@ -5097,18 +5090,18 @@ var SCCard = ({ width, title, image, iconTitle, actionsTitle, subtitle, dividerH
5097
5090
  }
5098
5091
  }
5099
5092
  }
5100
- ), dividerHeader && title && /* @__PURE__ */ React42.createElement(Divider8, { variant: "fullWidth" }), image && /* @__PURE__ */ React42.createElement(
5093
+ ), dividerHeader && title && /* @__PURE__ */ React43.createElement(Divider8, { variant: "fullWidth" }), image && /* @__PURE__ */ React43.createElement(
5101
5094
  CardMedia,
5102
5095
  {
5103
5096
  component: "img",
5104
5097
  height: "194",
5105
5098
  image
5106
5099
  }
5107
- ), content && /* @__PURE__ */ React42.createElement(CardContent2, { sx: { padding: "8px 16px !important" } }, content), dividerActions && /* @__PURE__ */ React42.createElement(Divider8, { variant: "fullWidth" }), actions && /* @__PURE__ */ React42.createElement(CardActions, null, actions), contentExpand && /* @__PURE__ */ React42.createElement(Collapse2, { in: expanded, timeout: "auto", unmountOnExit: true }, /* @__PURE__ */ React42.createElement(CardContent2, { sx: { padding: "8px 16px !important" } }, contentExpand)));
5100
+ ), content && /* @__PURE__ */ React43.createElement(CardContent2, { sx: { padding: "8px 16px !important" } }, content), dividerActions && /* @__PURE__ */ React43.createElement(Divider8, { variant: "fullWidth" }), actions && /* @__PURE__ */ React43.createElement(CardActions, null, actions), contentExpand && /* @__PURE__ */ React43.createElement(Collapse2, { in: expanded, timeout: "auto", unmountOnExit: true }, /* @__PURE__ */ React43.createElement(CardContent2, { sx: { padding: "8px 16px !important" } }, contentExpand)));
5108
5101
  };
5109
5102
 
5110
5103
  // src/Components/SCDataGrid.tsx
5111
- import React43, { useEffect as useEffect19, useState as useState24 } from "react";
5104
+ import React44, { useEffect as useEffect19, useState as useState25 } from "react";
5112
5105
  import { DataGridPro, useGridApiRef } from "@mui/x-data-grid-pro";
5113
5106
  import { LicenseInfo as LicenseInfo2 } from "@mui/x-license";
5114
5107
  import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";
@@ -5199,7 +5192,7 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPag
5199
5192
  label = label;
5200
5193
  }
5201
5194
  }
5202
- return /* @__PURE__ */ React43.createElement(
5195
+ return /* @__PURE__ */ React44.createElement(
5203
5196
  "div",
5204
5197
  {
5205
5198
  style: {
@@ -5217,7 +5210,7 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPag
5217
5210
  fontWeight: params.rowNode.type == "group" ? "400" : "300"
5218
5211
  }
5219
5212
  },
5220
- params.rowNode.type === "group" && /* @__PURE__ */ React43.createElement(
5213
+ params.rowNode.type === "group" && /* @__PURE__ */ React44.createElement(
5221
5214
  "span",
5222
5215
  {
5223
5216
  style: {
@@ -5230,7 +5223,7 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPag
5230
5223
  params.api.setRowChildrenExpansion(params.id, !params.rowNode.childrenExpanded);
5231
5224
  }
5232
5225
  },
5233
- params.rowNode.childrenExpanded ? /* @__PURE__ */ React43.createElement(KeyboardArrowUpIcon, { fontSize: "small", color: "action" }) : /* @__PURE__ */ React43.createElement(KeyboardArrowDownIcon, { fontSize: "small", color: "action" })
5226
+ params.rowNode.childrenExpanded ? /* @__PURE__ */ React44.createElement(KeyboardArrowUpIcon, { fontSize: "small", color: "action" }) : /* @__PURE__ */ React44.createElement(KeyboardArrowDownIcon, { fontSize: "small", color: "action" })
5234
5227
  ),
5235
5228
  label
5236
5229
  );
@@ -5272,10 +5265,10 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPag
5272
5265
  let styleRowHeight = density == "compact" ? 32 : density == "standard" ? 28 : density == "comfortable" ? 31 : 32;
5273
5266
  let rows = rowsTable ? rowsTable : validationTreeData != false ? parseInt(data.length.toString()) : data.length < 10 ? parseInt(data.length.toString()) : 10;
5274
5267
  let validationGroupingColDef = groupingColDefs || {};
5275
- const [groupDataLenght, setGroupDataLengh] = useState24(0);
5276
- const [pageSize, setPageSize] = useState24(rows);
5277
- const [arrayRows, setArrayRows] = useState24([]);
5278
- const [selectionModel, setSelectionModel] = useState24([]);
5268
+ const [groupDataLenght, setGroupDataLengh] = useState25(0);
5269
+ const [pageSize, setPageSize] = useState25(rows);
5270
+ const [arrayRows, setArrayRows] = useState25([]);
5271
+ const [selectionModel, setSelectionModel] = useState25([]);
5279
5272
  useEffect19(() => {
5280
5273
  var _a;
5281
5274
  if (setSelectedRow) {
@@ -5377,7 +5370,7 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPag
5377
5370
  apiRef.current.setColumnVisibilityModel(columnVisibilityModel);
5378
5371
  }
5379
5372
  }, [columnVisibilityModel, apiRef]);
5380
- return /* @__PURE__ */ React43.createElement(React43.Fragment, null, data && /* @__PURE__ */ React43.createElement(React43.Fragment, null, /* @__PURE__ */ React43.createElement("div", { style: { width: width || "100%", maxHeight: maxHeight ? `${maxHeight}px` : "none" } }, /* @__PURE__ */ React43.createElement(
5373
+ return /* @__PURE__ */ React44.createElement(React44.Fragment, null, data && /* @__PURE__ */ React44.createElement(React44.Fragment, null, /* @__PURE__ */ React44.createElement("div", { style: { width: width || "100%", maxHeight: maxHeight ? `${maxHeight}px` : "none" } }, /* @__PURE__ */ React44.createElement(
5381
5374
  DataGridPro,
5382
5375
  __spreadProps(__spreadValues(__spreadProps(__spreadValues({
5383
5376
  getRowId,
@@ -5541,13 +5534,13 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPag
5541
5534
  })
5542
5535
  ))));
5543
5536
  }
5544
- var SCDataGrid = React43.memo(SCDataGridInitial, (prevProps, nextProps) => {
5537
+ var SCDataGrid = React44.memo(SCDataGridInitial, (prevProps, nextProps) => {
5545
5538
  const isEqual = prevProps.rowsTable === nextProps.rowsTable && prevProps.checkboxSelection === nextProps.checkboxSelection && prevProps.width === nextProps.width && prevProps.maxHeight === nextProps.maxHeight;
5546
5539
  return isEqual;
5547
5540
  });
5548
5541
 
5549
5542
  // src/Components/SCDatePicker.tsx
5550
- import React44 from "react";
5543
+ import React45 from "react";
5551
5544
  import { DatePicker } from "@mui/x-date-pickers/DatePicker";
5552
5545
  import "dayjs/locale/es";
5553
5546
  import dayjs10 from "dayjs";
@@ -5556,7 +5549,7 @@ import { LocalizationProvider as LocalizationProvider4 } from "@mui/x-date-picke
5556
5549
  import { AdapterDayjs as AdapterDayjs2 } from "@mui/x-date-pickers/AdapterDayjs";
5557
5550
  import InsertInvitationOutlinedIcon2 from "@mui/icons-material/InsertInvitationOutlined";
5558
5551
  var SCDatePicker = ({ label, required, disabled, background, state, setState, width, minDate, maxDate }) => {
5559
- return /* @__PURE__ */ React44.createElement(LocalizationProvider4, { dateAdapter: AdapterDayjs2, adapterLocale: "es" }, /* @__PURE__ */ React44.createElement(
5552
+ return /* @__PURE__ */ React45.createElement(LocalizationProvider4, { dateAdapter: AdapterDayjs2, adapterLocale: "es" }, /* @__PURE__ */ React45.createElement(
5560
5553
  DatePicker,
5561
5554
  {
5562
5555
  disabled,
@@ -5612,7 +5605,7 @@ var SCDatePicker = ({ label, required, disabled, background, state, setState, wi
5612
5605
  };
5613
5606
 
5614
5607
  // src/Components/SCDialog.tsx
5615
- import React45, { useEffect as useEffect20, useState as useState26 } from "react";
5608
+ import React46, { useEffect as useEffect20, useState as useState27 } from "react";
5616
5609
  import { Button as Button19, Typography as Typography26, Modal as Modal5, Dialog as Dialog4, DialogActions as DialogActions4, DialogContent as DialogContent4, DialogTitle as DialogTitle4, IconButton as IconButton17, Tooltip as Tooltip8, Box as Box27, SvgIcon as SvgIcon10 } from "@mui/material";
5617
5610
  import Grid11 from "@mui/material/Grid";
5618
5611
  import ToggleButton from "@mui/material/ToggleButton";
@@ -5624,7 +5617,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
5624
5617
  let iconTitleValidation = "";
5625
5618
  let IconTitle;
5626
5619
  let ButtonIcon;
5627
- const [open, setOpen] = useState26(show);
5620
+ const [open, setOpen] = useState27(show);
5628
5621
  useEffect20(() => {
5629
5622
  if (show) {
5630
5623
  handleOpen();
@@ -5677,8 +5670,8 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
5677
5670
  }
5678
5671
  };
5679
5672
  const dialogActions = actions == false ? false : actions != void 0 ? actions : [{ text: "Cerrar", fn: handleClose }];
5680
- content = content != null ? content : { component: /* @__PURE__ */ React45.createElement(Box27, null, " Aqui va el contenido ") };
5681
- return /* @__PURE__ */ React45.createElement("div", null, buttonDialog ? /* @__PURE__ */ React45.createElement(React45.Fragment, null, buttonDialog.text != void 0 ? /* @__PURE__ */ React45.createElement(Tooltip8, { placement: "bottom-start", title: buttonDialog.tooltip != void 0 ? buttonDialog.tooltip : "", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React45.createElement(Button19, { 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__ */ React45.createElement(ButtonIcon, null) : "" : "", endIcon: (buttonDialog == null ? void 0 : buttonDialog.iconPosition) != void 0 ? (buttonDialog == null ? void 0 : buttonDialog.iconPosition) == "right" ? /* @__PURE__ */ React45.createElement(ButtonIcon, null) : "" : "", onClick: handleOpen }, " ", (buttonDialog == null ? void 0 : buttonDialog.text) != void 0 ? buttonDialog.text : "", " ")) : /* @__PURE__ */ React45.createElement(IconButton17, { style: { cursor: "pointer" }, onClick: handleOpen }, /* @__PURE__ */ React45.createElement(SvgIcon10, { fontSize: "small", color: (buttonDialog == null ? void 0 : buttonDialog.color) != void 0 ? buttonDialog == null ? void 0 : buttonDialog.color : "action", component: ButtonIcon }))) : "", /* @__PURE__ */ React45.createElement(Modal5, { open: open || false, onClose: handleClose }, /* @__PURE__ */ React45.createElement(
5673
+ content = content != null ? content : { component: /* @__PURE__ */ React46.createElement(Box27, null, " Aqui va el contenido ") };
5674
+ return /* @__PURE__ */ React46.createElement("div", null, buttonDialog ? /* @__PURE__ */ React46.createElement(React46.Fragment, null, buttonDialog.text != void 0 ? /* @__PURE__ */ React46.createElement(Tooltip8, { placement: "bottom-start", title: buttonDialog.tooltip != void 0 ? buttonDialog.tooltip : "", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React46.createElement(Button19, { 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__ */ React46.createElement(ButtonIcon, null) : "" : "", endIcon: (buttonDialog == null ? void 0 : buttonDialog.iconPosition) != void 0 ? (buttonDialog == null ? void 0 : buttonDialog.iconPosition) == "right" ? /* @__PURE__ */ React46.createElement(ButtonIcon, null) : "" : "", onClick: handleOpen }, " ", (buttonDialog == null ? void 0 : buttonDialog.text) != void 0 ? buttonDialog.text : "", " ")) : /* @__PURE__ */ React46.createElement(IconButton17, { style: { cursor: "pointer" }, onClick: handleOpen }, /* @__PURE__ */ React46.createElement(SvgIcon10, { fontSize: "small", color: (buttonDialog == null ? void 0 : buttonDialog.color) != void 0 ? buttonDialog == null ? void 0 : buttonDialog.color : "action", component: ButtonIcon }))) : "", /* @__PURE__ */ React46.createElement(Modal5, { open: open || false, onClose: handleClose }, /* @__PURE__ */ React46.createElement(
5682
5675
  Dialog4,
5683
5676
  {
5684
5677
  fullScreen: typeView === "mobile" ? true : false,
@@ -5693,8 +5686,8 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
5693
5686
  }
5694
5687
  }
5695
5688
  },
5696
- title && /* @__PURE__ */ React45.createElement(DialogTitle4, { sx: { m: 0, padding: "8px 16px 8px 16px" }, "data-testid": "dialog-icon-title" }, /* @__PURE__ */ React45.createElement(Grid11, { container: true, size: 12, sx: { justifyContent: "space-between", flexWrap: "nowrap" } }, typeView == "web" ? /* @__PURE__ */ React45.createElement(Grid11, { container: true, size: 11, sx: { alignItems: "center", flexWrap: "nowrap" } }, iconTitle ? iconTitleValidation == "image" ? /* @__PURE__ */ React45.createElement(Box27, { sx: { marginRight: "16px", width: "44px", height: "44px", borderRadius: "1px" } }, /* @__PURE__ */ React45.createElement("img", { src: IconTitle, width: "44px", height: "44px" })) : /* @__PURE__ */ React45.createElement(SvgIcon10, { color: "action", fontSize: "small", component: IconTitle, sx: { marginRight: "16px" } }) : "", /* @__PURE__ */ React45.createElement(Grid11, { sx: { width: "98%" } }, /* @__PURE__ */ React45.createElement(Typography26, { color: "text.primary", variant: "h6", gutterBottom: true }, title ? title : ""), subtitle ? subtitle : "")) : /* @__PURE__ */ React45.createElement(Grid11, { container: true, size: 11, sx: { alignItems: "center", flexWrap: "nowrap" } }), disableClose != true ? /* @__PURE__ */ React45.createElement(IconButton17, { "data-testid": "close-dialog-button", onClick: handleClose, size: "small", color: "default", sx: { height: 22, width: 22 } }, /* @__PURE__ */ React45.createElement(CloseIcon2, { color: "action" })) : ""), typeView == "mobile" ? /* @__PURE__ */ React45.createElement(Grid11, { sx: { display: "flex", flexDirection: "column", padding: "12px 0px 4px 0px" }, gap: 1.5 }, /* @__PURE__ */ React45.createElement(Typography26, { color: "text.primary", variant: "h5" }, title ? title : ""), subtitle ? subtitle : "") : ""),
5697
- /* @__PURE__ */ React45.createElement(
5689
+ title && /* @__PURE__ */ React46.createElement(DialogTitle4, { sx: { m: 0, padding: "8px 16px 8px 16px" }, "data-testid": "dialog-icon-title" }, /* @__PURE__ */ React46.createElement(Grid11, { container: true, size: 12, sx: { justifyContent: "space-between", flexWrap: "nowrap" } }, typeView == "web" ? /* @__PURE__ */ React46.createElement(Grid11, { container: true, size: 11, sx: { alignItems: "center", flexWrap: "nowrap" } }, iconTitle ? iconTitleValidation == "image" ? /* @__PURE__ */ React46.createElement(Box27, { sx: { marginRight: "16px", width: "44px", height: "44px", borderRadius: "1px" } }, /* @__PURE__ */ React46.createElement("img", { src: IconTitle, width: "44px", height: "44px" })) : /* @__PURE__ */ React46.createElement(SvgIcon10, { color: "action", fontSize: "small", component: IconTitle, sx: { marginRight: "16px" } }) : "", /* @__PURE__ */ React46.createElement(Grid11, { sx: { width: "98%" } }, /* @__PURE__ */ React46.createElement(Typography26, { color: "text.primary", variant: "h6", gutterBottom: true }, title ? title : ""), subtitle ? subtitle : "")) : /* @__PURE__ */ React46.createElement(Grid11, { container: true, size: 11, sx: { alignItems: "center", flexWrap: "nowrap" } }), disableClose != true ? /* @__PURE__ */ React46.createElement(IconButton17, { "data-testid": "close-dialog-button", onClick: handleClose, size: "small", color: "default", sx: { height: 22, width: 22 } }, /* @__PURE__ */ React46.createElement(CloseIcon2, { color: "action" })) : ""), typeView == "mobile" ? /* @__PURE__ */ React46.createElement(Grid11, { sx: { display: "flex", flexDirection: "column", padding: "12px 0px 4px 0px" }, gap: 1.5 }, /* @__PURE__ */ React46.createElement(Typography26, { color: "text.primary", variant: "h5" }, title ? title : ""), subtitle ? subtitle : "") : ""),
5690
+ /* @__PURE__ */ React46.createElement(
5698
5691
  DialogContent4,
5699
5692
  {
5700
5693
  "data-testid": "dialog-content",
@@ -5723,7 +5716,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
5723
5716
  })
5724
5717
  }
5725
5718
  },
5726
- content.url ? /* @__PURE__ */ React45.createElement(
5719
+ content.url ? /* @__PURE__ */ React46.createElement(
5727
5720
  "iframe",
5728
5721
  {
5729
5722
  style: { border: "none", minWidth: "100%", minHeight: "100%" },
@@ -5733,7 +5726,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
5733
5726
  }
5734
5727
  ) : content.component
5735
5728
  ),
5736
- dialogActions != void 0 && dialogActions != false ? Array.isArray(dialogActions) && (dialogActions == null ? void 0 : dialogActions.length) > 0 ? /* @__PURE__ */ React45.createElement(DialogActions4, { sx: { zIndex: 1200, gap: 1, m: 0, padding: "12px 16px 12px 16px", justifyContent: dialogActions.length >= 3 ? "space-between" : "flex-end" } }, typeView !== "mobile" ? /* @__PURE__ */ React45.createElement(React45.Fragment, null, dialogActions.length >= 3 ? /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(
5729
+ dialogActions != void 0 && dialogActions != false ? Array.isArray(dialogActions) && (dialogActions == null ? void 0 : dialogActions.length) > 0 ? /* @__PURE__ */ React46.createElement(DialogActions4, { sx: { zIndex: 1200, gap: 1, m: 0, padding: "12px 16px 12px 16px", justifyContent: dialogActions.length >= 3 ? "space-between" : "flex-end" } }, typeView !== "mobile" ? /* @__PURE__ */ React46.createElement(React46.Fragment, null, dialogActions.length >= 3 ? /* @__PURE__ */ React46.createElement(React46.Fragment, null, /* @__PURE__ */ React46.createElement(
5737
5730
  Button19,
5738
5731
  {
5739
5732
  variant: "text",
@@ -5741,11 +5734,11 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
5741
5734
  size: "small",
5742
5735
  onClick: dialogActions[0].fn,
5743
5736
  disabled: dialogActions[0].disabled || false,
5744
- startIcon: dialogActions[0].icon ? /* @__PURE__ */ React45.createElement(SvgIcon10, { fontSize: "small", component: dialogActions[0].icon }) : void 0
5737
+ startIcon: dialogActions[0].icon ? /* @__PURE__ */ React46.createElement(SvgIcon10, { fontSize: "small", component: dialogActions[0].icon }) : void 0
5745
5738
  },
5746
5739
  dialogActions[0].text
5747
- ), /* @__PURE__ */ React45.createElement(Box27, { sx: { display: "flex", gap: 1 } }, dialogActions.slice(1).map((boton, index) => {
5748
- return /* @__PURE__ */ React45.createElement(
5740
+ ), /* @__PURE__ */ React46.createElement(Box27, { sx: { display: "flex", gap: 1 } }, dialogActions.slice(1).map((boton, index) => {
5741
+ return /* @__PURE__ */ React46.createElement(
5749
5742
  Button19,
5750
5743
  {
5751
5744
  key: index + 1,
@@ -5754,12 +5747,12 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
5754
5747
  size: "small",
5755
5748
  onClick: boton.fn,
5756
5749
  disabled: boton.disabled || false,
5757
- startIcon: boton.icon ? /* @__PURE__ */ React45.createElement(SvgIcon10, { fontSize: "small", component: boton.icon }) : void 0
5750
+ startIcon: boton.icon ? /* @__PURE__ */ React46.createElement(SvgIcon10, { fontSize: "small", component: boton.icon }) : void 0
5758
5751
  },
5759
5752
  boton.text
5760
5753
  );
5761
5754
  }))) : dialogActions.map((boton, index) => {
5762
- return /* @__PURE__ */ React45.createElement(
5755
+ return /* @__PURE__ */ React46.createElement(
5763
5756
  Button19,
5764
5757
  {
5765
5758
  key: index,
@@ -5768,19 +5761,19 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
5768
5761
  size: "small",
5769
5762
  onClick: boton.fn,
5770
5763
  disabled: boton.disabled || false,
5771
- startIcon: boton.icon ? /* @__PURE__ */ React45.createElement(SvgIcon10, { fontSize: "small", component: boton.icon }) : void 0
5764
+ startIcon: boton.icon ? /* @__PURE__ */ React46.createElement(SvgIcon10, { fontSize: "small", component: boton.icon }) : void 0
5772
5765
  },
5773
5766
  boton.text
5774
5767
  );
5775
- })) : /* @__PURE__ */ React45.createElement(Box27, { sx: { width: "100%", display: "flex", flexDirection: "row", justifyContent: "center" } }, /* @__PURE__ */ React45.createElement(ToggleButtonGroup, { size: "large", fullWidth: true }, dialogActions.map((boton, index) => {
5768
+ })) : /* @__PURE__ */ React46.createElement(Box27, { sx: { width: "100%", display: "flex", flexDirection: "row", justifyContent: "center" } }, /* @__PURE__ */ React46.createElement(ToggleButtonGroup, { size: "large", fullWidth: true }, dialogActions.map((boton, index) => {
5776
5769
  var _a;
5777
- return /* @__PURE__ */ React45.createElement(ToggleButton, { sx: { color: "primary.main" }, disabled: boton.disabled || false, fullWidth: boton.text ? true : false, size: "medium", value: "text", onClick: boton.fn }, (_a = boton.text) != null ? _a : /* @__PURE__ */ React45.createElement(SvgIcon10, { fontSize: "small", component: boton.icon }));
5770
+ return /* @__PURE__ */ React46.createElement(ToggleButton, { sx: { color: "primary.main" }, disabled: boton.disabled || false, fullWidth: boton.text ? true : false, size: "medium", value: "text", onClick: boton.fn }, (_a = boton.text) != null ? _a : /* @__PURE__ */ React46.createElement(SvgIcon10, { fontSize: "small", component: boton.icon }));
5778
5771
  })))) : "" : ""
5779
5772
  )));
5780
5773
  };
5781
5774
 
5782
5775
  // src/Components/SCDownloadExcelTable.tsx
5783
- import React46 from "react";
5776
+ import React47 from "react";
5784
5777
  import { Button as Button20 } from "@mui/material";
5785
5778
  import FileDownloadOutlinedIcon2 from "@mui/icons-material/FileDownloadOutlined";
5786
5779
  import * as XLSX from "xlsx";
@@ -5813,11 +5806,11 @@ var SCDownloadExcelTable = ({
5813
5806
  XLSX.utils.book_append_sheet(workbook, worksheet, "Hoja1");
5814
5807
  XLSX.writeFile(workbook, `${fileName}.xlsx`);
5815
5808
  };
5816
- return /* @__PURE__ */ React46.createElement(
5809
+ return /* @__PURE__ */ React47.createElement(
5817
5810
  Button20,
5818
5811
  {
5819
5812
  onClick: descargaExcel,
5820
- startIcon: /* @__PURE__ */ React46.createElement(FileDownloadOutlinedIcon2, null),
5813
+ startIcon: /* @__PURE__ */ React47.createElement(FileDownloadOutlinedIcon2, null),
5821
5814
  size: (downloadButton == null ? void 0 : downloadButton.size) || "small",
5822
5815
  color: (downloadButton == null ? void 0 : downloadButton.color) || "primary",
5823
5816
  variant: (downloadButton == null ? void 0 : downloadButton.variant) || "text",
@@ -5828,12 +5821,12 @@ var SCDownloadExcelTable = ({
5828
5821
  };
5829
5822
 
5830
5823
  // src/Components/SCMenu.tsx
5831
- import React47 from "react";
5824
+ import React48 from "react";
5832
5825
  import { Box as Box28, Typography as Typography27, Paper as Paper5, Divider as Divider9, MenuList as MenuList3, MenuItem as MenuItem9, ListItemIcon as ListItemIcon7, SvgIcon as SvgIcon11 } from "@mui/material";
5833
5826
  import Grid12 from "@mui/material/Grid";
5834
5827
 
5835
5828
  // src/Components/Hooks/useWindowDimensions.ts
5836
- import { useState as useState27, useEffect as useEffect21 } from "react";
5829
+ import { useState as useState28, useEffect as useEffect21 } from "react";
5837
5830
  function getWindowDimensions() {
5838
5831
  const { innerWidth: width, innerHeight: height } = window;
5839
5832
  return {
@@ -5842,7 +5835,7 @@ function getWindowDimensions() {
5842
5835
  };
5843
5836
  }
5844
5837
  function useWindowDimensions() {
5845
- const [windowDimensions, setWindowDimensions] = useState27(getWindowDimensions());
5838
+ const [windowDimensions, setWindowDimensions] = useState28(getWindowDimensions());
5846
5839
  useEffect21(() => {
5847
5840
  function handleResize() {
5848
5841
  setWindowDimensions(getWindowDimensions());
@@ -5861,12 +5854,12 @@ var SCMenu = ({ header, options, defaultOption, disable, widthMenu, heightMenu,
5861
5854
  const pageSize = widthPage ? parseInt(widthPage) : width - menuSize;
5862
5855
  const widthContainer = menuSize + pageSize;
5863
5856
  let heightContainer = heightMenu ? parseInt(heightMenu) : height - 76;
5864
- const [selectedIndex, setSelectedIndex] = React47.useState("1");
5865
- const [value, setValue] = React47.useState("1");
5866
- React47.useEffect(() => {
5857
+ const [selectedIndex, setSelectedIndex] = React48.useState("1");
5858
+ const [value, setValue] = React48.useState("1");
5859
+ React48.useEffect(() => {
5867
5860
  heightContainer = heightMenu ? parseInt(heightMenu) : height - 76;
5868
5861
  }, [height]);
5869
- React47.useEffect(() => {
5862
+ React48.useEffect(() => {
5870
5863
  if (defaultOption) {
5871
5864
  handleClickMenusItem(event, void 0);
5872
5865
  }
@@ -5896,7 +5889,7 @@ var SCMenu = ({ header, options, defaultOption, disable, widthMenu, heightMenu,
5896
5889
  setValue(String(index + 1));
5897
5890
  }
5898
5891
  };
5899
- return /* @__PURE__ */ React47.createElement(React47.Fragment, null, /* @__PURE__ */ React47.createElement(Grid12, { container: true, sx: { height: heightContainer, width: widthContainer, flexDirection: "column" } }, /* @__PURE__ */ React47.createElement(Paper5, { "data-testid": "menu-content", sx: { width: menuSize, height: heightContainer, overflow: "auto" } }, header && header.component, /* @__PURE__ */ React47.createElement(MenuList3, { sx: { height: options.length * 45, padding: "8px 0px" } }, options.map((option, index) => /* @__PURE__ */ React47.createElement(React47.Fragment, null, /* @__PURE__ */ React47.createElement(
5892
+ return /* @__PURE__ */ React48.createElement(React48.Fragment, null, /* @__PURE__ */ React48.createElement(Grid12, { container: true, sx: { height: heightContainer, width: widthContainer, flexDirection: "column" } }, /* @__PURE__ */ React48.createElement(Paper5, { "data-testid": "menu-content", sx: { width: menuSize, height: heightContainer, overflow: "auto" } }, header && header.component, /* @__PURE__ */ React48.createElement(MenuList3, { sx: { height: options.length * 45, padding: "8px 0px" } }, options.map((option, index) => /* @__PURE__ */ React48.createElement(React48.Fragment, null, /* @__PURE__ */ React48.createElement(
5900
5893
  MenuItem9,
5901
5894
  {
5902
5895
  disabled: disable == true ? true : false,
@@ -5904,51 +5897,9 @@ var SCMenu = ({ header, options, defaultOption, disable, widthMenu, heightMenu,
5904
5897
  selected: String(index + 1) === selectedIndex,
5905
5898
  onClick: (event2) => handleClickMenusItem(event2, index)
5906
5899
  },
5907
- option.iconLeft ? /* @__PURE__ */ React47.createElement(ListItemIcon7, { sx: { color: String(index + 1) === selectedIndex ? "primary" : "active" } }, /* @__PURE__ */ React47.createElement(SvgIcon11, { fontSize: "small", color: String(index + 1) === selectedIndex ? "primary" : "action", component: option.iconLeft })) : "",
5908
- /* @__PURE__ */ React47.createElement(Grid12, { container: true, size: 12, sx: { maxWidth: 220, flexWrap: "noWrap", alignItems: "center" } }, /* @__PURE__ */ React47.createElement(Typography27, { noWrap: true, variant: "caption", color: String(index + 1) === selectedIndex ? "primary" : "active" }, option.name), option.iconRight ? /* @__PURE__ */ React47.createElement(ListItemIcon7, { sx: { minWidth: "0px !important", color: String(index + 1) === selectedIndex ? "primary" : "active" } }, /* @__PURE__ */ React47.createElement(SvgIcon11, { fontSize: "small", color: String(index + 1) === selectedIndex ? "primary" : "action", component: option.iconRight })) : "")
5909
- ), option.divider == true ? /* @__PURE__ */ React47.createElement(Divider9, null) : "")))), /* @__PURE__ */ React47.createElement(Grid12, { container: true }, options.map((option, index) => option.page ? String(index + 1) == value ? /* @__PURE__ */ React47.createElement(Box28, { "data-testid": "menu-page-content", sx: { padding: "16px", width: pageSize, height: heightContainer }, key: index }, option.page) : "" : /* @__PURE__ */ React47.createElement(Typography27, { color: "error" }, "No se ha configurado el componente a visualizar")))));
5910
- };
5911
-
5912
- // src/Components/SCSnackBar.tsx
5913
- import React48 from "react";
5914
- import MuiAlert from "@mui/material/Alert";
5915
- import "dayjs/locale/es";
5916
- import Snackbar from "@mui/material/Snackbar";
5917
- var SCSnackBar = ({
5918
- type = "success",
5919
- close = true,
5920
- openState,
5921
- setOpenState,
5922
- mensaje,
5923
- duration = 3e3,
5924
- position = "Center"
5925
- }) => {
5926
- const posicionVertical = position == "Center" ? "bottom" : position.split("-")[1] == "Up" ? "top" : "bottom";
5927
- const posicionHorizontal = position == "Center" ? "center" : position.split("-")[0] == "Left" ? "left" : "right";
5928
- const handleClose = (event2, reason) => {
5929
- if (reason === "clickaway") {
5930
- return;
5931
- }
5932
- setOpenState(false);
5933
- };
5934
- return /* @__PURE__ */ React48.createElement(React48.Fragment, null, /* @__PURE__ */ React48.createElement(
5935
- Snackbar,
5936
- __spreadProps(__spreadValues({
5937
- anchorOrigin: { vertical: posicionVertical, horizontal: posicionHorizontal },
5938
- open: openState,
5939
- autoHideDuration: duration
5940
- }, close ? { onClose: handleClose } : {}), {
5941
- sx: { zIndex: 2e3 }
5942
- }),
5943
- /* @__PURE__ */ React48.createElement(
5944
- MuiAlert,
5945
- __spreadProps(__spreadValues({}, close ? { onClose: handleClose } : {}), {
5946
- severity: type,
5947
- sx: { backgroundColor: type == "success" ? "success.50" : type == "error" ? "#F9E8E8" : type == "warning" ? "#FFF0E0" : "#E6F3F8" }
5948
- }),
5949
- mensaje
5950
- )
5951
- ));
5900
+ option.iconLeft ? /* @__PURE__ */ React48.createElement(ListItemIcon7, { sx: { color: String(index + 1) === selectedIndex ? "primary" : "active" } }, /* @__PURE__ */ React48.createElement(SvgIcon11, { fontSize: "small", color: String(index + 1) === selectedIndex ? "primary" : "action", component: option.iconLeft })) : "",
5901
+ /* @__PURE__ */ React48.createElement(Grid12, { container: true, size: 12, sx: { maxWidth: 220, flexWrap: "noWrap", alignItems: "center" } }, /* @__PURE__ */ React48.createElement(Typography27, { noWrap: true, variant: "caption", color: String(index + 1) === selectedIndex ? "primary" : "active" }, option.name), option.iconRight ? /* @__PURE__ */ React48.createElement(ListItemIcon7, { sx: { minWidth: "0px !important", color: String(index + 1) === selectedIndex ? "primary" : "active" } }, /* @__PURE__ */ React48.createElement(SvgIcon11, { fontSize: "small", color: String(index + 1) === selectedIndex ? "primary" : "action", component: option.iconRight })) : "")
5902
+ ), option.divider == true ? /* @__PURE__ */ React48.createElement(Divider9, null) : "")))), /* @__PURE__ */ React48.createElement(Grid12, { container: true }, options.map((option, index) => option.page ? String(index + 1) == value ? /* @__PURE__ */ React48.createElement(Box28, { "data-testid": "menu-page-content", sx: { padding: "16px", width: pageSize, height: heightContainer }, key: index }, option.page) : "" : /* @__PURE__ */ React48.createElement(Typography27, { color: "error" }, "No se ha configurado el componente a visualizar")))));
5952
5903
  };
5953
5904
 
5954
5905
  // src/Components/SCTabs.tsx