componentes-exagono 0.1.73 → 0.1.75
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 +377 -374
- 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 G(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 ve = x.ReactCurrentOwner,
|
|
376
|
+
var ve = x.ReactCurrentOwner, Te = {
|
|
377
377
|
key: !0,
|
|
378
378
|
ref: !0,
|
|
379
379
|
__self: !0,
|
|
380
380
|
__source: !0
|
|
381
|
-
}, P,
|
|
381
|
+
}, P, Z;
|
|
382
382
|
function me(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,
|
|
398
|
+
function Tt(C, K) {
|
|
399
399
|
typeof C.ref == "string" && ve.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
|
-
|
|
415
|
+
Z || (Z = !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 && (G(le), Pe = "" + le), Ye(K) && (G(K.key), Pe = "" + K.key), me(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)
|
|
@@ -470,7 +470,7 @@ function rm() {
|
|
|
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
543
|
function ge(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]) {
|
|
@@ -622,11 +622,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
622
622
|
return C === r ? Oe(_t) : ge(_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 G = L(ae(r, S), te.argA, te.argB);
|
|
13052
|
+
J && qe(r, S, G);
|
|
13053
13053
|
}
|
|
13054
13054
|
if (I && Array.isArray(ae(t.errors, S))) {
|
|
13055
|
-
const
|
|
13056
|
-
J && qe(t.errors, S,
|
|
13055
|
+
const G = L(ae(t.errors, S), te.argA, te.argB);
|
|
13056
|
+
J && qe(t.errors, S, G), 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 G = L(ae(t.touchedFields, S), te.argA, te.argB);
|
|
13060
|
+
J && qe(t.touchedFields, S, G);
|
|
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,19 +13084,19 @@ 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,
|
|
13087
|
+
let I = !1, G = !1;
|
|
13088
13088
|
const ve = {
|
|
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) && (G = t.isDirty, t.isDirty = ve.isDirty = q(), I = G !== ve.isDirty);
|
|
13094
|
+
const Te = Hr(ae(o, S), R);
|
|
13095
|
+
G = !!ae(t.dirtyFields, S), Te ? St(t.dirtyFields, S) : qe(t.dirtyFields, S, !0), ve.dirtyFields = t.dirtyFields, I = I || (u.dirtyFields || f.dirtyFields) && G !== !Te;
|
|
13096
13096
|
}
|
|
13097
13097
|
if (L) {
|
|
13098
|
-
const
|
|
13099
|
-
|
|
13098
|
+
const Te = ae(t.touchedFields, S);
|
|
13099
|
+
Te || (qe(t.touchedFields, S, L), ve.touchedFields = t.touchedFields, I = I || (u.touchedFields || f.touchedFields) && Te !== L);
|
|
13100
13100
|
}
|
|
13101
13101
|
I && J && p.state.next(ve);
|
|
13102
13102
|
}
|
|
@@ -13104,7 +13104,7 @@ function a_(e = {}) {
|
|
|
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 G = {
|
|
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
|
+
...G
|
|
13116
|
+
}, p.state.next(G);
|
|
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, ...G } = J;
|
|
13139
13139
|
if (I) {
|
|
13140
|
-
const ve = s.array.has(I.name),
|
|
13141
|
-
|
|
13140
|
+
const ve = s.array.has(I.name), Te = J._f && Qw(J._f);
|
|
13141
|
+
Te && u.validatingFields && y([te], !0);
|
|
13142
13142
|
const P = await gd(J, s.disabled, a, g, n.shouldUseNativeValidation && !R, ve);
|
|
13143
|
-
if (
|
|
13143
|
+
if (Te && u.validatingFields && y([te]), P[I.name] && (L.valid = !1, R))
|
|
13144
13144
|
break;
|
|
13145
13145
|
!R && (ae(P, I.name) ? ve ? 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(G) && await W(G, 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((G) => G.selected = J.includes(G.value)) : I.refs ? pa(I.ref) ? I.refs.forEach((G) => {
|
|
13165
|
+
(!G.defaultChecked || !G.disabled) && (Array.isArray(J) ? G.checked = !!J.find((ve) => ve === G.value) : G.checked = J === G.value || !!J);
|
|
13166
|
+
}) : I.refs.forEach((G) => G.checked = G.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, G = ae(r, I);
|
|
13177
|
+
(s.array.has(S) || mt(J) || G && !G._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,14 +13193,14 @@ 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
|
+
}, G = dd(n.mode), ve = dd(n.reValidateMode);
|
|
13199
13199
|
if (J) {
|
|
13200
|
-
let
|
|
13201
|
-
const
|
|
13202
|
-
qe(a, L,
|
|
13203
|
-
const At = _(L,
|
|
13200
|
+
let Te, P;
|
|
13201
|
+
const Z = R.type ? ud(J._f) : Hp(S), me = S.type === vi.BLUR || S.type === vi.FOCUS_OUT, Ye = !Xw(J._f) && !n.resolver && !ae(t.errors, L) && !J._f.deps || t_(me, ae(t.touchedFields, L), t.isSubmitted, ve, G), Tt = pd(L, s, me);
|
|
13202
|
+
qe(a, L, Z), me ? (!R || !R.readOnly) && (J._f.onBlur && J._f.onBlur(S), c && c(0)) : J._f.onChange && J._f.onChange(S);
|
|
13203
|
+
const At = _(L, Z, me), Lr = !Ht(At) || Tt;
|
|
13204
13204
|
if (!me && p.state.next({
|
|
13205
13205
|
name: L,
|
|
13206
13206
|
type: S.type,
|
|
@@ -13209,13 +13209,13 @@ function a_(e = {}) {
|
|
|
13209
13209
|
return (u.isValid || f.isValid) && (n.mode === "onBlur" ? me && h() : me || h()), Lr && p.state.next({ name: L, ...Tt ? {} : At });
|
|
13210
13210
|
if (!me && Tt && p.state.next({ ...t }), n.resolver) {
|
|
13211
13211
|
const { errors: or } = await O([L]);
|
|
13212
|
-
if (I(
|
|
13212
|
+
if (I(Z), 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(Z), 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((G) => ae(I, G)) : L;
|
|
13229
13229
|
} else S ? (te = (await Promise.all(J.map(async (I) => {
|
|
13230
|
-
const
|
|
13231
|
-
return await W(
|
|
13230
|
+
const G = ae(r, I);
|
|
13231
|
+
return await W(G && G._f ? { [I]: G } : G);
|
|
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: G, type: ve, ...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,13 +13319,13 @@ 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, G = Zw(I), ve = L._f.refs || [];
|
|
13323
|
+
if (G ? ve.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
|
+
...G ? {
|
|
13329
13329
|
refs: [
|
|
13330
13330
|
...ve.filter(Is),
|
|
13331
13331
|
I,
|
|
@@ -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: G } = await O();
|
|
13357
|
+
t.errors = I, J = Dt(G);
|
|
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 G = /* @__PURE__ */ new Set([
|
|
13389
13389
|
...s.mount,
|
|
13390
13390
|
...Object.keys(Ao(o, a))
|
|
13391
13391
|
]);
|
|
13392
|
-
for (const ve of Array.from(
|
|
13392
|
+
for (const ve of Array.from(G))
|
|
13393
13393
|
ae(t.dirtyFields, ve) ? qe(I, ve, ae(a, ve)) : H(ve, ae(I, ve));
|
|
13394
13394
|
} else {
|
|
13395
13395
|
if (Qc && ht(S))
|
|
13396
|
-
for (const
|
|
13397
|
-
const ve = ae(r,
|
|
13396
|
+
for (const G of s.mount) {
|
|
13397
|
+
const ve = ae(r, G);
|
|
13398
13398
|
if (ve && ve._f) {
|
|
13399
|
-
const
|
|
13400
|
-
if (yi(
|
|
13401
|
-
const P =
|
|
13399
|
+
const Te = Array.isArray(ve._f.refs) ? ve._f.refs[0] : ve._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 G of s.mount)
|
|
13411
|
+
H(G, ae(I, G));
|
|
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,
|
|
@@ -17198,7 +17198,7 @@ function gE({
|
|
|
17198
17198
|
if (!N) return { bg: "#E0E0E0", color: "#333" };
|
|
17199
17199
|
const ge = N.toLowerCase();
|
|
17200
17200
|
return ge.includes("actualiz") ? { bg: "#E8F1FF", color: "#1E60D1" } : ge.includes("recorda") ? { bg: "#F5E7FF", color: "#7A3DB8" } : { bg: "#EEE", color: "#333" };
|
|
17201
|
-
},
|
|
17201
|
+
}, q = (N) => N.NombreAsesor?.trim() || (N.Email ? N.Email : "Sistema"), v = (N) => {
|
|
17202
17202
|
const ge = N || "", Oe = ge.split(" ").filter(Boolean);
|
|
17203
17203
|
return Oe.length >= 2 ? (Oe[0][0] + Oe[1][0]).toUpperCase() : (ge[0] || "?").toUpperCase();
|
|
17204
17204
|
}, M = [...c].sort(
|
|
@@ -17220,7 +17220,7 @@ function gE({
|
|
|
17220
17220
|
"En reparación",
|
|
17221
17221
|
"Entrega de vehículo",
|
|
17222
17222
|
"Agendar Cita"
|
|
17223
|
-
], [
|
|
17223
|
+
], [G, ve] = Se("Todos"), Te = () => {
|
|
17224
17224
|
ke(""), oe(!1), ne(!1), xt(_e), ct(Ce), J("Todos"), ve("Todos");
|
|
17225
17225
|
};
|
|
17226
17226
|
function P(N) {
|
|
@@ -17230,14 +17230,14 @@ function gE({
|
|
|
17230
17230
|
const Oe = String(ge.getDate()).padStart(2, "0"), tt = String(ge.getMonth() + 1).padStart(2, "0"), rt = String(ge.getFullYear()).slice(-2);
|
|
17231
17231
|
return `${Oe}/${tt}/${rt}`;
|
|
17232
17232
|
}
|
|
17233
|
-
function
|
|
17233
|
+
function Z(N) {
|
|
17234
17234
|
const ge = N ? new Date(N) : null;
|
|
17235
17235
|
return ge && !isNaN(ge.getTime()) ? ge : null;
|
|
17236
17236
|
}
|
|
17237
17237
|
function me(N, ge) {
|
|
17238
17238
|
let Oe = null;
|
|
17239
17239
|
for (const tt of N) {
|
|
17240
|
-
const rt =
|
|
17240
|
+
const rt = Z(ge(tt));
|
|
17241
17241
|
if (rt) {
|
|
17242
17242
|
const Ot = rt.getTime();
|
|
17243
17243
|
(Oe === null || Ot > Oe) && (Oe = Ot);
|
|
@@ -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,7 +17327,7 @@ 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
17333
|
children: (N.Asesor ?? "").split(" ").filter(Boolean).map((ge) => ge[0]?.toUpperCase()).slice(0, 2).join("") || "—"
|
|
@@ -17416,12 +17416,12 @@ function gE({
|
|
|
17416
17416
|
if (Oe && !(rt.Vehiculo ?? "").toLowerCase().includes(Oe)) return !1;
|
|
17417
17417
|
const bn = T ? rt.FechaCita : rt.Fecha;
|
|
17418
17418
|
if (ye && (N || ge)) {
|
|
17419
|
-
const Dr =
|
|
17419
|
+
const Dr = Z(bn ?? "");
|
|
17420
17420
|
if (!Dr) return !1;
|
|
17421
17421
|
const zn = N ? new Date(N) : null, C = ge ? new Date(ge) : 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()) || G !== "Todos" && (rt.Actividad ?? "") !== G);
|
|
17425
17425
|
};
|
|
17426
17426
|
return zr.map((rt) => {
|
|
17427
17427
|
const Ot = (rt.rows ?? []).filter(
|
|
@@ -17446,7 +17446,7 @@ function gE({
|
|
|
17446
17446
|
wt,
|
|
17447
17447
|
T,
|
|
17448
17448
|
te,
|
|
17449
|
-
|
|
17449
|
+
G
|
|
17450
17450
|
]), [wo, _o] = Se(!1), [ma, ga] = Se(null), ls = {
|
|
17451
17451
|
nuevos: "cotizaciones",
|
|
17452
17452
|
pruebas: "pruebademanejo",
|
|
@@ -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,
|
|
@@ -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: {
|
|
@@ -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
|
{
|
|
@@ -17666,7 +17666,7 @@ function gE({
|
|
|
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
17687
|
H?.map((N, ge) => {
|
|
17688
|
-
const Oe =
|
|
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,8 +17749,8 @@ 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
17756
|
ge < M.length - 1 && /* @__PURE__ */ d.jsx(nn, { sx: { mt: 1.25 } })
|
|
@@ -17817,7 +17817,7 @@ 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(
|
|
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
17821
|
O.map((N, ge) => {
|
|
17822
17822
|
const Oe = lE(N), tt = cE(
|
|
17823
17823
|
N.FechaBaja ?? N.FechaAsignacion
|
|
@@ -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",
|
|
@@ -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,7 +18237,7 @@ function gE({
|
|
|
18237
18237
|
/* @__PURE__ */ d.jsx(
|
|
18238
18238
|
Ws,
|
|
18239
18239
|
{
|
|
18240
|
-
value:
|
|
18240
|
+
value: G,
|
|
18241
18241
|
onChange: (N) => ve(N.target.value),
|
|
18242
18242
|
sx: {
|
|
18243
18243
|
"& .MuiFormControlLabel-root": {
|
|
@@ -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 G = typeof I == "function" ? I(z) : I;
|
|
18992
|
+
O ? m(G) : D(G);
|
|
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((G, ve) => I.set(F(G), ve)), 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
|
+
(G) => I.set(f ? f(G) : G?.IdAuto, G)
|
|
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, G) => JSON.stringify(I).toLowerCase().includes(G.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(ve)) ? 0 : 1,
|
|
19021
|
-
if (P !==
|
|
19022
|
-
const me =
|
|
19018
|
+
const I = v.current, G = [...se];
|
|
19019
|
+
return G.sort((ve, Te) => {
|
|
19020
|
+
const P = I.has(F(ve)) ? 0 : 1, Z = I.has(F(Te)) ? 0 : 1;
|
|
19021
|
+
if (P !== Z) return P - Z;
|
|
19022
|
+
const me = q.get(F(ve)) ?? 0, Ye = q.get(F(Te)) ?? 0;
|
|
19023
19023
|
return me - Ye;
|
|
19024
|
-
}),
|
|
19025
|
-
}, [se,
|
|
19024
|
+
}), G;
|
|
19025
|
+
}, [se, q, F]), {
|
|
19026
19026
|
currentItems: pe,
|
|
19027
19027
|
totalPages: de,
|
|
19028
19028
|
showingFrom: ue,
|
|
@@ -19040,29 +19040,32 @@ function s5(e) {
|
|
|
19040
19040
|
scrollTop: () => {
|
|
19041
19041
|
}
|
|
19042
19042
|
}), _e = (I) => {
|
|
19043
|
-
const
|
|
19043
|
+
const G = M.get(I) ?? null;
|
|
19044
19044
|
W([I]), h?.({
|
|
19045
|
-
items:
|
|
19045
|
+
items: G
|
|
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 (G) {
|
|
19051
|
+
console.error("Error al enviar AddCliente:", G);
|
|
19052
19052
|
}
|
|
19053
19053
|
}, wt = Je(() => {
|
|
19054
19054
|
const I = /* @__PURE__ */ new Map();
|
|
19055
|
-
return (r ?? []).forEach((
|
|
19056
|
-
}, [r]), ct = (I,
|
|
19055
|
+
return (r ?? []).forEach((G) => I.set(String(G.name), G)), I;
|
|
19056
|
+
}, [r]), ct = (I, G) => {
|
|
19057
19057
|
const ve = wt.get(String(I));
|
|
19058
19058
|
if (!ve) return null;
|
|
19059
|
-
const
|
|
19059
|
+
const Te = { xs: 12, ...ve.grid, ...G || {} }, Z = `${(Te.md ?? 12) / 12 * 100}%`;
|
|
19060
19060
|
return /* @__PURE__ */ d.jsx(
|
|
19061
19061
|
ze,
|
|
19062
19062
|
{
|
|
19063
19063
|
item: !0,
|
|
19064
|
-
...
|
|
19065
|
-
|
|
19064
|
+
...Te,
|
|
19065
|
+
sx: {
|
|
19066
|
+
flexBasis: { md: Z },
|
|
19067
|
+
maxWidth: { md: Z }
|
|
19068
|
+
},
|
|
19066
19069
|
children: ve.render ? ve.render(b) : Qd(ve, b)
|
|
19067
19070
|
},
|
|
19068
19071
|
`fld-${String(I)}`
|
|
@@ -19116,8 +19119,8 @@ function s5(e) {
|
|
|
19116
19119
|
paddingBottom: 3,
|
|
19117
19120
|
mx: { xs: 0, md: c ? "auto" : 0 },
|
|
19118
19121
|
"& .form-body": {
|
|
19119
|
-
maxWidth:
|
|
19120
|
-
margin: "0
|
|
19122
|
+
maxWidth: "unset",
|
|
19123
|
+
margin: "0"
|
|
19121
19124
|
},
|
|
19122
19125
|
position: "relative"
|
|
19123
19126
|
},
|
|
@@ -19134,7 +19137,7 @@ function s5(e) {
|
|
|
19134
19137
|
}
|
|
19135
19138
|
},
|
|
19136
19139
|
children: [
|
|
19137
|
-
/* @__PURE__ */ d.jsx(
|
|
19140
|
+
/* @__PURE__ */ d.jsx(Re, { fontWeight: 700, fontSize: 20, children: t.title }),
|
|
19138
19141
|
/* @__PURE__ */ d.jsxs(
|
|
19139
19142
|
Q,
|
|
19140
19143
|
{
|
|
@@ -19145,7 +19148,7 @@ function s5(e) {
|
|
|
19145
19148
|
paddingBottom: 10
|
|
19146
19149
|
},
|
|
19147
19150
|
children: [
|
|
19148
|
-
/* @__PURE__ */ d.jsx(
|
|
19151
|
+
/* @__PURE__ */ d.jsx(Re, { fontSize: "18px", mt: 2.5, fontWeight: 500, children: t.subTitle }),
|
|
19149
19152
|
/* @__PURE__ */ d.jsx(
|
|
19150
19153
|
Q,
|
|
19151
19154
|
{
|
|
@@ -19154,7 +19157,7 @@ function s5(e) {
|
|
|
19154
19157
|
flexDirection: "column",
|
|
19155
19158
|
width: "100%",
|
|
19156
19159
|
gap: 2,
|
|
19157
|
-
children: Array.isArray(e.formLayout) && c ? e.formLayout.map((I,
|
|
19160
|
+
children: Array.isArray(e.formLayout) && c ? e.formLayout.map((I, G) => /* @__PURE__ */ d.jsx(
|
|
19158
19161
|
ze,
|
|
19159
19162
|
{
|
|
19160
19163
|
container: !0,
|
|
@@ -19162,7 +19165,7 @@ function s5(e) {
|
|
|
19162
19165
|
alignItems: "flex-start",
|
|
19163
19166
|
wrap: "wrap",
|
|
19164
19167
|
width: "100%",
|
|
19165
|
-
children: I.map((ve,
|
|
19168
|
+
children: I.map((ve, Te) => {
|
|
19166
19169
|
const P = typeof ve == "string" ? { name: ve } : ve;
|
|
19167
19170
|
return P.hidden?.(b) ? null : ct(
|
|
19168
19171
|
P.name,
|
|
@@ -19170,10 +19173,10 @@ function s5(e) {
|
|
|
19170
19173
|
);
|
|
19171
19174
|
})
|
|
19172
19175
|
},
|
|
19173
|
-
`row-${
|
|
19174
|
-
)) : /* @__PURE__ */ d.jsx(ze, { container: !0, spacing: 2, width: "100%", children: r?.map((I,
|
|
19176
|
+
`row-${G}`
|
|
19177
|
+
)) : /* @__PURE__ */ d.jsx(ze, { container: !0, spacing: 2, width: "100%", children: r?.map((I, G) => {
|
|
19175
19178
|
const ve = I.grid ?? { xs: 12, md: 12 };
|
|
19176
|
-
return /* @__PURE__ */ d.jsx(ze, { item: !0, ...ve, children: I.render ? I.render(b) : Qd(I, b) }, `${String(I.name)}-${
|
|
19179
|
+
return /* @__PURE__ */ d.jsx(ze, { item: !0, ...ve, children: I.render ? I.render(b) : Qd(I, b) }, `${String(I.name)}-${G}`);
|
|
19177
19180
|
}) })
|
|
19178
19181
|
}
|
|
19179
19182
|
)
|
|
@@ -19390,8 +19393,8 @@ function s5(e) {
|
|
|
19390
19393
|
disablePadding: !0,
|
|
19391
19394
|
sx: { borderColor: "transparent", padding: 0 },
|
|
19392
19395
|
children: [
|
|
19393
|
-
pe?.map((I,
|
|
19394
|
-
const ve = f ? f(I) :
|
|
19396
|
+
pe?.map((I, G) => {
|
|
19397
|
+
const ve = f ? f(I) : G, Te = Ee(ve);
|
|
19395
19398
|
return /* @__PURE__ */ d.jsx(
|
|
19396
19399
|
Q,
|
|
19397
19400
|
{
|
|
@@ -19416,9 +19419,9 @@ function s5(e) {
|
|
|
19416
19419
|
disableTypography: !0,
|
|
19417
19420
|
primary: p ? p({
|
|
19418
19421
|
item: I,
|
|
19419
|
-
selected:
|
|
19422
|
+
selected: Te,
|
|
19420
19423
|
toggle: () => _e(ve),
|
|
19421
|
-
index:
|
|
19424
|
+
index: G
|
|
19422
19425
|
}) : null
|
|
19423
19426
|
}
|
|
19424
19427
|
)
|
|
@@ -19430,7 +19433,7 @@ function s5(e) {
|
|
|
19430
19433
|
`${String(ve)}`
|
|
19431
19434
|
);
|
|
19432
19435
|
}),
|
|
19433
|
-
!pe?.length && /* @__PURE__ */ d.jsx(Q, { p: 3, children: /* @__PURE__ */ d.jsxs(
|
|
19436
|
+
!pe?.length && /* @__PURE__ */ d.jsx(Q, { p: 3, children: /* @__PURE__ */ d.jsxs(Re, { fontSize: 14, color: "#5C6372", children: [
|
|
19434
19437
|
"Sin resultados para “",
|
|
19435
19438
|
k,
|
|
19436
19439
|
"”."
|
|
@@ -19520,8 +19523,8 @@ function c5({
|
|
|
19520
19523
|
return () => clearTimeout(me);
|
|
19521
19524
|
}
|
|
19522
19525
|
}, [h]);
|
|
19523
|
-
const [b, k] = Se(""), [w, _] = Se(!1), [D, O] = Se(!1), [z, W] = Se(!1), [F,
|
|
19524
|
-
M([...t.selectedIds]),
|
|
19526
|
+
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, $ = () => {
|
|
19527
|
+
M([...t.selectedIds]), q(""), W(!0);
|
|
19525
19528
|
}, H = () => {
|
|
19526
19529
|
W(!1), M([]);
|
|
19527
19530
|
}, X = () => {
|
|
@@ -19529,17 +19532,17 @@ function c5({
|
|
|
19529
19532
|
wt.map(
|
|
19530
19533
|
(me, Ye) => String(vr(me, Ye, p.id))
|
|
19531
19534
|
)
|
|
19532
|
-
),
|
|
19533
|
-
r({ ...t, selectedIds:
|
|
19534
|
-
}, ee = (P,
|
|
19535
|
-
function he(P,
|
|
19536
|
-
const At =
|
|
19535
|
+
), Z = v.filter((me) => P.has(String(me)));
|
|
19536
|
+
r({ ...t, selectedIds: Z }), W(!1);
|
|
19537
|
+
}, ee = (P, Z) => rn(P ?? "") === rn(Z ?? "");
|
|
19538
|
+
function he(P, Z, me, Ye, Tt) {
|
|
19539
|
+
const At = Z ? P.some((or) => ee(or, Z)) : !1, Lr = me.length > 0 ? me.some((or) => P.some((vn) => ee(vn, or))) : !1;
|
|
19537
19540
|
Ye(At), Tt(Lr);
|
|
19538
19541
|
}
|
|
19539
19542
|
const B = (P) => {
|
|
19540
|
-
const
|
|
19541
|
-
r({ ...t, recipients:
|
|
19542
|
-
|
|
19543
|
+
const Z = typeof P == "function" ? P(t.recipients) : P;
|
|
19544
|
+
r({ ...t, recipients: Z }), he(
|
|
19545
|
+
Z,
|
|
19543
19546
|
pe,
|
|
19544
19547
|
ue,
|
|
19545
19548
|
_,
|
|
@@ -19547,22 +19550,22 @@ function c5({
|
|
|
19547
19550
|
);
|
|
19548
19551
|
}, U = (P) => r({ ...t, message: P }), ie = (P) => r({ ...t, attachments: [...t.attachments, ...P] }), se = (P) => r({
|
|
19549
19552
|
...t,
|
|
19550
|
-
attachments: t.attachments.filter((
|
|
19553
|
+
attachments: t.attachments.filter((Z) => Z.name !== P)
|
|
19551
19554
|
}), fe = (P) => {
|
|
19552
19555
|
if (z)
|
|
19553
19556
|
if (l) {
|
|
19554
|
-
const
|
|
19555
|
-
|
|
19557
|
+
const Z = new Set(v);
|
|
19558
|
+
Z.has(P) ? Z.delete(P) : Z.add(P), M(Array.from(Z));
|
|
19556
19559
|
} else {
|
|
19557
|
-
const
|
|
19558
|
-
M(
|
|
19560
|
+
const Z = v.includes(P);
|
|
19561
|
+
M(Z ? [] : [P]);
|
|
19559
19562
|
}
|
|
19560
19563
|
else if (l) {
|
|
19561
|
-
const
|
|
19562
|
-
|
|
19564
|
+
const Z = new Set(t.selectedIds);
|
|
19565
|
+
Z.has(P) ? Z.delete(P) : Z.add(P), r({ ...t, selectedIds: Array.from(Z) });
|
|
19563
19566
|
} else {
|
|
19564
|
-
const
|
|
19565
|
-
r({ ...t, selectedIds:
|
|
19567
|
+
const Z = t.selectedIds.includes(P);
|
|
19568
|
+
r({ ...t, selectedIds: Z ? [] : [P] });
|
|
19566
19569
|
}
|
|
19567
19570
|
}, pe = Je(
|
|
19568
19571
|
() => (a?.Correo ?? "").trim(),
|
|
@@ -19577,7 +19580,7 @@ function c5({
|
|
|
19577
19580
|
Ct(() => {
|
|
19578
19581
|
if (e && !xe.current) {
|
|
19579
19582
|
let P = [];
|
|
19580
|
-
w && pe && (P = en(P, [pe])), D && ue.length && (P = en(P, ue)), B((
|
|
19583
|
+
w && pe && (P = en(P, [pe])), D && ue.length && (P = en(P, ue)), B((Z) => en(Z, P)), he(
|
|
19581
19584
|
t.recipients,
|
|
19582
19585
|
// o el array que uses tras el merge
|
|
19583
19586
|
pe,
|
|
@@ -19589,11 +19592,11 @@ function c5({
|
|
|
19589
19592
|
e || (xe.current = !1);
|
|
19590
19593
|
}, [e, w, D, pe, ue]);
|
|
19591
19594
|
const ke = (P) => {
|
|
19592
|
-
const
|
|
19593
|
-
if (
|
|
19594
|
-
if (
|
|
19595
|
-
return /* @__PURE__ */ d.jsx(Qn, { src:
|
|
19596
|
-
const me = (
|
|
19595
|
+
const Z = de.find((me) => rn(me.EmailAsesor ?? "") === rn(P));
|
|
19596
|
+
if (Z) {
|
|
19597
|
+
if (Z.ImgAsesor)
|
|
19598
|
+
return /* @__PURE__ */ d.jsx(Qn, { src: Z.ImgAsesor, alt: Z.NombreAsesor });
|
|
19599
|
+
const me = (Z.NombreAsesor || "").trim(), Ye = (Z.ApellidosAsesor || "").trim();
|
|
19597
19600
|
return /* @__PURE__ */ d.jsx(Qn, { children: `${me[0] ?? ""}${Ye[0] ?? ""}`.toUpperCase() });
|
|
19598
19601
|
}
|
|
19599
19602
|
return /* @__PURE__ */ d.jsx(Qn, { children: P[0]?.toUpperCase() });
|
|
@@ -19604,17 +19607,17 @@ function c5({
|
|
|
19604
19607
|
me.length > 0 && B((Ye) => en(Ye, me)), k("");
|
|
19605
19608
|
}, oe = (P) => {
|
|
19606
19609
|
_(P), B(
|
|
19607
|
-
(
|
|
19610
|
+
(Z) => P && pe ? en(Z, [pe]) : Xd(Z, pe)
|
|
19608
19611
|
);
|
|
19609
19612
|
}, T = (P) => {
|
|
19610
19613
|
O(P), B(
|
|
19611
|
-
(
|
|
19614
|
+
(Z) => P ? en(Z, ue) : OE(Z, ue)
|
|
19612
19615
|
);
|
|
19613
19616
|
}, ne = (P) => {
|
|
19614
|
-
const
|
|
19615
|
-
ie(
|
|
19617
|
+
const Z = Array.from(P.target.files || []);
|
|
19618
|
+
ie(Z.map((me) => ({ name: me.name, size: me.size, file: me }))), P.target.value = "";
|
|
19616
19619
|
}, Ce = A[0], _e = Je(() => !i || Ce === void 0 ? void 0 : i.find(
|
|
19617
|
-
(
|
|
19620
|
+
(Z, me) => String(vr(Z, me, p.id)) === String(Ce)
|
|
19618
19621
|
), [i, Ce, p.id]), Ee = Je(() => {
|
|
19619
19622
|
if (!(!_e || !p.distributorId))
|
|
19620
19623
|
return vr(_e, 0, p.distributorId);
|
|
@@ -19623,58 +19626,58 @@ function c5({
|
|
|
19623
19626
|
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(() => {
|
|
19624
19627
|
const P = i ?? [];
|
|
19625
19628
|
return Ee == null || !p.distributorId ? P : P.filter(
|
|
19626
|
-
(
|
|
19629
|
+
(Z, me) => vr(Z, me, p.distributorId) == Ee
|
|
19627
19630
|
);
|
|
19628
19631
|
}, [i, Ee, p.distributorId]), ct = Je(() => {
|
|
19629
19632
|
if (!F.trim()) return wt;
|
|
19630
19633
|
const P = F.toLowerCase();
|
|
19631
19634
|
return wt.filter(
|
|
19632
|
-
(
|
|
19633
|
-
(me) => String(
|
|
19635
|
+
(Z) => (c ?? []).some(
|
|
19636
|
+
(me) => String(Z?.[me] ?? "").toLowerCase().includes(P)
|
|
19634
19637
|
)
|
|
19635
19638
|
);
|
|
19636
19639
|
}, [wt, F, c]), S = Je(() => {
|
|
19637
19640
|
if (!i || !t.selectedIds.length) return [];
|
|
19638
19641
|
const P = /* @__PURE__ */ new Map();
|
|
19639
|
-
return i.forEach((
|
|
19640
|
-
P.set(String(vr(
|
|
19641
|
-
}), t.selectedIds.map((
|
|
19642
|
+
return i.forEach((Z, me) => {
|
|
19643
|
+
P.set(String(vr(Z, me, p.id)), Z);
|
|
19644
|
+
}), t.selectedIds.map((Z) => P.get(String(Z))).filter(Boolean);
|
|
19642
19645
|
}, [i, t.selectedIds, p.id]), R = (P) => r({
|
|
19643
19646
|
...t,
|
|
19644
|
-
selectedIds: t.selectedIds.filter((
|
|
19647
|
+
selectedIds: t.selectedIds.filter((Z) => String(Z) !== String(P))
|
|
19645
19648
|
}), L = () => {
|
|
19646
19649
|
let P = t.recipients;
|
|
19647
19650
|
if (b.trim()) {
|
|
19648
19651
|
const At = b.split(Na).filter((Lr) => Bs.test(Lr));
|
|
19649
19652
|
P = en(P, At), B(P), k("");
|
|
19650
19653
|
}
|
|
19651
|
-
const
|
|
19654
|
+
const Z = w ? pe : "", me = de.find((At) => At?.Activo && At?.EmailAsesor)?.EmailAsesor?.trim() ?? "";
|
|
19652
19655
|
o?.({
|
|
19653
19656
|
recipients: P,
|
|
19654
19657
|
toClient: w,
|
|
19655
19658
|
toAdvisor: D,
|
|
19656
19659
|
tipoInt: w && D ? 2 : 1,
|
|
19657
|
-
correoCliente:
|
|
19660
|
+
correoCliente: Z,
|
|
19658
19661
|
correoAsesor: D ? me : "",
|
|
19659
19662
|
disIdLocked: Ee
|
|
19660
19663
|
}), n?.();
|
|
19661
19664
|
}, te = Je(() => {
|
|
19662
|
-
const
|
|
19663
|
-
return t.recipients.length > 0 ||
|
|
19664
|
-
}, [t.recipients, b]), J = (t.selectedIds?.length ?? 0) > 0, I = t.message.trim().length > 0,
|
|
19665
|
+
const Z = b.split(Na).filter(Boolean).some((me) => Bs.test(me));
|
|
19666
|
+
return t.recipients.length > 0 || Z;
|
|
19667
|
+
}, [t.recipients, b]), J = (t.selectedIds?.length ?? 0) > 0, I = t.message.trim().length > 0, G = te && J && I, ve = _c(), Te = Sc(ve.breakpoints.down("sm"));
|
|
19665
19668
|
return /* @__PURE__ */ d.jsxs(
|
|
19666
19669
|
Mh,
|
|
19667
19670
|
{
|
|
19668
|
-
anchor:
|
|
19671
|
+
anchor: Te ? "bottom" : "right",
|
|
19669
19672
|
open: e,
|
|
19670
19673
|
onClose: n,
|
|
19671
19674
|
ModalProps: {
|
|
19672
19675
|
keepMounted: !0,
|
|
19673
|
-
BackdropProps: { invisible: !
|
|
19676
|
+
BackdropProps: { invisible: !Te }
|
|
19674
19677
|
},
|
|
19675
19678
|
transitionDuration: { enter: 320, exit: 220 },
|
|
19676
19679
|
SlideProps: {
|
|
19677
|
-
direction:
|
|
19680
|
+
direction: Te ? "up" : "left",
|
|
19678
19681
|
timeout: { enter: 320, exit: 220 },
|
|
19679
19682
|
easing: {
|
|
19680
19683
|
enter: "cubic-bezier(0.22, 1, 0.36, 1)",
|
|
@@ -19741,7 +19744,7 @@ function c5({
|
|
|
19741
19744
|
style: { width: 24, height: 18 }
|
|
19742
19745
|
}
|
|
19743
19746
|
) : null,
|
|
19744
|
-
/* @__PURE__ */ d.jsxs(
|
|
19747
|
+
/* @__PURE__ */ d.jsxs(Re, { fontWeight: 700, children: [
|
|
19745
19748
|
"Mensaje a",
|
|
19746
19749
|
" ",
|
|
19747
19750
|
a ? `${a.Nombre ?? ""} ${a.ApellidoP ?? ""} ${a.ApellidoM ?? ""}`.trim() : "—"
|
|
@@ -19782,7 +19785,7 @@ function c5({
|
|
|
19782
19785
|
{
|
|
19783
19786
|
avatar: ke(P),
|
|
19784
19787
|
label: P,
|
|
19785
|
-
onDelete: () => B((
|
|
19788
|
+
onDelete: () => B((Z) => Xd(Z, P)),
|
|
19786
19789
|
size: "small",
|
|
19787
19790
|
variant: "outlined",
|
|
19788
19791
|
sx: { borderRadius: 999, height: 28 }
|
|
@@ -19796,8 +19799,8 @@ function c5({
|
|
|
19796
19799
|
value: b,
|
|
19797
19800
|
onChange: (P) => k(P.target.value),
|
|
19798
19801
|
onKeyDown: (P) => {
|
|
19799
|
-
const
|
|
19800
|
-
|
|
19802
|
+
const Z = P.key;
|
|
19803
|
+
Z === "Enter" || Z === "," || Z === ";" || Z === " " || Z === "Tab" ? (P.preventDefault(), ye()) : Z === "Backspace" && !b && t.recipients.length && B((Ye) => Ye.slice(0, -1));
|
|
19801
19804
|
},
|
|
19802
19805
|
onBlur: ye,
|
|
19803
19806
|
onPaste: (P) => {
|
|
@@ -19865,7 +19868,7 @@ function c5({
|
|
|
19865
19868
|
onClick: $,
|
|
19866
19869
|
children: [
|
|
19867
19870
|
/* @__PURE__ */ d.jsx(
|
|
19868
|
-
|
|
19871
|
+
Re,
|
|
19869
19872
|
{
|
|
19870
19873
|
fontSize: 12,
|
|
19871
19874
|
fontWeight: 600,
|
|
@@ -19877,8 +19880,8 @@ function c5({
|
|
|
19877
19880
|
]
|
|
19878
19881
|
}
|
|
19879
19882
|
),
|
|
19880
|
-
S.length > 0 ? /* @__PURE__ */ d.jsx(Q, { sx: { mt: 1.5, display: "flex", gap: 1, flexWrap: "wrap" }, children: S.map((P,
|
|
19881
|
-
const me = vr(P,
|
|
19883
|
+
S.length > 0 ? /* @__PURE__ */ d.jsx(Q, { sx: { mt: 1.5, display: "flex", gap: 1, flexWrap: "wrap" }, children: S.map((P, Z) => {
|
|
19884
|
+
const me = vr(P, Z, p.id), Ye = vr(P, Z, p.title) ?? "", Tt = vr(P, Z, p.image), At = IE(f, Tt);
|
|
19882
19885
|
return /* @__PURE__ */ d.jsx(
|
|
19883
19886
|
Io,
|
|
19884
19887
|
{
|
|
@@ -19939,7 +19942,7 @@ function c5({
|
|
|
19939
19942
|
},
|
|
19940
19943
|
String(me)
|
|
19941
19944
|
);
|
|
19942
|
-
}) }) : /* @__PURE__ */ d.jsx(
|
|
19945
|
+
}) }) : /* @__PURE__ */ d.jsx(Re, { fontSize: 13, color: "#5C6372", sx: { mt: 0.5 }, children: "Aún no has seleccionado autos." })
|
|
19943
19946
|
] }),
|
|
19944
19947
|
/* @__PURE__ */ d.jsx(nn, {}),
|
|
19945
19948
|
/* @__PURE__ */ d.jsxs(Q, { sx: { p: 2 }, children: [
|
|
@@ -20056,7 +20059,7 @@ function c5({
|
|
|
20056
20059
|
{
|
|
20057
20060
|
variant: "contained",
|
|
20058
20061
|
onClick: L,
|
|
20059
|
-
disabled: !
|
|
20062
|
+
disabled: !G,
|
|
20060
20063
|
sx: {
|
|
20061
20064
|
maxWidth: 146,
|
|
20062
20065
|
width: "100%",
|
|
@@ -20077,7 +20080,7 @@ function c5({
|
|
|
20077
20080
|
{
|
|
20078
20081
|
fullWidth: !0,
|
|
20079
20082
|
maxWidth: "sm",
|
|
20080
|
-
fullScreen:
|
|
20083
|
+
fullScreen: Te,
|
|
20081
20084
|
open: z,
|
|
20082
20085
|
onClose: H,
|
|
20083
20086
|
children: [
|
|
@@ -20105,20 +20108,20 @@ function c5({
|
|
|
20105
20108
|
fullWidth: !0,
|
|
20106
20109
|
size: "small",
|
|
20107
20110
|
value: F,
|
|
20108
|
-
onChange: (P) =>
|
|
20111
|
+
onChange: (P) => q(P.target.value),
|
|
20109
20112
|
sx: { mb: 2 }
|
|
20110
20113
|
}
|
|
20111
20114
|
),
|
|
20112
20115
|
xt != null && /* @__PURE__ */ d.jsx(Io, { size: "small", label: `Distribuidora: ${xt}` })
|
|
20113
20116
|
] }),
|
|
20114
|
-
/* @__PURE__ */ d.jsxs(
|
|
20117
|
+
/* @__PURE__ */ d.jsxs(Re, { variant: "caption", fontWeight: 600, children: [
|
|
20115
20118
|
"RESULTADOS (",
|
|
20116
20119
|
ct.length,
|
|
20117
20120
|
")"
|
|
20118
20121
|
] }),
|
|
20119
20122
|
/* @__PURE__ */ d.jsxs(Bo, { sx: { p: 0 }, children: [
|
|
20120
|
-
ct.map((P,
|
|
20121
|
-
const me = vr(P,
|
|
20123
|
+
ct.map((P, Z) => {
|
|
20124
|
+
const me = vr(P, Z, p.id), Ye = A.includes(String(me)) || A.includes(me), Tt = Ee == null || vr(P, Z, p.distributorId) == Ee;
|
|
20122
20125
|
return /* @__PURE__ */ d.jsx(
|
|
20123
20126
|
Vo,
|
|
20124
20127
|
{
|
|
@@ -20135,14 +20138,14 @@ function c5({
|
|
|
20135
20138
|
width: "100%",
|
|
20136
20139
|
borderBottom: "solid 1px #D3D4D5"
|
|
20137
20140
|
},
|
|
20138
|
-
children: s ? s(P,
|
|
20141
|
+
children: s ? s(P, Z) : /* @__PURE__ */ d.jsx("pre", { style: { margin: 0 }, children: JSON.stringify(P, null, 2) })
|
|
20139
20142
|
}
|
|
20140
20143
|
)
|
|
20141
20144
|
},
|
|
20142
20145
|
String(me)
|
|
20143
20146
|
);
|
|
20144
20147
|
}),
|
|
20145
|
-
ct.length === 0 && /* @__PURE__ */ d.jsx(Q, { p: 2, children: /* @__PURE__ */ d.jsx(
|
|
20148
|
+
ct.length === 0 && /* @__PURE__ */ d.jsx(Q, { p: 2, children: /* @__PURE__ */ d.jsx(Re, { children: "Tu búsqueda no generó resultados" }) })
|
|
20146
20149
|
] })
|
|
20147
20150
|
] }),
|
|
20148
20151
|
/* @__PURE__ */ d.jsxs(Nh, { sx: { px: 3, pb: 2 }, children: [
|