componentes-exagono 0.1.64 → 0.1.65

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.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as re from "react";
2
2
  import E, { forwardRef as ea, useContext as Ci, useState as Se, useLayoutEffect as bc, cloneElement as Jd, createRef as ln, Component as Pt, useRef as Zr, useCallback as Xa, useEffect as Ct, createElement as Ja, createContext as xc, useMemo as Je } from "react";
3
- import { IconButton as Mt, CircularProgress as ef, List as Bo, ListItem as Vo, ListItemText as ki, Checkbox as Wo, Modal as wc, Box as Q, Typography as Ee, Grid as ze, TextField as Bt, Divider as nn, Autocomplete as ya, InputAdornment as Vs, FormControlLabel as An, Button as Rt, ListItemButton as tf, Collapse as Rh, useTheme as _c, useMediaQuery as Sc, Dialog as Cc, Stack as pr, Tooltip as $a, Chip as Io, Avatar as Qn, Menu as hl, Fade as ml, RadioGroup as Ws, Radio as Us, InputBase as Oh, Select as rf, MenuItem as Hs, FormControl as nf, FormLabel as Ih, Drawer as Mh, DialogTitle as Ph, DialogContent as jh, DialogActions as Nh } from "@mui/material";
3
+ import { IconButton as Mt, CircularProgress as ef, List as Bo, ListItem as Vo, ListItemText as ki, Checkbox as Wo, Modal as wc, Box as Q, Typography as Ae, Grid as ze, TextField as Bt, Divider as nn, Autocomplete as ya, InputAdornment as Vs, FormControlLabel as An, Button as Rt, ListItemButton as tf, Collapse as Rh, useTheme as _c, useMediaQuery as Sc, Dialog as Cc, Stack as pr, Tooltip as $a, Chip as Io, Avatar as Qn, Menu as hl, Fade as ml, RadioGroup as Ws, Radio as Us, InputBase as Oh, Select as rf, MenuItem as Hs, FormControl as nf, FormLabel as Ih, Drawer as Mh, DialogTitle as Ph, DialogContent as jh, DialogActions as Nh } from "@mui/material";
4
4
  import { isBefore as Yt, isAfter as Cr, isDate as on, getYear as Me, getSeconds as an, getMinutes as Kr, getHours as qr, getMonth as $t, isEqual as $h, parseISO as Fh, toDate as of, isValid as _r, differenceInCalendarDays as ei, min as gl, max as vl, startOfDay as po, endOfDay as ta, parse as Lh, isWithinInterval as Uo, endOfYear as af, startOfYear as kc, endOfMonth as Dc, startOfMonth as Ec, setHours as Fa, setMinutes as La, setSeconds as za, isSameDay as Xn, addMonths as un, subMonths as Rn, setYear as Ar, differenceInDays as zh, addDays as Gr, setMonth as br, subYears as oo, addYears as sn, format as at, isSameYear as Bh, isSameMonth as sf, addWeeks as Ys, subWeeks as yl, subDays as Vh, startOfWeek as cf, differenceInCalendarMonths as ti, subQuarters as lf, differenceInCalendarQuarters as ri, differenceInCalendarYears as ni, addQuarters as uf, getTime as Zs, setQuarter as qn, getQuarter as $o, addMinutes as Ks, endOfWeek as Wh, isSameQuarter as Uh, startOfQuarter as Hh, addHours as qs, addSeconds as Yh, getISOWeek as Zh, getDay as Kh, getDate as bl, isTomorrow as qh, isToday as Gh } from "date-fns";
5
5
  import * as Qh from "react-dom";
6
6
  import Xh from "react-dom";
@@ -322,7 +322,7 @@ function rm() {
322
322
  }
323
323
  return "";
324
324
  }
325
- var Te = Object.prototype.hasOwnProperty, xt = {}, wt = x.ReactDebugCurrentFrame;
325
+ var Ee = Object.prototype.hasOwnProperty, xt = {}, wt = x.ReactDebugCurrentFrame;
326
326
  function ct(C) {
327
327
  if (C) {
328
328
  var Z = C._owner, le = _e(C.type, C._source, Z ? Z.type : null);
@@ -332,7 +332,7 @@ function rm() {
332
332
  }
333
333
  function S(C, Z, le, De, Ve) {
334
334
  {
335
- var Xe = Function.call.bind(Te);
335
+ var Xe = Function.call.bind(Ee);
336
336
  for (var $e in C)
337
337
  if (Xe(C, $e)) {
338
338
  var Pe = void 0;
@@ -380,7 +380,7 @@ function rm() {
380
380
  __source: !0
381
381
  }, P, G;
382
382
  function me(C) {
383
- if (Te.call(C, "ref")) {
383
+ if (Ee.call(C, "ref")) {
384
384
  var Z = Object.getOwnPropertyDescriptor(C, "ref").get;
385
385
  if (Z && Z.isReactWarning)
386
386
  return !1;
@@ -388,7 +388,7 @@ function rm() {
388
388
  return C.ref !== void 0;
389
389
  }
390
390
  function Ye(C) {
391
- if (Te.call(C, "key")) {
391
+ if (Ee.call(C, "key")) {
392
392
  var Z = Object.getOwnPropertyDescriptor(C, "key").get;
393
393
  if (Z && Z.isReactWarning)
394
394
  return !1;
@@ -454,7 +454,7 @@ function rm() {
454
454
  var Xe, $e = {}, Pe = null, zt = null;
455
455
  le !== void 0 && (q(le), Pe = "" + le), Ye(Z) && (q(Z.key), Pe = "" + Z.key), me(Z) && (zt = Z.ref, Tt(Z, Ve));
456
456
  for (Xe in Z)
457
- Te.call(Z, Xe) && !Re.hasOwnProperty(Xe) && ($e[Xe] = Z[Xe]);
457
+ Ee.call(Z, Xe) && !Re.hasOwnProperty(Xe) && ($e[Xe] = Z[Xe]);
458
458
  if (C && C.defaultProps) {
459
459
  var pt = C.defaultProps;
460
460
  for (Xe in pt)
@@ -605,7 +605,7 @@ Check the top-level render call using <` + le + ">.");
605
605
  else
606
606
  N(ar, C);
607
607
  }
608
- if (Te.call(Z, "key")) {
608
+ if (Ee.call(Z, "key")) {
609
609
  var xn = M(C), Ut = Object.keys(Z).filter(function(Ah) {
610
610
  return Ah !== "key";
611
611
  }), us = Ut.length > 0 ? "{key: someKey, " + Ut.join(": ..., ") + ": ...}" : "{key: someKey}";
@@ -9329,7 +9329,7 @@ const l1 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
9329
9329
  /* @__PURE__ */ d.jsx("img", { src: f1 }),
9330
9330
  "Agregar evento"
9331
9331
  ] })
9332
- ] }), m1 = "_sidebarContainer_6hjxl_1", g1 = "_leadsSection_6hjxl_17", v1 = "_leadCard_6hjxl_33", y1 = "_leadIcon_6hjxl_71", b1 = "_leadDays_6hjxl_81", x1 = "_leadCount_6hjxl_91", w1 = "_eventsSection_6hjxl_103", _1 = "_sidebarTitle_6hjxl_125", S1 = "_eventGroup_6hjxl_141", C1 = "_eventGroupDate_6hjxl_149", k1 = "_eventItem_6hjxl_161", D1 = "_eventDetails_6hjxl_193", E1 = "_eventTitle_6hjxl_207", T1 = "_eventTime_6hjxl_229", A1 = "_calendarsSection_6hjxl_251", R1 = "_collapsibleHeader_6hjxl_267", O1 = "_headerTitle_6hjxl_295", I1 = "_calendarCount_6hjxl_309", M1 = "_chevronIcon_6hjxl_327", P1 = "_collapsed_6hjxl_335", j1 = "_collapsibleContent_6hjxl_343", N1 = "_hidden_6hjxl_359", $1 = "_calendarItem_6hjxl_369", F1 = "_circularCheckbox_6hjxl_403", L1 = "_checkedIcon_6hjxl_421", z1 = "_uncheckedIcon_6hjxl_429", B1 = "_calendarIcon_6hjxl_437", V1 = "_googleIcon_6hjxl_445", W1 = "_syncButton_6hjxl_453", U1 = "_eventsContainer_6hjxl_505", H1 = "_calendarsList_6hjxl_579", Y1 = "_calendarItemText_6hjxl_635", Z1 = "_currentUserCalendar_6hjxl_645", Ae = {
9332
+ ] }), m1 = "_sidebarContainer_6hjxl_1", g1 = "_leadsSection_6hjxl_17", v1 = "_leadCard_6hjxl_33", y1 = "_leadIcon_6hjxl_71", b1 = "_leadDays_6hjxl_81", x1 = "_leadCount_6hjxl_91", w1 = "_eventsSection_6hjxl_103", _1 = "_sidebarTitle_6hjxl_125", S1 = "_eventGroup_6hjxl_141", C1 = "_eventGroupDate_6hjxl_149", k1 = "_eventItem_6hjxl_161", D1 = "_eventDetails_6hjxl_193", E1 = "_eventTitle_6hjxl_207", T1 = "_eventTime_6hjxl_229", A1 = "_calendarsSection_6hjxl_251", R1 = "_collapsibleHeader_6hjxl_267", O1 = "_headerTitle_6hjxl_295", I1 = "_calendarCount_6hjxl_309", M1 = "_chevronIcon_6hjxl_327", P1 = "_collapsed_6hjxl_335", j1 = "_collapsibleContent_6hjxl_343", N1 = "_hidden_6hjxl_359", $1 = "_calendarItem_6hjxl_369", F1 = "_circularCheckbox_6hjxl_403", L1 = "_checkedIcon_6hjxl_421", z1 = "_uncheckedIcon_6hjxl_429", B1 = "_calendarIcon_6hjxl_437", V1 = "_googleIcon_6hjxl_445", W1 = "_syncButton_6hjxl_453", U1 = "_eventsContainer_6hjxl_505", H1 = "_calendarsList_6hjxl_579", Y1 = "_calendarItemText_6hjxl_635", Z1 = "_currentUserCalendar_6hjxl_645", Te = {
9333
9333
  sidebarContainer: m1,
9334
9334
  leadsSection: g1,
9335
9335
  leadCard: v1,
@@ -12053,7 +12053,7 @@ const Bp = xc(void 0), n5 = ({ config: e, children: n }) => (Ct(() => {
12053
12053
  }
12054
12054
  };
12055
12055
  return /* @__PURE__ */ d.jsxs("div", { className: "flex", children: [
12056
- /* @__PURE__ */ d.jsxs("div", { className: Ae.syncButton, onClick: a, children: [
12056
+ /* @__PURE__ */ d.jsxs("div", { className: Te.syncButton, onClick: a, children: [
12057
12057
  /* @__PURE__ */ d.jsx(N2, { style: { fontSize: "18px" } }),
12058
12058
  /* @__PURE__ */ d.jsx("span", { children: "Iniciar Sesión con Google" })
12059
12059
  ] }),
@@ -12102,24 +12102,24 @@ const Bp = xc(void 0), n5 = ({ config: e, children: n }) => (Ct(() => {
12102
12102
  } finally {
12103
12103
  }
12104
12104
  };
12105
- return /* @__PURE__ */ d.jsxs("div", { className: Ae.sidebarContainer, children: [
12106
- /* @__PURE__ */ d.jsxs("div", { className: Ae.leadsSection, children: [
12107
- /* @__PURE__ */ d.jsxs("div", { className: Ae.leadCard, children: [
12108
- /* @__PURE__ */ d.jsx("div", { className: Ae.leadIcon, children: /* @__PURE__ */ d.jsx("img", { src: Wu }) }),
12109
- /* @__PURE__ */ d.jsxs("div", { className: Ae.leadText, children: [
12110
- /* @__PURE__ */ d.jsx("div", { className: Ae.leadDays, children: "+30 días sin atender" }),
12111
- /* @__PURE__ */ d.jsxs("div", { className: Ae.leadCount, children: [
12105
+ return /* @__PURE__ */ d.jsxs("div", { className: Te.sidebarContainer, children: [
12106
+ /* @__PURE__ */ d.jsxs("div", { className: Te.leadsSection, children: [
12107
+ /* @__PURE__ */ d.jsxs("div", { className: Te.leadCard, children: [
12108
+ /* @__PURE__ */ d.jsx("div", { className: Te.leadIcon, children: /* @__PURE__ */ d.jsx("img", { src: Wu }) }),
12109
+ /* @__PURE__ */ d.jsxs("div", { className: Te.leadText, children: [
12110
+ /* @__PURE__ */ d.jsx("div", { className: Te.leadDays, children: "+30 días sin atender" }),
12111
+ /* @__PURE__ */ d.jsxs("div", { className: Te.leadCount, children: [
12112
12112
  r,
12113
12113
  " ",
12114
12114
  /* @__PURE__ */ d.jsx("span", { style: { fontSize: 10, fontWeight: "normal" }, children: "leads" })
12115
12115
  ] })
12116
12116
  ] })
12117
12117
  ] }),
12118
- /* @__PURE__ */ d.jsxs("div", { className: Ae.leadCard, children: [
12119
- /* @__PURE__ */ d.jsx("div", { className: Ae.leadIcon, children: /* @__PURE__ */ d.jsx("img", { src: Wu }) }),
12120
- /* @__PURE__ */ d.jsxs("div", { className: Ae.leadText, children: [
12121
- /* @__PURE__ */ d.jsx("div", { className: Ae.leadDays, children: "+90 días sin atender" }),
12122
- /* @__PURE__ */ d.jsxs("div", { className: Ae.leadCount, children: [
12118
+ /* @__PURE__ */ d.jsxs("div", { className: Te.leadCard, children: [
12119
+ /* @__PURE__ */ d.jsx("div", { className: Te.leadIcon, children: /* @__PURE__ */ d.jsx("img", { src: Wu }) }),
12120
+ /* @__PURE__ */ d.jsxs("div", { className: Te.leadText, children: [
12121
+ /* @__PURE__ */ d.jsx("div", { className: Te.leadDays, children: "+90 días sin atender" }),
12122
+ /* @__PURE__ */ d.jsxs("div", { className: Te.leadCount, children: [
12123
12123
  o,
12124
12124
  " ",
12125
12125
  /* @__PURE__ */ d.jsx("span", { style: { fontSize: 10, fontWeight: "normal" }, children: "leads" })
@@ -12127,10 +12127,10 @@ const Bp = xc(void 0), n5 = ({ config: e, children: n }) => (Ct(() => {
12127
12127
  ] })
12128
12128
  ] })
12129
12129
  ] }),
12130
- /* @__PURE__ */ d.jsxs("div", { className: Ae.eventsSection, children: [
12131
- /* @__PURE__ */ d.jsx("h3", { className: Ae.sidebarTitle, children: "Próximos eventos" }),
12132
- /* @__PURE__ */ d.jsx("div", { className: Ae.eventsContainer, children: Object.entries(u).map(([D, O]) => /* @__PURE__ */ d.jsxs("div", { className: `${Ae.eventGroup}`, children: [
12133
- /* @__PURE__ */ d.jsxs("div", { className: Ae.eventGroupDate, children: [
12130
+ /* @__PURE__ */ d.jsxs("div", { className: Te.eventsSection, children: [
12131
+ /* @__PURE__ */ d.jsx("h3", { className: Te.sidebarTitle, children: "Próximos eventos" }),
12132
+ /* @__PURE__ */ d.jsx("div", { className: Te.eventsContainer, children: Object.entries(u).map(([D, O]) => /* @__PURE__ */ d.jsxs("div", { className: `${Te.eventGroup}`, children: [
12133
+ /* @__PURE__ */ d.jsxs("div", { className: Te.eventGroupDate, children: [
12134
12134
  /* @__PURE__ */ d.jsx("img", { src: P2, width: 15 }),
12135
12135
  " ",
12136
12136
  D
@@ -12140,17 +12140,17 @@ const Bp = xc(void 0), n5 = ({ config: e, children: n }) => (Ct(() => {
12140
12140
  return /* @__PURE__ */ d.jsxs(
12141
12141
  "div",
12142
12142
  {
12143
- className: Ae.eventItem,
12143
+ className: Te.eventItem,
12144
12144
  style: {
12145
12145
  backgroundColor: F,
12146
12146
  borderLeftColor: K
12147
12147
  },
12148
12148
  onClick: () => e(z),
12149
12149
  children: [
12150
- /* @__PURE__ */ d.jsxs("div", { className: Ae.eventDetails, children: [
12151
- /* @__PURE__ */ d.jsx("div", { className: Ae.eventTitle, children: z.titulo.length > 32 ? `${z.titulo.substring(0, 32)}...` : z.titulo }),
12152
- /* @__PURE__ */ d.jsx("div", { className: Ae.eventGroupDate, children: z?.client ? z?.client?.length > 50 ? `${z.client.substring(0, 50)}...` : z.client : "" }),
12153
- /* @__PURE__ */ d.jsx("div", { className: Ae.eventTime, children: `${new Intl.DateTimeFormat("es-ES", { hour: "2-digit", minute: "numeric" }).format(z.fechaInicio)} - ${new Intl.DateTimeFormat("es-ES", { hour: "2-digit", minute: "numeric" }).format(
12150
+ /* @__PURE__ */ d.jsxs("div", { className: Te.eventDetails, children: [
12151
+ /* @__PURE__ */ d.jsx("div", { className: Te.eventTitle, children: z.titulo.length > 32 ? `${z.titulo.substring(0, 32)}...` : z.titulo }),
12152
+ /* @__PURE__ */ d.jsx("div", { className: Te.eventGroupDate, children: z?.client ? z?.client?.length > 50 ? `${z.client.substring(0, 50)}...` : z.client : "" }),
12153
+ /* @__PURE__ */ d.jsx("div", { className: Te.eventTime, children: `${new Intl.DateTimeFormat("es-ES", { hour: "2-digit", minute: "numeric" }).format(z.fechaInicio)} - ${new Intl.DateTimeFormat("es-ES", { hour: "2-digit", minute: "numeric" }).format(
12154
12154
  z.fechaFin
12155
12155
  )}` })
12156
12156
  ] }),
@@ -12173,34 +12173,34 @@ const Bp = xc(void 0), n5 = ({ config: e, children: n }) => (Ct(() => {
12173
12173
  })
12174
12174
  ] }, D)) })
12175
12175
  ] }),
12176
- /* @__PURE__ */ d.jsxs("div", { className: Ae.calendarsSection, children: [
12177
- /* @__PURE__ */ d.jsxs("button", { onClick: g, className: Ae.collapsibleHeader, children: [
12178
- /* @__PURE__ */ d.jsxs("div", { className: Ae.headerTitle, children: [
12176
+ /* @__PURE__ */ d.jsxs("div", { className: Te.calendarsSection, children: [
12177
+ /* @__PURE__ */ d.jsxs("button", { onClick: g, className: Te.collapsibleHeader, children: [
12178
+ /* @__PURE__ */ d.jsxs("div", { className: Te.headerTitle, children: [
12179
12179
  /* @__PURE__ */ d.jsx("span", { style: { fontSize: "14px" }, children: "Calendarios" }),
12180
- /* @__PURE__ */ d.jsx("span", { className: Ae.calendarCount, children: "1" })
12180
+ /* @__PURE__ */ d.jsx("span", { className: Te.calendarCount, children: "1" })
12181
12181
  ] }),
12182
- /* @__PURE__ */ d.jsx(t2, { className: `${Ae.chevronIcon} ${f ? Ae.collapsed : ""}` })
12182
+ /* @__PURE__ */ d.jsx(t2, { className: `${Te.chevronIcon} ${f ? Te.collapsed : ""}` })
12183
12183
  ] }),
12184
- /* @__PURE__ */ d.jsxs("div", { className: `${Ae.collapsibleContent} ${f ? Ae.hidden : ""}`, children: [
12185
- /* @__PURE__ */ d.jsxs("div", { className: Ae.calendarItem, children: [
12186
- /* @__PURE__ */ d.jsx("div", { className: Ae.circularCheckbox, children: /* @__PURE__ */ d.jsx(n2, { size: 16, className: Ae.checkedIcon }) }),
12187
- /* @__PURE__ */ d.jsx(ju, { size: 16, className: Ae.calendarIcon }),
12184
+ /* @__PURE__ */ d.jsxs("div", { className: `${Te.collapsibleContent} ${f ? Te.hidden : ""}`, children: [
12185
+ /* @__PURE__ */ d.jsxs("div", { className: Te.calendarItem, children: [
12186
+ /* @__PURE__ */ d.jsx("div", { className: Te.circularCheckbox, children: /* @__PURE__ */ d.jsx(n2, { size: 16, className: Te.checkedIcon }) }),
12187
+ /* @__PURE__ */ d.jsx(ju, { size: 16, className: Te.calendarIcon }),
12188
12188
  /* @__PURE__ */ d.jsx("span", { style: { fontSize: "14px" }, children: "Mi calendario" })
12189
12189
  ] }),
12190
- /* @__PURE__ */ d.jsxs("div", { className: Ae.calendarItem, onClick: t, children: [
12191
- /* @__PURE__ */ d.jsx("div", { className: Ae.circularCheckbox, children: /* @__PURE__ */ d.jsx(a2, { size: 16, className: Ae.uncheckedIcon }) }),
12192
- /* @__PURE__ */ d.jsx(s2, { size: 16, className: Ae.calendarIcon }),
12190
+ /* @__PURE__ */ d.jsxs("div", { className: Te.calendarItem, onClick: t, children: [
12191
+ /* @__PURE__ */ d.jsx("div", { className: Te.circularCheckbox, children: /* @__PURE__ */ d.jsx(a2, { size: 16, className: Te.uncheckedIcon }) }),
12192
+ /* @__PURE__ */ d.jsx(s2, { size: 16, className: Te.calendarIcon }),
12193
12193
  /* @__PURE__ */ d.jsx("span", { style: { fontSize: "14px" }, children: "Outlook" })
12194
12194
  ] }),
12195
- s?.userEmail ? /* @__PURE__ */ d.jsxs("div", { className: Ae.syncButton, onClick: _, children: [
12196
- /* @__PURE__ */ d.jsx(ju, { size: 16, className: Ae.googleIcon }),
12195
+ s?.userEmail ? /* @__PURE__ */ d.jsxs("div", { className: Te.syncButton, onClick: _, children: [
12196
+ /* @__PURE__ */ d.jsx(ju, { size: 16, className: Te.googleIcon }),
12197
12197
  /* @__PURE__ */ d.jsx("span", { style: { fontSize: "14px" }, children: "Sincronizar Google Calendar" })
12198
12198
  ] }) : /* @__PURE__ */ d.jsx(hw, { disID: a, usrID: i }),
12199
12199
  s?.userEmail && /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
12200
12200
  /* @__PURE__ */ d.jsx("hr", {}),
12201
- /* @__PURE__ */ d.jsx("span", { style: { fontSize: "14px", borderRadius: "solid 1px red" }, className: Ae.currentUserCalendar, children: s?.userEmail }),
12201
+ /* @__PURE__ */ d.jsx("span", { style: { fontSize: "14px", borderRadius: "solid 1px red" }, className: Te.currentUserCalendar, children: s?.userEmail }),
12202
12202
  /* @__PURE__ */ d.jsx("hr", {}),
12203
- y ? /* @__PURE__ */ d.jsx(ef, { size: 24 }) : m.length > 0 ? /* @__PURE__ */ d.jsx(Bo, { dense: !0, className: Ae.calendarsList, children: m.map((D) => /* @__PURE__ */ d.jsx(
12203
+ y ? /* @__PURE__ */ d.jsx(ef, { size: 24 }) : m.length > 0 ? /* @__PURE__ */ d.jsx(Bo, { dense: !0, className: Te.calendarsList, children: m.map((D) => /* @__PURE__ */ d.jsx(
12204
12204
  Vo,
12205
12205
  {
12206
12206
  secondaryAction: /* @__PURE__ */ d.jsx(
@@ -12218,7 +12218,7 @@ const Bp = xc(void 0), n5 = ({ config: e, children: n }) => (Ct(() => {
12218
12218
  }
12219
12219
  ),
12220
12220
  disablePadding: !0,
12221
- children: /* @__PURE__ */ d.jsx(ki, { primary: D.summary.length > 25 ? `${D.summary.substring(0, 25)}...` : D.summary, className: Ae.calendarItemText })
12221
+ children: /* @__PURE__ */ d.jsx(ki, { primary: D.summary.length > 25 ? `${D.summary.substring(0, 25)}...` : D.summary, className: Te.calendarItemText })
12222
12222
  },
12223
12223
  D.id
12224
12224
  )) }) : /* @__PURE__ */ d.jsx("p", { children: "No se encontraron calendarios." })
@@ -13437,7 +13437,7 @@ function a_(e = {}) {
13437
13437
  isSubmitting: !1,
13438
13438
  defaultValues: o
13439
13439
  });
13440
- }, _e = (S, R) => Ce(wr(S) ? S(a) : S, R), Te = (S, R = {}) => {
13440
+ }, _e = (S, R) => Ce(wr(S) ? S(a) : S, R), Ee = (S, R = {}) => {
13441
13441
  const L = ae(r, S), te = L && L._f;
13442
13442
  if (te) {
13443
13443
  const J = te.refs ? te.refs[0] : te.ref;
@@ -13521,7 +13521,7 @@ function a_(e = {}) {
13521
13521
  clearErrors: ie,
13522
13522
  unregister: ue,
13523
13523
  setError: se,
13524
- setFocus: Te,
13524
+ setFocus: Ee,
13525
13525
  getFieldState: U
13526
13526
  };
13527
13527
  return {
@@ -16127,7 +16127,7 @@ const Wd = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, Ud = (e, n) => {
16127
16127
  const T = setTimeout(() => {
16128
16128
  w.getClients(m, c, s, i).then((ne) => {
16129
16129
  if (k(!1), ne) {
16130
- const _e = ne.map((Te) => Te.solID);
16130
+ const _e = ne.map((Ee) => Ee.solID);
16131
16131
  D([...new Set(_e)]);
16132
16132
  } else
16133
16133
  D([]);
@@ -16212,8 +16212,8 @@ const Wd = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, Ud = (e, n) => {
16212
16212
  const T = Oo(U, ie), ne = Oo(se, fe);
16213
16213
  if (!T || !ne || !_r(T) || !_r(ne))
16214
16214
  return;
16215
- const Ce = Xn(T, ne), _e = Ce && (Cr(T, ne) || T.getTime() === ne.getTime()), Te = Yt(ne, T) && !Ce;
16216
- (_e || Te) && ($("horaFin", ""), xe(""));
16215
+ const Ce = Xn(T, ne), _e = Ce && (Cr(T, ne) || T.getTime() === ne.getTime()), Ee = Yt(ne, T) && !Ce;
16216
+ (_e || Ee) && ($("horaFin", ""), xe(""));
16217
16217
  }, [
16218
16218
  ie,
16219
16219
  U
@@ -16229,7 +16229,7 @@ const Wd = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, Ud = (e, n) => {
16229
16229
  }, [ie, U, se]), oe = Je(() => Kn, []);
16230
16230
  return /* @__PURE__ */ d.jsx(wc, { open: e, onClose: n, children: /* @__PURE__ */ d.jsx("form", { onSubmit: he, children: /* @__PURE__ */ d.jsxs(Q, { sx: PD, children: [
16231
16231
  /* @__PURE__ */ d.jsx(Mt, { "aria-label": "close", onClick: n, sx: { position: "absolute", right: 8, top: 12 }, children: /* @__PURE__ */ d.jsx(Pn, {}) }),
16232
- /* @__PURE__ */ d.jsx(Ee, { variant: "h6", mb: 2, children: a ? "Editar evento" : "Agregar evento" }),
16232
+ /* @__PURE__ */ d.jsx(Ae, { variant: "h6", mb: 2, children: a ? "Editar evento" : "Agregar evento" }),
16233
16233
  /* @__PURE__ */ d.jsxs(ze, { container: !0, spacing: 1, marginBottom: l ? 0 : 1, children: [
16234
16234
  /* @__PURE__ */ d.jsx(ze, { size: { xs: 12, md: 12 }, children: /* @__PURE__ */ d.jsx(
16235
16235
  Xt,
@@ -16317,8 +16317,8 @@ const Wd = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, Ud = (e, n) => {
16317
16317
  freeSolo: !0,
16318
16318
  options: oe,
16319
16319
  value: ne || "",
16320
- onChange: (_e, Te) => T(Te || ""),
16321
- onInputChange: (_e, Te) => T(Te),
16320
+ onChange: (_e, Ee) => T(Ee || ""),
16321
+ onInputChange: (_e, Ee) => T(Ee),
16322
16322
  renderInput: (_e) => /* @__PURE__ */ d.jsx(
16323
16323
  Bt,
16324
16324
  {
@@ -16361,8 +16361,8 @@ const Wd = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, Ud = (e, n) => {
16361
16361
  freeSolo: !0,
16362
16362
  options: ye,
16363
16363
  value: ne || "",
16364
- onChange: (_e, Te) => T(Te || ""),
16365
- onInputChange: (_e, Te) => T(Te),
16364
+ onChange: (_e, Ee) => T(Ee || ""),
16365
+ onInputChange: (_e, Ee) => T(Ee),
16366
16366
  renderInput: (_e) => /* @__PURE__ */ d.jsx(
16367
16367
  Bt,
16368
16368
  {
@@ -16583,8 +16583,8 @@ const Wd = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, Ud = (e, n) => {
16583
16583
  textAlign: "center"
16584
16584
  }, LD = ({ isOpen: e, onClose: n, onConfirm: t, title: r, message: o }) => /* @__PURE__ */ d.jsx(wc, { open: e, onClose: n, children: /* @__PURE__ */ d.jsxs(Q, { sx: FD, children: [
16585
16585
  /* @__PURE__ */ d.jsx("img", { src: $D }),
16586
- /* @__PURE__ */ d.jsx(Ee, { variant: "h6", component: "h2", sx: { mt: 1 }, children: r }),
16587
- /* @__PURE__ */ d.jsx(Ee, { sx: { mt: 2 }, children: o }),
16586
+ /* @__PURE__ */ d.jsx(Ae, { variant: "h6", component: "h2", sx: { mt: 1 }, children: r }),
16587
+ /* @__PURE__ */ d.jsx(Ae, { sx: { mt: 2 }, children: o }),
16588
16588
  /* @__PURE__ */ d.jsxs(Q, { sx: { mt: 4, display: "flex", justifyContent: "center", gap: 2 }, children: [
16589
16589
  /* @__PURE__ */ d.jsx(Rt, { variant: "outlined", onClick: n, sx: { textTransform: "none" }, children: "Regresar" }),
16590
16590
  /* @__PURE__ */ d.jsxs(Rt, { variant: "contained", color: "error", onClick: t, sx: { textTransform: "none" }, children: [
@@ -16609,7 +16609,7 @@ const Wd = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, Ud = (e, n) => {
16609
16609
  };
16610
16610
  return /* @__PURE__ */ d.jsx(wc, { open: e, onClose: n, children: /* @__PURE__ */ d.jsxs(Q, { sx: zD, children: [
16611
16611
  /* @__PURE__ */ d.jsxs(Q, { sx: { display: "flex", justifyContent: "space-between", alignItems: "center", mb: 1 }, children: [
16612
- /* @__PURE__ */ d.jsxs(Ee, { sx: { fontSize: "20px" }, component: "h2", children: [
16612
+ /* @__PURE__ */ d.jsxs(Ae, { sx: { fontSize: "20px" }, component: "h2", children: [
16613
16613
  "Eventos del",
16614
16614
  " ",
16615
16615
  r.toLocaleDateString("es-ES", {
@@ -16690,7 +16690,7 @@ const Wd = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, Ud = (e, n) => {
16690
16690
  },
16691
16691
  children: [
16692
16692
  /* @__PURE__ */ d.jsx(Q, { sx: { mr: 1.5 }, children: i.icon }),
16693
- /* @__PURE__ */ d.jsx(Ee, { variant: "body2", sx: { flexGrow: 1 }, children: n }),
16693
+ /* @__PURE__ */ d.jsx(Ae, { variant: "body2", sx: { flexGrow: 1 }, children: n }),
16694
16694
  /* @__PURE__ */ d.jsx(Mt, { size: "small", onClick: () => o(e), children: /* @__PURE__ */ d.jsx(Pn, { fontSize: "small" }) })
16695
16695
  ]
16696
16696
  }
@@ -16761,10 +16761,10 @@ const a5 = ({ userId: e, leads30Days: n, leads90Days: t, disId: r, masNombreBD:
16761
16761
  X.current && clearTimeout(X.current);
16762
16762
  };
16763
16763
  }, [a, e, v]), Ct(() => {
16764
- const T = po(/* @__PURE__ */ new Date()), ne = ta(Gr(T, 6)), Ce = { start: T, end: ne }, _e = s.filter((Te) => {
16765
- const xt = { start: Te.fechaInicio, end: Te.fechaFin };
16764
+ const T = po(/* @__PURE__ */ new Date()), ne = ta(Gr(T, 6)), Ce = { start: T, end: ne }, _e = s.filter((Ee) => {
16765
+ const xt = { start: Ee.fechaInicio, end: Ee.fechaFin };
16766
16766
  return up(xt, Ce);
16767
- }).sort((Te, xt) => Te.fechaInicio.getTime() - xt.fechaInicio.getTime());
16767
+ }).sort((Ee, xt) => Ee.fechaInicio.getTime() - xt.fechaInicio.getTime());
16768
16768
  b(_e);
16769
16769
  }, [s]);
16770
16770
  const ee = async (oe) => {
@@ -16779,13 +16779,13 @@ const a5 = ({ userId: e, leads30Days: n, leads90Days: t, disId: r, masNombreBD:
16779
16779
  }, B = async (oe, T) => {
16780
16780
  let ne, Ce;
16781
16781
  oe.todoElDia ? (ne = /* @__PURE__ */ new Date(`${oe.fechaInicio}T${oe.horaInicio}`), Ce = /* @__PURE__ */ new Date(`${oe.fechaInicio}T${oe.horaFin}`)) : (ne = /* @__PURE__ */ new Date(`${oe.fechaInicio}T${oe.horaInicio}`), Ce = oe.fechaFin && oe.horaFin ? /* @__PURE__ */ new Date(`${oe.fechaFin}T${oe.horaFin}`) : /* @__PURE__ */ new Date(`${oe.fechaInicio}T${oe.horaFin}`));
16782
- const _e = at(ne, "yyyy-MM-dd HH:mm:ss.SSS"), Te = at(Ce, "yyyy-MM-dd HH:mm:ss.SSS");
16782
+ const _e = at(ne, "yyyy-MM-dd HH:mm:ss.SSS"), Ee = at(Ce, "yyyy-MM-dd HH:mm:ss.SSS");
16783
16783
  if (T) {
16784
16784
  const wt = {
16785
16785
  ...oe,
16786
16786
  eventoID: T,
16787
16787
  fechaInicio: _e,
16788
- fechaFin: Te,
16788
+ fechaFin: Ee,
16789
16789
  solID: oe.solID ?? null,
16790
16790
  disID: r ?? null,
16791
16791
  client: oe.client
@@ -16801,7 +16801,7 @@ const a5 = ({ userId: e, leads30Days: n, leads90Days: t, disId: r, masNombreBD:
16801
16801
  const wt = {
16802
16802
  ...oe,
16803
16803
  fechaInicio: _e,
16804
- fechaFin: Te,
16804
+ fechaFin: Ee,
16805
16805
  todoElDia: oe.todoElDia,
16806
16806
  solID: oe.solID ?? null,
16807
16807
  disID: r ?? null,
@@ -16885,8 +16885,8 @@ function eE(e, n) {
16885
16885
  return n;
16886
16886
  }
16887
16887
  const tE = yt(/* @__PURE__ */ d.jsx("path", {
16888
- d: "M11 18h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M3 7c0 .55.45 1 1 1h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1m4 6h10c.55 0 1-.45 1-1s-.45-1-1-1H7c-.55 0-1 .45-1 1s.45 1 1 1"
16889
- }), "FilterListRounded"), rE = yt(/* @__PURE__ */ d.jsx("path", {
16888
+ d: "M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61"
16889
+ }), "FilterAlt"), rE = yt(/* @__PURE__ */ d.jsx("path", {
16890
16890
  d: "M15.5 14h-.79l-.28-.27c1.2-1.4 1.82-3.31 1.48-5.34-.47-2.78-2.79-5-5.59-5.34-4.23-.52-7.79 3.04-7.27 7.27.34 2.8 2.56 5.12 5.34 5.59 2.03.34 3.94-.28 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0s.41-1.08 0-1.49zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"
16891
16891
  }), "SearchRounded"), nE = yt(/* @__PURE__ */ d.jsx("path", {
16892
16892
  d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"
@@ -16943,7 +16943,7 @@ function iE({
16943
16943
  color: "#fff",
16944
16944
  boxSizing: "border-box"
16945
16945
  },
16946
- children: ["Tipo", "En Proceso", "Finalizadas", "Último seg."].map((u) => /* @__PURE__ */ d.jsx(Ee, { sx: { fontSize: 13, fontWeight: 800 }, children: u }, u))
16946
+ children: ["Tipo", "En Proceso", "Finalizadas", "Último seg."].map((u) => /* @__PURE__ */ d.jsx(Ae, { sx: { fontSize: 13, fontWeight: 800 }, children: u }, u))
16947
16947
  }
16948
16948
  ),
16949
16949
  e.map((u, f) => {
@@ -16962,8 +16962,10 @@ function iE({
16962
16962
  bgcolor: m ? "rgba(30,91,206,0.06)" : "background.paper",
16963
16963
  borderTop: "1px solid rgba(0,0,0,0.08)",
16964
16964
  "&:hover": { bgcolor: "rgba(30,91,206,0.12)" },
16965
- boxSizing: "border-box"
16965
+ boxSizing: "border-box",
16966
+ cursor: "pointer"
16966
16967
  },
16968
+ onClick: () => g((x) => !x),
16967
16969
  children: [
16968
16970
  /* @__PURE__ */ d.jsxs(
16969
16971
  Q,
@@ -16975,9 +16977,9 @@ function iE({
16975
16977
  minWidth: 0
16976
16978
  },
16977
16979
  children: [
16978
- /* @__PURE__ */ d.jsx(Mt, { size: "small", onClick: () => g((x) => !x), children: p ? /* @__PURE__ */ d.jsx(oE, {}) : /* @__PURE__ */ d.jsx(nE, {}) }),
16980
+ /* @__PURE__ */ d.jsx(Mt, { size: "small", disableRipple: !0, children: p ? /* @__PURE__ */ d.jsx(oE, {}) : /* @__PURE__ */ d.jsx(nE, {}) }),
16979
16981
  /* @__PURE__ */ d.jsx(
16980
- Ee,
16982
+ Ae,
16981
16983
  {
16982
16984
  sx: {
16983
16985
  fontWeight: 700,
@@ -16993,99 +16995,111 @@ function iE({
16993
16995
  ]
16994
16996
  }
16995
16997
  ),
16996
- /* @__PURE__ */ d.jsx(Ee, { sx: { fontSize: 13.5, fontWeight: 800 }, children: Ls(u, "En Proceso") }),
16997
- /* @__PURE__ */ d.jsx(Ee, { sx: { fontSize: 13.5, fontWeight: 800 }, children: Ls(u, "Finalizadas") }),
16998
- /* @__PURE__ */ d.jsx(Ee, { sx: { fontSize: 13.5, fontWeight: 800 }, children: Ls(u, "Último seg.") })
16998
+ /* @__PURE__ */ d.jsx(Ae, { sx: { fontSize: 13.5, fontWeight: 800 }, children: Ls(u, "En Proceso") }),
16999
+ /* @__PURE__ */ d.jsx(Ae, { sx: { fontSize: 13.5, fontWeight: 800 }, children: Ls(u, "Finalizadas") }),
17000
+ /* @__PURE__ */ d.jsx(Ae, { sx: { fontSize: 13.5, fontWeight: 800 }, children: Ls(u, "Último seg.") })
16999
17001
  ]
17000
17002
  }
17001
17003
  ),
17002
- /* @__PURE__ */ d.jsx(Rh, { in: p, unmountOnExit: !0, children: /* @__PURE__ */ d.jsxs(Q, { sx: { overflowX: "auto" }, children: [
17003
- /* @__PURE__ */ d.jsx(
17004
- Q,
17005
- {
17006
- sx: {
17007
- minWidth: y,
17008
- display: "grid",
17009
- gridTemplateColumns: Kd(h),
17010
- columnGap: "16px",
17011
- alignItems: "center",
17012
- px: "16px",
17013
- py: 1,
17014
- bgcolor: "rgba(30,91,206,0.18)",
17015
- color: "#1a1a1a",
17016
- borderTop: "1px solid rgba(0,0,0,0.12)",
17017
- boxSizing: "border-box"
17018
- },
17019
- children: h.map((x) => /* @__PURE__ */ d.jsx(
17020
- Ee,
17004
+ /* @__PURE__ */ d.jsx(Rh, { in: p, unmountOnExit: !0, children: /* @__PURE__ */ d.jsxs(
17005
+ Q,
17006
+ {
17007
+ sx: {
17008
+ overflowX: "auto",
17009
+ "&::-webkit-scrollbar": {
17010
+ height: "5px"
17011
+ // ← aquí la haces delgadita
17012
+ }
17013
+ },
17014
+ children: [
17015
+ /* @__PURE__ */ d.jsx(
17016
+ Q,
17021
17017
  {
17022
17018
  sx: {
17023
- justifySelf: Zd(x.align),
17024
- textAlign: x.align ?? "left",
17025
- fontSize: 12.5,
17026
- fontWeight: 800,
17027
- whiteSpace: "nowrap",
17028
- overflow: "hidden",
17029
- textOverflow: "ellipsis"
17019
+ minWidth: y,
17020
+ display: "grid",
17021
+ gridTemplateColumns: Kd(h),
17022
+ columnGap: "16px",
17023
+ alignItems: "center",
17024
+ px: "16px",
17025
+ py: 1,
17026
+ bgcolor: "rgba(30,91,206,0.18)",
17027
+ color: "#1a1a1a",
17028
+ borderTop: "1px solid rgba(0,0,0,0.12)",
17029
+ boxSizing: "border-box"
17030
17030
  },
17031
- children: x.header
17032
- },
17033
- x.key
17034
- ))
17035
- }
17036
- ),
17037
- (u.rows ?? []).map((x, b) => /* @__PURE__ */ d.jsx(
17038
- Q,
17039
- {
17040
- sx: {
17041
- minWidth: y,
17042
- display: "grid",
17043
- gridTemplateColumns: Kd(h),
17044
- columnGap: "16px",
17045
- alignItems: "center",
17046
- px: "16px",
17047
- py: 1,
17048
- bgcolor: b % 2 === 0 ? "background.paper" : "rgba(30,91,206,0.06)",
17049
- borderTop: "1px solid rgba(0,0,0,0.06)",
17050
- "&:hover": { bgcolor: "rgba(30,91,206,0.12)" },
17051
- boxSizing: "border-box",
17052
- cursor: "pointer"
17053
- },
17054
- onClick: () => a?.(x, u),
17055
- children: h.map((k, w) => {
17056
- const _ = k.accessor ? k.accessor(x, b) : k.field ? x[k.field] : null;
17057
- return /* @__PURE__ */ d.jsx(
17058
- Q,
17059
- {
17060
- sx: {
17061
- justifySelf: Zd(k.align),
17062
- textAlign: k.align ?? "left",
17063
- minWidth: 0
17031
+ children: h.map((x) => /* @__PURE__ */ d.jsx(
17032
+ Ae,
17033
+ {
17034
+ sx: {
17035
+ justifySelf: Zd(x.align),
17036
+ textAlign: x.align ?? "left",
17037
+ fontSize: 12.5,
17038
+ fontWeight: 800,
17039
+ whiteSpace: "nowrap",
17040
+ overflow: "hidden",
17041
+ textOverflow: "ellipsis"
17042
+ },
17043
+ children: x.header
17064
17044
  },
17065
- children: typeof _ == "string" || typeof _ == "number" ? /* @__PURE__ */ d.jsx(
17066
- Ee,
17045
+ x.key
17046
+ ))
17047
+ }
17048
+ ),
17049
+ (u.rows ?? []).map((x, b) => /* @__PURE__ */ d.jsx(
17050
+ Q,
17051
+ {
17052
+ sx: {
17053
+ minWidth: y,
17054
+ display: "grid",
17055
+ gridTemplateColumns: Kd(h),
17056
+ columnGap: "16px",
17057
+ alignItems: "center",
17058
+ px: "16px",
17059
+ py: 1,
17060
+ bgcolor: b % 2 === 0 ? "background.paper" : "rgba(30,91,206,0.06)",
17061
+ borderTop: "1px solid rgba(0,0,0,0.06)",
17062
+ "&:hover": { bgcolor: "rgba(30,91,206,0.12)" },
17063
+ boxSizing: "border-box",
17064
+ cursor: "pointer"
17065
+ },
17066
+ onClick: () => a?.(x, u),
17067
+ children: h.map((k, w) => {
17068
+ const _ = k.accessor ? k.accessor(x, b) : k.field ? x[k.field] : null;
17069
+ return /* @__PURE__ */ d.jsx(
17070
+ Q,
17067
17071
  {
17068
17072
  sx: {
17069
- fontSize: 13,
17070
- fontWeight: /^(estatus|seg|avance|nivel|asesor|fecha)$/i.test(
17071
- k.key
17072
- ) ? 700 : 500,
17073
- whiteSpace: "nowrap",
17074
- overflow: "hidden",
17075
- textOverflow: "ellipsis"
17073
+ justifySelf: Zd(k.align),
17074
+ textAlign: k.align ?? "left",
17075
+ minWidth: 0
17076
17076
  },
17077
- title: String(_),
17078
- children: _
17079
- }
17080
- ) : _
17081
- },
17082
- k.key ?? w
17083
- );
17084
- })
17085
- },
17086
- x.id ?? b
17087
- ))
17088
- ] }) })
17077
+ children: typeof _ == "string" || typeof _ == "number" ? /* @__PURE__ */ d.jsx(
17078
+ Ae,
17079
+ {
17080
+ sx: {
17081
+ fontSize: 13,
17082
+ fontWeight: /^(estatus|seg|avance|nivel|asesor|fecha)$/i.test(
17083
+ k.key
17084
+ ) ? 700 : 500,
17085
+ whiteSpace: "nowrap",
17086
+ overflow: "hidden",
17087
+ textOverflow: "ellipsis"
17088
+ },
17089
+ title: String(_),
17090
+ children: _
17091
+ }
17092
+ ) : _
17093
+ },
17094
+ k.key ?? w
17095
+ );
17096
+ })
17097
+ },
17098
+ x.id ?? b
17099
+ ))
17100
+ ]
17101
+ }
17102
+ ) })
17089
17103
  ] }, u.id);
17090
17104
  })
17091
17105
  ] })
@@ -17200,7 +17214,7 @@ function gE({
17200
17214
  const N = ie.trim();
17201
17215
  return N ? (i ?? []).filter((ge) => U(ge, N)) : i ?? [];
17202
17216
  }, [i, ie]);
17203
- const de = _c(), ue = Sc(de.breakpoints.down("md")), [xe, ke] = E.useState(""), [ye, oe] = E.useState(!1), [T, ne] = E.useState(!1), Ce = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10), _e = new Date(Date.now() - 720 * 3600 * 1e3).toISOString().slice(0, 10), [Te, xt] = E.useState(_e), [wt, ct] = E.useState(Ce), [S, R] = E.useState(null), L = !!S, [te, J] = E.useState("Todos"), I = [
17217
+ const de = _c(), ue = Sc(de.breakpoints.down("md")), [xe, ke] = E.useState(""), [ye, oe] = E.useState(!1), [T, ne] = E.useState(!1), Ce = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10), _e = new Date(Date.now() - 720 * 3600 * 1e3).toISOString().slice(0, 10), [Ee, xt] = E.useState(_e), [wt, ct] = E.useState(Ce), [S, R] = E.useState(null), L = !!S, [te, J] = E.useState("Todos"), I = [
17204
17218
  "Selección y presentación",
17205
17219
  "Ingreso del Vehículo",
17206
17220
  "En reparación",
@@ -17263,7 +17277,7 @@ function gE({
17263
17277
  key: "vehiculo",
17264
17278
  header: "Vehículo",
17265
17279
  accessor: (N) => /* @__PURE__ */ d.jsx($a, { title: N.Vehiculo ?? "", placement: "top", arrow: !0, children: /* @__PURE__ */ d.jsx(
17266
- Ee,
17280
+ Ae,
17267
17281
  {
17268
17282
  component: "span",
17269
17283
  sx: {
@@ -17285,7 +17299,7 @@ function gE({
17285
17299
  {
17286
17300
  key: "estatus",
17287
17301
  header: "Estatus",
17288
- accessor: (N) => /* @__PURE__ */ d.jsx(Ee, { sx: { fontWeight: 800, fontSize: 13 }, children: N.EstatusDescripcion || "—" }),
17302
+ accessor: (N) => /* @__PURE__ */ d.jsx(Ae, { sx: { fontWeight: 800, fontSize: 13 }, children: N.EstatusDescripcion || "—" }),
17289
17303
  width: 170
17290
17304
  },
17291
17305
  {
@@ -17313,7 +17327,7 @@ function gE({
17313
17327
  key: "asesor",
17314
17328
  header: "Asesor",
17315
17329
  accessor: (N) => /* @__PURE__ */ d.jsx($a, { title: N.Asesor ?? "", placement: "top", children: /* @__PURE__ */ d.jsx(
17316
- Ee,
17330
+ Ae,
17317
17331
  {
17318
17332
  sx: { fontWeight: 700, fontSize: 13, textAlign: "center" },
17319
17333
  children: (N.Asesor ?? "").split(" ").filter(Boolean).map((ge) => ge[0]?.toUpperCase()).slice(0, 2).join("") || "—"
@@ -17398,7 +17412,7 @@ function gE({
17398
17412
  h
17399
17413
  )
17400
17414
  ], xo = E.useMemo(() => {
17401
- const N = ye ? new Date(Te) : null, ge = ye ? new Date(wt) : null, Oe = (xe ?? "").trim().toLowerCase(), tt = (rt, Ot) => {
17415
+ const N = ye ? new Date(Ee) : null, ge = ye ? new Date(wt) : null, Oe = (xe ?? "").trim().toLowerCase(), tt = (rt, Ot) => {
17402
17416
  if (Oe && !(rt.Vehiculo ?? "").toLowerCase().includes(Oe)) return !1;
17403
17417
  const bn = T ? rt.FechaCita : rt.Fecha;
17404
17418
  if (ye && (N || ge)) {
@@ -17428,7 +17442,7 @@ function gE({
17428
17442
  zr,
17429
17443
  xe,
17430
17444
  ye,
17431
- Te,
17445
+ Ee,
17432
17446
  wt,
17433
17447
  T,
17434
17448
  te,
@@ -17514,7 +17528,7 @@ function gE({
17514
17528
  width: "100%",
17515
17529
  alignItems: "center",
17516
17530
  children: /* @__PURE__ */ d.jsx(Q, { sx: { flex: 1, minWidth: 0, pr: 1 }, children: /* @__PURE__ */ d.jsxs(
17517
- Ee,
17531
+ Ae,
17518
17532
  {
17519
17533
  component: "span",
17520
17534
  fontWeight: 700,
@@ -17571,7 +17585,7 @@ function gE({
17571
17585
  children: [
17572
17586
  N.icon,
17573
17587
  /* @__PURE__ */ d.jsx(
17574
- Ee,
17588
+ Ae,
17575
17589
  {
17576
17590
  variant: "body2",
17577
17591
  sx: {
@@ -17598,7 +17612,7 @@ function gE({
17598
17612
  alignItems: "center",
17599
17613
  children: [
17600
17614
  /* @__PURE__ */ d.jsx(Q, { sx: { width: "50%" }, children: /* @__PURE__ */ d.jsx(
17601
- Ee,
17615
+ Ae,
17602
17616
  {
17603
17617
  variant: "body2",
17604
17618
  color: "text.secondary",
@@ -17617,7 +17631,7 @@ function gE({
17617
17631
  },
17618
17632
  children: [
17619
17633
  /* @__PURE__ */ d.jsx("div", { children: N?.avatar ? N.avatar(t) : null }),
17620
- /* @__PURE__ */ d.jsx(Ee, { variant: "body2", color: "textPrimary", children: N?.value(t) }),
17634
+ /* @__PURE__ */ d.jsx(Ae, { variant: "body2", color: "textPrimary", children: N?.value(t) }),
17621
17635
  Oe && /* @__PURE__ */ d.jsx(
17622
17636
  $a,
17623
17637
  {
@@ -17630,6 +17644,7 @@ function gE({
17630
17644
  size: "small",
17631
17645
  onClick: (tt) => _(tt.currentTarget),
17632
17646
  sx: { ml: 0.5 },
17647
+ disableRipple: !0,
17633
17648
  children: /* @__PURE__ */ d.jsx(
17634
17649
  sE,
17635
17650
  {
@@ -17651,7 +17666,7 @@ function gE({
17651
17666
  }) }),
17652
17667
  /* @__PURE__ */ d.jsx(nn, { sx: { my: 2 } })
17653
17668
  ] }),
17654
- /* @__PURE__ */ d.jsx(Q, { px: 2.5, pb: 0.5, children: /* @__PURE__ */ d.jsx(Ee, { fontWeight: 800, children: "Historial Actividad:" }) }),
17669
+ /* @__PURE__ */ d.jsx(Q, { px: 2.5, pb: 0.5, children: /* @__PURE__ */ d.jsx(Ae, { fontWeight: 800, children: "Historial Actividad:" }) }),
17655
17670
  /* @__PURE__ */ d.jsxs(
17656
17671
  Q,
17657
17672
  {
@@ -17667,7 +17682,7 @@ function gE({
17667
17682
  maxHeight: { xs: "140px", md: "100%" }
17668
17683
  },
17669
17684
  children: [
17670
- H.length === 0 && /* @__PURE__ */ d.jsx(Ee, { variant: "body2", color: "text.secondary", children: "Sin actividad registrada." }),
17685
+ H.length === 0 && /* @__PURE__ */ d.jsx(Ae, { variant: "body2", color: "text.secondary", children: "Sin actividad registrada." }),
17671
17686
  /* @__PURE__ */ d.jsxs(Q, { children: [
17672
17687
  H?.map((N, ge) => {
17673
17688
  const Oe = K(N), { bg: tt, color: rt } = F(N.TipoComentario), Ot = mE(N.Comentario || "");
@@ -17681,7 +17696,7 @@ function gE({
17681
17696
  justifyContent: "space-between",
17682
17697
  sx: { mb: 0.75 },
17683
17698
  children: [
17684
- /* @__PURE__ */ d.jsx(Ee, { variant: "subtitle2", sx: { color: "#5C6372" }, children: N.TipoComentario || "Evento" }),
17699
+ /* @__PURE__ */ d.jsx(Ae, { variant: "subtitle2", sx: { color: "#5C6372" }, children: N.TipoComentario || "Evento" }),
17685
17700
  /* @__PURE__ */ d.jsx(
17686
17701
  Io,
17687
17702
  {
@@ -17694,7 +17709,7 @@ function gE({
17694
17709
  }
17695
17710
  ),
17696
17711
  Ot ? /* @__PURE__ */ d.jsx(
17697
- Ee,
17712
+ Ae,
17698
17713
  {
17699
17714
  variant: "body2",
17700
17715
  color: "text.secondary",
@@ -17734,8 +17749,8 @@ function gE({
17734
17749
  }
17735
17750
  ),
17736
17751
  /* @__PURE__ */ d.jsxs(pr, { spacing: 0, children: [
17737
- /* @__PURE__ */ d.jsx(Ee, { variant: "body2", fontWeight: 600, children: Oe }),
17738
- /* @__PURE__ */ d.jsx(Ee, { variant: "caption", color: "text.secondary", children: hE(N.FecAlta) })
17752
+ /* @__PURE__ */ d.jsx(Ae, { variant: "body2", fontWeight: 600, children: Oe }),
17753
+ /* @__PURE__ */ d.jsx(Ae, { variant: "caption", color: "text.secondary", children: hE(N.FecAlta) })
17739
17754
  ] })
17740
17755
  ] }),
17741
17756
  ge < M.length - 1 && /* @__PURE__ */ d.jsx(nn, { sx: { mt: 1.25 } })
@@ -17802,7 +17817,7 @@ function gE({
17802
17817
  }
17803
17818
  ),
17804
17819
  /* @__PURE__ */ d.jsxs(Q, { sx: { overflowY: "auto", py: 0.5, maxHeight: 200 }, children: [
17805
- O.length === 0 && /* @__PURE__ */ d.jsx(Q, { sx: { px: 1.5, py: 1 }, children: /* @__PURE__ */ d.jsx(Ee, { variant: "body2", color: "text.secondary", children: "Sin registros" }) }),
17820
+ O.length === 0 && /* @__PURE__ */ d.jsx(Q, { sx: { px: 1.5, py: 1 }, children: /* @__PURE__ */ d.jsx(Ae, { variant: "body2", color: "text.secondary", children: "Sin registros" }) }),
17806
17821
  O.map((N, ge) => {
17807
17822
  const Oe = lE(N), tt = cE(
17808
17823
  N.FechaBaja ?? N.FechaAsignacion
@@ -17822,9 +17837,9 @@ function gE({
17822
17837
  children: uE(Oe)
17823
17838
  }
17824
17839
  ),
17825
- /* @__PURE__ */ d.jsx(Q, { sx: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ d.jsx(Ee, { variant: "body2", noWrap: !0, children: Oe }) }),
17840
+ /* @__PURE__ */ d.jsx(Q, { sx: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ d.jsx(Ae, { variant: "body2", noWrap: !0, children: Oe }) }),
17826
17841
  /* @__PURE__ */ d.jsx(
17827
- Ee,
17842
+ Ae,
17828
17843
  {
17829
17844
  variant: "caption",
17830
17845
  color: "text.secondary",
@@ -17863,34 +17878,25 @@ function gE({
17863
17878
  zIndex: 10,
17864
17879
  pointerEvents: "auto"
17865
17880
  },
17866
- children: /* @__PURE__ */ d.jsxs(Q, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
17867
- /* @__PURE__ */ d.jsx(
17868
- Rt,
17869
- {
17870
- onClick: () => _o(!1),
17871
- sx: {
17872
- backgroundColor: "#2571d6",
17873
- minWidth: 36,
17874
- minHeight: 36,
17875
- p: 0.5,
17876
- borderRadius: "8px",
17877
- color: "#fff",
17878
- boxShadow: 3,
17879
- "&:hover": {
17880
- backgroundColor: "#2074e3"
17881
- }
17882
- },
17883
- children: /* @__PURE__ */ d.jsx(pE, { fontSize: "medium" })
17884
- }
17885
- ),
17886
- /* @__PURE__ */ d.jsx(
17887
- Ee,
17888
- {
17889
- sx: { color: "#2074e3", fontWeight: 600, fontSize: 18 },
17890
- children: "Regresar"
17891
- }
17892
- )
17893
- ] })
17881
+ children: /* @__PURE__ */ d.jsx(Q, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: /* @__PURE__ */ d.jsx(
17882
+ Rt,
17883
+ {
17884
+ onClick: () => _o(!1),
17885
+ sx: {
17886
+ backgroundColor: "#2571d6",
17887
+ minWidth: 36,
17888
+ minHeight: 36,
17889
+ p: 0.5,
17890
+ borderRadius: "8px",
17891
+ color: "#fff",
17892
+ boxShadow: 3,
17893
+ "&:hover": {
17894
+ backgroundColor: "#2074e3"
17895
+ }
17896
+ },
17897
+ children: /* @__PURE__ */ d.jsx(pE, { fontSize: "medium" })
17898
+ }
17899
+ ) })
17894
17900
  }
17895
17901
  ),
17896
17902
  /* @__PURE__ */ d.jsx(
@@ -17916,7 +17922,7 @@ function gE({
17916
17922
  },
17917
17923
  children: [
17918
17924
  /* @__PURE__ */ d.jsx(
17919
- Ee,
17925
+ Ae,
17920
17926
  {
17921
17927
  variant: "h4",
17922
17928
  sx: {
@@ -17988,7 +17994,7 @@ function gE({
17988
17994
  An,
17989
17995
  {
17990
17996
  label: /* @__PURE__ */ d.jsx(
17991
- Ee,
17997
+ Ae,
17992
17998
  {
17993
17999
  sx: {
17994
18000
  fontSize: 15,
@@ -18022,7 +18028,7 @@ function gE({
18022
18028
  }
18023
18029
  ),
18024
18030
  /* @__PURE__ */ d.jsx(
18025
- Ee,
18031
+ Ae,
18026
18032
  {
18027
18033
  sx: {
18028
18034
  fontSize: 15,
@@ -18042,7 +18048,7 @@ function gE({
18042
18048
  type: "date",
18043
18049
  label: "Desde",
18044
18050
  InputLabelProps: { shrink: !0 },
18045
- value: Te,
18051
+ value: Ee,
18046
18052
  onChange: (N) => xt(N.target.value),
18047
18053
  disabled: !ye,
18048
18054
  sx: { width: 170 }
@@ -18069,6 +18075,7 @@ function gE({
18069
18075
  Mt,
18070
18076
  {
18071
18077
  onClick: (N) => R(N.currentTarget),
18078
+ disableRipple: !0,
18072
18079
  sx: {
18073
18080
  border: "1px solid #d4d7de",
18074
18081
  borderRadius: 2,
@@ -18084,6 +18091,7 @@ function gE({
18084
18091
  {
18085
18092
  variant: "outlined",
18086
18093
  onClick: Re,
18094
+ disableRipple: !0,
18087
18095
  sx: {
18088
18096
  height: 40,
18089
18097
  textTransform: "none",
@@ -18113,6 +18121,7 @@ function gE({
18113
18121
  onClick: () => {
18114
18122
  y?.(t);
18115
18123
  },
18124
+ disableRipple: !0,
18116
18125
  children: [
18117
18126
  /* @__PURE__ */ d.jsx(
18118
18127
  fE,
@@ -18161,7 +18170,7 @@ function gE({
18161
18170
  transformOrigin: { vertical: "top", horizontal: "right" },
18162
18171
  children: /* @__PURE__ */ d.jsxs(pr, { spacing: 1.5, paddingX: 1.5, paddingY: 1, children: [
18163
18172
  /* @__PURE__ */ d.jsx(
18164
- Ee,
18173
+ Ae,
18165
18174
  {
18166
18175
  variant: "subtitle2",
18167
18176
  sx: { fontWeight: 700, color: "#070C10" },
@@ -18170,7 +18179,7 @@ function gE({
18170
18179
  ),
18171
18180
  /* @__PURE__ */ d.jsxs(Q, { children: [
18172
18181
  /* @__PURE__ */ d.jsx(
18173
- Ee,
18182
+ Ae,
18174
18183
  {
18175
18184
  variant: "body2",
18176
18185
  sx: { fontWeight: 700, mb: 0.5, color: "#5C6372" },
@@ -18225,7 +18234,7 @@ function gE({
18225
18234
  ] }),
18226
18235
  /* @__PURE__ */ d.jsxs(Q, { children: [
18227
18236
  /* @__PURE__ */ d.jsx(
18228
- Ee,
18237
+ Ae,
18229
18238
  {
18230
18239
  variant: "body2",
18231
18240
  sx: { fontWeight: 700, mb: 0.5, color: "#5C6372" },
@@ -18311,7 +18320,7 @@ function Gd(e, n, t) {
18311
18320
  accessor: (F) => F[r.nombreCliente],
18312
18321
  cell: i.nombreCliente,
18313
18322
  // opcional si lo definiste
18314
- width: 280
18323
+ width: 190
18315
18324
  },
18316
18325
  email: {
18317
18326
  key: "email",
@@ -18321,7 +18330,7 @@ function Gd(e, n, t) {
18321
18330
  const K = String(F[r.email] ?? "");
18322
18331
  return K ? /* @__PURE__ */ d.jsx("a", { href: `mailto:${K}`, children: K }) : /* @__PURE__ */ d.jsx("span", { className: "text-muted", children: "—" });
18323
18332
  }),
18324
- width: 260
18333
+ width: 230
18325
18334
  },
18326
18335
  acciones: s.acciones ? void 0 : {
18327
18336
  key: "acciones",
@@ -18928,7 +18937,7 @@ const EE = yt(/* @__PURE__ */ d.jsx("path", {
18928
18937
  )
18929
18938
  ] }),
18930
18939
  /* @__PURE__ */ d.jsxs(Q, { sx: { display: "flex", alignItems: "center", gap: 1.25, justifyContent: { xs: "center", sm: "flex-start" }, mt: { xs: 1, sm: 0 } }, children: [
18931
- /* @__PURE__ */ d.jsx(Ee, { variant: "body2", children: "Mostrar" }),
18940
+ /* @__PURE__ */ d.jsx(Ae, { variant: "body2", children: "Mostrar" }),
18932
18941
  /* @__PURE__ */ d.jsx(nf, { size: "small", sx: { minWidth: 72 }, children: /* @__PURE__ */ d.jsx(
18933
18942
  rf,
18934
18943
  {
@@ -18938,7 +18947,7 @@ const EE = yt(/* @__PURE__ */ d.jsx("path", {
18938
18947
  children: a.map((m) => /* @__PURE__ */ d.jsx(Hs, { value: m, children: m === "Todos" ? "Todos" : m }, String(m)))
18939
18948
  }
18940
18949
  ) }),
18941
- /* @__PURE__ */ d.jsx(Ee, { variant: "body2", children: "por página" })
18950
+ /* @__PURE__ */ d.jsx(Ae, { variant: "body2", children: "por página" })
18942
18951
  ] })
18943
18952
  ]
18944
18953
  }
@@ -19033,7 +19042,7 @@ function s5(e) {
19033
19042
  W([I]), h?.({
19034
19043
  items: q
19035
19044
  });
19036
- }, Te = (I) => z.includes(I), xt = async (I) => {
19045
+ }, Ee = (I) => z.includes(I), xt = async (I) => {
19037
19046
  try {
19038
19047
  await o?.(I), b.reset(b.getValues());
19039
19048
  } catch (q) {
@@ -19058,7 +19067,7 @@ function s5(e) {
19058
19067
  PaperProps: {
19059
19068
  sx: {
19060
19069
  height: { xs: "100dvh", md: L ? "90vw" : "auto" },
19061
- maxWidth: { xs: "100vw", md: L ? "98vw" : "60%" },
19070
+ maxWidth: { xs: "100vw", md: L ? "98vw" : "50%" },
19062
19071
  overflow: "hidden",
19063
19072
  display: "flex",
19064
19073
  flexDirection: "column",
@@ -19114,7 +19123,7 @@ function s5(e) {
19114
19123
  }
19115
19124
  },
19116
19125
  children: [
19117
- /* @__PURE__ */ d.jsx(Ee, { fontWeight: 700, fontSize: 20, children: t.title }),
19126
+ /* @__PURE__ */ d.jsx(Ae, { fontWeight: 700, fontSize: 20, children: t.title }),
19118
19127
  /* @__PURE__ */ d.jsxs(
19119
19128
  Q,
19120
19129
  {
@@ -19125,7 +19134,7 @@ function s5(e) {
19125
19134
  paddingBottom: 10
19126
19135
  },
19127
19136
  children: [
19128
- /* @__PURE__ */ d.jsx(Ee, { fontSize: "18px", mt: 2.5, fontWeight: 500, children: t.subTitle }),
19137
+ /* @__PURE__ */ d.jsx(Ae, { fontSize: "18px", mt: 2.5, fontWeight: 500, children: t.subTitle }),
19129
19138
  /* @__PURE__ */ d.jsx(
19130
19139
  Q,
19131
19140
  {
@@ -19141,6 +19150,7 @@ function s5(e) {
19141
19150
  spacing: 2,
19142
19151
  alignItems: "flex-start",
19143
19152
  wrap: "wrap",
19153
+ width: "100%",
19144
19154
  children: I.map((ve, Re) => {
19145
19155
  const P = typeof ve == "string" ? { name: ve } : ve;
19146
19156
  return P.hidden?.(b) ? null : ct(
@@ -19152,7 +19162,16 @@ function s5(e) {
19152
19162
  `row-${q}`
19153
19163
  )) : /* @__PURE__ */ d.jsx(ze, { container: !0, spacing: 2, width: "100%", children: r?.map((I, q) => {
19154
19164
  const ve = I.grid ?? { xs: 12, md: 12 };
19155
- return /* @__PURE__ */ d.jsx(ze, { item: !0, ...ve, children: I.render ? I.render(b) : Qd(I, b) }, `${String(I.name)}-${q}`);
19165
+ return /* @__PURE__ */ d.jsx(
19166
+ ze,
19167
+ {
19168
+ item: !0,
19169
+ ...ve,
19170
+ width: "100%",
19171
+ children: I.render ? I.render(b) : Qd(I, b)
19172
+ },
19173
+ `${String(I.name)}-${q}`
19174
+ );
19156
19175
  }) })
19157
19176
  }
19158
19177
  )
@@ -19176,12 +19195,14 @@ function s5(e) {
19176
19195
  p: 1,
19177
19196
  backgroundColor: "#fff"
19178
19197
  },
19179
- children: /* @__PURE__ */ d.jsx(
19198
+ children: /* @__PURE__ */ d.jsx(Q, { display: "flex", alignItems: "center", children: /* @__PURE__ */ d.jsx(
19180
19199
  Q,
19181
19200
  {
19182
19201
  display: "flex",
19183
- alignItems: "center",
19184
- children: /* @__PURE__ */ d.jsx(Q, { display: "flex", gap: 1.5, width: "100%", justifyContent: c ? "flex-end" : "center", children: /* @__PURE__ */ d.jsx(
19202
+ gap: 1.5,
19203
+ width: "100%",
19204
+ justifyContent: c ? "flex-end" : "center",
19205
+ children: /* @__PURE__ */ d.jsx(
19185
19206
  Rt,
19186
19207
  {
19187
19208
  type: "submit",
@@ -19200,9 +19221,9 @@ function s5(e) {
19200
19221
  },
19201
19222
  children: s
19202
19223
  }
19203
- ) })
19224
+ )
19204
19225
  }
19205
- )
19226
+ ) })
19206
19227
  }
19207
19228
  )
19208
19229
  ]
@@ -19368,7 +19389,7 @@ function s5(e) {
19368
19389
  sx: { borderColor: "transparent", padding: 0 },
19369
19390
  children: [
19370
19391
  pe?.map((I, q) => {
19371
- const ve = f ? f(I) : q, Re = Te(ve);
19392
+ const ve = f ? f(I) : q, Re = Ee(ve);
19372
19393
  return /* @__PURE__ */ d.jsx(
19373
19394
  Q,
19374
19395
  {
@@ -19407,7 +19428,7 @@ function s5(e) {
19407
19428
  `${String(ve)}`
19408
19429
  );
19409
19430
  }),
19410
- !pe?.length && /* @__PURE__ */ d.jsx(Q, { p: 3, children: /* @__PURE__ */ d.jsxs(Ee, { fontSize: 14, color: "#5C6372", children: [
19431
+ !pe?.length && /* @__PURE__ */ d.jsx(Q, { p: 3, children: /* @__PURE__ */ d.jsxs(Ae, { fontSize: 14, color: "#5C6372", children: [
19411
19432
  "Sin resultados para “",
19412
19433
  k,
19413
19434
  "”."
@@ -19592,17 +19613,17 @@ function c5({
19592
19613
  ie(G.map((me) => ({ name: me.name, size: me.size, file: me }))), P.target.value = "";
19593
19614
  }, Ce = A[0], _e = Je(() => !i || Ce === void 0 ? void 0 : i.find(
19594
19615
  (G, me) => String(vr(G, me, p.id)) === String(Ce)
19595
- ), [i, Ce, p.id]), Te = Je(() => {
19616
+ ), [i, Ce, p.id]), Ee = Je(() => {
19596
19617
  if (!(!_e || !p.distributorId))
19597
19618
  return vr(_e, 0, p.distributorId);
19598
19619
  }, [_e, p.distributorId]);
19599
- console.log("lockedDisId", Te);
19600
- const xt = Je(() => _e ? (p.distributorTitle ? vr(_e, 0, p.distributorTitle) : void 0) ?? (Te != null ? String(Te) : void 0) : void 0, [_e, p.distributorTitle, Te]), wt = Je(() => {
19620
+ console.log("lockedDisId", Ee);
19621
+ const xt = Je(() => _e ? (p.distributorTitle ? vr(_e, 0, p.distributorTitle) : void 0) ?? (Ee != null ? String(Ee) : void 0) : void 0, [_e, p.distributorTitle, Ee]), wt = Je(() => {
19601
19622
  const P = i ?? [];
19602
- return Te == null || !p.distributorId ? P : P.filter(
19603
- (G, me) => vr(G, me, p.distributorId) == Te
19623
+ return Ee == null || !p.distributorId ? P : P.filter(
19624
+ (G, me) => vr(G, me, p.distributorId) == Ee
19604
19625
  );
19605
- }, [i, Te, p.distributorId]), ct = Je(() => {
19626
+ }, [i, Ee, p.distributorId]), ct = Je(() => {
19606
19627
  if (!F.trim()) return wt;
19607
19628
  const P = F.toLowerCase();
19608
19629
  return wt.filter(
@@ -19633,7 +19654,7 @@ function c5({
19633
19654
  tipoInt: w && D ? 2 : 1,
19634
19655
  correoCliente: G,
19635
19656
  correoAsesor: D ? me : "",
19636
- disIdLocked: Te
19657
+ disIdLocked: Ee
19637
19658
  }), n?.();
19638
19659
  }, te = Je(() => {
19639
19660
  const G = b.split(Na).filter(Boolean).some((me) => Bs.test(me));
@@ -19718,7 +19739,7 @@ function c5({
19718
19739
  style: { width: 24, height: 18 }
19719
19740
  }
19720
19741
  ) : null,
19721
- /* @__PURE__ */ d.jsxs(Ee, { fontWeight: 700, children: [
19742
+ /* @__PURE__ */ d.jsxs(Ae, { fontWeight: 700, children: [
19722
19743
  "Mensaje a",
19723
19744
  " ",
19724
19745
  a ? `${a.Nombre ?? ""} ${a.ApellidoP ?? ""} ${a.ApellidoM ?? ""}`.trim() : "—"
@@ -19842,7 +19863,7 @@ function c5({
19842
19863
  onClick: $,
19843
19864
  children: [
19844
19865
  /* @__PURE__ */ d.jsx(
19845
- Ee,
19866
+ Ae,
19846
19867
  {
19847
19868
  fontSize: 12,
19848
19869
  fontWeight: 600,
@@ -19916,7 +19937,7 @@ function c5({
19916
19937
  },
19917
19938
  String(me)
19918
19939
  );
19919
- }) }) : /* @__PURE__ */ d.jsx(Ee, { fontSize: 13, color: "#5C6372", sx: { mt: 0.5 }, children: "Aún no has seleccionado autos." })
19940
+ }) }) : /* @__PURE__ */ d.jsx(Ae, { fontSize: 13, color: "#5C6372", sx: { mt: 0.5 }, children: "Aún no has seleccionado autos." })
19920
19941
  ] }),
19921
19942
  /* @__PURE__ */ d.jsx(nn, {}),
19922
19943
  /* @__PURE__ */ d.jsxs(Q, { sx: { p: 2 }, children: [
@@ -20088,14 +20109,14 @@ function c5({
20088
20109
  ),
20089
20110
  xt != null && /* @__PURE__ */ d.jsx(Io, { size: "small", label: `Distribuidora: ${xt}` })
20090
20111
  ] }),
20091
- /* @__PURE__ */ d.jsxs(Ee, { variant: "caption", fontWeight: 600, children: [
20112
+ /* @__PURE__ */ d.jsxs(Ae, { variant: "caption", fontWeight: 600, children: [
20092
20113
  "RESULTADOS (",
20093
20114
  ct.length,
20094
20115
  ")"
20095
20116
  ] }),
20096
20117
  /* @__PURE__ */ d.jsxs(Bo, { sx: { p: 0 }, children: [
20097
20118
  ct.map((P, G) => {
20098
- const me = vr(P, G, p.id), Ye = A.includes(String(me)) || A.includes(me), Tt = Te == null || vr(P, G, p.distributorId) == Te;
20119
+ const me = vr(P, G, p.id), Ye = A.includes(String(me)) || A.includes(me), Tt = Ee == null || vr(P, G, p.distributorId) == Ee;
20099
20120
  return /* @__PURE__ */ d.jsx(
20100
20121
  Vo,
20101
20122
  {
@@ -20119,7 +20140,7 @@ function c5({
20119
20140
  String(me)
20120
20141
  );
20121
20142
  }),
20122
- ct.length === 0 && /* @__PURE__ */ d.jsx(Q, { p: 2, children: /* @__PURE__ */ d.jsx(Ee, { children: "Tu búsqueda no generó resultados" }) })
20143
+ ct.length === 0 && /* @__PURE__ */ d.jsx(Q, { p: 2, children: /* @__PURE__ */ d.jsx(Ae, { children: "Tu búsqueda no generó resultados" }) })
20123
20144
  ] })
20124
20145
  ] }),
20125
20146
  /* @__PURE__ */ d.jsxs(Nh, { sx: { px: 3, pb: 2 }, children: [