componentes-exagono 0.1.64 → 0.1.66
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 +261 -247
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
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
|
|
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
|
|
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(
|
|
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 (
|
|
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 (
|
|
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
|
-
|
|
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 (
|
|
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",
|
|
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:
|
|
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:
|
|
12106
|
-
/* @__PURE__ */ d.jsxs("div", { className:
|
|
12107
|
-
/* @__PURE__ */ d.jsxs("div", { className:
|
|
12108
|
-
/* @__PURE__ */ d.jsx("div", { className:
|
|
12109
|
-
/* @__PURE__ */ d.jsxs("div", { className:
|
|
12110
|
-
/* @__PURE__ */ d.jsx("div", { className:
|
|
12111
|
-
/* @__PURE__ */ d.jsxs("div", { className:
|
|
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:
|
|
12119
|
-
/* @__PURE__ */ d.jsx("div", { className:
|
|
12120
|
-
/* @__PURE__ */ d.jsxs("div", { className:
|
|
12121
|
-
/* @__PURE__ */ d.jsx("div", { className:
|
|
12122
|
-
/* @__PURE__ */ d.jsxs("div", { className:
|
|
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:
|
|
12131
|
-
/* @__PURE__ */ d.jsx("h3", { className:
|
|
12132
|
-
/* @__PURE__ */ d.jsx("div", { className:
|
|
12133
|
-
/* @__PURE__ */ d.jsxs("div", { className:
|
|
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:
|
|
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:
|
|
12151
|
-
/* @__PURE__ */ d.jsx("div", { className:
|
|
12152
|
-
/* @__PURE__ */ d.jsx("div", { className:
|
|
12153
|
-
/* @__PURE__ */ d.jsx("div", { className:
|
|
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:
|
|
12177
|
-
/* @__PURE__ */ d.jsxs("button", { onClick: g, className:
|
|
12178
|
-
/* @__PURE__ */ d.jsxs("div", { className:
|
|
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:
|
|
12180
|
+
/* @__PURE__ */ d.jsx("span", { className: Te.calendarCount, children: "1" })
|
|
12181
12181
|
] }),
|
|
12182
|
-
/* @__PURE__ */ d.jsx(t2, { className: `${
|
|
12182
|
+
/* @__PURE__ */ d.jsx(t2, { className: `${Te.chevronIcon} ${f ? Te.collapsed : ""}` })
|
|
12183
12183
|
] }),
|
|
12184
|
-
/* @__PURE__ */ d.jsxs("div", { className: `${
|
|
12185
|
-
/* @__PURE__ */ d.jsxs("div", { className:
|
|
12186
|
-
/* @__PURE__ */ d.jsx("div", { className:
|
|
12187
|
-
/* @__PURE__ */ d.jsx(ju, { size: 16, className:
|
|
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:
|
|
12191
|
-
/* @__PURE__ */ d.jsx("div", { className:
|
|
12192
|
-
/* @__PURE__ */ d.jsx(s2, { size: 16, className:
|
|
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:
|
|
12196
|
-
/* @__PURE__ */ d.jsx(ju, { size: 16, className:
|
|
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:
|
|
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:
|
|
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:
|
|
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),
|
|
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:
|
|
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((
|
|
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()),
|
|
16216
|
-
(_e ||
|
|
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(
|
|
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,
|
|
16321
|
-
onInputChange: (_e,
|
|
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,
|
|
16365
|
-
onInputChange: (_e,
|
|
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(
|
|
16587
|
-
/* @__PURE__ */ d.jsx(
|
|
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(
|
|
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(
|
|
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((
|
|
16765
|
-
const xt = { start:
|
|
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((
|
|
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"),
|
|
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:
|
|
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:
|
|
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: "
|
|
16889
|
-
}), "
|
|
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(
|
|
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",
|
|
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
|
-
|
|
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(
|
|
16997
|
-
/* @__PURE__ */ d.jsx(
|
|
16998
|
-
/* @__PURE__ */ d.jsx(
|
|
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(
|
|
17003
|
-
|
|
17004
|
-
|
|
17005
|
-
{
|
|
17006
|
-
|
|
17007
|
-
|
|
17008
|
-
|
|
17009
|
-
|
|
17010
|
-
|
|
17011
|
-
|
|
17012
|
-
|
|
17013
|
-
|
|
17014
|
-
|
|
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
|
-
|
|
17024
|
-
|
|
17025
|
-
|
|
17026
|
-
|
|
17027
|
-
|
|
17028
|
-
|
|
17029
|
-
|
|
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.
|
|
17032
|
-
|
|
17033
|
-
|
|
17034
|
-
|
|
17035
|
-
|
|
17036
|
-
|
|
17037
|
-
|
|
17038
|
-
|
|
17039
|
-
|
|
17040
|
-
|
|
17041
|
-
|
|
17042
|
-
|
|
17043
|
-
|
|
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
|
-
|
|
17066
|
-
|
|
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
|
-
|
|
17070
|
-
|
|
17071
|
-
|
|
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
|
-
|
|
17078
|
-
|
|
17079
|
-
|
|
17080
|
-
|
|
17081
|
-
|
|
17082
|
-
|
|
17083
|
-
|
|
17084
|
-
|
|
17085
|
-
|
|
17086
|
-
|
|
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), [
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
-
|
|
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(
|
|
17738
|
-
/* @__PURE__ */ d.jsx(
|
|
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(
|
|
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(
|
|
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
|
-
|
|
17842
|
+
Ae,
|
|
17828
17843
|
{
|
|
17829
17844
|
variant: "caption",
|
|
17830
17845
|
color: "text.secondary",
|
|
@@ -17863,44 +17878,28 @@ function gE({
|
|
|
17863
17878
|
zIndex: 10,
|
|
17864
17879
|
pointerEvents: "auto"
|
|
17865
17880
|
},
|
|
17866
|
-
children: /* @__PURE__ */ d.
|
|
17867
|
-
|
|
17868
|
-
|
|
17869
|
-
|
|
17870
|
-
|
|
17871
|
-
|
|
17872
|
-
|
|
17873
|
-
|
|
17874
|
-
|
|
17875
|
-
|
|
17876
|
-
|
|
17877
|
-
|
|
17878
|
-
|
|
17879
|
-
"
|
|
17880
|
-
|
|
17881
|
-
|
|
17882
|
-
|
|
17883
|
-
|
|
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
|
-
/* @__PURE__ */ d.jsx(
|
|
17897
|
-
"iframe",
|
|
17898
|
-
{
|
|
17899
|
-
src: ma || "https://qa2.crm.netcar.com.mx",
|
|
17900
|
-
width: "100%",
|
|
17901
|
-
height: "100%"
|
|
17902
|
-
}
|
|
17903
|
-
)
|
|
17902
|
+
ma && /* @__PURE__ */ d.jsx("iframe", { src: ma, width: "100%", height: "100%" })
|
|
17904
17903
|
]
|
|
17905
17904
|
}
|
|
17906
17905
|
) : /* @__PURE__ */ d.jsxs(Q, { sx: { width: "100%", minHeight: 0, overflowY: "auto" }, children: [
|
|
@@ -17916,7 +17915,7 @@ function gE({
|
|
|
17916
17915
|
},
|
|
17917
17916
|
children: [
|
|
17918
17917
|
/* @__PURE__ */ d.jsx(
|
|
17919
|
-
|
|
17918
|
+
Ae,
|
|
17920
17919
|
{
|
|
17921
17920
|
variant: "h4",
|
|
17922
17921
|
sx: {
|
|
@@ -17988,7 +17987,7 @@ function gE({
|
|
|
17988
17987
|
An,
|
|
17989
17988
|
{
|
|
17990
17989
|
label: /* @__PURE__ */ d.jsx(
|
|
17991
|
-
|
|
17990
|
+
Ae,
|
|
17992
17991
|
{
|
|
17993
17992
|
sx: {
|
|
17994
17993
|
fontSize: 15,
|
|
@@ -18022,7 +18021,7 @@ function gE({
|
|
|
18022
18021
|
}
|
|
18023
18022
|
),
|
|
18024
18023
|
/* @__PURE__ */ d.jsx(
|
|
18025
|
-
|
|
18024
|
+
Ae,
|
|
18026
18025
|
{
|
|
18027
18026
|
sx: {
|
|
18028
18027
|
fontSize: 15,
|
|
@@ -18042,7 +18041,7 @@ function gE({
|
|
|
18042
18041
|
type: "date",
|
|
18043
18042
|
label: "Desde",
|
|
18044
18043
|
InputLabelProps: { shrink: !0 },
|
|
18045
|
-
value:
|
|
18044
|
+
value: Ee,
|
|
18046
18045
|
onChange: (N) => xt(N.target.value),
|
|
18047
18046
|
disabled: !ye,
|
|
18048
18047
|
sx: { width: 170 }
|
|
@@ -18069,6 +18068,7 @@ function gE({
|
|
|
18069
18068
|
Mt,
|
|
18070
18069
|
{
|
|
18071
18070
|
onClick: (N) => R(N.currentTarget),
|
|
18071
|
+
disableRipple: !0,
|
|
18072
18072
|
sx: {
|
|
18073
18073
|
border: "1px solid #d4d7de",
|
|
18074
18074
|
borderRadius: 2,
|
|
@@ -18084,6 +18084,7 @@ function gE({
|
|
|
18084
18084
|
{
|
|
18085
18085
|
variant: "outlined",
|
|
18086
18086
|
onClick: Re,
|
|
18087
|
+
disableRipple: !0,
|
|
18087
18088
|
sx: {
|
|
18088
18089
|
height: 40,
|
|
18089
18090
|
textTransform: "none",
|
|
@@ -18113,6 +18114,7 @@ function gE({
|
|
|
18113
18114
|
onClick: () => {
|
|
18114
18115
|
y?.(t);
|
|
18115
18116
|
},
|
|
18117
|
+
disableRipple: !0,
|
|
18116
18118
|
children: [
|
|
18117
18119
|
/* @__PURE__ */ d.jsx(
|
|
18118
18120
|
fE,
|
|
@@ -18161,7 +18163,7 @@ function gE({
|
|
|
18161
18163
|
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
18162
18164
|
children: /* @__PURE__ */ d.jsxs(pr, { spacing: 1.5, paddingX: 1.5, paddingY: 1, children: [
|
|
18163
18165
|
/* @__PURE__ */ d.jsx(
|
|
18164
|
-
|
|
18166
|
+
Ae,
|
|
18165
18167
|
{
|
|
18166
18168
|
variant: "subtitle2",
|
|
18167
18169
|
sx: { fontWeight: 700, color: "#070C10" },
|
|
@@ -18170,7 +18172,7 @@ function gE({
|
|
|
18170
18172
|
),
|
|
18171
18173
|
/* @__PURE__ */ d.jsxs(Q, { children: [
|
|
18172
18174
|
/* @__PURE__ */ d.jsx(
|
|
18173
|
-
|
|
18175
|
+
Ae,
|
|
18174
18176
|
{
|
|
18175
18177
|
variant: "body2",
|
|
18176
18178
|
sx: { fontWeight: 700, mb: 0.5, color: "#5C6372" },
|
|
@@ -18225,7 +18227,7 @@ function gE({
|
|
|
18225
18227
|
] }),
|
|
18226
18228
|
/* @__PURE__ */ d.jsxs(Q, { children: [
|
|
18227
18229
|
/* @__PURE__ */ d.jsx(
|
|
18228
|
-
|
|
18230
|
+
Ae,
|
|
18229
18231
|
{
|
|
18230
18232
|
variant: "body2",
|
|
18231
18233
|
sx: { fontWeight: 700, mb: 0.5, color: "#5C6372" },
|
|
@@ -18311,7 +18313,7 @@ function Gd(e, n, t) {
|
|
|
18311
18313
|
accessor: (F) => F[r.nombreCliente],
|
|
18312
18314
|
cell: i.nombreCliente,
|
|
18313
18315
|
// opcional si lo definiste
|
|
18314
|
-
width:
|
|
18316
|
+
width: 190
|
|
18315
18317
|
},
|
|
18316
18318
|
email: {
|
|
18317
18319
|
key: "email",
|
|
@@ -18321,7 +18323,7 @@ function Gd(e, n, t) {
|
|
|
18321
18323
|
const K = String(F[r.email] ?? "");
|
|
18322
18324
|
return K ? /* @__PURE__ */ d.jsx("a", { href: `mailto:${K}`, children: K }) : /* @__PURE__ */ d.jsx("span", { className: "text-muted", children: "—" });
|
|
18323
18325
|
}),
|
|
18324
|
-
width:
|
|
18326
|
+
width: 230
|
|
18325
18327
|
},
|
|
18326
18328
|
acciones: s.acciones ? void 0 : {
|
|
18327
18329
|
key: "acciones",
|
|
@@ -18928,7 +18930,7 @@ const EE = yt(/* @__PURE__ */ d.jsx("path", {
|
|
|
18928
18930
|
)
|
|
18929
18931
|
] }),
|
|
18930
18932
|
/* @__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(
|
|
18933
|
+
/* @__PURE__ */ d.jsx(Ae, { variant: "body2", children: "Mostrar" }),
|
|
18932
18934
|
/* @__PURE__ */ d.jsx(nf, { size: "small", sx: { minWidth: 72 }, children: /* @__PURE__ */ d.jsx(
|
|
18933
18935
|
rf,
|
|
18934
18936
|
{
|
|
@@ -18938,7 +18940,7 @@ const EE = yt(/* @__PURE__ */ d.jsx("path", {
|
|
|
18938
18940
|
children: a.map((m) => /* @__PURE__ */ d.jsx(Hs, { value: m, children: m === "Todos" ? "Todos" : m }, String(m)))
|
|
18939
18941
|
}
|
|
18940
18942
|
) }),
|
|
18941
|
-
/* @__PURE__ */ d.jsx(
|
|
18943
|
+
/* @__PURE__ */ d.jsx(Ae, { variant: "body2", children: "por página" })
|
|
18942
18944
|
] })
|
|
18943
18945
|
]
|
|
18944
18946
|
}
|
|
@@ -19033,7 +19035,7 @@ function s5(e) {
|
|
|
19033
19035
|
W([I]), h?.({
|
|
19034
19036
|
items: q
|
|
19035
19037
|
});
|
|
19036
|
-
},
|
|
19038
|
+
}, Ee = (I) => z.includes(I), xt = async (I) => {
|
|
19037
19039
|
try {
|
|
19038
19040
|
await o?.(I), b.reset(b.getValues());
|
|
19039
19041
|
} catch (q) {
|
|
@@ -19058,7 +19060,7 @@ function s5(e) {
|
|
|
19058
19060
|
PaperProps: {
|
|
19059
19061
|
sx: {
|
|
19060
19062
|
height: { xs: "100dvh", md: L ? "90vw" : "auto" },
|
|
19061
|
-
maxWidth: { xs: "100vw", md: L ? "98vw" : "
|
|
19063
|
+
maxWidth: { xs: "100vw", md: L ? "98vw" : "50%" },
|
|
19062
19064
|
overflow: "hidden",
|
|
19063
19065
|
display: "flex",
|
|
19064
19066
|
flexDirection: "column",
|
|
@@ -19114,7 +19116,7 @@ function s5(e) {
|
|
|
19114
19116
|
}
|
|
19115
19117
|
},
|
|
19116
19118
|
children: [
|
|
19117
|
-
/* @__PURE__ */ d.jsx(
|
|
19119
|
+
/* @__PURE__ */ d.jsx(Ae, { fontWeight: 700, fontSize: 20, children: t.title }),
|
|
19118
19120
|
/* @__PURE__ */ d.jsxs(
|
|
19119
19121
|
Q,
|
|
19120
19122
|
{
|
|
@@ -19125,7 +19127,7 @@ function s5(e) {
|
|
|
19125
19127
|
paddingBottom: 10
|
|
19126
19128
|
},
|
|
19127
19129
|
children: [
|
|
19128
|
-
/* @__PURE__ */ d.jsx(
|
|
19130
|
+
/* @__PURE__ */ d.jsx(Ae, { fontSize: "18px", mt: 2.5, fontWeight: 500, children: t.subTitle }),
|
|
19129
19131
|
/* @__PURE__ */ d.jsx(
|
|
19130
19132
|
Q,
|
|
19131
19133
|
{
|
|
@@ -19141,6 +19143,7 @@ function s5(e) {
|
|
|
19141
19143
|
spacing: 2,
|
|
19142
19144
|
alignItems: "flex-start",
|
|
19143
19145
|
wrap: "wrap",
|
|
19146
|
+
width: "100%",
|
|
19144
19147
|
children: I.map((ve, Re) => {
|
|
19145
19148
|
const P = typeof ve == "string" ? { name: ve } : ve;
|
|
19146
19149
|
return P.hidden?.(b) ? null : ct(
|
|
@@ -19152,7 +19155,16 @@ function s5(e) {
|
|
|
19152
19155
|
`row-${q}`
|
|
19153
19156
|
)) : /* @__PURE__ */ d.jsx(ze, { container: !0, spacing: 2, width: "100%", children: r?.map((I, q) => {
|
|
19154
19157
|
const ve = I.grid ?? { xs: 12, md: 12 };
|
|
19155
|
-
return /* @__PURE__ */ d.jsx(
|
|
19158
|
+
return /* @__PURE__ */ d.jsx(
|
|
19159
|
+
ze,
|
|
19160
|
+
{
|
|
19161
|
+
item: !0,
|
|
19162
|
+
...ve,
|
|
19163
|
+
width: "100%",
|
|
19164
|
+
children: I.render ? I.render(b) : Qd(I, b)
|
|
19165
|
+
},
|
|
19166
|
+
`${String(I.name)}-${q}`
|
|
19167
|
+
);
|
|
19156
19168
|
}) })
|
|
19157
19169
|
}
|
|
19158
19170
|
)
|
|
@@ -19176,12 +19188,14 @@ function s5(e) {
|
|
|
19176
19188
|
p: 1,
|
|
19177
19189
|
backgroundColor: "#fff"
|
|
19178
19190
|
},
|
|
19179
|
-
children: /* @__PURE__ */ d.jsx(
|
|
19191
|
+
children: /* @__PURE__ */ d.jsx(Q, { display: "flex", alignItems: "center", children: /* @__PURE__ */ d.jsx(
|
|
19180
19192
|
Q,
|
|
19181
19193
|
{
|
|
19182
19194
|
display: "flex",
|
|
19183
|
-
|
|
19184
|
-
|
|
19195
|
+
gap: 1.5,
|
|
19196
|
+
width: "100%",
|
|
19197
|
+
justifyContent: c ? "flex-end" : "center",
|
|
19198
|
+
children: /* @__PURE__ */ d.jsx(
|
|
19185
19199
|
Rt,
|
|
19186
19200
|
{
|
|
19187
19201
|
type: "submit",
|
|
@@ -19200,9 +19214,9 @@ function s5(e) {
|
|
|
19200
19214
|
},
|
|
19201
19215
|
children: s
|
|
19202
19216
|
}
|
|
19203
|
-
)
|
|
19217
|
+
)
|
|
19204
19218
|
}
|
|
19205
|
-
)
|
|
19219
|
+
) })
|
|
19206
19220
|
}
|
|
19207
19221
|
)
|
|
19208
19222
|
]
|
|
@@ -19368,7 +19382,7 @@ function s5(e) {
|
|
|
19368
19382
|
sx: { borderColor: "transparent", padding: 0 },
|
|
19369
19383
|
children: [
|
|
19370
19384
|
pe?.map((I, q) => {
|
|
19371
|
-
const ve = f ? f(I) : q, Re =
|
|
19385
|
+
const ve = f ? f(I) : q, Re = Ee(ve);
|
|
19372
19386
|
return /* @__PURE__ */ d.jsx(
|
|
19373
19387
|
Q,
|
|
19374
19388
|
{
|
|
@@ -19407,7 +19421,7 @@ function s5(e) {
|
|
|
19407
19421
|
`${String(ve)}`
|
|
19408
19422
|
);
|
|
19409
19423
|
}),
|
|
19410
|
-
!pe?.length && /* @__PURE__ */ d.jsx(Q, { p: 3, children: /* @__PURE__ */ d.jsxs(
|
|
19424
|
+
!pe?.length && /* @__PURE__ */ d.jsx(Q, { p: 3, children: /* @__PURE__ */ d.jsxs(Ae, { fontSize: 14, color: "#5C6372", children: [
|
|
19411
19425
|
"Sin resultados para “",
|
|
19412
19426
|
k,
|
|
19413
19427
|
"”."
|
|
@@ -19592,17 +19606,17 @@ function c5({
|
|
|
19592
19606
|
ie(G.map((me) => ({ name: me.name, size: me.size, file: me }))), P.target.value = "";
|
|
19593
19607
|
}, Ce = A[0], _e = Je(() => !i || Ce === void 0 ? void 0 : i.find(
|
|
19594
19608
|
(G, me) => String(vr(G, me, p.id)) === String(Ce)
|
|
19595
|
-
), [i, Ce, p.id]),
|
|
19609
|
+
), [i, Ce, p.id]), Ee = Je(() => {
|
|
19596
19610
|
if (!(!_e || !p.distributorId))
|
|
19597
19611
|
return vr(_e, 0, p.distributorId);
|
|
19598
19612
|
}, [_e, p.distributorId]);
|
|
19599
|
-
console.log("lockedDisId",
|
|
19600
|
-
const xt = Je(() => _e ? (p.distributorTitle ? vr(_e, 0, p.distributorTitle) : void 0) ?? (
|
|
19613
|
+
console.log("lockedDisId", Ee);
|
|
19614
|
+
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
19615
|
const P = i ?? [];
|
|
19602
|
-
return
|
|
19603
|
-
(G, me) => vr(G, me, p.distributorId) ==
|
|
19616
|
+
return Ee == null || !p.distributorId ? P : P.filter(
|
|
19617
|
+
(G, me) => vr(G, me, p.distributorId) == Ee
|
|
19604
19618
|
);
|
|
19605
|
-
}, [i,
|
|
19619
|
+
}, [i, Ee, p.distributorId]), ct = Je(() => {
|
|
19606
19620
|
if (!F.trim()) return wt;
|
|
19607
19621
|
const P = F.toLowerCase();
|
|
19608
19622
|
return wt.filter(
|
|
@@ -19633,7 +19647,7 @@ function c5({
|
|
|
19633
19647
|
tipoInt: w && D ? 2 : 1,
|
|
19634
19648
|
correoCliente: G,
|
|
19635
19649
|
correoAsesor: D ? me : "",
|
|
19636
|
-
disIdLocked:
|
|
19650
|
+
disIdLocked: Ee
|
|
19637
19651
|
}), n?.();
|
|
19638
19652
|
}, te = Je(() => {
|
|
19639
19653
|
const G = b.split(Na).filter(Boolean).some((me) => Bs.test(me));
|
|
@@ -19718,7 +19732,7 @@ function c5({
|
|
|
19718
19732
|
style: { width: 24, height: 18 }
|
|
19719
19733
|
}
|
|
19720
19734
|
) : null,
|
|
19721
|
-
/* @__PURE__ */ d.jsxs(
|
|
19735
|
+
/* @__PURE__ */ d.jsxs(Ae, { fontWeight: 700, children: [
|
|
19722
19736
|
"Mensaje a",
|
|
19723
19737
|
" ",
|
|
19724
19738
|
a ? `${a.Nombre ?? ""} ${a.ApellidoP ?? ""} ${a.ApellidoM ?? ""}`.trim() : "—"
|
|
@@ -19842,7 +19856,7 @@ function c5({
|
|
|
19842
19856
|
onClick: $,
|
|
19843
19857
|
children: [
|
|
19844
19858
|
/* @__PURE__ */ d.jsx(
|
|
19845
|
-
|
|
19859
|
+
Ae,
|
|
19846
19860
|
{
|
|
19847
19861
|
fontSize: 12,
|
|
19848
19862
|
fontWeight: 600,
|
|
@@ -19916,7 +19930,7 @@ function c5({
|
|
|
19916
19930
|
},
|
|
19917
19931
|
String(me)
|
|
19918
19932
|
);
|
|
19919
|
-
}) }) : /* @__PURE__ */ d.jsx(
|
|
19933
|
+
}) }) : /* @__PURE__ */ d.jsx(Ae, { fontSize: 13, color: "#5C6372", sx: { mt: 0.5 }, children: "Aún no has seleccionado autos." })
|
|
19920
19934
|
] }),
|
|
19921
19935
|
/* @__PURE__ */ d.jsx(nn, {}),
|
|
19922
19936
|
/* @__PURE__ */ d.jsxs(Q, { sx: { p: 2 }, children: [
|
|
@@ -20088,14 +20102,14 @@ function c5({
|
|
|
20088
20102
|
),
|
|
20089
20103
|
xt != null && /* @__PURE__ */ d.jsx(Io, { size: "small", label: `Distribuidora: ${xt}` })
|
|
20090
20104
|
] }),
|
|
20091
|
-
/* @__PURE__ */ d.jsxs(
|
|
20105
|
+
/* @__PURE__ */ d.jsxs(Ae, { variant: "caption", fontWeight: 600, children: [
|
|
20092
20106
|
"RESULTADOS (",
|
|
20093
20107
|
ct.length,
|
|
20094
20108
|
")"
|
|
20095
20109
|
] }),
|
|
20096
20110
|
/* @__PURE__ */ d.jsxs(Bo, { sx: { p: 0 }, children: [
|
|
20097
20111
|
ct.map((P, G) => {
|
|
20098
|
-
const me = vr(P, G, p.id), Ye = A.includes(String(me)) || A.includes(me), Tt =
|
|
20112
|
+
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
20113
|
return /* @__PURE__ */ d.jsx(
|
|
20100
20114
|
Vo,
|
|
20101
20115
|
{
|
|
@@ -20119,7 +20133,7 @@ function c5({
|
|
|
20119
20133
|
String(me)
|
|
20120
20134
|
);
|
|
20121
20135
|
}),
|
|
20122
|
-
ct.length === 0 && /* @__PURE__ */ d.jsx(Q, { p: 2, children: /* @__PURE__ */ d.jsx(
|
|
20136
|
+
ct.length === 0 && /* @__PURE__ */ d.jsx(Q, { p: 2, children: /* @__PURE__ */ d.jsx(Ae, { children: "Tu búsqueda no generó resultados" }) })
|
|
20123
20137
|
] })
|
|
20124
20138
|
] }),
|
|
20125
20139
|
/* @__PURE__ */ d.jsxs(Nh, { sx: { px: 3, pb: 2 }, children: [
|