componentes-exagono 0.1.63 → 0.1.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +291 -261
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as re from "react";
|
|
2
2
|
import E, { forwardRef as ea, useContext as Ci, useState as Se, useLayoutEffect as bc, cloneElement as Jd, createRef as ln, Component as Pt, useRef as Zr, useCallback as Xa, useEffect as Ct, createElement as Ja, createContext as xc, useMemo as Je } from "react";
|
|
3
|
-
import { IconButton as Mt, CircularProgress as ef, List as Bo, ListItem as Vo, ListItemText as ki, Checkbox as Wo, Modal as wc, Box as
|
|
3
|
+
import { IconButton as Mt, CircularProgress as ef, List as Bo, ListItem as Vo, ListItemText as ki, Checkbox as Wo, Modal as wc, Box as Q, Typography as Ae, Grid as ze, TextField as Bt, Divider as nn, Autocomplete as ya, InputAdornment as Vs, FormControlLabel as An, Button as Rt, ListItemButton as tf, Collapse as Rh, useTheme as _c, useMediaQuery as Sc, Dialog as Cc, Stack as pr, Tooltip as $a, Chip as Io, Avatar as Qn, Menu as hl, Fade as ml, RadioGroup as Ws, Radio as Us, InputBase as Oh, Select as rf, MenuItem as Hs, FormControl as nf, FormLabel as Ih, Drawer as Mh, DialogTitle as Ph, DialogContent as jh, DialogActions as Nh } from "@mui/material";
|
|
4
4
|
import { isBefore as Yt, isAfter as Cr, isDate as on, getYear as Me, getSeconds as an, getMinutes as Kr, getHours as qr, getMonth as $t, isEqual as $h, parseISO as Fh, toDate as of, isValid as _r, differenceInCalendarDays as ei, min as gl, max as vl, startOfDay as po, endOfDay as ta, parse as Lh, isWithinInterval as Uo, endOfYear as af, startOfYear as kc, endOfMonth as Dc, startOfMonth as Ec, setHours as Fa, setMinutes as La, setSeconds as za, isSameDay as Xn, addMonths as un, subMonths as Rn, setYear as Ar, differenceInDays as zh, addDays as Gr, setMonth as br, subYears as oo, addYears as sn, format as at, isSameYear as Bh, isSameMonth as sf, addWeeks as Ys, subWeeks as yl, subDays as Vh, startOfWeek as cf, differenceInCalendarMonths as ti, subQuarters as lf, differenceInCalendarQuarters as ri, differenceInCalendarYears as ni, addQuarters as uf, getTime as Zs, setQuarter as qn, getQuarter as $o, addMinutes as Ks, endOfWeek as Wh, isSameQuarter as Uh, startOfQuarter as Hh, addHours as qs, addSeconds as Yh, getISOWeek as Zh, getDay as Kh, getDate as bl, isTomorrow as qh, isToday as Gh } from "date-fns";
|
|
5
5
|
import * as Qh from "react-dom";
|
|
6
6
|
import Xh from "react-dom";
|
|
@@ -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
|
|
@@ -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
|
}
|
|
@@ -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);
|
|
@@ -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("");
|
|
@@ -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);
|
|
@@ -16227,7 +16227,7 @@ 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
16232
|
/* @__PURE__ */ d.jsx(Ae, { variant: "h6", mb: 2, children: a ? "Editar evento" : "Agregar evento" }),
|
|
16233
16233
|
/* @__PURE__ */ d.jsxs(ze, { container: !0, spacing: 1, marginBottom: l ? 0 : 1, children: [
|
|
@@ -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
16586
|
/* @__PURE__ */ d.jsx(Ae, { variant: "h6", component: "h2", sx: { mt: 1 }, children: r }),
|
|
16587
16587
|
/* @__PURE__ */ d.jsx(Ae, { sx: { mt: 2 }, children: o }),
|
|
16588
|
-
/* @__PURE__ */ d.jsxs(
|
|
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,8 +16607,8 @@ 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(
|
|
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
16612
|
/* @__PURE__ */ d.jsxs(Ae, { sx: { fontSize: "20px" }, component: "h2", children: [
|
|
16613
16613
|
"Eventos del",
|
|
16614
16614
|
" ",
|
|
@@ -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,7 +16689,7 @@ 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(
|
|
16692
|
+
/* @__PURE__ */ d.jsx(Q, { sx: { mr: 1.5 }, children: i.icon }),
|
|
16693
16693
|
/* @__PURE__ */ d.jsx(Ae, { variant: "body2", sx: { flexGrow: 1 }, children: n }),
|
|
16694
16694
|
/* @__PURE__ */ d.jsx(Mt, { size: "small", onClick: () => o(e), children: /* @__PURE__ */ d.jsx(Pn, { fontSize: "small" }) })
|
|
16695
16695
|
]
|
|
@@ -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,10 +16755,10 @@ 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
16764
|
const T = po(/* @__PURE__ */ new Date()), ne = ta(Gr(T, 6)), Ce = { start: T, end: ne }, _e = s.filter((Ee) => {
|
|
@@ -16885,8 +16885,8 @@ function eE(e, n) {
|
|
|
16885
16885
|
return n;
|
|
16886
16886
|
}
|
|
16887
16887
|
const tE = yt(/* @__PURE__ */ d.jsx("path", {
|
|
16888
|
-
d: "
|
|
16889
|
-
}), "
|
|
16888
|
+
d: "M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61"
|
|
16889
|
+
}), "FilterAlt"), rE = yt(/* @__PURE__ */ d.jsx("path", {
|
|
16890
16890
|
d: "M15.5 14h-.79l-.28-.27c1.2-1.4 1.82-3.31 1.48-5.34-.47-2.78-2.79-5-5.59-5.34-4.23-.52-7.79 3.04-7.27 7.27.34 2.8 2.56 5.12 5.34 5.59 2.03.34 3.94-.28 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0s.41-1.08 0-1.49zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"
|
|
16891
16891
|
}), "SearchRounded"), nE = yt(/* @__PURE__ */ d.jsx("path", {
|
|
16892
16892
|
d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"
|
|
@@ -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",
|
|
@@ -16948,9 +16948,9 @@ function iE({
|
|
|
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",
|
|
@@ -16962,11 +16962,13 @@ function iE({
|
|
|
16962
16962
|
bgcolor: m ? "rgba(30,91,206,0.06)" : "background.paper",
|
|
16963
16963
|
borderTop: "1px solid rgba(0,0,0,0.08)",
|
|
16964
16964
|
"&:hover": { bgcolor: "rgba(30,91,206,0.12)" },
|
|
16965
|
-
boxSizing: "border-box"
|
|
16965
|
+
boxSizing: "border-box",
|
|
16966
|
+
cursor: "pointer"
|
|
16966
16967
|
},
|
|
16968
|
+
onClick: () => g((x) => !x),
|
|
16967
16969
|
children: [
|
|
16968
16970
|
/* @__PURE__ */ d.jsxs(
|
|
16969
|
-
|
|
16971
|
+
Q,
|
|
16970
16972
|
{
|
|
16971
16973
|
sx: {
|
|
16972
16974
|
display: "flex",
|
|
@@ -16975,7 +16977,7 @@ function iE({
|
|
|
16975
16977
|
minWidth: 0
|
|
16976
16978
|
},
|
|
16977
16979
|
children: [
|
|
16978
|
-
/* @__PURE__ */ d.jsx(Mt, { size: "small",
|
|
16980
|
+
/* @__PURE__ */ d.jsx(Mt, { size: "small", disableRipple: !0, children: p ? /* @__PURE__ */ d.jsx(oE, {}) : /* @__PURE__ */ d.jsx(nE, {}) }),
|
|
16979
16981
|
/* @__PURE__ */ d.jsx(
|
|
16980
16982
|
Ae,
|
|
16981
16983
|
{
|
|
@@ -16999,93 +17001,105 @@ function iE({
|
|
|
16999
17001
|
]
|
|
17000
17002
|
}
|
|
17001
17003
|
),
|
|
17002
|
-
/* @__PURE__ */ d.jsx(Rh, { in: p, unmountOnExit: !0, children: /* @__PURE__ */ d.jsxs(
|
|
17003
|
-
|
|
17004
|
-
|
|
17005
|
-
{
|
|
17006
|
-
|
|
17007
|
-
|
|
17008
|
-
|
|
17009
|
-
|
|
17010
|
-
|
|
17011
|
-
|
|
17012
|
-
|
|
17013
|
-
|
|
17014
|
-
|
|
17015
|
-
color: "#1a1a1a",
|
|
17016
|
-
borderTop: "1px solid rgba(0,0,0,0.12)",
|
|
17017
|
-
boxSizing: "border-box"
|
|
17018
|
-
},
|
|
17019
|
-
children: h.map((x) => /* @__PURE__ */ d.jsx(
|
|
17020
|
-
Ae,
|
|
17004
|
+
/* @__PURE__ */ d.jsx(Rh, { in: p, unmountOnExit: !0, children: /* @__PURE__ */ d.jsxs(
|
|
17005
|
+
Q,
|
|
17006
|
+
{
|
|
17007
|
+
sx: {
|
|
17008
|
+
overflowX: "auto",
|
|
17009
|
+
"&::-webkit-scrollbar": {
|
|
17010
|
+
height: "5px"
|
|
17011
|
+
// ← aquí la haces delgadita
|
|
17012
|
+
}
|
|
17013
|
+
},
|
|
17014
|
+
children: [
|
|
17015
|
+
/* @__PURE__ */ d.jsx(
|
|
17016
|
+
Q,
|
|
17021
17017
|
{
|
|
17022
17018
|
sx: {
|
|
17023
|
-
|
|
17024
|
-
|
|
17025
|
-
|
|
17026
|
-
|
|
17027
|
-
|
|
17028
|
-
|
|
17029
|
-
|
|
17019
|
+
minWidth: y,
|
|
17020
|
+
display: "grid",
|
|
17021
|
+
gridTemplateColumns: Kd(h),
|
|
17022
|
+
columnGap: "16px",
|
|
17023
|
+
alignItems: "center",
|
|
17024
|
+
px: "16px",
|
|
17025
|
+
py: 1,
|
|
17026
|
+
bgcolor: "rgba(30,91,206,0.18)",
|
|
17027
|
+
color: "#1a1a1a",
|
|
17028
|
+
borderTop: "1px solid rgba(0,0,0,0.12)",
|
|
17029
|
+
boxSizing: "border-box"
|
|
17030
17030
|
},
|
|
17031
|
-
children: x.
|
|
17032
|
-
|
|
17033
|
-
|
|
17034
|
-
|
|
17035
|
-
|
|
17036
|
-
|
|
17037
|
-
|
|
17038
|
-
|
|
17039
|
-
|
|
17040
|
-
|
|
17041
|
-
|
|
17042
|
-
|
|
17043
|
-
|
|
17044
|
-
columnGap: "16px",
|
|
17045
|
-
alignItems: "center",
|
|
17046
|
-
px: "16px",
|
|
17047
|
-
py: 1,
|
|
17048
|
-
bgcolor: b % 2 === 0 ? "background.paper" : "rgba(30,91,206,0.06)",
|
|
17049
|
-
borderTop: "1px solid rgba(0,0,0,0.06)",
|
|
17050
|
-
"&:hover": { bgcolor: "rgba(30,91,206,0.12)" },
|
|
17051
|
-
boxSizing: "border-box",
|
|
17052
|
-
cursor: "pointer"
|
|
17053
|
-
},
|
|
17054
|
-
onClick: () => a?.(x, u),
|
|
17055
|
-
children: h.map((k, w) => {
|
|
17056
|
-
const _ = k.accessor ? k.accessor(x, b) : k.field ? x[k.field] : null;
|
|
17057
|
-
return /* @__PURE__ */ d.jsx(
|
|
17058
|
-
X,
|
|
17059
|
-
{
|
|
17060
|
-
sx: {
|
|
17061
|
-
justifySelf: Zd(k.align),
|
|
17062
|
-
textAlign: k.align ?? "left",
|
|
17063
|
-
minWidth: 0
|
|
17031
|
+
children: h.map((x) => /* @__PURE__ */ d.jsx(
|
|
17032
|
+
Ae,
|
|
17033
|
+
{
|
|
17034
|
+
sx: {
|
|
17035
|
+
justifySelf: Zd(x.align),
|
|
17036
|
+
textAlign: x.align ?? "left",
|
|
17037
|
+
fontSize: 12.5,
|
|
17038
|
+
fontWeight: 800,
|
|
17039
|
+
whiteSpace: "nowrap",
|
|
17040
|
+
overflow: "hidden",
|
|
17041
|
+
textOverflow: "ellipsis"
|
|
17042
|
+
},
|
|
17043
|
+
children: x.header
|
|
17064
17044
|
},
|
|
17065
|
-
|
|
17066
|
-
|
|
17045
|
+
x.key
|
|
17046
|
+
))
|
|
17047
|
+
}
|
|
17048
|
+
),
|
|
17049
|
+
(u.rows ?? []).map((x, b) => /* @__PURE__ */ d.jsx(
|
|
17050
|
+
Q,
|
|
17051
|
+
{
|
|
17052
|
+
sx: {
|
|
17053
|
+
minWidth: y,
|
|
17054
|
+
display: "grid",
|
|
17055
|
+
gridTemplateColumns: Kd(h),
|
|
17056
|
+
columnGap: "16px",
|
|
17057
|
+
alignItems: "center",
|
|
17058
|
+
px: "16px",
|
|
17059
|
+
py: 1,
|
|
17060
|
+
bgcolor: b % 2 === 0 ? "background.paper" : "rgba(30,91,206,0.06)",
|
|
17061
|
+
borderTop: "1px solid rgba(0,0,0,0.06)",
|
|
17062
|
+
"&:hover": { bgcolor: "rgba(30,91,206,0.12)" },
|
|
17063
|
+
boxSizing: "border-box",
|
|
17064
|
+
cursor: "pointer"
|
|
17065
|
+
},
|
|
17066
|
+
onClick: () => a?.(x, u),
|
|
17067
|
+
children: h.map((k, w) => {
|
|
17068
|
+
const _ = k.accessor ? k.accessor(x, b) : k.field ? x[k.field] : null;
|
|
17069
|
+
return /* @__PURE__ */ d.jsx(
|
|
17070
|
+
Q,
|
|
17067
17071
|
{
|
|
17068
17072
|
sx: {
|
|
17069
|
-
|
|
17070
|
-
|
|
17071
|
-
|
|
17072
|
-
) ? 700 : 500,
|
|
17073
|
-
whiteSpace: "nowrap",
|
|
17074
|
-
overflow: "hidden",
|
|
17075
|
-
textOverflow: "ellipsis"
|
|
17073
|
+
justifySelf: Zd(k.align),
|
|
17074
|
+
textAlign: k.align ?? "left",
|
|
17075
|
+
minWidth: 0
|
|
17076
17076
|
},
|
|
17077
|
-
|
|
17078
|
-
|
|
17079
|
-
|
|
17080
|
-
|
|
17081
|
-
|
|
17082
|
-
|
|
17083
|
-
|
|
17084
|
-
|
|
17085
|
-
|
|
17086
|
-
|
|
17087
|
-
|
|
17088
|
-
|
|
17077
|
+
children: typeof _ == "string" || typeof _ == "number" ? /* @__PURE__ */ d.jsx(
|
|
17078
|
+
Ae,
|
|
17079
|
+
{
|
|
17080
|
+
sx: {
|
|
17081
|
+
fontSize: 13,
|
|
17082
|
+
fontWeight: /^(estatus|seg|avance|nivel|asesor|fecha)$/i.test(
|
|
17083
|
+
k.key
|
|
17084
|
+
) ? 700 : 500,
|
|
17085
|
+
whiteSpace: "nowrap",
|
|
17086
|
+
overflow: "hidden",
|
|
17087
|
+
textOverflow: "ellipsis"
|
|
17088
|
+
},
|
|
17089
|
+
title: String(_),
|
|
17090
|
+
children: _
|
|
17091
|
+
}
|
|
17092
|
+
) : _
|
|
17093
|
+
},
|
|
17094
|
+
k.key ?? w
|
|
17095
|
+
);
|
|
17096
|
+
})
|
|
17097
|
+
},
|
|
17098
|
+
x.id ?? b
|
|
17099
|
+
))
|
|
17100
|
+
]
|
|
17101
|
+
}
|
|
17102
|
+
) })
|
|
17089
17103
|
] }, u.id);
|
|
17090
17104
|
})
|
|
17091
17105
|
] })
|
|
@@ -17192,7 +17206,7 @@ function gE({
|
|
|
17192
17206
|
), [A, $] = Se(!1), H = Je(
|
|
17193
17207
|
() => A ? M : M.slice(0, k),
|
|
17194
17208
|
[A, M]
|
|
17195
|
-
),
|
|
17209
|
+
), 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
17210
|
const Oe = ee(ge).split(/\s+/).filter(Boolean);
|
|
17197
17211
|
return Oe.length ? Oe.every((tt) => B(N, tt)) : !0;
|
|
17198
17212
|
}, [ie, se] = Se(""), [fe, pe] = Se([]);
|
|
@@ -17292,7 +17306,7 @@ function gE({
|
|
|
17292
17306
|
key: "nivel",
|
|
17293
17307
|
header: "Nivel de Interés",
|
|
17294
17308
|
accessor: (N) => /* @__PURE__ */ d.jsx(
|
|
17295
|
-
|
|
17309
|
+
Q,
|
|
17296
17310
|
{
|
|
17297
17311
|
sx: {
|
|
17298
17312
|
display: "inline-block",
|
|
@@ -17471,7 +17485,7 @@ function gE({
|
|
|
17471
17485
|
}
|
|
17472
17486
|
},
|
|
17473
17487
|
children: /* @__PURE__ */ d.jsxs(
|
|
17474
|
-
|
|
17488
|
+
Q,
|
|
17475
17489
|
{
|
|
17476
17490
|
sx: {
|
|
17477
17491
|
display: "flex",
|
|
@@ -17483,7 +17497,7 @@ function gE({
|
|
|
17483
17497
|
},
|
|
17484
17498
|
children: [
|
|
17485
17499
|
/* @__PURE__ */ d.jsxs(
|
|
17486
|
-
|
|
17500
|
+
Q,
|
|
17487
17501
|
{
|
|
17488
17502
|
sx: {
|
|
17489
17503
|
width: { xs: "100%", md: 405 },
|
|
@@ -17495,7 +17509,7 @@ function gE({
|
|
|
17495
17509
|
borderRight: { xs: "none", md: "1px solid #EBEEF0" }
|
|
17496
17510
|
},
|
|
17497
17511
|
children: [
|
|
17498
|
-
/* @__PURE__ */ d.jsxs(
|
|
17512
|
+
/* @__PURE__ */ d.jsxs(Q, { children: [
|
|
17499
17513
|
/* @__PURE__ */ d.jsx(
|
|
17500
17514
|
pr,
|
|
17501
17515
|
{
|
|
@@ -17504,16 +17518,16 @@ function gE({
|
|
|
17504
17518
|
alignItems: "center",
|
|
17505
17519
|
mb: 1,
|
|
17506
17520
|
sx: { px: 2.5, pt: 2.5 },
|
|
17507
|
-
children: /* @__PURE__ */ d.jsxs(
|
|
17521
|
+
children: /* @__PURE__ */ d.jsxs(Q, { display: "flex", flexDirection: "column", gap: 1, width: "100%", children: [
|
|
17508
17522
|
/* @__PURE__ */ d.jsx(
|
|
17509
|
-
|
|
17523
|
+
Q,
|
|
17510
17524
|
{
|
|
17511
17525
|
display: "flex",
|
|
17512
17526
|
flexDirection: "row",
|
|
17513
17527
|
justifyContent: "space-between",
|
|
17514
17528
|
width: "100%",
|
|
17515
17529
|
alignItems: "center",
|
|
17516
|
-
children: /* @__PURE__ */ d.jsx(
|
|
17530
|
+
children: /* @__PURE__ */ d.jsx(Q, { sx: { flex: 1, minWidth: 0, pr: 1 }, children: /* @__PURE__ */ d.jsxs(
|
|
17517
17531
|
Ae,
|
|
17518
17532
|
{
|
|
17519
17533
|
component: "span",
|
|
@@ -17557,7 +17571,7 @@ function gE({
|
|
|
17557
17571
|
}
|
|
17558
17572
|
),
|
|
17559
17573
|
W.map((N, ge) => /* @__PURE__ */ d.jsxs(
|
|
17560
|
-
|
|
17574
|
+
Q,
|
|
17561
17575
|
{
|
|
17562
17576
|
sx: {
|
|
17563
17577
|
display: "flex",
|
|
@@ -17591,13 +17605,13 @@ function gE({
|
|
|
17591
17605
|
/* @__PURE__ */ d.jsx(pr, { mb: 2, sx: { px: 2.5, pt: 0, gap: 2 }, children: r.map((N, ge) => {
|
|
17592
17606
|
const Oe = N.label?.toLowerCase().startsWith("asesor");
|
|
17593
17607
|
return /* @__PURE__ */ d.jsxs(
|
|
17594
|
-
|
|
17608
|
+
Q,
|
|
17595
17609
|
{
|
|
17596
17610
|
display: "flex",
|
|
17597
17611
|
justifyContent: "space-between",
|
|
17598
17612
|
alignItems: "center",
|
|
17599
17613
|
children: [
|
|
17600
|
-
/* @__PURE__ */ d.jsx(
|
|
17614
|
+
/* @__PURE__ */ d.jsx(Q, { sx: { width: "50%" }, children: /* @__PURE__ */ d.jsx(
|
|
17601
17615
|
Ae,
|
|
17602
17616
|
{
|
|
17603
17617
|
variant: "body2",
|
|
@@ -17607,7 +17621,7 @@ function gE({
|
|
|
17607
17621
|
}
|
|
17608
17622
|
) }),
|
|
17609
17623
|
/* @__PURE__ */ d.jsxs(
|
|
17610
|
-
|
|
17624
|
+
Q,
|
|
17611
17625
|
{
|
|
17612
17626
|
sx: {
|
|
17613
17627
|
width: "50%",
|
|
@@ -17630,6 +17644,7 @@ function gE({
|
|
|
17630
17644
|
size: "small",
|
|
17631
17645
|
onClick: (tt) => _(tt.currentTarget),
|
|
17632
17646
|
sx: { ml: 0.5 },
|
|
17647
|
+
disableRipple: !0,
|
|
17633
17648
|
children: /* @__PURE__ */ d.jsx(
|
|
17634
17649
|
sE,
|
|
17635
17650
|
{
|
|
@@ -17651,9 +17666,9 @@ function gE({
|
|
|
17651
17666
|
}) }),
|
|
17652
17667
|
/* @__PURE__ */ d.jsx(nn, { sx: { my: 2 } })
|
|
17653
17668
|
] }),
|
|
17654
|
-
/* @__PURE__ */ d.jsx(
|
|
17669
|
+
/* @__PURE__ */ d.jsx(Q, { px: 2.5, pb: 0.5, children: /* @__PURE__ */ d.jsx(Ae, { fontWeight: 800, children: "Historial Actividad:" }) }),
|
|
17655
17670
|
/* @__PURE__ */ d.jsxs(
|
|
17656
|
-
|
|
17671
|
+
Q,
|
|
17657
17672
|
{
|
|
17658
17673
|
sx: {
|
|
17659
17674
|
px: 2.5,
|
|
@@ -17668,10 +17683,10 @@ function gE({
|
|
|
17668
17683
|
},
|
|
17669
17684
|
children: [
|
|
17670
17685
|
H.length === 0 && /* @__PURE__ */ d.jsx(Ae, { variant: "body2", color: "text.secondary", children: "Sin actividad registrada." }),
|
|
17671
|
-
/* @__PURE__ */ d.jsxs(
|
|
17686
|
+
/* @__PURE__ */ d.jsxs(Q, { children: [
|
|
17672
17687
|
H?.map((N, ge) => {
|
|
17673
17688
|
const Oe = K(N), { bg: tt, color: rt } = F(N.TipoComentario), Ot = mE(N.Comentario || "");
|
|
17674
|
-
return /* @__PURE__ */ d.jsxs(
|
|
17689
|
+
return /* @__PURE__ */ d.jsxs(Q, { sx: { pb: 1.5 }, children: [
|
|
17675
17690
|
/* @__PURE__ */ d.jsxs(
|
|
17676
17691
|
pr,
|
|
17677
17692
|
{
|
|
@@ -17741,7 +17756,7 @@ function gE({
|
|
|
17741
17756
|
ge < M.length - 1 && /* @__PURE__ */ d.jsx(nn, { sx: { mt: 1.25 } })
|
|
17742
17757
|
] }, N.SegID ?? ge);
|
|
17743
17758
|
}),
|
|
17744
|
-
M.length > k && /* @__PURE__ */ d.jsx(
|
|
17759
|
+
M.length > k && /* @__PURE__ */ d.jsx(Q, { sx: { mt: 1 }, children: /* @__PURE__ */ d.jsx(
|
|
17745
17760
|
Rt,
|
|
17746
17761
|
{
|
|
17747
17762
|
onClick: () => $((N) => !N),
|
|
@@ -17755,7 +17770,7 @@ function gE({
|
|
|
17755
17770
|
textDecoration: "underline"
|
|
17756
17771
|
}
|
|
17757
17772
|
},
|
|
17758
|
-
children: A ? "Ver menos" : `Ver más (${
|
|
17773
|
+
children: A ? "Ver menos" : `Ver más (${X})`
|
|
17759
17774
|
}
|
|
17760
17775
|
) })
|
|
17761
17776
|
] })
|
|
@@ -17780,12 +17795,12 @@ function gE({
|
|
|
17780
17795
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
17781
17796
|
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
17782
17797
|
children: /* @__PURE__ */ d.jsxs(
|
|
17783
|
-
|
|
17798
|
+
Q,
|
|
17784
17799
|
{
|
|
17785
17800
|
sx: { display: "flex", flexDirection: "column", height: "100%" },
|
|
17786
17801
|
children: [
|
|
17787
17802
|
/* @__PURE__ */ d.jsx(
|
|
17788
|
-
|
|
17803
|
+
Q,
|
|
17789
17804
|
{
|
|
17790
17805
|
sx: {
|
|
17791
17806
|
position: "sticky",
|
|
@@ -17801,13 +17816,13 @@ function gE({
|
|
|
17801
17816
|
children: "Historial asesores"
|
|
17802
17817
|
}
|
|
17803
17818
|
),
|
|
17804
|
-
/* @__PURE__ */ d.jsxs(
|
|
17805
|
-
O.length === 0 && /* @__PURE__ */ d.jsx(
|
|
17819
|
+
/* @__PURE__ */ d.jsxs(Q, { sx: { overflowY: "auto", py: 0.5, maxHeight: 200 }, children: [
|
|
17820
|
+
O.length === 0 && /* @__PURE__ */ d.jsx(Q, { sx: { px: 1.5, py: 1 }, children: /* @__PURE__ */ d.jsx(Ae, { variant: "body2", color: "text.secondary", children: "Sin registros" }) }),
|
|
17806
17821
|
O.map((N, ge) => {
|
|
17807
17822
|
const Oe = lE(N), tt = cE(
|
|
17808
17823
|
N.FechaBaja ?? N.FechaAsignacion
|
|
17809
17824
|
);
|
|
17810
|
-
return /* @__PURE__ */ d.jsx(
|
|
17825
|
+
return /* @__PURE__ */ d.jsx(Q, { sx: { px: 1, py: 0.75 }, children: /* @__PURE__ */ d.jsxs(pr, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
17811
17826
|
/* @__PURE__ */ d.jsx(
|
|
17812
17827
|
Qn,
|
|
17813
17828
|
{
|
|
@@ -17822,7 +17837,7 @@ function gE({
|
|
|
17822
17837
|
children: uE(Oe)
|
|
17823
17838
|
}
|
|
17824
17839
|
),
|
|
17825
|
-
/* @__PURE__ */ d.jsx(
|
|
17840
|
+
/* @__PURE__ */ d.jsx(Q, { sx: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ d.jsx(Ae, { variant: "body2", noWrap: !0, children: Oe }) }),
|
|
17826
17841
|
/* @__PURE__ */ d.jsx(
|
|
17827
17842
|
Ae,
|
|
17828
17843
|
{
|
|
@@ -17844,7 +17859,7 @@ function gE({
|
|
|
17844
17859
|
}
|
|
17845
17860
|
),
|
|
17846
17861
|
wo ? /* @__PURE__ */ d.jsxs(
|
|
17847
|
-
|
|
17862
|
+
Q,
|
|
17848
17863
|
{
|
|
17849
17864
|
sx: {
|
|
17850
17865
|
flex: 1,
|
|
@@ -17854,16 +17869,16 @@ function gE({
|
|
|
17854
17869
|
},
|
|
17855
17870
|
children: [
|
|
17856
17871
|
/* @__PURE__ */ d.jsx(
|
|
17857
|
-
|
|
17872
|
+
Q,
|
|
17858
17873
|
{
|
|
17859
17874
|
sx: {
|
|
17860
17875
|
position: "absolute",
|
|
17861
|
-
top:
|
|
17862
|
-
|
|
17876
|
+
top: 18,
|
|
17877
|
+
left: 24,
|
|
17863
17878
|
zIndex: 10,
|
|
17864
17879
|
pointerEvents: "auto"
|
|
17865
17880
|
},
|
|
17866
|
-
children: /* @__PURE__ */ d.jsx(
|
|
17881
|
+
children: /* @__PURE__ */ d.jsx(Q, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: /* @__PURE__ */ d.jsx(
|
|
17867
17882
|
Rt,
|
|
17868
17883
|
{
|
|
17869
17884
|
onClick: () => _o(!1),
|
|
@@ -17872,7 +17887,7 @@ function gE({
|
|
|
17872
17887
|
minWidth: 36,
|
|
17873
17888
|
minHeight: 36,
|
|
17874
17889
|
p: 0.5,
|
|
17875
|
-
borderRadius: "
|
|
17890
|
+
borderRadius: "8px",
|
|
17876
17891
|
color: "#fff",
|
|
17877
17892
|
boxShadow: 3,
|
|
17878
17893
|
"&:hover": {
|
|
@@ -17881,7 +17896,7 @@ function gE({
|
|
|
17881
17896
|
},
|
|
17882
17897
|
children: /* @__PURE__ */ d.jsx(pE, { fontSize: "medium" })
|
|
17883
17898
|
}
|
|
17884
|
-
)
|
|
17899
|
+
) })
|
|
17885
17900
|
}
|
|
17886
17901
|
),
|
|
17887
17902
|
/* @__PURE__ */ d.jsx(
|
|
@@ -17894,9 +17909,9 @@ function gE({
|
|
|
17894
17909
|
)
|
|
17895
17910
|
]
|
|
17896
17911
|
}
|
|
17897
|
-
) : /* @__PURE__ */ d.jsxs(
|
|
17898
|
-
/* @__PURE__ */ d.jsx(
|
|
17899
|
-
|
|
17912
|
+
) : /* @__PURE__ */ d.jsxs(Q, { sx: { width: "100%", minHeight: 0, overflowY: "auto" }, children: [
|
|
17913
|
+
/* @__PURE__ */ d.jsx(Q, { sx: { mt: { xs: 1.5, md: 3 } }, children: /* @__PURE__ */ d.jsxs(
|
|
17914
|
+
Q,
|
|
17900
17915
|
{
|
|
17901
17916
|
sx: {
|
|
17902
17917
|
mt: 3,
|
|
@@ -17956,7 +17971,7 @@ function gE({
|
|
|
17956
17971
|
}
|
|
17957
17972
|
),
|
|
17958
17973
|
/* @__PURE__ */ d.jsxs(
|
|
17959
|
-
|
|
17974
|
+
Q,
|
|
17960
17975
|
{
|
|
17961
17976
|
sx: {
|
|
17962
17977
|
display: "flex",
|
|
@@ -18060,6 +18075,7 @@ function gE({
|
|
|
18060
18075
|
Mt,
|
|
18061
18076
|
{
|
|
18062
18077
|
onClick: (N) => R(N.currentTarget),
|
|
18078
|
+
disableRipple: !0,
|
|
18063
18079
|
sx: {
|
|
18064
18080
|
border: "1px solid #d4d7de",
|
|
18065
18081
|
borderRadius: 2,
|
|
@@ -18075,6 +18091,7 @@ function gE({
|
|
|
18075
18091
|
{
|
|
18076
18092
|
variant: "outlined",
|
|
18077
18093
|
onClick: Re,
|
|
18094
|
+
disableRipple: !0,
|
|
18078
18095
|
sx: {
|
|
18079
18096
|
height: 40,
|
|
18080
18097
|
textTransform: "none",
|
|
@@ -18104,6 +18121,7 @@ function gE({
|
|
|
18104
18121
|
onClick: () => {
|
|
18105
18122
|
y?.(t);
|
|
18106
18123
|
},
|
|
18124
|
+
disableRipple: !0,
|
|
18107
18125
|
children: [
|
|
18108
18126
|
/* @__PURE__ */ d.jsx(
|
|
18109
18127
|
fE,
|
|
@@ -18159,7 +18177,7 @@ function gE({
|
|
|
18159
18177
|
children: "Filtro"
|
|
18160
18178
|
}
|
|
18161
18179
|
),
|
|
18162
|
-
/* @__PURE__ */ d.jsxs(
|
|
18180
|
+
/* @__PURE__ */ d.jsxs(Q, { children: [
|
|
18163
18181
|
/* @__PURE__ */ d.jsx(
|
|
18164
18182
|
Ae,
|
|
18165
18183
|
{
|
|
@@ -18214,7 +18232,7 @@ function gE({
|
|
|
18214
18232
|
}
|
|
18215
18233
|
)
|
|
18216
18234
|
] }),
|
|
18217
|
-
/* @__PURE__ */ d.jsxs(
|
|
18235
|
+
/* @__PURE__ */ d.jsxs(Q, { children: [
|
|
18218
18236
|
/* @__PURE__ */ d.jsx(
|
|
18219
18237
|
Ae,
|
|
18220
18238
|
{
|
|
@@ -18302,7 +18320,7 @@ function Gd(e, n, t) {
|
|
|
18302
18320
|
accessor: (F) => F[r.nombreCliente],
|
|
18303
18321
|
cell: i.nombreCliente,
|
|
18304
18322
|
// opcional si lo definiste
|
|
18305
|
-
width:
|
|
18323
|
+
width: 190
|
|
18306
18324
|
},
|
|
18307
18325
|
email: {
|
|
18308
18326
|
key: "email",
|
|
@@ -18312,7 +18330,7 @@ function Gd(e, n, t) {
|
|
|
18312
18330
|
const K = String(F[r.email] ?? "");
|
|
18313
18331
|
return K ? /* @__PURE__ */ d.jsx("a", { href: `mailto:${K}`, children: K }) : /* @__PURE__ */ d.jsx("span", { className: "text-muted", children: "—" });
|
|
18314
18332
|
}),
|
|
18315
|
-
width:
|
|
18333
|
+
width: 230
|
|
18316
18334
|
},
|
|
18317
18335
|
acciones: s.acciones ? void 0 : {
|
|
18318
18336
|
key: "acciones",
|
|
@@ -18324,7 +18342,7 @@ function Gd(e, n, t) {
|
|
|
18324
18342
|
if (!A) return;
|
|
18325
18343
|
const B = p.countryCode ?? "52", U = JD(String(A));
|
|
18326
18344
|
typeof window < "u" && window.open(`https://wa.me/${B}${U}`, "_blank");
|
|
18327
|
-
},
|
|
18345
|
+
}, X = (he) => {
|
|
18328
18346
|
if (he.stopPropagation(), f.onEmail)
|
|
18329
18347
|
return f.onEmail(F);
|
|
18330
18348
|
$ && typeof window < "u" && (window.location.href = `mailto:${$}`);
|
|
@@ -18349,7 +18367,7 @@ function Gd(e, n, t) {
|
|
|
18349
18367
|
type: "button",
|
|
18350
18368
|
className: "btn p-0 border-0 bg-transparent",
|
|
18351
18369
|
title: h.email ?? "Email",
|
|
18352
|
-
onClick:
|
|
18370
|
+
onClick: X,
|
|
18353
18371
|
style: { width: 24, height: 24 },
|
|
18354
18372
|
children: /* @__PURE__ */ d.jsx("img", { src: QD, alt: "Email" })
|
|
18355
18373
|
}
|
|
@@ -18422,7 +18440,7 @@ function i5(e) {
|
|
|
18422
18440
|
M({ open: !0, customer: U });
|
|
18423
18441
|
const ie = c?.vehiclesProvider?.(U) ?? [];
|
|
18424
18442
|
$(Array.isArray(ie) ? ie : []);
|
|
18425
|
-
},
|
|
18443
|
+
}, X = (U) => {
|
|
18426
18444
|
p?.(U), M({ open: !0, customer: U });
|
|
18427
18445
|
const ie = c?.vehiclesProvider?.(U) ?? [];
|
|
18428
18446
|
$(Array.isArray(ie) ? ie : []);
|
|
@@ -18470,11 +18488,11 @@ function i5(e) {
|
|
|
18470
18488
|
/* @__PURE__ */ d.jsx(
|
|
18471
18489
|
"tr",
|
|
18472
18490
|
{
|
|
18473
|
-
onClick: () =>
|
|
18491
|
+
onClick: () => X?.(U),
|
|
18474
18492
|
role: "button",
|
|
18475
18493
|
tabIndex: 0,
|
|
18476
18494
|
onKeyDown: (se) => {
|
|
18477
|
-
(se.key === "Enter" || se.key === " ") &&
|
|
18495
|
+
(se.key === "Enter" || se.key === " ") && X?.(U);
|
|
18478
18496
|
},
|
|
18479
18497
|
style: { cursor: "pointer" },
|
|
18480
18498
|
children: he.map((se, fe) => {
|
|
@@ -18555,7 +18573,7 @@ const bE = yt(/* @__PURE__ */ d.jsx("path", {
|
|
|
18555
18573
|
}), "ErrorOutline");
|
|
18556
18574
|
function xE({ message: e }) {
|
|
18557
18575
|
return e ? /* @__PURE__ */ d.jsxs(
|
|
18558
|
-
|
|
18576
|
+
Q,
|
|
18559
18577
|
{
|
|
18560
18578
|
role: "alert",
|
|
18561
18579
|
sx: {
|
|
@@ -18855,7 +18873,7 @@ const EE = yt(/* @__PURE__ */ d.jsx("path", {
|
|
|
18855
18873
|
o(h);
|
|
18856
18874
|
}, g = Math.max(1, n);
|
|
18857
18875
|
return /* @__PURE__ */ d.jsxs(
|
|
18858
|
-
|
|
18876
|
+
Q,
|
|
18859
18877
|
{
|
|
18860
18878
|
sx: {
|
|
18861
18879
|
display: "flex",
|
|
@@ -18869,7 +18887,7 @@ const EE = yt(/* @__PURE__ */ d.jsx("path", {
|
|
|
18869
18887
|
px: 3
|
|
18870
18888
|
},
|
|
18871
18889
|
children: [
|
|
18872
|
-
/* @__PURE__ */ d.jsxs(
|
|
18890
|
+
/* @__PURE__ */ d.jsxs(Q, { sx: { display: "flex", alignItems: "center", flexWrap: "wrap", justifyContent: "center" }, children: [
|
|
18873
18891
|
/* @__PURE__ */ d.jsx(
|
|
18874
18892
|
Mt,
|
|
18875
18893
|
{
|
|
@@ -18882,7 +18900,7 @@ const EE = yt(/* @__PURE__ */ d.jsx("path", {
|
|
|
18882
18900
|
}
|
|
18883
18901
|
),
|
|
18884
18902
|
f().map(
|
|
18885
|
-
(m, h) => m === "..." ? /* @__PURE__ */ d.jsx(
|
|
18903
|
+
(m, h) => m === "..." ? /* @__PURE__ */ d.jsx(Q, { sx: { px: 1, display: "flex", alignItems: "center", fontSize: "1.1rem" }, children: ". . ." }, `dots-${h}`) : /* @__PURE__ */ d.jsx(
|
|
18886
18904
|
Rt,
|
|
18887
18905
|
{
|
|
18888
18906
|
onClick: () => t(m),
|
|
@@ -18918,7 +18936,7 @@ const EE = yt(/* @__PURE__ */ d.jsx("path", {
|
|
|
18918
18936
|
}
|
|
18919
18937
|
)
|
|
18920
18938
|
] }),
|
|
18921
|
-
/* @__PURE__ */ d.jsxs(
|
|
18939
|
+
/* @__PURE__ */ d.jsxs(Q, { sx: { display: "flex", alignItems: "center", gap: 1.25, justifyContent: { xs: "center", sm: "flex-start" }, mt: { xs: 1, sm: 0 } }, children: [
|
|
18922
18940
|
/* @__PURE__ */ d.jsx(Ae, { variant: "body2", children: "Mostrar" }),
|
|
18923
18941
|
/* @__PURE__ */ d.jsx(nf, { size: "small", sx: { minWidth: 72 }, children: /* @__PURE__ */ d.jsx(
|
|
18924
18942
|
rf,
|
|
@@ -18987,7 +19005,7 @@ function s5(e) {
|
|
|
18987
19005
|
), $ = qp({
|
|
18988
19006
|
control: b.control,
|
|
18989
19007
|
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,
|
|
19008
|
+
}), 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
19009
|
handleSubmit: ee,
|
|
18992
19010
|
formState: { isSubmitting: he, isDirty: B, isValid: U }
|
|
18993
19011
|
} = b, ie = u ?? ((I, q) => JSON.stringify(I).toLowerCase().includes(q.toLowerCase())), se = Je(
|
|
@@ -19038,7 +19056,7 @@ function s5(e) {
|
|
|
19038
19056
|
if (!ve) return null;
|
|
19039
19057
|
const Re = { xs: 12, ...ve.grid, ...q || {} };
|
|
19040
19058
|
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 ?
|
|
19059
|
+
}, 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
19060
|
return /* @__PURE__ */ d.jsx(
|
|
19043
19061
|
Cc,
|
|
19044
19062
|
{
|
|
@@ -19049,7 +19067,7 @@ function s5(e) {
|
|
|
19049
19067
|
PaperProps: {
|
|
19050
19068
|
sx: {
|
|
19051
19069
|
height: { xs: "100dvh", md: L ? "90vw" : "auto" },
|
|
19052
|
-
maxWidth: { xs: "100vw", md: L ? "98vw" : "
|
|
19070
|
+
maxWidth: { xs: "100vw", md: L ? "98vw" : "50%" },
|
|
19053
19071
|
overflow: "hidden",
|
|
19054
19072
|
display: "flex",
|
|
19055
19073
|
flexDirection: "column",
|
|
@@ -19057,7 +19075,7 @@ function s5(e) {
|
|
|
19057
19075
|
}
|
|
19058
19076
|
},
|
|
19059
19077
|
children: /* @__PURE__ */ d.jsx(Uw, { ...b, children: /* @__PURE__ */ d.jsxs(
|
|
19060
|
-
|
|
19078
|
+
Q,
|
|
19061
19079
|
{
|
|
19062
19080
|
component: "form",
|
|
19063
19081
|
noValidate: !0,
|
|
@@ -19070,7 +19088,7 @@ function s5(e) {
|
|
|
19070
19088
|
position: "relative",
|
|
19071
19089
|
children: [
|
|
19072
19090
|
R && /* @__PURE__ */ d.jsxs(
|
|
19073
|
-
|
|
19091
|
+
Q,
|
|
19074
19092
|
{
|
|
19075
19093
|
sx: {
|
|
19076
19094
|
width: { xs: "100%", md: c ? "100%" : 394 },
|
|
@@ -19094,7 +19112,7 @@ function s5(e) {
|
|
|
19094
19112
|
},
|
|
19095
19113
|
children: [
|
|
19096
19114
|
/* @__PURE__ */ d.jsxs(
|
|
19097
|
-
|
|
19115
|
+
Q,
|
|
19098
19116
|
{
|
|
19099
19117
|
p: { xs: 2, md: 2 },
|
|
19100
19118
|
height: "100%",
|
|
@@ -19107,7 +19125,7 @@ function s5(e) {
|
|
|
19107
19125
|
children: [
|
|
19108
19126
|
/* @__PURE__ */ d.jsx(Ae, { fontWeight: 700, fontSize: 20, children: t.title }),
|
|
19109
19127
|
/* @__PURE__ */ d.jsxs(
|
|
19110
|
-
|
|
19128
|
+
Q,
|
|
19111
19129
|
{
|
|
19112
19130
|
sx: {
|
|
19113
19131
|
flex: 1,
|
|
@@ -19118,7 +19136,7 @@ function s5(e) {
|
|
|
19118
19136
|
children: [
|
|
19119
19137
|
/* @__PURE__ */ d.jsx(Ae, { fontSize: "18px", mt: 2.5, fontWeight: 500, children: t.subTitle }),
|
|
19120
19138
|
/* @__PURE__ */ d.jsx(
|
|
19121
|
-
|
|
19139
|
+
Q,
|
|
19122
19140
|
{
|
|
19123
19141
|
mt: 2,
|
|
19124
19142
|
display: "flex",
|
|
@@ -19132,6 +19150,7 @@ function s5(e) {
|
|
|
19132
19150
|
spacing: 2,
|
|
19133
19151
|
alignItems: "flex-start",
|
|
19134
19152
|
wrap: "wrap",
|
|
19153
|
+
width: "100%",
|
|
19135
19154
|
children: I.map((ve, Re) => {
|
|
19136
19155
|
const P = typeof ve == "string" ? { name: ve } : ve;
|
|
19137
19156
|
return P.hidden?.(b) ? null : ct(
|
|
@@ -19143,7 +19162,16 @@ function s5(e) {
|
|
|
19143
19162
|
`row-${q}`
|
|
19144
19163
|
)) : /* @__PURE__ */ d.jsx(ze, { container: !0, spacing: 2, width: "100%", children: r?.map((I, q) => {
|
|
19145
19164
|
const ve = I.grid ?? { xs: 12, md: 12 };
|
|
19146
|
-
return /* @__PURE__ */ d.jsx(
|
|
19165
|
+
return /* @__PURE__ */ d.jsx(
|
|
19166
|
+
ze,
|
|
19167
|
+
{
|
|
19168
|
+
item: !0,
|
|
19169
|
+
...ve,
|
|
19170
|
+
width: "100%",
|
|
19171
|
+
children: I.render ? I.render(b) : Qd(I, b)
|
|
19172
|
+
},
|
|
19173
|
+
`${String(I.name)}-${q}`
|
|
19174
|
+
);
|
|
19147
19175
|
}) })
|
|
19148
19176
|
}
|
|
19149
19177
|
)
|
|
@@ -19154,7 +19182,7 @@ function s5(e) {
|
|
|
19154
19182
|
}
|
|
19155
19183
|
),
|
|
19156
19184
|
/* @__PURE__ */ d.jsx(
|
|
19157
|
-
|
|
19185
|
+
Q,
|
|
19158
19186
|
{
|
|
19159
19187
|
sx: {
|
|
19160
19188
|
position: "absolute",
|
|
@@ -19167,12 +19195,14 @@ function s5(e) {
|
|
|
19167
19195
|
p: 1,
|
|
19168
19196
|
backgroundColor: "#fff"
|
|
19169
19197
|
},
|
|
19170
|
-
children: /* @__PURE__ */ d.jsx(
|
|
19171
|
-
|
|
19198
|
+
children: /* @__PURE__ */ d.jsx(Q, { display: "flex", alignItems: "center", children: /* @__PURE__ */ d.jsx(
|
|
19199
|
+
Q,
|
|
19172
19200
|
{
|
|
19173
19201
|
display: "flex",
|
|
19174
|
-
|
|
19175
|
-
|
|
19202
|
+
gap: 1.5,
|
|
19203
|
+
width: "100%",
|
|
19204
|
+
justifyContent: c ? "flex-end" : "center",
|
|
19205
|
+
children: /* @__PURE__ */ d.jsx(
|
|
19176
19206
|
Rt,
|
|
19177
19207
|
{
|
|
19178
19208
|
type: "submit",
|
|
@@ -19191,16 +19221,16 @@ function s5(e) {
|
|
|
19191
19221
|
},
|
|
19192
19222
|
children: s
|
|
19193
19223
|
}
|
|
19194
|
-
)
|
|
19224
|
+
)
|
|
19195
19225
|
}
|
|
19196
|
-
)
|
|
19226
|
+
) })
|
|
19197
19227
|
}
|
|
19198
19228
|
)
|
|
19199
19229
|
]
|
|
19200
19230
|
}
|
|
19201
19231
|
),
|
|
19202
19232
|
L && /* @__PURE__ */ d.jsx(
|
|
19203
|
-
|
|
19233
|
+
Q,
|
|
19204
19234
|
{
|
|
19205
19235
|
flex: 1,
|
|
19206
19236
|
display: "flex",
|
|
@@ -19208,7 +19238,7 @@ function s5(e) {
|
|
|
19208
19238
|
minWidth: 0,
|
|
19209
19239
|
sx: { height: "100%" },
|
|
19210
19240
|
children: /* @__PURE__ */ d.jsx(
|
|
19211
|
-
|
|
19241
|
+
Q,
|
|
19212
19242
|
{
|
|
19213
19243
|
mt: 1,
|
|
19214
19244
|
sx: {
|
|
@@ -19218,7 +19248,7 @@ function s5(e) {
|
|
|
19218
19248
|
height: "100%"
|
|
19219
19249
|
},
|
|
19220
19250
|
children: /* @__PURE__ */ d.jsxs(
|
|
19221
|
-
|
|
19251
|
+
Q,
|
|
19222
19252
|
{
|
|
19223
19253
|
sx: {
|
|
19224
19254
|
display: "flex",
|
|
@@ -19228,7 +19258,7 @@ function s5(e) {
|
|
|
19228
19258
|
},
|
|
19229
19259
|
children: [
|
|
19230
19260
|
/* @__PURE__ */ d.jsxs(
|
|
19231
|
-
|
|
19261
|
+
Q,
|
|
19232
19262
|
{
|
|
19233
19263
|
p: 3,
|
|
19234
19264
|
sx: {
|
|
@@ -19267,14 +19297,14 @@ function s5(e) {
|
|
|
19267
19297
|
}
|
|
19268
19298
|
),
|
|
19269
19299
|
/* @__PURE__ */ d.jsx(
|
|
19270
|
-
|
|
19300
|
+
Q,
|
|
19271
19301
|
{
|
|
19272
19302
|
display: "flex",
|
|
19273
19303
|
gap: 2,
|
|
19274
19304
|
alignItems: "center",
|
|
19275
19305
|
sx: { marginTop: { sm: 0, xs: 2 } },
|
|
19276
19306
|
children: /* @__PURE__ */ d.jsx(
|
|
19277
|
-
|
|
19307
|
+
Q,
|
|
19278
19308
|
{
|
|
19279
19309
|
onClick: a,
|
|
19280
19310
|
sx: {
|
|
@@ -19295,12 +19325,12 @@ function s5(e) {
|
|
|
19295
19325
|
}
|
|
19296
19326
|
),
|
|
19297
19327
|
x == "onlyCars" && /* @__PURE__ */ d.jsx(
|
|
19298
|
-
|
|
19328
|
+
Q,
|
|
19299
19329
|
{
|
|
19300
19330
|
display: "flex",
|
|
19301
19331
|
alignItems: "center",
|
|
19302
19332
|
justifyContent: "center",
|
|
19303
|
-
children: /* @__PURE__ */ d.jsx(
|
|
19333
|
+
children: /* @__PURE__ */ d.jsx(Q, { display: "flex", gap: 1.5, width: "100%", children: /* @__PURE__ */ d.jsx(
|
|
19304
19334
|
Rt,
|
|
19305
19335
|
{
|
|
19306
19336
|
type: "submit",
|
|
@@ -19326,7 +19356,7 @@ function s5(e) {
|
|
|
19326
19356
|
}
|
|
19327
19357
|
),
|
|
19328
19358
|
/* @__PURE__ */ d.jsx(
|
|
19329
|
-
|
|
19359
|
+
Q,
|
|
19330
19360
|
{
|
|
19331
19361
|
sx: {
|
|
19332
19362
|
flex: 1,
|
|
@@ -19345,7 +19375,7 @@ function s5(e) {
|
|
|
19345
19375
|
}
|
|
19346
19376
|
},
|
|
19347
19377
|
children: /* @__PURE__ */ d.jsx(
|
|
19348
|
-
|
|
19378
|
+
Q,
|
|
19349
19379
|
{
|
|
19350
19380
|
sx: {
|
|
19351
19381
|
minWidth: 1150,
|
|
@@ -19361,7 +19391,7 @@ function s5(e) {
|
|
|
19361
19391
|
pe?.map((I, q) => {
|
|
19362
19392
|
const ve = f ? f(I) : q, Re = Ee(ve);
|
|
19363
19393
|
return /* @__PURE__ */ d.jsx(
|
|
19364
|
-
|
|
19394
|
+
Q,
|
|
19365
19395
|
{
|
|
19366
19396
|
sx: {
|
|
19367
19397
|
borderBottom: "1px solid #D3D4D5",
|
|
@@ -19398,7 +19428,7 @@ function s5(e) {
|
|
|
19398
19428
|
`${String(ve)}`
|
|
19399
19429
|
);
|
|
19400
19430
|
}),
|
|
19401
|
-
!pe?.length && /* @__PURE__ */ d.jsx(
|
|
19431
|
+
!pe?.length && /* @__PURE__ */ d.jsx(Q, { p: 3, children: /* @__PURE__ */ d.jsxs(Ae, { fontSize: 14, color: "#5C6372", children: [
|
|
19402
19432
|
"Sin resultados para “",
|
|
19403
19433
|
k,
|
|
19404
19434
|
"”."
|
|
@@ -19411,7 +19441,7 @@ function s5(e) {
|
|
|
19411
19441
|
}
|
|
19412
19442
|
),
|
|
19413
19443
|
/* @__PURE__ */ d.jsx(
|
|
19414
|
-
|
|
19444
|
+
Q,
|
|
19415
19445
|
{
|
|
19416
19446
|
sx: {
|
|
19417
19447
|
position: "sticky",
|
|
@@ -19492,7 +19522,7 @@ function c5({
|
|
|
19492
19522
|
M([...t.selectedIds]), K(""), W(!0);
|
|
19493
19523
|
}, H = () => {
|
|
19494
19524
|
W(!1), M([]);
|
|
19495
|
-
},
|
|
19525
|
+
}, X = () => {
|
|
19496
19526
|
const P = new Set(
|
|
19497
19527
|
wt.map(
|
|
19498
19528
|
(me, Ye) => String(vr(me, Ye, p.id))
|
|
@@ -19667,7 +19697,7 @@ function c5({
|
|
|
19667
19697
|
},
|
|
19668
19698
|
children: [
|
|
19669
19699
|
/* @__PURE__ */ d.jsxs(
|
|
19670
|
-
|
|
19700
|
+
Q,
|
|
19671
19701
|
{
|
|
19672
19702
|
sx: {
|
|
19673
19703
|
display: "flex",
|
|
@@ -19678,7 +19708,7 @@ function c5({
|
|
|
19678
19708
|
},
|
|
19679
19709
|
children: [
|
|
19680
19710
|
/* @__PURE__ */ d.jsxs(
|
|
19681
|
-
|
|
19711
|
+
Q,
|
|
19682
19712
|
{
|
|
19683
19713
|
sx: {
|
|
19684
19714
|
p: 2,
|
|
@@ -19691,7 +19721,7 @@ function c5({
|
|
|
19691
19721
|
},
|
|
19692
19722
|
children: [
|
|
19693
19723
|
/* @__PURE__ */ d.jsxs(
|
|
19694
|
-
|
|
19724
|
+
Q,
|
|
19695
19725
|
{
|
|
19696
19726
|
sx: {
|
|
19697
19727
|
display: "flex",
|
|
@@ -19700,7 +19730,7 @@ function c5({
|
|
|
19700
19730
|
mb: 1
|
|
19701
19731
|
},
|
|
19702
19732
|
children: [
|
|
19703
|
-
/* @__PURE__ */ d.jsxs(
|
|
19733
|
+
/* @__PURE__ */ d.jsxs(Q, { sx: { display: "flex", alignItems: "center", gap: 2 }, children: [
|
|
19704
19734
|
u ? /* @__PURE__ */ d.jsx(
|
|
19705
19735
|
"img",
|
|
19706
19736
|
{
|
|
@@ -19791,7 +19821,7 @@ function c5({
|
|
|
19791
19821
|
]
|
|
19792
19822
|
}
|
|
19793
19823
|
) }),
|
|
19794
|
-
/* @__PURE__ */ d.jsxs(
|
|
19824
|
+
/* @__PURE__ */ d.jsxs(Q, { sx: { display: "flex", alignItems: "center", gap: 2, mb: 1.5 }, children: [
|
|
19795
19825
|
/* @__PURE__ */ d.jsx(
|
|
19796
19826
|
An,
|
|
19797
19827
|
{
|
|
@@ -19825,9 +19855,9 @@ function c5({
|
|
|
19825
19855
|
}
|
|
19826
19856
|
),
|
|
19827
19857
|
/* @__PURE__ */ d.jsx(nn, {}),
|
|
19828
|
-
/* @__PURE__ */ d.jsxs(
|
|
19858
|
+
/* @__PURE__ */ d.jsxs(Q, { p: 2, children: [
|
|
19829
19859
|
/* @__PURE__ */ d.jsxs(
|
|
19830
|
-
|
|
19860
|
+
Q,
|
|
19831
19861
|
{
|
|
19832
19862
|
sx: { display: "flex", alignItems: "center", gap: 1 },
|
|
19833
19863
|
onClick: $,
|
|
@@ -19845,19 +19875,19 @@ function c5({
|
|
|
19845
19875
|
]
|
|
19846
19876
|
}
|
|
19847
19877
|
),
|
|
19848
|
-
S.length > 0 ? /* @__PURE__ */ d.jsx(
|
|
19878
|
+
S.length > 0 ? /* @__PURE__ */ d.jsx(Q, { sx: { mt: 1.5, display: "flex", gap: 1, flexWrap: "wrap" }, children: S.map((P, G) => {
|
|
19849
19879
|
const me = vr(P, G, p.id), Ye = vr(P, G, p.title) ?? "", Tt = vr(P, G, p.image), At = IE(f, Tt);
|
|
19850
19880
|
return /* @__PURE__ */ d.jsx(
|
|
19851
19881
|
Io,
|
|
19852
19882
|
{
|
|
19853
19883
|
onDelete: () => R(me),
|
|
19854
19884
|
label: /* @__PURE__ */ d.jsxs(
|
|
19855
|
-
|
|
19885
|
+
Q,
|
|
19856
19886
|
{
|
|
19857
19887
|
sx: { display: "flex", alignItems: "center", gap: 1 },
|
|
19858
19888
|
children: [
|
|
19859
19889
|
/* @__PURE__ */ d.jsx(
|
|
19860
|
-
|
|
19890
|
+
Q,
|
|
19861
19891
|
{
|
|
19862
19892
|
sx: {
|
|
19863
19893
|
width: 28,
|
|
@@ -19910,7 +19940,7 @@ function c5({
|
|
|
19910
19940
|
}) }) : /* @__PURE__ */ d.jsx(Ae, { fontSize: 13, color: "#5C6372", sx: { mt: 0.5 }, children: "Aún no has seleccionado autos." })
|
|
19911
19941
|
] }),
|
|
19912
19942
|
/* @__PURE__ */ d.jsx(nn, {}),
|
|
19913
|
-
/* @__PURE__ */ d.jsxs(
|
|
19943
|
+
/* @__PURE__ */ d.jsxs(Q, { sx: { p: 2 }, children: [
|
|
19914
19944
|
/* @__PURE__ */ d.jsx(
|
|
19915
19945
|
Bt,
|
|
19916
19946
|
{
|
|
@@ -19984,7 +20014,7 @@ function c5({
|
|
|
19984
20014
|
)
|
|
19985
20015
|
] }),
|
|
19986
20016
|
/* @__PURE__ */ d.jsxs(
|
|
19987
|
-
|
|
20017
|
+
Q,
|
|
19988
20018
|
{
|
|
19989
20019
|
sx: {
|
|
19990
20020
|
position: { xs: "sticky", sm: "sticky" },
|
|
@@ -20018,7 +20048,7 @@ function c5({
|
|
|
20018
20048
|
children: "Adjuntar archivo"
|
|
20019
20049
|
}
|
|
20020
20050
|
),
|
|
20021
|
-
/* @__PURE__ */ d.jsx(
|
|
20051
|
+
/* @__PURE__ */ d.jsx(Q, { sx: { flex: 1 } }),
|
|
20022
20052
|
/* @__PURE__ */ d.jsx(
|
|
20023
20053
|
Rt,
|
|
20024
20054
|
{
|
|
@@ -20065,7 +20095,7 @@ function c5({
|
|
|
20065
20095
|
}
|
|
20066
20096
|
),
|
|
20067
20097
|
/* @__PURE__ */ d.jsxs(jh, { children: [
|
|
20068
|
-
/* @__PURE__ */ d.jsxs(
|
|
20098
|
+
/* @__PURE__ */ d.jsxs(Q, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
20069
20099
|
/* @__PURE__ */ d.jsx(
|
|
20070
20100
|
Bt,
|
|
20071
20101
|
{
|
|
@@ -20093,7 +20123,7 @@ function c5({
|
|
|
20093
20123
|
disableGutters: !0,
|
|
20094
20124
|
sx: { p: 0, opacity: Tt ? 1 : 0.5 },
|
|
20095
20125
|
children: /* @__PURE__ */ d.jsx(
|
|
20096
|
-
|
|
20126
|
+
Q,
|
|
20097
20127
|
{
|
|
20098
20128
|
onClick: () => Tt && fe(me),
|
|
20099
20129
|
sx: {
|
|
@@ -20110,7 +20140,7 @@ function c5({
|
|
|
20110
20140
|
String(me)
|
|
20111
20141
|
);
|
|
20112
20142
|
}),
|
|
20113
|
-
ct.length === 0 && /* @__PURE__ */ d.jsx(
|
|
20143
|
+
ct.length === 0 && /* @__PURE__ */ d.jsx(Q, { p: 2, children: /* @__PURE__ */ d.jsx(Ae, { children: "Tu búsqueda no generó resultados" }) })
|
|
20114
20144
|
] })
|
|
20115
20145
|
] }),
|
|
20116
20146
|
/* @__PURE__ */ d.jsxs(Nh, { sx: { px: 3, pb: 2 }, children: [
|
|
@@ -20127,7 +20157,7 @@ function c5({
|
|
|
20127
20157
|
Rt,
|
|
20128
20158
|
{
|
|
20129
20159
|
variant: "contained",
|
|
20130
|
-
onClick:
|
|
20160
|
+
onClick: X,
|
|
20131
20161
|
sx: { backgroundColor: "#336BE1" },
|
|
20132
20162
|
children: "Guardar selección"
|
|
20133
20163
|
}
|