componentes-exagono 0.2.57 → 0.2.59

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 CHANGED
@@ -140,14 +140,14 @@ function tg() {
140
140
  }
141
141
  return null;
142
142
  }
143
- var U = Object.assign, te = 0, Z, P, ie, de, $, re, me;
143
+ var U = Object.assign, te = 0, Z, P, se, de, $, re, me;
144
144
  function be() {
145
145
  }
146
146
  be.__reactDisabledLog = !0;
147
147
  function ue() {
148
148
  {
149
149
  if (te === 0) {
150
- Z = console.log, P = console.info, ie = console.warn, de = console.error, $ = console.group, re = console.groupCollapsed, me = console.groupEnd;
150
+ Z = console.log, P = console.info, se = console.warn, de = console.error, $ = console.group, re = console.groupCollapsed, me = console.groupEnd;
151
151
  var D = {
152
152
  configurable: !0,
153
153
  enumerable: !0,
@@ -183,7 +183,7 @@ function tg() {
183
183
  value: P
184
184
  }),
185
185
  warn: U({}, D, {
186
- value: ie
186
+ value: se
187
187
  }),
188
188
  error: U({}, D, {
189
189
  value: de
@@ -202,7 +202,7 @@ function tg() {
202
202
  te < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
203
203
  }
204
204
  }
205
- var ae = b.ReactCurrentDispatcher, ee;
205
+ var ie = b.ReactCurrentDispatcher, ee;
206
206
  function _e(D, ne, ge) {
207
207
  {
208
208
  if (ee === void 0)
@@ -234,7 +234,7 @@ function tg() {
234
234
  var Ke = Error.prepareStackTrace;
235
235
  Error.prepareStackTrace = void 0;
236
236
  var it;
237
- it = ae.current, ae.current = null, ue();
237
+ it = ie.current, ie.current = null, ue();
238
238
  try {
239
239
  if (ne) {
240
240
  var qe = function() {
@@ -287,7 +287,7 @@ function tg() {
287
287
  }
288
288
  }
289
289
  } finally {
290
- ye = !1, ae.current = it, oe(), Error.prepareStackTrace = Ke;
290
+ ye = !1, ie.current = it, oe(), Error.prepareStackTrace = Ke;
291
291
  }
292
292
  var X = D ? D.displayName || D.name : "", xe = X ? _e(X) : "";
293
293
  return typeof D == "function" && Q.set(D, xe), xe;
@@ -379,7 +379,7 @@ function tg() {
379
379
  if (ce(D))
380
380
  return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", j(D)), O(D);
381
381
  }
382
- var se = b.ReactCurrentOwner, Ie = {
382
+ var ae = b.ReactCurrentOwner, Ie = {
383
383
  key: !0,
384
384
  ref: !0,
385
385
  __self: !0,
@@ -402,7 +402,7 @@ function tg() {
402
402
  return D.key !== void 0;
403
403
  }
404
404
  function $t(D, ne) {
405
- typeof D.ref == "string" && se.current;
405
+ typeof D.ref == "string" && ae.current;
406
406
  }
407
407
  function It(D, ne) {
408
408
  {
@@ -470,7 +470,7 @@ function tg() {
470
470
  var Mt = typeof D == "function" ? D.displayName || D.name || "Unknown" : D;
471
471
  Be && It(qe, Mt), Ht && G(qe, Mt);
472
472
  }
473
- return le(D, Be, Ht, Ke, Me, se.current, qe);
473
+ return le(D, Be, Ht, Ke, Me, ae.current, qe);
474
474
  }
475
475
  }
476
476
  var Ce = b.ReactCurrentOwner, Fe = b.ReactDebugCurrentFrame;
@@ -813,9 +813,9 @@ function mg() {
813
813
  }
814
814
  }
815
815
  }
816
- var y = c, F = l, _ = i, E = s, R = n, k = d, H = r, B = m, N = g, U = t, te = a, Z = o, P = f, ie = !1;
816
+ var y = c, F = l, _ = i, E = s, R = n, k = d, H = r, B = m, N = g, U = t, te = a, Z = o, P = f, se = !1;
817
817
  function de(M) {
818
- return ie || (ie = !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.")), $(M) || x(M) === c;
818
+ return se || (se = !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.")), $(M) || x(M) === c;
819
819
  }
820
820
  function $(M) {
821
821
  return x(M) === l;
@@ -835,7 +835,7 @@ function mg() {
835
835
  function oe(M) {
836
836
  return x(M) === r;
837
837
  }
838
- function ae(M) {
838
+ function ie(M) {
839
839
  return x(M) === m;
840
840
  }
841
841
  function ee(M) {
@@ -853,7 +853,7 @@ function mg() {
853
853
  function Te(M) {
854
854
  return x(M) === f;
855
855
  }
856
- rt.AsyncMode = y, rt.ConcurrentMode = F, rt.ContextConsumer = _, rt.ContextProvider = E, rt.Element = R, rt.ForwardRef = k, rt.Fragment = H, rt.Lazy = B, rt.Memo = N, rt.Portal = U, rt.Profiler = te, rt.StrictMode = Z, rt.Suspense = P, rt.isAsyncMode = de, rt.isConcurrentMode = $, rt.isContextConsumer = re, rt.isContextProvider = me, rt.isElement = be, rt.isForwardRef = ue, rt.isFragment = oe, rt.isLazy = ae, rt.isMemo = ee, rt.isPortal = _e, rt.isProfiler = ye, rt.isStrictMode = Q, rt.isSuspense = Te, rt.isValidElementType = S, rt.typeOf = x;
856
+ rt.AsyncMode = y, rt.ConcurrentMode = F, rt.ContextConsumer = _, rt.ContextProvider = E, rt.Element = R, rt.ForwardRef = k, rt.Fragment = H, rt.Lazy = B, rt.Memo = N, rt.Portal = U, rt.Profiler = te, rt.StrictMode = Z, rt.Suspense = P, rt.isAsyncMode = de, rt.isConcurrentMode = $, rt.isContextConsumer = re, rt.isContextProvider = me, rt.isElement = be, rt.isForwardRef = ue, rt.isFragment = oe, rt.isLazy = ie, rt.isMemo = ee, rt.isPortal = _e, rt.isProfiler = ye, rt.isStrictMode = Q, rt.isSuspense = Te, rt.isValidElementType = S, rt.typeOf = x;
857
857
  })()), rt;
858
858
  }
859
859
  var gu;
@@ -1021,7 +1021,7 @@ function yg() {
1021
1021
  function v($) {
1022
1022
  if (process.env.NODE_ENV !== "production")
1023
1023
  var re = {}, me = 0;
1024
- function be(oe, ae, ee, _e, ye, Q, Te) {
1024
+ function be(oe, ie, ee, _e, ye, Q, Te) {
1025
1025
  if (_e = _e || h, Q = Q || ee, Te !== t) {
1026
1026
  if (c) {
1027
1027
  var M = new Error(
@@ -1036,18 +1036,18 @@ function yg() {
1036
1036
  ), re[Le] = !0, me++);
1037
1037
  }
1038
1038
  }
1039
- return ae[ee] == null ? oe ? ae[ee] === null ? new p("The " + ye + " `" + Q + "` is marked as required " + ("in `" + _e + "`, but its value is `null`.")) : new p("The " + ye + " `" + Q + "` is marked as required in " + ("`" + _e + "`, but its value is `undefined`.")) : null : $(ae, ee, _e, ye, Q);
1039
+ return ie[ee] == null ? oe ? ie[ee] === null ? new p("The " + ye + " `" + Q + "` is marked as required " + ("in `" + _e + "`, but its value is `null`.")) : new p("The " + ye + " `" + Q + "` is marked as required in " + ("`" + _e + "`, but its value is `undefined`.")) : null : $(ie, ee, _e, ye, Q);
1040
1040
  }
1041
1041
  var ue = be.bind(null, !1);
1042
1042
  return ue.isRequired = be.bind(null, !0), ue;
1043
1043
  }
1044
1044
  function b($) {
1045
- function re(me, be, ue, oe, ae, ee) {
1045
+ function re(me, be, ue, oe, ie, ee) {
1046
1046
  var _e = me[be], ye = Z(_e);
1047
1047
  if (ye !== $) {
1048
1048
  var Q = P(_e);
1049
1049
  return new p(
1050
- "Invalid " + oe + " `" + ae + "` of type " + ("`" + Q + "` supplied to `" + ue + "`, expected ") + ("`" + $ + "`."),
1050
+ "Invalid " + oe + " `" + ie + "` of type " + ("`" + Q + "` supplied to `" + ue + "`, expected ") + ("`" + $ + "`."),
1051
1051
  { expectedType: $ }
1052
1052
  );
1053
1053
  }
@@ -1059,16 +1059,16 @@ function yg() {
1059
1059
  return v(s);
1060
1060
  }
1061
1061
  function S($) {
1062
- function re(me, be, ue, oe, ae) {
1062
+ function re(me, be, ue, oe, ie) {
1063
1063
  if (typeof $ != "function")
1064
- return new p("Property `" + ae + "` of component `" + ue + "` has invalid PropType notation inside arrayOf.");
1064
+ return new p("Property `" + ie + "` of component `" + ue + "` has invalid PropType notation inside arrayOf.");
1065
1065
  var ee = me[be];
1066
1066
  if (!Array.isArray(ee)) {
1067
1067
  var _e = Z(ee);
1068
- return new p("Invalid " + oe + " `" + ae + "` of type " + ("`" + _e + "` supplied to `" + ue + "`, expected an array."));
1068
+ return new p("Invalid " + oe + " `" + ie + "` of type " + ("`" + _e + "` supplied to `" + ue + "`, expected an array."));
1069
1069
  }
1070
1070
  for (var ye = 0; ye < ee.length; ye++) {
1071
- var Q = $(ee, ye, ue, oe, ae + "[" + ye + "]", t);
1071
+ var Q = $(ee, ye, ue, oe, ie + "[" + ye + "]", t);
1072
1072
  if (Q instanceof Error)
1073
1073
  return Q;
1074
1074
  }
@@ -1078,9 +1078,9 @@ function yg() {
1078
1078
  }
1079
1079
  function x() {
1080
1080
  function $(re, me, be, ue, oe) {
1081
- var ae = re[me];
1082
- if (!i(ae)) {
1083
- var ee = Z(ae);
1081
+ var ie = re[me];
1082
+ if (!i(ie)) {
1083
+ var ee = Z(ie);
1084
1084
  return new p("Invalid " + ue + " `" + oe + "` of type " + ("`" + ee + "` supplied to `" + be + "`, expected a single ReactElement."));
1085
1085
  }
1086
1086
  return null;
@@ -1089,9 +1089,9 @@ function yg() {
1089
1089
  }
1090
1090
  function y() {
1091
1091
  function $(re, me, be, ue, oe) {
1092
- var ae = re[me];
1093
- if (!e.isValidElementType(ae)) {
1094
- var ee = Z(ae);
1092
+ var ie = re[me];
1093
+ if (!e.isValidElementType(ie)) {
1094
+ var ee = Z(ie);
1095
1095
  return new p("Invalid " + ue + " `" + oe + "` of type " + ("`" + ee + "` supplied to `" + be + "`, expected a single ReactElement type."));
1096
1096
  }
1097
1097
  return null;
@@ -1099,10 +1099,10 @@ function yg() {
1099
1099
  return v($);
1100
1100
  }
1101
1101
  function F($) {
1102
- function re(me, be, ue, oe, ae) {
1102
+ function re(me, be, ue, oe, ie) {
1103
1103
  if (!(me[be] instanceof $)) {
1104
1104
  var ee = $.name || h, _e = de(me[be]);
1105
- return new p("Invalid " + oe + " `" + ae + "` of type " + ("`" + _e + "` supplied to `" + ue + "`, expected ") + ("instance of `" + ee + "`."));
1105
+ return new p("Invalid " + oe + " `" + ie + "` of type " + ("`" + _e + "` supplied to `" + ue + "`, expected ") + ("instance of `" + ee + "`."));
1106
1106
  }
1107
1107
  return null;
1108
1108
  }
@@ -1113,7 +1113,7 @@ function yg() {
1113
1113
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
1114
1114
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
1115
1115
  ) : a("Invalid argument supplied to oneOf, expected an array.")), s;
1116
- function re(me, be, ue, oe, ae) {
1116
+ function re(me, be, ue, oe, ie) {
1117
1117
  for (var ee = me[be], _e = 0; _e < $.length; _e++)
1118
1118
  if (m(ee, $[_e]))
1119
1119
  return null;
@@ -1121,20 +1121,20 @@ function yg() {
1121
1121
  var Le = P(M);
1122
1122
  return Le === "symbol" ? String(M) : M;
1123
1123
  });
1124
- return new p("Invalid " + oe + " `" + ae + "` of value `" + String(ee) + "` " + ("supplied to `" + ue + "`, expected one of " + ye + "."));
1124
+ return new p("Invalid " + oe + " `" + ie + "` of value `" + String(ee) + "` " + ("supplied to `" + ue + "`, expected one of " + ye + "."));
1125
1125
  }
1126
1126
  return v(re);
1127
1127
  }
1128
1128
  function E($) {
1129
- function re(me, be, ue, oe, ae) {
1129
+ function re(me, be, ue, oe, ie) {
1130
1130
  if (typeof $ != "function")
1131
- return new p("Property `" + ae + "` of component `" + ue + "` has invalid PropType notation inside objectOf.");
1131
+ return new p("Property `" + ie + "` of component `" + ue + "` has invalid PropType notation inside objectOf.");
1132
1132
  var ee = me[be], _e = Z(ee);
1133
1133
  if (_e !== "object")
1134
- return new p("Invalid " + oe + " `" + ae + "` of type " + ("`" + _e + "` supplied to `" + ue + "`, expected an object."));
1134
+ return new p("Invalid " + oe + " `" + ie + "` of type " + ("`" + _e + "` supplied to `" + ue + "`, expected an object."));
1135
1135
  for (var ye in ee)
1136
1136
  if (r(ee, ye)) {
1137
- var Q = $(ee, ye, ue, oe, ae + "." + ye, t);
1137
+ var Q = $(ee, ye, ue, oe, ie + "." + ye, t);
1138
1138
  if (Q instanceof Error)
1139
1139
  return Q;
1140
1140
  }
@@ -1149,18 +1149,18 @@ function yg() {
1149
1149
  var me = $[re];
1150
1150
  if (typeof me != "function")
1151
1151
  return a(
1152
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ie(me) + " at index " + re + "."
1152
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + se(me) + " at index " + re + "."
1153
1153
  ), s;
1154
1154
  }
1155
- function be(ue, oe, ae, ee, _e) {
1155
+ function be(ue, oe, ie, ee, _e) {
1156
1156
  for (var ye = [], Q = 0; Q < $.length; Q++) {
1157
- var Te = $[Q], M = Te(ue, oe, ae, ee, _e, t);
1157
+ var Te = $[Q], M = Te(ue, oe, ie, ee, _e, t);
1158
1158
  if (M == null)
1159
1159
  return null;
1160
1160
  M.data && r(M.data, "expectedType") && ye.push(M.data.expectedType);
1161
1161
  }
1162
1162
  var Le = ye.length > 0 ? ", expected one of type [" + ye.join(", ") + "]" : "";
1163
- return new p("Invalid " + ee + " `" + _e + "` supplied to " + ("`" + ae + "`" + Le + "."));
1163
+ return new p("Invalid " + ee + " `" + _e + "` supplied to " + ("`" + ie + "`" + Le + "."));
1164
1164
  }
1165
1165
  return v(be);
1166
1166
  }
@@ -1176,15 +1176,15 @@ function yg() {
1176
1176
  );
1177
1177
  }
1178
1178
  function B($) {
1179
- function re(me, be, ue, oe, ae) {
1179
+ function re(me, be, ue, oe, ie) {
1180
1180
  var ee = me[be], _e = Z(ee);
1181
1181
  if (_e !== "object")
1182
- return new p("Invalid " + oe + " `" + ae + "` of type `" + _e + "` " + ("supplied to `" + ue + "`, expected `object`."));
1182
+ return new p("Invalid " + oe + " `" + ie + "` of type `" + _e + "` " + ("supplied to `" + ue + "`, expected `object`."));
1183
1183
  for (var ye in $) {
1184
1184
  var Q = $[ye];
1185
1185
  if (typeof Q != "function")
1186
- return H(ue, oe, ae, ye, P(Q));
1187
- var Te = Q(ee, ye, ue, oe, ae + "." + ye, t);
1186
+ return H(ue, oe, ie, ye, P(Q));
1187
+ var Te = Q(ee, ye, ue, oe, ie + "." + ye, t);
1188
1188
  if (Te)
1189
1189
  return Te;
1190
1190
  }
@@ -1193,21 +1193,21 @@ function yg() {
1193
1193
  return v(re);
1194
1194
  }
1195
1195
  function N($) {
1196
- function re(me, be, ue, oe, ae) {
1196
+ function re(me, be, ue, oe, ie) {
1197
1197
  var ee = me[be], _e = Z(ee);
1198
1198
  if (_e !== "object")
1199
- return new p("Invalid " + oe + " `" + ae + "` of type `" + _e + "` " + ("supplied to `" + ue + "`, expected `object`."));
1199
+ return new p("Invalid " + oe + " `" + ie + "` of type `" + _e + "` " + ("supplied to `" + ue + "`, expected `object`."));
1200
1200
  var ye = n({}, me[be], $);
1201
1201
  for (var Q in ye) {
1202
1202
  var Te = $[Q];
1203
1203
  if (r($, Q) && typeof Te != "function")
1204
- return H(ue, oe, ae, Q, P(Te));
1204
+ return H(ue, oe, ie, Q, P(Te));
1205
1205
  if (!Te)
1206
1206
  return new p(
1207
- "Invalid " + oe + " `" + ae + "` key `" + Q + "` supplied to `" + ue + "`.\nBad object: " + JSON.stringify(me[be], null, " ") + `
1207
+ "Invalid " + oe + " `" + ie + "` key `" + Q + "` supplied to `" + ue + "`.\nBad object: " + JSON.stringify(me[be], null, " ") + `
1208
1208
  Valid keys: ` + JSON.stringify(Object.keys($), null, " ")
1209
1209
  );
1210
- var M = Te(ee, Q, ue, oe, ae + "." + Q, t);
1210
+ var M = Te(ee, Q, ue, oe, ie + "." + Q, t);
1211
1211
  if (M)
1212
1212
  return M;
1213
1213
  }
@@ -1267,7 +1267,7 @@ Valid keys: ` + JSON.stringify(Object.keys($), null, " ")
1267
1267
  }
1268
1268
  return re;
1269
1269
  }
1270
- function ie($) {
1270
+ function se($) {
1271
1271
  var re = P($);
1272
1272
  switch (re) {
1273
1273
  case "array":
@@ -2619,9 +2619,9 @@ function Fv() {
2619
2619
  }
2620
2620
  }
2621
2621
  }
2622
- var y = c, F = l, _ = i, E = s, R = n, k = d, H = r, B = m, N = g, U = t, te = a, Z = o, P = f, ie = !1;
2622
+ var y = c, F = l, _ = i, E = s, R = n, k = d, H = r, B = m, N = g, U = t, te = a, Z = o, P = f, se = !1;
2623
2623
  function de(M) {
2624
- return ie || (ie = !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.")), $(M) || x(M) === c;
2624
+ return se || (se = !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.")), $(M) || x(M) === c;
2625
2625
  }
2626
2626
  function $(M) {
2627
2627
  return x(M) === l;
@@ -2641,7 +2641,7 @@ function Fv() {
2641
2641
  function oe(M) {
2642
2642
  return x(M) === r;
2643
2643
  }
2644
- function ae(M) {
2644
+ function ie(M) {
2645
2645
  return x(M) === m;
2646
2646
  }
2647
2647
  function ee(M) {
@@ -2659,7 +2659,7 @@ function Fv() {
2659
2659
  function Te(M) {
2660
2660
  return x(M) === f;
2661
2661
  }
2662
- ot.AsyncMode = y, ot.ConcurrentMode = F, ot.ContextConsumer = _, ot.ContextProvider = E, ot.Element = R, ot.ForwardRef = k, ot.Fragment = H, ot.Lazy = B, ot.Memo = N, ot.Portal = U, ot.Profiler = te, ot.StrictMode = Z, ot.Suspense = P, ot.isAsyncMode = de, ot.isConcurrentMode = $, ot.isContextConsumer = re, ot.isContextProvider = me, ot.isElement = be, ot.isForwardRef = ue, ot.isFragment = oe, ot.isLazy = ae, ot.isMemo = ee, ot.isPortal = _e, ot.isProfiler = ye, ot.isStrictMode = Q, ot.isSuspense = Te, ot.isValidElementType = S, ot.typeOf = x;
2662
+ ot.AsyncMode = y, ot.ConcurrentMode = F, ot.ContextConsumer = _, ot.ContextProvider = E, ot.Element = R, ot.ForwardRef = k, ot.Fragment = H, ot.Lazy = B, ot.Memo = N, ot.Portal = U, ot.Profiler = te, ot.StrictMode = Z, ot.Suspense = P, ot.isAsyncMode = de, ot.isConcurrentMode = $, ot.isContextConsumer = re, ot.isContextProvider = me, ot.isElement = be, ot.isForwardRef = ue, ot.isFragment = oe, ot.isLazy = ie, ot.isMemo = ee, ot.isPortal = _e, ot.isProfiler = ye, ot.isStrictMode = Q, ot.isSuspense = Te, ot.isValidElementType = S, ot.typeOf = x;
2663
2663
  })()), ot;
2664
2664
  }
2665
2665
  var zu;
@@ -4251,12 +4251,12 @@ function m2() {
4251
4251
  } = N;
4252
4252
  let Z = (0, t.default)(N, d);
4253
4253
  return U.forEach((P) => {
4254
- let ie = !0;
4255
- if (typeof P.props == "function" ? ie = P.props((0, n.default)({
4254
+ let se = !0;
4255
+ if (typeof P.props == "function" ? se = P.props((0, n.default)({
4256
4256
  ownerState: H
4257
4257
  }, B, H)) : Object.keys(P.props).forEach((de) => {
4258
- H?.[de] !== P.props[de] && B[de] !== P.props[de] && (ie = !1);
4259
- }), ie) {
4258
+ H?.[de] !== P.props[de] && B[de] !== P.props[de] && (se = !1);
4259
+ }), se) {
4260
4260
  Array.isArray(Z) || (Z = [Z]);
4261
4261
  const de = typeof P.style == "function" ? P.style((0, n.default)({
4262
4262
  ownerState: H
@@ -4284,22 +4284,22 @@ function m2() {
4284
4284
  const {
4285
4285
  name: Z,
4286
4286
  slot: P,
4287
- skipVariantsResolver: ie,
4287
+ skipVariantsResolver: se,
4288
4288
  skipSx: de,
4289
4289
  // TODO v6: remove `lowercaseFirstLetter()` in the next major release
4290
4290
  // For more details: https://github.com/mui/material-ui/pull/37908
4291
4291
  overridesResolver: $ = y(S(P))
4292
- } = te, re = (0, t.default)(te, f), me = Z && Z.startsWith("Mui") || P ? "components" : "custom", be = ie !== void 0 ? ie : (
4292
+ } = te, re = (0, t.default)(te, f), me = Z && Z.startsWith("Mui") || P ? "components" : "custom", be = se !== void 0 ? se : (
4293
4293
  // TODO v6: remove `Root` in the next major release
4294
4294
  // For more details: https://github.com/mui/material-ui/pull/37908
4295
4295
  P && P !== "Root" && P !== "root" || !1
4296
4296
  ), ue = de || !1;
4297
4297
  let oe;
4298
4298
  process.env.NODE_ENV !== "production" && Z && (oe = `${Z}-${S(P || "Root")}`);
4299
- let ae = v;
4300
- P === "Root" || P === "root" ? ae = H : P ? ae = B : p(U) && (ae = void 0);
4299
+ let ie = v;
4300
+ P === "Root" || P === "root" ? ie = H : P ? ie = B : p(U) && (ie = void 0);
4301
4301
  const ee = (0, r.default)(U, (0, n.default)({
4302
- shouldForwardProp: ae,
4302
+ shouldForwardProp: ie,
4303
4303
  label: oe
4304
4304
  }, re)), _e = (Q) => typeof Q == "function" && Q.__emotion_real !== Q || (0, o.isPlainObject)(Q) ? (Te) => {
4305
4305
  const M = x({
@@ -5780,7 +5780,7 @@ const G1 = async (e, n, t) => {
5780
5780
  const U = (((H = a.flip) == null ? void 0 : H.index) || 0) + 1, te = _[U];
5781
5781
  if (te && (!(f === "alignment" ? w !== Vn(te) : !1) || // We leave the current main axis only if every placement on that axis
5782
5782
  // overflows the main axis.
5783
- k.every((ie) => Vn(ie.placement) === w ? ie.overflows[0] > 0 : !0)))
5783
+ k.every((se) => Vn(se.placement) === w ? se.overflows[0] > 0 : !0)))
5784
5784
  return {
5785
5785
  data: {
5786
5786
  index: U,
@@ -5790,20 +5790,20 @@ const G1 = async (e, n, t) => {
5790
5790
  placement: te
5791
5791
  }
5792
5792
  };
5793
- let Z = (B = k.filter((P) => P.overflows[0] <= 0).sort((P, ie) => P.overflows[1] - ie.overflows[1])[0]) == null ? void 0 : B.placement;
5793
+ let Z = (B = k.filter((P) => P.overflows[0] <= 0).sort((P, se) => P.overflows[1] - se.overflows[1])[0]) == null ? void 0 : B.placement;
5794
5794
  if (!Z)
5795
5795
  switch (g) {
5796
5796
  case "bestFit": {
5797
5797
  var N;
5798
- const P = (N = k.filter((ie) => {
5798
+ const P = (N = k.filter((se) => {
5799
5799
  if (F) {
5800
- const de = Vn(ie.placement);
5800
+ const de = Vn(se.placement);
5801
5801
  return de === w || // Create a bias to the `y` side axis due to horizontal
5802
5802
  // reading directions favoring greater width.
5803
5803
  de === "y";
5804
5804
  }
5805
5805
  return !0;
5806
- }).map((ie) => [ie.placement, ie.overflows.filter((de) => de > 0).reduce((de, $) => de + $, 0)]).sort((ie, de) => ie[1] - de[1])[0]) == null ? void 0 : N[0];
5806
+ }).map((se) => [se.placement, se.overflows.filter((de) => de > 0).reduce((de, $) => de + $, 0)]).sort((se, de) => se[1] - de[1])[0]) == null ? void 0 : N[0];
5807
5807
  P && (Z = P);
5808
5808
  break;
5809
5809
  }
@@ -6326,19 +6326,19 @@ function Sb(e) {
6326
6326
  isPositioned: !1
6327
6327
  }), [h, g] = K.useState(r);
6328
6328
  Xs(h, r) || g(r);
6329
- const [m, p] = K.useState(null), [v, b] = K.useState(null), w = K.useCallback((ie) => {
6330
- ie !== F.current && (F.current = ie, p(ie));
6331
- }, []), S = K.useCallback((ie) => {
6332
- ie !== _.current && (_.current = ie, b(ie));
6329
+ const [m, p] = K.useState(null), [v, b] = K.useState(null), w = K.useCallback((se) => {
6330
+ se !== F.current && (F.current = se, p(se));
6331
+ }, []), S = K.useCallback((se) => {
6332
+ se !== _.current && (_.current = se, b(se));
6333
6333
  }, []), x = a || m, y = s || v, F = K.useRef(null), _ = K.useRef(null), E = K.useRef(d), R = c != null, k = fc(c), H = fc(o), B = fc(l), N = K.useCallback(() => {
6334
6334
  if (!F.current || !_.current)
6335
6335
  return;
6336
- const ie = {
6336
+ const se = {
6337
6337
  placement: n,
6338
6338
  strategy: t,
6339
6339
  middleware: h
6340
6340
  };
6341
- H.current && (ie.platform = H.current), xb(F.current, _.current, ie).then((de) => {
6341
+ H.current && (se.platform = H.current), xb(F.current, _.current, se).then((de) => {
6342
6342
  const $ = {
6343
6343
  ...de,
6344
6344
  // The floating element's position may be recomputed while it's closed
@@ -6353,8 +6353,8 @@ function Sb(e) {
6353
6353
  });
6354
6354
  }, [h, n, t, H, B]);
6355
6355
  Ps(() => {
6356
- l === !1 && E.current.isPositioned && (E.current.isPositioned = !1, f((ie) => ({
6357
- ...ie,
6356
+ l === !1 && E.current.isPositioned && (E.current.isPositioned = !1, f((se) => ({
6357
+ ...se,
6358
6358
  isPositioned: !1
6359
6359
  })));
6360
6360
  }, [l]);
@@ -6377,16 +6377,16 @@ function Sb(e) {
6377
6377
  reference: x,
6378
6378
  floating: y
6379
6379
  }), [x, y]), P = K.useMemo(() => {
6380
- const ie = {
6380
+ const se = {
6381
6381
  position: t,
6382
6382
  left: 0,
6383
6383
  top: 0
6384
6384
  };
6385
6385
  if (!Z.floating)
6386
- return ie;
6386
+ return se;
6387
6387
  const de = vd(Z.floating, d.x), $ = vd(Z.floating, d.y);
6388
6388
  return i ? {
6389
- ...ie,
6389
+ ...se,
6390
6390
  transform: "translate(" + de + "px, " + $ + "px)",
6391
6391
  ...Oh(Z.floating) >= 1.5 && {
6392
6392
  willChange: "transform"
@@ -6511,7 +6511,7 @@ const Pb = /* @__PURE__ */ K.forwardRef(function(n, t) {
6511
6511
  const E = d * 2, R = E / 2, k = i / 2 * (l / -8 + 1), H = c / 2 * l / 4, B = !!g, N = _ && y === "end" ? "bottom" : "top";
6512
6512
  let U = _ && y === "end" ? "right" : "left";
6513
6513
  _ && w && (U = y === "end" ? "left" : "right");
6514
- const te = a?.x != null ? _ || a.x : "", Z = a?.y != null ? _ || a.y : "", P = g || "M0,0" + (" H" + i) + (" L" + (i - k) + "," + (c - H)) + (" Q" + i / 2 + "," + c + " " + k + "," + (c - H)) + " Z", ie = {
6514
+ const te = a?.x != null ? _ || a.x : "", Z = a?.y != null ? _ || a.y : "", P = g || "M0,0" + (" H" + i) + (" L" + (i - k) + "," + (c - H)) + (" Q" + i / 2 + "," + c + " " + k + "," + (c - H)) + " Z", se = {
6515
6515
  top: B ? "rotate(180deg)" : "",
6516
6516
  left: B ? "rotate(90deg)" : "rotate(-90deg)",
6517
6517
  bottom: B ? "" : "rotate(180deg)",
@@ -6530,7 +6530,7 @@ const Pb = /* @__PURE__ */ K.forwardRef(function(n, t) {
6530
6530
  [U]: te,
6531
6531
  [N]: Z,
6532
6532
  [x]: F || B ? "100%" : "calc(100% - " + E / 2 + "px)",
6533
- transform: [ie, m].filter((de) => !!de).join(" "),
6533
+ transform: [se, m].filter((de) => !!de).join(" "),
6534
6534
  ...p
6535
6535
  },
6536
6536
  children: [E > 0 && /* @__PURE__ */ u.jsx("path", {
@@ -11635,32 +11635,32 @@ const m0 = (e) => {
11635
11635
  credentials: Z ? R : void 0
11636
11636
  };
11637
11637
  N = a && new t(p, P);
11638
- let ie = await (a ? H(N, k) : H(p, P));
11638
+ let se = await (a ? H(N, k) : H(p, P));
11639
11639
  const de = d && (_ === "stream" || _ === "response");
11640
11640
  if (d && (y || de && U)) {
11641
11641
  const re = {};
11642
11642
  ["status", "statusText", "headers"].forEach((oe) => {
11643
- re[oe] = ie[oe];
11643
+ re[oe] = se[oe];
11644
11644
  });
11645
- const me = z.toFiniteNumber(ie.headers.get("content-length")), [be, ue] = y && Kd(
11645
+ const me = z.toFiniteNumber(se.headers.get("content-length")), [be, ue] = y && Kd(
11646
11646
  me,
11647
11647
  ri(Jd(y), !0)
11648
11648
  ) || [];
11649
- ie = new r(
11650
- Xd(ie.body, ef, be, () => {
11649
+ se = new r(
11650
+ Xd(se.body, ef, be, () => {
11651
11651
  ue && ue(), U && U();
11652
11652
  }),
11653
11653
  re
11654
11654
  );
11655
11655
  }
11656
11656
  _ = _ || "text";
11657
- let $ = await f[z.findKey(f, _) || "text"](ie, m);
11657
+ let $ = await f[z.findKey(f, _) || "text"](se, m);
11658
11658
  return !de && U && U(), await new Promise((re, me) => {
11659
11659
  p0(re, me, {
11660
11660
  data: $,
11661
- headers: ur.from(ie.headers),
11662
- status: ie.status,
11663
- statusText: ie.statusText,
11661
+ headers: ur.from(se.headers),
11662
+ status: se.status,
11663
+ statusText: se.statusText,
11664
11664
  config: m,
11665
11665
  request: N
11666
11666
  });
@@ -12874,12 +12874,12 @@ const JS = {
12874
12874
  onAceppInvitacion: m
12875
12875
  }) => {
12876
12876
  const { session: p, sessionoutlook: v } = Jh(), { enqueueSnackbar: b } = dl(), w = (P) => {
12877
- const ie = /* @__PURE__ */ new Date(), de = { start: Io(ie), end: Va(ie) }, $ = { start: P.fechaInicio, end: P.fechaFin };
12877
+ const se = /* @__PURE__ */ new Date(), de = { start: Io(se), end: Va(se) }, $ = { start: P.fechaInicio, end: P.fechaFin };
12878
12878
  return Yh(de, $) ? "Hoy" : Gm(P.fechaInicio) ? "Mañana" : new Intl.DateTimeFormat("es-ES", { day: "numeric", month: "long" }).format(P.fechaInicio);
12879
12879
  }, S = {};
12880
12880
  n.forEach((P) => {
12881
- const ie = w(P);
12882
- S[ie] || (S[ie] = []), S[ie].push(P);
12881
+ const se = w(P);
12882
+ S[se] || (S[se] = []), S[se].push(P);
12883
12883
  });
12884
12884
  const [x, y] = he(!1), F = () => {
12885
12885
  y(!x);
@@ -12942,13 +12942,13 @@ const JS = {
12942
12942
  ] })
12943
12943
  ] }),
12944
12944
  /* @__PURE__ */ u.jsxs("div", { className: we.eventsContainer, children: [
12945
- H === "events" && /* @__PURE__ */ u.jsx(u.Fragment, { children: Object.keys(S).length > 0 ? Object.entries(S).map(([P, ie]) => /* @__PURE__ */ u.jsxs("div", { className: `${we.eventGroup}`, children: [
12945
+ H === "events" && /* @__PURE__ */ u.jsx(u.Fragment, { children: Object.keys(S).length > 0 ? Object.entries(S).map(([P, se]) => /* @__PURE__ */ u.jsxs("div", { className: `${we.eventGroup}`, children: [
12946
12946
  /* @__PURE__ */ u.jsxs("div", { className: we.eventGroupDate, children: [
12947
12947
  /* @__PURE__ */ u.jsx("img", { src: c_, width: 15 }),
12948
12948
  " ",
12949
12949
  P
12950
12950
  ] }),
12951
- ie.map((de) => {
12951
+ se.map((de) => {
12952
12952
  const $ = ke(de.color || "#ffcc00"), re = $.toString(), me = $.clone().darken(15).toString(), be = new Intl.DateTimeFormat("es-ES", {
12953
12953
  hour: "numeric",
12954
12954
  minute: "2-digit",
@@ -14087,8 +14087,8 @@ var io = (e) => Wt(e) && !ai(e) ? e : {
14087
14087
  const Z = s.valueAsNumber || w && +w;
14088
14088
  sr(U.value) || (B = Z > U.value), sr(te.value) || (N = Z < te.value);
14089
14089
  } else {
14090
- const Z = s.valueAsDate || new Date(w), P = ($) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + $), ie = s.type == "time", de = s.type == "week";
14091
- xr(U.value) && w && (B = ie ? P(w) > P(U.value) : de ? w > U.value : Z > new Date(U.value)), xr(te.value) && w && (N = ie ? P(w) < P(te.value) : de ? w < te.value : Z < new Date(te.value));
14090
+ const Z = s.valueAsDate || new Date(w), P = ($) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + $), se = s.type == "time", de = s.type == "week";
14091
+ xr(U.value) && w && (B = se ? P(w) > P(U.value) : de ? w > U.value : Z > new Date(U.value)), xr(te.value) && w && (N = se ? P(w) < P(te.value) : de ? w < te.value : Z < new Date(te.value));
14092
14092
  }
14093
14093
  if ((B || N) && (H(!!B, U.message, te.message, un.max, un.min), !r))
14094
14094
  return x(y[p].message), y;
@@ -14208,16 +14208,16 @@ function EE(e = {}) {
14208
14208
  }, w = (C, T = [], j, ce, O = !0, W = !0) => {
14209
14209
  if (ce && j && !n.disabled) {
14210
14210
  if (s.action = !0, W && Array.isArray(pe(r, C))) {
14211
- const se = j(pe(r, C), ce.argA, ce.argB);
14212
- O && ct(r, C, se);
14211
+ const ae = j(pe(r, C), ce.argA, ce.argB);
14212
+ O && ct(r, C, ae);
14213
14213
  }
14214
14214
  if (W && Array.isArray(pe(t.errors, C))) {
14215
- const se = j(pe(t.errors, C), ce.argA, ce.argB);
14216
- O && ct(t.errors, C, se), _E(t.errors, C);
14215
+ const ae = j(pe(t.errors, C), ce.argA, ce.argB);
14216
+ O && ct(t.errors, C, ae), _E(t.errors, C);
14217
14217
  }
14218
14218
  if ((f.touchedFields || h.touchedFields) && W && Array.isArray(pe(t.touchedFields, C))) {
14219
- const se = j(pe(t.touchedFields, C), ce.argA, ce.argB);
14220
- O && ct(t.touchedFields, C, se);
14219
+ const ae = j(pe(t.touchedFields, C), ce.argA, ce.argB);
14220
+ O && ct(t.touchedFields, C, ae);
14221
14221
  }
14222
14222
  (f.dirtyFields || h.dirtyFields) && (t.dirtyFields = uo(o, a)), g.state.next({
14223
14223
  name: C,
@@ -14244,15 +14244,15 @@ function EE(e = {}) {
14244
14244
  Et(W) || ce && ce.defaultChecked || T ? ct(a, C, T ? W : bf(O._f)) : te(C, W), s.mount && !s.action && v();
14245
14245
  }
14246
14246
  }, F = (C, T, j, ce, O) => {
14247
- let W = !1, se = !1;
14247
+ let W = !1, ae = !1;
14248
14248
  const Ie = {
14249
14249
  name: C
14250
14250
  };
14251
14251
  if (!n.disabled) {
14252
14252
  if (!j || ce) {
14253
- (f.isDirty || h.isDirty) && (se = t.isDirty, t.isDirty = Ie.isDirty = B(), W = se !== Ie.isDirty);
14253
+ (f.isDirty || h.isDirty) && (ae = t.isDirty, t.isDirty = Ie.isDirty = B(), W = ae !== Ie.isDirty);
14254
14254
  const I = Lr(pe(o, C), T);
14255
- se = !!pe(t.dirtyFields, C), I ? Vt(t.dirtyFields, C) : ct(t.dirtyFields, C, !0), Ie.dirtyFields = t.dirtyFields, W = W || (f.dirtyFields || h.dirtyFields) && se !== !I;
14255
+ ae = !!pe(t.dirtyFields, C), I ? Vt(t.dirtyFields, C) : ct(t.dirtyFields, C, !0), Ie.dirtyFields = t.dirtyFields, W = W || (f.dirtyFields || h.dirtyFields) && ae !== !I;
14256
14256
  }
14257
14257
  if (j) {
14258
14258
  const I = pe(t.touchedFields, C);
@@ -14264,7 +14264,7 @@ function EE(e = {}) {
14264
14264
  }, _ = (C, T, j, ce) => {
14265
14265
  const O = pe(t.errors, C), W = (f.isValid || h.isValid) && vr(T) && t.isValid !== T;
14266
14266
  if (n.delayError && j ? (c = p(() => S(C, j)), c(n.delayError)) : (clearTimeout(l), c = null, j ? ct(t.errors, C, j) : Vt(t.errors, C)), (j ? !Lr(O, j) : O) || !nr(ce) || W) {
14267
- const se = {
14267
+ const ae = {
14268
14268
  ...ce,
14269
14269
  ...W && vr(T) ? { isValid: T } : {},
14270
14270
  errors: t.errors,
@@ -14272,8 +14272,8 @@ function EE(e = {}) {
14272
14272
  };
14273
14273
  t = {
14274
14274
  ...t,
14275
- ...se
14276
- }, g.state.next(se);
14275
+ ...ae
14276
+ }, g.state.next(ae);
14277
14277
  }
14278
14278
  }, E = async (C) => (b(C, !0), await n.resolver(a, n.context, gE(C || i.mount, r, n.criteriaMode, n.shouldUseNativeValidation))), R = async (C) => {
14279
14279
  const { errors: T } = await E(C);
@@ -14291,7 +14291,7 @@ function EE(e = {}) {
14291
14291
  for (const ce in C) {
14292
14292
  const O = C[ce];
14293
14293
  if (O) {
14294
- const { _f: W, ...se } = O;
14294
+ const { _f: W, ...ae } = O;
14295
14295
  if (W) {
14296
14296
  const Ie = i.array.has(W.name), I = O._f && vE(O._f);
14297
14297
  I && f.validatingFields && b([W.name], !0);
@@ -14300,7 +14300,7 @@ function EE(e = {}) {
14300
14300
  break;
14301
14301
  !T && (pe(J, W.name) ? Ie ? SE(t.errors, J, W.name) : ct(t.errors, W.name, J[W.name]) : Vt(t.errors, W.name));
14302
14302
  }
14303
- !nr(se) && await k(se, T, j);
14303
+ !nr(ae) && await k(ae, T, j);
14304
14304
  }
14305
14305
  }
14306
14306
  return j.valid;
@@ -14317,9 +14317,9 @@ function EE(e = {}) {
14317
14317
  let O = T;
14318
14318
  if (ce) {
14319
14319
  const W = ce._f;
14320
- W && (!W.disabled && ct(a, C, $0(T, W)), O = oi(W.ref) && sr(T) ? "" : T, j0(W.ref) ? [...W.ref.options].forEach((se) => se.selected = O.includes(se.value)) : W.refs ? ns(W.ref) ? W.refs.forEach((se) => {
14321
- (!se.defaultChecked || !se.disabled) && (Array.isArray(O) ? se.checked = !!O.find((Ie) => Ie === se.value) : se.checked = O === se.value || !!O);
14322
- }) : W.refs.forEach((se) => se.checked = se.value === O) : ql(W.ref) ? W.ref.value = "" : (W.ref.value = O, W.ref.type || g.state.next({
14320
+ W && (!W.disabled && ct(a, C, $0(T, W)), O = oi(W.ref) && sr(T) ? "" : T, j0(W.ref) ? [...W.ref.options].forEach((ae) => ae.selected = O.includes(ae.value)) : W.refs ? ns(W.ref) ? W.refs.forEach((ae) => {
14321
+ (!ae.defaultChecked || !ae.disabled) && (Array.isArray(O) ? ae.checked = !!O.find((Ie) => Ie === ae.value) : ae.checked = O === ae.value || !!O);
14322
+ }) : W.refs.forEach((ae) => ae.checked = ae.value === O) : ql(W.ref) ? W.ref.value = "" : (W.ref.value = O, W.ref.type || g.state.next({
14323
14323
  name: C,
14324
14324
  values: Bt(a)
14325
14325
  })));
@@ -14329,8 +14329,8 @@ function EE(e = {}) {
14329
14329
  for (const ce in T) {
14330
14330
  if (!T.hasOwnProperty(ce))
14331
14331
  return;
14332
- const O = T[ce], W = C + "." + ce, se = pe(r, W);
14333
- (i.array.has(C) || Wt(O) || se && !se._f) && !Hn(O) ? Z(W, O, j) : te(W, O, j);
14332
+ const O = T[ce], W = C + "." + ce, ae = pe(r, W);
14333
+ (i.array.has(C) || Wt(O) || ae && !ae._f) && !Hn(O) ? Z(W, O, j) : te(W, O, j);
14334
14334
  }
14335
14335
  }, P = (C, T, j = {}) => {
14336
14336
  const ce = pe(r, C), O = i.array.has(C), W = Bt(T);
@@ -14349,16 +14349,16 @@ function EE(e = {}) {
14349
14349
  name: s.mount ? C : void 0,
14350
14350
  values: Bt(a)
14351
14351
  });
14352
- }, ie = async (C) => {
14352
+ }, se = async (C) => {
14353
14353
  s.mount = !0;
14354
14354
  const T = C.target;
14355
14355
  let j = T.name, ce = !0;
14356
14356
  const O = pe(r, j), W = (I) => {
14357
14357
  ce = Number.isNaN(I) || Hn(I) && isNaN(I.getTime()) || Lr(I, pe(a, j, I));
14358
- }, se = xf(n.mode), Ie = xf(n.reValidateMode);
14358
+ }, ae = xf(n.mode), Ie = xf(n.reValidateMode);
14359
14359
  if (O) {
14360
14360
  let I, J;
14361
- const Se = T.type ? bf(O._f) : R0(C), ze = C.type === ni.BLUR || C.type === ni.FOCUS_OUT, $t = !yE(O._f) && !n.resolver && !pe(t.errors, j) && !O._f.deps || wE(ze, pe(t.touchedFields, j), t.isSubmitted, Ie, se), It = _f(j, i, ze);
14361
+ const Se = T.type ? bf(O._f) : R0(C), ze = C.type === ni.BLUR || C.type === ni.FOCUS_OUT, $t = !yE(O._f) && !n.resolver && !pe(t.errors, j) && !O._f.deps || wE(ze, pe(t.touchedFields, j), t.isSubmitted, Ie, ae), It = _f(j, i, ze);
14362
14362
  ct(a, j, Se), ze ? (!T || !T.readOnly) && (O._f.onBlur && O._f.onBlur(C), c && c(0)) : O._f.onChange && O._f.onChange(C);
14363
14363
  const G = F(j, Se, ze), le = !nr(G) || It;
14364
14364
  if (!ze && g.state.next({
@@ -14385,10 +14385,10 @@ function EE(e = {}) {
14385
14385
  const O = ka(C);
14386
14386
  if (n.resolver) {
14387
14387
  const W = await R(Et(C) ? C : O);
14388
- j = nr(W), ce = C ? !O.some((se) => pe(W, se)) : j;
14388
+ j = nr(W), ce = C ? !O.some((ae) => pe(W, ae)) : j;
14389
14389
  } else C ? (ce = (await Promise.all(O.map(async (W) => {
14390
- const se = pe(r, W);
14391
- return await k(se && se._f ? { [W]: se } : se);
14390
+ const ae = pe(r, W);
14391
+ return await k(ae && ae._f ? { [W]: ae } : ae);
14392
14392
  }))).every(Boolean), !(!ce && !t.isValid) && v()) : ce = j = await k(r);
14393
14393
  return g.state.next({
14394
14394
  ...!xr(C) || (f.isValid || h.isValid) && j !== t.isValid ? {} : { name: C },
@@ -14411,7 +14411,7 @@ function EE(e = {}) {
14411
14411
  errors: C ? t.errors : {}
14412
14412
  });
14413
14413
  }, ue = (C, T, j) => {
14414
- const ce = (pe(r, C, { _f: {} })._f || {}).ref, O = pe(t.errors, C) || {}, { ref: W, message: se, type: Ie, ...I } = O;
14414
+ const ce = (pe(r, C, { _f: {} })._f || {}).ref, O = pe(t.errors, C) || {}, { ref: W, message: ae, type: Ie, ...I } = O;
14415
14415
  ct(t.errors, C, {
14416
14416
  ...I,
14417
14417
  ...T,
@@ -14423,7 +14423,7 @@ function EE(e = {}) {
14423
14423
  }), j && j.shouldFocus && ce && ce.focus && ce.focus();
14424
14424
  }, oe = (C, T) => ar(C) ? g.state.subscribe({
14425
14425
  next: (j) => "values" in j && C(N(void 0, T), j)
14426
- }) : N(C, T, !0), ae = (C) => g.state.subscribe({
14426
+ }) : N(C, T, !0), ie = (C) => g.state.subscribe({
14427
14427
  next: (T) => {
14428
14428
  xE(C.name, T.name, C.exact) && bE(T, C.formState || f, Ge, C.reRenderRoot) && C.callback({
14429
14429
  values: { ...a },
@@ -14435,7 +14435,7 @@ function EE(e = {}) {
14435
14435
  }).unsubscribe, ee = (C) => (s.mount = !0, h = {
14436
14436
  ...h,
14437
14437
  ...C.formState
14438
- }, ae({
14438
+ }, ie({
14439
14439
  ...C,
14440
14440
  formState: {
14441
14441
  ...d,
@@ -14480,18 +14480,18 @@ function EE(e = {}) {
14480
14480
  pattern: ta(T.pattern)
14481
14481
  } : {},
14482
14482
  name: C,
14483
- onChange: ie,
14484
- onBlur: ie,
14483
+ onChange: se,
14484
+ onBlur: se,
14485
14485
  ref: (O) => {
14486
14486
  if (O) {
14487
14487
  Q(C, T), j = pe(r, C);
14488
- const W = Et(O.value) && O.querySelectorAll && O.querySelectorAll("input,select,textarea")[0] || O, se = fE(W), Ie = j._f.refs || [];
14489
- if (se ? Ie.find((I) => I === W) : W === j._f.ref)
14488
+ const W = Et(O.value) && O.querySelectorAll && O.querySelectorAll("input,select,textarea")[0] || O, ae = fE(W), Ie = j._f.refs || [];
14489
+ if (ae ? Ie.find((I) => I === W) : W === j._f.ref)
14490
14490
  return;
14491
14491
  ct(r, C, {
14492
14492
  _f: {
14493
14493
  ...j._f,
14494
- ...se ? {
14494
+ ...ae ? {
14495
14495
  refs: [
14496
14496
  ...Ie.filter(_c),
14497
14497
  W,
@@ -14519,8 +14519,8 @@ function EE(e = {}) {
14519
14519
  if (g.state.next({
14520
14520
  isSubmitting: !0
14521
14521
  }), n.resolver) {
14522
- const { errors: W, values: se } = await E();
14523
- b(), t.errors = W, O = Bt(se);
14522
+ const { errors: W, values: ae } = await E();
14523
+ b(), t.errors = W, O = Bt(ae);
14524
14524
  } else
14525
14525
  await k(r);
14526
14526
  if (i.disabled.size)
@@ -14551,18 +14551,18 @@ function EE(e = {}) {
14551
14551
  const j = C ? Bt(C) : o, ce = Bt(j), O = nr(C), W = O ? o : ce;
14552
14552
  if (T.keepDefaultValues || (o = j), !T.keepValues) {
14553
14553
  if (T.keepDirtyValues) {
14554
- const se = /* @__PURE__ */ new Set([
14554
+ const ae = /* @__PURE__ */ new Set([
14555
14555
  ...i.mount,
14556
14556
  ...Object.keys(uo(o, a))
14557
14557
  ]);
14558
- for (const Ie of Array.from(se)) {
14558
+ for (const Ie of Array.from(ae)) {
14559
14559
  const I = pe(t.dirtyFields, Ie), J = pe(a, Ie), Se = pe(W, Ie);
14560
14560
  I && !Et(J) ? ct(W, Ie, J) : !I && !Et(Se) && P(Ie, Se);
14561
14561
  }
14562
14562
  } else {
14563
14563
  if (Ll && Et(C))
14564
- for (const se of i.mount) {
14565
- const Ie = pe(r, se);
14564
+ for (const ae of i.mount) {
14565
+ const Ie = pe(r, ae);
14566
14566
  if (Ie && Ie._f) {
14567
14567
  const I = Array.isArray(Ie._f.refs) ? Ie._f.refs[0] : Ie._f.ref;
14568
14568
  if (oi(I)) {
@@ -14575,8 +14575,8 @@ function EE(e = {}) {
14575
14575
  }
14576
14576
  }
14577
14577
  if (T.keepFieldsRef)
14578
- for (const se of i.mount)
14579
- P(se, pe(W, se));
14578
+ for (const ae of i.mount)
14579
+ P(ae, pe(W, ae));
14580
14580
  else
14581
14581
  r = {};
14582
14582
  }
@@ -14625,7 +14625,7 @@ function EE(e = {}) {
14625
14625
  getFieldState: me,
14626
14626
  handleSubmit: Le,
14627
14627
  setError: ue,
14628
- _subscribe: ae,
14628
+ _subscribe: ie,
14629
14629
  _runSchema: E,
14630
14630
  _updateIsValidating: b,
14631
14631
  _focusError: Te,
@@ -18352,10 +18352,10 @@ const G4 = {
18352
18352
  const i = parseInt(s[0], 10), c = parseInt(s[1], 10), l = new Date(a, o, r, i, c);
18353
18353
  return isNaN(l.getTime()) || !Ur(l) ? null : l;
18354
18354
  }, J4 = ({ isVisible: e, onClose: n, onSave: t, onDelete: r, selectedDate: o, initialEvent: a, userId: s, masNombreBD: i, disId: c, onReenviar: l }) => {
18355
- const [d, f] = he(!1), [h, g] = he(!1), m = gt(/* @__PURE__ */ new Date(), "yyyy-MM-dd"), [p, v] = he(""), [b, w] = he([]), [S, x] = he(!1), y = k0(), [F, _] = he([]), [E, R] = he(""), [k, H] = he(up), [B, N] = he(!1), [U, te] = he(""), [Z, P] = he(!1), [ie, de] = he([]), [$, re] = he([]), me = Z4(U, 300), be = k.filter((G) => G.tieneConflicto).length, {
18355
+ const [d, f] = he(!1), [h, g] = he(!1), m = gt(/* @__PURE__ */ new Date(), "yyyy-MM-dd"), [p, v] = he(""), [b, w] = he([]), [S, x] = he(!1), y = k0(), [F, _] = he([]), [E, R] = he(""), [k, H] = he(up), [B, N] = he(!1), [U, te] = he(""), [Z, P] = he(!1), [se, de] = he([]), [$, re] = he([]), me = Z4(U, 300), be = k.filter((G) => G.tieneConflicto).length, {
18356
18356
  control: ue,
18357
18357
  handleSubmit: oe,
18358
- reset: ae,
18358
+ reset: ie,
18359
18359
  formState: { errors: ee, isValid: _e },
18360
18360
  watch: ye,
18361
18361
  setValue: Q
@@ -18447,7 +18447,7 @@ const G4 = {
18447
18447
  a.solID ? g(!0) : g(!1);
18448
18448
  } else {
18449
18449
  const G = o || /* @__PURE__ */ new Date(), le = /* @__PURE__ */ new Date(), Ae = new Date(G.getFullYear(), G.getMonth(), G.getDate(), le.getHours(), le.getMinutes()), Ce = jc(Ae, 1);
18450
- ae({
18450
+ ie({
18451
18451
  titulo: "",
18452
18452
  fechaInicio: gt(Ae, "yyyy-MM-dd"),
18453
18453
  horaInicio: gt(Ae, "HH:mm"),
@@ -18476,7 +18476,7 @@ const G4 = {
18476
18476
  ...G,
18477
18477
  invitados: le
18478
18478
  };
18479
- t(Ae, a?.eventoID), n(), ae(), f(!1);
18479
+ t(Ae, a?.eventoID), n(), ie(), f(!1);
18480
18480
  },
18481
18481
  (G) => {
18482
18482
  console.log("Errores de validación:", G);
@@ -18516,7 +18516,7 @@ const G4 = {
18516
18516
  const Ce = ia(bt, Ae);
18517
18517
  return Ce && Yr(Ce, G);
18518
18518
  }) : (Yr(le, G), co);
18519
- }, [Ge, Ue, bt]), se = at(() => co, []), Ie = async (G) => {
18519
+ }, [Ge, Ue, bt]), ae = at(() => co, []), Ie = async (G) => {
18520
18520
  const le = ye("fechaInicio"), Ae = ye("horaInicio"), Ce = ye("horaFin");
18521
18521
  if (console.log("currentGuests", G), !c || !le || !Ae || !Ce || G.length === 0) return;
18522
18522
  const Fe = await Promise.all(
@@ -18674,7 +18674,7 @@ const G4 = {
18674
18674
  wa,
18675
18675
  {
18676
18676
  freeSolo: !0,
18677
- options: se,
18677
+ options: ae,
18678
18678
  value: le || "",
18679
18679
  onChange: (Ce, Fe) => G(Fe || ""),
18680
18680
  onInputChange: (Ce, Fe) => G(Fe),
@@ -18913,7 +18913,7 @@ const G4 = {
18913
18913
  /* @__PURE__ */ u.jsx("div", { className: "row mb-2", children: /* @__PURE__ */ u.jsx("div", { className: "col-12", children: /* @__PURE__ */ u.jsx(z4, { onSelectGuest: I, availableSuggestions: $, onInputTextChange: $t }) }) }),
18914
18914
  Z || be > 0 && /* @__PURE__ */ u.jsx("div", { className: "row mb-2", children: /* @__PURE__ */ u.jsx("div", { className: "col-12", children: /* @__PURE__ */ u.jsx(q4, { guests: k, conflictCount: be, onViewSuggestions: () => N(!0), onDeleteGuest: J }) }) }),
18915
18915
  a?.invitados && a?.invitados?.length > 0 && /* @__PURE__ */ u.jsx("div", { className: "row mb-2", children: /* @__PURE__ */ u.jsx("div", { className: "col-12", children: /* @__PURE__ */ u.jsx(V, { children: /* @__PURE__ */ u.jsx(T4, { guests: k, onReenviar: l, esOrganizador: a?.esOrganizador }) }) }) }),
18916
- /* @__PURE__ */ u.jsx(N4, { open: B, handleClose: Se, suggestions: ie, onSelectSlot: It }),
18916
+ /* @__PURE__ */ u.jsx(N4, { open: B, handleClose: Se, suggestions: se, onSelectSlot: It }),
18917
18917
  /* @__PURE__ */ u.jsx("div", { className: "row mb-2", children: /* @__PURE__ */ u.jsx("div", { className: "col-12", children: /* @__PURE__ */ u.jsxs(
18918
18918
  V,
18919
18919
  {
@@ -19334,7 +19334,7 @@ const f5 = (e, n, t) => {
19334
19334
  ]
19335
19335
  }
19336
19336
  ), XR = ({ userId: e, leads30Days: n, leads90Days: t, disId: r, masNombreBD: o, usrNombre: a }) => {
19337
- const [s, i] = he(/* @__PURE__ */ new Date()), [c, l] = he([]), [d, f] = he(!1), [h, g] = he(null), [m, p] = he(!1), [v, b] = he(null), [w, S] = he([]), { enqueueSnackbar: x } = dl(), y = k0(), F = $l(), _ = zl(), [E, R] = he(!1), [k, H] = he([]), [B, N] = he(null), { session: U, sessionoutlook: te } = Jh(), { googleEvents: Z, setGoogleEvents: P, outlookEvents: ie, setOutlookEvents: de } = c5(), [$, re] = he([]), [me, be] = he([]), [ue, oe] = he([]), [ae, ee] = he(!1), [_e, ye] = he([]), [Q, Te] = he(), M = (Y, Ee) => {
19337
+ const [s, i] = he(/* @__PURE__ */ new Date()), [c, l] = he([]), [d, f] = he(!1), [h, g] = he(null), [m, p] = he(!1), [v, b] = he(null), [w, S] = he([]), { enqueueSnackbar: x } = dl(), y = k0(), F = $l(), _ = zl(), [E, R] = he(!1), [k, H] = he([]), [B, N] = he(null), { session: U, sessionoutlook: te } = Jh(), { googleEvents: Z, setGoogleEvents: P, outlookEvents: se, setOutlookEvents: de } = c5(), [$, re] = he([]), [me, be] = he([]), [ue, oe] = he([]), [ie, ee] = he(!1), [_e, ye] = he([]), [Q, Te] = he(), M = (Y, Ee) => {
19338
19338
  H(Y), N(Ee), R(!0);
19339
19339
  }, Le = async () => {
19340
19340
  if (e === void 0) return;
@@ -19368,12 +19368,12 @@ const f5 = (e, n, t) => {
19368
19368
  const Ee = Z.map((De) => l5(De, r, e));
19369
19369
  Y.push(...Ee);
19370
19370
  }
19371
- if (ie.length > 0 && te?.userEmail) {
19372
- const Ee = ie.map((De) => f5(De, r, e));
19371
+ if (se.length > 0 && te?.userEmail) {
19372
+ const Ee = se.map((De) => f5(De, r, e));
19373
19373
  Y.push(...Ee);
19374
19374
  }
19375
19375
  re(Y);
19376
- }, [c, Z, ie, r, e, U?.userEmail, te?.userEmail]);
19376
+ }, [c, Z, se, r, e, U?.userEmail, te?.userEmail]);
19377
19377
  const et = async (Y) => {
19378
19378
  try {
19379
19379
  if (Y?.isGoogleEvent || Y.isOutlookEvent)
@@ -19493,7 +19493,7 @@ const f5 = (e, n, t) => {
19493
19493
  be(Ee);
19494
19494
  const De = Ee.filter((je) => je.selected).map((je) => je.id);
19495
19495
  I(De);
19496
- }, se = async () => {
19496
+ }, ae = async () => {
19497
19497
  if (!(!te?.userEmail || !r)) {
19498
19498
  ee(!0);
19499
19499
  try {
@@ -19516,7 +19516,7 @@ const f5 = (e, n, t) => {
19516
19516
  ft(() => {
19517
19517
  O();
19518
19518
  }, [U?.userEmail, r]), ft(() => {
19519
- se();
19519
+ ae();
19520
19520
  }, [te?.userEmail, r]);
19521
19521
  const I = async (Y) => {
19522
19522
  if (!U?.userEmail || !r) return;
@@ -19617,7 +19617,7 @@ const f5 = (e, n, t) => {
19617
19617
  onAddEvent: C,
19618
19618
  googleCalendars: me,
19619
19619
  outlookCalendars: ue,
19620
- isLoadingCalendars: ae,
19620
+ isLoadingCalendars: ie,
19621
19621
  onToggleGoogle: W,
19622
19622
  onToggleOutlook: Ie,
19623
19623
  notifications: _e,
@@ -20242,7 +20242,7 @@ function oR({
20242
20242
  if (!t) return null;
20243
20243
  const _ = 3, [E, R] = he(null), k = !!E, [H, B] = he(!1), [N, U] = he(null), [te, Z] = he(
20244
20244
  c ?? []
20245
- ), [P, ie] = he(null), de = at(() => [...l].sort(
20245
+ ), [P, se] = he(null), de = at(() => [...l].sort(
20246
20246
  (L, X) => new Date(X.FechaAsignacion).getTime() - new Date(L.FechaAsignacion).getTime()
20247
20247
  ), [l]);
20248
20248
  ft(() => {
@@ -20251,16 +20251,16 @@ function oR({
20251
20251
  const $ = c?.length ? c : te, re = o?.title ?? ((L) => L?.Nombre || L?.name || "Sin título"), me = o?.infoItems ?? [], be = (L) => L.nombreAsesor?.trim() || (L.Email ? L.Email : "Sistema"), ue = (L) => {
20252
20252
  const X = L || "", xe = X.split(" ").filter(Boolean);
20253
20253
  return xe.length >= 2 ? (xe[0][0] + xe[1][0]).toUpperCase() : (X[0] || "?").toUpperCase();
20254
- }, oe = (L) => L?.SolID ?? L?.solID ?? L?.SolId ?? L?.SOLID ?? null, ae = at(() => {
20254
+ }, oe = (L) => L?.SolID ?? L?.solID ?? L?.SolId ?? L?.SOLID ?? null, ie = at(() => {
20255
20255
  const L = $ ?? [];
20256
20256
  return Array.isArray(L?.[0]) ? L.flat() : L;
20257
20257
  }, [$]), ee = at(() => {
20258
- const L = ae;
20258
+ const L = ie;
20259
20259
  return !P || N == null ? L : L.filter((X) => {
20260
20260
  const xe = oe(X);
20261
20261
  return xe != null && String(xe) === String(N);
20262
20262
  });
20263
- }, [ae, P, N]), _e = at(
20263
+ }, [ie, P, N]), _e = at(
20264
20264
  () => [...ee].sort(
20265
20265
  (L, X) => new Date(X.fecAlta).getTime() - new Date(L.fecAlta).getTime()
20266
20266
  ),
@@ -20276,7 +20276,7 @@ function oR({
20276
20276
  const L = Ue.trim();
20277
20277
  return L ? (s ?? []).filter((X) => Ne(X, L)) : s ?? [];
20278
20278
  }, [s, Ue]);
20279
- const C = sl(), T = il(C.breakpoints.down("md")), [j, ce] = A.useState(""), [O, W] = A.useState(!0), [se, Ie] = A.useState(!1), I = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10), J = new Date(Date.now() - 720 * 3600 * 1e3).toISOString().slice(0, 10), [Se, ze] = A.useState(J), [$t, It] = A.useState(I), [G, le] = A.useState(null), Ae = !!G, [Ce, Fe] = A.useState("En Proceso"), [Y, Ee] = he("Todos"), [De, je] = he("Todos"), Sr = [
20279
+ const C = sl(), T = il(C.breakpoints.down("md")), [j, ce] = A.useState(""), [O, W] = A.useState(!0), [ae, Ie] = A.useState(!1), I = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10), J = new Date(Date.now() - 720 * 3600 * 1e3).toISOString().slice(0, 10), [Se, ze] = A.useState(J), [$t, It] = A.useState(I), [G, le] = A.useState(null), Ae = !!G, [Ce, Fe] = A.useState("En Proceso"), [Y, Ee] = he("Todos"), [De, je] = he("Todos"), Sr = [
20280
20280
  "Algo interesado",
20281
20281
  "Interesado",
20282
20282
  "Muy interesado",
@@ -20292,7 +20292,7 @@ function oR({
20292
20292
  "Negociación y Cierre"
20293
20293
  ], sn = () => {
20294
20294
  ce(""), W(!1), Ie(!1), ze(J), It(I), Fe("Todos"), Ee("Todos"), je("Todos");
20295
- }, pr = A.useMemo(() => (j ?? "").trim() !== "" || Ce !== "Todos" || Y !== "Todos" || O || se || De !== "Todos", [j, Ce, Y, O, se, De]);
20295
+ }, pr = A.useMemo(() => (j ?? "").trim() !== "" || Ce !== "Todos" || Y !== "Todos" || O || ae || De !== "Todos", [j, Ce, Y, O, ae, De]);
20296
20296
  function Ye(L) {
20297
20297
  if (!L) return "";
20298
20298
  const X = new Date(L);
@@ -20559,7 +20559,7 @@ function oR({
20559
20559
  ], Ke = A.useMemo(() => {
20560
20560
  const L = (j ?? "").trim().toLowerCase(), X = (xe, Oe) => {
20561
20561
  if (L && !(xe.Vehiculo ?? "").toLowerCase().includes(L)) return !1;
20562
- const Rt = se ? xe.FechaCita : xe.Fecha;
20562
+ const Rt = ae ? xe.FechaCita : xe.Fecha;
20563
20563
  if (O && Rt) {
20564
20564
  const _t = cn(Rt ?? "");
20565
20565
  if (!_t) return !1;
@@ -20602,7 +20602,7 @@ function oR({
20602
20602
  O,
20603
20603
  Se,
20604
20604
  $t,
20605
- se,
20605
+ ae,
20606
20606
  Ce,
20607
20607
  Y,
20608
20608
  De
@@ -20623,10 +20623,10 @@ function oR({
20623
20623
  });
20624
20624
  if (!w) {
20625
20625
  const Er = Pr ?? _t;
20626
- U(xe), ie(Er), B(!0);
20626
+ U(xe), se(Er), B(!0);
20627
20627
  }
20628
20628
  }, Be = () => {
20629
- x?.(t), U(null), ie(null), B(!1);
20629
+ x?.(t), U(null), se(null), B(!1);
20630
20630
  }, Ht = A.useRef(!1), mt = A.useRef(null), Mt = A.useCallback(() => {
20631
20631
  if (!Ht.current) {
20632
20632
  Ht.current = !0;
@@ -21582,7 +21582,7 @@ function Dp(e, n, t) {
21582
21582
  if (de.stopPropagation(), f.onEmail)
21583
21583
  return f.onEmail(k);
21584
21584
  te && typeof window < "u" && (window.location.href = `mailto:${te}`);
21585
- }, ie = (de) => {
21585
+ }, se = (de) => {
21586
21586
  de.stopPropagation(), f.onView && f.onView(k);
21587
21587
  };
21588
21588
  return /* @__PURE__ */ u.jsxs("div", { className: m, children: [
@@ -21614,7 +21614,7 @@ function Dp(e, n, t) {
21614
21614
  type: "button",
21615
21615
  className: "btn p-0 border-0 bg-transparent",
21616
21616
  title: p.view ?? "Ver detalle",
21617
- onClick: ie,
21617
+ onClick: se,
21618
21618
  style: { width: 24, height: 24 },
21619
21619
  children: v
21620
21620
  }
@@ -21676,20 +21676,14 @@ function eT(e) {
21676
21676
  } = e, [N, U] = he(a ?? null), [te, Z] = he({
21677
21677
  open: !1,
21678
21678
  customer: null
21679
- }), [P, ie] = he([]), de = (oe) => {
21679
+ }), [P, se] = he([]), de = (oe) => {
21680
21680
  Z({ open: !0, customer: oe });
21681
21681
  }, $ = (oe) => {
21682
- console.log("🔍 openColumn ejecutado", {
21683
- haveOpenDetailForType: typeof c,
21684
- haveOpenDetailForValue: c,
21685
- row: oe
21686
- });
21687
- const ae = typeof c == "function" ? c(oe) : !!c;
21688
- if (console.log("✅ canOpen resultado:", ae), !ae) {
21682
+ if (!(typeof c == "function" ? c(oe) : !!c)) {
21689
21683
  console.log("🚫 Bloqueado - no se abre el detalle");
21690
21684
  return;
21691
21685
  }
21692
- console.log("📂 Abriendo detalle..."), h?.(oe), Z({ open: !0, customer: oe });
21686
+ h?.(oe), Z({ open: !0, customer: oe });
21693
21687
  }, re = () => {
21694
21688
  Z({ open: !1, customer: null }), v?.();
21695
21689
  }, me = at(() => l ? Dp(t ?? [], l) : Dp(t ?? [], {
@@ -21701,15 +21695,15 @@ function eT(e) {
21701
21695
  if (!r || !N) return n;
21702
21696
  const oe = me.find((ee) => ee.key === N.key);
21703
21697
  if (!oe) return n;
21704
- const ae = [...n];
21705
- return ae.sort((ee, _e) => {
21698
+ const ie = [...n];
21699
+ return ie.sort((ee, _e) => {
21706
21700
  const ye = Ec(oe, ee, 0), Q = Ec(oe, _e, 0), Te = v5(ye, Q);
21707
21701
  return N.direction === "asc" ? Te : -Te;
21708
- }), ae;
21702
+ }), ie;
21709
21703
  }, [n, me, N, r]), ue = at(() => {
21710
21704
  const oe = d?.getCustomerId;
21711
- return (ae) => {
21712
- const ee = oe?.(ae) ?? ae?.Id_cliente ?? ae?.CliID ?? ae?.id ?? ae?.ID ?? ae?.Id ?? "";
21705
+ return (ie) => {
21706
+ const ee = oe?.(ie) ?? ie?.Id_cliente ?? ie?.CliID ?? ie?.id ?? ie?.ID ?? ie?.Id ?? "";
21713
21707
  return String(ee);
21714
21708
  };
21715
21709
  }, [d]);
@@ -21717,8 +21711,8 @@ function eT(e) {
21717
21711
  if (!te.open || !te.customer) return;
21718
21712
  const oe = ue(te.customer);
21719
21713
  if (!oe) return;
21720
- const ae = (n ?? []).find((ee) => ue(ee) === oe);
21721
- ae && ae !== te.customer && Z((ee) => ({ ...ee, customer: ae }));
21714
+ const ie = (n ?? []).find((ee) => ue(ee) === oe);
21715
+ ie && ie !== te.customer && Z((ee) => ({ ...ee, customer: ie }));
21722
21716
  }, [n, te.open, te.customer, ue]), ft(() => {
21723
21717
  p && de(p);
21724
21718
  }, [p]), /* @__PURE__ */ u.jsxs("div", { children: [
@@ -21741,7 +21735,7 @@ function eT(e) {
21741
21735
  },
21742
21736
  oe.key
21743
21737
  )) }) }),
21744
- /* @__PURE__ */ u.jsx("tbody", { children: be.map((oe, ae) => (
21738
+ /* @__PURE__ */ u.jsx("tbody", { children: be.map((oe, ie) => (
21745
21739
  // <tr key={rowKey(row, ri)}>
21746
21740
  /* @__PURE__ */ u.jsx(
21747
21741
  "tr",
@@ -21754,8 +21748,8 @@ function eT(e) {
21754
21748
  },
21755
21749
  style: { cursor: "pointer" },
21756
21750
  children: me.map((ee, _e) => {
21757
- const ye = ee.Component ? /* @__PURE__ */ u.jsx(ee.Component, { row: oe, index: ae }) : ee.cell ? ee.cell(oe, ae) : (() => {
21758
- const Q = Ec(ee, oe, ae);
21751
+ const ye = ee.Component ? /* @__PURE__ */ u.jsx(ee.Component, { row: oe, index: ie }) : ee.cell ? ee.cell(oe, ie) : (() => {
21752
+ const Q = Ec(ee, oe, ie);
21759
21753
  return Q == null || Q === "" ? "" : String(Q);
21760
21754
  })();
21761
21755
  return /* @__PURE__ */ u.jsx(
@@ -21772,7 +21766,7 @@ function eT(e) {
21772
21766
  );
21773
21767
  })
21774
21768
  },
21775
- i(oe, ae)
21769
+ i(oe, ie)
21776
21770
  )
21777
21771
  )) })
21778
21772
  ] }) })
@@ -22284,7 +22278,7 @@ function tT(e) {
22284
22278
  [f]
22285
22279
  ), H = at(() => {
22286
22280
  const O = /* @__PURE__ */ new Map();
22287
- return (l ?? []).forEach((W, se) => O.set(k(W), se)), O;
22281
+ return (l ?? []).forEach((W, ae) => O.set(k(W), ae)), O;
22288
22282
  }, [l, k]), B = Cn(/* @__PURE__ */ new Set()), N = at(() => {
22289
22283
  const O = /* @__PURE__ */ new Map();
22290
22284
  return (l ?? []).forEach(
@@ -22297,7 +22291,7 @@ function tT(e) {
22297
22291
  control: w.control,
22298
22292
  name: U
22299
22293
  }), Z = (O) => O == null ? !1 : typeof O == "string" ? O.trim().length > 0 : Array.isArray(O) ? O.length > 0 : typeof O == "number" ? !Number.isNaN(O) : typeof O == "object" ? Object.keys(O).length > 0 : !0, P = at(() => U.length ? te?.every(Z) ?? !1 : !0, [te, U]), {
22300
- handleSubmit: ie,
22294
+ handleSubmit: se,
22301
22295
  formState: { isSubmitting: de, isDirty: $, isValid: re }
22302
22296
  } = w, me = d ?? ((O, W) => JSON.stringify(O).toLowerCase().includes(W.toLowerCase())), be = at(
22303
22297
  () => S.trim() ? l?.filter((O) => me(O, S)) : l,
@@ -22305,15 +22299,15 @@ function tT(e) {
22305
22299
  ), ue = at(() => {
22306
22300
  if (!be) return be;
22307
22301
  const O = B.current, W = [...be];
22308
- return W.sort((se, Ie) => {
22309
- const I = O.has(k(se)) ? 0 : 1, J = O.has(k(Ie)) ? 0 : 1;
22302
+ return W.sort((ae, Ie) => {
22303
+ const I = O.has(k(ae)) ? 0 : 1, J = O.has(k(Ie)) ? 0 : 1;
22310
22304
  if (I !== J) return I - J;
22311
- const Se = H.get(k(se)) ?? 0, ze = H.get(k(Ie)) ?? 0;
22305
+ const Se = H.get(k(ae)) ?? 0, ze = H.get(k(Ie)) ?? 0;
22312
22306
  return Se - ze;
22313
22307
  }), W;
22314
22308
  }, [be, H, k]), {
22315
22309
  currentItems: oe,
22316
- totalPages: ae,
22310
+ totalPages: ie,
22317
22311
  showingFrom: ee,
22318
22312
  showingTo: _e,
22319
22313
  totalItems: ye,
@@ -22343,10 +22337,10 @@ function tT(e) {
22343
22337
  const O = /* @__PURE__ */ new Map();
22344
22338
  return (r ?? []).forEach((W) => O.set(String(W.name), W)), O;
22345
22339
  }, [r]), bt = (O, W) => {
22346
- const se = Ge.get(String(O));
22347
- if (!se) return null;
22348
- const Ie = { xs: 12, ...se.grid, ...W || {} };
22349
- return /* @__PURE__ */ u.jsx(dn, { item: !0, ...Ie, children: se.render ? se.render(w) : kp(se, w) }, `fld-${String(O)}`);
22340
+ const ae = Ge.get(String(O));
22341
+ if (!ae) return null;
22342
+ const Ie = { xs: 12, ...ae.grid, ...W || {} };
22343
+ return /* @__PURE__ */ u.jsx(dn, { item: !0, ...Ie, children: ae.render ? ae.render(w) : kp(ae, w) }, `fld-${String(O)}`);
22350
22344
  }, xt = b ?? (e.haveId ? "edit" : "new"), C = xt !== "onlyCars", T = xt === "new" || xt === "onlyCars", j = E?.length > 0, ce = xt === "onlyCars" ? j : e.haveId ? P && $ || j : P && j;
22351
22345
  return /* @__PURE__ */ u.jsx(
22352
22346
  Oo,
@@ -22370,7 +22364,7 @@ function tT(e) {
22370
22364
  {
22371
22365
  component: "form",
22372
22366
  noValidate: !0,
22373
- onSubmit: ie(Ue),
22367
+ onSubmit: se(Ue),
22374
22368
  display: "flex",
22375
22369
  flexDirection: { xs: "column", md: "row" },
22376
22370
  width: "100%",
@@ -22434,8 +22428,8 @@ function tT(e) {
22434
22428
  alignItems: "flex-start",
22435
22429
  wrap: "wrap",
22436
22430
  width: "100%",
22437
- children: O.map((se, Ie) => {
22438
- const I = typeof se == "string" ? { name: se } : se;
22431
+ children: O.map((ae, Ie) => {
22432
+ const I = typeof ae == "string" ? { name: ae } : ae;
22439
22433
  return I.hidden?.(w) ? null : bt(
22440
22434
  I.name,
22441
22435
  I.grid
@@ -22444,8 +22438,8 @@ function tT(e) {
22444
22438
  },
22445
22439
  `row-${W}`
22446
22440
  )) : /* @__PURE__ */ u.jsx(dn, { container: !0, spacing: 2, width: "100%", children: r?.map((O, W) => {
22447
- const se = O.grid ?? { xs: 12, md: 12 };
22448
- return /* @__PURE__ */ u.jsx(dn, { item: !0, ...se, children: O.render ? O.render(w) : kp(O, w) }, `${String(O.name)}-${W}`);
22441
+ const ae = O.grid ?? { xs: 12, md: 12 };
22442
+ return /* @__PURE__ */ u.jsx(dn, { item: !0, ...ae, children: O.render ? O.render(w) : kp(O, w) }, `${String(O.name)}-${W}`);
22449
22443
  }) })
22450
22444
  }
22451
22445
  )
@@ -22675,7 +22669,7 @@ function tT(e) {
22675
22669
  sx: { borderColor: "transparent", padding: 0 },
22676
22670
  children: [
22677
22671
  oe?.map((O, W) => {
22678
- const se = f ? f(O) : W, Ie = Ne(se);
22672
+ const ae = f ? f(O) : W, Ie = Ne(ae);
22679
22673
  return /* @__PURE__ */ u.jsx(
22680
22674
  V,
22681
22675
  {
@@ -22691,7 +22685,7 @@ function tT(e) {
22691
22685
  children: /* @__PURE__ */ u.jsx(
22692
22686
  Pp,
22693
22687
  {
22694
- onClick: () => Ve(se),
22688
+ onClick: () => Ve(ae),
22695
22689
  disableRipple: !0,
22696
22690
  sx: { padding: 0 },
22697
22691
  children: /* @__PURE__ */ u.jsx(
@@ -22701,7 +22695,7 @@ function tT(e) {
22701
22695
  primary: h ? h({
22702
22696
  item: O,
22703
22697
  selected: Ie,
22704
- toggle: () => Ve(se),
22698
+ toggle: () => Ve(ae),
22705
22699
  index: W
22706
22700
  }) : null
22707
22701
  }
@@ -22711,7 +22705,7 @@ function tT(e) {
22711
22705
  }
22712
22706
  )
22713
22707
  },
22714
- `${String(se)}`
22708
+ `${String(ae)}`
22715
22709
  );
22716
22710
  }),
22717
22711
  !oe?.length && /* @__PURE__ */ u.jsx(V, { p: 3, children: /* @__PURE__ */ u.jsxs(ve, { fontSize: 14, color: "#5C6372", children: [
@@ -22738,7 +22732,7 @@ function tT(e) {
22738
22732
  xR,
22739
22733
  {
22740
22734
  currentPage: Q,
22741
- totalPages: ae,
22735
+ totalPages: ie,
22742
22736
  onPageChange: Le,
22743
22737
  itemsPerPage: Te,
22744
22738
  onItemsPerPageChange: et,
@@ -22827,9 +22821,9 @@ function rT({
22827
22821
  )
22828
22822
  ), J = B.filter((Se) => I.has(String(Se)));
22829
22823
  r({ ...t, selectedIds: J }), R(!1);
22830
- }, ie = (I, J) => Sn(I ?? "") === Sn(J ?? "");
22824
+ }, se = (I, J) => Sn(I ?? "") === Sn(J ?? "");
22831
22825
  function de(I, J, Se, ze, $t) {
22832
- const It = J ? I.some((le) => ie(le, J)) : !1, G = Se.length > 0 ? Se.some((le) => I.some((Ae) => ie(Ae, le))) : !1;
22826
+ const It = J ? I.some((le) => se(le, J)) : !1, G = Se.length > 0 ? Se.some((le) => I.some((Ae) => se(Ae, le))) : !1;
22833
22827
  ze(It), $t(G);
22834
22828
  }
22835
22829
  const $ = (I) => {
@@ -22863,12 +22857,12 @@ function rT({
22863
22857
  }, oe = at(
22864
22858
  () => (a?.Correo ?? "").trim(),
22865
22859
  [a]
22866
- ), ae = at(
22860
+ ), ie = at(
22867
22861
  () => Array.isArray(a?.Asesores) ? a.Asesores.filter((I) => I?.EmailAsesor && I?.Activo) : [],
22868
22862
  [a]
22869
22863
  ), ee = at(
22870
- () => ae.map((I) => (I.EmailAsesor ?? "").trim()).filter(Boolean),
22871
- [ae]
22864
+ () => ie.map((I) => (I.EmailAsesor ?? "").trim()).filter(Boolean),
22865
+ [ie]
22872
22866
  ), _e = Cn(!1);
22873
22867
  ft(() => {
22874
22868
  if (e && !_e.current) {
@@ -22885,7 +22879,7 @@ function rT({
22885
22879
  e || (_e.current = !1);
22886
22880
  }, [e, x, F, oe, ee]);
22887
22881
  const ye = (I) => {
22888
- const J = ae.find((Se) => Sn(Se.EmailAsesor ?? "") === Sn(I));
22882
+ const J = ie.find((Se) => Sn(Se.EmailAsesor ?? "") === Sn(I));
22889
22883
  if (J) {
22890
22884
  if (J.ImgAsesor)
22891
22885
  return /* @__PURE__ */ u.jsx(Hr, { src: J.ImgAsesor, alt: J.NombreAsesor });
@@ -22944,7 +22938,7 @@ function rT({
22944
22938
  const It = w.split(Es).filter((G) => Rc.test(G));
22945
22939
  I = vn(I, It), $(I), S("");
22946
22940
  }
22947
- const J = x ? oe : "", Se = ae.find((It) => It?.Activo && It?.EmailAsesor)?.EmailAsesor?.trim() ?? "";
22941
+ const J = x ? oe : "", Se = ie.find((It) => It?.Activo && It?.EmailAsesor)?.EmailAsesor?.trim() ?? "";
22948
22942
  o?.({
22949
22943
  recipients: I,
22950
22944
  toClient: x,
@@ -22957,7 +22951,7 @@ function rT({
22957
22951
  }, j = at(() => {
22958
22952
  const J = w.split(Es).filter(Boolean).some((Se) => Rc.test(Se));
22959
22953
  return t.recipients.length > 0 || J;
22960
- }, [t.recipients, w]), ce = (t.selectedIds?.length ?? 0) > 0, O = t.message.trim().length > 0, W = j && ce && O, se = sl(), Ie = il(se.breakpoints.down("sm"));
22954
+ }, [t.recipients, w]), ce = (t.selectedIds?.length ?? 0) > 0, O = t.message.trim().length > 0, W = j && ce && O, ae = sl(), Ie = il(ae.breakpoints.down("sm"));
22961
22955
  return /* @__PURE__ */ u.jsxs(
22962
22956
  Pm,
22963
22957
  {
@@ -23134,7 +23128,7 @@ function rT({
23134
23128
  label: "Cliente"
23135
23129
  }
23136
23130
  ),
23137
- ae.length !== 0 && /* @__PURE__ */ u.jsx(
23131
+ ie.length !== 0 && /* @__PURE__ */ u.jsx(
23138
23132
  wn,
23139
23133
  {
23140
23134
  control: /* @__PURE__ */ u.jsx(
@@ -23145,7 +23139,7 @@ function rT({
23145
23139
  size: "small"
23146
23140
  }
23147
23141
  ),
23148
- label: `Asesor${ae.length > 1 ? "es" : ""}`
23142
+ label: `Asesor${ie.length > 1 ? "es" : ""}`
23149
23143
  }
23150
23144
  )
23151
23145
  ] })