componentes-sinco 1.1.21 → 1.1.23

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.d.cts CHANGED
@@ -715,8 +715,8 @@ interface SCDatePickerProps {
715
715
  required?: boolean;
716
716
  disabled?: boolean;
717
717
  background?: string;
718
- state: Dayjs | null;
719
- setState: (value: Dayjs | null) => void;
718
+ state: Dayjs;
719
+ setState: (value: Dayjs) => void;
720
720
  width?: string;
721
721
  }
722
722
  declare const SCDatePicker: ({ label, required, disabled, background, state, setState, width }: SCDatePickerProps) => React__default.JSX.Element;
package/dist/index.d.ts CHANGED
@@ -715,8 +715,8 @@ interface SCDatePickerProps {
715
715
  required?: boolean;
716
716
  disabled?: boolean;
717
717
  background?: string;
718
- state: Dayjs | null;
719
- setState: (value: Dayjs | null) => void;
718
+ state: Dayjs;
719
+ setState: (value: Dayjs) => void;
720
720
  width?: string;
721
721
  }
722
722
  declare const SCDatePicker: ({ label, required, disabled, background, state, setState, width }: SCDatePickerProps) => React__default.JSX.Element;
package/dist/index.js CHANGED
@@ -1572,7 +1572,10 @@ var SCTextArea = ({
1572
1572
  setState(e.target.value.substring(0, maxLength));
1573
1573
  }
1574
1574
  },
1575
- autoComplete: "off"
1575
+ autoComplete: "off",
1576
+ InputLabelProps: {
1577
+ shrink: true
1578
+ }
1576
1579
  }
1577
1580
  )), /* @__PURE__ */ React9.createElement(Stack4, null, /* @__PURE__ */ React9.createElement(
1578
1581
  Typography5,
@@ -1716,7 +1719,10 @@ var StopEvent = ({ children }) => {
1716
1719
  e.preventDefault();
1717
1720
  e.stopPropagation();
1718
1721
  },
1719
- onClick: (e) => e.stopPropagation(),
1722
+ onClick: (e) => {
1723
+ e.preventDefault();
1724
+ e.stopPropagation();
1725
+ },
1720
1726
  display: "inline-flex",
1721
1727
  alignItems: "center"
1722
1728
  },
@@ -1829,17 +1835,19 @@ function SCAutocomplete({
1829
1835
  (item) => getItemValue(item).value === state.hiddenValue
1830
1836
  ) || null;
1831
1837
  const [open, setOpen] = React11.useState(false);
1838
+ const componentClickActiveRef = React11.useRef(false);
1832
1839
  const hayOnComponentClickGlobal = useMemo3(() => {
1833
1840
  return data.some((opt) => {
1834
1841
  const item = getItemValue(opt);
1835
1842
  return Boolean(item.onComponentClick);
1836
1843
  });
1837
- }, [data]);
1844
+ }, [data, getItemValue]);
1838
1845
  return /* @__PURE__ */ React11.createElement(React11.Fragment, null, data && /* @__PURE__ */ React11.createElement(
1839
1846
  Autocomplete,
1840
1847
  __spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, hayOnComponentClickGlobal ? { disableCloseOnSelect: true } : {}), hayOnComponentClickGlobal ? { blurOnSelect: false } : {}), hayOnComponentClickGlobal ? { open } : {}), hayOnComponentClickGlobal ? { onOpen: () => setOpen(true) } : {}), hayOnComponentClickGlobal ? {
1841
1848
  onClose: (event2, reason) => {
1842
- if (["blur", "selectOption"].includes(reason)) return;
1849
+ if (componentClickActiveRef.current) return;
1850
+ if (reason === "selectOption") return;
1843
1851
  setOpen(false);
1844
1852
  }
1845
1853
  } : {}), {
@@ -1925,11 +1933,22 @@ function SCAutocomplete({
1925
1933
  item.component != null ? /* @__PURE__ */ React11.createElement(StopEvent, null, /* @__PURE__ */ React11.createElement(
1926
1934
  "span",
1927
1935
  {
1928
- onClick: (e) => {
1936
+ onMouseDown: (event2) => {
1937
+ componentClickActiveRef.current = true;
1938
+ event2.preventDefault();
1939
+ event2.stopPropagation();
1940
+ event2.defaultMuiPrevented = true;
1941
+ },
1942
+ onClick: (event2) => {
1929
1943
  var _a2;
1930
- e.preventDefault();
1931
- e.stopPropagation();
1932
- (_a2 = item.onComponentClick) == null ? void 0 : _a2.call(item, e, option);
1944
+ event2.preventDefault();
1945
+ event2.stopPropagation();
1946
+ event2.defaultMuiPrevented = true;
1947
+ (_a2 = item.onComponentClick) == null ? void 0 : _a2.call(item, event2, option);
1948
+ setOpen(true);
1949
+ setTimeout(() => {
1950
+ componentClickActiveRef.current = false;
1951
+ }, 200);
1933
1952
  }
1934
1953
  },
1935
1954
  item.component
@@ -3049,6 +3068,7 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, rowsTable, r
3049
3068
  const [pageSize, setPageSize] = useState13(rows);
3050
3069
  const [arrayRows, setArrayRows] = useState13([]);
3051
3070
  const [selectionModel, setSelectionModel] = useState13([]);
3071
+ debugger;
3052
3072
  useEffect13(() => {
3053
3073
  var _a;
3054
3074
  if (setSelectedRow) {
@@ -3220,8 +3240,8 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, rowsTable, r
3220
3240
  "maxHeight": "0px !important"
3221
3241
  },
3222
3242
  "& .MuiDataGrid-cell": {
3223
- //padding: '0 !important', //padding de cada celda
3224
- background: "white"
3243
+ padding: groupColumns != void 0 ? "0px !important" : "0px 10px !important",
3244
+ backgroundColor: "white"
3225
3245
  },
3226
3246
  // Fila seleccionada (cuando selectionModel selecciona filas)
3227
3247
  "& .MuiDataGrid-row.Mui-selected .MuiDataGrid-cell": {
@@ -3992,12 +4012,13 @@ var isToday = (date) => {
3992
4012
  return date.isSame(dayjs3(), "day");
3993
4013
  };
3994
4014
  var stateColors = {
3995
- Asignada: "warning.main",
3996
- Finalizado: "primary.main",
3997
- Vencida: "error.main",
3998
- EnProgreso: "success.main",
3999
- Aplazada: "grey.400",
4000
- Generada: "secondary.main"
4015
+ Asignada: "warning.200",
4016
+ Generada: "default.main",
4017
+ EnProgreso: "primary.200",
4018
+ Aplazada: "secondary.A400",
4019
+ Vencida: "error.200",
4020
+ Finalizada: "success.200"
4021
+ //#FCE4C0
4001
4022
  };
4002
4023
 
4003
4024
  // src/Components/Calendario/Event.tsx
@@ -4295,7 +4316,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
4295
4316
  {
4296
4317
  key: `${event2.id}-${day.toString()}`,
4297
4318
  event: event2,
4298
- color: stateColors[event2.state],
4319
+ color: stateColors[event2.state == "En progreso" ? "EnProgreso" : event2.state],
4299
4320
  onClick: () => onEventClick == null ? void 0 : onEventClick(event2, day),
4300
4321
  onHover: onEventHover
4301
4322
  }
@@ -4916,7 +4937,7 @@ var SCCard = ({ width, title, image, iconTitle, actionsTitle, subtitle, content,
4916
4937
 
4917
4938
  // src/Components/SCActivityCalendar.tsx
4918
4939
  import React42, { useState as useState23 } from "react";
4919
- import { Typography as Typography25, IconButton as IconButton15, Box as Box27, Badge as Badge2 } from "@mui/material";
4940
+ 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";
4920
4941
  import Grid11 from "@mui/material/Grid";
4921
4942
  import { AdapterDateFns as AdapterDateFns2 } from "@mui/x-date-pickers/AdapterDateFns";
4922
4943
  import { LocalizationProvider as LocalizationProvider4 } from "@mui/x-date-pickers/LocalizationProvider";
@@ -4927,6 +4948,11 @@ import KeyboardDoubleArrowDownIcon2 from "@mui/icons-material/KeyboardDoubleArro
4927
4948
  import KeyboardDoubleArrowUpIcon2 from "@mui/icons-material/KeyboardDoubleArrowUp";
4928
4949
  import ArrowForwardIcon from "@mui/icons-material/ArrowForward";
4929
4950
  import LightModeOutlinedIcon from "@mui/icons-material/LightModeOutlined";
4951
+ import FilterListIcon from "@mui/icons-material/FilterList";
4952
+ import CalendarMonthOutlinedIcon from "@mui/icons-material/CalendarMonthOutlined";
4953
+ import CheckCircleOutlineOutlinedIcon from "@mui/icons-material/CheckCircleOutlineOutlined";
4954
+ import EventBusyOutlinedIcon from "@mui/icons-material/EventBusyOutlined";
4955
+ import PendingOutlinedIcon from "@mui/icons-material/PendingOutlined";
4930
4956
  var SCActivityCalendar = ({
4931
4957
  //informativas
4932
4958
  //apariencia
@@ -4943,6 +4969,11 @@ var SCActivityCalendar = ({
4943
4969
  const [fechaSeleccionada, setFechaSeleccionada] = useState23();
4944
4970
  const [stateVal, setstateVal] = React42.useState(/* @__PURE__ */ new Date());
4945
4971
  const [openCalendar, setOpenCalendar] = React42.useState(false);
4972
+ const [anchorPopoverFiltro, setAnchorPopoverFiltro] = useState23(null);
4973
+ const [datosEventos, setDatosEventos] = React42.useState(events);
4974
+ console.log("eventos", events);
4975
+ console.log("datosEventos", datosEventos);
4976
+ const openPopoverFiltro = Boolean(anchorPopoverFiltro);
4946
4977
  const hoy = /* @__PURE__ */ new Date();
4947
4978
  const inicioSemana = startOfWeek2(fecha, { weekStartsOn: 0 });
4948
4979
  const diasSemana = Array.from({ length: 7 }, (_, i) => addDays2(inicioSemana, i));
@@ -4951,6 +4982,11 @@ var SCActivityCalendar = ({
4951
4982
  handleConvertFecha(fecha);
4952
4983
  }
4953
4984
  }, [fecha]);
4985
+ React42.useEffect(() => {
4986
+ if (events != null) {
4987
+ setDatosEventos(events);
4988
+ }
4989
+ }, [events]);
4954
4990
  const handleConvertFecha = (fecha2) => {
4955
4991
  if (fecha2) {
4956
4992
  let day = (fecha2.getDate() < 10 ? "0" : "") + fecha2.getDate();
@@ -4970,6 +5006,22 @@ var SCActivityCalendar = ({
4970
5006
  // 0 = domingo, 1 = lunes
4971
5007
  })
4972
5008
  });
5009
+ const handleClickPopoverFiltro = (event2) => {
5010
+ setAnchorPopoverFiltro(event2.currentTarget);
5011
+ };
5012
+ const handleClosePopoverFiltro = () => {
5013
+ setAnchorPopoverFiltro(null);
5014
+ };
5015
+ const filtrarActividad = (event2, filtro) => {
5016
+ if (filtro === "Todo") {
5017
+ setDatosEventos(events);
5018
+ } else {
5019
+ const resultado = events.filter(
5020
+ (item) => item.state === filtro
5021
+ );
5022
+ setDatosEventos(resultado);
5023
+ }
5024
+ };
4973
5025
  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(
4974
5026
  Box27,
4975
5027
  {
@@ -4993,7 +5045,7 @@ var SCActivityCalendar = ({
4993
5045
  slotProps: { toolbar: { hidden: true }, actionBar: { actions: [] } },
4994
5046
  sx: {
4995
5047
  "& .MuiDateCalendar-root": {
4996
- width: "97.5%",
5048
+ width: "91.5%",
4997
5049
  maxWidth: "unset",
4998
5050
  margin: 0,
4999
5051
  padding: "0px 16px"
@@ -5009,7 +5061,36 @@ var SCActivityCalendar = ({
5009
5061
  },
5010
5062
  onChange: (newValue) => setFecha(newValue)
5011
5063
  }
5012
- ), /* @__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% - 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(
5064
+ ), /* @__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 ? "220px" : "380px" } }, /* @__PURE__ */ React42.createElement(FilterListIcon, { color: "action" })), /* @__PURE__ */ React42.createElement(
5065
+ Popover7,
5066
+ {
5067
+ open: openPopoverFiltro,
5068
+ anchorEl: anchorPopoverFiltro,
5069
+ onClose: handleClosePopoverFiltro,
5070
+ anchorOrigin: {
5071
+ vertical: "bottom",
5072
+ horizontal: "right"
5073
+ }
5074
+ },
5075
+ /* @__PURE__ */ React42.createElement(
5076
+ Menu3,
5077
+ {
5078
+ id: "basic-menu",
5079
+ anchorEl: anchorPopoverFiltro,
5080
+ open: openPopoverFiltro,
5081
+ onClose: handleClosePopoverFiltro,
5082
+ slotProps: {
5083
+ list: {
5084
+ "aria-labelledby": "basic-button"
5085
+ }
5086
+ }
5087
+ },
5088
+ /* @__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")),
5089
+ /* @__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")),
5090
+ /* @__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")),
5091
+ /* @__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"))
5092
+ )
5093
+ ), /* @__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(
5013
5094
  Box27,
5014
5095
  {
5015
5096
  key: dayIndex
@@ -5026,9 +5107,12 @@ var SCActivityCalendar = ({
5026
5107
  flexDirection: "column"
5027
5108
  } }, (() => {
5028
5109
  const esDomingo = day.getDay() === 0;
5029
- const eventosDelDia = events.filter(
5110
+ console.log("D\xEDa:", day);
5111
+ console.log("Filtrando eventos para el d\xEDa:", datosEventos);
5112
+ const eventosDelDia = datosEventos.filter(
5030
5113
  (event2) => new Date(event2.date).toDateString() === day.toDateString()
5031
5114
  );
5115
+ console.log("Cantidad eventos para el d\xEDa:", eventosDelDia);
5032
5116
  if (eventosDelDia.length > 0) {
5033
5117
  return eventosDelDia.map((event2, idx) => /* @__PURE__ */ React42.createElement(
5034
5118
  SCListContent,
@@ -5036,10 +5120,10 @@ var SCActivityCalendar = ({
5036
5120
  key: idx,
5037
5121
  options: [{
5038
5122
  title: event2.activityDescription,
5039
- 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 })))),
5123
+ subtitle: /* @__PURE__ */ React42.createElement(React42.Fragment, null, configRangeHour && (/* @__PURE__ */ new Date(event2.date + "T" + event2.startTime)).getHours() === (/* @__PURE__ */ new Date(event2.date + "T" + configRangeHour.split("-")[0])).getHours() && (/* @__PURE__ */ new Date(event2.date + "T" + event2.finalTime)).getHours() === (/* @__PURE__ */ new Date(event2.date + "T" + configRangeHour.split("-")[1])).getHours() && (/* @__PURE__ */ new Date(event2.date + "T" + event2.startTime)).getMinutes() === (/* @__PURE__ */ new Date(event2.date + "T" + configRangeHour.split("-")[0])).getMinutes() && (/* @__PURE__ */ new Date(event2.date + "T" + event2.finalTime)).getMinutes() === (/* @__PURE__ */ new Date(event2.date + "T" + configRangeHour.split("-")[1])).getMinutes() ? /* @__PURE__ */ 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 })))),
5040
5124
  iconLeftColor: event2.state === "Finalizada" ? "#C7E49D" : "action",
5041
5125
  iconLeft: event2.state === "Finalizada" ? "CheckCircle" : event2.state === "Aplazada" ? "EventBusyOutlined" : event2.state === "En progreso" ? "PendingOutlined" : "RadioButtonUnchecked",
5042
- description: /* @__PURE__ */ React42.createElement(Grid11, { display: "flex", flexDirection: "column", alignItems: "flex-start" }, event2.state === "Aplazada" || event2.state === "En progreso" || event2.state === "Auto asignada" ? /* @__PURE__ */ React42.createElement(Grid11, { display: "flex", flexDirection: "row", alignItems: "center", gap: 0.5, sx: { marginLeft: "7px" } }, /* @__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, /* @__PURE__ */ React42.createElement(Typography25, { variant: "body2" }, event2.equipmentDescription)),
5126
+ 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),
5043
5127
  divider: eventosDelDia.length === idx + 1 ? false : true,
5044
5128
  colorDisabled: event2.state === "Finalizada" || event2.state === "Aplazada" || event2.state === "En progreso" ? true : false,
5045
5129
  fn: fn ? () => fn(event2) : void 0
@@ -5543,7 +5627,7 @@ var SCSnackBar = ({
5543
5627
 
5544
5628
  // src/Components/SCAppBar.tsx
5545
5629
  import React46, { useState as useState26, useEffect as useEffect22 } from "react";
5546
- import { Menu as Menu3, Box as Box29, Typography as Typography27, MenuItem as MenuItem8, IconButton as IconButton17, Badge as Badge3 } from "@mui/material";
5630
+ import { Menu as Menu4, Box as Box29, Typography as Typography27, MenuItem as MenuItem9, IconButton as IconButton17, Badge as Badge3 } from "@mui/material";
5547
5631
  import Grid12 from "@mui/material/Grid";
5548
5632
  import "dayjs/locale/es";
5549
5633
  import MenuIcon from "@mui/icons-material/Menu";
@@ -5599,7 +5683,7 @@ var SCAppBar = ({
5599
5683
  color: isOnline ? "success" : "error"
5600
5684
  }
5601
5685
  ), /* @__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(
5602
- Menu3,
5686
+ Menu4,
5603
5687
  {
5604
5688
  anchorEl,
5605
5689
  open: openMenu,
@@ -5614,7 +5698,7 @@ var SCAppBar = ({
5614
5698
  },
5615
5699
  sx: { zIndex: "2000" }
5616
5700
  },
5617
- options.map((option, index) => /* @__PURE__ */ React46.createElement(MenuItem8, { onClick: option.fn, disabled: option.disabled, key: index }, /* @__PURE__ */ React46.createElement(Typography27, { variant: "body2" }, option.name)))
5701
+ options.map((option, index) => /* @__PURE__ */ React46.createElement(MenuItem9, { onClick: option.fn, disabled: option.disabled, key: index }, /* @__PURE__ */ React46.createElement(Typography27, { variant: "body2" }, option.name)))
5618
5702
  )))), /* @__PURE__ */ React46.createElement(Box29, { sx: { padding: "8px 16px 0px 16px" } }, contenidoExtra)));
5619
5703
  };
5620
5704