@stenajs-webui/calendar 21.16.6 → 21.16.7

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,17 +1,17 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._calendar_1b766_1{--swui-calendar-day-width: 48px;--swui-calendar-day-height: 48px;--swui-calendar-day-border-radius: var(--swui-max-border-radius);--swui-calendar-week-number-bg-color: transparent;--swui-calendar-week-number-text-color: var(--lhds-color-ui-500);--swui-calendar-week-number-clickable-text-color: var(--lhds-color-ui-500);--swui-calendar-week-day-text-color: var(--lhds-color-ui-500);--swui-calendar-week-day-clickable-text-color: var(--lhds-color-ui-500);--swui-calendar-wrapper-selected-border: var(--modern-red);--swui-calendar-wrapper-selected-background: var(--modern-red);--swui-calendar-wrapper-range-border: var(--lhds-color-red-100);--swui-calendar-wrapper-range-background: var(--lhds-color-red-100);--swui-calendar-wrapper-today-border: var(--lhds-color-ui-200);--swui-calendar-wrapper-today-background: var(--lhds-color-ui-50);--swui-calendar-text-selected-color: #fff;--swui-calendar-text-disabled-color: var(--swui-text-disabled-color);--swui-calendar-text-in-other-month-color: var(--swui-text-disabled-color)}._calendar_1b766_1 table{border-spacing:0 4px}._calendar_1b766_1 tr td:last-child{border-top-right-radius:var(--swui-calendar-day-border-radius);border-bottom-right-radius:var(--swui-calendar-day-border-radius)}._calendar_1b766_1._weekNumberVisible_1b766_41 tr td:nth-child(2),._calendar_1b766_1:not(._weekNumberVisible_1b766_41) tr td:first-child{border-top-left-radius:var(--swui-calendar-day-border-radius);border-bottom-left-radius:var(--swui-calendar-day-border-radius)}._calendar_1b766_1 td{padding:0;width:var(--swui-calendar-day-width);height:var(--swui-calendar-day-height)}._timePicker_1w05d_1{overflow:hidden;width:180px}._timePickerColumn_1w05d_6{overflow-y:hidden;flex:1}._timePickerColumn_1w05d_6:hover{overflow-y:scroll}._travelDateCell_h6vcn_1{position:relative}._travelDateCell_h6vcn_1._small_h6vcn_4{width:40px;height:40px}._travelDateCell_h6vcn_1._medium_h6vcn_9{width:48px;height:48px}._travelDateCell_h6vcn_1._large_h6vcn_14{width:56px;height:28px}._travelDateCell_h6vcn_1{border-radius:var(--swui-max-border-radius)}._travelDateCell_h6vcn_1:focus{outline:none}._travelDateCell_h6vcn_1:focus-visible ._outline_h6vcn_26{outline:var(--swui-focus-outline);outline-width:var(--swui-focus-outline-width);background:transparent;position:absolute;border-radius:var(--swui-max-border-radius);top:0;bottom:0;left:0;right:0;z-index:10}._travelDateCell_h6vcn_1:focus-visible ._contentWrapper_h6vcn_39._contentWrapper_h6vcn_39._contentWrapper_h6vcn_39{border-color:transparent}._travelDateCell_h6vcn_1 ._contentWrapper_h6vcn_39{cursor:pointer;border-radius:var(--swui-max-border-radius);border-width:2px;border-style:solid;border-color:transparent;background:transparent;position:absolute;display:flex;align-items:center;justify-content:center;left:0;right:0;top:0;bottom:0}._travelDateCell_h6vcn_1 ._contentWrapper_h6vcn_39._disabled_h6vcn_60{cursor:not-allowed}._travelDateCell_h6vcn_1 ._contentWrapper_h6vcn_39._isToday_h6vcn_63{border-color:var(--lhds-color-ui-400)}._travelDateCell_h6vcn_1 ._contentWrapper_h6vcn_39._isSelectionStart_h6vcn_67,._travelDateCell_h6vcn_1 ._contentWrapper_h6vcn_39._isSelectionEnd_h6vcn_68{border-color:var(--modern-red)}._travelDateCell_h6vcn_1 ._contentWrapper_h6vcn_39._isSelectionStart_h6vcn_67{background:var(--modern-red)}._travelDateCell_h6vcn_1 ._contentWrapper_h6vcn_39._isSelectionStart_h6vcn_67 span{color:#fff}._travelDateCell_h6vcn_1 ._contentWrapper_h6vcn_39._isSelectionEnd_h6vcn_68:not(._isSelectionStart_h6vcn_67){background:#fff}._travelDateCell_h6vcn_1 ._contentWrapper_h6vcn_39._hover_h6vcn_83{border-color:var(--modern-red)}._travelDateCell_h6vcn_1 ._contentWrapper_h6vcn_39._hover_h6vcn_83._startSelected_h6vcn_86:not(._endSelected_h6vcn_86):not(._isSelectionStart_h6vcn_67){background:#fff}._travelDateCell_h6vcn_1 ._contentWrapper_h6vcn_39._hover_h6vcn_83._startSelected_h6vcn_86:not(._endSelected_h6vcn_86):not(._isSelectionStart_h6vcn_67) span{color:var(--swui-text-primary-color)}._travelDateCellBackground_1k07m_1._small_1k07m_2{width:20px;height:40px}._travelDateCellBackground_1k07m_1._medium_1k07m_7{width:24px;height:48px}._travelDateCellBackground_1k07m_1._large_1k07m_12{width:28px;height:56px}._travelCalendar_18pjj_1{border-spacing:0 4px;width:-moz-fit-content;width:fit-content}._travelCalendar_18pjj_1 td{padding:0}._travelDateRangeInput_1j7rp_1 ._overlay_1j7rp_2{transition:opacity var(--swui-animation-time-fast) ease-in-out;opacity:1}._travelDateRangeInput_1j7rp_1 ._overlay_1j7rp_2:not(._travelDateRangeInput_1j7rp_1 ._overlay_1j7rp_2._calendarVisible_1j7rp_6){opacity:0}._travelDateInput_hmfbf_1 ._overlay_hmfbf_2{transition:opacity var(--swui-animation-time-fast) ease-in-out;opacity:1}._travelDateInput_hmfbf_1 ._overlay_hmfbf_2:not(._travelDateInput_hmfbf_1 ._overlay_hmfbf_2._calendarVisible_hmfbf_6){opacity:0}")),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
- import { jsx as o, jsxs as N, Fragment as ue } from "react/jsx-runtime";
3
- import { Box as B, Text as yt, Clickable as Be, Row as P, Spacing as or, Column as Q, Heading as Yt, exhaustSwitchCase as fe, Space as St, Indent as _t, SeparatorLine as ar, parseIntElseUndefined as Se, useBoolean as ie, useDelayedFalse as Te, useOnClickOutside as Ye } from "@stenajs-webui/core";
4
- import { FlatButton as tt, stenaAngleDown as he, PrimaryButton as It, stenaAngleLeft as lr, stenaAngleRight as dr, SecondaryButton as ft, stenaAngleLeftDouble as ur, stenaArrowLeft as Gt, stenaArrowRight as Pt, stenaAngleRightDouble as fr, TextInputButton as hr, stenaCalendar as Nt, Icon as Pe, stenaArrowWideRight as mr, stenaClock as He, Label as gr, stenaAngleUp as Dr, CardBody as We } from "@stenajs-webui/elements";
5
- import { isAfter as V, eachDayOfInterval as $e, isSameDay as Y, endOfMonth as Oe, startOfMonth as Ue, min as pr, addDays as Z, max as br, subDays as gt, format as $, getISOWeek as me, getDate as qt, startOfWeek as jt, addWeeks as wr, getMonth as Dt, getWeek as Fe, getYear as Lt, getISODay as yr, addHours as Ce, isBefore as ct, parse as bt, addMonths as Ht, isSameMonth as ot, addYears as Mr, subMonths as ge, subYears as kr, setWeek as Sr, isValid as Tr, isSameYear as Rr } from "date-fns";
2
+ import { jsx as o, jsxs as N, Fragment as fe } from "react/jsx-runtime";
3
+ import { Box as B, Text as yt, Clickable as Be, Row as H, Spacing as or, useToday as Gt, Column as Q, Heading as Yt, exhaustSwitchCase as he, Space as St, Indent as _t, SeparatorLine as ar, parseIntElseUndefined as Se, useBoolean as ce, useDelayedFalse as Te, useOnClickOutside as Ye } from "@stenajs-webui/core";
4
+ import { FlatButton as tt, stenaAngleDown as me, PrimaryButton as It, stenaAngleLeft as lr, stenaAngleRight as dr, SecondaryButton as ft, stenaAngleLeftDouble as ur, stenaArrowLeft as qt, stenaArrowRight as Pt, stenaAngleRightDouble as fr, TextInputButton as hr, stenaCalendar as Nt, Icon as Pe, stenaArrowWideRight as mr, stenaClock as He, Label as gr, stenaAngleUp as pr, CardBody as We } from "@stenajs-webui/elements";
5
+ import { isAfter as V, eachDayOfInterval as $e, isSameDay as Y, endOfMonth as Oe, startOfMonth as Ue, min as Dr, addDays as Z, max as br, subDays as gt, format as O, getISOWeek as ge, getDate as Jt, startOfWeek as jt, addWeeks as wr, getMonth as pt, getWeek as Fe, getYear as Lt, getISODay as yr, addHours as Ce, isBefore as ct, parse as bt, addMonths as Ht, isSameMonth as ot, addYears as Mr, subMonths as pe, subYears as kr, setWeek as Sr, isValid as Tr, isSameYear as Rr } from "date-fns";
6
6
  import { enGB as De, enUS as Ir, enIE as Er, deAT as xr, de as Re, sv as Ie, da as Ee, nlBE as Ar, lv as xe, fr as _r, es as Nr, pl as Lr, nl as vr, nb as Br } from "date-fns/locale";
7
- import { last as Yr, startCase as vt, chunk as je, debounce as Pr, padStart as Hr, range as pe } from "lodash-es";
8
- import * as be from "react";
9
- import { useMemo as T, useRef as U, useEffect as rt, useCallback as M, useId as we, useState as R, useLayoutEffect as Ke } from "react";
7
+ import { last as Yr, startCase as vt, chunk as je, debounce as Pr, padStart as Hr, range as be } from "lodash-es";
8
+ import * as we from "react";
9
+ import { useMemo as R, useRef as U, useEffect as rt, useCallback as y, useId as ye, useState as I, useLayoutEffect as Ke } from "react";
10
10
  import wt from "classnames";
11
- import te from "@emotion/styled";
11
+ import ee from "@emotion/styled";
12
12
  import { TextInput as mt, TextInputBox as Wr, LabelledTextInput as $r } from "@stenajs-webui/forms";
13
13
  import { ControlledPopover as Wt } from "@stenajs-webui/tooltip";
14
- import { cssColor as Jt } from "@stenajs-webui/theme";
14
+ import { cssColor as Qt } from "@stenajs-webui/theme";
15
15
  import { useMaskedInput as Or } from "@stenajs-webui/input-mask";
16
16
  const at = {
17
17
  yearAndMonth: "yyyy-MM",
@@ -47,9 +47,9 @@ const at = {
47
47
  ), Fr = (t = {}, e, r, n, s) => e && r ? Bt(
48
48
  t,
49
49
  br([e, gt(n, 1)]),
50
- pr([r, Z(s, 1)])
50
+ Dr([r, Z(s, 1)])
51
51
  ) : Bt(t, e, r), Qs = (t, e, r) => {
52
- const n = $(e, at.yearAndMonth), s = me(e), i = qt(e);
52
+ const n = O(e, at.yearAndMonth), s = ge(e), i = Jt(e);
53
53
  return {
54
54
  ...t,
55
55
  [n]: {
@@ -64,7 +64,7 @@ const at = {
64
64
  }
65
65
  };
66
66
  }, Xs = (t, e, r) => {
67
- const n = $(e, at.yearAndMonth), s = me(e), i = qt(e);
67
+ const n = O(e, at.yearAndMonth), s = ge(e), i = Jt(e);
68
68
  return {
69
69
  ...t,
70
70
  [n]: {
@@ -81,7 +81,7 @@ const at = {
81
81
  }
82
82
  };
83
83
  }, ht = (t, e, r) => {
84
- const n = e.getMonth() + 1, s = `${e.getFullYear()}-${n < 10 ? "0" : ""}${n}`, i = me(e), c = qt(e), a = t && t[s] && t[s][i] && t[s][i][c];
84
+ const n = e.getMonth() + 1, s = `${e.getFullYear()}-${n < 10 ? "0" : ""}${n}`, i = ge(e), c = Jt(e), a = t && t[s] && t[s][i] && t[s][i][c];
85
85
  return {
86
86
  ...t,
87
87
  [s]: {
@@ -98,8 +98,8 @@ const at = {
98
98
  }), Zs = (t, e, r) => {
99
99
  const n = e.days[0].date, s = n.getMonth() + 1, i = `${n.getFullYear()}-${s < 10 ? "0" : ""}${s}`, c = e.weekNumber;
100
100
  let a = t;
101
- e.days.forEach((f) => {
102
- a = ht(a, f.date, r);
101
+ e.days.forEach((m) => {
102
+ a = ht(a, m.date, r);
103
103
  });
104
104
  const l = a && a[i] ? a[i][c] : void 0, d = l && l.highlights ? [...l.highlights, ...r] : r, u = {
105
105
  ...l,
@@ -120,21 +120,21 @@ const at = {
120
120
  return {
121
121
  ...Bt(t, r, n)
122
122
  };
123
- }, jr = (t, e) => T(() => t ? ht(e, /* @__PURE__ */ new Date(), ["today"]) : e, [t, e]);
123
+ }, jr = (t, e) => R(() => t ? ht(e, /* @__PURE__ */ new Date(), ["today"]) : e, [t, e]);
124
124
  var Kr = /* @__PURE__ */ ((t) => (t[t.JANUARY = 0] = "JANUARY", t[t.FEBRUARY = 1] = "FEBRUARY", t[t.MARCH = 2] = "MARCH", t[t.APRIL = 3] = "APRIL", t[t.MAY = 4] = "MAY", t[t.JUNE = 5] = "JUNE", t[t.JULY = 6] = "JULY", t[t.AUGUST = 7] = "AUGUST", t[t.SEPTEMBER = 8] = "SEPTEMBER", t[t.OCTOBER = 9] = "OCTOBER", t[t.NOVEMBER = 10] = "NOVEMBER", t[t.DECEMBER = 11] = "DECEMBER", t))(Kr || {}), zr = /* @__PURE__ */ ((t) => (t[t.SUNDAY = 0] = "SUNDAY", t[t.MONDAY = 1] = "MONDAY", t[t.TUESDAY = 2] = "TUESDAY", t[t.WEDNESDAY = 3] = "WEDNESDAY", t[t.THURSDAY = 4] = "THURSDAY", t[t.FRIDAY = 5] = "FRIDAY", t[t.SATURDAY = 6] = "SATURDAY", t))(zr || {});
125
125
  const Ae = (t, e, r, n) => {
126
126
  const s = [];
127
127
  for (let i = 0; i < r; i++)
128
- s.push(Qt(t, e + i, n));
128
+ s.push(Xt(t, e + i, n));
129
129
  return s;
130
- }, Qt = (t, e, r) => {
130
+ }, Xt = (t, e, r) => {
131
131
  if (isNaN(t) || isNaN(e))
132
132
  throw new Error("getMonthInYear() received NaN.");
133
133
  const n = t + Math.floor(e / 12), s = e % 12, i = new Date(n, s, 1);
134
134
  return {
135
- monthString: $(i, at.yearAndMonth),
135
+ monthString: O(i, at.yearAndMonth),
136
136
  name: vt(
137
- $(i, at.fullMonthName, { locale: r })
137
+ O(i, at.fullMonthName, { locale: r })
138
138
  ),
139
139
  year: n,
140
140
  monthInYear: s,
@@ -143,19 +143,19 @@ const Ae = (t, e, r, n) => {
143
143
  }, Gr = (t, e, r, n = !0) => {
144
144
  const s = new Date(t, e, 1), i = jt(s, { locale: r }), c = [];
145
145
  for (let a = 0; a < 6; a++) {
146
- const l = ye(wr(i, a), r);
146
+ const l = Me(wr(i, a), r);
147
147
  if (a > 0 && l.startMonth !== e && !n)
148
148
  return c;
149
149
  c.push(l);
150
150
  }
151
151
  return c;
152
- }, ye = (t, e) => {
153
- const r = Dt(Z(t, 7)) !== Dt(t);
152
+ }, Me = (t, e) => {
153
+ const r = pt(Z(t, 7)) !== pt(t);
154
154
  return {
155
155
  weekNumber: Fe(t, { locale: e }),
156
- startMonth: Dt(t),
156
+ startMonth: pt(t),
157
157
  startYear: Lt(t),
158
- endMonth: Dt(Z(t, 6)),
158
+ endMonth: pt(Z(t, 6)),
159
159
  endYear: Lt(Z(t, 6)),
160
160
  days: Jr(t, e),
161
161
  isLastWeekOfMonth: r
@@ -164,13 +164,13 @@ const Ae = (t, e, r, n) => {
164
164
  const r = yr(t);
165
165
  return {
166
166
  date: t,
167
- name: $(t, "EEE", e ? { locale: e } : void 0),
168
- fullName: $(t, "EEEE", e ? { locale: e } : void 0),
169
- dateString: $(Ce(t, 12), at.fullDate),
167
+ name: O(t, "EEE", e ? { locale: e } : void 0),
168
+ fullName: O(t, "EEEE", e ? { locale: e } : void 0),
169
+ dateString: O(Ce(t, 12), at.fullDate),
170
170
  weekNumber: Fe(t, { locale: e }),
171
171
  year: Lt(t),
172
- month: Dt(t),
173
- dayOfMonth: qt(t),
172
+ month: pt(t),
173
+ dayOfMonth: Jt(t),
174
174
  dayOfWeek: r,
175
175
  isFirstDayOfWeek: r === 1,
176
176
  isLastDayOfWeek: r === 7,
@@ -387,7 +387,7 @@ const Ae = (t, e, r, n) => {
387
387
  }
388
388
  )
389
389
  }
390
- ), f = te.td({
390
+ ), m = ee.td({
391
391
  ...a.CalendarDay.tdStyle && a.CalendarDay.tdStyle(
392
392
  d,
393
393
  s,
@@ -396,7 +396,7 @@ const Ae = (t, e, r, n) => {
396
396
  n,
397
397
  i
398
398
  )
399
- }), m = te.div({
399
+ }), h = ee.div({
400
400
  ...a.CalendarDay.innerWrapperStyle && a.CalendarDay.innerWrapperStyle(
401
401
  d,
402
402
  s,
@@ -407,7 +407,7 @@ const Ae = (t, e, r, n) => {
407
407
  ),
408
408
  width: "100%",
409
409
  height: "100%"
410
- }), h = te.div({
410
+ }), f = ee.div({
411
411
  ...a.CalendarDay.cellWrapperStyle && a.CalendarDay.cellWrapperStyle(
412
412
  d,
413
413
  s,
@@ -419,12 +419,12 @@ const Ae = (t, e, r, n) => {
419
419
  width: "100%",
420
420
  height: "100%",
421
421
  position: "relative"
422
- }), D = nn(d, s);
422
+ }), g = nn(d, s);
423
423
  return /* @__PURE__ */ o(
424
- f,
424
+ m,
425
425
  {
426
- onClick: D ? void 0 : (g) => c == null ? void 0 : c(e, i, g),
427
- children: /* @__PURE__ */ o(m, { children: /* @__PURE__ */ o(h, { children: e.month === n.monthInYear && /* @__PURE__ */ N(ue, { children: [
426
+ onClick: g ? void 0 : (b) => c == null ? void 0 : c(e, i, b),
427
+ children: /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(f, { children: e.month === n.monthInYear && /* @__PURE__ */ N(fe, { children: [
428
428
  l && /* @__PURE__ */ o(
429
429
  l,
430
430
  {
@@ -500,7 +500,7 @@ const Ae = (t, e, r, n) => {
500
500
  day: i,
501
501
  ...c
502
502
  }) {
503
- const a = T(
503
+ const a = R(
504
504
  () => cn(i.date, r, n) ? s : ze(s, ["disabled"]),
505
505
  [i.date, s, n, r]
506
506
  );
@@ -518,76 +518,76 @@ function an({
518
518
  onClickWeekDay: l,
519
519
  onClickMonth: d,
520
520
  renderWeekNumber: u,
521
- renderWeekDay: f,
522
- headerRightContent: m,
523
- theme: h = Mt,
524
- extraDayContent: D,
525
- defaultHighlights: g,
521
+ renderWeekDay: m,
522
+ headerRightContent: h,
523
+ theme: f = Mt,
524
+ extraDayContent: g,
525
+ defaultHighlights: b,
526
526
  showWeekNumber: w
527
527
  }) {
528
- return /* @__PURE__ */ o(ue, { children: /* @__PURE__ */ N(B, { alignItems: "stretch", children: [
528
+ return /* @__PURE__ */ o(fe, { children: /* @__PURE__ */ N(B, { alignItems: "stretch", children: [
529
529
  /* @__PURE__ */ N(
530
- P,
530
+ H,
531
531
  {
532
- justifyContent: m ? "space-between" : "center",
532
+ justifyContent: h ? "space-between" : "center",
533
533
  alignItems: "center",
534
534
  children: [
535
- /* @__PURE__ */ o(P, { justifyContent: "center", alignItems: "center", children: d ? /* @__PURE__ */ o(
535
+ /* @__PURE__ */ o(H, { justifyContent: "center", alignItems: "center", children: d ? /* @__PURE__ */ o(
536
536
  tt,
537
537
  {
538
538
  onClick: () => d(t),
539
539
  label: t.name + " " + String(t.year),
540
- rightIcon: he
540
+ rightIcon: me
541
541
  }
542
542
  ) : /* @__PURE__ */ N(yt, { whiteSpace: "nowrap", children: [
543
543
  t.name,
544
544
  " ",
545
545
  t.year
546
546
  ] }) }),
547
- m && /* @__PURE__ */ o(B, { alignItems: "center", children: m })
547
+ h && /* @__PURE__ */ o(B, { alignItems: "center", children: h })
548
548
  ]
549
549
  }
550
550
  ),
551
551
  /* @__PURE__ */ o("table", { children: /* @__PURE__ */ N("tbody", { children: [
552
552
  /* @__PURE__ */ N("tr", { children: [
553
- w && /* @__PURE__ */ o("td", { children: /* @__PURE__ */ o(B, { width: h.width, height: h.height }) }),
554
- t.weeks[0].days.map((y) => /* @__PURE__ */ o("td", { children: f ? f(y.name, h, l) : /* @__PURE__ */ o(
553
+ w && /* @__PURE__ */ o("td", { children: /* @__PURE__ */ o(B, { width: f.width, height: f.height }) }),
554
+ t.weeks[0].days.map((p) => /* @__PURE__ */ o("td", { children: m ? m(p.name, f, l) : /* @__PURE__ */ o(
555
555
  rn,
556
556
  {
557
- day: y,
557
+ day: p,
558
558
  onClickWeekDay: l,
559
- theme: h
559
+ theme: f
560
560
  }
561
- ) }, y.name))
561
+ ) }, p.name))
562
562
  ] }),
563
- t.weeks.map((y) => /* @__PURE__ */ N("tr", { children: [
564
- w && /* @__PURE__ */ o("td", { children: u ? u(y, h, a) : /* @__PURE__ */ o(
563
+ t.weeks.map((p) => /* @__PURE__ */ N("tr", { children: [
564
+ w && /* @__PURE__ */ o("td", { children: u ? u(p, f, a) : /* @__PURE__ */ o(
565
565
  sn,
566
566
  {
567
- week: y,
567
+ week: p,
568
568
  onClickWeek: a,
569
- theme: h
569
+ theme: f
570
570
  }
571
571
  ) }),
572
- y.days.map((b) => /* @__PURE__ */ o(
572
+ p.days.map((D) => /* @__PURE__ */ o(
573
573
  on,
574
574
  {
575
575
  dayComponent: e,
576
- day: b,
577
- week: y,
576
+ day: D,
577
+ week: p,
578
578
  month: t,
579
- dayState: r && r[y.weekNumber] && r[y.weekNumber][b.dayOfMonth],
580
- userData: n && n[y.weekNumber] && n[y.weekNumber][b.dayOfMonth],
579
+ dayState: r && r[p.weekNumber] && r[p.weekNumber][D.dayOfMonth],
580
+ userData: n && n[p.weekNumber] && n[p.weekNumber][D.dayOfMonth],
581
581
  onClickDay: c,
582
- theme: h,
583
- extraDayContent: D,
584
- defaultHighlights: g,
582
+ theme: f,
583
+ extraDayContent: g,
584
+ defaultHighlights: b,
585
585
  minDate: s,
586
586
  maxDate: i
587
587
  },
588
- b.dateString
588
+ D.dateString
589
589
  ))
590
- ] }, y.weekNumber))
590
+ ] }, p.weekNumber))
591
591
  ] }) })
592
592
  ] }) });
593
593
  }
@@ -603,17 +603,17 @@ function ln({
603
603
  onClickWeek: l,
604
604
  onClickMonth: d,
605
605
  renderWeekDay: u,
606
- renderWeekNumber: f,
607
- headerRightContent: m,
608
- extraDayContent: h,
609
- defaultHighlights: D,
610
- showWeekNumber: g,
606
+ renderWeekNumber: m,
607
+ headerRightContent: h,
608
+ extraDayContent: f,
609
+ defaultHighlights: g,
610
+ showWeekNumber: b,
611
611
  theme: w = Mt
612
612
  }) {
613
- const y = T(
613
+ const p = R(
614
614
  () => s ? bt(s, "yyyy-MM-dd", /* @__PURE__ */ new Date()) : void 0,
615
615
  [s]
616
- ), b = T(
616
+ ), D = R(
617
617
  () => i ? bt(i, "yyyy-MM-dd", /* @__PURE__ */ new Date()) : void 0,
618
618
  [i]
619
619
  );
@@ -622,35 +622,35 @@ function ln({
622
622
  {
623
623
  className: wt(
624
624
  _e.calendar,
625
- g && _e.weekNumberVisible
625
+ b && _e.weekNumberVisible
626
626
  ),
627
- children: t.map((p, S) => /* @__PURE__ */ o(or, { children: /* @__PURE__ */ o(P, { gap: 2, children: p.map((I) => /* @__PURE__ */ o(
627
+ children: t.map((M, k) => /* @__PURE__ */ o(or, { children: /* @__PURE__ */ o(H, { gap: 2, children: M.map((T) => /* @__PURE__ */ o(
628
628
  an,
629
629
  {
630
- month: I,
630
+ month: T,
631
631
  dayComponent: e,
632
- userDataPerWeek: r && r[I.monthString],
633
- statePerWeek: n && n[I.monthString],
632
+ userDataPerWeek: r && r[T.monthString],
633
+ statePerWeek: n && n[T.monthString],
634
634
  onClickDay: c,
635
635
  onClickWeekDay: a,
636
636
  onClickWeek: l,
637
637
  onClickMonth: d,
638
638
  theme: w,
639
- renderWeekNumber: f,
639
+ renderWeekNumber: m,
640
640
  renderWeekDay: u,
641
- headerRightContent: m,
642
- extraDayContent: h,
643
- defaultHighlights: D,
644
- minDate: y,
645
- maxDate: b,
646
- showWeekNumber: g ?? !1
641
+ headerRightContent: h,
642
+ extraDayContent: f,
643
+ defaultHighlights: g,
644
+ minDate: p,
645
+ maxDate: D,
646
+ showWeekNumber: b ?? !1
647
647
  },
648
- I.name
649
- )) }) }, S))
648
+ T.name
649
+ )) }) }, k))
650
650
  }
651
651
  );
652
652
  }
653
- function ce(t) {
653
+ function oe(t) {
654
654
  const e = dn(t.year, t.month, t.date), { year: r, month: n } = Qr(
655
655
  e.year,
656
656
  e.month
@@ -683,15 +683,15 @@ const dn = (t, e, r) => {
683
683
  };
684
684
  if (r)
685
685
  return {
686
- month: Dt(r),
686
+ month: pt(r),
687
687
  year: Lt(r)
688
688
  };
689
689
  const n = /* @__PURE__ */ new Date();
690
690
  return {
691
- month: Dt(n),
691
+ month: pt(n),
692
692
  year: Lt(n)
693
693
  };
694
- }, un = (t, e, r, n, s) => n == null ? [[Qt(t, e, r)]] : s == null ? [Ae(t, e, n, r)] : je(Ae(t, e, n, r), s), qe = (t, e) => `${t.row}-${t.column}-${e}`, fn = (t, e, r, n) => {
694
+ }, un = (t, e, r, n, s) => n == null ? [[Xt(t, e, r)]] : s == null ? [Ae(t, e, n, r)] : je(Ae(t, e, n, r), s), qe = (t, e) => `${t.row}-${t.column}-${e}`, fn = (t, e, r, n) => {
695
695
  let s = e;
696
696
  for (let i = 0; i < n; i++) {
697
697
  s = hn(s, t, n);
@@ -743,7 +743,7 @@ const dn = (t, e, r) => {
743
743
  for (const r of e)
744
744
  if (Tt[r].code === t.code)
745
745
  return r;
746
- }, Dn = ({
746
+ }, pn = ({
747
747
  month: t,
748
748
  onClick: e,
749
749
  selected: r,
@@ -753,58 +753,58 @@ const dn = (t, e, r) => {
753
753
  position: c,
754
754
  size: a
755
755
  }) => {
756
- const l = T(
756
+ const l = R(
757
757
  () => Rt(n) ?? Rt("en-GB"),
758
758
  [n]
759
- ), d = T(
760
- () => vt($(t, "MMM", { locale: l })),
759
+ ), d = R(
760
+ () => vt(O(t, "MMM", { locale: l })),
761
761
  [l, t]
762
- ), u = T(
763
- () => vt($(t, "MMMM", { locale: l })),
762
+ ), u = R(
763
+ () => vt(O(t, "MMMM", { locale: l })),
764
764
  [l, t]
765
- ), f = U(null), m = qe(c, i), h = r ? 0 : -1;
765
+ ), m = U(null), h = qe(c, i), f = r ? 0 : -1;
766
766
  rt(() => {
767
- var g;
768
- (g = f.current) == null || g.focus();
767
+ var b;
768
+ (b = m.current) == null || b.focus();
769
769
  }, []);
770
- const D = M(
771
- (g) => {
772
- var y;
770
+ const g = y(
771
+ (b) => {
772
+ var p;
773
773
  const w = fn(
774
- g.key,
774
+ b.key,
775
775
  c,
776
776
  i,
777
777
  4
778
778
  );
779
- w && ((y = document.getElementById(w)) == null || y.focus());
779
+ w && ((p = document.getElementById(w)) == null || p.focus());
780
780
  },
781
781
  [i, c]
782
782
  );
783
- return /* @__PURE__ */ o(P, { justifyContent: "center", onKeyDown: D, children: r ? /* @__PURE__ */ o(
783
+ return /* @__PURE__ */ o(H, { justifyContent: "center", onKeyDown: g, children: r ? /* @__PURE__ */ o(
784
784
  It,
785
785
  {
786
- id: m,
786
+ id: h,
787
787
  "aria-label": u,
788
788
  label: d,
789
789
  onClick: e,
790
790
  "aria-selected": !0,
791
791
  autoFocus: s,
792
- ref: f,
792
+ ref: m,
793
793
  size: a === "large" ? "large" : "medium",
794
- tabIndex: h
794
+ tabIndex: f
795
795
  }
796
796
  ) : /* @__PURE__ */ o(
797
797
  tt,
798
798
  {
799
- id: m,
799
+ id: h,
800
800
  label: d,
801
801
  "aria-label": u,
802
802
  onClick: e,
803
803
  size: a === "large" ? "large" : "medium",
804
- tabIndex: h
804
+ tabIndex: f
805
805
  }
806
806
  ) });
807
- }, pn = (t, e, r) => {
807
+ }, Dn = (t, e, r) => {
808
808
  let n = t.getFullYear(), s = 0, i = 0, c = t;
809
809
  const a = {
810
810
  yearOrder: [],
@@ -830,7 +830,7 @@ const dn = (t, e, r) => {
830
830
  c = Ht(c, 1), c.getFullYear() !== n ? (a.years[n].rows.push(s), n++, i = 0, s++) : (i++, i > r - 1 && (a.years[n].rows.push(s), i = 0, s++));
831
831
  }
832
832
  return a.lastMonthColumn = i, a.lastMonthRow = s, a;
833
- }, Me = () => T(() => /* @__PURE__ */ new Date(), []), $t = ({
833
+ }, $t = ({
834
834
  value: t,
835
835
  onValueChange: e,
836
836
  firstMonth: r,
@@ -839,39 +839,39 @@ const dn = (t, e, r) => {
839
839
  onCancel: i,
840
840
  size: c = "medium"
841
841
  }) => {
842
- const a = we(), l = Me(), d = s > 0 ? s : 12, [u, f] = R(!1), m = pn(r, d, wn(c)), h = T(() => Ht(r, d), [d, r]);
842
+ const a = ye(), l = Gt(), d = s > 0 ? s : 12, [u, m] = I(!1), h = Dn(r, d, wn(c)), f = R(() => Ht(r, d), [d, r]);
843
843
  rt(() => {
844
- f(!0);
844
+ m(!0);
845
845
  }, []);
846
- const D = M(
847
- (g) => {
848
- g.key === "Escape" && (i == null || i(), g.preventDefault(), g.stopPropagation());
846
+ const g = y(
847
+ (b) => {
848
+ b.key === "Escape" && (i == null || i(), b.preventDefault(), b.stopPropagation());
849
849
  },
850
850
  [i]
851
851
  );
852
- return /* @__PURE__ */ o(Q, { gap: 1, maxWidth: bn(c), onKeyDown: D, children: m.yearOrder.map((g, w) => {
853
- const { rows: y } = m.years[g];
854
- return /* @__PURE__ */ N(be.Fragment, { children: [
855
- (w !== 0 || g !== l.getFullYear()) && /* @__PURE__ */ o(Yt, { variant: "h4", children: g }),
856
- /* @__PURE__ */ o("table", { style: { borderSpacing: "0 8px" }, children: /* @__PURE__ */ o("tbody", { children: y.map((b) => {
857
- const { columns: p } = m.rows[b];
858
- return /* @__PURE__ */ o("tr", { children: p.map(({ month: S, position: I }) => /* @__PURE__ */ o("td", { children: /* @__PURE__ */ o(
859
- Dn,
852
+ return /* @__PURE__ */ o(Q, { gap: 1, maxWidth: bn(c), onKeyDown: g, children: h.yearOrder.map((b, w) => {
853
+ const { rows: p } = h.years[b];
854
+ return /* @__PURE__ */ N(we.Fragment, { children: [
855
+ (w !== 0 || b !== l.getFullYear()) && /* @__PURE__ */ o(Yt, { variant: "h4", children: b }),
856
+ /* @__PURE__ */ o("table", { style: { borderSpacing: "0 8px" }, children: /* @__PURE__ */ o("tbody", { children: p.map((D) => {
857
+ const { columns: M } = h.rows[D];
858
+ return /* @__PURE__ */ o("tr", { children: M.map(({ month: k, position: T }) => /* @__PURE__ */ o("td", { children: /* @__PURE__ */ o(
859
+ pn,
860
860
  {
861
- month: S,
861
+ month: k,
862
862
  firstAvailableMonth: r,
863
- lastAvailableMonth: h,
863
+ lastAvailableMonth: f,
864
864
  localeCode: n,
865
- selected: t ? ot(t, S) : !1,
865
+ selected: t ? ot(t, k) : !1,
866
866
  autoFocus: u,
867
- onClick: () => e == null ? void 0 : e(S),
867
+ onClick: () => e == null ? void 0 : e(k),
868
868
  monthPickerId: a,
869
- position: I,
869
+ position: T,
870
870
  size: c
871
871
  }
872
- ) }, S.getMonth())) }, b);
872
+ ) }, k.getMonth())) }, D);
873
873
  }) }) })
874
- ] }, g);
874
+ ] }, b);
875
875
  }) });
876
876
  }, bn = (t) => {
877
877
  switch (t) {
@@ -882,7 +882,7 @@ const dn = (t, e, r) => {
882
882
  case "large":
883
883
  return "448px";
884
884
  default:
885
- return fe(t, "336px");
885
+ return he(t, "336px");
886
886
  }
887
887
  }, wn = (t) => {
888
888
  switch (t) {
@@ -893,7 +893,7 @@ const dn = (t, e, r) => {
893
893
  case "large":
894
894
  return 5;
895
895
  default:
896
- return fe(t, 4);
896
+ return he(t, 4);
897
897
  }
898
898
  }, yn = (t) => [
899
899
  {
@@ -917,10 +917,10 @@ const dn = (t, e, r) => {
917
917
  ], Mn = ({
918
918
  onClickPreset: t
919
919
  }) => {
920
- const [e, r] = R(0), n = T(() => yn(/* @__PURE__ */ new Date()), []), s = n[e] ?? n[0];
920
+ const [e, r] = I(0), n = R(() => yn(/* @__PURE__ */ new Date()), []), s = n[e] ?? n[0];
921
921
  return /* @__PURE__ */ N(Q, { children: [
922
922
  /* @__PURE__ */ N(
923
- P,
923
+ H,
924
924
  {
925
925
  justifyContent: "space-between",
926
926
  alignItems: "center",
@@ -949,7 +949,7 @@ const dn = (t, e, r) => {
949
949
  }
950
950
  ),
951
951
  /* @__PURE__ */ o(St, {}),
952
- /* @__PURE__ */ o(Q, { alignItems: "center", children: s.presets.map((i) => /* @__PURE__ */ N(be.Fragment, { children: [
952
+ /* @__PURE__ */ o(Q, { alignItems: "center", children: s.presets.map((i) => /* @__PURE__ */ N(we.Fragment, { children: [
953
953
  /* @__PURE__ */ o(
954
954
  It,
955
955
  {
@@ -963,49 +963,50 @@ const dn = (t, e, r) => {
963
963
  }, kn = function({
964
964
  locale: e,
965
965
  dateInFocus: r,
966
- setDateInFocus: n,
967
- currentPanel: s,
968
- setCurrentPanel: i,
969
- renderMonthPicker: c,
970
- ...a
966
+ firstMonthInMonthPicker: n,
967
+ setDateInFocus: s,
968
+ currentPanel: i,
969
+ setCurrentPanel: c,
970
+ renderMonthPicker: a,
971
+ ...l
971
972
  }) {
972
- const l = T(
973
+ const d = R(
973
974
  () => e == null ? "en-GB" : gn(e) ?? "en-GB",
974
975
  [e]
975
- ), d = M(
976
+ ), u = Gt(), m = y(
976
977
  (f) => {
977
- n && n(f), i("calendar");
978
+ s && s(f), c("calendar");
978
979
  },
979
- [n, i]
980
- ), u = M(() => {
981
- i("month");
982
- }, [i]);
983
- switch (s) {
980
+ [s, c]
981
+ ), h = y(() => {
982
+ c("month");
983
+ }, [c]);
984
+ switch (i) {
984
985
  case "calendar":
985
986
  return /* @__PURE__ */ o(
986
- ce,
987
+ oe,
987
988
  {
988
- ...a,
989
+ ...l,
989
990
  date: r,
990
- onClickMonth: u,
991
+ onClickMonth: h,
991
992
  locale: e
992
993
  }
993
994
  );
994
995
  case "month":
995
- return c ? c({
996
+ return a ? a({
996
997
  value: r,
997
- onValueChange: d,
998
+ onValueChange: m,
998
999
  locale: e,
999
- firstMonth: /* @__PURE__ */ new Date(),
1000
+ firstMonth: n ?? u,
1000
1001
  numMonths: 24,
1001
1002
  dateInFocus: r
1002
1003
  }) : /* @__PURE__ */ o(
1003
1004
  $t,
1004
1005
  {
1005
1006
  value: r,
1006
- onValueChange: d,
1007
- localeCode: l,
1008
- firstMonth: /* @__PURE__ */ new Date(),
1007
+ onValueChange: m,
1008
+ localeCode: d,
1009
+ firstMonth: n ?? u,
1009
1010
  numMonths: 24
1010
1011
  }
1011
1012
  );
@@ -1017,21 +1018,21 @@ const dn = (t, e, r) => {
1017
1018
  It,
1018
1019
  {
1019
1020
  label: "Show calendar",
1020
- onClick: () => i("calendar")
1021
+ onClick: () => c("calendar")
1021
1022
  }
1022
1023
  ) });
1023
1024
  }
1024
1025
  }, Sn = (t, e, r, n) => {
1025
- const s = M(() => {
1026
+ const s = y(() => {
1026
1027
  const l = Ht(t, r ?? n ?? 1);
1027
1028
  e == null || e(l);
1028
- }, [e, t, r, n]), i = M(() => {
1029
+ }, [e, t, r, n]), i = y(() => {
1029
1030
  const l = Mr(t, 1);
1030
1031
  e == null || e(l);
1031
- }, [e, t]), c = M(() => {
1032
- const l = ge(t, r ?? n ?? 1);
1032
+ }, [e, t]), c = y(() => {
1033
+ const l = pe(t, r ?? n ?? 1);
1033
1034
  e == null || e(l);
1034
- }, [e, t, r, n]), a = M(() => {
1035
+ }, [e, t, r, n]), a = y(() => {
1035
1036
  const l = kr(t, 1);
1036
1037
  e == null || e(l);
1037
1038
  }, [e, t]);
@@ -1049,9 +1050,9 @@ const dn = (t, e, r) => {
1049
1050
  nextYear: s
1050
1051
  }) => /* @__PURE__ */ N("div", { children: [
1051
1052
  t,
1052
- /* @__PURE__ */ o(_t, { children: /* @__PURE__ */ N(P, { gap: 1, children: [
1053
+ /* @__PURE__ */ o(_t, { children: /* @__PURE__ */ N(H, { gap: 1, children: [
1053
1054
  /* @__PURE__ */ o(ft, { onClick: n, leftIcon: ur }),
1054
- /* @__PURE__ */ o(ft, { onClick: e, leftIcon: Gt }),
1055
+ /* @__PURE__ */ o(ft, { onClick: e, leftIcon: qt }),
1055
1056
  /* @__PURE__ */ o(_t, { num: 2 }),
1056
1057
  /* @__PURE__ */ o(ft, { onClick: r, leftIcon: Pt }),
1057
1058
  /* @__PURE__ */ o(ft, { onClick: s, leftIcon: fr })
@@ -1065,57 +1066,59 @@ function kt({
1065
1066
  dateInFocus: r,
1066
1067
  setDateInFocus: n,
1067
1068
  currentPanel: s,
1068
- setCurrentPanel: i,
1069
- onSelectPreset: c = Rn,
1070
- renderMonthPicker: a,
1071
- ...l
1069
+ firstMonthInMonthPicker: i,
1070
+ setCurrentPanel: c,
1071
+ onSelectPreset: a = Rn,
1072
+ renderMonthPicker: l,
1073
+ ...d
1072
1074
  }) {
1073
- const { nextMonth: d, prevMonth: u, nextYear: f, prevYear: m } = Sn(
1075
+ const { nextMonth: u, prevMonth: m, nextYear: h, prevYear: f } = Sn(
1074
1076
  r,
1075
1077
  n,
1076
- l.monthsPerRow,
1077
- l.numMonths
1078
+ d.monthsPerRow,
1079
+ d.numMonths
1078
1080
  );
1079
1081
  switch (In(
1080
1082
  t,
1081
- l.numMonths
1083
+ d.numMonths
1082
1084
  )) {
1083
1085
  case "below":
1084
1086
  return /* @__PURE__ */ o(
1085
1087
  Tn,
1086
1088
  {
1087
1089
  theme: e,
1088
- nextMonth: d,
1089
- prevMonth: u,
1090
- nextYear: f,
1091
- prevYear: m,
1092
- children: /* @__PURE__ */ o(ce, { ...l, theme: e, date: r })
1090
+ nextMonth: u,
1091
+ prevMonth: m,
1092
+ nextYear: h,
1093
+ prevYear: f,
1094
+ children: /* @__PURE__ */ o(oe, { ...d, theme: e, date: r })
1093
1095
  }
1094
1096
  );
1095
1097
  case "header":
1096
1098
  return /* @__PURE__ */ o(Q, { children: /* @__PURE__ */ o(
1097
1099
  kn,
1098
1100
  {
1099
- ...l,
1101
+ ...d,
1100
1102
  theme: e,
1101
- renderMonthPicker: a,
1103
+ renderMonthPicker: l,
1102
1104
  dateInFocus: r,
1105
+ firstMonthInMonthPicker: i,
1103
1106
  setDateInFocus: n,
1104
1107
  currentPanel: s,
1105
- setCurrentPanel: i,
1106
- onSelectPreset: c,
1107
- headerRightContent: /* @__PURE__ */ N(P, { alignItems: "center", gap: 1, children: [
1108
+ setCurrentPanel: c,
1109
+ onSelectPreset: a,
1110
+ headerRightContent: /* @__PURE__ */ N(H, { alignItems: "center", gap: 1, children: [
1108
1111
  /* @__PURE__ */ o(
1109
1112
  ft,
1110
1113
  {
1111
- onClick: u,
1112
- leftIcon: Gt
1114
+ onClick: m,
1115
+ leftIcon: qt
1113
1116
  }
1114
1117
  ),
1115
1118
  /* @__PURE__ */ o(
1116
1119
  ft,
1117
1120
  {
1118
- onClick: d,
1121
+ onClick: u,
1119
1122
  leftIcon: Pt
1120
1123
  }
1121
1124
  )
@@ -1123,12 +1126,12 @@ function kt({
1123
1126
  }
1124
1127
  ) });
1125
1128
  default:
1126
- return /* @__PURE__ */ o(ce, { ...l, theme: e, date: r });
1129
+ return /* @__PURE__ */ o(oe, { ...d, theme: e, date: r });
1127
1130
  }
1128
1131
  }
1129
1132
  const In = (t, e) => t || (e || 1) > 1 ? "below" : "header", En = (t) => ({
1130
- startDate: t.startDate ? $(t.startDate, "yyyy-MM-dd") : void 0,
1131
- endDate: t.endDate ? $(t.endDate, "yyyy-MM-dd") : void 0
1133
+ startDate: t.startDate ? O(t.startDate, "yyyy-MM-dd") : void 0,
1134
+ endDate: t.endDate ? O(t.endDate, "yyyy-MM-dd") : void 0
1132
1135
  }), xn = ({
1133
1136
  startDate: t,
1134
1137
  endDate: e
@@ -1146,7 +1149,7 @@ const In = (t, e) => t || (e || 1) > 1 ? "below" : "header", En = (t) => ({
1146
1149
  endDate: t.startDate
1147
1150
  } : t, ri = (t) => t.startDate && t.endDate ? En(
1148
1151
  Ze(xn(t))
1149
- ) : t, An = (t, e, r, n) => M(
1152
+ ) : t, An = (t, e, r, n) => y(
1150
1153
  (s) => {
1151
1154
  const i = {
1152
1155
  startDate: r === "startDate" ? s.date : t == null ? void 0 : t.startDate,
@@ -1161,8 +1164,8 @@ const In = (t, e) => t || (e || 1) > 1 ? "below" : "header", En = (t) => ({
1161
1164
  t == null ? void 0 : t.endDate,
1162
1165
  t == null ? void 0 : t.startDate
1163
1166
  ]
1164
- ), Xt = (t) => {
1165
- const [e, r] = R("calendar"), n = M(
1167
+ ), Zt = (t) => {
1168
+ const [e, r] = I("calendar"), n = y(
1166
1169
  (s) => {
1167
1170
  r(s), t == null || t(s);
1168
1171
  },
@@ -1181,14 +1184,14 @@ const In = (t, e) => t || (e || 1) > 1 ? "below" : "header", En = (t) => ({
1181
1184
  onChangePanel: i,
1182
1185
  initialDateInFocus: c
1183
1186
  }) => {
1184
- const { currentPanel: a, setCurrentPanel: l } = Xt(i), [d, u] = R(
1187
+ const { currentPanel: a, setCurrentPanel: l } = Zt(i), [d, u] = I(
1185
1188
  () => c ?? /* @__PURE__ */ new Date()
1186
- ), f = An(
1189
+ ), m = An(
1187
1190
  e,
1188
1191
  r,
1189
1192
  t,
1190
1193
  n
1191
- ), m = T(
1194
+ ), h = R(
1192
1195
  () => Bt(
1193
1196
  s,
1194
1197
  e == null ? void 0 : e.startDate,
@@ -1197,8 +1200,8 @@ const In = (t, e) => t || (e || 1) > 1 ? "below" : "header", En = (t) => ({
1197
1200
  [s, e == null ? void 0 : e.endDate, e == null ? void 0 : e.startDate]
1198
1201
  );
1199
1202
  return {
1200
- onClickDay: f,
1201
- statePerMonth: m,
1203
+ onClickDay: m,
1204
+ statePerMonth: h,
1202
1205
  currentPanel: a,
1203
1206
  setCurrentPanel: l,
1204
1207
  setDateInFocus: u,
@@ -1210,7 +1213,7 @@ function ni(t) {
1210
1213
  return /* @__PURE__ */ o(kt, { ...t, ...e });
1211
1214
  }
1212
1215
  const si = () => {
1213
- const [t, e] = R(), [r, n] = R(), [s, i] = R("startDate");
1216
+ const [t, e] = I(), [r, n] = I(), [s, i] = I("startDate");
1214
1217
  return {
1215
1218
  startDate: t,
1216
1219
  setStartDate: e,
@@ -1225,12 +1228,12 @@ const si = () => {
1225
1228
  statePerMonth: r,
1226
1229
  onChangePanel: n
1227
1230
  }) => {
1228
- const { currentPanel: s, setCurrentPanel: i } = Xt(n), [c, a] = R(() => e ?? /* @__PURE__ */ new Date()), l = M(
1231
+ const { currentPanel: s, setCurrentPanel: i } = Zt(n), [c, a] = I(() => e ?? /* @__PURE__ */ new Date()), l = y(
1229
1232
  (u) => {
1230
1233
  t && t(u.date);
1231
1234
  },
1232
1235
  [t]
1233
- ), d = T(
1236
+ ), d = R(
1234
1237
  () => e ? ht(r, e, [
1235
1238
  "selected",
1236
1239
  "singleSelected"
@@ -1257,16 +1260,16 @@ const Ln = ({
1257
1260
  statePerMonth: r,
1258
1261
  onChangePanel: n
1259
1262
  }) => {
1260
- const { currentPanel: s, setCurrentPanel: i } = Xt(n), [c, a] = R(() => /* @__PURE__ */ new Date()), l = M(
1263
+ const { currentPanel: s, setCurrentPanel: i } = Zt(n), [c, a] = I(() => /* @__PURE__ */ new Date()), l = y(
1261
1264
  (u) => {
1262
1265
  if (!t)
1263
1266
  return;
1264
- const f = e && e.find((m) => Y(m, u.date));
1265
- t(e && f ? e.filter((m) => !Y(m, u.date)) : [...e || [], u.date]);
1267
+ const m = e && e.find((h) => Y(h, u.date));
1268
+ t(e && m ? e.filter((h) => !Y(h, u.date)) : [...e || [], u.date]);
1266
1269
  },
1267
1270
  [t, e]
1268
- ), d = T(() => e ? e.reduce(
1269
- (u, f) => ht(u, f, ["selected"]),
1271
+ ), d = R(() => e ? e.reduce(
1272
+ (u, m) => ht(u, m, ["selected"]),
1270
1273
  r
1271
1274
  ) : r, [r, e]);
1272
1275
  return {
@@ -1289,29 +1292,29 @@ const vn = ({
1289
1292
  onChangePanel: n,
1290
1293
  locale: s = De
1291
1294
  }) => {
1292
- const [i, c] = R(() => {
1293
- const h = ee(e, s);
1294
- return h ? h.days[0].date : /* @__PURE__ */ new Date();
1295
- }), { currentPanel: a, setCurrentPanel: l } = Xt(n), d = M(
1296
- (h) => {
1297
- t && t(Ne(ye(h.date, s)));
1295
+ const [i, c] = I(() => {
1296
+ const f = re(e, s);
1297
+ return f ? f.days[0].date : /* @__PURE__ */ new Date();
1298
+ }), { currentPanel: a, setCurrentPanel: l } = Zt(n), d = y(
1299
+ (f) => {
1300
+ t && t(Ne(Me(f.date, s)));
1298
1301
  },
1299
1302
  [s, t]
1300
- ), u = M(
1301
- (h) => {
1302
- t && t(Ne(h));
1303
+ ), u = y(
1304
+ (f) => {
1305
+ t && t(Ne(f));
1303
1306
  },
1304
1307
  [t]
1305
- ), f = T(() => {
1306
- const h = ee(e, s);
1307
- return h ? Cr(r, h) : r;
1308
- }, [e, s, r]), m = T(() => {
1309
- const h = ee(e, s);
1310
- return h ? h.days[0].date : /* @__PURE__ */ new Date();
1308
+ ), m = R(() => {
1309
+ const f = re(e, s);
1310
+ return f ? Cr(r, f) : r;
1311
+ }, [e, s, r]), h = R(() => {
1312
+ const f = re(e, s);
1313
+ return f ? f.days[0].date : /* @__PURE__ */ new Date();
1311
1314
  }, [s, e]);
1312
1315
  return {
1313
- statePerMonth: f,
1314
- date: m,
1316
+ statePerMonth: m,
1317
+ date: h,
1315
1318
  dateInFocus: i,
1316
1319
  setDateInFocus: c,
1317
1320
  onClickDay: d,
@@ -1322,22 +1325,22 @@ const vn = ({
1322
1325
  }, Ne = (t) => {
1323
1326
  if (t)
1324
1327
  return `${t.endYear}-${t.weekNumber}`;
1325
- }, ee = (t, e) => {
1328
+ }, re = (t, e) => {
1326
1329
  if (!t)
1327
1330
  return;
1328
1331
  const r = t.split("-"), n = parseInt(r[1], 10), s = parseInt(r[0], 10), i = /* @__PURE__ */ new Date();
1329
1332
  i.setFullYear(s);
1330
1333
  const c = jt(Sr(i, n), { locale: e });
1331
- return ye(c, e);
1334
+ return Me(c, e);
1332
1335
  };
1333
1336
  function ci(t) {
1334
1337
  const e = vn(t);
1335
1338
  return /* @__PURE__ */ o(kt, { ...t, ...e });
1336
1339
  }
1337
1340
  const Ot = "bottom", Bn = (t, e, r) => {
1338
- const [n, s] = R(r || !1), i = M(() => (s(!0), !0), [s]), c = M(() => {
1341
+ const [n, s] = I(r || !1), i = y(() => (s(!0), !0), [s]), c = y(() => {
1339
1342
  s(!1), e && e();
1340
- }, [s, e]), a = M(
1343
+ }, [s, e]), a = y(
1341
1344
  (l) => {
1342
1345
  t && t(l), setTimeout(c, 150);
1343
1346
  },
@@ -1361,34 +1364,34 @@ const Ot = "bottom", Bn = (t, e, r) => {
1361
1364
  variant: l,
1362
1365
  width: d,
1363
1366
  minDate: u,
1364
- maxDate: f = Ut,
1365
- disabled: m,
1366
- portalTarget: h,
1367
- zIndex: D
1367
+ maxDate: m = Ut,
1368
+ disabled: h,
1369
+ portalTarget: f,
1370
+ zIndex: g
1368
1371
  }) => {
1369
- const { hideCalendar: g, showingCalendar: w, onSelectDate: y, showCalendar: b } = Bn(a, c, i);
1372
+ const { hideCalendar: b, showingCalendar: w, onSelectDate: p, showCalendar: D } = Bn(a, c, i);
1370
1373
  return /* @__PURE__ */ o(B, { width: d, children: /* @__PURE__ */ o(
1371
1374
  Wt,
1372
1375
  {
1373
1376
  hideArrow: !0,
1374
1377
  open: w,
1375
- onRequestClose: g,
1376
- appendTo: h,
1377
- zIndex: D,
1378
- renderTrigger: (p) => /* @__PURE__ */ o(B, { ...p, children: /* @__PURE__ */ o(
1378
+ onRequestClose: b,
1379
+ appendTo: f,
1380
+ zIndex: g,
1381
+ renderTrigger: (M) => /* @__PURE__ */ o(B, { ...M, children: /* @__PURE__ */ o(
1379
1382
  mt,
1380
1383
  {
1381
1384
  type: "date",
1382
- onFocus: b,
1383
- buttonRight: /* @__PURE__ */ o(hr, { onClick: b, icon: Nt }),
1384
- value: r ? $(r, t) : "",
1385
+ onFocus: D,
1386
+ buttonRight: /* @__PURE__ */ o(hr, { onClick: D, icon: Nt }),
1387
+ value: r ? O(r, t) : "",
1385
1388
  placeholder: e,
1386
1389
  size: 9,
1387
- disabled: m,
1390
+ disabled: h,
1388
1391
  autoFocus: i,
1389
1392
  variant: l,
1390
1393
  min: u,
1391
- max: f
1394
+ max: m
1392
1395
  }
1393
1396
  ) }),
1394
1397
  placement: Ot,
@@ -1396,31 +1399,31 @@ const Ot = "bottom", Bn = (t, e, r) => {
1396
1399
  Ve,
1397
1400
  {
1398
1401
  ...s,
1399
- onChange: y,
1402
+ onChange: p,
1400
1403
  value: r,
1401
1404
  theme: n,
1402
1405
  minDate: u,
1403
- maxDate: f
1406
+ maxDate: m
1404
1407
  }
1405
1408
  )
1406
1409
  }
1407
1410
  ) });
1408
1411
  }, Yn = (t, e) => {
1409
- const r = U(null), n = U(null), [s, i] = R(!1), [c, a] = R(void 0), l = M(() => (a("startDate"), i(!0), !0), [a, i]), d = M(() => (a("endDate"), i(!0), !0), [a, i]), u = M(() => {
1412
+ const r = U(null), n = U(null), [s, i] = I(!1), [c, a] = I(void 0), l = y(() => (a("startDate"), i(!0), !0), [a, i]), d = y(() => (a("endDate"), i(!0), !0), [a, i]), u = y(() => {
1410
1413
  i(!1);
1411
- }, [i]), f = M(
1412
- (h) => {
1413
- var D, g;
1414
+ }, [i]), m = y(
1415
+ (f) => {
1416
+ var g, b;
1414
1417
  c === "startDate" ? (e == null || e({
1415
- startDate: h.date,
1418
+ startDate: f.date,
1416
1419
  endDate: t == null ? void 0 : t.endDate
1417
- }), t != null && t.endDate ? setTimeout(u, 150) : (a("endDate"), (D = n.current) == null || D.focus())) : c === "endDate" && (e == null || e({
1420
+ }), t != null && t.endDate ? setTimeout(u, 150) : (a("endDate"), (g = n.current) == null || g.focus())) : c === "endDate" && (e == null || e({
1418
1421
  startDate: t == null ? void 0 : t.startDate,
1419
- endDate: h.date
1420
- }), t != null && t.startDate ? setTimeout(u, 150) : (a("startDate"), (g = r.current) == null || g.focus()));
1422
+ endDate: f.date
1423
+ }), t != null && t.startDate ? setTimeout(u, 150) : (a("startDate"), (b = r.current) == null || b.focus()));
1421
1424
  },
1422
1425
  [c, e, a, u, t]
1423
- ), m = T(
1426
+ ), h = R(
1424
1427
  () => (t == null ? void 0 : t.startDate) && (t == null ? void 0 : t.endDate) && V(t.startDate, t.endDate),
1425
1428
  [t == null ? void 0 : t.startDate, t == null ? void 0 : t.endDate]
1426
1429
  );
@@ -1433,8 +1436,8 @@ const Ot = "bottom", Bn = (t, e, r) => {
1433
1436
  setFocusedInput: a,
1434
1437
  startDateInputRef: r,
1435
1438
  endDateInputRef: n,
1436
- onClickDay: f,
1437
- startDateIsAfterEnd: m
1439
+ onClickDay: m,
1440
+ startDateIsAfterEnd: h
1438
1441
  };
1439
1442
  };
1440
1443
  function ai({
@@ -1449,22 +1452,22 @@ function ai({
1449
1452
  minDate: l,
1450
1453
  maxDate: d = Ut,
1451
1454
  disabled: u,
1452
- portalTarget: f,
1453
- zIndex: m
1455
+ portalTarget: m,
1456
+ zIndex: h
1454
1457
  }) {
1455
- const [h, D] = R("calendar"), {
1456
- hideCalendar: g,
1458
+ const [f, g] = I("calendar"), {
1459
+ hideCalendar: b,
1457
1460
  showCalendarEndDate: w,
1458
- showCalendarStartDate: y,
1459
- showingCalendar: b,
1460
- focusedInput: p,
1461
- startDateInputRef: S,
1462
- endDateInputRef: I,
1461
+ showCalendarStartDate: p,
1462
+ showingCalendar: D,
1463
+ focusedInput: M,
1464
+ startDateInputRef: k,
1465
+ endDateInputRef: T,
1463
1466
  onClickDay: L,
1464
- startDateIsAfterEnd: x
1465
- } = Yn(n, s), [A, k] = R(
1466
- () => (p && (n == null ? void 0 : n[p])) ?? /* @__PURE__ */ new Date()
1467
- ), _ = T(
1467
+ startDateIsAfterEnd: A
1468
+ } = Yn(n, s), [E, S] = I(
1469
+ () => (M && (n == null ? void 0 : n[M])) ?? /* @__PURE__ */ new Date()
1470
+ ), _ = R(
1468
1471
  () => Bt(void 0, n == null ? void 0 : n.startDate, n == null ? void 0 : n.endDate),
1469
1472
  [n]
1470
1473
  );
@@ -1472,21 +1475,21 @@ function ai({
1472
1475
  Wt,
1473
1476
  {
1474
1477
  hideArrow: !0,
1475
- appendTo: f,
1476
- zIndex: m,
1477
- renderTrigger: (H) => /* @__PURE__ */ N(P, { alignItems: "center", ...H, children: [
1478
+ appendTo: m,
1479
+ zIndex: h,
1480
+ renderTrigger: (P) => /* @__PURE__ */ N(H, { alignItems: "center", ...P, children: [
1478
1481
  /* @__PURE__ */ o(
1479
1482
  mt,
1480
1483
  {
1481
1484
  iconLeft: Nt,
1482
- onFocus: y,
1483
- value: n != null && n.startDate ? $(n.startDate, t) : "",
1485
+ onFocus: p,
1486
+ value: n != null && n.startDate ? O(n.startDate, t) : "",
1484
1487
  placeholder: e,
1485
1488
  width: i,
1486
1489
  disabled: u,
1487
- inputRef: S,
1490
+ inputRef: k,
1488
1491
  size: 9,
1489
- variant: x ? "error" : void 0
1492
+ variant: A ? "error" : void 0
1490
1493
  }
1491
1494
  ),
1492
1495
  /* @__PURE__ */ o(St, {}),
@@ -1494,7 +1497,7 @@ function ai({
1494
1497
  Pe,
1495
1498
  {
1496
1499
  icon: mr,
1497
- color: Jt("--lhds-color-ui-500"),
1500
+ color: Qt("--lhds-color-ui-500"),
1498
1501
  size: 14
1499
1502
  }
1500
1503
  ),
@@ -1504,30 +1507,30 @@ function ai({
1504
1507
  {
1505
1508
  iconLeft: Nt,
1506
1509
  onFocus: w,
1507
- value: n != null && n.endDate ? $(n.endDate, t) : "",
1510
+ value: n != null && n.endDate ? O(n.endDate, t) : "",
1508
1511
  placeholder: r,
1509
1512
  width: i,
1510
1513
  disabled: u,
1511
- inputRef: I,
1514
+ inputRef: T,
1512
1515
  size: 9,
1513
- variant: x ? "error" : void 0
1516
+ variant: A ? "error" : void 0
1514
1517
  }
1515
1518
  )
1516
1519
  ] }),
1517
- open: b,
1520
+ open: D,
1518
1521
  placement: Ot,
1519
- onRequestClose: g,
1522
+ onRequestClose: b,
1520
1523
  children: /* @__PURE__ */ o(
1521
1524
  kt,
1522
1525
  {
1523
1526
  ...a,
1524
- dateInFocus: A,
1525
- setDateInFocus: k,
1527
+ dateInFocus: E,
1528
+ setDateInFocus: S,
1526
1529
  statePerMonth: _,
1527
1530
  theme: c,
1528
1531
  onClickDay: L,
1529
- currentPanel: h,
1530
- setCurrentPanel: D,
1532
+ currentPanel: f,
1533
+ setCurrentPanel: g,
1531
1534
  minDate: l,
1532
1535
  maxDate: d
1533
1536
  }
@@ -1547,58 +1550,58 @@ const li = ({
1547
1550
  calendarTheme: l = Mt,
1548
1551
  hideCalenderIcon: d = !1,
1549
1552
  minDate: u,
1550
- maxDate: f = Ut,
1551
- variant: m,
1552
- portalTarget: h,
1553
- zIndex: D,
1554
- ...g
1553
+ maxDate: m = Ut,
1554
+ variant: h,
1555
+ portalTarget: f,
1556
+ zIndex: g,
1557
+ ...b
1555
1558
  }) => {
1556
- const [w, y] = R(!1), b = M(() => {
1557
- y(!w);
1558
- }, [y, w]), p = M(() => {
1559
- y(!1);
1560
- }, [y]), S = M(
1559
+ const [w, p] = I(!1), D = y(() => {
1560
+ p(!w);
1561
+ }, [p, w]), M = y(() => {
1562
+ p(!1);
1563
+ }, [p]), k = y(
1561
1564
  (_) => {
1562
1565
  s && s(_);
1563
1566
  },
1564
1567
  [s]
1565
- ), I = M(
1568
+ ), T = y(
1566
1569
  (_) => {
1567
- _ && (S($(_, r)), e && setTimeout(() => y(!w), 200));
1570
+ _ && (k(O(_, r)), e && setTimeout(() => p(!w), 200));
1568
1571
  },
1569
1572
  [
1570
- S,
1573
+ k,
1571
1574
  r,
1572
1575
  e,
1573
- y,
1576
+ p,
1574
1577
  w
1575
1578
  ]
1576
- ), L = !!c && !/^[-/\\.0-9]+$/.test(c), x = !!c && Tr(bt(c, r, /* @__PURE__ */ new Date())), k = !!c && c.length >= r.length && !x || L;
1579
+ ), L = !!c && !/^[-/\\.0-9]+$/.test(c), A = !!c && Tr(bt(c, r, /* @__PURE__ */ new Date())), S = !!c && c.length >= r.length && !A || L;
1577
1580
  return /* @__PURE__ */ o(B, { width: a, children: /* @__PURE__ */ o(
1578
1581
  Wt,
1579
1582
  {
1580
- appendTo: h,
1581
- zIndex: D,
1583
+ appendTo: f,
1584
+ zIndex: g,
1582
1585
  renderTrigger: (_) => /* @__PURE__ */ o(
1583
1586
  mt,
1584
1587
  {
1585
- ...g,
1586
- variant: k ? "error" : m,
1588
+ ...b,
1589
+ variant: S ? "error" : h,
1587
1590
  disableContentPaddingRight: !0,
1588
- contentRight: d ? void 0 : /* @__PURE__ */ o(P, { alignItems: "center", indent: 0.5, children: /* @__PURE__ */ o(
1591
+ contentRight: d ? void 0 : /* @__PURE__ */ o(H, { alignItems: "center", indent: 0.5, children: /* @__PURE__ */ o(
1589
1592
  tt,
1590
1593
  {
1591
1594
  size: "small",
1592
- disabled: g.disabled || n,
1595
+ disabled: b.disabled || n,
1593
1596
  leftIcon: Nt,
1594
- onClick: b
1597
+ onClick: D
1595
1598
  }
1596
1599
  ) }),
1597
- onValueChange: S,
1600
+ onValueChange: k,
1598
1601
  placeholder: i,
1599
1602
  value: c || "",
1600
1603
  min: u,
1601
- max: f,
1604
+ max: m,
1602
1605
  size: 10,
1603
1606
  ..._
1604
1607
  }
@@ -1606,15 +1609,15 @@ const li = ({
1606
1609
  hideArrow: !0,
1607
1610
  open: w,
1608
1611
  placement: Ot,
1609
- onRequestClose: p,
1612
+ onRequestClose: M,
1610
1613
  children: /* @__PURE__ */ o(
1611
1614
  Ve,
1612
1615
  {
1613
1616
  ...t,
1614
- onChange: I,
1615
- value: c && x ? bt(c, r, /* @__PURE__ */ new Date()) : void 0,
1617
+ onChange: T,
1618
+ value: c && A ? bt(c, r, /* @__PURE__ */ new Date()) : void 0,
1616
1619
  minDate: u,
1617
- maxDate: f,
1620
+ maxDate: m,
1618
1621
  theme: l
1619
1622
  }
1620
1623
  )
@@ -1653,7 +1656,7 @@ const li = ({
1653
1656
  throw new Error("Invalid minute string");
1654
1657
  }
1655
1658
  }, Pn = (t) => {
1656
- if (!oe(t))
1659
+ if (!ae(t))
1657
1660
  return { time: t, success: !1 };
1658
1661
  const e = t && t.split(/-|:|,|;|[/]|[.]| /);
1659
1662
  if (e && e.length === 2)
@@ -1687,7 +1690,7 @@ const li = ({
1687
1690
  }
1688
1691
  }
1689
1692
  return { time: t, success: !1 };
1690
- }, oe = (t) => t ? /^[-:.,/; 0-9]+$/.test(t) : !0, di = ({
1693
+ }, ae = (t) => t ? /^[-:.,/; 0-9]+$/.test(t) : !0, di = ({
1691
1694
  onValueChange: t,
1692
1695
  showPlaceholder: e = !0,
1693
1696
  useIcon: r = !0,
@@ -1696,15 +1699,15 @@ const li = ({
1696
1699
  variant: i,
1697
1700
  ...c
1698
1701
  }) => {
1699
- const [a, l] = R(() => oe(n)), d = "hh:mm", u = M(() => {
1702
+ const [a, l] = I(() => ae(n)), d = "hh:mm", u = y(() => {
1700
1703
  if (n) {
1701
- const m = Pn(n);
1702
- l(m.success), m.success && t && t(m.time);
1704
+ const h = Pn(n);
1705
+ l(h.success), h.success && t && t(h.time);
1703
1706
  }
1704
- }, [n, t, l]), f = M(
1705
- (m) => {
1706
- const h = m.target.value, D = oe(h);
1707
- l(D && h.length <= d.length), t && t(h);
1707
+ }, [n, t, l]), m = y(
1708
+ (h) => {
1709
+ const f = h.target.value, g = ae(f);
1710
+ l(g && f.length <= d.length), t && t(f);
1708
1711
  },
1709
1712
  [t, l]
1710
1713
  );
@@ -1717,7 +1720,7 @@ const li = ({
1717
1720
  iconLeft: r ? He : void 0,
1718
1721
  value: n,
1719
1722
  placeholder: e ? d : void 0,
1720
- onChange: f,
1723
+ onChange: m,
1721
1724
  onBlur: u,
1722
1725
  width: s
1723
1726
  }
@@ -1734,83 +1737,83 @@ const li = ({
1734
1737
  placeholderRight: l,
1735
1738
  typeLeft: d,
1736
1739
  typeRight: u,
1737
- onChangeLeft: f,
1738
- onChangeRight: m,
1739
- valueLeft: h,
1740
- valueRight: D,
1741
- minLeft: g,
1740
+ onChangeLeft: m,
1741
+ onChangeRight: h,
1742
+ valueLeft: f,
1743
+ valueRight: g,
1744
+ minLeft: b,
1742
1745
  maxLeft: w,
1743
- minRight: y,
1744
- maxRight: b,
1745
- onClickLeft: p,
1746
- onClickRight: S,
1747
- onClickCalendar: I,
1746
+ minRight: p,
1747
+ maxRight: D,
1748
+ onClickLeft: M,
1749
+ onClickRight: k,
1750
+ onClickCalendar: T,
1748
1751
  onClickArrowDown: L,
1749
- onBlurLeft: x,
1750
- onBlurRight: A,
1751
- onFocusLeft: k,
1752
+ onBlurLeft: A,
1753
+ onBlurRight: E,
1754
+ onFocusLeft: S,
1752
1755
  onFocusRight: _,
1753
- inputRefLeft: H,
1754
- inputRefRight: E,
1756
+ inputRefLeft: P,
1757
+ inputRefRight: x,
1755
1758
  variant: q,
1756
1759
  variantLeft: F,
1757
- variantRight: j,
1758
- onBlur: O,
1759
- showPresets: K,
1760
+ variantRight: K,
1761
+ onBlur: $,
1762
+ showPresets: z,
1760
1763
  widthLeft: J,
1761
1764
  widthRight: X,
1762
- disabled: z
1765
+ disabled: G
1763
1766
  }) => {
1764
- const W = U(0), G = T(
1767
+ const W = U(0), j = R(
1765
1768
  () => Pr((v) => {
1766
- v === 0 && (O == null || O());
1769
+ v === 0 && ($ == null || $());
1767
1770
  }, 10),
1768
- [O]
1769
- ), lt = M(
1771
+ [$]
1772
+ ), lt = y(
1770
1773
  (v) => {
1771
- W.current++, G(W.current), k && k(v);
1774
+ W.current++, j(W.current), S && S(v);
1772
1775
  },
1773
- [k, W, G]
1774
- ), nt = M(
1776
+ [S, W, j]
1777
+ ), nt = y(
1775
1778
  (v) => {
1776
- W.current++, G(W.current), _ && _(v);
1779
+ W.current++, j(W.current), _ && _(v);
1777
1780
  },
1778
- [_, W, G]
1779
- ), st = M(
1781
+ [_, W, j]
1782
+ ), st = y(
1780
1783
  (v) => {
1781
- W.current--, G(W.current), x && x(v);
1784
+ W.current--, j(W.current), A && A(v);
1782
1785
  },
1783
- [x, W, G]
1784
- ), C = M(
1786
+ [A, W, j]
1787
+ ), C = y(
1785
1788
  (v) => {
1786
- W.current--, G(W.current), A && A(v);
1789
+ W.current--, j(W.current), E && E(v);
1787
1790
  },
1788
- [A, W, G]
1791
+ [E, W, j]
1789
1792
  );
1790
1793
  return /* @__PURE__ */ o(B, { children: /* @__PURE__ */ N(
1791
1794
  Wr,
1792
1795
  {
1793
1796
  disableContentPaddingRight: !0,
1794
- disabled: z,
1797
+ disabled: G,
1795
1798
  variant: q,
1796
- contentRight: /* @__PURE__ */ N(P, { alignItems: "center", children: [
1799
+ contentRight: /* @__PURE__ */ N(H, { alignItems: "center", children: [
1797
1800
  /* @__PURE__ */ o(_t, { num: 0.5, children: /* @__PURE__ */ o(
1798
1801
  tt,
1799
1802
  {
1800
1803
  leftIcon: Nt,
1801
- onClick: I,
1802
- disabled: z,
1804
+ onClick: T,
1805
+ disabled: G,
1803
1806
  size: "small"
1804
1807
  }
1805
1808
  ) }),
1806
- K ? /* @__PURE__ */ N(ue, { children: [
1807
- /* @__PURE__ */ o(P, { height: "22px", children: /* @__PURE__ */ o(ar, { vertical: !0 }) }),
1809
+ z ? /* @__PURE__ */ N(fe, { children: [
1810
+ /* @__PURE__ */ o(H, { height: "22px", children: /* @__PURE__ */ o(ar, { vertical: !0 }) }),
1808
1811
  /* @__PURE__ */ o(_t, { num: 0.5, children: /* @__PURE__ */ o(
1809
1812
  tt,
1810
1813
  {
1811
- leftIcon: he,
1814
+ leftIcon: me,
1812
1815
  onClick: L,
1813
- disabled: z,
1816
+ disabled: G,
1814
1817
  size: "small"
1815
1818
  }
1816
1819
  ) })
@@ -1822,29 +1825,29 @@ const li = ({
1822
1825
  {
1823
1826
  onEsc: r,
1824
1827
  onEnter: n,
1825
- onClick: p,
1826
- disabled: z,
1828
+ onClick: M,
1829
+ disabled: G,
1827
1830
  hideBorder: !0,
1828
1831
  placeholder: a,
1829
- value: h,
1832
+ value: f,
1830
1833
  onValueChange: s,
1831
- onChange: f,
1834
+ onChange: m,
1832
1835
  onBlur: st,
1833
1836
  onFocus: lt,
1834
- inputRef: H,
1837
+ inputRef: P,
1835
1838
  variant: F,
1836
1839
  type: d,
1837
1840
  autoFocus: t,
1838
- min: g,
1841
+ min: b,
1839
1842
  max: w
1840
1843
  }
1841
1844
  ) }),
1842
- /* @__PURE__ */ o(P, { indent: 0.5, alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ o(
1845
+ /* @__PURE__ */ o(H, { indent: 0.5, alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ o(
1843
1846
  Pe,
1844
1847
  {
1845
1848
  icon: c,
1846
1849
  size: 12,
1847
- color: Jt("--lhds-color-ui-500")
1850
+ color: Qt("--lhds-color-ui-500")
1848
1851
  }
1849
1852
  ) }),
1850
1853
  /* @__PURE__ */ o(B, { width: X, children: /* @__PURE__ */ o(
@@ -1852,21 +1855,21 @@ const li = ({
1852
1855
  {
1853
1856
  onEsc: r,
1854
1857
  onEnter: n,
1855
- onClick: S,
1856
- disabled: z,
1858
+ onClick: k,
1859
+ disabled: G,
1857
1860
  hideBorder: !0,
1858
1861
  placeholder: l,
1859
- value: D,
1862
+ value: g,
1860
1863
  onValueChange: i,
1861
- onChange: m,
1864
+ onChange: h,
1862
1865
  onBlur: C,
1863
1866
  onFocus: nt,
1864
- inputRef: E,
1865
- variant: j,
1867
+ inputRef: x,
1868
+ variant: K,
1866
1869
  type: u,
1867
1870
  autoFocus: e,
1868
- min: y,
1869
- max: b
1871
+ min: p,
1872
+ max: D
1870
1873
  }
1871
1874
  ) })
1872
1875
  ]
@@ -1934,7 +1937,7 @@ const li = ({
1934
1937
  },
1935
1938
  [n, e, r, s]
1936
1939
  ), /* @__PURE__ */ o(
1937
- P,
1940
+ H,
1938
1941
  {
1939
1942
  width: "64px",
1940
1943
  justifyContent: "center",
@@ -1974,25 +1977,25 @@ const li = ({
1974
1977
  },
1975
1978
  i
1976
1979
  )) });
1977
- }, Cn = pe(0, 24), jn = pe(0, 60), Kn = ({
1980
+ }, Cn = be(0, 24), jn = be(0, 60), Kn = ({
1978
1981
  value: t,
1979
1982
  onValueChange: e
1980
1983
  }) => {
1981
- const r = U(!0), [n, s] = R(void 0), [i, c] = R(void 0);
1984
+ const r = U(!0), [n, s] = I(void 0), [i, c] = I(void 0);
1982
1985
  rt(() => {
1983
1986
  if (t) {
1984
1987
  const { minute: d, hour: u } = Ct(t);
1985
1988
  s(u), c(d);
1986
1989
  }
1987
1990
  }, [t]);
1988
- const a = M(
1991
+ const a = y(
1989
1992
  (d) => {
1990
1993
  s(d), e == null || e(
1991
1994
  `${Kt(String(d ?? 0))}:${zt(String(i ?? 0))}`
1992
1995
  );
1993
1996
  },
1994
1997
  [i, e]
1995
- ), l = M(
1998
+ ), l = y(
1996
1999
  (d) => {
1997
2000
  c(d), e == null || e(
1998
2001
  `${Kt(String(n ?? 0))}:${zt(String(d ?? 0))}`
@@ -2000,7 +2003,7 @@ const li = ({
2000
2003
  },
2001
2004
  [n, e]
2002
2005
  );
2003
- return /* @__PURE__ */ N(P, { className: er.timePicker, children: [
2006
+ return /* @__PURE__ */ N(H, { className: er.timePicker, children: [
2004
2007
  /* @__PURE__ */ o(
2005
2008
  Le,
2006
2009
  {
@@ -2045,82 +2048,82 @@ const li = ({
2045
2048
  setLocalTime: l,
2046
2049
  localDate: d,
2047
2050
  setLocalDate: u
2048
- }, f) => {
2049
- const m = M(
2050
- (b) => {
2051
- if (!b)
2051
+ }, m) => {
2052
+ const h = y(
2053
+ (D) => {
2054
+ if (!D)
2052
2055
  return;
2053
- const p = new Date(b);
2056
+ const M = new Date(D);
2054
2057
  if (t)
2055
- p.setHours(t.getHours()), p.setMinutes(t.getMinutes()), e == null || e(p), u(void 0);
2058
+ M.setHours(t.getHours()), M.setMinutes(t.getMinutes()), e == null || e(M), u(void 0);
2056
2059
  else if (a) {
2057
- const { minute: S, hour: I } = Ct(a);
2058
- p.setHours(I ?? 0), p.setMinutes(S ?? 0), e == null || e(p), u(void 0);
2060
+ const { minute: k, hour: T } = Ct(a);
2061
+ M.setHours(T ?? 0), M.setMinutes(k ?? 0), e == null || e(M), u(void 0);
2059
2062
  } else
2060
- u(p);
2061
- r(p), f.current && (f.current.valueAsDate = new Date(
2063
+ u(M);
2064
+ r(M), m.current && (m.current.valueAsDate = new Date(
2062
2065
  Date.UTC(
2063
- p.getFullYear(),
2064
- p.getMonth(),
2065
- p.getDate()
2066
+ M.getFullYear(),
2067
+ M.getMonth(),
2068
+ M.getDate()
2066
2069
  )
2067
2070
  ));
2068
2071
  },
2069
2072
  [
2070
2073
  t,
2071
- f,
2074
+ m,
2072
2075
  a,
2073
2076
  e,
2074
2077
  r,
2075
2078
  u
2076
2079
  ]
2077
- ), h = M(
2078
- (b) => {
2079
- if (b)
2080
+ ), f = y(
2081
+ (D) => {
2082
+ if (D)
2080
2083
  if (t) {
2081
- const p = Ct(b), S = new Date(t);
2082
- S.setHours(p.hour || 0), S.setMinutes(p.minute || 0), e == null || e(S), l(void 0);
2084
+ const M = Ct(D), k = new Date(t);
2085
+ k.setHours(M.hour || 0), k.setMinutes(M.minute || 0), e == null || e(k), l(void 0);
2083
2086
  } else if (d) {
2084
- const p = Ct(b), S = new Date(d);
2085
- S.setHours(p.hour || 0), S.setMinutes(p.minute || 0), e == null || e(S), l(void 0);
2087
+ const M = Ct(D), k = new Date(d);
2088
+ k.setHours(M.hour || 0), k.setMinutes(M.minute || 0), e == null || e(k), l(void 0);
2086
2089
  } else
2087
- l(b);
2090
+ l(D);
2088
2091
  },
2089
2092
  [e, t, d, l]
2090
- ), D = M(
2091
- (b) => {
2092
- b.target.value[0] !== "0" && m(b.target.valueAsDate);
2093
+ ), g = y(
2094
+ (D) => {
2095
+ D.target.value[0] !== "0" && h(D.target.valueAsDate);
2093
2096
  },
2094
- [m]
2095
- ), g = M(
2096
- (b) => h(b.target.value),
2097
2097
  [h]
2098
- ), w = M(() => {
2098
+ ), b = y(
2099
+ (D) => f(D.target.value),
2100
+ [f]
2101
+ ), w = y(() => {
2099
2102
  r(t || /* @__PURE__ */ new Date()), c("calendar"), n();
2100
- }, [t, c, n, r]), y = M(() => {
2103
+ }, [t, c, n, r]), p = y(() => {
2101
2104
  i(void 0), s();
2102
2105
  }, [i, s]);
2103
2106
  return {
2104
- inputLeftChangeHandler: D,
2105
- inputRightChangeHandler: g,
2106
- hideCalendar: y,
2107
+ inputLeftChangeHandler: g,
2108
+ inputRightChangeHandler: b,
2109
+ hideCalendar: p,
2107
2110
  showCalendar: w,
2108
- onChangeTime: h,
2109
- onChangeDate: m
2111
+ onChangeTime: f,
2112
+ onChangeDate: h
2110
2113
  };
2111
2114
  }, qn = (t) => {
2112
- const [e, r] = R(void 0), [n, s] = R(void 0), [i, c, a] = ie(!1), [l, d, u] = ie(!1), [f, m] = R(void 0), [h, D] = R(
2115
+ const [e, r] = I(void 0), [n, s] = I(void 0), [i, c, a] = ce(!1), [l, d, u] = ce(!1), [m, h] = I(void 0), [f, g] = I(
2113
2116
  () => t ?? /* @__PURE__ */ new Date()
2114
- ), [g, w] = R("calendar");
2117
+ ), [b, w] = I("calendar");
2115
2118
  return {
2116
2119
  isCalendarVisible: i,
2117
2120
  showCalendarInternal: c,
2118
2121
  hideCalendarInternal: a,
2119
- firstFocusedInput: f,
2120
- setFirstFocusedInput: m,
2121
- dateInFocus: h,
2122
- setDateInFocus: D,
2123
- currentPanel: g,
2122
+ firstFocusedInput: m,
2123
+ setFirstFocusedInput: h,
2124
+ dateInFocus: f,
2125
+ setDateInFocus: g,
2126
+ currentPanel: b,
2124
2127
  setCurrentPanel: w,
2125
2128
  isTimePickerVisible: l,
2126
2129
  showTimePicker: d,
@@ -2136,29 +2139,29 @@ const li = ({
2136
2139
  showTimePicker: c,
2137
2140
  hideTimePicker: a
2138
2141
  }) => {
2139
- const l = M(() => {
2142
+ const l = y(() => {
2140
2143
  s || r(), i("calendar"), a();
2141
- }, [a, s, i, r]), d = M(() => {
2144
+ }, [a, s, i, r]), d = y(() => {
2142
2145
  n(), c();
2143
- }, [n, c]), u = M(
2144
- (D) => {
2145
- t(D.date), n(), c();
2146
+ }, [n, c]), u = y(
2147
+ (g) => {
2148
+ t(g.date), n(), c();
2146
2149
  },
2147
2150
  [t, n, c]
2148
- ), f = M(() => {
2151
+ ), m = y(() => {
2149
2152
  i("presets"), r();
2150
- }, [i, r]), m = M(() => {
2151
- var D;
2152
- s ? n() : ((D = e.current) == null || D.focus(), i("calendar"), r());
2153
+ }, [i, r]), h = y(() => {
2154
+ var g;
2155
+ s ? n() : ((g = e.current) == null || g.focus(), i("calendar"), r());
2153
2156
  }, [
2154
2157
  s,
2155
2158
  n,
2156
2159
  e,
2157
2160
  i,
2158
2161
  r
2159
- ]), h = M(
2160
- (D) => {
2161
- D.key === "Escape" && n();
2162
+ ]), f = y(
2163
+ (g) => {
2164
+ g.key === "Escape" && n();
2162
2165
  },
2163
2166
  [n]
2164
2167
  );
@@ -2166,9 +2169,9 @@ const li = ({
2166
2169
  onFocusLeft: l,
2167
2170
  onFocusRight: d,
2168
2171
  onClickDay: u,
2169
- onClickArrowButton: f,
2170
- onClickCalendarButton: m,
2171
- onKeyDownHandler: h
2172
+ onClickArrowButton: m,
2173
+ onClickCalendarButton: h,
2174
+ onKeyDownHandler: f
2172
2175
  };
2173
2176
  }, ui = ({
2174
2177
  value: t,
@@ -2182,60 +2185,60 @@ const li = ({
2182
2185
  widthRight: l = 80,
2183
2186
  maxDate: d = Ut,
2184
2187
  variant: u,
2185
- disabled: f,
2186
- zIndex: m,
2187
- appendTo: h
2188
+ disabled: m,
2189
+ zIndex: h,
2190
+ appendTo: f
2188
2191
  }) => {
2189
- const D = U(null), g = U(null), w = qn(t), {
2190
- setCurrentPanel: y,
2191
- currentPanel: b,
2192
- isCalendarVisible: p,
2193
- dateInFocus: S,
2194
- setDateInFocus: I,
2192
+ const g = U(null), b = U(null), w = qn(t), {
2193
+ setCurrentPanel: p,
2194
+ currentPanel: D,
2195
+ isCalendarVisible: M,
2196
+ dateInFocus: k,
2197
+ setDateInFocus: T,
2195
2198
  isTimePickerVisible: L,
2196
- hideTimePicker: x,
2197
- localTime: A,
2198
- localDate: k
2199
+ hideTimePicker: A,
2200
+ localTime: E,
2201
+ localDate: S
2199
2202
  } = w, {
2200
2203
  showCalendar: _,
2201
- hideCalendar: H,
2202
- inputLeftChangeHandler: E,
2204
+ hideCalendar: P,
2205
+ inputLeftChangeHandler: x,
2203
2206
  inputRightChangeHandler: q,
2204
2207
  onChangeTime: F,
2205
- onChangeDate: j
2206
- } = Gn(t, e, w, D), {
2207
- onKeyDownHandler: O,
2208
- onFocusRight: K,
2208
+ onChangeDate: K
2209
+ } = Gn(t, e, w, g), {
2210
+ onKeyDownHandler: $,
2211
+ onFocusRight: z,
2209
2212
  onFocusLeft: J,
2210
2213
  onClickDay: X,
2211
- onClickCalendarButton: z,
2214
+ onClickCalendarButton: G,
2212
2215
  onClickArrowButton: W
2213
2216
  } = Jn(
2214
- j,
2215
- D,
2217
+ K,
2218
+ g,
2216
2219
  _,
2217
- H,
2220
+ P,
2218
2221
  w
2219
2222
  );
2220
- zn(t, I, D);
2221
- const G = T(() => {
2222
- const v = t || k;
2223
+ zn(t, T, g);
2224
+ const j = R(() => {
2225
+ const v = t || S;
2223
2226
  return v ? ht(void 0, v, [
2224
2227
  "singleSelected",
2225
2228
  "selected"
2226
2229
  ]) : {};
2227
- }, [k, t]), lt = M(() => {
2228
- H(), x();
2229
- }, [H, x]), nt = T(
2230
- () => t ? $n(t) : A,
2231
- [t, A]
2232
- ), st = Te(p, 300), C = Te(L, 300);
2233
- return /* @__PURE__ */ o(B, { onKeyDown: O, children: /* @__PURE__ */ o(
2230
+ }, [S, t]), lt = y(() => {
2231
+ P(), A();
2232
+ }, [P, A]), nt = R(
2233
+ () => t ? $n(t) : E,
2234
+ [t, E]
2235
+ ), st = Te(M, 300), C = Te(L, 300);
2236
+ return /* @__PURE__ */ o(B, { onKeyDown: $, children: /* @__PURE__ */ o(
2234
2237
  Wt,
2235
2238
  {
2236
2239
  hideArrow: !0,
2237
- zIndex: m,
2238
- appendTo: h,
2240
+ zIndex: h,
2241
+ appendTo: f,
2239
2242
  renderTrigger: (v) => /* @__PURE__ */ o(B, { ...v, children: /* @__PURE__ */ o(
2240
2243
  tr,
2241
2244
  {
@@ -2243,22 +2246,22 @@ const li = ({
2243
2246
  onEsc: n,
2244
2247
  onEnter: r,
2245
2248
  onBlur: s,
2246
- disabled: f,
2249
+ disabled: m,
2247
2250
  separatorIcon: He,
2248
2251
  typeLeft: "date",
2249
2252
  typeRight: "time",
2250
2253
  placeholderLeft: "yyyy-mm-dd",
2251
2254
  placeholderRight: "hh:mm",
2252
- onChangeLeft: E,
2255
+ onChangeLeft: x,
2253
2256
  onChangeRight: q,
2254
2257
  onClickArrowDown: W,
2255
- onClickCalendar: z,
2258
+ onClickCalendar: G,
2256
2259
  onFocusLeft: J,
2257
- onFocusRight: K,
2260
+ onFocusRight: z,
2258
2261
  onClickLeft: J,
2259
- onClickRight: K,
2260
- inputRefLeft: D,
2261
- inputRefRight: g,
2262
+ onClickRight: z,
2263
+ inputRefLeft: g,
2264
+ inputRefRight: b,
2262
2265
  valueRight: nt ?? "",
2263
2266
  widthLeft: a,
2264
2267
  widthRight: l,
@@ -2268,17 +2271,17 @@ const li = ({
2268
2271
  }
2269
2272
  ) }),
2270
2273
  placement: Ot,
2271
- open: p || L,
2274
+ open: M || L,
2272
2275
  onRequestClose: lt,
2273
2276
  children: (st || C) && /* @__PURE__ */ o(Q, { children: st ? /* @__PURE__ */ o(
2274
2277
  kt,
2275
2278
  {
2276
- statePerMonth: G,
2279
+ statePerMonth: j,
2277
2280
  onClickDay: X,
2278
- dateInFocus: S,
2279
- setDateInFocus: I,
2280
- currentPanel: b,
2281
- setCurrentPanel: y,
2281
+ dateInFocus: k,
2282
+ setDateInFocus: T,
2283
+ currentPanel: D,
2284
+ setCurrentPanel: p,
2282
2285
  minDate: c,
2283
2286
  maxDate: d
2284
2287
  }
@@ -2291,7 +2294,7 @@ const li = ({
2291
2294
  }
2292
2295
  ) }),
2293
2296
  /* @__PURE__ */ o(St, {}),
2294
- /* @__PURE__ */ o(P, { justifyContent: "flex-end", children: /* @__PURE__ */ o(It, { label: "Done", onClick: x }) })
2297
+ /* @__PURE__ */ o(H, { justifyContent: "flex-end", children: /* @__PURE__ */ o(It, { label: "Done", onClick: A }) })
2295
2298
  ] }) : null })
2296
2299
  }
2297
2300
  ) });
@@ -2301,27 +2304,27 @@ const li = ({
2301
2304
  year: r
2302
2305
  }) => {
2303
2306
  const n = String(r);
2304
- return /* @__PURE__ */ o(P, { justifyContent: "center", children: t === r ? /* @__PURE__ */ o(It, { label: n, onClick: () => e == null ? void 0 : e(r) }) : /* @__PURE__ */ o(tt, { label: n, onClick: () => e == null ? void 0 : e(r) }) });
2307
+ return /* @__PURE__ */ o(H, { justifyContent: "center", children: t === r ? /* @__PURE__ */ o(It, { label: n, onClick: () => e == null ? void 0 : e(r) }) : /* @__PURE__ */ o(tt, { label: n, onClick: () => e == null ? void 0 : e(r) }) });
2305
2308
  }, fi = ({
2306
2309
  value: t,
2307
2310
  onValueChange: e,
2308
2311
  initialLastYear: r
2309
2312
  }) => {
2310
- const [n, s] = R(() => t ? t + 4 : r ?? (/* @__PURE__ */ new Date()).getFullYear() + 4), i = T(() => {
2313
+ const [n, s] = I(() => t ? t + 4 : r ?? (/* @__PURE__ */ new Date()).getFullYear() + 4), i = R(() => {
2311
2314
  const c = n - 11;
2312
- return je(pe(c, n + 1), 3);
2315
+ return je(be(c, n + 1), 3);
2313
2316
  }, [n]);
2314
2317
  return rt(() => {
2315
2318
  s((c) => Xn(t, c));
2316
- }, [t]), /* @__PURE__ */ N(P, { children: [
2319
+ }, [t]), /* @__PURE__ */ N(H, { children: [
2317
2320
  /* @__PURE__ */ o(Q, { justifyContent: "center", children: /* @__PURE__ */ o(
2318
2321
  tt,
2319
2322
  {
2320
- leftIcon: Gt,
2323
+ leftIcon: qt,
2321
2324
  onClick: () => s(n - 3)
2322
2325
  }
2323
2326
  ) }),
2324
- /* @__PURE__ */ o(Q, { gap: 1, children: i.map((c) => /* @__PURE__ */ o(P, { gap: 1, children: c.map((a) => /* @__PURE__ */ o(
2327
+ /* @__PURE__ */ o(Q, { gap: 1, children: i.map((c) => /* @__PURE__ */ o(H, { gap: 1, children: c.map((a) => /* @__PURE__ */ o(
2325
2328
  Qn,
2326
2329
  {
2327
2330
  year: a,
@@ -2392,43 +2395,40 @@ const li = ({
2392
2395
  setFirstFocusedInput: c,
2393
2396
  setCurrentPanel: a
2394
2397
  }) => {
2395
- const l = M(
2396
- (m) => {
2397
- m.target.value[0] !== "0" && (r == null || r({
2398
- startDate: m.target.valueAsDate ?? void 0,
2398
+ const l = y(
2399
+ (h) => {
2400
+ h.target.value[0] !== "0" && (r == null || r({
2401
+ startDate: h.target.valueAsDate ?? void 0,
2399
2402
  endDate: e
2400
2403
  }));
2401
2404
  },
2402
2405
  [r, e]
2403
- ), d = M(
2404
- (m) => {
2405
- m.target.value[0] !== "0" && (r == null || r({
2406
+ ), d = y(
2407
+ (h) => {
2408
+ h.target.value[0] !== "0" && (r == null || r({
2406
2409
  startDate: t,
2407
- endDate: m.target.valueAsDate ?? void 0
2410
+ endDate: h.target.valueAsDate ?? void 0
2408
2411
  }));
2409
2412
  },
2410
2413
  [r, t]
2411
- ), u = M(() => {
2412
- n(t || e || /* @__PURE__ */ new Date()), a("calendar"), s();
2413
- }, [
2414
- t,
2415
- e,
2416
- a,
2417
- s,
2418
- n
2419
- ]), f = M(() => {
2414
+ ), u = y(
2415
+ (h) => {
2416
+ h != null ? n(h) : n(t || e || /* @__PURE__ */ new Date()), a("calendar"), s();
2417
+ },
2418
+ [t, e, a, s, n]
2419
+ ), m = y(() => {
2420
2420
  c(void 0), i();
2421
2421
  }, [c, i]);
2422
2422
  return {
2423
2423
  inputLeftChangeHandler: l,
2424
2424
  inputRightChangeHandler: d,
2425
- hideCalendar: f,
2425
+ hideCalendar: m,
2426
2426
  setDateInFocus: n,
2427
2427
  setCurrentPanel: a,
2428
2428
  showCalendar: u
2429
2429
  };
2430
2430
  }, ts = (t, e) => {
2431
- const [r, n, s] = ie(!1), [i, c] = R(void 0), [a, l] = R("startDate"), [d, u] = R(() => (a === "startDate" ? t : a === "endDate" ? e : void 0) ?? /* @__PURE__ */ new Date()), [f, m] = R("calendar");
2431
+ const [r, n, s] = ce(!1), [i, c] = I(void 0), [a, l] = I("startDate"), [d, u] = I(() => (a === "startDate" ? t : a === "endDate" ? e : void 0) ?? /* @__PURE__ */ new Date()), [m, h] = I("calendar");
2432
2432
  return {
2433
2433
  isCalendarVisible: r,
2434
2434
  showCalendarInternal: n,
@@ -2439,55 +2439,60 @@ const li = ({
2439
2439
  setFocusedInput: l,
2440
2440
  dateInFocus: d,
2441
2441
  setDateInFocus: u,
2442
- currentPanel: f,
2443
- setCurrentPanel: m
2442
+ currentPanel: m,
2443
+ setCurrentPanel: h
2444
2444
  };
2445
2445
  }, es = (t, e, r, n, s, i, c, {
2446
2446
  firstFocusedInput: a,
2447
2447
  setFirstFocusedInput: l,
2448
2448
  isCalendarVisible: d,
2449
2449
  setFocusedInput: u,
2450
- focusedInput: f,
2451
- setCurrentPanel: m
2450
+ focusedInput: m,
2451
+ setCurrentPanel: h,
2452
+ setDateInFocus: f
2452
2453
  }) => {
2453
- const h = M(() => {
2454
- a == null && l("startDate"), u("startDate"), d || i();
2454
+ const g = y(() => {
2455
+ a == null && l("startDate"), u("startDate"), d ? t != null && f(t) : i(t);
2455
2456
  }, [
2456
- d,
2457
+ a,
2457
2458
  u,
2458
- i,
2459
+ d,
2460
+ t,
2459
2461
  l,
2460
- a
2461
- ]), D = M(() => {
2462
- a == null && l("endDate"), u("endDate"), d || i();
2462
+ i,
2463
+ f
2464
+ ]), b = y(() => {
2465
+ a == null && l("endDate"), u("endDate"), d ? e != null && f(e) : i(e);
2463
2466
  }, [
2464
- d,
2467
+ a,
2465
2468
  u,
2466
- i,
2469
+ d,
2470
+ e,
2467
2471
  l,
2468
- a
2469
- ]), g = M(
2470
- (p) => {
2471
- var S, I, L, x;
2472
- f === "startDate" ? e != null && V(p.date, e) ? (r == null || r({
2473
- startDate: p.date,
2472
+ i,
2473
+ f
2474
+ ]), w = y(
2475
+ (k) => {
2476
+ var T, L, A, E;
2477
+ m === "startDate" ? e != null && V(k.date, e) ? (r == null || r({
2478
+ startDate: k.date,
2474
2479
  endDate: void 0
2475
- }), u("endDate"), (S = s.current) == null || S.focus()) : (r == null || r({
2476
- startDate: p.date,
2480
+ }), u("endDate"), (T = s.current) == null || T.focus()) : (r == null || r({
2481
+ startDate: k.date,
2477
2482
  endDate: e
2478
- }), a === "startDate" ? (u("endDate"), (I = s.current) == null || I.focus()) : setTimeout(c, 50)) : f === "endDate" && (t ? V(t, p.date) ? (r == null || r({
2479
- startDate: p.date,
2483
+ }), a === "startDate" ? (u("endDate"), (L = s.current) == null || L.focus()) : setTimeout(c, 50)) : m === "endDate" && (t ? V(t, k.date) ? (r == null || r({
2484
+ startDate: k.date,
2480
2485
  endDate: void 0
2481
- }), u("endDate"), (x = s.current) == null || x.focus()) : (r == null || r({
2486
+ }), u("endDate"), (E = s.current) == null || E.focus()) : (r == null || r({
2482
2487
  startDate: t,
2483
- endDate: p.date
2488
+ endDate: k.date
2484
2489
  }), setTimeout(c, 50)) : (r == null || r({
2485
2490
  startDate: t,
2486
- endDate: p.date
2487
- }), u("startDate"), (L = n.current) == null || L.focus()));
2491
+ endDate: k.date
2492
+ }), u("startDate"), (A = n.current) == null || A.focus()));
2488
2493
  },
2489
2494
  [
2490
- f,
2495
+ m,
2491
2496
  r,
2492
2497
  e,
2493
2498
  a,
@@ -2497,32 +2502,32 @@ const li = ({
2497
2502
  t,
2498
2503
  n
2499
2504
  ]
2500
- ), w = M(() => {
2501
- m("presets"), i();
2502
- }, [m, i]), y = M(() => {
2503
- var p;
2504
- d ? c() : (u("startDate"), l("startDate"), (p = n.current) == null || p.focus(), m("calendar"), i());
2505
+ ), p = y(() => {
2506
+ h("presets"), i();
2507
+ }, [h, i]), D = y(() => {
2508
+ var k;
2509
+ d ? c() : (u("startDate"), l("startDate"), (k = n.current) == null || k.focus(), h("calendar"), i());
2505
2510
  }, [
2506
2511
  d,
2507
2512
  c,
2508
2513
  u,
2509
2514
  l,
2510
2515
  n,
2511
- m,
2516
+ h,
2512
2517
  i
2513
- ]), b = M(
2514
- (p) => {
2515
- p.key === "Escape" && c();
2518
+ ]), M = y(
2519
+ (k) => {
2520
+ k.key === "Escape" && c();
2516
2521
  },
2517
2522
  [c]
2518
2523
  );
2519
2524
  return {
2520
- onFocusLeft: h,
2521
- onFocusRight: D,
2522
- onClickDay: g,
2523
- onClickArrowButton: w,
2524
- onClickCalendarButton: y,
2525
- onKeyDownHandler: b
2525
+ onFocusLeft: g,
2526
+ onFocusRight: b,
2527
+ onClickDay: w,
2528
+ onClickArrowButton: p,
2529
+ onClickCalendarButton: D,
2530
+ onKeyDownHandler: M
2526
2531
  };
2527
2532
  };
2528
2533
  function hi({
@@ -2537,90 +2542,91 @@ function hi({
2537
2542
  calendarProps: l,
2538
2543
  widthLeft: d = 128,
2539
2544
  widthRight: u = 128,
2540
- variant: f,
2541
- disabled: m,
2542
- zIndex: h,
2543
- appendTo: D
2545
+ firstMonthInMonthPicker: m,
2546
+ variant: h,
2547
+ disabled: f,
2548
+ zIndex: g,
2549
+ appendTo: b
2544
2550
  }) {
2545
- const { startDate: g, endDate: w } = t || {}, y = U(null), b = U(null), p = ts(g, w), {
2546
- dateInFocus: S,
2547
- setDateInFocus: I,
2548
- isCalendarVisible: L,
2549
- currentPanel: x,
2550
- setCurrentPanel: A
2551
- } = p, {
2552
- showCalendar: k,
2553
- hideCalendar: _,
2554
- inputLeftChangeHandler: H,
2555
- inputRightChangeHandler: E
2556
- } = Vn(g, w, e, p), {
2557
- onKeyDownHandler: q,
2558
- onFocusRight: F,
2559
- onFocusLeft: j,
2560
- onClickDay: O,
2561
- onClickCalendarButton: K,
2562
- onClickArrowButton: J
2551
+ const { startDate: w, endDate: p } = t || {}, D = U(null), M = U(null), k = ts(w, p), {
2552
+ dateInFocus: T,
2553
+ setDateInFocus: L,
2554
+ isCalendarVisible: A,
2555
+ currentPanel: E,
2556
+ setCurrentPanel: S
2557
+ } = k, {
2558
+ showCalendar: _,
2559
+ hideCalendar: P,
2560
+ inputLeftChangeHandler: x,
2561
+ inputRightChangeHandler: q
2562
+ } = Vn(w, p, e, k), {
2563
+ onKeyDownHandler: F,
2564
+ onFocusRight: K,
2565
+ onFocusLeft: $,
2566
+ onClickDay: z,
2567
+ onClickCalendarButton: J,
2568
+ onClickArrowButton: X
2563
2569
  } = es(
2564
- g,
2565
2570
  w,
2571
+ p,
2566
2572
  e,
2567
- y,
2568
- b,
2569
- k,
2573
+ D,
2574
+ M,
2570
2575
  _,
2571
- p
2576
+ P,
2577
+ k
2572
2578
  );
2573
2579
  Zn(
2574
- g,
2575
2580
  w,
2576
- I,
2577
- y,
2578
- b
2581
+ p,
2582
+ L,
2583
+ D,
2584
+ M
2579
2585
  );
2580
- const X = T(
2581
- () => g && w && V(g, w),
2582
- [g, w]
2583
- ), z = T(
2586
+ const G = R(
2587
+ () => w && p && V(w, p),
2588
+ [w, p]
2589
+ ), W = R(
2584
2590
  () => Ur(
2585
2591
  l == null ? void 0 : l.statePerMonth,
2586
- g,
2587
2592
  w,
2588
- S
2593
+ p,
2594
+ T
2589
2595
  ),
2590
- [l == null ? void 0 : l.statePerMonth, g, w, S]
2596
+ [l == null ? void 0 : l.statePerMonth, w, p, T]
2591
2597
  );
2592
- return /* @__PURE__ */ o(B, { onKeyDown: q, children: /* @__PURE__ */ o(
2598
+ return /* @__PURE__ */ o(B, { onKeyDown: F, children: /* @__PURE__ */ o(
2593
2599
  Wt,
2594
2600
  {
2595
2601
  hideArrow: !0,
2596
2602
  restoreFocus: !1,
2597
2603
  returnFocus: !1,
2598
- zIndex: h,
2599
- appendTo: D,
2600
- renderTrigger: (W) => /* @__PURE__ */ o(B, { ...W, children: /* @__PURE__ */ o(
2604
+ zIndex: g,
2605
+ appendTo: b,
2606
+ renderTrigger: (j) => /* @__PURE__ */ o(B, { ...j, children: /* @__PURE__ */ o(
2601
2607
  tr,
2602
2608
  {
2603
2609
  autoFocusLeft: r,
2604
2610
  onEsc: i,
2605
2611
  onEnter: s,
2606
2612
  onBlur: n,
2607
- disabled: m,
2613
+ disabled: f,
2608
2614
  separatorIcon: Pt,
2609
2615
  typeLeft: "date",
2610
2616
  typeRight: "date",
2611
2617
  placeholderLeft: "Start date",
2612
2618
  placeholderRight: "End date",
2613
- onChangeLeft: H,
2614
- onChangeRight: E,
2615
- onClickArrowDown: J,
2616
- onClickCalendar: K,
2617
- onFocusLeft: j,
2618
- onFocusRight: F,
2619
- onClickLeft: j,
2620
- onClickRight: F,
2621
- inputRefLeft: y,
2622
- inputRefRight: b,
2623
- variant: X ? "error" : f,
2619
+ onChangeLeft: x,
2620
+ onChangeRight: q,
2621
+ onClickArrowDown: X,
2622
+ onClickCalendar: J,
2623
+ onFocusLeft: $,
2624
+ onFocusRight: K,
2625
+ onClickLeft: $,
2626
+ onClickRight: K,
2627
+ inputRefLeft: D,
2628
+ inputRefRight: M,
2629
+ variant: G ? "error" : h,
2624
2630
  widthLeft: d,
2625
2631
  widthRight: u,
2626
2632
  minLeft: c,
@@ -2630,26 +2636,27 @@ function hi({
2630
2636
  }
2631
2637
  ) }),
2632
2638
  placement: Ot,
2633
- onRequestClose: _,
2634
- open: L,
2639
+ onRequestClose: P,
2640
+ open: A,
2635
2641
  children: /* @__PURE__ */ o(
2636
2642
  kt,
2637
2643
  {
2638
- onClickDay: O,
2639
- dateInFocus: S,
2640
- setDateInFocus: I,
2641
- currentPanel: x,
2642
- setCurrentPanel: A,
2644
+ onClickDay: z,
2645
+ dateInFocus: T,
2646
+ firstMonthInMonthPicker: m,
2647
+ setDateInFocus: L,
2648
+ currentPanel: E,
2649
+ setCurrentPanel: S,
2643
2650
  minDate: c,
2644
2651
  maxDate: a,
2645
2652
  ...l,
2646
- statePerMonth: z
2653
+ statePerMonth: W
2647
2654
  }
2648
2655
  )
2649
2656
  }
2650
2657
  ) });
2651
2658
  }
2652
- const ae = ({
2659
+ const le = ({
2653
2660
  onChange: t,
2654
2661
  onValueChange: e,
2655
2662
  mask: r,
@@ -2661,16 +2668,16 @@ const ae = ({
2661
2668
  showMask: l,
2662
2669
  calendarSize: d,
2663
2670
  onFocus: u,
2664
- onBlur: f,
2665
- placeholderWhenBlurred: m,
2666
- placeholder: h,
2667
- valueWhenBlurred: D,
2668
- label: g,
2671
+ onBlur: m,
2672
+ placeholderWhenBlurred: h,
2673
+ placeholder: f,
2674
+ valueWhenBlurred: g,
2675
+ label: b,
2669
2676
  variant: w,
2670
- ...y
2677
+ ...p
2671
2678
  }) => {
2672
- const b = U(null), [p, S] = R(!1), { onChange: I } = Or(
2673
- b,
2679
+ const D = U(null), [M, k] = I(!1), { onChange: T } = Or(
2680
+ D,
2674
2681
  t,
2675
2682
  e,
2676
2683
  r,
@@ -2680,44 +2687,44 @@ const ae = ({
2680
2687
  c,
2681
2688
  a,
2682
2689
  l,
2683
- p
2684
- ), L = M(
2685
- (k) => {
2686
- u == null || u(k), S(!0);
2690
+ M
2691
+ ), L = y(
2692
+ (S) => {
2693
+ u == null || u(S), k(!0);
2687
2694
  },
2688
2695
  [u]
2689
- ), x = M(
2690
- (k) => {
2691
- f == null || f(k), S(!1);
2696
+ ), A = y(
2697
+ (S) => {
2698
+ m == null || m(S), k(!1);
2692
2699
  },
2693
- [f]
2694
- ), A = p ? h : m ?? h;
2695
- return w === "standard" ? /* @__PURE__ */ o(gr, { text: g ?? "", children: /* @__PURE__ */ o(
2700
+ [m]
2701
+ ), E = M ? f : h ?? f;
2702
+ return w === "standard" ? /* @__PURE__ */ o(gr, { text: b ?? "", children: /* @__PURE__ */ o(
2696
2703
  mt,
2697
2704
  {
2698
- ...y,
2705
+ ...p,
2699
2706
  "aria-live": "polite",
2700
- value: (p ? s : D) ?? "",
2701
- inputRef: b,
2702
- placeholder: A,
2707
+ value: (M ? s : g) ?? "",
2708
+ inputRef: D,
2709
+ placeholder: E,
2703
2710
  onFocus: L,
2704
- onBlur: x,
2705
- onChange: I,
2711
+ onBlur: A,
2712
+ onChange: T,
2706
2713
  width: ve(d),
2707
2714
  alwaysShowPlaceholder: !0
2708
2715
  }
2709
2716
  ) }) : /* @__PURE__ */ o(
2710
2717
  $r,
2711
2718
  {
2712
- ...y,
2713
- label: g,
2719
+ ...p,
2720
+ label: b,
2714
2721
  "aria-live": "polite",
2715
- value: (p ? s : D) ?? "",
2716
- ref: b,
2717
- placeholder: A,
2722
+ value: (M ? s : g) ?? "",
2723
+ ref: D,
2724
+ placeholder: E,
2718
2725
  onFocus: L,
2719
- onBlur: x,
2720
- onChange: I,
2726
+ onBlur: A,
2727
+ onChange: T,
2721
2728
  width: ve(d),
2722
2729
  size: d === "large" ? "large" : "medium"
2723
2730
  }
@@ -2731,7 +2738,7 @@ const ae = ({
2731
2738
  case "large":
2732
2739
  return "196px";
2733
2740
  default:
2734
- return fe(t, "168px");
2741
+ return he(t, "168px");
2735
2742
  }
2736
2743
  }, rs = [/[1-2]/, /\d/, /\d/, /\d/], ns = [/[0-1]/, /\d/], ss = [/[0-3]/, /\d/], rr = (t) => cs(t).flatMap(is), is = (t) => {
2737
2744
  switch (t) {
@@ -2760,7 +2767,7 @@ const ae = ({
2760
2767
  day: "dd"
2761
2768
  };
2762
2769
  return r.map((s) => n[s.type] || s.value).join("");
2763
- }, pt = (t, e, r) => {
2770
+ }, Dt = (t, e, r) => {
2764
2771
  const n = Qe(
2765
2772
  e,
2766
2773
  (r == null ? void 0 : r.matchLanguage) ?? !1,
@@ -2784,11 +2791,11 @@ const ae = ({
2784
2791
  (r == null ? void 0 : r.matchLanguage) ?? !1,
2785
2792
  (r == null ? void 0 : r.fallbackLocaleCode) ?? Je
2786
2793
  );
2787
- return $(t, Et(n), {
2794
+ return O(t, Et(n), {
2788
2795
  locale: Rt(n)
2789
2796
  });
2790
- }, le = (t, e) => {
2791
- const r = pt(t, e);
2797
+ }, de = (t, e) => {
2798
+ const r = Dt(t, e);
2792
2799
  if (r != null)
2793
2800
  return At(r, e);
2794
2801
  }, nr = ({
@@ -2803,165 +2810,165 @@ const ae = ({
2803
2810
  placeholderWhenBlurredEndDate: l,
2804
2811
  valueWhenBlurredStartDate: d,
2805
2812
  valueWhenBlurredEndDate: u,
2806
- variant: f
2813
+ variant: m
2807
2814
  }) => {
2808
- const { mask: m, placeholder: h } = T(() => {
2809
- const D = Et(r);
2815
+ const { mask: h, placeholder: f } = R(() => {
2816
+ const g = Et(r);
2810
2817
  return {
2811
- mask: rr(D),
2812
- placeholder: D.toLowerCase()
2818
+ mask: rr(g),
2819
+ placeholder: g.toLowerCase()
2813
2820
  };
2814
2821
  }, [r]);
2815
- return /* @__PURE__ */ N(P, { children: [
2822
+ return /* @__PURE__ */ N(H, { children: [
2816
2823
  /* @__PURE__ */ o(
2817
- ae,
2824
+ le,
2818
2825
  {
2819
- mask: m,
2826
+ mask: h,
2820
2827
  value: t == null ? void 0 : t.startDate,
2821
- onValueChange: (D) => {
2822
- e == null || e({ startDate: D });
2828
+ onValueChange: (g) => {
2829
+ e == null || e({ startDate: g });
2823
2830
  },
2824
- onBlur: (D) => {
2825
- const g = le(
2826
- D.target.value,
2831
+ onBlur: (g) => {
2832
+ const b = de(
2833
+ g.target.value,
2827
2834
  r
2828
2835
  );
2829
- g && g !== (t == null ? void 0 : t.startDate) && (e == null || e({ startDate: g }));
2836
+ b && b !== (t == null ? void 0 : t.startDate) && (e == null || e({ startDate: b }));
2830
2837
  },
2831
2838
  onFocus: i,
2832
2839
  label: n,
2833
2840
  borderRadiusVariant: "onlyLeft",
2834
- placeholder: h,
2841
+ placeholder: f,
2835
2842
  placeholderWhenBlurred: a,
2836
2843
  valueWhenBlurred: d,
2837
2844
  calendarSize: c,
2838
- variant: f
2845
+ variant: m
2839
2846
  }
2840
2847
  ),
2841
2848
  /* @__PURE__ */ o(
2842
- ae,
2849
+ le,
2843
2850
  {
2844
- mask: m,
2851
+ mask: h,
2845
2852
  value: t == null ? void 0 : t.endDate,
2846
- onValueChange: (D) => e == null ? void 0 : e({ endDate: D }),
2847
- onBlur: (D) => {
2848
- const g = le(
2849
- D.target.value,
2853
+ onValueChange: (g) => e == null ? void 0 : e({ endDate: g }),
2854
+ onBlur: (g) => {
2855
+ const b = de(
2856
+ g.target.value,
2850
2857
  r
2851
2858
  );
2852
- g && g !== (t == null ? void 0 : t.endDate) && (e == null || e({ endDate: g }));
2859
+ b && b !== (t == null ? void 0 : t.endDate) && (e == null || e({ endDate: b }));
2853
2860
  },
2854
2861
  onFocus: i,
2855
2862
  label: s,
2856
2863
  borderRadiusVariant: "onlyRight",
2857
- placeholder: h,
2864
+ placeholder: f,
2858
2865
  placeholderWhenBlurred: l,
2859
2866
  valueWhenBlurred: u,
2860
2867
  calendarSize: c,
2861
- variant: f
2868
+ variant: m
2862
2869
  }
2863
2870
  )
2864
2871
  ] });
2865
- }, de = (t, e, r) => {
2872
+ }, ue = (t, e, r) => {
2866
2873
  const n = Rr(t, e) ? "" : " y";
2867
- return r.code.startsWith("en") ? $(t, "eee MMM d" + n, { locale: r }).replace(".", "") : $(t, "eee d MMM" + n, { locale: r }).replace(".", "");
2874
+ return r.code.startsWith("en") ? O(t, "eee MMM d" + n, { locale: r }).replace(".", "") : O(t, "eee d MMM" + n, { locale: r }).replace(".", "");
2868
2875
  }, sr = (t, e, r, n) => {
2869
- const s = Rt(r), i = we(), c = Me(), a = U(null), l = T(
2876
+ const s = Rt(r), i = ye(), c = Gt(), a = U(null), l = R(
2870
2877
  () => Et(r),
2871
2878
  [r]
2872
- ), d = T(
2879
+ ), d = R(
2873
2880
  () => {
2874
- var E;
2875
- return ((E = t == null ? void 0 : t.startDate) == null ? void 0 : E.length) === l.length ? pt(t.startDate, r) : void 0;
2881
+ var x;
2882
+ return ((x = t == null ? void 0 : t.startDate) == null ? void 0 : x.length) === l.length ? Dt(t.startDate, r) : void 0;
2876
2883
  },
2877
2884
  [l.length, r, t == null ? void 0 : t.startDate]
2878
- ), u = T(
2885
+ ), u = R(
2879
2886
  () => {
2880
- var E;
2881
- return ((E = t == null ? void 0 : t.endDate) == null ? void 0 : E.length) === l.length ? pt(t.endDate, r) : void 0;
2887
+ var x;
2888
+ return ((x = t == null ? void 0 : t.endDate) == null ? void 0 : x.length) === l.length ? Dt(t.endDate, r) : void 0;
2882
2889
  },
2883
2890
  [l.length, r, t == null ? void 0 : t.endDate]
2884
- ), f = T(
2885
- () => d != null ? de(d, c, s) : void 0,
2891
+ ), m = R(
2892
+ () => d != null ? ue(d, c, s) : void 0,
2886
2893
  [s, d, c]
2887
- ), m = T(
2888
- () => u != null ? de(u, c, s) : void 0,
2894
+ ), h = R(
2895
+ () => u != null ? ue(u, c, s) : void 0,
2889
2896
  [s, u, c]
2890
- ), [h, D] = R(
2897
+ ), [f, g] = I(
2891
2898
  n ?? d ?? /* @__PURE__ */ new Date()
2892
- ), g = M(
2893
- (E) => {
2894
- ot(E, c) || V(E, c) ? D(E) : D(c);
2899
+ ), b = y(
2900
+ (x) => {
2901
+ ot(x, c) || V(x, c) ? g(x) : g(c);
2895
2902
  },
2896
2903
  [c]
2897
- ), w = T(
2898
- () => Qt(
2899
- h.getFullYear(),
2900
- h.getMonth(),
2904
+ ), w = R(
2905
+ () => Xt(
2906
+ f.getFullYear(),
2907
+ f.getMonth(),
2901
2908
  s
2902
2909
  ),
2903
- [s, h]
2904
- ), y = T(() => vt($(h, "MMMM yyyy", { locale: s })), [s, h]), b = T(() => ot(c, h), [c, h]), [p, S] = R(), [I, L] = R("calendar"), x = M(
2905
- (E) => {
2906
- var j, O;
2907
- const q = ((j = E == null ? void 0 : E.startDate) == null ? void 0 : j.length) === l.length ? pt(E.startDate, r) : void 0, F = ((O = E == null ? void 0 : E.endDate) == null ? void 0 : O.length) === l.length ? pt(E.endDate, r) : void 0;
2908
- q ? g(q) : F && g(F), e == null || e({
2910
+ [s, f]
2911
+ ), p = R(() => vt(O(f, "MMMM yyyy", { locale: s })), [s, f]), D = R(() => ot(c, f), [c, f]), [M, k] = I(), [T, L] = I("calendar"), A = y(
2912
+ (x) => {
2913
+ var K, $;
2914
+ const q = ((K = x == null ? void 0 : x.startDate) == null ? void 0 : K.length) === l.length ? Dt(x.startDate, r) : void 0, F = (($ = x == null ? void 0 : x.endDate) == null ? void 0 : $.length) === l.length ? Dt(x.endDate, r) : void 0;
2915
+ q ? b(q) : F && b(F), e == null || e({
2909
2916
  ...t,
2910
- ...E
2917
+ ...x
2911
2918
  });
2912
2919
  },
2913
2920
  [
2914
2921
  l.length,
2915
2922
  r,
2916
2923
  e,
2917
- g,
2924
+ b,
2918
2925
  t
2919
2926
  ]
2920
- ), A = T(
2921
- () => ot(c, h) || ct(h, c),
2922
- [c, h]
2923
- ), k = T(
2927
+ ), E = R(
2928
+ () => ot(c, f) || ct(f, c),
2929
+ [c, f]
2930
+ ), S = R(
2924
2931
  () => (d && u && (Y(d, u) || ct(d, u))) ?? !1,
2925
2932
  [u, d]
2926
2933
  );
2927
2934
  return {
2928
- isDateDisabled: M(
2929
- (E) => !Y(E, c) && ct(E, c),
2935
+ isDateDisabled: y(
2936
+ (x) => !Y(x, c) && ct(x, c),
2930
2937
  [c]
2931
2938
  ),
2932
- onClickDate: (E) => {
2933
- E.getFullYear() === h.getFullYear() && E.getMonth() === h.getMonth() && (d && u == null ? ct(E, d) ? e == null || e({
2934
- startDate: At(E, r),
2939
+ onClickDate: (x) => {
2940
+ x.getFullYear() === f.getFullYear() && x.getMonth() === f.getMonth() && (d && u == null ? ct(x, d) ? e == null || e({
2941
+ startDate: At(x, r),
2935
2942
  endDate: void 0
2936
2943
  }) : e == null || e({
2937
2944
  startDate: t == null ? void 0 : t.startDate,
2938
- endDate: At(E, r)
2945
+ endDate: At(x, r)
2939
2946
  }) : e == null || e({
2940
- startDate: At(E, r),
2947
+ startDate: At(x, r),
2941
2948
  endDate: void 0
2942
2949
  }));
2943
2950
  },
2944
- onValueChangeByInputs: x,
2945
- isValidDateRange: k,
2946
- prevMonthDisabled: A,
2951
+ onValueChangeByInputs: A,
2952
+ isValidDateRange: S,
2953
+ prevMonthDisabled: E,
2947
2954
  monthPickerButtonRef: a,
2948
2955
  calendarId: i,
2949
- monthPickerButtonLabel: y,
2950
- visiblePanel: I,
2956
+ monthPickerButtonLabel: p,
2957
+ visiblePanel: T,
2951
2958
  setVisiblePanel: L,
2952
- setVisibleMonth: D,
2959
+ setVisibleMonth: g,
2953
2960
  visibleMonthData: w,
2954
- todayIsInVisibleMonth: b,
2955
- hoverDate: p,
2956
- setHoverDate: S,
2961
+ todayIsInVisibleMonth: D,
2962
+ hoverDate: M,
2963
+ setHoverDate: k,
2957
2964
  selectedStartDate: d,
2958
2965
  selectedEndDate: u,
2959
2966
  today: c,
2960
- visibleMonth: h,
2961
- valueWhenBlurredStartDate: f,
2962
- valueWhenBlurredEndDate: m
2967
+ visibleMonth: f,
2968
+ valueWhenBlurredStartDate: m,
2969
+ valueWhenBlurredEndDate: h
2963
2970
  };
2964
- }, Zt = ({
2971
+ }, Vt = ({
2965
2972
  previousMonthButtonAriaLabel: t,
2966
2973
  nextMonthButtonAriaLabel: e,
2967
2974
  monthPickerButtonLabel: r,
@@ -2973,14 +2980,14 @@ const ae = ({
2973
2980
  prevMonthDisabled: l,
2974
2981
  calendarSize: d,
2975
2982
  previousMonthButtonTestId: u,
2976
- nextMonthButtonTestId: f
2977
- }) => /* @__PURE__ */ N(P, { alignSelf: "center", justifyContent: "space-between", width: "100%", children: [
2983
+ nextMonthButtonTestId: m
2984
+ }) => /* @__PURE__ */ N(H, { alignSelf: "center", justifyContent: "space-between", width: "100%", children: [
2978
2985
  /* @__PURE__ */ o(
2979
2986
  tt,
2980
2987
  {
2981
2988
  "aria-live": "polite",
2982
2989
  label: r,
2983
- rightIcon: n === "calendar" ? he : Dr,
2990
+ rightIcon: n === "calendar" ? me : pr,
2984
2991
  onClick: () => s(
2985
2992
  n === "calendar" ? "month-picker" : "calendar"
2986
2993
  ),
@@ -2988,12 +2995,12 @@ const ae = ({
2988
2995
  size: d === "small" ? "medium" : "large"
2989
2996
  }
2990
2997
  ),
2991
- /* @__PURE__ */ N(P, { alignItems: "center", gap: 2, children: [
2998
+ /* @__PURE__ */ N(H, { alignItems: "center", gap: 2, children: [
2992
2999
  /* @__PURE__ */ o(
2993
3000
  ft,
2994
3001
  {
2995
- leftIcon: Gt,
2996
- onClick: () => c(ge(a, 1)),
3002
+ leftIcon: qt,
3003
+ onClick: () => c(pe(a, 1)),
2997
3004
  disabled: l,
2998
3005
  "aria-label": t,
2999
3006
  size: d === "small" ? "medium" : "large",
@@ -3007,11 +3014,11 @@ const ae = ({
3007
3014
  onClick: () => c(Ht(a, 1)),
3008
3015
  "aria-label": e,
3009
3016
  size: d === "small" ? "medium" : "large",
3010
- "data-testid": f
3017
+ "data-testid": m
3011
3018
  }
3012
3019
  )
3013
3020
  ] })
3014
- ] }), os = "_travelDateCell_h6vcn_1", as = "_small_h6vcn_4", ls = "_medium_h6vcn_9", ds = "_large_h6vcn_14", us = "_outline_h6vcn_26", fs = "_contentWrapper_h6vcn_39", hs = "_disabled_h6vcn_60", ms = "_isToday_h6vcn_63", gs = "_isSelectionStart_h6vcn_67", Ds = "_isSelectionEnd_h6vcn_68", ps = "_hover_h6vcn_83", bs = "_startSelected_h6vcn_86", ws = "_endSelected_h6vcn_86", et = {
3021
+ ] }), os = "_travelDateCell_h6vcn_1", as = "_small_h6vcn_4", ls = "_medium_h6vcn_9", ds = "_large_h6vcn_14", us = "_outline_h6vcn_26", fs = "_contentWrapper_h6vcn_39", hs = "_disabled_h6vcn_60", ms = "_isToday_h6vcn_63", gs = "_isSelectionStart_h6vcn_67", ps = "_isSelectionEnd_h6vcn_68", Ds = "_hover_h6vcn_83", bs = "_startSelected_h6vcn_86", ws = "_endSelected_h6vcn_86", et = {
3015
3022
  travelDateCell: os,
3016
3023
  small: as,
3017
3024
  medium: ls,
@@ -3021,11 +3028,11 @@ const ae = ({
3021
3028
  disabled: hs,
3022
3029
  isToday: ms,
3023
3030
  isSelectionStart: gs,
3024
- isSelectionEnd: Ds,
3025
- hover: ps,
3031
+ isSelectionEnd: ps,
3032
+ hover: Ds,
3026
3033
  startSelected: bs,
3027
3034
  endSelected: ws
3028
- }, dt = Jt("--lhds-color-red-100"), ys = (t, e, r, n, s, i) => {
3035
+ }, dt = Qt("--lhds-color-red-100"), ys = (t, e, r, n, s, i) => {
3029
3036
  if (!s)
3030
3037
  return {
3031
3038
  left: "transparent",
@@ -3080,7 +3087,7 @@ const ae = ({
3080
3087
  }, Ms = (t, e) => {
3081
3088
  switch (e) {
3082
3089
  case "PageUp":
3083
- return ge(t, 1);
3090
+ return pe(t, 1);
3084
3091
  case "PageDown":
3085
3092
  return Ht(t, 1);
3086
3093
  case "Home":
@@ -3098,12 +3105,12 @@ const ae = ({
3098
3105
  default:
3099
3106
  return;
3100
3107
  }
3101
- }, re = (t, e) => $(Ce(t, 12), at.fullDate) + e, ks = "_travelDateCellBackground_1k07m_1", Ss = "_small_1k07m_2", Ts = "_medium_1k07m_7", Rs = "_large_1k07m_12", Ft = {
3108
+ }, ne = (t, e) => O(Ce(t, 12), at.fullDate) + e, ks = "_travelDateCellBackground_1k07m_1", Ss = "_small_1k07m_2", Ts = "_medium_1k07m_7", Rs = "_large_1k07m_12", Ft = {
3102
3109
  travelDateCellBackground: ks,
3103
3110
  small: Ss,
3104
3111
  medium: Ts,
3105
3112
  large: Rs
3106
- }, Is = ({ calendarSize: t, bgColorLeft: e, bgColorRight: r }) => /* @__PURE__ */ N(P, { children: [
3113
+ }, Is = ({ calendarSize: t, bgColorLeft: e, bgColorRight: r }) => /* @__PURE__ */ N(H, { children: [
3107
3114
  /* @__PURE__ */ o(
3108
3115
  B,
3109
3116
  {
@@ -3130,83 +3137,83 @@ const ae = ({
3130
3137
  onEndHover: l,
3131
3138
  hoverDate: d,
3132
3139
  today: u,
3133
- todayIsInVisibleMonth: f,
3134
- calendarId: m,
3135
- isDateDisabled: h,
3136
- size: D,
3137
- dateTestId: g
3140
+ todayIsInVisibleMonth: m,
3141
+ calendarId: h,
3142
+ isDateDisabled: f,
3143
+ size: g,
3144
+ dateTestId: b
3138
3145
  }) => {
3139
- const w = M(
3140
- async (x) => {
3141
- var k;
3142
- const A = Ms(n.date, x.key);
3143
- A && !h(A) && (a(A), ot(n.date, A) ? (k = document.getElementById(re(A, m))) == null || k.focus() : (r(A), setTimeout(() => {
3146
+ const w = y(
3147
+ async (A) => {
3148
+ var S;
3149
+ const E = Ms(n.date, A.key);
3150
+ E && !f(E) && (a(E), ot(n.date, E) ? (S = document.getElementById(ne(E, h))) == null || S.focus() : (r(E), setTimeout(() => {
3144
3151
  var _;
3145
- (_ = document.getElementById(re(A, m))) == null || _.focus();
3146
- }, 10))), (x.key === "Enter" || x.code === "Space") && t(n.date);
3152
+ (_ = document.getElementById(ne(E, h))) == null || _.focus();
3153
+ }, 10))), (A.key === "Enter" || A.code === "Space") && t(n.date);
3147
3154
  },
3148
3155
  [
3149
- m,
3150
- n.date,
3151
3156
  h,
3157
+ n.date,
3158
+ f,
3152
3159
  r,
3153
3160
  t,
3154
3161
  a
3155
3162
  ]
3156
- ), y = n.month === e.getMonth(), b = h(n.date), p = i ? Y(i, n.date) : !1, S = c ? Y(c, n.date) : !1, I = Y(n.date, u), L = ys(
3163
+ ), p = n.month === e.getMonth(), D = f(n.date), M = i ? Y(i, n.date) : !1, k = c ? Y(c, n.date) : !1, T = Y(n.date, u), L = ys(
3157
3164
  n.date,
3158
3165
  i,
3159
3166
  c,
3160
3167
  d,
3161
- y,
3168
+ p,
3162
3169
  s
3163
3170
  );
3164
3171
  return /* @__PURE__ */ N(
3165
3172
  "td",
3166
3173
  {
3167
- className: wt(et.travelDateCell, et[D]),
3168
- onClick: b ? void 0 : () => t(n.date),
3169
- onMouseOver: b ? void 0 : () => y && a(n.date),
3170
- onMouseOut: b ? void 0 : () => y && l(n.date),
3171
- tabIndex: b ? void 0 : xs(
3174
+ className: wt(et.travelDateCell, et[g]),
3175
+ onClick: D ? void 0 : () => t(n.date),
3176
+ onMouseOver: D ? void 0 : () => p && a(n.date),
3177
+ onMouseOut: D ? void 0 : () => p && l(n.date),
3178
+ tabIndex: D ? void 0 : xs(
3172
3179
  n,
3173
3180
  i,
3174
- I,
3181
+ T,
3175
3182
  e,
3176
- f
3183
+ m
3177
3184
  ),
3178
- id: b ? void 0 : re(n.date, m),
3179
- onKeyDown: b ? void 0 : w,
3180
- ...b ? void 0 : { "aria-selected": p || S },
3181
- "data-testid": g == null ? void 0 : g(n.date),
3185
+ id: D ? void 0 : ne(n.date, h),
3186
+ onKeyDown: D ? void 0 : w,
3187
+ ...D ? void 0 : { "aria-selected": M || k },
3188
+ "data-testid": b == null ? void 0 : b(n.date),
3182
3189
  children: [
3183
3190
  /* @__PURE__ */ o("div", { className: et.outline }),
3184
3191
  /* @__PURE__ */ o(
3185
3192
  Is,
3186
3193
  {
3187
- calendarSize: D,
3194
+ calendarSize: g,
3188
3195
  bgColorLeft: L.left,
3189
3196
  bgColorRight: L.right
3190
3197
  }
3191
3198
  ),
3192
- y && /* @__PURE__ */ o(
3199
+ p && /* @__PURE__ */ o(
3193
3200
  "div",
3194
3201
  {
3195
3202
  className: wt(
3196
3203
  et.contentWrapper,
3197
- I ? et.isToday : void 0,
3204
+ T ? et.isToday : void 0,
3198
3205
  i ? et.startSelected : void 0,
3199
3206
  c ? et.endSelected : void 0,
3200
3207
  d && Y(d, n.date) ? et.hover : void 0,
3201
- p && et.isSelectionStart,
3202
- S && et.isSelectionEnd,
3203
- b && et.disabled
3208
+ M && et.isSelectionStart,
3209
+ k && et.isSelectionEnd,
3210
+ D && et.disabled
3204
3211
  ),
3205
3212
  children: /* @__PURE__ */ o(
3206
3213
  yt,
3207
3214
  {
3208
3215
  variant: "bold",
3209
- color: b ? Jt("--lhds-color-ui-500") : void 0,
3216
+ color: D ? Qt("--lhds-color-ui-500") : void 0,
3210
3217
  children: n.dayOfMonth
3211
3218
  }
3212
3219
  )
@@ -3220,7 +3227,7 @@ const ae = ({
3220
3227
  return (e && i ? Y(t.date, e) : r) || !i && !s && t.date.getDate() === 1 ? 0 : -1;
3221
3228
  }, As = "_travelCalendar_18pjj_1", _s = {
3222
3229
  travelCalendar: As
3223
- }, Vt = ({
3230
+ }, te = ({
3224
3231
  visibleMonthData: t,
3225
3232
  onClickDate: e,
3226
3233
  setHoverDate: r,
@@ -3232,44 +3239,44 @@ const ae = ({
3232
3239
  hoverDate: l,
3233
3240
  today: d,
3234
3241
  calendarId: u,
3235
- isDateDisabled: f,
3236
- todayIsInVisibleMonth: m,
3237
- size: h = "medium",
3238
- multiSelectable: D,
3239
- dateTestId: g
3242
+ isDateDisabled: m,
3243
+ todayIsInVisibleMonth: h,
3244
+ size: f = "medium",
3245
+ multiSelectable: g,
3246
+ dateTestId: b
3240
3247
  }) => /* @__PURE__ */ o(
3241
3248
  "table",
3242
3249
  {
3243
3250
  className: _s.travelCalendar,
3244
3251
  role: "grid",
3245
- ...D ? { "aria-multiselectable": !0 } : void 0,
3252
+ ...g ? { "aria-multiselectable": !0 } : void 0,
3246
3253
  children: /* @__PURE__ */ N("tbody", { children: [
3247
3254
  /* @__PURE__ */ o("tr", { children: t.weeks[0].days.map((w) => /* @__PURE__ */ o("th", { abbr: w.fullName, children: /* @__PURE__ */ o(yt, { children: w.name }) }, w.name)) }),
3248
- t.weeks.map((w) => /* @__PURE__ */ o(be.Fragment, { children: /* @__PURE__ */ o("tr", { children: w.days.map((y) => /* @__PURE__ */ o(
3255
+ t.weeks.map((w) => /* @__PURE__ */ o(we.Fragment, { children: /* @__PURE__ */ o("tr", { children: w.days.map((p) => /* @__PURE__ */ o(
3249
3256
  Es,
3250
3257
  {
3251
- size: h,
3252
- onClick: (b) => e(b),
3258
+ size: f,
3259
+ onClick: (D) => e(D),
3253
3260
  visibleMonth: s,
3254
3261
  onChangeVisibleMonth: n,
3255
3262
  isValidDateRange: i,
3256
- day: y,
3257
- onStartHover: (b) => r(b),
3258
- onEndHover: (b) => r((p) => p && Y(p, b) ? void 0 : p),
3263
+ day: p,
3264
+ onStartHover: (D) => r(D),
3265
+ onEndHover: (D) => r((M) => M && Y(M, D) ? void 0 : M),
3259
3266
  selectedStartDate: c,
3260
3267
  selectedEndDate: a,
3261
3268
  hoverDate: l,
3262
3269
  today: d,
3263
- todayIsInVisibleMonth: m,
3270
+ todayIsInVisibleMonth: h,
3264
3271
  calendarId: u,
3265
- isDateDisabled: f,
3266
- dateTestId: g
3272
+ isDateDisabled: m,
3273
+ dateTestId: b
3267
3274
  },
3268
- y.dateString
3275
+ p.dateString
3269
3276
  )) }, w.weekNumber) }, w.weekNumber))
3270
3277
  ] })
3271
3278
  }
3272
- ), Ns = "_travelDateRangeInput_1j7rp_1", Ls = "_overlay_1j7rp_2", vs = "_calendarVisible_1j7rp_6", ne = {
3279
+ ), Ns = "_travelDateRangeInput_1j7rp_1", Ls = "_overlay_1j7rp_2", vs = "_calendarVisible_1j7rp_6", se = {
3273
3280
  travelDateRangeInput: Ns,
3274
3281
  overlay: Ls,
3275
3282
  calendarVisible: vs
@@ -3285,82 +3292,82 @@ const ae = ({
3285
3292
  placeholderWhenBlurredStartDate: l,
3286
3293
  placeholderWhenBlurredEndDate: d,
3287
3294
  heading: u,
3288
- headingLevel: f,
3289
- numMonthsInMonthPicker: m = 12,
3290
- firstMonthInMonthPicker: h = /* @__PURE__ */ new Date(),
3291
- zIndex: D = 1e3,
3292
- zIndexWhenClosed: g,
3295
+ headingLevel: m,
3296
+ numMonthsInMonthPicker: h = 12,
3297
+ firstMonthInMonthPicker: f = /* @__PURE__ */ new Date(),
3298
+ zIndex: g = 1e3,
3299
+ zIndexWhenClosed: b,
3293
3300
  onHideCalendar: w,
3294
- renderBelowCalendar: y,
3295
- size: b = "medium",
3296
- dateTestId: p,
3297
- previousMonthButtonTestId: S,
3298
- nextMonthButtonTestId: I,
3301
+ renderBelowCalendar: p,
3302
+ size: D = "medium",
3303
+ dateTestId: M,
3304
+ previousMonthButtonTestId: k,
3305
+ nextMonthButtonTestId: T,
3299
3306
  textInputVariant: L = "standard"
3300
3307
  }) => {
3301
- const [x, A] = R(!1), [k, _] = R(!1), [H, E] = R({
3308
+ const [A, E] = I(!1), [S, _] = I(!1), [P, x] = I({
3302
3309
  // Sane defaults, this will be updated with actual data from DOM.
3303
3310
  width: 336,
3304
3311
  height: 66
3305
- }), q = b === "large" ? "8.8rem" : "6.6rem", F = U(!1), j = M(() => {
3312
+ }), q = D === "large" ? "8.8rem" : "6.6rem", F = U(!1), K = y(() => {
3306
3313
  F.current = !0, _(!0), setTimeout(() => {
3307
- A(!0);
3314
+ E(!0);
3308
3315
  }, 10);
3309
- }, []), O = M(() => {
3310
- k && (A(!1), F.current = !1, w == null || w(), setTimeout(() => {
3316
+ }, []), $ = y(() => {
3317
+ S && (E(!1), F.current = !1, w == null || w(), setTimeout(() => {
3311
3318
  F.current || _(!1);
3312
3319
  }, 120));
3313
- }, [k, w]), K = U(null), J = U(null);
3314
- Ye(K, O), Ke(() => {
3320
+ }, [S, w]), z = U(null), J = U(null);
3321
+ Ye(z, $), Ke(() => {
3315
3322
  var xt, ke;
3316
3323
  const v = (xt = J.current) == null ? void 0 : xt.offsetWidth, it = (ke = J.current) == null ? void 0 : ke.offsetHeight;
3317
- v != null && it != null && (H.height !== it || H.width !== v) && E({ width: v, height: it });
3318
- }, [H.height, H.width]);
3324
+ v != null && it != null && (P.height !== it || P.width !== v) && x({ width: v, height: it });
3325
+ }, [P.height, P.width]);
3319
3326
  const X = sr(
3320
3327
  t,
3321
3328
  e,
3322
3329
  s,
3323
3330
  i
3324
3331
  ), {
3325
- visiblePanel: z,
3332
+ visiblePanel: G,
3326
3333
  visibleMonth: W,
3327
- onValueChangeByInputs: G,
3334
+ onValueChangeByInputs: j,
3328
3335
  setVisibleMonth: lt,
3329
3336
  setVisiblePanel: nt,
3330
3337
  monthPickerButtonRef: st
3331
- } = X, C = M(
3338
+ } = X, C = y(
3332
3339
  (v) => {
3333
- v.key === "Escape" && O();
3340
+ v.key === "Escape" && $();
3334
3341
  },
3335
- [O]
3342
+ [$]
3336
3343
  );
3337
3344
  return /* @__PURE__ */ N(
3338
3345
  B,
3339
3346
  {
3340
3347
  position: "relative",
3341
- className: ne.travelDateRangeInput,
3342
- ref: K,
3348
+ className: se.travelDateRangeInput,
3349
+ ref: z,
3343
3350
  onKeyDown: C,
3344
- height: H.height,
3345
- width: H.width,
3351
+ height: P.height,
3352
+ width: P.width,
3346
3353
  children: [
3347
3354
  /* @__PURE__ */ o(
3348
3355
  B,
3349
3356
  {
3350
3357
  position: "absolute",
3351
3358
  ref: J,
3352
- zIndex: k ? D : g,
3359
+ zIndex: S ? g : b,
3353
3360
  children: /* @__PURE__ */ o(
3354
3361
  nr,
3355
3362
  {
3356
3363
  ...X,
3357
3364
  value: t,
3358
- onValueChange: G,
3365
+ onValueChange: j,
3359
3366
  localeCode: s,
3360
3367
  startDateLabel: r,
3361
3368
  endDateLabel: n,
3362
- onFocus: j,
3363
- calendarSize: b,
3369
+ onFocus: K,
3370
+ calendarSize: D,
3364
3371
  placeholderWhenBlurredStartDate: l,
3365
3372
  placeholderWhenBlurredEndDate: d,
3366
3373
  variant: L
@@ -3368,14 +3375,14 @@ const ae = ({
3368
3375
  )
3369
3376
  }
3370
3377
  ),
3371
- k && /* @__PURE__ */ o(
3378
+ S && /* @__PURE__ */ o(
3372
3379
  B,
3373
3380
  {
3374
3381
  position: "absolute",
3375
- zIndex: D - 1,
3382
+ zIndex: g - 1,
3376
3383
  left: "-2.4rem",
3377
3384
  top: u ? "-8.0rem" : "-2.4rem",
3378
- className: wt(ne.overlay, x && ne.calendarVisible),
3385
+ className: wt(se.overlay, A && se.calendarVisible),
3379
3386
  children: /* @__PURE__ */ o(
3380
3387
  B,
3381
3388
  {
@@ -3383,35 +3390,35 @@ const ae = ({
3383
3390
  shadow: "popover",
3384
3391
  borderRadius: "var(--swui-border-radius-large)",
3385
3392
  children: /* @__PURE__ */ N(We, { gap: 3, children: [
3386
- u && /* @__PURE__ */ o(Yt, { variant: "h2", as: f, children: u }),
3393
+ u && /* @__PURE__ */ o(Yt, { variant: "h2", as: m, children: u }),
3387
3394
  /* @__PURE__ */ o(B, { height: q }),
3388
3395
  /* @__PURE__ */ o(
3389
- Zt,
3396
+ Vt,
3390
3397
  {
3391
3398
  ...X,
3392
3399
  previousMonthButtonAriaLabel: c,
3393
3400
  nextMonthButtonAriaLabel: a,
3394
- calendarSize: b,
3395
- previousMonthButtonTestId: S,
3396
- nextMonthButtonTestId: I
3401
+ calendarSize: D,
3402
+ previousMonthButtonTestId: k,
3403
+ nextMonthButtonTestId: T
3397
3404
  }
3398
3405
  ),
3399
- z === "calendar" && /* @__PURE__ */ o(
3400
- Vt,
3406
+ G === "calendar" && /* @__PURE__ */ o(
3407
+ te,
3401
3408
  {
3402
3409
  ...X,
3403
- size: b,
3410
+ size: D,
3404
3411
  multiSelectable: !0,
3405
- dateTestId: p
3412
+ dateTestId: M
3406
3413
  }
3407
3414
  ),
3408
- z === "month-picker" && /* @__PURE__ */ o(
3415
+ G === "month-picker" && /* @__PURE__ */ o(
3409
3416
  $t,
3410
3417
  {
3411
- firstMonth: h,
3412
- numMonths: m,
3418
+ firstMonth: f,
3419
+ numMonths: h,
3413
3420
  value: W,
3414
- size: b,
3421
+ size: D,
3415
3422
  localeCode: s,
3416
3423
  onValueChange: (v) => {
3417
3424
  var it;
@@ -3423,7 +3430,7 @@ const ae = ({
3423
3430
  }
3424
3431
  }
3425
3432
  ),
3426
- y == null ? void 0 : y({ hideCalendar: O })
3433
+ p == null ? void 0 : p({ hideCalendar: $ })
3427
3434
  ] })
3428
3435
  }
3429
3436
  )
@@ -3432,7 +3439,7 @@ const ae = ({
3432
3439
  ]
3433
3440
  }
3434
3441
  );
3435
- }, Bs = "_travelDateInput_hmfbf_1", Ys = "_overlay_hmfbf_2", Ps = "_calendarVisible_hmfbf_6", se = {
3442
+ }, Bs = "_travelDateInput_hmfbf_1", Ys = "_overlay_hmfbf_2", Ps = "_calendarVisible_hmfbf_6", ie = {
3436
3443
  travelDateInput: Bs,
3437
3444
  overlay: Ys,
3438
3445
  calendarVisible: Ps
@@ -3447,22 +3454,22 @@ const ae = ({
3447
3454
  valueWhenBlurred: a,
3448
3455
  variant: l
3449
3456
  }) => {
3450
- const { mask: d, placeholder: u } = T(() => {
3451
- const f = Et(n);
3457
+ const { mask: d, placeholder: u } = R(() => {
3458
+ const m = Et(n);
3452
3459
  return {
3453
- mask: rr(f),
3454
- placeholder: f.toLowerCase()
3460
+ mask: rr(m),
3461
+ placeholder: m.toLowerCase()
3455
3462
  };
3456
3463
  }, [n]);
3457
- return /* @__PURE__ */ o(P, { children: /* @__PURE__ */ o(
3458
- ae,
3464
+ return /* @__PURE__ */ o(H, { children: /* @__PURE__ */ o(
3465
+ le,
3459
3466
  {
3460
3467
  mask: d,
3461
3468
  value: t,
3462
3469
  onValueChange: e,
3463
- onBlur: (f) => {
3464
- const m = le(f.target.value, n);
3465
- m && m !== t && (e == null || e(m));
3470
+ onBlur: (m) => {
3471
+ const h = de(m.target.value, n);
3472
+ h && h !== t && (e == null || e(h));
3466
3473
  },
3467
3474
  onFocus: s,
3468
3475
  label: r,
@@ -3474,62 +3481,62 @@ const ae = ({
3474
3481
  }
3475
3482
  ) });
3476
3483
  }, cr = (t, e, r, n) => {
3477
- const s = Rt(r), i = we(), c = Me(), a = U(null), l = T(
3484
+ const s = Rt(r), i = ye(), c = Gt(), a = U(null), l = R(
3478
3485
  () => Et(r),
3479
3486
  [r]
3480
- ), d = T(
3481
- () => (t == null ? void 0 : t.length) === l.length ? pt(t, r) : void 0,
3487
+ ), d = R(
3488
+ () => (t == null ? void 0 : t.length) === l.length ? Dt(t, r) : void 0,
3482
3489
  [l.length, r, t]
3483
- ), u = T(
3484
- () => d != null ? de(d, c, s) : void 0,
3490
+ ), u = R(
3491
+ () => d != null ? ue(d, c, s) : void 0,
3485
3492
  [s, d, c]
3486
- ), [f, m] = R(
3493
+ ), [m, h] = I(
3487
3494
  n ?? d ?? /* @__PURE__ */ new Date()
3488
- ), h = M(
3489
- (k) => {
3490
- ot(k, c) || V(k, c) ? m(k) : m(c);
3495
+ ), f = y(
3496
+ (S) => {
3497
+ ot(S, c) || V(S, c) ? h(S) : h(c);
3491
3498
  },
3492
3499
  [c]
3493
- ), D = T(
3494
- () => Qt(
3495
- f.getFullYear(),
3496
- f.getMonth(),
3500
+ ), g = R(
3501
+ () => Xt(
3502
+ m.getFullYear(),
3503
+ m.getMonth(),
3497
3504
  s
3498
3505
  ),
3499
- [s, f]
3500
- ), g = T(() => vt($(f, "MMMM yyyy", { locale: s })), [s, f]), w = T(() => ot(c, f), [c, f]), [y, b] = R(), [p, S] = R("calendar"), I = M(
3501
- (k) => {
3502
- const _ = (k == null ? void 0 : k.length) === l.length ? pt(k, r) : void 0;
3503
- _ && h(_), e == null || e(k);
3506
+ [s, m]
3507
+ ), b = R(() => vt(O(m, "MMMM yyyy", { locale: s })), [s, m]), w = R(() => ot(c, m), [c, m]), [p, D] = I(), [M, k] = I("calendar"), T = y(
3508
+ (S) => {
3509
+ const _ = (S == null ? void 0 : S.length) === l.length ? Dt(S, r) : void 0;
3510
+ _ && f(_), e == null || e(S);
3504
3511
  },
3505
- [l.length, r, e, h]
3506
- ), L = T(
3507
- () => ot(c, f) || ct(f, c),
3508
- [c, f]
3512
+ [l.length, r, e, f]
3513
+ ), L = R(
3514
+ () => ot(c, m) || ct(m, c),
3515
+ [c, m]
3509
3516
  );
3510
3517
  return {
3511
- isDateDisabled: M(
3512
- (k) => !Y(k, c) && ct(k, c),
3518
+ isDateDisabled: y(
3519
+ (S) => !Y(S, c) && ct(S, c),
3513
3520
  [c]
3514
3521
  ),
3515
- onClickDate: (k) => {
3516
- e == null || e(At(k, r));
3522
+ onClickDate: (S) => {
3523
+ e == null || e(At(S, r));
3517
3524
  },
3518
- onValueChangeByInputs: I,
3525
+ onValueChangeByInputs: T,
3519
3526
  prevMonthDisabled: L,
3520
3527
  monthPickerButtonRef: a,
3521
3528
  calendarId: i,
3522
- monthPickerButtonLabel: g,
3523
- visiblePanel: p,
3524
- setVisiblePanel: S,
3525
- setVisibleMonth: m,
3526
- visibleMonthData: D,
3529
+ monthPickerButtonLabel: b,
3530
+ visiblePanel: M,
3531
+ setVisiblePanel: k,
3532
+ setVisibleMonth: h,
3533
+ visibleMonthData: g,
3527
3534
  todayIsInVisibleMonth: w,
3528
- hoverDate: y,
3529
- setHoverDate: b,
3535
+ hoverDate: p,
3536
+ setHoverDate: D,
3530
3537
  selectedDate: d,
3531
3538
  today: c,
3532
- visibleMonth: f,
3539
+ visibleMonth: m,
3533
3540
  valueWhenBlurred: u
3534
3541
  };
3535
3542
  }, gi = ({
@@ -3544,36 +3551,36 @@ const ae = ({
3544
3551
  heading: l,
3545
3552
  headingLevel: d,
3546
3553
  numMonthsInMonthPicker: u = 12,
3547
- firstMonthInMonthPicker: f = /* @__PURE__ */ new Date(),
3548
- zIndex: m = 1e3,
3549
- zIndexWhenClosed: h,
3550
- onHideCalendar: D,
3551
- renderBelowCalendar: g,
3554
+ firstMonthInMonthPicker: m = /* @__PURE__ */ new Date(),
3555
+ zIndex: h = 1e3,
3556
+ zIndexWhenClosed: f,
3557
+ onHideCalendar: g,
3558
+ renderBelowCalendar: b,
3552
3559
  size: w = "medium",
3553
- dateTestId: y,
3554
- previousMonthButtonTestId: b,
3555
- nextMonthButtonTestId: p,
3556
- textInputVariant: S = "standard"
3560
+ dateTestId: p,
3561
+ previousMonthButtonTestId: D,
3562
+ nextMonthButtonTestId: M,
3563
+ textInputVariant: k = "standard"
3557
3564
  }) => {
3558
- const [I, L] = R(!1), [x, A] = R(!1), [k, _] = R({
3565
+ const [T, L] = I(!1), [A, E] = I(!1), [S, _] = I({
3559
3566
  // Sane defaults, this will be updated with actual data from DOM.
3560
3567
  width: 336,
3561
3568
  height: 66
3562
- }), H = w === "large" ? "8.8rem" : "6.6rem", E = U(!1), q = M(() => {
3563
- E.current = !0, A(!0), setTimeout(() => {
3569
+ }), P = w === "large" ? "8.8rem" : "6.6rem", x = U(!1), q = y(() => {
3570
+ x.current = !0, E(!0), setTimeout(() => {
3564
3571
  L(!0);
3565
3572
  }, 10);
3566
- }, []), F = M(() => {
3567
- x && (L(!1), E.current = !1, D == null || D(), setTimeout(() => {
3568
- E.current || A(!1);
3573
+ }, []), F = y(() => {
3574
+ A && (L(!1), x.current = !1, g == null || g(), setTimeout(() => {
3575
+ x.current || E(!1);
3569
3576
  }, 120));
3570
- }, [x, D]), j = U(null), O = U(null);
3571
- Ye(j, F), Ke(() => {
3577
+ }, [A, g]), K = U(null), $ = U(null);
3578
+ Ye(K, F), Ke(() => {
3572
3579
  var it, xt;
3573
- const C = (it = O.current) == null ? void 0 : it.offsetWidth, v = (xt = O.current) == null ? void 0 : xt.offsetHeight;
3574
- C != null && v != null && (k.height !== v || k.width !== C) && _({ width: C, height: v });
3575
- }, [k.height, k.width]);
3576
- const K = cr(
3580
+ const C = (it = $.current) == null ? void 0 : it.offsetWidth, v = (xt = $.current) == null ? void 0 : xt.offsetHeight;
3581
+ C != null && v != null && (S.height !== v || S.width !== C) && _({ width: C, height: v });
3582
+ }, [S.height, S.width]);
3583
+ const z = cr(
3577
3584
  t,
3578
3585
  e,
3579
3586
  n,
@@ -3581,12 +3588,12 @@ const ae = ({
3581
3588
  ), {
3582
3589
  visiblePanel: J,
3583
3590
  visibleMonth: X,
3584
- onValueChangeByInputs: z,
3591
+ onValueChangeByInputs: G,
3585
3592
  selectedDate: W,
3586
- setVisibleMonth: G,
3593
+ setVisibleMonth: j,
3587
3594
  setVisiblePanel: lt,
3588
3595
  monthPickerButtonRef: nt
3589
- } = K, st = M(
3596
+ } = z, st = y(
3590
3597
  (C) => {
3591
3598
  C.key === "Escape" && F();
3592
3599
  },
@@ -3596,42 +3603,42 @@ const ae = ({
3596
3603
  B,
3597
3604
  {
3598
3605
  position: "relative",
3599
- className: se.travelDateInput,
3600
- ref: j,
3606
+ className: ie.travelDateInput,
3607
+ ref: K,
3601
3608
  onKeyDown: st,
3602
- height: k.height,
3603
- width: k.width,
3609
+ height: S.height,
3610
+ width: S.width,
3604
3611
  children: [
3605
3612
  /* @__PURE__ */ o(
3606
3613
  B,
3607
3614
  {
3608
3615
  position: "absolute",
3609
- ref: O,
3610
- zIndex: x ? m : h,
3616
+ ref: $,
3617
+ zIndex: A ? h : f,
3611
3618
  children: /* @__PURE__ */ o(
3612
3619
  ir,
3613
3620
  {
3614
- ...K,
3621
+ ...z,
3615
3622
  value: t,
3616
- onValueChange: z,
3623
+ onValueChange: G,
3617
3624
  localeCode: n,
3618
3625
  label: r,
3619
3626
  onFocus: q,
3620
3627
  calendarSize: w,
3621
3628
  placeholderWhenBlurred: a,
3622
- variant: S
3629
+ variant: k
3623
3630
  }
3624
3631
  )
3625
3632
  }
3626
3633
  ),
3627
- x && /* @__PURE__ */ o(
3634
+ A && /* @__PURE__ */ o(
3628
3635
  B,
3629
3636
  {
3630
3637
  position: "absolute",
3631
- zIndex: m - 1,
3638
+ zIndex: h - 1,
3632
3639
  left: "-2.4rem",
3633
3640
  top: l ? "-8.0rem" : "-2.4rem",
3634
- className: wt(se.overlay, I && se.calendarVisible),
3641
+ className: wt(ie.overlay, T && ie.calendarVisible),
3635
3642
  children: /* @__PURE__ */ o(
3636
3643
  B,
3637
3644
  {
@@ -3640,41 +3647,41 @@ const ae = ({
3640
3647
  borderRadius: "var(--swui-border-radius-large)",
3641
3648
  children: /* @__PURE__ */ N(We, { gap: 3, children: [
3642
3649
  l && /* @__PURE__ */ o(Yt, { variant: "h2", as: d, children: l }),
3643
- /* @__PURE__ */ o(B, { height: H }),
3650
+ /* @__PURE__ */ o(B, { height: P }),
3644
3651
  /* @__PURE__ */ o(
3645
- Zt,
3652
+ Vt,
3646
3653
  {
3647
- ...K,
3654
+ ...z,
3648
3655
  previousMonthButtonAriaLabel: i,
3649
3656
  nextMonthButtonAriaLabel: c,
3650
3657
  calendarSize: w,
3651
- previousMonthButtonTestId: b,
3652
- nextMonthButtonTestId: p
3658
+ previousMonthButtonTestId: D,
3659
+ nextMonthButtonTestId: M
3653
3660
  }
3654
3661
  ),
3655
3662
  J === "calendar" && /* @__PURE__ */ o(
3656
- Vt,
3663
+ te,
3657
3664
  {
3658
- ...K,
3665
+ ...z,
3659
3666
  size: w,
3660
3667
  isValidDateRange: !!W,
3661
3668
  selectedStartDate: W,
3662
3669
  selectedEndDate: W,
3663
3670
  multiSelectable: !1,
3664
- dateTestId: y
3671
+ dateTestId: p
3665
3672
  }
3666
3673
  ),
3667
3674
  J === "month-picker" && /* @__PURE__ */ o(
3668
3675
  $t,
3669
3676
  {
3670
- firstMonth: f,
3677
+ firstMonth: m,
3671
3678
  numMonths: u,
3672
3679
  value: X,
3673
3680
  size: w,
3674
3681
  localeCode: n,
3675
3682
  onValueChange: (C) => {
3676
3683
  var v;
3677
- G(C), lt("calendar"), (v = nt.current) == null || v.focus();
3684
+ j(C), lt("calendar"), (v = nt.current) == null || v.focus();
3678
3685
  },
3679
3686
  onCancel: () => {
3680
3687
  var C;
@@ -3682,7 +3689,7 @@ const ae = ({
3682
3689
  }
3683
3690
  }
3684
3691
  ),
3685
- g == null ? void 0 : g({ hideCalendar: F })
3692
+ b == null ? void 0 : b({ hideCalendar: F })
3686
3693
  ] })
3687
3694
  }
3688
3695
  )
@@ -3691,7 +3698,7 @@ const ae = ({
3691
3698
  ]
3692
3699
  }
3693
3700
  );
3694
- }, Di = ({
3701
+ }, pi = ({
3695
3702
  value: t,
3696
3703
  onValueChange: e,
3697
3704
  label: r,
@@ -3703,85 +3710,85 @@ const ae = ({
3703
3710
  heading: l,
3704
3711
  headingLevel: d,
3705
3712
  numMonthsInMonthPicker: u = 12,
3706
- firstMonthInMonthPicker: f = /* @__PURE__ */ new Date(),
3707
- dateTestId: m,
3708
- size: h = "medium",
3709
- previousMonthButtonTestId: D,
3710
- nextMonthButtonTestId: g,
3713
+ firstMonthInMonthPicker: m = /* @__PURE__ */ new Date(),
3714
+ dateTestId: h,
3715
+ size: f = "medium",
3716
+ previousMonthButtonTestId: g,
3717
+ nextMonthButtonTestId: b,
3711
3718
  textInputVariant: w = "standard"
3712
3719
  }) => {
3713
- const y = cr(
3720
+ const p = cr(
3714
3721
  t,
3715
3722
  e,
3716
3723
  n,
3717
3724
  s
3718
3725
  ), {
3719
- visiblePanel: b,
3720
- visibleMonth: p,
3721
- onValueChangeByInputs: S,
3722
- setVisibleMonth: I,
3726
+ visiblePanel: D,
3727
+ visibleMonth: M,
3728
+ onValueChangeByInputs: k,
3729
+ setVisibleMonth: T,
3723
3730
  setVisiblePanel: L,
3724
- monthPickerButtonRef: x,
3725
- selectedDate: A
3726
- } = y;
3731
+ monthPickerButtonRef: A,
3732
+ selectedDate: E
3733
+ } = p;
3727
3734
  return /* @__PURE__ */ N(Q, { gap: 3, children: [
3728
3735
  l && /* @__PURE__ */ o(Yt, { variant: "h2", as: d, children: l }),
3729
3736
  /* @__PURE__ */ o(
3730
3737
  ir,
3731
3738
  {
3732
- ...y,
3739
+ ...p,
3733
3740
  value: t,
3734
- onValueChange: S,
3741
+ onValueChange: k,
3735
3742
  localeCode: n,
3736
3743
  label: r,
3737
- calendarSize: h,
3744
+ calendarSize: f,
3738
3745
  placeholderWhenBlurred: a,
3739
3746
  variant: w
3740
3747
  }
3741
3748
  ),
3742
3749
  /* @__PURE__ */ o(
3743
- Zt,
3750
+ Vt,
3744
3751
  {
3745
- ...y,
3752
+ ...p,
3746
3753
  previousMonthButtonAriaLabel: i,
3747
3754
  nextMonthButtonAriaLabel: c,
3748
- calendarSize: h,
3749
- previousMonthButtonTestId: D,
3750
- nextMonthButtonTestId: g
3755
+ calendarSize: f,
3756
+ previousMonthButtonTestId: g,
3757
+ nextMonthButtonTestId: b
3751
3758
  }
3752
3759
  ),
3753
- b === "calendar" && /* @__PURE__ */ o(
3754
- Vt,
3760
+ D === "calendar" && /* @__PURE__ */ o(
3761
+ te,
3755
3762
  {
3756
- ...y,
3757
- size: h,
3758
- selectedStartDate: A,
3759
- selectedEndDate: A,
3760
- isValidDateRange: !!A,
3763
+ ...p,
3764
+ size: f,
3765
+ selectedStartDate: E,
3766
+ selectedEndDate: E,
3767
+ isValidDateRange: !!E,
3761
3768
  multiSelectable: !1,
3762
- dateTestId: m
3769
+ dateTestId: h
3763
3770
  }
3764
3771
  ),
3765
- b === "month-picker" && /* @__PURE__ */ o(
3772
+ D === "month-picker" && /* @__PURE__ */ o(
3766
3773
  $t,
3767
3774
  {
3768
- firstMonth: f,
3775
+ firstMonth: m,
3769
3776
  numMonths: u,
3770
- value: p,
3777
+ value: M,
3771
3778
  localeCode: n,
3772
- size: h,
3773
- onValueChange: (k) => {
3779
+ size: f,
3780
+ onValueChange: (S) => {
3774
3781
  var _;
3775
- I(k), L("calendar"), (_ = x.current) == null || _.focus();
3782
+ T(S), L("calendar"), (_ = A.current) == null || _.focus();
3776
3783
  },
3777
3784
  onCancel: () => {
3778
- var k;
3779
- L("calendar"), (k = x.current) == null || k.focus();
3785
+ var S;
3786
+ L("calendar"), (S = A.current) == null || S.focus();
3780
3787
  }
3781
3788
  }
3782
3789
  )
3783
3790
  ] });
3784
- }, pi = ({
3791
+ }, Di = ({
3785
3792
  value: t,
3786
3793
  onValueChange: e,
3787
3794
  startDateLabel: r,
@@ -3793,87 +3800,87 @@ const ae = ({
3793
3800
  heading: l,
3794
3801
  headingLevel: d,
3795
3802
  numMonthsInMonthPicker: u = 12,
3796
- firstMonthInMonthPicker: f = /* @__PURE__ */ new Date(),
3797
- size: m = "medium",
3798
- dateTestId: h,
3799
- previousMonthButtonTestId: D,
3800
- nextMonthButtonTestId: g,
3803
+ firstMonthInMonthPicker: m = /* @__PURE__ */ new Date(),
3804
+ size: h = "medium",
3805
+ dateTestId: f,
3806
+ previousMonthButtonTestId: g,
3807
+ nextMonthButtonTestId: b,
3801
3808
  placeholderWhenBlurredStartDate: w,
3802
- placeholderWhenBlurredEndDate: y,
3803
- textInputVariant: b = "standard"
3809
+ placeholderWhenBlurredEndDate: p,
3810
+ textInputVariant: D = "standard"
3804
3811
  }) => {
3805
- const p = sr(
3812
+ const M = sr(
3806
3813
  t,
3807
3814
  e,
3808
3815
  s,
3809
3816
  i
3810
3817
  ), {
3811
- visiblePanel: S,
3812
- visibleMonth: I,
3818
+ visiblePanel: k,
3819
+ visibleMonth: T,
3813
3820
  onValueChangeByInputs: L,
3814
- setVisibleMonth: x,
3815
- setVisiblePanel: A,
3816
- monthPickerButtonRef: k
3817
- } = p;
3821
+ setVisibleMonth: A,
3822
+ setVisiblePanel: E,
3823
+ monthPickerButtonRef: S
3824
+ } = M;
3818
3825
  return /* @__PURE__ */ N(Q, { gap: 3, children: [
3819
3826
  l && /* @__PURE__ */ o(Yt, { variant: "h2", as: d, children: l }),
3820
3827
  /* @__PURE__ */ o(
3821
3828
  nr,
3822
3829
  {
3823
- ...p,
3830
+ ...M,
3824
3831
  value: t,
3825
3832
  onValueChange: L,
3826
3833
  localeCode: s,
3827
3834
  startDateLabel: r,
3828
3835
  endDateLabel: n,
3829
- calendarSize: m,
3836
+ calendarSize: h,
3830
3837
  placeholderWhenBlurredStartDate: w,
3831
- placeholderWhenBlurredEndDate: y,
3832
- variant: b
3838
+ placeholderWhenBlurredEndDate: p,
3839
+ variant: D
3833
3840
  }
3834
3841
  ),
3835
3842
  /* @__PURE__ */ o(
3836
- Zt,
3843
+ Vt,
3837
3844
  {
3838
- ...p,
3845
+ ...M,
3839
3846
  previousMonthButtonAriaLabel: c,
3840
3847
  nextMonthButtonAriaLabel: a,
3841
- calendarSize: m,
3842
- previousMonthButtonTestId: D,
3843
- nextMonthButtonTestId: g
3848
+ calendarSize: h,
3849
+ previousMonthButtonTestId: g,
3850
+ nextMonthButtonTestId: b
3844
3851
  }
3845
3852
  ),
3846
- S === "calendar" && /* @__PURE__ */ o(
3847
- Vt,
3853
+ k === "calendar" && /* @__PURE__ */ o(
3854
+ te,
3848
3855
  {
3849
- ...p,
3850
- size: m,
3856
+ ...M,
3857
+ size: h,
3851
3858
  multiSelectable: !0,
3852
- dateTestId: h
3859
+ dateTestId: f
3853
3860
  }
3854
3861
  ),
3855
- S === "month-picker" && /* @__PURE__ */ o(
3862
+ k === "month-picker" && /* @__PURE__ */ o(
3856
3863
  $t,
3857
3864
  {
3858
- firstMonth: f,
3865
+ firstMonth: m,
3859
3866
  numMonths: u,
3860
- value: I,
3861
- size: m,
3867
+ value: T,
3868
+ size: h,
3862
3869
  localeCode: s,
3863
3870
  onValueChange: (_) => {
3864
- var H;
3865
- x(_), A("calendar"), (H = k.current) == null || H.focus();
3871
+ var P;
3872
+ A(_), E("calendar"), (P = S.current) == null || P.focus();
3866
3873
  },
3867
3874
  onCancel: () => {
3868
3875
  var _;
3869
- A("calendar"), (_ = k.current) == null || _.focus();
3876
+ E("calendar"), (_ = S.current) == null || _.focus();
3870
3877
  }
3871
3878
  }
3872
3879
  )
3873
3880
  ] });
3874
3881
  };
3875
3882
  export {
3876
- ce as Calendar,
3883
+ oe as Calendar,
3877
3884
  Ge as CalendarDay,
3878
3885
  oi as DateInput,
3879
3886
  ni as DateRangeCalendar,
@@ -3888,9 +3895,9 @@ export {
3888
3895
  Ve as SingleDateCalendar,
3889
3896
  ci as SingleWeekCalendar,
3890
3897
  di as TimeTextInput,
3891
- Di as TravelDateCalendar,
3898
+ pi as TravelDateCalendar,
3892
3899
  gi as TravelDateInput,
3893
- pi as TravelDateRangeCalendar,
3900
+ Di as TravelDateRangeCalendar,
3894
3901
  mi as TravelDateRangeInput,
3895
3902
  zr as WeekDay,
3896
3903
  rn as WeekDayCell,
@@ -3920,15 +3927,15 @@ export {
3920
3927
  ei as getDefaultLocaleForFormatting,
3921
3928
  gn as getLocaleCodeForLocale,
3922
3929
  Rt as getLocaleForLocaleCode,
3923
- Qt as getMonthInYear,
3930
+ Xt as getMonthInYear,
3924
3931
  Ae as getMonthsInYear,
3925
3932
  Qe as getSupportedLocaleCode,
3926
3933
  mn as getSupportedLocaleCodeMatchingLanguage,
3927
- ye as getWeekForDate,
3934
+ Me as getWeekForDate,
3928
3935
  Gr as getWeeksForMonth,
3929
3936
  Xe as isDateRangeInvalid,
3930
- pt as parseLocalizedDateString,
3931
- le as reformatLocalizedDateString,
3937
+ Dt as parseLocalizedDateString,
3938
+ de as reformatLocalizedDateString,
3932
3939
  Qs as setDayStateValue,
3933
3940
  Xs as setDayStateValueFunction,
3934
3941
  xn as stringsToDateRange,