componentes-sinco 1.0.33 → 1.0.34-rc.2

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
@@ -756,7 +756,7 @@ var Attachment = ({
756
756
 
757
757
  // src/Components/Drawer/SCDrawer.tsx
758
758
  import React16 from "react";
759
- import { Drawer, Stack as Stack6 } from "@mui/material";
759
+ import { Drawer, Stack as Stack6, SwipeableDrawer, Box as Box11 } from "@mui/material";
760
760
  import Grid6 from "@mui/material/Grid";
761
761
 
762
762
  // src/Components/Drawer/Helpers/Utils.tsx
@@ -1987,7 +1987,6 @@ var SCDateRange = ({
1987
1987
  const isStartEmpty = required && !state[0];
1988
1988
  const isEndEmpty = required && !state[1];
1989
1989
  const hasError = isStartEmpty || isEndEmpty;
1990
- const minDate = new Date(2013, 0, 1);
1991
1990
  const [notification, setNotification] = React12.useState(false);
1992
1991
  const handleDateChange = (newValue) => {
1993
1992
  const minDateDayjs = dayjs("2013-01-01");
@@ -2007,7 +2006,30 @@ var SCDateRange = ({
2007
2006
  return;
2008
2007
  }
2009
2008
  }
2010
- setState(convertedValue);
2009
+ const startDateChanged = convertedValue[0] && state[0] && !convertedValue[0].isSame(state[0], "day");
2010
+ const hasEndDate = convertedValue[1] !== null;
2011
+ if (startDateChanged && convertedValue[0]) {
2012
+ if (!hasEndDate || hasEndDate && convertedValue[0].isAfter(convertedValue[1])) {
2013
+ const correctedValue = [
2014
+ convertedValue[0],
2015
+ convertedValue[0]
2016
+ // Establecer fecha final igual a la inicial
2017
+ ];
2018
+ setState(correctedValue);
2019
+ return;
2020
+ }
2021
+ }
2022
+ const isInvalidRange = convertedValue[0] && convertedValue[1] && convertedValue[0].isAfter(convertedValue[1]);
2023
+ if (isInvalidRange) {
2024
+ const correctedValue = [
2025
+ convertedValue[0],
2026
+ convertedValue[0]
2027
+ // Establecer fecha final igual a la inicial
2028
+ ];
2029
+ setState(correctedValue);
2030
+ } else {
2031
+ setState(convertedValue);
2032
+ }
2011
2033
  };
2012
2034
  return /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement(LocalizationProvider, { dateAdapter: AdapterDayjs, adapterLocale: "es" }, /* @__PURE__ */ React12.createElement(Box9, { sx: { width: "100%" } }, /* @__PURE__ */ React12.createElement(
2013
2035
  DateRangePicker,
@@ -2019,44 +2041,38 @@ var SCDateRange = ({
2019
2041
  field: MultiInputDateRangeField
2020
2042
  },
2021
2043
  slotProps: {
2022
- field: {
2023
- slotProps: {
2024
- textField: ({ position }) => ({
2025
- label: position === "start" ? labelDateInitial : labelDateFinal,
2026
- size: "small",
2027
- variant: "outlined",
2028
- required,
2029
- error: position === "start" ? isStartEmpty : isEndEmpty,
2030
- InputProps: {
2031
- endAdornment: /* @__PURE__ */ React12.createElement(InputAdornment4, { position: "end" }, /* @__PURE__ */ React12.createElement(
2032
- EventIcon,
2033
- {
2034
- color: hasError ? "error" : "action",
2035
- fontSize: "small"
2036
- }
2037
- ))
2044
+ textField: ({ position }) => {
2045
+ const isStart = position === "start";
2046
+ return {
2047
+ label: isStart ? labelDateInitial : labelDateFinal,
2048
+ size: "small",
2049
+ variant: "outlined",
2050
+ required,
2051
+ error: isStart ? isStartEmpty : isEndEmpty,
2052
+ InputProps: {
2053
+ endAdornment: /* @__PURE__ */ React12.createElement(InputAdornment4, { position: "end" }, /* @__PURE__ */ React12.createElement(
2054
+ EventIcon,
2055
+ {
2056
+ color: hasError ? "error" : "action",
2057
+ fontSize: "small"
2058
+ }
2059
+ ))
2060
+ },
2061
+ sx: {
2062
+ flex: 1,
2063
+ "& .MuiOutlinedInput-root": {
2064
+ backgroundColor: background === "transparent" ? "transparent" : background
2038
2065
  },
2039
- sx: {
2040
- mr: position === "start" ? 1 : 0,
2041
- "& .MuiOutlinedInput-root": {
2042
- backgroundColor: background === "transparent" ? "transparent" : background
2043
- },
2044
- "& .MuiInputLabel-asterisk": {
2045
- color: "error.main"
2046
- },
2047
- background: background != null ? background : "transparent"
2048
- }
2049
- })
2050
- }
2066
+ "& .MuiInputLabel-asterisk": {
2067
+ color: "error.main"
2068
+ },
2069
+ background: background != null ? background : "transparent"
2070
+ }
2071
+ };
2051
2072
  }
2052
- },
2053
- sx: {
2054
- display: "flex",
2055
- gap: 1,
2056
- width: "100%"
2057
2073
  }
2058
2074
  }
2059
- ))), notification && /* @__PURE__ */ React12.createElement(SCToastNotification, { title: "El Formato de la fecha no es v\xE1lido", type: "error" }));
2075
+ ))));
2060
2076
  };
2061
2077
 
2062
2078
  // src/Components/Drawer/components/DrawerContent.tsx
@@ -2225,7 +2241,7 @@ var DrawerActions = ({ actions, anchor }) => {
2225
2241
 
2226
2242
  // src/Components/Drawer/components/DrawerHeader.tsx
2227
2243
  import React15 from "react";
2228
- import { Typography as Typography9, IconButton as IconButton8 } from "@mui/material";
2244
+ import { Typography as Typography8, IconButton as IconButton8 } from "@mui/material";
2229
2245
  import Grid5 from "@mui/material/Grid";
2230
2246
  import CloseIcon from "@mui/icons-material/Close";
2231
2247
  var DrawerHeader = ({
@@ -2247,7 +2263,7 @@ var DrawerHeader = ({
2247
2263
  alignContent: "center"
2248
2264
  }
2249
2265
  },
2250
- /* @__PURE__ */ React15.createElement(Typography9, { variant: "h6", color: colorTitle || "text.primary" }, title != null ? title : "Personaliza tu b\xFAsqueda"),
2266
+ /* @__PURE__ */ React15.createElement(Typography8, { variant: "h6", color: colorTitle || "text.primary" }, title != null ? title : "Personaliza tu b\xFAsqueda"),
2251
2267
  /* @__PURE__ */ React15.createElement(IconButton8, { onClick: onClose }, /* @__PURE__ */ React15.createElement(CloseIcon, { "data-testid": "test-button-close", sx: { color: "text.primary" } }))
2252
2268
  );
2253
2269
  };
@@ -2265,6 +2281,7 @@ function SCDrawer({
2265
2281
  setOpen,
2266
2282
  chipFilters
2267
2283
  }) {
2284
+ const drawerBleeding = 56;
2268
2285
  const { drawerOpen, handleDrawerClose, toggleDrawer } = useDrawerState({ open, setOpen });
2269
2286
  const { toast, setToastWithDelay } = useToast();
2270
2287
  const {
@@ -2327,12 +2344,12 @@ function SCDrawer({
2327
2344
  onToggle: toggleDrawer(true)
2328
2345
  }
2329
2346
  )
2330
- ), /* @__PURE__ */ React16.createElement(
2347
+ ), anchor != "bottom" ? /* @__PURE__ */ React16.createElement(
2331
2348
  Drawer,
2332
2349
  {
2333
2350
  open: drawerOpen,
2334
2351
  onClose: toggleDrawer(false),
2335
- anchor,
2352
+ anchor: anchor != null ? anchor : "left",
2336
2353
  sx: {
2337
2354
  "& .MuiDrawer-paper": {
2338
2355
  width: width != null ? width : "450px",
@@ -2349,12 +2366,51 @@ function SCDrawer({
2349
2366
  onClose: handleDrawerClose
2350
2367
  }
2351
2368
  ), /* @__PURE__ */ React16.createElement(DrawerContent, { arrayElements }), /* @__PURE__ */ React16.createElement(DrawerActions, { actions: drawerActions, anchor }))
2369
+ ) : /* @__PURE__ */ React16.createElement(
2370
+ SwipeableDrawer,
2371
+ {
2372
+ open: drawerOpen,
2373
+ onClose: toggleDrawer(false),
2374
+ onOpen: toggleDrawer(true),
2375
+ anchor: "bottom",
2376
+ swipeAreaWidth: drawerBleeding,
2377
+ sx: {
2378
+ "& .MuiDrawer-paper": {
2379
+ width: "auto",
2380
+ height: `calc(50% - ${drawerBleeding}px)`,
2381
+ boxSizing: "border-box",
2382
+ borderRadius: "4px 4px 0px 0px"
2383
+ }
2384
+ }
2385
+ },
2386
+ /* @__PURE__ */ React16.createElement(
2387
+ Box11,
2388
+ {
2389
+ sx: {
2390
+ width: 30,
2391
+ height: 6,
2392
+ backgroundColor: "#ccc",
2393
+ borderRadius: 3,
2394
+ position: "absolute",
2395
+ top: 8,
2396
+ left: "calc(50% - 15px)"
2397
+ }
2398
+ }
2399
+ ),
2400
+ /* @__PURE__ */ React16.createElement(Stack6, { flexDirection: "column", height: "100%" }, /* @__PURE__ */ React16.createElement(
2401
+ DrawerHeader,
2402
+ {
2403
+ title,
2404
+ colorTitle,
2405
+ onClose: handleDrawerClose
2406
+ }
2407
+ ), /* @__PURE__ */ React16.createElement(DrawerContent, { arrayElements }), /* @__PURE__ */ React16.createElement(DrawerActions, { actions: drawerActions, anchor }))
2352
2408
  ));
2353
2409
  }
2354
2410
 
2355
2411
  // src/Components/FooterAction/FooterAction.tsx
2356
2412
  import React17 from "react";
2357
- import { AppBar, Toolbar, Box as Box11, Typography as Typography10 } from "@mui/material";
2413
+ import { AppBar, Toolbar, Box as Box12, Typography as Typography9 } from "@mui/material";
2358
2414
  var FooterAction = ({
2359
2415
  leftContent,
2360
2416
  rightContent,
@@ -2374,8 +2430,8 @@ var FooterAction = ({
2374
2430
  sx: { gap: 1.5, minHeight: "50px !important" }
2375
2431
  },
2376
2432
  leftContent,
2377
- /* @__PURE__ */ React17.createElement(Box11, { flexGrow: 1 }),
2378
- label && /* @__PURE__ */ React17.createElement(Typography10, { variant: "body2", color: "text.secondary" }, label),
2433
+ /* @__PURE__ */ React17.createElement(Box12, { flexGrow: 1 }),
2434
+ label && /* @__PURE__ */ React17.createElement(Typography9, { variant: "body2", color: "text.secondary" }, label),
2379
2435
  rightContent
2380
2436
  )
2381
2437
  );
@@ -2387,12 +2443,12 @@ import { Button as Button8, Checkbox as Checkbox2, FormControl as FormControl3,
2387
2443
  import { SearchOutlined } from "@mui/icons-material";
2388
2444
 
2389
2445
  // src/Components/MultiSelect/helpers/useHandlers.tsx
2390
- import { useCallback as useCallback3, useState as useState10 } from "react";
2446
+ import { useCallback as useCallback3, useState as useState11 } from "react";
2391
2447
  function useMultiSelectHandlers() {
2392
- const [anchorEl, setAnchorEl] = useState10(null);
2393
- const [open, setOpen] = useState10(false);
2394
- const [selectedItems, setSelectedItems] = useState10([]);
2395
- const [filterValue, setFilterValue] = useState10("");
2448
+ const [anchorEl, setAnchorEl] = useState11(null);
2449
+ const [open, setOpen] = useState11(false);
2450
+ const [selectedItems, setSelectedItems] = useState11([]);
2451
+ const [filterValue, setFilterValue] = useState11("");
2396
2452
  const handleOpen = useCallback3((e) => {
2397
2453
  setAnchorEl(e.currentTarget);
2398
2454
  setOpen(true);
@@ -2570,7 +2626,7 @@ function MultiSelect({
2570
2626
 
2571
2627
  // src/Components/PageHeader/PageHeader.tsx
2572
2628
  import React19 from "react";
2573
- import { Stack as Stack8, Typography as Typography11 } from "@mui/material";
2629
+ import { Stack as Stack8, Typography as Typography10 } from "@mui/material";
2574
2630
  var PageHeader = ({
2575
2631
  title,
2576
2632
  subtitle,
@@ -2591,13 +2647,13 @@ var PageHeader = ({
2591
2647
  zIndex: 10,
2592
2648
  sx: { boxShadow: shadow ? (theme) => theme.shadows[1] : "none" }
2593
2649
  },
2594
- /* @__PURE__ */ React19.createElement(Stack8, { "data-testid": "page-header-content", height: 40, px: 3, pl: buttonBack ? 1 : 3, direction: "row", alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ React19.createElement(Stack8, { id: "left-section", direction: "row", alignItems: "center", gap: 1 }, buttonBack, /* @__PURE__ */ React19.createElement(Stack8, { id: "text-section", gap: 0.5 }, /* @__PURE__ */ React19.createElement(Typography11, { "data-testid": "page-header-title", variant: "h6", color: "text.primary" }, title), subtitle && /* @__PURE__ */ React19.createElement(Typography11, { "data-testid": "page-header-subtitle", variant: "caption", color: "text.primary" }, subtitle))), actions && /* @__PURE__ */ React19.createElement(Stack8, { id: "right-actions", direction: "row", alignItems: "center", gap: 1 }, actions))
2650
+ /* @__PURE__ */ React19.createElement(Stack8, { "data-testid": "page-header-content", height: 40, px: 3, pl: buttonBack ? 1 : 3, direction: "row", alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ React19.createElement(Stack8, { id: "left-section", direction: "row", alignItems: "center", gap: 1 }, buttonBack, /* @__PURE__ */ React19.createElement(Stack8, { id: "text-section", gap: 0.5 }, /* @__PURE__ */ React19.createElement(Typography10, { "data-testid": "page-header-title", variant: "h6", color: "text.primary" }, title), subtitle && /* @__PURE__ */ React19.createElement(Typography10, { "data-testid": "page-header-subtitle", variant: "caption", color: "text.primary" }, subtitle))), actions && /* @__PURE__ */ React19.createElement(Stack8, { id: "right-actions", direction: "row", alignItems: "center", gap: 1 }, actions))
2595
2651
  );
2596
2652
  };
2597
2653
 
2598
2654
  // src/Components/SCCalendarSwipeable.tsx
2599
- import React20, { useState as useState11 } from "react";
2600
- import { Typography as Typography12, IconButton as IconButton9, Box as Box12 } from "@mui/material";
2655
+ import React20, { useState as useState12 } from "react";
2656
+ import { Typography as Typography11, IconButton as IconButton9, Box as Box13 } from "@mui/material";
2601
2657
  import Grid7 from "@mui/material/Grid";
2602
2658
  import { AdapterDateFns } from "@mui/x-date-pickers/AdapterDateFns";
2603
2659
  import { LocalizationProvider as LocalizationProvider2 } from "@mui/x-date-pickers/LocalizationProvider";
@@ -2615,8 +2671,8 @@ var SCCalendarSwipeable = ({
2615
2671
  state
2616
2672
  }) => {
2617
2673
  let convertFecha;
2618
- const [fecha, setFecha] = useState11(/* @__PURE__ */ new Date());
2619
- const [fechaSeleccionada, setFechaSeleccionada] = useState11();
2674
+ const [fecha, setFecha] = useState12(/* @__PURE__ */ new Date());
2675
+ const [fechaSeleccionada, setFechaSeleccionada] = useState12();
2620
2676
  const [stateVal, setstateVal] = React20.useState(/* @__PURE__ */ new Date());
2621
2677
  const [openCalendar, setOpenCalendar] = React20.useState(false);
2622
2678
  const hoy = /* @__PURE__ */ new Date();
@@ -2641,8 +2697,8 @@ var SCCalendarSwipeable = ({
2641
2697
  setOpenCalendar(newOpen);
2642
2698
  };
2643
2699
  const locale = __spreadValues({}, es);
2644
- return /* @__PURE__ */ React20.createElement(React20.Fragment, null, /* @__PURE__ */ React20.createElement(LocalizationProvider2, { dateAdapter: AdapterDateFns, adapterLocale: locale }, openCalendar == false ? /* @__PURE__ */ React20.createElement(Box12, { "data-testid": "calendar-mobile", sx: { width: "100%", background: background ? background : "white", display: "flex", flexDirection: "column", alignItems: "center" } }, /* @__PURE__ */ React20.createElement(Box12, { 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(Box12, { sx: { width: "36px", height: "40px", display: "flex", alignItems: "center", justifyContent: "center" } }, /* @__PURE__ */ React20.createElement(Typography12, { sx: { fontSize: "12px !important", color: "#10184099" } }, format(dia, "EEEE", { locale: es }).charAt(0).toUpperCase())), /* @__PURE__ */ React20.createElement(
2645
- Box12,
2700
+ 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(
2701
+ Box13,
2646
2702
  {
2647
2703
  onClick: () => setFecha(dia),
2648
2704
  sx: {
@@ -2657,8 +2713,8 @@ var SCCalendarSwipeable = ({
2657
2713
  //height: '36px',
2658
2714
  }
2659
2715
  },
2660
- /* @__PURE__ */ React20.createElement(Typography12, { sx: { fontSize: "12px !important", color: isSameDay(dia, fecha) ? "white" : "#101840DE" } }, format(dia, "d"))
2661
- )))), /* @__PURE__ */ React20.createElement(Grid7, { container: true, justifyContent: "center" }, /* @__PURE__ */ React20.createElement(IconButton9, { "data-testid": "open-calendar-button", onClick: toggleCalendar(true) }, /* @__PURE__ */ React20.createElement(KeyboardDoubleArrowDownIcon, null))))) : /* @__PURE__ */ React20.createElement(Box12, { sx: { width: "100%", background: "white" } }, /* @__PURE__ */ React20.createElement(
2716
+ /* @__PURE__ */ React20.createElement(Typography11, { sx: { fontSize: "12px !important", color: isSameDay(dia, fecha) ? "white" : "#101840DE" } }, format(dia, "d"))
2717
+ )))), /* @__PURE__ */ React20.createElement(Grid7, { container: true, justifyContent: "center" }, /* @__PURE__ */ React20.createElement(IconButton9, { "data-testid": "open-calendar-button", onClick: toggleCalendar(true) }, /* @__PURE__ */ React20.createElement(KeyboardDoubleArrowDownIcon, null))))) : /* @__PURE__ */ React20.createElement(Box13, { sx: { width: "100%", background: "white" } }, /* @__PURE__ */ React20.createElement(
2662
2718
  StaticDatePicker,
2663
2719
  {
2664
2720
  orientation: "landscape",
@@ -2672,7 +2728,7 @@ var SCCalendarSwipeable = ({
2672
2728
  };
2673
2729
 
2674
2730
  // src/Components/SCDataGrid.tsx
2675
- import React21, { useEffect as useEffect14, useState as useState12 } from "react";
2731
+ import React21, { useEffect as useEffect14, useState as useState13 } from "react";
2676
2732
  import { DataGridPro, useGridApiRef } from "@mui/x-data-grid-pro";
2677
2733
  import { LicenseInfo as LicenseInfo2 } from "@mui/x-license";
2678
2734
  import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";
@@ -2834,10 +2890,10 @@ function SCDataGridInitial({ data, columns, groupColumns, rowsTable, checkboxSel
2834
2890
  let styleRowHeight = density == "compact" ? 32 : density == "standard" ? 28 : density == "comfortable" ? 36 : 32;
2835
2891
  let rows = rowsTable ? rowsTable : validationTreeData != false ? parseInt(data.length.toString()) : data.length < 10 ? parseInt(data.length.toString()) : 10;
2836
2892
  let validationGroupingColDef = groupingColDefs || {};
2837
- const [groupDataLenght, setGroupDataLengh] = useState12(0);
2838
- const [pageSize, setPageSize] = useState12(rows);
2839
- const [arrayRows, setArrayRows] = useState12([]);
2840
- const [selectionModel, setSelectionModel] = useState12([]);
2893
+ const [groupDataLenght, setGroupDataLengh] = useState13(0);
2894
+ const [pageSize, setPageSize] = useState13(rows);
2895
+ const [arrayRows, setArrayRows] = useState13([]);
2896
+ const [selectionModel, setSelectionModel] = useState13([]);
2841
2897
  useEffect14(() => {
2842
2898
  if ((data == null ? void 0 : data.length) > 0) {
2843
2899
  dataConvertRows(data, void 0);
@@ -2953,6 +3009,48 @@ function SCDataGridInitial({ data, columns, groupColumns, rowsTable, checkboxSel
2953
3009
  "& .MuiDataGrid-cell": {
2954
3010
  padding: "0 !important",
2955
3011
  background: "white"
3012
+ },
3013
+ // Ocultar scrollbars personalizados de MUI completamente
3014
+ "& .MuiDataGrid-scrollbar": {
3015
+ display: "none !important",
3016
+ visibility: "hidden !important",
3017
+ width: "0 !important",
3018
+ opacity: "0 !important"
3019
+ },
3020
+ "& .MuiDataGrid-scrollbar--vertical": {
3021
+ display: "none !important",
3022
+ visibility: "hidden !important",
3023
+ width: "0 !important",
3024
+ opacity: "0 !important"
3025
+ },
3026
+ // Scrollbar filler y content siempre transparentes
3027
+ "& .MuiDataGrid-scrollbarFiller": {
3028
+ backgroundColor: "transparent !important",
3029
+ display: "none !important"
3030
+ },
3031
+ "& .MuiDataGrid-scrollbarContent": {
3032
+ backgroundColor: "transparent !important",
3033
+ display: "none !important"
3034
+ },
3035
+ // Scrollbar nativo visible solo cuando hay overflow
3036
+ "& .MuiDataGrid-virtualScroller": {
3037
+ overflowY: "auto !important",
3038
+ scrollbarWidth: "thin",
3039
+ scrollbarColor: "#888 transparent",
3040
+ "&::-webkit-scrollbar": {
3041
+ width: "8px",
3042
+ height: "8px"
3043
+ },
3044
+ "&::-webkit-scrollbar-track": {
3045
+ background: "transparent"
3046
+ },
3047
+ "&::-webkit-scrollbar-thumb": {
3048
+ background: "#888",
3049
+ borderRadius: "4px"
3050
+ },
3051
+ "&::-webkit-scrollbar-thumb:hover": {
3052
+ background: "#555"
3053
+ }
2956
3054
  }
2957
3055
  }
2958
3056
  }
@@ -2965,7 +3063,7 @@ var SCDataGrid = React21.memo(SCDataGridInitial, (prevProps, nextProps) => {
2965
3063
 
2966
3064
  // src/Components/EmptyState/EmptyState.tsx
2967
3065
  import React26 from "react";
2968
- import { Button as Button10, Stack as Stack9, Typography as Typography13 } from "@mui/material";
3066
+ import { Button as Button10, Stack as Stack9, Typography as Typography12 } from "@mui/material";
2969
3067
 
2970
3068
  // src/assets/ImgEmptyState/create.tsx
2971
3069
  import React22 from "react";
@@ -3027,8 +3125,8 @@ var EmptyState = ({
3027
3125
  "data-testid": "empty-state-container"
3028
3126
  },
3029
3127
  icon && /* @__PURE__ */ React26.createElement(Stack9, null, icon),
3030
- /* @__PURE__ */ React26.createElement(Stack9, { gap: 0.5 }, /* @__PURE__ */ React26.createElement(Typography13, { color: "text.primary", variant: titleVariant, textAlign: "center" }, title), subtitle && /* @__PURE__ */ React26.createElement(
3031
- Typography13,
3128
+ /* @__PURE__ */ React26.createElement(Stack9, { gap: 0.5 }, /* @__PURE__ */ React26.createElement(Typography12, { color: "text.primary", variant: titleVariant, textAlign: "center" }, title), subtitle && /* @__PURE__ */ React26.createElement(
3129
+ Typography12,
3032
3130
  {
3033
3131
  variant: subtitleVariant,
3034
3132
  textAlign: "center",
@@ -3064,8 +3162,8 @@ var EmptyState = ({
3064
3162
  };
3065
3163
 
3066
3164
  // src/Components/SCDialog.tsx
3067
- import React27, { useEffect as useEffect15, useState as useState13 } from "react";
3068
- import { Button as Button11, Typography as Typography14, Modal as Modal2, Dialog, DialogActions, DialogContent, DialogTitle, IconButton as IconButton10, Tooltip as Tooltip4, Box as Box13, SvgIcon as SvgIcon5 } from "@mui/material";
3165
+ import React27, { useEffect as useEffect15, useState as useState14 } from "react";
3166
+ 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";
3069
3167
  import Grid8 from "@mui/material/Grid";
3070
3168
  import CloseIcon2 from "@mui/icons-material/Close";
3071
3169
  import * as Muicon5 from "@mui/icons-material";
@@ -3074,7 +3172,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
3074
3172
  let iconTitleValidation = "";
3075
3173
  let IconTitle;
3076
3174
  let ButtonIcon;
3077
- const [open, setOpen] = useState13(show);
3175
+ const [open, setOpen] = useState14(show);
3078
3176
  useEffect15(() => {
3079
3177
  if (show) {
3080
3178
  handleOpen();
@@ -3127,7 +3225,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
3127
3225
  }
3128
3226
  };
3129
3227
  const dialogActions = actions == false ? false : actions != void 0 ? actions : [{ text: "Cerrar", fn: handleClose }];
3130
- content = content != null ? content : { component: /* @__PURE__ */ React27.createElement(Box13, null, " Aqui va el contenido ") };
3228
+ content = content != null ? content : { component: /* @__PURE__ */ React27.createElement(Box14, null, " Aqui va el contenido ") };
3131
3229
  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(
3132
3230
  Dialog,
3133
3231
  {
@@ -3143,7 +3241,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
3143
3241
  }
3144
3242
  }
3145
3243
  },
3146
- 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" } }, iconTitle ? iconTitleValidation == "image" ? /* @__PURE__ */ React27.createElement(Box13, { 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, null, /* @__PURE__ */ React27.createElement(Typography14, { color: "text.primary", variant: "h6", gutterBottom: true }, title ? title : ""), /* @__PURE__ */ React27.createElement(Typography14, { color: "text.secondary", variant: "body2", gutterBottom: true }, 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" })) : "")),
3244
+ 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" } }, 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, null, /* @__PURE__ */ React27.createElement(Typography13, { color: "text.primary", variant: "h6", gutterBottom: true }, title ? title : ""), /* @__PURE__ */ React27.createElement(Typography13, { color: "text.secondary", variant: "body2", gutterBottom: true }, 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" })) : "")),
3147
3245
  /* @__PURE__ */ React27.createElement(
3148
3246
  DialogContent,
3149
3247
  {
@@ -3193,7 +3291,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
3193
3291
  startIcon: dialogActions[0].icon ? /* @__PURE__ */ React27.createElement(SvgIcon5, { fontSize: "small", component: dialogActions[0].icon }) : void 0
3194
3292
  },
3195
3293
  dialogActions[0].text
3196
- ), /* @__PURE__ */ React27.createElement(Box13, { sx: { display: "flex", gap: 1 } }, dialogActions.slice(1).map((boton, index) => {
3294
+ ), /* @__PURE__ */ React27.createElement(Box14, { sx: { display: "flex", gap: 1 } }, dialogActions.slice(1).map((boton, index) => {
3197
3295
  return /* @__PURE__ */ React27.createElement(
3198
3296
  Button11,
3199
3297
  {
@@ -3269,11 +3367,11 @@ var SCListContent = ({ options }) => {
3269
3367
 
3270
3368
  // src/Components/SCMenu.tsx
3271
3369
  import React29 from "react";
3272
- import { Box as Box15, Typography as Typography16, Paper as Paper2, Divider as Divider5, MenuList as MenuList2, MenuItem as MenuItem5, ListItemIcon as ListItemIcon5, SvgIcon as SvgIcon7 } from "@mui/material";
3370
+ import { Box as Box16, Typography as Typography15, Paper as Paper2, Divider as Divider5, MenuList as MenuList2, MenuItem as MenuItem5, ListItemIcon as ListItemIcon5, SvgIcon as SvgIcon7 } from "@mui/material";
3273
3371
  import Grid10 from "@mui/material/Grid";
3274
3372
 
3275
3373
  // src/Components/Hooks/useWindowDimensions.ts
3276
- import { useState as useState15, useEffect as useEffect17 } from "react";
3374
+ import { useState as useState16, useEffect as useEffect17 } from "react";
3277
3375
  function getWindowDimensions() {
3278
3376
  const { innerWidth: width, innerHeight: height } = window;
3279
3377
  return {
@@ -3282,7 +3380,7 @@ function getWindowDimensions() {
3282
3380
  };
3283
3381
  }
3284
3382
  function useWindowDimensions() {
3285
- const [windowDimensions, setWindowDimensions] = useState15(getWindowDimensions());
3383
+ const [windowDimensions, setWindowDimensions] = useState16(getWindowDimensions());
3286
3384
  useEffect17(() => {
3287
3385
  function handleResize() {
3288
3386
  setWindowDimensions(getWindowDimensions());
@@ -3345,12 +3443,12 @@ var SCMenu = ({ header, options, defaultOption, disable, widthMenu, heightMenu,
3345
3443
  onClick: (event2) => handleClickMenusItem(event2, index)
3346
3444
  },
3347
3445
  option.iconLeft ? /* @__PURE__ */ React29.createElement(ListItemIcon5, { sx: { color: String(index + 1) === selectedIndex ? "primary" : "active" } }, /* @__PURE__ */ React29.createElement(SvgIcon7, { fontSize: "small", color: String(index + 1) === selectedIndex ? "primary" : "action", component: option.iconLeft })) : "",
3348
- /* @__PURE__ */ React29.createElement(Grid10, { container: true, size: 12, sx: { maxWidth: 220, flexWrap: "noWrap", alignItems: "center" } }, /* @__PURE__ */ React29.createElement(Typography16, { noWrap: true, variant: "caption", color: String(index + 1) === selectedIndex ? "primary" : "active" }, option.name), option.iconRight ? /* @__PURE__ */ React29.createElement(ListItemIcon5, { sx: { minWidth: "0px !important", color: String(index + 1) === selectedIndex ? "primary" : "active" } }, /* @__PURE__ */ React29.createElement(SvgIcon7, { fontSize: "small", color: String(index + 1) === selectedIndex ? "primary" : "action", component: option.iconRight })) : "")
3349
- ), option.divider == true ? /* @__PURE__ */ React29.createElement(Divider5, null) : "")))), /* @__PURE__ */ React29.createElement(Grid10, { container: true }, options.map((option, index) => option.page ? String(index + 1) == value ? /* @__PURE__ */ React29.createElement(Box15, { "data-testid": "menu-page-content", sx: { padding: "16px", width: pageSize, height: heightContainer }, key: index }, option.page) : "" : /* @__PURE__ */ React29.createElement(Typography16, { color: "error" }, "No se ha configurado el componente a visualizar")))));
3446
+ /* @__PURE__ */ React29.createElement(Grid10, { container: true, size: 12, sx: { maxWidth: 220, flexWrap: "noWrap", alignItems: "center" } }, /* @__PURE__ */ React29.createElement(Typography15, { noWrap: true, variant: "caption", color: String(index + 1) === selectedIndex ? "primary" : "active" }, option.name), option.iconRight ? /* @__PURE__ */ React29.createElement(ListItemIcon5, { sx: { minWidth: "0px !important", color: String(index + 1) === selectedIndex ? "primary" : "active" } }, /* @__PURE__ */ React29.createElement(SvgIcon7, { fontSize: "small", color: String(index + 1) === selectedIndex ? "primary" : "action", component: option.iconRight })) : "")
3447
+ ), option.divider == true ? /* @__PURE__ */ React29.createElement(Divider5, null) : "")))), /* @__PURE__ */ React29.createElement(Grid10, { container: true }, options.map((option, index) => option.page ? String(index + 1) == value ? /* @__PURE__ */ React29.createElement(Box16, { "data-testid": "menu-page-content", sx: { padding: "16px", width: pageSize, height: heightContainer }, key: index }, option.page) : "" : /* @__PURE__ */ React29.createElement(Typography15, { color: "error" }, "No se ha configurado el componente a visualizar")))));
3350
3448
  };
3351
3449
 
3352
3450
  // src/Components/Menu/Menu.tsx
3353
- import React30, { useCallback as useCallback4, useState as useState16 } from "react";
3451
+ import React30, { useCallback as useCallback4, useState as useState17 } from "react";
3354
3452
  import { Button as Button13, Menu } from "@mui/material";
3355
3453
  var BasicMenu = ({
3356
3454
  open,
@@ -3361,8 +3459,8 @@ var BasicMenu = ({
3361
3459
  options
3362
3460
  }) => {
3363
3461
  var _a, _b, _c, _d;
3364
- const [internalAnchorEl, setInternalAnchorEl] = useState16(null);
3365
- const [internalOpen, setInternalOpen] = useState16(open != null ? open : false);
3462
+ const [internalAnchorEl, setInternalAnchorEl] = useState17(null);
3463
+ const [internalOpen, setInternalOpen] = useState17(open != null ? open : false);
3366
3464
  const isControlled = Boolean(onClose);
3367
3465
  const menuOpen = isControlled ? open != null ? open : false : internalOpen;
3368
3466
  const setMenuOpen = isControlled ? () => {
@@ -3419,7 +3517,7 @@ var BasicMenu = ({
3419
3517
 
3420
3518
  // src/Components/SCTabs.tsx
3421
3519
  import React31, { useEffect as useEffect18 } from "react";
3422
- import { Typography as Typography17, Box as Box16, SvgIcon as SvgIcon8, Tab as Tab2, Tabs as Tabs2, Badge } from "@mui/material";
3520
+ import { Typography as Typography16, Box as Box17, SvgIcon as SvgIcon8, Tab as Tab2, Tabs as Tabs2, Badge } from "@mui/material";
3423
3521
  import TabPanel from "@mui/lab/TabPanel";
3424
3522
  import TabContext from "@mui/lab/TabContext";
3425
3523
  import * as Muicon8 from "@mui/icons-material";
@@ -3481,7 +3579,7 @@ var SCTabs = ({ options, defaultOption, typeIcon, background, iconPosition, colo
3481
3579
  setValue(newValue);
3482
3580
  }
3483
3581
  };
3484
- return /* @__PURE__ */ React31.createElement(React31.Fragment, null, validateTypeIcon == true ? /* @__PURE__ */ React31.createElement(Box16, { sx: { height: orientation == "vertical" ? "100%" : "auto", display: "flex", flexDirection: orientation == "vertical" ? "row" : "column" }, id: "tabsitos" }, /* @__PURE__ */ React31.createElement(TabContext, { value }, /* @__PURE__ */ React31.createElement(
3582
+ return /* @__PURE__ */ React31.createElement(React31.Fragment, null, validateTypeIcon == true ? /* @__PURE__ */ React31.createElement(Box17, { sx: { height: orientation == "vertical" ? "100%" : "auto", display: "flex", flexDirection: orientation == "vertical" ? "row" : "column" }, id: "tabsitos" }, /* @__PURE__ */ React31.createElement(TabContext, { value }, /* @__PURE__ */ React31.createElement(
3485
3583
  Tabs2,
3486
3584
  {
3487
3585
  "data-testid": "tab-container",
@@ -3530,18 +3628,18 @@ var SCTabs = ({ options, defaultOption, typeIcon, background, iconPosition, colo
3530
3628
  value: String(l = l + 1),
3531
3629
  sx: { padding: "16px" }
3532
3630
  },
3533
- option.page ? option.page : /* @__PURE__ */ React31.createElement(Typography17, null, "No se ha configurado el componente a visualizar ")
3534
- )))) : /* @__PURE__ */ React31.createElement(Box16, { sx: { height: "200px" } }, toast && /* @__PURE__ */ React31.createElement(SCToastNotification, __spreadValues({ "data-testid": "error-tab-message" }, toast))));
3631
+ option.page ? option.page : /* @__PURE__ */ React31.createElement(Typography16, null, "No se ha configurado el componente a visualizar ")
3632
+ )))) : /* @__PURE__ */ React31.createElement(Box17, { sx: { height: "200px" } }, toast && /* @__PURE__ */ React31.createElement(SCToastNotification, __spreadValues({ "data-testid": "error-tab-message" }, toast))));
3535
3633
  };
3536
3634
 
3537
3635
  // src/Components/Calendario/Calendar.tsx
3538
- import React39, { useEffect as useEffect19, useState as useState19 } from "react";
3539
- import { Box as Box23, CircularProgress as CircularProgress5 } from "@mui/material";
3636
+ import React39, { useEffect as useEffect19, useState as useState20 } from "react";
3637
+ import { Box as Box24, CircularProgress as CircularProgress5 } from "@mui/material";
3540
3638
 
3541
3639
  // src/Components/Calendario/CalendarToolbar.tsx
3542
- import React32, { useState as useState17 } from "react";
3640
+ import React32, { useState as useState18 } from "react";
3543
3641
  import { ChevronLeft, ChevronRight, KeyboardArrowDown as KeyboardArrowDown2, LightModeOutlined } from "@mui/icons-material";
3544
- import { Box as Box17, Chip as Chip5, IconButton as IconButton12, Menu as Menu2, MenuItem as MenuItem7, Stack as Stack11, Typography as Typography18 } from "@mui/material";
3642
+ import { Box as Box18, Chip as Chip5, IconButton as IconButton12, Menu as Menu2, MenuItem as MenuItem7, Stack as Stack11, Typography as Typography17 } from "@mui/material";
3545
3643
  import dayjs2 from "dayjs";
3546
3644
  import updateLocale from "dayjs/plugin/updateLocale";
3547
3645
  import "dayjs/locale/es";
@@ -3558,7 +3656,7 @@ var CalendarToolbar = ({
3558
3656
  onNavigate,
3559
3657
  children
3560
3658
  }) => {
3561
- const [anchorEl, setAnchorEl] = useState17(null);
3659
+ const [anchorEl, setAnchorEl] = useState18(null);
3562
3660
  const open = Boolean(anchorEl);
3563
3661
  const handleMenuOpen = (event2) => {
3564
3662
  setAnchorEl(event2.currentTarget);
@@ -3581,7 +3679,7 @@ var CalendarToolbar = ({
3581
3679
  }
3582
3680
  return labelDate.format(" DD MMMM YYYY");
3583
3681
  };
3584
- return /* @__PURE__ */ React32.createElement(Stack11, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 0.5, px: 1, py: 0.5 }, /* @__PURE__ */ React32.createElement(Box17, null, /* @__PURE__ */ React32.createElement(
3682
+ return /* @__PURE__ */ React32.createElement(Stack11, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 0.5, px: 1, py: 0.5 }, /* @__PURE__ */ React32.createElement(Box18, null, /* @__PURE__ */ React32.createElement(
3585
3683
  Chip5,
3586
3684
  {
3587
3685
  label: "Hoy",
@@ -3589,7 +3687,7 @@ var CalendarToolbar = ({
3589
3687
  color: "primary",
3590
3688
  onClick: () => onNavigate("TODAY")
3591
3689
  }
3592
- )), /* @__PURE__ */ React32.createElement(Stack11, { direction: "row", alignItems: "center", gap: 1 }, /* @__PURE__ */ React32.createElement(IconButton12, { "aria-label": "Anterior", onClick: () => onNavigate("PREV"), size: "small", color: "primary" }, /* @__PURE__ */ React32.createElement(ChevronLeft, { fontSize: "small" })), /* @__PURE__ */ React32.createElement(IconButton12, { "aria-label": "Siguiente", onClick: () => onNavigate("NEXT"), size: "small", color: "primary" }, /* @__PURE__ */ React32.createElement(ChevronRight, { fontSize: "small" })), /* @__PURE__ */ React32.createElement(Typography18, { variant: "h6", color: "primary", "data-testid": "currentDate" }, getFormattedDate()), /* @__PURE__ */ React32.createElement(IconButton12, { onClick: handleMenuOpen, size: "small", color: "primary", "aria-label": "Cambiar vista" }, /* @__PURE__ */ React32.createElement(KeyboardArrowDown2, { fontSize: "small" })), /* @__PURE__ */ React32.createElement(
3690
+ )), /* @__PURE__ */ React32.createElement(Stack11, { direction: "row", alignItems: "center", gap: 1 }, /* @__PURE__ */ React32.createElement(IconButton12, { "aria-label": "Anterior", onClick: () => onNavigate("PREV"), size: "small", color: "primary" }, /* @__PURE__ */ React32.createElement(ChevronLeft, { fontSize: "small" })), /* @__PURE__ */ React32.createElement(IconButton12, { "aria-label": "Siguiente", onClick: () => onNavigate("NEXT"), size: "small", color: "primary" }, /* @__PURE__ */ React32.createElement(ChevronRight, { fontSize: "small" })), /* @__PURE__ */ React32.createElement(Typography17, { variant: "h6", color: "primary", "data-testid": "currentDate" }, getFormattedDate()), /* @__PURE__ */ React32.createElement(IconButton12, { onClick: handleMenuOpen, size: "small", color: "primary", "aria-label": "Cambiar vista" }, /* @__PURE__ */ React32.createElement(KeyboardArrowDown2, { fontSize: "small" })), /* @__PURE__ */ React32.createElement(
3593
3691
  Menu2,
3594
3692
  {
3595
3693
  anchorEl,
@@ -3601,12 +3699,12 @@ var CalendarToolbar = ({
3601
3699
  /* @__PURE__ */ React32.createElement(MenuItem7, { onClick: () => handleViewChange("month") }, "Mes"),
3602
3700
  /* @__PURE__ */ React32.createElement(MenuItem7, { onClick: () => handleViewChange("week") }, "Semana"),
3603
3701
  /* @__PURE__ */ React32.createElement(MenuItem7, { onClick: () => handleViewChange("day") }, "D\xEDa")
3604
- )), children ? /* @__PURE__ */ React32.createElement(Box17, null, children) : /* @__PURE__ */ React32.createElement(Box17, { width: "24px" }), " ");
3702
+ )), children ? /* @__PURE__ */ React32.createElement(Box18, null, children) : /* @__PURE__ */ React32.createElement(Box18, { width: "24px" }), " ");
3605
3703
  };
3606
3704
 
3607
3705
  // src/Components/Calendario/Views/MonthView.tsx
3608
3706
  import React36 from "react";
3609
- import { Box as Box20, Typography as Typography21, IconButton as IconButton13, Paper as Paper3, Tooltip as Tooltip6, Stack as Stack13, CircularProgress as CircularProgress2 } from "@mui/material";
3707
+ import { Box as Box21, Typography as Typography20, IconButton as IconButton13, Paper as Paper3, Tooltip as Tooltip6, Stack as Stack13, CircularProgress as CircularProgress2 } from "@mui/material";
3610
3708
  import AddIcon from "@mui/icons-material/Add";
3611
3709
  import dayjs5 from "dayjs";
3612
3710
  import localeData from "dayjs/plugin/localeData";
@@ -3638,7 +3736,7 @@ var stateColors = {
3638
3736
 
3639
3737
  // src/Components/Calendario/Event.tsx
3640
3738
  import React33 from "react";
3641
- import { Box as Box18, Stack as Stack12, Typography as Typography19, Divider as Divider6, Popover as Popover5 } from "@mui/material";
3739
+ import { Box as Box19, Stack as Stack12, Typography as Typography18, Divider as Divider6, Popover as Popover5 } from "@mui/material";
3642
3740
  var CalendarEventCard = ({ event: event2, color, sx, onClick, onHover }) => {
3643
3741
  const [anchorEl, setAnchorEl] = React33.useState(null);
3644
3742
  const handlePopoverOpen = (event3) => {
@@ -3682,7 +3780,7 @@ var CalendarEventCard = ({ event: event2, color, sx, onClick, onHover }) => {
3682
3780
  }
3683
3781
  ),
3684
3782
  /* @__PURE__ */ React33.createElement(
3685
- Box18,
3783
+ Box19,
3686
3784
  {
3687
3785
  px: 1,
3688
3786
  py: 0.5,
@@ -3692,7 +3790,7 @@ var CalendarEventCard = ({ event: event2, color, sx, onClick, onHover }) => {
3692
3790
  alignItems: "center"
3693
3791
  },
3694
3792
  /* @__PURE__ */ React33.createElement(
3695
- Typography19,
3793
+ Typography18,
3696
3794
  {
3697
3795
  color: "text.primary",
3698
3796
  variant: "caption",
@@ -3739,7 +3837,7 @@ var LogoCalendario = () => {
3739
3837
 
3740
3838
  // src/Components/Calendario/components/DayEventsList.tsx
3741
3839
  import React35 from "react";
3742
- import { Box as Box19, Typography as Typography20, Divider as Divider7 } from "@mui/material";
3840
+ import { Box as Box20, Typography as Typography19, Divider as Divider7 } from "@mui/material";
3743
3841
  var DayEventsList = ({
3744
3842
  events,
3745
3843
  day,
@@ -3747,7 +3845,7 @@ var DayEventsList = ({
3747
3845
  onEventHover
3748
3846
  }) => {
3749
3847
  const [first, ...rest] = events;
3750
- return /* @__PURE__ */ React35.createElement(Box19, { display: "flex", width: "100%", flexDirection: "column", height: "100%", pr: 1.5 }, /* @__PURE__ */ React35.createElement(Typography20, { width: "100%", color: "text.secondary" }, "Proximo evento"), first && /* @__PURE__ */ React35.createElement(Box19, { p: 1, pb: 1, width: "100%" }, /* @__PURE__ */ React35.createElement(
3848
+ return /* @__PURE__ */ React35.createElement(Box20, { display: "flex", width: "100%", flexDirection: "column", height: "100%", pr: 1.5 }, /* @__PURE__ */ React35.createElement(Typography19, { width: "100%", color: "text.secondary" }, "Proximo evento"), first && /* @__PURE__ */ React35.createElement(Box20, { p: 1, pb: 1, width: "100%" }, /* @__PURE__ */ React35.createElement(
3751
3849
  CalendarEventCard,
3752
3850
  {
3753
3851
  event: first,
@@ -3763,8 +3861,8 @@ var DayEventsList = ({
3763
3861
  }
3764
3862
  }
3765
3863
  }
3766
- )), /* @__PURE__ */ React35.createElement(Divider7, { flexItem: true, sx: { width: "100%" } }), /* @__PURE__ */ React35.createElement(Typography20, { width: "100%", py: 1, color: "text.secondary" }, "Eventos restantes"), /* @__PURE__ */ React35.createElement(
3767
- Box19,
3864
+ )), /* @__PURE__ */ React35.createElement(Divider7, { flexItem: true, sx: { width: "100%" } }), /* @__PURE__ */ React35.createElement(Typography19, { width: "100%", py: 1, color: "text.secondary" }, "Eventos restantes"), /* @__PURE__ */ React35.createElement(
3865
+ Box20,
3768
3866
  {
3769
3867
  width: "100%",
3770
3868
  height: "100%",
@@ -3863,7 +3961,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3863
3961
  const [openDrawer, setOpenDrawer] = React36.useState(false);
3864
3962
  const [selectedDay, setSelectedDay] = React36.useState(null);
3865
3963
  const [selectedEvents, setSelectedEvents] = React36.useState([]);
3866
- return /* @__PURE__ */ React36.createElement(Box20, { width: "100%", sx: { overflowX: "auto" } }, /* @__PURE__ */ React36.createElement(Box20, { minWidth: CALENDAR_CONSTANTS.MIN_WIDTH }, /* @__PURE__ */ React36.createElement(Box20, { display: "grid", gridTemplateColumns: CALENDAR_CONSTANTS.GRID_TEMPLATE, gap: 0.5, mb: 1 }, weekDays.map((day) => /* @__PURE__ */ React36.createElement(Box20, { key: day.day(), textAlign: "center", py: 0.5 }, /* @__PURE__ */ React36.createElement(Typography21, { variant: "caption", color: "text.secondary" }, day.format("dddd"))))), isLoading ? /* @__PURE__ */ React36.createElement(Box20, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: CALENDAR_CONSTANTS.LOADING_CONTAINER_HEIGHT }, /* @__PURE__ */ React36.createElement(CircularProgress2, { sx: { width: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE, height: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE }, variant: "indeterminate" })) : !isLoading && noEvents ? /* @__PURE__ */ React36.createElement(
3964
+ return /* @__PURE__ */ React36.createElement(Box21, { width: "100%", sx: { overflowX: "auto" } }, /* @__PURE__ */ React36.createElement(Box21, { minWidth: CALENDAR_CONSTANTS.MIN_WIDTH }, /* @__PURE__ */ React36.createElement(Box21, { display: "grid", gridTemplateColumns: CALENDAR_CONSTANTS.GRID_TEMPLATE, gap: 0.5, mb: 1 }, weekDays.map((day) => /* @__PURE__ */ React36.createElement(Box21, { key: day.day(), textAlign: "center", py: 0.5 }, /* @__PURE__ */ React36.createElement(Typography20, { variant: "caption", color: "text.secondary" }, day.format("dddd"))))), isLoading ? /* @__PURE__ */ React36.createElement(Box21, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: CALENDAR_CONSTANTS.LOADING_CONTAINER_HEIGHT }, /* @__PURE__ */ React36.createElement(CircularProgress2, { sx: { width: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE, height: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE }, variant: "indeterminate" })) : !isLoading && noEvents ? /* @__PURE__ */ React36.createElement(
3867
3965
  EmptyState,
3868
3966
  {
3869
3967
  containerHeight: "480px",
@@ -3871,7 +3969,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3871
3969
  subtitle: "Selecciona un mec\xE1nico y as\xEDgnale las actividades a realizar.",
3872
3970
  icon: /* @__PURE__ */ React36.createElement(LogoCalendario, null)
3873
3971
  }
3874
- ) : /* @__PURE__ */ React36.createElement(Box20, { display: "grid", gridTemplateColumns: CALENDAR_CONSTANTS.GRID_TEMPLATE, gap: 0.5 }, days.map((day) => {
3972
+ ) : /* @__PURE__ */ React36.createElement(Box21, { display: "grid", gridTemplateColumns: CALENDAR_CONSTANTS.GRID_TEMPLATE, gap: 0.5 }, days.map((day) => {
3875
3973
  const dayEvents = filterEventsForDay(events, day);
3876
3974
  const isCurrentMonth = day.month() === currentDate.month();
3877
3975
  return /* @__PURE__ */ React36.createElement(
@@ -3891,8 +3989,8 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3891
3989
  overflow: "hidden"
3892
3990
  }
3893
3991
  },
3894
- /* @__PURE__ */ React36.createElement(Box20, { p: 1, flexShrink: 0 }, /* @__PURE__ */ React36.createElement(Box20, { display: "flex", alignItems: "center", justifyContent: "flex-start" }, /* @__PURE__ */ React36.createElement(
3895
- Box20,
3992
+ /* @__PURE__ */ React36.createElement(Box21, { p: 1, flexShrink: 0 }, /* @__PURE__ */ React36.createElement(Box21, { display: "flex", alignItems: "center", justifyContent: "flex-start" }, /* @__PURE__ */ React36.createElement(
3993
+ Box21,
3896
3994
  {
3897
3995
  sx: {
3898
3996
  width: CALENDAR_CONSTANTS.DAY_CIRCLE_SIZE,
@@ -3905,7 +4003,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3905
4003
  }
3906
4004
  },
3907
4005
  /* @__PURE__ */ React36.createElement(
3908
- Typography21,
4006
+ Typography20,
3909
4007
  {
3910
4008
  variant: "body2",
3911
4009
  sx: { color: isToday(day) ? "white" : "text.secondary" }
@@ -3926,7 +4024,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3926
4024
  },
3927
4025
  /* @__PURE__ */ React36.createElement(AddIcon, { fontSize: "small" })
3928
4026
  )))),
3929
- /* @__PURE__ */ React36.createElement(Box20, { display: "flex", flexDirection: "column", gap: 0.5, p: 1, pt: 0, overflow: "hidden" }, dayEvents.slice(0, CALENDAR_CONSTANTS.MAX_VISIBLE_EVENTS).map((event2) => /* @__PURE__ */ React36.createElement(
4027
+ /* @__PURE__ */ React36.createElement(Box21, { display: "flex", flexDirection: "column", gap: 0.5, p: 1, pt: 0, overflow: "hidden" }, dayEvents.slice(0, CALENDAR_CONSTANTS.MAX_VISIBLE_EVENTS).map((event2) => /* @__PURE__ */ React36.createElement(
3930
4028
  CalendarEventCard,
3931
4029
  {
3932
4030
  key: `${event2.id}-${day.toString()}`,
@@ -3974,7 +4072,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3974
4072
 
3975
4073
  // src/Components/Calendario/Views/WeekView.tsx
3976
4074
  import React37 from "react";
3977
- import { Box as Box21, CircularProgress as CircularProgress3, Typography as Typography22 } from "@mui/material";
4075
+ import { Box as Box22, CircularProgress as CircularProgress3, Typography as Typography21 } from "@mui/material";
3978
4076
  import dayjs6 from "dayjs";
3979
4077
  import localeData2 from "dayjs/plugin/localeData";
3980
4078
  dayjs6.extend(localeData2);
@@ -4008,10 +4106,10 @@ var WeekView = ({
4008
4106
  }
4009
4107
  return "none";
4010
4108
  };
4011
- return /* @__PURE__ */ React37.createElement(Box21, { display: "flex", flexDirection: "column", height: "100%" }, /* @__PURE__ */ React37.createElement(Box21, { display: "flex", bgcolor: "transparent" }, /* @__PURE__ */ React37.createElement(Box21, { width: 45, bgcolor: "transparent" }), days.map((day) => {
4109
+ return /* @__PURE__ */ React37.createElement(Box22, { display: "flex", flexDirection: "column", height: "100%" }, /* @__PURE__ */ React37.createElement(Box22, { display: "flex", bgcolor: "transparent" }, /* @__PURE__ */ React37.createElement(Box22, { width: 45, bgcolor: "transparent" }), days.map((day) => {
4012
4110
  const isToday2 = day.format("YYYY-MM-DD") === todayString;
4013
4111
  return /* @__PURE__ */ React37.createElement(
4014
- Box21,
4112
+ Box22,
4015
4113
  {
4016
4114
  key: day.toString(),
4017
4115
  height: 40,
@@ -4027,10 +4125,10 @@ var WeekView = ({
4027
4125
  borderBottom: isToday2 ? 2 : 0,
4028
4126
  borderColor: isToday2 ? "primary.main" : "transparent"
4029
4127
  },
4030
- /* @__PURE__ */ React37.createElement(Typography22, { variant: "h6", color: "text.primary" }, day.format("D")),
4031
- /* @__PURE__ */ React37.createElement(Typography22, { variant: "caption", color: "text.secondary" }, day.format("dddd"))
4128
+ /* @__PURE__ */ React37.createElement(Typography21, { variant: "h6", color: "text.primary" }, day.format("D")),
4129
+ /* @__PURE__ */ React37.createElement(Typography21, { variant: "caption", color: "text.secondary" }, day.format("dddd"))
4032
4130
  );
4033
- })), isLoading ? /* @__PURE__ */ React37.createElement(Box21, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "450px" }, /* @__PURE__ */ React37.createElement(CircularProgress3, { sx: { width: "60px", height: "60px" }, variant: "indeterminate" })) : !isLoading && noEvents ? /* @__PURE__ */ React37.createElement(
4131
+ })), isLoading ? /* @__PURE__ */ React37.createElement(Box22, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "450px" }, /* @__PURE__ */ React37.createElement(CircularProgress3, { sx: { width: "60px", height: "60px" }, variant: "indeterminate" })) : !isLoading && noEvents ? /* @__PURE__ */ React37.createElement(
4034
4132
  EmptyState,
4035
4133
  {
4036
4134
  containerHeight: "480px",
@@ -4040,8 +4138,8 @@ var WeekView = ({
4040
4138
  }
4041
4139
  ) : (
4042
4140
  // Grid de horas y eventos
4043
- /* @__PURE__ */ React37.createElement(Box21, { display: "flex", flex: 1 }, /* @__PURE__ */ React37.createElement(Box21, { width: 45, bgcolor: "transparent" }, hours.map((h) => /* @__PURE__ */ React37.createElement(
4044
- Box21,
4141
+ /* @__PURE__ */ React37.createElement(Box22, { display: "flex", flex: 1 }, /* @__PURE__ */ React37.createElement(Box22, { width: 45, bgcolor: "transparent" }, hours.map((h) => /* @__PURE__ */ React37.createElement(
4142
+ Box22,
4045
4143
  {
4046
4144
  key: h,
4047
4145
  height: 60,
@@ -4049,7 +4147,7 @@ var WeekView = ({
4049
4147
  pr: 1,
4050
4148
  borderColor: "divider"
4051
4149
  },
4052
- /* @__PURE__ */ React37.createElement(Typography22, { variant: "caption", color: "text.secondary" }, dayjs6().hour(h).format("h A"))
4150
+ /* @__PURE__ */ React37.createElement(Typography21, { variant: "caption", color: "text.secondary" }, dayjs6().hour(h).format("h A"))
4053
4151
  ))), days.map((day) => {
4054
4152
  const dayEvents = events.filter(
4055
4153
  (event2) => day.isBetween(event2.start.startOf("day"), event2.end.endOf("day"), null, "[]")
@@ -4059,7 +4157,7 @@ var WeekView = ({
4059
4157
  return startsInRange || endsInRange;
4060
4158
  }).sort((a, b) => a.start.valueOf() - b.start.valueOf());
4061
4159
  return /* @__PURE__ */ React37.createElement(
4062
- Box21,
4160
+ Box22,
4063
4161
  {
4064
4162
  key: day.toString(),
4065
4163
  flex: 1,
@@ -4072,7 +4170,7 @@ var WeekView = ({
4072
4170
  hours.map((hourIdx) => {
4073
4171
  const borderType = getCellBorderType2(hourIdx, dayEvents);
4074
4172
  return /* @__PURE__ */ React37.createElement(
4075
- Box21,
4173
+ Box22,
4076
4174
  {
4077
4175
  key: hourIdx,
4078
4176
  height: 60,
@@ -4113,7 +4211,7 @@ var WeekView = ({
4113
4211
 
4114
4212
  // src/Components/Calendario/Views/DayView.tsx
4115
4213
  import React38 from "react";
4116
- import { Box as Box22, CircularProgress as CircularProgress4, Typography as Typography23 } from "@mui/material";
4214
+ import { Box as Box23, CircularProgress as CircularProgress4, Typography as Typography22 } from "@mui/material";
4117
4215
  import dayjs7 from "dayjs";
4118
4216
  var DayView = ({
4119
4217
  events,
@@ -4127,7 +4225,7 @@ var DayView = ({
4127
4225
  const hours = Array.from({ length: endHour - startHour + 1 }, (_, i) => startHour + i);
4128
4226
  const dayEvents = filterEventsForDay(events, currentDate);
4129
4227
  const noEvents = events.length === 0;
4130
- return /* @__PURE__ */ React38.createElement(Box22, { display: "flex", flexDirection: "column", height: "100%" }, /* @__PURE__ */ React38.createElement(Box22, { display: "flex", borderBottom: "1px solid", borderColor: "primary.main", bgcolor: "background.paper" }, /* @__PURE__ */ React38.createElement(Box22, { width: CALENDAR_CONSTANTS.SIDEBAR_WIDTH, bgcolor: "background.default", borderBottom: "1px solid", borderColor: "transparent" }), /* @__PURE__ */ React38.createElement(Box22, { flex: 1, display: "flex", flexDirection: "column", textAlign: "start", gap: 0.5, py: 1, bgcolor: "primary.50" }, /* @__PURE__ */ React38.createElement(Typography23, { variant: "h6", color: "text.secondary" }, currentDate.format("D")), /* @__PURE__ */ React38.createElement(Typography23, { variant: "caption", color: "text.secondary" }, currentDate.format("dddd")))), isLoading ? /* @__PURE__ */ React38.createElement(Box22, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: CALENDAR_CONSTANTS.LOADING_CONTAINER_HEIGHT }, /* @__PURE__ */ React38.createElement(CircularProgress4, { sx: { width: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE, height: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE }, variant: "indeterminate" })) : noEvents ? /* @__PURE__ */ React38.createElement(
4228
+ return /* @__PURE__ */ React38.createElement(Box23, { display: "flex", flexDirection: "column", height: "100%" }, /* @__PURE__ */ React38.createElement(Box23, { display: "flex", borderBottom: "1px solid", borderColor: "primary.main", bgcolor: "background.paper" }, /* @__PURE__ */ React38.createElement(Box23, { width: CALENDAR_CONSTANTS.SIDEBAR_WIDTH, bgcolor: "background.default", borderBottom: "1px solid", borderColor: "transparent" }), /* @__PURE__ */ React38.createElement(Box23, { flex: 1, display: "flex", flexDirection: "column", textAlign: "start", gap: 0.5, py: 1, bgcolor: "primary.50" }, /* @__PURE__ */ React38.createElement(Typography22, { variant: "h6", color: "text.secondary" }, currentDate.format("D")), /* @__PURE__ */ React38.createElement(Typography22, { variant: "caption", color: "text.secondary" }, currentDate.format("dddd")))), isLoading ? /* @__PURE__ */ React38.createElement(Box23, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: CALENDAR_CONSTANTS.LOADING_CONTAINER_HEIGHT }, /* @__PURE__ */ React38.createElement(CircularProgress4, { sx: { width: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE, height: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE }, variant: "indeterminate" })) : noEvents ? /* @__PURE__ */ React38.createElement(
4131
4229
  EmptyState,
4132
4230
  {
4133
4231
  containerHeight: "480px",
@@ -4135,8 +4233,8 @@ var DayView = ({
4135
4233
  subtitle: "Selecciona un mec\xE1nico y as\xEDgnale las actividades a realizar.",
4136
4234
  icon: /* @__PURE__ */ React38.createElement(LogoCalendario, null)
4137
4235
  }
4138
- ) : /* @__PURE__ */ React38.createElement(Box22, { display: "flex", flex: 1 }, /* @__PURE__ */ React38.createElement(Box22, { width: CALENDAR_CONSTANTS.SIDEBAR_WIDTH, bgcolor: "background.default" }, hours.map((h) => /* @__PURE__ */ React38.createElement(
4139
- Box22,
4236
+ ) : /* @__PURE__ */ React38.createElement(Box23, { display: "flex", flex: 1 }, /* @__PURE__ */ React38.createElement(Box23, { width: CALENDAR_CONSTANTS.SIDEBAR_WIDTH, bgcolor: "background.default" }, hours.map((h) => /* @__PURE__ */ React38.createElement(
4237
+ Box23,
4140
4238
  {
4141
4239
  key: h,
4142
4240
  height: CALENDAR_CONSTANTS.DAY_HEIGHT,
@@ -4146,11 +4244,11 @@ var DayView = ({
4146
4244
  borderRight: "1px solid",
4147
4245
  borderColor: "divider"
4148
4246
  },
4149
- /* @__PURE__ */ React38.createElement(Typography23, { variant: "caption", color: "text.secondary" }, dayjs7().hour(h).format("h A"))
4150
- ))), /* @__PURE__ */ React38.createElement(Box22, { flex: 1, position: "relative" }, hours.map((hourIdx) => {
4247
+ /* @__PURE__ */ React38.createElement(Typography22, { variant: "caption", color: "text.secondary" }, dayjs7().hour(h).format("h A"))
4248
+ ))), /* @__PURE__ */ React38.createElement(Box23, { flex: 1, position: "relative" }, hours.map((hourIdx) => {
4151
4249
  const borderType = getCellBorderType(hourIdx, dayEvents);
4152
4250
  return /* @__PURE__ */ React38.createElement(
4153
- Box22,
4251
+ Box23,
4154
4252
  {
4155
4253
  key: hourIdx,
4156
4254
  height: CALENDAR_CONSTANTS.DAY_HEIGHT,
@@ -4187,10 +4285,10 @@ var DayView = ({
4187
4285
  };
4188
4286
 
4189
4287
  // src/Components/Calendario/hooks/useCalendarNavigation.ts
4190
- import { useState as useState18 } from "react";
4288
+ import { useState as useState19 } from "react";
4191
4289
  import dayjs8 from "dayjs";
4192
4290
  var useCalendarNavigation = (initialDate, onDateChange) => {
4193
- const [currentDate, setCurrentDate] = useState18(initialDate || dayjs8());
4291
+ const [currentDate, setCurrentDate] = useState19(initialDate || dayjs8());
4194
4292
  const getNavigationUnit = (view) => {
4195
4293
  switch (view) {
4196
4294
  case "day":
@@ -4243,7 +4341,7 @@ var Calendar = ({
4243
4341
  startHour = CALENDAR_CONSTANTS.DEFAULT_START_HOUR,
4244
4342
  endHour = CALENDAR_CONSTANTS.DEFAULT_END_HOUR
4245
4343
  }) => {
4246
- const [view, setView] = useState19(initialView);
4344
+ const [view, setView] = useState20(initialView);
4247
4345
  const { currentDate, navigateDate } = useCalendarNavigation(dayjs9(), onDateChange);
4248
4346
  useEffect19(() => {
4249
4347
  onDateChange == null ? void 0 : onDateChange(currentDate);
@@ -4255,7 +4353,7 @@ var Calendar = ({
4255
4353
  const handleNavigate = (action) => {
4256
4354
  navigateDate(action, view);
4257
4355
  };
4258
- return /* @__PURE__ */ React39.createElement(Box23, null, /* @__PURE__ */ React39.createElement(
4356
+ return /* @__PURE__ */ React39.createElement(Box24, null, /* @__PURE__ */ React39.createElement(
4259
4357
  CalendarToolbar,
4260
4358
  {
4261
4359
  labelDate: currentDate,
@@ -4265,7 +4363,7 @@ var Calendar = ({
4265
4363
  },
4266
4364
  toolbar
4267
4365
  ), isLoading ? /* @__PURE__ */ React39.createElement(
4268
- Box23,
4366
+ Box24,
4269
4367
  {
4270
4368
  display: "flex",
4271
4369
  justifyContent: "center",
@@ -4318,8 +4416,8 @@ var Calendar = ({
4318
4416
  };
4319
4417
 
4320
4418
  // src/Components/SCTime.tsx
4321
- import React40, { useState as useState20 } from "react";
4322
- import { Box as Box24, InputAdornment as InputAdornment6, Popover as Popover6, ClickAwayListener as ClickAwayListener2 } from "@mui/material";
4419
+ import React40, { useState as useState21 } from "react";
4420
+ import { Box as Box25, InputAdornment as InputAdornment6, Popover as Popover6, ClickAwayListener as ClickAwayListener2 } from "@mui/material";
4323
4421
  import { LocalizationProvider as LocalizationProvider3 } from "@mui/x-date-pickers/LocalizationProvider";
4324
4422
  import { AdapterDayjs as AdapterDayjs2 } from "@mui/x-date-pickers/AdapterDayjs";
4325
4423
  import dayjs10 from "dayjs";
@@ -4335,16 +4433,17 @@ var SCTime = ({
4335
4433
  background = "transparent",
4336
4434
  timeStep = 5,
4337
4435
  state,
4338
- setState
4436
+ setState,
4437
+ error
4339
4438
  }) => {
4340
4439
  LicenseInfo3.setLicenseKey(
4341
4440
  "77d49a57fbc5f4af35ddb05c5f1742e0Tz0xMTI3MjgsRT0xNzc4MzcxMTk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
4342
4441
  );
4343
4442
  const isTimeEmpty = required && !state;
4344
- const hasError = isTimeEmpty;
4345
- const [anchorEl, setAnchorEl] = useState20(null);
4346
- const [isOpenPopover, setIsOpenPopover] = useState20(false);
4347
- const [popoverPlacement, setPopoverPlacement] = useState20("bottom");
4443
+ const hasError = isTimeEmpty || error;
4444
+ const [anchorEl, setAnchorEl] = useState21(null);
4445
+ const [isOpenPopover, setIsOpenPopover] = useState21(false);
4446
+ const [popoverPlacement, setPopoverPlacement] = useState21("bottom");
4348
4447
  const detectPlacement = (element) => {
4349
4448
  const rect = element.getBoundingClientRect();
4350
4449
  const windowHeight = window.innerHeight;
@@ -4375,7 +4474,7 @@ var SCTime = ({
4375
4474
  setIsOpenPopover(false);
4376
4475
  setAnchorEl(null);
4377
4476
  };
4378
- return /* @__PURE__ */ React40.createElement(LocalizationProvider3, { dateAdapter: AdapterDayjs2 }, /* @__PURE__ */ React40.createElement(Box24, { sx: { position: "relative", width: "120px" } }, /* @__PURE__ */ React40.createElement(
4477
+ return /* @__PURE__ */ React40.createElement(LocalizationProvider3, { dateAdapter: AdapterDayjs2 }, /* @__PURE__ */ React40.createElement(Box25, { sx: { position: "relative", width: "120px" } }, /* @__PURE__ */ React40.createElement(
4379
4478
  TimeField,
4380
4479
  {
4381
4480
  label,
@@ -4444,7 +4543,7 @@ var SCTime = ({
4444
4543
  }
4445
4544
  }
4446
4545
  },
4447
- /* @__PURE__ */ React40.createElement(ClickAwayListener2, { onClickAway: handleClose }, /* @__PURE__ */ React40.createElement(Box24, { sx: { p: 0 } }, /* @__PURE__ */ React40.createElement(
4546
+ /* @__PURE__ */ React40.createElement(ClickAwayListener2, { onClickAway: handleClose }, /* @__PURE__ */ React40.createElement(Box25, { sx: { p: 0 } }, /* @__PURE__ */ React40.createElement(
4448
4547
  DigitalClock,
4449
4548
  {
4450
4549
  value: state,
@@ -4467,7 +4566,7 @@ var SCTime = ({
4467
4566
 
4468
4567
  // src/Components/SCCard.tsx
4469
4568
  import React41 from "react";
4470
- import { Button as Button15, Box as Box25, SvgIcon as SvgIcon9 } from "@mui/material";
4569
+ import { Button as Button15, Box as Box26, SvgIcon as SvgIcon9 } from "@mui/material";
4471
4570
  import IconButton14 from "@mui/material/IconButton";
4472
4571
  import Card from "@mui/material/Card";
4473
4572
  import CardHeader from "@mui/material/CardHeader";
@@ -4501,7 +4600,7 @@ var SCCard = ({ title, image, iconTitle, actionsTitle, subtitle, content, action
4501
4600
  return /* @__PURE__ */ React41.createElement(Card, { sx: { maxWidth: 345 } }, title && /* @__PURE__ */ React41.createElement(
4502
4601
  CardHeader,
4503
4602
  {
4504
- avatar: iconTitle ? iconTitleValidation === "image" ? /* @__PURE__ */ React41.createElement(Box25, { 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,
4603
+ 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,
4505
4604
  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,
4506
4605
  title,
4507
4606
  subheader: subtitle,
@@ -4543,8 +4642,8 @@ var SCCard = ({ title, image, iconTitle, actionsTitle, subtitle, content, action
4543
4642
  };
4544
4643
 
4545
4644
  // src/Components/SCActivityCalendar.tsx
4546
- import React42, { useState as useState22 } from "react";
4547
- import { Typography as Typography26, IconButton as IconButton15, Box as Box26, Badge as Badge2 } from "@mui/material";
4645
+ import React42, { useState as useState23 } from "react";
4646
+ import { Typography as Typography25, IconButton as IconButton15, Box as Box27, Badge as Badge2 } from "@mui/material";
4548
4647
  import Grid11 from "@mui/material/Grid";
4549
4648
  import { AdapterDateFns as AdapterDateFns2 } from "@mui/x-date-pickers/AdapterDateFns";
4550
4649
  import { LocalizationProvider as LocalizationProvider4 } from "@mui/x-date-pickers/LocalizationProvider";
@@ -4567,8 +4666,8 @@ var SCActivityCalendar = ({
4567
4666
  configRangeHour
4568
4667
  }) => {
4569
4668
  let convertFecha;
4570
- const [fecha, setFecha] = useState22(/* @__PURE__ */ new Date());
4571
- const [fechaSeleccionada, setFechaSeleccionada] = useState22();
4669
+ const [fecha, setFecha] = useState23(/* @__PURE__ */ new Date());
4670
+ const [fechaSeleccionada, setFechaSeleccionada] = useState23();
4572
4671
  const [stateVal, setstateVal] = React42.useState(/* @__PURE__ */ new Date());
4573
4672
  const [openCalendar, setOpenCalendar] = React42.useState(false);
4574
4673
  const hoy = /* @__PURE__ */ new Date();
@@ -4598,8 +4697,8 @@ var SCActivityCalendar = ({
4598
4697
  // 0 para domingo, 1 para lunes, etc.
4599
4698
  }
4600
4699
  });
4601
- return /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(LocalizationProvider4, { dateAdapter: AdapterDateFns2, adapterLocale: es2 }, openCalendar == false ? /* @__PURE__ */ React42.createElement(Box26, { "data-testid": "calendar-mobile", sx: { width: "100%", background: background ? background : "white", display: "flex", flexDirection: "column", alignItems: "center" } }, /* @__PURE__ */ React42.createElement(Box26, { 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(Box26, { sx: { width: "36px", height: "40px", display: "flex", alignItems: "center", justifyContent: "center" } }, /* @__PURE__ */ React42.createElement(Typography26, { sx: { fontSize: "12px !important", color: "#10184099" } }, format2(dia, "EEEE", { locale: es2 }).charAt(0).toUpperCase())), /* @__PURE__ */ React42.createElement(
4602
- Box26,
4700
+ return /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(LocalizationProvider4, { dateAdapter: AdapterDateFns2, adapterLocale: es2 }, 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(
4701
+ Box27,
4603
4702
  {
4604
4703
  onClick: () => setFecha(dia),
4605
4704
  sx: {
@@ -4614,8 +4713,8 @@ var SCActivityCalendar = ({
4614
4713
  //height: '36px',
4615
4714
  }
4616
4715
  },
4617
- /* @__PURE__ */ React42.createElement(Typography26, { sx: { fontSize: "12px !important", color: isSameDay2(dia, fecha) ? "white" : "#101840DE" } }, format2(dia, "d"))
4618
- )))), /* @__PURE__ */ React42.createElement(Grid11, { container: true, justifyContent: "center" }, /* @__PURE__ */ React42.createElement(IconButton15, { "data-testid": "open-calendar-button", onClick: toggleCalendar(true) }, /* @__PURE__ */ React42.createElement(KeyboardDoubleArrowDownIcon2, { color: "action" }))))) : /* @__PURE__ */ React42.createElement(Box26, { sx: { width: "100%", background: "white" } }, /* @__PURE__ */ React42.createElement(
4716
+ /* @__PURE__ */ React42.createElement(Typography25, { sx: { fontSize: "12px !important", color: isSameDay2(dia, fecha) ? "white" : "#101840DE" } }, format2(dia, "d"))
4717
+ )))), /* @__PURE__ */ React42.createElement(Grid11, { container: true, justifyContent: "center" }, /* @__PURE__ */ React42.createElement(IconButton15, { "data-testid": "open-calendar-button", onClick: toggleCalendar(true) }, /* @__PURE__ */ React42.createElement(KeyboardDoubleArrowDownIcon2, { color: "action" }))))) : /* @__PURE__ */ React42.createElement(Box27, { sx: { width: "100%", background: "white" } }, /* @__PURE__ */ React42.createElement(
4619
4718
  StaticDatePicker2,
4620
4719
  {
4621
4720
  orientation: "landscape",
@@ -4625,19 +4724,19 @@ var SCActivityCalendar = ({
4625
4724
  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" } },
4626
4725
  onChange: (newValue) => setFecha(newValue)
4627
4726
  }
4628
- ), /* @__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(Box26, { sx: { 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(
4629
- Box26,
4727
+ ), /* @__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: { 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(
4728
+ Box27,
4630
4729
  {
4631
4730
  key: dayIndex
4632
4731
  },
4633
- /* @__PURE__ */ React42.createElement(Grid11, { container: true }, /* @__PURE__ */ React42.createElement(Typography26, { variant: "subtitle1", sx: { color: isSameDay2(day, fecha) ? "info.dark" : "text.secondary" } }, day.toLocaleDateString("es-ES", {
4732
+ /* @__PURE__ */ React42.createElement(Grid11, { container: true }, /* @__PURE__ */ React42.createElement(Typography25, { variant: "subtitle1", sx: { color: isSameDay2(day, fecha) ? "info.dark" : "text.secondary" } }, day.toLocaleDateString("es-ES", {
4634
4733
  day: "numeric"
4635
4734
  }), " de ", day.toLocaleDateString("es-ES", {
4636
4735
  month: "short"
4637
4736
  }), ", ", day.toLocaleDateString("es-ES", {
4638
4737
  weekday: "long"
4639
4738
  }))),
4640
- /* @__PURE__ */ React42.createElement(Box26, { sx: {
4739
+ /* @__PURE__ */ React42.createElement(Box27, { sx: {
4641
4740
  display: "flex",
4642
4741
  flexDirection: "column"
4643
4742
  } }, (() => {
@@ -4652,10 +4751,10 @@ var SCActivityCalendar = ({
4652
4751
  key: idx,
4653
4752
  options: [{
4654
4753
  title: event2.description,
4655
- subtitle: /* @__PURE__ */ React42.createElement(React42.Fragment, null, configRangeHour && new Date(event2.date.replace("00:00:00", event2.startTime)).getHours() === new Date(event2.date.replace("00:00:00", configRangeHour.split("-")[0])).getHours() && new Date(event2.date.replace("00:00:00", event2.finalTime)).getHours() === new Date(event2.date.replace("00:00:00", configRangeHour.split("-")[1])).getHours() && new Date(event2.date.replace("00:00:00", event2.startTime)).getMinutes() === new Date(event2.date.replace("00:00:00", configRangeHour.split("-")[0])).getMinutes() && new Date(event2.date.replace("00:00:00", event2.finalTime)).getMinutes() === new Date(event2.date.replace("00:00:00", configRangeHour.split("-")[1])).getMinutes() ? /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(Typography26, null, "Todo el dia"), /* @__PURE__ */ React42.createElement(LightModeOutlinedIcon, { fontSize: "small" })) : /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(Typography26, null, new Date(event2.date.replace("00:00:00", event2.startTime)).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: true })), /* @__PURE__ */ React42.createElement(ArrowForwardIcon, { fontSize: "small" }), /* @__PURE__ */ React42.createElement(Typography26, null, new Date(event2.date.replace("00:00:00", event2.finalTime)).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: true })))),
4754
+ subtitle: /* @__PURE__ */ React42.createElement(React42.Fragment, null, configRangeHour && new Date(event2.date.replace("00:00:00", event2.startTime)).getHours() === new Date(event2.date.replace("00:00:00", configRangeHour.split("-")[0])).getHours() && new Date(event2.date.replace("00:00:00", event2.finalTime)).getHours() === new Date(event2.date.replace("00:00:00", configRangeHour.split("-")[1])).getHours() && new Date(event2.date.replace("00:00:00", event2.startTime)).getMinutes() === new Date(event2.date.replace("00:00:00", configRangeHour.split("-")[0])).getMinutes() && new Date(event2.date.replace("00:00:00", event2.finalTime)).getMinutes() === new Date(event2.date.replace("00:00:00", configRangeHour.split("-")[1])).getMinutes() ? /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(Typography25, null, "Todo el dia"), /* @__PURE__ */ React42.createElement(LightModeOutlinedIcon, { fontSize: "small" })) : /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(Typography25, null, new Date(event2.date.replace("00:00:00", event2.startTime)).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: true })), /* @__PURE__ */ React42.createElement(ArrowForwardIcon, { fontSize: "small" }), /* @__PURE__ */ React42.createElement(Typography25, null, new Date(event2.date.replace("00:00:00", event2.finalTime)).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: true })))),
4656
4755
  iconLeftColor: event2.state === "Finalizada" ? "success" : "action",
4657
4756
  iconLeft: event2.state === "Finalizada" ? "CheckCircle" : event2.state === "Aplazada" ? "EventBusyOutlined" : event2.state === "En progreso" ? "PendingOutlined" : "RadioButtonUnchecked",
4658
- description: /* @__PURE__ */ React42.createElement(React42.Fragment, null, event2.state === "Aplazada" || event2.state === "En progreso" || event2.state === "Auto asignada" ? /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(Badge2, { variant: "dot", badgeContent: "", sx: { display: "flex", alignItems: "center", "& .MuiBadge-badge": { top: "50%", transform: "translateY(-50%)" }, color: "action" } }), /* @__PURE__ */ React42.createElement(Typography26, null, event2.state == "Auto asignada" ? "Adicional" : event2.state)) : null),
4757
+ description: /* @__PURE__ */ React42.createElement(React42.Fragment, null, event2.state === "Aplazada" || event2.state === "En progreso" || event2.state === "Auto asignada" ? /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(Badge2, { variant: "dot", badgeContent: "", sx: { display: "flex", alignItems: "center", "& .MuiBadge-badge": { top: "50%", transform: "translateY(-50%)" }, color: "action" } }), /* @__PURE__ */ React42.createElement(Typography25, null, event2.state == "Auto asignada" ? "Adicional" : event2.state)) : null),
4659
4758
  divider: eventosDelDia.length === idx + 1 ? false : true,
4660
4759
  disable: event2.state === "Finalizada" || event2.state === "Aplazada" || event2.state === "En progreso" ? true : false,
4661
4760
  fn: fn ? () => fn(event2) : void 0