componentes-sinco 1.0.29 → 1.0.31

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.cjs CHANGED
@@ -77,8 +77,8 @@ var __async = (__this, __arguments, generator) => {
77
77
  };
78
78
 
79
79
  // src/index.ts
80
- var src_exports = {};
81
- __export(src_exports, {
80
+ var index_exports = {};
81
+ __export(index_exports, {
82
82
  ADCSincoTheme: () => ADCSincoTheme,
83
83
  AdproSincoTheme: () => AdproSincoTheme,
84
84
  Attachment: () => Attachment,
@@ -125,7 +125,7 @@ __export(src_exports, {
125
125
  useMultiSelectHandlers: () => useMultiSelectHandlers,
126
126
  useProgress: () => useProgress
127
127
  });
128
- module.exports = __toCommonJS(src_exports);
128
+ module.exports = __toCommonJS(index_exports);
129
129
 
130
130
  // src/Components/Adjuntar/Adjuntar.tsx
131
131
  var import_react5 = __toESM(require("react"), 1);
@@ -799,7 +799,7 @@ var Attachment = ({
799
799
  action: [
800
800
  {
801
801
  text: "Eliminar",
802
- fn: () => __async(void 0, null, function* () {
802
+ fn: () => __async(null, null, function* () {
803
803
  if (fileToDelete) {
804
804
  try {
805
805
  if (deleteAction) {
@@ -834,7 +834,7 @@ var Attachment = ({
834
834
  // src/Components/Drawer/SCDrawer.tsx
835
835
  var import_react20 = __toESM(require("react"), 1);
836
836
  var import_material14 = require("@mui/material");
837
- var import_Grid25 = __toESM(require("@mui/material/Grid2"), 1);
837
+ var import_Grid4 = __toESM(require("@mui/material/Grid"), 1);
838
838
 
839
839
  // src/Components/Drawer/Helpers/Utils.tsx
840
840
  var Muicon = __toESM(require("@mui/icons-material"), 1);
@@ -1223,7 +1223,7 @@ var import_material11 = require("@mui/material");
1223
1223
  // src/Components/Textfield/SCTextField.tsx
1224
1224
  var import_react12 = __toESM(require("react"), 1);
1225
1225
  var import_material6 = require("@mui/material");
1226
- var import_Grid2 = __toESM(require("@mui/material/Grid2"), 1);
1226
+ var import_Grid = __toESM(require("@mui/material/Grid"), 1);
1227
1227
  var import_icons_material6 = require("@mui/icons-material");
1228
1228
 
1229
1229
  // src/Components/Textfield/Helpers/validateIcon.tsx
@@ -1366,7 +1366,7 @@ var SCTextField = ({
1366
1366
  const handleCloseInfoElement = () => {
1367
1367
  setAnchorInfoElement(null);
1368
1368
  };
1369
- return /* @__PURE__ */ import_react12.default.createElement(import_material6.Box, { sx: { width } }, /* @__PURE__ */ import_react12.default.createElement(import_Grid2.default, { container: true, alignItems: "center", mb: 1.25, gap: 0.5 }, iconTitle && IconTitle ? /* @__PURE__ */ import_react12.default.createElement(import_material6.SvgIcon, { color: "action", fontSize: "small", component: IconTitle }) : "", title ? /* @__PURE__ */ import_react12.default.createElement(import_material6.Typography, { mx: 0.5, variant: "subtitle2", color: "text.secondary" }, title) : "", infoTitle ? /* @__PURE__ */ import_react12.default.createElement(import_react12.default.Fragment, null, infoTitle.component === "popover" ? /* @__PURE__ */ import_react12.default.createElement(import_react12.default.Fragment, null, /* @__PURE__ */ import_react12.default.createElement(
1369
+ return /* @__PURE__ */ import_react12.default.createElement(import_material6.Box, { sx: { width } }, /* @__PURE__ */ import_react12.default.createElement(import_Grid.default, { container: true, alignItems: "center", mb: 1.25, gap: 0.5 }, iconTitle && IconTitle ? /* @__PURE__ */ import_react12.default.createElement(import_material6.SvgIcon, { color: "action", fontSize: "small", component: IconTitle }) : "", title ? /* @__PURE__ */ import_react12.default.createElement(import_material6.Typography, { mx: 0.5, variant: "subtitle2", color: "text.secondary" }, title) : "", infoTitle ? /* @__PURE__ */ import_react12.default.createElement(import_react12.default.Fragment, null, infoTitle.component === "popover" ? /* @__PURE__ */ import_react12.default.createElement(import_react12.default.Fragment, null, /* @__PURE__ */ import_react12.default.createElement(
1370
1370
  import_icons_material6.InfoOutlined,
1371
1371
  {
1372
1372
  color: "action",
@@ -1403,7 +1403,7 @@ var SCTextField = ({
1403
1403
  color: "action",
1404
1404
  fontSize: "small"
1405
1405
  }
1406
- ))) : ""), /* @__PURE__ */ import_react12.default.createElement(import_Grid2.default, { container: true, sx: { flexWrap: "nowrap", alignItems: "center" } }, /* @__PURE__ */ import_react12.default.createElement(
1406
+ ))) : ""), /* @__PURE__ */ import_react12.default.createElement(import_Grid.default, { container: true, sx: { flexWrap: "nowrap", alignItems: "center" } }, /* @__PURE__ */ import_react12.default.createElement(
1407
1407
  import_material6.FormControl,
1408
1408
  {
1409
1409
  color,
@@ -1775,7 +1775,6 @@ function SCSelect({
1775
1775
  // src/Components/SCAutocomplete.tsx
1776
1776
  var import_react15 = __toESM(require("react"), 1);
1777
1777
  var import_material9 = require("@mui/material");
1778
- var import_Grid22 = __toESM(require("@mui/material/Grid2"), 1);
1779
1778
  var import_icons_material8 = require("@mui/icons-material");
1780
1779
  var Muicon4 = __toESM(require("@mui/icons-material"), 1);
1781
1780
  function SCAutocomplete({
@@ -1992,7 +1991,7 @@ function SCAutocomplete({
1992
1991
  checkMassive && typeFormat == "multiselect" ? /* @__PURE__ */ import_react15.default.createElement(import_react15.default.Fragment, null, /* @__PURE__ */ import_react15.default.createElement(import_material9.FormControlLabel, { control: /* @__PURE__ */ import_react15.default.createElement(import_material9.Checkbox, { checked: allSelected, indeterminate: selectedOptions.length > 0 && selectedOptions.length < data.length, onChange: handleCheckAll, color: "primary" }), label: "Todos los items", sx: { marginLeft: "0px !important", marginRight: "0px !important", padding: "7px 16px" } }), /* @__PURE__ */ import_react15.default.createElement(import_material9.Divider, null)) : "",
1993
1992
  props.children,
1994
1993
  deleteType == "button" || fnAplicar ? /* @__PURE__ */ import_react15.default.createElement(
1995
- import_Grid22.default,
1994
+ import_material9.Grid,
1996
1995
  {
1997
1996
  container: true,
1998
1997
  sx: {
@@ -2047,7 +2046,7 @@ var import_DateRangePicker = require("@mui/x-date-pickers-pro/DateRangePicker");
2047
2046
  var import_MultiInputDateRangeField = require("@mui/x-date-pickers-pro/MultiInputDateRangeField");
2048
2047
  var import_dayjs = __toESM(require("dayjs"), 1);
2049
2048
  var import_es = require("dayjs/locale/es");
2050
- var import_x_license_pro = require("@mui/x-license-pro");
2049
+ var import_x_license = require("@mui/x-license");
2051
2050
  var import_Event = __toESM(require("@mui/icons-material/Event"), 1);
2052
2051
  var SCDateRange = ({
2053
2052
  labelDateInitial = "Fecha inicial",
@@ -2058,7 +2057,7 @@ var SCDateRange = ({
2058
2057
  state,
2059
2058
  setState
2060
2059
  }) => {
2061
- import_x_license_pro.LicenseInfo.setLicenseKey(
2060
+ import_x_license.LicenseInfo.setLicenseKey(
2062
2061
  "77d49a57fbc5f4af35ddb05c5f1742e0Tz0xMTI3MjgsRT0xNzc4MzcxMTk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
2063
2062
  );
2064
2063
  const isStartEmpty = required && !state[0];
@@ -2186,7 +2185,7 @@ var DrawerContent = ({ arrayElements }) => {
2186
2185
  label: arrayElement.label,
2187
2186
  data: (_c = arrayElement.data) != null ? _c : [],
2188
2187
  columnGroup: arrayElement.columnGroup,
2189
- getItemValue: (_d = arrayElement.getItemValue) != null ? _d : () => ({ text: "", value: "" }),
2188
+ getItemValue: (_d = arrayElement.getItemValue) != null ? _d : (() => ({ text: "", value: "" })),
2190
2189
  typeFormat: arrayElement.typeFormat,
2191
2190
  checkMassive: arrayElement.checkMassive,
2192
2191
  deleteType: arrayElement.deleteType,
@@ -2205,7 +2204,7 @@ var DrawerContent = ({ arrayElements }) => {
2205
2204
  {
2206
2205
  label: arrayElement.label,
2207
2206
  data: (_e = arrayElement.data) != null ? _e : [],
2208
- getItemValue: (_f = arrayElement.getItemValue) != null ? _f : () => ({ text: "", value: "" }),
2207
+ getItemValue: (_f = arrayElement.getItemValue) != null ? _f : (() => ({ text: "", value: "" })),
2209
2208
  width: arrayElement.width,
2210
2209
  size: arrayElement.size,
2211
2210
  variant: arrayElement.variant,
@@ -2250,7 +2249,7 @@ var DrawerContent = ({ arrayElements }) => {
2250
2249
  // src/Components/Drawer/components/DrawerActions.tsx
2251
2250
  var import_react18 = __toESM(require("react"), 1);
2252
2251
  var import_material12 = require("@mui/material");
2253
- var import_Grid23 = __toESM(require("@mui/material/Grid2"), 1);
2252
+ var import_Grid2 = __toESM(require("@mui/material/Grid"), 1);
2254
2253
  var DrawerActions = ({ actions, anchor }) => {
2255
2254
  if (actions === false || actions === void 0) {
2256
2255
  return null;
@@ -2259,7 +2258,7 @@ var DrawerActions = ({ actions, anchor }) => {
2259
2258
  return null;
2260
2259
  }
2261
2260
  return /* @__PURE__ */ import_react18.default.createElement(
2262
- import_Grid23.default,
2261
+ import_Grid2.default,
2263
2262
  {
2264
2263
  sx: { borderTop: 1, borderColor: "#1018403B" },
2265
2264
  container: true,
@@ -2288,7 +2287,7 @@ var DrawerActions = ({ actions, anchor }) => {
2288
2287
  // src/Components/Drawer/components/DrawerHeader.tsx
2289
2288
  var import_react19 = __toESM(require("react"), 1);
2290
2289
  var import_material13 = require("@mui/material");
2291
- var import_Grid24 = __toESM(require("@mui/material/Grid2"), 1);
2290
+ var import_Grid3 = __toESM(require("@mui/material/Grid"), 1);
2292
2291
  var import_Close = __toESM(require("@mui/icons-material/Close"), 1);
2293
2292
  var DrawerHeader = ({
2294
2293
  title,
@@ -2296,7 +2295,7 @@ var DrawerHeader = ({
2296
2295
  onClose
2297
2296
  }) => {
2298
2297
  return /* @__PURE__ */ import_react19.default.createElement(
2299
- import_Grid24.default,
2298
+ import_Grid3.default,
2300
2299
  {
2301
2300
  container: true,
2302
2301
  sx: {
@@ -2367,7 +2366,7 @@ function SCDrawer({
2367
2366
  };
2368
2367
  const drawerActions = getActions();
2369
2368
  return /* @__PURE__ */ import_react20.default.createElement(import_react20.default.Fragment, null, toast && /* @__PURE__ */ import_react20.default.createElement(SCToastNotification, __spreadValues({}, toast)), /* @__PURE__ */ import_react20.default.createElement(
2370
- import_Grid25.default,
2369
+ import_Grid4.default,
2371
2370
  {
2372
2371
  container: true,
2373
2372
  justifyContent: "flex-start",
@@ -2660,7 +2659,7 @@ var PageHeader = ({
2660
2659
  // src/Components/SCCalendarSwipeable.tsx
2661
2660
  var import_react26 = __toESM(require("react"), 1);
2662
2661
  var import_material18 = require("@mui/material");
2663
- var import_Grid26 = __toESM(require("@mui/material/Grid2"), 1);
2662
+ var import_Grid5 = __toESM(require("@mui/material/Grid"), 1);
2664
2663
  var import_AdapterDateFns = require("@mui/x-date-pickers/AdapterDateFns");
2665
2664
  var import_LocalizationProvider2 = require("@mui/x-date-pickers/LocalizationProvider");
2666
2665
  var import_StaticDatePicker = require("@mui/x-date-pickers/StaticDatePicker");
@@ -2703,7 +2702,7 @@ var SCCalendarSwipeable = ({
2703
2702
  setOpenCalendar(newOpen);
2704
2703
  };
2705
2704
  const locale = __spreadValues({}, import_locale.es);
2706
- return /* @__PURE__ */ import_react26.default.createElement(import_react26.default.Fragment, null, /* @__PURE__ */ import_react26.default.createElement(import_LocalizationProvider2.LocalizationProvider, { dateAdapter: import_AdapterDateFns.AdapterDateFns, adapterLocale: locale }, openCalendar == false ? /* @__PURE__ */ import_react26.default.createElement(import_material18.Box, { "data-testid": "calendar-mobile", sx: { width: "100%", background: background ? background : "white", display: "flex", flexDirection: "column", alignItems: "center" } }, /* @__PURE__ */ import_react26.default.createElement(import_material18.Box, { sx: { width: "100%", maxWidth: "320px", background: "transparent" } }, /* @__PURE__ */ import_react26.default.createElement(import_Grid26.default, { container: true, gap: 0.5, sx: { justifyContent: "space-between", padding: "12px 0px", background: "transparent" } }, diasSemana.map((dia) => /* @__PURE__ */ import_react26.default.createElement(import_Grid26.default, { sx: { width: "36px" }, key: dia.toString() }, /* @__PURE__ */ import_react26.default.createElement(import_material18.Box, { sx: { width: "36px", height: "40px", display: "flex", alignItems: "center", justifyContent: "center" } }, /* @__PURE__ */ import_react26.default.createElement(import_material18.Typography, { sx: { fontSize: "12px !important", color: "#10184099" } }, (0, import_date_fns.format)(dia, "EEEE", { locale: import_locale.es }).charAt(0).toUpperCase())), /* @__PURE__ */ import_react26.default.createElement(
2705
+ return /* @__PURE__ */ import_react26.default.createElement(import_react26.default.Fragment, null, /* @__PURE__ */ import_react26.default.createElement(import_LocalizationProvider2.LocalizationProvider, { dateAdapter: import_AdapterDateFns.AdapterDateFns, adapterLocale: locale }, openCalendar == false ? /* @__PURE__ */ import_react26.default.createElement(import_material18.Box, { "data-testid": "calendar-mobile", sx: { width: "100%", background: background ? background : "white", display: "flex", flexDirection: "column", alignItems: "center" } }, /* @__PURE__ */ import_react26.default.createElement(import_material18.Box, { sx: { width: "100%", maxWidth: "320px", background: "transparent" } }, /* @__PURE__ */ import_react26.default.createElement(import_Grid5.default, { container: true, gap: 0.5, sx: { justifyContent: "space-between", padding: "12px 0px", background: "transparent" } }, diasSemana.map((dia) => /* @__PURE__ */ import_react26.default.createElement(import_Grid5.default, { sx: { width: "36px" }, key: dia.toString() }, /* @__PURE__ */ import_react26.default.createElement(import_material18.Box, { sx: { width: "36px", height: "40px", display: "flex", alignItems: "center", justifyContent: "center" } }, /* @__PURE__ */ import_react26.default.createElement(import_material18.Typography, { sx: { fontSize: "12px !important", color: "#10184099" } }, (0, import_date_fns.format)(dia, "EEEE", { locale: import_locale.es }).charAt(0).toUpperCase())), /* @__PURE__ */ import_react26.default.createElement(
2707
2706
  import_material18.Box,
2708
2707
  {
2709
2708
  onClick: () => setFecha(dia),
@@ -2720,7 +2719,7 @@ var SCCalendarSwipeable = ({
2720
2719
  }
2721
2720
  },
2722
2721
  /* @__PURE__ */ import_react26.default.createElement(import_material18.Typography, { sx: { fontSize: "12px !important", color: (0, import_date_fns.isSameDay)(dia, fecha) ? "white" : "#101840DE" } }, (0, import_date_fns.format)(dia, "d"))
2723
- )))), /* @__PURE__ */ import_react26.default.createElement(import_Grid26.default, { container: true, justifyContent: "center" }, /* @__PURE__ */ import_react26.default.createElement(import_material18.IconButton, { "data-testid": "open-calendar-button", onClick: toggleCalendar(true) }, /* @__PURE__ */ import_react26.default.createElement(import_KeyboardDoubleArrowDown.default, null))))) : /* @__PURE__ */ import_react26.default.createElement(import_material18.Box, { sx: { width: "100%", background: "white" } }, /* @__PURE__ */ import_react26.default.createElement(
2722
+ )))), /* @__PURE__ */ import_react26.default.createElement(import_Grid5.default, { container: true, justifyContent: "center" }, /* @__PURE__ */ import_react26.default.createElement(import_material18.IconButton, { "data-testid": "open-calendar-button", onClick: toggleCalendar(true) }, /* @__PURE__ */ import_react26.default.createElement(import_KeyboardDoubleArrowDown.default, null))))) : /* @__PURE__ */ import_react26.default.createElement(import_material18.Box, { sx: { width: "100%", background: "white" } }, /* @__PURE__ */ import_react26.default.createElement(
2724
2723
  import_StaticDatePicker.StaticDatePicker,
2725
2724
  {
2726
2725
  orientation: "landscape",
@@ -2730,18 +2729,18 @@ var SCCalendarSwipeable = ({
2730
2729
  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" } },
2731
2730
  onChange: (newValue) => setFecha(newValue)
2732
2731
  }
2733
- ), /* @__PURE__ */ import_react26.default.createElement(import_Grid26.default, { container: true, justifyContent: "center" }, /* @__PURE__ */ import_react26.default.createElement(import_material18.IconButton, { "data-testid": "close-calendar-button", onClick: toggleCalendar(false) }, /* @__PURE__ */ import_react26.default.createElement(import_KeyboardDoubleArrowUp.default, null))))));
2732
+ ), /* @__PURE__ */ import_react26.default.createElement(import_Grid5.default, { container: true, justifyContent: "center" }, /* @__PURE__ */ import_react26.default.createElement(import_material18.IconButton, { "data-testid": "close-calendar-button", onClick: toggleCalendar(false) }, /* @__PURE__ */ import_react26.default.createElement(import_KeyboardDoubleArrowUp.default, null))))));
2734
2733
  };
2735
2734
 
2736
2735
  // src/Components/SCDataGrid.tsx
2737
2736
  var import_react27 = __toESM(require("react"), 1);
2738
2737
  var import_x_data_grid_pro = require("@mui/x-data-grid-pro");
2739
- var import_x_license_pro2 = require("@mui/x-license-pro");
2738
+ var import_x_license2 = require("@mui/x-license");
2740
2739
  var import_KeyboardArrowDown = __toESM(require("@mui/icons-material/KeyboardArrowDown"), 1);
2741
2740
  var import_KeyboardArrowUp = __toESM(require("@mui/icons-material/KeyboardArrowUp"), 1);
2742
2741
  var import_styles = require("@mui/material/styles");
2743
2742
  function SCDataGridInitial({ data, columns, groupColumns, rowsTable, checkboxSelection, width, maxHeight, density }) {
2744
- import_x_license_pro2.LicenseInfo.setLicenseKey(
2743
+ import_x_license2.LicenseInfo.setLicenseKey(
2745
2744
  "77d49a57fbc5f4af35ddb05c5f1742e0Tz0xMTI3MjgsRT0xNzc4MzcxMTk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
2746
2745
  );
2747
2746
  const theme = (0, import_styles.useTheme)();
@@ -3128,10 +3127,10 @@ var EmptyState = ({
3128
3127
  // src/Components/SCDialog.tsx
3129
3128
  var import_react33 = __toESM(require("react"), 1);
3130
3129
  var import_material20 = require("@mui/material");
3131
- var import_Grid27 = __toESM(require("@mui/material/Grid2"), 1);
3130
+ var import_Grid6 = __toESM(require("@mui/material/Grid"), 1);
3132
3131
  var import_Close2 = __toESM(require("@mui/icons-material/Close"), 1);
3133
3132
  var Muicon5 = __toESM(require("@mui/icons-material"), 1);
3134
- var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, disableClose, dividers, widthContent, heightContent, background, setShow, show }) => {
3133
+ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, disableClose, dividers, widthContent, heightContent, background, typeView = "web", setShow, show }) => {
3135
3134
  let i = 0;
3136
3135
  let iconTitleValidation = "";
3137
3136
  let IconTitle;
@@ -3151,22 +3150,24 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
3151
3150
  ButtonIcon = Muicon5[buttonDialog == null ? void 0 : buttonDialog.icon];
3152
3151
  }
3153
3152
  }
3154
- actions == null ? void 0 : actions.map(function(option, index, array) {
3155
- if (option == null ? void 0 : option.icon) {
3156
- if ((option == null ? void 0 : option.icon.type) == void 0) {
3157
- option.icon = Muicon5[option == null ? void 0 : option.icon];
3158
- } else {
3159
- option;
3153
+ if (Array.isArray(actions)) {
3154
+ actions.map(function(option, index, array) {
3155
+ if (option == null ? void 0 : option.icon) {
3156
+ if ((option == null ? void 0 : option.icon.type) == void 0) {
3157
+ option.icon = Muicon5[option == null ? void 0 : option.icon];
3158
+ } else {
3159
+ option;
3160
+ }
3160
3161
  }
3161
- }
3162
- });
3162
+ });
3163
+ }
3163
3164
  if (iconTitle) {
3164
3165
  if (Muicon5[iconTitle] == void 0) {
3165
- if (iconTitle && import_react33.default.isValidElement(iconTitle) && iconTitle.type == void 0) {
3166
- iconTitleValidation = "image";
3167
- IconTitle = iconTitle;
3168
- } else {
3166
+ if (Muicon5[iconTitle]) {
3169
3167
  iconTitleValidation = "icon";
3168
+ IconTitle = Muicon5[iconTitle];
3169
+ } else {
3170
+ iconTitleValidation = "image";
3170
3171
  IconTitle = iconTitle;
3171
3172
  }
3172
3173
  } else {
@@ -3186,11 +3187,12 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
3186
3187
  setShow(false);
3187
3188
  }
3188
3189
  };
3189
- const dialogActions = actions != null ? actions : [{ text: "Cerrar", fn: handleClose }];
3190
+ const dialogActions = actions == false ? false : actions != void 0 ? actions : [{ text: "Cerrar", fn: handleClose }];
3190
3191
  content = content != null ? content : { component: /* @__PURE__ */ import_react33.default.createElement(import_material20.Box, null, " Aqui va el contenido ") };
3191
3192
  return /* @__PURE__ */ import_react33.default.createElement("div", null, buttonDialog ? /* @__PURE__ */ import_react33.default.createElement(import_react33.default.Fragment, null, buttonDialog.text != void 0 ? /* @__PURE__ */ import_react33.default.createElement(import_material20.Tooltip, { placement: "bottom-start", title: buttonDialog.tooltip != void 0 ? buttonDialog.tooltip : "", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ import_react33.default.createElement(import_material20.Button, { 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__ */ import_react33.default.createElement(ButtonIcon, null) : "" : "", endIcon: (buttonDialog == null ? void 0 : buttonDialog.iconPosition) != void 0 ? (buttonDialog == null ? void 0 : buttonDialog.iconPosition) == "right" ? /* @__PURE__ */ import_react33.default.createElement(ButtonIcon, null) : "" : "", onClick: handleOpen }, " ", (buttonDialog == null ? void 0 : buttonDialog.text) != void 0 ? buttonDialog.text : "", " ")) : /* @__PURE__ */ import_react33.default.createElement(import_material20.IconButton, { style: { cursor: "pointer" }, onClick: handleOpen }, /* @__PURE__ */ import_react33.default.createElement(import_material20.SvgIcon, { fontSize: "small", color: (buttonDialog == null ? void 0 : buttonDialog.color) != void 0 ? buttonDialog == null ? void 0 : buttonDialog.color : "action", component: ButtonIcon }))) : "", /* @__PURE__ */ import_react33.default.createElement(import_material20.Modal, { open: open || false, onClose: handleClose }, /* @__PURE__ */ import_react33.default.createElement(
3192
3193
  import_material20.Dialog,
3193
3194
  {
3195
+ fullScreen: typeView === "mobile" ? true : false,
3194
3196
  "data-testid": "dialog-element",
3195
3197
  open: open || false,
3196
3198
  onClose: disableClose ? void 0 : handleClose,
@@ -3202,7 +3204,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
3202
3204
  }
3203
3205
  }
3204
3206
  },
3205
- title && /* @__PURE__ */ import_react33.default.createElement(import_material20.DialogTitle, { sx: { m: 0, padding: "8px 16px 8px 16px" }, "data-testid": "dialog-icon-title" }, /* @__PURE__ */ import_react33.default.createElement(import_Grid27.default, { container: true, size: 12, sx: { justifyContent: "space-between", flexWrap: "nowrap" } }, /* @__PURE__ */ import_react33.default.createElement(import_Grid27.default, { container: true, size: 11, sx: { alignItems: "center" } }, iconTitle ? iconTitleValidation == "image" ? /* @__PURE__ */ import_react33.default.createElement(import_material20.Box, { sx: { marginRight: "16px", width: "44px", height: "44px", borderRadius: "1px" } }, /* @__PURE__ */ import_react33.default.createElement("img", { src: IconTitle, width: "44px", height: "44px" })) : /* @__PURE__ */ import_react33.default.createElement(import_material20.SvgIcon, { color: "action", fontSize: "small", component: IconTitle, sx: { marginRight: "16px" } }) : "", /* @__PURE__ */ import_react33.default.createElement(import_Grid27.default, null, /* @__PURE__ */ import_react33.default.createElement(import_material20.Typography, { color: "text.primary", variant: "h6", gutterBottom: true }, title ? title : ""), /* @__PURE__ */ import_react33.default.createElement(import_material20.Typography, { color: "text.secondary", variant: "body2", gutterBottom: true }, subtitle ? subtitle : ""))), disableClose != true ? /* @__PURE__ */ import_react33.default.createElement(import_material20.IconButton, { "data-testid": "close-dialog-button", onClick: handleClose, size: "small", color: "default", sx: { height: 22, width: 22 } }, /* @__PURE__ */ import_react33.default.createElement(import_Close2.default, null)) : "")),
3207
+ title && /* @__PURE__ */ import_react33.default.createElement(import_material20.DialogTitle, { sx: { m: 0, padding: "8px 16px 8px 16px" }, "data-testid": "dialog-icon-title" }, /* @__PURE__ */ import_react33.default.createElement(import_Grid6.default, { container: true, size: 12, sx: { justifyContent: "space-between", flexWrap: "nowrap" } }, /* @__PURE__ */ import_react33.default.createElement(import_Grid6.default, { container: true, size: 11, sx: { alignItems: "center" } }, iconTitle ? iconTitleValidation == "image" ? /* @__PURE__ */ import_react33.default.createElement(import_material20.Box, { sx: { marginRight: "16px", width: "44px", height: "44px", borderRadius: "1px" } }, /* @__PURE__ */ import_react33.default.createElement("img", { src: IconTitle, width: "44px", height: "44px" })) : /* @__PURE__ */ import_react33.default.createElement(import_material20.SvgIcon, { color: "action", fontSize: "small", component: IconTitle, sx: { marginRight: "16px" } }) : "", /* @__PURE__ */ import_react33.default.createElement(import_Grid6.default, null, /* @__PURE__ */ import_react33.default.createElement(import_material20.Typography, { color: "text.primary", variant: "h6", gutterBottom: true }, title ? title : ""), /* @__PURE__ */ import_react33.default.createElement(import_material20.Typography, { color: "text.secondary", variant: "body2", gutterBottom: true }, subtitle ? subtitle : ""))), disableClose != true ? /* @__PURE__ */ import_react33.default.createElement(import_material20.IconButton, { "data-testid": "close-dialog-button", onClick: handleClose, size: "small", color: "default", sx: { height: 22, width: 22 } }, /* @__PURE__ */ import_react33.default.createElement(import_Close2.default, { color: "action" })) : "")),
3206
3208
  /* @__PURE__ */ import_react33.default.createElement(
3207
3209
  import_material20.DialogContent,
3208
3210
  {
@@ -3213,7 +3215,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
3213
3215
  padding: "12px 16px 8px 16px",
3214
3216
  background: background ? background : "white",
3215
3217
  height: !heightContent ? { xs: "60vh", sm: "70vh", md: "508px" } : heightContent,
3216
- width: () => {
3218
+ width: (() => {
3217
3219
  switch (widthContent) {
3218
3220
  case "extra-small":
3219
3221
  return { xs: "48vw", md: "33vw" };
@@ -3228,7 +3230,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
3228
3230
  default:
3229
3231
  return { xs: "64vw", md: "56vw" };
3230
3232
  }
3231
- }
3233
+ })
3232
3234
  }
3233
3235
  },
3234
3236
  content.url ? /* @__PURE__ */ import_react33.default.createElement(
@@ -3241,7 +3243,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
3241
3243
  }
3242
3244
  ) : content.component
3243
3245
  ),
3244
- dialogActions.length > 0 ? /* @__PURE__ */ import_react33.default.createElement(import_material20.DialogActions, { sx: { gap: 1, m: 0, padding: "12px 16px 12px 16px", justifyContent: dialogActions.length >= 3 ? "space-between" : "flex-end" } }, dialogActions.length >= 3 ? /* @__PURE__ */ import_react33.default.createElement(import_react33.default.Fragment, null, /* @__PURE__ */ import_react33.default.createElement(
3246
+ dialogActions != void 0 && dialogActions != false ? Array.isArray(dialogActions) && (dialogActions == null ? void 0 : dialogActions.length) > 0 ? /* @__PURE__ */ import_react33.default.createElement(import_material20.DialogActions, { sx: { gap: 1, m: 0, padding: "12px 16px 12px 16px", justifyContent: dialogActions.length >= 3 ? "space-between" : "flex-end" } }, dialogActions.length >= 3 ? /* @__PURE__ */ import_react33.default.createElement(import_react33.default.Fragment, null, /* @__PURE__ */ import_react33.default.createElement(
3245
3247
  import_material20.Button,
3246
3248
  {
3247
3249
  variant: "text",
@@ -3280,14 +3282,14 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
3280
3282
  },
3281
3283
  boton.text
3282
3284
  );
3283
- })) : ""
3285
+ })) : "" : ""
3284
3286
  )));
3285
3287
  };
3286
3288
 
3287
3289
  // src/Components/SCListContent.tsx
3288
3290
  var import_react34 = __toESM(require("react"), 1);
3289
3291
  var import_material21 = require("@mui/material");
3290
- var import_Grid28 = __toESM(require("@mui/material/Grid2"), 1);
3292
+ var import_Grid7 = __toESM(require("@mui/material/Grid"), 1);
3291
3293
  var Muicon6 = __toESM(require("@mui/icons-material"), 1);
3292
3294
  var SCListContent = ({ options }) => {
3293
3295
  const [selectedIndex, setSelectedIndex] = import_react34.default.useState("1");
@@ -3319,7 +3321,7 @@ var SCListContent = ({ options }) => {
3319
3321
  import_material21.ListItemText,
3320
3322
  {
3321
3323
  primary: option.title,
3322
- secondary: /* @__PURE__ */ import_react34.default.createElement(import_Grid28.default, { gap: 0.5 }, /* @__PURE__ */ import_react34.default.createElement(import_Grid28.default, { container: true, gap: 0.5 }, option.subtitle), /* @__PURE__ */ import_react34.default.createElement(import_Grid28.default, { container: true, gap: 0.5 }, option.description))
3324
+ secondary: /* @__PURE__ */ import_react34.default.createElement(import_Grid7.default, { gap: 0.5 }, /* @__PURE__ */ import_react34.default.createElement(import_Grid7.default, { container: true, gap: 0.5 }, option.subtitle), /* @__PURE__ */ import_react34.default.createElement(import_Grid7.default, { container: true, gap: 0.5 }, option.description))
3323
3325
  }
3324
3326
  ),
3325
3327
  option.iconRight ? /* @__PURE__ */ import_react34.default.createElement(import_material21.ListItemIcon, { sx: { minWidth: "0px !important" } }, /* @__PURE__ */ import_react34.default.createElement(import_material21.SvgIcon, { fontSize: "small", color: option.iconRightColor || "action", component: option.iconRight })) : ""
@@ -3329,7 +3331,7 @@ var SCListContent = ({ options }) => {
3329
3331
  // src/Components/SCMenu.tsx
3330
3332
  var import_react36 = __toESM(require("react"), 1);
3331
3333
  var import_material22 = require("@mui/material");
3332
- var import_Grid29 = __toESM(require("@mui/material/Grid2"), 1);
3334
+ var import_Grid8 = __toESM(require("@mui/material/Grid"), 1);
3333
3335
 
3334
3336
  // src/Components/Hooks/useWindowDimensions.ts
3335
3337
  var import_react35 = require("react");
@@ -3395,7 +3397,7 @@ var SCMenu = ({ header, options, defaultOption, disable, widthMenu, heightMenu,
3395
3397
  setValue(String(index + 1));
3396
3398
  }
3397
3399
  };
3398
- return /* @__PURE__ */ import_react36.default.createElement(import_react36.default.Fragment, null, /* @__PURE__ */ import_react36.default.createElement(import_Grid29.default, { container: true, sx: { height: heightContainer, width: widthContainer, flexDirection: "column" } }, /* @__PURE__ */ import_react36.default.createElement(import_material22.Paper, { "data-testid": "menu-content", sx: { width: menuSize, height: heightContainer, overflow: "auto" } }, header && header.component, /* @__PURE__ */ import_react36.default.createElement(import_material22.MenuList, { sx: { height: options.length * 45, padding: "8px 0px" } }, options.map((option, index) => /* @__PURE__ */ import_react36.default.createElement(import_react36.default.Fragment, null, /* @__PURE__ */ import_react36.default.createElement(
3400
+ return /* @__PURE__ */ import_react36.default.createElement(import_react36.default.Fragment, null, /* @__PURE__ */ import_react36.default.createElement(import_Grid8.default, { container: true, sx: { height: heightContainer, width: widthContainer, flexDirection: "column" } }, /* @__PURE__ */ import_react36.default.createElement(import_material22.Paper, { "data-testid": "menu-content", sx: { width: menuSize, height: heightContainer, overflow: "auto" } }, header && header.component, /* @__PURE__ */ import_react36.default.createElement(import_material22.MenuList, { sx: { height: options.length * 45, padding: "8px 0px" } }, options.map((option, index) => /* @__PURE__ */ import_react36.default.createElement(import_react36.default.Fragment, null, /* @__PURE__ */ import_react36.default.createElement(
3399
3401
  import_material22.MenuItem,
3400
3402
  {
3401
3403
  disabled: disable == true ? true : false,
@@ -3404,8 +3406,8 @@ var SCMenu = ({ header, options, defaultOption, disable, widthMenu, heightMenu,
3404
3406
  onClick: (event2) => handleClickMenusItem(event2, index)
3405
3407
  },
3406
3408
  option.iconLeft ? /* @__PURE__ */ import_react36.default.createElement(import_material22.ListItemIcon, { sx: { color: String(index + 1) === selectedIndex ? "primary" : "active" } }, /* @__PURE__ */ import_react36.default.createElement(import_material22.SvgIcon, { fontSize: "small", color: String(index + 1) === selectedIndex ? "primary" : "action", component: option.iconLeft })) : "",
3407
- /* @__PURE__ */ import_react36.default.createElement(import_Grid29.default, { container: true, size: 12, sx: { maxWidth: 220, flexWrap: "noWrap", alignItems: "center" } }, /* @__PURE__ */ import_react36.default.createElement(import_material22.Typography, { noWrap: true, variant: "caption", color: String(index + 1) === selectedIndex ? "primary" : "active" }, option.name), option.iconRight ? /* @__PURE__ */ import_react36.default.createElement(import_material22.ListItemIcon, { sx: { minWidth: "0px !important", color: String(index + 1) === selectedIndex ? "primary" : "active" } }, /* @__PURE__ */ import_react36.default.createElement(import_material22.SvgIcon, { fontSize: "small", color: String(index + 1) === selectedIndex ? "primary" : "action", component: option.iconRight })) : "")
3408
- ), option.divider == true ? /* @__PURE__ */ import_react36.default.createElement(import_material22.Divider, null) : "")))), /* @__PURE__ */ import_react36.default.createElement(import_Grid29.default, { container: true }, options.map((option, index) => option.page ? String(index + 1) == value ? /* @__PURE__ */ import_react36.default.createElement(import_material22.Box, { "data-testid": "menu-page-content", sx: { padding: "16px", width: pageSize, height: heightContainer }, key: index }, option.page) : "" : /* @__PURE__ */ import_react36.default.createElement(import_material22.Typography, { color: "error" }, "No se ha configurado el componente a visualizar")))));
3409
+ /* @__PURE__ */ import_react36.default.createElement(import_Grid8.default, { container: true, size: 12, sx: { maxWidth: 220, flexWrap: "noWrap", alignItems: "center" } }, /* @__PURE__ */ import_react36.default.createElement(import_material22.Typography, { noWrap: true, variant: "caption", color: String(index + 1) === selectedIndex ? "primary" : "active" }, option.name), option.iconRight ? /* @__PURE__ */ import_react36.default.createElement(import_material22.ListItemIcon, { sx: { minWidth: "0px !important", color: String(index + 1) === selectedIndex ? "primary" : "active" } }, /* @__PURE__ */ import_react36.default.createElement(import_material22.SvgIcon, { fontSize: "small", color: String(index + 1) === selectedIndex ? "primary" : "action", component: option.iconRight })) : "")
3410
+ ), option.divider == true ? /* @__PURE__ */ import_react36.default.createElement(import_material22.Divider, null) : "")))), /* @__PURE__ */ import_react36.default.createElement(import_Grid8.default, { container: true }, options.map((option, index) => option.page ? String(index + 1) == value ? /* @__PURE__ */ import_react36.default.createElement(import_material22.Box, { "data-testid": "menu-page-content", sx: { padding: "16px", width: pageSize, height: heightContainer }, key: index }, option.page) : "" : /* @__PURE__ */ import_react36.default.createElement(import_material22.Typography, { color: "error" }, "No se ha configurado el componente a visualizar")))));
3409
3411
  };
3410
3412
 
3411
3413
  // src/Components/Menu/Menu.tsx
@@ -3861,7 +3863,7 @@ var CALENDAR_CONSTANTS = {
3861
3863
  GRID_TEMPLATE: "repeat(7, minmax(150px, 1fr))",
3862
3864
  DAY_HEIGHT: 60,
3863
3865
  SIDEBAR_WIDTH: 47,
3864
- MIN_CELL_HEIGHT: 120,
3866
+ MIN_CELL_HEIGHT: 99,
3865
3867
  DEFAULT_START_HOUR: 0,
3866
3868
  DEFAULT_END_HOUR: 23,
3867
3869
  DRAWER_WIDTH: "350px",
@@ -3925,6 +3927,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3925
3927
  return /* @__PURE__ */ import_react43.default.createElement(import_material28.Box, { width: "100%", sx: { overflowX: "auto" } }, /* @__PURE__ */ import_react43.default.createElement(import_material28.Box, { minWidth: CALENDAR_CONSTANTS.MIN_WIDTH }, /* @__PURE__ */ import_react43.default.createElement(import_material28.Box, { display: "grid", gridTemplateColumns: CALENDAR_CONSTANTS.GRID_TEMPLATE, gap: 0.5, mb: 1 }, weekDays.map((day) => /* @__PURE__ */ import_react43.default.createElement(import_material28.Box, { key: day.day(), textAlign: "center", py: 0.5 }, /* @__PURE__ */ import_react43.default.createElement(import_material28.Typography, { variant: "caption", color: "text.secondary" }, day.format("dddd"))))), isLoading ? /* @__PURE__ */ import_react43.default.createElement(import_material28.Box, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: CALENDAR_CONSTANTS.LOADING_CONTAINER_HEIGHT }, /* @__PURE__ */ import_react43.default.createElement(import_material28.CircularProgress, { sx: { width: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE, height: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE }, variant: "indeterminate" })) : !isLoading && noEvents ? /* @__PURE__ */ import_react43.default.createElement(
3926
3928
  EmptyState,
3927
3929
  {
3930
+ containerHeight: "480px",
3928
3931
  title: "Inicia la gesti\xF3n de las actividades",
3929
3932
  subtitle: "Selecciona un mec\xE1nico y as\xEDgnale las actividades a realizar.",
3930
3933
  icon: /* @__PURE__ */ import_react43.default.createElement(LogoCalendario, null)
@@ -4091,6 +4094,7 @@ var WeekView = ({
4091
4094
  })), isLoading ? /* @__PURE__ */ import_react44.default.createElement(import_material29.Box, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "450px" }, /* @__PURE__ */ import_react44.default.createElement(import_material29.CircularProgress, { sx: { width: "60px", height: "60px" }, variant: "indeterminate" })) : !isLoading && noEvents ? /* @__PURE__ */ import_react44.default.createElement(
4092
4095
  EmptyState,
4093
4096
  {
4097
+ containerHeight: "480px",
4094
4098
  title: "Inicia la gesti\xF3n de las actividades",
4095
4099
  subtitle: "Selecciona un mec\xE1nico y as\xEDgnale las actividades a realizar.",
4096
4100
  icon: /* @__PURE__ */ import_react44.default.createElement(LogoCalendario, null)
@@ -4187,6 +4191,7 @@ var DayView = ({
4187
4191
  return /* @__PURE__ */ import_react45.default.createElement(import_material30.Box, { display: "flex", flexDirection: "column", height: "100%" }, /* @__PURE__ */ import_react45.default.createElement(import_material30.Box, { display: "flex", borderBottom: "1px solid", borderColor: "primary.main", bgcolor: "background.paper" }, /* @__PURE__ */ import_react45.default.createElement(import_material30.Box, { width: CALENDAR_CONSTANTS.SIDEBAR_WIDTH, bgcolor: "background.default", borderBottom: "1px solid", borderColor: "transparent" }), /* @__PURE__ */ import_react45.default.createElement(import_material30.Box, { flex: 1, display: "flex", flexDirection: "column", textAlign: "start", gap: 0.5, py: 1, bgcolor: "primary.50" }, /* @__PURE__ */ import_react45.default.createElement(import_material30.Typography, { variant: "h6", color: "text.secondary" }, currentDate.format("D")), /* @__PURE__ */ import_react45.default.createElement(import_material30.Typography, { variant: "caption", color: "text.secondary" }, currentDate.format("dddd")))), isLoading ? /* @__PURE__ */ import_react45.default.createElement(import_material30.Box, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: CALENDAR_CONSTANTS.LOADING_CONTAINER_HEIGHT }, /* @__PURE__ */ import_react45.default.createElement(import_material30.CircularProgress, { sx: { width: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE, height: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE }, variant: "indeterminate" })) : noEvents ? /* @__PURE__ */ import_react45.default.createElement(
4188
4192
  EmptyState,
4189
4193
  {
4194
+ containerHeight: "480px",
4190
4195
  title: "Inicia la gesti\xF3n de las actividades",
4191
4196
  subtitle: "Selecciona un mec\xE1nico y as\xEDgnale las actividades a realizar.",
4192
4197
  icon: /* @__PURE__ */ import_react45.default.createElement(LogoCalendario, null)
@@ -4380,7 +4385,7 @@ var import_LocalizationProvider3 = require("@mui/x-date-pickers/LocalizationProv
4380
4385
  var import_AdapterDayjs2 = require("@mui/x-date-pickers/AdapterDayjs");
4381
4386
  var import_dayjs10 = __toESM(require("dayjs"), 1);
4382
4387
  var import_es3 = require("dayjs/locale/es");
4383
- var import_x_license_pro3 = require("@mui/x-license-pro");
4388
+ var import_x_license3 = require("@mui/x-license");
4384
4389
  var import_AccessTime = __toESM(require("@mui/icons-material/AccessTime"), 1);
4385
4390
  var import_TimeField = require("@mui/x-date-pickers/TimeField");
4386
4391
  var import_DigitalClock = require("@mui/x-date-pickers/DigitalClock");
@@ -4393,7 +4398,7 @@ var SCTime = ({
4393
4398
  state,
4394
4399
  setState
4395
4400
  }) => {
4396
- import_x_license_pro3.LicenseInfo.setLicenseKey(
4401
+ import_x_license3.LicenseInfo.setLicenseKey(
4397
4402
  "77d49a57fbc5f4af35ddb05c5f1742e0Tz0xMTI3MjgsRT0xNzc4MzcxMTk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
4398
4403
  );
4399
4404
  const isTimeEmpty = required && !state;
@@ -4601,7 +4606,7 @@ var SCCard = ({ title, image, iconTitle, actionsTitle, subtitle, content, action
4601
4606
  // src/Components/SCActivityCalendar.tsx
4602
4607
  var import_react50 = __toESM(require("react"), 1);
4603
4608
  var import_material34 = require("@mui/material");
4604
- var import_Grid210 = __toESM(require("@mui/material/Grid2"), 1);
4609
+ var import_Grid9 = __toESM(require("@mui/material/Grid"), 1);
4605
4610
  var import_AdapterDateFns2 = require("@mui/x-date-pickers/AdapterDateFns");
4606
4611
  var import_LocalizationProvider4 = require("@mui/x-date-pickers/LocalizationProvider");
4607
4612
  var import_StaticDatePicker2 = require("@mui/x-date-pickers/StaticDatePicker");
@@ -4654,7 +4659,7 @@ var SCActivityCalendar = ({
4654
4659
  // 0 para domingo, 1 para lunes, etc.
4655
4660
  }
4656
4661
  });
4657
- return /* @__PURE__ */ import_react50.default.createElement(import_react50.default.Fragment, null, /* @__PURE__ */ import_react50.default.createElement(import_LocalizationProvider4.LocalizationProvider, { dateAdapter: import_AdapterDateFns2.AdapterDateFns, adapterLocale: import_locale2.es }, openCalendar == false ? /* @__PURE__ */ import_react50.default.createElement(import_material34.Box, { "data-testid": "calendar-mobile", sx: { width: "100%", background: background ? background : "white", display: "flex", flexDirection: "column", alignItems: "center" } }, /* @__PURE__ */ import_react50.default.createElement(import_material34.Box, { sx: { width: "100%", maxWidth: "320px", background: "transparent" } }, /* @__PURE__ */ import_react50.default.createElement(import_Grid210.default, { container: true, gap: 0.5, sx: { justifyContent: "space-between", padding: "12px 0px", background: "transparent" } }, diasSemana.map((dia) => /* @__PURE__ */ import_react50.default.createElement(import_Grid210.default, { sx: { width: "36px" }, key: dia.toString() }, /* @__PURE__ */ import_react50.default.createElement(import_material34.Box, { sx: { width: "36px", height: "40px", display: "flex", alignItems: "center", justifyContent: "center" } }, /* @__PURE__ */ import_react50.default.createElement(import_material34.Typography, { sx: { fontSize: "12px !important", color: "#10184099" } }, (0, import_date_fns2.format)(dia, "EEEE", { locale: import_locale2.es }).charAt(0).toUpperCase())), /* @__PURE__ */ import_react50.default.createElement(
4662
+ return /* @__PURE__ */ import_react50.default.createElement(import_react50.default.Fragment, null, /* @__PURE__ */ import_react50.default.createElement(import_LocalizationProvider4.LocalizationProvider, { dateAdapter: import_AdapterDateFns2.AdapterDateFns, adapterLocale: import_locale2.es }, openCalendar == false ? /* @__PURE__ */ import_react50.default.createElement(import_material34.Box, { "data-testid": "calendar-mobile", sx: { width: "100%", background: background ? background : "white", display: "flex", flexDirection: "column", alignItems: "center" } }, /* @__PURE__ */ import_react50.default.createElement(import_material34.Box, { sx: { width: "100%", maxWidth: "320px", background: "transparent" } }, /* @__PURE__ */ import_react50.default.createElement(import_Grid9.default, { container: true, gap: 0.5, sx: { justifyContent: "space-between", padding: "12px 0px", background: "transparent" } }, diasSemana.map((dia) => /* @__PURE__ */ import_react50.default.createElement(import_Grid9.default, { sx: { width: "36px" }, key: dia.toString() }, /* @__PURE__ */ import_react50.default.createElement(import_material34.Box, { sx: { width: "36px", height: "40px", display: "flex", alignItems: "center", justifyContent: "center" } }, /* @__PURE__ */ import_react50.default.createElement(import_material34.Typography, { sx: { fontSize: "12px !important", color: "#10184099" } }, (0, import_date_fns2.format)(dia, "EEEE", { locale: import_locale2.es }).charAt(0).toUpperCase())), /* @__PURE__ */ import_react50.default.createElement(
4658
4663
  import_material34.Box,
4659
4664
  {
4660
4665
  onClick: () => setFecha(dia),
@@ -4671,7 +4676,7 @@ var SCActivityCalendar = ({
4671
4676
  }
4672
4677
  },
4673
4678
  /* @__PURE__ */ import_react50.default.createElement(import_material34.Typography, { sx: { fontSize: "12px !important", color: (0, import_date_fns2.isSameDay)(dia, fecha) ? "white" : "#101840DE" } }, (0, import_date_fns2.format)(dia, "d"))
4674
- )))), /* @__PURE__ */ import_react50.default.createElement(import_Grid210.default, { container: true, justifyContent: "center" }, /* @__PURE__ */ import_react50.default.createElement(import_material34.IconButton, { "data-testid": "open-calendar-button", onClick: toggleCalendar(true) }, /* @__PURE__ */ import_react50.default.createElement(import_KeyboardDoubleArrowDown2.default, { color: "action" }))))) : /* @__PURE__ */ import_react50.default.createElement(import_material34.Box, { sx: { width: "100%", background: "white" } }, /* @__PURE__ */ import_react50.default.createElement(
4679
+ )))), /* @__PURE__ */ import_react50.default.createElement(import_Grid9.default, { container: true, justifyContent: "center" }, /* @__PURE__ */ import_react50.default.createElement(import_material34.IconButton, { "data-testid": "open-calendar-button", onClick: toggleCalendar(true) }, /* @__PURE__ */ import_react50.default.createElement(import_KeyboardDoubleArrowDown2.default, { color: "action" }))))) : /* @__PURE__ */ import_react50.default.createElement(import_material34.Box, { sx: { width: "100%", background: "white" } }, /* @__PURE__ */ import_react50.default.createElement(
4675
4680
  import_StaticDatePicker2.StaticDatePicker,
4676
4681
  {
4677
4682
  orientation: "landscape",
@@ -4681,12 +4686,12 @@ var SCActivityCalendar = ({
4681
4686
  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" } },
4682
4687
  onChange: (newValue) => setFecha(newValue)
4683
4688
  }
4684
- ), /* @__PURE__ */ import_react50.default.createElement(import_Grid210.default, { container: true, justifyContent: "center" }, /* @__PURE__ */ import_react50.default.createElement(import_material34.IconButton, { "data-testid": "close-calendar-button", onClick: toggleCalendar(false) }, /* @__PURE__ */ import_react50.default.createElement(import_KeyboardDoubleArrowUp2.default, { color: "action" }))))), /* @__PURE__ */ import_react50.default.createElement(import_material34.Box, { 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__ */ import_react50.default.createElement(
4689
+ ), /* @__PURE__ */ import_react50.default.createElement(import_Grid9.default, { container: true, justifyContent: "center" }, /* @__PURE__ */ import_react50.default.createElement(import_material34.IconButton, { "data-testid": "close-calendar-button", onClick: toggleCalendar(false) }, /* @__PURE__ */ import_react50.default.createElement(import_KeyboardDoubleArrowUp2.default, { color: "action" }))))), /* @__PURE__ */ import_react50.default.createElement(import_material34.Box, { 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__ */ import_react50.default.createElement(
4685
4690
  import_material34.Box,
4686
4691
  {
4687
4692
  key: dayIndex
4688
4693
  },
4689
- /* @__PURE__ */ import_react50.default.createElement(import_Grid210.default, { container: true }, /* @__PURE__ */ import_react50.default.createElement(import_material34.Typography, { variant: "subtitle1", sx: { color: (0, import_date_fns2.isSameDay)(day, fecha) ? "info.dark" : "text.secondary" } }, day.toLocaleDateString("es-ES", {
4694
+ /* @__PURE__ */ import_react50.default.createElement(import_Grid9.default, { container: true }, /* @__PURE__ */ import_react50.default.createElement(import_material34.Typography, { variant: "subtitle1", sx: { color: (0, import_date_fns2.isSameDay)(day, fecha) ? "info.dark" : "text.secondary" } }, day.toLocaleDateString("es-ES", {
4690
4695
  day: "numeric"
4691
4696
  }), " de ", day.toLocaleDateString("es-ES", {
4692
4697
  month: "short"