componentes-exagono 0.1.55 → 0.1.56

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
@@ -134,14 +134,14 @@ function Em() {
134
134
  }
135
135
  return null;
136
136
  }
137
- var T = Object.assign, P = 0, F, J, ne, X, j, q, me;
137
+ var T = Object.assign, P = 0, F, J, ne, X, j, q, ge;
138
138
  function $() {
139
139
  }
140
140
  $.__reactDisabledLog = !0;
141
141
  function ee() {
142
142
  {
143
143
  if (P === 0) {
144
- F = console.log, J = console.info, ne = console.warn, X = console.error, j = console.group, q = console.groupCollapsed, me = console.groupEnd;
144
+ F = console.log, J = console.info, ne = console.warn, X = console.error, j = console.group, q = console.groupCollapsed, ge = console.groupEnd;
145
145
  var x = {
146
146
  configurable: !0,
147
147
  enumerable: !0,
@@ -189,7 +189,7 @@ function Em() {
189
189
  value: q
190
190
  }),
191
191
  groupEnd: T({}, x, {
192
- value: me
192
+ value: ge
193
193
  })
194
194
  });
195
195
  }
@@ -293,7 +293,7 @@ function Em() {
293
293
  var G = x.prototype;
294
294
  return !!(G && G.isReactComponent);
295
295
  }
296
- function ge(x, G, fe) {
296
+ function me(x, G, fe) {
297
297
  if (x == null)
298
298
  return "";
299
299
  if (typeof x == "function")
@@ -311,11 +311,11 @@ function Em() {
311
311
  case c:
312
312
  return oe(x.render);
313
313
  case f:
314
- return ge(x.type, G, fe);
314
+ return me(x.type, G, fe);
315
315
  case p: {
316
316
  var ke = x, $e = ke._payload, Be = ke._init;
317
317
  try {
318
- return ge(Be($e), G, fe);
318
+ return me(Be($e), G, fe);
319
319
  } catch {
320
320
  }
321
321
  }
@@ -325,7 +325,7 @@ function Em() {
325
325
  var De = Object.prototype.hasOwnProperty, ct = {}, tt = w.ReactDebugCurrentFrame;
326
326
  function lt(x) {
327
327
  if (x) {
328
- var G = x._owner, fe = ge(x.type, x._source, G ? G.type : null);
328
+ var G = x._owner, fe = me(x.type, x._source, G ? G.type : null);
329
329
  tt.setExtraStackFrame(fe);
330
330
  } else
331
331
  tt.setExtraStackFrame(null);
@@ -470,7 +470,7 @@ function Em() {
470
470
  var Gr = w.ReactCurrentOwner, wo = w.ReactDebugCurrentFrame;
471
471
  function ur(x) {
472
472
  if (x) {
473
- var G = x._owner, fe = ge(x.type, x._source, G ? G.type : null);
473
+ var G = x._owner, fe = me(x.type, x._source, G ? G.type : null);
474
474
  wo.setExtraStackFrame(fe);
475
475
  } else
476
476
  wo.setExtraStackFrame(null);
@@ -779,14 +779,14 @@ function Um() {
779
779
  case f:
780
780
  return we;
781
781
  default:
782
- var ge = we && we.$$typeof;
783
- switch (ge) {
782
+ var me = we && we.$$typeof;
783
+ switch (me) {
784
784
  case i:
785
785
  case u:
786
786
  case m:
787
787
  case g:
788
788
  case s:
789
- return ge;
789
+ return me;
790
790
  default:
791
791
  return oe;
792
792
  }
@@ -806,7 +806,7 @@ function Um() {
806
806
  function q(O) {
807
807
  return b(O) === i;
808
808
  }
809
- function me(O) {
809
+ function ge(O) {
810
810
  return b(O) === s;
811
811
  }
812
812
  function $(O) {
@@ -836,7 +836,7 @@ function Um() {
836
836
  function ue(O) {
837
837
  return b(O) === f;
838
838
  }
839
- Ue.AsyncMode = _, Ue.ConcurrentMode = E, Ue.ContextConsumer = A, Ue.ContextProvider = V, Ue.Element = Y, Ue.ForwardRef = U, Ue.Fragment = K, Ue.Lazy = v, Ue.Memo = M, Ue.Portal = T, Ue.Profiler = P, Ue.StrictMode = F, Ue.Suspense = J, Ue.isAsyncMode = X, Ue.isConcurrentMode = j, Ue.isContextConsumer = q, Ue.isContextProvider = me, Ue.isElement = $, Ue.isForwardRef = ee, Ue.isFragment = le, Ue.isLazy = pe, Ue.isMemo = he, Ue.isPortal = xe, Ue.isProfiler = Ee, Ue.isStrictMode = Se, Ue.isSuspense = ue, Ue.isValidElementType = k, Ue.typeOf = b;
839
+ Ue.AsyncMode = _, Ue.ConcurrentMode = E, Ue.ContextConsumer = A, Ue.ContextProvider = V, Ue.Element = Y, Ue.ForwardRef = U, Ue.Fragment = K, Ue.Lazy = v, Ue.Memo = M, Ue.Portal = T, Ue.Profiler = P, Ue.StrictMode = F, Ue.Suspense = J, Ue.isAsyncMode = X, Ue.isConcurrentMode = j, Ue.isContextConsumer = q, Ue.isContextProvider = ge, Ue.isElement = $, Ue.isForwardRef = ee, Ue.isFragment = le, Ue.isLazy = pe, Ue.isMemo = he, Ue.isPortal = xe, Ue.isProfiler = Ee, Ue.isStrictMode = Se, Ue.isSuspense = ue, Ue.isValidElementType = k, Ue.typeOf = b;
840
840
  })()), Ue;
841
841
  }
842
842
  var $l;
@@ -1008,7 +1008,7 @@ function Ym() {
1008
1008
  h.prototype = Error.prototype;
1009
1009
  function y(j) {
1010
1010
  if (process.env.NODE_ENV !== "production")
1011
- var q = {}, me = 0;
1011
+ var q = {}, ge = 0;
1012
1012
  function $(le, pe, he, xe, Ee, Se, ue) {
1013
1013
  if (xe = xe || p, Se = Se || he, ue !== t) {
1014
1014
  if (c) {
@@ -1019,9 +1019,9 @@ function Ym() {
1019
1019
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
1020
1020
  var oe = xe + ":" + he;
1021
1021
  !q[oe] && // Avoid spamming the console because they are often not actionable except for lib authors
1022
- me < 3 && (a(
1022
+ ge < 3 && (a(
1023
1023
  "You are manually calling a React.PropTypes validation function for the `" + Se + "` prop on `" + xe + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
1024
- ), q[oe] = !0, me++);
1024
+ ), q[oe] = !0, ge++);
1025
1025
  }
1026
1026
  }
1027
1027
  return pe[he] == null ? le ? pe[he] === null ? new h("The " + Ee + " `" + Se + "` is marked as required " + ("in `" + xe + "`, but its value is `null`.")) : new h("The " + Ee + " `" + Se + "` is marked as required in " + ("`" + xe + "`, but its value is `undefined`.")) : null : j(pe, he, xe, Ee, Se);
@@ -1030,8 +1030,8 @@ function Ym() {
1030
1030
  return ee.isRequired = $.bind(null, !0), ee;
1031
1031
  }
1032
1032
  function w(j) {
1033
- function q(me, $, ee, le, pe, he) {
1034
- var xe = me[$], Ee = F(xe);
1033
+ function q(ge, $, ee, le, pe, he) {
1034
+ var xe = ge[$], Ee = F(xe);
1035
1035
  if (Ee !== j) {
1036
1036
  var Se = J(xe);
1037
1037
  return new h(
@@ -1047,10 +1047,10 @@ function Ym() {
1047
1047
  return y(s);
1048
1048
  }
1049
1049
  function k(j) {
1050
- function q(me, $, ee, le, pe) {
1050
+ function q(ge, $, ee, le, pe) {
1051
1051
  if (typeof j != "function")
1052
1052
  return new h("Property `" + pe + "` of component `" + ee + "` has invalid PropType notation inside arrayOf.");
1053
- var he = me[$];
1053
+ var he = ge[$];
1054
1054
  if (!Array.isArray(he)) {
1055
1055
  var xe = F(he);
1056
1056
  return new h("Invalid " + le + " `" + pe + "` of type " + ("`" + xe + "` supplied to `" + ee + "`, expected an array."));
@@ -1065,8 +1065,8 @@ function Ym() {
1065
1065
  return y(q);
1066
1066
  }
1067
1067
  function b() {
1068
- function j(q, me, $, ee, le) {
1069
- var pe = q[me];
1068
+ function j(q, ge, $, ee, le) {
1069
+ var pe = q[ge];
1070
1070
  if (!i(pe)) {
1071
1071
  var he = F(pe);
1072
1072
  return new h("Invalid " + ee + " `" + le + "` of type " + ("`" + he + "` supplied to `" + $ + "`, expected a single ReactElement."));
@@ -1076,8 +1076,8 @@ function Ym() {
1076
1076
  return y(j);
1077
1077
  }
1078
1078
  function _() {
1079
- function j(q, me, $, ee, le) {
1080
- var pe = q[me];
1079
+ function j(q, ge, $, ee, le) {
1080
+ var pe = q[ge];
1081
1081
  if (!e.isValidElementType(pe)) {
1082
1082
  var he = F(pe);
1083
1083
  return new h("Invalid " + ee + " `" + le + "` of type " + ("`" + he + "` supplied to `" + $ + "`, expected a single ReactElement type."));
@@ -1087,9 +1087,9 @@ function Ym() {
1087
1087
  return y(j);
1088
1088
  }
1089
1089
  function E(j) {
1090
- function q(me, $, ee, le, pe) {
1091
- if (!(me[$] instanceof j)) {
1092
- var he = j.name || p, xe = X(me[$]);
1090
+ function q(ge, $, ee, le, pe) {
1091
+ if (!(ge[$] instanceof j)) {
1092
+ var he = j.name || p, xe = X(ge[$]);
1093
1093
  return new h("Invalid " + le + " `" + pe + "` of type " + ("`" + xe + "` supplied to `" + ee + "`, expected ") + ("instance of `" + he + "`."));
1094
1094
  }
1095
1095
  return null;
@@ -1101,8 +1101,8 @@ function Ym() {
1101
1101
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
1102
1102
  "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])."
1103
1103
  ) : a("Invalid argument supplied to oneOf, expected an array.")), s;
1104
- function q(me, $, ee, le, pe) {
1105
- for (var he = me[$], xe = 0; xe < j.length; xe++)
1104
+ function q(ge, $, ee, le, pe) {
1105
+ for (var he = ge[$], xe = 0; xe < j.length; xe++)
1106
1106
  if (m(he, j[xe]))
1107
1107
  return null;
1108
1108
  var Ee = JSON.stringify(j, function(ue, O) {
@@ -1114,10 +1114,10 @@ function Ym() {
1114
1114
  return y(q);
1115
1115
  }
1116
1116
  function V(j) {
1117
- function q(me, $, ee, le, pe) {
1117
+ function q(ge, $, ee, le, pe) {
1118
1118
  if (typeof j != "function")
1119
1119
  return new h("Property `" + pe + "` of component `" + ee + "` has invalid PropType notation inside objectOf.");
1120
- var he = me[$], xe = F(he);
1120
+ var he = ge[$], xe = F(he);
1121
1121
  if (xe !== "object")
1122
1122
  return new h("Invalid " + le + " `" + pe + "` of type " + ("`" + xe + "` supplied to `" + ee + "`, expected an object."));
1123
1123
  for (var Ee in he)
@@ -1134,10 +1134,10 @@ function Ym() {
1134
1134
  if (!Array.isArray(j))
1135
1135
  return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), s;
1136
1136
  for (var q = 0; q < j.length; q++) {
1137
- var me = j[q];
1138
- if (typeof me != "function")
1137
+ var ge = j[q];
1138
+ if (typeof ge != "function")
1139
1139
  return a(
1140
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ne(me) + " at index " + q + "."
1140
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ne(ge) + " at index " + q + "."
1141
1141
  ), s;
1142
1142
  }
1143
1143
  function $(ee, le, pe, he, xe) {
@@ -1153,19 +1153,19 @@ function Ym() {
1153
1153
  return y($);
1154
1154
  }
1155
1155
  function U() {
1156
- function j(q, me, $, ee, le) {
1157
- return T(q[me]) ? null : new h("Invalid " + ee + " `" + le + "` supplied to " + ("`" + $ + "`, expected a ReactNode."));
1156
+ function j(q, ge, $, ee, le) {
1157
+ return T(q[ge]) ? null : new h("Invalid " + ee + " `" + le + "` supplied to " + ("`" + $ + "`, expected a ReactNode."));
1158
1158
  }
1159
1159
  return y(j);
1160
1160
  }
1161
- function K(j, q, me, $, ee) {
1161
+ function K(j, q, ge, $, ee) {
1162
1162
  return new h(
1163
- (j || "React class") + ": " + q + " type `" + me + "." + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + ee + "`."
1163
+ (j || "React class") + ": " + q + " type `" + ge + "." + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + ee + "`."
1164
1164
  );
1165
1165
  }
1166
1166
  function v(j) {
1167
- function q(me, $, ee, le, pe) {
1168
- var he = me[$], xe = F(he);
1167
+ function q(ge, $, ee, le, pe) {
1168
+ var he = ge[$], xe = F(he);
1169
1169
  if (xe !== "object")
1170
1170
  return new h("Invalid " + le + " `" + pe + "` of type `" + xe + "` " + ("supplied to `" + ee + "`, expected `object`."));
1171
1171
  for (var Ee in j) {
@@ -1181,18 +1181,18 @@ function Ym() {
1181
1181
  return y(q);
1182
1182
  }
1183
1183
  function M(j) {
1184
- function q(me, $, ee, le, pe) {
1185
- var he = me[$], xe = F(he);
1184
+ function q(ge, $, ee, le, pe) {
1185
+ var he = ge[$], xe = F(he);
1186
1186
  if (xe !== "object")
1187
1187
  return new h("Invalid " + le + " `" + pe + "` of type `" + xe + "` " + ("supplied to `" + ee + "`, expected `object`."));
1188
- var Ee = n({}, me[$], j);
1188
+ var Ee = n({}, ge[$], j);
1189
1189
  for (var Se in Ee) {
1190
1190
  var ue = j[Se];
1191
1191
  if (r(j, Se) && typeof ue != "function")
1192
1192
  return K(ee, le, pe, Se, J(ue));
1193
1193
  if (!ue)
1194
1194
  return new h(
1195
- "Invalid " + le + " `" + pe + "` key `" + Se + "` supplied to `" + ee + "`.\nBad object: " + JSON.stringify(me[$], null, " ") + `
1195
+ "Invalid " + le + " `" + pe + "` key `" + Se + "` supplied to `" + ee + "`.\nBad object: " + JSON.stringify(ge[$], null, " ") + `
1196
1196
  Valid keys: ` + JSON.stringify(Object.keys(j), null, " ")
1197
1197
  );
1198
1198
  var O = ue(he, Se, ee, le, pe + "." + Se, t);
@@ -1218,13 +1218,13 @@ Valid keys: ` + JSON.stringify(Object.keys(j), null, " ")
1218
1218
  return !0;
1219
1219
  var q = f(j);
1220
1220
  if (q) {
1221
- var me = q.call(j), $;
1221
+ var ge = q.call(j), $;
1222
1222
  if (q !== j.entries) {
1223
- for (; !($ = me.next()).done; )
1223
+ for (; !($ = ge.next()).done; )
1224
1224
  if (!T($.value))
1225
1225
  return !1;
1226
1226
  } else
1227
- for (; !($ = me.next()).done; ) {
1227
+ for (; !($ = ge.next()).done; ) {
1228
1228
  var ee = $.value;
1229
1229
  if (ee && !T(ee[1]))
1230
1230
  return !1;
@@ -13261,7 +13261,7 @@ function D_(e = {}) {
13261
13261
  error: ie((I || t).errors, C),
13262
13262
  isValidating: !!ie(t.validatingFields, C),
13263
13263
  isTouched: !!ie((I || t).touchedFields, C)
13264
- }), me = (C) => {
13264
+ }), ge = (C) => {
13265
13265
  C && Bo(C).forEach((I) => St(t.errors, I)), p.state.next({
13266
13266
  errors: C ? t.errors : {}
13267
13267
  });
@@ -13452,7 +13452,7 @@ function D_(e = {}) {
13452
13452
  isSubmitting: !1,
13453
13453
  defaultValues: o
13454
13454
  });
13455
- }, ge = (C, I) => we(yr(C) ? C(a) : C, I), De = (C, I = {}) => {
13455
+ }, me = (C, I) => we(yr(C) ? C(a) : C, I), De = (C, I = {}) => {
13456
13456
  const W = ie(r, C), ce = W && W._f;
13457
13457
  if (ce) {
13458
13458
  const re = ce.refs ? ce.refs[0] : ce.ref;
@@ -13482,7 +13482,7 @@ function D_(e = {}) {
13482
13482
  _getFieldArray: M,
13483
13483
  _reset: we,
13484
13484
  _resetDefaultValues: () => yr(n.defaultValues) && n.defaultValues().then((C) => {
13485
- ge(C, n.resetOptions), p.state.next({
13485
+ me(C, n.resetOptions), p.state.next({
13486
13486
  isLoading: !1
13487
13487
  });
13488
13488
  }),
@@ -13531,9 +13531,9 @@ function D_(e = {}) {
13531
13531
  watch: ee,
13532
13532
  setValue: F,
13533
13533
  getValues: j,
13534
- reset: ge,
13534
+ reset: me,
13535
13535
  resetField: oe,
13536
- clearErrors: me,
13536
+ clearErrors: ge,
13537
13537
  unregister: he,
13538
13538
  setError: $,
13539
13539
  setFocus: De,
@@ -16142,21 +16142,21 @@ const ef = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, tf = (e, n) => {
16142
16142
  const O = setTimeout(() => {
16143
16143
  b.getClients(m, c, i, s).then((oe) => {
16144
16144
  if (k(!1), oe) {
16145
- const ge = oe.map((De) => De.solID);
16146
- E([...new Set(ge)]);
16145
+ const me = oe.map((De) => De.solID);
16146
+ E([...new Set(me)]);
16147
16147
  } else
16148
16148
  E([]);
16149
- const we = Array.from(new Map(oe.map((ge) => [ge.nombreCliente, ge])).values());
16149
+ const we = Array.from(new Map(oe.map((me) => [me.nombreCliente, me])).values());
16150
16150
  if (we.length > 0)
16151
16151
  w(we), V("");
16152
16152
  else if (a?.client && a.solID !== null) {
16153
- const ge = [
16153
+ const me = [
16154
16154
  {
16155
16155
  solID: a.solID,
16156
16156
  nombreCliente: a.client
16157
16157
  }
16158
16158
  ];
16159
- w(ge), V("Sin resultados");
16159
+ w(me), V("Sin resultados");
16160
16160
  } else
16161
16161
  w([]), V("Sin resultados");
16162
16162
  }).catch((oe) => {
@@ -16178,14 +16178,14 @@ const ef = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, tf = (e, n) => {
16178
16178
  const O = at(a.fechaInicio, "yyyy-MM-dd") === at(a.fechaFin, "yyyy-MM-dd");
16179
16179
  u(!O), P("titulo", a?.titulo), P("fechaInicio", at(a.fechaInicio, "yyyy-MM-dd")), P("fechaFin", at(a.fechaFin, "yyyy-MM-dd")), P("horaInicio", at(a.fechaInicio, "HH:mm")), P("horaFin", at(a.fechaFin, "HH:mm")), P("horaInicio2", at(a.fechaFin, "HH:mm")), P("descripcion", a.descripcion), P("link", a.link), P("repetir", "false"), P("color", a.color), P("todoElDia", a.todoElDia), P("solID", a.solID), P("client", a.client), a.solID ? p(!0) : p(!1);
16180
16180
  } else {
16181
- const O = o || /* @__PURE__ */ new Date(), oe = /* @__PURE__ */ new Date(), we = new Date(O.getFullYear(), O.getMonth(), O.getDate(), oe.getHours(), oe.getMinutes()), ge = oc(we, 1);
16181
+ const O = o || /* @__PURE__ */ new Date(), oe = /* @__PURE__ */ new Date(), we = new Date(O.getFullYear(), O.getMonth(), O.getDate(), oe.getHours(), oe.getMinutes()), me = oc(we, 1);
16182
16182
  K({
16183
16183
  titulo: "",
16184
16184
  fechaInicio: at(we, "yyyy-MM-dd"),
16185
16185
  horaInicio: at(we, "HH:mm"),
16186
- fechaFin: at(ge, "yyyy-MM-dd"),
16187
- horaFin: at(ge, "HH:mm"),
16188
- horaInicio2: at(ge, "HH:mm"),
16186
+ fechaFin: at(me, "yyyy-MM-dd"),
16187
+ horaFin: at(me, "HH:mm"),
16188
+ horaInicio2: at(me, "HH:mm"),
16189
16189
  todoElDia: !1,
16190
16190
  client: "",
16191
16191
  repetir: "No repetir",
@@ -16214,34 +16214,34 @@ const ef = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, tf = (e, n) => {
16214
16214
  P("fechaFin", at(we, "yyyy-MM-dd"));
16215
16215
  }
16216
16216
  u(!0);
16217
- }, q = T("fechaInicio"), me = T("horaInicio"), $ = T("fechaFin"), ee = T("horaFin"), [le, pe] = ve(null), [he, xe] = ve(null);
16217
+ }, q = T("fechaInicio"), ge = T("horaInicio"), $ = T("fechaFin"), ee = T("horaFin"), [le, pe] = ve(null), [he, xe] = ve(null);
16218
16218
  ut(() => {
16219
- (le === null || le !== me) && pe(me);
16220
- }, [me, le]), ut(() => {
16219
+ (le === null || le !== ge) && pe(ge);
16220
+ }, [ge, le]), ut(() => {
16221
16221
  (he === null || he !== ee) && xe(ee ?? "");
16222
16222
  }, [ee, he]);
16223
16223
  const Ee = T("todoElDia");
16224
16224
  ut(() => {
16225
- if (Ee || !me || !ee || !q || !$)
16225
+ if (Ee || !ge || !ee || !q || !$)
16226
16226
  return;
16227
- const O = Io(q, me), oe = Io($, ee);
16227
+ const O = Io(q, ge), oe = Io($, ee);
16228
16228
  if (!O || !oe || !br(O) || !br(oe))
16229
16229
  return;
16230
- const we = Gn(O, oe), ge = we && (wr(O, oe) || O.getTime() === oe.getTime()), De = zt(oe, O) && !we;
16231
- (ge || De) && (P("horaFin", ""), xe(""));
16230
+ const we = Gn(O, oe), me = we && (wr(O, oe) || O.getTime() === oe.getTime()), De = zt(oe, O) && !we;
16231
+ (me || De) && (P("horaFin", ""), xe(""));
16232
16232
  }, [
16233
- me,
16233
+ ge,
16234
16234
  q
16235
16235
  ]);
16236
16236
  const Se = qe(() => {
16237
- if (!me || !q)
16237
+ if (!ge || !q)
16238
16238
  return Yn;
16239
- const O = Io(q, me), oe = Io($, "00:00");
16239
+ const O = Io(q, ge), oe = Io($, "00:00");
16240
16240
  return !O || !oe || !br(O) || !br(oe) || zt(oe, O) && !Gn(oe, O) ? Yn : Gn(O, oe) ? Yn.filter((we) => {
16241
- const ge = Io($, we);
16242
- return ge && wr(ge, O);
16241
+ const me = Io($, we);
16242
+ return me && wr(me, O);
16243
16243
  }) : (wr(oe, O), Yn);
16244
- }, [me, q, $]), ue = qe(() => Yn, []);
16244
+ }, [ge, q, $]), ue = qe(() => Yn, []);
16245
16245
  return /* @__PURE__ */ d.jsx(Ic, { open: e, onClose: n, children: /* @__PURE__ */ d.jsx("form", { onSubmit: X, children: /* @__PURE__ */ d.jsxs(Q, { sx: tE, children: [
16246
16246
  /* @__PURE__ */ d.jsx(Ft, { "aria-label": "close", onClick: n, sx: { position: "absolute", right: 8, top: 12 }, children: /* @__PURE__ */ d.jsx(qr, {}) }),
16247
16247
  /* @__PURE__ */ d.jsx(Me, { variant: "h6", mb: 2, children: a ? "Editar evento" : "Agregar evento" }),
@@ -16332,18 +16332,18 @@ const ef = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, tf = (e, n) => {
16332
16332
  freeSolo: !0,
16333
16333
  options: ue,
16334
16334
  value: oe || "",
16335
- onChange: (ge, De) => O(De || ""),
16336
- onInputChange: (ge, De) => O(De),
16337
- renderInput: (ge) => /* @__PURE__ */ d.jsx(
16335
+ onChange: (me, De) => O(De || ""),
16336
+ onInputChange: (me, De) => O(De),
16337
+ renderInput: (me) => /* @__PURE__ */ d.jsx(
16338
16338
  rr,
16339
16339
  {
16340
- ...ge,
16340
+ ...me,
16341
16341
  ...we,
16342
16342
  size: "small",
16343
16343
  error: !!v.horaInicio,
16344
16344
  helperText: v.horaInicio?.message,
16345
16345
  InputProps: {
16346
- ...ge.InputProps,
16346
+ ...me.InputProps,
16347
16347
  endAdornment: /* @__PURE__ */ d.jsx(
16348
16348
  Ji,
16349
16349
  {
@@ -16376,18 +16376,18 @@ const ef = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, tf = (e, n) => {
16376
16376
  freeSolo: !0,
16377
16377
  options: Se,
16378
16378
  value: oe || "",
16379
- onChange: (ge, De) => O(De || ""),
16380
- onInputChange: (ge, De) => O(De),
16381
- renderInput: (ge) => /* @__PURE__ */ d.jsx(
16379
+ onChange: (me, De) => O(De || ""),
16380
+ onInputChange: (me, De) => O(De),
16381
+ renderInput: (me) => /* @__PURE__ */ d.jsx(
16382
16382
  rr,
16383
16383
  {
16384
- ...ge,
16384
+ ...me,
16385
16385
  ...we,
16386
16386
  size: "small",
16387
16387
  error: !!v.horaFin,
16388
16388
  helperText: v.horaFin?.message,
16389
16389
  InputProps: {
16390
- ...ge.InputProps,
16390
+ ...me.InputProps,
16391
16391
  endAdornment: /* @__PURE__ */ d.jsx(
16392
16392
  Ji,
16393
16393
  {
@@ -16776,11 +16776,11 @@ const QT = ({ userId: e, leads30Days: n, leads90Days: t, disId: r, masNombreBD:
16776
16776
  J.current && clearTimeout(J.current);
16777
16777
  };
16778
16778
  }, [a, e, v]), ut(() => {
16779
- const O = po(/* @__PURE__ */ new Date()), oe = ta(Yr(O, 6)), we = { start: O, end: oe }, ge = i.filter((De) => {
16779
+ const O = po(/* @__PURE__ */ new Date()), oe = ta(Yr(O, 6)), we = { start: O, end: oe }, me = i.filter((De) => {
16780
16780
  const ct = { start: De.fechaInicio, end: De.fechaFin };
16781
16781
  return Sp(ct, we);
16782
16782
  }).sort((De, ct) => De.fechaInicio.getTime() - ct.fechaInicio.getTime());
16783
- S(ge);
16783
+ S(me);
16784
16784
  }, [i]);
16785
16785
  const ne = async (ue) => {
16786
16786
  try {
@@ -16794,12 +16794,12 @@ const QT = ({ userId: e, leads30Days: n, leads90Days: t, disId: r, masNombreBD:
16794
16794
  }, j = async (ue, O) => {
16795
16795
  let oe, we;
16796
16796
  ue.todoElDia ? (oe = /* @__PURE__ */ new Date(`${ue.fechaInicio}T${ue.horaInicio}`), we = /* @__PURE__ */ new Date(`${ue.fechaInicio}T${ue.horaFin}`)) : (oe = /* @__PURE__ */ new Date(`${ue.fechaInicio}T${ue.horaInicio}`), we = ue.fechaFin && ue.horaFin ? /* @__PURE__ */ new Date(`${ue.fechaFin}T${ue.horaFin}`) : /* @__PURE__ */ new Date(`${ue.fechaInicio}T${ue.horaFin}`));
16797
- const ge = at(oe, "yyyy-MM-dd HH:mm:ss.SSS"), De = at(we, "yyyy-MM-dd HH:mm:ss.SSS");
16797
+ const me = at(oe, "yyyy-MM-dd HH:mm:ss.SSS"), De = at(we, "yyyy-MM-dd HH:mm:ss.SSS");
16798
16798
  if (O) {
16799
16799
  const tt = {
16800
16800
  ...ue,
16801
16801
  eventoID: O,
16802
- fechaInicio: ge,
16802
+ fechaInicio: me,
16803
16803
  fechaFin: De,
16804
16804
  solID: ue.solID ?? null,
16805
16805
  disID: r ?? null,
@@ -16815,7 +16815,7 @@ const QT = ({ userId: e, leads30Days: n, leads90Days: t, disId: r, masNombreBD:
16815
16815
  } else {
16816
16816
  const tt = {
16817
16817
  ...ue,
16818
- fechaInicio: ge,
16818
+ fechaInicio: me,
16819
16819
  fechaFin: De,
16820
16820
  todoElDia: ue.todoElDia,
16821
16821
  solID: ue.solID ?? null,
@@ -16835,7 +16835,7 @@ const QT = ({ userId: e, leads30Days: n, leads90Days: t, disId: r, masNombreBD:
16835
16835
  }
16836
16836
  }, q = () => {
16837
16837
  s((ue) => new Date(ue.getFullYear(), ue.getMonth() - 1, 1));
16838
- }, me = () => {
16838
+ }, ge = () => {
16839
16839
  s((ue) => new Date(ue.getFullYear(), ue.getMonth() + 1, 1));
16840
16840
  }, $ = () => {
16841
16841
  m(!0);
@@ -16870,7 +16870,7 @@ const QT = ({ userId: e, leads30Days: n, leads90Days: t, disId: r, masNombreBD:
16870
16870
  /* @__PURE__ */ d.jsx(
16871
16871
  sy,
16872
16872
  {
16873
- header: /* @__PURE__ */ d.jsx(j1, { currentDate: a, onPrevMonth: q, onNextMonth: me, onAddEvent: ee, onDateChange: pe }),
16873
+ header: /* @__PURE__ */ d.jsx(j1, { currentDate: a, onPrevMonth: q, onNextMonth: ge, onAddEvent: ee, onDateChange: pe }),
16874
16874
  sidebar: /* @__PURE__ */ d.jsx(Nw, { onEventClick: ne, upcomingEvents: w, onSyncOutlook: le, leads30Days: n, leads90Days: t, disID: r, usrID: e }),
16875
16875
  mainContent: /* @__PURE__ */ d.jsx(c_, { onSeeMoreClick: F, currentDate: a, events: T, onDayClick: he, onEventClick: ne })
16876
16876
  }
@@ -17904,7 +17904,7 @@ function Yh(e) {
17904
17904
  ...y ?? {}
17905
17905
  },
17906
17906
  children: /* @__PURE__ */ d.jsx(In, { disablePadding: !0, children: M.map((X, j) => {
17907
- const q = J(X), me = q ? X.term : r(X);
17907
+ const q = J(X), ge = q ? X.term : r(X);
17908
17908
  return /* @__PURE__ */ d.jsxs(
17909
17909
  ss,
17910
17910
  {
@@ -17914,7 +17914,7 @@ function Yh(e) {
17914
17914
  $.preventDefault();
17915
17915
  },
17916
17916
  onClick: () => {
17917
- c?.(X), K(me), _(!1), A(-1);
17917
+ c?.(X), K(ge), _(!1), A(-1);
17918
17918
  },
17919
17919
  sx: { display: "flex", alignItems: "center", gap: 1 },
17920
17920
  children: [
@@ -17926,7 +17926,7 @@ function Yh(e) {
17926
17926
  ) }) }),
17927
17927
  f ? f({
17928
17928
  item: X,
17929
- label: me,
17929
+ label: ge,
17930
17930
  query: k,
17931
17931
  isRecent: q,
17932
17932
  highlighted: j === E
@@ -17934,7 +17934,7 @@ function Yh(e) {
17934
17934
  no,
17935
17935
  {
17936
17936
  primaryTypographyProps: { component: "span" },
17937
- primary: nT(me, k)
17937
+ primary: nT(ge, k)
17938
17938
  }
17939
17939
  )
17940
17940
  ]
@@ -18000,14 +18000,14 @@ function sT({
18000
18000
  }, [P, F] = ve(""), [J, ne] = ve([]), X = qe(() => s ?? [], [s]), j = qe(() => {
18001
18001
  const $ = P.trim();
18002
18002
  return $ ? (s ?? []).filter((ee) => T(ee, $)) : s ?? [];
18003
- }, [s, P]), q = Ms(), me = Uo(q.breakpoints.down("md"));
18004
- return console.log("isMdDown", me), /* @__PURE__ */ d.jsx(
18003
+ }, [s, P]), q = Ms(), ge = Uo(q.breakpoints.down("md"));
18004
+ return /* @__PURE__ */ d.jsx(
18005
18005
  Fo,
18006
18006
  {
18007
18007
  open: e,
18008
18008
  onClose: n,
18009
18009
  fullWidth: !0,
18010
- fullScreen: me,
18010
+ fullScreen: ge,
18011
18011
  PaperProps: {
18012
18012
  sx: {
18013
18013
  height: { xs: "100dvh", md: "90vh" },
@@ -19206,10 +19206,10 @@ function JT(e) {
19206
19206
  }, [s, v]), R.useEffect(() => {
19207
19207
  e.onFormReady?.(v);
19208
19208
  }, []);
19209
- const [M, T] = ve(""), [P, F] = ve(!1), [J, ne] = ve(k), X = Array.isArray(y) && !!w, [j, q] = ve(l ?? []), [me, $] = ve(!1), [ee, le] = ve(""), [pe, he] = ve([]);
19209
+ const [M, T] = ve(""), [P, F] = ve(!1), [J, ne] = ve(k), X = Array.isArray(y) && !!w, [j, q] = ve(l ?? []), [ge, $] = ve(!1), [ee, le] = ve(""), [pe, he] = ve([]);
19210
19210
  ut(() => {
19211
19211
  he(Y ?? []);
19212
- }, []), console.log("recientes", pe);
19212
+ }, []);
19213
19213
  const xe = qe(
19214
19214
  () => Array.isArray(_) ? _ : u ?? [],
19215
19215
  [_, u]
@@ -19223,7 +19223,7 @@ function JT(e) {
19223
19223
  ut(() => {
19224
19224
  q(l ?? []);
19225
19225
  }, [l]);
19226
- const ge = (N) => g ? g(N) : p ? p(N) : N?.IdAuto, De = X ? y : J, ct = (N) => {
19226
+ const me = (N) => g ? g(N) : p ? p(N) : N?.IdAuto, De = X ? y : J, ct = (N) => {
19227
19227
  const se = typeof N == "function" ? N(De) : N;
19228
19228
  X ? w(se) : ne(se);
19229
19229
  }, [tt, lt] = ve({ open: !1, addedIds: [], removedIds: [] }), C = R.useCallback(
@@ -19233,7 +19233,7 @@ function JT(e) {
19233
19233
  const N = /* @__PURE__ */ new Map();
19234
19234
  return (u ?? []).forEach((se, Ce) => N.set(C(se), Ce)), N;
19235
19235
  }, [u, C]), W = Kt(/* @__PURE__ */ new Set()), ce = (N) => N?.BajaLogicaAuto === 1 || N?.BajaLogicaAuto === !0 || N?.BajaLogicaAuto === "1", re = (N) => !ce(N), D = qe(
19236
- () => (j ?? []).filter(re).map(ge),
19236
+ () => (j ?? []).filter(re).map(me),
19237
19237
  [j]
19238
19238
  ), z = () => {
19239
19239
  we.current = [...D], W.current = new Set(D), ct(D), F(!0);
@@ -19309,10 +19309,10 @@ function JT(e) {
19309
19309
  items: Ce
19310
19310
  });
19311
19311
  let Te = j.map((pt) => {
19312
- const tr = ge(pt);
19312
+ const tr = me(pt);
19313
19313
  return se.includes(tr) ? { ...pt, BajaLogicaAuto: 1 } : pt;
19314
19314
  });
19315
- const Fe = new Map(Te.map((pt) => [ge(pt), pt]));
19315
+ const Fe = new Map(Te.map((pt) => [me(pt), pt]));
19316
19316
  for (const pt of N) {
19317
19317
  const tr = Fe.get(pt);
19318
19318
  if (tr)
@@ -19323,20 +19323,20 @@ function JT(e) {
19323
19323
  }
19324
19324
  }
19325
19325
  Te = Array.from(Fe.values()), q(Te);
19326
- const er = Te.filter(re).map(ge);
19326
+ const er = Te.filter(re).map(me);
19327
19327
  we.current = er, ct(er);
19328
19328
  } else {
19329
19329
  let Te = j.filter(
19330
- (pt) => !se.includes(ge(pt))
19330
+ (pt) => !se.includes(me(pt))
19331
19331
  );
19332
- const Fe = new Set(Te.map(ge));
19332
+ const Fe = new Set(Te.map(me));
19333
19333
  for (const pt of N)
19334
19334
  if (!Fe.has(pt)) {
19335
19335
  const tr = ae.get(pt);
19336
19336
  tr && Te.push({ ...tr });
19337
19337
  }
19338
19338
  q(Te);
19339
- const er = Te.map(ge);
19339
+ const er = Te.map(me);
19340
19340
  we.current = er, ct(er);
19341
19341
  try {
19342
19342
  await e.onSubmitAddData?.({
@@ -19369,9 +19369,9 @@ function JT(e) {
19369
19369
  } catch {
19370
19370
  }
19371
19371
  const se = N?.Marca ?? "", Ce = N?.Modelo ?? "", Te = N?.Anio ? String(N.Anio) : "";
19372
- return [se, Ce, Te].filter(Boolean).join(" ").trim() || `ID ${ge(N)}`;
19372
+ return [se, Ce, Te].filter(Boolean).join(" ").trim() || `ID ${me(N)}`;
19373
19373
  }, ke = (N) => {
19374
- const se = ge(N), Ce = fe(N);
19374
+ const se = me(N), Ce = fe(N);
19375
19375
  G({ open: !0, item: N, id: se, title: Ce, loading: !1, error: null });
19376
19376
  }, $e = () => G({
19377
19377
  open: !1,
@@ -19382,12 +19382,12 @@ function JT(e) {
19382
19382
  error: null
19383
19383
  }), Be = (N) => {
19384
19384
  const se = j.map(
19385
- (Ce) => ge(Ce) === N ? { ...Ce, BajaLogicaAuto: 1 } : Ce
19385
+ (Ce) => me(Ce) === N ? { ...Ce, BajaLogicaAuto: 1 } : Ce
19386
19386
  );
19387
- q(se), ct((Ce) => Ce.filter((Te) => Te !== N)), we.current = se.filter(re).map(ge);
19387
+ q(se), ct((Ce) => Ce.filter((Te) => Te !== N)), we.current = se.filter(re).map(me);
19388
19388
  }, Pe = (N) => {
19389
- const se = j.filter((Ce) => ge(Ce) !== N);
19390
- q(se), ct((Ce) => Ce.filter((Te) => Te !== N)), we.current = se.filter(re).map(ge);
19389
+ const se = j.filter((Ce) => me(Ce) !== N);
19390
+ q(se), ct((Ce) => Ce.filter((Te) => Te !== N)), we.current = se.filter(re).map(me);
19391
19391
  }, Oe = async (N) => {
19392
19392
  if (!(!x.open || !x.id)) {
19393
19393
  G((se) => ({ ...se, loading: !0, error: null }));
@@ -19453,7 +19453,8 @@ function JT(e) {
19453
19453
  boxShadow: { xs: "none", md: "2px 0px 8px #40404024" },
19454
19454
  position: { xs: "relative", md: "relative" },
19455
19455
  borderRight: { xs: "none", md: "1px solid #EBEEF0" },
19456
- bgcolor: "background.paper"
19456
+ bgcolor: "background.paper",
19457
+ paddingBottom: 3
19457
19458
  },
19458
19459
  children: [
19459
19460
  /* @__PURE__ */ d.jsxs(Q, { p: { xs: 2, md: 2 }, height: "100%", children: [
@@ -19645,69 +19646,78 @@ function JT(e) {
19645
19646
  }
19646
19647
  }
19647
19648
  ),
19648
- /* @__PURE__ */ d.jsxs(Q, { display: "flex", gap: 2, alignItems: "center", sx: { marginTop: { sm: 0, xs: 2 } }, children: [
19649
- /* @__PURE__ */ d.jsxs(
19650
- Q,
19651
- {
19652
- sx: {
19653
- cursor: "pointer",
19654
- display: "flex",
19655
- flexDirection: "row",
19656
- alignItems: "center",
19657
- gap: 1
19658
- },
19659
- onClick: _e,
19660
- children: [
19661
- /* @__PURE__ */ d.jsx(
19662
- vT,
19663
- {
19664
- sx: { color: "#336BE1", fontSize: 18 }
19665
- }
19666
- ),
19667
- /* @__PURE__ */ d.jsx(
19668
- "span",
19669
- {
19670
- style: {
19671
- color: "#336BE1",
19672
- textDecorationLine: "underline",
19673
- fontSize: 15,
19674
- fontWeight: "600"
19675
- },
19676
- children: "No agregar"
19677
- }
19678
- )
19679
- ]
19680
- }
19681
- ),
19682
- (De?.length > 0 || c) && /* @__PURE__ */ d.jsx(Q, { children: /* @__PURE__ */ d.jsxs(
19683
- dt,
19684
- {
19685
- variant: "outlined",
19686
- type: "button",
19687
- sx: {
19688
- backgroundColor: "#336be1",
19689
- color: "#fff",
19690
- borderColor: "transparent",
19691
- borderWidth: 1,
19692
- height: 48,
19693
- fontSize: 15,
19694
- textTransform: "none",
19695
- fontWeight: "400",
19696
- paddingX: 4,
19697
- "&:hover": {
19698
- backgroundColor: "#336be1",
19699
- borderColor: "transparent"
19649
+ /* @__PURE__ */ d.jsxs(
19650
+ Q,
19651
+ {
19652
+ display: "flex",
19653
+ gap: 2,
19654
+ alignItems: "center",
19655
+ sx: { marginTop: { sm: 0, xs: 2 } },
19656
+ children: [
19657
+ /* @__PURE__ */ d.jsxs(
19658
+ Q,
19659
+ {
19660
+ sx: {
19661
+ cursor: "pointer",
19662
+ display: "flex",
19663
+ flexDirection: "row",
19664
+ alignItems: "center",
19665
+ gap: 1
19666
+ },
19667
+ onClick: _e,
19668
+ children: [
19669
+ /* @__PURE__ */ d.jsx(
19670
+ vT,
19671
+ {
19672
+ sx: { color: "#336BE1", fontSize: 18 }
19673
+ }
19674
+ ),
19675
+ /* @__PURE__ */ d.jsx(
19676
+ "span",
19677
+ {
19678
+ style: {
19679
+ color: "#336BE1",
19680
+ textDecorationLine: "underline",
19681
+ fontSize: 15,
19682
+ fontWeight: "600"
19683
+ },
19684
+ children: "No agregar"
19685
+ }
19686
+ )
19687
+ ]
19700
19688
  }
19701
- },
19702
- onClick: Xe,
19703
- children: [
19704
- "Agregar",
19705
- " ",
19706
- De?.length >= 1 ? `(${De?.length})` : null
19707
- ]
19708
- }
19709
- ) })
19710
- ] })
19689
+ ),
19690
+ (De?.length > 0 || c) && /* @__PURE__ */ d.jsx(Q, { children: /* @__PURE__ */ d.jsxs(
19691
+ dt,
19692
+ {
19693
+ variant: "outlined",
19694
+ type: "button",
19695
+ sx: {
19696
+ backgroundColor: "#336be1",
19697
+ color: "#fff",
19698
+ borderColor: "transparent",
19699
+ borderWidth: 1,
19700
+ height: 48,
19701
+ fontSize: 15,
19702
+ textTransform: "none",
19703
+ fontWeight: "400",
19704
+ paddingX: 4,
19705
+ "&:hover": {
19706
+ backgroundColor: "#336be1",
19707
+ borderColor: "transparent"
19708
+ }
19709
+ },
19710
+ onClick: Xe,
19711
+ children: [
19712
+ "Agregar",
19713
+ " ",
19714
+ De?.length >= 1 ? `(${De?.length})` : null
19715
+ ]
19716
+ }
19717
+ ) })
19718
+ ]
19719
+ }
19720
+ )
19711
19721
  ]
19712
19722
  }
19713
19723
  ),
@@ -19722,60 +19732,70 @@ function JT(e) {
19722
19732
  padding: 0,
19723
19733
  height: "100%"
19724
19734
  },
19725
- children: /* @__PURE__ */ d.jsx(Q, { sx: { minWidth: 1150, width: "max(1150px, 100%)" }, children: /* @__PURE__ */ d.jsxs(
19726
- In,
19735
+ children: /* @__PURE__ */ d.jsx(
19736
+ Q,
19727
19737
  {
19728
- disablePadding: !0,
19729
- sx: { borderColor: "transparent", padding: 0 },
19730
- children: [
19731
- Fn?.map((N, se) => {
19732
- const Ce = p ? p(N) : se, Te = Sa(Ce);
19733
- return /* @__PURE__ */ d.jsx(
19734
- Q,
19735
- {
19736
- sx: {
19737
- borderBottom: "1px solid #D3D4D5",
19738
- padding: 0
19739
- },
19740
- children: /* @__PURE__ */ d.jsx(
19741
- ro,
19738
+ sx: {
19739
+ minWidth: 1150,
19740
+ width: "max(1150px, 100%)",
19741
+ paddingBottom: 10
19742
+ },
19743
+ children: /* @__PURE__ */ d.jsxs(
19744
+ In,
19745
+ {
19746
+ disablePadding: !0,
19747
+ sx: { borderColor: "transparent", padding: 0 },
19748
+ children: [
19749
+ Fn?.map((N, se) => {
19750
+ const Ce = p ? p(N) : se, Te = Sa(Ce);
19751
+ return /* @__PURE__ */ d.jsx(
19752
+ Q,
19742
19753
  {
19743
- disableGutters: !0,
19744
- sx: { paddingTop: 0, padding: 0, m: 0 },
19754
+ sx: {
19755
+ borderBottom: "1px solid #D3D4D5",
19756
+ padding: 0
19757
+ },
19745
19758
  children: /* @__PURE__ */ d.jsx(
19746
- ss,
19759
+ ro,
19747
19760
  {
19748
- onClick: () => Ln(Ce),
19749
- disableRipple: !0,
19750
- sx: { padding: 0 },
19761
+ disableGutters: !0,
19762
+ sx: { paddingTop: 0, padding: 0, m: 0 },
19751
19763
  children: /* @__PURE__ */ d.jsx(
19752
- no,
19764
+ ss,
19753
19765
  {
19754
- disableTypography: !0,
19755
- primary: m ? m({
19756
- item: N,
19757
- selected: Te,
19758
- toggle: () => Ln(Ce),
19759
- index: se
19760
- }) : null
19766
+ onClick: () => Ln(Ce),
19767
+ disableRipple: !0,
19768
+ sx: { padding: 0 },
19769
+ children: /* @__PURE__ */ d.jsx(
19770
+ no,
19771
+ {
19772
+ disableTypography: !0,
19773
+ primary: m ? m({
19774
+ item: N,
19775
+ selected: Te,
19776
+ toggle: () => Ln(Ce),
19777
+ index: se
19778
+ }) : null
19779
+ }
19780
+ )
19761
19781
  }
19762
19782
  )
19763
19783
  }
19764
19784
  )
19765
- }
19766
- )
19767
- },
19768
- `${String(Ce)}`
19769
- );
19770
- }),
19771
- !Fn?.length && /* @__PURE__ */ d.jsx(Q, { p: 3, children: /* @__PURE__ */ d.jsxs(Me, { fontSize: 14, color: "#5C6372", children: [
19772
- "Sin resultados para “",
19773
- M,
19774
- "”."
19775
- ] }) })
19776
- ]
19785
+ },
19786
+ `${String(Ce)}`
19787
+ );
19788
+ }),
19789
+ !Fn?.length && /* @__PURE__ */ d.jsx(Q, { p: 3, children: /* @__PURE__ */ d.jsxs(Me, { fontSize: 14, color: "#5C6372", children: [
19790
+ "Sin resultados para “",
19791
+ M,
19792
+ "”."
19793
+ ] }) })
19794
+ ]
19795
+ }
19796
+ )
19777
19797
  }
19778
- ) })
19798
+ )
19779
19799
  }
19780
19800
  ),
19781
19801
  /* @__PURE__ */ d.jsx(
@@ -19852,69 +19872,79 @@ function JT(e) {
19852
19872
  },
19853
19873
  px: 3,
19854
19874
  mt: 2.5,
19855
- children: /* @__PURE__ */ d.jsx(Q, { sx: { minWidth: 1150, width: "max(1150px, 100%)" }, children: /* @__PURE__ */ d.jsxs(
19856
- In,
19875
+ children: /* @__PURE__ */ d.jsx(
19876
+ Q,
19857
19877
  {
19858
- disablePadding: !0,
19859
- sx: { borderColor: "transparent", padding: 0 },
19860
- children: [
19861
- oe?.map((N, se) => {
19862
- const Ce = g ? g(N) : se, Te = Sa(Ce);
19863
- return /* @__PURE__ */ d.jsx(
19864
- Q,
19865
- {
19866
- sx: {
19867
- borderBottom: "1px solid #D3D4D5",
19868
- padding: 0
19869
- },
19870
- children: /* @__PURE__ */ d.jsx(
19871
- ro,
19878
+ sx: {
19879
+ minWidth: 1150,
19880
+ width: "max(1150px, 100%)",
19881
+ paddingBottom: 10
19882
+ },
19883
+ children: /* @__PURE__ */ d.jsxs(
19884
+ In,
19885
+ {
19886
+ disablePadding: !0,
19887
+ sx: { borderColor: "transparent", padding: 0 },
19888
+ children: [
19889
+ oe?.map((N, se) => {
19890
+ const Ce = g ? g(N) : se, Te = Sa(Ce);
19891
+ return /* @__PURE__ */ d.jsx(
19892
+ Q,
19872
19893
  {
19873
- disableGutters: !0,
19874
- sx: { paddingTop: 0, padding: 0, m: 0 },
19875
- secondaryAction: /* @__PURE__ */ d.jsx(
19876
- qr,
19877
- {
19878
- sx: {
19879
- cursor: "pointer",
19880
- fontSize: 25,
19881
- marginRight: 3
19882
- },
19883
- onClick: () => (
19884
- // handleRemoveClick(getCotizadoId(item))
19885
- ke(N)
19886
- )
19887
- }
19888
- ),
19894
+ sx: {
19895
+ borderBottom: "1px solid #D3D4D5",
19896
+ padding: 0
19897
+ },
19889
19898
  children: /* @__PURE__ */ d.jsx(
19890
- ss,
19899
+ ro,
19891
19900
  {
19892
- disableRipple: !0,
19893
- sx: { padding: 0 },
19901
+ disableGutters: !0,
19902
+ sx: { paddingTop: 0, padding: 0, m: 0 },
19903
+ secondaryAction: /* @__PURE__ */ d.jsx(
19904
+ qr,
19905
+ {
19906
+ sx: {
19907
+ cursor: "pointer",
19908
+ fontSize: 25,
19909
+ marginRight: 3
19910
+ },
19911
+ onClick: () => (
19912
+ // handleRemoveClick(getCotizadoId(item))
19913
+ ke(N)
19914
+ )
19915
+ }
19916
+ ),
19894
19917
  children: /* @__PURE__ */ d.jsx(
19895
- no,
19918
+ ss,
19896
19919
  {
19897
- disableTypography: !0,
19898
- primary: h ? h({
19899
- item: N,
19900
- selected: Te,
19901
- toggle: () => Ln(Ce),
19902
- index: se
19903
- }) : null
19920
+ disableRipple: !0,
19921
+ sx: { padding: 0 },
19922
+ children: /* @__PURE__ */ d.jsx(
19923
+ no,
19924
+ {
19925
+ disableTypography: !0,
19926
+ primary: h ? h({
19927
+ item: N,
19928
+ selected: Te,
19929
+ toggle: () => Ln(Ce),
19930
+ index: se
19931
+ }) : null
19932
+ }
19933
+ )
19904
19934
  }
19905
19935
  )
19906
19936
  }
19907
19937
  )
19908
- }
19909
- )
19910
- },
19911
- `${String(Ce)}`
19912
- );
19913
- }),
19914
- !oe?.length && /* @__PURE__ */ d.jsx(Q, { p: 3, children: /* @__PURE__ */ d.jsx(Me, { fontSize: 14, color: "#5C6372", children: "No existe ningun vehículo cotizado por el momento." }) })
19915
- ]
19938
+ },
19939
+ `${String(Ce)}`
19940
+ );
19941
+ }),
19942
+ !oe?.length && /* @__PURE__ */ d.jsx(Q, { p: 3, children: /* @__PURE__ */ d.jsx(Me, { fontSize: 14, color: "#5C6372", children: "No existe ningun vehículo cotizado por el momento." }) })
19943
+ ]
19944
+ }
19945
+ )
19916
19946
  }
19917
- ) })
19947
+ )
19918
19948
  }
19919
19949
  )
19920
19950
  ]
@@ -20156,7 +20186,7 @@ function e3({
20156
20186
  _,
20157
20187
  A
20158
20188
  );
20159
- }, q = (D) => r({ ...t, message: D }), me = (D) => r({ ...t, attachments: [...t.attachments, ...D] }), $ = (D) => r({
20189
+ }, q = (D) => r({ ...t, message: D }), ge = (D) => r({ ...t, attachments: [...t.attachments, ...D] }), $ = (D) => r({
20160
20190
  ...t,
20161
20191
  attachments: t.attachments.filter((z) => z.name !== D)
20162
20192
  }), ee = (D) => {
@@ -20223,15 +20253,15 @@ function e3({
20223
20253
  );
20224
20254
  }, oe = (D) => {
20225
20255
  const z = Array.from(D.target.files || []);
20226
- me(z.map((ae) => ({ name: ae.name, size: ae.size, file: ae }))), D.target.value = "";
20227
- }, we = T[0], ge = qe(() => !s || we === void 0 ? void 0 : s.find(
20256
+ ge(z.map((ae) => ({ name: ae.name, size: ae.size, file: ae }))), D.target.value = "";
20257
+ }, we = T[0], me = qe(() => !s || we === void 0 ? void 0 : s.find(
20228
20258
  (z, ae) => String(hr(z, ae, p.id)) === String(we)
20229
20259
  ), [s, we, p.id]), De = qe(() => {
20230
- if (!(!ge || !p.distributorId))
20231
- return hr(ge, 0, p.distributorId);
20232
- }, [ge, p.distributorId]);
20260
+ if (!(!me || !p.distributorId))
20261
+ return hr(me, 0, p.distributorId);
20262
+ }, [me, p.distributorId]);
20233
20263
  console.log("lockedDisId", De);
20234
- const ct = qe(() => ge ? (p.distributorTitle ? hr(ge, 0, p.distributorTitle) : void 0) ?? (De != null ? String(De) : void 0) : void 0, [ge, p.distributorTitle, De]), tt = qe(() => {
20264
+ const ct = qe(() => me ? (p.distributorTitle ? hr(me, 0, p.distributorTitle) : void 0) ?? (De != null ? String(De) : void 0) : void 0, [me, p.distributorTitle, De]), tt = qe(() => {
20235
20265
  const D = s ?? [];
20236
20266
  return De == null || !p.distributorId ? D : D.filter(
20237
20267
  (z, ae) => hr(z, ae, p.distributorId) == De