@stenajs-webui/calendar 21.21.2 → 21.22.0

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,18 +1,18 @@
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 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
- 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 be } from "lodash-es";
2
+ import { jsx as o, jsxs as _, Fragment as he } from "react/jsx-runtime";
3
+ import { Box as B, Text as yt, Clickable as je, Row as H, Spacing as Dr, useToday as qt, Column as Z, Heading as Yt, exhaustSwitchCase as me, Space as St, Indent as Nt, SeparatorLine as br, parseIntElseUndefined as Se, useBoolean as oe, useDelayedFalse as Te, useOnClickOutside as Ke } from "@stenajs-webui/core";
4
+ import { FlatButton as tt, stenaAngleDown as ge, PrimaryButton as It, stenaAngleLeft as wr, stenaAngleRight as yr, SecondaryButton as ft, stenaAngleLeftDouble as Mr, stenaArrowLeft as Jt, stenaArrowRight as Pt, stenaAngleRightDouble as kr, TextInputButton as Sr, stenaCalendar as _t, Icon as ze, stenaArrowWideRight as Tr, stenaClock as Ge, Label as Rr, stenaAngleUp as Ir, CardBody as qe } from "@stenajs-webui/elements";
5
+ import { isAfter as V, eachDayOfInterval as Je, isSameDay as Y, endOfMonth as Ze, startOfMonth as Qe, min as Er, addDays as X, max as xr, subDays as gt, format as O, getISOWeek as pe, getDate as Zt, startOfWeek as jt, addWeeks as Ar, getMonth as pt, getWeek as Xe, getYear as Lt, getISODay as Nr, addHours as Ve, isBefore as ct, parse as bt, addMonths as Ht, isSameMonth as ot, addYears as _r, subMonths as De, subYears as Lr, setWeek as vr, isValid as Br, isSameYear as Yr } from "date-fns";
6
+ import { enGB as Kt, enUS as Pr, enIE as Hr, deAT as Wr, nlBE as $r, nl as Re, de as Ie, nb as Ee, sv as xe, da as Ae, lv as Ne, lt as _e, it as Le, et as ve, fi as Be, cs as Ye, es as Pe, fr as He, pl as We } from "date-fns/locale";
7
+ import { last as Or, startCase as vt, chunk as tr, debounce as Ur, padStart as Fr, range as be } from "lodash-es";
8
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";
9
+ import { useMemo as R, useRef as U, useEffect as rt, useCallback as y, useId as ye, useState as I, useLayoutEffect as er } from "react";
10
10
  import wt from "classnames";
11
- import ee from "@emotion/styled";
12
- import { TextInput as mt, TextInputBox as Wr, LabelledTextInput as $r } from "@stenajs-webui/forms";
11
+ import re from "@emotion/styled";
12
+ import { TextInput as mt, TextInputBox as Cr, LabelledTextInput as jr } from "@stenajs-webui/forms";
13
13
  import { ControlledPopover as Wt } from "@stenajs-webui/tooltip";
14
14
  import { cssColor as Qt } from "@stenajs-webui/theme";
15
- import { useMaskedInput as Or } from "@stenajs-webui/input-mask";
15
+ import { useMaskedInput as Kr } from "@stenajs-webui/input-mask";
16
16
  const at = {
17
17
  yearAndMonth: "yyyy-MM",
18
18
  fullDate: "yyyy-MM-dd",
@@ -29,7 +29,7 @@ const at = {
29
29
  // Jan 2nd
30
30
  }, Bt = (t = {}, e, r) => {
31
31
  if (e && r && V(r, e))
32
- return $e({ start: e, end: r }).reduce(
32
+ return Je({ start: e, end: r }).reduce(
33
33
  (s, i) => {
34
34
  const c = Y(i, e), a = Y(i, r);
35
35
  return ht(s, i, c ? ["selected", "selectedStart", "range"] : a ? ["selected", "selectedEnd", "range"] : ["range"]);
@@ -38,18 +38,18 @@ const at = {
38
38
  );
39
39
  let n = t;
40
40
  return e && (n = ht(n, e, ["selected", "singleSelected"])), r && (n = ht(n, r, ["selected", "singleSelected"])), n;
41
- }, Ur = (t = {}, e, r, n) => Fr(
41
+ }, zr = (t = {}, e, r, n) => Gr(
42
42
  t,
43
43
  e,
44
44
  r,
45
- Ue(n),
46
- Oe(n)
47
- ), Fr = (t = {}, e, r, n, s) => e && r ? Bt(
45
+ Qe(n),
46
+ Ze(n)
47
+ ), Gr = (t = {}, e, r, n, s) => e && r ? Bt(
48
48
  t,
49
- br([e, gt(n, 1)]),
50
- Dr([r, Z(s, 1)])
51
- ) : Bt(t, e, r), Qs = (t, e, r) => {
52
- const n = O(e, at.yearAndMonth), s = ge(e), i = Jt(e);
49
+ xr([e, gt(n, 1)]),
50
+ Er([r, X(s, 1)])
51
+ ) : Bt(t, e, r), ei = (t, e, r) => {
52
+ const n = O(e, at.yearAndMonth), s = pe(e), i = Zt(e);
53
53
  return {
54
54
  ...t,
55
55
  [n]: {
@@ -63,8 +63,8 @@ const at = {
63
63
  }
64
64
  }
65
65
  };
66
- }, Xs = (t, e, r) => {
67
- const n = O(e, at.yearAndMonth), s = ge(e), i = Jt(e);
66
+ }, ri = (t, e, r) => {
67
+ const n = O(e, at.yearAndMonth), s = pe(e), i = Zt(e);
68
68
  return {
69
69
  ...t,
70
70
  [n]: {
@@ -81,21 +81,21 @@ 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 = ge(e), c = Jt(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 = pe(e), c = Zt(e), a = t && t[s] && t[s][i] && t[s][i][c];
85
85
  return {
86
86
  ...t,
87
87
  [s]: {
88
88
  ...t && t[s],
89
89
  [i]: {
90
90
  ...t && t[s] && t[s][i],
91
- [c]: ze(a, r)
91
+ [c]: rr(a, r)
92
92
  }
93
93
  }
94
94
  };
95
- }, ze = (t, e) => ({
95
+ }, rr = (t, e) => ({
96
96
  ...t,
97
97
  highlights: [...(t == null ? void 0 : t.highlights) ?? [], ...e]
98
- }), Zs = (t, e, r) => {
98
+ }), ni = (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
101
  e.days.forEach((m) => {
@@ -112,17 +112,17 @@ const at = {
112
112
  [c]: u
113
113
  }
114
114
  };
115
- }, Cr = (t, e) => {
115
+ }, qr = (t, e) => {
116
116
  var s;
117
117
  if (!e.days.length)
118
118
  return { ...t };
119
- const r = e.days[0].date, n = (s = Yr(e.days)) == null ? void 0 : s.date;
119
+ const r = e.days[0].date, n = (s = Or(e.days)) == null ? void 0 : s.date;
120
120
  return {
121
121
  ...Bt(t, r, n)
122
122
  };
123
- }, jr = (t, e) => R(() => t ? ht(e, /* @__PURE__ */ new Date(), ["today"]) : e, [t, e]);
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
- const Ae = (t, e, r, n) => {
123
+ }, Jr = (t, e) => R(() => t ? ht(e, /* @__PURE__ */ new Date(), ["today"]) : e, [t, e]);
124
+ var Zr = /* @__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))(Zr || {}), Qr = /* @__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))(Qr || {});
125
+ const $e = (t, e, r, n) => {
126
126
  const s = [];
127
127
  for (let i = 0; i < r; i++)
128
128
  s.push(Xt(t, e + i, n));
@@ -138,52 +138,52 @@ const Ae = (t, e, r, n) => {
138
138
  ),
139
139
  year: n,
140
140
  monthInYear: s,
141
- weeks: Gr(n, s, r)
141
+ weeks: Xr(n, s, r)
142
142
  };
143
- }, Gr = (t, e, r, n = !0) => {
143
+ }, Xr = (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 = Me(wr(i, a), r);
146
+ const l = Me(Ar(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
152
  }, Me = (t, e) => {
153
- const r = pt(Z(t, 7)) !== pt(t);
153
+ const r = pt(X(t, 7)) !== pt(t);
154
154
  return {
155
- weekNumber: Fe(t, { locale: e }),
155
+ weekNumber: Xe(t, { locale: e }),
156
156
  startMonth: pt(t),
157
157
  startYear: Lt(t),
158
- endMonth: pt(Z(t, 6)),
159
- endYear: Lt(Z(t, 6)),
160
- days: Jr(t, e),
158
+ endMonth: pt(X(t, 6)),
159
+ endYear: Lt(X(t, 6)),
160
+ days: tn(t, e),
161
161
  isLastWeekOfMonth: r
162
162
  };
163
- }, qr = (t, e) => {
164
- const r = yr(t);
163
+ }, Vr = (t, e) => {
164
+ const r = Nr(t);
165
165
  return {
166
166
  date: t,
167
167
  name: O(t, "EEE", e ? { locale: e } : void 0),
168
168
  fullName: O(t, "EEEE", e ? { locale: e } : void 0),
169
- dateString: O(Ce(t, 12), at.fullDate),
170
- weekNumber: Fe(t, { locale: e }),
169
+ dateString: O(Ve(t, 12), at.fullDate),
170
+ weekNumber: Xe(t, { locale: e }),
171
171
  year: Lt(t),
172
172
  month: pt(t),
173
- dayOfMonth: Jt(t),
173
+ dayOfMonth: Zt(t),
174
174
  dayOfWeek: r,
175
175
  isFirstDayOfWeek: r === 1,
176
176
  isLastDayOfWeek: r === 7,
177
- isFirstDayOfMonth: Y(Ue(t), t),
178
- isLastDayOfMonth: Y(Oe(t), t)
177
+ isFirstDayOfMonth: Y(Qe(t), t),
178
+ isLastDayOfMonth: Y(Ze(t), t)
179
179
  };
180
- }, Jr = (t, e) => $e({
180
+ }, tn = (t, e) => Je({
181
181
  start: t,
182
- end: Z(t, 6)
183
- }).map((r) => qr(r, e)), Qr = (t, e) => e > 11 ? { year: t + Math.floor(e / 12), month: e % 12 } : e < 0 ? { year: t + Math.floor(e / 12), month: 12 + e % 12 } : { year: t, month: e }, Xr = "_calendar_1b766_1", Zr = "_weekNumberVisible_1b766_41", _e = {
184
- calendar: Xr,
185
- weekNumberVisible: Zr
186
- }, Vr = (t, e, r) => !!(e && e.indexOf(r) >= 0 || t && t.highlights && t.highlights.indexOf(r) >= 0), ut = (t, e, r, n, s) => {
182
+ end: X(t, 6)
183
+ }).map((r) => Vr(r, e)), en = (t, e) => e > 11 ? { year: t + Math.floor(e / 12), month: e % 12 } : e < 0 ? { year: t + Math.floor(e / 12), month: 12 + e % 12 } : { year: t, month: e }, rn = "_calendar_1b766_1", nn = "_weekNumberVisible_1b766_41", Oe = {
184
+ calendar: rn,
185
+ weekNumberVisible: nn
186
+ }, sn = (t, e, r) => !!(e && e.indexOf(r) >= 0 || t && t.highlights && t.highlights.indexOf(r) >= 0), ut = (t, e, r, n, s) => {
187
187
  if (r.length !== n.length)
188
188
  throw new Error(
189
189
  "Select highlight failed, number of values do not equal number of highlights."
@@ -191,14 +191,14 @@ const Ae = (t, e, r, n) => {
191
191
  if (r.length === 0)
192
192
  return s;
193
193
  for (let i = 0; i < r.length; i++)
194
- if (typeof r[i] == "boolean" && r[i] || typeof r[i] == "string" && Vr(
194
+ if (typeof r[i] == "boolean" && r[i] || typeof r[i] == "string" && sn(
195
195
  t,
196
196
  e,
197
197
  r[i]
198
198
  ))
199
199
  return n[i];
200
200
  return s;
201
- }, tn = ({
201
+ }, cn = ({
202
202
  selectedBackground: t,
203
203
  todayBackground: e,
204
204
  rangeBackground: r,
@@ -271,7 +271,7 @@ const Ae = (t, e, r, n) => {
271
271
  "unset"
272
272
  ),
273
273
  boxSizing: "border-box"
274
- }), en = ({
274
+ }), on = ({
275
275
  selectedColor: t,
276
276
  disabledColor: e,
277
277
  inOtherMonthColor: r,
@@ -305,12 +305,12 @@ const Ae = (t, e, r, n) => {
305
305
  clickableTextColor: "var(--swui-calendar-week-day-clickable-text-color)"
306
306
  },
307
307
  CalendarDay: {
308
- tdStyle: tn({
308
+ tdStyle: cn({
309
309
  selectedBackground: "var(--swui-calendar-wrapper-selected-background)",
310
310
  rangeBackground: "var(--swui-calendar-wrapper-range-background)",
311
311
  todayBackground: "var(--swui-calendar-wrapper-today-background)"
312
312
  }),
313
- textProps: en({
313
+ textProps: on({
314
314
  selectedColor: "var(--swui-calendar-text-selected-color)",
315
315
  disabledColor: "var(--swui-calendar-text-disabled-color)",
316
316
  inOtherMonthColor: "var(--swui-calendar-text-in-other-month-color)"
@@ -319,11 +319,11 @@ const Ae = (t, e, r, n) => {
319
319
  CalendarMonth: {
320
320
  headerTextColor: "var(--swui-calendar-week-day-text-color)"
321
321
  }
322
- }, Vs = {
322
+ }, si = {
323
323
  ...Mt,
324
324
  width: "37px",
325
325
  height: "37px"
326
- }, rn = ({
326
+ }, an = ({
327
327
  onClickWeekDay: t,
328
328
  day: e,
329
329
  theme: r
@@ -346,7 +346,7 @@ const Ae = (t, e, r, n) => {
346
346
  }
347
347
  );
348
348
  return t ? /* @__PURE__ */ o(
349
- Be,
349
+ je,
350
350
  {
351
351
  borderRadius: "var(--swui-calendar-day-border-radius)",
352
352
  onClick: (s) => t(e.dayOfWeek, s),
@@ -354,7 +354,7 @@ const Ae = (t, e, r, n) => {
354
354
  children: n
355
355
  }
356
356
  ) : n;
357
- }, Ge = function({
357
+ }, nr = function({
358
358
  day: e,
359
359
  week: r,
360
360
  month: n,
@@ -387,7 +387,7 @@ const Ae = (t, e, r, n) => {
387
387
  }
388
388
  )
389
389
  }
390
- ), m = ee.td({
390
+ ), m = re.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
- }), h = ee.div({
399
+ }), h = re.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
- }), f = ee.div({
410
+ }), f = re.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
- }), g = nn(d, s);
422
+ }), g = ln(d, s);
423
423
  return /* @__PURE__ */ o(
424
424
  m,
425
425
  {
426
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: [
427
+ children: /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(f, { children: e.month === n.monthInYear && /* @__PURE__ */ _(he, { children: [
428
428
  l && /* @__PURE__ */ o(
429
429
  l,
430
430
  {
@@ -440,13 +440,13 @@ const Ae = (t, e, r, n) => {
440
440
  ] }) }) })
441
441
  }
442
442
  );
443
- }, nn = (t, e) => !!ut(
443
+ }, ln = (t, e) => !!ut(
444
444
  e,
445
445
  t,
446
446
  ["disabled"],
447
447
  [!0],
448
448
  !1
449
- ), sn = ({
449
+ ), dn = ({
450
450
  onClickWeek: t,
451
451
  theme: e,
452
452
  week: r,
@@ -454,7 +454,7 @@ const Ae = (t, e, r, n) => {
454
454
  backgroundColor: s,
455
455
  prefix: i
456
456
  }) => {
457
- const c = /* @__PURE__ */ N(
457
+ const c = /* @__PURE__ */ _(
458
458
  B,
459
459
  {
460
460
  width: e.width,
@@ -463,7 +463,7 @@ const Ae = (t, e, r, n) => {
463
463
  alignItems: "center",
464
464
  children: [
465
465
  n && /* @__PURE__ */ o(B, { position: "absolute", children: n }),
466
- /* @__PURE__ */ o(B, { position: "absolute", children: /* @__PURE__ */ N(
466
+ /* @__PURE__ */ o(B, { position: "absolute", children: /* @__PURE__ */ _(
467
467
  yt,
468
468
  {
469
469
  color: t ? e.WeekNumber.clickableTextColor : e.WeekNumber.textColor,
@@ -482,7 +482,7 @@ const Ae = (t, e, r, n) => {
482
482
  background: s || e.WeekNumber.backgroundColor,
483
483
  position: "relative",
484
484
  children: t ? /* @__PURE__ */ o(
485
- Be,
485
+ je,
486
486
  {
487
487
  borderRadius: "var(--swui-calendar-day-border-radius)",
488
488
  onClick: (a) => t(r, a),
@@ -492,7 +492,7 @@ const Ae = (t, e, r, n) => {
492
492
  ) : c
493
493
  }
494
494
  );
495
- }, cn = (t, e, r) => e && ct(t, e) ? Y(t, e) : r && V(t, r) ? Y(t, r) : !0, on = function({
495
+ }, un = (t, e, r) => e && ct(t, e) ? Y(t, e) : r && V(t, r) ? Y(t, r) : !0, fn = function({
496
496
  dayComponent: e,
497
497
  minDate: r,
498
498
  maxDate: n,
@@ -501,14 +501,14 @@ const Ae = (t, e, r, n) => {
501
501
  ...c
502
502
  }) {
503
503
  const a = R(
504
- () => cn(i.date, r, n) ? s : ze(s, ["disabled"]),
504
+ () => un(i.date, r, n) ? s : rr(s, ["disabled"]),
505
505
  [i.date, s, n, r]
506
506
  );
507
507
  return /* @__PURE__ */ o(e, { day: i, ...c, dayState: a });
508
508
  };
509
- function an({
509
+ function hn({
510
510
  month: t,
511
- dayComponent: e = Ge,
511
+ dayComponent: e = nr,
512
512
  statePerWeek: r,
513
513
  userDataPerWeek: n,
514
514
  minDate: s,
@@ -525,8 +525,8 @@ function an({
525
525
  defaultHighlights: b,
526
526
  showWeekNumber: w
527
527
  }) {
528
- return /* @__PURE__ */ o(fe, { children: /* @__PURE__ */ N(B, { alignItems: "stretch", children: [
529
- /* @__PURE__ */ N(
528
+ return /* @__PURE__ */ o(he, { children: /* @__PURE__ */ _(B, { alignItems: "stretch", children: [
529
+ /* @__PURE__ */ _(
530
530
  H,
531
531
  {
532
532
  justifyContent: h ? "space-between" : "center",
@@ -537,9 +537,9 @@ function an({
537
537
  {
538
538
  onClick: () => d(t),
539
539
  label: t.name + " " + String(t.year),
540
- rightIcon: me
540
+ rightIcon: ge
541
541
  }
542
- ) : /* @__PURE__ */ N(yt, { whiteSpace: "nowrap", children: [
542
+ ) : /* @__PURE__ */ _(yt, { whiteSpace: "nowrap", children: [
543
543
  t.name,
544
544
  " ",
545
545
  t.year
@@ -548,11 +548,11 @@ function an({
548
548
  ]
549
549
  }
550
550
  ),
551
- /* @__PURE__ */ o("table", { children: /* @__PURE__ */ N("tbody", { children: [
552
- /* @__PURE__ */ N("tr", { children: [
551
+ /* @__PURE__ */ o("table", { children: /* @__PURE__ */ _("tbody", { children: [
552
+ /* @__PURE__ */ _("tr", { children: [
553
553
  w && /* @__PURE__ */ o("td", { children: /* @__PURE__ */ o(B, { width: f.width, height: f.height }) }),
554
554
  t.weeks[0].days.map((p) => /* @__PURE__ */ o("td", { children: m ? m(p.name, f, l) : /* @__PURE__ */ o(
555
- rn,
555
+ an,
556
556
  {
557
557
  day: p,
558
558
  onClickWeekDay: l,
@@ -560,9 +560,9 @@ function an({
560
560
  }
561
561
  ) }, p.name))
562
562
  ] }),
563
- t.weeks.map((p) => /* @__PURE__ */ N("tr", { children: [
563
+ t.weeks.map((p) => /* @__PURE__ */ _("tr", { children: [
564
564
  w && /* @__PURE__ */ o("td", { children: u ? u(p, f, a) : /* @__PURE__ */ o(
565
- sn,
565
+ dn,
566
566
  {
567
567
  week: p,
568
568
  onClickWeek: a,
@@ -570,7 +570,7 @@ function an({
570
570
  }
571
571
  ) }),
572
572
  p.days.map((D) => /* @__PURE__ */ o(
573
- on,
573
+ fn,
574
574
  {
575
575
  dayComponent: e,
576
576
  day: D,
@@ -591,9 +591,9 @@ function an({
591
591
  ] }) })
592
592
  ] }) });
593
593
  }
594
- function ln({
594
+ function mn({
595
595
  monthRows: t,
596
- dayComponent: e = Ge,
596
+ dayComponent: e = nr,
597
597
  userDataPerMonth: r,
598
598
  statePerMonth: n,
599
599
  minDate: s,
@@ -621,11 +621,11 @@ function ln({
621
621
  "div",
622
622
  {
623
623
  className: wt(
624
- _e.calendar,
625
- b && _e.weekNumberVisible
624
+ Oe.calendar,
625
+ b && Oe.weekNumberVisible
626
626
  ),
627
- children: t.map((M, k) => /* @__PURE__ */ o(or, { children: /* @__PURE__ */ o(H, { gap: 2, children: M.map((T) => /* @__PURE__ */ o(
628
- an,
627
+ children: t.map((M, k) => /* @__PURE__ */ o(Dr, { children: /* @__PURE__ */ o(H, { gap: 2, children: M.map((T) => /* @__PURE__ */ o(
628
+ hn,
629
629
  {
630
630
  month: T,
631
631
  dayComponent: e,
@@ -650,22 +650,22 @@ function ln({
650
650
  }
651
651
  );
652
652
  }
653
- function oe(t) {
654
- const e = dn(t.year, t.month, t.date), { year: r, month: n } = Qr(
653
+ function ae(t) {
654
+ const e = gn(t.year, t.month, t.date), { year: r, month: n } = en(
655
655
  e.year,
656
656
  e.month
657
- ), s = un(
657
+ ), s = pn(
658
658
  r,
659
659
  n,
660
- t.locale ?? De,
660
+ t.locale ?? Kt,
661
661
  t.numMonths,
662
662
  t.monthsPerRow
663
- ), i = jr(
663
+ ), i = Jr(
664
664
  t.highlightToday,
665
665
  t.statePerMonth
666
666
  );
667
667
  return /* @__PURE__ */ o(
668
- ln,
668
+ mn,
669
669
  {
670
670
  year: r,
671
671
  month: n,
@@ -675,7 +675,7 @@ function oe(t) {
675
675
  }
676
676
  );
677
677
  }
678
- const dn = (t, e, r) => {
678
+ const gn = (t, e, r) => {
679
679
  if (e && t)
680
680
  return {
681
681
  month: e,
@@ -691,59 +691,75 @@ const dn = (t, e, r) => {
691
691
  month: pt(n),
692
692
  year: Lt(n)
693
693
  };
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) => {
694
+ }, pn = (t, e, r, n, s) => n == null ? [[Xt(t, e, r)]] : s == null ? [$e(t, e, n, r)] : tr($e(t, e, n, r), s), sr = (t, e) => `${t.row}-${t.column}-${e}`, Dn = (t, e, r, n) => {
695
695
  let s = e;
696
696
  for (let i = 0; i < n; i++) {
697
- s = hn(s, t, n);
698
- const c = qe(s, r);
697
+ s = bn(s, t, n);
698
+ const c = sr(s, r);
699
699
  if (document.getElementById(c))
700
700
  return c;
701
701
  }
702
- }, hn = (t, e, r) => {
702
+ }, bn = (t, e, r) => {
703
703
  let n = t.row, s = t.column;
704
704
  return e === "ArrowLeft" ? s-- : e === "ArrowUp" ? n-- : e === "ArrowRight" ? s++ : e === "ArrowDown" && n++, s < 0 && (s = r - 1, n--), s > r - 1 && (s = 0, n++), {
705
705
  column: s,
706
706
  row: n
707
707
  };
708
708
  }, Tt = {
709
- "en-US": Ir,
710
- "en-GB": De,
711
- "en-IE": Er,
712
- "de-AT": xr,
713
- "de-DE": Re,
714
- "sv-SE": Ie,
715
- "da-DK": Ee,
716
- "nl-BE": Ar,
717
- "lv-LV": xe,
718
- fr: _r,
719
- de: Re,
720
- es: Nr,
721
- sv: Ie,
722
- pl: Lr,
723
- da: Ee,
724
- nl: vr,
725
- lv: xe,
726
- nb: Br
727
- }, Je = "en-GB", ti = "sv", Qe = (t, e, r) => {
709
+ en: Kt,
710
+ "en-US": Pr,
711
+ "en-GB": Kt,
712
+ "en-IE": Hr,
713
+ "de-AT": Wr,
714
+ "nl-BE": $r,
715
+ "nl-NL": Re,
716
+ "de-DE": Ie,
717
+ "nb-NO": Ee,
718
+ "sv-SE": xe,
719
+ "da-DK": Ae,
720
+ "lv-LV": Ne,
721
+ "lt-LT": _e,
722
+ "it-IT": Le,
723
+ "et-EE": ve,
724
+ "fi-FI": Be,
725
+ "cs-CZ": Ye,
726
+ "es-ES": Pe,
727
+ "fr-FR": He,
728
+ "pl-PL": We,
729
+ nl: Re,
730
+ de: Ie,
731
+ nb: Ee,
732
+ sv: xe,
733
+ da: Ae,
734
+ lv: Ne,
735
+ lt: _e,
736
+ it: Le,
737
+ et: ve,
738
+ fi: Be,
739
+ cs: Ye,
740
+ es: Pe,
741
+ fr: He,
742
+ pl: We
743
+ }, ir = "en-GB", ii = "sv", cr = (t, e, r) => {
728
744
  if (Tt[t])
729
745
  return t;
730
746
  if (e) {
731
- const n = mn(t);
747
+ const n = wn(t);
732
748
  if (n)
733
749
  return n;
734
750
  }
735
751
  return r;
736
- }, Rt = (t) => Tt[t], mn = (t) => {
752
+ }, Rt = (t) => Tt[t], wn = (t) => {
737
753
  const [e] = t.split("-"), r = Object.keys(Tt);
738
754
  for (const n of r)
739
755
  if (n.startsWith(e))
740
756
  return n;
741
- }, ei = () => Tt.sv, gn = (t) => {
757
+ }, ci = () => Tt.sv, yn = (t) => {
742
758
  const e = Object.keys(Tt);
743
759
  for (const r of e)
744
760
  if (Tt[r].code === t.code)
745
761
  return r;
746
- }, pn = ({
762
+ }, Mn = ({
747
763
  month: t,
748
764
  onClick: e,
749
765
  selected: r,
@@ -762,7 +778,7 @@ const dn = (t, e, r) => {
762
778
  ), u = R(
763
779
  () => vt(O(t, "MMMM", { locale: l })),
764
780
  [l, t]
765
- ), m = U(null), h = qe(c, i), f = r ? 0 : -1;
781
+ ), m = U(null), h = sr(c, i), f = r ? 0 : -1;
766
782
  rt(() => {
767
783
  var b;
768
784
  (b = m.current) == null || b.focus();
@@ -770,7 +786,7 @@ const dn = (t, e, r) => {
770
786
  const g = y(
771
787
  (b) => {
772
788
  var p;
773
- const w = fn(
789
+ const w = Dn(
774
790
  b.key,
775
791
  c,
776
792
  i,
@@ -804,7 +820,7 @@ const dn = (t, e, r) => {
804
820
  tabIndex: f
805
821
  }
806
822
  ) });
807
- }, Dn = (t, e, r) => {
823
+ }, kn = (t, e, r) => {
808
824
  let n = t.getFullYear(), s = 0, i = 0, c = t;
809
825
  const a = {
810
826
  yearOrder: [],
@@ -839,7 +855,7 @@ const dn = (t, e, r) => {
839
855
  onCancel: i,
840
856
  size: c = "medium"
841
857
  }) => {
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]);
858
+ const a = ye(), l = qt(), d = s > 0 ? s : 12, [u, m] = I(!1), h = kn(r, d, Tn(c)), f = R(() => Ht(r, d), [d, r]);
843
859
  rt(() => {
844
860
  m(!0);
845
861
  }, []);
@@ -849,14 +865,14 @@ const dn = (t, e, r) => {
849
865
  },
850
866
  [i]
851
867
  );
852
- return /* @__PURE__ */ o(Q, { gap: 1, maxWidth: bn(c), onKeyDown: g, children: h.yearOrder.map((b, w) => {
868
+ return /* @__PURE__ */ o(Z, { gap: 1, maxWidth: Sn(c), onKeyDown: g, children: h.yearOrder.map((b, w) => {
853
869
  const { rows: p } = h.years[b];
854
- return /* @__PURE__ */ N(we.Fragment, { children: [
870
+ return /* @__PURE__ */ _(we.Fragment, { children: [
855
871
  (w !== 0 || b !== l.getFullYear()) && /* @__PURE__ */ o(Yt, { variant: "h4", children: b }),
856
872
  /* @__PURE__ */ o("table", { style: { borderSpacing: "0 8px" }, children: /* @__PURE__ */ o("tbody", { children: p.map((D) => {
857
873
  const { columns: M } = h.rows[D];
858
874
  return /* @__PURE__ */ o("tr", { children: M.map(({ month: k, position: T }) => /* @__PURE__ */ o("td", { children: /* @__PURE__ */ o(
859
- pn,
875
+ Mn,
860
876
  {
861
877
  month: k,
862
878
  firstAvailableMonth: r,
@@ -873,7 +889,7 @@ const dn = (t, e, r) => {
873
889
  }) }) })
874
890
  ] }, b);
875
891
  }) });
876
- }, bn = (t) => {
892
+ }, Sn = (t) => {
877
893
  switch (t) {
878
894
  case "small":
879
895
  return "280px";
@@ -882,9 +898,9 @@ const dn = (t, e, r) => {
882
898
  case "large":
883
899
  return "448px";
884
900
  default:
885
- return he(t, "336px");
901
+ return me(t, "336px");
886
902
  }
887
- }, wn = (t) => {
903
+ }, Tn = (t) => {
888
904
  switch (t) {
889
905
  case "small":
890
906
  return 3;
@@ -893,9 +909,9 @@ const dn = (t, e, r) => {
893
909
  case "large":
894
910
  return 5;
895
911
  default:
896
- return he(t, 4);
912
+ return me(t, 4);
897
913
  }
898
- }, yn = (t) => [
914
+ }, Rn = (t) => [
899
915
  {
900
916
  label: "Past",
901
917
  presets: [
@@ -908,18 +924,18 @@ const dn = (t, e, r) => {
908
924
  {
909
925
  label: "Future",
910
926
  presets: [
911
- { label: "Next 3 days", startDate: t, endDate: Z(t, 2) },
912
- { label: "Next 7 days", startDate: t, endDate: Z(t, 6) },
913
- { label: "Next 30 days", startDate: t, endDate: Z(t, 29) },
914
- { label: "Next 45 days", startDate: t, endDate: Z(t, 44) }
927
+ { label: "Next 3 days", startDate: t, endDate: X(t, 2) },
928
+ { label: "Next 7 days", startDate: t, endDate: X(t, 6) },
929
+ { label: "Next 30 days", startDate: t, endDate: X(t, 29) },
930
+ { label: "Next 45 days", startDate: t, endDate: X(t, 44) }
915
931
  ]
916
932
  }
917
- ], Mn = ({
933
+ ], In = ({
918
934
  onClickPreset: t
919
935
  }) => {
920
- const [e, r] = I(0), n = R(() => yn(/* @__PURE__ */ new Date()), []), s = n[e] ?? n[0];
921
- return /* @__PURE__ */ N(Q, { children: [
922
- /* @__PURE__ */ N(
936
+ const [e, r] = I(0), n = R(() => Rn(/* @__PURE__ */ new Date()), []), s = n[e] ?? n[0];
937
+ return /* @__PURE__ */ _(Z, { children: [
938
+ /* @__PURE__ */ _(
923
939
  H,
924
940
  {
925
941
  justifyContent: "space-between",
@@ -930,7 +946,7 @@ const dn = (t, e, r) => {
930
946
  tt,
931
947
  {
932
948
  size: "small",
933
- leftIcon: lr,
949
+ leftIcon: wr,
934
950
  disabled: e === 0,
935
951
  onClick: () => r(e - 1)
936
952
  }
@@ -940,7 +956,7 @@ const dn = (t, e, r) => {
940
956
  tt,
941
957
  {
942
958
  size: "small",
943
- leftIcon: dr,
959
+ leftIcon: yr,
944
960
  disabled: e === n.length - 1,
945
961
  onClick: () => r(e + 1)
946
962
  }
@@ -949,7 +965,7 @@ const dn = (t, e, r) => {
949
965
  }
950
966
  ),
951
967
  /* @__PURE__ */ o(St, {}),
952
- /* @__PURE__ */ o(Q, { alignItems: "center", children: s.presets.map((i) => /* @__PURE__ */ N(we.Fragment, { children: [
968
+ /* @__PURE__ */ o(Z, { alignItems: "center", children: s.presets.map((i) => /* @__PURE__ */ _(we.Fragment, { children: [
953
969
  /* @__PURE__ */ o(
954
970
  It,
955
971
  {
@@ -960,7 +976,7 @@ const dn = (t, e, r) => {
960
976
  /* @__PURE__ */ o(St, {})
961
977
  ] }, i.label)) })
962
978
  ] });
963
- }, kn = function({
979
+ }, En = function({
964
980
  locale: e,
965
981
  dateInFocus: r,
966
982
  firstMonthInMonthPicker: n,
@@ -971,9 +987,9 @@ const dn = (t, e, r) => {
971
987
  ...l
972
988
  }) {
973
989
  const d = R(
974
- () => e == null ? "en-GB" : gn(e) ?? "en-GB",
990
+ () => e == null ? "en-GB" : yn(e) ?? "en-GB",
975
991
  [e]
976
- ), u = Gt(), m = y(
992
+ ), u = qt(), m = y(
977
993
  (f) => {
978
994
  s && s(f), c("calendar");
979
995
  },
@@ -984,7 +1000,7 @@ const dn = (t, e, r) => {
984
1000
  switch (i) {
985
1001
  case "calendar":
986
1002
  return /* @__PURE__ */ o(
987
- oe,
1003
+ ae,
988
1004
  {
989
1005
  ...l,
990
1006
  date: r,
@@ -1011,7 +1027,7 @@ const dn = (t, e, r) => {
1011
1027
  }
1012
1028
  );
1013
1029
  case "presets":
1014
- return /* @__PURE__ */ o(Mn, { onClickPreset: () => {
1030
+ return /* @__PURE__ */ o(In, { onClickPreset: () => {
1015
1031
  } });
1016
1032
  default:
1017
1033
  return /* @__PURE__ */ o(B, { children: /* @__PURE__ */ o(
@@ -1022,18 +1038,18 @@ const dn = (t, e, r) => {
1022
1038
  }
1023
1039
  ) });
1024
1040
  }
1025
- }, Sn = (t, e, r, n) => {
1041
+ }, xn = (t, e, r, n) => {
1026
1042
  const s = y(() => {
1027
1043
  const l = Ht(t, r ?? n ?? 1);
1028
1044
  e == null || e(l);
1029
1045
  }, [e, t, r, n]), i = y(() => {
1030
- const l = Mr(t, 1);
1046
+ const l = _r(t, 1);
1031
1047
  e == null || e(l);
1032
1048
  }, [e, t]), c = y(() => {
1033
- const l = pe(t, r ?? n ?? 1);
1049
+ const l = De(t, r ?? n ?? 1);
1034
1050
  e == null || e(l);
1035
1051
  }, [e, t, r, n]), a = y(() => {
1036
- const l = kr(t, 1);
1052
+ const l = Lr(t, 1);
1037
1053
  e == null || e(l);
1038
1054
  }, [e, t]);
1039
1055
  return {
@@ -1042,23 +1058,23 @@ const dn = (t, e, r) => {
1042
1058
  nextYear: i,
1043
1059
  prevYear: a
1044
1060
  };
1045
- }, Tn = ({
1061
+ }, An = ({
1046
1062
  children: t,
1047
1063
  prevMonth: e,
1048
1064
  nextMonth: r,
1049
1065
  prevYear: n,
1050
1066
  nextYear: s
1051
- }) => /* @__PURE__ */ N("div", { children: [
1067
+ }) => /* @__PURE__ */ _("div", { children: [
1052
1068
  t,
1053
- /* @__PURE__ */ o(_t, { children: /* @__PURE__ */ N(H, { gap: 1, children: [
1054
- /* @__PURE__ */ o(ft, { onClick: n, leftIcon: ur }),
1055
- /* @__PURE__ */ o(ft, { onClick: e, leftIcon: qt }),
1056
- /* @__PURE__ */ o(_t, { num: 2 }),
1069
+ /* @__PURE__ */ o(Nt, { children: /* @__PURE__ */ _(H, { gap: 1, children: [
1070
+ /* @__PURE__ */ o(ft, { onClick: n, leftIcon: Mr }),
1071
+ /* @__PURE__ */ o(ft, { onClick: e, leftIcon: Jt }),
1072
+ /* @__PURE__ */ o(Nt, { num: 2 }),
1057
1073
  /* @__PURE__ */ o(ft, { onClick: r, leftIcon: Pt }),
1058
- /* @__PURE__ */ o(ft, { onClick: s, leftIcon: fr })
1074
+ /* @__PURE__ */ o(ft, { onClick: s, leftIcon: kr })
1059
1075
  ] }) }),
1060
1076
  /* @__PURE__ */ o(St, {})
1061
- ] }), Rn = () => {
1077
+ ] }), Nn = () => {
1062
1078
  };
1063
1079
  function kt({
1064
1080
  monthSwitcherPlacement: t,
@@ -1068,35 +1084,35 @@ function kt({
1068
1084
  currentPanel: s,
1069
1085
  firstMonthInMonthPicker: i,
1070
1086
  setCurrentPanel: c,
1071
- onSelectPreset: a = Rn,
1087
+ onSelectPreset: a = Nn,
1072
1088
  renderMonthPicker: l,
1073
1089
  ...d
1074
1090
  }) {
1075
- const { nextMonth: u, prevMonth: m, nextYear: h, prevYear: f } = Sn(
1091
+ const { nextMonth: u, prevMonth: m, nextYear: h, prevYear: f } = xn(
1076
1092
  r,
1077
1093
  n,
1078
1094
  d.monthsPerRow,
1079
1095
  d.numMonths
1080
1096
  );
1081
- switch (In(
1097
+ switch (_n(
1082
1098
  t,
1083
1099
  d.numMonths
1084
1100
  )) {
1085
1101
  case "below":
1086
1102
  return /* @__PURE__ */ o(
1087
- Tn,
1103
+ An,
1088
1104
  {
1089
1105
  theme: e,
1090
1106
  nextMonth: u,
1091
1107
  prevMonth: m,
1092
1108
  nextYear: h,
1093
1109
  prevYear: f,
1094
- children: /* @__PURE__ */ o(oe, { ...d, theme: e, date: r })
1110
+ children: /* @__PURE__ */ o(ae, { ...d, theme: e, date: r })
1095
1111
  }
1096
1112
  );
1097
1113
  case "header":
1098
- return /* @__PURE__ */ o(Q, { children: /* @__PURE__ */ o(
1099
- kn,
1114
+ return /* @__PURE__ */ o(Z, { children: /* @__PURE__ */ o(
1115
+ En,
1100
1116
  {
1101
1117
  ...d,
1102
1118
  theme: e,
@@ -1107,12 +1123,12 @@ function kt({
1107
1123
  currentPanel: s,
1108
1124
  setCurrentPanel: c,
1109
1125
  onSelectPreset: a,
1110
- headerRightContent: /* @__PURE__ */ N(H, { alignItems: "center", gap: 1, children: [
1126
+ headerRightContent: /* @__PURE__ */ _(H, { alignItems: "center", gap: 1, children: [
1111
1127
  /* @__PURE__ */ o(
1112
1128
  ft,
1113
1129
  {
1114
1130
  onClick: m,
1115
- leftIcon: qt
1131
+ leftIcon: Jt
1116
1132
  }
1117
1133
  ),
1118
1134
  /* @__PURE__ */ o(
@@ -1126,13 +1142,13 @@ function kt({
1126
1142
  }
1127
1143
  ) });
1128
1144
  default:
1129
- return /* @__PURE__ */ o(oe, { ...d, theme: e, date: r });
1145
+ return /* @__PURE__ */ o(ae, { ...d, theme: e, date: r });
1130
1146
  }
1131
1147
  }
1132
- const In = (t, e) => t || (e || 1) > 1 ? "below" : "header", En = (t) => ({
1148
+ const _n = (t, e) => t || (e || 1) > 1 ? "below" : "header", Ln = (t) => ({
1133
1149
  startDate: t.startDate ? O(t.startDate, "yyyy-MM-dd") : void 0,
1134
1150
  endDate: t.endDate ? O(t.endDate, "yyyy-MM-dd") : void 0
1135
- }), xn = ({
1151
+ }), vn = ({
1136
1152
  startDate: t,
1137
1153
  endDate: e
1138
1154
  }) => {
@@ -1141,21 +1157,21 @@ const In = (t, e) => t || (e || 1) > 1 ? "below" : "header", En = (t) => ({
1141
1157
  startDate: t ? bt(t, "yyyy-MM-dd", r) : void 0,
1142
1158
  endDate: e ? bt(e, "yyyy-MM-dd", r) : void 0
1143
1159
  };
1144
- }, Xe = ({
1160
+ }, or = ({
1145
1161
  startDate: t,
1146
1162
  endDate: e
1147
- }) => !!(t && e && !Y(t, e) && V(t, e)), Ze = (t) => Xe(t) ? {
1163
+ }) => !!(t && e && !Y(t, e) && V(t, e)), ar = (t) => or(t) ? {
1148
1164
  startDate: t.endDate,
1149
1165
  endDate: t.startDate
1150
- } : t, ri = (t) => t.startDate && t.endDate ? En(
1151
- Ze(xn(t))
1152
- ) : t, An = (t, e, r, n) => y(
1166
+ } : t, oi = (t) => t.startDate && t.endDate ? Ln(
1167
+ ar(vn(t))
1168
+ ) : t, Bn = (t, e, r, n) => y(
1153
1169
  (s) => {
1154
1170
  const i = {
1155
1171
  startDate: r === "startDate" ? s.date : t == null ? void 0 : t.startDate,
1156
1172
  endDate: r === "endDate" ? s.date : t == null ? void 0 : t.endDate
1157
1173
  };
1158
- Xe(i) || n(r === "startDate" ? "endDate" : "startDate"), e == null || e(Ze(i));
1174
+ or(i) || n(r === "startDate" ? "endDate" : "startDate"), e == null || e(ar(i));
1159
1175
  },
1160
1176
  [
1161
1177
  r,
@@ -1164,7 +1180,7 @@ const In = (t, e) => t || (e || 1) > 1 ? "below" : "header", En = (t) => ({
1164
1180
  t == null ? void 0 : t.endDate,
1165
1181
  t == null ? void 0 : t.startDate
1166
1182
  ]
1167
- ), Zt = (t) => {
1183
+ ), Vt = (t) => {
1168
1184
  const [e, r] = I("calendar"), n = y(
1169
1185
  (s) => {
1170
1186
  r(s), t == null || t(s);
@@ -1175,7 +1191,7 @@ const In = (t, e) => t || (e || 1) > 1 ? "below" : "header", En = (t) => ({
1175
1191
  currentPanel: e,
1176
1192
  setCurrentPanel: n
1177
1193
  };
1178
- }, _n = ({
1194
+ }, Yn = ({
1179
1195
  focusedInput: t,
1180
1196
  value: e,
1181
1197
  onValueChange: r,
@@ -1184,9 +1200,9 @@ const In = (t, e) => t || (e || 1) > 1 ? "below" : "header", En = (t) => ({
1184
1200
  onChangePanel: i,
1185
1201
  initialDateInFocus: c
1186
1202
  }) => {
1187
- const { currentPanel: a, setCurrentPanel: l } = Zt(i), [d, u] = I(
1203
+ const { currentPanel: a, setCurrentPanel: l } = Vt(i), [d, u] = I(
1188
1204
  () => c ?? /* @__PURE__ */ new Date()
1189
- ), m = An(
1205
+ ), m = Bn(
1190
1206
  e,
1191
1207
  r,
1192
1208
  t,
@@ -1208,11 +1224,11 @@ const In = (t, e) => t || (e || 1) > 1 ? "below" : "header", En = (t) => ({
1208
1224
  dateInFocus: d
1209
1225
  };
1210
1226
  };
1211
- function ni(t) {
1212
- const e = _n(t);
1227
+ function ai(t) {
1228
+ const e = Yn(t);
1213
1229
  return /* @__PURE__ */ o(kt, { ...t, ...e });
1214
1230
  }
1215
- const si = () => {
1231
+ const li = () => {
1216
1232
  const [t, e] = I(), [r, n] = I(), [s, i] = I("startDate");
1217
1233
  return {
1218
1234
  startDate: t,
@@ -1222,13 +1238,13 @@ const si = () => {
1222
1238
  focusedInput: s,
1223
1239
  setFocusedInput: i
1224
1240
  };
1225
- }, Nn = ({
1241
+ }, Pn = ({
1226
1242
  onChange: t,
1227
1243
  value: e,
1228
1244
  statePerMonth: r,
1229
1245
  onChangePanel: n
1230
1246
  }) => {
1231
- const { currentPanel: s, setCurrentPanel: i } = Zt(n), [c, a] = I(() => e ?? /* @__PURE__ */ new Date()), l = y(
1247
+ const { currentPanel: s, setCurrentPanel: i } = Vt(n), [c, a] = I(() => e ?? /* @__PURE__ */ new Date()), l = y(
1232
1248
  (u) => {
1233
1249
  t && t(u.date);
1234
1250
  },
@@ -1250,17 +1266,17 @@ const si = () => {
1250
1266
  setDateInFocus: a
1251
1267
  };
1252
1268
  };
1253
- function Ve(t) {
1254
- const e = Nn(t);
1269
+ function lr(t) {
1270
+ const e = Pn(t);
1255
1271
  return /* @__PURE__ */ o(kt, { ...t, ...e });
1256
1272
  }
1257
- const Ln = ({
1273
+ const Hn = ({
1258
1274
  onChange: t,
1259
1275
  value: e,
1260
1276
  statePerMonth: r,
1261
1277
  onChangePanel: n
1262
1278
  }) => {
1263
- const { currentPanel: s, setCurrentPanel: i } = Zt(n), [c, a] = I(() => /* @__PURE__ */ new Date()), l = y(
1279
+ const { currentPanel: s, setCurrentPanel: i } = Vt(n), [c, a] = I(() => /* @__PURE__ */ new Date()), l = y(
1264
1280
  (u) => {
1265
1281
  if (!t)
1266
1282
  return;
@@ -1281,35 +1297,35 @@ const Ln = ({
1281
1297
  setDateInFocus: a
1282
1298
  };
1283
1299
  };
1284
- function ii(t) {
1285
- const e = Ln(t);
1300
+ function di(t) {
1301
+ const e = Hn(t);
1286
1302
  return /* @__PURE__ */ o(kt, { ...t, ...e });
1287
1303
  }
1288
- const vn = ({
1304
+ const Wn = ({
1289
1305
  onChange: t,
1290
1306
  value: e,
1291
1307
  statePerMonth: r,
1292
1308
  onChangePanel: n,
1293
- locale: s = De
1309
+ locale: s = Kt
1294
1310
  }) => {
1295
1311
  const [i, c] = I(() => {
1296
- const f = re(e, s);
1312
+ const f = ne(e, s);
1297
1313
  return f ? f.days[0].date : /* @__PURE__ */ new Date();
1298
- }), { currentPanel: a, setCurrentPanel: l } = Zt(n), d = y(
1314
+ }), { currentPanel: a, setCurrentPanel: l } = Vt(n), d = y(
1299
1315
  (f) => {
1300
- t && t(Ne(Me(f.date, s)));
1316
+ t && t(Ue(Me(f.date, s)));
1301
1317
  },
1302
1318
  [s, t]
1303
1319
  ), u = y(
1304
1320
  (f) => {
1305
- t && t(Ne(f));
1321
+ t && t(Ue(f));
1306
1322
  },
1307
1323
  [t]
1308
1324
  ), m = R(() => {
1309
- const f = re(e, s);
1310
- return f ? Cr(r, f) : r;
1325
+ const f = ne(e, s);
1326
+ return f ? qr(r, f) : r;
1311
1327
  }, [e, s, r]), h = R(() => {
1312
- const f = re(e, s);
1328
+ const f = ne(e, s);
1313
1329
  return f ? f.days[0].date : /* @__PURE__ */ new Date();
1314
1330
  }, [s, e]);
1315
1331
  return {
@@ -1322,22 +1338,22 @@ const vn = ({
1322
1338
  currentPanel: a,
1323
1339
  setCurrentPanel: l
1324
1340
  };
1325
- }, Ne = (t) => {
1341
+ }, Ue = (t) => {
1326
1342
  if (t)
1327
1343
  return `${t.endYear}-${t.weekNumber}`;
1328
- }, re = (t, e) => {
1344
+ }, ne = (t, e) => {
1329
1345
  if (!t)
1330
1346
  return;
1331
1347
  const r = t.split("-"), n = parseInt(r[1], 10), s = parseInt(r[0], 10), i = /* @__PURE__ */ new Date();
1332
1348
  i.setFullYear(s);
1333
- const c = jt(Sr(i, n), { locale: e });
1349
+ const c = jt(vr(i, n), { locale: e });
1334
1350
  return Me(c, e);
1335
1351
  };
1336
- function ci(t) {
1337
- const e = vn(t);
1352
+ function ui(t) {
1353
+ const e = Wn(t);
1338
1354
  return /* @__PURE__ */ o(kt, { ...t, ...e });
1339
1355
  }
1340
- const Ot = "bottom", Bn = (t, e, r) => {
1356
+ const Ot = "bottom", $n = (t, e, r) => {
1341
1357
  const [n, s] = I(r || !1), i = y(() => (s(!0), !0), [s]), c = y(() => {
1342
1358
  s(!1), e && e();
1343
1359
  }, [s, e]), a = y(
@@ -1352,7 +1368,7 @@ const Ot = "bottom", Bn = (t, e, r) => {
1352
1368
  showingCalendar: n,
1353
1369
  onSelectDate: a
1354
1370
  };
1355
- }, Ut = "2999-12-31", oi = ({
1371
+ }, Ut = "2999-12-31", fi = ({
1356
1372
  displayFormat: t = at.fullDate,
1357
1373
  placeholder: e = "Enter date",
1358
1374
  value: r,
@@ -1369,7 +1385,7 @@ const Ot = "bottom", Bn = (t, e, r) => {
1369
1385
  portalTarget: f,
1370
1386
  zIndex: g
1371
1387
  }) => {
1372
- const { hideCalendar: b, showingCalendar: w, onSelectDate: p, showCalendar: D } = Bn(a, c, i);
1388
+ const { hideCalendar: b, showingCalendar: w, onSelectDate: p, showCalendar: D } = $n(a, c, i);
1373
1389
  return /* @__PURE__ */ o(B, { width: d, children: /* @__PURE__ */ o(
1374
1390
  Wt,
1375
1391
  {
@@ -1383,7 +1399,7 @@ const Ot = "bottom", Bn = (t, e, r) => {
1383
1399
  {
1384
1400
  type: "date",
1385
1401
  onFocus: D,
1386
- buttonRight: /* @__PURE__ */ o(hr, { onClick: D, icon: Nt }),
1402
+ buttonRight: /* @__PURE__ */ o(Sr, { onClick: D, icon: _t }),
1387
1403
  value: r ? O(r, t) : "",
1388
1404
  placeholder: e,
1389
1405
  size: 9,
@@ -1396,7 +1412,7 @@ const Ot = "bottom", Bn = (t, e, r) => {
1396
1412
  ) }),
1397
1413
  placement: Ot,
1398
1414
  children: /* @__PURE__ */ o(
1399
- Ve,
1415
+ lr,
1400
1416
  {
1401
1417
  ...s,
1402
1418
  onChange: p,
@@ -1408,7 +1424,7 @@ const Ot = "bottom", Bn = (t, e, r) => {
1408
1424
  )
1409
1425
  }
1410
1426
  ) });
1411
- }, Yn = (t, e) => {
1427
+ }, On = (t, e) => {
1412
1428
  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(() => {
1413
1429
  i(!1);
1414
1430
  }, [i]), m = y(
@@ -1440,7 +1456,7 @@ const Ot = "bottom", Bn = (t, e, r) => {
1440
1456
  startDateIsAfterEnd: h
1441
1457
  };
1442
1458
  };
1443
- function ai({
1459
+ function hi({
1444
1460
  displayFormat: t = at.fullDate,
1445
1461
  placeholderStartDate: e = "Start date",
1446
1462
  placeholderEndDate: r = "End date",
@@ -1465,9 +1481,9 @@ function ai({
1465
1481
  endDateInputRef: T,
1466
1482
  onClickDay: L,
1467
1483
  startDateIsAfterEnd: A
1468
- } = Yn(n, s), [E, S] = I(
1484
+ } = On(n, s), [E, S] = I(
1469
1485
  () => (M && (n == null ? void 0 : n[M])) ?? /* @__PURE__ */ new Date()
1470
- ), _ = R(
1486
+ ), N = R(
1471
1487
  () => Bt(void 0, n == null ? void 0 : n.startDate, n == null ? void 0 : n.endDate),
1472
1488
  [n]
1473
1489
  );
@@ -1477,11 +1493,11 @@ function ai({
1477
1493
  hideArrow: !0,
1478
1494
  appendTo: m,
1479
1495
  zIndex: h,
1480
- renderTrigger: (P) => /* @__PURE__ */ N(H, { alignItems: "center", ...P, children: [
1496
+ renderTrigger: (P) => /* @__PURE__ */ _(H, { alignItems: "center", ...P, children: [
1481
1497
  /* @__PURE__ */ o(
1482
1498
  mt,
1483
1499
  {
1484
- iconLeft: Nt,
1500
+ iconLeft: _t,
1485
1501
  onFocus: p,
1486
1502
  value: n != null && n.startDate ? O(n.startDate, t) : "",
1487
1503
  placeholder: e,
@@ -1494,9 +1510,9 @@ function ai({
1494
1510
  ),
1495
1511
  /* @__PURE__ */ o(St, {}),
1496
1512
  /* @__PURE__ */ o(
1497
- Pe,
1513
+ ze,
1498
1514
  {
1499
- icon: mr,
1515
+ icon: Tr,
1500
1516
  color: Qt("--lhds-color-ui-500"),
1501
1517
  size: 14
1502
1518
  }
@@ -1505,7 +1521,7 @@ function ai({
1505
1521
  /* @__PURE__ */ o(
1506
1522
  mt,
1507
1523
  {
1508
- iconLeft: Nt,
1524
+ iconLeft: _t,
1509
1525
  onFocus: w,
1510
1526
  value: n != null && n.endDate ? O(n.endDate, t) : "",
1511
1527
  placeholder: r,
@@ -1526,7 +1542,7 @@ function ai({
1526
1542
  ...a,
1527
1543
  dateInFocus: E,
1528
1544
  setDateInFocus: S,
1529
- statePerMonth: _,
1545
+ statePerMonth: N,
1530
1546
  theme: c,
1531
1547
  onClickDay: L,
1532
1548
  currentPanel: f,
@@ -1538,7 +1554,7 @@ function ai({
1538
1554
  }
1539
1555
  );
1540
1556
  }
1541
- const li = ({
1557
+ const mi = ({
1542
1558
  calendarProps: t,
1543
1559
  closeOnCalendarSelectDate: e = !0,
1544
1560
  dateFormat: r = at.fullDate,
@@ -1561,13 +1577,13 @@ const li = ({
1561
1577
  }, [p, w]), M = y(() => {
1562
1578
  p(!1);
1563
1579
  }, [p]), k = y(
1564
- (_) => {
1565
- s && s(_);
1580
+ (N) => {
1581
+ s && s(N);
1566
1582
  },
1567
1583
  [s]
1568
1584
  ), T = y(
1569
- (_) => {
1570
- _ && (k(O(_, r)), e && setTimeout(() => p(!w), 200));
1585
+ (N) => {
1586
+ N && (k(O(N, r)), e && setTimeout(() => p(!w), 200));
1571
1587
  },
1572
1588
  [
1573
1589
  k,
@@ -1576,13 +1592,13 @@ const li = ({
1576
1592
  p,
1577
1593
  w
1578
1594
  ]
1579
- ), L = !!c && !/^[-/\\.0-9]+$/.test(c), A = !!c && Tr(bt(c, r, /* @__PURE__ */ new Date())), S = !!c && c.length >= r.length && !A || L;
1595
+ ), L = !!c && !/^[-/\\.0-9]+$/.test(c), A = !!c && Br(bt(c, r, /* @__PURE__ */ new Date())), S = !!c && c.length >= r.length && !A || L;
1580
1596
  return /* @__PURE__ */ o(B, { width: a, children: /* @__PURE__ */ o(
1581
1597
  Wt,
1582
1598
  {
1583
1599
  appendTo: f,
1584
1600
  zIndex: g,
1585
- renderTrigger: (_) => /* @__PURE__ */ o(
1601
+ renderTrigger: (N) => /* @__PURE__ */ o(
1586
1602
  mt,
1587
1603
  {
1588
1604
  ...b,
@@ -1593,7 +1609,7 @@ const li = ({
1593
1609
  {
1594
1610
  size: "small",
1595
1611
  disabled: b.disabled || n,
1596
- leftIcon: Nt,
1612
+ leftIcon: _t,
1597
1613
  onClick: D
1598
1614
  }
1599
1615
  ) }),
@@ -1603,7 +1619,7 @@ const li = ({
1603
1619
  min: u,
1604
1620
  max: m,
1605
1621
  size: 10,
1606
- ..._
1622
+ ...N
1607
1623
  }
1608
1624
  ),
1609
1625
  hideArrow: !0,
@@ -1611,7 +1627,7 @@ const li = ({
1611
1627
  placement: Ot,
1612
1628
  onRequestClose: M,
1613
1629
  children: /* @__PURE__ */ o(
1614
- Ve,
1630
+ lr,
1615
1631
  {
1616
1632
  ...t,
1617
1633
  onChange: T,
@@ -1623,7 +1639,7 @@ const li = ({
1623
1639
  )
1624
1640
  }
1625
1641
  ) });
1626
- }, Kt = (t) => {
1642
+ }, zt = (t) => {
1627
1643
  if (t === "")
1628
1644
  return "00";
1629
1645
  const e = parseInt(t, 10);
@@ -1639,7 +1655,7 @@ const li = ({
1639
1655
  default:
1640
1656
  throw new Error("Invalid hour string");
1641
1657
  }
1642
- }, zt = (t) => {
1658
+ }, Gt = (t) => {
1643
1659
  if (t === "")
1644
1660
  return "00";
1645
1661
  const e = parseInt(t, 10);
@@ -1655,13 +1671,13 @@ const li = ({
1655
1671
  default:
1656
1672
  throw new Error("Invalid minute string");
1657
1673
  }
1658
- }, Pn = (t) => {
1659
- if (!ae(t))
1674
+ }, Un = (t) => {
1675
+ if (!le(t))
1660
1676
  return { time: t, success: !1 };
1661
1677
  const e = t && t.split(/-|:|,|;|[/]|[.]| /);
1662
1678
  if (e && e.length === 2)
1663
1679
  try {
1664
- const r = Kt(e[0]), n = zt(e[1]);
1680
+ const r = zt(e[0]), n = Gt(e[1]);
1665
1681
  return { time: `${r}:${n}`, success: !0 };
1666
1682
  } catch {
1667
1683
  return { time: t, success: !1 };
@@ -1690,7 +1706,7 @@ const li = ({
1690
1706
  }
1691
1707
  }
1692
1708
  return { time: t, success: !1 };
1693
- }, ae = (t) => t ? /^[-:.,/; 0-9]+$/.test(t) : !0, di = ({
1709
+ }, le = (t) => t ? /^[-:.,/; 0-9]+$/.test(t) : !0, gi = ({
1694
1710
  onValueChange: t,
1695
1711
  showPlaceholder: e = !0,
1696
1712
  useIcon: r = !0,
@@ -1699,14 +1715,14 @@ const li = ({
1699
1715
  variant: i,
1700
1716
  ...c
1701
1717
  }) => {
1702
- const [a, l] = I(() => ae(n)), d = "hh:mm", u = y(() => {
1718
+ const [a, l] = I(() => le(n)), d = "hh:mm", u = y(() => {
1703
1719
  if (n) {
1704
- const h = Pn(n);
1720
+ const h = Un(n);
1705
1721
  l(h.success), h.success && t && t(h.time);
1706
1722
  }
1707
1723
  }, [n, t, l]), m = y(
1708
1724
  (h) => {
1709
- const f = h.target.value, g = ae(f);
1725
+ const f = h.target.value, g = le(f);
1710
1726
  l(g && f.length <= d.length), t && t(f);
1711
1727
  },
1712
1728
  [t, l]
@@ -1717,7 +1733,7 @@ const li = ({
1717
1733
  ...c,
1718
1734
  type: "time",
1719
1735
  variant: a ? i : "error",
1720
- iconLeft: r ? He : void 0,
1736
+ iconLeft: r ? Ge : void 0,
1721
1737
  value: n,
1722
1738
  placeholder: e ? d : void 0,
1723
1739
  onChange: m,
@@ -1725,7 +1741,7 @@ const li = ({
1725
1741
  width: s
1726
1742
  }
1727
1743
  );
1728
- }, tr = ({
1744
+ }, dr = ({
1729
1745
  autoFocusLeft: t,
1730
1746
  autoFocusRight: e,
1731
1747
  onEsc: r,
@@ -1752,7 +1768,7 @@ const li = ({
1752
1768
  onBlurLeft: A,
1753
1769
  onBlurRight: E,
1754
1770
  onFocusLeft: S,
1755
- onFocusRight: _,
1771
+ onFocusRight: N,
1756
1772
  inputRefLeft: P,
1757
1773
  inputRefRight: x,
1758
1774
  variant: q,
@@ -1761,11 +1777,11 @@ const li = ({
1761
1777
  onBlur: $,
1762
1778
  showPresets: z,
1763
1779
  widthLeft: J,
1764
- widthRight: X,
1780
+ widthRight: Q,
1765
1781
  disabled: G
1766
1782
  }) => {
1767
1783
  const W = U(0), j = R(
1768
- () => Pr((v) => {
1784
+ () => Ur((v) => {
1769
1785
  v === 0 && ($ == null || $());
1770
1786
  }, 10),
1771
1787
  [$]
@@ -1776,9 +1792,9 @@ const li = ({
1776
1792
  [S, W, j]
1777
1793
  ), nt = y(
1778
1794
  (v) => {
1779
- W.current++, j(W.current), _ && _(v);
1795
+ W.current++, j(W.current), N && N(v);
1780
1796
  },
1781
- [_, W, j]
1797
+ [N, W, j]
1782
1798
  ), st = y(
1783
1799
  (v) => {
1784
1800
  W.current--, j(W.current), A && A(v);
@@ -1790,28 +1806,28 @@ const li = ({
1790
1806
  },
1791
1807
  [E, W, j]
1792
1808
  );
1793
- return /* @__PURE__ */ o(B, { children: /* @__PURE__ */ N(
1794
- Wr,
1809
+ return /* @__PURE__ */ o(B, { children: /* @__PURE__ */ _(
1810
+ Cr,
1795
1811
  {
1796
1812
  disableContentPaddingRight: !0,
1797
1813
  disabled: G,
1798
1814
  variant: q,
1799
- contentRight: /* @__PURE__ */ N(H, { alignItems: "center", children: [
1800
- /* @__PURE__ */ o(_t, { num: 0.5, children: /* @__PURE__ */ o(
1815
+ contentRight: /* @__PURE__ */ _(H, { alignItems: "center", children: [
1816
+ /* @__PURE__ */ o(Nt, { num: 0.5, children: /* @__PURE__ */ o(
1801
1817
  tt,
1802
1818
  {
1803
- leftIcon: Nt,
1819
+ leftIcon: _t,
1804
1820
  onClick: T,
1805
1821
  disabled: G,
1806
1822
  size: "small"
1807
1823
  }
1808
1824
  ) }),
1809
- z ? /* @__PURE__ */ N(fe, { children: [
1810
- /* @__PURE__ */ o(H, { height: "22px", children: /* @__PURE__ */ o(ar, { vertical: !0 }) }),
1811
- /* @__PURE__ */ o(_t, { num: 0.5, children: /* @__PURE__ */ o(
1825
+ z ? /* @__PURE__ */ _(he, { children: [
1826
+ /* @__PURE__ */ o(H, { height: "22px", children: /* @__PURE__ */ o(br, { vertical: !0 }) }),
1827
+ /* @__PURE__ */ o(Nt, { num: 0.5, children: /* @__PURE__ */ o(
1812
1828
  tt,
1813
1829
  {
1814
- leftIcon: me,
1830
+ leftIcon: ge,
1815
1831
  onClick: L,
1816
1832
  disabled: G,
1817
1833
  size: "small"
@@ -1843,14 +1859,14 @@ const li = ({
1843
1859
  }
1844
1860
  ) }),
1845
1861
  /* @__PURE__ */ o(H, { indent: 0.5, alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ o(
1846
- Pe,
1862
+ ze,
1847
1863
  {
1848
1864
  icon: c,
1849
1865
  size: 12,
1850
1866
  color: Qt("--lhds-color-ui-500")
1851
1867
  }
1852
1868
  ) }),
1853
- /* @__PURE__ */ o(B, { width: X, children: /* @__PURE__ */ o(
1869
+ /* @__PURE__ */ o(B, { width: Q, children: /* @__PURE__ */ o(
1854
1870
  mt,
1855
1871
  {
1856
1872
  onEsc: r,
@@ -1875,7 +1891,7 @@ const li = ({
1875
1891
  ]
1876
1892
  }
1877
1893
  ) });
1878
- }, Hn = (t) => {
1894
+ }, Fn = (t) => {
1879
1895
  if (t == null)
1880
1896
  throw new Error("Time is not set.");
1881
1897
  if (t === "")
@@ -1897,14 +1913,14 @@ const li = ({
1897
1913
  if (n < 0 || n > 59)
1898
1914
  throw new Error("Invalid time.");
1899
1915
  return r * 100 + n;
1900
- }, Wn = (t) => {
1916
+ }, Cn = (t) => {
1901
1917
  try {
1902
- return Hn(t), !0;
1918
+ return Fn(t), !0;
1903
1919
  } catch {
1904
1920
  return !1;
1905
1921
  }
1906
1922
  }, Ct = (t) => {
1907
- if (t && Wn(t)) {
1923
+ if (t && Cn(t)) {
1908
1924
  const e = t.split(":");
1909
1925
  return {
1910
1926
  hour: Se(e[0]),
@@ -1915,12 +1931,12 @@ const li = ({
1915
1931
  hour: void 0,
1916
1932
  minute: void 0
1917
1933
  };
1918
- }, $n = (t) => `${Kt(String(t.getHours()))}:${zt(
1934
+ }, jn = (t) => `${zt(String(t.getHours()))}:${Gt(
1919
1935
  String(t.getMinutes())
1920
- )}`, On = "_timePicker_1w05d_1", Un = "_timePickerColumn_1w05d_6", er = {
1921
- timePicker: On,
1922
- timePickerColumn: Un
1923
- }, Fn = ({
1936
+ )}`, Kn = "_timePicker_1w05d_1", zn = "_timePickerColumn_1w05d_6", ur = {
1937
+ timePicker: Kn,
1938
+ timePickerColumn: zn
1939
+ }, Gn = ({
1924
1940
  onClick: t,
1925
1941
  item: e,
1926
1942
  selected: r,
@@ -1947,7 +1963,7 @@ const li = ({
1947
1963
  children: r ? /* @__PURE__ */ o(
1948
1964
  It,
1949
1965
  {
1950
- label: Hr(String(e), 2, "0"),
1966
+ label: Fr(String(e), 2, "0"),
1951
1967
  onClick: () => t && t(e)
1952
1968
  }
1953
1969
  ) : /* @__PURE__ */ o(
@@ -1959,15 +1975,15 @@ const li = ({
1959
1975
  )
1960
1976
  }
1961
1977
  );
1962
- }, Le = ({
1978
+ }, Fe = ({
1963
1979
  onClick: t,
1964
1980
  items: e,
1965
1981
  selectedItem: r,
1966
1982
  canScrollRef: n
1967
1983
  }) => {
1968
1984
  const s = U(null);
1969
- return /* @__PURE__ */ o(Q, { className: er.timePickerColumn, ref: s, children: e.map((i) => /* @__PURE__ */ o(
1970
- Fn,
1985
+ return /* @__PURE__ */ o(Z, { className: ur.timePickerColumn, ref: s, children: e.map((i) => /* @__PURE__ */ o(
1986
+ Gn,
1971
1987
  {
1972
1988
  item: i,
1973
1989
  onClick: t,
@@ -1977,7 +1993,7 @@ const li = ({
1977
1993
  },
1978
1994
  i
1979
1995
  )) });
1980
- }, Cn = be(0, 24), jn = be(0, 60), Kn = ({
1996
+ }, qn = be(0, 24), Jn = be(0, 60), Zn = ({
1981
1997
  value: t,
1982
1998
  onValueChange: e
1983
1999
  }) => {
@@ -1991,40 +2007,40 @@ const li = ({
1991
2007
  const a = y(
1992
2008
  (d) => {
1993
2009
  s(d), e == null || e(
1994
- `${Kt(String(d ?? 0))}:${zt(String(i ?? 0))}`
2010
+ `${zt(String(d ?? 0))}:${Gt(String(i ?? 0))}`
1995
2011
  );
1996
2012
  },
1997
2013
  [i, e]
1998
2014
  ), l = y(
1999
2015
  (d) => {
2000
2016
  c(d), e == null || e(
2001
- `${Kt(String(n ?? 0))}:${zt(String(d ?? 0))}`
2017
+ `${zt(String(n ?? 0))}:${Gt(String(d ?? 0))}`
2002
2018
  );
2003
2019
  },
2004
2020
  [n, e]
2005
2021
  );
2006
- return /* @__PURE__ */ N(H, { className: er.timePicker, children: [
2022
+ return /* @__PURE__ */ _(H, { className: ur.timePicker, children: [
2007
2023
  /* @__PURE__ */ o(
2008
- Le,
2024
+ Fe,
2009
2025
  {
2010
- items: Cn,
2026
+ items: qn,
2011
2027
  onClick: a,
2012
2028
  selectedItem: n,
2013
2029
  canScrollRef: r
2014
2030
  }
2015
2031
  ),
2016
- /* @__PURE__ */ o(_t, {}),
2032
+ /* @__PURE__ */ o(Nt, {}),
2017
2033
  /* @__PURE__ */ o(
2018
- Le,
2034
+ Fe,
2019
2035
  {
2020
- items: jn,
2036
+ items: Jn,
2021
2037
  onClick: l,
2022
2038
  selectedItem: i,
2023
2039
  canScrollRef: r
2024
2040
  }
2025
2041
  )
2026
2042
  ] });
2027
- }, zn = (t, e, r) => {
2043
+ }, Qn = (t, e, r) => {
2028
2044
  rt(
2029
2045
  function() {
2030
2046
  t && e(t);
@@ -2038,7 +2054,7 @@ const li = ({
2038
2054
  },
2039
2055
  [t, r]
2040
2056
  );
2041
- }, Gn = (t, e, {
2057
+ }, Xn = (t, e, {
2042
2058
  setDateInFocus: r,
2043
2059
  showCalendarInternal: n,
2044
2060
  hideCalendarInternal: s,
@@ -2111,8 +2127,8 @@ const li = ({
2111
2127
  onChangeTime: f,
2112
2128
  onChangeDate: h
2113
2129
  };
2114
- }, qn = (t) => {
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(
2130
+ }, Vn = (t) => {
2131
+ const [e, r] = I(void 0), [n, s] = I(void 0), [i, c, a] = oe(!1), [l, d, u] = oe(!1), [m, h] = I(void 0), [f, g] = I(
2116
2132
  () => t ?? /* @__PURE__ */ new Date()
2117
2133
  ), [b, w] = I("calendar");
2118
2134
  return {
@@ -2133,7 +2149,7 @@ const li = ({
2133
2149
  localTime: n,
2134
2150
  setLocalTime: s
2135
2151
  };
2136
- }, Jn = (t, e, r, n, {
2152
+ }, ts = (t, e, r, n, {
2137
2153
  isCalendarVisible: s,
2138
2154
  setCurrentPanel: i,
2139
2155
  showTimePicker: c,
@@ -2173,7 +2189,7 @@ const li = ({
2173
2189
  onClickCalendarButton: h,
2174
2190
  onKeyDownHandler: f
2175
2191
  };
2176
- }, ui = ({
2192
+ }, pi = ({
2177
2193
  value: t,
2178
2194
  onValueChange: e,
2179
2195
  onEnter: r,
@@ -2189,7 +2205,7 @@ const li = ({
2189
2205
  zIndex: h,
2190
2206
  appendTo: f
2191
2207
  }) => {
2192
- const g = U(null), b = U(null), w = qn(t), {
2208
+ const g = U(null), b = U(null), w = Vn(t), {
2193
2209
  setCurrentPanel: p,
2194
2210
  currentPanel: D,
2195
2211
  isCalendarVisible: M,
@@ -2200,27 +2216,27 @@ const li = ({
2200
2216
  localTime: E,
2201
2217
  localDate: S
2202
2218
  } = w, {
2203
- showCalendar: _,
2219
+ showCalendar: N,
2204
2220
  hideCalendar: P,
2205
2221
  inputLeftChangeHandler: x,
2206
2222
  inputRightChangeHandler: q,
2207
2223
  onChangeTime: F,
2208
2224
  onChangeDate: K
2209
- } = Gn(t, e, w, g), {
2225
+ } = Xn(t, e, w, g), {
2210
2226
  onKeyDownHandler: $,
2211
2227
  onFocusRight: z,
2212
2228
  onFocusLeft: J,
2213
- onClickDay: X,
2229
+ onClickDay: Q,
2214
2230
  onClickCalendarButton: G,
2215
2231
  onClickArrowButton: W
2216
- } = Jn(
2232
+ } = ts(
2217
2233
  K,
2218
2234
  g,
2219
- _,
2235
+ N,
2220
2236
  P,
2221
2237
  w
2222
2238
  );
2223
- zn(t, T, g);
2239
+ Qn(t, T, g);
2224
2240
  const j = R(() => {
2225
2241
  const v = t || S;
2226
2242
  return v ? ht(void 0, v, [
@@ -2230,7 +2246,7 @@ const li = ({
2230
2246
  }, [S, t]), lt = y(() => {
2231
2247
  P(), A();
2232
2248
  }, [P, A]), nt = R(
2233
- () => t ? $n(t) : E,
2249
+ () => t ? jn(t) : E,
2234
2250
  [t, E]
2235
2251
  ), st = Te(M, 300), C = Te(L, 300);
2236
2252
  return /* @__PURE__ */ o(B, { onKeyDown: $, children: /* @__PURE__ */ o(
@@ -2240,14 +2256,14 @@ const li = ({
2240
2256
  zIndex: h,
2241
2257
  appendTo: f,
2242
2258
  renderTrigger: (v) => /* @__PURE__ */ o(B, { ...v, children: /* @__PURE__ */ o(
2243
- tr,
2259
+ dr,
2244
2260
  {
2245
2261
  autoFocusLeft: i,
2246
2262
  onEsc: n,
2247
2263
  onEnter: r,
2248
2264
  onBlur: s,
2249
2265
  disabled: m,
2250
- separatorIcon: He,
2266
+ separatorIcon: Ge,
2251
2267
  typeLeft: "date",
2252
2268
  typeRight: "time",
2253
2269
  placeholderLeft: "yyyy-mm-dd",
@@ -2273,11 +2289,11 @@ const li = ({
2273
2289
  placement: Ot,
2274
2290
  open: M || L,
2275
2291
  onRequestClose: lt,
2276
- children: (st || C) && /* @__PURE__ */ o(Q, { children: st ? /* @__PURE__ */ o(
2292
+ children: (st || C) && /* @__PURE__ */ o(Z, { children: st ? /* @__PURE__ */ o(
2277
2293
  kt,
2278
2294
  {
2279
2295
  statePerMonth: j,
2280
- onClickDay: X,
2296
+ onClickDay: Q,
2281
2297
  dateInFocus: k,
2282
2298
  setDateInFocus: T,
2283
2299
  currentPanel: D,
@@ -2285,9 +2301,9 @@ const li = ({
2285
2301
  minDate: c,
2286
2302
  maxDate: d
2287
2303
  }
2288
- ) : C ? /* @__PURE__ */ N(Q, { children: [
2289
- /* @__PURE__ */ o(Q, { overflow: "hidden", height: "250px", children: /* @__PURE__ */ o(
2290
- Kn,
2304
+ ) : C ? /* @__PURE__ */ _(Z, { children: [
2305
+ /* @__PURE__ */ o(Z, { overflow: "hidden", height: "250px", children: /* @__PURE__ */ o(
2306
+ Zn,
2291
2307
  {
2292
2308
  value: nt ?? "",
2293
2309
  onValueChange: F
@@ -2298,34 +2314,34 @@ const li = ({
2298
2314
  ] }) : null })
2299
2315
  }
2300
2316
  ) });
2301
- }, Qn = ({
2317
+ }, es = ({
2302
2318
  value: t,
2303
2319
  onValueChange: e,
2304
2320
  year: r
2305
2321
  }) => {
2306
2322
  const n = String(r);
2307
2323
  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) }) });
2308
- }, fi = ({
2324
+ }, Di = ({
2309
2325
  value: t,
2310
2326
  onValueChange: e,
2311
2327
  initialLastYear: r
2312
2328
  }) => {
2313
2329
  const [n, s] = I(() => t ? t + 4 : r ?? (/* @__PURE__ */ new Date()).getFullYear() + 4), i = R(() => {
2314
2330
  const c = n - 11;
2315
- return je(be(c, n + 1), 3);
2331
+ return tr(be(c, n + 1), 3);
2316
2332
  }, [n]);
2317
2333
  return rt(() => {
2318
- s((c) => Xn(t, c));
2319
- }, [t]), /* @__PURE__ */ N(H, { children: [
2320
- /* @__PURE__ */ o(Q, { justifyContent: "center", children: /* @__PURE__ */ o(
2334
+ s((c) => rs(t, c));
2335
+ }, [t]), /* @__PURE__ */ _(H, { children: [
2336
+ /* @__PURE__ */ o(Z, { justifyContent: "center", children: /* @__PURE__ */ o(
2321
2337
  tt,
2322
2338
  {
2323
- leftIcon: qt,
2339
+ leftIcon: Jt,
2324
2340
  onClick: () => s(n - 3)
2325
2341
  }
2326
2342
  ) }),
2327
- /* @__PURE__ */ o(Q, { gap: 1, children: i.map((c) => /* @__PURE__ */ o(H, { gap: 1, children: c.map((a) => /* @__PURE__ */ o(
2328
- Qn,
2343
+ /* @__PURE__ */ o(Z, { gap: 1, children: i.map((c) => /* @__PURE__ */ o(H, { gap: 1, children: c.map((a) => /* @__PURE__ */ o(
2344
+ es,
2329
2345
  {
2330
2346
  year: a,
2331
2347
  onValueChange: e,
@@ -2333,7 +2349,7 @@ const li = ({
2333
2349
  },
2334
2350
  a
2335
2351
  )) }, c[0])) }),
2336
- /* @__PURE__ */ o(Q, { justifyContent: "center", children: /* @__PURE__ */ o(
2352
+ /* @__PURE__ */ o(Z, { justifyContent: "center", children: /* @__PURE__ */ o(
2337
2353
  tt,
2338
2354
  {
2339
2355
  leftIcon: Pt,
@@ -2341,7 +2357,7 @@ const li = ({
2341
2357
  }
2342
2358
  ) })
2343
2359
  ] });
2344
- }, Xn = (t, e) => {
2360
+ }, rs = (t, e) => {
2345
2361
  if (t == null)
2346
2362
  return e;
2347
2363
  if (t > e) {
@@ -2354,7 +2370,7 @@ const li = ({
2354
2370
  return e - i;
2355
2371
  }
2356
2372
  return e;
2357
- }, Zn = (t, e, r, n, s) => {
2373
+ }, ns = (t, e, r, n, s) => {
2358
2374
  rt(
2359
2375
  function() {
2360
2376
  t && r(t);
@@ -2388,7 +2404,7 @@ const li = ({
2388
2404
  },
2389
2405
  [e, s]
2390
2406
  );
2391
- }, Vn = (t, e, r, {
2407
+ }, ss = (t, e, r, {
2392
2408
  setDateInFocus: n,
2393
2409
  showCalendarInternal: s,
2394
2410
  hideCalendarInternal: i,
@@ -2427,8 +2443,8 @@ const li = ({
2427
2443
  setCurrentPanel: a,
2428
2444
  showCalendar: u
2429
2445
  };
2430
- }, ts = (t, e) => {
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");
2446
+ }, is = (t, e) => {
2447
+ const [r, n, s] = oe(!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
2448
  return {
2433
2449
  isCalendarVisible: r,
2434
2450
  showCalendarInternal: n,
@@ -2442,7 +2458,7 @@ const li = ({
2442
2458
  currentPanel: m,
2443
2459
  setCurrentPanel: h
2444
2460
  };
2445
- }, es = (t, e, r, n, s, i, c, {
2461
+ }, cs = (t, e, r, n, s, i, c, {
2446
2462
  firstFocusedInput: a,
2447
2463
  setFirstFocusedInput: l,
2448
2464
  isCalendarVisible: d,
@@ -2530,7 +2546,7 @@ const li = ({
2530
2546
  onKeyDownHandler: M
2531
2547
  };
2532
2548
  };
2533
- function hi({
2549
+ function bi({
2534
2550
  value: t,
2535
2551
  onValueChange: e,
2536
2552
  autoFocus: r,
@@ -2548,35 +2564,35 @@ function hi({
2548
2564
  zIndex: g,
2549
2565
  appendTo: b
2550
2566
  }) {
2551
- const { startDate: w, endDate: p } = t || {}, D = U(null), M = U(null), k = ts(w, p), {
2567
+ const { startDate: w, endDate: p } = t || {}, D = U(null), M = U(null), k = is(w, p), {
2552
2568
  dateInFocus: T,
2553
2569
  setDateInFocus: L,
2554
2570
  isCalendarVisible: A,
2555
2571
  currentPanel: E,
2556
2572
  setCurrentPanel: S
2557
2573
  } = k, {
2558
- showCalendar: _,
2574
+ showCalendar: N,
2559
2575
  hideCalendar: P,
2560
2576
  inputLeftChangeHandler: x,
2561
2577
  inputRightChangeHandler: q
2562
- } = Vn(w, p, e, k), {
2578
+ } = ss(w, p, e, k), {
2563
2579
  onKeyDownHandler: F,
2564
2580
  onFocusRight: K,
2565
2581
  onFocusLeft: $,
2566
2582
  onClickDay: z,
2567
2583
  onClickCalendarButton: J,
2568
- onClickArrowButton: X
2569
- } = es(
2584
+ onClickArrowButton: Q
2585
+ } = cs(
2570
2586
  w,
2571
2587
  p,
2572
2588
  e,
2573
2589
  D,
2574
2590
  M,
2575
- _,
2591
+ N,
2576
2592
  P,
2577
2593
  k
2578
2594
  );
2579
- Zn(
2595
+ ns(
2580
2596
  w,
2581
2597
  p,
2582
2598
  L,
@@ -2587,7 +2603,7 @@ function hi({
2587
2603
  () => w && p && V(w, p),
2588
2604
  [w, p]
2589
2605
  ), W = R(
2590
- () => Ur(
2606
+ () => zr(
2591
2607
  l == null ? void 0 : l.statePerMonth,
2592
2608
  w,
2593
2609
  p,
@@ -2604,7 +2620,7 @@ function hi({
2604
2620
  zIndex: g,
2605
2621
  appendTo: b,
2606
2622
  renderTrigger: (j) => /* @__PURE__ */ o(B, { ...j, children: /* @__PURE__ */ o(
2607
- tr,
2623
+ dr,
2608
2624
  {
2609
2625
  autoFocusLeft: r,
2610
2626
  onEsc: i,
@@ -2618,7 +2634,7 @@ function hi({
2618
2634
  placeholderRight: "End date",
2619
2635
  onChangeLeft: x,
2620
2636
  onChangeRight: q,
2621
- onClickArrowDown: X,
2637
+ onClickArrowDown: Q,
2622
2638
  onClickCalendar: J,
2623
2639
  onFocusLeft: $,
2624
2640
  onFocusRight: K,
@@ -2656,7 +2672,7 @@ function hi({
2656
2672
  }
2657
2673
  ) });
2658
2674
  }
2659
- const le = ({
2675
+ const de = ({
2660
2676
  onChange: t,
2661
2677
  onValueChange: e,
2662
2678
  mask: r,
@@ -2676,7 +2692,7 @@ const le = ({
2676
2692
  variant: w,
2677
2693
  ...p
2678
2694
  }) => {
2679
- const D = U(null), [M, k] = I(!1), { onChange: T } = Or(
2695
+ const D = U(null), [M, k] = I(!1), { onChange: T } = Kr(
2680
2696
  D,
2681
2697
  t,
2682
2698
  e,
@@ -2699,7 +2715,7 @@ const le = ({
2699
2715
  },
2700
2716
  [m]
2701
2717
  ), E = M ? f : h ?? f;
2702
- return w === "standard" ? /* @__PURE__ */ o(gr, { text: b ?? "", children: /* @__PURE__ */ o(
2718
+ return w === "standard" ? /* @__PURE__ */ o(Rr, { text: b ?? "", children: /* @__PURE__ */ o(
2703
2719
  mt,
2704
2720
  {
2705
2721
  ...p,
@@ -2710,11 +2726,11 @@ const le = ({
2710
2726
  onFocus: L,
2711
2727
  onBlur: A,
2712
2728
  onChange: T,
2713
- width: ve(d),
2729
+ width: Ce(d),
2714
2730
  alwaysShowPlaceholder: !0
2715
2731
  }
2716
2732
  ) }) : /* @__PURE__ */ o(
2717
- $r,
2733
+ jr,
2718
2734
  {
2719
2735
  ...p,
2720
2736
  label: b,
@@ -2725,11 +2741,11 @@ const le = ({
2725
2741
  onFocus: L,
2726
2742
  onBlur: A,
2727
2743
  onChange: T,
2728
- width: ve(d),
2744
+ width: Ce(d),
2729
2745
  size: d === "large" ? "large" : "medium"
2730
2746
  }
2731
2747
  );
2732
- }, ve = (t) => {
2748
+ }, Ce = (t) => {
2733
2749
  switch (t) {
2734
2750
  case "small":
2735
2751
  return "140px";
@@ -2738,22 +2754,22 @@ const le = ({
2738
2754
  case "large":
2739
2755
  return "196px";
2740
2756
  default:
2741
- return he(t, "168px");
2757
+ return me(t, "168px");
2742
2758
  }
2743
- }, rs = [/[1-2]/, /\d/, /\d/, /\d/], ns = [/[0-1]/, /\d/], ss = [/[0-3]/, /\d/], rr = (t) => cs(t).flatMap(is), is = (t) => {
2759
+ }, os = [/[1-2]/, /\d/, /\d/, /\d/], as = [/[0-1]/, /\d/], ls = [/[0-3]/, /\d/], fr = (t) => us(t).flatMap(ds), ds = (t) => {
2744
2760
  switch (t) {
2745
2761
  case "yyyy":
2746
- return rs;
2762
+ return os;
2747
2763
  case "mm":
2748
2764
  case "MM":
2749
- return ns;
2765
+ return as;
2750
2766
  case "dd":
2751
2767
  case "DD":
2752
- return ss;
2768
+ return ls;
2753
2769
  default:
2754
2770
  return [t];
2755
2771
  }
2756
- }, cs = (t) => {
2772
+ }, us = (t) => {
2757
2773
  if (t.length === 0) return [];
2758
2774
  const e = [];
2759
2775
  let r = t[0];
@@ -2768,10 +2784,10 @@ const le = ({
2768
2784
  };
2769
2785
  return r.map((s) => n[s.type] || s.value).join("");
2770
2786
  }, Dt = (t, e, r) => {
2771
- const n = Qe(
2787
+ const n = cr(
2772
2788
  e,
2773
2789
  (r == null ? void 0 : r.matchLanguage) ?? !1,
2774
- (r == null ? void 0 : r.fallbackLocaleCode) ?? Je
2790
+ (r == null ? void 0 : r.fallbackLocaleCode) ?? ir
2775
2791
  ), s = Rt(n);
2776
2792
  if (s == null)
2777
2793
  return;
@@ -2786,19 +2802,19 @@ const le = ({
2786
2802
  if (!isNaN(i.getTime()))
2787
2803
  return i;
2788
2804
  }, At = (t, e, r) => {
2789
- const n = Qe(
2805
+ const n = cr(
2790
2806
  e,
2791
2807
  (r == null ? void 0 : r.matchLanguage) ?? !1,
2792
- (r == null ? void 0 : r.fallbackLocaleCode) ?? Je
2808
+ (r == null ? void 0 : r.fallbackLocaleCode) ?? ir
2793
2809
  );
2794
2810
  return O(t, Et(n), {
2795
2811
  locale: Rt(n)
2796
2812
  });
2797
- }, de = (t, e) => {
2813
+ }, ue = (t, e) => {
2798
2814
  const r = Dt(t, e);
2799
2815
  if (r != null)
2800
2816
  return At(r, e);
2801
- }, nr = ({
2817
+ }, hr = ({
2802
2818
  value: t,
2803
2819
  onValueChange: e,
2804
2820
  localeCode: r,
@@ -2815,13 +2831,13 @@ const le = ({
2815
2831
  const { mask: h, placeholder: f } = R(() => {
2816
2832
  const g = Et(r);
2817
2833
  return {
2818
- mask: rr(g),
2834
+ mask: fr(g),
2819
2835
  placeholder: g.toLowerCase()
2820
2836
  };
2821
2837
  }, [r]);
2822
- return /* @__PURE__ */ N(H, { children: [
2838
+ return /* @__PURE__ */ _(H, { children: [
2823
2839
  /* @__PURE__ */ o(
2824
- le,
2840
+ de,
2825
2841
  {
2826
2842
  mask: h,
2827
2843
  value: t == null ? void 0 : t.startDate,
@@ -2829,7 +2845,7 @@ const le = ({
2829
2845
  e == null || e({ startDate: g });
2830
2846
  },
2831
2847
  onBlur: (g) => {
2832
- const b = de(
2848
+ const b = ue(
2833
2849
  g.target.value,
2834
2850
  r
2835
2851
  );
@@ -2846,13 +2862,13 @@ const le = ({
2846
2862
  }
2847
2863
  ),
2848
2864
  /* @__PURE__ */ o(
2849
- le,
2865
+ de,
2850
2866
  {
2851
2867
  mask: h,
2852
2868
  value: t == null ? void 0 : t.endDate,
2853
2869
  onValueChange: (g) => e == null ? void 0 : e({ endDate: g }),
2854
2870
  onBlur: (g) => {
2855
- const b = de(
2871
+ const b = ue(
2856
2872
  g.target.value,
2857
2873
  r
2858
2874
  );
@@ -2869,11 +2885,11 @@ const le = ({
2869
2885
  }
2870
2886
  )
2871
2887
  ] });
2872
- }, ue = (t, e, r) => {
2873
- const n = Rr(t, e) ? "" : " y";
2888
+ }, fe = (t, e, r) => {
2889
+ const n = Yr(t, e) ? "" : " y";
2874
2890
  return r.code.startsWith("en") ? O(t, "eee MMM d" + n, { locale: r }).replace(".", "") : O(t, "eee d MMM" + n, { locale: r }).replace(".", "");
2875
- }, sr = (t, e, r, n) => {
2876
- const s = Rt(r), i = ye(), c = Gt(), a = U(null), l = R(
2891
+ }, mr = (t, e, r, n) => {
2892
+ const s = Rt(r), i = ye(), c = qt(), a = U(null), l = R(
2877
2893
  () => Et(r),
2878
2894
  [r]
2879
2895
  ), d = R(
@@ -2889,10 +2905,10 @@ const le = ({
2889
2905
  },
2890
2906
  [l.length, r, t == null ? void 0 : t.endDate]
2891
2907
  ), m = R(
2892
- () => d != null ? ue(d, c, s) : void 0,
2908
+ () => d != null ? fe(d, c, s) : void 0,
2893
2909
  [s, d, c]
2894
2910
  ), h = R(
2895
- () => u != null ? ue(u, c, s) : void 0,
2911
+ () => u != null ? fe(u, c, s) : void 0,
2896
2912
  [s, u, c]
2897
2913
  ), [f, g] = I(
2898
2914
  n ?? d ?? /* @__PURE__ */ new Date()
@@ -2968,7 +2984,7 @@ const le = ({
2968
2984
  valueWhenBlurredStartDate: m,
2969
2985
  valueWhenBlurredEndDate: h
2970
2986
  };
2971
- }, Vt = ({
2987
+ }, te = ({
2972
2988
  previousMonthButtonAriaLabel: t,
2973
2989
  nextMonthButtonAriaLabel: e,
2974
2990
  monthPickerButtonLabel: r,
@@ -2981,13 +2997,13 @@ const le = ({
2981
2997
  calendarSize: d,
2982
2998
  previousMonthButtonTestId: u,
2983
2999
  nextMonthButtonTestId: m
2984
- }) => /* @__PURE__ */ N(H, { alignSelf: "center", justifyContent: "space-between", width: "100%", children: [
3000
+ }) => /* @__PURE__ */ _(H, { alignSelf: "center", justifyContent: "space-between", width: "100%", children: [
2985
3001
  /* @__PURE__ */ o(
2986
3002
  tt,
2987
3003
  {
2988
3004
  "aria-live": "polite",
2989
3005
  label: r,
2990
- rightIcon: n === "calendar" ? me : pr,
3006
+ rightIcon: n === "calendar" ? ge : Ir,
2991
3007
  onClick: () => s(
2992
3008
  n === "calendar" ? "month-picker" : "calendar"
2993
3009
  ),
@@ -2995,12 +3011,12 @@ const le = ({
2995
3011
  size: d === "small" ? "medium" : "large"
2996
3012
  }
2997
3013
  ),
2998
- /* @__PURE__ */ N(H, { alignItems: "center", gap: 2, children: [
3014
+ /* @__PURE__ */ _(H, { alignItems: "center", gap: 2, children: [
2999
3015
  /* @__PURE__ */ o(
3000
3016
  ft,
3001
3017
  {
3002
- leftIcon: qt,
3003
- onClick: () => c(pe(a, 1)),
3018
+ leftIcon: Jt,
3019
+ onClick: () => c(De(a, 1)),
3004
3020
  disabled: l,
3005
3021
  "aria-label": t,
3006
3022
  size: d === "small" ? "medium" : "large",
@@ -3018,21 +3034,21 @@ const le = ({
3018
3034
  }
3019
3035
  )
3020
3036
  ] })
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 = {
3022
- travelDateCell: os,
3023
- small: as,
3024
- medium: ls,
3025
- large: ds,
3026
- outline: us,
3027
- contentWrapper: fs,
3028
- disabled: hs,
3029
- isToday: ms,
3030
- isSelectionStart: gs,
3031
- isSelectionEnd: ps,
3032
- hover: Ds,
3033
- startSelected: bs,
3034
- endSelected: ws
3035
- }, dt = Qt("--lhds-color-red-100"), ys = (t, e, r, n, s, i) => {
3037
+ ] }), fs = "_travelDateCell_h6vcn_1", hs = "_small_h6vcn_4", ms = "_medium_h6vcn_9", gs = "_large_h6vcn_14", ps = "_outline_h6vcn_26", Ds = "_contentWrapper_h6vcn_39", bs = "_disabled_h6vcn_60", ws = "_isToday_h6vcn_63", ys = "_isSelectionStart_h6vcn_67", Ms = "_isSelectionEnd_h6vcn_68", ks = "_hover_h6vcn_83", Ss = "_startSelected_h6vcn_86", Ts = "_endSelected_h6vcn_86", et = {
3038
+ travelDateCell: fs,
3039
+ small: hs,
3040
+ medium: ms,
3041
+ large: gs,
3042
+ outline: ps,
3043
+ contentWrapper: Ds,
3044
+ disabled: bs,
3045
+ isToday: ws,
3046
+ isSelectionStart: ys,
3047
+ isSelectionEnd: Ms,
3048
+ hover: ks,
3049
+ startSelected: Ss,
3050
+ endSelected: Ts
3051
+ }, dt = Qt("--lhds-color-red-100"), Rs = (t, e, r, n, s, i) => {
3036
3052
  if (!s)
3037
3053
  return {
3038
3054
  left: "transparent",
@@ -3084,33 +3100,33 @@ const le = ({
3084
3100
  left: "transparent",
3085
3101
  right: "transparent"
3086
3102
  };
3087
- }, Ms = (t, e) => {
3103
+ }, Is = (t, e) => {
3088
3104
  switch (e) {
3089
3105
  case "PageUp":
3090
- return pe(t, 1);
3106
+ return De(t, 1);
3091
3107
  case "PageDown":
3092
3108
  return Ht(t, 1);
3093
3109
  case "Home":
3094
3110
  return jt(t);
3095
3111
  case "End":
3096
- return Z(jt(t), 6);
3112
+ return X(jt(t), 6);
3097
3113
  case "ArrowLeft":
3098
3114
  return gt(t, 1);
3099
3115
  case "ArrowUp":
3100
3116
  return gt(t, 7);
3101
3117
  case "ArrowRight":
3102
- return Z(t, 1);
3118
+ return X(t, 1);
3103
3119
  case "ArrowDown":
3104
- return Z(t, 7);
3120
+ return X(t, 7);
3105
3121
  default:
3106
3122
  return;
3107
3123
  }
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 = {
3109
- travelDateCellBackground: ks,
3110
- small: Ss,
3111
- medium: Ts,
3112
- large: Rs
3113
- }, Is = ({ calendarSize: t, bgColorLeft: e, bgColorRight: r }) => /* @__PURE__ */ N(H, { children: [
3124
+ }, se = (t, e) => O(Ve(t, 12), at.fullDate) + e, Es = "_travelDateCellBackground_1k07m_1", xs = "_small_1k07m_2", As = "_medium_1k07m_7", Ns = "_large_1k07m_12", Ft = {
3125
+ travelDateCellBackground: Es,
3126
+ small: xs,
3127
+ medium: As,
3128
+ large: Ns
3129
+ }, _s = ({ calendarSize: t, bgColorLeft: e, bgColorRight: r }) => /* @__PURE__ */ _(H, { children: [
3114
3130
  /* @__PURE__ */ o(
3115
3131
  B,
3116
3132
  {
@@ -3125,7 +3141,7 @@ const le = ({
3125
3141
  background: r
3126
3142
  }
3127
3143
  )
3128
- ] }), Es = ({
3144
+ ] }), Ls = ({
3129
3145
  onClick: t,
3130
3146
  visibleMonth: e,
3131
3147
  onChangeVisibleMonth: r,
@@ -3146,10 +3162,10 @@ const le = ({
3146
3162
  const w = y(
3147
3163
  async (A) => {
3148
3164
  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(() => {
3151
- var _;
3152
- (_ = document.getElementById(ne(E, h))) == null || _.focus();
3165
+ const E = Is(n.date, A.key);
3166
+ E && !f(E) && (a(E), ot(n.date, E) ? (S = document.getElementById(se(E, h))) == null || S.focus() : (r(E), setTimeout(() => {
3167
+ var N;
3168
+ (N = document.getElementById(se(E, h))) == null || N.focus();
3153
3169
  }, 10))), (A.key === "Enter" || A.code === "Space") && t(n.date);
3154
3170
  },
3155
3171
  [
@@ -3160,7 +3176,7 @@ const le = ({
3160
3176
  t,
3161
3177
  a
3162
3178
  ]
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(
3179
+ ), 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 = Rs(
3164
3180
  n.date,
3165
3181
  i,
3166
3182
  c,
@@ -3168,28 +3184,28 @@ const le = ({
3168
3184
  p,
3169
3185
  s
3170
3186
  );
3171
- return /* @__PURE__ */ N(
3187
+ return /* @__PURE__ */ _(
3172
3188
  "td",
3173
3189
  {
3174
3190
  className: wt(et.travelDateCell, et[g]),
3175
3191
  onClick: D ? void 0 : () => t(n.date),
3176
3192
  onMouseOver: D ? void 0 : () => p && a(n.date),
3177
3193
  onMouseOut: D ? void 0 : () => p && l(n.date),
3178
- tabIndex: D ? void 0 : xs(
3194
+ tabIndex: D ? void 0 : vs(
3179
3195
  n,
3180
3196
  i,
3181
3197
  T,
3182
3198
  e,
3183
3199
  m
3184
3200
  ),
3185
- id: D ? void 0 : ne(n.date, h),
3201
+ id: D ? void 0 : se(n.date, h),
3186
3202
  onKeyDown: D ? void 0 : w,
3187
3203
  ...D ? void 0 : { "aria-selected": M || k },
3188
3204
  "data-testid": b == null ? void 0 : b(n.date),
3189
3205
  children: [
3190
3206
  /* @__PURE__ */ o("div", { className: et.outline }),
3191
3207
  /* @__PURE__ */ o(
3192
- Is,
3208
+ _s,
3193
3209
  {
3194
3210
  calendarSize: g,
3195
3211
  bgColorLeft: L.left,
@@ -3222,12 +3238,12 @@ const le = ({
3222
3238
  ]
3223
3239
  }
3224
3240
  );
3225
- }, xs = (t, e, r, n, s) => {
3241
+ }, vs = (t, e, r, n, s) => {
3226
3242
  const i = e ? ot(e, n) : !1;
3227
3243
  return (e && i ? Y(t.date, e) : r) || !i && !s && t.date.getDate() === 1 ? 0 : -1;
3228
- }, As = "_travelCalendar_18pjj_1", _s = {
3229
- travelCalendar: As
3230
- }, te = ({
3244
+ }, Bs = "_travelCalendar_18pjj_1", Ys = {
3245
+ travelCalendar: Bs
3246
+ }, ee = ({
3231
3247
  visibleMonthData: t,
3232
3248
  onClickDate: e,
3233
3249
  setHoverDate: r,
@@ -3247,13 +3263,13 @@ const le = ({
3247
3263
  }) => /* @__PURE__ */ o(
3248
3264
  "table",
3249
3265
  {
3250
- className: _s.travelCalendar,
3266
+ className: Ys.travelCalendar,
3251
3267
  role: "grid",
3252
3268
  ...g ? { "aria-multiselectable": !0 } : void 0,
3253
- children: /* @__PURE__ */ N("tbody", { children: [
3269
+ children: /* @__PURE__ */ _("tbody", { children: [
3254
3270
  /* @__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)) }),
3255
3271
  t.weeks.map((w) => /* @__PURE__ */ o(we.Fragment, { children: /* @__PURE__ */ o("tr", { children: w.days.map((p) => /* @__PURE__ */ o(
3256
- Es,
3272
+ Ls,
3257
3273
  {
3258
3274
  size: f,
3259
3275
  onClick: (D) => e(D),
@@ -3276,11 +3292,11 @@ const le = ({
3276
3292
  )) }, w.weekNumber) }, w.weekNumber))
3277
3293
  ] })
3278
3294
  }
3279
- ), Ns = "_travelDateRangeInput_1j7rp_1", Ls = "_overlay_1j7rp_2", vs = "_calendarVisible_1j7rp_6", se = {
3280
- travelDateRangeInput: Ns,
3281
- overlay: Ls,
3282
- calendarVisible: vs
3283
- }, mi = ({
3295
+ ), Ps = "_travelDateRangeInput_1j7rp_1", Hs = "_overlay_1j7rp_2", Ws = "_calendarVisible_1j7rp_6", ie = {
3296
+ travelDateRangeInput: Ps,
3297
+ overlay: Hs,
3298
+ calendarVisible: Ws
3299
+ }, wi = ({
3284
3300
  value: t,
3285
3301
  onValueChange: e,
3286
3302
  startDateLabel: r,
@@ -3305,25 +3321,25 @@ const le = ({
3305
3321
  nextMonthButtonTestId: T,
3306
3322
  textInputVariant: L = "standard"
3307
3323
  }) => {
3308
- const [A, E] = I(!1), [S, _] = I(!1), [P, x] = I({
3324
+ const [A, E] = I(!1), [S, N] = I(!1), [P, x] = I({
3309
3325
  // Sane defaults, this will be updated with actual data from DOM.
3310
3326
  width: 336,
3311
3327
  height: 66
3312
3328
  }), q = D === "large" ? "8.8rem" : "6.6rem", F = U(!1), K = y(() => {
3313
- F.current = !0, _(!0), setTimeout(() => {
3329
+ F.current = !0, N(!0), setTimeout(() => {
3314
3330
  E(!0);
3315
3331
  }, 10);
3316
3332
  }, []), $ = y(() => {
3317
3333
  S && (E(!1), F.current = !1, w == null || w(), setTimeout(() => {
3318
- F.current || _(!1);
3334
+ F.current || N(!1);
3319
3335
  }, 120));
3320
3336
  }, [S, w]), z = U(null), J = U(null);
3321
- Ye(z, $), Ke(() => {
3337
+ Ke(z, $), er(() => {
3322
3338
  var xt, ke;
3323
3339
  const v = (xt = J.current) == null ? void 0 : xt.offsetWidth, it = (ke = J.current) == null ? void 0 : ke.offsetHeight;
3324
3340
  v != null && it != null && (P.height !== it || P.width !== v) && x({ width: v, height: it });
3325
3341
  }, [P.height, P.width]);
3326
- const X = sr(
3342
+ const Q = mr(
3327
3343
  t,
3328
3344
  e,
3329
3345
  s,
@@ -3335,17 +3351,17 @@ const le = ({
3335
3351
  setVisibleMonth: lt,
3336
3352
  setVisiblePanel: nt,
3337
3353
  monthPickerButtonRef: st
3338
- } = X, C = y(
3354
+ } = Q, C = y(
3339
3355
  (v) => {
3340
3356
  v.key === "Escape" && $();
3341
3357
  },
3342
3358
  [$]
3343
3359
  );
3344
- return /* @__PURE__ */ N(
3360
+ return /* @__PURE__ */ _(
3345
3361
  B,
3346
3362
  {
3347
3363
  position: "relative",
3348
- className: se.travelDateRangeInput,
3364
+ className: ie.travelDateRangeInput,
3349
3365
  ref: z,
3350
3366
  onKeyDown: C,
3351
3367
  height: P.height,
@@ -3358,9 +3374,9 @@ const le = ({
3358
3374
  ref: J,
3359
3375
  zIndex: S ? g : b,
3360
3376
  children: /* @__PURE__ */ o(
3361
- nr,
3377
+ hr,
3362
3378
  {
3363
- ...X,
3379
+ ...Q,
3364
3380
  value: t,
3365
3381
  onValueChange: j,
3366
3382
  localeCode: s,
@@ -3382,20 +3398,20 @@ const le = ({
3382
3398
  zIndex: g - 1,
3383
3399
  left: "-2.4rem",
3384
3400
  top: u ? "-8.0rem" : "-2.4rem",
3385
- className: wt(se.overlay, A && se.calendarVisible),
3401
+ className: wt(ie.overlay, A && ie.calendarVisible),
3386
3402
  children: /* @__PURE__ */ o(
3387
3403
  B,
3388
3404
  {
3389
3405
  background: "white",
3390
3406
  shadow: "popover",
3391
3407
  borderRadius: "var(--swui-border-radius-large)",
3392
- children: /* @__PURE__ */ N(We, { gap: 3, children: [
3408
+ children: /* @__PURE__ */ _(qe, { gap: 3, children: [
3393
3409
  u && /* @__PURE__ */ o(Yt, { variant: "h2", as: m, children: u }),
3394
3410
  /* @__PURE__ */ o(B, { height: q }),
3395
3411
  /* @__PURE__ */ o(
3396
- Vt,
3412
+ te,
3397
3413
  {
3398
- ...X,
3414
+ ...Q,
3399
3415
  previousMonthButtonAriaLabel: c,
3400
3416
  nextMonthButtonAriaLabel: a,
3401
3417
  calendarSize: D,
@@ -3404,9 +3420,9 @@ const le = ({
3404
3420
  }
3405
3421
  ),
3406
3422
  G === "calendar" && /* @__PURE__ */ o(
3407
- te,
3423
+ ee,
3408
3424
  {
3409
- ...X,
3425
+ ...Q,
3410
3426
  size: D,
3411
3427
  multiSelectable: !0,
3412
3428
  dateTestId: M
@@ -3439,11 +3455,11 @@ const le = ({
3439
3455
  ]
3440
3456
  }
3441
3457
  );
3442
- }, Bs = "_travelDateInput_hmfbf_1", Ys = "_overlay_hmfbf_2", Ps = "_calendarVisible_hmfbf_6", ie = {
3443
- travelDateInput: Bs,
3444
- overlay: Ys,
3445
- calendarVisible: Ps
3446
- }, ir = ({
3458
+ }, $s = "_travelDateInput_hmfbf_1", Os = "_overlay_hmfbf_2", Us = "_calendarVisible_hmfbf_6", ce = {
3459
+ travelDateInput: $s,
3460
+ overlay: Os,
3461
+ calendarVisible: Us
3462
+ }, gr = ({
3447
3463
  value: t,
3448
3464
  onValueChange: e,
3449
3465
  label: r = "Date",
@@ -3457,18 +3473,18 @@ const le = ({
3457
3473
  const { mask: d, placeholder: u } = R(() => {
3458
3474
  const m = Et(n);
3459
3475
  return {
3460
- mask: rr(m),
3476
+ mask: fr(m),
3461
3477
  placeholder: m.toLowerCase()
3462
3478
  };
3463
3479
  }, [n]);
3464
3480
  return /* @__PURE__ */ o(H, { children: /* @__PURE__ */ o(
3465
- le,
3481
+ de,
3466
3482
  {
3467
3483
  mask: d,
3468
3484
  value: t,
3469
3485
  onValueChange: e,
3470
3486
  onBlur: (m) => {
3471
- const h = de(m.target.value, n);
3487
+ const h = ue(m.target.value, n);
3472
3488
  h && h !== t && (e == null || e(h));
3473
3489
  },
3474
3490
  onFocus: s,
@@ -3480,15 +3496,15 @@ const le = ({
3480
3496
  variant: l
3481
3497
  }
3482
3498
  ) });
3483
- }, cr = (t, e, r, n) => {
3484
- const s = Rt(r), i = ye(), c = Gt(), a = U(null), l = R(
3499
+ }, pr = (t, e, r, n) => {
3500
+ const s = Rt(r), i = ye(), c = qt(), a = U(null), l = R(
3485
3501
  () => Et(r),
3486
3502
  [r]
3487
3503
  ), d = R(
3488
3504
  () => (t == null ? void 0 : t.length) === l.length ? Dt(t, r) : void 0,
3489
3505
  [l.length, r, t]
3490
3506
  ), u = R(
3491
- () => d != null ? ue(d, c, s) : void 0,
3507
+ () => d != null ? fe(d, c, s) : void 0,
3492
3508
  [s, d, c]
3493
3509
  ), [m, h] = I(
3494
3510
  n ?? d ?? /* @__PURE__ */ new Date()
@@ -3506,8 +3522,8 @@ const le = ({
3506
3522
  [s, m]
3507
3523
  ), 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
3524
  (S) => {
3509
- const _ = (S == null ? void 0 : S.length) === l.length ? Dt(S, r) : void 0;
3510
- _ && f(_), e == null || e(S);
3525
+ const N = (S == null ? void 0 : S.length) === l.length ? Dt(S, r) : void 0;
3526
+ N && f(N), e == null || e(S);
3511
3527
  },
3512
3528
  [l.length, r, e, f]
3513
3529
  ), L = R(
@@ -3539,7 +3555,7 @@ const le = ({
3539
3555
  visibleMonth: m,
3540
3556
  valueWhenBlurred: u
3541
3557
  };
3542
- }, gi = ({
3558
+ }, yi = ({
3543
3559
  value: t,
3544
3560
  onValueChange: e,
3545
3561
  label: r,
@@ -3562,7 +3578,7 @@ const le = ({
3562
3578
  nextMonthButtonTestId: M,
3563
3579
  textInputVariant: k = "standard"
3564
3580
  }) => {
3565
- const [T, L] = I(!1), [A, E] = I(!1), [S, _] = I({
3581
+ const [T, L] = I(!1), [A, E] = I(!1), [S, N] = I({
3566
3582
  // Sane defaults, this will be updated with actual data from DOM.
3567
3583
  width: 336,
3568
3584
  height: 66
@@ -3575,19 +3591,19 @@ const le = ({
3575
3591
  x.current || E(!1);
3576
3592
  }, 120));
3577
3593
  }, [A, g]), K = U(null), $ = U(null);
3578
- Ye(K, F), Ke(() => {
3594
+ Ke(K, F), er(() => {
3579
3595
  var it, xt;
3580
3596
  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 });
3597
+ C != null && v != null && (S.height !== v || S.width !== C) && N({ width: C, height: v });
3582
3598
  }, [S.height, S.width]);
3583
- const z = cr(
3599
+ const z = pr(
3584
3600
  t,
3585
3601
  e,
3586
3602
  n,
3587
3603
  s
3588
3604
  ), {
3589
3605
  visiblePanel: J,
3590
- visibleMonth: X,
3606
+ visibleMonth: Q,
3591
3607
  onValueChangeByInputs: G,
3592
3608
  selectedDate: W,
3593
3609
  setVisibleMonth: j,
@@ -3599,11 +3615,11 @@ const le = ({
3599
3615
  },
3600
3616
  [F]
3601
3617
  );
3602
- return /* @__PURE__ */ N(
3618
+ return /* @__PURE__ */ _(
3603
3619
  B,
3604
3620
  {
3605
3621
  position: "relative",
3606
- className: ie.travelDateInput,
3622
+ className: ce.travelDateInput,
3607
3623
  ref: K,
3608
3624
  onKeyDown: st,
3609
3625
  height: S.height,
@@ -3616,7 +3632,7 @@ const le = ({
3616
3632
  ref: $,
3617
3633
  zIndex: A ? h : f,
3618
3634
  children: /* @__PURE__ */ o(
3619
- ir,
3635
+ gr,
3620
3636
  {
3621
3637
  ...z,
3622
3638
  value: t,
@@ -3638,18 +3654,18 @@ const le = ({
3638
3654
  zIndex: h - 1,
3639
3655
  left: "-2.4rem",
3640
3656
  top: l ? "-8.0rem" : "-2.4rem",
3641
- className: wt(ie.overlay, T && ie.calendarVisible),
3657
+ className: wt(ce.overlay, T && ce.calendarVisible),
3642
3658
  children: /* @__PURE__ */ o(
3643
3659
  B,
3644
3660
  {
3645
3661
  background: "white",
3646
3662
  shadow: "popover",
3647
3663
  borderRadius: "var(--swui-border-radius-large)",
3648
- children: /* @__PURE__ */ N(We, { gap: 3, children: [
3664
+ children: /* @__PURE__ */ _(qe, { gap: 3, children: [
3649
3665
  l && /* @__PURE__ */ o(Yt, { variant: "h2", as: d, children: l }),
3650
3666
  /* @__PURE__ */ o(B, { height: P }),
3651
3667
  /* @__PURE__ */ o(
3652
- Vt,
3668
+ te,
3653
3669
  {
3654
3670
  ...z,
3655
3671
  previousMonthButtonAriaLabel: i,
@@ -3660,7 +3676,7 @@ const le = ({
3660
3676
  }
3661
3677
  ),
3662
3678
  J === "calendar" && /* @__PURE__ */ o(
3663
- te,
3679
+ ee,
3664
3680
  {
3665
3681
  ...z,
3666
3682
  size: w,
@@ -3676,7 +3692,7 @@ const le = ({
3676
3692
  {
3677
3693
  firstMonth: m,
3678
3694
  numMonths: u,
3679
- value: X,
3695
+ value: Q,
3680
3696
  size: w,
3681
3697
  localeCode: n,
3682
3698
  onValueChange: (C) => {
@@ -3698,7 +3714,7 @@ const le = ({
3698
3714
  ]
3699
3715
  }
3700
3716
  );
3701
- }, pi = ({
3717
+ }, Mi = ({
3702
3718
  value: t,
3703
3719
  onValueChange: e,
3704
3720
  label: r,
@@ -3717,7 +3733,7 @@ const le = ({
3717
3733
  nextMonthButtonTestId: b,
3718
3734
  textInputVariant: w = "standard"
3719
3735
  }) => {
3720
- const p = cr(
3736
+ const p = pr(
3721
3737
  t,
3722
3738
  e,
3723
3739
  n,
@@ -3731,10 +3747,10 @@ const le = ({
3731
3747
  monthPickerButtonRef: A,
3732
3748
  selectedDate: E
3733
3749
  } = p;
3734
- return /* @__PURE__ */ N(Q, { gap: 3, children: [
3750
+ return /* @__PURE__ */ _(Z, { gap: 3, children: [
3735
3751
  l && /* @__PURE__ */ o(Yt, { variant: "h2", as: d, children: l }),
3736
3752
  /* @__PURE__ */ o(
3737
- ir,
3753
+ gr,
3738
3754
  {
3739
3755
  ...p,
3740
3756
  value: t,
@@ -3747,7 +3763,7 @@ const le = ({
3747
3763
  }
3748
3764
  ),
3749
3765
  /* @__PURE__ */ o(
3750
- Vt,
3766
+ te,
3751
3767
  {
3752
3768
  ...p,
3753
3769
  previousMonthButtonAriaLabel: i,
@@ -3758,7 +3774,7 @@ const le = ({
3758
3774
  }
3759
3775
  ),
3760
3776
  D === "calendar" && /* @__PURE__ */ o(
3761
- te,
3777
+ ee,
3762
3778
  {
3763
3779
  ...p,
3764
3780
  size: f,
@@ -3778,8 +3794,8 @@ const le = ({
3778
3794
  localeCode: n,
3779
3795
  size: f,
3780
3796
  onValueChange: (S) => {
3781
- var _;
3782
- T(S), L("calendar"), (_ = A.current) == null || _.focus();
3797
+ var N;
3798
+ T(S), L("calendar"), (N = A.current) == null || N.focus();
3783
3799
  },
3784
3800
  onCancel: () => {
3785
3801
  var S;
@@ -3788,7 +3804,7 @@ const le = ({
3788
3804
  }
3789
3805
  )
3790
3806
  ] });
3791
- }, Di = ({
3807
+ }, ki = ({
3792
3808
  value: t,
3793
3809
  onValueChange: e,
3794
3810
  startDateLabel: r,
@@ -3809,7 +3825,7 @@ const le = ({
3809
3825
  placeholderWhenBlurredEndDate: p,
3810
3826
  textInputVariant: D = "standard"
3811
3827
  }) => {
3812
- const M = sr(
3828
+ const M = mr(
3813
3829
  t,
3814
3830
  e,
3815
3831
  s,
@@ -3822,10 +3838,10 @@ const le = ({
3822
3838
  setVisiblePanel: E,
3823
3839
  monthPickerButtonRef: S
3824
3840
  } = M;
3825
- return /* @__PURE__ */ N(Q, { gap: 3, children: [
3841
+ return /* @__PURE__ */ _(Z, { gap: 3, children: [
3826
3842
  l && /* @__PURE__ */ o(Yt, { variant: "h2", as: d, children: l }),
3827
3843
  /* @__PURE__ */ o(
3828
- nr,
3844
+ hr,
3829
3845
  {
3830
3846
  ...M,
3831
3847
  value: t,
@@ -3840,7 +3856,7 @@ const le = ({
3840
3856
  }
3841
3857
  ),
3842
3858
  /* @__PURE__ */ o(
3843
- Vt,
3859
+ te,
3844
3860
  {
3845
3861
  ...M,
3846
3862
  previousMonthButtonAriaLabel: c,
@@ -3851,7 +3867,7 @@ const le = ({
3851
3867
  }
3852
3868
  ),
3853
3869
  k === "calendar" && /* @__PURE__ */ o(
3854
- te,
3870
+ ee,
3855
3871
  {
3856
3872
  ...M,
3857
3873
  size: h,
@@ -3867,84 +3883,84 @@ const le = ({
3867
3883
  value: T,
3868
3884
  size: h,
3869
3885
  localeCode: s,
3870
- onValueChange: (_) => {
3886
+ onValueChange: (N) => {
3871
3887
  var P;
3872
- A(_), E("calendar"), (P = S.current) == null || P.focus();
3888
+ A(N), E("calendar"), (P = S.current) == null || P.focus();
3873
3889
  },
3874
3890
  onCancel: () => {
3875
- var _;
3876
- E("calendar"), (_ = S.current) == null || _.focus();
3891
+ var N;
3892
+ E("calendar"), (N = S.current) == null || N.focus();
3877
3893
  }
3878
3894
  }
3879
3895
  )
3880
3896
  ] });
3881
3897
  };
3882
3898
  export {
3883
- oe as Calendar,
3884
- Ge as CalendarDay,
3885
- oi as DateInput,
3886
- ni as DateRangeCalendar,
3887
- hi as DateRangeDualTextInput,
3888
- ai as DateRangeInput,
3889
- li as DateTextInput,
3890
- ui as DateTimeInput,
3891
- Kr as Month,
3899
+ ae as Calendar,
3900
+ nr as CalendarDay,
3901
+ fi as DateInput,
3902
+ ai as DateRangeCalendar,
3903
+ bi as DateRangeDualTextInput,
3904
+ hi as DateRangeInput,
3905
+ mi as DateTextInput,
3906
+ pi as DateTimeInput,
3907
+ Zr as Month,
3892
3908
  $t as MonthPicker,
3893
- ii as MultiDateCalendar,
3894
- Mn as PresetPicker,
3895
- Ve as SingleDateCalendar,
3896
- ci as SingleWeekCalendar,
3897
- di as TimeTextInput,
3898
- pi as TravelDateCalendar,
3899
- gi as TravelDateInput,
3900
- Di as TravelDateRangeCalendar,
3901
- mi as TravelDateRangeInput,
3902
- zr as WeekDay,
3903
- rn as WeekDayCell,
3904
- sn as WeekNumberCell,
3905
- fi as YearPicker,
3909
+ di as MultiDateCalendar,
3910
+ In as PresetPicker,
3911
+ lr as SingleDateCalendar,
3912
+ ui as SingleWeekCalendar,
3913
+ gi as TimeTextInput,
3914
+ Mi as TravelDateCalendar,
3915
+ yi as TravelDateInput,
3916
+ ki as TravelDateRangeCalendar,
3917
+ wi as TravelDateRangeInput,
3918
+ Qr as WeekDay,
3919
+ an as WeekDayCell,
3920
+ dn as WeekNumberCell,
3921
+ Di as YearPicker,
3906
3922
  ht as addDayStateHighlights,
3907
- ze as addDayStateHighlightsOnSingleDay,
3908
- Cr as addWeekRangeHighlights,
3909
- Zs as addWeekStateHighlights,
3923
+ rr as addDayStateHighlightsOnSingleDay,
3924
+ qr as addWeekRangeHighlights,
3925
+ ni as addWeekStateHighlights,
3910
3926
  Bt as buildDayStateForDateRange,
3911
- Fr as buildDayStateForRange,
3912
- Ur as buildDayStateForSingleMonth,
3913
- Qr as calculateOverflowingMonth,
3914
- qr as createDay,
3915
- En as dateRangeToStrings,
3916
- Vr as dayHasHighlight,
3927
+ Gr as buildDayStateForRange,
3928
+ zr as buildDayStateForSingleMonth,
3929
+ en as calculateOverflowingMonth,
3930
+ Vr as createDay,
3931
+ Ln as dateRangeToStrings,
3932
+ sn as dayHasHighlight,
3917
3933
  ut as dayHighlightSelect,
3918
3934
  Mt as defaultCalendarTheme,
3919
- en as defaultTextPropsProvider,
3920
- tn as defaultWrapperStyleProvider,
3921
- Vs as extranetCalendarTheme,
3922
- Je as fallbackLocaleCode,
3923
- ti as fallbackLocaleCodeForFormatting,
3935
+ on as defaultTextPropsProvider,
3936
+ cn as defaultWrapperStyleProvider,
3937
+ si as extranetCalendarTheme,
3938
+ ir as fallbackLocaleCode,
3939
+ ii as fallbackLocaleCodeForFormatting,
3924
3940
  At as formatLocalizedDate,
3925
3941
  Et as getDateFormatForLocaleCode,
3926
- Jr as getDaysForWeekForDate,
3927
- ei as getDefaultLocaleForFormatting,
3928
- gn as getLocaleCodeForLocale,
3942
+ tn as getDaysForWeekForDate,
3943
+ ci as getDefaultLocaleForFormatting,
3944
+ yn as getLocaleCodeForLocale,
3929
3945
  Rt as getLocaleForLocaleCode,
3930
3946
  Xt as getMonthInYear,
3931
- Ae as getMonthsInYear,
3932
- Qe as getSupportedLocaleCode,
3933
- mn as getSupportedLocaleCodeMatchingLanguage,
3947
+ $e as getMonthsInYear,
3948
+ cr as getSupportedLocaleCode,
3949
+ wn as getSupportedLocaleCodeMatchingLanguage,
3934
3950
  Me as getWeekForDate,
3935
- Gr as getWeeksForMonth,
3936
- Xe as isDateRangeInvalid,
3951
+ Xr as getWeeksForMonth,
3952
+ or as isDateRangeInvalid,
3937
3953
  Dt as parseLocalizedDateString,
3938
- de as reformatLocalizedDateString,
3939
- Qs as setDayStateValue,
3940
- Xs as setDayStateValueFunction,
3941
- xn as stringsToDateRange,
3942
- ri as toggleDateStringsIfEndIsEarlierThanStart,
3943
- Ze as toggleDatesIfEndIsEarlierThanStart,
3944
- si as useDateRangeCalendarState,
3945
- _n as useDateRangeSelection,
3946
- Ln as useMultiDateSelection,
3947
- Nn as useSingleDateSelection,
3948
- vn as useSingleWeekSelection
3954
+ ue as reformatLocalizedDateString,
3955
+ ei as setDayStateValue,
3956
+ ri as setDayStateValueFunction,
3957
+ vn as stringsToDateRange,
3958
+ oi as toggleDateStringsIfEndIsEarlierThanStart,
3959
+ ar as toggleDatesIfEndIsEarlierThanStart,
3960
+ li as useDateRangeCalendarState,
3961
+ Yn as useDateRangeSelection,
3962
+ Hn as useMultiDateSelection,
3963
+ Pn as useSingleDateSelection,
3964
+ Wn as useSingleWeekSelection
3949
3965
  };
3950
3966
  //# sourceMappingURL=index.es.js.map