@purpur/library 9.1.0 → 9.1.1

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.
Files changed (54) hide show
  1. package/CHANGELOG.json +24 -0
  2. package/CHANGELOG.md +12 -1
  3. package/dist/{calendar-C-F-pVCe.js → calendar-CoP1dGpQ.js} +2 -2
  4. package/dist/{calendar-C-F-pVCe.js.map → calendar-CoP1dGpQ.js.map} +1 -1
  5. package/dist/{calendar-DWpnuylk.mjs → calendar-D_sZrR92.mjs} +151 -140
  6. package/dist/{calendar-DWpnuylk.mjs.map → calendar-D_sZrR92.mjs.map} +1 -1
  7. package/dist/calendar.cjs.js +1 -1
  8. package/dist/calendar.es.js +1 -1
  9. package/dist/components/calendar/src/calendar.d.ts.map +1 -1
  10. package/dist/components/quantity-selector/src/quantity-selector-button.d.ts +2 -1
  11. package/dist/components/quantity-selector/src/quantity-selector-button.d.ts.map +1 -1
  12. package/dist/components/quantity-selector/src/quantity-selector.d.ts.map +1 -1
  13. package/dist/components/table/src/cell-types/button-group-cell.d.ts +6 -2
  14. package/dist/components/table/src/cell-types/button-group-cell.d.ts.map +1 -1
  15. package/dist/components/tooltip/src/tooltip.d.ts.map +1 -1
  16. package/dist/{date-picker-B8L1Hm8r.js → date-picker-BWW4xzyc.js} +2 -2
  17. package/dist/{date-picker-B8L1Hm8r.js.map → date-picker-BWW4xzyc.js.map} +1 -1
  18. package/dist/{date-picker-Bp_XpoOF.mjs → date-picker-D7EisjDG.mjs} +2 -2
  19. package/dist/{date-picker-Bp_XpoOF.mjs.map → date-picker-D7EisjDG.mjs.map} +1 -1
  20. package/dist/date-picker.cjs.js +1 -1
  21. package/dist/date-picker.es.js +1 -1
  22. package/dist/library.cjs.js +1 -1
  23. package/dist/library.es.js +6 -6
  24. package/dist/quantity-selector-BV7QwVlT.js +2 -0
  25. package/dist/quantity-selector-BV7QwVlT.js.map +1 -0
  26. package/dist/{quantity-selector-CsR6KTG3.mjs → quantity-selector-CGhJ2DjO.mjs} +59 -57
  27. package/dist/quantity-selector-CGhJ2DjO.mjs.map +1 -0
  28. package/dist/quantity-selector.cjs.js +1 -1
  29. package/dist/quantity-selector.es.js +1 -1
  30. package/dist/stepper-ClLQuoXr.js +2 -0
  31. package/dist/stepper-ClLQuoXr.js.map +1 -0
  32. package/dist/{stepper-B351hexi.mjs → stepper-k0bX9m4t.mjs} +4 -4
  33. package/dist/stepper-k0bX9m4t.mjs.map +1 -0
  34. package/dist/stepper.cjs.js +1 -1
  35. package/dist/stepper.es.js +1 -1
  36. package/dist/{table-DXYHrKI7.mjs → table-D_XW4smf.mjs} +2 -2
  37. package/dist/{table-DXYHrKI7.mjs.map → table-D_XW4smf.mjs.map} +1 -1
  38. package/dist/{table-x3SDCR-z.js → table-Ddv6BKo9.js} +2 -2
  39. package/dist/{table-x3SDCR-z.js.map → table-Ddv6BKo9.js.map} +1 -1
  40. package/dist/table.cjs.js +1 -1
  41. package/dist/table.es.js +1 -1
  42. package/dist/{tooltip-B_qTqtcF.js → tooltip-BatXMflw.js} +2 -2
  43. package/dist/{tooltip-B_qTqtcF.js.map → tooltip-BatXMflw.js.map} +1 -1
  44. package/dist/{tooltip-BHsVKFJ3.mjs → tooltip-CZzwHkea.mjs} +132 -132
  45. package/dist/{tooltip-BHsVKFJ3.mjs.map → tooltip-CZzwHkea.mjs.map} +1 -1
  46. package/dist/tooltip.cjs.js +1 -1
  47. package/dist/tooltip.es.js +1 -1
  48. package/package.json +23 -23
  49. package/dist/quantity-selector-CsR6KTG3.mjs.map +0 -1
  50. package/dist/quantity-selector-DWDg4aFO.js +0 -2
  51. package/dist/quantity-selector-DWDg4aFO.js.map +0 -1
  52. package/dist/stepper-B351hexi.mjs.map +0 -1
  53. package/dist/stepper-Cb4_9D2h.js +0 -2
  54. package/dist/stepper-Cb4_9D2h.js.map +0 -1
@@ -85,11 +85,11 @@ function Le(e) {
85
85
  i && a && e.internal.setUTCMinutes(e.internal.getUTCMinutes() + i);
86
86
  const c = s - o;
87
87
  c && Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + c);
88
- const f = /* @__PURE__ */ new Date(+e);
89
- f.setUTCSeconds(0);
90
- const h = s > 0 ? f.getSeconds() : (f.getSeconds() - 60) % 60, l = Math.round(-(ne(e.timeZone, e) * 60)) % 60;
91
- (l || h) && (e.internal.setUTCSeconds(e.internal.getUTCSeconds() + l), Date.prototype.setUTCSeconds.call(e, Date.prototype.getUTCSeconds.call(e) + l + h));
92
- const u = ne(e.timeZone, e), p = u > 0 ? Math.floor(u) : Math.ceil(u), g = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - p, D = p !== o, O = g - c;
88
+ const l = /* @__PURE__ */ new Date(+e);
89
+ l.setUTCSeconds(0);
90
+ const u = s > 0 ? l.getSeconds() : (l.getSeconds() - 60) % 60, f = Math.round(-(ne(e.timeZone, e) * 60)) % 60;
91
+ (f || u) && (e.internal.setUTCSeconds(e.internal.getUTCSeconds() + f), Date.prototype.setUTCSeconds.call(e, Date.prototype.getUTCSeconds.call(e) + f + u));
92
+ const h = ne(e.timeZone, e), p = h > 0 ? Math.floor(h) : Math.ceil(h), g = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - p, D = p !== o, O = g - c;
93
93
  if (D && O) {
94
94
  Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + O);
95
95
  const W = ne(e.timeZone, e), k = W > 0 ? Math.floor(W) : Math.ceil(W), S = p - k;
@@ -212,7 +212,7 @@ function cn(e, t, o) {
212
212
  );
213
213
  return +Ee(n) == +Ee(s);
214
214
  }
215
- function fn(e, t, o) {
215
+ function ln(e, t, o) {
216
216
  const [n, s] = ce(
217
217
  o?.in,
218
218
  e,
@@ -220,7 +220,7 @@ function fn(e, t, o) {
220
220
  ), r = n.getFullYear() - s.getFullYear(), i = n.getMonth() - s.getMonth();
221
221
  return r * 12 + i;
222
222
  }
223
- function ln(e, t) {
223
+ function fn(e, t) {
224
224
  const o = I(e, t?.in), n = o.getMonth();
225
225
  return o.setFullYear(o.getFullYear(), n + 1, 0), o.setHours(23, 59, 59, 999), o;
226
226
  }
@@ -317,7 +317,7 @@ class ee {
317
317
  * @param overrides Custom overrides for the date library functions.
318
318
  */
319
319
  constructor(t, o) {
320
- this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? F.tz(this.options.timeZone) : new this.Date(), this.newDate = (n, s, r) => this.overrides?.newDate ? this.overrides.newDate(n, s, r) : this.options.timeZone ? new F(n, s, r, this.options.timeZone) : new Date(n, s, r), this.addDays = (n, s) => this.overrides?.addDays ? this.overrides.addDays(n, s) : Ge(n, s), this.addMonths = (n, s) => this.overrides?.addMonths ? this.overrides.addMonths(n, s) : Ve(n, s), this.addWeeks = (n, s) => this.overrides?.addWeeks ? this.overrides.addWeeks(n, s) : on(n, s), this.addYears = (n, s) => this.overrides?.addYears ? this.overrides.addYears(n, s) : sn(n, s), this.differenceInCalendarDays = (n, s) => this.overrides?.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(n, s) : Rt(n, s), this.differenceInCalendarMonths = (n, s) => this.overrides?.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(n, s) : fn(n, s), this.eachMonthOfInterval = (n) => this.overrides?.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(n) : un(n), this.endOfBroadcastWeek = (n) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(n) : Wn(n, this), this.endOfISOWeek = (n) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(n) : yn(n), this.endOfMonth = (n) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(n) : ln(n), this.endOfWeek = (n, s) => this.overrides?.endOfWeek ? this.overrides.endOfWeek(n, s) : Je(n, this.options), this.endOfYear = (n) => this.overrides?.endOfYear ? this.overrides.endOfYear(n) : mn(n), this.format = (n, s, r) => {
320
+ this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? F.tz(this.options.timeZone) : new this.Date(), this.newDate = (n, s, r) => this.overrides?.newDate ? this.overrides.newDate(n, s, r) : this.options.timeZone ? new F(n, s, r, this.options.timeZone) : new Date(n, s, r), this.addDays = (n, s) => this.overrides?.addDays ? this.overrides.addDays(n, s) : Ge(n, s), this.addMonths = (n, s) => this.overrides?.addMonths ? this.overrides.addMonths(n, s) : Ve(n, s), this.addWeeks = (n, s) => this.overrides?.addWeeks ? this.overrides.addWeeks(n, s) : on(n, s), this.addYears = (n, s) => this.overrides?.addYears ? this.overrides.addYears(n, s) : sn(n, s), this.differenceInCalendarDays = (n, s) => this.overrides?.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(n, s) : Rt(n, s), this.differenceInCalendarMonths = (n, s) => this.overrides?.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(n, s) : ln(n, s), this.eachMonthOfInterval = (n) => this.overrides?.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(n) : un(n), this.endOfBroadcastWeek = (n) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(n) : Wn(n, this), this.endOfISOWeek = (n) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(n) : yn(n), this.endOfMonth = (n) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(n) : fn(n), this.endOfWeek = (n, s) => this.overrides?.endOfWeek ? this.overrides.endOfWeek(n, s) : Je(n, this.options), this.endOfYear = (n) => this.overrides?.endOfYear ? this.overrides.endOfYear(n) : mn(n), this.format = (n, s, r) => {
321
321
  const i = this.overrides?.format ? this.overrides.format(n, s, this.options) : Ut(n, s, this.options);
322
322
  return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(i) : i;
323
323
  }, this.getISOWeek = (n) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(n) : Gt(n), this.getMonth = (n, s) => this.overrides?.getMonth ? this.overrides.getMonth(n, this.options) : kn(n, this.options), this.getYear = (n, s) => this.overrides?.getYear ? this.overrides.getYear(n, this.options) : Mn(n, this.options), this.getWeek = (n, s) => this.overrides?.getWeek ? this.overrides.getWeek(n, this.options) : Kt(n, this.options), this.isAfter = (n, s) => this.overrides?.isAfter ? this.overrides.isAfter(n, s) : Dn(n, s), this.isBefore = (n, s) => this.overrides?.isBefore ? this.overrides.isBefore(n, s) : bn(n, s), this.isDate = (n) => this.overrides?.isDate ? this.overrides.isDate(n) : Lt(n), this.isSameDay = (n, s) => this.overrides?.isSameDay ? this.overrides.isSameDay(n, s) : cn(n, s), this.isSameMonth = (n, s) => this.overrides?.isSameMonth ? this.overrides.isSameMonth(n, s) : wn(n, s), this.isSameYear = (n, s) => this.overrides?.isSameYear ? this.overrides.isSameYear(n, s) : vn(n, s), this.max = (n) => this.overrides?.max ? this.overrides.max(n) : rn(n), this.min = (n) => this.overrides?.min ? this.overrides.min(n) : an(n), this.setMonth = (n, s) => this.overrides?.setMonth ? this.overrides.setMonth(n, s) : On(n, s), this.setYear = (n, s) => this.overrides?.setYear ? this.overrides.setYear(n, s) : gn(n, s), this.startOfBroadcastWeek = (n, s) => this.overrides?.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(n, this) : Qe(n, this), this.startOfDay = (n) => this.overrides?.startOfDay ? this.overrides.startOfDay(n) : Ee(n), this.startOfISOWeek = (n) => this.overrides?.startOfISOWeek ? this.overrides.startOfISOWeek(n) : Vt(n), this.startOfMonth = (n) => this.overrides?.startOfMonth ? this.overrides.startOfMonth(n) : hn(n), this.startOfWeek = (n, s) => this.overrides?.startOfWeek ? this.overrides.startOfWeek(n, this.options) : Jt(n, this.options), this.startOfYear = (n) => this.overrides?.startOfYear ? this.overrides.startOfYear(n) : Qt(n), this.options = { locale: Ke, ...t }, this.overrides = o;
@@ -422,14 +422,14 @@ function X(e, t, o = V) {
422
422
  if (ot(a))
423
423
  return Array.isArray(a.dayOfWeek) ? a.dayOfWeek.includes(e.getDay()) : a.dayOfWeek === e.getDay();
424
424
  if (et(a)) {
425
- const c = r(a.before, e), f = r(a.after, e), h = c > 0, l = f < 0;
426
- return i(a.before, a.after) ? l && h : h || l;
425
+ const c = r(a.before, e), l = r(a.after, e), u = c > 0, f = l < 0;
426
+ return i(a.before, a.after) ? f && u : u || f;
427
427
  }
428
428
  return tt(a) ? r(e, a.after) > 0 : nt(a) ? r(a.before, e) > 0 : typeof a == "function" ? a(e) : !1;
429
429
  });
430
430
  }
431
431
  function En(e, t, o, n, s) {
432
- const { disabled: r, hidden: i, modifiers: a, showOutsideDays: c, broadcastCalendar: f, today: h } = t, { isSameDay: l, isSameMonth: u, startOfMonth: p, isBefore: w, endOfMonth: g, isAfter: D } = s, O = o && p(o), W = n && g(n), k = {
432
+ const { disabled: r, hidden: i, modifiers: a, showOutsideDays: c, broadcastCalendar: l, today: u } = t, { isSameDay: f, isSameMonth: h, startOfMonth: p, isBefore: w, endOfMonth: g, isAfter: D } = s, O = o && p(o), W = n && g(n), k = {
433
433
  [T.focused]: [],
434
434
  [T.outside]: [],
435
435
  [T.disabled]: [],
@@ -437,8 +437,8 @@ function En(e, t, o, n, s) {
437
437
  [T.today]: []
438
438
  }, S = {};
439
439
  for (const y of e) {
440
- const { date: b, displayMonth: M } = y, _ = !!(M && !u(b, M)), Y = !!(O && w(b, O)), $ = !!(W && D(b, W)), P = !!(r && X(b, r, s)), Z = !!(i && X(b, i, s)) || Y || $ || // Broadcast calendar will show outside days as default
441
- !f && !c && _ || f && c === !1 && _, oe = l(b, h ?? s.today());
440
+ const { date: b, displayMonth: M } = y, _ = !!(M && !h(b, M)), Y = !!(O && w(b, O)), $ = !!(W && D(b, W)), P = !!(r && X(b, r, s)), Z = !!(i && X(b, i, s)) || Y || $ || // Broadcast calendar will show outside days as default
441
+ !l && !c && _ || l && c === !1 && _, oe = f(b, u ?? s.today());
442
442
  _ && k.outside.push(y), P && k.disabled.push(y), Z && k.hidden.push(y), oe && k.today.push(y), a && Object.keys(a).forEach((se) => {
443
443
  const re = a?.[se];
444
444
  re && X(b, re, s) && (S[se] ? S[se].push(y) : S[se] = [y]);
@@ -500,7 +500,7 @@ function $n(e) {
500
500
  return d.createElement(
501
501
  "span",
502
502
  { "data-disabled": r.disabled, className: s[m.DropdownRoot] },
503
- d.createElement(n.Select, { className: i, ...r }, t?.map(({ value: c, label: f, disabled: h }) => d.createElement(n.Option, { key: c, value: c, disabled: h }, f))),
503
+ d.createElement(n.Select, { className: i, ...r }, t?.map(({ value: c, label: l, disabled: u }) => d.createElement(n.Option, { key: c, value: c, disabled: u }, l))),
504
504
  d.createElement(
505
505
  "span",
506
506
  { className: s[m.CaptionLabel], "aria-hidden": !0 },
@@ -530,46 +530,46 @@ function zn(e) {
530
530
  return d.createElement("div", { ...e });
531
531
  }
532
532
  const rt = At(void 0);
533
- function fe() {
533
+ function le() {
534
534
  const e = Ht(rt);
535
535
  if (e === void 0)
536
536
  throw new Error("useDayPicker() must be used within a custom component.");
537
537
  return e;
538
538
  }
539
539
  function qn(e) {
540
- const { components: t } = fe();
540
+ const { components: t } = le();
541
541
  return d.createElement(t.Dropdown, { ...e });
542
542
  }
543
543
  function Rn(e) {
544
- const { onPreviousClick: t, onNextClick: o, previousMonth: n, nextMonth: s, ...r } = e, { components: i, classNames: a, labels: { labelPrevious: c, labelNext: f } } = fe(), h = H((u) => {
545
- s && o?.(u);
546
- }, [s, o]), l = H((u) => {
547
- n && t?.(u);
544
+ const { onPreviousClick: t, onNextClick: o, previousMonth: n, nextMonth: s, ...r } = e, { components: i, classNames: a, labels: { labelPrevious: c, labelNext: l } } = le(), u = H((h) => {
545
+ s && o?.(h);
546
+ }, [s, o]), f = H((h) => {
547
+ n && t?.(h);
548
548
  }, [n, t]);
549
549
  return d.createElement(
550
550
  "nav",
551
551
  { ...r },
552
552
  d.createElement(
553
553
  i.PreviousMonthButton,
554
- { type: "button", className: a[m.PreviousMonthButton], tabIndex: n ? void 0 : -1, "aria-disabled": n ? void 0 : !0, "aria-label": c(n), onClick: l },
554
+ { type: "button", className: a[m.PreviousMonthButton], tabIndex: n ? void 0 : -1, "aria-disabled": n ? void 0 : !0, "aria-label": c(n), onClick: f },
555
555
  d.createElement(i.Chevron, { disabled: n ? void 0 : !0, className: a[m.Chevron], orientation: "left" })
556
556
  ),
557
557
  d.createElement(
558
558
  i.NextMonthButton,
559
- { type: "button", className: a[m.NextMonthButton], tabIndex: s ? void 0 : -1, "aria-disabled": s ? void 0 : !0, "aria-label": f(s), onClick: h },
559
+ { type: "button", className: a[m.NextMonthButton], tabIndex: s ? void 0 : -1, "aria-disabled": s ? void 0 : !0, "aria-label": l(s), onClick: u },
560
560
  d.createElement(i.Chevron, { disabled: s ? void 0 : !0, orientation: "right", className: a[m.Chevron] })
561
561
  )
562
562
  );
563
563
  }
564
564
  function Un(e) {
565
- const { components: t } = fe();
565
+ const { components: t } = le();
566
566
  return d.createElement(t.Button, { ...e });
567
567
  }
568
568
  function Gn(e) {
569
569
  return d.createElement("option", { ...e });
570
570
  }
571
571
  function Kn(e) {
572
- const { components: t } = fe();
572
+ const { components: t } = le();
573
573
  return d.createElement(t.Button, { ...e });
574
574
  }
575
575
  function Ln(e) {
@@ -604,7 +604,7 @@ function no(e) {
604
604
  return d.createElement("tbody", { ...e });
605
605
  }
606
606
  function oo(e) {
607
- const { components: t } = fe();
607
+ const { components: t } = le();
608
608
  return d.createElement(t.Dropdown, { ...e });
609
609
  }
610
610
  const so = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -674,10 +674,10 @@ const io = it;
674
674
  function co(e, t, o) {
675
675
  return (o ?? new ee(t)).format(e, "d");
676
676
  }
677
- function fo(e, t = V) {
677
+ function lo(e, t = V) {
678
678
  return t.format(e, "LLLL");
679
679
  }
680
- function lo(e, t = V) {
680
+ function fo(e, t = V) {
681
681
  return e < 10 ? t.formatNumber(`0${e.toLocaleString()}`) : t.formatNumber(`${e.toLocaleString()}`);
682
682
  }
683
683
  function uo() {
@@ -694,8 +694,8 @@ const mo = ct, yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
694
694
  formatCaption: it,
695
695
  formatDay: co,
696
696
  formatMonthCaption: io,
697
- formatMonthDropdown: fo,
698
- formatWeekNumber: lo,
697
+ formatMonthDropdown: lo,
698
+ formatWeekNumber: fo,
699
699
  formatWeekNumberHeader: uo,
700
700
  formatWeekdayName: ho,
701
701
  formatYearCaption: mo,
@@ -708,12 +708,12 @@ function po(e) {
708
708
  };
709
709
  }
710
710
  function ko(e, t, o, n, s) {
711
- const { startOfMonth: r, startOfYear: i, endOfYear: a, eachMonthOfInterval: c, getMonth: f } = s;
711
+ const { startOfMonth: r, startOfYear: i, endOfYear: a, eachMonthOfInterval: c, getMonth: l } = s;
712
712
  return c({
713
713
  start: i(e),
714
714
  end: a(e)
715
- }).map((u) => {
716
- const p = n.formatMonthDropdown(u, s), w = f(u), g = t && u < r(t) || o && u > r(o) || !1;
715
+ }).map((h) => {
716
+ const p = n.formatMonthDropdown(h, s), w = l(h), g = t && h < r(t) || o && h > r(o) || !1;
717
717
  return { value: w, label: p, disabled: g };
718
718
  });
719
719
  }
@@ -737,11 +737,11 @@ function Do(e, t, o) {
737
737
  function bo(e, t, o, n) {
738
738
  if (!e || !t)
739
739
  return;
740
- const { startOfYear: s, endOfYear: r, addYears: i, getYear: a, isBefore: c, isSameYear: f } = n, h = s(e), l = r(t), u = [];
741
- let p = h;
742
- for (; c(p, l) || f(p, l); )
743
- u.push(p), p = i(p, 1);
744
- return u.map((w) => {
740
+ const { startOfYear: s, endOfYear: r, addYears: i, getYear: a, isBefore: c, isSameYear: l } = n, u = s(e), f = r(t), h = [];
741
+ let p = u;
742
+ for (; c(p, f) || l(p, f); )
743
+ h.push(p), p = i(p, 1);
744
+ return h.map((w) => {
745
745
  const g = o.formatYearDropdown(w, n);
746
746
  return {
747
747
  value: a(w),
@@ -750,19 +750,19 @@ function bo(e, t, o, n) {
750
750
  };
751
751
  });
752
752
  }
753
- function ft(e, t, o) {
753
+ function lt(e, t, o) {
754
754
  return (o ?? new ee(t)).format(e, "LLLL y");
755
755
  }
756
- const wo = ft;
756
+ const wo = lt;
757
757
  function vo(e, t, o, n) {
758
758
  let s = (n ?? new ee(o)).format(e, "PPPP");
759
759
  return t?.today && (s = `Today, ${s}`), s;
760
760
  }
761
- function lt(e, t, o, n) {
761
+ function ft(e, t, o, n) {
762
762
  let s = (n ?? new ee(o)).format(e, "PPPP");
763
763
  return t.today && (s = `Today, ${s}`), t.selected && (s = `${s}, selected`), s;
764
764
  }
765
- const Oo = lt;
765
+ const Oo = ft;
766
766
  function go() {
767
767
  return "";
768
768
  }
@@ -791,8 +791,8 @@ const Yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
791
791
  __proto__: null,
792
792
  labelCaption: wo,
793
793
  labelDay: Oo,
794
- labelDayButton: lt,
795
- labelGrid: ft,
794
+ labelDayButton: ft,
795
+ labelGrid: lt,
796
796
  labelGridcell: vo,
797
797
  labelMonthDropdown: _o,
798
798
  labelNav: go,
@@ -802,28 +802,28 @@ const Yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
802
802
  labelWeekNumberHeader: Eo,
803
803
  labelWeekday: No,
804
804
  labelYearDropdown: To
805
- }, Symbol.toStringTag, { value: "Module" })), le = (e) => e instanceof HTMLElement ? e : null, We = (e) => [
805
+ }, Symbol.toStringTag, { value: "Module" })), fe = (e) => e instanceof HTMLElement ? e : null, We = (e) => [
806
806
  ...e.querySelectorAll("[data-animated-month]") ?? []
807
- ], Bo = (e) => le(e.querySelector("[data-animated-month]")), Ne = (e) => le(e.querySelector("[data-animated-caption]")), Se = (e) => le(e.querySelector("[data-animated-weeks]")), xo = (e) => le(e.querySelector("[data-animated-nav]")), Fo = (e) => le(e.querySelector("[data-animated-weekdays]"));
807
+ ], Bo = (e) => fe(e.querySelector("[data-animated-month]")), Ne = (e) => fe(e.querySelector("[data-animated-caption]")), Se = (e) => fe(e.querySelector("[data-animated-weeks]")), xo = (e) => fe(e.querySelector("[data-animated-nav]")), Fo = (e) => fe(e.querySelector("[data-animated-weekdays]"));
808
808
  function Io(e, t, { classNames: o, months: n, focused: s, dateLib: r }) {
809
809
  const i = ye(null), a = ye(n), c = ye(!1);
810
810
  Zt(() => {
811
- const f = a.current;
811
+ const l = a.current;
812
812
  if (a.current = n, !t || !e.current || // safety check because the ref can be set to anything by consumers
813
813
  !(e.current instanceof HTMLElement) || // validation required for the animation to work as expected
814
- n.length === 0 || f.length === 0 || n.length !== f.length)
814
+ n.length === 0 || l.length === 0 || n.length !== l.length)
815
815
  return;
816
- const h = r.isSameMonth(n[0].date, f[0].date), l = r.isAfter(n[0].date, f[0].date), u = l ? o[A.caption_after_enter] : o[A.caption_before_enter], p = l ? o[A.weeks_after_enter] : o[A.weeks_before_enter], w = i.current, g = e.current.cloneNode(!0);
816
+ const u = r.isSameMonth(n[0].date, l[0].date), f = r.isAfter(n[0].date, l[0].date), h = f ? o[A.caption_after_enter] : o[A.caption_before_enter], p = f ? o[A.weeks_after_enter] : o[A.weeks_before_enter], w = i.current, g = e.current.cloneNode(!0);
817
817
  if (g instanceof HTMLElement ? (We(g).forEach((k) => {
818
818
  if (!(k instanceof HTMLElement))
819
819
  return;
820
820
  const S = Bo(k);
821
821
  S && k.contains(S) && k.removeChild(S);
822
822
  const y = Ne(k);
823
- y && y.classList.remove(u);
823
+ y && y.classList.remove(h);
824
824
  const b = Se(k);
825
825
  b && b.classList.remove(p);
826
- }), i.current = g) : i.current = null, c.current || h || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
826
+ }), i.current = g) : i.current = null, c.current || u || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
827
827
  s)
828
828
  return;
829
829
  const D = w instanceof HTMLElement ? We(w) : [], O = We(e.current);
@@ -836,27 +836,27 @@ function Io(e, t, { classNames: o, months: n, focused: s, dateLib: r }) {
836
836
  return;
837
837
  k.style.position = "relative", k.style.overflow = "hidden";
838
838
  const b = Ne(k);
839
- b && b.classList.add(u);
839
+ b && b.classList.add(h);
840
840
  const M = Se(k);
841
841
  M && M.classList.add(p);
842
842
  const _ = () => {
843
- c.current = !1, e.current && (e.current.style.isolation = ""), W && (W.style.zIndex = ""), b && b.classList.remove(u), M && M.classList.remove(p), k.style.position = "", k.style.overflow = "", k.contains(y) && k.removeChild(y);
843
+ c.current = !1, e.current && (e.current.style.isolation = ""), W && (W.style.zIndex = ""), b && b.classList.remove(h), M && M.classList.remove(p), k.style.position = "", k.style.overflow = "", k.contains(y) && k.removeChild(y);
844
844
  };
845
845
  y.style.pointerEvents = "none", y.style.position = "absolute", y.style.overflow = "hidden", y.setAttribute("aria-hidden", "true");
846
846
  const Y = Fo(y);
847
847
  Y && (Y.style.opacity = "0");
848
848
  const $ = Ne(y);
849
- $ && ($.classList.add(l ? o[A.caption_before_exit] : o[A.caption_after_exit]), $.addEventListener("animationend", _));
849
+ $ && ($.classList.add(f ? o[A.caption_before_exit] : o[A.caption_after_exit]), $.addEventListener("animationend", _));
850
850
  const P = Se(y);
851
- P && P.classList.add(l ? o[A.weeks_before_exit] : o[A.weeks_after_exit]), k.insertBefore(y, k.firstChild);
851
+ P && P.classList.add(f ? o[A.weeks_before_exit] : o[A.weeks_after_exit]), k.insertBefore(y, k.firstChild);
852
852
  });
853
853
  }
854
854
  });
855
855
  }
856
856
  function $o(e, t, o, n) {
857
- const s = e[0], r = e[e.length - 1], { ISOWeek: i, fixedWeeks: a, broadcastCalendar: c } = o ?? {}, { addDays: f, differenceInCalendarDays: h, differenceInCalendarMonths: l, endOfBroadcastWeek: u, endOfISOWeek: p, endOfMonth: w, endOfWeek: g, isAfter: D, startOfBroadcastWeek: O, startOfISOWeek: W, startOfWeek: k } = n, S = c ? O(s, n) : i ? W(s) : k(s), y = c ? u(r) : i ? p(w(r)) : g(w(r)), b = h(y, S), M = l(r, s) + 1, _ = [];
857
+ const s = e[0], r = e[e.length - 1], { ISOWeek: i, fixedWeeks: a, broadcastCalendar: c } = o ?? {}, { addDays: l, differenceInCalendarDays: u, differenceInCalendarMonths: f, endOfBroadcastWeek: h, endOfISOWeek: p, endOfMonth: w, endOfWeek: g, isAfter: D, startOfBroadcastWeek: O, startOfISOWeek: W, startOfWeek: k } = n, S = c ? O(s, n) : i ? W(s) : k(s), y = c ? h(r) : i ? p(w(r)) : g(w(r)), b = u(y, S), M = f(r, s) + 1, _ = [];
858
858
  for (let P = 0; P <= b; P++) {
859
- const Z = f(S, P);
859
+ const Z = l(S, P);
860
860
  if (t && D(Z, t))
861
861
  break;
862
862
  _.push(Z);
@@ -865,7 +865,7 @@ function $o(e, t, o, n) {
865
865
  if (a && _.length < $) {
866
866
  const P = $ - _.length;
867
867
  for (let Z = 0; Z < P; Z++) {
868
- const oe = f(_[_.length - 1], 1);
868
+ const oe = l(_[_.length - 1], 1);
869
869
  _.push(oe);
870
870
  }
871
871
  }
@@ -891,16 +891,16 @@ function Ao(e, t, o, n) {
891
891
  function ze(e, t, o, n) {
892
892
  const { month: s, defaultMonth: r, today: i = n.today(), numberOfMonths: a = 1 } = e;
893
893
  let c = s || r || i;
894
- const { differenceInCalendarMonths: f, addMonths: h, startOfMonth: l } = n;
895
- if (o && f(o, c) < a - 1) {
896
- const u = -1 * (a - 1);
897
- c = h(o, u);
894
+ const { differenceInCalendarMonths: l, addMonths: u, startOfMonth: f } = n;
895
+ if (o && l(o, c) < a - 1) {
896
+ const h = -1 * (a - 1);
897
+ c = u(o, h);
898
898
  }
899
- return t && f(c, t) < 0 && (c = t), l(c);
899
+ return t && l(c, t) < 0 && (c = t), f(c);
900
900
  }
901
901
  function Ho(e, t, o, n) {
902
- const { addDays: s, endOfBroadcastWeek: r, endOfISOWeek: i, endOfMonth: a, endOfWeek: c, getISOWeek: f, getWeek: h, startOfBroadcastWeek: l, startOfISOWeek: u, startOfWeek: p } = n, w = e.reduce((g, D) => {
903
- const O = o.broadcastCalendar ? l(D, n) : o.ISOWeek ? u(D) : p(D), W = o.broadcastCalendar ? r(D) : o.ISOWeek ? i(a(D)) : c(a(D)), k = t.filter((M) => M >= O && M <= W), S = o.broadcastCalendar ? 35 : 42;
902
+ const { addDays: s, endOfBroadcastWeek: r, endOfISOWeek: i, endOfMonth: a, endOfWeek: c, getISOWeek: l, getWeek: u, startOfBroadcastWeek: f, startOfISOWeek: h, startOfWeek: p } = n, w = e.reduce((g, D) => {
903
+ const O = o.broadcastCalendar ? f(D, n) : o.ISOWeek ? h(D) : p(D), W = o.broadcastCalendar ? r(D) : o.ISOWeek ? i(a(D)) : c(a(D)), k = t.filter((M) => M >= O && M <= W), S = o.broadcastCalendar ? 35 : 42;
904
904
  if (o.fixedWeeks && k.length < S) {
905
905
  const M = t.filter((_) => {
906
906
  const Y = S - k.length;
@@ -909,7 +909,7 @@ function Ho(e, t, o, n) {
909
909
  k.push(...M);
910
910
  }
911
911
  const y = k.reduce((M, _) => {
912
- const Y = o.ISOWeek ? f(_) : h(_), $ = M.find((Z) => Z.weekNumber === Y), P = new Xe(_, D, n);
912
+ const Y = o.ISOWeek ? l(_) : u(_), $ = M.find((Z) => Z.weekNumber === Y), P = new Xe(_, D, n);
913
913
  return $ ? $.days.push(P) : M.push(new Sn(Y, [P])), M;
914
914
  }, []), b = new Nn(D, y);
915
915
  return g.push(b), g;
@@ -918,10 +918,10 @@ function Ho(e, t, o, n) {
918
918
  }
919
919
  function Zo(e, t) {
920
920
  let { startMonth: o, endMonth: n } = e;
921
- const { startOfYear: s, startOfDay: r, startOfMonth: i, endOfMonth: a, addYears: c, endOfYear: f, newDate: h, today: l } = t, { fromYear: u, toYear: p, fromMonth: w, toMonth: g } = e;
922
- !o && w && (o = w), !o && u && (o = t.newDate(u, 0, 1)), !n && g && (n = g), !n && p && (n = h(p, 11, 31));
921
+ const { startOfYear: s, startOfDay: r, startOfMonth: i, endOfMonth: a, addYears: c, endOfYear: l, newDate: u, today: f } = t, { fromYear: h, toYear: p, fromMonth: w, toMonth: g } = e;
922
+ !o && w && (o = w), !o && h && (o = t.newDate(h, 0, 1)), !n && g && (n = g), !n && p && (n = u(p, 11, 31));
923
923
  const D = e.captionLayout === "dropdown" || e.captionLayout === "dropdown-years";
924
- return o ? o = i(o) : u ? o = h(u, 0, 1) : !o && D && (o = s(c(e.today ?? l(), -100))), n ? n = a(n) : p ? n = h(p, 11, 31) : !n && D && (n = f(e.today ?? l())), [
924
+ return o ? o = i(o) : h ? o = u(h, 0, 1) : !o && D && (o = s(c(e.today ?? f(), -100))), n ? n = a(n) : p ? n = u(p, 11, 31) : !n && D && (n = l(e.today ?? f())), [
925
925
  o && r(o),
926
926
  n && r(n)
927
927
  ];
@@ -929,20 +929,20 @@ function Zo(e, t) {
929
929
  function jo(e, t, o, n) {
930
930
  if (o.disableNavigation)
931
931
  return;
932
- const { pagedNavigation: s, numberOfMonths: r = 1 } = o, { startOfMonth: i, addMonths: a, differenceInCalendarMonths: c } = n, f = s ? r : 1, h = i(e);
932
+ const { pagedNavigation: s, numberOfMonths: r = 1 } = o, { startOfMonth: i, addMonths: a, differenceInCalendarMonths: c } = n, l = s ? r : 1, u = i(e);
933
933
  if (!t)
934
- return a(h, f);
934
+ return a(u, l);
935
935
  if (!(c(t, e) < r))
936
- return a(h, f);
936
+ return a(u, l);
937
937
  }
938
938
  function zo(e, t, o, n) {
939
939
  if (o.disableNavigation)
940
940
  return;
941
- const { pagedNavigation: s, numberOfMonths: r } = o, { startOfMonth: i, addMonths: a, differenceInCalendarMonths: c } = n, f = s ? r ?? 1 : 1, h = i(e);
941
+ const { pagedNavigation: s, numberOfMonths: r } = o, { startOfMonth: i, addMonths: a, differenceInCalendarMonths: c } = n, l = s ? r ?? 1 : 1, u = i(e);
942
942
  if (!t)
943
- return a(h, -f);
944
- if (!(c(h, t) <= 0))
945
- return a(h, -f);
943
+ return a(u, -l);
944
+ if (!(c(u, t) <= 0))
945
+ return a(u, -l);
946
946
  }
947
947
  function qo(e) {
948
948
  const t = [];
@@ -962,15 +962,15 @@ function Ro(e, t) {
962
962
  const b = ze(e, o, n, t);
963
963
  c(b);
964
964
  }, [e.timeZone]);
965
- const f = Ao(a, n, e, t), h = $o(f, e.endMonth ? r(e.endMonth) : void 0, e, t), l = Ho(f, h, e, t), u = qo(l), p = Po(l), w = zo(a, o, e, t), g = jo(a, n, e, t), { disableNavigation: D, onMonthChange: O } = e, W = (b) => u.some((M) => M.days.some((_) => _.isEqualTo(b))), k = (b) => {
965
+ const l = Ao(a, n, e, t), u = $o(l, e.endMonth ? r(e.endMonth) : void 0, e, t), f = Ho(l, u, e, t), h = qo(f), p = Po(f), w = zo(a, o, e, t), g = jo(a, n, e, t), { disableNavigation: D, onMonthChange: O } = e, W = (b) => h.some((M) => M.days.some((_) => _.isEqualTo(b))), k = (b) => {
966
966
  if (D)
967
967
  return;
968
968
  let M = s(b);
969
969
  o && M < s(o) && (M = s(o)), n && M > s(n) && (M = s(n)), c(M), O?.(M);
970
970
  };
971
971
  return {
972
- months: l,
973
- weeks: u,
972
+ months: f,
973
+ weeks: h,
974
974
  days: p,
975
975
  navStart: o,
976
976
  navEnd: n,
@@ -998,12 +998,12 @@ function Uo(e, t, o, n) {
998
998
  return s || (s = e.find((i) => qe(t(i)))), s;
999
999
  }
1000
1000
  function Go(e, t, o, n, s, r, i) {
1001
- const { ISOWeek: a, broadcastCalendar: c } = r, { addDays: f, addMonths: h, addWeeks: l, addYears: u, endOfBroadcastWeek: p, endOfISOWeek: w, endOfWeek: g, max: D, min: O, startOfBroadcastWeek: W, startOfISOWeek: k, startOfWeek: S } = i;
1001
+ const { ISOWeek: a, broadcastCalendar: c } = r, { addDays: l, addMonths: u, addWeeks: f, addYears: h, endOfBroadcastWeek: p, endOfISOWeek: w, endOfWeek: g, max: D, min: O, startOfBroadcastWeek: W, startOfISOWeek: k, startOfWeek: S } = i;
1002
1002
  let b = {
1003
- day: f,
1004
- week: l,
1005
- month: h,
1006
- year: u,
1003
+ day: l,
1004
+ week: f,
1005
+ month: u,
1006
+ year: h,
1007
1007
  startOfWeek: (M) => c ? W(M, i) : a ? k(M) : S(M),
1008
1008
  endOfWeek: (M) => c ? p(M) : a ? w(M) : g(M)
1009
1009
  }[e](o, t === "after" ? 1 : -1);
@@ -1012,70 +1012,70 @@ function Go(e, t, o, n, s, r, i) {
1012
1012
  function dt(e, t, o, n, s, r, i, a = 0) {
1013
1013
  if (a > 365)
1014
1014
  return;
1015
- const c = Go(e, t, o.date, n, s, r, i), f = !!(r.disabled && X(c, r.disabled, i)), h = !!(r.hidden && X(c, r.hidden, i)), l = c, u = new Xe(c, l, i);
1016
- return !f && !h ? u : dt(e, t, u, n, s, r, i, a + 1);
1015
+ const c = Go(e, t, o.date, n, s, r, i), l = !!(r.disabled && X(c, r.disabled, i)), u = !!(r.hidden && X(c, r.hidden, i)), f = c, h = new Xe(c, f, i);
1016
+ return !l && !u ? h : dt(e, t, h, n, s, r, i, a + 1);
1017
1017
  }
1018
1018
  function Ko(e, t, o, n, s) {
1019
- const { autoFocus: r } = e, [i, a] = pe(), c = Uo(t.days, o, n || (() => !1), i), [f, h] = pe(r ? c : void 0);
1019
+ const { autoFocus: r } = e, [i, a] = pe(), c = Uo(t.days, o, n || (() => !1), i), [l, u] = pe(r ? c : void 0);
1020
1020
  return {
1021
1021
  isFocusTarget: (g) => !!c?.isEqualTo(g),
1022
- setFocused: h,
1023
- focused: f,
1022
+ setFocused: u,
1023
+ focused: l,
1024
1024
  blur: () => {
1025
- a(f), h(void 0);
1025
+ a(l), u(void 0);
1026
1026
  },
1027
1027
  moveFocus: (g, D) => {
1028
- if (!f)
1028
+ if (!l)
1029
1029
  return;
1030
- const O = dt(g, D, f, t.navStart, t.navEnd, e, s);
1031
- O && (t.goToDay(O), h(O));
1030
+ const O = dt(g, D, l, t.navStart, t.navEnd, e, s);
1031
+ O && (t.goToDay(O), u(O));
1032
1032
  }
1033
1033
  };
1034
1034
  }
1035
1035
  function Lo(e, t) {
1036
- const { selected: o, required: n, onSelect: s } = e, [r, i] = ke(o, s ? o : void 0), a = s ? o : r, { isSameDay: c } = t, f = (p) => a?.some((w) => c(w, p)) ?? !1, { min: h, max: l } = e;
1036
+ const { selected: o, required: n, onSelect: s } = e, [r, i] = ke(o, s ? o : void 0), a = s ? o : r, { isSameDay: c } = t, l = (p) => a?.some((w) => c(w, p)) ?? !1, { min: u, max: f } = e;
1037
1037
  return {
1038
1038
  selected: a,
1039
1039
  select: (p, w, g) => {
1040
1040
  let D = [...a ?? []];
1041
- if (f(p)) {
1042
- if (a?.length === h || n && a?.length === 1)
1041
+ if (l(p)) {
1042
+ if (a?.length === u || n && a?.length === 1)
1043
1043
  return;
1044
1044
  D = a?.filter((O) => !c(O, p));
1045
1045
  } else
1046
- a?.length === l ? D = [p] : D = [...D, p];
1046
+ a?.length === f ? D = [p] : D = [...D, p];
1047
1047
  return s || i(D), s?.(D, p, w, g), D;
1048
1048
  },
1049
- isSelected: f
1049
+ isSelected: l
1050
1050
  };
1051
1051
  }
1052
1052
  function Vo(e, t, o = 0, n = 0, s = !1, r = V) {
1053
- const { from: i, to: a } = t || {}, { isSameDay: c, isAfter: f, isBefore: h } = r;
1054
- let l;
1053
+ const { from: i, to: a } = t || {}, { isSameDay: c, isAfter: l, isBefore: u } = r;
1054
+ let f;
1055
1055
  if (!i && !a)
1056
- l = { from: e, to: o > 0 ? void 0 : e };
1056
+ f = { from: e, to: o > 0 ? void 0 : e };
1057
1057
  else if (i && !a)
1058
- c(i, e) ? s ? l = { from: i, to: void 0 } : l = void 0 : h(e, i) ? l = { from: e, to: i } : l = { from: i, to: e };
1058
+ c(i, e) ? s ? f = { from: i, to: void 0 } : f = void 0 : u(e, i) ? f = { from: e, to: i } : f = { from: i, to: e };
1059
1059
  else if (i && a)
1060
1060
  if (c(i, e) && c(a, e))
1061
- s ? l = { from: i, to: a } : l = void 0;
1061
+ s ? f = { from: i, to: a } : f = void 0;
1062
1062
  else if (c(i, e))
1063
- l = { from: i, to: o > 0 ? void 0 : e };
1063
+ f = { from: i, to: o > 0 ? void 0 : e };
1064
1064
  else if (c(a, e))
1065
- l = { from: e, to: o > 0 ? void 0 : e };
1066
- else if (h(e, i))
1067
- l = { from: e, to: a };
1068
- else if (f(e, i))
1069
- l = { from: i, to: e };
1070
- else if (f(e, a))
1071
- l = { from: i, to: e };
1065
+ f = { from: e, to: o > 0 ? void 0 : e };
1066
+ else if (u(e, i))
1067
+ f = { from: e, to: a };
1068
+ else if (l(e, i))
1069
+ f = { from: i, to: e };
1070
+ else if (l(e, a))
1071
+ f = { from: i, to: e };
1072
1072
  else
1073
1073
  throw new Error("Invalid range");
1074
- if (l?.from && l?.to) {
1075
- const u = r.differenceInCalendarDays(l.to, l.from);
1076
- n > 0 && u > n ? l = { from: e, to: void 0 } : o > 1 && u < o && (l = { from: e, to: void 0 });
1074
+ if (f?.from && f?.to) {
1075
+ const h = r.differenceInCalendarDays(f.to, f.from);
1076
+ n > 0 && h > n ? f = { from: e, to: void 0 } : o > 1 && h < o && (f = { from: e, to: void 0 });
1077
1077
  }
1078
- return l;
1078
+ return f;
1079
1079
  }
1080
1080
  function Jo(e, t, o = V) {
1081
1081
  const n = Array.isArray(t) ? t : [t];
@@ -1102,8 +1102,8 @@ function Qo(e, t, o = V) {
1102
1102
  if (i.length) {
1103
1103
  let a = e.from;
1104
1104
  const c = o.differenceInCalendarDays(e.to, e.from);
1105
- for (let f = 0; f <= c; f++) {
1106
- if (i.some((h) => h(a)))
1105
+ for (let l = 0; l <= c; l++) {
1106
+ if (i.some((u) => u(a)))
1107
1107
  return !0;
1108
1108
  a = o.addDays(a, 1);
1109
1109
  }
@@ -1111,25 +1111,25 @@ function Qo(e, t, o = V) {
1111
1111
  return !1;
1112
1112
  }
1113
1113
  function Xo(e, t) {
1114
- const { disabled: o, excludeDisabled: n, selected: s, required: r, onSelect: i } = e, [a, c] = ke(s, i ? s : void 0), f = i ? s : a;
1114
+ const { disabled: o, excludeDisabled: n, selected: s, required: r, onSelect: i } = e, [a, c] = ke(s, i ? s : void 0), l = i ? s : a;
1115
1115
  return {
1116
- selected: f,
1117
- select: (u, p, w) => {
1118
- const { min: g, max: D } = e, O = u ? Vo(u, f, g, D, r, t) : void 0;
1119
- return n && o && O?.from && O.to && Qo({ from: O.from, to: O.to }, o, t) && (O.from = u, O.to = void 0), i || c(O), i?.(O, u, p, w), O;
1116
+ selected: l,
1117
+ select: (h, p, w) => {
1118
+ const { min: g, max: D } = e, O = h ? Vo(h, l, g, D, r, t) : void 0;
1119
+ return n && o && O?.from && O.to && Qo({ from: O.from, to: O.to }, o, t) && (O.from = h, O.to = void 0), i || c(O), i?.(O, h, p, w), O;
1120
1120
  },
1121
- isSelected: (u) => f && Q(f, u, !1, t)
1121
+ isSelected: (h) => l && Q(l, h, !1, t)
1122
1122
  };
1123
1123
  }
1124
1124
  function es(e, t) {
1125
1125
  const { selected: o, required: n, onSelect: s } = e, [r, i] = ke(o, s ? o : void 0), a = s ? o : r, { isSameDay: c } = t;
1126
1126
  return {
1127
1127
  selected: a,
1128
- select: (l, u, p) => {
1129
- let w = l;
1130
- return !n && a && a && c(l, a) && (w = void 0), s || i(w), s?.(w, l, u, p), w;
1128
+ select: (f, h, p) => {
1129
+ let w = f;
1130
+ return !n && a && a && c(f, a) && (w = void 0), s || i(w), s?.(w, f, h, p), w;
1131
1131
  },
1132
- isSelected: (l) => a ? c(a, l) : !1
1132
+ isSelected: (f) => a ? c(a, f) : !1
1133
1133
  };
1134
1134
  }
1135
1135
  function ts(e, t) {
@@ -1185,7 +1185,7 @@ function ns(e) {
1185
1185
  t.formatters,
1186
1186
  t.labels,
1187
1187
  t.classNames
1188
- ]), { captionLayout: c, mode: f, navLayout: h, numberOfMonths: l = 1, onDayBlur: u, onDayClick: p, onDayFocus: w, onDayKeyDown: g, onDayMouseEnter: D, onDayMouseLeave: O, onNextClick: W, onPrevClick: k, showWeekNumber: S, styles: y } = t, { formatCaption: b, formatDay: M, formatMonthDropdown: _, formatWeekNumber: Y, formatWeekNumberHeader: $, formatWeekdayName: P, formatYearDropdown: Z } = n, oe = Ro(t, r), { days: se, months: re, navStart: de, navEnd: Me, previousMonth: j, nextMonth: z, goToMonth: J } = oe, De = En(se, t, de, Me, r), { isSelected: be, select: we, selected: ue } = ts(t, r) ?? {}, { blur: Be, focused: xe, isFocusTarget: ut, moveFocus: Fe, setFocused: he } = Ko(t, oe, De, be ?? (() => !1), r), { labelDayButton: ht, labelGridcell: mt, labelGrid: yt, labelMonthDropdown: pt, labelNav: Ie, labelPrevious: kt, labelNext: Mt, labelWeekday: Dt, labelWeekNumber: bt, labelWeekNumberHeader: wt, labelYearDropdown: vt } = s, Ot = Ce(() => Do(r, t.ISOWeek), [r, t.ISOWeek]), $e = f !== void 0 || p !== void 0, ve = H(() => {
1188
+ ]), { captionLayout: c, mode: l, navLayout: u, numberOfMonths: f = 1, onDayBlur: h, onDayClick: p, onDayFocus: w, onDayKeyDown: g, onDayMouseEnter: D, onDayMouseLeave: O, onNextClick: W, onPrevClick: k, showWeekNumber: S, styles: y } = t, { formatCaption: b, formatDay: M, formatMonthDropdown: _, formatWeekNumber: Y, formatWeekNumberHeader: $, formatWeekdayName: P, formatYearDropdown: Z } = n, oe = Ro(t, r), { days: se, months: re, navStart: de, navEnd: Me, previousMonth: j, nextMonth: z, goToMonth: J } = oe, De = En(se, t, de, Me, r), { isSelected: be, select: we, selected: ue } = ts(t, r) ?? {}, { blur: Be, focused: xe, isFocusTarget: ut, moveFocus: Fe, setFocused: he } = Ko(t, oe, De, be ?? (() => !1), r), { labelDayButton: ht, labelGridcell: mt, labelGrid: yt, labelMonthDropdown: pt, labelNav: Ie, labelPrevious: kt, labelNext: Mt, labelWeekday: Dt, labelWeekNumber: bt, labelWeekNumberHeader: wt, labelYearDropdown: vt } = s, Ot = Ce(() => Do(r, t.ISOWeek), [r, t.ISOWeek]), $e = l !== void 0 || p !== void 0, ve = H(() => {
1189
1189
  j && (J(j), k?.(j));
1190
1190
  }, [j, J, k]), Oe = H(() => {
1191
1191
  z && (J(z), W?.(z));
@@ -1194,8 +1194,8 @@ function ns(e) {
1194
1194
  }, [we, p, he]), _t = H((v, E) => (C) => {
1195
1195
  he(v), w?.(v.date, E, C);
1196
1196
  }, [w, he]), Ct = H((v, E) => (C) => {
1197
- Be(), u?.(v.date, E, C);
1198
- }, [Be, u]), Wt = H((v, E) => (C) => {
1197
+ Be(), h?.(v.date, E, C);
1198
+ }, [Be, h]), Wt = H((v, E) => (C) => {
1199
1199
  const te = {
1200
1200
  ArrowLeft: [
1201
1201
  C.shiftKey ? "month" : "day",
@@ -1263,13 +1263,13 @@ function ns(e) {
1263
1263
  d.createElement(
1264
1264
  o.Months,
1265
1265
  { className: a[m.Months], style: y?.[m.Months] },
1266
- !t.hideNavigation && !h && d.createElement(o.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: a[m.Nav], style: y?.[m.Nav], "aria-label": Ie(), onPreviousClick: ve, onNextClick: Oe, previousMonth: j, nextMonth: z }),
1266
+ !t.hideNavigation && !u && d.createElement(o.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: a[m.Nav], style: y?.[m.Nav], "aria-label": Ie(), onPreviousClick: ve, onNextClick: Oe, previousMonth: j, nextMonth: z }),
1267
1267
  re.map((v, E) => {
1268
1268
  const C = ko(v.date, de, Me, n, r), te = bo(de, Me, n, r);
1269
1269
  return d.createElement(
1270
1270
  o.Month,
1271
1271
  { "data-animated-month": t.animate ? "true" : void 0, className: a[m.Month], style: y?.[m.Month], key: E, displayIndex: E, calendarMonth: v },
1272
- h === "around" && !t.hideNavigation && E === 0 && d.createElement(
1272
+ u === "around" && !t.hideNavigation && E === 0 && d.createElement(
1273
1273
  o.PreviousMonthButton,
1274
1274
  { type: "button", className: a[m.PreviousMonthButton], tabIndex: j ? void 0 : -1, "aria-disabled": j ? void 0 : !0, "aria-label": kt(j), onClick: ve, "data-animated-button": t.animate ? "true" : void 0 },
1275
1275
  d.createElement(o.Chevron, { disabled: j ? void 0 : !0, className: a[m.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
@@ -1292,15 +1292,15 @@ function ns(e) {
1292
1292
  wordWrap: "normal"
1293
1293
  } }, b(v.date, r.options, r))
1294
1294
  ) : d.createElement(o.CaptionLabel, { className: a[m.CaptionLabel], role: "status", "aria-live": "polite" }, b(v.date, r.options, r))),
1295
- h === "around" && !t.hideNavigation && E === l - 1 && d.createElement(
1295
+ u === "around" && !t.hideNavigation && E === f - 1 && d.createElement(
1296
1296
  o.NextMonthButton,
1297
1297
  { type: "button", className: a[m.NextMonthButton], tabIndex: z ? void 0 : -1, "aria-disabled": z ? void 0 : !0, "aria-label": Mt(z), onClick: Oe, "data-animated-button": t.animate ? "true" : void 0 },
1298
1298
  d.createElement(o.Chevron, { disabled: z ? void 0 : !0, className: a[m.Chevron], orientation: t.dir === "rtl" ? "left" : "right" })
1299
1299
  ),
1300
- E === l - 1 && h === "after" && !t.hideNavigation && d.createElement(o.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: a[m.Nav], style: y?.[m.Nav], "aria-label": Ie(), onPreviousClick: ve, onNextClick: Oe, previousMonth: j, nextMonth: z }),
1300
+ E === f - 1 && u === "after" && !t.hideNavigation && d.createElement(o.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: a[m.Nav], style: y?.[m.Nav], "aria-label": Ie(), onPreviousClick: ve, onNextClick: Oe, previousMonth: j, nextMonth: z }),
1301
1301
  d.createElement(
1302
1302
  o.MonthGrid,
1303
- { role: "grid", "aria-multiselectable": f === "multiple" || f === "range", "aria-label": yt(v.date, r.options, r) || void 0, className: a[m.MonthGrid], style: y?.[m.MonthGrid] },
1303
+ { role: "grid", "aria-multiselectable": l === "multiple" || l === "range", "aria-label": yt(v.date, r.options, r) || void 0, className: a[m.MonthGrid], style: y?.[m.MonthGrid] },
1304
1304
  !t.hideWeekdays && d.createElement(
1305
1305
  o.Weekdays,
1306
1306
  { "data-animated-weekdays": t.animate ? "true" : void 0, className: a[m.Weekdays], style: y?.[m.Weekdays] },
@@ -1331,15 +1331,15 @@ function ns(e) {
1331
1331
  )
1332
1332
  );
1333
1333
  }
1334
- const os = "_root_bdmmk_3", ss = "_months_bdmmk_88", rs = "_month_bdmmk_88", as = "_day_button_bdmmk_96", is = "_day_bdmmk_96", cs = "_selected_bdmmk_105", fs = "_month_caption_bdmmk_111", ls = "_dropdown_root_bdmmk_120", ds = "_weekday_bdmmk_124", us = "_week_number_bdmmk_125", hs = "_range_middle_bdmmk_135", ms = "_disabled_bdmmk_144", ys = "_outside_bdmmk_153", ps = "_button_next_bdmmk_161", ks = "_button_previous_bdmmk_162", x = {
1334
+ const os = "_root_bdmmk_3", ss = "_months_bdmmk_88", rs = "_month_bdmmk_88", as = "_day_button_bdmmk_96", is = "_day_bdmmk_96", cs = "_selected_bdmmk_105", ls = "_month_caption_bdmmk_111", fs = "_dropdown_root_bdmmk_120", ds = "_weekday_bdmmk_124", us = "_week_number_bdmmk_125", hs = "_range_middle_bdmmk_135", ms = "_disabled_bdmmk_144", ys = "_outside_bdmmk_153", ps = "_button_next_bdmmk_161", ks = "_button_previous_bdmmk_162", x = {
1335
1335
  root: os,
1336
1336
  months: ss,
1337
1337
  month: rs,
1338
1338
  day_button: as,
1339
1339
  day: is,
1340
1340
  selected: cs,
1341
- month_caption: fs,
1342
- dropdown_root: ls,
1341
+ month_caption: ls,
1342
+ dropdown_root: fs,
1343
1343
  weekday: ds,
1344
1344
  week_number: us,
1345
1345
  range_middle: hs,
@@ -1381,8 +1381,19 @@ const os = "_root_bdmmk_3", ss = "_months_bdmmk_88", rs = "_month_bdmmk_88", as
1381
1381
  classNames: s,
1382
1382
  navLayout: "around",
1383
1383
  components: {
1384
- PreviousMonthButton: (f) => /* @__PURE__ */ ae(Ae, { ref: t, variant: "text", size: "sm", iconOnly: !0, ...f, children: /* @__PURE__ */ ae(jt, { size: "sm" }) }),
1385
- NextMonthButton: (f) => /* @__PURE__ */ ae(Ae, { variant: "text", size: "sm", iconOnly: !0, ...f, children: /* @__PURE__ */ ae(zt, { size: "sm" }) })
1384
+ PreviousMonthButton: ({ ["aria-label"]: l, ...u }) => /* @__PURE__ */ ae(
1385
+ Ae,
1386
+ {
1387
+ ref: t,
1388
+ variant: "text",
1389
+ size: "sm",
1390
+ iconOnly: !0,
1391
+ "aria-label": l ?? "",
1392
+ ...u,
1393
+ children: /* @__PURE__ */ ae(jt, { size: "sm" })
1394
+ }
1395
+ ),
1396
+ NextMonthButton: ({ ["aria-label"]: l, ...u }) => /* @__PURE__ */ ae(Ae, { variant: "text", size: "sm", iconOnly: !0, "aria-label": l ?? "", ...u, children: /* @__PURE__ */ ae(zt, { size: "sm" }) })
1386
1397
  }
1387
1398
  }
1388
1399
  );
@@ -1391,4 +1402,4 @@ Ms.displayName = "Calendar";
1391
1402
  export {
1392
1403
  Ms as C
1393
1404
  };
1394
- //# sourceMappingURL=calendar-DWpnuylk.mjs.map
1405
+ //# sourceMappingURL=calendar-D_sZrR92.mjs.map