@gostudent/shared-ui-library 1.20.0 → 1.21.0-DT-16887.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.js CHANGED
@@ -1,4 +1,4 @@
1
- import { jsx as c, jsxs as p, Fragment as he } from "react/jsx-runtime";
1
+ import { jsx as c, jsxs as p, Fragment as de } from "react/jsx-runtime";
2
2
  import M, { useContext as Rt, createContext as jt, useCallback as F, useRef as Z, useLayoutEffect as On, useState as se, useEffect as ae, useMemo as rt, useId as Bn, forwardRef as j1 } from "react";
3
3
  import { createPortal as Ft } from "react-dom";
4
4
  function F1(e, t, n = "long") {
@@ -1579,7 +1579,7 @@ const fs = {
1579
1579
  }
1580
1580
  }
1581
1581
  };
1582
- class de {
1582
+ class ue {
1583
1583
  /**
1584
1584
  * Creates an instance of `DateLib`.
1585
1585
  *
@@ -1747,7 +1747,7 @@ class de {
1747
1747
  getMonthYearOrder() {
1748
1748
  var n;
1749
1749
  const t = (n = this.options.locale) == null ? void 0 : n.code;
1750
- return t && de.yearFirstLocales.has(t) ? "year-first" : "month-first";
1750
+ return t && ue.yearFirstLocales.has(t) ? "year-first" : "month-first";
1751
1751
  }
1752
1752
  /**
1753
1753
  * Formats the month/year pair respecting locale conventions.
@@ -1756,7 +1756,7 @@ class de {
1756
1756
  */
1757
1757
  formatMonthYear(t) {
1758
1758
  const { locale: n, timeZone: o, numerals: s } = this.options, r = n == null ? void 0 : n.code;
1759
- if (r && de.yearFirstLocales.has(r))
1759
+ if (r && ue.yearFirstLocales.has(r))
1760
1760
  try {
1761
1761
  return new Intl.DateTimeFormat(r, {
1762
1762
  month: "long",
@@ -1770,7 +1770,7 @@ class de {
1770
1770
  return this.format(t, a);
1771
1771
  }
1772
1772
  }
1773
- de.yearFirstLocales = /* @__PURE__ */ new Set([
1773
+ ue.yearFirstLocales = /* @__PURE__ */ new Set([
1774
1774
  "eu",
1775
1775
  "hu",
1776
1776
  "ja",
@@ -1789,7 +1789,7 @@ de.yearFirstLocales = /* @__PURE__ */ new Set([
1789
1789
  "zh-HK",
1790
1790
  "zh-TW"
1791
1791
  ]);
1792
- const ve = new de();
1792
+ const ve = new ue();
1793
1793
  class qn {
1794
1794
  constructor(t, n, o = ve) {
1795
1795
  this.date = t, this.displayMonth = n, this.outside = !!(n && !o.isSameMonth(t, n)), this.dateLib = o, this.isoDate = o.format(t, "yyyy-MM-dd"), this.displayMonthId = o.format(n, "yyyy-MM"), this.dateMonthId = o.format(t, "yyyy-MM");
@@ -1854,10 +1854,10 @@ var X;
1854
1854
  (function(e) {
1855
1855
  e.disabled = "disabled", e.hidden = "hidden", e.outside = "outside", e.focused = "focused", e.today = "today";
1856
1856
  })(X || (X = {}));
1857
- var ye;
1857
+ var we;
1858
1858
  (function(e) {
1859
1859
  e.range_end = "range_end", e.range_middle = "range_middle", e.range_start = "range_start", e.selected = "selected";
1860
- })(ye || (ye = {}));
1860
+ })(we || (we = {}));
1861
1861
  var le;
1862
1862
  (function(e) {
1863
1863
  e.weeks_before_enter = "weeks_before_enter", e.weeks_before_exit = "weeks_before_exit", e.weeks_after_enter = "weeks_after_enter", e.weeks_after_exit = "weeks_after_exit", e.caption_after_enter = "caption_after_enter", e.caption_after_exit = "caption_after_exit", e.caption_before_enter = "caption_before_enter", e.caption_before_exit = "caption_before_exit";
@@ -2055,11 +2055,11 @@ function Vs(e, t, n, o, s) {
2055
2055
  [X.today]: []
2056
2056
  }, S = {};
2057
2057
  for (const w of e) {
2058
- const { date: _, displayMonth: O } = w, $ = !!(O && !m(_, O)), R = !!(x && C(_, x)), L = !!(b && v(_, b)), T = !!(r && Oe(_, r, s)), j = !!(a && Oe(_, a, s)) || R || L || // Broadcast calendar will show outside days as default
2058
+ const { date: _, displayMonth: O } = w, $ = !!(O && !m(_, O)), j = !!(x && C(_, x)), L = !!(b && v(_, b)), z = !!(r && Oe(_, r, s)), R = !!(a && Oe(_, a, s)) || j || L || // Broadcast calendar will show outside days as default
2059
2059
  !d && !l && $ || d && l === !1 && $, Me = f(_, u);
2060
- $ && g.outside.push(w), T && g.disabled.push(w), j && g.hidden.push(w), Me && g.today.push(w), i && Object.keys(i).forEach((ue) => {
2061
- const Ie = i == null ? void 0 : i[ue];
2062
- Ie && Oe(_, Ie, s) && (S[ue] ? S[ue].push(w) : S[ue] = [w]);
2060
+ $ && g.outside.push(w), z && g.disabled.push(w), R && g.hidden.push(w), Me && g.today.push(w), i && Object.keys(i).forEach((fe) => {
2061
+ const Ie = i == null ? void 0 : i[fe];
2062
+ Ie && Oe(_, Ie, s) && (S[fe] ? S[fe].push(w) : S[fe] = [w]);
2063
2063
  });
2064
2064
  }
2065
2065
  return (w) => {
@@ -2071,11 +2071,11 @@ function Vs(e, t, n, o, s) {
2071
2071
  [X.today]: !1
2072
2072
  }, O = {};
2073
2073
  for (const $ in g) {
2074
- const R = g[$];
2075
- _[$] = R.some((L) => L === w);
2074
+ const j = g[$];
2075
+ _[$] = j.some((L) => L === w);
2076
2076
  }
2077
2077
  for (const $ in S)
2078
- O[$] = S[$].some((R) => R === w);
2078
+ O[$] = S[$].some((j) => j === w);
2079
2079
  return {
2080
2080
  ..._,
2081
2081
  // custom modifiers should override all the previous ones
@@ -2084,7 +2084,7 @@ function Vs(e, t, n, o, s) {
2084
2084
  };
2085
2085
  }
2086
2086
  function As(e, t, n = {}) {
2087
- return Object.entries(e).filter(([, s]) => s === !0).reduce((s, [r]) => (n[r] ? s.push(n[r]) : t[X[r]] ? s.push(t[X[r]]) : t[ye[r]] && s.push(t[ye[r]]), s), [t[N.Day]]);
2087
+ return Object.entries(e).filter(([, s]) => s === !0).reduce((s, [r]) => (n[r] ? s.push(n[r]) : t[X[r]] ? s.push(t[X[r]]) : t[we[r]] && s.push(t[we[r]]), s), [t[N.Day]]);
2088
2088
  }
2089
2089
  function Zs(e) {
2090
2090
  return {
@@ -2111,24 +2111,24 @@ function Us() {
2111
2111
  e[N[t]] = `rdp-${N[t]}`;
2112
2112
  for (const t in X)
2113
2113
  e[X[t]] = `rdp-${X[t]}`;
2114
- for (const t in ye)
2115
- e[ye[t]] = `rdp-${ye[t]}`;
2114
+ for (const t in we)
2115
+ e[we[t]] = `rdp-${we[t]}`;
2116
2116
  for (const t in le)
2117
2117
  e[le[t]] = `rdp-${le[t]}`;
2118
2118
  return e;
2119
2119
  }
2120
2120
  function Jn(e, t, n) {
2121
- return (n ?? new de(t)).formatMonthYear(e);
2121
+ return (n ?? new ue(t)).formatMonthYear(e);
2122
2122
  }
2123
2123
  const Qs = Jn;
2124
2124
  function Ks(e, t, n) {
2125
- return (n ?? new de(t)).format(e, "d");
2125
+ return (n ?? new ue(t)).format(e, "d");
2126
2126
  }
2127
2127
  function Js(e, t = ve) {
2128
2128
  return t.format(e, "LLLL");
2129
2129
  }
2130
2130
  function er(e, t, n) {
2131
- return (n ?? new de(t)).format(e, "cccccc");
2131
+ return (n ?? new ue(t)).format(e, "cccccc");
2132
2132
  }
2133
2133
  function tr(e, t = ve) {
2134
2134
  return e < 10 ? t.formatNumber(`0${e.toLocaleString()}`) : t.formatNumber(`${e.toLocaleString()}`);
@@ -2158,16 +2158,16 @@ function rr(e) {
2158
2158
  };
2159
2159
  }
2160
2160
  function Qt(e, t, n, o) {
2161
- let s = (o ?? new de(n)).format(e, "PPPP");
2161
+ let s = (o ?? new ue(n)).format(e, "PPPP");
2162
2162
  return t.today && (s = `Today, ${s}`), t.selected && (s = `${s}, selected`), s;
2163
2163
  }
2164
2164
  const ar = Qt;
2165
2165
  function Kt(e, t, n) {
2166
- return (n ?? new de(t)).formatMonthYear(e);
2166
+ return (n ?? new ue(t)).formatMonthYear(e);
2167
2167
  }
2168
2168
  const ir = Kt;
2169
2169
  function t1(e, t, n, o) {
2170
- let s = (o ?? new de(n)).format(e, "PPPP");
2170
+ let s = (o ?? new ue(n)).format(e, "PPPP");
2171
2171
  return t != null && t.today && (s = `Today, ${s}`), s;
2172
2172
  }
2173
2173
  function n1(e) {
@@ -2184,7 +2184,7 @@ function r1(e) {
2184
2184
  return "Go to the Previous Month";
2185
2185
  }
2186
2186
  function a1(e, t, n) {
2187
- return (n ?? new de(t)).format(e, "cccc");
2187
+ return (n ?? new ue(t)).format(e, "cccc");
2188
2188
  }
2189
2189
  function i1(e, t) {
2190
2190
  return `Week ${e}`;
@@ -2408,26 +2408,26 @@ function yr(e, t, { classNames: n, months: o, focused: s, dateLib: r }) {
2408
2408
  l.current = !1, e.current && (e.current.style.isolation = ""), b && (b.style.zIndex = ""), _ && _.classList.remove(m), O && O.classList.remove(h), g.style.position = "", g.style.overflow = "", g.contains(w) && g.removeChild(w);
2409
2409
  };
2410
2410
  w.style.pointerEvents = "none", w.style.position = "absolute", w.style.overflow = "hidden", w.setAttribute("aria-hidden", "true");
2411
- const R = gr(w);
2412
- R && (R.style.opacity = "0");
2411
+ const j = gr(w);
2412
+ j && (j.style.opacity = "0");
2413
2413
  const L = zt(w);
2414
2414
  L && (L.classList.add(f ? n[le.caption_before_exit] : n[le.caption_after_exit]), L.addEventListener("animationend", $));
2415
- const T = Wt(w);
2416
- T && T.classList.add(f ? n[le.weeks_before_exit] : n[le.weeks_after_exit]), g.insertBefore(w, g.firstChild);
2415
+ const z = Wt(w);
2416
+ z && z.classList.add(f ? n[le.weeks_before_exit] : n[le.weeks_after_exit]), g.insertBefore(w, g.firstChild);
2417
2417
  });
2418
2418
  }
2419
2419
  });
2420
2420
  }
2421
2421
  function wr(e, t, n, o) {
2422
- const s = e[0], r = e[e.length - 1], { ISOWeek: a, fixedWeeks: i, broadcastCalendar: l } = n ?? {}, { addDays: d, differenceInCalendarDays: u, differenceInCalendarMonths: f, endOfBroadcastWeek: m, endOfISOWeek: h, endOfMonth: C, endOfWeek: k, isAfter: v, startOfBroadcastWeek: x, startOfISOWeek: b, startOfWeek: g } = o, S = l ? x(s, o) : a ? b(s) : g(s), w = l ? m(r) : a ? h(C(r)) : k(C(r)), _ = t && (l ? m(t) : a ? h(t) : k(t)), O = _ && v(w, _) ? _ : w, $ = u(O, S), R = f(r, s) + 1, L = [];
2422
+ const s = e[0], r = e[e.length - 1], { ISOWeek: a, fixedWeeks: i, broadcastCalendar: l } = n ?? {}, { addDays: d, differenceInCalendarDays: u, differenceInCalendarMonths: f, endOfBroadcastWeek: m, endOfISOWeek: h, endOfMonth: C, endOfWeek: k, isAfter: v, startOfBroadcastWeek: x, startOfISOWeek: b, startOfWeek: g } = o, S = l ? x(s, o) : a ? b(s) : g(s), w = l ? m(r) : a ? h(C(r)) : k(C(r)), _ = t && (l ? m(t) : a ? h(t) : k(t)), O = _ && v(w, _) ? _ : w, $ = u(O, S), j = f(r, s) + 1, L = [];
2423
2423
  for (let Me = 0; Me <= $; Me++) {
2424
- const ue = d(S, Me);
2425
- L.push(ue);
2424
+ const fe = d(S, Me);
2425
+ L.push(fe);
2426
2426
  }
2427
- const j = (l ? 35 : 42) * R;
2428
- if (i && L.length < j) {
2429
- const Me = j - L.length;
2430
- for (let ue = 0; ue < Me; ue++) {
2427
+ const R = (l ? 35 : 42) * j;
2428
+ if (i && L.length < R) {
2429
+ const Me = R - L.length;
2430
+ for (let fe = 0; fe < Me; fe++) {
2431
2431
  const Ie = d(L[L.length - 1], 1);
2432
2432
  L.push(Ie);
2433
2433
  }
@@ -2466,14 +2466,14 @@ function vr(e, t, n, o) {
2466
2466
  const x = n.broadcastCalendar ? f(v, o) : n.ISOWeek ? m(v) : h(v), b = n.broadcastCalendar ? r(v) : n.ISOWeek ? a(i(v)) : l(i(v)), g = t.filter((O) => O >= x && O <= b), S = n.broadcastCalendar ? 35 : 42;
2467
2467
  if (n.fixedWeeks && g.length < S) {
2468
2468
  const O = t.filter(($) => {
2469
- const R = S - g.length;
2470
- return $ > b && $ <= s(b, R);
2469
+ const j = S - g.length;
2470
+ return $ > b && $ <= s(b, j);
2471
2471
  });
2472
2472
  g.push(...O);
2473
2473
  }
2474
2474
  const w = g.reduce((O, $) => {
2475
- const R = n.ISOWeek ? d($) : u($), L = O.find((j) => j.weekNumber === R), T = new qn($, v, o);
2476
- return L ? L.days.push(T) : O.push(new gs(R, [T])), O;
2475
+ const j = n.ISOWeek ? d($) : u($), L = O.find((R) => R.weekNumber === j), z = new qn($, v, o);
2476
+ return L ? L.days.push(z) : O.push(new gs(j, [z])), O;
2477
2477
  }, []), _ = new ps(v, w);
2478
2478
  return k.push(_), k;
2479
2479
  }, []);
@@ -2536,13 +2536,13 @@ function Dr(e, t) {
2536
2536
  fixedWeeks: e.fixedWeeks,
2537
2537
  ISOWeek: e.ISOWeek,
2538
2538
  reverseMonths: e.reverseMonths
2539
- }, t), $ = Nr(O), R = br(O), L = Sr(i, n, e, t), T = xr(i, o, e, t);
2539
+ }, t), $ = Nr(O), j = br(O), L = Sr(i, n, e, t), z = xr(i, o, e, t);
2540
2540
  return {
2541
2541
  months: O,
2542
2542
  weeks: $,
2543
- days: R,
2543
+ days: j,
2544
2544
  previousMonth: L,
2545
- nextMonth: T
2545
+ nextMonth: z
2546
2546
  };
2547
2547
  }, [
2548
2548
  t,
@@ -2577,10 +2577,10 @@ function Dr(e, t) {
2577
2577
  }
2578
2578
  };
2579
2579
  }
2580
- var we;
2580
+ var be;
2581
2581
  (function(e) {
2582
2582
  e[e.Today = 0] = "Today", e[e.Selected = 1] = "Selected", e[e.LastFocused = 2] = "LastFocused", e[e.FocusedModifier = 3] = "FocusedModifier";
2583
- })(we || (we = {}));
2583
+ })(be || (be = {}));
2584
2584
  function yn(e) {
2585
2585
  return !e[X.disabled] && !e[X.hidden] && !e[X.outside];
2586
2586
  }
@@ -2588,7 +2588,7 @@ function Or(e, t, n, o) {
2588
2588
  let s, r = -1;
2589
2589
  for (const a of e) {
2590
2590
  const i = t(a);
2591
- yn(i) && (i[X.focused] && r < we.FocusedModifier ? (s = a, r = we.FocusedModifier) : o != null && o.isEqualTo(a) && r < we.LastFocused ? (s = a, r = we.LastFocused) : n(a.date) && r < we.Selected ? (s = a, r = we.Selected) : i[X.today] && r < we.Today && (s = a, r = we.Today));
2591
+ yn(i) && (i[X.focused] && r < be.FocusedModifier ? (s = a, r = be.FocusedModifier) : o != null && o.isEqualTo(a) && r < be.LastFocused ? (s = a, r = be.LastFocused) : n(a.date) && r < be.Selected ? (s = a, r = be.Selected) : i[X.today] && r < be.Today && (s = a, r = be.Today));
2592
2592
  }
2593
2593
  return s || (s = e.find((a) => yn(t(a)))), s;
2594
2594
  }
@@ -2745,17 +2745,17 @@ function Er(e, t) {
2745
2745
  return;
2746
2746
  }
2747
2747
  }
2748
- function fe(e, t) {
2748
+ function me(e, t) {
2749
2749
  return e instanceof te && e.timeZone === t ? e : new te(e, t);
2750
2750
  }
2751
2751
  function Ye(e, t, n) {
2752
- return fe(e, t);
2752
+ return me(e, t);
2753
2753
  }
2754
2754
  function bn(e, t, n) {
2755
2755
  return typeof e == "boolean" || typeof e == "function" ? e : e instanceof Date ? Ye(e, t) : Array.isArray(e) ? e.map((o) => o instanceof Date ? Ye(o, t) : o) : yt(e) ? {
2756
2756
  ...e,
2757
- from: e.from ? fe(e.from, t) : e.from,
2758
- to: e.to ? fe(e.to, t) : e.to
2757
+ from: e.from ? me(e.from, t) : e.from,
2758
+ to: e.to ? me(e.to, t) : e.to
2759
2759
  } : Zt(e) ? {
2760
2760
  before: Ye(e.before, t),
2761
2761
  after: Ye(e.after, t)
@@ -2775,9 +2775,9 @@ function Ir(e) {
2775
2775
  if (n && (t = {
2776
2776
  ...e,
2777
2777
  timeZone: n
2778
- }, t.today && (t.today = fe(t.today, n)), t.month && (t.month = fe(t.month, n)), t.defaultMonth && (t.defaultMonth = fe(t.defaultMonth, n)), t.startMonth && (t.startMonth = fe(t.startMonth, n)), t.endMonth && (t.endMonth = fe(t.endMonth, n)), t.mode === "single" && t.selected ? t.selected = fe(t.selected, n) : t.mode === "multiple" && t.selected ? t.selected = (cn = t.selected) == null ? void 0 : cn.map((B) => fe(B, n)) : t.mode === "range" && t.selected && (t.selected = {
2779
- from: t.selected.from ? fe(t.selected.from, n) : t.selected.from,
2780
- to: t.selected.to ? fe(t.selected.to, n) : t.selected.to
2778
+ }, t.today && (t.today = me(t.today, n)), t.month && (t.month = me(t.month, n)), t.defaultMonth && (t.defaultMonth = me(t.defaultMonth, n)), t.startMonth && (t.startMonth = me(t.startMonth, n)), t.endMonth && (t.endMonth = me(t.endMonth, n)), t.mode === "single" && t.selected ? t.selected = me(t.selected, n) : t.mode === "multiple" && t.selected ? t.selected = (cn = t.selected) == null ? void 0 : cn.map((B) => me(B, n)) : t.mode === "range" && t.selected && (t.selected = {
2779
+ from: t.selected.from ? me(t.selected.from, n) : t.selected.from,
2780
+ to: t.selected.to ? me(t.selected.to, n) : t.selected.to
2781
2781
  }), t.disabled !== void 0 && (t.disabled = Tt(t.disabled, n)), t.hidden !== void 0 && (t.hidden = Tt(t.hidden, n)), t.modifiers)) {
2782
2782
  const B = {};
2783
2783
  Object.keys(t.modifiers).forEach((H) => {
@@ -2789,7 +2789,7 @@ function Ir(e) {
2789
2789
  const B = { ...Zn, ...t.locale }, H = t.broadcastCalendar ? 1 : t.weekStartsOn, D = t.noonSafe && t.timeZone ? hr(t.timeZone, {
2790
2790
  weekStartsOn: H,
2791
2791
  locale: B
2792
- }) : void 0, G = t.dateLib && D ? { ...D, ...t.dateLib } : t.dateLib ?? D, ie = new de({
2792
+ }) : void 0, G = t.dateLib && D ? { ...D, ...t.dateLib } : t.dateLib ?? D, ie = new ue({
2793
2793
  locale: B,
2794
2794
  weekStartsOn: H,
2795
2795
  firstWeekContainsDate: t.firstWeekContainsDate,
@@ -2823,7 +2823,7 @@ function Ir(e) {
2823
2823
  t.classNames
2824
2824
  ]);
2825
2825
  t.today || (t = { ...t, today: a.today() });
2826
- const { captionLayout: d, mode: u, navLayout: f, numberOfMonths: m = 1, onDayBlur: h, onDayClick: C, onDayFocus: k, onDayKeyDown: v, onDayMouseEnter: x, onDayMouseLeave: b, onNextClick: g, onPrevClick: S, showWeekNumber: w, styles: _ } = t, { formatCaption: O, formatDay: $, formatMonthDropdown: R, formatWeekNumber: L, formatWeekNumberHeader: T, formatWeekdayName: j, formatYearDropdown: Me } = s, ue = Dr(t, a), { days: Ie, months: ut, navStart: kt, navEnd: vt, previousMonth: Ce, nextMonth: pe, goToMonth: xe } = ue, Mt = Vs(Ie, t, kt, vt, a), { isSelected: Qe, select: Ke, selected: ft } = Er(t, a) ?? {}, { blur: nn, focused: mt, isFocusTarget: C1, moveFocus: on, setFocused: _t } = zr(t, ue, Mt, Qe ?? (() => !1), a), { labelDayButton: p1, labelGridcell: g1, labelGrid: y1, labelMonthDropdown: w1, labelNav: sn, labelPrevious: b1, labelNext: k1, labelWeekday: v1, labelWeekNumber: M1, labelWeekNumberHeader: x1, labelYearDropdown: S1 } = r, N1 = rt(() => mr(a, t.ISOWeek, t.broadcastCalendar, t.today), [a, t.ISOWeek, t.broadcastCalendar, t.today]), rn = u !== void 0 || C !== void 0, xt = F(() => {
2826
+ const { captionLayout: d, mode: u, navLayout: f, numberOfMonths: m = 1, onDayBlur: h, onDayClick: C, onDayFocus: k, onDayKeyDown: v, onDayMouseEnter: x, onDayMouseLeave: b, onNextClick: g, onPrevClick: S, showWeekNumber: w, styles: _ } = t, { formatCaption: O, formatDay: $, formatMonthDropdown: j, formatWeekNumber: L, formatWeekNumberHeader: z, formatWeekdayName: R, formatYearDropdown: Me } = s, fe = Dr(t, a), { days: Ie, months: ut, navStart: kt, navEnd: vt, previousMonth: Ce, nextMonth: pe, goToMonth: xe } = fe, Mt = Vs(Ie, t, kt, vt, a), { isSelected: Qe, select: Ke, selected: ft } = Er(t, a) ?? {}, { blur: nn, focused: mt, isFocusTarget: C1, moveFocus: on, setFocused: _t } = zr(t, fe, Mt, Qe ?? (() => !1), a), { labelDayButton: p1, labelGridcell: g1, labelGrid: y1, labelMonthDropdown: w1, labelNav: sn, labelPrevious: b1, labelNext: k1, labelWeekday: v1, labelWeekNumber: M1, labelWeekNumberHeader: x1, labelYearDropdown: S1 } = r, N1 = rt(() => mr(a, t.ISOWeek, t.broadcastCalendar, t.today), [a, t.ISOWeek, t.broadcastCalendar, t.today]), rn = u !== void 0 || C !== void 0, xt = F(() => {
2827
2827
  Ce && (xe(Ce), S == null || S(Ce));
2828
2828
  }, [Ce, xe, S]), St = F(() => {
2829
2829
  pe && (xe(pe), g == null || g(pe));
@@ -2852,8 +2852,8 @@ function Ir(e) {
2852
2852
  };
2853
2853
  if (G[D.key]) {
2854
2854
  D.preventDefault(), D.stopPropagation();
2855
- const [ie, W] = G[D.key];
2856
- on(ie, W);
2855
+ const [ie, T] = G[D.key];
2856
+ on(ie, T);
2857
2857
  }
2858
2858
  v == null || v(B.date, H, D);
2859
2859
  }, [on, v, t.dir]), W1 = F((B, H) => (D) => {
@@ -2922,7 +2922,7 @@ function Ir(e) {
2922
2922
  o.DropdownNav,
2923
2923
  { className: l[N.Dropdowns], style: _ == null ? void 0 : _[N.Dropdowns] },
2924
2924
  (() => {
2925
- const D = d === "dropdown" || d === "dropdown-months" ? M.createElement(o.MonthsDropdown, { key: "month", className: l[N.MonthsDropdown], "aria-label": w1(), classNames: l, components: o, disabled: !!t.disableNavigation, onChange: G1(B.date), options: ur(B.date, kt, vt, s, a), style: _ == null ? void 0 : _[N.Dropdown], value: a.getMonth(B.date) }) : M.createElement("span", { key: "month" }, R(B.date, a)), G = d === "dropdown" || d === "dropdown-years" ? M.createElement(o.YearsDropdown, { key: "year", className: l[N.YearsDropdown], "aria-label": S1(a.options), classNames: l, components: o, disabled: !!t.disableNavigation, onChange: $1(B.date), options: _r(kt, vt, s, a, !!t.reverseYears), style: _ == null ? void 0 : _[N.Dropdown], value: a.getYear(B.date) }) : M.createElement("span", { key: "year" }, Me(B.date, a));
2925
+ const D = d === "dropdown" || d === "dropdown-months" ? M.createElement(o.MonthsDropdown, { key: "month", className: l[N.MonthsDropdown], "aria-label": w1(), classNames: l, components: o, disabled: !!t.disableNavigation, onChange: G1(B.date), options: ur(B.date, kt, vt, s, a), style: _ == null ? void 0 : _[N.Dropdown], value: a.getMonth(B.date) }) : M.createElement("span", { key: "month" }, j(B.date, a)), G = d === "dropdown" || d === "dropdown-years" ? M.createElement(o.YearsDropdown, { key: "year", className: l[N.YearsDropdown], "aria-label": S1(a.options), classNames: l, components: o, disabled: !!t.disableNavigation, onChange: $1(B.date), options: _r(kt, vt, s, a, !!t.reverseYears), style: _ == null ? void 0 : _[N.Dropdown], value: a.getYear(B.date) }) : M.createElement("span", { key: "year" }, Me(B.date, a));
2926
2926
  return a.getMonthYearOrder() === "year-first" ? [G, D] : [D, G];
2927
2927
  })(),
2928
2928
  M.createElement("span", { role: "status", "aria-live": "polite", style: {
@@ -2950,8 +2950,8 @@ function Ir(e) {
2950
2950
  !t.hideWeekdays && M.createElement(
2951
2951
  o.Weekdays,
2952
2952
  { "data-animated-weekdays": t.animate ? "true" : void 0, className: l[N.Weekdays], style: _ == null ? void 0 : _[N.Weekdays] },
2953
- w && M.createElement(o.WeekNumberHeader, { "aria-label": x1(a.options), className: l[N.WeekNumberHeader], style: _ == null ? void 0 : _[N.WeekNumberHeader], scope: "col" }, T()),
2954
- N1.map((D) => M.createElement(o.Weekday, { "aria-label": v1(D, a.options, a), className: l[N.Weekday], key: String(D), style: _ == null ? void 0 : _[N.Weekday], scope: "col" }, j(D, a.options, a)))
2953
+ w && M.createElement(o.WeekNumberHeader, { "aria-label": x1(a.options), className: l[N.WeekNumberHeader], style: _ == null ? void 0 : _[N.WeekNumberHeader], scope: "col" }, z()),
2954
+ N1.map((D) => M.createElement(o.Weekday, { "aria-label": v1(D, a.options, a), className: l[N.Weekday], key: String(D), style: _ == null ? void 0 : _[N.Weekday], scope: "col" }, R(D, a.options, a)))
2955
2955
  ),
2956
2956
  M.createElement(o.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: l[N.Weeks], style: _ == null ? void 0 : _[N.Weeks] }, B.weeks.map((D) => M.createElement(
2957
2957
  o.Week,
@@ -2960,13 +2960,13 @@ function Ir(e) {
2960
2960
  locale: i
2961
2961
  }), className: l[N.WeekNumber], scope: "row", role: "rowheader" }, L(D.weekNumber, a)),
2962
2962
  D.days.map((G) => {
2963
- const { date: ie } = G, W = Mt(G);
2964
- if (W[X.focused] = !W.hidden && !!(mt != null && mt.isEqualTo(G)), W[ye.selected] = (Qe == null ? void 0 : Qe(ie)) || W.selected, yt(ft)) {
2963
+ const { date: ie } = G, T = Mt(G);
2964
+ if (T[X.focused] = !T.hidden && !!(mt != null && mt.isEqualTo(G)), T[we.selected] = (Qe == null ? void 0 : Qe(ie)) || T.selected, yt(ft)) {
2965
2965
  const { from: Nt, to: Dt } = ft;
2966
- W[ye.range_start] = !!(Nt && Dt && a.isSameDay(ie, Nt)), W[ye.range_end] = !!(Nt && Dt && a.isSameDay(ie, Dt)), W[ye.range_middle] = De(ft, ie, !0, a);
2966
+ T[we.range_start] = !!(Nt && Dt && a.isSameDay(ie, Nt)), T[we.range_end] = !!(Nt && Dt && a.isSameDay(ie, Dt)), T[we.range_middle] = De(ft, ie, !0, a);
2967
2967
  }
2968
- const L1 = fr(W, _, t.modifiersStyles), Y1 = As(W, l, t.modifiersClassNames), R1 = !rn && !W.hidden ? g1(ie, W, a.options, a) : void 0;
2969
- return M.createElement(o.Day, { key: `${G.isoDate}_${G.displayMonthId}`, day: G, modifiers: W, className: Y1.join(" "), style: L1, role: "gridcell", "aria-selected": W.selected || void 0, "aria-label": R1, "data-day": G.isoDate, "data-month": G.outside ? G.dateMonthId : void 0, "data-selected": W.selected || void 0, "data-disabled": W.disabled || void 0, "data-hidden": W.hidden || void 0, "data-outside": G.outside || void 0, "data-focused": W.focused || void 0, "data-today": W.today || void 0 }, !W.hidden && rn ? M.createElement(o.DayButton, { className: l[N.DayButton], style: _ == null ? void 0 : _[N.DayButton], type: "button", day: G, modifiers: W, disabled: !W.focused && W.disabled || void 0, "aria-disabled": W.focused && W.disabled || void 0, tabIndex: C1(G) ? 0 : -1, "aria-label": p1(ie, W, a.options, a), onClick: D1(G, W), onBlur: B1(G, W), onFocus: O1(G, W), onKeyDown: z1(G, W), onMouseEnter: W1(G, W), onMouseLeave: T1(G, W) }, $(ie, a.options, a)) : !W.hidden && $(G.date, a.options, a));
2968
+ const L1 = fr(T, _, t.modifiersStyles), Y1 = As(T, l, t.modifiersClassNames), R1 = !rn && !T.hidden ? g1(ie, T, a.options, a) : void 0;
2969
+ return M.createElement(o.Day, { key: `${G.isoDate}_${G.displayMonthId}`, day: G, modifiers: T, className: Y1.join(" "), style: L1, role: "gridcell", "aria-selected": T.selected || void 0, "aria-label": R1, "data-day": G.isoDate, "data-month": G.outside ? G.dateMonthId : void 0, "data-selected": T.selected || void 0, "data-disabled": T.disabled || void 0, "data-hidden": T.hidden || void 0, "data-outside": G.outside || void 0, "data-focused": T.focused || void 0, "data-today": T.today || void 0 }, !T.hidden && rn ? M.createElement(o.DayButton, { className: l[N.DayButton], style: _ == null ? void 0 : _[N.DayButton], type: "button", day: G, modifiers: T, disabled: !T.focused && T.disabled || void 0, "aria-disabled": T.focused && T.disabled || void 0, tabIndex: C1(G) ? 0 : -1, "aria-label": p1(ie, T, a.options, a), onClick: D1(G, T), onBlur: B1(G, T), onFocus: O1(G, T), onKeyDown: z1(G, T), onMouseEnter: W1(G, T), onMouseLeave: T1(G, T) }, $(ie, a.options, a)) : !T.hidden && $(G.date, a.options, a));
2970
2970
  })
2971
2971
  )))
2972
2972
  )
@@ -3041,7 +3041,7 @@ function Ee({
3041
3041
  h && A.focused,
3042
3042
  C && A.pressed,
3043
3043
  a
3044
- ].filter(Boolean).join(" "), b = /* @__PURE__ */ p(he, { children: [
3044
+ ].filter(Boolean).join(" "), b = /* @__PURE__ */ p(de, { children: [
3045
3045
  s && /* @__PURE__ */ c("span", { className: A.icon, children: s }),
3046
3046
  n && /* @__PURE__ */ c("span", { className: A.label, children: n }),
3047
3047
  r && /* @__PURE__ */ c("span", { className: A.icon, children: r })
@@ -3105,7 +3105,7 @@ const ze = {
3105
3105
  xl: 32,
3106
3106
  xxl: 40,
3107
3107
  "3xl": 48
3108
- }, Ba = "_sizeSm_f51za_1", za = "_sizeMd_f51za_6", Wa = "_sizeLg_f51za_11", Ta = "_sizeXl_f51za_16", Ga = "_sizeXxl_f51za_21", $a = "_size3xl_f51za_26", Ha = "_desktopSizeSm_f51za_32", Pa = "_desktopSizeMd_f51za_37", Ea = "_desktopSizeLg_f51za_42", Ia = "_desktopSizeXl_f51za_47", La = "_desktopSizeXxl_f51za_52", Ya = "_desktopSize3xl_f51za_57", _e = {
3108
+ }, Ba = "_sizeSm_f51za_1", za = "_sizeMd_f51za_6", Wa = "_sizeLg_f51za_11", Ta = "_sizeXl_f51za_16", Ga = "_sizeXxl_f51za_21", $a = "_size3xl_f51za_26", Ha = "_desktopSizeSm_f51za_32", Pa = "_desktopSizeMd_f51za_37", Ea = "_desktopSizeLg_f51za_42", Ia = "_desktopSizeXl_f51za_47", La = "_desktopSizeXxl_f51za_52", Ya = "_desktopSize3xl_f51za_57", he = {
3109
3109
  sizeSm: Ba,
3110
3110
  sizeMd: za,
3111
3111
  sizeLg: Wa,
@@ -3119,19 +3119,19 @@ const ze = {
3119
3119
  desktopSizeXxl: La,
3120
3120
  desktopSize3xl: Ya
3121
3121
  }, Ra = {
3122
- sm: _e.sizeSm,
3123
- md: _e.sizeMd,
3124
- lg: _e.sizeLg,
3125
- xl: _e.sizeXl,
3126
- xxl: _e.sizeXxl,
3127
- "3xl": _e.size3xl
3122
+ sm: he.sizeSm,
3123
+ md: he.sizeMd,
3124
+ lg: he.sizeLg,
3125
+ xl: he.sizeXl,
3126
+ xxl: he.sizeXxl,
3127
+ "3xl": he.size3xl
3128
3128
  }, ja = {
3129
- sm: _e.desktopSizeSm,
3130
- md: _e.desktopSizeMd,
3131
- lg: _e.desktopSizeLg,
3132
- xl: _e.desktopSizeXl,
3133
- xxl: _e.desktopSizeXxl,
3134
- "3xl": _e.desktopSize3xl
3129
+ sm: he.desktopSizeSm,
3130
+ md: he.desktopSizeMd,
3131
+ lg: he.desktopSizeLg,
3132
+ xl: he.desktopSizeXl,
3133
+ xxl: he.desktopSizeXxl,
3134
+ "3xl": he.desktopSize3xl
3135
3135
  };
3136
3136
  function V(e, t) {
3137
3137
  if (Array.isArray(e)) {
@@ -3205,7 +3205,7 @@ function Aa({ size: e = "md", color: t, style: n, className: o, ...s }) {
3205
3205
  }
3206
3206
  );
3207
3207
  }
3208
- const Za = "_card_19ztl_1", qa = "_root_19ztl_12", Ua = "_months_19ztl_16", Qa = "_month_19ztl_16", Ka = "_navHidden_19ztl_28", Ja = "_monthCaption_19ztl_32", ei = "_header_19ztl_36", ti = "_navButtons_19ztl_46", ni = "_navBtn_19ztl_53", oi = "_captionLabelText_19ztl_78", si = "_weekdays_19ztl_91", ri = "_weekday_19ztl_91", ai = "_weeks_19ztl_110", ii = "_week_19ztl_91", ci = "_day_19ztl_123", li = "_dayButton_19ztl_134", di = "_dayNumber_19ztl_155", ui = "_dot_19ztl_163", fi = "_dotSecondary_19ztl_172", mi = "_dotPlaceholder_19ztl_181", _i = "_today_19ztl_189", hi = "_selected_19ztl_194", Ci = "_disabled_19ztl_205", pi = "_outside_19ztl_215", gi = "_footer_19ztl_220", yi = "_legendRow_19ztl_226", wi = "_legend_19ztl_226", bi = "_legendDot_19ztl_240", ki = "_legendDotSecondary_19ztl_249", vi = "_legendText_19ztl_258", Mi = "_contentSlot_19ztl_265", xi = "_bottomSheet_19ztl_271", z = {
3208
+ const Za = "_card_19ztl_1", qa = "_root_19ztl_12", Ua = "_months_19ztl_16", Qa = "_month_19ztl_16", Ka = "_navHidden_19ztl_28", Ja = "_monthCaption_19ztl_32", ei = "_header_19ztl_36", ti = "_navButtons_19ztl_46", ni = "_navBtn_19ztl_53", oi = "_captionLabelText_19ztl_78", si = "_weekdays_19ztl_91", ri = "_weekday_19ztl_91", ai = "_weeks_19ztl_110", ii = "_week_19ztl_91", ci = "_day_19ztl_123", li = "_dayButton_19ztl_134", di = "_dayNumber_19ztl_155", ui = "_dot_19ztl_163", fi = "_dotSecondary_19ztl_172", mi = "_dotPlaceholder_19ztl_181", _i = "_today_19ztl_189", hi = "_selected_19ztl_194", Ci = "_disabled_19ztl_205", pi = "_outside_19ztl_215", gi = "_footer_19ztl_220", yi = "_legendRow_19ztl_226", wi = "_legend_19ztl_226", bi = "_legendDot_19ztl_240", ki = "_legendDotSecondary_19ztl_249", vi = "_legendText_19ztl_258", Mi = "_contentSlot_19ztl_265", xi = "_bottomSheet_19ztl_271", W = {
3209
3209
  card: Za,
3210
3210
  root: qa,
3211
3211
  months: Ua,
@@ -3244,9 +3244,9 @@ function Gt(e) {
3244
3244
  return t.setHours(12, 0, 0, 0), t;
3245
3245
  }
3246
3246
  function Si({ day: e, modifiers: t, ...n }) {
3247
- const o = t.secondaryMarked ? z.dotSecondary : t.marked ? z.dot : z.dotPlaceholder;
3248
- return /* @__PURE__ */ p(he, { children: [
3249
- /* @__PURE__ */ c("button", { ...n, children: /* @__PURE__ */ c("span", { className: z.dayNumber, children: e.date.getDate() }) }),
3247
+ const o = t.secondaryMarked ? W.dotSecondary : t.marked ? W.dot : W.dotPlaceholder;
3248
+ return /* @__PURE__ */ p(de, { children: [
3249
+ /* @__PURE__ */ c("button", { ...n, children: /* @__PURE__ */ c("span", { className: W.dayNumber, children: e.date.getDate() }) }),
3250
3250
  /* @__PURE__ */ c("span", { className: o, "aria-hidden": !0 })
3251
3251
  ] });
3252
3252
  }
@@ -3263,7 +3263,7 @@ function Ni({
3263
3263
  const { nextMonth: l, previousMonth: d, goToMonth: u } = qe(), f = /* @__PURE__ */ c(
3264
3264
  "button",
3265
3265
  {
3266
- className: z.navBtn,
3266
+ className: W.navBtn,
3267
3267
  onClick: () => d && u(d),
3268
3268
  disabled: !d,
3269
3269
  "aria-label": s,
@@ -3273,7 +3273,7 @@ function Ni({
3273
3273
  ), m = /* @__PURE__ */ c(
3274
3274
  "button",
3275
3275
  {
3276
- className: z.navBtn,
3276
+ className: W.navBtn,
3277
3277
  onClick: () => l && u(l),
3278
3278
  disabled: !l,
3279
3279
  "aria-label": r,
@@ -3281,16 +3281,16 @@ function Ni({
3281
3281
  children: i ? /* @__PURE__ */ c(Aa, { size: "3xl", color: "var(--color-surface-icons-primary)" }) : /* @__PURE__ */ c(Xa, { size: "xl" })
3282
3282
  }
3283
3283
  );
3284
- return /* @__PURE__ */ c("div", { className: z.header, children: i ? /* @__PURE__ */ p(he, { children: [
3284
+ return /* @__PURE__ */ c("div", { className: W.header, children: i ? /* @__PURE__ */ p(de, { children: [
3285
3285
  f,
3286
- /* @__PURE__ */ c("span", { className: z.captionLabelText, children: He(e.date, "MMMM yyyy", { locale: n }) }),
3286
+ /* @__PURE__ */ c("span", { className: W.captionLabelText, children: He(e.date, "MMMM yyyy", { locale: n }) }),
3287
3287
  m
3288
- ] }) : /* @__PURE__ */ p(he, { children: [
3289
- /* @__PURE__ */ p("div", { className: z.navButtons, children: [
3288
+ ] }) : /* @__PURE__ */ p(de, { children: [
3289
+ /* @__PURE__ */ p("div", { className: W.navButtons, children: [
3290
3290
  f,
3291
3291
  m
3292
3292
  ] }),
3293
- /* @__PURE__ */ c("span", { className: z.captionLabelText, children: He(e.date, "MMMM yyyy", { locale: n }) }),
3293
+ /* @__PURE__ */ c("span", { className: W.captionLabelText, children: He(e.date, "MMMM yyyy", { locale: n }) }),
3294
3294
  a && /* @__PURE__ */ c(Ee, { variant: "secondary", size: "xs", onClick: t, type: "button", children: o })
3295
3295
  ] }) });
3296
3296
  }
@@ -3314,20 +3314,20 @@ function Di({
3314
3314
  }) {
3315
3315
  const [v, x] = se(
3316
3316
  () => e ? Gt(e) : /* @__PURE__ */ new Date()
3317
- ), b = rt(() => l ?? Cs, [l]), g = F((j) => {
3318
- x(j), n == null || n(j);
3317
+ ), b = rt(() => l ?? Cs, [l]), g = F((R) => {
3318
+ x(R), n == null || n(R);
3319
3319
  }, [n]), S = F(() => {
3320
- const j = Gt(/* @__PURE__ */ new Date());
3321
- x(j), t == null || t(j), n == null || n(j);
3320
+ const R = Gt(/* @__PURE__ */ new Date());
3321
+ x(R), t == null || t(R), n == null || n(R);
3322
3322
  }, [t, n]);
3323
- function w(j) {
3324
- j && (t == null || t(Gt(j)));
3323
+ function w(R) {
3324
+ R && (t == null || t(Gt(R)));
3325
3325
  }
3326
3326
  const _ = k !== "bottomSheet", O = k === "bottomSheet", $ = F(
3327
- (j) => /* @__PURE__ */ c(
3327
+ (R) => /* @__PURE__ */ c(
3328
3328
  Ni,
3329
3329
  {
3330
- ...j,
3330
+ ...R,
3331
3331
  onTodayClick: S,
3332
3332
  locale: b,
3333
3333
  todayLabel: m,
@@ -3338,8 +3338,8 @@ function Di({
3338
3338
  }
3339
3339
  ),
3340
3340
  [b, m, h, C, S, _, O]
3341
- ), R = o && o.length > 0, L = r && r.length > 0, T = [z.card, k === "bottomSheet" ? z.bottomSheet : ""].filter(Boolean).join(" ");
3342
- return /* @__PURE__ */ p("div", { className: T, "aria-label": f, role: "region", children: [
3341
+ ), j = o && o.length > 0, L = r && r.length > 0, z = [W.card, k === "bottomSheet" ? W.bottomSheet : ""].filter(Boolean).join(" ");
3342
+ return /* @__PURE__ */ p("div", { className: z, "aria-label": f, role: "region", children: [
3343
3343
  /* @__PURE__ */ c(
3344
3344
  Ir,
3345
3345
  {
@@ -3356,23 +3356,23 @@ function Di({
3356
3356
  },
3357
3357
  disabled: i ?? [],
3358
3358
  modifiersClassNames: {
3359
- today: z.today
3359
+ today: W.today
3360
3360
  },
3361
3361
  classNames: {
3362
- root: z.root,
3363
- months: z.months,
3364
- month: z.month,
3365
- month_caption: z.monthCaption,
3366
- nav: z.navHidden,
3367
- weekdays: z.weekdays,
3368
- weekday: z.weekday,
3369
- weeks: z.weeks,
3370
- week: z.week,
3371
- day: z.day,
3372
- day_button: z.dayButton,
3373
- selected: z.selected,
3374
- disabled: z.disabled,
3375
- outside: z.outside
3362
+ root: W.root,
3363
+ months: W.months,
3364
+ month: W.month,
3365
+ month_caption: W.monthCaption,
3366
+ nav: W.navHidden,
3367
+ weekdays: W.weekdays,
3368
+ weekday: W.weekday,
3369
+ weeks: W.weeks,
3370
+ week: W.week,
3371
+ day: W.day,
3372
+ day_button: W.dayButton,
3373
+ selected: W.selected,
3374
+ disabled: W.disabled,
3375
+ outside: W.outside
3376
3376
  },
3377
3377
  components: {
3378
3378
  DayButton: Si,
@@ -3380,19 +3380,19 @@ function Di({
3380
3380
  }
3381
3381
  }
3382
3382
  ),
3383
- (R || L || e && u) && /* @__PURE__ */ p("div", { className: z.footer, children: [
3383
+ (j || L || e && u) && /* @__PURE__ */ p("div", { className: W.footer, children: [
3384
3384
  /* @__PURE__ */ c(gt, { spacingTop: "xs", color: "var(--color-border-default)" }),
3385
- (R || L) && /* @__PURE__ */ p("div", { className: z.legendRow, children: [
3386
- R && /* @__PURE__ */ p("div", { className: z.legend, children: [
3387
- /* @__PURE__ */ c("span", { className: z.legendDot, "aria-hidden": !0 }),
3388
- /* @__PURE__ */ c("span", { className: z.legendText, children: s })
3385
+ (j || L) && /* @__PURE__ */ p("div", { className: W.legendRow, children: [
3386
+ j && /* @__PURE__ */ p("div", { className: W.legend, children: [
3387
+ /* @__PURE__ */ c("span", { className: W.legendDot, "aria-hidden": !0 }),
3388
+ /* @__PURE__ */ c("span", { className: W.legendText, children: s })
3389
3389
  ] }),
3390
- L && /* @__PURE__ */ p("div", { className: z.legend, children: [
3391
- /* @__PURE__ */ c("span", { className: z.legendDotSecondary, "aria-hidden": !0 }),
3392
- /* @__PURE__ */ c("span", { className: z.legendText, children: a })
3390
+ L && /* @__PURE__ */ p("div", { className: W.legend, children: [
3391
+ /* @__PURE__ */ c("span", { className: W.legendDotSecondary, "aria-hidden": !0 }),
3392
+ /* @__PURE__ */ c("span", { className: W.legendText, children: a })
3393
3393
  ] })
3394
3394
  ] }),
3395
- e && u && /* @__PURE__ */ c("div", { className: z.contentSlot, children: u(e) })
3395
+ e && u && /* @__PURE__ */ c("div", { className: W.contentSlot, children: u(e) })
3396
3396
  ] })
3397
3397
  ] });
3398
3398
  }
@@ -3549,7 +3549,7 @@ function u1({
3549
3549
  f
3550
3550
  ].filter(Boolean).join(" "), b = n === "top" || n === "bottom" ? { height: s ?? o } : { "--drawer-panel-width": o };
3551
3551
  return typeof document > "u" ? null : Ft(
3552
- /* @__PURE__ */ p(he, { children: [
3552
+ /* @__PURE__ */ p(de, { children: [
3553
3553
  l && e && /* @__PURE__ */ c(
3554
3554
  "div",
3555
3555
  {
@@ -4354,7 +4354,7 @@ function q8({
4354
4354
  }
4355
4355
  return /* @__PURE__ */ c(_1.Provider, { value: { selectedValue: d, setSelectedValue: u, baseId: i }, children: /* @__PURE__ */ c("div", { className: s, children: o }) });
4356
4356
  }
4357
- const S2 = "_tabList_pvul1_8", N2 = "_tabListNoBorder_pvul1_16", D2 = "_tabListFullWidth_pvul1_20", O2 = "_tab_pvul1_8", B2 = "_tabListFullWidthMobile_pvul1_30", z2 = "_tabSelected_pvul1_71", W2 = "_tabUnselected_pvul1_77", T2 = "_tabLabel_pvul1_85", G2 = "_tabPanel_pvul1_91", $2 = "_indicator_pvul1_99", be = {
4357
+ const S2 = "_tabList_1lm5m_8", N2 = "_tabListNoBorder_1lm5m_16", D2 = "_tabListFullWidth_1lm5m_20", O2 = "_tab_1lm5m_8", B2 = "_tabListFullWidthMobile_1lm5m_30", z2 = "_tabSelected_1lm5m_73", W2 = "_tabUnselected_1lm5m_79", T2 = "_tabLabel_1lm5m_87", G2 = "_tabPanel_1lm5m_93", $2 = "_indicator_1lm5m_101", ye = {
4358
4358
  tabList: S2,
4359
4359
  tabListNoBorder: N2,
4360
4360
  tabListFullWidth: D2,
@@ -4366,23 +4366,35 @@ const S2 = "_tabList_pvul1_8", N2 = "_tabListNoBorder_pvul1_16", D2 = "_tabListF
4366
4366
  tabPanel: G2,
4367
4367
  indicator: $2
4368
4368
  };
4369
- function H2({ children: e, value: t, isSelected: n, onClick: o, className: s }) {
4370
- const r = en(), a = r && t !== void 0 ? r.selectedValue === t : n ?? !1, i = r && t !== void 0 ? () => r.setSelectedValue(t) : o, l = r && t !== void 0 ? `${r.baseId}-tab-${t}` : void 0, d = r && t !== void 0 ? `${r.baseId}-panel-${t}` : void 0, u = [
4371
- be.tab,
4372
- a ? be.tabSelected : be.tabUnselected,
4373
- s
4369
+ function H2({ children: e, value: t, isSelected: n, onClick: o, href: s, target: r, className: a }) {
4370
+ const i = en(), l = i && t !== void 0 ? i.selectedValue === t : n ?? !1, d = i && t !== void 0 ? () => i.setSelectedValue(t) : o, u = i && t !== void 0 ? `${i.baseId}-tab-${t}` : void 0, f = i && t !== void 0 ? `${i.baseId}-panel-${t}` : void 0, m = [
4371
+ ye.tab,
4372
+ l ? ye.tabSelected : ye.tabUnselected,
4373
+ a
4374
4374
  ].filter(Boolean).join(" ");
4375
- return /* @__PURE__ */ c(
4375
+ return s ? /* @__PURE__ */ c(
4376
+ "a",
4377
+ {
4378
+ role: "tab",
4379
+ id: u,
4380
+ "aria-selected": l,
4381
+ href: s,
4382
+ target: r,
4383
+ rel: r === "_blank" ? "noopener noreferrer" : void 0,
4384
+ className: m,
4385
+ children: /* @__PURE__ */ c("span", { className: ye.tabLabel, children: e })
4386
+ }
4387
+ ) : /* @__PURE__ */ c(
4376
4388
  "button",
4377
4389
  {
4378
4390
  type: "button",
4379
4391
  role: "tab",
4380
- id: l,
4381
- "aria-selected": a,
4382
- "aria-controls": d,
4383
- onClick: i,
4384
- className: u,
4385
- children: /* @__PURE__ */ c("span", { className: be.tabLabel, children: e })
4392
+ id: u,
4393
+ "aria-selected": l,
4394
+ "aria-controls": f,
4395
+ onClick: d,
4396
+ className: m,
4397
+ children: /* @__PURE__ */ c("span", { className: ye.tabLabel, children: e })
4386
4398
  }
4387
4399
  );
4388
4400
  }
@@ -4417,15 +4429,15 @@ function P2({ children: e, className: t, showBorder: n = !0, fullWidth: o = !1 }
4417
4429
  u.preventDefault(), m[k].focus();
4418
4430
  }
4419
4431
  const d = [
4420
- be.tabList,
4421
- !n && be.tabListNoBorder,
4422
- o === !0 && be.tabListFullWidth,
4423
- o === "mobile" && be.tabListFullWidthMobile,
4432
+ ye.tabList,
4433
+ !n && ye.tabListNoBorder,
4434
+ o === !0 && ye.tabListFullWidth,
4435
+ o === "mobile" && ye.tabListFullWidthMobile,
4424
4436
  t
4425
4437
  ].filter(Boolean).join(" ");
4426
4438
  return /* @__PURE__ */ p("nav", { role: "tablist", ref: s, className: d, onKeyDown: l, children: [
4427
4439
  e,
4428
- /* @__PURE__ */ c("span", { ref: r, className: be.indicator, "aria-hidden": "true" })
4440
+ /* @__PURE__ */ c("span", { ref: r, className: ye.indicator, "aria-hidden": "true" })
4429
4441
  ] });
4430
4442
  }
4431
4443
  function U8({ value: e, children: t, className: n }) {
@@ -4437,7 +4449,7 @@ function U8({ value: e, children: t, className: n }) {
4437
4449
  id: r,
4438
4450
  "aria-labelledby": a,
4439
4451
  hidden: !s,
4440
- className: [be.tabPanel, n].filter(Boolean).join(" "),
4452
+ className: [ye.tabPanel, n].filter(Boolean).join(" "),
4441
4453
  children: t
4442
4454
  }
4443
4455
  );
@@ -4661,22 +4673,32 @@ function Pt({ role: e, size: t = "md", children: n, className: o }) {
4661
4673
  const s = n ?? e.charAt(0).toUpperCase() + e.slice(1);
4662
4674
  return /* @__PURE__ */ c(Jt, { tone: "neutral", size: t, className: [x7[e] ?? void 0, o].filter(Boolean).join(" "), children: s });
4663
4675
  }
4664
- const S7 = "_item_ygd40_6", N7 = "_itemSelected_ygd40_24", D7 = "_label_ygd40_28", Et = {
4676
+ const S7 = "_item_eej11_6", N7 = "_itemSelected_eej11_25", D7 = "_label_eej11_29", Et = {
4665
4677
  item: S7,
4666
4678
  itemSelected: N7,
4667
4679
  label: D7
4668
4680
  };
4669
- function Dn({ icon: e, label: t, isSelected: n = !1, onClick: o }) {
4670
- return /* @__PURE__ */ p(
4681
+ function Dn({ icon: e, label: t, isSelected: n = !1, onClick: o, href: s, target: r }) {
4682
+ const a = `${Et.item}${n ? ` ${Et.itemSelected}` : ""}`, i = /* @__PURE__ */ p(de, { children: [
4683
+ /* @__PURE__ */ c(e, { size: "lg" }),
4684
+ /* @__PURE__ */ c("span", { className: Et.label, children: t })
4685
+ ] });
4686
+ return s ? /* @__PURE__ */ c(
4687
+ "a",
4688
+ {
4689
+ href: s,
4690
+ target: r,
4691
+ rel: r === "_blank" ? "noopener noreferrer" : void 0,
4692
+ className: a,
4693
+ children: i
4694
+ }
4695
+ ) : /* @__PURE__ */ c(
4671
4696
  "button",
4672
4697
  {
4673
4698
  type: "button",
4674
- className: `${Et.item}${n ? ` ${Et.itemSelected}` : ""}`,
4699
+ className: a,
4675
4700
  onClick: o,
4676
- children: [
4677
- /* @__PURE__ */ c(e, { size: "lg" }),
4678
- /* @__PURE__ */ c("span", { className: Et.label, children: t })
4679
- ]
4701
+ children: i
4680
4702
  }
4681
4703
  );
4682
4704
  }
@@ -4735,18 +4757,18 @@ function J8({
4735
4757
  }) {
4736
4758
  const C = { ...sc, ...m }, k = t && t.length > 0, v = !!n, [x, b] = se(!1), [g, S] = se(!1), w = Z(null), _ = F(() => b(!1), []);
4737
4759
  ae(() => {
4738
- const T = (j) => {
4739
- j.key === "Escape" && _();
4760
+ const z = (R) => {
4761
+ R.key === "Escape" && _();
4740
4762
  };
4741
- return document.addEventListener("keydown", T), () => document.removeEventListener("keydown", T);
4763
+ return document.addEventListener("keydown", z), () => document.removeEventListener("keydown", z);
4742
4764
  }, [_]), ae(() => {
4743
4765
  if (!x) return;
4744
- const T = (j) => {
4745
- w.current && !w.current.contains(j.target) && _();
4766
+ const z = (R) => {
4767
+ w.current && !w.current.contains(R.target) && _();
4746
4768
  };
4747
- return document.addEventListener("mousedown", T), () => document.removeEventListener("mousedown", T);
4769
+ return document.addEventListener("mousedown", z), () => document.removeEventListener("mousedown", z);
4748
4770
  }, [x, _]);
4749
- const O = !!a, $ = l && l.length > 0, R = /* @__PURE__ */ p("div", { className: P.drawerHeader, children: [
4771
+ const O = !!a, $ = l && l.length > 0, j = /* @__PURE__ */ p("div", { className: P.drawerHeader, children: [
4750
4772
  /* @__PURE__ */ p("div", { className: P.drawerHeaderUser, children: [
4751
4773
  /* @__PURE__ */ c(Ve, { name: n, src: r, size: "sm" }),
4752
4774
  /* @__PURE__ */ p("div", { className: P.drawerHeaderUserInfo, children: [
@@ -4778,11 +4800,11 @@ function J8({
4778
4800
  /* @__PURE__ */ c(gt, { spacingTop: "none", spacingBottom: "none" }),
4779
4801
  a && /* @__PURE__ */ c(Dn, { icon: vn, label: C.logout, onClick: a })
4780
4802
  ] });
4781
- return /* @__PURE__ */ p(he, { children: [
4803
+ return /* @__PURE__ */ p(de, { children: [
4782
4804
  /* @__PURE__ */ c("header", { className: [P.root, h].filter(Boolean).join(" "), children: /* @__PURE__ */ p("div", { className: P.bar, children: [
4783
4805
  /* @__PURE__ */ p("div", { className: P.left, children: [
4784
4806
  e && /* @__PURE__ */ c("div", { className: P.logo, children: e }),
4785
- k && /* @__PURE__ */ c("div", { className: P.tabsContainer, children: /* @__PURE__ */ c(P2, { showBorder: !1, children: t.map((T) => /* @__PURE__ */ c(H2, { isSelected: T.isSelected, onClick: T.onClick, children: T.label }, T.label)) }) })
4807
+ k && /* @__PURE__ */ c("div", { className: P.tabsContainer, children: /* @__PURE__ */ c(P2, { showBorder: !1, children: t.map((z) => /* @__PURE__ */ c(H2, { isSelected: z.isSelected, onClick: z.onClick, href: z.href, target: z.target, children: z.label }, z.label)) }) })
4786
4808
  ] }),
4787
4809
  /* @__PURE__ */ p("div", { className: P.right, children: [
4788
4810
  n && /* @__PURE__ */ p("div", { className: P.userMenuWrapper, ref: w, children: [
@@ -4791,7 +4813,7 @@ function J8({
4791
4813
  {
4792
4814
  type: "button",
4793
4815
  className: P.userSection,
4794
- onClick: () => b((T) => !T),
4816
+ onClick: () => b((z) => !z),
4795
4817
  "aria-haspopup": "true",
4796
4818
  "aria-expanded": x,
4797
4819
  children: [
@@ -4812,7 +4834,7 @@ function J8({
4812
4834
  o && /* @__PURE__ */ c(Pt, { role: o, size: "sm", children: s })
4813
4835
  ] })
4814
4836
  ] }),
4815
- $ && /* @__PURE__ */ p(he, { children: [
4837
+ $ && /* @__PURE__ */ p(de, { children: [
4816
4838
  /* @__PURE__ */ c("div", { className: P.dropdownDivider }),
4817
4839
  /* @__PURE__ */ c("div", { className: P.dropdownLanguageSelect, children: /* @__PURE__ */ c(
4818
4840
  Nn,
@@ -4825,7 +4847,7 @@ function J8({
4825
4847
  }
4826
4848
  ) })
4827
4849
  ] }),
4828
- O && /* @__PURE__ */ p(he, { children: [
4850
+ O && /* @__PURE__ */ p(de, { children: [
4829
4851
  /* @__PURE__ */ c("div", { className: P.dropdownDivider }),
4830
4852
  /* @__PURE__ */ c(
4831
4853
  "button",
@@ -4864,20 +4886,23 @@ function J8({
4864
4886
  position: "right",
4865
4887
  width: f,
4866
4888
  fullScreenOnMobile: !0,
4867
- header: R,
4889
+ header: j,
4868
4890
  footer: L,
4869
4891
  "aria-label": C.navigation,
4870
- children: i && i.length > 0 && /* @__PURE__ */ c("nav", { children: i.map((T) => /* @__PURE__ */ c(
4892
+ children: i && i.length > 0 && /* @__PURE__ */ c("nav", { children: i.map((z) => /* @__PURE__ */ c(
4871
4893
  Dn,
4872
4894
  {
4873
- icon: T.icon,
4874
- label: T.label,
4875
- isSelected: T.isSelected,
4876
- onClick: () => {
4877
- T.onClick(), S(!1);
4878
- }
4895
+ icon: z.icon,
4896
+ label: z.label,
4897
+ isSelected: z.isSelected,
4898
+ onClick: z.href ? void 0 : () => {
4899
+ var R;
4900
+ (R = z.onClick) == null || R.call(z), S(!1);
4901
+ },
4902
+ href: z.href,
4903
+ target: z.target
4879
4904
  },
4880
- T.label
4905
+ z.label
4881
4906
  )) })
4882
4907
  }
4883
4908
  )
@@ -4923,8 +4948,8 @@ function Gc({
4923
4948
  labels: r
4924
4949
  }) {
4925
4950
  const [a, i] = se(!1), l = e === "pending", d = e === "submitted";
4926
- return /* @__PURE__ */ p(he, { children: [
4927
- l && /* @__PURE__ */ p(he, { children: [
4951
+ return /* @__PURE__ */ p(de, { children: [
4952
+ l && /* @__PURE__ */ p(de, { children: [
4928
4953
  /* @__PURE__ */ p("div", { className: I.feedbackRow, children: [
4929
4954
  /* @__PURE__ */ c(
4930
4955
  x2,
@@ -4932,7 +4957,7 @@ function Gc({
4932
4957
  className: I.feedbackDisclosure,
4933
4958
  open: a,
4934
4959
  onToggle: i,
4935
- trigger: /* @__PURE__ */ p(he, { children: [
4960
+ trigger: /* @__PURE__ */ p(de, { children: [
4936
4961
  /* @__PURE__ */ c(_5, { size: ["md", "sm"] }),
4937
4962
  /* @__PURE__ */ c("span", { children: r.pendingFeedback(t) })
4938
4963
  ] }),
@@ -4958,7 +4983,7 @@ function Gc({
4958
4983
  ] }),
4959
4984
  /* @__PURE__ */ c("div", { className: I.feedbackButtonBottom, children: /* @__PURE__ */ c(Ee, { variant: "primary", size: "sm", onClick: o, children: r.leaveFeedback }) })
4960
4985
  ] }),
4961
- d && /* @__PURE__ */ p(he, { children: [
4986
+ d && /* @__PURE__ */ p(de, { children: [
4962
4987
  /* @__PURE__ */ c(gt, { spacingBottom: "xxs", spacingTop: "xxs" }),
4963
4988
  /* @__PURE__ */ p("p", { className: I.studentsSummary, children: [
4964
4989
  /* @__PURE__ */ c("strong", { children: r.students }),
@@ -5498,7 +5523,7 @@ function o6({
5498
5523
  document.body
5499
5524
  );
5500
5525
  }
5501
- const V3 = "_root_1msbv_6", A3 = "_labelRow_1msbv_13", Z3 = "_label_1msbv_13", q3 = "_tooltipSlot_1msbv_27", U3 = "_input_1msbv_35", Q3 = "_multiline_1msbv_50", K3 = "_sizeMd_1msbv_59", J3 = "_sizeLg_1msbv_64", ed = "_desktopSizeMd_1msbv_72", td = "_desktopSizeLg_1msbv_77", nd = "_inputError_1msbv_93", od = "_errorMessage_1msbv_112", me = {
5526
+ const V3 = "_root_1msbv_6", A3 = "_labelRow_1msbv_13", Z3 = "_label_1msbv_13", q3 = "_tooltipSlot_1msbv_27", U3 = "_input_1msbv_35", Q3 = "_multiline_1msbv_50", K3 = "_sizeMd_1msbv_59", J3 = "_sizeLg_1msbv_64", ed = "_desktopSizeMd_1msbv_72", td = "_desktopSizeLg_1msbv_77", nd = "_inputError_1msbv_93", od = "_errorMessage_1msbv_112", _e = {
5502
5527
  root: V3,
5503
5528
  labelRow: A3,
5504
5529
  label: Z3,
@@ -5512,11 +5537,11 @@ const V3 = "_root_1msbv_6", A3 = "_labelRow_1msbv_13", Z3 = "_label_1msbv_13", q
5512
5537
  inputError: nd,
5513
5538
  errorMessage: od
5514
5539
  }, sd = {
5515
- md: me.sizeMd,
5516
- lg: me.sizeLg
5540
+ md: _e.sizeMd,
5541
+ lg: _e.sizeLg
5517
5542
  }, rd = {
5518
- md: me.desktopSizeMd,
5519
- lg: me.desktopSizeLg
5543
+ md: _e.desktopSizeMd,
5544
+ lg: _e.desktopSizeLg
5520
5545
  };
5521
5546
  function s6(e) {
5522
5547
  const {
@@ -5530,11 +5555,11 @@ function s6(e) {
5530
5555
  multiline: l,
5531
5556
  ...d
5532
5557
  } = e, u = Bn(), f = a ?? u, m = n ? `${f}-error` : void 0, h = Array.isArray(s) ? s[0] : s, C = Array.isArray(s) ? s[1] : void 0, k = [
5533
- me.input,
5534
- l ? me.multiline : "",
5558
+ _e.input,
5559
+ l ? _e.multiline : "",
5535
5560
  sd[h],
5536
5561
  C && rd[C],
5537
- n ? me.inputError : "",
5562
+ n ? _e.inputError : "",
5538
5563
  r ?? ""
5539
5564
  ].filter(Boolean).join(" "), v = {
5540
5565
  id: f,
@@ -5543,13 +5568,13 @@ function s6(e) {
5543
5568
  "aria-describedby": m,
5544
5569
  className: k
5545
5570
  };
5546
- return /* @__PURE__ */ p("div", { className: me.root, children: [
5547
- (t || o) && /* @__PURE__ */ p("div", { className: me.labelRow, children: [
5548
- t && /* @__PURE__ */ c("label", { className: me.label, htmlFor: f, children: t }),
5549
- o && /* @__PURE__ */ c("span", { className: me.tooltipSlot, children: o })
5571
+ return /* @__PURE__ */ p("div", { className: _e.root, children: [
5572
+ (t || o) && /* @__PURE__ */ p("div", { className: _e.labelRow, children: [
5573
+ t && /* @__PURE__ */ c("label", { className: _e.label, htmlFor: f, children: t }),
5574
+ o && /* @__PURE__ */ c("span", { className: _e.tooltipSlot, children: o })
5550
5575
  ] }),
5551
5576
  l ? /* @__PURE__ */ c("textarea", { ...v, ...d }) : /* @__PURE__ */ c("input", { ...v, ...d }),
5552
- n && /* @__PURE__ */ c("p", { id: m, className: me.errorMessage, role: "alert", children: n })
5577
+ n && /* @__PURE__ */ c("p", { id: m, className: _e.errorMessage, role: "alert", children: n })
5553
5578
  ] });
5554
5579
  }
5555
5580
  function tn({ variant: e, size: t = "lg", className: n }) {