@progress/kendo-angular-dateinputs 7.1.6 → 11.0.0-develop.80

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 (284) hide show
  1. package/NOTICE.txt +3 -3
  2. package/README.md +2 -2
  3. package/calendar/calendar-common.module.d.ts +1 -1
  4. package/calendar/calendar.component.d.ts +2 -2
  5. package/calendar/calendar.module.d.ts +1 -1
  6. package/calendar/calendars.module.d.ts +1 -1
  7. package/calendar/for.directive.d.ts +1 -1
  8. package/calendar/header.component.d.ts +1 -1
  9. package/calendar/horizontal-view-list.component.d.ts +1 -1
  10. package/calendar/localization/calendar-custom-messages.component.d.ts +1 -1
  11. package/calendar/localization/calendar-localized-messages.directive.d.ts +1 -1
  12. package/calendar/localization/calendar-messages.d.ts +1 -1
  13. package/calendar/localization/multiview-calendar-custom-messages.component.d.ts +1 -1
  14. package/calendar/localization/multiview-calendar-localized-messages.directive.d.ts +1 -1
  15. package/calendar/localization/multiview-calendar-messages.d.ts +1 -1
  16. package/calendar/models/cell-context.interface.d.ts +1 -1
  17. package/calendar/models/keydown.interface.d.ts +1 -1
  18. package/calendar/models/navigation-action.enum.d.ts +1 -1
  19. package/calendar/models/orientation.d.ts +1 -1
  20. package/calendar/models/row-length-options.interface.d.ts +1 -1
  21. package/calendar/models/scrollable.interface.d.ts +1 -1
  22. package/calendar/models/selection-range-end.type.d.ts +1 -1
  23. package/calendar/models/selection-range.interface.d.ts +1 -1
  24. package/calendar/models/selection.d.ts +1 -1
  25. package/calendar/models/type.d.ts +1 -1
  26. package/calendar/models/view-service.interface.d.ts +1 -1
  27. package/calendar/models/view.enum.d.ts +1 -1
  28. package/calendar/models/view.type.d.ts +1 -1
  29. package/calendar/multiview-calendar.component.d.ts +1 -1
  30. package/calendar/multiview-calendar.module.d.ts +1 -1
  31. package/calendar/navigation.component.d.ts +1 -1
  32. package/calendar/services/bus-view.service.d.ts +1 -1
  33. package/calendar/services/century-view.service.d.ts +1 -1
  34. package/calendar/services/decade-view.service.d.ts +1 -1
  35. package/calendar/services/disabled-dates.service.d.ts +1 -1
  36. package/calendar/services/dom.service.d.ts +1 -1
  37. package/calendar/services/month-view.service.d.ts +1 -1
  38. package/calendar/services/navigation.service.d.ts +1 -1
  39. package/calendar/services/scroll-sync.service.d.ts +1 -1
  40. package/calendar/services/selection.service.d.ts +1 -1
  41. package/calendar/services/weeknames.service.d.ts +1 -1
  42. package/calendar/services/year-view.service.d.ts +1 -1
  43. package/calendar/templates/cell-template.directive.d.ts +1 -1
  44. package/calendar/templates/century-cell-template.directive.d.ts +1 -1
  45. package/calendar/templates/decade-cell-template.directive.d.ts +1 -1
  46. package/calendar/templates/header-title-template.directive.d.ts +1 -1
  47. package/calendar/templates/month-cell-template.directive.d.ts +1 -1
  48. package/calendar/templates/navigation-item-template.directive.d.ts +1 -1
  49. package/calendar/templates/weeknumber-cell-template.directive.d.ts +1 -1
  50. package/calendar/templates/year-cell-template.directive.d.ts +1 -1
  51. package/calendar/templates.module.d.ts +1 -1
  52. package/calendar/view-list.component.d.ts +1 -1
  53. package/calendar/view.component.d.ts +1 -1
  54. package/common/dom-queries.d.ts +1 -1
  55. package/common/models/fillmode.d.ts +1 -1
  56. package/common/models/rounded.d.ts +1 -1
  57. package/common/models/size.d.ts +1 -1
  58. package/common/picker.service.d.ts +1 -1
  59. package/common/utils.d.ts +1 -1
  60. package/dateinput/arrow.enum.d.ts +1 -1
  61. package/dateinput/dateinput.component.d.ts +2 -2
  62. package/dateinput/dateinput.module.d.ts +1 -1
  63. package/dateinput/localization/dateinput-custom-messages.component.d.ts +1 -1
  64. package/dateinput/localization/dateinput-localized-messages.directive.d.ts +1 -1
  65. package/dateinput/localization/messages.d.ts +1 -1
  66. package/dateinput/models/format-placeholder.model.d.ts +1 -1
  67. package/dateinput/models/format-settings.model.d.ts +1 -1
  68. package/dateinput/models/incremental-steps.model.d.ts +1 -1
  69. package/dateinputs.module.d.ts +1 -1
  70. package/datepicker/datepicker.component.d.ts +2 -2
  71. package/datepicker/datepicker.module.d.ts +1 -1
  72. package/datepicker/localization/datepicker-custom-messages.component.d.ts +1 -1
  73. package/datepicker/localization/datepicker-localized-messages.directive.d.ts +1 -1
  74. package/datepicker/localization/messages.d.ts +1 -1
  75. package/daterange/auto-correct-on.type.d.ts +1 -1
  76. package/daterange/date-range-end-input.directive.d.ts +1 -1
  77. package/daterange/date-range-input.d.ts +1 -1
  78. package/daterange/date-range-popup-template.directive.d.ts +1 -1
  79. package/daterange/date-range-popup.component.d.ts +1 -1
  80. package/daterange/date-range-selection.directive.d.ts +1 -1
  81. package/daterange/date-range-start-input.directive.d.ts +1 -1
  82. package/daterange/date-range.component.d.ts +1 -1
  83. package/daterange/date-range.module.d.ts +1 -1
  84. package/daterange/date-range.service.d.ts +1 -1
  85. package/datetimepicker/datetimepicker.component.d.ts +1 -1
  86. package/datetimepicker/datetimepicker.module.d.ts +1 -1
  87. package/datetimepicker/localization/datetimepicker-custom-messages.component.d.ts +1 -1
  88. package/datetimepicker/localization/localized-messages.directive.d.ts +1 -1
  89. package/datetimepicker/localization/messages.d.ts +1 -1
  90. package/datetimepicker/models/active-tab.type.d.ts +1 -1
  91. package/defaults.d.ts +1 -1
  92. package/{esm2015/calendar/calendar-common.module.js → esm2020/calendar/calendar-common.module.mjs} +5 -5
  93. package/{esm2015/calendar/calendar.component.js → esm2020/calendar/calendar.component.mjs} +14 -14
  94. package/{esm2015/calendar/calendar.module.js → esm2020/calendar/calendar.module.mjs} +5 -5
  95. package/{esm2015/calendar/calendars.module.js → esm2020/calendar/calendars.module.mjs} +5 -5
  96. package/{esm2015/calendar/for.directive.js → esm2020/calendar/for.directive.mjs} +6 -6
  97. package/{esm2015/calendar/header.component.js → esm2020/calendar/header.component.mjs} +21 -17
  98. package/{esm2015/calendar/horizontal-view-list.component.js → esm2020/calendar/horizontal-view-list.component.mjs} +8 -5
  99. package/{esm2015/calendar/localization/calendar-custom-messages.component.js → esm2020/calendar/localization/calendar-custom-messages.component.mjs} +5 -4
  100. package/{esm2015/calendar/localization/calendar-localized-messages.directive.js → esm2020/calendar/localization/calendar-localized-messages.directive.mjs} +5 -4
  101. package/{esm2015/calendar/localization/calendar-messages.js → esm2020/calendar/localization/calendar-messages.mjs} +4 -4
  102. package/{esm2015/calendar/localization/multiview-calendar-custom-messages.component.js → esm2020/calendar/localization/multiview-calendar-custom-messages.component.mjs} +5 -4
  103. package/{esm2015/calendar/localization/multiview-calendar-localized-messages.directive.js → esm2020/calendar/localization/multiview-calendar-localized-messages.directive.mjs} +5 -4
  104. package/{esm2015/calendar/localization/multiview-calendar-messages.js → esm2020/calendar/localization/multiview-calendar-messages.mjs} +4 -4
  105. package/{esm2015/calendar/models/cell-context.interface.js → esm2020/calendar/models/cell-context.interface.mjs} +1 -1
  106. package/{esm2015/calendar/models/keydown.interface.js → esm2020/calendar/models/keydown.interface.mjs} +1 -1
  107. package/{esm2015/calendar/models/navigation-action.enum.js → esm2020/calendar/models/navigation-action.enum.mjs} +1 -1
  108. package/{esm2015/calendar/models/orientation.js → esm2020/calendar/models/orientation.mjs} +1 -1
  109. package/{esm2015/calendar/models/row-length-options.interface.js → esm2020/calendar/models/row-length-options.interface.mjs} +1 -1
  110. package/esm2020/calendar/models/scrollable.interface.mjs +5 -0
  111. package/esm2020/calendar/models/selection-range-end.type.mjs +5 -0
  112. package/{esm2015/calendar/models/selection-range.interface.js → esm2020/calendar/models/selection-range.interface.mjs} +1 -1
  113. package/esm2020/calendar/models/selection.mjs +5 -0
  114. package/esm2020/calendar/models/type.mjs +5 -0
  115. package/esm2020/calendar/models/view-service.interface.mjs +5 -0
  116. package/{esm2015/calendar/models/view.enum.js → esm2020/calendar/models/view.enum.mjs} +1 -1
  117. package/esm2020/calendar/models/view.type.mjs +5 -0
  118. package/{esm2015/calendar/multiview-calendar.component.js → esm2020/calendar/multiview-calendar.component.mjs} +5 -5
  119. package/{esm2015/calendar/multiview-calendar.module.js → esm2020/calendar/multiview-calendar.module.mjs} +5 -5
  120. package/{esm2015/calendar/navigation.component.js → esm2020/calendar/navigation.component.mjs} +8 -5
  121. package/{esm2015/calendar/services/bus-view.service.js → esm2020/calendar/services/bus-view.service.mjs} +5 -5
  122. package/{esm2015/calendar/services/century-view.service.js → esm2020/calendar/services/century-view.service.mjs} +4 -4
  123. package/{esm2015/calendar/services/decade-view.service.js → esm2020/calendar/services/decade-view.service.mjs} +4 -4
  124. package/{esm2015/calendar/services/disabled-dates.service.js → esm2020/calendar/services/disabled-dates.service.mjs} +4 -4
  125. package/{esm2015/calendar/services/dom.service.js → esm2020/calendar/services/dom.service.mjs} +6 -9
  126. package/{esm2015/calendar/services/month-view.service.js → esm2020/calendar/services/month-view.service.mjs} +5 -4
  127. package/{esm2015/calendar/services/navigation.service.js → esm2020/calendar/services/navigation.service.mjs} +5 -4
  128. package/{esm2015/calendar/services/scroll-sync.service.js → esm2020/calendar/services/scroll-sync.service.mjs} +6 -5
  129. package/{esm2015/calendar/services/selection.service.js → esm2020/calendar/services/selection.service.mjs} +6 -4
  130. package/{esm2015/calendar/services/weeknames.service.js → esm2020/calendar/services/weeknames.service.mjs} +5 -4
  131. package/{esm2015/calendar/services/year-view.service.js → esm2020/calendar/services/year-view.service.mjs} +5 -4
  132. package/{esm2015/calendar/templates/cell-template.directive.js → esm2020/calendar/templates/cell-template.directive.mjs} +5 -5
  133. package/{esm2015/calendar/templates/century-cell-template.directive.js → esm2020/calendar/templates/century-cell-template.directive.mjs} +5 -5
  134. package/{esm2015/calendar/templates/decade-cell-template.directive.js → esm2020/calendar/templates/decade-cell-template.directive.mjs} +5 -5
  135. package/{esm2015/calendar/templates/header-title-template.directive.js → esm2020/calendar/templates/header-title-template.directive.mjs} +5 -5
  136. package/{esm2015/calendar/templates/month-cell-template.directive.js → esm2020/calendar/templates/month-cell-template.directive.mjs} +5 -5
  137. package/{esm2015/calendar/templates/navigation-item-template.directive.js → esm2020/calendar/templates/navigation-item-template.directive.mjs} +5 -5
  138. package/{esm2015/calendar/templates/weeknumber-cell-template.directive.js → esm2020/calendar/templates/weeknumber-cell-template.directive.mjs} +5 -5
  139. package/{esm2015/calendar/templates/year-cell-template.directive.js → esm2020/calendar/templates/year-cell-template.directive.mjs} +5 -5
  140. package/{esm2015/calendar/templates.module.js → esm2020/calendar/templates.module.mjs} +5 -5
  141. package/{esm2015/calendar/view-list.component.js → esm2020/calendar/view-list.component.mjs} +10 -7
  142. package/{esm2015/calendar/view.component.js → esm2020/calendar/view.component.mjs} +8 -5
  143. package/{esm2015/common/dom-queries.js → esm2020/common/dom-queries.mjs} +1 -1
  144. package/esm2020/common/models/fillmode.mjs +5 -0
  145. package/esm2020/common/models/rounded.mjs +5 -0
  146. package/esm2020/common/models/size.mjs +5 -0
  147. package/{esm2015/common/picker.service.js → esm2020/common/picker.service.mjs} +1 -1
  148. package/{esm2015/common/utils.js → esm2020/common/utils.mjs} +1 -1
  149. package/{esm2015/dateinput/arrow.enum.js → esm2020/dateinput/arrow.enum.mjs} +1 -1
  150. package/{esm2015/dateinput/dateinput.component.js → esm2020/dateinput/dateinput.component.mjs} +21 -20
  151. package/{esm2015/dateinput/dateinput.module.js → esm2020/dateinput/dateinput.module.mjs} +5 -5
  152. package/{esm2015/dateinput/localization/dateinput-custom-messages.component.js → esm2020/dateinput/localization/dateinput-custom-messages.component.mjs} +5 -4
  153. package/{esm2015/dateinput/localization/dateinput-localized-messages.directive.js → esm2020/dateinput/localization/dateinput-localized-messages.directive.mjs} +5 -4
  154. package/{esm2015/dateinput/localization/messages.js → esm2020/dateinput/localization/messages.mjs} +4 -4
  155. package/esm2020/dateinput/models/format-placeholder.model.mjs +5 -0
  156. package/esm2020/dateinput/models/format-settings.model.mjs +5 -0
  157. package/esm2020/dateinput/models/incremental-steps.model.mjs +5 -0
  158. package/{esm2015/dateinputs.module.js → esm2020/dateinputs.module.mjs} +5 -5
  159. package/{esm2015/datepicker/datepicker.component.js → esm2020/datepicker/datepicker.component.mjs} +10 -10
  160. package/{esm2015/datepicker/datepicker.module.js → esm2020/datepicker/datepicker.module.mjs} +5 -5
  161. package/{esm2015/datepicker/localization/datepicker-custom-messages.component.js → esm2020/datepicker/localization/datepicker-custom-messages.component.mjs} +5 -4
  162. package/{esm2015/datepicker/localization/datepicker-localized-messages.directive.js → esm2020/datepicker/localization/datepicker-localized-messages.directive.mjs} +5 -4
  163. package/{esm2015/datepicker/localization/messages.js → esm2020/datepicker/localization/messages.mjs} +4 -4
  164. package/esm2020/daterange/auto-correct-on.type.mjs +5 -0
  165. package/{esm2015/daterange/date-range-end-input.directive.js → esm2020/daterange/date-range-end-input.directive.mjs} +7 -5
  166. package/{esm2015/daterange/date-range-input.js → esm2020/daterange/date-range-input.mjs} +7 -5
  167. package/{esm2015/daterange/date-range-popup-template.directive.js → esm2020/daterange/date-range-popup-template.directive.mjs} +5 -5
  168. package/{esm2015/daterange/date-range-popup.component.js → esm2020/daterange/date-range-popup.component.mjs} +7 -5
  169. package/{esm2015/daterange/date-range-selection.directive.js → esm2020/daterange/date-range-selection.directive.mjs} +6 -5
  170. package/{esm2015/daterange/date-range-start-input.directive.js → esm2020/daterange/date-range-start-input.directive.mjs} +7 -5
  171. package/{esm2015/daterange/date-range.component.js → esm2020/daterange/date-range.component.mjs} +6 -7
  172. package/{esm2015/daterange/date-range.module.js → esm2020/daterange/date-range.module.mjs} +5 -5
  173. package/{esm2015/daterange/date-range.service.js → esm2020/daterange/date-range.service.mjs} +5 -5
  174. package/{esm2015/datetimepicker/datetimepicker.component.js → esm2020/datetimepicker/datetimepicker.component.mjs} +12 -11
  175. package/{esm2015/datetimepicker/datetimepicker.module.js → esm2020/datetimepicker/datetimepicker.module.mjs} +5 -5
  176. package/{esm2015/datetimepicker/localization/datetimepicker-custom-messages.component.js → esm2020/datetimepicker/localization/datetimepicker-custom-messages.component.mjs} +5 -4
  177. package/{esm2015/datetimepicker/localization/localized-messages.directive.js → esm2020/datetimepicker/localization/localized-messages.directive.mjs} +5 -4
  178. package/{esm2015/datetimepicker/localization/messages.js → esm2020/datetimepicker/localization/messages.mjs} +4 -4
  179. package/esm2020/datetimepicker/models/active-tab.type.mjs +5 -0
  180. package/{esm2015/defaults.js → esm2020/defaults.mjs} +1 -1
  181. package/{esm2015/main.js → esm2020/index.mjs} +1 -1
  182. package/{esm2015/package-metadata.js → esm2020/package-metadata.mjs} +3 -3
  183. package/esm2020/popup-settings.model.mjs +5 -0
  184. package/{esm2015/preventable-event.js → esm2020/preventable-event.mjs} +1 -1
  185. package/{esm2015/kendo-angular-dateinputs.js → esm2020/progress-kendo-angular-dateinputs.mjs} +2 -2
  186. package/{esm2015/timepicker/localization/messages.js → esm2020/timepicker/localization/messages.mjs} +4 -4
  187. package/{esm2015/timepicker/localization/timepicker-custom-messages.component.js → esm2020/timepicker/localization/timepicker-custom-messages.component.mjs} +5 -4
  188. package/{esm2015/timepicker/localization/timepicker-localized-messages.directive.js → esm2020/timepicker/localization/timepicker-localized-messages.directive.mjs} +5 -4
  189. package/{esm2015/timepicker/localization/timeselector-custom-messages.component.js → esm2020/timepicker/localization/timeselector-custom-messages.component.mjs} +5 -4
  190. package/{esm2015/timepicker/localization/timeselector-localized-messages.directive.js → esm2020/timepicker/localization/timeselector-localized-messages.directive.mjs} +5 -4
  191. package/esm2020/timepicker/models/incremental-steps.model.mjs +5 -0
  192. package/esm2020/timepicker/models/list-item.interface.mjs +5 -0
  193. package/esm2020/timepicker/models/list-service-settings.mjs +5 -0
  194. package/esm2020/timepicker/models/list-service.interface.mjs +5 -0
  195. package/{esm2015/timepicker/models/time-part.default.js → esm2020/timepicker/models/time-part.default.mjs} +1 -1
  196. package/{esm2015/timepicker/services/dayperiod.service.js → esm2020/timepicker/services/dayperiod.service.mjs} +5 -4
  197. package/{esm2015/timepicker/services/dom.service.js → esm2020/timepicker/services/dom.service.mjs} +4 -4
  198. package/{esm2015/timepicker/services/hours.service.js → esm2020/timepicker/services/hours.service.mjs} +5 -4
  199. package/{esm2015/timepicker/services/milliseconds.service.js → esm2020/timepicker/services/milliseconds.service.mjs} +5 -4
  200. package/{esm2015/timepicker/services/minutes.service.js → esm2020/timepicker/services/minutes.service.mjs} +5 -4
  201. package/{esm2015/timepicker/services/seconds.service.js → esm2020/timepicker/services/seconds.service.mjs} +5 -4
  202. package/{esm2015/timepicker/timelist.component.js → esm2020/timepicker/timelist.component.mjs} +9 -9
  203. package/{esm2015/timepicker/timepicker.component.js → esm2020/timepicker/timepicker.component.mjs} +10 -8
  204. package/{esm2015/timepicker/timepicker.module.js → esm2020/timepicker/timepicker.module.mjs} +5 -5
  205. package/{esm2015/timepicker/timeselector.component.js → esm2020/timepicker/timeselector.component.mjs} +8 -5
  206. package/{esm2015/timepicker/util.js → esm2020/timepicker/util.mjs} +1 -1
  207. package/{esm2015/touch-enabled.js → esm2020/touch-enabled.mjs} +1 -1
  208. package/{esm2015/util.js → esm2020/util.mjs} +3 -3
  209. package/{esm2015/validators/disabled-date.validator.js → esm2020/validators/disabled-date.validator.mjs} +1 -1
  210. package/{esm2015/validators/disabled-dates-range.validator.js → esm2020/validators/disabled-dates-range.validator.mjs} +1 -1
  211. package/{esm2015/validators/incomplete-date.validator.js → esm2020/validators/incomplete-date.validator.mjs} +1 -1
  212. package/{esm2015/validators/max.validator.js → esm2020/validators/max.validator.mjs} +1 -1
  213. package/{esm2015/validators/min.validator.js → esm2020/validators/min.validator.mjs} +1 -1
  214. package/{esm2015/validators/time-range.validator.js → esm2020/validators/time-range.validator.mjs} +1 -1
  215. package/esm2020/virtualization/models/scrollable.interface.mjs +5 -0
  216. package/{esm2015/virtualization/services/row-height.service.js → esm2020/virtualization/services/row-height.service.mjs} +1 -1
  217. package/{esm2015/virtualization/services/scroller.service.js → esm2020/virtualization/services/scroller.service.mjs} +1 -1
  218. package/{esm2015/virtualization/virtualization.component.js → esm2020/virtualization/virtualization.component.mjs} +6 -6
  219. package/{esm2015/virtualization/virtualization.module.js → esm2020/virtualization/virtualization.module.mjs} +5 -5
  220. package/fesm2015/progress-kendo-angular-dateinputs.mjs +16468 -0
  221. package/{fesm2015/kendo-angular-dateinputs.js → fesm2020/progress-kendo-angular-dateinputs.mjs} +552 -562
  222. package/{main.d.ts → index.d.ts} +2 -1
  223. package/package-metadata.d.ts +1 -1
  224. package/package.json +34 -60
  225. package/popup-settings.model.d.ts +1 -1
  226. package/preventable-event.d.ts +1 -1
  227. package/{kendo-angular-dateinputs.d.ts → progress-kendo-angular-dateinputs.d.ts} +2 -2
  228. package/schematics/ngAdd/index.js +1 -5
  229. package/timepicker/localization/messages.d.ts +1 -1
  230. package/timepicker/localization/timepicker-custom-messages.component.d.ts +1 -1
  231. package/timepicker/localization/timepicker-localized-messages.directive.d.ts +1 -1
  232. package/timepicker/localization/timeselector-custom-messages.component.d.ts +1 -1
  233. package/timepicker/localization/timeselector-localized-messages.directive.d.ts +1 -1
  234. package/timepicker/models/incremental-steps.model.d.ts +1 -1
  235. package/timepicker/models/list-item.interface.d.ts +1 -1
  236. package/timepicker/models/list-service-settings.d.ts +1 -1
  237. package/timepicker/models/list-service.interface.d.ts +1 -1
  238. package/timepicker/models/time-part.default.d.ts +1 -1
  239. package/timepicker/services/dayperiod.service.d.ts +1 -1
  240. package/timepicker/services/dom.service.d.ts +1 -1
  241. package/timepicker/services/hours.service.d.ts +1 -1
  242. package/timepicker/services/milliseconds.service.d.ts +1 -1
  243. package/timepicker/services/minutes.service.d.ts +1 -1
  244. package/timepicker/services/seconds.service.d.ts +1 -1
  245. package/timepicker/timelist.component.d.ts +1 -1
  246. package/timepicker/timepicker.component.d.ts +2 -2
  247. package/timepicker/timepicker.module.d.ts +1 -1
  248. package/timepicker/timeselector.component.d.ts +1 -1
  249. package/timepicker/util.d.ts +1 -1
  250. package/touch-enabled.d.ts +1 -1
  251. package/util.d.ts +1 -1
  252. package/validators/disabled-date.validator.d.ts +1 -1
  253. package/validators/disabled-dates-range.validator.d.ts +1 -1
  254. package/validators/incomplete-date.validator.d.ts +1 -1
  255. package/validators/max.validator.d.ts +1 -1
  256. package/validators/min.validator.d.ts +1 -1
  257. package/validators/time-range.validator.d.ts +1 -1
  258. package/virtualization/models/scrollable.interface.d.ts +1 -1
  259. package/virtualization/services/row-height.service.d.ts +1 -1
  260. package/virtualization/services/scroller.service.d.ts +1 -1
  261. package/virtualization/virtualization.component.d.ts +1 -1
  262. package/virtualization/virtualization.module.d.ts +1 -1
  263. package/bundles/kendo-angular-dateinputs.umd.js +0 -5
  264. package/esm2015/calendar/models/scrollable.interface.js +0 -5
  265. package/esm2015/calendar/models/selection-range-end.type.js +0 -5
  266. package/esm2015/calendar/models/selection.js +0 -5
  267. package/esm2015/calendar/models/type.js +0 -5
  268. package/esm2015/calendar/models/view-service.interface.js +0 -5
  269. package/esm2015/calendar/models/view.type.js +0 -5
  270. package/esm2015/common/models/fillmode.js +0 -5
  271. package/esm2015/common/models/rounded.js +0 -5
  272. package/esm2015/common/models/size.js +0 -5
  273. package/esm2015/dateinput/models/format-placeholder.model.js +0 -5
  274. package/esm2015/dateinput/models/format-settings.model.js +0 -5
  275. package/esm2015/dateinput/models/incremental-steps.model.js +0 -5
  276. package/esm2015/daterange/auto-correct-on.type.js +0 -5
  277. package/esm2015/datetimepicker/models/active-tab.type.js +0 -5
  278. package/esm2015/popup-settings.model.js +0 -5
  279. package/esm2015/timepicker/models/incremental-steps.model.js +0 -5
  280. package/esm2015/timepicker/models/list-item.interface.js +0 -5
  281. package/esm2015/timepicker/models/list-service-settings.js +0 -5
  282. package/esm2015/timepicker/models/list-service.interface.js +0 -5
  283. package/esm2015/virtualization/models/scrollable.interface.js +0 -5
  284. package/schematics/ngAdd/index.js.map +0 -1
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/forms"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-date-math"),require("@progress/kendo-angular-common"),require("@progress/kendo-licensing"),require("@progress/kendo-angular-intl"),require("rxjs"),require("@angular/common"),require("rxjs/operators"),require("@progress/kendo-angular-popup"),require("@progress/kendo-common")):"function"==typeof define&&define.amd?define("KendoAngularDateinputs",["exports","@angular/core","@angular/forms","@progress/kendo-angular-l10n","@progress/kendo-date-math","@progress/kendo-angular-common","@progress/kendo-licensing","@progress/kendo-angular-intl","rxjs","@angular/common","rxjs/operators","@progress/kendo-angular-popup","@progress/kendo-common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularDateinputs={},e.ng.core,e.ng.forms,e.KendoAngularL10N,e.KendoDateMath,e.KendoAngularCommon,e.KendoLicensing,e.KendoAngularIntl,e.rxjs,e.ng.common,e.rxjs.operators,e.KendoAngularPopup,e.KendoCommon)}(this,function(e,h,n,t,k,m,A,L,p,i,B,z,j){"use strict";function _(n){var i;return n&&n.__esModule?n:(i=Object.create(null),n&&Object.keys(n).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(i,e,t.get?t:{enumerable:!0,get:function(){return n[e]}}))}),i.default=n,Object.freeze(i))}function H(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)}function $(e){return e.preventDefault()}function Y(e){return e.relatedTarget||document.activeElement}function o(e){return null!=e}function U(e){return e.shiftKey&&(e.keyCode===K.ArrowRight||e.keyCode===K.ArrowLeft||e.keyCode===K.ArrowDown||e.keyCode===K.ArrowUp)}var l,g,K,a=_(h),r=_(t),W=_(m),s=_(L),c=_(i),q=_(z),Z={name:"@progress/kendo-angular-dateinputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1668698426,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},G=((u=l=l||{})[u.Left=0]="Left",u[u.Right=1]="Right",u[u.Up=2]="Up",u[u.Down=3]="Down",u[u.PrevView=4]="PrevView",u[u.NextView=5]="NextView",u[u.FirstInView=6]="FirstInView",u[u.LastInView=7]="LastInView",u[u.LowerView=8]="LowerView",u[u.UpperView=9]="UpperView",(u=g=g||{})[u.month=0]="month",u[u.year=1]="year",u[u.decade=2]="decade",u[u.century=3]="century",new Date(1980,0,1)),X=new Date(1900,0,1),Q=new Date(2099,11,31),J=new Date(1980,0,1),ee=new Date(1980,0,1,23,59,59),te={start:null,end:null};(u=K=K||{})[u.ArrowDown=40]="ArrowDown",u[u.ArrowLeft=37]="ArrowLeft",u[u.ArrowRight=39]="ArrowRight",u[u.ArrowUp=38]="ArrowUp";function ne(e){return null!=e}function ie(n){return function(e,t){e=k.cloneDate(e);return e[n](t),e}}function ae(e,t,n){return{candidateValue:Pe(G,e),maxValue:k.addDays(Pe(G,n),t.getHours()<n.getHours()||t.getHours()===n.getHours()&&t.getMinutes()<n.getMinutes()?0:1),minValue:Pe(G,t)}}function oe(e,t,n){void 0===n&&(n=1);for(var i=[],a=e;a<t;a+=n)i.push(a);return i}function re(e,t,n){return!e||!(t&&e<t||n&&n<e)}function se(e,t,n){return!(e&&t&&n)||(t=(e=ae(e,t,n)).candidateValue,n=e.minValue,e=e.maxValue,n<=t&&t<=e)}function le(e,t){return!ne(e)||!ne(t)||e<=t}function ce(e,t,n){return e&&(t&&e<t?k.cloneDate(t):n&&n<e?k.cloneDate(n):e)}function pe(){return new Date}function ue(){return k.getDate(new Date)}function f(e){}function de(){return"undefined"!=typeof window}function he(e,t){return e.slice(t).concat(e.slice(0,t))}function me(a){return function(e,t,n){void 0===t&&(t=""),void 0===n&&(n={});var i=document.createElement(a);return i.className=t,Object.keys(n).map(function(e){return i.style[e]=n[e]}),"string"==typeof e?i.innerHTML=e||"":(e||[]).forEach(function(e){return e&&i.appendChild(e)}),i}}function ge(e,t){return void 0!==e[t]}function fe(e,t){return e[t]&&void 0!==e[t].currentValue&&null!==e[t].currentValue}function ve(e){return(e=void 0===e?[]:e)&&e[e.length-1]}function ye(e,t){var n=(t=t||te).start,t=t.end;return!(!n||!t)&&n<e&&e<t}function be(e,t){return e||t}function ke(e){return{start:e,end:e}}function Ce(e,t){var n=(e=e||te).start,e=e.end,i=(t=t||te).start,t=t.end;return k.isEqual(n,i)&&k.isEqual(e,t)}function we(e,n){return n=n||[],(e=e||[]).length===n.length&&e.every(function(e,t){return k.isEqual(e,n[t])})}function De(e){return e.filter(o).sort(function(e,t){return e.getTime()-t.getTime()})}function Te(e,t){return e&&t?new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()):null}function Ie(e){return e?new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999):null}function Ve(e,t){return{small:"k-"+e+"-sm",medium:"k-"+e+"-md",large:"k-"+e+"-lg"}[t]}function xe(e){return{small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[e]}function Ee(e,t){return{solid:"k-"+e+"-solid",flat:"k-"+e+"-flat",outline:"k-"+e+"-outline"}[t]}var Se=".k-content .k-calendar-table",Re=".k-content.k-calendar-table",Oe="aria-activedescendant",Me="aria-controls",Ne="aria-expanded",Fe="aria-invalid",Pe=function(e,t){e=k.cloneDate(e);return e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e},Ae=ie("setFullYear"),Le=ie("setHours"),Be=ie("setMinutes"),ze=ie("setSeconds"),je=ie("setMilliseconds"),_e="medium",He="medium",$e="solid",Ye=[[]],Ue=((u={})[l.Left]=function(e){return k.addDecades(e,-1)},u[l.Up]=function(e){return k.addDecades(e,-5)},u[l.Right]=function(e){return k.addDecades(e,1)},u[l.Down]=function(e){return k.addDecades(e,5)},u[l.PrevView]=function(e){return k.addCenturies(e,-1)},u[l.NextView]=function(e){return k.addCenturies(e,1)},u[l.FirstInView]=function(e){return k.firstDecadeOfCentury(e)},u[l.LastInView]=function(e){return k.lastDecadeOfCentury(e)},u),u=(Ke.prototype.addToDate=function(e,t){return k.addCenturies(e,t)},Ke.prototype.datesList=function(t,e){return oe(0,e).map(function(e){return k.addCenturies(t,e)})},Ke.prototype.data=function(e){var t,o,r,s,l=this,c=e.cellUID,p=e.focusedDate,u=e.isActiveView,d=e.max,h=e.min,m=e.selectedDates,n=e.selectionRange,g=void 0===n?te:n,n=e.viewDate;return n?(t=oe(0,4),o=k.firstDecadeOfCentury(n),r=k.lastDecadeOfCentury(n),s=ue(),oe(0,3).map(function(e){var a=k.addDecades(o,4*e);return t.map(function(e){var t,n,i=l.normalize(k.addDecades(a,e),h,d),e=i.getFullYear()>r.getFullYear();return!l.isInRange(i,h,d)||e?null:(e=l.isEqual(i,g.start),t=l.isEqual(i,g.end),n=!e&&!t&&ye(i,g),{formattedValue:l.value(i),id:""+c+i.getTime(),isFocused:l.isEqual(i,p),isSelected:u&&m.some(function(e){return l.isEqual(i,e)}),isWeekend:!1,isRangeStart:e,isRangeMid:n,isRangeEnd:t,isRangeSplitEnd:n&&l.isEqual(i,r),isRangeSplitStart:n&&l.isEqual(i,o),isToday:l.isEqual(i,s),title:l.cellTitle(i),value:i})})})):Ye},Ke.prototype.isEqual=function(e,t){return!(!e||!t)&&k.firstYearOfDecade(e).getFullYear()===k.firstYearOfDecade(t).getFullYear()},Ke.prototype.isInArray=function(e,t){return!!t.length&&(e=e.getFullYear(),t[0].getFullYear()<=e)&&e<=t[t.length-1].getFullYear()+99},Ke.prototype.isInRange=function(e,t,n){e=k.firstYearOfDecade(e).getFullYear(),t=!t||k.firstYearOfDecade(t).getFullYear()<=e,e=!n||e<=k.firstYearOfDecade(n).getFullYear();return t&&e},Ke.prototype.beginningOfPeriod=function(e){var t;return e&&(t=k.firstYearOfDecade(k.firstDecadeOfCentury(e)),k.createDate(t.getFullYear(),0,1))},Ke.prototype.lastDayOfPeriod=function(e){e=k.lastDecadeOfCentury(e),e=k.lastYearOfDecade(e),e=k.lastMonthOfYear(e);return k.lastDayOfMonth(e)},Ke.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},Ke.prototype.move=function(e,t){t=Ue[t];return t?t(e):e},Ke.prototype.cellTitle=function(e){return k.firstYearOfDecade(e).getFullYear().toString()},Ke.prototype.navigationTitle=function(e){return e?k.firstDecadeOfCentury(e).getFullYear().toString():""},Ke.prototype.title=function(e){return e?k.firstDecadeOfCentury(e).getFullYear()+" - "+k.lastDecadeOfCentury(e).getFullYear():""},Ke.prototype.rowLength=function(){return 4},Ke.prototype.skip=function(e,t){return k.durationInCenturies(t,e)},Ke.prototype.total=function(e,t){return k.durationInCenturies(e,t)+1},Ke.prototype.value=function(e){return e?k.firstYearOfDecade(e).getFullYear().toString():""},Ke.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);return t<n?k.addCenturies(e,-1*(n-t)):e},Ke.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?k.cloneDate(t):n<e&&this.isEqual(e,n)?k.cloneDate(n):e},Ke);function Ke(){this.dateRange=function(e,t){if(!o(e)||!o(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=k.addDecades(i,1);return n}}u.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:u,deps:[],target:a.ɵɵFactoryTarget.Injectable}),u.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:u}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:u,decorators:[{type:h.Injectable}]});var We=[[]],qe=((d={})[l.Left]=function(e){return k.addYears(e,-1)},d[l.Up]=function(e){return k.addYears(e,-5)},d[l.Right]=function(e){return k.addYears(e,1)},d[l.Down]=function(e){return k.addYears(e,5)},d[l.PrevView]=function(e){return k.addDecades(e,-1)},d[l.NextView]=function(e){return k.addDecades(e,1)},d[l.FirstInView]=function(e){return k.firstYearOfDecade(e)},d[l.LastInView]=function(e){return k.lastYearOfDecade(e)},d),d=(Ze.prototype.addToDate=function(e,t){return k.addDecades(e,t)},Ze.prototype.datesList=function(t,e){return oe(0,e).map(function(e){return k.addDecades(t,e)})},Ze.prototype.data=function(e){var t,o,r,s,l=this,c=e.cellUID,p=e.focusedDate,u=e.isActiveView,d=e.max,h=e.min,m=e.selectedDates,n=e.selectionRange,g=void 0===n?te:n,n=e.viewDate;return n?(t=oe(0,4),o=k.firstYearOfDecade(n),r=k.lastYearOfDecade(n),s=ue(),oe(0,3).map(function(e){var a=k.addYears(o,4*e);return t.map(function(e){var t,n,i=l.normalize(k.addYears(a,e),h,d),e=i.getFullYear()>r.getFullYear();return!l.isInRange(i,h,d)||e?null:(e=l.isEqual(i,g.start),t=l.isEqual(i,g.end),n=!e&&!t&&ye(i,g),{formattedValue:l.value(i),id:""+c+i.getTime(),isFocused:l.isEqual(i,p),isSelected:u&&m.some(function(e){return l.isEqual(i,e)}),isWeekend:!1,isRangeStart:e,isRangeMid:n,isRangeEnd:t,isRangeSplitEnd:n&&l.isEqual(i,r),isRangeSplitStart:n&&l.isEqual(i,o),isToday:l.isEqual(i,s),title:l.cellTitle(i),value:i})})})):We},Ze.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()},Ze.prototype.isInArray=function(e,t){return!!t.length&&(e=e.getFullYear(),t[0].getFullYear()<=e)&&e<=t[t.length-1].getFullYear()+9},Ze.prototype.isInRange=function(e,t,n){e=e.getFullYear(),t=!t||t.getFullYear()<=e,e=!n||e<=n.getFullYear();return t&&e},Ze.prototype.beginningOfPeriod=function(e){var t;return e&&(t=k.firstYearOfDecade(e),k.createDate(t.getFullYear(),0,1))},Ze.prototype.lastDayOfPeriod=function(e){e=k.lastYearOfDecade(e),e=k.lastMonthOfYear(e);return k.lastDayOfMonth(e)},Ze.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},Ze.prototype.move=function(e,t){t=qe[t];return t?t(e):e},Ze.prototype.cellTitle=function(e){return e.getFullYear().toString()},Ze.prototype.navigationTitle=function(e){return e?k.firstYearOfDecade(e).getFullYear().toString():""},Ze.prototype.title=function(e){return e?k.firstYearOfDecade(e).getFullYear()+" - "+k.lastYearOfDecade(e).getFullYear():""},Ze.prototype.rowLength=function(){return 4},Ze.prototype.skip=function(e,t){return k.durationInDecades(t,e)},Ze.prototype.total=function(e,t){return k.durationInDecades(e,t)+1},Ze.prototype.value=function(e){return e?e.getFullYear().toString():""},Ze.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);return t<n?k.addDecades(e,-1*(n-t)):e},Ze.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?k.cloneDate(t):n<e&&this.isEqual(e,n)?k.cloneDate(n):e},Ze);function Ze(){this.dateRange=function(e,t){if(!o(e)||!o(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=k.addYears(i,1);return n}}d.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:d,deps:[],target:a.ɵɵFactoryTarget.Injectable}),d.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:d}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:d,decorators:[{type:h.Injectable}]});var Ge=[[]],Xe=((Qe={})[l.Left]=function(e){return k.addDays(e,-1)},Qe[l.Up]=function(e){return k.addWeeks(e,-1)},Qe[l.Right]=function(e){return k.addDays(e,1)},Qe[l.Down]=function(e){return k.addWeeks(e,1)},Qe[l.PrevView]=function(e){return k.addMonths(e,-1)},Qe[l.NextView]=function(e){return k.addMonths(e,1)},Qe[l.FirstInView]=function(e){return k.firstDayOfMonth(e)},Qe[l.LastInView]=function(e){return k.lastDayOfMonth(e)},Qe),Qe=(Je.prototype.addToDate=function(e,t){return k.addMonths(e,t)},Je.prototype.datesList=function(t,e){return oe(0,e).map(function(e){return k.addMonths(t,e)})},Je.prototype.data=function(e){var r,s,l,c,t,n,p,u=this,d=e.cellUID,h=e.focusedDate,m=e.isActiveView,g=e.max,f=e.min,v=e.selectedDates,i=e.selectionRange,y=void 0===i?te:i,i=e.viewDate,e=e.isDateDisabled,b=void 0===e?function(){return!1}:e;return i?(r=k.firstDayOfMonth(i),s=k.getDate(r),l=k.lastDayOfMonth(i),c=k.getDate(l),t=k.dayOfWeek(r,this._intlService.firstDay(),-1),n=oe(0,7),p=ue(),oe(0,6).map(function(e){var o=k.addDays(t,7*e);return n.map(function(e){var t,n,i,a=u.normalize(k.addDays(o,e),f,g),e=k.getDate(a),e=e<s||c<e;return a<f||g<a?null:(t=u.isEqual(a,y.start),n=u.isEqual(a,y.end),i=!t&&!n&&ye(a,y),{formattedValue:u.value(a),id:""+d+(e?a.getTime()+"1":a.getTime()),isFocused:u.isEqual(a,h),isSelected:m&&v.some(function(e){return u.isEqual(a,e)}),isWeekend:u.isWeekend(a),isRangeStart:t,isRangeMid:i,isRangeEnd:n,isRangeSplitStart:i&&u.isEqual(a,r),isRangeSplitEnd:i&&u.isEqual(a,l),isToday:u.isEqual(a,p),title:u.cellTitle(a),value:a,isDisabled:b(a),isOtherMonth:e})})})):Ge},Je.prototype.isEqual=function(e,t){return!(!e||!t)&&k.getDate(e).getTime()===k.getDate(t).getTime()},Je.prototype.isInArray=function(e,t){var n;return 0!==t.length&&(n=this.beginningOfPeriod(t[0]),t=this.beginningOfPeriod(k.addMonths(t[t.length-1],1)),n<=e)&&e<t},Je.prototype.isInRange=function(e,t,n){e=k.getDate(e),t=!t||k.getDate(t)<=e,e=!n||e<=k.getDate(n);return t&&e},Je.prototype.beginningOfPeriod=function(e){return e&&k.createDate(e.getFullYear(),e.getMonth(),1)},Je.prototype.lastDayOfPeriod=function(e){return k.lastDayOfMonth(e)},Je.prototype.isRangeStart=function(e){return!e.getMonth()},Je.prototype.move=function(e,t){t=Xe[t];return t?t(e):e},Je.prototype.cellTitle=function(e){return this._intlService.formatDate(e,"D")},Je.prototype.navigationTitle=function(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""},Je.prototype.title=function(e){return this.wideMonthNames()[e.getMonth()]+" "+e.getFullYear()},Je.prototype.rowLength=function(e){return 7+((e=void 0===e?{}:e).prependCell?1:0)},Je.prototype.skip=function(e,t){return k.durationInMonths(t,e)},Je.prototype.total=function(e,t){return k.durationInMonths(e,t)+1},Je.prototype.value=function(e){return e?e.getDate().toString():""},Je.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);return t<n?k.addMonths(e,-1*(n-t)):e},Je.prototype.isWeekend=function(e){var t=this._intlService.weekendRange(),n=t.start,t=t.end,e=e.getDay();return t<n?e<=t||n<=e:n<=e&&e<=t},Je.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},Je.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?k.cloneDate(t):n<e&&this.isEqual(e,n)?k.cloneDate(n):e},Je.prototype.wideMonthNames=function(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})},Je);function Je(e){this._intlService=e,this.dateRange=function(e,t){if(!o(e)||!o(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=k.addDays(i,1);return n}}Qe.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Qe,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),Qe.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Qe}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Qe,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});var et=[[]],tt=((nt={})[l.Left]=function(e){return k.addMonths(e,-1)},nt[l.Up]=function(e){return k.addMonths(e,4<(e=e.getMonth())?-5:e<2?-2:-7)},nt[l.Right]=function(e){return k.addMonths(e,1)},nt[l.Down]=function(e){return k.addMonths(e,(e=e.getMonth())<7?5:e<10?7:2)},nt[l.PrevView]=function(e){return k.addYears(e,-1)},nt[l.NextView]=function(e){return k.addYears(e,1)},nt[l.FirstInView]=function(e){return k.firstMonthOfYear(e)},nt[l.LastInView]=function(e){return k.lastMonthOfYear(e)},nt),nt=(it.prototype.addToDate=function(e,t){return k.addYears(e,t)},it.prototype.datesList=function(t,e){return oe(0,e).map(function(e){return k.addYears(t,e)})},it.prototype.data=function(e){var o,r,s,l,t,c,p=this,u=e.cellUID,d=e.focusedDate,h=e.isActiveView,m=e.max,g=e.min,f=e.selectedDates,n=e.selectionRange,v=void 0===n?te:n,n=e.viewDate;return n?(o=this.abbrMonthNames(),r=k.firstMonthOfYear(n),s=k.lastMonthOfYear(n),l=r.getFullYear(),t=oe(0,4),c=ue(),oe(0,3).map(function(e){var a=k.addMonths(r,4*e);return t.map(function(e){var t,n,i=p.normalize(k.addMonths(a,e),g,m),e=l<i.getFullYear();return!p.isInRange(i,g,m)||e?null:(e=p.isEqual(i,v.start),t=p.isEqual(i,v.end),n=!e&&!t&&ye(i,v),{formattedValue:o[i.getMonth()],id:""+u+i.getTime(),isFocused:p.isEqual(i,d),isSelected:h&&f.some(function(e){return p.isEqual(i,e)}),isWeekend:!1,isRangeStart:e,isRangeMid:n,isRangeEnd:t,isRangeSplitEnd:n&&p.isEqual(i,s),isRangeSplitStart:n&&p.isEqual(i,r),isToday:p.isEqual(i,c),title:p.cellTitle(i),value:i})})})):et},it.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()},it.prototype.isInArray=function(e,t){return!!t.length&&(e=e.getFullYear(),t[0].getFullYear()<=e)&&e<=t[t.length-1].getFullYear()},it.prototype.isInRange=function(e,t,n){e=k.createDate(e.getFullYear(),e.getMonth(),1),t=!t||k.createDate(t.getFullYear(),t.getMonth(),1)<=e,e=!n||e<=k.createDate(n.getFullYear(),n.getMonth(),1);return t&&e},it.prototype.beginningOfPeriod=function(e){return e&&k.createDate(e.getFullYear(),0,1)},it.prototype.lastDayOfPeriod=function(e){e=k.lastMonthOfYear(e);return k.lastDayOfMonth(e)},it.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},it.prototype.move=function(e,t){t=tt[t];return t?t(e):e},it.prototype.cellTitle=function(e){return e.getFullYear()+" "+this.value(e)},it.prototype.navigationTitle=function(e){return this.title(e)},it.prototype.title=function(e){return e?e.getFullYear().toString():""},it.prototype.rowLength=function(){return 4},it.prototype.skip=function(e,t){return k.durationInYears(t,e)},it.prototype.total=function(e,t){return k.durationInYears(e,t)+1},it.prototype.value=function(e){return e?this.abbrMonthNames()[e.getMonth()]:""},it.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);return t<n?k.addYears(e,-1*(n-t)):e},it.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},it.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?k.cloneDate(t):n<e&&this.isEqual(e,n)?k.cloneDate(n):e},it);function it(e){this._intlService=e,this.dateRange=function(e,t){if(!o(e)||!o(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=k.addMonths(i,1);return n}}nt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:nt,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),nt.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:nt}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:nt,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});(yt={})[g.month]=Qe,yt[g.year]=nt,yt[g.decade]=d,yt[g.century]=u;var at=yt,ot=0,v=(rt.prototype.configure=function(e,t){this.bottom=e,this.top=t},rt.prototype.service=function(e){e=at[e];return e?this.injector.get(e):null},rt.prototype.moveDown=function(e){this.move(e,-1)},rt.prototype.moveUp=function(e){this.move(e,1)},rt.prototype.moveToBottom=function(e){e!==this.bottom&&this.viewChanged.emit({view:this.bottom})},rt.prototype.canMoveDown=function(e){return this.bottom<e},rt.prototype.canMoveUp=function(e){return e<this.top},rt.prototype.clamp=function(e){return e<this.bottom?this.bottom:e>this.top?this.top:e},rt.prototype.move=function(e,t){t=this.clamp(function(e,t){t=g[g[e+t]];return void 0!==t?t:e}(e,t));t!==e&&this.viewChanged.emit({view:t})},rt);function rt(e){this.injector=e,this.viewChanged=new h.EventEmitter,this.bottom=g.month,this.top=g.century,this.calendarId=ot++}v.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:v,deps:[{token:a.Injector}],target:a.ɵɵFactoryTarget.Injectable}),v.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:v}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:v,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:a.Injector}]}});lt.prototype.getWeekNames=function(e,t){void 0===e&&(e=!1);t=he(this.intl.dateFormatNames({nameType:t,type:"days"}),this.intl.firstDay());return e?[""].concat(t):t};var st=lt;function lt(e){this.intl=e}st.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:st,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),st.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:st}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:st,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});var ct=function(e,t){return(ct=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function pt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ct(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,a,o=n.call(e),r=[];try{for(;(void 0===t||0<t--)&&!(i=o.next()).done;)r.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return r}function ut(e,t,n){if(n||2===arguments.length)for(var i,a=0,o=t.length;a<o;a++)!i&&a in t||((i=i||Array.prototype.slice.call(t,0,a))[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;function dt(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e}function ht(e,t){for(;e&&!t(e);)e=e.parentNode;return e}function mt(){return!1}gt.prototype.initialize=function(t){var n,i,e;"function"==typeof t?this.isDateDisabled=function(e){return t(k.getDate(e))}:(e=t,Array.isArray(e)&&0<e.length&&e.every(function(e){return"number"==typeof e})?(n=new Set(t),this.isDateDisabled=function(e){return n.has(e.getDay())}):(e=t,Array.isArray(e)&&0<e.length&&e.every(function(e){return e instanceof Date})?(i=new Set(t.map(function(e){return k.getDate(e).getTime()})),this.isDateDisabled=function(e){return i.has(k.getDate(e).getTime())}):(this.isDateDisabled=mt,this.notifyInvalidInput(t)))),this.notifyServiceChange()},gt.prototype.notifyInvalidInput=function(e){if(o(e)&&h.isDevMode())throw new Error("The 'disabledDates' value should be a function, a Day array or a Date array. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/disabled-dates/ for more information.")},gt.prototype.notifyServiceChange=function(){this.changes.next()};var b=gt;function gt(){this.changes=new p.Subject,this.isDateDisabled=mt}b.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:b,deps:[],target:a.ɵɵFactoryTarget.Injectable}),b.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:b}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:b,decorators:[{type:h.Injectable}]});Object.defineProperty(vt.prototype,"first",{get:function(){return 0===this.index},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"even",{get:function(){return this.index%2==0},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"odd",{get:function(){return!this.even},enumerable:!1,configurable:!0});var ft=vt;function vt(e,t,n,i){this.$implicit=e,this.kForOf=t,this.index=n,this.count=i}Object.defineProperty(bt.prototype,"kForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!1,configurable:!0}),bt.prototype.ngOnChanges=function(t){if("kForOf"in t){t=t.kForOf.currentValue;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.kForTrackBy)}catch(e){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((t=t).name||typeof t)+"'.")}}},bt.prototype.ngDoCheck=function(){var e;this._differ&&(e=this._differ.diff(this.kForOf))&&this._applyChanges(e)},bt.prototype._applyChanges=function(e){if(m.isDocumentAvailable()){var t=this._viewContainer.length,n=this.kForOf.length,i={};e.forEachOperation(function(e,t,n){null!==n&&(i[n]=e.item)});for(var a=t;a<n;a++)this._viewContainer.createEmbeddedView(this._template,new ft(null,this.kForOf,-1,-1),a);for(a=this._viewContainer.length;n<a;a--)this._viewContainer.remove(a-1);for(a=0;a<this._viewContainer.length;a++){var o=this._viewContainer.get(a);o.context.index=a,o.context.count=length,o.context.$implicit=i[a]||null}}};var yt=bt;function bt(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._differ=null}yt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:yt,deps:[{token:a.ViewContainerRef},{token:a.TemplateRef},{token:a.IterableDiffers}],target:a.ɵɵFactoryTarget.Directive}),yt.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:yt,selector:"[kFor][kForOf]",inputs:{kForOf:"kForOf",kForTrackBy:"kForTrackBy",kForTemplate:"kForTemplate"},usesOnChanges:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:yt,decorators:[{type:h.Directive,args:[{selector:"[kFor][kForOf]"}]}],ctorParameters:function(){return[{type:a.ViewContainerRef},{type:a.TemplateRef},{type:a.IterableDiffers}]},propDecorators:{kForOf:[{type:h.Input}],kForTrackBy:[{type:h.Input}],kForTemplate:[{type:h.Input}]}});Object.defineProperty(C.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.activeView===g.month},set:function(e){this.showWeekNumbers=e},enumerable:!1,configurable:!0}),C.prototype.ngOnInit=function(){var e=this;this.element&&this.zone.runOutsideAngular(function(){e.bindEvents()})},C.prototype.ngOnChanges=function(e){this.service=this.bus.service(this.activeView),this.service&&(this.colSpan=this.service.rowLength({prependCell:this.weekNumber}),this.title=this.service.title(this.viewDate),this.updateData(),e.activeView)&&(this.currentCellIndex=null)},C.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domEvents.forEach(function(e){return e()})},C.prototype.isHorizontal=function(){return"horizontal"===this.direction},C.prototype.isMonthView=function(){return this.activeView===g.month},C.prototype.shouldRenderCellContent=function(e){return o(e)&&!(!this.isHorizontal()&&e.isOtherMonth)},C.prototype.firstDate=function(e){e=this.firstWeekDateContext(e);return e?e.value:null},C.prototype.getWeekNumber=function(e){return this.weekNumber?k.weekInYear(e,this.intl.firstDay()):null},C.prototype.getWeekNumberContext=function(e){var t,e=this.firstWeekDateContext(e);return this.weekNumber&&e?{formattedValue:t=k.weekInYear(e.value,this.intl.firstDay()).toString(),id:null,isFocused:!1,isSelected:!1,isWeekend:!1,title:t,value:k.cloneDate(e.value)}:null},C.prototype.getStyles=function(e){!e.isOtherMonth&&this.isActive&&e.isFocused&&this.focusedCellId.emit(e.id);var n,t=e.isRangeEnd,i=e.isRangeStart,a="end"===this.activeRangeEnd&&t,o="start"===this.activeRangeEnd&&i;return n={"k-range-end":!e.isOtherMonth&&t,"k-range-mid":!e.isOtherMonth&&e.isRangeMid,"k-range-split-end":!e.isOtherMonth&&e.isRangeSplitEnd,"k-range-split-start":!e.isOtherMonth&&e.isRangeSplitStart,"k-range-start":!e.isOtherMonth&&i,"k-active":o||a,"k-focus":!e.isOtherMonth&&this.isActive&&e.isFocused,"k-selected":!e.isOtherMonth&&(e.isSelected||i||t),"k-today":!e.isOtherMonth&&e.isToday,"k-weekend":e.isWeekend,"k-disabled":e.isDisabled,"k-other-month":e.isOtherMonth},Object.keys(n).reduce(function(e,t){return n[t]?e.concat(t):e},[]).join(" ")},C.prototype.tableCellIndex=function(e,t){return e+":"+t},C.prototype.handleWeekNumberClick=function(e){var t=this,e=e.map(function(e){return e.value}).filter(function(e){return!t.disabledDatesService.isDateDisabled(e)});this.weekNumberCellClick.emit(e)},C.prototype.getMonthLabel=function(e){return 1===this.activeView?this.intl.formatDate(e,"MMMM"):null},C.prototype.firstWeekDateContext=function(e){if(!this.weekNumber)return null;for(var t=0,n=this.shouldRenderCellContent(e[t])?e[t]:null;!n&&t<e.length;)var i=e[++t],n=this.shouldRenderCellContent(i)?i:null;return n},C.prototype.updateData=function(){var e=ve(this.selectedDates)||ue(),e=Pe(this.viewDate,e);this.data=this.service.data({cellUID:this.cellUID,focusedDate:this.focusedDate,isActiveView:!this.bus.canMoveDown(this.activeView),max:this.max,min:this.min,selectedDates:this.selectedDates,selectionRange:this.selectionRange,viewDate:e,isDateDisabled:this.disabledDatesService.isDateDisabled,direction:this.direction})},C.prototype.intlChange=function(){this.updateData(),this.cdr.markForCheck()},C.prototype.disabledDatesChange=function(){this.updateData(),this.cdr.markForCheck()},C.prototype.bindEvents=function(){var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"mouseover",this.cellMouseoverHandler.bind(this)),this.renderer.listen(e,"mouseleave",this.mouseLeaveHandler.bind(this)),this.renderer.listen(e,"click",this.clickHandler.bind(this)))},C.prototype.clickHandler=function(e){var t,n,i=this.closestCell(e);i&&(i=i.getAttribute("data-cell-index"),(i=this.cellByIndex(i)).isDisabled||(t=e.ctrlKey,n=e.metaKey,e=e.shiftKey,this.cellClick.emit({date:i.value,modifiers:{ctrlKey:t,metaKey:n,shiftKey:e}})))},C.prototype.mouseLeaveHandler=function(){this.currentCellIndex&&this.emitCellLeave()},C.prototype.cellMouseoverHandler=function(e){var t,e=this.closestCell(e);e?(e=e.getAttribute("data-cell-index"),this.currentCellIndex&&this.currentCellIndex!==e&&this.emitCellLeave(),t=this.cellByIndex(e).value,this.cellEnter.emit(t),this.currentCellIndex=e):this.currentCellIndex&&this.emitCellLeave()},C.prototype.closestCell=function(e){return dt(e.target,function(e){return e.hasAttribute("data-cell-index")},this.element.nativeElement)},C.prototype.emitCellLeave=function(){var e=this.cellByIndex(this.currentCellIndex);e&&this.cellLeave.emit(e.value),this.currentCellIndex=null},C.prototype.cellByIndex=function(e){var e=y(e.split(":"),2),t=e[0],e=e[1];return this.data[t][e]};var kt=C;function C(e,t,n,i,a,o,r){this.bus=e,this.intl=t,this.cdr=n,this.element=i,this.zone=a,this.renderer=o,this.disabledDatesService=r,this.direction="vertical",this.isActive=!0,this.selectedDates=[],this.cellClick=new h.EventEmitter,this.weekNumberCellClick=new h.EventEmitter,this.cellEnter=new h.EventEmitter,this.cellLeave=new h.EventEmitter,this.focusedCellId=new h.EventEmitter,this.colSpan=0,this.subscriptions=new p.Subscription,this.domEvents=[],this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.subscriptions.add(this.disabledDatesService.changes.subscribe(this.disabledDatesChange.bind(this)))}kt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:kt,deps:[{token:v},{token:s.IntlService},{token:a.ChangeDetectorRef},{token:a.ElementRef},{token:a.NgZone},{token:a.Renderer2},{token:b}],target:a.ɵɵFactoryTarget.Component}),kt.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:kt,selector:"[kendoCalendarView]",inputs:{direction:"direction",isActive:"isActive",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate",viewDate:"viewDate",activeRangeEnd:"activeRangeEnd",selectionRange:"selectionRange",min:"min",max:"max",selectedDates:"selectedDates",weekNumber:"weekNumber",viewIndex:"viewIndex",templateRef:"templateRef",weekNumberTemplateRef:"weekNumberTemplateRef"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",cellEnter:"cellEnter",cellLeave:"cellLeave",focusedCellId:"focusedCellId"},usesOnChanges:!0,ngImport:a,template:'\n <ng-template #emptyCell><td class="k-empty k-calendar-td" role="gridcell">&nbsp;</td></ng-template>\n <tr *ngIf="!isHorizontal()" class="k-calendar-tr" role="row"><th class="k-calendar-caption" scope="col" [colSpan]="colSpan">{{title}}</th></tr>\n <tr *kFor="let row of data; let rowIndex = index" class="k-calendar-tr" role="row">\n <ng-template [ngIf]="weekNumber">\n <td\n class="k-alt k-calendar-td"\n role="gridcell"\n *ngIf="firstDate(row); else emptyCell"\n [kendoEventsOutsideAngular]="{\n click: handleWeekNumberClick.bind(this, row)\n }"\n >\n <ng-template [ngIf]="!weekNumberTemplateRef">\n {{getWeekNumber(firstDate(row))}}\n </ng-template>\n <ng-template\n [ngIf]="weekNumberTemplateRef"\n [ngTemplateOutlet]="weekNumberTemplateRef"\n [ngTemplateOutletContext]="{\n $implicit: firstDate(row),\n cellContext: getWeekNumberContext(row)\n }"\n ></ng-template>\n </td>\n </ng-template>\n <ng-container *kFor="let cell of row; let cellIndex = index">\n <td class="k-calendar-td"\n *ngIf="shouldRenderCellContent(cell); else emptyCell"\n role="gridcell"\n [attr.id]="cell.id"\n [attr.data-cell-index]="tableCellIndex(rowIndex, cellIndex)"\n [attr.aria-selected]="cell.isSelected || cell.isRangeStart || cell.isRangeMid || cell.isRangeEnd"\n [attr.aria-disabled]="cell.isDisabled"\n [attr.aria-label]="getMonthLabel(cell.value)"\n [ngClass]="getStyles(cell)"\n [title]="cell.title"\n >\n <span class="k-link">\n <ng-template [ngIf]="!templateRef">{{cell.formattedValue}}</ng-template>\n <ng-template\n *ngIf="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: cell.value, cellContext: cell }"\n ></ng-template>\n </span>\n </td>\n </ng-container>\n </tr>\n ',isInline:!0,directives:[{type:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:yt,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]},{type:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:c.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]},{type:c.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]}]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:kt,decorators:[{type:h.Component,args:[{selector:"[kendoCalendarView]",template:'\n <ng-template #emptyCell><td class="k-empty k-calendar-td" role="gridcell">&nbsp;</td></ng-template>\n <tr *ngIf="!isHorizontal()" class="k-calendar-tr" role="row"><th class="k-calendar-caption" scope="col" [colSpan]="colSpan">{{title}}</th></tr>\n <tr *kFor="let row of data; let rowIndex = index" class="k-calendar-tr" role="row">\n <ng-template [ngIf]="weekNumber">\n <td\n class="k-alt k-calendar-td"\n role="gridcell"\n *ngIf="firstDate(row); else emptyCell"\n [kendoEventsOutsideAngular]="{\n click: handleWeekNumberClick.bind(this, row)\n }"\n >\n <ng-template [ngIf]="!weekNumberTemplateRef">\n {{getWeekNumber(firstDate(row))}}\n </ng-template>\n <ng-template\n [ngIf]="weekNumberTemplateRef"\n [ngTemplateOutlet]="weekNumberTemplateRef"\n [ngTemplateOutletContext]="{\n $implicit: firstDate(row),\n cellContext: getWeekNumberContext(row)\n }"\n ></ng-template>\n </td>\n </ng-template>\n <ng-container *kFor="let cell of row; let cellIndex = index">\n <td class="k-calendar-td"\n *ngIf="shouldRenderCellContent(cell); else emptyCell"\n role="gridcell"\n [attr.id]="cell.id"\n [attr.data-cell-index]="tableCellIndex(rowIndex, cellIndex)"\n [attr.aria-selected]="cell.isSelected || cell.isRangeStart || cell.isRangeMid || cell.isRangeEnd"\n [attr.aria-disabled]="cell.isDisabled"\n [attr.aria-label]="getMonthLabel(cell.value)"\n [ngClass]="getStyles(cell)"\n [title]="cell.title"\n >\n <span class="k-link">\n <ng-template [ngIf]="!templateRef">{{cell.formattedValue}}</ng-template>\n <ng-template\n *ngIf="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: cell.value, cellContext: cell }"\n ></ng-template>\n </span>\n </td>\n </ng-container>\n </tr>\n '}]}],ctorParameters:function(){return[{type:v},{type:s.IntlService},{type:a.ChangeDetectorRef},{type:a.ElementRef},{type:a.NgZone},{type:a.Renderer2},{type:b}]},propDecorators:{direction:[{type:h.Input}],isActive:[{type:h.Input}],activeView:[{type:h.Input}],cellUID:[{type:h.Input}],focusedDate:[{type:h.Input}],viewDate:[{type:h.Input}],activeRangeEnd:[{type:h.Input}],selectionRange:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],selectedDates:[{type:h.Input}],weekNumber:[{type:h.Input}],viewIndex:[{type:h.Input}],templateRef:[{type:h.Input}],weekNumberTemplateRef:[{type:h.Input}],cellClick:[{type:h.Output}],weekNumberCellClick:[{type:h.Output}],cellEnter:[{type:h.Output}],cellLeave:[{type:h.Output}],focusedCellId:[{type:h.Output}]}});w.prototype.handleMultiViewCalendarFocus=function(){this.focusCalendar.emit()},w.prototype.handleMultiViewCalendarBlur=function(e){this.blurCalendar.emit(e)},Object.defineProperty(w.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"horizontalHostClass",{get:function(){return"horizontal"===this.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"verticalHostClass",{get:function(){return"vertical"===this.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"getComponentMonthClass",{get:function(){return this.activeView===g.month},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"getComponentYearClass",{get:function(){return this.activeView===g.year},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===g.decade},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===g.century},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"role",{get:function(){return 2===this.views?"grid":null},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"getActiveDescendant",{get:function(){return 1===this.views?this.activeDescendant:null},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"getTabIndex",{get:function(){return this.disabled||2===this.views?null:this.tabIndex},enumerable:!1,configurable:!0}),w.prototype.ngOnChanges=function(e){var t,n,i;this.initService(),0!==this.weekNames.length&&!e.weekNumber||(this.weekNames=this.getWeekNames("short"),this.wideWeekNames=this.getWeekNames("wide")),this.service&&(this.views=this.views||2,t=this.focusedDate,n=this.clampDate(this.service.viewDate(t,this.max,this.views)),this.skip=this.service.skip(n,this.min),this.total=this.service.total(this.min,this.max),i=ge(e,"activeView"),e=0<this.views&&ge(e,"views"),!i&&this.isInDates(t)&&!e&&this.activeDate||(this.dates=this.service.datesList(n,this.getTake(this.skip)),this.activeDate=k.cloneDate(this.dates[0]),this.activeDateChange.emit(this.activeDate)),this.setAriaActivedescendant(),2===this.views)&&this.renderer.setAttribute(this.element.nativeElement,"tabindex",this.tabIndex.toString())},w.prototype.ngAfterViewInit=function(){1===this.views&&this.setTableMinWidth()},w.prototype.ngOnDestroy=function(){this.intlSubscription.unsubscribe()},w.prototype.initService=function(){this.service=this.bus.service(this.activeView)},w.prototype.isMonthView=function(){return this.activeView===g.month},w.prototype.getCaptionTitle=function(e){return this.service.title(e)},w.prototype.getCaptionClass=function(){return this.isMonthView()?"k-month-header":"k-meta-header"},w.prototype.handleClassicCalendarFocus=function(){this.focusCalendar.emit()},w.prototype.handleClassicCalendarBlur=function(e){this.blurCalendar.emit(e)},w.prototype.animateView=function(e){var t=this,n=this.element.nativeElement,i=n.querySelector("table"),a=parseFloat(getComputedStyle(n).width),o=parseFloat(getComputedStyle(i).width),i=(this.renderer.setStyle(n,"width",a+"px"),this.renderer.setStyle(n,"overflow","visible"),e===l.NextView?this.nextAnimationDate=k.cloneDate(this.dates[0]):this.prevAnimationDate=k.cloneDate(this.dates[this.dates.length-1]),this.cdr.detectChanges(),n.querySelectorAll("table").forEach(function(e){t.renderer.setStyle(e,"width",o+"px"),1===t.views&&t.renderer.setStyle(e,"min-width",a+"px")}),i.getBoundingClientRect()),r=parseFloat(getComputedStyle(n).columnGap),s=e===l.NextView?"translateX(0)":"translateX(-"+(i.width+r)+"px)",e=e===l.NextView?"translateX(-"+(i.width+r)+"px)":"translateX(0)";this.animation?this.animation.cancel():(this.animation=n.animate([{transform:s},{transform:e}],{duration:500,easing:"ease-out"}),this.animation.oncancel=this.animation.onfinish=function(){t.renderer.removeStyle(n,"width"),t.renderer.removeStyle(n,"overflow"),n.querySelectorAll("table").forEach(function(e){t.renderer.removeStyle(e,"width")}),t.animation=null,t.nextAnimationDate=null,t.prevAnimationDate=null,t.cdr.detectChanges()})},w.prototype.navigate=function(e){this.animateNavigation&&m.isDocumentAvailable()&&o(this.element.nativeElement.animate)&&this.animateView(e);var e=this.move(e),t=this.service.datesList(e,this.getTake(this.skip));return this.isListInRange(t)&&(this.dates=t),this.activeDate=k.cloneDate(this.dates[0]),this.focusedDate=k.cloneDate(e),this.cdr.markForCheck(),this.activeDateChange.emit(this.activeDate),k.cloneDate(e)},w.prototype.canNavigate=function(e){return!!this.service&&this.isListInRange(this.service.datesList(this.move(e),this.getTake(this.skip)))},w.prototype.getWeekNames=function(e){return this.weekService.getWeekNames(this.weekNumber,e)},w.prototype.setTableMinWidth=function(){var e=this.element.nativeElement,t=e.querySelector("table");t&&(e=parseFloat(getComputedStyle(e).width),this.renderer.setStyle(t,"min-width",e+"px"))},w.prototype.intlChange=function(){this.weekNames=this.getWeekNames("short"),this.wideWeekNames=this.getWeekNames("wide"),this.cdr.markForCheck()},w.prototype.clampDate=function(e){return ce(e,this.min,this.max)},w.prototype.move=function(e){return this.service.move(this.dates[0]||this.focusedDate,e)},w.prototype.isListInRange=function(e){var t=this.service.beginningOfPeriod(this.min),n=this.service.beginningOfPeriod(this.service.addToDate(this.max,1));return t<=e[0]&&e[e.length-1]<n},w.prototype.isInDates=function(e){return this.service.isInArray(e,this.dates)},w.prototype.getTake=function(e){return Math.min(this.total-e,this.views)},w.prototype.setAriaActivedescendant=function(){2===this.views&&this.renderer.setAttribute(this.element.nativeElement,Oe,this.activeDescendant)};var Ct=w;function w(e,t,n,i,a,o){this.bus=e,this.intl=t,this.weekService=n,this.cdr=i,this.element=a,this.renderer=o,this.activeView=g.month,this.isActive=!0,this.min=new Date(X),this.max=new Date(Q),this.selectedDates=[],this.views=2,this.showViewHeader=!1,this.animateNavigation=!1,this.orientation="horizontal",this.tabIndex=0,this.disabled=!1,this.cellClick=new h.EventEmitter,this.weekNumberCellClick=new h.EventEmitter,this.cellEnter=new h.EventEmitter,this.cellLeave=new h.EventEmitter,this.activeDateChange=new h.EventEmitter,this.focusCalendar=new h.EventEmitter,this.blurCalendar=new h.EventEmitter,this.focusedCellChange=new h.EventEmitter,this.getComponentClass=!0,this.weekNames=[],this.wideWeekNames=[],this.dates=[],this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}Ct.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ct,deps:[{token:v},{token:s.IntlService},{token:st},{token:a.ChangeDetectorRef},{token:a.ElementRef},{token:a.Renderer2}],target:a.ɵɵFactoryTarget.Component}),Ct.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Ct,selector:"kendo-calendar-horizontal",inputs:{cellTemplateRef:"cellTemplateRef",weekNumberTemplateRef:"weekNumberTemplateRef",activeRangeEnd:"activeRangeEnd",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate",isActive:"isActive",min:"min",max:"max",selectionRange:"selectionRange",selectedDates:"selectedDates",views:"views",showViewHeader:"showViewHeader",animateNavigation:"animateNavigation",orientation:"orientation",activeDescendant:"activeDescendant",tabIndex:"tabIndex",disabled:"disabled",id:"id",weekNumber:"weekNumber"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",cellEnter:"cellEnter",cellLeave:"cellLeave",activeDateChange:"activeDateChange",focusCalendar:"focusCalendar",blurCalendar:"blurCalendar",focusedCellChange:"focusedCellChange"},host:{listeners:{focus:"handleMultiViewCalendarFocus()",blur:"handleMultiViewCalendarBlur($event)"},properties:{"class.k-calendar-view":"this.getComponentClass","class.k-align-items-start":"this.getComponentClass","class.k-justify-content-center":"this.getComponentClass","class.k-hstack":"this.horizontalHostClass","class.k-vstack":"this.verticalHostClass","class.k-calendar-monthview":"this.getComponentMonthClass","class.k-calendar-yearview":"this.getComponentYearClass","class.k-calendar-decadeview":"this.getComponentDecadeClass","class.k-calendar-centuryview":"this.getComponentCenturyClass","attr.role":"this.role"}},usesOnChanges:!0,ngImport:a,template:'\n <ng-template #tableTemplate let-date="date" let-class="className">\n <table\n [attr.role]="views === 2 ? \'none\' : \'grid\'"\n class="k-content k-calendar-table"\n [ngClass]="class"\n [attr.aria-labelledby]="id"\n [attr.aria-activedescendant]="getActiveDescendant"\n [attr.tabindex]="getTabIndex"\n (focus)="handleClassicCalendarFocus()"\n (blur)="handleClassicCalendarBlur($event)"\n >\n <caption *ngIf="showViewHeader" [ngClass]="getCaptionClass()">{{ getCaptionTitle(date) }}</caption>\n <thead *ngIf="isMonthView()" class="k-calendar-thead" role="rowgroup">\n <tr class="k-calendar-tr" role="row">\n <th *ngFor="let name of weekNames; let i = index;"\n class="k-calendar-th"\n scope="col"\n [attr.aria-label]="wideWeekNames[i]"\n role="columnheader"\n >{{name}}</th>\n </tr>\n </thead>\n <tbody\n class="k-calendar-tbody"\n kendoCalendarView\n role="rowgroup"\n direction="horizontal"\n [activeView]="activeView"\n [isActive]="isActive"\n [min]="min"\n [max]="max"\n [cellUID]="cellUID"\n [focusedDate]="focusedDate"\n [selectedDates]="selectedDates"\n [selectionRange]="selectionRange"\n [activeRangeEnd]="activeRangeEnd"\n [weekNumber]="weekNumber"\n [templateRef]="cellTemplateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef"\n [viewDate]="date"\n (cellClick)="cellClick.emit($event)"\n (weekNumberCellClick)="weekNumberCellClick.emit($event)"\n (cellEnter)="cellEnter.emit($event)"\n (cellLeave)="cellLeave.emit($event)"\n (focusedCellId)="focusedCellChange.emit($event)"\n >\n </tbody>\n </table>\n </ng-template>\n\n \x3c!-- When Next is clicked a placeholder table is rendered before the Main Table --\x3e\n <ng-template\n *ngIf="nextAnimationDate"\n [ngTemplateOutlet]="tableTemplate"\n [ngTemplateOutletContext]="{\n date: nextAnimationDate,\n className: \'k-pointer-events-none\'\n }"\n >\n </ng-template>\n\n <ng-template\n *kFor="let date of dates"\n [ngTemplateOutlet]="tableTemplate"\n [ngTemplateOutletContext]="{\n date: date\n }"\n >\n </ng-template>\n\n \x3c!-- When Prev is clicked a placeholder table is rendered after the Main Table --\x3e\n <ng-template\n *ngIf="prevAnimationDate"\n [ngTemplateOutlet]="tableTemplate"\n [ngTemplateOutletContext]="{\n date: prevAnimationDate,\n className: \'k-pointer-events-none\'\n }"\n >\n </ng-template>\n ',isInline:!0,components:[{type:kt,selector:"[kendoCalendarView]",inputs:["direction","isActive","activeView","cellUID","focusedDate","viewDate","activeRangeEnd","selectionRange","min","max","selectedDates","weekNumber","viewIndex","templateRef","weekNumberTemplateRef"],outputs:["cellClick","weekNumberCellClick","cellEnter","cellLeave","focusedCellId"]}],directives:[{type:c.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:c.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:c.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]},{type:yt,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ct,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-horizontal",template:'\n <ng-template #tableTemplate let-date="date" let-class="className">\n <table\n [attr.role]="views === 2 ? \'none\' : \'grid\'"\n class="k-content k-calendar-table"\n [ngClass]="class"\n [attr.aria-labelledby]="id"\n [attr.aria-activedescendant]="getActiveDescendant"\n [attr.tabindex]="getTabIndex"\n (focus)="handleClassicCalendarFocus()"\n (blur)="handleClassicCalendarBlur($event)"\n >\n <caption *ngIf="showViewHeader" [ngClass]="getCaptionClass()">{{ getCaptionTitle(date) }}</caption>\n <thead *ngIf="isMonthView()" class="k-calendar-thead" role="rowgroup">\n <tr class="k-calendar-tr" role="row">\n <th *ngFor="let name of weekNames; let i = index;"\n class="k-calendar-th"\n scope="col"\n [attr.aria-label]="wideWeekNames[i]"\n role="columnheader"\n >{{name}}</th>\n </tr>\n </thead>\n <tbody\n class="k-calendar-tbody"\n kendoCalendarView\n role="rowgroup"\n direction="horizontal"\n [activeView]="activeView"\n [isActive]="isActive"\n [min]="min"\n [max]="max"\n [cellUID]="cellUID"\n [focusedDate]="focusedDate"\n [selectedDates]="selectedDates"\n [selectionRange]="selectionRange"\n [activeRangeEnd]="activeRangeEnd"\n [weekNumber]="weekNumber"\n [templateRef]="cellTemplateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef"\n [viewDate]="date"\n (cellClick)="cellClick.emit($event)"\n (weekNumberCellClick)="weekNumberCellClick.emit($event)"\n (cellEnter)="cellEnter.emit($event)"\n (cellLeave)="cellLeave.emit($event)"\n (focusedCellId)="focusedCellChange.emit($event)"\n >\n </tbody>\n </table>\n </ng-template>\n\n \x3c!-- When Next is clicked a placeholder table is rendered before the Main Table --\x3e\n <ng-template\n *ngIf="nextAnimationDate"\n [ngTemplateOutlet]="tableTemplate"\n [ngTemplateOutletContext]="{\n date: nextAnimationDate,\n className: \'k-pointer-events-none\'\n }"\n >\n </ng-template>\n\n <ng-template\n *kFor="let date of dates"\n [ngTemplateOutlet]="tableTemplate"\n [ngTemplateOutletContext]="{\n date: date\n }"\n >\n </ng-template>\n\n \x3c!-- When Prev is clicked a placeholder table is rendered after the Main Table --\x3e\n <ng-template\n *ngIf="prevAnimationDate"\n [ngTemplateOutlet]="tableTemplate"\n [ngTemplateOutletContext]="{\n date: prevAnimationDate,\n className: \'k-pointer-events-none\'\n }"\n >\n </ng-template>\n '}]}],ctorParameters:function(){return[{type:v},{type:s.IntlService},{type:st},{type:a.ChangeDetectorRef},{type:a.ElementRef},{type:a.Renderer2}]},propDecorators:{handleMultiViewCalendarFocus:[{type:h.HostListener,args:["focus"]}],handleMultiViewCalendarBlur:[{type:h.HostListener,args:["blur",["$event"]]}],cellTemplateRef:[{type:h.Input}],weekNumberTemplateRef:[{type:h.Input}],activeRangeEnd:[{type:h.Input}],activeView:[{type:h.Input}],cellUID:[{type:h.Input}],focusedDate:[{type:h.Input}],isActive:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],selectionRange:[{type:h.Input}],selectedDates:[{type:h.Input}],views:[{type:h.Input}],showViewHeader:[{type:h.Input}],animateNavigation:[{type:h.Input}],orientation:[{type:h.Input}],activeDescendant:[{type:h.Input}],tabIndex:[{type:h.Input}],disabled:[{type:h.Input}],id:[{type:h.Input}],weekNumber:[{type:h.Input}],cellClick:[{type:h.Output}],weekNumberCellClick:[{type:h.Output}],cellEnter:[{type:h.Output}],cellLeave:[{type:h.Output}],activeDateChange:[{type:h.Output}],focusCalendar:[{type:h.Output}],blurCalendar:[{type:h.Output}],focusedCellChange:[{type:h.Output}],getComponentClass:[{type:h.HostBinding,args:["class.k-calendar-view"]},{type:h.HostBinding,args:["class.k-align-items-start"]},{type:h.HostBinding,args:["class.k-justify-content-center"]}],horizontalHostClass:[{type:h.HostBinding,args:["class.k-hstack"]}],verticalHostClass:[{type:h.HostBinding,args:["class.k-vstack"]}],getComponentMonthClass:[{type:h.HostBinding,args:["class.k-calendar-monthview"]}],getComponentYearClass:[{type:h.HostBinding,args:["class.k-calendar-yearview"]}],getComponentDecadeClass:[{type:h.HostBinding,args:["class.k-calendar-decadeview"]}],getComponentCenturyClass:[{type:h.HostBinding,args:["class.k-calendar-centuryview"]}],role:[{type:h.HostBinding,args:["attr.role"]}]}});Object.defineProperty(Dt.prototype,"horizontalHostClass",{get:function(){return"horizontal"===this.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"verticalHostClass",{get:function(){return"vertical"===this.orientation},enumerable:!1,configurable:!0}),Dt.prototype.ngOnInit=function(){this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.subscriptions.add(this.localization.changes.subscribe(this.l10nChange.bind(this))),this.subscriptions.add(this.disabledDatesService.changes.subscribe(this.setTodayAvailability.bind(this)))},Dt.prototype.ngOnChanges=function(e){this.bus.service(this.activeView)&&(this.activeViewValue=g[this.activeView],this.todayMessage=this.localization.get("today"),this.parentViewButtonTitle=this.localization.get("parentViewButtonTitle"),this.setTodayAvailability(),this.navigate=this.bus.canMoveUp(this.activeView),this.title=this.getTitle())},Dt.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},Dt.prototype.handleTodayClick=function(){this.todayAvailable&&(this.bus.moveToBottom(this.activeView),this.todayButtonClick.emit(ce(ue(),this.min,this.max)))},Dt.prototype.handleNavigation=function(){this.navigate&&this.bus.moveUp(this.activeView)},Dt.prototype.isDisabled=function(){return this.navigate?null:""},Dt.prototype.intlChange=function(){this.currentDate&&this.bus.service(this.activeView)&&(this.title=this.getTitle(),this.cdr.markForCheck())},Dt.prototype.l10nChange=function(){this.prevButtonTitle=this.localization.get("prevButtonTitle"),this.nextButtonTitle=this.localization.get("nextButtonTitle"),this.parentViewButtonTitle=this.localization.get("parentViewButtonTitle"),this.todayMessage=this.localization.get("today"),this.cdr.markForCheck()},Dt.prototype.getTitle=function(){var e,t,n,i;return this.currentDate?(e=this.bus.service(this.activeView),t=this.rangeLength-1,n=e.title(this.currentDate),i=e.addToDate(this.currentDate,t),t<1||!e.isInRange(i,this.min,this.max)?n:n+" - "+e.title(i)):""},Dt.prototype.setTodayAvailability=function(){var e=ue(),t=re(e,k.getDate(this.min),k.getDate(this.max)),e=this.disabledDatesService.isDateDisabled(e);this.todayAvailable=t&&!e,this.cdr.markForCheck()};var wt=Dt;function Dt(e,t,n,i,a){this.bus=e,this.cdr=t,this.localization=n,this.intl=i,this.disabledDatesService=a,this.navigate=!0,this.todayAvailable=!0,this.min=new Date(X),this.max=new Date(Q),this.rangeLength=1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.showNavigationButtons=!1,this.orientation="horizontal",this.todayButtonClick=new h.EventEmitter,this.prevButtonClick=new h.EventEmitter,this.nextButtonClick=new h.EventEmitter,this.getComponentClass=!0,this.subscriptions=new p.Subscription}wt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:wt,deps:[{token:v},{token:a.ChangeDetectorRef},{token:r.LocalizationService},{token:s.IntlService},{token:b}],target:a.ɵɵFactoryTarget.Component}),wt.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:wt,selector:"kendo-calendar-header",inputs:{activeView:"activeView",currentDate:"currentDate",min:"min",max:"max",rangeLength:"rangeLength",templateRef:"templateRef",isPrevDisabled:"isPrevDisabled",isNextDisabled:"isNextDisabled",showNavigationButtons:"showNavigationButtons",orientation:"orientation",id:"id"},outputs:{todayButtonClick:"todayButtonClick",prevButtonClick:"prevButtonClick",nextButtonClick:"nextButtonClick"},host:{properties:{"class.k-calendar-header":"this.getComponentClass","class.k-hstack":"this.horizontalHostClass","class.k-vstack":"this.verticalHostClass"}},usesOnChanges:!0,ngImport:a,template:'\n <span class="k-button k-nav-fast k-button-md k-rounded-md k-button-flat k-button-flat-base k-calendar-title"\n role="button"\n [id]="id"\n tabindex="-1"\n [class.k-disabled]="!navigate"\n [attr.aria-disabled]="isDisabled()"\n [kendoEventsOutsideAngular]="{\n click: handleNavigation\n }"\n [title]="parentViewButtonTitle"\n [scope]="this">\n <ng-template [ngIf]="!templateRef">{{title}}</ng-template>\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: title, activeView: activeViewValue, date: currentDate }"\n ></ng-template>\n </span>\n <span class="k-spacer"></span>\n <span class="k-calendar-nav k-hstack">\n <button\n *ngIf="showNavigationButtons"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-calendar-nav-prev"\n tabindex="-1"\n type="button"\n [attr.aria-disabled]="isPrevDisabled"\n [disabled]="isPrevDisabled"\n [title]="prevButtonTitle"\n (click)="prevButtonClick.emit()"\n >\n <span class="k-icon k-i-chevron-left"></span>\n </button>\n <span\n class="k-today k-calendar-nav-today"\n tabindex="-1"\n [class.k-disabled]="!todayAvailable"\n [kendoEventsOutsideAngular]="{\n click: handleTodayClick\n }"\n [scope]="this"\n role="link"\n >\n {{ todayMessage }}\n </span>\n <button\n *ngIf="showNavigationButtons"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-calendar-nav-next"\n tabindex="-1"\n type="button"\n [attr.aria-disabled]="isNextDisabled"\n [disabled]="isNextDisabled"\n [title]="nextButtonTitle"\n (click)="nextButtonClick.emit()"\n >\n <span class="k-icon k-i-chevron-right"></span>\n </button>\n </span>\n ',isInline:!0,directives:[{type:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:c.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:wt,decorators:[{type:h.Component,args:[{selector:"kendo-calendar-header",template:'\n <span class="k-button k-nav-fast k-button-md k-rounded-md k-button-flat k-button-flat-base k-calendar-title"\n role="button"\n [id]="id"\n tabindex="-1"\n [class.k-disabled]="!navigate"\n [attr.aria-disabled]="isDisabled()"\n [kendoEventsOutsideAngular]="{\n click: handleNavigation\n }"\n [title]="parentViewButtonTitle"\n [scope]="this">\n <ng-template [ngIf]="!templateRef">{{title}}</ng-template>\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: title, activeView: activeViewValue, date: currentDate }"\n ></ng-template>\n </span>\n <span class="k-spacer"></span>\n <span class="k-calendar-nav k-hstack">\n <button\n *ngIf="showNavigationButtons"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-calendar-nav-prev"\n tabindex="-1"\n type="button"\n [attr.aria-disabled]="isPrevDisabled"\n [disabled]="isPrevDisabled"\n [title]="prevButtonTitle"\n (click)="prevButtonClick.emit()"\n >\n <span class="k-icon k-i-chevron-left"></span>\n </button>\n <span\n class="k-today k-calendar-nav-today"\n tabindex="-1"\n [class.k-disabled]="!todayAvailable"\n [kendoEventsOutsideAngular]="{\n click: handleTodayClick\n }"\n [scope]="this"\n role="link"\n >\n {{ todayMessage }}\n </span>\n <button\n *ngIf="showNavigationButtons"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-calendar-nav-next"\n tabindex="-1"\n type="button"\n [attr.aria-disabled]="isNextDisabled"\n [disabled]="isNextDisabled"\n [title]="nextButtonTitle"\n (click)="nextButtonClick.emit()"\n >\n <span class="k-icon k-i-chevron-right"></span>\n </button>\n </span>\n '}]}],ctorParameters:function(){return[{type:v},{type:a.ChangeDetectorRef},{type:r.LocalizationService},{type:s.IntlService},{type:b}]},propDecorators:{activeView:[{type:h.Input}],currentDate:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],rangeLength:[{type:h.Input}],templateRef:[{type:h.Input}],isPrevDisabled:[{type:h.Input}],isNextDisabled:[{type:h.Input}],showNavigationButtons:[{type:h.Input}],orientation:[{type:h.Input}],id:[{type:h.Input}],todayButtonClick:[{type:h.Output}],prevButtonClick:[{type:h.Output}],nextButtonClick:[{type:h.Output}],getComponentClass:[{type:h.HostBinding,args:["class.k-calendar-header"]}],horizontalHostClass:[{type:h.HostBinding,args:["class.k-hstack"]}],verticalHostClass:[{type:h.HostBinding,args:["class.k-vstack"]}]}});It.prototype.performSelection=function(e){var t,n=e.date,i=e.modifiers,a=e.selectionMode,o=e.activeViewEnum,r=e.rangePivot,e=e.selectedDates.slice();return"multiple"===a?i.ctrlKey||i.metaKey?(this.isDateSelected(e,n)?e=e.filter(function(e){return!k.isEqual(e,n)}):e.push(n),r=n):i.shiftKey?(t=(a=y(De([r||n,n]),2))[0],a=a[1],e=this.bus.service(o).dateRange(t,a),r=n>e[0]?e[0]:ve(e),i.anyArrow&&(t=(o=y(De([this.lastClicked||n,n]),2))[0],a=o[1],e=this.bus.service(0).dateRange(t,a))):(e=[n],r=n):(e=[n],r=n),{selectedDates:e,rangePivot:r}},It.prototype.isDateSelected=function(e,t){return e.some(function(e){return k.isEqual(e,t)})};var Tt=It;function It(e){this.bus=e}Tt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Tt,deps:[{token:v}],target:a.ɵɵFactoryTarget.Injectable}),Tt.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Tt}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Tt,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:v}]}});function Vt(n){return function(e){var t={minError:{minValue:n,value:e.value}};return n&&e.value&&e.value<n?t:null}}function xt(n){return function(e){var t={maxError:{maxValue:n,value:e.value}};return n&&e.value&&e.value>n?t:null}}function Et(){return null}function St(t){return o(t)?function(e){return o(e)&&o(e.start)&&o(e.end)&&!(e.start>e.end)&&(e=function(e,t,n){if(!(e&&t&&n)||t<e)return[];for(var i=[],a=e;a<=t;)n(a)&&i.push(a),a=k.addDays(a,1);return i}(e.start,e.end,t)).length?{disabledDatesInRange:e}:null}:Et}var Rt=function(e){this.templateRef=e},Ot=(Rt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Rt,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),Rt.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Rt,selector:"[kendoCalendarCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Rt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarCellTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),function(e){this.templateRef=e}),Mt=(Ot.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ot,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),Ot.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ot,selector:"[kendoCalendarMonthCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ot,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarMonthCellTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),function(e){this.templateRef=e}),Nt=(Mt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Mt,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),Mt.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Mt,selector:"[kendoCalendarYearCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Mt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarYearCellTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),function(e){this.templateRef=e}),Ft=(Nt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Nt,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),Nt.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Nt,selector:"[kendoCalendarDecadeCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Nt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarDecadeCellTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),function(e){this.templateRef=e}),Pt=(Ft.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ft,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),Ft.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ft,selector:"[kendoCalendarCenturyCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ft,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarCenturyCellTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),function(e){this.templateRef=e}),At=(Pt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Pt,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),Pt.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Pt,selector:"[kendoCalendarWeekNumberCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Pt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarWeekNumberCellTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),function(e){this.templateRef=e}),Lt=(At.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:At,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),At.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:At,selector:"[kendoCalendarHeaderTitleTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:At,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarHeaderTitleTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),{33:l.PrevView,34:l.NextView,35:l.LastInView,36:l.FirstInView,37:l.Left,38:l.Up,39:l.Right,40:l.Down,"meta+38":l.UpperView,"meta+40":l.LowerView}),Bt=(zt.prototype.action=function(e){e=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return Lt[e]},zt.prototype.move=function(e,t,n){var i=this.bus.service(n);return i?t===l.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n),e):t===l.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n),e):i.move(e,t):e},zt);function zt(e){this.bus=e}Bt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Bt,deps:[{token:v}],target:a.ɵɵFactoryTarget.Injectable}),Bt.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Bt}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Bt,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:v}]}});pt(_t,jt=t.ComponentMessages);var jt,D=_t;function _t(){return null!==jt&&jt.apply(this,arguments)||this}D.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:D,deps:null,target:a.ɵɵFactoryTarget.Directive}),D.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:D,selector:"kendo-multiview-calendar-messages-base",inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle",parentViewButtonTitle:"parentViewButtonTitle"},usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:D,decorators:[{type:h.Directive,args:[{selector:"kendo-multiview-calendar-messages-base"}]}],propDecorators:{today:[{type:h.Input}],prevButtonTitle:[{type:h.Input}],nextButtonTitle:[{type:h.Input}],parentViewButtonTitle:[{type:h.Input}]}});pt(Yt,Ht=D);var Ht,$t=Yt;function Yt(e){var t=Ht.call(this)||this;return t.service=e,t}$t.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:$t,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),$t.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:$t,selector:"[kendoMultiViewCalendarLocalizedMessages]",providers:[{provide:D,useExisting:h.forwardRef(function(){return $t})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:$t,decorators:[{type:h.Directive,args:[{providers:[{provide:D,useExisting:h.forwardRef(function(){return $t})}],selector:"[kendoMultiViewCalendarLocalizedMessages]"}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});var Ut="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",T={multi:!0,provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return Wt})},Kt={multi:!0,provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return Wt})},Wt=(Object.defineProperty(I.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){this._focusedDate=e||ue()},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"headerId",{get:function(){return this.id+"header-"},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"multiViewCalendarHeaderIdLabel",{get:function(){return 2===this.views?this.id+"header-":null},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"calendarHeaderIdLabel",{get:function(){return 1===this.views?this.id+"header-":null},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(X)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(Q)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter(o).map(function(e){return k.cloneDate(e)}):k.cloneDate(e);var t,e=[].concat(e).filter(o).map(function(e){return k.cloneDate(e)});we(e,this.selectedDates)||(t=ve(e),this.rangePivot=k.cloneDate(t),this.focusedDate=k.cloneDate(t)||this.focusedDate,this.selectedDates=e)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"disabledDates",{set:function(e){this.disabledDatesService.initialize(e)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"selectionRange",{get:function(){return this._selectionRange},set:function(e){this._selectionRange=e,this.disabledDatesRangeValidation&&this.onValidatorChange()},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"cellTemplateRef",{get:function(){return this._cellTemplateRef||this.cellTemplate},set:function(e){this._cellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"monthCellTemplateRef",{get:function(){return this._monthCellTemplateRef||this.monthCellTemplate},set:function(e){this._monthCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"yearCellTemplateRef",{get:function(){return this._yearCellTemplateRef||this.yearCellTemplate},set:function(e){this._yearCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"decadeCellTemplateRef",{get:function(){return this._decadeCellTemplateRef||this.decadeCellTemplate},set:function(e){this._decadeCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"centuryCellTemplateRef",{get:function(){return this._centuryCellTemplateRef||this.centuryCellTemplate},set:function(e){this._centuryCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"weekNumberTemplateRef",{get:function(){return this._weekNumberTemplateRef||this.weekNumberTemplate},set:function(e){this._weekNumberTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"headerTitleTemplateRef",{get:function(){return this._headerTitleTemplateRef||this.headerTitleTemplate},set:function(e){this._headerTitleTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"activeViewEnum",{get:function(){var e=g[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"bottomViewEnum",{get:function(){return g[this.bottomView]},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"topViewEnum",{get:function(){return g[this.topView]},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"widgetId",{get:function(){return 2===this.views?this.id:null},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"ariaActivedescendant",{get:function(){return this.cellUID+this.focusedDate.getTime()},enumerable:!1,configurable:!0}),I.prototype.handleFocusout=function(e){var t=e.relatedTarget;this.element.nativeElement.contains(t)||(1===this.views?this.blurEvent.emit(e):this.blurEvent.emit(),this.onControlTouched()),this.isActive=!1,this.isHovered=!1},I.prototype.handleFocus=function(){this.isActive=!0,(1===this.views?this.focusCalendar:this.focusEvent).emit(),this.focusEvent.emit()},I.prototype.handleMouseEnter=function(){this.isHovered=!0},I.prototype.handleMouseLeave=function(){this.isHovered=!1},I.prototype.handleMousedown=function(e){e.preventDefault()},I.prototype.handleClick=function(){this.isActive||this.focus()},I.prototype.keydown=function(e){var t=-1!==[m.Keys.ArrowUp,m.Keys.ArrowDown].indexOf(e.keyCode),n=e.ctrlKey||e.metaKey,i=e.keyCode===m.Keys.ArrowRight&&n,a=e.keyCode===m.Keys.ArrowLeft&&n,o=e.keyCode===m.Keys.KeyT,r=e.keyCode===m.Keys.Enter;if(i)e.preventDefault(),this.navigateView(this.nextView);else if(a)e.preventDefault(),this.navigateView(this.prevView);else{if(n&&t)e.preventDefault();else{if(o)return this.focusedDate=ue(),void this.bus.moveToBottom(this.activeViewEnum);r&&(this.selectionService.lastClicked=this.focusedDate,this.performSelection(this.focusedDate,e))}i=ce(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max);k.isEqual(this.focusedDate,i)||(this.focusedDate=i,e.preventDefault(),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate),U(e)&&(e.anyArrow=!0,this.performSelection(this.focusedDate,e)))}},I.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.bus.viewChanged.subscribe(function(e){e=e.view;t.activeView=g[e],t.activeViewChange.emit(t.activeView),t.cdr.detectChanges(),t.updateButtonState()}))},I.prototype.ngOnChanges=function(e){var t;this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),fe(e,"focusedDate")&&(t=e.focusedDate.currentValue,this.focusedDate=ce(t,this.min,this.max)),(e.min||e.max||e.rangeValidation||e.disabledDates||e.disabledDatesRangeValidation)&&(this.minValidateFn=this.rangeValidation?Vt(this.min):f,this.maxValidateFn=this.rangeValidation?xt(this.max):f,this.disabledDatesRangeValidateFn=this.disabledDatesRangeValidation?St(this.disabledDatesService.isDateDisabled):f,this.onValidatorChange()),(e.min||e.max||e.focusedDate||e.activeView)&&this.updateButtonState()},I.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},I.prototype.ngAfterViewInit=function(){this.updateButtonState()},I.prototype.focus=function(){this.element&&this.element.nativeElement.querySelector(".k-calendar-view").focus()},I.prototype.blur=function(){this.element&&(2===this.views?this.element.nativeElement.querySelector(".k-calendar-view"):this.element.nativeElement.querySelector(".k-content.k-calendar-table")).blur()},I.prototype.handleDateChange=function(e){var t=this,n=this.bus.canMoveDown(this.activeViewEnum),i=e.selectedDates.filter(function(e){return!t.disabledDatesService.isDateDisabled(e)}),e=(this.focusedDate=e.focusedDate||this.focusedDate,!n&&we(i,this.selectedDates));this.disabled||e||(n?this.bus.moveDown(this.activeViewEnum):this.disabledDatesService.isDateDisabled(this.focusedDate)||(this.selectedDates=i.map(function(e){return k.cloneDate(e)}),this.value=this.parseSelectionToValue(i),this.onControlChange(this.parseSelectionToValue(i)),this.valueChange.emit(this.parseSelectionToValue(i))))},I.prototype.handleTodayButtonClick=function(e){var t=e.focusedDate,n=this.bus.service(this.activeViewEnum).isInArray(t,this.viewList.dates),i=!this.bus.canMoveDown(this.activeViewEnum);!n&&i&&this.emitNavigate(t),this.handleDateChange(e)},I.prototype.setActiveDate=function(e){this.activeDate=k.cloneDate(e),this.cdr.detectChanges()},I.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},I.prototype.registerOnChange=function(e){this.onControlChange=e},I.prototype.registerOnTouched=function(e){this.onControlTouched=e},I.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},I.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesRangeValidateFn(this.selectionRange)},I.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},I.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case g.month:return this.monthCellTemplateRef||this.cellTemplateRef;case g.year:return this.yearCellTemplateRef;case g.decade:return this.decadeCellTemplateRef;case g.century:return this.centuryCellTemplateRef;default:return null}},I.prototype.navigateView=function(e){this.focusedDate=this.viewList.navigate(e),this.updateButtonState(),this.emitNavigate(this.focusedDate)},I.prototype.emitNavigate=function(e){var t=g[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},I.prototype.emitCellEvent=function(e,t){m.hasObservers(e)&&this.zone.run(function(){e.emit(t)})},I.prototype.handleCellClick=function(e){var t=e.date,e=e.modifiers;this.selectionService.lastClicked=t,this.performSelection(t,e),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)},I.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.zone.run(function(){t.handleDateChange({selectedDates:e,focusedDate:ve(e)})})},I.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-range")},I.prototype.verifyChanges=function(){if(h.isDevMode()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}},I.prototype.verifyValue=function(e){if(h.isDevMode()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check "+Ut+" for possible resolution.");if("multiple"===this.selection&&e&&Array.isArray(e)&&!e.every(function(e){return e instanceof Date}))throw new Error("The 'value' should be an array of valid JavaScript Date instances. Check "+Ut+" for possible resolution.")}},I.prototype.updateButtonState=function(){var e=this;this.resolvedPromise.then(function(){e.isPrevDisabled=!e.viewList.canNavigate(e.prevView),e.isNextDisabled=!e.viewList.canNavigate(e.nextView),e.cdr.markForCheck()})},I.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?k.cloneDate(ve(e)):e.map(function(e){return k.cloneDate(e)})},I.prototype.performSelection=function(e,t){t=this.selectionService.performSelection({date:e,modifiers:t,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=t.rangePivot,this.handleDateChange({selectedDates:t.selectedDates,focusedDate:e})},I);function I(e,t,n,i,a,o,r,s){this.bus=e,this.element=t,this.navigator=n,this.renderer=i,this.cdr=a,this.zone=o,this.disabledDatesService=r,this.selectionService=s,this.rangeValidation=!1,this.disabledDatesRangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.isActive=!1,this.activeView=g[g.month],this.bottomView=g[g.month],this.topView=g[g.century],this.showViewHeader=!1,this.animateNavigation=!1,this.weekNumber=!1,this.views=2,this.orientation="horizontal",this.activeViewChange=new h.EventEmitter,this.navigate=new h.EventEmitter,this.cellEnter=new h.EventEmitter,this.cellLeave=new h.EventEmitter,this.valueChange=new h.EventEmitter,this.blurEvent=new h.EventEmitter,this.focusEvent=new h.EventEmitter,this.focusCalendar=new h.EventEmitter,this.cellUID=m.guid(),this.isHovered=!1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.prevView=l.PrevView,this.nextView=l.NextView,this.selectedDates=[],this._min=new Date(X),this._max=new Date(Q),this._focusedDate=ue(),this.resolvedPromise=Promise.resolve(),this.onControlChange=f,this.onControlTouched=f,this.onValidatorChange=f,this.minValidateFn=f,this.maxValidateFn=f,this.disabledDatesRangeValidateFn=f,this.subscriptions=new p.Subscription,this.setClasses(t.nativeElement),this.id="kendo-multiviewcalendarid-"+this.bus.calendarId+"-"}Wt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Wt,deps:[{token:v},{token:a.ElementRef},{token:Bt},{token:a.Renderer2},{token:a.ChangeDetectorRef},{token:a.NgZone},{token:b},{token:Tt}],target:a.ɵɵFactoryTarget.Component}),Wt.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Wt,selector:"kendo-multiviewcalendar",inputs:{id:"id",focusedDate:"focusedDate",min:"min",max:"max",rangeValidation:"rangeValidation",disabledDatesRangeValidation:"disabledDatesRangeValidation",selection:"selection",value:"value",disabled:"disabled",tabindex:"tabindex",tabIndex:"tabIndex",isActive:"isActive",disabledDates:"disabledDates",activeView:"activeView",bottomView:"bottomView",topView:"topView",showViewHeader:"showViewHeader",animateNavigation:"animateNavigation",weekNumber:"weekNumber",activeRangeEnd:"activeRangeEnd",selectionRange:"selectionRange",views:"views",orientation:"orientation",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"]},outputs:{activeViewChange:"activeViewChange",navigate:"navigate",cellEnter:"cellEnter",cellLeave:"cellLeave",valueChange:"valueChange",blurEvent:"blur",focusEvent:"focus",focusCalendar:"focusCalendar"},host:{listeners:{mouseenter:"handleMouseEnter()",mouseleave:"handleMouseLeave()",mousedown:"handleMousedown($event)",click:"handleClick()",keydown:"keydown($event)"},properties:{"attr.id":"this.widgetId","attr.aria-disabled":"this.ariaDisabled","class.k-disabled":"this.ariaDisabled"}},providers:[v,T,Kt,t.LocalizationService,b,{provide:t.L10N_PREFIX,useValue:"kendo.multiviewcalendar"},Bt,Tt],queries:[{propertyName:"cellTemplate",first:!0,predicate:Rt,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Ot,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:Mt,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:Nt,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:Ft,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:Pt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:At,descendants:!0}],viewQueries:[{propertyName:"headerElement",first:!0,predicate:wt,descendants:!0,read:h.ElementRef},{propertyName:"viewList",first:!0,predicate:Ct,descendants:!0}],exportAs:["kendo-multiviewcalendar"],usesOnChanges:!0,ngImport:a,template:'\n <ng-container kendoMultiViewCalendarLocalizedMessages\n i18n-today="kendo.multiviewcalendar.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar"\n nextButtonTitle="Navigate to next view"\n\n i18n-parentViewButtonTitle="kendo.multiviewcalendar.parentViewButtonTitle|The title of the parent view button in the Multiview calendar header"\n parentViewButtonTitle="Navigate to parent view"\n >\n </ng-container>\n <kendo-calendar-header\n [activeView]="activeViewEnum"\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [id]="headerId"\n [rangeLength]="views"\n [templateRef]="headerTitleTemplateRef?.templateRef"\n [isPrevDisabled]="isPrevDisabled"\n [isNextDisabled]="isNextDisabled"\n [showNavigationButtons]="true"\n [orientation]="orientation"\n (todayButtonClick)="handleTodayButtonClick({ selectedDates: [$event], focusedDate: $event })"\n (prevButtonClick)="navigateView(prevView)"\n (nextButtonClick)="navigateView(nextView)"\n >\n </kendo-calendar-header>\n <kendo-calendar-horizontal\n [id]="calendarHeaderIdLabel"\n [attr.aria-labelledby]="multiViewCalendarHeaderIdLabel"\n [activeView]="activeViewEnum"\n [activeDescendant]="ariaActivedescendant"\n [isActive]="isActive || isHovered"\n [cellTemplateRef]="activeCellTemplate()?.templateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef?.templateRef"\n [cellUID]="cellUID"\n [views]="views"\n [min]="min"\n [max]="max"\n [focusedDate]="focusedDate"\n [animateNavigation]="animateNavigation"\n [showViewHeader]="showViewHeader"\n [weekNumber]="weekNumber"\n [activeRangeEnd]="activeRangeEnd"\n [selectionRange]="selectionRange"\n [selectedDates]="selectedDates"\n [orientation]="orientation"\n [tabIndex]="tabIndex"\n [disabled]="disabled"\n (cellClick)="handleCellClick($event)"\n (weekNumberCellClick)="handleWeekNumberClick($event)"\n (cellEnter)="emitCellEvent(cellEnter, $event)"\n (cellLeave)="emitCellEvent(cellLeave, $event)"\n (activeDateChange)="setActiveDate($event)"\n (focusCalendar)="handleFocus()"\n (blurCalendar)="handleFocusout($event)"\n >\n </kendo-calendar-horizontal>\n ',isInline:!0,components:[{type:wt,selector:"kendo-calendar-header",inputs:["activeView","currentDate","min","max","rangeLength","templateRef","isPrevDisabled","isNextDisabled","showNavigationButtons","orientation","id"],outputs:["todayButtonClick","prevButtonClick","nextButtonClick"]},{type:Ct,selector:"kendo-calendar-horizontal",inputs:["cellTemplateRef","weekNumberTemplateRef","activeRangeEnd","activeView","cellUID","focusedDate","isActive","min","max","selectionRange","selectedDates","views","showViewHeader","animateNavigation","orientation","activeDescendant","tabIndex","disabled","id","weekNumber"],outputs:["cellClick","weekNumberCellClick","cellEnter","cellLeave","activeDateChange","focusCalendar","blurCalendar","focusedCellChange"]}],directives:[{type:$t,selector:"[kendoMultiViewCalendarLocalizedMessages]"}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Wt,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-multiviewcalendar",providers:[v,T,Kt,t.LocalizationService,b,{provide:t.L10N_PREFIX,useValue:"kendo.multiviewcalendar"},Bt,Tt],selector:"kendo-multiviewcalendar",template:'\n <ng-container kendoMultiViewCalendarLocalizedMessages\n i18n-today="kendo.multiviewcalendar.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar"\n nextButtonTitle="Navigate to next view"\n\n i18n-parentViewButtonTitle="kendo.multiviewcalendar.parentViewButtonTitle|The title of the parent view button in the Multiview calendar header"\n parentViewButtonTitle="Navigate to parent view"\n >\n </ng-container>\n <kendo-calendar-header\n [activeView]="activeViewEnum"\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [id]="headerId"\n [rangeLength]="views"\n [templateRef]="headerTitleTemplateRef?.templateRef"\n [isPrevDisabled]="isPrevDisabled"\n [isNextDisabled]="isNextDisabled"\n [showNavigationButtons]="true"\n [orientation]="orientation"\n (todayButtonClick)="handleTodayButtonClick({ selectedDates: [$event], focusedDate: $event })"\n (prevButtonClick)="navigateView(prevView)"\n (nextButtonClick)="navigateView(nextView)"\n >\n </kendo-calendar-header>\n <kendo-calendar-horizontal\n [id]="calendarHeaderIdLabel"\n [attr.aria-labelledby]="multiViewCalendarHeaderIdLabel"\n [activeView]="activeViewEnum"\n [activeDescendant]="ariaActivedescendant"\n [isActive]="isActive || isHovered"\n [cellTemplateRef]="activeCellTemplate()?.templateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef?.templateRef"\n [cellUID]="cellUID"\n [views]="views"\n [min]="min"\n [max]="max"\n [focusedDate]="focusedDate"\n [animateNavigation]="animateNavigation"\n [showViewHeader]="showViewHeader"\n [weekNumber]="weekNumber"\n [activeRangeEnd]="activeRangeEnd"\n [selectionRange]="selectionRange"\n [selectedDates]="selectedDates"\n [orientation]="orientation"\n [tabIndex]="tabIndex"\n [disabled]="disabled"\n (cellClick)="handleCellClick($event)"\n (weekNumberCellClick)="handleWeekNumberClick($event)"\n (cellEnter)="emitCellEvent(cellEnter, $event)"\n (cellLeave)="emitCellEvent(cellLeave, $event)"\n (activeDateChange)="setActiveDate($event)"\n (focusCalendar)="handleFocus()"\n (blurCalendar)="handleFocusout($event)"\n >\n </kendo-calendar-horizontal>\n '}]}],ctorParameters:function(){return[{type:v},{type:a.ElementRef},{type:Bt},{type:a.Renderer2},{type:a.ChangeDetectorRef},{type:a.NgZone},{type:b},{type:Tt}]},propDecorators:{id:[{type:h.Input}],focusedDate:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],rangeValidation:[{type:h.Input}],disabledDatesRangeValidation:[{type:h.Input}],selection:[{type:h.Input}],value:[{type:h.Input}],disabled:[{type:h.Input}],tabindex:[{type:h.Input}],tabIndex:[{type:h.Input}],isActive:[{type:h.Input}],disabledDates:[{type:h.Input}],activeView:[{type:h.Input}],bottomView:[{type:h.Input}],topView:[{type:h.Input}],showViewHeader:[{type:h.Input}],animateNavigation:[{type:h.Input}],weekNumber:[{type:h.Input}],activeRangeEnd:[{type:h.Input}],selectionRange:[{type:h.Input}],views:[{type:h.Input}],orientation:[{type:h.Input}],activeViewChange:[{type:h.Output}],navigate:[{type:h.Output}],cellEnter:[{type:h.Output}],cellLeave:[{type:h.Output}],valueChange:[{type:h.Output}],blurEvent:[{type:h.Output,args:["blur"]}],focusEvent:[{type:h.Output,args:["focus"]}],focusCalendar:[{type:h.Output}],cellTemplate:[{type:h.ContentChild,args:[Rt,{static:!1}]}],cellTemplateRef:[{type:h.Input,args:["cellTemplate"]}],monthCellTemplate:[{type:h.ContentChild,args:[Ot,{static:!1}]}],monthCellTemplateRef:[{type:h.Input,args:["monthCellTemplate"]}],yearCellTemplate:[{type:h.ContentChild,args:[Mt,{static:!1}]}],yearCellTemplateRef:[{type:h.Input,args:["yearCellTemplate"]}],decadeCellTemplate:[{type:h.ContentChild,args:[Nt,{static:!1}]}],decadeCellTemplateRef:[{type:h.Input,args:["decadeCellTemplate"]}],centuryCellTemplate:[{type:h.ContentChild,args:[Ft,{static:!1}]}],centuryCellTemplateRef:[{type:h.Input,args:["centuryCellTemplate"]}],weekNumberTemplate:[{type:h.ContentChild,args:[Pt,{static:!1}]}],weekNumberTemplateRef:[{type:h.Input,args:["weekNumberTemplate"]}],headerTitleTemplate:[{type:h.ContentChild,args:[At,{static:!1}]}],headerTitleTemplateRef:[{type:h.Input,args:["headerTitleTemplate"]}],headerElement:[{type:h.ViewChild,args:[wt,{static:!1,read:h.ElementRef}]}],viewList:[{type:h.ViewChild,args:[Ct,{static:!1}]}],widgetId:[{type:h.HostBinding,args:["attr.id"]}],ariaDisabled:[{type:h.HostBinding,args:["attr.aria-disabled"]},{type:h.HostBinding,args:["class.k-disabled"]}],handleMouseEnter:[{type:h.HostListener,args:["mouseenter"]}],handleMouseLeave:[{type:h.HostListener,args:["mouseleave"]}],handleMousedown:[{type:h.HostListener,args:["mousedown",["$event"]]}],handleClick:[{type:h.HostListener,args:["click"]}],keydown:[{type:h.HostListener,args:["keydown",["$event"]]}]}});Zt.prototype.height=function(e){return this.heights[e]},Zt.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},Zt.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},Zt.prototype.index=function(i){var e;if(!(i<0))return void 0===(e=this.offsets.reduce(function(e,t,n){return void 0!==e?e:t===i?n:i<t?n-1:void 0},void 0))?this.total-1:e},Zt.prototype.offset=function(e){return this.offsets[e]},Zt.prototype.totalHeight=function(){return this.heights.reduce(function(e,t){return e+t},0)},Zt.prototype.updateRowHeight=function(e,t){var n,i;this.heights[e]+=t,this.offsets=(n=this.offsets,e=e,i=t,ut(ut([],y(n.slice(0,e+1))),y(n.slice(e+1).map(function(e){return e+i}))))};var qt=Zt;function Zt(e,t,n){this.total=e=void 0===e?0:e,this.rowHeight=t,this.detailRowHeight=n,this.offsets=[],this.heights=[];for(var i=0,a=0;a<e;a++)this.offsets.push(i),i+=t,this.heights.push(t)}function Gt(e){return Math.max(e,0)}var Xt=function(e){this.offset=e},Qt=function(e){this.skip=e},Jt=(en.prototype.create=function(e,t,n,i,a,o,r){var s=this,l=(void 0===a&&(a=0),void 0===o&&(o=0),void 0===r&&(r="vertical"),this.rowHeightService=e,this.firstLoaded=t,this.lastLoaded=t+n,this.take=n,this.total=i,this.lastScroll=0,this.topOffset=a,this.bottomOffset=o,this.direction=r,new p.ReplaySubject(2)),e=this.rowsForHeight(a),n=Gt(t-e);return l.next(new Xt(this.rowOffset(n))),e&&l.next(new Qt(n)),this.subscription=new p.Observable(function(t){s.unsubscribe(),s.scrollSubscription=s.scrollObservable.subscribe(function(e){return s.onScroll(e,t)})}).subscribe(function(e){return l.next(e)}),l},en.prototype.destroy=function(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()},en.prototype.onScroll=function(e,t){var n=e.scrollLeft,i=e.scrollTop,a=e.offsetHeight,e=e.offsetWidth,i="vertical"===this.direction?i:n,n="vertical"===this.direction?a:e;this.lastScroll!==i&&(a=this.lastScroll>=i,this.lastScroll=i,e=this.rowHeightService.index(Gt(i-this.topOffset)),i=this.rowHeightService.index(Gt(i+n-this.bottomOffset)),!a&&i>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=e,t.next(new Xt(this.rowOffset(e))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new Qt(this.firstLoaded))),a)&&e<=this.firstLoaded&&(n=Math.floor(.3*this.take),this.firstLoaded=Gt(e-n),t.next(new Xt(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new Qt(this.firstLoaded)))},en.prototype.rowOffset=function(e){return this.rowHeightService.offset(e)+this.topOffset},en.prototype.rowsForHeight=function(e){return Math.ceil(e/this.rowHeightService.height(0))},en.prototype.unsubscribe=function(){this.scrollSubscription&&(this.scrollSubscription.unsubscribe(),this.scrollSubscription=null)},en);function en(e){this.scrollObservable=e,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}var tn,nn=new h.InjectionToken("dateinputs-scroll-service-factory");function an(e){return new Jt(e)}(T=tn=tn||{})[T.Backward=0]="Backward",T[T.Forward=1]="Forward";(Kt={})[tn.Forward]=function(t){return function(e){return e+t}},Kt[tn.Backward]=function(t){return function(e){return e-t}};var on=Kt,rn=((T={})[tn.Forward]=function(t){return function(e){return Math.min(e,t)}},T[tn.Backward]=function(t){return function(e){return Math.max(e,t)}},T),sn=((Kt={})[tn.Forward]=function(t){return function(e){return e<t}},Kt[tn.Backward]=function(t){return function(e){return t<e}},Kt),T=(Object.defineProperty(V.prototype,"horizontalClass",{get:function(){return"horizontal"===this.direction},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"totalVertexLength",{get:function(){var e=this.totalSize+"px";return"vertical"===this.direction?{height:e}:{width:e}},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"containerOffsetSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"containerScrollSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"containerScrollPosition",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")},enumerable:!1,configurable:!0}),V.prototype.ngOnChanges=function(e){(e.direction||e.take||e.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)},V.prototype.ngOnInit=function(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())},V.prototype.ngAfterViewInit=function(){var t=this;this.zone.runOutsideAngular(function(){t.containerScrollSubscription=t.scroll$().pipe(B.map(function(e){return e.target})).subscribe(function(e){t.dispatcher.next(e),t.emitActiveIndex()})})},V.prototype.ngOnDestroy=function(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()},V.prototype.getContainerProperty=function(e){return this.container.nativeElement[e]},V.prototype.activeIndex=function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))},V.prototype.itemIndex=function(e){return this.rowHeightService.index(e)},V.prototype.itemOffset=function(e){return this.rowHeightService.offset(e)},V.prototype.isIndexVisible=function(e){var t,n,i;return!!this.rowHeightService&&(n=(t=this.containerScrollPosition)+this.containerOffsetSize,e=(i=this.rowHeightService.offset(e))+this.rowHeightService.height(e),t<=i)&&e<=n},V.prototype.isListScrolled=function(e){return this.containerScrollPosition!==this.rowHeightService.offset(e)},V.prototype.scrollTo=function(e){var t="vertical"===this.direction?"scrollTop":"scrollLeft";this.renderer.setProperty(this.container.nativeElement,t,e)},V.prototype.scrollToIndex=function(e){var t=this;this.zone.runOutsideAngular(function(){t.resolvedPromise.then(function(){t.scrollTo(t.rowHeightService.offset(e))})})},V.prototype.scrollToBottom=function(){this.scrollTo(this.totalSize)},V.prototype.animateToIndex=function(e){var t,n,i,a,o=this,e=(this.animationSubscription&&this.animationSubscription.unsubscribe(),this.rowHeightService.offset(e)),r=this.getContainerScrollDirection(e),e=this.scrollRange(e,r),s=e.start,e=e.end;s!==e&&(t=this.scrollStep(s,e),n=on[r](t),i=rn[r](e),a=sn[r](n(e)),this.zone.runOutsideAngular(function(){o.animationSubscription=p.combineLatest(p.of(s),p.interval(0,p.animationFrameScheduler)).pipe(B.map(function(e){return e[0]}),B.scan(n),B.takeWhile(a),B.map(i)).subscribe(function(e){return o.scrollTo(e)})}))},V.prototype.scrollRange=function(e,t){var n,i,a=this.containerScrollPosition;return parseInt(e,10)===parseInt(a,10)?{start:e,end:e}:(n=this.containerMaxScroll(),t=t===tn.Backward?1:-1,i=this.maxScrollDifference,a=Math.min(Math.abs(e-a),i),i=Math.min(e,n),{start:Math.min(Math.max(i+t*a,0),n),end:i})},V.prototype.scrollStep=function(e,t){return Math.abs(t-e)/(this.scrollDuration/17)},V.prototype.scroll$=function(){return m.isDocumentAvailable()?p.fromEvent(this.container.nativeElement,"scroll"):p.EMPTY},V.prototype.initServices=function(){var t=this;this.rowHeightService=this.createRowHeightService(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.scrollSubscription=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total,this.topOffset,this.scrollOffsetSize,this.direction).subscribe(function(e){(e instanceof Qt?t.pageChange:t.scrollChange).emit(e)})},V.prototype.createRowHeightService=function(){var e="vertical"===this.direction?this.itemHeight:this.itemWidth;return new qt(this.total,e,0)},V.prototype.emitActiveIndex=function(){var e=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==e&&(this.lastActiveIndex=e,this.activeIndexChange.emit(e))},V.prototype.containerMaxScroll=function(){return this.containerScrollSize-this.containerOffsetSize},V.prototype.getContainerScrollDirection=function(e){return e<this.containerScrollPosition?tn.Backward:tn.Forward},V);function V(e,t,n,i,a){this.container=t,this.renderer=n,this.zone=i,this.scrollBarWidthService=a,this.direction="vertical",this.itemHeight=1,this.itemWidth=1,this.topOffset=0,this.bottomOffset=0,this.maxScrollDifference=100,this.scrollOffsetSize=0,this.scrollDuration=150,this.activeIndexChange=new h.EventEmitter,this.pageChange=new h.EventEmitter,this.scrollChange=new h.EventEmitter,this.wrapperClasses=!0,this.resolvedPromise=Promise.resolve(null),this.dispatcher=new p.Subject,this.scroller=e(this.dispatcher)}T.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:T,deps:[{token:nn},{token:a.ElementRef},{token:a.Renderer2},{token:a.NgZone},{token:W.ScrollbarWidthService}],target:a.ɵɵFactoryTarget.Component}),T.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:T,selector:"kendo-virtualization",inputs:{direction:"direction",itemHeight:"itemHeight",itemWidth:"itemWidth",topOffset:"topOffset",bottomOffset:"bottomOffset",maxScrollDifference:"maxScrollDifference",scrollOffsetSize:"scrollOffsetSize",scrollDuration:"scrollDuration",skip:"skip",take:"take",total:"total"},outputs:{activeIndexChange:"activeIndexChange",pageChange:"pageChange",scrollChange:"scrollChange"},host:{properties:{"class.k-flex":"this.wrapperClasses","class.k-content":"this.wrapperClasses","class.k-scrollable":"this.wrapperClasses","class.k-scrollable-horizontal":"this.horizontalClass"}},providers:[{provide:nn,useValue:an}],usesOnChanges:!0,ngImport:a,template:'\n <ng-content></ng-content>\n <div\n class="k-scrollable-placeholder"\n [class.k-scrollable-horizontal-placeholder]="direction === \'horizontal\'"\n [ngStyle]="totalVertexLength"\n ></div>\n ',isInline:!0,directives:[{type:c.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]}]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:T,decorators:[{type:h.Component,args:[{providers:[{provide:nn,useValue:an}],selector:"kendo-virtualization",template:'\n <ng-content></ng-content>\n <div\n class="k-scrollable-placeholder"\n [class.k-scrollable-horizontal-placeholder]="direction === \'horizontal\'"\n [ngStyle]="totalVertexLength"\n ></div>\n '}]}],ctorParameters:function(){return[{type:void 0,decorators:[{type:h.Inject,args:[nn]}]},{type:a.ElementRef},{type:a.Renderer2},{type:a.NgZone},{type:W.ScrollbarWidthService}]},propDecorators:{direction:[{type:h.Input}],itemHeight:[{type:h.Input}],itemWidth:[{type:h.Input}],topOffset:[{type:h.Input}],bottomOffset:[{type:h.Input}],maxScrollDifference:[{type:h.Input}],scrollOffsetSize:[{type:h.Input}],scrollDuration:[{type:h.Input}],skip:[{type:h.Input}],take:[{type:h.Input}],total:[{type:h.Input}],activeIndexChange:[{type:h.Output}],pageChange:[{type:h.Output}],scrollChange:[{type:h.Output}],wrapperClasses:[{type:h.HostBinding,args:["class.k-flex"]},{type:h.HostBinding,args:["class.k-content"]},{type:h.HostBinding,args:["class.k-scrollable"]}],horizontalClass:[{type:h.HostBinding,args:["class.k-scrollable-horizontal"]}]}});function ln(e,a,o){var r,s=e.cells,l=e.rows;return function(){var e,t,n,i;return m.isDocumentAvailable?(r||(n=l,void 0===(i=s)&&(i=1),n=wn([kn([bn([yn("1","k-calendar-th")],"k-calendar-tr")].concat(In(n,function(){return bn(In(i,function(e){return vn('<span class="k-link">'+e+"</span>","k-calendar-td")}),"k-calendar-tr")})),"k-calendar-tbody")],"k-calendar-table"),e=a,t=o,r=mn([Dn(),t?Tn():null,Vn([n,n])],e,{left:"-10000px",position:"absolute"})),r):null}}function cn(e){return En(e).classList.add("k-scrollable-horizontal"),e}function pn(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight}function un(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth}function dn(e){return e.querySelector("tbody")}var hn,mn=me("div"),gn=me("ul"),fn=me("li"),vn=me("td"),yn=me("th"),bn=me("tr"),kn=me("tbody"),Cn=me("thead"),wn=me("table"),Dn=function(){return mn('\n <span class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-calendar-title">March 2017</span>\n <span class="k-spacer"></span>\n <span class="k-calendar-nav k-hstack">\n <span class="k-today k-calendar-nav-today">TODAY</span>\n </span>\n ',"k-calendar-header k-hstack")},Tn=function(){return wn([Cn([bn([yn("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table")},In=function(e,t){return new Array(e).fill("1").map(t)},Vn=function(e){return mn(e,"k-flex k-content k-scrollable")},xn=function(){return m.isDocumentAvailable?hn=hn||mn([Vn([gn([fn("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"}):null},En=function(e){return e.querySelector(".k-scrollable")},Sn=ln({cells:7,rows:6},"k-vstack k-calendar-view k-calendar-monthview",!0),Rn=ln({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-yearview",!1),On=ln({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),Mn=(Nn.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},Nn.prototype.calculateHeights=function(e){var n=this;m.isDocumentAvailable()&&(this.hostContainer=e,this.batch(Sn(),function(e){var t=dn(e);n.calendarHeight=pn(e),n.monthViewHeight=pn(t),n.headerHeight=pn(t.children[0]),n.scrollableContentHeight=pn(En(e))}),this.batch(cn(Sn()),function(e){var t=dn(e);n.calendarWidth=un(e),n.monthViewWidth=un(t),n.scrollableContentWidth=un(En(e))}),this.batch(Rn(),function(e){n.yearViewHeight=pn(dn(e)),n.scrollableYearContentHeight=pn(En(e))}),this.batch(cn(Rn()),function(e){n.yearViewWidth=un(dn(e))}),this.batch(On(),function(e){n.decadeViewHeight=pn(dn(e)),n.centuryViewHeight=n.decadeViewHeight}),this.batch(cn(On()),function(e){n.decadeViewWidth=un(dn(e)),n.centuryViewWidth=n.decadeViewWidth}),this.batch(xn(),function(e){n.navigationItemHeight=pn(e.querySelector("li"))}))},Nn.prototype.viewHeight=function(e){return this.viewDimension(e,"height")},Nn.prototype.viewWidth=function(e){return this.viewDimension(e,"width")},Nn.prototype.viewDimension=function(e,t){var n="height"===t?"ViewHeight":"ViewWidth";switch(e){case g.month:return this["month"+n];case g.year:return this["year"+n];case g.decade:return this["decade"+n];case g.century:return this["century"+n];default:return 1}},Nn.prototype.batch=function(e,t){if(o(this.hostContainer)){var n=this.hostContainer.cloneNode();document.body.appendChild(n);try{t(n.appendChild(e))}catch(e){throw e}finally{document.body.removeChild(n)}}},Nn);function Nn(){}Mn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Mn,deps:[],target:a.ɵɵFactoryTarget.Injectable}),Mn.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Mn}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Mn,decorators:[{type:h.Injectable}]});Object.defineProperty(Fn.prototype,"getComponentClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Fn.prototype.ngOnInit=function(){this.dom.ensureHeights();var e=this.dom.calendarHeight;this.itemHeight=this.dom.navigationItemHeight,this.maxViewHeight=this.dom.monthViewHeight,this.topOffset=(e-this.itemHeight)/2,this.bottomOffset=e-this.itemHeight,this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))},Fn.prototype.ngOnChanges=function(e){var t,n,i;this.service=this.bus.service(this.activeView),this.service&&(this.activeViewValue=g[this.activeView],t=ce(this.focusedDate,this.min,this.max),n=this.service.total(this.min,this.max),i=this.total&&this.total!==n,this.skip=this.service.skip(t,this.min),this.total=n,!i&&this.service.isInArray(t,this.dates)||(this.dates=this.service.datesList(t,this.getTake(this.skip))),e.focusedDate||i)&&(this.indexToScroll=this.service.skip(this.focusedDate,this.min))},Fn.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},Fn.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},Fn.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},Fn.prototype.onPageChange=function(e){e=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()},Fn.prototype.scrollChange=function(e){var e=e.offset,t=this.list.nativeElement,e="translateY("+e+"px)";this.renderer.setStyle(t,"transform",e),this.renderer.setStyle(t,"-ms-transform",e)},Fn.prototype.handleDateChange=function(e){var e=dt(e.target,function(e){return e.hasAttribute("data-date-index")},this.list.nativeElement);e&&(e=parseInt(e.getAttribute("data-date-index"),10),e=this.dates[e],this.valueChange.emit(k.cloneDate(e)))},Fn.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},Fn.prototype.intlChange=function(){this.activeView===g.month&&this.cdr.markForCheck()};Kt=Fn;function Fn(e,t,n,i,a){this.bus=e,this.dom=t,this.intl=n,this.cdr=i,this.renderer=a,this.min=new Date(X),this.max=new Date(Q),this.focusedDate=new Date,this.valueChange=new h.EventEmitter,this.pageChange=new h.EventEmitter,this.dates=[],this.take=30,this.indexToScroll=-1}Kt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Kt,deps:[{token:v},{token:Mn},{token:s.IntlService},{token:a.ChangeDetectorRef},{token:a.Renderer2}],target:a.ɵɵFactoryTarget.Component}),Kt.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Kt,selector:"kendo-calendar-navigation",inputs:{activeView:"activeView",min:"min",max:"max",focusedDate:"focusedDate",templateRef:"templateRef"},outputs:{valueChange:"valueChange",pageChange:"pageChange"},host:{properties:{"class.k-calendar-navigation":"this.getComponentClass"}},viewQueries:[{propertyName:"virtualization",first:!0,predicate:T,descendants:!0},{propertyName:"list",first:!0,predicate:["list"],descendants:!0,static:!0}],usesOnChanges:!0,ngImport:a,template:'\n <span class="k-calendar-navigation-highlight"></span>\n <kendo-virtualization\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="itemHeight"\n [topOffset]="topOffset"\n [bottomOffset]="bottomOffset"\n [maxScrollDifference]="maxViewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n >\n <ul #list class="k-reset" [kendoEventsOutsideAngular]="{ click: handleDateChange }" [scope]="this">\n <li *kFor="let date of dates; let index=index" [attr.data-date-index]="index">\n <span [class.k-calendar-navigation-marker]="service.isRangeStart(date)">\n <ng-template [ngIf]="!templateRef">{{service.navigationTitle(date)}}</ng-template>\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: service.navigationTitle(date), activeView: activeViewValue, date: date }"\n ></ng-template>\n </span>\n </li>\n </ul>\n </kendo-virtualization>\n ',isInline:!0,components:[{type:T,selector:"kendo-virtualization",inputs:["direction","itemHeight","itemWidth","topOffset","bottomOffset","maxScrollDifference","scrollOffsetSize","scrollDuration","skip","take","total"],outputs:["activeIndexChange","pageChange","scrollChange"]}],directives:[{type:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:yt,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]},{type:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:c.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Kt,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-navigation",template:'\n <span class="k-calendar-navigation-highlight"></span>\n <kendo-virtualization\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="itemHeight"\n [topOffset]="topOffset"\n [bottomOffset]="bottomOffset"\n [maxScrollDifference]="maxViewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n >\n <ul #list class="k-reset" [kendoEventsOutsideAngular]="{ click: handleDateChange }" [scope]="this">\n <li *kFor="let date of dates; let index=index" [attr.data-date-index]="index">\n <span [class.k-calendar-navigation-marker]="service.isRangeStart(date)">\n <ng-template [ngIf]="!templateRef">{{service.navigationTitle(date)}}</ng-template>\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: service.navigationTitle(date), activeView: activeViewValue, date: date }"\n ></ng-template>\n </span>\n </li>\n </ul>\n </kendo-virtualization>\n '}]}],ctorParameters:function(){return[{type:v},{type:Mn},{type:s.IntlService},{type:a.ChangeDetectorRef},{type:a.Renderer2}]},propDecorators:{activeView:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],focusedDate:[{type:h.Input}],templateRef:[{type:h.Input}],valueChange:[{type:h.Output}],pageChange:[{type:h.Output}],virtualization:[{type:h.ViewChild,args:[T,{static:!1}]}],list:[{type:h.ViewChild,args:["list",{static:!0}]}],getComponentClass:[{type:h.HostBinding,args:["class.k-calendar-navigation"]}]}});Object.defineProperty(An.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!1,configurable:!0}),Object.defineProperty(An.prototype,"getComponentMonthClass",{get:function(){return this.activeView===g.month},enumerable:!1,configurable:!0}),Object.defineProperty(An.prototype,"getComponentYearClass",{get:function(){return this.activeView===g.year},enumerable:!1,configurable:!0}),Object.defineProperty(An.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===g.decade},enumerable:!1,configurable:!0}),Object.defineProperty(An.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===g.century},enumerable:!1,configurable:!0}),An.prototype.ngOnInit=function(){this.weekNames=this.getWeekNames("short"),this.wideWeekNames=this.getWeekNames("wide"),this.bottomOffset=this.getBottomOffset(),this.viewOffset=-1*this.dom.headerHeight,this.viewHeight=this.dom.viewHeight(this.activeView),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))},An.prototype.ngOnChanges=function(e){var t,n,i,a,o;this.service=this.bus.service(this.activeView),this.service&&(this.cols=new Array(this.service.rowLength({prependCell:this.weekNumber})).fill(""),this.weekNames=ge(e,"weekNumber")&&this.weekNumber?this.getWeekNames("short"):this.weekNames,this.wideWeekNames=ge(e,"weekNumber")&&this.weekNumber?this.getWeekNames("wide"):this.weekNames,t=ge(e,"activeView"),n=this.focusedDate,a=ce(this.service.viewDate(n,this.max,this.minViewsToRender),this.min,this.max),o=this.service.total(this.min,this.max),i=this.total&&this.total!==o||!this.service.isInArray(n,this.dates),this.skip=this.service.skip(a,this.min),this.total=o,this.animateToIndex=!t,this.bottomOffset=this.getBottomOffset(),this.viewHeight=this.dom.viewHeight(this.activeView),i&&(this.dates=this.service.datesList(a,this.getTake(this.skip))),o=this.activeDate,a=n,o&&a&&o.getFullYear()===a.getFullYear()&&o.getMonth()===a.getMonth()||(this.activeDate=k.cloneDate(n)),o=ge(e,"focusedDate")||t,i||o||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(n,this.min))},An.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},An.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},An.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)},An.prototype.onPageChange=function(e){e=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()},An.prototype.scrollChange=function(e){var e=e.offset,t=this.list.nativeElement,e="translateY("+e+"px)";this.renderer.setStyle(t,"transform",e),this.renderer.setStyle(t,"-ms-transform",e)},An.prototype.setActiveDate=function(e){e=this.service.addToDate(this.min,e);this.activeDate=e,this.activeDateChange.emit(e),this.cdr.detectChanges()},An.prototype.isMonthView=function(){return this.activeView===g.month},An.prototype.isScrolled=function(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))},An.prototype.getTabIndex=function(){return this.disabled?null:this.tabIndex},An.prototype.getBottomOffset=function(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)},An.prototype.getScrollableHeight=function(){return this.activeView===g.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight},An.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},An.prototype.getWeekNames=function(e){e=he(this.intl.dateFormatNames({nameType:e,type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e},An.prototype.intlChange=function(){this.weekNames=this.getWeekNames("short"),this.wideWeekNames=this.getWeekNames("wide"),this.isMonthView()&&this.cdr.markForCheck()};var Pn=An;function An(e,t,n,i,a){this.bus=e,this.cdr=t,this.intl=n,this.dom=i,this.renderer=a,this.isActive=!0,this.min=new Date(X),this.max=new Date(Q),this.selectedDates=[],this.tabIndex=0,this.disabled=!1,this.cellClick=new h.EventEmitter,this.weekNumberCellClick=new h.EventEmitter,this.activeDateChange=new h.EventEmitter,this.todayButtonClick=new h.EventEmitter,this.pageChange=new h.EventEmitter,this.focusCalendar=new h.EventEmitter,this.blurCalendar=new h.EventEmitter,this.focusedCellChange=new h.EventEmitter,this.getComponentClass=!0,this.dates=[],this.cols=[],this.weekNames=[],this.wideWeekNames=[],this.take=5,this.animateToIndex=!0,this.indexToScroll=-1,this.minViewsToRender=1}Pn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Pn,deps:[{token:v},{token:a.ChangeDetectorRef},{token:s.IntlService},{token:Mn},{token:a.Renderer2}],target:a.ɵɵFactoryTarget.Component}),Pn.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Pn,selector:"kendo-calendar-viewlist",inputs:{cellTemplateRef:"cellTemplateRef",weekNumberTemplateRef:"weekNumberTemplateRef",headerTitleTemplateRef:"headerTitleTemplateRef",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate",isActive:"isActive",min:"min",max:"max",selectedDates:"selectedDates",tabIndex:"tabIndex",disabled:"disabled",id:"id",weekNumber:"weekNumber"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",activeDateChange:"activeDateChange",todayButtonClick:"todayButtonClick",pageChange:"pageChange",focusCalendar:"focusCalendar",blurCalendar:"blurCalendar",focusedCellChange:"focusedCellChange"},host:{properties:{"class.k-vstack":"this.getComponentClass","class.k-calendar-view":"this.getComponentClass","class.k-calendar-monthview":"this.getComponentMonthClass","class.k-calendar-yearview":"this.getComponentYearClass","class.k-calendar-decadeview":"this.getComponentDecadeClass","class.k-calendar-centuryview":"this.getComponentCenturyClass"}},viewQueries:[{propertyName:"virtualization",first:!0,predicate:T,descendants:!0},{propertyName:"list",first:!0,predicate:["list"],descendants:!0,static:!0}],usesOnChanges:!0,ngImport:a,template:'\n <kendo-calendar-header\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [id]="id"\n [activeView]="activeView"\n [templateRef]="headerTitleTemplateRef"\n (todayButtonClick)="todayButtonClick.emit($event)"\n >\n </kendo-calendar-header>\n <table class="k-calendar-weekdays k-calendar-table" style="table-layout: auto;" *ngIf="isMonthView()">\n <thead class="k-calendar-thead">\n <tr class="k-calendar-tr">\n <th class="k-calendar-th" *ngFor="let name of weekNames; let i = index;" scope="col" [attr.aria-label]="wideWeekNames[i]" role="columnheader">{{name}}</th>\n </tr>\n </thead>\n </table>\n <kendo-virtualization\n [tabindex]="-1"\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="viewHeight"\n [topOffset]="viewOffset"\n [bottomOffset]="bottomOffset"\n [scrollOffsetSize]="viewOffset"\n [maxScrollDifference]="viewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n (activeIndexChange)="setActiveDate($event)"\n >\n <table\n #list\n role="grid"\n class="k-calendar-table"\n [attr.tabindex]="getTabIndex()"\n [attr.aria-labelledby]="id"\n (focus)="focusCalendar.emit()"\n (blur)="blurCalendar.emit($event)"\n >\n <colgroup><col *ngFor="let _ of cols" /></colgroup>\n\n <tbody class="k-calendar-tbody"\n *kFor="let date of dates"\n kendoCalendarView\n role="rowgroup"\n [activeView]="activeView"\n [isActive]="isActive"\n [min]="min" [max]="max"\n [cellUID]="cellUID"\n [focusedDate]="focusedDate"\n [selectedDates]="selectedDates"\n [weekNumber]="weekNumber"\n [templateRef]="cellTemplateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef"\n [viewDate]="date"\n (cellClick)="cellClick.emit($event)"\n (weekNumberCellClick)="weekNumberCellClick.emit($event)"\n (focusedCellId)="focusedCellChange.emit($event)"\n ></tbody>\n </table>\n </kendo-virtualization>\n ',isInline:!0,components:[{type:wt,selector:"kendo-calendar-header",inputs:["activeView","currentDate","min","max","rangeLength","templateRef","isPrevDisabled","isNextDisabled","showNavigationButtons","orientation","id"],outputs:["todayButtonClick","prevButtonClick","nextButtonClick"]},{type:T,selector:"kendo-virtualization",inputs:["direction","itemHeight","itemWidth","topOffset","bottomOffset","maxScrollDifference","scrollOffsetSize","scrollDuration","skip","take","total"],outputs:["activeIndexChange","pageChange","scrollChange"]},{type:kt,selector:"[kendoCalendarView]",inputs:["direction","isActive","activeView","cellUID","focusedDate","viewDate","activeRangeEnd","selectionRange","min","max","selectedDates","weekNumber","viewIndex","templateRef","weekNumberTemplateRef"],outputs:["cellClick","weekNumberCellClick","cellEnter","cellLeave","focusedCellId"]}],directives:[{type:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:c.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:yt,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Pn,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-viewlist",template:'\n <kendo-calendar-header\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [id]="id"\n [activeView]="activeView"\n [templateRef]="headerTitleTemplateRef"\n (todayButtonClick)="todayButtonClick.emit($event)"\n >\n </kendo-calendar-header>\n <table class="k-calendar-weekdays k-calendar-table" style="table-layout: auto;" *ngIf="isMonthView()">\n <thead class="k-calendar-thead">\n <tr class="k-calendar-tr">\n <th class="k-calendar-th" *ngFor="let name of weekNames; let i = index;" scope="col" [attr.aria-label]="wideWeekNames[i]" role="columnheader">{{name}}</th>\n </tr>\n </thead>\n </table>\n <kendo-virtualization\n [tabindex]="-1"\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="viewHeight"\n [topOffset]="viewOffset"\n [bottomOffset]="bottomOffset"\n [scrollOffsetSize]="viewOffset"\n [maxScrollDifference]="viewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n (activeIndexChange)="setActiveDate($event)"\n >\n <table\n #list\n role="grid"\n class="k-calendar-table"\n [attr.tabindex]="getTabIndex()"\n [attr.aria-labelledby]="id"\n (focus)="focusCalendar.emit()"\n (blur)="blurCalendar.emit($event)"\n >\n <colgroup><col *ngFor="let _ of cols" /></colgroup>\n\n <tbody class="k-calendar-tbody"\n *kFor="let date of dates"\n kendoCalendarView\n role="rowgroup"\n [activeView]="activeView"\n [isActive]="isActive"\n [min]="min" [max]="max"\n [cellUID]="cellUID"\n [focusedDate]="focusedDate"\n [selectedDates]="selectedDates"\n [weekNumber]="weekNumber"\n [templateRef]="cellTemplateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef"\n [viewDate]="date"\n (cellClick)="cellClick.emit($event)"\n (weekNumberCellClick)="weekNumberCellClick.emit($event)"\n (focusedCellId)="focusedCellChange.emit($event)"\n ></tbody>\n </table>\n </kendo-virtualization>\n '}]}],ctorParameters:function(){return[{type:v},{type:a.ChangeDetectorRef},{type:s.IntlService},{type:Mn},{type:a.Renderer2}]},propDecorators:{cellTemplateRef:[{type:h.Input}],weekNumberTemplateRef:[{type:h.Input}],headerTitleTemplateRef:[{type:h.Input}],activeView:[{type:h.Input}],cellUID:[{type:h.Input}],focusedDate:[{type:h.Input}],isActive:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],selectedDates:[{type:h.Input}],tabIndex:[{type:h.Input}],disabled:[{type:h.Input}],id:[{type:h.Input}],weekNumber:[{type:h.Input}],cellClick:[{type:h.Output}],weekNumberCellClick:[{type:h.Output}],activeDateChange:[{type:h.Output}],todayButtonClick:[{type:h.Output}],pageChange:[{type:h.Output}],focusCalendar:[{type:h.Output}],blurCalendar:[{type:h.Output}],focusedCellChange:[{type:h.Output}],virtualization:[{type:h.ViewChild,args:[T,{static:!1}]}],list:[{type:h.ViewChild,args:["list",{static:!0}]}],getComponentClass:[{type:h.HostBinding,args:["class.k-vstack"]},{type:h.HostBinding,args:["class.k-calendar-view"]}],getComponentMonthClass:[{type:h.HostBinding,args:["class.k-calendar-monthview"]}],getComponentYearClass:[{type:h.HostBinding,args:["class.k-calendar-yearview"]}],getComponentDecadeClass:[{type:h.HostBinding,args:["class.k-calendar-decadeview"]}],getComponentCenturyClass:[{type:h.HostBinding,args:["class.k-calendar-centuryview"]}]}});Bn.prototype.configure=function(e){var t,n,e=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=(t=e,function(e){return Math.floor(e/t)}),this.powerByMagnitude=(n=e,function(e){return e*n})},Bn.prototype.sync=function(e,i){var a=this;this.unsubscribe(),e&&i&&(this.navigator=e,this.view=i,this.zone.runOutsideAngular(function(){var t,n;a.navSubscription=e.scroll$().subscribe(function(e){n?n=!1:(t=!0,a.scrollSiblingOf(e.target))}),a.viewSubscription=i.scroll$().subscribe(function(e){t?t=!1:(n=!0,a.scrollSiblingOf(e.target))})}))},Bn.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),e=this.calculateScroll(t,e.scrollTop);t.scrollTo(e)},Bn.prototype.siblingComponent=function(e){return this.navigator.container.nativeElement===e?this.view:this.navigator},Bn.prototype.calculateScroll=function(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)},Bn.prototype.destroy=function(){this.unsubscribe()},Bn.prototype.unsubscribe=function(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()};var Ln=Bn;function Bn(e,t){this.dom=e,this.zone=t}Ln.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ln,deps:[{token:Mn},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Injectable}),Ln.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ln}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ln,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:Mn},{type:a.NgZone}]}});function zn(){this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.sameDateSelected=new h.EventEmitter,this.dateCompletenessChange=new h.EventEmitter}var jn,_n=function(e){this.templateRef=e},Hn=(_n.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:_n,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),_n.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:_n,selector:"[kendoCalendarNavigationItemTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:_n,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarNavigationItemTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),pt($n,jn=D),Object.defineProperty($n.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),$n);function $n(e){var t=jn.call(this)||this;return t.service=e,t}Hn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Hn,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Hn.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Hn,selector:"kendo-multiviewcalendar-messages",providers:[{provide:D,useExisting:h.forwardRef(function(){return Hn})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Hn,decorators:[{type:h.Component,args:[{providers:[{provide:D,useExisting:h.forwardRef(function(){return Hn})}],selector:"kendo-multiviewcalendar-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});pt(Un,Yn=t.ComponentMessages);var Yn,D=Un;function Un(){return null!==Yn&&Yn.apply(this,arguments)||this}D.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:D,deps:null,target:a.ɵɵFactoryTarget.Directive}),D.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:D,selector:"kendo-calendar-messages-base",inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle",parentViewButtonTitle:"parentViewButtonTitle"},usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:D,decorators:[{type:h.Directive,args:[{selector:"kendo-calendar-messages-base"}]}],propDecorators:{today:[{type:h.Input}],prevButtonTitle:[{type:h.Input}],nextButtonTitle:[{type:h.Input}],parentViewButtonTitle:[{type:h.Input}]}});pt(qn,Kn=D);var Kn,Wn=qn;function qn(e){var t=Kn.call(this)||this;return t.service=e,t}Wn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Wn,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),Wn.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Wn,selector:"[kendoCalendarLocalizedMessages]",providers:[{provide:D,useExisting:h.forwardRef(function(){return Wn})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Wn,decorators:[{type:h.Directive,args:[{providers:[{provide:D,useExisting:h.forwardRef(function(){return Wn})}],selector:"[kendoCalendarLocalizedMessages]"}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});function Zn(e){return e?e.virtualization:null}var Gn="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",Xn={multi:!0,provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return Jn})},x={multi:!0,provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return Jn})},Qn={provide:m.KendoInput,useExisting:h.forwardRef(function(){return Jn})},Jn=(Object.defineProperty(E.prototype,"popupId",{get:function(){return"kendo-popup-"+this.bus.calendarId},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){var t,n;this.activeViewDate&&!k.isEqual(this._focusedDate,e)&&(n=(t=this.bus.service(this.activeViewEnum)).lastDayOfPeriod(this.activeViewDate),t.isInRange(e,this.activeViewDate,n)||this.emitNavigate(e)),this._focusedDate=e||ue(),this.setAriaActivedescendant()},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"headerId",{get:function(){return this.id+"-header"},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(X)},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(Q)},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter(o).map(function(e){return k.cloneDate(e)}):k.cloneDate(e);var t,e=[].concat(e).filter(o).map(function(e){return k.cloneDate(e)});we(e,this.selectedDates)||(t=ve(e),this.rangePivot=k.cloneDate(t),this.focusedDate=k.cloneDate(t)||this.focusedDate,this.selectedDates=e)},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this.disabledDatesService.initialize(e),this._disabledDates=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"type",{get:function(){return this._type},set:function(e){this.renderer.removeClass(this.element.nativeElement,"k-calendar-"+this.type),this.renderer.addClass(this.element.nativeElement,"k-calendar-"+e),this._type=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"cellTemplateRef",{get:function(){return this._cellTemplateRef||this.cellTemplate},set:function(e){this._cellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"monthCellTemplateRef",{get:function(){return this._monthCellTemplateRef||this.monthCellTemplate},set:function(e){this._monthCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"yearCellTemplateRef",{get:function(){return this._yearCellTemplateRef||this.yearCellTemplate},set:function(e){this._yearCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"decadeCellTemplateRef",{get:function(){return this._decadeCellTemplateRef||this.decadeCellTemplate},set:function(e){this._decadeCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"centuryCellTemplateRef",{get:function(){return this._centuryCellTemplateRef||this.centuryCellTemplate},set:function(e){this._centuryCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"weekNumberTemplateRef",{get:function(){return this._weekNumberTemplateRef||this.weekNumberTemplate},set:function(e){this._weekNumberTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"headerTitleTemplateRef",{get:function(){return this._headerTitleTemplateRef||this.headerTitleTemplate},set:function(e){this._headerTitleTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"navigationItemTemplateRef",{get:function(){return this._navigationItemTemplateRef||this.navigationItemTemplate},set:function(e){this._navigationItemTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"activeViewEnum",{get:function(){var e=g[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"bottomViewEnum",{get:function(){return g[this.bottomView]},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"topViewEnum",{get:function(){return g[this.topView]},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"widgetId",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"ariaDisabled",{get:function(){return"classic"===this.type?void 0:this.disabled},enumerable:!1,configurable:!0}),E.prototype.ngOnInit=function(){var t=this;"infinite"===this.type&&(this.dom.calculateHeights(this.element.nativeElement),this.scrollSyncService.configure(this.activeViewEnum)),this.localizationChangeSubscription=this.localization.changes.subscribe(function(){return t.cdr.markForCheck()}),this.viewChangeSubscription=this.bus.viewChanged.subscribe(function(e){e=e.view;return t.handleActiveViewChange(g[e])}),this.control=this.injector.get(n.NgControl,null),this.element&&this.ngZone.runOutsideAngular(function(){t.bindEvents()})},E.prototype.ngOnChanges=function(e){var t;this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),this.scrollSyncService.configure(this.activeViewEnum),fe(e,"focusedDate")&&(t=e.focusedDate.currentValue,this.focusedDate=ce(t,this.min,this.max)),e.navigation&&(this.syncNavigation=!0),(e.min||e.max||e.rangeValidation)&&(this.minValidateFn=this.rangeValidation?Vt(this.min):f,this.maxValidateFn=this.rangeValidation?xt(this.max):f,this.onValidatorChange())},E.prototype.ngAfterViewInit=function(){this.setAriaActivedescendant()},E.prototype.ngAfterViewChecked=function(){this.syncNavigation&&(this.syncNavigation=!1,this.scrollSyncService.sync(Zn(this.navigationView),Zn(this.monthView)))},E.prototype.ngOnDestroy=function(){this.scrollSyncService.destroy(),this.domEvents.forEach(function(e){return e()}),this.pickerService&&(this.pickerService.calendar=null),this.viewChangeSubscription&&this.viewChangeSubscription.unsubscribe(),this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.destroyed=!0},E.prototype.onResize=function(){this.focusedDate=new Date(this.focusedDate),this.cdr.detectChanges()},E.prototype.focus=function(){var e;this.currentlyFocusedElement="infinite"===this.type?null==(e=this.element)?void 0:e.nativeElement.querySelector(Se):this.currentlyFocusedElement=null==(e=this.element)?void 0:e.nativeElement.querySelector(Re),null!=(e=this.currentlyFocusedElement)&&e.focus()},E.prototype.blur=function(){var e="infinite"===this.type?this.currentlyFocusedElement:this.multiViewCalendar;o(e)&&e.blur()},E.prototype.containsElement=function(e){var t=this;return Boolean(ht(e,function(e){return e===t.element.nativeElement}))},E.prototype.handleNavigation=function(e){this.disabled||(e=e?new Date(k.cloneDate(e).setDate(1)):this.focusedDate,this.focusedDate=ce(e,this.min,this.max),this.detectChanges())},E.prototype.onPageChange=function(){var e=this;h.NgZone.isInAngularZone()||(this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.pageChangeSubscription=p.from(this.resolvedPromise).subscribe(function(){e.detectChanges()}))},E.prototype.handleMultiViewCalendarValueChange=function(e,t){e=Array.isArray(e)?e:[e];this.handleDateChange({selectedDates:e,focusedDate:t})},E.prototype.handleDateChange=function(e){var t=this,n=Array.isArray(e.selectedDates)?e.selectedDates:[e.selectedDates],i=this.bus.canMoveDown(this.activeViewEnum),a=n.filter(function(e){return!t.disabledDatesService.isDateDisabled(e)});this.focusedDate=e.focusedDate||this.focusedDate,this.disabled||(!i&&we(a,this.selectedDates)?this.emitSameDate():i?this.bus.moveDown(this.activeViewEnum):this.disabledDatesService.isDateDisabled(this.focusedDate)||this.ngZone.run(function(){t.selectedDates=a.map(function(e){return k.cloneDate(e)}),t.value=t.parseSelectionToValue(a),t.onControlChange(t.parseSelectionToValue(a)),t.valueChange.emit(t.parseSelectionToValue(a)),t.cdr.markForCheck()}))},E.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},E.prototype.registerOnChange=function(e){this.onControlChange=e},E.prototype.registerOnTouched=function(e){this.onControlTouched=e},E.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},E.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},E.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},E.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case g.month:return this.monthCellTemplateRef||this.cellTemplateRef;case g.year:return this.yearCellTemplateRef;case g.decade:return this.decadeCellTemplateRef;case g.century:return this.centuryCellTemplateRef;default:return null}},E.prototype.handleNavigate=function(e){this.focusedDate=e.focusedDate,this.activeView=e.activeView,this.emitNavigate(this.focusedDate)},E.prototype.emitNavigate=function(e){var t=g[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},E.prototype.emitEvent=function(e,t){m.hasObservers(e)&&this.ngZone.run(function(){e.emit(t)})},E.prototype.handleActiveDateChange=function(e){this.activeViewDate=e,this.emitEvent(this.activeViewDateChange,e)},E.prototype.handleActiveViewChange=function(e){this.activeView=e,this.emitEvent(this.activeViewChange,e),"infinite"===this.type&&this.scrollSyncService.configure(this.activeViewEnum),this.detectChanges()},E.prototype.handleCellClick=function(e){var t=e.date,e=e.modifiers;this.focus(),this.selectionService.lastClicked=t,this.performSelection(t,e)},E.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.ngZone.run(function(){t.handleDateChange({selectedDates:e,focusedDate:ve(e)})})},E.prototype.handleBlur=function(e){var t=this;this.element.nativeElement.contains(e.relatedTarget)||(this.isActive=!1,!this.pickerService&&H(this.control)?this.ngZone.run(function(){t.onControlTouched(),t.emitBlur(e),t.cdr.markForCheck()}):(this.emitBlur(e),this.detectChanges()))},E.prototype.handleFocus=function(){this.isActive=!0,h.NgZone.isInAngularZone()||this.detectChanges(),this.emitFocus()},E.prototype.handleMultiViewCalendarKeydown=function(e){o(this.pickerService)&&e.keyCode===m.Keys.Enter&&e.preventDefault()},E.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-"+this.type)},E.prototype.verifyChanges=function(){if(h.isDevMode()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}},E.prototype.verifyValue=function(e){if(h.isDevMode()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check "+Gn+" for possible resolution.");if("multiple"===this.selection&&e&&Array.isArray(e)&&!e.every(function(e){return e instanceof Date}))throw new Error("The 'value' should be an array of valid JavaScript Date instances. Check "+Gn+" for possible resolution.")}},E.prototype.bindEvents=function(){var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"focus",this.handleFocus.bind(this)),this.renderer.listen(e,"mousedown",$),this.renderer.listen(e,"click",this.handleComponentClick.bind(this)),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)))},E.prototype.emitBlur=function(e){this.pickerService&&this.pickerService.onBlur.emit(e),this.onBlur.emit()},E.prototype.emitFocus=function(){this.pickerService&&this.pickerService.onFocus.emit(),this.onFocus.emit()},E.prototype.handleComponentClick=function(){this.isActive||("infinite"===this.type&&this.monthView.isScrolled()&&(this.focusedDate=k.cloneDate(this.focusedDate),this.detectChanges()),this.focus())},E.prototype.handleKeydown=function(e){var t,n;"infinite"===this.type&&(n=e.ctrlKey||e.metaKey,t=-1!==[m.Keys.ArrowUp,m.Keys.ArrowRight,m.Keys.ArrowDown,m.Keys.ArrowLeft].indexOf(e.keyCode),o(this.pickerService)&&t&&e.altKey||(n&&t&&e.preventDefault(),o(this.pickerService)&&e.keyCode===m.Keys.Enter&&e.preventDefault(),n=ce(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max),k.isEqual(this.focusedDate,n)||(this.focusedDate=n,this.detectChanges(),e.preventDefault()),e.keyCode===m.Keys.Enter&&(this.selectionService.lastClicked=this.focusedDate,this.performSelection(this.focusedDate,e)),e.keyCode===m.Keys.KeyT&&this.focusToday(),U(e)&&(e.anyArrow=!0,this.performSelection(this.focusedDate,e))))},E.prototype.focusToday=function(){this.focusedDate=ue(),this.bus.moveToBottom(this.activeViewEnum),this.cdr.detectChanges()},E.prototype.detectChanges=function(){this.destroyed||this.cdr.detectChanges()},E.prototype.emitSameDate=function(){this.pickerService&&this.pickerService.sameDateSelected.emit()},E.prototype.setAriaActivedescendant=function(){var e,t=null==(t=this.element.nativeElement)?void 0:t.querySelector(Se);o(t)&&("classic"!==this.type||t.hasAttribute(Oe))&&("classic"===this.type?this.renderer.removeAttribute(t,Oe):(e=this.cellUID+this.focusedDate.getTime(),this.renderer.setAttribute(t,Oe,e)))},E.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?k.cloneDate(ve(e)):e.map(function(e){return k.cloneDate(e)})},E.prototype.performSelection=function(e,t){t=this.selectionService.performSelection({date:e,modifiers:t,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=t.rangePivot,this.handleDateChange({selectedDates:t.selectedDates,focusedDate:e})},E);function E(e,t,n,i,a,o,r,s,l,c,p,u,d){this.bus=e,this.dom=t,this.element=n,this.navigator=i,this.renderer=a,this.cdr=o,this.ngZone=r,this.injector=s,this.scrollSyncService=l,this.disabledDatesService=c,this.localization=p,this.selectionService=u,this.pickerService=d,this.rangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.navigation=!0,this.activeView=g[g.month],this.bottomView=g[g.month],this.topView=g[g.century],this.animateNavigation=!1,this.weekNumber=!1,this.activeViewChange=new h.EventEmitter,this.navigate=new h.EventEmitter,this.activeViewDateChange=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.valueChange=new h.EventEmitter,this.isActive=!1,this.cellUID=m.guid(),this.selectedDates=[],this._min=new Date(X),this._max=new Date(Q),this._focusedDate=ue(),this.onControlChange=f,this.onControlTouched=f,this.onValidatorChange=f,this.minValidateFn=f,this.maxValidateFn=f,this.syncNavigation=!0,this._type="infinite",this.domEvents=[],this.resolvedPromise=Promise.resolve(null),this.destroyed=!1,A.validatePackage(Z),this.id="kendo-calendarid-"+this.bus.calendarId,this.setClasses(n.nativeElement),this.pickerService&&(this.pickerService.calendar=this)}Jn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Jn,deps:[{token:v},{token:Mn},{token:a.ElementRef},{token:Bt},{token:a.Renderer2},{token:a.ChangeDetectorRef},{token:a.NgZone},{token:a.Injector},{token:Ln},{token:b},{token:r.LocalizationService},{token:Tt},{token:zn,optional:!0}],target:a.ɵɵFactoryTarget.Component}),Jn.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Jn,selector:"kendo-calendar",inputs:{id:"id",focusedDate:"focusedDate",min:"min",max:"max",rangeValidation:"rangeValidation",selection:"selection",value:"value",disabled:"disabled",tabindex:"tabindex",tabIndex:"tabIndex",disabledDates:"disabledDates",navigation:"navigation",activeView:"activeView",bottomView:"bottomView",topView:"topView",type:"type",animateNavigation:"animateNavigation",weekNumber:"weekNumber",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"],navigationItemTemplateRef:["navigationItemTemplate","navigationItemTemplateRef"]},outputs:{activeViewChange:"activeViewChange",navigate:"navigate",activeViewDateChange:"activeViewDateChange",onBlur:"blur",onFocus:"focus",valueChange:"valueChange"},host:{properties:{"class.k-week-number":"this.weekNumber","attr.id":"this.widgetId","attr.aria-disabled":"this.ariaDisabled","class.k-disabled":"this.ariaDisabled"}},providers:[v,Xn,x,Qn,t.LocalizationService,b,{provide:t.L10N_PREFIX,useValue:"kendo.calendar"},Bt,Ln,Tt],queries:[{propertyName:"cellTemplate",first:!0,predicate:Rt,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Ot,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:Mt,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:Nt,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:Ft,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:Pt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:At,descendants:!0},{propertyName:"navigationItemTemplate",first:!0,predicate:_n,descendants:!0}],viewQueries:[{propertyName:"navigationView",first:!0,predicate:Kt,descendants:!0},{propertyName:"monthView",first:!0,predicate:Pn,descendants:!0},{propertyName:"multiViewCalendar",first:!0,predicate:Wt,descendants:!0}],exportAs:["kendo-calendar"],usesOnChanges:!0,ngImport:a,template:'\n <ng-container kendoCalendarLocalizedMessages\n i18n-today="kendo.calendar.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n\n i18n-parentViewButtonTitle="kendo.calendar.parentViewButtonTitle|The title of the parent view button in the calendar header"\n parentViewButtonTitle="Navigate to parent view"\n >\n </ng-container>\n <ng-container *ngIf="type === \'infinite\'">\n <kendo-calendar-navigation\n *ngIf="navigation"\n [activeView]="activeViewEnum"\n [focusedDate]="focusedDate"\n [min]="min"\n [max]="max"\n [templateRef]="navigationItemTemplateRef?.templateRef"\n (valueChange)="handleNavigation($event)"\n (pageChange)="onPageChange()"\n >\n </kendo-calendar-navigation>\n <kendo-calendar-viewlist\n [activeView]="activeViewEnum"\n [isActive]="isActive"\n [id]="headerId"\n [cellTemplateRef]="activeCellTemplate()?.templateRef"\n [headerTitleTemplateRef]="headerTitleTemplateRef?.templateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef?.templateRef"\n [cellUID]="cellUID"\n [min]="min"\n [max]="max"\n [focusedDate]="focusedDate"\n [weekNumber]="weekNumber"\n [selectedDates]="selectedDates"\n [tabIndex]="tabIndex"\n [disabled]="disabled"\n (todayButtonClick)="handleDateChange({\n selectedDates: [$event],\n focusedDate: $event\n })"\n (cellClick)="handleCellClick($event)"\n (weekNumberCellClick)="handleWeekNumberClick($event)"\n (activeDateChange)="handleActiveDateChange($event)"\n (pageChange)="onPageChange()"\n (focusCalendar)="handleFocus()"\n (blurCalendar)="handleBlur($event)"\n >\n </kendo-calendar-viewlist>\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-container>\n <ng-container *ngIf="type === \'classic\'">\n <kendo-multiviewcalendar\n #multiviewcalendar\n [views]="1"\n [min]="min"\n [max]="max"\n [id]="id"\n [disabled]="disabled"\n [isActive]="isActive"\n [tabIndex]="tabIndex"\n [activeView]="activeView"\n [bottomView]="bottomView"\n [topView]="topView"\n [weekNumber]="weekNumber"\n [animateNavigation]="animateNavigation"\n [cellTemplate]="activeCellTemplate()"\n [monthCellTemplate]="monthCellTemplateRef"\n [yearCellTemplate]="yearCellTemplateRef"\n [decadeCellTemplate]="decadeCellTemplateRef"\n [centuryCellTemplate]="centuryCellTemplateRef"\n [headerTitleTemplate]="headerTitleTemplateRef"\n [weekNumberTemplate]="weekNumberTemplateRef"\n [focusedDate]="focusedDate"\n [selection]="selection"\n [value]="value"\n [disabledDates]="disabledDates"\n (activeViewChange)="handleActiveViewChange($event)"\n (navigate)="handleNavigate($event)"\n (valueChange)="handleMultiViewCalendarValueChange($event, multiviewcalendar.focusedDate)"\n (focusCalendar)="handleFocus()"\n (blur)="handleBlur($event)"\n (blurEvent)="handleBlur($event)"\n (keydown)="handleMultiViewCalendarKeydown($event)"\n >\n <kendo-multiviewcalendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n [parentViewButtonTitle]="localization.get(\'parentViewButtonTitle\')"\n >\n </kendo-multiviewcalendar-messages>\n </kendo-multiviewcalendar>\n </ng-container>\n ',isInline:!0,components:[{type:Kt,selector:"kendo-calendar-navigation",inputs:["activeView","min","max","focusedDate","templateRef"],outputs:["valueChange","pageChange"]},{type:Pn,selector:"kendo-calendar-viewlist",inputs:["cellTemplateRef","weekNumberTemplateRef","headerTitleTemplateRef","activeView","cellUID","focusedDate","isActive","min","max","selectedDates","tabIndex","disabled","id","weekNumber"],outputs:["cellClick","weekNumberCellClick","activeDateChange","todayButtonClick","pageChange","focusCalendar","blurCalendar","focusedCellChange"]},{type:W.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]},{type:Wt,selector:"kendo-multiviewcalendar",inputs:["id","focusedDate","min","max","rangeValidation","disabledDatesRangeValidation","selection","value","disabled","tabindex","tabIndex","isActive","disabledDates","activeView","bottomView","topView","showViewHeader","animateNavigation","weekNumber","activeRangeEnd","selectionRange","views","orientation","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","weekNumberTemplate","headerTitleTemplate"],outputs:["activeViewChange","navigate","cellEnter","cellLeave","valueChange","blur","focus","focusCalendar"],exportAs:["kendo-multiviewcalendar"]},{type:Hn,selector:"kendo-multiviewcalendar-messages"}],directives:[{type:Wn,selector:"[kendoCalendarLocalizedMessages]"},{type:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Jn,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-calendar",providers:[v,Xn,x,Qn,t.LocalizationService,b,{provide:t.L10N_PREFIX,useValue:"kendo.calendar"},Bt,Ln,Tt],selector:"kendo-calendar",template:'\n <ng-container kendoCalendarLocalizedMessages\n i18n-today="kendo.calendar.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n\n i18n-parentViewButtonTitle="kendo.calendar.parentViewButtonTitle|The title of the parent view button in the calendar header"\n parentViewButtonTitle="Navigate to parent view"\n >\n </ng-container>\n <ng-container *ngIf="type === \'infinite\'">\n <kendo-calendar-navigation\n *ngIf="navigation"\n [activeView]="activeViewEnum"\n [focusedDate]="focusedDate"\n [min]="min"\n [max]="max"\n [templateRef]="navigationItemTemplateRef?.templateRef"\n (valueChange)="handleNavigation($event)"\n (pageChange)="onPageChange()"\n >\n </kendo-calendar-navigation>\n <kendo-calendar-viewlist\n [activeView]="activeViewEnum"\n [isActive]="isActive"\n [id]="headerId"\n [cellTemplateRef]="activeCellTemplate()?.templateRef"\n [headerTitleTemplateRef]="headerTitleTemplateRef?.templateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef?.templateRef"\n [cellUID]="cellUID"\n [min]="min"\n [max]="max"\n [focusedDate]="focusedDate"\n [weekNumber]="weekNumber"\n [selectedDates]="selectedDates"\n [tabIndex]="tabIndex"\n [disabled]="disabled"\n (todayButtonClick)="handleDateChange({\n selectedDates: [$event],\n focusedDate: $event\n })"\n (cellClick)="handleCellClick($event)"\n (weekNumberCellClick)="handleWeekNumberClick($event)"\n (activeDateChange)="handleActiveDateChange($event)"\n (pageChange)="onPageChange()"\n (focusCalendar)="handleFocus()"\n (blurCalendar)="handleBlur($event)"\n >\n </kendo-calendar-viewlist>\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-container>\n <ng-container *ngIf="type === \'classic\'">\n <kendo-multiviewcalendar\n #multiviewcalendar\n [views]="1"\n [min]="min"\n [max]="max"\n [id]="id"\n [disabled]="disabled"\n [isActive]="isActive"\n [tabIndex]="tabIndex"\n [activeView]="activeView"\n [bottomView]="bottomView"\n [topView]="topView"\n [weekNumber]="weekNumber"\n [animateNavigation]="animateNavigation"\n [cellTemplate]="activeCellTemplate()"\n [monthCellTemplate]="monthCellTemplateRef"\n [yearCellTemplate]="yearCellTemplateRef"\n [decadeCellTemplate]="decadeCellTemplateRef"\n [centuryCellTemplate]="centuryCellTemplateRef"\n [headerTitleTemplate]="headerTitleTemplateRef"\n [weekNumberTemplate]="weekNumberTemplateRef"\n [focusedDate]="focusedDate"\n [selection]="selection"\n [value]="value"\n [disabledDates]="disabledDates"\n (activeViewChange)="handleActiveViewChange($event)"\n (navigate)="handleNavigate($event)"\n (valueChange)="handleMultiViewCalendarValueChange($event, multiviewcalendar.focusedDate)"\n (focusCalendar)="handleFocus()"\n (blur)="handleBlur($event)"\n (blurEvent)="handleBlur($event)"\n (keydown)="handleMultiViewCalendarKeydown($event)"\n >\n <kendo-multiviewcalendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n [parentViewButtonTitle]="localization.get(\'parentViewButtonTitle\')"\n >\n </kendo-multiviewcalendar-messages>\n </kendo-multiviewcalendar>\n </ng-container>\n '}]}],ctorParameters:function(){return[{type:v},{type:Mn},{type:a.ElementRef},{type:Bt},{type:a.Renderer2},{type:a.ChangeDetectorRef},{type:a.NgZone},{type:a.Injector},{type:Ln},{type:b},{type:r.LocalizationService},{type:Tt},{type:zn,decorators:[{type:h.Optional}]}]},propDecorators:{id:[{type:h.Input}],focusedDate:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],rangeValidation:[{type:h.Input}],selection:[{type:h.Input}],value:[{type:h.Input}],disabled:[{type:h.Input}],tabindex:[{type:h.Input}],tabIndex:[{type:h.Input}],disabledDates:[{type:h.Input}],navigation:[{type:h.Input}],activeView:[{type:h.Input}],bottomView:[{type:h.Input}],topView:[{type:h.Input}],type:[{type:h.Input}],animateNavigation:[{type:h.Input}],weekNumber:[{type:h.Input},{type:h.HostBinding,args:["class.k-week-number"]}],activeViewChange:[{type:h.Output}],navigate:[{type:h.Output}],activeViewDateChange:[{type:h.Output}],onBlur:[{type:h.Output,args:["blur"]}],onFocus:[{type:h.Output,args:["focus"]}],valueChange:[{type:h.Output}],cellTemplate:[{type:h.ContentChild,args:[Rt,{static:!1}]}],cellTemplateRef:[{type:h.Input,args:["cellTemplate"]}],monthCellTemplate:[{type:h.ContentChild,args:[Ot,{static:!1}]}],monthCellTemplateRef:[{type:h.Input,args:["monthCellTemplate"]}],yearCellTemplate:[{type:h.ContentChild,args:[Mt,{static:!1}]}],yearCellTemplateRef:[{type:h.Input,args:["yearCellTemplate"]}],decadeCellTemplate:[{type:h.ContentChild,args:[Nt,{static:!1}]}],decadeCellTemplateRef:[{type:h.Input,args:["decadeCellTemplate"]}],centuryCellTemplate:[{type:h.ContentChild,args:[Ft,{static:!1}]}],centuryCellTemplateRef:[{type:h.Input,args:["centuryCellTemplate"]}],weekNumberTemplate:[{type:h.ContentChild,args:[Pt,{static:!1}]}],weekNumberTemplateRef:[{type:h.Input,args:["weekNumberTemplate"]}],headerTitleTemplate:[{type:h.ContentChild,args:[At,{static:!1}]}],headerTitleTemplateRef:[{type:h.Input,args:["headerTitleTemplate"]}],navigationItemTemplate:[{type:h.ContentChild,args:[_n,{static:!1}]}],navigationItemTemplateRef:[{type:h.Input,args:["navigationItemTemplate"]}],navigationView:[{type:h.ViewChild,args:[Kt,{static:!1}]}],monthView:[{type:h.ViewChild,args:[Pn,{static:!1}]}],multiViewCalendar:[{type:h.ViewChild,args:[Wt,{static:!1}]}],widgetId:[{type:h.HostBinding,args:["attr.id"]}],ariaDisabled:[{type:h.HostBinding,args:["attr.aria-disabled"]},{type:h.HostBinding,args:["class.k-disabled"]}]}});function ei(){return function(e,t){return!o(e.value)&&t?{incompleteDate:!0}:null}}(Xn=ti=ti||{})[Xn.Up=0]="Up",Xn[Xn.Down=1]="Down",Xn[Xn.None=2]="None",pt(ii,ni=t.ComponentMessages);var ti,ni,x=ii;function ii(){return null!==ni&&ni.apply(this,arguments)||this}x.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:x,deps:null,target:a.ɵɵFactoryTarget.Directive}),x.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:x,selector:"kendo-dateinput-messages-base",inputs:{decrement:"decrement",increment:"increment"},usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:x,decorators:[{type:h.Directive,args:[{selector:"kendo-dateinput-messages-base"}]}],propDecorators:{decrement:[{type:h.Input}],increment:[{type:h.Input}]}});pt(ri,ai=x);var ai,oi=ri;function ri(e){var t=ai.call(this)||this;return t.service=e,t}oi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:oi,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),oi.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:oi,selector:"[kendoDateInputLocalizedMessages]",providers:[{provide:x,useExisting:h.forwardRef(function(){return oi})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:oi,decorators:[{type:h.Directive,args:[{providers:[{provide:x,useExisting:h.forwardRef(function(){return oi})}],selector:"[kendoDateInputLocalizedMessages]"}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});function si(e){return e.replace(/^0*/,"")}var li=0,ci=/year|month|<day>/,pi=/hour|minute|second|millisecond/,ui=/d|M|H|h|m|s/,di=function(){this.symbols=""},hi=(mi.prototype.hasValue=function(){var n=this;return this.intl.splitDateFormat(this.format).reduce(function(e,t){return e||"literal"!==t.type&&"dayperiod"!==t.type&&n.getExisting(t.pattern[0])},!1)},mi.prototype.shouldNormalizeCentury=function(){return this.intl.splitDateFormat(this.format).some(function(e){return"yy"===e.pattern})},mi.prototype.getDateObject=function(){for(var e=0;e<this.knownParts.length;e++)if(!this.getExisting(this.knownParts[e]))return null;return k.cloneDate(this.value)},mi.prototype.getTextAndFormat=function(e){return this.merge(this.intl.formatDate(this.value,e),this.dateFormatString(this.value,e))},mi.prototype.getExisting=function(e){switch(e){case"y":return this.year;case"M":case"L":return this.month;case"d":return this.date;case"E":return this.date&&this.month&&this.year;case"h":case"H":return this.hours;case"m":return this.minutes;case"s":return this.seconds;case"S":return this.milliseconds;default:return!0}},mi.prototype.setExisting=function(e,t){switch(e){case"y":!1===(this.year=t)&&this.value.setFullYear(2e3);break;case"M":!1===(this.month=t)&&this.value.setMonth(0);break;case"d":this.date=t;break;case"h":case"H":this.hours=t;break;case"m":this.minutes=t;break;case"s":this.seconds=t;break;case"S":this.milliseconds=t;break;default:return}},mi.prototype.modifyPart=function(e,t){var n=k.cloneDate(this.value);switch(e){case"y":n.setFullYear(n.getFullYear()+t);break;case"M":n=k.addMonths(this.value,t);break;case"d":case"E":n.setDate(n.getDate()+t);break;case"h":case"H":n.setHours(n.getHours()+t);break;case"m":n.setMinutes(n.getMinutes()+t);break;case"s":n.setSeconds(n.getSeconds()+t);break;case"S":n.setMilliseconds(n.getMilliseconds()+t);break;case"a":n.setHours(n.getHours()+12*t)}0<(n=this.shouldNormalizeCentury()?this.normalizeCentury(n):n).getFullYear()&&(this.setExisting(e,!0),this.value=n)},mi.prototype.parsePart=function(e,t,n){if(t){for(var i=this.intl.formatDate(this.value,this.format),a=this.dateFormatString(this.value,this.format),o=a.symbols,r=!1,s="",l="",c="",p=0;p<i.length;p++)o[p]===e?(l+=this.getExisting(e)?i[p]:"0",r=!0):r?c+=i[p]:s+=i[p];var u=l.length-3,d=null,h=this.matchMonth(t),m=this.matchDayPeriod(t,e),g="0"===t,f=(this.leadingZero||{})[e]||0;g?0!==parseInt(n?t:l+t,10)||this.isAbbrMonth(a.partMap,e)||this.incrementLeadingZero(e):this.resetLeadingZero();for(p=Math.max(0,u);p<=l.length;p++){var v,y=n?t:l.substring(p)+t,b=("S"===e&&n&&(y=Array(o.match(/S+(\1)/)[0].length).join("0")+y),parseInt(y,10));if((d=this.intl.parseDate(s+y+c,this.format))||isNaN(b)||isNaN(parseInt(t,10))||("M"!==e||h||-1<(b=b-1)&&b<12&&((d=k.cloneDate(this.value)).setMonth(b),d.getMonth()!==b)&&(d=k.lastDayOfMonth(k.addMonths(d,-1))),"y"===e&&(d=k.createDate(parseInt(y,10),this.month?this.value.getMonth():0,this.date?this.value.getDate():1,this.hours?this.value.getHours():0,this.minutes?this.value.getMinutes():0,this.seconds?this.value.getSeconds():0,this.milliseconds?this.value.getMilliseconds():0),this.date)&&d.getDate()!==this.value.getDate()&&(d=k.lastDayOfMonth(k.addMonths(d,-1)))),d)return b=this.partPattern(a.partMap,e).pattern,v=this.intl.parseDate(""+s+this.peek(y,b)+c,this.format),b=this.patternLength(b)||b.length,y=f+(si(y)||t).length>=b,b=null===v||y,this.shouldNormalizeCentury()&&(d=this.normalizeCentury(d)),this.value=d,this.setExisting(e,!0),{value:this.value,switchToNext:b}}if(h&&(d=this.intl.parseDate(s+h+c,this.format)))return this.value=d,this.setExisting(e,!0),{value:this.value,switchToNext:!1};if(m&&(d=this.intl.parseDate(s+m+c,this.format)))return this.value=d,{value:this.value,switchToNext:!0};g&&this.setExisting(e,!1)}else this.resetLeadingZero(),this.setExisting(e,!1);return{value:null,switchToNext:!1}},mi.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.setLeadingZero(null),e},mi.prototype.setLeadingZero=function(e){this.leadingZero=e},mi.prototype.normalizeCentury=function(e){var t,n;return o(e)?(t=!o(t=e)||isNaN(t.getTime())?0:Number(t.getFullYear().toString().slice(-2)),n=this.getNormalizedCenturyBase(t),Ae(e,n+t)):e},mi.prototype.incrementLeadingZero=function(e){var t=this.leadingZero||{};t[e]=(t[e]||0)+1,this.leadingZero=t},mi.prototype.isAbbrMonth=function(e,t){e=this.partPattern(e,t);return"month"===e.type&&e.names},mi.prototype.partPattern=function(e,t){return e.filter(function(e){return-1!==e.pattern.indexOf(t)})[0]},mi.prototype.peek=function(e,t){e=si(e)+"0";return t=t.length-e.length,new Array(Math.max(t,0)).fill("0").join("")+e},mi.prototype.matchMonth=function(e){if(this.typedMonthPart+=e.toLowerCase(),this.monthNames)for(;0<this.typedMonthPart.length;){for(var t=0;t<this.monthNames.length;t++)if(0===this.monthNames[t].toLowerCase().indexOf(this.typedMonthPart))return this.monthNames[t];var n=parseInt(this.typedMonthPart,10);if(1<=n&&n<=12&&n.toString()===this.typedMonthPart)return this.monthNames[n-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""},mi.prototype.matchDayPeriod=function(e,t){e=String(e).toLowerCase();if("a"===t&&this.dayPeriods){if(this.dayPeriods.am.toLowerCase().startsWith(e))return this.dayPeriods.am;if(this.dayPeriods.pm.toLowerCase().startsWith(e))return this.dayPeriods.pm}return""},mi.prototype.allFormatedMonths=function(){for(var e=this.intl.splitDateFormat(this.format),t=0;t<e.length;t++)if("month"===e[t].type&&e[t].names)return this.intl.dateFormatNames(e[t].names);return null},mi.prototype.allDayPeriods=function(){for(var e=this.intl.splitDateFormat(this.format),t=0;t<e.length;t++)if("dayperiod"===e[t].type&&e[t].names)return this.intl.dateFormatNames(e[t].names);return null},mi.prototype.patternLength=function(e){return"y"===e[0]?4:ui.test(e)?2:0},mi.prototype.dateFormatString=function(e,t){for(var n=this.intl.splitDateFormat(t),i=[],a=[],o=0;o<n.length;o++)for(var r=this.intl.formatDate(e,{pattern:n[o].pattern}).length;0<r;)i.push(this.symbols[n[o].pattern[0]]||"_"),a.push(n[o]),r--;t=new di;return t.symbols=i.join(""),t.partMap=a,t},mi.prototype.merge=function(e,t){for(var n="",i="",a=t.symbols,o=a.length-1;0<=o;o--)if(-1===this.knownParts.indexOf(a[o])||this.getExisting(a[o]))n=e[o]+n,i=a[o]+i;else{for(var r=a[o];0<=o&&r===a[o];)o--;for(o++,n=this.leadingZero&&this.leadingZero[r]?"0"+n:this.dateFieldName(t.partMap[o])+n;i.length<n.length;)i=a[o]+i}return[n,i]},mi.prototype.dateFieldName=function(e){var t=this.formatPlaceholder||"wide";return t[e.type]||("formatPattern"===t?e.pattern:this.intl.dateFieldName(Object.assign(e,{nameType:t})))},mi.prototype.getNormalizedCenturyBase=function(e){return e>this.twoDigitYearMax?1900:2e3},mi);function mi(e,t,n,i,a){if(void 0===a&&(a=68),this.intl=e,this.formatPlaceholder=t,this.format=n,this.twoDigitYearMax=a,this.year=!0,this.month=!0,this.date=!0,this.hours=!0,this.minutes=!0,this.seconds=!0,this.milliseconds=!0,this.leadingZero=null,this.monthNames=null,this.typedMonthPart="",this.value=k.getDate(new Date),this.knownParts="adHhmMsSEy",this.symbols={E:"E",H:"H",M:"M",a:"a",d:"d",h:"h",m:"m",s:"s",S:"S",y:"y"},A.validatePackage(Z),this.monthNames=this.allFormatedMonths(),this.dayPeriods=this.allDayPeriods(),i)this.value=k.cloneDate(i);else{this.value=k.getDate(new Date);for(var o=this.dateFormatString(this.value,this.format).symbols,r=0;r<o.length;r++)this.setExisting(o[r],!1)}}Object.defineProperty(S.prototype,"focusableId",{get:function(){return this._focusableId},set:function(e){this._focusableId=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"pickerType",{set:function(e){e&&(this.focusableId=e+"-"+li)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this.autoCorrect&&!re(e,this.min,this.max)||(this._value=k.cloneDate(e),this.valueUpdate.emit(k.cloneDate(e)))},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,Ve("input",this.size));e=e||He;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,Ve("input",e)),this._size=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,xe(this.rounded));e=e||_e;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,xe(e)),this._rounded=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,Ee("input",this.fillMode));e=e||$e;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,Ee("input",e)),this.spinners)&&this.spinup&&this.spindown&&(this.setSpinnerFill(this.spinup.nativeElement,e,this.fillMode),this.setSpinnerFill(this.spindown.nativeElement,e,this.fillMode)),this._fillMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"wrapperClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"inputElement",{get:function(){return this.dateInput?this.dateInput.nativeElement:null},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"inputValue",{get:function(){return(this.inputElement||{}).value||""},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isActive",{get:function(){return this._active},set:function(e){var t;this._active=e,this.wrapper&&!o(this.pickerService)&&(t=this.wrapper.nativeElement,e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"))},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"formControl",{get:function(){var e=this.injector.get(n.NgControl,null);return(null==e?void 0:e.control)||null},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"inputFormat",{get:function(){return this.format?"string"==typeof this.format?this.format:this.format.inputFormat:"d"},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"displayFormat",{get:function(){return this.format?"string"==typeof this.format?this.format:this.format.displayFormat:"d"},enumerable:!1,configurable:!0}),S.prototype.isEmpty=function(){return!this.currentValue||!String(this.currentValue).trim()},S.prototype.containsElement=function(e){var t=this;return Boolean(ht(e,function(e){return e===t.wrapper.nativeElement}))},S.prototype.ngOnInit=function(){var e=this;this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(),this.subs.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.ngControl=this.injector.get(n.NgControl,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.ngZone.runOutsideAngular(function(){e.bindEvents()}))},S.prototype.ngOnChanges=function(e){this.verifyRange(),(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.minValidator=this.rangeValidation?Vt(this.min):f,this.maxValidator=this.rangeValidation?xt(this.max):f,this.incompleteValidator=this.incompleteDateValidation?ei():f,this.onValidatorChange()),e.format&&(this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections());var t=this.kendoDate&&k.isEqual(this.value,this.kendoDate.getDateObject());!e.format&&t&&!e.placeholder||(this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive))},S.prototype.ngAfterViewInit=function(){var e=this,t=(this.setComponentClasses(),null==(t=this.injector.get(n.NgControl,null))?void 0:t.control);this.control=t,this.subs.add(null==(t=this.formControl)?void 0:t.statusChanges.subscribe(function(){return e.setAriaInvalid()})),this.setAriaInvalid()},S.prototype.ngOnDestroy=function(){this.subs.unsubscribe(),this.pickerService&&(this.pickerService.input=null),this.domEvents.forEach(function(e){return e()})},S.prototype.setAriaInvalid=function(){this.control&&(this.control.invalid?this.renderer.setAttribute(this.inputElement,Fe,"true"):this.renderer.setAttribute(this.inputElement,Fe,"false"))},S.prototype.validate=function(e){return this.minValidator(e)||this.maxValidator(e)||this.incompleteValidator(e,this.isDateIncomplete)},S.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},S.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},S.prototype.writeValue=function(e){this.verifyValue(e),this.kendoDate=this.getKendoDate(e),this.value=k.cloneDate(e),this.updateElementValue(this.isActive)},S.prototype.triggerChange=function(){var e=this.kendoDate.getDateObject();+e!=+this.value&&(this.value=k.cloneDate(e),this.notify())},S.prototype.notify=function(){var e=this;this.ngZone.run(function(){e.onControlChange(k.cloneDate(e.value)),e.valueChange.emit(k.cloneDate(e.value))})},S.prototype.registerOnChange=function(e){this.onControlChange=e},S.prototype.registerOnTouched=function(e){this.onControlTouched=e},S.prototype.focus=function(){var e=this.inputElement;e&&(e.focus(),this.selectDateSegment(this.currentFormat[0]))},S.prototype.blur=function(){var e=this.inputElement;e&&e.blur()},S.prototype.handleButtonClick=function(e){this.arrowDirection=ti.None,this.modifyDateSegmentValue(e)},S.prototype.modifyDateSegmentValue=function(e){var t,n=this.caret(),n=this.currentFormat[n[0]],i=(this.steps||{})[this.symbolsMap[n]]||1;"S"!==n||this.steps.millisecond||(t=function(e){e=e&&e.match(/S+(\1)/);return e?e[0].length:0}(this.inputFormat),i=Math.pow(10,3-t)),this.kendoDate.modifyPart(n,e*i),this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.selectDateSegment(n),this.updateIncompleteValidationStatus()},S.prototype.switchDateSegment=function(e){var t=this.caret();if(this.kendoDate.resetLeadingZero()&&this.updateElementValue(this.isActive),t[0]<t[1]&&this.currentFormat[t[0]]!==this.currentFormat[t[1]-1])return this.selectNearestSegment(0<e?t[0]:t[1]-1),this.resetSegmentValue=!0;for(var n=this.currentFormat[t[0]],i=t[0]+e;0<i&&i<this.currentFormat.length&&(this.currentFormat[i]===n||"_"===this.currentFormat[i]);)i+=e;if("_"===this.currentFormat[i])return!1;for(var a=i;0<=a&&a<this.currentFormat.length&&this.currentFormat[a]===this.currentFormat[i];)a+=e;return a<i&&(a+1!==t[0]||i+1!==t[1])?(this.caret(a+1,i+1),this.resetSegmentValue=!0):i<a&&(i!==t[0]||a!==t[1])&&(this.caret(i,a),this.resetSegmentValue=!0)},S.prototype.selectDateSegment=function(e){for(var t=-1,n=0,i=0;i<this.currentFormat.length;i++)this.currentFormat[i]===e&&(n=i+1,-1===t)&&(t=i);t<0&&(t=0),this.caret(0,0),this.caret(t,n)},S.prototype.handleClick=function(){var e,t;this.hasMousedown=!1,this.isActive&&(t=this.inputElement.selectionStart!==this.inputElement.selectionEnd,e=o(this.placeholder)&&!this.kendoDate.hasValue()&&!this.focusedPriorToMousedown,t=!t&&e?0:this.caret()[0],this.selectNearestSegment(t))},S.prototype.handleDragAndDrop=function(e){e.preventDefault()},S.prototype.handleMousedown=function(){this.hasMousedown=!0,this.focusedPriorToMousedown=this.isActive},S.prototype.handleFocus=function(e){var t=this;this.renderer.removeAttribute(this.inputElement,Oe),this.isActive=!0,this.updateElementValue(),this.hasMousedown||this.caret(0,this.inputValue.length),this.hasMousedown=!1,m.hasObservers(this.onFocus)?this.ngZone.run(function(){t.emitFocus(e)}):this.emitFocus(e)},S.prototype.handleBlur=function(e){var t=this;this.isActive=!1,this.resetSegmentValue=!0,this.kendoDate.resetLeadingZero(),this.updateElementValue(),m.hasObservers(this.onBlur)||H(this.ngControl)?this.ngZone.run(function(){t.onControlTouched(),t.emitBlur(e),t.cdr.markForCheck()}):this.emitBlur(e)},S.prototype.getKendoDate=function(e){var t=(this.kendoDate||{}).leadingZero,e=new hi(this.intl,this.formatPlaceholder,this.inputFormat,e,this.twoDigitYearMax);return e.setLeadingZero(this.isActive?t:null),e},S.prototype.dateSymbolMap=function(){return this.intl.splitDateFormat(this.inputFormat).reduce(function(e,t){return e[t.pattern[0]]=t.type,e},{})},S.prototype.updateElementValue=function(e){var t=this.caret()[0],n=this.isActive?this.inputFormat:this.displayFormat,n=this.kendoDate.getTextAndFormat(n),i=!this.isActive&&o(this.placeholder)&&!this.kendoDate.hasValue(),a=this.inputElement;this.currentFormat=n[1],this.currentValue=i?"":n[0],this.renderer.setProperty(a,"value",this.currentValue),a.placeholder!==this.placeholder&&this.renderer.setProperty(a,"placeholder",this.placeholder),e&&this.selectNearestSegment(t)},S.prototype.caret=function(e,t){void 0===t&&(t=e);var n=void 0!==e,i=[e,e],a=this.inputElement;if(!n||!this.disabled&&!this.readonly){try{void 0!==a.selectionStart&&(n&&(m.isDocumentAvailable()&&document.activeElement!==a&&a.focus(),a.setSelectionRange(e,t)),i=[a.selectionStart,a.selectionEnd])}catch(e){i=[]}return i}},S.prototype.selectNearestSegment=function(e){for(var t=e,n=e-1;t<this.currentFormat.length||0<=n;t++,n--){if(t<this.currentFormat.length&&"_"!==this.currentFormat[t])return void this.selectDateSegment(this.currentFormat[t]);if(0<=n&&"_"!==this.currentFormat[n])return void this.selectDateSegment(this.currentFormat[n])}},S.prototype.verifyRange=function(){if(h.isDevMode()&&!le(this.min,this.max))throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-max.")},S.prototype.verifyValue=function(e){if(h.isDevMode()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/#toc-using-with-json for possible resolution.")},S.prototype.putDateInRange=function(){var e=this.kendoDate.getDateObject(),t=ce(e,this.min,this.max);this.autoCorrect&&!k.isEqual(e,t)&&(this.kendoDate=this.getKendoDate(t))},S.prototype.updateFormatSections=function(){this.formatSections=this.intl.splitDateFormat(this.inputFormat).reduce(function(e,t){var n=e.date,e=e.time;return{date:n||ci.test(t.type),time:e||pi.test(t.type)}},{date:!1,time:!1})},S.prototype.intlChange=function(){this.updateFormatSections(),this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive)},S.prototype.updateOnPaste=function(){var e=this.intl.parseDate(this.inputValue,this.inputFormat)||this.value,t=+(e=o(e)&&this.kendoDate.shouldNormalizeCentury()?this.kendoDate.normalizeCentury(e):e)!=+this.value;this.writeValue(e),t&&this.notify()},S.prototype.bindEvents=function(){var e=this.wrapper.nativeElement,t=this.handleMouseWheel.bind(this);this.domEvents.push(this.renderer.listen(e,"DOMMouseScroll",t),this.renderer.listen(e,"mousewheel",t),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)),this.renderer.listen(e,"paste",this.handlePaste.bind(this)),this.renderer.listen(e,"input",this.handleInput.bind(this)))},S.prototype.handleMouseWheel=function(e){this.disabled||this.readonly||!this.isActive||((e=window.event||e).shiftKey?this.switchDateSegment(0<(e.wheelDelta||-e.detail)?-1:1):this.modifyDateSegmentValue(0<(e.wheelDelta||-e.detail)?1:-1),e.returnValue=!1,e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation())},S.prototype.handlePaste=function(){this.paste=!0},S.prototype.handleKeydown=function(e){if(!(this.disabled||this.readonly||e.altKey||e.ctrlKey||e.metaKey))if(e.keyCode===m.Keys.Backspace)this.backspace=!0;else{switch(e.keyCode){case m.Keys.ArrowDown:this.modifyDateSegmentValue(-1);break;case m.Keys.ArrowUp:this.modifyDateSegmentValue(1);break;case m.Keys.ArrowRight:this.switchDateSegment(1);break;case m.Keys.ArrowLeft:this.switchDateSegment(-1);break;case m.Keys.Home:this.selectNearestSegment(0);break;case m.Keys.End:this.selectNearestSegment(this.inputValue.length);break;default:return}e.preventDefault()}},S.prototype.handleInput=function(){if(!this.disabled&&!this.readonly)if(this.paste)this.updateOnPaste(),this.paste=!1;else{var e=function(e,t,n,i){var a=i+e.length-n.length,o=e[a],r=e.substring(0,i+e.length-n.length),e=n.substring(0,i),s=[];if(r===e&&0<i)return s.push([t[i-1],e[i-1]]),s;if(0===r.indexOf(e)&&(0===e.length||t[e.length-1]!==t[e.length])){var l="";1===e.length&&s.push([t[0],e[0]]);for(var c=e.length;c<r.length;c++)t[c]!==l&&"_"!==t[c]&&(l=t[c],s.push([l,""]));return s}if(0!==e.indexOf(r)&&"_"!==t[i-1])return" "===e[e.length-1]||e[e.length-1]===o&&"_"===t[a]?[[t[i-1],"_"]]:[[t[i-1],e[i-1]]];for(var p=t[0],c=Math.max(0,r.length-1);c<t.length;c++)if("_"!==t[c]){p=t[c];break}return[[p,e[i-1]]]}(this.currentValue,this.currentFormat,this.inputValue,this.caret()[0]),t=1===e.length&&"_"===e[0][1],n=!1;if(!t){for(var i=0;i<e.length;i++)n=this.kendoDate.parsePart(e[i][0],e[i][1],this.resetSegmentValue).switchToNext;var a=this.kendoDate.getDateObject();this.value&&a&&!this.formatSections.date&&(this.kendoDate=this.getKendoDate(Pe(this.value,a)))}this.resetSegmentValue=!1,this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.updateIncompleteValidationStatus(),e.length&&"_"!==e[0][0]&&this.selectDateSegment(e[0][0]),(n||t)&&this.switchDateSegment(1),this.backspace&&this.switchDateSegment(-1),this.backspace=!1}},S.prototype.emitFocus=function(e){this.onFocus.emit(),this.pickerService&&this.pickerService.onFocus.emit(e)},S.prototype.emitBlur=function(e){this.onBlur.emit(),this.pickerService&&this.pickerService.onBlur.emit(e)},S.prototype.updateIncompleteValidationStatus=function(){var e=this,t=this.isDateIncomplete;this.isDateIncomplete=this.kendoDate.hasValue()&&null===this.value,t!==this.isDateIncomplete&&this.incompleteDateValidation&&(o(this.ngControl)&&!o(this.pickerService)?(this.cdr.markForCheck(),this.ngZone.run(function(){return e.onValidatorChange()})):o(this.pickerService)&&this.pickerService.dateCompletenessChange.emit())},S.prototype.setSpinnerFill=function(e,t,n){"none"!==n&&(this.renderer.removeClass(e,"k-button-"+n),this.renderer.removeClass(e,"k-button-"+n+"-base")),this.renderer.addClass(e,"k-button-"+t),this.renderer.addClass(e,"k-button-"+t+"-base")},S.prototype.setComponentClasses=function(){"none"!==this.size&&this.renderer.addClass(this.wrapper.nativeElement,Ve("input",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,xe(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,Ee("input",this.fillMode)),this.spinners&&"none"!==this.fillMode&&(this.setSpinnerFill(this.spinup.nativeElement,this.fillMode),this.setSpinnerFill(this.spindown.nativeElement,this.fillMode))};var gi=S;function S(e,t,n,i,a,o,r,s){this.cdr=e,this.intl=t,this.renderer=n,this.wrapper=i,this.ngZone=a,this.injector=o,this.localization=r,this.pickerService=s,this.disabled=!1,this.readonly=!1,this.title="",this.tabindex=0,this.role="textbox",this.ariaReadOnly=!1,this.format="d",this.placeholder=null,this.steps={},this.rangeValidation=!0,this.autoCorrect=!1,this.incompleteDateValidation=!1,this.twoDigitYearMax=68,this.spinners=!1,this.valueChange=new h.EventEmitter,this.valueUpdate=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.arrow=ti,this.arrowDirection=ti.None,this.formatSections={date:!1,time:!1},this.hasMousedown=!1,this.focusedPriorToMousedown=!1,this.isDateIncomplete=!1,this.currentValue="",this.currentFormat="",this.backspace=!1,this.resetSegmentValue=!0,this.minValidator=f,this.maxValidator=f,this.incompleteValidator=f,this._value=null,this._active=!1,this._focusableId="dateinput-"+li++,this.kendoDate=null,this.paste=!1,this.domEvents=[],this.onControlChange=f,this.onControlTouched=f,this.onValidatorChange=f,this._size=He,this._rounded=_e,this._fillMode=$e,this.subs=new p.Subscription,this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections(),this.pickerService?this.pickerService.input=this:this.ariaReadOnly=null}gi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:gi,deps:[{token:a.ChangeDetectorRef},{token:s.IntlService},{token:a.Renderer2},{token:a.ElementRef},{token:a.NgZone},{token:a.Injector},{token:r.LocalizationService},{token:zn,optional:!0}],target:a.ɵɵFactoryTarget.Component}),gi.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:gi,selector:"kendo-dateinput",inputs:{focusableId:"focusableId",pickerType:"pickerType",disabled:"disabled",readonly:"readonly",title:"title",tabindex:"tabindex",role:"role",ariaReadOnly:"ariaReadOnly",tabIndex:"tabIndex",format:"format",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",steps:"steps",max:"max",min:"min",rangeValidation:"rangeValidation",autoCorrect:"autoCorrect",incompleteDateValidation:"incompleteDateValidation",twoDigitYearMax:"twoDigitYearMax",value:"value",spinners:"spinners",isPopupOpen:"isPopupOpen",hasPopup:"hasPopup",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",valueUpdate:"valueUpdate",onFocus:"focus",onBlur:"blur"},host:{properties:{"class.k-input":"this.wrapperClass","class.k-dateinput":"this.wrapperClass","class.k-disabled":"this.disabledClass"}},providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return gi}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return gi}),multi:!0},{provide:t.L10N_PREFIX,useValue:"kendo.dateinput"},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return gi})},t.LocalizationService],viewQueries:[{propertyName:"dateInput",first:!0,predicate:["dateInput"],descendants:!0,static:!0},{propertyName:"spinup",first:!0,predicate:["spinup"],descendants:!0},{propertyName:"spindown",first:!0,predicate:["spindown"],descendants:!0}],exportAs:["kendo-dateinput"],usesOnChanges:!0,ngImport:a,template:'\n <ng-container kendoDateInputLocalizedMessages\n i18n-increment="kendo.dateinput.increment|The label for the **Increment** button in the DateInput"\n increment="Increase value"\n\n i18n-decrement="kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput"\n decrement="Decrease value"\n >\n </ng-container>\n <input\n #dateInput\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n class="k-input-inner"\n [attr.role]="role"\n [attr.aria-readonly]="ariaReadOnly"\n [id]="focusableId"\n [title]="title"\n [tabindex]="tabindex"\n [disabled]="disabled"\n [readonly]="readonly"\n [placeholder]="placeholder"\n [attr.aria-expanded]="isPopupOpen"\n [attr.aria-haspopup]="hasPopup"\n [kendoEventsOutsideAngular]="{\n click: handleClick,\n focus: handleFocus,\n mousedown: handleMousedown,\n touchstart: handleMousedown,\n dragstart: handleDragAndDrop,\n drop: handleDragAndDrop,\n blur: handleBlur\n }"\n [scope]="this"\n />\n <span *ngIf="spinners" class="k-input-spinner k-spin-button" (mousedown)="$event.preventDefault()">\n <button\n #spinup\n tabindex="-1"\n class="k-spinner-increase k-button k-icon-button"\n [class.k-active]="arrowDirection === arrow.Up"\n (mousedown)="arrowDirection = arrow.Up"\n (mouseleave)="arrowDirection = arrow.None"\n (click)="handleButtonClick(1)"\n [title]="localization.get(\'increment\')"\n [attr.aria-label]="localization.get(\'increment\')">\n <span class="k-button-icon k-icon k-i-caret-alt-up"></span>\n </button>\n <button\n #spindown\n tabindex="-1"\n class="k-spinner-decrease k-button k-icon-button"\n (click)="handleButtonClick(-1)"\n [class.k-active]="arrowDirection === arrow.Down"\n (mousedown)="arrowDirection = arrow.Down"\n (mouseleave)="arrowDirection = arrow.None"\n [title]="localization.get(\'decrement\')"\n [attr.aria-label]="localization.get(\'decrement\')">\n <span class="k-button-icon k-icon k-i-caret-alt-down"></span>\n </button>\n </span>\n ',isInline:!0,directives:[{type:oi,selector:"[kendoDateInputLocalizedMessages]"},{type:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:gi,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-dateinput",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return gi}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return gi}),multi:!0},{provide:t.L10N_PREFIX,useValue:"kendo.dateinput"},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return gi})},t.LocalizationService],selector:"kendo-dateinput",template:'\n <ng-container kendoDateInputLocalizedMessages\n i18n-increment="kendo.dateinput.increment|The label for the **Increment** button in the DateInput"\n increment="Increase value"\n\n i18n-decrement="kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput"\n decrement="Decrease value"\n >\n </ng-container>\n <input\n #dateInput\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n class="k-input-inner"\n [attr.role]="role"\n [attr.aria-readonly]="ariaReadOnly"\n [id]="focusableId"\n [title]="title"\n [tabindex]="tabindex"\n [disabled]="disabled"\n [readonly]="readonly"\n [placeholder]="placeholder"\n [attr.aria-expanded]="isPopupOpen"\n [attr.aria-haspopup]="hasPopup"\n [kendoEventsOutsideAngular]="{\n click: handleClick,\n focus: handleFocus,\n mousedown: handleMousedown,\n touchstart: handleMousedown,\n dragstart: handleDragAndDrop,\n drop: handleDragAndDrop,\n blur: handleBlur\n }"\n [scope]="this"\n />\n <span *ngIf="spinners" class="k-input-spinner k-spin-button" (mousedown)="$event.preventDefault()">\n <button\n #spinup\n tabindex="-1"\n class="k-spinner-increase k-button k-icon-button"\n [class.k-active]="arrowDirection === arrow.Up"\n (mousedown)="arrowDirection = arrow.Up"\n (mouseleave)="arrowDirection = arrow.None"\n (click)="handleButtonClick(1)"\n [title]="localization.get(\'increment\')"\n [attr.aria-label]="localization.get(\'increment\')">\n <span class="k-button-icon k-icon k-i-caret-alt-up"></span>\n </button>\n <button\n #spindown\n tabindex="-1"\n class="k-spinner-decrease k-button k-icon-button"\n (click)="handleButtonClick(-1)"\n [class.k-active]="arrowDirection === arrow.Down"\n (mousedown)="arrowDirection = arrow.Down"\n (mouseleave)="arrowDirection = arrow.None"\n [title]="localization.get(\'decrement\')"\n [attr.aria-label]="localization.get(\'decrement\')">\n <span class="k-button-icon k-icon k-i-caret-alt-down"></span>\n </button>\n </span>\n '}]}],ctorParameters:function(){return[{type:a.ChangeDetectorRef},{type:s.IntlService},{type:a.Renderer2},{type:a.ElementRef},{type:a.NgZone},{type:a.Injector},{type:r.LocalizationService},{type:zn,decorators:[{type:h.Optional}]}]},propDecorators:{focusableId:[{type:h.Input}],pickerType:[{type:h.Input}],disabled:[{type:h.Input}],readonly:[{type:h.Input}],title:[{type:h.Input}],tabindex:[{type:h.Input}],role:[{type:h.Input}],ariaReadOnly:[{type:h.Input}],tabIndex:[{type:h.Input}],format:[{type:h.Input}],formatPlaceholder:[{type:h.Input}],placeholder:[{type:h.Input}],steps:[{type:h.Input}],max:[{type:h.Input}],min:[{type:h.Input}],rangeValidation:[{type:h.Input}],autoCorrect:[{type:h.Input}],incompleteDateValidation:[{type:h.Input}],twoDigitYearMax:[{type:h.Input}],value:[{type:h.Input}],spinners:[{type:h.Input}],isPopupOpen:[{type:h.Input}],hasPopup:[{type:h.Input}],size:[{type:h.Input}],rounded:[{type:h.Input}],fillMode:[{type:h.Input}],valueChange:[{type:h.Output}],valueUpdate:[{type:h.Output}],onFocus:[{type:h.Output,args:["focus"]}],onBlur:[{type:h.Output,args:["blur"]}],dateInput:[{type:h.ViewChild,args:["dateInput",{static:!0}]}],wrapperClass:[{type:h.HostBinding,args:["class.k-input"]},{type:h.HostBinding,args:["class.k-dateinput"]}],disabledClass:[{type:h.HostBinding,args:["class.k-disabled"]}],spinup:[{type:h.ViewChild,args:["spinup",{static:!1}]}],spindown:[{type:h.ViewChild,args:["spindown",{static:!1}]}]}});vi.prototype.preventDefault=function(){this.prevented=!0},vi.prototype.isDefaultPrevented=function(){return this.prevented};var fi=vi;function vi(){this.prevented=!1}function yi(t){return function(e){return t&&e.value&&t(e.value)?{disabledDate:!0}:null}}var bi,ki=new h.InjectionToken("dateinputs-touch-enabled"),Ci=(pt(wi,bi=D),Object.defineProperty(wi.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),wi);function wi(e){var t=bi.call(this)||this;return t.service=e,t}Ci.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ci,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Ci.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Ci,selector:"kendo-calendar-messages",providers:[{provide:D,useExisting:h.forwardRef(function(){return Ci})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ci,decorators:[{type:h.Component,args:[{providers:[{provide:D,useExisting:h.forwardRef(function(){return Ci})}],selector:"kendo-calendar-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});pt(Ti,Di=t.ComponentMessages);var Di,Qn=Ti;function Ti(){return null!==Di&&Di.apply(this,arguments)||this}Qn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Qn,deps:null,target:a.ɵɵFactoryTarget.Directive}),Qn.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Qn,selector:"kendo-datepicker-messages-base",inputs:{today:"today",toggle:"toggle",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Qn,decorators:[{type:h.Directive,args:[{selector:"kendo-datepicker-messages-base"}]}],propDecorators:{today:[{type:h.Input}],toggle:[{type:h.Input}],prevButtonTitle:[{type:h.Input}],nextButtonTitle:[{type:h.Input}]}});pt(xi,Ii=Qn);var Ii,Vi=xi;function xi(e){var t=Ii.call(this)||this;return t.service=e,t}Vi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Vi,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),Vi.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Vi,selector:"[kendoDatePickerLocalizedMessages]",providers:[{provide:Qn,useExisting:h.forwardRef(function(){return Vi})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Vi,decorators:[{type:h.Directive,args:[{providers:[{provide:Qn,useExisting:h.forwardRef(function(){return Vi})}],selector:"[kendoDatePickerLocalizedMessages]"}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});Object.defineProperty(R.prototype,"cellTemplateRef",{set:function(e){this.cellTemplate=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"monthCellTemplateRef",{set:function(e){this.monthCellTemplate=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"yearCellTemplateRef",{set:function(e){this.yearCellTemplate=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"decadeCellTemplateRef",{set:function(e){this.decadeCellTemplate=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"centuryCellTemplateRef",{set:function(e){this.centuryCellTemplate=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"weekNumberTemplateRef",{set:function(e){this.weekNumberTemplate=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"headerTitleTemplateRef",{set:function(e){this.headerTitleTemplate=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"navigationItemTemplateRef",{set:function(e){this.navigationItemTemplate=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=k.cloneDate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this._disabledDates=e,this.disabledDatesService.initialize(e)},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,Ve("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,Ve("input",this.size));e=e||He;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,Ve("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,Ve("input",e))),this._size=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,xe(this.rounded));e=e||_e;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,xe(e)),this._rounded=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,Ee("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,Ee("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base");e=e||$e;"none"!==e&&(this.renderer.addClass(this.toggleButton.nativeElement,Ee("button",e)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+e+"-base"),this.renderer.addClass(this.wrapper.nativeElement,Ee("input",e))),this._fillMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"popupUID",{get:function(){var e;return null==(e=this.calendar)?void 0:e.popupId},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"isActive",{get:function(){return this._active},set:function(e){var t;this._active=e,this.wrapper&&(t=this.wrapper.nativeElement,e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"))},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"show",{get:function(){return this._show},set:function(e){var t=this;e&&(this.disabled||this.readonly)||(!(e||this._show&&m.hasObservers(this.close))?this.togglePopup(e):this.zone.run(function(){t.togglePopup(e)}))},enumerable:!1,configurable:!0}),R.prototype.isEmpty=function(){return!this.value&&this.input.isEmpty()},R.prototype.ngOnInit=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe(function(){return e.cdr.markForCheck()}),this.control=this.injector.get(n.NgControl,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.zone.runOutsideAngular(function(){e.bindEvents()}))},R.prototype.ngAfterViewInit=function(){this.setComponentClasses()},R.prototype.ngOnChanges=function(e){this.verifySettings(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?Vt(this.min):f,this.maxValidateFn=this.rangeValidation?xt(this.max):f,this.disabledDatesValidateFn=this.disabledDatesValidation?yi(this.disabledDatesService.isDateDisabled):f,this.incompleteValidator=this.incompleteDateValidation?ei():f,this.onValidatorChange())},R.prototype.ngOnDestroy=function(){this.isActive=!1,this.show=!1,this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe(),this.domEvents.forEach(function(e){return e()}),this.pickerSubscriptions.unsubscribe()},Object.defineProperty(R.prototype,"isOpen",{get:function(){return this.show},enumerable:!1,configurable:!0}),R.prototype.writeValue=function(e){this.verifyValue(e),this.value=k.cloneDate(e),this.cdr.markForCheck(),!e&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(e))},R.prototype.registerOnChange=function(e){this.onControlChange=e},R.prototype.registerOnTouched=function(e){this.onControlTouched=e},R.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},R.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},R.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},R.prototype.focus=function(){this.input.focus()},R.prototype.blur=function(){(this.calendar||this.input).blur()},R.prototype.toggle=function(e){var t=this;this.disabled||this.readonly||this.resolvedPromise.then(function(){t._toggle(void 0===e?!t.show:e)})},R.prototype.handleIconClick=function(e){this.disabled||this.readonly||(e.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show,this.cdr.markForCheck())},R.prototype.handleMousedown=function(e){e.preventDefault()},R.prototype.handleChange=function(e){this.cdr.markForCheck(),this.focusInput(),this.value=e,this.show=!1,this.onControlChange(k.cloneDate(e)),this.valueChange.emit(k.cloneDate(e))},R.prototype.handleInputChange=function(e){this.handleChange(this.input.formatSections.time?e:this.mergeTime(e))},Object.defineProperty(R.prototype,"popupClasses",{get:function(){return["k-calendar-container","k-group","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"calendar",{get:function(){return this.pickerService.calendar},enumerable:!1,configurable:!0}),R.prototype.mergeTime=function(e){return this.value&&e?Pe(e,this.value):e},R.prototype.handleKeydown=function(e){var t=e.altKey,n=e.shiftKey,i=e.keyCode,e=e.target;i===m.Keys.Escape&&(this.show=!1),t&&(i!==m.Keys.ArrowDown||this.show||(this.show=!0),i===m.Keys.ArrowUp)&&(this.show=!1),i===m.Keys.Tab&&this.show&&this.calendar.isActive&&(t=this.calendarType,i=n,!!o(n=e))&&("infinite"===t||"classic"===t&&i&&n.classList.contains("k-calendar-table")||!i&&n.classList.contains("k-calendar-table"))&&(this.input.focus(),this.show=!1)},R.prototype.togglePopup=function(e){var t=new fi;!this._show&&e?this.open.emit(t):this._show&&!e&&this.close.emit(t),t.isDefaultPrevented()||(this._toggle(e),this.toggleFocus())},R.prototype._toggle=function(e){var t,n=this;e!==this._show&&(this._show=e,t=this.wrapper.nativeElement.querySelector("input"),e?(e=this.localization.rtl?"right":"left",this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:e},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:e},popupClass:this.popupClasses,positionMode:"absolute"}),"infinite"===this.calendar.type?this.pickerSubscriptions.add(this.calendar.monthView.focusedCellChange.subscribe(function(e){n.renderer.setAttribute(t,Oe,e)})):this.pickerSubscriptions.add(this.calendar.multiViewCalendar.viewList.focusedCellChange.subscribe(function(e){n.renderer.setAttribute(t,Oe,e)})),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.renderer.setAttribute(t,Me,this.popupUID),this.subscription=this.popupRef.popupAnchorViewportLeave.subscribe(function(){return n.show=!1})):(this.popupRef.close(),this.popupRef=null,this.subscription.unsubscribe(),this.renderer.removeAttribute(t,Me),this.renderer.removeAttribute(t,Oe),this.cdr.detectChanges()))},R.prototype.focusInput=function(){this.touchEnabled||this.input.focus()},R.prototype.toggleFocus=function(){this.isActive&&(this.show?(this.calendar||this.cdr.detectChanges(),this.calendar&&this.calendar.focus()):this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())},R.prototype.verifySettings=function(){if(h.isDevMode()&&!le(this.min,this.max))throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-max.")},R.prototype.verifyValue=function(e){if(h.isDevMode()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/#toc-using-with-json for possible resolution.")},R.prototype.bindEvents=function(){var e=this.wrapper.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),de()&&(this.windowBlurSubscription=p.fromEvent(window,"blur").subscribe(this.handleWindowBlur.bind(this)))},R.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,m.hasObservers(this.onFocus)&&this.zone.run(function(){e.onFocus.emit()}))},R.prototype.handleWindowBlur=function(){this.isOpen&&(this.show=!1)},R.prototype.handleBlur=function(e){var t=this,e=e&&Y(e);e&&(this.input.containsElement(e)||this.calendar&&this.calendar.containsElement(e))||(m.hasObservers(this.onBlur)||this.show&&m.hasObservers(this.close)||H(this.control)?this.zone.run(function(){t.blurComponent(),t.cdr.markForCheck()}):this.blurComponent())},R.prototype.blurComponent=function(){this.isActive=!1,this.show=!1,this.cdr.detectChanges(),this.onControlTouched(),this.onBlur.emit()},R.prototype.handleSameSelection=function(){this.show&&(this.focusInput(),this.show=!1)},R.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.zone.run(function(){return e.onValidatorChange()})},R.prototype.setComponentClasses=function(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,Ve("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,Ve("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,xe(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,Ee("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,Ee("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"))};var Ei=R;function R(e,t,n,i,a,o,r,s,l,c){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.wrapper=a,this.renderer=o,this.injector=r,this.pickerService=s,this.disabledDatesService=l,this.touchEnabled=c,this.activeView=g[g.month],this.bottomView=g[g.month],this.topView=g[g.century],this.calendarType="infinite",this.animateCalendarNavigation=!1,this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.navigation=!0,this.min=k.cloneDate(X),this.max=k.cloneDate(Q),this.incompleteDateValidation=!1,this.focusedDate=null,this.format="d",this.twoDigitYearMax=68,this.placeholder=null,this.tabindex=0,this.title="",this.rangeValidation=!0,this.disabledDatesValidation=!0,this.weekNumber=!1,this.valueChange=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.open=new h.EventEmitter,this.close=new h.EventEmitter,this.wrapperClasses=!0,this._popupSettings={animate:!0},this._show=!1,this._value=null,this._active=!1,this.onControlChange=f,this.onControlTouched=f,this.onValidatorChange=f,this.minValidateFn=f,this.maxValidateFn=f,this.disabledDatesValidateFn=f,this.incompleteValidator=f,this.resolvedPromise=Promise.resolve(null),this.domEvents=[],this._size=He,this._rounded=_e,this._fillMode=$e,A.validatePackage(Z),this.pickerSubscriptions=this.pickerService.onFocus.subscribe(this.handleFocus.bind(this)),this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.pickerSubscriptions.add(this.pickerService.sameDateSelected.subscribe(this.handleSameSelection.bind(this))),this.pickerSubscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)))}Ei.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ei,deps:[{token:a.NgZone},{token:r.LocalizationService},{token:a.ChangeDetectorRef},{token:q.PopupService},{token:a.ElementRef},{token:a.Renderer2},{token:a.Injector},{token:zn},{token:b},{token:ki,optional:!0}],target:a.ɵɵFactoryTarget.Component}),Ei.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Ei,selector:"kendo-datepicker",inputs:{cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"],navigationItemTemplateRef:["navigationItemTemplate","navigationItemTemplateRef"],activeView:"activeView",bottomView:"bottomView",topView:"topView",calendarType:"calendarType",animateCalendarNavigation:"animateCalendarNavigation",disabled:"disabled",readonly:"readonly",readOnlyInput:"readOnlyInput",popupSettings:"popupSettings",navigation:"navigation",min:"min",max:"max",incompleteDateValidation:"incompleteDateValidation",focusedDate:"focusedDate",value:"value",format:"format",twoDigitYearMax:"twoDigitYearMax",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",tabindex:"tabindex",tabIndex:"tabIndex",disabledDates:"disabledDates",title:"title",rangeValidation:"rangeValidation",disabledDatesValidation:"disabledDatesValidation",weekNumber:"weekNumber",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",onFocus:"focus",onBlur:"blur",open:"open",close:"close"},host:{properties:{"class.k-datepicker":"this.wrapperClasses","class.k-input":"this.wrapperClasses","class.k-disabled":"this.disabledClass"}},providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return Ei}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return Ei}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return Ei})},t.LocalizationService,zn,b,{provide:t.L10N_PREFIX,useValue:"kendo.datepicker"}],queries:[{propertyName:"cellTemplate",first:!0,predicate:Rt,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Ot,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:Mt,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:Nt,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:Ft,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:Pt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:At,descendants:!0},{propertyName:"navigationItemTemplate",first:!0,predicate:_n,descendants:!0}],viewQueries:[{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef,static:!0},{propertyName:"popupTemplate",first:!0,predicate:["popupTemplate"],descendants:!0,static:!0},{propertyName:"toggleButton",first:!0,predicate:["toggleButton"],descendants:!0,static:!0}],exportAs:["kendo-datepicker"],usesOnChanges:!0,ngImport:a,template:'\n <ng-container kendoDatePickerLocalizedMessages\n i18n-today="kendo.datepicker.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-toggle="kendo.datepicker.toggle|The title of the toggle button in the datepicker component"\n toggle="Toggle calendar"\n\n i18n-prevButtonTitle="kendo.datepicker.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.datepicker.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <kendo-dateinput\n #input\n [role]="\'combobox\'"\n pickerType="datepicker"\n hasPopup="grid"\n [isPopupOpen]="show"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [ariaReadOnly]="readonly"\n [tabindex]="tabindex"\n [title]="title"\n [format]="format"\n [twoDigitYearMax]="twoDigitYearMax"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [min]="min"\n [max]="max"\n [incompleteDateValidation]="incompleteDateValidation"\n fillMode="none"\n rounded="none"\n size="none"\n [value]="value"\n (valueChange)="handleInputChange($event)"\n ></kendo-dateinput>\n <button\n #toggleButton\n type="button"\n class="k-input-button k-button k-icon-button"\n [tabindex]="-1"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n click: handleIconClick,\n mousedown: handleMousedown\n }"\n [scope]="this"\n >\n <span class="k-button-icon k-icon k-i-calendar"></span>\n </button>\n <ng-container #container></ng-container>\n <ng-template #popupTemplate>\n <kendo-calendar\n #calendar\n [type]="calendarType"\n [min]="min"\n [max]="max"\n [navigation]="navigation"\n [animateNavigation]="animateCalendarNavigation"\n [activeView]="activeView"\n [bottomView]="bottomView"\n [topView]="topView"\n [weekNumber]="weekNumber"\n [cellTemplate]="cellTemplate"\n [monthCellTemplate]="monthCellTemplate"\n [yearCellTemplate]="yearCellTemplate"\n [decadeCellTemplate]="decadeCellTemplate"\n [centuryCellTemplate]="centuryCellTemplate"\n [weekNumberTemplate]="weekNumberTemplate"\n [headerTitleTemplate]="headerTitleTemplate"\n [navigationItemTemplate]="navigationItemTemplate"\n [focusedDate]="focusedDate"\n [value]="value"\n (valueChange)="handleChange(mergeTime($event))"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeydown\n }"\n [scope]="this"\n [disabledDates]="disabledDates"\n >\n <kendo-calendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-calendar-messages>\n </kendo-calendar>\n <ng-template>\n ',isInline:!0,components:[{type:gi,selector:"kendo-dateinput",inputs:["focusableId","pickerType","disabled","readonly","title","tabindex","role","ariaReadOnly","tabIndex","format","formatPlaceholder","placeholder","steps","max","min","rangeValidation","autoCorrect","incompleteDateValidation","twoDigitYearMax","value","spinners","isPopupOpen","hasPopup","size","rounded","fillMode"],outputs:["valueChange","valueUpdate","focus","blur"],exportAs:["kendo-dateinput"]},{type:Jn,selector:"kendo-calendar",inputs:["id","focusedDate","min","max","rangeValidation","selection","value","disabled","tabindex","tabIndex","disabledDates","navigation","activeView","bottomView","topView","type","animateNavigation","weekNumber","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","weekNumberTemplate","headerTitleTemplate","navigationItemTemplate"],outputs:["activeViewChange","navigate","activeViewDateChange","blur","focus","valueChange"],exportAs:["kendo-calendar"]},{type:Ci,selector:"kendo-calendar-messages"}],directives:[{type:Vi,selector:"[kendoDatePickerLocalizedMessages]"},{type:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ei,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-datepicker",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return Ei}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return Ei}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return Ei})},t.LocalizationService,zn,b,{provide:t.L10N_PREFIX,useValue:"kendo.datepicker"}],selector:"kendo-datepicker",template:'\n <ng-container kendoDatePickerLocalizedMessages\n i18n-today="kendo.datepicker.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-toggle="kendo.datepicker.toggle|The title of the toggle button in the datepicker component"\n toggle="Toggle calendar"\n\n i18n-prevButtonTitle="kendo.datepicker.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.datepicker.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <kendo-dateinput\n #input\n [role]="\'combobox\'"\n pickerType="datepicker"\n hasPopup="grid"\n [isPopupOpen]="show"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [ariaReadOnly]="readonly"\n [tabindex]="tabindex"\n [title]="title"\n [format]="format"\n [twoDigitYearMax]="twoDigitYearMax"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [min]="min"\n [max]="max"\n [incompleteDateValidation]="incompleteDateValidation"\n fillMode="none"\n rounded="none"\n size="none"\n [value]="value"\n (valueChange)="handleInputChange($event)"\n ></kendo-dateinput>\n <button\n #toggleButton\n type="button"\n class="k-input-button k-button k-icon-button"\n [tabindex]="-1"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n click: handleIconClick,\n mousedown: handleMousedown\n }"\n [scope]="this"\n >\n <span class="k-button-icon k-icon k-i-calendar"></span>\n </button>\n <ng-container #container></ng-container>\n <ng-template #popupTemplate>\n <kendo-calendar\n #calendar\n [type]="calendarType"\n [min]="min"\n [max]="max"\n [navigation]="navigation"\n [animateNavigation]="animateCalendarNavigation"\n [activeView]="activeView"\n [bottomView]="bottomView"\n [topView]="topView"\n [weekNumber]="weekNumber"\n [cellTemplate]="cellTemplate"\n [monthCellTemplate]="monthCellTemplate"\n [yearCellTemplate]="yearCellTemplate"\n [decadeCellTemplate]="decadeCellTemplate"\n [centuryCellTemplate]="centuryCellTemplate"\n [weekNumberTemplate]="weekNumberTemplate"\n [headerTitleTemplate]="headerTitleTemplate"\n [navigationItemTemplate]="navigationItemTemplate"\n [focusedDate]="focusedDate"\n [value]="value"\n (valueChange)="handleChange(mergeTime($event))"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeydown\n }"\n [scope]="this"\n [disabledDates]="disabledDates"\n >\n <kendo-calendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-calendar-messages>\n </kendo-calendar>\n <ng-template>\n '}]}],ctorParameters:function(){return[{type:a.NgZone},{type:r.LocalizationService},{type:a.ChangeDetectorRef},{type:q.PopupService},{type:a.ElementRef},{type:a.Renderer2},{type:a.Injector},{type:zn},{type:b},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[ki]}]}]},propDecorators:{container:[{type:h.ViewChild,args:["container",{read:h.ViewContainerRef,static:!0}]}],popupTemplate:[{type:h.ViewChild,args:["popupTemplate",{static:!0}]}],toggleButton:[{type:h.ViewChild,args:["toggleButton",{static:!0}]}],cellTemplate:[{type:h.ContentChild,args:[Rt,{static:!1}]}],cellTemplateRef:[{type:h.Input,args:["cellTemplate"]}],monthCellTemplate:[{type:h.ContentChild,args:[Ot,{static:!1}]}],monthCellTemplateRef:[{type:h.Input,args:["monthCellTemplate"]}],yearCellTemplate:[{type:h.ContentChild,args:[Mt,{static:!1}]}],yearCellTemplateRef:[{type:h.Input,args:["yearCellTemplate"]}],decadeCellTemplate:[{type:h.ContentChild,args:[Nt,{static:!1}]}],decadeCellTemplateRef:[{type:h.Input,args:["decadeCellTemplate"]}],centuryCellTemplate:[{type:h.ContentChild,args:[Ft,{static:!1}]}],centuryCellTemplateRef:[{type:h.Input,args:["centuryCellTemplate"]}],weekNumberTemplate:[{type:h.ContentChild,args:[Pt,{static:!1}]}],weekNumberTemplateRef:[{type:h.Input,args:["weekNumberTemplate"]}],headerTitleTemplate:[{type:h.ContentChild,args:[At,{static:!1}]}],headerTitleTemplateRef:[{type:h.Input,args:["headerTitleTemplate"]}],navigationItemTemplate:[{type:h.ContentChild,args:[_n,{static:!1}]}],navigationItemTemplateRef:[{type:h.Input,args:["navigationItemTemplate"]}],activeView:[{type:h.Input}],bottomView:[{type:h.Input}],topView:[{type:h.Input}],calendarType:[{type:h.Input}],animateCalendarNavigation:[{type:h.Input}],disabled:[{type:h.Input}],readonly:[{type:h.Input}],readOnlyInput:[{type:h.Input}],popupSettings:[{type:h.Input}],navigation:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],incompleteDateValidation:[{type:h.Input}],focusedDate:[{type:h.Input}],value:[{type:h.Input}],format:[{type:h.Input}],twoDigitYearMax:[{type:h.Input}],formatPlaceholder:[{type:h.Input}],placeholder:[{type:h.Input}],tabindex:[{type:h.Input}],tabIndex:[{type:h.Input}],disabledDates:[{type:h.Input}],title:[{type:h.Input}],rangeValidation:[{type:h.Input}],disabledDatesValidation:[{type:h.Input}],weekNumber:[{type:h.Input}],size:[{type:h.Input}],rounded:[{type:h.Input}],fillMode:[{type:h.Input}],valueChange:[{type:h.Output}],onFocus:[{type:h.Output,args:["focus"]}],onBlur:[{type:h.Output,args:["blur"]}],open:[{type:h.Output}],close:[{type:h.Output}],wrapperClasses:[{type:h.HostBinding,args:["class.k-datepicker"]},{type:h.HostBinding,args:["class.k-input"]}],disabledClass:[{type:h.HostBinding,args:["class.k-disabled"]}]}});function Si(e,t){return Pi(24+e-t)}function Ri(n){return function(e,t){return!t||k.getDate(e).getTime()===k.getDate(t).getTime()?e:Le(e,n)}}var Oi,Xn="dayperiod",D="hour",Mi="millisecond",Ni="minute",Fi="second",Pi=(Oi=24,function(e){return e%Oi}),Ai=Ri(0),Li=Ri(23),Bi=(zi.prototype.apply=function(e,t){return Le(e,t.getHours())},zi.prototype.configure=function(e){var t=this,n=e.boundRange,n=void 0===n?this.boundRange:n,i=e.insertUndividedMax,i=void 0===i?this.insertUndividedMax:i,a=e.min,a=void 0===a?this.min:a,o=e.max,o=void 0===o?this.max:o,r=e.part,e=e.step,e=void 0===e?this.step:e;this.boundRange=n,this.insertUndividedMax=i,this.toListItem=function(e){e=Le(G,e);return{text:t.intl.formatDate(e,r.pattern),value:e}},this.min=a,this.max=o,this.step=e},zi.prototype.data=function(e){var t,n,i=this,a=y(this.range(e),1)[0],o=(t=a,n=this.step,function(e){return Pi(t+e*n)}),a=oe(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},zi.prototype.isRangeChanged=function(e,t){return!k.isEqual(this.min,e)||!k.isEqual(this.max,t)},zi.prototype.limitRange=function(e,t,n){return this.boundRange?[Ai(e,n),Li(t,n)]:[e,t]},zi.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},zi.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},zi.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e)},zi.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastHour(t))),e},zi.prototype.addMissing=function(e,t){var n;return this.valueInList(t)||(n=this.toListItem(t.getHours()),e.splice(this.selectedIndex(t),0,n)),e},zi.prototype.countFromMin=function(e){var e=y(this.range(e),2),t=e[0],e=e[1];return Math.floor(Si(e,t)/this.step)+1},zi.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},zi.prototype.isLastMissing=function(e){return this.isMissing(Le(this.max,this.lastHour(e)))},zi.prototype.divideByStep=function(e){return Si(e.getHours(),this.min.getHours())/this.step},zi.prototype.lastHour=function(e){return this.range(e)[1]},zi.prototype.range=function(e){var e=y(this.limitRange(this.min,this.max,e),2),t=e[0],e=e[1];return[t.getHours(),e.getHours()]},zi);function zi(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}Bi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Bi,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),Bi.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Bi}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Bi,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});function ji(e,t){return $i(60+e-t)}function _i(n){return function(e,t){return!t||e.getHours()===t.getHours()?e:Be(e,n)}}Hi=60;var Hi,$i=function(e){return e%Hi},Yi=_i(0),Ui=_i(59),Ki=(Wi.prototype.apply=function(e,t){return Be(e,t.getMinutes())},Wi.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,n=void 0===n?this.insertUndividedMax:n,i=e.min,i=void 0===i?this.min:i,a=e.max,a=void 0===a?this.max:a,o=e.part,e=e.step,e=void 0===e?this.step:e;this.insertUndividedMax=n,this.toListItem=function(e){e=Be(G,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=i,this.max=a,this.step=e},Wi.prototype.data=function(e){var t,n,i=this,a=y(this.range(e),1)[0],o=(t=a,n=this.step,function(e){return $i(t+e*n)}),a=oe(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},Wi.prototype.isRangeChanged=function(e,t){return!k.isEqual(this.min,e)||!k.isEqual(this.max,t)},Wi.prototype.limitRange=function(e,t,n){return[Yi(e,n),Ui(t,n)]},Wi.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},Wi.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},Wi.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e)},Wi.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMinute(t))),e},Wi.prototype.addMissing=function(e,t){var n;return this.valueInList(t)||(n=this.toListItem(t.getMinutes()),e.splice(this.selectedIndex(t),0,n)),e},Wi.prototype.countFromMin=function(e){var e=y(this.range(e),2),t=e[0],e=e[1];return Math.floor(ji(e,t)/this.step)+1},Wi.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},Wi.prototype.isLastMissing=function(e){return this.isMissing(Be(this.max,this.lastMinute(e)))},Wi.prototype.divideByStep=function(e){return ji(e.getMinutes(),this.min.getMinutes())/this.step},Wi.prototype.lastMinute=function(e){return this.range(e)[1]},Wi.prototype.range=function(e){var e=y(this.limitRange(this.min,this.max,e),2),t=e[0],e=e[1];return[t.getMinutes(),e.getMinutes()]},Wi);function Wi(e){this.intl=e,this.insertUndividedMax=!1}Ki.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ki,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),Ki.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ki}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ki,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});function qi(e,t){return Xi(60+e-t)}function Zi(n){return function(e,t){return!t||e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()?e:ze(e,n)}}Gi=60;var Gi,Xi=function(e){return e%Gi},Qi=Zi(0),Ji=Zi(59),ea=(ta.prototype.apply=function(e,t){return ze(e,t.getSeconds())},ta.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,n=void 0===n?this.insertUndividedMax:n,i=e.min,i=void 0===i?this.min:i,a=e.max,a=void 0===a?this.max:a,o=e.part,e=e.step,e=void 0===e?this.step:e;this.insertUndividedMax=n,this.toListItem=function(e){e=ze(G,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=i,this.max=a,this.step=e},ta.prototype.data=function(e){var t,n,i=this,a=y(this.range(e),1)[0],o=(t=a,n=this.step,function(e){return Xi(t+e*n)}),a=oe(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},ta.prototype.isRangeChanged=function(e,t){return!k.isEqual(this.min,e)||!k.isEqual(this.max,t)},ta.prototype.limitRange=function(e,t,n){return[Qi(e,n),Ji(t,n)]},ta.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},ta.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},ta.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e)},ta.prototype.divideByStep=function(e){return qi(e.getSeconds(),this.min.getSeconds())/this.step},ta.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastSecond(t))),e},ta.prototype.addMissing=function(e,t){var n;return this.valueInList(t)||(n=this.toListItem(t.getSeconds()),e.splice(this.selectedIndex(t),0,n)),e},ta.prototype.countFromMin=function(e){var e=y(this.range(e),2),t=e[0],e=e[1];return Math.floor(qi(e,t)/this.step)+1},ta.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},ta.prototype.isLastMissing=function(e){return this.isMissing(ze(this.max,this.lastSecond(e)))},ta.prototype.lastSecond=function(e){return this.range(e)[1]},ta.prototype.range=function(e){var e=y(this.limitRange(this.min,this.max,e),2),t=e[0],e=e[1];return[t.getSeconds(),e.getSeconds()]},ta);function ta(e){this.intl=e,this.insertUndividedMax=!1}ea.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ea,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),ea.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ea}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ea,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});function na(e,t){return oa(1e3+e-t)}function ia(n){return function(e,t){return!t||e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()&&e.getSeconds()===t.getSeconds()?e:je(e,n)}}aa=1e3;var aa,oa=function(e){return e%aa},ra=ia(0),sa=ia(999),la=(ca.prototype.apply=function(e,t){return je(e,t.getMilliseconds())},ca.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,n=void 0===n?this.insertUndividedMax:n,i=e.min,i=void 0===i?this.min:i,a=e.max,a=void 0===a?this.max:a,e=e.step,e=void 0===e?this.step:e;this.insertUndividedMax=n,this.toListItem=function(e){e=je(G,e);return{text:t.intl.formatDate(e,"SSS"),value:e}},this.min=i,this.max=a,this.step=e},ca.prototype.data=function(e){var t,n,i=this,a=y(this.range(e),1)[0],o=(t=a,n=this.step,function(e){return oa(t+e*n)}),a=oe(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},ca.prototype.isRangeChanged=function(e,t){return!k.isEqual(this.min,e)||!k.isEqual(this.max,t)},ca.prototype.limitRange=function(e,t,n){return[ra(e,n),sa(t,n)]},ca.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},ca.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},ca.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastMillisecond(e)===e.getMilliseconds()||!this.isMissing(e)},ca.prototype.divideByStep=function(e){return na(e.getMilliseconds(),this.min.getMilliseconds())/this.step},ca.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMillisecond(t))),e},ca.prototype.addMissing=function(e,t){var n;return this.valueInList(t)||(n=this.toListItem(t.getMilliseconds()),e.splice(this.selectedIndex(t),0,n)),e},ca.prototype.countFromMin=function(e){var e=y(this.range(e),2),t=e[0],e=e[1];return Math.floor(na(e,t)/this.step)+1},ca.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},ca.prototype.isLastMissing=function(e){return this.isMissing(je(this.max,this.lastMillisecond(e)))},ca.prototype.lastMillisecond=function(e){return this.range(e)[1]},ca.prototype.range=function(e){var e=y(this.limitRange(this.min,this.max,e),2),t=e[0],e=e[1];return[t.getMilliseconds(),e.getMilliseconds()]},ca);function ca(e){this.intl=e,this.insertUndividedMax=!1}la.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:la,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),la.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:la}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:la,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});function pa(e,t){return(e=k.cloneDate(e)).setHours(t),e}function ua(e){return null!==e&&e<12}function da(e,t,n){return!t&&!n||t<=e&&e<=n}function ha(e,t,n){return!t&&!n||t<=e||e<=n}ga.prototype.apply=function(e,t){var n,i=e.getHours(),a=ua(i),t=ua(t.getHours());return a&&t||!a&&!t?e:(n=(a=y(this.normalizedRange(),2))[0],a=void 0===(a=a[1])?24:a,pa(e,Math.min(Math.max(n,i+(t?-12:12)),a||24)))},ga.prototype.configure=function(e){var t=e.min,t=void 0===t?this.min:t,n=e.max,n=void 0===n?this.max:n,e=e.part,e=void 0===e?this.part:e;this.min=t,this.max=n,this.part=e},ga.prototype.data=function(e){var t,n,i,a,o=this.part.names;return o?(t=[],n=(i=y(this.normalizedRange(),2))[0],i=i[1],o=this.intl.dateFormatNames(o),ua(n)&&t.push({text:o.am,value:pa(this.min,n)}),null!==(a=i)&&(!a||11<a)&&t.push({text:o.pm,value:pa(this.min,Math.max(12,i))}),this.min.getHours()!==n?t.reverse():t):[]},ga.prototype.isRangeChanged=function(e,t){return!1},ga.prototype.limitRange=function(e,t,n){return[e,t]},ga.prototype.total=function(){var e=y(this.normalizedRange(),2),t=e[0],e=e[1];return(t||e)&&(11<t||e<12)?1:2},ga.prototype.selectedIndex=function(e){return this.valueInList(e)?(e=Math.floor(e.getHours()/12),this.min.getHours()===this.normalizedRange()[0]?e:0===e?1:0):-1},ga.prototype.valueInList=function(e){return(this.min.getHours()!==this.normalizedRange()[0]?ha:da)(e.getHours(),this.min.getHours(),this.max.getHours())},ga.prototype.normalizedRange=function(){var e=this.min.getHours(),t=this.max.getHours();return[Math.min(e,t),Math.max(e,t)]};var ma=ga;function ga(e){this.intl=e}ma.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ma,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),ma.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ma}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ma,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});var fa=me("div"),va=me("ul"),ya=me("li"),O=me("span"),ba=function(){return va([ya("<span>02</span>","k-item")],"k-reset")},ka=m.isDocumentAvailable()?fa([O("hour","k-title k-timeselector-title"),fa([fa([ba()],"k-time-container k-flex k-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}):null,Ca=(wa.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},wa.prototype.calculateHeights=function(e){var t;m.isDocumentAvailable()&&(t=(e=e&&e.querySelector(".k-time-list-container")||document.body).appendChild(ka),this.timeListHeight=t.querySelector(".k-scrollable").getBoundingClientRect().height,this.itemHeight=t.querySelector("li").getBoundingClientRect().height,e.removeChild(t))},wa.prototype.isActive=function(e){return!(!m.isDocumentAvailable()||!e)&&(e.nativeElement||e)===document.activeElement},wa);function wa(){}Ca.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ca,deps:[],target:a.ɵɵFactoryTarget.Injectable}),Ca.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ca}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ca,decorators:[{type:h.Injectable}]});function Da(){return null}var Ta={35:function(e,t){return e[e.length-1]},36:function(e,t){return e[0]},38:function(e,t){return e[t-1]},40:function(e,t){return e[t+1]}},Ia=((O={})[Xn]=ma,O[D]=Bi,O[Ni]=Ki,O[Fi]=ea,O[Mi]=la,O),fa=(Object.defineProperty(Va.prototype,"roleAttribute",{get:function(){return"listbox"},enumerable:!1,configurable:!0}),Object.defineProperty(Va.prototype,"ariaLabel",{get:function(){var e;return this.localization.get(null==(e=this.part)?void 0:e.type)},enumerable:!1,configurable:!0}),Object.defineProperty(Va.prototype,"tabIndex",{get:function(){return this.disabled?void 0:0},enumerable:!1,configurable:!0}),Object.defineProperty(Va.prototype,"isDayPeriod",{get:function(){var e;return"dayperiod"===(null==(e=this.part)?void 0:e.type)},enumerable:!1,configurable:!0}),Object.defineProperty(Va.prototype,"currentSelectedIndex",{get:function(){return this.selectedIndex(this.value)},enumerable:!1,configurable:!0}),Va.prototype.ngOnChanges=function(e){e.part&&(this.service=this.injector.get(Ia[this.part.type]),this.service.configure(this.serviceSettings()));var t=this.value,n=e.value||{},i=y(this.service.limitRange(this.min,this.max,t),2),a=i[0],i=i[1];(this.service.isRangeChanged(a,i)||e.min||e.max||e.step)&&(this.data=[],this.service.configure(this.serviceSettings({min:a,max:i}))),this.data.length&&!this.hasMissingValue(n)||(this.animateToIndex=!1,this.data=this.service.data(t)),this.animateToIndex=this.animateToIndex&&this.textHasChanged(n),this.total=this.service.total(t),this.indexToScroll=this.selectedIndex(t)},Va.prototype.ngOnInit=function(){var e=this,t=(this.animateToIndex=!0,this.dom.ensureHeights(),this.itemHeight=this.dom.itemHeight,this.listHeight=this.dom.timeListHeight,this.topOffset=(this.listHeight-this.itemHeight)/2,this.bottomOffset=this.listHeight-this.itemHeight,this.topThreshold=.05*this.itemHeight,this.bottomThreshold=.95*this.itemHeight,"translateY("+this.topOffset+"px)");this.style={transform:t,"-ms-transform":t},this.element&&this.zone.runOutsideAngular(function(){e.bindEvents()})},Va.prototype.ngOnDestroy=function(){this.scrollSubscription.unsubscribe(),this.domEvents.forEach(function(e){return e()})},Va.prototype.ngAfterViewInit=function(){var t=this;this.scrollOnce(function(e){return t.virtualization.scrollToIndex(e)})},Va.prototype.ngAfterViewChecked=function(){var n=this;this.scrollOnce(function(e){var t=n.animateToIndex?"animateToIndex":"scrollToIndex";n.virtualization[t](e),n.animateToIndex=!0})},Va.prototype.getCurrentItem=function(){return 0<=this.indexToScroll?this.data[this.indexToScroll]:null},Va.prototype.handleChange=function(e){var t=this.service.apply(this.value,e.value);this.value.getTime()!==t.getTime()&&(this.indexToScroll=this.data.indexOf(e),this.value=t,this.valueChange.emit(t))},Va.prototype.handleItemClick=function(e){var e=dt(e.target,function(e){return e.hasAttribute("data-timelist-item-index")},this.element.nativeElement);e&&(e=e.getAttribute("data-timelist-item-index"),this.handleChange(this.data[e]))},Va.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},Va.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},Va.prototype.itemOffset=function(e){var t=this.selectedIndex(this.value),n=this.virtualization.activeIndex(),i=this.virtualization.itemOffset(n),e=Math.abs(Math.ceil(e)-i);return!(t===n&&e<2)&&((t=n<t)&&e>=this.bottomThreshold||!t&&e>this.topThreshold)?this.virtualization.itemOffset(n+1):i},Va.prototype.hasMissingValue=function(e){var t=e.previousValue,e=e.currentValue,t=t&&!this.service.valueInList(t),e=e&&!this.service.valueInList(e);return t||e},Va.prototype.scrollOnce=function(e){-1!==this.indexToScroll&&(e(this.indexToScroll),this.indexToScroll=-1)},Va.prototype.serviceSettings=function(e){var t={boundRange:!1,insertUndividedMax:!1,max:this.max,min:this.min,part:this.part,step:this.step},t=Object.assign({},t,e);return t.boundRange="hour"!==t.part.type,t},Va.prototype.selectedIndex=function(e){return e?this.service.selectedIndex(e):-1},Va.prototype.textHasChanged=function(e){var t=e.previousValue,e=e.currentValue;return!(!t||!e)&&(t=this.data[this.selectedIndex(t)],e=this.data[this.selectedIndex(e)],t)&&e&&t.text!==e.text},Va.prototype.handleKeyDown=function(e){var t=(Ta[e.keyCode]||Da)(this.data,this.service.selectedIndex(this.value));t&&(this.handleChange(t),e.preventDefault())},Va.prototype.bindEvents=function(){var t=this,e=(this.scrollSubscription=this.virtualization.scroll$().pipe(B.debounceTime(100),B.map(function(e){return e.target.scrollTop}),B.map(function(e){return t.itemOffset(e)}),B.map(function(e){return t.virtualization.itemIndex(e)})).subscribe(function(e){t.virtualization.scrollToIndex(e),t.handleChange(t.data[e])}),this.element.nativeElement);this.domEvents.push(this.renderer.listen(e,"mouseover",function(){return!t.isActive&&t.focus()}),this.renderer.listen(e,"click",function(){return t.focus()}),this.renderer.listen(e,"blur",function(){return t.isActive=!1}),this.renderer.listen(e,"focus",function(){return t.isActive=!0}),this.renderer.listen(e,"keydown",this.handleKeyDown.bind(this)))},Va);function Va(e,t,n,i,a,o){this.element=e,this.injector=t,this.dom=n,this.renderer=i,this.zone=a,this.localization=o,this.min=k.cloneDate(G),this.max=k.cloneDate(ee),this.step=1,this.disabled=!1,this.valueChange=new h.EventEmitter,this.componentClass=!0,this.animateToIndex=!0,this.isActive=!1,this.skip=0,this.total=60,this.data=[],this.indexToScroll=-1,this.domEvents=[]}fa.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:fa,deps:[{token:a.ElementRef},{token:a.Injector},{token:Ca},{token:a.Renderer2},{token:a.NgZone},{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),fa.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:fa,selector:"kendo-timelist",inputs:{min:"min",max:"max",part:"part",step:"step",disabled:"disabled",value:"value"},outputs:{valueChange:"valueChange"},host:{properties:{"attr.role":"this.roleAttribute","attr.aria-label":"this.ariaLabel","attr.tabindex":"this.tabIndex","class.k-time-list":"this.componentClass"}},viewQueries:[{propertyName:"virtualization",first:!0,predicate:T,descendants:!0,static:!0}],usesOnChanges:!0,ngImport:a,template:'\n <kendo-virtualization\n [skip]="skip"\n [take]="total"\n [total]="total"\n [itemHeight]="itemHeight"\n [maxScrollDifference]="listHeight"\n [topOffset]="topOffset"\n [bottomOffset]="bottomOffset"\n class="k-time-container"\n role="presentation"\n tabindex="-1"\n >\n <ul [ngStyle]="style" class="k-reset"\n [kendoEventsOutsideAngular]="{\n click: handleItemClick\n }"\n [scope]="this"\n [attr.role]="\'presentation\'"\n >\n <li *ngFor="let item of data; let index = index;" class="k-item"\n [attr.data-timelist-item-index]="index"\n [attr.role]="\'option\'"\n [attr.aria-selected]="index === currentSelectedIndex"\n >\n <span>{{item.text}}</span>\n </li>\n </ul>\n </kendo-virtualization>\n ',isInline:!0,components:[{type:T,selector:"kendo-virtualization",inputs:["direction","itemHeight","itemWidth","topOffset","bottomOffset","maxScrollDifference","scrollOffsetSize","scrollDuration","skip","take","total"],outputs:["activeIndexChange","pageChange","scrollChange"]}],directives:[{type:c.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]},{type:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:c.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]}]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:fa,decorators:[{type:h.Component,args:[{selector:"kendo-timelist",template:'\n <kendo-virtualization\n [skip]="skip"\n [take]="total"\n [total]="total"\n [itemHeight]="itemHeight"\n [maxScrollDifference]="listHeight"\n [topOffset]="topOffset"\n [bottomOffset]="bottomOffset"\n class="k-time-container"\n role="presentation"\n tabindex="-1"\n >\n <ul [ngStyle]="style" class="k-reset"\n [kendoEventsOutsideAngular]="{\n click: handleItemClick\n }"\n [scope]="this"\n [attr.role]="\'presentation\'"\n >\n <li *ngFor="let item of data; let index = index;" class="k-item"\n [attr.data-timelist-item-index]="index"\n [attr.role]="\'option\'"\n [attr.aria-selected]="index === currentSelectedIndex"\n >\n <span>{{item.text}}</span>\n </li>\n </ul>\n </kendo-virtualization>\n '}]}],ctorParameters:function(){return[{type:a.ElementRef},{type:a.Injector},{type:Ca},{type:a.Renderer2},{type:a.NgZone},{type:r.LocalizationService}]},propDecorators:{min:[{type:h.Input}],max:[{type:h.Input}],part:[{type:h.Input}],step:[{type:h.Input}],disabled:[{type:h.Input}],value:[{type:h.Input}],valueChange:[{type:h.Output}],virtualization:[{type:h.ViewChild,args:[T,{static:!0}]}],roleAttribute:[{type:h.HostBinding,args:["attr.role"]}],ariaLabel:[{type:h.HostBinding,args:["attr.aria-label"]}],tabIndex:[{type:h.HostBinding,args:["attr.tabindex"]}],componentClass:[{type:h.HostBinding,args:["class.k-time-list"]}]}});function xa(e,t){return e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()}function Ea(e,t){return xa(e,t)&&e.getSeconds()===t.getSeconds()}function Sa(e){return function(t,n){return t.setHours.apply(t,ut([],y(e.map(function(e){return e(t,n)})))),t}}var Ra,Oa,Ma,ba=[{type:D,getter:function(e){return e.getHours()},minGetter:function(e,t){return t.getHours()}},{type:Ni,getter:function(e){return e.getMinutes()},minGetter:function(e,t){return xa(e,t)?t.getMinutes():0}},{type:Fi,getter:function(e){return e.getSeconds()},minGetter:function(e,t){return Ea(e,t)?t.getSeconds():0}},{type:Mi,getter:function(e){return e.getMilliseconds()},minGetter:function(e,t){return Ea(e=e,n=t)&&e.getMilliseconds()===n.getMilliseconds()?t.getMilliseconds():0;var n}}],Na=function(n){return function(e,t){return n(e)}},Fa=function(n){return function(e,t){return n(t)}},Pa=function(e){return Ra.map((t=e.reduce(function(e,t){return e[t.type]=t.type,e},{}),function(e){return(t[e.type]?Fa:Na)(e.getter)}));var t},Aa=(Oa=Ra=ba,function(n){return Oa.map(function(e){var i,a,o,t=n[e.type];return t?(i=e.getter,a=e.minGetter,o=t,function(e,t){var n=i(e),e=a(e,t),t=n-e;return t<0?e:n-(e=t%o)+(o/2<e?o:0)}):e.getter})}),O=(pt(La,Ma=t.ComponentMessages),La);function La(){return null!==Ma&&Ma.apply(this,arguments)||this}O.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:O,deps:null,target:a.ɵɵFactoryTarget.Directive}),O.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:O,selector:"kendo-timepicker-messages-base",inputs:{accept:"accept",acceptLabel:"acceptLabel",cancel:"cancel",cancelLabel:"cancelLabel",now:"now",nowLabel:"nowLabel",toggle:"toggle",hour:"hour",minute:"minute",second:"second",millisecond:"millisecond",dayperiod:"dayperiod"},usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:O,decorators:[{type:h.Directive,args:[{selector:"kendo-timepicker-messages-base"}]}],propDecorators:{accept:[{type:h.Input}],acceptLabel:[{type:h.Input}],cancel:[{type:h.Input}],cancelLabel:[{type:h.Input}],now:[{type:h.Input}],nowLabel:[{type:h.Input}],toggle:[{type:h.Input}],hour:[{type:h.Input}],minute:[{type:h.Input}],second:[{type:h.Input}],millisecond:[{type:h.Input}],dayperiod:[{type:h.Input}]}});pt(ja,Ba=O);var Ba,za=ja;function ja(e){var t=Ba.call(this)||this;return t.service=e,t}za.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:za,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),za.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:za,selector:"[kendoTimeSelectorLocalizedMessages]",providers:[{provide:O,useExisting:h.forwardRef(function(){return za})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:za,decorators:[{type:h.Directive,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return za})}],selector:"[kendoTimeSelectorLocalizedMessages]"}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});function _a(e,t,n,i){return e.length||!t.isActive?e:[{next:i[n+1]||t,prev:i[n-1]||t}]}(ba=Ha=Ha||{})[ba.Left=0]="Left",ba[ba.Right=1]="Right",Object.defineProperty(M.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"steps",{get:function(){return this._steps},set:function(e){this._steps=e||{}},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"current",{get:function(){return this._current},set:function(e){var t,n,i,a,o;this._current=(e=this.snapTime(k.cloneDate(e||G),this.min),t=this.min,n=this.max,e&&t&&n?(i=(o=ae(e,t,n)).candidateValue,a=o.minValue,o=o.maxValue,i<a?Pe(e,t):o<i?Pe(e,n):e):e),h.NgZone.isInAngularZone()||this.cdr.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"activeListIndex",{get:function(){return this._activeListIndex},set:function(e){var t=this;this._activeListIndex=e,this.timeListWrappers&&this.timeListWrappers.length&&(this.timeListWrappers.forEach(function(e){t.renderer.removeClass(e.nativeElement,"k-focus")}),0<=e)&&(e=this.listIndex(e),e=this.timeListWrappers.toArray()[e])&&this.renderer.addClass(e.nativeElement,"k-focus")},enumerable:!1,configurable:!0}),M.prototype.ngOnInit=function(){var e=this;this.subscriptions=this.intl.changes.subscribe(this.intlChange.bind(this)),this.localization&&this.subscriptions.add(this.localization.changes.subscribe(function(){return e.cdr.markForCheck()})),this.renderer.addClass(this.element.nativeElement,"k-timeselector"),this.dom.calculateHeights(this.element.nativeElement),this.init(),this.bindEvents()},M.prototype.ngOnChanges=function(e){this.init()},M.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.pickerService&&(this.pickerService.timeSelector=null),this.domEvents.forEach(function(e){return e()})},M.prototype.focus=function(){var e=this.timeLists.first;e&&e.focus()},M.prototype.blur=function(){var e=this.timeLists.first;e&&e.blur()},M.prototype.handleAccept=function(){this.handleChange(this.mergeValue(k.cloneDate(this.value||k.getDate(pe())),this.current))},M.prototype.handleNow=function(){this.current=pe(),this.handleChange(this.current),this.cdr.markForCheck()},M.prototype.handleReject=function(){this.current=this.value,this.valueReject.emit()},M.prototype.handleFocus=function(e){this.isActive||(this.isActive=!0,this.emitFocus(e))},M.prototype.handleListFocus=function(e){var t=parseInt(e.target.getAttribute("data-timelist-index"),10);this.activeListIndex=t,this.handleFocus(e)},M.prototype.handleBlur=function(e){var t=Y(e);t&&this.containsElement(t)||(this.activeListIndex=-1,this.isActive=!1,this.emitBlur(e))},M.prototype.containsElement=function(e){var t=this;return Boolean(ht(e,function(e){return e===t.element.nativeElement}))},M.prototype.partStep=function(e){return this.steps[e.type]||1},M.prototype.init=function(e){var i;e&&!ge(e,"format")||(this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=Sa(Pa(this.dateFormatParts))),e&&!ge(e,"steps")||(this.snapTime=(i=Aa(this.steps),function(e,t){var n=k.cloneDate(e);return n.setHours.apply(n,ut([],y(i.map(function(e){return e(n,t)})))),n})),e&&!ge(e,"value")||(this.current=this.value),this.showNowButton=!this.hasSteps()&&this.nowButton&&se(pe(),this.min,this.max)},M.prototype.focusList=function(t){this.timeLists.length&&this.timeLists.reduce(_a,[]).map(function(e){return t===Ha.Right?e.next:e.prev}).map(function(e){return e&&e.focus()})},M.prototype.handleChange=function(e){this.value=e,this.valueChange.emit(k.cloneDate(e))},M.prototype.hasActiveButton=function(){var n=this;return!!this.accept&&[this.accept,this.cancel,this.now].reduce(function(e,t){return e||n.dom.isActive(t)},!1)},M.prototype.hasSteps=function(){var n=this,e=Object.keys(this.steps);return e.length!==e.reduce(function(e,t){return e+n.steps[t]},0)},M.prototype.intlChange=function(){this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=Sa(Pa(this.dateFormatParts)),this.cdr.markForCheck()},M.prototype.bindEvents=function(){var e=this;this.element&&this.zone.runOutsideAngular(function(){e.domEvents.push(e.renderer.listen(e.element.nativeElement,"keydown",e.handleKeydown.bind(e)))})},M.prototype.handleKeydown=function(e){var t=e.keyCode,e=e.altKey,n=-1!==[m.Keys.ArrowLeft,m.Keys.ArrowRight].indexOf(t);o(this.pickerService)&&n&&e||(t!==m.Keys.Enter||this.hasActiveButton()?t!==m.Keys.ArrowLeft&&t!==m.Keys.ArrowRight||this.focusList(t===m.Keys.ArrowLeft?Ha.Left:Ha.Right):this.handleAccept())},M.prototype.emitBlur=function(e){this.pickerService&&this.pickerService.onBlur.emit(e)},M.prototype.emitFocus=function(e){this.pickerService&&this.pickerService.onFocus.emit(e)},M.prototype.listIndex=function(e){for(var t=0,n=0;n<e;)"literal"!==this.dateFormatParts[n].type&&t++,n++;return t};var Ha,ba=M;function M(e,t,n,i,a,o,r,s){this.localization=e,this.cdr=t,this.element=n,this.intl=i,this.dom=a,this.zone=o,this.renderer=r,this.pickerService=s,this.format="t",this.min=k.cloneDate(J),this.max=k.cloneDate(ee),this.cancelButton=!0,this.setButton=!0,this.nowButton=!0,this.disabled=!1,this.value=null,this.valueChange=new h.EventEmitter,this.valueReject=new h.EventEmitter,this.isActive=!1,this.showNowButton=!0,this._activeListIndex=-1,this._steps={},this.domEvents=[],this.pickerService&&(this.pickerService.timeSelector=this)}ba.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ba,deps:[{token:r.LocalizationService},{token:a.ChangeDetectorRef},{token:a.ElementRef},{token:s.IntlService},{token:Ca},{token:a.NgZone},{token:a.Renderer2},{token:zn,optional:!0}],target:a.ɵɵFactoryTarget.Component}),ba.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:ba,selector:"kendo-timeselector",inputs:{format:"format",min:"min",max:"max",cancelButton:"cancelButton",setButton:"setButton",nowButton:"nowButton",disabled:"disabled",steps:"steps",value:"value"},outputs:{valueChange:"valueChange",valueReject:"valueReject"},host:{properties:{"class.k-disabled":"this.disabledClass"}},providers:[t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.timeselector"}],viewQueries:[{propertyName:"accept",first:!0,predicate:["accept"],descendants:!0},{propertyName:"cancel",first:!0,predicate:["cancel"],descendants:!0},{propertyName:"now",first:!0,predicate:["now"],descendants:!0},{propertyName:"timeLists",predicate:fa,descendants:!0},{propertyName:"timeListWrappers",predicate:["listWrapper"],descendants:!0}],exportAs:["kendo-timeselector"],usesOnChanges:!0,ngImport:a,template:'\n <ng-container kendoTimeSelectorLocalizedMessages\n i18n-accept="kendo.timeselector.accept|The Accept button text in the timeselector component"\n accept="Set"\n\n i18n-acceptLabel="kendo.timeselector.acceptLabel|The label for the Accept button in the timeselector component"\n acceptLabel="Set time"\n\n i18n-cancel="kendo.timeselector.cancel|The Cancel button text in the timeselector component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.timeselector.cancelLabel|The label for the Cancel button in the timeselector component"\n cancelLabel="Cancel changes"\n\n i18n-now="kendo.timeselector.now|The Now button text in the timeselector component"\n now="Now"\n\n i18n-nowLabel="kendo.timeselector.nowLabel|The label for the Now button in the timeselector component"\n nowLabel="Select now"\n >\n </ng-container>\n <div class="k-time-header">\n <span class="k-title k-timeselector-title">\n {{ intl.formatDate(current, format) }}\n </span>\n <button\n #now\n *ngIf="showNowButton"\n type="button"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-primary k-time-now"\n [attr.title]="localization.get(\'nowLabel\')"\n [attr.aria-label]="localization.get(\'nowLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleNow,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'now\')}}</button>\n </div>\n <div class="k-time-list-container">\n <span class="k-time-highlight"></span>\n <ng-template ngFor [ngForOf]="dateFormatParts" let-part let-idx="index">\n <div\n #listWrapper\n class="k-time-list-wrapper"\n role="presentation" tabindex="-1"\n *ngIf="part.type !== \'literal\'"\n >\n <span class="k-title k-timeselector-title">{{intl.dateFieldName(part)}}</span>\n <kendo-timelist\n [min]="min"\n [max]="max"\n [part]="part"\n [step]="partStep(part)"\n [disabled]="disabled"\n [(value)]="current"\n [kendoEventsOutsideAngular]="{\n focus: handleListFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [attr.data-timelist-index]="idx"\n ></kendo-timelist>\n </div>\n <div class="k-time-separator" *ngIf="part.type === \'literal\'">\n {{part.pattern}}\n </div>\n </ng-template>\n </div>\n <div class="k-time-footer k-action-buttons k-actions k-actions-stretched" *ngIf="setButton || cancelButton">\n <button\n #cancel\n *ngIf="cancelButton"\n class="k-button k-time-cancel k-button-md k-rounded-md k-button-solid k-button-solid-base"\n type="button"\n [attr.title]="localization.get(\'cancelLabel\')"\n [attr.aria-label]="localization.get(\'cancelLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleReject,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'cancel\')}}</button>\n <button\n #accept\n *ngIf="setButton"\n type="button"\n class="k-button k-time-accept k-button-md k-rounded-md k-button-solid k-button-solid-primary"\n [attr.title]="localization.get(\'acceptLabel\')"\n [attr.aria-label]="localization.get(\'acceptLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleAccept,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'accept\')}}</button>\n </div>\n ',isInline:!0,components:[{type:fa,selector:"kendo-timelist",inputs:["min","max","part","step","disabled","value"],outputs:["valueChange"]}],directives:[{type:za,selector:"[kendoTimeSelectorLocalizedMessages]"},{type:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:c.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ba,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timeselector",providers:[t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.timeselector"}],selector:"kendo-timeselector",template:'\n <ng-container kendoTimeSelectorLocalizedMessages\n i18n-accept="kendo.timeselector.accept|The Accept button text in the timeselector component"\n accept="Set"\n\n i18n-acceptLabel="kendo.timeselector.acceptLabel|The label for the Accept button in the timeselector component"\n acceptLabel="Set time"\n\n i18n-cancel="kendo.timeselector.cancel|The Cancel button text in the timeselector component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.timeselector.cancelLabel|The label for the Cancel button in the timeselector component"\n cancelLabel="Cancel changes"\n\n i18n-now="kendo.timeselector.now|The Now button text in the timeselector component"\n now="Now"\n\n i18n-nowLabel="kendo.timeselector.nowLabel|The label for the Now button in the timeselector component"\n nowLabel="Select now"\n >\n </ng-container>\n <div class="k-time-header">\n <span class="k-title k-timeselector-title">\n {{ intl.formatDate(current, format) }}\n </span>\n <button\n #now\n *ngIf="showNowButton"\n type="button"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-primary k-time-now"\n [attr.title]="localization.get(\'nowLabel\')"\n [attr.aria-label]="localization.get(\'nowLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleNow,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'now\')}}</button>\n </div>\n <div class="k-time-list-container">\n <span class="k-time-highlight"></span>\n <ng-template ngFor [ngForOf]="dateFormatParts" let-part let-idx="index">\n <div\n #listWrapper\n class="k-time-list-wrapper"\n role="presentation" tabindex="-1"\n *ngIf="part.type !== \'literal\'"\n >\n <span class="k-title k-timeselector-title">{{intl.dateFieldName(part)}}</span>\n <kendo-timelist\n [min]="min"\n [max]="max"\n [part]="part"\n [step]="partStep(part)"\n [disabled]="disabled"\n [(value)]="current"\n [kendoEventsOutsideAngular]="{\n focus: handleListFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [attr.data-timelist-index]="idx"\n ></kendo-timelist>\n </div>\n <div class="k-time-separator" *ngIf="part.type === \'literal\'">\n {{part.pattern}}\n </div>\n </ng-template>\n </div>\n <div class="k-time-footer k-action-buttons k-actions k-actions-stretched" *ngIf="setButton || cancelButton">\n <button\n #cancel\n *ngIf="cancelButton"\n class="k-button k-time-cancel k-button-md k-rounded-md k-button-solid k-button-solid-base"\n type="button"\n [attr.title]="localization.get(\'cancelLabel\')"\n [attr.aria-label]="localization.get(\'cancelLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleReject,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'cancel\')}}</button>\n <button\n #accept\n *ngIf="setButton"\n type="button"\n class="k-button k-time-accept k-button-md k-rounded-md k-button-solid k-button-solid-primary"\n [attr.title]="localization.get(\'acceptLabel\')"\n [attr.aria-label]="localization.get(\'acceptLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleAccept,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'accept\')}}</button>\n </div>\n '}]}],ctorParameters:function(){return[{type:r.LocalizationService},{type:a.ChangeDetectorRef},{type:a.ElementRef},{type:s.IntlService},{type:Ca},{type:a.NgZone},{type:a.Renderer2},{type:zn,decorators:[{type:h.Optional}]}]},propDecorators:{accept:[{type:h.ViewChild,args:["accept",{static:!1}]}],cancel:[{type:h.ViewChild,args:["cancel",{static:!1}]}],now:[{type:h.ViewChild,args:["now",{static:!1}]}],timeLists:[{type:h.ViewChildren,args:[fa]}],timeListWrappers:[{type:h.ViewChildren,args:["listWrapper"]}],disabledClass:[{type:h.HostBinding,args:["class.k-disabled"]}],format:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],cancelButton:[{type:h.Input}],setButton:[{type:h.Input}],nowButton:[{type:h.Input}],disabled:[{type:h.Input}],steps:[{type:h.Input}],value:[{type:h.Input}],valueChange:[{type:h.Output}],valueReject:[{type:h.Output}]}});pt(Ua,$a=O),Object.defineProperty(Ua.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0});var $a,Ya=Ua;function Ua(e){var t=$a.call(this)||this;return t.service=e,t}Ya.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ya,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Ya.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Ya,selector:"kendo-timeselector-messages",providers:[{provide:O,useExisting:h.forwardRef(function(){return Ya})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ya,decorators:[{type:h.Component,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return Ya})}],selector:"kendo-timeselector-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});pt(qa,Ka=O);var Ka,Wa=qa;function qa(e){var t=Ka.call(this)||this;return t.service=e,t}Wa.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Wa,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),Wa.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Wa,selector:"[kendoTimePickerLocalizedMessages]",providers:[{provide:O,useExisting:h.forwardRef(function(){return Wa})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Wa,decorators:[{type:h.Directive,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return Wa})}],selector:"[kendoTimePickerLocalizedMessages]"}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});var Za=new RegExp(D+"|"+Ni+"|"+Fi+"|"+Mi+"|"+Xn+"|literal"),Ga=(Object.defineProperty(N.prototype,"min",{get:function(){return this._min},set:function(e){this._min=k.cloneDate(e||J)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"max",{get:function(){return this._max},set:function(e){this._max=k.cloneDate(e||ee)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"steps",{get:function(){return this._steps},set:function(e){this._steps=e||{}},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=k.cloneDate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,Ve("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,Ve("input",this.size));e=e||He;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,Ve("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,Ve("input",e))),this._size=e},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,xe(this.rounded));e=e||_e;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,xe(e)),this._rounded=e},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,Ee("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,Ee("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base");e=e||$e;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,Ee("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,Ee("button",e)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+e+"-base")),this._fillMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"popupUID",{get:function(){return"k-timepicker-popup-"+this.bus.calendarId+"-"},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"isActive",{get:function(){return this._active},set:function(e){var t;this._active=e,this.wrapper&&(t=this.wrapper.nativeElement,e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"))},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"show",{get:function(){return this._show},set:function(e){var t=this;e&&(this.disabled||this.readonly)||(!(e||this._show&&m.hasObservers(this.close))?this.togglePopup(e):this.zone.run(function(){t.togglePopup(e)}))},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"timeSelector",{get:function(){return this.pickerService.timeSelector},enumerable:!1,configurable:!0}),N.prototype.isEmpty=function(){return!this.value&&this.input.isEmpty()},N.prototype.ngOnInit=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe(function(){return e.cdr.markForCheck()}),this.control=this.injector.get(n.NgControl,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.zone.runOutsideAngular(function(){e.bindEvents()}))},N.prototype.ngAfterViewInit=function(){this.setComponentClasses()},N.prototype.ngOnChanges=function(e){var n,i;(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.timeRangeValidateFn=this.rangeValidation?(n=this.min,i=this.max,function(e){var t;return!(n&&i&&e.value)||(t={timeRangeError:{maxValue:i,minValue:n,value:e.value}},se(e.value,n,i))?null:t}):f,this.incompleteValidator=this.incompleteDateValidation?ei():f,this.onValidatorChange()),e.format&&this.verifyFormat()},N.prototype.ngOnDestroy=function(){this.isActive=!1,this.show=!1,this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe(),this.domEvents.forEach(function(e){return e()}),this.pickerSubscriptions.unsubscribe()},N.prototype.handleKeydown=function(e){var t=e.altKey,n=e.keyCode;n===m.Keys.Escape?(this.show=!1,this.cdr.detectChanges()):t&&(n===m.Keys.ArrowUp&&(e.preventDefault(),this.show=!1,this.cdr.detectChanges()),n!==m.Keys.ArrowDown||this.show||(e.preventDefault(),this.show=!0))},N.prototype.writeValue=function(e){this.verifyValue(e),this.value=k.cloneDate(e),this.cdr.markForCheck(),!e&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(e))},N.prototype.registerOnChange=function(e){this.onControlChange=e},N.prototype.registerOnTouched=function(e){this.onControlTouched=e},N.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},N.prototype.validate=function(e){return this.timeRangeValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},N.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},N.prototype.focus=function(){this.input.focus()},N.prototype.blur=function(){(this.timeSelector||this.input).blur()},N.prototype.toggle=function(e){var t=this;this.disabled||this.readonly||this.resolvedPromise.then(function(){t._toggle(void 0===e?!t.show:e)})},Object.defineProperty(N.prototype,"isOpen",{get:function(){return this.show},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),N.prototype.handleChange=function(e){var t=this;k.isEqual(this.value,e)?(this.focusInput(),this.show=!1):(this.value=k.cloneDate(e),this.zone.run(function(){t.focusInput(),t.show=!1,t.onControlChange(k.cloneDate(e)),t.valueChange.emit(k.cloneDate(e))}))},N.prototype.handleReject=function(){this.show=!1},N.prototype.handleInputChange=function(e){e=this.input.formatSections.date?e:this.mergeTime(e);this.handleChange(e)},N.prototype.handleMousedown=function(e){e.preventDefault()},N.prototype.handleIconClick=function(e){this.disabled||this.readonly||(e.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show,this.cdr.detectChanges())},Object.defineProperty(N.prototype,"popupClasses",{get:function(){return["k-group","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!1,configurable:!0}),N.prototype.normalizeTime=function(e){return Pe(G,e)},N.prototype.mergeTime=function(e){return this.value&&e?Pe(this.value,e):e},N.prototype.togglePopup=function(e){var t=new fi;!this._show&&e?this.open.emit(t):this._show&&!e&&this.close.emit(t),t.isDefaultPrevented()||(this._toggle(e),this.toggleFocus())},N.prototype._toggle=function(e){var t,n=this;e!==this.isOpen&&(this._show=e,this.cdr.markForCheck(),t=this.wrapper.nativeElement.querySelector("input"),e?(e=this.localization.rtl?"right":"left",this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:e},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:e},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.renderer.setAttribute(t,Me,this.popupUID),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return n.show=!1})):(this.popupRef.close(),this.popupRef=null,this.renderer.removeAttribute(t,Me)))},N.prototype.focusInput=function(){this.touchEnabled||this.input.focus()},N.prototype.toggleFocus=function(){this.isActive&&(this.show?(this.timeSelector||this.cdr.detectChanges(),this.isActive&&this.timeSelector.focus()):this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())},N.prototype.verifyValue=function(e){if(h.isDevMode()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/#toc-integration-with-json for possible resolution.")},N.prototype.verifyFormat=function(){if(h.isDevMode()&&this.intl.splitDateFormat(this.format).some(function(e){return!Za.test(e.type)}))throw new Error("Provided format is not supported. Supported specifiers are T|t|H|h|m|s|S|a. See https://github.com/telerik/kendo-intl/blob/master/docs/date-formatting/index.md")},N.prototype.bindEvents=function(){var e=this.wrapper.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),de()&&(this.windowBlurSubscription=p.fromEvent(window,"blur").subscribe(this.handleWindowBlur.bind(this)))},N.prototype.handleWindowBlur=function(){this.isOpen&&(this.show=!1)},N.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,m.hasObservers(this.onFocus)&&this.zone.run(function(){e.onFocus.emit()}))},N.prototype.handleBlur=function(e){var t=this,e=e&&Y(e);e&&(this.input.containsElement(e)||this.timeSelector&&this.timeSelector.containsElement(e))||(m.hasObservers(this.onBlur)||this.show&&m.hasObservers(this.close)||H(this.control)?this.zone.run(function(){t.blurComponent(),t.cdr.markForCheck()}):this.blurComponent(),this.cdr.detectChanges())},N.prototype.blurComponent=function(){this.isActive=!1,this.show=!1,this.onControlTouched(),this.onBlur.emit()},N.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.zone.run(function(){return e.onValidatorChange()})},N.prototype.setComponentClasses=function(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,Ve("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,Ve("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,xe(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,Ee("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,Ee("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"))},N);function N(e,t,n,i,a,o,r,s,l,c,p){this.bus=e,this.zone=t,this.localization=n,this.cdr=i,this.popupService=a,this.wrapper=o,this.renderer=r,this.injector=s,this.pickerService=l,this.intl=c,this.touchEnabled=p,this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.format="t",this.placeholder=null,this.incompleteDateValidation=!1,this.cancelButton=!0,this.nowButton=!0,this.tabindex=0,this.title="",this.rangeValidation=!0,this.valueChange=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.open=new h.EventEmitter,this.close=new h.EventEmitter,this.wrapperClasses=!0,this.onControlChange=f,this.onControlTouched=f,this.onValidatorChange=f,this.resolvedPromise=Promise.resolve(null),this.timeRangeValidateFn=f,this.incompleteValidator=f,this._min=k.cloneDate(J),this._max=k.cloneDate(ee),this._popupSettings={animate:!0},this._show=!1,this._steps={},this._value=null,this._active=!1,this.domEvents=[],this._size=He,this._rounded=_e,this._fillMode=$e,A.validatePackage(Z),this.pickerSubscriptions=this.pickerService.onFocus.subscribe(this.handleFocus.bind(this)),this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.pickerSubscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)))}Ga.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ga,deps:[{token:v},{token:a.NgZone},{token:r.LocalizationService},{token:a.ChangeDetectorRef},{token:q.PopupService},{token:a.ElementRef},{token:a.Renderer2},{token:a.Injector},{token:zn},{token:s.IntlService},{token:ki,optional:!0}],target:a.ɵɵFactoryTarget.Component}),Ga.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Ga,selector:"kendo-timepicker",inputs:{disabled:"disabled",readonly:"readonly",readOnlyInput:"readOnlyInput",format:"format",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",min:"min",max:"max",incompleteDateValidation:"incompleteDateValidation",cancelButton:"cancelButton",nowButton:"nowButton",steps:"steps",popupSettings:"popupSettings",tabindex:"tabindex",tabIndex:"tabIndex",title:"title",rangeValidation:"rangeValidation",value:"value",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",onFocus:"focus",onBlur:"blur",open:"open",close:"close"},host:{properties:{"class.k-timepicker":"this.wrapperClasses","class.k-input":"this.wrapperClasses","class.k-disabled":"this.disabledClass"}},providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return Ga}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return Ga}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return Ga})},t.LocalizationService,v,{provide:t.L10N_PREFIX,useValue:"kendo.timepicker"},zn],viewQueries:[{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef},{propertyName:"popupTemplate",first:!0,predicate:["popupTemplate"],descendants:!0},{propertyName:"toggleButton",first:!0,predicate:["toggleButton"],descendants:!0,static:!0}],exportAs:["kendo-timepicker"],usesOnChanges:!0,ngImport:a,template:'\n <ng-container kendoTimePickerLocalizedMessages\n i18n-accept="kendo.timepicker.accept|The Accept button text in the timepicker component"\n accept="Set"\n\n i18n-acceptLabel="kendo.timepicker.acceptLabel|The label for the Accept button in the timepicker component"\n acceptLabel="Set time"\n\n i18n-cancel="kendo.timepicker.cancel|The Cancel button text in the timepicker component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.timepicker.cancelLabel|The label for the Cancel button in the timepicker component"\n cancelLabel="Cancel changes"\n\n i18n-now="kendo.timepicker.now|The Now button text in the timepicker component"\n now="Now"\n\n i18n-nowLabel="kendo.timepicker.nowLabel|The label for the Now button in the timepicker component"\n nowLabel="Select now"\n\n i18n-toggle="kendo.timepicker.toggle|The label for the toggle button in the timepicker component"\n toggle="Toggle time list"\n\n i18n-hour="kendo.timepicker.hour|The label for the hour part in the timepicker component"\n hour="Hour"\n\n i18n-minute="kendo.timepicker.minute|The label for the minute part in the timepicker component"\n minute="Minute"\n\n i18n-second="kendo.timepicker.second|The label for the second part in the timepicker component"\n second="Second"\n\n i18n-millisecond="kendo.timepicker.millisecond|The label for the millisecond part in the timepicker component"\n millisecond="Millisecond"\n\n i18n-dayperiod="kendo.timepicker.dayperiod|The label for the dayperiod part in the timepicker component"\n dayperiod="Dayperiod"\n >\n </ng-container>\n <kendo-dateinput\n #input\n pickerType="timepicker"\n hasPopup="dialog"\n [isPopupOpen]="show"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [role]="\'combobox\'"\n [ariaReadOnly]="readonly"\n [format]="format"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [min]="normalizeTime(min)"\n [max]="normalizeTime(max)"\n [incompleteDateValidation]="incompleteDateValidation"\n [fillMode]="fillMode"\n [rounded]="rounded"\n [size]="size"\n [steps]="steps"\n [tabindex]="!show ? tabindex : -1"\n [title]="title"\n [value]="value"\n (valueChange)="handleInputChange($event)"\n ></kendo-dateinput>\n <button\n #toggleButton\n type="button"\n tabindex="-1"\n class="k-input-button k-button k-icon-button"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n click: handleIconClick,\n mousedown: handleMousedown\n }"\n [scope]="this"\n >\n <span class="k-button-icon k-icon k-i-clock"></span>\n </button>\n <ng-template #popupTemplate>\n <kendo-timeselector\n #timeSelector\n [cancelButton]="cancelButton"\n [nowButton]="nowButton"\n [format]="format"\n [min]="min"\n [max]="max"\n [steps]="steps"\n [value]="value"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeydown,\n mousedown: handleMousedown\n }"\n [scope]="this"\n (valueChange)="handleChange($event)"\n (valueReject)="handleReject()"\n >\n <kendo-timeselector-messages\n [acceptLabel]="localization.get(\'acceptLabel\')"\n [accept]="localization.get(\'accept\')"\n [cancelLabel]="localization.get(\'cancelLabel\')"\n [cancel]="localization.get(\'cancel\')"\n [nowLabel]="localization.get(\'nowLabel\')"\n [now]="localization.get(\'now\')"\n [hour]="localization.get(\'hour\')"\n [minute]="localization.get(\'minute\')"\n [second]="localization.get(\'second\')"\n [millisecond]="localization.get(\'millisecond\')"\n [dayperiod]="localization.get(\'dayperiod\')"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </ng-template>\n <ng-container #container></ng-container>\n ',isInline:!0,components:[{type:gi,selector:"kendo-dateinput",inputs:["focusableId","pickerType","disabled","readonly","title","tabindex","role","ariaReadOnly","tabIndex","format","formatPlaceholder","placeholder","steps","max","min","rangeValidation","autoCorrect","incompleteDateValidation","twoDigitYearMax","value","spinners","isPopupOpen","hasPopup","size","rounded","fillMode"],outputs:["valueChange","valueUpdate","focus","blur"],exportAs:["kendo-dateinput"]},{type:ba,selector:"kendo-timeselector",inputs:["format","min","max","cancelButton","setButton","nowButton","disabled","steps","value"],outputs:["valueChange","valueReject"],exportAs:["kendo-timeselector"]},{type:Ya,selector:"kendo-timeselector-messages"}],directives:[{type:Wa,selector:"[kendoTimePickerLocalizedMessages]"},{type:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ga,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timepicker",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return Ga}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return Ga}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return Ga})},t.LocalizationService,v,{provide:t.L10N_PREFIX,useValue:"kendo.timepicker"},zn],selector:"kendo-timepicker",template:'\n <ng-container kendoTimePickerLocalizedMessages\n i18n-accept="kendo.timepicker.accept|The Accept button text in the timepicker component"\n accept="Set"\n\n i18n-acceptLabel="kendo.timepicker.acceptLabel|The label for the Accept button in the timepicker component"\n acceptLabel="Set time"\n\n i18n-cancel="kendo.timepicker.cancel|The Cancel button text in the timepicker component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.timepicker.cancelLabel|The label for the Cancel button in the timepicker component"\n cancelLabel="Cancel changes"\n\n i18n-now="kendo.timepicker.now|The Now button text in the timepicker component"\n now="Now"\n\n i18n-nowLabel="kendo.timepicker.nowLabel|The label for the Now button in the timepicker component"\n nowLabel="Select now"\n\n i18n-toggle="kendo.timepicker.toggle|The label for the toggle button in the timepicker component"\n toggle="Toggle time list"\n\n i18n-hour="kendo.timepicker.hour|The label for the hour part in the timepicker component"\n hour="Hour"\n\n i18n-minute="kendo.timepicker.minute|The label for the minute part in the timepicker component"\n minute="Minute"\n\n i18n-second="kendo.timepicker.second|The label for the second part in the timepicker component"\n second="Second"\n\n i18n-millisecond="kendo.timepicker.millisecond|The label for the millisecond part in the timepicker component"\n millisecond="Millisecond"\n\n i18n-dayperiod="kendo.timepicker.dayperiod|The label for the dayperiod part in the timepicker component"\n dayperiod="Dayperiod"\n >\n </ng-container>\n <kendo-dateinput\n #input\n pickerType="timepicker"\n hasPopup="dialog"\n [isPopupOpen]="show"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [role]="\'combobox\'"\n [ariaReadOnly]="readonly"\n [format]="format"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [min]="normalizeTime(min)"\n [max]="normalizeTime(max)"\n [incompleteDateValidation]="incompleteDateValidation"\n [fillMode]="fillMode"\n [rounded]="rounded"\n [size]="size"\n [steps]="steps"\n [tabindex]="!show ? tabindex : -1"\n [title]="title"\n [value]="value"\n (valueChange)="handleInputChange($event)"\n ></kendo-dateinput>\n <button\n #toggleButton\n type="button"\n tabindex="-1"\n class="k-input-button k-button k-icon-button"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n click: handleIconClick,\n mousedown: handleMousedown\n }"\n [scope]="this"\n >\n <span class="k-button-icon k-icon k-i-clock"></span>\n </button>\n <ng-template #popupTemplate>\n <kendo-timeselector\n #timeSelector\n [cancelButton]="cancelButton"\n [nowButton]="nowButton"\n [format]="format"\n [min]="min"\n [max]="max"\n [steps]="steps"\n [value]="value"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeydown,\n mousedown: handleMousedown\n }"\n [scope]="this"\n (valueChange)="handleChange($event)"\n (valueReject)="handleReject()"\n >\n <kendo-timeselector-messages\n [acceptLabel]="localization.get(\'acceptLabel\')"\n [accept]="localization.get(\'accept\')"\n [cancelLabel]="localization.get(\'cancelLabel\')"\n [cancel]="localization.get(\'cancel\')"\n [nowLabel]="localization.get(\'nowLabel\')"\n [now]="localization.get(\'now\')"\n [hour]="localization.get(\'hour\')"\n [minute]="localization.get(\'minute\')"\n [second]="localization.get(\'second\')"\n [millisecond]="localization.get(\'millisecond\')"\n [dayperiod]="localization.get(\'dayperiod\')"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </ng-template>\n <ng-container #container></ng-container>\n '}]}],ctorParameters:function(){return[{type:v},{type:a.NgZone},{type:r.LocalizationService},{type:a.ChangeDetectorRef},{type:q.PopupService},{type:a.ElementRef},{type:a.Renderer2},{type:a.Injector},{type:zn},{type:s.IntlService},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[ki]}]}]},propDecorators:{container:[{type:h.ViewChild,args:["container",{read:h.ViewContainerRef,static:!1}]}],popupTemplate:[{type:h.ViewChild,args:["popupTemplate",{static:!1}]}],toggleButton:[{type:h.ViewChild,args:["toggleButton",{static:!0}]}],disabled:[{type:h.Input}],readonly:[{type:h.Input}],readOnlyInput:[{type:h.Input}],format:[{type:h.Input}],formatPlaceholder:[{type:h.Input}],placeholder:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],incompleteDateValidation:[{type:h.Input}],cancelButton:[{type:h.Input}],nowButton:[{type:h.Input}],steps:[{type:h.Input}],popupSettings:[{type:h.Input}],tabindex:[{type:h.Input}],tabIndex:[{type:h.Input}],title:[{type:h.Input}],rangeValidation:[{type:h.Input}],value:[{type:h.Input}],size:[{type:h.Input}],rounded:[{type:h.Input}],fillMode:[{type:h.Input}],valueChange:[{type:h.Output}],onFocus:[{type:h.Output,args:["focus"]}],onBlur:[{type:h.Output,args:["blur"]}],open:[{type:h.Output}],close:[{type:h.Output}],wrapperClasses:[{type:h.HostBinding,args:["class.k-timepicker"]},{type:h.HostBinding,args:["class.k-input"]}],disabledClass:[{type:h.HostBinding,args:["class.k-disabled"]}]}});pt(Qa,Xa=t.ComponentMessages);var Xa,Mi=Qa;function Qa(){return null!==Xa&&Xa.apply(this,arguments)||this}Mi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Mi,deps:null,target:a.ɵɵFactoryTarget.Directive}),Mi.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Mi,selector:"kendo-datetimepicker-messages-base",inputs:{toggle:"toggle",dateTab:"dateTab",dateTabLabel:"dateTabLabel",timeTab:"timeTab",timeTabLabel:"timeTabLabel",accept:"accept",acceptLabel:"acceptLabel",cancel:"cancel",cancelLabel:"cancelLabel",today:"today",now:"now",nowLabel:"nowLabel",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Mi,decorators:[{type:h.Directive,args:[{selector:"kendo-datetimepicker-messages-base"}]}],propDecorators:{toggle:[{type:h.Input}],dateTab:[{type:h.Input}],dateTabLabel:[{type:h.Input}],timeTab:[{type:h.Input}],timeTabLabel:[{type:h.Input}],accept:[{type:h.Input}],acceptLabel:[{type:h.Input}],cancel:[{type:h.Input}],cancelLabel:[{type:h.Input}],today:[{type:h.Input}],now:[{type:h.Input}],nowLabel:[{type:h.Input}],prevButtonTitle:[{type:h.Input}],nextButtonTitle:[{type:h.Input}]}});pt(to,Ja=Mi);var Ja,eo=to;function to(e){var t=Ja.call(this)||this;return t.service=e,t}eo.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:eo,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),eo.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:eo,selector:"[kendoDateTimePickerLocalizedMessages]",providers:[{provide:Mi,useExisting:h.forwardRef(function(){return eo})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:eo,decorators:[{type:h.Directive,args:[{providers:[{provide:Mi,useExisting:h.forwardRef(function(){return eo})}],selector:"[kendoDateTimePickerLocalizedMessages]"}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});var no=new RegExp(D+"|"+Ni+"|"+Fi+"|"+Xn+"|literal"),io="date",ao=(Object.defineProperty(F.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"inputElement",{get:function(){return this.wrapper.nativeElement.querySelector("input")},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"calendar",{get:function(){return this.pickerService.calendar},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"timeSelector",{get:function(){return this.pickerService.timeSelector},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=k.cloneDate(e),this.setCalendarValue(e),this.cdr.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"format",{get:function(){return this._format},set:function(e){this._format=e;e=this.getDisplayFormat(e);this.timeSelectorFormat=this.getTimeSelectorFormat(e)},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this._disabledDates=e,this.disabledDatesService.initialize(e)},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"min",{get:function(){return this._min},set:function(e){o(e)&&(this._min=k.cloneDate(e),this.calendarMin=k.getDate(e))},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"max",{get:function(){return this._max},set:function(e){o(e)&&(this._max=k.cloneDate(e),this.calendarMax=Ie(e))},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"isOpen",{get:function(){return o(this.popupRef)},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"isActive",{get:function(){return this._isActive},set:function(e){e?this.renderer.addClass(this.wrapper.nativeElement,"k-focus"):this.renderer.removeClass(this.wrapper.nativeElement,"k-focus"),this._isActive=e},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"defaultTab",{get:function(){return this._defaultTab},set:function(e){this._defaultTab=e||io,this.activeTab=this.defaultTab},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,Ve("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,Ve("input",this.size));e=e||He;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,Ve("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,Ve("input",e))),this._size=e},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,xe(this.rounded));e=e||_e;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,xe(e)),this._rounded=e},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,Ee("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,Ee("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base");e=e||$e;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,Ee("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,Ee("button",e)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+e+"-base")),this._fillMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"tabSwitchTransition",{get:function(){return this.isOpen?null:"none"},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"disableCalendar",{get:function(){return"date"!==this.activeTab&&!this.calendar.isActive},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"disableTimeSelector",{get:function(){return"time"!==this.activeTab&&!this.timeSelector.isActive},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"activeTabComponent",{get:function(){if(this.isOpen)return o(this.calendar)||o(this.timeSelector)||this.cdr.detectChanges(),"date"===this.activeTab?this.calendar:this.timeSelector},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(o(e)&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"popupUID",{get:function(){var e;return null==(e=this.calendar)?void 0:e.popupId},enumerable:!1,configurable:!0}),F.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.pickerService.onFocus.pipe(B.tap(this.detectPopupChanges.bind(this))).subscribe(this.handleFocus.bind(this))),this.subscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.subscriptions.add(this.pickerService.sameDateSelected.subscribe(this.handleCalendarValueChange.bind(this))),this.subscriptions.add(this.localization.changes.subscribe(function(){return e.cdr.markForCheck()})),this.subscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this))),de()&&this.subscriptions.add(this.ngZone.runOutsideAngular(function(){return p.fromEvent(window,"blur").subscribe(e.handleCancel.bind(e))}))},F.prototype.ngAfterViewInit=function(){this.setComponentClasses()},F.prototype.ngOnChanges=function(e){(o(e.min)||o(e.max))&&this.verifyMinMaxRange(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?Vt(this.min):f,this.maxValidateFn=this.rangeValidation?xt(this.max):f,this.disabledDatesValidateFn=this.disabledDatesValidation?yi(this.disabledDatesService.isDateDisabled):f,this.incompleteValidator=this.incompleteDateValidation?ei():f,this.onValidatorChange())},F.prototype.ngOnDestroy=function(){this.isOpen&&this.closePopup(),this.subscriptions.unsubscribe()},F.prototype.focus=function(){this.disabled||(this.isOpen?this.activeTabComponent:this.input).focus()},F.prototype.blur=function(){(this.isOpen&&this.activeTabComponent.isActive?this.activeTabComponent:this.input).blur()},F.prototype.toggle=function(e){this.disabled||this.readonly||e===this.isOpen||((o(e)?e:!this.isOpen)?this.openPopup():(this.closePopup(),this.activeTab!==this.defaultTab&&(this.activeTab=this.defaultTab,this.cdr.detectChanges())))},F.prototype.writeValue=function(e){this.value=e},F.prototype.registerOnChange=function(e){this.onControlChange=e},F.prototype.registerOnTouched=function(e){this.onControlTouched=e},F.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},F.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},F.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},F.prototype.isEmpty=function(){return!o(this.value)&&this.input.isEmpty()},F.prototype.handleIconClick=function(e){var t=this;this.disabled||this.readonly||(e.preventDefault(),e=!this.isOpen||m.hasObservers(this.close),this.run(e,function(){var e=!t.isOpen;t.handleFocus(),t.togglePopup(e),t.switchFocus()}))},F.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,m.hasObservers(this.onFocus)&&this.ngZone.run(function(){return e.onFocus.emit()}))},F.prototype.handleBlur=function(e){var t=this;this.isActive&&!this.focusTargetInComponent(e)&&(this.isActive=!1,e=this.wrapper.nativeElement.classList.contains("ng-untouched")||m.hasObservers(this.onBlur)||this.isOpen&&m.hasObservers(this.close),this.run(e,function(){t.onBlur.emit(),t.onControlTouched(),t.togglePopup(!1),t.cdr.markForCheck()}))},F.prototype.changeActiveTab=function(e){this.isOpen&&this.activeTab!==e&&(k.isEqual(this.timeSelector.value,this.timeSelector.current)||this.timeSelector.handleAccept(),this.activeTab=e,this.cdr.detectChanges(),this.detectPopupChanges())},F.prototype.handleTabChangeTransitionEnd=function(e,t){t.target===e&&("time"===this.activeTab&&this.renderer.removeAttribute(this.inputElement,Oe),this.activeTabComponent.focus())},F.prototype.handleAccept=function(){var e,t,n=this;this.isOpen&&(e=Te(this.calendar.value,this.timeSelector.current),t=!k.isEqual(this.value,e)||m.hasObservers(this.close),this.run(t,function(){n.handleValueChange(e),n.togglePopup(!1)}))},F.prototype.handleCancel=function(){var e,t=this;this.isOpen&&(e=m.hasObservers(this.close),this.run(e,function(){return t.togglePopup(!1)}))},F.prototype.handleInputValueChange=function(e){this.handleValueChange(e),this.isOpen&&this.togglePopup(!1)},F.prototype.handleCalendarValueChange=function(){this.setTimeSelectorMinMax(this.calendar.value),this.changeActiveTab("time")},F.prototype.handleKeyDown=function(e){var t=this;if(!this.disabled&&!this.readonly){var n=e.keyCode,i=e.altKey;switch(n){case i&&m.Keys.ArrowUp:case m.Keys.Escape:this.handleCancel();break;case!this.isOpen&&i&&m.Keys.ArrowDown:this.ngZone.run(function(){return t.togglePopup(!0)});break;case i&&m.Keys.ArrowRight:this.changeActiveTab("time");break;case i&&m.Keys.ArrowLeft:this.changeActiveTab("date");break;case this.isOpen&&this.timeSelector.isActive&&o(this.calendarValue)&&m.Keys.Enter:this.handleAccept();break;default:return}e.preventDefault()}},F.prototype.handleTabOut=function(e){var t=e.keyCode,n=e.shiftKey,e=e.target,e=o(e.nextElementSibling)&&!e.nextElementSibling.disabled;t!==m.Keys.Tab||n||e||(this.input.focus(),this.handleCancel())},F.prototype.handleBackTabOut=function(e){var t=e.keyCode,e=e.shiftKey;t===m.Keys.Tab&&e&&this.input.focus()},F.prototype.popupButtonsClasses=function(e){return(this.size?Ve("button",this.size):"")+" "+(this.rounded?xe(this.rounded):"")+" "+(this.fillMode?"k-button-"+this.fillMode+" k-button-"+this.fillMode+"-"+(e||"base"):"")},F.prototype.preventMouseDown=function(e){e.preventDefault()},F.prototype.verifyValue=function(e){if(h.isDevMode()&&o(e)&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/integration-with-json/ for possible resolution.")},F.prototype.verifyMinMaxRange=function(){if(h.isDevMode()&&!le(this.min,this.max))throw new Error("The max value should be bigger than the min. See https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/date-time-limits/.")},F.prototype.getTimeSelectorFormat=function(e){return this.intl.splitDateFormat(e).filter(this.timeFormatPartFilter).reduce(function(e,t){return e+t.pattern},"")||"t"},F.prototype.getDisplayFormat=function(e){return e?"string"==typeof e?e:e.displayFormat:"g"},F.prototype.timeFormatPartFilter=function(e,t,n){n=1<=t&&n[t-1];return n&&"literal"===e.type?no.test(n.type):no.test(e.type)},F.prototype.togglePopup=function(e){var t;e===this.isOpen||(t=new fi,(e?this.open:this.close).emit(t),t.isDefaultPrevented())||(this.toggle(e),this.switchFocus())},F.prototype.switchFocus=function(){this.isActive&&(this.isOpen?this.activeTabComponent.focus():this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())},F.prototype.openPopup=function(){var t=this,e=(this.setCalendarValue(this.value),this.setTimeSelectorMinMax(this.value),this.localization.rtl?"right":"left");this.popupRef=this.popupService.open({anchor:this.wrapper,content:this.popupTemplate,positionMode:"absolute",animate:this.popupSettings.animate,appendTo:this.appendTo,popupClass:"k-datetime-container "+(this.popupSettings.popupClass||""),anchorAlign:{vertical:"bottom",horizontal:e},popupAlign:{vertical:"top",horizontal:e}}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.renderer.setAttribute(this.inputElement,Me,this.popupUID),"date"===this.activeTab&&("infinite"===this.calendar.type?this.subscriptions.add(this.calendar.monthView.focusedCellChange.subscribe(function(e){t.renderer.setAttribute(t.inputElement,Oe,e)})):this.subscriptions.add(this.calendar.multiViewCalendar.viewList.focusedCellChange.subscribe(function(e){t.renderer.setAttribute(t.inputElement,Oe,e)}))),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return t.handleCancel()})},F.prototype.closePopup=function(){this.isOpen&&(this.renderer.removeAttribute(this.inputElement,Me),this.renderer.removeAttribute(this.inputElement,Oe),this.popupRef.close(),this.popupRef=null)},F.prototype.handleValueChange=function(e){k.isEqual(this.value,e)||(this.value=k.cloneDate(e),this.onControlChange(k.cloneDate(e)),this.valueChange.emit(k.cloneDate(e)))},F.prototype.focusTargetInComponent=function(e){var t;return!!o(e)&&(e=e.relatedTarget||document.activeElement,t=o(this.popupRef)&&this.popupRef.popupElement.contains(e),e=this.wrapper.nativeElement.contains(e),t||e)},F.prototype.setTimeSelectorMinMax=function(e){var t=o(e)&&k.isEqual(k.getDate(e),k.getDate(this.min)),t=(this.timeSelectorMin=k.cloneDate(t?this.min:J),o(e)&&k.isEqual(k.getDate(e),k.getDate(this.max)));this.timeSelectorMax=k.cloneDate(t?this.max:ee)},F.prototype.setCalendarValue=function(e){var t=o(e)&&re(e,this.calendarMin,this.calendarMax);this.calendarValue=t?k.getDate(e):null},F.prototype.detectPopupChanges=function(){this.isOpen&&this.popupRef.popup.changeDetectorRef.detectChanges()},F.prototype.run=function(e,t){e?this.ngZone.run(function(){return t()}):t()},F.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.ngZone.run(function(){return e.onValidatorChange()})},F.prototype.setComponentClasses=function(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,Ve("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,Ve("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,xe(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,Ee("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,Ee("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"))},F);function F(e,t,n,i,a,o,r,s,l,c){this.popupService=e,this.intl=t,this.cdr=n,this.pickerService=i,this.ngZone=a,this.wrapper=o,this.touchEnabled=r,this.localization=s,this.disabledDatesService=l,this.renderer=c,this.hostClasses=!0,this.twoDigitYearMax=68,this.title="",this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.cancelButton=!0,this.steps={},this.calendarType="infinite",this.animateCalendarNavigation=!1,this.weekNumber=!1,this.rangeValidation=!0,this.disabledDatesValidation=!0,this.incompleteDateValidation=!1,this.valueChange=new h.EventEmitter,this.open=new h.EventEmitter,this.close=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.activeTab=io,this.timeSelectorFormat="t",this.timeSelectorMin=k.cloneDate(J),this.timeSelectorMax=k.cloneDate(ee),this.calendarValue=null,this.calendarMin=k.cloneDate(X),this.calendarMax=Ie(Q),this._popupSettings={animate:!0},this._value=null,this._format="g",this._tabindex=0,this._defaultTab=io,this._min=Te(X,J),this._max=Te(Q,ee),this._isActive=!1,this.onControlTouched=f,this.onControlChange=f,this.onValidatorChange=f,this.minValidateFn=f,this.maxValidateFn=f,this.disabledDatesValidateFn=f,this.incompleteValidator=f,this.subscriptions=new p.Subscription,this._size=He,this._rounded=_e,this._fillMode=$e,A.validatePackage(Z)}ao.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ao,deps:[{token:q.PopupService},{token:s.IntlService},{token:a.ChangeDetectorRef},{token:zn},{token:a.NgZone},{token:a.ElementRef},{token:ki},{token:r.LocalizationService},{token:b},{token:a.Renderer2}],target:a.ɵɵFactoryTarget.Component}),ao.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:ao,selector:"kendo-datetimepicker",inputs:{value:"value",format:"format",twoDigitYearMax:"twoDigitYearMax",tabindex:"tabindex",disabledDates:"disabledDates",popupSettings:"popupSettings",title:"title",disabled:"disabled",readonly:"readonly",readOnlyInput:"readOnlyInput",cancelButton:"cancelButton",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",steps:"steps",focusedDate:"focusedDate",calendarType:"calendarType",animateCalendarNavigation:"animateCalendarNavigation",weekNumber:"weekNumber",min:"min",max:"max",rangeValidation:"rangeValidation",disabledDatesValidation:"disabledDatesValidation",incompleteDateValidation:"incompleteDateValidation",defaultTab:"defaultTab",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",open:"open",close:"close",onFocus:"focus",onBlur:"blur"},host:{properties:{"class.k-datetimepicker":"this.hostClasses","class.k-input":"this.hostClasses","class.k-disabled":"this.disabledClass"}},providers:[zn,t.LocalizationService,b,{provide:t.L10N_PREFIX,useValue:"kendo.datetimepicker"},{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return ao}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return ao}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return ao})}],queries:[{propertyName:"cellTemplate",first:!0,predicate:Rt,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Ot,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:Mt,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:Nt,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:Ft,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:Pt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:At,descendants:!0}],viewQueries:[{propertyName:"toggleButton",first:!0,predicate:["toggleButton"],descendants:!0,static:!0},{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef,static:!0},{propertyName:"popupTemplate",first:!0,predicate:["popupTemplate"],descendants:!0,read:h.TemplateRef,static:!0}],exportAs:["kendo-datetimepicker"],usesOnChanges:!0,ngImport:a,template:'\n <ng-container\n kendoDateTimePickerLocalizedMessages\n\n i18n-dateTab="kendo.datetimepicker.dateTab|The Date tab text in the datetimepicker popup header"\n dateTab="Date"\n\n i18n-dateTabLabel="kendo.datetimepicker.dateTabLabel|The label for the Date tab in the datetimepicker popup header"\n dateTabLabel="Date tab"\n\n i18n-timeTab="kendo.datetimepicker.timeTab|The Time tab text in the datetimepicker popup header"\n timeTab="Time"\n\n i18n-timeTabLabel="kendo.datetimepicker.timeTabLabel|The label for the Time tab in the datetimepicker popup header"\n timeTabLabel="Time tab"\n\n i18n-toggle="kendo.datetimepicker.toggle|The title of the toggle button in the datetimepicker component"\n toggle="Toggle popup"\n\n i18n-accept="kendo.datetimepicker.accept|The Accept button text in the datetimepicker component"\n accept="Set"\n\n i18n-acceptLabel="kendo.datetimepicker.acceptLabel|The label for the Accept button in the datetimepicker component"\n acceptLabel="Set"\n\n i18n-cancel="kendo.datetimepicker.cancel|The Cancel button text in the datetimepicker component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.datetimepicker.cancelLabel|The label for the Cancel button in the datetimepicker component"\n cancelLabel="Cancel"\n\n i18n-now="kendo.datetimepicker.now|The Now button text in the timepicker component"\n now="NOW"\n\n i18n-nowLabel="kendo.datetimepicker.nowLabel|The label for the Now button in the timepicker component"\n nowLabel="Select now"\n\n i18n-today="kendo.datetimepicker.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.datetimepicker.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.datetimepicker.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n\n <kendo-dateinput\n [value]="value"\n [format]="format"\n [twoDigitYearMax]="twoDigitYearMax"\n [min]="min"\n [max]="max"\n [incompleteDateValidation]="incompleteDateValidation"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [role]="\'combobox\'"\n [ariaReadOnly]="readonly"\n [steps]="steps"\n [tabindex]="tabindex"\n [title]="title"\n pickerType="datetimepicker"\n hasPopup="grid"\n [isPopupOpen]="isOpen"\n (valueChange)="handleInputValueChange($event)"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeyDown\n }"\n [scope]="this"\n [fillMode]="fillMode"\n [rounded]="rounded"\n [size]="size"\n >\n </kendo-dateinput>\n <button\n #toggleButton\n type="button"\n class="k-input-button k-button k-icon-button"\n [tabindex]="-1"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n mousedown: preventMouseDown,\n click: handleIconClick\n }"\n [scope]="this"\n >\n <span class="k-button-icon k-icon"\n [ngClass]="{\n \'k-i-calendar\': activeTab === \'date\',\n \'k-i-clock\': activeTab === \'time\'\n }"\n ></span>\n </button>\n\n <ng-container #container></ng-container>\n\n <ng-template #popupTemplate>\n <div\n class="k-datetime-wrap k-{{activeTab}}-tab"\n [kendoEventsOutsideAngular]="{\n mousedown: preventMouseDown,\n keydown: handleKeyDown\n }"\n [scope]="this"\n >\n <div class="k-datetime-buttongroup"\n [kendoEventsOutsideAngular]="{\n focusin: handleFocus,\n focusout: handleBlur\n }"\n [scope]="this"\n >\n <div class="k-button-group k-button-group-stretched" role="group">\n <button\n type="button"\n class="k-button k-group-start k-date-tab"\n [ngClass]="popupButtonsClasses()"\n [class.k-active]="activeTab === \'date\'"\n [attr.aria-pressed]="activeTab === \'date\' ? \'true\' : \'false\'"\n [attr.title]="localization.get(\'dateTabLabel\')"\n [attr.aria-label]="localization.get(\'dateTabLabel\')"\n [kendoEventsOutsideAngular]="{\n click: changeActiveTab.bind(this, \'date\'),\n keydown: handleBackTabOut\n }"\n [scope]="this"\n >\n {{localization.get(\'dateTab\')}}\n </button>\n <button\n type="button"\n class="k-button k-group-end k-time-tab"\n [ngClass]="popupButtonsClasses()"\n [class.k-active]="activeTab === \'time\'"\n [attr.aria-pressed]="activeTab === \'time\' ? \'true\' : \'false\'"\n [attr.title]="localization.get(\'timeTabLabel\')"\n [attr.aria-label]="localization.get(\'timeTabLabel\')"\n [kendoEventsOutsideAngular]="{\n click: changeActiveTab.bind(this, \'time\')\n }"\n >\n {{localization.get(\'timeTab\')}}\n </button>\n </div>\n </div>\n <div\n #dateTimeSelector\n class="k-datetime-selector"\n [style.transition]="tabSwitchTransition"\n [kendoEventsOutsideAngular]="{\n transitionend: handleTabChangeTransitionEnd.bind(this, dateTimeSelector)\n }"\n >\n <div class="k-datetime-calendar-wrap">\n <kendo-calendar\n [focusedDate]="focusedDate"\n [(value)]="calendarValue"\n [type]="calendarType"\n [min]="calendarMin"\n [max]="calendarMax"\n [weekNumber]="weekNumber"\n [navigation]="false"\n [animateNavigation]="animateCalendarNavigation"\n [cellTemplate]="cellTemplate"\n [monthCellTemplate]="monthCellTemplate"\n [yearCellTemplate]="yearCellTemplate"\n [decadeCellTemplate]="decadeCellTemplate"\n [centuryCellTemplate]="centuryCellTemplate"\n [weekNumberTemplate]="weekNumberTemplate"\n [headerTitleTemplate]="headerTitleTemplate"\n [disabled]="disableCalendar"\n [disabledDates]="disabledDates"\n (valueChange)="handleCalendarValueChange()"\n >\n <kendo-calendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-calendar-messages>\n </kendo-calendar>\n </div>\n <div class="k-datetime-time-wrap">\n <kendo-timeselector\n [value]="value"\n [format]="timeSelectorFormat"\n [min]="timeSelectorMin"\n [max]="timeSelectorMax"\n [setButton]="false"\n [cancelButton]="false"\n [steps]="steps"\n [disabled]="disableTimeSelector"\n >\n <kendo-timeselector-messages\n [now]="localization.get(\'now\')"\n [nowLabel]="localization.get(\'nowLabel\')"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </div>\n </div>\n <div\n class="k-datetime-footer k-action-buttons k-actions k-hstack k-justify-content-stretch"\n [kendoEventsOutsideAngular]="{\n keydown: handleTabOut,\n focusin: handleFocus,\n focusout: handleBlur\n }"\n [scope]="this"\n >\n <button\n *ngIf="cancelButton"\n type="button"\n class="k-button k-time-cancel"\n [ngClass]="popupButtonsClasses()"\n [attr.title]="localization.get(\'cancelLabel\')"\n [attr.aria-label]="localization.get(\'cancelLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleCancel\n }"\n [scope]="this"\n >\n {{localization.get(\'cancel\')}}\n </button>\n <button\n type="button"\n class="k-button k-time-accept"\n [ngClass]="popupButtonsClasses(\'primary\')"\n [attr.title]="localization.get(\'acceptLabel\')"\n [attr.aria-label]="localization.get(\'acceptLabel\')"\n [disabled]="!calendarValue"\n [kendoEventsOutsideAngular]="{\n click: handleAccept\n }"\n [scope]="this"\n >\n {{localization.get(\'accept\')}}\n </button>\n </div>\n </div>\n </ng-template>\n ',isInline:!0,components:[{type:gi,selector:"kendo-dateinput",inputs:["focusableId","pickerType","disabled","readonly","title","tabindex","role","ariaReadOnly","tabIndex","format","formatPlaceholder","placeholder","steps","max","min","rangeValidation","autoCorrect","incompleteDateValidation","twoDigitYearMax","value","spinners","isPopupOpen","hasPopup","size","rounded","fillMode"],outputs:["valueChange","valueUpdate","focus","blur"],exportAs:["kendo-dateinput"]},{type:Jn,selector:"kendo-calendar",inputs:["id","focusedDate","min","max","rangeValidation","selection","value","disabled","tabindex","tabIndex","disabledDates","navigation","activeView","bottomView","topView","type","animateNavigation","weekNumber","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","weekNumberTemplate","headerTitleTemplate","navigationItemTemplate"],outputs:["activeViewChange","navigate","activeViewDateChange","blur","focus","valueChange"],exportAs:["kendo-calendar"]},{type:Ci,selector:"kendo-calendar-messages"},{type:ba,selector:"kendo-timeselector",inputs:["format","min","max","cancelButton","setButton","nowButton","disabled","steps","value"],outputs:["valueChange","valueReject"],exportAs:["kendo-timeselector"]},{type:Ya,selector:"kendo-timeselector-messages"}],directives:[{type:eo,selector:"[kendoDateTimePickerLocalizedMessages]"},{type:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:c.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ao,decorators:[{type:h.Component,args:[{selector:"kendo-datetimepicker",exportAs:"kendo-datetimepicker",changeDetection:h.ChangeDetectionStrategy.OnPush,providers:[zn,t.LocalizationService,b,{provide:t.L10N_PREFIX,useValue:"kendo.datetimepicker"},{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return ao}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return ao}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return ao})}],template:'\n <ng-container\n kendoDateTimePickerLocalizedMessages\n\n i18n-dateTab="kendo.datetimepicker.dateTab|The Date tab text in the datetimepicker popup header"\n dateTab="Date"\n\n i18n-dateTabLabel="kendo.datetimepicker.dateTabLabel|The label for the Date tab in the datetimepicker popup header"\n dateTabLabel="Date tab"\n\n i18n-timeTab="kendo.datetimepicker.timeTab|The Time tab text in the datetimepicker popup header"\n timeTab="Time"\n\n i18n-timeTabLabel="kendo.datetimepicker.timeTabLabel|The label for the Time tab in the datetimepicker popup header"\n timeTabLabel="Time tab"\n\n i18n-toggle="kendo.datetimepicker.toggle|The title of the toggle button in the datetimepicker component"\n toggle="Toggle popup"\n\n i18n-accept="kendo.datetimepicker.accept|The Accept button text in the datetimepicker component"\n accept="Set"\n\n i18n-acceptLabel="kendo.datetimepicker.acceptLabel|The label for the Accept button in the datetimepicker component"\n acceptLabel="Set"\n\n i18n-cancel="kendo.datetimepicker.cancel|The Cancel button text in the datetimepicker component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.datetimepicker.cancelLabel|The label for the Cancel button in the datetimepicker component"\n cancelLabel="Cancel"\n\n i18n-now="kendo.datetimepicker.now|The Now button text in the timepicker component"\n now="NOW"\n\n i18n-nowLabel="kendo.datetimepicker.nowLabel|The label for the Now button in the timepicker component"\n nowLabel="Select now"\n\n i18n-today="kendo.datetimepicker.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.datetimepicker.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.datetimepicker.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n\n <kendo-dateinput\n [value]="value"\n [format]="format"\n [twoDigitYearMax]="twoDigitYearMax"\n [min]="min"\n [max]="max"\n [incompleteDateValidation]="incompleteDateValidation"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [role]="\'combobox\'"\n [ariaReadOnly]="readonly"\n [steps]="steps"\n [tabindex]="tabindex"\n [title]="title"\n pickerType="datetimepicker"\n hasPopup="grid"\n [isPopupOpen]="isOpen"\n (valueChange)="handleInputValueChange($event)"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeyDown\n }"\n [scope]="this"\n [fillMode]="fillMode"\n [rounded]="rounded"\n [size]="size"\n >\n </kendo-dateinput>\n <button\n #toggleButton\n type="button"\n class="k-input-button k-button k-icon-button"\n [tabindex]="-1"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n mousedown: preventMouseDown,\n click: handleIconClick\n }"\n [scope]="this"\n >\n <span class="k-button-icon k-icon"\n [ngClass]="{\n \'k-i-calendar\': activeTab === \'date\',\n \'k-i-clock\': activeTab === \'time\'\n }"\n ></span>\n </button>\n\n <ng-container #container></ng-container>\n\n <ng-template #popupTemplate>\n <div\n class="k-datetime-wrap k-{{activeTab}}-tab"\n [kendoEventsOutsideAngular]="{\n mousedown: preventMouseDown,\n keydown: handleKeyDown\n }"\n [scope]="this"\n >\n <div class="k-datetime-buttongroup"\n [kendoEventsOutsideAngular]="{\n focusin: handleFocus,\n focusout: handleBlur\n }"\n [scope]="this"\n >\n <div class="k-button-group k-button-group-stretched" role="group">\n <button\n type="button"\n class="k-button k-group-start k-date-tab"\n [ngClass]="popupButtonsClasses()"\n [class.k-active]="activeTab === \'date\'"\n [attr.aria-pressed]="activeTab === \'date\' ? \'true\' : \'false\'"\n [attr.title]="localization.get(\'dateTabLabel\')"\n [attr.aria-label]="localization.get(\'dateTabLabel\')"\n [kendoEventsOutsideAngular]="{\n click: changeActiveTab.bind(this, \'date\'),\n keydown: handleBackTabOut\n }"\n [scope]="this"\n >\n {{localization.get(\'dateTab\')}}\n </button>\n <button\n type="button"\n class="k-button k-group-end k-time-tab"\n [ngClass]="popupButtonsClasses()"\n [class.k-active]="activeTab === \'time\'"\n [attr.aria-pressed]="activeTab === \'time\' ? \'true\' : \'false\'"\n [attr.title]="localization.get(\'timeTabLabel\')"\n [attr.aria-label]="localization.get(\'timeTabLabel\')"\n [kendoEventsOutsideAngular]="{\n click: changeActiveTab.bind(this, \'time\')\n }"\n >\n {{localization.get(\'timeTab\')}}\n </button>\n </div>\n </div>\n <div\n #dateTimeSelector\n class="k-datetime-selector"\n [style.transition]="tabSwitchTransition"\n [kendoEventsOutsideAngular]="{\n transitionend: handleTabChangeTransitionEnd.bind(this, dateTimeSelector)\n }"\n >\n <div class="k-datetime-calendar-wrap">\n <kendo-calendar\n [focusedDate]="focusedDate"\n [(value)]="calendarValue"\n [type]="calendarType"\n [min]="calendarMin"\n [max]="calendarMax"\n [weekNumber]="weekNumber"\n [navigation]="false"\n [animateNavigation]="animateCalendarNavigation"\n [cellTemplate]="cellTemplate"\n [monthCellTemplate]="monthCellTemplate"\n [yearCellTemplate]="yearCellTemplate"\n [decadeCellTemplate]="decadeCellTemplate"\n [centuryCellTemplate]="centuryCellTemplate"\n [weekNumberTemplate]="weekNumberTemplate"\n [headerTitleTemplate]="headerTitleTemplate"\n [disabled]="disableCalendar"\n [disabledDates]="disabledDates"\n (valueChange)="handleCalendarValueChange()"\n >\n <kendo-calendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-calendar-messages>\n </kendo-calendar>\n </div>\n <div class="k-datetime-time-wrap">\n <kendo-timeselector\n [value]="value"\n [format]="timeSelectorFormat"\n [min]="timeSelectorMin"\n [max]="timeSelectorMax"\n [setButton]="false"\n [cancelButton]="false"\n [steps]="steps"\n [disabled]="disableTimeSelector"\n >\n <kendo-timeselector-messages\n [now]="localization.get(\'now\')"\n [nowLabel]="localization.get(\'nowLabel\')"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </div>\n </div>\n <div\n class="k-datetime-footer k-action-buttons k-actions k-hstack k-justify-content-stretch"\n [kendoEventsOutsideAngular]="{\n keydown: handleTabOut,\n focusin: handleFocus,\n focusout: handleBlur\n }"\n [scope]="this"\n >\n <button\n *ngIf="cancelButton"\n type="button"\n class="k-button k-time-cancel"\n [ngClass]="popupButtonsClasses()"\n [attr.title]="localization.get(\'cancelLabel\')"\n [attr.aria-label]="localization.get(\'cancelLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleCancel\n }"\n [scope]="this"\n >\n {{localization.get(\'cancel\')}}\n </button>\n <button\n type="button"\n class="k-button k-time-accept"\n [ngClass]="popupButtonsClasses(\'primary\')"\n [attr.title]="localization.get(\'acceptLabel\')"\n [attr.aria-label]="localization.get(\'acceptLabel\')"\n [disabled]="!calendarValue"\n [kendoEventsOutsideAngular]="{\n click: handleAccept\n }"\n [scope]="this"\n >\n {{localization.get(\'accept\')}}\n </button>\n </div>\n </div>\n </ng-template>\n '}]}],ctorParameters:function(){return[{type:q.PopupService},{type:s.IntlService},{type:a.ChangeDetectorRef},{type:zn},{type:a.NgZone},{type:a.ElementRef},{type:void 0,decorators:[{type:h.Inject,args:[ki]}]},{type:r.LocalizationService},{type:b},{type:a.Renderer2}]},propDecorators:{hostClasses:[{type:h.HostBinding,args:["class.k-datetimepicker"]},{type:h.HostBinding,args:["class.k-input"]}],disabledClass:[{type:h.HostBinding,args:["class.k-disabled"]}],toggleButton:[{type:h.ViewChild,args:["toggleButton",{static:!0}]}],value:[{type:h.Input}],format:[{type:h.Input}],twoDigitYearMax:[{type:h.Input}],tabindex:[{type:h.Input}],disabledDates:[{type:h.Input}],popupSettings:[{type:h.Input}],title:[{type:h.Input}],disabled:[{type:h.Input}],readonly:[{type:h.Input}],readOnlyInput:[{type:h.Input}],cancelButton:[{type:h.Input}],formatPlaceholder:[{type:h.Input}],placeholder:[{type:h.Input}],steps:[{type:h.Input}],focusedDate:[{type:h.Input}],calendarType:[{type:h.Input}],animateCalendarNavigation:[{type:h.Input}],weekNumber:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],rangeValidation:[{type:h.Input}],disabledDatesValidation:[{type:h.Input}],incompleteDateValidation:[{type:h.Input}],valueChange:[{type:h.Output}],open:[{type:h.Output}],close:[{type:h.Output}],onFocus:[{type:h.Output,args:["focus"]}],onBlur:[{type:h.Output,args:["blur"]}],defaultTab:[{type:h.Input}],size:[{type:h.Input}],rounded:[{type:h.Input}],fillMode:[{type:h.Input}],cellTemplate:[{type:h.ContentChild,args:[Rt,{static:!1}]}],monthCellTemplate:[{type:h.ContentChild,args:[Ot,{static:!1}]}],yearCellTemplate:[{type:h.ContentChild,args:[Mt,{static:!1}]}],decadeCellTemplate:[{type:h.ContentChild,args:[Nt,{static:!1}]}],centuryCellTemplate:[{type:h.ContentChild,args:[Ft,{static:!1}]}],weekNumberTemplate:[{type:h.ContentChild,args:[Pt,{static:!1}]}],headerTitleTemplate:[{type:h.ContentChild,args:[At,{static:!1}]}],container:[{type:h.ViewChild,args:["container",{read:h.ViewContainerRef,static:!0}]}],popupTemplate:[{type:h.ViewChild,args:["popupTemplate",{read:h.TemplateRef,static:!0}]}]}});function oo(e){return e&&e.isActive||!1}var D=function(e){this.templateRef=e},ro=(D.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:D,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),D.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:D,selector:"[kendoDateRangePopupTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:D,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangePopupTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),Object.defineProperty(so.prototype,"activeRangeEnd",{get:function(){return this.activeRangeEnd$.value},enumerable:!1,configurable:!0}),Object.defineProperty(so.prototype,"focusedDate",{get:function(){return this.focusedDate$.value},enumerable:!1,configurable:!0}),Object.defineProperty(so.prototype,"min",{get:function(){return(this.startInput$.value||{}).min||null},enumerable:!1,configurable:!0}),Object.defineProperty(so.prototype,"max",{get:function(){return(this.endInput$.value||{}).max||null},enumerable:!1,configurable:!0}),Object.defineProperty(so.prototype,"selectionRange",{get:function(){return this.range$.value},enumerable:!1,configurable:!0}),Object.defineProperty(so.prototype,"inputStartElement",{get:function(){return this.startInput$.value.dateInput.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(so.prototype,"inputEndElement",{get:function(){return this.endInput$.value.dateInput.nativeElement},enumerable:!1,configurable:!0}),so.prototype.activatePopup=function(){var e=this.dateRangePopup$.value;e&&(this.startInput$.value&&(this.renderer.setAttribute(this.inputStartElement,Me,e.popupUID),this.renderer.setAttribute(this.inputStartElement,Ne,"true"),this.renderer.setAttribute(this.inputEndElement,Me,e.popupUID),this.renderer.setAttribute(this.inputEndElement,Ne,"true")),e.activate())},so.prototype.deactivatePopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&(this.startInput$.value&&(this.renderer.removeAttribute(this.inputStartElement,Me),this.renderer.setAttribute(this.inputStartElement,Ne,"false"),this.renderer.removeAttribute(this.inputStartElement,Oe),this.renderer.removeAttribute(this.inputEndElement,Me),this.renderer.setAttribute(this.inputEndElement,Ne,"false"),this.renderer.removeAttribute(this.inputEndElement,Oe)),e.show=!1)},so.prototype.setActiveDescendent=function(e){this.renderer.setAttribute(this.inputStartElement,Oe,e),this.renderer.setAttribute(this.inputEndElement,Oe,e)},so.prototype.cancelPopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&e.cancelPopup()},so.prototype.destroy=function(){this.activeRangeEnd$.complete(),this.dateRangePopup$.complete(),this.focusedDate$.complete(),this.endInput$.complete(),this.startInput$.complete(),this.range$.complete()},so.prototype.hasActiveComponent=function(){var e=this.dateRangePopup$.value,t=oo(e),n=oo(this.startInput$.value),i=oo(this.endInput$.value);return t||n||i||(t=e)&&t.hasActiveContent()||!1},so.prototype.registerStartInput=function(e){this.startInput$.next(e)},so.prototype.registerEndInput=function(e){this.endInput$.next(e)},so.prototype.registerPopup=function(e){this.dateRangePopup$.next(e)},so.prototype.setActiveRangeEnd=function(e){e&&this.activeRangeEnd!==e&&this.activeRangeEnd$.next(e)},so.prototype.setFocusedDate=function(e){k.isEqual(this.focusedDate$.value,e)||this.focusedDate$.next(e)},so.prototype.setRange=function(e){this.range$.next(e=void 0===e?te:e)},so);function so(e){this.renderer=e,this.activeRangeEnd$=new p.BehaviorSubject(null),this.focusedDate$=new p.BehaviorSubject(null),this.endInput$=new p.BehaviorSubject(null),this.startInput$=new p.BehaviorSubject(null),this.dateRangePopup$=new p.BehaviorSubject(null),this.range$=new p.BehaviorSubject(te)}ro.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ro,deps:[{token:a.Renderer2,optional:!0}],target:a.ɵɵFactoryTarget.Injectable}),ro.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ro}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ro,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:a.Renderer2,decorators:[{type:h.Optional}]}]}});Object.defineProperty(lo.prototype,"selectionRange",{get:function(){return this.calendar?this.calendar.selectionRange:null},set:function(e){this.isEqualCalendarRange(e)||this.setSelectionRange(e),Ce(this.dateRangeService.selectionRange,e)||this.dateRangeService.setRange(e),this.updateFocusedDate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(lo.prototype,"activeRangeEnd",{get:function(){return this.calendar.activeRangeEnd},set:function(e){this.dateRangeService.activeRangeEnd!==e&&(this.calendar.activeRangeEnd=e,this.dateRangeService.setActiveRangeEnd(e))},enumerable:!1,configurable:!0}),Object.defineProperty(lo.prototype,"calendarRange",{get:function(){return this.selectionRange||te},enumerable:!1,configurable:!0}),lo.prototype.ngOnInit=function(){var t=this,n=this.calendar,e=this.dateRangeService;n.min=be(e.min,n.min),n.max=be(e.max,n.max),this.addSubscriptions(n.cellEnter.subscribe(function(e){return t.handleHover(e)}),n.valueChange.subscribe(function(e){return t.handleChange(e)}),e.focusedDate$.subscribe(function(e){k.isEqual(n.focusedDate,e)||(n.focusedDate=e)}),e.activeRangeEnd$.subscribe(function(e){n.activeRangeEnd!==e&&(n.activeRangeEnd=e,t.activeRangeEndChange.emit(e),t.cdr.markForCheck())}),e.range$.subscribe(function(e){t.isEqualCalendarRange(e)||t.acceptAndEmit(e),t.updateFocusedDate(e)}),p.fromEvent(this.element.nativeElement,"blur").subscribe(function(){return t.handleBlur()}))},lo.prototype.ngOnDestroy=function(){this.calendarSubscriptions.unsubscribe()},lo.prototype.addSubscriptions=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];e.map(function(e){return t.calendarSubscriptions.add(e)})},lo.prototype.isEqualCalendarRange=function(e){return Ce(this.calendar.selectionRange,e)},lo.prototype.handleBlur=function(){var e=this.calendarRange,t=e.start,e=e.end;"blur"===this.autoCorrectOn&&null!==t&&null!==e&&e<t&&this.dateRangeService.setRange(ke(t))},lo.prototype.handleChange=function(e){var t=this.dateRangeService,n="change"===this.autoCorrectOn&&this.shouldAutoCorrect(e),i="end"!==this.calendar.activeRangeEnd||n?"end":"start",n=n?ke(e):this.updateRange(e);Ce(t.selectionRange,n)||(this.acceptAndEmit(n),t.setActiveRangeEnd(i),t.setRange(n))},lo.prototype.handleHover=function(e){var t,n,i;!this.hasCompleteRange()&&(t=(n=this.calendarRange).start,n=n.end,i=this.calendar.activeRangeEnd,t&&"end"===i||n&&"start"===i)&&this.setSelectionRange(this.updateRange(e))},lo.prototype.hasCompleteRange=function(){var e=this.dateRangeService.selectionRange||te,t=e.start,e=e.end;return Boolean(t)&&Boolean(e)},lo.prototype.shouldAutoCorrect=function(e){var t=this.calendarRange,n=t.end,t=t.start;return"end"!==this.calendar.activeRangeEnd?null!==n&&n<e:null!==t&&e<t},lo.prototype.updateFocusedDate=function(e){e&&!this.dateRangeService.focusedDate&&this.dateRangeService.setFocusedDate(e.start||e.end)},lo.prototype.updateRange=function(e){var t=this.calendarRange,n=t.end,t=t.start;return"end"!==this.calendar.activeRangeEnd?{start:e,end:n}:{start:t,end:e}},lo.prototype.setSelectionRange=function(e){this.calendar.selectionRange=e,this.calendar.writeValue(null)},lo.prototype.acceptAndEmit=function(e){this.setSelectionRange(e),this.selectionRangeChange.emit(e)};Ni=lo;function lo(e,t,n,i,a){this.calendar=e,this.cdr=t,this.element=n,this.dateRangeService=a,this.autoCorrectOn="change",this.activeRangeEndChange=new h.EventEmitter,this.selectionRangeChange=new h.EventEmitter,this.calendarSubscriptions=new p.Subscription,this.dateRangeService=this.dateRangeService||new ro(i),i.setAttribute(n.nativeElement,"aria-multiselectable","true")}Ni.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ni,deps:[{token:Wt},{token:a.ChangeDetectorRef},{token:a.ElementRef},{token:a.Renderer2},{token:ro,optional:!0}],target:a.ɵɵFactoryTarget.Directive}),Ni.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ni,selector:"[kendoDateRangeSelection]",inputs:{autoCorrectOn:"autoCorrectOn",selectionRange:"selectionRange",activeRangeEnd:"activeRangeEnd"},outputs:{activeRangeEndChange:"activeRangeEndChange",selectionRangeChange:"selectionRangeChange"},ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ni,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangeSelection]"}]}],ctorParameters:function(){return[{type:Wt},{type:a.ChangeDetectorRef},{type:a.ElementRef},{type:a.Renderer2},{type:ro,decorators:[{type:h.Optional}]}]},propDecorators:{autoCorrectOn:[{type:h.Input}],selectionRange:[{type:h.Input}],activeRangeEnd:[{type:h.Input}],activeRangeEndChange:[{type:h.Output}],selectionRangeChange:[{type:h.Output}]}});Object.defineProperty(co.prototype,"calendar",{get:function(){return this._calendar},set:function(e){this._calendar=e,this.subscribeFocusBlur(e)},enumerable:!1,configurable:!0}),Object.defineProperty(co.prototype,"isActive",{get:function(){return this.calendar&&this.calendar.isActive},enumerable:!1,configurable:!0}),Object.defineProperty(co.prototype,"show",{get:function(){return this._show},set:function(e){var t;this._show===e||(t=new fi,(e?this.open:this.close).emit(t),t.isDefaultPrevented())||this._toggle(e)},enumerable:!1,configurable:!0}),co.prototype.ngOnInit=function(){this.dateRangeService.registerPopup(this)},co.prototype.ngAfterViewInit=function(){var t=this;this.calendarSubscriptions.add(this.contentCalendar.changes.subscribe(function(e){return t.calendar=e.first})),this.calendarSubscriptions.add(this.viewCalendar.changes.subscribe(function(e){return t.calendar=e.first})),de()&&this.zone.runOutsideAngular(function(){return t.windowBlurSubscription=p.fromEvent(window,"blur").subscribe(t.handleWindowBlur.bind(t))})},co.prototype.ngOnDestroy=function(){this.destroyPopup(),this.calendarSubscriptions.unsubscribe(),this.activateSubscription&&this.activateSubscription.unsubscribe(),this.blurSubscription&&(this.blurSubscription.unsubscribe(),this.focusSubscription.unsubscribe()),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe()},co.prototype.activate=function(){var t=this;!0!==this.show&&(this.activateSubscription&&this.activateSubscription.unsubscribe(),this.show=!0,this.ref.markForCheck(),this.zone.runOutsideAngular(function(){t.activateSubscription=p.merge(t.contentCalendar.changes,t.viewCalendar.changes).pipe(B.filter(function(e){return e&&e.first}),B.map(function(e){return e.first})).subscribe(function(e){return setTimeout(function(){e.focus(),t.calendarSubscriptions.add(e.viewList.focusedCellChange.subscribe(function(e){t.dateRangeService.setActiveDescendent(e)}))})})}))},co.prototype.focus=function(){this.calendar&&this.calendar.focus()},co.prototype.hasActiveContent=function(){return!(!m.isDocumentAvailable()||!this.popupRef)&&this.popupRef.popupElement.contains(document.activeElement)},co.prototype.toggle=function(e){var t=this;this.resolvedPromise.then(function(){t._toggle(void 0===e?!t.show:e)})},co.prototype.cancelPopup=function(){this.show=!1,this.cancel.emit()},co.prototype.handleWindowBlur=function(){var e=this;this.show&&(m.hasObservers(this.close)?this.zone.run(function(){return e.show=!1}):this.show=!1)},co.prototype.handleMouseLeave=function(){this.dateRangeService.setRange(this.dateRangeService.selectionRange)},co.prototype.handleKeydown=function(e){var t=this,n=e.altKey,e=e.keyCode;(e===m.Keys.Escape||n&&e===m.Keys.ArrowUp)&&this.zone.run(function(){return t.cancelPopup()})},co.prototype.subscribeFocusBlur=function(e){var t=this;this.blurSubscription&&(this.blurSubscription.unsubscribe(),this.focusSubscription.unsubscribe()),e&&(e=e.element.nativeElement.querySelector(".k-calendar-view"),this.blurSubscription=p.fromEvent(e,"blur").subscribe(function(){return t.onBlur.emit()}),this.focusSubscription=p.fromEvent(e,"focus").subscribe(function(){return t.onFocus.emit()}))},co.prototype.addPopupSubscriptions=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];o(this.popupSubscriptions)||(this.popupSubscriptions=new p.Subscription),e.map(function(e){return t.popupSubscriptions.add(e)})},Object.defineProperty(co.prototype,"_appendTo",{get:function(){var e=this.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),co.prototype._toggle=function(e){var t,n=this;this._show=e,this.popupRef&&this.destroyPopup(),this._show&&(e=this.rtl?"right":"left",this.popupRef=this.popupService.open({anchor:this.anchor,anchorAlign:this.anchorAlign||{vertical:"bottom",horizontal:e},animate:this.animate,appendTo:this._appendTo,collision:this.collision,content:(this.contentTemplate||{}).templateRef||this.defaultTemplate,margin:this.margin,popupAlign:this.popupAlign||{vertical:"top",horizontal:e},positionMode:"absolute"}),e=this.popupRef,t=e.popupElement,e=e.popupAnchorViewportLeave,t.setAttribute("id",this.popupUID),this.addPopupSubscriptions(this.zone.runOutsideAngular(function(){return p.fromEvent(t,"keydown").subscribe(n.handleKeydown.bind(n))}),p.fromEvent(t,"mouseleave").subscribe(this.handleMouseLeave.bind(this)),e.subscribe(function(){return n.cancelPopup()})))},co.prototype.destroyPopup=function(){o(this.popupRef)&&(this.popupRef.close(),this.popupRef=null),o(this.popupSubscriptions)&&this.popupSubscriptions.unsubscribe()};Fi=co;function co(e,t,n,i,a){this.popupService=e,this.dateRangeService=t,this.ref=n,this.zone=i,this.rtl=a,this.animate=!0,this.collision={horizontal:"fit",vertical:"flip"},this.open=new h.EventEmitter,this.close=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.cancel=new h.EventEmitter,this.popupUID=m.guid(),this.calendarSubscriptions=new p.Subscription,this.popupSubscriptions=new p.Subscription,this.resolvedPromise=Promise.resolve()}Fi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Fi,deps:[{token:q.PopupService},{token:ro},{token:a.ChangeDetectorRef},{token:a.NgZone},{token:t.RTL,optional:!0}],target:a.ɵɵFactoryTarget.Component}),Fi.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Fi,selector:"kendo-daterange-popup",inputs:{animate:"animate",anchor:"anchor",anchorAlign:"anchorAlign",appendTo:"appendTo",collision:"collision",popupAlign:"popupAlign",margin:"margin"},outputs:{open:"open",close:"close",onBlur:"blur",onFocus:"focus",cancel:"cancel"},queries:[{propertyName:"contentTemplate",first:!0,predicate:D,descendants:!0},{propertyName:"contentCalendar",predicate:Wt}],viewQueries:[{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef},{propertyName:"defaultTemplate",first:!0,predicate:["defaultTemplate"],descendants:!0},{propertyName:"viewCalendar",predicate:Wt,descendants:!0}],exportAs:["kendo-daterange-popup"],ngImport:a,template:"\n <ng-container #container></ng-container>\n <ng-template #defaultTemplate>\n <kendo-multiviewcalendar kendoDateRangeSelection></kendo-multiviewcalendar>\n </ng-template>\n ",isInline:!0,components:[{type:Wt,selector:"kendo-multiviewcalendar",inputs:["id","focusedDate","min","max","rangeValidation","disabledDatesRangeValidation","selection","value","disabled","tabindex","tabIndex","isActive","disabledDates","activeView","bottomView","topView","showViewHeader","animateNavigation","weekNumber","activeRangeEnd","selectionRange","views","orientation","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","weekNumberTemplate","headerTitleTemplate"],outputs:["activeViewChange","navigate","cellEnter","cellLeave","valueChange","blur","focus","focusCalendar"],exportAs:["kendo-multiviewcalendar"]}],directives:[{type:Ni,selector:"[kendoDateRangeSelection]",inputs:["autoCorrectOn","selectionRange","activeRangeEnd"],outputs:["activeRangeEndChange","selectionRangeChange"]}]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Fi,decorators:[{type:h.Component,args:[{exportAs:"kendo-daterange-popup",selector:"kendo-daterange-popup",template:"\n <ng-container #container></ng-container>\n <ng-template #defaultTemplate>\n <kendo-multiviewcalendar kendoDateRangeSelection></kendo-multiviewcalendar>\n </ng-template>\n "}]}],ctorParameters:function(){return[{type:q.PopupService},{type:ro},{type:a.ChangeDetectorRef},{type:a.NgZone},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[t.RTL]}]}]},propDecorators:{container:[{type:h.ViewChild,args:["container",{read:h.ViewContainerRef,static:!1}]}],defaultTemplate:[{type:h.ViewChild,args:["defaultTemplate",{static:!1}]}],contentTemplate:[{type:h.ContentChild,args:[D,{static:!1}]}],viewCalendar:[{type:h.ViewChildren,args:[Wt]}],contentCalendar:[{type:h.ContentChildren,args:[Wt]}],animate:[{type:h.Input}],anchor:[{type:h.Input}],anchorAlign:[{type:h.Input}],appendTo:[{type:h.Input}],collision:[{type:h.Input}],popupAlign:[{type:h.Input}],margin:[{type:h.Input}],open:[{type:h.Output}],close:[{type:h.Output}],onBlur:[{type:h.Output,args:["blur"]}],onFocus:[{type:h.Output,args:["focus"]}],cancel:[{type:h.Output}]}});po.prototype.keydown=function(e){e.keyCode===m.Keys.ArrowDown&&e.altKey&&this.dateRangeService.activatePopup(),(e.keyCode===m.Keys.ArrowUp&&e.altKey||e.keyCode===m.Keys.Escape)&&this.dateRangeService.deactivatePopup()},Object.defineProperty(po.prototype,"hasContentPopup",{get:function(){return 0<this.contentPopup.length},enumerable:!1,configurable:!0}),po.prototype.ngAfterContentInit=function(){var e=this;this.showDefault=!this.hasContentPopup,this.subscription=this.contentPopup.changes.subscribe(function(){e.showDefault=!e.hasContentPopup})},po.prototype.ngOnDestroy=function(){var e;null!=(e=this.subscription)&&e.unsubscribe()};Xn=po;function po(e){this.dateRangeService=e,this.wrapperClass=!0,this.showDefault=!1,A.validatePackage(Z)}Xn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Xn,deps:[{token:ro}],target:a.ɵɵFactoryTarget.Component}),Xn.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Xn,selector:"kendo-daterange",host:{listeners:{keydown:"keydown($event)"},properties:{"class.k-daterangepicker":"this.wrapperClass"}},providers:[ro],queries:[{propertyName:"contentPopup",predicate:Fi}],ngImport:a,template:'\n <ng-content></ng-content>\n <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>\n ',isInline:!0,components:[{type:Fi,selector:"kendo-daterange-popup",inputs:["animate","anchor","anchorAlign","appendTo","collision","popupAlign","margin"],outputs:["open","close","blur","focus","cancel"],exportAs:["kendo-daterange-popup"]}],directives:[{type:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Xn,decorators:[{type:h.Component,args:[{providers:[ro],selector:"kendo-daterange",template:'\n <ng-content></ng-content>\n <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>\n '}]}],ctorParameters:function(){return[{type:ro}]},propDecorators:{keydown:[{type:h.HostListener,args:["keydown",["$event"]]}],wrapperClass:[{type:h.HostBinding,args:["class.k-daterangepicker"]}],contentPopup:[{type:h.ContentChildren,args:[Fi]}]}});Object.defineProperty(uo.prototype,"isActiveEnd",{get:function(){return this.dateRangeService.activeRangeEnd===this.activeRangeEnd},enumerable:!1,configurable:!0}),Object.defineProperty(uo.prototype,"popupCalendarActivated",{get:function(){var e=this.dateRangeService.dateRangePopup$.value;return o(e)&&o(e.calendar)},enumerable:!1,configurable:!0}),uo.prototype.init=function(){var t=this;this.input.role="combobox",this.input.hasPopup="grid",this.input.value&&this.dateRangeService.setRange(this.getRange(this.input.value)),[this.input.onBlur.subscribe(function(){return t.deactivate()}),this.input.onFocus.pipe(B.filter(function(){return!t.popupCalendarActivated})).subscribe(function(){return t.activate()}),this.input.valueUpdate.subscribe(function(e){return t.updateRange(e,"change")}),this.dateRangeService.activeRangeEnd$.subscribe(function(){t.navigateCalendarOnFocus&&t.focusActiveDate(),t.toggleActiveClass(t.isActiveEnd)}),this.dateRangeService.dateRangePopup$.subscribe(function(e){return t.initPopup(e)}),this.dateRangeService.range$.subscribe(function(e){return t.updateInputValue(e)}),p.fromEvent(this.element.nativeElement,"click").subscribe(function(){return t.activate()}),p.fromEvent(this.element.nativeElement,"keydown").subscribe(function(e){return t.togglePopup(e||{})})].map(function(e){return t.subscriptions.add(e)})},uo.prototype.destroy=function(){this.subscriptions.unsubscribe(),this.unsubscribePopup()},uo.prototype.initPopup=function(e){var t=this;e?(e.anchor||(e.anchor=this.element.nativeElement),[e.cancel.subscribe(function(){return t.isActiveEnd&&t.input.focus()}),e.onFocus.subscribe(function(){return t.toggleActiveClass(t.isActiveEnd)}),e.onBlur.subscribe(function(){return t.deactivate()})].map(function(e){return t.popupSubscriptions.add(e)})):this.unsubscribePopup()},uo.prototype.unsubscribePopup=function(){this.popupSubscriptions.unsubscribe(),this.popupSubscriptions=new p.Subscription},uo.prototype.activate=function(){this.dateRangeService.setActiveRangeEnd(this.activeRangeEnd),this.dateRangeService.activatePopup()},uo.prototype.deactivate=function(){var e=this;this.zone.runOutsideAngular(function(){setTimeout(function(){e.updateRange(e.input.value,"blur"),e.dateRangeService.hasActiveComponent()||(e.toggleActiveClass(!1),e.zone.run(function(){return e.dateRangeService.deactivatePopup()}))})})},uo.prototype.updateRange=function(e,t){e=this.getRange(e,t);e&&(this.focusActiveDate(),this.dateRangeService.setRange(e))},uo.prototype.togglePopup=function(e){var t=e.altKey,e=e.keyCode;e===m.Keys.Escape?this.dateRangeService.cancelPopup():t&&e===m.Keys.ArrowDown&&this.dateRangeService.activatePopup()},uo.prototype.focusActiveDate=function(){this.input.value&&this.isActiveEnd&&this.dateRangeService.setFocusedDate(k.cloneDate(this.input.value))},uo.prototype.toggleActiveClass=function(e){var t=this.element.nativeElement;t&&t.querySelector&&this.renderer[e?"addClass":"removeClass"](t,"k-focus")};c=uo;function uo(e,t,n,i,a,o){this.activeRangeEnd=e,this.dateRangeService=t,this.input=n,this.element=i,this.renderer=a,this.zone=o,this.navigateCalendarOnFocus=!1,this.popupSubscriptions=new p.Subscription,this.subscriptions=new p.Subscription}c.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:c,deps:"invalid",target:a.ɵɵFactoryTarget.Directive}),c.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:c,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:c,decorators:[{type:h.Directive,args:[{}]}],ctorParameters:function(){return[{type:void 0},{type:ro},{type:gi},{type:a.ElementRef},{type:a.Renderer2},{type:a.NgZone}]}});pt(go,ho=c),go.prototype.ngOnInit=function(){this.rangeService.registerEndInput(this.dateInput),ho.prototype.init.call(this),this.dateInput.pickerType="daterangeend"},go.prototype.ngAfterViewInit=function(){this.renderer.setAttribute(this.dateInput.inputElement,Ne,"false")},go.prototype.ngOnDestroy=function(){ho.prototype.destroy.call(this)},go.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,n=n.max;return re(e,i,n)?(i=(this.rangeService.selectionRange||te).start,this.autoCorrectOn===t&&o(e)&&e<i?ke(e):{start:i,end:k.cloneDate(e)}):null},go.prototype.updateInputValue=function(e){var e=(e||te).end,t=this.dateInput,n=t.min,t=t.max;!k.isEqual(this.dateInput.value,e)&&re(e,n,t)&&(this.dateInput.writeValue(k.cloneDate(e)),this.dateInput.notify())};var ho,mo=go;function go(e,t,n,i,a){n=ho.call(this,"end",e,t,n,i,a)||this;return n.rangeService=e,n.dateInput=t,n.navigateCalendarOnFocus=!1,n}mo.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:mo,deps:[{token:ro},{token:gi},{token:a.ElementRef},{token:a.Renderer2},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Directive}),mo.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:mo,selector:"[kendoDateRangeEndInput]",inputs:{autoCorrectOn:"autoCorrectOn",navigateCalendarOnFocus:"navigateCalendarOnFocus"},usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:mo,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangeEndInput]"}]}],ctorParameters:function(){return[{type:ro},{type:gi},{type:a.ElementRef},{type:a.Renderer2},{type:a.NgZone}]},propDecorators:{autoCorrectOn:[{type:h.Input}],navigateCalendarOnFocus:[{type:h.Input}]}});pt(vo,fo=c),vo.prototype.ngOnInit=function(){this.rangeService.registerStartInput(this.dateInput),fo.prototype.init.call(this),this.dateInput.pickerType="daterangestart"},vo.prototype.ngAfterViewInit=function(){this.renderer.setAttribute(this.dateInput.inputElement,Ne,"false")},vo.prototype.ngOnDestroy=function(){fo.prototype.destroy.call(this)},vo.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,n=n.max;return re(e,i,n)?(i=(this.rangeService.selectionRange||te).end,this.autoCorrectOn===t&&i&&i<e?ke(e):{start:k.cloneDate(e),end:i}):null},vo.prototype.updateInputValue=function(e){var e=(e||te).start,t=this.dateInput,n=t.min,t=t.max;!k.isEqual(this.dateInput.value,e)&&re(e,n,t)&&(this.dateInput.writeValue(k.cloneDate(e)),this.dateInput.notify())};var fo,c=vo;function vo(e,t,n,i,a){n=fo.call(this,"start",e,t,n,i,a)||this;return n.rangeService=e,n.dateInput=t,n.renderer=i,n.navigateCalendarOnFocus=!1,n}c.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:c,deps:[{token:ro},{token:gi},{token:a.ElementRef},{token:a.Renderer2},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Directive}),c.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:c,selector:"[kendoDateRangeStartInput]",inputs:{autoCorrectOn:"autoCorrectOn",navigateCalendarOnFocus:"navigateCalendarOnFocus"},usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:c,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangeStartInput]"}]}],ctorParameters:function(){return[{type:ro},{type:gi},{type:a.ElementRef},{type:a.Renderer2},{type:a.NgZone}]},propDecorators:{autoCorrectOn:[{type:h.Input}],navigateCalendarOnFocus:[{type:h.Input}]}});var yo,bo=function(){},P=(bo.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:bo,deps:[],target:a.ɵɵFactoryTarget.NgModule}),bo.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:bo,declarations:[yt,wt,kt],imports:[i.CommonModule,m.EventsModule],exports:[yt,wt,kt]}),bo.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:bo,imports:[[i.CommonModule,m.EventsModule]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:bo,decorators:[{type:h.NgModule,args:[{declarations:[yt,wt,kt],exports:[yt,wt,kt],imports:[i.CommonModule,m.EventsModule]}]}]}),function(){}),ko=(P.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:P,deps:[],target:a.ɵɵFactoryTarget.NgModule}),P.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:P,declarations:[Rt,Ot,Mt,Nt,Ft,Pt,At,_n],exports:[Rt,Ot,Mt,Nt,Ft,Pt,At,_n]}),P.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:P}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:P,decorators:[{type:h.NgModule,args:[{declarations:[Rt,Ot,Mt,Nt,Ft,Pt,At,_n],exports:[Rt,Ot,Mt,Nt,Ft,Pt,At,_n]}]}]}),function(){}),Co=(ko.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ko,deps:[],target:a.ɵɵFactoryTarget.NgModule}),ko.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ko,declarations:[Ct,$t,Hn,Wt],imports:[i.CommonModule,bo,L.IntlModule,P,z.PopupModule,m.EventsModule],exports:[Ct,$t,Hn,Wt,bo,P]}),ko.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ko,providers:[Bt,u,d,Qe,nt,st],imports:[[i.CommonModule,bo,L.IntlModule,P,z.PopupModule,m.EventsModule],bo,P]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ko,decorators:[{type:h.NgModule,args:[{declarations:[Ct,$t,Hn,Wt],exports:[Ct,$t,Hn,Wt,bo,P],imports:[i.CommonModule,bo,L.IntlModule,P,z.PopupModule,m.EventsModule],providers:[Bt,u,d,Qe,nt,st]}]}]}),[T]),wo=function(){},T=(wo.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:wo,deps:[],target:a.ɵɵFactoryTarget.NgModule}),wo.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:wo,declarations:[T],imports:[i.CommonModule],exports:[T]}),wo.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:wo,imports:[[i.CommonModule]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:wo,decorators:[{type:h.NgModule,args:[{declarations:[Co],exports:[Co],imports:[i.CommonModule]}]}]}),function(){}),Co=(T.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:T,deps:[],target:a.ɵɵFactoryTarget.NgModule}),T.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:T,declarations:[Jn,Kt,Ci,Wn,Pn],imports:[i.CommonModule,bo,ko,L.IntlModule,P,wo,m.EventsModule,m.ResizeSensorModule],exports:[Jn,Kt,Ci,Wn,Pn,bo,P]}),T.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:T,providers:[Mn,u,d,Qe,nt,st],imports:[[i.CommonModule,bo,ko,L.IntlModule,P,wo,m.EventsModule,m.ResizeSensorModule],bo,P]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:T,decorators:[{type:h.NgModule,args:[{declarations:[Jn,Kt,Ci,Wn,Pn],exports:[Jn,Kt,Ci,Wn,Pn,bo,P],imports:[i.CommonModule,bo,ko,L.IntlModule,P,wo,m.EventsModule,m.ResizeSensorModule],providers:[Mn,u,d,Qe,nt,st]}]}]}),function(){}),Do=(Co.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Co,deps:[],target:a.ɵɵFactoryTarget.NgModule}),Co.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Co,imports:[T,ko],exports:[T,ko]}),Co.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Co,imports:[[T,ko],T,ko]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Co,decorators:[{type:h.NgModule,args:[{exports:[T,ko],imports:[T,ko]}]}]}),pt(To,yo=x),Object.defineProperty(To.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),To);function To(e){var t=yo.call(this)||this;return t.service=e,t}Do.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Do,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Do.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Do,selector:"kendo-dateinput-messages",providers:[{provide:x,useExisting:h.forwardRef(function(){return Do})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Do,decorators:[{type:h.Component,args:[{providers:[{provide:x,useExisting:h.forwardRef(function(){return Do})}],selector:"kendo-dateinput-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});var Io,u=function(){},Vo=(u.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:u,deps:[],target:a.ɵɵFactoryTarget.NgModule}),u.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:u,declarations:[gi,Do,oi],imports:[i.CommonModule,L.IntlModule,m.EventsModule],exports:[gi,Do,oi]}),u.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:u,imports:[[i.CommonModule,L.IntlModule,m.EventsModule]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:u,decorators:[{type:h.NgModule,args:[{declarations:[gi,Do,oi],exports:[gi,Do,oi],imports:[i.CommonModule,L.IntlModule,m.EventsModule]}]}]}),pt(xo,Io=Qn),Object.defineProperty(xo.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),xo);function xo(e){var t=Io.call(this)||this;return t.service=e,t}Vo.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Vo,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Vo.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Vo,selector:"kendo-datepicker-messages",providers:[{provide:Qn,useExisting:h.forwardRef(function(){return Vo})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Vo,decorators:[{type:h.Component,args:[{providers:[{provide:Qn,useExisting:h.forwardRef(function(){return Vo})}],selector:"kendo-datepicker-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});var Eo,d=function(){},Qe=(d.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:d,deps:[],target:a.ɵɵFactoryTarget.NgModule}),d.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:d,declarations:[Ei,Vo,Vi],imports:[i.CommonModule,u,T,L.IntlModule,z.PopupModule,P,m.EventsModule],exports:[Ei,Vo,Vi,P]}),d.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:d,providers:[{provide:ki,useValue:j.touchEnabled}],imports:[[i.CommonModule,u,T,L.IntlModule,z.PopupModule,P,m.EventsModule],P]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:d,decorators:[{type:h.NgModule,args:[{declarations:[Ei,Vo,Vi],exports:[Ei,Vo,Vi,P],imports:[i.CommonModule,u,T,L.IntlModule,z.PopupModule,P,m.EventsModule],providers:[{provide:ki,useValue:j.touchEnabled}]}]}]}),[Xn,Fi,D,Ni,c,mo]),nt=[ko,u,z.PopupModule,m.EventsModule],x=function(){},So=(x.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:x,deps:[],target:a.ɵɵFactoryTarget.NgModule}),x.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:x,declarations:[Xn,Fi,D,Ni,c,mo],imports:[i.CommonModule,ko,u,z.PopupModule,m.EventsModule],exports:[Xn,Fi,D,Ni,c,mo]}),x.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:x,imports:[[i.CommonModule,nt]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:x,decorators:[{type:h.NgModule,args:[{declarations:[Qe],exports:[Qe],imports:[i.CommonModule,nt]}]}]}),pt(Ro,Eo=O),Object.defineProperty(Ro.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),Ro);function Ro(e){var t=Eo.call(this)||this;return t.service=e,t}So.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:So,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),So.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:So,selector:"kendo-timepicker-messages",providers:[{provide:O,useExisting:h.forwardRef(function(){return So})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:So,decorators:[{type:h.Component,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return So})}],selector:"kendo-timepicker-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});var Oo,Qn=[Wa,fa,So,Ga,za,Ya,ba],Qe=[u,L.IntlModule,z.PopupModule,wo,m.EventsModule],nt=[Ca,Bi,Ki,ea,la,ma,{provide:ki,useValue:j.touchEnabled}],O=function(){},Mo=(O.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:O,deps:[],target:a.ɵɵFactoryTarget.NgModule}),O.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:O,declarations:[Wa,fa,So,Ga,za,Ya,ba],imports:[i.CommonModule,u,L.IntlModule,z.PopupModule,wo,m.EventsModule],exports:[Wa,fa,So,Ga,za,Ya,ba]}),O.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:O,providers:nt,imports:[ut([i.CommonModule],y(Qe))]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:O,decorators:[{type:h.NgModule,args:[{declarations:[Qn],exports:[Qn],imports:ut([i.CommonModule],y(Qe)),providers:nt}]}]}),pt(No,Oo=Mi),Object.defineProperty(No.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),No);function No(e){var t=Oo.call(this)||this;return t.service=e,t}Mo.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Mo,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Mo.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Mo,selector:"kendo-datetimepicker-messages",providers:[{provide:Mi,useExisting:h.forwardRef(function(){return Mo})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Mo,decorators:[{type:h.Component,args:[{providers:[{provide:Mi,useExisting:h.forwardRef(function(){return Mo})}],selector:"kendo-datetimepicker-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});Bi=[ao,Mo,eo],Ki=function(){},Ki.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ki,deps:[],target:a.ɵɵFactoryTarget.NgModule}),Ki.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ki,declarations:[ao,Mo,eo],imports:[i.CommonModule,L.IntlModule,u,T,O,z.PopupModule,m.EventsModule,P],exports:[ao,Mo,eo,P]}),Ki.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ki,providers:[{provide:ki,useValue:j.touchEnabled}],imports:[[i.CommonModule,L.IntlModule,u,T,O,z.PopupModule,m.EventsModule,P],P]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ki,decorators:[{type:h.NgModule,args:[{declarations:ut([],y(Bi)),exports:ut(ut([],y(Bi)),[P]),imports:[i.CommonModule,L.IntlModule,u,T,O,z.PopupModule,m.EventsModule,P],providers:[{provide:ki,useValue:j.touchEnabled}]}]}]}),ea=[Co,u,d,O,x,Ki],la=function(){};la.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:la,deps:[],target:a.ɵɵFactoryTarget.NgModule}),la.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:la,imports:[Co,u,d,O,x,Ki],exports:[Co,u,d,O,x,Ki]}),la.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:la,imports:[ea,Co,u,d,O,x,Ki]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:la,decorators:[{type:h.NgModule,args:[{exports:ea,imports:ea}]}]}),e.CalendarCommonModule=bo,e.CalendarComponent=Jn,e.CalendarCustomMessagesComponent=Ci,e.CalendarLocalizedMessagesDirective=Wn,e.CalendarModule=T,e.CalendarsModule=Co,e.CellTemplateDirective=Rt,e.CenturyCellTemplateDirective=Ft,e.DateInputComponent=gi,e.DateInputCustomMessagesComponent=Do,e.DateInputLocalizedMessagesDirective=oi,e.DateInputModule=u,e.DateInputsModule=la,e.DatePickerComponent=Ei,e.DatePickerCustomMessagesComponent=Vo,e.DatePickerLocalizedMessagesDirective=Vi,e.DatePickerModule=d,e.DateRangeComponent=Xn,e.DateRangeEndInputDirective=mo,e.DateRangeModule=x,e.DateRangePopupComponent=Fi,e.DateRangePopupTemplateDirective=D,e.DateRangeSelectionDirective=Ni,e.DateRangeService=ro,e.DateRangeStartInputDirective=c,e.DateTimePickerComponent=ao,e.DateTimePickerCustomMessagesComponent=Mo,e.DateTimePickerModule=Ki,e.DecadeCellTemplateDirective=Nt,e.HeaderComponent=wt,e.HeaderTitleTemplateDirective=At,e.HorizontalViewListComponent=Ct,e.KForOf=yt,e.LocalizedMessagesDirective=eo,e.MonthCellTemplateDirective=Ot,e.MultiViewCalendarComponent=Wt,e.MultiViewCalendarCustomMessagesComponent=Hn,e.MultiViewCalendarLocalizedMessagesDirective=$t,e.MultiViewCalendarModule=ko,e.NavigationComponent=Kt,e.NavigationItemTemplateDirective=_n,e.PreventableEvent=fi,e.TemplatesModule=P,e.TimeListComponent=fa,e.TimePickerComponent=Ga,e.TimePickerCustomMessagesComponent=So,e.TimePickerLocalizedMessagesDirective=Wa,e.TimePickerModule=O,e.TimeSelectorComponent=ba,e.TimeSelectorCustomMessagesComponent=Ya,e.TimeSelectorLocalizedMessagesDirective=za,e.ViewComponent=kt,e.ViewListComponent=Pn,e.WeekNumberCellTemplateDirective=Pt,e.YearCellTemplateDirective=Mt,Object.defineProperty(e,"__esModule",{value:!0})});