@progress/kendo-angular-dateinputs 6.0.4-dev.202203211102 → 7.0.0-next.202203221259
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/kendo-angular-dateinputs.umd.js +5 -0
- package/calendar/calendar-common.module.d.ts +24 -0
- package/{dist/es2015/calendar → calendar}/calendar.component.d.ts +40 -21
- package/{dist/es2015/calendar → calendar}/calendar.module.d.ts +16 -0
- package/{dist/es2015/calendar → calendar}/calendars.module.d.ts +6 -0
- package/{dist/es2015/calendar → calendar}/for.directive.d.ts +8 -5
- package/{dist/es2015/calendar → calendar}/header.component.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/horizontal-view-list.component.d.ts +9 -5
- package/{dist/es2015/calendar → calendar}/localization/calendar-custom-messages.component.d.ts +4 -1
- package/{dist/es2015/calendar → calendar}/localization/calendar-localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/localization/calendar-messages.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/localization/multiview-calendar-custom-messages.component.d.ts +4 -1
- package/{dist/es2015/calendar → calendar}/localization/multiview-calendar-localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/localization/multiview-calendar-messages.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/models/cell-context.interface.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/keydown.interface.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/navigation-action.enum.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/row-length-options.interface.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/scrollable.interface.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/selection-range-end.type.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/selection-range.interface.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/selection.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/type.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/view-service.interface.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/view.enum.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/view.type.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/multiview-calendar.component.d.ts +38 -24
- package/{dist/es2015/calendar → calendar}/multiview-calendar.module.d.ts +14 -0
- package/{dist/es2015/calendar → calendar}/navigation.component.d.ts +4 -1
- package/{dist/es2015/calendar → calendar}/services/bus-view.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/century-view.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/decade-view.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/disabled-dates.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/dom.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/month-view.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/navigation.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/scroll-sync.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/selection.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/weeknames.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/year-view.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/templates/cell-template.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/templates/century-cell-template.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/templates/decade-cell-template.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/templates/header-title-template.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/templates/month-cell-template.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/templates/navigation-item-template.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/templates/weeknumber-cell-template.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/templates/year-cell-template.directive.d.ts +3 -0
- package/calendar/templates.module.d.ts +33 -0
- package/{dist/es2015/calendar → calendar}/view-list.component.d.ts +9 -5
- package/{dist/es2015/calendar → calendar}/view.component.d.ts +5 -1
- package/{dist/es2015/common → common}/dom-queries.d.ts +0 -0
- package/{dist/es2015/common → common}/models/fillmode.d.ts +0 -0
- package/{dist/es2015/common → common}/models/rounded.d.ts +0 -0
- package/{dist/es2015/common → common}/models/size.d.ts +0 -0
- package/{dist/es2015/common → common}/picker.service.d.ts +0 -0
- package/{dist/es2015/common → common}/utils.d.ts +0 -0
- package/{dist/es2015/dateinput → dateinput}/arrow.enum.d.ts +0 -0
- package/{dist/es2015/dateinput → dateinput}/dateinput.component.d.ts +21 -12
- package/dateinput/dateinput.module.d.ts +20 -0
- package/{dist/es2015/dateinput → dateinput}/localization/dateinput-custom-messages.component.d.ts +4 -1
- package/{dist/es2015/dateinput → dateinput}/localization/dateinput-localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/dateinput → dateinput}/localization/messages.d.ts +3 -0
- package/{dist/es2015/dateinput → dateinput}/models/format-placeholder.model.d.ts +0 -0
- package/{dist/es2015/dateinput → dateinput}/models/format-settings.model.d.ts +0 -0
- package/{dist/es2015/dateinput → dateinput}/models/incremental-steps.model.d.ts +0 -0
- package/{dist/es2015/dateinputs.module.d.ts → dateinputs.module.d.ts} +10 -0
- package/{dist/es2015/datepicker → datepicker}/datepicker.component.d.ts +36 -24
- package/datepicker/datepicker.module.d.ts +24 -0
- package/{dist/es2015/datepicker → datepicker}/localization/datepicker-custom-messages.component.d.ts +4 -1
- package/{dist/es2015/datepicker → datepicker}/localization/datepicker-localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/datepicker → datepicker}/localization/messages.d.ts +3 -0
- package/{dist/es2015/daterange → daterange}/auto-correct-on.type.d.ts +0 -0
- package/{dist/es2015/daterange → daterange}/date-range-end-input.directive.d.ts +5 -1
- package/{dist/es2015/daterange → daterange}/date-range-input.d.ts +5 -3
- package/{dist/es2015/daterange → daterange}/date-range-popup-template.directive.d.ts +3 -0
- package/{dist/es2015/daterange → daterange}/date-range-popup.component.d.ts +12 -5
- package/daterange/date-range-popup.service.d.ts +52 -0
- package/{dist/es2015/daterange → daterange}/date-range-selection.directive.d.ts +8 -3
- package/{dist/es2015/daterange → daterange}/date-range-start-input.directive.d.ts +5 -1
- package/{dist/es2015/daterange → daterange}/date-range.component.d.ts +4 -1
- package/{dist/es2015/daterange → daterange}/date-range.module.d.ts +15 -1
- package/{dist/es2015/daterange → daterange}/date-range.service.d.ts +8 -38
- package/{dist/es2015/datetimepicker → datetimepicker}/datetimepicker.component.d.ts +38 -23
- package/datetimepicker/datetimepicker.module.d.ts +25 -0
- package/{dist/es2015/datetimepicker → datetimepicker}/localization/datetimepicker-custom-messages.component.d.ts +4 -1
- package/{dist/es2015/datetimepicker → datetimepicker}/localization/localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/datetimepicker → datetimepicker}/localization/messages.d.ts +3 -0
- package/{dist/es2015/datetimepicker → datetimepicker}/models/active-tab.type.d.ts +0 -0
- package/{dist/es2015/defaults.d.ts → defaults.d.ts} +0 -0
- package/esm2015/calendar/calendar-common.module.js +45 -0
- package/{dist/es2015 → esm2015}/calendar/calendar.component.js +277 -246
- package/{dist/es2015 → esm2015}/calendar/calendar.module.js +71 -34
- package/{dist/es2015 → esm2015}/calendar/calendars.module.js +23 -14
- package/{dist/es2015 → esm2015}/calendar/for.directive.js +16 -25
- package/{dist/es2015 → esm2015}/calendar/header.component.js +97 -73
- package/{dist/es2015 → esm2015}/calendar/horizontal-view-list.component.js +155 -130
- package/esm2015/calendar/localization/calendar-custom-messages.component.js +40 -0
- package/esm2015/calendar/localization/calendar-localized-messages.directive.js +36 -0
- package/esm2015/calendar/localization/calendar-messages.js +26 -0
- package/esm2015/calendar/localization/multiview-calendar-custom-messages.component.js +40 -0
- package/esm2015/calendar/localization/multiview-calendar-localized-messages.directive.js +36 -0
- package/esm2015/calendar/localization/multiview-calendar-messages.js +26 -0
- package/{dist/es → esm2015}/calendar/models/cell-context.interface.js +1 -0
- package/{dist/es2015 → esm2015}/calendar/models/keydown.interface.js +1 -0
- package/{dist/es → esm2015}/calendar/models/navigation-action.enum.js +0 -0
- package/{dist/es2015 → esm2015}/calendar/models/row-length-options.interface.js +1 -0
- package/{dist/es/virtualization → esm2015/calendar}/models/scrollable.interface.js +1 -0
- package/{dist/es → esm2015}/calendar/models/selection-range-end.type.js +1 -0
- package/{dist/es2015 → esm2015}/calendar/models/selection-range.interface.js +0 -0
- package/{dist/es → esm2015}/calendar/models/selection.js +1 -0
- package/{dist/es → esm2015}/calendar/models/type.js +1 -0
- package/{dist/es → esm2015}/calendar/models/view-service.interface.js +1 -0
- package/{dist/es → esm2015}/calendar/models/view.enum.js +0 -0
- package/{dist/es → esm2015}/calendar/models/view.type.js +1 -0
- package/{dist/es2015 → esm2015}/calendar/multiview-calendar.component.js +246 -298
- package/{dist/es2015 → esm2015}/calendar/multiview-calendar.module.js +63 -32
- package/{dist/es2015 → esm2015}/calendar/navigation.component.js +71 -62
- package/{dist/es2015 → esm2015}/calendar/services/bus-view.service.js +9 -11
- package/{dist/es2015 → esm2015}/calendar/services/century-view.service.js +8 -11
- package/{dist/es2015 → esm2015}/calendar/services/decade-view.service.js +8 -11
- package/{dist/es2015 → esm2015}/calendar/services/disabled-dates.service.js +8 -12
- package/{dist/es2015 → esm2015}/calendar/services/dom.service.js +10 -26
- package/{dist/es2015 → esm2015}/calendar/services/month-view.service.js +9 -10
- package/{dist/es2015 → esm2015}/calendar/services/navigation.service.js +9 -9
- package/{dist/es2015 → esm2015}/calendar/services/scroll-sync.service.js +10 -13
- package/{dist/es2015 → esm2015}/calendar/services/selection.service.js +9 -9
- package/{dist/es2015 → esm2015}/calendar/services/weeknames.service.js +9 -9
- package/{dist/es2015 → esm2015}/calendar/services/year-view.service.js +9 -13
- package/{dist/es2015 → esm2015}/calendar/templates/cell-template.directive.js +12 -11
- package/{dist/es2015 → esm2015}/calendar/templates/century-cell-template.directive.js +12 -11
- package/{dist/es2015 → esm2015}/calendar/templates/decade-cell-template.directive.js +12 -11
- package/{dist/es2015 → esm2015}/calendar/templates/header-title-template.directive.js +12 -11
- package/{dist/es2015 → esm2015}/calendar/templates/month-cell-template.directive.js +12 -11
- package/{dist/es2015 → esm2015}/calendar/templates/navigation-item-template.directive.js +12 -11
- package/{dist/es2015 → esm2015}/calendar/templates/weeknumber-cell-template.directive.js +12 -11
- package/{dist/es2015 → esm2015}/calendar/templates/year-cell-template.directive.js +12 -11
- package/esm2015/calendar/templates.module.js +73 -0
- package/{dist/es2015 → esm2015}/calendar/view-list.component.js +135 -120
- package/{dist/es2015 → esm2015}/calendar/view.component.js +104 -98
- package/{dist/es2015 → esm2015}/common/dom-queries.js +0 -0
- package/{dist/es → esm2015}/common/models/fillmode.js +1 -0
- package/{dist/es → esm2015}/common/models/rounded.js +1 -0
- package/{dist/es → esm2015}/common/models/size.js +1 -0
- package/{dist/es2015 → esm2015}/common/picker.service.js +0 -0
- package/{dist/es2015 → esm2015}/common/utils.js +0 -0
- package/{dist/es → esm2015}/dateinput/arrow.enum.js +0 -0
- package/{dist/es2015 → esm2015}/dateinput/dateinput.component.js +179 -183
- package/esm2015/dateinput/dateinput.module.js +41 -0
- package/esm2015/dateinput/localization/dateinput-custom-messages.component.js +40 -0
- package/esm2015/dateinput/localization/dateinput-localized-messages.directive.js +36 -0
- package/esm2015/dateinput/localization/messages.js +24 -0
- package/{dist/es → esm2015}/dateinput/models/format-placeholder.model.js +1 -0
- package/{dist/es → esm2015}/dateinput/models/format-settings.model.js +1 -0
- package/{dist/es → esm2015}/dateinput/models/incremental-steps.model.js +1 -0
- package/{dist/es2015 → esm2015}/dateinputs.module.js +28 -10
- package/{dist/es2015 → esm2015}/datepicker/datepicker.component.js +285 -285
- package/esm2015/datepicker/datepicker.module.js +72 -0
- package/esm2015/datepicker/localization/datepicker-custom-messages.component.js +40 -0
- package/esm2015/datepicker/localization/datepicker-localized-messages.directive.js +36 -0
- package/esm2015/datepicker/localization/messages.js +28 -0
- package/{dist/es → esm2015}/daterange/auto-correct-on.type.js +1 -0
- package/{dist/es2015 → esm2015}/daterange/date-range-end-input.directive.js +21 -27
- package/{dist/es2015 → esm2015}/daterange/date-range-input.js +11 -8
- package/esm2015/daterange/date-range-popup-template.directive.js +23 -0
- package/{dist/es2015 → esm2015}/daterange/date-range-popup.component.js +75 -91
- package/esm2015/daterange/date-range-popup.service.js +87 -0
- package/{dist/es2015 → esm2015}/daterange/date-range-selection.directive.js +26 -39
- package/{dist/es2015 → esm2015}/daterange/date-range-start-input.directive.js +21 -27
- package/esm2015/daterange/date-range.component.js +74 -0
- package/{dist/es2015 → esm2015}/daterange/date-range.module.js +27 -12
- package/{dist/es2015 → esm2015}/daterange/date-range.service.js +8 -75
- package/{dist/es2015 → esm2015}/datetimepicker/datetimepicker.component.js +398 -227
- package/esm2015/datetimepicker/datetimepicker.module.js +80 -0
- package/esm2015/datetimepicker/localization/datetimepicker-custom-messages.component.js +40 -0
- package/esm2015/datetimepicker/localization/localized-messages.directive.js +36 -0
- package/esm2015/datetimepicker/localization/messages.js +48 -0
- package/{dist/es → esm2015}/datetimepicker/models/active-tab.type.js +1 -0
- package/{dist/es2015 → esm2015}/defaults.js +0 -0
- package/esm2015/kendo-angular-dateinputs.js +8 -0
- package/{dist/es → esm2015}/main.js +25 -0
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/es → esm2015}/popup-settings.model.js +1 -0
- package/{dist/es2015 → esm2015}/preventable-event.js +0 -0
- package/esm2015/timepicker/localization/messages.js +34 -0
- package/esm2015/timepicker/localization/timepicker-custom-messages.component.js +40 -0
- package/esm2015/timepicker/localization/timepicker-localized-messages.directive.js +36 -0
- package/esm2015/timepicker/localization/timeselector-custom-messages.component.js +42 -0
- package/esm2015/timepicker/localization/timeselector-localized-messages.directive.js +36 -0
- package/{dist/es → esm2015}/timepicker/models/incremental-steps.model.js +1 -0
- package/{dist/es → esm2015}/timepicker/models/list-item.interface.js +1 -0
- package/{dist/es → esm2015}/timepicker/models/list-service-settings.js +1 -0
- package/{dist/es → esm2015}/timepicker/models/list-service.interface.js +1 -0
- package/{dist/es2015 → esm2015}/timepicker/models/time-part.default.js +0 -0
- package/{dist/es2015 → esm2015}/timepicker/services/dayperiod.service.js +9 -15
- package/{dist/es2015 → esm2015}/timepicker/services/dom.service.js +8 -13
- package/{dist/es2015 → esm2015}/timepicker/services/hours.service.js +9 -14
- package/{dist/es2015 → esm2015}/timepicker/services/milliseconds.service.js +9 -14
- package/{dist/es2015 → esm2015}/timepicker/services/minutes.service.js +9 -14
- package/{dist/es2015 → esm2015}/timepicker/services/seconds.service.js +9 -14
- package/{dist/es2015 → esm2015}/timepicker/timelist.component.js +66 -61
- package/{dist/es2015 → esm2015}/timepicker/timepicker.component.js +219 -179
- package/{dist/es2015 → esm2015}/timepicker/timepicker.module.js +32 -15
- package/{dist/es2015 → esm2015}/timepicker/timeselector.component.js +181 -104
- package/{dist/es2015 → esm2015}/timepicker/util.js +8 -20
- package/{dist/es2015 → esm2015}/touch-enabled.js +0 -0
- package/{dist/es2015 → esm2015}/util.js +1 -6
- package/{dist/es2015 → esm2015}/validators/disabled-date.validator.js +0 -0
- package/{dist/es2015 → esm2015}/validators/disabled-dates-range.validator.js +0 -2
- package/{dist/es2015 → esm2015}/validators/incomplete-date.validator.js +0 -0
- package/{dist/es2015 → esm2015}/validators/max.validator.js +0 -0
- package/{dist/es2015 → esm2015}/validators/min.validator.js +0 -0
- package/{dist/es2015 → esm2015}/validators/time-range.validator.js +0 -0
- package/{dist/es2015/calendar → esm2015/virtualization}/models/scrollable.interface.js +1 -0
- package/{dist/es2015 → esm2015}/virtualization/services/row-height.service.js +1 -3
- package/{dist/es2015 → esm2015}/virtualization/services/scroller.service.js +0 -2
- package/{dist/es2015 → esm2015}/virtualization/virtualization.component.js +75 -90
- package/esm2015/virtualization/virtualization.module.js +30 -0
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-dateinputs.js} +9630 -9048
- package/{dist/es/calendar/models/selection-range.interface.js → kendo-angular-dateinputs.d.ts} +3 -2
- package/{dist/es2015/main.d.ts → main.d.ts} +25 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +44 -117
- package/{dist/es2015/popup-settings.model.d.ts → popup-settings.model.d.ts} +0 -0
- package/{dist/es2015/preventable-event.d.ts → preventable-event.d.ts} +0 -0
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/{dist/es2015/timepicker → timepicker}/localization/messages.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/localization/timepicker-custom-messages.component.d.ts +4 -1
- package/{dist/es2015/timepicker → timepicker}/localization/timepicker-localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/localization/timeselector-custom-messages.component.d.ts +4 -1
- package/{dist/es2015/timepicker → timepicker}/localization/timeselector-localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/models/incremental-steps.model.d.ts +0 -0
- package/{dist/es2015/timepicker → timepicker}/models/list-item.interface.d.ts +0 -0
- package/{dist/es2015/timepicker → timepicker}/models/list-service-settings.d.ts +0 -0
- package/{dist/es2015/timepicker → timepicker}/models/list-service.interface.d.ts +0 -0
- package/{dist/es2015/timepicker → timepicker}/models/time-part.default.d.ts +0 -0
- package/{dist/es2015/timepicker → timepicker}/services/dayperiod.service.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/services/dom.service.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/services/hours.service.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/services/milliseconds.service.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/services/minutes.service.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/services/seconds.service.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/timelist.component.d.ts +4 -1
- package/{dist/es2015/timepicker → timepicker}/timepicker.component.d.ts +32 -18
- package/timepicker/timepicker.module.d.ts +27 -0
- package/{dist/es2015/timepicker → timepicker}/timeselector.component.d.ts +10 -4
- package/{dist/es2015/timepicker → timepicker}/util.d.ts +0 -0
- package/{dist/es2015/touch-enabled.d.ts → touch-enabled.d.ts} +0 -0
- package/{dist/es2015/util.d.ts → util.d.ts} +0 -0
- package/{dist/es2015/validators → validators}/disabled-date.validator.d.ts +0 -0
- package/{dist/es2015/validators → validators}/disabled-dates-range.validator.d.ts +0 -0
- package/{dist/es2015/validators → validators}/incomplete-date.validator.d.ts +0 -0
- package/{dist/es2015/validators → validators}/max.validator.d.ts +0 -0
- package/{dist/es2015/validators → validators}/min.validator.d.ts +0 -0
- package/{dist/es2015/validators → validators}/time-range.validator.d.ts +0 -0
- package/{dist/es2015/virtualization → virtualization}/models/scrollable.interface.d.ts +0 -0
- package/{dist/es2015/virtualization → virtualization}/services/row-height.service.d.ts +0 -0
- package/{dist/es2015/virtualization → virtualization}/services/scroller.service.d.ts +0 -0
- package/{dist/es2015/virtualization → virtualization}/virtualization.component.d.ts +8 -5
- package/{dist/es2015/virtualization → virtualization}/virtualization.module.d.ts +6 -0
- package/dist/cdn/js/kendo-angular-dateinputs.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/calendar/calendar-common.module.js +0 -41
- package/dist/es/calendar/calendar.component.js +0 -1189
- package/dist/es/calendar/calendar.module.js +0 -108
- package/dist/es/calendar/calendars.module.js +0 -60
- package/dist/es/calendar/for.directive.js +0 -135
- package/dist/es/calendar/header.component.js +0 -170
- package/dist/es/calendar/horizontal-view-list.component.js +0 -363
- package/dist/es/calendar/localization/calendar-custom-messages.component.js +0 -43
- package/dist/es/calendar/localization/calendar-localized-messages.directive.js +0 -35
- package/dist/es/calendar/localization/calendar-messages.js +0 -30
- package/dist/es/calendar/localization/multiview-calendar-custom-messages.component.js +0 -43
- package/dist/es/calendar/localization/multiview-calendar-localized-messages.directive.js +0 -35
- package/dist/es/calendar/localization/multiview-calendar-messages.js +0 -30
- package/dist/es/calendar/models/keydown.interface.js +0 -4
- package/dist/es/calendar/models/row-length-options.interface.js +0 -4
- package/dist/es/calendar/models/scrollable.interface.js +0 -4
- package/dist/es/calendar/multiview-calendar.component.js +0 -1122
- package/dist/es/calendar/multiview-calendar.module.js +0 -97
- package/dist/es/calendar/navigation.component.js +0 -173
- package/dist/es/calendar/services/bus-view.service.js +0 -83
- package/dist/es/calendar/services/century-view.service.js +0 -180
- package/dist/es/calendar/services/decade-view.service.js +0 -179
- package/dist/es/calendar/services/disabled-dates.service.js +0 -70
- package/dist/es/calendar/services/dom.service.js +0 -195
- package/dist/es/calendar/services/month-view.service.js +0 -203
- package/dist/es/calendar/services/navigation.service.js +0 -53
- package/dist/es/calendar/services/scroll-sync.service.js +0 -85
- package/dist/es/calendar/services/selection.service.js +0 -55
- package/dist/es/calendar/services/weeknames.service.js +0 -27
- package/dist/es/calendar/services/year-view.service.js +0 -204
- package/dist/es/calendar/templates/cell-template.directive.js +0 -46
- package/dist/es/calendar/templates/century-cell-template.directive.js +0 -45
- package/dist/es/calendar/templates/decade-cell-template.directive.js +0 -45
- package/dist/es/calendar/templates/header-title-template.directive.js +0 -44
- package/dist/es/calendar/templates/month-cell-template.directive.js +0 -43
- package/dist/es/calendar/templates/navigation-item-template.directive.js +0 -44
- package/dist/es/calendar/templates/weeknumber-cell-template.directive.js +0 -43
- package/dist/es/calendar/templates/year-cell-template.directive.js +0 -46
- package/dist/es/calendar/templates.module.js +0 -59
- package/dist/es/calendar/view-list.component.js +0 -301
- package/dist/es/calendar/view.component.js +0 -318
- package/dist/es/common/dom-queries.js +0 -24
- package/dist/es/common/picker.service.js +0 -18
- package/dist/es/common/utils.js +0 -35
- package/dist/es/dateinput/dateinput.component.js +0 -1617
- package/dist/es/dateinput/dateinput.module.js +0 -37
- package/dist/es/dateinput/localization/dateinput-custom-messages.component.js +0 -43
- package/dist/es/dateinput/localization/dateinput-localized-messages.directive.js +0 -35
- package/dist/es/dateinput/localization/messages.js +0 -26
- package/dist/es/dateinputs.module.js +0 -63
- package/dist/es/datepicker/datepicker.component.js +0 -1256
- package/dist/es/datepicker/datepicker.module.js +0 -55
- package/dist/es/datepicker/localization/datepicker-custom-messages.component.js +0 -43
- package/dist/es/datepicker/localization/datepicker-localized-messages.directive.js +0 -35
- package/dist/es/datepicker/localization/messages.js +0 -34
- package/dist/es/daterange/date-range-end-input.directive.js +0 -97
- package/dist/es/daterange/date-range-input.js +0 -131
- package/dist/es/daterange/date-range-popup-template.directive.js +0 -23
- package/dist/es/daterange/date-range-popup.component.js +0 -403
- package/dist/es/daterange/date-range-selection.directive.js +0 -230
- package/dist/es/daterange/date-range-start-input.directive.js +0 -97
- package/dist/es/daterange/date-range.component.js +0 -71
- package/dist/es/daterange/date-range.module.js +0 -83
- package/dist/es/daterange/date-range.service.js +0 -208
- package/dist/es/datetimepicker/datetimepicker.component.js +0 -1309
- package/dist/es/datetimepicker/datetimepicker.module.js +0 -57
- package/dist/es/datetimepicker/localization/datetimepicker-custom-messages.component.js +0 -43
- package/dist/es/datetimepicker/localization/localized-messages.directive.js +0 -35
- package/dist/es/datetimepicker/localization/messages.js +0 -74
- package/dist/es/defaults.js +0 -24
- package/dist/es/index.js +0 -63
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/preventable-event.js +0 -29
- package/dist/es/timepicker/localization/messages.js +0 -46
- package/dist/es/timepicker/localization/timepicker-custom-messages.component.js +0 -43
- package/dist/es/timepicker/localization/timepicker-localized-messages.directive.js +0 -35
- package/dist/es/timepicker/localization/timeselector-custom-messages.component.js +0 -45
- package/dist/es/timepicker/localization/timeselector-localized-messages.directive.js +0 -35
- package/dist/es/timepicker/models/time-part.default.js +0 -14
- package/dist/es/timepicker/services/dayperiod.service.js +0 -130
- package/dist/es/timepicker/services/dom.service.js +0 -64
- package/dist/es/timepicker/services/hours.service.js +0 -129
- package/dist/es/timepicker/services/milliseconds.service.js +0 -130
- package/dist/es/timepicker/services/minutes.service.js +0 -127
- package/dist/es/timepicker/services/seconds.service.js +0 -127
- package/dist/es/timepicker/timelist.component.js +0 -297
- package/dist/es/timepicker/timepicker.component.js +0 -1044
- package/dist/es/timepicker/timepicker.module.js +0 -75
- package/dist/es/timepicker/timeselector.component.js +0 -486
- package/dist/es/timepicker/util.js +0 -82
- package/dist/es/touch-enabled.js +0 -9
- package/dist/es/util.js +0 -395
- package/dist/es/validators/disabled-date.validator.js +0 -18
- package/dist/es/validators/disabled-dates-range.validator.js +0 -28
- package/dist/es/validators/incomplete-date.validator.js +0 -18
- package/dist/es/validators/max.validator.js +0 -21
- package/dist/es/validators/min.validator.js +0 -21
- package/dist/es/validators/time-range.validator.js +0 -23
- package/dist/es/virtualization/services/row-height.service.js +0 -72
- package/dist/es/virtualization/services/scroller.service.js +0 -111
- package/dist/es/virtualization/virtualization.component.js +0 -343
- package/dist/es/virtualization/virtualization.module.js +0 -30
- package/dist/es2015/calendar/calendar-common.module.d.ts +0 -15
- package/dist/es2015/calendar/calendar-common.module.js +0 -38
- package/dist/es2015/calendar/localization/calendar-custom-messages.component.js +0 -35
- package/dist/es2015/calendar/localization/calendar-localized-messages.directive.js +0 -31
- package/dist/es2015/calendar/localization/calendar-messages.js +0 -24
- package/dist/es2015/calendar/localization/multiview-calendar-custom-messages.component.js +0 -35
- package/dist/es2015/calendar/localization/multiview-calendar-localized-messages.directive.js +0 -31
- package/dist/es2015/calendar/localization/multiview-calendar-messages.js +0 -24
- package/dist/es2015/calendar/models/cell-context.interface.js +0 -4
- package/dist/es2015/calendar/models/navigation-action.enum.js +0 -20
- package/dist/es2015/calendar/models/selection-range-end.type.js +0 -4
- package/dist/es2015/calendar/models/selection.js +0 -4
- package/dist/es2015/calendar/models/type.js +0 -4
- package/dist/es2015/calendar/models/view-service.interface.js +0 -4
- package/dist/es2015/calendar/models/view.enum.js +0 -16
- package/dist/es2015/calendar/models/view.type.js +0 -4
- package/dist/es2015/calendar/templates.module.d.ts +0 -21
- package/dist/es2015/calendar/templates.module.js +0 -56
- package/dist/es2015/common/models/fillmode.js +0 -4
- package/dist/es2015/common/models/rounded.js +0 -4
- package/dist/es2015/common/models/size.js +0 -4
- package/dist/es2015/dateinput/arrow.enum.js +0 -13
- package/dist/es2015/dateinput/dateinput.module.d.ts +0 -10
- package/dist/es2015/dateinput/dateinput.module.js +0 -34
- package/dist/es2015/dateinput/localization/dateinput-custom-messages.component.js +0 -35
- package/dist/es2015/dateinput/localization/dateinput-localized-messages.directive.js +0 -31
- package/dist/es2015/dateinput/localization/messages.js +0 -20
- package/dist/es2015/dateinput/models/format-placeholder.model.js +0 -4
- package/dist/es2015/dateinput/models/format-settings.model.js +0 -4
- package/dist/es2015/dateinput/models/incremental-steps.model.js +0 -4
- package/dist/es2015/datepicker/datepicker.module.d.ts +0 -10
- package/dist/es2015/datepicker/datepicker.module.js +0 -52
- package/dist/es2015/datepicker/localization/datepicker-custom-messages.component.js +0 -35
- package/dist/es2015/datepicker/localization/datepicker-localized-messages.directive.js +0 -31
- package/dist/es2015/datepicker/localization/messages.js +0 -28
- package/dist/es2015/daterange/auto-correct-on.type.js +0 -4
- package/dist/es2015/daterange/date-range-popup-template.directive.js +0 -22
- package/dist/es2015/daterange/date-range.component.js +0 -68
- package/dist/es2015/datetimepicker/datetimepicker.module.d.ts +0 -10
- package/dist/es2015/datetimepicker/datetimepicker.module.js +0 -57
- package/dist/es2015/datetimepicker/localization/datetimepicker-custom-messages.component.js +0 -35
- package/dist/es2015/datetimepicker/localization/localized-messages.directive.js +0 -31
- package/dist/es2015/datetimepicker/localization/messages.js +0 -68
- package/dist/es2015/datetimepicker/models/active-tab.type.js +0 -4
- package/dist/es2015/index.d.ts +0 -63
- package/dist/es2015/index.js +0 -63
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/main.js +0 -35
- package/dist/es2015/popup-settings.model.js +0 -4
- package/dist/es2015/timepicker/localization/messages.js +0 -40
- package/dist/es2015/timepicker/localization/timepicker-custom-messages.component.js +0 -35
- package/dist/es2015/timepicker/localization/timepicker-localized-messages.directive.js +0 -31
- package/dist/es2015/timepicker/localization/timeselector-custom-messages.component.js +0 -37
- package/dist/es2015/timepicker/localization/timeselector-localized-messages.directive.js +0 -31
- package/dist/es2015/timepicker/models/incremental-steps.model.js +0 -4
- package/dist/es2015/timepicker/models/list-item.interface.js +0 -4
- package/dist/es2015/timepicker/models/list-service-settings.js +0 -4
- package/dist/es2015/timepicker/models/list-service.interface.js +0 -4
- package/dist/es2015/timepicker/timepicker.module.d.ts +0 -10
- package/dist/es2015/virtualization/models/scrollable.interface.js +0 -4
- package/dist/es2015/virtualization/virtualization.module.js +0 -27
- package/dist/fesm5/index.js +0 -15216
- package/dist/npm/calendar/calendar-common.module.js +0 -43
- package/dist/npm/calendar/calendar.component.js +0 -1191
- package/dist/npm/calendar/calendar.module.js +0 -110
- package/dist/npm/calendar/calendars.module.js +0 -62
- package/dist/npm/calendar/for.directive.js +0 -138
- package/dist/npm/calendar/header.component.js +0 -172
- package/dist/npm/calendar/horizontal-view-list.component.js +0 -365
- package/dist/npm/calendar/localization/calendar-custom-messages.component.js +0 -45
- package/dist/npm/calendar/localization/calendar-localized-messages.directive.js +0 -37
- package/dist/npm/calendar/localization/calendar-messages.js +0 -32
- package/dist/npm/calendar/localization/multiview-calendar-custom-messages.component.js +0 -45
- package/dist/npm/calendar/localization/multiview-calendar-localized-messages.directive.js +0 -37
- package/dist/npm/calendar/localization/multiview-calendar-messages.js +0 -32
- package/dist/npm/calendar/models/cell-context.interface.js +0 -6
- package/dist/npm/calendar/models/keydown.interface.js +0 -6
- package/dist/npm/calendar/models/navigation-action.enum.js +0 -22
- package/dist/npm/calendar/models/row-length-options.interface.js +0 -6
- package/dist/npm/calendar/models/scrollable.interface.js +0 -6
- package/dist/npm/calendar/models/selection-range-end.type.js +0 -6
- package/dist/npm/calendar/models/selection-range.interface.js +0 -10
- package/dist/npm/calendar/models/selection.js +0 -6
- package/dist/npm/calendar/models/type.js +0 -6
- package/dist/npm/calendar/models/view-service.interface.js +0 -6
- package/dist/npm/calendar/models/view.enum.js +0 -18
- package/dist/npm/calendar/models/view.type.js +0 -6
- package/dist/npm/calendar/multiview-calendar.component.js +0 -1124
- package/dist/npm/calendar/multiview-calendar.module.js +0 -99
- package/dist/npm/calendar/navigation.component.js +0 -175
- package/dist/npm/calendar/services/bus-view.service.js +0 -85
- package/dist/npm/calendar/services/century-view.service.js +0 -182
- package/dist/npm/calendar/services/decade-view.service.js +0 -181
- package/dist/npm/calendar/services/disabled-dates.service.js +0 -72
- package/dist/npm/calendar/services/dom.service.js +0 -212
- package/dist/npm/calendar/services/month-view.service.js +0 -205
- package/dist/npm/calendar/services/navigation.service.js +0 -55
- package/dist/npm/calendar/services/scroll-sync.service.js +0 -88
- package/dist/npm/calendar/services/selection.service.js +0 -57
- package/dist/npm/calendar/services/weeknames.service.js +0 -29
- package/dist/npm/calendar/services/year-view.service.js +0 -207
- package/dist/npm/calendar/templates/cell-template.directive.js +0 -48
- package/dist/npm/calendar/templates/century-cell-template.directive.js +0 -47
- package/dist/npm/calendar/templates/decade-cell-template.directive.js +0 -47
- package/dist/npm/calendar/templates/header-title-template.directive.js +0 -46
- package/dist/npm/calendar/templates/month-cell-template.directive.js +0 -45
- package/dist/npm/calendar/templates/navigation-item-template.directive.js +0 -46
- package/dist/npm/calendar/templates/weeknumber-cell-template.directive.js +0 -45
- package/dist/npm/calendar/templates/year-cell-template.directive.js +0 -48
- package/dist/npm/calendar/templates.module.js +0 -61
- package/dist/npm/calendar/view-list.component.js +0 -303
- package/dist/npm/calendar/view.component.js +0 -320
- package/dist/npm/common/dom-queries.js +0 -26
- package/dist/npm/common/models/fillmode.js +0 -6
- package/dist/npm/common/models/rounded.js +0 -6
- package/dist/npm/common/models/size.js +0 -6
- package/dist/npm/common/picker.service.js +0 -20
- package/dist/npm/common/utils.js +0 -37
- package/dist/npm/dateinput/arrow.enum.js +0 -15
- package/dist/npm/dateinput/dateinput.component.js +0 -1620
- package/dist/npm/dateinput/dateinput.module.js +0 -39
- package/dist/npm/dateinput/localization/dateinput-custom-messages.component.js +0 -45
- package/dist/npm/dateinput/localization/dateinput-localized-messages.directive.js +0 -37
- package/dist/npm/dateinput/localization/messages.js +0 -28
- package/dist/npm/dateinput/models/format-placeholder.model.js +0 -6
- package/dist/npm/dateinput/models/format-settings.model.js +0 -6
- package/dist/npm/dateinput/models/incremental-steps.model.js +0 -6
- package/dist/npm/dateinputs.module.js +0 -65
- package/dist/npm/datepicker/datepicker.component.js +0 -1258
- package/dist/npm/datepicker/datepicker.module.js +0 -57
- package/dist/npm/datepicker/localization/datepicker-custom-messages.component.js +0 -45
- package/dist/npm/datepicker/localization/datepicker-localized-messages.directive.js +0 -37
- package/dist/npm/datepicker/localization/messages.js +0 -36
- package/dist/npm/daterange/auto-correct-on.type.js +0 -6
- package/dist/npm/daterange/date-range-end-input.directive.js +0 -99
- package/dist/npm/daterange/date-range-input.js +0 -133
- package/dist/npm/daterange/date-range-popup-template.directive.js +0 -25
- package/dist/npm/daterange/date-range-popup.component.js +0 -405
- package/dist/npm/daterange/date-range-selection.directive.js +0 -232
- package/dist/npm/daterange/date-range-start-input.directive.js +0 -99
- package/dist/npm/daterange/date-range.component.js +0 -73
- package/dist/npm/daterange/date-range.module.js +0 -85
- package/dist/npm/daterange/date-range.service.js +0 -211
- package/dist/npm/datetimepicker/datetimepicker.component.js +0 -1311
- package/dist/npm/datetimepicker/datetimepicker.module.js +0 -59
- package/dist/npm/datetimepicker/localization/datetimepicker-custom-messages.component.js +0 -45
- package/dist/npm/datetimepicker/localization/localized-messages.directive.js +0 -37
- package/dist/npm/datetimepicker/localization/messages.js +0 -76
- package/dist/npm/datetimepicker/models/active-tab.type.js +0 -6
- package/dist/npm/defaults.js +0 -26
- package/dist/npm/index.js +0 -127
- package/dist/npm/main.js +0 -68
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/popup-settings.model.js +0 -6
- package/dist/npm/preventable-event.js +0 -31
- package/dist/npm/timepicker/localization/messages.js +0 -48
- package/dist/npm/timepicker/localization/timepicker-custom-messages.component.js +0 -45
- package/dist/npm/timepicker/localization/timepicker-localized-messages.directive.js +0 -37
- package/dist/npm/timepicker/localization/timeselector-custom-messages.component.js +0 -47
- package/dist/npm/timepicker/localization/timeselector-localized-messages.directive.js +0 -37
- package/dist/npm/timepicker/models/incremental-steps.model.js +0 -6
- package/dist/npm/timepicker/models/list-item.interface.js +0 -6
- package/dist/npm/timepicker/models/list-service-settings.js +0 -6
- package/dist/npm/timepicker/models/list-service.interface.js +0 -6
- package/dist/npm/timepicker/models/time-part.default.js +0 -16
- package/dist/npm/timepicker/services/dayperiod.service.js +0 -136
- package/dist/npm/timepicker/services/dom.service.js +0 -70
- package/dist/npm/timepicker/services/hours.service.js +0 -134
- package/dist/npm/timepicker/services/milliseconds.service.js +0 -135
- package/dist/npm/timepicker/services/minutes.service.js +0 -132
- package/dist/npm/timepicker/services/seconds.service.js +0 -132
- package/dist/npm/timepicker/timelist.component.js +0 -299
- package/dist/npm/timepicker/timepicker.component.js +0 -1046
- package/dist/npm/timepicker/timepicker.module.js +0 -77
- package/dist/npm/timepicker/timeselector.component.js +0 -488
- package/dist/npm/timepicker/util.js +0 -101
- package/dist/npm/touch-enabled.js +0 -11
- package/dist/npm/util.js +0 -399
- package/dist/npm/validators/disabled-date.validator.js +0 -20
- package/dist/npm/validators/disabled-dates-range.validator.js +0 -30
- package/dist/npm/validators/incomplete-date.validator.js +0 -20
- package/dist/npm/validators/max.validator.js +0 -23
- package/dist/npm/validators/min.validator.js +0 -23
- package/dist/npm/validators/time-range.validator.js +0 -25
- package/dist/npm/virtualization/models/scrollable.interface.js +0 -6
- package/dist/npm/virtualization/services/row-height.service.js +0 -74
- package/dist/npm/virtualization/services/scroller.service.js +0 -113
- package/dist/npm/virtualization/virtualization.component.js +0 -346
- package/dist/npm/virtualization/virtualization.module.js +0 -32
- package/dist/systemjs/kendo-angular-dateinputs.js +0 -5
|
@@ -0,0 +1,5 @@
|
|
|
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){if(n&&n.__esModule)return n;var i=Object.create(null);return 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 Y(e){return e.preventDefault()}function $(e){return e.relatedTarget||document.activeElement}function r(e){return null!=e}function U(e){return null!=e}function K(n){return function(e,t){e=k.cloneDate(e);return e[n](t),e}}function q(e,t,n){return{candidateValue:Ve(ke,e),maxValue:k.addDays(Ve(ke,n),t.getHours()<n.getHours()||t.getHours()===n.getHours()&&t.getMinutes()<n.getMinutes()?0:1),minValue:Ve(ke,t)}}function W(e,t,n){void 0===n&&(n=1);for(var i=[],a=e;a<t;a+=n)i.push(a);return i}function Z(e,t,n){return!e||!(t&&e<t||n&&n<e)}function G(e,t,n){return!(e&&t&&n)||(e=q(e,t,n),t=e.candidateValue,n=e.minValue,e=e.maxValue,n<=t&&t<=e)}function X(e,t){return!U(e)||!U(t)||e<=t}function Q(e,t,n){return e&&(t&&e<t?k.cloneDate(t):n&&n<e?k.cloneDate(n):e)}function J(){return new Date}function ee(){return k.getDate(new Date)}function g(e){}function te(){return"undefined"!=typeof window}function ne(e,t){return e.slice(t).concat(e.slice(0,t))}function ie(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 ae(e,t){return void 0!==e[t]}function oe(e,t){return e[t]&&void 0!==e[t].currentValue&&null!==e[t].currentValue}function re(e){return(e=void 0===e?[]:e)&&e[e.length-1]}function se(e,t){var n=(t=t||Ie).start,t=t.end;return!(!n||!t)&&(n<e&&e<t)}function le(e,t){return e||t}function ce(e){return{start:e,end:e}}function pe(e,t){var n=(e=e||Ie).start,e=e.end,i=(t=t||Ie).start,t=t.end;return k.isEqual(n,i)&&k.isEqual(e,t)}function ue(e,n){return n=n||[],(e=e||[]).length===n.length&&e.every(function(e,t){return k.isEqual(e,n[t])})}function de(e,t){return e&&t?new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()):null}function he(e){return e?new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999):null}function me(e,t){return{small:"k-"+e+"-sm",medium:"k-"+e+"-md",large:"k-"+e+"-lg"}[t]}function ge(e){return{small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[e]}function fe(e,t){return{solid:"k-"+e+"-solid",flat:"k-"+e+"-flat",outline:"k-"+e+"-outline"}[t]}var l,f,a=_(h),o=_(t),ve=_(m),s=_(L),c=_(i),ye=_(z),be={name:"@progress/kendo-angular-dateinputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1647953833,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"},ke=((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=f=f||{})[u.month=0]="month",u[u.year=1]="year",u[u.decade=2]="decade",u[u.century=3]="century",new Date(1980,0,1)),Ce=new Date(1900,0,1),we=new Date(2099,11,31),De=new Date(1980,0,1),Te=new Date(1980,0,1,23,59,59),Ie={start:null,end:null},Ve=function(e,t){e=k.cloneDate(e);return e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e},xe=K("setFullYear"),Se=K("setHours"),Ee=K("setMinutes"),Re=K("setSeconds"),Oe=K("setMilliseconds"),Me=[[]],Ne=((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=(Fe.prototype.addToDate=function(e,t){return k.addCenturies(e,t)},Fe.prototype.datesList=function(t,e){return W(0,e).map(function(e){return k.addCenturies(t,e)})},Fe.prototype.data=function(e){var o=this,r=e.cellUID,s=e.focusedDate,l=e.isActiveView,c=e.max,p=e.min,u=e.selectedDates,t=e.selectionRange,d=void 0===t?Ie:t,t=e.viewDate;if(!t)return Me;var n=W(0,4),h=k.firstDecadeOfCentury(t),m=k.lastDecadeOfCentury(t),g=ee();return W(0,3).map(function(e){var a=k.addDecades(h,4*e);return n.map(function(e){var t=o.normalize(k.addDecades(a,e),p,c),e=t.getFullYear()>m.getFullYear();if(!o.isInRange(t,p,c)||e)return null;var e=o.isEqual(t,d.start),n=o.isEqual(t,d.end),i=!e&&!n&&se(t,d);return{formattedValue:o.value(t),id:""+r+t.getTime(),isFocused:o.isEqual(t,s),isSelected:l&&u.some(function(e){return o.isEqual(t,e)}),isWeekend:!1,isRangeStart:e,isRangeMid:i,isRangeEnd:n,isRangeSplitEnd:i&&o.isEqual(t,m),isRangeSplitStart:i&&o.isEqual(t,h),isToday:o.isEqual(t,g),title:o.cellTitle(t),value:t}})})},Fe.prototype.isEqual=function(e,t){return!(!e||!t)&&k.firstYearOfDecade(e).getFullYear()===k.firstYearOfDecade(t).getFullYear()},Fe.prototype.isInArray=function(e,t){if(!t.length)return!1;e=e.getFullYear();return t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()+99},Fe.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},Fe.prototype.beginningOfPeriod=function(e){if(!e)return e;e=k.firstYearOfDecade(k.firstDecadeOfCentury(e));return k.createDate(e.getFullYear(),0,1)},Fe.prototype.lastDayOfPeriod=function(e){e=k.lastDecadeOfCentury(e),e=k.lastYearOfDecade(e),e=k.lastMonthOfYear(e);return k.lastDayOfMonth(e)},Fe.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},Fe.prototype.move=function(e,t){t=Ne[t];return t?t(e):e},Fe.prototype.cellTitle=function(e){return k.firstYearOfDecade(e).getFullYear().toString()},Fe.prototype.navigationTitle=function(e){return e?k.firstDecadeOfCentury(e).getFullYear().toString():""},Fe.prototype.title=function(e){return e?k.firstDecadeOfCentury(e).getFullYear()+" - "+k.lastDecadeOfCentury(e).getFullYear():""},Fe.prototype.rowLength=function(){return 4},Fe.prototype.skip=function(e,t){return k.durationInCenturies(t,e)},Fe.prototype.total=function(e,t){return k.durationInCenturies(e,t)+1},Fe.prototype.value=function(e){return e?k.firstYearOfDecade(e).getFullYear().toString():""},Fe.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},Fe.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},Fe);function Fe(){this.dateRange=function(e,t){if(!r(e)||!r(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 Pe=[[]],Ae=((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=(Le.prototype.addToDate=function(e,t){return k.addDecades(e,t)},Le.prototype.datesList=function(t,e){return W(0,e).map(function(e){return k.addDecades(t,e)})},Le.prototype.data=function(e){var o=this,r=e.cellUID,s=e.focusedDate,l=e.isActiveView,c=e.max,p=e.min,u=e.selectedDates,t=e.selectionRange,d=void 0===t?Ie:t,t=e.viewDate;if(!t)return Pe;var n=W(0,4),h=k.firstYearOfDecade(t),m=k.lastYearOfDecade(t),g=ee();return W(0,3).map(function(e){var a=k.addYears(h,4*e);return n.map(function(e){var t=o.normalize(k.addYears(a,e),p,c),e=t.getFullYear()>m.getFullYear();if(!o.isInRange(t,p,c)||e)return null;var e=o.isEqual(t,d.start),n=o.isEqual(t,d.end),i=!e&&!n&&se(t,d);return{formattedValue:o.value(t),id:""+r+t.getTime(),isFocused:o.isEqual(t,s),isSelected:l&&u.some(function(e){return o.isEqual(t,e)}),isWeekend:!1,isRangeStart:e,isRangeMid:i,isRangeEnd:n,isRangeSplitEnd:i&&o.isEqual(t,m),isRangeSplitStart:i&&o.isEqual(t,h),isToday:o.isEqual(t,g),title:o.cellTitle(t),value:t}})})},Le.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()},Le.prototype.isInArray=function(e,t){if(!t.length)return!1;e=e.getFullYear();return t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()+9},Le.prototype.isInRange=function(e,t,n){e=e.getFullYear(),t=!t||t.getFullYear()<=e,e=!n||e<=n.getFullYear();return t&&e},Le.prototype.beginningOfPeriod=function(e){if(!e)return e;e=k.firstYearOfDecade(e);return k.createDate(e.getFullYear(),0,1)},Le.prototype.lastDayOfPeriod=function(e){e=k.lastYearOfDecade(e),e=k.lastMonthOfYear(e);return k.lastDayOfMonth(e)},Le.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},Le.prototype.move=function(e,t){t=Ae[t];return t?t(e):e},Le.prototype.cellTitle=function(e){return e.getFullYear().toString()},Le.prototype.navigationTitle=function(e){return e?k.firstYearOfDecade(e).getFullYear().toString():""},Le.prototype.title=function(e){return e?k.firstYearOfDecade(e).getFullYear()+" - "+k.lastYearOfDecade(e).getFullYear():""},Le.prototype.rowLength=function(){return 4},Le.prototype.skip=function(e,t){return k.durationInDecades(t,e)},Le.prototype.total=function(e,t){return k.durationInDecades(e,t)+1},Le.prototype.value=function(e){return e?e.getFullYear().toString():""},Le.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},Le.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},Le);function Le(){this.dateRange=function(e,t){if(!r(e)||!r(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 Be=[[]],ze=((je={})[l.Left]=function(e){return k.addDays(e,-1)},je[l.Up]=function(e){return k.addWeeks(e,-1)},je[l.Right]=function(e){return k.addDays(e,1)},je[l.Down]=function(e){return k.addWeeks(e,1)},je[l.PrevView]=function(e){return k.addMonths(e,-1)},je[l.NextView]=function(e){return k.addMonths(e,1)},je[l.FirstInView]=function(e){return k.firstDayOfMonth(e)},je[l.LastInView]=function(e){return k.lastDayOfMonth(e)},je),je=(_e.prototype.addToDate=function(e,t){return k.addMonths(e,t)},_e.prototype.datesList=function(t,e){return W(0,e).map(function(e){return k.addMonths(t,e)})},_e.prototype.data=function(e){var r=this,s=e.cellUID,l=e.focusedDate,c=e.isActiveView,p=e.max,u=e.min,d=e.selectedDates,t=e.selectionRange,h=void 0===t?Ie:t,t=e.viewDate,e=e.isDateDisabled,m=void 0===e?function(){return!1}:e;if(!t)return Be;var g=k.firstDayOfMonth(t),f=k.getDate(g),v=k.lastDayOfMonth(t),y=k.getDate(v),n=k.dayOfWeek(g,this._intlService.firstDay(),-1),i=W(0,7),b=ee();return W(0,6).map(function(e){var o=k.addDays(n,7*e);return i.map(function(e){var t=r.normalize(k.addDays(o,e),u,p),e=k.getDate(t),e=e<f||y<e;if(t<u||p<t)return null;var n=r.isEqual(t,h.start),i=r.isEqual(t,h.end),a=!n&&!i&&se(t,h);return{formattedValue:r.value(t),id:""+s+t.getTime(),isFocused:r.isEqual(t,l),isSelected:c&&d.some(function(e){return r.isEqual(t,e)}),isWeekend:r.isWeekend(t),isRangeStart:n,isRangeMid:a,isRangeEnd:i,isRangeSplitStart:a&&r.isEqual(t,g),isRangeSplitEnd:a&&r.isEqual(t,v),isToday:r.isEqual(t,b),title:r.cellTitle(t),value:t,isDisabled:m(t),isOtherMonth:e}})})},_e.prototype.isEqual=function(e,t){return!(!e||!t)&&k.getDate(e).getTime()===k.getDate(t).getTime()},_e.prototype.isInArray=function(e,t){if(0===t.length)return!1;var n=this.beginningOfPeriod(t[0]),t=this.beginningOfPeriod(k.addMonths(t[t.length-1],1));return n<=e&&e<t},_e.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},_e.prototype.beginningOfPeriod=function(e){return e&&k.createDate(e.getFullYear(),e.getMonth(),1)},_e.prototype.lastDayOfPeriod=function(e){return k.lastDayOfMonth(e)},_e.prototype.isRangeStart=function(e){return!e.getMonth()},_e.prototype.move=function(e,t){t=ze[t];return t?t(e):e},_e.prototype.cellTitle=function(e){return this._intlService.formatDate(e,"D")},_e.prototype.navigationTitle=function(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""},_e.prototype.title=function(e){return this.wideMonthNames()[e.getMonth()]+" "+e.getFullYear()},_e.prototype.rowLength=function(e){return 7+((e=void 0===e?{}:e).prependCell?1:0)},_e.prototype.skip=function(e,t){return k.durationInMonths(t,e)},_e.prototype.total=function(e,t){return k.durationInMonths(e,t)+1},_e.prototype.value=function(e){return e?e.getDate().toString():""},_e.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},_e.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},_e.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},_e.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},_e.prototype.wideMonthNames=function(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})},_e);function _e(e){this._intlService=e,this.dateRange=function(e,t){if(!r(e)||!r(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=k.addDays(i,1);return n}}je.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:je,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),je.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:je}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:je,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});var He=[[]],Ye=(($e={})[l.Left]=function(e){return k.addMonths(e,-1)},$e[l.Up]=function(e){return k.addMonths(e,4<(e=e.getMonth())?-5:e<2?-2:-7)},$e[l.Right]=function(e){return k.addMonths(e,1)},$e[l.Down]=function(e){return k.addMonths(e,(e=e.getMonth())<7?5:e<10?7:2)},$e[l.PrevView]=function(e){return k.addYears(e,-1)},$e[l.NextView]=function(e){return k.addYears(e,1)},$e[l.FirstInView]=function(e){return k.firstMonthOfYear(e)},$e[l.LastInView]=function(e){return k.lastMonthOfYear(e)},$e),$e=(Ue.prototype.addToDate=function(e,t){return k.addYears(e,t)},Ue.prototype.datesList=function(t,e){return W(0,e).map(function(e){return k.addYears(t,e)})},Ue.prototype.data=function(e){var o=this,r=e.cellUID,s=e.focusedDate,l=e.isActiveView,c=e.max,p=e.min,u=e.selectedDates,t=e.selectionRange,d=void 0===t?Ie:t,t=e.viewDate;if(!t)return He;var h=this.abbrMonthNames(),m=k.firstMonthOfYear(t),g=k.lastMonthOfYear(t),f=m.getFullYear(),n=W(0,4),v=ee();return W(0,3).map(function(e){var a=k.addMonths(m,4*e);return n.map(function(e){var t=o.normalize(k.addMonths(a,e),p,c),e=f<t.getFullYear();if(!o.isInRange(t,p,c)||e)return null;var e=o.isEqual(t,d.start),n=o.isEqual(t,d.end),i=!e&&!n&&se(t,d);return{formattedValue:h[t.getMonth()],id:""+r+t.getTime(),isFocused:o.isEqual(t,s),isSelected:l&&u.some(function(e){return o.isEqual(t,e)}),isWeekend:!1,isRangeStart:e,isRangeMid:i,isRangeEnd:n,isRangeSplitEnd:i&&o.isEqual(t,g),isRangeSplitStart:i&&o.isEqual(t,m),isToday:o.isEqual(t,v),title:o.cellTitle(t),value:t}})})},Ue.prototype.isEqual=function(e,t){return!(!e||!t)&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth())},Ue.prototype.isInArray=function(e,t){if(!t.length)return!1;e=e.getFullYear();return t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()},Ue.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},Ue.prototype.beginningOfPeriod=function(e){return e&&k.createDate(e.getFullYear(),0,1)},Ue.prototype.lastDayOfPeriod=function(e){e=k.lastMonthOfYear(e);return k.lastDayOfMonth(e)},Ue.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},Ue.prototype.move=function(e,t){t=Ye[t];return t?t(e):e},Ue.prototype.cellTitle=function(e){return e.getFullYear()+" "+this.value(e)},Ue.prototype.navigationTitle=function(e){return this.title(e)},Ue.prototype.title=function(e){return e?e.getFullYear().toString():""},Ue.prototype.rowLength=function(){return 4},Ue.prototype.skip=function(e,t){return k.durationInYears(t,e)},Ue.prototype.total=function(e,t){return k.durationInYears(e,t)+1},Ue.prototype.value=function(e){return e?this.abbrMonthNames()[e.getMonth()]:""},Ue.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},Ue.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},Ue.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},Ue);function Ue(e){this._intlService=e,this.dateRange=function(e,t){if(!r(e)||!r(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=k.addMonths(i,1);return n}}$e.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:$e,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),$e.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:$e}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:$e,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});(ot={})[f.month]=je,ot[f.year]=$e,ot[f.decade]=d,ot[f.century]=u;var Ke=ot,v=(qe.prototype.configure=function(e,t){this.bottom=e,this.top=t},qe.prototype.service=function(e){e=Ke[e];return e?this.injector.get(e):null},qe.prototype.moveDown=function(e){this.move(e,-1)},qe.prototype.moveUp=function(e){this.move(e,1)},qe.prototype.moveToBottom=function(e){e!==this.bottom&&this.viewChanged.emit({view:this.bottom})},qe.prototype.canMoveDown=function(e){return this.bottom<e},qe.prototype.canMoveUp=function(e){return e<this.top},qe.prototype.clamp=function(e){return e<this.bottom?this.bottom:e>this.top?this.top:e},qe.prototype.move=function(e,t){t=this.clamp(function(e,t){t=f[f[e+t]];return void 0!==t?t:e}(e,t));t!==e&&this.viewChanged.emit({view:t})},qe);function qe(e){this.injector=e,this.viewChanged=new h.EventEmitter,this.bottom=f.month,this.top=f.century}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}]}});Ze.prototype.getWeekNames=function(e){void 0===e&&(e=!1);var t=ne(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(t):t};var We=Ze;function Ze(e){this.intl=e}We.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:We,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),We.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:We}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:We,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});var Ge=function(e,t){return(Ge=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 Xe(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}Ge(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 Qe(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 Je(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e}function et(e,t){for(;e&&!t(e);)e=e.parentNode;return e}function tt(){return!1}nt.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=tt,this.notifyInvalidInput(t)))),this.notifyServiceChange()},nt.prototype.notifyInvalidInput=function(e){if(r(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.")},nt.prototype.notifyServiceChange=function(){this.changes.next()};var b=nt;function nt(){this.changes=new p.Subject,this.isDateDisabled=tt}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(at.prototype,"first",{get:function(){return 0===this.index},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"even",{get:function(){return this.index%2==0},enumerable:!1,configurable:!0}),Object.defineProperty(at.prototype,"odd",{get:function(){return!this.even},enumerable:!1,configurable:!0});var it=at;function at(e,t,n,i){this.$implicit=e,this.kForOf=t,this.index=n,this.count=i}Object.defineProperty(rt.prototype,"kForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!1,configurable:!0}),rt.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)+"'.")}}},rt.prototype.ngDoCheck=function(){var e;this._differ&&(e=this._differ.diff(this.kForOf))&&this._applyChanges(e)},rt.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 it(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 ot=rt;function rt(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._differ=null}ot.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ot,deps:[{token:a.ViewContainerRef},{token:a.TemplateRef},{token:a.IterableDiffers}],target:a.ɵɵFactoryTarget.Directive}),ot.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:ot,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:ot,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===f.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===f.month},C.prototype.shouldRenderCellContent=function(e){return r(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){e=this.firstWeekDateContext(e);if(!this.weekNumber||!e)return null;var t=k.weekInYear(e.value,this.intl.firstDay()).toString();return{formattedValue:t,id:null,isFocused:!1,isSelected:!1,isWeekend:!1,title:t,value:k.cloneDate(e.value)}},C.prototype.getStyles=function(e){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-state-active":o||a,"k-state-focused":!e.isOtherMonth&&this.isActive&&e.isFocused,"k-state-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.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=re(this.selectedDates)||ee(),e=Ve(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 Je(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 st=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.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)))}st.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:st,deps:[{token:v},{token:s.IntlService},{token:a.ChangeDetectorRef},{token:a.ElementRef},{token:a.NgZone},{token:a.Renderer2},{token:b}],target:a.ɵɵFactoryTarget.Component}),st.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:st,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"},usesOnChanges:!0,ngImport:a,template:'\n <ng-template #emptyCell><td class="k-empty k-calendar-td"> </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 *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 [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:ot,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]},{type:ve.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:st,decorators:[{type:h.Component,args:[{selector:"[kendoCalendarView]",template:'\n <ng-template #emptyCell><td class="k-empty k-calendar-td"> </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 *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 [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}]}});Object.defineProperty(ct.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"getComponentMonthClass",{get:function(){return this.activeView===f.month},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"getComponentYearClass",{get:function(){return this.activeView===f.year},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===f.decade},enumerable:!1,configurable:!0}),Object.defineProperty(ct.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===f.century},enumerable:!1,configurable:!0}),ct.prototype.ngOnChanges=function(e){var t,n,i;this.initService(),0!==this.weekNames.length&&!e.weekNumber||(this.weekNames=this.weekService.getWeekNames(this.weekNumber)),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=ae(e,"activeView"),e=0<this.views&&ae(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)))},ct.prototype.ngAfterViewInit=function(){1===this.views&&this.setTableMinWidth()},ct.prototype.ngOnDestroy=function(){this.intlSubscription.unsubscribe()},ct.prototype.initService=function(){this.service=this.bus.service(this.activeView)},ct.prototype.isMonthView=function(){return this.activeView===f.month},ct.prototype.getCaptionTitle=function(e){return this.service.title(e)},ct.prototype.getCaptionClass=function(){return this.isMonthView()?"k-month-header":"k-meta-header"},ct.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()})},ct.prototype.navigate=function(e){this.animateNavigation&&m.isDocumentAvailable()&&r(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)},ct.prototype.canNavigate=function(e){return!!this.service&&this.isListInRange(this.service.datesList(this.move(e),this.getTake(this.skip)))},ct.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"))},ct.prototype.intlChange=function(){this.weekNames=this.weekService.getWeekNames(this.weekNumber),this.cdr.markForCheck()},ct.prototype.clampDate=function(e){return Q(e,this.min,this.max)},ct.prototype.move=function(e){return this.service.move(this.dates[0]||this.focusedDate,e)},ct.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},ct.prototype.isInDates=function(e){return this.service.isInArray(e,this.dates)},ct.prototype.getTake=function(e){return Math.min(this.total-e,this.views)};var lt=ct;function ct(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=f.month,this.isActive=!0,this.min=new Date(Ce),this.max=new Date(we),this.selectedDates=[],this.views=2,this.showViewHeader=!1,this.animateNavigation=!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.getComponentClass=!0,this.weekNames=[],this.dates=[],this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}lt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:lt,deps:[{token:v},{token:s.IntlService},{token:We},{token:a.ChangeDetectorRef},{token:a.ElementRef},{token:a.Renderer2}],target:a.ɵɵFactoryTarget.Component}),lt.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:lt,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",weekNumber:"weekNumber"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",cellEnter:"cellEnter",cellLeave:"cellLeave",activeDateChange:"activeDateChange"},host:{properties:{"class.k-calendar-view":"this.getComponentClass","class.k-hstack":"this.getComponentClass","class.k-align-items-start":"this.getComponentClass","class.k-justify-content-center":"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"}},usesOnChanges:!0,ngImport:a,template:'\n <ng-template #tableTemplate let-date="date" let-class="className">\n <table\n role="grid"\n class="k-content k-calendar-content k-calendar-table"\n [ngClass]="class"\n >\n <caption *ngIf="showViewHeader" [ngClass]="getCaptionClass()">{{ getCaptionTitle(date) }}</caption>\n <thead *ngIf="isMonthView()" class="k-calendar-thead">\n <tr class="k-calendar-tr" role="row">\n <th *ngFor="let name of weekNames" class="k-calendar-th">{{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 >\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:st,selector:"[kendoCalendarView]",inputs:["direction","isActive","activeView","cellUID","focusedDate","viewDate","activeRangeEnd","selectionRange","min","max","selectedDates","weekNumber","viewIndex","templateRef","weekNumberTemplateRef"],outputs:["cellClick","weekNumberCellClick","cellEnter","cellLeave"]}],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:ot,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:lt,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 role="grid"\n class="k-content k-calendar-content k-calendar-table"\n [ngClass]="class"\n >\n <caption *ngIf="showViewHeader" [ngClass]="getCaptionClass()">{{ getCaptionTitle(date) }}</caption>\n <thead *ngIf="isMonthView()" class="k-calendar-thead">\n <tr class="k-calendar-tr" role="row">\n <th *ngFor="let name of weekNames" class="k-calendar-th">{{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 >\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:We},{type:a.ChangeDetectorRef},{type:a.ElementRef},{type:a.Renderer2}]},propDecorators:{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}],weekNumber:[{type:h.Input}],cellClick:[{type:h.Output}],weekNumberCellClick:[{type:h.Output}],cellEnter:[{type:h.Output}],cellLeave:[{type:h.Output}],activeDateChange:[{type:h.Output}],getComponentClass:[{type:h.HostBinding,args:["class.k-calendar-view"]},{type:h.HostBinding,args:["class.k-hstack"]},{type:h.HostBinding,args:["class.k-align-items-start"]},{type:h.HostBinding,args:["class.k-justify-content-center"]}],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"]}]}});ut.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)))},ut.prototype.ngOnChanges=function(e){this.bus.service(this.activeView)&&(this.activeViewValue=f[this.activeView],this.todayMessage=this.localization.get("today"),this.setTodayAvailability(),this.navigate=this.bus.canMoveUp(this.activeView),this.title=this.getTitle())},ut.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},ut.prototype.handleTodayClick=function(){this.todayAvailable&&(this.bus.moveToBottom(this.activeView),this.todayButtonClick.emit(Q(ee(),this.min,this.max)))},ut.prototype.handleNavigation=function(){this.navigate&&this.bus.moveUp(this.activeView)},ut.prototype.intlChange=function(){this.currentDate&&this.bus.service(this.activeView)&&(this.title=this.getTitle(),this.cdr.markForCheck())},ut.prototype.l10nChange=function(){this.prevButtonTitle=this.localization.get("prevButtonTitle"),this.nextButtonTitle=this.localization.get("nextButtonTitle"),this.todayMessage=this.localization.get("today"),this.cdr.markForCheck()},ut.prototype.getTitle=function(){if(!this.currentDate)return"";var e=this.bus.service(this.activeView),t=this.rangeLength-1,n=e.title(this.currentDate),i=e.addToDate(this.currentDate,t);return t<1||!e.isInRange(i,this.min,this.max)?n:n+" - "+e.title(i)},ut.prototype.setTodayAvailability=function(){var e=ee(),t=Z(e,k.getDate(this.min),k.getDate(this.max)),e=this.disabledDatesService.isDateDisabled(e);this.todayAvailable=t&&!e,this.cdr.markForCheck()};var pt=ut;function ut(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(Ce),this.max=new Date(we),this.rangeLength=1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.showNavigationButtons=!1,this.todayButtonClick=new h.EventEmitter,this.prevButtonClick=new h.EventEmitter,this.nextButtonClick=new h.EventEmitter,this.getComponentClass=!0,this.subscriptions=new p.Subscription}pt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:pt,deps:[{token:v},{token:a.ChangeDetectorRef},{token:o.LocalizationService},{token:s.IntlService},{token:b}],target:a.ɵɵFactoryTarget.Component}),pt.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:pt,selector:"kendo-calendar-header",inputs:{activeView:"activeView",currentDate:"currentDate",min:"min",max:"max",rangeLength:"rangeLength",templateRef:"templateRef",isPrevDisabled:"isPrevDisabled",isNextDisabled:"isNextDisabled",showNavigationButtons:"showNavigationButtons"},outputs:{todayButtonClick:"todayButtonClick",prevButtonClick:"prevButtonClick",nextButtonClick:"nextButtonClick"},host:{properties:{"class.k-calendar-header":"this.getComponentClass","class.k-hstack":"this.getComponentClass"}},usesOnChanges:!0,ngImport:a,template:'\n <span class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-calendar-title" [class.k-disabled]="!navigate"\n [kendoEventsOutsideAngular]="{\n click: handleNavigation\n }"\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-prev-view"\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-arrow-60-left"></span>\n </button>\n <span\n class="k-today k-nav-today"\n [class.k-disabled]="!todayAvailable"\n [kendoEventsOutsideAngular]="{\n click: handleTodayClick\n }"\n [scope]="this"\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-next-view"\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-arrow-60-right"></span>\n </button>\n </span>\n ',isInline:!0,directives:[{type:ve.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:pt,decorators:[{type:h.Component,args:[{selector:"kendo-calendar-header",template:'\n <span class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-calendar-title" [class.k-disabled]="!navigate"\n [kendoEventsOutsideAngular]="{\n click: handleNavigation\n }"\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-prev-view"\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-arrow-60-left"></span>\n </button>\n <span\n class="k-today k-nav-today"\n [class.k-disabled]="!todayAvailable"\n [kendoEventsOutsideAngular]="{\n click: handleTodayClick\n }"\n [scope]="this"\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-next-view"\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-arrow-60-right"></span>\n </button>\n </span>\n '}]}],ctorParameters:function(){return[{type:v},{type:a.ChangeDetectorRef},{type:o.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}],todayButtonClick:[{type:h.Output}],prevButtonClick:[{type:h.Output}],nextButtonClick:[{type:h.Output}],getComponentClass:[{type:h.HostBinding,args:["class.k-calendar-header"]},{type:h.HostBinding,args:["class.k-hstack"]}]}});var dt={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},ht=(mt.prototype.action=function(e){e=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return dt[e]},mt.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},mt);function mt(e){this.bus=e}ht.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ht,deps:[{token:v}],target:a.ɵɵFactoryTarget.Injectable}),ht.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ht}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ht,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:v}]}});ft.prototype.performSelection=function(e){var t=e.date,n=e.modifiers,i=e.selectionMode,a=e.activeViewEnum,o=e.rangePivot,e=e.selectedDates.slice();return o="multiple"===i?n.ctrlKey||n.metaKey?(this.isDateSelected(e,t)?e=e.filter(function(e){return!k.isEqual(e,t)}):e.push(t),t):n.shiftKey?(n=(i=y([o||t,t].filter(r).sort(function(e,t){return e.getTime()-t.getTime()}),2))[0],i=i[1],e=this.bus.service(a).dateRange(n,i),t>e[0]?e[0]:re(e)):(e=[t],t):(e=[t],t),{selectedDates:e,rangePivot:o}},ft.prototype.isDateSelected=function(e,t){return e.some(function(e){return k.isEqual(e,t)})};var gt=ft;function ft(e){this.bus=e}gt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:gt,deps:[{token:v}],target:a.ɵɵFactoryTarget.Injectable}),gt.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:gt}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:gt,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 yt(n){return function(e){var t={maxError:{maxValue:n,value:e.value}};return n&&e.value&&e.value>n?t:null}}function bt(){return null}function kt(t){return r(t)?function(e){if(!(r(e)&&r(e.start)&&r(e.end))||e.start>e.end)return null;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);return e.length?{disabledDatesInRange:e}:null}:bt}var Ct,wt=function(e){this.templateRef=e},Dt=(wt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:wt,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),wt.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:wt,selector:"[kendoCalendarCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:wt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarCellTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),function(e){this.templateRef=e}),Tt=(Dt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Dt,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),Dt.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Dt,selector:"[kendoCalendarMonthCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Dt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarMonthCellTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),function(e){this.templateRef=e}),It=(Tt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Tt,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),Tt.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Tt,selector:"[kendoCalendarYearCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Tt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarYearCellTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),function(e){this.templateRef=e}),Vt=(It.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:It,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),It.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:It,selector:"[kendoCalendarDecadeCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:It,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarDecadeCellTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),function(e){this.templateRef=e}),xt=(Vt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Vt,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),Vt.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Vt,selector:"[kendoCalendarCenturyCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Vt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarCenturyCellTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),function(e){this.templateRef=e}),St=(xt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:xt,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),xt.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:xt,selector:"[kendoCalendarWeekNumberCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:xt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarWeekNumberCellTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),function(e){this.templateRef=e}),w=(St.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:St,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),St.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:St,selector:"[kendoCalendarHeaderTitleTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:St,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarHeaderTitleTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),Xe(Et,Ct=t.ComponentMessages),Et);function Et(){return null!==Ct&&Ct.apply(this,arguments)||this}w.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:w,deps:null,target:a.ɵɵFactoryTarget.Directive}),w.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:w,selector:"kendo-multiview-calendar-messages-base",inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:w,decorators:[{type:h.Directive,args:[{selector:"kendo-multiview-calendar-messages-base"}]}],propDecorators:{today:[{type:h.Input}],prevButtonTitle:[{type:h.Input}],nextButtonTitle:[{type:h.Input}]}});Xe(Mt,Rt=w);var Rt,Ot=Mt;function Mt(e){var t=Rt.call(this)||this;return t.service=e,t}Ot.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ot,deps:[{token:o.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),Ot.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ot,selector:"[kendoMultiViewCalendarLocalizedMessages]",providers:[{provide:w,useExisting:h.forwardRef(function(){return Ot})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ot,decorators:[{type:h.Directive,args:[{providers:[{provide:w,useExisting:h.forwardRef(function(){return Ot})}],selector:"[kendoMultiViewCalendarLocalizedMessages]"}]}],ctorParameters:function(){return[{type:o.LocalizationService}]}});var Nt="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",D={multi:!0,provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return Pt})},Ft={multi:!0,provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return Pt})},Pt=(Object.defineProperty(T.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){this._focusedDate=e||ee()},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(Ce)},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(we)},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter(r).map(function(e){return k.cloneDate(e)}):k.cloneDate(e);var t,e=[].concat(e).filter(r).map(function(e){return k.cloneDate(e)});ue(e,this.selectedDates)||(t=re(e),this.rangePivot=k.cloneDate(t),this.focusedDate=k.cloneDate(t)||this.focusedDate,this.selectedDates=e)},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"disabledDates",{set:function(e){this.disabledDatesService.initialize(e)},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"selectionRange",{get:function(){return this._selectionRange},set:function(e){this._selectionRange=e,this.disabledDatesRangeValidation&&this.onValidatorChange()},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"cellTemplateRef",{get:function(){return this._cellTemplateRef||this.cellTemplate},set:function(e){this._cellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"monthCellTemplateRef",{get:function(){return this._monthCellTemplateRef||this.monthCellTemplate},set:function(e){this._monthCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"yearCellTemplateRef",{get:function(){return this._yearCellTemplateRef||this.yearCellTemplate},set:function(e){this._yearCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"decadeCellTemplateRef",{get:function(){return this._decadeCellTemplateRef||this.decadeCellTemplate},set:function(e){this._decadeCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"centuryCellTemplateRef",{get:function(){return this._centuryCellTemplateRef||this.centuryCellTemplate},set:function(e){this._centuryCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"weekNumberTemplateRef",{get:function(){return this._weekNumberTemplateRef||this.weekNumberTemplate},set:function(e){this._weekNumberTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"headerTitleTemplateRef",{get:function(){return this._headerTitleTemplateRef||this.headerTitleTemplate},set:function(e){this._headerTitleTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"activeViewEnum",{get:function(){var e=f[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"bottomViewEnum",{get:function(){return f[this.bottomView]},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"topViewEnum",{get:function(){return f[this.topView]},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"widgetId",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"calendarTabIndex",{get:function(){return this.disabled?void 0:this.tabIndex},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"ariaActivedescendant",{get:function(){return this.cellUID+this.focusedDate.getTime()},enumerable:!1,configurable:!0}),T.prototype.handleFocusout=function(e){var t=e.relatedTarget;this.element.nativeElement.contains(t)||(this.blurEvent.emit(e),this.onControlTouched()),this.isActive=!1,this.isHovered=!1,this.isHeaderActive=this.headerElement.nativeElement.contains(t)},T.prototype.handleFocus=function(){this.isActive=!0,this.isHeaderActive=!1},T.prototype.handleMouseEnter=function(){this.isHovered=!0},T.prototype.handleMouseLeave=function(){this.isHovered=!1},T.prototype.handleMousedown=function(e){e.preventDefault()},T.prototype.handleClick=function(){this.isActive||this.focus()},T.prototype.keydown=function(e){var t;this.isHeaderActive||(e.keyCode===m.Keys.Enter&&this.performSelection(this.focusedDate,e),t=Q(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max),k.isEqual(this.focusedDate,t)||(this.focusedDate=t,e.preventDefault(),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)))},T.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.bus.viewChanged.subscribe(function(e){e=e.view;t.activeView=f[e],t.activeViewChange.emit(t.activeView),t.cdr.detectChanges(),t.updateButtonState()}))},T.prototype.ngOnChanges=function(e){var t;this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),oe(e,"focusedDate")&&(t=e.focusedDate.currentValue,this.focusedDate=Q(t,this.min,this.max)),(e.min||e.max||e.rangeValidation||e.disabledDates||e.disabledDatesRangeValidation)&&(this.minValidateFn=this.rangeValidation?vt(this.min):g,this.maxValidateFn=this.rangeValidation?yt(this.max):g,this.disabledDatesRangeValidateFn=this.disabledDatesRangeValidation?kt(this.disabledDatesService.isDateDisabled):g,this.onValidatorChange()),(e.min||e.max||e.focusedDate||e.activeView)&&this.updateButtonState()},T.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},T.prototype.ngAfterViewInit=function(){this.updateButtonState()},T.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},T.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},T.prototype.handleHeaderFocus=function(){this.isHeaderActive=!0},T.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&&ue(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))))},T.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)},T.prototype.setActiveDate=function(e){this.activeDate=k.cloneDate(e),this.cdr.detectChanges()},T.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},T.prototype.registerOnChange=function(e){this.onControlChange=e},T.prototype.registerOnTouched=function(e){this.onControlTouched=e},T.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},T.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesRangeValidateFn(this.selectionRange)},T.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},T.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case f.month:return this.monthCellTemplateRef||this.cellTemplateRef;case f.year:return this.yearCellTemplateRef;case f.decade:return this.decadeCellTemplateRef;case f.century:return this.centuryCellTemplateRef;default:return null}},T.prototype.navigateView=function(e){this.focusedDate=this.viewList.navigate(e),this.updateButtonState(),this.emitNavigate(this.focusedDate)},T.prototype.emitNavigate=function(e){var t=f[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},T.prototype.emitCellEvent=function(e,t){m.hasObservers(e)&&this.zone.run(function(){e.emit(t)})},T.prototype.handleCellClick=function(e){var t=e.date,e=e.modifiers;this.performSelection(t,e),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)},T.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.zone.run(function(){t.handleDateChange({selectedDates:e,focusedDate:re(e)})})},T.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-range")},T.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.")}},T.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 "+Nt+" 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 "+Nt+" for possible resolution.")}},T.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()})},T.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?k.cloneDate(re(e)):e.map(function(e){return k.cloneDate(e)})},T.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})},T);function T(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.id=m.guid(),this.rangeValidation=!1,this.disabledDatesRangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.isActive=!1,this.isHeaderActive=!1,this.activeView=f[f.month],this.bottomView=f[f.month],this.topView=f[f.century],this.showViewHeader=!1,this.animateNavigation=!1,this.weekNumber=!1,this.views=2,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.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(Ce),this._max=new Date(we),this._focusedDate=ee(),this.resolvedPromise=Promise.resolve(),this.onControlChange=g,this.onControlTouched=g,this.onValidatorChange=g,this.minValidateFn=g,this.maxValidateFn=g,this.disabledDatesRangeValidateFn=g,this.subscriptions=new p.Subscription,this.setClasses(t.nativeElement)}Pt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Pt,deps:[{token:v},{token:a.ElementRef},{token:ht},{token:a.Renderer2},{token:a.ChangeDetectorRef},{token:a.NgZone},{token:b},{token:gt}],target:a.ɵɵFactoryTarget.Component}),Pt.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Pt,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",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"},host:{listeners:{focusout:"handleFocusout($event)",focus:"handleFocus()",mouseenter:"handleMouseEnter()",mouseleave:"handleMouseLeave()",mousedown:"handleMousedown($event)",click:"handleClick()",keydown:"keydown($event)"},properties:{"attr.id":"this.widgetId","attr.tabindex":"this.calendarTabIndex","attr.aria-disabled":"this.ariaDisabled","class.k-disabled":"this.ariaDisabled","attr.aria-activedescendant":"this.ariaActivedescendant"}},providers:[v,D,Ft,t.LocalizationService,b,{provide:t.L10N_PREFIX,useValue:"kendo.multiviewcalendar"},ht,gt],queries:[{propertyName:"cellTemplate",first:!0,predicate:wt,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Dt,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:Tt,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:It,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:Vt,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:xt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:St,descendants:!0}],viewQueries:[{propertyName:"headerElement",first:!0,predicate:pt,descendants:!0,read:h.ElementRef},{propertyName:"viewList",first:!0,predicate:lt,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 </ng-container>\n <kendo-calendar-header\n [activeView]="activeViewEnum"\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [rangeLength]="views"\n [templateRef]="headerTitleTemplateRef?.templateRef"\n [isPrevDisabled]="isPrevDisabled"\n [isNextDisabled]="isNextDisabled"\n [showNavigationButtons]="true"\n (todayButtonClick)="handleTodayButtonClick({ selectedDates: [$event], focusedDate: $event })"\n (prevButtonClick)="navigateView(prevView)"\n (nextButtonClick)="navigateView(nextView)"\n [kendoEventsOutsideAngular]="{\n focusin: handleHeaderFocus\n }"\n [scope]="this"\n >\n </kendo-calendar-header>\n <kendo-calendar-horizontal\n [activeView]="activeViewEnum"\n [isActive]="isActive || (isHovered && !isHeaderActive)"\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 (cellClick)="handleCellClick($event)"\n (weekNumberCellClick)="handleWeekNumberClick($event)"\n (cellEnter)="emitCellEvent(cellEnter, $event)"\n (cellLeave)="emitCellEvent(cellLeave, $event)"\n (activeDateChange)="setActiveDate($event)"\n >\n </kendo-calendar-horizontal>\n ',isInline:!0,components:[{type:pt,selector:"kendo-calendar-header",inputs:["activeView","currentDate","min","max","rangeLength","templateRef","isPrevDisabled","isNextDisabled","showNavigationButtons"],outputs:["todayButtonClick","prevButtonClick","nextButtonClick"]},{type:lt,selector:"kendo-calendar-horizontal",inputs:["cellTemplateRef","weekNumberTemplateRef","activeRangeEnd","activeView","cellUID","focusedDate","isActive","min","max","selectionRange","selectedDates","views","showViewHeader","animateNavigation","weekNumber"],outputs:["cellClick","weekNumberCellClick","cellEnter","cellLeave","activeDateChange"]}],directives:[{type:Ot,selector:"[kendoMultiViewCalendarLocalizedMessages]"},{type:ve.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Pt,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-multiviewcalendar",providers:[v,D,Ft,t.LocalizationService,b,{provide:t.L10N_PREFIX,useValue:"kendo.multiviewcalendar"},ht,gt],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 </ng-container>\n <kendo-calendar-header\n [activeView]="activeViewEnum"\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [rangeLength]="views"\n [templateRef]="headerTitleTemplateRef?.templateRef"\n [isPrevDisabled]="isPrevDisabled"\n [isNextDisabled]="isNextDisabled"\n [showNavigationButtons]="true"\n (todayButtonClick)="handleTodayButtonClick({ selectedDates: [$event], focusedDate: $event })"\n (prevButtonClick)="navigateView(prevView)"\n (nextButtonClick)="navigateView(nextView)"\n [kendoEventsOutsideAngular]="{\n focusin: handleHeaderFocus\n }"\n [scope]="this"\n >\n </kendo-calendar-header>\n <kendo-calendar-horizontal\n [activeView]="activeViewEnum"\n [isActive]="isActive || (isHovered && !isHeaderActive)"\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 (cellClick)="handleCellClick($event)"\n (weekNumberCellClick)="handleWeekNumberClick($event)"\n (cellEnter)="emitCellEvent(cellEnter, $event)"\n (cellLeave)="emitCellEvent(cellLeave, $event)"\n (activeDateChange)="setActiveDate($event)"\n >\n </kendo-calendar-horizontal>\n '}]}],ctorParameters:function(){return[{type:v},{type:a.ElementRef},{type:ht},{type:a.Renderer2},{type:a.ChangeDetectorRef},{type:a.NgZone},{type:b},{type:gt}]},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}],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"]}],cellTemplate:[{type:h.ContentChild,args:[wt,{static:!1}]}],cellTemplateRef:[{type:h.Input,args:["cellTemplate"]}],monthCellTemplate:[{type:h.ContentChild,args:[Dt,{static:!1}]}],monthCellTemplateRef:[{type:h.Input,args:["monthCellTemplate"]}],yearCellTemplate:[{type:h.ContentChild,args:[Tt,{static:!1}]}],yearCellTemplateRef:[{type:h.Input,args:["yearCellTemplate"]}],decadeCellTemplate:[{type:h.ContentChild,args:[It,{static:!1}]}],decadeCellTemplateRef:[{type:h.Input,args:["decadeCellTemplate"]}],centuryCellTemplate:[{type:h.ContentChild,args:[Vt,{static:!1}]}],centuryCellTemplateRef:[{type:h.Input,args:["centuryCellTemplate"]}],weekNumberTemplate:[{type:h.ContentChild,args:[xt,{static:!1}]}],weekNumberTemplateRef:[{type:h.Input,args:["weekNumberTemplate"]}],headerTitleTemplate:[{type:h.ContentChild,args:[St,{static:!1}]}],headerTitleTemplateRef:[{type:h.Input,args:["headerTitleTemplate"]}],headerElement:[{type:h.ViewChild,args:[pt,{static:!1,read:h.ElementRef}]}],viewList:[{type:h.ViewChild,args:[lt,{static:!1}]}],widgetId:[{type:h.HostBinding,args:["attr.id"]}],calendarTabIndex:[{type:h.HostBinding,args:["attr.tabindex"]}],ariaDisabled:[{type:h.HostBinding,args:["attr.aria-disabled"]},{type:h.HostBinding,args:["class.k-disabled"]}],ariaActivedescendant:[{type:h.HostBinding,args:["attr.aria-activedescendant"]}],handleFocusout:[{type:h.HostListener,args:["focusout",["$event"]]}],handleFocus:[{type:h.HostListener,args:["focus"]}],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"]]}]}});Lt.prototype.height=function(e){return this.heights[e]},Lt.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},Lt.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},Lt.prototype.index=function(i){var e;if(!(i<0))return e=this.offsets.reduce(function(e,t,n){return void 0!==e?e:t===i?n:i<t?n-1:void 0},void 0),void 0===e?this.total-1:e},Lt.prototype.offset=function(e){return this.offsets[e]},Lt.prototype.totalHeight=function(){return this.heights.reduce(function(e,t){return e+t},0)},Lt.prototype.updateRowHeight=function(e,t){var n,i;this.heights[e]+=t,this.offsets=(n=this.offsets,e=e,i=t,Qe(Qe([],y(n.slice(0,e+1))),y(n.slice(e+1).map(function(e){return e+i}))))};var At=Lt;function Lt(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 Bt(e){return Math.max(e,0)}var zt=function(e){this.offset=e},jt=function(e){this.skip=e},_t=(Ht.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=Bt(t-e);return l.next(new zt(this.rowOffset(n))),e&&l.next(new jt(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},Ht.prototype.destroy=function(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()},Ht.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(Bt(i-this.topOffset)),i=this.rowHeightService.index(Bt(i+n-this.bottomOffset)),!a&&i>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=e,t.next(new zt(this.rowOffset(e))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new jt(this.firstLoaded))),a&&e<=this.firstLoaded&&(n=Math.floor(.3*this.take),this.firstLoaded=Bt(e-n),t.next(new zt(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new jt(this.firstLoaded))))},Ht.prototype.rowOffset=function(e){return this.rowHeightService.offset(e)+this.topOffset},Ht.prototype.rowsForHeight=function(e){return Math.ceil(e/this.rowHeightService.height(0))},Ht.prototype.unsubscribe=function(){this.scrollSubscription&&(this.scrollSubscription.unsubscribe(),this.scrollSubscription=null)},Ht);function Ht(e){this.scrollObservable=e,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}var Yt,$t=new h.InjectionToken("dateinputs-scroll-service-factory");function Ut(e){return new _t(e)}(D=Yt=Yt||{})[D.Backward=0]="Backward",D[D.Forward=1]="Forward";(Ft={})[Yt.Forward]=function(t){return function(e){return e+t}},Ft[Yt.Backward]=function(t){return function(e){return e-t}};var Kt=Ft,qt=((D={})[Yt.Forward]=function(t){return function(e){return Math.min(e,t)}},D[Yt.Backward]=function(t){return function(e){return Math.max(e,t)}},D),Wt=((Ft={})[Yt.Forward]=function(t){return function(e){return e<t}},Ft[Yt.Backward]=function(t){return function(e){return t<e}},Ft),D=(Object.defineProperty(I.prototype,"horizontalClass",{get:function(){return"horizontal"===this.direction},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"totalVertexLength",{get:function(){var e=this.totalSize+"px";return"vertical"===this.direction?{height:e}:{width:e}},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"containerOffsetSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"containerScrollSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"containerScrollPosition",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")},enumerable:!1,configurable:!0}),I.prototype.ngOnChanges=function(e){(e.direction||e.take||e.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)},I.prototype.ngOnInit=function(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())},I.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()})})},I.prototype.ngOnDestroy=function(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()},I.prototype.getContainerProperty=function(e){return this.container.nativeElement[e]},I.prototype.activeIndex=function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))},I.prototype.itemIndex=function(e){return this.rowHeightService.index(e)},I.prototype.itemOffset=function(e){return this.rowHeightService.offset(e)},I.prototype.isIndexVisible=function(e){if(!this.rowHeightService)return!1;var t=this.containerScrollPosition,n=t+this.containerOffsetSize,i=this.rowHeightService.offset(e),e=i+this.rowHeightService.height(e);return t<=i&&e<=n},I.prototype.isListScrolled=function(e){return this.containerScrollPosition!==this.rowHeightService.offset(e)},I.prototype.scrollTo=function(e){var t="vertical"===this.direction?"scrollTop":"scrollLeft";this.renderer.setProperty(this.container.nativeElement,t,e)},I.prototype.scrollToIndex=function(e){var t=this;this.zone.runOutsideAngular(function(){t.resolvedPromise.then(function(){t.scrollTo(t.rowHeightService.offset(e))})})},I.prototype.scrollToBottom=function(){this.scrollTo(this.totalSize)},I.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=Kt[r](t),i=qt[r](e),a=Wt[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)})}))},I.prototype.scrollRange=function(e,t){var n=this.containerScrollPosition;if(parseInt(e,10)===parseInt(n,10))return{start:e,end:e};var i=this.containerMaxScroll(),t=t===Yt.Backward?1:-1,n=(a=this.maxScrollDifference,Math.min(Math.abs(e-n),a)),a=Math.min(e,i);return{start:Math.min(Math.max(a+t*n,0),i),end:a}},I.prototype.scrollStep=function(e,t){return Math.abs(t-e)/(this.scrollDuration/17)},I.prototype.scroll$=function(){return m.isDocumentAvailable()?p.fromEvent(this.container.nativeElement,"scroll"):p.EMPTY},I.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 jt?t.pageChange:t.scrollChange).emit(e)})},I.prototype.createRowHeightService=function(){var e="vertical"===this.direction?this.itemHeight:this.itemWidth;return new At(this.total,e,0)},I.prototype.emitActiveIndex=function(){var e=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==e&&(this.lastActiveIndex=e,this.activeIndexChange.emit(e))},I.prototype.containerMaxScroll=function(){return this.containerScrollSize-this.containerOffsetSize},I.prototype.getContainerScrollDirection=function(e){return e<this.containerScrollPosition?Yt.Backward:Yt.Forward},I);function I(e,t,n,i){this.container=t,this.renderer=n,this.zone=i,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)}D.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:D,deps:[{token:$t},{token:a.ElementRef},{token:a.Renderer2},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Component}),D.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:D,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-calendar-content":"this.wrapperClasses","class.k-scrollable":"this.wrapperClasses","class.k-scrollable-horizontal":"this.horizontalClass"}},providers:[{provide:$t,useValue:Ut}],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:D,decorators:[{type:h.Component,args:[{providers:[{provide:$t,useValue:Ut}],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:[$t]}]},{type:a.ElementRef},{type:a.Renderer2},{type:a.NgZone}]},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-calendar-content"]},{type:h.HostBinding,args:["class.k-scrollable"]}],horizontalClass:[{type:h.HostBinding,args:["class.k-scrollable-horizontal"]}]}});function Zt(e,a,o){var r,s=e.cells,l=e.rows;return function(){return m.isDocumentAvailable?(r||(n=l,void 0===(i=s)&&(i=1),n=pn([ln([sn([rn("1","k-calendar-th")],"k-calendar-tr")].concat(hn(n,function(){return sn(hn(i,function(e){return on('<span class="k-link">'+e+"</span>","k-calendar-td")}),"k-calendar-tr")})),"k-calendar-tbody")],"k-calendar-table"),e=a,t=o,r=tn([un(),t?dn():null,mn([n,n])],e,{left:"-10000px",position:"absolute"})),r):null;var e,t,n,i}}function Gt(e){return fn(e).classList.add("k-scrollable-horizontal"),e}function Xt(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight}function Qt(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth}function Jt(e){return e.querySelector("tbody")}var en,tn=ie("div"),nn=ie("ul"),an=ie("li"),on=ie("td"),rn=ie("th"),sn=ie("tr"),ln=ie("tbody"),cn=ie("thead"),pn=ie("table"),un=function(){return tn('\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-nav-today">TODAY</span>\n </span>\n ',"k-calendar-header k-hstack")},dn=function(){return pn([cn([sn([rn("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table")},hn=function(e,t){return new Array(e).fill("1").map(t)},mn=function(e){return tn(e,"k-flex k-content k-calendar-content k-scrollable")},gn=function(){return m.isDocumentAvailable?en=en||tn([mn([nn([an("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"}):null},fn=function(e){return e.querySelector(".k-scrollable")},vn=Zt({cells:7,rows:6},"k-vstack k-calendar-view k-calendar-monthview",!0),yn=Zt({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-yearview",!1),bn=Zt({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),kn=(Cn.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},Cn.prototype.calculateHeights=function(e){var n=this;m.isDocumentAvailable()&&(this.hostContainer=e,this.batch(vn(),function(e){var t=Jt(e);n.calendarHeight=Xt(e),n.monthViewHeight=Xt(t),n.headerHeight=Xt(t.children[0]),n.scrollableContentHeight=Xt(fn(e))}),this.batch(Gt(vn()),function(e){var t=Jt(e);n.calendarWidth=Qt(e),n.monthViewWidth=Qt(t),n.scrollableContentWidth=Qt(fn(e))}),this.batch(yn(),function(e){n.yearViewHeight=Xt(Jt(e)),n.scrollableYearContentHeight=Xt(fn(e))}),this.batch(Gt(yn()),function(e){n.yearViewWidth=Qt(Jt(e))}),this.batch(bn(),function(e){n.decadeViewHeight=Xt(Jt(e)),n.centuryViewHeight=n.decadeViewHeight}),this.batch(Gt(bn()),function(e){n.decadeViewWidth=Qt(Jt(e)),n.centuryViewWidth=n.decadeViewWidth}),this.batch(gn(),function(e){n.navigationItemHeight=Xt(e.querySelector("li"))}))},Cn.prototype.viewHeight=function(e){return this.viewDimension(e,"height")},Cn.prototype.viewWidth=function(e){return this.viewDimension(e,"width")},Cn.prototype.viewDimension=function(e,t){var n="height"===t?"ViewHeight":"ViewWidth";switch(e){case f.month:return this["month"+n];case f.year:return this["year"+n];case f.decade:return this["decade"+n];case f.century:return this["century"+n];default:return 1}},Cn.prototype.batch=function(e,t){if(r(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)}}},Cn);function Cn(){}kn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:kn,deps:[],target:a.ɵɵFactoryTarget.Injectable}),kn.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:kn}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:kn,decorators:[{type:h.Injectable}]});Object.defineProperty(wn.prototype,"getComponentClass",{get:function(){return!0},enumerable:!1,configurable:!0}),wn.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))},wn.prototype.ngOnChanges=function(e){var t,n,i;this.service=this.bus.service(this.activeView),this.service&&(this.activeViewValue=f[this.activeView],t=Q(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)))},wn.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},wn.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},wn.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},wn.prototype.onPageChange=function(e){e=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()},wn.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)},wn.prototype.handleDateChange=function(e){var e=Je(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)))},wn.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},wn.prototype.intlChange=function(){this.activeView===f.month&&this.cdr.markForCheck()};Ft=wn;function wn(e,t,n,i,a){this.bus=e,this.dom=t,this.intl=n,this.cdr=i,this.renderer=a,this.min=new Date(Ce),this.max=new Date(we),this.focusedDate=new Date,this.valueChange=new h.EventEmitter,this.pageChange=new h.EventEmitter,this.dates=[],this.take=30,this.indexToScroll=-1}Ft.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ft,deps:[{token:v},{token:kn},{token:s.IntlService},{token:a.ChangeDetectorRef},{token:a.Renderer2}],target:a.ɵɵFactoryTarget.Component}),Ft.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Ft,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:D,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:D,selector:"kendo-virtualization",inputs:["direction","itemHeight","itemWidth","topOffset","bottomOffset","maxScrollDifference","scrollOffsetSize","scrollDuration","skip","take","total"],outputs:["activeIndexChange","pageChange","scrollChange"]}],directives:[{type:ve.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:ot,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:Ft,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:kn},{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:[D,{static:!1}]}],list:[{type:h.ViewChild,args:["list",{static:!0}]}],getComponentClass:[{type:h.HostBinding,args:["class.k-calendar-navigation"]}]}});Object.defineProperty(Tn.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!1,configurable:!0}),Object.defineProperty(Tn.prototype,"getComponentMonthClass",{get:function(){return this.activeView===f.month},enumerable:!1,configurable:!0}),Object.defineProperty(Tn.prototype,"getComponentYearClass",{get:function(){return this.activeView===f.year},enumerable:!1,configurable:!0}),Object.defineProperty(Tn.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===f.decade},enumerable:!1,configurable:!0}),Object.defineProperty(Tn.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===f.century},enumerable:!1,configurable:!0}),Tn.prototype.ngOnInit=function(){this.weekNames=this.getWeekNames(),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))},Tn.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.colWidth=Math.round(100/this.cols.length),this.weekNames=ae(e,"weekNumber")&&this.weekNumber?this.getWeekNames():this.weekNames,t=ae(e,"activeView"),n=this.focusedDate,a=Q(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=ae(e,"focusedDate")||t,(i||o||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(n,this.min)))},Tn.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},Tn.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},Tn.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)},Tn.prototype.onPageChange=function(e){e=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()},Tn.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)},Tn.prototype.setActiveDate=function(e){e=this.service.addToDate(this.min,e);this.activeDate=e,this.activeDateChange.emit(e),this.cdr.detectChanges()},Tn.prototype.isMonthView=function(){return this.activeView===f.month},Tn.prototype.isScrolled=function(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))},Tn.prototype.getBottomOffset=function(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)},Tn.prototype.getScrollableHeight=function(){return this.activeView===f.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight},Tn.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},Tn.prototype.getWeekNames=function(){var e=ne(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e},Tn.prototype.intlChange=function(){this.weekNames=this.getWeekNames(),this.isMonthView()&&this.cdr.markForCheck()};var Dn=Tn;function Tn(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(Ce),this.max=new Date(we),this.selectedDates=[],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.getComponentClass=!0,this.dates=[],this.cols=[],this.weekNames=[],this.take=5,this.animateToIndex=!0,this.indexToScroll=-1,this.minViewsToRender=1}Dn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Dn,deps:[{token:v},{token:a.ChangeDetectorRef},{token:s.IntlService},{token:kn},{token:a.Renderer2}],target:a.ɵɵFactoryTarget.Component}),Dn.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Dn,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",weekNumber:"weekNumber"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",activeDateChange:"activeDateChange",todayButtonClick:"todayButtonClick",pageChange:"pageChange"},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:D,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 [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" [style.width.%]="colWidth">{{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 >\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 ></tbody>\n </table>\n </kendo-virtualization>\n ',isInline:!0,components:[{type:pt,selector:"kendo-calendar-header",inputs:["activeView","currentDate","min","max","rangeLength","templateRef","isPrevDisabled","isNextDisabled","showNavigationButtons"],outputs:["todayButtonClick","prevButtonClick","nextButtonClick"]},{type:D,selector:"kendo-virtualization",inputs:["direction","itemHeight","itemWidth","topOffset","bottomOffset","maxScrollDifference","scrollOffsetSize","scrollDuration","skip","take","total"],outputs:["activeIndexChange","pageChange","scrollChange"]},{type:st,selector:"[kendoCalendarView]",inputs:["direction","isActive","activeView","cellUID","focusedDate","viewDate","activeRangeEnd","selectionRange","min","max","selectedDates","weekNumber","viewIndex","templateRef","weekNumberTemplateRef"],outputs:["cellClick","weekNumberCellClick","cellEnter","cellLeave"]}],directives:[{type:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:c.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:ot,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Dn,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 [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" [style.width.%]="colWidth">{{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 >\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 ></tbody>\n </table>\n </kendo-virtualization>\n '}]}],ctorParameters:function(){return[{type:v},{type:a.ChangeDetectorRef},{type:s.IntlService},{type:kn},{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}],weekNumber:[{type:h.Input}],cellClick:[{type:h.Output}],weekNumberCellClick:[{type:h.Output}],activeDateChange:[{type:h.Output}],todayButtonClick:[{type:h.Output}],pageChange:[{type:h.Output}],virtualization:[{type:h.ViewChild,args:[D,{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"]}]}});Vn.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})},Vn.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))})}))},Vn.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),e=this.calculateScroll(t,e.scrollTop);t.scrollTo(e)},Vn.prototype.siblingComponent=function(e){return this.navigator.container.nativeElement===e?this.view:this.navigator},Vn.prototype.calculateScroll=function(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)},Vn.prototype.destroy=function(){this.unsubscribe()},Vn.prototype.unsubscribe=function(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()};var In=Vn;function Vn(e,t){this.dom=e,this.zone=t}In.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:In,deps:[{token:kn},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Injectable}),In.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:In}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:In,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:kn},{type:a.NgZone}]}});function xn(){this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.sameDateSelected=new h.EventEmitter,this.dateCompletenessChange=new h.EventEmitter}var Sn,En=function(e){this.templateRef=e},Rn=(En.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:En,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),En.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:En,selector:"[kendoCalendarNavigationItemTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:En,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarNavigationItemTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),Xe(On,Sn=w),Object.defineProperty(On.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),On);function On(e){var t=Sn.call(this)||this;return t.service=e,t}Rn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Rn,deps:[{token:o.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Rn.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Rn,selector:"kendo-multiviewcalendar-messages",providers:[{provide:w,useExisting:h.forwardRef(function(){return Rn})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Rn,decorators:[{type:h.Component,args:[{providers:[{provide:w,useExisting:h.forwardRef(function(){return Rn})}],selector:"kendo-multiviewcalendar-messages",template:""}]}],ctorParameters:function(){return[{type:o.LocalizationService}]}});Xe(Nn,Mn=t.ComponentMessages);var Mn,w=Nn;function Nn(){return null!==Mn&&Mn.apply(this,arguments)||this}w.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:w,deps:null,target:a.ɵɵFactoryTarget.Directive}),w.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:w,selector:"kendo-calendar-messages-base",inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:w,decorators:[{type:h.Directive,args:[{selector:"kendo-calendar-messages-base"}]}],propDecorators:{today:[{type:h.Input}],prevButtonTitle:[{type:h.Input}],nextButtonTitle:[{type:h.Input}]}});Xe(An,Fn=w);var Fn,Pn=An;function An(e){var t=Fn.call(this)||this;return t.service=e,t}Pn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Pn,deps:[{token:o.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),Pn.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Pn,selector:"[kendoCalendarLocalizedMessages]",providers:[{provide:w,useExisting:h.forwardRef(function(){return Pn})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Pn,decorators:[{type:h.Directive,args:[{providers:[{provide:w,useExisting:h.forwardRef(function(){return Pn})}],selector:"[kendoCalendarLocalizedMessages]"}]}],ctorParameters:function(){return[{type:o.LocalizationService}]}});function Ln(e){return e?e.virtualization:null}var Bn="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",zn={multi:!0,provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return _n})},V={multi:!0,provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return _n})},jn={provide:m.KendoInput,useExisting:h.forwardRef(function(){return _n})},_n=(Object.defineProperty(x.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||ee(),this.setAriaActivedescendant()},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(Ce)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(we)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter(r).map(function(e){return k.cloneDate(e)}):k.cloneDate(e);var t,e=[].concat(e).filter(r).map(function(e){return k.cloneDate(e)});ue(e,this.selectedDates)||(t=re(e),this.rangePivot=k.cloneDate(t),this.focusedDate=k.cloneDate(t)||this.focusedDate,this.selectedDates=e)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this.disabledDatesService.initialize(e),this._disabledDates=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.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(x.prototype,"cellTemplateRef",{get:function(){return this._cellTemplateRef||this.cellTemplate},set:function(e){this._cellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"monthCellTemplateRef",{get:function(){return this._monthCellTemplateRef||this.monthCellTemplate},set:function(e){this._monthCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"yearCellTemplateRef",{get:function(){return this._yearCellTemplateRef||this.yearCellTemplate},set:function(e){this._yearCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"decadeCellTemplateRef",{get:function(){return this._decadeCellTemplateRef||this.decadeCellTemplate},set:function(e){this._decadeCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"centuryCellTemplateRef",{get:function(){return this._centuryCellTemplateRef||this.centuryCellTemplate},set:function(e){this._centuryCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"weekNumberTemplateRef",{get:function(){return this._weekNumberTemplateRef||this.weekNumberTemplate},set:function(e){this._weekNumberTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"headerTitleTemplateRef",{get:function(){return this._headerTitleTemplateRef||this.headerTitleTemplate},set:function(e){this._headerTitleTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"navigationItemTemplateRef",{get:function(){return this._navigationItemTemplateRef||this.navigationItemTemplate},set:function(e){this._navigationItemTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"activeViewEnum",{get:function(){var e=f[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"bottomViewEnum",{get:function(){return f[this.bottomView]},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"topViewEnum",{get:function(){return f[this.topView]},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"widgetId",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"calendarTabIndex",{get:function(){return this.disabled||"classic"===this.type?void 0:this.tabIndex},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"ariaDisabled",{get:function(){return"classic"===this.type?void 0:this.disabled},enumerable:!1,configurable:!0}),x.prototype.ngOnInit=function(){var t=this;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(f[e])}),this.control=this.injector.get(n.NgControl,null),this.element&&this.ngZone.runOutsideAngular(function(){t.bindEvents()})},x.prototype.ngOnChanges=function(e){var t;this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),this.scrollSyncService.configure(this.activeViewEnum),oe(e,"focusedDate")&&(t=e.focusedDate.currentValue,this.focusedDate=Q(t,this.min,this.max)),e.navigation&&(this.syncNavigation=!0),(e.min||e.max||e.rangeValidation)&&(this.minValidateFn=this.rangeValidation?vt(this.min):g,this.maxValidateFn=this.rangeValidation?yt(this.max):g,this.onValidatorChange())},x.prototype.ngAfterViewInit=function(){this.setAriaActivedescendant()},x.prototype.ngAfterViewChecked=function(){this.syncNavigation&&(this.syncNavigation=!1,this.scrollSyncService.sync(Ln(this.navigationView),Ln(this.monthView)))},x.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},x.prototype.onResize=function(){this.focusedDate=new Date(this.focusedDate),this.cdr.detectChanges()},x.prototype.focus=function(){var e="infinite"===this.type?this.element&&this.element.nativeElement:this.multiViewCalendar;r(e)&&e.focus()},x.prototype.blur=function(){var e="infinite"===this.type?this.element&&this.element.nativeElement:this.multiViewCalendar;r(e)&&e.blur()},x.prototype.containsElement=function(e){var t=this;return Boolean(et(e,function(e){return e===t.element.nativeElement}))},x.prototype.handleNavigation=function(e){this.disabled||(e=e?new Date(k.cloneDate(e).setDate(1)):this.focusedDate,this.focusedDate=Q(e,this.min,this.max),this.detectChanges())},x.prototype.onPageChange=function(){var e=this;h.NgZone.isInAngularZone()||(this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.pageChangeSubscription=p.from(this.resolvedPromise).subscribe(function(){e.detectChanges()}))},x.prototype.handleMultiViewCalendarValueChange=function(e,t){e=Array.isArray(e)?e:[e];this.handleDateChange({selectedDates:e,focusedDate:t})},x.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&&ue(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()}))},x.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},x.prototype.registerOnChange=function(e){this.onControlChange=e},x.prototype.registerOnTouched=function(e){this.onControlTouched=e},x.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},x.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},x.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},x.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case f.month:return this.monthCellTemplateRef||this.cellTemplateRef;case f.year:return this.yearCellTemplateRef;case f.decade:return this.decadeCellTemplateRef;case f.century:return this.centuryCellTemplateRef;default:return null}},x.prototype.handleNavigate=function(e){this.focusedDate=e.focusedDate,this.activeView=e.activeView,this.emitNavigate(this.focusedDate)},x.prototype.emitNavigate=function(e){var t=f[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},x.prototype.emitEvent=function(e,t){m.hasObservers(e)&&this.ngZone.run(function(){e.emit(t)})},x.prototype.handleActiveDateChange=function(e){this.activeViewDate=e,this.emitEvent(this.activeViewDateChange,e)},x.prototype.handleActiveViewChange=function(e){this.activeView=e,this.emitEvent(this.activeViewChange,e),"infinite"===this.type&&this.scrollSyncService.configure(this.activeViewEnum),this.detectChanges()},x.prototype.handleCellClick=function(e){var t=e.date,e=e.modifiers;this.performSelection(t,e)},x.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.ngZone.run(function(){t.handleDateChange({selectedDates:e,focusedDate:re(e)})})},x.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()))},x.prototype.handleFocus=function(){this.isActive=!0,h.NgZone.isInAngularZone()||this.detectChanges(),this.emitFocus()},x.prototype.handleMultiViewCalendarKeydown=function(e){r(this.pickerService)&&e.keyCode===m.Keys.Enter&&e.preventDefault()},x.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-"+this.type)},x.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.")}},x.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 "+Bn+" 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 "+Bn+" for possible resolution.")}},x.prototype.bindEvents=function(){var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"blur",this.handleBlur.bind(this)),this.renderer.listen(e,"focus",this.handleFocus.bind(this)),this.renderer.listen(e,"mousedown",Y),this.renderer.listen(e,"click",this.handleComponentClick.bind(this)),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)))},x.prototype.emitBlur=function(e){this.pickerService&&this.pickerService.onBlur.emit(e)},x.prototype.emitFocus=function(){this.pickerService&&this.pickerService.onFocus.emit()},x.prototype.handleComponentClick=function(){this.isActive||("infinite"===this.type&&this.monthView.isScrolled()&&(this.focusedDate=k.cloneDate(this.focusedDate),this.detectChanges()),this.focus())},x.prototype.handleKeydown=function(e){var t;"classic"===this.type&&this.multiViewCalendar.isHeaderActive||(t=-1!==[m.Keys.ArrowUp,m.Keys.ArrowRight,m.Keys.ArrowDown,m.Keys.ArrowLeft].indexOf(e.keyCode),r(this.pickerService)&&t&&e.altKey||(r(this.pickerService)&&e.keyCode===m.Keys.Enter&&e.preventDefault(),t=Q(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max),k.isEqual(this.focusedDate,t)||(this.focusedDate=t,this.detectChanges(),e.preventDefault()),e.keyCode===m.Keys.Enter&&this.performSelection(this.focusedDate,e)))},x.prototype.detectChanges=function(){this.destroyed||this.cdr.detectChanges()},x.prototype.emitSameDate=function(){this.pickerService&&this.pickerService.sameDateSelected.emit()},x.prototype.setAriaActivedescendant=function(){var e;r(this.element)&&("classic"!==this.type||this.element.nativeElement.hasAttribute("aria-activedescendant"))&&("classic"===this.type?this.renderer.removeAttribute(this.element.nativeElement,"aria-activedescendant"):(e=this.cellUID+this.focusedDate.getTime(),this.renderer.setAttribute(this.element.nativeElement,"aria-activedescendant",e)))},x.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?k.cloneDate(re(e)):e.map(function(e){return k.cloneDate(e)})},x.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})},x);function x(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.id=m.guid(),this.rangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.navigation=!0,this.activeView=f[f.month],this.bottomView=f[f.month],this.topView=f[f.century],this.animateNavigation=!1,this.weekNumber=!1,this.activeViewChange=new h.EventEmitter,this.navigate=new h.EventEmitter,this.activeViewDateChange=new h.EventEmitter,this.valueChange=new h.EventEmitter,this.isActive=!1,this.cellUID=m.guid(),this.selectedDates=[],this._min=new Date(Ce),this._max=new Date(we),this._focusedDate=ee(),this.onControlChange=g,this.onControlTouched=g,this.onValidatorChange=g,this.minValidateFn=g,this.maxValidateFn=g,this.syncNavigation=!0,this._type="infinite",this.domEvents=[],this.resolvedPromise=Promise.resolve(null),this.destroyed=!1,A.validatePackage(be),this.setClasses(n.nativeElement),this.pickerService&&(this.pickerService.calendar=this)}_n.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:_n,deps:[{token:v},{token:kn},{token:a.ElementRef},{token:ht},{token:a.Renderer2},{token:a.ChangeDetectorRef},{token:a.NgZone},{token:a.Injector},{token:In},{token:b},{token:o.LocalizationService},{token:gt},{token:xn,optional:!0}],target:a.ɵɵFactoryTarget.Component}),_n.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:_n,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",valueChange:"valueChange"},host:{properties:{"class.k-week-number":"this.weekNumber","attr.id":"this.widgetId","attr.tabindex":"this.calendarTabIndex","attr.aria-disabled":"this.ariaDisabled","class.k-disabled":"this.ariaDisabled"}},providers:[v,zn,V,jn,t.LocalizationService,b,{provide:t.L10N_PREFIX,useValue:"kendo.calendar"},ht,In,gt],queries:[{propertyName:"cellTemplate",first:!0,predicate:wt,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Dt,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:Tt,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:It,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:Vt,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:xt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:St,descendants:!0},{propertyName:"navigationItemTemplate",first:!0,predicate:En,descendants:!0}],viewQueries:[{propertyName:"navigationView",first:!0,predicate:Ft,descendants:!0},{propertyName:"monthView",first:!0,predicate:Dn,descendants:!0},{propertyName:"multiViewCalendar",first:!0,predicate:Pt,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 </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 [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 (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 >\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 [isActive]="isActive"\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 (focus)="handleFocus()"\n (blur)="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 >\n </kendo-multiviewcalendar-messages>\n </kendo-multiviewcalendar>\n </ng-container>\n ',isInline:!0,components:[{type:Ft,selector:"kendo-calendar-navigation",inputs:["activeView","min","max","focusedDate","templateRef"],outputs:["valueChange","pageChange"]},{type:Dn,selector:"kendo-calendar-viewlist",inputs:["cellTemplateRef","weekNumberTemplateRef","headerTitleTemplateRef","activeView","cellUID","focusedDate","isActive","min","max","selectedDates","weekNumber"],outputs:["cellClick","weekNumberCellClick","activeDateChange","todayButtonClick","pageChange"]},{type:ve.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]},{type:Pt,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","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","weekNumberTemplate","headerTitleTemplate"],outputs:["activeViewChange","navigate","cellEnter","cellLeave","valueChange","blur"],exportAs:["kendo-multiviewcalendar"]},{type:Rn,selector:"kendo-multiviewcalendar-messages"}],directives:[{type:Pn,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:_n,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-calendar",providers:[v,zn,V,jn,t.LocalizationService,b,{provide:t.L10N_PREFIX,useValue:"kendo.calendar"},ht,In,gt],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 </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 [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 (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 >\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 [isActive]="isActive"\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 (focus)="handleFocus()"\n (blur)="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 >\n </kendo-multiviewcalendar-messages>\n </kendo-multiviewcalendar>\n </ng-container>\n '}]}],ctorParameters:function(){return[{type:v},{type:kn},{type:a.ElementRef},{type:ht},{type:a.Renderer2},{type:a.ChangeDetectorRef},{type:a.NgZone},{type:a.Injector},{type:In},{type:b},{type:o.LocalizationService},{type:gt},{type:xn,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}],valueChange:[{type:h.Output}],cellTemplate:[{type:h.ContentChild,args:[wt,{static:!1}]}],cellTemplateRef:[{type:h.Input,args:["cellTemplate"]}],monthCellTemplate:[{type:h.ContentChild,args:[Dt,{static:!1}]}],monthCellTemplateRef:[{type:h.Input,args:["monthCellTemplate"]}],yearCellTemplate:[{type:h.ContentChild,args:[Tt,{static:!1}]}],yearCellTemplateRef:[{type:h.Input,args:["yearCellTemplate"]}],decadeCellTemplate:[{type:h.ContentChild,args:[It,{static:!1}]}],decadeCellTemplateRef:[{type:h.Input,args:["decadeCellTemplate"]}],centuryCellTemplate:[{type:h.ContentChild,args:[Vt,{static:!1}]}],centuryCellTemplateRef:[{type:h.Input,args:["centuryCellTemplate"]}],weekNumberTemplate:[{type:h.ContentChild,args:[xt,{static:!1}]}],weekNumberTemplateRef:[{type:h.Input,args:["weekNumberTemplate"]}],headerTitleTemplate:[{type:h.ContentChild,args:[St,{static:!1}]}],headerTitleTemplateRef:[{type:h.Input,args:["headerTitleTemplate"]}],navigationItemTemplate:[{type:h.ContentChild,args:[En,{static:!1}]}],navigationItemTemplateRef:[{type:h.Input,args:["navigationItemTemplate"]}],navigationView:[{type:h.ViewChild,args:[Ft,{static:!1}]}],monthView:[{type:h.ViewChild,args:[Dn,{static:!1}]}],multiViewCalendar:[{type:h.ViewChild,args:[Pt,{static:!1}]}],widgetId:[{type:h.HostBinding,args:["attr.id"]}],calendarTabIndex:[{type:h.HostBinding,args:["attr.tabindex"]}],ariaDisabled:[{type:h.HostBinding,args:["attr.aria-disabled"]},{type:h.HostBinding,args:["class.k-disabled"]}]}});function Hn(){return function(e,t){return!r(e.value)&&t?{incompleteDate:!0}:null}}(zn=Yn=Yn||{})[zn.Up=0]="Up",zn[zn.Down=1]="Down",zn[zn.None=2]="None",Xe(Un,$n=t.ComponentMessages);var Yn,$n,V=Un;function Un(){return null!==$n&&$n.apply(this,arguments)||this}V.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:V,deps:null,target:a.ɵɵFactoryTarget.Directive}),V.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:V,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:V,decorators:[{type:h.Directive,args:[{selector:"kendo-dateinput-messages-base"}]}],propDecorators:{decrement:[{type:h.Input}],increment:[{type:h.Input}]}});Xe(Wn,Kn=V);var Kn,qn=Wn;function Wn(e){var t=Kn.call(this)||this;return t.service=e,t}qn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:qn,deps:[{token:o.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),qn.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:qn,selector:"[kendoDateInputLocalizedMessages]",providers:[{provide:V,useExisting:h.forwardRef(function(){return qn})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:qn,decorators:[{type:h.Directive,args:[{providers:[{provide:V,useExisting:h.forwardRef(function(){return qn})}],selector:"[kendoDateInputLocalizedMessages]"}]}],ctorParameters:function(){return[{type:o.LocalizationService}]}});function Zn(e){return e.replace(/^0*/,"")}var Gn=/year|month|<day>/,Xn=/hour|minute|second|millisecond/,Qn=/d|M|H|h|m|s/,Jn=function(){this.symbols=""},ei=(S.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)},S.prototype.shouldNormalizeCentury=function(){return this.intl.splitDateFormat(this.format).some(function(e){return"yy"===e.pattern})},S.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)},S.prototype.getTextAndFormat=function(e){return this.merge(this.intl.formatDate(this.value,e),this.dateFormatString(this.value,e))},S.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}},S.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}},S.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)},S.prototype.parsePart=function(e,t,n){if(!t)return this.resetLeadingZero(),this.setExisting(e,!1),{value:null,switchToNext:!1};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+(Zn(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}}return h&&(d=this.intl.parseDate(s+h+c,this.format))?(this.value=d,this.setExisting(e,!0),{value:this.value,switchToNext:!1}):m&&(d=this.intl.parseDate(s+m+c,this.format))?(this.value=d,{value:this.value,switchToNext:!0}):(g&&this.setExisting(e,!1),{value:null,switchToNext:!1})},S.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.setLeadingZero(null),e},S.prototype.setLeadingZero=function(e){this.leadingZero=e},S.prototype.normalizeCentury=function(e){if(!r(e))return e;var t=!r(t=e)||isNaN(t.getTime())?0:Number(t.getFullYear().toString().slice(-2)),n=this.getNormalizedCenturyBase(t);return xe(e,n+t)},S.prototype.incrementLeadingZero=function(e){var t=this.leadingZero||{};t[e]=(t[e]||0)+1,this.leadingZero=t},S.prototype.isAbbrMonth=function(e,t){e=this.partPattern(e,t);return"month"===e.type&&e.names},S.prototype.partPattern=function(e,t){return e.filter(function(e){return-1!==e.pattern.indexOf(t)})[0]},S.prototype.peek=function(e,t){e=Zn(e)+"0";return t=t.length-e.length,new Array(Math.max(t,0)).fill("0").join("")+e},S.prototype.matchMonth=function(e){if(this.typedMonthPart+=e.toLowerCase(),!this.monthNames)return"";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""},S.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""},S.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},S.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},S.prototype.patternLength=function(e){return"y"===e[0]?4:Qn.test(e)?2:0},S.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 Jn;return t.symbols=i.join(""),t.partMap=a,t},S.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]},S.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})))},S.prototype.getNormalizedCenturyBase=function(e){return e>this.twoDigitYearMax?1900:2e3},S);function S(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(be),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(E.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this.autoCorrect&&!Z(e,this.min,this.max)||(this._value=k.cloneDate(e),this.valueUpdate.emit(k.cloneDate(e)))},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,me("input",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,me("input",e)),this._size=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,ge(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,ge(e)),this._rounded=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,fe("input",this.fillMode)),e&&(this.renderer.addClass(this.wrapper.nativeElement,fe("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(E.prototype,"wrapperClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"inputElement",{get:function(){return this.dateInput?this.dateInput.nativeElement:null},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"inputValue",{get:function(){return(this.inputElement||{}).value||""},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"isActive",{get:function(){return this._active},set:function(e){var t;this._active=e,this.wrapper&&!r(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(E.prototype,"inputFormat",{get:function(){return this.format?"string"==typeof this.format?this.format:this.format.inputFormat:"d"},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"displayFormat",{get:function(){return this.format?"string"==typeof this.format?this.format:this.format.displayFormat:"d"},enumerable:!1,configurable:!0}),E.prototype.isEmpty=function(){return!this.currentValue||!String(this.currentValue).trim()},E.prototype.containsElement=function(e){var t=this;return Boolean(et(e,function(e){return e===t.wrapper.nativeElement}))},E.prototype.ngOnChanges=function(e){this.verifyRange(),(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.minValidator=this.rangeValidation?vt(this.min):g,this.maxValidator=this.rangeValidation?yt(this.max):g,this.incompleteValidator=this.incompleteDateValidation?Hn():g,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))},E.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe(),this.pickerService&&(this.pickerService.input=null),this.domEvents.forEach(function(e){return e()})},E.prototype.validate=function(e){return this.minValidator(e)||this.maxValidator(e)||this.incompleteValidator(e,this.isDateIncomplete)},E.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},E.prototype.ngOnInit=function(){var e=this;this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(),this.intlSubscription=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()}))},E.prototype.ngAfterViewInit=function(){this.setComponentClasses()},E.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},E.prototype.writeValue=function(e){this.verifyValue(e),this.kendoDate=this.getKendoDate(e),this.value=k.cloneDate(e),this.updateElementValue(this.isActive)},E.prototype.triggerChange=function(){var e=this.kendoDate.getDateObject();+e!=+this.value&&(this.value=k.cloneDate(e),this.notify())},E.prototype.notify=function(){var e=this;this.ngZone.run(function(){e.onControlChange(k.cloneDate(e.value)),e.valueChange.emit(k.cloneDate(e.value))})},E.prototype.registerOnChange=function(e){this.onControlChange=e},E.prototype.registerOnTouched=function(e){this.onControlTouched=e},E.prototype.focus=function(){var e=this.inputElement;e&&(e.focus(),this.selectDateSegment(this.currentFormat[0]))},E.prototype.blur=function(){var e=this.inputElement;e&&e.blur()},E.prototype.handleButtonClick=function(e){this.arrowDirection=Yn.None,this.modifyDateSegmentValue(e)},E.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()},E.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)},E.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)},E.prototype.handleClick=function(){var e,t;this.hasMousedown=!1,this.isActive&&(t=this.inputElement.selectionStart!==this.inputElement.selectionEnd,e=r(this.placeholder)&&!this.kendoDate.hasValue()&&!this.focusedPriorToMousedown,t=!t&&e?0:this.caret()[0],this.selectNearestSegment(t))},E.prototype.handleDragAndDrop=function(e){e.preventDefault()},E.prototype.handleMousedown=function(){this.hasMousedown=!0,this.focusedPriorToMousedown=this.isActive},E.prototype.handleFocus=function(e){var t=this;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)},E.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)},E.prototype.getKendoDate=function(e){var t=(this.kendoDate||{}||null).leadingZero,e=new ei(this.intl,this.formatPlaceholder,this.inputFormat,e,this.twoDigitYearMax);return e.setLeadingZero(this.isActive?t:null),e},E.prototype.dateSymbolMap=function(){return this.intl.splitDateFormat(this.inputFormat).reduce(function(e,t){return e[t.pattern[0]]=t.type,e},{})},E.prototype.updateElementValue=function(e){var t=this.caret()[0],n=this.isActive?this.inputFormat:this.displayFormat,n=this.kendoDate.getTextAndFormat(n),i=!this.isActive&&r(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)},E.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}},E.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])}},E.prototype.verifyRange=function(){if(h.isDevMode()&&!X(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.")},E.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.")},E.prototype.putDateInRange=function(){var e=this.kendoDate.getDateObject(),t=Q(e,this.min,this.max);this.autoCorrect&&!k.isEqual(e,t)&&(this.kendoDate=this.getKendoDate(t))},E.prototype.updateFormatSections=function(){this.formatSections=this.intl.splitDateFormat(this.inputFormat).reduce(function(e,t){var n=e.date,e=e.time;return{date:n||Gn.test(t.type),time:e||Xn.test(t.type)}},{date:!1,time:!1})},E.prototype.intlChange=function(){this.updateFormatSections(),this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive)},E.prototype.updateOnPaste=function(){var e=this.intl.parseDate(this.inputValue,this.inputFormat)||this.value,t=+(e=r(e)&&this.kendoDate.shouldNormalizeCentury()?this.kendoDate.normalizeCentury(e):e)!=+this.value;this.writeValue(e),t&&this.notify()},E.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)))},E.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())},E.prototype.handlePaste=function(){this.paste=!0},E.prototype.handleKeydown=function(e){if(!(this.disabled||this.readonly||e.altKey||e.ctrlKey||e.metaKey))if(e.keyCode===m.Keys.Tab)this.switchDateSegment(e.shiftKey?-1:1)&&e.preventDefault();else 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()}},E.prototype.handleInput=function(){if(!this.disabled&&!this.readonly){if(this.paste)return this.updateOnPaste(),void(this.paste=!1);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(Ve(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}},E.prototype.emitFocus=function(e){this.onFocus.emit(),this.pickerService&&this.pickerService.onFocus.emit(e)},E.prototype.emitBlur=function(e){this.onBlur.emit(),this.pickerService&&this.pickerService.onBlur.emit(e)},E.prototype.updateIncompleteValidationStatus=function(){var e=this,t=this.isDateIncomplete;this.isDateIncomplete=this.kendoDate.hasValue()&&null===this.value,t!==this.isDateIncomplete&&this.incompleteDateValidation&&(r(this.ngControl)&&!r(this.pickerService)?(this.cdr.markForCheck(),this.ngZone.run(function(){return e.onValidatorChange()})):r(this.pickerService)&&this.pickerService.dateCompletenessChange.emit())},E.prototype.setSpinnerFill=function(e,t,n){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")},E.prototype.setComponentClasses=function(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,me("input",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,ge(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,fe("input",this.fillMode)),this.spinners&&(this.setSpinnerFill(this.spinup.nativeElement,this.fillMode),this.setSpinnerFill(this.spindown.nativeElement,this.fillMode))};var ti=E;function E(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.focusableId="k-"+m.guid(),this.disabled=!1,this.readonly=!1,this.title="",this.tabindex=0,this.role="spinbutton",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.isPopupOpen=!1,this.hasPopup=!1,this.valueChange=new h.EventEmitter,this.valueUpdate=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.arrow=Yn,this.arrowDirection=Yn.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=g,this.maxValidator=g,this.incompleteValidator=g,this._value=null,this._active=!1,this.kendoDate=null,this.paste=!1,this.domEvents=[],this.onControlChange=g,this.onControlTouched=g,this.onValidatorChange=g,this._size="medium",this._rounded="medium",this._fillMode="solid",this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections(),this.pickerService&&(this.pickerService.input=this)}ti.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ti,deps:[{token:a.ChangeDetectorRef},{token:s.IntlService},{token:a.Renderer2},{token:a.ElementRef},{token:a.NgZone},{token:a.Injector},{token:o.LocalizationService},{token:xn,optional:!0}],target:a.ɵɵFactoryTarget.Component}),ti.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:ti,selector:"kendo-dateinput",inputs:{focusableId:"focusableId",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 ti}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return ti}),multi:!0},{provide:t.L10N_PREFIX,useValue:"kendo.dateinput"},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return ti})},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-arrow-n"></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-arrow-s"></span>\n </button>\n </span>\n ',isInline:!0,directives:[{type:qn,selector:"[kendoDateInputLocalizedMessages]"},{type:ve.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:ti,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-dateinput",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return ti}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return ti}),multi:!0},{provide:t.L10N_PREFIX,useValue:"kendo.dateinput"},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return ti})},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-arrow-n"></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-arrow-s"></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:o.LocalizationService},{type:xn,decorators:[{type:h.Optional}]}]},propDecorators:{focusableId:[{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}]}]}});ii.prototype.preventDefault=function(){this.prevented=!0},ii.prototype.isDefaultPrevented=function(){return this.prevented};var ni=ii;function ii(){this.prevented=!1}function ai(t){return function(e){if(!t||!e.value)return null;return t(e.value)?{disabledDate:!0}:null}}var oi,ri=new h.InjectionToken("dateinputs-touch-enabled"),si=(Xe(li,oi=w),Object.defineProperty(li.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),li);function li(e){var t=oi.call(this)||this;return t.service=e,t}si.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:si,deps:[{token:o.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),si.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:si,selector:"kendo-calendar-messages",providers:[{provide:w,useExisting:h.forwardRef(function(){return si})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:si,decorators:[{type:h.Component,args:[{providers:[{provide:w,useExisting:h.forwardRef(function(){return si})}],selector:"kendo-calendar-messages",template:""}]}],ctorParameters:function(){return[{type:o.LocalizationService}]}});Xe(pi,ci=t.ComponentMessages);var ci,jn=pi;function pi(){return null!==ci&&ci.apply(this,arguments)||this}jn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:jn,deps:null,target:a.ɵɵFactoryTarget.Directive}),jn.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:jn,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:jn,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}]}});Xe(hi,ui=jn);var ui,di=hi;function hi(e){var t=ui.call(this)||this;return t.service=e,t}di.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:di,deps:[{token:o.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),di.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:di,selector:"[kendoDatePickerLocalizedMessages]",providers:[{provide:jn,useExisting:h.forwardRef(function(){return di})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:di,decorators:[{type:h.Directive,args:[{providers:[{provide:jn,useExisting:h.forwardRef(function(){return di})}],selector:"[kendoDatePickerLocalizedMessages]"}]}],ctorParameters:function(){return[{type:o.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,me("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,me("input",this.size)),e&&(this.renderer.addClass(this.wrapper.nativeElement,me("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,me("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,ge(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,ge(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,fe("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,fe("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"),e&&(this.renderer.addClass(this.toggleButton.nativeElement,fe("button",e)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+e+"-base"),this.renderer.addClass(this.wrapper.nativeElement,fe("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,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},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):g,this.maxValidateFn=this.rangeValidation?yt(this.max):g,this.disabledDatesValidateFn=this.disabledDatesValidation?ai(this.disabledDatesService.isDateDisabled):g,this.incompleteValidator=this.incompleteDateValidation?Hn():g,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?Ve(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,!!r(n=e)&&("infinite"===t||"classic"===t&&i&&n.classList.contains("k-calendar")||!i&&n.classList.contains("k-next-view")))&&(this.input.focus(),this.show=!1)},R.prototype.togglePopup=function(e){var t=new ni;!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=this;e!==this._show&&((this._show=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.subscription=this.popupRef.popupAnchorViewportLeave.subscribe(function(){return t.show=!1})):(this.popupRef.close(),this.popupRef=null,this.subscription.unsubscribe()))},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()&&!X(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))),te()&&(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&&$(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,me("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,me("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,ge(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,fe("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,fe("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"))};var mi=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.focusableId="k-"+m.guid(),this.activeView=f[f.month],this.bottomView=f[f.month],this.topView=f[f.century],this.calendarType="infinite",this.animateCalendarNavigation=!1,this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.navigation=!0,this.min=k.cloneDate(Ce),this.max=k.cloneDate(we),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.popupUID=m.guid(),this._popupSettings={animate:!0},this._show=!1,this._value=null,this._active=!1,this.onControlChange=g,this.onControlTouched=g,this.onValidatorChange=g,this.minValidateFn=g,this.maxValidateFn=g,this.disabledDatesValidateFn=g,this.incompleteValidator=g,this.resolvedPromise=Promise.resolve(null),this.domEvents=[],this._size="medium",this._rounded="medium",this._fillMode="solid",A.validatePackage(be),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)))}mi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:mi,deps:[{token:a.NgZone},{token:o.LocalizationService},{token:a.ChangeDetectorRef},{token:ye.PopupService},{token:a.ElementRef},{token:a.Renderer2},{token:a.Injector},{token:xn},{token:b},{token:ri,optional:!0}],target:a.ɵɵFactoryTarget.Component}),mi.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:mi,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"],focusableId:"focusableId",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 mi}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return mi}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return mi})},t.LocalizationService,xn,b,{provide:t.L10N_PREFIX,useValue:"kendo.datepicker"}],queries:[{propertyName:"cellTemplate",first:!0,predicate:wt,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Dt,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:Tt,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:It,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:Vt,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:xt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:St,descendants:!0},{propertyName:"navigationItemTemplate",first:!0,predicate:En,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]="inputRole"\n [focusableId]="focusableId"\n [hasPopup]="true"\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]="null"\n [rounded]="null"\n [size]="null"\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:ti,selector:"kendo-dateinput",inputs:["focusableId","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:_n,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","valueChange"],exportAs:["kendo-calendar"]},{type:si,selector:"kendo-calendar-messages"}],directives:[{type:di,selector:"[kendoDatePickerLocalizedMessages]"},{type:ve.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:mi,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-datepicker",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return mi}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return mi}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return mi})},t.LocalizationService,xn,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]="inputRole"\n [focusableId]="focusableId"\n [hasPopup]="true"\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]="null"\n [rounded]="null"\n [size]="null"\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:o.LocalizationService},{type:a.ChangeDetectorRef},{type:ye.PopupService},{type:a.ElementRef},{type:a.Renderer2},{type:a.Injector},{type:xn},{type:b},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[ri]}]}]},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:[wt,{static:!1}]}],cellTemplateRef:[{type:h.Input,args:["cellTemplate"]}],monthCellTemplate:[{type:h.ContentChild,args:[Dt,{static:!1}]}],monthCellTemplateRef:[{type:h.Input,args:["monthCellTemplate"]}],yearCellTemplate:[{type:h.ContentChild,args:[Tt,{static:!1}]}],yearCellTemplateRef:[{type:h.Input,args:["yearCellTemplate"]}],decadeCellTemplate:[{type:h.ContentChild,args:[It,{static:!1}]}],decadeCellTemplateRef:[{type:h.Input,args:["decadeCellTemplate"]}],centuryCellTemplate:[{type:h.ContentChild,args:[Vt,{static:!1}]}],centuryCellTemplateRef:[{type:h.Input,args:["centuryCellTemplate"]}],weekNumberTemplate:[{type:h.ContentChild,args:[xt,{static:!1}]}],weekNumberTemplateRef:[{type:h.Input,args:["weekNumberTemplate"]}],headerTitleTemplate:[{type:h.ContentChild,args:[St,{static:!1}]}],headerTitleTemplateRef:[{type:h.Input,args:["headerTitleTemplate"]}],navigationItemTemplate:[{type:h.ContentChild,args:[En,{static:!1}]}],navigationItemTemplateRef:[{type:h.Input,args:["navigationItemTemplate"]}],focusableId:[{type:h.Input}],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 gi(e,t){return Ci(24+e-t)}function fi(n){return function(e,t){return!t||k.getDate(e).getTime()===k.getDate(t).getTime()?e:Se(e,n)}}var vi,zn="dayperiod",w="hour",yi="millisecond",bi="minute",ki="second",Ci=(vi=24,function(e){return e%vi}),wi=fi(0),Di=fi(23),Ti=(Ii.prototype.apply=function(e,t){return Se(e,t.getHours())},Ii.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=Se(ke,e);return{text:t.intl.formatDate(e,r.pattern),value:e}},this.min=a,this.max=o,this.step=e},Ii.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 Ci(t+e*n)}),a=W(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},Ii.prototype.isRangeChanged=function(e,t){return!k.isEqual(this.min,e)||!k.isEqual(this.max,t)},Ii.prototype.limitRange=function(e,t,n){return this.boundRange?[wi(e,n),Di(t,n)]:[e,t]},Ii.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},Ii.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},Ii.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e))},Ii.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastHour(t))),e},Ii.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getHours());return e.splice(this.selectedIndex(t),0,n),e},Ii.prototype.countFromMin=function(e){var e=y(this.range(e),2),t=e[0],e=e[1];return Math.floor(gi(e,t)/this.step)+1},Ii.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},Ii.prototype.isLastMissing=function(e){return this.isMissing(Se(this.max,this.lastHour(e)))},Ii.prototype.divideByStep=function(e){return gi(e.getHours(),this.min.getHours())/this.step},Ii.prototype.lastHour=function(e){return this.range(e)[1]},Ii.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()]},Ii);function Ii(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}Ti.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ti,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),Ti.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ti}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ti,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});function Vi(e,t){return Ei(60+e-t)}function xi(n){return function(e,t){return!t||e.getHours()===t.getHours()?e:Ee(e,n)}}Si=60;var Si,Ei=function(e){return e%Si},Ri=xi(0),Oi=xi(59),Mi=(Ni.prototype.apply=function(e,t){return Ee(e,t.getMinutes())},Ni.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=Ee(ke,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=i,this.max=a,this.step=e},Ni.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 Ei(t+e*n)}),a=W(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},Ni.prototype.isRangeChanged=function(e,t){return!k.isEqual(this.min,e)||!k.isEqual(this.max,t)},Ni.prototype.limitRange=function(e,t,n){return[Ri(e,n),Oi(t,n)]},Ni.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},Ni.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},Ni.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e))},Ni.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMinute(t))),e},Ni.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getMinutes());return e.splice(this.selectedIndex(t),0,n),e},Ni.prototype.countFromMin=function(e){var e=y(this.range(e),2),t=e[0],e=e[1];return Math.floor(Vi(e,t)/this.step)+1},Ni.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},Ni.prototype.isLastMissing=function(e){return this.isMissing(Ee(this.max,this.lastMinute(e)))},Ni.prototype.divideByStep=function(e){return Vi(e.getMinutes(),this.min.getMinutes())/this.step},Ni.prototype.lastMinute=function(e){return this.range(e)[1]},Ni.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()]},Ni);function Ni(e){this.intl=e,this.insertUndividedMax=!1}Mi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Mi,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),Mi.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Mi}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Mi,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});function Fi(e,t){return Li(60+e-t)}function Pi(n){return function(e,t){return!t||e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()?e:Re(e,n)}}Ai=60;var Ai,Li=function(e){return e%Ai},Bi=Pi(0),zi=Pi(59),ji=(_i.prototype.apply=function(e,t){return Re(e,t.getSeconds())},_i.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=Re(ke,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=i,this.max=a,this.step=e},_i.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 Li(t+e*n)}),a=W(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},_i.prototype.isRangeChanged=function(e,t){return!k.isEqual(this.min,e)||!k.isEqual(this.max,t)},_i.prototype.limitRange=function(e,t,n){return[Bi(e,n),zi(t,n)]},_i.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},_i.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},_i.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e))},_i.prototype.divideByStep=function(e){return Fi(e.getSeconds(),this.min.getSeconds())/this.step},_i.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastSecond(t))),e},_i.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getSeconds());return e.splice(this.selectedIndex(t),0,n),e},_i.prototype.countFromMin=function(e){var e=y(this.range(e),2),t=e[0],e=e[1];return Math.floor(Fi(e,t)/this.step)+1},_i.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},_i.prototype.isLastMissing=function(e){return this.isMissing(Re(this.max,this.lastSecond(e)))},_i.prototype.lastSecond=function(e){return this.range(e)[1]},_i.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()]},_i);function _i(e){this.intl=e,this.insertUndividedMax=!1}ji.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ji,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),ji.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ji}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ji,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});function Hi(e,t){return Ui(1e3+e-t)}function Yi(n){return function(e,t){return!t||e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()&&e.getSeconds()===t.getSeconds()?e:Oe(e,n)}}$i=1e3;var $i,Ui=function(e){return e%$i},Ki=Yi(0),qi=Yi(999),Wi=(Zi.prototype.apply=function(e,t){return Oe(e,t.getMilliseconds())},Zi.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=Oe(ke,e);return{text:t.intl.formatDate(e,"SSS"),value:e}},this.min=i,this.max=a,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 Ui(t+e*n)}),a=W(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[Ki(e,n),qi(t,n)]},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.lastMillisecond(e)===e.getMilliseconds()||!this.isMissing(e))},Zi.prototype.divideByStep=function(e){return Hi(e.getMilliseconds(),this.min.getMilliseconds())/this.step},Zi.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMillisecond(t))),e},Zi.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getMilliseconds());return 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(Hi(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(Oe(this.max,this.lastMillisecond(e)))},Zi.prototype.lastMillisecond=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.getMilliseconds(),e.getMilliseconds()]},Zi);function Zi(e){this.intl=e,this.insertUndividedMax=!1}Wi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Wi,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),Wi.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Wi}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Wi,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});function Gi(e,t){return(e=k.cloneDate(e)).setHours(t),e}function Xi(e){return null!==e&&e<12}function Qi(e,t,n){return!t&&!n||t<=e&&e<=n}function Ji(e,t,n){return!t&&!n||t<=e||e<=n}ta.prototype.apply=function(e,t){var n=e.getHours(),i=Xi(n),t=Xi(t.getHours());if(i&&t||!i&&!t)return e;var i=y(this.normalizedRange(),2),a=i[0],i=i[1],i=void 0===i?24:i;return Gi(e,Math.min(Math.max(a,n+(t?-12:12)),i||24))},ta.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},ta.prototype.data=function(e){var t=this.part.names;if(!t)return[];var n,i=[],a=y(this.normalizedRange(),2),o=a[0],a=a[1],t=this.intl.dateFormatNames(t);return Xi(o)&&i.push({text:t.am,value:Gi(this.min,o)}),null!==(n=a)&&(!n||11<n)&&i.push({text:t.pm,value:Gi(this.min,Math.max(12,a))}),this.min.getHours()!==o?i.reverse():i},ta.prototype.isRangeChanged=function(e,t){return!1},ta.prototype.limitRange=function(e,t,n){return[e,t]},ta.prototype.total=function(){var e=y(this.normalizedRange(),2),t=e[0],e=e[1];return(t||e)&&(11<t||e<12)?1:2},ta.prototype.selectedIndex=function(e){if(!this.valueInList(e))return-1;e=Math.floor(e.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?e:0===e?1:0},ta.prototype.valueInList=function(e){return(this.min.getHours()!==this.normalizedRange()[0]?Ji:Qi)(e.getHours(),this.min.getHours(),this.max.getHours())},ta.prototype.normalizedRange=function(){var e=this.min.getHours(),t=this.max.getHours();return[Math.min(e,t),Math.max(e,t)]};var ea=ta;function ta(e){this.intl=e}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}]}});var na=ie("div"),ia=ie("ul"),aa=ie("li"),O=ie("span"),oa=function(){return ia([aa("<span>02</span>","k-item")],"k-reset")},ra=m.isDocumentAvailable()?na([O("hour","k-title k-timeselector-title"),na([na([oa()],"k-time-container k-flex k-content k-calendar-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}):null,sa=(la.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},la.prototype.calculateHeights=function(e){var t;m.isDocumentAvailable()&&(t=(e=e&&e.querySelector(".k-time-list-container")||document.body).appendChild(ra),this.timeListHeight=t.querySelector(".k-scrollable").getBoundingClientRect().height,this.itemHeight=t.querySelector("li").getBoundingClientRect().height,e.removeChild(t))},la.prototype.isActive=function(e){return!(!m.isDocumentAvailable()||!e)&&(e.nativeElement||e)===document.activeElement},la);function la(){}sa.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:sa,deps:[],target:a.ɵɵFactoryTarget.Injectable}),sa.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:sa}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:sa,decorators:[{type:h.Injectable}]});function ca(){return null}var pa={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]}},ua=((O={})[zn]=ea,O[w]=Ti,O[bi]=Mi,O[ki]=ji,O[yi]=Wi,O),na=(Object.defineProperty(da.prototype,"tabIndex",{get:function(){return this.disabled?void 0:0},enumerable:!1,configurable:!0}),da.prototype.ngOnChanges=function(e){e.part&&(this.service=this.injector.get(ua[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)},da.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()})},da.prototype.ngOnDestroy=function(){this.scrollSubscription.unsubscribe(),this.domEvents.forEach(function(e){return e()})},da.prototype.ngAfterViewInit=function(){var t=this;this.scrollOnce(function(e){return t.virtualization.scrollToIndex(e)})},da.prototype.ngAfterViewChecked=function(){var n=this;this.scrollOnce(function(e){var t=n.animateToIndex?"animateToIndex":"scrollToIndex";n.virtualization[t](e),n.animateToIndex=!0})},da.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))},da.prototype.handleItemClick=function(e){var e=Je(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]))},da.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},da.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},da.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);if(t===n&&e<2)return i;t=n<t;return t&&e>=this.bottomThreshold||!t&&e>this.topThreshold?this.virtualization.itemOffset(n+1):i},da.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},da.prototype.scrollOnce=function(e){-1!==this.indexToScroll&&(e(this.indexToScroll),this.indexToScroll=-1)},da.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},da.prototype.selectedIndex=function(e){return e?this.service.selectedIndex(e):-1},da.prototype.textHasChanged=function(e){var t=e.previousValue,e=e.currentValue;if(!t||!e)return!1;t=this.data[this.selectedIndex(t)],e=this.data[this.selectedIndex(e)];return t&&e&&t.text!==e.text},da.prototype.handleKeyDown=function(e){var t=(pa[e.keyCode]||ca)(this.data,this.service.selectedIndex(this.value));t&&(this.handleChange(t),e.preventDefault())},da.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)))},da);function da(e,t,n,i,a){this.element=e,this.injector=t,this.dom=n,this.renderer=i,this.zone=a,this.min=k.cloneDate(ke),this.max=k.cloneDate(Te),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=[]}na.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:na,deps:[{token:a.ElementRef},{token:a.Injector},{token:sa},{token:a.Renderer2},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Component}),na.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:na,selector:"kendo-timelist",inputs:{min:"min",max:"max",part:"part",step:"step",disabled:"disabled",value:"value"},outputs:{valueChange:"valueChange"},host:{properties:{"attr.tabindex":"this.tabIndex","class.k-time-list":"this.componentClass"}},viewQueries:[{propertyName:"virtualization",first:!0,predicate:D,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 >\n <li *ngFor="let item of data; let index = index;" class="k-item"\n [attr.data-timelist-item-index]="index">\n <span>{{item.text}}</span>\n </li>\n </ul>\n </kendo-virtualization>\n ',isInline:!0,components:[{type:D,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:ve.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:na,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 >\n <li *ngFor="let item of data; let index = index;" class="k-item"\n [attr.data-timelist-item-index]="index">\n <span>{{item.text}}</span>\n </li>\n </ul>\n </kendo-virtualization>\n '}]}],ctorParameters:function(){return[{type:a.ElementRef},{type:a.Injector},{type:sa},{type:a.Renderer2},{type:a.NgZone}]},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:[D,{static:!0}]}],tabIndex:[{type:h.HostBinding,args:["attr.tabindex"]}],componentClass:[{type:h.HostBinding,args:["class.k-time-list"]}]}});function ha(e,t){return e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()}function ma(e,t){return ha(e,t)&&e.getSeconds()===t.getSeconds()}function ga(e){return function(t,n){return t.setHours.apply(t,Qe([],y(e.map(function(e){return e(t,n)})))),t}}var fa,va,ya,oa=[{type:w,getter:function(e){return e.getHours()},minGetter:function(e,t){return t.getHours()}},{type:bi,getter:function(e){return e.getMinutes()},minGetter:function(e,t){return ha(e,t)?t.getMinutes():0}},{type:ki,getter:function(e){return e.getSeconds()},minGetter:function(e,t){return ma(e,t)?t.getSeconds():0}},{type:yi,getter:function(e){return e.getMilliseconds()},minGetter:function(e,t){return ma(e=e,n=t)&&e.getMilliseconds()===n.getMilliseconds()?t.getMilliseconds():0;var n}}],ba=function(n){return function(e,t){return n(e)}},ka=function(n){return function(e,t){return n(t)}},Ca=function(e){return fa.map((t=e.reduce(function(e,t){return e[t.type]=t.type,e},{}),function(e){return(t[e.type]?ka:ba)(e.getter)}));var t},wa=(va=fa=oa,function(n){return va.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;if(t<0)return e;e=t%o;return n-e+(o/2<e?o:0)}):e.getter})}),O=(Xe(Da,ya=t.ComponentMessages),Da);function Da(){return null!==ya&&ya.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"},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}]}});Xe(Va,Ta=O);var Ta,Ia=Va;function Va(e){var t=Ta.call(this)||this;return t.service=e,t}Ia.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ia,deps:[{token:o.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),Ia.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ia,selector:"[kendoTimeSelectorLocalizedMessages]",providers:[{provide:O,useExisting:h.forwardRef(function(){return Ia})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ia,decorators:[{type:h.Directive,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return Ia})}],selector:"[kendoTimeSelectorLocalizedMessages]"}]}],ctorParameters:function(){return[{type:o.LocalizationService}]}});function xa(e,t,n,i){return e.length||!t.isActive?e:[{next:i[n+1]||t,prev:i[n-1]||t}]}(oa=Sa=Sa||{})[oa.Left=0]="Left",oa[oa.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){this._current=function(e,t,n){if(!e||!t||!n)return e;var i=q(e,t,n),a=i.candidateValue,o=i.minValue,i=i.maxValue;return a<o?Ve(e,t):i<a?Ve(e,n):e}(this.snapTime(k.cloneDate(e||ke),this.min),this.min,this.max),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-state-focused")}),0<=e&&(e=this.listIndex(e),(e=this.timeListWrappers.toArray()[e])&&this.renderer.addClass(e.nativeElement,"k-state-focused")))},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(J())),this.current))},M.prototype.handleNow=function(){this.current=J(),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=$(e);t&&this.containsElement(t)||(this.activeListIndex=-1,this.isActive=!1,this.emitBlur(e))},M.prototype.containsElement=function(e){var t=this;return Boolean(et(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&&!ae(e,"format")||(this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=ga(Ca(this.dateFormatParts))),e&&!ae(e,"steps")||(this.snapTime=(i=wa(this.steps),function(e,t){var n=k.cloneDate(e);return n.setHours.apply(n,Qe([],y(i.map(function(e){return e(n,t)})))),n})),e&&!ae(e,"value")||(this.current=this.value),this.showNowButton=!this.hasSteps()&&this.nowButton&&G(J(),this.min,this.max)},M.prototype.focusList=function(t){this.timeLists.length&&this.timeLists.reduce(xa,[]).map(function(e){return t===Sa.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=ga(Ca(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);r(this.pickerService)&&n&&e||(t!==m.Keys.Enter||this.hasActiveButton()?t!==m.Keys.ArrowLeft&&t!==m.Keys.ArrowRight||this.focusList(t===m.Keys.ArrowLeft?Sa.Left:Sa.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 Sa,oa=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(De),this.max=k.cloneDate(Te),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)}oa.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:oa,deps:[{token:o.LocalizationService},{token:a.ChangeDetectorRef},{token:a.ElementRef},{token:s.IntlService},{token:sa},{token:a.NgZone},{token:a.Renderer2},{token:xn,optional:!0}],target:a.ɵɵFactoryTarget.Component}),oa.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:oa,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:na,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-base 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-hstack k-justify-content-stretch" *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:na,selector:"kendo-timelist",inputs:["min","max","part","step","disabled","value"],outputs:["valueChange"]}],directives:[{type:Ia,selector:"[kendoTimeSelectorLocalizedMessages]"},{type:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:ve.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:oa,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-base 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-hstack k-justify-content-stretch" *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:o.LocalizationService},{type:a.ChangeDetectorRef},{type:a.ElementRef},{type:s.IntlService},{type:sa},{type:a.NgZone},{type:a.Renderer2},{type:xn,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:[na]}],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}]}});Xe(Oa,Ea=O),Object.defineProperty(Oa.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0});var Ea,Ra=Oa;function Oa(e){var t=Ea.call(this)||this;return t.service=e,t}Ra.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ra,deps:[{token:o.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Ra.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Ra,selector:"kendo-timeselector-messages",providers:[{provide:O,useExisting:h.forwardRef(function(){return Ra})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ra,decorators:[{type:h.Component,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return Ra})}],selector:"kendo-timeselector-messages",template:""}]}],ctorParameters:function(){return[{type:o.LocalizationService}]}});Xe(Fa,Ma=O);var Ma,Na=Fa;function Fa(e){var t=Ma.call(this)||this;return t.service=e,t}Na.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Na,deps:[{token:o.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),Na.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Na,selector:"[kendoTimePickerLocalizedMessages]",providers:[{provide:O,useExisting:h.forwardRef(function(){return Na})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Na,decorators:[{type:h.Directive,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return Na})}],selector:"[kendoTimePickerLocalizedMessages]"}]}],ctorParameters:function(){return[{type:o.LocalizationService}]}});var Pa=new RegExp(w+"|"+bi+"|"+ki+"|"+yi+"|"+zn+"|literal"),Aa=(Object.defineProperty(N.prototype,"min",{get:function(){return this._min},set:function(e){this._min=k.cloneDate(e||De)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"max",{get:function(){return this._max},set:function(e){this._max=k.cloneDate(e||Te)},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,me("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,me("input",this.size)),e&&(this.renderer.addClass(this.wrapper.nativeElement,me("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,me("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,ge(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,ge(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,fe("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,fe("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"),e&&(this.renderer.addClass(this.wrapper.nativeElement,fe("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,fe("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,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},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){if(!n||!i||!e.value)return null;var t={timeRangeError:{maxValue:i,minValue:n,value:e.value}};return G(e.value,n,i)?null:t}):g,this.incompleteValidator=this.incompleteDateValidation?Hn():g,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,e=e.keyCode;e===m.Keys.Escape?this.show=!1:t&&(e===m.Keys.ArrowUp&&(this.show=!1),e!==m.Keys.ArrowDown||this.show||(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;if(k.isEqual(this.value,e))return this.focusInput(),void(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)},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 Ve(ke,e)},N.prototype.mergeTime=function(e){return this.value&&e?Ve(this.value,e):e},N.prototype.togglePopup=function(e){var t=new ni;!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=this;e!==this.isOpen&&(this._show=e,this.cdr.markForCheck(),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.popupRef.popupAnchorViewportLeave.subscribe(function(){return t.show=!1})):(this.popupRef.close(),this.popupRef=null))},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!Pa.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))),te()&&(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&&$(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())},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,me("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,me("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,ge(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,fe("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,fe("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){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.intl=l,this.touchEnabled=c,this.focusableId="k-"+m.guid(),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.popupUID=m.guid(),this.onControlChange=g,this.onControlTouched=g,this.onValidatorChange=g,this.resolvedPromise=Promise.resolve(null),this.timeRangeValidateFn=g,this.incompleteValidator=g,this._min=k.cloneDate(De),this._max=k.cloneDate(Te),this._popupSettings={animate:!0},this._show=!1,this._steps={},this._value=null,this._active=!1,this.domEvents=[],this._size="medium",this._rounded="medium",this._fillMode="solid",A.validatePackage(be),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)))}Aa.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Aa,deps:[{token:a.NgZone},{token:o.LocalizationService},{token:a.ChangeDetectorRef},{token:ye.PopupService},{token:a.ElementRef},{token:a.Renderer2},{token:a.Injector},{token:xn},{token:s.IntlService},{token:ri,optional:!0}],target:a.ɵɵFactoryTarget.Component}),Aa.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Aa,selector:"kendo-timepicker",inputs:{focusableId:"focusableId",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 Aa}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return Aa}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return Aa})},t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.timepicker"},xn],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 </ng-container>\n <kendo-dateinput\n #input\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="show"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [role]="inputRole"\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 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 >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </ng-template>\n <ng-container #container></ng-container>\n ',isInline:!0,components:[{type:ti,selector:"kendo-dateinput",inputs:["focusableId","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:oa,selector:"kendo-timeselector",inputs:["format","min","max","cancelButton","setButton","nowButton","disabled","steps","value"],outputs:["valueChange","valueReject"],exportAs:["kendo-timeselector"]},{type:Ra,selector:"kendo-timeselector-messages"}],directives:[{type:Na,selector:"[kendoTimePickerLocalizedMessages]"},{type:ve.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Aa,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timepicker",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return Aa}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return Aa}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return Aa})},t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.timepicker"},xn],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 </ng-container>\n <kendo-dateinput\n #input\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="show"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [role]="inputRole"\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 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 >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </ng-template>\n <ng-container #container></ng-container>\n '}]}],ctorParameters:function(){return[{type:a.NgZone},{type:o.LocalizationService},{type:a.ChangeDetectorRef},{type:ye.PopupService},{type:a.ElementRef},{type:a.Renderer2},{type:a.Injector},{type:xn},{type:s.IntlService},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[ri]}]}]},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}]}],focusableId:[{type:h.Input}],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"]}]}});Xe(Ba,La=t.ComponentMessages);var La,yi=Ba;function Ba(){return null!==La&&La.apply(this,arguments)||this}yi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:yi,deps:null,target:a.ɵɵFactoryTarget.Directive}),yi.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:yi,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:yi,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}]}});Xe(_a,za=yi);var za,ja=_a;function _a(e){var t=za.call(this)||this;return t.service=e,t}ja.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ja,deps:[{token:o.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),ja.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:ja,selector:"[kendoDateTimePickerLocalizedMessages]",providers:[{provide:yi,useExisting:h.forwardRef(function(){return ja})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ja,decorators:[{type:h.Directive,args:[{providers:[{provide:yi,useExisting:h.forwardRef(function(){return ja})}],selector:"[kendoDateTimePickerLocalizedMessages]"}]}],ctorParameters:function(){return[{type:o.LocalizationService}]}});var Ha=new RegExp(w+"|"+bi+"|"+ki+"|"+zn+"|literal"),Ya="date",$a=(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,"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){r(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){r(e)&&(this._max=k.cloneDate(e),this.calendarMax=he(e))},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"isOpen",{get:function(){return r(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||Ya,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,me("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,me("input",this.size)),e&&(this.renderer.addClass(this.wrapper.nativeElement,me("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,me("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,ge(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,ge(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,fe("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,fe("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"),e&&(this.renderer.addClass(this.wrapper.nativeElement,fe("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,fe("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,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},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 r(this.calendar)||r(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(r(e)&&"root"!==e)return"component"===e?this.container:e},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))),te()&&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){(r(e.min)||r(e.max))&&this.verifyMinMaxRange(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?vt(this.min):g,this.maxValidateFn=this.rangeValidation?yt(this.max):g,this.disabledDatesValidateFn=this.disabledDatesValidation?ai(this.disabledDatesService.isDateDisabled):g,this.incompleteValidator=this.incompleteDateValidation?Hn():g,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||((r(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!r(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&&this.activeTabComponent.focus()},F.prototype.handleAccept=function(){var e,t,n=this;this.isOpen&&(e=de(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&&r(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=r(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?me("button",this.size):"")+" "+(this.rounded?ge(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()&&r(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()&&!X(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?Ha.test(n.type):Ha.test(e.type)},F.prototype.togglePopup=function(e){var t;e!==this.isOpen&&(t=new ni,(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 e=this,t=(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:t},popupAlign:{vertical:"top",horizontal:t}}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return e.handleCancel()})},F.prototype.closePopup=function(){this.isOpen&&(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){if(!r(e))return!1;var e=e.relatedTarget||document.activeElement,t=r(this.popupRef)&&this.popupRef.popupElement.contains(e),e=this.wrapper.nativeElement.contains(e);return t||e},F.prototype.setTimeSelectorMinMax=function(e){var t=r(e)&&k.isEqual(k.getDate(e),k.getDate(this.min)),t=(this.timeSelectorMin=k.cloneDate(t?this.min:De),r(e)&&k.isEqual(k.getDate(e),k.getDate(this.max)));this.timeSelectorMax=k.cloneDate(t?this.max:Te)},F.prototype.setCalendarValue=function(e){var t=r(e)&&Z(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,me("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,me("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,ge(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,fe("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,fe("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.focusableId="k-"+m.guid(),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=Ya,this.timeSelectorFormat="t",this.timeSelectorMin=k.cloneDate(De),this.timeSelectorMax=k.cloneDate(Te),this.calendarValue=null,this.calendarMin=k.cloneDate(Ce),this.calendarMax=he(we),this._popupSettings={animate:!0},this._value=null,this._format="g",this._tabindex=0,this._defaultTab=Ya,this._min=de(Ce,De),this._max=de(we,Te),this._isActive=!1,this.onControlTouched=g,this.onControlChange=g,this.onValidatorChange=g,this.minValidateFn=g,this.maxValidateFn=g,this.disabledDatesValidateFn=g,this.incompleteValidator=g,this.subscriptions=new p.Subscription,this._size="medium",this._rounded="medium",this._fillMode="solid",A.validatePackage(be)}$a.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:$a,deps:[{token:ye.PopupService},{token:s.IntlService},{token:a.ChangeDetectorRef},{token:xn},{token:a.NgZone},{token:a.ElementRef},{token:ri},{token:o.LocalizationService},{token:b},{token:a.Renderer2}],target:a.ɵɵFactoryTarget.Component}),$a.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:$a,selector:"kendo-datetimepicker",inputs:{value:"value",format:"format",twoDigitYearMax:"twoDigitYearMax",tabindex:"tabindex",disabledDates:"disabledDates",popupSettings:"popupSettings",focusableId:"focusableId",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:[xn,t.LocalizationService,b,{provide:t.L10N_PREFIX,useValue:"kendo.datetimepicker"},{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return $a}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return $a}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return $a})}],queries:[{propertyName:"cellTemplate",first:!0,predicate:wt,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Dt,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:Tt,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:It,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:Vt,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:xt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:St,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]="inputRole"\n [ariaReadOnly]="readonly"\n [steps]="steps"\n [tabindex]="tabindex"\n [title]="title"\n [focusableId]="focusableId"\n [hasPopup]="true"\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">\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.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.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 [(value)]="calendarValue"\n [type]="calendarType"\n [min]="calendarMin"\n [max]="calendarMax"\n [focusedDate]="focusedDate"\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:ti,selector:"kendo-dateinput",inputs:["focusableId","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:_n,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","valueChange"],exportAs:["kendo-calendar"]},{type:si,selector:"kendo-calendar-messages"},{type:oa,selector:"kendo-timeselector",inputs:["format","min","max","cancelButton","setButton","nowButton","disabled","steps","value"],outputs:["valueChange","valueReject"],exportAs:["kendo-timeselector"]},{type:Ra,selector:"kendo-timeselector-messages"}],directives:[{type:ja,selector:"[kendoDateTimePickerLocalizedMessages]"},{type:ve.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:$a,decorators:[{type:h.Component,args:[{selector:"kendo-datetimepicker",exportAs:"kendo-datetimepicker",changeDetection:h.ChangeDetectionStrategy.OnPush,providers:[xn,t.LocalizationService,b,{provide:t.L10N_PREFIX,useValue:"kendo.datetimepicker"},{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return $a}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return $a}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return $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]="inputRole"\n [ariaReadOnly]="readonly"\n [steps]="steps"\n [tabindex]="tabindex"\n [title]="title"\n [focusableId]="focusableId"\n [hasPopup]="true"\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">\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.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.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 [(value)]="calendarValue"\n [type]="calendarType"\n [min]="calendarMin"\n [max]="calendarMax"\n [focusedDate]="focusedDate"\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:ye.PopupService},{type:s.IntlService},{type:a.ChangeDetectorRef},{type:xn},{type:a.NgZone},{type:a.ElementRef},{type:void 0,decorators:[{type:h.Inject,args:[ri]}]},{type:o.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}],focusableId:[{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:[wt,{static:!1}]}],monthCellTemplate:[{type:h.ContentChild,args:[Dt,{static:!1}]}],yearCellTemplate:[{type:h.ContentChild,args:[Tt,{static:!1}]}],decadeCellTemplate:[{type:h.ContentChild,args:[It,{static:!1}]}],centuryCellTemplate:[{type:h.ContentChild,args:[Vt,{static:!1}]}],weekNumberTemplate:[{type:h.ContentChild,args:[xt,{static:!1}]}],headerTitleTemplate:[{type:h.ContentChild,args:[St,{static:!1}]}],container:[{type:h.ViewChild,args:["container",{read:h.ViewContainerRef,static:!0}]}],popupTemplate:[{type:h.ViewChild,args:["popupTemplate",{read:h.TemplateRef,static:!0}]}]}});var w=function(e){this.templateRef=e},Ua=(w.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:w,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),w.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:w,selector:"[kendoDateRangePopupTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:w,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangePopupTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),Object.defineProperty(Ka.prototype,"activeRangeEnd",{get:function(){return this.activeRangeEnd$.value},enumerable:!1,configurable:!0}),Object.defineProperty(Ka.prototype,"focusedDate",{get:function(){return this.focusedDate$.value},enumerable:!1,configurable:!0}),Object.defineProperty(Ka.prototype,"min",{get:function(){return(this.startInput$.value||{}).min||null},enumerable:!1,configurable:!0}),Object.defineProperty(Ka.prototype,"max",{get:function(){return(this.endInput$.value||{}).max||null},enumerable:!1,configurable:!0}),Object.defineProperty(Ka.prototype,"selectionRange",{get:function(){return this.range$.value},enumerable:!1,configurable:!0}),Ka.prototype.destroy=function(){this.activeRangeEnd$.complete(),this.focusedDate$.complete(),this.endInput$.complete(),this.startInput$.complete(),this.range$.complete()},Ka.prototype.registerStartInput=function(e){this.startInput$.next(e)},Ka.prototype.registerEndInput=function(e){this.endInput$.next(e)},Ka.prototype.setActiveRangeEnd=function(e){e&&this.activeRangeEnd!==e&&this.activeRangeEnd$.next(e)},Ka.prototype.setFocusedDate=function(e){k.isEqual(this.focusedDate$.value,e)||this.focusedDate$.next(e)},Ka.prototype.setRange=function(e){this.range$.next(e=void 0===e?Ie:e)},Ka);function Ka(){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.range$=new p.BehaviorSubject(Ie)}Ua.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ua,deps:[],target:a.ɵɵFactoryTarget.Injectable}),Ua.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ua}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ua,decorators:[{type:h.Injectable}]});function qa(e){return e&&e.isActive||!1}Za.prototype.activatePopup=function(){var e=this.dateRangePopup$.value;e&&e.activate()},Za.prototype.deactivatePopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&(e.show=!1)},Za.prototype.cancelPopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&e.cancelPopup()},Za.prototype.hasActiveComponent=function(e,t){var n=this.dateRangePopup$.value,i=qa(n),e=qa(e),t=qa(t);return i||e||t||(i=n)&&i.hasActiveContent()||!1},Za.prototype.registerPopup=function(e){this.dateRangePopup$.next(e)},Za.prototype.destroy=function(){this.dateRangePopup$.complete()};var Wa=Za;function Za(){this.dateRangePopup$=new p.BehaviorSubject(null)}Wa.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Wa,deps:[],target:a.ɵɵFactoryTarget.Injectable}),Wa.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Wa}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Wa,decorators:[{type:h.Injectable}]});Object.defineProperty(Ga.prototype,"selectionRange",{get:function(){return this.calendar?this.calendar.selectionRange:null},set:function(e){this.isEqualCalendarRange(e)||this.setSelectionRange(e),pe(this.dateRangeService.selectionRange,e)||this.dateRangeService.setRange(e),this.updateFocusedDate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(Ga.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(Ga.prototype,"calendarRange",{get:function(){return this.selectionRange||Ie},enumerable:!1,configurable:!0}),Ga.prototype.ngOnInit=function(){var t=this,n=this.calendar,e=this.dateRangeService;n.min=le(e.min,n.min),n.max=le(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()}))},Ga.prototype.ngOnDestroy=function(){this.calendarSubscriptions.unsubscribe()},Ga.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)})},Ga.prototype.isEqualCalendarRange=function(e){return pe(this.calendar.selectionRange,e)},Ga.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(ce(t))},Ga.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?ce(e):this.updateRange(e);pe(t.selectionRange,n)||(this.acceptAndEmit(n),t.setActiveRangeEnd(i),t.setRange(n))},Ga.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)))},Ga.prototype.hasCompleteRange=function(){var e=this.dateRangeService.selectionRange||Ie,t=e.start,e=e.end;return Boolean(t)&&Boolean(e)},Ga.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},Ga.prototype.updateFocusedDate=function(e){e&&!this.dateRangeService.focusedDate&&this.dateRangeService.setFocusedDate(e.start||e.end)},Ga.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}},Ga.prototype.setSelectionRange=function(e){this.calendar.selectionRange=e,this.calendar.writeValue(null)},Ga.prototype.acceptAndEmit=function(e){this.setSelectionRange(e),this.selectionRangeChange.emit(e)};bi=Ga;function Ga(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 Ua,i.setAttribute(n.nativeElement,"aria-multiselectable","true")}bi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:bi,deps:[{token:Pt},{token:a.ChangeDetectorRef},{token:a.ElementRef},{token:a.Renderer2},{token:Ua,optional:!0}],target:a.ɵɵFactoryTarget.Directive}),bi.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:bi,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:bi,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangeSelection]"}]}],ctorParameters:function(){return[{type:Pt},{type:a.ChangeDetectorRef},{type:a.ElementRef},{type:a.Renderer2},{type:Ua,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(Xa.prototype,"calendar",{get:function(){return this._calendar},set:function(e){this._calendar=e,this.subscribeFocusBlur(e)},enumerable:!1,configurable:!0}),Object.defineProperty(Xa.prototype,"isActive",{get:function(){return this.calendar&&this.calendar.isActive},enumerable:!1,configurable:!0}),Object.defineProperty(Xa.prototype,"show",{get:function(){return this._show},set:function(e){var t;this._show!==e&&(t=new ni,(e?this.open:this.close).emit(t),t.isDefaultPrevented()||this._toggle(e))},enumerable:!1,configurable:!0}),Xa.prototype.ngOnInit=function(){this.dateRangePopupService.registerPopup(this)},Xa.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})),te()&&this.zone.runOutsideAngular(function(){return t.windowBlurSubscription=p.fromEvent(window,"blur").subscribe(t.handleWindowBlur.bind(t))})},Xa.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()},Xa.prototype.activate=function(){var e=this;!0!==this.show&&(this.activateSubscription&&this.activateSubscription.unsubscribe(),this.show=!0,this.ref.markForCheck(),this.zone.runOutsideAngular(function(){e.activateSubscription=p.merge(e.contentCalendar.changes,e.viewCalendar.changes).pipe(B.filter(function(e){return e&&e.first}),B.map(function(e){return e.first})).subscribe(function(e){return setTimeout(function(){return e.focus()})})}))},Xa.prototype.focus=function(){this.calendar&&this.calendar.focus()},Xa.prototype.hasActiveContent=function(){return!(!m.isDocumentAvailable()||!this.popupRef)&&this.popupRef.popupElement.contains(document.activeElement)},Xa.prototype.toggle=function(e){var t=this;this.resolvedPromise.then(function(){t._toggle(void 0===e?!t.show:e)})},Xa.prototype.cancelPopup=function(){this.show=!1,this.cancel.emit()},Xa.prototype.handleWindowBlur=function(){var e=this;this.show&&(m.hasObservers(this.close)?this.zone.run(function(){return e.show=!1}):this.show=!1)},Xa.prototype.handleMouseLeave=function(){this.dateRangeService.setRange(this.dateRangeService.selectionRange)},Xa.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()})},Xa.prototype.subscribeFocusBlur=function(e){var t=this;this.blurSubscription&&(this.blurSubscription.unsubscribe(),this.focusSubscription.unsubscribe()),e&&(e=e.element.nativeElement,this.blurSubscription=p.fromEvent(e,"blur").subscribe(function(){return t.onBlur.emit()}),this.focusSubscription=p.fromEvent(e,"focus").subscribe(function(){return t.onFocus.emit()}))},Xa.prototype.addPopupSubscriptions=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r(this.popupSubscriptions)||(this.popupSubscriptions=new p.Subscription),e.map(function(e){return t.popupSubscriptions.add(e)})},Object.defineProperty(Xa.prototype,"_appendTo",{get:function(){var e=this.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),Xa.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()})))},Xa.prototype.destroyPopup=function(){r(this.popupRef)&&(this.popupRef.close(),this.popupRef=null),r(this.popupSubscriptions)&&this.popupSubscriptions.unsubscribe()};ki=Xa;function Xa(e,t,n,i,a,o){this.popupService=e,this.dateRangeService=t,this.dateRangePopupService=n,this.ref=i,this.zone=a,this.rtl=o,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()}ki.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ki,deps:[{token:ye.PopupService},{token:Ua},{token:Wa},{token:a.ChangeDetectorRef},{token:a.NgZone},{token:t.RTL,optional:!0}],target:a.ɵɵFactoryTarget.Component}),ki.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:ki,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:w,descendants:!0},{propertyName:"contentCalendar",predicate:Pt}],viewQueries:[{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef},{propertyName:"defaultTemplate",first:!0,predicate:["defaultTemplate"],descendants:!0},{propertyName:"viewCalendar",predicate:Pt,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:Pt,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","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","weekNumberTemplate","headerTitleTemplate"],outputs:["activeViewChange","navigate","cellEnter","cellLeave","valueChange","blur"],exportAs:["kendo-multiviewcalendar"]}],directives:[{type:bi,selector:"[kendoDateRangeSelection]",inputs:["autoCorrectOn","selectionRange","activeRangeEnd"],outputs:["activeRangeEndChange","selectionRangeChange"]}]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ki,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:ye.PopupService},{type:Ua},{type:Wa},{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:[w,{static:!1}]}],viewCalendar:[{type:h.ViewChildren,args:[Pt]}],contentCalendar:[{type:h.ContentChildren,args:[Pt]}],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}]}});Object.defineProperty(Qa.prototype,"hasContentPopup",{get:function(){return 0<this.contentPopup.length},enumerable:!1,configurable:!0}),Qa.prototype.ngAfterContentInit=function(){var e=this;this.showDefault=!this.hasContentPopup,this.subscription=this.contentPopup.changes.subscribe(function(){e.showDefault=!e.hasContentPopup})},Qa.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()};zn=Qa;function Qa(){this.showDefault=!1,A.validatePackage(be)}zn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:zn,deps:[],target:a.ɵɵFactoryTarget.Component}),zn.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:zn,selector:"kendo-daterange",providers:[Ua,Wa],queries:[{propertyName:"contentPopup",predicate:ki}],ngImport:a,template:'\n <ng-content></ng-content>\n <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>\n ',isInline:!0,components:[{type:ki,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:zn,decorators:[{type:h.Component,args:[{providers:[Ua,Wa],selector:"kendo-daterange",template:'\n <ng-content></ng-content>\n <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>\n '}]}],ctorParameters:function(){return[]},propDecorators:{contentPopup:[{type:h.ContentChildren,args:[ki]}]}});Object.defineProperty(Ja.prototype,"isActiveEnd",{get:function(){return this.dateRangeService.activeRangeEnd===this.activeRangeEnd},enumerable:!1,configurable:!0}),Object.defineProperty(Ja.prototype,"popupCalendarActivated",{get:function(){var e=this.dateRangePopupService.dateRangePopup$.value;return r(e)&&r(e.calendar)},enumerable:!1,configurable:!0}),Ja.prototype.init=function(){var t=this;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.dateRangePopupService.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)})},Ja.prototype.destroy=function(){this.subscriptions.unsubscribe(),this.unsubscribePopup()},Ja.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()},Ja.prototype.unsubscribePopup=function(){this.popupSubscriptions.unsubscribe(),this.popupSubscriptions=new p.Subscription},Ja.prototype.activate=function(){this.dateRangeService.setActiveRangeEnd(this.activeRangeEnd),this.dateRangePopupService.activatePopup()},Ja.prototype.deactivate=function(){var n=this;this.zone.runOutsideAngular(function(){setTimeout(function(){n.updateRange(n.input.value,"blur");var e=n.dateRangeService.startInput$.value,t=n.dateRangeService.endInput$.value;n.dateRangePopupService.hasActiveComponent(e,t)||(n.toggleActiveClass(!1),n.zone.run(function(){return n.dateRangePopupService.deactivatePopup()}))})})},Ja.prototype.updateRange=function(e,t){e=this.getRange(e,t);e&&(this.focusActiveDate(),this.dateRangeService.setRange(e))},Ja.prototype.togglePopup=function(e){var t=e.altKey,e=e.keyCode;e===m.Keys.Escape?this.dateRangePopupService.cancelPopup():t&&e===m.Keys.ArrowDown&&this.dateRangePopupService.activatePopup()},Ja.prototype.focusActiveDate=function(){this.input.value&&this.isActiveEnd&&this.dateRangeService.setFocusedDate(k.cloneDate(this.input.value))},Ja.prototype.toggleActiveClass=function(e){var t=this.element.nativeElement;t&&t.querySelector&&this.renderer[e?"addClass":"removeClass"](t,"k-focus")};ve=Ja;function Ja(e,t,n,i,a,o,r){this.activeRangeEnd=e,this.dateRangeService=t,this.dateRangePopupService=n,this.input=i,this.element=a,this.renderer=o,this.zone=r,this.navigateCalendarOnFocus=!1,this.popupSubscriptions=new p.Subscription,this.subscriptions=new p.Subscription}Xe(to,eo=ve),to.prototype.ngOnInit=function(){this.rangeService.registerEndInput(this.dateInput),eo.prototype.init.call(this)},to.prototype.ngOnDestroy=function(){eo.prototype.destroy.call(this)},to.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,n=n.max;if(!Z(e,i,n))return null;i=(this.rangeService.selectionRange||Ie).start;return this.autoCorrectOn===t&&r(e)&&e<i?ce(e):{start:i,end:k.cloneDate(e)}},to.prototype.updateInputValue=function(e){var e=(e||Ie).end,t=this.dateInput,n=t.min,t=t.max;!k.isEqual(this.dateInput.value,e)&&Z(e,n,t)&&(this.dateInput.writeValue(k.cloneDate(e)),this.dateInput.notify())};var eo,c=to;function to(e,t,n,i,a,o){n=eo.call(this,"end",e,n,t,i,a,o)||this;return n.rangeService=e,n.dateInput=t,n.navigateCalendarOnFocus=!1,n}c.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:c,deps:[{token:Ua},{token:ti},{token:Wa},{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:"[kendoDateRangeEndInput]",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:"[kendoDateRangeEndInput]"}]}],ctorParameters:function(){return[{type:Ua},{type:ti},{type:Wa},{type:a.ElementRef},{type:a.Renderer2},{type:a.NgZone}]},propDecorators:{autoCorrectOn:[{type:h.Input}],navigateCalendarOnFocus:[{type:h.Input}]}});Xe(io,no=ve),io.prototype.ngOnInit=function(){this.rangeService.registerStartInput(this.dateInput),no.prototype.init.call(this)},io.prototype.ngOnDestroy=function(){no.prototype.destroy.call(this)},io.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,n=n.max;if(!Z(e,i,n))return null;i=(this.rangeService.selectionRange||Ie).end;return this.autoCorrectOn===t&&i&&i<e?ce(e):{start:k.cloneDate(e),end:i}},io.prototype.updateInputValue=function(e){var e=(e||Ie).start,t=this.dateInput,n=t.min,t=t.max;!k.isEqual(this.dateInput.value,e)&&Z(e,n,t)&&(this.dateInput.writeValue(k.cloneDate(e)),this.dateInput.notify())};var no,ve=io;function io(e,t,n,i,a,o){n=no.call(this,"start",e,n,t,i,a,o)||this;return n.rangeService=e,n.dateInput=t,n.navigateCalendarOnFocus=!1,n}ve.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ve,deps:[{token:Ua},{token:ti},{token:Wa},{token:a.ElementRef},{token:a.Renderer2},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Directive}),ve.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:ve,selector:"[kendoDateRangeStartInput]",inputs:{autoCorrectOn:"autoCorrectOn",navigateCalendarOnFocus:"navigateCalendarOnFocus"},usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ve,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangeStartInput]"}]}],ctorParameters:function(){return[{type:Ua},{type:ti},{type:Wa},{type:a.ElementRef},{type:a.Renderer2},{type:a.NgZone}]},propDecorators:{autoCorrectOn:[{type:h.Input}],navigateCalendarOnFocus:[{type:h.Input}]}});var ao,oo=function(){},P=(oo.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:oo,deps:[],target:a.ɵɵFactoryTarget.NgModule}),oo.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:oo,declarations:[ot,pt,st],imports:[i.CommonModule,m.EventsModule],exports:[ot,pt,st]}),oo.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:oo,imports:[[i.CommonModule,m.EventsModule]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:oo,decorators:[{type:h.NgModule,args:[{declarations:[ot,pt,st],exports:[ot,pt,st],imports:[i.CommonModule,m.EventsModule]}]}]}),function(){}),ro=(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:[wt,Dt,Tt,It,Vt,xt,St,En],exports:[wt,Dt,Tt,It,Vt,xt,St,En]}),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:[wt,Dt,Tt,It,Vt,xt,St,En],exports:[wt,Dt,Tt,It,Vt,xt,St,En]}]}]}),function(){}),so=(ro.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ro,deps:[],target:a.ɵɵFactoryTarget.NgModule}),ro.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ro,declarations:[lt,Ot,Rn,Pt],imports:[i.CommonModule,oo,L.IntlModule,P,z.PopupModule,m.EventsModule],exports:[lt,Ot,Rn,Pt,oo,P]}),ro.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ro,providers:[ht,u,d,je,$e,We],imports:[[i.CommonModule,oo,L.IntlModule,P,z.PopupModule,m.EventsModule],oo,P]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ro,decorators:[{type:h.NgModule,args:[{declarations:[lt,Ot,Rn,Pt],exports:[lt,Ot,Rn,Pt,oo,P],imports:[i.CommonModule,oo,L.IntlModule,P,z.PopupModule,m.EventsModule],providers:[ht,u,d,je,$e,We]}]}]}),[D]),lo=function(){},D=(lo.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:lo,deps:[],target:a.ɵɵFactoryTarget.NgModule}),lo.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:lo,declarations:[D],imports:[i.CommonModule],exports:[D]}),lo.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:lo,imports:[[i.CommonModule]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:lo,decorators:[{type:h.NgModule,args:[{declarations:[so],exports:[so],imports:[i.CommonModule]}]}]}),function(){}),so=(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:[_n,Ft,si,Pn,Dn],imports:[i.CommonModule,oo,ro,L.IntlModule,P,lo,m.EventsModule,m.ResizeSensorModule],exports:[_n,Ft,si,Pn,Dn,oo,P]}),D.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:D,providers:[kn,u,d,je,$e,We],imports:[[i.CommonModule,oo,ro,L.IntlModule,P,lo,m.EventsModule,m.ResizeSensorModule],oo,P]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:D,decorators:[{type:h.NgModule,args:[{declarations:[_n,Ft,si,Pn,Dn],exports:[_n,Ft,si,Pn,Dn,oo,P],imports:[i.CommonModule,oo,ro,L.IntlModule,P,lo,m.EventsModule,m.ResizeSensorModule],providers:[kn,u,d,je,$e,We]}]}]}),function(){}),co=(so.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:so,deps:[],target:a.ɵɵFactoryTarget.NgModule}),so.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:so,imports:[D,ro],exports:[D,ro]}),so.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:so,imports:[[D,ro],D,ro]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:so,decorators:[{type:h.NgModule,args:[{exports:[D,ro],imports:[D,ro]}]}]}),Xe(po,ao=V),Object.defineProperty(po.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),po);function po(e){var t=ao.call(this)||this;return t.service=e,t}co.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:co,deps:[{token:o.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),co.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:co,selector:"kendo-dateinput-messages",providers:[{provide:V,useExisting:h.forwardRef(function(){return co})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:co,decorators:[{type:h.Component,args:[{providers:[{provide:V,useExisting:h.forwardRef(function(){return co})}],selector:"kendo-dateinput-messages",template:""}]}],ctorParameters:function(){return[{type:o.LocalizationService}]}});var uo,u=function(){},ho=(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:[ti,co,qn],imports:[i.CommonModule,L.IntlModule,m.EventsModule],exports:[ti,co,qn]}),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:[ti,co,qn],exports:[ti,co,qn],imports:[i.CommonModule,L.IntlModule,m.EventsModule]}]}]}),Xe(mo,uo=jn),Object.defineProperty(mo.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),mo);function mo(e){var t=uo.call(this)||this;return t.service=e,t}ho.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ho,deps:[{token:o.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),ho.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:ho,selector:"kendo-datepicker-messages",providers:[{provide:jn,useExisting:h.forwardRef(function(){return ho})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ho,decorators:[{type:h.Component,args:[{providers:[{provide:jn,useExisting:h.forwardRef(function(){return ho})}],selector:"kendo-datepicker-messages",template:""}]}],ctorParameters:function(){return[{type:o.LocalizationService}]}});var go,d=function(){},je=(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:[mi,ho,di],imports:[i.CommonModule,u,D,L.IntlModule,z.PopupModule,P,m.EventsModule],exports:[mi,ho,di,P]}),d.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:d,providers:[{provide:ri,useValue:j.touchEnabled}],imports:[[i.CommonModule,u,D,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:[mi,ho,di],exports:[mi,ho,di,P],imports:[i.CommonModule,u,D,L.IntlModule,z.PopupModule,P,m.EventsModule],providers:[{provide:ri,useValue:j.touchEnabled}]}]}]}),[zn,ki,w,bi,ve,c]),$e=[ro,u,z.PopupModule,m.EventsModule],V=function(){},fo=(V.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:V,deps:[],target:a.ɵɵFactoryTarget.NgModule}),V.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:V,declarations:[zn,ki,w,bi,ve,c],imports:[i.CommonModule,ro,u,z.PopupModule,m.EventsModule],exports:[zn,ki,w,bi,ve,c]}),V.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:V,imports:[[i.CommonModule,$e]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:V,decorators:[{type:h.NgModule,args:[{declarations:[je],exports:[je],imports:[i.CommonModule,$e]}]}]}),Xe(vo,go=O),Object.defineProperty(vo.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),vo);function vo(e){var t=go.call(this)||this;return t.service=e,t}fo.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:fo,deps:[{token:o.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),fo.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:fo,selector:"kendo-timepicker-messages",providers:[{provide:O,useExisting:h.forwardRef(function(){return fo})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:fo,decorators:[{type:h.Component,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return fo})}],selector:"kendo-timepicker-messages",template:""}]}],ctorParameters:function(){return[{type:o.LocalizationService}]}});var yo,jn=[Na,na,fo,Aa,Ia,Ra,oa],je=[u,L.IntlModule,z.PopupModule,lo,m.EventsModule],$e=[sa,Ti,Mi,ji,Wi,ea,{provide:ri,useValue:j.touchEnabled}],O=function(){},bo=(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:[Na,na,fo,Aa,Ia,Ra,oa],imports:[i.CommonModule,u,L.IntlModule,z.PopupModule,lo,m.EventsModule],exports:[Na,na,fo,Aa,Ia,Ra,oa]}),O.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:O,providers:$e,imports:[Qe([i.CommonModule],y(je))]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:O,decorators:[{type:h.NgModule,args:[{declarations:[jn],exports:[jn],imports:Qe([i.CommonModule],y(je)),providers:$e}]}]}),Xe(ko,yo=yi),Object.defineProperty(ko.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),ko);function ko(e){var t=yo.call(this)||this;return t.service=e,t}bo.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:bo,deps:[{token:o.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),bo.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:bo,selector:"kendo-datetimepicker-messages",providers:[{provide:yi,useExisting:h.forwardRef(function(){return bo})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:bo,decorators:[{type:h.Component,args:[{providers:[{provide:yi,useExisting:h.forwardRef(function(){return bo})}],selector:"kendo-datetimepicker-messages",template:""}]}],ctorParameters:function(){return[{type:o.LocalizationService}]}});Ti=[$a,bo,ja],Mi=function(){},Mi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Mi,deps:[],target:a.ɵɵFactoryTarget.NgModule}),Mi.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Mi,declarations:[$a,bo,ja],imports:[i.CommonModule,L.IntlModule,u,D,O,z.PopupModule,m.EventsModule,P],exports:[$a,bo,ja,P]}),Mi.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Mi,providers:[{provide:ri,useValue:j.touchEnabled}],imports:[[i.CommonModule,L.IntlModule,u,D,O,z.PopupModule,m.EventsModule,P],P]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Mi,decorators:[{type:h.NgModule,args:[{declarations:Qe([],y(Ti)),exports:Qe(Qe([],y(Ti)),[P]),imports:[i.CommonModule,L.IntlModule,u,D,O,z.PopupModule,m.EventsModule,P],providers:[{provide:ri,useValue:j.touchEnabled}]}]}]}),ji=[so,u,d,O,V,Mi],Wi=function(){};Wi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Wi,deps:[],target:a.ɵɵFactoryTarget.NgModule}),Wi.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Wi,imports:[so,u,d,O,V,Mi],exports:[so,u,d,O,V,Mi]}),Wi.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Wi,imports:[ji,so,u,d,O,V,Mi]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Wi,decorators:[{type:h.NgModule,args:[{exports:ji,imports:ji}]}]}),e.CalendarCommonModule=oo,e.CalendarComponent=_n,e.CalendarCustomMessagesComponent=si,e.CalendarLocalizedMessagesDirective=Pn,e.CalendarModule=D,e.CalendarsModule=so,e.CellTemplateDirective=wt,e.CenturyCellTemplateDirective=Vt,e.DateInputComponent=ti,e.DateInputCustomMessagesComponent=co,e.DateInputLocalizedMessagesDirective=qn,e.DateInputModule=u,e.DateInputsModule=Wi,e.DatePickerComponent=mi,e.DatePickerCustomMessagesComponent=ho,e.DatePickerLocalizedMessagesDirective=di,e.DatePickerModule=d,e.DateRangeComponent=zn,e.DateRangeEndInputDirective=c,e.DateRangeModule=V,e.DateRangePopupComponent=ki,e.DateRangePopupService=Wa,e.DateRangePopupTemplateDirective=w,e.DateRangeSelectionDirective=bi,e.DateRangeService=Ua,e.DateRangeStartInputDirective=ve,e.DateTimePickerComponent=$a,e.DateTimePickerCustomMessagesComponent=bo,e.DateTimePickerModule=Mi,e.DecadeCellTemplateDirective=It,e.HeaderComponent=pt,e.HeaderTitleTemplateDirective=St,e.HorizontalViewListComponent=lt,e.KForOf=ot,e.LocalizedMessagesDirective=ja,e.MonthCellTemplateDirective=Dt,e.MultiViewCalendarComponent=Pt,e.MultiViewCalendarCustomMessagesComponent=Rn,e.MultiViewCalendarLocalizedMessagesDirective=Ot,e.MultiViewCalendarModule=ro,e.NavigationComponent=Ft,e.NavigationItemTemplateDirective=En,e.PreventableEvent=ni,e.TemplatesModule=P,e.TimeListComponent=na,e.TimePickerComponent=Aa,e.TimePickerCustomMessagesComponent=fo,e.TimePickerLocalizedMessagesDirective=Na,e.TimePickerModule=O,e.TimeSelectorComponent=oa,e.TimeSelectorCustomMessagesComponent=Ra,e.TimeSelectorLocalizedMessagesDirective=Ia,e.ViewComponent=st,e.ViewListComponent=Dn,e.WeekNumberCellTemplateDirective=xt,e.YearCellTemplateDirective=Tt,Object.defineProperty(e,"__esModule",{value:!0})});
|