componentes-sinco 1.1.10 → 1.1.12

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
@@ -748,7 +748,7 @@ var Attachment = ({
748
748
 
749
749
  // src/Components/Drawer/SCDrawer.tsx
750
750
  import React16 from "react";
751
- import { Drawer, Stack as Stack6, SwipeableDrawer, Box as Box11 } from "@mui/material";
751
+ import { Drawer, Stack as Stack6, SwipeableDrawer, Box as Box11, Button as Button8 } from "@mui/material";
752
752
  import Grid6 from "@mui/material/Grid";
753
753
 
754
754
  // src/Components/Drawer/Helpers/Utils.tsx
@@ -2225,7 +2225,7 @@ var DrawerActions = ({ actions, anchor }) => {
2225
2225
  sx: { borderTop: 1, borderColor: "#1018403B", zIndex: 1500 },
2226
2226
  container: true,
2227
2227
  gap: 2,
2228
- padding: "8px 12px",
2228
+ padding: "8px 16px",
2229
2229
  height: "42px",
2230
2230
  alignItems: "center",
2231
2231
  flexWrap: "nowrap",
@@ -2386,6 +2386,11 @@ function SCDrawer({
2386
2386
  onOpen: toggleDrawer(true),
2387
2387
  anchor: "bottom",
2388
2388
  swipeAreaWidth: drawerBleeding,
2389
+ transitionDuration: { enter: 500, exit: 400 },
2390
+ ModalProps: {
2391
+ BackdropProps: { timeout: 400 }
2392
+ },
2393
+ hysteresis: 0.2,
2389
2394
  sx: {
2390
2395
  zIndex: 1400,
2391
2396
  "& .MuiDrawer-paper": {
@@ -2394,6 +2399,11 @@ function SCDrawer({
2394
2399
  boxSizing: "border-box",
2395
2400
  borderRadius: "4px 4px 0px 0px"
2396
2401
  }
2402
+ },
2403
+ slotProps: {
2404
+ backdrop: {
2405
+ sx: { backgroundColor: "#00000038" }
2406
+ }
2397
2407
  }
2398
2408
  },
2399
2409
  /* @__PURE__ */ React16.createElement(
@@ -2418,7 +2428,33 @@ function SCDrawer({
2418
2428
  onClose: handleDrawerClose,
2419
2429
  anchor
2420
2430
  }
2421
- ), /* @__PURE__ */ React16.createElement(DrawerContent, { arrayElements }), /* @__PURE__ */ React16.createElement(DrawerActions, { actions: drawerActions, anchor }))
2431
+ ), /* @__PURE__ */ React16.createElement(DrawerContent, { arrayElements }), /* @__PURE__ */ React16.createElement(
2432
+ Grid6,
2433
+ {
2434
+ sx: { zIndex: 1500 },
2435
+ container: true,
2436
+ gap: 2,
2437
+ padding: "8px 16px 40px 16px",
2438
+ height: "86px",
2439
+ alignItems: "center",
2440
+ flexWrap: "nowrap",
2441
+ justifyContent: Array.isArray(drawerActions) && drawerActions.length > 1 ? "space-between" : "flex-end",
2442
+ flexDirection: "row-reverse"
2443
+ },
2444
+ Array.isArray(drawerActions) && drawerActions.map((btn, index) => /* @__PURE__ */ React16.createElement(
2445
+ Button8,
2446
+ {
2447
+ key: index,
2448
+ variant: index === 0 || drawerActions.length < 2 ? "contained" : "text",
2449
+ color: "primary",
2450
+ onClick: btn.fn,
2451
+ disabled: btn.disabled || false,
2452
+ size: "small",
2453
+ fullWidth: anchor === "bottom" ? true : false
2454
+ },
2455
+ btn.text
2456
+ ))
2457
+ ))
2422
2458
  ));
2423
2459
  }
2424
2460
 
@@ -2453,7 +2489,7 @@ var FooterAction = ({
2453
2489
 
2454
2490
  // src/Components/MultiSelect/MultiSelect.tsx
2455
2491
  import React18, { useEffect as useEffect11, useMemo as useMemo4 } from "react";
2456
- import { Button as Button8, Checkbox as Checkbox2, FormControl as FormControl3, InputAdornment as InputAdornment5, ListItemIcon as ListItemIcon3, MenuItem as MenuItem3, Popover as Popover3, Stack as Stack7, TextField as TextField4 } from "@mui/material";
2492
+ import { Button as Button9, Checkbox as Checkbox2, FormControl as FormControl3, InputAdornment as InputAdornment5, ListItemIcon as ListItemIcon3, MenuItem as MenuItem3, Popover as Popover3, Stack as Stack7, TextField as TextField4 } from "@mui/material";
2457
2493
  import { SearchOutlined } from "@mui/icons-material";
2458
2494
 
2459
2495
  // src/Components/MultiSelect/helpers/useHandlers.tsx
@@ -2533,7 +2569,7 @@ function MultiSelect({
2533
2569
  selectAll = false,
2534
2570
  getItemLabel
2535
2571
  }) {
2536
- var _a, _b;
2572
+ var _a, _b, _c;
2537
2573
  const {
2538
2574
  anchorEl,
2539
2575
  open: openMultiselect,
@@ -2570,7 +2606,7 @@ function MultiSelect({
2570
2606
  } }
2571
2607
  ];
2572
2608
  return /* @__PURE__ */ React18.createElement(React18.Fragment, null, /* @__PURE__ */ React18.createElement(
2573
- Button8,
2609
+ Button9,
2574
2610
  {
2575
2611
  "test-id": "multiselect-button",
2576
2612
  color: (_a = button == null ? void 0 : button.color) != null ? _a : "primary",
@@ -2580,7 +2616,7 @@ function MultiSelect({
2580
2616
  startIcon: (button == null ? void 0 : button.iconPosition) === "left" || !(button == null ? void 0 : button.iconPosition) ? /* @__PURE__ */ React18.createElement(Icon, null) : null,
2581
2617
  endIcon: (button == null ? void 0 : button.iconPosition) === "right" ? /* @__PURE__ */ React18.createElement(Icon, null) : null
2582
2618
  },
2583
- capitalize(textButton != null ? textButton : "MultiSelect")
2619
+ capitalize((_c = button == null ? void 0 : button.text) != null ? _c : "")
2584
2620
  ), /* @__PURE__ */ React18.createElement(
2585
2621
  Popover3,
2586
2622
  {
@@ -2624,7 +2660,7 @@ function MultiSelect({
2624
2660
  )) : /* @__PURE__ */ React18.createElement(MenuItem3, { disabled: true }, "No se encontraron resultados")), /* @__PURE__ */ React18.createElement(Stack7, { direction: "row", gap: 1, p: 1, justifyContent: "space-between", bgcolor: "grey.50" }, resolvedActions.map((button2, index) => {
2625
2661
  var _a2;
2626
2662
  return /* @__PURE__ */ React18.createElement(
2627
- Button8,
2663
+ Button9,
2628
2664
  {
2629
2665
  key: index,
2630
2666
  variant: index === 0 || resolvedActions.length < 2 ? "text" : "contained",
@@ -2716,7 +2752,7 @@ var SCCalendarSwipeable = ({
2716
2752
  // 0 = domingo, 1 = lunes
2717
2753
  })
2718
2754
  });
2719
- return /* @__PURE__ */ React20.createElement(React20.Fragment, null, /* @__PURE__ */ React20.createElement(LocalizationProvider2, { dateAdapter: AdapterDateFns, adapterLocale: locale }, openCalendar == false ? /* @__PURE__ */ React20.createElement(Box13, { "data-testid": "calendar-mobile", sx: { width: "100%", background: background ? background : "white", display: "flex", flexDirection: "column", alignItems: "center" } }, /* @__PURE__ */ React20.createElement(Box13, { sx: { width: "100%", maxWidth: "320px", background: "transparent" } }, /* @__PURE__ */ React20.createElement(Grid7, { container: true, gap: 0.5, sx: { justifyContent: "space-between", padding: "12px 0px", background: "transparent" } }, diasSemana.map((dia) => /* @__PURE__ */ React20.createElement(Grid7, { sx: { width: "36px" }, key: dia.toString() }, /* @__PURE__ */ React20.createElement(Box13, { sx: { width: "36px", height: "40px", display: "flex", alignItems: "center", justifyContent: "center" } }, /* @__PURE__ */ React20.createElement(Typography11, { sx: { fontSize: "12px !important", color: "#10184099" } }, format(dia, "EEEE", { locale: es }).charAt(0).toUpperCase())), /* @__PURE__ */ React20.createElement(
2755
+ return /* @__PURE__ */ React20.createElement(React20.Fragment, null, /* @__PURE__ */ React20.createElement(LocalizationProvider2, { dateAdapter: AdapterDateFns, adapterLocale: locale }, openCalendar == false ? /* @__PURE__ */ React20.createElement(Box13, { "data-testid": "calendar-mobile", sx: { width: "100%", background: background ? background : "white", display: "flex", flexDirection: "column", alignItems: "center" } }, /* @__PURE__ */ React20.createElement(Box13, { sx: { width: "100%", padding: "0px 16px", background: "transparent" } }, /* @__PURE__ */ React20.createElement(Grid7, { container: true, gap: 0.5, sx: { justifyContent: "space-between", padding: "12px 0px", background: "transparent" } }, diasSemana.map((dia) => /* @__PURE__ */ React20.createElement(Grid7, { sx: { width: "36px" }, key: dia.toString() }, /* @__PURE__ */ React20.createElement(Box13, { sx: { width: "36px", height: "40px", display: "flex", alignItems: "center", justifyContent: "center" } }, /* @__PURE__ */ React20.createElement(Typography11, { sx: { fontSize: "12px !important", color: "#10184099" } }, format(dia, "EEEE", { locale: es }).charAt(0).toUpperCase())), /* @__PURE__ */ React20.createElement(
2720
2756
  Box13,
2721
2757
  {
2722
2758
  onClick: () => setFecha(dia),
@@ -2740,7 +2776,22 @@ var SCCalendarSwipeable = ({
2740
2776
  openTo: "day",
2741
2777
  value: fecha,
2742
2778
  slotProps: { toolbar: { hidden: true }, actionBar: { actions: [] } },
2743
- sx: { fontSize: "12px !important", height: "300px !important", background: background ? background : "white", "& .MuiDayCalendar-header": { justifyContent: "space-between" }, "& .MuiDayCalendar-weekContainer": { justifyContent: "space-between" }, "& .MuiPickersCalendarHeader-root": { paddingLeft: "0px", paddingRight: "0px", color: "#10184099" }, "& .MuiPickersDay-root": { fontSize: "12px !important" }, "& .MuiDayCalendar-weekDayLabel": { fontSize: "12px !important" } },
2779
+ sx: {
2780
+ "& .MuiDateCalendar-root": {
2781
+ width: "100%",
2782
+ maxWidth: "unset",
2783
+ margin: 0,
2784
+ padding: "0px 16px"
2785
+ },
2786
+ fontSize: "12px !important",
2787
+ height: "260px !important",
2788
+ background: background ? background : "white",
2789
+ "& .MuiDayCalendar-header": { justifyContent: "space-between" },
2790
+ "& .MuiDayCalendar-weekContainer": { justifyContent: "space-between" },
2791
+ "& .MuiPickersCalendarHeader-root": { paddingLeft: "0px", paddingRight: "0px", color: "#10184099" },
2792
+ "& .MuiPickersDay-root": { fontSize: "12px !important" },
2793
+ "& .MuiDayCalendar-weekDayLabel": { fontSize: "12px !important" }
2794
+ },
2744
2795
  onChange: (newValue) => setFecha(newValue)
2745
2796
  }
2746
2797
  ), /* @__PURE__ */ React20.createElement(Grid7, { container: true, justifyContent: "center" }, /* @__PURE__ */ React20.createElement(IconButton9, { "data-testid": "close-calendar-button", onClick: toggleCalendar(false) }, /* @__PURE__ */ React20.createElement(KeyboardDoubleArrowUpIcon, null))))));
@@ -2753,7 +2804,7 @@ import { LicenseInfo as LicenseInfo2 } from "@mui/x-license";
2753
2804
  import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";
2754
2805
  import KeyboardArrowUpIcon from "@mui/icons-material/KeyboardArrowUp";
2755
2806
  import { useTheme } from "@mui/material/styles";
2756
- function SCDataGridInitial({ data, columns, groupColumns, rowsTable, checkboxSelection, width, maxHeight, density }) {
2807
+ function SCDataGridInitial({ data, columns, getRowId, groupColumns, rowsTable, checkboxSelection, width, maxHeight, density }) {
2757
2808
  LicenseInfo2.setLicenseKey(
2758
2809
  "77d49a57fbc5f4af35ddb05c5f1742e0Tz0xMTI3MjgsRT0xNzc4MzcxMTk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
2759
2810
  );
@@ -2985,6 +3036,7 @@ function SCDataGridInitial({ data, columns, groupColumns, rowsTable, checkboxSel
2985
3036
  return /* @__PURE__ */ React21.createElement(React21.Fragment, null, data && /* @__PURE__ */ React21.createElement(React21.Fragment, null, /* @__PURE__ */ React21.createElement("div", { style: { width: width || "100%", maxHeight: maxHeight ? `${maxHeight}px` : "none" } }, /* @__PURE__ */ React21.createElement(
2986
3037
  DataGridPro,
2987
3038
  {
3039
+ getRowId,
2988
3040
  apiRef,
2989
3041
  rowHeight: styleRowHeight,
2990
3042
  rows: arrayRows,
@@ -3132,7 +3184,7 @@ var SCDataGrid = React21.memo(SCDataGridInitial, (prevProps, nextProps) => {
3132
3184
 
3133
3185
  // src/Components/EmptyState/EmptyState.tsx
3134
3186
  import React26 from "react";
3135
- import { Button as Button10, Stack as Stack9, Typography as Typography12 } from "@mui/material";
3187
+ import { Button as Button11, Stack as Stack9, Typography as Typography12 } from "@mui/material";
3136
3188
 
3137
3189
  // src/assets/ImgEmptyState/create.tsx
3138
3190
  import React22 from "react";
@@ -3213,7 +3265,7 @@ var EmptyState = ({
3213
3265
  actions.map((action, index) => {
3214
3266
  var _a, _b, _c, _d;
3215
3267
  return /* @__PURE__ */ React26.createElement(
3216
- Button10,
3268
+ Button11,
3217
3269
  {
3218
3270
  key: index,
3219
3271
  color: (_a = action.color) != null ? _a : "primary",
@@ -3232,7 +3284,7 @@ var EmptyState = ({
3232
3284
 
3233
3285
  // src/Components/SCDialog.tsx
3234
3286
  import React27, { useEffect as useEffect14, useState as useState14 } from "react";
3235
- import { Button as Button11, Typography as Typography13, Modal as Modal2, Dialog, DialogActions, DialogContent, DialogTitle, IconButton as IconButton10, Tooltip as Tooltip4, Box as Box14, SvgIcon as SvgIcon5 } from "@mui/material";
3287
+ import { Button as Button12, Typography as Typography13, Modal as Modal2, Dialog, DialogActions, DialogContent, DialogTitle, IconButton as IconButton10, Tooltip as Tooltip4, Box as Box14, SvgIcon as SvgIcon5 } from "@mui/material";
3236
3288
  import Grid8 from "@mui/material/Grid";
3237
3289
  import ToggleButton from "@mui/material/ToggleButton";
3238
3290
  import ToggleButtonGroup from "@mui/material/ToggleButtonGroup";
@@ -3297,7 +3349,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
3297
3349
  };
3298
3350
  const dialogActions = actions == false ? false : actions != void 0 ? actions : [{ text: "Cerrar", fn: handleClose }];
3299
3351
  content = content != null ? content : { component: /* @__PURE__ */ React27.createElement(Box14, null, " Aqui va el contenido ") };
3300
- return /* @__PURE__ */ React27.createElement("div", null, buttonDialog ? /* @__PURE__ */ React27.createElement(React27.Fragment, null, buttonDialog.text != void 0 ? /* @__PURE__ */ React27.createElement(Tooltip4, { placement: "bottom-start", title: buttonDialog.tooltip != void 0 ? buttonDialog.tooltip : "", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React27.createElement(Button11, { 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__ */ React27.createElement(ButtonIcon, null) : "" : "", endIcon: (buttonDialog == null ? void 0 : buttonDialog.iconPosition) != void 0 ? (buttonDialog == null ? void 0 : buttonDialog.iconPosition) == "right" ? /* @__PURE__ */ React27.createElement(ButtonIcon, null) : "" : "", onClick: handleOpen }, " ", (buttonDialog == null ? void 0 : buttonDialog.text) != void 0 ? buttonDialog.text : "", " ")) : /* @__PURE__ */ React27.createElement(IconButton10, { style: { cursor: "pointer" }, onClick: handleOpen }, /* @__PURE__ */ React27.createElement(SvgIcon5, { fontSize: "small", color: (buttonDialog == null ? void 0 : buttonDialog.color) != void 0 ? buttonDialog == null ? void 0 : buttonDialog.color : "action", component: ButtonIcon }))) : "", /* @__PURE__ */ React27.createElement(Modal2, { open: open || false, onClose: handleClose }, /* @__PURE__ */ React27.createElement(
3352
+ return /* @__PURE__ */ React27.createElement("div", null, buttonDialog ? /* @__PURE__ */ React27.createElement(React27.Fragment, null, buttonDialog.text != void 0 ? /* @__PURE__ */ React27.createElement(Tooltip4, { placement: "bottom-start", title: buttonDialog.tooltip != void 0 ? buttonDialog.tooltip : "", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React27.createElement(Button12, { 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__ */ React27.createElement(ButtonIcon, null) : "" : "", endIcon: (buttonDialog == null ? void 0 : buttonDialog.iconPosition) != void 0 ? (buttonDialog == null ? void 0 : buttonDialog.iconPosition) == "right" ? /* @__PURE__ */ React27.createElement(ButtonIcon, null) : "" : "", onClick: handleOpen }, " ", (buttonDialog == null ? void 0 : buttonDialog.text) != void 0 ? buttonDialog.text : "", " ")) : /* @__PURE__ */ React27.createElement(IconButton10, { style: { cursor: "pointer" }, onClick: handleOpen }, /* @__PURE__ */ React27.createElement(SvgIcon5, { fontSize: "small", color: (buttonDialog == null ? void 0 : buttonDialog.color) != void 0 ? buttonDialog == null ? void 0 : buttonDialog.color : "action", component: ButtonIcon }))) : "", /* @__PURE__ */ React27.createElement(Modal2, { open: open || false, onClose: handleClose }, /* @__PURE__ */ React27.createElement(
3301
3353
  Dialog,
3302
3354
  {
3303
3355
  fullScreen: typeView === "mobile" ? true : false,
@@ -3312,7 +3364,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
3312
3364
  }
3313
3365
  }
3314
3366
  },
3315
- title && /* @__PURE__ */ React27.createElement(DialogTitle, { sx: { m: 0, padding: "8px 16px 8px 16px" }, "data-testid": "dialog-icon-title" }, /* @__PURE__ */ React27.createElement(Grid8, { container: true, size: 12, sx: { justifyContent: "space-between", flexWrap: "nowrap" } }, /* @__PURE__ */ React27.createElement(Grid8, { container: true, size: 11, sx: { alignItems: "center", flexWrap: "nowrap" } }, iconTitle ? iconTitleValidation == "image" ? /* @__PURE__ */ React27.createElement(Box14, { sx: { marginRight: "16px", width: "44px", height: "44px", borderRadius: "1px" } }, /* @__PURE__ */ React27.createElement("img", { src: IconTitle, width: "44px", height: "44px" })) : /* @__PURE__ */ React27.createElement(SvgIcon5, { color: "action", fontSize: "small", component: IconTitle, sx: { marginRight: "16px" } }) : "", /* @__PURE__ */ React27.createElement(Grid8, { sx: { width: "98%" } }, /* @__PURE__ */ React27.createElement(Typography13, { color: "text.primary", variant: "h6", gutterBottom: true }, title ? title : ""), subtitle ? subtitle : "")), disableClose != true ? /* @__PURE__ */ React27.createElement(IconButton10, { "data-testid": "close-dialog-button", onClick: handleClose, size: "small", color: "default", sx: { height: 22, width: 22 } }, /* @__PURE__ */ React27.createElement(CloseIcon2, { color: "action" })) : "")),
3367
+ title && /* @__PURE__ */ React27.createElement(DialogTitle, { sx: { m: 0, padding: "8px 16px 8px 16px" }, "data-testid": "dialog-icon-title" }, /* @__PURE__ */ React27.createElement(Grid8, { container: true, size: 12, sx: { justifyContent: "space-between", flexWrap: "nowrap" } }, typeView == "web" ? /* @__PURE__ */ React27.createElement(Grid8, { container: true, size: 11, sx: { alignItems: "center", flexWrap: "nowrap" } }, iconTitle ? iconTitleValidation == "image" ? /* @__PURE__ */ React27.createElement(Box14, { sx: { marginRight: "16px", width: "44px", height: "44px", borderRadius: "1px" } }, /* @__PURE__ */ React27.createElement("img", { src: IconTitle, width: "44px", height: "44px" })) : /* @__PURE__ */ React27.createElement(SvgIcon5, { color: "action", fontSize: "small", component: IconTitle, sx: { marginRight: "16px" } }) : "", /* @__PURE__ */ React27.createElement(Grid8, { sx: { width: "98%" } }, /* @__PURE__ */ React27.createElement(Typography13, { color: "text.primary", variant: "h6", gutterBottom: true }, title ? title : ""), subtitle ? subtitle : "")) : /* @__PURE__ */ React27.createElement(Grid8, { container: true, size: 11, sx: { alignItems: "center", flexWrap: "nowrap" } }), disableClose != true ? /* @__PURE__ */ React27.createElement(IconButton10, { "data-testid": "close-dialog-button", onClick: handleClose, size: "small", color: "default", sx: { height: 22, width: 22 } }, /* @__PURE__ */ React27.createElement(CloseIcon2, { color: "action" })) : ""), typeView == "mobile" ? /* @__PURE__ */ React27.createElement(Grid8, { sx: { display: "flex", flexDirection: "column", padding: "12px 0px 4px 0px" }, gap: 1.5 }, /* @__PURE__ */ React27.createElement(Typography13, { color: "text.primary", variant: "h5" }, title ? title : ""), subtitle ? subtitle : "") : ""),
3316
3368
  /* @__PURE__ */ React27.createElement(
3317
3369
  DialogContent,
3318
3370
  {
@@ -3353,7 +3405,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
3353
3405
  ) : content.component
3354
3406
  ),
3355
3407
  dialogActions != void 0 && dialogActions != false ? Array.isArray(dialogActions) && (dialogActions == null ? void 0 : dialogActions.length) > 0 ? /* @__PURE__ */ React27.createElement(DialogActions, { sx: { zIndex: 1200, gap: 1, m: 0, padding: "12px 16px 12px 16px", justifyContent: dialogActions.length >= 3 ? "space-between" : "flex-end" } }, typeView !== "mobile" ? /* @__PURE__ */ React27.createElement(React27.Fragment, null, dialogActions.length >= 3 ? /* @__PURE__ */ React27.createElement(React27.Fragment, null, /* @__PURE__ */ React27.createElement(
3356
- Button11,
3408
+ Button12,
3357
3409
  {
3358
3410
  variant: "text",
3359
3411
  color: dialogActions[0].color || "primary",
@@ -3365,7 +3417,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
3365
3417
  dialogActions[0].text
3366
3418
  ), /* @__PURE__ */ React27.createElement(Box14, { sx: { display: "flex", gap: 1 } }, dialogActions.slice(1).map((boton, index) => {
3367
3419
  return /* @__PURE__ */ React27.createElement(
3368
- Button11,
3420
+ Button12,
3369
3421
  {
3370
3422
  key: index + 1,
3371
3423
  variant: index === dialogActions.length - 2 ? "contained" : "text",
@@ -3379,7 +3431,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
3379
3431
  );
3380
3432
  }))) : dialogActions.map((boton, index) => {
3381
3433
  return /* @__PURE__ */ React27.createElement(
3382
- Button11,
3434
+ Button12,
3383
3435
  {
3384
3436
  key: index,
3385
3437
  variant: index === dialogActions.length - 1 ? "contained" : "text",
@@ -3425,14 +3477,14 @@ var SCListContent = ({ options, iconLeftType = "Icon", iconRightType = "Icon" })
3425
3477
  }
3426
3478
  }
3427
3479
  });
3428
- return /* @__PURE__ */ React28.createElement(React28.Fragment, null, /* @__PURE__ */ React28.createElement(List, { sx: { width: "100%", maxWidth: 360, bgcolor: "background.paper", padding: "0px !important" } }, options.map((option, index) => {
3480
+ return /* @__PURE__ */ React28.createElement(React28.Fragment, null, /* @__PURE__ */ React28.createElement(List, { sx: { width: "100%", bgcolor: "background.paper", padding: "0px !important" } }, options.map((option, index) => {
3429
3481
  var _a, _b;
3430
3482
  return /* @__PURE__ */ React28.createElement(React28.Fragment, { key: index }, /* @__PURE__ */ React28.createElement(
3431
3483
  ListItemButton,
3432
3484
  {
3433
3485
  disabled: option.disable,
3434
3486
  onClick: option.fn,
3435
- sx: { gap: 1 }
3487
+ sx: { gap: 1, padding: iconLeftType == "Icon" ? "8px 8px" : "8px 8px 8px 0px" }
3436
3488
  },
3437
3489
  option.iconLeft ? iconLeftType == "Icon" ? /* @__PURE__ */ React28.createElement(ListItemIcon4, { sx: { minWidth: "0px !important" } }, /* @__PURE__ */ React28.createElement(SvgIcon6, { fontSize: "small", sx: { color: option.iconLeftColor || "action" }, component: option.iconLeft })) : /* @__PURE__ */ React28.createElement(Avatar, { 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__ */ React28.createElement(SvgIcon6, { fontSize: "small", component: option.iconLeft }) : option.iconLeft) : "",
3438
3490
  /* @__PURE__ */ React28.createElement(
@@ -3532,7 +3584,7 @@ var SCMenu = ({ header, options, defaultOption, disable, widthMenu, heightMenu,
3532
3584
 
3533
3585
  // src/Components/Menu/Menu.tsx
3534
3586
  import React30, { useCallback as useCallback4, useState as useState17 } from "react";
3535
- import { Button as Button13, Menu } from "@mui/material";
3587
+ import { Button as Button14, Menu } from "@mui/material";
3536
3588
  var BasicMenu = ({
3537
3589
  open,
3538
3590
  onClose,
@@ -3569,7 +3621,7 @@ var BasicMenu = ({
3569
3621
  }
3570
3622
  }, [onClose, setMenuOpen]);
3571
3623
  return /* @__PURE__ */ React30.createElement("div", null, /* @__PURE__ */ React30.createElement(
3572
- Button13,
3624
+ Button14,
3573
3625
  {
3574
3626
  id: "basic-button",
3575
3627
  "aria-controls": actualOpen ? "basic-menu" : void 0,
@@ -4652,7 +4704,7 @@ var SCTime = ({
4652
4704
 
4653
4705
  // src/Components/SCCard.tsx
4654
4706
  import React41 from "react";
4655
- import { Button as Button15, Box as Box26, SvgIcon as SvgIcon9 } from "@mui/material";
4707
+ import { Button as Button16, Box as Box26, SvgIcon as SvgIcon9 } from "@mui/material";
4656
4708
  import IconButton14 from "@mui/material/IconButton";
4657
4709
  import Card from "@mui/material/Card";
4658
4710
  import CardHeader from "@mui/material/CardHeader";
@@ -4687,7 +4739,7 @@ var SCCard = ({ width, title, image, iconTitle, actionsTitle, subtitle, content,
4687
4739
  CardHeader,
4688
4740
  {
4689
4741
  avatar: iconTitle ? iconTitleValidation === "image" ? /* @__PURE__ */ React41.createElement(Box26, { sx: { marginRight: "16px", width: "44px", height: "44px", borderRadius: "1px" } }, /* @__PURE__ */ React41.createElement("img", { src: IconTitle, width: "44px", height: "44px" })) : /* @__PURE__ */ React41.createElement(SvgIcon9, { color: "action", fontSize: "small", component: IconTitle, sx: { marginRight: "16px" } }) : void 0,
4690
- action: (expand == null ? void 0 : expand.position) == "top" ? (expand == null ? void 0 : expand.type) === "text" ? /* @__PURE__ */ React41.createElement(Button15, { onClick: handleExpandClick, sx: { marginRight: "auto" } }, "Expandir") : (expand == null ? void 0 : expand.type) === "icon" && /* @__PURE__ */ React41.createElement(IconButton14, { onClick: handleExpandClick, sx: { marginRight: "auto" }, size: "small" }, /* @__PURE__ */ React41.createElement(ExpandMoreIcon, { fontSize: "small" })) : actionsTitle,
4742
+ action: (expand == null ? void 0 : expand.position) == "top" ? (expand == null ? void 0 : expand.type) === "text" ? /* @__PURE__ */ React41.createElement(Button16, { onClick: handleExpandClick, sx: { marginRight: "auto" } }, "Expandir") : (expand == null ? void 0 : expand.type) === "icon" && /* @__PURE__ */ React41.createElement(IconButton14, { onClick: handleExpandClick, sx: { marginRight: "auto" }, size: "small" }, /* @__PURE__ */ React41.createElement(ExpandMoreIcon, { fontSize: "small" })) : actionsTitle,
4691
4743
  title,
4692
4744
  subheader: subtitle,
4693
4745
  sx: {
@@ -4713,8 +4765,8 @@ var SCCard = ({ width, title, image, iconTitle, actionsTitle, subtitle, content,
4713
4765
  height: "194",
4714
4766
  image
4715
4767
  }
4716
- ), content && /* @__PURE__ */ React41.createElement(CardContent, { sx: { padding: "8px 16px !important" } }, content), ((expand == null ? void 0 : expand.position) == "bottom" || actions != void 0) && /* @__PURE__ */ React41.createElement(CardActions, { disableSpacing: true, sx: { justifyContent: "flex-end" } }, (expand == null ? void 0 : expand.position) === "bottom" ? (expand == null ? void 0 : expand.type) === "text" ? /* @__PURE__ */ React41.createElement(Button15, { onClick: handleExpandClick, sx: { marginRight: "auto" } }, "Expandir") : (expand == null ? void 0 : expand.type) === "icon" && /* @__PURE__ */ React41.createElement(IconButton14, { onClick: handleExpandClick, sx: { marginRight: "auto" } }, /* @__PURE__ */ React41.createElement(ExpandMoreIcon, null)) : null, actions && actions.length > 0 ? actions.map((action, index) => /* @__PURE__ */ React41.createElement(
4717
- Button15,
4768
+ ), content && /* @__PURE__ */ React41.createElement(CardContent, { sx: { padding: "8px 16px !important" } }, content), ((expand == null ? void 0 : expand.position) == "bottom" || actions != void 0) && /* @__PURE__ */ React41.createElement(CardActions, { disableSpacing: true, sx: { justifyContent: "flex-end" } }, (expand == null ? void 0 : expand.position) === "bottom" ? (expand == null ? void 0 : expand.type) === "text" ? /* @__PURE__ */ React41.createElement(Button16, { onClick: handleExpandClick, sx: { marginRight: "auto" } }, "Expandir") : (expand == null ? void 0 : expand.type) === "icon" && /* @__PURE__ */ React41.createElement(IconButton14, { onClick: handleExpandClick, sx: { marginRight: "auto" } }, /* @__PURE__ */ React41.createElement(ExpandMoreIcon, null)) : null, actions && actions.length > 0 ? actions.map((action, index) => /* @__PURE__ */ React41.createElement(
4769
+ Button16,
4718
4770
  {
4719
4771
  key: index,
4720
4772
  size: "small",
@@ -4729,7 +4781,7 @@ var SCCard = ({ width, title, image, iconTitle, actionsTitle, subtitle, content,
4729
4781
 
4730
4782
  // src/Components/SCActivityCalendar.tsx
4731
4783
  import React42, { useState as useState23 } from "react";
4732
- import { Typography as Typography25, IconButton as IconButton15, Box as Box27, Badge as Badge2 } from "@mui/material";
4784
+ import { Typography as Typography25, IconButton as IconButton15, Box as Box27, Badge as Badge2, Menu as Menu3, MenuItem as MenuItem8, ListItemIcon as ListItemIcon6, Popover as Popover7 } from "@mui/material";
4733
4785
  import Grid11 from "@mui/material/Grid";
4734
4786
  import { AdapterDateFns as AdapterDateFns2 } from "@mui/x-date-pickers/AdapterDateFns";
4735
4787
  import { LocalizationProvider as LocalizationProvider4 } from "@mui/x-date-pickers/LocalizationProvider";
@@ -4740,6 +4792,11 @@ import KeyboardDoubleArrowDownIcon2 from "@mui/icons-material/KeyboardDoubleArro
4740
4792
  import KeyboardDoubleArrowUpIcon2 from "@mui/icons-material/KeyboardDoubleArrowUp";
4741
4793
  import ArrowForwardIcon from "@mui/icons-material/ArrowForward";
4742
4794
  import LightModeOutlinedIcon from "@mui/icons-material/LightModeOutlined";
4795
+ import FilterListIcon from "@mui/icons-material/FilterList";
4796
+ import CalendarMonthOutlinedIcon from "@mui/icons-material/CalendarMonthOutlined";
4797
+ import CheckCircleOutlineOutlinedIcon from "@mui/icons-material/CheckCircleOutlineOutlined";
4798
+ import EventBusyOutlinedIcon from "@mui/icons-material/EventBusyOutlined";
4799
+ import PendingOutlinedIcon from "@mui/icons-material/PendingOutlined";
4743
4800
  var SCActivityCalendar = ({
4744
4801
  //informativas
4745
4802
  //apariencia
@@ -4756,6 +4813,9 @@ var SCActivityCalendar = ({
4756
4813
  const [fechaSeleccionada, setFechaSeleccionada] = useState23();
4757
4814
  const [stateVal, setstateVal] = React42.useState(/* @__PURE__ */ new Date());
4758
4815
  const [openCalendar, setOpenCalendar] = React42.useState(false);
4816
+ const [anchorPopoverFiltro, setAnchorPopoverFiltro] = useState23(null);
4817
+ const [datosEventos, setDatosEventos] = React42.useState(events);
4818
+ const openPopoverFiltro = Boolean(anchorPopoverFiltro);
4759
4819
  const hoy = /* @__PURE__ */ new Date();
4760
4820
  const inicioSemana = startOfWeek2(fecha, { weekStartsOn: 0 });
4761
4821
  const diasSemana = Array.from({ length: 7 }, (_, i) => addDays2(inicioSemana, i));
@@ -4783,7 +4843,23 @@ var SCActivityCalendar = ({
4783
4843
  // 0 = domingo, 1 = lunes
4784
4844
  })
4785
4845
  });
4786
- return /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(LocalizationProvider4, { dateAdapter: AdapterDateFns2, adapterLocale: locale }, openCalendar == false ? /* @__PURE__ */ React42.createElement(Box27, { "data-testid": "calendar-mobile", sx: { width: "100%", background: background ? background : "white", display: "flex", flexDirection: "column", alignItems: "center" } }, /* @__PURE__ */ React42.createElement(Box27, { sx: { width: "100%", maxWidth: "320px", background: "transparent" } }, /* @__PURE__ */ React42.createElement(Grid11, { container: true, gap: 0.5, sx: { justifyContent: "space-between", padding: "12px 0px", background: "transparent" } }, diasSemana.map((dia) => /* @__PURE__ */ React42.createElement(Grid11, { sx: { width: "36px" }, key: dia.toString() }, /* @__PURE__ */ React42.createElement(Box27, { sx: { width: "36px", height: "40px", display: "flex", alignItems: "center", justifyContent: "center" } }, /* @__PURE__ */ React42.createElement(Typography25, { sx: { fontSize: "12px !important", color: "#10184099" } }, format2(dia, "EEEE", { locale: es2 }).charAt(0).toUpperCase())), /* @__PURE__ */ React42.createElement(
4846
+ const handleClickPopoverFiltro = (event2) => {
4847
+ setAnchorPopoverFiltro(event2.currentTarget);
4848
+ };
4849
+ const handleClosePopoverFiltro = () => {
4850
+ setAnchorPopoverFiltro(null);
4851
+ };
4852
+ const filtrarActividad = (event2, filtro) => {
4853
+ if (filtro === "Todo") {
4854
+ setDatosEventos(events);
4855
+ } else {
4856
+ const resultado = events.filter(
4857
+ (item) => item.state === filtro
4858
+ );
4859
+ setDatosEventos(resultado);
4860
+ }
4861
+ };
4862
+ return /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(LocalizationProvider4, { dateAdapter: AdapterDateFns2, adapterLocale: locale }, openCalendar == false ? /* @__PURE__ */ React42.createElement(Box27, { "data-testid": "calendar-mobile", sx: { width: "100%", background: background ? background : "white", display: "flex", flexDirection: "column", alignItems: "center" } }, /* @__PURE__ */ React42.createElement(Box27, { sx: { width: "100%", padding: "0px", background: "transparent" } }, /* @__PURE__ */ React42.createElement(Grid11, { container: true, gap: 0.5, sx: { justifyContent: "space-between", padding: "12px 16px", background: "transparent" } }, diasSemana.map((dia) => /* @__PURE__ */ React42.createElement(Grid11, { sx: { width: "36px" }, key: dia.toString() }, /* @__PURE__ */ React42.createElement(Box27, { sx: { width: "36px", height: "40px", display: "flex", alignItems: "center", justifyContent: "center" } }, /* @__PURE__ */ React42.createElement(Typography25, { sx: { fontSize: "12px !important", color: "#10184099" } }, format2(dia, "EEEE", { locale: es2 }).charAt(0).toUpperCase())), /* @__PURE__ */ React42.createElement(
4787
4863
  Box27,
4788
4864
  {
4789
4865
  onClick: () => setFecha(dia),
@@ -4804,10 +4880,54 @@ var SCActivityCalendar = ({
4804
4880
  openTo: "day",
4805
4881
  value: fecha,
4806
4882
  slotProps: { toolbar: { hidden: true }, actionBar: { actions: [] } },
4807
- sx: { fontSize: "12px !important", height: "300px !important", background: background ? background : "white", "& .MuiDayCalendar-header": { justifyContent: "space-between" }, "& .MuiDayCalendar-weekContainer": { justifyContent: "space-between" }, "& .MuiPickersCalendarHeader-root": { paddingLeft: "0px", paddingRight: "0px", color: "#10184099" }, "& .MuiPickersDay-root": { fontSize: "12px !important" }, "& .MuiDayCalendar-weekDayLabel": { fontSize: "12px !important" } },
4883
+ sx: {
4884
+ "& .MuiDateCalendar-root": {
4885
+ width: "97.5%",
4886
+ maxWidth: "unset",
4887
+ margin: 0,
4888
+ padding: "0px 16px"
4889
+ },
4890
+ fontSize: "12px !important",
4891
+ height: "260px !important",
4892
+ background: background ? background : "white",
4893
+ "& .MuiDayCalendar-header": { justifyContent: "space-between" },
4894
+ "& .MuiDayCalendar-weekContainer": { justifyContent: "space-between" },
4895
+ "& .MuiPickersCalendarHeader-root": { paddingLeft: "0px", paddingRight: "0px", color: "#10184099" },
4896
+ "& .MuiPickersDay-root": { fontSize: "12px !important" },
4897
+ "& .MuiDayCalendar-weekDayLabel": { fontSize: "12px !important" }
4898
+ },
4808
4899
  onChange: (newValue) => setFecha(newValue)
4809
4900
  }
4810
- ), /* @__PURE__ */ React42.createElement(Grid11, { container: true, justifyContent: "center" }, /* @__PURE__ */ React42.createElement(IconButton15, { "data-testid": "close-calendar-button", onClick: toggleCalendar(false) }, /* @__PURE__ */ React42.createElement(KeyboardDoubleArrowUpIcon2, { color: "action" }))))), /* @__PURE__ */ React42.createElement(Box27, { sx: { boxSizing: "border-box", padding: "0px 16px", width: "100%", height: openCalendar ? "calc(91% - 300px)" : "calc(91% - 100px)", background: "white", display: "flex", flexDirection: "column", overflowY: "auto", gap: "8px", scrollSnapType: "x mandatory", paddingBottom: "10px" } }, diasSemana.map((day, dayIndex) => /* @__PURE__ */ React42.createElement(
4901
+ ), /* @__PURE__ */ React42.createElement(Grid11, { container: true, justifyContent: "center" }, /* @__PURE__ */ React42.createElement(IconButton15, { "data-testid": "close-calendar-button", onClick: toggleCalendar(false) }, /* @__PURE__ */ React42.createElement(KeyboardDoubleArrowUpIcon2, { color: "action" }))))), /* @__PURE__ */ React42.createElement(IconButton15, { onClick: handleClickPopoverFiltro, sx: { position: "fixed", right: "calc(100% - 96%)", top: openCalendar == false ? "197px" : "357px" } }, /* @__PURE__ */ React42.createElement(FilterListIcon, { color: "action" })), /* @__PURE__ */ React42.createElement(
4902
+ Popover7,
4903
+ {
4904
+ open: openPopoverFiltro,
4905
+ anchorEl: anchorPopoverFiltro,
4906
+ onClose: handleClosePopoverFiltro,
4907
+ anchorOrigin: {
4908
+ vertical: "bottom",
4909
+ horizontal: "right"
4910
+ }
4911
+ },
4912
+ /* @__PURE__ */ React42.createElement(
4913
+ Menu3,
4914
+ {
4915
+ id: "basic-menu",
4916
+ anchorEl: anchorPopoverFiltro,
4917
+ open: openPopoverFiltro,
4918
+ onClose: handleClosePopoverFiltro,
4919
+ slotProps: {
4920
+ list: {
4921
+ "aria-labelledby": "basic-button"
4922
+ }
4923
+ }
4924
+ },
4925
+ /* @__PURE__ */ React42.createElement(MenuItem8, { onClick: (event2) => filtrarActividad(event2, "Todo") }, /* @__PURE__ */ React42.createElement(ListItemIcon6, null, /* @__PURE__ */ React42.createElement(CalendarMonthOutlinedIcon, { fontSize: "small" })), /* @__PURE__ */ React42.createElement(Typography25, { variant: "inherit" }, "Ver todo")),
4926
+ /* @__PURE__ */ React42.createElement(MenuItem8, { onClick: (event2) => filtrarActividad(event2, "Finalizada") }, /* @__PURE__ */ React42.createElement(ListItemIcon6, null, /* @__PURE__ */ React42.createElement(CheckCircleOutlineOutlinedIcon, { fontSize: "small" })), /* @__PURE__ */ React42.createElement(Typography25, { variant: "inherit" }, "Ver finalizadas")),
4927
+ /* @__PURE__ */ React42.createElement(MenuItem8, { onClick: (event2) => filtrarActividad(event2, "Aplazada") }, /* @__PURE__ */ React42.createElement(ListItemIcon6, null, /* @__PURE__ */ React42.createElement(EventBusyOutlinedIcon, { fontSize: "small" })), /* @__PURE__ */ React42.createElement(Typography25, { variant: "inherit" }, "Ver aplazadas")),
4928
+ /* @__PURE__ */ React42.createElement(MenuItem8, { onClick: (event2) => filtrarActividad(event2, "En progreso") }, /* @__PURE__ */ React42.createElement(ListItemIcon6, null, /* @__PURE__ */ React42.createElement(PendingOutlinedIcon, { fontSize: "small" })), /* @__PURE__ */ React42.createElement(Typography25, { variant: "inherit" }, "Ver en progreso"))
4929
+ )
4930
+ ), /* @__PURE__ */ React42.createElement(Box27, { sx: { boxSizing: "border-box", padding: "0px 16px", width: "100%", height: openCalendar ? "calc(91% - 260px)" : "calc(91% - 100px)", background: "white", display: "flex", flexDirection: "column", overflowY: "auto", gap: "8px", scrollSnapType: "x mandatory", paddingBottom: "10px" } }, diasSemana.map((day, dayIndex) => /* @__PURE__ */ React42.createElement(
4811
4931
  Box27,
4812
4932
  {
4813
4933
  key: dayIndex
@@ -4824,7 +4944,7 @@ var SCActivityCalendar = ({
4824
4944
  flexDirection: "column"
4825
4945
  } }, (() => {
4826
4946
  const esDomingo = day.getDay() === 0;
4827
- const eventosDelDia = events.filter(
4947
+ const eventosDelDia = datosEventos.filter(
4828
4948
  (event2) => new Date(event2.date).toDateString() === day.toDateString()
4829
4949
  );
4830
4950
  if (eventosDelDia.length > 0) {
@@ -4866,7 +4986,7 @@ import Webcam from "react-webcam";
4866
4986
 
4867
4987
  // src/Components/Adjuntar/mobile/components/button.tsx
4868
4988
  import React43, { useMemo as useMemo5 } from "react";
4869
- import { Button as Button17 } from "@mui/material";
4989
+ import { Button as Button18 } from "@mui/material";
4870
4990
 
4871
4991
  // src/Components/Adjuntar/mobile/components/Utils.tsx
4872
4992
  import * as MuiIcons4 from "@mui/icons-material";
@@ -4897,7 +5017,7 @@ var AttachmentButton = ({ buttonAttachment, open, setOpen }) => {
4897
5017
  );
4898
5018
  if (!buttonAttachment) return null;
4899
5019
  return /* @__PURE__ */ React43.createElement(React43.Fragment, null, buttonAttachment && /* @__PURE__ */ React43.createElement(
4900
- Button17,
5020
+ Button18,
4901
5021
  {
4902
5022
  "data-testid": "test-buttonModal",
4903
5023
  color: (_a = buttonAttachment == null ? void 0 : buttonAttachment.color) != null ? _a : "primary",
@@ -4918,15 +5038,19 @@ import { Box as Box28 } from "@mui/system";
4918
5038
  import { CloseOutlined, DeleteOutline as DeleteOutline2, FolderOpenOutlined, PhotoCameraOutlined, UploadFileOutlined as UploadFileOutlined2 } from "@mui/icons-material";
4919
5039
  import PhotoCameraIcon from "@mui/icons-material/PhotoCamera";
4920
5040
  import CancelOutlinedIcon from "@mui/icons-material/CancelOutlined";
5041
+ import ImageOutlinedIcon from "@mui/icons-material/ImageOutlined";
5042
+ import FileDownloadOutlinedIcon from "@mui/icons-material/FileDownloadOutlined";
4921
5043
  var AttachmentMobile = ({
4922
5044
  buttonAttachment,
4923
5045
  maxSize = 400,
4924
5046
  fileAccepted = "",
4925
5047
  initialFiles,
4926
5048
  deleteAction,
4927
- children,
5049
+ downloadAction,
4928
5050
  onChange,
4929
- sx
5051
+ children,
5052
+ sx,
5053
+ view = "button"
4930
5054
  }) => {
4931
5055
  const webcamRef = useRef8(null);
4932
5056
  const [abrirCamara, setAbrirCamara] = useState24(false);
@@ -5083,7 +5207,7 @@ var AttachmentMobile = ({
5083
5207
  }
5084
5208
  });
5085
5209
  const AttachtmentActions = [
5086
- { icon: /* @__PURE__ */ React44.createElement(FolderOpenOutlined, { type: "file", color: "primary" }), color: "primary", label: "Galer\xEDa", onClick: () => {
5210
+ { icon: /* @__PURE__ */ React44.createElement(ImageOutlinedIcon, { type: "file", color: "primary" }), color: "primary", label: "Galer\xEDa", onClick: () => {
5087
5211
  var _a;
5088
5212
  return (_a = inputRef.current) == null ? void 0 : _a.click();
5089
5213
  } },
@@ -5098,24 +5222,32 @@ var AttachmentMobile = ({
5098
5222
  setFiles(initialFiles);
5099
5223
  }
5100
5224
  }, []);
5101
- return /* @__PURE__ */ React44.createElement(Box28, { display: "flex", flexDirection: "column", gap: 1 }, /* @__PURE__ */ React44.createElement(Box28, { display: "flex", width: "100%", justifyContent: "space-between", alignItems: "center", sx }, children, /* @__PURE__ */ React44.createElement(
5225
+ return /* @__PURE__ */ React44.createElement(Box28, { display: "flex", flexDirection: "column", gap: 1 }, view == "button" ? /* @__PURE__ */ React44.createElement(Box28, { display: "flex", width: "100%", justifyContent: "space-between", alignItems: "center", sx }, children, /* @__PURE__ */ React44.createElement(
5102
5226
  AttachmentButton,
5103
5227
  {
5104
5228
  buttonAttachment,
5105
5229
  open,
5106
5230
  setOpen
5107
5231
  }
5108
- )), /* @__PURE__ */ React44.createElement(CssBaseline, null), /* @__PURE__ */ React44.createElement(
5232
+ )) : "", /* @__PURE__ */ React44.createElement(CssBaseline, null), /* @__PURE__ */ React44.createElement(
5109
5233
  SwipeableDrawer2,
5110
5234
  {
5235
+ slotProps: {
5236
+ backdrop: {
5237
+ sx: { backgroundColor: "#00000038" }
5238
+ }
5239
+ },
5111
5240
  ModalProps: {
5112
5241
  sx: {
5113
5242
  zIndex: 1400,
5114
5243
  "& .MuiPaper-root": {
5115
5244
  borderRadius: "16px 16px 0 0"
5116
5245
  }
5117
- }
5246
+ },
5247
+ BackdropProps: { timeout: 400 }
5118
5248
  },
5249
+ transitionDuration: { enter: 500, exit: 400 },
5250
+ hysteresis: 0.2,
5119
5251
  anchor: "bottom",
5120
5252
  swipeAreaWidth: 56,
5121
5253
  open,
@@ -5123,7 +5255,7 @@ var AttachmentMobile = ({
5123
5255
  onOpen: toggleAttachment(true)
5124
5256
  },
5125
5257
  toast && /* @__PURE__ */ React44.createElement(SCToastNotification, __spreadValues({}, toast)),
5126
- /* @__PURE__ */ React44.createElement(Box28, { display: "flex", flexDirection: "column", alignItems: "center", p: 2, gap: 2 }, /* @__PURE__ */ React44.createElement(Box28, { display: "flex", width: "100%", justifyContent: "space-between", alignItems: "center", gap: 1, p: 1 }, /* @__PURE__ */ React44.createElement(Typography26, { variant: "h6", color: "text.primary" }, "Agregar adjuntos"), /* @__PURE__ */ React44.createElement(IconButton16, { size: "medium", onClick: toggleAttachment(false) }, /* @__PURE__ */ React44.createElement(CloseOutlined, { color: "action" }))), /* @__PURE__ */ React44.createElement(
5258
+ /* @__PURE__ */ React44.createElement(Box28, { display: "flex", flexDirection: "column", alignItems: "center", p: 2, gap: 2 }, /* @__PURE__ */ React44.createElement(Box28, { display: "flex", width: "100%", justifyContent: "space-between", alignItems: "center", gap: 1, p: 1 }, /* @__PURE__ */ React44.createElement(Typography26, { variant: "h6", color: "text.primary" }, "Agrega adjuntos"), /* @__PURE__ */ React44.createElement(IconButton16, { size: "medium", onClick: toggleAttachment(false) }, /* @__PURE__ */ React44.createElement(CloseOutlined, { color: "action" }))), /* @__PURE__ */ React44.createElement(
5127
5259
  "input",
5128
5260
  {
5129
5261
  type: "file",
@@ -5132,22 +5264,21 @@ var AttachmentMobile = ({
5132
5264
  ref: inputRef,
5133
5265
  onChange: handleUpload
5134
5266
  }
5135
- ), /* @__PURE__ */ React44.createElement(Box28, { display: "flex", justifyContent: "space-around", alignItems: "center", width: "100%", gap: 2 }, AttachtmentActions.map((option, index) => /* @__PURE__ */ React44.createElement(
5267
+ ), /* @__PURE__ */ React44.createElement(Box28, { display: "flex", justifyContent: "space-around", alignItems: "center", width: "100%", gap: 2, sx: { padding: "0px 0px 52px 0px !important" } }, AttachtmentActions.map((option, index) => /* @__PURE__ */ React44.createElement(
5136
5268
  Box28,
5137
5269
  {
5138
5270
  display: "flex",
5139
5271
  flexDirection: "column",
5140
5272
  alignItems: "center",
5141
- width: 100,
5273
+ width: "100%",
5142
5274
  height: 80,
5143
5275
  borderRadius: 1,
5144
- bgcolor: "grey.100",
5276
+ bgcolor: "grey.50",
5145
5277
  border: "1px solid",
5146
- borderColor: "grey.50",
5147
- boxShadow: 1,
5278
+ borderColor: "grey.100",
5148
5279
  justifyContent: "center",
5149
5280
  p: 1,
5150
- gap: 1,
5281
+ gap: 0.5,
5151
5282
  onClick: option.onClick,
5152
5283
  sx: {
5153
5284
  cursor: "pointer"
@@ -5163,7 +5294,7 @@ var AttachmentMobile = ({
5163
5294
  },
5164
5295
  option.icon
5165
5296
  ),
5166
- /* @__PURE__ */ React44.createElement(Typography26, { variant: "body2", color: "text.primary" }, option.label)
5297
+ /* @__PURE__ */ React44.createElement(Typography26, { variant: "body2", color: "text.secondary" }, option.label)
5167
5298
  ))))
5168
5299
  ), abrirCamara && /* @__PURE__ */ React44.createElement(React44.Fragment, null, /* @__PURE__ */ React44.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__ */ React44.createElement(Stack14, { className: "camras" }, /* @__PURE__ */ React44.createElement(
5169
5300
  Webcam,
@@ -5263,7 +5394,17 @@ var AttachmentMobile = ({
5263
5394
  },
5264
5395
  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}`
5265
5396
  ))),
5266
- /* @__PURE__ */ React44.createElement(Tooltip8, { title: "Eliminar" }, /* @__PURE__ */ React44.createElement(
5397
+ view == "file" ? /* @__PURE__ */ React44.createElement(Tooltip8, { title: "Descargar" }, /* @__PURE__ */ React44.createElement(
5398
+ IconButton16,
5399
+ {
5400
+ size: "small",
5401
+ onClick: () => downloadAction == null ? void 0 : downloadAction(file),
5402
+ disabled: file.uploadError,
5403
+ "aria-label": `Descargar ${file.name}`
5404
+ },
5405
+ /* @__PURE__ */ React44.createElement(FileDownloadOutlinedIcon, { fontSize: "small", color: "action" })
5406
+ )) : "",
5407
+ view == "button" ? /* @__PURE__ */ React44.createElement(Tooltip8, { title: "Eliminar" }, /* @__PURE__ */ React44.createElement(
5267
5408
  IconButton16,
5268
5409
  {
5269
5410
  size: "small",
@@ -5271,7 +5412,7 @@ var AttachmentMobile = ({
5271
5412
  "aria-label": `Eliminar ${file.name}`
5272
5413
  },
5273
5414
  /* @__PURE__ */ React44.createElement(DeleteOutline2, { fontSize: "small", color: "action" })
5274
- ))
5415
+ )) : ""
5275
5416
  ))
5276
5417
  ));
5277
5418
  };
@@ -5320,7 +5461,7 @@ var SCSnackBar = ({
5320
5461
 
5321
5462
  // src/Components/SCAppBar.tsx
5322
5463
  import React46, { useState as useState26, useEffect as useEffect22 } from "react";
5323
- import { Menu as Menu3, Box as Box29, Typography as Typography27, MenuItem as MenuItem8, IconButton as IconButton17, Badge as Badge3 } from "@mui/material";
5464
+ import { Menu as Menu4, Box as Box29, Typography as Typography27, MenuItem as MenuItem9, IconButton as IconButton17, Badge as Badge3 } from "@mui/material";
5324
5465
  import Grid12 from "@mui/material/Grid";
5325
5466
  import "dayjs/locale/es";
5326
5467
  import MenuIcon from "@mui/icons-material/Menu";
@@ -5376,7 +5517,7 @@ var SCAppBar = ({
5376
5517
  color: isOnline ? "success" : "error"
5377
5518
  }
5378
5519
  ), /* @__PURE__ */ React46.createElement(Typography27, { variant: "caption", color: "text.secondary" }, isOnline ? "Online" : "Offline")), visibleMenu && /* @__PURE__ */ React46.createElement(React46.Fragment, null, /* @__PURE__ */ React46.createElement(IconButton17, { size: "medium", onClick: handleMenuClick }, /* @__PURE__ */ React46.createElement(MenuIcon, { color: "action" })), /* @__PURE__ */ React46.createElement(
5379
- Menu3,
5520
+ Menu4,
5380
5521
  {
5381
5522
  anchorEl,
5382
5523
  open: openMenu,
@@ -5391,15 +5532,81 @@ var SCAppBar = ({
5391
5532
  },
5392
5533
  sx: { zIndex: "2000" }
5393
5534
  },
5394
- options.map((option, index) => /* @__PURE__ */ React46.createElement(MenuItem8, { onClick: option.fn, disabled: option.disabled, key: index }, /* @__PURE__ */ React46.createElement(Typography27, { variant: "body2" }, option.name)))
5535
+ options.map((option, index) => /* @__PURE__ */ React46.createElement(MenuItem9, { onClick: option.fn, disabled: option.disabled, key: index }, /* @__PURE__ */ React46.createElement(Typography27, { variant: "body2" }, option.name)))
5395
5536
  )))), /* @__PURE__ */ React46.createElement(Box29, { sx: { padding: "8px 16px 0px 16px" } }, contenidoExtra)));
5396
5537
  };
5397
5538
 
5539
+ // src/Components/SCDatePicker.tsx
5540
+ import React47 from "react";
5541
+ import { DatePicker } from "@mui/x-date-pickers/DatePicker";
5542
+ import "dayjs/locale/es";
5543
+ import dayjs11 from "dayjs";
5544
+ import "dayjs/locale/es";
5545
+ import { LocalizationProvider as LocalizationProvider5 } from "@mui/x-date-pickers/LocalizationProvider";
5546
+ import { AdapterDayjs as AdapterDayjs3 } from "@mui/x-date-pickers/AdapterDayjs";
5547
+ import InsertInvitationOutlinedIcon from "@mui/icons-material/InsertInvitationOutlined";
5548
+ var SCDatePicker = ({ label, required, disabled, background, state, setState, width }) => {
5549
+ return /* @__PURE__ */ React47.createElement(LocalizationProvider5, { dateAdapter: AdapterDayjs3, adapterLocale: "es" }, /* @__PURE__ */ React47.createElement(
5550
+ DatePicker,
5551
+ {
5552
+ disabled,
5553
+ label: label || "Fecha",
5554
+ value: state,
5555
+ onChange: (value) => {
5556
+ if (value && dayjs11.isDayjs(value) && value.isValid()) {
5557
+ const minDate = dayjs11("2015-01-01");
5558
+ const maxDate = dayjs11().add(3, "month");
5559
+ if (value.isBefore(minDate, "day")) {
5560
+ alert("La fecha no puede ser anterior al 01/01/2015");
5561
+ return;
5562
+ }
5563
+ if (value.isAfter(maxDate, "day")) {
5564
+ alert("La fecha no puede ser posterior a 3 meses desde hoy");
5565
+ return;
5566
+ }
5567
+ setState(value);
5568
+ }
5569
+ },
5570
+ minDate: dayjs11("2015-01-01"),
5571
+ maxDate: dayjs11().add(3, "month"),
5572
+ sx: {
5573
+ minWidth: 140,
5574
+ padding: "13px 0px",
5575
+ width: width || "100%",
5576
+ "& .MuiPickersInputBase-sectionsContainer": {
5577
+ padding: "8px 0px"
5578
+ },
5579
+ background: background || "transparent"
5580
+ },
5581
+ slotProps: {
5582
+ popper: {
5583
+ sx: {
5584
+ zIndex: 2e3
5585
+ }
5586
+ },
5587
+ textField: {
5588
+ required: required || false,
5589
+ InputLabelProps: {
5590
+ sx: {
5591
+ "&.MuiInputLabel-shrink": {
5592
+ transform: "translate(10px, 5px) scale(0.9) !important"
5593
+ }
5594
+ }
5595
+ }
5596
+ }
5597
+ },
5598
+ slots: {
5599
+ openPickerIcon: InsertInvitationOutlinedIcon
5600
+ }
5601
+ }
5602
+ ));
5603
+ };
5604
+
5398
5605
  // src/Theme/index.ts
5399
5606
  import { createTheme } from "@mui/material/styles";
5400
5607
 
5401
5608
  // src/Theme/components.ts
5402
- import React47 from "react";
5609
+ import React48 from "react";
5403
5610
  import {
5404
5611
  InfoRounded as InfoRounded2,
5405
5612
  CheckCircleRounded as CheckCircleRounded2,
@@ -5761,6 +5968,7 @@ var components = {
5761
5968
  })
5762
5969
  }
5763
5970
  },
5971
+ //este hace claro el fondo
5764
5972
  MuiBackdrop: {
5765
5973
  styleOverrides: {
5766
5974
  root: {
@@ -6102,10 +6310,10 @@ var components = {
6102
6310
  MuiAlert: {
6103
6311
  defaultProps: {
6104
6312
  iconMapping: {
6105
- success: React47.createElement(CheckCircleRounded2),
6106
- error: React47.createElement(ErrorRounded2),
6107
- warning: React47.createElement(WarningRounded2),
6108
- info: React47.createElement(InfoRounded2)
6313
+ success: React48.createElement(CheckCircleRounded2),
6314
+ error: React48.createElement(ErrorRounded2),
6315
+ warning: React48.createElement(WarningRounded2),
6316
+ info: React48.createElement(InfoRounded2)
6109
6317
  }
6110
6318
  },
6111
6319
  variants: [
@@ -7163,6 +7371,7 @@ export {
7163
7371
  SCCard,
7164
7372
  SCDataGrid,
7165
7373
  SCDataGridInitial,
7374
+ SCDatePicker,
7166
7375
  SCDateRange,
7167
7376
  SCDialog,
7168
7377
  SCDrawer,