componentes-exagono 0.1.72 → 0.1.74
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 +434 -422
- package/dist/index.umd.js +16 -16
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as re from "react";
|
|
2
2
|
import E, { forwardRef as ea, useContext as Ci, useState as Se, useLayoutEffect as bc, cloneElement as Jd, createRef as ln, Component as Pt, useRef as Zr, useCallback as Xa, useEffect as Ct, createElement as Ja, createContext as xc, useMemo as Je } from "react";
|
|
3
|
-
import { IconButton as Mt, CircularProgress as ef, List as Bo, ListItem as Vo, ListItemText as ki, Checkbox as Wo, Modal as wc, Box as Q, Typography as
|
|
3
|
+
import { IconButton as Mt, CircularProgress as ef, List as Bo, ListItem as Vo, ListItemText as ki, Checkbox as Wo, Modal as wc, Box as Q, Typography as Re, 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";
|
|
@@ -49,25 +49,25 @@ function rm() {
|
|
|
49
49
|
function y(C) {
|
|
50
50
|
if (C === null || typeof C != "object")
|
|
51
51
|
return null;
|
|
52
|
-
var
|
|
53
|
-
return typeof
|
|
52
|
+
var K = m && C[m] || C[h];
|
|
53
|
+
return typeof K == "function" ? K : null;
|
|
54
54
|
}
|
|
55
55
|
var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
56
56
|
function b(C) {
|
|
57
57
|
{
|
|
58
|
-
for (var
|
|
58
|
+
for (var K = arguments.length, le = new Array(K > 1 ? K - 1 : 0), De = 1; De < K; De++)
|
|
59
59
|
le[De - 1] = arguments[De];
|
|
60
60
|
k("error", C, le);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function k(C,
|
|
63
|
+
function k(C, K, le) {
|
|
64
64
|
{
|
|
65
65
|
var De = x.ReactDebugCurrentFrame, Ve = De.getStackAddendum();
|
|
66
|
-
Ve !== "" && (
|
|
66
|
+
Ve !== "" && (K += "%s", le = le.concat([Ve]));
|
|
67
67
|
var Xe = le.map(function($e) {
|
|
68
68
|
return String($e);
|
|
69
69
|
});
|
|
70
|
-
Xe.unshift("Warning: " +
|
|
70
|
+
Xe.unshift("Warning: " + K), Function.prototype.apply.call(console[C], console, Xe);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
var w = !1, _ = !1, D = !1, O = !1, z = !1, W;
|
|
@@ -79,11 +79,11 @@ function rm() {
|
|
|
79
79
|
// with.
|
|
80
80
|
C.$$typeof === W || C.getModuleId !== void 0));
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function q(C, K, le) {
|
|
83
83
|
var De = C.displayName;
|
|
84
84
|
if (De)
|
|
85
85
|
return De;
|
|
86
|
-
var Ve =
|
|
86
|
+
var Ve = K.displayName || K.name || "";
|
|
87
87
|
return Ve !== "" ? le + "(" + Ve + ")" : le;
|
|
88
88
|
}
|
|
89
89
|
function v(C) {
|
|
@@ -113,13 +113,13 @@ function rm() {
|
|
|
113
113
|
if (typeof C == "object")
|
|
114
114
|
switch (C.$$typeof) {
|
|
115
115
|
case s:
|
|
116
|
-
var
|
|
117
|
-
return v(
|
|
116
|
+
var K = C;
|
|
117
|
+
return v(K) + ".Consumer";
|
|
118
118
|
case i:
|
|
119
119
|
var le = C;
|
|
120
120
|
return v(le._context) + ".Provider";
|
|
121
121
|
case c:
|
|
122
|
-
return
|
|
122
|
+
return q(C, C.render, "ForwardRef");
|
|
123
123
|
case f:
|
|
124
124
|
var De = C.displayName || null;
|
|
125
125
|
return De !== null ? De : M(C.type) || "Memo";
|
|
@@ -197,7 +197,7 @@ function rm() {
|
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
var de = x.ReactCurrentDispatcher, ue;
|
|
200
|
-
function xe(C,
|
|
200
|
+
function xe(C, K, le) {
|
|
201
201
|
{
|
|
202
202
|
if (ue === void 0)
|
|
203
203
|
try {
|
|
@@ -215,7 +215,7 @@ function rm() {
|
|
|
215
215
|
var oe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
216
216
|
ye = new oe();
|
|
217
217
|
}
|
|
218
|
-
function T(C,
|
|
218
|
+
function T(C, K) {
|
|
219
219
|
if (!C || ke)
|
|
220
220
|
return "";
|
|
221
221
|
{
|
|
@@ -230,7 +230,7 @@ function rm() {
|
|
|
230
230
|
var Xe;
|
|
231
231
|
Xe = de.current, de.current = null, fe();
|
|
232
232
|
try {
|
|
233
|
-
if (
|
|
233
|
+
if (K) {
|
|
234
234
|
var $e = function() {
|
|
235
235
|
throw Error();
|
|
236
236
|
};
|
|
@@ -286,14 +286,14 @@ function rm() {
|
|
|
286
286
|
var Bn = C ? C.displayName || C.name : "", xn = Bn ? xe(Bn) : "";
|
|
287
287
|
return typeof C == "function" && ye.set(C, xn), xn;
|
|
288
288
|
}
|
|
289
|
-
function ne(C,
|
|
289
|
+
function ne(C, K, le) {
|
|
290
290
|
return T(C, !1);
|
|
291
291
|
}
|
|
292
292
|
function Ce(C) {
|
|
293
|
-
var
|
|
294
|
-
return !!(
|
|
293
|
+
var K = C.prototype;
|
|
294
|
+
return !!(K && K.isReactComponent);
|
|
295
295
|
}
|
|
296
|
-
function _e(C,
|
|
296
|
+
function _e(C, K, le) {
|
|
297
297
|
if (C == null)
|
|
298
298
|
return "";
|
|
299
299
|
if (typeof C == "function")
|
|
@@ -311,11 +311,11 @@ function rm() {
|
|
|
311
311
|
case c:
|
|
312
312
|
return ne(C.render);
|
|
313
313
|
case f:
|
|
314
|
-
return _e(C.type,
|
|
314
|
+
return _e(C.type, K, le);
|
|
315
315
|
case p: {
|
|
316
316
|
var De = C, Ve = De._payload, Xe = De._init;
|
|
317
317
|
try {
|
|
318
|
-
return _e(Xe(Ve),
|
|
318
|
+
return _e(Xe(Ve), K, le);
|
|
319
319
|
} catch {
|
|
320
320
|
}
|
|
321
321
|
}
|
|
@@ -325,12 +325,12 @@ function rm() {
|
|
|
325
325
|
var Ee = Object.prototype.hasOwnProperty, xt = {}, wt = x.ReactDebugCurrentFrame;
|
|
326
326
|
function ct(C) {
|
|
327
327
|
if (C) {
|
|
328
|
-
var
|
|
328
|
+
var K = C._owner, le = _e(C.type, C._source, K ? K.type : null);
|
|
329
329
|
wt.setExtraStackFrame(le);
|
|
330
330
|
} else
|
|
331
331
|
wt.setExtraStackFrame(null);
|
|
332
332
|
}
|
|
333
|
-
function S(C,
|
|
333
|
+
function S(C, K, le, De, Ve) {
|
|
334
334
|
{
|
|
335
335
|
var Xe = Function.call.bind(Ee);
|
|
336
336
|
for (var $e in C)
|
|
@@ -341,7 +341,7 @@ function rm() {
|
|
|
341
341
|
var zt = Error((De || "React class") + ": " + le + " type `" + $e + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof C[$e] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
342
342
|
throw zt.name = "Invariant Violation", zt;
|
|
343
343
|
}
|
|
344
|
-
Pe = C[$e](
|
|
344
|
+
Pe = C[$e](K, $e, De, le, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
345
345
|
} catch (pt) {
|
|
346
346
|
Pe = pt;
|
|
347
347
|
}
|
|
@@ -355,7 +355,7 @@ function rm() {
|
|
|
355
355
|
}
|
|
356
356
|
function te(C) {
|
|
357
357
|
{
|
|
358
|
-
var
|
|
358
|
+
var K = typeof Symbol == "function" && Symbol.toStringTag, le = K && C[Symbol.toStringTag] || C.constructor.name || "Object";
|
|
359
359
|
return le;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
@@ -369,39 +369,39 @@ function rm() {
|
|
|
369
369
|
function I(C) {
|
|
370
370
|
return "" + C;
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function Z(C) {
|
|
373
373
|
if (J(C))
|
|
374
374
|
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", te(C)), I(C);
|
|
375
375
|
}
|
|
376
|
-
var
|
|
376
|
+
var me = x.ReactCurrentOwner, Te = {
|
|
377
377
|
key: !0,
|
|
378
378
|
ref: !0,
|
|
379
379
|
__self: !0,
|
|
380
380
|
__source: !0
|
|
381
381
|
}, P, G;
|
|
382
|
-
function
|
|
382
|
+
function ge(C) {
|
|
383
383
|
if (Ee.call(C, "ref")) {
|
|
384
|
-
var
|
|
385
|
-
if (
|
|
384
|
+
var K = Object.getOwnPropertyDescriptor(C, "ref").get;
|
|
385
|
+
if (K && K.isReactWarning)
|
|
386
386
|
return !1;
|
|
387
387
|
}
|
|
388
388
|
return C.ref !== void 0;
|
|
389
389
|
}
|
|
390
390
|
function Ye(C) {
|
|
391
391
|
if (Ee.call(C, "key")) {
|
|
392
|
-
var
|
|
393
|
-
if (
|
|
392
|
+
var K = Object.getOwnPropertyDescriptor(C, "key").get;
|
|
393
|
+
if (K && K.isReactWarning)
|
|
394
394
|
return !1;
|
|
395
395
|
}
|
|
396
396
|
return C.key !== void 0;
|
|
397
397
|
}
|
|
398
|
-
function Tt(C,
|
|
399
|
-
typeof C.ref == "string" &&
|
|
398
|
+
function Tt(C, K) {
|
|
399
|
+
typeof C.ref == "string" && me.current;
|
|
400
400
|
}
|
|
401
|
-
function At(C,
|
|
401
|
+
function At(C, K) {
|
|
402
402
|
{
|
|
403
403
|
var le = function() {
|
|
404
|
-
P || (P = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
404
|
+
P || (P = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", K));
|
|
405
405
|
};
|
|
406
406
|
le.isReactWarning = !0, Object.defineProperty(C, "key", {
|
|
407
407
|
get: le,
|
|
@@ -409,10 +409,10 @@ function rm() {
|
|
|
409
409
|
});
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
|
-
function Lr(C,
|
|
412
|
+
function Lr(C, K) {
|
|
413
413
|
{
|
|
414
414
|
var le = function() {
|
|
415
|
-
G || (G = !0, b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
415
|
+
G || (G = !0, b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", K));
|
|
416
416
|
};
|
|
417
417
|
le.isReactWarning = !0, Object.defineProperty(C, "ref", {
|
|
418
418
|
get: le,
|
|
@@ -420,13 +420,13 @@ function rm() {
|
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
var or = function(C,
|
|
423
|
+
var or = function(C, K, le, De, Ve, Xe, $e) {
|
|
424
424
|
var Pe = {
|
|
425
425
|
// This tag allows us to uniquely identify this as a React Element
|
|
426
426
|
$$typeof: n,
|
|
427
427
|
// Built-in properties that belong on the element
|
|
428
428
|
type: C,
|
|
429
|
-
key:
|
|
429
|
+
key: K,
|
|
430
430
|
ref: le,
|
|
431
431
|
props: $e,
|
|
432
432
|
// Record the component responsible for creating this element.
|
|
@@ -449,12 +449,12 @@ function rm() {
|
|
|
449
449
|
value: Ve
|
|
450
450
|
}), Object.freeze && (Object.freeze(Pe.props), Object.freeze(Pe)), Pe;
|
|
451
451
|
};
|
|
452
|
-
function vn(C,
|
|
452
|
+
function vn(C, K, le, De, Ve) {
|
|
453
453
|
{
|
|
454
454
|
var Xe, $e = {}, Pe = null, zt = null;
|
|
455
|
-
le !== void 0 && (
|
|
456
|
-
for (Xe in
|
|
457
|
-
Ee.call(
|
|
455
|
+
le !== void 0 && (Z(le), Pe = "" + le), Ye(K) && (Z(K.key), Pe = "" + K.key), ge(K) && (zt = K.ref, Tt(K, Ve));
|
|
456
|
+
for (Xe in K)
|
|
457
|
+
Ee.call(K, Xe) && !Te.hasOwnProperty(Xe) && ($e[Xe] = K[Xe]);
|
|
458
458
|
if (C && C.defaultProps) {
|
|
459
459
|
var pt = C.defaultProps;
|
|
460
460
|
for (Xe in pt)
|
|
@@ -464,13 +464,13 @@ function rm() {
|
|
|
464
464
|
var _t = typeof C == "function" ? C.displayName || C.name || "Unknown" : C;
|
|
465
465
|
Pe && At($e, _t), zt && Lr($e, _t);
|
|
466
466
|
}
|
|
467
|
-
return or(C, Pe, zt, Ve, De,
|
|
467
|
+
return or(C, Pe, zt, Ve, De, me.current, $e);
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
var Jr = x.ReactCurrentOwner, yn = x.ReactDebugCurrentFrame;
|
|
471
471
|
function zr(C) {
|
|
472
472
|
if (C) {
|
|
473
|
-
var
|
|
473
|
+
var K = C._owner, le = _e(C.type, C._source, K ? K.type : null);
|
|
474
474
|
yn.setExtraStackFrame(le);
|
|
475
475
|
} else
|
|
476
476
|
yn.setExtraStackFrame(null);
|
|
@@ -498,22 +498,22 @@ Check the render method of \`` + C + "`.";
|
|
|
498
498
|
var ga = {};
|
|
499
499
|
function ls(C) {
|
|
500
500
|
{
|
|
501
|
-
var
|
|
502
|
-
if (!
|
|
501
|
+
var K = _o();
|
|
502
|
+
if (!K) {
|
|
503
503
|
var le = typeof C == "string" ? C : C.displayName || C.name;
|
|
504
|
-
le && (
|
|
504
|
+
le && (K = `
|
|
505
505
|
|
|
506
506
|
Check the top-level render call using <` + le + ">.");
|
|
507
507
|
}
|
|
508
|
-
return
|
|
508
|
+
return K;
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
|
-
function va(C,
|
|
511
|
+
function va(C, K) {
|
|
512
512
|
{
|
|
513
513
|
if (!C._store || C._store.validated || C.key != null)
|
|
514
514
|
return;
|
|
515
515
|
C._store.validated = !0;
|
|
516
|
-
var le = ls(
|
|
516
|
+
var le = ls(K);
|
|
517
517
|
if (ga[le])
|
|
518
518
|
return;
|
|
519
519
|
ga[le] = !0;
|
|
@@ -521,14 +521,14 @@ Check the top-level render call using <` + le + ">.");
|
|
|
521
521
|
C && C._owner && C._owner !== Jr.current && (De = " It was passed a child from " + M(C._owner.type) + "."), zr(C), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', le, De), zr(null);
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
|
-
function N(C,
|
|
524
|
+
function N(C, K) {
|
|
525
525
|
{
|
|
526
526
|
if (typeof C != "object")
|
|
527
527
|
return;
|
|
528
528
|
if (L(C))
|
|
529
529
|
for (var le = 0; le < C.length; le++) {
|
|
530
530
|
var De = C[le];
|
|
531
|
-
wo(De) && va(De,
|
|
531
|
+
wo(De) && va(De, K);
|
|
532
532
|
}
|
|
533
533
|
else if (wo(C))
|
|
534
534
|
C._store && (C._store.validated = !0);
|
|
@@ -536,39 +536,39 @@ Check the top-level render call using <` + le + ">.");
|
|
|
536
536
|
var Ve = y(C);
|
|
537
537
|
if (typeof Ve == "function" && Ve !== C.entries)
|
|
538
538
|
for (var Xe = Ve.call(C), $e; !($e = Xe.next()).done; )
|
|
539
|
-
wo($e.value) && va($e.value,
|
|
539
|
+
wo($e.value) && va($e.value, K);
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function ve(C) {
|
|
544
544
|
{
|
|
545
|
-
var
|
|
546
|
-
if (
|
|
545
|
+
var K = C.type;
|
|
546
|
+
if (K == null || typeof K == "string")
|
|
547
547
|
return;
|
|
548
548
|
var le;
|
|
549
|
-
if (typeof
|
|
550
|
-
le =
|
|
551
|
-
else if (typeof
|
|
549
|
+
if (typeof K == "function")
|
|
550
|
+
le = K.propTypes;
|
|
551
|
+
else if (typeof K == "object" && (K.$$typeof === c || // Note: Memo only checks outer props here.
|
|
552
552
|
// Inner props are checked in the reconciler.
|
|
553
|
-
|
|
554
|
-
le =
|
|
553
|
+
K.$$typeof === f))
|
|
554
|
+
le = K.propTypes;
|
|
555
555
|
else
|
|
556
556
|
return;
|
|
557
557
|
if (le) {
|
|
558
|
-
var De = M(
|
|
558
|
+
var De = M(K);
|
|
559
559
|
S(le, C.props, "prop", De, C);
|
|
560
|
-
} else if (
|
|
560
|
+
} else if (K.PropTypes !== void 0 && !xo) {
|
|
561
561
|
xo = !0;
|
|
562
|
-
var Ve = M(
|
|
562
|
+
var Ve = M(K);
|
|
563
563
|
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Ve || "Unknown");
|
|
564
564
|
}
|
|
565
|
-
typeof
|
|
565
|
+
typeof K.getDefaultProps == "function" && !K.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
function Oe(C) {
|
|
569
569
|
{
|
|
570
|
-
for (var
|
|
571
|
-
var De =
|
|
570
|
+
for (var K = Object.keys(C.props), le = 0; le < K.length; le++) {
|
|
571
|
+
var De = K[le];
|
|
572
572
|
if (De !== "children" && De !== "key") {
|
|
573
573
|
zr(C), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", De), zr(null);
|
|
574
574
|
break;
|
|
@@ -578,7 +578,7 @@ Check the top-level render call using <` + le + ">.");
|
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
var tt = {};
|
|
581
|
-
function rt(C,
|
|
581
|
+
function rt(C, K, le, De, Ve, Xe) {
|
|
582
582
|
{
|
|
583
583
|
var $e = F(C);
|
|
584
584
|
if (!$e) {
|
|
@@ -589,11 +589,11 @@ Check the top-level render call using <` + le + ">.");
|
|
|
589
589
|
var pt;
|
|
590
590
|
C === null ? pt = "null" : L(C) ? pt = "array" : C !== void 0 && C.$$typeof === n ? (pt = "<" + (M(C.type) || "Unknown") + " />", Pe = " Did you accidentally export a JSX literal instead of a component?") : pt = typeof C, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", pt, Pe);
|
|
591
591
|
}
|
|
592
|
-
var _t = vn(C,
|
|
592
|
+
var _t = vn(C, K, le, Ve, Xe);
|
|
593
593
|
if (_t == null)
|
|
594
594
|
return _t;
|
|
595
595
|
if ($e) {
|
|
596
|
-
var ar =
|
|
596
|
+
var ar = K.children;
|
|
597
597
|
if (ar !== void 0)
|
|
598
598
|
if (De)
|
|
599
599
|
if (L(ar)) {
|
|
@@ -605,8 +605,8 @@ Check the top-level render call using <` + le + ">.");
|
|
|
605
605
|
else
|
|
606
606
|
N(ar, C);
|
|
607
607
|
}
|
|
608
|
-
if (Ee.call(
|
|
609
|
-
var xn = M(C), Ut = Object.keys(
|
|
608
|
+
if (Ee.call(K, "key")) {
|
|
609
|
+
var xn = M(C), Ut = Object.keys(K).filter(function(Ah) {
|
|
610
610
|
return Ah !== "key";
|
|
611
611
|
}), us = Ut.length > 0 ? "{key: someKey, " + Ut.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
612
612
|
if (!tt[xn + us]) {
|
|
@@ -619,14 +619,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
619
619
|
<%s key={someKey} {...props} />`, us, xn, Th, xn), tt[xn + us] = !0;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
return C === r ? Oe(_t) :
|
|
622
|
+
return C === r ? Oe(_t) : ve(_t), _t;
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
|
-
function Ot(C,
|
|
626
|
-
return rt(C,
|
|
625
|
+
function Ot(C, K, le) {
|
|
626
|
+
return rt(C, K, le, !0);
|
|
627
627
|
}
|
|
628
|
-
function bn(C,
|
|
629
|
-
return rt(C,
|
|
628
|
+
function bn(C, K, le) {
|
|
629
|
+
return rt(C, K, le, !1);
|
|
630
630
|
}
|
|
631
631
|
var Dr = bn, zn = Ot;
|
|
632
632
|
Co.Fragment = r, Co.jsx = Dr, Co.jsxs = zn;
|
|
@@ -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,
|
|
799
|
+
var _ = c, D = l, O = s, z = i, W = n, F = u, q = 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 =
|
|
839
|
+
Ue.AsyncMode = _, Ue.ConcurrentMode = D, Ue.ContextConsumer = O, Ue.ContextProvider = z, Ue.Element = W, Ue.ForwardRef = F, Ue.Fragment = q, 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;
|
|
@@ -1158,7 +1158,7 @@ function wm() {
|
|
|
1158
1158
|
}
|
|
1159
1159
|
return y(B);
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function q(B, U, ie, se, fe) {
|
|
1162
1162
|
return new h(
|
|
1163
1163
|
(B || "React class") + ": " + U + " type `" + ie + "." + se + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + fe + "`."
|
|
1164
1164
|
);
|
|
@@ -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
|
|
1174
|
+
return q(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
|
|
1192
|
+
return q(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, " ") + `
|
|
@@ -3206,8 +3206,8 @@ var ig = function(n) {
|
|
|
3206
3206
|
var z = Df(f.concat(_), x.registered, D);
|
|
3207
3207
|
w += x.key + "-" + z.name, i !== void 0 && (w += " " + i);
|
|
3208
3208
|
var W = l && s === void 0 ? Zl(k) : c, F = {};
|
|
3209
|
-
for (var
|
|
3210
|
-
l &&
|
|
3209
|
+
for (var q in y)
|
|
3210
|
+
l && q === "as" || W(q) && (F[q] = y[q]);
|
|
3211
3211
|
return F.className = w, b && (F.ref = b), /* @__PURE__ */ re.createElement(re.Fragment, null, /* @__PURE__ */ re.createElement(fg, {
|
|
3212
3212
|
cache: x,
|
|
3213
3213
|
serialized: z,
|
|
@@ -3685,8 +3685,8 @@ function Eg(e = {}) {
|
|
|
3685
3685
|
let $;
|
|
3686
3686
|
$ = [...M, ...v, ...A], $.raw = [...M, ...v.raw, ...A], O.unshift($);
|
|
3687
3687
|
}
|
|
3688
|
-
const F = [...O, ...z, ...W],
|
|
3689
|
-
return s.muiName && (
|
|
3688
|
+
const F = [...O, ...z, ...W], q = k(...F);
|
|
3689
|
+
return s.muiName && (q.muiName = s.muiName), process.env.NODE_ENV !== "production" && (q.displayName = Tg(l, u, s)), q;
|
|
3690
3690
|
};
|
|
3691
3691
|
return k.withConfig && (_.withConfig = k.withConfig), _;
|
|
3692
3692
|
};
|
|
@@ -4043,21 +4043,21 @@ function Wg(e, n = {}) {
|
|
|
4043
4043
|
if (O) {
|
|
4044
4044
|
const {
|
|
4045
4045
|
css: W
|
|
4046
|
-
} = O, F = i[_]?.palette?.mode,
|
|
4046
|
+
} = O, F = i[_]?.palette?.mode, q = !r && F ? {
|
|
4047
4047
|
colorScheme: F,
|
|
4048
4048
|
...W
|
|
4049
4049
|
} : {
|
|
4050
4050
|
...W
|
|
4051
4051
|
};
|
|
4052
4052
|
D(t(_, {
|
|
4053
|
-
...
|
|
4054
|
-
}),
|
|
4053
|
+
...q
|
|
4054
|
+
}), q);
|
|
4055
4055
|
}
|
|
4056
4056
|
return Object.entries(z).forEach(([W, {
|
|
4057
4057
|
css: F
|
|
4058
4058
|
}]) => {
|
|
4059
|
-
const
|
|
4060
|
-
colorScheme:
|
|
4059
|
+
const q = i[W]?.palette?.mode, v = !r && q ? {
|
|
4060
|
+
colorScheme: q,
|
|
4061
4061
|
...F
|
|
4062
4062
|
} : {
|
|
4063
4063
|
...F
|
|
@@ -4877,8 +4877,8 @@ function Cv(e = {}, ...n) {
|
|
|
4877
4877
|
},
|
|
4878
4878
|
spacing: _v(u.spacing)
|
|
4879
4879
|
};
|
|
4880
|
-
Object.keys(D.colorSchemes).forEach((
|
|
4881
|
-
const v = D.colorSchemes[
|
|
4880
|
+
Object.keys(D.colorSchemes).forEach((q) => {
|
|
4881
|
+
const v = D.colorSchemes[q].palette, M = ($) => {
|
|
4882
4882
|
const H = $.split("-"), X = H[1], ee = H[2];
|
|
4883
4883
|
return g($, v[X][ee]);
|
|
4884
4884
|
};
|
|
@@ -4904,7 +4904,7 @@ function Cv(e = {}, ...n) {
|
|
|
4904
4904
|
const H = v[$];
|
|
4905
4905
|
$ !== "tonalOffset" && H && typeof H == "object" && (H.main && V(v[$], "mainChannel", Mo(Po(H.main))), H.light && V(v[$], "lightChannel", Mo(Po(H.light))), H.dark && V(v[$], "darkChannel", Mo(Po(H.dark))), H.contrastText && V(v[$], "contrastTextChannel", Mo(Po(H.contrastText))), $ === "text" && (Br(v[$], "primary"), Br(v[$], "secondary")), $ === "action" && (H.active && Br(v[$], "active"), H.selected && Br(v[$], "selected")));
|
|
4906
4906
|
});
|
|
4907
|
-
}), D = n.reduce((
|
|
4907
|
+
}), D = n.reduce((q, v) => tr(q, v), D);
|
|
4908
4908
|
const O = {
|
|
4909
4909
|
prefix: a,
|
|
4910
4910
|
disableCssColorScheme: o,
|
|
@@ -4916,8 +4916,8 @@ function Cv(e = {}, ...n) {
|
|
|
4916
4916
|
generateThemeVars: W,
|
|
4917
4917
|
generateStyleSheets: F
|
|
4918
4918
|
} = Wg(D, O);
|
|
4919
|
-
return D.vars = z, Object.entries(D.colorSchemes[D.defaultColorScheme]).forEach(([
|
|
4920
|
-
D[
|
|
4919
|
+
return D.vars = z, Object.entries(D.colorSchemes[D.defaultColorScheme]).forEach(([q, v]) => {
|
|
4920
|
+
D[q] = v;
|
|
4921
4921
|
}), D.generateThemeVars = W, D.generateStyleSheets = F, D.generateSpacing = function() {
|
|
4922
4922
|
return Tf(u.spacing, Rc(this));
|
|
4923
4923
|
}, D.getColorSchemeSelector = Ug(c), D.spacing = D.generateSpacing(), D.shouldSkipGeneratingVar = s, D.unstable_sxConfig = {
|
|
@@ -5681,7 +5681,7 @@ 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),
|
|
5684
|
+
const z = w / 2 - _ / 2, W = O / 2 - h[m] / 2 - 1, F = co(f[x], W), q = co(f[b], W), v = F, M = O - h[m] - q, 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 : q) - h[m] / 2 < 0, X = H ? A < v ? A - v : A - M : 0;
|
|
5685
5685
|
return {
|
|
5686
5686
|
[g]: p[g] + X,
|
|
5687
5687
|
data: {
|
|
@@ -5730,8 +5730,8 @@ const wy = (e) => ({
|
|
|
5730
5730
|
placement: o,
|
|
5731
5731
|
overflows: W
|
|
5732
5732
|
}], !W.every((A) => A <= 0)) {
|
|
5733
|
-
var
|
|
5734
|
-
const A = (((
|
|
5733
|
+
var q, v;
|
|
5734
|
+
const A = (((q = a.flip) == null ? void 0 : q.index) || 0) + 1, $ = O[A];
|
|
5735
5735
|
if ($ && (!(f === "alignment" ? b !== kn($) : !1) || // We leave the current main axis only if every placement on that axis
|
|
5736
5736
|
// overflows the main axis.
|
|
5737
5737
|
F.every((ee) => kn(ee.placement) === b ? ee.overflows[0] > 0 : !0)))
|
|
@@ -6284,7 +6284,7 @@ function Ky(e) {
|
|
|
6284
6284
|
ee !== D.current && (D.current = ee, h(ee));
|
|
6285
6285
|
}, []), k = re.useCallback((ee) => {
|
|
6286
6286
|
ee !== O.current && (O.current = ee, x(ee));
|
|
6287
|
-
}, []), w = a || m, _ = i || y, D = re.useRef(null), O = re.useRef(null), z = re.useRef(u), W = c != null, F = _s(c),
|
|
6287
|
+
}, []), w = a || m, _ = i || y, D = re.useRef(null), O = re.useRef(null), z = re.useRef(u), W = c != null, F = _s(c), q = _s(o), v = _s(l), M = re.useCallback(() => {
|
|
6288
6288
|
if (!D.current || !O.current)
|
|
6289
6289
|
return;
|
|
6290
6290
|
const ee = {
|
|
@@ -6292,7 +6292,7 @@ function Ky(e) {
|
|
|
6292
6292
|
strategy: t,
|
|
6293
6293
|
middleware: p
|
|
6294
6294
|
};
|
|
6295
|
-
|
|
6295
|
+
q.current && (ee.platform = q.current), Hy(D.current, O.current, ee).then((he) => {
|
|
6296
6296
|
const B = {
|
|
6297
6297
|
...he,
|
|
6298
6298
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -6305,7 +6305,7 @@ function Ky(e) {
|
|
|
6305
6305
|
f(B);
|
|
6306
6306
|
}));
|
|
6307
6307
|
});
|
|
6308
|
-
}, [p, n, t,
|
|
6308
|
+
}, [p, n, t, q, v]);
|
|
6309
6309
|
Ha(() => {
|
|
6310
6310
|
l === !1 && z.current.isPositioned && (z.current.isPositioned = !1, f((ee) => ({
|
|
6311
6311
|
...ee,
|
|
@@ -6462,10 +6462,10 @@ const ab = /* @__PURE__ */ re.forwardRef(function(n, t) {
|
|
|
6462
6462
|
const [w, _] = r.split("-"), D = w === "top" || w === "bottom";
|
|
6463
6463
|
let O = f;
|
|
6464
6464
|
(D && i != null && i.x || !D && i != null && i.y) && (O = null);
|
|
6465
|
-
const z = u * 2, W = z / 2, F = s / 2 * (l / -8 + 1),
|
|
6465
|
+
const z = u * 2, W = z / 2, F = s / 2 * (l / -8 + 1), q = 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 : "", X = g || "M0,0" + (" H" + s) + (" L" + (s - F) + "," + (c -
|
|
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 - q)) + (" Q" + s / 2 + "," + c + " " + F + "," + (c - q)) + " Z", ee = {
|
|
6469
6469
|
top: v ? "rotate(180deg)" : "",
|
|
6470
6470
|
left: v ? "rotate(90deg)" : "rotate(-90deg)",
|
|
6471
6471
|
bottom: v ? "" : "rotate(180deg)",
|
|
@@ -7577,7 +7577,7 @@ var zb = (
|
|
|
7577
7577
|
var i, s = t.props, c = s.selected, l = s.preSelection, u = s.setPreSelection, f = s.minDate, p = s.maxDate, g = s.showFourColumnMonthYearPicker, m = s.showTwoColumnMonthYearPicker;
|
|
7578
7578
|
if (l) {
|
|
7579
7579
|
var h = Iu(g, m), y = t.getVerticalOffset(h), x = (i = Ds[h]) === null || i === void 0 ? void 0 : i.grid, b = function(O, z, W) {
|
|
7580
|
-
var F,
|
|
7580
|
+
var F, q, v = z, M = W;
|
|
7581
7581
|
switch (O) {
|
|
7582
7582
|
case ce.ArrowRight:
|
|
7583
7583
|
v = un(z, Ra), M = W === 11 ? 0 : W + Ra;
|
|
@@ -7589,28 +7589,28 @@ var zb = (
|
|
|
7589
7589
|
v = Rn(z, y), M = !((F = x?.[0]) === null || F === void 0) && F.includes(W) ? W + 12 - y : W - y;
|
|
7590
7590
|
break;
|
|
7591
7591
|
case ce.ArrowDown:
|
|
7592
|
-
v = un(z, y), M = !((
|
|
7592
|
+
v = un(z, y), M = !((q = x?.[x.length - 1]) === null || q === void 0) && q.includes(W) ? W - 12 + y : W + y;
|
|
7593
7593
|
break;
|
|
7594
7594
|
}
|
|
7595
7595
|
return { newCalculatedDate: v, newCalculatedMonth: M };
|
|
7596
7596
|
}, k = function(O, z, W) {
|
|
7597
|
-
for (var F = 40,
|
|
7597
|
+
for (var F = 40, q = O, v = !1, M = 0, A = b(q, z, W), $ = A.newCalculatedDate, H = A.newCalculatedMonth; !v; ) {
|
|
7598
7598
|
if (M >= F) {
|
|
7599
7599
|
$ = z, H = W;
|
|
7600
7600
|
break;
|
|
7601
7601
|
}
|
|
7602
7602
|
if (f && $ < f) {
|
|
7603
|
-
|
|
7604
|
-
var X = b(
|
|
7603
|
+
q = ce.ArrowRight;
|
|
7604
|
+
var X = b(q, $, H);
|
|
7605
7605
|
$ = X.newCalculatedDate, H = X.newCalculatedMonth;
|
|
7606
7606
|
}
|
|
7607
7607
|
if (p && $ > p) {
|
|
7608
|
-
|
|
7609
|
-
var X = b(
|
|
7608
|
+
q = ce.ArrowLeft;
|
|
7609
|
+
var X = b(q, $, H);
|
|
7610
7610
|
$ = X.newCalculatedDate, H = X.newCalculatedMonth;
|
|
7611
7611
|
}
|
|
7612
7612
|
if (kb($, t.props)) {
|
|
7613
|
-
var X = b(
|
|
7613
|
+
var X = b(q, $, H);
|
|
7614
7614
|
$ = X.newCalculatedDate, H = X.newCalculatedMonth;
|
|
7615
7615
|
} else
|
|
7616
7616
|
v = !0;
|
|
@@ -8989,8 +8989,8 @@ var Es = "Date input not valid.", s1 = (
|
|
|
8989
8989
|
if (g) {
|
|
8990
8990
|
var k = r.props.rangeSeparator, w = k.trim(), _ = b.split(y.includes(w) ? k : w, 2).map(function(M) {
|
|
8991
8991
|
return M.trim();
|
|
8992
|
-
}), D = _[0], O = _[1], z = Ss(D ?? "", y, r.props.locale, x), W = z ? Ss(O ?? "", y, r.props.locale, x) : null, F = m?.getTime() !== z?.getTime(),
|
|
8993
|
-
if (!F && !
|
|
8992
|
+
}), D = _[0], O = _[1], z = Ss(D ?? "", y, r.props.locale, x), W = z ? Ss(O ?? "", y, r.props.locale, x) : null, F = m?.getTime() !== z?.getTime(), q = h?.getTime() !== W?.getTime();
|
|
8993
|
+
if (!F && !q || z && cr(z, r.props) || W && cr(W, r.props))
|
|
8994
8994
|
return;
|
|
8995
8995
|
(s = (i = r.props).onChange) === null || s === void 0 || s.call(i, [z, W], f);
|
|
8996
8996
|
} else {
|
|
@@ -9176,8 +9176,8 @@ var Es = "Date input not valid.", s1 = (
|
|
|
9176
9176
|
return;
|
|
9177
9177
|
}
|
|
9178
9178
|
if (o.preventDefault(), r.setState({ lastPreSelectChange: Ts }), k && r.setSelected(F), r.setPreSelection(F), w) {
|
|
9179
|
-
var
|
|
9180
|
-
|
|
9179
|
+
var q = $t(O), v = $t(F), M = Me(O), A = Me(F);
|
|
9180
|
+
q !== v || M !== A ? r.setState({ shouldFocusDayInline: !0 }) : r.setState({ shouldFocusDayInline: !1 });
|
|
9181
9181
|
}
|
|
9182
9182
|
}
|
|
9183
9183
|
}, r.onPopperKeyDown = function(o) {
|
|
@@ -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,30 +12127,30 @@ 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
|
|
12137
12137
|
] }),
|
|
12138
12138
|
O.map((z) => {
|
|
12139
|
-
const W = be(z.color || "#ffcc00"), F = W.toString(),
|
|
12139
|
+
const W = be(z.color || "#ffcc00"), F = W.toString(), q = W.clone().darken(15).toString();
|
|
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
|
-
borderLeftColor:
|
|
12146
|
+
borderLeftColor: q
|
|
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." })
|
|
@@ -12904,7 +12904,7 @@ var Zn = (e) => mt(e) && !xi(e) ? e : {
|
|
|
12904
12904
|
return {};
|
|
12905
12905
|
const k = s ? s[0] : i, w = (v) => {
|
|
12906
12906
|
o && k.reportValidity && (k.setCustomValidity(Jt(v) ? "" : v || ""), k.reportValidity());
|
|
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, _),
|
|
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, _), q = (v, M, A, $ = Wr.maxLength, H = Wr.minLength) => {
|
|
12908
12908
|
const X = v ? M : A;
|
|
12909
12909
|
_[h] = {
|
|
12910
12910
|
type: v ? $ : H,
|
|
@@ -12933,12 +12933,12 @@ var Zn = (e) => mt(e) && !xi(e) ? e : {
|
|
|
12933
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
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
|
-
if ((v || M) && (
|
|
12936
|
+
if ((v || M) && (q(!!v, A.message, $.message, Wr.max, Wr.min), !r))
|
|
12937
12937
|
return w(_[h].message), _;
|
|
12938
12938
|
}
|
|
12939
12939
|
if ((l || u) && !W && (Pr(b) || a && Array.isArray(b))) {
|
|
12940
12940
|
const v = Zn(l), M = Zn(u), A = !Wt(v.value) && b.length > +v.value, $ = !Wt(M.value) && b.length < +M.value;
|
|
12941
|
-
if ((A || $) && (
|
|
12941
|
+
if ((A || $) && (q(A, v.message, M.message), !r))
|
|
12942
12942
|
return w(_[h].message), _;
|
|
12943
12943
|
}
|
|
12944
12944
|
if (g && !W && Pr(b)) {
|
|
@@ -13048,20 +13048,20 @@ function a_(e = {}) {
|
|
|
13048
13048
|
}, x = (S, R = [], L, te, J = !0, I = !0) => {
|
|
13049
13049
|
if (te && L && !n.disabled) {
|
|
13050
13050
|
if (i.action = !0, I && Array.isArray(ae(r, S))) {
|
|
13051
|
-
const
|
|
13052
|
-
J && qe(r, S,
|
|
13051
|
+
const Z = L(ae(r, S), te.argA, te.argB);
|
|
13052
|
+
J && qe(r, S, Z);
|
|
13053
13053
|
}
|
|
13054
13054
|
if (I && Array.isArray(ae(t.errors, S))) {
|
|
13055
|
-
const
|
|
13056
|
-
J && qe(t.errors, S,
|
|
13055
|
+
const Z = L(ae(t.errors, S), te.argA, te.argB);
|
|
13056
|
+
J && qe(t.errors, S, Z), r_(t.errors, S);
|
|
13057
13057
|
}
|
|
13058
13058
|
if ((u.touchedFields || f.touchedFields) && I && Array.isArray(ae(t.touchedFields, S))) {
|
|
13059
|
-
const
|
|
13060
|
-
J && qe(t.touchedFields, S,
|
|
13059
|
+
const Z = L(ae(t.touchedFields, S), te.argA, te.argB);
|
|
13060
|
+
J && qe(t.touchedFields, S, Z);
|
|
13061
13061
|
}
|
|
13062
13062
|
(u.dirtyFields || f.dirtyFields) && (t.dirtyFields = Ao(o, a)), p.state.next({
|
|
13063
13063
|
name: S,
|
|
13064
|
-
isDirty:
|
|
13064
|
+
isDirty: q(S, R),
|
|
13065
13065
|
dirtyFields: t.dirtyFields,
|
|
13066
13066
|
errors: t.errors,
|
|
13067
13067
|
isValid: t.isValid
|
|
@@ -13084,27 +13084,27 @@ function a_(e = {}) {
|
|
|
13084
13084
|
ht(I) || te && te.defaultChecked || R ? qe(a, S, R ? I : ud(J._f)) : A(S, I), i.mount && h();
|
|
13085
13085
|
}
|
|
13086
13086
|
}, _ = (S, R, L, te, J) => {
|
|
13087
|
-
let I = !1,
|
|
13088
|
-
const
|
|
13087
|
+
let I = !1, Z = !1;
|
|
13088
|
+
const me = {
|
|
13089
13089
|
name: S
|
|
13090
13090
|
};
|
|
13091
13091
|
if (!n.disabled) {
|
|
13092
13092
|
if (!L || te) {
|
|
13093
|
-
(u.isDirty || f.isDirty) && (
|
|
13094
|
-
const
|
|
13095
|
-
|
|
13093
|
+
(u.isDirty || f.isDirty) && (Z = t.isDirty, t.isDirty = me.isDirty = q(), I = Z !== me.isDirty);
|
|
13094
|
+
const Te = Hr(ae(o, S), R);
|
|
13095
|
+
Z = !!ae(t.dirtyFields, S), Te ? St(t.dirtyFields, S) : qe(t.dirtyFields, S, !0), me.dirtyFields = t.dirtyFields, I = I || (u.dirtyFields || f.dirtyFields) && Z !== !Te;
|
|
13096
13096
|
}
|
|
13097
13097
|
if (L) {
|
|
13098
|
-
const
|
|
13099
|
-
|
|
13098
|
+
const Te = ae(t.touchedFields, S);
|
|
13099
|
+
Te || (qe(t.touchedFields, S, L), me.touchedFields = t.touchedFields, I = I || (u.touchedFields || f.touchedFields) && Te !== L);
|
|
13100
13100
|
}
|
|
13101
|
-
I && J && p.state.next(
|
|
13101
|
+
I && J && p.state.next(me);
|
|
13102
13102
|
}
|
|
13103
|
-
return I ?
|
|
13103
|
+
return I ? me : {};
|
|
13104
13104
|
}, D = (S, R, L, te) => {
|
|
13105
13105
|
const J = ae(t.errors, S), I = (u.isValid || f.isValid) && Jt(R) && t.isValid !== R;
|
|
13106
13106
|
if (n.delayError && L ? (c = m(() => b(S, L)), c(n.delayError)) : (clearTimeout(l), c = null, L ? qe(t.errors, S, L) : St(t.errors, S)), (L ? !Hr(J, L) : J) || !Ht(te) || I) {
|
|
13107
|
-
const
|
|
13107
|
+
const Z = {
|
|
13108
13108
|
...te,
|
|
13109
13109
|
...I && Jt(R) ? { isValid: R } : {},
|
|
13110
13110
|
errors: t.errors,
|
|
@@ -13112,8 +13112,8 @@ function a_(e = {}) {
|
|
|
13112
13112
|
};
|
|
13113
13113
|
t = {
|
|
13114
13114
|
...t,
|
|
13115
|
-
...
|
|
13116
|
-
}, p.state.next(
|
|
13115
|
+
...Z
|
|
13116
|
+
}, p.state.next(Z);
|
|
13117
13117
|
}
|
|
13118
13118
|
}, O = async (S) => {
|
|
13119
13119
|
y(S, !0);
|
|
@@ -13135,16 +13135,16 @@ function a_(e = {}) {
|
|
|
13135
13135
|
for (const te in S) {
|
|
13136
13136
|
const J = S[te];
|
|
13137
13137
|
if (J) {
|
|
13138
|
-
const { _f: I, ...
|
|
13138
|
+
const { _f: I, ...Z } = J;
|
|
13139
13139
|
if (I) {
|
|
13140
|
-
const
|
|
13141
|
-
|
|
13142
|
-
const P = await gd(J, s.disabled, a, g, n.shouldUseNativeValidation && !R,
|
|
13143
|
-
if (
|
|
13140
|
+
const me = s.array.has(I.name), Te = J._f && Qw(J._f);
|
|
13141
|
+
Te && u.validatingFields && y([te], !0);
|
|
13142
|
+
const P = await gd(J, s.disabled, a, g, n.shouldUseNativeValidation && !R, me);
|
|
13143
|
+
if (Te && u.validatingFields && y([te]), P[I.name] && (L.valid = !1, R))
|
|
13144
13144
|
break;
|
|
13145
|
-
!R && (ae(P, I.name) ?
|
|
13145
|
+
!R && (ae(P, I.name) ? me ? n_(t.errors, P, I.name) : qe(t.errors, I.name, P[I.name]) : St(t.errors, I.name));
|
|
13146
13146
|
}
|
|
13147
|
-
!Ht(
|
|
13147
|
+
!Ht(Z) && await W(Z, R, L);
|
|
13148
13148
|
}
|
|
13149
13149
|
}
|
|
13150
13150
|
return L.valid;
|
|
@@ -13154,16 +13154,16 @@ function a_(e = {}) {
|
|
|
13154
13154
|
R && (R._f.refs ? R._f.refs.every((L) => !Is(L)) : !Is(R._f.ref)) && ue(S);
|
|
13155
13155
|
}
|
|
13156
13156
|
s.unMount = /* @__PURE__ */ new Set();
|
|
13157
|
-
},
|
|
13157
|
+
}, q = (S, R) => !n.disabled && (S && R && qe(a, S, R), !Hr(B(), o)), v = (S, R, L) => Kp(S, s, {
|
|
13158
13158
|
...i.mount ? a : ht(R) ? o : Pr(S) ? { [S]: R } : R
|
|
13159
13159
|
}, L, R), M = (S) => Xc(ae(i.mount ? a : o, S, n.shouldUnregister ? ae(o, S, []) : [])), A = (S, R, L = {}) => {
|
|
13160
13160
|
const te = ae(r, S);
|
|
13161
13161
|
let J = R;
|
|
13162
13162
|
if (te) {
|
|
13163
13163
|
const I = te._f;
|
|
13164
|
-
I && (!I.disabled && qe(a, S, eh(R, I)), J = yi(I.ref) && Wt(R) ? "" : R, Gp(I.ref) ? [...I.ref.options].forEach((
|
|
13165
|
-
(!
|
|
13166
|
-
}) : I.refs.forEach((
|
|
13164
|
+
I && (!I.disabled && qe(a, S, eh(R, I)), J = yi(I.ref) && Wt(R) ? "" : R, Gp(I.ref) ? [...I.ref.options].forEach((Z) => Z.selected = J.includes(Z.value)) : I.refs ? pa(I.ref) ? I.refs.forEach((Z) => {
|
|
13165
|
+
(!Z.defaultChecked || !Z.disabled) && (Array.isArray(J) ? Z.checked = !!J.find((me) => me === Z.value) : Z.checked = J === Z.value || !!J);
|
|
13166
|
+
}) : I.refs.forEach((Z) => Z.checked = Z.value === J) : ol(I.ref) ? I.ref.value = "" : (I.ref.value = J, I.ref.type || p.state.next({
|
|
13167
13167
|
name: S,
|
|
13168
13168
|
values: Dt(a)
|
|
13169
13169
|
})));
|
|
@@ -13173,8 +13173,8 @@ function a_(e = {}) {
|
|
|
13173
13173
|
for (const te in R) {
|
|
13174
13174
|
if (!R.hasOwnProperty(te))
|
|
13175
13175
|
return;
|
|
13176
|
-
const J = R[te], I = S + "." + te,
|
|
13177
|
-
(s.array.has(S) || mt(J) ||
|
|
13176
|
+
const J = R[te], I = S + "." + te, Z = ae(r, I);
|
|
13177
|
+
(s.array.has(S) || mt(J) || Z && !Z._f) && !Tn(J) ? $(I, J, L) : A(I, J, L);
|
|
13178
13178
|
}
|
|
13179
13179
|
}, H = (S, R, L = {}) => {
|
|
13180
13180
|
const te = ae(r, S), J = s.array.has(S), I = Dt(R);
|
|
@@ -13184,7 +13184,7 @@ function a_(e = {}) {
|
|
|
13184
13184
|
}), (u.isDirty || u.dirtyFields || f.isDirty || f.dirtyFields) && L.shouldDirty && p.state.next({
|
|
13185
13185
|
name: S,
|
|
13186
13186
|
dirtyFields: Ao(o, a),
|
|
13187
|
-
isDirty:
|
|
13187
|
+
isDirty: q(S, I)
|
|
13188
13188
|
})) : te && !te._f && !Wt(I) ? $(S, I, L) : A(S, I, L), pd(S, s) && p.state.next({ ...t, name: S }), p.state.next({
|
|
13189
13189
|
name: i.mount ? S : void 0,
|
|
13190
13190
|
values: Dt(a)
|
|
@@ -13193,29 +13193,29 @@ function a_(e = {}) {
|
|
|
13193
13193
|
i.mount = !0;
|
|
13194
13194
|
const R = S.target;
|
|
13195
13195
|
let L = R.name, te = !0;
|
|
13196
|
-
const J = ae(r, L), I = (
|
|
13197
|
-
te = Number.isNaN(
|
|
13198
|
-
},
|
|
13196
|
+
const J = ae(r, L), I = (Te) => {
|
|
13197
|
+
te = Number.isNaN(Te) || Tn(Te) && isNaN(Te.getTime()) || Hr(Te, ae(a, L, Te));
|
|
13198
|
+
}, Z = dd(n.mode), me = dd(n.reValidateMode);
|
|
13199
13199
|
if (J) {
|
|
13200
|
-
let
|
|
13201
|
-
const G = R.type ? ud(J._f) : Hp(S),
|
|
13202
|
-
qe(a, L, G),
|
|
13203
|
-
const At = _(L, G,
|
|
13204
|
-
if (!
|
|
13200
|
+
let Te, P;
|
|
13201
|
+
const G = R.type ? ud(J._f) : Hp(S), ge = S.type === vi.BLUR || S.type === vi.FOCUS_OUT, Ye = !Xw(J._f) && !n.resolver && !ae(t.errors, L) && !J._f.deps || t_(ge, ae(t.touchedFields, L), t.isSubmitted, me, Z), Tt = pd(L, s, ge);
|
|
13202
|
+
qe(a, L, G), ge ? (!R || !R.readOnly) && (J._f.onBlur && J._f.onBlur(S), c && c(0)) : J._f.onChange && J._f.onChange(S);
|
|
13203
|
+
const At = _(L, G, ge), Lr = !Ht(At) || Tt;
|
|
13204
|
+
if (!ge && p.state.next({
|
|
13205
13205
|
name: L,
|
|
13206
13206
|
type: S.type,
|
|
13207
13207
|
values: Dt(a)
|
|
13208
13208
|
}), Ye)
|
|
13209
|
-
return (u.isValid || f.isValid) && (n.mode === "onBlur" ?
|
|
13210
|
-
if (!
|
|
13209
|
+
return (u.isValid || f.isValid) && (n.mode === "onBlur" ? ge && h() : ge || h()), Lr && p.state.next({ name: L, ...Tt ? {} : At });
|
|
13210
|
+
if (!ge && Tt && p.state.next({ ...t }), n.resolver) {
|
|
13211
13211
|
const { errors: or } = await O([L]);
|
|
13212
13212
|
if (I(G), te) {
|
|
13213
13213
|
const vn = hd(t.errors, r, L), Jr = hd(or, r, vn.name || L);
|
|
13214
|
-
|
|
13214
|
+
Te = Jr.error, L = Jr.name, P = Ht(or);
|
|
13215
13215
|
}
|
|
13216
13216
|
} else
|
|
13217
|
-
y([L], !0),
|
|
13218
|
-
te && (J._f.deps && he(J._f.deps), D(L, P,
|
|
13217
|
+
y([L], !0), Te = (await gd(J, s.disabled, a, g, n.shouldUseNativeValidation))[L], y([L]), I(G), te && (Te ? P = !1 : (u.isValid || f.isValid) && (P = await W(r, !0)));
|
|
13218
|
+
te && (J._f.deps && he(J._f.deps), D(L, P, Te, At));
|
|
13219
13219
|
}
|
|
13220
13220
|
}, ee = (S, R) => {
|
|
13221
13221
|
if (ae(t.errors, R) && S.focus)
|
|
@@ -13225,10 +13225,10 @@ function a_(e = {}) {
|
|
|
13225
13225
|
const J = Lo(S);
|
|
13226
13226
|
if (n.resolver) {
|
|
13227
13227
|
const I = await z(ht(S) ? S : J);
|
|
13228
|
-
L = Ht(I), te = S ? !J.some((
|
|
13228
|
+
L = Ht(I), te = S ? !J.some((Z) => ae(I, Z)) : L;
|
|
13229
13229
|
} else S ? (te = (await Promise.all(J.map(async (I) => {
|
|
13230
|
-
const
|
|
13231
|
-
return await W(
|
|
13230
|
+
const Z = ae(r, I);
|
|
13231
|
+
return await W(Z && Z._f ? { [I]: Z } : Z);
|
|
13232
13232
|
}))).every(Boolean), !(!te && !t.isValid) && h()) : te = L = await W(r);
|
|
13233
13233
|
return p.state.next({
|
|
13234
13234
|
...!Pr(S) || (u.isValid || f.isValid) && L !== t.isValid ? {} : { name: S },
|
|
@@ -13251,9 +13251,9 @@ function a_(e = {}) {
|
|
|
13251
13251
|
errors: S ? t.errors : {}
|
|
13252
13252
|
});
|
|
13253
13253
|
}, se = (S, R, L) => {
|
|
13254
|
-
const te = (ae(r, S, { _f: {} })._f || {}).ref, J = ae(t.errors, S) || {}, { ref: I, message:
|
|
13254
|
+
const te = (ae(r, S, { _f: {} })._f || {}).ref, J = ae(t.errors, S) || {}, { ref: I, message: Z, type: me, ...Te } = J;
|
|
13255
13255
|
qe(t.errors, S, {
|
|
13256
|
-
...
|
|
13256
|
+
...Te,
|
|
13257
13257
|
...R,
|
|
13258
13258
|
ref: te
|
|
13259
13259
|
}), p.state.next({
|
|
@@ -13285,7 +13285,7 @@ function a_(e = {}) {
|
|
|
13285
13285
|
values: Dt(a)
|
|
13286
13286
|
}), p.state.next({
|
|
13287
13287
|
...t,
|
|
13288
|
-
...R.keepDirty ? { isDirty:
|
|
13288
|
+
...R.keepDirty ? { isDirty: q() } : {}
|
|
13289
13289
|
}), !R.keepIsValid && h();
|
|
13290
13290
|
}, xe = ({ disabled: S, name: R }) => {
|
|
13291
13291
|
(Jt(S) && i.mount || S || s.disabled.has(R)) && (S ? s.disabled.add(R) : s.disabled.delete(R));
|
|
@@ -13319,15 +13319,15 @@ function a_(e = {}) {
|
|
|
13319
13319
|
ref: (J) => {
|
|
13320
13320
|
if (J) {
|
|
13321
13321
|
ke(S, R), L = ae(r, S);
|
|
13322
|
-
const I = ht(J.value) && J.querySelectorAll && J.querySelectorAll("input,select,textarea")[0] || J,
|
|
13323
|
-
if (
|
|
13322
|
+
const I = ht(J.value) && J.querySelectorAll && J.querySelectorAll("input,select,textarea")[0] || J, Z = Zw(I), me = L._f.refs || [];
|
|
13323
|
+
if (Z ? me.find((Te) => Te === I) : I === L._f.ref)
|
|
13324
13324
|
return;
|
|
13325
13325
|
qe(r, S, {
|
|
13326
13326
|
_f: {
|
|
13327
13327
|
...L._f,
|
|
13328
|
-
...
|
|
13328
|
+
...Z ? {
|
|
13329
13329
|
refs: [
|
|
13330
|
-
...
|
|
13330
|
+
...me.filter(Is),
|
|
13331
13331
|
I,
|
|
13332
13332
|
...Array.isArray(ae(o, S)) ? [{}] : []
|
|
13333
13333
|
],
|
|
@@ -13353,8 +13353,8 @@ function a_(e = {}) {
|
|
|
13353
13353
|
if (p.state.next({
|
|
13354
13354
|
isSubmitting: !0
|
|
13355
13355
|
}), n.resolver) {
|
|
13356
|
-
const { errors: I, values:
|
|
13357
|
-
t.errors = I, J = Dt(
|
|
13356
|
+
const { errors: I, values: Z } = await O();
|
|
13357
|
+
t.errors = I, J = Dt(Z);
|
|
13358
13358
|
} else
|
|
13359
13359
|
await W(r);
|
|
13360
13360
|
if (s.disabled.size)
|
|
@@ -13380,25 +13380,25 @@ function a_(e = {}) {
|
|
|
13380
13380
|
}), te)
|
|
13381
13381
|
throw te;
|
|
13382
13382
|
}, ne = (S, R = {}) => {
|
|
13383
|
-
ae(r, S) && (ht(R.defaultValue) ? H(S, Dt(ae(o, S))) : (H(S, R.defaultValue), qe(o, S, Dt(R.defaultValue))), R.keepTouched || St(t.touchedFields, S), R.keepDirty || (St(t.dirtyFields, S), t.isDirty = R.defaultValue ?
|
|
13383
|
+
ae(r, S) && (ht(R.defaultValue) ? H(S, Dt(ae(o, S))) : (H(S, R.defaultValue), qe(o, S, Dt(R.defaultValue))), R.keepTouched || St(t.touchedFields, S), R.keepDirty || (St(t.dirtyFields, S), t.isDirty = R.defaultValue ? q(S, Dt(ae(o, S))) : q()), R.keepError || (St(t.errors, S), u.isValid && h()), p.state.next({ ...t }));
|
|
13384
13384
|
}, Ce = (S, R = {}) => {
|
|
13385
13385
|
const L = S ? Dt(S) : o, te = Dt(L), J = Ht(S), I = J ? o : te;
|
|
13386
13386
|
if (R.keepDefaultValues || (o = L), !R.keepValues) {
|
|
13387
13387
|
if (R.keepDirtyValues) {
|
|
13388
|
-
const
|
|
13388
|
+
const Z = /* @__PURE__ */ new Set([
|
|
13389
13389
|
...s.mount,
|
|
13390
13390
|
...Object.keys(Ao(o, a))
|
|
13391
13391
|
]);
|
|
13392
|
-
for (const
|
|
13393
|
-
ae(t.dirtyFields,
|
|
13392
|
+
for (const me of Array.from(Z))
|
|
13393
|
+
ae(t.dirtyFields, me) ? qe(I, me, ae(a, me)) : H(me, ae(I, me));
|
|
13394
13394
|
} else {
|
|
13395
13395
|
if (Qc && ht(S))
|
|
13396
|
-
for (const
|
|
13397
|
-
const
|
|
13398
|
-
if (
|
|
13399
|
-
const
|
|
13400
|
-
if (yi(
|
|
13401
|
-
const P =
|
|
13396
|
+
for (const Z of s.mount) {
|
|
13397
|
+
const me = ae(r, Z);
|
|
13398
|
+
if (me && me._f) {
|
|
13399
|
+
const Te = Array.isArray(me._f.refs) ? me._f.refs[0] : me._f.ref;
|
|
13400
|
+
if (yi(Te)) {
|
|
13401
|
+
const P = Te.closest("form");
|
|
13402
13402
|
if (P) {
|
|
13403
13403
|
P.reset();
|
|
13404
13404
|
break;
|
|
@@ -13407,8 +13407,8 @@ function a_(e = {}) {
|
|
|
13407
13407
|
}
|
|
13408
13408
|
}
|
|
13409
13409
|
if (R.keepFieldsRef)
|
|
13410
|
-
for (const
|
|
13411
|
-
H(
|
|
13410
|
+
for (const Z of s.mount)
|
|
13411
|
+
H(Z, ae(I, Z));
|
|
13412
13412
|
else
|
|
13413
13413
|
r = {};
|
|
13414
13414
|
}
|
|
@@ -13459,7 +13459,7 @@ function a_(e = {}) {
|
|
|
13459
13459
|
_runSchema: O,
|
|
13460
13460
|
_focusError: ye,
|
|
13461
13461
|
_getWatch: v,
|
|
13462
|
-
_getDirty:
|
|
13462
|
+
_getDirty: q,
|
|
13463
13463
|
_setValid: h,
|
|
13464
13464
|
_setFieldArray: x,
|
|
13465
13465
|
_setDisabledField: xe,
|
|
@@ -16097,7 +16097,7 @@ const Wd = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, Ud = (e, n) => {
|
|
|
16097
16097
|
const [l, u] = Se(!1), [f, p] = Se(!1), g = at(/* @__PURE__ */ new Date(), "yyyy-MM-dd"), [m, h] = Se(""), [y, x] = Se([]), [b, k] = Se(!1), w = Wp(), [_, D] = Se([]), [O, z] = Se(""), {
|
|
16098
16098
|
control: W,
|
|
16099
16099
|
handleSubmit: F,
|
|
16100
|
-
reset:
|
|
16100
|
+
reset: q,
|
|
16101
16101
|
formState: { errors: v, isValid: M },
|
|
16102
16102
|
watch: A,
|
|
16103
16103
|
setValue: $
|
|
@@ -16164,7 +16164,7 @@ const Wd = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, Ud = (e, n) => {
|
|
|
16164
16164
|
u(!T), $("titulo", a?.titulo), $("fechaInicio", at(a.fechaInicio, "yyyy-MM-dd")), $("fechaFin", at(a.fechaFin, "yyyy-MM-dd")), $("horaInicio", at(a.fechaInicio, "HH:mm")), $("horaFin", at(a.fechaFin, "HH:mm")), $("horaInicio2", at(a.fechaFin, "HH:mm")), $("descripcion", a.descripcion), $("link", a.link), $("repetir", "false"), $("color", a.color), $("todoElDia", a.todoElDia), $("solID", a.solID), $("client", a.client), a.solID ? p(!0) : p(!1);
|
|
16165
16165
|
} else {
|
|
16166
16166
|
const T = o || /* @__PURE__ */ new Date(), ne = /* @__PURE__ */ new Date(), Ce = new Date(T.getFullYear(), T.getMonth(), T.getDate(), ne.getHours(), ne.getMinutes()), _e = qs(Ce, 1);
|
|
16167
|
-
|
|
16167
|
+
q({
|
|
16168
16168
|
titulo: "",
|
|
16169
16169
|
fechaInicio: at(Ce, "yyyy-MM-dd"),
|
|
16170
16170
|
horaInicio: at(Ce, "HH:mm"),
|
|
@@ -16183,7 +16183,7 @@ const Wd = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, Ud = (e, n) => {
|
|
|
16183
16183
|
}, [a, e, o]);
|
|
16184
16184
|
const he = F(
|
|
16185
16185
|
(T) => {
|
|
16186
|
-
t(T, a?.eventoID), n(),
|
|
16186
|
+
t(T, a?.eventoID), n(), q(), u(!1);
|
|
16187
16187
|
},
|
|
16188
16188
|
(T) => {
|
|
16189
16189
|
console.log("Errores de validación:", T);
|
|
@@ -16229,7 +16229,7 @@ const Wd = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, Ud = (e, n) => {
|
|
|
16229
16229
|
}, [ie, U, se]), oe = Je(() => Kn, []);
|
|
16230
16230
|
return /* @__PURE__ */ d.jsx(wc, { open: e, onClose: n, children: /* @__PURE__ */ d.jsx("form", { onSubmit: he, children: /* @__PURE__ */ d.jsxs(Q, { sx: PD, children: [
|
|
16231
16231
|
/* @__PURE__ */ d.jsx(Mt, { "aria-label": "close", onClick: n, sx: { position: "absolute", right: 8, top: 12 }, children: /* @__PURE__ */ d.jsx(Pn, {}) }),
|
|
16232
|
-
/* @__PURE__ */ d.jsx(
|
|
16232
|
+
/* @__PURE__ */ d.jsx(Re, { 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,
|
|
@@ -16583,8 +16583,8 @@ const Wd = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, Ud = (e, n) => {
|
|
|
16583
16583
|
textAlign: "center"
|
|
16584
16584
|
}, LD = ({ isOpen: e, onClose: n, onConfirm: t, title: r, message: o }) => /* @__PURE__ */ d.jsx(wc, { open: e, onClose: n, children: /* @__PURE__ */ d.jsxs(Q, { sx: FD, children: [
|
|
16585
16585
|
/* @__PURE__ */ d.jsx("img", { src: $D }),
|
|
16586
|
-
/* @__PURE__ */ d.jsx(
|
|
16587
|
-
/* @__PURE__ */ d.jsx(
|
|
16586
|
+
/* @__PURE__ */ d.jsx(Re, { variant: "h6", component: "h2", sx: { mt: 1 }, children: r }),
|
|
16587
|
+
/* @__PURE__ */ d.jsx(Re, { sx: { mt: 2 }, children: o }),
|
|
16588
16588
|
/* @__PURE__ */ d.jsxs(Q, { sx: { mt: 4, display: "flex", justifyContent: "center", gap: 2 }, children: [
|
|
16589
16589
|
/* @__PURE__ */ d.jsx(Rt, { variant: "outlined", onClick: n, sx: { textTransform: "none" }, children: "Regresar" }),
|
|
16590
16590
|
/* @__PURE__ */ d.jsxs(Rt, { variant: "contained", color: "error", onClick: t, sx: { textTransform: "none" }, children: [
|
|
@@ -16609,7 +16609,7 @@ const Wd = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, Ud = (e, n) => {
|
|
|
16609
16609
|
};
|
|
16610
16610
|
return /* @__PURE__ */ d.jsx(wc, { open: e, onClose: n, children: /* @__PURE__ */ d.jsxs(Q, { sx: zD, children: [
|
|
16611
16611
|
/* @__PURE__ */ d.jsxs(Q, { sx: { display: "flex", justifyContent: "space-between", alignItems: "center", mb: 1 }, children: [
|
|
16612
|
-
/* @__PURE__ */ d.jsxs(
|
|
16612
|
+
/* @__PURE__ */ d.jsxs(Re, { sx: { fontSize: "20px" }, component: "h2", children: [
|
|
16613
16613
|
"Eventos del",
|
|
16614
16614
|
" ",
|
|
16615
16615
|
r.toLocaleDateString("es-ES", {
|
|
@@ -16690,7 +16690,7 @@ const Wd = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, Ud = (e, n) => {
|
|
|
16690
16690
|
},
|
|
16691
16691
|
children: [
|
|
16692
16692
|
/* @__PURE__ */ d.jsx(Q, { sx: { mr: 1.5 }, children: i.icon }),
|
|
16693
|
-
/* @__PURE__ */ d.jsx(
|
|
16693
|
+
/* @__PURE__ */ d.jsx(Re, { 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
|
}
|
|
@@ -16741,7 +16741,7 @@ function qD(e) {
|
|
|
16741
16741
|
const a5 = ({ userId: e, leads30Days: n, leads90Days: t, disId: r, masNombreBD: o }) => {
|
|
16742
16742
|
const [a, i] = Se(/* @__PURE__ */ new Date()), [s, c] = Se([]), [l, u] = Se(!1), [f, p] = Se(null), [g, m] = Se(!1), [h, y] = Se(null), [x, b] = Se([]), { enqueueSnackbar: k } = Tc(), w = Wp();
|
|
16743
16743
|
Gc();
|
|
16744
|
-
const [_, D] = Se(!1), [O, z] = Se([]), [W, F] = Se(null), { session:
|
|
16744
|
+
const [_, D] = Se(!1), [O, z] = Se([]), [W, F] = Se(null), { session: q } = 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(() => {
|
|
@@ -16844,7 +16844,7 @@ const a5 = ({ userId: e, leads30Days: n, leads90Days: t, disId: r, masNombreBD:
|
|
|
16844
16844
|
};
|
|
16845
16845
|
Ct(() => {
|
|
16846
16846
|
const oe = [...s];
|
|
16847
|
-
if (console.log("mergedEvents", oe), v.length > 0 &&
|
|
16847
|
+
if (console.log("mergedEvents", oe), v.length > 0 && q.userEmail && (q.userEmail, r && e)) {
|
|
16848
16848
|
const T = v.map((ne) => KD(ne, r, e));
|
|
16849
16849
|
oe.push(...T);
|
|
16850
16850
|
}
|
|
@@ -16943,7 +16943,7 @@ function iE({
|
|
|
16943
16943
|
color: "#fff",
|
|
16944
16944
|
boxSizing: "border-box"
|
|
16945
16945
|
},
|
|
16946
|
-
children: ["Tipo", "En Proceso", "Finalizadas", "Último seg."].map((u) => /* @__PURE__ */ d.jsx(
|
|
16946
|
+
children: ["Tipo", "En Proceso", "Finalizadas", "Último seg."].map((u) => /* @__PURE__ */ d.jsx(Re, { sx: { fontSize: 13, fontWeight: 800 }, children: u }, u))
|
|
16947
16947
|
}
|
|
16948
16948
|
),
|
|
16949
16949
|
e.map((u, f) => {
|
|
@@ -16979,7 +16979,7 @@ function iE({
|
|
|
16979
16979
|
children: [
|
|
16980
16980
|
/* @__PURE__ */ d.jsx(Mt, { size: "small", disableRipple: !0, children: p ? /* @__PURE__ */ d.jsx(oE, {}) : /* @__PURE__ */ d.jsx(nE, {}) }),
|
|
16981
16981
|
/* @__PURE__ */ d.jsx(
|
|
16982
|
-
|
|
16982
|
+
Re,
|
|
16983
16983
|
{
|
|
16984
16984
|
sx: {
|
|
16985
16985
|
fontWeight: 700,
|
|
@@ -16995,9 +16995,9 @@ function iE({
|
|
|
16995
16995
|
]
|
|
16996
16996
|
}
|
|
16997
16997
|
),
|
|
16998
|
-
/* @__PURE__ */ d.jsx(
|
|
16999
|
-
/* @__PURE__ */ d.jsx(
|
|
17000
|
-
/* @__PURE__ */ d.jsx(
|
|
16998
|
+
/* @__PURE__ */ d.jsx(Re, { sx: { fontSize: 13.5, fontWeight: 800 }, children: Ls(u, "En Proceso") }),
|
|
16999
|
+
/* @__PURE__ */ d.jsx(Re, { sx: { fontSize: 13.5, fontWeight: 800 }, children: Ls(u, "Finalizadas") }),
|
|
17000
|
+
/* @__PURE__ */ d.jsx(Re, { sx: { fontSize: 13.5, fontWeight: 800 }, children: Ls(u, "Último seg.") })
|
|
17001
17001
|
]
|
|
17002
17002
|
}
|
|
17003
17003
|
),
|
|
@@ -17029,7 +17029,7 @@ function iE({
|
|
|
17029
17029
|
boxSizing: "border-box"
|
|
17030
17030
|
},
|
|
17031
17031
|
children: h.map((x) => /* @__PURE__ */ d.jsx(
|
|
17032
|
-
|
|
17032
|
+
Re,
|
|
17033
17033
|
{
|
|
17034
17034
|
sx: {
|
|
17035
17035
|
justifySelf: Zd(x.align),
|
|
@@ -17075,7 +17075,7 @@ function iE({
|
|
|
17075
17075
|
minWidth: 0
|
|
17076
17076
|
},
|
|
17077
17077
|
children: typeof _ == "string" || typeof _ == "number" ? /* @__PURE__ */ d.jsx(
|
|
17078
|
-
|
|
17078
|
+
Re,
|
|
17079
17079
|
{
|
|
17080
17080
|
sx: {
|
|
17081
17081
|
fontSize: 13,
|
|
@@ -17193,26 +17193,26 @@ function gE({
|
|
|
17193
17193
|
}) {
|
|
17194
17194
|
if (!t) return null;
|
|
17195
17195
|
const k = 3, [w, _] = Se(null), D = !!w, O = Je(() => [...l].sort(
|
|
17196
|
-
(N,
|
|
17196
|
+
(N, ve) => new Date(ve.FechaAsignacion).getTime() - new Date(N.FechaAsignacion).getTime()
|
|
17197
17197
|
), [l]), z = o?.title ?? ((N) => N?.Nombre || N?.name || "Sin título"), W = o?.infoItems ?? [], F = (N) => {
|
|
17198
17198
|
if (!N) return { bg: "#E0E0E0", color: "#333" };
|
|
17199
|
-
const
|
|
17200
|
-
return
|
|
17201
|
-
},
|
|
17202
|
-
const
|
|
17203
|
-
return Oe.length >= 2 ? (Oe[0][0] + Oe[1][0]).toUpperCase() : (
|
|
17199
|
+
const ve = N.toLowerCase();
|
|
17200
|
+
return ve.includes("actualiz") ? { bg: "#E8F1FF", color: "#1E60D1" } : ve.includes("recorda") ? { bg: "#F5E7FF", color: "#7A3DB8" } : { bg: "#EEE", color: "#333" };
|
|
17201
|
+
}, q = (N) => N.NombreAsesor?.trim() || (N.Email ? N.Email : "Sistema"), v = (N) => {
|
|
17202
|
+
const ve = N || "", Oe = ve.split(" ").filter(Boolean);
|
|
17203
|
+
return Oe.length >= 2 ? (Oe[0][0] + Oe[1][0]).toUpperCase() : (ve[0] || "?").toUpperCase();
|
|
17204
17204
|
}, M = [...c].sort(
|
|
17205
|
-
(N,
|
|
17205
|
+
(N, ve) => new Date(ve.FecAlta).getTime() - new Date(N.FecAlta).getTime()
|
|
17206
17206
|
), [A, $] = Se(!1), H = Je(
|
|
17207
17207
|
() => A ? M : M.slice(0, k),
|
|
17208
17208
|
[A, M]
|
|
17209
|
-
), X = Math.max(M.length - k, 0), ee = (N) => String(N ?? "").normalize("NFD").replace(new RegExp("\\p{Diacritic}", "gu"), "").toLowerCase().trim(), he = (N,
|
|
17210
|
-
const Oe = ee(
|
|
17209
|
+
), X = Math.max(M.length - k, 0), ee = (N) => String(N ?? "").normalize("NFD").replace(new RegExp("\\p{Diacritic}", "gu"), "").toLowerCase().trim(), he = (N, ve) => ee(JSON.stringify(N)).includes(ee(ve)), B = (N, ve) => f ? f(N, ve) : he(N, ve), U = (N, ve) => {
|
|
17210
|
+
const Oe = ee(ve).split(/\s+/).filter(Boolean);
|
|
17211
17211
|
return Oe.length ? Oe.every((tt) => B(N, tt)) : !0;
|
|
17212
17212
|
}, [ie, se] = Se(""), [fe, pe] = Se([]);
|
|
17213
17213
|
Je(() => i ?? [], [i]), Je(() => {
|
|
17214
17214
|
const N = ie.trim();
|
|
17215
|
-
return N ? (i ?? []).filter((
|
|
17215
|
+
return N ? (i ?? []).filter((ve) => U(ve, N)) : i ?? [];
|
|
17216
17216
|
}, [i, ie]);
|
|
17217
17217
|
const de = _c(), ue = Sc(de.breakpoints.down("md")), [xe, ke] = E.useState(""), [ye, oe] = E.useState(!1), [T, ne] = E.useState(!1), Ce = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10), _e = new Date(Date.now() - 720 * 3600 * 1e3).toISOString().slice(0, 10), [Ee, xt] = E.useState(_e), [wt, ct] = E.useState(Ce), [S, R] = E.useState(null), L = !!S, [te, J] = E.useState("Todos"), I = [
|
|
17218
17218
|
"Selección y presentación",
|
|
@@ -17220,24 +17220,24 @@ function gE({
|
|
|
17220
17220
|
"En reparación",
|
|
17221
17221
|
"Entrega de vehículo",
|
|
17222
17222
|
"Agendar Cita"
|
|
17223
|
-
], [
|
|
17224
|
-
ke(""), oe(!1), ne(!1), xt(_e), ct(Ce), J("Todos"),
|
|
17223
|
+
], [Z, me] = Se("Todos"), Te = () => {
|
|
17224
|
+
ke(""), oe(!1), ne(!1), xt(_e), ct(Ce), J("Todos"), me("Todos");
|
|
17225
17225
|
};
|
|
17226
17226
|
function P(N) {
|
|
17227
17227
|
if (!N) return "";
|
|
17228
|
-
const
|
|
17229
|
-
if (isNaN(
|
|
17230
|
-
const Oe = String(
|
|
17228
|
+
const ve = new Date(N);
|
|
17229
|
+
if (isNaN(ve.getTime())) return "";
|
|
17230
|
+
const Oe = String(ve.getDate()).padStart(2, "0"), tt = String(ve.getMonth() + 1).padStart(2, "0"), rt = String(ve.getFullYear()).slice(-2);
|
|
17231
17231
|
return `${Oe}/${tt}/${rt}`;
|
|
17232
17232
|
}
|
|
17233
17233
|
function G(N) {
|
|
17234
|
-
const
|
|
17235
|
-
return
|
|
17234
|
+
const ve = N ? new Date(N) : null;
|
|
17235
|
+
return ve && !isNaN(ve.getTime()) ? ve : null;
|
|
17236
17236
|
}
|
|
17237
|
-
function
|
|
17237
|
+
function ge(N, ve) {
|
|
17238
17238
|
let Oe = null;
|
|
17239
17239
|
for (const tt of N) {
|
|
17240
|
-
const rt = G(
|
|
17240
|
+
const rt = G(ve(tt));
|
|
17241
17241
|
if (rt) {
|
|
17242
17242
|
const Ot = rt.getTime();
|
|
17243
17243
|
(Oe === null || Ot > Oe) && (Oe = Ot);
|
|
@@ -17246,26 +17246,26 @@ function gE({
|
|
|
17246
17246
|
return Oe ? new Date(Oe) : null;
|
|
17247
17247
|
}
|
|
17248
17248
|
function Ye(N) {
|
|
17249
|
-
const
|
|
17250
|
-
return
|
|
17249
|
+
const ve = ge(N, (Oe) => Oe.UltimoSeguimiento || Oe.FechaCita);
|
|
17250
|
+
return ve ? P(ve.toISOString()) : "—";
|
|
17251
17251
|
}
|
|
17252
17252
|
function Tt(N) {
|
|
17253
|
-
return N.filter((
|
|
17253
|
+
return N.filter((ve) => /finalizad/i.test(ve.EstatusDescripcion ?? "")).length;
|
|
17254
17254
|
}
|
|
17255
17255
|
function At(N) {
|
|
17256
17256
|
return N.length - Tt(N);
|
|
17257
17257
|
}
|
|
17258
17258
|
const Lr = ({
|
|
17259
17259
|
progress: N,
|
|
17260
|
-
color:
|
|
17260
|
+
color: ve
|
|
17261
17261
|
}) => {
|
|
17262
17262
|
if (!N)
|
|
17263
|
-
return /* @__PURE__ */ d.jsx(zs, { current: 0, total: 0, color:
|
|
17263
|
+
return /* @__PURE__ */ d.jsx(zs, { current: 0, total: 0, color: ve });
|
|
17264
17264
|
const Oe = N.split("/").map(Number);
|
|
17265
17265
|
if (Oe.length !== 2 || Oe.some((Ot) => Number.isNaN(Ot)))
|
|
17266
|
-
return /* @__PURE__ */ d.jsx(zs, { current: 0, total: 0, color:
|
|
17266
|
+
return /* @__PURE__ */ d.jsx(zs, { current: 0, total: 0, color: ve });
|
|
17267
17267
|
const [tt, rt] = Oe;
|
|
17268
|
-
return /* @__PURE__ */ d.jsx(zs, { current: tt, total: rt, color:
|
|
17268
|
+
return /* @__PURE__ */ d.jsx(zs, { current: tt, total: rt, color: ve });
|
|
17269
17269
|
}, or = [
|
|
17270
17270
|
{
|
|
17271
17271
|
key: "fecha",
|
|
@@ -17277,7 +17277,7 @@ function gE({
|
|
|
17277
17277
|
key: "vehiculo",
|
|
17278
17278
|
header: "Vehículo",
|
|
17279
17279
|
accessor: (N) => /* @__PURE__ */ d.jsx($a, { title: N.Vehiculo ?? "", placement: "top", arrow: !0, children: /* @__PURE__ */ d.jsx(
|
|
17280
|
-
|
|
17280
|
+
Re,
|
|
17281
17281
|
{
|
|
17282
17282
|
component: "span",
|
|
17283
17283
|
sx: {
|
|
@@ -17299,7 +17299,7 @@ function gE({
|
|
|
17299
17299
|
{
|
|
17300
17300
|
key: "estatus",
|
|
17301
17301
|
header: "Estatus",
|
|
17302
|
-
accessor: (N) => /* @__PURE__ */ d.jsx(
|
|
17302
|
+
accessor: (N) => /* @__PURE__ */ d.jsx(Re, { sx: { fontWeight: 800, fontSize: 13 }, children: N.EstatusDescripcion || "—" }),
|
|
17303
17303
|
width: 170
|
|
17304
17304
|
},
|
|
17305
17305
|
{
|
|
@@ -17327,10 +17327,10 @@ function gE({
|
|
|
17327
17327
|
key: "asesor",
|
|
17328
17328
|
header: "Asesor",
|
|
17329
17329
|
accessor: (N) => /* @__PURE__ */ d.jsx($a, { title: N.Asesor ?? "", placement: "top", children: /* @__PURE__ */ d.jsx(
|
|
17330
|
-
|
|
17330
|
+
Re,
|
|
17331
17331
|
{
|
|
17332
17332
|
sx: { fontWeight: 700, fontSize: 13, textAlign: "center" },
|
|
17333
|
-
children: (N.Asesor ?? "").split(" ").filter(Boolean).map((
|
|
17333
|
+
children: (N.Asesor ?? "").split(" ").filter(Boolean).map((ve) => ve[0]?.toUpperCase()).slice(0, 2).join("") || "—"
|
|
17334
17334
|
}
|
|
17335
17335
|
) }),
|
|
17336
17336
|
width: 120,
|
|
@@ -17387,11 +17387,11 @@ function gE({
|
|
|
17387
17387
|
return or;
|
|
17388
17388
|
}
|
|
17389
17389
|
}
|
|
17390
|
-
function yn(N,
|
|
17390
|
+
function yn(N, ve, Oe, tt) {
|
|
17391
17391
|
return {
|
|
17392
17392
|
id: N,
|
|
17393
17393
|
kind: Oe,
|
|
17394
|
-
title:
|
|
17394
|
+
title: ve,
|
|
17395
17395
|
metrics: [
|
|
17396
17396
|
{ label: "En Proceso", value: At(tt) },
|
|
17397
17397
|
{ label: "Finalizadas", value: Tt(tt) },
|
|
@@ -17412,16 +17412,16 @@ function gE({
|
|
|
17412
17412
|
h
|
|
17413
17413
|
)
|
|
17414
17414
|
], xo = E.useMemo(() => {
|
|
17415
|
-
const N = ye ? new Date(Ee) : null,
|
|
17415
|
+
const N = ye ? new Date(Ee) : null, ve = ye ? new Date(wt) : null, Oe = (xe ?? "").trim().toLowerCase(), tt = (rt, Ot) => {
|
|
17416
17416
|
if (Oe && !(rt.Vehiculo ?? "").toLowerCase().includes(Oe)) return !1;
|
|
17417
17417
|
const bn = T ? rt.FechaCita : rt.Fecha;
|
|
17418
|
-
if (ye && (N ||
|
|
17418
|
+
if (ye && (N || ve)) {
|
|
17419
17419
|
const Dr = G(bn ?? "");
|
|
17420
17420
|
if (!Dr) return !1;
|
|
17421
|
-
const zn = N ? new Date(N) : null, C =
|
|
17421
|
+
const zn = N ? new Date(N) : null, C = ve ? new Date(ve) : null;
|
|
17422
17422
|
if (zn && zn.setHours(0, 0, 0, 0), C && C.setHours(23, 59, 59, 999), zn && Dr < zn || C && Dr > C) return !1;
|
|
17423
17423
|
}
|
|
17424
|
-
return !(te !== "Todos" && !(rt.EstatusDescripcion ?? "").toLowerCase().includes(te.toLowerCase()) ||
|
|
17424
|
+
return !(te !== "Todos" && !(rt.EstatusDescripcion ?? "").toLowerCase().includes(te.toLowerCase()) || Z !== "Todos" && (rt.Actividad ?? "") !== Z);
|
|
17425
17425
|
};
|
|
17426
17426
|
return zr.map((rt) => {
|
|
17427
17427
|
const Ot = (rt.rows ?? []).filter(
|
|
@@ -17446,18 +17446,18 @@ function gE({
|
|
|
17446
17446
|
wt,
|
|
17447
17447
|
T,
|
|
17448
17448
|
te,
|
|
17449
|
-
|
|
17449
|
+
Z
|
|
17450
17450
|
]), [wo, _o] = Se(!1), [ma, ga] = Se(null), ls = {
|
|
17451
17451
|
nuevos: "cotizaciones",
|
|
17452
17452
|
pruebas: "pruebademanejo",
|
|
17453
17453
|
servicio: "citasservicio",
|
|
17454
17454
|
seminuevos: "seminuevos"
|
|
17455
|
-
}, va = (N,
|
|
17455
|
+
}, va = (N, ve) => {
|
|
17456
17456
|
const Oe = N.SolID;
|
|
17457
17457
|
if (!Oe) return;
|
|
17458
|
-
const tt =
|
|
17458
|
+
const tt = ve.kind, rt = ls[tt] ?? "cotizaciones", Ot = `https://qa2.crm.netcar.com.mx/netcar/${rt}/${Oe}`, bn = b?.({
|
|
17459
17459
|
row: N,
|
|
17460
|
-
section:
|
|
17460
|
+
section: ve,
|
|
17461
17461
|
slug: rt,
|
|
17462
17462
|
solId: Oe,
|
|
17463
17463
|
baseUrl: Ot
|
|
@@ -17528,7 +17528,7 @@ function gE({
|
|
|
17528
17528
|
width: "100%",
|
|
17529
17529
|
alignItems: "center",
|
|
17530
17530
|
children: /* @__PURE__ */ d.jsx(Q, { sx: { flex: 1, minWidth: 0, pr: 1 }, children: /* @__PURE__ */ d.jsxs(
|
|
17531
|
-
|
|
17531
|
+
Re,
|
|
17532
17532
|
{
|
|
17533
17533
|
component: "span",
|
|
17534
17534
|
fontWeight: 700,
|
|
@@ -17570,7 +17570,7 @@ function gE({
|
|
|
17570
17570
|
) })
|
|
17571
17571
|
}
|
|
17572
17572
|
),
|
|
17573
|
-
W.map((N,
|
|
17573
|
+
W.map((N, ve) => /* @__PURE__ */ d.jsxs(
|
|
17574
17574
|
Q,
|
|
17575
17575
|
{
|
|
17576
17576
|
sx: {
|
|
@@ -17585,7 +17585,7 @@ function gE({
|
|
|
17585
17585
|
children: [
|
|
17586
17586
|
N.icon,
|
|
17587
17587
|
/* @__PURE__ */ d.jsx(
|
|
17588
|
-
|
|
17588
|
+
Re,
|
|
17589
17589
|
{
|
|
17590
17590
|
variant: "body2",
|
|
17591
17591
|
sx: {
|
|
@@ -17597,12 +17597,12 @@ function gE({
|
|
|
17597
17597
|
)
|
|
17598
17598
|
]
|
|
17599
17599
|
},
|
|
17600
|
-
|
|
17600
|
+
ve
|
|
17601
17601
|
))
|
|
17602
17602
|
] })
|
|
17603
17603
|
}
|
|
17604
17604
|
),
|
|
17605
|
-
/* @__PURE__ */ d.jsx(pr, { mb: 2, sx: { px: 2.5, pt: 0, gap: 2 }, children: r.map((N,
|
|
17605
|
+
/* @__PURE__ */ d.jsx(pr, { mb: 2, sx: { px: 2.5, pt: 0, gap: 2 }, children: r.map((N, ve) => {
|
|
17606
17606
|
const Oe = N.label?.toLowerCase().startsWith("asesor");
|
|
17607
17607
|
return /* @__PURE__ */ d.jsxs(
|
|
17608
17608
|
Q,
|
|
@@ -17612,7 +17612,7 @@ function gE({
|
|
|
17612
17612
|
alignItems: "center",
|
|
17613
17613
|
children: [
|
|
17614
17614
|
/* @__PURE__ */ d.jsx(Q, { sx: { width: "50%" }, children: /* @__PURE__ */ d.jsx(
|
|
17615
|
-
|
|
17615
|
+
Re,
|
|
17616
17616
|
{
|
|
17617
17617
|
variant: "body2",
|
|
17618
17618
|
color: "text.secondary",
|
|
@@ -17631,7 +17631,7 @@ function gE({
|
|
|
17631
17631
|
},
|
|
17632
17632
|
children: [
|
|
17633
17633
|
/* @__PURE__ */ d.jsx("div", { children: N?.avatar ? N.avatar(t) : null }),
|
|
17634
|
-
/* @__PURE__ */ d.jsx(
|
|
17634
|
+
/* @__PURE__ */ d.jsx(Re, { variant: "body2", color: "textPrimary", children: N?.value(t) }),
|
|
17635
17635
|
Oe && /* @__PURE__ */ d.jsx(
|
|
17636
17636
|
$a,
|
|
17637
17637
|
{
|
|
@@ -17661,12 +17661,12 @@ function gE({
|
|
|
17661
17661
|
)
|
|
17662
17662
|
]
|
|
17663
17663
|
},
|
|
17664
|
-
|
|
17664
|
+
ve
|
|
17665
17665
|
);
|
|
17666
17666
|
}) }),
|
|
17667
17667
|
/* @__PURE__ */ d.jsx(nn, { sx: { my: 2 } })
|
|
17668
17668
|
] }),
|
|
17669
|
-
/* @__PURE__ */ d.jsx(Q, { px: 2.5, pb: 0.5, children: /* @__PURE__ */ d.jsx(
|
|
17669
|
+
/* @__PURE__ */ d.jsx(Q, { px: 2.5, pb: 0.5, children: /* @__PURE__ */ d.jsx(Re, { fontWeight: 800, children: "Historial Actividad:" }) }),
|
|
17670
17670
|
/* @__PURE__ */ d.jsxs(
|
|
17671
17671
|
Q,
|
|
17672
17672
|
{
|
|
@@ -17682,10 +17682,10 @@ function gE({
|
|
|
17682
17682
|
maxHeight: { xs: "140px", md: "100%" }
|
|
17683
17683
|
},
|
|
17684
17684
|
children: [
|
|
17685
|
-
H.length === 0 && /* @__PURE__ */ d.jsx(
|
|
17685
|
+
H.length === 0 && /* @__PURE__ */ d.jsx(Re, { variant: "body2", color: "text.secondary", children: "Sin actividad registrada." }),
|
|
17686
17686
|
/* @__PURE__ */ d.jsxs(Q, { children: [
|
|
17687
|
-
H?.map((N,
|
|
17688
|
-
const Oe =
|
|
17687
|
+
H?.map((N, ve) => {
|
|
17688
|
+
const Oe = q(N), { bg: tt, color: rt } = F(N.TipoComentario), Ot = mE(N.Comentario || "");
|
|
17689
17689
|
return /* @__PURE__ */ d.jsxs(Q, { sx: { pb: 1.5 }, children: [
|
|
17690
17690
|
/* @__PURE__ */ d.jsxs(
|
|
17691
17691
|
pr,
|
|
@@ -17696,7 +17696,7 @@ function gE({
|
|
|
17696
17696
|
justifyContent: "space-between",
|
|
17697
17697
|
sx: { mb: 0.75 },
|
|
17698
17698
|
children: [
|
|
17699
|
-
/* @__PURE__ */ d.jsx(
|
|
17699
|
+
/* @__PURE__ */ d.jsx(Re, { variant: "subtitle2", sx: { color: "#5C6372" }, children: N.TipoComentario || "Evento" }),
|
|
17700
17700
|
/* @__PURE__ */ d.jsx(
|
|
17701
17701
|
Io,
|
|
17702
17702
|
{
|
|
@@ -17709,7 +17709,7 @@ function gE({
|
|
|
17709
17709
|
}
|
|
17710
17710
|
),
|
|
17711
17711
|
Ot ? /* @__PURE__ */ d.jsx(
|
|
17712
|
-
|
|
17712
|
+
Re,
|
|
17713
17713
|
{
|
|
17714
17714
|
variant: "body2",
|
|
17715
17715
|
color: "text.secondary",
|
|
@@ -17749,12 +17749,12 @@ function gE({
|
|
|
17749
17749
|
}
|
|
17750
17750
|
),
|
|
17751
17751
|
/* @__PURE__ */ d.jsxs(pr, { spacing: 0, children: [
|
|
17752
|
-
/* @__PURE__ */ d.jsx(
|
|
17753
|
-
/* @__PURE__ */ d.jsx(
|
|
17752
|
+
/* @__PURE__ */ d.jsx(Re, { variant: "body2", fontWeight: 600, children: Oe }),
|
|
17753
|
+
/* @__PURE__ */ d.jsx(Re, { variant: "caption", color: "text.secondary", children: hE(N.FecAlta) })
|
|
17754
17754
|
] })
|
|
17755
17755
|
] }),
|
|
17756
|
-
|
|
17757
|
-
] }, N.SegID ??
|
|
17756
|
+
ve < M.length - 1 && /* @__PURE__ */ d.jsx(nn, { sx: { mt: 1.25 } })
|
|
17757
|
+
] }, N.SegID ?? ve);
|
|
17758
17758
|
}),
|
|
17759
17759
|
M.length > k && /* @__PURE__ */ d.jsx(Q, { sx: { mt: 1 }, children: /* @__PURE__ */ d.jsx(
|
|
17760
17760
|
Rt,
|
|
@@ -17817,8 +17817,8 @@ function gE({
|
|
|
17817
17817
|
}
|
|
17818
17818
|
),
|
|
17819
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(
|
|
17821
|
-
O.map((N,
|
|
17820
|
+
O.length === 0 && /* @__PURE__ */ d.jsx(Q, { sx: { px: 1.5, py: 1 }, children: /* @__PURE__ */ d.jsx(Re, { variant: "body2", color: "text.secondary", children: "Sin registros" }) }),
|
|
17821
|
+
O.map((N, ve) => {
|
|
17822
17822
|
const Oe = lE(N), tt = cE(
|
|
17823
17823
|
N.FechaBaja ?? N.FechaAsignacion
|
|
17824
17824
|
);
|
|
@@ -17837,9 +17837,9 @@ function gE({
|
|
|
17837
17837
|
children: uE(Oe)
|
|
17838
17838
|
}
|
|
17839
17839
|
),
|
|
17840
|
-
/* @__PURE__ */ d.jsx(Q, { sx: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ d.jsx(
|
|
17840
|
+
/* @__PURE__ */ d.jsx(Q, { sx: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ d.jsx(Re, { variant: "body2", noWrap: !0, children: Oe }) }),
|
|
17841
17841
|
/* @__PURE__ */ d.jsx(
|
|
17842
|
-
|
|
17842
|
+
Re,
|
|
17843
17843
|
{
|
|
17844
17844
|
variant: "caption",
|
|
17845
17845
|
color: "text.secondary",
|
|
@@ -17847,7 +17847,7 @@ function gE({
|
|
|
17847
17847
|
children: tt
|
|
17848
17848
|
}
|
|
17849
17849
|
)
|
|
17850
|
-
] }) },
|
|
17850
|
+
] }) }, ve);
|
|
17851
17851
|
})
|
|
17852
17852
|
] })
|
|
17853
17853
|
]
|
|
@@ -17915,7 +17915,7 @@ function gE({
|
|
|
17915
17915
|
},
|
|
17916
17916
|
children: [
|
|
17917
17917
|
/* @__PURE__ */ d.jsx(
|
|
17918
|
-
|
|
17918
|
+
Re,
|
|
17919
17919
|
{
|
|
17920
17920
|
variant: "h4",
|
|
17921
17921
|
sx: {
|
|
@@ -17987,7 +17987,7 @@ function gE({
|
|
|
17987
17987
|
An,
|
|
17988
17988
|
{
|
|
17989
17989
|
label: /* @__PURE__ */ d.jsx(
|
|
17990
|
-
|
|
17990
|
+
Re,
|
|
17991
17991
|
{
|
|
17992
17992
|
sx: {
|
|
17993
17993
|
fontSize: 15,
|
|
@@ -18021,7 +18021,7 @@ function gE({
|
|
|
18021
18021
|
}
|
|
18022
18022
|
),
|
|
18023
18023
|
/* @__PURE__ */ d.jsx(
|
|
18024
|
-
|
|
18024
|
+
Re,
|
|
18025
18025
|
{
|
|
18026
18026
|
sx: {
|
|
18027
18027
|
fontSize: 15,
|
|
@@ -18083,7 +18083,7 @@ function gE({
|
|
|
18083
18083
|
Rt,
|
|
18084
18084
|
{
|
|
18085
18085
|
variant: "outlined",
|
|
18086
|
-
onClick:
|
|
18086
|
+
onClick: Te,
|
|
18087
18087
|
disableRipple: !0,
|
|
18088
18088
|
sx: {
|
|
18089
18089
|
height: 40,
|
|
@@ -18163,7 +18163,7 @@ function gE({
|
|
|
18163
18163
|
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
18164
18164
|
children: /* @__PURE__ */ d.jsxs(pr, { spacing: 1.5, paddingX: 1.5, paddingY: 1, children: [
|
|
18165
18165
|
/* @__PURE__ */ d.jsx(
|
|
18166
|
-
|
|
18166
|
+
Re,
|
|
18167
18167
|
{
|
|
18168
18168
|
variant: "subtitle2",
|
|
18169
18169
|
sx: { fontWeight: 700, color: "#070C10" },
|
|
@@ -18172,7 +18172,7 @@ function gE({
|
|
|
18172
18172
|
),
|
|
18173
18173
|
/* @__PURE__ */ d.jsxs(Q, { children: [
|
|
18174
18174
|
/* @__PURE__ */ d.jsx(
|
|
18175
|
-
|
|
18175
|
+
Re,
|
|
18176
18176
|
{
|
|
18177
18177
|
variant: "body2",
|
|
18178
18178
|
sx: { fontWeight: 700, mb: 0.5, color: "#5C6372" },
|
|
@@ -18227,7 +18227,7 @@ function gE({
|
|
|
18227
18227
|
] }),
|
|
18228
18228
|
/* @__PURE__ */ d.jsxs(Q, { children: [
|
|
18229
18229
|
/* @__PURE__ */ d.jsx(
|
|
18230
|
-
|
|
18230
|
+
Re,
|
|
18231
18231
|
{
|
|
18232
18232
|
variant: "body2",
|
|
18233
18233
|
sx: { fontWeight: 700, mb: 0.5, color: "#5C6372" },
|
|
@@ -18237,8 +18237,8 @@ function gE({
|
|
|
18237
18237
|
/* @__PURE__ */ d.jsx(
|
|
18238
18238
|
Ws,
|
|
18239
18239
|
{
|
|
18240
|
-
value:
|
|
18241
|
-
onChange: (N) =>
|
|
18240
|
+
value: Z,
|
|
18241
|
+
onChange: (N) => me(N.target.value),
|
|
18242
18242
|
sx: {
|
|
18243
18243
|
"& .MuiFormControlLabel-root": {
|
|
18244
18244
|
m: 0,
|
|
@@ -18320,8 +18320,8 @@ function Gd(e, n, t) {
|
|
|
18320
18320
|
header: a.email ?? "Correo",
|
|
18321
18321
|
accessor: (F) => F[r.email],
|
|
18322
18322
|
cell: i.email ?? ((F) => {
|
|
18323
|
-
const
|
|
18324
|
-
return
|
|
18323
|
+
const q = String(F[r.email] ?? "");
|
|
18324
|
+
return q ? /* @__PURE__ */ d.jsx("a", { href: `mailto:${q}`, children: q }) : /* @__PURE__ */ d.jsx("span", { className: "text-muted", children: "—" });
|
|
18325
18325
|
}),
|
|
18326
18326
|
width: 230
|
|
18327
18327
|
},
|
|
@@ -18329,7 +18329,7 @@ function Gd(e, n, t) {
|
|
|
18329
18329
|
key: "acciones",
|
|
18330
18330
|
header: "",
|
|
18331
18331
|
cell: i.acciones ?? ((F) => {
|
|
18332
|
-
const
|
|
18332
|
+
const q = Fs(u.whatsapp, F, !0), v = Fs(u.email, F, !0), M = Fs(u.view, F, !0), A = p.phone?.(F), $ = p.email?.(F), H = (he) => {
|
|
18333
18333
|
if (he.stopPropagation(), f.onWhatsApp)
|
|
18334
18334
|
return f.onWhatsApp(F);
|
|
18335
18335
|
if (!A) return;
|
|
@@ -18343,7 +18343,7 @@ function Gd(e, n, t) {
|
|
|
18343
18343
|
he.stopPropagation(), f.onView && f.onView(F);
|
|
18344
18344
|
};
|
|
18345
18345
|
return /* @__PURE__ */ d.jsxs("div", { className: m, children: [
|
|
18346
|
-
|
|
18346
|
+
q && /* @__PURE__ */ d.jsx(
|
|
18347
18347
|
"button",
|
|
18348
18348
|
{
|
|
18349
18349
|
type: "button",
|
|
@@ -18394,7 +18394,7 @@ function Gd(e, n, t) {
|
|
|
18394
18394
|
new Set(o.map((F) => String(F)).filter((F) => w.has(F)))
|
|
18395
18395
|
), O = _.filter((F) => !D.includes(F)), z = [...D, ...O], W = "acciones";
|
|
18396
18396
|
if (w.has(W)) {
|
|
18397
|
-
const F = z.filter((
|
|
18397
|
+
const F = z.filter((q) => q !== W);
|
|
18398
18398
|
z.splice(0, z.length, ...F, W);
|
|
18399
18399
|
}
|
|
18400
18400
|
return z.map((F) => w.get(F));
|
|
@@ -18426,7 +18426,7 @@ function i5(e) {
|
|
|
18426
18426
|
onCreateSolicitud: O,
|
|
18427
18427
|
isCrmMode: z,
|
|
18428
18428
|
onSolicitudBaseUrl: W
|
|
18429
|
-
} = e, [F,
|
|
18429
|
+
} = e, [F, q] = Se(o ?? null), [v, M] = Se({
|
|
18430
18430
|
open: !1,
|
|
18431
18431
|
customer: null
|
|
18432
18432
|
}), [A, $] = Se([]), H = (U) => {
|
|
@@ -18939,7 +18939,7 @@ const EE = yt(/* @__PURE__ */ d.jsx("path", {
|
|
|
18939
18939
|
)
|
|
18940
18940
|
] }),
|
|
18941
18941
|
/* @__PURE__ */ d.jsxs(Q, { sx: { display: "flex", alignItems: "center", gap: 1.25, justifyContent: { xs: "center", sm: "flex-start" }, mt: { xs: 1, sm: 0 } }, children: [
|
|
18942
|
-
/* @__PURE__ */ d.jsx(
|
|
18942
|
+
/* @__PURE__ */ d.jsx(Re, { variant: "body2", children: "Mostrar" }),
|
|
18943
18943
|
/* @__PURE__ */ d.jsx(nf, { size: "small", sx: { minWidth: 72 }, children: /* @__PURE__ */ d.jsx(
|
|
18944
18944
|
rf,
|
|
18945
18945
|
{
|
|
@@ -18949,7 +18949,7 @@ const EE = yt(/* @__PURE__ */ d.jsx("path", {
|
|
|
18949
18949
|
children: a.map((m) => /* @__PURE__ */ d.jsx(Hs, { value: m, children: m === "Todos" ? "Todos" : m }, String(m)))
|
|
18950
18950
|
}
|
|
18951
18951
|
) }),
|
|
18952
|
-
/* @__PURE__ */ d.jsx(
|
|
18952
|
+
/* @__PURE__ */ d.jsx(Re, { variant: "body2", children: "por página" })
|
|
18953
18953
|
] })
|
|
18954
18954
|
]
|
|
18955
18955
|
}
|
|
@@ -18988,18 +18988,18 @@ function s5(e) {
|
|
|
18988
18988
|
i && b.reset(i);
|
|
18989
18989
|
}, [i, b]);
|
|
18990
18990
|
const [k, w] = Se(""), [_, D] = Se(y), O = Array.isArray(g) && !!m, z = O ? g : _, W = (I) => {
|
|
18991
|
-
const
|
|
18992
|
-
O ? m(
|
|
18991
|
+
const Z = typeof I == "function" ? I(z) : I;
|
|
18992
|
+
O ? m(Z) : D(Z);
|
|
18993
18993
|
}, F = E.useCallback(
|
|
18994
18994
|
(I) => f ? f(I) : I?.IdAuto,
|
|
18995
18995
|
[f]
|
|
18996
|
-
),
|
|
18996
|
+
), q = Je(() => {
|
|
18997
18997
|
const I = /* @__PURE__ */ new Map();
|
|
18998
|
-
return (l ?? []).forEach((
|
|
18998
|
+
return (l ?? []).forEach((Z, me) => I.set(F(Z), me)), I;
|
|
18999
18999
|
}, [l, F]), v = Zr(/* @__PURE__ */ new Set()), M = Je(() => {
|
|
19000
19000
|
const I = /* @__PURE__ */ new Map();
|
|
19001
19001
|
return (l ?? []).forEach(
|
|
19002
|
-
(
|
|
19002
|
+
(Z) => I.set(f ? f(Z) : Z?.IdAuto, Z)
|
|
19003
19003
|
), I;
|
|
19004
19004
|
}, [l, f]), A = Je(
|
|
19005
19005
|
() => (r ?? []).filter((I) => !!I.required).map((I) => I.name),
|
|
@@ -19010,19 +19010,19 @@ function s5(e) {
|
|
|
19010
19010
|
}), 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]), {
|
|
19011
19011
|
handleSubmit: ee,
|
|
19012
19012
|
formState: { isSubmitting: he, isDirty: B, isValid: U }
|
|
19013
|
-
} = b, ie = u ?? ((I,
|
|
19013
|
+
} = b, ie = u ?? ((I, Z) => JSON.stringify(I).toLowerCase().includes(Z.toLowerCase())), se = Je(
|
|
19014
19014
|
() => k.trim() ? l?.filter((I) => ie(I, k)) : l,
|
|
19015
19015
|
[l, k, ie]
|
|
19016
19016
|
), fe = Je(() => {
|
|
19017
19017
|
if (!se) return se;
|
|
19018
|
-
const I = v.current,
|
|
19019
|
-
return
|
|
19020
|
-
const P = I.has(F(
|
|
19018
|
+
const I = v.current, Z = [...se];
|
|
19019
|
+
return Z.sort((me, Te) => {
|
|
19020
|
+
const P = I.has(F(me)) ? 0 : 1, G = I.has(F(Te)) ? 0 : 1;
|
|
19021
19021
|
if (P !== G) return P - G;
|
|
19022
|
-
const
|
|
19023
|
-
return
|
|
19024
|
-
}),
|
|
19025
|
-
}, [se,
|
|
19022
|
+
const ge = q.get(F(me)) ?? 0, Ye = q.get(F(Te)) ?? 0;
|
|
19023
|
+
return ge - Ye;
|
|
19024
|
+
}), Z;
|
|
19025
|
+
}, [se, q, F]), {
|
|
19026
19026
|
currentItems: pe,
|
|
19027
19027
|
totalPages: de,
|
|
19028
19028
|
showingFrom: ue,
|
|
@@ -19040,24 +19040,34 @@ function s5(e) {
|
|
|
19040
19040
|
scrollTop: () => {
|
|
19041
19041
|
}
|
|
19042
19042
|
}), _e = (I) => {
|
|
19043
|
-
const
|
|
19043
|
+
const Z = M.get(I) ?? null;
|
|
19044
19044
|
W([I]), h?.({
|
|
19045
|
-
items:
|
|
19045
|
+
items: Z
|
|
19046
19046
|
});
|
|
19047
19047
|
}, Ee = (I) => z.includes(I), xt = async (I) => {
|
|
19048
19048
|
try {
|
|
19049
19049
|
await o?.(I), b.reset(b.getValues());
|
|
19050
|
-
} catch (
|
|
19051
|
-
console.error("Error al enviar AddCliente:",
|
|
19050
|
+
} catch (Z) {
|
|
19051
|
+
console.error("Error al enviar AddCliente:", Z);
|
|
19052
19052
|
}
|
|
19053
19053
|
}, wt = Je(() => {
|
|
19054
19054
|
const I = /* @__PURE__ */ new Map();
|
|
19055
|
-
return (r ?? []).forEach((
|
|
19056
|
-
}, [r]), ct = (I,
|
|
19057
|
-
|
|
19058
|
-
|
|
19059
|
-
|
|
19060
|
-
|
|
19055
|
+
return (r ?? []).forEach((Z) => I.set(String(Z.name), Z)), I;
|
|
19056
|
+
}, [r]), ct = (I, Z) => {
|
|
19057
|
+
console.group("Inicia group"), console.log("renderByName name", I), console.log("renderByName grid", Z), console.groupEnd();
|
|
19058
|
+
const me = wt.get(String(I));
|
|
19059
|
+
if (console.log("def", me), !me) return null;
|
|
19060
|
+
const Te = { xs: 12, ...me.grid, ...Z || {} };
|
|
19061
|
+
return console.log("finalGrid", Te), /* @__PURE__ */ d.jsx(
|
|
19062
|
+
ze,
|
|
19063
|
+
{
|
|
19064
|
+
item: !0,
|
|
19065
|
+
...Te,
|
|
19066
|
+
className: "0-renderByName",
|
|
19067
|
+
children: me.render ? me.render(b) : Qd(me, b)
|
|
19068
|
+
},
|
|
19069
|
+
`fld-${String(I)}`
|
|
19070
|
+
);
|
|
19061
19071
|
}, 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;
|
|
19062
19072
|
return /* @__PURE__ */ d.jsx(
|
|
19063
19073
|
Cc,
|
|
@@ -19107,8 +19117,8 @@ function s5(e) {
|
|
|
19107
19117
|
paddingBottom: 3,
|
|
19108
19118
|
mx: { xs: 0, md: c ? "auto" : 0 },
|
|
19109
19119
|
"& .form-body": {
|
|
19110
|
-
maxWidth:
|
|
19111
|
-
margin: "0
|
|
19120
|
+
maxWidth: "unset",
|
|
19121
|
+
margin: "0"
|
|
19112
19122
|
},
|
|
19113
19123
|
position: "relative"
|
|
19114
19124
|
},
|
|
@@ -19125,7 +19135,7 @@ function s5(e) {
|
|
|
19125
19135
|
}
|
|
19126
19136
|
},
|
|
19127
19137
|
children: [
|
|
19128
|
-
/* @__PURE__ */ d.jsx(
|
|
19138
|
+
/* @__PURE__ */ d.jsx(Re, { fontWeight: 700, fontSize: 20, children: t.title }),
|
|
19129
19139
|
/* @__PURE__ */ d.jsxs(
|
|
19130
19140
|
Q,
|
|
19131
19141
|
{
|
|
@@ -19136,7 +19146,7 @@ function s5(e) {
|
|
|
19136
19146
|
paddingBottom: 10
|
|
19137
19147
|
},
|
|
19138
19148
|
children: [
|
|
19139
|
-
/* @__PURE__ */ d.jsx(
|
|
19149
|
+
/* @__PURE__ */ d.jsx(Re, { fontSize: "18px", mt: 2.5, fontWeight: 500, children: t.subTitle }),
|
|
19140
19150
|
/* @__PURE__ */ d.jsx(
|
|
19141
19151
|
Q,
|
|
19142
19152
|
{
|
|
@@ -19145,7 +19155,7 @@ function s5(e) {
|
|
|
19145
19155
|
flexDirection: "column",
|
|
19146
19156
|
width: "100%",
|
|
19147
19157
|
gap: 2,
|
|
19148
|
-
children: Array.isArray(e.formLayout) && c ? e.formLayout.map((I,
|
|
19158
|
+
children: Array.isArray(e.formLayout) && c ? e.formLayout.map((I, Z) => /* @__PURE__ */ d.jsx(
|
|
19149
19159
|
ze,
|
|
19150
19160
|
{
|
|
19151
19161
|
container: !0,
|
|
@@ -19153,18 +19163,18 @@ function s5(e) {
|
|
|
19153
19163
|
alignItems: "flex-start",
|
|
19154
19164
|
wrap: "wrap",
|
|
19155
19165
|
width: "100%",
|
|
19156
|
-
children: I.map((
|
|
19157
|
-
const P = typeof
|
|
19166
|
+
children: I.map((me, Te) => {
|
|
19167
|
+
const P = typeof me == "string" ? { name: me } : me;
|
|
19158
19168
|
return P.hidden?.(b) ? null : ct(
|
|
19159
19169
|
P.name,
|
|
19160
19170
|
P.grid
|
|
19161
19171
|
);
|
|
19162
19172
|
})
|
|
19163
19173
|
},
|
|
19164
|
-
`row-${
|
|
19165
|
-
)) : /* @__PURE__ */ d.jsx(ze, { container: !0, spacing: 2, width: "100%", children: r?.map((I,
|
|
19166
|
-
const
|
|
19167
|
-
return /* @__PURE__ */ d.jsx(ze, { item: !0, ...
|
|
19174
|
+
`row-${Z}`
|
|
19175
|
+
)) : /* @__PURE__ */ d.jsx(ze, { container: !0, spacing: 2, width: "100%", children: r?.map((I, Z) => {
|
|
19176
|
+
const me = I.grid ?? { xs: 12, md: 12 };
|
|
19177
|
+
return /* @__PURE__ */ d.jsx(ze, { item: !0, ...me, children: I.render ? I.render(b) : Qd(I, b) }, `${String(I.name)}-${Z}`);
|
|
19168
19178
|
}) })
|
|
19169
19179
|
}
|
|
19170
19180
|
)
|
|
@@ -19188,12 +19198,14 @@ function s5(e) {
|
|
|
19188
19198
|
p: 1,
|
|
19189
19199
|
backgroundColor: "#fff"
|
|
19190
19200
|
},
|
|
19191
|
-
children: /* @__PURE__ */ d.jsx(
|
|
19201
|
+
children: /* @__PURE__ */ d.jsx(Q, { display: "flex", alignItems: "center", children: /* @__PURE__ */ d.jsx(
|
|
19192
19202
|
Q,
|
|
19193
19203
|
{
|
|
19194
19204
|
display: "flex",
|
|
19195
|
-
|
|
19196
|
-
|
|
19205
|
+
gap: 1.5,
|
|
19206
|
+
width: "100%",
|
|
19207
|
+
justifyContent: c ? "flex-end" : "center",
|
|
19208
|
+
children: /* @__PURE__ */ d.jsx(
|
|
19197
19209
|
Rt,
|
|
19198
19210
|
{
|
|
19199
19211
|
type: "submit",
|
|
@@ -19212,9 +19224,9 @@ function s5(e) {
|
|
|
19212
19224
|
},
|
|
19213
19225
|
children: s
|
|
19214
19226
|
}
|
|
19215
|
-
)
|
|
19227
|
+
)
|
|
19216
19228
|
}
|
|
19217
|
-
)
|
|
19229
|
+
) })
|
|
19218
19230
|
}
|
|
19219
19231
|
)
|
|
19220
19232
|
]
|
|
@@ -19379,8 +19391,8 @@ function s5(e) {
|
|
|
19379
19391
|
disablePadding: !0,
|
|
19380
19392
|
sx: { borderColor: "transparent", padding: 0 },
|
|
19381
19393
|
children: [
|
|
19382
|
-
pe?.map((I,
|
|
19383
|
-
const
|
|
19394
|
+
pe?.map((I, Z) => {
|
|
19395
|
+
const me = f ? f(I) : Z, Te = Ee(me);
|
|
19384
19396
|
return /* @__PURE__ */ d.jsx(
|
|
19385
19397
|
Q,
|
|
19386
19398
|
{
|
|
@@ -19396,7 +19408,7 @@ function s5(e) {
|
|
|
19396
19408
|
children: /* @__PURE__ */ d.jsx(
|
|
19397
19409
|
tf,
|
|
19398
19410
|
{
|
|
19399
|
-
onClick: () => _e(
|
|
19411
|
+
onClick: () => _e(me),
|
|
19400
19412
|
disableRipple: !0,
|
|
19401
19413
|
sx: { padding: 0 },
|
|
19402
19414
|
children: /* @__PURE__ */ d.jsx(
|
|
@@ -19405,9 +19417,9 @@ function s5(e) {
|
|
|
19405
19417
|
disableTypography: !0,
|
|
19406
19418
|
primary: p ? p({
|
|
19407
19419
|
item: I,
|
|
19408
|
-
selected:
|
|
19409
|
-
toggle: () => _e(
|
|
19410
|
-
index:
|
|
19420
|
+
selected: Te,
|
|
19421
|
+
toggle: () => _e(me),
|
|
19422
|
+
index: Z
|
|
19411
19423
|
}) : null
|
|
19412
19424
|
}
|
|
19413
19425
|
)
|
|
@@ -19416,10 +19428,10 @@ function s5(e) {
|
|
|
19416
19428
|
}
|
|
19417
19429
|
)
|
|
19418
19430
|
},
|
|
19419
|
-
`${String(
|
|
19431
|
+
`${String(me)}`
|
|
19420
19432
|
);
|
|
19421
19433
|
}),
|
|
19422
|
-
!pe?.length && /* @__PURE__ */ d.jsx(Q, { p: 3, children: /* @__PURE__ */ d.jsxs(
|
|
19434
|
+
!pe?.length && /* @__PURE__ */ d.jsx(Q, { p: 3, children: /* @__PURE__ */ d.jsxs(Re, { fontSize: 14, color: "#5C6372", children: [
|
|
19423
19435
|
"Sin resultados para “",
|
|
19424
19436
|
k,
|
|
19425
19437
|
"”."
|
|
@@ -19501,28 +19513,28 @@ function c5({
|
|
|
19501
19513
|
e && !P && y("entering"), !e && P && y("exiting"), x.current = e;
|
|
19502
19514
|
}, [e]), Ct(() => {
|
|
19503
19515
|
if (h === "entering") {
|
|
19504
|
-
const
|
|
19505
|
-
return () => clearTimeout(
|
|
19516
|
+
const ge = setTimeout(() => y("idle"), 320);
|
|
19517
|
+
return () => clearTimeout(ge);
|
|
19506
19518
|
}
|
|
19507
19519
|
if (h === "exiting") {
|
|
19508
|
-
const
|
|
19509
|
-
return () => clearTimeout(
|
|
19520
|
+
const ge = setTimeout(() => y("idle"), 220);
|
|
19521
|
+
return () => clearTimeout(ge);
|
|
19510
19522
|
}
|
|
19511
19523
|
}, [h]);
|
|
19512
|
-
const [b, k] = Se(""), [w, _] = Se(!1), [D, O] = Se(!1), [z, W] = Se(!1), [F,
|
|
19513
|
-
M([...t.selectedIds]),
|
|
19524
|
+
const [b, k] = Se(""), [w, _] = Se(!1), [D, O] = Se(!1), [z, W] = Se(!1), [F, q] = Se(""), [v, M] = Se([]), A = z ? v : t.selectedIds, $ = () => {
|
|
19525
|
+
M([...t.selectedIds]), q(""), W(!0);
|
|
19514
19526
|
}, H = () => {
|
|
19515
19527
|
W(!1), M([]);
|
|
19516
19528
|
}, X = () => {
|
|
19517
19529
|
const P = new Set(
|
|
19518
19530
|
wt.map(
|
|
19519
|
-
(
|
|
19531
|
+
(ge, Ye) => String(vr(ge, Ye, p.id))
|
|
19520
19532
|
)
|
|
19521
|
-
), G = v.filter((
|
|
19533
|
+
), G = v.filter((ge) => P.has(String(ge)));
|
|
19522
19534
|
r({ ...t, selectedIds: G }), W(!1);
|
|
19523
19535
|
}, ee = (P, G) => rn(P ?? "") === rn(G ?? "");
|
|
19524
|
-
function he(P, G,
|
|
19525
|
-
const At = G ? P.some((or) => ee(or, G)) : !1, Lr =
|
|
19536
|
+
function he(P, G, ge, Ye, Tt) {
|
|
19537
|
+
const At = G ? P.some((or) => ee(or, G)) : !1, Lr = ge.length > 0 ? ge.some((or) => P.some((vn) => ee(vn, or))) : !1;
|
|
19526
19538
|
Ye(At), Tt(Lr);
|
|
19527
19539
|
}
|
|
19528
19540
|
const B = (P) => {
|
|
@@ -19578,19 +19590,19 @@ function c5({
|
|
|
19578
19590
|
e || (xe.current = !1);
|
|
19579
19591
|
}, [e, w, D, pe, ue]);
|
|
19580
19592
|
const ke = (P) => {
|
|
19581
|
-
const G = de.find((
|
|
19593
|
+
const G = de.find((ge) => rn(ge.EmailAsesor ?? "") === rn(P));
|
|
19582
19594
|
if (G) {
|
|
19583
19595
|
if (G.ImgAsesor)
|
|
19584
19596
|
return /* @__PURE__ */ d.jsx(Qn, { src: G.ImgAsesor, alt: G.NombreAsesor });
|
|
19585
|
-
const
|
|
19586
|
-
return /* @__PURE__ */ d.jsx(Qn, { children: `${
|
|
19597
|
+
const ge = (G.NombreAsesor || "").trim(), Ye = (G.ApellidosAsesor || "").trim();
|
|
19598
|
+
return /* @__PURE__ */ d.jsx(Qn, { children: `${ge[0] ?? ""}${Ye[0] ?? ""}`.toUpperCase() });
|
|
19587
19599
|
}
|
|
19588
19600
|
return /* @__PURE__ */ d.jsx(Qn, { children: P[0]?.toUpperCase() });
|
|
19589
19601
|
}, ye = () => {
|
|
19590
19602
|
const P = b.trim();
|
|
19591
19603
|
if (!P) return;
|
|
19592
|
-
const
|
|
19593
|
-
|
|
19604
|
+
const ge = P.split(Na).filter(Boolean).filter((Ye) => Bs.test(Ye));
|
|
19605
|
+
ge.length > 0 && B((Ye) => en(Ye, ge)), k("");
|
|
19594
19606
|
}, oe = (P) => {
|
|
19595
19607
|
_(P), B(
|
|
19596
19608
|
(G) => P && pe ? en(G, [pe]) : Xd(G, pe)
|
|
@@ -19601,9 +19613,9 @@ function c5({
|
|
|
19601
19613
|
);
|
|
19602
19614
|
}, ne = (P) => {
|
|
19603
19615
|
const G = Array.from(P.target.files || []);
|
|
19604
|
-
ie(G.map((
|
|
19616
|
+
ie(G.map((ge) => ({ name: ge.name, size: ge.size, file: ge }))), P.target.value = "";
|
|
19605
19617
|
}, Ce = A[0], _e = Je(() => !i || Ce === void 0 ? void 0 : i.find(
|
|
19606
|
-
(G,
|
|
19618
|
+
(G, ge) => String(vr(G, ge, p.id)) === String(Ce)
|
|
19607
19619
|
), [i, Ce, p.id]), Ee = Je(() => {
|
|
19608
19620
|
if (!(!_e || !p.distributorId))
|
|
19609
19621
|
return vr(_e, 0, p.distributorId);
|
|
@@ -19612,21 +19624,21 @@ function c5({
|
|
|
19612
19624
|
const xt = Je(() => _e ? (p.distributorTitle ? vr(_e, 0, p.distributorTitle) : void 0) ?? (Ee != null ? String(Ee) : void 0) : void 0, [_e, p.distributorTitle, Ee]), wt = Je(() => {
|
|
19613
19625
|
const P = i ?? [];
|
|
19614
19626
|
return Ee == null || !p.distributorId ? P : P.filter(
|
|
19615
|
-
(G,
|
|
19627
|
+
(G, ge) => vr(G, ge, p.distributorId) == Ee
|
|
19616
19628
|
);
|
|
19617
19629
|
}, [i, Ee, p.distributorId]), ct = Je(() => {
|
|
19618
19630
|
if (!F.trim()) return wt;
|
|
19619
19631
|
const P = F.toLowerCase();
|
|
19620
19632
|
return wt.filter(
|
|
19621
19633
|
(G) => (c ?? []).some(
|
|
19622
|
-
(
|
|
19634
|
+
(ge) => String(G?.[ge] ?? "").toLowerCase().includes(P)
|
|
19623
19635
|
)
|
|
19624
19636
|
);
|
|
19625
19637
|
}, [wt, F, c]), S = Je(() => {
|
|
19626
19638
|
if (!i || !t.selectedIds.length) return [];
|
|
19627
19639
|
const P = /* @__PURE__ */ new Map();
|
|
19628
|
-
return i.forEach((G,
|
|
19629
|
-
P.set(String(vr(G,
|
|
19640
|
+
return i.forEach((G, ge) => {
|
|
19641
|
+
P.set(String(vr(G, ge, p.id)), G);
|
|
19630
19642
|
}), t.selectedIds.map((G) => P.get(String(G))).filter(Boolean);
|
|
19631
19643
|
}, [i, t.selectedIds, p.id]), R = (P) => r({
|
|
19632
19644
|
...t,
|
|
@@ -19637,33 +19649,33 @@ function c5({
|
|
|
19637
19649
|
const At = b.split(Na).filter((Lr) => Bs.test(Lr));
|
|
19638
19650
|
P = en(P, At), B(P), k("");
|
|
19639
19651
|
}
|
|
19640
|
-
const G = w ? pe : "",
|
|
19652
|
+
const G = w ? pe : "", ge = de.find((At) => At?.Activo && At?.EmailAsesor)?.EmailAsesor?.trim() ?? "";
|
|
19641
19653
|
o?.({
|
|
19642
19654
|
recipients: P,
|
|
19643
19655
|
toClient: w,
|
|
19644
19656
|
toAdvisor: D,
|
|
19645
19657
|
tipoInt: w && D ? 2 : 1,
|
|
19646
19658
|
correoCliente: G,
|
|
19647
|
-
correoAsesor: D ?
|
|
19659
|
+
correoAsesor: D ? ge : "",
|
|
19648
19660
|
disIdLocked: Ee
|
|
19649
19661
|
}), n?.();
|
|
19650
19662
|
}, te = Je(() => {
|
|
19651
|
-
const G = b.split(Na).filter(Boolean).some((
|
|
19663
|
+
const G = b.split(Na).filter(Boolean).some((ge) => Bs.test(ge));
|
|
19652
19664
|
return t.recipients.length > 0 || G;
|
|
19653
|
-
}, [t.recipients, b]), J = (t.selectedIds?.length ?? 0) > 0, I = t.message.trim().length > 0,
|
|
19665
|
+
}, [t.recipients, b]), J = (t.selectedIds?.length ?? 0) > 0, I = t.message.trim().length > 0, Z = te && J && I, me = _c(), Te = Sc(me.breakpoints.down("sm"));
|
|
19654
19666
|
return /* @__PURE__ */ d.jsxs(
|
|
19655
19667
|
Mh,
|
|
19656
19668
|
{
|
|
19657
|
-
anchor:
|
|
19669
|
+
anchor: Te ? "bottom" : "right",
|
|
19658
19670
|
open: e,
|
|
19659
19671
|
onClose: n,
|
|
19660
19672
|
ModalProps: {
|
|
19661
19673
|
keepMounted: !0,
|
|
19662
|
-
BackdropProps: { invisible: !
|
|
19674
|
+
BackdropProps: { invisible: !Te }
|
|
19663
19675
|
},
|
|
19664
19676
|
transitionDuration: { enter: 320, exit: 220 },
|
|
19665
19677
|
SlideProps: {
|
|
19666
|
-
direction:
|
|
19678
|
+
direction: Te ? "up" : "left",
|
|
19667
19679
|
timeout: { enter: 320, exit: 220 },
|
|
19668
19680
|
easing: {
|
|
19669
19681
|
enter: "cubic-bezier(0.22, 1, 0.36, 1)",
|
|
@@ -19730,7 +19742,7 @@ function c5({
|
|
|
19730
19742
|
style: { width: 24, height: 18 }
|
|
19731
19743
|
}
|
|
19732
19744
|
) : null,
|
|
19733
|
-
/* @__PURE__ */ d.jsxs(
|
|
19745
|
+
/* @__PURE__ */ d.jsxs(Re, { fontWeight: 700, children: [
|
|
19734
19746
|
"Mensaje a",
|
|
19735
19747
|
" ",
|
|
19736
19748
|
a ? `${a.Nombre ?? ""} ${a.ApellidoP ?? ""} ${a.ApellidoM ?? ""}`.trim() : "—"
|
|
@@ -19790,8 +19802,8 @@ function c5({
|
|
|
19790
19802
|
},
|
|
19791
19803
|
onBlur: ye,
|
|
19792
19804
|
onPaste: (P) => {
|
|
19793
|
-
const
|
|
19794
|
-
|
|
19805
|
+
const ge = P.clipboardData.getData("text").split(Na).filter(Boolean);
|
|
19806
|
+
ge.length > 1 && (P.preventDefault(), B((Ye) => en(Ye, ge)), k(""));
|
|
19795
19807
|
},
|
|
19796
19808
|
placeholder: t.recipients.length ? "" : "correo@ejemplo.com",
|
|
19797
19809
|
style: {
|
|
@@ -19854,7 +19866,7 @@ function c5({
|
|
|
19854
19866
|
onClick: $,
|
|
19855
19867
|
children: [
|
|
19856
19868
|
/* @__PURE__ */ d.jsx(
|
|
19857
|
-
|
|
19869
|
+
Re,
|
|
19858
19870
|
{
|
|
19859
19871
|
fontSize: 12,
|
|
19860
19872
|
fontWeight: 600,
|
|
@@ -19867,11 +19879,11 @@ function c5({
|
|
|
19867
19879
|
}
|
|
19868
19880
|
),
|
|
19869
19881
|
S.length > 0 ? /* @__PURE__ */ d.jsx(Q, { sx: { mt: 1.5, display: "flex", gap: 1, flexWrap: "wrap" }, children: S.map((P, G) => {
|
|
19870
|
-
const
|
|
19882
|
+
const ge = vr(P, G, p.id), Ye = vr(P, G, p.title) ?? "", Tt = vr(P, G, p.image), At = IE(f, Tt);
|
|
19871
19883
|
return /* @__PURE__ */ d.jsx(
|
|
19872
19884
|
Io,
|
|
19873
19885
|
{
|
|
19874
|
-
onDelete: () => R(
|
|
19886
|
+
onDelete: () => R(ge),
|
|
19875
19887
|
label: /* @__PURE__ */ d.jsxs(
|
|
19876
19888
|
Q,
|
|
19877
19889
|
{
|
|
@@ -19926,9 +19938,9 @@ function c5({
|
|
|
19926
19938
|
},
|
|
19927
19939
|
variant: "outlined"
|
|
19928
19940
|
},
|
|
19929
|
-
String(
|
|
19941
|
+
String(ge)
|
|
19930
19942
|
);
|
|
19931
|
-
}) }) : /* @__PURE__ */ d.jsx(
|
|
19943
|
+
}) }) : /* @__PURE__ */ d.jsx(Re, { fontSize: 13, color: "#5C6372", sx: { mt: 0.5 }, children: "Aún no has seleccionado autos." })
|
|
19932
19944
|
] }),
|
|
19933
19945
|
/* @__PURE__ */ d.jsx(nn, {}),
|
|
19934
19946
|
/* @__PURE__ */ d.jsxs(Q, { sx: { p: 2 }, children: [
|
|
@@ -20045,7 +20057,7 @@ function c5({
|
|
|
20045
20057
|
{
|
|
20046
20058
|
variant: "contained",
|
|
20047
20059
|
onClick: L,
|
|
20048
|
-
disabled: !
|
|
20060
|
+
disabled: !Z,
|
|
20049
20061
|
sx: {
|
|
20050
20062
|
maxWidth: 146,
|
|
20051
20063
|
width: "100%",
|
|
@@ -20066,7 +20078,7 @@ function c5({
|
|
|
20066
20078
|
{
|
|
20067
20079
|
fullWidth: !0,
|
|
20068
20080
|
maxWidth: "sm",
|
|
20069
|
-
fullScreen:
|
|
20081
|
+
fullScreen: Te,
|
|
20070
20082
|
open: z,
|
|
20071
20083
|
onClose: H,
|
|
20072
20084
|
children: [
|
|
@@ -20094,20 +20106,20 @@ function c5({
|
|
|
20094
20106
|
fullWidth: !0,
|
|
20095
20107
|
size: "small",
|
|
20096
20108
|
value: F,
|
|
20097
|
-
onChange: (P) =>
|
|
20109
|
+
onChange: (P) => q(P.target.value),
|
|
20098
20110
|
sx: { mb: 2 }
|
|
20099
20111
|
}
|
|
20100
20112
|
),
|
|
20101
20113
|
xt != null && /* @__PURE__ */ d.jsx(Io, { size: "small", label: `Distribuidora: ${xt}` })
|
|
20102
20114
|
] }),
|
|
20103
|
-
/* @__PURE__ */ d.jsxs(
|
|
20115
|
+
/* @__PURE__ */ d.jsxs(Re, { variant: "caption", fontWeight: 600, children: [
|
|
20104
20116
|
"RESULTADOS (",
|
|
20105
20117
|
ct.length,
|
|
20106
20118
|
")"
|
|
20107
20119
|
] }),
|
|
20108
20120
|
/* @__PURE__ */ d.jsxs(Bo, { sx: { p: 0 }, children: [
|
|
20109
20121
|
ct.map((P, G) => {
|
|
20110
|
-
const
|
|
20122
|
+
const ge = vr(P, G, p.id), Ye = A.includes(String(ge)) || A.includes(ge), Tt = Ee == null || vr(P, G, p.distributorId) == Ee;
|
|
20111
20123
|
return /* @__PURE__ */ d.jsx(
|
|
20112
20124
|
Vo,
|
|
20113
20125
|
{
|
|
@@ -20116,7 +20128,7 @@ function c5({
|
|
|
20116
20128
|
children: /* @__PURE__ */ d.jsx(
|
|
20117
20129
|
Q,
|
|
20118
20130
|
{
|
|
20119
|
-
onClick: () => Tt && fe(
|
|
20131
|
+
onClick: () => Tt && fe(ge),
|
|
20120
20132
|
sx: {
|
|
20121
20133
|
cursor: Tt ? "pointer" : "not-allowed",
|
|
20122
20134
|
p: 0.5,
|
|
@@ -20128,10 +20140,10 @@ function c5({
|
|
|
20128
20140
|
}
|
|
20129
20141
|
)
|
|
20130
20142
|
},
|
|
20131
|
-
String(
|
|
20143
|
+
String(ge)
|
|
20132
20144
|
);
|
|
20133
20145
|
}),
|
|
20134
|
-
ct.length === 0 && /* @__PURE__ */ d.jsx(Q, { p: 2, children: /* @__PURE__ */ d.jsx(
|
|
20146
|
+
ct.length === 0 && /* @__PURE__ */ d.jsx(Q, { p: 2, children: /* @__PURE__ */ d.jsx(Re, { children: "Tu búsqueda no generó resultados" }) })
|
|
20135
20147
|
] })
|
|
20136
20148
|
] }),
|
|
20137
20149
|
/* @__PURE__ */ d.jsxs(Nh, { sx: { px: 3, pb: 2 }, children: [
|