calendar-simple 2.0.0 → 2.1.0-beta.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.
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import u, { Component as as, createContext as ss, memo as is, useCallback as An, useContext as os, useEffect as le, useLayoutEffect as ls, useMemo as me, useReducer as cs, useRef as Re, useState as Fe } from "react";
1
+ import c, { Component as as, createContext as ss, memo as is, useCallback as An, useContext as os, useEffect as le, useLayoutEffect as ls, useMemo as me, useReducer as cs, useRef as Re, useState as Fe } from "react";
2
2
  import { createPortal as us } from "react-dom";
3
3
  var ds = Object.create, Lr = Object.defineProperty, fs = Object.getOwnPropertyDescriptor, ms = Object.getOwnPropertyNames, hs = Object.getPrototypeOf, ys = Object.prototype.hasOwnProperty, vs = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports), gs = (t, e, n, r) => {
4
4
  if (e && typeof e == "object" || typeof e == "function")
@@ -39,7 +39,7 @@ var ds = Object.create, Lr = Object.defineProperty, fs = Object.getOwnPropertyDe
39
39
  }) : window.classNames = r;
40
40
  })();
41
41
  }));
42
- const F = {
42
+ const W = {
43
43
  month: "month",
44
44
  week: "week",
45
45
  day: "day",
@@ -72,23 +72,23 @@ const z = {
72
72
  }, ps = [
73
73
  {
74
74
  label: "Day",
75
- value: F.day
75
+ value: W.day
76
76
  },
77
77
  {
78
78
  label: "Week",
79
- value: F.week
79
+ value: W.week
80
80
  },
81
81
  {
82
82
  label: "Month",
83
- value: F.month
83
+ value: W.month
84
84
  },
85
85
  {
86
86
  label: "Schedule",
87
- value: F.schedule
87
+ value: W.schedule
88
88
  }
89
89
  ], Bn = {
90
90
  events: [],
91
- view: F.month,
91
+ view: W.month,
92
92
  locale: "en",
93
93
  localeMessages: {
94
94
  today: "Today",
@@ -456,7 +456,7 @@ var Os = {
456
456
  second: 6
457
457
  };
458
458
  function bs(t, e) {
459
- const n = t.format(e).replace(/\u200E/g, ""), [, r, a, s, i, o, l, c] = /(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n);
459
+ const n = t.format(e).replace(/\u200E/g, ""), [, r, a, s, i, o, l, u] = /(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n);
460
460
  return [
461
461
  s,
462
462
  r,
@@ -464,7 +464,7 @@ function bs(t, e) {
464
464
  i,
465
465
  o,
466
466
  l,
467
- c
467
+ u
468
468
  ];
469
469
  }
470
470
  function Is(t, e) {
@@ -580,14 +580,14 @@ var ln = /* @__PURE__ */ new Map(), it = class wn extends Nt {
580
580
  const n = new Date(e);
581
581
  if (isNaN(n)) return NaN;
582
582
  const r = Ns(this.name);
583
- let [a, s, i, o, l, c, m] = r.formatToParts ? Is(r, n) : bs(r, n);
583
+ let [a, s, i, o, l, u, m] = r.formatToParts ? Is(r, n) : bs(r, n);
584
584
  o === "BC" && (a = -Math.abs(a) + 1);
585
585
  const v = en({
586
586
  year: a,
587
587
  month: s,
588
588
  day: i,
589
589
  hour: l === 24 ? 0 : l,
590
- minute: c,
590
+ minute: u,
591
591
  second: m,
592
592
  millisecond: 0
593
593
  });
@@ -777,8 +777,8 @@ var Ws = class {
777
777
  return vt.create(e.locale, e.numberingSystem, e.outputCalendar, e.weekSettings, e.defaultToEN);
778
778
  }
779
779
  static create(e, n, r, a, s = !1) {
780
- const i = e || Q.defaultLocale;
781
- return new vt(i || (s ? "en-US" : As()), n || Q.defaultNumberingSystem, r || Q.defaultOutputCalendar, bn(a) || Q.defaultWeekSettings, i);
780
+ const i = e || X.defaultLocale;
781
+ return new vt(i || (s ? "en-US" : As()), n || X.defaultNumberingSystem, r || X.defaultOutputCalendar, bn(a) || X.defaultWeekSettings, i);
782
782
  }
783
783
  static resetCache() {
784
784
  yt = null, _n.clear(), Dn.clear(), Sn.clear(), kn.clear(), Nn.clear();
@@ -1130,7 +1130,7 @@ function we({ numberingSystem: t }, e = "") {
1130
1130
  let a = r.get(e);
1131
1131
  return a === void 0 && (a = /* @__PURE__ */ new RegExp(`${$n[n]}${e}`), r.set(e, a)), a;
1132
1132
  }
1133
- var Kn = () => Date.now(), Qn = "system", Xn = null, er = null, tr = null, nr = 60, rr, ar = null, Q = class {
1133
+ var Kn = () => Date.now(), Qn = "system", Xn = null, er = null, tr = null, nr = 60, rr, ar = null, X = class {
1134
1134
  /**
1135
1135
  * Get the callback for returning the current timestamp.
1136
1136
  * @type {function}
@@ -1326,9 +1326,9 @@ function Ln(t, e) {
1326
1326
  }
1327
1327
  function Bt(t, e = 4, n = 1) {
1328
1328
  const { year: r, month: a, day: s } = t, i = ua(r, a, s), o = Ln(Hn(r, a, s), n);
1329
- let l = Math.floor((i - o + 14 - e) / 7), c;
1330
- return l < 1 ? (c = r - 1, l = Dt(c, e, n)) : l > Dt(r, e, n) ? (c = r + 1, l = 1) : c = r, {
1331
- weekYear: c,
1329
+ let l = Math.floor((i - o + 14 - e) / 7), u;
1330
+ return l < 1 ? (u = r - 1, l = Dt(u, e, n)) : l > Dt(r, e, n) ? (u = r + 1, l = 1) : u = r, {
1331
+ weekYear: u,
1332
1332
  weekNumber: l,
1333
1333
  weekday: o,
1334
1334
  ...nn(t)
@@ -1336,11 +1336,11 @@ function Bt(t, e = 4, n = 1) {
1336
1336
  }
1337
1337
  function sr(t, e = 4, n = 1) {
1338
1338
  const { weekYear: r, weekNumber: a, weekday: s } = t, i = Ln(Hn(r, 1, e), n), o = rt(r);
1339
- let l = a * 7 + s - i - 7 + e, c;
1340
- l < 1 ? (c = r - 1, l += rt(c)) : l > o ? (c = r + 1, l -= rt(r)) : c = r;
1341
- const { month: m, day: v } = da(c, l);
1339
+ let l = a * 7 + s - i - 7 + e, u;
1340
+ l < 1 ? (u = r - 1, l += rt(u)) : l > o ? (u = r + 1, l -= rt(r)) : u = r;
1341
+ const { month: m, day: v } = da(u, l);
1342
1342
  return {
1343
- year: c,
1343
+ year: u,
1344
1344
  month: m,
1345
1345
  day: v,
1346
1346
  ...nn(t)
@@ -1523,7 +1523,7 @@ function Dt(t, e = 4, n = 1) {
1523
1523
  return (rt(t) - r + a) / 7;
1524
1524
  }
1525
1525
  function In(t) {
1526
- return t > 99 ? t : t > Q.twoDigitCutoffYear ? 1900 + t : 2e3 + t;
1526
+ return t > 99 ? t : t > X.twoDigitCutoffYear ? 1900 + t : 2e3 + t;
1527
1527
  }
1528
1528
  function va(t, e, n, r = null) {
1529
1529
  const a = new Date(t), s = {
@@ -1766,7 +1766,7 @@ function ui(t, e, n = "always", r = !1) {
1766
1766
  return v ? "today" : `this ${a[t][0]}`;
1767
1767
  }
1768
1768
  }
1769
- const i = Object.is(e, -0) || e < 0, o = Math.abs(e), l = o === 1, c = a[t], m = r ? l ? c[1] : c[2] || c[1] : l ? a[t][0] : t;
1769
+ const i = Object.is(e, -0) || e < 0, o = Math.abs(e), l = o === 1, u = a[t], m = r ? l ? u[1] : u[2] || u[1] : l ? a[t][0] : t;
1770
1770
  return i ? `${o} ${m} ago` : `in ${o} ${m}`;
1771
1771
  }
1772
1772
  function ur(t, e) {
@@ -1859,7 +1859,7 @@ var di = {
1859
1859
  }, "dayperiod"), l = (d, f) => r ? li(e, d) : s(f ? { month: d } : {
1860
1860
  month: d,
1861
1861
  day: "numeric"
1862
- }, "month"), c = (d, f) => r ? oi(e, d) : s(f ? { weekday: d } : {
1862
+ }, "month"), u = (d, f) => r ? oi(e, d) : s(f ? { weekday: d } : {
1863
1863
  weekday: d,
1864
1864
  month: "long",
1865
1865
  day: "numeric"
@@ -1929,19 +1929,19 @@ var di = {
1929
1929
  case "c":
1930
1930
  return this.num(e.weekday);
1931
1931
  case "ccc":
1932
- return c("short", !0);
1932
+ return u("short", !0);
1933
1933
  case "cccc":
1934
- return c("long", !0);
1934
+ return u("long", !0);
1935
1935
  case "ccccc":
1936
- return c("narrow", !0);
1936
+ return u("narrow", !0);
1937
1937
  case "E":
1938
1938
  return this.num(e.weekday);
1939
1939
  case "EEE":
1940
- return c("short", !1);
1940
+ return u("short", !1);
1941
1941
  case "EEEE":
1942
- return c("long", !1);
1942
+ return u("long", !1);
1943
1943
  case "EEEEE":
1944
- return c("narrow", !1);
1944
+ return u("narrow", !1);
1945
1945
  case "L":
1946
1946
  return a ? s({
1947
1947
  month: "numeric",
@@ -2017,8 +2017,8 @@ var di = {
2017
2017
  return ur(Et.parseFormat(n), w);
2018
2018
  }
2019
2019
  formatDurationFromString(e, n) {
2020
- const r = this.opts.signMode === "negativeLargestOnly" ? -1 : 1, a = (c) => {
2021
- switch (c[0]) {
2020
+ const r = this.opts.signMode === "negativeLargestOnly" ? -1 : 1, a = (u) => {
2021
+ switch (u[0]) {
2022
2022
  case "S":
2023
2023
  return "milliseconds";
2024
2024
  case "s":
@@ -2038,14 +2038,14 @@ var di = {
2038
2038
  default:
2039
2039
  return null;
2040
2040
  }
2041
- }, s = (c, m) => (v) => {
2041
+ }, s = (u, m) => (v) => {
2042
2042
  const w = a(v);
2043
2043
  if (w) {
2044
2044
  const d = m.isNegativeDuration && w !== m.largestUnit ? r : 1;
2045
2045
  let f;
2046
- return this.opts.signMode === "negativeLargestOnly" && w !== m.largestUnit ? f = "never" : this.opts.signMode === "all" ? f = "always" : f = "auto", this.num(c.get(w) * d, v.length, f);
2046
+ return this.opts.signMode === "negativeLargestOnly" && w !== m.largestUnit ? f = "never" : this.opts.signMode === "all" ? f = "always" : f = "auto", this.num(u.get(w) * d, v.length, f);
2047
2047
  } else return v;
2048
- }, i = Et.parseFormat(n), o = i.reduce((c, { literal: m, val: v }) => m ? c : c.concat(v), []), l = e.shiftTo(...o.map(a).filter((c) => c));
2048
+ }, i = Et.parseFormat(n), o = i.reduce((u, { literal: m, val: v }) => m ? u : u.concat(v), []), l = e.shiftTo(...o.map(a).filter((u) => u));
2049
2049
  return ur(i, s(l, {
2050
2050
  isNegativeDuration: l < 0,
2051
2051
  largestUnit: Object.keys(l.values)[0]
@@ -2138,7 +2138,7 @@ function It(t, e) {
2138
2138
  }
2139
2139
  var _i = RegExp(`^T?${Fn.source}$`), Ti = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
2140
2140
  function Di(t) {
2141
- const [e, n, r, a, s, i, o, l, c] = t, m = e[0] === "-", v = l && l[0] === "-", w = (d, f = !1) => d !== void 0 && (f || d && m) ? -d : d;
2141
+ const [e, n, r, a, s, i, o, l, u] = t, m = e[0] === "-", v = l && l[0] === "-", w = (d, f = !1) => d !== void 0 && (f || d && m) ? -d : d;
2142
2142
  return [{
2143
2143
  years: w(Ye(n)),
2144
2144
  months: w(Ye(r)),
@@ -2147,7 +2147,7 @@ function Di(t) {
2147
2147
  hours: w(Ye(i)),
2148
2148
  minutes: w(Ye(o)),
2149
2149
  seconds: w(Ye(l), l === "-0"),
2150
- milliseconds: w(Vn(c), v)
2150
+ milliseconds: w(Vn(u), v)
2151
2151
  }];
2152
2152
  }
2153
2153
  var Si = {
@@ -2173,9 +2173,9 @@ function Un(t, e, n, r, a, s, i) {
2173
2173
  }
2174
2174
  var ki = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;
2175
2175
  function Ni(t) {
2176
- const [, e, n, r, a, s, i, o, l, c, m, v] = t, w = Un(e, a, r, n, s, i, o);
2176
+ const [, e, n, r, a, s, i, o, l, u, m, v] = t, w = Un(e, a, r, n, s, i, o);
2177
2177
  let d;
2178
- return l ? d = Si[l] : c ? d = 0 : d = tn(m, v), [w, new Ie(d)];
2178
+ return l ? d = Si[l] : u ? d = 0 : d = tn(m, v), [w, new Ie(d)];
2179
2179
  }
2180
2180
  function Oi(t) {
2181
2181
  return t.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
@@ -2457,7 +2457,7 @@ var oe = class se {
2457
2457
  static invalid(e, n = null) {
2458
2458
  if (!e) throw new ie("need to specify a reason the Duration is invalid");
2459
2459
  const r = e instanceof Ne ? e : new Ne(e, n);
2460
- if (Q.throwOnInvalid) throw new Ds(r);
2460
+ if (X.throwOnInvalid) throw new Ds(r);
2461
2461
  return new se({ invalid: r });
2462
2462
  }
2463
2463
  /**
@@ -2793,8 +2793,8 @@ var oe = class se {
2793
2793
  for (const i of Ge) if (e.indexOf(i) >= 0) {
2794
2794
  s = i;
2795
2795
  let o = 0;
2796
- for (const c in r)
2797
- o += this.matrix[c][i] * r[c], r[c] = 0;
2796
+ for (const u in r)
2797
+ o += this.matrix[u][i] * r[u], r[u] = 0;
2798
2798
  Le(a[i]) && (o += a[i]);
2799
2799
  const l = Math.trunc(o);
2800
2800
  n[i] = l, r[i] = (o * 1e3 - l * 1e3) / 1e3;
@@ -2950,7 +2950,7 @@ var Ut = class re {
2950
2950
  static invalid(e, n = null) {
2951
2951
  if (!e) throw new ie("need to specify a reason the Interval is invalid");
2952
2952
  const r = e instanceof Ne ? e : new Ne(e, n);
2953
- if (Q.throwOnInvalid) throw new Ts(r);
2953
+ if (X.throwOnInvalid) throw new Ts(r);
2954
2954
  return new re({ invalid: r });
2955
2955
  }
2956
2956
  /**
@@ -3011,11 +3011,11 @@ var Ut = class re {
3011
3011
  }
3012
3012
  if (i && l) return re.fromDateTimes(s, o);
3013
3013
  if (i) {
3014
- const c = oe.fromISO(a, n);
3015
- if (c.isValid) return re.after(s, c);
3014
+ const u = oe.fromISO(a, n);
3015
+ if (u.isValid) return re.after(s, u);
3016
3016
  } else if (l) {
3017
- const c = oe.fromISO(r, n);
3018
- if (c.isValid) return re.before(o, c);
3017
+ const u = oe.fromISO(r, n);
3018
+ if (u.isValid) return re.before(o, u);
3019
3019
  }
3020
3020
  }
3021
3021
  return re.invalid("unparsable", `the input "${e}" can't be parsed as ISO 8601`);
@@ -3393,7 +3393,7 @@ var Ut = class re {
3393
3393
  * @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone.
3394
3394
  * @return {boolean}
3395
3395
  */
3396
- static hasDST(t = Q.defaultZone) {
3396
+ static hasDST(t = X.defaultZone) {
3397
3397
  const e = P.now().setZone(t).set({ month: 12 });
3398
3398
  return !t.isUniversal && e.offset !== e.set({ month: 6 }).offset;
3399
3399
  }
@@ -3420,7 +3420,7 @@ var Ut = class re {
3420
3420
  * @return {Zone}
3421
3421
  */
3422
3422
  static normalizeZone(t) {
3423
- return He(t, Q.defaultZone);
3423
+ return He(t, X.defaultZone);
3424
3424
  }
3425
3425
  /**
3426
3426
  * Get the weekday on which the week starts according to the given locale.
@@ -3567,17 +3567,17 @@ function yr(t, e) {
3567
3567
  }
3568
3568
  function Xi(t, e, n) {
3569
3569
  const r = [
3570
- ["years", (l, c) => c.year - l.year],
3571
- ["quarters", (l, c) => c.quarter - l.quarter + (c.year - l.year) * 4],
3572
- ["months", (l, c) => c.month - l.month + (c.year - l.year) * 12],
3573
- ["weeks", (l, c) => {
3574
- const m = yr(l, c);
3570
+ ["years", (l, u) => u.year - l.year],
3571
+ ["quarters", (l, u) => u.quarter - l.quarter + (u.year - l.year) * 4],
3572
+ ["months", (l, u) => u.month - l.month + (u.year - l.year) * 12],
3573
+ ["weeks", (l, u) => {
3574
+ const m = yr(l, u);
3575
3575
  return (m - m % 7) / 7;
3576
3576
  }],
3577
3577
  ["days", yr]
3578
3578
  ], a = {}, s = t;
3579
3579
  let i, o;
3580
- for (const [l, c] of r) n.indexOf(l) >= 0 && (i = l, a[l] = c(t, e), o = s.plus(a), o > e ? (a[l]--, t = s.plus(a), t > e && (o = t, a[l]--, t = s.plus(a))) : t = o);
3580
+ for (const [l, u] of r) n.indexOf(l) >= 0 && (i = l, a[l] = u(t, e), o = s.plus(a), o > e ? (a[l]--, t = s.plus(a), t > e && (o = t, a[l]--, t = s.plus(a))) : t = o);
3581
3581
  return [
3582
3582
  t,
3583
3583
  a,
@@ -3587,15 +3587,15 @@ function Xi(t, e, n) {
3587
3587
  }
3588
3588
  function eo(t, e, n, r) {
3589
3589
  let [a, s, i, o] = Xi(t, e, n);
3590
- const l = e - a, c = n.filter((v) => [
3590
+ const l = e - a, u = n.filter((v) => [
3591
3591
  "hours",
3592
3592
  "minutes",
3593
3593
  "seconds",
3594
3594
  "milliseconds"
3595
3595
  ].indexOf(v) >= 0);
3596
- c.length === 0 && (i < e && (i = a.plus({ [o]: 1 })), i !== a && (s[o] = (s[o] || 0) + l / (i - a)));
3596
+ u.length === 0 && (i < e && (i = a.plus({ [o]: 1 })), i !== a && (s[o] = (s[o] || 0) + l / (i - a)));
3597
3597
  const m = oe.fromObject(s, r);
3598
- return c.length > 0 ? oe.fromMillis(l, r).shiftTo(...c).plus(m) : m;
3598
+ return u.length > 0 ? oe.fromMillis(l, r).shiftTo(...u).plus(m) : m;
3599
3599
  }
3600
3600
  var to = "missing Intl.DateTimeFormat.formatToParts support";
3601
3601
  function Y(t, e = (n) => n) {
@@ -3634,7 +3634,7 @@ function ro(t) {
3634
3634
  return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
3635
3635
  }
3636
3636
  function ao(t, e) {
3637
- const n = we(e), r = we(e, "{2}"), a = we(e, "{3}"), s = we(e, "{4}"), i = we(e, "{6}"), o = we(e, "{1,2}"), l = we(e, "{1,3}"), c = we(e, "{1,6}"), m = we(e, "{1,9}"), v = we(e, "{2,4}"), w = we(e, "{4,6}"), d = (p) => ({
3637
+ const n = we(e), r = we(e, "{2}"), a = we(e, "{3}"), s = we(e, "{4}"), i = we(e, "{6}"), o = we(e, "{1,2}"), l = we(e, "{1,3}"), u = we(e, "{1,6}"), m = we(e, "{1,9}"), v = we(e, "{2,4}"), w = we(e, "{4,6}"), d = (p) => ({
3638
3638
  regex: RegExp(ro(p.val)),
3639
3639
  deser: ([k]) => k,
3640
3640
  literal: !0
@@ -3646,7 +3646,7 @@ function ao(t, e) {
3646
3646
  case "GG":
3647
3647
  return _e(e.eras("long"), 0);
3648
3648
  case "y":
3649
- return Y(c);
3649
+ return Y(u);
3650
3650
  case "yy":
3651
3651
  return Y(v, In);
3652
3652
  case "yyyy":
@@ -4007,12 +4007,12 @@ function pr(t, e) {
4007
4007
  function Ke(t, e, n, r, a, s) {
4008
4008
  const { setZone: i, zone: o } = n;
4009
4009
  if (t && Object.keys(t).length !== 0 || e) {
4010
- const l = e || o, c = P.fromObject(t, {
4010
+ const l = e || o, u = P.fromObject(t, {
4011
4011
  ...n,
4012
4012
  zone: l,
4013
4013
  specificOffset: s
4014
4014
  });
4015
- return i ? c : c.setZone(o);
4015
+ return i ? u : u.setZone(o);
4016
4016
  } else return P.invalid(new Ne("unparsable", `the input "${a}" can't be parsed as ${r}`));
4017
4017
  }
4018
4018
  function Lt(t, e, n = !0) {
@@ -4142,18 +4142,18 @@ function _r(t) {
4142
4142
  }
4143
4143
  }
4144
4144
  function Eo(t) {
4145
- if (wt === void 0 && (wt = Q.now()), t.type !== "iana") return t.offset(wt);
4145
+ if (wt === void 0 && (wt = X.now()), t.type !== "iana") return t.offset(wt);
4146
4146
  const e = t.name;
4147
4147
  let n = Mn.get(e);
4148
4148
  return n === void 0 && (n = t.offset(wt), Mn.set(e, n)), n;
4149
4149
  }
4150
4150
  function Tr(t, e) {
4151
- const n = He(e.zone, Q.defaultZone);
4151
+ const n = He(e.zone, X.defaultZone);
4152
4152
  if (!n.isValid) return P.invalid(pt(n));
4153
4153
  const r = G.fromObject(e);
4154
4154
  let a, s;
4155
4155
  if (M(t.year))
4156
- a = Q.now();
4156
+ a = X.now();
4157
4157
  else {
4158
4158
  for (const l of Zt) M(t[l]) && (t[l] = Wa[l]);
4159
4159
  const i = fa(t) || ma(t);
@@ -4186,9 +4186,9 @@ var wt, Mn = /* @__PURE__ */ new Map(), P = class K {
4186
4186
  * @access private
4187
4187
  */
4188
4188
  constructor(e) {
4189
- const n = e.zone || Q.defaultZone;
4189
+ const n = e.zone || X.defaultZone;
4190
4190
  let r = e.invalid || (Number.isNaN(e.ts) ? new Ne("invalid input") : null) || (n.isValid ? null : pt(n));
4191
- this.ts = M(e.ts) ? Q.now() : e.ts;
4191
+ this.ts = M(e.ts) ? X.now() : e.ts;
4192
4192
  let a = null, s = null;
4193
4193
  if (!r) if (e.old && e.old.ts === this.ts && e.old.zone.equals(n)) [a, s] = [e.old.c, e.old.o];
4194
4194
  else {
@@ -4229,7 +4229,7 @@ var wt, Mn = /* @__PURE__ */ new Map(), P = class K {
4229
4229
  * @return {DateTime}
4230
4230
  */
4231
4231
  static local() {
4232
- const [e, n] = Sr(arguments), [r, a, s, i, o, l, c] = n;
4232
+ const [e, n] = Sr(arguments), [r, a, s, i, o, l, u] = n;
4233
4233
  return Tr({
4234
4234
  year: r,
4235
4235
  month: a,
@@ -4237,7 +4237,7 @@ var wt, Mn = /* @__PURE__ */ new Map(), P = class K {
4237
4237
  hour: i,
4238
4238
  minute: o,
4239
4239
  second: l,
4240
- millisecond: c
4240
+ millisecond: u
4241
4241
  }, e);
4242
4242
  }
4243
4243
  /**
@@ -4266,7 +4266,7 @@ var wt, Mn = /* @__PURE__ */ new Map(), P = class K {
4266
4266
  * @return {DateTime}
4267
4267
  */
4268
4268
  static utc() {
4269
- const [e, n] = Sr(arguments), [r, a, s, i, o, l, c] = n;
4269
+ const [e, n] = Sr(arguments), [r, a, s, i, o, l, u] = n;
4270
4270
  return e.zone = Ie.utcInstance, Tr({
4271
4271
  year: r,
4272
4272
  month: a,
@@ -4274,7 +4274,7 @@ var wt, Mn = /* @__PURE__ */ new Map(), P = class K {
4274
4274
  hour: i,
4275
4275
  minute: o,
4276
4276
  second: l,
4277
- millisecond: c
4277
+ millisecond: u
4278
4278
  }, e);
4279
4279
  }
4280
4280
  /**
@@ -4287,7 +4287,7 @@ var wt, Mn = /* @__PURE__ */ new Map(), P = class K {
4287
4287
  static fromJSDate(e, n = {}) {
4288
4288
  const r = js(e) ? e.valueOf() : NaN;
4289
4289
  if (Number.isNaN(r)) return K.invalid("invalid input");
4290
- const a = He(n.zone, Q.defaultZone);
4290
+ const a = He(n.zone, X.defaultZone);
4291
4291
  return a.isValid ? new K({
4292
4292
  ts: r,
4293
4293
  zone: a,
@@ -4308,7 +4308,7 @@ var wt, Mn = /* @__PURE__ */ new Map(), P = class K {
4308
4308
  static fromMillis(e, n = {}) {
4309
4309
  if (Le(e)) return e < -Er || e > Er ? K.invalid("Timestamp out of range") : new K({
4310
4310
  ts: e,
4311
- zone: He(n.zone, Q.defaultZone),
4311
+ zone: He(n.zone, X.defaultZone),
4312
4312
  loc: G.fromObject(n)
4313
4313
  });
4314
4314
  throw new ie(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`);
@@ -4327,7 +4327,7 @@ var wt, Mn = /* @__PURE__ */ new Map(), P = class K {
4327
4327
  static fromSeconds(e, n = {}) {
4328
4328
  if (Le(e)) return new K({
4329
4329
  ts: e * 1e3,
4330
- zone: He(n.zone, Q.defaultZone),
4330
+ zone: He(n.zone, X.defaultZone),
4331
4331
  loc: G.fromObject(n)
4332
4332
  });
4333
4333
  throw new ie("fromSeconds requires a numerical input");
@@ -4367,13 +4367,13 @@ var wt, Mn = /* @__PURE__ */ new Map(), P = class K {
4367
4367
  */
4368
4368
  static fromObject(e, n = {}) {
4369
4369
  e = e || {};
4370
- const r = He(n.zone, Q.defaultZone);
4370
+ const r = He(n.zone, X.defaultZone);
4371
4371
  if (!r.isValid) return K.invalid(pt(r));
4372
- const a = G.fromObject(n), s = jt(e, _r), { minDaysInFirstWeek: i, startOfWeek: o } = or(s, a), l = Q.now(), c = M(n.specificOffset) ? r.offset(l) : n.specificOffset, m = !M(s.ordinal), v = !M(s.year), w = !M(s.month) || !M(s.day), d = v || w, f = s.weekYear || s.weekNumber;
4372
+ const a = G.fromObject(n), s = jt(e, _r), { minDaysInFirstWeek: i, startOfWeek: o } = or(s, a), l = X.now(), u = M(n.specificOffset) ? r.offset(l) : n.specificOffset, m = !M(s.ordinal), v = !M(s.year), w = !M(s.month) || !M(s.day), d = v || w, f = s.weekYear || s.weekNumber;
4373
4373
  if ((d || m) && f) throw new et("Can't mix weekYear/weekNumber units with year/month/day or ordinals");
4374
4374
  if (w && m) throw new et("Can't mix ordinal dates with month/day");
4375
4375
  const _ = f || s.weekday && !d;
4376
- let p, k, b = Ht(l, c);
4376
+ let p, k, b = Ht(l, u);
4377
4377
  _ ? (p = vo, k = ho, b = Bt(b, i, o)) : m ? (p = go, k = yo, b = un(b)) : (p = Zt, k = Wa);
4378
4378
  let C = !1;
4379
4379
  for (const E of p) {
@@ -4382,7 +4382,7 @@ var wt, Mn = /* @__PURE__ */ new Map(), P = class K {
4382
4382
  }
4383
4383
  const N = (_ ? qs(s, i, o) : m ? Bs(s) : fa(s)) || ma(s);
4384
4384
  if (N) return K.invalid(N);
4385
- const [g, h] = Yt(_ ? sr(s, i, o) : m ? ir(s) : s, c, r), y = new K({
4385
+ const [g, h] = Yt(_ ? sr(s, i, o) : m ? ir(s) : s, u, r), y = new K({
4386
4386
  ts: g,
4387
4387
  zone: r,
4388
4388
  o: h,
@@ -4466,12 +4466,12 @@ var wt, Mn = /* @__PURE__ */ new Map(), P = class K {
4466
4466
  */
4467
4467
  static fromFormat(e, n, r = {}) {
4468
4468
  if (M(e) || M(n)) throw new ie("fromFormat requires an input string and a format");
4469
- const { locale: a = null, numberingSystem: s = null } = r, [i, o, l, c] = mo(G.fromOpts({
4469
+ const { locale: a = null, numberingSystem: s = null } = r, [i, o, l, u] = mo(G.fromOpts({
4470
4470
  locale: a,
4471
4471
  numberingSystem: s,
4472
4472
  defaultToEN: !0
4473
4473
  }), e, n);
4474
- return c ? K.invalid(c) : Ke(i, o, r, `format ${n}`, e, l);
4474
+ return u ? K.invalid(u) : Ke(i, o, r, `format ${n}`, e, l);
4475
4475
  }
4476
4476
  /**
4477
4477
  * @deprecated use fromFormat instead
@@ -4513,7 +4513,7 @@ var wt, Mn = /* @__PURE__ */ new Map(), P = class K {
4513
4513
  static invalid(e, n = null) {
4514
4514
  if (!e) throw new ie("need to specify a reason the DateTime is invalid");
4515
4515
  const r = e instanceof Ne ? e : new Ne(e, n);
4516
- if (Q.throwOnInvalid) throw new _s(r);
4516
+ if (X.throwOnInvalid) throw new _s(r);
4517
4517
  return new K({ invalid: r });
4518
4518
  }
4519
4519
  /**
@@ -4846,8 +4846,8 @@ var wt, Mn = /* @__PURE__ */ new Map(), P = class K {
4846
4846
  if (!this.isValid || this.isOffsetFixed) return [this];
4847
4847
  const e = 864e5, n = 6e4, r = en(this.c), a = this.zone.offset(r - e), s = this.zone.offset(r + e), i = this.zone.offset(r - a * n), o = this.zone.offset(r - s * n);
4848
4848
  if (i === o) return [this];
4849
- const l = r - i * n, c = r - o * n, m = Ht(l, i), v = Ht(c, o);
4850
- return m.hour === v.hour && m.minute === v.minute && m.second === v.second && m.millisecond === v.millisecond ? [Ze(this, { ts: l }), Ze(this, { ts: c })] : [this];
4849
+ const l = r - i * n, u = r - o * n, m = Ht(l, i), v = Ht(u, o);
4850
+ return m.hour === v.hour && m.minute === v.minute && m.second === v.second && m.millisecond === v.millisecond ? [Ze(this, { ts: l }), Ze(this, { ts: u })] : [this];
4851
4851
  }
4852
4852
  /**
4853
4853
  * Returns true if this DateTime is in a leap year, false otherwise
@@ -4927,7 +4927,7 @@ var wt, Mn = /* @__PURE__ */ new Map(), P = class K {
4927
4927
  * @return {DateTime}
4928
4928
  */
4929
4929
  toLocal() {
4930
- return this.setZone(Q.defaultZone);
4930
+ return this.setZone(X.defaultZone);
4931
4931
  }
4932
4932
  /**
4933
4933
  * "Set" the DateTime's zone to specified zone. Returns a newly-constructed DateTime.
@@ -4939,7 +4939,7 @@ var wt, Mn = /* @__PURE__ */ new Map(), P = class K {
4939
4939
  * @return {DateTime}
4940
4940
  */
4941
4941
  setZone(e, { keepLocalTime: n = !1, keepCalendarTime: r = !1 } = {}) {
4942
- if (e = He(e, Q.defaultZone), e.equals(this.zone)) return this;
4942
+ if (e = He(e, X.defaultZone), e.equals(this.zone)) return this;
4943
4943
  if (e.isValid) {
4944
4944
  let a = this.ts;
4945
4945
  if (n || r) {
@@ -4991,8 +4991,8 @@ var wt, Mn = /* @__PURE__ */ new Map(), P = class K {
4991
4991
  */
4992
4992
  set(e) {
4993
4993
  if (!this.isValid) return this;
4994
- const n = jt(e, _r), { minDaysInFirstWeek: r, startOfWeek: a } = or(n, this.loc), s = !M(n.weekYear) || !M(n.weekNumber) || !M(n.weekday), i = !M(n.ordinal), o = !M(n.year), l = !M(n.month) || !M(n.day), c = o || l, m = n.weekYear || n.weekNumber;
4995
- if ((c || i) && m) throw new et("Can't mix weekYear/weekNumber units with year/month/day or ordinals");
4994
+ const n = jt(e, _r), { minDaysInFirstWeek: r, startOfWeek: a } = or(n, this.loc), s = !M(n.weekYear) || !M(n.weekNumber) || !M(n.weekday), i = !M(n.ordinal), o = !M(n.year), l = !M(n.month) || !M(n.day), u = o || l, m = n.weekYear || n.weekNumber;
4995
+ if ((u || i) && m) throw new et("Can't mix weekYear/weekNumber units with year/month/day or ordinals");
4996
4996
  if (l && i) throw new et("Can't mix ordinal dates with month/day");
4997
4997
  let v;
4998
4998
  s ? v = sr({
@@ -5553,8 +5553,8 @@ var wt, Mn = /* @__PURE__ */ new Map(), P = class K {
5553
5553
  defaultToEN: !0
5554
5554
  });
5555
5555
  if (!i.equals(n.locale)) throw new ie(`fromFormatParser called with a locale of ${i}, but the format parser was created for ${n.locale}`);
5556
- const { result: o, zone: l, specificOffset: c, invalidReason: m } = n.explainFromTokens(e);
5557
- return m ? K.invalid(m) : Ke(o, l, r, `format ${n.format}`, e, c);
5556
+ const { result: o, zone: l, specificOffset: u, invalidReason: m } = n.explainFromTokens(e);
5557
+ return m ? K.invalid(m) : Ke(o, l, r, `format ${n.format}`, e, u);
5558
5558
  }
5559
5559
  /**
5560
5560
  * {@link DateTime#toLocaleString} format like 10/14/1983
@@ -5792,7 +5792,7 @@ function Kt(t) {
5792
5792
  return typeof t == "number" ? `${t}px` : t;
5793
5793
  }
5794
5794
  function Ve(t) {
5795
- const e = (n) => !n.includes("T") && !n.includes(" ");
5795
+ const e = (n) => typeof n != "string" ? !1 : !n.includes("T") && !n.includes(" ");
5796
5796
  return !(!e(t.startDate) || t.endDate && !e(t.endDate));
5797
5797
  }
5798
5798
  function Oo(t) {
@@ -5818,7 +5818,7 @@ function Me(t) {
5818
5818
  function ze(t, e, n, r) {
5819
5819
  const a = n ? x.TIME_12H : x.TIME, s = t.endDate && !T(t.startDate).hasSame(T(t.endDate), "day"), i = Ve(t);
5820
5820
  let o = a;
5821
- e === F.month || i ? o = x.DATE : s && (o = `${x.DATE} ${a}`);
5821
+ e === W.month || i ? o = x.DATE : s && (o = `${x.DATE} ${a}`);
5822
5822
  let l = `${t.title} (${A(t.startDate, o, r)}`;
5823
5823
  return t.endDate && (l += ` - ${A(t.endDate, o, r)}`), l += ")", l;
5824
5824
  }
@@ -5976,7 +5976,7 @@ var he = {
5976
5976
  iconButtonIcon: Yo
5977
5977
  };
5978
5978
  function Zo() {
5979
- return /* @__PURE__ */ u.createElement("svg", {
5979
+ return /* @__PURE__ */ c.createElement("svg", {
5980
5980
  width: "40px",
5981
5981
  height: "40px",
5982
5982
  viewBox: "0 0 24.00 24.00",
@@ -5984,14 +5984,14 @@ function Zo() {
5984
5984
  xmlns: "http://www.w3.org/2000/svg",
5985
5985
  stroke: "currentColor",
5986
5986
  transform: "rotate(180)"
5987
- }, /* @__PURE__ */ u.createElement("g", {
5987
+ }, /* @__PURE__ */ c.createElement("g", {
5988
5988
  id: "SVGRepo_bgCarrier",
5989
5989
  strokeWidth: "0"
5990
- }), /* @__PURE__ */ u.createElement("g", {
5990
+ }), /* @__PURE__ */ c.createElement("g", {
5991
5991
  id: "SVGRepo_tracerCarrier",
5992
5992
  strokeLinecap: "round",
5993
5993
  strokeLinejoin: "round"
5994
- }), /* @__PURE__ */ u.createElement("g", { id: "SVGRepo_iconCarrier" }, /* @__PURE__ */ u.createElement("path", {
5994
+ }), /* @__PURE__ */ c.createElement("g", { id: "SVGRepo_iconCarrier" }, /* @__PURE__ */ c.createElement("path", {
5995
5995
  d: "M10 7L15 12L10 17",
5996
5996
  stroke: "currentColor",
5997
5997
  strokeWidth: "1.2",
@@ -6001,21 +6001,21 @@ function Zo() {
6001
6001
  }
6002
6002
  var Po = Zo;
6003
6003
  function Go() {
6004
- return /* @__PURE__ */ u.createElement("svg", {
6004
+ return /* @__PURE__ */ c.createElement("svg", {
6005
6005
  width: "40px",
6006
6006
  height: "40px",
6007
6007
  viewBox: "0 0 24.00 24.00",
6008
6008
  fill: "none",
6009
6009
  xmlns: "http://www.w3.org/2000/svg",
6010
6010
  stroke: "currentColor"
6011
- }, /* @__PURE__ */ u.createElement("g", {
6011
+ }, /* @__PURE__ */ c.createElement("g", {
6012
6012
  id: "SVGRepo_bgCarrier",
6013
6013
  strokeWidth: "0"
6014
- }), /* @__PURE__ */ u.createElement("g", {
6014
+ }), /* @__PURE__ */ c.createElement("g", {
6015
6015
  id: "SVGRepo_tracerCarrier",
6016
6016
  strokeLinecap: "round",
6017
6017
  strokeLinejoin: "round"
6018
- }), /* @__PURE__ */ u.createElement("g", { id: "SVGRepo_iconCarrier" }, /* @__PURE__ */ u.createElement("path", {
6018
+ }), /* @__PURE__ */ c.createElement("g", { id: "SVGRepo_iconCarrier" }, /* @__PURE__ */ c.createElement("path", {
6019
6019
  d: "M10 7L15 12L10 17",
6020
6020
  stroke: "currentColor",
6021
6021
  strokeWidth: "1.2",
@@ -6043,22 +6043,22 @@ function qo(t, e) {
6043
6043
  customDays: e.payload
6044
6044
  };
6045
6045
  case fe.NEXT: {
6046
- if (t.view === F.customDays) return {
6046
+ if (t.view === W.customDays) return {
6047
6047
  ...t,
6048
6048
  selectedDate: t.selectedDate.plus({ days: t.customDays || 3 })
6049
6049
  };
6050
- const n = t.view === F.schedule ? "day" : t.view;
6050
+ const n = t.view === W.schedule ? "day" : t.view;
6051
6051
  return {
6052
6052
  ...t,
6053
6053
  selectedDate: t.selectedDate.plus({ [n]: 1 })
6054
6054
  };
6055
6055
  }
6056
6056
  case fe.PREV: {
6057
- if (t.view === F.customDays) return {
6057
+ if (t.view === W.customDays) return {
6058
6058
  ...t,
6059
6059
  selectedDate: t.selectedDate.minus({ days: t.customDays || 3 })
6060
6060
  };
6061
- const n = t.view === F.schedule ? "day" : t.view;
6061
+ const n = t.view === W.schedule ? "day" : t.view;
6062
6062
  return {
6063
6063
  ...t,
6064
6064
  selectedDate: t.selectedDate.minus({ [n]: 1 })
@@ -6078,7 +6078,7 @@ function Bo({ children: t, initialDate: e, initialView: n, initialCustomDays: r,
6078
6078
  selectedDate: e,
6079
6079
  view: n,
6080
6080
  customDays: r
6081
- }), l = Yn(s?.colorScheme), c = me(() => ({
6081
+ }), l = Yn(s?.colorScheme), u = me(() => ({
6082
6082
  state: i,
6083
6083
  dispatch: o,
6084
6084
  testId: a,
@@ -6090,7 +6090,7 @@ function Bo({ children: t, initialDate: e, initialView: n, initialCustomDays: r,
6090
6090
  s,
6091
6091
  l
6092
6092
  ]);
6093
- return /* @__PURE__ */ u.createElement(za.Provider, { value: c }, t);
6093
+ return /* @__PURE__ */ c.createElement(za.Provider, { value: u }, t);
6094
6094
  }
6095
6095
  function de() {
6096
6096
  const t = os(za);
@@ -6108,12 +6108,12 @@ var zt = /* @__PURE__ */ (function(t) {
6108
6108
  return t.month = "month", t.year = "year", t;
6109
6109
  })(_t || {});
6110
6110
  function Jo(t) {
6111
- const { pastYearLength: e, futureYearLength: n, onNavigate: r, onViewChange: a, customDays: s, events: i, resetDateOnViewChange: o, locale: l, localeMessages: c, classNames: m, showWeekNumbers: v } = We(t), w = t.headerClassName || m?.header, { state: d, dispatch: f, testId: _ } = de(), { selectedDate: p, view: k } = d, b = (h) => {
6111
+ const { pastYearLength: e, futureYearLength: n, onNavigate: r, onViewChange: a, customDays: s, events: i, resetDateOnViewChange: o, locale: l, localeMessages: u, classNames: m, showWeekNumbers: v } = We(t), w = t.headerClassName || m?.header, { state: d, dispatch: f, testId: _ } = de(), { selectedDate: p, view: k } = d, b = (h) => {
6112
6112
  const y = h === zt.add;
6113
6113
  f({ type: y ? fe.NEXT : fe.PREV });
6114
- const E = k === F.schedule ? "day" : k;
6114
+ const E = k === W.schedule ? "day" : k;
6115
6115
  let S;
6116
- k === F.customDays ? S = y ? p.plus({ days: s || 3 }) : p.minus({ days: s || 3 }) : S = y ? p.plus({ [E]: 1 }) : p.minus({ [E]: 1 }), r?.(nt(S));
6116
+ k === W.customDays ? S = y ? p.plus({ days: s || 3 }) : p.minus({ days: s || 3 }) : S = y ? p.plus({ [E]: 1 }) : p.minus({ [E]: 1 }), r?.(nt(S));
6117
6117
  }, C = (h, y) => {
6118
6118
  const E = Number(h.target.value);
6119
6119
  let S = p;
@@ -6128,18 +6128,18 @@ function Jo(t) {
6128
6128
  payload: y
6129
6129
  }), o && (f({ type: fe.TODAY }), r?.(nt(T()))), a?.(y);
6130
6130
  }, g = () => {
6131
- const h = k === F.week && v ? ` · W${p.weekNumber}` : "";
6132
- if (k === F.day) return A(p, x.MONTH_DAY_YEAR, l);
6133
- if (k === F.week) {
6131
+ const h = k === W.week && v ? ` · W${p.weekNumber}` : "";
6132
+ if (k === W.day) return A(p, x.MONTH_DAY_YEAR, l);
6133
+ if (k === W.week) {
6134
6134
  const y = p.startOf("week"), E = p.endOf("week");
6135
6135
  let S;
6136
6136
  return y.month !== E.month ? y.year !== E.year ? S = `${A(y, x.SHORT_MONTH_YEAR, l)} - ${A(E, x.SHORT_MONTH_YEAR, l)}` : S = `${A(y, x.SHORT_MONTH, l)} - ${A(E, x.SHORT_MONTH_YEAR, l)}` : S = A(p, x.MONTH_YEAR, l), `${S}${h}`;
6137
6137
  }
6138
- if (k === F.customDays) {
6138
+ if (k === W.customDays) {
6139
6139
  const y = s || 3, E = p.plus({ days: y - 1 });
6140
6140
  return p.month !== E.month ? p.year !== E.year ? `${A(p, x.SHORT_MONTH_YEAR, l)} - ${A(E, x.SHORT_MONTH_YEAR, l)}` : `${A(p, x.SHORT_MONTH, l)} - ${A(E, x.SHORT_MONTH_YEAR, l)}` : y === 1 ? A(p, x.MONTH_DAY_YEAR, l) : `${A(p, x.DAY_DATE_SHORT_MONTH, l)} - ${A(E, x.DAY_DATE_SHORT_MONTH, l)}, ${A(p, "yyyy")}`;
6141
6141
  }
6142
- if (k === F.schedule && i && i.length > 0) {
6142
+ if (k === W.schedule && i && i.length > 0) {
6143
6143
  let y = T(i[0].startDate), E = y;
6144
6144
  return i.forEach((S) => {
6145
6145
  const O = T(S.startDate), V = S.endDate ? T(S.endDate) : O;
@@ -6148,42 +6148,42 @@ function Jo(t) {
6148
6148
  }
6149
6149
  return A(p, x.MONTH_YEAR, l);
6150
6150
  };
6151
- return /* @__PURE__ */ u.createElement("div", {
6151
+ return /* @__PURE__ */ c.createElement("div", {
6152
6152
  className: (0, Es.default)(he.header, w),
6153
6153
  "data-testid": `${_}-header`
6154
- }, /* @__PURE__ */ u.createElement("nav", {
6154
+ }, /* @__PURE__ */ c.createElement("nav", {
6155
6155
  className: he.navigation,
6156
6156
  "aria-label": "Calendar navigation"
6157
- }, /* @__PURE__ */ u.createElement("button", {
6157
+ }, /* @__PURE__ */ c.createElement("button", {
6158
6158
  className: he.todayButton,
6159
6159
  "data-testid": `${_}-header-today-btn`,
6160
- "aria-label": c?.today || "Today",
6160
+ "aria-label": u?.today || "Today",
6161
6161
  onClick: () => {
6162
6162
  f({ type: fe.TODAY }), r?.(nt(T()));
6163
6163
  }
6164
- }, c?.today || "Today"), /* @__PURE__ */ u.createElement("div", { className: he.arrows }, /* @__PURE__ */ u.createElement("button", {
6164
+ }, u?.today || "Today"), /* @__PURE__ */ c.createElement("div", { className: he.arrows }, /* @__PURE__ */ c.createElement("button", {
6165
6165
  className: he.iconButton,
6166
6166
  "data-testid": `${_}-header-prev-btn`,
6167
6167
  "aria-label": "Previous period",
6168
6168
  onClick: () => b(zt.sub)
6169
- }, /* @__PURE__ */ u.createElement("span", { className: he.iconButtonIcon }, /* @__PURE__ */ u.createElement(Po, null))), /* @__PURE__ */ u.createElement("button", {
6169
+ }, /* @__PURE__ */ c.createElement("span", { className: he.iconButtonIcon }, /* @__PURE__ */ c.createElement(Po, null))), /* @__PURE__ */ c.createElement("button", {
6170
6170
  className: he.iconButton,
6171
6171
  "data-testid": `${_}-header-next-btn`,
6172
6172
  "aria-label": "Next period",
6173
6173
  onClick: () => b(zt.add)
6174
- }, /* @__PURE__ */ u.createElement("span", { className: he.iconButtonIcon }, /* @__PURE__ */ u.createElement(zo, null)))), /* @__PURE__ */ u.createElement("h2", { className: he.dateTitle }, g())), /* @__PURE__ */ u.createElement("div", { className: he.controls }, /* @__PURE__ */ u.createElement("select", {
6174
+ }, /* @__PURE__ */ c.createElement("span", { className: he.iconButtonIcon }, /* @__PURE__ */ c.createElement(zo, null)))), /* @__PURE__ */ c.createElement("h2", { className: he.dateTitle }, g())), /* @__PURE__ */ c.createElement("div", { className: he.controls }, /* @__PURE__ */ c.createElement("select", {
6175
6175
  className: he.select,
6176
6176
  value: k,
6177
6177
  "data-testid": `${_}-header-view-select`,
6178
6178
  "aria-label": "Select calendar view",
6179
6179
  onChange: N
6180
- }, ps.map((h) => /* @__PURE__ */ u.createElement("option", {
6180
+ }, ps.map((h) => /* @__PURE__ */ c.createElement("option", {
6181
6181
  key: h.value,
6182
6182
  value: h.value
6183
- }, c?.[h.value] || h.label)), s && s > 0 && s < 11 && /* @__PURE__ */ u.createElement("option", {
6183
+ }, u?.[h.value] || h.label)), s && s > 0 && s < 11 && /* @__PURE__ */ c.createElement("option", {
6184
6184
  key: s,
6185
- value: F.customDays
6186
- }, s, " ", c?.days || "Days")), /* @__PURE__ */ u.createElement("select", {
6185
+ value: W.customDays
6186
+ }, s, " ", u?.days || "Days")), /* @__PURE__ */ c.createElement("select", {
6187
6187
  className: he.select,
6188
6188
  id: xt.MONTH,
6189
6189
  name: xt.MONTH,
@@ -6191,10 +6191,10 @@ function Jo(t) {
6191
6191
  "data-testid": `${_}-header-month-select`,
6192
6192
  "aria-label": "Select month",
6193
6193
  onChange: (h) => C(h, _t.month)
6194
- }, Io(l).map((h) => /* @__PURE__ */ u.createElement("option", {
6194
+ }, Io(l).map((h) => /* @__PURE__ */ c.createElement("option", {
6195
6195
  key: h.label,
6196
6196
  value: h.value
6197
- }, h.label))), /* @__PURE__ */ u.createElement("select", {
6197
+ }, h.label))), /* @__PURE__ */ c.createElement("select", {
6198
6198
  className: he.select,
6199
6199
  id: xt.YEAR,
6200
6200
  name: xt.YEAR,
@@ -6202,14 +6202,14 @@ function Jo(t) {
6202
6202
  "data-testid": `${_}-header-year-select`,
6203
6203
  "aria-label": "Select year",
6204
6204
  onChange: (h) => C(h, _t.year)
6205
- }, ko(e, n, Or(p)).map((h) => /* @__PURE__ */ u.createElement("option", {
6205
+ }, ko(e, n, Or(p)).map((h) => /* @__PURE__ */ c.createElement("option", {
6206
6206
  key: h,
6207
6207
  value: h
6208
6208
  }, h)))));
6209
6209
  }
6210
6210
  var qa = Jo;
6211
6211
  function Zn(t, e, n, r, a, s, i = {}) {
6212
- const { enableEnrichedEvents: o, enrichedEventsByDate: l, eventsAreSorted: c, isEventOrderingEnabled: m = !0 } = i;
6212
+ const { enableEnrichedEvents: o, enrichedEventsByDate: l, eventsAreSorted: u, isEventOrderingEnabled: m = !0 } = i;
6213
6213
  return me(() => {
6214
6214
  const v = Array.isArray(e) ? e : [e], w = (d) => {
6215
6215
  const _ = (() => {
@@ -6240,7 +6240,7 @@ function Zn(t, e, n, r, a, s, i = {}) {
6240
6240
  original: g
6241
6241
  };
6242
6242
  });
6243
- if (c || p.sort((g, h) => g.start === h.start ? h.duration - g.duration : g.start - h.start), !m) return p.map((g) => (g.columnIndex = 0, g.left = 0, g.width = 1, N(g)));
6243
+ if (u || p.sort((g, h) => g.start === h.start ? h.duration - g.duration : g.start - h.start), !m) return p.map((g) => (g.columnIndex = 0, g.left = 0, g.width = 1, N(g)));
6244
6244
  const k = [];
6245
6245
  let b = [], C = -1 / 0;
6246
6246
  for (const g of p)
@@ -6296,7 +6296,7 @@ function Zn(t, e, n, r, a, s, i = {}) {
6296
6296
  s,
6297
6297
  o,
6298
6298
  l,
6299
- c,
6299
+ u,
6300
6300
  m
6301
6301
  ]);
6302
6302
  }
@@ -6320,12 +6320,12 @@ var Cr = {
6320
6320
  }, xr = /* @__PURE__ */ ce(ue(), 1);
6321
6321
  function ll({ is12Hour: t, classNames: e, minHour: n, maxHour: r, locale: a }) {
6322
6322
  const { testId: s } = de(), i = Array.from({ length: r - n }, (o, l) => l + n);
6323
- return /* @__PURE__ */ u.createElement("div", {
6323
+ return /* @__PURE__ */ c.createElement("div", {
6324
6324
  className: (0, xr.default)(Cr.timeColumn, e?.timeColumn),
6325
6325
  "data-testid": `${s}-time-column`
6326
6326
  }, i.map((o) => {
6327
6327
  const l = t ? x.HOUR_12H : x.TIME;
6328
- return /* @__PURE__ */ u.createElement("div", {
6328
+ return /* @__PURE__ */ c.createElement("div", {
6329
6329
  key: o,
6330
6330
  className: (0, xr.default)(Cr.timeSlot, e?.timeSlot)
6331
6331
  }, A(T().set({
@@ -6344,8 +6344,8 @@ var ft = {
6344
6344
  eventTime: ml
6345
6345
  }, hl = /* @__PURE__ */ ce(ue(), 1);
6346
6346
  function yl({ item: t, onEventClick: e, is12Hour: n, classNames: r, renderEvent: a }) {
6347
- const { testId: s } = de(), i = ze(t.event, "day", n), o = t.height < z.SMALL_EVENT_HEIGHT && t.height >= z.TINY_EVENT_HEIGHT, l = t.height < z.TINY_EVENT_HEIGHT, c = t.event.style?.backgroundColor || z.DEFAULT_EVENT_COLOR, m = an(String(c));
6348
- return /* @__PURE__ */ u.createElement("div", {
6347
+ const { testId: s } = de(), i = ze(t.event, "day", n), o = t.height < z.SMALL_EVENT_HEIGHT && t.height >= z.TINY_EVENT_HEIGHT, l = t.height < z.TINY_EVENT_HEIGHT, u = t.event.style?.backgroundColor || z.DEFAULT_EVENT_COLOR, m = an(String(u));
6348
+ return /* @__PURE__ */ c.createElement("div", {
6349
6349
  role: "button",
6350
6350
  tabIndex: 0,
6351
6351
  className: (0, hl.default)(ft.eventItem, r?.event, {
@@ -6369,7 +6369,7 @@ function yl({ item: t, onEventClick: e, is12Hour: n, classNames: r, renderEvent:
6369
6369
  onClick: () => e?.(t.event),
6370
6370
  onKeyDown: Me(() => e?.(t.event)),
6371
6371
  title: i
6372
- }, a ? a(t.event) : /* @__PURE__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement("div", { className: ft.eventTitle }, t.event.title), /* @__PURE__ */ u.createElement("div", { className: ft.eventTime }, A(t.event.startDate, n ? x.TIME_12H : x.TIME))));
6372
+ }, a ? a(t.event) : /* @__PURE__ */ c.createElement(c.Fragment, null, /* @__PURE__ */ c.createElement("div", { className: ft.eventTitle }, t.event.title), /* @__PURE__ */ c.createElement("div", { className: ft.eventTime }, A(t.event.startDate, n ? x.TIME_12H : x.TIME))));
6373
6373
  }
6374
6374
  const vl = "_currentTimeLine_1e39r_1", gl = "_circle_1e39r_11", El = "_line_1e39r_20";
6375
6375
  var gn = {
@@ -6383,33 +6383,33 @@ var gn = {
6383
6383
  });
6384
6384
  return le(() => {
6385
6385
  const i = () => {
6386
- const l = T(), c = l.hour, m = l.minute;
6387
- s((c - e) * Z.MINUTES_IN_HOUR + m);
6386
+ const l = T(), u = l.hour, m = l.minute;
6387
+ s((u - e) * Z.MINUTES_IN_HOUR + m);
6388
6388
  };
6389
6389
  i();
6390
6390
  const o = setInterval(i, Z.MS_PER_MINUTE);
6391
6391
  return () => clearInterval(o);
6392
- }, [e]), a < 0 || a > (n - e) * Z.MINUTES_IN_HOUR ? null : /* @__PURE__ */ u.createElement("div", {
6392
+ }, [e]), a < 0 || a > (n - e) * Z.MINUTES_IN_HOUR ? null : /* @__PURE__ */ c.createElement("div", {
6393
6393
  className: (0, pl.default)(gn.currentTimeLine, t),
6394
6394
  style: { top: `${a}px` },
6395
6395
  "data-testid": `${r}-current-time-line`
6396
- }, /* @__PURE__ */ u.createElement("div", { className: gn.circle }), /* @__PURE__ */ u.createElement("div", { className: gn.line }));
6396
+ }, /* @__PURE__ */ c.createElement("div", { className: gn.circle }), /* @__PURE__ */ c.createElement("div", { className: gn.line }));
6397
6397
  }, _l = wl;
6398
6398
  const Tl = "_eventSlot_sn2kl_1", Dl = "_creatable_sn2kl_6";
6399
6399
  var Ar = {
6400
6400
  eventSlot: Tl,
6401
6401
  creatable: Dl
6402
6402
  }, Sl = /* @__PURE__ */ ce(ue(), 1);
6403
- function kl({ dayEvents: t, date: e, onEventClick: n, is12Hour: r, classNames: a, isToday: s, showCurrentTime: i, minHour: o, maxHour: l, renderEvent: c, renderHourCell: m, creatable: v, onSlotClick: w }) {
6403
+ function kl({ dayEvents: t, date: e, onEventClick: n, is12Hour: r, classNames: a, isToday: s, showCurrentTime: i, minHour: o, maxHour: l, renderEvent: u, renderHourCell: m, creatable: v, onSlotClick: w }) {
6404
6404
  const d = Array.from({ length: l - o }, (f, _) => _ + o);
6405
- return /* @__PURE__ */ u.createElement(u.Fragment, null, d.map((f) => {
6405
+ return /* @__PURE__ */ c.createElement(c.Fragment, null, d.map((f) => {
6406
6406
  const _ = v && !!w, p = e.set({
6407
6407
  hour: f,
6408
6408
  minute: 0,
6409
6409
  second: 0,
6410
6410
  millisecond: 0
6411
6411
  }), k = `Create event at ${p.toFormat("h:mm a, MMMM d")}`, b = _ ? () => w?.(p.toJSDate(), p.plus({ hours: 1 }).toJSDate()) : void 0;
6412
- return /* @__PURE__ */ u.createElement("div", {
6412
+ return /* @__PURE__ */ c.createElement("div", {
6413
6413
  key: f,
6414
6414
  role: _ ? "button" : void 0,
6415
6415
  tabIndex: _ ? 0 : void 0,
@@ -6418,14 +6418,14 @@ function kl({ dayEvents: t, date: e, onEventClick: n, is12Hour: r, classNames: a
6418
6418
  onClick: b,
6419
6419
  onKeyDown: _ ? Me(b) : void 0
6420
6420
  }, m?.(new Date((/* @__PURE__ */ new Date()).setHours(f, 0, 0, 0))));
6421
- }), t.map((f, _) => /* @__PURE__ */ u.createElement(yl, {
6421
+ }), t.map((f, _) => /* @__PURE__ */ c.createElement(yl, {
6422
6422
  key: f.event.id || _,
6423
6423
  item: f,
6424
6424
  onEventClick: n,
6425
6425
  is12Hour: r,
6426
6426
  classNames: a,
6427
- renderEvent: c
6428
- })), s && i && /* @__PURE__ */ u.createElement(_l, {
6427
+ renderEvent: u
6428
+ })), s && i && /* @__PURE__ */ c.createElement(_l, {
6429
6429
  minHour: o,
6430
6430
  maxHour: l
6431
6431
  }));
@@ -6490,19 +6490,19 @@ function Nl(t, e, n, r = 3) {
6490
6490
  };
6491
6491
  o[h].push(y), l.push(y);
6492
6492
  });
6493
- const c = o.length, m = c === r + 1 ? r + 1 : r, v = new Array(t.length).fill(0);
6493
+ const u = o.length, m = u === r + 1 ? r + 1 : r, v = new Array(t.length).fill(0);
6494
6494
  l.forEach((d) => {
6495
6495
  if (d.row >= m) for (let f = Math.max(0, d.startIndex); f <= Math.min(t.length - 1, d.endIndex); f++) v[f]++;
6496
6496
  });
6497
6497
  const w = v.some((d) => d > 0);
6498
6498
  return {
6499
6499
  layoutEvents: l,
6500
- rowCount: c,
6500
+ rowCount: u,
6501
6501
  effectiveMaxRows: m,
6502
6502
  hiddenCounts: v,
6503
6503
  hasHiddenEvents: w,
6504
6504
  visibleLayoutEvents: n ? l : l.filter((d) => d.row < m),
6505
- containerHeight: Math.max(n ? c * z.ALL_DAY_ROW_HEIGHT + 4 : w ? (m + 1) * z.ALL_DAY_ROW_HEIGHT + 4 : c * z.ALL_DAY_ROW_HEIGHT + 4, z.DATE_LABEL_HEIGHT),
6505
+ containerHeight: Math.max(n ? u * z.ALL_DAY_ROW_HEIGHT + 4 : w ? (m + 1) * z.ALL_DAY_ROW_HEIGHT + 4 : u * z.ALL_DAY_ROW_HEIGHT + 4, z.DATE_LABEL_HEIGHT),
6506
6506
  showExpandCollapse: w || n
6507
6507
  };
6508
6508
  }, [
@@ -6530,36 +6530,36 @@ var ae = {
6530
6530
  moreChip: Wl
6531
6531
  }, $r = /* @__PURE__ */ ce(ue(), 1);
6532
6532
  function zn({ days: t, events: e, maxEvents: n, onEventClick: r, classNames: a, is12Hour: s, renderEvent: i, locale: o }) {
6533
- const { testId: l } = de(), [c, m] = Fe(!1), v = n ?? 3;
6533
+ const { testId: l } = de(), [u, m] = Fe(!1), v = n ?? 3;
6534
6534
  le(() => {
6535
6535
  m(!1);
6536
6536
  }, [t]);
6537
- const { layoutEvents: w, effectiveMaxRows: d, hiddenCounts: f, visibleLayoutEvents: _, containerHeight: p, showExpandCollapse: k } = Nl(t, e, c, v), b = () => /* @__PURE__ */ u.createElement("div", { className: ae.bannerGridBg }, t.map((g, h) => /* @__PURE__ */ u.createElement("div", {
6537
+ const { layoutEvents: w, effectiveMaxRows: d, hiddenCounts: f, visibleLayoutEvents: _, containerHeight: p, showExpandCollapse: k } = Nl(t, e, u, v), b = () => /* @__PURE__ */ c.createElement("div", { className: ae.bannerGridBg }, t.map((g, h) => /* @__PURE__ */ c.createElement("div", {
6538
6538
  key: h,
6539
6539
  className: ae.bannerGridCell
6540
6540
  }))), C = bo();
6541
- if (w.length === 0) return /* @__PURE__ */ u.createElement("div", {
6541
+ if (w.length === 0) return /* @__PURE__ */ c.createElement("div", {
6542
6542
  role: "region",
6543
6543
  "aria-label": "All-day events",
6544
6544
  className: ae.bannerWrapper,
6545
6545
  "data-testid": `${l}-all-day-banner`
6546
- }, /* @__PURE__ */ u.createElement("div", { className: ae.timeHeaderSpacer }, /* @__PURE__ */ u.createElement("span", { className: ae.timezoneLabel }, C)), /* @__PURE__ */ u.createElement("div", { className: ae.bannerContainer }, b()));
6546
+ }, /* @__PURE__ */ c.createElement("div", { className: ae.timeHeaderSpacer }, /* @__PURE__ */ c.createElement("span", { className: ae.timezoneLabel }, C)), /* @__PURE__ */ c.createElement("div", { className: ae.bannerContainer }, b()));
6547
6547
  const N = t.length;
6548
- return /* @__PURE__ */ u.createElement("div", {
6548
+ return /* @__PURE__ */ c.createElement("div", {
6549
6549
  role: "region",
6550
6550
  "aria-label": "All-day events",
6551
6551
  className: ae.bannerWrapper,
6552
6552
  "data-testid": `${l}-all-day-banner`
6553
- }, /* @__PURE__ */ u.createElement("div", { className: ae.timeHeaderSpacer }, /* @__PURE__ */ u.createElement("span", { className: ae.timezoneLabel }, C), k && /* @__PURE__ */ u.createElement("div", {
6553
+ }, /* @__PURE__ */ c.createElement("div", { className: ae.timeHeaderSpacer }, /* @__PURE__ */ c.createElement("span", { className: ae.timezoneLabel }, C), k && /* @__PURE__ */ c.createElement("div", {
6554
6554
  role: "button",
6555
6555
  tabIndex: 0,
6556
- className: (0, $r.default)(ae.expandIcon, { [ae.expanded]: c }),
6556
+ className: (0, $r.default)(ae.expandIcon, { [ae.expanded]: u }),
6557
6557
  "data-testid": `${l}-all-day-expand-icon`,
6558
- "aria-label": c ? "Collapse all-day events" : "Expand all-day events",
6559
- "aria-expanded": c,
6558
+ "aria-label": u ? "Collapse all-day events" : "Expand all-day events",
6559
+ "aria-expanded": u,
6560
6560
  onClick: () => m((g) => !g),
6561
6561
  onKeyDown: Me(() => m((g) => !g))
6562
- }, /* @__PURE__ */ u.createElement("svg", {
6562
+ }, /* @__PURE__ */ c.createElement("svg", {
6563
6563
  width: "16",
6564
6564
  height: "16",
6565
6565
  viewBox: "0 0 24 24",
@@ -6568,12 +6568,12 @@ function zn({ days: t, events: e, maxEvents: n, onEventClick: r, classNames: a,
6568
6568
  strokeWidth: "2",
6569
6569
  strokeLinecap: "round",
6570
6570
  strokeLinejoin: "round"
6571
- }, /* @__PURE__ */ u.createElement("polyline", { points: "6 9 12 15 18 9" })))), /* @__PURE__ */ u.createElement("div", {
6571
+ }, /* @__PURE__ */ c.createElement("polyline", { points: "6 9 12 15 18 9" })))), /* @__PURE__ */ c.createElement("div", {
6572
6572
  className: ae.bannerContainer,
6573
6573
  style: { height: p }
6574
6574
  }, b(), _.map((g, h) => {
6575
6575
  const { event: y, row: E, startIndex: S, endIndex: O, isClippedLeft: V, isClippedRight: I } = g, $ = S / N * 100, H = (O - S + 1) / N * 100, q = E * z.ALL_DAY_ROW_HEIGHT + 2, B = y.style?.backgroundColor || z.DEFAULT_EVENT_COLOR, J = an(String(B));
6576
- return /* @__PURE__ */ u.createElement("div", {
6576
+ return /* @__PURE__ */ c.createElement("div", {
6577
6577
  key: y.id || `banner-evt-${h}`,
6578
6578
  role: "button",
6579
6579
  tabIndex: 0,
@@ -6590,15 +6590,15 @@ function zn({ days: t, events: e, maxEvents: n, onEventClick: r, classNames: a,
6590
6590
  ...y.style
6591
6591
  },
6592
6592
  "data-testid": `${l}-${y.id}-all-day-event`,
6593
- "aria-label": ze(y, F.week, s, o),
6593
+ "aria-label": ze(y, W.week, s, o),
6594
6594
  onClick: () => r?.(y),
6595
6595
  onKeyDown: Me(() => r?.(y)),
6596
- title: ze(y, F.week, s, o)
6597
- }, i ? i(y) : /* @__PURE__ */ u.createElement("span", { className: ae.title }, y.title));
6598
- }), !c && f.map((g, h) => {
6596
+ title: ze(y, W.week, s, o)
6597
+ }, i ? i(y) : /* @__PURE__ */ c.createElement("span", { className: ae.title }, y.title));
6598
+ }), !u && f.map((g, h) => {
6599
6599
  if (g === 0) return null;
6600
6600
  const y = h / N * 100, E = 1 / N * 100, S = d * z.ALL_DAY_ROW_HEIGHT + 2;
6601
- return /* @__PURE__ */ u.createElement("div", {
6601
+ return /* @__PURE__ */ c.createElement("div", {
6602
6602
  key: `more-${h}`,
6603
6603
  role: "button",
6604
6604
  tabIndex: 0,
@@ -6617,7 +6617,7 @@ function zn({ days: t, events: e, maxEvents: n, onEventClick: r, classNames: a,
6617
6617
  }
6618
6618
  var Vt = /* @__PURE__ */ ce(ue(), 1);
6619
6619
  function Ul(t) {
6620
- const { events: e, onEventClick: n, dayType: r, is12Hour: a, theme: s, classNames: i, showCurrentTime: o, maxEvents: l, autoScrollToCurrentTime: c, minHour: m, maxHour: v, renderEvent: w, renderHourCell: d, renderDateCell: f, showAllDayRow: _, eventOverlapOffset: p, enableEnrichedEvents: k, enrichedEventsByDate: b, eventsAreSorted: C, isEventOrderingEnabled: N, locale: g, creatable: h, onSlotClick: y } = We(t), E = Re(null), { state: S, testId: O, colorScheme: V } = de(), { selectedDate: I } = S, $ = Zn(e, I, m, v, _, p, {
6620
+ const { events: e, onEventClick: n, dayType: r, is12Hour: a, theme: s, classNames: i, showCurrentTime: o, maxEvents: l, autoScrollToCurrentTime: u, minHour: m, maxHour: v, renderEvent: w, renderHourCell: d, renderDateCell: f, showAllDayRow: _, eventOverlapOffset: p, enableEnrichedEvents: k, enrichedEventsByDate: b, eventsAreSorted: C, isEventOrderingEnabled: N, locale: g, creatable: h, onSlotClick: y } = We(t), E = Re(null), { state: S, testId: O, colorScheme: V } = de(), { selectedDate: I } = S, $ = Zn(e, I, m, v, _, p, {
6621
6621
  enableEnrichedEvents: k,
6622
6622
  enrichedEventsByDate: b,
6623
6623
  eventsAreSorted: C,
@@ -6627,26 +6627,26 @@ function Ul(t) {
6627
6627
  backgroundColor: q.today?.bgColor
6628
6628
  } : void 0;
6629
6629
  return le(() => {
6630
- if (c && E.current && H) {
6631
- const J = T(), X = J.hour, R = J.minute, W = X * Z.MINUTES_IN_HOUR + R, U = E.current, L = Math.max(0, W - U.clientHeight / 2);
6630
+ if (u && E.current && H) {
6631
+ const J = T(), Q = J.hour, R = J.minute, F = Q * Z.MINUTES_IN_HOUR + R, U = E.current, L = Math.max(0, F - U.clientHeight / 2);
6632
6632
  U.scrollTo({
6633
6633
  top: L,
6634
6634
  behavior: "smooth"
6635
6635
  });
6636
6636
  }
6637
- }, [c, H]), /* @__PURE__ */ u.createElement("div", {
6637
+ }, [u, H]), /* @__PURE__ */ c.createElement("div", {
6638
6638
  role: "region",
6639
6639
  "aria-label": "Day view",
6640
6640
  className: be.dayView,
6641
6641
  ref: E,
6642
6642
  "data-testid": `${O}-day-view`
6643
- }, /* @__PURE__ */ u.createElement("div", { className: be.stickyTopContainer }, /* @__PURE__ */ u.createElement("div", { className: be.dayHeaderContainer }, /* @__PURE__ */ u.createElement("div", { className: be.timeHeaderSpacer }), f ? f({
6643
+ }, /* @__PURE__ */ c.createElement("div", { className: be.stickyTopContainer }, /* @__PURE__ */ c.createElement("div", { className: be.dayHeaderContainer }, /* @__PURE__ */ c.createElement("div", { className: be.timeHeaderSpacer }), f ? f({
6644
6644
  date: I.toJSDate(),
6645
6645
  isToday: H
6646
- }) : /* @__PURE__ */ u.createElement("div", { className: (0, Vt.default)(be.dayHeader, i?.dayHeader) }, /* @__PURE__ */ u.createElement("div", { className: (0, Vt.default)(be.dayName, i?.dayName) }, rn(r, g)[St(I)]), /* @__PURE__ */ u.createElement("div", {
6646
+ }) : /* @__PURE__ */ c.createElement("div", { className: (0, Vt.default)(be.dayHeader, i?.dayHeader) }, /* @__PURE__ */ c.createElement("div", { className: (0, Vt.default)(be.dayName, i?.dayName) }, rn(r, g)[St(I)]), /* @__PURE__ */ c.createElement("div", {
6647
6647
  className: (0, Vt.default)(be.dayNumber, i?.dayNumber, { [be.today]: H }),
6648
6648
  style: B
6649
- }, A(I, x.DAY_NUMBER, g)))), _ && /* @__PURE__ */ u.createElement(zn, {
6649
+ }, A(I, x.DAY_NUMBER, g)))), _ && /* @__PURE__ */ c.createElement(zn, {
6650
6650
  days: [I],
6651
6651
  events: e || [],
6652
6652
  maxEvents: l,
@@ -6655,16 +6655,16 @@ function Ul(t) {
6655
6655
  is12Hour: a,
6656
6656
  renderEvent: w,
6657
6657
  locale: g
6658
- })), /* @__PURE__ */ u.createElement("div", { className: be.timeGrid }, /* @__PURE__ */ u.createElement(Pn, {
6658
+ })), /* @__PURE__ */ c.createElement("div", { className: be.timeGrid }, /* @__PURE__ */ c.createElement(Pn, {
6659
6659
  is12Hour: a,
6660
6660
  classNames: i,
6661
6661
  minHour: m,
6662
6662
  maxHour: v,
6663
6663
  locale: g
6664
- }), /* @__PURE__ */ u.createElement("div", {
6664
+ }), /* @__PURE__ */ c.createElement("div", {
6665
6665
  className: (0, Vt.default)(be.eventsColumn, i?.dayColumn),
6666
6666
  "data-testid": `${O}-day-column`
6667
- }, /* @__PURE__ */ u.createElement(Gn, {
6667
+ }, /* @__PURE__ */ c.createElement(Gn, {
6668
6668
  dayEvents: $,
6669
6669
  date: I,
6670
6670
  onEventClick: n,
@@ -6696,12 +6696,12 @@ var Te = {
6696
6696
  dayColumn: Ql
6697
6697
  }, Rt = /* @__PURE__ */ ce(ue(), 1);
6698
6698
  function Xl(t) {
6699
- const { events: e, onEventClick: n, dayType: r, is12Hour: a, theme: s, classNames: i, showCurrentTime: o, maxEvents: l, autoScrollToCurrentTime: c, weekStartsOn: m, weekEndsOn: v, minHour: w, maxHour: d, renderEvent: f, renderHourCell: _, renderDateCell: p, showAllDayRow: k, eventOverlapOffset: b, enableEnrichedEvents: C, enrichedEventsByDate: N, eventsAreSorted: g, isEventOrderingEnabled: h, locale: y, creatable: E, onSlotClick: S } = We(t), O = Re(null), { state: V, testId: I, colorScheme: $ } = de(), { selectedDate: H } = V, q = me(() => {
6700
- const R = St(H), W = R >= m ? m - R : m - R - Z.DAYS_IN_WEEK;
6701
- return H.plus({ days: W }).startOf("day");
6699
+ const { events: e, onEventClick: n, dayType: r, is12Hour: a, theme: s, classNames: i, showCurrentTime: o, maxEvents: l, autoScrollToCurrentTime: u, weekStartsOn: m, weekEndsOn: v, minHour: w, maxHour: d, renderEvent: f, renderHourCell: _, renderDateCell: p, showAllDayRow: k, eventOverlapOffset: b, enableEnrichedEvents: C, enrichedEventsByDate: N, eventsAreSorted: g, isEventOrderingEnabled: h, locale: y, creatable: E, onSlotClick: S } = We(t), O = Re(null), { state: V, testId: I, colorScheme: $ } = de(), { selectedDate: H } = V, q = me(() => {
6700
+ const R = St(H), F = R >= m ? m - R : m - R - Z.DAYS_IN_WEEK;
6701
+ return H.plus({ days: F }).startOf("day");
6702
6702
  }, [H, m]), B = me(() => {
6703
6703
  let R = v - m + 1;
6704
- return R <= 0 && (R += Z.DAYS_IN_WEEK), Array.from({ length: R }, (W, U) => q.plus({ days: U }));
6704
+ return R <= 0 && (R += Z.DAYS_IN_WEEK), Array.from({ length: R }, (F, U) => q.plus({ days: U }));
6705
6705
  }, [
6706
6706
  q,
6707
6707
  m,
@@ -6711,40 +6711,40 @@ function Xl(t) {
6711
6711
  enrichedEventsByDate: N,
6712
6712
  eventsAreSorted: g,
6713
6713
  isEventOrderingEnabled: h
6714
- }), X = me(() => {
6714
+ }), Q = me(() => {
6715
6715
  const R = T();
6716
- return B.some((W) => R.hasSame(W, "day"));
6716
+ return B.some((F) => R.hasSame(F, "day"));
6717
6717
  }, [B]);
6718
6718
  return le(() => {
6719
- if (c && O.current && X) {
6720
- const R = T(), W = R.hour, U = R.minute, L = W * Z.MINUTES_IN_HOUR + U, j = O.current, Be = Math.max(0, L - j.clientHeight / 2);
6719
+ if (u && O.current && Q) {
6720
+ const R = T(), F = R.hour, U = R.minute, L = F * Z.MINUTES_IN_HOUR + U, j = O.current, Be = Math.max(0, L - j.clientHeight / 2);
6721
6721
  j.scrollTo({
6722
6722
  top: Be,
6723
6723
  behavior: "smooth"
6724
6724
  });
6725
6725
  }
6726
- }, [c, X]), /* @__PURE__ */ u.createElement("div", {
6726
+ }, [u, Q]), /* @__PURE__ */ c.createElement("div", {
6727
6727
  role: "region",
6728
6728
  "aria-label": "Week view",
6729
6729
  className: Te.weekView,
6730
6730
  ref: O,
6731
6731
  "data-testid": `${I}-week-view`
6732
- }, /* @__PURE__ */ u.createElement("div", { className: Te.stickyTopContainer }, /* @__PURE__ */ u.createElement("div", { className: Te.weekHeader }, /* @__PURE__ */ u.createElement("div", { className: Te.timeHeaderSpacer }), B.map((R, W) => {
6732
+ }, /* @__PURE__ */ c.createElement("div", { className: Te.stickyTopContainer }, /* @__PURE__ */ c.createElement("div", { className: Te.weekHeader }, /* @__PURE__ */ c.createElement("div", { className: Te.timeHeaderSpacer }), B.map((R, F) => {
6733
6733
  const U = T().hasSame(R, "day"), L = Mt(s, $), j = U ? {
6734
6734
  color: L.today?.color,
6735
6735
  backgroundColor: L.today?.bgColor
6736
6736
  } : void 0;
6737
- return p ? p({
6737
+ return p ? /* @__PURE__ */ c.createElement(c.Fragment, { key: F }, p({
6738
6738
  date: R.toJSDate(),
6739
6739
  isToday: U
6740
- }) : /* @__PURE__ */ u.createElement("div", {
6741
- key: W,
6740
+ })) : /* @__PURE__ */ c.createElement("div", {
6741
+ key: F,
6742
6742
  className: (0, Rt.default)(Te.dayHeader, i?.dayHeader)
6743
- }, /* @__PURE__ */ u.createElement("div", { className: (0, Rt.default)(Te.dayName, i?.dayName) }, rn(r, y)[St(R)]), /* @__PURE__ */ u.createElement("div", {
6743
+ }, /* @__PURE__ */ c.createElement("div", { className: (0, Rt.default)(Te.dayName, i?.dayName) }, rn(r, y)[St(R)]), /* @__PURE__ */ c.createElement("div", {
6744
6744
  className: (0, Rt.default)(Te.dayNumber, i?.dayNumber, { [Te.today]: U }),
6745
6745
  style: j
6746
6746
  }, A(R, x.DAY_NUMBER, y)));
6747
- })), k && /* @__PURE__ */ u.createElement(zn, {
6747
+ })), k && /* @__PURE__ */ c.createElement(zn, {
6748
6748
  days: B,
6749
6749
  events: e || [],
6750
6750
  maxEvents: l,
@@ -6753,20 +6753,20 @@ function Xl(t) {
6753
6753
  is12Hour: a,
6754
6754
  renderEvent: f,
6755
6755
  locale: y
6756
- })), /* @__PURE__ */ u.createElement("div", { className: Te.timeGrid }, /* @__PURE__ */ u.createElement(Pn, {
6756
+ })), /* @__PURE__ */ c.createElement("div", { className: Te.timeGrid }, /* @__PURE__ */ c.createElement(Pn, {
6757
6757
  is12Hour: a,
6758
6758
  classNames: i,
6759
6759
  minHour: w,
6760
6760
  maxHour: d,
6761
6761
  locale: y
6762
- }), /* @__PURE__ */ u.createElement("div", { className: Te.eventsGrid }, B.map((R, W) => {
6762
+ }), /* @__PURE__ */ c.createElement("div", { className: Te.eventsGrid }, B.map((R, F) => {
6763
6763
  const U = T().hasSame(R, "day");
6764
- return /* @__PURE__ */ u.createElement("div", {
6765
- key: W,
6764
+ return /* @__PURE__ */ c.createElement("div", {
6765
+ key: F,
6766
6766
  className: (0, Rt.default)(Te.dayColumn, i?.dayColumn),
6767
6767
  "data-testid": `${I}-day-column`
6768
- }, /* @__PURE__ */ u.createElement(Gn, {
6769
- dayEvents: J[W],
6768
+ }, /* @__PURE__ */ c.createElement(Gn, {
6769
+ dayEvents: J[F],
6770
6770
  date: R,
6771
6771
  onEventClick: n,
6772
6772
  is12Hour: a,
@@ -6784,17 +6784,17 @@ function Xl(t) {
6784
6784
  }
6785
6785
  var Ja = Xl;
6786
6786
  function ec(t, e) {
6787
- for (var n = 0, r = 0, a, s = [], i = new Date(t || /* @__PURE__ */ new Date()), o = i.getFullYear(), l = i.getMonth(), c = new Date(o, l, 1 - (e | 0)).getDay(), m = new Date(o, l + 1, 0).getDate(); n < m; ) {
6787
+ for (var n = 0, r = 0, a, s = [], i = new Date(t || /* @__PURE__ */ new Date()), o = i.getFullYear(), l = i.getMonth(), u = new Date(o, l, 1 - (e | 0)).getDay(), m = new Date(o, l + 1, 0).getDate(); n < m; ) {
6788
6788
  for (r = 0, a = Array(7); r < 7; ) {
6789
- for (; r < c; ) a[r++] = 0;
6790
- a[r++] = ++n > m ? 0 : n, c = 0;
6789
+ for (; r < u; ) a[r++] = 0;
6790
+ a[r++] = ++n > m ? 0 : n, u = 0;
6791
6791
  }
6792
6792
  s.push(a);
6793
6793
  }
6794
6794
  return s;
6795
6795
  }
6796
6796
  function tc(t, e, n, r, a = {}) {
6797
- const { enableEnrichedEvents: s, enrichedEventsByDate: i, eventsAreSorted: o, isEventOrderingEnabled: l = !0, sortedMonthView: c = !0 } = a;
6797
+ const { enableEnrichedEvents: s, enrichedEventsByDate: i, eventsAreSorted: o, isEventOrderingEnabled: l = !0, sortedMonthView: u = !0 } = a;
6798
6798
  return me(() => {
6799
6799
  const m = o ? e : [...e].sort((w, d) => xe(ee(w.startDate), ee(d.startDate))), v = (r - n + Z.DAYS_IN_WEEK) % Z.DAYS_IN_WEEK + 1;
6800
6800
  return ec(t.toJSDate(), n).map((w, d) => {
@@ -6822,7 +6822,7 @@ function tc(t, e, n, r, a = {}) {
6822
6822
  const g = ee(N.startDate), h = N.endDate ? ee(N.endDate) : g;
6823
6823
  return Cn(g, vn(p, 1)) && Gt(h, kr(_, 1));
6824
6824
  });
6825
- c && (typeof c == "function" ? k.sort(c) : k.sort((N, g) => {
6825
+ u && (typeof u == "function" ? k.sort(u) : k.sort((N, g) => {
6826
6826
  const h = ee(N.startDate), y = ee(g.startDate);
6827
6827
  if (!xn(h, y)) return xe(h, y);
6828
6828
  const E = N.endDate ? ee(N.endDate) : h, S = g.endDate ? ee(g.endDate) : y, O = xe(E, h);
@@ -6896,7 +6896,7 @@ function tc(t, e, n, r, a = {}) {
6896
6896
  i,
6897
6897
  o,
6898
6898
  l,
6899
- c
6899
+ u
6900
6900
  ]);
6901
6901
  }
6902
6902
  const nc = "_dateData_a2d26_1", rc = "_currentMonth_a2d26_18", ac = "_cellContent_a2d26_23", sc = "_dateLabel_a2d26_32", ic = "_selected_a2d26_49", oc = "_today_a2d26_54", lc = "_dataContainer_a2d26_62", cc = "_spacer_a2d26_70", uc = "_eventItem_a2d26_75", dc = "_moreEventsContainer_a2d26_103", fc = "_moreEvents_a2d26_103";
@@ -6924,14 +6924,14 @@ var Qe = {
6924
6924
  endAfter: pc
6925
6925
  }, wc = /* @__PURE__ */ ce(ue(), 1);
6926
6926
  function _c({ dateObj: t, events: e, onEventClick: n, onClose: r, anchorEl: a, is12Hour: s, renderEvent: i }) {
6927
- const { testId: o, colorScheme: l } = de(), c = Re(null), [m, v] = Fe({ visibility: "hidden" }), w = An(() => {
6927
+ const { testId: o, colorScheme: l } = de(), u = Re(null), [m, v] = Fe({ visibility: "hidden" }), w = An(() => {
6928
6928
  r(), requestAnimationFrame(() => {
6929
6929
  a?.focus();
6930
6930
  });
6931
6931
  }, [r, a]);
6932
6932
  ls(() => {
6933
- if (c.current && a) {
6934
- const f = c.current.getBoundingClientRect(), _ = a.getBoundingClientRect(), p = 10, k = _.bottom + 4;
6933
+ if (u.current && a) {
6934
+ const f = u.current.getBoundingClientRect(), _ = a.getBoundingClientRect(), p = 10, k = _.bottom + 4;
6935
6935
  let b = _.left;
6936
6936
  const C = window.innerHeight, N = window.innerWidth, g = C - k, h = _.top - p, y = {
6937
6937
  visibility: "visible",
@@ -6951,14 +6951,14 @@ function _c({ dateObj: t, events: e, onEventClick: n, onClose: r, anchorEl: a, i
6951
6951
  }
6952
6952
  }, [a]), le(() => {
6953
6953
  function f(_) {
6954
- c.current && !c.current.contains(_.target) && w();
6954
+ u.current && !u.current.contains(_.target) && w();
6955
6955
  }
6956
6956
  return document.addEventListener("mousedown", f), () => {
6957
6957
  document.removeEventListener("mousedown", f);
6958
6958
  };
6959
6959
  }, [w]), le(() => {
6960
6960
  const f = requestAnimationFrame(() => {
6961
- c.current?.querySelector('[role="button"], button, [tabindex="0"]')?.focus();
6961
+ u.current?.querySelector('[role="button"], button, [tabindex="0"]')?.focus();
6962
6962
  });
6963
6963
  return () => cancelAnimationFrame(f);
6964
6964
  }, []);
@@ -6968,26 +6968,26 @@ function _c({ dateObj: t, events: e, onEventClick: n, onClose: r, anchorEl: a, i
6968
6968
  return;
6969
6969
  }
6970
6970
  if (f.key === "Tab") {
6971
- const _ = Array.from(c.current?.querySelectorAll('[role="button"], button, [tabindex="0"]') ?? []);
6971
+ const _ = Array.from(u.current?.querySelectorAll('[role="button"], button, [tabindex="0"]') ?? []);
6972
6972
  if (_.length === 0) return;
6973
6973
  const p = _[0], k = _[_.length - 1];
6974
6974
  f.shiftKey && document.activeElement === p ? (f.preventDefault(), k.focus()) : !f.shiftKey && document.activeElement === k && (f.preventDefault(), p.focus());
6975
6975
  }
6976
6976
  };
6977
- return us(/* @__PURE__ */ u.createElement("div", {
6977
+ return us(/* @__PURE__ */ c.createElement("div", {
6978
6978
  role: "dialog",
6979
6979
  "aria-modal": "true",
6980
6980
  "aria-label": `Events on ${A(t, x.DAY_DATE_SHORT_MONTH)}`,
6981
6981
  className: Qe.popover,
6982
- ref: c,
6982
+ ref: u,
6983
6983
  style: m,
6984
6984
  onClick: (f) => f.stopPropagation(),
6985
6985
  onKeyDown: d,
6986
6986
  "data-testid": `${o}-popover-content`,
6987
6987
  "data-color-scheme": l
6988
- }, /* @__PURE__ */ u.createElement("div", { className: Qe.popoverHeader }, A(t, x.DAY_DATE_SHORT_MONTH)), /* @__PURE__ */ u.createElement("div", { className: Qe.popoverContent }, e.map((f, _) => {
6989
- const p = ee(t), k = ee(f.startDate), b = f.endDate ? ee(f.endDate) : k, C = Cn(k, p), N = Gt(b, p), g = ze(f, F.month, s), h = f.style?.backgroundColor || z.DEFAULT_EVENT_COLOR, y = an(String(h));
6990
- return /* @__PURE__ */ u.createElement("div", {
6988
+ }, /* @__PURE__ */ c.createElement("div", { className: Qe.popoverHeader }, A(t, x.DAY_DATE_SHORT_MONTH)), /* @__PURE__ */ c.createElement("div", { className: Qe.popoverContent }, e.map((f, _) => {
6989
+ const p = ee(t), k = ee(f.startDate), b = f.endDate ? ee(f.endDate) : k, C = Cn(k, p), N = Gt(b, p), g = ze(f, W.month, s), h = f.style?.backgroundColor || z.DEFAULT_EVENT_COLOR, y = an(String(h));
6990
+ return /* @__PURE__ */ c.createElement("div", {
6991
6991
  key: f.id || `pop-${_}`,
6992
6992
  role: "button",
6993
6993
  tabIndex: 0,
@@ -7014,20 +7014,20 @@ function _c({ dateObj: t, events: e, onEventClick: n, onClose: r, anchorEl: a, i
7014
7014
  }))), document.body);
7015
7015
  }
7016
7016
  var Tc = _c, mt = /* @__PURE__ */ ce(ue(), 1);
7017
- function Dc({ date: t, dateObj: e, data: n, cellWidth: r, className: a, dataClassName: s, isSelected: i, isToday: o, onClick: l, selectedClassName: c, todayClassName: m, isCurrentMonth: v, theme: w, maxEvents: d, onMoreClick: f, onEventClick: _, totalEvents: p = 0, is12Hour: k, showAdjacentMonths: b, classNames: C, renderEvent: N, renderDateCell: g }) {
7017
+ function Dc({ date: t, dateObj: e, data: n, cellWidth: r, className: a, dataClassName: s, isSelected: i, isToday: o, onClick: l, selectedClassName: u, todayClassName: m, isCurrentMonth: v, theme: w, maxEvents: d, onMoreClick: f, onEventClick: _, totalEvents: p = 0, is12Hour: k, showAdjacentMonths: b, classNames: C, renderEvent: N, renderDateCell: g }) {
7018
7018
  const { testId: h, config: y, colorScheme: E } = de(), S = y.locale, [O, V] = Fe(!1), [I, $] = Fe(null), H = An(() => {
7019
7019
  V(!1), $(null);
7020
7020
  }, []), q = Mt(w, E), B = i ? q.selected : o ? q.today : q.default, J = {
7021
7021
  color: B?.color,
7022
7022
  backgroundColor: B?.bgColor
7023
- }, X = n?.filter((L) => L !== null) || [];
7024
- let R = n, W = 0, U = [];
7023
+ }, Q = n?.filter((L) => L !== null) || [];
7024
+ let R = n, F = 0, U = [];
7025
7025
  if ((d || d === 0) && n && (p >= d || n.length > d)) {
7026
7026
  R = n.slice(0, d);
7027
7027
  const L = R.filter((j) => j !== null).length;
7028
- W = p - L, U = X.slice(L).filter((j) => !j.isSpacer);
7028
+ F = p - L, U = Q.slice(L).filter((j) => !j.isSpacer);
7029
7029
  }
7030
- return /* @__PURE__ */ u.createElement("td", {
7030
+ return /* @__PURE__ */ c.createElement("td", {
7031
7031
  style: J,
7032
7032
  "data-testid": `${h}-${t}-month-cell`,
7033
7033
  onClick: () => l?.(e),
@@ -7036,23 +7036,23 @@ function Dc({ date: t, dateObj: e, data: n, cellWidth: r, className: a, dataClas
7036
7036
  onKeyDown: l ? Me(() => l(e)) : void 0,
7037
7037
  className: (0, mt.default)(De.dateData, a, {
7038
7038
  [De.currentMonth]: !v,
7039
- [(0, mt.default)(De.selected, c)]: i,
7039
+ [(0, mt.default)(De.selected, u)]: i,
7040
7040
  [(0, mt.default)(De.today, m)]: o
7041
7041
  })
7042
- }, /* @__PURE__ */ u.createElement("div", { className: De.cellContent }, (v || b) && /* @__PURE__ */ u.createElement(u.Fragment, null, g ? g({
7042
+ }, /* @__PURE__ */ c.createElement("div", { className: De.cellContent }, (v || b) && /* @__PURE__ */ c.createElement(c.Fragment, null, g ? g({
7043
7043
  date: e.toJSDate(),
7044
7044
  isToday: o,
7045
7045
  isSelected: i,
7046
7046
  isCurrentMonth: v
7047
- }) : /* @__PURE__ */ u.createElement("p", { className: De.dateLabel }, t), n && /* @__PURE__ */ u.createElement("div", { className: (0, mt.default)(De.dataContainer, s) }, R.map((L, j) => {
7048
- if (!L || L.isSpacer) return /* @__PURE__ */ u.createElement("div", {
7047
+ }) : /* @__PURE__ */ c.createElement("p", { className: De.dateLabel }, t), n && /* @__PURE__ */ c.createElement("div", { className: (0, mt.default)(De.dataContainer, s) }, R.map((L, j) => {
7048
+ if (!L || L.isSpacer) return /* @__PURE__ */ c.createElement("div", {
7049
7049
  key: `spacer-${j}`,
7050
7050
  className: De.spacer
7051
7051
  });
7052
7052
  let Be = 1;
7053
7053
  L.endDateWeek && (Be = xe(L.endDateWeek, L.startDateWeek) + 1);
7054
- const Ct = ze(L, F.month, k), sn = L.style?.backgroundColor || z.DEFAULT_EVENT_COLOR, ts = an(String(sn)), ns = r > 0 ? `${r * Be - z.EVENT_ITEM_PADDING}px` : "100%", qn = L.id || `${L.startDate}-${j}`;
7055
- return /* @__PURE__ */ u.createElement("div", {
7054
+ const Ct = ze(L, W.month, k), sn = L.style?.backgroundColor || z.DEFAULT_EVENT_COLOR, ts = an(String(sn)), ns = r > 0 ? `${r * Be - z.EVENT_ITEM_PADDING}px` : "100%", qn = L.id || `${L.startDate}-${j}`;
7055
+ return /* @__PURE__ */ c.createElement("div", {
7056
7056
  key: qn,
7057
7057
  role: "button",
7058
7058
  tabIndex: 0,
@@ -7072,19 +7072,19 @@ function Dc({ date: t, dateObj: e, data: n, cellWidth: r, className: a, dataClas
7072
7072
  },
7073
7073
  onKeyDown: Me(() => _?.(L))
7074
7074
  }, N ? N(L) : L.title);
7075
- }), W > 0 && /* @__PURE__ */ u.createElement("div", { className: De.moreEventsContainer }, /* @__PURE__ */ u.createElement("button", {
7075
+ }), F > 0 && /* @__PURE__ */ c.createElement("div", { className: De.moreEventsContainer }, /* @__PURE__ */ c.createElement("button", {
7076
7076
  className: De.moreEvents,
7077
7077
  "data-testid": `${h}-${t}-more-events`,
7078
- "aria-label": `${W} more events on ${A(e, x.MONTH_DAY_YEAR, S)}`,
7078
+ "aria-label": `${F} more events on ${A(e, x.MONTH_DAY_YEAR, S)}`,
7079
7079
  onClick: (L) => {
7080
7080
  L.stopPropagation(), O || ($(L.currentTarget), V(!0)), f?.(e, U);
7081
7081
  },
7082
7082
  onKeyDown: Me((L) => {
7083
7083
  O || ($(L.currentTarget), V(!0)), f?.(e, U);
7084
7084
  })
7085
- }, "+ ", W, " more"), O && I && /* @__PURE__ */ u.createElement(Tc, {
7085
+ }, "+ ", F, " more"), O && I && /* @__PURE__ */ c.createElement(Tc, {
7086
7086
  dateObj: e,
7087
- events: X,
7087
+ events: Q,
7088
7088
  onEventClick: _,
7089
7089
  onClose: H,
7090
7090
  anchorEl: I,
@@ -7104,7 +7104,7 @@ var Pe = {
7104
7104
  weekNumberCell: Cc
7105
7105
  }, ht = /* @__PURE__ */ ce(ue(), 1);
7106
7106
  function xc(t) {
7107
- const { dayType: e, width: n, height: r, onDateClick: a, onEventClick: s, onMoreClick: i, selectable: o, events: l, is12Hour: c, classNames: m, weekStartsOn: v, weekEndsOn: w, showAdjacentMonths: d, renderEvent: f, renderDateCell: _, enableEnrichedEvents: p, enrichedEventsByDate: k, eventsAreSorted: b, isEventOrderingEnabled: C, sortedMonthView: N, locale: g, theme: h, showWeekNumbers: y, creatable: E, onSlotClick: S, maxEvents: O } = We(t), { state: V, dispatch: I, testId: $ } = de(), { selectedDate: H } = V, q = tc(H, l, v, w, {
7107
+ const { dayType: e, width: n, height: r, onDateClick: a, onEventClick: s, onMoreClick: i, selectable: o, events: l, is12Hour: u, classNames: m, weekStartsOn: v, weekEndsOn: w, showAdjacentMonths: d, renderEvent: f, renderDateCell: _, enableEnrichedEvents: p, enrichedEventsByDate: k, eventsAreSorted: b, isEventOrderingEnabled: C, sortedMonthView: N, locale: g, theme: h, showWeekNumbers: y, creatable: E, onSlotClick: S, maxEvents: O } = We(t), { state: V, dispatch: I, testId: $ } = de(), { selectedDate: H } = V, q = tc(H, l, v, w, {
7108
7108
  enableEnrichedEvents: p,
7109
7109
  enrichedEventsByDate: k,
7110
7110
  eventsAreSorted: b,
@@ -7114,8 +7114,8 @@ function xc(t) {
7114
7114
  O,
7115
7115
  r,
7116
7116
  q.length
7117
- ]), J = An((W) => {
7118
- const U = T(W);
7117
+ ]), J = An((F) => {
7118
+ const U = T(F);
7119
7119
  o && !U.hasSame(H, "day") && (a?.(nt(U)), I({
7120
7120
  type: "SET_DATE",
7121
7121
  payload: U
@@ -7127,35 +7127,35 @@ function xc(t) {
7127
7127
  I,
7128
7128
  E,
7129
7129
  S
7130
- ]), X = me(() => {
7131
- const W = rn(e, g), U = (w - v + Z.DAYS_IN_WEEK) % Z.DAYS_IN_WEEK + 1;
7132
- return Array.from({ length: U }, (L, j) => W[(v + j) % Z.DAYS_IN_WEEK]);
7130
+ ]), Q = me(() => {
7131
+ const F = rn(e, g), U = (w - v + Z.DAYS_IN_WEEK) % Z.DAYS_IN_WEEK + 1;
7132
+ return Array.from({ length: U }, (L, j) => F[(v + j) % Z.DAYS_IN_WEEK]);
7133
7133
  }, [
7134
7134
  e,
7135
7135
  v,
7136
7136
  w,
7137
7137
  g
7138
7138
  ]), R = A(H, x.MONTH_YEAR, g);
7139
- return /* @__PURE__ */ u.createElement("div", {
7139
+ return /* @__PURE__ */ c.createElement("div", {
7140
7140
  className: Pe.monthView,
7141
7141
  "data-testid": `${$}-month-view`
7142
- }, /* @__PURE__ */ u.createElement("table", {
7142
+ }, /* @__PURE__ */ c.createElement("table", {
7143
7143
  className: (0, ht.default)(Pe.table, m?.table),
7144
7144
  "aria-label": R,
7145
7145
  style: {
7146
7146
  "--calendar-rows": q.length,
7147
7147
  "--week-number-width": y ? "36px" : "0px"
7148
7148
  }
7149
- }, /* @__PURE__ */ u.createElement("thead", null, /* @__PURE__ */ u.createElement("tr", null, y && /* @__PURE__ */ u.createElement("th", {
7149
+ }, /* @__PURE__ */ c.createElement("thead", null, /* @__PURE__ */ c.createElement("tr", null, y && /* @__PURE__ */ c.createElement("th", {
7150
7150
  scope: "col",
7151
7151
  className: (0, ht.default)(Pe.weekNumberHeader, m?.weekNumber)
7152
- }), X.map((W) => /* @__PURE__ */ u.createElement("th", {
7153
- key: W,
7152
+ }), Q.map((F) => /* @__PURE__ */ c.createElement("th", {
7153
+ key: F,
7154
7154
  scope: "col",
7155
7155
  className: (0, ht.default)(Pe.tableHeader, m?.tableHeader)
7156
- }, W)))), /* @__PURE__ */ u.createElement("tbody", { className: Pe.tableBody }, q.map((W, U) => {
7157
- const L = W.every((j) => !j.isCurrentMonth);
7158
- return /* @__PURE__ */ u.createElement("tr", { key: U }, y && /* @__PURE__ */ u.createElement("td", { className: (0, ht.default)(Pe.weekNumberCell, m?.weekNumber) }, !d && L ? null : W[0]?.currentDate.weekNumber), W.map((j, Be) => /* @__PURE__ */ u.createElement(Sc, {
7156
+ }, F)))), /* @__PURE__ */ c.createElement("tbody", { className: Pe.tableBody }, q.map((F, U) => {
7157
+ const L = F.every((j) => !j.isCurrentMonth);
7158
+ return /* @__PURE__ */ c.createElement("tr", { key: U }, y && /* @__PURE__ */ c.createElement("td", { className: (0, ht.default)(Pe.weekNumberCell, m?.weekNumber) }, !d && L ? null : F[0]?.currentDate.weekNumber), F.map((j, Be) => /* @__PURE__ */ c.createElement(Sc, {
7159
7159
  key: `date_${U}_${Be}`,
7160
7160
  isSelected: o && j.isCurrentMonth && j.displayDay === H.day,
7161
7161
  isToday: j.isToday,
@@ -7164,7 +7164,7 @@ function xc(t) {
7164
7164
  date: j.displayDay,
7165
7165
  dateObj: j.currentDate,
7166
7166
  data: j.events,
7167
- cellWidth: (typeof n == "number" ? n : 0) / X.length,
7167
+ cellWidth: (typeof n == "number" ? n : 0) / Q.length,
7168
7168
  className: (0, ht.default)(Pe.tableCell, m?.tableDate),
7169
7169
  dataClassName: m?.event,
7170
7170
  selectedClassName: m?.selected,
@@ -7172,7 +7172,7 @@ function xc(t) {
7172
7172
  theme: h,
7173
7173
  maxEvents: B,
7174
7174
  totalEvents: j.totalEvents,
7175
- is12Hour: c,
7175
+ is12Hour: u,
7176
7176
  onEventClick: s,
7177
7177
  onMoreClick: (Ct, sn) => i?.(nt(Ct), sn),
7178
7178
  showAdjacentMonths: d,
@@ -7201,8 +7201,8 @@ var ye = {
7201
7201
  };
7202
7202
  function zc({ events: t, autoScrollToCurrentTime: e, is12Hour: n, locale: r }) {
7203
7203
  const a = Re(null), s = Re(null), i = me(() => {
7204
- const c = [...t].sort((v, w) => T(v.startDate).valueOf() - T(w.startDate).valueOf()), m = {};
7205
- return c.forEach((v) => {
7204
+ const u = [...t].sort((v, w) => T(v.startDate).valueOf() - T(w.startDate).valueOf()), m = {};
7205
+ return u.forEach((v) => {
7206
7206
  let w = T(v.startDate).startOf("day");
7207
7207
  const d = v.endDate ? T(v.endDate).startOf("day") : w;
7208
7208
  for (; w < d || w.equals(d); ) {
@@ -7213,78 +7213,78 @@ function zc({ events: t, autoScrollToCurrentTime: e, is12Hour: n, locale: r }) {
7213
7213
  }, [t]);
7214
7214
  return le(() => {
7215
7215
  if (e && a.current && s.current) {
7216
- const c = s.current.getBoundingClientRect(), m = a.current.getBoundingClientRect();
7217
- s.current.scrollTop += m.top - c.top;
7216
+ const u = s.current.getBoundingClientRect(), m = a.current.getBoundingClientRect();
7217
+ s.current.scrollTop += m.top - u.top;
7218
7218
  }
7219
7219
  }, [e, i]), {
7220
7220
  todayRef: a,
7221
7221
  containerRef: s,
7222
7222
  groupedEvents: i,
7223
- renderEventTime: (c, m) => {
7224
- if (Ve(c)) return "All day";
7225
- const v = T(m).startOf("day"), w = T(c.startDate).startOf("day"), d = c.endDate ? T(c.endDate).startOf("day") : w, f = !w.equals(d), _ = n ? x.TIME_12H : x.TIME, p = (N) => N.replace(/^0/, "").replace(":00", " "), k = (N) => T(N).hour === 0 && T(N).minute === 0, b = (N) => T(N).hour === 23 && T(N).minute === 59;
7226
- if (f) return v.equals(w) ? k(c.startDate) ? "All day" : `${p(A(c.startDate, _, r))}` : v.equals(d) ? b(c.endDate) ? "All day" : `Until ${p(A(c.endDate, _, r))}` : "All day";
7227
- const C = A(c.startDate, _, r);
7228
- if (c.endDate) {
7229
- if (k(c.startDate) && b(c.endDate)) return "All day";
7230
- const N = A(c.endDate, _, r);
7223
+ renderEventTime: (u, m) => {
7224
+ if (Ve(u)) return "All day";
7225
+ const v = T(m).startOf("day"), w = T(u.startDate).startOf("day"), d = u.endDate ? T(u.endDate).startOf("day") : w, f = !w.equals(d), _ = n ? x.TIME_12H : x.TIME, p = (N) => N.replace(/^0/, "").replace(":00", " "), k = (N) => T(N).hour === 0 && T(N).minute === 0, b = (N) => T(N).hour === 23 && T(N).minute === 59;
7226
+ if (f) return v.equals(w) ? k(u.startDate) ? "All day" : `${p(A(u.startDate, _, r))}` : v.equals(d) ? b(u.endDate) ? "All day" : `Until ${p(A(u.endDate, _, r))}` : "All day";
7227
+ const C = A(u.startDate, _, r);
7228
+ if (u.endDate) {
7229
+ if (k(u.startDate) && b(u.endDate)) return "All day";
7230
+ const N = A(u.endDate, _, r);
7231
7231
  return `${p(C)} – ${p(N)}`;
7232
7232
  }
7233
7233
  return p(C);
7234
7234
  },
7235
- renderEventTitle: (c, m) => {
7236
- if (c.endDate && !xn(T(c.startDate), T(c.endDate))) {
7237
- const v = xe(T(m).startOf("day"), T(c.startDate).startOf("day")) + 1, w = xe(c.endDate, c.startDate) + 1;
7238
- return `${c.title} (Day ${v}/${w})`;
7235
+ renderEventTitle: (u, m) => {
7236
+ if (u.endDate && !xn(T(u.startDate), T(u.endDate))) {
7237
+ const v = xe(T(m).startOf("day"), T(u.startDate).startOf("day")) + 1, w = xe(u.endDate, u.startDate) + 1;
7238
+ return `${u.title} (Day ${v}/${w})`;
7239
7239
  }
7240
- return c.title;
7240
+ return u.title;
7241
7241
  }
7242
7242
  };
7243
7243
  }
7244
7244
  var Xe = /* @__PURE__ */ ce(ue(), 1);
7245
7245
  function Ka(t) {
7246
- const { events: e, onEventClick: n, is12Hour: r, theme: a, classNames: s, autoScrollToCurrentTime: i, renderEvent: o, renderScheduleSeparator: l, locale: c } = We(t), { testId: m, colorScheme: v } = de(), { todayRef: w, containerRef: d, groupedEvents: f, renderEventTime: _, renderEventTitle: p } = zc({
7246
+ const { events: e, onEventClick: n, is12Hour: r, theme: a, classNames: s, autoScrollToCurrentTime: i, renderEvent: o, renderScheduleSeparator: l, locale: u } = We(t), { testId: m, colorScheme: v } = de(), { todayRef: w, containerRef: d, groupedEvents: f, renderEventTime: _, renderEventTitle: p } = zc({
7247
7247
  events: e,
7248
7248
  autoScrollToCurrentTime: i,
7249
7249
  is12Hour: r,
7250
- locale: c
7250
+ locale: u
7251
7251
  });
7252
- return /* @__PURE__ */ u.createElement("div", {
7252
+ return /* @__PURE__ */ c.createElement("div", {
7253
7253
  ref: d,
7254
7254
  role: "region",
7255
7255
  "aria-label": "Schedule view",
7256
7256
  className: ye.scheduleView,
7257
7257
  "data-testid": `${m}-schedule-view`
7258
- }, Object.keys(f).length === 0 ? /* @__PURE__ */ u.createElement("div", { className: ye.emptyState }, "No events to display") : Object.keys(f).sort().map((k, b, C) => {
7258
+ }, Object.keys(f).length === 0 ? /* @__PURE__ */ c.createElement("div", { className: ye.emptyState }, "No events to display") : Object.keys(f).sort().map((k, b, C) => {
7259
7259
  const N = f[k], g = T(k), h = b === C.length - 1, y = Ua(g, g.day), E = Mt(a, v), S = y ? {
7260
7260
  color: E.today?.color,
7261
7261
  backgroundColor: E.today?.bgColor
7262
7262
  } : void 0;
7263
- return /* @__PURE__ */ u.createElement(u.Fragment, { key: k }, /* @__PURE__ */ u.createElement("div", {
7263
+ return /* @__PURE__ */ c.createElement(c.Fragment, { key: k }, /* @__PURE__ */ c.createElement("div", {
7264
7264
  ref: y ? w : void 0,
7265
7265
  className: (0, Xe.default)(ye.dateGroup, s?.scheduleDateGroup, { [ye.noBorder]: !!l })
7266
7266
  }, N.map((O, V) => {
7267
7267
  const I = V === 0;
7268
- return /* @__PURE__ */ u.createElement("div", {
7268
+ return /* @__PURE__ */ c.createElement("div", {
7269
7269
  key: O.id || V,
7270
7270
  role: "button",
7271
7271
  tabIndex: 0,
7272
7272
  className: (0, Xe.default)(ye.eventItemContainer, s?.event),
7273
7273
  "data-testid": `${m}-${O.id}-schedule-event`,
7274
- "aria-label": ze(O, F.schedule, r, c),
7274
+ "aria-label": ze(O, W.schedule, r, u),
7275
7275
  onClick: () => n?.(O),
7276
7276
  onKeyDown: Me(() => n?.(O)),
7277
- title: ze(O, F.schedule, r, c)
7278
- }, /* @__PURE__ */ u.createElement("div", {
7277
+ title: ze(O, W.schedule, r, u)
7278
+ }, /* @__PURE__ */ c.createElement("div", {
7279
7279
  className: ye.dateInfoColumn,
7280
7280
  "data-testid": `${m}-date-info`
7281
- }, I && /* @__PURE__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement("div", {
7281
+ }, I && /* @__PURE__ */ c.createElement(c.Fragment, null, /* @__PURE__ */ c.createElement("div", {
7282
7282
  className: (0, Xe.default)(ye.dateNumber, s?.scheduleDateNumber, { [ye.today]: y }),
7283
7283
  style: S
7284
- }, A(g, x.DAY_NUMBER, c)), /* @__PURE__ */ u.createElement("div", { className: (0, Xe.default)(ye.dateSubInfo, s?.scheduleDateSubInfo) }, A(g, x.SHORT_MONTH, c).toUpperCase(), ",", " ", A(g, x.SHORT_DAY, c).toUpperCase()))), o ? o(O) : /* @__PURE__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement("div", { className: ye.dotTimeColumn }, /* @__PURE__ */ u.createElement("div", {
7284
+ }, A(g, x.DAY_NUMBER, u)), /* @__PURE__ */ c.createElement("div", { className: (0, Xe.default)(ye.dateSubInfo, s?.scheduleDateSubInfo) }, A(g, x.SHORT_MONTH, u).toUpperCase(), ",", " ", A(g, x.SHORT_DAY, u).toUpperCase()))), o ? o(O) : /* @__PURE__ */ c.createElement(c.Fragment, null, /* @__PURE__ */ c.createElement("div", { className: ye.dotTimeColumn }, /* @__PURE__ */ c.createElement("div", {
7285
7285
  className: ye.eventDot,
7286
7286
  style: { backgroundColor: O.style?.backgroundColor || z.DEFAULT_EVENT_COLOR }
7287
- }), /* @__PURE__ */ u.createElement("div", { className: (0, Xe.default)(ye.eventTime, s?.scheduleTime) }, _(O, k))), /* @__PURE__ */ u.createElement("div", {
7287
+ }), /* @__PURE__ */ c.createElement("div", { className: (0, Xe.default)(ye.eventTime, s?.scheduleTime) }, _(O, k))), /* @__PURE__ */ c.createElement("div", {
7288
7288
  className: (0, Xe.default)(ye.eventTitleColumn, s?.scheduleTitle),
7289
7289
  style: {
7290
7290
  ...O.style,
@@ -7309,45 +7309,45 @@ var Se = {
7309
7309
  dayColumn: ru
7310
7310
  }, Ft = /* @__PURE__ */ ce(ue(), 1);
7311
7311
  function au(t) {
7312
- const { events: e, onEventClick: n, dayType: r, is12Hour: a, theme: s, classNames: i, showCurrentTime: o, maxEvents: l, autoScrollToCurrentTime: c, minHour: m, maxHour: v, customDays: w = 3, renderEvent: d, renderHourCell: f, renderDateCell: _, showAllDayRow: p, eventOverlapOffset: k, enableEnrichedEvents: b, enrichedEventsByDate: C, eventsAreSorted: N, isEventOrderingEnabled: g, locale: h, creatable: y, onSlotClick: E } = We(t), S = Re(null), { state: O, testId: V, colorScheme: I } = de(), { selectedDate: $ } = O, H = me(() => Array.from({ length: w }, (J, X) => $.plus({ days: X })), [$, w]), q = Zn(e, H, m, v, p, k, {
7312
+ const { events: e, onEventClick: n, dayType: r, is12Hour: a, theme: s, classNames: i, showCurrentTime: o, maxEvents: l, autoScrollToCurrentTime: u, minHour: m, maxHour: v, customDays: w = 3, renderEvent: d, renderHourCell: f, renderDateCell: _, showAllDayRow: p, eventOverlapOffset: k, enableEnrichedEvents: b, enrichedEventsByDate: C, eventsAreSorted: N, isEventOrderingEnabled: g, locale: h, creatable: y, onSlotClick: E } = We(t), S = Re(null), { state: O, testId: V, colorScheme: I } = de(), { selectedDate: $ } = O, H = me(() => Array.from({ length: w }, (J, Q) => $.plus({ days: Q })), [$, w]), q = Zn(e, H, m, v, p, k, {
7313
7313
  enableEnrichedEvents: b,
7314
7314
  enrichedEventsByDate: C,
7315
7315
  eventsAreSorted: N,
7316
7316
  isEventOrderingEnabled: g
7317
7317
  }), B = me(() => {
7318
7318
  const J = T();
7319
- return H.some((X) => J.hasSame(X, "day"));
7319
+ return H.some((Q) => J.hasSame(Q, "day"));
7320
7320
  }, [H]);
7321
7321
  return le(() => {
7322
- if (c && S.current && B) {
7323
- const J = T(), X = J.hour, R = J.minute, W = X * Z.MINUTES_IN_HOUR + R, U = S.current, L = Math.max(0, W - U.clientHeight / 2);
7322
+ if (u && S.current && B) {
7323
+ const J = T(), Q = J.hour, R = J.minute, F = Q * Z.MINUTES_IN_HOUR + R, U = S.current, L = Math.max(0, F - U.clientHeight / 2);
7324
7324
  U.scrollTo({
7325
7325
  top: L,
7326
7326
  behavior: "smooth"
7327
7327
  });
7328
7328
  }
7329
- }, [c, B]), /* @__PURE__ */ u.createElement("div", {
7329
+ }, [u, B]), /* @__PURE__ */ c.createElement("div", {
7330
7330
  role: "region",
7331
7331
  "aria-label": `${w} days view`,
7332
7332
  className: Se.customView,
7333
7333
  ref: S,
7334
7334
  "data-testid": `${V}-custom-days-view`
7335
- }, /* @__PURE__ */ u.createElement("div", { className: Se.stickyTopContainer }, /* @__PURE__ */ u.createElement("div", { className: Se.customHeader }, /* @__PURE__ */ u.createElement("div", { className: Se.timeHeaderSpacer }), H.map((J, X) => {
7336
- const R = T().hasSame(J, "day"), W = Mt(s, I), U = R ? {
7337
- color: W.today?.color,
7338
- backgroundColor: W.today?.bgColor
7335
+ }, /* @__PURE__ */ c.createElement("div", { className: Se.stickyTopContainer }, /* @__PURE__ */ c.createElement("div", { className: Se.customHeader }, /* @__PURE__ */ c.createElement("div", { className: Se.timeHeaderSpacer }), H.map((J, Q) => {
7336
+ const R = T().hasSame(J, "day"), F = Mt(s, I), U = R ? {
7337
+ color: F.today?.color,
7338
+ backgroundColor: F.today?.bgColor
7339
7339
  } : void 0;
7340
- return _ ? _({
7340
+ return _ ? /* @__PURE__ */ c.createElement(c.Fragment, { key: Q }, _({
7341
7341
  date: J.toJSDate(),
7342
7342
  isToday: R
7343
- }) : /* @__PURE__ */ u.createElement("div", {
7344
- key: X,
7343
+ })) : /* @__PURE__ */ c.createElement("div", {
7344
+ key: Q,
7345
7345
  className: (0, Ft.default)(Se.dayHeader, i?.dayHeader)
7346
- }, /* @__PURE__ */ u.createElement("div", { className: (0, Ft.default)(Se.dayName, i?.dayName) }, rn(r, h)[St(J)]), /* @__PURE__ */ u.createElement("div", {
7346
+ }, /* @__PURE__ */ c.createElement("div", { className: (0, Ft.default)(Se.dayName, i?.dayName) }, rn(r, h)[St(J)]), /* @__PURE__ */ c.createElement("div", {
7347
7347
  className: (0, Ft.default)(Se.dayNumber, i?.dayNumber, { [Se.today]: R }),
7348
7348
  style: U
7349
7349
  }, A(J, x.DAY_NUMBER, h)));
7350
- })), p && /* @__PURE__ */ u.createElement(zn, {
7350
+ })), p && /* @__PURE__ */ c.createElement(zn, {
7351
7351
  days: H,
7352
7352
  events: e || [],
7353
7353
  maxEvents: l,
@@ -7356,20 +7356,20 @@ function au(t) {
7356
7356
  is12Hour: a,
7357
7357
  renderEvent: d,
7358
7358
  locale: h
7359
- })), /* @__PURE__ */ u.createElement("div", { className: Se.timeGrid }, /* @__PURE__ */ u.createElement(Pn, {
7359
+ })), /* @__PURE__ */ c.createElement("div", { className: Se.timeGrid }, /* @__PURE__ */ c.createElement(Pn, {
7360
7360
  is12Hour: a,
7361
7361
  classNames: i,
7362
7362
  minHour: m,
7363
7363
  maxHour: v,
7364
7364
  locale: h
7365
- }), /* @__PURE__ */ u.createElement("div", { className: Se.eventsGrid }, H.map((J, X) => {
7365
+ }), /* @__PURE__ */ c.createElement("div", { className: Se.eventsGrid }, H.map((J, Q) => {
7366
7366
  const R = T().hasSame(J, "day");
7367
- return /* @__PURE__ */ u.createElement("div", {
7368
- key: X,
7367
+ return /* @__PURE__ */ c.createElement("div", {
7368
+ key: Q,
7369
7369
  className: (0, Ft.default)(Se.dayColumn, i?.dayColumn),
7370
7370
  "data-testid": `${V}-day-column`
7371
- }, /* @__PURE__ */ u.createElement(Gn, {
7372
- dayEvents: q[X],
7371
+ }, /* @__PURE__ */ c.createElement(Gn, {
7372
+ dayEvents: q[Q],
7373
7373
  date: J,
7374
7374
  onEventClick: n,
7375
7375
  is12Hour: a,
@@ -7403,36 +7403,36 @@ var ne = {
7403
7403
  };
7404
7404
  function Hr() {
7405
7405
  const e = Z.DAYS_IN_WEEK;
7406
- return /* @__PURE__ */ u.createElement("div", {
7406
+ return /* @__PURE__ */ c.createElement("div", {
7407
7407
  className: ne.monthSkeleton,
7408
7408
  "data-testid": "month-skeleton"
7409
- }, /* @__PURE__ */ u.createElement("table", { className: ne.table }, /* @__PURE__ */ u.createElement("thead", null, /* @__PURE__ */ u.createElement("tr", null, Array.from({ length: e }, (n, r) => /* @__PURE__ */ u.createElement("th", {
7409
+ }, /* @__PURE__ */ c.createElement("table", { className: ne.table }, /* @__PURE__ */ c.createElement("thead", null, /* @__PURE__ */ c.createElement("tr", null, Array.from({ length: e }, (n, r) => /* @__PURE__ */ c.createElement("th", {
7410
7410
  key: r,
7411
7411
  className: ne.headerCell
7412
- }, /* @__PURE__ */ u.createElement("div", {
7412
+ }, /* @__PURE__ */ c.createElement("div", {
7413
7413
  className: ne.shimmer,
7414
7414
  style: {
7415
7415
  width: "60%",
7416
7416
  height: "14px"
7417
7417
  }
7418
- }))))), /* @__PURE__ */ u.createElement("tbody", null, Array.from({ length: 5 }, (n, r) => /* @__PURE__ */ u.createElement("tr", { key: r }, Array.from({ length: e }, (a, s) => /* @__PURE__ */ u.createElement("td", {
7418
+ }))))), /* @__PURE__ */ c.createElement("tbody", null, Array.from({ length: 5 }, (n, r) => /* @__PURE__ */ c.createElement("tr", { key: r }, Array.from({ length: e }, (a, s) => /* @__PURE__ */ c.createElement("td", {
7419
7419
  key: s,
7420
7420
  className: ne.cell
7421
- }, /* @__PURE__ */ u.createElement("div", {
7421
+ }, /* @__PURE__ */ c.createElement("div", {
7422
7422
  className: ne.shimmer,
7423
7423
  style: {
7424
7424
  width: "20px",
7425
7425
  height: "14px",
7426
7426
  marginBottom: "4px"
7427
7427
  }
7428
- }), /* @__PURE__ */ u.createElement("div", {
7428
+ }), /* @__PURE__ */ c.createElement("div", {
7429
7429
  className: ne.shimmer,
7430
7430
  style: {
7431
7431
  width: "80%",
7432
7432
  height: "16px",
7433
7433
  marginBottom: "3px"
7434
7434
  }
7435
- }), (r + s) % 3 !== 0 && /* @__PURE__ */ u.createElement("div", {
7435
+ }), (r + s) % 3 !== 0 && /* @__PURE__ */ c.createElement("div", {
7436
7436
  className: ne.shimmer,
7437
7437
  style: {
7438
7438
  width: "60%",
@@ -7458,20 +7458,20 @@ var gu = [
7458
7458
  }
7459
7459
  ];
7460
7460
  function Eu() {
7461
- return /* @__PURE__ */ u.createElement("div", {
7461
+ return /* @__PURE__ */ c.createElement("div", {
7462
7462
  className: ne.timeGridSkeleton,
7463
7463
  "data-testid": "time-grid-skeleton"
7464
- }, /* @__PURE__ */ u.createElement("div", { className: ne.timeColumn }, Array.from({ length: 8 }, (t, e) => /* @__PURE__ */ u.createElement("div", {
7464
+ }, /* @__PURE__ */ c.createElement("div", { className: ne.timeColumn }, Array.from({ length: 8 }, (t, e) => /* @__PURE__ */ c.createElement("div", {
7465
7465
  key: e,
7466
7466
  className: ne.timeSlot,
7467
7467
  "data-testid": "time-slot"
7468
- }, /* @__PURE__ */ u.createElement("div", {
7468
+ }, /* @__PURE__ */ c.createElement("div", {
7469
7469
  className: ne.shimmer,
7470
7470
  style: {
7471
7471
  width: "40px",
7472
7472
  height: "12px"
7473
7473
  }
7474
- })))), /* @__PURE__ */ u.createElement("div", { className: ne.eventsArea }, gu.map((t, e) => /* @__PURE__ */ u.createElement("div", {
7474
+ })))), /* @__PURE__ */ c.createElement("div", { className: ne.eventsArea }, gu.map((t, e) => /* @__PURE__ */ c.createElement("div", {
7475
7475
  key: e,
7476
7476
  "data-testid": "event-bar",
7477
7477
  className: ne.shimmer,
@@ -7485,14 +7485,14 @@ function Eu() {
7485
7485
  }))));
7486
7486
  }
7487
7487
  function pu() {
7488
- return /* @__PURE__ */ u.createElement("div", {
7488
+ return /* @__PURE__ */ c.createElement("div", {
7489
7489
  className: ne.scheduleSkeleton,
7490
7490
  "data-testid": "schedule-skeleton"
7491
- }, Array.from({ length: 4 }, (t, e) => /* @__PURE__ */ u.createElement("div", {
7491
+ }, Array.from({ length: 4 }, (t, e) => /* @__PURE__ */ c.createElement("div", {
7492
7492
  key: e,
7493
7493
  className: ne.scheduleRow,
7494
7494
  "data-testid": "schedule-skeleton-row"
7495
- }, /* @__PURE__ */ u.createElement("div", {
7495
+ }, /* @__PURE__ */ c.createElement("div", {
7496
7496
  "data-testid": "skeleton-circle",
7497
7497
  className: ne.shimmer,
7498
7498
  style: {
@@ -7501,14 +7501,14 @@ function pu() {
7501
7501
  borderRadius: "50%",
7502
7502
  flexShrink: 0
7503
7503
  }
7504
- }), /* @__PURE__ */ u.createElement("div", { className: ne.scheduleLines }, /* @__PURE__ */ u.createElement("div", {
7504
+ }), /* @__PURE__ */ c.createElement("div", { className: ne.scheduleLines }, /* @__PURE__ */ c.createElement("div", {
7505
7505
  "data-testid": "skeleton-line",
7506
7506
  className: ne.shimmer,
7507
7507
  style: {
7508
7508
  width: "70%",
7509
7509
  height: "14px"
7510
7510
  }
7511
- }), /* @__PURE__ */ u.createElement("div", {
7511
+ }), /* @__PURE__ */ c.createElement("div", {
7512
7512
  "data-testid": "skeleton-line",
7513
7513
  className: ne.shimmer,
7514
7514
  style: {
@@ -7534,34 +7534,34 @@ function Xa(t) {
7534
7534
  }
7535
7535
  i.current = e;
7536
7536
  }, [e]);
7537
- const c = !n || n.length === 0;
7538
- if (e && c) {
7539
- if (r) return /* @__PURE__ */ u.createElement("div", { className: Wt.viewBody }, r());
7537
+ const u = !n || n.length === 0;
7538
+ if (e && u) {
7539
+ if (r) return /* @__PURE__ */ c.createElement("div", { className: Wt.viewBody }, r());
7540
7540
  switch (a) {
7541
- case F.month:
7542
- return /* @__PURE__ */ u.createElement(Hr, null);
7543
- case F.day:
7544
- case F.week:
7545
- case F.customDays:
7546
- return /* @__PURE__ */ u.createElement(Eu, null);
7547
- case F.schedule:
7548
- return /* @__PURE__ */ u.createElement(pu, null);
7541
+ case W.month:
7542
+ return /* @__PURE__ */ c.createElement(Hr, null);
7543
+ case W.day:
7544
+ case W.week:
7545
+ case W.customDays:
7546
+ return /* @__PURE__ */ c.createElement(Eu, null);
7547
+ case W.schedule:
7548
+ return /* @__PURE__ */ c.createElement(pu, null);
7549
7549
  default:
7550
- return /* @__PURE__ */ u.createElement(Hr, null);
7550
+ return /* @__PURE__ */ c.createElement(Hr, null);
7551
7551
  }
7552
7552
  }
7553
7553
  const m = () => {
7554
7554
  switch (a) {
7555
- case F.day:
7556
- return /* @__PURE__ */ u.createElement(Ba, t);
7557
- case F.week:
7558
- return /* @__PURE__ */ u.createElement(Ja, t);
7559
- case F.month:
7560
- return /* @__PURE__ */ u.createElement(ja, t);
7561
- case F.schedule:
7562
- return /* @__PURE__ */ u.createElement(Ka, t);
7563
- case F.customDays:
7564
- return !s || s < 1 || s > 10 ? null : /* @__PURE__ */ u.createElement(Qa, {
7555
+ case W.day:
7556
+ return /* @__PURE__ */ c.createElement(Ba, t);
7557
+ case W.week:
7558
+ return /* @__PURE__ */ c.createElement(Ja, t);
7559
+ case W.month:
7560
+ return /* @__PURE__ */ c.createElement(ja, t);
7561
+ case W.schedule:
7562
+ return /* @__PURE__ */ c.createElement(Ka, t);
7563
+ case W.customDays:
7564
+ return !s || s < 1 || s > 10 ? null : /* @__PURE__ */ c.createElement(Qa, {
7565
7565
  ...t,
7566
7566
  customDays: s
7567
7567
  });
@@ -7569,12 +7569,12 @@ function Xa(t) {
7569
7569
  return null;
7570
7570
  }
7571
7571
  };
7572
- if (e) return /* @__PURE__ */ u.createElement("div", {
7572
+ if (e) return /* @__PURE__ */ c.createElement("div", {
7573
7573
  className: Wt.loadingOverlay,
7574
7574
  "data-testid": "calendar-loading-overlay"
7575
7575
  }, m());
7576
7576
  const v = m();
7577
- return v ? /* @__PURE__ */ u.createElement("div", { className: (0, Su.default)(Wt.views, { [Wt.fadeIn]: o }) }, v) : null;
7577
+ return v ? /* @__PURE__ */ c.createElement("div", { className: (0, Su.default)(Wt.views, { [Wt.fadeIn]: o }) }, v) : null;
7578
7578
  }
7579
7579
  function kt(t) {
7580
7580
  "@babel/helpers - typeof";
@@ -7616,11 +7616,11 @@ var bu = class extends as {
7616
7616
  componentDidCatch(t, e) {
7617
7617
  }
7618
7618
  render() {
7619
- return this.state.hasError ? /* @__PURE__ */ u.createElement("div", { "data-testid": "calendar-error-boundary" }) : this.props.children;
7619
+ return this.state.hasError ? /* @__PURE__ */ c.createElement("div", { "data-testid": "calendar-error-boundary" }) : this.props.children;
7620
7620
  }
7621
7621
  }, es = /* @__PURE__ */ ce(ue(), 1);
7622
7622
  function Iu(t) {
7623
- const { testId: e, classNames: n, renderHeader: r, width: a, height: s, onNavigate: i, onViewChange: o, direction: l, locale: c, colorScheme: m } = We(t), v = Ya(l, c), w = Yn(m), { state: { view: d, selectedDate: f }, dispatch: _ } = de();
7623
+ const { testId: e, classNames: n, renderHeader: r, width: a, height: s, onNavigate: i, onViewChange: o, direction: l, locale: u, colorScheme: m } = We(t), v = Ya(l, u), w = Yn(m), { state: { view: d, selectedDate: f }, dispatch: _ } = de();
7624
7624
  return le(() => {
7625
7625
  t.view && _({
7626
7626
  type: "SET_VIEW",
@@ -7636,7 +7636,7 @@ function Iu(t) {
7636
7636
  type: "SET_CUSTOM_DAYS",
7637
7637
  payload: t.customDays
7638
7638
  });
7639
- }, [t.customDays, _]), /* @__PURE__ */ u.createElement("section", {
7639
+ }, [t.customDays, _]), /* @__PURE__ */ c.createElement("section", {
7640
7640
  "data-testid": `${e}-container`,
7641
7641
  dir: v,
7642
7642
  "data-color-scheme": w,
@@ -7660,25 +7660,25 @@ function Iu(t) {
7660
7660
  payload: p
7661
7661
  }), o && o(p);
7662
7662
  }
7663
- }) : /* @__PURE__ */ u.createElement(qa, null), /* @__PURE__ */ u.createElement(Xa, null));
7663
+ }) : /* @__PURE__ */ c.createElement(qa, null), /* @__PURE__ */ c.createElement(Xa, null));
7664
7664
  }
7665
7665
  function Mu(t = Bn) {
7666
7666
  const e = Re(null), n = {
7667
7667
  ...Bn,
7668
7668
  ...t
7669
- }, { width: r, height: a } = Mo(e, !!n.width && !!n.height), s = n.width ?? r ?? 0, i = n.height ?? a ?? 0, o = typeof i == "number" ? i - z.HEADER_HEIGHT : `calc(${i} - ${z.HEADER_HEIGHT}px)`, l = me(() => T(t.selectedDate), [t.selectedDate]), c = Co(n.events || [], n.eventsAreSorted, n.enableEnrichedEvents, n.enrichedEventsByDate), m = Ya(n.direction, n.locale), v = Yn(n.colorScheme);
7670
- return /* @__PURE__ */ u.createElement(Bo, {
7669
+ }, { width: r, height: a } = Mo(e, !!n.width && !!n.height), s = n.width ?? r ?? 0, i = n.height ?? a ?? 0, o = typeof i == "number" ? i - z.HEADER_HEIGHT : `calc(${i} - ${z.HEADER_HEIGHT}px)`, l = me(() => T(t.selectedDate), [t.selectedDate]), u = Co(n.events || [], n.eventsAreSorted, n.enableEnrichedEvents, n.enrichedEventsByDate), m = Ya(n.direction, n.locale), v = Yn(n.colorScheme);
7670
+ return /* @__PURE__ */ c.createElement(Bo, {
7671
7671
  initialDate: l,
7672
- initialView: n.view || F.month,
7672
+ initialView: n.view || W.month,
7673
7673
  initialCustomDays: n.customDays,
7674
7674
  testId: n.testId,
7675
7675
  config: {
7676
7676
  ...n,
7677
7677
  width: s,
7678
7678
  height: o,
7679
- events: c
7679
+ events: u
7680
7680
  }
7681
- }, /* @__PURE__ */ u.createElement("div", {
7681
+ }, /* @__PURE__ */ c.createElement("div", {
7682
7682
  ref: e,
7683
7683
  "data-testid": n.children ? `${n.testId}-container` : void 0,
7684
7684
  dir: m,
@@ -7695,11 +7695,11 @@ function Mu(t = Bn) {
7695
7695
  } : void 0
7696
7696
  },
7697
7697
  className: (0, es.default)(n.children ? Ga.calendar : void 0, n.children ? n.classNames?.root : void 0)
7698
- }, /* @__PURE__ */ u.createElement(bu, null, n.children ? n.children : /* @__PURE__ */ u.createElement(Iu, {
7698
+ }, /* @__PURE__ */ c.createElement(bu, null, n.children ? n.children : /* @__PURE__ */ c.createElement(Iu, {
7699
7699
  ...n,
7700
7700
  width: s,
7701
7701
  height: o,
7702
- events: c
7702
+ events: u
7703
7703
  }))));
7704
7704
  }
7705
7705
  var Ue = is(Mu);
@@ -7714,7 +7714,7 @@ var Cu = Ue, $u = Cu;
7714
7714
  export {
7715
7715
  fe as CALENDAR_ACTIONS,
7716
7716
  Bo as CalendarProvider,
7717
- F as ECalendarViewType,
7717
+ W as ECalendarViewType,
7718
7718
  Vr as EDayType,
7719
7719
  $u as default,
7720
7720
  de as useCalendar