@progress/kendo-angular-dateinputs 6.0.3 → 7.0.0-next.202203231050
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 -115
- 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
package/dist/cdn/main.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core"),require("tslib"),require("@progress/kendo-date-math"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-angular-intl"),require("@progress/kendo-angular-common"),require("rxjs"),require("@progress/kendo-angular-popup"),require("@angular/common"),require("@angular/forms"),require("@progress/kendo-licensing"),require("rxjs/operators"),require("@progress/kendo-common")):"function"==typeof define&&define.amd?define([,,,,,,,,,,,,],t):"object"==typeof exports?exports.KendoAngularDateinputs=t(require("@angular/core"),require("tslib"),require("@progress/kendo-date-math"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-angular-intl"),require("@progress/kendo-angular-common"),require("rxjs"),require("@progress/kendo-angular-popup"),require("@angular/common"),require("@angular/forms"),require("@progress/kendo-licensing"),require("rxjs/operators"),require("@progress/kendo-common")):e.KendoAngularDateinputs=t(e.ng.core,e.self,e.KendoDateMath,e.KendoAngularL10N,e.KendoAngularIntl,e.KendoAngularCommon,e.rxjs,e.KendoAngularPopup,e.ng.common,e.ng.forms,e.KendoLicensing,e.rxjs.operators,e.KendoCommon)}(window,(function(e,t,n,i,a,o,r,s,l,c,d,u,p){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(i,a,function(t){return e[t]}.bind(null,a));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=99)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=n(8),o=n(12),r=n(7),s=function(e){return null!=e},l=function(e){return function(t,n){var a=i.cloneDate(t);return a[e](n),a}};t.setTime=function(e,t){var n=i.cloneDate(e);return n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n};var c=function(e,n,o){return{candidateValue:t.setTime(a.MIDNIGHT_DATE,e),maxValue:i.addDays(t.setTime(a.MIDNIGHT_DATE,o),n.getHours()<o.getHours()||n.getHours()===o.getHours()&&n.getMinutes()<o.getMinutes()?0:1),minValue:t.setTime(a.MIDNIGHT_DATE,n)}};t.setYears=l("setFullYear"),t.setHours=l("setHours"),t.setMinutes=l("setMinutes"),t.setSeconds=l("setSeconds"),t.setMilliseconds=l("setMilliseconds"),t.range=function(e,t,n){void 0===n&&(n=1);for(var i=[],a=e;a<t;a+=n)i.push(a);return i},t.isInRange=function(e,t,n){return!e||!(t&&t>e||n&&n<e)},t.isInTimeRange=function(e,t,n){if(!e||!t||!n)return!0;var i=c(e,t,n),a=i.candidateValue,o=i.minValue,r=i.maxValue;return o<=a&&a<=r},t.isValidRange=function(e,t){return!s(e)||!s(t)||e<=t},t.dateInRange=function(e,t,n){return e?t&&e<t?i.cloneDate(t):n&&e>n?i.cloneDate(n):e:e},t.timeInRange=function(e,n,i){if(!e||!n||!i)return e;var a=c(e,n,i),o=a.candidateValue,r=a.minValue,s=a.maxValue;return o<r?t.setTime(e,n):o>s?t.setTime(e,i):e},t.getNow=function(){return new Date},t.getToday=function(){return i.getDate(new Date)},t.noop=function(e){},t.isWindowAvailable=function(){return"undefined"!=typeof window},t.stringifyClassObject=function(e){return Object.keys(e).reduce((function(t,n){return e[n]?t.concat(n):t}),[]).join(" ")},t.shiftWeekNames=function(e,t){return e.slice(t).concat(e.slice(0,t))},t.approximateStringMatching=function(e,t,n,i){var a=i+e.length-n.length,o=e[a],r=e.substring(0,i+e.length-n.length),s=n.substring(0,i),l=[];if(r===s&&i>0)return l.push([t[i-1],s[i-1]]),l;if(0===r.indexOf(s)&&(0===s.length||t[s.length-1]!==t[s.length])){var c="";1===s.length&&l.push([t[0],s[0]]);for(var d=s.length;d<r.length;d++)t[d]!==c&&"_"!==t[d]&&(c=t[d],l.push([c,""]));return l}if(0===s.indexOf(r)||"_"===t[i-1]){var u=t[0];for(d=Math.max(0,r.length-1);d<t.length;d++)if("_"!==t[d]){u=t[d];break}return[[u,s[i-1]]]}return" "===s[s.length-1]||s[s.length-1]===o&&"_"===t[a]?[[t[i-1],"_"]]:[[t[i-1],s[i-1]]]},t.domContainerFactory=function(e){return function(t,n,i){void 0===n&&(n=""),void 0===i&&(i={});var a=document.createElement(e);return a.className=n,Object.keys(i).map((function(e){return a.style[e]=i[e]})),"string"==typeof t?a.innerHTML=t||"":(t||[]).forEach((function(e){return e&&a.appendChild(e)})),a}},t.hasChange=function(e,t){return void 0!==e[t]},t.hasExistingValue=function(e,t){return e[t]&&void 0!==e[t].currentValue&&null!==e[t].currentValue},t.last=function(e){return void 0===e&&(e=[]),e&&e[e.length-1]},t.isInSelectionRange=function(e,t){var n=t||o.EMPTY_SELECTIONRANGE,i=n.start,a=n.end;return!(!i||!a)&&(i<e&&e<a)},t.either=function(e,t){return e||t},t.clampRange=function(e){return{start:e,end:e}},t.isEqualRange=function(e,t){var n=e||o.EMPTY_SELECTIONRANGE,a=n.start,r=n.end,s=t||o.EMPTY_SELECTIONRANGE,l=s.start,c=s.end;return i.isEqual(a,l)&&i.isEqual(r,c)},t.areDatesEqual=function(e,t){return t=t||[],(e=e||[]).length===t.length&&e.every((function(e,n){return i.isEqual(e,t[n])}))},t.sortDates=function(e){return e.filter((function(e){return r.isPresent(e)})).sort((function(e,t){return e.getTime()-t.getTime()}))},t.mergeDateAndTime=function(e,t){return e&&t?new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()):null},t.lastMillisecondOfDate=function(e){return e?new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999):null},t.disabledDatesInRange=function(e,t,n){if(!(e&&t&&n)||e>t)return[];for(var a=[],o=e;o<=t;)n(o)&&a.push(o),o=i.addDays(o,1);return a},t.cropTwoDigitYear=function(e){return!r.isPresent(e)||isNaN(e.getTime())?0:Number(e.getFullYear().toString().slice(-2))},t.msPaddingFromFormat=function(e){return Array(e.match(/S+(\1)/)[0].length).join("0")},t.millisecondDigitsInFormat=function(e){var t=e&&e.match(/S+(\1)/);return t?t[0].length:0},t.millisecondStepFor=function(e){return Math.pow(10,3-e)},t.isTabExitingCalendar=function(e,t,n){return!!r.isPresent(t)&&("infinite"===e||"classic"===e&&n&&t.classList.contains("k-calendar")||!n&&t.classList.contains("k-next-view"))},t.getSizeClass=function(e,t){return{small:"k-"+e+"-sm",medium:"k-"+e+"-md",large:"k-"+e+"-lg"}[t]},t.getRoundedClass=function(e){return{small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[e]},t.getFillModeClass=function(e,t){return{solid:"k-"+e+"-solid",flat:"k-"+e+"-flat",outline:"k-"+e+"-outline"}[t]}},function(e,t){e.exports=i},function(e,t){e.exports=a},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requiresZoneOnBlur=function(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)},t.preventDefault=function(e){return e.preventDefault()},t.currentFocusTarget=function(e){return e.relatedTarget||document.activeElement},t.isPresent=function(e){return null!=e},t.isNumberArray=function(e){return Array.isArray(e)&&e.length>0&&e.every((function(e){return"number"==typeof e}))},t.isDateArray=function(e){return Array.isArray(e)&&e.length>0&&e.every((function(e){return e instanceof Date}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIDNIGHT_DATE=new Date(1980,0,1),t.MIN_DATE=new Date(1900,0,1),t.MAX_DATE=new Date(2099,11,31),t.MIN_TIME=new Date(1980,0,1),t.MAX_TIME=new Date(1980,0,1,23,59,59)},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.month=0]="month",e[e.year=1]="year",e[e.decade=2]="decade",e[e.century=3]="century"}(t.CalendarViewEnum||(t.CalendarViewEnum={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=n(46),s=n(47),l=n(48),c=n(49),d=n(10),u=((i={})[d.CalendarViewEnum.month]=l.MonthViewService,i[d.CalendarViewEnum.year]=c.YearViewService,i[d.CalendarViewEnum.decade]=s.DecadeViewService,i[d.CalendarViewEnum.century]=r.CenturyViewService,i),p=function(){function e(e){this.injector=e,this.viewChanged=new o.EventEmitter,this.bottom=d.CalendarViewEnum.month,this.top=d.CalendarViewEnum.century}return e.prototype.configure=function(e,t){this.bottom=e,this.top=t},e.prototype.service=function(e){var t=u[e];return t?this.injector.get(t):null},e.prototype.moveDown=function(e){this.move(e,-1)},e.prototype.moveUp=function(e){this.move(e,1)},e.prototype.moveToBottom=function(e){e!==this.bottom&&this.viewChanged.emit({view:this.bottom})},e.prototype.canMoveDown=function(e){return this.bottom<e},e.prototype.canMoveUp=function(e){return e<this.top},e.prototype.clamp=function(e){return e<this.bottom?this.bottom:e>this.top?this.top:e},e.prototype.move=function(e,t){var n=this.clamp(function(e,t){var n=d.CalendarViewEnum[d.CalendarViewEnum[e+t]];return void 0!==n?n:e}(e,t));n!==e&&this.viewChanged.emit({view:n})},e=a.__decorate([o.Injectable(),a.__metadata("design:paramtypes",[o.Injector])],e)}();t.BusViewService=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_SELECTIONRANGE={start:null,end:null}},function(e,t){e.exports=s},function(e,t){e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Up=2]="Up",e[e.Down=3]="Down",e[e.PrevView=4]="PrevView",e[e.NextView=5]="NextView",e[e.FirstInView=6]="FirstInView",e[e.LastInView=7]="LastInView",e[e.LowerView=8]="LowerView",e[e.UpperView=9]="UpperView"}(t.Action||(t.Action={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=function(){this.onFocus=new i.EventEmitter,this.onBlur=new i.EventEmitter,this.sameDateSelected=new i.EventEmitter,this.dateCompletenessChange=new i.EventEmitter};t.PickerService=a},function(e,t){e.exports=c},function(e,t){e.exports=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-dateinputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1647358649,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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(2),r=n(9),s=n(7),l=function(){return!1},c=function(){function e(){this.changes=new r.Subject,this.isDateDisabled=l}return e.prototype.initialize=function(e){if("function"==typeof e)this.isDateDisabled=function(t){return e(o.getDate(t))};else if(s.isNumberArray(e)){var t=new Set(e);this.isDateDisabled=function(e){return t.has(e.getDay())}}else if(s.isDateArray(e)){var n=new Set(e.map((function(e){return o.getDate(e).getTime()})));this.isDateDisabled=function(e){return n.has(o.getDate(e).getTime())}}else this.isDateDisabled=l,this.notifyInvalidInput(e);this.notifyServiceChange()},e.prototype.notifyInvalidInput=function(e){if(s.isPresent(e)&&a.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.")},e.prototype.notifyServiceChange=function(){this.changes.next()},e=i.__decorate([a.Injectable()],e)}();t.DisabledDatesService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.closestInScope=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.TOUCH_ENABLED=new i.InjectionToken("dateinputs-touch-enabled")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(9),r=n(12),s=n(2),l=function(e){return e&&e.isActive||!1},c=function(){function e(){this.activeRangeEnd$=new o.BehaviorSubject(null),this.focusedDate$=new o.BehaviorSubject(null),this.endInput$=new o.BehaviorSubject(null),this.startInput$=new o.BehaviorSubject(null),this.dateRangePopup$=new o.BehaviorSubject(null),this.range$=new o.BehaviorSubject(r.EMPTY_SELECTIONRANGE)}return Object.defineProperty(e.prototype,"activeRangeEnd",{get:function(){return this.activeRangeEnd$.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusedDate",{get:function(){return this.focusedDate$.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return(this.startInput$.value||{}).min||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return(this.endInput$.value||{}).max||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectionRange",{get:function(){return this.range$.value},enumerable:!0,configurable:!0}),e.prototype.activatePopup=function(){var e=this.dateRangePopup$.value;e&&e.activate()},e.prototype.deactivatePopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&(e.show=!1)},e.prototype.cancelPopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&e.cancelPopup()},e.prototype.destroy=function(){this.activeRangeEnd$.complete(),this.dateRangePopup$.complete(),this.focusedDate$.complete(),this.endInput$.complete(),this.startInput$.complete(),this.range$.complete()},e.prototype.hasActiveComponent=function(){var e=this.dateRangePopup$.value,t=l(e),n=l(this.startInput$.value),i=l(this.endInput$.value);return t||n||i||function(e){return e&&e.hasActiveContent()}(e)||!1},e.prototype.registerStartInput=function(e){this.startInput$.next(e)},e.prototype.registerEndInput=function(e){this.endInput$.next(e)},e.prototype.registerPopup=function(e){this.dateRangePopup$.next(e)},e.prototype.setActiveRangeEnd=function(e){e&&this.activeRangeEnd!==e&&this.activeRangeEnd$.next(e)},e.prototype.setFocusedDate=function(e){s.isEqual(this.focusedDate$.value,e)||this.focusedDate$.next(e)},e.prototype.setRange=function(e){void 0===e&&(e=r.EMPTY_SELECTIONRANGE),this.range$.next(e)},e=i.__decorate([a.Injectable()],e)}();t.DateRangeService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(39),r=n(14),s=n(5),l=n(81),c=n(83),d=n(6),u=function(){function e(){}return e=i.__decorate([a.NgModule({declarations:[o.DateInputComponent,c.DateInputCustomMessagesComponent,l.DateInputLocalizedMessagesDirective],exports:[o.DateInputComponent,c.DateInputCustomMessagesComponent,l.DateInputLocalizedMessagesDirective],imports:[r.CommonModule,s.IntlModule,d.EventsModule]})],e)}();t.DateInputModule=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(17),r=n(4),s=n(2),l=n(6),c=n(58),d=n(59),u=n(11),p=n(51),h=n(60),m=n(20),g=n(26),f=n(27),v=n(28),y=n(29),_=n(30),b=n(31),C=n(32),w=n(15),D=n(10),k=n(33),T=n(34),E=n(100),S=n(8),M=n(3),I=n(9),O=n(7),V=n(16),R="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json";t.RANGE_CALENDAR_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:a.forwardRef((function(){return x}))},t.RANGE_CALENDAR_RANGE_VALIDATORS={multi:!0,provide:o.NG_VALIDATORS,useExisting:a.forwardRef((function(){return x}))};var x=function(){function e(e,t,n,i,o,r,s,c,d){this.bus=e,this.element=t,this.navigator=n,this.renderer=i,this.cdr=o,this.zone=r,this.disabledDatesService=s,this.selectionService=c,this.pickerService=d,this.id=l.guid(),this.rangeValidation=!1,this.disabledDatesRangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.isActive=!1,this.isHeaderActive=!1,this.activeView=D.CalendarViewEnum[D.CalendarViewEnum.month],this.bottomView=D.CalendarViewEnum[D.CalendarViewEnum.month],this.topView=D.CalendarViewEnum[D.CalendarViewEnum.century],this.showViewHeader=!1,this.animateNavigation=!1,this.weekNumber=!1,this.views=2,this.activeViewChange=new a.EventEmitter,this.navigate=new a.EventEmitter,this.cellEnter=new a.EventEmitter,this.cellLeave=new a.EventEmitter,this.valueChange=new a.EventEmitter,this.blurEvent=new a.EventEmitter,this.cellUID=l.guid(),this.isHovered=!1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.prevView=w.Action.PrevView,this.nextView=w.Action.NextView,this.selectedDates=[],this._min=new Date(S.MIN_DATE),this._max=new Date(S.MAX_DATE),this._focusedDate=M.getToday(),this.resolvedPromise=Promise.resolve(),this.onControlChange=M.noop,this.onControlTouched=M.noop,this.onValidatorChange=M.noop,this.minValidateFn=M.noop,this.maxValidateFn=M.noop,this.disabledDatesRangeValidateFn=M.noop,this.subscriptions=new I.Subscription,this.setClasses(t.nativeElement)}return Object.defineProperty(e.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){this._focusedDate=e||M.getToday()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(S.MIN_DATE)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(S.MAX_DATE)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter((function(e){return O.isPresent(e)})).map((function(e){return s.cloneDate(e)})):s.cloneDate(e);var t=[].concat(e).filter((function(e){return O.isPresent(e)})).map((function(e){return s.cloneDate(e)}));if(!M.areDatesEqual(t,this.selectedDates)){var n=M.last(t);this.rangePivot=s.cloneDate(n),this.focusedDate=s.cloneDate(n)||this.focusedDate,this.selectedDates=t}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledDates",{set:function(e){this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectionRange",{get:function(){return this._selectionRange},set:function(e){this._selectionRange=e,this.disabledDatesRangeValidation&&this.onValidatorChange()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellTemplateRef",{get:function(){return this._cellTemplateRef||this.cellTemplate},set:function(e){this._cellTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"monthCellTemplateRef",{get:function(){return this._monthCellTemplateRef||this.monthCellTemplate},set:function(e){this._monthCellTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yearCellTemplateRef",{get:function(){return this._yearCellTemplateRef||this.yearCellTemplate},set:function(e){this._yearCellTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decadeCellTemplateRef",{get:function(){return this._decadeCellTemplateRef||this.decadeCellTemplate},set:function(e){this._decadeCellTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centuryCellTemplateRef",{get:function(){return this._centuryCellTemplateRef||this.centuryCellTemplate},set:function(e){this._centuryCellTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekNumberTemplateRef",{get:function(){return this._weekNumberTemplateRef||this.weekNumberTemplate},set:function(e){this._weekNumberTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headerTitleTemplateRef",{get:function(){return this._headerTitleTemplateRef||this.headerTitleTemplate},set:function(e){this._headerTitleTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeViewEnum",{get:function(){var e=D.CalendarViewEnum[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomViewEnum",{get:function(){return D.CalendarViewEnum[this.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topViewEnum",{get:function(){return D.CalendarViewEnum[this.topView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendarTabIndex",{get:function(){return this.disabled?void 0:this.tabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaActivedescendant",{get:function(){return this.cellUID+this.focusedDate.getTime()},enumerable:!0,configurable:!0}),e.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)},e.prototype.handleFocus=function(){this.isActive=!0,this.isHeaderActive=!1},e.prototype.handleMouseEnter=function(){this.isHovered=!0},e.prototype.handleMouseLeave=function(){this.isHovered=!1},e.prototype.handleMousedown=function(e){e.preventDefault()},e.prototype.handleClick=function(){this.isActive||this.focus()},e.prototype.keydown=function(e){if(!this.isHeaderActive){e.keyCode===l.Keys.Enter&&(O.isPresent(this.pickerService)&&e.preventDefault(),this.performSelection(this.focusedDate,e));var t=M.dateInRange(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max);if(!s.isEqual(this.focusedDate,t))this.focusedDate=t,e.preventDefault(),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)}},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.bus.viewChanged.subscribe((function(t){var n=t.view;e.activeView=D.CalendarViewEnum[n],e.activeViewChange.emit(e.activeView),e.cdr.detectChanges(),e.updateButtonState()})))},e.prototype.ngOnChanges=function(e){if(this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),M.hasExistingValue(e,"focusedDate")){var t=e.focusedDate.currentValue;this.focusedDate=M.dateInRange(t,this.min,this.max)}(e.min||e.max||e.rangeValidation||e.disabledDates||e.disabledDatesRangeValidation)&&(this.minValidateFn=this.rangeValidation?k.minValidator(this.min):M.noop,this.maxValidateFn=this.rangeValidation?T.maxValidator(this.max):M.noop,this.disabledDatesRangeValidateFn=this.disabledDatesRangeValidation?E.disabledDatesRangeValidator(this.disabledDatesService.isDateDisabled):M.noop,this.onValidatorChange()),(e.min||e.max||e.focusedDate||e.activeView)&&this.updateButtonState()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.ngAfterViewInit=function(){this.updateButtonState()},e.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},e.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},e.prototype.handleHeaderFocus=function(){this.isHeaderActive=!0},e.prototype.handleDateChange=function(e){var t=this,n=this.bus.canMoveDown(this.activeViewEnum),i=e.selectedDates.filter((function(e){return!t.disabledDatesService.isDateDisabled(e)}));this.focusedDate=e.focusedDate||this.focusedDate;var a=!n&&M.areDatesEqual(i,this.selectedDates);this.disabled||a||(n?this.bus.moveDown(this.activeViewEnum):this.disabledDatesService.isDateDisabled(this.focusedDate)||(this.selectedDates=i.map((function(e){return s.cloneDate(e)})),this.value=this.parseSelectionToValue(i),this.onControlChange(this.parseSelectionToValue(i)),this.valueChange.emit(this.parseSelectionToValue(i))))},e.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)},e.prototype.setActiveDate=function(e){this.activeDate=s.cloneDate(e),this.cdr.detectChanges()},e.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesRangeValidateFn(this.selectionRange)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case D.CalendarViewEnum.month:return this.monthCellTemplateRef||this.cellTemplateRef;case D.CalendarViewEnum.year:return this.yearCellTemplateRef;case D.CalendarViewEnum.decade:return this.decadeCellTemplateRef;case D.CalendarViewEnum.century:return this.centuryCellTemplateRef;default:return null}},e.prototype.navigateView=function(e){this.focusedDate=this.viewList.navigate(e),this.updateButtonState(),this.emitNavigate(this.focusedDate)},e.prototype.emitNavigate=function(e){var t=D.CalendarViewEnum[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},e.prototype.emitCellEvent=function(e,t){l.hasObservers(e)&&this.zone.run((function(){e.emit(t)}))},e.prototype.handleCellClick=function(e){var t=e.date,n=e.modifiers;this.performSelection(t,n),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)},e.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.zone.run((function(){t.handleDateChange({selectedDates:e,focusedDate:M.last(e)})}))},e.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-range")},e.prototype.verifyChanges=function(){if(a.isDevMode()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}},e.prototype.verifyValue=function(e){if(a.isDevMode()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check "+R+" 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 "+R+" for possible resolution.")}},e.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()}))},e.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?s.cloneDate(M.last(e)):e.map((function(e){return s.cloneDate(e)}))},e.prototype.performSelection=function(e,t){var n=this.selectionService.performSelection({date:e,modifiers:t,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=n.rangePivot,this.handleDateChange({selectedDates:n.selectedDates,focusedDate:e})},i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"id",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"focusedDate",null),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"min",null),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"max",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rangeValidation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabledDatesRangeValidation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"selection",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"value",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isActive",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"disabledDates",null),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"bottomView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"topView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"showViewHeader",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"animateNavigation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"weekNumber",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"activeRangeEnd",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"selectionRange",null),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"views",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"activeViewChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"navigate",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cellEnter",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cellLeave",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([a.Output("blur"),i.__metadata("design:type",a.EventEmitter)],e.prototype,"blurEvent",void 0),i.__decorate([a.ContentChild(g.CellTemplateDirective,{static:!1}),i.__metadata("design:type",g.CellTemplateDirective)],e.prototype,"cellTemplate",void 0),i.__decorate([a.Input("cellTemplate"),i.__metadata("design:type",g.CellTemplateDirective),i.__metadata("design:paramtypes",[g.CellTemplateDirective])],e.prototype,"cellTemplateRef",null),i.__decorate([a.ContentChild(f.MonthCellTemplateDirective,{static:!1}),i.__metadata("design:type",f.MonthCellTemplateDirective)],e.prototype,"monthCellTemplate",void 0),i.__decorate([a.Input("monthCellTemplate"),i.__metadata("design:type",f.MonthCellTemplateDirective),i.__metadata("design:paramtypes",[f.MonthCellTemplateDirective])],e.prototype,"monthCellTemplateRef",null),i.__decorate([a.ContentChild(v.YearCellTemplateDirective,{static:!1}),i.__metadata("design:type",v.YearCellTemplateDirective)],e.prototype,"yearCellTemplate",void 0),i.__decorate([a.Input("yearCellTemplate"),i.__metadata("design:type",v.YearCellTemplateDirective),i.__metadata("design:paramtypes",[v.YearCellTemplateDirective])],e.prototype,"yearCellTemplateRef",null),i.__decorate([a.ContentChild(y.DecadeCellTemplateDirective,{static:!1}),i.__metadata("design:type",y.DecadeCellTemplateDirective)],e.prototype,"decadeCellTemplate",void 0),i.__decorate([a.Input("decadeCellTemplate"),i.__metadata("design:type",y.DecadeCellTemplateDirective),i.__metadata("design:paramtypes",[y.DecadeCellTemplateDirective])],e.prototype,"decadeCellTemplateRef",null),i.__decorate([a.ContentChild(_.CenturyCellTemplateDirective,{static:!1}),i.__metadata("design:type",_.CenturyCellTemplateDirective)],e.prototype,"centuryCellTemplate",void 0),i.__decorate([a.Input("centuryCellTemplate"),i.__metadata("design:type",_.CenturyCellTemplateDirective),i.__metadata("design:paramtypes",[_.CenturyCellTemplateDirective])],e.prototype,"centuryCellTemplateRef",null),i.__decorate([a.ContentChild(b.WeekNumberCellTemplateDirective,{static:!1}),i.__metadata("design:type",b.WeekNumberCellTemplateDirective)],e.prototype,"weekNumberTemplate",void 0),i.__decorate([a.Input("weekNumberTemplate"),i.__metadata("design:type",b.WeekNumberCellTemplateDirective),i.__metadata("design:paramtypes",[b.WeekNumberCellTemplateDirective])],e.prototype,"weekNumberTemplateRef",null),i.__decorate([a.ContentChild(C.HeaderTitleTemplateDirective,{static:!1}),i.__metadata("design:type",C.HeaderTitleTemplateDirective)],e.prototype,"headerTitleTemplate",void 0),i.__decorate([a.Input("headerTitleTemplate"),i.__metadata("design:type",C.HeaderTitleTemplateDirective),i.__metadata("design:paramtypes",[C.HeaderTitleTemplateDirective])],e.prototype,"headerTitleTemplateRef",null),i.__decorate([a.ViewChild(d.HeaderComponent,{static:!1,read:a.ElementRef}),i.__metadata("design:type",a.ElementRef)],e.prototype,"headerElement",void 0),i.__decorate([a.ViewChild(c.HorizontalViewListComponent,{static:!1}),i.__metadata("design:type",c.HorizontalViewListComponent)],e.prototype,"viewList",void 0),i.__decorate([a.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"widgetId",null),i.__decorate([a.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"calendarTabIndex",null),i.__decorate([a.HostBinding("attr.aria-disabled"),a.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaDisabled",null),i.__decorate([a.HostBinding("attr.aria-activedescendant"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"ariaActivedescendant",null),i.__decorate([a.HostListener("focusout",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"handleFocusout",null),i.__decorate([a.HostListener("focus"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"handleFocus",null),i.__decorate([a.HostListener("mouseenter"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"handleMouseEnter",null),i.__decorate([a.HostListener("mouseleave"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"handleMouseLeave",null),i.__decorate([a.HostListener("mousedown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"handleMousedown",null),i.__decorate([a.HostListener("click"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"handleClick",null),i.__decorate([a.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"keydown",null),e=i.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,exportAs:"kendo-multiviewcalendar",providers:[u.BusViewService,t.RANGE_CALENDAR_VALUE_ACCESSOR,t.RANGE_CALENDAR_RANGE_VALIDATORS,r.LocalizationService,m.DisabledDatesService,{provide:r.L10N_PREFIX,useValue:"kendo.multiviewcalendar"},p.NavigationService,h.SelectionService],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 (valueChange)="handleDateChange($event)"\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 '}),i.__param(8,a.Optional()),i.__metadata("design:paramtypes",[u.BusViewService,a.ElementRef,p.NavigationService,a.Renderer2,a.ChangeDetectorRef,a.NgZone,m.DisabledDatesService,h.SelectionService,V.PickerService])],e)}();t.MultiViewCalendarComponent=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoCalendarCellTemplate]"}),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.CellTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoCalendarMonthCellTemplate]"}),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.MonthCellTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoCalendarYearCellTemplate]"}),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.YearCellTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoCalendarDecadeCellTemplate]"}),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.DecadeCellTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoCalendarCenturyCellTemplate]"}),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.CenturyCellTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoCalendarWeekNumberCellTemplate]"}),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.WeekNumberCellTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoCalendarHeaderTitleTemplate]"}),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.HeaderTitleTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.minValidator=function(e){return function(t){var n={minError:{minValue:e,value:t.value}};return e&&t.value&&t.value<e?n:null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.maxValidator=function(e){return function(t){var n={maxError:{maxValue:e,value:t.value}};return e&&t.value&&t.value>e?n:null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=n(10),s=n(6),l=n(3),c=n(7),d=l.domContainerFactory("div"),u=l.domContainerFactory("ul"),p=l.domContainerFactory("li"),h=l.domContainerFactory("td"),m=l.domContainerFactory("th"),g=l.domContainerFactory("tr"),f=l.domContainerFactory("tbody"),v=l.domContainerFactory("thead"),y=l.domContainerFactory("table"),_=function(e,t){return new Array(e).fill("1").map(t)},b=function(e){return d(e,"k-flex k-content k-calendar-content k-scrollable")},C=function(){return s.isDocumentAvailable?(i||(i=d([b([u([p("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),i):null},w=function(e,t,n){var i,a=e.cells,o=e.rows;return function(){return s.isDocumentAvailable?(i||(i=function(e,t,n){return d([d('\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"),n?y([v([g([m("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table"):null,b([e,e])],t,{left:"-10000px",position:"absolute"})}(function(e,t){return void 0===t&&(t=1),y([f([g([m("1","k-calendar-th")],"k-calendar-tr")].concat(_(e,(function(){return g(_(t,(function(e){return h('<span class="k-link">'+e+"</span>","k-calendar-td")})),"k-calendar-tr")}))),"k-calendar-tbody")],"k-calendar-table")}(o,a),t,n)),i):null}},D=function(e){return e.querySelector(".k-scrollable")},k=function(e){return D(e).classList.add("k-scrollable-horizontal"),e},T=w({cells:7,rows:6},"k-vstack k-calendar-view k-calendar-monthview",!0),E=w({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-yearview",!1),S=w({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),M=function(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight},I=function(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth},O=function(e){return e.querySelector("tbody")},V=function(){function e(){}return e.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){var t=this;s.isDocumentAvailable()&&(this.hostContainer=e,this.batch(T(),(function(e){var n=O(e);t.calendarHeight=M(e),t.monthViewHeight=M(n),t.headerHeight=M(n.children[0]),t.scrollableContentHeight=M(D(e))})),this.batch(k(T()),(function(e){var n=O(e);t.calendarWidth=I(e),t.monthViewWidth=I(n),t.scrollableContentWidth=I(D(e))})),this.batch(E(),(function(e){t.yearViewHeight=M(O(e)),t.scrollableYearContentHeight=M(D(e))})),this.batch(k(E()),(function(e){t.yearViewWidth=I(O(e))})),this.batch(S(),(function(e){t.decadeViewHeight=M(O(e)),t.centuryViewHeight=t.decadeViewHeight})),this.batch(k(S()),(function(e){t.decadeViewWidth=I(O(e)),t.centuryViewWidth=t.decadeViewWidth})),this.batch(C(),(function(e){t.navigationItemHeight=M(e.querySelector("li"))})))},e.prototype.viewHeight=function(e){return this.viewDimension(e,"height")},e.prototype.viewWidth=function(e){return this.viewDimension(e,"width")},e.prototype.viewDimension=function(e,t){var n="height"===t?"ViewHeight":"ViewWidth";switch(e){case r.CalendarViewEnum.month:return this["month"+n];case r.CalendarViewEnum.year:return this["year"+n];case r.CalendarViewEnum.decade:return this["decade"+n];case r.CalendarViewEnum.century:return this["century"+n];default:return 1}},e.prototype.batch=function(e,t){if(c.isPresent(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)}}},e=a.__decorate([o.Injectable()],e)}();t.CalendarDOMService=V},function(e,t){e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o,r,s=n(1),l=n(0),c=n(101),d=n(102),u=n(6),p=n(9),h=n(36);function m(e){return new d.ScrollerService(e)}t.SCROLLER_FACTORY_TOKEN=new l.InjectionToken("dateinputs-scroll-service-factory"),t.DEFAULT_SCROLLER_FACTORY=m,function(e){e[e.Backward=0]="Backward",e[e.Forward=1]="Forward"}(r=t.ScrollDirection||(t.ScrollDirection={}));var g=((i={})[r.Forward]=function(e){return function(t){return t+e}},i[r.Backward]=function(e){return function(t){return t-e}},i),f=((a={})[r.Forward]=function(e){return function(t){return Math.min(t,e)}},a[r.Backward]=function(e){return function(t){return Math.max(t,e)}},a),v=((o={})[r.Forward]=function(e){return function(t){return t<e}},o[r.Backward]=function(e){return function(t){return t>e}},o),y=function(){function e(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 l.EventEmitter,this.pageChange=new l.EventEmitter,this.scrollChange=new l.EventEmitter,this.wrapperClasses=!0,this.resolvedPromise=Promise.resolve(null),this.dispatcher=new p.Subject,this.scroller=e(this.dispatcher)}return Object.defineProperty(e.prototype,"horizontalClass",{get:function(){return"horizontal"===this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalVertexLength",{get:function(){var e=this.totalSize+"px";return"vertical"===this.direction?{height:e}:{width:e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"containerOffsetSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"containerScrollSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"containerScrollPosition",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){(e.direction||e.take||e.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)},e.prototype.ngOnInit=function(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())},e.prototype.ngAfterViewInit=function(){var e=this;this.zone.runOutsideAngular((function(){e.containerScrollSubscription=e.scroll$().pipe(h.map((function(e){return e.target}))).subscribe((function(t){e.dispatcher.next(t),e.emitActiveIndex()}))}))},e.prototype.ngOnDestroy=function(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()},e.prototype.getContainerProperty=function(e){return this.container.nativeElement[e]},e.prototype.activeIndex=function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))},e.prototype.itemIndex=function(e){return this.rowHeightService.index(e)},e.prototype.itemOffset=function(e){return this.rowHeightService.offset(e)},e.prototype.isIndexVisible=function(e){if(!this.rowHeightService)return!1;var t=this.containerScrollPosition,n=t+this.containerOffsetSize,i=this.rowHeightService.offset(e),a=i+this.rowHeightService.height(e);return i>=t&&a<=n},e.prototype.isListScrolled=function(e){return this.containerScrollPosition!==this.rowHeightService.offset(e)},e.prototype.scrollTo=function(e){var t="vertical"===this.direction?"scrollTop":"scrollLeft";this.renderer.setProperty(this.container.nativeElement,t,e)},e.prototype.scrollToIndex=function(e){var t=this;this.zone.runOutsideAngular((function(){t.resolvedPromise.then((function(){t.scrollTo(t.rowHeightService.offset(e))}))}))},e.prototype.scrollToBottom=function(){this.scrollTo(this.totalSize)},e.prototype.animateToIndex=function(e){var t=this;this.animationSubscription&&this.animationSubscription.unsubscribe();var n=this.rowHeightService.offset(e),i=this.getContainerScrollDirection(n),a=this.scrollRange(n,i),o=a.start,r=a.end;if(o!==r){var s=this.scrollStep(o,r),l=g[i](s),c=f[i](r),d=v[i](l(r));this.zone.runOutsideAngular((function(){t.animationSubscription=p.combineLatest(p.of(o),p.interval(0,p.animationFrameScheduler)).pipe(h.map((function(e){return e[0]})),h.scan(l),h.takeWhile(d),h.map(c)).subscribe((function(e){return t.scrollTo(e)}))}))}},e.prototype.scrollRange=function(e,t){var n=this.containerScrollPosition;if(parseInt(e,10)===parseInt(n,10))return{start:e,end:e};var i,a,o,s=this.containerMaxScroll(),l=t===r.Backward?1:-1,c=(i=n,a=e,o=this.maxScrollDifference,Math.min(Math.abs(a-i),o)),d=Math.min(e,s);return{start:Math.min(Math.max(d+l*c,0),s),end:d}},e.prototype.scrollStep=function(e,t){return Math.abs(t-e)/(this.scrollDuration/17)},e.prototype.scroll$=function(){return u.isDocumentAvailable()?p.fromEvent(this.container.nativeElement,"scroll"):p.EMPTY},e.prototype.initServices=function(){var e=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(t){t instanceof d.PageAction?e.pageChange.emit(t):e.scrollChange.emit(t)}))},e.prototype.createRowHeightService=function(){var e="vertical"===this.direction?this.itemHeight:this.itemWidth;return new c.RowHeightService(this.total,e,0)},e.prototype.emitActiveIndex=function(){var e=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==e&&(this.lastActiveIndex=e,this.activeIndexChange.emit(e))},e.prototype.containerMaxScroll=function(){return this.containerScrollSize-this.containerOffsetSize},e.prototype.getContainerScrollDirection=function(e){return e<this.containerScrollPosition?r.Backward:r.Forward},s.__decorate([l.Input(),s.__metadata("design:type",String)],e.prototype,"direction",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Number)],e.prototype,"itemHeight",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Number)],e.prototype,"itemWidth",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Number)],e.prototype,"topOffset",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Number)],e.prototype,"bottomOffset",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Number)],e.prototype,"maxScrollDifference",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Number)],e.prototype,"scrollOffsetSize",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Number)],e.prototype,"scrollDuration",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Number)],e.prototype,"skip",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Number)],e.prototype,"take",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Number)],e.prototype,"total",void 0),s.__decorate([l.Output(),s.__metadata("design:type",l.EventEmitter)],e.prototype,"activeIndexChange",void 0),s.__decorate([l.Output(),s.__metadata("design:type",l.EventEmitter)],e.prototype,"pageChange",void 0),s.__decorate([l.Output(),s.__metadata("design:type",l.EventEmitter)],e.prototype,"scrollChange",void 0),s.__decorate([l.HostBinding("class.k-flex"),l.HostBinding("class.k-content"),l.HostBinding("class.k-calendar-content"),l.HostBinding("class.k-scrollable"),s.__metadata("design:type",Boolean)],e.prototype,"wrapperClasses",void 0),s.__decorate([l.HostBinding("class.k-scrollable-horizontal"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],e.prototype,"horizontalClass",null),e=s.__decorate([l.Component({providers:[{provide:t.SCROLLER_FACTORY_TOKEN,useValue:m}],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 '}),s.__param(0,l.Inject(t.SCROLLER_FACTORY_TOKEN)),s.__metadata("design:paramtypes",[Object,l.ElementRef,l.Renderer2,l.NgZone])],e)}();t.VirtualizationComponent=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(33),r=n(34),s=n(40),l=n(17),c=n(4),d=n(5),u=n(18),p=n(19),h=n(2),m=n(6),g=n(104),f=n(3),v=n(16),y=n(21),_=n(7),b=/year|month|<day>/,C=/hour|minute|second|millisecond/,w=/d|M|H|h|m|s/,D=function(e){return e.replace(/^0*/,"")},k=function(){this.symbols=""},T=function(){function e(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=h.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"},u.validatePackage(p.packageMetadata),this.monthNames=this.allFormatedMonths(),this.dayPeriods=this.allDayPeriods(),i)this.value=h.cloneDate(i);else{this.value=h.getDate(new Date);for(var o=this.dateFormatString(this.value,this.format).symbols,r=0;r<o.length;r++)this.setExisting(o[r],!1)}}return e.prototype.hasValue=function(){var e=this;return this.intl.splitDateFormat(this.format).reduce((function(t,n){return t||"literal"!==n.type&&"dayperiod"!==n.type&&e.getExisting(n.pattern[0])}),!1)},e.prototype.shouldNormalizeCentury=function(){return this.intl.splitDateFormat(this.format).some((function(e){return"yy"===e.pattern}))},e.prototype.getDateObject=function(){for(var e=0;e<this.knownParts.length;e++)if(!this.getExisting(this.knownParts[e]))return null;return h.cloneDate(this.value)},e.prototype.getTextAndFormat=function(e){return this.merge(this.intl.formatDate(this.value,e),this.dateFormatString(this.value,e))},e.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}},e.prototype.setExisting=function(e,t){switch(e){case"y":this.year=t,!1===t&&this.value.setFullYear(2e3);break;case"M":this.month=t,!1===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}},e.prototype.modifyPart=function(e,t){var n=h.cloneDate(this.value);switch(e){case"y":n.setFullYear(n.getFullYear()+t);break;case"M":n=h.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)}this.shouldNormalizeCentury()&&(n=this.normalizeCentury(n)),n.getFullYear()>0&&(this.setExisting(e,!0),this.value=n)},e.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="",d=0;d<i.length;d++)o[d]===e?(l+=this.getExisting(e)?i[d]:"0",r=!0):r?c+=i[d]:s+=i[d];var u=l.length-3,p=null,m=this.matchMonth(t),g=this.matchDayPeriod(t,e),v="0"===t,y=(this.leadingZero||{})[e]||0;v?0!==parseInt(n?t:l+t,10)||this.isAbbrMonth(a.partMap,e)||this.incrementLeadingZero(e):this.resetLeadingZero();for(d=Math.max(0,u);d<=l.length;d++){var _=n?t:l.substring(d)+t;if("S"===e&&n)_=f.msPaddingFromFormat(o)+_;var b=parseInt(_,10);if(!(p=this.intl.parseDate(s+_+c,this.format))&&!isNaN(b)&&!isNaN(parseInt(t,10))){if("M"===e&&!m){var C=b-1;C>-1&&C<12&&((p=h.cloneDate(this.value)).setMonth(C),p.getMonth()!==C&&(p=h.lastDayOfMonth(h.addMonths(p,-1))))}"y"===e&&(p=h.createDate(parseInt(_,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&&p.getDate()!==this.value.getDate()&&(p=h.lastDayOfMonth(h.addMonths(p,-1))))}if(p){var w=this.partPattern(a.partMap,e).pattern,k=this.intl.parseDate(""+s+this.peek(_,w)+c,this.format),T=this.patternLength(w)||w.length,E=y+(D(_)||t).length>=T,S=null===k||E;return this.shouldNormalizeCentury()&&(p=this.normalizeCentury(p)),this.value=p,this.setExisting(e,!0),{value:this.value,switchToNext:S}}}return m&&(p=this.intl.parseDate(s+m+c,this.format))?(this.value=p,this.setExisting(e,!0),{value:this.value,switchToNext:!1}):g&&(p=this.intl.parseDate(s+g+c,this.format))?(this.value=p,{value:this.value,switchToNext:!0}):(v&&this.setExisting(e,!1),{value:null,switchToNext:!1})},e.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.setLeadingZero(null),e},e.prototype.setLeadingZero=function(e){this.leadingZero=e},e.prototype.normalizeCentury=function(e){if(!_.isPresent(e))return e;var t=f.cropTwoDigitYear(e),n=this.getNormalizedCenturyBase(t);return f.setYears(e,n+t)},e.prototype.incrementLeadingZero=function(e){var t=this.leadingZero||{};t[e]=(t[e]||0)+1,this.leadingZero=t},e.prototype.isAbbrMonth=function(e,t){var n=this.partPattern(e,t);return"month"===n.type&&n.names},e.prototype.partPattern=function(e,t){return e.filter((function(e){return-1!==e.pattern.indexOf(t)}))[0]},e.prototype.peek=function(e,t){var n=D(e)+"0";return function(e){return new Array(Math.max(e,0)).fill("0").join("")}(t.length-n.length)+n},e.prototype.matchMonth=function(e){if(this.typedMonthPart+=e.toLowerCase(),!this.monthNames)return"";for(;this.typedMonthPart.length>0;){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(n>=1&&n<=12&&n.toString()===this.typedMonthPart)return this.monthNames[n-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""},e.prototype.matchDayPeriod=function(e,t){var n=String(e).toLowerCase();if("a"===t&&this.dayPeriods){if(this.dayPeriods.am.toLowerCase().startsWith(n))return this.dayPeriods.am;if(this.dayPeriods.pm.toLowerCase().startsWith(n))return this.dayPeriods.pm}return""},e.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},e.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},e.prototype.patternLength=function(e){return"y"===e[0]?4:w.test(e)?2:0},e.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;r>0;)i.push(this.symbols[n[o].pattern[0]]||"_"),a.push(n[o]),r--;var s=new k;return s.symbols=i.join(""),s.partMap=a,s},e.prototype.merge=function(e,t){for(var n="",i="",a=t.symbols,o=a.length-1;o>=0;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];o>=0&&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]},e.prototype.dateFieldName=function(e){var t=this.formatPlaceholder||"wide";return t[e.type]?t[e.type]:"formatPattern"===t?e.pattern:this.intl.dateFieldName(Object.assign(e,{nameType:t}))},e.prototype.getNormalizedCenturyBase=function(e){return e>this.twoDigitYearMax?1900:2e3},e}(),E=function(){function e(e,t,n,i,o,r,s,l){this.cdr=e,this.intl=t,this.renderer=n,this.wrapper=i,this.ngZone=o,this.injector=r,this.localization=s,this.pickerService=l,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 a.EventEmitter,this.valueUpdate=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.arrow=g.Arrow,this.arrowDirection=g.Arrow.None,this.formatSections={date:!1,time:!1},this.hasMousedown=!1,this.focusedPriorToMousedown=!1,this.isDateIncomplete=!1,this.currentValue="",this.currentFormat="",this.backspace=!1,this.resetSegmentValue=!0,this.minValidator=f.noop,this.maxValidator=f.noop,this.incompleteValidator=f.noop,this._value=null,this._active=!1,this.kendoDate=null,this.paste=!1,this.domEvents=[],this.onControlChange=f.noop,this.onControlTouched=f.noop,this.onValidatorChange=f.noop,this._size="medium",this._rounded="medium",this._fillMode="solid",this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections(),this.pickerService&&(this.pickerService.input=this)}var t;return t=e,Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this.autoCorrect&&!f.isInRange(e,this.min,this.max)||(this._value=h.cloneDate(e),this.valueUpdate.emit(h.cloneDate(e)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,f.getSizeClass("input",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,f.getSizeClass("input",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,f.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,f.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,f.getFillModeClass("input",this.fillMode)),e&&(this.renderer.addClass(this.wrapper.nativeElement,f.getFillModeClass("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:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapperClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputElement",{get:function(){return this.dateInput?this.dateInput.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputValue",{get:function(){return(this.inputElement||{}).value||""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this._active},set:function(e){if(this._active=e,this.wrapper&&!_.isPresent(this.pickerService)){var t=this.wrapper.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus")}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputFormat",{get:function(){return this.format?"string"==typeof this.format?this.format:this.format.inputFormat:"d"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"displayFormat",{get:function(){return this.format?"string"==typeof this.format?this.format:this.format.displayFormat:"d"},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!this.currentValue||!String(this.currentValue).trim()},e.prototype.containsElement=function(e){var t=this;return Boolean(y.closest(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?o.minValidator(this.min):f.noop,this.maxValidator=this.rangeValidation?r.maxValidator(this.max):f.noop,this.incompleteValidator=this.incompleteDateValidation?s.incompleteDateValidator():f.noop,this.onValidatorChange()),e.format&&(this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections());var t=this.kendoDate&&h.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(l.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=h.cloneDate(e),this.updateElementValue(this.isActive)},e.prototype.triggerChange=function(){var e=this.kendoDate.getDateObject();+e!=+this.value&&(this.value=h.cloneDate(e),this.notify())},e.prototype.notify=function(){var e=this;this.ngZone.run((function(){e.onControlChange(h.cloneDate(e.value)),e.valueChange.emit(h.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=g.Arrow.None,this.modifyDateSegmentValue(e)},e.prototype.modifyDateSegmentValue=function(e){var t=this.caret(),n=this.currentFormat[t[0]],i=(this.steps||{})[this.symbolsMap[n]]||1;if("S"===n&&!this.steps.millisecond){var a=f.millisecondDigitsInFormat(this.inputFormat);i=f.millisecondStepFor(a)}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(e>0?t[0]:t[1]-1),this.resetSegmentValue=!0,!0;for(var n=this.currentFormat[t[0]],i=t[0]+e;i>0&&i<this.currentFormat.length&&(this.currentFormat[i]===n||"_"===this.currentFormat[i]);)i+=e;if("_"===this.currentFormat[i])return!1;for(var a=i;a>=0&&a<this.currentFormat.length&&this.currentFormat[a]===this.currentFormat[i];)a+=e;return i>a&&(a+1!==t[0]||i+1!==t[1])?(this.caret(a+1,i+1),this.resetSegmentValue=!0,!0):i<a&&(i!==t[0]||a!==t[1])&&(this.caret(i,a),this.resetSegmentValue=!0,!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(){if(this.hasMousedown=!1,this.isActive){var e=this.inputElement.selectionStart!==this.inputElement.selectionEnd,t=_.isPresent(this.placeholder)&&!this.kendoDate.hasValue()&&!this.focusedPriorToMousedown,n=!e&&t?0:this.caret()[0];this.selectNearestSegment(n)}},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)||_.requiresZoneOnBlur(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,n=new T(this.intl,this.formatPlaceholder,this.inputFormat,e,this.twoDigitYearMax);return n.setLeadingZero(this.isActive?t:null),n},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,i=this.kendoDate.getTextAndFormat(n),a=!this.isActive&&_.isPresent(this.placeholder)&&!this.kendoDate.hasValue(),o=this.inputElement;this.currentFormat=i[1],this.currentValue=a?"":i[0],this.renderer.setProperty(o,"value",this.currentValue),o.placeholder!==this.placeholder&&this.renderer.setProperty(o,"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||n>=0;t++,n--){if(t<this.currentFormat.length&&"_"!==this.currentFormat[t])return void this.selectDateSegment(this.currentFormat[t]);if(n>=0&&"_"!==this.currentFormat[n])return void this.selectDateSegment(this.currentFormat[n])}},e.prototype.verifyRange=function(){if(a.isDevMode()&&!f.isValidRange(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(a.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=f.dateInRange(e,this.min,this.max);this.autoCorrect&&!h.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,i=e.time;return{date:n||b.test(t.type),time:i||C.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;_.isPresent(e)&&this.kendoDate.shouldNormalizeCentury()&&(e=this.kendoDate.normalizeCentury(e));var t=+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((e.wheelDelta||-e.detail)>0?-1:1):this.modifyDateSegmentValue((e.wheelDelta||-e.detail)>0?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)if(e.keyCode!==m.Keys.Backspace){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()}else this.backspace=!0;else this.switchDateSegment(e.shiftKey?-1:1)&&e.preventDefault()},e.prototype.handleInput=function(){if(!this.disabled&&!this.readonly){if(this.paste)return this.updateOnPaste(),void(this.paste=!1);var e=f.approximateStringMatching(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(f.setTime(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&&(_.isPresent(this.ngControl)&&!_.isPresent(this.pickerService)?(this.cdr.markForCheck(),this.ngZone.run((function(){return e.onValidatorChange()}))):_.isPresent(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,f.getSizeClass("input",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,f.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,f.getFillModeClass("input",this.fillMode)),this.spinners&&(this.setSpinnerFill(this.spinup.nativeElement,this.fillMode),this.setSpinnerFill(this.spindown.nativeElement,this.fillMode))},i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"ariaReadOnly",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"format",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"formatPlaceholder",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"steps",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"max",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"min",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rangeValidation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"autoCorrect",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"twoDigitYearMax",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"value",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"spinners",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isPopupOpen",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"hasPopup",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"valueUpdate",void 0),i.__decorate([a.Output("focus"),i.__metadata("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([a.Output("blur"),i.__metadata("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([a.ViewChild("dateInput",{static:!0}),i.__metadata("design:type",a.ElementRef)],e.prototype,"dateInput",void 0),i.__decorate([a.HostBinding("class.k-input"),a.HostBinding("class.k-dateinput"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"wrapperClass",null),i.__decorate([a.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([a.ViewChild("spinup",{static:!1}),i.__metadata("design:type",a.ElementRef)],e.prototype,"spinup",void 0),i.__decorate([a.ViewChild("spindown",{static:!1}),i.__metadata("design:type",a.ElementRef)],e.prototype,"spindown",void 0),e=t=i.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,exportAs:"kendo-dateinput",providers:[{provide:l.NG_VALUE_ACCESSOR,useExisting:a.forwardRef((function(){return t})),multi:!0},{provide:l.NG_VALIDATORS,useExisting:a.forwardRef((function(){return t})),multi:!0},{provide:c.L10N_PREFIX,useValue:"kendo.dateinput"},{provide:m.KendoInput,useExisting:a.forwardRef((function(){return t}))},c.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 '}),i.__param(7,a.Optional()),i.__metadata("design:paramtypes",[a.ChangeDetectorRef,d.IntlService,a.Renderer2,a.ElementRef,a.NgZone,a.Injector,c.LocalizationService,v.PickerService])],e)}();t.DateInputComponent=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7);t.incompleteDateValidator=function(){return function(e,t){return!i.isPresent(e.value)&&t?{incompleteDate:!0}:null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TIME_PART={dayperiod:"dayperiod",hour:"hour",millisecond:"millisecond",minute:"minute",second:"second"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(14),r=n(5),s=n(73),l=n(43),c=n(44),d=n(57),u=n(61),p=n(62),h=n(35),m=n(46),g=n(47),f=n(48),v=n(49),y=n(50),_=n(76),b=n(78),C=n(79),w=n(6),D=function(){function e(){}return e=i.__decorate([a.NgModule({declarations:[d.CalendarComponent,u.NavigationComponent,b.CalendarCustomMessagesComponent,_.CalendarLocalizedMessagesDirective,p.ViewListComponent],exports:[d.CalendarComponent,u.NavigationComponent,b.CalendarCustomMessagesComponent,_.CalendarLocalizedMessagesDirective,p.ViewListComponent,s.CalendarCommonModule,c.TemplatesModule],imports:[o.CommonModule,s.CalendarCommonModule,l.MultiViewCalendarModule,r.IntlModule,c.TemplatesModule,C.VirtualizationModule,w.EventsModule,w.ResizeSensorModule],providers:[h.CalendarDOMService,m.CenturyViewService,g.DecadeViewService,f.MonthViewService,v.YearViewService,y.WeekNamesService]})],e)}();t.CalendarModule=D},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(14),r=n(5),s=n(13),l=n(6),c=n(73),d=n(44),u=n(58),p=n(25),h=n(74),m=n(108),g=n(51),f=n(46),v=n(47),y=n(48),_=n(49),b=n(50),C=function(){function e(){}return e=i.__decorate([a.NgModule({declarations:[u.HorizontalViewListComponent,h.MultiViewCalendarLocalizedMessagesDirective,m.MultiViewCalendarCustomMessagesComponent,p.MultiViewCalendarComponent],exports:[u.HorizontalViewListComponent,h.MultiViewCalendarLocalizedMessagesDirective,m.MultiViewCalendarCustomMessagesComponent,p.MultiViewCalendarComponent,c.CalendarCommonModule,d.TemplatesModule],imports:[o.CommonModule,c.CalendarCommonModule,r.IntlModule,d.TemplatesModule,s.PopupModule,l.EventsModule],providers:[g.NavigationService,f.CenturyViewService,v.DecadeViewService,y.MonthViewService,_.YearViewService,b.WeekNamesService]})],e)}();t.MultiViewCalendarModule=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(26),r=n(27),s=n(28),l=n(29),c=n(30),d=n(31),u=n(32),p=n(52),h=function(){function e(){}return e=i.__decorate([a.NgModule({declarations:[o.CellTemplateDirective,r.MonthCellTemplateDirective,s.YearCellTemplateDirective,l.DecadeCellTemplateDirective,c.CenturyCellTemplateDirective,d.WeekNumberCellTemplateDirective,u.HeaderTitleTemplateDirective,p.NavigationItemTemplateDirective],exports:[o.CellTemplateDirective,r.MonthCellTemplateDirective,s.YearCellTemplateDirective,l.DecadeCellTemplateDirective,c.CenturyCellTemplateDirective,d.WeekNumberCellTemplateDirective,u.HeaderTitleTemplateDirective,p.NavigationItemTemplateDirective]})],e)}();t.TemplatesModule=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"accept",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"acceptLabel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"cancel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"cancelLabel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"now",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"nowLabel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"toggle",void 0),t}(n(4).ComponentMessages);t.TimePickerMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=n(2),s=n(15),l=n(12),c=n(3),d=n(7),u=[[]],p=((i={})[s.Action.Left]=function(e){return r.addDecades(e,-1)},i[s.Action.Up]=function(e){return r.addDecades(e,-5)},i[s.Action.Right]=function(e){return r.addDecades(e,1)},i[s.Action.Down]=function(e){return r.addDecades(e,5)},i[s.Action.PrevView]=function(e){return r.addCenturies(e,-1)},i[s.Action.NextView]=function(e){return r.addCenturies(e,1)},i[s.Action.FirstInView]=function(e){return r.firstDecadeOfCentury(e)},i[s.Action.LastInView]=function(e){return r.lastDecadeOfCentury(e)},i),h=function(){function e(){this.dateRange=function(e,t){if(!d.isPresent(e)||!d.isPresent(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=r.addDecades(i,1);return n}}return e.prototype.addToDate=function(e,t){return r.addCenturies(e,t)},e.prototype.datesList=function(e,t){return c.range(0,t).map((function(t){return r.addCenturies(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,i=e.focusedDate,a=e.isActiveView,o=e.max,s=e.min,d=e.selectedDates,p=e.selectionRange,h=void 0===p?l.EMPTY_SELECTIONRANGE:p,m=e.viewDate;if(!m)return u;var g=c.range(0,4),f=r.firstDecadeOfCentury(m),v=r.lastDecadeOfCentury(m),y=c.getToday();return c.range(0,3).map((function(e){var l=r.addDecades(f,4*e);return g.map((function(e){var u=t.normalize(r.addDecades(l,e),s,o),p=u.getFullYear()>v.getFullYear();if(!t.isInRange(u,s,o)||p)return null;var m=t.isEqual(u,h.start),g=t.isEqual(u,h.end),_=!m&&!g&&c.isInSelectionRange(u,h);return{formattedValue:t.value(u),id:""+n+u.getTime(),isFocused:t.isEqual(u,i),isSelected:a&&d.some((function(e){return t.isEqual(u,e)})),isWeekend:!1,isRangeStart:m,isRangeMid:_,isRangeEnd:g,isRangeSplitEnd:_&&t.isEqual(u,v),isRangeSplitStart:_&&t.isEqual(u,f),isToday:t.isEqual(u,y),title:t.cellTitle(u),value:u}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&r.firstYearOfDecade(e).getFullYear()===r.firstYearOfDecade(t).getFullYear()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+99},e.prototype.isInRange=function(e,t,n){var i=r.firstYearOfDecade(e).getFullYear(),a=!t||r.firstYearOfDecade(t).getFullYear()<=i,o=!n||i<=r.firstYearOfDecade(n).getFullYear();return a&&o},e.prototype.beginningOfPeriod=function(e){if(!e)return e;var t=r.firstYearOfDecade(r.firstDecadeOfCentury(e));return r.createDate(t.getFullYear(),0,1)},e.prototype.lastDayOfPeriod=function(e){var t=r.lastDecadeOfCentury(e),n=r.lastYearOfDecade(t),i=r.lastMonthOfYear(n);return r.lastDayOfMonth(i)},e.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},e.prototype.move=function(e,t){var n=p[t];return n?n(e):e},e.prototype.cellTitle=function(e){return r.firstYearOfDecade(e).getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?r.firstDecadeOfCentury(e).getFullYear().toString():""},e.prototype.title=function(e){return e?r.firstDecadeOfCentury(e).getFullYear()+" - "+r.lastDecadeOfCentury(e).getFullYear():""},e.prototype.rowLength=function(){return 4},e.prototype.skip=function(e,t){return r.durationInCenturies(t,e)},e.prototype.total=function(e,t){return r.durationInCenturies(e,t)+1},e.prototype.value=function(e){return e?r.firstYearOfDecade(e).getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);var i=this.total(e,t);if(i<n){var a=n-i;return r.addCenturies(e,-1*a)}return e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?r.cloneDate(t):e>n&&this.isEqual(e,n)?r.cloneDate(n):e},e=a.__decorate([o.Injectable()],e)}();t.CenturyViewService=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=n(2),s=n(15),l=n(12),c=n(3),d=n(7),u=[[]],p=((i={})[s.Action.Left]=function(e){return r.addYears(e,-1)},i[s.Action.Up]=function(e){return r.addYears(e,-5)},i[s.Action.Right]=function(e){return r.addYears(e,1)},i[s.Action.Down]=function(e){return r.addYears(e,5)},i[s.Action.PrevView]=function(e){return r.addDecades(e,-1)},i[s.Action.NextView]=function(e){return r.addDecades(e,1)},i[s.Action.FirstInView]=function(e){return r.firstYearOfDecade(e)},i[s.Action.LastInView]=function(e){return r.lastYearOfDecade(e)},i),h=function(){function e(){this.dateRange=function(e,t){if(!d.isPresent(e)||!d.isPresent(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=r.addYears(i,1);return n}}return e.prototype.addToDate=function(e,t){return r.addDecades(e,t)},e.prototype.datesList=function(e,t){return c.range(0,t).map((function(t){return r.addDecades(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,i=e.focusedDate,a=e.isActiveView,o=e.max,s=e.min,d=e.selectedDates,p=e.selectionRange,h=void 0===p?l.EMPTY_SELECTIONRANGE:p,m=e.viewDate;if(!m)return u;var g=c.range(0,4),f=r.firstYearOfDecade(m),v=r.lastYearOfDecade(m),y=c.getToday();return c.range(0,3).map((function(e){var l=r.addYears(f,4*e);return g.map((function(e){var u=t.normalize(r.addYears(l,e),s,o),p=u.getFullYear()>v.getFullYear();if(!t.isInRange(u,s,o)||p)return null;var m=t.isEqual(u,h.start),g=t.isEqual(u,h.end),_=!m&&!g&&c.isInSelectionRange(u,h);return{formattedValue:t.value(u),id:""+n+u.getTime(),isFocused:t.isEqual(u,i),isSelected:a&&d.some((function(e){return t.isEqual(u,e)})),isWeekend:!1,isRangeStart:m,isRangeMid:_,isRangeEnd:g,isRangeSplitEnd:_&&t.isEqual(u,v),isRangeSplitStart:_&&t.isEqual(u,f),isToday:t.isEqual(u,y),title:t.cellTitle(u),value:u}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+9},e.prototype.isInRange=function(e,t,n){var i=e.getFullYear(),a=!t||t.getFullYear()<=i,o=!n||i<=n.getFullYear();return a&&o},e.prototype.beginningOfPeriod=function(e){if(!e)return e;var t=r.firstYearOfDecade(e);return r.createDate(t.getFullYear(),0,1)},e.prototype.lastDayOfPeriod=function(e){var t=r.lastYearOfDecade(e),n=r.lastMonthOfYear(t);return r.lastDayOfMonth(n)},e.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},e.prototype.move=function(e,t){var n=p[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?r.firstYearOfDecade(e).getFullYear().toString():""},e.prototype.title=function(e){return e?r.firstYearOfDecade(e).getFullYear()+" - "+r.lastYearOfDecade(e).getFullYear():""},e.prototype.rowLength=function(){return 4},e.prototype.skip=function(e,t){return r.durationInDecades(t,e)},e.prototype.total=function(e,t){return r.durationInDecades(e,t)+1},e.prototype.value=function(e){return e?e.getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);var i=this.total(e,t);if(i<n){var a=n-i;return r.addDecades(e,-1*a)}return e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?r.cloneDate(t):e>n&&this.isEqual(e,n)?r.cloneDate(n):e},e=a.__decorate([o.Injectable()],e)}();t.DecadeViewService=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=n(5),s=n(2),l=n(15),c=n(12),d=n(3),u=n(7),p=[[]],h=((i={})[l.Action.Left]=function(e){return s.addDays(e,-1)},i[l.Action.Up]=function(e){return s.addWeeks(e,-1)},i[l.Action.Right]=function(e){return s.addDays(e,1)},i[l.Action.Down]=function(e){return s.addWeeks(e,1)},i[l.Action.PrevView]=function(e){return s.addMonths(e,-1)},i[l.Action.NextView]=function(e){return s.addMonths(e,1)},i[l.Action.FirstInView]=function(e){return s.firstDayOfMonth(e)},i[l.Action.LastInView]=function(e){return s.lastDayOfMonth(e)},i),m=function(){function e(e){this._intlService=e,this.dateRange=function(e,t){if(!u.isPresent(e)||!u.isPresent(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=s.addDays(i,1);return n}}return e.prototype.addToDate=function(e,t){return s.addMonths(e,t)},e.prototype.datesList=function(e,t){return d.range(0,t).map((function(t){return s.addMonths(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,i=e.focusedDate,a=e.isActiveView,o=e.max,r=e.min,l=e.selectedDates,u=e.selectionRange,h=void 0===u?c.EMPTY_SELECTIONRANGE:u,m=e.viewDate,g=e.isDateDisabled,f=void 0===g?function(){return!1}:g;if(!m)return p;var v=s.firstDayOfMonth(m),y=s.getDate(v),_=s.lastDayOfMonth(m),b=s.getDate(_),C=s.dayOfWeek(v,this._intlService.firstDay(),-1),w=d.range(0,7),D=d.getToday();return d.range(0,6).map((function(e){var c=s.addDays(C,7*e);return w.map((function(e){var u=t.normalize(s.addDays(c,e),r,o),p=s.getDate(u),m=p<y||p>b;if(u<r||u>o)return null;var g=t.isEqual(u,h.start),C=t.isEqual(u,h.end),w=!g&&!C&&d.isInSelectionRange(u,h);return{formattedValue:t.value(u),id:""+n+u.getTime(),isFocused:t.isEqual(u,i),isSelected:a&&l.some((function(e){return t.isEqual(u,e)})),isWeekend:t.isWeekend(u),isRangeStart:g,isRangeMid:w,isRangeEnd:C,isRangeSplitStart:w&&t.isEqual(u,v),isRangeSplitEnd:w&&t.isEqual(u,_),isToday:t.isEqual(u,D),title:t.cellTitle(u),value:u,isDisabled:f(u),isOtherMonth:m}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&s.getDate(e).getTime()===s.getDate(t).getTime()},e.prototype.isInArray=function(e,t){if(0===t.length)return!1;var n=this.beginningOfPeriod(t[0]),i=this.beginningOfPeriod(s.addMonths(t[t.length-1],1));return n<=e&&e<i},e.prototype.isInRange=function(e,t,n){var i=s.getDate(e),a=!t||s.getDate(t)<=i,o=!n||i<=s.getDate(n);return a&&o},e.prototype.beginningOfPeriod=function(e){return e?s.createDate(e.getFullYear(),e.getMonth(),1):e},e.prototype.lastDayOfPeriod=function(e){return s.lastDayOfMonth(e)},e.prototype.isRangeStart=function(e){return!e.getMonth()},e.prototype.move=function(e,t){var n=h[t];return n?n(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 void 0===e&&(e={}),7+(e.prependCell?1:0)},e.prototype.skip=function(e,t){return s.durationInMonths(t,e)},e.prototype.total=function(e,t){return s.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);var i=this.total(e,t);if(i<n){var a=n-i;return s.addMonths(e,-1*a)}return e},e.prototype.isWeekend=function(e){var t=this._intlService.weekendRange(),n=t.start,i=t.end,a=e.getDay();return i<n?a<=i||n<=a:n<=a&&a<=i},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)?s.cloneDate(t):e>n&&this.isEqual(e,n)?s.cloneDate(n):e},e.prototype.wideMonthNames=function(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})},e=a.__decorate([o.Injectable(),a.__metadata("design:paramtypes",[r.IntlService])],e)}();t.MonthViewService=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=n(5),s=n(2),l=n(15),c=n(12),d=n(3),u=n(7),p=[[]],h=((i={})[l.Action.Left]=function(e){return s.addMonths(e,-1)},i[l.Action.Up]=function(e){return s.addMonths(e,(t=e.getMonth())>4?-5:t<2?-2:-7);var t},i[l.Action.Right]=function(e){return s.addMonths(e,1)},i[l.Action.Down]=function(e){return s.addMonths(e,(t=e.getMonth())<7?5:t<10?7:2);var t},i[l.Action.PrevView]=function(e){return s.addYears(e,-1)},i[l.Action.NextView]=function(e){return s.addYears(e,1)},i[l.Action.FirstInView]=function(e){return s.firstMonthOfYear(e)},i[l.Action.LastInView]=function(e){return s.lastMonthOfYear(e)},i),m=function(){function e(e){this._intlService=e,this.dateRange=function(e,t){if(!u.isPresent(e)||!u.isPresent(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=s.addMonths(i,1);return n}}return e.prototype.addToDate=function(e,t){return s.addYears(e,t)},e.prototype.datesList=function(e,t){return d.range(0,t).map((function(t){return s.addYears(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,i=e.focusedDate,a=e.isActiveView,o=e.max,r=e.min,l=e.selectedDates,u=e.selectionRange,h=void 0===u?c.EMPTY_SELECTIONRANGE:u,m=e.viewDate;if(!m)return p;var g=this.abbrMonthNames(),f=s.firstMonthOfYear(m),v=s.lastMonthOfYear(m),y=f.getFullYear(),_=d.range(0,4),b=d.getToday();return d.range(0,3).map((function(e){var c=s.addMonths(f,4*e);return _.map((function(e){var u=t.normalize(s.addMonths(c,e),r,o),p=y<u.getFullYear();if(!t.isInRange(u,r,o)||p)return null;var m=t.isEqual(u,h.start),_=t.isEqual(u,h.end),C=!m&&!_&&d.isInSelectionRange(u,h);return{formattedValue:g[u.getMonth()],id:""+n+u.getTime(),isFocused:t.isEqual(u,i),isSelected:a&&l.some((function(e){return t.isEqual(u,e)})),isWeekend:!1,isRangeStart:m,isRangeMid:C,isRangeEnd:_,isRangeSplitEnd:C&&t.isEqual(u,v),isRangeSplitStart:C&&t.isEqual(u,f),isToday:t.isEqual(u,b),title:t.cellTitle(u),value:u}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth())},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()},e.prototype.isInRange=function(e,t,n){var i=s.createDate(e.getFullYear(),e.getMonth(),1),a=!t||s.createDate(t.getFullYear(),t.getMonth(),1)<=i,o=!n||i<=s.createDate(n.getFullYear(),n.getMonth(),1);return a&&o},e.prototype.beginningOfPeriod=function(e){return e?s.createDate(e.getFullYear(),0,1):e},e.prototype.lastDayOfPeriod=function(e){var t=s.lastMonthOfYear(e);return s.lastDayOfMonth(t)},e.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},e.prototype.move=function(e,t){var n=h[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear()+" "+this.value(e)},e.prototype.navigationTitle=function(e){return this.title(e)},e.prototype.title=function(e){return e?e.getFullYear().toString():""},e.prototype.rowLength=function(){return 4},e.prototype.skip=function(e,t){return s.durationInYears(t,e)},e.prototype.total=function(e,t){return s.durationInYears(e,t)+1},e.prototype.value=function(e){return e?this.abbrMonthNames()[e.getMonth()]:""},e.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);var i=this.total(e,t);if(i<n){var a=n-i;return s.addYears(e,-1*a)}return e},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)?s.cloneDate(t):e>n&&this.isEqual(e,n)?s.cloneDate(n):e},e=a.__decorate([o.Injectable(),a.__metadata("design:paramtypes",[r.IntlService])],e)}();t.YearViewService=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(5),r=n(3),s=function(){function e(e){this.intl=e}return e.prototype.getWeekNames=function(e){void 0===e&&(e=!1);var t=r.shiftWeekNames(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(t):t},e=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[o.IntlService])],e)}();t.WeekNamesService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(15),r=n(11),s={33:o.Action.PrevView,34:o.Action.NextView,35:o.Action.LastInView,36:o.Action.FirstInView,37:o.Action.Left,38:o.Action.Up,39:o.Action.Right,40:o.Action.Down,"meta+38":o.Action.UpperView,"meta+40":o.Action.LowerView},l=function(){function e(e){this.bus=e}return e.prototype.action=function(e){var t=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return s[t]},e.prototype.move=function(e,t,n){var i=this.bus.service(n);return i?t===o.Action.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n),e):t===o.Action.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n),e):i.move(e,t):e},e=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[r.BusViewService])],e)}();t.NavigationService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoCalendarNavigationItemTemplate]"}),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.NavigationItemTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(13),s=n(68),l=n(23),c=n(25),d=n(37),u=n(6),p=n(9),h=n(36),m=n(3),g=n(7),f=function(){function e(e,t,n,i,o){this.popupService=e,this.dateRangeService=t,this.ref=n,this.zone=i,this.rtl=o,this.animate=!0,this.collision={horizontal:"fit",vertical:"flip"},this.open=new a.EventEmitter,this.close=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.cancel=new a.EventEmitter,this.popupUID=u.guid(),this.calendarSubscriptions=new p.Subscription,this.popupSubscriptions=new p.Subscription,this.resolvedPromise=Promise.resolve()}return Object.defineProperty(e.prototype,"calendar",{get:function(){return this._calendar},set:function(e){this._calendar=e,this.subscribeFocusBlur(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this.calendar&&this.calendar.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"show",{get:function(){return this._show},set:function(e){if(this._show!==e){var t=new d.PreventableEvent;e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()||this._toggle(e)}},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.dateRangeService.registerPopup(this)},e.prototype.ngAfterViewInit=function(){var e=this;this.calendarSubscriptions.add(this.contentCalendar.changes.subscribe((function(t){return e.calendar=t.first}))),this.calendarSubscriptions.add(this.viewCalendar.changes.subscribe((function(t){return e.calendar=t.first}))),m.isWindowAvailable()&&this.zone.runOutsideAngular((function(){return e.windowBlurSubscription=p.fromEvent(window,"blur").subscribe(e.handleWindowBlur.bind(e))}))},e.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()},e.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(h.filter((function(e){return e&&e.first})),h.map((function(e){return e.first}))).subscribe((function(e){return setTimeout((function(){return e.focus()}))}))})))},e.prototype.focus=function(){this.calendar&&this.calendar.focus()},e.prototype.hasActiveContent=function(){return!(!u.isDocumentAvailable()||!this.popupRef)&&this.popupRef.popupElement.contains(document.activeElement)},e.prototype.toggle=function(e){var t=this;this.resolvedPromise.then((function(){t._toggle(void 0===e?!t.show:e)}))},e.prototype.cancelPopup=function(){this.show=!1,this.cancel.emit()},e.prototype.handleWindowBlur=function(){var e=this;this.show&&(u.hasObservers(this.close)?this.zone.run((function(){return e.show=!1})):this.show=!1)},e.prototype.handleMouseLeave=function(){this.dateRangeService.setRange(this.dateRangeService.selectionRange)},e.prototype.handleKeydown=function(e){var t=this,n=e.altKey,i=e.keyCode;(i===u.Keys.Escape||n&&i===u.Keys.ArrowUp)&&this.zone.run((function(){return t.cancelPopup()}))},e.prototype.subscribeFocusBlur=function(e){var t=this;if(this.blurSubscription&&(this.blurSubscription.unsubscribe(),this.focusSubscription.unsubscribe()),e){var n=e.element.nativeElement;this.blurSubscription=p.fromEvent(n,"blur").subscribe((function(){return t.onBlur.emit()})),this.focusSubscription=p.fromEvent(n,"focus").subscribe((function(){return t.onFocus.emit()}))}},e.prototype.addPopupSubscriptions=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];g.isPresent(this.popupSubscriptions)||(this.popupSubscriptions=new p.Subscription),t.map((function(t){return e.popupSubscriptions.add(t)}))},Object.defineProperty(e.prototype,"_appendTo",{get:function(){var e=this.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),e.prototype._toggle=function(e){var t=this;if(this._show=e,this.popupRef&&this.destroyPopup(),this._show){var n=this.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.anchor,anchorAlign:this.anchorAlign||{vertical:"bottom",horizontal:n},animate:this.animate,appendTo:this._appendTo,collision:this.collision,content:(this.contentTemplate||{}).templateRef||this.defaultTemplate,margin:this.margin,popupAlign:this.popupAlign||{vertical:"top",horizontal:n},positionMode:"absolute"});var i=this.popupRef,a=i.popupElement,o=i.popupAnchorViewportLeave;a.setAttribute("id",this.popupUID),this.addPopupSubscriptions(this.zone.runOutsideAngular((function(){return p.fromEvent(a,"keydown").subscribe(t.handleKeydown.bind(t))})),p.fromEvent(a,"mouseleave").subscribe(this.handleMouseLeave.bind(this)),o.subscribe((function(){return t.cancelPopup()})))}},e.prototype.destroyPopup=function(){g.isPresent(this.popupRef)&&(this.popupRef.close(),this.popupRef=null),g.isPresent(this.popupSubscriptions)&&this.popupSubscriptions.unsubscribe()},i.__decorate([a.ViewChild("container",{read:a.ViewContainerRef,static:!1}),i.__metadata("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),i.__decorate([a.ViewChild("defaultTemplate",{static:!1}),i.__metadata("design:type",a.TemplateRef)],e.prototype,"defaultTemplate",void 0),i.__decorate([a.ContentChild(s.DateRangePopupTemplateDirective,{static:!1}),i.__metadata("design:type",s.DateRangePopupTemplateDirective)],e.prototype,"contentTemplate",void 0),i.__decorate([a.ViewChildren(c.MultiViewCalendarComponent),i.__metadata("design:type",a.QueryList)],e.prototype,"viewCalendar",void 0),i.__decorate([a.ContentChildren(c.MultiViewCalendarComponent),i.__metadata("design:type",a.QueryList)],e.prototype,"contentCalendar",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"animate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.ElementRef)],e.prototype,"anchor",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"anchorAlign",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"appendTo",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"collision",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"popupAlign",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"open",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"close",void 0),i.__decorate([a.Output("blur"),i.__metadata("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([a.Output("focus"),i.__metadata("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cancel",void 0),e=i.__decorate([a.Component({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 "}),i.__param(4,a.Optional()),i.__param(4,a.Inject(o.RTL)),i.__metadata("design:paramtypes",[r.PopupService,l.DateRangeService,a.ChangeDetectorRef,a.NgZone,Boolean])],e)}();t.DateRangePopupComponent=f},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(14),r=n(5),s=n(13),l=n(89),c=n(65),d=n(110),u=n(79),p=n(56),h=n(90),m=n(91),g=n(92),f=n(93),v=n(94),y=n(24),_=n(95),b=n(112),C=n(96),w=n(113),D=n(54),k=n(22),T=n(6),E=[_.TimePickerLocalizedMessagesDirective,l.TimeListComponent,b.TimePickerCustomMessagesComponent,c.TimePickerComponent,C.TimeSelectorLocalizedMessagesDirective,w.TimeSelectorCustomMessagesComponent,d.TimeSelectorComponent],S=[y.DateInputModule,r.IntlModule,s.PopupModule,u.VirtualizationModule,T.EventsModule],M=[p.TimePickerDOMService,h.HoursService,m.MinutesService,g.SecondsService,f.MillisecondsService,v.DayPeriodService,{provide:k.TOUCH_ENABLED,useValue:D.touchEnabled}],I=function(){function e(){}return e=i.__decorate([a.NgModule({declarations:[E],exports:[E],imports:[o.CommonModule].concat(S),providers:M})],e)}();t.TimePickerModule=I},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(6),r=n(3),s=r.domContainerFactory("div"),l=r.domContainerFactory("ul"),c=r.domContainerFactory("li"),d=r.domContainerFactory("span"),u=o.isDocumentAvailable()?s([d("hour","k-title k-timeselector-title"),s([s([l([c("<span>02</span>","k-item")],"k-reset")],"k-time-container k-flex k-content k-calendar-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}):null,p=function(){function e(){}return e.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){if(o.isDocumentAvailable()){var t=e&&e.querySelector(".k-time-list-container")||document.body,n=t.appendChild(u);this.timeListHeight=n.querySelector(".k-scrollable").getBoundingClientRect().height,this.itemHeight=n.querySelector("li").getBoundingClientRect().height,t.removeChild(n)}},e.prototype.isActive=function(e){return!(!o.isDocumentAvailable()||!e)&&(e.nativeElement||e)===document.activeElement},e=i.__decorate([a.Injectable()],e)}();t.TimePickerDOMService=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(17),r=n(4),s=n(2),l=n(6),c=n(18),d=n(19),u=n(25),p=n(61),h=n(62),m=n(35),g=n(11),f=n(51),v=n(20),y=n(60),_=n(103),b=n(26),C=n(27),w=n(28),D=n(29),k=n(30),T=n(31),E=n(32),S=n(52),M=n(16),I=n(10),O=n(33),V=n(34),R=n(8),x=n(3),P=n(21),A=n(7),N=n(9),F="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",B=function(e){return e?e.virtualization:null};t.CALENDAR_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:a.forwardRef((function(){return L}))},t.CALENDAR_RANGE_VALIDATORS={multi:!0,provide:o.NG_VALIDATORS,useExisting:a.forwardRef((function(){return L}))},t.KENDO_INPUT_PROVIDER={provide:l.KendoInput,useExisting:a.forwardRef((function(){return L}))};var L=function(){function e(e,t,n,i,o,r,s,u,p,h,m,g,f){this.bus=e,this.dom=t,this.element=n,this.navigator=i,this.renderer=o,this.cdr=r,this.ngZone=s,this.injector=u,this.scrollSyncService=p,this.disabledDatesService=h,this.localization=m,this.selectionService=g,this.pickerService=f,this.id=l.guid(),this.rangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.navigation=!0,this.activeView=I.CalendarViewEnum[I.CalendarViewEnum.month],this.bottomView=I.CalendarViewEnum[I.CalendarViewEnum.month],this.topView=I.CalendarViewEnum[I.CalendarViewEnum.century],this.animateNavigation=!1,this.weekNumber=!1,this.activeViewChange=new a.EventEmitter,this.navigate=new a.EventEmitter,this.activeViewDateChange=new a.EventEmitter,this.valueChange=new a.EventEmitter,this.isActive=!1,this.cellUID=l.guid(),this.selectedDates=[],this._min=new Date(R.MIN_DATE),this._max=new Date(R.MAX_DATE),this._focusedDate=x.getToday(),this.onControlChange=x.noop,this.onControlTouched=x.noop,this.onValidatorChange=x.noop,this.minValidateFn=x.noop,this.maxValidateFn=x.noop,this.syncNavigation=!0,this._type="infinite",this.domEvents=[],this.resolvedPromise=Promise.resolve(null),this.destroyed=!1,c.validatePackage(d.packageMetadata),this.setClasses(n.nativeElement),this.pickerService&&(this.pickerService.calendar=this)}return Object.defineProperty(e.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){if(this.activeViewDate&&!s.isEqual(this._focusedDate,e)){var t=this.bus.service(this.activeViewEnum),n=t.lastDayOfPeriod(this.activeViewDate);t.isInRange(e,this.activeViewDate,n)||this.emitNavigate(e)}this._focusedDate=e||x.getToday(),this.setAriaActivedescendant()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(R.MIN_DATE)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(R.MAX_DATE)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter((function(e){return A.isPresent(e)})).map((function(e){return s.cloneDate(e)})):s.cloneDate(e);var t=[].concat(e).filter((function(e){return A.isPresent(e)})).map((function(e){return s.cloneDate(e)}));if(!x.areDatesEqual(t,this.selectedDates)){var n=x.last(t);this.rangePivot=s.cloneDate(n),this.focusedDate=s.cloneDate(n)||this.focusedDate,this.selectedDates=t}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this.disabledDatesService.initialize(e),this._disabledDates=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(e){this.renderer.removeClass(this.element.nativeElement,"k-calendar-"+this.type),this.renderer.addClass(this.element.nativeElement,"k-calendar-"+e),this._type=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellTemplateRef",{get:function(){return this._cellTemplateRef||this.cellTemplate},set:function(e){this._cellTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"monthCellTemplateRef",{get:function(){return this._monthCellTemplateRef||this.monthCellTemplate},set:function(e){this._monthCellTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yearCellTemplateRef",{get:function(){return this._yearCellTemplateRef||this.yearCellTemplate},set:function(e){this._yearCellTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decadeCellTemplateRef",{get:function(){return this._decadeCellTemplateRef||this.decadeCellTemplate},set:function(e){this._decadeCellTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centuryCellTemplateRef",{get:function(){return this._centuryCellTemplateRef||this.centuryCellTemplate},set:function(e){this._centuryCellTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekNumberTemplateRef",{get:function(){return this._weekNumberTemplateRef||this.weekNumberTemplate},set:function(e){this._weekNumberTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headerTitleTemplateRef",{get:function(){return this._headerTitleTemplateRef||this.headerTitleTemplate},set:function(e){this._headerTitleTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"navigationItemTemplateRef",{get:function(){return this._navigationItemTemplateRef||this.navigationItemTemplate},set:function(e){this._navigationItemTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeViewEnum",{get:function(){var e=I.CalendarViewEnum[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomViewEnum",{get:function(){return I.CalendarViewEnum[this.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topViewEnum",{get:function(){return I.CalendarViewEnum[this.topView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendarTabIndex",{get:function(){return this.disabled||"classic"===this.type?void 0:this.tabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return"classic"===this.type?void 0:this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.dom.calculateHeights(this.element.nativeElement),this.scrollSyncService.configure(this.activeViewEnum),this.localizationChangeSubscription=this.localization.changes.subscribe((function(){return e.cdr.markForCheck()})),this.viewChangeSubscription=this.bus.viewChanged.subscribe((function(t){var n=t.view;return e.handleActiveViewChange(I.CalendarViewEnum[n])})),this.control=this.injector.get(o.NgControl,null),this.element&&this.ngZone.runOutsideAngular((function(){e.bindEvents()}))},e.prototype.ngOnChanges=function(e){if(this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),this.scrollSyncService.configure(this.activeViewEnum),x.hasExistingValue(e,"focusedDate")){var t=e.focusedDate.currentValue;this.focusedDate=x.dateInRange(t,this.min,this.max)}e.navigation&&(this.syncNavigation=!0),(e.min||e.max||e.rangeValidation)&&(this.minValidateFn=this.rangeValidation?O.minValidator(this.min):x.noop,this.maxValidateFn=this.rangeValidation?V.maxValidator(this.max):x.noop,this.onValidatorChange())},e.prototype.ngAfterViewInit=function(){this.setAriaActivedescendant()},e.prototype.ngAfterViewChecked=function(){this.syncNavigation&&(this.syncNavigation=!1,this.scrollSyncService.sync(B(this.navigationView),B(this.monthView)))},e.prototype.ngOnDestroy=function(){this.scrollSyncService.destroy(),this.domEvents.forEach((function(e){return e()})),this.pickerService&&(this.pickerService.calendar=null),this.viewChangeSubscription&&this.viewChangeSubscription.unsubscribe(),this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.destroyed=!0},e.prototype.onResize=function(){this.focusedDate=new Date(this.focusedDate),this.cdr.detectChanges()},e.prototype.focus=function(){var e="infinite"===this.type?this.element&&this.element.nativeElement:this.multiViewCalendar;A.isPresent(e)&&e.focus()},e.prototype.blur=function(){var e="infinite"===this.type?this.element&&this.element.nativeElement:this.multiViewCalendar;A.isPresent(e)&&e.blur()},e.prototype.containsElement=function(e){var t=this;return Boolean(P.closest(e,(function(e){return e===t.element.nativeElement})))},e.prototype.handleNavigation=function(e){if(!this.disabled){var t=e?new Date(s.cloneDate(e).setDate(1)):this.focusedDate;this.focusedDate=x.dateInRange(t,this.min,this.max),this.detectChanges()}},e.prototype.onPageChange=function(){var e=this;a.NgZone.isInAngularZone()||(this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.pageChangeSubscription=N.from(this.resolvedPromise).subscribe((function(){e.detectChanges()})))},e.prototype.handleMultiViewCalendarValueChange=function(e,t){var n=Array.isArray(e)?e:[e];this.handleDateChange({selectedDates:n,focusedDate:t})},e.prototype.handleDateChange=function(e){var t=this,n=Array.isArray(e.selectedDates)?e.selectedDates:[e.selectedDates],i=this.bus.canMoveDown(this.activeViewEnum),a=n.filter((function(e){return!t.disabledDatesService.isDateDisabled(e)}));this.focusedDate=e.focusedDate||this.focusedDate,this.disabled||(i||!x.areDatesEqual(a,this.selectedDates)?i?this.bus.moveDown(this.activeViewEnum):this.disabledDatesService.isDateDisabled(this.focusedDate)||this.ngZone.run((function(){t.selectedDates=a.map((function(e){return s.cloneDate(e)})),t.value=t.parseSelectionToValue(a),t.onControlChange(t.parseSelectionToValue(a)),t.valueChange.emit(t.parseSelectionToValue(a)),t.cdr.markForCheck()})):this.emitSameDate())},e.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case I.CalendarViewEnum.month:return this.monthCellTemplateRef||this.cellTemplateRef;case I.CalendarViewEnum.year:return this.yearCellTemplateRef;case I.CalendarViewEnum.decade:return this.decadeCellTemplateRef;case I.CalendarViewEnum.century:return this.centuryCellTemplateRef;default:return null}},e.prototype.handleNavigate=function(e){this.focusedDate=e.focusedDate,this.activeView=e.activeView,this.emitNavigate(this.focusedDate)},e.prototype.emitNavigate=function(e){var t=I.CalendarViewEnum[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},e.prototype.emitEvent=function(e,t){l.hasObservers(e)&&this.ngZone.run((function(){e.emit(t)}))},e.prototype.handleActiveDateChange=function(e){this.activeViewDate=e,this.emitEvent(this.activeViewDateChange,e)},e.prototype.handleActiveViewChange=function(e){this.activeView=e,this.emitEvent(this.activeViewChange,e),"infinite"===this.type&&this.scrollSyncService.configure(this.activeViewEnum),this.detectChanges()},e.prototype.handleCellClick=function(e){var t=e.date,n=e.modifiers;this.performSelection(t,n)},e.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.ngZone.run((function(){t.handleDateChange({selectedDates:e,focusedDate:x.last(e)})}))},e.prototype.handleBlur=function(e){var t=this;this.element.nativeElement.contains(e.relatedTarget)||(this.isActive=!1,!this.pickerService&&A.requiresZoneOnBlur(this.control)?this.ngZone.run((function(){t.onControlTouched(),t.emitBlur(e),t.cdr.markForCheck()})):(this.emitBlur(e),this.detectChanges()))},e.prototype.handleFocus=function(){this.isActive=!0,a.NgZone.isInAngularZone()||this.detectChanges(),this.emitFocus()},e.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-"+this.type)},e.prototype.verifyChanges=function(){if(a.isDevMode()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}},e.prototype.verifyValue=function(e){if(a.isDevMode()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check "+F+" 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 "+F+" for possible resolution.")}},e.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",A.preventDefault),this.renderer.listen(e,"click",this.handleComponentClick.bind(this)),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)))},e.prototype.emitBlur=function(e){this.pickerService&&this.pickerService.onBlur.emit(e)},e.prototype.emitFocus=function(){this.pickerService&&this.pickerService.onFocus.emit()},e.prototype.handleComponentClick=function(){this.isActive||("infinite"===this.type&&this.monthView.isScrolled()&&(this.focusedDate=s.cloneDate(this.focusedDate),this.detectChanges()),this.focus())},e.prototype.handleKeydown=function(e){if(!("classic"===this.type&&this.multiViewCalendar.isHeaderActive)){var t=-1!==[l.Keys.ArrowUp,l.Keys.ArrowRight,l.Keys.ArrowDown,l.Keys.ArrowLeft].indexOf(e.keyCode);if(!(A.isPresent(this.pickerService)&&t&&e.altKey)){var n=x.dateInRange(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max);s.isEqual(this.focusedDate,n)||(this.focusedDate=n,this.detectChanges(),e.preventDefault()),e.keyCode===l.Keys.Enter&&this.performSelection(this.focusedDate,e)}}},e.prototype.detectChanges=function(){this.destroyed||this.cdr.detectChanges()},e.prototype.emitSameDate=function(){this.pickerService&&this.pickerService.sameDateSelected.emit()},e.prototype.setAriaActivedescendant=function(){if(A.isPresent(this.element)&&("classic"!==this.type||this.element.nativeElement.hasAttribute("aria-activedescendant")))if("classic"!==this.type){var e=this.cellUID+this.focusedDate.getTime();this.renderer.setAttribute(this.element.nativeElement,"aria-activedescendant",e)}else this.renderer.removeAttribute(this.element.nativeElement,"aria-activedescendant")},e.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?s.cloneDate(x.last(e)):e.map((function(e){return s.cloneDate(e)}))},e.prototype.performSelection=function(e,t){var n=this.selectionService.performSelection({date:e,modifiers:t,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=n.rangePivot,this.handleDateChange({selectedDates:n.selectedDates,focusedDate:e})},i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"id",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"focusedDate",null),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"min",null),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"max",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rangeValidation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"selection",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"value",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"disabledDates",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"navigation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"bottomView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"topView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"type",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"animateNavigation",void 0),i.__decorate([a.Input(),a.HostBinding("class.k-week-number"),i.__metadata("design:type",Boolean)],e.prototype,"weekNumber",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"activeViewChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"navigate",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"activeViewDateChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([a.ContentChild(b.CellTemplateDirective,{static:!1}),i.__metadata("design:type",b.CellTemplateDirective)],e.prototype,"cellTemplate",void 0),i.__decorate([a.Input("cellTemplate"),i.__metadata("design:type",b.CellTemplateDirective),i.__metadata("design:paramtypes",[b.CellTemplateDirective])],e.prototype,"cellTemplateRef",null),i.__decorate([a.ContentChild(C.MonthCellTemplateDirective,{static:!1}),i.__metadata("design:type",C.MonthCellTemplateDirective)],e.prototype,"monthCellTemplate",void 0),i.__decorate([a.Input("monthCellTemplate"),i.__metadata("design:type",C.MonthCellTemplateDirective),i.__metadata("design:paramtypes",[C.MonthCellTemplateDirective])],e.prototype,"monthCellTemplateRef",null),i.__decorate([a.ContentChild(w.YearCellTemplateDirective,{static:!1}),i.__metadata("design:type",w.YearCellTemplateDirective)],e.prototype,"yearCellTemplate",void 0),i.__decorate([a.Input("yearCellTemplate"),i.__metadata("design:type",w.YearCellTemplateDirective),i.__metadata("design:paramtypes",[w.YearCellTemplateDirective])],e.prototype,"yearCellTemplateRef",null),i.__decorate([a.ContentChild(D.DecadeCellTemplateDirective,{static:!1}),i.__metadata("design:type",D.DecadeCellTemplateDirective)],e.prototype,"decadeCellTemplate",void 0),i.__decorate([a.Input("decadeCellTemplate"),i.__metadata("design:type",D.DecadeCellTemplateDirective),i.__metadata("design:paramtypes",[D.DecadeCellTemplateDirective])],e.prototype,"decadeCellTemplateRef",null),i.__decorate([a.ContentChild(k.CenturyCellTemplateDirective,{static:!1}),i.__metadata("design:type",k.CenturyCellTemplateDirective)],e.prototype,"centuryCellTemplate",void 0),i.__decorate([a.Input("centuryCellTemplate"),i.__metadata("design:type",k.CenturyCellTemplateDirective),i.__metadata("design:paramtypes",[k.CenturyCellTemplateDirective])],e.prototype,"centuryCellTemplateRef",null),i.__decorate([a.ContentChild(T.WeekNumberCellTemplateDirective,{static:!1}),i.__metadata("design:type",T.WeekNumberCellTemplateDirective)],e.prototype,"weekNumberTemplate",void 0),i.__decorate([a.Input("weekNumberTemplate"),i.__metadata("design:type",T.WeekNumberCellTemplateDirective),i.__metadata("design:paramtypes",[T.WeekNumberCellTemplateDirective])],e.prototype,"weekNumberTemplateRef",null),i.__decorate([a.ContentChild(E.HeaderTitleTemplateDirective,{static:!1}),i.__metadata("design:type",E.HeaderTitleTemplateDirective)],e.prototype,"headerTitleTemplate",void 0),i.__decorate([a.Input("headerTitleTemplate"),i.__metadata("design:type",E.HeaderTitleTemplateDirective),i.__metadata("design:paramtypes",[E.HeaderTitleTemplateDirective])],e.prototype,"headerTitleTemplateRef",null),i.__decorate([a.ContentChild(S.NavigationItemTemplateDirective,{static:!1}),i.__metadata("design:type",S.NavigationItemTemplateDirective)],e.prototype,"navigationItemTemplate",void 0),i.__decorate([a.Input("navigationItemTemplate"),i.__metadata("design:type",S.NavigationItemTemplateDirective),i.__metadata("design:paramtypes",[S.NavigationItemTemplateDirective])],e.prototype,"navigationItemTemplateRef",null),i.__decorate([a.ViewChild(p.NavigationComponent,{static:!1}),i.__metadata("design:type",p.NavigationComponent)],e.prototype,"navigationView",void 0),i.__decorate([a.ViewChild(h.ViewListComponent,{static:!1}),i.__metadata("design:type",h.ViewListComponent)],e.prototype,"monthView",void 0),i.__decorate([a.ViewChild(u.MultiViewCalendarComponent,{static:!1}),i.__metadata("design:type",u.MultiViewCalendarComponent)],e.prototype,"multiViewCalendar",void 0),i.__decorate([a.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"widgetId",null),i.__decorate([a.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"calendarTabIndex",null),i.__decorate([a.HostBinding("attr.aria-disabled"),a.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaDisabled",null),e=i.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,exportAs:"kendo-calendar",providers:[g.BusViewService,t.CALENDAR_VALUE_ACCESSOR,t.CALENDAR_RANGE_VALIDATORS,t.KENDO_INPUT_PROVIDER,r.LocalizationService,v.DisabledDatesService,{provide:r.L10N_PREFIX,useValue:"kendo.calendar"},f.NavigationService,_.ScrollSyncService,y.SelectionService],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 >\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 '}),i.__param(12,a.Optional()),i.__metadata("design:paramtypes",[g.BusViewService,m.CalendarDOMService,a.ElementRef,f.NavigationService,a.Renderer2,a.ChangeDetectorRef,a.NgZone,a.Injector,_.ScrollSyncService,v.DisabledDatesService,r.LocalizationService,y.SelectionService,M.PickerService])],e)}();t.CalendarComponent=L},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(2),r=n(11),s=n(50),l=n(5),c=n(15),d=n(10),u=n(8),p=n(3),h=n(6),m=n(7),g=function(){function e(e,t,n,i,o,r){this.bus=e,this.intl=t,this.weekService=n,this.cdr=i,this.element=o,this.renderer=r,this.activeView=d.CalendarViewEnum.month,this.isActive=!0,this.min=new Date(u.MIN_DATE),this.max=new Date(u.MAX_DATE),this.selectedDates=[],this.views=2,this.showViewHeader=!1,this.animateNavigation=!1,this.cellClick=new a.EventEmitter,this.weekNumberCellClick=new a.EventEmitter,this.cellEnter=new a.EventEmitter,this.cellLeave=new a.EventEmitter,this.activeDateChange=new a.EventEmitter,this.getComponentClass=!0,this.weekNames=[],this.dates=[],this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}return Object.defineProperty(e.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentMonthClass",{get:function(){return this.activeView===d.CalendarViewEnum.month},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentYearClass",{get:function(){return this.activeView===d.CalendarViewEnum.year},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===d.CalendarViewEnum.decade},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===d.CalendarViewEnum.century},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if(this.initService(),(0===this.weekNames.length||e.weekNumber)&&(this.weekNames=this.weekService.getWeekNames(this.weekNumber)),this.service){this.views=this.views||2;var 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);var i=p.hasChange(e,"activeView"),a=this.views>0&&p.hasChange(e,"views");!i&&this.isInDates(t)&&!a&&this.activeDate||(this.dates=this.service.datesList(n,this.getTake(this.skip)),this.activeDate=o.cloneDate(this.dates[0]),this.activeDateChange.emit(this.activeDate))}},e.prototype.ngAfterViewInit=function(){1===this.views&&this.setTableMinWidth()},e.prototype.ngOnDestroy=function(){this.intlSubscription.unsubscribe()},e.prototype.initService=function(){this.service=this.bus.service(this.activeView)},e.prototype.isMonthView=function(){return this.activeView===d.CalendarViewEnum.month},e.prototype.getCaptionTitle=function(e){return this.service.title(e)},e.prototype.getCaptionClass=function(){return this.isMonthView()?"k-month-header":"k-meta-header"},e.prototype.animateView=function(e){var t=this,n=this.element.nativeElement,i=n.querySelector("table"),a=parseFloat(getComputedStyle(n).width),r=parseFloat(getComputedStyle(i).width);this.renderer.setStyle(n,"width",a+"px"),this.renderer.setStyle(n,"overflow","visible"),e===c.Action.NextView?this.nextAnimationDate=o.cloneDate(this.dates[0]):this.prevAnimationDate=o.cloneDate(this.dates[this.dates.length-1]),this.cdr.detectChanges(),n.querySelectorAll("table").forEach((function(e){t.renderer.setStyle(e,"width",r+"px"),1===t.views&&t.renderer.setStyle(e,"min-width",a+"px")}));var s=i.getBoundingClientRect(),l=parseFloat(getComputedStyle(n).columnGap),d=e===c.Action.NextView?"translateX(0)":"translateX(-"+(s.width+l)+"px)",u=e===c.Action.NextView?"translateX(-"+(s.width+l)+"px)":"translateX(0)";this.animation?this.animation.cancel():(this.animation=n.animate([{transform:d},{transform:u}],{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()})},e.prototype.navigate=function(e){this.animateNavigation&&h.isDocumentAvailable()&&m.isPresent(this.element.nativeElement.animate)&&this.animateView(e);var t=this.move(e),n=this.service.datesList(t,this.getTake(this.skip));return this.isListInRange(n)&&(this.dates=n),this.activeDate=o.cloneDate(this.dates[0]),this.focusedDate=o.cloneDate(t),this.cdr.markForCheck(),this.activeDateChange.emit(this.activeDate),o.cloneDate(t)},e.prototype.canNavigate=function(e){return!!this.service&&this.isListInRange(this.service.datesList(this.move(e),this.getTake(this.skip)))},e.prototype.setTableMinWidth=function(){var e=this.element.nativeElement,t=e.querySelector("table");if(t){var n=parseFloat(getComputedStyle(e).width);this.renderer.setStyle(t,"min-width",n+"px")}},e.prototype.intlChange=function(){this.weekNames=this.weekService.getWeekNames(this.weekNumber),this.cdr.markForCheck()},e.prototype.clampDate=function(e){return p.dateInRange(e,this.min,this.max)},e.prototype.move=function(e){return this.service.move(this.dates[0]||this.focusedDate,e)},e.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},e.prototype.isInDates=function(e){return this.service.isInArray(e,this.dates)},e.prototype.getTake=function(e){return Math.min(this.total-e,this.views)},i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"cellTemplateRef",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"weekNumberTemplateRef",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"activeRangeEnd",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"cellUID",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"focusedDate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isActive",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"min",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"max",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"selectionRange",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"selectedDates",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"views",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"showViewHeader",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"animateNavigation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"weekNumber",null),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cellClick",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"weekNumberCellClick",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cellEnter",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cellLeave",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"activeDateChange",void 0),i.__decorate([a.HostBinding("class.k-calendar-view"),a.HostBinding("class.k-hstack"),a.HostBinding("class.k-align-items-start"),a.HostBinding("class.k-justify-content-center"),i.__metadata("design:type",Boolean)],e.prototype,"getComponentClass",void 0),i.__decorate([a.HostBinding("class.k-calendar-monthview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentMonthClass",null),i.__decorate([a.HostBinding("class.k-calendar-yearview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentYearClass",null),i.__decorate([a.HostBinding("class.k-calendar-decadeview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentDecadeClass",null),i.__decorate([a.HostBinding("class.k-calendar-centuryview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentCenturyClass",null),e=i.__decorate([a.Component({changeDetection:a.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 '}),i.__metadata("design:paramtypes",[r.BusViewService,l.IntlService,s.WeekNamesService,a.ChangeDetectorRef,a.ElementRef,a.Renderer2])],e)}();t.HorizontalViewListComponent=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(5),s=n(2),l=n(10),c=n(11),d=n(8),u=n(3),p=n(20),h=n(9),m=function(){function e(e,t,n,i,o){this.bus=e,this.cdr=t,this.localization=n,this.intl=i,this.disabledDatesService=o,this.navigate=!0,this.todayAvailable=!0,this.min=new Date(d.MIN_DATE),this.max=new Date(d.MAX_DATE),this.rangeLength=1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.showNavigationButtons=!1,this.todayButtonClick=new a.EventEmitter,this.prevButtonClick=new a.EventEmitter,this.nextButtonClick=new a.EventEmitter,this.getComponentClass=!0,this.subscriptions=new h.Subscription}return e.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)))},e.prototype.ngOnChanges=function(e){this.bus.service(this.activeView)&&(this.activeViewValue=l.CalendarViewEnum[this.activeView],this.todayMessage=this.localization.get("today"),this.setTodayAvailability(),this.navigate=this.bus.canMoveUp(this.activeView),this.title=this.getTitle())},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.handleTodayClick=function(){this.todayAvailable&&(this.bus.moveToBottom(this.activeView),this.todayButtonClick.emit(u.dateInRange(u.getToday(),this.min,this.max)))},e.prototype.handleNavigation=function(){this.navigate&&this.bus.moveUp(this.activeView)},e.prototype.intlChange=function(){this.currentDate&&this.bus.service(this.activeView)&&(this.title=this.getTitle(),this.cdr.markForCheck())},e.prototype.l10nChange=function(){this.prevButtonTitle=this.localization.get("prevButtonTitle"),this.nextButtonTitle=this.localization.get("nextButtonTitle"),this.todayMessage=this.localization.get("today"),this.cdr.markForCheck()},e.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)},e.prototype.setTodayAvailability=function(){var e=u.getToday(),t=u.isInRange(e,s.getDate(this.min),s.getDate(this.max)),n=this.disabledDatesService.isDateDisabled(e);this.todayAvailable=t&&!n,this.cdr.markForCheck()},i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"currentDate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"min",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"max",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"rangeLength",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"templateRef",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isPrevDisabled",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isNextDisabled",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"showNavigationButtons",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"todayButtonClick",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"prevButtonClick",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"nextButtonClick",void 0),i.__decorate([a.HostBinding("class.k-calendar-header"),a.HostBinding("class.k-hstack"),i.__metadata("design:type",Boolean)],e.prototype,"getComponentClass",void 0),e=i.__decorate([a.Component({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 '}),i.__metadata("design:paramtypes",[c.BusViewService,a.ChangeDetectorRef,o.LocalizationService,r.IntlService,p.DisabledDatesService])],e)}();t.HeaderComponent=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(2),r=n(3),s=n(11),l=function(){function e(e){this.bus=e}return e.prototype.performSelection=function(e){var t=e.date,n=e.modifiers,i=e.selectionMode,a=e.activeViewEnum,s=e.rangePivot,l=e.selectedDates.slice();if("multiple"===i)if(n.ctrlKey||n.metaKey)this.isDateSelected(l,t)?l=l.filter((function(e){return!o.isEqual(e,t)})):l.push(t),s=t;else if(n.shiftKey){var c=r.sortDates([s||t,t]),d=c[0],u=c[1];l=this.bus.service(a).dateRange(d,u),s=t>l[0]?l[0]:r.last(l)}else l=[t],s=t;else l=[t],s=t;return{selectedDates:l,rangePivot:s}},e.prototype.isDateSelected=function(e,t){return e.some((function(e){return o.isEqual(e,t)}))},e=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[s.BusViewService])],e)}();t.SelectionService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(5),r=n(11),s=n(35),l=n(10),c=n(38),d=n(8),u=n(2),p=n(3),h=n(21),m=function(){function e(e,t,n,i,o){this.bus=e,this.dom=t,this.intl=n,this.cdr=i,this.renderer=o,this.min=new Date(d.MIN_DATE),this.max=new Date(d.MAX_DATE),this.focusedDate=new Date,this.valueChange=new a.EventEmitter,this.pageChange=new a.EventEmitter,this.dates=[],this.take=30,this.indexToScroll=-1}return Object.defineProperty(e.prototype,"getComponentClass",{get:function(){return!0},enumerable:!0,configurable:!0}),e.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))},e.prototype.ngOnChanges=function(e){if(this.service=this.bus.service(this.activeView),this.service){this.activeViewValue=l.CalendarViewEnum[this.activeView];var t=p.dateInRange(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))}},e.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},e.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},e.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},e.prototype.onPageChange=function(e){var t=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,t),this.getTake(t)),this.pageChange.emit()},e.prototype.scrollChange=function(e){var t=e.offset,n=this.list.nativeElement,i="translateY("+t+"px)";this.renderer.setStyle(n,"transform",i),this.renderer.setStyle(n,"-ms-transform",i)},e.prototype.handleDateChange=function(e){var t=h.closestInScope(e.target,(function(e){return e.hasAttribute("data-date-index")}),this.list.nativeElement);if(t){var n=parseInt(t.getAttribute("data-date-index"),10),i=this.dates[n];this.valueChange.emit(u.cloneDate(i))}},e.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},e.prototype.intlChange=function(){this.activeView===l.CalendarViewEnum.month&&this.cdr.markForCheck()},i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"min",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"max",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"focusedDate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"templateRef",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"pageChange",void 0),i.__decorate([a.ViewChild(c.VirtualizationComponent,{static:!1}),i.__metadata("design:type",c.VirtualizationComponent)],e.prototype,"virtualization",void 0),i.__decorate([a.ViewChild("list",{static:!0}),i.__metadata("design:type",a.ElementRef)],e.prototype,"list",void 0),i.__decorate([a.HostBinding("class.k-calendar-navigation"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentClass",null),e=i.__decorate([a.Component({changeDetection:a.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 '}),i.__metadata("design:paramtypes",[r.BusViewService,s.CalendarDOMService,o.IntlService,a.ChangeDetectorRef,a.Renderer2])],e)}();t.NavigationComponent=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(2),r=n(5),s=n(38),l=n(11),c=n(35),d=n(10),u=n(8),p=n(3),h=function(){function e(e,t,n,i,o){this.bus=e,this.cdr=t,this.intl=n,this.dom=i,this.renderer=o,this.isActive=!0,this.min=new Date(u.MIN_DATE),this.max=new Date(u.MAX_DATE),this.selectedDates=[],this.cellClick=new a.EventEmitter,this.weekNumberCellClick=new a.EventEmitter,this.activeDateChange=new a.EventEmitter,this.todayButtonClick=new a.EventEmitter,this.pageChange=new a.EventEmitter,this.getComponentClass=!0,this.dates=[],this.cols=[],this.weekNames=[],this.take=5,this.animateToIndex=!0,this.indexToScroll=-1,this.minViewsToRender=1}return Object.defineProperty(e.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentMonthClass",{get:function(){return this.activeView===d.CalendarViewEnum.month},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentYearClass",{get:function(){return this.activeView===d.CalendarViewEnum.year},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===d.CalendarViewEnum.decade},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===d.CalendarViewEnum.century},enumerable:!0,configurable:!0}),e.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))},e.prototype.ngOnChanges=function(e){if(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=p.hasChange(e,"weekNumber")&&this.weekNumber?this.getWeekNames():this.weekNames;var t,n,i=p.hasChange(e,"activeView"),a=this.focusedDate,r=p.dateInRange(this.service.viewDate(a,this.max,this.minViewsToRender),this.min,this.max),s=this.service.total(this.min,this.max),l=this.total&&this.total!==s||!this.service.isInArray(a,this.dates);this.skip=this.service.skip(r,this.min),this.total=s,this.animateToIndex=!i,this.bottomOffset=this.getBottomOffset(),this.viewHeight=this.dom.viewHeight(this.activeView),l&&(this.dates=this.service.datesList(r,this.getTake(this.skip))),t=this.activeDate,n=a,t&&n&&t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()||(this.activeDate=o.cloneDate(a));var c=p.hasChange(e,"focusedDate")||i;(l||c||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(a,this.min))}},e.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},e.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},e.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)},e.prototype.onPageChange=function(e){var t=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,t),this.getTake(t)),this.pageChange.emit()},e.prototype.scrollChange=function(e){var t=e.offset,n=this.list.nativeElement,i="translateY("+t+"px)";this.renderer.setStyle(n,"transform",i),this.renderer.setStyle(n,"-ms-transform",i)},e.prototype.setActiveDate=function(e){var t=this.service.addToDate(this.min,e);this.activeDate=t,this.activeDateChange.emit(t),this.cdr.detectChanges()},e.prototype.isMonthView=function(){return this.activeView===d.CalendarViewEnum.month},e.prototype.isScrolled=function(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))},e.prototype.getBottomOffset=function(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)},e.prototype.getScrollableHeight=function(){return this.activeView===d.CalendarViewEnum.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight},e.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},e.prototype.getWeekNames=function(){var e=p.shiftWeekNames(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e},e.prototype.intlChange=function(){this.weekNames=this.getWeekNames(),this.isMonthView()&&this.cdr.markForCheck()},i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"cellTemplateRef",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"weekNumberTemplateRef",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"headerTitleTemplateRef",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"cellUID",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"focusedDate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isActive",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"min",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"max",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"selectedDates",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"weekNumber",null),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cellClick",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"weekNumberCellClick",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"activeDateChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"todayButtonClick",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"pageChange",void 0),i.__decorate([a.ViewChild(s.VirtualizationComponent,{static:!1}),i.__metadata("design:type",s.VirtualizationComponent)],e.prototype,"virtualization",void 0),i.__decorate([a.ViewChild("list",{static:!0}),i.__metadata("design:type",a.ElementRef)],e.prototype,"list",void 0),i.__decorate([a.HostBinding("class.k-vstack"),a.HostBinding("class.k-calendar-view"),i.__metadata("design:type",Boolean)],e.prototype,"getComponentClass",void 0),i.__decorate([a.HostBinding("class.k-calendar-monthview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentMonthClass",null),i.__decorate([a.HostBinding("class.k-calendar-yearview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentYearClass",null),i.__decorate([a.HostBinding("class.k-calendar-decadeview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentDecadeClass",null),i.__decorate([a.HostBinding("class.k-calendar-centuryview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentCenturyClass",null),e=i.__decorate([a.Component({changeDetection:a.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 '}),i.__metadata("design:paramtypes",[l.BusViewService,a.ChangeDetectorRef,r.IntlService,c.CalendarDOMService,a.Renderer2])],e)}();t.ViewListComponent=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(17),r=n(4),s=n(13),l=n(2),c=n(6),d=n(18),u=n(19),p=n(8),h=n(33),m=n(34),g=n(37),f=n(10),v=n(26),y=n(27),_=n(28),b=n(29),C=n(30),w=n(31),D=n(32),k=n(52),T=n(16),E=n(20),S=n(3),M=n(22),I=n(7),O=n(9),V=n(40),R=n(64),x=function(){function e(e,t,n,i,o,r,s,h,m,g){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.wrapper=o,this.renderer=r,this.injector=s,this.pickerService=h,this.disabledDatesService=m,this.touchEnabled=g,this.focusableId="k-"+c.guid(),this.activeView=f.CalendarViewEnum[f.CalendarViewEnum.month],this.bottomView=f.CalendarViewEnum[f.CalendarViewEnum.month],this.topView=f.CalendarViewEnum[f.CalendarViewEnum.century],this.calendarType="infinite",this.animateCalendarNavigation=!1,this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.navigation=!0,this.min=l.cloneDate(p.MIN_DATE),this.max=l.cloneDate(p.MAX_DATE),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 a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.open=new a.EventEmitter,this.close=new a.EventEmitter,this.wrapperClasses=!0,this.popupUID=c.guid(),this._popupSettings={animate:!0},this._show=!1,this._value=null,this._active=!1,this.onControlChange=S.noop,this.onControlTouched=S.noop,this.onValidatorChange=S.noop,this.minValidateFn=S.noop,this.maxValidateFn=S.noop,this.disabledDatesValidateFn=S.noop,this.incompleteValidator=S.noop,this.resolvedPromise=Promise.resolve(null),this.domEvents=[],this._size="medium",this._rounded="medium",this._fillMode="solid",d.validatePackage(u.packageMetadata),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)))}var t;return t=e,Object.defineProperty(e.prototype,"cellTemplateRef",{set:function(e){this.cellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"monthCellTemplateRef",{set:function(e){this.monthCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yearCellTemplateRef",{set:function(e){this.yearCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decadeCellTemplateRef",{set:function(e){this.decadeCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centuryCellTemplateRef",{set:function(e){this.centuryCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekNumberTemplateRef",{set:function(e){this.weekNumberTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headerTitleTemplateRef",{set:function(e){this.headerTitleTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"navigationItemTemplateRef",{set:function(e){this.navigationItemTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=l.cloneDate(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this._disabledDates=e,this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,S.getSizeClass("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,S.getSizeClass("input",this.size)),e&&(this.renderer.addClass(this.wrapper.nativeElement,S.getSizeClass("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,S.getSizeClass("input",e))),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,S.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,S.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,S.getFillModeClass("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,S.getFillModeClass("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"),e&&(this.renderer.addClass(this.toggleButton.nativeElement,S.getFillModeClass("button",e)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+e+"-base"),this.renderer.addClass(this.wrapper.nativeElement,S.getFillModeClass("input",e))),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this._active},set:function(e){if(this._active=e,this.wrapper){var t=this.wrapper.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus")}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"show",{get:function(){return this._show},set:function(e){var t=this;e&&(this.disabled||this.readonly)||(!(e||this._show&&c.hasObservers(this.close))?this.togglePopup(e):this.zone.run((function(){t.togglePopup(e)})))},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!this.value&&this.input.isEmpty()},e.prototype.ngOnInit=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe((function(){return e.cdr.markForCheck()})),this.control=this.injector.get(o.NgControl,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.zone.runOutsideAngular((function(){e.bindEvents()})))},e.prototype.ngAfterViewInit=function(){this.setComponentClasses()},e.prototype.ngOnChanges=function(e){this.verifySettings(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?h.minValidator(this.min):S.noop,this.maxValidateFn=this.rangeValidation?m.maxValidator(this.max):S.noop,this.disabledDatesValidateFn=this.disabledDatesValidation?R.disabledDatesValidator(this.disabledDatesService.isDateDisabled):S.noop,this.incompleteValidator=this.incompleteDateValidation?V.incompleteDateValidator():S.noop,this.onValidatorChange())},e.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(e.prototype,"isOpen",{get:function(){return this.show},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.verifyValue(e),this.value=l.cloneDate(e),this.cdr.markForCheck(),!e&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(e))},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.focus=function(){this.input.focus()},e.prototype.blur=function(){(this.calendar||this.input).blur()},e.prototype.toggle=function(e){var t=this;this.disabled||this.readonly||this.resolvedPromise.then((function(){t._toggle(void 0===e?!t.show:e)}))},e.prototype.handleIconClick=function(e){this.disabled||this.readonly||(e.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show,this.cdr.markForCheck())},e.prototype.handleMousedown=function(e){e.preventDefault()},e.prototype.handleChange=function(e){this.cdr.markForCheck(),this.focusInput(),this.value=e,this.show=!1,this.onControlChange(l.cloneDate(e)),this.valueChange.emit(l.cloneDate(e))},e.prototype.handleInputChange=function(e){this.handleChange(this.input.formatSections.time?e:this.mergeTime(e))},Object.defineProperty(e.prototype,"popupClasses",{get:function(){return["k-calendar-container","k-group","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendar",{get:function(){return this.pickerService.calendar},enumerable:!0,configurable:!0}),e.prototype.mergeTime=function(e){return this.value&&e?S.setTime(e,this.value):e},e.prototype.handleKeydown=function(e){var t=e.altKey,n=e.shiftKey,i=e.keyCode,a=e.target;i===c.Keys.Escape&&(this.show=!1),t&&(i!==c.Keys.ArrowDown||this.show||(this.show=!0),i===c.Keys.ArrowUp&&(this.show=!1)),i===c.Keys.Enter&&a.classList.contains("k-calendar")&&e.preventDefault(),i===c.Keys.Tab&&this.show&&this.calendar.isActive&&S.isTabExitingCalendar(this.calendarType,a,n)&&(this.input.focus(),this.show=!1)},e.prototype.togglePopup=function(e){var t=new g.PreventableEvent;!this._show&&e?this.open.emit(t):this._show&&!e&&this.close.emit(t),t.isDefaultPrevented()||(this._toggle(e),this.toggleFocus())},e.prototype._toggle=function(e){var t=this;if(e!==this._show)if(this._show=e,e){var n=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:n},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:n},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.subscription=this.popupRef.popupAnchorViewportLeave.subscribe((function(){return t.show=!1}))}else this.popupRef.close(),this.popupRef=null,this.subscription.unsubscribe()},e.prototype.focusInput=function(){this.touchEnabled||this.input.focus()},e.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())},e.prototype.verifySettings=function(){if(a.isDevMode()&&!S.isValidRange(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.")},e.prototype.verifyValue=function(e){if(a.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.")},e.prototype.bindEvents=function(){var e=this.wrapper.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),S.isWindowAvailable()&&(this.windowBlurSubscription=O.fromEvent(window,"blur").subscribe(this.handleWindowBlur.bind(this)))},e.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,c.hasObservers(this.onFocus)&&this.zone.run((function(){e.onFocus.emit()})))},e.prototype.handleWindowBlur=function(){this.isOpen&&(this.show=!1)},e.prototype.handleBlur=function(e){var t=this,n=e&&I.currentFocusTarget(e);n&&(this.input.containsElement(n)||this.calendar&&this.calendar.containsElement(n))||(c.hasObservers(this.onBlur)||this.show&&c.hasObservers(this.close)||I.requiresZoneOnBlur(this.control)?this.zone.run((function(){t.blurComponent(),t.cdr.markForCheck()})):this.blurComponent())},e.prototype.blurComponent=function(){this.isActive=!1,this.show=!1,this.cdr.detectChanges(),this.onControlTouched(),this.onBlur.emit()},e.prototype.handleSameSelection=function(){this.show&&(this.focusInput(),this.show=!1)},e.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.zone.run((function(){return e.onValidatorChange()}))},e.prototype.setComponentClasses=function(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,S.getSizeClass("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,S.getSizeClass("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,S.getRoundedClass(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,S.getFillModeClass("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,S.getFillModeClass("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"))},i.__decorate([a.ViewChild("container",{read:a.ViewContainerRef,static:!0}),i.__metadata("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),i.__decorate([a.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),i.__decorate([a.ViewChild("toggleButton",{static:!0}),i.__metadata("design:type",a.ElementRef)],e.prototype,"toggleButton",void 0),i.__decorate([a.ContentChild(v.CellTemplateDirective,{static:!1}),i.__metadata("design:type",v.CellTemplateDirective)],e.prototype,"cellTemplate",void 0),i.__decorate([a.Input("cellTemplate"),i.__metadata("design:type",v.CellTemplateDirective),i.__metadata("design:paramtypes",[v.CellTemplateDirective])],e.prototype,"cellTemplateRef",null),i.__decorate([a.ContentChild(y.MonthCellTemplateDirective,{static:!1}),i.__metadata("design:type",y.MonthCellTemplateDirective)],e.prototype,"monthCellTemplate",void 0),i.__decorate([a.Input("monthCellTemplate"),i.__metadata("design:type",y.MonthCellTemplateDirective),i.__metadata("design:paramtypes",[y.MonthCellTemplateDirective])],e.prototype,"monthCellTemplateRef",null),i.__decorate([a.ContentChild(_.YearCellTemplateDirective,{static:!1}),i.__metadata("design:type",_.YearCellTemplateDirective)],e.prototype,"yearCellTemplate",void 0),i.__decorate([a.Input("yearCellTemplate"),i.__metadata("design:type",_.YearCellTemplateDirective),i.__metadata("design:paramtypes",[_.YearCellTemplateDirective])],e.prototype,"yearCellTemplateRef",null),i.__decorate([a.ContentChild(b.DecadeCellTemplateDirective,{static:!1}),i.__metadata("design:type",b.DecadeCellTemplateDirective)],e.prototype,"decadeCellTemplate",void 0),i.__decorate([a.Input("decadeCellTemplate"),i.__metadata("design:type",b.DecadeCellTemplateDirective),i.__metadata("design:paramtypes",[b.DecadeCellTemplateDirective])],e.prototype,"decadeCellTemplateRef",null),i.__decorate([a.ContentChild(C.CenturyCellTemplateDirective,{static:!1}),i.__metadata("design:type",C.CenturyCellTemplateDirective)],e.prototype,"centuryCellTemplate",void 0),i.__decorate([a.Input("centuryCellTemplate"),i.__metadata("design:type",C.CenturyCellTemplateDirective),i.__metadata("design:paramtypes",[C.CenturyCellTemplateDirective])],e.prototype,"centuryCellTemplateRef",null),i.__decorate([a.ContentChild(w.WeekNumberCellTemplateDirective,{static:!1}),i.__metadata("design:type",w.WeekNumberCellTemplateDirective)],e.prototype,"weekNumberTemplate",void 0),i.__decorate([a.Input("weekNumberTemplate"),i.__metadata("design:type",w.WeekNumberCellTemplateDirective),i.__metadata("design:paramtypes",[w.WeekNumberCellTemplateDirective])],e.prototype,"weekNumberTemplateRef",null),i.__decorate([a.ContentChild(D.HeaderTitleTemplateDirective,{static:!1}),i.__metadata("design:type",D.HeaderTitleTemplateDirective)],e.prototype,"headerTitleTemplate",void 0),i.__decorate([a.Input("headerTitleTemplate"),i.__metadata("design:type",D.HeaderTitleTemplateDirective),i.__metadata("design:paramtypes",[D.HeaderTitleTemplateDirective])],e.prototype,"headerTitleTemplateRef",null),i.__decorate([a.ContentChild(k.NavigationItemTemplateDirective,{static:!1}),i.__metadata("design:type",k.NavigationItemTemplateDirective)],e.prototype,"navigationItemTemplate",void 0),i.__decorate([a.Input("navigationItemTemplate"),i.__metadata("design:type",k.NavigationItemTemplateDirective),i.__metadata("design:paramtypes",[k.NavigationItemTemplateDirective])],e.prototype,"navigationItemTemplateRef",null),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"bottomView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"topView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"calendarType",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"animateCalendarNavigation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readOnlyInput",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"navigation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"min",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"max",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"focusedDate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"value",null),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"format",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"twoDigitYearMax",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"formatPlaceholder",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"disabledDates",null),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rangeValidation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabledDatesValidation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"weekNumber",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([a.Output("focus"),i.__metadata("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([a.Output("blur"),i.__metadata("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"open",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"close",void 0),i.__decorate([a.HostBinding("class.k-datepicker"),a.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],e.prototype,"wrapperClasses",void 0),i.__decorate([a.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),e=t=i.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,exportAs:"kendo-datepicker",providers:[{provide:o.NG_VALUE_ACCESSOR,useExisting:a.forwardRef((function(){return t})),multi:!0},{provide:o.NG_VALIDATORS,useExisting:a.forwardRef((function(){return t})),multi:!0},{provide:c.KendoInput,useExisting:a.forwardRef((function(){return t}))},r.LocalizationService,T.PickerService,E.DisabledDatesService,{provide:r.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 '}),i.__param(9,a.Optional()),i.__param(9,a.Inject(M.TOUCH_ENABLED)),i.__metadata("design:paramtypes",[a.NgZone,r.LocalizationService,a.ChangeDetectorRef,s.PopupService,a.ElementRef,a.Renderer2,a.Injector,T.PickerService,E.DisabledDatesService,Boolean])],e)}();t.DatePickerComponent=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.disabledDatesValidator=function(e){return function(t){if(!e||!t.value)return null;return e(t.value)?{disabledDate:!0}:null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(17),r=n(4),s=n(13),l=n(2),c=n(6),d=n(18),u=n(19),p=n(8),h=n(5),m=n(16),g=n(7),f=n(41),v=n(37),y=n(3),_=n(105),b=n(22),C=n(9),w=n(40),D=new RegExp(f.TIME_PART.hour+"|"+f.TIME_PART.minute+"|"+f.TIME_PART.second+"|"+f.TIME_PART.millisecond+"|"+f.TIME_PART.dayperiod+"|literal"),k=function(){function e(e,t,n,i,o,r,s,h,m,g){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.wrapper=o,this.renderer=r,this.injector=s,this.pickerService=h,this.intl=m,this.touchEnabled=g,this.focusableId="k-"+c.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 a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.open=new a.EventEmitter,this.close=new a.EventEmitter,this.wrapperClasses=!0,this.popupUID=c.guid(),this.onControlChange=y.noop,this.onControlTouched=y.noop,this.onValidatorChange=y.noop,this.resolvedPromise=Promise.resolve(null),this.timeRangeValidateFn=y.noop,this.incompleteValidator=y.noop,this._min=l.cloneDate(p.MIN_TIME),this._max=l.cloneDate(p.MAX_TIME),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",d.validatePackage(u.packageMetadata),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)))}var t;return t=e,Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){this._min=l.cloneDate(e||p.MIN_TIME)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){this._max=l.cloneDate(e||p.MAX_TIME)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"steps",{get:function(){return this._steps},set:function(e){this._steps=e||{}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=l.cloneDate(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,y.getSizeClass("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,y.getSizeClass("input",this.size)),e&&(this.renderer.addClass(this.wrapper.nativeElement,y.getSizeClass("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,y.getSizeClass("input",e))),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,y.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,y.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,y.getFillModeClass("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,y.getFillModeClass("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"),e&&(this.renderer.addClass(this.wrapper.nativeElement,y.getFillModeClass("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,y.getFillModeClass("button",e)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+e+"-base")),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this._active},set:function(e){if(this._active=e,this.wrapper){var t=this.wrapper.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus")}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"show",{get:function(){return this._show},set:function(e){var t=this;e&&(this.disabled||this.readonly)||(!(e||this._show&&c.hasObservers(this.close))?this.togglePopup(e):this.zone.run((function(){t.togglePopup(e)})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timeSelector",{get:function(){return this.pickerService.timeSelector},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!this.value&&this.input.isEmpty()},e.prototype.ngOnInit=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe((function(){return e.cdr.markForCheck()})),this.control=this.injector.get(o.NgControl,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.zone.runOutsideAngular((function(){e.bindEvents()})))},e.prototype.ngAfterViewInit=function(){this.setComponentClasses()},e.prototype.ngOnChanges=function(e){(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.timeRangeValidateFn=this.rangeValidation?_.timeRangeValidator(this.min,this.max):y.noop,this.incompleteValidator=this.incompleteDateValidation?w.incompleteDateValidator():y.noop,this.onValidatorChange()),e.format&&this.verifyFormat()},e.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()},e.prototype.handleKeydown=function(e){var t=e.altKey,n=e.keyCode;n!==c.Keys.Escape?t&&(n===c.Keys.ArrowUp&&(this.show=!1),n!==c.Keys.ArrowDown||this.show||(this.show=!0)):this.show=!1},e.prototype.writeValue=function(e){this.verifyValue(e),this.value=l.cloneDate(e),this.cdr.markForCheck(),!e&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(e))},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.validate=function(e){return this.timeRangeValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.focus=function(){this.input.focus()},e.prototype.blur=function(){(this.timeSelector||this.input).blur()},e.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(e.prototype,"isOpen",{get:function(){return this.show},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),e.prototype.handleChange=function(e){var t=this;if(l.isEqual(this.value,e))return this.focusInput(),void(this.show=!1);this.value=l.cloneDate(e),this.zone.run((function(){t.focusInput(),t.show=!1,t.onControlChange(l.cloneDate(e)),t.valueChange.emit(l.cloneDate(e))}))},e.prototype.handleReject=function(){this.show=!1},e.prototype.handleInputChange=function(e){var t=this.input.formatSections.date?e:this.mergeTime(e);this.handleChange(t)},e.prototype.handleMousedown=function(e){e.preventDefault()},e.prototype.handleIconClick=function(e){this.disabled||this.readonly||(e.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show)},Object.defineProperty(e.prototype,"popupClasses",{get:function(){return["k-group","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),e.prototype.normalizeTime=function(e){return y.setTime(p.MIDNIGHT_DATE,e)},e.prototype.mergeTime=function(e){return this.value&&e?y.setTime(this.value,e):e},e.prototype.togglePopup=function(e){var t=new v.PreventableEvent;!this._show&&e?this.open.emit(t):this._show&&!e&&this.close.emit(t),t.isDefaultPrevented()||(this._toggle(e),this.toggleFocus())},e.prototype._toggle=function(e){var t=this;if(e!==this.isOpen)if(this._show=e,this.cdr.markForCheck(),e){var n=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:n},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:n},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.popupRef.popupAnchorViewportLeave.subscribe((function(){return t.show=!1}))}else this.popupRef.close(),this.popupRef=null},e.prototype.focusInput=function(){this.touchEnabled||this.input.focus()},e.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())},e.prototype.verifyValue=function(e){if(a.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.")},e.prototype.verifyFormat=function(){if(a.isDevMode()&&this.intl.splitDateFormat(this.format).some((function(e){return!D.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")},e.prototype.bindEvents=function(){var e=this.wrapper.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),y.isWindowAvailable()&&(this.windowBlurSubscription=C.fromEvent(window,"blur").subscribe(this.handleWindowBlur.bind(this)))},e.prototype.handleWindowBlur=function(){this.isOpen&&(this.show=!1)},e.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,c.hasObservers(this.onFocus)&&this.zone.run((function(){e.onFocus.emit()})))},e.prototype.handleBlur=function(e){var t=this,n=e&&g.currentFocusTarget(e);n&&(this.input.containsElement(n)||this.timeSelector&&this.timeSelector.containsElement(n))||(c.hasObservers(this.onBlur)||this.show&&c.hasObservers(this.close)||g.requiresZoneOnBlur(this.control)?this.zone.run((function(){t.blurComponent(),t.cdr.markForCheck()})):this.blurComponent())},e.prototype.blurComponent=function(){this.isActive=!1,this.show=!1,this.onControlTouched(),this.onBlur.emit()},e.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.zone.run((function(){return e.onValidatorChange()}))},e.prototype.setComponentClasses=function(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,y.getSizeClass("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,y.getSizeClass("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,y.getRoundedClass(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,y.getFillModeClass("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,y.getFillModeClass("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"))},i.__decorate([a.ViewChild("container",{read:a.ViewContainerRef,static:!1}),i.__metadata("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),i.__decorate([a.ViewChild("popupTemplate",{static:!1}),i.__metadata("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),i.__decorate([a.ViewChild("toggleButton",{static:!0}),i.__metadata("design:type",a.ElementRef)],e.prototype,"toggleButton",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readOnlyInput",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"formatPlaceholder",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"min",null),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"max",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"cancelButton",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"nowButton",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"steps",null),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rangeValidation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"value",null),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([a.Output("focus"),i.__metadata("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([a.Output("blur"),i.__metadata("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"open",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"close",void 0),i.__decorate([a.HostBinding("class.k-timepicker"),a.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],e.prototype,"wrapperClasses",void 0),i.__decorate([a.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),e=t=i.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timepicker",providers:[{provide:o.NG_VALUE_ACCESSOR,useExisting:a.forwardRef((function(){return t})),multi:!0},{provide:o.NG_VALIDATORS,useExisting:a.forwardRef((function(){return t})),multi:!0},{provide:c.KendoInput,useExisting:a.forwardRef((function(){return t}))},r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.timepicker"},m.PickerService],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 '}),i.__param(9,a.Optional()),i.__param(9,a.Inject(b.TOUCH_ENABLED)),i.__metadata("design:paramtypes",[a.NgZone,r.LocalizationService,a.ChangeDetectorRef,s.PopupService,a.ElementRef,a.Renderer2,a.Injector,m.PickerService,h.IntlService,Boolean])],e)}();t.TimePickerComponent=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(17),r=n(9),s=n(36),l=n(2),c=n(13),d=n(5),u=n(6),p=n(4),h=n(18),m=n(19),g=n(16),f=n(20),v=n(7),y=n(3),_=n(37),b=n(33),C=n(34),w=n(64),D=n(41),k=n(8),T=n(22),E=n(26),S=n(27),M=n(28),I=n(29),O=n(30),V=n(31),R=n(32),x=n(40),P=new RegExp(D.TIME_PART.hour+"|"+D.TIME_PART.minute+"|"+D.TIME_PART.second+"|"+D.TIME_PART.dayperiod+"|literal"),A=function(){function e(e,t,n,i,o,s,c,d,p,g){this.popupService=e,this.intl=t,this.cdr=n,this.pickerService=i,this.ngZone=o,this.wrapper=s,this.touchEnabled=c,this.localization=d,this.disabledDatesService=p,this.renderer=g,this.hostClasses=!0,this.twoDigitYearMax=68,this.focusableId="k-"+u.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 a.EventEmitter,this.open=new a.EventEmitter,this.close=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.activeTab="date",this.timeSelectorFormat="t",this.timeSelectorMin=l.cloneDate(k.MIN_TIME),this.timeSelectorMax=l.cloneDate(k.MAX_TIME),this.calendarValue=null,this.calendarMin=l.cloneDate(k.MIN_DATE),this.calendarMax=y.lastMillisecondOfDate(k.MAX_DATE),this._popupSettings={animate:!0},this._value=null,this._format="g",this._tabindex=0,this._defaultTab="date",this._min=y.mergeDateAndTime(k.MIN_DATE,k.MIN_TIME),this._max=y.mergeDateAndTime(k.MAX_DATE,k.MAX_TIME),this._isActive=!1,this.onControlTouched=y.noop,this.onControlChange=y.noop,this.onValidatorChange=y.noop,this.minValidateFn=y.noop,this.maxValidateFn=y.noop,this.disabledDatesValidateFn=y.noop,this.incompleteValidator=y.noop,this.subscriptions=new r.Subscription,this._size="medium",this._rounded="medium",this._fillMode="solid",h.validatePackage(m.packageMetadata)}var t;return t=e,Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendar",{get:function(){return this.pickerService.calendar},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timeSelector",{get:function(){return this.pickerService.timeSelector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=l.cloneDate(e),this.setCalendarValue(e),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"format",{get:function(){return this._format},set:function(e){this._format=e;var t=this.getDisplayFormat(e);this.timeSelectorFormat=this.getTimeSelectorFormat(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this._disabledDates=e,this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){v.isPresent(e)&&(this._min=l.cloneDate(e),this.calendarMin=l.getDate(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){v.isPresent(e)&&(this._max=l.cloneDate(e),this.calendarMax=y.lastMillisecondOfDate(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return v.isPresent(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.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:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultTab",{get:function(){return this._defaultTab},set:function(e){this._defaultTab=e||"date",this.activeTab=this.defaultTab},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,y.getSizeClass("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,y.getSizeClass("input",this.size)),e&&(this.renderer.addClass(this.wrapper.nativeElement,y.getSizeClass("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,y.getSizeClass("input",e))),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,y.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,y.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,y.getFillModeClass("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,y.getFillModeClass("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"),e&&(this.renderer.addClass(this.wrapper.nativeElement,y.getFillModeClass("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,y.getFillModeClass("button",e)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+e+"-base")),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabSwitchTransition",{get:function(){return this.isOpen?null:"none"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableCalendar",{get:function(){return"date"!==this.activeTab&&!this.calendar.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableTimeSelector",{get:function(){return"time"!==this.activeTab&&!this.timeSelector.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeTabComponent",{get:function(){if(this.isOpen)return v.isPresent(this.calendar)||v.isPresent(this.timeSelector)||this.cdr.detectChanges(),"date"===this.activeTab?this.calendar:this.timeSelector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(v.isPresent(e)&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.pickerService.onFocus.pipe(s.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))),y.isWindowAvailable()&&this.subscriptions.add(this.ngZone.runOutsideAngular((function(){return r.fromEvent(window,"blur").subscribe(e.handleCancel.bind(e))})))},e.prototype.ngAfterViewInit=function(){this.setComponentClasses()},e.prototype.ngOnChanges=function(e){(v.isPresent(e.min)||v.isPresent(e.max))&&this.verifyMinMaxRange(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?b.minValidator(this.min):y.noop,this.maxValidateFn=this.rangeValidation?C.maxValidator(this.max):y.noop,this.disabledDatesValidateFn=this.disabledDatesValidation?w.disabledDatesValidator(this.disabledDatesService.isDateDisabled):y.noop,this.incompleteValidator=this.incompleteDateValidation?x.incompleteDateValidator():y.noop,this.onValidatorChange())},e.prototype.ngOnDestroy=function(){this.isOpen&&this.closePopup(),this.subscriptions.unsubscribe()},e.prototype.focus=function(){this.disabled||(this.isOpen?this.activeTabComponent.focus():this.input.focus())},e.prototype.blur=function(){this.isOpen&&this.activeTabComponent.isActive?this.activeTabComponent.blur():this.input.blur()},e.prototype.toggle=function(e){this.disabled||this.readonly||e===this.isOpen||((v.isPresent(e)?e:!this.isOpen)?this.openPopup():(this.closePopup(),this.activeTab!==this.defaultTab&&(this.activeTab=this.defaultTab,this.cdr.detectChanges())))},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.isEmpty=function(){return!v.isPresent(this.value)&&this.input.isEmpty()},e.prototype.handleIconClick=function(e){var t=this;if(!this.disabled&&!this.readonly){e.preventDefault();var n=!this.isOpen||u.hasObservers(this.close);this.run(n,(function(){var e=!t.isOpen;t.handleFocus(),t.togglePopup(e),t.switchFocus()}))}},e.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,u.hasObservers(this.onFocus)&&this.ngZone.run((function(){return e.onFocus.emit()})))},e.prototype.handleBlur=function(e){var t=this;if(this.isActive&&!this.focusTargetInComponent(e)){this.isActive=!1;var n=this.wrapper.nativeElement.classList.contains("ng-untouched")||u.hasObservers(this.onBlur)||this.isOpen&&u.hasObservers(this.close);this.run(n,(function(){t.onBlur.emit(),t.onControlTouched(),t.togglePopup(!1),t.cdr.markForCheck()}))}},e.prototype.changeActiveTab=function(e){this.isOpen&&this.activeTab!==e&&(l.isEqual(this.timeSelector.value,this.timeSelector.current)||this.timeSelector.handleAccept(),this.activeTab=e,this.cdr.detectChanges(),this.detectPopupChanges())},e.prototype.handleTabChangeTransitionEnd=function(e,t){t.target===e&&this.activeTabComponent.focus()},e.prototype.handleAccept=function(){var e=this;if(this.isOpen){var t=y.mergeDateAndTime(this.calendar.value,this.timeSelector.current),n=!l.isEqual(this.value,t)||u.hasObservers(this.close);this.run(n,(function(){e.handleValueChange(t),e.togglePopup(!1)}))}},e.prototype.handleCancel=function(){var e=this;if(this.isOpen){var t=u.hasObservers(this.close);this.run(t,(function(){return e.togglePopup(!1)}))}},e.prototype.handleInputValueChange=function(e){this.handleValueChange(e),this.isOpen&&this.togglePopup(!1)},e.prototype.handleCalendarValueChange=function(){this.setTimeSelectorMinMax(this.calendar.value),this.changeActiveTab("time")},e.prototype.handleKeyDown=function(e){var t=this;if(!this.disabled&&!this.readonly){var n=e,i=n.keyCode,a=n.altKey;switch(i){case a&&u.Keys.ArrowUp:case u.Keys.Escape:this.handleCancel();break;case!this.isOpen&&a&&u.Keys.ArrowDown:this.ngZone.run((function(){return t.togglePopup(!0)}));break;case a&&u.Keys.ArrowRight:this.changeActiveTab("time");break;case a&&u.Keys.ArrowLeft:this.changeActiveTab("date");break;case this.isOpen&&this.timeSelector.isActive&&v.isPresent(this.calendarValue)&&u.Keys.Enter:this.handleAccept();break;default:return}e.preventDefault()}},e.prototype.handleTabOut=function(e){var t=e,n=t.keyCode,i=t.shiftKey,a=t.target,o=v.isPresent(a.nextElementSibling)&&!a.nextElementSibling.disabled;n!==u.Keys.Tab||i||o||(this.input.focus(),this.handleCancel())},e.prototype.handleBackTabOut=function(e){var t=e,n=t.keyCode,i=t.shiftKey;n===u.Keys.Tab&&i&&this.input.focus()},e.prototype.popupButtonsClasses=function(e){var t=e||"base";return(this.size?y.getSizeClass("button",this.size):"")+" "+(this.rounded?y.getRoundedClass(this.rounded):"")+" "+(this.fillMode?"k-button-"+this.fillMode+" k-button-"+this.fillMode+"-"+t:"")},e.prototype.preventMouseDown=function(e){e.preventDefault()},e.prototype.verifyValue=function(e){if(a.isDevMode()&&v.isPresent(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.")},e.prototype.verifyMinMaxRange=function(){if(a.isDevMode()&&!y.isValidRange(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/.")},e.prototype.getTimeSelectorFormat=function(e){return this.intl.splitDateFormat(e).filter(this.timeFormatPartFilter).reduce((function(e,t){return e+t.pattern}),"")||"t"},e.prototype.getDisplayFormat=function(e){return e?"string"==typeof e?e:e.displayFormat:"g"},e.prototype.timeFormatPartFilter=function(e,t,n){var i=t>=1&&n[t-1];return i&&"literal"===e.type?P.test(i.type):P.test(e.type)},e.prototype.togglePopup=function(e){if(e!==this.isOpen){var t=new _.PreventableEvent;e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()||(this.toggle(e),this.switchFocus())}},e.prototype.switchFocus=function(){this.isActive&&(this.isOpen?this.activeTabComponent.focus():this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())},e.prototype.openPopup=function(){var e=this;this.setCalendarValue(this.value),this.setTimeSelectorMinMax(this.value);var t=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()}))},e.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null)},e.prototype.handleValueChange=function(e){l.isEqual(this.value,e)||(this.value=l.cloneDate(e),this.onControlChange(l.cloneDate(e)),this.valueChange.emit(l.cloneDate(e)))},e.prototype.focusTargetInComponent=function(e){if(!v.isPresent(e))return!1;var t=e.relatedTarget||document.activeElement,n=v.isPresent(this.popupRef)&&this.popupRef.popupElement.contains(t),i=this.wrapper.nativeElement.contains(t);return n||i},e.prototype.setTimeSelectorMinMax=function(e){var t=v.isPresent(e)&&l.isEqual(l.getDate(e),l.getDate(this.min));this.timeSelectorMin=l.cloneDate(t?this.min:k.MIN_TIME);var n=v.isPresent(e)&&l.isEqual(l.getDate(e),l.getDate(this.max));this.timeSelectorMax=l.cloneDate(n?this.max:k.MAX_TIME)},e.prototype.setCalendarValue=function(e){var t=v.isPresent(e)&&y.isInRange(e,this.calendarMin,this.calendarMax);this.calendarValue=t?l.getDate(e):null},e.prototype.detectPopupChanges=function(){this.isOpen&&this.popupRef.popup.changeDetectorRef.detectChanges()},e.prototype.run=function(e,t){e?this.ngZone.run((function(){return t()})):t()},e.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.ngZone.run((function(){return e.onValidatorChange()}))},e.prototype.setComponentClasses=function(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,y.getSizeClass("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,y.getSizeClass("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,y.getRoundedClass(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,y.getFillModeClass("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,y.getFillModeClass("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"))},i.__decorate([a.HostBinding("class.k-datetimepicker"),a.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([a.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([a.ViewChild("toggleButton",{static:!0}),i.__metadata("design:type",a.ElementRef)],e.prototype,"toggleButton",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"value",null),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"format",null),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"twoDigitYearMax",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabindex",null),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"disabledDates",null),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readOnlyInput",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"cancelButton",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"formatPlaceholder",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"steps",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"focusedDate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"calendarType",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"animateCalendarNavigation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"weekNumber",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"min",null),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"max",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rangeValidation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabledDatesValidation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"open",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"close",void 0),i.__decorate([a.Output("focus"),i.__metadata("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([a.Output("blur"),i.__metadata("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"defaultTab",null),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([a.ContentChild(E.CellTemplateDirective,{static:!1}),i.__metadata("design:type",E.CellTemplateDirective)],e.prototype,"cellTemplate",void 0),i.__decorate([a.ContentChild(S.MonthCellTemplateDirective,{static:!1}),i.__metadata("design:type",S.MonthCellTemplateDirective)],e.prototype,"monthCellTemplate",void 0),i.__decorate([a.ContentChild(M.YearCellTemplateDirective,{static:!1}),i.__metadata("design:type",M.YearCellTemplateDirective)],e.prototype,"yearCellTemplate",void 0),i.__decorate([a.ContentChild(I.DecadeCellTemplateDirective,{static:!1}),i.__metadata("design:type",I.DecadeCellTemplateDirective)],e.prototype,"decadeCellTemplate",void 0),i.__decorate([a.ContentChild(O.CenturyCellTemplateDirective,{static:!1}),i.__metadata("design:type",O.CenturyCellTemplateDirective)],e.prototype,"centuryCellTemplate",void 0),i.__decorate([a.ContentChild(V.WeekNumberCellTemplateDirective,{static:!1}),i.__metadata("design:type",V.WeekNumberCellTemplateDirective)],e.prototype,"weekNumberTemplate",void 0),i.__decorate([a.ContentChild(R.HeaderTitleTemplateDirective,{static:!1}),i.__metadata("design:type",R.HeaderTitleTemplateDirective)],e.prototype,"headerTitleTemplate",void 0),i.__decorate([a.ViewChild("container",{read:a.ViewContainerRef,static:!0}),i.__metadata("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),i.__decorate([a.ViewChild("popupTemplate",{read:a.TemplateRef,static:!0}),i.__metadata("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),e=t=i.__decorate([a.Component({selector:"kendo-datetimepicker",exportAs:"kendo-datetimepicker",changeDetection:a.ChangeDetectionStrategy.OnPush,providers:[g.PickerService,p.LocalizationService,f.DisabledDatesService,{provide:p.L10N_PREFIX,useValue:"kendo.datetimepicker"},{provide:o.NG_VALUE_ACCESSOR,useExisting:a.forwardRef((function(){return t})),multi:!0},{provide:o.NG_VALIDATORS,useExisting:a.forwardRef((function(){return t})),multi:!0},{provide:u.KendoInput,useExisting:a.forwardRef((function(){return t}))}],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 '}),i.__param(6,a.Inject(T.TOUCH_ENABLED)),i.__metadata("design:paramtypes",[c.PopupService,d.IntlService,a.ChangeDetectorRef,g.PickerService,a.NgZone,a.ElementRef,Boolean,p.LocalizationService,f.DisabledDatesService,a.Renderer2])],e)}();t.DateTimePickerComponent=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(18),r=n(19),s=n(53),l=n(23),c=function(){function e(){this.showDefault=!1,o.validatePackage(r.packageMetadata)}return Object.defineProperty(e.prototype,"hasContentPopup",{get:function(){return this.contentPopup.length>0},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this.showDefault=!this.hasContentPopup,this.subscription=this.contentPopup.changes.subscribe((function(){e.showDefault=!e.hasContentPopup}))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},i.__decorate([a.ContentChildren(s.DateRangePopupComponent),i.__metadata("design:type",a.QueryList)],e.prototype,"contentPopup",void 0),e=i.__decorate([a.Component({providers:[l.DateRangeService],selector:"kendo-daterange",template:'\n <ng-content></ng-content>\n <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>\n '}),i.__metadata("design:paramtypes",[])],e)}();t.DateRangeComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoDateRangePopupTemplate]"}),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.DateRangePopupTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(2),r=n(39),s=n(70),l=n(23),c=n(12),d=n(3),u=n(7),p=function(e){function t(t,n,i,a,o){var r=e.call(this,"end",t,n,i,a,o)||this;return r.rangeService=t,r.dateInput=n,r.navigateCalendarOnFocus=!1,r}return i.__extends(t,e),t.prototype.ngOnInit=function(){this.rangeService.registerEndInput(this.dateInput),e.prototype.init.call(this)},t.prototype.ngOnDestroy=function(){e.prototype.destroy.call(this)},t.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,a=n.max;if(!d.isInRange(e,i,a))return null;var r=(this.rangeService.selectionRange||c.EMPTY_SELECTIONRANGE).start;return this.autoCorrectOn===t&&u.isPresent(e)&&e<r?d.clampRange(e):{start:r,end:o.cloneDate(e)}},t.prototype.updateInputValue=function(e){var t=(e||c.EMPTY_SELECTIONRANGE).end,n=this.dateInput,i=n.min,a=n.max;!o.isEqual(this.dateInput.value,t)&&d.isInRange(t,i,a)&&(this.dateInput.writeValue(o.cloneDate(t)),this.dateInput.notify())},i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"autoCorrectOn",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"navigateCalendarOnFocus",void 0),t=i.__decorate([a.Directive({selector:"[kendoDateRangeEndInput]"}),i.__metadata("design:paramtypes",[l.DateRangeService,r.DateInputComponent,a.ElementRef,a.Renderer2,a.NgZone])],t)}(s.DateRangeInput);t.DateRangeEndInputDirective=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=n(6),o=n(9),r=n(36),s=n(7),l=function(){function e(e,t,n,i,a,r){this.activeRangeEnd=e,this.dateRangeService=t,this.input=n,this.element=i,this.renderer=a,this.zone=r,this.navigateCalendarOnFocus=!1,this.popupSubscriptions=new o.Subscription,this.subscriptions=new o.Subscription}return Object.defineProperty(e.prototype,"isActiveEnd",{get:function(){return this.dateRangeService.activeRangeEnd===this.activeRangeEnd},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupCalendarActivated",{get:function(){var e=this.dateRangeService.dateRangePopup$.value;return s.isPresent(e)&&s.isPresent(e.calendar)},enumerable:!0,configurable:!0}),e.prototype.init=function(){var e=this;this.input.value&&this.dateRangeService.setRange(this.getRange(this.input.value)),[this.input.onBlur.subscribe((function(){return e.deactivate()})),this.input.onFocus.pipe(r.filter((function(){return!e.popupCalendarActivated}))).subscribe((function(){return e.activate()})),this.input.valueUpdate.subscribe((function(t){return e.updateRange(t,"change")})),this.dateRangeService.activeRangeEnd$.subscribe((function(){e.navigateCalendarOnFocus&&e.focusActiveDate(),e.toggleActiveClass(e.isActiveEnd)})),this.dateRangeService.dateRangePopup$.subscribe((function(t){return e.initPopup(t)})),this.dateRangeService.range$.subscribe((function(t){return e.updateInputValue(t)})),o.fromEvent(this.element.nativeElement,"click").subscribe((function(){return e.activate()})),o.fromEvent(this.element.nativeElement,"keydown").subscribe((function(t){return e.togglePopup(t||{})}))].map((function(t){return e.subscriptions.add(t)}))},e.prototype.destroy=function(){this.subscriptions.unsubscribe(),this.unsubscribePopup()},e.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()},e.prototype.unsubscribePopup=function(){this.popupSubscriptions.unsubscribe(),this.popupSubscriptions=new o.Subscription},e.prototype.activate=function(){this.dateRangeService.setActiveRangeEnd(this.activeRangeEnd),this.dateRangeService.activatePopup()},e.prototype.deactivate=function(){var e=this;this.zone.runOutsideAngular((function(){setTimeout((function(){e.updateRange(e.input.value,"blur"),e.dateRangeService.hasActiveComponent()||(e.toggleActiveClass(!1),e.zone.run((function(){return e.dateRangeService.deactivatePopup()})))}))}))},e.prototype.updateRange=function(e,t){var n=this.getRange(e,t);n&&(this.focusActiveDate(),this.dateRangeService.setRange(n))},e.prototype.togglePopup=function(e){var t=e.altKey,n=e.keyCode;n===a.Keys.Escape?this.dateRangeService.cancelPopup():t&&n===a.Keys.ArrowDown&&this.dateRangeService.activatePopup()},e.prototype.focusActiveDate=function(){this.input.value&&this.isActiveEnd&&this.dateRangeService.setFocusedDate(i.cloneDate(this.input.value))},e.prototype.toggleActiveClass=function(e){var t=e?"addClass":"removeClass",n=this.element.nativeElement;n&&n.querySelector&&this.renderer[t](n,"k-focus")},e}();t.DateRangeInput=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(2),r=n(39),s=n(70),l=n(23),c=n(12),d=n(3),u=function(e){function t(t,n,i,a,o){var r=e.call(this,"start",t,n,i,a,o)||this;return r.rangeService=t,r.dateInput=n,r.navigateCalendarOnFocus=!1,r}return i.__extends(t,e),t.prototype.ngOnInit=function(){this.rangeService.registerStartInput(this.dateInput),e.prototype.init.call(this)},t.prototype.ngOnDestroy=function(){e.prototype.destroy.call(this)},t.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,a=n.max;if(!d.isInRange(e,i,a))return null;var r=(this.rangeService.selectionRange||c.EMPTY_SELECTIONRANGE).end;return this.autoCorrectOn===t&&r&&e>r?d.clampRange(e):{start:o.cloneDate(e),end:r}},t.prototype.updateInputValue=function(e){var t=(e||c.EMPTY_SELECTIONRANGE).start,n=this.dateInput,i=n.min,a=n.max;!o.isEqual(this.dateInput.value,t)&&d.isInRange(t,i,a)&&(this.dateInput.writeValue(o.cloneDate(t)),this.dateInput.notify())},i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"autoCorrectOn",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"navigateCalendarOnFocus",void 0),t=i.__decorate([a.Directive({selector:"[kendoDateRangeStartInput]"}),i.__metadata("design:paramtypes",[l.DateRangeService,r.DateInputComponent,a.ElementRef,a.Renderer2,a.NgZone])],t)}(s.DateRangeInput);t.DateRangeStartInputDirective=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(9),r=n(23),s=n(25),l=n(12),c=n(2),d=n(3),u=function(){function e(e,t,n,i,s){this.calendar=e,this.cdr=t,this.element=n,this.dateRangeService=s,this.autoCorrectOn="change",this.activeRangeEndChange=new a.EventEmitter,this.selectionRangeChange=new a.EventEmitter,this.calendarSubscriptions=new o.Subscription,this.dateRangeService=this.dateRangeService||new r.DateRangeService,i.setAttribute(n.nativeElement,"aria-multiselectable","true")}return Object.defineProperty(e.prototype,"selectionRange",{get:function(){return this.calendar?this.calendar.selectionRange:null},set:function(e){this.isEqualCalendarRange(e)||this.setSelectionRange(e),d.isEqualRange(this.dateRangeService.selectionRange,e)||this.dateRangeService.setRange(e),this.updateFocusedDate(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeRangeEnd",{get:function(){return this.calendar.activeRangeEnd},set:function(e){this.dateRangeService.activeRangeEnd!==e&&(this.calendar.activeRangeEnd=e,this.dateRangeService.setActiveRangeEnd(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendarRange",{get:function(){return this.selectionRange||l.EMPTY_SELECTIONRANGE},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this,t=this.calendar,n=this.dateRangeService;t.min=d.either(n.min,t.min),t.max=d.either(n.max,t.max),this.addSubscriptions(t.cellEnter.subscribe((function(t){return e.handleHover(t)})),t.valueChange.subscribe((function(t){return e.handleChange(t)})),n.focusedDate$.subscribe((function(e){c.isEqual(t.focusedDate,e)||(t.focusedDate=e)})),n.activeRangeEnd$.subscribe((function(n){t.activeRangeEnd!==n&&(t.activeRangeEnd=n,e.activeRangeEndChange.emit(n),e.cdr.markForCheck())})),n.range$.subscribe((function(t){e.isEqualCalendarRange(t)||e.acceptAndEmit(t),e.updateFocusedDate(t)})),o.fromEvent(this.element.nativeElement,"blur").subscribe((function(){return e.handleBlur()})))},e.prototype.ngOnDestroy=function(){this.calendarSubscriptions.unsubscribe()},e.prototype.addSubscriptions=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.map((function(t){return e.calendarSubscriptions.add(t)}))},e.prototype.isEqualCalendarRange=function(e){return d.isEqualRange(this.calendar.selectionRange,e)},e.prototype.handleBlur=function(){var e=this.calendarRange,t=e.start,n=e.end;"blur"===this.autoCorrectOn&&null!==t&&null!==n&&n<t&&this.dateRangeService.setRange(d.clampRange(t))},e.prototype.handleChange=function(e){var t=this.dateRangeService,n="change"===this.autoCorrectOn&&this.shouldAutoCorrect(e),i="end"!==this.calendar.activeRangeEnd||n?"end":"start",a=n?d.clampRange(e):this.updateRange(e);d.isEqualRange(t.selectionRange,a)||(this.acceptAndEmit(a),t.setActiveRangeEnd(i),t.setRange(a))},e.prototype.handleHover=function(e){if(!this.hasCompleteRange()){var t=this.calendarRange,n=t.start,i=t.end,a=this.calendar.activeRangeEnd;(n&&"end"===a||i&&"start"===a)&&this.setSelectionRange(this.updateRange(e))}},e.prototype.hasCompleteRange=function(){var e=this.dateRangeService.selectionRange||l.EMPTY_SELECTIONRANGE,t=e.start,n=e.end;return Boolean(t)&&Boolean(n)},e.prototype.shouldAutoCorrect=function(e){var t=this.calendarRange,n=t.end,i=t.start;return"end"!==this.calendar.activeRangeEnd?null!==n&&e>n:null!==i&&e<i},e.prototype.updateFocusedDate=function(e){e&&!this.dateRangeService.focusedDate&&this.dateRangeService.setFocusedDate(e.start||e.end)},e.prototype.updateRange=function(e){var t=this.calendarRange,n=t.end,i=t.start;return"end"!==this.calendar.activeRangeEnd?{start:e,end:n}:{start:i,end:e}},e.prototype.setSelectionRange=function(e){this.calendar.selectionRange=e,this.calendar.writeValue(null)},e.prototype.acceptAndEmit=function(e){this.setSelectionRange(e),this.selectionRangeChange.emit(e)},i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"autoCorrectOn",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"selectionRange",null),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"activeRangeEnd",null),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"activeRangeEndChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"selectionRangeChange",void 0),e=i.__decorate([a.Directive({selector:"[kendoDateRangeSelection]"}),i.__param(4,a.Optional()),i.__metadata("design:paramtypes",[s.MultiViewCalendarComponent,a.ChangeDetectorRef,a.ElementRef,a.Renderer2,r.DateRangeService])],e)}();t.DateRangeSelectionDirective=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(14),r=n(106),s=n(59),l=n(107),c=n(6),d=function(){function e(){}return e=i.__decorate([a.NgModule({declarations:[r.KForOf,s.HeaderComponent,l.ViewComponent],exports:[r.KForOf,s.HeaderComponent,l.ViewComponent],imports:[o.CommonModule,c.EventsModule]})],e)}();t.CalendarCommonModule=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(75),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([a.Directive({providers:[{provide:r.Messages,useExisting:a.forwardRef((function(){return n}))}],selector:"[kendoMultiViewCalendarLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.Messages);t.MultiViewCalendarLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"today",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"prevButtonTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"nextButtonTitle",void 0),t}(n(4).ComponentMessages);t.Messages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(77),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([a.Directive({providers:[{provide:r.CalendarMessages,useExisting:a.forwardRef((function(){return n}))}],selector:"[kendoCalendarLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.CalendarMessages);t.CalendarLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"today",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"prevButtonTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"nextButtonTitle",void 0),t}(n(4).ComponentMessages);t.CalendarMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(77),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([a.Component({providers:[{provide:r.CalendarMessages,useExisting:a.forwardRef((function(){return n}))}],selector:"kendo-calendar-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.CalendarMessages);t.CalendarCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(14),r=[n(38).VirtualizationComponent],s=function(){function e(){}return e=i.__decorate([a.NgModule({declarations:[r],exports:[r],imports:[o.CommonModule]})],e)}();t.VirtualizationModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(42),r=n(43),s=function(){function e(){}return e=i.__decorate([a.NgModule({exports:[o.CalendarModule,r.MultiViewCalendarModule],imports:[o.CalendarModule,r.MultiViewCalendarModule]})],e)}();t.CalendarsModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(82),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([a.Directive({providers:[{provide:r.DateInputMessages,useExisting:a.forwardRef((function(){return n}))}],selector:"[kendoDateInputLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.DateInputMessages);t.DateInputLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"decrement",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"increment",void 0),t}(n(4).ComponentMessages);t.DateInputMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(82),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([a.Component({providers:[{provide:r.DateInputMessages,useExisting:a.forwardRef((function(){return n}))}],selector:"kendo-dateinput-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.DateInputMessages);t.DateInputCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(63),r=n(14),s=n(5),l=n(13),c=n(42),d=n(44),u=n(24),p=n(6),h=n(85),m=n(87),g=n(54),f=n(22),v=function(){function e(){}return e=i.__decorate([a.NgModule({declarations:[o.DatePickerComponent,m.DatePickerCustomMessagesComponent,h.DatePickerLocalizedMessagesDirective],exports:[o.DatePickerComponent,m.DatePickerCustomMessagesComponent,h.DatePickerLocalizedMessagesDirective,d.TemplatesModule],imports:[r.CommonModule,u.DateInputModule,c.CalendarModule,s.IntlModule,l.PopupModule,d.TemplatesModule,p.EventsModule],providers:[{provide:f.TOUCH_ENABLED,useValue:g.touchEnabled}]})],e)}();t.DatePickerModule=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(86),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([a.Directive({providers:[{provide:r.DatePickerMessages,useExisting:a.forwardRef((function(){return n}))}],selector:"[kendoDatePickerLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.DatePickerMessages);t.DatePickerLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"today",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"toggle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"prevButtonTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"nextButtonTitle",void 0),t}(n(4).ComponentMessages);t.DatePickerMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(86),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([a.Component({providers:[{provide:r.DatePickerMessages,useExisting:a.forwardRef((function(){return n}))}],selector:"kendo-datepicker-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.DatePickerMessages);t.DatePickerCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(14),r=n(13),s=n(43),l=n(24),c=n(69),d=n(71),u=n(67),p=n(53),h=n(68),m=n(72),g=n(6),f=[u.DateRangeComponent,p.DateRangePopupComponent,h.DateRangePopupTemplateDirective,m.DateRangeSelectionDirective,d.DateRangeStartInputDirective,c.DateRangeEndInputDirective],v=[s.MultiViewCalendarModule,l.DateInputModule,r.PopupModule,g.EventsModule],y=function(){function e(){}return e=i.__decorate([a.NgModule({declarations:[f],exports:[f],imports:[o.CommonModule,v]})],e)}();t.DateRangeModule=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=n(36),s=n(2),l=n(38),c=n(8),d=n(41),u=n(56),p=n(90),h=n(91),m=n(92),g=n(93),f=n(94),v=n(21),y=function(){return null},_={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]}},b=((i={})[d.TIME_PART.dayperiod]=f.DayPeriodService,i[d.TIME_PART.hour]=p.HoursService,i[d.TIME_PART.minute]=h.MinutesService,i[d.TIME_PART.second]=m.SecondsService,i[d.TIME_PART.millisecond]=g.MillisecondsService,i),C=function(){function e(e,t,n,i,a){this.element=e,this.injector=t,this.dom=n,this.renderer=i,this.zone=a,this.min=s.cloneDate(c.MIDNIGHT_DATE),this.max=s.cloneDate(c.MAX_TIME),this.step=1,this.disabled=!1,this.valueChange=new o.EventEmitter,this.componentClass=!0,this.animateToIndex=!0,this.isActive=!1,this.skip=0,this.total=60,this.data=[],this.indexToScroll=-1,this.domEvents=[]}return Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.disabled?void 0:0},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){e.part&&(this.service=this.injector.get(b[this.part.type]),this.service.configure(this.serviceSettings()));var t=this.value,n=e.value||{},i=this.service.limitRange(this.min,this.max,t),a=i[0],o=i[1];(this.service.isRangeChanged(a,o)||e.min||e.max||e.step)&&(this.data=[],this.service.configure(this.serviceSettings({min:a,max:o}))),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)},e.prototype.ngOnInit=function(){var e=this;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;var t="translateY("+this.topOffset+"px)";this.style={transform:t,"-ms-transform":t},this.element&&this.zone.runOutsideAngular((function(){e.bindEvents()}))},e.prototype.ngOnDestroy=function(){this.scrollSubscription.unsubscribe(),this.domEvents.forEach((function(e){return e()}))},e.prototype.ngAfterViewInit=function(){var e=this;this.scrollOnce((function(t){return e.virtualization.scrollToIndex(t)}))},e.prototype.ngAfterViewChecked=function(){var e=this;this.scrollOnce((function(t){var n=e.animateToIndex?"animateToIndex":"scrollToIndex";e.virtualization[n](t),e.animateToIndex=!0}))},e.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))},e.prototype.handleItemClick=function(e){var t=v.closestInScope(e.target,(function(e){return e.hasAttribute("data-timelist-item-index")}),this.element.nativeElement);if(t){var n=t.getAttribute("data-timelist-item-index");this.handleChange(this.data[n])}},e.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},e.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},e.prototype.itemOffset=function(e){var t=this.selectedIndex(this.value),n=this.virtualization.activeIndex(),i=this.virtualization.itemOffset(n),a=Math.abs(Math.ceil(e)-i);if(t===n&&a<2)return i;var o=t>n;return o&&a>=this.bottomThreshold||!o&&a>this.topThreshold?this.virtualization.itemOffset(n+1):i},e.prototype.hasMissingValue=function(e){var t=e.previousValue,n=e.currentValue,i=t&&!this.service.valueInList(t),a=n&&!this.service.valueInList(n);return i||a},e.prototype.scrollOnce=function(e){-1!==this.indexToScroll&&(e(this.indexToScroll),this.indexToScroll=-1)},e.prototype.serviceSettings=function(e){var t={boundRange:!1,insertUndividedMax:!1,max:this.max,min:this.min,part:this.part,step:this.step},n=Object.assign({},t,e);return n.boundRange="hour"!==n.part.type,n},e.prototype.selectedIndex=function(e){return e?this.service.selectedIndex(e):-1},e.prototype.textHasChanged=function(e){var t=e.previousValue,n=e.currentValue;if(!t||!n)return!1;var i=this.data[this.selectedIndex(t)],a=this.data[this.selectedIndex(n)];return i&&a&&i.text!==a.text},e.prototype.handleKeyDown=function(e){var t=(_[e.keyCode]||y)(this.data,this.service.selectedIndex(this.value));t&&(this.handleChange(t),e.preventDefault())},e.prototype.bindEvents=function(){var e=this;this.scrollSubscription=this.virtualization.scroll$().pipe(r.debounceTime(100),r.map((function(e){return e.target.scrollTop})),r.map((function(t){return e.itemOffset(t)})),r.map((function(t){return e.virtualization.itemIndex(t)}))).subscribe((function(t){e.virtualization.scrollToIndex(t),e.handleChange(e.data[t])}));var t=this.element.nativeElement;this.domEvents.push(this.renderer.listen(t,"mouseover",(function(){return!e.isActive&&e.focus()})),this.renderer.listen(t,"click",(function(){return e.focus()})),this.renderer.listen(t,"blur",(function(){return e.isActive=!1})),this.renderer.listen(t,"focus",(function(){return e.isActive=!0})),this.renderer.listen(t,"keydown",this.handleKeyDown.bind(this)))},a.__decorate([o.Input(),a.__metadata("design:type",Date)],e.prototype,"min",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Date)],e.prototype,"max",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Object)],e.prototype,"part",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Number)],e.prototype,"step",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Date)],e.prototype,"value",void 0),a.__decorate([o.Output(),a.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),a.__decorate([o.ViewChild(l.VirtualizationComponent,{static:!0}),a.__metadata("design:type",l.VirtualizationComponent)],e.prototype,"virtualization",void 0),a.__decorate([o.HostBinding("attr.tabindex"),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[])],e.prototype,"tabIndex",null),a.__decorate([o.HostBinding("class.k-time-list"),a.__metadata("design:type",Boolean)],e.prototype,"componentClass",void 0),e=a.__decorate([o.Component({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 '}),a.__metadata("design:paramtypes",[o.ElementRef,o.Injector,u.TimePickerDOMService,o.Renderer2,o.NgZone])],e)}();t.TimeListComponent=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=n(2),s=n(5),l=n(8),c=n(3),d=(i=24,function(e){return e%i}),u=function(e,t){return d(24+e-t)},p=function(e){return function(t,n){return!n||r.getDate(t).getTime()===r.getDate(n).getTime()?t:c.setHours(t,e)}},h=p(0),m=p(23),g=function(){function e(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return c.setHours(e,t.getHours())},e.prototype.configure=function(e){var t=this,n=e.boundRange,i=void 0===n?this.boundRange:n,a=e.insertUndividedMax,o=void 0===a?this.insertUndividedMax:a,r=e.min,s=void 0===r?this.min:r,d=e.max,u=void 0===d?this.max:d,p=e.part,h=e.step,m=void 0===h?this.step:h;this.boundRange=i,this.insertUndividedMax=o,this.toListItem=function(e){var n=c.setHours(l.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(n,p.pattern),value:n}},this.min=s,this.max=u,this.step=m},e.prototype.data=function(e){var t,n,i=this,a=this.range(e)[0],o=(t=a,n=this.step,function(e){return d(t+e*n)}),r=c.range(0,this.countFromMin(e)).map((function(e){return i.toListItem(o(e))}));return this.addLast(r),this.addMissing(r,e),r},e.prototype.isRangeChanged=function(e,t){return!r.isEqual(this.min,e)||!r.isEqual(this.max,t)},e.prototype.limitRange=function(e,t,n){return this.boundRange?[h(e,n),m(t,n)]:[e,t]},e.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},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e))},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastHour(t))),e},e.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},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],i=t[1];return Math.floor(u(i,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(c.setHours(this.max,this.lastHour(e)))},e.prototype.divideByStep=function(e){return u(e.getHours(),this.min.getHours())/this.step},e.prototype.lastHour=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],i=t[1];return[n.getHours(),i.getHours()]},e=a.__decorate([o.Injectable(),a.__metadata("design:paramtypes",[s.IntlService])],e)}();t.HoursService=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=n(2),s=n(5),l=n(8),c=n(3),d=(i=60,function(e){return e%i}),u=function(e,t){return d(60+e-t)},p=function(e){return function(t,n){return!n||t.getHours()===n.getHours()?t:c.setMinutes(t,e)}},h=p(0),m=p(59),g=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return c.setMinutes(e,t.getMinutes())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,a=e.min,o=void 0===a?this.min:a,r=e.max,s=void 0===r?this.max:r,d=e.part,u=e.step,p=void 0===u?this.step:u;this.insertUndividedMax=i,this.toListItem=function(e){var n=c.setMinutes(l.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(n,d.pattern),value:n}},this.min=o,this.max=s,this.step=p},e.prototype.data=function(e){var t,n,i=this,a=this.range(e)[0],o=(t=a,n=this.step,function(e){return d(t+e*n)}),r=c.range(0,this.countFromMin(e)).map((function(e){return i.toListItem(o(e))}));return this.addLast(r),this.addMissing(r,e),r},e.prototype.isRangeChanged=function(e,t){return!r.isEqual(this.min,e)||!r.isEqual(this.max,t)},e.prototype.limitRange=function(e,t,n){return[h(e,n),m(t,n)]},e.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},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e))},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMinute(t))),e},e.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},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],i=t[1];return Math.floor(u(i,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(c.setMinutes(this.max,this.lastMinute(e)))},e.prototype.divideByStep=function(e){return u(e.getMinutes(),this.min.getMinutes())/this.step},e.prototype.lastMinute=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],i=t[1];return[n.getMinutes(),i.getMinutes()]},e=a.__decorate([o.Injectable(),a.__metadata("design:paramtypes",[s.IntlService])],e)}();t.MinutesService=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=n(2),s=n(5),l=n(8),c=n(3),d=(i=60,function(e){return e%i}),u=function(e,t){return d(60+e-t)},p=function(e){return function(t,n){return!n||t.getHours()===n.getHours()&&t.getMinutes()===n.getMinutes()?t:c.setSeconds(t,e)}},h=p(0),m=p(59),g=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return c.setSeconds(e,t.getSeconds())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,a=e.min,o=void 0===a?this.min:a,r=e.max,s=void 0===r?this.max:r,d=e.part,u=e.step,p=void 0===u?this.step:u;this.insertUndividedMax=i,this.toListItem=function(e){var n=c.setSeconds(l.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(n,d.pattern),value:n}},this.min=o,this.max=s,this.step=p},e.prototype.data=function(e){var t,n,i=this,a=this.range(e)[0],o=(t=a,n=this.step,function(e){return d(t+e*n)}),r=c.range(0,this.countFromMin(e)).map((function(e){return i.toListItem(o(e))}));return this.addLast(r),this.addMissing(r,e),r},e.prototype.isRangeChanged=function(e,t){return!r.isEqual(this.min,e)||!r.isEqual(this.max,t)},e.prototype.limitRange=function(e,t,n){return[h(e,n),m(t,n)]},e.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},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e))},e.prototype.divideByStep=function(e){return u(e.getSeconds(),this.min.getSeconds())/this.step},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastSecond(t))),e},e.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},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],i=t[1];return Math.floor(u(i,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(c.setSeconds(this.max,this.lastSecond(e)))},e.prototype.lastSecond=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],i=t[1];return[n.getSeconds(),i.getSeconds()]},e=a.__decorate([o.Injectable(),a.__metadata("design:paramtypes",[s.IntlService])],e)}();t.SecondsService=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=n(2),s=n(5),l=n(8),c=n(3),d=(i=1e3,function(e){return e%i}),u=function(e,t){return d(1e3+e-t)},p=function(e){return function(t,n){return!n||t.getHours()===n.getHours()&&t.getMinutes()===n.getMinutes()&&t.getSeconds()===n.getSeconds()?t:c.setMilliseconds(t,e)}},h=p(0),m=p(999),g=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return c.setMilliseconds(e,t.getMilliseconds())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,a=e.min,o=void 0===a?this.min:a,r=e.max,s=void 0===r?this.max:r,d=e.step,u=void 0===d?this.step:d;this.insertUndividedMax=i,this.toListItem=function(e){var n=c.setMilliseconds(l.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(n,"SSS"),value:n}},this.min=o,this.max=s,this.step=u},e.prototype.data=function(e){var t,n,i=this,a=this.range(e)[0],o=(t=a,n=this.step,function(e){return d(t+e*n)}),r=c.range(0,this.countFromMin(e)).map((function(e){return i.toListItem(o(e))}));return this.addLast(r),this.addMissing(r,e),r},e.prototype.isRangeChanged=function(e,t){return!r.isEqual(this.min,e)||!r.isEqual(this.max,t)},e.prototype.limitRange=function(e,t,n){return[h(e,n),m(t,n)]},e.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},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastMillisecond(e)===e.getMilliseconds()||!this.isMissing(e))},e.prototype.divideByStep=function(e){return u(e.getMilliseconds(),this.min.getMilliseconds())/this.step},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMillisecond(t))),e},e.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},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],i=t[1];return Math.floor(u(i,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(c.setMilliseconds(this.max,this.lastMillisecond(e)))},e.prototype.lastMillisecond=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],i=t[1];return[n.getMilliseconds(),i.getMilliseconds()]},e=a.__decorate([o.Injectable(),a.__metadata("design:paramtypes",[s.IntlService])],e)}();t.MillisecondsService=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(2),r=n(5),s=function(e,t){var n=o.cloneDate(e);return n.setHours(t),n},l=function(e){return null!==e&&e<12},c=function(e,t,n){return!t&&!n||e>=t&&e<=n},d=function(e,t,n){return!t&&!n||e>=t||e<=n},u=function(){function e(e){this.intl=e}return e.prototype.apply=function(e,t){var n=e.getHours(),i=l(n),a=l(t.getHours());if(i&&a||!i&&!a)return e;var o=this.normalizedRange(),r=o[0],c=o[1],d=void 0===c?24:c,u=n+(a?-12:12);return s(e,Math.min(Math.max(r,u),d||24))},e.prototype.configure=function(e){var t=e.min,n=void 0===t?this.min:t,i=e.max,a=void 0===i?this.max:i,o=e.part,r=void 0===o?this.part:o;this.min=n,this.max=a,this.part=r},e.prototype.data=function(e){var t=this.part.names;if(!t)return[];var n,i=[],a=this.normalizedRange(),o=a[0],r=a[1],c=this.intl.dateFormatNames(t);return l(o)&&i.push({text:c.am,value:s(this.min,o)}),null!==(n=r)&&(!n||n>11)&&i.push({text:c.pm,value:s(this.min,Math.max(12,r))}),this.min.getHours()!==o?i.reverse():i},e.prototype.isRangeChanged=function(e,t){return!1},e.prototype.limitRange=function(e,t,n){return[e,t]},e.prototype.total=function(){var e=this.normalizedRange(),t=e[0],n=e[1];return(t||n)&&(t>11||n<12)?1:2},e.prototype.selectedIndex=function(e){if(!this.valueInList(e))return-1;var t=Math.floor(e.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?t:0===t?1:0},e.prototype.valueInList=function(e){return(this.min.getHours()!==this.normalizedRange()[0]?d:c)(e.getHours(),this.min.getHours(),this.max.getHours())},e.prototype.normalizedRange=function(){var e=this.min.getHours(),t=this.max.getHours();return[Math.min(e,t),Math.max(e,t)]},e=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[r.IntlService])],e)}();t.DayPeriodService=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(45),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([a.Directive({providers:[{provide:r.TimePickerMessages,useExisting:a.forwardRef((function(){return n}))}],selector:"[kendoTimePickerLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.TimePickerMessages);t.TimePickerLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(45),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([a.Directive({providers:[{provide:r.TimePickerMessages,useExisting:a.forwardRef((function(){return n}))}],selector:"[kendoTimeSelectorLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.TimePickerMessages);t.TimeSelectorLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(14),r=n(13),s=n(6),l=n(5),c=n(24),d=n(42),u=n(55),p=n(44),h=n(54),m=n(22),g=n(66),f=n(114),v=n(115),y=[g.DateTimePickerComponent,f.DateTimePickerCustomMessagesComponent,v.LocalizedMessagesDirective],_=function(){function e(){}return e=i.__decorate([a.NgModule({declarations:y.slice(),exports:y.concat([p.TemplatesModule]),imports:[o.CommonModule,l.IntlModule,c.DateInputModule,d.CalendarModule,u.TimePickerModule,r.PopupModule,s.EventsModule,p.TemplatesModule],providers:[{provide:m.TOUCH_ENABLED,useValue:h.touchEnabled}]})],e)}();t.DateTimePickerModule=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"toggle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"dateTab",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"dateTabLabel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"timeTab",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"timeTabLabel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"accept",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"acceptLabel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"cancel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"cancelLabel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"today",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"now",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"nowLabel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"prevButtonTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"nextButtonTitle",void 0),t}(n(4).ComponentMessages);t.Messages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(57);t.CalendarComponent=i.CalendarComponent;var a=n(39);t.DateInputComponent=a.DateInputComponent;var o=n(63);t.DatePickerComponent=o.DatePickerComponent;var r=n(65);t.TimePickerComponent=r.TimePickerComponent;var s=n(66);t.DateTimePickerComponent=s.DateTimePickerComponent;var l=n(25);t.MultiViewCalendarComponent=l.MultiViewCalendarComponent;var c=n(67);t.DateRangeComponent=c.DateRangeComponent;var d=n(53);t.DateRangePopupComponent=d.DateRangePopupComponent;var u=n(69);t.DateRangeEndInputDirective=u.DateRangeEndInputDirective;var p=n(71);t.DateRangeStartInputDirective=p.DateRangeStartInputDirective;var h=n(72);t.DateRangeSelectionDirective=h.DateRangeSelectionDirective;var m=n(42);t.CalendarModule=m.CalendarModule;var g=n(80);t.CalendarsModule=g.CalendarsModule;var f=n(24);t.DateInputModule=f.DateInputModule;var v=n(84);t.DatePickerModule=v.DatePickerModule;var y=n(109);t.DateInputsModule=y.DateInputsModule;var _=n(55);t.TimePickerModule=_.TimePickerModule;var b=n(97);t.DateTimePickerModule=b.DateTimePickerModule;var C=n(43);t.MultiViewCalendarModule=C.MultiViewCalendarModule;var w=n(88);t.DateRangeModule=w.DateRangeModule;var D=n(23);t.DateRangeService=D.DateRangeService;var k=n(78);t.CalendarCustomMessagesComponent=k.CalendarCustomMessagesComponent;var T=n(83);t.DateInputCustomMessagesComponent=T.DateInputCustomMessagesComponent;var E=n(87);t.DatePickerCustomMessagesComponent=E.DatePickerCustomMessagesComponent;var S=n(37);t.PreventableEvent=S.PreventableEvent;var M=n(76);t.CalendarLocalizedMessagesDirective=M.CalendarLocalizedMessagesDirective;var I=n(74);t.MultiViewCalendarLocalizedMessagesDirective=I.MultiViewCalendarLocalizedMessagesDirective;var O=n(81);t.DateInputLocalizedMessagesDirective=O.DateInputLocalizedMessagesDirective;var V=n(85);t.DatePickerLocalizedMessagesDirective=V.DatePickerLocalizedMessagesDirective;var R=n(95);t.TimePickerLocalizedMessagesDirective=R.TimePickerLocalizedMessagesDirective;var x=n(96);t.TimeSelectorLocalizedMessagesDirective=x.TimeSelectorLocalizedMessagesDirective},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),a=n(7),o=function(){return null};t.disabledDatesRangeValidator=function(e){return a.isPresent(e)?function(t){if(!(a.isPresent(t)&&a.isPresent(t.start)&&a.isPresent(t.end))||t.start>t.end)return null;var n=i.disabledDatesInRange(t.start,t.end,e),o={disabledDatesInRange:n};return n.length?o:null}:o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,n){void 0===e&&(e=0),this.total=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)}return e.prototype.height=function(e){return this.heights[e]},e.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},e.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},e.prototype.index=function(e){if(!(e<0)){var t=this.offsets.reduce((function(t,n,i){return void 0!==t?t:n===e?i:n>e?i-1:void 0}),void 0);return void 0===t?this.total-1:t}},e.prototype.offset=function(e){return this.offsets[e]},e.prototype.totalHeight=function(){return this.heights.reduce((function(e,t){return e+t}),0)},e.prototype.updateRowHeight=function(e,t){this.heights[e]+=t,this.offsets=function(e,t,n){return e.slice(0,t+1).concat(e.slice(t+1).map((function(e){return e+n})))}(this.offsets,e,t)},e}();t.RowHeightService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),a=function(e){return Math.max(e,0)},o=function(e){this.offset=e};t.ScrollAction=o;var r=function(e){this.skip=e};t.PageAction=r;var s=function(){function e(e){this.scrollObservable=e,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}return e.prototype.create=function(e,t,n,s,l,c,d){var u=this;void 0===l&&(l=0),void 0===c&&(c=0),void 0===d&&(d="vertical"),this.rowHeightService=e,this.firstLoaded=t,this.lastLoaded=t+n,this.take=n,this.total=s,this.lastScroll=0,this.topOffset=l,this.bottomOffset=c,this.direction=d;var p=new i.ReplaySubject(2),h=this.rowsForHeight(l),m=a(t-h);return p.next(new o(this.rowOffset(m))),h&&p.next(new r(m)),this.subscription=new i.Observable((function(e){u.unsubscribe(),u.scrollSubscription=u.scrollObservable.subscribe((function(t){return u.onScroll(t,e)}))})).subscribe((function(e){return p.next(e)})),p},e.prototype.destroy=function(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()},e.prototype.onScroll=function(e,t){var n=e.scrollLeft,i=e.scrollTop,s=e.offsetHeight,l=e.offsetWidth,c="vertical"===this.direction?i:n,d="vertical"===this.direction?s:l;if(this.lastScroll!==c){var u=this.lastScroll>=c;this.lastScroll=c;var p=this.rowHeightService.index(a(c-this.topOffset)),h=this.rowHeightService.index(a(c+d-this.bottomOffset));if(!u&&h>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=p,t.next(new o(this.rowOffset(p))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new r(this.firstLoaded))),u&&p<=this.firstLoaded){var m=Math.floor(.3*this.take);this.firstLoaded=a(p-m),t.next(new o(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new r(this.firstLoaded))}}},e.prototype.rowOffset=function(e){return this.rowHeightService.offset(e)+this.topOffset},e.prototype.rowsForHeight=function(e){return Math.ceil(e/this.rowHeightService.height(0))},e.prototype.unsubscribe=function(){this.scrollSubscription&&(this.scrollSubscription.unsubscribe(),this.scrollSubscription=null)},e}();t.ScrollerService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(35),r=function(){function e(e,t){this.dom=e,this.zone=t}return e.prototype.configure=function(e){var t=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=function(e){return function(t){return Math.floor(t/e)}}(t),this.powerByMagnitude=function(e){return function(t){return t*e}}(t)},e.prototype.sync=function(e,t){var n=this;this.unsubscribe(),e&&t&&(this.navigator=e,this.view=t,this.zone.runOutsideAngular((function(){var i,a;n.navSubscription=e.scroll$().subscribe((function(e){a?a=!1:(i=!0,n.scrollSiblingOf(e.target))})),n.viewSubscription=t.scroll$().subscribe((function(e){i?i=!1:(a=!0,n.scrollSiblingOf(e.target))}))})))},e.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),n=this.calculateScroll(t,e.scrollTop);t.scrollTo(n)},e.prototype.siblingComponent=function(e){return this.navigator.container.nativeElement===e?this.view:this.navigator},e.prototype.calculateScroll=function(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)},e.prototype.destroy=function(){this.unsubscribe()},e.prototype.unsubscribe=function(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()},e=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[o.CalendarDOMService,a.NgZone])],e)}();t.ScrollSyncService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Up=0]="Up",e[e.Down=1]="Down",e[e.None=2]="None"}(t.Arrow||(t.Arrow={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(3);t.timeRangeValidator=function(e,t){return function(n){if(!e||!t||!n.value)return null;var a={timeRangeError:{maxValue:t,minValue:e,value:n.value}};return i.isInTimeRange(n.value,e,t)?null:a}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(6),r=function(){function e(e,t,n,i){this.$implicit=e,this.kForOf=t,this.index=n,this.count=i}return Object.defineProperty(e.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),e}();t.KForOfContext=r;var s=function(){function e(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._differ=null}return Object.defineProperty(e.prototype,"kForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if("kForOf"in e){var t=e.kForOf.currentValue;if(this._differ||!t)return;try{this._differ=this._differs.find(t).create(this.kForTrackBy)}catch(e){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+l(t)+"'.")}}},e.prototype.ngDoCheck=function(){if(this._differ){var e=this._differ.diff(this.kForOf);e&&this._applyChanges(e)}},e.prototype._applyChanges=function(e){if(o.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 r(null,this.kForOf,-1,-1),a);for(a=this._viewContainer.length;a>n;a--)this._viewContainer.remove(a-1);for(a=0;a<this._viewContainer.length;a++){var s=this._viewContainer.get(a);s.context.index=a,s.context.count=length,s.context.$implicit=i[a]||null}}},i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"kForOf",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"kForTrackBy",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef),i.__metadata("design:paramtypes",[a.TemplateRef])],e.prototype,"kForTemplate",null),e=i.__decorate([a.Directive({selector:"[kFor][kForOf]"}),i.__metadata("design:paramtypes",[a.ViewContainerRef,a.TemplateRef,a.IterableDiffers])],e)}();function l(e){return e.name||typeof e}t.KForOf=s,t.getTypeNameForDebugging=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(9),r=n(10),s=n(11),l=n(20),c=n(5),d=n(2),u=n(3),p=n(21),h=n(7),m=function(){function e(e,t,n,i,r,s,l){this.bus=e,this.intl=t,this.cdr=n,this.element=i,this.zone=r,this.renderer=s,this.disabledDatesService=l,this.direction="vertical",this.isActive=!0,this.selectedDates=[],this.cellClick=new a.EventEmitter,this.weekNumberCellClick=new a.EventEmitter,this.cellEnter=new a.EventEmitter,this.cellLeave=new a.EventEmitter,this.colSpan=0,this.subscriptions=new o.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)))}return Object.defineProperty(e.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.activeView===r.CalendarViewEnum.month},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.element&&this.zone.runOutsideAngular((function(){e.bindEvents()}))},e.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))},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domEvents.forEach((function(e){return e()}))},e.prototype.isHorizontal=function(){return"horizontal"===this.direction},e.prototype.isMonthView=function(){return this.activeView===r.CalendarViewEnum.month},e.prototype.shouldRenderCellContent=function(e){return h.isPresent(e)&&!(!this.isHorizontal()&&e.isOtherMonth)},e.prototype.firstDate=function(e){var t=this.firstWeekDateContext(e);return t?t.value:null},e.prototype.getWeekNumber=function(e){return this.weekNumber?d.weekInYear(e,this.intl.firstDay()):null},e.prototype.getWeekNumberContext=function(e){var t=this.firstWeekDateContext(e);if(!this.weekNumber||!t)return null;var n=d.weekInYear(t.value,this.intl.firstDay()).toString();return{formattedValue:n,id:null,isFocused:!1,isSelected:!1,isWeekend:!1,title:n,value:d.cloneDate(t.value)}},e.prototype.getStyles=function(e){var t=e.isRangeEnd,n=e.isRangeStart,i="end"===this.activeRangeEnd&&t,a="start"===this.activeRangeEnd&&n;return u.stringifyClassObject({"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&&n,"k-state-active":a||i,"k-state-focused":!e.isOtherMonth&&this.isActive&&e.isFocused,"k-state-selected":!e.isOtherMonth&&(e.isSelected||n||t),"k-today":!e.isOtherMonth&&e.isToday,"k-weekend":e.isWeekend,"k-disabled":e.isDisabled,"k-other-month":e.isOtherMonth})},e.prototype.tableCellIndex=function(e,t){return e+":"+t},e.prototype.handleWeekNumberClick=function(e){var t=this,n=e.map((function(e){return e.value})).filter((function(e){return!t.disabledDatesService.isDateDisabled(e)}));this.weekNumberCellClick.emit(n)},e.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},e.prototype.updateData=function(){var e=u.last(this.selectedDates)||u.getToday(),t=u.setTime(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:t,isDateDisabled:this.disabledDatesService.isDateDisabled,direction:this.direction})},e.prototype.intlChange=function(){this.updateData(),this.cdr.markForCheck()},e.prototype.disabledDatesChange=function(){this.updateData(),this.cdr.markForCheck()},e.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)))},e.prototype.clickHandler=function(e){var t=this.closestCell(e);if(t){var n=t.getAttribute("data-cell-index"),i=this.cellByIndex(n);if(!i.isDisabled){var a=e.ctrlKey,o=e.metaKey,r=e.shiftKey;this.cellClick.emit({date:i.value,modifiers:{ctrlKey:a,metaKey:o,shiftKey:r}})}}},e.prototype.mouseLeaveHandler=function(){this.currentCellIndex&&this.emitCellLeave()},e.prototype.cellMouseoverHandler=function(e){var t=this.closestCell(e);if(t){var n=t.getAttribute("data-cell-index");this.currentCellIndex&&this.currentCellIndex!==n&&this.emitCellLeave();var i=this.cellByIndex(n).value;this.cellEnter.emit(i),this.currentCellIndex=n}else this.currentCellIndex&&this.emitCellLeave()},e.prototype.closestCell=function(e){return p.closestInScope(e.target,(function(e){return e.hasAttribute("data-cell-index")}),this.element.nativeElement)},e.prototype.emitCellLeave=function(){var e=this.cellByIndex(this.currentCellIndex);e&&this.cellLeave.emit(e.value),this.currentCellIndex=null},e.prototype.cellByIndex=function(e){var t=e.split(":"),n=t[0],i=t[1];return this.data[n][i]},i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isActive",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"cellUID",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"focusedDate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"viewDate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"activeRangeEnd",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"selectionRange",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"min",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"max",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"selectedDates",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"weekNumber",null),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"viewIndex",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"templateRef",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"weekNumberTemplateRef",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cellClick",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"weekNumberCellClick",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cellEnter",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cellLeave",void 0),e=i.__decorate([a.Component({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 '}),i.__metadata("design:paramtypes",[s.BusViewService,c.IntlService,a.ChangeDetectorRef,a.ElementRef,a.NgZone,a.Renderer2,l.DisabledDatesService])],e)}();t.ViewComponent=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(75),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([a.Component({providers:[{provide:r.Messages,useExisting:a.forwardRef((function(){return n}))}],selector:"kendo-multiviewcalendar-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.Messages);t.MultiViewCalendarCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(80),r=n(24),s=n(84),l=n(88),c=n(55),d=n(97),u=[o.CalendarsModule,r.DateInputModule,s.DatePickerModule,c.TimePickerModule,l.DateRangeModule,d.DateTimePickerModule],p=function(){function e(){}return e=i.__decorate([a.NgModule({exports:u,imports:u})],e)}();t.DateInputsModule=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=n(4),s=n(5),l=n(2),c=n(6),d=n(8),u=n(89),p=n(56),h=n(3),m=n(111),g=n(16),f=n(21),v=n(7),y=function(e,t,n,i){return e.length||!t.isActive?e:[{next:i[n+1]||t,prev:i[n-1]||t}]};!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(i||(i={}));var _=function(){function e(e,t,n,i,a,r,s,c){this.localization=e,this.cdr=t,this.element=n,this.intl=i,this.dom=a,this.zone=r,this.renderer=s,this.pickerService=c,this.format="t",this.min=l.cloneDate(d.MIN_TIME),this.max=l.cloneDate(d.MAX_TIME),this.cancelButton=!0,this.setButton=!0,this.nowButton=!0,this.disabled=!1,this.value=null,this.valueChange=new o.EventEmitter,this.valueReject=new o.EventEmitter,this.isActive=!1,this.showNowButton=!0,this._activeListIndex=-1,this._steps={},this.domEvents=[],this.pickerService&&(this.pickerService.timeSelector=this)}return Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"steps",{get:function(){return this._steps},set:function(e){this._steps=e||{}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this._current},set:function(e){this._current=h.timeInRange(this.snapTime(l.cloneDate(e||d.MIDNIGHT_DATE),this.min),this.min,this.max),o.NgZone.isInAngularZone()||this.cdr.detectChanges()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeListIndex",{get:function(){return this._activeListIndex},set:function(e){var t=this;if(this._activeListIndex=e,this.timeListWrappers&&this.timeListWrappers.length&&(this.timeListWrappers.forEach((function(e){t.renderer.removeClass(e.nativeElement,"k-state-focused")})),e>=0)){var n=this.listIndex(e),i=this.timeListWrappers.toArray()[n];i&&this.renderer.addClass(i.nativeElement,"k-state-focused")}},enumerable:!0,configurable:!0}),e.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()},e.prototype.ngOnChanges=function(e){this.init()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.pickerService&&(this.pickerService.timeSelector=null),this.domEvents.forEach((function(e){return e()}))},e.prototype.focus=function(){var e=this.timeLists.first;e&&e.focus()},e.prototype.blur=function(){var e=this.timeLists.first;e&&e.blur()},e.prototype.handleAccept=function(){this.handleChange(this.mergeValue(l.cloneDate(this.value||l.getDate(h.getNow())),this.current))},e.prototype.handleNow=function(){this.current=h.getNow(),this.handleChange(this.current),this.cdr.markForCheck()},e.prototype.handleReject=function(){this.current=this.value,this.valueReject.emit()},e.prototype.handleFocus=function(e){this.isActive||(this.isActive=!0,this.emitFocus(e))},e.prototype.handleListFocus=function(e){var t=parseInt(e.target.getAttribute("data-timelist-index"),10);this.activeListIndex=t,this.handleFocus(e)},e.prototype.handleBlur=function(e){var t=v.currentFocusTarget(e);t&&this.containsElement(t)||(this.activeListIndex=-1,this.isActive=!1,this.emitBlur(e))},e.prototype.containsElement=function(e){var t=this;return Boolean(f.closest(e,(function(e){return e===t.element.nativeElement})))},e.prototype.partStep=function(e){return this.steps[e.type]||1},e.prototype.init=function(e){e&&!h.hasChange(e,"format")||(this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=m.valueMerger(m.generateGetters(this.dateFormatParts))),e&&!h.hasChange(e,"steps")||(this.snapTime=m.snapTime(m.generateSnappers(this.steps))),e&&!h.hasChange(e,"value")||(this.current=this.value),this.showNowButton=!this.hasSteps()&&this.nowButton&&h.isInTimeRange(h.getNow(),this.min,this.max)},e.prototype.focusList=function(e){this.timeLists.length&&this.timeLists.reduce(y,[]).map((function(t){return e===i.Right?t.next:t.prev})).map((function(e){return e&&e.focus()}))},e.prototype.handleChange=function(e){this.value=e,this.valueChange.emit(l.cloneDate(e))},e.prototype.hasActiveButton=function(){var e=this;return!!this.accept&&[this.accept,this.cancel,this.now].reduce((function(t,n){return t||e.dom.isActive(n)}),!1)},e.prototype.hasSteps=function(){var e=this,t=Object.keys(this.steps);return t.length!==t.reduce((function(t,n){return t+e.steps[n]}),0)},e.prototype.intlChange=function(){this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=m.valueMerger(m.generateGetters(this.dateFormatParts)),this.cdr.markForCheck()},e.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)))}))},e.prototype.handleKeydown=function(e){var t=e.keyCode,n=e.altKey,a=-1!==[c.Keys.ArrowLeft,c.Keys.ArrowRight].indexOf(t);v.isPresent(this.pickerService)&&a&&n||(t!==c.Keys.Enter||this.hasActiveButton()?t!==c.Keys.ArrowLeft&&t!==c.Keys.ArrowRight||this.focusList(t===c.Keys.ArrowLeft?i.Left:i.Right):this.handleAccept())},e.prototype.emitBlur=function(e){this.pickerService&&this.pickerService.onBlur.emit(e)},e.prototype.emitFocus=function(e){this.pickerService&&this.pickerService.onFocus.emit(e)},e.prototype.listIndex=function(e){for(var t=0,n=0;n<e;)"literal"!==this.dateFormatParts[n].type&&t++,n++;return t},a.__decorate([o.ViewChild("accept",{static:!1}),a.__metadata("design:type",o.ElementRef)],e.prototype,"accept",void 0),a.__decorate([o.ViewChild("cancel",{static:!1}),a.__metadata("design:type",o.ElementRef)],e.prototype,"cancel",void 0),a.__decorate([o.ViewChild("now",{static:!1}),a.__metadata("design:type",o.ElementRef)],e.prototype,"now",void 0),a.__decorate([o.ViewChildren(u.TimeListComponent),a.__metadata("design:type",o.QueryList)],e.prototype,"timeLists",void 0),a.__decorate([o.ViewChildren("listWrapper"),a.__metadata("design:type",o.QueryList)],e.prototype,"timeListWrappers",void 0),a.__decorate([o.HostBinding("class.k-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),a.__decorate([o.Input(),a.__metadata("design:type",String)],e.prototype,"format",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Date)],e.prototype,"min",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Date)],e.prototype,"max",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Boolean)],e.prototype,"cancelButton",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Boolean)],e.prototype,"setButton",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Boolean)],e.prototype,"nowButton",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],e.prototype,"steps",null),a.__decorate([o.Input(),a.__metadata("design:type",Date)],e.prototype,"value",void 0),a.__decorate([o.Output(),a.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),a.__decorate([o.Output(),a.__metadata("design:type",o.EventEmitter)],e.prototype,"valueReject",void 0),e=a.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timeselector",providers:[r.LocalizationService,{provide:r.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 '}),a.__param(7,o.Optional()),a.__metadata("design:paramtypes",[r.LocalizationService,o.ChangeDetectorRef,o.ElementRef,s.IntlService,p.TimePickerDOMService,o.NgZone,o.Renderer2,g.PickerService])],e)}();t.TimeSelectorComponent=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(2),o=n(41),r=function(e,t){return e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()},s=function(e,t){return r(e,t)&&e.getSeconds()===t.getSeconds()},l=[{type:o.TIME_PART.hour,getter:function(e){return e.getHours()},minGetter:function(e,t){return t.getHours()}},{type:o.TIME_PART.minute,getter:function(e){return e.getMinutes()},minGetter:function(e,t){return r(e,t)?t.getMinutes():0}},{type:o.TIME_PART.second,getter:function(e){return e.getSeconds()},minGetter:function(e,t){return s(e,t)?t.getSeconds():0}},{type:o.TIME_PART.millisecond,getter:function(e){return e.getMilliseconds()},minGetter:function(e,t){return function(e,t){return s(e,t)&&e.getMilliseconds()===t.getMilliseconds()}(e,t)?t.getMilliseconds():0}}];t.generateGetters=(i=l,function(e){return i.map(function(e){return function(t){return e[t.type]?(n=t.getter,function(e,t){return n(t)}):function(e){return function(t,n){return e(t)}}(t.getter);var n}}(function(e){return e.reduce((function(e,t){return e[t.type]=t.type,e}),{})}(e)))}),t.generateSnappers=function(e){return function(t){return e.map((function(e){var n=t[e.type];return n?function(e,t,n){return function(i,a){var o=e(i),r=t(i,a),s=o-r;if(s<0)return r;var l=s%n;return o-l+(l>n/2?n:0)}}(e.getter,e.minGetter,n):e.getter}))}}(l),t.valueMerger=function(e){return function(t,n){return t.setHours.apply(t,e.map((function(e){return e(t,n)}))),t}},t.snapTime=function(e){return function(t,n){var i=a.cloneDate(t);return i.setHours.apply(i,e.map((function(e){return e(i,n)}))),i}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(45),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([a.Component({providers:[{provide:r.TimePickerMessages,useExisting:a.forwardRef((function(){return n}))}],selector:"kendo-timepicker-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.TimePickerMessages);t.TimePickerCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(45),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([a.Component({providers:[{provide:r.TimePickerMessages,useExisting:a.forwardRef((function(){return n}))}],selector:"kendo-timeselector-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.TimePickerMessages);t.TimeSelectorCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(98),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([a.Component({providers:[{provide:r.Messages,useExisting:a.forwardRef((function(){return n}))}],selector:"kendo-datetimepicker-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.Messages);t.DateTimePickerCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(98),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([a.Directive({providers:[{provide:r.Messages,useExisting:a.forwardRef((function(){return n}))}],selector:"[kendoDateTimePickerLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.Messages);t.LocalizedMessagesDirective=s}])}));
|