componentes-exagono 0.2.49 → 0.2.51

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
@@ -1,14 +1,14 @@
1
1
  import * as K from "react";
2
2
  import A, { forwardRef as Ia, useContext as ii, useState as he, useLayoutEffect as nl, cloneElement as Dp, createRef as Cn, Component as Gt, useRef as bn, useCallback as so, useEffect as pt, createElement as po, createContext as ol, useMemo as at } from "react";
3
- import { IconButton as Yt, Box as F, Avatar as $r, Typography as me, Divider as Sr, Grid as on, Button as Dt, List as Hn, CircularProgress as Tc, ListItem as ho, ListItemText as js, Checkbox as mo, Dialog as So, DialogContent as ci, AvatarGroup as ym, Tooltip as hn, Badge as bm, Autocomplete as ha, TextField as Xt, Chip as oo, Link as xm, Modal as kp, FormControlLabel as gn, ListItemButton as Ap, Collapse as wm, useTheme as al, useMediaQuery as sl, Stack as Rr, Menu as ru, Fade as nu, RadioGroup as ys, Radio as bs, InputBase as _m, Select as Rp, MenuItem as Oc, FormControl as Tp, FormLabel as Sm, InputAdornment as Cm, Drawer as Em, DialogTitle as Dm, DialogActions as km } from "@mui/material";
4
- import { isBefore as Nr, isAfter as Cr, isDate as xn, getYear as Be, getSeconds as wn, getMinutes as sn, getHours as cn, getMonth as Jt, isEqual as Am, parseISO as Rm, toDate as Op, isValid as En, differenceInCalendarDays as Ps, min as ou, max as au, startOfDay as Co, endOfDay as Ma, parse as Tm, isWithinInterval as wa, endOfYear as Ip, startOfYear as il, endOfMonth as cl, startOfMonth as ll, setHours as xs, setMinutes as ws, setSeconds as _s, isSameDay as Mp, addMonths as Dn, subMonths as Vn, setYear as Br, differenceInDays as Om, addDays as ln, setMonth as Mr, subYears as go, addYears as _n, format as ut, isSameYear as Im, isSameMonth as jp, addWeeks as Ic, subWeeks as su, subDays as Mm, startOfWeek as Pp, differenceInCalendarMonths as Ns, subQuarters as Np, differenceInCalendarQuarters as Fs, differenceInCalendarYears as $s, addQuarters as Fp, getTime as Mc, setQuarter as no, getQuarter as va, addMinutes as zs, endOfWeek as jm, isSameQuarter as Pm, startOfQuarter as Nm, addHours as jc, addSeconds as Fm, getISOWeek as $m, getDay as zm, getDate as iu, isTomorrow as Lm, isToday as Bm } from "date-fns";
3
+ import { IconButton as Yt, Box as F, Avatar as $r, Typography as me, Tooltip as nn, Divider as Sr, Grid as an, Button as Dt, List as Hn, CircularProgress as Tc, ListItem as ho, ListItemText as js, Checkbox as mo, Dialog as So, DialogContent as ci, AvatarGroup as ym, Badge as bm, Autocomplete as ha, TextField as Xt, Chip as oo, Link as xm, Modal as kp, FormControlLabel as gn, ListItemButton as Ap, Collapse as wm, useTheme as al, useMediaQuery as sl, Stack as Rr, Menu as ru, Fade as nu, RadioGroup as ys, Radio as bs, InputBase as _m, Select as Rp, MenuItem as Oc, FormControl as Tp, FormLabel as Sm, InputAdornment as Cm, Drawer as Em, DialogTitle as Dm, DialogActions as km } from "@mui/material";
4
+ import { isBefore as Nr, isAfter as Cr, isDate as xn, getYear as Be, getSeconds as wn, getMinutes as cn, getHours as ln, getMonth as Jt, isEqual as Am, parseISO as Rm, toDate as Op, isValid as En, differenceInCalendarDays as Ps, min as ou, max as au, startOfDay as Co, endOfDay as Ma, parse as Tm, isWithinInterval as wa, endOfYear as Ip, startOfYear as il, endOfMonth as cl, startOfMonth as ll, setHours as xs, setMinutes as ws, setSeconds as _s, isSameDay as Mp, addMonths as Dn, subMonths as Vn, setYear as Br, differenceInDays as Om, addDays as un, setMonth as Mr, subYears as go, addYears as _n, format as ut, isSameYear as Im, isSameMonth as jp, addWeeks as Ic, subWeeks as su, subDays as Mm, startOfWeek as Pp, differenceInCalendarMonths as Ns, subQuarters as Np, differenceInCalendarQuarters as Fs, differenceInCalendarYears as $s, addQuarters as Fp, getTime as Mc, setQuarter as no, getQuarter as va, addMinutes as zs, endOfWeek as jm, isSameQuarter as Pm, startOfQuarter as Nm, addHours as jc, addSeconds as Fm, getISOWeek as $m, getDay as zm, getDate as iu, isTomorrow as Lm, isToday as Bm } from "date-fns";
5
5
  import * as Vm from "react-dom";
6
6
  import Um from "react-dom";
7
7
  import { useSnackbar as ul, SnackbarContent as Wm } from "notistack";
8
8
  function ht(e) {
9
9
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
10
10
  }
11
- function fn(e) {
11
+ function pn(e) {
12
12
  if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
13
13
  var r = e.default;
14
14
  if (typeof r == "function") {
@@ -3428,7 +3428,7 @@ const n2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3428
3428
  internal_processStyles: t2,
3429
3429
  internal_serializeStyles: r2,
3430
3430
  keyframes: Wv
3431
- }, Symbol.toStringTag, { value: "Module" })), o2 = /* @__PURE__ */ fn(n2), a2 = /* @__PURE__ */ fn(og), s2 = /* @__PURE__ */ fn(xg), i2 = /* @__PURE__ */ fn(bg), c2 = ["values", "unit", "step"], l2 = (e) => {
3431
+ }, Symbol.toStringTag, { value: "Module" })), o2 = /* @__PURE__ */ pn(n2), a2 = /* @__PURE__ */ pn(og), s2 = /* @__PURE__ */ pn(xg), i2 = /* @__PURE__ */ pn(bg), c2 = ["values", "unit", "step"], l2 = (e) => {
3432
3432
  const r = Object.keys(e).map((t) => ({
3433
3433
  key: t,
3434
3434
  val: e[t]
@@ -3510,7 +3510,7 @@ const wl = {
3510
3510
  keys: ["xs", "sm", "md", "lg", "xl"],
3511
3511
  up: (e) => `@media (min-width:${wl[e]}px)`
3512
3512
  };
3513
- function dn(e, r, t) {
3513
+ function fn(e, r, t) {
3514
3514
  const n = e.theme || {};
3515
3515
  if (Array.isArray(r)) {
3516
3516
  const a = n.breakpoints || qu;
@@ -3568,7 +3568,7 @@ function Lt(e) {
3568
3568
  if (s[r] == null)
3569
3569
  return null;
3570
3570
  const i = s[r], c = s.theme, d = hi(c, n) || {};
3571
- return dn(s, i, (f) => {
3571
+ return fn(s, i, (f) => {
3572
3572
  let h = Bs(d, o, f);
3573
3573
  return f === h && typeof f == "string" && (h = Bs(d, o, `${r}${f === "default" ? "" : kn(f)}`, f)), t === !1 ? h : {
3574
3574
  [t]: h
@@ -3632,7 +3632,7 @@ function y2(e, r, t, n) {
3632
3632
  if (r.indexOf(t) === -1)
3633
3633
  return null;
3634
3634
  const o = m2(t), a = v2(o, n), s = e[t];
3635
- return dn(e, s, a);
3635
+ return fn(e, s, a);
3636
3636
  }
3637
3637
  function ph(e, r) {
3638
3638
  const t = fh(e.theme);
@@ -3681,7 +3681,7 @@ const x2 = Dr("border", wr), w2 = Dr("borderTop", wr), _2 = Dr("borderRight", wr
3681
3681
  const r = Na(e.theme, "shape.borderRadius", 4, "borderRadius"), t = (n) => ({
3682
3682
  borderRadius: Fa(r, n)
3683
3683
  });
3684
- return dn(e, e.borderRadius, t);
3684
+ return fn(e, e.borderRadius, t);
3685
3685
  }
3686
3686
  return null;
3687
3687
  };
@@ -3695,7 +3695,7 @@ const bi = (e) => {
3695
3695
  const r = Na(e.theme, "spacing", 8, "gap"), t = (n) => ({
3696
3696
  gap: Fa(r, n)
3697
3697
  });
3698
- return dn(e, e.gap, t);
3698
+ return fn(e, e.gap, t);
3699
3699
  }
3700
3700
  return null;
3701
3701
  };
@@ -3708,7 +3708,7 @@ const xi = (e) => {
3708
3708
  const r = Na(e.theme, "spacing", 8, "columnGap"), t = (n) => ({
3709
3709
  columnGap: Fa(r, n)
3710
3710
  });
3711
- return dn(e, e.columnGap, t);
3711
+ return fn(e, e.columnGap, t);
3712
3712
  }
3713
3713
  return null;
3714
3714
  };
@@ -3721,7 +3721,7 @@ const wi = (e) => {
3721
3721
  const r = Na(e.theme, "spacing", 8, "rowGap"), t = (n) => ({
3722
3722
  rowGap: Fa(r, n)
3723
3723
  });
3724
- return dn(e, e.rowGap, t);
3724
+ return fn(e, e.rowGap, t);
3725
3725
  }
3726
3726
  return null;
3727
3727
  };
@@ -3786,7 +3786,7 @@ const W2 = Lt({
3786
3786
  maxWidth: hr(t)
3787
3787
  };
3788
3788
  };
3789
- return dn(e, e.maxWidth, r);
3789
+ return fn(e, e.maxWidth, r);
3790
3790
  }
3791
3791
  return null;
3792
3792
  };
@@ -4133,7 +4133,7 @@ function hh() {
4133
4133
  [t]: n
4134
4134
  };
4135
4135
  const h = hi(o, d) || {};
4136
- return f ? f(s) : dn(s, n, (m) => {
4136
+ return f ? f(s) : fn(s, n, (m) => {
4137
4137
  let p = Bs(h, u, m);
4138
4138
  return m === p && typeof m == "string" && (p = Bs(h, u, `${t}${m === "default" ? "" : kn(m)}`, m)), c === !1 ? p : {
4139
4139
  [c]: p
@@ -4167,7 +4167,7 @@ function hh() {
4167
4167
  if (i[m])
4168
4168
  g = ya(g, e(m, p, a, i));
4169
4169
  else {
4170
- const v = dn({
4170
+ const v = fn({
4171
4171
  theme: a
4172
4172
  }, p, (b) => ({
4173
4173
  [m]: b
@@ -4227,7 +4227,7 @@ const J2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4227
4227
  default: gh,
4228
4228
  private_createBreakpoints: dh,
4229
4229
  unstable_applyStyles: mh
4230
- }, Symbol.toStringTag, { value: "Module" })), ey = /* @__PURE__ */ fn(J2), ty = ["sx"], ry = (e) => {
4230
+ }, Symbol.toStringTag, { value: "Module" })), ey = /* @__PURE__ */ pn(J2), ty = ["sx"], ry = (e) => {
4231
4231
  var r, t;
4232
4232
  const n = {
4233
4233
  systemProps: {},
@@ -4258,7 +4258,7 @@ const oy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4258
4258
  extendSxProp: ny,
4259
4259
  unstable_createStyleFunctionSx: hh,
4260
4260
  unstable_defaultSxConfig: $a
4261
- }, Symbol.toStringTag, { value: "Module" })), ay = /* @__PURE__ */ fn(oy);
4261
+ }, Symbol.toStringTag, { value: "Module" })), ay = /* @__PURE__ */ pn(oy);
4262
4262
  var Ku;
4263
4263
  function sy() {
4264
4264
  if (Ku) return jn;
@@ -4453,7 +4453,7 @@ function ly(e, r) {
4453
4453
  }, r);
4454
4454
  }
4455
4455
  var Tt = {};
4456
- const uy = /* @__PURE__ */ fn(pg), dy = /* @__PURE__ */ fn(Yg);
4456
+ const uy = /* @__PURE__ */ pn(pg), dy = /* @__PURE__ */ pn(Yg);
4457
4457
  var Qu;
4458
4458
  function fy() {
4459
4459
  if (Qu) return Tt;
@@ -5302,7 +5302,7 @@ const qy = {
5302
5302
  useEventCallback: Og,
5303
5303
  useForkRef: Ig,
5304
5304
  useIsFocusVisible: Lg
5305
- }, Symbol.toStringTag, { value: "Module" })), Gy = /* @__PURE__ */ fn(Zy);
5305
+ }, Symbol.toStringTag, { value: "Module" })), Gy = /* @__PURE__ */ pn(Zy);
5306
5306
  var nd;
5307
5307
  function xt() {
5308
5308
  return nd || (nd = 1, (function(e) {
@@ -6891,7 +6891,7 @@ function Sn(e, r, t) {
6891
6891
  weekStartsOn: t
6892
6892
  });
6893
6893
  }
6894
- function un(e) {
6894
+ function dn(e) {
6895
6895
  return ll(e);
6896
6896
  }
6897
6897
  function ma(e) {
@@ -7047,7 +7047,7 @@ function Va(e, r) {
7047
7047
  }
7048
7048
  function wd(e, r) {
7049
7049
  return r.some(function(t) {
7050
- return cn(t) === cn(e) && sn(t) === sn(e) && wn(t) === wn(e);
7050
+ return ln(t) === ln(e) && cn(t) === cn(e) && wn(t) === wn(e);
7051
7051
  });
7052
7052
  }
7053
7053
  function _d(e, r) {
@@ -7059,11 +7059,11 @@ function Sd(e, r) {
7059
7059
  if (!t || !n)
7060
7060
  throw new Error("Both minTime and maxTime props required");
7061
7061
  var o = st();
7062
- o = xs(o, cn(e)), o = ws(o, sn(e)), o = _s(o, wn(e));
7062
+ o = xs(o, ln(e)), o = ws(o, cn(e)), o = _s(o, wn(e));
7063
7063
  var a = st();
7064
- a = xs(a, cn(t)), a = ws(a, sn(t)), a = _s(a, wn(t));
7064
+ a = xs(a, ln(t)), a = ws(a, cn(t)), a = _s(a, wn(t));
7065
7065
  var s = st();
7066
- s = xs(s, cn(n)), s = ws(s, sn(n)), s = _s(s, wn(n));
7066
+ s = xs(s, ln(n)), s = ws(s, cn(n)), s = _s(s, wn(n));
7067
7067
  var i;
7068
7068
  try {
7069
7069
  i = !wa(o, { start: a, end: s });
@@ -7103,7 +7103,7 @@ function Dd(e, r) {
7103
7103
  }) || !1;
7104
7104
  }
7105
7105
  function Zb(e, r) {
7106
- var t = r === void 0 ? {} : r, n = t.minDate, o = t.yearItemNumber, a = o === void 0 ? Ba : o, s = ma(go(e, a)), i = an(s, a).endPeriod, c = n && Be(n);
7106
+ var t = r === void 0 ? {} : r, n = t.minDate, o = t.yearItemNumber, a = o === void 0 ? Ba : o, s = ma(go(e, a)), i = sn(s, a).endPeriod, c = n && Be(n);
7107
7107
  return c && c > i || !1;
7108
7108
  }
7109
7109
  function kd(e, r) {
@@ -7113,7 +7113,7 @@ function kd(e, r) {
7113
7113
  }) || !1;
7114
7114
  }
7115
7115
  function Gb(e, r) {
7116
- var t = r === void 0 ? {} : r, n = t.maxDate, o = t.yearItemNumber, a = o === void 0 ? Ba : o, s = _n(e, a), i = an(s, a).startPeriod, c = n && Be(n);
7116
+ var t = r === void 0 ? {} : r, n = t.maxDate, o = t.yearItemNumber, a = o === void 0 ? Ba : o, s = _n(e, a), i = sn(s, a).startPeriod, c = n && Be(n);
7117
7117
  return c && c < i || !1;
7118
7118
  }
7119
7119
  function Ih(e) {
@@ -7182,7 +7182,7 @@ function Qb(e, r) {
7182
7182
  function Xb(e, r, t, n, o) {
7183
7183
  for (var a = o.length, s = [], i = 0; i < a; i++) {
7184
7184
  var c = e, d = o[i];
7185
- d && (c = jc(c, cn(d)), c = zs(c, sn(d)), c = Fm(c, wn(d)));
7185
+ d && (c = jc(c, ln(d)), c = zs(c, cn(d)), c = Fm(c, wn(d)));
7186
7186
  var u = zs(e, (t + 1) * n);
7187
7187
  Cr(c, r) && Nr(c, u) && d != null && s.push(d);
7188
7188
  }
@@ -7191,7 +7191,7 @@ function Xb(e, r, t, n, o) {
7191
7191
  function Rd(e) {
7192
7192
  return e < 10 ? "0".concat(e) : "".concat(e);
7193
7193
  }
7194
- function an(e, r) {
7194
+ function sn(e, r) {
7195
7195
  r === void 0 && (r = Ba);
7196
7196
  var t = Math.ceil(Be(e) / r) * r, n = t - (r - 1);
7197
7197
  return { startPeriod: n, endPeriod: t };
@@ -7516,10 +7516,10 @@ var tx = (
7516
7516
  }, t.formatWeekNumber = function(n) {
7517
7517
  return t.props.formatWeekNumber ? t.props.formatWeekNumber(n) : Fb(n);
7518
7518
  }, t.isWeekDisabled = function() {
7519
- for (var n = t.startOfWeek(), o = ln(n, 6), a = new Date(n); a <= o; ) {
7519
+ for (var n = t.startOfWeek(), o = un(n, 6), a = new Date(n); a <= o; ) {
7520
7520
  if (!t.isDisabled(a))
7521
7521
  return !1;
7522
- a = ln(a, 1);
7522
+ a = un(a, 1);
7523
7523
  }
7524
7524
  return !0;
7525
7525
  }, t.renderDays = function() {
@@ -7529,7 +7529,7 @@ var tx = (
7529
7529
  o.push(A.createElement(nx, Ge({ key: "W" }, r.defaultProps, t.props, { weekNumber: a, isWeekDisabled: t.isWeekDisabled(), date: n, onClick: s })));
7530
7530
  }
7531
7531
  return o.concat([0, 1, 2, 3, 4, 5, 6].map(function(i) {
7532
- var c = ln(n, i);
7532
+ var c = un(n, i);
7533
7533
  return A.createElement(rx, Ge({}, r.defaultProps, t.props, { ariaLabelPrefixWhenEnabled: t.props.chooseDayAriaLabelPrefix, ariaLabelPrefixWhenDisabled: t.props.disabledDayAriaLabelPrefix, key: c.valueOf(), day: c, onClick: t.handleDayClick.bind(t, c), onMouseEnter: t.handleDayMouseEnter.bind(t, c) }));
7534
7534
  }));
7535
7535
  }, t.startOfWeek = function() {
@@ -7653,7 +7653,7 @@ var sx = (
7653
7653
  var o, a = t.props, s = a.day, i = a.selectsStart, c = a.selectsEnd, d = a.selectsRange, u = a.startDate, f = a.endDate, h = (o = t.props.selectingDate) !== null && o !== void 0 ? o : t.props.preSelection;
7654
7654
  return !(i || c || d) || !h ? !1 : i && f ? cs(h, f, n, s) : c && u || d && u && !f ? cs(u, h, n, s) : !1;
7655
7655
  }, t.isWeekInMonth = function(n) {
7656
- var o = t.props.day, a = ln(n, 6);
7656
+ var o = t.props.day, a = un(n, 6);
7657
7657
  return nr(n, o) || nr(a, o);
7658
7658
  }, t.isCurrentMonth = function(n, o) {
7659
7659
  return Be(n) === Be(st()) && o === Jt(st());
@@ -7673,7 +7673,7 @@ var sx = (
7673
7673
  return t.isSelectedMonth(o, c, d);
7674
7674
  }) : !!a && t.isSelectedMonth(o, c, a);
7675
7675
  }, t.renderWeeks = function() {
7676
- for (var n = [], o = t.props.fixedHeight, a = 0, s = !1, i = Sn(un(t.props.day), t.props.locale, t.props.calendarStartDay), c = function(m) {
7676
+ for (var n = [], o = t.props.fixedHeight, a = 0, s = !1, i = Sn(dn(t.props.day), t.props.locale, t.props.calendarStartDay), c = function(m) {
7677
7677
  return t.props.showWeekPicker ? Sn(m, t.props.locale, t.props.calendarStartDay) : t.props.preSelection;
7678
7678
  }, d = function(m) {
7679
7679
  return t.props.showWeekPicker ? Sn(m, t.props.locale, t.props.calendarStartDay) : t.props.selected;
@@ -7689,10 +7689,10 @@ var sx = (
7689
7689
  return n;
7690
7690
  }, t.onMonthClick = function(n, o) {
7691
7691
  var a = t.isMonthDisabledForLabelDate(o), s = a.isDisabled, i = a.labelDate;
7692
- s || t.handleDayClick(un(i), n);
7692
+ s || t.handleDayClick(dn(i), n);
7693
7693
  }, t.onMonthMouseEnter = function(n) {
7694
7694
  var o = t.isMonthDisabledForLabelDate(n), a = o.isDisabled, s = o.labelDate;
7695
- a || t.handleDayMouseEnter(un(s));
7695
+ a || t.handleDayMouseEnter(dn(s));
7696
7696
  }, t.handleMonthNavigation = function(n, o) {
7697
7697
  var a, s, i, c;
7698
7698
  (s = (a = t.props).setPreSelection) === null || s === void 0 || s.call(a, o), (c = (i = t.MONTH_REFS[n]) === null || i === void 0 ? void 0 : i.current) === null || c === void 0 || c.focus();
@@ -7994,7 +7994,7 @@ var sx = (
7994
7994
  })(Gt)
7995
7995
  );
7996
7996
  function lx(e, r) {
7997
- for (var t = [], n = un(e), o = un(r); !Cr(n, o); )
7997
+ for (var t = [], n = dn(e), o = dn(r); !Cr(n, o); )
7998
7998
  t.push(st(n)), n = Dn(n, 1);
7999
7999
  return t;
8000
8000
  }
@@ -8039,7 +8039,7 @@ var ux = (
8039
8039
  return t.state = {
8040
8040
  dropdownVisible: !1
8041
8041
  }, t.renderSelectOptions = function() {
8042
- for (var n = un(t.props.minDate), o = un(t.props.maxDate), a = []; !Cr(n, o); ) {
8042
+ for (var n = dn(t.props.minDate), o = dn(t.props.maxDate), a = []; !Cr(n, o); ) {
8043
8043
  var s = Mc(n);
8044
8044
  a.push(A.createElement("option", { key: s, value: s }, wt(n, t.props.dateFormat, t.props.locale))), n = Dn(n, 1);
8045
8045
  }
@@ -8047,7 +8047,7 @@ var ux = (
8047
8047
  }, t.onSelectChange = function(n) {
8048
8048
  t.onChange(parseInt(n.target.value));
8049
8049
  }, t.renderSelectMode = function() {
8050
- return A.createElement("select", { value: Mc(un(t.props.date)), className: "react-datepicker__month-year-select", onChange: t.onSelectChange }, t.renderSelectOptions());
8050
+ return A.createElement("select", { value: Mc(dn(t.props.date)), className: "react-datepicker__month-year-select", onChange: t.onSelectChange }, t.renderSelectOptions());
8051
8051
  }, t.renderReadView = function(n) {
8052
8052
  var o = wt(t.props.date, t.props.dateFormat, t.props.locale);
8053
8053
  return A.createElement(
@@ -8109,7 +8109,7 @@ var ux = (
8109
8109
  "react-datepicker__time-list-item",
8110
8110
  t.props.timeClassName ? t.props.timeClassName(n) : void 0
8111
8111
  ];
8112
- return t.isSelectedTime(n) && a.push("react-datepicker__time-list-item--selected"), t.isDisabledTime(n) && a.push("react-datepicker__time-list-item--disabled"), t.props.injectTimes && (cn(n) * 3600 + sn(n) * 60 + wn(n)) % (((o = t.props.intervals) !== null && o !== void 0 ? o : r.defaultProps.intervals) * 60) !== 0 && a.push("react-datepicker__time-list-item--injected"), a.join(" ");
8112
+ return t.isSelectedTime(n) && a.push("react-datepicker__time-list-item--selected"), t.isDisabledTime(n) && a.push("react-datepicker__time-list-item--disabled"), t.props.injectTimes && (ln(n) * 3600 + cn(n) * 60 + wn(n)) % (((o = t.props.intervals) !== null && o !== void 0 ? o : r.defaultProps.intervals) * 60) !== 0 && a.push("react-datepicker__time-list-item--injected"), a.join(" ");
8113
8113
  }, t.handleOnKeyDown = function(n, o) {
8114
8114
  var a, s;
8115
8115
  n.key === ye.Space && (n.preventDefault(), n.key = ye.Enter), (n.key === ye.ArrowUp || n.key === ye.ArrowLeft) && n.target instanceof HTMLElement && n.target.previousSibling && (n.preventDefault(), n.target.previousSibling instanceof HTMLElement && n.target.previousSibling.focus()), (n.key === ye.ArrowDown || n.key === ye.ArrowRight) && n.target instanceof HTMLElement && n.target.nextSibling && (n.preventDefault(), n.target.nextSibling instanceof HTMLElement && n.target.nextSibling.focus()), n.key === ye.Enter && t.handleClick(o), (s = (a = t.props).handleOnKeyDown) === null || s === void 0 || s.call(a, n);
@@ -8224,7 +8224,7 @@ var ux = (
8224
8224
  }, n.handleYearNavigation = function(o, a) {
8225
8225
  var s, i, c, d, u = n.props, f = u.date, h = u.yearItemNumber;
8226
8226
  if (!(f === void 0 || h === void 0)) {
8227
- var g = an(f, h).startPeriod;
8227
+ var g = sn(f, h).startPeriod;
8228
8228
  n.isDisabled(a) || n.isExcluded(a) || ((i = (s = n.props).setPreSelection) === null || i === void 0 || i.call(s, a), o - g < 0 ? n.updateFocusOnPaginate(h - (g - o)) : o - g >= h ? n.updateFocusOnPaginate(Math.abs(h - (o - g))) : (d = (c = n.YEAR_REFS[o - g]) === null || c === void 0 ? void 0 : c.current) === null || d === void 0 || d.focus());
8229
8229
  }
8230
8230
  }, n.isSameDay = function(o, a) {
@@ -8287,7 +8287,7 @@ var ux = (
8287
8287
  case ye.ArrowUp: {
8288
8288
  if (u === void 0 || f === void 0 || n.props.preSelection == null)
8289
8289
  break;
8290
- var g = an(u, f).startPeriod, m = Md, p = a - m;
8290
+ var g = sn(u, f).startPeriod, m = Md, p = a - m;
8291
8291
  if (p < g) {
8292
8292
  var v = f % m;
8293
8293
  a >= g && a < g + v ? m = v : m += v, p = a - m;
@@ -8298,7 +8298,7 @@ var ux = (
8298
8298
  case ye.ArrowDown: {
8299
8299
  if (u === void 0 || f === void 0 || n.props.preSelection == null)
8300
8300
  break;
8301
- var b = an(u, f).endPeriod, m = Md, p = a + m;
8301
+ var b = sn(u, f).endPeriod, m = Md, p = a + m;
8302
8302
  if (p > b) {
8303
8303
  var v = f % m;
8304
8304
  a <= b && a > b - v ? m = v : m += v, p = a + m;
@@ -8335,7 +8335,7 @@ var ux = (
8335
8335
  var t = this, n = [], o = this.props, a = o.date, s = o.yearItemNumber, i = o.onYearMouseEnter, c = o.onYearMouseLeave;
8336
8336
  if (a === void 0)
8337
8337
  return null;
8338
- for (var d = an(a, s), u = d.startPeriod, f = d.endPeriod, h = function(p) {
8338
+ for (var d = sn(a, s), u = d.startPeriod, f = d.endPeriod, h = function(p) {
8339
8339
  n.push(A.createElement("div", { ref: g.YEAR_REFS[p - u], onClick: function(v) {
8340
8340
  t.onYearClick(v, p);
8341
8341
  }, onKeyDown: function(v) {
@@ -8570,8 +8570,8 @@ var mx = (
8570
8570
  }, n.getEnabledPreSelectionDateForMonth = function(o) {
8571
8571
  if (!_r(o, n.props))
8572
8572
  return o;
8573
- for (var a = un(o), s = Lb(o), i = Om(s, a), c = null, d = 0; d <= i; d++) {
8574
- var u = ln(a, d);
8573
+ for (var a = dn(o), s = Lb(o), i = Om(s, a), c = null, d = 0; d <= i; d++) {
8574
+ var u = un(a, d);
8575
8575
  if (!_r(u, n.props)) {
8576
8576
  c = u;
8577
8577
  break;
@@ -8622,7 +8622,7 @@ var mx = (
8622
8622
  A.createElement("span", { className: "react-datepicker__sr-only" }, "Week number"),
8623
8623
  A.createElement("span", { "aria-hidden": "true" }, n.props.weekLabel || "#")
8624
8624
  )), s.concat([0, 1, 2, 3, 4, 5, 6].map(function(i) {
8625
- var c = ln(a, i), d = n.formatWeekday(c, n.props.locale), u = n.props.weekDayClassName ? n.props.weekDayClassName(c) : void 0;
8625
+ var c = un(a, i), d = n.formatWeekday(c, n.props.locale), u = n.props.weekDayClassName ? n.props.weekDayClassName(c) : void 0;
8626
8626
  return A.createElement(
8627
8627
  "div",
8628
8628
  { key: i, role: "columnheader", className: qt("react-datepicker__day-name", u) },
@@ -8764,7 +8764,7 @@ var mx = (
8764
8764
  return null;
8765
8765
  var d = n.props, u = d.showYearPicker, f = d.yearItemNumber, h;
8766
8766
  if (u) {
8767
- var g = an(i, f), m = g.startPeriod, p = g.endPeriod;
8767
+ var g = sn(i, f), m = g.startPeriod, p = g.endPeriod;
8768
8768
  h = {
8769
8769
  startYear: m,
8770
8770
  endYear: p
@@ -8773,7 +8773,7 @@ var mx = (
8773
8773
  var v = Cd(n.state.date, n.props), b = Ed(n.state.date, n.props), x = Dd(n.state.date, n.props), C = kd(n.state.date, n.props);
8774
8774
  return A.createElement("div", { className: "react-datepicker__header react-datepicker__header--custom", onFocus: n.props.onDropdownFocus }, (s = (a = n.props).renderCustomHeader) === null || s === void 0 ? void 0 : s.call(a, Ge(Ge(Ge({}, n.state), u && { visibleYearsRange: h }), { customHeaderCount: c, monthDate: i, changeMonth: n.changeMonth, changeYear: n.changeYear, decreaseMonth: n.decreaseMonth, increaseMonth: n.increaseMonth, decreaseYear: n.decreaseYear, increaseYear: n.increaseYear, prevMonthButtonDisabled: v, nextMonthButtonDisabled: b, prevYearButtonDisabled: x, nextYearButtonDisabled: C })));
8775
8775
  }, n.renderYearHeader = function(o) {
8776
- var a = o.monthDate, s = n.props, i = s.showYearPicker, c = s.yearItemNumber, d = c === void 0 ? r.defaultProps.yearItemNumber : c, u = an(a, d), f = u.startPeriod, h = u.endPeriod;
8776
+ var a = o.monthDate, s = n.props, i = s.showYearPicker, c = s.yearItemNumber, d = c === void 0 ? r.defaultProps.yearItemNumber : c, u = sn(a, d), f = u.startPeriod, h = u.endPeriod;
8777
8777
  return A.createElement("div", { className: "react-datepicker__header react-datepicker-year-header" }, i ? "".concat(f, " - ").concat(h) : Be(a));
8778
8778
  }, n.renderHeader = function(o) {
8779
8779
  var a = o.monthDate, s = o.i, i = s === void 0 ? 0 : s, c = { monthDate: a, i };
@@ -8817,7 +8817,7 @@ var mx = (
8817
8817
  if (n.props.showTimeInput)
8818
8818
  return A.createElement(tx, Ge({}, r.defaultProps, n.props, { date: o, timeString: s, onChange: n.props.onTimeChange }));
8819
8819
  }, n.renderAriaLiveRegion = function() {
8820
- var o, a = an(n.state.date, (o = n.props.yearItemNumber) !== null && o !== void 0 ? o : r.defaultProps.yearItemNumber), s = a.startPeriod, i = a.endPeriod, c;
8820
+ var o, a = sn(n.state.date, (o = n.props.yearItemNumber) !== null && o !== void 0 ? o : r.defaultProps.yearItemNumber), s = a.startPeriod, i = a.endPeriod, c;
8821
8821
  return n.props.showYearPicker ? c = "".concat(s, " - ").concat(i) : n.props.showMonthYearPicker || n.props.showQuarterYearPicker ? c = Be(n.state.date) : c = "".concat(Rl(Jt(n.state.date), n.props.locale), " ").concat(Be(n.state.date)), A.createElement("span", { role: "alert", "aria-live": "polite", className: "react-datepicker__aria-live" }, n.state.isRenderAriaLiveMessage && c);
8822
8822
  }, n.renderChildren = function() {
8823
8823
  if (n.props.children)
@@ -9139,8 +9139,8 @@ var mc = "Date input not valid.", kx = (
9139
9139
  var f = n.props, h = f.onChange, g = f.selectsRange, m = f.startDate, p = f.endDate, v = f.selectsMultiple, b = f.selectedDates, x = f.minTime, C = f.swapRange;
9140
9140
  if (!zn(n.props.selected, u) || n.props.allowSameDay || g || v)
9141
9141
  if (u !== null && (n.props.selected && (!s || !n.props.showTimeSelect && !n.props.showTimeSelectOnly && !n.props.showTimeInput) && (u = fc(u, {
9142
- hour: cn(n.props.selected),
9143
- minute: sn(n.props.selected),
9142
+ hour: ln(n.props.selected),
9143
+ minute: cn(n.props.selected),
9144
9144
  second: wn(n.props.selected)
9145
9145
  })), !s && (n.props.showTimeSelect || n.props.showTimeSelectOnly) && x && (u = fc(u, {
9146
9146
  hour: x.getHours(),
@@ -9195,8 +9195,8 @@ var mc = "Date input not valid.", kx = (
9195
9195
  var a, s;
9196
9196
  if (!(n.props.selectsRange || n.props.selectsMultiple)) {
9197
9197
  var i = n.props.selected ? n.props.selected : n.getPreSelection(), c = n.props.selected ? o : fc(i, {
9198
- hour: cn(o),
9199
- minute: sn(o)
9198
+ hour: ln(o),
9199
+ minute: cn(o)
9200
9200
  });
9201
9201
  n.setState({
9202
9202
  preSelection: c
@@ -9239,7 +9239,7 @@ var mc = "Date input not valid.", kx = (
9239
9239
  var P = W;
9240
9240
  switch (ee) {
9241
9241
  case ye.ArrowRight:
9242
- P = p ? Ic(W, 1) : ln(W, 1);
9242
+ P = p ? Ic(W, 1) : un(W, 1);
9243
9243
  break;
9244
9244
  case ye.ArrowLeft:
9245
9245
  P = p ? su(W, 1) : Mm(W, 1);
@@ -12705,11 +12705,7 @@ const WS = {
12705
12705
  firstWeekContainsDate: 1
12706
12706
  }
12707
12707
  }, _0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAACpQTFRFR3BMcHCAcHBwaGx4ZWp6aG14aG54Zm14aW15aG55aG15aW55aW56aW5591zvEAAAAA10Uk5TABAQIDBBYHCAnr7g7wYb6DAAAACqSURBVHjahZJLDgMhDEM9UL7Ju/91q8KgQhcdb5D8rFiJ0JNC6Qbeczzt6izV8PWjAbiNB4uH35IkpbaRYGBpT9mcVlemtnCTOiLA8BPk+/VPIkPTR/kGalAkdUgnSNAlOegEckwS2C8wOAEWN2D4BC8HH3Xge/naYJUXaJq6Wo+S2iy7HJKW1sbHSc6B0mU7SeOIf8++CJg5nHOvypLXoF0xdwfrJTx9mzdxpgqGKfcyxQAAAABJRU5ErkJggg==", wC = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAwCAMAAABZu7juAAAAPFBMVEUAAABobHhobnhpbnlobnhobXhpbnlpbnpobXhwcHNobHhlanlpbnlobnhobnpobXhmbXlocHhpbHZpbnlt0ET4AAAAE3RSTlMAIGDggL/f76AQQDDPsLCQcEBQZL6CzQAAALVJREFUSMft1MsOgyAQhWEGHQa82/P+71rDojhJ6dCNi9ZvZcivQUjGXWeTQHqFJvS1mgDMemkGQJV8AMB6iQHsb9K0RZ4ACCsCYOLoSccrDPH0AgWYAqm6vY9owuVAmgzq46aY84BGknM0S/nqm9Ef5tIZROXeGfyd3/lP5Kk9T+4gAGYrj68pxjiMn2sqI9iX6V0zhtOO8zO4r1k5B8F9NeBH9dsWr/ZmCLs+10VQ1S0Pd4UnLwhFRUE6UNsAAAAASUVORK5CYII=", _C = ({ notificacion: e, onAccept: r }) => {
12708
- const { evento: t, tipo: n, leida: o } = e, a = n === "EventoCreado" || n === "EventoModificado", i = {
12709
- EventoCreado: { frase: "te ha invitado a:", colorTitulo: "#3c4043" },
12710
- EventoModificado: { frase: "ha modificado el evento", colorTitulo: "#3c4043" },
12711
- EventoCancelado: { frase: "ha cancelado el evento", colorTitulo: "#d32f2f" }
12712
- }[n] || { frase: "te ha notificado sobre", colorTitulo: "#3c4043" }, c = t?.fechaInicio ? new Date(t.fechaInicio) : /* @__PURE__ */ new Date(), d = t?.fechaFin ? new Date(t.fechaFin) : null, u = t?.nombreAnfitrion || "Usuario", f = t?.titulo || "Sin título", h = (g) => g.split(" ").filter((m) => m).map((m) => m[0]).join("").toUpperCase().substring(0, 2);
12708
+ const { evento: t, tipo: n, leida: o } = e, a = n === "EventoCreado" || n === "EventoModificado", s = t?.fechaInicio ? new Date(t.fechaInicio) : /* @__PURE__ */ new Date(), i = t?.fechaFin ? new Date(t.fechaFin) : null, c = t?.nombreAnfitrion || "Usuario", d = e.mensaje || "Sin título", u = (f) => f.split(" ").filter((h) => h).map((h) => h[0]).join("").toUpperCase().substring(0, 2);
12713
12709
  return /* @__PURE__ */ l.jsxs(
12714
12710
  F,
12715
12711
  {
@@ -12724,38 +12720,81 @@ const WS = {
12724
12720
  overflow: "hidden"
12725
12721
  },
12726
12722
  children: [
12727
- /* @__PURE__ */ l.jsxs(F, { sx: { display: "flex", alignItems: "center", mb: 1 }, children: [
12728
- /* @__PURE__ */ l.jsx($r, { sx: { bgcolor: "#F5A623", width: 34, height: 34, fontSize: "14px", mr: 1.5, fontWeight: "bold" }, children: h(u) }),
12729
- /* @__PURE__ */ l.jsxs(F, { children: [
12730
- /* @__PURE__ */ l.jsxs(me, { sx: { fontSize: "14px", color: "#5f6368", lineHeight: 1.2 }, children: [
12731
- u,
12732
- " ",
12733
- i.frase
12734
- ] }),
12735
- /* @__PURE__ */ l.jsx(me, { sx: { fontSize: "14px", fontWeight: 700, color: i.colorTitulo }, children: f })
12723
+ /* @__PURE__ */ l.jsxs(F, { sx: { display: "flex", alignItems: "flex-start", mb: 1 }, children: [
12724
+ /* @__PURE__ */ l.jsx(
12725
+ $r,
12726
+ {
12727
+ sx: {
12728
+ bgcolor: "#F5A623",
12729
+ width: 34,
12730
+ height: 34,
12731
+ fontSize: "14px",
12732
+ mr: 1.5,
12733
+ fontWeight: "bold",
12734
+ mt: 0.5
12735
+ },
12736
+ children: u(c)
12737
+ }
12738
+ ),
12739
+ /* @__PURE__ */ l.jsxs(F, { sx: { flex: 1, minWidth: 0 }, children: [
12740
+ /* @__PURE__ */ l.jsx(
12741
+ me,
12742
+ {
12743
+ sx: {
12744
+ fontSize: "14px",
12745
+ color: "#5f6368",
12746
+ lineHeight: 1.2,
12747
+ mb: 0.2
12748
+ },
12749
+ children: c
12750
+ }
12751
+ ),
12752
+ /* @__PURE__ */ l.jsx(nn, { title: c + " " + d, arrow: !0, placement: "bottom", children: /* @__PURE__ */ l.jsx(
12753
+ me,
12754
+ {
12755
+ sx: {
12756
+ fontSize: "14px",
12757
+ fontWeight: 700,
12758
+ color: "#3c4043",
12759
+ lineHeight: 1.4,
12760
+ display: "-webkit-box",
12761
+ WebkitLineClamp: 2,
12762
+ // Limita a exactamente 2 líneas
12763
+ WebkitBoxOrient: "vertical",
12764
+ overflow: "hidden",
12765
+ // Oculta el excedente
12766
+ textOverflow: "ellipsis",
12767
+ // Agrega los "..."
12768
+ wordBreak: "break-word",
12769
+ cursor: "pointer"
12770
+ // Indica que hay más texto al pasar el mouse
12771
+ },
12772
+ children: d
12773
+ }
12774
+ ) })
12736
12775
  ] })
12737
12776
  ] }),
12738
- /* @__PURE__ */ l.jsx(Sr, { sx: { mx: -2, my: 1.5, backgroundColor: "#000" } }),
12739
- /* @__PURE__ */ l.jsxs(F, { sx: { display: "flex", alignItems: "center", mb: 0 }, children: [
12740
- /* @__PURE__ */ l.jsx("img", { src: wC, width: 20, alt: "cal", style: { marginRight: 15, color: "black" } }),
12741
- /* @__PURE__ */ l.jsx(me, { sx: { fontSize: "14px", color: "#3c4043", textTransform: "capitalize" }, children: ut(c, "EEEE, dd 'de' MMMM", { locale: xC }) })
12777
+ /* @__PURE__ */ l.jsx(Sr, { sx: { mx: -2, my: 1.5, backgroundColor: "#f0f0f0" } }),
12778
+ /* @__PURE__ */ l.jsxs(F, { sx: { display: "flex", alignItems: "center" }, children: [
12779
+ /* @__PURE__ */ l.jsx(F, { sx: { minWidth: 35, display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ l.jsx("img", { src: wC, width: 18, alt: "cal" }) }),
12780
+ /* @__PURE__ */ l.jsx(me, { sx: { fontSize: "14px", color: "#3c4043", textTransform: "capitalize", ml: 1 }, children: ut(s, "EEEE, dd 'de' MMMM", { locale: xC }) })
12742
12781
  ] }),
12743
- /* @__PURE__ */ l.jsx(Sr, { sx: { mx: -2, my: 1.5, backgroundColor: "#000" } }),
12782
+ /* @__PURE__ */ l.jsx(Sr, { sx: { mx: -2, my: 1.5, backgroundColor: "#f0f0f0" } }),
12744
12783
  /* @__PURE__ */ l.jsxs(F, { sx: { display: "flex", alignItems: "center", mb: a && !o ? 2 : 0 }, children: [
12745
- /* @__PURE__ */ l.jsx("img", { src: _0, width: 20, alt: "watch", style: { marginRight: 15 } }),
12746
- /* @__PURE__ */ l.jsxs(me, { sx: { fontSize: "14px", color: "#3c4043" }, children: [
12747
- ut(c, "h:mm a").toLowerCase(),
12748
- d ? ` - ${ut(d, "h:mm a").toLowerCase()}` : ""
12784
+ /* @__PURE__ */ l.jsx(F, { sx: { minWidth: 35, display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ l.jsx("img", { src: _0, width: 18, alt: "watch" }) }),
12785
+ /* @__PURE__ */ l.jsxs(me, { sx: { fontSize: "14px", color: "#3c4043", ml: 1 }, children: [
12786
+ ut(s, "h:mm a").toLowerCase(),
12787
+ i ? ` - ${ut(i, "h:mm a").toLowerCase()}` : ""
12749
12788
  ] })
12750
12789
  ] }),
12751
- a && !o && /* @__PURE__ */ l.jsxs(on, { container: !0, spacing: 1, sx: { mt: 1 }, children: [
12752
- /* @__PURE__ */ l.jsx(on, { item: !0, xs: 6, children: /* @__PURE__ */ l.jsx(
12790
+ a && !o && /* @__PURE__ */ l.jsxs(an, { container: !0, spacing: 1, sx: { mt: 1 }, children: [
12791
+ /* @__PURE__ */ l.jsx(an, { item: !0, xs: 6, children: /* @__PURE__ */ l.jsx(
12753
12792
  Dt,
12754
12793
  {
12755
12794
  fullWidth: !0,
12756
12795
  variant: "outlined",
12757
12796
  size: "small",
12758
- startIcon: /* @__PURE__ */ l.jsx(FS, { sx: { fontSize: "16px !important", mr: -0.5 } }),
12797
+ startIcon: /* @__PURE__ */ l.jsx(FS, { sx: { fontSize: "16px !important" } }),
12759
12798
  onClick: () => r?.(e, "CONFIRMADA"),
12760
12799
  sx: {
12761
12800
  borderRadius: "8px",
@@ -12764,21 +12803,18 @@ const WS = {
12764
12803
  fontSize: "12px",
12765
12804
  color: "#1976D2",
12766
12805
  borderColor: "#1976D2",
12767
- py: 0.8,
12768
- px: 1,
12769
- // Padding horizontal controlado
12770
- whiteSpace: "nowrap"
12806
+ py: 0.8
12771
12807
  },
12772
12808
  children: "Asistiré"
12773
12809
  }
12774
12810
  ) }),
12775
- /* @__PURE__ */ l.jsx(on, { item: !0, xs: 6, children: /* @__PURE__ */ l.jsx(
12811
+ /* @__PURE__ */ l.jsx(an, { item: !0, xs: 6, children: /* @__PURE__ */ l.jsx(
12776
12812
  Dt,
12777
12813
  {
12778
12814
  fullWidth: !0,
12779
12815
  variant: "outlined",
12780
12816
  size: "small",
12781
- startIcon: /* @__PURE__ */ l.jsx(Kr, { sx: { fontSize: "16px !important", mr: -0.5 } }),
12817
+ startIcon: /* @__PURE__ */ l.jsx(Kr, { sx: { fontSize: "16px !important" } }),
12782
12818
  onClick: () => r?.(e, "RECHAZADA"),
12783
12819
  sx: {
12784
12820
  borderRadius: "8px",
@@ -12787,9 +12823,7 @@ const WS = {
12787
12823
  fontSize: "12px",
12788
12824
  color: "#D32F2F",
12789
12825
  borderColor: "#D32F2F",
12790
- py: 0.8,
12791
- px: 1,
12792
- whiteSpace: "nowrap"
12826
+ py: 0.8
12793
12827
  },
12794
12828
  children: "Rechazar"
12795
12829
  }
@@ -13606,7 +13640,7 @@ function nE(e) {
13606
13640
  }, [t]), A.useMemo(() => k0(s, t, c.current, !1), [s, t]);
13607
13641
  }
13608
13642
  var Yr = (e) => typeof e == "string", A0 = (e, r, t, n, o) => Yr(e) ? (n && r.watch.add(e), pe(t, e, o)) : Array.isArray(e) ? e.map((a) => (n && r.watch.add(a), pe(t, a))) : (n && (r.watchAll = !0), t), Xc = (e) => or(e) || !C0(e);
13609
- function nn(e, r, t = /* @__PURE__ */ new WeakSet()) {
13643
+ function on(e, r, t = /* @__PURE__ */ new WeakSet()) {
13610
13644
  if (Xc(e) || Xc(r))
13611
13645
  return e === r;
13612
13646
  if (Bn(e) && Bn(r))
@@ -13623,7 +13657,7 @@ function nn(e, r, t = /* @__PURE__ */ new WeakSet()) {
13623
13657
  return !1;
13624
13658
  if (a !== "ref") {
13625
13659
  const i = r[a];
13626
- if (Bn(s) && Bn(i) || $t(s) && $t(i) || Array.isArray(s) && Array.isArray(i) ? !nn(s, i, t) : s !== i)
13660
+ if (Bn(s) && Bn(i) || $t(s) && $t(i) || Array.isArray(s) && Array.isArray(i) ? !on(s, i, t) : s !== i)
13627
13661
  return !1;
13628
13662
  }
13629
13663
  }
@@ -13644,7 +13678,7 @@ function R0(e) {
13644
13678
  const p = A0(n, t._names, m.values || t._formValues, !1, c.current);
13645
13679
  if (d.current) {
13646
13680
  const v = d.current(p);
13647
- nn(v, u.current) || (g(v), u.current = v);
13681
+ on(v, u.current) || (g(v), u.current = v);
13648
13682
  } else
13649
13683
  g(p);
13650
13684
  }
@@ -13810,7 +13844,7 @@ function I0(e, r, t) {
13810
13844
  const n = Array.isArray(e);
13811
13845
  if ($t(e) || n)
13812
13846
  for (const o in e)
13813
- Array.isArray(e[o]) || $t(e[o]) && !O0(e[o]) ? Ft(r) || Xc(t[o]) ? t[o] = Array.isArray(e[o]) ? ti(e[o], []) : { ...ti(e[o]) } : I0(e[o], or(r) ? {} : r[o], t[o]) : t[o] = !nn(e[o], r[o]);
13847
+ Array.isArray(e[o]) || $t(e[o]) && !O0(e[o]) ? Ft(r) || Xc(t[o]) ? t[o] = Array.isArray(e[o]) ? ti(e[o], []) : { ...ti(e[o]) } : I0(e[o], or(r) ? {} : r[o], t[o]) : t[o] = !on(e[o], r[o]);
13814
13848
  return t;
13815
13849
  }
13816
13850
  var Zo = (e, r) => I0(e, r, ti(r));
@@ -14121,7 +14155,7 @@ function vE(e = {}) {
14121
14155
  if (!r.disabled) {
14122
14156
  if (!z || ce) {
14123
14157
  (u.isDirty || f.isDirty) && (ne = t.isDirty, t.isDirty = De.isDirty = U(), O = ne !== De.isDirty);
14124
- const Ne = nn(pe(o, S), T);
14158
+ const Ne = on(pe(o, S), T);
14125
14159
  ne = !!pe(t.dirtyFields, S), Ne ? Vt(t.dirtyFields, S) : lt(t.dirtyFields, S, !0), De.dirtyFields = t.dirtyFields, O = O || (u.dirtyFields || f.dirtyFields) && ne !== !Ne;
14126
14160
  }
14127
14161
  if (z) {
@@ -14133,7 +14167,7 @@ function vE(e = {}) {
14133
14167
  return O ? De : {};
14134
14168
  }, B = (S, T, z, ce) => {
14135
14169
  const oe = pe(t.errors, S), O = (u.isValid || f.isValid) && pr(T) && t.isValid !== T;
14136
- if (r.delayError && z ? (c = m(() => x(S, z)), c(r.delayError)) : (clearTimeout(d), c = null, z ? lt(t.errors, S, z) : Vt(t.errors, S)), (z ? !nn(oe, z) : oe) || !ar(ce) || O) {
14170
+ if (r.delayError && z ? (c = m(() => x(S, z)), c(r.delayError)) : (clearTimeout(d), c = null, z ? lt(t.errors, S, z) : Vt(t.errors, S)), (z ? !on(oe, z) : oe) || !ar(ce) || O) {
14137
14171
  const ne = {
14138
14172
  ...ce,
14139
14173
  ...O && pr(T) ? { isValid: T } : {},
@@ -14184,7 +14218,7 @@ function vE(e = {}) {
14184
14218
  T && (T._f.refs ? T._f.refs.every((z) => !_c(z)) : !_c(T._f.ref)) && Q(S);
14185
14219
  }
14186
14220
  i.unMount = /* @__PURE__ */ new Set();
14187
- }, U = (S, T) => !r.disabled && (S && T && lt(a, S, T), !nn(j(), o)), Z = (S, T, z) => A0(S, i, {
14221
+ }, U = (S, T) => !r.disabled && (S && T && lt(a, S, T), !on(j(), o)), Z = (S, T, z) => A0(S, i, {
14188
14222
  ...s.mount ? a : Ft(T) ? o : Yr(S) ? { [S]: T } : T
14189
14223
  }, z, T), V = (S) => zl(pe(s.mount ? a : o, S, r.shouldUnregister ? pe(o, S, []) : [])), H = (S, T, z = {}) => {
14190
14224
  const ce = pe(n, S);
@@ -14224,7 +14258,7 @@ function vE(e = {}) {
14224
14258
  const T = S.target;
14225
14259
  let z = T.name, ce = !0;
14226
14260
  const oe = pe(n, z), O = (Ne) => {
14227
- ce = Number.isNaN(Ne) || Bn(Ne) && isNaN(Ne.getTime()) || nn(Ne, pe(a, z, Ne));
14261
+ ce = Number.isNaN(Ne) || Bn(Ne) && isNaN(Ne.getTime()) || on(Ne, pe(a, z, Ne));
14228
14262
  }, ne = mf(r.mode), De = mf(r.reValidateMode);
14229
14263
  if (oe) {
14230
14264
  let Ne, M;
@@ -14458,7 +14492,7 @@ function vE(e = {}) {
14458
14492
  focus: ""
14459
14493
  }, s.mount = !u.isValid || !!T.keepIsValid || !!T.keepDirtyValues, s.watch = !!r.shouldUnregister, h.state.next({
14460
14494
  submitCount: T.keepSubmitCount ? t.submitCount : 0,
14461
- isDirty: oe ? !1 : T.keepDirty ? t.isDirty : !!(T.keepDefaultValues && !nn(S, o)),
14495
+ isDirty: oe ? !1 : T.keepDirty ? t.isDirty : !!(T.keepDefaultValues && !on(S, o)),
14462
14496
  isSubmitted: T.keepIsSubmitted ? t.isSubmitted : !1,
14463
14497
  dirtyFields: oe ? {} : T.keepDirtyValues ? T.keepDefaultValues && a ? Zo(o, a) : t.dirtyFields : T.keepDefaultValues && S ? Zo(o, S) : T.keepDirty ? t.dirtyFields : {},
14464
14498
  touchedFields: T.keepTouched ? t.touchedFields : {},
@@ -14617,7 +14651,7 @@ function N0(e = {}) {
14617
14651
  });
14618
14652
  }
14619
14653
  }, [a, n.isDirty]), A.useEffect(() => {
14620
- e.values && !nn(e.values, t.current) ? (a._reset(e.values, {
14654
+ e.values && !on(e.values, t.current) ? (a._reset(e.values, {
14621
14655
  keepFieldsRef: !0,
14622
14656
  ...a._options.resetOptions
14623
14657
  }), t.current = e.values, o((s) => ({ ...s }))) : a._resetDefaultValues();
@@ -17238,7 +17272,7 @@ function JA({ guests: e, onReenviar: r, esOrganizador: t }) {
17238
17272
  borderRadius: "50%"
17239
17273
  }
17240
17274
  },
17241
- children: e.map((i, c) => /* @__PURE__ */ l.jsx(hn, { title: i.nombre, arrow: !0, placement: "top", children: /* @__PURE__ */ l.jsx(F, { children: /* @__PURE__ */ l.jsx(
17275
+ children: e.map((i, c) => /* @__PURE__ */ l.jsx(nn, { title: i.nombre, arrow: !0, placement: "top", children: /* @__PURE__ */ l.jsx(F, { children: /* @__PURE__ */ l.jsx(
17242
17276
  bm,
17243
17277
  {
17244
17278
  overlap: "circular",
@@ -17415,7 +17449,7 @@ function a5({ open: e, handleClose: r, suggestions: t, onSelectSlot: n }) {
17415
17449
  ]
17416
17450
  }
17417
17451
  ),
17418
- /* @__PURE__ */ l.jsx(on, { container: !0, spacing: 2, children: i[u].map((h, g) => /* @__PURE__ */ l.jsx(on, { item: !0, xs: 6, sm: 3, children: /* @__PURE__ */ l.jsx(o5, { slot: h, onClick: () => d(h) }) }, `${u}-${g}`)) })
17452
+ /* @__PURE__ */ l.jsx(an, { container: !0, spacing: 2, children: i[u].map((h, g) => /* @__PURE__ */ l.jsx(an, { item: !0, xs: 6, sm: 3, children: /* @__PURE__ */ l.jsx(o5, { slot: h, onClick: () => d(h) }) }, `${u}-${g}`)) })
17419
17453
  ] }),
17420
17454
  f === 0 && c.length > 1 && /* @__PURE__ */ l.jsx(Sr, { sx: { mb: 4, mt: 1, borderBottomWidth: 2, backgroundColor: "#000000" } })
17421
17455
  ] }, u)),
@@ -17847,7 +17881,7 @@ const y5 = {
17847
17881
  const ze = () => {
17848
17882
  const Y = ge("fechaInicio");
17849
17883
  if (Y) {
17850
- const ie = /* @__PURE__ */ new Date(`${Y}T00:00:00`), ke = ln(ie, 1);
17884
+ const ie = /* @__PURE__ */ new Date(`${Y}T00:00:00`), ke = un(ie, 1);
17851
17885
  G("fechaFin", ut(ke, "yyyy-MM-dd"));
17852
17886
  }
17853
17887
  f(!0);
@@ -18776,7 +18810,7 @@ const P5 = (e, r, t) => {
18776
18810
  a ? localStorage.setItem("nombreAnfitrion", a) : localStorage.setItem("nombreAnfitrion", "Anfitrion"), ge(L);
18777
18811
  };
18778
18812
  pt(() => {
18779
- const be = Co(/* @__PURE__ */ new Date()), Ae = Ma(ln(be, 6)), je = { start: be, end: Ae }, ur = c.filter((vr) => {
18813
+ const be = Co(/* @__PURE__ */ new Date()), Ae = Ma(un(be, 6)), je = { start: be, end: Ae }, ur = c.filter((vr) => {
18780
18814
  const Jr = { start: vr.fechaInicio, end: vr.fechaFin };
18781
18815
  return Lh(Jr, je);
18782
18816
  }).sort((vr, Jr) => vr.fechaInicio.getTime() - Jr.fechaInicio.getTime());
@@ -19802,7 +19836,7 @@ function k4({
19802
19836
  {
19803
19837
  key: "vehiculo",
19804
19838
  header: "Vehículo",
19805
- accessor: (X) => /* @__PURE__ */ l.jsx(hn, { title: X.Vehiculo ?? "", placement: "top", arrow: !0, children: /* @__PURE__ */ l.jsx(
19839
+ accessor: (X) => /* @__PURE__ */ l.jsx(nn, { title: X.Vehiculo ?? "", placement: "top", arrow: !0, children: /* @__PURE__ */ l.jsx(
19806
19840
  me,
19807
19841
  {
19808
19842
  component: "span",
@@ -19862,7 +19896,7 @@ function k4({
19862
19896
  return `${gm}${vm}`;
19863
19897
  };
19864
19898
  if (!xe)
19865
- return /* @__PURE__ */ l.jsx(hn, { title: "", placement: "top", children: /* @__PURE__ */ l.jsx(
19899
+ return /* @__PURE__ */ l.jsx(nn, { title: "", placement: "top", children: /* @__PURE__ */ l.jsx(
19866
19900
  me,
19867
19901
  {
19868
19902
  sx: { fontWeight: 700, fontSize: 13, textAlign: "center" },
@@ -19870,7 +19904,7 @@ function k4({
19870
19904
  }
19871
19905
  ) });
19872
19906
  const Rt = xe.split(/\s+/), _t = Rt[0] ?? "", Ar = Rt[1] ?? "", yr = Ie(_t), Mn = Ie(Ar), mm = `${yr}${Mn}` || "—";
19873
- return /* @__PURE__ */ l.jsx(hn, { title: xe, placement: "top", children: /* @__PURE__ */ l.jsx(
19907
+ return /* @__PURE__ */ l.jsx(nn, { title: xe, placement: "top", children: /* @__PURE__ */ l.jsx(
19874
19908
  me,
19875
19909
  {
19876
19910
  sx: { fontWeight: 700, fontSize: 13, textAlign: "center" },
@@ -19891,7 +19925,7 @@ function k4({
19891
19925
  {
19892
19926
  key: "actividad",
19893
19927
  header: "Actividad",
19894
- accessor: (X) => /* @__PURE__ */ l.jsx(hn, { title: X.Actividad ?? "", placement: "top", arrow: !0, children: /* @__PURE__ */ l.jsxs(
19928
+ accessor: (X) => /* @__PURE__ */ l.jsx(nn, { title: X.Actividad ?? "", placement: "top", arrow: !0, children: /* @__PURE__ */ l.jsxs(
19895
19929
  F,
19896
19930
  {
19897
19931
  sx: {
@@ -20253,7 +20287,7 @@ function k4({
20253
20287
  /* @__PURE__ */ l.jsx("div", { children: N?.avatar ? N.avatar(t) : null }),
20254
20288
  /* @__PURE__ */ l.jsx(me, { variant: "body2", color: "textPrimary", children: N?.value(t) }),
20255
20289
  xe && !B && /* @__PURE__ */ l.jsx(
20256
- hn,
20290
+ nn,
20257
20291
  {
20258
20292
  title: "Historial asesores",
20259
20293
  placement: "top",
@@ -20730,7 +20764,7 @@ function k4({
20730
20764
  }
20731
20765
  ),
20732
20766
  /* @__PURE__ */ l.jsx(
20733
- hn,
20767
+ nn,
20734
20768
  {
20735
20769
  title: rr && "Crear Solicitud",
20736
20770
  arrow: !0,
@@ -21788,7 +21822,7 @@ function SR(e) {
21788
21822
  const De = He.get(String(O));
21789
21823
  if (!De) return null;
21790
21824
  const Ne = { xs: 12, ...De.grid, ...ne || {} };
21791
- return /* @__PURE__ */ l.jsx(on, { item: !0, ...Ne, children: De.render ? De.render(x) : wp(De, x) }, `fld-${String(O)}`);
21825
+ return /* @__PURE__ */ l.jsx(an, { item: !0, ...Ne, children: De.render ? De.render(x) : wp(De, x) }, `fld-${String(O)}`);
21792
21826
  }, S = b ?? (e.haveId ? "edit" : "new"), T = S !== "onlyCars", z = S === "new" || S === "onlyCars", ce = D?.length > 0, oe = S === "onlyCars" ? ce : e.haveId ? P && j || ce : P && ce;
21793
21827
  return /* @__PURE__ */ l.jsx(
21794
21828
  So,
@@ -21869,7 +21903,7 @@ function SR(e) {
21869
21903
  width: "100%",
21870
21904
  gap: 2,
21871
21905
  children: Array.isArray(e.formLayout) && c ? e.formLayout.map((O, ne) => /* @__PURE__ */ l.jsx(
21872
- on,
21906
+ an,
21873
21907
  {
21874
21908
  container: !0,
21875
21909
  spacing: 2,
@@ -21885,9 +21919,9 @@ function SR(e) {
21885
21919
  })
21886
21920
  },
21887
21921
  `row-${ne}`
21888
- )) : /* @__PURE__ */ l.jsx(on, { container: !0, spacing: 2, width: "100%", children: n?.map((O, ne) => {
21922
+ )) : /* @__PURE__ */ l.jsx(an, { container: !0, spacing: 2, width: "100%", children: n?.map((O, ne) => {
21889
21923
  const De = O.grid ?? { xs: 12, md: 12 };
21890
- return /* @__PURE__ */ l.jsx(on, { item: !0, ...De, children: O.render ? O.render(x) : wp(O, x) }, `${String(O.name)}-${ne}`);
21924
+ return /* @__PURE__ */ l.jsx(an, { item: !0, ...De, children: O.render ? O.render(x) : wp(O, x) }, `${String(O.name)}-${ne}`);
21891
21925
  }) })
21892
21926
  }
21893
21927
  )
@@ -22219,7 +22253,7 @@ function W4() {
22219
22253
  }), "AttachFile"), pa;
22220
22254
  }
22221
22255
  var H4 = /* @__PURE__ */ W4();
22222
- const Y4 = /* @__PURE__ */ ht(H4), Rc = /^[^\s@]+@[^\s@]+\.[^\s@]+$/i, vs = /[,\s;]+/g, yn = (e) => e.normalize("NFD").replace(new RegExp("\\p{Diacritic}", "gu"), "").toLowerCase(), pn = (e, r) => Array.from(/* @__PURE__ */ new Set([...e, ...r.map((t) => t.trim()).filter(Boolean)])), Ep = (e, r) => r ? e.filter((t) => yn(t) !== yn(r)) : e, q4 = (e, r) => e.filter((t) => !r.some((n) => yn(n) === yn(t)));
22256
+ const Y4 = /* @__PURE__ */ ht(H4), Rc = /^[^\s@]+@[^\s@]+\.[^\s@]+$/i, vs = /[,\s;]+/g, yn = (e) => e.normalize("NFD").replace(new RegExp("\\p{Diacritic}", "gu"), "").toLowerCase(), hn = (e, r) => Array.from(/* @__PURE__ */ new Set([...e, ...r.map((t) => t.trim()).filter(Boolean)])), Ep = (e, r) => r ? e.filter((t) => yn(t) !== yn(r)) : e, q4 = (e, r) => e.filter((t) => !r.some((n) => yn(n) === yn(t)));
22223
22257
  function Or(e, r, t) {
22224
22258
  if (t)
22225
22259
  return typeof t == "function" ? t(e, r) : e[t];
@@ -22315,7 +22349,7 @@ function CR({
22315
22349
  pt(() => {
22316
22350
  if (e && !Ee.current) {
22317
22351
  let M = [];
22318
- w && se && (M = pn(M, [se])), B && Q.length && (M = pn(M, Q)), j((te) => pn(te, M)), ue(
22352
+ w && se && (M = hn(M, [se])), B && Q.length && (M = hn(M, Q)), j((te) => hn(te, M)), ue(
22319
22353
  t.recipients,
22320
22354
  // o el array que uses tras el merge
22321
22355
  se,
@@ -22339,14 +22373,14 @@ function CR({
22339
22373
  const M = x.trim();
22340
22374
  if (!M) return;
22341
22375
  const we = M.split(vs).filter(Boolean).filter((Ke) => Rc.test(Ke));
22342
- we.length > 0 && j((Ke) => pn(Ke, we)), C("");
22376
+ we.length > 0 && j((Ke) => hn(Ke, we)), C("");
22343
22377
  }, Me = (M) => {
22344
22378
  y(M), j(
22345
- (te) => M && se ? pn(te, [se]) : Ep(te, se)
22379
+ (te) => M && se ? hn(te, [se]) : Ep(te, se)
22346
22380
  );
22347
22381
  }, I = (M) => {
22348
22382
  _(M), j(
22349
- (te) => M ? pn(te, Q) : q4(te, Q)
22383
+ (te) => M ? hn(te, Q) : q4(te, Q)
22350
22384
  );
22351
22385
  }, Ue = (M) => {
22352
22386
  const te = Array.from(M.target.files || []);
@@ -22384,7 +22418,7 @@ function CR({
22384
22418
  let M = t.recipients;
22385
22419
  if (x.trim()) {
22386
22420
  const It = x.split(vs).filter((Y) => Rc.test(Y));
22387
- M = pn(M, It), j(M), C("");
22421
+ M = hn(M, It), j(M), C("");
22388
22422
  }
22389
22423
  const te = w ? se : "", we = le.find((It) => It?.Activo && It?.EmailAsesor)?.EmailAsesor?.trim() ?? "";
22390
22424
  o?.({
@@ -22540,7 +22574,7 @@ function CR({
22540
22574
  onBlur: G,
22541
22575
  onPaste: (M) => {
22542
22576
  const we = M.clipboardData.getData("text").split(vs).filter(Boolean);
22543
- we.length > 1 && (M.preventDefault(), j((Ke) => pn(Ke, we)), C(""));
22577
+ we.length > 1 && (M.preventDefault(), j((Ke) => hn(Ke, we)), C(""));
22544
22578
  },
22545
22579
  placeholder: t.recipients.length ? "" : "correo@ejemplo.com",
22546
22580
  style: {
@@ -22737,7 +22771,7 @@ function CR({
22737
22771
  primaryTypographyProps: { noWrap: !0, width: "auto" }
22738
22772
  }
22739
22773
  ),
22740
- /* @__PURE__ */ l.jsx(hn, { title: "Quitar", children: /* @__PURE__ */ l.jsx(
22774
+ /* @__PURE__ */ l.jsx(nn, { title: "Quitar", children: /* @__PURE__ */ l.jsx(
22741
22775
  Yt,
22742
22776
  {
22743
22777
  edge: "end",