componentes-exagono 0.1.63 → 0.1.64
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 +312 -303
- package/dist/index.umd.js +1 -1
- 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
|
|
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";
|
|
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";
|
|
@@ -134,14 +134,14 @@ function rm() {
|
|
|
134
134
|
}
|
|
135
135
|
return null;
|
|
136
136
|
}
|
|
137
|
-
var A = Object.assign, $ = 0, H,
|
|
137
|
+
var A = Object.assign, $ = 0, H, X, ee, he, B, U, ie;
|
|
138
138
|
function se() {
|
|
139
139
|
}
|
|
140
140
|
se.__reactDisabledLog = !0;
|
|
141
141
|
function fe() {
|
|
142
142
|
{
|
|
143
143
|
if ($ === 0) {
|
|
144
|
-
H = console.log,
|
|
144
|
+
H = console.log, X = console.info, ee = console.warn, he = console.error, B = console.group, U = console.groupCollapsed, ie = console.groupEnd;
|
|
145
145
|
var C = {
|
|
146
146
|
configurable: !0,
|
|
147
147
|
enumerable: !0,
|
|
@@ -174,7 +174,7 @@ function rm() {
|
|
|
174
174
|
value: H
|
|
175
175
|
}),
|
|
176
176
|
info: A({}, C, {
|
|
177
|
-
value:
|
|
177
|
+
value: X
|
|
178
178
|
}),
|
|
179
179
|
warn: A({}, C, {
|
|
180
180
|
value: ee
|
|
@@ -322,7 +322,7 @@ function rm() {
|
|
|
322
322
|
}
|
|
323
323
|
return "";
|
|
324
324
|
}
|
|
325
|
-
var
|
|
325
|
+
var Te = 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(Te);
|
|
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 (Te.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 (Te.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
|
+
Te.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 (Te.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}";
|
|
@@ -796,7 +796,7 @@ function ym() {
|
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
798
|
}
|
|
799
|
-
var _ = c, D = l, O = s, z = i, W = n, F = u, K = r, v = m, M = g, A = t, $ = a, H = o,
|
|
799
|
+
var _ = c, D = l, O = s, z = i, W = n, F = u, K = r, v = m, M = g, A = t, $ = a, H = o, X = f, ee = !1;
|
|
800
800
|
function he(T) {
|
|
801
801
|
return ee || (ee = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), B(T) || w(T) === c;
|
|
802
802
|
}
|
|
@@ -836,7 +836,7 @@ function ym() {
|
|
|
836
836
|
function oe(T) {
|
|
837
837
|
return w(T) === f;
|
|
838
838
|
}
|
|
839
|
-
Ue.AsyncMode = _, Ue.ConcurrentMode = D, Ue.ContextConsumer = O, Ue.ContextProvider = z, Ue.Element = W, Ue.ForwardRef = F, Ue.Fragment = K, Ue.Lazy = v, Ue.Memo = M, Ue.Portal = A, Ue.Profiler = $, Ue.StrictMode = H, Ue.Suspense =
|
|
839
|
+
Ue.AsyncMode = _, Ue.ConcurrentMode = D, Ue.ContextConsumer = O, Ue.ContextProvider = z, Ue.Element = W, Ue.ForwardRef = F, Ue.Fragment = K, Ue.Lazy = v, Ue.Memo = M, Ue.Portal = A, Ue.Profiler = $, Ue.StrictMode = H, Ue.Suspense = X, Ue.isAsyncMode = he, Ue.isConcurrentMode = B, Ue.isContextConsumer = U, Ue.isContextProvider = ie, Ue.isElement = se, Ue.isForwardRef = fe, Ue.isFragment = pe, Ue.isLazy = de, Ue.isMemo = ue, Ue.isPortal = xe, Ue.isProfiler = ke, Ue.isStrictMode = ye, Ue.isSuspense = oe, Ue.isValidElementType = k, Ue.typeOf = w;
|
|
840
840
|
})()), Ue;
|
|
841
841
|
}
|
|
842
842
|
var Dl;
|
|
@@ -1033,7 +1033,7 @@ function wm() {
|
|
|
1033
1033
|
function U(ie, se, fe, pe, de, ue) {
|
|
1034
1034
|
var xe = ie[se], ke = H(xe);
|
|
1035
1035
|
if (ke !== B) {
|
|
1036
|
-
var ye =
|
|
1036
|
+
var ye = X(xe);
|
|
1037
1037
|
return new h(
|
|
1038
1038
|
"Invalid " + pe + " `" + de + "` of type " + ("`" + ye + "` supplied to `" + fe + "`, expected ") + ("`" + B + "`."),
|
|
1039
1039
|
{ expectedType: B }
|
|
@@ -1106,7 +1106,7 @@ function wm() {
|
|
|
1106
1106
|
if (m(ue, B[xe]))
|
|
1107
1107
|
return null;
|
|
1108
1108
|
var ke = JSON.stringify(B, function(oe, T) {
|
|
1109
|
-
var ne =
|
|
1109
|
+
var ne = X(T);
|
|
1110
1110
|
return ne === "symbol" ? String(T) : T;
|
|
1111
1111
|
});
|
|
1112
1112
|
return new h("Invalid " + pe + " `" + de + "` of value `" + String(ue) + "` " + ("supplied to `" + fe + "`, expected one of " + ke + "."));
|
|
@@ -1171,7 +1171,7 @@ function wm() {
|
|
|
1171
1171
|
for (var ke in B) {
|
|
1172
1172
|
var ye = B[ke];
|
|
1173
1173
|
if (typeof ye != "function")
|
|
1174
|
-
return K(fe, pe, de, ke,
|
|
1174
|
+
return K(fe, pe, de, ke, X(ye));
|
|
1175
1175
|
var oe = ye(ue, ke, fe, pe, de + "." + ke, t);
|
|
1176
1176
|
if (oe)
|
|
1177
1177
|
return oe;
|
|
@@ -1189,7 +1189,7 @@ function wm() {
|
|
|
1189
1189
|
for (var ye in ke) {
|
|
1190
1190
|
var oe = B[ye];
|
|
1191
1191
|
if (r(B, ye) && typeof oe != "function")
|
|
1192
|
-
return K(fe, pe, de, ye,
|
|
1192
|
+
return K(fe, pe, de, ye, X(oe));
|
|
1193
1193
|
if (!oe)
|
|
1194
1194
|
return new h(
|
|
1195
1195
|
"Invalid " + pe + " `" + de + "` key `" + ye + "` supplied to `" + fe + "`.\nBad object: " + JSON.stringify(ie[se], null, " ") + `
|
|
@@ -1243,7 +1243,7 @@ Valid keys: ` + JSON.stringify(Object.keys(B), null, " ")
|
|
|
1243
1243
|
var U = typeof B;
|
|
1244
1244
|
return Array.isArray(B) ? "array" : B instanceof RegExp ? "object" : $(U, B) ? "symbol" : U;
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1246
|
+
function X(B) {
|
|
1247
1247
|
if (typeof B > "u" || B === null)
|
|
1248
1248
|
return "" + B;
|
|
1249
1249
|
var U = H(B);
|
|
@@ -1256,7 +1256,7 @@ Valid keys: ` + JSON.stringify(Object.keys(B), null, " ")
|
|
|
1256
1256
|
return U;
|
|
1257
1257
|
}
|
|
1258
1258
|
function ee(B) {
|
|
1259
|
-
var U =
|
|
1259
|
+
var U = X(B);
|
|
1260
1260
|
switch (U) {
|
|
1261
1261
|
case "array":
|
|
1262
1262
|
case "object":
|
|
@@ -3674,8 +3674,8 @@ function Eg(e = {}) {
|
|
|
3674
3674
|
if (!$)
|
|
3675
3675
|
return null;
|
|
3676
3676
|
const H = {};
|
|
3677
|
-
for (const
|
|
3678
|
-
H[
|
|
3677
|
+
for (const X in $)
|
|
3678
|
+
H[X] = Ua(M, $[X], M.theme.modularCssLayers ? "theme" : void 0);
|
|
3679
3679
|
return g(M, H);
|
|
3680
3680
|
}), l && !y && W.push(function(M) {
|
|
3681
3681
|
const $ = M.theme?.components?.[l]?.variants;
|
|
@@ -4879,16 +4879,16 @@ function Cv(e = {}, ...n) {
|
|
|
4879
4879
|
};
|
|
4880
4880
|
Object.keys(D.colorSchemes).forEach((K) => {
|
|
4881
4881
|
const v = D.colorSchemes[K].palette, M = ($) => {
|
|
4882
|
-
const H = $.split("-"),
|
|
4883
|
-
return g($, v[
|
|
4882
|
+
const H = $.split("-"), X = H[1], ee = H[2];
|
|
4883
|
+
return g($, v[X][ee]);
|
|
4884
4884
|
};
|
|
4885
4885
|
v.mode === "light" && (V(v.common, "background", "#fff"), V(v.common, "onBackground", "#000")), v.mode === "dark" && (V(v.common, "background", "#000"), V(v.common, "onBackground", "#fff"));
|
|
4886
|
-
function A($, H,
|
|
4886
|
+
function A($, H, X) {
|
|
4887
4887
|
if (w) {
|
|
4888
4888
|
let ee;
|
|
4889
|
-
return $ === wn && (ee = `transparent ${((1 -
|
|
4889
|
+
return $ === wn && (ee = `transparent ${((1 - X) * 100).toFixed(0)}%`), $ === Ze && (ee = `#000 ${(X * 100).toFixed(0)}%`), $ === Ke && (ee = `#fff ${(X * 100).toFixed(0)}%`), `color-mix(in ${w}, ${H}, ${ee})`;
|
|
4890
4890
|
}
|
|
4891
|
-
return $(H,
|
|
4891
|
+
return $(H, X);
|
|
4892
4892
|
}
|
|
4893
4893
|
if (wv(v, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), v.mode === "light") {
|
|
4894
4894
|
V(v.Alert, "errorColor", A(Ze, v.error.light, 0.6)), V(v.Alert, "infoColor", A(Ze, v.info.light, 0.6)), V(v.Alert, "successColor", A(Ze, v.success.light, 0.6)), V(v.Alert, "warningColor", A(Ze, v.warning.light, 0.6)), V(v.Alert, "errorFilledBg", M("palette-error-main")), V(v.Alert, "infoFilledBg", M("palette-info-main")), V(v.Alert, "successFilledBg", M("palette-success-main")), V(v.Alert, "warningFilledBg", M("palette-warning-main")), V(v.Alert, "errorFilledColor", Er(() => v.getContrastText(v.error.main))), V(v.Alert, "infoFilledColor", Er(() => v.getContrastText(v.info.main))), V(v.Alert, "successFilledColor", Er(() => v.getContrastText(v.success.main))), V(v.Alert, "warningFilledColor", Er(() => v.getContrastText(v.warning.main))), V(v.Alert, "errorStandardBg", A(Ke, v.error.light, 0.9)), V(v.Alert, "infoStandardBg", A(Ke, v.info.light, 0.9)), V(v.Alert, "successStandardBg", A(Ke, v.success.light, 0.9)), V(v.Alert, "warningStandardBg", A(Ke, v.warning.light, 0.9)), V(v.Alert, "errorIconColor", M("palette-error-main")), V(v.Alert, "infoIconColor", M("palette-info-main")), V(v.Alert, "successIconColor", M("palette-success-main")), V(v.Alert, "warningIconColor", M("palette-warning-main")), V(v.AppBar, "defaultBg", M("palette-grey-100")), V(v.Avatar, "defaultBg", M("palette-grey-400")), V(v.Button, "inheritContainedBg", M("palette-grey-300")), V(v.Button, "inheritContainedHoverBg", M("palette-grey-A100")), V(v.Chip, "defaultBorder", M("palette-grey-400")), V(v.Chip, "defaultAvatarColor", M("palette-grey-700")), V(v.Chip, "defaultIconColor", M("palette-grey-700")), V(v.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), V(v.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), V(v.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), V(v.LinearProgress, "primaryBg", A(Ke, v.primary.main, 0.62)), V(v.LinearProgress, "secondaryBg", A(Ke, v.secondary.main, 0.62)), V(v.LinearProgress, "errorBg", A(Ke, v.error.main, 0.62)), V(v.LinearProgress, "infoBg", A(Ke, v.info.main, 0.62)), V(v.LinearProgress, "successBg", A(Ke, v.success.main, 0.62)), V(v.LinearProgress, "warningBg", A(Ke, v.warning.main, 0.62)), V(v.Skeleton, "bg", w ? A(wn, v.text.primary, 0.11) : `rgba(${M("palette-text-primaryChannel")} / 0.11)`), V(v.Slider, "primaryTrack", A(Ke, v.primary.main, 0.62)), V(v.Slider, "secondaryTrack", A(Ke, v.secondary.main, 0.62)), V(v.Slider, "errorTrack", A(Ke, v.error.main, 0.62)), V(v.Slider, "infoTrack", A(Ke, v.info.main, 0.62)), V(v.Slider, "successTrack", A(Ke, v.success.main, 0.62)), V(v.Slider, "warningTrack", A(Ke, v.warning.main, 0.62));
|
|
@@ -5681,14 +5681,14 @@ const wy = (e) => ({
|
|
|
5681
5681
|
}, g = Bc(o), m = zc(g), h = await i.getDimensions(l), y = g === "y", x = y ? "top" : "left", b = y ? "bottom" : "right", k = y ? "clientHeight" : "clientWidth", w = a.reference[m] + a.reference[g] - p[g] - a.floating[m], _ = p[g] - a.reference[g], D = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l));
|
|
5682
5682
|
let O = D ? D[k] : 0;
|
|
5683
5683
|
(!O || !await (i.isElement == null ? void 0 : i.isElement(D))) && (O = s.floating[k] || a.floating[m]);
|
|
5684
|
-
const z = w / 2 - _ / 2, W = O / 2 - h[m] / 2 - 1, F = co(f[x], W), K = co(f[b], W), v = F, M = O - h[m] - K, A = O / 2 - h[m] / 2 + z, $ = ny(v, A, M), H = !c.arrow && ia(o) != null && A !== $ && a.reference[m] / 2 - (A < v ? F : K) - h[m] / 2 < 0,
|
|
5684
|
+
const z = w / 2 - _ / 2, W = O / 2 - h[m] / 2 - 1, F = co(f[x], W), K = co(f[b], W), v = F, M = O - h[m] - K, A = O / 2 - h[m] / 2 + z, $ = ny(v, A, M), H = !c.arrow && ia(o) != null && A !== $ && a.reference[m] / 2 - (A < v ? F : K) - h[m] / 2 < 0, X = H ? A < v ? A - v : A - M : 0;
|
|
5685
5685
|
return {
|
|
5686
|
-
[g]: p[g] +
|
|
5686
|
+
[g]: p[g] + X,
|
|
5687
5687
|
data: {
|
|
5688
5688
|
[g]: $,
|
|
5689
|
-
centerOffset: A - $ -
|
|
5689
|
+
centerOffset: A - $ - X,
|
|
5690
5690
|
...H && {
|
|
5691
|
-
alignmentOffset:
|
|
5691
|
+
alignmentOffset: X
|
|
5692
5692
|
}
|
|
5693
5693
|
},
|
|
5694
5694
|
reset: H
|
|
@@ -5744,12 +5744,12 @@ const wy = (e) => ({
|
|
|
5744
5744
|
placement: $
|
|
5745
5745
|
}
|
|
5746
5746
|
};
|
|
5747
|
-
let H = (v = F.filter((
|
|
5747
|
+
let H = (v = F.filter((X) => X.overflows[0] <= 0).sort((X, ee) => X.overflows[1] - ee.overflows[1])[0]) == null ? void 0 : v.placement;
|
|
5748
5748
|
if (!H)
|
|
5749
5749
|
switch (g) {
|
|
5750
5750
|
case "bestFit": {
|
|
5751
5751
|
var M;
|
|
5752
|
-
const
|
|
5752
|
+
const X = (M = F.filter((ee) => {
|
|
5753
5753
|
if (D) {
|
|
5754
5754
|
const he = kn(ee.placement);
|
|
5755
5755
|
return he === b || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -5758,7 +5758,7 @@ const wy = (e) => ({
|
|
|
5758
5758
|
}
|
|
5759
5759
|
return !0;
|
|
5760
5760
|
}).map((ee) => [ee.placement, ee.overflows.filter((he) => he > 0).reduce((he, B) => he + B, 0)]).sort((ee, he) => ee[1] - he[1])[0]) == null ? void 0 : M[0];
|
|
5761
|
-
|
|
5761
|
+
X && (H = X);
|
|
5762
5762
|
break;
|
|
5763
5763
|
}
|
|
5764
5764
|
case "initialPlacement":
|
|
@@ -6330,7 +6330,7 @@ function Ky(e) {
|
|
|
6330
6330
|
}), [b, k]), H = re.useMemo(() => ({
|
|
6331
6331
|
reference: w,
|
|
6332
6332
|
floating: _
|
|
6333
|
-
}), [w, _]),
|
|
6333
|
+
}), [w, _]), X = re.useMemo(() => {
|
|
6334
6334
|
const ee = {
|
|
6335
6335
|
position: t,
|
|
6336
6336
|
left: 0,
|
|
@@ -6356,8 +6356,8 @@ function Ky(e) {
|
|
|
6356
6356
|
update: M,
|
|
6357
6357
|
refs: $,
|
|
6358
6358
|
elements: H,
|
|
6359
|
-
floatingStyles:
|
|
6360
|
-
}), [u, M, $, H,
|
|
6359
|
+
floatingStyles: X
|
|
6360
|
+
}), [u, M, $, H, X]);
|
|
6361
6361
|
}
|
|
6362
6362
|
const qy = (e) => {
|
|
6363
6363
|
function n(t) {
|
|
@@ -6465,7 +6465,7 @@ const ab = /* @__PURE__ */ re.forwardRef(function(n, t) {
|
|
|
6465
6465
|
const z = u * 2, W = z / 2, F = s / 2 * (l / -8 + 1), K = c / 2 * l / 4, v = !!g, M = O && _ === "end" ? "bottom" : "top";
|
|
6466
6466
|
let A = O && _ === "end" ? "right" : "left";
|
|
6467
6467
|
O && b && (A = _ === "end" ? "left" : "right");
|
|
6468
|
-
const $ = a?.x != null ? O || a.x : "", H = a?.y != null ? O || a.y : "",
|
|
6468
|
+
const $ = a?.x != null ? O || a.x : "", H = a?.y != null ? O || a.y : "", X = g || "M0,0" + (" H" + s) + (" L" + (s - F) + "," + (c - K)) + (" Q" + s / 2 + "," + c + " " + F + "," + (c - K)) + " Z", ee = {
|
|
6469
6469
|
top: v ? "rotate(180deg)" : "",
|
|
6470
6470
|
left: v ? "rotate(90deg)" : "rotate(-90deg)",
|
|
6471
6471
|
bottom: v ? "" : "rotate(180deg)",
|
|
@@ -6492,10 +6492,10 @@ const ab = /* @__PURE__ */ re.forwardRef(function(n, t) {
|
|
|
6492
6492
|
fill: "none",
|
|
6493
6493
|
stroke: p,
|
|
6494
6494
|
strokeWidth: z + (g ? 0 : 1),
|
|
6495
|
-
d:
|
|
6495
|
+
d: X
|
|
6496
6496
|
}), /* @__PURE__ */ d.jsx("path", {
|
|
6497
6497
|
stroke: z && !g ? y.fill : "none",
|
|
6498
|
-
d:
|
|
6498
|
+
d: X
|
|
6499
6499
|
}), /* @__PURE__ */ d.jsx("clipPath", {
|
|
6500
6500
|
id: x,
|
|
6501
6501
|
children: /* @__PURE__ */ d.jsx("rect", {
|
|
@@ -7601,17 +7601,17 @@ var zb = (
|
|
|
7601
7601
|
}
|
|
7602
7602
|
if (f && $ < f) {
|
|
7603
7603
|
K = ce.ArrowRight;
|
|
7604
|
-
var
|
|
7605
|
-
$ =
|
|
7604
|
+
var X = b(K, $, H);
|
|
7605
|
+
$ = X.newCalculatedDate, H = X.newCalculatedMonth;
|
|
7606
7606
|
}
|
|
7607
7607
|
if (p && $ > p) {
|
|
7608
7608
|
K = ce.ArrowLeft;
|
|
7609
|
-
var
|
|
7610
|
-
$ =
|
|
7609
|
+
var X = b(K, $, H);
|
|
7610
|
+
$ = X.newCalculatedDate, H = X.newCalculatedMonth;
|
|
7611
7611
|
}
|
|
7612
7612
|
if (kb($, t.props)) {
|
|
7613
|
-
var
|
|
7614
|
-
$ =
|
|
7613
|
+
var X = b(K, $, H);
|
|
7614
|
+
$ = X.newCalculatedDate, H = X.newCalculatedMonth;
|
|
7615
7615
|
} else
|
|
7616
7616
|
v = !0;
|
|
7617
7617
|
M++;
|
|
@@ -9113,37 +9113,37 @@ var Es = "Date input not valid.", s1 = (
|
|
|
9113
9113
|
var a, i, s, c, l, u, f = r.props, p = f.minDate, g = f.maxDate, m = f.disabledKeyboardNavigation, h = f.showWeekPicker, y = f.shouldCloseOnSelect, x = f.locale, b = f.calendarStartDay, k = f.adjustDateOnChange, w = f.inline;
|
|
9114
9114
|
if ((i = (a = r.props).onKeyDown) === null || i === void 0 || i.call(a, o), !m) {
|
|
9115
9115
|
var _ = o.key, D = o.shiftKey, O = He(r.state.preSelection), z = function($, H) {
|
|
9116
|
-
var
|
|
9116
|
+
var X = H;
|
|
9117
9117
|
switch ($) {
|
|
9118
9118
|
case ce.ArrowRight:
|
|
9119
|
-
|
|
9119
|
+
X = h ? Ys(H, 1) : Gr(H, 1);
|
|
9120
9120
|
break;
|
|
9121
9121
|
case ce.ArrowLeft:
|
|
9122
|
-
|
|
9122
|
+
X = h ? yl(H, 1) : Vh(H, 1);
|
|
9123
9123
|
break;
|
|
9124
9124
|
case ce.ArrowUp:
|
|
9125
|
-
|
|
9125
|
+
X = yl(H, 1);
|
|
9126
9126
|
break;
|
|
9127
9127
|
case ce.ArrowDown:
|
|
9128
|
-
|
|
9128
|
+
X = Ys(H, 1);
|
|
9129
9129
|
break;
|
|
9130
9130
|
case ce.PageUp:
|
|
9131
|
-
|
|
9131
|
+
X = D ? oo(H, 1) : Rn(H, 1);
|
|
9132
9132
|
break;
|
|
9133
9133
|
case ce.PageDown:
|
|
9134
|
-
|
|
9134
|
+
X = D ? sn(H, 1) : un(H, 1);
|
|
9135
9135
|
break;
|
|
9136
9136
|
case ce.Home:
|
|
9137
|
-
|
|
9137
|
+
X = cn(H, x, b);
|
|
9138
9138
|
break;
|
|
9139
9139
|
case ce.End:
|
|
9140
|
-
|
|
9140
|
+
X = bb(H);
|
|
9141
9141
|
break;
|
|
9142
9142
|
}
|
|
9143
|
-
return
|
|
9143
|
+
return X;
|
|
9144
9144
|
}, W = function($, H) {
|
|
9145
|
-
for (var
|
|
9146
|
-
if (B >=
|
|
9145
|
+
for (var X = 40, ee = $, he = !1, B = 0, U = z($, H); !he; ) {
|
|
9146
|
+
if (B >= X) {
|
|
9147
9147
|
U = H;
|
|
9148
9148
|
break;
|
|
9149
9149
|
}
|
|
@@ -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", Ae = {
|
|
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: Ae.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: 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: [
|
|
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: 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: [
|
|
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: 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: [
|
|
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: Ae.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: 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(
|
|
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: Ae.calendarsSection, children: [
|
|
12177
|
+
/* @__PURE__ */ d.jsxs("button", { onClick: g, className: Ae.collapsibleHeader, children: [
|
|
12178
|
+
/* @__PURE__ */ d.jsxs("div", { className: Ae.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: Ae.calendarCount, children: "1" })
|
|
12181
12181
|
] }),
|
|
12182
|
-
/* @__PURE__ */ d.jsx(t2, { className: `${
|
|
12182
|
+
/* @__PURE__ */ d.jsx(t2, { className: `${Ae.chevronIcon} ${f ? Ae.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: `${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 }),
|
|
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: 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 }),
|
|
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: Ae.syncButton, onClick: _, children: [
|
|
12196
|
+
/* @__PURE__ */ d.jsx(ju, { size: 16, className: Ae.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: Ae.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: Ae.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: Ae.calendarItemText })
|
|
12222
12222
|
},
|
|
12223
12223
|
D.id
|
|
12224
12224
|
)) }) : /* @__PURE__ */ d.jsx("p", { children: "No se encontraron calendarios." })
|
|
@@ -12905,12 +12905,12 @@ var Zn = (e) => mt(e) && !xi(e) ? e : {
|
|
|
12905
12905
|
const k = s ? s[0] : i, w = (v) => {
|
|
12906
12906
|
o && k.reportValidity && (k.setCustomValidity(Jt(v) ? "" : v || ""), k.reportValidity());
|
|
12907
12907
|
}, _ = {}, D = al(i), O = pa(i), z = D || O, W = (y || ol(i)) && ht(i.value) && ht(b) || yi(i) && i.value === "" || b === "" || Array.isArray(b) && !b.length, F = nl.bind(null, h, r, _), K = (v, M, A, $ = Wr.maxLength, H = Wr.minLength) => {
|
|
12908
|
-
const
|
|
12908
|
+
const X = v ? M : A;
|
|
12909
12909
|
_[h] = {
|
|
12910
12910
|
type: v ? $ : H,
|
|
12911
|
-
message:
|
|
12911
|
+
message: X,
|
|
12912
12912
|
ref: i,
|
|
12913
|
-
...F(v ? $ : H,
|
|
12913
|
+
...F(v ? $ : H, X)
|
|
12914
12914
|
};
|
|
12915
12915
|
};
|
|
12916
12916
|
if (a ? !Array.isArray(b) || !b.length : c && (!z && (W || Wt(b)) || Jt(b) && !b || O && !Jp(s).isValid || D && !th(s).isValid)) {
|
|
@@ -12930,8 +12930,8 @@ var Zn = (e) => mt(e) && !xi(e) ? e : {
|
|
|
12930
12930
|
const H = i.valueAsNumber || b && +b;
|
|
12931
12931
|
Wt(A.value) || (v = H > A.value), Wt($.value) || (M = H < $.value);
|
|
12932
12932
|
} else {
|
|
12933
|
-
const H = i.valueAsDate || new Date(b),
|
|
12934
|
-
Pr(A.value) && b && (v = ee ?
|
|
12933
|
+
const H = i.valueAsDate || new Date(b), X = (B) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + B), ee = i.type == "time", he = i.type == "week";
|
|
12934
|
+
Pr(A.value) && b && (v = ee ? X(b) > X(A.value) : he ? b > A.value : H > new Date(A.value)), Pr($.value) && b && (M = ee ? X(b) < X($.value) : he ? b < $.value : H < new Date($.value));
|
|
12935
12935
|
}
|
|
12936
12936
|
if ((v || M) && (K(!!v, A.message, $.message, Wr.max, Wr.min), !r))
|
|
12937
12937
|
return w(_[h].message), _;
|
|
@@ -13189,7 +13189,7 @@ function a_(e = {}) {
|
|
|
13189
13189
|
name: i.mount ? S : void 0,
|
|
13190
13190
|
values: Dt(a)
|
|
13191
13191
|
});
|
|
13192
|
-
},
|
|
13192
|
+
}, X = async (S) => {
|
|
13193
13193
|
i.mount = !0;
|
|
13194
13194
|
const R = S.target;
|
|
13195
13195
|
let L = R.name, te = !0;
|
|
@@ -13314,8 +13314,8 @@ function a_(e = {}) {
|
|
|
13314
13314
|
pattern: Ro(R.pattern)
|
|
13315
13315
|
} : {},
|
|
13316
13316
|
name: S,
|
|
13317
|
-
onChange:
|
|
13318
|
-
onBlur:
|
|
13317
|
+
onChange: X,
|
|
13318
|
+
onBlur: X,
|
|
13319
13319
|
ref: (J) => {
|
|
13320
13320
|
if (J) {
|
|
13321
13321
|
ke(S, R), L = ae(r, S);
|
|
@@ -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), Te = (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: Te,
|
|
13525
13525
|
getFieldState: U
|
|
13526
13526
|
};
|
|
13527
13527
|
return {
|
|
@@ -16117,7 +16117,7 @@ const Wd = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, Ud = (e, n) => {
|
|
|
16117
16117
|
solID: null
|
|
16118
16118
|
},
|
|
16119
16119
|
mode: "onChange"
|
|
16120
|
-
}), H = A("fechaInicio"),
|
|
16120
|
+
}), H = A("fechaInicio"), X = A("fechaFin"), ee = A("todoElDia");
|
|
16121
16121
|
Ct(() => {
|
|
16122
16122
|
if (m.trim() === "" || !i || !c || !s) {
|
|
16123
16123
|
x([]), D([]), $("solID", null), k(!1), z("");
|
|
@@ -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((Te) => Te.solID);
|
|
16131
16131
|
D([...new Set(_e)]);
|
|
16132
16132
|
} else
|
|
16133
16133
|
D([]);
|
|
@@ -16150,11 +16150,11 @@ const Wd = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, Ud = (e, n) => {
|
|
|
16150
16150
|
}, 500);
|
|
16151
16151
|
return () => clearTimeout(T);
|
|
16152
16152
|
}, [m, i, c, s]), Ct(() => {
|
|
16153
|
-
if (H &&
|
|
16154
|
-
const T = new Date(H), ne = new Date(
|
|
16153
|
+
if (H && X) {
|
|
16154
|
+
const T = new Date(H), ne = new Date(X);
|
|
16155
16155
|
(T === ne || T > ne) && $("fechaFin", H);
|
|
16156
16156
|
}
|
|
16157
|
-
}, [H,
|
|
16157
|
+
}, [H, X, $]), Ct(() => {
|
|
16158
16158
|
H && $("fechaFin", H);
|
|
16159
16159
|
}, [H]), Ct(() => {
|
|
16160
16160
|
$("showEndDate", l);
|
|
@@ -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()), Te = Yt(ne, T) && !Ce;
|
|
16216
|
+
(_e || Te) && ($("horaFin", ""), xe(""));
|
|
16217
16217
|
}, [
|
|
16218
16218
|
ie,
|
|
16219
16219
|
U
|
|
@@ -16227,9 +16227,9 @@ const Wd = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, Ud = (e, n) => {
|
|
|
16227
16227
|
return _e && Cr(_e, T);
|
|
16228
16228
|
}) : (Cr(ne, T), Kn);
|
|
16229
16229
|
}, [ie, U, se]), oe = Je(() => Kn, []);
|
|
16230
|
-
return /* @__PURE__ */ d.jsx(wc, { open: e, onClose: n, children: /* @__PURE__ */ d.jsx("form", { onSubmit: he, children: /* @__PURE__ */ d.jsxs(
|
|
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(Ee, { 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, Te) => T(Te || ""),
|
|
16321
|
+
onInputChange: (_e, Te) => T(Te),
|
|
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, Te) => T(Te || ""),
|
|
16365
|
+
onInputChange: (_e, Te) => T(Te),
|
|
16366
16366
|
renderInput: (_e) => /* @__PURE__ */ d.jsx(
|
|
16367
16367
|
Bt,
|
|
16368
16368
|
{
|
|
@@ -16529,7 +16529,7 @@ const Wd = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, Ud = (e, n) => {
|
|
|
16529
16529
|
)
|
|
16530
16530
|
}
|
|
16531
16531
|
) }),
|
|
16532
|
-
/* @__PURE__ */ d.jsx(ze, { size: { xs: 12, md: 12 }, children: /* @__PURE__ */ d.jsxs(
|
|
16532
|
+
/* @__PURE__ */ d.jsx(ze, { size: { xs: 12, md: 12 }, children: /* @__PURE__ */ d.jsxs(Q, { sx: { display: "flex", alignItems: "center", gap: 0.5, flexWrap: "wrap" }, children: [
|
|
16533
16533
|
/* @__PURE__ */ d.jsx(AD, {}),
|
|
16534
16534
|
Ns.map((T) => /* @__PURE__ */ d.jsx(
|
|
16535
16535
|
Xt,
|
|
@@ -16555,7 +16555,7 @@ const Wd = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, Ud = (e, n) => {
|
|
|
16555
16555
|
))
|
|
16556
16556
|
] }) })
|
|
16557
16557
|
] }),
|
|
16558
|
-
/* @__PURE__ */ d.jsxs(
|
|
16558
|
+
/* @__PURE__ */ d.jsxs(Q, { sx: { display: "flex", justifyContent: "flex-end", mt: 3, gap: 2 }, children: [
|
|
16559
16559
|
a && /* @__PURE__ */ d.jsx(Rt, { onClick: r, variant: "outlined", color: "error", sx: { textTransform: "none" }, children: "Eliminar" }),
|
|
16560
16560
|
/* @__PURE__ */ d.jsx(Rt, { onClick: n, variant: "outlined", sx: { textTransform: "none" }, children: "Cancelar" }),
|
|
16561
16561
|
/* @__PURE__ */ d.jsx(
|
|
@@ -16581,11 +16581,11 @@ const Wd = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, Ud = (e, n) => {
|
|
|
16581
16581
|
p: 4,
|
|
16582
16582
|
borderRadius: 2,
|
|
16583
16583
|
textAlign: "center"
|
|
16584
|
-
}, LD = ({ isOpen: e, onClose: n, onConfirm: t, title: r, message: o }) => /* @__PURE__ */ d.jsx(wc, { open: e, onClose: n, children: /* @__PURE__ */ d.jsxs(
|
|
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(
|
|
16588
|
-
/* @__PURE__ */ d.jsxs(
|
|
16586
|
+
/* @__PURE__ */ d.jsx(Ee, { variant: "h6", component: "h2", sx: { mt: 1 }, children: r }),
|
|
16587
|
+
/* @__PURE__ */ d.jsx(Ee, { sx: { mt: 2 }, children: o }),
|
|
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: [
|
|
16591
16591
|
/* @__PURE__ */ d.jsx("span", { className: "icon-eliminar", children: " " }),
|
|
@@ -16607,9 +16607,9 @@ const Wd = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, Ud = (e, n) => {
|
|
|
16607
16607
|
const a = (i) => {
|
|
16608
16608
|
o(i), n();
|
|
16609
16609
|
};
|
|
16610
|
-
return /* @__PURE__ */ d.jsx(wc, { open: e, onClose: n, children: /* @__PURE__ */ d.jsxs(
|
|
16611
|
-
/* @__PURE__ */ d.jsxs(
|
|
16612
|
-
/* @__PURE__ */ d.jsxs(
|
|
16610
|
+
return /* @__PURE__ */ d.jsx(wc, { open: e, onClose: n, children: /* @__PURE__ */ d.jsxs(Q, { sx: zD, children: [
|
|
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: [
|
|
16613
16613
|
"Eventos del",
|
|
16614
16614
|
" ",
|
|
16615
16615
|
r.toLocaleDateString("es-ES", {
|
|
@@ -16622,7 +16622,7 @@ const Wd = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, Ud = (e, n) => {
|
|
|
16622
16622
|
] }),
|
|
16623
16623
|
/* @__PURE__ */ d.jsx(nn, {}),
|
|
16624
16624
|
/* @__PURE__ */ d.jsx(Bo, { children: t.map((i) => /* @__PURE__ */ d.jsx(Vo, { disablePadding: !0, children: /* @__PURE__ */ d.jsxs(tf, { onClick: () => a(i), sx: { py: 0.5 }, children: [
|
|
16625
|
-
/* @__PURE__ */ d.jsx(
|
|
16625
|
+
/* @__PURE__ */ d.jsx(Q, { sx: { width: "15px", height: "15px", borderRadius: "50%", backgroundColor: i.color || "#ccc", mr: 2, flexShrink: 0, minWidth: "10px" } }),
|
|
16626
16626
|
/* @__PURE__ */ d.jsx(
|
|
16627
16627
|
ki,
|
|
16628
16628
|
{
|
|
@@ -16674,7 +16674,7 @@ const Wd = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, Ud = (e, n) => {
|
|
|
16674
16674
|
}
|
|
16675
16675
|
}, i = a[t] || a.info;
|
|
16676
16676
|
return /* @__PURE__ */ d.jsx(Jh, { ref: r, children: /* @__PURE__ */ d.jsxs(
|
|
16677
|
-
|
|
16677
|
+
Q,
|
|
16678
16678
|
{
|
|
16679
16679
|
sx: {
|
|
16680
16680
|
backgroundColor: "white",
|
|
@@ -16689,8 +16689,8 @@ const Wd = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, Ud = (e, n) => {
|
|
|
16689
16689
|
borderLeft: `5px solid ${i.color}`
|
|
16690
16690
|
},
|
|
16691
16691
|
children: [
|
|
16692
|
-
/* @__PURE__ */ d.jsx(
|
|
16693
|
-
/* @__PURE__ */ d.jsx(
|
|
16692
|
+
/* @__PURE__ */ d.jsx(Q, { sx: { mr: 1.5 }, children: i.icon }),
|
|
16693
|
+
/* @__PURE__ */ d.jsx(Ee, { 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
|
}
|
|
@@ -16743,7 +16743,7 @@ const a5 = ({ userId: e, leads30Days: n, leads90Days: t, disId: r, masNombreBD:
|
|
|
16743
16743
|
Gc();
|
|
16744
16744
|
const [_, D] = Se(!1), [O, z] = Se([]), [W, F] = Se(null), { session: K } = hp(), { googleEvents: v, setGoogleEvents: M } = ZD(), [A, $] = Se([]), H = (oe, T) => {
|
|
16745
16745
|
z(oe), F(T), D(!0);
|
|
16746
|
-
},
|
|
16746
|
+
}, X = Zr(null);
|
|
16747
16747
|
Ct(() => {
|
|
16748
16748
|
const oe = async () => {
|
|
16749
16749
|
try {
|
|
@@ -16755,16 +16755,16 @@ const a5 = ({ userId: e, leads30Days: n, leads90Days: t, disId: r, masNombreBD:
|
|
|
16755
16755
|
console.log("No se pudieron cargar los eventos. Revisa la consola para más detalles.");
|
|
16756
16756
|
}
|
|
16757
16757
|
};
|
|
16758
|
-
return oe(),
|
|
16758
|
+
return oe(), X.current && clearTimeout(X.current), X.current = setTimeout(() => {
|
|
16759
16759
|
oe();
|
|
16760
16760
|
}, 4e3), () => {
|
|
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((Te) => {
|
|
16765
|
+
const xt = { start: Te.fechaInicio, end: Te.fechaFin };
|
|
16766
16766
|
return up(xt, Ce);
|
|
16767
|
-
}).sort((
|
|
16767
|
+
}).sort((Te, xt) => Te.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"), Te = 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: Te,
|
|
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: Te,
|
|
16805
16805
|
todoElDia: oe.todoElDia,
|
|
16806
16806
|
solID: oe.solID ?? null,
|
|
16807
16807
|
disID: r ?? null,
|
|
@@ -16920,7 +16920,7 @@ function iE({
|
|
|
16920
16920
|
return f + p + 32;
|
|
16921
16921
|
}
|
|
16922
16922
|
return /* @__PURE__ */ d.jsx(
|
|
16923
|
-
|
|
16923
|
+
Q,
|
|
16924
16924
|
{
|
|
16925
16925
|
sx: {
|
|
16926
16926
|
border: "1px solid rgba(0,0,0,0.15)",
|
|
@@ -16928,9 +16928,9 @@ function iE({
|
|
|
16928
16928
|
bgcolor: "background.paper",
|
|
16929
16929
|
width: "100%"
|
|
16930
16930
|
},
|
|
16931
|
-
children: /* @__PURE__ */ d.jsxs(
|
|
16931
|
+
children: /* @__PURE__ */ d.jsxs(Q, { children: [
|
|
16932
16932
|
/* @__PURE__ */ d.jsx(
|
|
16933
|
-
|
|
16933
|
+
Q,
|
|
16934
16934
|
{
|
|
16935
16935
|
sx: {
|
|
16936
16936
|
display: "grid",
|
|
@@ -16943,14 +16943,14 @@ 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(Ee, { sx: { fontSize: 13, fontWeight: 800 }, children: u }, u))
|
|
16947
16947
|
}
|
|
16948
16948
|
),
|
|
16949
16949
|
e.map((u, f) => {
|
|
16950
16950
|
const [p, g] = re.useState(!!u.initiallyOpen), m = f % 2 === 1, h = o ? o(u) : n, y = Math.max(r, l(h));
|
|
16951
|
-
return /* @__PURE__ */ d.jsxs(
|
|
16951
|
+
return /* @__PURE__ */ d.jsxs(Q, { children: [
|
|
16952
16952
|
/* @__PURE__ */ d.jsxs(
|
|
16953
|
-
|
|
16953
|
+
Q,
|
|
16954
16954
|
{
|
|
16955
16955
|
sx: {
|
|
16956
16956
|
display: "grid",
|
|
@@ -16966,7 +16966,7 @@ function iE({
|
|
|
16966
16966
|
},
|
|
16967
16967
|
children: [
|
|
16968
16968
|
/* @__PURE__ */ d.jsxs(
|
|
16969
|
-
|
|
16969
|
+
Q,
|
|
16970
16970
|
{
|
|
16971
16971
|
sx: {
|
|
16972
16972
|
display: "flex",
|
|
@@ -16977,7 +16977,7 @@ function iE({
|
|
|
16977
16977
|
children: [
|
|
16978
16978
|
/* @__PURE__ */ d.jsx(Mt, { size: "small", onClick: () => g((x) => !x), children: p ? /* @__PURE__ */ d.jsx(oE, {}) : /* @__PURE__ */ d.jsx(nE, {}) }),
|
|
16979
16979
|
/* @__PURE__ */ d.jsx(
|
|
16980
|
-
|
|
16980
|
+
Ee,
|
|
16981
16981
|
{
|
|
16982
16982
|
sx: {
|
|
16983
16983
|
fontWeight: 700,
|
|
@@ -16993,15 +16993,15 @@ function iE({
|
|
|
16993
16993
|
]
|
|
16994
16994
|
}
|
|
16995
16995
|
),
|
|
16996
|
-
/* @__PURE__ */ d.jsx(
|
|
16997
|
-
/* @__PURE__ */ d.jsx(
|
|
16998
|
-
/* @__PURE__ */ d.jsx(
|
|
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.") })
|
|
16999
16999
|
]
|
|
17000
17000
|
}
|
|
17001
17001
|
),
|
|
17002
|
-
/* @__PURE__ */ d.jsx(Rh, { in: p, unmountOnExit: !0, children: /* @__PURE__ */ d.jsxs(
|
|
17002
|
+
/* @__PURE__ */ d.jsx(Rh, { in: p, unmountOnExit: !0, children: /* @__PURE__ */ d.jsxs(Q, { sx: { overflowX: "auto" }, children: [
|
|
17003
17003
|
/* @__PURE__ */ d.jsx(
|
|
17004
|
-
|
|
17004
|
+
Q,
|
|
17005
17005
|
{
|
|
17006
17006
|
sx: {
|
|
17007
17007
|
minWidth: y,
|
|
@@ -17017,7 +17017,7 @@ function iE({
|
|
|
17017
17017
|
boxSizing: "border-box"
|
|
17018
17018
|
},
|
|
17019
17019
|
children: h.map((x) => /* @__PURE__ */ d.jsx(
|
|
17020
|
-
|
|
17020
|
+
Ee,
|
|
17021
17021
|
{
|
|
17022
17022
|
sx: {
|
|
17023
17023
|
justifySelf: Zd(x.align),
|
|
@@ -17035,7 +17035,7 @@ function iE({
|
|
|
17035
17035
|
}
|
|
17036
17036
|
),
|
|
17037
17037
|
(u.rows ?? []).map((x, b) => /* @__PURE__ */ d.jsx(
|
|
17038
|
-
|
|
17038
|
+
Q,
|
|
17039
17039
|
{
|
|
17040
17040
|
sx: {
|
|
17041
17041
|
minWidth: y,
|
|
@@ -17055,7 +17055,7 @@ function iE({
|
|
|
17055
17055
|
children: h.map((k, w) => {
|
|
17056
17056
|
const _ = k.accessor ? k.accessor(x, b) : k.field ? x[k.field] : null;
|
|
17057
17057
|
return /* @__PURE__ */ d.jsx(
|
|
17058
|
-
|
|
17058
|
+
Q,
|
|
17059
17059
|
{
|
|
17060
17060
|
sx: {
|
|
17061
17061
|
justifySelf: Zd(k.align),
|
|
@@ -17063,7 +17063,7 @@ function iE({
|
|
|
17063
17063
|
minWidth: 0
|
|
17064
17064
|
},
|
|
17065
17065
|
children: typeof _ == "string" || typeof _ == "number" ? /* @__PURE__ */ d.jsx(
|
|
17066
|
-
|
|
17066
|
+
Ee,
|
|
17067
17067
|
{
|
|
17068
17068
|
sx: {
|
|
17069
17069
|
fontSize: 13,
|
|
@@ -17192,7 +17192,7 @@ function gE({
|
|
|
17192
17192
|
), [A, $] = Se(!1), H = Je(
|
|
17193
17193
|
() => A ? M : M.slice(0, k),
|
|
17194
17194
|
[A, M]
|
|
17195
|
-
),
|
|
17195
|
+
), X = Math.max(M.length - k, 0), ee = (N) => String(N ?? "").normalize("NFD").replace(new RegExp("\\p{Diacritic}", "gu"), "").toLowerCase().trim(), he = (N, ge) => ee(JSON.stringify(N)).includes(ee(ge)), B = (N, ge) => f ? f(N, ge) : he(N, ge), U = (N, ge) => {
|
|
17196
17196
|
const Oe = ee(ge).split(/\s+/).filter(Boolean);
|
|
17197
17197
|
return Oe.length ? Oe.every((tt) => B(N, tt)) : !0;
|
|
17198
17198
|
}, [ie, se] = Se(""), [fe, pe] = Se([]);
|
|
@@ -17200,7 +17200,7 @@ function gE({
|
|
|
17200
17200
|
const N = ie.trim();
|
|
17201
17201
|
return N ? (i ?? []).filter((ge) => U(ge, N)) : i ?? [];
|
|
17202
17202
|
}, [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), [
|
|
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 = [
|
|
17204
17204
|
"Selección y presentación",
|
|
17205
17205
|
"Ingreso del Vehículo",
|
|
17206
17206
|
"En reparación",
|
|
@@ -17263,7 +17263,7 @@ function gE({
|
|
|
17263
17263
|
key: "vehiculo",
|
|
17264
17264
|
header: "Vehículo",
|
|
17265
17265
|
accessor: (N) => /* @__PURE__ */ d.jsx($a, { title: N.Vehiculo ?? "", placement: "top", arrow: !0, children: /* @__PURE__ */ d.jsx(
|
|
17266
|
-
|
|
17266
|
+
Ee,
|
|
17267
17267
|
{
|
|
17268
17268
|
component: "span",
|
|
17269
17269
|
sx: {
|
|
@@ -17285,14 +17285,14 @@ function gE({
|
|
|
17285
17285
|
{
|
|
17286
17286
|
key: "estatus",
|
|
17287
17287
|
header: "Estatus",
|
|
17288
|
-
accessor: (N) => /* @__PURE__ */ d.jsx(
|
|
17288
|
+
accessor: (N) => /* @__PURE__ */ d.jsx(Ee, { sx: { fontWeight: 800, fontSize: 13 }, children: N.EstatusDescripcion || "—" }),
|
|
17289
17289
|
width: 170
|
|
17290
17290
|
},
|
|
17291
17291
|
{
|
|
17292
17292
|
key: "nivel",
|
|
17293
17293
|
header: "Nivel de Interés",
|
|
17294
17294
|
accessor: (N) => /* @__PURE__ */ d.jsx(
|
|
17295
|
-
|
|
17295
|
+
Q,
|
|
17296
17296
|
{
|
|
17297
17297
|
sx: {
|
|
17298
17298
|
display: "inline-block",
|
|
@@ -17313,7 +17313,7 @@ function gE({
|
|
|
17313
17313
|
key: "asesor",
|
|
17314
17314
|
header: "Asesor",
|
|
17315
17315
|
accessor: (N) => /* @__PURE__ */ d.jsx($a, { title: N.Asesor ?? "", placement: "top", children: /* @__PURE__ */ d.jsx(
|
|
17316
|
-
|
|
17316
|
+
Ee,
|
|
17317
17317
|
{
|
|
17318
17318
|
sx: { fontWeight: 700, fontSize: 13, textAlign: "center" },
|
|
17319
17319
|
children: (N.Asesor ?? "").split(" ").filter(Boolean).map((ge) => ge[0]?.toUpperCase()).slice(0, 2).join("") || "—"
|
|
@@ -17398,7 +17398,7 @@ function gE({
|
|
|
17398
17398
|
h
|
|
17399
17399
|
)
|
|
17400
17400
|
], xo = E.useMemo(() => {
|
|
17401
|
-
const N = ye ? new Date(
|
|
17401
|
+
const N = ye ? new Date(Te) : null, ge = ye ? new Date(wt) : null, Oe = (xe ?? "").trim().toLowerCase(), tt = (rt, Ot) => {
|
|
17402
17402
|
if (Oe && !(rt.Vehiculo ?? "").toLowerCase().includes(Oe)) return !1;
|
|
17403
17403
|
const bn = T ? rt.FechaCita : rt.Fecha;
|
|
17404
17404
|
if (ye && (N || ge)) {
|
|
@@ -17428,7 +17428,7 @@ function gE({
|
|
|
17428
17428
|
zr,
|
|
17429
17429
|
xe,
|
|
17430
17430
|
ye,
|
|
17431
|
-
|
|
17431
|
+
Te,
|
|
17432
17432
|
wt,
|
|
17433
17433
|
T,
|
|
17434
17434
|
te,
|
|
@@ -17471,7 +17471,7 @@ function gE({
|
|
|
17471
17471
|
}
|
|
17472
17472
|
},
|
|
17473
17473
|
children: /* @__PURE__ */ d.jsxs(
|
|
17474
|
-
|
|
17474
|
+
Q,
|
|
17475
17475
|
{
|
|
17476
17476
|
sx: {
|
|
17477
17477
|
display: "flex",
|
|
@@ -17483,7 +17483,7 @@ function gE({
|
|
|
17483
17483
|
},
|
|
17484
17484
|
children: [
|
|
17485
17485
|
/* @__PURE__ */ d.jsxs(
|
|
17486
|
-
|
|
17486
|
+
Q,
|
|
17487
17487
|
{
|
|
17488
17488
|
sx: {
|
|
17489
17489
|
width: { xs: "100%", md: 405 },
|
|
@@ -17495,7 +17495,7 @@ function gE({
|
|
|
17495
17495
|
borderRight: { xs: "none", md: "1px solid #EBEEF0" }
|
|
17496
17496
|
},
|
|
17497
17497
|
children: [
|
|
17498
|
-
/* @__PURE__ */ d.jsxs(
|
|
17498
|
+
/* @__PURE__ */ d.jsxs(Q, { children: [
|
|
17499
17499
|
/* @__PURE__ */ d.jsx(
|
|
17500
17500
|
pr,
|
|
17501
17501
|
{
|
|
@@ -17504,17 +17504,17 @@ function gE({
|
|
|
17504
17504
|
alignItems: "center",
|
|
17505
17505
|
mb: 1,
|
|
17506
17506
|
sx: { px: 2.5, pt: 2.5 },
|
|
17507
|
-
children: /* @__PURE__ */ d.jsxs(
|
|
17507
|
+
children: /* @__PURE__ */ d.jsxs(Q, { display: "flex", flexDirection: "column", gap: 1, width: "100%", children: [
|
|
17508
17508
|
/* @__PURE__ */ d.jsx(
|
|
17509
|
-
|
|
17509
|
+
Q,
|
|
17510
17510
|
{
|
|
17511
17511
|
display: "flex",
|
|
17512
17512
|
flexDirection: "row",
|
|
17513
17513
|
justifyContent: "space-between",
|
|
17514
17514
|
width: "100%",
|
|
17515
17515
|
alignItems: "center",
|
|
17516
|
-
children: /* @__PURE__ */ d.jsx(
|
|
17517
|
-
|
|
17516
|
+
children: /* @__PURE__ */ d.jsx(Q, { sx: { flex: 1, minWidth: 0, pr: 1 }, children: /* @__PURE__ */ d.jsxs(
|
|
17517
|
+
Ee,
|
|
17518
17518
|
{
|
|
17519
17519
|
component: "span",
|
|
17520
17520
|
fontWeight: 700,
|
|
@@ -17557,7 +17557,7 @@ function gE({
|
|
|
17557
17557
|
}
|
|
17558
17558
|
),
|
|
17559
17559
|
W.map((N, ge) => /* @__PURE__ */ d.jsxs(
|
|
17560
|
-
|
|
17560
|
+
Q,
|
|
17561
17561
|
{
|
|
17562
17562
|
sx: {
|
|
17563
17563
|
display: "flex",
|
|
@@ -17571,7 +17571,7 @@ function gE({
|
|
|
17571
17571
|
children: [
|
|
17572
17572
|
N.icon,
|
|
17573
17573
|
/* @__PURE__ */ d.jsx(
|
|
17574
|
-
|
|
17574
|
+
Ee,
|
|
17575
17575
|
{
|
|
17576
17576
|
variant: "body2",
|
|
17577
17577
|
sx: {
|
|
@@ -17591,14 +17591,14 @@ function gE({
|
|
|
17591
17591
|
/* @__PURE__ */ d.jsx(pr, { mb: 2, sx: { px: 2.5, pt: 0, gap: 2 }, children: r.map((N, ge) => {
|
|
17592
17592
|
const Oe = N.label?.toLowerCase().startsWith("asesor");
|
|
17593
17593
|
return /* @__PURE__ */ d.jsxs(
|
|
17594
|
-
|
|
17594
|
+
Q,
|
|
17595
17595
|
{
|
|
17596
17596
|
display: "flex",
|
|
17597
17597
|
justifyContent: "space-between",
|
|
17598
17598
|
alignItems: "center",
|
|
17599
17599
|
children: [
|
|
17600
|
-
/* @__PURE__ */ d.jsx(
|
|
17601
|
-
|
|
17600
|
+
/* @__PURE__ */ d.jsx(Q, { sx: { width: "50%" }, children: /* @__PURE__ */ d.jsx(
|
|
17601
|
+
Ee,
|
|
17602
17602
|
{
|
|
17603
17603
|
variant: "body2",
|
|
17604
17604
|
color: "text.secondary",
|
|
@@ -17607,7 +17607,7 @@ function gE({
|
|
|
17607
17607
|
}
|
|
17608
17608
|
) }),
|
|
17609
17609
|
/* @__PURE__ */ d.jsxs(
|
|
17610
|
-
|
|
17610
|
+
Q,
|
|
17611
17611
|
{
|
|
17612
17612
|
sx: {
|
|
17613
17613
|
width: "50%",
|
|
@@ -17617,7 +17617,7 @@ function gE({
|
|
|
17617
17617
|
},
|
|
17618
17618
|
children: [
|
|
17619
17619
|
/* @__PURE__ */ d.jsx("div", { children: N?.avatar ? N.avatar(t) : null }),
|
|
17620
|
-
/* @__PURE__ */ d.jsx(
|
|
17620
|
+
/* @__PURE__ */ d.jsx(Ee, { variant: "body2", color: "textPrimary", children: N?.value(t) }),
|
|
17621
17621
|
Oe && /* @__PURE__ */ d.jsx(
|
|
17622
17622
|
$a,
|
|
17623
17623
|
{
|
|
@@ -17651,9 +17651,9 @@ function gE({
|
|
|
17651
17651
|
}) }),
|
|
17652
17652
|
/* @__PURE__ */ d.jsx(nn, { sx: { my: 2 } })
|
|
17653
17653
|
] }),
|
|
17654
|
-
/* @__PURE__ */ d.jsx(
|
|
17654
|
+
/* @__PURE__ */ d.jsx(Q, { px: 2.5, pb: 0.5, children: /* @__PURE__ */ d.jsx(Ee, { fontWeight: 800, children: "Historial Actividad:" }) }),
|
|
17655
17655
|
/* @__PURE__ */ d.jsxs(
|
|
17656
|
-
|
|
17656
|
+
Q,
|
|
17657
17657
|
{
|
|
17658
17658
|
sx: {
|
|
17659
17659
|
px: 2.5,
|
|
@@ -17667,11 +17667,11 @@ function gE({
|
|
|
17667
17667
|
maxHeight: { xs: "140px", md: "100%" }
|
|
17668
17668
|
},
|
|
17669
17669
|
children: [
|
|
17670
|
-
H.length === 0 && /* @__PURE__ */ d.jsx(
|
|
17671
|
-
/* @__PURE__ */ d.jsxs(
|
|
17670
|
+
H.length === 0 && /* @__PURE__ */ d.jsx(Ee, { variant: "body2", color: "text.secondary", children: "Sin actividad registrada." }),
|
|
17671
|
+
/* @__PURE__ */ d.jsxs(Q, { children: [
|
|
17672
17672
|
H?.map((N, ge) => {
|
|
17673
17673
|
const Oe = K(N), { bg: tt, color: rt } = F(N.TipoComentario), Ot = mE(N.Comentario || "");
|
|
17674
|
-
return /* @__PURE__ */ d.jsxs(
|
|
17674
|
+
return /* @__PURE__ */ d.jsxs(Q, { sx: { pb: 1.5 }, children: [
|
|
17675
17675
|
/* @__PURE__ */ d.jsxs(
|
|
17676
17676
|
pr,
|
|
17677
17677
|
{
|
|
@@ -17681,7 +17681,7 @@ function gE({
|
|
|
17681
17681
|
justifyContent: "space-between",
|
|
17682
17682
|
sx: { mb: 0.75 },
|
|
17683
17683
|
children: [
|
|
17684
|
-
/* @__PURE__ */ d.jsx(
|
|
17684
|
+
/* @__PURE__ */ d.jsx(Ee, { variant: "subtitle2", sx: { color: "#5C6372" }, children: N.TipoComentario || "Evento" }),
|
|
17685
17685
|
/* @__PURE__ */ d.jsx(
|
|
17686
17686
|
Io,
|
|
17687
17687
|
{
|
|
@@ -17694,7 +17694,7 @@ function gE({
|
|
|
17694
17694
|
}
|
|
17695
17695
|
),
|
|
17696
17696
|
Ot ? /* @__PURE__ */ d.jsx(
|
|
17697
|
-
|
|
17697
|
+
Ee,
|
|
17698
17698
|
{
|
|
17699
17699
|
variant: "body2",
|
|
17700
17700
|
color: "text.secondary",
|
|
@@ -17734,14 +17734,14 @@ function gE({
|
|
|
17734
17734
|
}
|
|
17735
17735
|
),
|
|
17736
17736
|
/* @__PURE__ */ d.jsxs(pr, { spacing: 0, children: [
|
|
17737
|
-
/* @__PURE__ */ d.jsx(
|
|
17738
|
-
/* @__PURE__ */ d.jsx(
|
|
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) })
|
|
17739
17739
|
] })
|
|
17740
17740
|
] }),
|
|
17741
17741
|
ge < M.length - 1 && /* @__PURE__ */ d.jsx(nn, { sx: { mt: 1.25 } })
|
|
17742
17742
|
] }, N.SegID ?? ge);
|
|
17743
17743
|
}),
|
|
17744
|
-
M.length > k && /* @__PURE__ */ d.jsx(
|
|
17744
|
+
M.length > k && /* @__PURE__ */ d.jsx(Q, { sx: { mt: 1 }, children: /* @__PURE__ */ d.jsx(
|
|
17745
17745
|
Rt,
|
|
17746
17746
|
{
|
|
17747
17747
|
onClick: () => $((N) => !N),
|
|
@@ -17755,7 +17755,7 @@ function gE({
|
|
|
17755
17755
|
textDecoration: "underline"
|
|
17756
17756
|
}
|
|
17757
17757
|
},
|
|
17758
|
-
children: A ? "Ver menos" : `Ver más (${
|
|
17758
|
+
children: A ? "Ver menos" : `Ver más (${X})`
|
|
17759
17759
|
}
|
|
17760
17760
|
) })
|
|
17761
17761
|
] })
|
|
@@ -17780,12 +17780,12 @@ function gE({
|
|
|
17780
17780
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
17781
17781
|
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
17782
17782
|
children: /* @__PURE__ */ d.jsxs(
|
|
17783
|
-
|
|
17783
|
+
Q,
|
|
17784
17784
|
{
|
|
17785
17785
|
sx: { display: "flex", flexDirection: "column", height: "100%" },
|
|
17786
17786
|
children: [
|
|
17787
17787
|
/* @__PURE__ */ d.jsx(
|
|
17788
|
-
|
|
17788
|
+
Q,
|
|
17789
17789
|
{
|
|
17790
17790
|
sx: {
|
|
17791
17791
|
position: "sticky",
|
|
@@ -17801,13 +17801,13 @@ function gE({
|
|
|
17801
17801
|
children: "Historial asesores"
|
|
17802
17802
|
}
|
|
17803
17803
|
),
|
|
17804
|
-
/* @__PURE__ */ d.jsxs(
|
|
17805
|
-
O.length === 0 && /* @__PURE__ */ d.jsx(
|
|
17804
|
+
/* @__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" }) }),
|
|
17806
17806
|
O.map((N, ge) => {
|
|
17807
17807
|
const Oe = lE(N), tt = cE(
|
|
17808
17808
|
N.FechaBaja ?? N.FechaAsignacion
|
|
17809
17809
|
);
|
|
17810
|
-
return /* @__PURE__ */ d.jsx(
|
|
17810
|
+
return /* @__PURE__ */ d.jsx(Q, { sx: { px: 1, py: 0.75 }, children: /* @__PURE__ */ d.jsxs(pr, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
17811
17811
|
/* @__PURE__ */ d.jsx(
|
|
17812
17812
|
Qn,
|
|
17813
17813
|
{
|
|
@@ -17822,9 +17822,9 @@ function gE({
|
|
|
17822
17822
|
children: uE(Oe)
|
|
17823
17823
|
}
|
|
17824
17824
|
),
|
|
17825
|
-
/* @__PURE__ */ d.jsx(
|
|
17825
|
+
/* @__PURE__ */ d.jsx(Q, { sx: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ d.jsx(Ee, { variant: "body2", noWrap: !0, children: Oe }) }),
|
|
17826
17826
|
/* @__PURE__ */ d.jsx(
|
|
17827
|
-
|
|
17827
|
+
Ee,
|
|
17828
17828
|
{
|
|
17829
17829
|
variant: "caption",
|
|
17830
17830
|
color: "text.secondary",
|
|
@@ -17844,7 +17844,7 @@ function gE({
|
|
|
17844
17844
|
}
|
|
17845
17845
|
),
|
|
17846
17846
|
wo ? /* @__PURE__ */ d.jsxs(
|
|
17847
|
-
|
|
17847
|
+
Q,
|
|
17848
17848
|
{
|
|
17849
17849
|
sx: {
|
|
17850
17850
|
flex: 1,
|
|
@@ -17854,34 +17854,43 @@ function gE({
|
|
|
17854
17854
|
},
|
|
17855
17855
|
children: [
|
|
17856
17856
|
/* @__PURE__ */ d.jsx(
|
|
17857
|
-
|
|
17857
|
+
Q,
|
|
17858
17858
|
{
|
|
17859
17859
|
sx: {
|
|
17860
17860
|
position: "absolute",
|
|
17861
|
-
top:
|
|
17862
|
-
|
|
17861
|
+
top: 18,
|
|
17862
|
+
left: 24,
|
|
17863
17863
|
zIndex: 10,
|
|
17864
17864
|
pointerEvents: "auto"
|
|
17865
17865
|
},
|
|
17866
|
-
children: /* @__PURE__ */ d.
|
|
17867
|
-
|
|
17868
|
-
|
|
17869
|
-
|
|
17870
|
-
|
|
17871
|
-
|
|
17872
|
-
|
|
17873
|
-
|
|
17874
|
-
|
|
17875
|
-
|
|
17876
|
-
|
|
17877
|
-
|
|
17878
|
-
|
|
17879
|
-
|
|
17880
|
-
|
|
17881
|
-
|
|
17882
|
-
|
|
17883
|
-
|
|
17884
|
-
|
|
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
|
+
] })
|
|
17885
17894
|
}
|
|
17886
17895
|
),
|
|
17887
17896
|
/* @__PURE__ */ d.jsx(
|
|
@@ -17894,9 +17903,9 @@ function gE({
|
|
|
17894
17903
|
)
|
|
17895
17904
|
]
|
|
17896
17905
|
}
|
|
17897
|
-
) : /* @__PURE__ */ d.jsxs(
|
|
17898
|
-
/* @__PURE__ */ d.jsx(
|
|
17899
|
-
|
|
17906
|
+
) : /* @__PURE__ */ d.jsxs(Q, { sx: { width: "100%", minHeight: 0, overflowY: "auto" }, children: [
|
|
17907
|
+
/* @__PURE__ */ d.jsx(Q, { sx: { mt: { xs: 1.5, md: 3 } }, children: /* @__PURE__ */ d.jsxs(
|
|
17908
|
+
Q,
|
|
17900
17909
|
{
|
|
17901
17910
|
sx: {
|
|
17902
17911
|
mt: 3,
|
|
@@ -17907,7 +17916,7 @@ function gE({
|
|
|
17907
17916
|
},
|
|
17908
17917
|
children: [
|
|
17909
17918
|
/* @__PURE__ */ d.jsx(
|
|
17910
|
-
|
|
17919
|
+
Ee,
|
|
17911
17920
|
{
|
|
17912
17921
|
variant: "h4",
|
|
17913
17922
|
sx: {
|
|
@@ -17956,7 +17965,7 @@ function gE({
|
|
|
17956
17965
|
}
|
|
17957
17966
|
),
|
|
17958
17967
|
/* @__PURE__ */ d.jsxs(
|
|
17959
|
-
|
|
17968
|
+
Q,
|
|
17960
17969
|
{
|
|
17961
17970
|
sx: {
|
|
17962
17971
|
display: "flex",
|
|
@@ -17979,7 +17988,7 @@ function gE({
|
|
|
17979
17988
|
An,
|
|
17980
17989
|
{
|
|
17981
17990
|
label: /* @__PURE__ */ d.jsx(
|
|
17982
|
-
|
|
17991
|
+
Ee,
|
|
17983
17992
|
{
|
|
17984
17993
|
sx: {
|
|
17985
17994
|
fontSize: 15,
|
|
@@ -18013,7 +18022,7 @@ function gE({
|
|
|
18013
18022
|
}
|
|
18014
18023
|
),
|
|
18015
18024
|
/* @__PURE__ */ d.jsx(
|
|
18016
|
-
|
|
18025
|
+
Ee,
|
|
18017
18026
|
{
|
|
18018
18027
|
sx: {
|
|
18019
18028
|
fontSize: 15,
|
|
@@ -18033,7 +18042,7 @@ function gE({
|
|
|
18033
18042
|
type: "date",
|
|
18034
18043
|
label: "Desde",
|
|
18035
18044
|
InputLabelProps: { shrink: !0 },
|
|
18036
|
-
value:
|
|
18045
|
+
value: Te,
|
|
18037
18046
|
onChange: (N) => xt(N.target.value),
|
|
18038
18047
|
disabled: !ye,
|
|
18039
18048
|
sx: { width: 170 }
|
|
@@ -18152,16 +18161,16 @@ function gE({
|
|
|
18152
18161
|
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
18153
18162
|
children: /* @__PURE__ */ d.jsxs(pr, { spacing: 1.5, paddingX: 1.5, paddingY: 1, children: [
|
|
18154
18163
|
/* @__PURE__ */ d.jsx(
|
|
18155
|
-
|
|
18164
|
+
Ee,
|
|
18156
18165
|
{
|
|
18157
18166
|
variant: "subtitle2",
|
|
18158
18167
|
sx: { fontWeight: 700, color: "#070C10" },
|
|
18159
18168
|
children: "Filtro"
|
|
18160
18169
|
}
|
|
18161
18170
|
),
|
|
18162
|
-
/* @__PURE__ */ d.jsxs(
|
|
18171
|
+
/* @__PURE__ */ d.jsxs(Q, { children: [
|
|
18163
18172
|
/* @__PURE__ */ d.jsx(
|
|
18164
|
-
|
|
18173
|
+
Ee,
|
|
18165
18174
|
{
|
|
18166
18175
|
variant: "body2",
|
|
18167
18176
|
sx: { fontWeight: 700, mb: 0.5, color: "#5C6372" },
|
|
@@ -18214,9 +18223,9 @@ function gE({
|
|
|
18214
18223
|
}
|
|
18215
18224
|
)
|
|
18216
18225
|
] }),
|
|
18217
|
-
/* @__PURE__ */ d.jsxs(
|
|
18226
|
+
/* @__PURE__ */ d.jsxs(Q, { children: [
|
|
18218
18227
|
/* @__PURE__ */ d.jsx(
|
|
18219
|
-
|
|
18228
|
+
Ee,
|
|
18220
18229
|
{
|
|
18221
18230
|
variant: "body2",
|
|
18222
18231
|
sx: { fontWeight: 700, mb: 0.5, color: "#5C6372" },
|
|
@@ -18324,7 +18333,7 @@ function Gd(e, n, t) {
|
|
|
18324
18333
|
if (!A) return;
|
|
18325
18334
|
const B = p.countryCode ?? "52", U = JD(String(A));
|
|
18326
18335
|
typeof window < "u" && window.open(`https://wa.me/${B}${U}`, "_blank");
|
|
18327
|
-
},
|
|
18336
|
+
}, X = (he) => {
|
|
18328
18337
|
if (he.stopPropagation(), f.onEmail)
|
|
18329
18338
|
return f.onEmail(F);
|
|
18330
18339
|
$ && typeof window < "u" && (window.location.href = `mailto:${$}`);
|
|
@@ -18349,7 +18358,7 @@ function Gd(e, n, t) {
|
|
|
18349
18358
|
type: "button",
|
|
18350
18359
|
className: "btn p-0 border-0 bg-transparent",
|
|
18351
18360
|
title: h.email ?? "Email",
|
|
18352
|
-
onClick:
|
|
18361
|
+
onClick: X,
|
|
18353
18362
|
style: { width: 24, height: 24 },
|
|
18354
18363
|
children: /* @__PURE__ */ d.jsx("img", { src: QD, alt: "Email" })
|
|
18355
18364
|
}
|
|
@@ -18422,7 +18431,7 @@ function i5(e) {
|
|
|
18422
18431
|
M({ open: !0, customer: U });
|
|
18423
18432
|
const ie = c?.vehiclesProvider?.(U) ?? [];
|
|
18424
18433
|
$(Array.isArray(ie) ? ie : []);
|
|
18425
|
-
},
|
|
18434
|
+
}, X = (U) => {
|
|
18426
18435
|
p?.(U), M({ open: !0, customer: U });
|
|
18427
18436
|
const ie = c?.vehiclesProvider?.(U) ?? [];
|
|
18428
18437
|
$(Array.isArray(ie) ? ie : []);
|
|
@@ -18470,11 +18479,11 @@ function i5(e) {
|
|
|
18470
18479
|
/* @__PURE__ */ d.jsx(
|
|
18471
18480
|
"tr",
|
|
18472
18481
|
{
|
|
18473
|
-
onClick: () =>
|
|
18482
|
+
onClick: () => X?.(U),
|
|
18474
18483
|
role: "button",
|
|
18475
18484
|
tabIndex: 0,
|
|
18476
18485
|
onKeyDown: (se) => {
|
|
18477
|
-
(se.key === "Enter" || se.key === " ") &&
|
|
18486
|
+
(se.key === "Enter" || se.key === " ") && X?.(U);
|
|
18478
18487
|
},
|
|
18479
18488
|
style: { cursor: "pointer" },
|
|
18480
18489
|
children: he.map((se, fe) => {
|
|
@@ -18555,7 +18564,7 @@ const bE = yt(/* @__PURE__ */ d.jsx("path", {
|
|
|
18555
18564
|
}), "ErrorOutline");
|
|
18556
18565
|
function xE({ message: e }) {
|
|
18557
18566
|
return e ? /* @__PURE__ */ d.jsxs(
|
|
18558
|
-
|
|
18567
|
+
Q,
|
|
18559
18568
|
{
|
|
18560
18569
|
role: "alert",
|
|
18561
18570
|
sx: {
|
|
@@ -18855,7 +18864,7 @@ const EE = yt(/* @__PURE__ */ d.jsx("path", {
|
|
|
18855
18864
|
o(h);
|
|
18856
18865
|
}, g = Math.max(1, n);
|
|
18857
18866
|
return /* @__PURE__ */ d.jsxs(
|
|
18858
|
-
|
|
18867
|
+
Q,
|
|
18859
18868
|
{
|
|
18860
18869
|
sx: {
|
|
18861
18870
|
display: "flex",
|
|
@@ -18869,7 +18878,7 @@ const EE = yt(/* @__PURE__ */ d.jsx("path", {
|
|
|
18869
18878
|
px: 3
|
|
18870
18879
|
},
|
|
18871
18880
|
children: [
|
|
18872
|
-
/* @__PURE__ */ d.jsxs(
|
|
18881
|
+
/* @__PURE__ */ d.jsxs(Q, { sx: { display: "flex", alignItems: "center", flexWrap: "wrap", justifyContent: "center" }, children: [
|
|
18873
18882
|
/* @__PURE__ */ d.jsx(
|
|
18874
18883
|
Mt,
|
|
18875
18884
|
{
|
|
@@ -18882,7 +18891,7 @@ const EE = yt(/* @__PURE__ */ d.jsx("path", {
|
|
|
18882
18891
|
}
|
|
18883
18892
|
),
|
|
18884
18893
|
f().map(
|
|
18885
|
-
(m, h) => m === "..." ? /* @__PURE__ */ d.jsx(
|
|
18894
|
+
(m, h) => m === "..." ? /* @__PURE__ */ d.jsx(Q, { sx: { px: 1, display: "flex", alignItems: "center", fontSize: "1.1rem" }, children: ". . ." }, `dots-${h}`) : /* @__PURE__ */ d.jsx(
|
|
18886
18895
|
Rt,
|
|
18887
18896
|
{
|
|
18888
18897
|
onClick: () => t(m),
|
|
@@ -18918,8 +18927,8 @@ const EE = yt(/* @__PURE__ */ d.jsx("path", {
|
|
|
18918
18927
|
}
|
|
18919
18928
|
)
|
|
18920
18929
|
] }),
|
|
18921
|
-
/* @__PURE__ */ d.jsxs(
|
|
18922
|
-
/* @__PURE__ */ d.jsx(
|
|
18930
|
+
/* @__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" }),
|
|
18923
18932
|
/* @__PURE__ */ d.jsx(nf, { size: "small", sx: { minWidth: 72 }, children: /* @__PURE__ */ d.jsx(
|
|
18924
18933
|
rf,
|
|
18925
18934
|
{
|
|
@@ -18929,7 +18938,7 @@ const EE = yt(/* @__PURE__ */ d.jsx("path", {
|
|
|
18929
18938
|
children: a.map((m) => /* @__PURE__ */ d.jsx(Hs, { value: m, children: m === "Todos" ? "Todos" : m }, String(m)))
|
|
18930
18939
|
}
|
|
18931
18940
|
) }),
|
|
18932
|
-
/* @__PURE__ */ d.jsx(
|
|
18941
|
+
/* @__PURE__ */ d.jsx(Ee, { variant: "body2", children: "por página" })
|
|
18933
18942
|
] })
|
|
18934
18943
|
]
|
|
18935
18944
|
}
|
|
@@ -18987,7 +18996,7 @@ function s5(e) {
|
|
|
18987
18996
|
), $ = qp({
|
|
18988
18997
|
control: b.control,
|
|
18989
18998
|
name: A
|
|
18990
|
-
}), H = (I) => I == null ? !1 : typeof I == "string" ? I.trim().length > 0 : Array.isArray(I) ? I.length > 0 : typeof I == "number" ? !Number.isNaN(I) : typeof I == "object" ? Object.keys(I).length > 0 : !0,
|
|
18999
|
+
}), H = (I) => I == null ? !1 : typeof I == "string" ? I.trim().length > 0 : Array.isArray(I) ? I.length > 0 : typeof I == "number" ? !Number.isNaN(I) : typeof I == "object" ? Object.keys(I).length > 0 : !0, X = Je(() => A.length ? $?.every(H) ?? !1 : !0, [$, A]), {
|
|
18991
19000
|
handleSubmit: ee,
|
|
18992
19001
|
formState: { isSubmitting: he, isDirty: B, isValid: U }
|
|
18993
19002
|
} = b, ie = u ?? ((I, q) => JSON.stringify(I).toLowerCase().includes(q.toLowerCase())), se = Je(
|
|
@@ -19024,7 +19033,7 @@ function s5(e) {
|
|
|
19024
19033
|
W([I]), h?.({
|
|
19025
19034
|
items: q
|
|
19026
19035
|
});
|
|
19027
|
-
},
|
|
19036
|
+
}, Te = (I) => z.includes(I), xt = async (I) => {
|
|
19028
19037
|
try {
|
|
19029
19038
|
await o?.(I), b.reset(b.getValues());
|
|
19030
19039
|
} catch (q) {
|
|
@@ -19038,7 +19047,7 @@ function s5(e) {
|
|
|
19038
19047
|
if (!ve) return null;
|
|
19039
19048
|
const Re = { xs: 12, ...ve.grid, ...q || {} };
|
|
19040
19049
|
return /* @__PURE__ */ d.jsx(ze, { item: !0, ...Re, children: ve.render ? ve.render(b) : Qd(ve, b) }, `fld-${String(I)}`);
|
|
19041
|
-
}, S = x ?? (e.haveId ? "edit" : "new"), R = S !== "onlyCars", L = S === "new" || S === "onlyCars", te = z?.length > 0, J = S === "onlyCars" ? te : e.haveId ?
|
|
19050
|
+
}, S = x ?? (e.haveId ? "edit" : "new"), R = S !== "onlyCars", L = S === "new" || S === "onlyCars", te = z?.length > 0, J = S === "onlyCars" ? te : e.haveId ? X && B || te : X && te;
|
|
19042
19051
|
return /* @__PURE__ */ d.jsx(
|
|
19043
19052
|
Cc,
|
|
19044
19053
|
{
|
|
@@ -19057,7 +19066,7 @@ function s5(e) {
|
|
|
19057
19066
|
}
|
|
19058
19067
|
},
|
|
19059
19068
|
children: /* @__PURE__ */ d.jsx(Uw, { ...b, children: /* @__PURE__ */ d.jsxs(
|
|
19060
|
-
|
|
19069
|
+
Q,
|
|
19061
19070
|
{
|
|
19062
19071
|
component: "form",
|
|
19063
19072
|
noValidate: !0,
|
|
@@ -19070,7 +19079,7 @@ function s5(e) {
|
|
|
19070
19079
|
position: "relative",
|
|
19071
19080
|
children: [
|
|
19072
19081
|
R && /* @__PURE__ */ d.jsxs(
|
|
19073
|
-
|
|
19082
|
+
Q,
|
|
19074
19083
|
{
|
|
19075
19084
|
sx: {
|
|
19076
19085
|
width: { xs: "100%", md: c ? "100%" : 394 },
|
|
@@ -19094,7 +19103,7 @@ function s5(e) {
|
|
|
19094
19103
|
},
|
|
19095
19104
|
children: [
|
|
19096
19105
|
/* @__PURE__ */ d.jsxs(
|
|
19097
|
-
|
|
19106
|
+
Q,
|
|
19098
19107
|
{
|
|
19099
19108
|
p: { xs: 2, md: 2 },
|
|
19100
19109
|
height: "100%",
|
|
@@ -19105,9 +19114,9 @@ function s5(e) {
|
|
|
19105
19114
|
}
|
|
19106
19115
|
},
|
|
19107
19116
|
children: [
|
|
19108
|
-
/* @__PURE__ */ d.jsx(
|
|
19117
|
+
/* @__PURE__ */ d.jsx(Ee, { fontWeight: 700, fontSize: 20, children: t.title }),
|
|
19109
19118
|
/* @__PURE__ */ d.jsxs(
|
|
19110
|
-
|
|
19119
|
+
Q,
|
|
19111
19120
|
{
|
|
19112
19121
|
sx: {
|
|
19113
19122
|
flex: 1,
|
|
@@ -19116,9 +19125,9 @@ function s5(e) {
|
|
|
19116
19125
|
paddingBottom: 10
|
|
19117
19126
|
},
|
|
19118
19127
|
children: [
|
|
19119
|
-
/* @__PURE__ */ d.jsx(
|
|
19128
|
+
/* @__PURE__ */ d.jsx(Ee, { fontSize: "18px", mt: 2.5, fontWeight: 500, children: t.subTitle }),
|
|
19120
19129
|
/* @__PURE__ */ d.jsx(
|
|
19121
|
-
|
|
19130
|
+
Q,
|
|
19122
19131
|
{
|
|
19123
19132
|
mt: 2,
|
|
19124
19133
|
display: "flex",
|
|
@@ -19154,7 +19163,7 @@ function s5(e) {
|
|
|
19154
19163
|
}
|
|
19155
19164
|
),
|
|
19156
19165
|
/* @__PURE__ */ d.jsx(
|
|
19157
|
-
|
|
19166
|
+
Q,
|
|
19158
19167
|
{
|
|
19159
19168
|
sx: {
|
|
19160
19169
|
position: "absolute",
|
|
@@ -19168,11 +19177,11 @@ function s5(e) {
|
|
|
19168
19177
|
backgroundColor: "#fff"
|
|
19169
19178
|
},
|
|
19170
19179
|
children: /* @__PURE__ */ d.jsx(
|
|
19171
|
-
|
|
19180
|
+
Q,
|
|
19172
19181
|
{
|
|
19173
19182
|
display: "flex",
|
|
19174
19183
|
alignItems: "center",
|
|
19175
|
-
children: /* @__PURE__ */ d.jsx(
|
|
19184
|
+
children: /* @__PURE__ */ d.jsx(Q, { display: "flex", gap: 1.5, width: "100%", justifyContent: c ? "flex-end" : "center", children: /* @__PURE__ */ d.jsx(
|
|
19176
19185
|
Rt,
|
|
19177
19186
|
{
|
|
19178
19187
|
type: "submit",
|
|
@@ -19200,7 +19209,7 @@ function s5(e) {
|
|
|
19200
19209
|
}
|
|
19201
19210
|
),
|
|
19202
19211
|
L && /* @__PURE__ */ d.jsx(
|
|
19203
|
-
|
|
19212
|
+
Q,
|
|
19204
19213
|
{
|
|
19205
19214
|
flex: 1,
|
|
19206
19215
|
display: "flex",
|
|
@@ -19208,7 +19217,7 @@ function s5(e) {
|
|
|
19208
19217
|
minWidth: 0,
|
|
19209
19218
|
sx: { height: "100%" },
|
|
19210
19219
|
children: /* @__PURE__ */ d.jsx(
|
|
19211
|
-
|
|
19220
|
+
Q,
|
|
19212
19221
|
{
|
|
19213
19222
|
mt: 1,
|
|
19214
19223
|
sx: {
|
|
@@ -19218,7 +19227,7 @@ function s5(e) {
|
|
|
19218
19227
|
height: "100%"
|
|
19219
19228
|
},
|
|
19220
19229
|
children: /* @__PURE__ */ d.jsxs(
|
|
19221
|
-
|
|
19230
|
+
Q,
|
|
19222
19231
|
{
|
|
19223
19232
|
sx: {
|
|
19224
19233
|
display: "flex",
|
|
@@ -19228,7 +19237,7 @@ function s5(e) {
|
|
|
19228
19237
|
},
|
|
19229
19238
|
children: [
|
|
19230
19239
|
/* @__PURE__ */ d.jsxs(
|
|
19231
|
-
|
|
19240
|
+
Q,
|
|
19232
19241
|
{
|
|
19233
19242
|
p: 3,
|
|
19234
19243
|
sx: {
|
|
@@ -19267,14 +19276,14 @@ function s5(e) {
|
|
|
19267
19276
|
}
|
|
19268
19277
|
),
|
|
19269
19278
|
/* @__PURE__ */ d.jsx(
|
|
19270
|
-
|
|
19279
|
+
Q,
|
|
19271
19280
|
{
|
|
19272
19281
|
display: "flex",
|
|
19273
19282
|
gap: 2,
|
|
19274
19283
|
alignItems: "center",
|
|
19275
19284
|
sx: { marginTop: { sm: 0, xs: 2 } },
|
|
19276
19285
|
children: /* @__PURE__ */ d.jsx(
|
|
19277
|
-
|
|
19286
|
+
Q,
|
|
19278
19287
|
{
|
|
19279
19288
|
onClick: a,
|
|
19280
19289
|
sx: {
|
|
@@ -19295,12 +19304,12 @@ function s5(e) {
|
|
|
19295
19304
|
}
|
|
19296
19305
|
),
|
|
19297
19306
|
x == "onlyCars" && /* @__PURE__ */ d.jsx(
|
|
19298
|
-
|
|
19307
|
+
Q,
|
|
19299
19308
|
{
|
|
19300
19309
|
display: "flex",
|
|
19301
19310
|
alignItems: "center",
|
|
19302
19311
|
justifyContent: "center",
|
|
19303
|
-
children: /* @__PURE__ */ d.jsx(
|
|
19312
|
+
children: /* @__PURE__ */ d.jsx(Q, { display: "flex", gap: 1.5, width: "100%", children: /* @__PURE__ */ d.jsx(
|
|
19304
19313
|
Rt,
|
|
19305
19314
|
{
|
|
19306
19315
|
type: "submit",
|
|
@@ -19326,7 +19335,7 @@ function s5(e) {
|
|
|
19326
19335
|
}
|
|
19327
19336
|
),
|
|
19328
19337
|
/* @__PURE__ */ d.jsx(
|
|
19329
|
-
|
|
19338
|
+
Q,
|
|
19330
19339
|
{
|
|
19331
19340
|
sx: {
|
|
19332
19341
|
flex: 1,
|
|
@@ -19345,7 +19354,7 @@ function s5(e) {
|
|
|
19345
19354
|
}
|
|
19346
19355
|
},
|
|
19347
19356
|
children: /* @__PURE__ */ d.jsx(
|
|
19348
|
-
|
|
19357
|
+
Q,
|
|
19349
19358
|
{
|
|
19350
19359
|
sx: {
|
|
19351
19360
|
minWidth: 1150,
|
|
@@ -19359,9 +19368,9 @@ function s5(e) {
|
|
|
19359
19368
|
sx: { borderColor: "transparent", padding: 0 },
|
|
19360
19369
|
children: [
|
|
19361
19370
|
pe?.map((I, q) => {
|
|
19362
|
-
const ve = f ? f(I) : q, Re =
|
|
19371
|
+
const ve = f ? f(I) : q, Re = Te(ve);
|
|
19363
19372
|
return /* @__PURE__ */ d.jsx(
|
|
19364
|
-
|
|
19373
|
+
Q,
|
|
19365
19374
|
{
|
|
19366
19375
|
sx: {
|
|
19367
19376
|
borderBottom: "1px solid #D3D4D5",
|
|
@@ -19398,7 +19407,7 @@ function s5(e) {
|
|
|
19398
19407
|
`${String(ve)}`
|
|
19399
19408
|
);
|
|
19400
19409
|
}),
|
|
19401
|
-
!pe?.length && /* @__PURE__ */ d.jsx(
|
|
19410
|
+
!pe?.length && /* @__PURE__ */ d.jsx(Q, { p: 3, children: /* @__PURE__ */ d.jsxs(Ee, { fontSize: 14, color: "#5C6372", children: [
|
|
19402
19411
|
"Sin resultados para “",
|
|
19403
19412
|
k,
|
|
19404
19413
|
"”."
|
|
@@ -19411,7 +19420,7 @@ function s5(e) {
|
|
|
19411
19420
|
}
|
|
19412
19421
|
),
|
|
19413
19422
|
/* @__PURE__ */ d.jsx(
|
|
19414
|
-
|
|
19423
|
+
Q,
|
|
19415
19424
|
{
|
|
19416
19425
|
sx: {
|
|
19417
19426
|
position: "sticky",
|
|
@@ -19492,7 +19501,7 @@ function c5({
|
|
|
19492
19501
|
M([...t.selectedIds]), K(""), W(!0);
|
|
19493
19502
|
}, H = () => {
|
|
19494
19503
|
W(!1), M([]);
|
|
19495
|
-
},
|
|
19504
|
+
}, X = () => {
|
|
19496
19505
|
const P = new Set(
|
|
19497
19506
|
wt.map(
|
|
19498
19507
|
(me, Ye) => String(vr(me, Ye, p.id))
|
|
@@ -19583,17 +19592,17 @@ function c5({
|
|
|
19583
19592
|
ie(G.map((me) => ({ name: me.name, size: me.size, file: me }))), P.target.value = "";
|
|
19584
19593
|
}, Ce = A[0], _e = Je(() => !i || Ce === void 0 ? void 0 : i.find(
|
|
19585
19594
|
(G, me) => String(vr(G, me, p.id)) === String(Ce)
|
|
19586
|
-
), [i, Ce, p.id]),
|
|
19595
|
+
), [i, Ce, p.id]), Te = Je(() => {
|
|
19587
19596
|
if (!(!_e || !p.distributorId))
|
|
19588
19597
|
return vr(_e, 0, p.distributorId);
|
|
19589
19598
|
}, [_e, p.distributorId]);
|
|
19590
|
-
console.log("lockedDisId",
|
|
19591
|
-
const xt = Je(() => _e ? (p.distributorTitle ? vr(_e, 0, p.distributorTitle) : void 0) ?? (
|
|
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(() => {
|
|
19592
19601
|
const P = i ?? [];
|
|
19593
|
-
return
|
|
19594
|
-
(G, me) => vr(G, me, p.distributorId) ==
|
|
19602
|
+
return Te == null || !p.distributorId ? P : P.filter(
|
|
19603
|
+
(G, me) => vr(G, me, p.distributorId) == Te
|
|
19595
19604
|
);
|
|
19596
|
-
}, [i,
|
|
19605
|
+
}, [i, Te, p.distributorId]), ct = Je(() => {
|
|
19597
19606
|
if (!F.trim()) return wt;
|
|
19598
19607
|
const P = F.toLowerCase();
|
|
19599
19608
|
return wt.filter(
|
|
@@ -19624,7 +19633,7 @@ function c5({
|
|
|
19624
19633
|
tipoInt: w && D ? 2 : 1,
|
|
19625
19634
|
correoCliente: G,
|
|
19626
19635
|
correoAsesor: D ? me : "",
|
|
19627
|
-
disIdLocked:
|
|
19636
|
+
disIdLocked: Te
|
|
19628
19637
|
}), n?.();
|
|
19629
19638
|
}, te = Je(() => {
|
|
19630
19639
|
const G = b.split(Na).filter(Boolean).some((me) => Bs.test(me));
|
|
@@ -19667,7 +19676,7 @@ function c5({
|
|
|
19667
19676
|
},
|
|
19668
19677
|
children: [
|
|
19669
19678
|
/* @__PURE__ */ d.jsxs(
|
|
19670
|
-
|
|
19679
|
+
Q,
|
|
19671
19680
|
{
|
|
19672
19681
|
sx: {
|
|
19673
19682
|
display: "flex",
|
|
@@ -19678,7 +19687,7 @@ function c5({
|
|
|
19678
19687
|
},
|
|
19679
19688
|
children: [
|
|
19680
19689
|
/* @__PURE__ */ d.jsxs(
|
|
19681
|
-
|
|
19690
|
+
Q,
|
|
19682
19691
|
{
|
|
19683
19692
|
sx: {
|
|
19684
19693
|
p: 2,
|
|
@@ -19691,7 +19700,7 @@ function c5({
|
|
|
19691
19700
|
},
|
|
19692
19701
|
children: [
|
|
19693
19702
|
/* @__PURE__ */ d.jsxs(
|
|
19694
|
-
|
|
19703
|
+
Q,
|
|
19695
19704
|
{
|
|
19696
19705
|
sx: {
|
|
19697
19706
|
display: "flex",
|
|
@@ -19700,7 +19709,7 @@ function c5({
|
|
|
19700
19709
|
mb: 1
|
|
19701
19710
|
},
|
|
19702
19711
|
children: [
|
|
19703
|
-
/* @__PURE__ */ d.jsxs(
|
|
19712
|
+
/* @__PURE__ */ d.jsxs(Q, { sx: { display: "flex", alignItems: "center", gap: 2 }, children: [
|
|
19704
19713
|
u ? /* @__PURE__ */ d.jsx(
|
|
19705
19714
|
"img",
|
|
19706
19715
|
{
|
|
@@ -19709,7 +19718,7 @@ function c5({
|
|
|
19709
19718
|
style: { width: 24, height: 18 }
|
|
19710
19719
|
}
|
|
19711
19720
|
) : null,
|
|
19712
|
-
/* @__PURE__ */ d.jsxs(
|
|
19721
|
+
/* @__PURE__ */ d.jsxs(Ee, { fontWeight: 700, children: [
|
|
19713
19722
|
"Mensaje a",
|
|
19714
19723
|
" ",
|
|
19715
19724
|
a ? `${a.Nombre ?? ""} ${a.ApellidoP ?? ""} ${a.ApellidoM ?? ""}`.trim() : "—"
|
|
@@ -19791,7 +19800,7 @@ function c5({
|
|
|
19791
19800
|
]
|
|
19792
19801
|
}
|
|
19793
19802
|
) }),
|
|
19794
|
-
/* @__PURE__ */ d.jsxs(
|
|
19803
|
+
/* @__PURE__ */ d.jsxs(Q, { sx: { display: "flex", alignItems: "center", gap: 2, mb: 1.5 }, children: [
|
|
19795
19804
|
/* @__PURE__ */ d.jsx(
|
|
19796
19805
|
An,
|
|
19797
19806
|
{
|
|
@@ -19825,15 +19834,15 @@ function c5({
|
|
|
19825
19834
|
}
|
|
19826
19835
|
),
|
|
19827
19836
|
/* @__PURE__ */ d.jsx(nn, {}),
|
|
19828
|
-
/* @__PURE__ */ d.jsxs(
|
|
19837
|
+
/* @__PURE__ */ d.jsxs(Q, { p: 2, children: [
|
|
19829
19838
|
/* @__PURE__ */ d.jsxs(
|
|
19830
|
-
|
|
19839
|
+
Q,
|
|
19831
19840
|
{
|
|
19832
19841
|
sx: { display: "flex", alignItems: "center", gap: 1 },
|
|
19833
19842
|
onClick: $,
|
|
19834
19843
|
children: [
|
|
19835
19844
|
/* @__PURE__ */ d.jsx(
|
|
19836
|
-
|
|
19845
|
+
Ee,
|
|
19837
19846
|
{
|
|
19838
19847
|
fontSize: 12,
|
|
19839
19848
|
fontWeight: 600,
|
|
@@ -19845,19 +19854,19 @@ function c5({
|
|
|
19845
19854
|
]
|
|
19846
19855
|
}
|
|
19847
19856
|
),
|
|
19848
|
-
S.length > 0 ? /* @__PURE__ */ d.jsx(
|
|
19857
|
+
S.length > 0 ? /* @__PURE__ */ d.jsx(Q, { sx: { mt: 1.5, display: "flex", gap: 1, flexWrap: "wrap" }, children: S.map((P, G) => {
|
|
19849
19858
|
const me = vr(P, G, p.id), Ye = vr(P, G, p.title) ?? "", Tt = vr(P, G, p.image), At = IE(f, Tt);
|
|
19850
19859
|
return /* @__PURE__ */ d.jsx(
|
|
19851
19860
|
Io,
|
|
19852
19861
|
{
|
|
19853
19862
|
onDelete: () => R(me),
|
|
19854
19863
|
label: /* @__PURE__ */ d.jsxs(
|
|
19855
|
-
|
|
19864
|
+
Q,
|
|
19856
19865
|
{
|
|
19857
19866
|
sx: { display: "flex", alignItems: "center", gap: 1 },
|
|
19858
19867
|
children: [
|
|
19859
19868
|
/* @__PURE__ */ d.jsx(
|
|
19860
|
-
|
|
19869
|
+
Q,
|
|
19861
19870
|
{
|
|
19862
19871
|
sx: {
|
|
19863
19872
|
width: 28,
|
|
@@ -19907,10 +19916,10 @@ function c5({
|
|
|
19907
19916
|
},
|
|
19908
19917
|
String(me)
|
|
19909
19918
|
);
|
|
19910
|
-
}) }) : /* @__PURE__ */ d.jsx(
|
|
19919
|
+
}) }) : /* @__PURE__ */ d.jsx(Ee, { fontSize: 13, color: "#5C6372", sx: { mt: 0.5 }, children: "Aún no has seleccionado autos." })
|
|
19911
19920
|
] }),
|
|
19912
19921
|
/* @__PURE__ */ d.jsx(nn, {}),
|
|
19913
|
-
/* @__PURE__ */ d.jsxs(
|
|
19922
|
+
/* @__PURE__ */ d.jsxs(Q, { sx: { p: 2 }, children: [
|
|
19914
19923
|
/* @__PURE__ */ d.jsx(
|
|
19915
19924
|
Bt,
|
|
19916
19925
|
{
|
|
@@ -19984,7 +19993,7 @@ function c5({
|
|
|
19984
19993
|
)
|
|
19985
19994
|
] }),
|
|
19986
19995
|
/* @__PURE__ */ d.jsxs(
|
|
19987
|
-
|
|
19996
|
+
Q,
|
|
19988
19997
|
{
|
|
19989
19998
|
sx: {
|
|
19990
19999
|
position: { xs: "sticky", sm: "sticky" },
|
|
@@ -20018,7 +20027,7 @@ function c5({
|
|
|
20018
20027
|
children: "Adjuntar archivo"
|
|
20019
20028
|
}
|
|
20020
20029
|
),
|
|
20021
|
-
/* @__PURE__ */ d.jsx(
|
|
20030
|
+
/* @__PURE__ */ d.jsx(Q, { sx: { flex: 1 } }),
|
|
20022
20031
|
/* @__PURE__ */ d.jsx(
|
|
20023
20032
|
Rt,
|
|
20024
20033
|
{
|
|
@@ -20065,7 +20074,7 @@ function c5({
|
|
|
20065
20074
|
}
|
|
20066
20075
|
),
|
|
20067
20076
|
/* @__PURE__ */ d.jsxs(jh, { children: [
|
|
20068
|
-
/* @__PURE__ */ d.jsxs(
|
|
20077
|
+
/* @__PURE__ */ d.jsxs(Q, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
20069
20078
|
/* @__PURE__ */ d.jsx(
|
|
20070
20079
|
Bt,
|
|
20071
20080
|
{
|
|
@@ -20079,21 +20088,21 @@ function c5({
|
|
|
20079
20088
|
),
|
|
20080
20089
|
xt != null && /* @__PURE__ */ d.jsx(Io, { size: "small", label: `Distribuidora: ${xt}` })
|
|
20081
20090
|
] }),
|
|
20082
|
-
/* @__PURE__ */ d.jsxs(
|
|
20091
|
+
/* @__PURE__ */ d.jsxs(Ee, { variant: "caption", fontWeight: 600, children: [
|
|
20083
20092
|
"RESULTADOS (",
|
|
20084
20093
|
ct.length,
|
|
20085
20094
|
")"
|
|
20086
20095
|
] }),
|
|
20087
20096
|
/* @__PURE__ */ d.jsxs(Bo, { sx: { p: 0 }, children: [
|
|
20088
20097
|
ct.map((P, G) => {
|
|
20089
|
-
const me = vr(P, G, p.id), Ye = A.includes(String(me)) || A.includes(me), Tt =
|
|
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;
|
|
20090
20099
|
return /* @__PURE__ */ d.jsx(
|
|
20091
20100
|
Vo,
|
|
20092
20101
|
{
|
|
20093
20102
|
disableGutters: !0,
|
|
20094
20103
|
sx: { p: 0, opacity: Tt ? 1 : 0.5 },
|
|
20095
20104
|
children: /* @__PURE__ */ d.jsx(
|
|
20096
|
-
|
|
20105
|
+
Q,
|
|
20097
20106
|
{
|
|
20098
20107
|
onClick: () => Tt && fe(me),
|
|
20099
20108
|
sx: {
|
|
@@ -20110,7 +20119,7 @@ function c5({
|
|
|
20110
20119
|
String(me)
|
|
20111
20120
|
);
|
|
20112
20121
|
}),
|
|
20113
|
-
ct.length === 0 && /* @__PURE__ */ d.jsx(
|
|
20122
|
+
ct.length === 0 && /* @__PURE__ */ d.jsx(Q, { p: 2, children: /* @__PURE__ */ d.jsx(Ee, { children: "Tu búsqueda no generó resultados" }) })
|
|
20114
20123
|
] })
|
|
20115
20124
|
] }),
|
|
20116
20125
|
/* @__PURE__ */ d.jsxs(Nh, { sx: { px: 3, pb: 2 }, children: [
|
|
@@ -20127,7 +20136,7 @@ function c5({
|
|
|
20127
20136
|
Rt,
|
|
20128
20137
|
{
|
|
20129
20138
|
variant: "contained",
|
|
20130
|
-
onClick:
|
|
20139
|
+
onClick: X,
|
|
20131
20140
|
sx: { backgroundColor: "#336BE1" },
|
|
20132
20141
|
children: "Guardar selección"
|
|
20133
20142
|
}
|