@progress/kendo-react-dateinputs 7.0.2 → 7.0.3-develop.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/LICENSE.md +1 -1
  2. package/NOTICE.txt +1 -1
  3. package/PopupSettings.d.ts +1 -1
  4. package/README.md +1 -1
  5. package/calendar/components/Calendar.d.ts +2 -2
  6. package/calendar/components/CalendarCell.d.ts +1 -1
  7. package/calendar/components/CalendarHeaderTitle.d.ts +1 -1
  8. package/calendar/components/CalendarNavigationItem.d.ts +1 -1
  9. package/calendar/components/CalendarWeekCell.d.ts +1 -1
  10. package/calendar/components/Header.d.ts +1 -1
  11. package/calendar/components/HorizontalViewList.d.ts +1 -1
  12. package/calendar/components/MultiViewCalendar.d.ts +1 -1
  13. package/calendar/components/Navigation.d.ts +1 -1
  14. package/calendar/components/TodayCommand.d.ts +1 -1
  15. package/calendar/components/View.d.ts +1 -1
  16. package/calendar/components/ViewList.d.ts +1 -1
  17. package/calendar/models/ActiveView.d.ts +1 -1
  18. package/calendar/models/CalendarSettings.d.ts +1 -1
  19. package/calendar/models/CalendarViewEnum.d.ts +1 -1
  20. package/calendar/models/CellContext.d.ts +1 -1
  21. package/calendar/models/MultiViewCalendarMode.d.ts +1 -1
  22. package/calendar/models/MultiViewCalendarSettings.d.ts +1 -1
  23. package/calendar/models/NavigationAction.d.ts +1 -1
  24. package/calendar/models/SelectionRange.d.ts +1 -1
  25. package/calendar/models/SelectionRangeEnd.d.ts +1 -1
  26. package/calendar/models/ViewService.d.ts +1 -1
  27. package/calendar/models/index.d.ts +1 -1
  28. package/calendar/services/BusViewService.d.ts +1 -1
  29. package/calendar/services/CenturyViewService.d.ts +1 -1
  30. package/calendar/services/DOMService.d.ts +1 -1
  31. package/calendar/services/DecadeViewService.d.ts +1 -1
  32. package/calendar/services/MonthViewService.d.ts +1 -1
  33. package/calendar/services/NavigationService.d.ts +1 -1
  34. package/calendar/services/ScrollSyncService.d.ts +1 -1
  35. package/calendar/services/WeekNamesService.d.ts +1 -1
  36. package/calendar/services/YearViewService.d.ts +1 -1
  37. package/calendar/services/index.d.ts +1 -1
  38. package/common/AdaptiveMode.d.ts +1 -1
  39. package/common/PickerWrap.d.ts +1 -1
  40. package/common/constants.d.ts +1 -1
  41. package/dateinput/DateInput.d.ts +1 -1
  42. package/dateinput/models/DateInputSettings.d.ts +1 -1
  43. package/dateinput/models/format-placeholder.d.ts +1 -1
  44. package/dateinput/models/incremental-steps.d.ts +1 -1
  45. package/dateinput/models/index.d.ts +1 -1
  46. package/dateinput/models/kendo-date.d.ts +1 -1
  47. package/dateinput/models/mask.d.ts +1 -1
  48. package/dateinput/models/selection.d.ts +1 -1
  49. package/dateinput/utils.d.ts +1 -1
  50. package/datepicker/DatePicker.d.ts +1 -1
  51. package/datepicker/ToggleButton.d.ts +1 -1
  52. package/datepicker/models/DatePickerSettings.d.ts +1 -1
  53. package/datepicker/models/index.d.ts +1 -1
  54. package/daterangepicker/DateRangePicker.d.ts +1 -1
  55. package/daterangepicker/models/DateRangePickerCalendarSettings.d.ts +1 -1
  56. package/daterangepicker/models/DateRangePickerDateInputSettings.d.ts +1 -1
  57. package/daterangepicker/models/DateRangePickerPopupSettings.d.ts +1 -1
  58. package/daterangepicker/models/DateRangePickerSettings.d.ts +1 -1
  59. package/daterangepicker/models/index.d.ts +1 -1
  60. package/datetimepicker/DateTimePicker.d.ts +1 -1
  61. package/datetimepicker/DateTimeSelector.d.ts +10 -5
  62. package/datetimepicker/models/DateTimePickerSettings.d.ts +1 -1
  63. package/datetimepicker/models/index.d.ts +1 -1
  64. package/dist/cdn/js/kendo-react-dateinputs.js +5 -5
  65. package/hooks/usePickerFloatingLabel.d.ts +1 -1
  66. package/index.d.mts +1 -1
  67. package/index.d.ts +1 -1
  68. package/index.js +5 -5
  69. package/index.mjs +814 -766
  70. package/messages/index.d.ts +1 -1
  71. package/package-metadata.d.ts +1 -1
  72. package/package.json +8 -8
  73. package/timepicker/TimeList.d.ts +1 -1
  74. package/timepicker/TimePart.d.ts +3 -2
  75. package/timepicker/TimePicker.d.ts +1 -1
  76. package/timepicker/TimeSelector.d.ts +3 -1
  77. package/timepicker/models/IncrementalSteps.d.ts +1 -1
  78. package/timepicker/models/ListItem.d.ts +1 -1
  79. package/timepicker/models/ListService.d.ts +1 -1
  80. package/timepicker/models/ListServiceSettings.d.ts +1 -1
  81. package/timepicker/models/TimePart.d.ts +1 -1
  82. package/timepicker/models/TimePickerSettings.d.ts +1 -1
  83. package/timepicker/models/index.d.ts +1 -1
  84. package/timepicker/services/DOMService.d.ts +1 -1
  85. package/timepicker/services/DayPeriodService.d.ts +1 -1
  86. package/timepicker/services/HoursService.d.ts +1 -1
  87. package/timepicker/services/MinutesService.d.ts +1 -1
  88. package/timepicker/services/SecondsService.d.ts +1 -1
  89. package/timepicker/services/index.d.ts +1 -1
  90. package/timepicker/utils.d.ts +1 -1
  91. package/utils.d.ts +1 -1
  92. package/virtualization/Virtualization.d.ts +1 -1
  93. package/virtualization/services/RowHeightService.d.ts +1 -1
  94. package/virtualization/services/ScrollerService.d.ts +1 -1
  95. package/virtualization/services/index.d.ts +1 -1
package/index.mjs CHANGED
@@ -1,23 +1,23 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use client";
6
- import * as o from "react";
6
+ import * as r from "react";
7
7
  import n from "prop-types";
8
- import { classNames as P, canUseDOM as J, createPropsContext as Dt, withIdHOC as yt, withPropsContext as St, Keys as C, validatePackage as Pt, setScrollbarWidth as fs, getActiveElement as lt, AsyncFocusBlur as we, kendoThemeMaps as mt, noop as Rs, IconWrap as ei } from "@progress/kendo-react-common";
9
- import { getDate as x, cloneDate as v, addDecades as it, addCenturies as qt, firstDecadeOfCentury as oe, lastDecadeOfCentury as He, firstYearOfDecade as st, durationInCenturies as se, addYears as nt, lastYearOfDecade as Ae, durationInDecades as ie, addDays as Wt, addWeeks as gs, addMonths as $, firstDayOfMonth as fe, lastDayOfMonth as Ot, dayOfWeek as si, durationInMonths as ne, firstMonthOfYear as Ns, lastMonthOfYear as _s, createDate as le, durationInYears as ae, weekInYear as ii, isEqualDate as wt, isEqual as ht } from "@progress/kendo-date-math";
10
- import { registerForIntl as ft, provideIntlService as ct, registerForLocalization as at, provideLocalizationService as q } from "@progress/kendo-react-intl";
8
+ import { classNames as P, canUseDOM as J, createPropsContext as kt, withIdHOC as yt, withPropsContext as St, Keys as k, validatePackage as Pt, setScrollbarWidth as fs, getActiveElement as lt, AsyncFocusBlur as we, kendoThemeMaps as mt, noop as Rs, IconWrap as ei } from "@progress/kendo-react-common";
9
+ import { getDate as C, cloneDate as v, addDecades as it, addCenturies as qt, firstDecadeOfCentury as re, lastDecadeOfCentury as He, firstYearOfDecade as st, durationInCenturies as se, addYears as nt, lastYearOfDecade as Be, durationInDecades as ie, addDays as Wt, addWeeks as gs, addMonths as $, firstDayOfMonth as fe, lastDayOfMonth as Ot, dayOfWeek as si, durationInMonths as ne, firstMonthOfYear as Ns, lastMonthOfYear as _s, createDate as le, durationInYears as ae, weekInYear as ii, isEqualDate as wt, isEqual as ht } from "@progress/kendo-date-math";
10
+ import { registerForIntl as ft, provideIntlService as ct, registerForLocalization as at, provideLocalizationService as W } from "@progress/kendo-react-intl";
11
11
  import { Button as N, ButtonGroup as ni } from "@progress/kendo-react-buttons";
12
- import { caretAltUpIcon as ai, caretAltDownIcon as ri, xIcon as oi, calendarIcon as Fs, clockIcon as li, chevronRightIcon as vs, chevronLeftIcon as ws, arrowsSwapIcon as hi } from "@progress/kendo-svg-icons";
12
+ import { caretAltUpIcon as ai, caretAltDownIcon as oi, xIcon as ri, calendarIcon as Fs, clockIcon as li, chevronRightIcon as vs, chevronLeftIcon as ws, arrowsSwapIcon as hi } from "@progress/kendo-svg-icons";
13
13
  import { FloatingLabel as Ls } from "@progress/kendo-react-labels";
14
14
  import { Popup as be } from "@progress/kendo-react-popup";
15
- import { ActionSheet as ci, ActionSheetHeader as ui, ActionSheetFooter as di, ActionSheetContent as ke } from "@progress/kendo-react-layout";
15
+ import { ActionSheet as ci, ActionSheetHeader as ui, ActionSheetFooter as di, ActionSheetContent as De } from "@progress/kendo-react-layout";
16
16
  const Rt = {
17
17
  name: "@progress/kendo-react-dateinputs",
18
18
  productName: "KendoReact",
19
19
  productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
20
- publishDate: 1702644785,
20
+ publishDate: 1704459086,
21
21
  version: "",
22
22
  licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"
23
23
  }, pi = (s, t, e) => [
@@ -28,7 +28,7 @@ class mi {
28
28
  constructor(t = 0, e, i) {
29
29
  this.total = t, this.rowHeight = e, this.detailRowHeight = i, this.offsets = [], this.heights = [];
30
30
  let a = 0;
31
- for (let r = 0; r < t; r++)
31
+ for (let o = 0; o < t; o++)
32
32
  this.offsets.push(a), a += e, this.heights.push(e);
33
33
  }
34
34
  height(t) {
@@ -59,7 +59,7 @@ class mi {
59
59
  this.heights[t] += e, this.offsets = pi(this.offsets, t, e);
60
60
  }
61
61
  }
62
- const re = (s) => Math.max(s, 0);
62
+ const oe = (s) => Math.max(s, 0);
63
63
  class Me {
64
64
  constructor(t) {
65
65
  this.offset = t;
@@ -74,21 +74,21 @@ class fi {
74
74
  constructor(t, e) {
75
75
  this.onScrollAction = t, this.onPageAction = e, this.direction = "vertical", this.firstLoaded = 0, this.lastLoaded = 0, this.lastScrollTop = 0, this.take = 0, this.total = 0, this.rowHeightService = null, this.bottomOffset = 0, this.topOffset = 0;
76
76
  }
77
- create(t, e, i, a, r = 0, l = 0, c = "vertical") {
78
- this.rowHeightService = t, this.firstLoaded = e, this.lastLoaded = e + i, this.take = i, this.total = a, this.lastScrollTop = 0, this.topOffset = r, this.bottomOffset = l, this.direction = c;
79
- const h = this.rowsForHeight(r), u = re(e - h);
77
+ create(t, e, i, a, o = 0, l = 0, c = "vertical") {
78
+ this.rowHeightService = t, this.firstLoaded = e, this.lastLoaded = e + i, this.take = i, this.total = a, this.lastScrollTop = 0, this.topOffset = o, this.bottomOffset = l, this.direction = c;
79
+ const h = this.rowsForHeight(o), u = oe(e - h);
80
80
  this.onScrollAction(new Me(this.rowOffset(u))), this.onPageAction(new Te(u));
81
81
  }
82
82
  onScroll({ scrollLeft: t, scrollTop: e, offsetHeight: i, offsetWidth: a }) {
83
- const r = this.direction === "vertical" ? e : t, l = this.direction === "vertical" ? i : a;
84
- if (this.lastScrollTop === r || !this.rowHeightService)
83
+ const o = this.direction === "vertical" ? e : t, l = this.direction === "vertical" ? i : a;
84
+ if (this.lastScrollTop === o || !this.rowHeightService)
85
85
  return;
86
- const c = this.lastScrollTop >= r;
87
- this.lastScrollTop = r;
88
- const h = this.rowHeightService.index(re(r - this.topOffset)), u = this.rowHeightService.index(re(r + l - this.bottomOffset));
86
+ const c = this.lastScrollTop >= o;
87
+ this.lastScrollTop = o;
88
+ const h = this.rowHeightService.index(oe(o - this.topOffset)), u = this.rowHeightService.index(oe(o + l - this.bottomOffset));
89
89
  if (!c && u >= this.lastLoaded && this.lastLoaded < this.total && (this.firstLoaded = h, this.onScrollAction(new Me(this.rowOffset(h))), this.lastLoaded = Math.min(this.firstLoaded + this.take, this.total), this.onPageAction(new Te(this.firstLoaded))), c && h <= this.firstLoaded) {
90
90
  const d = Math.floor(this.take * 0.3);
91
- this.firstLoaded = re(h - d), this.onScrollAction(new Me(this.rowOffset(this.firstLoaded))), this.lastLoaded = Math.min(this.firstLoaded + this.take, this.total), this.onPageAction(new Te(this.firstLoaded));
91
+ this.firstLoaded = oe(h - d), this.onScrollAction(new Me(this.rowOffset(this.firstLoaded))), this.lastLoaded = Math.min(this.firstLoaded + this.take, this.total), this.onPageAction(new Te(this.firstLoaded));
92
92
  }
93
93
  }
94
94
  rowOffset(t) {
@@ -107,7 +107,7 @@ const gi = (s, t, e) => Math.min(Math.abs(t - s), e), vi = 17, wi = 10, bi = {
107
107
  0
108
108
  /* Backward */
109
109
  ]: (s) => (t) => t - s
110
- }, ki = {
110
+ }, Di = {
111
111
  [
112
112
  1
113
113
  /* Forward */
@@ -116,7 +116,7 @@ const gi = (s, t, e) => Math.min(Math.abs(t - s), e), vi = 17, wi = 10, bi = {
116
116
  0
117
117
  /* Backward */
118
118
  ]: (s) => (t) => Math.max(t, s)
119
- }, Di = {
119
+ }, ki = {
120
120
  [
121
121
  1
122
122
  /* Forward */
@@ -125,7 +125,7 @@ const gi = (s, t, e) => Math.min(Math.abs(t - s), e), vi = 17, wi = 10, bi = {
125
125
  0
126
126
  /* Backward */
127
127
  ]: (s) => (t) => t > s
128
- }, he = class extends o.Component {
128
+ }, he = class extends r.Component {
129
129
  constructor(s) {
130
130
  super(s), this.rowHeightService = null, this.scrollContainer = null, this.lastDirection = null, this.lastTotal = 0, this.lastTake = 0, this.animationInProgress = !1, this.restrictScroll = !1, this.scrollTo = (t) => {
131
131
  const e = this.direction === "vertical" ? "scrollTop" : "scrollLeft";
@@ -140,14 +140,14 @@ const gi = (s, t, e) => Math.min(Math.abs(t - s), e), vi = 17, wi = 10, bi = {
140
140
  return;
141
141
  window.cancelAnimationFrame(this.cancelAnimation);
142
142
  const e = this.rowHeightService.offset(t), i = this.getContainerScrollDirection(e);
143
- let { start: a, end: r } = this.scrollRange(e, i);
144
- if (a === r)
143
+ let { start: a, end: o } = this.scrollRange(e, i);
144
+ if (a === o)
145
145
  return;
146
- const l = this.scrollStep(a, r), c = bi[i](l), h = ki[i](r), u = Di[i](c(r)), d = (p) => {
146
+ const l = this.scrollStep(a, o), c = bi[i](l), h = Di[i](o), u = ki[i](c(o)), d = (p) => {
147
147
  this.animationInProgress = !0;
148
- const m = c(p);
149
- this.scrollTo(h(m)), u(m) ? this.cancelAnimation = window.requestAnimationFrame(() => {
150
- d(m);
148
+ const f = c(p);
149
+ this.scrollTo(h(f)), u(f) ? this.cancelAnimation = window.requestAnimationFrame(() => {
150
+ d(f);
151
151
  }) : this.animationInProgress = !1;
152
152
  };
153
153
  this.cancelAnimation = window.requestAnimationFrame(() => {
@@ -162,8 +162,8 @@ const gi = (s, t, e) => Math.min(Math.abs(t - s), e), vi = 17, wi = 10, bi = {
162
162
  const i = this.containerScrollPosition;
163
163
  if (parseInt(`${t}`, 10) === parseInt(`${i}`, 10))
164
164
  return { start: t, end: t };
165
- const a = this.containerMaxScroll(), r = e === 0 ? 1 : -1, l = gi(i, t, this.props.maxScrollDifference || 0), c = Math.min(t, a);
166
- return { start: Math.min(Math.max(c + r * l, 0), a), end: c };
165
+ const a = this.containerMaxScroll(), o = e === 0 ? 1 : -1, l = gi(i, t, this.props.maxScrollDifference || 0), c = Math.min(t, a);
166
+ return { start: Math.min(Math.max(c + o * l, 0), a), end: c };
167
167
  }, this.containerMaxScroll = () => this.containerScrollSize - this.containerOffsetSize, this.getContainerScrollDirection = (t) => t < this.containerScrollPosition ? 0 : 1, this.initServices = (t = this.props) => {
168
168
  const e = this.direction === "vertical" ? t.itemHeight : t.itemWidth;
169
169
  e !== void 0 && (this.rowHeightService = new mi(t.total, e, 0), this.scrollerService.create(
@@ -185,14 +185,14 @@ const gi = (s, t, e) => Math.min(Math.abs(t - s), e), vi = 17, wi = 10, bi = {
185
185
  offsetHeight: e.offsetHeight,
186
186
  offsetWidth: e.offsetWidth
187
187
  });
188
- const i = this.rowHeightService.index(this.containerScrollPosition - this.props.topOffset), { onScrollAction: a } = this.props, r = {
188
+ const i = this.rowHeightService.index(this.containerScrollPosition - this.props.topOffset), { onScrollAction: a } = this.props, o = {
189
189
  index: i,
190
190
  target: e,
191
191
  scrollAction: this.scrollAction,
192
192
  pageAction: this.pageAction,
193
193
  animationInProgress: this.animationInProgress
194
194
  };
195
- this.props.onScroll && this.props.onScroll.call(void 0, t), a && a.call(void 0, r), this.scrollAction = void 0, this.pageAction = void 0;
195
+ this.props.onScroll && this.props.onScroll.call(void 0, t), a && a.call(void 0, o), this.scrollAction = void 0, this.pageAction = void 0;
196
196
  }, this.handleScrollAction = (t) => {
197
197
  this.scrollAction = t;
198
198
  }, this.handlePageAction = (t) => {
@@ -200,7 +200,7 @@ const gi = (s, t, e) => Math.min(Math.abs(t - s), e), vi = 17, wi = 10, bi = {
200
200
  }, this.scrollerService = new fi(
201
201
  this.handleScrollAction,
202
202
  this.handlePageAction
203
- ), this.restrictScroll = Number.parseFloat(o.version) > 17;
203
+ ), this.restrictScroll = Number.parseFloat(r.version) > 17;
204
204
  }
205
205
  get element() {
206
206
  return this.scrollContainer;
@@ -256,7 +256,7 @@ const gi = (s, t, e) => Math.min(Math.abs(t - s), e), vi = 17, wi = 10, bi = {
256
256
  "k-scrollable-horizontal-placeholder": this.direction === "horizontal"
257
257
  }
258
258
  );
259
- return /* @__PURE__ */ o.createElement(
259
+ return /* @__PURE__ */ r.createElement(
260
260
  "div",
261
261
  {
262
262
  ref: (a) => {
@@ -268,7 +268,7 @@ const gi = (s, t, e) => Math.min(Math.abs(t - s), e), vi = 17, wi = 10, bi = {
268
268
  role: this.props.role
269
269
  },
270
270
  this.props.children,
271
- /* @__PURE__ */ o.createElement(
271
+ /* @__PURE__ */ r.createElement(
272
272
  "div",
273
273
  {
274
274
  style: t,
@@ -310,13 +310,13 @@ const yi = (s, t) => {
310
310
  if (e.length !== i.length)
311
311
  return !1;
312
312
  for (let a = 0; a < e.length; a++) {
313
- const r = e[a];
314
- if (s[r] !== t[r])
313
+ const o = e[a];
314
+ if (s[o] !== t[o])
315
315
  return !1;
316
316
  }
317
317
  return !0;
318
318
  };
319
- class Si extends o.Component {
319
+ class Si extends r.Component {
320
320
  constructor() {
321
321
  super(...arguments), this.handleClick = (t) => {
322
322
  const { onClick: e, value: i } = this.props;
@@ -337,8 +337,8 @@ class Si extends o.Component {
337
337
  * @hidden
338
338
  */
339
339
  shouldComponentUpdate(t) {
340
- const { value: e, ...i } = this.props, { value: a, ...r } = t;
341
- return !((!(e && a) || e.getTime() === a.getTime()) && yi(i, r));
340
+ const { value: e, ...i } = this.props, { value: a, ...o } = t;
341
+ return !((!(e && a) || e.getTime() === a.getTime()) && yi(i, o));
342
342
  }
343
343
  /* eslint-disable max-len */
344
344
  /**
@@ -351,16 +351,16 @@ class Si extends o.Component {
351
351
  formattedValue: e,
352
352
  isWeekend: i,
353
353
  isFocused: a,
354
- isInRange: r,
354
+ isInRange: o,
355
355
  isSelected: l,
356
356
  isRangeStart: c,
357
357
  isRangeMid: h,
358
358
  isRangeEnd: u,
359
359
  isRangeSplitStart: d,
360
360
  isRangeSplitEnd: p,
361
- isToday: m,
362
- isDisabled: f,
363
- view: y,
361
+ isToday: f,
362
+ isDisabled: m,
363
+ view: S,
364
364
  value: I,
365
365
  ...M
366
366
  } = this.props, w = this.props.activeRangeEnd === "end" && u, E = this.props.activeRangeEnd === "start" && c, g = P(
@@ -374,13 +374,13 @@ class Si extends o.Component {
374
374
  "k-active": E || w,
375
375
  "k-state-pending-focus": a,
376
376
  "k-selected": l || c || u,
377
- "k-today": m,
377
+ "k-today": f,
378
378
  "k-weekend": i,
379
- "k-disabled": f
379
+ "k-disabled": m
380
380
  },
381
381
  t
382
382
  );
383
- return /* @__PURE__ */ o.createElement(
383
+ return /* @__PURE__ */ r.createElement(
384
384
  "td",
385
385
  {
386
386
  ...M,
@@ -389,27 +389,27 @@ class Si extends o.Component {
389
389
  onMouseEnter: this.handleMouseEnter,
390
390
  onMouseLeave: this.handleMouseLeave
391
391
  },
392
- /* @__PURE__ */ o.createElement("span", { className: "k-link" }, this.props.children)
392
+ /* @__PURE__ */ r.createElement("span", { className: "k-link" }, this.props.children)
393
393
  );
394
394
  }
395
395
  }
396
- class xi extends o.Component {
396
+ class xi extends r.Component {
397
397
  /**
398
398
  * @return
399
399
  * Returns a `<td />` element with the [`value`]({% slug api_dateinputs_calendarweekcellprops %}#toc-value) as a child.
400
400
  */
401
401
  render() {
402
402
  const { className: t, firstDate: e, ...i } = this.props;
403
- return /* @__PURE__ */ o.createElement("td", { className: P("k-calendar-td", t), ...i }, this.props.children);
403
+ return /* @__PURE__ */ r.createElement("td", { className: P("k-calendar-td", t), ...i }, this.props.children);
404
404
  }
405
405
  }
406
- var b = /* @__PURE__ */ ((s) => (s[s.Left = 0] = "Left", s[s.Right = 1] = "Right", s[s.Up = 2] = "Up", s[s.Down = 3] = "Down", s[s.PrevView = 4] = "PrevView", s[s.NextView = 5] = "NextView", s[s.FirstInView = 6] = "FirstInView", s[s.LastInView = 7] = "LastInView", s[s.LowerView = 8] = "LowerView", s[s.UpperView = 9] = "UpperView", s))(b || {}), D = /* @__PURE__ */ ((s) => (s[s.month = 0] = "month", s[s.year = 1] = "year", s[s.decade = 2] = "decade", s[s.century = 3] = "century", s))(D || {});
407
- const z = { start: null, end: null };
408
- function rt(s) {
409
- const t = (i, a, r, ...l) => a[r] === null ? null : (i ? s.isRequired : s)(a, r, ...l), e = t.bind(null, !1);
406
+ var b = /* @__PURE__ */ ((s) => (s[s.Left = 0] = "Left", s[s.Right = 1] = "Right", s[s.Up = 2] = "Up", s[s.Down = 3] = "Down", s[s.PrevView = 4] = "PrevView", s[s.NextView = 5] = "NextView", s[s.FirstInView = 6] = "FirstInView", s[s.LastInView = 7] = "LastInView", s[s.LowerView = 8] = "LowerView", s[s.UpperView = 9] = "UpperView", s))(b || {}), y = /* @__PURE__ */ ((s) => (s[s.month = 0] = "month", s[s.year = 1] = "year", s[s.decade = 2] = "decade", s[s.century = 3] = "century", s))(y || {});
407
+ const q = { start: null, end: null };
408
+ function ot(s) {
409
+ const t = (i, a, o, ...l) => a[o] === null ? null : (i ? s.isRequired : s)(a, o, ...l), e = t.bind(null, !1);
410
410
  return e.isRequired = t.bind(null, !0), e;
411
411
  }
412
- const ge = (s, t, e) => t === void 0 || e === void 0 || t <= s && s <= e ? s : s < t ? t : e, L = new Date(1980, 0, 1), ut = new Date(1900, 0, 1), dt = new Date(2099, 11, 31), Nt = new Date(1980, 0, 1), xt = new Date(1980, 0, 1, 23, 59, 59), W = (s, t) => {
412
+ const ge = (s, t, e) => t === void 0 || e === void 0 || t <= s && s <= e ? s : s < t ? t : e, L = new Date(1980, 0, 1), ut = new Date(1900, 0, 1), dt = new Date(2099, 11, 31), Nt = new Date(1980, 0, 1), xt = new Date(1980, 0, 1, 23, 59, 59), U = (s, t) => {
413
413
  const e = v(s);
414
414
  return e.setHours(
415
415
  t.getHours(),
@@ -417,74 +417,74 @@ const ge = (s, t, e) => t === void 0 || e === void 0 || t <= s && s <= e ? s : s
417
417
  t.getSeconds(),
418
418
  t.getMilliseconds()
419
419
  ), e;
420
- }, U = () => x(/* @__PURE__ */ new Date()), F = (s, t, e) => !s || !(t && t > s || e && e < s), Hs = (s, t, e) => s === null || !(t && x(t) > x(s) || e && x(e) < x(s)), De = (s, t) => {
421
- const { start: e, end: i } = t || z;
420
+ }, H = () => C(/* @__PURE__ */ new Date()), F = (s, t, e) => !s || !(t && t > s || e && e < s), Hs = (s, t, e) => s === null || !(t && C(t) > C(s) || e && C(e) < C(s)), ke = (s, t) => {
421
+ const { start: e, end: i } = t || q;
422
422
  return !e || !i ? !1 : e < s && s < i;
423
423
  }, Q = (s, t, e = 1) => {
424
424
  const i = [];
425
425
  for (let a = s; a < t; a = a + e)
426
426
  i.push(a);
427
427
  return i;
428
- }, As = (s, t, e) => t.getTime() <= s.getTime() && s.getTime() <= e.getTime(), Bs = (s, t) => s.slice(t).concat(s.slice(0, t)), K = (s, t, e) => s && (t && s < t ? v(t) : e && s > e ? v(e) : s), Y = (s) => (t, e = "", i = {}) => {
428
+ }, Bs = (s, t, e) => t.getTime() <= s.getTime() && s.getTime() <= e.getTime(), As = (s, t) => s.slice(t).concat(s.slice(0, t)), K = (s, t, e) => s && (t && s < t ? v(t) : e && s > e ? v(e) : s), Y = (s) => (t, e = "", i = {}) => {
429
429
  const a = document.createElement(s);
430
- return a.className = e, Object.keys(i).map((r) => a.style[r] = i[r]), typeof t == "string" ? a.innerHTML = t || "" : (t || []).forEach((r) => r && a.appendChild(r)), a;
430
+ return a.className = e, Object.keys(i).map((o) => a.style[o] = i[o]), typeof t == "string" ? a.innerHTML = t || "" : (t || []).forEach((o) => o && a.appendChild(o)), a;
431
431
  };
432
432
  function Ci(s, t, e = {}) {
433
433
  let i, a;
434
434
  e.maxWait;
435
- let r, l, c;
435
+ let o, l, c;
436
436
  const h = window;
437
437
  let u = !1, d = !1;
438
438
  const p = !t && t !== 0 && typeof h.requestAnimationFrame == "function";
439
439
  if (typeof s != "function")
440
440
  throw new TypeError("Expected a function");
441
441
  t = +t || 0;
442
- function m(S) {
442
+ function f(x) {
443
443
  const O = i, tt = a;
444
- return i = a = void 0, r = s.apply(tt, O), r;
444
+ return i = a = void 0, o = s.apply(tt, O), o;
445
445
  }
446
- function f(S, O) {
447
- return p ? (h.cancelAnimationFrame(l), h.requestAnimationFrame(S)) : setTimeout(S, O);
446
+ function m(x, O) {
447
+ return p ? (h.cancelAnimationFrame(l), h.requestAnimationFrame(x)) : setTimeout(x, O);
448
448
  }
449
- function y(S) {
449
+ function S(x) {
450
450
  if (p)
451
- return h.cancelAnimationFrame(S);
452
- clearTimeout(S);
451
+ return h.cancelAnimationFrame(x);
452
+ clearTimeout(x);
453
453
  }
454
- function I(S) {
455
- return l = f(E, t), u ? m() : r;
454
+ function I(x) {
455
+ return l = m(E, t), u ? f() : o;
456
456
  }
457
- function M(S) {
458
- const O = S - c;
457
+ function M(x) {
458
+ const O = x - c;
459
459
  return t - O;
460
460
  }
461
- function w(S) {
462
- const O = S - c;
461
+ function w(x) {
462
+ const O = x - c;
463
463
  return c === void 0 || O >= t || O < 0 || d;
464
464
  }
465
465
  function E() {
466
- const S = Date.now();
467
- if (w(S))
466
+ const x = Date.now();
467
+ if (w(x))
468
468
  return g();
469
- l = f(E, M(S));
469
+ l = m(E, M(x));
470
470
  }
471
- function g(S) {
472
- return l = void 0, i ? m() : (i = a = void 0, r);
471
+ function g(x) {
472
+ return l = void 0, i ? f() : (i = a = void 0, o);
473
473
  }
474
- function H() {
475
- l !== void 0 && y(l), i = c = a = l = void 0;
474
+ function B() {
475
+ l !== void 0 && S(l), i = c = a = l = void 0;
476
476
  }
477
477
  function V() {
478
- return l === void 0 ? r : g();
478
+ return l === void 0 ? o : g();
479
479
  }
480
480
  function R() {
481
481
  return l !== void 0;
482
482
  }
483
- function A(...S) {
483
+ function A(...x) {
484
484
  const O = Date.now(), tt = w(O);
485
- return i = S, a = this, c = O, tt && l === void 0 ? I() : (l === void 0 && (l = f(E, t)), r);
485
+ return i = x, a = this, c = O, tt && l === void 0 ? I() : (l === void 0 && (l = m(E, t)), o);
486
486
  }
487
- return A.cancel = H, A.flush = V, A.pending = R, A;
487
+ return A.cancel = B, A.flush = V, A.pending = R, A;
488
488
  }
489
489
  const Ii = [[]], Ee = 4, Mi = 3, Ti = {
490
490
  [b.Left]: (s) => it(s, -1),
@@ -493,7 +493,7 @@ const Ii = [[]], Ee = 4, Mi = 3, Ti = {
493
493
  [b.Down]: (s) => it(s, 5),
494
494
  [b.PrevView]: (s) => qt(s, -1),
495
495
  [b.NextView]: (s) => qt(s, 1),
496
- [b.FirstInView]: (s) => oe(s),
496
+ [b.FirstInView]: (s) => re(s),
497
497
  [b.LastInView]: (s) => He(s)
498
498
  };
499
499
  class Ei {
@@ -508,32 +508,32 @@ class Ei {
508
508
  cellUID: e,
509
509
  focusedDate: i,
510
510
  isActiveView: a,
511
- max: r,
511
+ max: o,
512
512
  min: l,
513
513
  selectedDate: c,
514
- selectionRange: h = z,
514
+ selectionRange: h = q,
515
515
  viewDate: u
516
516
  } = t;
517
517
  if (!u)
518
518
  return Ii;
519
- const d = Q(0, Ee), p = oe(u), m = He(u), f = U();
520
- return Q(0, Mi).map((y) => {
521
- const I = it(p, y * Ee);
519
+ const d = Q(0, Ee), p = re(u), f = He(u), m = H();
520
+ return Q(0, Mi).map((S) => {
521
+ const I = it(p, S * Ee);
522
522
  return d.map((M) => {
523
- const w = this.normalize(it(I, M), l, r), E = this.isEqual(w, h.start), g = this.isEqual(w, h.end), V = !E && !g && De(w, h), R = a && (Array.isArray(c) ? this.isSelectedFromArray(w, c, l, r) : F(c, l, r) && this.isEqual(w, c));
524
- return As(w, p, m) ? {
523
+ const w = this.normalize(it(I, M), l, o), E = this.isEqual(w, h.start), g = this.isEqual(w, h.end), V = !E && !g && ke(w, h), R = a && (Array.isArray(c) ? this.isSelectedFromArray(w, c, l, o) : F(c, l, o) && this.isEqual(w, c));
524
+ return Bs(w, p, f) ? {
525
525
  formattedValue: this.value(w),
526
526
  id: `${e}${w.getTime()}`,
527
527
  isFocused: this.isEqual(w, i),
528
528
  isSelected: R,
529
529
  isWeekend: !1,
530
- isInRange: F(w, l, r),
530
+ isInRange: F(w, l, o),
531
531
  isRangeStart: E,
532
532
  isRangeMid: V,
533
533
  isRangeEnd: g,
534
- isRangeSplitEnd: V && this.isEqual(w, m),
534
+ isRangeSplitEnd: V && this.isEqual(w, f),
535
535
  isRangeSplitStart: V && this.isEqual(w, p),
536
- isToday: this.isEqual(w, f),
536
+ isToday: this.isEqual(w, m),
537
537
  title: this.cellTitle(w),
538
538
  value: w
539
539
  } : null;
@@ -541,10 +541,10 @@ class Ei {
541
541
  });
542
542
  }
543
543
  isSelectedFromArray(t, e, i, a) {
544
- let r = !1;
544
+ let o = !1;
545
545
  return e.forEach((l) => {
546
- F(t, i, a) && this.isEqual(t, l) && (r = !0);
547
- }), r;
546
+ F(t, i, a) && this.isEqual(t, l) && (o = !0);
547
+ }), o;
548
548
  }
549
549
  isEqual(t, e) {
550
550
  return !t || !e ? !1 : st(t).getFullYear() === st(e).getFullYear();
@@ -556,8 +556,8 @@ class Ei {
556
556
  return e[0].getFullYear() <= i && i <= e[e.length - 1].getFullYear() + 99;
557
557
  }
558
558
  isInRange(t, e, i) {
559
- const a = st(t).getFullYear(), r = !e || st(e).getFullYear() <= a, l = !i || a <= st(i).getFullYear();
560
- return r && l;
559
+ const a = st(t).getFullYear(), o = !e || st(e).getFullYear() <= a, l = !i || a <= st(i).getFullYear();
560
+ return o && l;
561
561
  }
562
562
  isInSameView(t, e) {
563
563
  return se(t, e) === 0;
@@ -573,10 +573,10 @@ class Ei {
573
573
  return st(t).getFullYear().toString();
574
574
  }
575
575
  navigationTitle(t) {
576
- return t ? oe(t).getFullYear().toString() : "";
576
+ return t ? re(t).getFullYear().toString() : "";
577
577
  }
578
578
  title(t) {
579
- return t ? `${oe(t).getFullYear()} - ${He(t).getFullYear()}` : "";
579
+ return t ? `${re(t).getFullYear()} - ${He(t).getFullYear()}` : "";
580
580
  }
581
581
  rowLength(t) {
582
582
  return Ee;
@@ -605,7 +605,7 @@ const Vi = [[]], Ve = 4, Oi = 3, Pi = {
605
605
  [b.PrevView]: (s) => it(s, -1),
606
606
  [b.NextView]: (s) => it(s, 1),
607
607
  [b.FirstInView]: (s) => st(s),
608
- [b.LastInView]: (s) => Ae(s)
608
+ [b.LastInView]: (s) => Be(s)
609
609
  };
610
610
  class Ri {
611
611
  addToDate(t, e) {
@@ -619,32 +619,32 @@ class Ri {
619
619
  cellUID: e,
620
620
  focusedDate: i,
621
621
  isActiveView: a,
622
- max: r,
622
+ max: o,
623
623
  min: l,
624
624
  selectedDate: c,
625
- selectionRange: h = z,
625
+ selectionRange: h = q,
626
626
  viewDate: u
627
627
  } = t;
628
628
  if (!u)
629
629
  return Vi;
630
- const d = Q(0, Ve), p = st(u), m = Ae(u), f = U();
631
- return Q(0, Oi).map((y) => {
632
- const I = nt(p, y * Ve);
630
+ const d = Q(0, Ve), p = st(u), f = Be(u), m = H();
631
+ return Q(0, Oi).map((S) => {
632
+ const I = nt(p, S * Ve);
633
633
  return d.map((M) => {
634
- const w = this.normalize(nt(I, M), l, r), E = this.isEqual(w, h.start), g = this.isEqual(w, h.end), V = !E && !g && De(w, h), R = a && (Array.isArray(c) ? this.isSelectedFromArray(w, c, l, r) : F(c, l, r) && this.isEqual(w, c));
635
- return As(w, p, m) ? {
634
+ const w = this.normalize(nt(I, M), l, o), E = this.isEqual(w, h.start), g = this.isEqual(w, h.end), V = !E && !g && ke(w, h), R = a && (Array.isArray(c) ? this.isSelectedFromArray(w, c, l, o) : F(c, l, o) && this.isEqual(w, c));
635
+ return Bs(w, p, f) ? {
636
636
  formattedValue: this.value(w),
637
637
  id: `${e}${w.getTime()}`,
638
638
  isFocused: this.isEqual(w, i),
639
639
  isSelected: R,
640
640
  isWeekend: !1,
641
- isInRange: F(w, l, r),
641
+ isInRange: F(w, l, o),
642
642
  isRangeStart: E,
643
643
  isRangeMid: V,
644
644
  isRangeEnd: g,
645
- isRangeSplitEnd: V && this.isEqual(w, m),
645
+ isRangeSplitEnd: V && this.isEqual(w, f),
646
646
  isRangeSplitStart: V && this.isEqual(w, p),
647
- isToday: this.isEqual(w, f),
647
+ isToday: this.isEqual(w, m),
648
648
  title: this.cellTitle(w),
649
649
  value: w
650
650
  } : null;
@@ -652,10 +652,10 @@ class Ri {
652
652
  });
653
653
  }
654
654
  isSelectedFromArray(t, e, i, a) {
655
- let r = !1;
655
+ let o = !1;
656
656
  return e.forEach((l) => {
657
- F(t, i, a) && this.isEqual(t, l) && (r = !0);
658
- }), r;
657
+ F(t, i, a) && this.isEqual(t, l) && (o = !0);
658
+ }), o;
659
659
  }
660
660
  isEqual(t, e) {
661
661
  return !t || !e ? !1 : t.getFullYear() === e.getFullYear();
@@ -667,8 +667,8 @@ class Ri {
667
667
  return e[0].getFullYear() <= i && i <= e[e.length - 1].getFullYear() + 9;
668
668
  }
669
669
  isInRange(t, e, i) {
670
- const a = t.getFullYear(), r = !e || e.getFullYear() <= a, l = !i || a <= i.getFullYear();
671
- return r && l;
670
+ const a = t.getFullYear(), o = !e || e.getFullYear() <= a, l = !i || a <= i.getFullYear();
671
+ return o && l;
672
672
  }
673
673
  isRangeStart(t) {
674
674
  return t.getFullYear() % 100 === 0;
@@ -687,7 +687,7 @@ class Ri {
687
687
  return t ? st(t).getFullYear().toString() : "";
688
688
  }
689
689
  title(t) {
690
- return t ? `${st(t).getFullYear()} - ${Ae(t).getFullYear()}` : "";
690
+ return t ? `${st(t).getFullYear()} - ${Be(t).getFullYear()}` : "";
691
691
  }
692
692
  rowLength(t) {
693
693
  return Ve;
@@ -718,7 +718,7 @@ const Ni = [[]], Oe = 7, _i = 6, Fi = 6, Li = 0, Hi = {
718
718
  [b.FirstInView]: (s) => fe(s),
719
719
  [b.LastInView]: (s) => Ot(s)
720
720
  };
721
- class Ai {
721
+ class Bi {
722
722
  constructor(t) {
723
723
  this.intl = t;
724
724
  }
@@ -733,34 +733,34 @@ class Ai {
733
733
  cellUID: e,
734
734
  focusedDate: i,
735
735
  isActiveView: a,
736
- max: r,
736
+ max: o,
737
737
  min: l,
738
738
  selectedDate: c,
739
- selectionRange: h = z,
739
+ selectionRange: h = q,
740
740
  viewDate: u
741
741
  } = t;
742
742
  if (!u)
743
743
  return Ni;
744
- const d = fe(u), p = Ot(u), m = -1, f = si(d, this.intl.firstDay(), m), y = Q(0, Oe), I = U();
744
+ const d = fe(u), p = Ot(u), f = -1, m = si(d, this.intl.firstDay(), f), S = Q(0, Oe), I = H();
745
745
  return Q(0, _i).map((M) => {
746
- const w = Wt(f, M * Oe);
747
- return y.map((E) => {
748
- const g = this.normalize(Wt(w, E), l, r);
746
+ const w = Wt(m, M * Oe);
747
+ return S.map((E) => {
748
+ const g = this.normalize(Wt(w, E), l, o);
749
749
  if (g < d || g > p)
750
750
  return null;
751
- const V = this.isEqual(g, h.start), R = this.isEqual(g, h.end), S = !V && !R && De(g, h), O = a && (Array.isArray(c) ? this.isSelectedFromArray(g, c, l, r) : F(c, l, r) && this.isEqual(g, c));
751
+ const V = this.isEqual(g, h.start), R = this.isEqual(g, h.end), x = !V && !R && ke(g, h), O = a && (Array.isArray(c) ? this.isSelectedFromArray(g, c, l, o) : F(c, l, o) && this.isEqual(g, c));
752
752
  return {
753
753
  formattedValue: this.value(g),
754
754
  id: `${e}${g.getTime()}`,
755
755
  isFocused: this.isEqual(g, i),
756
756
  isSelected: O,
757
- isInRange: F(g, l, r),
757
+ isInRange: F(g, l, o),
758
758
  isWeekend: this.isWeekend(g),
759
759
  isRangeStart: V,
760
- isRangeMid: S,
760
+ isRangeMid: x,
761
761
  isRangeEnd: R,
762
- isRangeSplitStart: S && this.isEqual(g, d),
763
- isRangeSplitEnd: S && this.isEqual(g, p),
762
+ isRangeSplitStart: x && this.isEqual(g, d),
763
+ isRangeSplitEnd: x && this.isEqual(g, p),
764
764
  isToday: this.isEqual(g, I),
765
765
  title: this.cellTitle(g),
766
766
  value: g
@@ -769,20 +769,20 @@ class Ai {
769
769
  });
770
770
  }
771
771
  isEqual(t, e) {
772
- return !t || !e ? !1 : x(t).getTime() === x(e).getTime();
772
+ return !t || !e ? !1 : C(t).getTime() === C(e).getTime();
773
773
  }
774
774
  isSelectedFromArray(t, e, i, a) {
775
- let r = !1;
775
+ let o = !1;
776
776
  return e.forEach((l) => {
777
- F(t, i, a) && this.isEqual(t, l) && (r = !0);
778
- }), r;
777
+ F(t, i, a) && this.isEqual(t, l) && (o = !0);
778
+ }), o;
779
779
  }
780
780
  isInArray(t, e) {
781
781
  return !!e.length && fe(e[0]) <= t && t <= Ot(e[e.length - 1]);
782
782
  }
783
783
  isInRange(t, e, i) {
784
- const a = x(t), r = !e || x(e) <= a, l = !i || a <= x(i);
785
- return r && l;
784
+ const a = C(t), o = !e || C(e) <= a, l = !i || a <= C(i);
785
+ return o && l;
786
786
  }
787
787
  isInSameView(t, e) {
788
788
  return ne(t, e) === 0;
@@ -826,13 +826,13 @@ class Ai {
826
826
  return this.intl.dateFormatNames({ nameType: "abbreviated", type: "months" });
827
827
  }
828
828
  normalize(t, e, i) {
829
- return t < e && this.isEqual(t, e) ? x(e) : t > i && this.isEqual(t, i) ? x(i) : t;
829
+ return t < e && this.isEqual(t, e) ? C(e) : t > i && this.isEqual(t, i) ? C(i) : t;
830
830
  }
831
831
  wideMonthNames() {
832
832
  return this.intl.dateFormatNames({ nameType: "wide", type: "months", standAlone: !0 });
833
833
  }
834
834
  }
835
- const Bi = [[]], Pe = 4, zi = 3, qi = (s) => s > 4 ? -5 : s < 2 ? -2 : -7, Wi = (s) => s < 7 ? 5 : s < 10 ? 7 : 2, Ui = {
835
+ const Ai = [[]], Pe = 4, zi = 3, qi = (s) => s > 4 ? -5 : s < 2 ? -2 : -7, Wi = (s) => s < 7 ? 5 : s < 10 ? 7 : 2, Ui = {
836
836
  [b.Left]: (s) => $(s, -1),
837
837
  [b.Up]: (s) => $(s, qi(s.getMonth())),
838
838
  [b.Right]: (s) => $(s, 1),
@@ -857,34 +857,34 @@ class $i {
857
857
  cellUID: e,
858
858
  focusedDate: i,
859
859
  isActiveView: a,
860
- max: r,
860
+ max: o,
861
861
  min: l,
862
862
  selectedDate: c,
863
- selectionRange: h = z,
863
+ selectionRange: h = q,
864
864
  viewDate: u
865
865
  } = t;
866
866
  if (!u)
867
- return Bi;
868
- const d = this.abbrMonthNames(), p = Ns(u), m = _s(u), f = p.getFullYear(), y = Q(0, Pe), I = U();
867
+ return Ai;
868
+ const d = this.abbrMonthNames(), p = Ns(u), f = _s(u), m = p.getFullYear(), S = Q(0, Pe), I = H();
869
869
  return Q(0, zi).map((M) => {
870
870
  const w = $(p, M * Pe);
871
- return y.map((E) => {
872
- const g = this.normalize($(w, E), l, r);
873
- if (f < g.getFullYear())
871
+ return S.map((E) => {
872
+ const g = this.normalize($(w, E), l, o);
873
+ if (m < g.getFullYear())
874
874
  return null;
875
- const V = this.isEqual(g, h.start), R = this.isEqual(g, h.end), S = !V && !R && De(g, h), O = a && (Array.isArray(c) ? this.isSelectedFromArray(g, c, l, r) : F(c, l, r) && this.isEqual(g, c));
875
+ const V = this.isEqual(g, h.start), R = this.isEqual(g, h.end), x = !V && !R && ke(g, h), O = a && (Array.isArray(c) ? this.isSelectedFromArray(g, c, l, o) : F(c, l, o) && this.isEqual(g, c));
876
876
  return {
877
877
  formattedValue: d[g.getMonth()],
878
878
  id: `${e}${g.getTime()}`,
879
879
  isFocused: this.isEqual(g, i),
880
880
  isSelected: O,
881
- isInRange: F(g, l, r),
881
+ isInRange: F(g, l, o),
882
882
  isWeekend: !1,
883
883
  isRangeStart: V,
884
- isRangeMid: S,
884
+ isRangeMid: x,
885
885
  isRangeEnd: R,
886
- isRangeSplitEnd: S && this.isEqual(g, m),
887
- isRangeSplitStart: S && this.isEqual(g, p),
886
+ isRangeSplitEnd: x && this.isEqual(g, f),
887
+ isRangeSplitStart: x && this.isEqual(g, p),
888
888
  isToday: this.isEqual(g, I),
889
889
  title: this.cellTitle(g),
890
890
  value: g
@@ -893,10 +893,10 @@ class $i {
893
893
  });
894
894
  }
895
895
  isSelectedFromArray(t, e, i, a) {
896
- let r = !1;
896
+ let o = !1;
897
897
  return e.forEach((l) => {
898
- F(t, i, a) && this.isEqual(t, l) && (r = !0);
899
- }), r;
898
+ F(t, i, a) && this.isEqual(t, l) && (o = !0);
899
+ }), o;
900
900
  }
901
901
  isEqual(t, e) {
902
902
  return !t || !e ? !1 : t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth();
@@ -908,8 +908,8 @@ class $i {
908
908
  return e[0].getFullYear() <= i && i <= e[e.length - 1].getFullYear();
909
909
  }
910
910
  isInRange(t, e, i) {
911
- const a = le(t.getFullYear(), t.getMonth(), 1), r = !e || le(e.getFullYear(), e.getMonth(), 1) <= a, l = !i || a <= le(i.getFullYear(), i.getMonth(), 1);
912
- return r && l;
911
+ const a = le(t.getFullYear(), t.getMonth(), 1), o = !e || le(e.getFullYear(), e.getMonth(), 1) <= a, l = !i || a <= le(i.getFullYear(), i.getMonth(), 1);
912
+ return o && l;
913
913
  }
914
914
  isInSameView(t, e) {
915
915
  return ae(t, e) === 0;
@@ -953,17 +953,17 @@ class $i {
953
953
  }
954
954
  }
955
955
  const Yi = {
956
- [D.month]: Ai,
957
- [D.year]: $i,
958
- [D.decade]: Ri,
959
- [D.century]: Ei
956
+ [y.month]: Bi,
957
+ [y.year]: $i,
958
+ [y.decade]: Ri,
959
+ [y.century]: Ei
960
960
  }, Ki = (s, t) => {
961
- const e = D[D[s + t]];
961
+ const e = y[y[s + t]];
962
962
  return e !== void 0 ? e : s;
963
963
  };
964
964
  class zs {
965
965
  constructor(t) {
966
- this.bottom = D.month, this.top = D.century, this.onViewChanged = t;
966
+ this.bottom = y.month, this.top = y.century, this.onViewChanged = t;
967
967
  }
968
968
  configure(t, e) {
969
969
  this.bottom = t, this.top = e;
@@ -1004,7 +1004,7 @@ let ji = class {
1004
1004
  calculateHeights(t) {
1005
1005
  if (!J)
1006
1006
  return;
1007
- const e = Y("div"), i = Y("ul"), a = Y("li"), r = Y("td"), l = Y("th"), c = Y("tr"), h = Y("tbody"), u = Y("thead"), d = Y("table"), p = () => e(
1007
+ const e = Y("div"), i = Y("ul"), a = Y("li"), o = Y("td"), l = Y("th"), c = Y("tr"), h = Y("tbody"), u = Y("thead"), d = Y("table"), p = () => e(
1008
1008
  `
1009
1009
  <span class="k-button k-button-md k-button-rectangle k-button-solid k-button-solid-base k-button-flat k-calendar-title">
1010
1010
  <span className="k-button-text">March 2017</span>
@@ -1013,69 +1013,69 @@ let ji = class {
1013
1013
  <span class="k-calendar-nav k-hstack"><button class="k-calendar-nav-today">TODAY</button></span>
1014
1014
  `,
1015
1015
  "k-calendar-header k-hstack"
1016
- ), m = () => d(
1016
+ ), f = () => d(
1017
1017
  [
1018
1018
  u([
1019
1019
  c([l("MO", "k-calendar-th")], "k-calendar-tr")
1020
1020
  ], "k-calendar-thead")
1021
1021
  ],
1022
1022
  "k-calendar-table k-calendar-weekdays"
1023
- ), f = (k, _) => new Array(k).fill("1").map(_), y = (k, _ = 1) => d([
1023
+ ), m = (D, _) => new Array(D).fill("1").map(_), S = (D, _ = 1) => d([
1024
1024
  h(
1025
1025
  [c(
1026
- [r("1", "k-calendar-td k-alt")]
1026
+ [o("1", "k-calendar-td k-alt")]
1027
1027
  )].concat(
1028
- f(
1029
- k,
1030
- () => c(f(_, (Mt) => r(`<span class="k-link">${Mt}</span>`, "k-calendar-td")), "k-calendar-tr")
1028
+ m(
1029
+ D,
1030
+ () => c(m(_, (Mt) => o(`<span class="k-link">${Mt}</span>`, "k-calendar-td")), "k-calendar-tr")
1031
1031
  )
1032
1032
  ),
1033
1033
  "k-calendar-tbody"
1034
1034
  )
1035
- ], "k-calendar-table"), I = (k) => e(k, "k-content k-scrollable"), M = (k, _, Mt) => e(
1035
+ ], "k-calendar-table"), I = (D) => e(D, "k-content k-scrollable"), M = (D, _, Mt) => e(
1036
1036
  Mt ? [
1037
1037
  p(),
1038
- m(),
1039
- I([k, k])
1038
+ f(),
1039
+ I([D, D])
1040
1040
  ] : [
1041
1041
  p(),
1042
- I([k, k])
1042
+ I([D, D])
1043
1043
  ],
1044
1044
  _,
1045
1045
  { left: "-10000px", position: "absolute" }
1046
1046
  ), w = (() => {
1047
- let k;
1048
- return () => J ? (k || (k = e(
1047
+ let D;
1048
+ return () => J ? (D || (D = e(
1049
1049
  [I([i([a("<span>FEB</span>")])])],
1050
1050
  "k-calendar-navigation",
1051
1051
  { left: "0px", position: "absolute" }
1052
- )), k) : null;
1053
- })(), E = ({ cells: k, rows: _ }, Mt, ti) => {
1052
+ )), D) : null;
1053
+ })(), E = ({ cells: D, rows: _ }, Mt, ti) => {
1054
1054
  let Ie;
1055
- return () => J ? (Ie || (Ie = M(y(_, k), Mt, ti)), Ie) : null;
1056
- }, g = (k) => k.querySelector(".k-scrollable"), H = (k) => {
1057
- const _ = g(k);
1058
- return _.className = `${_.className} k-scrollable-horizontal`, k;
1059
- }, V = E({ cells: 7, rows: 6 }, "k-calendar-view k-calendar-monthview k-vstack", !0), R = E({ cells: 5, rows: 3 }, "k-calendar-view k-calendar-yearview", !1), A = E({ cells: 5, rows: 2 }, "k-calendar-view k-calendar-decadeview", !1), S = () => H(V()), O = () => H(R()), tt = () => H(A()), j = (k) => parseFloat(window.getComputedStyle(k).height) || k.offsetHeight, gt = (k) => {
1060
- const _ = window.getComputedStyle(k);
1061
- return parseFloat(_.width) + parseFloat(_.paddingLeft) + parseFloat(_.paddingRight) || k.offsetWidth;
1062
- }, It = (k) => k.querySelector("tbody");
1063
- this.didCalculate = !0, t && (this.hostContainer = t), this.batch(V(), (k) => {
1064
- const _ = It(k);
1065
- this.calendarHeight = j(k), this.monthViewHeight = j(_), this.headerHeight = j(_.children[0]), this.scrollableContentHeight = j(g(k));
1066
- }), this.batch(S(), (k) => {
1067
- const _ = It(k);
1068
- this.calendarWidth = gt(k), this.monthViewWidth = gt(_), this.scrollableContentWidth = gt(g(k));
1069
- }), this.batch(R(), (k) => {
1070
- this.yearViewHeight = j(It(k)), this.scrollableYearContentHeight = j(g(k));
1071
- }), this.batch(O(), (k) => {
1072
- this.yearViewWidth = gt(It(k));
1073
- }), this.batch(A(), (k) => {
1074
- this.decadeViewHeight = j(It(k)), this.centuryViewHeight = this.decadeViewHeight;
1075
- }), this.batch(tt(), (k) => {
1076
- this.decadeViewWidth = gt(It(k)), this.centuryViewWidth = this.decadeViewWidth;
1077
- }), this.batch(w(), (k) => {
1078
- this.navigationItemHeight = j(k.querySelector("li"));
1055
+ return () => J ? (Ie || (Ie = M(S(_, D), Mt, ti)), Ie) : null;
1056
+ }, g = (D) => D.querySelector(".k-scrollable"), B = (D) => {
1057
+ const _ = g(D);
1058
+ return _.className = `${_.className} k-scrollable-horizontal`, D;
1059
+ }, V = E({ cells: 7, rows: 6 }, "k-calendar-view k-calendar-monthview k-vstack", !0), R = E({ cells: 5, rows: 3 }, "k-calendar-view k-calendar-yearview", !1), A = E({ cells: 5, rows: 2 }, "k-calendar-view k-calendar-decadeview", !1), x = () => B(V()), O = () => B(R()), tt = () => B(A()), j = (D) => parseFloat(window.getComputedStyle(D).height) || D.offsetHeight, gt = (D) => {
1060
+ const _ = window.getComputedStyle(D);
1061
+ return parseFloat(_.width) + parseFloat(_.paddingLeft) + parseFloat(_.paddingRight) || D.offsetWidth;
1062
+ }, It = (D) => D.querySelector("tbody");
1063
+ this.didCalculate = !0, t && (this.hostContainer = t), this.batch(V(), (D) => {
1064
+ const _ = It(D);
1065
+ this.calendarHeight = j(D), this.monthViewHeight = j(_), this.headerHeight = j(_.children[0]), this.scrollableContentHeight = j(g(D));
1066
+ }), this.batch(x(), (D) => {
1067
+ const _ = It(D);
1068
+ this.calendarWidth = gt(D), this.monthViewWidth = gt(_), this.scrollableContentWidth = gt(g(D));
1069
+ }), this.batch(R(), (D) => {
1070
+ this.yearViewHeight = j(It(D)), this.scrollableYearContentHeight = j(g(D));
1071
+ }), this.batch(O(), (D) => {
1072
+ this.yearViewWidth = gt(It(D));
1073
+ }), this.batch(A(), (D) => {
1074
+ this.decadeViewHeight = j(It(D)), this.centuryViewHeight = this.decadeViewHeight;
1075
+ }), this.batch(tt(), (D) => {
1076
+ this.decadeViewWidth = gt(It(D)), this.centuryViewWidth = this.decadeViewWidth;
1077
+ }), this.batch(w(), (D) => {
1078
+ this.navigationItemHeight = j(D.querySelector("li"));
1079
1079
  });
1080
1080
  }
1081
1081
  viewHeight(t) {
@@ -1087,13 +1087,13 @@ let ji = class {
1087
1087
  viewDimension(t, e) {
1088
1088
  const i = e === "height" ? "ViewHeight" : "ViewWidth";
1089
1089
  switch (t) {
1090
- case D.month:
1090
+ case y.month:
1091
1091
  return this[`month${i}`];
1092
- case D.year:
1092
+ case y.year:
1093
1093
  return this[`year${i}`];
1094
- case D.decade:
1094
+ case y.decade:
1095
1095
  return this[`decade${i}`];
1096
- case D.century:
1096
+ case y.century:
1097
1097
  return this[`century${i}`];
1098
1098
  default:
1099
1099
  return 1;
@@ -1124,8 +1124,8 @@ class qs {
1124
1124
  const e = `${t.ctrlKey || t.metaKey ? "meta+" : ""}${t.keyCode}`;
1125
1125
  return Zi[e];
1126
1126
  }
1127
- move(t, e, i, a, r) {
1128
- return a ? e === b.UpperView && this.bus.canMoveUp(i) ? (this.bus.moveUp(i, r), t) : e === b.LowerView && this.bus.canMoveDown(i) ? (this.bus.moveDown(i, r), t) : a.move(t, e) : t;
1127
+ move(t, e, i, a, o) {
1128
+ return a ? e === b.UpperView && this.bus.canMoveUp(i) ? (this.bus.moveUp(i, o), t) : e === b.LowerView && this.bus.canMoveDown(i) ? (this.bus.moveDown(i, o), t) : a.move(t, e) : t;
1129
1129
  }
1130
1130
  }
1131
1131
  const Gi = (s) => (t) => Math.floor(t / s), Xi = (s) => (t) => t * s;
@@ -1172,28 +1172,28 @@ class Qi {
1172
1172
  this.intl = t;
1173
1173
  }
1174
1174
  getWeekNames(t = !1) {
1175
- const e = Bs(
1175
+ const e = As(
1176
1176
  this.intl.dateFormatNames({ nameType: "short", type: "days" }),
1177
1177
  this.intl.firstDay()
1178
1178
  );
1179
1179
  return t ? [""].concat(e) : e;
1180
1180
  }
1181
1181
  }
1182
- const bs = (s) => /* @__PURE__ */ o.createElement("td", { key: s, className: "k-calendar-td" }, " "), Ws = class extends o.Component {
1182
+ const bs = (s) => /* @__PURE__ */ r.createElement("td", { key: s, className: "k-calendar-td" }, " "), Ws = class extends r.Component {
1183
1183
  constructor() {
1184
1184
  super(...arguments), this.intl = null, this.weekService = null, this.buildWeekNumber = (s, t) => {
1185
1185
  if (!this.firstDate(s))
1186
1186
  return bs(`week-cell-${t}`);
1187
- const i = this.firstDate(s), a = this.getWeekNumber(i), r = `kendo-react-calendar-week-cell-${a}`, l = {
1187
+ const i = this.firstDate(s), a = this.getWeekNumber(i), o = `kendo-react-calendar-week-cell-${a}`, l = {
1188
1188
  className: "k-alt",
1189
1189
  value: a,
1190
1190
  firstDate: i
1191
1191
  };
1192
- return this.props.weekCell ? /* @__PURE__ */ o.createElement(this.props.weekCell, { ...l, key: r }, a) : /* @__PURE__ */ o.createElement(xi, { ...l, key: r }, a);
1192
+ return this.props.weekCell ? /* @__PURE__ */ r.createElement(this.props.weekCell, { ...l, key: o }, a) : /* @__PURE__ */ r.createElement(xi, { ...l, key: o }, a);
1193
1193
  }, this.buildRow = (s) => s.map((t, e) => {
1194
1194
  if (!t)
1195
1195
  return bs(e);
1196
- const i = { "aria-selected": t.isSelected }, a = `kendo-react-calendar-cell-${t.value.getTime()}`, r = {
1196
+ const i = { "aria-selected": t.isSelected }, a = `kendo-react-calendar-cell-${t.value.getTime()}`, o = {
1197
1197
  ...i,
1198
1198
  ...t,
1199
1199
  isDisabled: !t.isInRange,
@@ -1202,7 +1202,7 @@ const bs = (s) => /* @__PURE__ */ o.createElement("td", { key: s, className: "k-
1202
1202
  onMouseEnter: this.handleMouseEnter,
1203
1203
  onMouseLeave: this.handleMouseLeave
1204
1204
  };
1205
- return this.props.cell ? /* @__PURE__ */ o.createElement(this.props.cell, { ...r, key: a }, t.formattedValue) : /* @__PURE__ */ o.createElement(Si, { ...r, key: a }, t.formattedValue);
1205
+ return this.props.cell ? /* @__PURE__ */ r.createElement(this.props.cell, { ...o, key: a }, t.formattedValue) : /* @__PURE__ */ r.createElement(Si, { ...o, key: a }, t.formattedValue);
1206
1206
  }), this.firstDate = (s) => {
1207
1207
  const t = this.firstWeekDateContext(s);
1208
1208
  return t ? t.value : null;
@@ -1242,17 +1242,17 @@ const bs = (s) => /* @__PURE__ */ o.createElement("td", { key: s, className: "k-
1242
1242
  return this.props.direction === "horizontal";
1243
1243
  }
1244
1244
  get isMonthView() {
1245
- return this.props.activeView === D.month;
1245
+ return this.props.activeView === y.month;
1246
1246
  }
1247
1247
  get weekNumber() {
1248
- return !!(this.props.showWeekNumbers && this.props.activeView === D.month);
1248
+ return !!(this.props.showWeekNumbers && this.props.activeView === y.month);
1249
1249
  }
1250
1250
  get selectedDate() {
1251
1251
  return this.props.selectedDate !== void 0 ? this.props.selectedDate : Ws.defaultProps.selectedDate;
1252
1252
  }
1253
1253
  render() {
1254
1254
  this.intl = ct(this), this.weekService = new Qi(this.intl);
1255
- const s = this.weekService.getWeekNames(this.weekNumber), t = this.props.service.rowLength(this.weekNumber), e = this.props.service.title(this.props.viewDate), i = U(), a = W(this.props.viewDate, i), r = this.props.service.data({
1255
+ const s = this.weekService.getWeekNames(this.weekNumber), t = this.props.service.rowLength(this.weekNumber), e = this.props.service.title(this.props.viewDate), i = H(), a = U(this.props.viewDate, i), o = this.props.service.data({
1256
1256
  cellUID: this.props.cellUID,
1257
1257
  min: this.min,
1258
1258
  max: this.max,
@@ -1262,20 +1262,20 @@ const bs = (s) => /* @__PURE__ */ o.createElement("td", { key: s, className: "k-
1262
1262
  selectionRange: this.props.selectionRange,
1263
1263
  viewDate: a
1264
1264
  });
1265
- return /* @__PURE__ */ o.createElement(o.Fragment, null, this.isMonthView && this.isHorizontal && /* @__PURE__ */ o.createElement(
1265
+ return /* @__PURE__ */ r.createElement(r.Fragment, null, this.isMonthView && this.isHorizontal && /* @__PURE__ */ r.createElement(
1266
1266
  "thead",
1267
1267
  {
1268
1268
  role: "rowgroup",
1269
1269
  className: "k-calendar-thead"
1270
1270
  },
1271
- /* @__PURE__ */ o.createElement("tr", { role: "row", className: "k-calendar-tr" }, s.map((l, c) => /* @__PURE__ */ o.createElement("th", { key: c, className: "k-calendar-th" }, l)))
1272
- ), /* @__PURE__ */ o.createElement(
1271
+ /* @__PURE__ */ r.createElement("tr", { role: "row", className: "k-calendar-tr" }, s.map((l, c) => /* @__PURE__ */ r.createElement("th", { key: c, className: "k-calendar-th" }, l)))
1272
+ ), /* @__PURE__ */ r.createElement(
1273
1273
  "tbody",
1274
1274
  {
1275
1275
  role: "rowgroup",
1276
1276
  className: "k-calendar-tbody"
1277
1277
  },
1278
- !this.isHorizontal && /* @__PURE__ */ o.createElement("tr", { role: "presentation", className: "k-calendar-tr" }, /* @__PURE__ */ o.createElement(
1278
+ !this.isHorizontal && /* @__PURE__ */ r.createElement("tr", { role: "presentation", className: "k-calendar-tr" }, /* @__PURE__ */ r.createElement(
1279
1279
  "th",
1280
1280
  {
1281
1281
  scope: "col",
@@ -1284,7 +1284,7 @@ const bs = (s) => /* @__PURE__ */ o.createElement("td", { key: s, className: "k-
1284
1284
  },
1285
1285
  e
1286
1286
  )),
1287
- r.map((l, c) => /* @__PURE__ */ o.createElement("tr", { role: "row", className: "k-calendar-tr", key: c }, this.weekNumber && this.buildWeekNumber(l, c), this.buildRow(l)))
1287
+ o.map((l, c) => /* @__PURE__ */ r.createElement("tr", { role: "row", className: "k-calendar-tr", key: c }, this.weekNumber && this.buildWeekNumber(l, c), this.buildRow(l)))
1288
1288
  ));
1289
1289
  }
1290
1290
  getWeekNumber(s) {
@@ -1309,21 +1309,21 @@ jt.propTypes = {
1309
1309
  };
1310
1310
  jt.defaultProps = {
1311
1311
  direction: "vertical",
1312
- selectedDate: U(),
1312
+ selectedDate: H(),
1313
1313
  showWeekNumbers: !1
1314
1314
  };
1315
1315
  ft(jt);
1316
- class tn extends o.PureComponent {
1316
+ class tn extends r.PureComponent {
1317
1317
  /**
1318
1318
  * @return
1319
1319
  * Returns a `<span />` element with the [`value`]({% slug api_dateinputs_calendarheadertitleprops %}#toc-value) of the title as a child.
1320
1320
  */
1321
1321
  render() {
1322
1322
  const { view: t, ...e } = this.props;
1323
- return /* @__PURE__ */ o.createElement(N, { type: "button", fillMode: "flat", ...e }, this.props.children);
1323
+ return /* @__PURE__ */ r.createElement(N, { type: "button", fillMode: "flat", ...e }, this.props.children);
1324
1324
  }
1325
1325
  }
1326
- const ce = class extends o.Component {
1326
+ const ce = class extends r.Component {
1327
1327
  constructor() {
1328
1328
  super(...arguments), this.getTitle = () => {
1329
1329
  if (!this.props.currentDate)
@@ -1356,8 +1356,8 @@ const ce = class extends o.Component {
1356
1356
  className: t,
1357
1357
  onClick: this.handleTitleClick,
1358
1358
  disabled: !this.canMoveUp
1359
- }, i = this.props.headerTitle ? /* @__PURE__ */ o.createElement(this.props.headerTitle, { ...e }, s) : /* @__PURE__ */ o.createElement(tn, { ...e }, s);
1360
- return /* @__PURE__ */ o.createElement(
1359
+ }, i = this.props.headerTitle ? /* @__PURE__ */ r.createElement(this.props.headerTitle, { ...e }, s) : /* @__PURE__ */ r.createElement(tn, { ...e }, s);
1360
+ return /* @__PURE__ */ r.createElement(
1361
1361
  "div",
1362
1362
  {
1363
1363
  className: P("k-calendar-header", {
@@ -1366,8 +1366,8 @@ const ce = class extends o.Component {
1366
1366
  })
1367
1367
  },
1368
1368
  i,
1369
- /* @__PURE__ */ o.createElement("span", { className: "k-spacer" }),
1370
- /* @__PURE__ */ o.createElement("span", { className: "k-calendar-nav k-hstack" }, this.props.commands)
1369
+ /* @__PURE__ */ r.createElement("span", { className: "k-spacer" }),
1370
+ /* @__PURE__ */ r.createElement("span", { className: "k-calendar-nav k-hstack" }, this.props.commands)
1371
1371
  );
1372
1372
  }
1373
1373
  };
@@ -1385,7 +1385,7 @@ Zt.defaultProps = {
1385
1385
  max: dt
1386
1386
  };
1387
1387
  at(Zt);
1388
- const Be = "multiviewcalendar.prevView", ze = "multiviewcalendar.nextView", Ft = "dateinput.increment", Lt = "dateinput.decrement", qe = "calendar.today", We = "datepicker.toggleCalendar", Ht = "daterangepicker.swapStartEnd", Ue = "daterangepicker.start", $e = "daterangepicker.end", Ye = "daterangepicker.separator", At = "datetimepicker.toggleDateTimeSelector", Ke = "timepicker.now", je = "timepicker.selectNow", ve = "timepicker.cancel", Ut = "timepicker.set", Ze = "timepicker.toggleTimeSelector", ue = "timepicker.toggleClock", Ge = "datetimepicker.date", Xe = "datetimepicker.time", $t = "datetimepicker.cancel", Yt = "datetimepicker.set", Je = "daterangepicker.cancel", Qe = "daterangepicker.set", T = {
1388
+ const Ae = "multiviewcalendar.prevView", ze = "multiviewcalendar.nextView", Ft = "dateinput.increment", Lt = "dateinput.decrement", qe = "calendar.today", We = "datepicker.toggleCalendar", Ht = "daterangepicker.swapStartEnd", Ue = "daterangepicker.start", $e = "daterangepicker.end", Ye = "daterangepicker.separator", Bt = "datetimepicker.toggleDateTimeSelector", Ke = "timepicker.now", je = "timepicker.selectNow", ve = "timepicker.cancel", Ut = "timepicker.set", Ze = "timepicker.toggleTimeSelector", ue = "timepicker.toggleClock", Ge = "datetimepicker.date", Xe = "datetimepicker.time", $t = "datetimepicker.cancel", Yt = "datetimepicker.set", Je = "daterangepicker.cancel", Qe = "daterangepicker.set", T = {
1389
1389
  [qe]: "TODAY",
1390
1390
  [Ke]: "NOW",
1391
1391
  [Ut]: "Set",
@@ -1405,18 +1405,18 @@ const Be = "multiviewcalendar.prevView", ze = "multiviewcalendar.nextView", Ft =
1405
1405
  [Ft]: "Increase value",
1406
1406
  [Lt]: "Decrease value",
1407
1407
  [We]: "Toggle calendar",
1408
- [Be]: "Navigate to previous view",
1408
+ [Ae]: "Navigate to previous view",
1409
1409
  [ze]: "Navigate to next view",
1410
1410
  [Ht]: "Swap start and end values",
1411
- [At]: "Toggle date-time selector"
1412
- }, ts = class extends o.Component {
1411
+ [Bt]: "Toggle date-time selector"
1412
+ }, ts = class extends r.Component {
1413
1413
  constructor() {
1414
1414
  super(...arguments), this.localization = null, this.handleClick = (s) => {
1415
1415
  if (this.todayIsInRange && this.props.onClick) {
1416
1416
  const t = {
1417
1417
  syntheticEvent: s,
1418
1418
  nativeEvent: s.nativeEvent,
1419
- value: K(U(), this.min, this.max),
1419
+ value: K(H(), this.min, this.max),
1420
1420
  target: this,
1421
1421
  isTodayClick: !0
1422
1422
  };
@@ -1431,17 +1431,17 @@ const Be = "multiviewcalendar.prevView", ze = "multiviewcalendar.nextView", Ft =
1431
1431
  return this.props.max !== void 0 ? this.props.max : ts.defaultProps.max;
1432
1432
  }
1433
1433
  get todayIsInRange() {
1434
- return F(U(), x(this.min), x(this.max));
1434
+ return F(H(), C(this.min), C(this.max));
1435
1435
  }
1436
1436
  render() {
1437
- this.localization = q(this);
1437
+ this.localization = W(this);
1438
1438
  const s = this.localization.toLanguageString(qe, T[qe]), t = P(
1439
1439
  "k-calendar-nav-today",
1440
1440
  {
1441
1441
  "k-disabled": this.props.disabled
1442
1442
  }
1443
1443
  );
1444
- return /* @__PURE__ */ o.createElement(
1444
+ return /* @__PURE__ */ r.createElement(
1445
1445
  N,
1446
1446
  {
1447
1447
  className: t,
@@ -1465,7 +1465,7 @@ Gt.defaultProps = {
1465
1465
  max: dt
1466
1466
  };
1467
1467
  at(Gt);
1468
- const en = 5, Us = class extends o.Component {
1468
+ const en = 5, Us = class extends r.Component {
1469
1469
  constructor(s) {
1470
1470
  super(s), this.virtualization = null, this.calendarView = null, this.table = null, this.intl = null, this.bottomOffset = 0, this.viewOffset = 0, this.viewHeight = 0, this._element = null, this.isActive = !1, this.animateToIndex = !0, this.shouldScroll = !1, this.focusActiveDate = () => {
1471
1471
  if (!this._element)
@@ -1483,7 +1483,7 @@ const en = 5, Us = class extends o.Component {
1483
1483
  const e = K(this.props.focusedDate, this.props.min, this.props.max), i = this.props.service.skip(e, this.props.min);
1484
1484
  this.virtualization.scrollToIndex(i);
1485
1485
  }
1486
- }, this.buildMonthView = (t, e) => /* @__PURE__ */ o.createElement(
1486
+ }, this.buildMonthView = (t, e) => /* @__PURE__ */ r.createElement(
1487
1487
  "table",
1488
1488
  {
1489
1489
  key: "calendar-view-list-weekdays",
@@ -1491,11 +1491,11 @@ const en = 5, Us = class extends o.Component {
1491
1491
  role: "grid",
1492
1492
  tabIndex: this.props.tabIndex
1493
1493
  },
1494
- /* @__PURE__ */ o.createElement("colgroup", null, t.map((i, a) => /* @__PURE__ */ o.createElement("col", { key: a }))),
1495
- /* @__PURE__ */ o.createElement("thead", { className: "k-calendar-thead" }, /* @__PURE__ */ o.createElement("tr", { className: "k-calendar-tr" }, e.map((i, a) => /* @__PURE__ */ o.createElement("th", { key: a, className: "k-calendar-th" }, i))))
1494
+ /* @__PURE__ */ r.createElement("colgroup", null, t.map((i, a) => /* @__PURE__ */ r.createElement("col", { key: a }))),
1495
+ /* @__PURE__ */ r.createElement("thead", { className: "k-calendar-thead" }, /* @__PURE__ */ r.createElement("tr", { className: "k-calendar-tr" }, e.map((i, a) => /* @__PURE__ */ r.createElement("th", { key: a, className: "k-calendar-th" }, i))))
1496
1496
  ), this.buildDates = (t, e) => {
1497
1497
  const i = this.props.cellUID;
1498
- return /* @__PURE__ */ o.createElement(
1498
+ return /* @__PURE__ */ r.createElement(
1499
1499
  "table",
1500
1500
  {
1501
1501
  className: "k-calendar-table",
@@ -1504,12 +1504,12 @@ const en = 5, Us = class extends o.Component {
1504
1504
  tabIndex: this.props.tabIndex,
1505
1505
  "aria-activedescendant": i + this.props.focusedDate.getTime()
1506
1506
  },
1507
- /* @__PURE__ */ o.createElement("colgroup", null, t.map((a, r) => /* @__PURE__ */ o.createElement("col", { key: r }))),
1508
- e.map((a) => /* @__PURE__ */ o.createElement(
1507
+ /* @__PURE__ */ r.createElement("colgroup", null, t.map((a, o) => /* @__PURE__ */ r.createElement("col", { key: o }))),
1508
+ e.map((a) => /* @__PURE__ */ r.createElement(
1509
1509
  jt,
1510
1510
  {
1511
- ref: (r) => {
1512
- this.calendarView || (this.calendarView = r);
1511
+ ref: (o) => {
1512
+ this.calendarView || (this.calendarView = o);
1513
1513
  },
1514
1514
  key: a.getTime(),
1515
1515
  activeView: this.props.activeView,
@@ -1531,13 +1531,13 @@ const en = 5, Us = class extends o.Component {
1531
1531
  }, this.calculateHeights = () => {
1532
1532
  if (!this.props.dom)
1533
1533
  return;
1534
- const t = this.props.activeView === D.month ? this.props.dom.scrollableContentHeight : this.props.dom.scrollableYearContentHeight;
1534
+ const t = this.props.activeView === y.month ? this.props.dom.scrollableContentHeight : this.props.dom.scrollableYearContentHeight;
1535
1535
  this.bottomOffset = t - this.props.dom.viewHeight(this.props.activeView), this.viewOffset = -1 * this.props.dom.headerHeight, this.viewHeight = this.props.dom.viewHeight(this.props.activeView) || 1;
1536
1536
  }, this.getTake = (t, e) => Math.min(e - t, this.take), this.handleScrollAction = ({ index: t, scrollAction: e, pageAction: i }) => {
1537
1537
  const a = i ? i.skip : this.state.skip;
1538
1538
  if ((this.state.index !== t || this.state.skip !== a) && this.setState({ index: t, skip: a }), this.table && e) {
1539
- const r = `translateY(${e.offset}px)`;
1540
- this.table.style.transform = r;
1539
+ const o = `translateY(${e.offset}px)`;
1540
+ this.table.style.transform = o;
1541
1541
  }
1542
1542
  }, this.handleTodayClick = (t) => {
1543
1543
  this.shouldScroll = !0, this.handleDateChange.call(void 0, t, !0);
@@ -1563,14 +1563,14 @@ const en = 5, Us = class extends o.Component {
1563
1563
  }
1564
1564
  get weekNames() {
1565
1565
  this.intl = ct(this);
1566
- const s = Bs(
1566
+ const s = As(
1567
1567
  this.intl.dateFormatNames({ nameType: "short", type: "days" }),
1568
1568
  this.intl.firstDay()
1569
1569
  );
1570
1570
  return this.weekNumber ? [""].concat(s) : s;
1571
1571
  }
1572
1572
  get weekNumber() {
1573
- return !!(this.props.showWeekNumbers && this.props.activeView === D.month);
1573
+ return !!(this.props.showWeekNumbers && this.props.activeView === y.month);
1574
1574
  }
1575
1575
  get take() {
1576
1576
  return this.props.take !== void 0 ? this.props.take : Us.defaultProps.take;
@@ -1579,24 +1579,24 @@ const en = 5, Us = class extends o.Component {
1579
1579
  return !!(this.props.smoothScroll && this.animateToIndex);
1580
1580
  }
1581
1581
  get todayIsInRange() {
1582
- return F(U(), x(this.props.min), x(this.props.max));
1582
+ return F(H(), C(this.props.min), C(this.props.max));
1583
1583
  }
1584
1584
  componentDidUpdate(s, t) {
1585
1585
  this.shouldScroll = !1, this.indexToScroll !== void 0 && this.virtualization && this.virtualization[this.animate ? "animateToIndex" : "scrollToIndex"](this.indexToScroll), this.isActive && this.focusActiveDate(), this.lastView = this.props.activeView, this.indexToScroll = void 0;
1586
1586
  }
1587
1587
  render() {
1588
1588
  this.calculateHeights();
1589
- const s = this.lastView !== this.props.activeView, t = K(this.props.focusedDate, this.props.min, this.props.max), e = s ? this.props.service.skip(t, this.props.min) : this.state.skip, i = this.props.service.total(this.props.min, this.props.max), a = this.getTake(e, i), r = this.props.service.addToDate(this.props.min, e), l = this.props.service.addToDate(this.props.min, this.state.index), c = new Array(this.props.service.rowLength(this.weekNumber)).fill(""), h = this.props.activeView !== this.lastView;
1589
+ const s = this.lastView !== this.props.activeView, t = K(this.props.focusedDate, this.props.min, this.props.max), e = s ? this.props.service.skip(t, this.props.min) : this.state.skip, i = this.props.service.total(this.props.min, this.props.max), a = this.getTake(e, i), o = this.props.service.addToDate(this.props.min, e), l = this.props.service.addToDate(this.props.min, this.state.index), c = new Array(this.props.service.rowLength(this.weekNumber)).fill(""), h = this.props.activeView !== this.lastView;
1590
1590
  this.animateToIndex = !h, (h || !wt(this.lastFocus, t) || this.shouldScroll || !this.props.shouldScroll || this.props.shouldScroll()) && (this.indexToScroll = this.props.service.skip(t, this.props.min)), this.lastFocus = t;
1591
1591
  const u = P(
1592
1592
  "k-calendar-view k-vstack",
1593
1593
  {
1594
- "k-calendar-monthview": this.props.activeView === D.month,
1595
- "k-calendar-yearview": this.props.activeView === D.year,
1596
- "k-calendar-decadeview": this.props.activeView === D.decade,
1597
- "k-calendar-centuryview": this.props.activeView === D.century
1594
+ "k-calendar-monthview": this.props.activeView === y.month,
1595
+ "k-calendar-yearview": this.props.activeView === y.year,
1596
+ "k-calendar-decadeview": this.props.activeView === y.decade,
1597
+ "k-calendar-centuryview": this.props.activeView === y.century
1598
1598
  }
1599
- ), d = this.buildDates(c, this.props.service.datesList(r, a)), p = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
1599
+ ), d = this.buildDates(c, this.props.service.datesList(o, a)), p = /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
1600
1600
  Zt,
1601
1601
  {
1602
1602
  key: "calendar-view-list-header",
@@ -1607,7 +1607,7 @@ const en = 5, Us = class extends o.Component {
1607
1607
  bus: this.props.bus,
1608
1608
  service: this.props.service,
1609
1609
  headerTitle: this.props.headerTitle,
1610
- commands: /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
1610
+ commands: /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
1611
1611
  Gt,
1612
1612
  {
1613
1613
  min: this.props.min,
@@ -1618,7 +1618,7 @@ const en = 5, Us = class extends o.Component {
1618
1618
  }
1619
1619
  ))
1620
1620
  }
1621
- ), this.props.activeView === D.month && this.buildMonthView(c, this.weekNames), /* @__PURE__ */ o.createElement(
1621
+ ), this.props.activeView === y.month && this.buildMonthView(c, this.weekNames), /* @__PURE__ */ r.createElement(
1622
1622
  Kt,
1623
1623
  {
1624
1624
  key: "calendar-view-list-content",
@@ -1637,11 +1637,11 @@ const en = 5, Us = class extends o.Component {
1637
1637
  tabIndex: this.props.tabIndex
1638
1638
  }
1639
1639
  ));
1640
- return /* @__PURE__ */ o.createElement(
1640
+ return /* @__PURE__ */ r.createElement(
1641
1641
  "div",
1642
1642
  {
1643
- ref: (m) => {
1644
- this._element = m;
1643
+ ref: (f) => {
1644
+ this._element = f;
1645
1645
  },
1646
1646
  className: u
1647
1647
  },
@@ -1672,7 +1672,7 @@ ye.defaultProps = {
1672
1672
  smoothScroll: !0
1673
1673
  };
1674
1674
  ft(ye);
1675
- class sn extends o.Component {
1675
+ class sn extends r.Component {
1676
1676
  constructor() {
1677
1677
  super(...arguments), this.handleClick = (t) => {
1678
1678
  const { onClick: e, value: i } = this.props;
@@ -1685,43 +1685,43 @@ class sn extends o.Component {
1685
1685
  */
1686
1686
  render() {
1687
1687
  const { isRangeStart: t, value: e, text: i, ...a } = this.props;
1688
- return /* @__PURE__ */ o.createElement("li", { ...a, onClick: this.handleClick }, /* @__PURE__ */ o.createElement("span", { className: P({ "k-calendar-navigation-marker": t }) }, this.props.children));
1688
+ return /* @__PURE__ */ r.createElement("li", { ...a, onClick: this.handleClick }, /* @__PURE__ */ r.createElement("span", { className: P({ "k-calendar-navigation-marker": t }) }, this.props.children));
1689
1689
  }
1690
1690
  }
1691
- const nn = 30, $s = class extends o.Component {
1691
+ const nn = 30, $s = class extends r.Component {
1692
1692
  constructor(s) {
1693
1693
  super(s), this.virtualization = null, this.list = null, this.itemHeight = 0, this.topOffset = 0, this.maxViewHeight = 0, this.bottomOffset = 0, this.handleVirtualizationMount = (i) => {
1694
1694
  if (this.virtualization = i, this.virtualization && this.list) {
1695
1695
  this.list.style.transform = `translateY(${this.topOffset}px)`;
1696
- const a = K(this.props.focusedDate, this.props.min, this.props.max), r = this.props.service.skip(a, this.props.min);
1697
- this.virtualization.scrollToIndex(r);
1696
+ const a = K(this.props.focusedDate, this.props.min, this.props.max), o = this.props.service.skip(a, this.props.min);
1697
+ this.virtualization.scrollToIndex(o);
1698
1698
  }
1699
1699
  }, this.buildNavigationItem = (i) => {
1700
- const a = this.props.service.navigationTitle(i), r = this.props.service.isRangeStart(i), l = `kendo-react-calendar-nav-item-${i.getTime()}`, c = {
1700
+ const a = this.props.service.navigationTitle(i), o = this.props.service.isRangeStart(i), l = `kendo-react-calendar-nav-item-${i.getTime()}`, c = {
1701
1701
  text: a,
1702
1702
  value: i,
1703
- isRangeStart: r,
1703
+ isRangeStart: o,
1704
1704
  view: this.props.activeView,
1705
1705
  onClick: this.handleDateChange
1706
1706
  };
1707
- return this.props.navigationItem ? /* @__PURE__ */ o.createElement(this.props.navigationItem, { ...c, key: l }, a) : /* @__PURE__ */ o.createElement(sn, { ...c, key: l }, a);
1707
+ return this.props.navigationItem ? /* @__PURE__ */ r.createElement(this.props.navigationItem, { ...c, key: l }, a) : /* @__PURE__ */ r.createElement(sn, { ...c, key: l }, a);
1708
1708
  }, this.calculateHeights = () => {
1709
1709
  const i = this.props.dom.calendarHeight;
1710
1710
  this.itemHeight = this.props.dom.navigationItemHeight || 1, this.maxViewHeight = this.props.dom.monthViewHeight, this.topOffset = (i - this.itemHeight) / 2, this.bottomOffset = i - this.itemHeight;
1711
1711
  }, this.handleDateChange = (i, a) => {
1712
- const { onChange: r } = this.props;
1713
- if (r && a) {
1712
+ const { onChange: o } = this.props;
1713
+ if (o && a) {
1714
1714
  const l = {
1715
1715
  value: v(i),
1716
1716
  target: this,
1717
1717
  nativeEvent: a && a.nativeEvent,
1718
1718
  syntheticEvent: a
1719
1719
  };
1720
- r.call(void 0, l);
1720
+ o.call(void 0, l);
1721
1721
  }
1722
1722
  }, this.handleScrollAction = ({ scrollAction: i, pageAction: a }) => {
1723
- const r = a ? a.skip : this.state.skip;
1724
- if (this.state.skip !== r && this.setState({ skip: r }), this.list && i) {
1723
+ const o = a ? a.skip : this.state.skip;
1724
+ if (this.state.skip !== o && this.setState({ skip: o }), this.list && i) {
1725
1725
  const l = `translateY(${i.offset}px)`;
1726
1726
  this.list.style.transform = l;
1727
1727
  }
@@ -1742,9 +1742,9 @@ const nn = 30, $s = class extends o.Component {
1742
1742
  }
1743
1743
  render() {
1744
1744
  this.calculateHeights();
1745
- const s = this.lastView !== this.props.activeView, t = K(this.props.focusedDate, this.props.min, this.props.max), e = s ? this.props.service.skip(t, this.props.min) : this.state.skip, i = this.props.service.total(this.props.min, this.props.max), a = this.getTake(e, i), r = this.props.service.addToDate(this.props.min, e), l = this.props.service.datesList(r, a);
1745
+ const s = this.lastView !== this.props.activeView, t = K(this.props.focusedDate, this.props.min, this.props.max), e = s ? this.props.service.skip(t, this.props.min) : this.state.skip, i = this.props.service.total(this.props.min, this.props.max), a = this.getTake(e, i), o = this.props.service.addToDate(this.props.min, e), l = this.props.service.datesList(o, a);
1746
1746
  (this.props.activeView !== this.lastView || !ht(t, this.lastFocus)) && (this.indexToScroll = this.props.service.skip(t, this.props.min));
1747
- const c = /* @__PURE__ */ o.createElement(
1747
+ const c = /* @__PURE__ */ r.createElement(
1748
1748
  Kt,
1749
1749
  {
1750
1750
  skip: e,
@@ -1759,16 +1759,16 @@ const nn = 30, $s = class extends o.Component {
1759
1759
  onMount: this.handleVirtualizationMount,
1760
1760
  tabIndex: this.props.tabIndex
1761
1761
  },
1762
- /* @__PURE__ */ o.createElement("ul", { ref: (h) => {
1762
+ /* @__PURE__ */ r.createElement("ul", { ref: (h) => {
1763
1763
  this.list = h;
1764
1764
  }, className: "k-reset" }, l.map((h) => this.buildNavigationItem(h)))
1765
1765
  );
1766
- return /* @__PURE__ */ o.createElement(
1766
+ return /* @__PURE__ */ r.createElement(
1767
1767
  "div",
1768
1768
  {
1769
1769
  className: "k-calendar-navigation"
1770
1770
  },
1771
- /* @__PURE__ */ o.createElement("span", { className: "k-calendar-navigation-highlight" }),
1771
+ /* @__PURE__ */ r.createElement("span", { className: "k-calendar-navigation-highlight" }),
1772
1772
  this.props.dom.didCalculate ? c : null
1773
1773
  );
1774
1774
  }
@@ -1789,7 +1789,7 @@ ns.propTypes = {
1789
1789
  ns.defaultProps = {
1790
1790
  take: nn
1791
1791
  };
1792
- const Re = (s) => s ? s.virtualization : null, ks = (s = bt.defaultProps.min, t = bt.defaultProps.max, e, i) => i !== void 0 ? i !== null && F(x(i), s, t) ? i : null : e !== null && F(x(e), s, t) ? e : null, pt = class extends o.Component {
1792
+ const Re = (s) => s ? s.virtualization : null, Ds = (s = bt.defaultProps.min, t = bt.defaultProps.max, e, i) => i !== void 0 ? i !== null && F(C(i), s, t) ? i : null : e !== null && F(C(e), s, t) ? e : null, pt = class extends r.Component {
1793
1793
  constructor(s) {
1794
1794
  super(s), this.scrollSyncService = null, this.focusedDate = null, this.Navigation = null, this.calendarViewList = null, this._element = null, this.intl = null, this.service = null, this.isActive = !1, this.didNavigationChange = !1, this.focus = () => {
1795
1795
  this._element && this._element.focus();
@@ -1808,10 +1808,10 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = bt.defaultProps.min, t
1808
1808
  }, this.handleViewChange = ({ view: e }) => {
1809
1809
  this.scrollSyncService && this.scrollSyncService.configure(e), this.setState({ activeView: e });
1810
1810
  }, this.handleDateChange = (e) => {
1811
- const i = v(e.value), a = v(e.value), r = this.bus.canMoveDown(this.state.activeView);
1811
+ const i = v(e.value), a = v(e.value), o = this.bus.canMoveDown(this.state.activeView);
1812
1812
  if (this.props.disabled)
1813
1813
  return;
1814
- if (r)
1814
+ if (o)
1815
1815
  if (e.isTodayClick)
1816
1816
  this.bus.moveToBottom(this.state.activeView);
1817
1817
  else {
@@ -1843,22 +1843,29 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = bt.defaultProps.min, t
1843
1843
  const { onBlur: i } = this.props;
1844
1844
  i && i.call(void 0, e);
1845
1845
  }, this.handleKeyDown = (e) => {
1846
- const { keyCode: i } = e;
1846
+ const { keyCode: a, ctrlKey: o, metaKey: l } = e;
1847
1847
  if (!(!this.focusedDate || !this.service)) {
1848
- if (i === C.enter) {
1848
+ if (a === 84 && this.setState({ focusedDate: H() }), (o || l) && (a === k.left || a === k.right)) {
1849
+ if (this.props.disabled)
1850
+ return;
1851
+ this.didNavigationChange = !0, this.focusedDate.getDate() === 31 && this.focusedDate.setDate(30);
1852
+ const c = a === k.left ? this.focusedDate.getMonth() - 1 : this.focusedDate.getMonth() + 1, h = new Date(this.focusedDate.setMonth(c)), u = v(h);
1853
+ this.setState({ focusedDate: u });
1854
+ }
1855
+ if (a === k.enter) {
1849
1856
  if (this.value !== null && wt(this.focusedDate, this.value)) {
1850
- const r = K(this.focusedDate, this.min, this.max);
1851
- Re(this.calendarViewList).scrollToIndex(this.service.skip(r, this.min));
1857
+ const h = K(this.focusedDate, this.min, this.max);
1858
+ Re(this.calendarViewList).scrollToIndex(this.service.skip(h, this.min));
1852
1859
  }
1853
- const a = {
1860
+ const c = {
1854
1861
  syntheticEvent: e,
1855
1862
  nativeEvent: e.nativeEvent,
1856
1863
  value: this.focusedDate,
1857
1864
  target: this
1858
1865
  };
1859
- this.handleDateChange(a);
1866
+ this.handleDateChange(c);
1860
1867
  } else {
1861
- const a = K(
1868
+ const c = K(
1862
1869
  this.navigation.move(
1863
1870
  this.focusedDate,
1864
1871
  this.navigation.action(e),
@@ -1869,9 +1876,9 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = bt.defaultProps.min, t
1869
1876
  this.min,
1870
1877
  this.max
1871
1878
  );
1872
- if (wt(this.focusedDate, a))
1879
+ if (wt(this.focusedDate, c))
1873
1880
  return;
1874
- this.setState({ focusedDate: a });
1881
+ this.setState({ focusedDate: c });
1875
1882
  }
1876
1883
  e.preventDefault();
1877
1884
  }
@@ -1880,7 +1887,7 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = bt.defaultProps.min, t
1880
1887
  }, this.handleClick = (e) => {
1881
1888
  this._element && this._element.focus({ preventScroll: !0 });
1882
1889
  }, Pt(Rt);
1883
- const t = ks(
1890
+ const t = Ds(
1884
1891
  this.min,
1885
1892
  this.max,
1886
1893
  this.props.defaultValue || pt.defaultProps.defaultValue,
@@ -1889,12 +1896,12 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = bt.defaultProps.min, t
1889
1896
  this.state = {
1890
1897
  value: t,
1891
1898
  activeView: ge(
1892
- D[s.defaultActiveView],
1899
+ y[s.defaultActiveView],
1893
1900
  this.bottomView,
1894
1901
  this.topView
1895
1902
  ),
1896
1903
  focusedDate: K(
1897
- s.focusedDate || t || U(),
1904
+ s.focusedDate || t || H(),
1898
1905
  this.min,
1899
1906
  this.max
1900
1907
  )
@@ -1919,16 +1926,16 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = bt.defaultProps.min, t
1919
1926
  return this.valueDuringOnChange !== void 0 ? this.valueDuringOnChange : this.props.value !== void 0 ? this.props.value : this.state.value;
1920
1927
  }
1921
1928
  get min() {
1922
- return x(this.props.min !== void 0 ? this.props.min : pt.defaultProps.min);
1929
+ return C(this.props.min !== void 0 ? this.props.min : pt.defaultProps.min);
1923
1930
  }
1924
1931
  get max() {
1925
- return x(this.props.max !== void 0 ? this.props.max : pt.defaultProps.max);
1932
+ return C(this.props.max !== void 0 ? this.props.max : pt.defaultProps.max);
1926
1933
  }
1927
1934
  get bottomView() {
1928
- return D[this.props.bottomView !== void 0 ? this.props.bottomView : pt.defaultProps.bottomView];
1935
+ return y[this.props.bottomView !== void 0 ? this.props.bottomView : pt.defaultProps.bottomView];
1929
1936
  }
1930
1937
  get topView() {
1931
- return D[this.props.topView !== void 0 ? this.props.topView : pt.defaultProps.topView];
1938
+ return y[this.props.topView !== void 0 ? this.props.topView : pt.defaultProps.topView];
1932
1939
  }
1933
1940
  /**
1934
1941
  * @hidden
@@ -1942,7 +1949,7 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = bt.defaultProps.min, t
1942
1949
  * @hidden
1943
1950
  */
1944
1951
  componentDidUpdate(s, t) {
1945
- fs(), t.activeView !== this.state.activeView && this.scrollSyncService && this.scrollSyncService.configure(this.state.activeView), this.calendarViewList && (this.isActive ? this.calendarViewList.focusActiveDate : this.calendarViewList.blurActiveDate)(), this.didNavigationChange = !1, this.oldValue = this.value;
1952
+ fs(), t.activeView !== this.state.activeView && this.scrollSyncService && this.scrollSyncService.configure(this.state.activeView), this.calendarViewList && (this.isActive ? this.calendarViewList.focusActiveDate : this.calendarViewList.blurActiveDate)(), this.didNavigationChange = !1, this.isActive && (this.oldValue = this.value);
1946
1953
  }
1947
1954
  /**
1948
1955
  * @hidden
@@ -1951,15 +1958,15 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = bt.defaultProps.min, t
1951
1958
  this.props._ref && this.props._ref(this);
1952
1959
  const s = this.value !== null && this.oldValue !== null ? !wt(this.value, this.oldValue) : this.value !== this.oldValue, t = ge(
1953
1960
  this.state.activeView,
1954
- D[this.props.bottomView !== void 0 ? this.props.bottomView : pt.defaultProps.bottomView],
1955
- D[this.props.topView !== void 0 ? this.props.topView : pt.defaultProps.topView]
1956
- ), e = ks(this.min, this.max, this.value, this.value), i = e ? x(e) : null;
1957
- this.focusedDate = x(K(
1961
+ y[this.props.bottomView !== void 0 ? this.props.bottomView : pt.defaultProps.bottomView],
1962
+ y[this.props.topView !== void 0 ? this.props.topView : pt.defaultProps.topView]
1963
+ ), e = Ds(this.min, this.max, this.value, this.value), i = e ? C(e) : null;
1964
+ this.focusedDate = C(K(
1958
1965
  s && e !== null ? e : this.state.focusedDate,
1959
1966
  this.min,
1960
1967
  this.max
1961
1968
  )), this.intl = ct(this), this.bus.configure(this.bottomView, this.topView), this.service = this.bus.service(t, this.intl);
1962
- const { smoothScroll: a = Number.parseFloat(o.version) < 18 } = this.props, r = P(
1969
+ const { smoothScroll: a = Number.parseFloat(r.version) < 18 } = this.props, o = P(
1963
1970
  "k-widget k-calendar k-calendar-infinite",
1964
1971
  {
1965
1972
  "k-disabled": this.props.disabled,
@@ -1967,7 +1974,7 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = bt.defaultProps.min, t
1967
1974
  "k-calendar-lg": this.props.mobileMode
1968
1975
  },
1969
1976
  this.props.className
1970
- ), l = [this.props.navigation && /* @__PURE__ */ o.createElement(
1977
+ ), l = [this.props.navigation && /* @__PURE__ */ r.createElement(
1971
1978
  ns,
1972
1979
  {
1973
1980
  key: 0,
@@ -1985,7 +1992,7 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = bt.defaultProps.min, t
1985
1992
  navigationItem: this.props.navigationItem,
1986
1993
  tabIndex: this.props.tabIndex
1987
1994
  }
1988
- ), /* @__PURE__ */ o.createElement(
1995
+ ), /* @__PURE__ */ r.createElement(
1989
1996
  ye,
1990
1997
  {
1991
1998
  key: 1,
@@ -2012,13 +2019,13 @@ const Re = (s) => s ? s.virtualization : null, ks = (s = bt.defaultProps.min, t
2012
2019
  tabIndex: this.props.tabIndex
2013
2020
  }
2014
2021
  )];
2015
- return /* @__PURE__ */ o.createElement(
2022
+ return /* @__PURE__ */ r.createElement(
2016
2023
  "div",
2017
2024
  {
2018
2025
  ref: (c) => {
2019
2026
  this._element = c;
2020
2027
  },
2021
- className: r,
2028
+ className: o,
2022
2029
  id: this.props.id || this.id,
2023
2030
  "aria-labelledby": this.props.ariaLabelledBy,
2024
2031
  "aria-describedby": this.props.ariaDescribedBy,
@@ -2057,7 +2064,7 @@ bt.propTypes = {
2057
2064
  weekNumber: n.bool,
2058
2065
  topView: (s, t, e) => {
2059
2066
  const i = s[t], a = s.bottomView;
2060
- return i && a && D[i] < D[a] ? new Error(
2067
+ return i && a && y[i] < y[a] ? new Error(
2061
2068
  `Invalid prop + ${t} suplied to ${e}.
2062
2069
  ${t} can not be smaller than bottomView.
2063
2070
  `
@@ -2065,7 +2072,7 @@ bt.propTypes = {
2065
2072
  },
2066
2073
  bottomView: (s, t, e) => {
2067
2074
  const i = s[t], a = s.topView;
2068
- return i && a && D[i] > D[a] ? new Error(
2075
+ return i && a && y[i] > y[a] ? new Error(
2069
2076
  `Invalid prop + ${t} suplied to ${e}.
2070
2077
  ${t} can not be bigger than topView.
2071
2078
  `
@@ -2082,28 +2089,28 @@ bt.defaultProps = {
2082
2089
  topView: "century",
2083
2090
  bottomView: "month"
2084
2091
  };
2085
- const an = Dt(), as = yt(St(an, bt));
2092
+ const an = kt(), as = yt(St(an, bt));
2086
2093
  as.displayName = "KendoReactCalendar";
2087
2094
  ft(bt);
2088
- class rn {
2095
+ class on {
2089
2096
  constructor() {
2090
2097
  this.symbols = "", this.partMap = [];
2091
2098
  }
2092
2099
  }
2093
- const on = "d", ln = "wide", hn = (s, t, e, i) => {
2094
- const a = s[i + s.length - e.length], r = s.substring(0, i + s.length - e.length), l = e.substring(0, i), c = [];
2095
- if (r === l && i > 0)
2100
+ const rn = "d", ln = "wide", hn = (s, t, e, i) => {
2101
+ const a = s[i + s.length - e.length], o = s.substring(0, i + s.length - e.length), l = e.substring(0, i), c = [];
2102
+ if (o === l && i > 0)
2096
2103
  return c.push([t[i - 1], l[i - 1]]), c;
2097
- if (r.indexOf(l) === 0 && (l.length === 0 || t[l.length - 1] !== t[l.length])) {
2104
+ if (o.indexOf(l) === 0 && (l.length === 0 || t[l.length - 1] !== t[l.length])) {
2098
2105
  let h = "";
2099
2106
  l.length === 1 && c.push([t[0], l[0]]);
2100
- for (let u = l.length; u < r.length; u++)
2107
+ for (let u = l.length; u < o.length; u++)
2101
2108
  t[u] !== h && t[u] !== "_" && (h = t[u], c.push([h, ""]));
2102
2109
  return c;
2103
2110
  }
2104
- if (l.indexOf(r) === 0 || t[i - 1] === "_") {
2111
+ if (l.indexOf(o) === 0 || t[i - 1] === "_") {
2105
2112
  let h = t[0];
2106
- for (let u = Math.max(0, r.length - 1); u < t.length; u++)
2113
+ for (let u = Math.max(0, o.length - 1); u < t.length; u++)
2107
2114
  if (t[u] !== "_") {
2108
2115
  h = t[u];
2109
2116
  break;
@@ -2124,7 +2131,7 @@ class pn {
2124
2131
  m: "m",
2125
2132
  s: "s",
2126
2133
  y: "y"
2127
- }, this._value = x(/* @__PURE__ */ new Date()), this.intlProvider = t, this.formatPlaceholder = e, this.format = i, this.monthNames = this.allFormatedMonths();
2134
+ }, this._value = C(/* @__PURE__ */ new Date()), this.intlProvider = t, this.formatPlaceholder = e, this.format = i, this.monthNames = this.allFormatedMonths();
2128
2135
  }
2129
2136
  get intl() {
2130
2137
  return this.intlProvider();
@@ -2133,7 +2140,7 @@ class pn {
2133
2140
  return this._value;
2134
2141
  }
2135
2142
  setValue(t) {
2136
- t ? ht(t, this._value) || (this._value = v(t), this.modifyExisting(!0)) : (this._value = x(/* @__PURE__ */ new Date()), this.modifyExisting(!1));
2143
+ t ? ht(t, this._value) || (this._value = v(t), this.modifyExisting(!0)) : (this._value = C(/* @__PURE__ */ new Date()), this.modifyExisting(!1));
2137
2144
  }
2138
2145
  hasValue() {
2139
2146
  const t = (e, i) => e || i.type !== "literal" && i.type !== "dayperiod" && this.getExisting(i.pattern[0]);
@@ -2235,24 +2242,24 @@ class pn {
2235
2242
  parsePart(t, e) {
2236
2243
  if (this.resetLeadingZero(), !e)
2237
2244
  return this.setExisting(t, !1), { value: null };
2238
- const i = this.intl.formatDate(this.value, this.format), a = this.dateFormatString(this.value, this.format), r = a.symbols;
2245
+ const i = this.intl.formatDate(this.value, this.format), a = this.dateFormatString(this.value, this.format), o = a.symbols;
2239
2246
  let l = !1, c = "", h = "", u = "";
2240
- for (let m = 0; m < i.length; m++)
2241
- r[m] === t ? (h += this.getExisting(t) ? i[m] : "0", l = !0) : l ? u += i[m] : c += i[m];
2247
+ for (let f = 0; f < i.length; f++)
2248
+ o[f] === t ? (h += this.getExisting(t) ? i[f] : "0", l = !0) : l ? u += i[f] : c += i[f];
2242
2249
  let d = null;
2243
2250
  const p = this.matchMonth(e);
2244
2251
  for (; h.length > 0 && h.charAt(0) === "0"; )
2245
2252
  h = h.slice(1);
2246
2253
  h.length >= 4 && (h = "");
2247
- for (let m = 0; m < 2; m++) {
2248
- let f = h + e, y = parseInt(f, 10);
2249
- if (d = this.intl.parseDate(c + f + u, this.format), !d && !isNaN(y) && !isNaN(parseInt(e, 10))) {
2254
+ for (let f = 0; f < 2; f++) {
2255
+ let m = h + e, S = parseInt(m, 10);
2256
+ if (d = this.intl.parseDate(c + m + u, this.format), !d && !isNaN(S) && !isNaN(parseInt(e, 10))) {
2250
2257
  if (t === "M" && !p) {
2251
- const I = y - 1;
2258
+ const I = S - 1;
2252
2259
  I > -1 && I < 12 && (d = v(this.value), d.setMonth(I), d.getMonth() !== I && (d = Ot($(d, -1))));
2253
2260
  }
2254
2261
  t === "y" && (d = le(
2255
- parseInt(f, 10),
2262
+ parseInt(m, 10),
2256
2263
  this.month ? this.value.getMonth() : 0,
2257
2264
  this.date ? this.value.getDate() : 1,
2258
2265
  this.hours ? this.value.getHours() : 0,
@@ -2303,26 +2310,26 @@ class pn {
2303
2310
  return [];
2304
2311
  }
2305
2312
  dateFormatString(t, e) {
2306
- const i = this.intl.splitDateFormat(e), a = [], r = [];
2313
+ const i = this.intl.splitDateFormat(e), a = [], o = [];
2307
2314
  for (let c = 0; c < i.length; c++) {
2308
2315
  let h = this.intl.formatDate(t, { pattern: i[c].pattern }).length;
2309
2316
  for (; h > 0; )
2310
- a.push(this.symbols[i[c].pattern[0]] || "_"), r.push(i[c]), h--;
2317
+ a.push(this.symbols[i[c].pattern[0]] || "_"), o.push(i[c]), h--;
2311
2318
  }
2312
- const l = new rn();
2313
- return l.symbols = a.join(""), l.partMap = r, l;
2319
+ const l = new on();
2320
+ return l.symbols = a.join(""), l.partMap = o, l;
2314
2321
  }
2315
2322
  merge(t, e) {
2316
- let i = "", a = "", r = e.symbols;
2317
- for (let l = r.length - 1; l >= 0; l--)
2318
- if (this.knownParts.indexOf(r[l]) === -1 || this.getExisting(r[l]))
2319
- i = t[l] + i, a = r[l] + a;
2323
+ let i = "", a = "", o = e.symbols;
2324
+ for (let l = o.length - 1; l >= 0; l--)
2325
+ if (this.knownParts.indexOf(o[l]) === -1 || this.getExisting(o[l]))
2326
+ i = t[l] + i, a = o[l] + a;
2320
2327
  else {
2321
- const c = r[l];
2322
- for (; l >= 0 && c === r[l]; )
2328
+ const c = o[l];
2329
+ for (; l >= 0 && c === o[l]; )
2323
2330
  l--;
2324
2331
  for (l++, this.leadingZero && this.leadingZero[c] ? i = "0" + i : i = this.dateFieldName(e.partMap[l]) + i; a.length < i.length; )
2325
- a = r[l] + a;
2332
+ a = o[l] + a;
2326
2333
  }
2327
2334
  return { text: i, format: a };
2328
2335
  }
@@ -2337,7 +2344,7 @@ const X = {
2337
2344
  millisecond: "millisecond",
2338
2345
  minute: "minute",
2339
2346
  second: "second"
2340
- }, rs = (s) => (t, e) => {
2347
+ }, os = (s) => (t, e) => {
2341
2348
  const i = v(t);
2342
2349
  return i[s](e), i;
2343
2350
  }, Ys = [
@@ -2346,61 +2353,61 @@ const X = {
2346
2353
  { type: X.second, getter: (s) => s.getSeconds() },
2347
2354
  { type: X.millisecond, getter: (s) => s.getMilliseconds() }
2348
2355
  ], mn = (s) => (t, e) => s(t), fn = (s) => (t, e) => s(e), gn = (s) => s.reduce((t, e) => (t[e.type] = e.type, t), {}), vn = (s) => (t) => s[t.type] ? fn(t.getter) : mn(t.getter), wn = (s) => (t) => s.map(vn(gn(t))), bn = (s, t, e, i) => (a) => {
2349
- const r = s(a), l = s(e);
2350
- return i === "hour" ? r - (r - l) % t : a.getTime() <= e.getTime() && r !== 0 && r <= l ? Math.ceil(r / t) * t : r - r % t;
2351
- }, kn = (s) => (t, e) => s.map((i) => {
2356
+ const o = s(a), l = s(e);
2357
+ return i === "hour" ? o - (o - l) % t : a.getTime() <= e.getTime() && o !== 0 && o <= l ? Math.ceil(o / t) * t : o - o % t;
2358
+ }, Dn = (s) => (t, e) => s.map((i) => {
2352
2359
  const a = Math.floor(t[i.type]);
2353
2360
  return a ? bn(i.getter, a, e, i.type) : i.getter;
2354
- }), Dn = wn(Ys), Ds = kn(Ys), yn = (s) => (t, e) => (t.setHours(...s.map((i) => i(t, e))), t), ys = (s) => (t) => {
2361
+ }), kn = wn(Ys), ks = Dn(Ys), yn = (s) => (t, e) => (t.setHours(...s.map((i) => i(t, e))), t), ys = (s) => (t) => {
2355
2362
  const e = v(t);
2356
2363
  return e.setHours(...s.map((i) => i(e))), e;
2357
- }, de = rs("setHours"), pe = rs("setMinutes"), me = rs("setSeconds"), Vt = () => /* @__PURE__ */ new Date(), os = (s, t, e = 1) => {
2364
+ }, de = os("setHours"), pe = os("setMinutes"), me = os("setSeconds"), Vt = () => /* @__PURE__ */ new Date(), rs = (s, t, e = 1) => {
2358
2365
  const i = [];
2359
2366
  for (let a = s; a < t; a = a + e)
2360
2367
  i.push(a);
2361
2368
  return i;
2362
2369
  }, ls = (s, t, e) => ({
2363
- candidateValue: W(L, s),
2364
- maxValue: Wt(W(L, e), t.getHours() < e.getHours() ? 0 : 1),
2365
- minValue: W(L, t)
2370
+ candidateValue: U(L, s),
2371
+ maxValue: Wt(U(L, e), t.getHours() < e.getHours() ? 0 : 1),
2372
+ minValue: U(L, t)
2366
2373
  }), Sn = (s, t, e) => {
2367
2374
  if (!s || !t || !e)
2368
2375
  return s;
2369
2376
  const {
2370
2377
  candidateValue: i,
2371
2378
  minValue: a,
2372
- maxValue: r
2379
+ maxValue: o
2373
2380
  } = ls(s, t, e);
2374
- return i < a ? W(s, t) : i > r ? W(s, e) : s;
2381
+ return i < a ? U(s, t) : i > o ? U(s, e) : s;
2375
2382
  }, hs = (s, t, e) => {
2376
2383
  if (!s || !t || !e)
2377
2384
  return !0;
2378
2385
  const {
2379
2386
  candidateValue: i,
2380
2387
  minValue: a,
2381
- maxValue: r
2388
+ maxValue: o
2382
2389
  } = ls(s, t, e);
2383
- return a <= i && i <= r;
2390
+ return a <= i && i <= o;
2384
2391
  }, xn = (s, t, e) => {
2385
2392
  if (s === null)
2386
2393
  return !0;
2387
2394
  const {
2388
2395
  candidateValue: i,
2389
2396
  minValue: a,
2390
- maxValue: r
2397
+ maxValue: o
2391
2398
  } = ls(s, t, e);
2392
- return a <= i && i <= r;
2399
+ return a <= i && i <= o;
2393
2400
  }, Cn = (s, t) => {
2394
2401
  if (s === null || t === null)
2395
2402
  return !1;
2396
- const e = W(L, s), i = W(L, t);
2403
+ const e = U(L, s), i = U(L, t);
2397
2404
  return e.getTime() < i.getHours();
2398
2405
  }, In = (s, t) => {
2399
2406
  if (s === null || t === null)
2400
2407
  return !1;
2401
- const e = W(L, s);
2402
- return W(L, t).getTime() < e.getHours();
2403
- }, Mn = "Please enter a valid value!", Z = class extends o.Component {
2408
+ const e = U(L, s);
2409
+ return U(L, t).getTime() < e.getHours();
2410
+ }, Mn = "Please enter a valid value!", Z = class extends r.Component {
2404
2411
  constructor(s) {
2405
2412
  super(s), this.kendoDate = null, this.currentFormat = "", this.paste = !1, this._element = null, this._wrapper = null, this._lastSelectedSymbol = "", this.focus = () => {
2406
2413
  this._element && this._element.focus();
@@ -2428,16 +2435,16 @@ const X = {
2428
2435
  }
2429
2436
  const { text: e, format: i } = this.kendoDate.getTextAndFormat();
2430
2437
  this.currentFormat = i;
2431
- const a = this.value, r = hn(
2438
+ const a = this.value, o = hn(
2432
2439
  e,
2433
2440
  this.currentFormat,
2434
2441
  this.element.value,
2435
2442
  this.selection.start
2436
- ), l = r.length === 1 && r[0][1] === "_";
2443
+ ), l = o.length === 1 && o[0][1] === "_";
2437
2444
  if (!l)
2438
- for (let c = 0; c < r.length; c++)
2439
- this.kendoDate.parsePart(r[c][0], r[c][1]);
2440
- r.length && r[0][0] !== "_" && this.setSelection(this.selectionBySymbol(r[0][0])), l && this.switchDateSegment(1), this.triggerChange(t, a);
2445
+ for (let c = 0; c < o.length; c++)
2446
+ this.kendoDate.parsePart(o[c][0], o[c][1]);
2447
+ o.length && o[0][0] !== "_" && this.setSelection(this.selectionBySymbol(o[0][0])), l && this.switchDateSegment(1), this.triggerChange(t, a);
2441
2448
  }, this.elementClick = (t) => {
2442
2449
  this.setSelection(this.selectionByIndex(this.selection.start));
2443
2450
  }, this.nativeWheel = (t) => {
@@ -2507,10 +2514,10 @@ const X = {
2507
2514
  rounded: e = Z.defaultProps.rounded
2508
2515
  } = this.props;
2509
2516
  this.props._ref && (this.props._ref.current = this);
2510
- const i = q(this), a = { ...Z.defaultProps, ...this.props }, { name: r, label: l, id: c } = a, h = this.text, u = h === this.props.placeholder ? "" : h, d = h === this.props.placeholder ? h : void 0, p = c || this._inputId, m = !this.validityStyles || this.validity.valid;
2511
- let f = [...dn];
2512
- this.props.className && f.push(this.props.className);
2513
- const y = /* @__PURE__ */ o.createElement(we, { onFocus: this.elementOnFocus, onBlur: this.elementOnBlur }, ({ onFocus: I, onBlur: M }) => /* @__PURE__ */ o.createElement(
2517
+ const i = W(this), a = { ...Z.defaultProps, ...this.props }, { name: o, label: l, id: c } = a, h = this.text, u = h === this.props.placeholder ? "" : h, d = h === this.props.placeholder ? h : void 0, p = c || this._inputId, f = !this.validityStyles || this.validity.valid;
2518
+ let m = [...dn];
2519
+ this.props.className && m.push(this.props.className);
2520
+ const S = /* @__PURE__ */ r.createElement(we, { onFocus: this.elementOnFocus, onBlur: this.elementOnBlur }, ({ onFocus: I, onBlur: M }) => /* @__PURE__ */ r.createElement(
2514
2521
  "span",
2515
2522
  {
2516
2523
  ref: (w) => {
@@ -2525,7 +2532,7 @@ const X = {
2525
2532
  [`k-input-${mt.sizeMap[s] || s}`]: s,
2526
2533
  [`k-input-${t}`]: t,
2527
2534
  [`k-rounded-${mt.roundedMap[e] || e}`]: e,
2528
- "k-invalid": !m,
2535
+ "k-invalid": !f,
2529
2536
  "k-required": this.required,
2530
2537
  "k-disabled": this.props.disabled
2531
2538
  },
@@ -2534,7 +2541,7 @@ const X = {
2534
2541
  onFocus: I,
2535
2542
  onBlur: M
2536
2543
  },
2537
- /* @__PURE__ */ o.createElement(
2544
+ /* @__PURE__ */ r.createElement(
2538
2545
  "input",
2539
2546
  {
2540
2547
  role: this.props.ariaRole || "textbox",
@@ -2563,12 +2570,12 @@ const X = {
2563
2570
  onChange: Rs,
2564
2571
  value: u,
2565
2572
  placeholder: d,
2566
- name: r,
2573
+ name: o,
2567
2574
  ref: (w) => this._element = w
2568
2575
  }
2569
2576
  ),
2570
2577
  this.props.children,
2571
- this.props.spinners && /* @__PURE__ */ o.createElement("span", { className: "k-input-spinner k-spin-button", onMouseDown: this.spinnersMouseDown }, /* @__PURE__ */ o.createElement(
2578
+ this.props.spinners && /* @__PURE__ */ r.createElement("span", { className: "k-input-spinner k-spin-button", onMouseDown: this.spinnersMouseDown }, /* @__PURE__ */ r.createElement(
2572
2579
  N,
2573
2580
  {
2574
2581
  tabIndex: -1,
@@ -2581,7 +2588,7 @@ const X = {
2581
2588
  title: i.toLanguageString(Ft, T[Ft]),
2582
2589
  onClick: this.increasePart
2583
2590
  }
2584
- ), /* @__PURE__ */ o.createElement(
2591
+ ), /* @__PURE__ */ r.createElement(
2585
2592
  N,
2586
2593
  {
2587
2594
  tabIndex: -1,
@@ -2589,25 +2596,25 @@ const X = {
2589
2596
  rounded: null,
2590
2597
  className: "k-spinner-decrease",
2591
2598
  icon: "caret-alt-down",
2592
- svgIcon: ri,
2599
+ svgIcon: oi,
2593
2600
  "aria-label": i.toLanguageString(Lt, T[Lt]),
2594
2601
  title: i.toLanguageString(Lt, T[Lt]),
2595
2602
  onClick: this.decreasePart
2596
2603
  }
2597
2604
  ))
2598
2605
  ));
2599
- return l ? /* @__PURE__ */ o.createElement(
2606
+ return l ? /* @__PURE__ */ r.createElement(
2600
2607
  Ls,
2601
2608
  {
2602
2609
  label: l,
2603
2610
  editorId: p,
2604
2611
  editorValue: h,
2605
- editorValid: m,
2612
+ editorValid: f,
2606
2613
  editorDisabled: this.props.disabled,
2607
- children: y,
2614
+ children: S,
2608
2615
  style: { width: this.props.width }
2609
2616
  }
2610
- ) : y;
2617
+ ) : S;
2611
2618
  }
2612
2619
  /* Public Getters */
2613
2620
  /**
@@ -2632,15 +2639,15 @@ const X = {
2632
2639
  * @hidden
2633
2640
  */
2634
2641
  get text() {
2635
- const s = { ...kt.defaultProps, ...this.props }, {
2642
+ const s = { ...Dt.defaultProps, ...this.props }, {
2636
2643
  formatPlaceholder: t = Z.defaultProps.formatPlaceholder,
2637
2644
  format: e = Z.defaultProps.format,
2638
2645
  value: i,
2639
2646
  defaultValue: a
2640
2647
  } = s;
2641
2648
  this.kendoDate === null ? (this.kendoDate = new pn(this.intl.bind(this), t, e), this.kendoDate.setValue(i || a || null)) : (this.kendoDate.format = e, this.kendoDate.formatPlaceholder = t), i !== void 0 && this.value !== i && this.kendoDate.setValue(i);
2642
- const { text: r, format: l } = this.kendoDate.getTextAndFormat();
2643
- return this.currentFormat = l, s.placeholder !== null && s.placeholder !== void 0 && !this.state.focused && !this.kendoDate.hasValue() ? s.placeholder : r;
2649
+ const { text: o, format: l } = this.kendoDate.getTextAndFormat();
2650
+ return this.currentFormat = l, s.placeholder !== null && s.placeholder !== void 0 && !this.state.focused && !this.kendoDate.hasValue() ? s.placeholder : o;
2644
2651
  }
2645
2652
  /**
2646
2653
  * Represents the validity state into which the DateInput is set.
@@ -2765,16 +2772,16 @@ const X = {
2765
2772
  a += s;
2766
2773
  if (this.currentFormat[a] === "_")
2767
2774
  return;
2768
- let r = a;
2769
- for (; r >= 0 && r < this.currentFormat.length && this.currentFormat[r] === this.currentFormat[a]; )
2770
- r += s;
2771
- a > r && (r + 1 !== t || a + 1 !== e) ? this.setSelection({ start: r + 1, end: a + 1 }) : a < r && (a !== t || r !== e) && this.setSelection({ start: a, end: r });
2775
+ let o = a;
2776
+ for (; o >= 0 && o < this.currentFormat.length && this.currentFormat[o] === this.currentFormat[a]; )
2777
+ o += s;
2778
+ a > o && (o + 1 !== t || a + 1 !== e) ? this.setSelection({ start: o + 1, end: a + 1 }) : a < o && (a !== t || o !== e) && this.setSelection({ start: a, end: o });
2772
2779
  }
2773
2780
  modifyDateSegmentValue(s, t) {
2774
2781
  if (!this.kendoDate)
2775
2782
  return;
2776
- const e = this.value, i = this.currentFormat[this.selection.start], a = this.kendoDate.symbolMap(i), r = ((this.props.steps || {})[a] || 1) * s;
2777
- this.kendoDate.modifyPart(i, r), this.triggerChange(t, e);
2783
+ const e = this.value, i = this.currentFormat[this.selection.start], a = this.kendoDate.symbolMap(i), o = ((this.props.steps || {})[a] || 1) * s;
2784
+ this.kendoDate.modifyPart(i, o), this.triggerChange(t, e);
2778
2785
  }
2779
2786
  };
2780
2787
  let Ct = Z;
@@ -2855,7 +2862,7 @@ Ct.propTypes = {
2855
2862
  fillMode: n.oneOf([null, "solid", "flat", "outline"])
2856
2863
  };
2857
2864
  Ct.defaultProps = {
2858
- format: on,
2865
+ format: rn,
2859
2866
  size: "medium",
2860
2867
  rounded: "medium",
2861
2868
  fillMode: "solid",
@@ -2874,18 +2881,18 @@ Ct.defaultProps = {
2874
2881
  // the rest of the properties are undefined by default
2875
2882
  ariaHasPopup: "grid"
2876
2883
  };
2877
- const Tn = Dt(), kt = yt(St(Tn, Ct));
2878
- kt.displayName = "KendoReactDateInput";
2884
+ const Tn = kt(), Dt = yt(St(Tn, Ct));
2885
+ Dt.displayName = "KendoReactDateInput";
2879
2886
  ft(Ct);
2880
2887
  at(Ct);
2881
- const En = N, Vn = o.forwardRef((s, t) => {
2882
- const { _ref: e } = s, i = o.useRef(null);
2883
- o.useImperativeHandle(t, () => i.current), o.useImperativeHandle(e, () => i.current);
2884
- const a = o.useMemo(
2888
+ const En = N, Vn = r.forwardRef((s, t) => {
2889
+ const { _ref: e } = s, i = r.useRef(null);
2890
+ r.useImperativeHandle(t, () => i.current), r.useImperativeHandle(e, () => i.current);
2891
+ const a = r.useMemo(
2885
2892
  () => P(s.className, "k-picker-wrap"),
2886
2893
  [s.className]
2887
2894
  );
2888
- return /* @__PURE__ */ o.createElement(
2895
+ return /* @__PURE__ */ r.createElement(
2889
2896
  "span",
2890
2897
  {
2891
2898
  ref: i,
@@ -2897,15 +2904,15 @@ const En = N, Vn = o.forwardRef((s, t) => {
2897
2904
  s.children
2898
2905
  );
2899
2906
  }), On = (s) => {
2900
- const [t, e] = o.useState(!1), i = () => {
2907
+ const [t, e] = r.useState(!1), i = () => {
2901
2908
  s.current && e(!!s.current.text);
2902
2909
  };
2903
- return o.useEffect(i), {
2910
+ return r.useEffect(i), {
2904
2911
  editorValue: t
2905
2912
  };
2906
2913
  }, cs = (s) => {
2907
2914
  const t = On(s.dateInput);
2908
- return /* @__PURE__ */ o.createElement(
2915
+ return /* @__PURE__ */ r.createElement(
2909
2916
  Ls,
2910
2917
  {
2911
2918
  ...s,
@@ -2918,7 +2925,7 @@ const En = N, Vn = o.forwardRef((s, t) => {
2918
2925
  children: e,
2919
2926
  windowWidth: i = 0,
2920
2927
  navigatable: a,
2921
- navigatableElements: r,
2928
+ navigatableElements: o,
2922
2929
  expand: l,
2923
2930
  animation: c,
2924
2931
  onClose: h,
@@ -2926,14 +2933,14 @@ const En = N, Vn = o.forwardRef((s, t) => {
2926
2933
  mobileFilter: d
2927
2934
  } = s, p = {
2928
2935
  navigatable: a || !1,
2929
- navigatableElements: r || [],
2936
+ navigatableElements: o || [],
2930
2937
  expand: l,
2931
2938
  animation: c !== !1,
2932
2939
  onClose: h,
2933
2940
  animationStyles: i <= Ss ? { top: 0, width: "100%", height: "100%" } : void 0,
2934
2941
  className: i <= Ss ? "k-adaptive-actionsheet k-actionsheet-fullscreen" : "k-adaptive-actionsheet k-actionsheet-bottom"
2935
2942
  };
2936
- return /* @__PURE__ */ o.createElement(ci, { ...p }, /* @__PURE__ */ o.createElement(ui, { className: "k-text-center" }, /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-titlebar-group k-hbox" }, /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-title" }, /* @__PURE__ */ o.createElement("div", null, u)), /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-actions" }, /* @__PURE__ */ o.createElement(
2943
+ return /* @__PURE__ */ r.createElement(ci, { ...p }, /* @__PURE__ */ r.createElement(ui, { className: "k-text-center" }, /* @__PURE__ */ r.createElement("div", { className: "k-actionsheet-titlebar-group k-hbox" }, /* @__PURE__ */ r.createElement("div", { className: "k-actionsheet-title" }, /* @__PURE__ */ r.createElement("div", null, u)), /* @__PURE__ */ r.createElement("div", { className: "k-actionsheet-actions" }, /* @__PURE__ */ r.createElement(
2937
2944
  N,
2938
2945
  {
2939
2946
  tabIndex: 0,
@@ -2942,10 +2949,10 @@ const En = N, Vn = o.forwardRef((s, t) => {
2942
2949
  type: "button",
2943
2950
  fillMode: "flat",
2944
2951
  icon: "x",
2945
- svgIcon: oi,
2952
+ svgIcon: ri,
2946
2953
  onClick: h
2947
2954
  }
2948
- ))), d && /* @__PURE__ */ o.createElement("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter" }, d)), e, t && /* @__PURE__ */ o.createElement(di, { className: "k-actions k-actions-stretched" }, /* @__PURE__ */ o.createElement(
2955
+ ))), d && /* @__PURE__ */ r.createElement("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter" }, d)), e, t && /* @__PURE__ */ r.createElement(di, { className: "k-actions k-actions-stretched" }, /* @__PURE__ */ r.createElement(
2949
2956
  N,
2950
2957
  {
2951
2958
  size: "large",
@@ -2956,7 +2963,7 @@ const En = N, Vn = o.forwardRef((s, t) => {
2956
2963
  onClick: t.onCancel
2957
2964
  },
2958
2965
  t.cancelText
2959
- ), /* @__PURE__ */ o.createElement(
2966
+ ), /* @__PURE__ */ r.createElement(
2960
2967
  N,
2961
2968
  {
2962
2969
  tabIndex: 0,
@@ -2969,17 +2976,17 @@ const En = N, Vn = o.forwardRef((s, t) => {
2969
2976
  },
2970
2977
  t.applyText
2971
2978
  )));
2972
- }, xe = 768, B = class extends o.Component {
2979
+ }, xe = 768, z = class extends r.Component {
2973
2980
  constructor(s) {
2974
- super(s), this._element = null, this._dateInput = o.createRef(), this._calendar = null, this.shouldFocusDateInput = !1, this.prevShow = !1, this.focus = () => {
2981
+ super(s), this._element = null, this._dateInput = r.createRef(), this._calendar = null, this.shouldFocusDateInput = !1, this.prevShow = !1, this.focus = () => {
2975
2982
  this.dateInput && this.dateInput.focus();
2976
2983
  }, this.setCalendarRef = (t) => {
2977
2984
  this._calendar = t;
2978
2985
  }, this.nextValue = (t, e) => t.value !== void 0 ? t.value : e.value, this.nextShow = (t, e) => t.show !== void 0 ? t.show : e.show, this.renderPopup = () => {
2979
- const { disabled: t, min: e, max: i, weekNumber: a, focusedDate: r } = this.props, { popupClass: l, ...c } = this.props.popupSettings, h = this.show, u = this.value, d = u && x(u), p = P(
2986
+ const { disabled: t, min: e, max: i, weekNumber: a, focusedDate: o } = this.props, { popupClass: l, ...c } = this.props.popupSettings, h = this.show, u = this.value, d = u && C(u), p = P(
2980
2987
  "k-calendar-container k-group k-reset",
2981
2988
  l
2982
- ), m = {
2989
+ ), f = {
2983
2990
  popupClass: "k-datepicker-popup",
2984
2991
  show: h,
2985
2992
  anchor: this._element,
@@ -2994,18 +3001,18 @@ const En = N, Vn = o.forwardRef((s, t) => {
2994
3001
  vertical: "top"
2995
3002
  },
2996
3003
  ...c
2997
- }, f = {
3004
+ }, m = {
2998
3005
  disabled: t,
2999
3006
  value: d,
3000
3007
  min: e,
3001
3008
  max: i,
3002
3009
  weekNumber: a,
3003
- focusedDate: r,
3010
+ focusedDate: o,
3004
3011
  className: this.mobileMode ? "k-calendar-lg" : "",
3005
3012
  navigation: !this.mobileMode,
3006
3013
  onChange: this.handleCalendarValueChange
3007
3014
  };
3008
- return this.mobileMode ? /* @__PURE__ */ o.createElement(this.calendarComp, { _ref: this.setCalendarRef, ...f }) : /* @__PURE__ */ o.createElement(this.popupComp, { ...m }, /* @__PURE__ */ o.createElement(this.calendarComp, { _ref: this.setCalendarRef, ...f }));
3015
+ return this.mobileMode ? /* @__PURE__ */ r.createElement(this.calendarComp, { _ref: this.setCalendarRef, ...m }) : /* @__PURE__ */ r.createElement(this.popupComp, { ...f }, /* @__PURE__ */ r.createElement(this.calendarComp, { _ref: this.setCalendarRef, ...m }));
3009
3016
  }, this.renderAdaptivePopup = () => {
3010
3017
  const { windowWidth: t = 0 } = this.state, e = {
3011
3018
  expand: this.show,
@@ -3013,7 +3020,7 @@ const En = N, Vn = o.forwardRef((s, t) => {
3013
3020
  adaptiveTitle: this.props.adaptiveTitle,
3014
3021
  windowWidth: t
3015
3022
  };
3016
- return /* @__PURE__ */ o.createElement(Se, { ...e }, /* @__PURE__ */ o.createElement(ke, { className: "!k-overflow-hidden" }, this.renderPopup()));
3023
+ return /* @__PURE__ */ r.createElement(Se, { ...e }, /* @__PURE__ */ r.createElement(De, { className: "!k-overflow-hidden" }, this.renderPopup()));
3017
3024
  }, this.handleInputValueChange = (t) => {
3018
3025
  this.handleValueChange(t.value, t);
3019
3026
  }, this.handleCalendarValueChange = (t) => {
@@ -3041,14 +3048,14 @@ const En = N, Vn = o.forwardRef((s, t) => {
3041
3048
  t.preventDefault();
3042
3049
  }, this.handleKeyDown = (t) => {
3043
3050
  const { altKey: e, keyCode: i } = t;
3044
- if (i === C.esc) {
3051
+ if (i === k.esc) {
3045
3052
  this.shouldFocusDateInput = !0, this.setShow(!1);
3046
3053
  return;
3047
3054
  }
3048
- e && (i === C.up || i === C.down) && (t.preventDefault(), t.stopPropagation(), this.shouldFocusDateInput = i === C.up, this.setShow(i === C.down));
3055
+ e && (i === k.up || i === k.down) && (t.preventDefault(), t.stopPropagation(), this.shouldFocusDateInput = i === k.up, this.setShow(i === k.down));
3049
3056
  }, Pt(Rt), this.state = {
3050
- value: this.props.defaultValue || B.defaultProps.defaultValue,
3051
- show: this.props.defaultShow || B.defaultProps.defaultShow,
3057
+ value: this.props.defaultValue || z.defaultProps.defaultValue,
3058
+ show: this.props.defaultShow || z.defaultProps.defaultShow,
3052
3059
  focused: !1
3053
3060
  };
3054
3061
  }
@@ -3103,25 +3110,25 @@ const En = N, Vn = o.forwardRef((s, t) => {
3103
3110
  return this.props.name;
3104
3111
  }
3105
3112
  get min() {
3106
- return this.props.min !== void 0 ? this.props.min : B.defaultProps.min;
3113
+ return this.props.min !== void 0 ? this.props.min : z.defaultProps.min;
3107
3114
  }
3108
3115
  get max() {
3109
- return this.props.max !== void 0 ? this.props.max : B.defaultProps.max;
3116
+ return this.props.max !== void 0 ? this.props.max : z.defaultProps.max;
3110
3117
  }
3111
3118
  get dateInputComp() {
3112
- return this.props.dateInput || B.defaultProps.dateInput;
3119
+ return this.props.dateInput || z.defaultProps.dateInput;
3113
3120
  }
3114
3121
  get toggleButtonComp() {
3115
- return this.props.toggleButton || B.defaultProps.toggleButton;
3122
+ return this.props.toggleButton || z.defaultProps.toggleButton;
3116
3123
  }
3117
3124
  get calendarComp() {
3118
- return this.props.calendar || B.defaultProps.calendar;
3125
+ return this.props.calendar || z.defaultProps.calendar;
3119
3126
  }
3120
3127
  get popupComp() {
3121
- return this.props.popup || B.defaultProps.popup;
3128
+ return this.props.popup || z.defaultProps.popup;
3122
3129
  }
3123
3130
  get pickerWrapComp() {
3124
- return this.props.pickerWrap || B.defaultProps.pickerWrap;
3131
+ return this.props.pickerWrap || z.defaultProps.pickerWrap;
3125
3132
  }
3126
3133
  /**
3127
3134
  * Represents the validity state into which the DatePicker is set.
@@ -3140,13 +3147,13 @@ const En = N, Vn = o.forwardRef((s, t) => {
3140
3147
  * @hidden
3141
3148
  */
3142
3149
  get validityStyles() {
3143
- return this.props.validityStyles !== void 0 ? this.props.validityStyles : B.defaultProps.validityStyles;
3150
+ return this.props.validityStyles !== void 0 ? this.props.validityStyles : z.defaultProps.validityStyles;
3144
3151
  }
3145
3152
  /**
3146
3153
  * @hidden
3147
3154
  */
3148
3155
  get required() {
3149
- return this.props.required !== void 0 ? this.props.required : B.defaultProps.required;
3156
+ return this.props.required !== void 0 ? this.props.required : z.defaultProps.required;
3150
3157
  }
3151
3158
  /**
3152
3159
  * @hidden
@@ -3173,27 +3180,27 @@ const En = N, Vn = o.forwardRef((s, t) => {
3173
3180
  */
3174
3181
  render() {
3175
3182
  const {
3176
- size: s = B.defaultProps.size,
3177
- rounded: t = B.defaultProps.rounded,
3178
- fillMode: e = B.defaultProps.fillMode,
3183
+ size: s = z.defaultProps.size,
3184
+ rounded: t = z.defaultProps.rounded,
3185
+ fillMode: e = z.defaultProps.fillMode,
3179
3186
  disabled: i,
3180
3187
  tabIndex: a,
3181
- title: r,
3188
+ title: o,
3182
3189
  id: l,
3183
3190
  format: c,
3184
3191
  formatPlaceholder: h,
3185
3192
  min: u,
3186
3193
  max: d,
3187
3194
  className: p,
3188
- width: m,
3189
- name: f,
3190
- validationMessage: y,
3195
+ width: f,
3196
+ name: m,
3197
+ validationMessage: S,
3191
3198
  required: I,
3192
3199
  validityStyles: M,
3193
3200
  ariaLabelledBy: w,
3194
3201
  ariaDescribedBy: E,
3195
3202
  ariaLabel: g
3196
- } = this.props, H = this.show, V = this.value, R = !this.validityStyles || this.validity.valid, A = {
3203
+ } = this.props, B = this.show, V = this.value, R = !this.validityStyles || this.validity.valid, A = {
3197
3204
  disabled: i,
3198
3205
  format: c,
3199
3206
  formatPlaceholder: h,
@@ -3203,13 +3210,13 @@ const En = N, Vn = o.forwardRef((s, t) => {
3203
3210
  ariaLabel: g,
3204
3211
  max: d,
3205
3212
  min: u,
3206
- name: f,
3213
+ name: m,
3207
3214
  onChange: this.handleInputValueChange,
3208
3215
  required: I,
3209
- tabIndex: H ? -1 : a,
3210
- title: r,
3216
+ tabIndex: B ? -1 : a,
3217
+ title: o,
3211
3218
  valid: this.validity.valid,
3212
- validationMessage: y,
3219
+ validationMessage: S,
3213
3220
  validityStyles: M,
3214
3221
  value: V,
3215
3222
  label: void 0,
@@ -3218,7 +3225,7 @@ const En = N, Vn = o.forwardRef((s, t) => {
3218
3225
  size: null,
3219
3226
  fillMode: null,
3220
3227
  rounded: null
3221
- }, S = q(this).toLanguageString(We, T[We]), O = /* @__PURE__ */ o.createElement(
3228
+ }, x = W(this).toLanguageString(We, T[We]), O = /* @__PURE__ */ r.createElement(
3222
3229
  we,
3223
3230
  {
3224
3231
  onFocus: this.handleFocus,
@@ -3226,7 +3233,7 @@ const En = N, Vn = o.forwardRef((s, t) => {
3226
3233
  onSyncBlur: this.props.onBlur,
3227
3234
  onSyncFocus: this.props.onFocus
3228
3235
  },
3229
- ({ onFocus: tt, onBlur: j }) => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
3236
+ ({ onFocus: tt, onBlur: j }) => /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
3230
3237
  "span",
3231
3238
  {
3232
3239
  ref: (gt) => {
@@ -3246,12 +3253,12 @@ const En = N, Vn = o.forwardRef((s, t) => {
3246
3253
  p
3247
3254
  ),
3248
3255
  onKeyDown: this.handleKeyDown,
3249
- style: { width: m },
3256
+ style: { width: f },
3250
3257
  onFocus: tt,
3251
3258
  onBlur: j,
3252
3259
  onClick: this.mobileMode ? this.handleIconClick : void 0
3253
3260
  },
3254
- /* @__PURE__ */ o.createElement(
3261
+ /* @__PURE__ */ r.createElement(
3255
3262
  this.dateInputComp,
3256
3263
  {
3257
3264
  _ref: this._dateInput,
@@ -3262,24 +3269,24 @@ const En = N, Vn = o.forwardRef((s, t) => {
3262
3269
  ...A
3263
3270
  }
3264
3271
  ),
3265
- /* @__PURE__ */ o.createElement(
3272
+ /* @__PURE__ */ r.createElement(
3266
3273
  this.toggleButtonComp,
3267
3274
  {
3268
3275
  type: "button",
3269
3276
  icon: "calendar",
3270
3277
  svgIcon: Fs,
3271
- title: S,
3278
+ title: x,
3272
3279
  className: "k-input-button",
3273
3280
  rounded: null,
3274
3281
  onClick: this.mobileMode ? void 0 : this.handleIconClick,
3275
- "aria-label": S,
3282
+ "aria-label": x,
3276
3283
  onMouseDown: this.handleIconMouseDown
3277
3284
  }
3278
3285
  ),
3279
3286
  !this.mobileMode && this.renderPopup()
3280
3287
  ), this.mobileMode && this.renderAdaptivePopup())
3281
3288
  );
3282
- return this.props.label ? /* @__PURE__ */ o.createElement(
3289
+ return this.props.label ? /* @__PURE__ */ r.createElement(
3283
3290
  cs,
3284
3291
  {
3285
3292
  dateInput: this._dateInput,
@@ -3301,7 +3308,7 @@ const En = N, Vn = o.forwardRef((s, t) => {
3301
3308
  }));
3302
3309
  }
3303
3310
  mergeTime(s) {
3304
- return this.value && s ? W(s, this.value) : s;
3311
+ return this.value && s ? U(s, this.value) : s;
3305
3312
  }
3306
3313
  nextTick(s) {
3307
3314
  clearTimeout(this.nextTickId), this.nextTickId = window.setTimeout(() => s());
@@ -3311,7 +3318,7 @@ const En = N, Vn = o.forwardRef((s, t) => {
3311
3318
  this.setState({ windowWidth: t.target.clientWidth });
3312
3319
  }
3313
3320
  };
3314
- let Xt = B;
3321
+ let Xt = z;
3315
3322
  Xt.displayName = "DatePicker";
3316
3323
  Xt.propTypes = {
3317
3324
  className: n.string,
@@ -3381,7 +3388,7 @@ Xt.propTypes = {
3381
3388
  Xt.defaultProps = {
3382
3389
  defaultShow: !1,
3383
3390
  defaultValue: null,
3384
- dateInput: kt,
3391
+ dateInput: Dt,
3385
3392
  calendar: as,
3386
3393
  toggleButton: En,
3387
3394
  popup: be,
@@ -3399,7 +3406,7 @@ Xt.defaultProps = {
3399
3406
  rounded: "medium",
3400
3407
  fillMode: "solid"
3401
3408
  };
3402
- const Pn = Dt(), Rn = yt(St(Pn, Xt));
3409
+ const Pn = kt(), Rn = yt(St(Pn, Xt));
3403
3410
  Rn.displayName = "KendoReactDatePicker";
3404
3411
  at(Xt);
3405
3412
  const Ne = (s, t) => {
@@ -3414,10 +3421,10 @@ class Ln {
3414
3421
  * @hidden
3415
3422
  */
3416
3423
  apply(t, e) {
3417
- const i = t.getHours(), a = _e(i), r = _e(e.getHours());
3418
- if (a && r || !a && !r)
3424
+ const i = t.getHours(), a = _e(i), o = _e(e.getHours());
3425
+ if (a && o || !a && !o)
3419
3426
  return t;
3420
- const [l, c = 24] = this.normalizedRange(), h = i + (r ? -12 : 12);
3427
+ const [l, c = 24] = this.normalizedRange(), h = i + (o ? -12 : 12);
3421
3428
  return Ne(t, Math.min(Math.max(l, h), c || 24));
3422
3429
  }
3423
3430
  /**
@@ -3434,8 +3441,8 @@ class Ln {
3434
3441
  const e = this.part && this.part.names;
3435
3442
  if (!e || !this.min)
3436
3443
  return [];
3437
- const i = [], [a, r] = this.normalizedRange(), l = this.intl.dateFormatNames(e);
3438
- return _e(a) && i.push({ text: l.am, value: Ne(this.min, a) }), Nn(r) && i.push({ text: l.pm, value: Ne(this.min, Math.max(12, r)) }), this.min.getHours() !== a ? i.reverse() : i;
3444
+ const i = [], [a, o] = this.normalizedRange(), l = this.intl.dateFormatNames(e);
3445
+ return _e(a) && i.push({ text: l.am, value: Ne(this.min, a) }), Nn(o) && i.push({ text: l.pm, value: Ne(this.min, Math.max(12, o)) }), this.min.getHours() !== a ? i.reverse() : i;
3439
3446
  }
3440
3447
  /**
3441
3448
  * @hidden
@@ -3489,18 +3496,18 @@ class Hn {
3489
3496
  calculateHeights(t) {
3490
3497
  if (!J)
3491
3498
  return;
3492
- const e = Y("div"), i = Y("span"), a = Y("ul"), r = Y("li"), l = () => r("<span>02</span>", "k-item"), c = () => a([l()], "k-reset"), h = () => e([c()], "k-content k-scrollable k-time-container"), d = (() => e(
3499
+ const e = Y("div"), i = Y("span"), a = Y("ul"), o = Y("li"), l = () => o("<span>02</span>", "k-item"), c = () => a([l()], "k-reset"), h = () => e([c()], "k-content k-scrollable k-time-container"), d = (() => e(
3493
3500
  [
3494
3501
  i("minute", "k-title"),
3495
3502
  e([h()], "k-time-list")
3496
3503
  ],
3497
3504
  "k-time-list-wrapper",
3498
3505
  { left: "-10000px", position: "absolute" }
3499
- ))(), m = t && t.querySelector(".k-time-container") || document.body, f = m.appendChild(d);
3500
- this.timeListHeight = f.querySelector(".k-scrollable").offsetHeight, this.itemHeight = f.querySelector("li").offsetHeight, m.removeChild(f), this.didCalculate = !0;
3506
+ ))(), f = t && t.querySelector(".k-time-container") || document.body, m = f.appendChild(d);
3507
+ this.timeListHeight = m.querySelector(".k-scrollable").offsetHeight, this.itemHeight = m.querySelector("li").offsetHeight, f.removeChild(m), this.didCalculate = !0;
3501
3508
  }
3502
3509
  }
3503
- const us = 24, An = (s) => (t) => t % s, Ks = An(us), Bn = (s, t) => (e) => Ks(s + e * t), xs = (s, t) => Ks(us + s - t), js = (s) => (t, e) => !e || x(t).getTime() === x(e).getTime() ? t : de(t, s), zn = js(0), qn = js(us - 1);
3510
+ const us = 24, Bn = (s) => (t) => t % s, Ks = Bn(us), An = (s, t) => (e) => Ks(s + e * t), xs = (s, t) => Ks(us + s - t), js = (s) => (t, e) => !e || C(t).getTime() === C(e).getTime() ? t : de(t, s), zn = js(0), qn = js(us - 1);
3504
3511
  class Wn {
3505
3512
  constructor(t) {
3506
3513
  this.intl = t, this.boundRange = !1, this.insertUndividedMax = !1, this.min = null, this.max = null, this.step = 0, this.toListItem = null;
@@ -3513,7 +3520,7 @@ class Wn {
3513
3520
  boundRange: e = this.boundRange,
3514
3521
  insertUndividedMax: i = this.insertUndividedMax,
3515
3522
  min: a = this.min,
3516
- max: r = this.max,
3523
+ max: o = this.max,
3517
3524
  part: l,
3518
3525
  step: c = this.step
3519
3526
  } = t;
@@ -3523,11 +3530,11 @@ class Wn {
3523
3530
  text: this.intl.formatDate(u, l.pattern),
3524
3531
  value: u
3525
3532
  };
3526
- }, this.min = a, this.max = r, this.step = c;
3533
+ }, this.min = a, this.max = o, this.step = c;
3527
3534
  }
3528
3535
  data(t) {
3529
- const [e] = this.range(t), i = Bn(e, this.step), a = (l) => this.toListItem && this.toListItem(i(l)), r = os(0, this.countFromMin(t)).map(a);
3530
- return this.addLast(r), t && this.addMissing(r, t), r;
3536
+ const [e] = this.range(t), i = An(e, this.step), a = (l) => this.toListItem && this.toListItem(i(l)), o = rs(0, this.countFromMin(t)).map(a);
3537
+ return this.addLast(o), t && this.addMissing(o, t), o;
3531
3538
  }
3532
3539
  isRangeChanged(t, e) {
3533
3540
  return !this.min || !this.max ? !1 : !ht(this.min, t) || !ht(this.max, e);
@@ -3591,20 +3598,20 @@ class jn {
3591
3598
  insertUndividedMax: e = this.insertUndividedMax,
3592
3599
  min: i = this.min,
3593
3600
  max: a = this.max,
3594
- part: r,
3601
+ part: o,
3595
3602
  step: l = this.step
3596
3603
  } = t;
3597
3604
  this.insertUndividedMax = e, this.toListItem = (c) => {
3598
3605
  const h = pe(L, c);
3599
3606
  return {
3600
- text: this.intl.formatDate(h, r.pattern),
3607
+ text: this.intl.formatDate(h, o.pattern),
3601
3608
  value: h
3602
3609
  };
3603
3610
  }, this.min = i, this.max = a, this.step = l;
3604
3611
  }
3605
3612
  data(t) {
3606
- const [e] = this.range(t), i = $n(e, this.step), a = (l) => this.toListItem && this.toListItem(i(l)), r = os(0, this.countFromMin(t)).map(a);
3607
- return this.addLast(r), t && this.addMissing(r, t), r;
3613
+ const [e] = this.range(t), i = $n(e, this.step), a = (l) => this.toListItem && this.toListItem(i(l)), o = rs(0, this.countFromMin(t)).map(a);
3614
+ return this.addLast(o), t && this.addMissing(o, t), o;
3608
3615
  }
3609
3616
  isRangeChanged(t, e) {
3610
3617
  return this.min !== null && this.max !== null && (!ht(this.min, t) || !ht(this.max, e));
@@ -3668,20 +3675,20 @@ class Qn {
3668
3675
  insertUndividedMax: e = this.insertUndividedMax,
3669
3676
  min: i = this.min,
3670
3677
  max: a = this.max,
3671
- part: r,
3678
+ part: o,
3672
3679
  step: l = this.step
3673
3680
  } = t;
3674
3681
  this.insertUndividedMax = e, this.toListItem = (c) => {
3675
3682
  const h = me(L, c);
3676
3683
  return {
3677
- text: this.intl.formatDate(h, r.pattern),
3684
+ text: this.intl.formatDate(h, o.pattern),
3678
3685
  value: h
3679
3686
  };
3680
3687
  }, this.min = i, this.max = a, this.step = l;
3681
3688
  }
3682
3689
  data(t) {
3683
- const [e] = this.range(t), i = Gn(e, this.step), a = (l) => this.toListItem && this.toListItem(i(l)), r = os(0, this.countFromMin(t)).map(a);
3684
- return this.addLast(r), t && this.addMissing(r, t), r;
3690
+ const [e] = this.range(t), i = Gn(e, this.step), a = (l) => this.toListItem && this.toListItem(i(l)), o = rs(0, this.countFromMin(t)).map(a);
3691
+ return this.addLast(o), t && this.addMissing(o, t), o;
3685
3692
  }
3686
3693
  isRangeChanged(t, e) {
3687
3694
  return this.min !== null && this.max !== null && (!ht(this.min, t) || !ht(this.max, e));
@@ -3733,16 +3740,16 @@ class Qn {
3733
3740
  }
3734
3741
  }
3735
3742
  const ta = 2, Ms = 0.05, ea = 100, sa = 0, Ts = 9, ia = {
3736
- [C.end]: (s, t) => s[s.length - 1],
3737
- [C.home]: (s, t) => s[0],
3738
- [C.up]: (s, t) => s[t - 1],
3739
- [C.down]: (s, t) => s[t + 1]
3743
+ [k.end]: (s, t) => s[s.length - 1],
3744
+ [k.home]: (s, t) => s[0],
3745
+ [k.up]: (s, t) => s[t - 1],
3746
+ [k.down]: (s, t) => s[t + 1]
3740
3747
  }, es = {
3741
3748
  [X.dayperiod]: Ln,
3742
3749
  [X.hour]: Wn,
3743
3750
  [X.minute]: jn,
3744
3751
  [X.second]: Qn
3745
- }, Tt = class extends o.Component {
3752
+ }, Tt = class extends r.Component {
3746
3753
  constructor(s) {
3747
3754
  super(s), this.intl = null, this._element = null, this.service = null, this.virtualization = null, this.topOffset = 0, this.bottomOffset = 0, this.itemHeight = 0, this.listHeight = 0, this.topThreshold = 0, this.bottomThreshold = 0, this.animateToIndex = !1, this.focus = (t) => {
3748
3755
  Promise.resolve().then(() => {
@@ -3751,17 +3758,17 @@ const ta = 2, Ms = 0.05, ea = 100, sa = 0, Ts = 9, ia = {
3751
3758
  }, this.itemOffset = (t) => {
3752
3759
  if (!this.virtualization || !this.service)
3753
3760
  return -1;
3754
- const e = this.service.selectedIndex(this.props.value), i = this.virtualization.activeIndex(), a = this.virtualization.itemOffset(i), r = Math.abs(Math.ceil(t) - a);
3755
- if (e === i && r < ta)
3761
+ const e = this.service.selectedIndex(this.props.value), i = this.virtualization.activeIndex(), a = this.virtualization.itemOffset(i), o = Math.abs(Math.ceil(t) - a);
3762
+ if (e === i && o < ta)
3756
3763
  return a;
3757
3764
  const l = e > i;
3758
- return l && r >= this.bottomThreshold || !l && r > this.topThreshold ? this.virtualization.itemOffset(i + 1) : a;
3765
+ return l && o >= this.bottomThreshold || !l && o > this.topThreshold ? this.virtualization.itemOffset(i + 1) : a;
3759
3766
  }, this.calculateHeights = () => {
3760
3767
  this.dom.didCalculate && (this.itemHeight = this.dom.itemHeight, this.listHeight = this.dom.timeListHeight, this.topOffset = (this.listHeight - this.itemHeight) / 2, this.bottomOffset = this.listHeight - this.itemHeight, this.props.mobileMode && (this.topOffset += Ts, this.bottomOffset += Ts * 2), this.topThreshold = this.itemHeight * Ms, this.bottomThreshold = this.itemHeight * (1 - Ms));
3761
3768
  }, this.configureServices = ({ min: t, max: e, value: i } = this.props) => {
3762
3769
  if (this.service) {
3763
- const [a, r] = this.service.limitRange(t || this.min, e || this.max, i || this.props.value);
3764
- this.service.configure(this.serviceSettings({ min: a, max: r }));
3770
+ const [a, o] = this.service.limitRange(t || this.min, e || this.max, i || this.props.value);
3771
+ this.service.configure(this.serviceSettings({ min: a, max: o }));
3765
3772
  }
3766
3773
  }, this.serviceSettings = (t) => {
3767
3774
  const e = {
@@ -3794,7 +3801,7 @@ const ta = 2, Ms = 0.05, ea = 100, sa = 0, Ts = 9, ia = {
3794
3801
  if (!this.service)
3795
3802
  return;
3796
3803
  const { keyCode: e } = t;
3797
- (e === C.down || e === C.up || e === C.end || e === C.home) && t.preventDefault();
3804
+ (e === k.down || e === k.up || e === k.end || e === k.home) && t.preventDefault();
3798
3805
  const a = (ia[t.keyCode] || Rs)(
3799
3806
  this.service.data(this.props.value),
3800
3807
  this.service.selectedIndex(this.props.value)
@@ -3849,25 +3856,25 @@ const ta = 2, Ms = 0.05, ea = 100, sa = 0, Ts = 9, ia = {
3849
3856
  if (!this.props.part.type || !es[this.props.part.type])
3850
3857
  return;
3851
3858
  this.calculateHeights(), this.intl = ct(this), this.service = new es[this.props.part.type](this.intl), this.configureServices();
3852
- const s = this.service.data(this.props.value), t = "translateY(" + this.topOffset + "px)", e = this.service.total(this.props.value), i = /* @__PURE__ */ o.createElement(
3859
+ const s = this.service.data(this.props.value), t = "translateY(" + this.topOffset + "px)", e = this.service.total(this.props.value), i = /* @__PURE__ */ r.createElement(
3853
3860
  "ul",
3854
3861
  {
3855
3862
  style: { transform: t, msTransform: t },
3856
3863
  className: "k-reset"
3857
3864
  },
3858
- s.map((a, r) => /* @__PURE__ */ o.createElement(
3865
+ s.map((a, o) => /* @__PURE__ */ r.createElement(
3859
3866
  "li",
3860
3867
  {
3861
- key: r,
3868
+ key: o,
3862
3869
  className: "k-item",
3863
3870
  onClick: () => {
3864
3871
  this.handleChange(a);
3865
3872
  }
3866
3873
  },
3867
- /* @__PURE__ */ o.createElement("span", null, a.text)
3874
+ /* @__PURE__ */ r.createElement("span", null, a.text)
3868
3875
  ))
3869
3876
  );
3870
- return /* @__PURE__ */ o.createElement(
3877
+ return /* @__PURE__ */ r.createElement(
3871
3878
  "div",
3872
3879
  {
3873
3880
  className: "k-time-list",
@@ -3881,7 +3888,7 @@ const ta = 2, Ms = 0.05, ea = 100, sa = 0, Ts = 9, ia = {
3881
3888
  onBlur: this.handleBlur,
3882
3889
  onMouseOver: this.handleMouseOver
3883
3890
  },
3884
- this.dom.didCalculate ? /* @__PURE__ */ o.createElement(
3891
+ this.dom.didCalculate ? /* @__PURE__ */ r.createElement(
3885
3892
  Kt,
3886
3893
  {
3887
3894
  bottomOffset: this.bottomOffset,
@@ -3900,7 +3907,7 @@ const ta = 2, Ms = 0.05, ea = 100, sa = 0, Ts = 9, ia = {
3900
3907
  topOffset: this.topOffset,
3901
3908
  total: e
3902
3909
  }
3903
- ) : /* @__PURE__ */ o.createElement("div", { className: "k-time-container" }, i)
3910
+ ) : /* @__PURE__ */ r.createElement("div", { className: "k-time-container" }, i)
3904
3911
  );
3905
3912
  }
3906
3913
  };
@@ -3939,12 +3946,13 @@ Ce.defaultProps = {
3939
3946
  smoothScroll: !0
3940
3947
  };
3941
3948
  ft(Ce);
3942
- const Fe = new RegExp(`${X.hour}|${X.minute}|${X.second}|${X.dayperiod}|literal`), vt = class extends o.Component {
3949
+ const Fe = new RegExp(`${X.hour}|${X.minute}|${X.second}|${X.dayperiod}|literal`), vt = class extends r.Component {
3943
3950
  constructor(s) {
3944
- super(s), this._element = null, this._nowButton = null, this.dateFormatParts = [], this.timeLists = [], this.focus = (t) => {
3951
+ super(s), this._element = null, this._nowButton = null, this.dateFormatParts = [], this.timeLists = [], this.focus = (t, e) => {
3945
3952
  Promise.resolve().then(() => {
3946
- const e = this.timeLists[0];
3947
- this.state.activeListIndex === -1 && !this.hasActiveButton() && e && e.element && e.focus(t);
3953
+ e && this._nowButton && this._nowButton.element && this._nowButton.element.focus();
3954
+ const i = this.timeLists[0];
3955
+ !e && this.state.activeListIndex === -1 && !this.hasActiveButton() && i && i.element && i.focus(t);
3948
3956
  });
3949
3957
  }, this.timeFormatReducer = (t, e) => t + e.pattern, this.timeFormatFilter = (t, e, i) => {
3950
3958
  const a = e >= 1 && i[e - 1];
@@ -3957,13 +3965,13 @@ const Fe = new RegExp(`${X.hour}|${X.minute}|${X.second}|${X.dayperiod}|literal`
3957
3965
  }], this.showNowButton = () => !this.hasSteps() && this.props.nowButton && hs(Vt(), this.min, this.max), this.handleKeyDown = (t) => {
3958
3966
  const { keyCode: e } = t;
3959
3967
  switch (e) {
3960
- case C.left:
3968
+ case k.left:
3961
3969
  t.preventDefault(), this.focusList(
3962
3970
  0
3963
3971
  /* Left */
3964
3972
  );
3965
3973
  return;
3966
- case C.right:
3974
+ case k.right:
3967
3975
  t.preventDefault(), this.focusList(
3968
3976
  1
3969
3977
  /* Right */
@@ -3984,7 +3992,7 @@ const Fe = new RegExp(`${X.hour}|${X.minute}|${X.second}|${X.dayperiod}|literal`
3984
3992
  const { onChange: e } = this.props;
3985
3993
  e && e.call(void 0, t);
3986
3994
  }, this.snapTime = ys(
3987
- Ds(this.props.steps, this.props.min || vt.defaultProps.min)
3995
+ ks(this.props.steps, this.props.min || vt.defaultProps.min)
3988
3996
  ), this.state = {
3989
3997
  activeListIndex: -1
3990
3998
  }, this.hasActiveButton = this.hasActiveButton.bind(this);
@@ -4037,86 +4045,88 @@ const Fe = new RegExp(`${X.hour}|${X.minute}|${X.second}|${X.dayperiod}|literal`
4037
4045
  onNowClick: e,
4038
4046
  className: i,
4039
4047
  disabled: a,
4040
- mobileMode: r,
4041
- show: l
4048
+ mobileMode: o,
4049
+ show: l,
4050
+ onNowKeyDown: c
4042
4051
  } = this.props;
4043
- this.snapTime = ys(Ds(this.steps, this.min)), this.dateFormatParts = this.intl.splitDateFormat(s || vt.defaultProps.format).filter(this.timeFormatFilter);
4044
- const c = P(
4052
+ this.snapTime = ys(ks(this.steps, this.min)), this.dateFormatParts = this.intl.splitDateFormat(s || vt.defaultProps.format).filter(this.timeFormatFilter);
4053
+ const h = P(
4045
4054
  {
4046
4055
  "k-disabled": a,
4047
- "k-time-part": r
4056
+ "k-time-part": o
4048
4057
  },
4049
4058
  i
4050
4059
  );
4051
4060
  this.timeLists = [];
4052
- const h = q(this), u = h.toLanguageString(je, T[je]);
4053
- return /* @__PURE__ */ o.createElement("div", { className: c }, /* @__PURE__ */ o.createElement("div", { className: "k-time-header" }, /* @__PURE__ */ o.createElement("span", { className: "k-title" }, this.intl.formatDate(this.value, this.dateFormatParts.reduce(this.timeFormatReducer, ""))), this.showNowButton() && /* @__PURE__ */ o.createElement(
4061
+ const u = W(this), d = u.toLanguageString(je, T[je]);
4062
+ return /* @__PURE__ */ r.createElement("div", { className: h }, /* @__PURE__ */ r.createElement("div", { className: "k-time-header" }, /* @__PURE__ */ r.createElement("span", { className: "k-title" }, this.intl.formatDate(this.value, this.dateFormatParts.reduce(this.timeFormatReducer, ""))), this.showNowButton() && /* @__PURE__ */ r.createElement(
4054
4063
  N,
4055
4064
  {
4056
4065
  type: "button",
4057
- ref: (d) => {
4058
- this._nowButton = d;
4066
+ ref: (p) => {
4067
+ this._nowButton = p;
4059
4068
  },
4060
4069
  className: "k-time-now",
4061
4070
  fillMode: "flat",
4062
4071
  themeColor: "primary",
4063
- title: u,
4064
- "aria-label": u,
4072
+ title: d,
4073
+ onKeyDown: c,
4074
+ "aria-label": d,
4065
4075
  onClick: e,
4066
4076
  tabIndex: a ? -1 : 0
4067
4077
  },
4068
- h.toLanguageString(Ke, T[Ke])
4069
- )), /* @__PURE__ */ o.createElement(
4078
+ u.toLanguageString(Ke, T[Ke])
4079
+ )), /* @__PURE__ */ r.createElement(
4070
4080
  "div",
4071
4081
  {
4072
4082
  className: "k-time-list-container",
4073
4083
  onKeyDown: this.handleKeyDown
4074
4084
  },
4075
- /* @__PURE__ */ o.createElement("span", { className: "k-time-highlight" }),
4076
- this.dateFormatParts.map((d, p) => d.type !== "literal" ? /* @__PURE__ */ o.createElement(
4085
+ /* @__PURE__ */ r.createElement("span", { className: "k-time-highlight" }),
4086
+ this.dateFormatParts.map((p, f) => p.type !== "literal" ? /* @__PURE__ */ r.createElement(
4077
4087
  "div",
4078
4088
  {
4079
- key: p,
4089
+ key: f,
4080
4090
  className: P("k-time-list-wrapper", {
4081
- "k-focus": p === this.state.activeListIndex
4091
+ "k-focus": f === this.state.activeListIndex
4082
4092
  }),
4083
4093
  role: "presentation",
4084
4094
  tabIndex: -1
4085
4095
  },
4086
- /* @__PURE__ */ o.createElement("span", { className: "k-title", onMouseDown: (m) => {
4096
+ /* @__PURE__ */ r.createElement("span", { className: "k-title", onMouseDown: (m) => {
4087
4097
  m.preventDefault();
4088
- } }, this.intl.dateFieldName(d)),
4089
- /* @__PURE__ */ o.createElement(
4098
+ } }, this.intl.dateFieldName(p)),
4099
+ /* @__PURE__ */ r.createElement(
4090
4100
  Ce,
4091
4101
  {
4092
4102
  min: this.min,
4093
4103
  max: this.max,
4094
4104
  boundRange: this.boundRange,
4095
- part: d,
4096
- step: d.type ? this.steps[d.type] : 1,
4105
+ part: p,
4106
+ step: p.type ? this.steps[p.type] : 1,
4097
4107
  smoothScroll: t,
4098
4108
  ref: (m) => {
4099
4109
  m && this.timeLists.push(m);
4100
4110
  },
4101
- id: p,
4111
+ id: f,
4102
4112
  onFocus: () => {
4103
- this.handleListFocus(p);
4113
+ this.handleListFocus(f);
4104
4114
  },
4105
4115
  onBlur: this.handleListBlur,
4106
4116
  onChange: this.handleChange,
4107
4117
  value: this.value,
4108
4118
  disabled: a,
4109
4119
  show: l,
4110
- mobileMode: r
4120
+ mobileMode: o
4111
4121
  }
4112
4122
  )
4113
- ) : /* @__PURE__ */ o.createElement(
4123
+ ) : /* @__PURE__ */ r.createElement(
4114
4124
  "div",
4115
4125
  {
4116
- key: p,
4126
+ key: f,
4117
4127
  className: "k-time-separator"
4118
4128
  },
4119
- d.pattern
4129
+ p.pattern
4120
4130
  ))
4121
4131
  ));
4122
4132
  }
@@ -4182,19 +4192,26 @@ _t.defaultProps = {
4182
4192
  };
4183
4193
  ft(_t);
4184
4194
  at(_t);
4185
- const ss = class extends o.Component {
4195
+ const ss = class extends r.Component {
4186
4196
  constructor(s) {
4187
4197
  super(s), this._element = null, this._cancelButton = null, this._acceptButton = null, this.timePart = null, this.focusActiveList = () => {
4188
4198
  this.timePart && this.timePart.focus({ preventScroll: !0 });
4189
4199
  }, this.handleKeyDown = (t) => {
4190
4200
  const { keyCode: e } = t;
4191
4201
  switch (e) {
4192
- case C.enter:
4202
+ case k.enter:
4193
4203
  this.hasActiveButton() || this.handleAccept(t);
4194
4204
  return;
4195
4205
  default:
4196
4206
  return;
4197
4207
  }
4208
+ }, this.revertToNowButton = (t) => {
4209
+ const { keyCode: e, shiftKey: i } = t;
4210
+ !i && e === k.tab && (t.preventDefault(), this.props.nowButton !== !1 ? this.timePart && this.timePart.focus({ preventScroll: !0 }, !0) : this.timePart && this.timePart.focus({ preventScroll: !0 }));
4211
+ }, this.handleNowKeyDown = (t) => {
4212
+ var a;
4213
+ const { keyCode: e, shiftKey: i } = t;
4214
+ i && e === k.tab ? (t.preventDefault(), this._acceptButton && ((a = this._acceptButton.element) == null || a.focus({ preventScroll: !0 }))) : e === k.enter && (t.stopPropagation(), this.handleNowClick(t));
4198
4215
  }, this.handleAccept = (t) => {
4199
4216
  const e = this.mergeValue(
4200
4217
  v(this.value || Vt()),
@@ -4234,7 +4251,7 @@ const ss = class extends o.Component {
4234
4251
  e && e.call(void 0, {
4235
4252
  time: t
4236
4253
  });
4237
- }, this.dateFormatParts = this.intl.splitDateFormat(this.props.format || ss.defaultProps.format), this.mergeValue = yn(Dn(this.dateFormatParts)), this.hasActiveButton = this.hasActiveButton.bind(this), this.state = {
4254
+ }, this.dateFormatParts = this.intl.splitDateFormat(this.props.format || ss.defaultProps.format), this.mergeValue = yn(kn(this.dateFormatParts)), this.hasActiveButton = this.hasActiveButton.bind(this), this.state = {
4238
4255
  current: this.props.value || L,
4239
4256
  value: this.props.value || ss.defaultProps.value
4240
4257
  };
@@ -4271,16 +4288,16 @@ const ss = class extends o.Component {
4271
4288
  disabled: e,
4272
4289
  tabIndex: i,
4273
4290
  className: a,
4274
- smoothScroll: r,
4291
+ smoothScroll: o,
4275
4292
  min: l,
4276
4293
  max: c,
4277
4294
  boundRange: h,
4278
4295
  nowButton: u,
4279
4296
  steps: d,
4280
4297
  show: p,
4281
- mobileMode: m
4282
- } = this.props, f = q(this), y = f.toLanguageString(ve, T[ve]), I = f.toLanguageString(Ut, T[Ut]);
4283
- return /* @__PURE__ */ o.createElement(
4298
+ mobileMode: f
4299
+ } = this.props, m = W(this), S = m.toLanguageString(ve, T[ve]), I = m.toLanguageString(Ut, T[Ut]);
4300
+ return /* @__PURE__ */ r.createElement(
4284
4301
  "div",
4285
4302
  {
4286
4303
  ref: (M) => {
@@ -4292,7 +4309,7 @@ const ss = class extends o.Component {
4292
4309
  }),
4293
4310
  onKeyDown: this.handleKeyDown
4294
4311
  },
4295
- /* @__PURE__ */ o.createElement(
4312
+ /* @__PURE__ */ r.createElement(
4296
4313
  _t,
4297
4314
  {
4298
4315
  ref: (M) => {
@@ -4302,7 +4319,7 @@ const ss = class extends o.Component {
4302
4319
  onChange: this.handleChange,
4303
4320
  onNowClick: this.handleNowClick,
4304
4321
  format: s,
4305
- smoothScroll: r,
4322
+ smoothScroll: o,
4306
4323
  min: l,
4307
4324
  max: c,
4308
4325
  boundRange: h,
@@ -4310,10 +4327,11 @@ const ss = class extends o.Component {
4310
4327
  nowButton: u,
4311
4328
  steps: d,
4312
4329
  show: p,
4313
- mobileMode: m
4330
+ mobileMode: f,
4331
+ onNowKeyDown: this.handleNowKeyDown
4314
4332
  }
4315
4333
  ),
4316
- this.props.footer && /* @__PURE__ */ o.createElement("div", { className: "k-time-footer k-actions k-actions-stretched" }, t && /* @__PURE__ */ o.createElement(
4334
+ this.props.footer && /* @__PURE__ */ r.createElement("div", { className: "k-time-footer k-actions k-actions-stretched" }, t && /* @__PURE__ */ r.createElement(
4317
4335
  N,
4318
4336
  {
4319
4337
  type: "button",
@@ -4322,11 +4340,11 @@ const ss = class extends o.Component {
4322
4340
  },
4323
4341
  className: "k-time-cancel",
4324
4342
  onClick: this.handleReject,
4325
- title: y,
4326
- "aria-label": y
4343
+ title: S,
4344
+ "aria-label": S
4327
4345
  },
4328
- y
4329
- ), /* @__PURE__ */ o.createElement(
4346
+ S
4347
+ ), /* @__PURE__ */ r.createElement(
4330
4348
  N,
4331
4349
  {
4332
4350
  type: "button",
@@ -4336,6 +4354,7 @@ const ss = class extends o.Component {
4336
4354
  className: "k-time-accept",
4337
4355
  themeColor: "primary",
4338
4356
  onClick: this.handleAccept,
4357
+ onKeyDown: this.revertToNowButton,
4339
4358
  title: I,
4340
4359
  "aria-label": I
4341
4360
  },
@@ -4403,13 +4422,13 @@ Jt.defaultProps = {
4403
4422
  };
4404
4423
  ft(Jt);
4405
4424
  at(Jt);
4406
- const G = class extends o.Component {
4425
+ const G = class extends r.Component {
4407
4426
  constructor(s) {
4408
- super(s), this._element = null, this._dateInput = o.createRef(), this._timeSelector = null, this.shouldFocusDateInput = !1, this.prevShow = !1, this.focus = () => {
4427
+ super(s), this._element = null, this._dateInput = r.createRef(), this._timeSelector = null, this.shouldFocusDateInput = !1, this.prevShow = !1, this.focus = () => {
4409
4428
  this.dateInput && this.dateInput.focus();
4410
4429
  }, this.renderTimeSelector = () => {
4411
- const { smoothScroll: t, cancelButton: e, nowButton: i, disabled: a, format: r, steps: l } = this.props;
4412
- return /* @__PURE__ */ o.createElement(
4430
+ const { smoothScroll: t, cancelButton: e, nowButton: i, disabled: a, format: o, steps: l } = this.props;
4431
+ return /* @__PURE__ */ r.createElement(
4413
4432
  Jt,
4414
4433
  {
4415
4434
  ref: this.setTimeSelectorRef,
@@ -4419,7 +4438,7 @@ const G = class extends o.Component {
4419
4438
  cancelButton: e,
4420
4439
  disabled: a,
4421
4440
  nowButton: i,
4422
- format: r,
4441
+ format: o,
4423
4442
  min: this.min,
4424
4443
  max: this.max,
4425
4444
  steps: l,
@@ -4452,7 +4471,7 @@ const G = class extends o.Component {
4452
4471
  },
4453
4472
  ...e
4454
4473
  };
4455
- return this.props.popup ? /* @__PURE__ */ o.createElement(this.props.popup, { ...a }, this.renderTimeSelector()) : /* @__PURE__ */ o.createElement(be, { ...a }, this.renderTimeSelector());
4474
+ return this.props.popup ? /* @__PURE__ */ r.createElement(this.props.popup, { ...a }, this.renderTimeSelector()) : /* @__PURE__ */ r.createElement(be, { ...a }, this.renderTimeSelector());
4456
4475
  }, this.renderAdaptivePopup = () => {
4457
4476
  const { windowWidth: t = 0 } = this.state, e = {
4458
4477
  expand: this.show,
@@ -4466,7 +4485,7 @@ const G = class extends o.Component {
4466
4485
  onApply: (i) => this.handleValueChange(i)
4467
4486
  }
4468
4487
  };
4469
- return /* @__PURE__ */ o.createElement(Se, { ...e }, /* @__PURE__ */ o.createElement(ke, { className: "!k-overflow-hidden" }, this.renderTimeSelector()));
4488
+ return /* @__PURE__ */ r.createElement(Se, { ...e }, /* @__PURE__ */ r.createElement(De, { className: "!k-overflow-hidden" }, this.renderTimeSelector()));
4470
4489
  }, this.setTimeSelectorRef = (t) => {
4471
4490
  this._timeSelector = t;
4472
4491
  }, this.nextValue = (t, e) => t.value !== void 0 ? t.value : e.value, this.nextShow = (t, e) => t.show !== void 0 ? t.show : e.show, this.handleInputValueChange = (t) => {
@@ -4498,11 +4517,11 @@ const G = class extends o.Component {
4498
4517
  t.preventDefault();
4499
4518
  }, this.handleKeyDown = (t) => {
4500
4519
  const { altKey: e, keyCode: i } = t;
4501
- if (i === C.esc) {
4520
+ if (i === k.esc) {
4502
4521
  this.shouldFocusDateInput = !0, this.setShow(!1);
4503
4522
  return;
4504
4523
  }
4505
- e && (i === C.up || i === C.down) && (t.preventDefault(), t.stopPropagation(), this.shouldFocusDateInput = i === C.up, this.setShow(i === C.down));
4524
+ e && (i === k.up || i === k.down) && (t.preventDefault(), t.stopPropagation(), this.shouldFocusDateInput = i === k.up, this.setShow(i === k.down));
4506
4525
  }, Pt(Rt), this.state = {
4507
4526
  value: this.props.defaultValue || G.defaultProps.defaultValue,
4508
4527
  show: this.props.defaultShow || G.defaultProps.defaultShow,
@@ -4558,7 +4577,7 @@ const G = class extends o.Component {
4558
4577
  * Represents the validity state into which the TimePicker is set.
4559
4578
  */
4560
4579
  get validity() {
4561
- const s = this.value && this.normalizeTime(this.value), t = this.normalizeTime(this.min), e = this.normalizeTime(this.max), i = xn(s, t, e), a = this.props.validationMessage !== void 0, r = (!this.required || this.value !== null) && i, l = this.props.valid !== void 0 ? this.props.valid : r;
4580
+ const s = this.value && this.normalizeTime(this.value), t = this.normalizeTime(this.min), e = this.normalizeTime(this.max), i = xn(s, t, e), a = this.props.validationMessage !== void 0, o = (!this.required || this.value !== null) && i, l = this.props.valid !== void 0 ? this.props.valid : o;
4562
4581
  return {
4563
4582
  customError: a,
4564
4583
  rangeOverflow: In(s, e),
@@ -4598,7 +4617,7 @@ const G = class extends o.Component {
4598
4617
  return this.props.dateInput || G.defaultProps.dateInput;
4599
4618
  }
4600
4619
  get localizationService() {
4601
- return q(this);
4620
+ return W(this);
4602
4621
  }
4603
4622
  /**
4604
4623
  * @hidden
@@ -4630,16 +4649,16 @@ const G = class extends o.Component {
4630
4649
  fillMode: e = G.defaultProps.fillMode,
4631
4650
  disabled: i,
4632
4651
  tabIndex: a,
4633
- title: r,
4652
+ title: o,
4634
4653
  id: l,
4635
4654
  className: c,
4636
4655
  format: h,
4637
4656
  formatPlaceholder: u,
4638
4657
  width: d,
4639
4658
  name: p,
4640
- steps: m,
4641
- validationMessage: f,
4642
- required: y,
4659
+ steps: f,
4660
+ validationMessage: m,
4661
+ required: S,
4643
4662
  validityStyles: I,
4644
4663
  ariaLabelledBy: M,
4645
4664
  ariaDescribedBy: w
@@ -4654,12 +4673,12 @@ const G = class extends o.Component {
4654
4673
  min: this.normalizeTime(this.min),
4655
4674
  name: p,
4656
4675
  onChange: this.handleInputValueChange,
4657
- required: y,
4658
- steps: m,
4676
+ required: S,
4677
+ steps: f,
4659
4678
  tabIndex: this.show ? -1 : a,
4660
- title: r,
4679
+ title: o,
4661
4680
  valid: this.validity.valid,
4662
- validationMessage: f,
4681
+ validationMessage: m,
4663
4682
  validityStyles: I,
4664
4683
  value: this.value && this.normalizeTime(this.value),
4665
4684
  label: void 0,
@@ -4670,7 +4689,7 @@ const G = class extends o.Component {
4670
4689
  fillMode: null,
4671
4690
  rounded: null,
4672
4691
  readonly: this.mobileMode
4673
- }, H = this.localizationService.toLanguageString(ue, T[ue]), V = this.localizationService.toLanguageString(Ze, T[Ze]), R = /* @__PURE__ */ o.createElement(
4692
+ }, B = this.localizationService.toLanguageString(ue, T[ue]), V = this.localizationService.toLanguageString(Ze, T[Ze]), R = /* @__PURE__ */ r.createElement(
4674
4693
  we,
4675
4694
  {
4676
4695
  onFocus: this.handleFocus,
@@ -4678,7 +4697,7 @@ const G = class extends o.Component {
4678
4697
  onSyncBlur: this.props.onBlur,
4679
4698
  onSyncFocus: this.props.onFocus
4680
4699
  },
4681
- ({ onFocus: A, onBlur: S }) => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
4700
+ ({ onFocus: A, onBlur: x }) => /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
4682
4701
  "div",
4683
4702
  {
4684
4703
  id: this.props.id,
@@ -4701,10 +4720,10 @@ const G = class extends o.Component {
4701
4720
  onKeyDown: this.handleKeyDown,
4702
4721
  style: { width: d },
4703
4722
  onFocus: A,
4704
- onBlur: S,
4723
+ onBlur: x,
4705
4724
  onClick: this.mobileMode ? this.handleIconClick : void 0
4706
4725
  },
4707
- /* @__PURE__ */ o.createElement(
4726
+ /* @__PURE__ */ r.createElement(
4708
4727
  this.dateInputComp,
4709
4728
  {
4710
4729
  _ref: this._dateInput,
@@ -4713,7 +4732,7 @@ const G = class extends o.Component {
4713
4732
  ...g
4714
4733
  }
4715
4734
  ),
4716
- /* @__PURE__ */ o.createElement(
4735
+ /* @__PURE__ */ r.createElement(
4717
4736
  N,
4718
4737
  {
4719
4738
  tabIndex: -1,
@@ -4725,13 +4744,13 @@ const G = class extends o.Component {
4725
4744
  title: V,
4726
4745
  className: "k-input-button",
4727
4746
  rounded: null,
4728
- "aria-label": H
4747
+ "aria-label": B
4729
4748
  }
4730
4749
  ),
4731
4750
  !this.mobileMode && this.renderPopup()
4732
4751
  ), this.mobileMode && this.renderAdaptivePopup())
4733
4752
  );
4734
- return this.props.label ? /* @__PURE__ */ o.createElement(
4753
+ return this.props.label ? /* @__PURE__ */ r.createElement(
4735
4754
  cs,
4736
4755
  {
4737
4756
  dateInput: this._dateInput,
@@ -4745,7 +4764,7 @@ const G = class extends o.Component {
4745
4764
  ) : R;
4746
4765
  }
4747
4766
  normalizeTime(s) {
4748
- return W(L, s);
4767
+ return U(L, s);
4749
4768
  }
4750
4769
  setShow(s) {
4751
4770
  const { onOpen: t, onClose: e } = this.props;
@@ -4756,7 +4775,7 @@ const G = class extends o.Component {
4756
4775
  }));
4757
4776
  }
4758
4777
  mergeTime(s) {
4759
- return this.value && s ? W(this.value, s) : s;
4778
+ return this.value && s ? U(this.value, s) : s;
4760
4779
  }
4761
4780
  calculateMedia(s) {
4762
4781
  for (let t of s)
@@ -4845,15 +4864,15 @@ Qt.defaultProps = {
4845
4864
  steps: {},
4846
4865
  required: !1,
4847
4866
  validityStyles: !0,
4848
- dateInput: kt,
4867
+ dateInput: Dt,
4849
4868
  size: "medium",
4850
4869
  rounded: "medium",
4851
4870
  fillMode: "solid"
4852
4871
  };
4853
- const na = Dt(), aa = yt(St(na, Qt));
4872
+ const na = kt(), aa = yt(St(na, Qt));
4854
4873
  aa.displayName = "KendoReactTimePicker";
4855
4874
  at(Qt);
4856
- const Es = 2, is = class extends o.Component {
4875
+ const Es = 2, is = class extends r.Component {
4857
4876
  constructor(s) {
4858
4877
  super(s), this._element = null, this.isActive = !1, this.focusActiveDate = () => {
4859
4878
  if (!this._element)
@@ -4891,7 +4910,7 @@ const Es = 2, is = class extends o.Component {
4891
4910
  return this._element;
4892
4911
  }
4893
4912
  get weekNumber() {
4894
- return !!(this.props.showWeekNumbers && this.props.activeView === D.month);
4913
+ return !!(this.props.showWeekNumbers && this.props.activeView === y.month);
4895
4914
  }
4896
4915
  get min() {
4897
4916
  return this.props.min !== void 0 ? this.props.min : is.defaultProps.min;
@@ -4908,13 +4927,13 @@ const Es = 2, is = class extends o.Component {
4908
4927
  {
4909
4928
  "k-vstack": this.props.verticalView,
4910
4929
  "k-hstack": !this.props.verticalView,
4911
- "k-calendar-monthview": this.props.activeView === D.month,
4912
- "k-calendar-yearview": this.props.activeView === D.year,
4913
- "k-calendar-decadeview": this.props.activeView === D.decade,
4914
- "k-calendar-centuryview": this.props.activeView === D.century
4930
+ "k-calendar-monthview": this.props.activeView === y.month,
4931
+ "k-calendar-yearview": this.props.activeView === y.year,
4932
+ "k-calendar-decadeview": this.props.activeView === y.decade,
4933
+ "k-calendar-centuryview": this.props.activeView === y.century
4915
4934
  }
4916
4935
  );
4917
- return /* @__PURE__ */ o.createElement(
4936
+ return /* @__PURE__ */ r.createElement(
4918
4937
  "div",
4919
4938
  {
4920
4939
  ref: (e) => {
@@ -4922,7 +4941,7 @@ const Es = 2, is = class extends o.Component {
4922
4941
  },
4923
4942
  className: t
4924
4943
  },
4925
- this.props.dates.map((e) => /* @__PURE__ */ o.createElement("table", { className: "k-calendar-table k-content", key: e.getTime(), role: "grid" }, /* @__PURE__ */ o.createElement(
4944
+ this.props.dates.map((e) => /* @__PURE__ */ r.createElement("table", { className: "k-calendar-table k-content", key: e.getTime(), role: "grid" }, /* @__PURE__ */ r.createElement(
4926
4945
  jt,
4927
4946
  {
4928
4947
  bus: this.props.bus,
@@ -4947,8 +4966,8 @@ const Es = 2, is = class extends o.Component {
4947
4966
  );
4948
4967
  }
4949
4968
  };
4950
- let Bt = is;
4951
- Bt.defaultProps = {
4969
+ let At = is;
4970
+ At.defaultProps = {
4952
4971
  showWeekNumbers: !1,
4953
4972
  views: Es,
4954
4973
  take: Es,
@@ -4956,17 +4975,16 @@ Bt.defaultProps = {
4956
4975
  min: ut,
4957
4976
  max: dt
4958
4977
  };
4959
- const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof Date && !Array.isArray(e) && F(x(e), s, t) ? x(e) : null, Vs = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => Array.isArray(e) ? e.filter((i) => F(i, s, t)).map((i) => x(i)) : null, Os = (s) => typeof s == "object" && !(s instanceof Date) && s !== null && !Array.isArray(s) ? s : z, Ps = (s, t, e) => s || t && t[0] || e && e.start, ra = (s, t) => s.start === null && t === null ? "start" : s.end === null ? "end" : "start", Et = class extends o.Component {
4978
+ const Le = (s = rt.defaultProps.min, t = rt.defaultProps.max, e) => e instanceof Date && !Array.isArray(e) && F(C(e), s, t) ? C(e) : null, Vs = (s = rt.defaultProps.min, t = rt.defaultProps.max, e) => Array.isArray(e) ? e.filter((i) => F(i, s, t)).map((i) => C(i)) : null, Os = (s) => typeof s == "object" && !(s instanceof Date) && s !== null && !Array.isArray(s) ? s : q, Ps = (s, t, e) => s || t && t[0] || e && e.start, oa = (s, t) => s.start === null && t === null ? "start" : s.end === null ? "end" : "start", Et = class extends r.Component {
4960
4979
  constructor(s) {
4961
- super(s), this.dates = [], this.selectedDate = null, this.selectedMultiple = null, this.selectedRange = z, this._focusedDate = /* @__PURE__ */ new Date(), this.cellUID = this.props.id + "-cell-uid", this.activeRangeEnd = "start", this._element = null, this.intl = null, this.localization = null, this.service = null, this.calendarViewList = null, this.isActive = !1, this.calculateFocusFromValue = !0, this.focus = () => {
4980
+ super(s), this.dates = [], this.selectedDate = null, this.selectedMultiple = null, this.selectedRange = q, this._focusedDate = /* @__PURE__ */ new Date(), this.cellUID = this.props.id + "-cell-uid", this.activeRangeEnd = "start", this._element = null, this.intl = null, this.localization = null, this.service = null, this.calendarViewList = null, this.isActive = !1, this.calculateFocusFromValue = !0, this.focus = () => {
4962
4981
  this._element && this._element.focus();
4963
4982
  }, this.clampRange = (h) => ({ start: h, end: null }), this.rangeWithFocused = (h, u) => ({
4964
4983
  start: h.start,
4965
4984
  end: h.end === null && h.start !== null && this.isActive ? u : h.end
4966
4985
  }), this.generateRange = (h, u) => {
4967
- let { end: d, start: p } = u;
4968
- const m = u.start !== null && h.getTime() <= u.start.getTime();
4969
- return !this.props.allowReverse && m ? { start: h, end: this.selectedRange.start } : this.activeRange !== "end" ? { start: h, end: d } : { start: p || this.selectedDate, end: h };
4986
+ const { end: d, start: p } = u, f = u.start !== null && h.getTime() <= u.start.getTime();
4987
+ return !this.props.allowReverse && f ? { start: h, end: this.selectedRange.start } : this.activeRange !== "end" ? { start: h, end: d } : { start: p || this.selectedDate, end: h };
4970
4988
  }, this.canNavigate = (h) => {
4971
4989
  if (!this.service)
4972
4990
  return !1;
@@ -5012,17 +5030,21 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
5012
5030
  }, this.handleNextButtonClick = () => {
5013
5031
  this.navigate(b.NextView, this.focusedDate);
5014
5032
  }, this.handleKeyDown = (h) => {
5015
- const { keyCode: u } = h;
5016
- if (u === C.enter) {
5017
- const d = {
5033
+ const { keyCode: d, ctrlKey: p, metaKey: f } = h;
5034
+ if (d === 84) {
5035
+ const m = H();
5036
+ this.calculateFocusFromValue = !1, this.setState({ focusedDate: m, navigateDate: m });
5037
+ }
5038
+ if ((p || f) && (d === k.left && this.handlePrevButtonClick(), d === k.right && this.handleNextButtonClick()), d === k.enter) {
5039
+ const m = {
5018
5040
  syntheticEvent: h,
5019
5041
  nativeEvent: h.nativeEvent,
5020
5042
  value: this.focusedDate,
5021
5043
  target: this
5022
5044
  };
5023
- this.handleDateChange(d);
5045
+ this.handleDateChange(m);
5024
5046
  } else {
5025
- const d = K(
5047
+ const m = K(
5026
5048
  this.navigation.move(
5027
5049
  this.focusedDate,
5028
5050
  this.navigation.action(h),
@@ -5033,9 +5055,9 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
5033
5055
  this.min,
5034
5056
  this.max
5035
5057
  );
5036
- if (wt(this.focusedDate, d))
5058
+ if (wt(this.focusedDate, m))
5037
5059
  return;
5038
- this.dates && this.service && !this.service.isInArray(d, this.dates) && this.setState({ navigateDate: d }), this.calculateFocusFromValue = !1, this.setState({ focusedDate: d });
5060
+ this.dates && this.service && !this.service.isInArray(m, this.dates) && this.setState({ navigateDate: m }), this.calculateFocusFromValue = !1, this.setState({ focusedDate: m });
5039
5061
  }
5040
5062
  h.preventDefault();
5041
5063
  }, this.handleViewChange = ({ view: h }) => {
@@ -5048,7 +5070,7 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
5048
5070
  if (h.isTodayClick)
5049
5071
  this.bus.moveToBottom(this.state.activeView);
5050
5072
  else {
5051
- this.bus.moveDown(this.state.activeView, h.syntheticEvent), this.setState({ focusedDate: u });
5073
+ this.bus.moveDown(this.state.activeView, h.syntheticEvent), this.setState({ focusedDate: u, navigateDate: u });
5052
5074
  return;
5053
5075
  }
5054
5076
  this.calculateFocusFromValue = !0;
@@ -5059,10 +5081,11 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
5059
5081
  break;
5060
5082
  case "multiple":
5061
5083
  if (Array.isArray(this.selectedMultiple)) {
5062
- let f = this.selectedMultiple.slice(), y = -1;
5063
- f.forEach((I, M) => {
5064
- wt(I, h.value) && (y = M);
5065
- }), y !== -1 ? f.splice(y, 1) : f.push(v(h.value)), p = f.slice();
5084
+ const m = this.selectedMultiple.slice();
5085
+ let S = -1;
5086
+ m.forEach((I, M) => {
5087
+ wt(I, h.value) && (S = M);
5088
+ }), S !== -1 ? m.splice(S, 1) : m.push(v(h.value)), p = m.slice();
5066
5089
  } else
5067
5090
  this.selectedDate ? p = [v(this.selectedDate), v(h.value)] : p = [v(h.value)];
5068
5091
  break;
@@ -5075,24 +5098,24 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
5075
5098
  break;
5076
5099
  }
5077
5100
  this.valueDuringOnChange = p, h.isTodayClick && this.setState({ navigateDate: u }), this.setState({ value: p, focusedDate: u }), this.valueDuringOnChange = p;
5078
- const { onChange: m } = this.props;
5079
- if (m) {
5080
- const f = {
5101
+ const { onChange: f } = this.props;
5102
+ if (f) {
5103
+ const m = {
5081
5104
  syntheticEvent: h.syntheticEvent,
5082
5105
  nativeEvent: h.nativeEvent,
5083
5106
  value: p,
5084
5107
  target: this
5085
5108
  };
5086
- m.call(void 0, f);
5109
+ f.call(void 0, m);
5087
5110
  }
5088
5111
  this.valueDuringOnChange = void 0;
5089
5112
  };
5090
- const t = s.value !== void 0 ? s.value : s.defaultValue || Et.defaultProps.defaultValue, e = Le(this.min, this.max, t), i = Vs(this.min, this.max, t), a = Os(t), r = Ps(e, i, a), l = ge(
5091
- D[s.defaultActiveView],
5113
+ const t = s.value !== void 0 ? s.value : s.defaultValue || Et.defaultProps.defaultValue, e = Le(this.min, this.max, t), i = Vs(this.min, this.max, t), a = Os(t), o = Ps(e, i, a), l = ge(
5114
+ y[s.defaultActiveView],
5092
5115
  this.bottomView,
5093
5116
  this.topView
5094
5117
  ), c = K(
5095
- s.focusedDate || r || U(),
5118
+ s.focusedDate || o || H(),
5096
5119
  this.min,
5097
5120
  this.max
5098
5121
  );
@@ -5101,7 +5124,7 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
5101
5124
  activeView: l,
5102
5125
  focusedDate: c,
5103
5126
  navigateDate: c
5104
- }, this.activeRangeEnd = ra(a, e), this.bus = new zs(this.handleViewChange), this.navigation = new qs(this.bus), this.calculateFocusFromValue = !1, this.lastView = l, this.lastViewsCount = this.props.views || Bt.defaultProps.views;
5127
+ }, this.activeRangeEnd = oa(a, e), this.bus = new zs(this.handleViewChange), this.navigation = new qs(this.bus), this.calculateFocusFromValue = !1, this.lastView = l, this.lastViewsCount = this.props.views || At.defaultProps.views;
5105
5128
  }
5106
5129
  get wrapperID() {
5107
5130
  return this.props.id + "-wrapper-id";
@@ -5128,22 +5151,22 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
5128
5151
  return v(this._focusedDate);
5129
5152
  }
5130
5153
  get min() {
5131
- return x(this.props.min !== void 0 ? this.props.min : Et.defaultProps.min);
5154
+ return C(this.props.min !== void 0 ? this.props.min : Et.defaultProps.min);
5132
5155
  }
5133
5156
  get max() {
5134
- return x(this.props.max !== void 0 ? this.props.max : Et.defaultProps.max);
5157
+ return C(this.props.max !== void 0 ? this.props.max : Et.defaultProps.max);
5135
5158
  }
5136
5159
  get bottomView() {
5137
- return D[this.props.bottomView !== void 0 ? this.props.bottomView : Et.defaultProps.bottomView];
5160
+ return y[this.props.bottomView !== void 0 ? this.props.bottomView : Et.defaultProps.bottomView];
5138
5161
  }
5139
5162
  get topView() {
5140
- return D[this.props.topView !== void 0 ? this.props.topView : Et.defaultProps.topView];
5163
+ return y[this.props.topView !== void 0 ? this.props.topView : Et.defaultProps.topView];
5141
5164
  }
5142
5165
  get activeRange() {
5143
5166
  return this.props.activeRangeEnd !== void 0 ? this.props.activeRangeEnd : this.activeRangeEnd;
5144
5167
  }
5145
5168
  get todayIsInRange() {
5146
- return F(U(), x(this.min), x(this.max));
5169
+ return F(H(), C(this.min), C(this.max));
5147
5170
  }
5148
5171
  /**
5149
5172
  * @hidden
@@ -5157,13 +5180,13 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
5157
5180
  componentDidUpdate() {
5158
5181
  this.calendarViewList && (this.isActive ? this.calendarViewList.focusActiveDate : this.calendarViewList.blurActiveDate)();
5159
5182
  const s = Le(this.min, this.max, this.value);
5160
- this.calculateFocusFromValue = !!(this.selectedDate && s && this.selectedDate.getTime() && s.getTime()), this.lastView = this.state.activeView, this.lastViewsCount = this.props.views || Bt.defaultProps.views;
5183
+ this.calculateFocusFromValue = !!(this.selectedDate && s && this.selectedDate.getTime() && s.getTime()), this.lastView = this.state.activeView, this.lastViewsCount = this.props.views || At.defaultProps.views;
5161
5184
  }
5162
5185
  /**
5163
5186
  * @hidden
5164
5187
  */
5165
5188
  render() {
5166
- this.props._ref && this.props._ref(this), this.intl = ct(this), this.localization = q(this), this.bus.configure(this.bottomView, this.topView);
5189
+ this.props._ref && this.props._ref(this), this.intl = ct(this), this.localization = W(this), this.bus.configure(this.bottomView, this.topView);
5167
5190
  const s = ge(this.state.activeView, this.bottomView, this.topView);
5168
5191
  this.service = this.bus.service(s, this.intl), this.selectedDate = Le(this.min, this.max, this.value), this.selectedMultiple = Vs(this.min, this.max, this.value), this.selectedRange = Os(this.value);
5169
5192
  const t = Ps(this.selectedDate, this.selectedMultiple, this.selectedRange);
@@ -5178,17 +5201,17 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
5178
5201
  "k-disabled": this.props.disabled
5179
5202
  },
5180
5203
  this.props.className
5181
- ), i = this.rangeWithFocused(this.selectedRange, this.focusedDate), a = this.localization.toLanguageString(Be, T[Be]), r = this.localization.toLanguageString(ze, T[ze]), l = !this.canNavigate(b.PrevView), c = !this.canNavigate(b.NextView), h = { "aria-disabled": l }, u = { "aria-disabled": c }, d = this.lastView !== s, p = this.dates && this.isInMonth(this.state.navigateDate, this.dates[0]), m = this.lastViewsCount !== this.props.views;
5182
- (!p || d || m) && (this.dates = this.service.datesList(
5204
+ ), i = this.rangeWithFocused(this.selectedRange, this.focusedDate), a = this.localization.toLanguageString(Ae, T[Ae]), o = this.localization.toLanguageString(ze, T[ze]), l = !this.canNavigate(b.PrevView), c = !this.canNavigate(b.NextView), h = { "aria-disabled": l }, u = { "aria-disabled": c }, d = this.lastView !== s, p = this.dates && this.isInMonth(this.state.navigateDate, this.dates[0]), f = this.lastViewsCount !== this.props.views;
5205
+ (!p || d || f) && (this.dates = this.service.datesList(
5183
5206
  this.state.navigateDate,
5184
- this.props.views || Bt.defaultProps.views
5207
+ this.props.views || At.defaultProps.views
5185
5208
  ));
5186
- const f = v(this.dates && this.dates[0] ? this.dates[0] : U());
5187
- return /* @__PURE__ */ o.createElement(
5209
+ const m = v(this.dates && this.dates[0] ? this.dates[0] : H());
5210
+ return /* @__PURE__ */ r.createElement(
5188
5211
  "div",
5189
5212
  {
5190
- ref: (y) => {
5191
- this._element = y;
5213
+ ref: (S) => {
5214
+ this._element = S;
5192
5215
  },
5193
5216
  className: e,
5194
5217
  id: this.props.id || this.wrapperID,
@@ -5203,12 +5226,12 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
5203
5226
  "aria-disabled": this.props.disabled,
5204
5227
  dir: this.props.dir
5205
5228
  },
5206
- /* @__PURE__ */ o.createElement(
5229
+ /* @__PURE__ */ r.createElement(
5207
5230
  Zt,
5208
5231
  {
5209
- key: `.kendo.calendar.header.${f.getTime()}`,
5232
+ key: `.kendo.calendar.header.${m.getTime()}`,
5210
5233
  activeView: s,
5211
- currentDate: f,
5234
+ currentDate: m,
5212
5235
  min: this.min,
5213
5236
  max: this.max,
5214
5237
  rangeLength: this.props.views,
@@ -5216,7 +5239,7 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
5216
5239
  service: this.service,
5217
5240
  headerTitle: this.props.headerTitle,
5218
5241
  verticalView: this.props.mobileMode,
5219
- commands: /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
5242
+ commands: /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
5220
5243
  N,
5221
5244
  {
5222
5245
  type: "button",
@@ -5229,7 +5252,7 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
5229
5252
  onClick: this.handlePrevButtonClick,
5230
5253
  ...h
5231
5254
  }
5232
- ), /* @__PURE__ */ o.createElement(
5255
+ ), /* @__PURE__ */ r.createElement(
5233
5256
  Gt,
5234
5257
  {
5235
5258
  min: this.min,
@@ -5237,7 +5260,7 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
5237
5260
  onClick: this.handleTodayClick,
5238
5261
  disabled: !this.todayIsInRange
5239
5262
  }
5240
- ), /* @__PURE__ */ o.createElement(
5263
+ ), /* @__PURE__ */ r.createElement(
5241
5264
  N,
5242
5265
  {
5243
5266
  type: "button",
@@ -5245,7 +5268,7 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
5245
5268
  icon: this.isRtl ? "chevron-left" : "chevron-right",
5246
5269
  svgIcon: this.isRtl ? ws : vs,
5247
5270
  fillMode: "flat",
5248
- title: r,
5271
+ title: o,
5249
5272
  disabled: c,
5250
5273
  onClick: this.handleNextButtonClick,
5251
5274
  ...u
@@ -5253,11 +5276,11 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
5253
5276
  ))
5254
5277
  }
5255
5278
  ),
5256
- /* @__PURE__ */ o.createElement(
5257
- Bt,
5279
+ /* @__PURE__ */ r.createElement(
5280
+ At,
5258
5281
  {
5259
- ref: (y) => {
5260
- this.calendarViewList = y;
5282
+ ref: (S) => {
5283
+ this.calendarViewList = S;
5261
5284
  },
5262
5285
  dates: this.dates,
5263
5286
  activeView: s,
@@ -5289,20 +5312,20 @@ const Le = (s = ot.defaultProps.min, t = ot.defaultProps.max, e) => e instanceof
5289
5312
  return !!t && fe(t) <= s && s <= Ot(t);
5290
5313
  }
5291
5314
  };
5292
- let ot = Et;
5293
- ot.displayName = "MultiViewCalendar";
5294
- ot.propTypes = {
5315
+ let rt = Et;
5316
+ rt.displayName = "MultiViewCalendar";
5317
+ rt.propTypes = {
5295
5318
  activeRangeEnd: n.oneOf(["start", "end"]),
5296
5319
  allowReverse: n.bool,
5297
5320
  bottomView: n.oneOf(["month", "year", "decade", "century"]),
5298
5321
  className: n.string,
5299
5322
  defaultActiveView: n.oneOf(["month", "year", "decade", "century"]),
5300
5323
  defaultValue: n.oneOfType([
5301
- rt(n.instanceOf(Date)),
5324
+ ot(n.instanceOf(Date)),
5302
5325
  n.arrayOf(n.instanceOf(Date)),
5303
5326
  n.shape({
5304
- start: rt(n.instanceOf(Date)),
5305
- end: rt(n.instanceOf(Date))
5327
+ start: ot(n.instanceOf(Date)),
5328
+ end: ot(n.instanceOf(Date))
5306
5329
  })
5307
5330
  ]),
5308
5331
  disabled: n.bool,
@@ -5319,11 +5342,11 @@ ot.propTypes = {
5319
5342
  tabIndex: n.number,
5320
5343
  topView: n.oneOf(["month", "year", "decade", "century"]),
5321
5344
  value: n.oneOfType([
5322
- rt(n.instanceOf(Date)),
5345
+ ot(n.instanceOf(Date)),
5323
5346
  n.arrayOf(n.instanceOf(Date)),
5324
5347
  n.shape({
5325
- start: rt(n.instanceOf(Date).isRequired),
5326
- end: rt(n.instanceOf(Date).isRequired)
5348
+ start: ot(n.instanceOf(Date).isRequired),
5349
+ end: ot(n.instanceOf(Date).isRequired)
5327
5350
  })
5328
5351
  ]),
5329
5352
  views: (s, t, e) => {
@@ -5335,7 +5358,7 @@ ot.propTypes = {
5335
5358
  weekNumber: n.bool,
5336
5359
  dir: n.string
5337
5360
  };
5338
- ot.defaultProps = {
5361
+ rt.defaultProps = {
5339
5362
  disabled: !1,
5340
5363
  min: ut,
5341
5364
  max: dt,
@@ -5348,20 +5371,20 @@ ot.defaultProps = {
5348
5371
  views: 2,
5349
5372
  allowReverse: !1
5350
5373
  };
5351
- const oa = Dt(), Qs = yt(St(oa, ot));
5374
+ const ra = kt(), Qs = yt(St(ra, rt));
5352
5375
  Qs.displayName = "KendoReactMultiViewCalendar";
5353
- ft(ot);
5354
- at(ot);
5355
- const zt = class extends o.Component {
5376
+ ft(rt);
5377
+ at(rt);
5378
+ const zt = class extends r.Component {
5356
5379
  constructor(s) {
5357
- super(s), this._element = null, this._calendar = null, this._startDateInput = o.createRef(), this._endDateInput = o.createRef(), this.shouldFocusDateInput = !1, this.shouldFocusCalendar = !1, this.focus = () => {
5380
+ super(s), this._element = null, this._calendar = null, this._startDateInput = r.createRef(), this._endDateInput = r.createRef(), this.shouldFocusDateInput = !1, this.shouldFocusCalendar = !1, this.focus = () => {
5358
5381
  this.startDateInput && this.startDateInput.focus();
5359
5382
  }, this.setCalendarRef = (t) => {
5360
5383
  this._calendar = t;
5361
5384
  }, this.focusCalendarElement = () => {
5362
5385
  this._calendar && this._calendar.element && this._calendar.element.focus({ preventScroll: !0 });
5363
- }, this.calculateValue = (t, e) => (t.value !== void 0 ? t.value : e.value) || z, this.calculateShow = (t, e) => t.show !== void 0 ? t.show : e.show, this.renderCalendar = () => {
5364
- const t = this.value || z, e = {
5386
+ }, this.calculateValue = (t, e) => (t.value !== void 0 ? t.value : e.value) || q, this.calculateShow = (t, e) => t.show !== void 0 ? t.show : e.show, this.renderCalendar = () => {
5387
+ const t = this.value || q, e = {
5365
5388
  min: this.min,
5366
5389
  max: this.max,
5367
5390
  allowReverse: this.props.allowReverse,
@@ -5375,7 +5398,7 @@ const zt = class extends o.Component {
5375
5398
  dir: this.props.dir,
5376
5399
  onChange: this.handleCalendarChange
5377
5400
  };
5378
- return this.props.calendar ? /* @__PURE__ */ o.createElement(this.props.calendar, { ...e }) : /* @__PURE__ */ o.createElement(Qs, { ...e, ref: this.setCalendarRef });
5401
+ return this.props.calendar ? /* @__PURE__ */ r.createElement(this.props.calendar, { ...e }) : /* @__PURE__ */ r.createElement(Qs, { ...e, ref: this.setCalendarRef });
5379
5402
  }, this.renderPopup = () => {
5380
5403
  const t = {
5381
5404
  popupClass: "k-daterangepicker-popup",
@@ -5393,7 +5416,7 @@ const zt = class extends o.Component {
5393
5416
  ...this.props.popupSettings,
5394
5417
  show: this.show
5395
5418
  };
5396
- return this.props.popup ? /* @__PURE__ */ o.createElement(this.props.popup, { ...t }, this.renderCalendar()) : /* @__PURE__ */ o.createElement(be, { ...t }, this.renderCalendar());
5419
+ return this.props.popup ? /* @__PURE__ */ r.createElement(this.props.popup, { ...t }, this.renderCalendar()) : /* @__PURE__ */ r.createElement(be, { ...t }, this.renderCalendar());
5397
5420
  }, this.renderAdaptivePopup = () => {
5398
5421
  const { windowWidth: t = 0 } = this.state, e = {
5399
5422
  expand: this.show,
@@ -5407,7 +5430,7 @@ const zt = class extends o.Component {
5407
5430
  onApply: this.handleBlur
5408
5431
  }
5409
5432
  };
5410
- return /* @__PURE__ */ o.createElement(Se, { ...e }, /* @__PURE__ */ o.createElement(ke, { className: "!k-overflow-hidden" }, /* @__PURE__ */ o.createElement("div", { className: "k-scrollable-wrap" }, this.renderCalendar())));
5433
+ return /* @__PURE__ */ r.createElement(Se, { ...e }, /* @__PURE__ */ r.createElement(De, { className: "!k-overflow-hidden" }, /* @__PURE__ */ r.createElement("div", { className: "k-scrollable-wrap" }, this.renderCalendar())));
5411
5434
  }, this.handleReverseClick = (t) => {
5412
5435
  const e = {
5413
5436
  start: this.value.end,
@@ -5433,7 +5456,7 @@ const zt = class extends o.Component {
5433
5456
  e && e.call(void 0, t);
5434
5457
  }, this.handleCancel = (t) => {
5435
5458
  this.nextTick(() => {
5436
- this.setShow(!1), this.setState({ currentValue: z });
5459
+ this.setShow(!1), this.setState({ currentValue: q });
5437
5460
  });
5438
5461
  const { onCancel: e } = this.props;
5439
5462
  e && e.call(void 0, t);
@@ -5451,7 +5474,7 @@ const zt = class extends o.Component {
5451
5474
  this.handleChange(e, t);
5452
5475
  }, this.extractRangeFromValue = (t) => {
5453
5476
  if (!Array.isArray(t.value) && !(t.value instanceof Date))
5454
- return t.value || z;
5477
+ return t.value || q;
5455
5478
  const e = Array.isArray(t.value) ? t.value[0] : t.value;
5456
5479
  return {
5457
5480
  start: this.value.end !== null ? e : this.value.start,
@@ -5462,7 +5485,7 @@ const zt = class extends o.Component {
5462
5485
  this.handleChange(e, t);
5463
5486
  }, this.handleKeyDown = (t) => {
5464
5487
  const { keyCode: e, altKey: i } = t;
5465
- e === C.esc ? (t.preventDefault(), this.shouldFocusDateInput = !0, this.setShow(!1)) : i && e === C.down ? (t.preventDefault(), this.shouldFocusCalendar = !0, this.setShow(!0), this.focusCalendarElement()) : i && e === C.up && (t.preventDefault(), this.shouldFocusDateInput = !0, this.setShow(!1));
5488
+ e === k.esc ? (t.preventDefault(), this.shouldFocusDateInput = !0, this.setShow(!1)) : i && e === k.down ? (t.preventDefault(), this.shouldFocusCalendar = !0, this.setShow(!0), this.focusCalendarElement()) : i && e === k.up && (t.preventDefault(), this.shouldFocusDateInput = !0, this.setShow(!1));
5466
5489
  }, this.handleChange = (t, e) => {
5467
5490
  this.setState({ value: t }), this.valueDuringOnChange = t;
5468
5491
  const { onChange: i } = this.props;
@@ -5480,7 +5503,7 @@ const zt = class extends o.Component {
5480
5503
  }, Pt(Rt), this.state = {
5481
5504
  show: this.props.show || this.props.defaultShow || zt.defaultProps.defaultShow,
5482
5505
  value: this.props.value || this.props.defaultValue || zt.defaultProps.defaultValue,
5483
- currentValue: z
5506
+ currentValue: q
5484
5507
  }, this.nextTick = this.nextTick.bind(this), this.setShow = this.setShow.bind(this), this.focusCalendarElement = this.focusCalendarElement.bind(this), this.focusDateInputElement = this.focusDateInputElement.bind(this);
5485
5508
  }
5486
5509
  get _popupId() {
@@ -5520,7 +5543,7 @@ const zt = class extends o.Component {
5520
5543
  * Gets the value of the DateRangePicker.
5521
5544
  */
5522
5545
  get value() {
5523
- return (this.valueDuringOnChange !== void 0 ? this.valueDuringOnChange : this.props.value !== void 0 ? this.props.value : this.state.value) || z;
5546
+ return (this.valueDuringOnChange !== void 0 ? this.valueDuringOnChange : this.props.value !== void 0 ? this.props.value : this.state.value) || q;
5524
5547
  }
5525
5548
  /**
5526
5549
  * Gets the popup state of the DateRangePicker.
@@ -5539,7 +5562,7 @@ const zt = class extends o.Component {
5539
5562
  return this.element && this.element.ownerDocument || document;
5540
5563
  }
5541
5564
  get localizationService() {
5542
- return q(this);
5565
+ return W(this);
5543
5566
  }
5544
5567
  /**
5545
5568
  * The mobile mode of the DateRangePicker.
@@ -5571,15 +5594,15 @@ const zt = class extends o.Component {
5571
5594
  * @hidden
5572
5595
  */
5573
5596
  render() {
5574
- const s = this.value || z, t = this.mobileMode && this.show ? this.state.currentValue : s, e = (this.props.startDateInputSettings || {}).id || this._startInputId, i = (this.props.endDateInputSettings || {}).id || this._endInputId, a = P(
5597
+ const s = this.value || q, t = this.mobileMode && this.show ? this.state.currentValue : s, e = (this.props.startDateInputSettings || {}).id || this._startInputId, i = (this.props.endDateInputSettings || {}).id || this._endInputId, a = P(
5575
5598
  "k-daterangepicker",
5576
5599
  {
5577
5600
  "k-disabled": this.props.disabled
5578
5601
  },
5579
5602
  this.props.className
5580
- ), r = this.localizationService.toLanguageString(Ue, T[Ue]), l = this.localizationService.toLanguageString($e, T[$e]), c = this.localizationService.toLanguageString(Ye, T[Ye]), h = {
5603
+ ), o = this.localizationService.toLanguageString(Ue, T[Ue]), l = this.localizationService.toLanguageString($e, T[$e]), c = this.localizationService.toLanguageString(Ye, T[Ye]), h = {
5581
5604
  disableSelection: this.mobileMode && !0,
5582
- label: r,
5605
+ label: o,
5583
5606
  format: this.props.format,
5584
5607
  min: this.min,
5585
5608
  max: this.max,
@@ -5605,21 +5628,21 @@ const zt = class extends o.Component {
5605
5628
  ...this.props.endDateInputSettings,
5606
5629
  value: t.end,
5607
5630
  onChange: this.handleEndChange
5608
- }, d = /* @__PURE__ */ o.createElement(
5631
+ }, d = /* @__PURE__ */ r.createElement(
5609
5632
  N,
5610
5633
  {
5611
5634
  type: "button",
5612
5635
  className: "k-select",
5613
5636
  fillMode: "flat",
5614
- title: q(this).toLanguageString(Ht, T[Ht]),
5637
+ title: W(this).toLanguageString(Ht, T[Ht]),
5615
5638
  onMouseDown: this.handleReverseMouseDown,
5616
5639
  onClick: this.handleReverseClick,
5617
5640
  "aria-controls": e + " " + i,
5618
- "aria-label": q(this).toLanguageString(Ht, T[Ht])
5641
+ "aria-label": W(this).toLanguageString(Ht, T[Ht])
5619
5642
  },
5620
- /* @__PURE__ */ o.createElement(ei, { style: { transform: "rotate(90deg)" }, name: "arrows-swap", icon: hi })
5643
+ /* @__PURE__ */ r.createElement(ei, { style: { transform: "rotate(90deg)" }, name: "arrows-swap", icon: hi })
5621
5644
  );
5622
- return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
5645
+ return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
5623
5646
  "span",
5624
5647
  {
5625
5648
  ref: (p) => {
@@ -5637,8 +5660,8 @@ const zt = class extends o.Component {
5637
5660
  onBlur: this.mobileMode ? void 0 : this.handleBlur,
5638
5661
  dir: this.props.dir
5639
5662
  },
5640
- this.props.startDateInput ? /* @__PURE__ */ o.createElement(this.props.startDateInput, { ...h }) : /* @__PURE__ */ o.createElement(
5641
- kt,
5663
+ this.props.startDateInput ? /* @__PURE__ */ r.createElement(this.props.startDateInput, { ...h }) : /* @__PURE__ */ r.createElement(
5664
+ Dt,
5642
5665
  {
5643
5666
  ...h,
5644
5667
  ref: this._startDateInput,
@@ -5648,8 +5671,8 @@ const zt = class extends o.Component {
5648
5671
  }
5649
5672
  ),
5650
5673
  (this.props.allowReverse || this.props.calendarSettings && this.props.calendarSettings.allowReverse) && this.props.swapButton ? d : c,
5651
- this.props.endDateInput ? /* @__PURE__ */ o.createElement(this.props.endDateInput, { ...u }) : /* @__PURE__ */ o.createElement(
5652
- kt,
5674
+ this.props.endDateInput ? /* @__PURE__ */ r.createElement(this.props.endDateInput, { ...u }) : /* @__PURE__ */ r.createElement(
5675
+ Dt,
5653
5676
  {
5654
5677
  ...u,
5655
5678
  ref: this._endDateInput,
@@ -5691,8 +5714,8 @@ te.propTypes = {
5691
5714
  className: n.string,
5692
5715
  defaultShow: n.bool,
5693
5716
  defaultValue: n.shape({
5694
- start: rt(n.instanceOf(Date).isRequired),
5695
- end: rt(n.instanceOf(Date).isRequired)
5717
+ start: ot(n.instanceOf(Date).isRequired),
5718
+ end: ot(n.instanceOf(Date).isRequired)
5696
5719
  }),
5697
5720
  disabled: n.bool,
5698
5721
  endDateInputSettings: n.shape(Ct.propTypes),
@@ -5733,26 +5756,26 @@ te.propTypes = {
5733
5756
  tabIndex: n.number,
5734
5757
  dir: n.string,
5735
5758
  value: n.shape({
5736
- start: rt(n.instanceOf(Date).isRequired),
5737
- end: rt(n.instanceOf(Date).isRequired)
5759
+ start: ot(n.instanceOf(Date).isRequired),
5760
+ end: ot(n.instanceOf(Date).isRequired)
5738
5761
  })
5739
5762
  };
5740
5763
  te.defaultProps = {
5741
5764
  allowReverse: !1,
5742
5765
  defaultShow: !1,
5743
- defaultValue: z,
5766
+ defaultValue: q,
5744
5767
  disabled: !1,
5745
5768
  format: "d",
5746
5769
  max: dt,
5747
5770
  min: ut,
5748
5771
  swapButton: !1
5749
5772
  };
5750
- const la = Dt(), ha = yt(St(la, te));
5773
+ const la = kt(), ha = yt(St(la, te));
5751
5774
  ha.displayName = "KendoReactDateRangePicker";
5752
5775
  at(te);
5753
- class ms extends o.Component {
5776
+ class ms extends r.Component {
5754
5777
  constructor(t) {
5755
- super(t), this._calendar = null, this._timePart = null, this._cancelButton = null, this._acceptButton = null, this._calendarWrap = null, this.shouldFocusPart = !1, this.focus = (e) => {
5778
+ super(t), this._calendar = null, this._timePart = null, this._cancelButton = null, this._acceptButton = null, this._dateButtonRef = null, this._calendarWrap = null, this.shouldFocusPart = !1, this.focus = (e) => {
5756
5779
  Promise.resolve().then(() => {
5757
5780
  this.state.tab === "time" && this._timePart && this._timePart.focus(e);
5758
5781
  const i = this.calendarElement();
@@ -5765,30 +5788,32 @@ class ms extends o.Component {
5765
5788
  this.shouldFocusPart = !0, this.setState({ tab: i });
5766
5789
  }, this.dateTimeFooter = () => {
5767
5790
  const { cancelButton: e } = this.props, i = this.localizationService.toLanguageString($t, T[$t]), a = this.localizationService.toLanguageString(Yt, T[Yt]);
5768
- return /* @__PURE__ */ o.createElement("div", { className: "k-datetime-footer k-actions k-actions-stretched " }, e && /* @__PURE__ */ o.createElement(
5791
+ return /* @__PURE__ */ r.createElement("div", { className: "k-datetime-footer k-actions k-actions-stretched" }, e && /* @__PURE__ */ r.createElement(
5769
5792
  N,
5770
5793
  {
5771
5794
  type: "button",
5772
- ref: (r) => {
5773
- this._cancelButton = r;
5795
+ ref: (o) => {
5796
+ this._cancelButton = o;
5774
5797
  },
5775
5798
  className: "k-time-cancel",
5776
5799
  onClick: this.handleReject,
5800
+ onKeyDown: this.handleCancelKeyDown,
5777
5801
  title: i,
5778
5802
  "aria-label": i
5779
5803
  },
5780
5804
  i
5781
- ), /* @__PURE__ */ o.createElement(
5805
+ ), /* @__PURE__ */ r.createElement(
5782
5806
  N,
5783
5807
  {
5784
5808
  type: "button",
5785
5809
  themeColor: "primary",
5786
- ref: (r) => {
5787
- this._acceptButton = r;
5810
+ ref: (o) => {
5811
+ this._acceptButton = o;
5788
5812
  },
5789
5813
  className: "k-time-accept",
5790
5814
  disabled: !this.hasDateValue,
5791
5815
  onClick: this.handleAccept,
5816
+ onKeyDown: this.handleSetKeyDown,
5792
5817
  title: a,
5793
5818
  "aria-label": a
5794
5819
  },
@@ -5828,23 +5853,37 @@ class ms extends o.Component {
5828
5853
  e.stopPropagation(), this.move("right");
5829
5854
  }, this.handleKeyDown = (e) => {
5830
5855
  const { keyCode: i, altKey: a } = e;
5831
- switch (i) {
5832
- case C.enter:
5833
- !this.hasActiveButton() && this.hasDateValue && this.handleAccept(e);
5834
- return;
5835
- case C.left:
5836
- if (!a)
5856
+ if (!this.props.disabled)
5857
+ switch (i) {
5858
+ case k.enter:
5859
+ !this.hasActiveButton() && this.hasDateValue && this.handleAccept(e);
5837
5860
  return;
5838
- this.move("left");
5839
- return;
5840
- case C.right:
5841
- if (!a)
5861
+ case k.left:
5862
+ if (!a)
5863
+ return;
5864
+ this.move("left");
5842
5865
  return;
5843
- this.move("right");
5844
- return;
5845
- default:
5846
- return;
5847
- }
5866
+ case k.right:
5867
+ if (!a)
5868
+ return;
5869
+ this.move("right");
5870
+ return;
5871
+ default:
5872
+ return;
5873
+ }
5874
+ }, this.handleCancelKeyDown = (e) => {
5875
+ const { keyCode: i } = e;
5876
+ i === k.tab && this._dateButtonRef && this._dateButtonRef.element && !this.hasDateValue && (e.preventDefault(), this._dateButtonRef.element.focus());
5877
+ }, this.handleSetKeyDown = (e) => {
5878
+ const { keyCode: i } = e;
5879
+ i === k.tab && this._dateButtonRef && this._dateButtonRef.element && (e.preventDefault(), this._dateButtonRef.element.focus());
5880
+ }, this.handleDateKeyDown = (e) => {
5881
+ var o, l, c, h;
5882
+ const { keyCode: i, shiftKey: a } = e;
5883
+ a && i === k.tab && (e.stopPropagation(), this.hasDateValue ? (h = (c = this._acceptButton) == null ? void 0 : c.element) == null || h.focus() : (l = (o = this._cancelButton) == null ? void 0 : o.element) == null || l.focus()), i === k.enter && (e.stopPropagation(), this.move("left"));
5884
+ }, this.handleTimeKeyDown = (e) => {
5885
+ const { keyCode: i } = e;
5886
+ i === k.enter && (e.stopPropagation(), this.move("right"));
5848
5887
  }, this.handleTimePartMount = (e) => {
5849
5888
  this.setState({ timeValue: e });
5850
5889
  }, this.state = {
@@ -5863,10 +5902,14 @@ class ms extends o.Component {
5863
5902
  return this.state.dateValue !== null;
5864
5903
  }
5865
5904
  get localizationService() {
5866
- return q(this);
5905
+ return W(this);
5867
5906
  }
5868
- componentDidUpdate() {
5869
- this.shouldFocusPart && this.focus({ preventScroll: !0 }), this.shouldFocusPart = !1;
5907
+ componentDidUpdate(t, e) {
5908
+ var i, a;
5909
+ this.shouldFocusPart && this.focus({ preventScroll: !0 }), (((i = t.value) == null ? void 0 : i.getTime()) !== ((a = this.props.value) == null ? void 0 : a.getTime()) || this.state.tab !== e.tab && this.props.value) && this.setState({
5910
+ dateValue: this.props.value,
5911
+ timeValue: this.props.value || L
5912
+ }), this.shouldFocusPart = !1;
5870
5913
  }
5871
5914
  render() {
5872
5915
  const {
@@ -5874,7 +5917,7 @@ class ms extends o.Component {
5874
5917
  min: e,
5875
5918
  max: i,
5876
5919
  weekNumber: a,
5877
- focusedDate: r,
5920
+ focusedDate: o,
5878
5921
  format: l,
5879
5922
  mobileMode: c,
5880
5923
  footerActions: h
@@ -5885,59 +5928,64 @@ class ms extends o.Component {
5885
5928
  "k-disabled": t
5886
5929
  },
5887
5930
  "k-datetime-wrap"
5888
- ), d = this.localizationService.toLanguageString(Ge, T[Ge]), p = this.localizationService.toLanguageString(Xe, T[Xe]), m = {
5931
+ ), d = this.localizationService.toLanguageString(Ge, T[Ge]), p = this.localizationService.toLanguageString(Xe, T[Xe]), f = {
5889
5932
  min: e,
5890
5933
  max: i,
5891
5934
  weekNumber: a,
5892
- focusedDate: r,
5935
+ focusedDate: o,
5893
5936
  disabled: t || this.state.tab !== "date",
5894
5937
  value: this.state.dateValue,
5895
5938
  onChange: this.handleCalendarValueChange,
5896
5939
  navigation: !1,
5940
+ tabIndex: t || this.state.tab !== "date" ? -1 : void 0,
5897
5941
  mobileMode: c
5898
5942
  };
5899
- return /* @__PURE__ */ o.createElement(
5943
+ return /* @__PURE__ */ r.createElement(
5900
5944
  "div",
5901
5945
  {
5902
5946
  onKeyDown: this.handleKeyDown,
5903
5947
  className: u,
5904
5948
  tabIndex: -1
5905
5949
  },
5906
- /* @__PURE__ */ o.createElement("div", { className: "k-datetime-buttongroup" }, /* @__PURE__ */ o.createElement(ni, { width: "100%" }, /* @__PURE__ */ o.createElement(
5950
+ /* @__PURE__ */ r.createElement("div", { className: "k-datetime-buttongroup" }, /* @__PURE__ */ r.createElement(ni, { width: "100%" }, /* @__PURE__ */ r.createElement(
5907
5951
  N,
5908
5952
  {
5953
+ ref: (m) => this._dateButtonRef = m,
5909
5954
  type: "button",
5910
5955
  selected: this.state.tab === "date",
5911
5956
  togglable: !0,
5912
- onClick: this.handleDateClick
5957
+ onClick: this.handleDateClick,
5958
+ onKeyDown: this.handleDateKeyDown
5913
5959
  },
5914
5960
  d
5915
- ), /* @__PURE__ */ o.createElement(
5961
+ ), /* @__PURE__ */ r.createElement(
5916
5962
  N,
5917
5963
  {
5918
5964
  type: "button",
5919
5965
  selected: this.state.tab === "time",
5920
5966
  togglable: !0,
5921
- onClick: this.handleTimeClick
5967
+ onClick: this.handleTimeClick,
5968
+ onKeyDown: this.handleTimeKeyDown
5922
5969
  },
5923
5970
  p
5924
5971
  ))),
5925
- /* @__PURE__ */ o.createElement("div", { className: "k-datetime-selector" }, /* @__PURE__ */ o.createElement("div", { className: "k-datetime-calendar-wrap", ref: (f) => this._calendarWrap = f }, this.props.calendar ? /* @__PURE__ */ o.createElement(this.props.calendar, { ...m }) : /* @__PURE__ */ o.createElement(
5972
+ /* @__PURE__ */ r.createElement("div", { className: "k-datetime-selector" }, /* @__PURE__ */ r.createElement("div", { className: "k-datetime-calendar-wrap", ref: (m) => this._calendarWrap = m }, this.props.calendar ? /* @__PURE__ */ r.createElement(this.props.calendar, { key: this.state.tab, ...f }) : /* @__PURE__ */ r.createElement(
5926
5973
  as,
5927
5974
  {
5928
- ref: (f) => {
5929
- this._calendar = f;
5975
+ key: this.state.tab,
5976
+ ref: (m) => {
5977
+ this._calendar = m;
5930
5978
  },
5931
- ...m
5979
+ ...f
5932
5980
  }
5933
- )), /* @__PURE__ */ o.createElement("div", { className: "k-datetime-time-wrap" }, /* @__PURE__ */ o.createElement("div", { className: c ? "k-reset k-timeselector-lg k-timeselector" : "" }, /* @__PURE__ */ o.createElement(
5981
+ )), /* @__PURE__ */ r.createElement("div", { className: "k-datetime-time-wrap" }, /* @__PURE__ */ r.createElement("div", { className: c ? "k-reset k-timeselector-lg k-timeselector" : "" }, /* @__PURE__ */ r.createElement(
5934
5982
  _t,
5935
5983
  {
5936
5984
  key: 1,
5937
5985
  onNowClick: this.handleNowClick,
5938
5986
  disabled: t || this.state.tab !== "time",
5939
- ref: (f) => {
5940
- this._timePart = f;
5987
+ ref: (m) => {
5988
+ this._timePart = m;
5941
5989
  },
5942
5990
  min: this.minTime || Nt,
5943
5991
  max: this.maxTime || xt,
@@ -5959,7 +6007,7 @@ class ms extends o.Component {
5959
6007
  return this.props.maxTime !== void 0 ? this.props.maxTime : this.normalizeRange(this.props.max, this.state.dateValue);
5960
6008
  }
5961
6009
  normalizeRange(t, e) {
5962
- return wt(t, e || U()) ? t : null;
6010
+ return wt(t, e || H()) ? t : null;
5963
6011
  }
5964
6012
  hasActiveButton() {
5965
6013
  if (!this._acceptButton)
@@ -5968,19 +6016,19 @@ class ms extends o.Component {
5968
6016
  return this._acceptButton && t === this._acceptButton.element || this._cancelButton && t === this._cancelButton.element;
5969
6017
  }
5970
6018
  mergeTime(t, e) {
5971
- return t && e ? W(e, t) : e;
6019
+ return t && e ? U(e, t) : e;
5972
6020
  }
5973
6021
  mergeDate(t, e) {
5974
- return t ? W(t || U(), e) : e;
6022
+ return t ? U(t || H(), e) : e;
5975
6023
  }
5976
6024
  }
5977
6025
  ms.defaultProps = {
5978
6026
  footerActions: !0
5979
6027
  };
5980
6028
  at(ms);
5981
- const et = class extends o.Component {
6029
+ const et = class extends r.Component {
5982
6030
  constructor(s) {
5983
- super(s), this._element = null, this._dateInput = o.createRef(), this._dateTimeSelector = null, this.shouldFocusDateInput = !1, this.prevShow = !1, this.focus = () => {
6031
+ super(s), this._element = null, this._dateInput = r.createRef(), this._dateTimeSelector = null, this.shouldFocusDateInput = !1, this.prevShow = !1, this.focus = () => {
5984
6032
  const t = this.dateInputElement();
5985
6033
  t && t.focus();
5986
6034
  }, this.renderPicker = () => {
@@ -5989,12 +6037,12 @@ const et = class extends o.Component {
5989
6037
  minTime: e,
5990
6038
  maxTime: i,
5991
6039
  format: a,
5992
- calendar: r,
6040
+ calendar: o,
5993
6041
  cancelButton: l,
5994
6042
  weekNumber: c,
5995
6043
  focusedDate: h
5996
6044
  } = this.props;
5997
- return /* @__PURE__ */ o.createElement(
6045
+ return /* @__PURE__ */ r.createElement(
5998
6046
  ms,
5999
6047
  {
6000
6048
  ref: (u) => {
@@ -6013,31 +6061,31 @@ const et = class extends o.Component {
6013
6061
  maxTime: i,
6014
6062
  focusedDate: h,
6015
6063
  format: a,
6016
- calendar: r,
6064
+ calendar: o,
6017
6065
  mobileMode: this.mobileMode,
6018
6066
  footerActions: !this.mobileMode
6019
6067
  }
6020
6068
  );
6021
6069
  }, this.renderAdaptivePopup = () => {
6022
- const { windowWidth: t = 0 } = this.state, e = q(this).toLanguageString($t, T[$t]), i = q(this).toLanguageString(Yt, T[Yt]), a = {
6070
+ const { windowWidth: t = 0 } = this.state, e = W(this).toLanguageString($t, T[$t]), i = W(this).toLanguageString(Yt, T[Yt]), a = {
6023
6071
  expand: this.show,
6024
6072
  onClose: this.handleBlur,
6025
6073
  adaptiveTitle: this.props.adaptiveTitle,
6026
6074
  windowWidth: t,
6027
6075
  footer: {
6028
6076
  cancelText: e,
6029
- onCancel: (r) => {
6077
+ onCancel: (o) => {
6030
6078
  var l;
6031
- return (l = this._dateTimeSelector) == null ? void 0 : l.handleReject(r);
6079
+ return (l = this._dateTimeSelector) == null ? void 0 : l.handleReject(o);
6032
6080
  },
6033
6081
  applyText: i,
6034
- onApply: (r) => {
6082
+ onApply: (o) => {
6035
6083
  var l;
6036
- return (l = this._dateTimeSelector) == null ? void 0 : l.handleAccept(r);
6084
+ return (l = this._dateTimeSelector) == null ? void 0 : l.handleAccept(o);
6037
6085
  }
6038
6086
  }
6039
6087
  };
6040
- return /* @__PURE__ */ o.createElement(Se, { ...a }, /* @__PURE__ */ o.createElement(ke, { className: "!k-overflow-hidden" }, this.renderPicker()));
6088
+ return /* @__PURE__ */ r.createElement(Se, { ...a }, /* @__PURE__ */ r.createElement(De, { className: "!k-overflow-hidden" }, this.renderPicker()));
6041
6089
  }, this.handleReject = () => {
6042
6090
  this.shouldFocusDateInput = !0, this.setShow(!1);
6043
6091
  }, this.handleValueChange = (t) => {
@@ -6062,11 +6110,11 @@ const et = class extends o.Component {
6062
6110
  t.preventDefault();
6063
6111
  }, this.handleKeyDown = (t) => {
6064
6112
  const { altKey: e, keyCode: i } = t;
6065
- if (i === C.esc) {
6113
+ if (i === k.esc) {
6066
6114
  this.shouldFocusDateInput = !0, this.setShow(!1);
6067
6115
  return;
6068
6116
  }
6069
- e && (i === C.up || i === C.down) && (t.preventDefault(), t.stopPropagation(), this.shouldFocusDateInput = i === C.up, this.setShow(i === C.down));
6117
+ e && (i === k.up || i === k.down) && (t.preventDefault(), t.stopPropagation(), this.shouldFocusDateInput = i === k.up, this.setShow(i === k.down));
6070
6118
  }, this.dateInputElement = () => this.dateInput && this.dateInput.element || this.element && this.element.querySelector(".k-dateinput > input.k-input-inner"), Pt(Rt), this.state = {
6071
6119
  value: this.props.defaultValue || et.defaultProps.defaultValue,
6072
6120
  show: this.props.defaultShow || et.defaultProps.defaultShow,
@@ -6185,39 +6233,39 @@ const et = class extends o.Component {
6185
6233
  fillMode: e = et.defaultProps.fillMode,
6186
6234
  disabled: i,
6187
6235
  tabIndex: a,
6188
- title: r,
6236
+ title: o,
6189
6237
  id: l,
6190
6238
  format: c,
6191
6239
  formatPlaceholder: h,
6192
6240
  min: u,
6193
6241
  max: d,
6194
6242
  className: p,
6195
- width: m,
6196
- name: f,
6197
- validationMessage: y,
6243
+ width: f,
6244
+ name: m,
6245
+ validationMessage: S,
6198
6246
  required: I,
6199
6247
  validityStyles: M,
6200
6248
  minTime: w,
6201
6249
  maxTime: E,
6202
6250
  ariaLabelledBy: g,
6203
- ariaDescribedBy: H,
6251
+ ariaDescribedBy: B,
6204
6252
  popup: V = be
6205
6253
  } = this.props, R = !this.validityStyles || this.validity.valid, A = {
6206
6254
  id: l,
6207
6255
  ariaLabelledBy: g,
6208
- ariaDescribedBy: H,
6256
+ ariaDescribedBy: B,
6209
6257
  format: c,
6210
6258
  formatPlaceholder: h,
6211
6259
  disabled: i,
6212
- title: r,
6260
+ title: o,
6213
6261
  validityStyles: M,
6214
- validationMessage: y,
6262
+ validationMessage: S,
6215
6263
  required: I,
6216
6264
  min: u,
6217
6265
  max: d,
6218
6266
  minTime: w,
6219
6267
  maxTime: E,
6220
- name: f,
6268
+ name: m,
6221
6269
  tabIndex: this.show ? -1 : a,
6222
6270
  valid: this.validity.valid,
6223
6271
  value: this.value,
@@ -6229,7 +6277,7 @@ const et = class extends o.Component {
6229
6277
  size: null,
6230
6278
  fillMode: null,
6231
6279
  rounded: null
6232
- }, S = /* @__PURE__ */ o.createElement(
6280
+ }, x = /* @__PURE__ */ r.createElement(
6233
6281
  we,
6234
6282
  {
6235
6283
  onFocus: this.handleFocus,
@@ -6237,7 +6285,7 @@ const et = class extends o.Component {
6237
6285
  onSyncFocus: this.props.onFocus,
6238
6286
  onSyncBlur: this.props.onBlur
6239
6287
  },
6240
- ({ onFocus: O, onBlur: tt }) => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
6288
+ ({ onFocus: O, onBlur: tt }) => /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
6241
6289
  "div",
6242
6290
  {
6243
6291
  ref: (j) => {
@@ -6250,19 +6298,19 @@ const et = class extends o.Component {
6250
6298
  [`k-input-${mt.sizeMap[s] || s}`]: s,
6251
6299
  [`k-rounded-${mt.roundedMap[t] || t}`]: t,
6252
6300
  [`k-input-${e}`]: e,
6253
- ["k-invalid"]: !R,
6254
- ["k-required"]: this.required,
6255
- ["k-disabled"]: this.props.disabled
6301
+ "k-invalid": !R,
6302
+ "k-required": this.required,
6303
+ "k-disabled": this.props.disabled
6256
6304
  },
6257
6305
  p
6258
6306
  ),
6259
6307
  onKeyDown: this.handleKeyDown,
6260
- style: { width: m },
6308
+ style: { width: f },
6261
6309
  onFocus: this.mobileMode ? void 0 : O,
6262
6310
  onBlur: tt,
6263
6311
  onClick: this.mobileMode ? this.handleDateIconClick : void 0
6264
6312
  },
6265
- /* @__PURE__ */ o.createElement(
6313
+ /* @__PURE__ */ r.createElement(
6266
6314
  this.dateInputComp,
6267
6315
  {
6268
6316
  _ref: this._dateInput,
@@ -6272,7 +6320,7 @@ const et = class extends o.Component {
6272
6320
  ...A
6273
6321
  }
6274
6322
  ),
6275
- /* @__PURE__ */ o.createElement(
6323
+ /* @__PURE__ */ r.createElement(
6276
6324
  N,
6277
6325
  {
6278
6326
  tabIndex: -1,
@@ -6281,13 +6329,13 @@ const et = class extends o.Component {
6281
6329
  svgIcon: Fs,
6282
6330
  onMouseDown: this.handleIconMouseDown,
6283
6331
  onClick: this.mobileMode ? void 0 : this.handleDateIconClick,
6284
- title: q(this).toLanguageString(At, T[At]),
6332
+ title: W(this).toLanguageString(Bt, T[Bt]),
6285
6333
  className: "k-input-button",
6286
6334
  rounded: null,
6287
- "aria-label": q(this).toLanguageString(At, T[At])
6335
+ "aria-label": W(this).toLanguageString(Bt, T[Bt])
6288
6336
  }
6289
6337
  ),
6290
- /* @__PURE__ */ o.createElement(
6338
+ /* @__PURE__ */ r.createElement(
6291
6339
  V,
6292
6340
  {
6293
6341
  show: this.show,
@@ -6308,7 +6356,7 @@ const et = class extends o.Component {
6308
6356
  )
6309
6357
  ), this.mobileMode && this.renderAdaptivePopup())
6310
6358
  );
6311
- return this.props.label ? /* @__PURE__ */ o.createElement(
6359
+ return this.props.label ? /* @__PURE__ */ r.createElement(
6312
6360
  cs,
6313
6361
  {
6314
6362
  dateInput: this._dateInput,
@@ -6316,10 +6364,10 @@ const et = class extends o.Component {
6316
6364
  editorId: l,
6317
6365
  editorValid: R,
6318
6366
  editorDisabled: this.props.disabled,
6319
- children: S,
6367
+ children: x,
6320
6368
  style: { width: this.props.width }
6321
6369
  }
6322
- ) : S;
6370
+ ) : x;
6323
6371
  }
6324
6372
  setShow(s) {
6325
6373
  const { onOpen: t, onClose: e } = this.props;
@@ -6333,7 +6381,7 @@ const et = class extends o.Component {
6333
6381
  clearTimeout(this.nextTickId), this.nextTickId = window.setTimeout(() => s());
6334
6382
  }
6335
6383
  calculateMedia(s) {
6336
- for (let t of s)
6384
+ for (const t of s)
6337
6385
  this.setState({ windowWidth: t.target.clientWidth });
6338
6386
  }
6339
6387
  };
@@ -6416,12 +6464,12 @@ ee.defaultProps = {
6416
6464
  required: !1,
6417
6465
  validityStyles: !0,
6418
6466
  cancelButton: !0,
6419
- dateInput: kt,
6467
+ dateInput: Dt,
6420
6468
  size: "medium",
6421
6469
  rounded: "medium",
6422
6470
  fillMode: "solid"
6423
6471
  };
6424
- const ca = Dt(), ua = yt(St(ca, ee));
6472
+ const ca = kt(), ua = yt(St(ca, ee));
6425
6473
  ua.displayName = "KendoReactDateTimePicker";
6426
6474
  at(ee);
6427
6475
  export {
@@ -6432,12 +6480,12 @@ export {
6432
6480
  tn as CalendarHeaderTitle,
6433
6481
  sn as CalendarNavigationItem,
6434
6482
  an as CalendarPropsContext,
6435
- D as CalendarViewEnum,
6483
+ y as CalendarViewEnum,
6436
6484
  xi as CalendarWeekCell,
6437
6485
  bt as CalendarWithoutContext,
6438
6486
  Ei as CenturyViewService,
6439
6487
  ji as DOMService,
6440
- kt as DateInput,
6488
+ Dt as DateInput,
6441
6489
  Tn as DateInputPropsContext,
6442
6490
  Ct as DateInputWithoutContext,
6443
6491
  Rn as DatePicker,
@@ -6451,19 +6499,19 @@ export {
6451
6499
  ee as DateTimePickerWithoutContext,
6452
6500
  Ln as DayPeriodService,
6453
6501
  Ri as DecadeViewService,
6454
- z as EMPTY_SELECTIONRANGE,
6502
+ q as EMPTY_SELECTIONRANGE,
6455
6503
  Zt as Header,
6456
- Bt as HorizontalViewList,
6504
+ At as HorizontalViewList,
6457
6505
  Wn as HoursService,
6458
6506
  dt as MAX_DATE,
6459
6507
  xt as MAX_TIME,
6460
6508
  ut as MIN_DATE,
6461
6509
  Nt as MIN_TIME,
6462
6510
  jn as MinutesService,
6463
- Ai as MonthViewService,
6511
+ Bi as MonthViewService,
6464
6512
  Qs as MultiViewCalendar,
6465
- oa as MultiViewCalendarPropsContext,
6466
- ot as MultiViewCalendarWithoutContext,
6513
+ ra as MultiViewCalendarPropsContext,
6514
+ rt as MultiViewCalendarWithoutContext,
6467
6515
  qs as NavigationService,
6468
6516
  Vn as PickerWrap,
6469
6517
  Ji as ScrollSyncService,
@@ -6484,12 +6532,12 @@ export {
6484
6532
  Lt as decreaseValue,
6485
6533
  $e as end,
6486
6534
  Vt as getNow,
6487
- U as getToday,
6535
+ H as getToday,
6488
6536
  Ft as increaseValue,
6489
6537
  Ye as separator,
6490
6538
  Ue as start,
6491
6539
  Ht as swapStartEnd,
6492
6540
  qe as today,
6493
6541
  We as toggleCalendar,
6494
- At as toggleDateTimeSelector
6542
+ Bt as toggleDateTimeSelector
6495
6543
  };